From 50624f6efa10e27ad23e48d6ff624779fb35feb1 Mon Sep 17 00:00:00 2001 From: Kuddev <292709043+Kuddev@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:13:53 +0800 Subject: [PATCH 1/5] Let the line budget follow a renamed source root A `moved ` record lets a whole root be renamed without counting as a removed root. Against the base, every base source file under the old root must reappear at the same relative path, the old root must be gone, and allowances keep their base value and base size. Records whose old root is no longer in the base do nothing and print a removal notice, so the record cannot remap later PRs after the rename lands. --- .../2026-11-09-moved-source-roots.md | 61 +++++++++++++++++ docs/project-constraints.md | 5 ++ scripts/architecture/budgets.py | 50 ++++++++++++-- scripts/check_architecture.py | 11 ++- scripts/tests/test_architecture_budgets.py | 67 +++++++++++++++++++ 5 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md diff --git a/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md b/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md new file mode 100644 index 000000000..484b4c31a --- /dev/null +++ b/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md @@ -0,0 +1,61 @@ +# Rename a whole source root without resetting its contracts + +## Status + +Accepted with the maintainer-requested Pebrel naming migration, 2026-11-09. + +## Context + +The maintainer asked for the remaining `nebula` names, including crate source +directories such as `nebula_app`, to become `pebrel`. The +[completion package identity note](../../nebula-completions/2026-09-30-package-identity.md) +already recorded that the line-budget checker rejects removed source roots, +so a physical directory rename needed a reviewed policy change first. + +## Evidence + +Against the base revision, replacing `root nebula_app` with `root pebrel_app` +failed with "source roots may not be removed from the budget". Without that +rule, a rename could also drop files silently, and legacy allowances under the +new path would look like new exceptions or lose their base-size bound. + +## Decision + +`architecture/file-budgets.txt` accepts `moved `. With a +base revision the checker lists the base tree under the old root and requires +each source file there at the same relative path under the new root. The old +root must not exist, the new root must not already be a base root, and +allowances under the new root are compared with the base allowance and base +size of the old path. Files inside a moved root are renamed in a separate +change. + +A move only applies when the base still has the old root. After the rename is +merged the record has no effect and the checker prints a removal notice, so later +PRs are not blocked and their allowances are not remapped. + +## Rejected alternatives + +- Inferring moves from Git rename detection: similarity thresholds depend on + content edits made in the same change and are not reviewable as policy. +- Allowing root removal whenever a new root appears: coverage could shrink. +- Keeping old directory names: contradicts the requested naming migration. + +## Consequences + +Directory renames are explicit in the budget file and checked offline. One +extra base-tree listing runs only for active move records. + +## Validation + +`scripts/tests/test_architecture_budgets.py` covers a legitimate move, dropped +or renamed files, a leftover old root, missing base listing, preserved and +increased allowances, claiming an existing root, stale records after merge and +malformed records. + +## Supersedes + +None. + +## Revisit when + +Source roots stop mapping to directories, or a root must be split into several. diff --git a/docs/project-constraints.md b/docs/project-constraints.md index 88bd982da..d8124d370 100644 --- a/docs/project-constraints.md +++ b/docs/project-constraints.md @@ -22,6 +22,11 @@ local thresholds. See [architecture](architecture.md) for module responsibilitie size, so an old allowance cannot be reused after the file has shrunk. - Remove allowances when a file is deleted or reaches the default limit. A reduction above that limit gives a tightening notice. No wildcard allowances. +- A whole root may be renamed only with a `moved ` record. + Against the base, every base source file under the old root must appear at the + same relative path under the new root, the old root must be gone, and + allowances keep their base value and base size under the new path. A record + whose old root is not in the base has no effect and gives a removal notice. The Python checker runs offline and scans untracked local source additions too. It fails on malformed budgets, missing roots, read errors and symlinked source diff --git a/scripts/architecture/budgets.py b/scripts/architecture/budgets.py index 0d9d59ad3..72082412b 100644 --- a/scripts/architecture/budgets.py +++ b/scripts/architecture/budgets.py @@ -1,4 +1,4 @@ -from dataclasses import dataclass +from dataclasses import dataclass, field import os from pathlib import Path, PurePosixPath @@ -39,16 +39,27 @@ class Budget: limit: int roots: tuple[str, ...] exceptions: dict[str, int] + # 旧根 -> 新根。只有基线里确实存在旧根时才生效,用来让整目录改名保留覆盖与例外额度。 + moves: dict[str, str] = field(default_factory=dict) @classmethod def parse(cls, text: str) -> "Budget": limit = None roots = [] exceptions = {} + moves = {} for number, record in enumerate(text.splitlines(), 1): if not record.strip(): continue fields = record.split() + if fields[0] == "moved": + if len(fields) != 3: + raise ValueError(f"{BUDGET_PATH}:{number}: expected moved ") + old, new = relative_path(fields[1]), relative_path(fields[2]) + if old == new or old in moves or new in moves.values(): + raise ValueError(f"invalid or duplicate root move: {old} -> {new}") + moves[old] = new + continue if len(fields) != 2: raise ValueError(f"{BUDGET_PATH}:{number}: expected two fields") name, value = fields @@ -76,7 +87,12 @@ def parse(cls, text: str) -> "Budget": for root in roots: if any(root.startswith(other + "/") for other in roots if other != root): raise ValueError(f"overlapping source root: {root}") - return cls(limit, tuple(roots), exceptions) + for old, new in moves.items(): + if new not in roots: + raise ValueError(f"moved root target is not a source root: {new}") + if any(old == root or old.startswith(root + "/") or root.startswith(old + "/") for root in roots): + raise ValueError(f"moved root source overlaps current roots: {old}") + return cls(limit, tuple(roots), exceptions, moves) def source_files(root: Path, roots: tuple[str, ...]): @@ -102,7 +118,7 @@ def fail(error): yield path -def check(root: Path, budget: Budget, previous=None, read_previous=None): +def check(root: Path, budget: Budget, previous=None, read_previous=None, list_previous=None): errors = [] notices = [] counts = { @@ -111,18 +127,38 @@ def check(root: Path, budget: Budget, previous=None, read_previous=None): } if not counts: errors.append("no first-party sources found") + for old in budget.moves: + if checked_path(root, old).exists(): + errors.append(f"{old}: moved source root still exists") if previous is not None: if budget.limit > previous.limit: errors.append("line limit may not increase against the base revision") - if not set(previous.roots).issubset(budget.roots): + moved = {old for old in budget.moves if old in previous.roots} + # 只映射基线里确实存在的旧根;合并后残留的记录不能改写后续 PR 的例外名。 + base_name = lambda name: next( + (old + name[len(new):] for old, new in budget.moves.items() + if old in moved and name.startswith(new + "/")), name) + if not set(previous.roots).issubset(set(budget.roots) | moved): errors.append("source roots may not be removed from the budget") + for old, new in budget.moves.items(): + if old not in moved: + notices.append(f"{old}: base has no such root; remove the stale move record") + elif new in previous.roots: + errors.append(f"{new}: move target was already a source root in base") + elif list_previous is None: + errors.append(f"{old}: cannot verify moved sources without the base revision") + else: + # 改名不能顺带删掉文件:基线旧根下的每个源码文件都要在新根的同一相对位置出现。 + for name in list_previous(old): + if PurePosixPath(name).suffix in SOURCE_SUFFIXES and new + name[len(old):] not in counts: + errors.append(f"{name}: moved root lost {new + name[len(old):]}") for name, limit in budget.exceptions.items(): - if name not in previous.exceptions or limit > previous.exceptions[name]: + if base_name(name) not in previous.exceptions or limit > previous.exceptions[base_name(name)]: errors.append(f"{name}: new or increased exception against base revision") for name, count in counts.items(): limit = budget.exceptions.get(name, budget.limit) - if previous is not None and name in previous.exceptions and read_previous: - content = read_previous(name) + if previous is not None and base_name(name) in previous.exceptions and read_previous: + content = read_previous(base_name(name)) if content is None: errors.append(f"{name}: exception has no source in base revision") else: diff --git a/scripts/check_architecture.py b/scripts/check_architecture.py index 0375e3508..99a538b30 100644 --- a/scripts/check_architecture.py +++ b/scripts/check_architecture.py @@ -33,13 +33,22 @@ def read(self, path: str): cwd=self.root, capture_output=True, check=True, ).stdout + def files(self, directory: str): + result = subprocess.run( + ["git", "--literal-pathspecs", "ls-tree", "-r", "--name-only", "-z", self.commit, "--", directory + "/"], + cwd=self.root, capture_output=True, check=True, + ) + return [name.decode("utf-8") for name in result.stdout.split(b"\0") if name] + def run(root: Path, base: str | None = None, report: bool = False) -> int: budget = budgets.Budget.parse((root / budgets.BUDGET_PATH).read_text(encoding="utf-8")) revision = Revision(root, base) if base else None previous_source = revision.read(budgets.BUDGET_PATH) if revision else None previous = budgets.Budget.parse(previous_source.decode("utf-8")) if previous_source is not None else None - errors, notices, counts = budgets.check(root, budget, previous, revision.read if revision else None) + errors, notices, counts = budgets.check( + root, budget, previous, revision.read if revision else None, revision.files if revision else None + ) dependency_errors, members = dependencies.check( root, dependencies.load(root / dependencies.POLICY_PATH), budget.roots, set(counts) ) diff --git a/scripts/tests/test_architecture_budgets.py b/scripts/tests/test_architecture_budgets.py index 91cd27a22..b5635645d 100644 --- a/scripts/tests/test_architecture_budgets.py +++ b/scripts/tests/test_architecture_budgets.py @@ -1,5 +1,6 @@ from pathlib import Path import io +import shutil import subprocess import tempfile import unittest @@ -140,6 +141,72 @@ def test_missing_base_source_is_an_error(self): budget = self.policy("app/src/legacy.rs 2100") self.assertIn("no source in base", check(self.root, budget, budget, lambda name: None)[0][0]) + def moved(self, exceptions=""): + shutil.rmtree(self.root / "app", ignore_errors=True) + return Budget.parse(f"limit 2000\nroot renamed\nmoved app renamed\n{exceptions}") + + def test_moved_root_keeps_every_base_source(self): + self.write("renamed/src/view.rs", 1) + self.write("renamed/src/data.json", 1) + listing = lambda directory: ["app/src/view.rs", "app/src/data.json"] + self.assertEqual(check(self.root, self.moved(), self.policy(), None, listing)[0], []) + + def test_moved_root_cannot_drop_or_rename_sources(self): + self.write("renamed/src/view.rs", 1) + listing = lambda directory: ["app/src/view.rs", "app/src/gone.rs"] + errors = check(self.root, self.moved(), self.policy(), None, listing)[0] + self.assertEqual(errors, ["app/src/gone.rs: moved root lost renamed/src/gone.rs"]) + + def test_moved_root_requires_base_listing_and_absent_source(self): + self.write("renamed/src/view.rs", 1) + self.assertIn("cannot verify", check(self.root, self.moved(), self.policy())[0][0]) + budget = self.moved() + self.write("app/src/view.rs", 1) + self.assertIn("still exists", check(self.root, budget)[0][0]) + + def test_moved_exception_keeps_base_allowance(self): + self.write("renamed/src/legacy.rs", 2100) + listing = lambda directory: ["app/src/legacy.rs"] + base = lambda name: b"line\n" * 2050 if name == "app/src/legacy.rs" else None + previous = self.policy("app/src/legacy.rs 2100") + errors = check(self.root, self.moved("renamed/src/legacy.rs 2100"), previous, base, listing)[0] + self.assertEqual(errors, ["renamed/src/legacy.rs: 2100 lines > 2050; split by responsibility"]) + increased = check(self.root, self.moved("renamed/src/legacy.rs 2101"), previous, base, listing)[0] + self.assertIn("new or increased", increased[0]) + + def test_move_cannot_claim_unrelated_or_existing_roots(self): + self.write("renamed/src/view.rs", 1) + listing = lambda directory: [] + previous = Budget.parse("limit 2000\nroot app\nroot renamed") + errors = check(self.root, self.moved(), previous, None, listing)[0] + self.assertIn("already a source root", errors[0]) + stale = Budget.parse("limit 2000\nroot renamed\nmoved other renamed") + errors, notices, _ = check(self.root, stale, Budget.parse("limit 2000\nroot renamed"), None, listing) + self.assertEqual(errors, []) + self.assertIn("stale move record", notices[0]) + errors = check(self.root, stale, self.policy(), None, listing)[0] + self.assertIn("may not be removed", errors[0]) + + def test_record_left_after_merge_does_not_remap_exceptions(self): + self.write("renamed/src/legacy.rs", 2100) + merged = Budget.parse("limit 2000\nroot renamed\nrenamed/src/legacy.rs 2100") + current = self.moved("renamed/src/legacy.rs 2100") + base = lambda name: b"line\n" * 2100 if name == "renamed/src/legacy.rs" else None + errors, notices, _ = check(self.root, current, merged, base, lambda directory: []) + self.assertEqual(errors, []) + self.assertIn("stale move record", notices[0]) + + def test_invalid_move_records_fail(self): + for text in ( + "limit 2000\nroot renamed\nmoved app", "limit 2000\nroot renamed\nmoved app other", + "limit 2000\nroot app\nmoved app app", "limit 2000\nroot renamed\nroot app\nmoved app renamed", + "limit 2000\nroot renamed\nmoved renamed/src renamed", "limit 2000\nroot renamed\nmoved ../app renamed", + "limit 2000\nroot renamed\nroot two\nmoved app renamed\nmoved app two", + ): + with self.subTest(text=text): + with self.assertRaises(ValueError): + Budget.parse(text) + def test_invalid_base_is_not_treated_as_bootstrap(self): with patch("scripts.check_architecture.subprocess.run", side_effect=subprocess.CalledProcessError(128, "git")): with self.assertRaises(subprocess.CalledProcessError): From 49c719a331e66d367b3d54411bfdd8258e3a1128 Mon Sep 17 00:00:00 2001 From: Kuddev <292709043+Kuddev@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:24:50 +0800 Subject: [PATCH 2/5] Check only the changed lines of renamed files for prohibited names The gate diffed each changed file with only its new path, so Git could not pair a moved file with its old path and every line of it counted as added. Moving a crate directory replayed every existing identifier. List changes with rename detection and diff renamed files with both paths, so only lines the move edits are checked. Added text in a moved file is still rejected and reported under its new path. --- .../2026-11-09-renamed-file-diffs.md | 54 +++++++++++++++++++ scripts/check_prohibited_names.py | 44 ++++++++++----- scripts/tests/test_prohibited_names.py | 45 ++++++++++++++++ 3 files changed, 129 insertions(+), 14 deletions(-) create mode 100644 architecture/notes/scripts/check_prohibited_names/2026-11-09-renamed-file-diffs.md diff --git a/architecture/notes/scripts/check_prohibited_names/2026-11-09-renamed-file-diffs.md b/architecture/notes/scripts/check_prohibited_names/2026-11-09-renamed-file-diffs.md new file mode 100644 index 000000000..20efccf52 --- /dev/null +++ b/architecture/notes/scripts/check_prohibited_names/2026-11-09-renamed-file-diffs.md @@ -0,0 +1,54 @@ +# Check only changed lines in renamed files + +## Status + +Accepted with the maintainer-requested Pebrel naming migration, 2026-11-09. + +## Context + +The naming migration moves whole crate directories. The prohibited-name gate +checks added lines, but listed changed files with `--name-only` and then diffed +each file with only its new path as the pathspec. + +## Evidence + +With only the new path, Git cannot pair the file with its old path, so every line +of a moved file appears added. Moving `nebula_app` to `pebrel_app` therefore +reported 82 unchanged lines, such as existing theme-format and keyboard-protocol +identifiers. A fixture that moves a file containing an existing comparison fails +the old range and staged checks for the same reason. + +## Decision + +List changes with `-M --name-status`. For a rename, diff with both the old and +new path as pathspecs so Git reports only the lines that changed; report the new +path. Ordinary commits in range and push mode and staged mode share this path. +Merge commits and root commits keep their existing diffs. + +## Rejected alternatives + +- Exempt moved directories: added text inside them would go unchecked. +- Skip pure renames only: a move with edits would still replay the whole file. +- Rely on the default `diff.renames`: a pathspec of one side defeats detection, + and user configuration could disable it. + +## Consequences + +Below Git's default 50% similarity a move is still a delete plus an add, so the +whole file is checked, which fails closed. Lines that a move edits are checked as +new lines, including existing names on those lines. + +## Validation + +`scripts/tests/test_prohibited_names.py` moves a directory whose file holds an +existing comparison: staged and range checks pass. Adding a comparison in the +moved file fails both checks, reports the new path and omits the unchanged line. +Both tests fail against the previous implementation. + +## Supersedes + +None. + +## Revisit when + +Merge commits need rename-aware combined diffs. diff --git a/scripts/check_prohibited_names.py b/scripts/check_prohibited_names.py index d6cdbc2a8..4ef649ca4 100644 --- a/scripts/check_prohibited_names.py +++ b/scripts/check_prohibited_names.py @@ -202,25 +202,42 @@ def prohibited_source_line(path: str, text: str) -> bool: return prohibited(source_without_allowed_occurrences(path, text)) -def changed_paths(*revision_args: str) -> list[str]: - raw = git("diff", *revision_args, "--name-only", "-z", "--diff-filter=ACMR", "--", ".") - return [path.decode("utf-8") for path in raw.split(b"\0") if path] +def changed_paths(*revision_args: str) -> list[tuple[str, ...]]: + """Changed paths; a rename is (new, old) so its patch keeps both sides.""" + raw = git("diff", *revision_args, "-M", "--name-status", "-z", "--diff-filter=ACMR", "--", ".") + fields = [field.decode("utf-8") for field in raw.split(b"\0")] + paths: list[tuple[str, ...]] = [] + index = 0 + while index < len(fields) and fields[index]: + if fields[index].startswith("R"): + paths.append((fields[index + 2], fields[index + 1])) + index += 3 + else: + paths.append((fields[index + 1],)) + index += 2 + return paths -def added_lines(path: str, *revision_args: str) -> Iterable[tuple[int, str]]: - patch = git("diff", *revision_args, "--no-ext-diff", "--unified=0", "--", path) +def added_lines(paths: tuple[str, ...], *revision_args: str) -> Iterable[tuple[int, str]]: + # 只给新路径时 Git 看不到旧文件,移动的整份文件都会变成新增行; + # 两个路径一起给,改名检测后只剩真正改动的行,移动后新加的内容照样检查。 + patch = git("diff", *revision_args, "-M", "--no-ext-diff", "--unified=0", "--", *paths) yield from added_patch_lines(patch, None) -def scan_added_lines(*revision_args: str) -> list[str]: - hits: list[str] = [] - for path in changed_paths(*revision_args): - normalized = path.replace("\\", "/") +def scan_changed_paths(hits: list[str], prefix: str, *revision_args: str) -> None: + for paths in changed_paths(*revision_args): + normalized = paths[0].replace("\\", "/") if normalized in EXEMPT_PATHS: continue - for line_no, line in added_lines(path, *revision_args): + for line_no, line in added_lines(paths, *revision_args): if prohibited_source_line(normalized, line): - hits.append(f"{normalized}:{line_no}:{line}") + hits.append(f"{prefix}{normalized}:{line_no}:{line}") + + +def scan_added_lines(*revision_args: str) -> list[str]: + hits: list[str] = [] + scan_changed_paths(hits, "", *revision_args) return hits @@ -258,7 +275,8 @@ def scan_pending_commits(revision_range: str) -> list[str]: elif parent: # Comparing against the first parent includes a merge resolution's # actual additions for ordinary commits. - paths = git("diff", "--name-only", "-z", "--diff-filter=ACMR", parent, commit, "--", ".") + scan_changed_paths(hits, f"{commit}:", parent, commit) + continue else: paths = git("diff-tree", "--root", "--no-commit-id", "--name-only", "-z", "-r", commit) for raw_path in paths.split(b"\0"): @@ -270,8 +288,6 @@ def scan_pending_commits(revision_range: str) -> list[str]: continue if merge_commit: patch = git("show", "--format=", "--cc", "--no-ext-diff", "--unified=0", commit, "--", path) - elif parent: - patch = git("diff", "--no-ext-diff", "--unified=0", parent, commit, "--", path) else: patch = git("show", "--format=", "--no-ext-diff", "--unified=0", commit, "--", path) for line_no, line in added_patch_lines( diff --git a/scripts/tests/test_prohibited_names.py b/scripts/tests/test_prohibited_names.py index 9c1517474..24b7339e3 100644 --- a/scripts/tests/test_prohibited_names.py +++ b/scripts/tests/test_prohibited_names.py @@ -370,6 +370,51 @@ def test_range_scans_added_text_and_new_commit_messages(self) -> None: self.assertNotEqual(result.returncode, 0) self.assertIn("Ghostty", result.stderr) + def moved_file_repository(self, directory: str) -> tuple[Path, str]: + repository = Path(directory) + run_git(repository, "init", "-q") + run_git(repository, "config", "user.name", "CI test") + run_git(repository, "config", "user.email", "ci@example.invalid") + source = repository / "old_app" / "notes.md" + source.parent.mkdir() + lines = [f"line {number}" for number in range(20)] + ["Compare with Ghostty.", "use old_app::config;"] + source.write_text("\n".join(lines) + "\n", encoding="utf-8") + run_git(repository, "add", ".") + run_git(repository, "commit", "-qm", "baseline") + base = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=repository, text=True).strip() + run_git(repository, "mv", "old_app", "new_app") + moved = repository / "new_app" / "notes.md" + moved.write_text(moved.read_text(encoding="utf-8").replace("old_app::", "new_app::"), encoding="utf-8") + run_git(repository, "add", ".") + return repository, base + + def test_moved_file_checks_only_its_changed_lines(self) -> None: + with tempfile.TemporaryDirectory() as directory: + repository, base = self.moved_file_repository(directory) + self.assertEqual(self.check_staged(repository).returncode, 0) + run_git(repository, "commit", "-qm", "move the application directory") + check = [sys.executable, str(CHECKER), "range", "--base", base, "--head", "HEAD"] + result = subprocess.run(check, cwd=repository, text=True, capture_output=True) + self.assertEqual(result.returncode, 0, result.stderr) + + def test_moved_file_still_rejects_added_names(self) -> None: + with tempfile.TemporaryDirectory() as directory: + repository, base = self.moved_file_repository(directory) + moved = repository / "new_app" / "notes.md" + moved.write_text(moved.read_text(encoding="utf-8") + "Faster than WezTerm.\n", encoding="utf-8") + run_git(repository, "add", ".") + staged = self.check_staged(repository) + self.assertEqual(staged.returncode, 1, staged.stderr) + self.assertIn("new_app/notes.md", staged.stderr) + self.assertNotIn("Ghostty", staged.stderr) + run_git(repository, "commit", "-qm", "move and add a comparison") + check = [sys.executable, str(CHECKER), "range", "--base", base, "--head", "HEAD"] + result = subprocess.run(check, cwd=repository, text=True, capture_output=True) + self.assertEqual(result.returncode, 1, result.stderr) + self.assertIn("new_app/notes.md", result.stderr) + self.assertIn("WezTerm", result.stderr) + self.assertNotIn("Ghostty", result.stderr) + def test_range_scans_a_commit_message_even_when_text_is_legal(self) -> None: with tempfile.TemporaryDirectory() as directory: repository = Path(directory) From c5c317c0829af7a79f2f26c6a84c419d5454b791 Mon Sep 17 00:00:00 2001 From: Kuddev <292709043+Kuddev@users.noreply.github.com> Date: Tue, 10 Nov 2026 00:41:55 +0800 Subject: [PATCH 3/5] Allow the license derivation line in third-party notices Moving a source directory rewrites the notice line that names both the adapted path and its upstream project, which the name check rejected. Only in THIRD-PARTY-NOTICES, a trailing "derives from " is removed before the check; the rest of the line and every other file are still checked. --- .../2026-11-09-notice-derivation-lines.md | 50 +++++++++++++++++++ scripts/check_prohibited_names.py | 4 ++ scripts/tests/test_prohibited_names.py | 11 ++++ 3 files changed, 65 insertions(+) create mode 100644 architecture/notes/scripts/check_prohibited_names/2026-11-09-notice-derivation-lines.md diff --git a/architecture/notes/scripts/check_prohibited_names/2026-11-09-notice-derivation-lines.md b/architecture/notes/scripts/check_prohibited_names/2026-11-09-notice-derivation-lines.md new file mode 100644 index 000000000..d3f06ef36 --- /dev/null +++ b/architecture/notes/scripts/check_prohibited_names/2026-11-09-notice-derivation-lines.md @@ -0,0 +1,50 @@ +# Allow license derivation lines in third-party notices + +## Status + +Accepted with the maintainer-requested Pebrel naming migration, 2026-11-09. + +## Context + +`THIRD-PARTY-NOTICES` names the source path of code adapted from an Apache-2.0 +project and states that it "derives from" that project, as the license requires. +Renaming the source directory changes that line. + +## Evidence + +After moving `nebula_app` to `pebrel_app`, the range check reported only the +notice line for `pebrel_app/src/agent_detection`. The existing attribution +patterns cover copyright and "third-party notice" phrasing, not a derivation +line, and any edit to the path rewrites the line that names the project. + +## Decision + +Only in `THIRD-PARTY-NOTICES`, remove a trailing `derives from ` before the +name check. The rest of the line is still checked, and the same phrase in any +other file is still rejected. + +## Rejected alternatives + +- Exempt the notices file: comparisons or promotion added there would pass. +- Keep the old path in the notice: it would point at a directory that no + longer exists. +- Drop the project name: the license requires the attribution. + +## Consequences + +Notice lines can follow source moves. A comparison or another name on the same +line still fails. + +## Validation + +`test_notice_derivation_is_allowed_only_in_third_party_notices` covers the +allowed line, the same line in another file, and appended text before and after +the derivation. + +## Supersedes + +None. + +## Revisit when + +Notices move to per-component license files. diff --git a/scripts/check_prohibited_names.py b/scripts/check_prohibited_names.py index 4ef649ca4..bd205f0a0 100644 --- a/scripts/check_prohibited_names.py +++ b/scripts/check_prohibited_names.py @@ -79,6 +79,7 @@ re.IGNORECASE, ), ) +NOTICE_DERIVATION_PATTERN = re.compile(r"\bderives from [A-Z][A-Za-z0-9-]*\s*$") DEPENDENCY_REFERENCE_PATTERNS = ( re.compile(r"\bgit\s*=\s*[\"']https?://[^\"']+[\"']", re.IGNORECASE), re.compile(r"\bsource\s*=\s*[\"']git\+https?://[^\"']+[\"']", re.IGNORECASE), @@ -188,6 +189,9 @@ def prohibited(text: str) -> bool: def source_without_allowed_occurrences(path: str, text: str) -> str: for pattern in LEGAL_ATTRIBUTION_PATTERNS: text = pattern.sub("", text) + if path == "THIRD-PARTY-NOTICES": + # 许可证要求的来源声明:只放行行尾的“derives from 上游名”,同行其他文字仍检查。 + text = NOTICE_DERIVATION_PATTERN.sub("", text) if Path(path).name in {"Cargo.toml", "Cargo.lock"} and any( pattern.search(text) for pattern in DEPENDENCY_REFERENCE_PATTERNS ): diff --git a/scripts/tests/test_prohibited_names.py b/scripts/tests/test_prohibited_names.py index 24b7339e3..26a39eb9c 100644 --- a/scripts/tests/test_prohibited_names.py +++ b/scripts/tests/test_prohibited_names.py @@ -171,6 +171,17 @@ def test_inline_legal_attribution_is_allowed_but_comparison_is_not(self) -> None ) ) + def test_notice_derivation_is_allowed_only_in_third_party_notices(self) -> None: + line = "pebrel_app/src/agent_detection derives from Herdr" + self.assertFalse(check_prohibited_names.prohibited_source_line("THIRD-PARTY-NOTICES", line)) + self.assertTrue(check_prohibited_names.prohibited_source_line("README.md", line)) + self.assertTrue(check_prohibited_names.prohibited_source_line( + "THIRD-PARTY-NOTICES", "Herdr users should switch; this derives from Herdr" + )) + self.assertTrue(check_prohibited_names.prohibited_source_line( + "THIRD-PARTY-NOTICES", "derives from Herdr, which is slower than Pebrel" + )) + def test_protocol_identifiers_are_allowed(self) -> None: text = (FIXTURES / "protocol.rs").read_text(encoding="utf-8") self.assertFalse(check_prohibited_names.prohibited_source_line("src/protocol.rs", text)) From 9e46183025d9e5309d97629eeb49a8e766aa0bad Mon Sep 17 00:00:00 2001 From: Kuddev <292709043+Kuddev@users.noreply.github.com> Date: Tue, 10 Nov 2026 02:57:44 +0800 Subject: [PATCH 4/5] Accept moved-root records in the Rust line-budget test The Rust test parses the same budget file and rejected any record with three fields. It now accepts moved records and checks that the new root is declared and the old root is gone; base-relative coverage stays with check_architecture.py. --- nebula_app/tests/file_line_budget.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nebula_app/tests/file_line_budget.rs b/nebula_app/tests/file_line_budget.rs index cdb1ef7b3..c9373a470 100644 --- a/nebula_app/tests/file_line_budget.rs +++ b/nebula_app/tests/file_line_budget.rs @@ -37,8 +37,15 @@ fn every_source_file_respects_its_line_budget() { let mut limit = None; let mut roots = HashSet::new(); let mut exceptions = HashMap::new(); + let mut moves = Vec::new(); for record in POLICY.lines().filter(|record| !record.trim().is_empty()) { let fields = record.split_whitespace().collect::>(); + // Base-relative coverage of a moved root is checked by check_architecture.py. + if fields[0] == "moved" { + assert_eq!(fields.len(), 3, "invalid move record: {record}"); + moves.push((fields[1], fields[2])); + continue; + } assert_eq!(fields.len(), 2, "invalid budget record: {record}"); match fields[0] { "limit" => { @@ -54,6 +61,11 @@ fn every_source_file_respects_its_line_budget() { } let limit = limit.expect("missing default limit"); assert!(limit > 0 && !roots.is_empty()); + for (old, new) in moves { + assert!(roots.contains(new), "moved root target is not a source root: {new}"); + assert!(!roots.contains(old), "moved root source is still a source root: {old}"); + assert!(!repo_root.join(old).exists(), "moved source root still exists: {old}"); + } let mut files = Vec::new(); for root in roots { assert!(!Path::new(root).is_absolute() && !root.contains("..") && !root.contains(':')); From 45c84eb7529fcdf9d0b26e3ba3d5df378ee7270c Mon Sep 17 00:00:00 2001 From: Kuddev <292709043+Kuddev@users.noreply.github.com> Date: Mon, 9 Nov 2026 23:05:07 +0800 Subject: [PATCH 5/5] Rename the workspace crates and their directories to pebrel --- .gitattributes | 14 +- .github/ci-profile.toml | 4 +- .github/workflows/architecture.yml | 8 +- .github/workflows/opencode-bridge.yml | 4 +- .github/workflows/preview-packages.yml | 24 +- .github/workflows/release.yml | 9 +- AGENTS.md | 6 +- CONTRIBUTING.md | 12 +- Cargo.lock | 354 +++++++++--------- Cargo.toml | 30 +- INSTALL.md | 2 +- README.ja.md | 6 +- README.md | 6 +- README.zh-CN.md | 6 +- ROADMAP.md | 36 +- THIRD-PARTY-NOTICES | 6 +- architecture/dependencies.toml | 26 +- architecture/file-budgets.txt | 45 ++- architecture/notes/AGENTS.md | 2 +- ...2026-10-07-independent-history-viewport.md | 4 +- .../2026-10-15-application-wheel-routing.md | 2 +- ...26-09-28-windows-distribution-ownership.md | 2 +- ...6-10-06-default-background-capabilities.md | 2 +- .../packaging/2026-10-16-bounded-xim-atoms.md | 2 +- .../2026-09-30-package-identity.md | 0 .../2026-10-03-caret-argument-roles.md | 6 +- .../2026-09-19-agent-activity-authority.md | 10 +- ...-09-20-pi-settled-version-compatibility.md | 0 ...6-09-20-settings-installation-ownership.md | 4 +- ...026-09-28-local-mode-command-submission.md | 0 ...2026-09-28-opencode-v2-plugin-lifecycle.md | 0 .../2026-09-29-native-agent-transport.md | 8 +- .../ai_hook/2026-10-07-antigravity-hooks.md | 2 +- .../ai_hook/2026-10-07-claude-style-agents.md | 4 +- ...-16-remote-turn-reignite-reconciliation.md | 0 .../2026-10-21-screen-attention-evidence.md | 12 +- .../2026-10-25-antigravity-background-work.md | 0 ...026-10-25-claude-detached-hook-delivery.md | 0 .../2026-10-25-droid-effective-hooks.md | 0 .../2026-11-02-explicit-status-authority.md | 0 .../2026-11-02-native-title-attention.md | 0 ...26-11-02-untyped-notification-authority.md | 0 .../2026-10-06-hook-noop-stability.md | 0 ...10-19-provider-models-and-vector-assets.md | 4 +- ...2026-09-27-reader-presentation-language.md | 4 +- ...2026-09-28-native-conversation-identity.md | 6 +- .../2026-09-28-ssh-transcript-owner.md | 0 .../2026-09-20-backup-preference-autosave.md | 4 +- .../2026-09-30-common-command-sources.md | 2 +- .../2026-09-30-literal-path-edits.md | 0 .../2026-09-30-partial-input-echo.md | 0 .../completion/2026-09-30-request-boundary.md | 2 +- ...26-09-30-semantic-arguments-and-scripts.md | 4 +- .../completion/2026-10-03-scoped-metadata.md | 4 +- .../2026-10-03-workspace-targets.md | 4 +- .../2026-10-23-command-history-clear.md | 8 +- .../2026-09-30-window-animation-ownership.md | 0 .../2026-10-15-table-link-continuations.md | 2 +- .../2026-10-01-inline-token-boundaries.md | 0 .../2026-09-27-first-release-restore.md | 10 +- .../2026-10-03-saved-command-scope.md | 0 .../2026-11-05-symbol-face-macos-m-glyph.md | 0 .../2026-09-30-automatic-tracking-branches.md | 0 .../2026-09-30-background-query-deadline.md | 0 .../2026-09-30-local-branch-context.md | 2 +- .../2026-09-30-reference-roles.md | 2 +- .../2026-10-01-explicit-tracking-arguments.md | 0 .../2026-10-03-execution-scope.md | 4 +- .../2026-09-19-render-resource-lifetimes.md | 8 +- .../2026-09-21-macos-command-key-aliases.md | 0 .../2026-09-27-config-window-startup-size.md | 2 +- ...2026-11-05-directwrite-face-attribution.md | 0 .../2026-10-11-decoded-image-geometry.md | 0 .../2026-09-20-inline-source-reveal.md | 4 +- ...09-21-native-pointer-and-layout-handoff.md | 0 .../2026-10-11-canonical-target-writers.md | 0 .../2026-10-14-inline-code-presentation.md | 0 .../2026-10-14-reader-object-drafts.md | 2 +- .../2026-10-15-link-occurrence-actions.md | 0 ...6-10-02-font-controls-nextest-isolation.md | 2 +- .../2026-10-03-editor-package-transactions.md | 0 .../2026-11-02-glsl-and-script-parameters.md | 0 .../2026-09-19-hidden-output-invalidation.md | 2 +- .../2026-09-20-ligatures-on-a-fixed-grid.md | 4 +- .../terminal/2026-09-25-cursor-motion.md | 0 ...2026-09-29-completion-request-ownership.md | 8 +- ...-09-30-completion-lock-and-cancellation.md | 8 +- ...2026-09-30-formula-selection-projection.md | 0 .../2026-10-12-idle-render-frame-budgets.md | 2 +- .../2026-10-13-images-and-math-projection.md | 0 ...2026-10-23-disconnected-session-actions.md | 0 ...26-10-24-native-result-image-projection.md | 0 .../2026-10-25-activity-probe-owner.md | 0 .../2026-10-25-character-grid-spacing.md | 0 ...dependent-glyphs-and-proportional-grids.md | 2 +- ...estore-text-metrics-and-symbol-fallback.md | 0 ...026-10-26-bounded-character-art-regions.md | 0 ...026-10-26-restore-2-2-2-reading-spacing.md | 0 .../2026-10-06-wgsl-terminal-effects.md | 0 ...07-backend-capability-and-paint-cadence.md | 0 ...2026-10-07-metal-controller-integration.md | 0 .../2026-10-07-portable-source-preparation.md | 0 .../2026-10-20-block-presentation.md | 0 .../2026-10-20-directory-folding.md | 2 +- ...26-10-21-hover-state-and-natural-height.md | 0 ...2026-10-25-json-tree-and-text-selection.md | 0 .../view/2026-10-03-editor-snapshots.md | 2 +- .../view/2026-10-04-remote-editor-startup.md | 2 +- .../2026-10-07-completion-query-ownership.md | 0 .../2026-10-23-powershell-clipboard-paste.md | 10 +- ...26-10-24-failed-local-session-retention.md | 0 ...0-28-application-mouse-gesture-lifetime.md | 0 ...-10-31-native-shell-pointer-coordinates.md | 2 +- .../view/2026-10-31-pi-wheel-paging.md | 0 .../2026-10-06-client-frame-theme-reveal.md | 6 +- ...-19-notification-duration-and-retention.md | 2 +- .../toast/2026-09-20-typed-turn-results.md | 6 +- .../2026-10-02-draft-background-preview.md | 0 .../2026-10-04-product-video-background.md | 0 .../2026-10-04-system-video-worker.md | 0 ...2026-10-05-pinned-renderer-dependencies.md | 0 .../2026-10-05-realtime-background-shaders.md | 0 .../2026-10-05-streaming-gif-pipeline.md | 0 .../2026-10-06-media-backend-boundaries.md | 0 .../2026-10-10-macos-native-video-underlay.md | 0 .../wallpaper/2026-10-24-tab-bar-material.md | 2 +- .../2026-09-22-first-frame-startup.md | 0 .../2026-09-22-nonblocking-first-frame.md | 0 .../workspace/2026-09-28-pane-titles.md | 2 +- .../2026-10-03-duplicate-split-layout.md | 2 +- .../2026-10-03-empty-workspace-residency.md | 0 .../2026-10-03-ordinary-window-geometry.md | 0 .../2026-10-03-pane-position-exchange.md | 0 .../2026-10-07-keyboard-override-sources.md | 0 ...2026-10-10-entity-owned-port-completion.md | 0 .../2026-10-10-tab-drag-release-dispatch.md | 0 .../2026-10-21-root-background-refresh.md | 0 .../2026-10-21-single-background-opacity.md | 0 .../2026-10-21-spinner-render-scope.md | 14 +- .../workspace/2026-10-25-shell-event-wake.md | 0 ...6-10-28-system-session-end-preservation.md | 2 +- .../2026-10-10-pane-cwd-following.md | 0 ...-13-cancelled-listing-session-ownership.md | 0 ...026-11-02-batch-selection-and-transfers.md | 0 .../2026-09-20-visible-row-rendering.md | 0 ...-10-25-runtime-geometry-acknowledgement.md | 0 ...2026-09-19-modified-enter-compatibility.md | 4 +- ...09-21-runtime-codex-submission-boundary.md | 6 +- .../2026-09-23-configurable-tab-rename.md | 0 ...-10-15-macos-control-character-defaults.md | 0 .../2026-11-01-codebuddy-modified-enter.md | 2 +- .../2026-11-05-windows-pointer-auto-hide.md | 2 +- .../luau/2026-11-02-bounded-luau-vms.md | 6 +- ...2026-09-26-process-owned-phone-settings.md | 2 +- .../2026-09-28-lan-address-recovery.md | 0 ...-09-29-preserve-preferred-lan-interface.md | 0 .../2026-10-07-isolate-lan-route-changes.md | 0 .../2026-10-21-diff-presentation.md | 0 .../2026-10-25-command-frequency.md | 0 .../platform/2026-09-22-acrylic-controller.md | 8 +- .../2026-09-22-acrylic-window-transitions.md | 2 +- .../2026-09-23-local-color-capabilities.md | 0 .../2026-09-28-wsl-zsh-startup-integration.md | 2 +- .../2026-09-29-desktop-adapter-boundaries.md | 0 .../2026-10-04-owned-process-startup.md | 2 +- ...6-10-07-composited-client-theme-capture.md | 0 .../2026-10-13-bounded-wsl-guest-probes.md | 0 .../2026-10-14-linux-desktop-lifecycle.md | 0 .../2026-10-23-wsl-startup-directory.md | 4 +- .../2026-10-23-reusable-probe-process.md | 0 .../windows/2026-10-26-update-quiescence.md | 0 .../2026-10-10-privileged-launch-handover.md | 0 ...-09-20-actionable-notification-lifetime.md | 0 .../startup/2026-10-10-login-launch-intent.md | 6 +- .../2026-10-21-privileged-storage.md | 0 .../2026-09-20-wsl-hook-transport.md | 0 .../2026-09-28-bounded-command-foundation.md | 0 .../2026-10-01-core-experience-boundary.md | 2 +- ...6-11-09-install-library-and-theme-grant.md | 2 +- .../2026-10-29-native-prediction-ownership.md | 0 .../2026-10-29-native-runtime-predictions.md | 0 .../2026-10-29-upstream-prompt-boundary.md | 0 ...026-10-11-macos-legacy-build-boundaries.md | 0 .../2026-09-28-mobile-color-grid.md | 0 .../2026-10-06-mobile-wheel-viewport.md | 0 .../2026-10-23-resident-endpoint-lifetime.md | 2 +- ...10-29-consume-ambiguous-window-handover.md | 0 ...26-10-13-renderer-independent-scrollbar.md | 0 .../2026-10-13-native-serial-transport.md | 2 +- .../2026-09-21-native-resume-identity.md | 0 ...026-09-21-windows-open-rollout-and-exit.md | 10 +- .../2026-09-28-wsl-spawn-distro-snapshot.md | 0 .../ssh/2026-10-21-wsl-config-discovery.md | 0 .../2026-09-28-independent-host-copies.md | 0 .../2026-09-29-terminal-proxy-scheme.md | 0 .../2026-09-30-terminal-proxy-bypass.md | 0 .../2026-09-19-system-agent-authentication.md | 8 +- .../2026-09-26-pane-local-forwarding.md | 0 .../2026-10-23-bounded-output-draining.md | 0 .../2026-10-23-shell-duplex-backpressure.md | 4 +- .../2026-10-25-pane-session-recovery.md | 0 .../2026-10-25-sftp-negotiation-ownership.md | 0 .../2026-11-01-posix-startup-quoting.md | 2 +- .../2026-11-02-tmux-agent-observations.md | 4 +- .../2026-11-05-shared-keepalive-budget.md | 0 ...6-11-05-unobserved-multiplexer-evidence.md | 14 +- .../2026-10-23-buffered-local-transfer-io.md | 0 .../ssh_sftp/2026-10-24-pane-file-intake.md | 0 .../2026-11-02-streamed-file-previews.md | 0 ...2026-10-02-background-theme-publication.md | 0 .../2026-11-08-on-demand-community-catalog.md | 0 .../2026-10-02-portable-resource-package.md | 0 .../2026-09-23-public-release-fallback.md | 0 .../2026-09-23-macos-bundle-handoff.md | 0 .../2026-10-21-privileged-recovery.md | 0 ...026-10-03-media-qualification-lifecycle.md | 0 .../2026-09-23-bounded-forwarding-lifetime.md | 6 +- ...026-10-03-explicit-shader-authorization.md | 0 .../2026-10-04-explicit-source-kind.md | 0 .../completion/2026-09-30-completion-modes.md | 8 +- .../2026-11-02-script-ui-defaults.md | 8 +- .../2026-09-25-opt-in-cursor-motion.md | 0 ...2026-09-30-inherited-environment-choice.md | 2 +- ...6-10-29-independent-prediction-settings.md | 6 +- .../2026-10-03-scrollbar-visibility.md | 0 .../2026-10-06-ordered-source-chain.md | 4 +- .../2026-10-01-light-theme-identities.md | 2 +- ...2026-10-13-parser-input-sync-accounting.md | 0 .../2026-10-23-network-synchronized-frames.md | 2 +- .../grid/2026-10-24-grid-content-ownership.md | 0 ...6-10-24-native-markers-and-image-guards.md | 0 .../2026-10-18-native-result-surfaces.md | 0 .../2026-10-19-command-output-lenses.md | 0 .../2026-10-19-unified-result-scroll.md | 0 ...20-directory-results-and-bounded-tables.md | 2 +- .../2026-10-21-bounded-output-store.md | 0 .../2026-10-25-kitty-graphics-placements.md | 6 +- .../2026-10-30-bounded-transfer-store.md | 2 +- .../2026-10-30-ordered-placements.md | 0 .../2026-10-21-osc7501-record-lifecycle.md | 8 +- .../2026-10-03-bounded-command-output.md | 6 +- .../2026-10-13-faint-color-ownership.md | 0 ...26-09-20-native-prompt-input-boundaries.md | 0 ...09-26-silent-color-report-subscriptions.md | 0 .../2026-09-27-grid-owned-inline-images.md | 6 +- .../2026-09-28-no-image-grid-fast-path.md | 0 .../term/2026-10-03-emoji-input-clusters.md | 0 .../term/2026-10-05-emoji-input-state-cost.md | 0 .../tty/2026-10-31-native-shell-pointer.md | 0 .../2026-10-31-powershell-native-pointer.md | 0 .../2026-11-01-legacy-powershell-pointer.md | 2 +- .../2026-10-03-prompt-wrapper-ownership.md | 0 ...026-10-07-restored-powershell-bootstrap.md | 0 .../2026-11-05-cancel-unsupported-zmodem.md | 4 +- .../2026-11-09-moved-source-roots.md | 2 +- ...6-11-08-allow-terminal-multiplexer-name.md | 2 +- .../ci/2026-09-25-shared-native-pr-cache.md | 2 +- docs/answer-reader-language.md | 6 +- docs/architecture-decisions.md | 12 +- docs/architecture.md | 56 +-- docs/internationalization.md | 20 +- docs/lua-configuration.md | 12 +- docs/math-rendering-test.md | 2 +- docs/project-constraints.md | 4 +- docs/runtime-control-api.md | 6 +- extra/completions/README.md | 4 +- extra/logo/README.md | 18 +- mobile/android/app/build.gradle.kts | 4 +- mobile/tools/generate_assets.py | 4 +- nebula_gpui/src/main.rs | 3 - .../Cargo.toml | 0 .../src/color.rs | 0 .../src/command_context.rs | 0 .../src/command_search.rs | 0 .../src/completer.rs | 0 .../src/directory.rs | 0 .../src/file.rs | 0 .../src/lib.rs | 0 .../src/matcher.rs | 0 .../src/options.rs | 0 .../src/semantic.rs | 0 .../src/semantic/common.rs | 0 .../src/semantic/git.rs | 0 .../src/semantic/scripts.rs | 0 .../src/semantic/tests.rs | 0 .../src/span.rs | 0 .../src/static_completion.rs | 0 .../src/suggestion.rs | 0 {nebula_app => pebrel_app}/AGENTS.md | 50 +-- {nebula_app => pebrel_app}/CHANGELOG.md | 0 {nebula_app => pebrel_app}/Cargo.toml | 30 +- {nebula_app => pebrel_app}/README.md | 0 .../assets/icons/nebula-agent-antigravity.svg | 0 .../icons/nebula-agent-antigravity.svgz | Bin .../assets/icons/nebula-agent-codebuddy.svg | 0 .../assets/icons/nebula-agent-codebuddy.svgz | Bin .../assets/icons/nebula-agent-copilot.svg | 0 .../assets/icons/nebula-agent-copilot.svgz | Bin .../assets/icons/nebula-agent-cursor.svg | 0 .../assets/icons/nebula-agent-cursor.svgz | Bin .../assets/icons/nebula-agent-grok.svg | 0 .../assets/icons/nebula-agent-grok.svgz | Bin .../assets/icons/nebula-agent-hermes.svg | 0 .../assets/icons/nebula-agent-hermes.svgz | Bin .../assets/icons/nebula-agent-openai.svg | 0 .../assets/icons/nebula-agent-openai.svgz | Bin .../assets/icons/nebula-agent-opencode.svg | 0 .../assets/icons/nebula-agent-opencode.svgz | Bin .../assets/icons/nebula-agent-pi.svg | 0 .../assets/icons/nebula-agent-pi.svgz | Bin .../assets/icons/nebula-agent-qoder.svg | 0 .../assets/icons/nebula-agent-qoder.svgz | Bin .../assets/icons/nebula-agent-qwen.svg | 0 .../assets/icons/nebula-agent-qwen.svgz | Bin .../assets/icons/nebula-backup-check.svg | 0 .../assets/icons/nebula-backup-check.svgz | Bin .../assets/icons/nebula-backup-cloud.svg | 0 .../assets/icons/nebula-backup-cloud.svgz | Bin .../assets/icons/nebula-backup-database.svg | 0 .../assets/icons/nebula-backup-database.svgz | Bin .../assets/icons/nebula-backup-drive.svg | 0 .../assets/icons/nebula-backup-drive.svgz | Bin .../assets/icons/nebula-backup-folder.svg | 0 .../assets/icons/nebula-backup-folder.svgz | Bin .../assets/icons/nebula-backup-globe.svg | 0 .../assets/icons/nebula-backup-globe.svgz | Bin .../assets/icons/nebula-backup-lock.svg | 0 .../assets/icons/nebula-backup-lock.svgz | Bin .../assets/icons/nebula-backup-server.svg | 0 .../assets/icons/nebula-backup-server.svgz | Bin .../assets/icons/nebula-brain.svg | 0 .../assets/icons/nebula-brain.svgz | Bin .../assets/icons/nebula-clipboard-paste.svg | 0 .../assets/icons/nebula-clipboard-paste.svgz | Bin .../assets/icons/nebula-clock.svg | 0 .../assets/icons/nebula-clock.svgz | Bin .../assets/icons/nebula-command-manager.svg | 0 .../assets/icons/nebula-command-manager.svgz | Bin .../assets/icons/nebula-credit-card.svg | 0 .../assets/icons/nebula-credit-card.svgz | Bin .../assets/icons/nebula-download.svg | 0 .../assets/icons/nebula-download.svgz | Bin .../assets/icons/nebula-keymap.svg | 0 .../assets/icons/nebula-keymap.svgz | Bin .../assets/icons/nebula-layout-grid.svg | 0 .../assets/icons/nebula-layout-grid.svgz | Bin .../assets/icons/nebula-mouse-pointer.svg | 0 .../assets/icons/nebula-mouse-pointer.svgz | Bin .../assets/icons/nebula-pencil.svg | 0 .../assets/icons/nebula-pencil.svgz | Bin .../assets/icons/nebula-phone.svg | 0 .../assets/icons/nebula-phone.svgz | Bin .../assets/icons/nebula-pin.svg | 0 .../assets/icons/nebula-pin.svgz | Bin .../icons/nebula-provider-anthropic.svg | 0 .../icons/nebula-provider-anthropic.svgz | Bin .../assets/icons/nebula-provider-azure.svg | 0 .../assets/icons/nebula-provider-azure.svgz | Bin .../assets/icons/nebula-provider-deepseek.svg | 0 .../icons/nebula-provider-deepseek.svgz | Bin .../assets/icons/nebula-provider-doubao.svg | 0 .../assets/icons/nebula-provider-doubao.svgz | Bin .../assets/icons/nebula-provider-gemini.svg | 0 .../assets/icons/nebula-provider-gemini.svgz | Bin .../assets/icons/nebula-provider-ollama.svg | 0 .../assets/icons/nebula-provider-ollama.svgz | Bin .../icons/nebula-provider-openrouter.svg | 0 .../icons/nebula-provider-openrouter.svgz | Bin .../assets/icons/nebula-provider-qwen.svg | 0 .../assets/icons/nebula-provider-qwen.svgz | Bin .../icons/nebula-provider-xiaomimimo.svg | 0 .../icons/nebula-provider-xiaomimimo.svgz | Bin .../assets/icons/nebula-provider-zhipu.svg | 0 .../assets/icons/nebula-provider-zhipu.svgz | Bin .../assets/icons/nebula-puzzle.svg | 0 .../assets/icons/nebula-puzzle.svgz | Bin .../assets/icons/nebula-refresh.svg | 0 .../assets/icons/nebula-refresh.svgz | Bin .../assets/icons/nebula-shield.svg | 0 .../assets/icons/nebula-shield.svgz | Bin .../assets/icons/nebula-sliders.svg | 0 .../assets/icons/nebula-sliders.svgz | Bin .../assets/icons/nebula-spinner-arc.svg | 0 .../assets/icons/nebula-spinner-arc.svgz | Bin .../assets/icons/nebula-spinner-track.svg | 0 .../assets/icons/nebula-spinner-track.svgz | Bin .../assets/icons/nebula-terminal.svg | 0 .../assets/icons/nebula-terminal.svgz | Bin .../assets/icons/nebula-trash-2.svg | 0 .../assets/icons/nebula-trash-2.svgz | Bin .../assets/icons/nebula-vcs-changes.svg | 0 .../assets/icons/nebula-vcs-changes.svgz | Bin .../assets/icons/nebula-vcs-conflict.svg | 0 .../assets/icons/nebula-vcs-conflict.svgz | Bin .../assets/icons/nebula-vcs-history.svg | 0 .../assets/icons/nebula-vcs-history.svgz | Bin .../assets/icons/nebula-waiting-hand.svg | 0 .../assets/icons/nebula-waiting-hand.svgz | Bin .../assets/icons/nebula-wallet.svg | 0 .../assets/icons/nebula-wallet.svgz | Bin .../assets/icons/nebula-waypoints.svg | 0 .../assets/icons/nebula-waypoints.svgz | Bin {nebula_app => pebrel_app}/build.rs | 2 +- {nebula_app => pebrel_app}/build/i18n.rs | 12 +- .../build/i18n/catalog.rs | 0 .../examples/plugins/lua-overview/init.luau | 0 .../examples/plugins/lua-overview/plugin.toml | 0 .../plugins/native-overview/plugin.toml | 0 .../plugins/theme-generator/init.luau | 0 .../plugins/theme-generator/plugin.toml | 0 .../examples/shaders/background.glsl | 0 .../examples/shaders/scanlines.frag | 0 {nebula_app => pebrel_app}/extra | 0 {nebula_app => pebrel_app}/i18n/de-DE.json | 0 {nebula_app => pebrel_app}/i18n/en-US.json | 0 {nebula_app => pebrel_app}/i18n/es-ES.json | 0 {nebula_app => pebrel_app}/i18n/fr-FR.json | 0 {nebula_app => pebrel_app}/i18n/it-IT.json | 0 {nebula_app => pebrel_app}/i18n/ja-JP.json | 0 {nebula_app => pebrel_app}/i18n/ko-KR.json | 0 {nebula_app => pebrel_app}/i18n/pt-BR.json | 0 {nebula_app => pebrel_app}/i18n/ru-RU.json | 0 {nebula_app => pebrel_app}/i18n/zh-CN.json | 0 {nebula_app => pebrel_app}/i18n/zh-TW.json | 0 .../res/gles2/text.f.glsl | 0 .../res/gles2/text.v.glsl | 0 .../res/glsl3/text.f.glsl | 0 .../res/glsl3/text.v.glsl | 0 .../res/hooks/opencode.js | 0 {nebula_app => pebrel_app}/res/hooks/pi.ts | 0 .../res/hooks/remote_bridge.py | 0 .../res/hooks/remote_files.py | 0 .../res/hooks/remote_shell.py | 0 .../res/hooks/remote_tmux.py | 0 {nebula_app => pebrel_app}/res/image.f.glsl | 0 {nebula_app => pebrel_app}/res/image.v.glsl | 0 {nebula_app => pebrel_app}/res/math.f.glsl | 0 {nebula_app => pebrel_app}/res/math.v.glsl | 0 .../claude/.claude-plugin/plugin.json | 0 .../res/prompt-suggestions/claude/README.md | 0 .../claude/hooks/hooks.json | 0 .../prompt-suggestions/claude/hooks/prompt.js | 0 .../prompt-suggestions/claude/package.json | 0 .../claude/tests/prompt.test.mjs | 0 .../res/prompt-suggestions/opencode/index.tsx | 0 .../prompt-suggestions/opencode/session.mjs | 0 .../opencode/session.test.mjs | 0 .../res/prompt-suggestions/pi/editor.mjs | 0 .../res/prompt-suggestions/pi/editor.test.mjs | 0 .../res/prompt-suggestions/pi/index.ts | 0 .../res/prompt-suggestions/shared/client.mjs | 0 .../prompt-suggestions/shared/client.test.mjs | 0 .../res/prompts/codex_prompt_suggestion.txt | 0 {nebula_app => pebrel_app}/res/rect.f.glsl | 0 {nebula_app => pebrel_app}/res/rect.v.glsl | 0 {nebula_app => pebrel_app}/res/shell/bashrc | 0 .../res/shell/powershell.ps1 | 0 .../res/shell/ssh-config-reader.py | 0 .../res/shell/wsl-guest-probe.sh | 2 +- {nebula_app => pebrel_app}/res/shell/zprofile | 0 {nebula_app => pebrel_app}/res/shell/zshenv | 0 {nebula_app => pebrel_app}/res/shell/zshrc | 0 {nebula_app => pebrel_app}/res/ui.f.glsl | 0 {nebula_app => pebrel_app}/res/ui.v.glsl | 0 .../src/agent_detection/_shared.toml | 0 .../src/agent_detection/amp.toml | 0 .../src/agent_detection/antigravity.toml | 0 .../src/agent_detection/claude.toml | 0 .../src/agent_detection/cline.toml | 0 .../src/agent_detection/codebuddy.toml | 0 .../src/agent_detection/codex.toml | 0 .../src/agent_detection/copilot.toml | 0 .../src/agent_detection/cursor.toml | 0 .../src/agent_detection/devin.toml | 0 .../src/agent_detection/droid.toml | 0 .../src/agent_detection/gemini.toml | 0 .../src/agent_detection/grok.toml | 0 .../src/agent_detection/hermes.toml | 0 .../src/agent_detection/kilo.toml | 0 .../src/agent_detection/kimi.toml | 0 .../src/agent_detection/kiro.toml | 0 .../src/agent_detection/maki.toml | 0 .../src/agent_detection/opencode.toml | 0 .../src/agent_detection/pi.toml | 0 .../src/agent_detection/qodercli.toml | 0 {nebula_app => pebrel_app}/src/agent_env.rs | 0 {nebula_app => pebrel_app}/src/ai_agents.rs | 4 +- .../src/ai_agents/native_title.rs | 0 .../src/ai_agents/screen_context.rs | 0 .../src/ai_assistant.rs | 0 {nebula_app => pebrel_app}/src/ai_hook.rs | 0 .../src/ai_hook/bridges.rs | 0 .../src/ai_hook/event.rs | 0 .../src/ai_hook/installation.rs | 0 .../src/ai_hook/installation/notify.rs | 0 .../src/ai_hook/integrations.rs | 2 +- .../src/ai_hook/lifecycle.rs | 0 .../src/ai_hook/lifecycle/tests.rs | 0 .../src/ai_hook/local.rs | 8 +- .../src/ai_hook/local/antigravity.rs | 0 .../src/ai_hook/local/claude_style.rs | 2 +- .../src/ai_hook/local/codex_hooks.rs | 0 .../src/ai_hook/local/codex_notify.rs | 0 .../src/ai_hook/local/config_guard.rs | 4 +- .../src/ai_hook/local/cursor.rs | 0 .../src/ai_hook/local/extended.rs | 2 +- .../src/ai_hook/local/kimi.rs | 0 .../src/ai_hook/local/managed_files.rs | 0 .../src/ai_hook/local/runtime_skills.rs | 0 .../src/ai_hook/local/settings.rs | 6 +- .../src/ai_hook/native_events.rs | 0 .../src/ai_hook/native_tests.rs | 0 .../src/ai_hook/ordering.rs | 0 .../src/ai_hook/payload.rs | 0 .../src/ai_hook/protocol.rs | 4 +- .../src/ai_hook/remote.rs | 4 +- .../src/ai_hook/remote/tests.rs | 0 .../src/ai_hook/tests.rs | 2 +- .../src/ai_hook/unix.rs | 0 .../src/ai_hook/windows.rs | 0 .../src/ai_providers.rs | 0 .../src/ai_providers/agent_config.rs | 0 .../src/ai_providers/editor.rs | 0 .../src/ai_providers/install.rs | 0 .../src/ai_providers/install/grok.ps1 | 0 .../src/ai_providers/install/node.ps1 | 0 .../src/ai_providers/install/node.sh | 0 .../src/ai_providers/models.rs | 0 {nebula_app => pebrel_app}/src/ai_sessions.rs | 0 {nebula_app => pebrel_app}/src/app_icon.rs | 6 +- .../src/app_icon/windows/taskbar.rs | 2 +- .../src/app_icon/windows/taskbar/shortcuts.rs | 0 .../src/assistant_answer.rs | 0 .../src/assistant_answer/conversation.rs | 0 .../assistant_answer/conversation/remote.rs | 0 .../conversation/remote_read.py | 0 .../src/assistant_answer/document.rs | 0 {nebula_app => pebrel_app}/src/atomic_file.rs | 0 .../src/backup_remote.rs | 0 .../src/backup_remote/credential_tests.rs | 0 .../src/backup_remote/listing.rs | 0 .../src/backup_remote/preferences.rs | 0 {nebula_app => pebrel_app}/src/brand.rs | 0 {nebula_app => pebrel_app}/src/chemistry.rs | 0 {nebula_app => pebrel_app}/src/cli.rs | 4 +- {nebula_app => pebrel_app}/src/clipboard.rs | 2 +- .../src/codex_config.rs | 0 .../src/command_lenses.rs | 2 +- {nebula_app => pebrel_app}/src/completion.rs | 32 +- .../src/completion/connections.rs | 4 +- .../src/completion/metadata.rs | 6 +- .../src/completion/paths.rs | 0 .../src/completion/project_probe.py | 0 .../src/completion/project_scripts.rs | 0 .../completion/project_scripts/workspace.rs | 0 .../src/completion_context.rs | 2 +- .../src/completion_context/tests.rs | 0 {nebula_app => pebrel_app}/src/config/bell.rs | 2 +- .../src/config/bindings.rs | 6 +- .../src/config/bindings/defaults.rs | 2 +- .../src/config/color.rs | 2 +- .../src/config/cursor.rs | 4 +- .../src/config/debug.rs | 2 +- .../src/config/desktop.rs | 6 +- {nebula_app => pebrel_app}/src/config/font.rs | 2 +- .../src/config/general.rs | 2 +- .../src/config/lua/convert.rs | 0 .../src/config/lua/mod.rs | 2 +- .../src/config/lua/modules.rs | 0 .../src/config/lua/runtime.rs | 0 {nebula_app => pebrel_app}/src/config/mod.rs | 0 .../src/config/monitor.rs | 2 +- .../src/config/mouse.rs | 2 +- .../src/config/reload.rs | 0 .../src/config/scrolling.rs | 2 +- .../src/config/selection.rs | 4 +- .../src/config/serde_utils.rs | 0 .../src/config/shaders.rs | 4 +- .../src/config/source.rs | 4 +- .../src/config/template.rs | 0 .../src/config/templates/pebrel.en-US.luau | 0 .../src/config/templates/pebrel.zh-CN.luau | 0 .../src/config/terminal.rs | 4 +- .../src/config/ui_config.rs | 22 +- .../src/config/window.rs | 2 +- {nebula_app => pebrel_app}/src/config_cli.rs | 0 .../src/console_main.rs | 0 {nebula_app => pebrel_app}/src/daemon.rs | 0 .../src/directory_history.rs | 2 +- .../src/display/animations.rs | 0 .../src/display/background_color_model.rs | 0 .../src/display/bell.rs | 0 .../src/display/chrome.rs | 24 +- .../src/display/color.rs | 6 +- .../src/display/command_completion.rs | 0 .../src/display/command_palette.rs | 2 +- .../src/display/command_palette/catalog.rs | 2 +- .../src/display/completion.rs | 0 .../src/display/confirmation_text.rs | 0 .../src/display/content.rs | 34 +- .../src/display/context_menu.rs | 0 .../src/display/context_menu_model.rs | 0 .../src/display/cursor.rs | 2 +- .../src/display/damage.rs | 8 +- .../src/display/document_model.rs | 0 .../src/display/file_dialog.rs | 0 .../src/display/file_dialog/desktop.rs | 0 .../src/display/file_dialog/folder.rs | 0 .../src/display/file_dialog/windows.rs | 0 .../src/display/file_operations.rs | 0 .../src/display/hint.rs | 24 +- .../src/display/hint/table.rs | 2 +- .../src/display/image_viewer.rs | 0 .../src/display/inline_image.rs | 8 +- .../src/display/input_state.rs | 28 +- .../src/display/keymap.rs | 8 +- .../src/display/markdown_view.rs | 2 +- .../src/display/message_queue_entry.rs | 2 +- .../src/display/meter.rs | 2 +- {nebula_app => pebrel_app}/src/display/mod.rs | 32 +- .../src/display/network_proxy_model.rs | 0 .../src/display/program_identity.rs | 0 .../src/display/proxy_editor.rs | 0 .../src/display/settings.rs | 34 +- .../src/display/sftp_panel.rs | 0 .../src/display/side_panel/enumerate.rs | 0 .../src/display/side_panel/gitignore.rs | 0 .../src/display/side_panel/gitignore_tests.rs | 0 .../src/display/side_panel/icons.rs | 0 .../src/display/side_panel/mod.rs | 14 +- .../src/display/side_panel/notice.rs | 0 .../src/display/side_panel/render.rs | 0 .../src/display/side_panel/search.rs | 0 .../src/display/side_panel/search/cache.rs | 0 .../src/display/side_panel/search/matching.rs | 0 .../src/display/side_panel/search/memory.rs | 0 .../src/display/side_panel/search/stress.rs | 0 .../src/display/side_panel/search/tests.rs | 0 .../src/display/side_panel/search/walk.rs | 0 .../src/display/side_panel/search/worker.rs | 0 .../src/display/side_panel/tests.rs | 6 +- .../src/display/side_panel/vcs.rs | 0 .../src/display/size_info.rs | 6 +- .../src/display/ssh_connect.rs | 2 +- .../src/display/ssh_editor_input.rs | 0 .../src/display/ssh_editor_render.rs | 0 .../src/display/ssh_ui.rs | 0 .../src/display/state.rs | 6 +- .../src/display/suggest_engine.rs | 0 .../src/display/surface_opacity.rs | 0 .../src/display/terminal_color.rs | 8 +- .../src/display/terminal_math.rs | 12 +- .../src/display/terminal_math/scan.rs | 0 .../src/display/terminal_math/tests.rs | 6 +- .../src/display/text_input.rs | 0 .../src/display/text_path_model.rs | 0 .../src/display/toast.rs | 0 .../src/display/ui/caret.rs | 0 .../src/display/ui/color_math.rs | 0 .../src/display/ui/geometry.rs | 0 .../src/display/ui/guardrails.rs | 0 .../src/display/ui/icons.rs | 0 .../src/display/ui/keycap.rs | 0 .../src/display/ui/keycap_model.rs | 0 .../src/display/ui/mod.rs | 0 .../src/display/ui/os_icons.rs | 0 .../src/display/ui/overlay_list.rs | 0 .../src/display/ui/surface.rs | 0 .../src/display/ui/text_field.rs | 0 .../src/display/ui/theme.rs | 24 +- .../src/display/ui/toast.rs | 0 .../src/display/ui/toast_kind.rs | 0 .../src/display/ui/tokens.rs | 0 .../src/display/ui/widgets.rs | 0 .../src/display/window.rs | 4 +- {nebula_app => pebrel_app}/src/document_io.rs | 0 .../src/encrypted_backup.rs | 6 +- .../src/encrypted_backup/recovery.rs | 0 {nebula_app => pebrel_app}/src/event.rs | 22 +- .../src/event/agent_runtime.rs | 0 .../src/event/input_state.rs | 8 +- .../src/event/link_open.rs | 0 {nebula_app => pebrel_app}/src/event/proxy.rs | 2 +- .../src/event/quick_hotkey.rs | 0 .../src/event/runtime_control.rs | 0 .../src/event/search_state.rs | 4 +- {nebula_app => pebrel_app}/src/event/types.rs | 6 +- {nebula_app => pebrel_app}/src/file_uri.rs | 4 +- .../src/font_install.rs | 0 .../src/git_completion.rs | 6 +- .../src/git_completion/tracking.rs | 0 .../src/git_worktree.rs | 0 .../src/git_worktree/status.rs | 0 .../src/gpui_shell/assets.rs | 0 .../src/gpui_shell/background_color.rs | 2 +- .../src/gpui_shell/code_tab.rs | 0 .../src/gpui_shell/code_tab/merge_error.rs | 0 .../code_tab/native_localization_tests.rs | 2 +- .../src/gpui_shell/completion_history.rs | 0 .../src/gpui_shell/config.rs | 58 +-- .../src/gpui_shell/config/source.rs | 4 +- .../src/gpui_shell/copy_feedback.rs | 0 .../src/gpui_shell/doc_tabs.rs | 0 .../doc_tabs/image_geometry_tests.rs | 0 .../src/gpui_shell/doc_tabs/image_source.rs | 0 .../src/gpui_shell/file_drop.rs | 0 .../src/gpui_shell/file_editor/activity.rs | 0 .../gpui_shell/file_editor/block_inline.rs | 0 .../gpui_shell/file_editor/block_structure.rs | 0 .../src/gpui_shell/file_editor/chrome.rs | 0 .../gpui_shell/file_editor/code_actions.rs | 0 .../file_editor/code_actions_tests.rs | 0 .../src/gpui_shell/file_editor/details.rs | 0 .../src/gpui_shell/file_editor/document.rs | 0 .../file_editor/document/writer_tests.rs | 0 .../file_editor/document/writers.rs | 0 .../gpui_shell/file_editor/edit_history.rs | 0 .../src/gpui_shell/file_editor/focus_tests.rs | 0 .../src/gpui_shell/file_editor/image_cache.rs | 0 .../src/gpui_shell/file_editor/images.rs | 0 .../src/gpui_shell/file_editor/info.rs | 0 .../src/gpui_shell/file_editor/inline_edit.rs | 0 .../file_editor/inline_live_tests.rs | 0 .../file_editor/inline_object_tests.rs | 0 .../file_editor/inline_selection.rs | 0 .../file_editor/inline_selection_tests.rs | 0 .../src/gpui_shell/file_editor/input_rules.rs | 0 .../gpui_shell/file_editor/link_actions.rs | 0 .../gpui_shell/file_editor/live_commands.rs | 0 .../src/gpui_shell/file_editor/live_edit.rs | 0 .../gpui_shell/file_editor/live_navigation.rs | 0 .../gpui_shell/file_editor/live_selection.rs | 0 .../src/gpui_shell/file_editor/live_tests.rs | 0 .../src/gpui_shell/file_editor/loading.rs | 0 .../src/gpui_shell/file_editor/mod.rs | 0 .../src/gpui_shell/file_editor/object_edit.rs | 0 .../gpui_shell/file_editor/object_source.rs | 0 .../src/gpui_shell/file_editor/object_view.rs | 0 .../src/gpui_shell/file_editor/outline.rs | 0 .../gpui_shell/file_editor/outline_view.rs | 0 .../src/gpui_shell/file_editor/preview.rs | 0 .../file_editor/reader_presentation.rs | 0 .../src/gpui_shell/file_editor/source.rs | 0 .../file_editor/structure_commands.rs | 0 .../file_editor/structure_inline_view.rs | 0 .../gpui_shell/file_editor/structure_tests.rs | 0 .../gpui_shell/file_editor/structure_view.rs | 0 .../src/gpui_shell/file_editor/tests.rs | 0 .../src/gpui_shell/file_preview.rs | 0 .../src/gpui_shell/font_loading.rs | 2 +- .../src/gpui_shell/http.rs | 0 .../src/gpui_shell/math_view.rs | 0 .../gpui_shell/math_view/source_fallback.rs | 0 .../src/gpui_shell/mod.rs | 18 +- .../src/gpui_shell/molecule_view.rs | 0 .../src/gpui_shell/motion.rs | 0 .../src/gpui_shell/network_settings.rs | 4 +- .../src/gpui_shell/prelude.rs | 0 .../src/gpui_shell/scientific_render.rs | 0 .../scientific_render/corpus_tests.rs | 0 .../src/gpui_shell/session_restore.rs | 4 +- .../src/gpui_shell/settings_fixture.rs | 2 +- .../src/gpui_shell/settings_pane.rs | 16 +- .../src/gpui_shell/settings_pane/about.rs | 0 .../src/gpui_shell/settings_pane/agents.rs | 2 +- .../gpui_shell/settings_pane/agents/tests.rs | 4 +- .../src/gpui_shell/settings_pane/app_icon.rs | 2 +- .../gpui_shell/settings_pane/appearance.rs | 0 .../settings_pane/appearance_advanced.rs | 0 .../settings_pane/appearance_picker.rs | 14 +- .../settings_pane/appearance_picker_tests.rs | 12 +- .../settings_pane/background_shader.rs | 2 +- .../src/gpui_shell/settings_pane/backup.rs | 0 .../gpui_shell/settings_pane/backup/drawer.rs | 0 .../gpui_shell/settings_pane/backup/form.rs | 0 .../settings_pane/backup/operations.rs | 0 .../gpui_shell/settings_pane/backup/setup.rs | 0 .../gpui_shell/settings_pane/backup/tests.rs | 0 .../gpui_shell/settings_pane/backup/view.rs | 0 .../settings_pane/command_history.rs | 0 .../settings_pane/command_history/tests.rs | 0 .../gpui_shell/settings_pane/cursor_motion.rs | 0 .../cursor_motion/native_tests.rs | 2 +- .../settings_pane/cursor_motion/tests.rs | 12 +- .../src/gpui_shell/settings_pane/design.rs | 2 +- .../gpui_shell/settings_pane/font_picker.rs | 4 +- .../settings_pane/initialization.rs | 22 +- .../src/gpui_shell/settings_pane/keymap.rs | 4 +- .../settings_pane/launcher_actions.rs | 0 .../gpui_shell/settings_pane/localization.rs | 6 +- .../src/gpui_shell/settings_pane/mobile.rs | 0 .../gpui_shell/settings_pane/mobile/relay.rs | 0 .../gpui_shell/settings_pane/mobile/tests.rs | 0 .../gpui_shell/settings_pane/mobile/view.rs | 0 .../gpui_shell/settings_pane/navigation.rs | 0 .../gpui_shell/settings_pane/notifications.rs | 0 .../notifications/native_tests.rs | 2 +- .../settings_pane/notifications/tests.rs | 12 +- .../src/gpui_shell/settings_pane/plugins.rs | 2 +- .../gpui_shell/settings_pane/plugins_tests.rs | 0 .../gpui_shell/settings_pane/plugins_view.rs | 0 .../src/gpui_shell/settings_pane/providers.rs | 0 .../settings_pane/providers/brand.rs | 0 .../settings_pane/providers/editor.rs | 0 .../gpui_shell/settings_pane/providers/key.rs | 0 .../settings_pane/providers/predictions.rs | 2 +- .../settings_pane/providers/select_trigger.rs | 0 .../settings_pane/providers/view.rs | 0 .../src/gpui_shell/settings_pane/reset.rs | 2 +- .../src/gpui_shell/settings_pane/scrolling.rs | 2 +- .../gpui_shell/settings_pane/search_header.rs | 0 .../src/gpui_shell/settings_pane/segmented.rs | 0 .../settings_pane/segmented/tests.rs | 4 +- .../gpui_shell/settings_pane/setting_help.rs | 0 .../gpui_shell/settings_pane/shell_picker.rs | 0 .../settings_pane/shell_picker_tests.rs | 0 .../src/gpui_shell/settings_pane/sponsor.rs | 0 .../src/gpui_shell/settings_pane/status.rs | 0 .../settings_pane/terminal_effect.rs | 4 +- .../settings_pane/terminal_effect_tests.rs | 4 +- .../src/gpui_shell/settings_pane/tests.rs | 30 +- .../settings_pane/theme_advanced.rs | 2 +- .../settings_pane/theme_background_tests.rs | 6 +- .../settings_pane/theme_community.rs | 0 .../settings_pane/theme_community_tests.rs | 8 +- .../settings_pane/theme_community_view.rs | 0 .../gpui_shell/settings_pane/theme_editor.rs | 4 +- .../settings_pane/theme_editor/background.rs | 4 +- .../theme_editor/color_dialog.rs | 2 +- .../settings_pane/theme_editor/controls.rs | 4 +- .../settings_pane/theme_editor/view.rs | 2 +- .../settings_pane/theme_foreground.rs | 2 +- .../gpui_shell/settings_pane/theme_package.rs | 2 +- .../settings_pane/theme_package_tests.rs | 4 +- .../settings_pane/theme_package_view.rs | 0 .../gpui_shell/settings_pane/theme_picker.rs | 10 +- .../settings_pane/theme_studio_tests.rs | 38 +- .../settings_pane/theme_transfer.rs | 0 .../settings_pane/theme_transfer_view.rs | 0 .../src/gpui_shell/shader_source.rs | 0 .../src/gpui_shell/ssh_hosts.rs | 4 +- .../src/gpui_shell/ssh_settings.rs | 0 .../src/gpui_shell/ssh_settings/advanced.rs | 0 .../src/gpui_shell/ssh_settings/editor.rs | 0 .../src/gpui_shell/ssh_settings/library.rs | 0 .../ssh_settings/library/exchange.rs | 4 +- .../gpui_shell/ssh_settings/library/tests.rs | 6 +- .../gpui_shell/ssh_settings/serial_tests.rs | 4 +- .../src/gpui_shell/terminal/answer_reader.rs | 2 +- .../terminal/answer_reader/messages.rs | 0 .../terminal/answer_reader/native_tests.rs | 2 +- .../src/gpui_shell/terminal/character_art.rs | 2 +- .../terminal/character_art/paint.rs | 2 +- .../terminal/character_art/tests.rs | 8 +- .../src/gpui_shell/terminal/colors.rs | 14 +- .../terminal/completion_viewport.rs | 0 .../src/gpui_shell/terminal/confirmation.rs | 2 +- .../terminal/confirmation/choices.rs | 0 .../src/gpui_shell/terminal/cursor_motion.rs | 0 .../terminal/cursor_motion/tests.rs | 0 .../src/gpui_shell/terminal/cursor_painter.rs | 6 +- .../src/gpui_shell/terminal/effects.rs | 6 +- .../src/gpui_shell/terminal/effects/abi.glsl | 0 .../src/gpui_shell/terminal/effects/abi.wgsl | 0 .../gpui_shell/terminal/effects/compiler.rs | 0 .../src/gpui_shell/terminal/effects/frame.rs | 6 +- .../terminal/effects/unavailable.rs | 2 +- .../src/gpui_shell/terminal/element.rs | 24 +- .../gpui_shell/terminal/element/app_colors.rs | 6 +- .../gpui_shell/terminal/element/cell_fit.rs | 0 .../terminal/element/color_tests.rs | 22 +- .../gpui_shell/terminal/element/reading.rs | 0 .../gpui_shell/terminal/element/snapshot.rs | 2 +- .../terminal/element/snapshot_probe.rs | 2 +- .../src/gpui_shell/terminal/event_mailbox.rs | 2 +- .../src/gpui_shell/terminal/inline_image.rs | 8 +- .../src/gpui_shell/terminal/keymap.rs | 26 +- .../src/gpui_shell/terminal/keymap/win32.rs | 0 .../src/gpui_shell/terminal/ligatures.rs | 2 +- .../gpui_shell/terminal/ligatures/tests.rs | 2 +- .../src/gpui_shell/terminal/link_underline.rs | 8 +- .../src/gpui_shell/terminal/math_overlay.rs | 56 +-- .../src/gpui_shell/terminal/mod.rs | 6 +- .../gpui_shell/terminal/molecule_overlay.rs | 2 +- .../src/gpui_shell/terminal/mouse_protocol.rs | 8 +- .../terminal/native_results/code.rs | 0 .../terminal/native_results/diff.rs | 0 .../terminal/native_results/fold.rs | 0 .../terminal/native_results/json.rs | 0 .../terminal/native_results/markdown.rs | 0 .../gpui_shell/terminal/native_results/mod.rs | 8 +- .../terminal/native_results/table.rs | 0 .../terminal/native_results/tools.rs | 0 .../terminal/native_results/viewport.rs | 6 +- .../src/gpui_shell/terminal/osc_links.rs | 12 +- .../src/gpui_shell/terminal/reading.rs | 2 +- .../terminal/reading/output_hover.rs | 2 +- .../src/gpui_shell/terminal/reading/text.rs | 4 +- .../src/gpui_shell/terminal/reading/worker.rs | 6 +- .../src/gpui_shell/terminal/session.rs | 28 +- .../src/gpui_shell/terminal/session_pump.rs | 2 +- .../terminal/ssh_connect_overlay.rs | 0 .../src/gpui_shell/terminal/suggest.rs | 0 .../src/gpui_shell/terminal/view.rs | 32 +- .../terminal/view/activity_tests.rs | 6 +- .../terminal/view/agent_activity.rs | 4 +- .../terminal/view/application_mouse.rs | 4 +- .../view/application_mouse/native_tests.rs | 6 +- .../src/gpui_shell/terminal/view/broadcast.rs | 2 +- .../gpui_shell/terminal/view/completion.rs | 4 +- .../terminal/view/completion_native_tests.rs | 4 +- .../view/completion_native_tests/editor.rs | 0 .../view/completion_native_tests/remote.rs | 4 +- .../gpui_shell/terminal/view/confirmation.rs | 6 +- .../gpui_shell/terminal/view/conversation.rs | 2 +- .../src/gpui_shell/terminal/view/cursor.rs | 6 +- .../terminal/view/cursor/native_tests.rs | 6 +- .../gpui_shell/terminal/view/cursor/tests.rs | 16 +- .../terminal/view/cursor/typing_tests.rs | 6 +- .../gpui_shell/terminal/view/cwd_report.rs | 2 +- .../src/gpui_shell/terminal/view/editor.rs | 4 +- .../gpui_shell/terminal/view/image_paste.rs | 6 +- .../src/gpui_shell/terminal/view/layout.rs | 8 +- .../terminal/view/native_clipboard.rs | 0 .../terminal/view/native_clipboard_tests.rs | 2 +- .../view/native_clipboard_tests/acceptance.rs | 2 +- .../terminal/view/native_cmd_tests.rs | 14 +- .../gpui_shell/terminal/view/notifications.rs | 0 .../gpui_shell/terminal/view/output_tests.rs | 8 +- .../src/gpui_shell/terminal/view/path_drop.rs | 0 .../terminal/view/path_drop/ssh_upload.rs | 0 .../view/path_drop/ssh_upload/tests.rs | 6 +- .../src/gpui_shell/terminal/view/pointer.rs | 10 +- .../gpui_shell/terminal/view/pointer/tests.rs | 12 +- .../view/pointer/tests/application_mouse.rs | 4 +- .../view/pointer/tests/shell_pointer.rs | 0 .../terminal/view/program_status.rs | 2 +- .../terminal/view/program_status/tests.rs | 2 +- .../src/gpui_shell/terminal/view/reading.rs | 4 +- .../terminal/view/reading/chrome.rs | 0 .../terminal/view/reading/output_hover.rs | 2 +- .../view/reading/output_hover/chrome.rs | 0 .../gpui_shell/terminal/view/reading/tests.rs | 50 +-- .../view/reading/tests/output_hover.rs | 4 +- .../terminal/view/remote_activity.rs | 0 .../src/gpui_shell/terminal/view/runtime.rs | 10 +- .../view/runtime/activity_probe_tests.rs | 0 .../terminal/view/session_failure.rs | 0 .../gpui_shell/terminal/view/shell_pointer.rs | 0 .../terminal/view/shell_pointer/layout.rs | 10 +- .../terminal/view/shell_pointer/tests.rs | 16 +- .../gpui_shell/terminal/view/ssh_reconnect.rs | 0 .../terminal/view/ssh_reconnect/tests.rs | 4 +- .../src/gpui_shell/terminal/view/startup.rs | 18 +- .../terminal/view/startup_command.rs | 4 +- .../gpui_shell/terminal/view/startup_tests.rs | 26 +- .../gpui_shell/terminal/view/tab_identity.rs | 0 .../src/gpui_shell/terminal/view/tests.rs | 10 +- .../gpui_shell/terminal/view/typography.rs | 2 +- .../terminal/view/typography/native_tests.rs | 8 +- .../src/gpui_shell/theme.rs | 18 +- .../src/gpui_shell/theme/custom.rs | 16 +- .../src/gpui_shell/theme/selection_tests.rs | 6 +- .../src/gpui_shell/theme/syntax.rs | 0 .../src/gpui_shell/theme/transition.rs | 0 .../gpui_shell/theme/transition/geometry.rs | 0 .../src/gpui_shell/theme/transition/tests.rs | 0 .../src/gpui_shell/toast.rs | 6 +- .../src/gpui_shell/toast/duration_tests.rs | 4 +- .../src/gpui_shell/typography.rs | 0 .../src/gpui_shell/wallpaper.rs | 40 +- .../src/gpui_shell/wallpaper/AGENTS.md | 4 +- .../src/gpui_shell/wallpaper/animated.rs | 0 .../wallpaper/animated/av_player.rs | 20 +- .../gpui_shell/wallpaper/animated/native.rs | 16 +- .../wallpaper/animated/unavailable.rs | 8 +- .../src/gpui_shell/wallpaper/budgets.rs | 0 .../src/gpui_shell/wallpaper/image_loader.rs | 0 .../src/gpui_shell/wallpaper/playback.rs | 8 +- .../src/gpui_shell/wallpaper/preview.rs | 4 +- .../src/gpui_shell/wallpaper/shader.rs | 2 +- .../wallpaper/shader/aurora_ribbons.wgsl | 0 .../gpui_shell/wallpaper/shader/compile.rs | 4 +- .../wallpaper/shader/liquid_silk.wgsl | 0 .../wallpaper/shader/native_compile.rs | 0 .../wallpaper/shader/neon_vortex.wgsl | 0 .../src/gpui_shell/wallpaper/tab_bar.rs | 2 +- .../src/gpui_shell/wallpaper/tests.rs | 6 +- .../src/gpui_shell/widgets.rs | 0 .../src/gpui_shell/widgets/segmented.rs | 0 .../src/gpui_shell/widgets/switch.rs | 0 .../src/gpui_shell/widgets_tests.rs | 0 .../src/gpui_shell/workspace.rs | 94 ++--- .../src/gpui_shell/workspace/agents.rs | 4 +- .../src/gpui_shell/workspace/closing.rs | 2 +- .../gpui_shell/workspace/command_manager.rs | 0 .../workspace/command_manager/bulk.rs | 0 .../workspace/command_manager/clipboard.rs | 0 .../command_manager/clipboard_tests.rs | 0 .../workspace/command_manager/group_tests.rs | 2 +- .../workspace/command_manager/groups.rs | 0 .../workspace/command_manager/input_tests.rs | 0 .../command_manager/native_paste_tests.rs | 2 +- .../workspace/command_manager/native_tests.rs | 4 +- .../workspace/command_manager/rows.rs | 0 .../src/gpui_shell/workspace/details_panel.rs | 0 .../workspace/details_panel_tests.rs | 8 +- .../src/gpui_shell/workspace/documents.rs | 0 .../src/gpui_shell/workspace/export.rs | 0 .../src/gpui_shell/workspace/file_tree.rs | 0 .../workspace/file_tree/path_bar.rs | 0 .../gpui_shell/workspace/file_tree/sticky.rs | 0 .../src/gpui_shell/workspace/key_actions.rs | 6 +- .../gpui_shell/workspace/keyboard_bindings.rs | 2 +- .../workspace/keyboard_bindings/tests.rs | 34 +- .../src/gpui_shell/workspace/launcher_menu.rs | 2 +- .../workspace/launcher_menu/tests.rs | 0 .../src/gpui_shell/workspace/logos.rs | 0 .../src/gpui_shell/workspace/notifications.rs | 0 .../src/gpui_shell/workspace/palette.rs | 0 .../src/gpui_shell/workspace/pane_header.rs | 12 +- .../workspace/pane_header/layout.rs | 2 +- .../workspace/pane_header/native_tests.rs | 12 +- .../workspace/pane_header/sidebar.rs | 0 .../workspace/pane_header/visual_tests.rs | 8 +- .../src/gpui_shell/workspace/quick_jump.rs | 0 .../gpui_shell/workspace/quick_terminal.rs | 2 +- .../src/gpui_shell/workspace/recipes/mod.rs | 0 .../src/gpui_shell/workspace/recipes/store.rs | 2 +- .../src/gpui_shell/workspace/remote_files.rs | 0 .../gpui_shell/workspace/remote_files/drag.rs | 0 .../workspace/remote_files/follow_tests.rs | 8 +- .../workspace/remote_files/interaction.rs | 0 .../workspace/remote_files/selection.rs | 0 .../workspace/remote_files/target.rs | 0 .../workspace/remote_files/transfers.rs | 0 .../src/gpui_shell/workspace/remote_tab.rs | 4 +- .../src/gpui_shell/workspace/rename.rs | 0 .../src/gpui_shell/workspace/rename/tests.rs | 10 +- .../src/gpui_shell/workspace/render.rs | 2 +- .../src/gpui_shell/workspace/residency.rs | 6 +- .../workspace/runtime_conversation.rs | 0 .../src/gpui_shell/workspace/runtime_tabs.rs | 0 .../src/gpui_shell/workspace/send_to_chat.rs | 2 +- .../workspace/send_to_chat/menu_tests.rs | 4 +- .../workspace/session_persistence.rs | 0 .../session_persistence/shutdown_tests.rs | 0 .../gpui_shell/workspace/session_recovery.rs | 0 .../workspace/settings_navigation.rs | 2 +- .../workspace/settings_navigation/ui_tests.rs | 14 +- .../src/gpui_shell/workspace/shell_launch.rs | 10 +- .../workspace/shell_launch/directory_tests.rs | 4 +- .../src/gpui_shell/workspace/shell_picker.rs | 0 .../src/gpui_shell/workspace/sidebar.rs | 6 +- .../gpui_shell/workspace/sidebar_resize.rs | 6 +- .../src/gpui_shell/workspace/ssh_dialog.rs | 4 +- .../src/gpui_shell/workspace/ssh_reconnect.rs | 0 .../src/gpui_shell/workspace/tab_drag.rs | 44 +-- .../gpui_shell/workspace/tab_duplication.rs | 2 +- .../workspace/tab_duplication/layout_tests.rs | 4 +- .../src/gpui_shell/workspace/tab_menu.rs | 6 +- .../gpui_shell/workspace/tab_presentation.rs | 2 +- .../src/gpui_shell/workspace/tab_scroll.rs | 2 +- .../gpui_shell/workspace/terminal_activity.rs | 16 +- .../tests/session_failure.rs | 0 .../src/gpui_shell/workspace/tests.rs | 46 +-- .../src/gpui_shell/workspace/top_tabs.rs | 8 +- .../src/gpui_shell/workspace/update_dialog.rs | 8 +- .../src/gpui_shell/workspace/vcs_panel.rs | 0 .../gpui_shell/workspace/vcs_panel/avatars.rs | 0 .../workspace/vcs_panel/commit_input.rs | 2 +- .../workspace/vcs_panel/list_model.rs | 0 .../workspace/vcs_panel/list_tests.rs | 0 .../workspace/vcs_panel/relative_time.rs | 0 .../gpui_shell/workspace/vcs_panel/rows.rs | 0 .../gpui_shell/workspace/window_titlebar.rs | 10 +- .../src/gpui_shell/workspace/windowing.rs | 24 +- .../workspace/windowing/elevated_launch.rs | 6 +- .../workspace/windowing/linux_native_tests.rs | 0 .../workspace/windowing/quick_window.rs | 8 +- .../workspace/windowing/quick_window_unix.rs | 6 +- .../windowing/runtime_resize_tests.rs | 6 +- .../workspace/windowing/shutdown.rs | 0 .../gpui_shell/workspace/windowing/startup.rs | 14 +- .../workspace/windowing/startup_geometry.rs | 2 +- .../workspace/windowing/transfer_tests.rs | 2 +- .../workspace/windowing/update_recovery.rs | 0 {nebula_app => pebrel_app}/src/i18n/format.rs | 0 {nebula_app => pebrel_app}/src/i18n/locale.rs | 0 {nebula_app => pebrel_app}/src/i18n/mod.rs | 8 +- .../src/i18n/outcomes.rs | 0 {nebula_app => pebrel_app}/src/i18n/tests.rs | 2 +- .../src/input/action.rs | 14 +- .../src/input/chrome.rs | 6 +- .../src/input/keyboard.rs | 4 +- .../src/input/latency.rs | 0 {nebula_app => pebrel_app}/src/input/mod.rs | 12 +- {nebula_app => pebrel_app}/src/input/mouse.rs | 10 +- .../src/input/terminal_input.rs | 2 +- {nebula_app => pebrel_app}/src/input/tests.rs | 10 +- {nebula_app => pebrel_app}/src/input/touch.rs | 4 +- {nebula_app => pebrel_app}/src/logging.rs | 6 +- {nebula_app => pebrel_app}/src/luau.rs | 0 .../src/macos/locale.rs | 0 {nebula_app => pebrel_app}/src/macos/mod.rs | 0 {nebula_app => pebrel_app}/src/macos/proc.rs | 0 {nebula_app => pebrel_app}/src/main.rs | 12 +- .../src/markdown/mod.rs | 0 .../src/markdown/parser.rs | 0 {nebula_app => pebrel_app}/src/math/bitmap.rs | 0 {nebula_app => pebrel_app}/src/math/cache.rs | 0 .../src/math/compile.rs | 0 {nebula_app => pebrel_app}/src/math/font.rs | 0 {nebula_app => pebrel_app}/src/math/ir.rs | 0 {nebula_app => pebrel_app}/src/math/layout.rs | 0 {nebula_app => pebrel_app}/src/math/mod.rs | 0 {nebula_app => pebrel_app}/src/math/parser.rs | 0 .../src/math/rasterizer.rs | 0 .../src/math/spacing.rs | 0 .../src/math/validate.rs | 0 {nebula_app => pebrel_app}/src/message_bar.rs | 2 +- {nebula_app => pebrel_app}/src/migrate/mod.rs | 0 .../src/migrate/yaml.rs | 0 .../src/mobile_connection.rs | 0 .../src/mobile_connection/preferences.rs | 0 .../src/mobile_connection/recovery.rs | 0 {nebula_app => pebrel_app}/src/motion.rs | 0 {nebula_app => pebrel_app}/src/mux.rs | 0 .../src/native_result_model.rs | 2 +- .../src/native_result_model/diff.rs | 2 +- .../src/native_result_model/directory.rs | 2 +- .../src/native_result_model/json.rs | 2 +- .../src/native_view_cli.rs | 2 +- .../src/nebula_history.rs | 0 .../src/nebula_history/deletion_tests.rs | 0 {nebula_app => pebrel_app}/src/notify.rs | 2 +- {nebula_app => pebrel_app}/src/panic.rs | 2 +- .../src/platform/acrylic.rs | 0 .../src/platform/acrylic/bindings.rs | 0 .../src/platform/acrylic/composition.rs | 0 .../src/platform/acrylic/controller.rs | 0 .../src/platform/acrylic/gpui_tests.rs | 2 +- .../src/platform/acrylic/runtime.rs | 0 .../src/platform/acrylic/tests.rs | 0 .../src/platform/acrylic/transitions.rs | 0 .../src/platform/agent_launch.rs | 0 .../src/platform/ai_session_identity.rs | 0 .../src/platform/ai_session_identity/macos.rs | 0 .../ai_session_identity/tests/proc_fixture.rs | 0 .../platform/ai_session_identity/windows.rs | 0 .../ai_session_identity/windows/tests.rs | 0 .../ai_session_identity/windows/worker.rs | 0 .../windows/worker/tests.rs | 0 .../windows/worker/update_tests.rs | 0 .../src/platform/background_media.rs | 0 .../platform/background_media/gif_decoder.rs | 2 +- .../src/platform/background_media/video.rs | 0 .../video/media_foundation.rs | 0 .../src/platform/capabilities.rs | 0 .../src/platform/credentials.rs | 0 .../src/platform/dirs.rs | 4 +- .../src/platform/distribution.rs | 0 .../src/platform/effect_activity.rs | 0 .../src/platform/elevation.rs | 0 .../src/platform/elevation/handover.rs | 0 .../platform/elevation/handover/security.rs | 2 +- .../platform/elevation/handover/windows.rs | 0 .../src/platform/elevation/tests.rs | 0 .../src/platform/environment.rs | 28 +- .../src/platform/file_drag/mod.rs | 0 .../src/platform/file_drag/windows.rs | 0 .../src/platform/file_drag/windows/stream.rs | 0 .../src/platform/file_drag/windows/tests.rs | 0 .../file_drag/windows/tests/ole_probe.rs | 0 .../src/platform/file_manager.rs | 0 .../src/platform/file_picker.rs | 0 .../src/platform/file_preview.rs | 0 .../src/platform/fonts.rs | 0 .../src/platform/global_shortcut.rs | 0 .../src/platform/keyboard.rs | 0 .../src/platform/keyboard/tests.rs | 6 +- .../src/platform/launch_directory.rs | 2 +- .../src/platform/local_paths.rs | 0 .../src/platform/locale.rs | 2 +- .../src/platform/mod.rs | 0 .../src/platform/notifications.rs | 8 +- .../src/platform/notifications/windows.rs | 0 .../src/platform/pi_session.rs | 0 .../src/platform/pi_session.sh | 0 .../src/platform/private_file.rs | 0 .../src/platform/process.rs | 0 .../src/platform/process_output.rs | 0 .../src/platform/process_snapshot.rs | 0 .../src/platform/process_snapshot/windows.rs | 0 .../src/platform/quick_window.rs | 2 +- .../src/platform/serial_port.rs | 0 .../src/platform/session_end.rs | 0 .../src/platform/session_end/windows.rs | 0 .../src/platform/session_end/windows/tests.rs | 0 .../src/platform/shell.rs | 32 +- .../src/platform/shell_integration.rs | 2 +- .../src/platform/sound.rs | 0 .../src/platform/ssh_agent.rs | 0 .../src/platform/ssh_agent/test_support.rs | 0 .../src/platform/ssh_agent/tests.rs | 0 .../src/platform/ssh_config_probe_tests.rs | 0 .../src/platform/startup.rs | 8 +- .../src/platform/startup/console.rs | 0 .../src/platform/startup/console_tests.rs | 0 .../src/platform/startup/first_frame.rs | 0 .../src/platform/startup/login.rs | 0 .../src/platform/tray_native.rs | 2 +- .../src/platform/update_installation.rs | 2 +- .../src/platform/update_installation/macos.rs | 0 .../update_installation/privileged.rs | 2 +- .../src/platform/video_underlay.rs | 0 .../src/platform/video_underlay/macos.rs | 0 .../src/platform/window_capture.rs | 0 .../src/platform/window_chrome.rs | 0 .../src/platform/window_chrome/macos.rs | 0 .../src/platform/window_material.rs | 2 +- .../src/platform/window_visibility.rs | 0 .../src/platform/wsl_guest_shell.rs | 4 +- .../src/platform/wsl_hooks.rs | 2 +- .../src/platform/wsl_hooks/windows.rs | 6 +- .../src/plugins/AGENTS.md | 4 +- .../src/plugins/BOUNDARIES.md | 0 .../src/plugins/README.md | 10 +- .../src/plugins/boundary.rs | 0 {nebula_app => pebrel_app}/src/plugins/cli.rs | 0 .../src/plugins/install.rs | 2 +- .../src/plugins/install_tests.rs | 2 +- .../src/plugins/json.rs | 0 {nebula_app => pebrel_app}/src/plugins/lua.rs | 0 {nebula_app => pebrel_app}/src/plugins/mod.rs | 0 .../src/plugins/package.rs | 0 .../src/plugins/tests.rs | 0 .../src/plugins/themes.rs | 2 +- {nebula_app => pebrel_app}/src/polling/ipc.rs | 0 {nebula_app => pebrel_app}/src/polling/mod.rs | 2 +- .../src/polling/signal.rs | 0 .../src/process_tree.rs | 0 .../src/product_input.rs | 0 .../src/product_renderer.rs | 0 .../src/product_ui/mod.rs | 0 .../src/product_ui/ui.rs | 0 .../src/product_window_context.rs | 0 .../src/prompt_suggestions.rs | 0 .../src/prompt_suggestions/client.rs | 0 .../src/prompt_suggestions/client_tests.rs | 0 .../src/prompt_suggestions/evaluation.json | 0 .../src/prompt_suggestions/http.rs | 0 .../src/prompt_suggestions/install.rs | 0 .../src/prompt_suggestions/launcher.rs | 2 +- .../src/prompt_suggestions/service.rs | 2 +- .../src/prompt_suggestions/service_tests.rs | 0 .../src/prompt_suggestions/tests.rs | 0 .../src/provider_test.rs | 0 {nebula_app => pebrel_app}/src/proxy_test.rs | 0 {nebula_app => pebrel_app}/src/remote_dirs.rs | 0 .../src/render_cache.rs | 0 .../src/renderer/image.rs | 0 .../src/renderer/image_layout.rs | 0 .../src/renderer/math.rs | 0 .../src/renderer/mod.rs | 6 +- .../src/renderer/platform.rs | 0 .../src/renderer/rects.rs | 6 +- .../src/renderer/shader.rs | 0 .../src/renderer/text/atlas.rs | 0 .../src/renderer/text/builtin_font.rs | 0 .../src/renderer/text/builtin_font/glyphs.rs | 0 .../src/renderer/text/font_rasterizer.rs | 0 .../src/renderer/text/gles2.rs | 2 +- .../src/renderer/text/glsl3.rs | 2 +- .../src/renderer/text/glyph_cache.rs | 0 .../src/renderer/text/mod.rs | 2 +- {nebula_app => pebrel_app}/src/renderer/ui.rs | 0 {nebula_app => pebrel_app}/src/runtime_api.rs | 0 .../src/runtime_api/agent_api.rs | 0 .../src/runtime_api/cli.rs | 0 .../src/runtime_api/command.rs | 0 .../src/runtime_api/conversation.rs | 0 .../src/runtime_api/git.rs | 0 .../src/runtime_api/git/tests.rs | 4 +- .../src/runtime_api/handover.rs | 2 +- .../src/runtime_api/handover_tests.rs | 0 .../src/runtime_api/mobile_bridge.rs | 0 .../src/runtime_api/mobile_screen.rs | 0 .../src/runtime_api/orchestrate.rs | 0 .../src/runtime_api/server.rs | 0 .../src/runtime_api/shortcuts.rs | 0 .../src/runtime_api/tabs.rs | 0 .../src/runtime_api/terminal_read.rs | 22 +- .../src/runtime_api/tests.rs | 2 +- .../src/runtime_api/transport.rs | 0 .../src/runtime_exec.rs | 12 +- .../src/saved_commands.rs | 0 .../src/saved_commands/builtins.rs | 0 .../src/saved_commands/bulk.rs | 0 .../src/saved_commands/groups.rs | 0 {nebula_app => pebrel_app}/src/scheduler.rs | 0 .../src/scientific_corpus.rs | 0 {nebula_app => pebrel_app}/src/scrollbar.rs | 0 .../src/serial_session.rs | 10 +- .../src/serial_session/tests.rs | 0 {nebula_app => pebrel_app}/src/session.rs | 0 .../src/session/identity.rs | 0 .../src/session/window_layout.rs | 0 .../src/shell_detect.rs | 28 +- {nebula_app => pebrel_app}/src/ssh.rs | 2 +- {nebula_app => pebrel_app}/src/ssh/hosts.rs | 0 .../src/ssh/hosts/wsl.rs | 0 .../src/ssh_credentials.rs | 0 .../src/ssh_profiles.rs | 0 .../src/ssh_profiles/connection.rs | 0 .../src/ssh_profiles/connection/tests.rs | 0 .../src/ssh_profiles/duplication.rs | 0 .../src/ssh_profiles/exchange.rs | 0 .../src/ssh_profiles/host_lists.rs | 0 .../src/ssh_profiles/organization.rs | 0 {nebula_app => pebrel_app}/src/ssh_prompt.rs | 0 {nebula_app => pebrel_app}/src/ssh_proxy.rs | 6 +- {nebula_app => pebrel_app}/src/ssh_session.rs | 18 +- .../src/ssh_session/agent.rs | 2 +- .../src/ssh_session/agent/test_support.rs | 0 .../src/ssh_session/agent/tests.rs | 0 .../src/ssh_session/completion.rs | 0 .../src/ssh_session/config.rs | 0 .../src/ssh_session/exec.rs | 0 .../src/ssh_session/forward.rs | 0 .../src/ssh_session/forward/tests.rs | 0 .../src/ssh_session/integration.rs | 2 +- .../src/ssh_session/lifecycle.rs | 8 +- .../src/ssh_session/lifecycle/tests.rs | 20 +- .../ssh_session/lifecycle/tests/keepalive.rs | 0 .../src/ssh_session/lifecycle/tests/sftp.rs | 0 .../src/ssh_session/pane_connection.rs | 0 .../src/ssh_session/resume.rs | 0 .../src/ssh_session/resume/acceptance.rs | 0 .../src/ssh_session/resume/activity.rs | 0 .../src/ssh_session/resume/discover.sh | 0 .../src/ssh_session/resume/identity.rs | 0 .../src/ssh_session/resume/tests.rs | 0 .../src/ssh_session/resume/tests/startup.rs | 0 .../src/ssh_session/route.rs | 0 .../src/ssh_session/route/tests.rs | 0 .../src/ssh_session/route/tests/loopback.rs | 0 .../src/ssh_session/sftp.rs | 0 .../src/ssh_session/tests.rs | 0 {nebula_app => pebrel_app}/src/ssh_sftp.rs | 0 .../src/ssh_sftp/document.rs | 0 .../src/ssh_sftp/document/tests.rs | 0 .../src/ssh_sftp/document/tests/peer.rs | 0 .../src/ssh_sftp/export.rs | 0 .../src/ssh_sftp/intake.rs | 0 .../src/ssh_sftp/intake/tests.rs | 0 .../src/ssh_sftp/limits.rs | 0 .../src/ssh_sftp/preview.rs | 0 .../src/ssh_sftp/remote_cwd.rs | 0 .../src/ssh_sftp/transaction.rs | 0 .../src/ssh_sftp/transfer.rs | 0 .../src/ssh_sftp/transfer_io_tests.rs | 0 {nebula_app => pebrel_app}/src/string.rs | 0 {nebula_app => pebrel_app}/src/svn_status.rs | 0 {nebula_app => pebrel_app}/src/sync.rs | 2 +- {nebula_app => pebrel_app}/src/taskbar.rs | 0 .../src/terminal_profiles.rs | 0 .../src/text_document.rs | 0 .../src/text_preview.rs | 0 .../src/theme_library/community/AGENTS.md | 2 +- .../src/theme_library/community/mod.rs | 0 .../src/theme_library/community/tests.rs | 2 +- .../src/theme_library/community/transfer.rs | 0 .../src/theme_library/document.rs | 6 +- .../src/theme_library/format_tests.rs | 2 +- .../src/theme_library/formats.rs | 0 .../src/theme_library/mod.rs | 0 .../src/theme_library/package/AGENTS.md | 2 +- .../src/theme_library/package/CLI.md | 0 .../src/theme_library/package/README.md | 0 .../src/theme_library/package/archive.rs | 0 .../src/theme_library/package/cli.rs | 0 .../src/theme_library/package/envelope.rs | 0 .../src/theme_library/package/mod.rs | 0 .../src/theme_library/package/tests.rs | 2 +- .../src/theme_library/preferences.rs | 68 ++-- .../src/theme_library/store.rs | 4 +- .../src/theme_library/tests.rs | 4 +- {nebula_app => pebrel_app}/src/tray.rs | 0 .../src/update_check.rs | 4 +- .../src/update_check/assets.rs | 0 .../src/update_check/fallback.rs | 2 +- .../src/update_check/test_source.rs | 0 .../src/update_download.rs | 0 .../src/update_download/cache.rs | 0 .../src/update_download/handoff.ps1 | 0 .../src/update_download/handoff.rs | 4 +- .../src/update_download/handoff/macos.rs | 4 +- .../update_download/handoff/macos/tests.rs | 0 .../src/update_download/handoff/tests.rs | 2 +- .../src/update_proxy.rs | 0 .../src/update_proxy/test_support.rs | 0 {nebula_app => pebrel_app}/src/ux.rs | 0 .../src/window_context.rs | 32 +- .../src/window_context/agent_activity.rs | 4 +- .../src/window_context/agents.rs | 0 .../src/window_context/model.rs | 8 +- .../src/window_context/nebula_fetch_art.rs | 0 .../src/window_context/runtime.rs | 8 +- .../src/window_context/session_snapshot.rs | 2 +- .../src/window_context/split.rs | 10 +- .../src/window_context/ssh_panes.rs | 0 .../src/window_context/startup_shell_tests.rs | 2 +- .../src/window_context/tab_duplication.rs | 0 .../src/window_context/welcome.rs | 0 .../src/window_transition.rs | 0 .../tests/file_line_budget.rs | 0 .../background-gif/animated-720p12.gif | Bin .../background-gif/disposal-oracle.rgba | Bin .../fixtures/background-gif/disposal.gif | Bin .../gif-720p-oracle-samples.json | 0 .../tests/fixtures/background-gif/invalid.gif | 0 .../background-gif/large-canvas-header.gif | Bin .../background-gif/zero-delay-10000.gif | Bin .../fixtures/theme-package/minimal-video.mp4 | Bin .../tests/i18n_contract.rs | 0 .../tests/theme_package_cli.rs | 0 .../tests/windows_console_startup.rs | 0 .../windows/nebula-dark.ico | Bin .../windows/nebula-light.ico | Bin .../windows/nebula-titanium.ico | Bin {nebula_app => pebrel_app}/windows/nebula.ico | Bin .../windows/nebula.manifest | 0 {nebula_app => pebrel_app}/windows/nebula.rc | 0 {nebula_config => pebrel_config}/Cargo.toml | 4 +- {nebula_config => pebrel_config}/src/lib.rs | 4 +- .../Cargo.toml | 6 +- .../src/config_deserialize/de_enum.rs | 2 +- .../src/config_deserialize/de_struct.rs | 8 +- .../src/config_deserialize/mod.rs | 0 .../src/lib.rs | 2 +- .../src/serde_replace.rs | 8 +- .../tests/config.rs | 4 +- {nebula_gpui => pebrel_gpui}/ARCHITECTURE.md | 28 +- {nebula_gpui => pebrel_gpui}/Cargo.toml | 10 +- {nebula_gpui => pebrel_gpui}/IME_CHECKLIST.md | 2 +- {nebula_gpui => pebrel_gpui}/src/app.rs | 2 +- {nebula_gpui => pebrel_gpui}/src/lib.rs | 2 +- pebrel_gpui/src/main.rs | 3 + .../src/media_probe/gif_stream.rs | 2 +- .../src/media_probe/main.rs | 0 .../src/media_probe/metrics.rs | 0 .../src/media_probe/native_gate.rs | 0 .../src/ui/bootstrap.rs | 0 {nebula_gpui => pebrel_gpui}/src/ui/mod.rs | 0 .../src/ui/prelude.rs | 2 +- .../src/views/component_gallery.rs | 0 {nebula_gpui => pebrel_gpui}/src/views/mod.rs | 0 {nebula_hook => pebrel_hook}/Cargo.toml | 2 +- {nebula_hook => pebrel_hook}/src/main.rs | 0 .../tests/lifetime.rs | 0 .../AGENTS.md | 4 +- .../Cargo.toml | 2 +- .../src/agent_hooks.rs | 0 .../src/app_icon.rs | 0 .../src/background_effects.rs | 0 .../src/background_media.rs | 0 .../src/config_defaults.rs | 0 .../src/cursor_motion.rs | 0 .../src/custom_theme.rs | 0 .../src/language.rs | 0 .../src/lib.rs | 4 +- .../src/ligatures.rs | 0 .../src/notifications.rs | 0 .../src/paths.rs | 0 .../src/paths/migration.rs | 0 .../src/paths/tests.rs | 0 .../src/prompt_suggestions.rs | 0 .../src/quick_terminal.rs | 0 .../src/reset.rs | 0 .../src/scrolling.rs | 0 .../src/shader_parameters.rs | 0 .../src/tab_bar_material.rs | 0 .../src/terminal_effects.rs | 0 .../src/themes.rs | 0 {nebula_split => pebrel_split}/Cargo.toml | 4 +- {nebula_split => pebrel_split}/src/dock.rs | 0 {nebula_split => pebrel_split}/src/lib.rs | 2 +- .../AGENTS.md | 14 +- .../Cargo.toml | 2 +- .../src/event.rs | 0 .../src/event_loop.rs | 0 .../src/event_loop/kitty_tests.rs | 0 .../src/event_loop/sync_tests.rs | 0 .../src/event_loop/zmodem_tests.rs | 0 .../src/grid/mod.rs | 0 .../src/grid/resize.rs | 0 .../src/grid/row.rs | 0 .../src/grid/storage.rs | 0 .../src/grid/tests.rs | 0 .../src/index.rs | 0 .../src/inline_content.rs | 0 .../src/inline_content/command.rs | 0 .../src/inline_image.rs | 0 .../src/kitty_graphics.rs | 0 .../src/kitty_graphics/control.rs | 0 .../src/lib.rs | 0 .../src/osc_cwd.rs | 0 .../src/program_status.rs | 0 .../src/program_status/tests.rs | 0 .../src/render.rs | 0 .../src/render/boxdraw.rs | 2 +- .../src/selection.rs | 0 .../src/sync.rs | 0 .../src/term/cell.rs | 0 .../src/term/clear.rs | 0 .../src/term/color.rs | 0 .../src/term/damage.rs | 0 .../src/term/emoji_input_tests.rs | 0 .../src/term/grid_content.rs | 0 .../src/term/inline_image.rs | 0 .../src/term/input.rs | 0 .../src/term/keyboard.rs | 0 .../src/term/keyboard_contract_tests.rs | 0 .../src/term/mod.rs | 4 +- .../src/term/mouse.rs | 0 .../src/term/program_status.rs | 0 .../src/term/prompt.rs | 0 .../src/term/reading.rs | 0 .../src/term/reading/guard.rs | 0 .../src/term/reading/tests.rs | 0 .../src/term/redraw_anchor.rs | 0 .../src/term/renderable.rs | 0 .../src/term/search.rs | 0 .../src/term/tests.rs | 0 .../src/term/title.rs | 0 .../src/term/viewport.rs | 0 .../src/thread.rs | 0 .../src/tty/clipboard.ps1 | 0 .../src/tty/command.sh | 0 .../src/tty/completion.ps1 | 0 .../src/tty/completion.sh | 0 .../src/tty/connection.ps1 | 0 .../src/tty/connection.sh | 0 .../src/tty/mod.rs | 0 .../src/tty/pointer.ps1 | 0 .../src/tty/pointer.sh | 0 .../src/tty/unix.rs | 0 .../src/tty/windows/blocking.rs | 0 .../src/tty/windows/child.rs | 0 .../src/tty/windows/cmd_prompt.rs | 0 .../src/tty/windows/conpty.rs | 0 .../src/tty/windows/environment.rs | 0 .../src/tty/windows/mod.rs | 0 .../src/tty/windows/powershell_launch.rs | 0 .../src/tty/windows/proxy.ps1 | 0 .../src/tty/windows/proxy_tests.rs | 0 .../src/tty/windows/test/bash_input.rs | 0 .../src/vi_mode.rs | 0 .../src/zmodem.rs | 0 .../tests/connection_transport.rs | 6 +- .../tests/grid_images.rs | 24 +- .../tests/inline_image.rs | 22 +- .../tests/native_clipboard.rs | 0 .../tests/native_pointer.rs | 0 .../tests/osc7501.rs | 12 +- .../tests/pi_redraw_anchor.rs | 12 +- .../tests/ref.rs | 14 +- .../tests/ref/alt_reset/config.json | 0 .../tests/ref/alt_reset/grid.json | 0 .../tests/ref/alt_reset/nebula.recording | 0 .../tests/ref/alt_reset/size.json | 0 .../tests/ref/clear_underline/config.json | 0 .../tests/ref/clear_underline/grid.json | 0 .../ref/clear_underline/nebula.recording | 0 .../tests/ref/clear_underline/size.json | 0 .../tests/ref/colored_reset/config.json | 0 .../tests/ref/colored_reset/grid.json | 0 .../tests/ref/colored_reset/nebula.recording | 0 .../tests/ref/colored_reset/size.json | 0 .../tests/ref/colored_underline/config.json | 0 .../tests/ref/colored_underline/grid.json | 0 .../ref/colored_underline/nebula.recording | 0 .../tests/ref/colored_underline/size.json | 0 .../tests/ref/csi_rep/config.json | 0 .../tests/ref/csi_rep/grid.json | 0 .../tests/ref/csi_rep/nebula.recording | 0 .../tests/ref/csi_rep/size.json | 0 .../tests/ref/decaln_reset/config.json | 0 .../tests/ref/decaln_reset/grid.json | 0 .../tests/ref/decaln_reset/nebula.recording | 0 .../tests/ref/decaln_reset/size.json | 0 .../tests/ref/deccolm_reset/config.json | 0 .../tests/ref/deccolm_reset/grid.json | 0 .../tests/ref/deccolm_reset/nebula.recording | 0 .../tests/ref/deccolm_reset/size.json | 0 .../tests/ref/delete_chars_reset/config.json | 0 .../tests/ref/delete_chars_reset/grid.json | 0 .../ref/delete_chars_reset/nebula.recording | 0 .../tests/ref/delete_chars_reset/size.json | 0 .../tests/ref/delete_lines/config.json | 0 .../tests/ref/delete_lines/grid.json | 0 .../tests/ref/delete_lines/nebula.recording | 0 .../tests/ref/delete_lines/size.json | 0 .../tests/ref/erase_chars_reset/config.json | 0 .../tests/ref/erase_chars_reset/grid.json | 0 .../ref/erase_chars_reset/nebula.recording | 0 .../tests/ref/erase_chars_reset/size.json | 0 .../tests/ref/erase_in_line/config.json | 0 .../tests/ref/erase_in_line/grid.json | 0 .../tests/ref/erase_in_line/nebula.recording | 0 .../tests/ref/erase_in_line/size.json | 0 .../tests/ref/fish_cc/config.json | 0 .../tests/ref/fish_cc/grid.json | 0 .../tests/ref/fish_cc/nebula.recording | 0 .../tests/ref/fish_cc/size.json | 0 .../tests/ref/grid_reset/config.json | 0 .../tests/ref/grid_reset/grid.json | 0 .../tests/ref/grid_reset/nebula.recording | 0 .../tests/ref/grid_reset/size.json | 0 .../tests/ref/history/config.json | 0 .../tests/ref/history/grid.json | 0 .../tests/ref/history/nebula.recording | 0 .../tests/ref/history/size.json | 0 .../tests/ref/hyperlinks/config.json | 0 .../tests/ref/hyperlinks/grid.json | 0 .../tests/ref/hyperlinks/nebula.recording | 0 .../tests/ref/hyperlinks/size.json | 0 .../tests/ref/indexed_256_colors/config.json | 0 .../tests/ref/indexed_256_colors/grid.json | 0 .../ref/indexed_256_colors/nebula.recording | 0 .../tests/ref/indexed_256_colors/size.json | 0 .../tests/ref/insert_blank_reset/config.json | 0 .../tests/ref/insert_blank_reset/grid.json | 0 .../ref/insert_blank_reset/nebula.recording | 0 .../tests/ref/insert_blank_reset/size.json | 0 .../tests/ref/ll/config.json | 0 .../tests/ref/ll/grid.json | 0 .../tests/ref/ll/nebula.recording | 0 .../tests/ref/ll/size.json | 0 .../config.json | 0 .../grid.json | 0 .../nebula.recording | 0 .../size.json | 0 .../tests/ref/origin_goto/config.json | 0 .../tests/ref/origin_goto/grid.json | 0 .../tests/ref/origin_goto/nebula.recording | 0 .../tests/ref/origin_goto/size.json | 0 .../tests/ref/region_scroll_down/config.json | 0 .../tests/ref/region_scroll_down/grid.json | 0 .../ref/region_scroll_down/nebula.recording | 0 .../tests/ref/region_scroll_down/size.json | 0 .../tests/ref/row_reset/config.json | 0 .../tests/ref/row_reset/grid.json | 0 .../tests/ref/row_reset/nebula.recording | 0 .../tests/ref/row_reset/size.json | 0 .../tests/ref/saved_cursor/config.json | 0 .../tests/ref/saved_cursor/grid.json | 0 .../tests/ref/saved_cursor/nebula.recording | 0 .../tests/ref/saved_cursor/size.json | 0 .../tests/ref/saved_cursor_alt/config.json | 0 .../tests/ref/saved_cursor_alt/grid.json | 0 .../ref/saved_cursor_alt/nebula.recording | 0 .../tests/ref/saved_cursor_alt/size.json | 0 .../config.json | 0 .../grid.json | 0 .../nebula.recording | 0 .../size.json | 0 .../tests/ref/scroll_up_reset/config.json | 0 .../tests/ref/scroll_up_reset/grid.json | 0 .../ref/scroll_up_reset/nebula.recording | 0 .../tests/ref/scroll_up_reset/size.json | 0 .../tests/ref/selective_erasure/config.json | 0 .../tests/ref/selective_erasure/grid.json | 0 .../ref/selective_erasure/nebula.recording | 0 .../tests/ref/selective_erasure/size.json | 0 .../tests/ref/sgr/config.json | 0 .../tests/ref/sgr/grid.json | 0 .../tests/ref/sgr/nebula.recording | 0 .../tests/ref/sgr/size.json | 0 .../tests/ref/tab_rendering/config.json | 0 .../tests/ref/tab_rendering/grid.json | 0 .../tests/ref/tab_rendering/nebula.recording | 0 .../tests/ref/tab_rendering/size.json | 0 .../tests/ref/tmux_git_log/config.json | 0 .../tests/ref/tmux_git_log/grid.json | 0 .../tests/ref/tmux_git_log/nebula.recording | 0 .../tests/ref/tmux_git_log/size.json | 0 .../tests/ref/tmux_htop/config.json | 0 .../tests/ref/tmux_htop/grid.json | 0 .../tests/ref/tmux_htop/nebula.recording | 0 .../tests/ref/tmux_htop/size.json | 0 .../tests/ref/underline/config.json | 0 .../tests/ref/underline/grid.json | 0 .../tests/ref/underline/nebula.recording | 0 .../tests/ref/underline/size.json | 0 .../tests/ref/vim_24bitcolors_bce/config.json | 0 .../tests/ref/vim_24bitcolors_bce/grid.json | 0 .../ref/vim_24bitcolors_bce/nebula.recording | 0 .../tests/ref/vim_24bitcolors_bce/size.json | 0 .../ref/vim_large_window_scroll/config.json | 0 .../ref/vim_large_window_scroll/grid.json | 0 .../vim_large_window_scroll/nebula.recording | 0 .../ref/vim_large_window_scroll/size.json | 0 .../tests/ref/vim_simple_edit/config.json | 0 .../tests/ref/vim_simple_edit/grid.json | 0 .../ref/vim_simple_edit/nebula.recording | 0 .../tests/ref/vim_simple_edit/size.json | 0 .../ref/vttest_cursor_movement_1/config.json | 0 .../ref/vttest_cursor_movement_1/grid.json | 0 .../vttest_cursor_movement_1/nebula.recording | 0 .../ref/vttest_cursor_movement_1/size.json | 0 .../tests/ref/vttest_insert/config.json | 0 .../tests/ref/vttest_insert/grid.json | 0 .../tests/ref/vttest_insert/nebula.recording | 0 .../tests/ref/vttest_insert/size.json | 0 .../ref/vttest_origin_mode_1/config.json | 0 .../tests/ref/vttest_origin_mode_1/grid.json | 0 .../ref/vttest_origin_mode_1/nebula.recording | 0 .../tests/ref/vttest_origin_mode_1/size.json | 0 .../ref/vttest_origin_mode_2/config.json | 0 .../tests/ref/vttest_origin_mode_2/grid.json | 0 .../ref/vttest_origin_mode_2/nebula.recording | 0 .../tests/ref/vttest_origin_mode_2/size.json | 0 .../tests/ref/vttest_scroll/config.json | 0 .../tests/ref/vttest_scroll/grid.json | 0 .../tests/ref/vttest_scroll/nebula.recording | 0 .../tests/ref/vttest_scroll/size.json | 0 .../ref/vttest_tab_clear_set/config.json | 0 .../tests/ref/vttest_tab_clear_set/grid.json | 0 .../ref/vttest_tab_clear_set/nebula.recording | 0 .../tests/ref/vttest_tab_clear_set/size.json | 0 .../tests/ref/wrapline_alt_toggle/config.json | 0 .../tests/ref/wrapline_alt_toggle/grid.json | 0 .../ref/wrapline_alt_toggle/nebula.recording | 0 .../tests/ref/wrapline_alt_toggle/size.json | 0 .../tests/ref/zerowidth/config.json | 0 .../tests/ref/zerowidth/grid.json | 0 .../tests/ref/zerowidth/nebula.recording | 0 .../tests/ref/zerowidth/size.json | 0 .../tests/ref/zsh_bck_i_search/config.json | 0 .../tests/ref/zsh_bck_i_search/grid.json | 0 .../ref/zsh_bck_i_search/nebula.recording | 0 .../tests/ref/zsh_bck_i_search/size.json | 0 .../tests/ref/zsh_tab_completion/config.json | 0 .../tests/ref/zsh_tab_completion/grid.json | 0 .../ref/zsh_tab_completion/nebula.recording | 0 .../tests/ref/zsh_tab_completion/size.json | 0 .../tests/windows_pty_lifecycle.rs | 4 +- scripts/build-installer.ps1 | 8 +- scripts/build-windows-product.ps1 | 6 +- scripts/check_gpui_migration.ps1 | 2 +- scripts/check_platform_cfg.py | 6 +- scripts/ci_native_tests.py | 4 +- scripts/ci_plan.py | 4 +- scripts/installer.iss | 2 +- scripts/launch_probe_instance.ps1 | 2 +- scripts/package-release.ps1 | 6 +- scripts/perf_baseline.ps1 | 2 +- scripts/preview_release.py | 4 +- scripts/release_240.py | 2 +- scripts/render-app-icons.mjs | 8 +- scripts/tests/build-windows-product.tests.ps1 | 4 +- .../opencode-notification-bridge.test.mjs | 4 +- scripts/tests/pi-notification-bridge.test.mjs | 2 +- scripts/tests/test_ai_session_probe.py | 2 +- scripts/tests/test_app_icons.py | 10 +- scripts/tests/test_architecture_governance.py | 10 +- scripts/tests/test_ci_native_tests.py | 16 +- scripts/tests/test_ci_plan.py | 26 +- scripts/tests/test_completion_editor.py | 8 +- scripts/tests/test_git_attributes.py | 12 +- scripts/tests/test_pebrel_branding.py | 38 +- scripts/tests/test_pi_bridge.mjs | 2 +- scripts/tests/test_pi_session_guest.py | 2 +- scripts/tests/test_powershell_pointer.py | 4 +- scripts/tests/test_preview_release.py | 2 +- scripts/tests/test_prohibited_names.py | 4 +- scripts/tests/test_remote_hooks.py | 2 +- scripts/tests/test_shell_integration.py | 2 +- scripts/tests/test_shell_pointer.py | 4 +- scripts/tests/test_update_handoff.ps1 | 2 +- scripts/tests/test_windows_resources.py | 6 +- scripts/tests/test_xplat.py | 4 +- scripts/tests/user-feedback-regressions.md | 18 +- scripts/visual_parity.ps1 | 2 +- scripts/windows-memory-stress.md | 6 +- tools/gen_fetch_art.py | 2 +- tools/i18n-contract/Cargo.lock | 4 +- tools/i18n-contract/Cargo.toml | 6 +- tools/i18n-contract/build.rs | 4 +- 1791 files changed, 2276 insertions(+), 2266 deletions(-) rename architecture/notes/{nebula-completions => pebrel-completions}/2026-09-30-package-identity.md (100%) rename architecture/notes/{nebula-completions => pebrel-completions}/2026-10-03-caret-argument-roles.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-19-agent-activity-authority.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-20-pi-settled-version-compatibility.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-20-settings-installation-ownership.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-28-local-mode-command-submission.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-28-opencode-v2-plugin-lifecycle.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-09-29-native-agent-transport.md (91%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-07-antigravity-hooks.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-07-claude-style-agents.md (96%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-16-remote-turn-reignite-reconciliation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-21-screen-attention-evidence.md (92%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-25-antigravity-background-work.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-25-claude-detached-hook-delivery.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-10-25-droid-effective-hooks.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-11-02-explicit-status-authority.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-11-02-native-title-attention.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/2026-11-02-untyped-notification-authority.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_hook/installation/2026-10-06-hook-noop-stability.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ai_providers/2026-10-19-provider-models-and-vector-assets.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/assistant_answer/2026-09-27-reader-presentation-language.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/assistant_answer/2026-09-28-native-conversation-identity.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/assistant_answer/conversation/2026-09-28-ssh-transcript-owner.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/backup_remote/2026-09-20-backup-preference-autosave.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-09-30-common-command-sources.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-09-30-literal-path-edits.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-09-30-partial-input-echo.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-09-30-request-boundary.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-09-30-semantic-arguments-and-scripts.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-10-03-scoped-metadata.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-10-03-workspace-targets.md (96%) rename architecture/notes/{nebula_app => pebrel_app}/completion/2026-10-23-command-history-clear.md (91%) rename architecture/notes/{nebula_app => pebrel_app}/display/2026-09-30-window-animation-ownership.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/display/hint/2026-10-15-table-link-continuations.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/display/terminal_math/2026-10-01-inline-token-boundaries.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/encrypted_backup/2026-09-27-first-release-restore.md (91%) rename architecture/notes/{nebula_app => pebrel_app}/encrypted_backup/2026-10-03-saved-command-scope.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/font_install/2026-11-05-symbol-face-macos-m-glyph.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-09-30-automatic-tracking-branches.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-09-30-background-query-deadline.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-09-30-local-branch-context.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-09-30-reference-roles.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-10-01-explicit-tracking-arguments.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/git_completion/2026-10-03-execution-scope.md (96%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/2026-09-19-render-resource-lifetimes.md (94%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/2026-09-21-macos-command-key-aliases.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/2026-09-27-config-window-startup-size.md (99%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/2026-11-05-directwrite-face-attribution.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/doc_tabs/2026-10-11-decoded-image-geometry.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-09-21-native-pointer-and-layout-handoff.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-10-14-inline-code-presentation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/file_editor/2026-10-15-link-occurrence-actions.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/settings_pane/theme_package/2026-10-03-editor-package-transactions.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/shader_source/2026-11-02-glsl-and-script-parameters.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-25-cursor-motion.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-29-completion-request-ownership.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-09-30-formula-selection-projection.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-13-images-and-math-projection.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-23-disconnected-session-actions.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-24-native-result-image-projection.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-25-activity-probe-owner.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-25-character-grid-spacing.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-25-restore-text-metrics-and-symbol-fallback.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-26-bounded-character-art-regions.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/2026-10-26-restore-2-2-2-reading-spacing.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/effects/2026-10-07-backend-capability-and-paint-cadence.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/effects/2026-10-07-metal-controller-integration.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/effects/2026-10-07-portable-source-preparation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/native_results/2026-10-20-block-presentation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/native_results/2026-10-21-hover-state-and-natural-height.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/native_results/2026-10-25-json-tree-and-text-selection.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-07-completion-query-ownership.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-28-application-mouse-gesture-lifetime.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/terminal/view/2026-10-31-pi-wheel-paging.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/toast/2026-09-20-typed-turn-results.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-04-product-video-background.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-04-system-video-worker.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-05-pinned-renderer-dependencies.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-05-realtime-background-shaders.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-05-streaming-gif-pipeline.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-06-media-backend-boundaries.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-10-macos-native-video-underlay.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-09-22-first-frame-startup.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-09-22-nonblocking-first-frame.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-09-28-pane-titles.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-03-empty-workspace-residency.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-03-ordinary-window-geometry.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-03-pane-position-exchange.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-10-entity-owned-port-completion.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-10-tab-drag-release-dispatch.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-21-root-background-refresh.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-21-single-background-opacity.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-21-spinner-render-scope.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-25-shell-event-wake.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/remote_files/2026-10-10-pane-cwd-following.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/remote_files/2026-10-13-cancelled-listing-session-ownership.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/remote_files/2026-11-02-batch-selection-and-transfers.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/vcs_panel/2026-09-20-visible-row-rendering.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/gpui_shell/workspace/windowing/2026-10-25-runtime-geometry-acknowledgement.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-09-19-modified-enter-compatibility.md (94%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-09-21-runtime-codex-submission-boundary.md (94%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-09-23-configurable-tab-rename.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-10-15-macos-control-character-defaults.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-11-01-codebuddy-modified-enter.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/input/2026-11-05-windows-pointer-auto-hide.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/luau/2026-11-02-bounded-luau-vms.md (94%) rename architecture/notes/{nebula_app => pebrel_app}/mobile_connection/2026-09-26-process-owned-phone-settings.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/mobile_connection/2026-09-28-lan-address-recovery.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/mobile_connection/2026-09-29-preserve-preferred-lan-interface.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/mobile_connection/2026-10-07-isolate-lan-route-changes.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/native_result_model/2026-10-21-diff-presentation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/nebula_history/2026-10-25-command-frequency.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-09-22-acrylic-controller.md (96%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-09-22-acrylic-window-transitions.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-09-23-local-color-capabilities.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-09-28-wsl-zsh-startup-integration.md (99%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-09-29-desktop-adapter-boundaries.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-10-04-owned-process-startup.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-10-07-composited-client-theme-capture.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-10-13-bounded-wsl-guest-probes.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-10-14-linux-desktop-lifecycle.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/2026-10-23-wsl-startup-directory.md (96%) rename architecture/notes/{nebula_app => pebrel_app}/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/ai_session_identity/windows/2026-10-26-update-quiescence.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/elevation/2026-10-10-privileged-launch-handover.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/notifications/2026-09-20-actionable-notification-lifetime.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/startup/2026-10-10-login-launch-intent.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/platform/update_installation/2026-10-21-privileged-storage.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/platform/wsl_hooks/2026-09-20-wsl-hook-transport.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/plugins/2026-09-28-bounded-command-foundation.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/plugins/2026-10-01-core-experience-boundary.md (99%) rename architecture/notes/{nebula_app => pebrel_app}/plugins/2026-11-09-install-library-and-theme-grant.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/prompt_suggestions/2026-10-29-native-prediction-ownership.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/prompt_suggestions/2026-10-29-native-runtime-predictions.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/prompt_suggestions/2026-10-29-upstream-prompt-boundary.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/renderer/2026-10-11-macos-legacy-build-boundaries.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/runtime_api/2026-09-28-mobile-color-grid.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/runtime_api/2026-10-06-mobile-wheel-viewport.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/runtime_api/2026-10-23-resident-endpoint-lifetime.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/runtime_api/2026-10-29-consume-ambiguous-window-handover.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/scrollbar/2026-10-13-renderer-independent-scrollbar.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/serial_session/2026-10-13-native-serial-transport.md (98%) rename architecture/notes/{nebula_app => pebrel_app}/session/2026-09-21-native-resume-identity.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/session/2026-09-21-windows-open-rollout-and-exit.md (93%) rename architecture/notes/{nebula_app => pebrel_app}/shell_detect/2026-09-28-wsl-spawn-distro-snapshot.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh/2026-10-21-wsl-config-discovery.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_profiles/2026-09-28-independent-host-copies.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_proxy/2026-09-29-terminal-proxy-scheme.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_proxy/2026-09-30-terminal-proxy-bypass.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-09-19-system-agent-authentication.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-09-26-pane-local-forwarding.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-10-23-bounded-output-draining.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-10-23-shell-duplex-backpressure.md (95%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-10-25-pane-session-recovery.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-10-25-sftp-negotiation-ownership.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-11-01-posix-startup-quoting.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-11-02-tmux-agent-observations.md (97%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-11-05-shared-keepalive-budget.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md (90%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_sftp/2026-10-23-buffered-local-transfer-io.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_sftp/2026-10-24-pane-file-intake.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/ssh_sftp/2026-11-02-streamed-file-previews.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/theme_library/2026-10-02-background-theme-publication.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/theme_library/community/2026-11-08-on-demand-community-catalog.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/theme_library/package/2026-10-02-portable-resource-package.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/update_check/2026-09-23-public-release-fallback.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/update_download/2026-09-23-macos-bundle-handoff.md (100%) rename architecture/notes/{nebula_app => pebrel_app}/update_download/2026-10-21-privileged-recovery.md (100%) rename architecture/notes/{nebula_gpui => pebrel_gpui}/media_probe/2026-10-03-media-qualification-lifecycle.md (100%) rename architecture/notes/{nebula_hook => pebrel_hook}/2026-09-23-bounded-forwarding-lifetime.md (92%) rename architecture/notes/{nebula_settings => pebrel_settings}/background_effects/2026-10-03-explicit-shader-authorization.md (100%) rename architecture/notes/{nebula_settings => pebrel_settings}/background_media/2026-10-04-explicit-source-kind.md (100%) rename architecture/notes/{nebula_settings => pebrel_settings}/completion/2026-09-30-completion-modes.md (92%) rename architecture/notes/{nebula_settings => pebrel_settings}/config_defaults/2026-11-02-script-ui-defaults.md (91%) rename architecture/notes/{nebula_settings => pebrel_settings}/cursor_motion/2026-09-25-opt-in-cursor-motion.md (100%) rename architecture/notes/{nebula_settings => pebrel_settings}/environment/2026-09-30-inherited-environment-choice.md (97%) rename architecture/notes/{nebula_settings => pebrel_settings}/prompt_suggestions/2026-10-29-independent-prediction-settings.md (92%) rename architecture/notes/{nebula_settings => pebrel_settings}/scrolling/2026-10-03-scrollbar-visibility.md (100%) rename architecture/notes/{nebula_settings => pebrel_settings}/terminal_effects/2026-10-06-ordered-source-chain.md (97%) rename architecture/notes/{nebula_settings => pebrel_settings}/themes/2026-10-01-light-theme-identities.md (97%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/event_loop/2026-10-13-parser-input-sync-accounting.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/event_loop/2026-10-23-network-synchronized-frames.md (98%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/grid/2026-10-24-grid-content-ownership.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/grid/2026-10-24-native-markers-and-image-guards.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/inline_content/2026-10-18-native-result-surfaces.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/inline_content/2026-10-19-command-output-lenses.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/inline_content/2026-10-19-unified-result-scroll.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/inline_content/2026-10-20-directory-results-and-bounded-tables.md (98%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/inline_content/2026-10-21-bounded-output-store.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/kitty_graphics/2026-10-25-kitty-graphics-placements.md (97%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/kitty_graphics/2026-10-30-bounded-transfer-store.md (98%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/kitty_graphics/2026-10-30-ordered-placements.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/program_status/2026-10-21-osc7501-record-lifecycle.md (97%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/reading/2026-10-03-bounded-command-output.md (96%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/render/2026-10-13-faint-color-ownership.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-09-20-native-prompt-input-boundaries.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-09-26-silent-color-report-subscriptions.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-09-27-grid-owned-inline-images.md (98%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-09-28-no-image-grid-fast-path.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-10-03-emoji-input-clusters.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/term/2026-10-05-emoji-input-state-cost.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/tty/2026-10-31-native-shell-pointer.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/tty/2026-10-31-powershell-native-pointer.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/tty/2026-11-01-legacy-powershell-pointer.md (97%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/tty/windows/2026-10-03-prompt-wrapper-ownership.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/tty/windows/2026-10-07-restored-powershell-bootstrap.md (100%) rename architecture/notes/{nebula_terminal => pebrel_terminal}/zmodem/2026-11-05-cancel-unsupported-zmodem.md (97%) delete mode 100644 nebula_gpui/src/main.rs rename {nebula-completions => pebrel-completions}/Cargo.toml (100%) rename {nebula-completions => pebrel-completions}/src/color.rs (100%) rename {nebula-completions => pebrel-completions}/src/command_context.rs (100%) rename {nebula-completions => pebrel-completions}/src/command_search.rs (100%) rename {nebula-completions => pebrel-completions}/src/completer.rs (100%) rename {nebula-completions => pebrel-completions}/src/directory.rs (100%) rename {nebula-completions => pebrel-completions}/src/file.rs (100%) rename {nebula-completions => pebrel-completions}/src/lib.rs (100%) rename {nebula-completions => pebrel-completions}/src/matcher.rs (100%) rename {nebula-completions => pebrel-completions}/src/options.rs (100%) rename {nebula-completions => pebrel-completions}/src/semantic.rs (100%) rename {nebula-completions => pebrel-completions}/src/semantic/common.rs (100%) rename {nebula-completions => pebrel-completions}/src/semantic/git.rs (100%) rename {nebula-completions => pebrel-completions}/src/semantic/scripts.rs (100%) rename {nebula-completions => pebrel-completions}/src/semantic/tests.rs (100%) rename {nebula-completions => pebrel-completions}/src/span.rs (100%) rename {nebula-completions => pebrel-completions}/src/static_completion.rs (100%) rename {nebula-completions => pebrel-completions}/src/suggestion.rs (100%) rename {nebula_app => pebrel_app}/AGENTS.md (68%) rename {nebula_app => pebrel_app}/CHANGELOG.md (100%) rename {nebula_app => pebrel_app}/Cargo.toml (96%) rename {nebula_app => pebrel_app}/README.md (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-antigravity.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-antigravity.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-codebuddy.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-codebuddy.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-copilot.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-copilot.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-cursor.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-cursor.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-grok.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-grok.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-hermes.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-hermes.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-openai.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-openai.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-opencode.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-opencode.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-pi.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-pi.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-qoder.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-qoder.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-qwen.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-agent-qwen.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-check.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-check.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-cloud.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-cloud.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-database.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-database.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-drive.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-drive.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-folder.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-folder.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-globe.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-globe.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-lock.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-lock.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-server.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-backup-server.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-brain.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-brain.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-clipboard-paste.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-clipboard-paste.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-clock.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-clock.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-command-manager.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-command-manager.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-credit-card.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-credit-card.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-download.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-download.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-keymap.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-keymap.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-layout-grid.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-layout-grid.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-mouse-pointer.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-mouse-pointer.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-pencil.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-pencil.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-phone.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-phone.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-pin.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-pin.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-anthropic.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-anthropic.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-azure.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-azure.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-deepseek.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-deepseek.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-doubao.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-doubao.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-gemini.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-gemini.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-ollama.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-ollama.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-openrouter.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-openrouter.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-qwen.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-qwen.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-xiaomimimo.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-xiaomimimo.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-zhipu.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-provider-zhipu.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-puzzle.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-puzzle.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-refresh.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-refresh.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-shield.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-shield.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-sliders.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-sliders.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-spinner-arc.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-spinner-arc.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-spinner-track.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-spinner-track.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-terminal.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-terminal.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-trash-2.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-trash-2.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-changes.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-changes.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-conflict.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-conflict.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-history.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-vcs-history.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-waiting-hand.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-waiting-hand.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-wallet.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-wallet.svgz (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-waypoints.svg (100%) rename {nebula_app => pebrel_app}/assets/icons/nebula-waypoints.svgz (100%) rename {nebula_app => pebrel_app}/build.rs (98%) rename {nebula_app => pebrel_app}/build/i18n.rs (94%) rename {nebula_app => pebrel_app}/build/i18n/catalog.rs (100%) rename {nebula_app => pebrel_app}/examples/plugins/lua-overview/init.luau (100%) rename {nebula_app => pebrel_app}/examples/plugins/lua-overview/plugin.toml (100%) rename {nebula_app => pebrel_app}/examples/plugins/native-overview/plugin.toml (100%) rename {nebula_app => pebrel_app}/examples/plugins/theme-generator/init.luau (100%) rename {nebula_app => pebrel_app}/examples/plugins/theme-generator/plugin.toml (100%) rename {nebula_app => pebrel_app}/examples/shaders/background.glsl (100%) rename {nebula_app => pebrel_app}/examples/shaders/scanlines.frag (100%) rename {nebula_app => pebrel_app}/extra (100%) rename {nebula_app => pebrel_app}/i18n/de-DE.json (100%) rename {nebula_app => pebrel_app}/i18n/en-US.json (100%) rename {nebula_app => pebrel_app}/i18n/es-ES.json (100%) rename {nebula_app => pebrel_app}/i18n/fr-FR.json (100%) rename {nebula_app => pebrel_app}/i18n/it-IT.json (100%) rename {nebula_app => pebrel_app}/i18n/ja-JP.json (100%) rename {nebula_app => pebrel_app}/i18n/ko-KR.json (100%) rename {nebula_app => pebrel_app}/i18n/pt-BR.json (100%) rename {nebula_app => pebrel_app}/i18n/ru-RU.json (100%) rename {nebula_app => pebrel_app}/i18n/zh-CN.json (100%) rename {nebula_app => pebrel_app}/i18n/zh-TW.json (100%) rename {nebula_app => pebrel_app}/res/gles2/text.f.glsl (100%) rename {nebula_app => pebrel_app}/res/gles2/text.v.glsl (100%) rename {nebula_app => pebrel_app}/res/glsl3/text.f.glsl (100%) rename {nebula_app => pebrel_app}/res/glsl3/text.v.glsl (100%) rename {nebula_app => pebrel_app}/res/hooks/opencode.js (100%) rename {nebula_app => pebrel_app}/res/hooks/pi.ts (100%) rename {nebula_app => pebrel_app}/res/hooks/remote_bridge.py (100%) rename {nebula_app => pebrel_app}/res/hooks/remote_files.py (100%) rename {nebula_app => pebrel_app}/res/hooks/remote_shell.py (100%) rename {nebula_app => pebrel_app}/res/hooks/remote_tmux.py (100%) rename {nebula_app => pebrel_app}/res/image.f.glsl (100%) rename {nebula_app => pebrel_app}/res/image.v.glsl (100%) rename {nebula_app => pebrel_app}/res/math.f.glsl (100%) rename {nebula_app => pebrel_app}/res/math.v.glsl (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/.claude-plugin/plugin.json (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/README.md (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/hooks/hooks.json (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/hooks/prompt.js (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/package.json (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/claude/tests/prompt.test.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/opencode/index.tsx (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/opencode/session.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/opencode/session.test.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/pi/editor.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/pi/editor.test.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/pi/index.ts (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/shared/client.mjs (100%) rename {nebula_app => pebrel_app}/res/prompt-suggestions/shared/client.test.mjs (100%) rename {nebula_app => pebrel_app}/res/prompts/codex_prompt_suggestion.txt (100%) rename {nebula_app => pebrel_app}/res/rect.f.glsl (100%) rename {nebula_app => pebrel_app}/res/rect.v.glsl (100%) rename {nebula_app => pebrel_app}/res/shell/bashrc (100%) rename {nebula_app => pebrel_app}/res/shell/powershell.ps1 (100%) rename {nebula_app => pebrel_app}/res/shell/ssh-config-reader.py (100%) rename {nebula_app => pebrel_app}/res/shell/wsl-guest-probe.sh (89%) rename {nebula_app => pebrel_app}/res/shell/zprofile (100%) rename {nebula_app => pebrel_app}/res/shell/zshenv (100%) rename {nebula_app => pebrel_app}/res/shell/zshrc (100%) rename {nebula_app => pebrel_app}/res/ui.f.glsl (100%) rename {nebula_app => pebrel_app}/res/ui.v.glsl (100%) rename {nebula_app => pebrel_app}/src/agent_detection/_shared.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/amp.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/antigravity.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/claude.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/cline.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/codebuddy.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/codex.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/copilot.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/cursor.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/devin.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/droid.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/gemini.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/grok.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/hermes.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/kilo.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/kimi.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/kiro.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/maki.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/opencode.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/pi.toml (100%) rename {nebula_app => pebrel_app}/src/agent_detection/qodercli.toml (100%) rename {nebula_app => pebrel_app}/src/agent_env.rs (100%) rename {nebula_app => pebrel_app}/src/ai_agents.rs (99%) rename {nebula_app => pebrel_app}/src/ai_agents/native_title.rs (100%) rename {nebula_app => pebrel_app}/src/ai_agents/screen_context.rs (100%) rename {nebula_app => pebrel_app}/src/ai_assistant.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/bridges.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/event.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/installation.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/installation/notify.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/integrations.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/lifecycle.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/lifecycle/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/local/antigravity.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/claude_style.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/local/codex_hooks.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/codex_notify.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/config_guard.rs (97%) rename {nebula_app => pebrel_app}/src/ai_hook/local/cursor.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/extended.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/local/kimi.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/managed_files.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/runtime_skills.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/local/settings.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/native_events.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/native_tests.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/ordering.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/payload.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/protocol.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/remote.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/remote/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/tests.rs (99%) rename {nebula_app => pebrel_app}/src/ai_hook/unix.rs (100%) rename {nebula_app => pebrel_app}/src/ai_hook/windows.rs (100%) rename {nebula_app => pebrel_app}/src/ai_providers.rs (100%) rename {nebula_app => pebrel_app}/src/ai_providers/agent_config.rs (100%) rename {nebula_app => pebrel_app}/src/ai_providers/editor.rs (100%) rename {nebula_app => pebrel_app}/src/ai_providers/install.rs (100%) rename {nebula_app => pebrel_app}/src/ai_providers/install/grok.ps1 (100%) rename {nebula_app => pebrel_app}/src/ai_providers/install/node.ps1 (100%) rename {nebula_app => pebrel_app}/src/ai_providers/install/node.sh (100%) rename {nebula_app => pebrel_app}/src/ai_providers/models.rs (100%) rename {nebula_app => pebrel_app}/src/ai_sessions.rs (100%) rename {nebula_app => pebrel_app}/src/app_icon.rs (98%) rename {nebula_app => pebrel_app}/src/app_icon/windows/taskbar.rs (99%) rename {nebula_app => pebrel_app}/src/app_icon/windows/taskbar/shortcuts.rs (100%) rename {nebula_app => pebrel_app}/src/assistant_answer.rs (100%) rename {nebula_app => pebrel_app}/src/assistant_answer/conversation.rs (100%) rename {nebula_app => pebrel_app}/src/assistant_answer/conversation/remote.rs (100%) rename {nebula_app => pebrel_app}/src/assistant_answer/conversation/remote_read.py (100%) rename {nebula_app => pebrel_app}/src/assistant_answer/document.rs (100%) rename {nebula_app => pebrel_app}/src/atomic_file.rs (100%) rename {nebula_app => pebrel_app}/src/backup_remote.rs (100%) rename {nebula_app => pebrel_app}/src/backup_remote/credential_tests.rs (100%) rename {nebula_app => pebrel_app}/src/backup_remote/listing.rs (100%) rename {nebula_app => pebrel_app}/src/backup_remote/preferences.rs (100%) rename {nebula_app => pebrel_app}/src/brand.rs (100%) rename {nebula_app => pebrel_app}/src/chemistry.rs (100%) rename {nebula_app => pebrel_app}/src/cli.rs (99%) rename {nebula_app => pebrel_app}/src/clipboard.rs (99%) rename {nebula_app => pebrel_app}/src/codex_config.rs (100%) rename {nebula_app => pebrel_app}/src/command_lenses.rs (98%) rename {nebula_app => pebrel_app}/src/completion.rs (97%) rename {nebula_app => pebrel_app}/src/completion/connections.rs (98%) rename {nebula_app => pebrel_app}/src/completion/metadata.rs (99%) rename {nebula_app => pebrel_app}/src/completion/paths.rs (100%) rename {nebula_app => pebrel_app}/src/completion/project_probe.py (100%) rename {nebula_app => pebrel_app}/src/completion/project_scripts.rs (100%) rename {nebula_app => pebrel_app}/src/completion/project_scripts/workspace.rs (100%) rename {nebula_app => pebrel_app}/src/completion_context.rs (99%) rename {nebula_app => pebrel_app}/src/completion_context/tests.rs (100%) rename {nebula_app => pebrel_app}/src/config/bell.rs (97%) rename {nebula_app => pebrel_app}/src/config/bindings.rs (99%) rename {nebula_app => pebrel_app}/src/config/bindings/defaults.rs (99%) rename {nebula_app => pebrel_app}/src/config/color.rs (99%) rename {nebula_app => pebrel_app}/src/config/cursor.rs (97%) rename {nebula_app => pebrel_app}/src/config/debug.rs (97%) rename {nebula_app => pebrel_app}/src/config/desktop.rs (93%) rename {nebula_app => pebrel_app}/src/config/font.rs (99%) rename {nebula_app => pebrel_app}/src/config/general.rs (95%) rename {nebula_app => pebrel_app}/src/config/lua/convert.rs (100%) rename {nebula_app => pebrel_app}/src/config/lua/mod.rs (98%) rename {nebula_app => pebrel_app}/src/config/lua/modules.rs (100%) rename {nebula_app => pebrel_app}/src/config/lua/runtime.rs (100%) rename {nebula_app => pebrel_app}/src/config/mod.rs (100%) rename {nebula_app => pebrel_app}/src/config/monitor.rs (99%) rename {nebula_app => pebrel_app}/src/config/mouse.rs (95%) rename {nebula_app => pebrel_app}/src/config/reload.rs (100%) rename {nebula_app => pebrel_app}/src/config/scrolling.rs (95%) rename {nebula_app => pebrel_app}/src/config/selection.rs (90%) rename {nebula_app => pebrel_app}/src/config/serde_utils.rs (100%) rename {nebula_app => pebrel_app}/src/config/shaders.rs (98%) rename {nebula_app => pebrel_app}/src/config/source.rs (98%) rename {nebula_app => pebrel_app}/src/config/template.rs (100%) rename {nebula_app => pebrel_app}/src/config/templates/pebrel.en-US.luau (100%) rename {nebula_app => pebrel_app}/src/config/templates/pebrel.zh-CN.luau (100%) rename {nebula_app => pebrel_app}/src/config/terminal.rs (89%) rename {nebula_app => pebrel_app}/src/config/ui_config.rs (98%) rename {nebula_app => pebrel_app}/src/config/window.rs (99%) rename {nebula_app => pebrel_app}/src/config_cli.rs (100%) rename {nebula_app => pebrel_app}/src/console_main.rs (100%) rename {nebula_app => pebrel_app}/src/daemon.rs (100%) rename {nebula_app => pebrel_app}/src/directory_history.rs (99%) rename {nebula_app => pebrel_app}/src/display/animations.rs (100%) rename {nebula_app => pebrel_app}/src/display/background_color_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/bell.rs (100%) rename {nebula_app => pebrel_app}/src/display/chrome.rs (99%) rename {nebula_app => pebrel_app}/src/display/color.rs (98%) rename {nebula_app => pebrel_app}/src/display/command_completion.rs (100%) rename {nebula_app => pebrel_app}/src/display/command_palette.rs (99%) rename {nebula_app => pebrel_app}/src/display/command_palette/catalog.rs (99%) rename {nebula_app => pebrel_app}/src/display/completion.rs (100%) rename {nebula_app => pebrel_app}/src/display/confirmation_text.rs (100%) rename {nebula_app => pebrel_app}/src/display/content.rs (97%) rename {nebula_app => pebrel_app}/src/display/context_menu.rs (100%) rename {nebula_app => pebrel_app}/src/display/context_menu_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/cursor.rs (98%) rename {nebula_app => pebrel_app}/src/display/damage.rs (98%) rename {nebula_app => pebrel_app}/src/display/document_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/file_dialog.rs (100%) rename {nebula_app => pebrel_app}/src/display/file_dialog/desktop.rs (100%) rename {nebula_app => pebrel_app}/src/display/file_dialog/folder.rs (100%) rename {nebula_app => pebrel_app}/src/display/file_dialog/windows.rs (100%) rename {nebula_app => pebrel_app}/src/display/file_operations.rs (100%) rename {nebula_app => pebrel_app}/src/display/hint.rs (98%) rename {nebula_app => pebrel_app}/src/display/hint/table.rs (99%) rename {nebula_app => pebrel_app}/src/display/image_viewer.rs (100%) rename {nebula_app => pebrel_app}/src/display/inline_image.rs (92%) rename {nebula_app => pebrel_app}/src/display/input_state.rs (97%) rename {nebula_app => pebrel_app}/src/display/keymap.rs (99%) rename {nebula_app => pebrel_app}/src/display/markdown_view.rs (99%) rename {nebula_app => pebrel_app}/src/display/message_queue_entry.rs (99%) rename {nebula_app => pebrel_app}/src/display/meter.rs (97%) rename {nebula_app => pebrel_app}/src/display/mod.rs (99%) rename {nebula_app => pebrel_app}/src/display/network_proxy_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/program_identity.rs (100%) rename {nebula_app => pebrel_app}/src/display/proxy_editor.rs (100%) rename {nebula_app => pebrel_app}/src/display/settings.rs (99%) rename {nebula_app => pebrel_app}/src/display/sftp_panel.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/enumerate.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/gitignore.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/gitignore_tests.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/icons.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/mod.rs (99%) rename {nebula_app => pebrel_app}/src/display/side_panel/notice.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/render.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/cache.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/matching.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/memory.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/stress.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/tests.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/walk.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/search/worker.rs (100%) rename {nebula_app => pebrel_app}/src/display/side_panel/tests.rs (99%) rename {nebula_app => pebrel_app}/src/display/side_panel/vcs.rs (100%) rename {nebula_app => pebrel_app}/src/display/size_info.rs (98%) rename {nebula_app => pebrel_app}/src/display/ssh_connect.rs (99%) rename {nebula_app => pebrel_app}/src/display/ssh_editor_input.rs (100%) rename {nebula_app => pebrel_app}/src/display/ssh_editor_render.rs (100%) rename {nebula_app => pebrel_app}/src/display/ssh_ui.rs (100%) rename {nebula_app => pebrel_app}/src/display/state.rs (98%) rename {nebula_app => pebrel_app}/src/display/suggest_engine.rs (100%) rename {nebula_app => pebrel_app}/src/display/surface_opacity.rs (100%) rename {nebula_app => pebrel_app}/src/display/terminal_color.rs (98%) rename {nebula_app => pebrel_app}/src/display/terminal_math.rs (99%) rename {nebula_app => pebrel_app}/src/display/terminal_math/scan.rs (100%) rename {nebula_app => pebrel_app}/src/display/terminal_math/tests.rs (99%) rename {nebula_app => pebrel_app}/src/display/text_input.rs (100%) rename {nebula_app => pebrel_app}/src/display/text_path_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/toast.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/caret.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/color_math.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/geometry.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/guardrails.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/icons.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/keycap.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/keycap_model.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/mod.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/os_icons.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/overlay_list.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/surface.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/text_field.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/theme.rs (98%) rename {nebula_app => pebrel_app}/src/display/ui/toast.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/toast_kind.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/tokens.rs (100%) rename {nebula_app => pebrel_app}/src/display/ui/widgets.rs (100%) rename {nebula_app => pebrel_app}/src/display/window.rs (99%) rename {nebula_app => pebrel_app}/src/document_io.rs (100%) rename {nebula_app => pebrel_app}/src/encrypted_backup.rs (99%) rename {nebula_app => pebrel_app}/src/encrypted_backup/recovery.rs (100%) rename {nebula_app => pebrel_app}/src/event.rs (99%) rename {nebula_app => pebrel_app}/src/event/agent_runtime.rs (100%) rename {nebula_app => pebrel_app}/src/event/input_state.rs (95%) rename {nebula_app => pebrel_app}/src/event/link_open.rs (100%) rename {nebula_app => pebrel_app}/src/event/proxy.rs (96%) rename {nebula_app => pebrel_app}/src/event/quick_hotkey.rs (100%) rename {nebula_app => pebrel_app}/src/event/runtime_control.rs (100%) rename {nebula_app => pebrel_app}/src/event/search_state.rs (94%) rename {nebula_app => pebrel_app}/src/event/types.rs (98%) rename {nebula_app => pebrel_app}/src/file_uri.rs (99%) rename {nebula_app => pebrel_app}/src/font_install.rs (100%) rename {nebula_app => pebrel_app}/src/git_completion.rs (99%) rename {nebula_app => pebrel_app}/src/git_completion/tracking.rs (100%) rename {nebula_app => pebrel_app}/src/git_worktree.rs (100%) rename {nebula_app => pebrel_app}/src/git_worktree/status.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/assets.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/background_color.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/code_tab.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/code_tab/merge_error.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/code_tab/native_localization_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/completion_history.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/config.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/config/source.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/copy_feedback.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/doc_tabs.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/doc_tabs/image_geometry_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/doc_tabs/image_source.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_drop.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/activity.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/block_inline.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/block_structure.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/chrome.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/code_actions.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/code_actions_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/details.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/document.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/document/writer_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/document/writers.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/edit_history.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/focus_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/image_cache.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/images.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/info.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/inline_edit.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/inline_live_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/inline_object_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/inline_selection.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/inline_selection_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/input_rules.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/link_actions.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/live_commands.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/live_edit.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/live_navigation.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/live_selection.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/live_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/loading.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/mod.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/object_edit.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/object_source.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/object_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/outline.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/outline_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/preview.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/reader_presentation.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/source.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/structure_commands.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/structure_inline_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/structure_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/structure_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_editor/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/file_preview.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/font_loading.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/http.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/math_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/math_view/source_fallback.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/mod.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/molecule_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/motion.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/network_settings.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/prelude.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/scientific_render.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/scientific_render/corpus_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/session_restore.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_fixture.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/about.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/agents.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/agents/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/app_icon.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/appearance.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/appearance_advanced.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/appearance_picker.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/appearance_picker_tests.rs (93%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/background_shader.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/drawer.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/form.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/operations.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/setup.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/backup/view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/command_history.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/command_history/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/cursor_motion.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/cursor_motion/tests.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/design.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/font_picker.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/initialization.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/keymap.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/launcher_actions.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/localization.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/mobile.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/mobile/relay.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/mobile/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/mobile/view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/navigation.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/notifications.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/notifications/native_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/notifications/tests.rs (94%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/plugins.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/plugins_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/plugins_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/brand.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/editor.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/key.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/predictions.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/select_trigger.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/providers/view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/reset.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/scrolling.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/search_header.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/segmented.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/segmented/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/setting_help.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/shell_picker.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/shell_picker_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/sponsor.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/status.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/terminal_effect.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/terminal_effect_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_advanced.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_background_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_community.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_community_tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_community_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_editor.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_editor/background.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_editor/controls.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_editor/view.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_foreground.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_package.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_package_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_package_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_picker.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_studio_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_transfer.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/settings_pane/theme_transfer_view.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/shader_source.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_hosts.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/advanced.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/editor.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/library.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/library/exchange.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/library/tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/ssh_settings/serial_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/answer_reader.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/answer_reader/messages.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/answer_reader/native_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/character_art.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/character_art/paint.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/character_art/tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/colors.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/completion_viewport.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/confirmation.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/confirmation/choices.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/cursor_motion.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/cursor_motion/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/cursor_painter.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects/abi.glsl (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects/abi.wgsl (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects/compiler.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects/frame.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/effects/unavailable.rs (94%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/app_colors.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/cell_fit.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/color_tests.rs (93%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/reading.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/snapshot.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/element/snapshot_probe.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/event_mailbox.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/inline_image.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/keymap.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/keymap/win32.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/ligatures.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/ligatures/tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/link_underline.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/math_overlay.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/mod.rs (90%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/molecule_overlay.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/mouse_protocol.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/code.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/diff.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/fold.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/json.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/markdown.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/mod.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/table.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/tools.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/native_results/viewport.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/osc_links.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/reading.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/reading/output_hover.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/reading/text.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/reading/worker.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/session.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/session_pump.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/ssh_connect_overlay.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/suggest.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/activity_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/agent_activity.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/application_mouse.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/application_mouse/native_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/broadcast.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/completion.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/completion_native_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/completion_native_tests/editor.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/completion_native_tests/remote.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/confirmation.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/conversation.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/cursor.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/cursor/native_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/cursor/tests.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/cursor/typing_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/cwd_report.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/editor.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/image_paste.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/layout.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/native_clipboard.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/native_clipboard_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/native_cmd_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/notifications.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/output_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/path_drop.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/path_drop/ssh_upload.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/pointer.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/pointer/tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/pointer/tests/shell_pointer.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/program_status.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/program_status/tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading/chrome.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading/output_hover.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading/output_hover/chrome.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading/tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/reading/tests/output_hover.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/remote_activity.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/runtime.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/runtime/activity_probe_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/session_failure.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/shell_pointer.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/shell_pointer/layout.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/shell_pointer/tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/ssh_reconnect.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/startup.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/startup_command.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/startup_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/tab_identity.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/typography.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/terminal/view/typography/native_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/custom.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/selection_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/syntax.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/transition.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/transition/geometry.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/theme/transition/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/toast.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/toast/duration_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/typography.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/AGENTS.md (85%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/animated.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/animated/av_player.rs (91%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/animated/native.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/animated/unavailable.rs (89%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/budgets.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/image_loader.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/playback.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/preview.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader/aurora_ribbons.wgsl (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader/compile.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader/liquid_silk.wgsl (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader/native_compile.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/shader/neon_vortex.wgsl (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/tab_bar.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/wallpaper/tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/widgets.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/widgets/segmented.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/widgets/switch.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/widgets_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/agents.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/closing.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/bulk.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/clipboard.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/clipboard_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/group_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/groups.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/input_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/native_paste_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/native_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/command_manager/rows.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/details_panel.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/details_panel_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/documents.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/export.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/file_tree.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/file_tree/path_bar.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/file_tree/sticky.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/key_actions.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/keyboard_bindings.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/keyboard_bindings/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/launcher_menu.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/launcher_menu/tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/logos.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/notifications.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/palette.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/pane_header.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/pane_header/layout.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/pane_header/native_tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/pane_header/sidebar.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/pane_header/visual_tests.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/quick_jump.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/quick_terminal.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/recipes/mod.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/recipes/store.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/drag.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/follow_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/interaction.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/selection.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/target.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_files/transfers.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/remote_tab.rs (93%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/rename.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/rename/tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/render.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/residency.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/runtime_conversation.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/runtime_tabs.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/send_to_chat.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/send_to_chat/menu_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/session_persistence.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/session_persistence/shutdown_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/session_recovery.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/settings_navigation.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/settings_navigation/ui_tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/shell_launch.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/shell_launch/directory_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/shell_picker.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/sidebar.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/sidebar_resize.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/ssh_dialog.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/ssh_reconnect.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_drag.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_duplication.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_duplication/layout_tests.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_menu.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_presentation.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tab_scroll.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/terminal_activity.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/terminal_activity/tests/session_failure.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/tests.rs (96%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/top_tabs.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/update_dialog.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/avatars.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/commit_input.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/list_model.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/list_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/relative_time.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/vcs_panel/rows.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/window_titlebar.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/elevated_launch.rs (98%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/linux_native_tests.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/quick_window.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/quick_window_unix.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs (97%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/shutdown.rs (100%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/startup.rs (95%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/startup_geometry.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/transfer_tests.rs (99%) rename {nebula_app => pebrel_app}/src/gpui_shell/workspace/windowing/update_recovery.rs (100%) rename {nebula_app => pebrel_app}/src/i18n/format.rs (100%) rename {nebula_app => pebrel_app}/src/i18n/locale.rs (100%) rename {nebula_app => pebrel_app}/src/i18n/mod.rs (88%) rename {nebula_app => pebrel_app}/src/i18n/outcomes.rs (100%) rename {nebula_app => pebrel_app}/src/i18n/tests.rs (98%) rename {nebula_app => pebrel_app}/src/input/action.rs (98%) rename {nebula_app => pebrel_app}/src/input/chrome.rs (99%) rename {nebula_app => pebrel_app}/src/input/keyboard.rs (99%) rename {nebula_app => pebrel_app}/src/input/latency.rs (100%) rename {nebula_app => pebrel_app}/src/input/mod.rs (97%) rename {nebula_app => pebrel_app}/src/input/mouse.rs (99%) rename {nebula_app => pebrel_app}/src/input/terminal_input.rs (99%) rename {nebula_app => pebrel_app}/src/input/tests.rs (98%) rename {nebula_app => pebrel_app}/src/input/touch.rs (99%) rename {nebula_app => pebrel_app}/src/logging.rs (98%) rename {nebula_app => pebrel_app}/src/luau.rs (100%) rename {nebula_app => pebrel_app}/src/macos/locale.rs (100%) rename {nebula_app => pebrel_app}/src/macos/mod.rs (100%) rename {nebula_app => pebrel_app}/src/macos/proc.rs (100%) rename {nebula_app => pebrel_app}/src/main.rs (98%) rename {nebula_app => pebrel_app}/src/markdown/mod.rs (100%) rename {nebula_app => pebrel_app}/src/markdown/parser.rs (100%) rename {nebula_app => pebrel_app}/src/math/bitmap.rs (100%) rename {nebula_app => pebrel_app}/src/math/cache.rs (100%) rename {nebula_app => pebrel_app}/src/math/compile.rs (100%) rename {nebula_app => pebrel_app}/src/math/font.rs (100%) rename {nebula_app => pebrel_app}/src/math/ir.rs (100%) rename {nebula_app => pebrel_app}/src/math/layout.rs (100%) rename {nebula_app => pebrel_app}/src/math/mod.rs (100%) rename {nebula_app => pebrel_app}/src/math/parser.rs (100%) rename {nebula_app => pebrel_app}/src/math/rasterizer.rs (100%) rename {nebula_app => pebrel_app}/src/math/spacing.rs (100%) rename {nebula_app => pebrel_app}/src/math/validate.rs (100%) rename {nebula_app => pebrel_app}/src/message_bar.rs (99%) rename {nebula_app => pebrel_app}/src/migrate/mod.rs (100%) rename {nebula_app => pebrel_app}/src/migrate/yaml.rs (100%) rename {nebula_app => pebrel_app}/src/mobile_connection.rs (100%) rename {nebula_app => pebrel_app}/src/mobile_connection/preferences.rs (100%) rename {nebula_app => pebrel_app}/src/mobile_connection/recovery.rs (100%) rename {nebula_app => pebrel_app}/src/motion.rs (100%) rename {nebula_app => pebrel_app}/src/mux.rs (100%) rename {nebula_app => pebrel_app}/src/native_result_model.rs (99%) rename {nebula_app => pebrel_app}/src/native_result_model/diff.rs (99%) rename {nebula_app => pebrel_app}/src/native_result_model/directory.rs (99%) rename {nebula_app => pebrel_app}/src/native_result_model/json.rs (99%) rename {nebula_app => pebrel_app}/src/native_view_cli.rs (99%) rename {nebula_app => pebrel_app}/src/nebula_history.rs (100%) rename {nebula_app => pebrel_app}/src/nebula_history/deletion_tests.rs (100%) rename {nebula_app => pebrel_app}/src/notify.rs (99%) rename {nebula_app => pebrel_app}/src/panic.rs (98%) rename {nebula_app => pebrel_app}/src/platform/acrylic.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/bindings.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/composition.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/controller.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/gpui_tests.rs (99%) rename {nebula_app => pebrel_app}/src/platform/acrylic/runtime.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/acrylic/transitions.rs (100%) rename {nebula_app => pebrel_app}/src/platform/agent_launch.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/macos.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/tests/proc_fixture.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/windows/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/windows/worker.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/windows/worker/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ai_session_identity/windows/worker/update_tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/background_media.rs (100%) rename {nebula_app => pebrel_app}/src/platform/background_media/gif_decoder.rs (99%) rename {nebula_app => pebrel_app}/src/platform/background_media/video.rs (100%) rename {nebula_app => pebrel_app}/src/platform/background_media/video/media_foundation.rs (100%) rename {nebula_app => pebrel_app}/src/platform/capabilities.rs (100%) rename {nebula_app => pebrel_app}/src/platform/credentials.rs (100%) rename {nebula_app => pebrel_app}/src/platform/dirs.rs (97%) rename {nebula_app => pebrel_app}/src/platform/distribution.rs (100%) rename {nebula_app => pebrel_app}/src/platform/effect_activity.rs (100%) rename {nebula_app => pebrel_app}/src/platform/elevation.rs (100%) rename {nebula_app => pebrel_app}/src/platform/elevation/handover.rs (100%) rename {nebula_app => pebrel_app}/src/platform/elevation/handover/security.rs (99%) rename {nebula_app => pebrel_app}/src/platform/elevation/handover/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/elevation/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/environment.rs (94%) rename {nebula_app => pebrel_app}/src/platform/file_drag/mod.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_drag/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_drag/windows/stream.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_drag/windows/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_drag/windows/tests/ole_probe.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_manager.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_picker.rs (100%) rename {nebula_app => pebrel_app}/src/platform/file_preview.rs (100%) rename {nebula_app => pebrel_app}/src/platform/fonts.rs (100%) rename {nebula_app => pebrel_app}/src/platform/global_shortcut.rs (100%) rename {nebula_app => pebrel_app}/src/platform/keyboard.rs (100%) rename {nebula_app => pebrel_app}/src/platform/keyboard/tests.rs (97%) rename {nebula_app => pebrel_app}/src/platform/launch_directory.rs (99%) rename {nebula_app => pebrel_app}/src/platform/local_paths.rs (100%) rename {nebula_app => pebrel_app}/src/platform/locale.rs (97%) rename {nebula_app => pebrel_app}/src/platform/mod.rs (100%) rename {nebula_app => pebrel_app}/src/platform/notifications.rs (97%) rename {nebula_app => pebrel_app}/src/platform/notifications/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/pi_session.rs (100%) rename {nebula_app => pebrel_app}/src/platform/pi_session.sh (100%) rename {nebula_app => pebrel_app}/src/platform/private_file.rs (100%) rename {nebula_app => pebrel_app}/src/platform/process.rs (100%) rename {nebula_app => pebrel_app}/src/platform/process_output.rs (100%) rename {nebula_app => pebrel_app}/src/platform/process_snapshot.rs (100%) rename {nebula_app => pebrel_app}/src/platform/process_snapshot/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/quick_window.rs (99%) rename {nebula_app => pebrel_app}/src/platform/serial_port.rs (100%) rename {nebula_app => pebrel_app}/src/platform/session_end.rs (100%) rename {nebula_app => pebrel_app}/src/platform/session_end/windows.rs (100%) rename {nebula_app => pebrel_app}/src/platform/session_end/windows/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/shell.rs (96%) rename {nebula_app => pebrel_app}/src/platform/shell_integration.rs (99%) rename {nebula_app => pebrel_app}/src/platform/sound.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ssh_agent.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ssh_agent/test_support.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ssh_agent/tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/ssh_config_probe_tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/startup.rs (98%) rename {nebula_app => pebrel_app}/src/platform/startup/console.rs (100%) rename {nebula_app => pebrel_app}/src/platform/startup/console_tests.rs (100%) rename {nebula_app => pebrel_app}/src/platform/startup/first_frame.rs (100%) rename {nebula_app => pebrel_app}/src/platform/startup/login.rs (100%) rename {nebula_app => pebrel_app}/src/platform/tray_native.rs (99%) rename {nebula_app => pebrel_app}/src/platform/update_installation.rs (98%) rename {nebula_app => pebrel_app}/src/platform/update_installation/macos.rs (100%) rename {nebula_app => pebrel_app}/src/platform/update_installation/privileged.rs (99%) rename {nebula_app => pebrel_app}/src/platform/video_underlay.rs (100%) rename {nebula_app => pebrel_app}/src/platform/video_underlay/macos.rs (100%) rename {nebula_app => pebrel_app}/src/platform/window_capture.rs (100%) rename {nebula_app => pebrel_app}/src/platform/window_chrome.rs (100%) rename {nebula_app => pebrel_app}/src/platform/window_chrome/macos.rs (100%) rename {nebula_app => pebrel_app}/src/platform/window_material.rs (99%) rename {nebula_app => pebrel_app}/src/platform/window_visibility.rs (100%) rename {nebula_app => pebrel_app}/src/platform/wsl_guest_shell.rs (99%) rename {nebula_app => pebrel_app}/src/platform/wsl_hooks.rs (76%) rename {nebula_app => pebrel_app}/src/platform/wsl_hooks/windows.rs (98%) rename {nebula_app => pebrel_app}/src/plugins/AGENTS.md (88%) rename {nebula_app => pebrel_app}/src/plugins/BOUNDARIES.md (100%) rename {nebula_app => pebrel_app}/src/plugins/README.md (96%) rename {nebula_app => pebrel_app}/src/plugins/boundary.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/cli.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/install.rs (99%) rename {nebula_app => pebrel_app}/src/plugins/install_tests.rs (99%) rename {nebula_app => pebrel_app}/src/plugins/json.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/lua.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/mod.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/package.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/tests.rs (100%) rename {nebula_app => pebrel_app}/src/plugins/themes.rs (99%) rename {nebula_app => pebrel_app}/src/polling/ipc.rs (100%) rename {nebula_app => pebrel_app}/src/polling/mod.rs (99%) rename {nebula_app => pebrel_app}/src/polling/signal.rs (100%) rename {nebula_app => pebrel_app}/src/process_tree.rs (100%) rename {nebula_app => pebrel_app}/src/product_input.rs (100%) rename {nebula_app => pebrel_app}/src/product_renderer.rs (100%) rename {nebula_app => pebrel_app}/src/product_ui/mod.rs (100%) rename {nebula_app => pebrel_app}/src/product_ui/ui.rs (100%) rename {nebula_app => pebrel_app}/src/product_window_context.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/client.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/client_tests.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/evaluation.json (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/http.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/install.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/launcher.rs (99%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/service.rs (98%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/service_tests.rs (100%) rename {nebula_app => pebrel_app}/src/prompt_suggestions/tests.rs (100%) rename {nebula_app => pebrel_app}/src/provider_test.rs (100%) rename {nebula_app => pebrel_app}/src/proxy_test.rs (100%) rename {nebula_app => pebrel_app}/src/remote_dirs.rs (100%) rename {nebula_app => pebrel_app}/src/render_cache.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/image.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/image_layout.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/math.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/mod.rs (99%) rename {nebula_app => pebrel_app}/src/renderer/platform.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/rects.rs (99%) rename {nebula_app => pebrel_app}/src/renderer/shader.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/atlas.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/builtin_font.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/builtin_font/glyphs.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/font_rasterizer.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/gles2.rs (99%) rename {nebula_app => pebrel_app}/src/renderer/text/glsl3.rs (99%) rename {nebula_app => pebrel_app}/src/renderer/text/glyph_cache.rs (100%) rename {nebula_app => pebrel_app}/src/renderer/text/mod.rs (99%) rename {nebula_app => pebrel_app}/src/renderer/ui.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/agent_api.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/cli.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/command.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/conversation.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/git.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/git/tests.rs (98%) rename {nebula_app => pebrel_app}/src/runtime_api/handover.rs (97%) rename {nebula_app => pebrel_app}/src/runtime_api/handover_tests.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/mobile_bridge.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/mobile_screen.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/orchestrate.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/server.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/shortcuts.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/tabs.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_api/terminal_read.rs (97%) rename {nebula_app => pebrel_app}/src/runtime_api/tests.rs (99%) rename {nebula_app => pebrel_app}/src/runtime_api/transport.rs (100%) rename {nebula_app => pebrel_app}/src/runtime_exec.rs (97%) rename {nebula_app => pebrel_app}/src/saved_commands.rs (100%) rename {nebula_app => pebrel_app}/src/saved_commands/builtins.rs (100%) rename {nebula_app => pebrel_app}/src/saved_commands/bulk.rs (100%) rename {nebula_app => pebrel_app}/src/saved_commands/groups.rs (100%) rename {nebula_app => pebrel_app}/src/scheduler.rs (100%) rename {nebula_app => pebrel_app}/src/scientific_corpus.rs (100%) rename {nebula_app => pebrel_app}/src/scrollbar.rs (100%) rename {nebula_app => pebrel_app}/src/serial_session.rs (97%) rename {nebula_app => pebrel_app}/src/serial_session/tests.rs (100%) rename {nebula_app => pebrel_app}/src/session.rs (100%) rename {nebula_app => pebrel_app}/src/session/identity.rs (100%) rename {nebula_app => pebrel_app}/src/session/window_layout.rs (100%) rename {nebula_app => pebrel_app}/src/shell_detect.rs (98%) rename {nebula_app => pebrel_app}/src/ssh.rs (99%) rename {nebula_app => pebrel_app}/src/ssh/hosts.rs (100%) rename {nebula_app => pebrel_app}/src/ssh/hosts/wsl.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_credentials.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/connection.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/connection/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/duplication.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/exchange.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/host_lists.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_profiles/organization.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_prompt.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_proxy.rs (99%) rename {nebula_app => pebrel_app}/src/ssh_session.rs (99%) rename {nebula_app => pebrel_app}/src/ssh_session/agent.rs (99%) rename {nebula_app => pebrel_app}/src/ssh_session/agent/test_support.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/agent/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/completion.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/config.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/exec.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/forward.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/forward/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/integration.rs (98%) rename {nebula_app => pebrel_app}/src/ssh_session/lifecycle.rs (99%) rename {nebula_app => pebrel_app}/src/ssh_session/lifecycle/tests.rs (98%) rename {nebula_app => pebrel_app}/src/ssh_session/lifecycle/tests/keepalive.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/lifecycle/tests/sftp.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/pane_connection.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/acceptance.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/activity.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/discover.sh (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/identity.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/resume/tests/startup.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/route.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/route/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/route/tests/loopback.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/sftp.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_session/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/document.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/document/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/document/tests/peer.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/export.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/intake.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/intake/tests.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/limits.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/preview.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/remote_cwd.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/transaction.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/transfer.rs (100%) rename {nebula_app => pebrel_app}/src/ssh_sftp/transfer_io_tests.rs (100%) rename {nebula_app => pebrel_app}/src/string.rs (100%) rename {nebula_app => pebrel_app}/src/svn_status.rs (100%) rename {nebula_app => pebrel_app}/src/sync.rs (99%) rename {nebula_app => pebrel_app}/src/taskbar.rs (100%) rename {nebula_app => pebrel_app}/src/terminal_profiles.rs (100%) rename {nebula_app => pebrel_app}/src/text_document.rs (100%) rename {nebula_app => pebrel_app}/src/text_preview.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/community/AGENTS.md (93%) rename {nebula_app => pebrel_app}/src/theme_library/community/mod.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/community/tests.rs (99%) rename {nebula_app => pebrel_app}/src/theme_library/community/transfer.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/document.rs (99%) rename {nebula_app => pebrel_app}/src/theme_library/format_tests.rs (99%) rename {nebula_app => pebrel_app}/src/theme_library/formats.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/mod.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/AGENTS.md (93%) rename {nebula_app => pebrel_app}/src/theme_library/package/CLI.md (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/README.md (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/archive.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/cli.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/envelope.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/mod.rs (100%) rename {nebula_app => pebrel_app}/src/theme_library/package/tests.rs (99%) rename {nebula_app => pebrel_app}/src/theme_library/preferences.rs (86%) rename {nebula_app => pebrel_app}/src/theme_library/store.rs (99%) rename {nebula_app => pebrel_app}/src/theme_library/tests.rs (98%) rename {nebula_app => pebrel_app}/src/tray.rs (100%) rename {nebula_app => pebrel_app}/src/update_check.rs (99%) rename {nebula_app => pebrel_app}/src/update_check/assets.rs (100%) rename {nebula_app => pebrel_app}/src/update_check/fallback.rs (99%) rename {nebula_app => pebrel_app}/src/update_check/test_source.rs (100%) rename {nebula_app => pebrel_app}/src/update_download.rs (100%) rename {nebula_app => pebrel_app}/src/update_download/cache.rs (100%) rename {nebula_app => pebrel_app}/src/update_download/handoff.ps1 (100%) rename {nebula_app => pebrel_app}/src/update_download/handoff.rs (99%) rename {nebula_app => pebrel_app}/src/update_download/handoff/macos.rs (98%) rename {nebula_app => pebrel_app}/src/update_download/handoff/macos/tests.rs (100%) rename {nebula_app => pebrel_app}/src/update_download/handoff/tests.rs (99%) rename {nebula_app => pebrel_app}/src/update_proxy.rs (100%) rename {nebula_app => pebrel_app}/src/update_proxy/test_support.rs (100%) rename {nebula_app => pebrel_app}/src/ux.rs (100%) rename {nebula_app => pebrel_app}/src/window_context.rs (99%) rename {nebula_app => pebrel_app}/src/window_context/agent_activity.rs (98%) rename {nebula_app => pebrel_app}/src/window_context/agents.rs (100%) rename {nebula_app => pebrel_app}/src/window_context/model.rs (96%) rename {nebula_app => pebrel_app}/src/window_context/nebula_fetch_art.rs (100%) rename {nebula_app => pebrel_app}/src/window_context/runtime.rs (99%) rename {nebula_app => pebrel_app}/src/window_context/session_snapshot.rs (99%) rename {nebula_app => pebrel_app}/src/window_context/split.rs (99%) rename {nebula_app => pebrel_app}/src/window_context/ssh_panes.rs (100%) rename {nebula_app => pebrel_app}/src/window_context/startup_shell_tests.rs (99%) rename {nebula_app => pebrel_app}/src/window_context/tab_duplication.rs (100%) rename {nebula_app => pebrel_app}/src/window_context/welcome.rs (100%) rename {nebula_app => pebrel_app}/src/window_transition.rs (100%) rename {nebula_app => pebrel_app}/tests/file_line_budget.rs (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/animated-720p12.gif (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/disposal-oracle.rgba (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/disposal.gif (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/gif-720p-oracle-samples.json (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/invalid.gif (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/large-canvas-header.gif (100%) rename {nebula_app => pebrel_app}/tests/fixtures/background-gif/zero-delay-10000.gif (100%) rename {nebula_app => pebrel_app}/tests/fixtures/theme-package/minimal-video.mp4 (100%) rename {nebula_app => pebrel_app}/tests/i18n_contract.rs (100%) rename {nebula_app => pebrel_app}/tests/theme_package_cli.rs (100%) rename {nebula_app => pebrel_app}/tests/windows_console_startup.rs (100%) rename {nebula_app => pebrel_app}/windows/nebula-dark.ico (100%) rename {nebula_app => pebrel_app}/windows/nebula-light.ico (100%) rename {nebula_app => pebrel_app}/windows/nebula-titanium.ico (100%) rename {nebula_app => pebrel_app}/windows/nebula.ico (100%) rename {nebula_app => pebrel_app}/windows/nebula.manifest (100%) rename {nebula_app => pebrel_app}/windows/nebula.rc (100%) rename {nebula_config => pebrel_config}/Cargo.toml (83%) rename {nebula_config => pebrel_config}/src/lib.rs (98%) rename {nebula_config_derive => pebrel_config_derive}/Cargo.toml (86%) rename {nebula_config_derive => pebrel_config_derive}/src/config_deserialize/de_enum.rs (97%) rename {nebula_config_derive => pebrel_config_derive}/src/config_deserialize/de_struct.rs (96%) rename {nebula_config_derive => pebrel_config_derive}/src/config_deserialize/mod.rs (100%) rename {nebula_config_derive => pebrel_config_derive}/src/lib.rs (96%) rename {nebula_config_derive => pebrel_config_derive}/src/serde_replace.rs (95%) rename {nebula_config_derive => pebrel_config_derive}/tests/config.rs (98%) rename {nebula_gpui => pebrel_gpui}/ARCHITECTURE.md (90%) rename {nebula_gpui => pebrel_gpui}/Cargo.toml (89%) rename {nebula_gpui => pebrel_gpui}/IME_CHECKLIST.md (97%) rename {nebula_gpui => pebrel_gpui}/src/app.rs (93%) rename {nebula_gpui => pebrel_gpui}/src/lib.rs (90%) create mode 100644 pebrel_gpui/src/main.rs rename {nebula_gpui => pebrel_gpui}/src/media_probe/gif_stream.rs (68%) rename {nebula_gpui => pebrel_gpui}/src/media_probe/main.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/media_probe/metrics.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/media_probe/native_gate.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/ui/bootstrap.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/ui/mod.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/ui/prelude.rs (93%) rename {nebula_gpui => pebrel_gpui}/src/views/component_gallery.rs (100%) rename {nebula_gpui => pebrel_gpui}/src/views/mod.rs (100%) rename {nebula_hook => pebrel_hook}/Cargo.toml (95%) rename {nebula_hook => pebrel_hook}/src/main.rs (100%) rename {nebula_hook => pebrel_hook}/tests/lifetime.rs (100%) rename {nebula_settings => pebrel_settings}/AGENTS.md (86%) rename {nebula_settings => pebrel_settings}/Cargo.toml (94%) rename {nebula_settings => pebrel_settings}/src/agent_hooks.rs (100%) rename {nebula_settings => pebrel_settings}/src/app_icon.rs (100%) rename {nebula_settings => pebrel_settings}/src/background_effects.rs (100%) rename {nebula_settings => pebrel_settings}/src/background_media.rs (100%) rename {nebula_settings => pebrel_settings}/src/config_defaults.rs (100%) rename {nebula_settings => pebrel_settings}/src/cursor_motion.rs (100%) rename {nebula_settings => pebrel_settings}/src/custom_theme.rs (100%) rename {nebula_settings => pebrel_settings}/src/language.rs (100%) rename {nebula_settings => pebrel_settings}/src/lib.rs (99%) rename {nebula_settings => pebrel_settings}/src/ligatures.rs (100%) rename {nebula_settings => pebrel_settings}/src/notifications.rs (100%) rename {nebula_settings => pebrel_settings}/src/paths.rs (100%) rename {nebula_settings => pebrel_settings}/src/paths/migration.rs (100%) rename {nebula_settings => pebrel_settings}/src/paths/tests.rs (100%) rename {nebula_settings => pebrel_settings}/src/prompt_suggestions.rs (100%) rename {nebula_settings => pebrel_settings}/src/quick_terminal.rs (100%) rename {nebula_settings => pebrel_settings}/src/reset.rs (100%) rename {nebula_settings => pebrel_settings}/src/scrolling.rs (100%) rename {nebula_settings => pebrel_settings}/src/shader_parameters.rs (100%) rename {nebula_settings => pebrel_settings}/src/tab_bar_material.rs (100%) rename {nebula_settings => pebrel_settings}/src/terminal_effects.rs (100%) rename {nebula_settings => pebrel_settings}/src/themes.rs (100%) rename {nebula_split => pebrel_split}/Cargo.toml (83%) rename {nebula_split => pebrel_split}/src/dock.rs (100%) rename {nebula_split => pebrel_split}/src/lib.rs (99%) rename {nebula_terminal => pebrel_terminal}/AGENTS.md (78%) rename {nebula_terminal => pebrel_terminal}/Cargo.toml (98%) rename {nebula_terminal => pebrel_terminal}/src/event.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/event_loop.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/event_loop/kitty_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/event_loop/sync_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/event_loop/zmodem_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/grid/mod.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/grid/resize.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/grid/row.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/grid/storage.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/grid/tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/index.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/inline_content.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/inline_content/command.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/inline_image.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/kitty_graphics.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/kitty_graphics/control.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/lib.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/osc_cwd.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/program_status.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/program_status/tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/render.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/render/boxdraw.rs (99%) rename {nebula_terminal => pebrel_terminal}/src/selection.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/sync.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/cell.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/clear.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/color.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/damage.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/emoji_input_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/grid_content.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/inline_image.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/input.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/keyboard.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/keyboard_contract_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/mod.rs (99%) rename {nebula_terminal => pebrel_terminal}/src/term/mouse.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/program_status.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/prompt.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/reading.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/reading/guard.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/reading/tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/redraw_anchor.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/renderable.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/search.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/title.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/term/viewport.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/thread.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/clipboard.ps1 (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/command.sh (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/completion.ps1 (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/completion.sh (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/connection.ps1 (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/connection.sh (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/mod.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/pointer.ps1 (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/pointer.sh (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/unix.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/blocking.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/child.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/cmd_prompt.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/conpty.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/environment.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/mod.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/powershell_launch.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/proxy.ps1 (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/proxy_tests.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/tty/windows/test/bash_input.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/vi_mode.rs (100%) rename {nebula_terminal => pebrel_terminal}/src/zmodem.rs (100%) rename {nebula_terminal => pebrel_terminal}/tests/connection_transport.rs (94%) rename {nebula_terminal => pebrel_terminal}/tests/grid_images.rs (94%) rename {nebula_terminal => pebrel_terminal}/tests/inline_image.rs (96%) rename {nebula_terminal => pebrel_terminal}/tests/native_clipboard.rs (100%) rename {nebula_terminal => pebrel_terminal}/tests/native_pointer.rs (100%) rename {nebula_terminal => pebrel_terminal}/tests/osc7501.rs (97%) rename {nebula_terminal => pebrel_terminal}/tests/pi_redraw_anchor.rs (97%) rename {nebula_terminal => pebrel_terminal}/tests/ref.rs (91%) rename {nebula_terminal => pebrel_terminal}/tests/ref/alt_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/alt_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/alt_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/alt_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/clear_underline/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/clear_underline/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/clear_underline/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/clear_underline/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_underline/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_underline/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_underline/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/colored_underline/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/csi_rep/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/csi_rep/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/csi_rep/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/csi_rep/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/decaln_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/decaln_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/decaln_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/decaln_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/deccolm_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/deccolm_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/deccolm_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/deccolm_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_chars_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_chars_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_chars_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_chars_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_lines/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_lines/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_lines/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/delete_lines/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_chars_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_chars_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_chars_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_chars_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_in_line/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_in_line/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_in_line/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/erase_in_line/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/fish_cc/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/fish_cc/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/fish_cc/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/fish_cc/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/grid_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/grid_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/grid_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/grid_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/history/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/history/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/history/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/history/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/hyperlinks/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/hyperlinks/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/hyperlinks/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/hyperlinks/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/indexed_256_colors/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/indexed_256_colors/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/indexed_256_colors/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/indexed_256_colors/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/insert_blank_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/insert_blank_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/insert_blank_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/insert_blank_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/ll/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/ll/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/ll/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/ll/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/newline_with_cursor_beyond_scroll_region/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/newline_with_cursor_beyond_scroll_region/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/newline_with_cursor_beyond_scroll_region/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/origin_goto/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/origin_goto/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/origin_goto/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/origin_goto/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/region_scroll_down/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/region_scroll_down/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/region_scroll_down/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/region_scroll_down/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/row_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/row_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/row_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/row_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor_alt/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor_alt/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor_alt/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/saved_cursor_alt/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_in_region_up_preserves_history/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_in_region_up_preserves_history/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_in_region_up_preserves_history/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_in_region_up_preserves_history/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_up_reset/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_up_reset/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_up_reset/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/scroll_up_reset/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/selective_erasure/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/selective_erasure/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/selective_erasure/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/selective_erasure/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/sgr/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/sgr/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/sgr/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/sgr/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tab_rendering/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tab_rendering/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tab_rendering/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tab_rendering/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_git_log/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_git_log/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_git_log/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_git_log/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_htop/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_htop/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_htop/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/tmux_htop/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/underline/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/underline/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/underline/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/underline/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_24bitcolors_bce/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_24bitcolors_bce/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_24bitcolors_bce/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_24bitcolors_bce/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_large_window_scroll/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_large_window_scroll/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_large_window_scroll/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_large_window_scroll/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_simple_edit/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_simple_edit/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_simple_edit/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vim_simple_edit/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_cursor_movement_1/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_cursor_movement_1/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_cursor_movement_1/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_cursor_movement_1/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_insert/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_insert/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_insert/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_insert/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_1/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_1/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_1/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_1/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_2/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_2/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_2/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_origin_mode_2/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_scroll/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_scroll/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_scroll/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_scroll/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_tab_clear_set/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_tab_clear_set/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_tab_clear_set/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/vttest_tab_clear_set/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/wrapline_alt_toggle/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/wrapline_alt_toggle/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/wrapline_alt_toggle/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/wrapline_alt_toggle/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zerowidth/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zerowidth/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zerowidth/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zerowidth/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_bck_i_search/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_bck_i_search/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_bck_i_search/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_bck_i_search/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_tab_completion/config.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_tab_completion/grid.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_tab_completion/nebula.recording (100%) rename {nebula_terminal => pebrel_terminal}/tests/ref/zsh_tab_completion/size.json (100%) rename {nebula_terminal => pebrel_terminal}/tests/windows_pty_lifecycle.rs (98%) diff --git a/.gitattributes b/.gitattributes index 7abe9b4a4..20823f528 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/.github/ci-profile.toml b/.github/ci-profile.toml index 1535e3ed1..03b21a1d0 100644 --- a/.github/ci-profile.toml +++ b/.github/ci-profile.toml @@ -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 } diff --git a/.github/workflows/architecture.yml b/.github/workflows/architecture.yml index 5613d3c17..c057e3aa8 100644 --- a/.github/workflows/architecture.yml +++ b/.github/workflows/architecture.yml @@ -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 diff --git a/.github/workflows/opencode-bridge.yml b/.github/workflows/opencode-bridge.yml index 10865ee13..eaf62ce1d 100644 --- a/.github/workflows/opencode-bridge.yml +++ b/.github/workflows/opencode-bridge.yml @@ -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: diff --git a/.github/workflows/preview-packages.yml b/.github/workflows/preview-packages.yml index f907190b1..e8b963231 100644 --- a/.github/workflows/preview-packages.yml +++ b/.github/workflows/preview-packages.yml @@ -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*" @@ -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 @@ -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: @@ -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' }} @@ -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" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95c26e897..2009f4096 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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) @@ -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 @@ -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 @@ -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' } } diff --git a/AGENTS.md b/AGENTS.md index 998369b39..c3b5448ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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` 的发布章节。 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2956a9a07..46c5595a7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 @@ -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 @@ -155,15 +155,15 @@ ratcheting. Run without `--base` for current-tree checks during development. python3 scripts/check_architecture.py --base 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 diff --git a/Cargo.lock b/Cargo.lock index eaf0d2994..d6afaa355 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5296,183 +5296,6 @@ dependencies = [ "jni-sys", ] -[[package]] -name = "nebula" -version = "2.5.0" -dependencies = [ - "ab_glyph_rasterizer", - "aes-gcm", - "ahash", - "anyhow", - "argon2", - "ashpd", - "base64 0.22.1", - "bitflags 2.13.0", - "chematic-depict", - "chematic-smiles", - "chrono", - "clap", - "clap_complete", - "copypasta", - "crossfont", - "dirs", - "dwrote", - "embed-resource", - "futures", - "getrandom 0.3.4", - "gif 0.14.2", - "gl_generator", - "glob", - "global-hotkey", - "glutin", - "gpui", - "gpui-component", - "gpui-component-assets", - "gpui_platform", - "hmac 0.13.0", - "home", - "html-escape", - "image", - "libc", - "log", - "markdown", - "mlua", - "naga", - "nebula-settings", - "nebula-split", - "nebula_config", - "nebula_config_derive", - "nebula_terminal", - "notify 8.2.0", - "notify-rust", - "objc2 0.6.3", - "objc2-app-kit 0.3.2", - "objc2-av-foundation", - "objc2-core-foundation", - "objc2-foundation 0.3.2", - "objc2-quartz-core 0.3.2", - "parking_lot", - "pebrel-completions", - "pebrel-mobile-link", - "png 0.17.16", - "polling", - "pulldown-cmark", - "pulldown-latex", - "rand 0.10.2", - "raw-window-handle", - "regex", - "resvg 0.46.0", - "rfd", - "rsa", - "rusqlite", - "russh", - "russh-sftp", - "security-framework", - "serde", - "serde_json", - "serde_path_to_error", - "serde_yaml", - "sha1 0.11.0", - "sha2 0.11.0", - "signal-hook", - "tauri-winrt-notification", - "tempfile", - "tokio", - "toml 0.9.11+spec-1.1.0", - "toml_edit 0.24.0+spec-1.1.0", - "tray-icon", - "ttf-parser", - "unicode-segmentation", - "unicode-width", - "ureq", - "windows 0.61.3", - "windows-core 0.61.2", - "windows-sys 0.59.0", - "winit", - "winreg", - "xdg", - "zeroize", - "zip", -] - -[[package]] -name = "nebula-gpui" -version = "0.1.0" -dependencies = [ - "gif 0.14.2", - "gpui", - "gpui-component", - "gpui-component-assets", - "gpui_platform", - "image", - "raw-window-handle", - "serde", - "serde_json", - "windows 0.61.3", -] - -[[package]] -name = "nebula-settings" -version = "2.5.0" - -[[package]] -name = "nebula-split" -version = "2.5.0" - -[[package]] -name = "nebula_config" -version = "2.5.0" -dependencies = [ - "log", - "nebula_config_derive", - "serde", - "toml 0.9.11+spec-1.1.0", -] - -[[package]] -name = "nebula_config_derive" -version = "2.5.0" -dependencies = [ - "log", - "nebula_config", - "proc-macro2", - "quote", - "serde", - "syn 2.0.119", - "toml 0.9.11+spec-1.1.0", -] - -[[package]] -name = "nebula_hook" -version = "0.6.0" - -[[package]] -name = "nebula_terminal" -version = "2.5.0" -dependencies = [ - "base64 0.22.1", - "bitflags 2.13.0", - "home", - "libc", - "log", - "miow", - "parking_lot", - "piper", - "polling", - "regex-automata", - "rustix 1.1.2", - "rustix-openpty", - "serde", - "serde_json", - "sha2 0.11.0", - "signal-hook", - "unicode-properties", - "unicode-segmentation", - "unicode-width", - "vte", - "windows-sys 0.59.0", -] - [[package]] name = "new_debug_unreachable" version = "1.0.6" @@ -6517,6 +6340,105 @@ dependencies = [ "hmac 0.13.0", ] +[[package]] +name = "pebrel" +version = "2.5.0" +dependencies = [ + "ab_glyph_rasterizer", + "aes-gcm", + "ahash", + "anyhow", + "argon2", + "ashpd", + "base64 0.22.1", + "bitflags 2.13.0", + "chematic-depict", + "chematic-smiles", + "chrono", + "clap", + "clap_complete", + "copypasta", + "crossfont", + "dirs", + "dwrote", + "embed-resource", + "futures", + "getrandom 0.3.4", + "gif 0.14.2", + "gl_generator", + "glob", + "global-hotkey", + "glutin", + "gpui", + "gpui-component", + "gpui-component-assets", + "gpui_platform", + "hmac 0.13.0", + "home", + "html-escape", + "image", + "libc", + "log", + "markdown", + "mlua", + "naga", + "notify 8.2.0", + "notify-rust", + "objc2 0.6.3", + "objc2-app-kit 0.3.2", + "objc2-av-foundation", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "parking_lot", + "pebrel-completions", + "pebrel-mobile-link", + "pebrel-settings", + "pebrel-split", + "pebrel_config", + "pebrel_config_derive", + "pebrel_terminal", + "png 0.17.16", + "polling", + "pulldown-cmark", + "pulldown-latex", + "rand 0.10.2", + "raw-window-handle", + "regex", + "resvg 0.46.0", + "rfd", + "rsa", + "rusqlite", + "russh", + "russh-sftp", + "security-framework", + "serde", + "serde_json", + "serde_path_to_error", + "serde_yaml", + "sha1 0.11.0", + "sha2 0.11.0", + "signal-hook", + "tauri-winrt-notification", + "tempfile", + "tokio", + "toml 0.9.11+spec-1.1.0", + "toml_edit 0.24.0+spec-1.1.0", + "tray-icon", + "ttf-parser", + "unicode-segmentation", + "unicode-width", + "ureq", + "windows 0.61.3", + "windows-core 0.61.2", + "windows-sys 0.59.0", + "winit", + "winreg", + "xdg", + "zeroize", + "zip", +] + [[package]] name = "pebrel-completions" version = "2.5.0" @@ -6528,6 +6450,22 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "pebrel-gpui" +version = "0.1.0" +dependencies = [ + "gif 0.14.2", + "gpui", + "gpui-component", + "gpui-component-assets", + "gpui_platform", + "image", + "raw-window-handle", + "serde", + "serde_json", + "windows 0.61.3", +] + [[package]] name = "pebrel-mobile-link" version = "0.1.0" @@ -6557,6 +6495,68 @@ dependencies = [ "zeroize", ] +[[package]] +name = "pebrel-settings" +version = "2.5.0" + +[[package]] +name = "pebrel-split" +version = "2.5.0" + +[[package]] +name = "pebrel_config" +version = "2.5.0" +dependencies = [ + "log", + "pebrel_config_derive", + "serde", + "toml 0.9.11+spec-1.1.0", +] + +[[package]] +name = "pebrel_config_derive" +version = "2.5.0" +dependencies = [ + "log", + "pebrel_config", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", + "toml 0.9.11+spec-1.1.0", +] + +[[package]] +name = "pebrel_hook" +version = "0.6.0" + +[[package]] +name = "pebrel_terminal" +version = "2.5.0" +dependencies = [ + "base64 0.22.1", + "bitflags 2.13.0", + "home", + "libc", + "log", + "miow", + "parking_lot", + "piper", + "polling", + "regex-automata", + "rustix 1.1.2", + "rustix-openpty", + "serde", + "serde_json", + "sha2 0.11.0", + "signal-hook", + "unicode-properties", + "unicode-segmentation", + "unicode-width", + "vte", + "windows-sys 0.59.0", +] + [[package]] name = "pem" version = "4.0.0" diff --git a/Cargo.toml b/Cargo.toml index d0398f714..0eaa13a56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,14 +1,14 @@ [workspace] members = [ - "nebula_app", - "nebula_terminal", - "nebula_config", - "nebula_config_derive", - "nebula-completions", - "nebula_hook", - "nebula_gpui", - "nebula_settings", - "nebula_split", + "pebrel_app", + "pebrel_terminal", + "pebrel_config", + "pebrel_config_derive", + "pebrel-completions", + "pebrel_hook", + "pebrel_gpui", + "pebrel_settings", + "pebrel_split", "mobile/link", ] resolver = "2" @@ -44,8 +44,8 @@ ttf-parser = { opt-level = 3 } smol = { opt-level = 3 } gpui = { opt-level = 3 } gpui-component = { opt-level = 3 } -nebula_terminal = { opt-level = 3 } -nebula = { opt-level = 3, codegen-units = 16 } +pebrel_terminal = { opt-level = 3 } +pebrel = { opt-level = 3, codegen-units = 16 } image = { opt-level = 3 } # Debug 壳仍要承担真实终端负载:GPUI 布局/字体塑形和 VT 解析若以 @@ -67,9 +67,9 @@ ttf-parser = { opt-level = 3 } smol = { opt-level = 3 } gpui = { opt-level = 3 } gpui_macros = { opt-level = 3 } -nebula_terminal = { opt-level = 3 } +pebrel_terminal = { opt-level = 3 } -nebula-gpui = { opt-level = 3, codegen-units = 16 } +pebrel-gpui = { opt-level = 3, codegen-units = 16 } [workspace.dependencies] mlua = { version = "0.11.4", features = ["luau", "vendored", "serialize", "send"] } serde_path_to_error = "0.1.20" @@ -159,7 +159,7 @@ winit = { path = "third_party/winit-0.30.13" } # markdown 解析启用 math 构造;新增 text/math.rs 的 set_math_renderer # 全局注册点;InlineNode/Node 增加数学节点并在渲染时调钩子,未注册时 # 回退现状(inline=code 文本、block=CodeBlock)。TeX 引擎/栅格化/绘制 -# 全部住在 nebula_app::gpui_shell::math_view,fork 只有接线层。上游 +# 全部住在 pebrel_app::gpui_shell::math_view,fork 只有接线层。上游 # 0.6 线出现 MarkdownPlugin/Custom block 后应迁过去并撤掉本补丁。 # 3. TextView 阅读器 GitHub 化(同分支,随 2 一起 push):软换行按 # CommonMark 合并为空格(CJK 相邻直连);图片 URL 分流(http(s)/data @@ -198,7 +198,7 @@ winit = { path = "third_party/winit-0.30.13" } # 布局释放后地址被另一字体复用,中文粗体/斜体会画成错字(issue #744)。 # Windows 打字后自动隐藏的鼠标指针只在屏幕坐标真正改变后恢复;Win32 在指针 # 未移动时补发的 WM_MOUSEMOVE 不再让它每次按键闪一下(issue #868)。 -# 原因与撤销条件见 architecture/notes/nebula_app/input/2026-11-05-windows-pointer-auto-hide.md。 +# 原因与撤销条件见 architecture/notes/pebrel_app/input/2026-11-05-windows-pointer-auto-hide.md。 # 这两项修复经 Kuddev/zed#2、#3 并入维护分支 fix/native-window-input-lifetime-20261015; # 组件经 Kuddev/gpui-component#2、#3 只同步五个 Zed 引用。 # Input 补丁 4-5 仍保持独立。 diff --git a/INSTALL.md b/INSTALL.md index 5b9fece2d..03a86ec23 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -146,7 +146,7 @@ Server 2019 desktop or the intended Remote Desktop/graphics configuration. ```powershell git clone https://github.com/Kuddev/pebrel cd pebrel -cargo build --release --locked -p nebula --bin pebrel --features gpui-shell +cargo build --release --locked -p pebrel --bin pebrel --features gpui-shell ``` Build and assemble the portable archive with: diff --git a/README.ja.md b/README.ja.md index 8c3921670..4e61fd898 100644 --- a/README.ja.md +++ b/README.ja.md @@ -121,13 +121,13 @@ Pebrel(旧称 Nebula)は、ローカルのシェル、リモートホスト ネイティブの貼り付けキーは維持されます。既定に戻すと、再起動せずに既存のウィンドウにも 反映されます。実行時の上書きは以前のルールを置き換えるため、追記のみの方式で生じていた 古い無効化バインドが残ることはありません。保存される設定の形式は変わりません。 - 詳しくは[ショートカットの所有に関する決定](architecture/notes/nebula_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md)をご覧ください。 + 詳しくは[ショートカットの所有に関する決定](architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md)をご覧ください。 - ローカルの Windows PowerShell のプロンプトでは、複数行のクリップボードの貼り付けを PSReadLine 内に留めて確認できます。Enter で送信し、1 回の Undo で貼り付け全体を取り消せます。 これには、シェル統合が有効で、管理対象の貼り付けショートカットにユーザーのバインドがないことが必要です。 PSReadLine は CRLF を正規化し、タブを 4 つのスペースに展開します。その他のエディターは、 ネゴシエートされた貼り付けや既存の確認動作をそのまま保ちます。詳しくは - [クリップボードの貼り付けの契約](architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)をご覧ください。 + [クリップボードの貼り付けの契約](architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)をご覧ください。 ### インテリジェントな補完 @@ -288,7 +288,7 @@ pebrel config check 固定された Rust ツールチェーンとプラットフォームの依存関係をインストールした状態で、次を実行します: ```sh -cargo build --release --locked -p nebula --bin pebrel --features gpui-shell +cargo build --release --locked -p pebrel --bin pebrel --features gpui-shell ``` 内部の Cargo パッケージの名前は今も `nebula` ですが、アプリケーションとコマンドの名前は diff --git a/README.md b/README.md index d8dddc433..db83e3aaf 100644 --- a/README.md +++ b/README.md @@ -121,13 +121,13 @@ each agent's activity, and read its output without leaving the application. Restoring defaults updates existing windows without restarting. Runtime overrides replace their previous rules, avoiding the stale disabled bindings from the append-only path; the saved configuration format is unchanged. See the - [shortcut ownership decision](architecture/notes/nebula_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md). + [shortcut ownership decision](architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md). - Local Windows PowerShell prompts can keep multiline clipboard paste in PSReadLine for review: Enter submits it, and one Undo removes the whole paste. This requires active shell integration and no user binding on its managed paste shortcut. PSReadLine normalizes CRLF and expands tabs to four spaces; other editors retain their negotiated paste or existing confirmation behavior. See the - [clipboard paste contract](architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md). + [clipboard paste contract](architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md). ### Intelligent Completion @@ -295,7 +295,7 @@ See the [notification duration menu](docs/screenshots/notification-duration.png) With the pinned Rust toolchain and the platform dependencies installed: ```sh -cargo build --release --locked -p nebula --bin pebrel --features gpui-shell +cargo build --release --locked -p pebrel --bin pebrel --features gpui-shell ``` The internal Cargo package is still named `nebula`; the application and command diff --git a/README.zh-CN.md b/README.zh-CN.md index 78145c116..4d348aba4 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -112,11 +112,11 @@ Pebrel(原名 Nebula)把本地 Shell、远程主机、文件和 AI 命令行 其他窗口对无关命令的修改。 - 终端快捷键的改绑或清空会保留名称、命令等输入框自身的粘贴键;恢复默认立即作用于 当前应用窗口,无需重启。运行时改为替换旧覆盖规则,避免追加方式留下禁用记录, - 配置文件格式保持兼容。详见[快捷键归属说明](architecture/notes/nebula_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md)。 + 配置文件格式保持兼容。详见[快捷键归属说明](architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md)。 - Windows 本地 PowerShell 提示符支持将多行剪贴板粘贴保留在 PSReadLine 中检查, 按 Enter 才提交,一次撤销可移除整次粘贴。需要 Shell 集成生效且托管粘贴键没有被用户占用。 PSReadLine 会统一 CRLF 换行并将 Tab 展开为四个空格;其他编辑器沿用已协商的粘贴协议 - 或现有确认行为。详见[剪贴板粘贴边界](architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 + 或现有确认行为。详见[剪贴板粘贴边界](architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 ### 智能补齐 @@ -257,7 +257,7 @@ pebrel config check 安装项目固定的 Rust 工具链与对应平台依赖后运行: ```sh -cargo build --release --locked -p nebula --bin pebrel --features gpui-shell +cargo build --release --locked -p pebrel --bin pebrel --features gpui-shell ``` 内部 Cargo 包名仍为 `nebula`,应用与命令名为 `pebrel`。GPUI 是正式产品界面, diff --git a/ROADMAP.md b/ROADMAP.md index db86950fe..f00bc4c63 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -11,7 +11,7 @@ | 能力面 | 权重 | 已得 | 当前边界 | |---|---:|---:|---| -| 架构与产品接入 | 15 | 15 | GPUI 已迁入 `nebula_app`,`nebula --gpui` 可独立运行 | +| 架构与产品接入 | 15 | 15 | GPUI 已迁入 `pebrel_app`,`nebula --gpui` 可独立运行 | | 终端核心与会话 | 25 | 21 | ConPTY、网格、输入/选择/鼠标、IME 代码路径、多 tab 与 AI 会话已接入;分屏和最终人工验收未闭环 | | 工作区与产品表面 | 20 | 12 | 侧栏、tab 拖拽、命令面板、文件树、设置 tab、标题栏/视效已有实现;分屏、SSH HOSTS、Git 抽屉与部分命令动作未接入 | | 设置与业务工作流 | 20 | 11 | 纯键值设置和 Provider 编辑器已有实现;SSH、备份、按键编辑器、字体选择器仍缺 | @@ -33,7 +33,7 @@ ### 高难度剩余项(先独立设计和验收,不与零碎修改混做) -1. **分屏面板接线**:接入 `nebula-split` 会改变 tab/pane 所有权、关闭与 Drop +1. **分屏面板接线**:接入 `pebrel-split` 会改变 tab/pane 所有权、关闭与 Drop 语义、PTY Resize、焦点路由、拖拽落点和 AI hook 的 pane 定位。必须先定 生命周期合同,再改 `workspace.rs` 与终端会话层。 2. **SSH 完整迁移**:共享 HostStore、SSH HOSTS 侧栏、设置 CRUD、置顶/隐藏/ @@ -55,11 +55,11 @@ ## 终局形态(不可协商的三条) -1. **唯一产品、唯一代码库**:`nebula.exe`(`nebula_app`)。GPUI 最终作为 - `nebula_app` 体内的 UI 层接入——不是第二个产品 exe。`nebula_gpui` crate +1. **唯一产品、唯一代码库**:`nebula.exe`(`pebrel_app`)。GPUI 最终作为 + `pebrel_app` 体内的 UI 层接入——不是第二个产品 exe。`pebrel_gpui` crate 永远只是**实验场**:快速验证组件、交互与渲染方案;验证通过的模块**并入 - `nebula_app`**,产品代码不在实验场安家。 -2. **网格渲染永远自有**:`nebula_terminal` 引擎 + 渲染合同 + `pebrel_app`**,产品代码不在实验场安家。 +2. **网格渲染永远自有**:`pebrel_terminal` 引擎 + 渲染合同 (`render.rs` / `render/boxdraw.rs`)+ 终端 Element。终端内容只存在 "单元格网格"一种形态,排版引擎(任何字体系统)无权移动网格字形。 powerline、fastfetch、TUI 边框、CJK 对齐是**验收闸门**,不是愿望。 @@ -108,7 +108,7 @@ 分钟级,观感近似停摆)。这是 in-box host 自身行为,**不是引擎死锁**, 引擎侧无从修复。运维硬规则:任何 nebula 系 exe 旁必须部署侧载对。 - **1b IME 清单**:产品形态人工清单已更新到 - `nebula_gpui/IME_CHECKLIST.md`;等待用户在 `nebula.exe --gpui` 亲手验收, + `pebrel_gpui/IME_CHECKLIST.md`;等待用户在 `nebula.exe --gpui` 亲手验收, 实验场与双运行时 spike 的结果不计入 G2。 - **1c 视觉对账集**:`scripts/visual_parity.ps1`——固定样张(boxdraw 全家 桶、块/浓度/象限、Powerline 分隔符、CJK 对齐标尺、256 色/真彩)注入 @@ -121,8 +121,8 @@ ### P2 终端体验齐平(裁定修订 2026-08-13:直接在产品内做) -用户裁定:实验场不再堆产品功能——`nebula_gpui` 只是验证场,验证过即进 -`nebula_app`;P2 剩余项全部在 `nebula_app/src/gpui_shell/` 内继续。 +用户裁定:实验场不再堆产品功能——`pebrel_gpui` 只是验证场,验证过即进 +`pebrel_app`;P2 剩余项全部在 `pebrel_app/src/gpui_shell/` 内继续。 - 选择/复制/鼠标语义 **✔(2026-08-13,1244f1a)**:鼠标模式上报(SGR/ normal/UTF-8 扩展,`mouse_protocol.rs` 纯函数逐字对照旧壳 + 字节级单测; @@ -130,32 +130,32 @@ copy_on_select 抬手复制、Shift+点击扩展选区、Shift+PageUp/PageDown/ Home/End 回滚翻页(仅主屏)。 - 分屏规则共享化 **✔(2026-08-13,9e21bc9)**:新共享 crate - `nebula-split`(零依赖)——布局树、几何切割(floor+逐侧单元格钳制)、 + `pebrel-split`(零依赖)——布局树、几何切割(floor+逐侧单元格钳制)、 分隔条拖拽(关闭边距/预览钉边/整格量化提交)、方向聚焦(垂直漂移 4x 惩罚),数学逐字对照旧壳 `split.rs`,12 个单测锁定。**GPUI 面板接线 待办(在产品内做)**。 - config 共享化 **✔ 第一刀完成(2026-08-13,9e29331)**:新共享 crate - `nebula-settings`(零依赖)承接 `nebula_settings.txt` 路径/键值语义与 + `pebrel-settings`(零依赖)承接 `nebula_settings.txt` 路径/键值语义与 主题终端色表;按旧壳同序叠加(toml → 主题),字体/光标/copy_on_select 均读运行时设置。同主题对账样张已验。剩余:toml 侧 font offset、 cursor 反色语义、follow_system_theme、热重载。 - 剩余:滚动条(如旧壳有)、会话/SSH 逻辑共享化评估。 -### P3 接入 `nebula_app`(GPUI 成为产品 UI 层) +### P3 接入 `pebrel_app`(GPUI 成为产品 UI 层) - **✔ 第一刀(2026-08-13,791fdc8):GPUI UI 层物理迁入产品**。 `git mv` 保历史:终端栈(view/element/session/keymap/mouse_protocol/ colors)、config 桥、workspace、theme/prelude 全部住进 - `nebula_app/src/gpui_shell/`;`gpui-shell` feature 自足(直接依赖 - gpui/gpui-component/-assets + nebula-settings + futures,fork 经根 - patch 表重定向),不再依赖 `nebula-gpui` crate。 + `pebrel_app/src/gpui_shell/`;`gpui-shell` feature 自足(直接依赖 + gpui/gpui-component/-assets + pebrel-settings + futures,fork 经根 + patch 表重定向),不再依赖 `pebrel-gpui` crate。 **`nebula --gpui` = GPUI 主窗形态**:主线程直接进 GPUI 消息循环, winit 完全不启动;已实跑验证(Nebula 主窗 + tabs + ConPTY 终端 + CJK + powerline,样张 `.tmp_parity_gpui-in-nebula.png`)。 - `nebula_gpui` 瘦身为组件 gallery(终端预览移除;theme/prelude 留 + `pebrel_gpui` 瘦身为组件 gallery(终端预览移除;theme/prelude 留 注记副本),产品代码零残留。 - 剩余:GPUI 主窗成为默认 UI(三闸门在 `--gpui` 形态复测通过后切换); - 分屏面板接线(消费 `nebula-split`);产品面直接用组件库实现:设置 + 分屏面板接线(消费 `pebrel-split`);产品面直接用组件库实现:设置 **原生内嵌侧栏 pane**、启动器/命令面板、SSH 管理、标题栏/Acrylic 对齐;`NEBULA_GPUI_SHELL` spike 移除。 - 三闸门在接入形态下复测(实验场数字不能替代产品形态数字)。 @@ -174,7 +174,7 @@ - `event.rs`(3178 行)/ `window_context.rs`(3100 行)→ 输入/窗口分层。 - 拆分原则:先划模块边界再搬代码,行为零变化,每步独立 commit 可回退。 -## 纪律(引用 `nebula_gpui/ARCHITECTURE.md`) +## 纪律(引用 `pebrel_gpui/ARCHITECTURE.md`) - 功能只写一次,进共享 crate;两壳都只写薄视图。 - 直接采用:GPUI 赢下某个面后就是该面的唯一实现。 diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES index f219d045f..450c9c3f4 100644 --- a/THIRD-PARTY-NOTICES +++ b/THIRD-PARTY-NOTICES @@ -14,11 +14,11 @@ MIT License, ttf-parser 0.25.1 under the MIT OR Apache-2.0 License, and ab_glyph_rasterizer 0.1.10 under the Apache-2.0 License. The bundled AI-CLI screen-state evidence in -nebula_app/src/agent_detection derives from Herdr +pebrel_app/src/agent_detection derives from Herdr (github.com/AmrDeveloper/herdr), distributed under the Apache License 2.0. The unmodified next-message prediction prompt in -nebula_app/res/prompts/codex_prompt_suggestion.txt and its JSON-schema suffix +pebrel_app/res/prompts/codex_prompt_suggestion.txt and its JSON-schema suffix come from OpenAI Codex (github.com/openai/codex), revision 814de47b69dd63a2660fd14f9af66690888d183e, under the Apache License 2.0 (full text below). OpenAI Codex, Copyright 2025 OpenAI. @@ -27,7 +27,7 @@ The embedded Latin Modern Math font is distributed under the GUST Font License 1.0. Its complete license text is included as licenses/LICENSE-LATIN-MODERN-MATH. -The SSH Bash login-startup replay in nebula_app/res/shell/bashrc adapts +The SSH Bash login-startup replay in pebrel_app/res/shell/bashrc adapts the source-observation startup logic by l0ng-ai (revision 4da3868, shell_integration.rs). Copyright 2026 l0ng-ai, Apache License 2.0 (full text below). Pebrel's diff --git a/architecture/dependencies.toml b/architecture/dependencies.toml index e685d3a7a..8c191c680 100644 --- a/architecture/dependencies.toml +++ b/architecture/dependencies.toml @@ -1,39 +1,39 @@ version = 1 renderer_packages = ["gpui", "gpui_platform", "gpui-component", "gpui-component-assets", "winit", "glutin", "crossfont"] -[crates.nebula_app] +[crates.pebrel_app] layer = "application" -dependencies = ["nebula_terminal", "nebula_config", "nebula_config_derive", "nebula_settings", "nebula_split", "nebula-completions", "mobile/link"] -build-dependencies = ["nebula_settings"] +dependencies = ["pebrel_terminal", "pebrel_config", "pebrel_config_derive", "pebrel_settings", "pebrel_split", "pebrel-completions", "mobile/link"] +build-dependencies = ["pebrel_settings"] dev-dependencies = [] -[crates.nebula_terminal] +[crates.pebrel_terminal] layer = "core" -[crates.nebula_config] +[crates.pebrel_config] layer = "core" -dev-dependencies = ["nebula_config_derive"] +dev-dependencies = ["pebrel_config_derive"] -[crates.nebula_config_derive] +[crates.pebrel_config_derive] layer = "core" -dev-dependencies = ["nebula_config"] +dev-dependencies = ["pebrel_config"] -[crates.nebula-completions] +[crates.pebrel-completions] layer = "core" -[crates.nebula_settings] +[crates.pebrel_settings] layer = "core" zero_production_dependencies = true -[crates.nebula_split] +[crates.pebrel_split] layer = "core" zero_production_dependencies = true -[crates.nebula_hook] +[crates.pebrel_hook] layer = "hook" zero_production_dependencies = true -[crates.nebula_gpui] +[crates.pebrel_gpui] layer = "lab" [crates."mobile/link"] diff --git a/architecture/file-budgets.txt b/architecture/file-budgets.txt index 4e7083ea3..3f6d26dd9 100644 --- a/architecture/file-budgets.txt +++ b/architecture/file-budgets.txt @@ -1,22 +1,31 @@ limit 2000 -root nebula_app -root nebula_terminal -root nebula_config -root nebula_config_derive -root nebula-completions -root nebula_hook -root nebula_gpui -root nebula_settings -root nebula_split +root pebrel_app +root pebrel_terminal +root pebrel_config +root pebrel_config_derive +root pebrel-completions +root pebrel_hook +root pebrel_gpui +root pebrel_settings +root pebrel_split root mobile/link root scripts root tools -nebula_app/src/display/chrome.rs 2442 -nebula_app/src/display/command_palette.rs 3935 -nebula_app/src/display/markdown_view.rs 2067 -nebula_app/src/display/mod.rs 11150 -nebula_app/src/display/settings.rs 8434 -nebula_app/src/event.rs 3594 -nebula_app/src/gpui_shell/workspace.rs 4798 -nebula_app/src/window_context.rs 3735 -nebula_terminal/src/term/mod.rs 2713 +moved nebula_app pebrel_app +moved nebula_terminal pebrel_terminal +moved nebula_config pebrel_config +moved nebula_config_derive pebrel_config_derive +moved nebula-completions pebrel-completions +moved nebula_hook pebrel_hook +moved nebula_gpui pebrel_gpui +moved nebula_settings pebrel_settings +moved nebula_split pebrel_split +pebrel_app/src/display/chrome.rs 2442 +pebrel_app/src/display/command_palette.rs 3935 +pebrel_app/src/display/markdown_view.rs 2067 +pebrel_app/src/display/mod.rs 11150 +pebrel_app/src/display/settings.rs 8434 +pebrel_app/src/event.rs 3594 +pebrel_app/src/gpui_shell/workspace.rs 4798 +pebrel_app/src/window_context.rs 3735 +pebrel_terminal/src/term/mod.rs 2713 diff --git a/architecture/notes/AGENTS.md b/architecture/notes/AGENTS.md index 4863be9e4..890fd96fc 100644 --- a/architecture/notes/AGENTS.md +++ b/architecture/notes/AGENTS.md @@ -12,7 +12,7 @@ Write a note for dependency direction, core ownership, persistent formats, proto ## Location and history -- Mirror the owning code path, for example `architecture/notes/nebula_terminal/input/2026-09-19-example.md`. +- Mirror the owning code path, for example `architecture/notes/pebrel_terminal/input/2026-09-19-example.md`. - Use `YYYY-MM-DD-kebab-case.md`. Keep one decision or incident per file. - Do not create a global `INDEX.md`. The nearest module `AGENTS.md` points agents to the relevant directory. - Once accepted, do not rewrite the old rationale into a new conclusion. Create a new note with `Supersedes`; the old note may receive only a short `Superseded by` pointer. diff --git a/architecture/notes/mobile/android/2026-10-07-independent-history-viewport.md b/architecture/notes/mobile/android/2026-10-07-independent-history-viewport.md index fae22ff30..b2a0e4f3f 100644 --- a/architecture/notes/mobile/android/2026-10-07-independent-history-viewport.md +++ b/architecture/notes/mobile/android/2026-10-07-independent-history-viewport.md @@ -15,9 +15,9 @@ permission even for reading. Adding inertia alone could not expose older output. ## Evidence -- `nebula_app/src/runtime_api/terminal_read.rs` captures live, desktop viewport and +- `pebrel_app/src/runtime_api/terminal_read.rs` captures live, desktop viewport and independent history from the same terminal grid, without changing its offset. -- `nebula_terminal/src/grid/mod.rs` owns the dropped-row counter used by prompt +- `pebrel_terminal/src/grid/mod.rs` owns the dropped-row counter used by prompt marks. Append and eviction preserve absolute physical coordinates; column reflow can change the identity of physical rows. - `TerminalSnapshotView` diff --git a/architecture/notes/mobile/android/terminal/2026-10-15-application-wheel-routing.md b/architecture/notes/mobile/android/terminal/2026-10-15-application-wheel-routing.md index 2e8ecbfc0..f0a0ab87e 100644 --- a/architecture/notes/mobile/android/terminal/2026-10-15-application-wheel-routing.md +++ b/architecture/notes/mobile/android/terminal/2026-10-15-application-wheel-routing.md @@ -15,7 +15,7 @@ prevented independent history paging. ## Evidence -- [History capture](../../../../../nebula_app/src/runtime_api/terminal_read.rs) +- [History capture](../../../../../pebrel_app/src/runtime_api/terminal_read.rs) can read retained rows without mutating the terminal display offset. - [Android snapshot gestures](../../../../../mobile/android) in `TerminalSnapshotView.kt` retain a source-cell projection for phone reflow. diff --git a/architecture/notes/packaging/2026-09-28-windows-distribution-ownership.md b/architecture/notes/packaging/2026-09-28-windows-distribution-ownership.md index 91c638902..9e22315a9 100644 --- a/architecture/notes/packaging/2026-09-28-windows-distribution-ownership.md +++ b/architecture/notes/packaging/2026-09-28-windows-distribution-ownership.md @@ -13,7 +13,7 @@ either channel wastes downloads and, for MSIX, attempts an invalid directory wri ## Evidence -- `nebula_app/src/platform/update_installation.rs` requires an Inno uninstaller +- `pebrel_app/src/platform/update_installation.rs` requires an Inno uninstaller before installation handoff; old portable copies already reject final handoff. The missing behavior was earlier channel-aware discovery/download and explanation, not a demonstrated successful overwrite of a Scoop install. diff --git a/architecture/notes/packaging/2026-10-06-default-background-capabilities.md b/architecture/notes/packaging/2026-10-06-default-background-capabilities.md index d027d4393..e6f44ce3b 100644 --- a/architecture/notes/packaging/2026-10-06-default-background-capabilities.md +++ b/architecture/notes/packaging/2026-10-06-default-background-capabilities.md @@ -14,7 +14,7 @@ the ordinary product build. ## Evidence -`nebula_app/Cargo.toml` defines `shader-background` through the existing GIF, +`pebrel_app/Cargo.toml` defines `shader-background` through the existing GIF, video and GPUI features. `scripts/build-windows-product.ps1` and the release workflow use Cargo defaults. Native controllers already check saved activation and backend support independently of feature inclusion. diff --git a/architecture/notes/packaging/2026-10-16-bounded-xim-atoms.md b/architecture/notes/packaging/2026-10-16-bounded-xim-atoms.md index 44c085602..7fec76325 100644 --- a/architecture/notes/packaging/2026-10-16-bounded-xim-atoms.md +++ b/architecture/notes/packaging/2026-10-16-bounded-xim-atoms.md @@ -82,7 +82,7 @@ GPUI 已把所有 X 事件交给 `filter_event`,`PropertyNotify` 无需改动 独立 Fcitx 5.1.7 拼音实例向修复后的 XIM 客户端提交 40 次“你好”,全部匹配, 收到 240 次预编辑回调,共转发 480 次按键事件。该验证使用独立显示和 D-Bus。 PR 基线 `8de5331f5607a24c72a8cf209ab4099c8ba4c424` 上的 -`cargo check -p nebula --bin pebrel --features gpui-shell --tests --locked --release` 通过。 +`cargo check -p pebrel --bin pebrel --features gpui-shell --tests --locked --release` 通过。 架构检查、55 项架构规则测试、99 项设置测试、24 项国际化测试(另 1 项忽略)及格式检查通过。 依赖元数据确认三个 XIM 包各只有一个实例,均来自同一修复提交;锁文件没有无关升级。 这些结果不替代完整 GUI 人工验收、长期运行、其他输入法或 Windows/macOS 验证。 diff --git a/architecture/notes/nebula-completions/2026-09-30-package-identity.md b/architecture/notes/pebrel-completions/2026-09-30-package-identity.md similarity index 100% rename from architecture/notes/nebula-completions/2026-09-30-package-identity.md rename to architecture/notes/pebrel-completions/2026-09-30-package-identity.md diff --git a/architecture/notes/nebula-completions/2026-10-03-caret-argument-roles.md b/architecture/notes/pebrel-completions/2026-10-03-caret-argument-roles.md similarity index 93% rename from architecture/notes/nebula-completions/2026-10-03-caret-argument-roles.md rename to architecture/notes/pebrel-completions/2026-10-03-caret-argument-roles.md index f75357093..4400b5005 100644 --- a/architecture/notes/nebula-completions/2026-10-03-caret-argument-roles.md +++ b/architecture/notes/pebrel-completions/2026-10-03-caret-argument-roles.md @@ -13,9 +13,9 @@ requests a revision, while a later `--no-track` disables branch guessing. ## Evidence -[`command_context.rs`](../../../nebula-completions/src/command_context.rs) retains +[`command_context.rs`](../../../pebrel-completions/src/command_context.rs) retains the full active word, its byte span and following literal arguments. -[`semantic/tests.rs`](../../../nebula-completions/src/semantic/tests.rs) exercises +[`semantic/tests.rs`](../../../pebrel-completions/src/semantic/tests.rs) exercises UTF-8 boundaries, later options, workspace selection and refspec destinations. ## Decision @@ -57,7 +57,7 @@ Dynamic source tests accompany their application owners. ## Supersedes Extends the end-of-line span contract in -`../nebula_app/completion/2026-09-30-literal-path-edits.md`. +`../pebrel_app/completion/2026-09-30-literal-path-edits.md`. ## Revisit when diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-19-agent-activity-authority.md b/architecture/notes/pebrel_app/ai_hook/2026-09-19-agent-activity-authority.md similarity index 93% rename from architecture/notes/nebula_app/ai_hook/2026-09-19-agent-activity-authority.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-19-agent-activity-authority.md index 3cabea229..f209bc67f 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-09-19-agent-activity-authority.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-09-19-agent-activity-authority.md @@ -15,11 +15,11 @@ output silence cannot establish that its remote command finished. ## Evidence -The [shared lifecycle and regressions](../../../../nebula_app/src/ai_hook/lifecycle.rs) +The [shared lifecycle and regressions](../../../../pebrel_app/src/ai_hook/lifecycle.rs) cover conflicting hook/screen observations, completion and input barriers. -[Provider contracts](../../../../nebula_app/src/ai_hook/bridges.rs) distinguish +[Provider contracts](../../../../pebrel_app/src/ai_hook/bridges.rs) distinguish complete lifecycle/attention bridges from partial and legacy completion bridges. -[UI regressions](../../../../nebula_app/src/gpui_shell/terminal/view/activity_tests.rs) +[UI regressions](../../../../pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs) exercise command, Agent and progress transitions together. ## Decision @@ -42,8 +42,8 @@ pending command's known empty prompt. Silence, BEL and host-process absence are not remote completion evidence. Remote installation uses the same owned edit policy as local installation. -[The planner](../../../../nebula_app/src/ai_hook/remote.rs) owns edits and removal; -[SSH orchestration](../../../../nebula_app/src/ssh_session/integration.rs) owns +[The planner](../../../../pebrel_app/src/ai_hook/remote.rs) owns edits and removal; +[SSH orchestration](../../../../pebrel_app/src/ssh_session/integration.rs) owns authenticated exec/PTY operations. Per-channel tokens are passed at startup and not persisted in remote files or made dependent on AcceptEnv. Remote identity is PID plus start epoch, separate from host PIDs. Foreign, subagent and late-session diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-20-pi-settled-version-compatibility.md b/architecture/notes/pebrel_app/ai_hook/2026-09-20-pi-settled-version-compatibility.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-09-20-pi-settled-version-compatibility.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-20-pi-settled-version-compatibility.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-20-settings-installation-ownership.md b/architecture/notes/pebrel_app/ai_hook/2026-09-20-settings-installation-ownership.md similarity index 97% rename from architecture/notes/nebula_app/ai_hook/2026-09-20-settings-installation-ownership.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-20-settings-installation-ownership.md index 016892871..8d2062410 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-09-20-settings-installation-ownership.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-09-20-settings-installation-ownership.md @@ -12,9 +12,9 @@ Codex 原 notifier,不能每次再套一层包装。 ## Evidence -- `nebula_settings/src/agent_hooks.rs` 保存逐 Agent 的持久选择;缺失键兼容旧的 +- `pebrel_settings/src/agent_hooks.rs` 保存逐 Agent 的持久选择;缺失键兼容旧的 `ai_hooks=0`,默认只开启 Claude Code 与 Codex。 -- `nebula_app/src/ai_hook/win/settings.rs` 统一操作锁、写入和实际配置读回。 +- `pebrel_app/src/ai_hook/win/settings.rs` 统一操作锁、写入和实际配置读回。 - `win/codex_hooks.rs` 的 ownership marker 与 `installation::merge_groups` 共同限制删除范围;`win/codex_notify.rs` 保留原 notify 的命令参数。 - Claude [command hook 合同](https://code.claude.com/docs/en/hooks#exec-form-and-shell-form) diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-28-local-mode-command-submission.md b/architecture/notes/pebrel_app/ai_hook/2026-09-28-local-mode-command-submission.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-09-28-local-mode-command-submission.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-28-local-mode-command-submission.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-28-opencode-v2-plugin-lifecycle.md b/architecture/notes/pebrel_app/ai_hook/2026-09-28-opencode-v2-plugin-lifecycle.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-09-28-opencode-v2-plugin-lifecycle.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-28-opencode-v2-plugin-lifecycle.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-09-29-native-agent-transport.md b/architecture/notes/pebrel_app/ai_hook/2026-09-29-native-agent-transport.md similarity index 91% rename from architecture/notes/nebula_app/ai_hook/2026-09-29-native-agent-transport.md rename to architecture/notes/pebrel_app/ai_hook/2026-09-29-native-agent-transport.md index a8313c75d..4f6065e34 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-09-29-native-agent-transport.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-09-29-native-agent-transport.md @@ -12,10 +12,10 @@ on macOS or Linux. Unix packages also omitted the helper used by those hooks. ## Evidence -- `nebula_app/src/ai_hook/local.rs` owns the common installation and removal rules. -- `nebula_app/src/ai_hook/integrations.rs` detects installed providers. -- `nebula_app/src/ai_hook/unix.rs` and `windows.rs` own native transports. -- `nebula_hook/tests/lifetime.rs` exercises the Unix socket acknowledgement. +- `pebrel_app/src/ai_hook/local.rs` owns the common installation and removal rules. +- `pebrel_app/src/ai_hook/integrations.rs` detects installed providers. +- `pebrel_app/src/ai_hook/unix.rs` and `windows.rs` own native transports. +- `pebrel_hook/tests/lifetime.rs` exercises the Unix socket acknowledgement. ## Decision diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-07-antigravity-hooks.md b/architecture/notes/pebrel_app/ai_hook/2026-10-07-antigravity-hooks.md similarity index 98% rename from architecture/notes/nebula_app/ai_hook/2026-10-07-antigravity-hooks.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-07-antigravity-hooks.md index ace535c36..8eed26029 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-10-07-antigravity-hooks.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-10-07-antigravity-hooks.md @@ -28,7 +28,7 @@ payload carries `conversationId` but no event name. ## Decision - Install one `pebrel` group - ([`antigravity.rs`](../../../../nebula_app/src/ai_hook/local/antigravity.rs)) with + ([`antigravity.rs`](../../../../pebrel_app/src/ai_hook/local/antigravity.rs)) with `SessionStart`, `PreInvocation` and `Stop`. Each command passes its event as `--event`, the contract Grok, Copilot and Cursor already use, so the helper and parser stay shared. - `PreInvocation` runs before every model call, so it reports activity (`tool-complete`), diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-07-claude-style-agents.md b/architecture/notes/pebrel_app/ai_hook/2026-10-07-claude-style-agents.md similarity index 96% rename from architecture/notes/nebula_app/ai_hook/2026-10-07-claude-style-agents.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-07-claude-style-agents.md index bacf04211..f82c037cf 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-10-07-claude-style-agents.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-10-07-claude-style-agents.md @@ -30,10 +30,10 @@ and Junie CLI only `SessionStart`, so they receive identity and icons but no hoo ## Decision - Each agent signs its own `source` and shares Claude's parsing branch - ([`claude_style`](../../../../nebula_app/src/ai_hook/protocol.rs)); the session id still + ([`claude_style`](../../../../pebrel_app/src/ai_hook/protocol.rs)); the session id still comes only from `session_id`, and a camelCase payload is rejected as another runner's. - Installation reuses the shared-file pattern of Cursor - ([`claude_style.rs`](../../../../nebula_app/src/ai_hook/local/claude_style.rs)): one pure + ([`claude_style.rs`](../../../../pebrel_app/src/ai_hook/local/claude_style.rs)): one pure edit that installs, removes and inspects, claiming only a complete helper invocation. The command is a single shell string (quoted POSIX, encoded PowerShell on Windows) shared with Grok and Cursor through `command_for` and `owns_command`. diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-16-remote-turn-reignite-reconciliation.md b/architecture/notes/pebrel_app/ai_hook/2026-10-16-remote-turn-reignite-reconciliation.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-10-16-remote-turn-reignite-reconciliation.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-16-remote-turn-reignite-reconciliation.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-21-screen-attention-evidence.md b/architecture/notes/pebrel_app/ai_hook/2026-10-21-screen-attention-evidence.md similarity index 92% rename from architecture/notes/nebula_app/ai_hook/2026-10-21-screen-attention-evidence.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-21-screen-attention-evidence.md index dfcca8fd1..df4e5189a 100644 --- a/architecture/notes/nebula_app/ai_hook/2026-10-21-screen-attention-evidence.md +++ b/architecture/notes/pebrel_app/ai_hook/2026-10-21-screen-attention-evidence.md @@ -19,14 +19,14 @@ in the shared owner. ## Evidence -- [`AgentActivity::observe_screen`](../../../../nebula_app/src/ai_hook/lifecycle.rs) +- [`AgentActivity::observe_screen`](../../../../pebrel_app/src/ai_hook/lifecycle.rs) accepts screen Blocked evidence. Before this repair, its no-match path only reset consecutive idle samples. Without a later matching rule, that screen state had no path out. -- [`detect`](../../../../nebula_app/src/ai_agents.rs) deliberately returns `None` +- [`detect`](../../../../pebrel_app/src/ai_agents.rs) deliberately returns `None` for an unclassified snapshot. It does not establish idle or completion. -- The [GPUI adapter](../../../../nebula_app/src/gpui_shell/terminal/view/agent_activity.rs) - and [legacy adapter](../../../../nebula_app/src/window_context/agent_activity.rs) +- The [GPUI adapter](../../../../pebrel_app/src/gpui_shell/terminal/view/agent_activity.rs) + and [legacy adapter](../../../../pebrel_app/src/window_context/agent_activity.rs) also reset samples when an agent cannot be identified. That absence is distinct from a real snapshot of a known agent whose form no longer matches. @@ -79,11 +79,11 @@ until a later rule, hook or process fact decides it. ## Validation Production regressions in the existing -[lifecycle tests](../../../../nebula_app/src/ai_hook/lifecycle/tests.rs) cover source +[lifecycle tests](../../../../pebrel_app/src/ai_hook/lifecycle/tests.rs) cover source and rule restoration, Unknown fallback, interrupted sample sequences, persistent forms, input and command boundaries, partial hooks, full hook authority, and the absence of completion notifications. The existing -[GPUI activity test](../../../../nebula_app/src/gpui_shell/terminal/view/activity_tests.rs) +[GPUI activity test](../../../../pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs) exercises actual terminal snapshots and badge projection through the product adapter. Reinstating the original no-match path makes both Claude regressions fail because Blocked persists after the form disappears. Both pass with this diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-25-antigravity-background-work.md b/architecture/notes/pebrel_app/ai_hook/2026-10-25-antigravity-background-work.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-10-25-antigravity-background-work.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-25-antigravity-background-work.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-25-claude-detached-hook-delivery.md b/architecture/notes/pebrel_app/ai_hook/2026-10-25-claude-detached-hook-delivery.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-10-25-claude-detached-hook-delivery.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-25-claude-detached-hook-delivery.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-10-25-droid-effective-hooks.md b/architecture/notes/pebrel_app/ai_hook/2026-10-25-droid-effective-hooks.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-10-25-droid-effective-hooks.md rename to architecture/notes/pebrel_app/ai_hook/2026-10-25-droid-effective-hooks.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-11-02-explicit-status-authority.md b/architecture/notes/pebrel_app/ai_hook/2026-11-02-explicit-status-authority.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-11-02-explicit-status-authority.md rename to architecture/notes/pebrel_app/ai_hook/2026-11-02-explicit-status-authority.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-11-02-native-title-attention.md b/architecture/notes/pebrel_app/ai_hook/2026-11-02-native-title-attention.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-11-02-native-title-attention.md rename to architecture/notes/pebrel_app/ai_hook/2026-11-02-native-title-attention.md diff --git a/architecture/notes/nebula_app/ai_hook/2026-11-02-untyped-notification-authority.md b/architecture/notes/pebrel_app/ai_hook/2026-11-02-untyped-notification-authority.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/2026-11-02-untyped-notification-authority.md rename to architecture/notes/pebrel_app/ai_hook/2026-11-02-untyped-notification-authority.md diff --git a/architecture/notes/nebula_app/ai_hook/installation/2026-10-06-hook-noop-stability.md b/architecture/notes/pebrel_app/ai_hook/installation/2026-10-06-hook-noop-stability.md similarity index 100% rename from architecture/notes/nebula_app/ai_hook/installation/2026-10-06-hook-noop-stability.md rename to architecture/notes/pebrel_app/ai_hook/installation/2026-10-06-hook-noop-stability.md diff --git a/architecture/notes/nebula_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md b/architecture/notes/pebrel_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md similarity index 98% rename from architecture/notes/nebula_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md rename to architecture/notes/pebrel_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md index 86d4a570d..148030163 100644 --- a/architecture/notes/nebula_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md +++ b/architecture/notes/pebrel_app/ai_providers/2026-10-19-provider-models-and-vector-assets.md @@ -12,8 +12,8 @@ existing sidebar embedded large PNG exports even when SVG sources already existe ## Evidence -- `nebula_app/src/ai_providers.rs` owns metadata and OS credential references. -- `nebula_app/src/codex_config.rs` owns explicit Codex configuration export. +- `pebrel_app/src/ai_providers.rs` owns metadata and OS credential references. +- `pebrel_app/src/codex_config.rs` owns explicit Codex configuration export. - [Codex subagents](https://developers.openai.com/codex/subagents/) documents model/effort overrides and inheritance of the parent's provider. - [Codex configuration reference](https://developers.openai.com/codex/config-reference/) diff --git a/architecture/notes/nebula_app/assistant_answer/2026-09-27-reader-presentation-language.md b/architecture/notes/pebrel_app/assistant_answer/2026-09-27-reader-presentation-language.md similarity index 95% rename from architecture/notes/nebula_app/assistant_answer/2026-09-27-reader-presentation-language.md rename to architecture/notes/pebrel_app/assistant_answer/2026-09-27-reader-presentation-language.md index a9946c631..93a5b2ea8 100644 --- a/architecture/notes/nebula_app/assistant_answer/2026-09-27-reader-presentation-language.md +++ b/architecture/notes/pebrel_app/assistant_answer/2026-09-27-reader-presentation-language.md @@ -13,9 +13,9 @@ strings could not follow a later language change without rebuilding the document ## Evidence -The [document preparation code](../../../../nebula_app/src/assistant_answer/document.rs) +The [document preparation code](../../../../pebrel_app/src/assistant_answer/document.rs) owns image replacement positions and load limits. The -[reader](../../../../nebula_app/src/gpui_shell/terminal/answer_reader.rs) owns the +[reader](../../../../pebrel_app/src/gpui_shell/terminal/answer_reader.rs) owns the immutable snapshot and the Copy source action. Translation must therefore happen at presentation, while generated markers must still be distinguished from source fences. The [native captures](../../../../docs/answer-reader-language.md) show the same answer diff --git a/architecture/notes/nebula_app/assistant_answer/2026-09-28-native-conversation-identity.md b/architecture/notes/pebrel_app/assistant_answer/2026-09-28-native-conversation-identity.md similarity index 95% rename from architecture/notes/nebula_app/assistant_answer/2026-09-28-native-conversation-identity.md rename to architecture/notes/pebrel_app/assistant_answer/2026-09-28-native-conversation-identity.md index 5b0539eab..b623dc1e5 100644 --- a/architecture/notes/nebula_app/assistant_answer/2026-09-28-native-conversation-identity.md +++ b/architecture/notes/pebrel_app/assistant_answer/2026-09-28-native-conversation-identity.md @@ -12,14 +12,14 @@ Agent,也不应把旧会话的输入交给同一 pane 中后来启动的进程 ## Evidence -- [身份和请求合同](../../../../nebula_app/src/runtime_api/conversation.rs)将 +- [身份和请求合同](../../../../pebrel_app/src/runtime_api/conversation.rs)将 `kind`、`session_id`、`epoch` 作为同一会话的联合身份;首次读取可解析 epoch,写入必须携带它。 -- [原生记录投影](../../../../nebula_app/src/assistant_answer/conversation.rs)核验 +- [原生记录投影](../../../../pebrel_app/src/assistant_answer/conversation.rs)核验 Codex / Claude 的原生会话标识,按边界读取 JSONL,不将推理记录作为可见消息输出。 - 实测 Codex 0.155.1 的 `response_item/message/role=user` 同时包含环境注入和真正输入; 可见用户消息另有 `event_msg/item_completed/UserMessage` 事件。助手完成事件的 `AgentMessage` 内容使用 `Text`,与已有助手消息记录重复出现。 -- [终端适配](../../../../nebula_app/src/gpui_shell/terminal/view/conversation.rs)已持有 +- [终端适配](../../../../pebrel_app/src/gpui_shell/terminal/view/conversation.rs)已持有 活体 Agent 身份、原生记录位置和桌面确认状态,另建一套屏幕识别会产生两个权威来源。 ## Decision diff --git a/architecture/notes/nebula_app/assistant_answer/conversation/2026-09-28-ssh-transcript-owner.md b/architecture/notes/pebrel_app/assistant_answer/conversation/2026-09-28-ssh-transcript-owner.md similarity index 100% rename from architecture/notes/nebula_app/assistant_answer/conversation/2026-09-28-ssh-transcript-owner.md rename to architecture/notes/pebrel_app/assistant_answer/conversation/2026-09-28-ssh-transcript-owner.md diff --git a/architecture/notes/nebula_app/backup_remote/2026-09-20-backup-preference-autosave.md b/architecture/notes/pebrel_app/backup_remote/2026-09-20-backup-preference-autosave.md similarity index 95% rename from architecture/notes/nebula_app/backup_remote/2026-09-20-backup-preference-autosave.md rename to architecture/notes/pebrel_app/backup_remote/2026-09-20-backup-preference-autosave.md index 99dcd04cc..8c5203819 100644 --- a/architecture/notes/nebula_app/backup_remote/2026-09-20-backup-preference-autosave.md +++ b/architecture/notes/pebrel_app/backup_remote/2026-09-20-backup-preference-autosave.md @@ -12,9 +12,9 @@ writes and restoring data require their own explicit actions. ## Evidence -- `nebula_app/src/backup_remote.rs` already owns transport selection, credential +- `pebrel_app/src/backup_remote.rs` already owns transport selection, credential access, archive names and retention. The settings view can reuse this adapter. -- `nebula_app/src/encrypted_backup.rs` owns encrypted archive contents and restore. +- `pebrel_app/src/encrypted_backup.rs` owns encrypted archive contents and restore. - The previous settings navigation hid the backup route despite an existing implementation. The desktop integration makes this existing capability visible. diff --git a/architecture/notes/nebula_app/completion/2026-09-30-common-command-sources.md b/architecture/notes/pebrel_app/completion/2026-09-30-common-command-sources.md similarity index 98% rename from architecture/notes/nebula_app/completion/2026-09-30-common-command-sources.md rename to architecture/notes/pebrel_app/completion/2026-09-30-common-command-sources.md index 69dbda384..02ab2b3fb 100644 --- a/architecture/notes/nebula_app/completion/2026-09-30-common-command-sources.md +++ b/architecture/notes/pebrel_app/completion/2026-09-30-common-command-sources.md @@ -24,7 +24,7 @@ These decisions belong to the shared completion pipeline, regardless of UI mode. ## Decision -Keep command metadata and argument roles in `nebula-completions::semantic::common`. +Keep command metadata and argument roles in `pebrel-completions::semantic::common`. The application owns connection discovery and a per-pane, two-second cache, with the same cancellation and generation invalidation as other completion sources. No additional executor or background service is introduced. diff --git a/architecture/notes/nebula_app/completion/2026-09-30-literal-path-edits.md b/architecture/notes/pebrel_app/completion/2026-09-30-literal-path-edits.md similarity index 100% rename from architecture/notes/nebula_app/completion/2026-09-30-literal-path-edits.md rename to architecture/notes/pebrel_app/completion/2026-09-30-literal-path-edits.md diff --git a/architecture/notes/nebula_app/completion/2026-09-30-partial-input-echo.md b/architecture/notes/pebrel_app/completion/2026-09-30-partial-input-echo.md similarity index 100% rename from architecture/notes/nebula_app/completion/2026-09-30-partial-input-echo.md rename to architecture/notes/pebrel_app/completion/2026-09-30-partial-input-echo.md diff --git a/architecture/notes/nebula_app/completion/2026-09-30-request-boundary.md b/architecture/notes/pebrel_app/completion/2026-09-30-request-boundary.md similarity index 98% rename from architecture/notes/nebula_app/completion/2026-09-30-request-boundary.md rename to architecture/notes/pebrel_app/completion/2026-09-30-request-boundary.md index 23e8f130a..2f407b99a 100644 --- a/architecture/notes/nebula_app/completion/2026-09-30-request-boundary.md +++ b/architecture/notes/pebrel_app/completion/2026-09-30-request-boundary.md @@ -32,7 +32,7 @@ fresh candidate value; it cannot mutate command execution, grid or popup selecti Reuse the existing sources, task executor, bounded process adapter and cache invalidation. The local Git source remains in `git_completion.rs`; semantic parsing -and edits remain in `nebula-completions`. Remote directory requests continue to +and edits remain in `pebrel-completions`. Remote directory requests continue to use the existing WSL/SFTP adapters. Host filesystem data cannot fill remote inputs. Keep the existing `display::suggest_engine` compatibility entry for the optional diff --git a/architecture/notes/nebula_app/completion/2026-09-30-semantic-arguments-and-scripts.md b/architecture/notes/pebrel_app/completion/2026-09-30-semantic-arguments-and-scripts.md similarity index 97% rename from architecture/notes/nebula_app/completion/2026-09-30-semantic-arguments-and-scripts.md rename to architecture/notes/pebrel_app/completion/2026-09-30-semantic-arguments-and-scripts.md index 3e5f035bc..b6c83a8d6 100644 --- a/architecture/notes/nebula_app/completion/2026-09-30-semantic-arguments-and-scripts.md +++ b/architecture/notes/pebrel_app/completion/2026-09-30-semantic-arguments-and-scripts.md @@ -14,9 +14,9 @@ option value; completing the last whitespace token cannot distinguish them. ## Evidence -- `nebula-completions::command_context::CommandContext` owns literal arguments, +- `pebrel-completions::command_context::CommandContext` owns literal arguments, UTF-8 replacement spans and shell-aware quoting without evaluating shell code. -- `nebula-completions::semantic::Context` selects subcommands, options, enumerated +- `pebrel-completions::semantic::Context` selects subcommands, options, enumerated values, existing branches or project scripts. New names and free text have an explicit empty source. Checkout path positions retain the existing path source. - `completion::Session` admits host filesystem and Git access only for a local diff --git a/architecture/notes/nebula_app/completion/2026-10-03-scoped-metadata.md b/architecture/notes/pebrel_app/completion/2026-10-03-scoped-metadata.md similarity index 97% rename from architecture/notes/nebula_app/completion/2026-10-03-scoped-metadata.md rename to architecture/notes/pebrel_app/completion/2026-10-03-scoped-metadata.md index 45d4a59d2..9cdc5297f 100644 --- a/architecture/notes/nebula_app/completion/2026-10-03-scoped-metadata.md +++ b/architecture/notes/pebrel_app/completion/2026-10-03-scoped-metadata.md @@ -13,10 +13,10 @@ profile resolution into an otherwise read-only completion request. ## Evidence -[`metadata.rs`](../../../../nebula_app/src/completion/metadata.rs) captures process +[`metadata.rs`](../../../../pebrel_app/src/completion/metadata.rs) captures process or authenticated SSH execution. WSL keeps the selected distribution and captured user. SSH connection generations participate in the cache key. -[`completion.rs`](../../../../nebula_app/src/ssh_session/completion.rs) rejects +[`completion.rs`](../../../../pebrel_app/src/ssh_session/completion.rs) rejects absent or ambiguous authenticated routes and retains the selected connection through all reads in a request. Its tests exercise cancellation while that shared connection remains usable. diff --git a/architecture/notes/nebula_app/completion/2026-10-03-workspace-targets.md b/architecture/notes/pebrel_app/completion/2026-10-03-workspace-targets.md similarity index 96% rename from architecture/notes/nebula_app/completion/2026-10-03-workspace-targets.md rename to architecture/notes/pebrel_app/completion/2026-10-03-workspace-targets.md index 8fc13bdd5..0494ad734 100644 --- a/architecture/notes/nebula_app/completion/2026-10-03-workspace-targets.md +++ b/architecture/notes/pebrel_app/completion/2026-10-03-workspace-targets.md @@ -12,9 +12,9 @@ package does not define a requested script. ## Evidence -The pure [`scripts` grammar](../../../../nebula-completions/src/semantic/scripts.rs) +The pure [`scripts` grammar](../../../../pebrel-completions/src/semantic/scripts.rs) records directory and workspace selection separately from script-name matching. -The bounded [`workspace` reader](../../../../nebula_app/src/completion/project_scripts/workspace.rs) +The bounded [`workspace` reader](../../../../pebrel_app/src/completion/project_scripts/workspace.rs) selects catalog entries and then combines their script names. Owned npm and pnpm fixtures show that npm includes the root with diff --git a/architecture/notes/nebula_app/completion/2026-10-23-command-history-clear.md b/architecture/notes/pebrel_app/completion/2026-10-23-command-history-clear.md similarity index 91% rename from architecture/notes/nebula_app/completion/2026-10-23-command-history-clear.md rename to architecture/notes/pebrel_app/completion/2026-10-23-command-history-clear.md index 3bf3f7c50..a1f8a98fb 100644 --- a/architecture/notes/nebula_app/completion/2026-10-23-command-history-clear.md +++ b/architecture/notes/pebrel_app/completion/2026-10-23-command-history-clear.md @@ -13,13 +13,13 @@ individual panes, including results still being calculated on workers. ## Evidence -- [History removal and temporary-directory tests](../../../../nebula_app/src/nebula_history.rs) +- [History removal and temporary-directory tests](../../../../pebrel_app/src/nebula_history.rs) exercise all categories, missing files and partial filesystem failures. -- [Completion requests](../../../../nebula_app/src/completion.rs) share the history +- [Completion requests](../../../../pebrel_app/src/completion.rs) share the history mutex and provide a revision that can be read without initializing disk state. -- [Settings interaction tests](../../../../nebula_app/src/gpui_shell/settings_pane/command_history/tests.rs) +- [Settings interaction tests](../../../../pebrel_app/src/gpui_shell/settings_pane/command_history/tests.rs) exercise confirmation, cancellation, busy state, failure and origin closure. -- [Terminal lifecycle tests](../../../../nebula_app/src/gpui_shell/terminal/view/startup_tests.rs) +- [Terminal lifecycle tests](../../../../pebrel_app/src/gpui_shell/terminal/view/startup_tests.rs) cover cross-window invalidation and cancellation of pending calculations. ## Decision diff --git a/architecture/notes/nebula_app/display/2026-09-30-window-animation-ownership.md b/architecture/notes/pebrel_app/display/2026-09-30-window-animation-ownership.md similarity index 100% rename from architecture/notes/nebula_app/display/2026-09-30-window-animation-ownership.md rename to architecture/notes/pebrel_app/display/2026-09-30-window-animation-ownership.md diff --git a/architecture/notes/nebula_app/display/hint/2026-10-15-table-link-continuations.md b/architecture/notes/pebrel_app/display/hint/2026-10-15-table-link-continuations.md similarity index 97% rename from architecture/notes/nebula_app/display/hint/2026-10-15-table-link-continuations.md rename to architecture/notes/pebrel_app/display/hint/2026-10-15-table-link-continuations.md index d1779c3da..bdb71c748 100644 --- a/architecture/notes/nebula_app/display/hint/2026-10-15-table-link-continuations.md +++ b/architecture/notes/pebrel_app/display/hint/2026-10-15-table-link-continuations.md @@ -17,7 +17,7 @@ The issue's two screenshots show `.../nebula_ap` followed by `p/src/config/ui_config.rs` in the same cell, with a blank identity column on the continuation and a horizontal record separator. They do not include a terminal byte recording or grid flags. PR #635 explicitly excludes table -record continuation. [Hint tests](../../../../../nebula_app/src/display/hint.rs) +record continuation. [Hint tests](../../../../../pebrel_app/src/display/hint.rs) use a fixture matching this visible structure; it is not a claim to reproduce the exact captured bytes. diff --git a/architecture/notes/nebula_app/display/terminal_math/2026-10-01-inline-token-boundaries.md b/architecture/notes/pebrel_app/display/terminal_math/2026-10-01-inline-token-boundaries.md similarity index 100% rename from architecture/notes/nebula_app/display/terminal_math/2026-10-01-inline-token-boundaries.md rename to architecture/notes/pebrel_app/display/terminal_math/2026-10-01-inline-token-boundaries.md diff --git a/architecture/notes/nebula_app/encrypted_backup/2026-09-27-first-release-restore.md b/architecture/notes/pebrel_app/encrypted_backup/2026-09-27-first-release-restore.md similarity index 91% rename from architecture/notes/nebula_app/encrypted_backup/2026-09-27-first-release-restore.md rename to architecture/notes/pebrel_app/encrypted_backup/2026-09-27-first-release-restore.md index 3bf1b9b65..11ad3a7bc 100644 --- a/architecture/notes/nebula_app/encrypted_backup/2026-09-27-first-release-restore.md +++ b/architecture/notes/pebrel_app/encrypted_backup/2026-09-27-first-release-restore.md @@ -11,11 +11,11 @@ Proposed — 本地实现,待维护者审查。 ## Evidence -- `nebula_app/src/gpui_shell/settings_pane/backup.rs`:连接检查与完成时提交草稿。 -- `nebula_app/src/gpui_shell/settings_pane/backup/operations.rs`:异步操作与恢复生命周期。 -- `nebula_app/src/encrypted_backup.rs`:归档白名单、认证解密、设置敏感字段过滤。 -- `nebula_app/src/encrypted_backup/recovery.rs`:恢复前保存原始文件及存在状态。 -- `nebula_app/src/backup_remote/listing.rs`:协议返回的大小随记录保留,不捏造设备信息。 +- `pebrel_app/src/gpui_shell/settings_pane/backup.rs`:连接检查与完成时提交草稿。 +- `pebrel_app/src/gpui_shell/settings_pane/backup/operations.rs`:异步操作与恢复生命周期。 +- `pebrel_app/src/encrypted_backup.rs`:归档白名单、认证解密、设置敏感字段过滤。 +- `pebrel_app/src/encrypted_backup/recovery.rs`:恢复前保存原始文件及存在状态。 +- `pebrel_app/src/backup_remote/listing.rs`:协议返回的大小随记录保留,不捏造设备信息。 ## Decision diff --git a/architecture/notes/nebula_app/encrypted_backup/2026-10-03-saved-command-scope.md b/architecture/notes/pebrel_app/encrypted_backup/2026-10-03-saved-command-scope.md similarity index 100% rename from architecture/notes/nebula_app/encrypted_backup/2026-10-03-saved-command-scope.md rename to architecture/notes/pebrel_app/encrypted_backup/2026-10-03-saved-command-scope.md diff --git a/architecture/notes/nebula_app/font_install/2026-11-05-symbol-face-macos-m-glyph.md b/architecture/notes/pebrel_app/font_install/2026-11-05-symbol-face-macos-m-glyph.md similarity index 100% rename from architecture/notes/nebula_app/font_install/2026-11-05-symbol-face-macos-m-glyph.md rename to architecture/notes/pebrel_app/font_install/2026-11-05-symbol-face-macos-m-glyph.md diff --git a/architecture/notes/nebula_app/git_completion/2026-09-30-automatic-tracking-branches.md b/architecture/notes/pebrel_app/git_completion/2026-09-30-automatic-tracking-branches.md similarity index 100% rename from architecture/notes/nebula_app/git_completion/2026-09-30-automatic-tracking-branches.md rename to architecture/notes/pebrel_app/git_completion/2026-09-30-automatic-tracking-branches.md diff --git a/architecture/notes/nebula_app/git_completion/2026-09-30-background-query-deadline.md b/architecture/notes/pebrel_app/git_completion/2026-09-30-background-query-deadline.md similarity index 100% rename from architecture/notes/nebula_app/git_completion/2026-09-30-background-query-deadline.md rename to architecture/notes/pebrel_app/git_completion/2026-09-30-background-query-deadline.md diff --git a/architecture/notes/nebula_app/git_completion/2026-09-30-local-branch-context.md b/architecture/notes/pebrel_app/git_completion/2026-09-30-local-branch-context.md similarity index 98% rename from architecture/notes/nebula_app/git_completion/2026-09-30-local-branch-context.md rename to architecture/notes/pebrel_app/git_completion/2026-09-30-local-branch-context.md index f6b98ced3..79056f701 100644 --- a/architecture/notes/nebula_app/git_completion/2026-09-30-local-branch-context.md +++ b/architecture/notes/pebrel_app/git_completion/2026-09-30-local-branch-context.md @@ -14,7 +14,7 @@ appending a suffix after a closing quote is not a faithful edit. ## Evidence -- `nebula-completions/src/command_context.rs` owns literal argument parsing, +- `pebrel-completions/src/command_context.rs` owns literal argument parsing, branch-position recognition, quoting and byte ranges. - Git's `Documentation/git-switch.adoc` distinguishes branch, new-branch and start-point positions. `Documentation/git-for-each-ref.adoc` defines diff --git a/architecture/notes/nebula_app/git_completion/2026-09-30-reference-roles.md b/architecture/notes/pebrel_app/git_completion/2026-09-30-reference-roles.md similarity index 98% rename from architecture/notes/nebula_app/git_completion/2026-09-30-reference-roles.md rename to architecture/notes/pebrel_app/git_completion/2026-09-30-reference-roles.md index da0421e4d..2040a8cc6 100644 --- a/architecture/notes/nebula_app/git_completion/2026-09-30-reference-roles.md +++ b/architecture/notes/pebrel_app/git_completion/2026-09-30-reference-roles.md @@ -25,7 +25,7 @@ or unexpectedly detach HEAD during a normal checkout. ## Decision -Keep argument roles in `nebula-completions::semantic`. The existing branch source +Keep argument roles in `pebrel-completions::semantic`. The existing branch source remains branch-only; revision sources admit commit-like branches, tags and remote-tracking refs. Checkout's initial argument keeps its path alternative. Attached option values expose the same value prefix to matching and I/O projection. diff --git a/architecture/notes/nebula_app/git_completion/2026-10-01-explicit-tracking-arguments.md b/architecture/notes/pebrel_app/git_completion/2026-10-01-explicit-tracking-arguments.md similarity index 100% rename from architecture/notes/nebula_app/git_completion/2026-10-01-explicit-tracking-arguments.md rename to architecture/notes/pebrel_app/git_completion/2026-10-01-explicit-tracking-arguments.md diff --git a/architecture/notes/nebula_app/git_completion/2026-10-03-execution-scope.md b/architecture/notes/pebrel_app/git_completion/2026-10-03-execution-scope.md similarity index 96% rename from architecture/notes/nebula_app/git_completion/2026-10-03-execution-scope.md rename to architecture/notes/pebrel_app/git_completion/2026-10-03-execution-scope.md index 6e1487f41..fbedf22c7 100644 --- a/architecture/notes/nebula_app/git_completion/2026-10-03-execution-scope.md +++ b/architecture/notes/pebrel_app/git_completion/2026-10-03-execution-scope.md @@ -13,9 +13,9 @@ again for each read can combine different sessions after reconnection. ## Evidence -[`metadata.rs`](../../../../nebula_app/src/completion/metadata.rs) adapts the +[`metadata.rs`](../../../../pebrel_app/src/completion/metadata.rs) adapts the captured process or authenticated transport. -[`ssh_session/completion.rs`](../../../../nebula_app/src/ssh_session/completion.rs) +[`ssh_session/completion.rs`](../../../../pebrel_app/src/ssh_session/completion.rs) retains a connection generation and an independently owned query channel. Request and transport regressions exercise configured remotes, negative fetch mappings, ambiguous routes, cancellation and connection generations. diff --git a/architecture/notes/nebula_app/gpui_shell/2026-09-19-render-resource-lifetimes.md b/architecture/notes/pebrel_app/gpui_shell/2026-09-19-render-resource-lifetimes.md similarity index 94% rename from architecture/notes/nebula_app/gpui_shell/2026-09-19-render-resource-lifetimes.md rename to architecture/notes/pebrel_app/gpui_shell/2026-09-19-render-resource-lifetimes.md index f57b4c907..868335c63 100644 --- a/architecture/notes/nebula_app/gpui_shell/2026-09-19-render-resource-lifetimes.md +++ b/architecture/notes/pebrel_app/gpui_shell/2026-09-19-render-resource-lifetimes.md @@ -17,9 +17,9 @@ cannot clear that global cache as though it were the only consumer. ## Evidence -- [Document activity](../../../../nebula_app/src/gpui_shell/file_editor/activity.rs) +- [Document activity](../../../../pebrel_app/src/gpui_shell/file_editor/activity.rs) separates the persistent editing session from visible presentation resources. -- [Image loading](../../../../nebula_app/src/gpui_shell/file_editor/image_cache.rs) +- [Image loading](../../../../pebrel_app/src/gpui_shell/file_editor/image_cache.rs) has a document owner, bounded completed results, cancellable tasks and a generation check that rejects results from an earlier active period. - GPUI's `App::drop_image` accepts the current window explicitly because an @@ -39,11 +39,11 @@ a lightweight caret description remain available for resumption. Image release with a current window supplies that window to GPUI. Owner-release callbacks without the window defer cleanup until the window is back in the app. -The existing [render cache](../../../../nebula_app/src/render_cache.rs) remains +The existing [render cache](../../../../pebrel_app/src/render_cache.rs) remains the sole LRU/accounting implementation. Budget reduction and insertion notify resource owners when they evict values. -The [scientific renderer](../../../../nebula_app/src/gpui_shell/scientific_render.rs) +The [scientific renderer](../../../../pebrel_app/src/gpui_shell/scientific_render.rs) holds evicted images until its existing application-task callback releases their atlas entries. Retired pixels remain charged while the callback runs, including when an already-running worker finishes concurrently. New workers wait until all diff --git a/architecture/notes/nebula_app/gpui_shell/2026-09-21-macos-command-key-aliases.md b/architecture/notes/pebrel_app/gpui_shell/2026-09-21-macos-command-key-aliases.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/2026-09-21-macos-command-key-aliases.md rename to architecture/notes/pebrel_app/gpui_shell/2026-09-21-macos-command-key-aliases.md diff --git a/architecture/notes/nebula_app/gpui_shell/2026-09-27-config-window-startup-size.md b/architecture/notes/pebrel_app/gpui_shell/2026-09-27-config-window-startup-size.md similarity index 99% rename from architecture/notes/nebula_app/gpui_shell/2026-09-27-config-window-startup-size.md rename to architecture/notes/pebrel_app/gpui_shell/2026-09-27-config-window-startup-size.md index f7639ce19..9459073b4 100644 --- a/architecture/notes/nebula_app/gpui_shell/2026-09-27-config-window-startup-size.md +++ b/architecture/notes/pebrel_app/gpui_shell/2026-09-27-config-window-startup-size.md @@ -37,7 +37,7 @@ default canvas, not a user value. - gpui rev `7c66238`: `WindowOptions::window_bounds` and `Window::resize` take logical `Pixels` (scaled per window by the platform layer), `App` exposes no scale factor, and `Window` has no `set_position`/`move_window`. -- Local `cargo check -p nebula` cannot complete on this machine: the +- Local `cargo check -p pebrel` cannot complete on this machine: the `gpui_macos` build script needs the Xcode `metal` tool (`xcrun: error: unable to find utility "metal"`), so compile-level verification runs in CI. See Validation. diff --git a/architecture/notes/nebula_app/gpui_shell/2026-11-05-directwrite-face-attribution.md b/architecture/notes/pebrel_app/gpui_shell/2026-11-05-directwrite-face-attribution.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/2026-11-05-directwrite-face-attribution.md rename to architecture/notes/pebrel_app/gpui_shell/2026-11-05-directwrite-face-attribution.md diff --git a/architecture/notes/nebula_app/gpui_shell/doc_tabs/2026-10-11-decoded-image-geometry.md b/architecture/notes/pebrel_app/gpui_shell/doc_tabs/2026-10-11-decoded-image-geometry.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/doc_tabs/2026-10-11-decoded-image-geometry.md rename to architecture/notes/pebrel_app/gpui_shell/doc_tabs/2026-10-11-decoded-image-geometry.md diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md similarity index 97% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md index f7a44e913..79bb75849 100644 --- a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md +++ b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-09-20-inline-source-reveal.md @@ -14,7 +14,7 @@ invalidation costs without resolving source ownership. ## Evidence -- [Projection](../../../../../nebula_app/src/gpui_shell/file_editor/inline_edit.rs) +- [Projection](../../../../../pebrel_app/src/gpui_shell/file_editor/inline_edit.rs) already preserves source ranges and untouched link destinations. A single revealed inline can therefore coexist with styled neighboring leaves. - The pinned component input accepts text decorations but no embedded image or @@ -88,7 +88,7 @@ and copying, saving and shared undo/redo. History tests include deletion of repeated suffixes so prefix and suffix scans cannot overlap. A prepared GIF fixture checks that mixed views retain a still preview and original source spans. -The Windows product check passed with `cargo check -p nebula --bin pebrel +The Windows product check passed with `cargo check -p pebrel --bin pebrel --features gpui-shell --tests --locked --offline --config build.incremental=false -j 2`. `python3 scripts/check_architecture.py --base diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-09-21-native-pointer-and-layout-handoff.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-09-21-native-pointer-and-layout-handoff.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-09-21-native-pointer-and-layout-handoff.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-09-21-native-pointer-and-layout-handoff.md diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-14-inline-code-presentation.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-14-inline-code-presentation.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-14-inline-code-presentation.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-14-inline-code-presentation.md diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md index e5b173320..cae74c3de 100644 --- a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md +++ b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-14-reader-object-drafts.md @@ -81,7 +81,7 @@ ordinary text/cell editing continues to use its existing reader/live-mode bounda - Architecture check and the 24 independent internationalization tests passed. - All 99 file-editor tests passed, including real pointer movement from a formula to its copy control and a retained-payload regression for repeated references. -- GPUI product `cargo check --locked -p nebula --bin pebrel --features gpui-shell --tests` passed. +- GPUI product `cargo check --locked -p pebrel --bin pebrel --features gpui-shell --tests` passed. - No full application screenshot or manual native visual acceptance is claimed. ## Supersedes diff --git a/architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-15-link-occurrence-actions.md b/architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-15-link-occurrence-actions.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-15-link-occurrence-actions.md rename to architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-15-link-occurrence-actions.md diff --git a/architecture/notes/nebula_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md b/architecture/notes/pebrel_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md similarity index 97% rename from architecture/notes/nebula_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md rename to architecture/notes/pebrel_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md index df5ec24cc..d3005f688 100644 --- a/architecture/notes/nebula_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md +++ b/architecture/notes/pebrel_app/gpui_shell/settings_fixture/2026-10-02-font-controls-nextest-isolation.md @@ -19,7 +19,7 @@ menu overlapping its trigger. The new font-size and Chinese-font fixtures held the mutex but were absent from nextest's group. The existing long-segment fixture was also absent, and the font-field layout fixture lacked both forms of isolation. -See [fixture ownership](../../../../../nebula_app/src/gpui_shell/settings_fixture.rs) +See [fixture ownership](../../../../../pebrel_app/src/gpui_shell/settings_fixture.rs) and the [failed native run](https://github.com/Kuddev/pebrel/actions/runs/36885846273). ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/settings_pane/theme_package/2026-10-03-editor-package-transactions.md b/architecture/notes/pebrel_app/gpui_shell/settings_pane/theme_package/2026-10-03-editor-package-transactions.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/settings_pane/theme_package/2026-10-03-editor-package-transactions.md rename to architecture/notes/pebrel_app/gpui_shell/settings_pane/theme_package/2026-10-03-editor-package-transactions.md diff --git a/architecture/notes/nebula_app/gpui_shell/shader_source/2026-11-02-glsl-and-script-parameters.md b/architecture/notes/pebrel_app/gpui_shell/shader_source/2026-11-02-glsl-and-script-parameters.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/shader_source/2026-11-02-glsl-and-script-parameters.md rename to architecture/notes/pebrel_app/gpui_shell/shader_source/2026-11-02-glsl-and-script-parameters.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md index 4d87993cf..80aba0095 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-19-hidden-output-invalidation.md @@ -72,7 +72,7 @@ the real workspace render path across tab, split, zoom, settings and explicit hidden-state transitions. The 50 terminal view tests passed (including the four new output regressions), and the separate workspace render regression passed. Changed Rust files pass formatting and whitespace checks. The actual product -configuration passed `cargo check -p nebula --bin pebrel --features gpui-shell +configuration passed `cargo check -p pebrel --bin pebrel --features gpui-shell --tests --locked --offline`. Its first run exposed a missing test-support feature guard on the existing scientific renderer's native regression; that test is now compiled only with the required support. These checks do not establish a process diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md similarity index 97% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md index ea3d3b48a..9093ec56a 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-20-ligatures-on-a-fixed-grid.md @@ -18,9 +18,9 @@ an edit, visibly moving unrelated characters. ## Evidence -- [`element.rs`](../../../../../nebula_app/src/gpui_shell/terminal/element.rs) +- [`element.rs`](../../../../../pebrel_app/src/gpui_shell/terminal/element.rs) owns viewport projection, colors, cursor and selection boundaries. -- [`ligatures.rs`](../../../../../nebula_app/src/gpui_shell/terminal/ligatures.rs) +- [`ligatures.rs`](../../../../../pebrel_app/src/gpui_shell/terminal/ligatures.rs) maps the shaper's UTF-8 cluster indices to columns for ASCII spans. Multiple glyphs can share an index, and a ligature can consume multiple source cells; glyph counts cannot be used as column counts. diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-25-cursor-motion.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-25-cursor-motion.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-25-cursor-motion.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-25-cursor-motion.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md similarity index 93% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md index cbbc5af54..178fc643e 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-29-completion-request-ownership.md @@ -15,14 +15,14 @@ synchronous filesystem scan in the paint callback. ## Evidence -- `nebula_app/src/gpui_shell/terminal/element.rs` captures grid input and the +- `pebrel_app/src/gpui_shell/terminal/element.rs` captures grid input and the cursor in the same terminal lock. -- `nebula_app/src/display/input_state.rs` reconciles shell integration marks +- `pebrel_app/src/display/input_state.rs` reconciles shell integration marks and echoed input, rejecting text after the cursor, including native shell suggestions. Keystroke reconstruction alone cannot see shell completion. -- `nebula_app/src/display/suggest_engine.rs` owns source ordering, matching, +- `pebrel_app/src/display/suggest_engine.rs` owns source ordering, matching, environment separation and candidate generation for both UI adapters. -- `nebula_app/src/gpui_shell/terminal/view/startup.rs` already resolves local +- `pebrel_app/src/gpui_shell/terminal/view/startup.rs` already resolves local PTY directories for directory history; completion previously discarded them. ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md similarity index 93% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md index 5c09b850e..5fea9f298 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-30-completion-lock-and-cancellation.md @@ -14,13 +14,13 @@ Discarding an obsolete UI result also does not stop an already-running scan. ## Evidence -- `nebula_app/src/gpui_shell/terminal/suggest.rs` owns shared history and the +- `pebrel_app/src/gpui_shell/terminal/suggest.rs` owns shared history and the calculation adapter; `commit_line` uses the same history authority. -- `nebula_app/src/display/suggest_engine.rs` calls history matching before +- `pebrel_app/src/display/suggest_engine.rs` calls history matching before directory and filesystem completion for both presentation adapters. -- `nebula_app/src/directory_history.rs::hint` used to retain its database lock +- `pebrel_app/src/directory_history.rs::hint` used to retain its database lock during filesystem metadata queries. -- `nebula-completions/src/file.rs` enumerates directories recursively, so a +- `pebrel-completions/src/file.rs` enumerates directories recursively, so a request can keep doing work after its view no longer accepts the result. ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-09-30-formula-selection-projection.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-30-formula-selection-projection.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-09-30-formula-selection-projection.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-09-30-formula-selection-projection.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md index 13ce70c45..fcbb5872a 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-12-idle-render-frame-budgets.md @@ -107,7 +107,7 @@ Review corrections (2026-10-24, maintainer findings): - Unit tests for the three pure decision functions (`terminal/view/tests.rs`, `display/animations.rs` spinner phase test). -- Full `cargo test -p nebula` green; manual Fleet-derived measurements +- Full `cargo test -p pebrel` green; manual Fleet-derived measurements documented above. - Review-driven regressions: diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-13-images-and-math-projection.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-13-images-and-math-projection.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-13-images-and-math-projection.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-13-images-and-math-projection.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-23-disconnected-session-actions.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-23-disconnected-session-actions.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-23-disconnected-session-actions.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-23-disconnected-session-actions.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-24-native-result-image-projection.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-24-native-result-image-projection.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-24-native-result-image-projection.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-24-native-result-image-projection.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-activity-probe-owner.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-activity-probe-owner.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-activity-probe-owner.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-activity-probe-owner.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-character-grid-spacing.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-character-grid-spacing.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-character-grid-spacing.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-character-grid-spacing.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md index 27ea034dd..72c462e0d 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-independent-glyphs-and-proportional-grids.md @@ -23,7 +23,7 @@ the earlier 0.6em-width/1.2em-height policy. `view/typography.rs` owns cell measurement and baseline placement, while `element.rs` supplies the main face's baseline to text painting. Existing -`nebula_terminal::render::boxdraw` primitives own special-character geometry. +`pebrel_terminal::render::boxdraw` primitives own special-character geometry. ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-restore-text-metrics-and-symbol-fallback.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-restore-text-metrics-and-symbol-fallback.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-25-restore-text-metrics-and-symbol-fallback.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-25-restore-text-metrics-and-symbol-fallback.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-26-bounded-character-art-regions.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-26-bounded-character-art-regions.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-26-bounded-character-art-regions.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-26-bounded-character-art-regions.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/2026-10-26-restore-2-2-2-reading-spacing.md b/architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-26-restore-2-2-2-reading-spacing.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/2026-10-26-restore-2-2-2-reading-spacing.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/2026-10-26-restore-2-2-2-reading-spacing.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md b/architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-backend-capability-and-paint-cadence.md b/architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-backend-capability-and-paint-cadence.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-backend-capability-and-paint-cadence.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-backend-capability-and-paint-cadence.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-metal-controller-integration.md b/architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-metal-controller-integration.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-metal-controller-integration.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-metal-controller-integration.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-portable-source-preparation.md b/architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-portable-source-preparation.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/effects/2026-10-07-portable-source-preparation.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/effects/2026-10-07-portable-source-preparation.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-block-presentation.md b/architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-block-presentation.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-block-presentation.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-block-presentation.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md b/architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md index fa74facef..9a0eba035 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md @@ -65,7 +65,7 @@ from synthetic-window timing. ## Supersedes The default directory-table presentation in -`architecture/notes/nebula_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md`. +`architecture/notes/pebrel_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md`. The existing bounded capture and source-validation decisions remain. ## Revisit when diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-21-hover-state-and-natural-height.md b/architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-21-hover-state-and-natural-height.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-21-hover-state-and-natural-height.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-21-hover-state-and-natural-height.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-25-json-tree-and-text-selection.md b/architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-25-json-tree-and-text-selection.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-25-json-tree-and-text-selection.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-25-json-tree-and-text-selection.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md index 5eab20e7c..3d9516e0b 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md @@ -24,7 +24,7 @@ converted to wire bytes, and that default zsh need not bind the Delete sequence. ## Decision -[`editor.rs`](../../../../../../nebula_app/src/gpui_shell/terminal/view/editor.rs) +[`editor.rs`](../../../../../../pebrel_app/src/gpui_shell/terminal/view/editor.rs) owns a bounded, explicit query to an advertised native line editor. PowerShell uses an unbound Ctrl+Shift+F12 chord; Bash/zsh use an unbound F24 sequence. Existing bindings retain ownership. The capability advertisement distinguishes legacy diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md index 3af955f96..a85db22cf 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-04-remote-editor-startup.md @@ -73,7 +73,7 @@ HOME while exercising the normal installer and authenticated connection pool. [`test_completion_editor.py`](../../../../../../scripts/tests/test_completion_editor.py) tests real Bash/zsh buffers and startup constants. The native -[`remote.rs`](../../../../../../nebula_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs) +[`remote.rs`](../../../../../../pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs) fixture tests inline, popup and hybrid modes, immediate Tab, Chinese/emoji middle editing with following flags, acceptance without execution, execution and Escape cancellation. CI still compiles the shared test driver on selected native hosts; diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-07-completion-query-ownership.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-07-completion-query-ownership.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-07-completion-query-ownership.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-07-completion-query-ownership.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md similarity index 95% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md index 5fc53caf9..cf9ba038e 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md @@ -29,7 +29,7 @@ explains why a terminal must not infer protocol support from the shell name. ## Decision -[`clipboard.ps1`](../../../../../../nebula_terminal/src/tty/clipboard.ps1) installs +[`clipboard.ps1`](../../../../../../pebrel_terminal/src/tty/clipboard.ps1) installs a delegate to PSReadLine's built-in Paste on Ctrl+Shift+F11 only when that chord is unbound. The handler's name carries the shell instance token: PSReadLine lets user scripts use the name `Paste`, so that display name alone cannot establish @@ -41,7 +41,7 @@ with the current `pebrel_shell` token, or an empty value to revoke capability. Vi mode is excluded because its active keymap can change without another prompt. Existing user bindings retain ownership. -[`native_clipboard.rs`](../../../../../../nebula_app/src/gpui_shell/terminal/view/native_clipboard.rs) +[`native_clipboard.rs`](../../../../../../pebrel_app/src/gpui_shell/terminal/view/native_clipboard.rs) owns the UI admission state. A new shell report, including the same token at the next prompt, clears the previous capability. Command start also clears it. The platform capability table owns host support, leaving platform compilation @@ -92,17 +92,17 @@ Other shells, remote sessions and foreground applications keep their contracts. ## Validation -The [GPUI regressions](../../../../../../nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs) +The [GPUI regressions](../../../../../../pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs) exercise the clipboard action, consecutive native/VT broadcast delivery, current owner, capability revocation, command start, changed clipboard, remote context and negotiated modes. They also verify rejection and original-text fallback on unsupported hosts. -The [binding test](../../../../../../nebula_terminal/tests/native_clipboard.rs) runs +The [binding test](../../../../../../pebrel_terminal/tests/native_clipboard.rs) runs real PSReadLine keymaps and checks installation, reload, preserved user handlers, revocation, Vi exclusion and Emacs support. A same-name user script regression fails with the original `Function == Paste` check and remains unclaimed after reload with the owned handler marker, as does a user-assigned built-in Paste. -The opt-in [Windows acceptance fixture](../../../../../../nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs) +The opt-in [Windows acceptance fixture](../../../../../../pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs) uses a fresh configuration, the real clipboard, GPUI and ConPTY. Its Windows shell bootstrap belongs to the existing platform shell adapter. It checks the native buffer, no execution before Enter, one Undo/Redo, explicit execution, diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-28-application-mouse-gesture-lifetime.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-28-application-mouse-gesture-lifetime.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-28-application-mouse-gesture-lifetime.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-28-application-mouse-gesture-lifetime.md diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md index a3860f4d9..2ec7439da 100644 --- a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md +++ b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-31-native-shell-pointer-coordinates.md @@ -96,7 +96,7 @@ replacing the production adapter. This does not establish ConPTY or macOS suppor ## Supersedes None. The native protocol decision remains in -`architecture/notes/nebula_terminal/tty/2026-10-31-native-shell-pointer.md`. +`architecture/notes/pebrel_terminal/tty/2026-10-31-native-shell-pointer.md`. ## Revisit when diff --git a/architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-31-pi-wheel-paging.md b/architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-31-pi-wheel-paging.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-31-pi-wheel-paging.md rename to architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-31-pi-wheel-paging.md diff --git a/architecture/notes/nebula_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md b/architecture/notes/pebrel_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md similarity index 95% rename from architecture/notes/nebula_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md rename to architecture/notes/pebrel_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md index 7dfa30add..44b5e87be 100644 --- a/architecture/notes/nebula_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md +++ b/architecture/notes/pebrel_app/gpui_shell/theme/2026-10-06-client-frame-theme-reveal.md @@ -21,9 +21,9 @@ restricted to test support. The Windows client DC offers a bounded capture candidate without enabling test features in the product; its capture quality is pending native validation. -See [transition ownership](../../../../../nebula_app/src/gpui_shell/theme/transition.rs), -[native capture](../../../../../nebula_app/src/platform/window_capture.rs) and -[root composition](../../../../../nebula_app/src/gpui_shell/workspace/render.rs). +See [transition ownership](../../../../../pebrel_app/src/gpui_shell/theme/transition.rs), +[native capture](../../../../../pebrel_app/src/platform/window_capture.rs) and +[root composition](../../../../../pebrel_app/src/gpui_shell/workspace/render.rs). ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md b/architecture/notes/pebrel_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md rename to architecture/notes/pebrel_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md index 18c1e8f91..22f73ed61 100644 --- a/architecture/notes/nebula_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md +++ b/architecture/notes/pebrel_app/gpui_shell/toast/2026-09-19-notification-duration-and-retention.md @@ -21,7 +21,7 @@ by one hour before the retention fix. ## Decision -`nebula_settings::NotificationDuration` owns accepted values, compatibility +`pebrel_settings::NotificationDuration` owns accepted values, compatibility fallback and conversion to a lifetime. The settings UI uses shared persistence and refreshes the cached GPUI settings. Failed saves restore the saved selection and provide visible feedback. Existing cards keep their original deadlines. diff --git a/architecture/notes/nebula_app/gpui_shell/toast/2026-09-20-typed-turn-results.md b/architecture/notes/pebrel_app/gpui_shell/toast/2026-09-20-typed-turn-results.md similarity index 93% rename from architecture/notes/nebula_app/gpui_shell/toast/2026-09-20-typed-turn-results.md rename to architecture/notes/pebrel_app/gpui_shell/toast/2026-09-20-typed-turn-results.md index 6ee3425a2..7db9c691d 100644 --- a/architecture/notes/nebula_app/gpui_shell/toast/2026-09-20-typed-turn-results.md +++ b/architecture/notes/pebrel_app/gpui_shell/toast/2026-09-20-typed-turn-results.md @@ -12,11 +12,11 @@ retries can also fill the visible notification stack with results from one pane. ## Evidence -- The shared [hook protocol](../../../../../nebula_app/src/ai_hook/protocol.rs) +- The shared [hook protocol](../../../../../pebrel_app/src/ai_hook/protocol.rs) already parses explicit success, failure, cancellation and incomplete outcomes. -- The [notification model](../../../../../nebula_app/src/notify.rs) receives those +- The [notification model](../../../../../pebrel_app/src/notify.rs) receives those typed outcomes, and both UI adapters consume its display text. -- The [GPUI adapter](../../../../../nebula_app/src/gpui_shell/toast.rs) already owns +- The [GPUI adapter](../../../../../pebrel_app/src/gpui_shell/toast.rs) already owns duration selection, three-card retention and weak-reference expiry timers. ## Decision diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-04-product-video-background.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-04-product-video-background.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-04-product-video-background.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-04-product-video-background.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-04-system-video-worker.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-04-system-video-worker.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-04-system-video-worker.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-04-system-video-worker.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-pinned-renderer-dependencies.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-pinned-renderer-dependencies.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-pinned-renderer-dependencies.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-pinned-renderer-dependencies.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-realtime-background-shaders.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-realtime-background-shaders.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-realtime-background-shaders.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-realtime-background-shaders.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-streaming-gif-pipeline.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-streaming-gif-pipeline.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-05-streaming-gif-pipeline.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-05-streaming-gif-pipeline.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-06-media-backend-boundaries.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-06-media-backend-boundaries.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-06-media-backend-boundaries.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-06-media-backend-boundaries.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-10-macos-native-video-underlay.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-10-macos-native-video-underlay.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-10-macos-native-video-underlay.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-10-macos-native-video-underlay.md diff --git a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md rename to architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md index 7a2ee0c9b..5b7906717 100644 --- a/architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md +++ b/architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md @@ -22,7 +22,7 @@ configuration, with no new settings-page controls and no default appearance chan ## Decision -`nebula_settings::TabBarMaterial` owns the optional `tab_bar_opacity` and +`pebrel_settings::TabBarMaterial` owns the optional `tab_bar_opacity` and `tab_bar_blur` keys. Missing, `inherit`, and invalid values inherit the window preference; opacity accepts finite values clamped to 0..1. Explicit `none` is a valid blur override. Both tab positions use the same prepared state and background diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-09-22-first-frame-startup.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-22-first-frame-startup.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-09-22-first-frame-startup.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-22-first-frame-startup.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-09-22-nonblocking-first-frame.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-22-nonblocking-first-frame.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-09-22-nonblocking-first-frame.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-22-nonblocking-first-frame.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-09-28-pane-titles.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-28-pane-titles.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-09-28-pane-titles.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-28-pane-titles.md index e506359d1..6fe57a855 100644 --- a/architecture/notes/nebula_app/gpui_shell/workspace/2026-09-28-pane-titles.md +++ b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-09-28-pane-titles.md @@ -13,7 +13,7 @@ foreground-program identity, or the tab's existing custom name. ## Evidence -- `nebula_app/src/gpui_shell/workspace/pane_header.rs` derives each automatic +- `pebrel_app/src/gpui_shell/workspace/pane_header.rs` derives each automatic title from the foreground program, SSH destination, or current directory. - `TerminalPane` in `workspace.rs` owns the stable pane ID and moves with its terminal when tabs are rearranged or transferred between windows. diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md similarity index 97% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md index 70a79b29f..66283e175 100644 --- a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md +++ b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-duplicate-split-layout.md @@ -12,7 +12,7 @@ Copying the live tab would instead share entity subscriptions and PTY ownership. ## Evidence -[`duplicate_tab`](../../../../../nebula_app/src/gpui_shell/workspace/tab_duplication.rs) +[`duplicate_tab`](../../../../../pebrel_app/src/gpui_shell/workspace/tab_duplication.rs) previously called single-terminal creation. The existing session bridge already converts the shared split tree and restores each leaf with a fresh pane. SSH restoration discarded the saved cwd in the generic launch conversion. diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-empty-workspace-residency.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-empty-workspace-residency.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-empty-workspace-residency.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-empty-workspace-residency.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-ordinary-window-geometry.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-ordinary-window-geometry.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-ordinary-window-geometry.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-ordinary-window-geometry.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-pane-position-exchange.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-pane-position-exchange.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-03-pane-position-exchange.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-03-pane-position-exchange.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-07-keyboard-override-sources.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-10-entity-owned-port-completion.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-10-entity-owned-port-completion.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-10-entity-owned-port-completion.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-10-entity-owned-port-completion.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-10-tab-drag-release-dispatch.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-10-tab-drag-release-dispatch.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-10-tab-drag-release-dispatch.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-10-tab-drag-release-dispatch.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-root-background-refresh.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-root-background-refresh.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-root-background-refresh.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-root-background-refresh.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-single-background-opacity.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-single-background-opacity.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-single-background-opacity.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-single-background-opacity.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md similarity index 95% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md index 6e5cf60b2..9703293d4 100644 --- a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md +++ b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-21-spinner-render-scope.md @@ -19,9 +19,9 @@ would remove useful progress feedback while the user works in another window. ## Evidence -- [Workspace pane embedding](../../../../../nebula_app/src/gpui_shell/workspace.rs) +- [Workspace pane embedding](../../../../../pebrel_app/src/gpui_shell/workspace.rs) had no terminal cache boundary. The actual - [terminal element](../../../../../nebula_app/src/gpui_shell/terminal/element.rs) + [terminal element](../../../../../pebrel_app/src/gpui_shell/terminal/element.rs) calls `RenderSnapshot::capture` from its paint path. This identifies the redundant work by source inspection; it is not a Windows performance profile. - The pinned [GPUI view implementation](https://github.com/Kuddev/zed/blob/1e716d16ec54b361499931b4278903cdcaae8949/crates/gpui/src/view.rs) @@ -45,7 +45,7 @@ would remove useful progress feedback while the user works in another window. ## Decision Use the shared `terminal_surface` adapter in -[`terminal_activity`](../../../../../nebula_app/src/gpui_shell/workspace/terminal_activity.rs) +[`terminal_activity`](../../../../../pebrel_app/src/gpui_shell/workspace/terminal_activity.rs) for both pane embedding paths. Its definite full-size style allows GPUI's native entity cache to reuse the terminal subtree on workspace-only invalidations. The terminal's own notifications, changed layout bounds, inherited text style, @@ -69,12 +69,12 @@ again, advances the shared phase and notifies the workspace. Only a subsequent visible paint renews the chain. A callback already queued when a badge disappears may run once without renewing; dropping the workspace leaves no strong owner. -[`agents`](../../../../../nebula_app/src/gpui_shell/workspace/agents.rs) samples the +[`agents`](../../../../../pebrel_app/src/gpui_shell/workspace/agents.rs) samples the GPUI background executor's clock for a one-second revolution. Visible unfocused windows continue animating. Explicitly hidden or minimized windows stop under the existing workspace/platform checks; keyboard focus is not a visibility test. -[`sidebar`](../../../../../nebula_app/src/gpui_shell/workspace/sidebar.rs) paints a +[`sidebar`](../../../../../pebrel_app/src/gpui_shell/workspace/sidebar.rs) paints a fixed ring SVG and a fixed arc SVG, shared with top tabs. Their masks reuse the GPUI atlas at a given device-pixel size; phase changes only the arc transform. Both assets and the rotation center use one pixel-snapped physical square. @@ -127,7 +127,7 @@ submission and swap-chain presentation before attributing a total saving. All six real-layout regressions below pass on Linux ARM64. Thirteen existing settings-navigation, top-tab geometry and title-bar control regressions also pass. The production build passes -`cargo check --locked -p nebula --bin pebrel --features gpui-shell --tests`. +`cargo check --locked -p pebrel --bin pebrel --features gpui-shell --tests`. Workspace formatting, `git diff --check` and `python3 scripts/check_architecture.py --base 2085557d` pass. @@ -138,7 +138,7 @@ protocol commit also pass. The following tests in `workspace::terminal_activity::tests` use an actual `Root` containing `NebulaWorkspace`. A test-only, per-App -[snapshot probe](../../../../../nebula_app/src/gpui_shell/terminal/element/snapshot_probe.rs) +[snapshot probe](../../../../../pebrel_app/src/gpui_shell/terminal/element/snapshot_probe.rs) records captures consumed by real terminal paint, isolated by entity identity. | Test | Protected behavior | diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-25-shell-event-wake.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-25-shell-event-wake.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-25-shell-event-wake.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-25-shell-event-wake.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md similarity index 98% rename from architecture/notes/nebula_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md index 60d3405cc..6a4a0ba2e 100644 --- a/architecture/notes/nebula_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md +++ b/architecture/notes/pebrel_app/gpui_shell/workspace/2026-10-28-system-session-end-preservation.md @@ -20,7 +20,7 @@ - 新增当前 UI 线程的 Windows 消息适配器,仅观察 `WM_QUERYENDSESSION` / `WM_ENDSESSION`,始终转发原消息,保持原窗口返回值;不注册全局 hook,不调用工作区或磁盘接口。 - Query 到达即标记待定;Query 被否决或收到取消的 EndSession 时解除;确认的 EndSession 保持保护。安装和卸载使用同一线程的生命周期 guard,安装失败显式报告。 -- 继续由 [SessionPersistence](../../../../../nebula_app/src/gpui_shell/workspace/session_persistence.rs) 独占候选选择及写入。系统退出期间使用它已有的 `latest`,不接受终端拆除产生的缩减快照。没有既有快照时,只接受非空当前快照。 +- 继续由 [SessionPersistence](../../../../../pebrel_app/src/gpui_shell/workspace/session_persistence.rs) 独占候选选择及写入。系统退出期间使用它已有的 `latest`,不接受终端拆除产生的缩减快照。没有既有快照时,只接受非空当前快照。 - 不增加保存副本、额外写线程、保存通道或会话格式。错误和管理员隔离继续走原策略。系统退出不设置普通 Quit 的永久冻结位,因此取消后可恢复常规保存。 - 非 Windows 平台的观察器为空实现,正常关闭候选规则不变。 diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-10-10-pane-cwd-following.md b/architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-10-10-pane-cwd-following.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-10-10-pane-cwd-following.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-10-10-pane-cwd-following.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-10-13-cancelled-listing-session-ownership.md b/architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-10-13-cancelled-listing-session-ownership.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-10-13-cancelled-listing-session-ownership.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-10-13-cancelled-listing-session-ownership.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-11-02-batch-selection-and-transfers.md b/architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-11-02-batch-selection-and-transfers.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/remote_files/2026-11-02-batch-selection-and-transfers.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/2026-11-02-batch-selection-and-transfers.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/vcs_panel/2026-09-20-visible-row-rendering.md b/architecture/notes/pebrel_app/gpui_shell/workspace/vcs_panel/2026-09-20-visible-row-rendering.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/vcs_panel/2026-09-20-visible-row-rendering.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/vcs_panel/2026-09-20-visible-row-rendering.md diff --git a/architecture/notes/nebula_app/gpui_shell/workspace/windowing/2026-10-25-runtime-geometry-acknowledgement.md b/architecture/notes/pebrel_app/gpui_shell/workspace/windowing/2026-10-25-runtime-geometry-acknowledgement.md similarity index 100% rename from architecture/notes/nebula_app/gpui_shell/workspace/windowing/2026-10-25-runtime-geometry-acknowledgement.md rename to architecture/notes/pebrel_app/gpui_shell/workspace/windowing/2026-10-25-runtime-geometry-acknowledgement.md diff --git a/architecture/notes/nebula_app/input/2026-09-19-modified-enter-compatibility.md b/architecture/notes/pebrel_app/input/2026-09-19-modified-enter-compatibility.md similarity index 94% rename from architecture/notes/nebula_app/input/2026-09-19-modified-enter-compatibility.md rename to architecture/notes/pebrel_app/input/2026-09-19-modified-enter-compatibility.md index 1bcdcd28a..96d1bc3fe 100644 --- a/architecture/notes/nebula_app/input/2026-09-19-modified-enter-compatibility.md +++ b/architecture/notes/pebrel_app/input/2026-09-19-modified-enter-compatibility.md @@ -16,8 +16,8 @@ encodings for the same terminal client. The Windows ConPTY probe receives CR from Shift+VK_RETURN even when UnicodeChar is LF, while native ReadKey retains Shift. Direct LF compatibility and negotiated CSI-u survive that transport. The -[shared input implementation and regressions](../../../../nebula_app/src/input/terminal_input.rs) -and [GPUI keymap tests](../../../../nebula_app/src/gpui_shell/terminal/keymap.rs) +[shared input implementation and regressions](../../../../pebrel_app/src/input/terminal_input.rs) +and [GPUI keymap tests](../../../../pebrel_app/src/gpui_shell/terminal/keymap.rs) cover the byte/key boundary. ## Decision diff --git a/architecture/notes/nebula_app/input/2026-09-21-runtime-codex-submission-boundary.md b/architecture/notes/pebrel_app/input/2026-09-21-runtime-codex-submission-boundary.md similarity index 94% rename from architecture/notes/nebula_app/input/2026-09-21-runtime-codex-submission-boundary.md rename to architecture/notes/pebrel_app/input/2026-09-21-runtime-codex-submission-boundary.md index ee6e9a762..8df501dcc 100644 --- a/architecture/notes/nebula_app/input/2026-09-21-runtime-codex-submission-boundary.md +++ b/architecture/notes/pebrel_app/input/2026-09-21-runtime-codex-submission-boundary.md @@ -13,12 +13,12 @@ Codex 会把快速输入收集为 paste burst,过早到达的 Enter 可能成 ## Evidence -- [`terminal_input.rs`](../../../../nebula_app/src/input/terminal_input.rs) 的 runtime 文本路径 +- [`terminal_input.rs`](../../../../pebrel_app/src/input/terminal_input.rs) 的 runtime 文本路径 保留 ConPTY 原生字符输入;非字符按键通过协商的 VT/扩展键盘/Win32 编码器发送。 -- [`runtime.rs`](../../../../nebula_app/src/gpui_shell/terminal/view/runtime.rs) 原有屏幕回显 +- [`runtime.rs`](../../../../pebrel_app/src/gpui_shell/terminal/view/runtime.rs) 原有屏幕回显 屏障只比较前后屏幕,无法建立 Codex paste-burst 的输入边界。 - Codex 的输入编辑器会先缓冲快速输入;非字符输入会形成提交前的输入边界。 -- [`AgentActivity`](../../../../nebula_app/src/ai_hook/lifecycle.rs) 已有 pending-submit +- [`AgentActivity`](../../../../pebrel_app/src/ai_hook/lifecycle.rs) 已有 pending-submit 守卫:未观察到 Working/Blocked 或完成 hook 时,旧 idle 不能制造新回合完成。 ## Decision diff --git a/architecture/notes/nebula_app/input/2026-09-23-configurable-tab-rename.md b/architecture/notes/pebrel_app/input/2026-09-23-configurable-tab-rename.md similarity index 100% rename from architecture/notes/nebula_app/input/2026-09-23-configurable-tab-rename.md rename to architecture/notes/pebrel_app/input/2026-09-23-configurable-tab-rename.md diff --git a/architecture/notes/nebula_app/input/2026-10-15-macos-control-character-defaults.md b/architecture/notes/pebrel_app/input/2026-10-15-macos-control-character-defaults.md similarity index 100% rename from architecture/notes/nebula_app/input/2026-10-15-macos-control-character-defaults.md rename to architecture/notes/pebrel_app/input/2026-10-15-macos-control-character-defaults.md diff --git a/architecture/notes/nebula_app/input/2026-11-01-codebuddy-modified-enter.md b/architecture/notes/pebrel_app/input/2026-11-01-codebuddy-modified-enter.md similarity index 97% rename from architecture/notes/nebula_app/input/2026-11-01-codebuddy-modified-enter.md rename to architecture/notes/pebrel_app/input/2026-11-01-codebuddy-modified-enter.md index f55c603c9..3d13669da 100644 --- a/architecture/notes/nebula_app/input/2026-11-01-codebuddy-modified-enter.md +++ b/architecture/notes/pebrel_app/input/2026-11-01-codebuddy-modified-enter.md @@ -23,7 +23,7 @@ upstream implementation is copied into the product. ## Decision Extend the existing program-aware multiline compatibility rule in -[`terminal_input`](../../../../nebula_app/src/input/terminal_input.rs) to return +[`terminal_input`](../../../../pebrel_app/src/input/terminal_input.rs) to return the appropriate sequence: LF for Claude, ESC CR for registered CodeBuddy aliases. Physical GPUI keys and runtime keys share this rule. A negotiated extended keyboard protocol takes precedence; native readers such as Codex and PSReadLine retain diff --git a/architecture/notes/nebula_app/input/2026-11-05-windows-pointer-auto-hide.md b/architecture/notes/pebrel_app/input/2026-11-05-windows-pointer-auto-hide.md similarity index 98% rename from architecture/notes/nebula_app/input/2026-11-05-windows-pointer-auto-hide.md rename to architecture/notes/pebrel_app/input/2026-11-05-windows-pointer-auto-hide.md index e4ac9883a..d4cac4811 100644 --- a/architecture/notes/nebula_app/input/2026-11-05-windows-pointer-auto-hide.md +++ b/architecture/notes/pebrel_app/input/2026-11-05-windows-pointer-auto-hide.md @@ -65,7 +65,7 @@ Pebrel 应用层没有隐藏或恢复系统指针的代码,`load_cursor` 也 - Windows 目标(`x86_64-pc-windows-msvc`)上 `cargo clippy -p gpui_windows --tests` 在修改文件中无警告;交叉检查环境没有 MSVC 工具链,C/RC 构建步骤用空桩代替, 只验证 Rust 类型检查,不产生可运行二进制。 -- 同一交叉环境下 `cargo check -p nebula --bin pebrel --features gpui-shell +- 同一交叉环境下 `cargo check -p pebrel --bin pebrel --features gpui-shell --target x86_64-pc-windows-msvc --locked` 通过(已有警告不变)。 - macOS 本机缺少 Metal Toolchain,`gpui_macos` 着色器构建失败,未能完成 macOS 检查;`gpui_macos` 在本次 rev 区间内没有改动。 diff --git a/architecture/notes/nebula_app/luau/2026-11-02-bounded-luau-vms.md b/architecture/notes/pebrel_app/luau/2026-11-02-bounded-luau-vms.md similarity index 94% rename from architecture/notes/nebula_app/luau/2026-11-02-bounded-luau-vms.md rename to architecture/notes/pebrel_app/luau/2026-11-02-bounded-luau-vms.md index c320adf4d..63bfe3dd2 100644 --- a/architecture/notes/nebula_app/luau/2026-11-02-bounded-luau-vms.md +++ b/architecture/notes/pebrel_app/luau/2026-11-02-bounded-luau-vms.md @@ -12,9 +12,9 @@ Lua 5.4 instruction hooks and its package loader also do not exist in Luau. ## Evidence -- [VM limits](../../../../nebula_app/src/luau.rs) own the common interrupt boundary. -- [Plugin driver](../../../../nebula_app/src/plugins/lua.rs) owns managed coroutines and host requests. -- [Configuration modules](../../../../nebula_app/src/config/lua/modules.rs) own local module resolution. +- [VM limits](../../../../pebrel_app/src/luau.rs) own the common interrupt boundary. +- [Plugin driver](../../../../pebrel_app/src/plugins/lua.rs) owns managed coroutines and host requests. +- [Configuration modules](../../../../pebrel_app/src/config/lua/modules.rs) own local module resolution. - mlua 0.11.6 documents that Luau interrupt yields are ignored across non-yieldable metamethod/C-call boundaries, while `catch_rust_panics(false)` propagates Rust unwinds through protected calls. diff --git a/architecture/notes/nebula_app/mobile_connection/2026-09-26-process-owned-phone-settings.md b/architecture/notes/pebrel_app/mobile_connection/2026-09-26-process-owned-phone-settings.md similarity index 98% rename from architecture/notes/nebula_app/mobile_connection/2026-09-26-process-owned-phone-settings.md rename to architecture/notes/pebrel_app/mobile_connection/2026-09-26-process-owned-phone-settings.md index 3b3ab1722..81a678eea 100644 --- a/architecture/notes/nebula_app/mobile_connection/2026-09-26-process-owned-phone-settings.md +++ b/architecture/notes/pebrel_app/mobile_connection/2026-09-26-process-owned-phone-settings.md @@ -14,7 +14,7 @@ settings operation must not replace a newer user choice. ## Evidence -- `nebula_app/src/mobile_connection.rs` owns LAN/relay handles, serialized changes +- `pebrel_app/src/mobile_connection.rs` owns LAN/relay handles, serialized changes and the generation used to reject stale operations. - `mobile_connection/preferences.rs` stores one configuration credential, keeping preferences and route credentials in the same OS-store transaction. diff --git a/architecture/notes/nebula_app/mobile_connection/2026-09-28-lan-address-recovery.md b/architecture/notes/pebrel_app/mobile_connection/2026-09-28-lan-address-recovery.md similarity index 100% rename from architecture/notes/nebula_app/mobile_connection/2026-09-28-lan-address-recovery.md rename to architecture/notes/pebrel_app/mobile_connection/2026-09-28-lan-address-recovery.md diff --git a/architecture/notes/nebula_app/mobile_connection/2026-09-29-preserve-preferred-lan-interface.md b/architecture/notes/pebrel_app/mobile_connection/2026-09-29-preserve-preferred-lan-interface.md similarity index 100% rename from architecture/notes/nebula_app/mobile_connection/2026-09-29-preserve-preferred-lan-interface.md rename to architecture/notes/pebrel_app/mobile_connection/2026-09-29-preserve-preferred-lan-interface.md diff --git a/architecture/notes/nebula_app/mobile_connection/2026-10-07-isolate-lan-route-changes.md b/architecture/notes/pebrel_app/mobile_connection/2026-10-07-isolate-lan-route-changes.md similarity index 100% rename from architecture/notes/nebula_app/mobile_connection/2026-10-07-isolate-lan-route-changes.md rename to architecture/notes/pebrel_app/mobile_connection/2026-10-07-isolate-lan-route-changes.md diff --git a/architecture/notes/nebula_app/native_result_model/2026-10-21-diff-presentation.md b/architecture/notes/pebrel_app/native_result_model/2026-10-21-diff-presentation.md similarity index 100% rename from architecture/notes/nebula_app/native_result_model/2026-10-21-diff-presentation.md rename to architecture/notes/pebrel_app/native_result_model/2026-10-21-diff-presentation.md diff --git a/architecture/notes/nebula_app/nebula_history/2026-10-25-command-frequency.md b/architecture/notes/pebrel_app/nebula_history/2026-10-25-command-frequency.md similarity index 100% rename from architecture/notes/nebula_app/nebula_history/2026-10-25-command-frequency.md rename to architecture/notes/pebrel_app/nebula_history/2026-10-25-command-frequency.md diff --git a/architecture/notes/nebula_app/platform/2026-09-22-acrylic-controller.md b/architecture/notes/pebrel_app/platform/2026-09-22-acrylic-controller.md similarity index 96% rename from architecture/notes/nebula_app/platform/2026-09-22-acrylic-controller.md rename to architecture/notes/pebrel_app/platform/2026-09-22-acrylic-controller.md index 94a7125fc..4e1fb98d4 100644 --- a/architecture/notes/nebula_app/platform/2026-09-22-acrylic-controller.md +++ b/architecture/notes/pebrel_app/platform/2026-09-22-acrylic-controller.md @@ -35,7 +35,7 @@ Pebrel must retain its existing pixel-alpha opacity model and fast opacity slide ## Decision -- [acrylic.rs](../../../../nebula_app/src/platform/acrylic.rs) owns controller/target +- [acrylic.rs](../../../../pebrel_app/src/platform/acrylic.rs) owns controller/target pairs by GPUI WindowId on the UI thread. One optional compositor/queue is shared across material changes; there is no worker, frame callback or focus polling. - Clear Accent, blur-behind and system backdrop before attaching the lower @@ -81,11 +81,11 @@ The selected minimum may be widened only with evidence for that runtime version. ## Validation -- `cargo build -p nebula --locked` -- `cargo test -p nebula --bin pebrel platform::acrylic:: -- --include-ignored --test-threads=1` +- `cargo build -p pebrel --locked` +- `cargo test -p pebrel --bin pebrel platform::acrylic:: -- --include-ignored --test-threads=1` exercises missing-package failure, invalid HWND rollback, independent targets, repeated close/reattach, full-size roots and actual DispatcherQueue shutdown. -- `cargo test -p nebula --bin pebrel native_acrylic_gpui_material_switches_and_window_lifecycle -- --ignored --test-threads=1` +- `cargo test -p pebrel --bin pebrel native_acrylic_gpui_material_switches_and_window_lifecycle -- --ignored --test-threads=1` opens real GPUI windows, switches all five material modes, creates a second window under an unchanged mode, verifies opacity refreshes do not reattach, closes one window and quits with the other still alive. diff --git a/architecture/notes/nebula_app/platform/2026-09-22-acrylic-window-transitions.md b/architecture/notes/pebrel_app/platform/2026-09-22-acrylic-window-transitions.md similarity index 98% rename from architecture/notes/nebula_app/platform/2026-09-22-acrylic-window-transitions.md rename to architecture/notes/pebrel_app/platform/2026-09-22-acrylic-window-transitions.md index 718f87f8a..698a31cc7 100644 --- a/architecture/notes/nebula_app/platform/2026-09-22-acrylic-window-transitions.md +++ b/architecture/notes/pebrel_app/platform/2026-09-22-acrylic-window-transitions.md @@ -35,7 +35,7 @@ a more noticeable flash than its existing, brief blurred snapshot. ## Decision -- [transitions.rs](../../../../nebula_app/src/platform/acrylic/transitions.rs) +- [transitions.rs](../../../../pebrel_app/src/platform/acrylic/transitions.rs) belongs to the per-window Backdrop and installs a subclass on its owning UI thread. Pause only the system-backdrop brush before a meaningful system command or a maximize state change. The latter also covers ShowWindow calls. Minimize diff --git a/architecture/notes/nebula_app/platform/2026-09-23-local-color-capabilities.md b/architecture/notes/pebrel_app/platform/2026-09-23-local-color-capabilities.md similarity index 100% rename from architecture/notes/nebula_app/platform/2026-09-23-local-color-capabilities.md rename to architecture/notes/pebrel_app/platform/2026-09-23-local-color-capabilities.md diff --git a/architecture/notes/nebula_app/platform/2026-09-28-wsl-zsh-startup-integration.md b/architecture/notes/pebrel_app/platform/2026-09-28-wsl-zsh-startup-integration.md similarity index 99% rename from architecture/notes/nebula_app/platform/2026-09-28-wsl-zsh-startup-integration.md rename to architecture/notes/pebrel_app/platform/2026-09-28-wsl-zsh-startup-integration.md index ba16c7d76..7bdb895cd 100644 --- a/architecture/notes/nebula_app/platform/2026-09-28-wsl-zsh-startup-integration.md +++ b/architecture/notes/pebrel_app/platform/2026-09-28-wsl-zsh-startup-integration.md @@ -13,7 +13,7 @@ split/duplicate directory inheritance and prompt-path links stayed at the initial directory. `wsl.exe` must keep launching the guest login shell; adding `--exec` was the 1.1.0 regression, so no startup argument can be injected. This builds on the spawn-time distribution snapshot -(`architecture/notes/nebula_app/shell_detect/`), which names the guest a pane enters. +(`architecture/notes/pebrel_app/shell_detect/`), which names the guest a pane enters. ## Evidence diff --git a/architecture/notes/nebula_app/platform/2026-09-29-desktop-adapter-boundaries.md b/architecture/notes/pebrel_app/platform/2026-09-29-desktop-adapter-boundaries.md similarity index 100% rename from architecture/notes/nebula_app/platform/2026-09-29-desktop-adapter-boundaries.md rename to architecture/notes/pebrel_app/platform/2026-09-29-desktop-adapter-boundaries.md diff --git a/architecture/notes/nebula_app/platform/2026-10-04-owned-process-startup.md b/architecture/notes/pebrel_app/platform/2026-10-04-owned-process-startup.md similarity index 98% rename from architecture/notes/nebula_app/platform/2026-10-04-owned-process-startup.md rename to architecture/notes/pebrel_app/platform/2026-10-04-owned-process-startup.md index f2a687789..763e80977 100644 --- a/architecture/notes/nebula_app/platform/2026-10-04-owned-process-startup.md +++ b/architecture/notes/pebrel_app/platform/2026-10-04-owned-process-startup.md @@ -24,7 +24,7 @@ Assignment after a fast child's successful exit returned error 5 even though its captured output was intact. The production adapter treated that assignment error as a failed acquisition. -The regression in [`process.rs`](../../../../nebula_app/src/platform/process.rs) +The regression in [`process.rs`](../../../../pebrel_app/src/platform/process.rs) delays ownership attachment and requires the child to remain alive with no output. Only attachment may release execution; the test then checks its exit and output. diff --git a/architecture/notes/nebula_app/platform/2026-10-07-composited-client-theme-capture.md b/architecture/notes/pebrel_app/platform/2026-10-07-composited-client-theme-capture.md similarity index 100% rename from architecture/notes/nebula_app/platform/2026-10-07-composited-client-theme-capture.md rename to architecture/notes/pebrel_app/platform/2026-10-07-composited-client-theme-capture.md diff --git a/architecture/notes/nebula_app/platform/2026-10-13-bounded-wsl-guest-probes.md b/architecture/notes/pebrel_app/platform/2026-10-13-bounded-wsl-guest-probes.md similarity index 100% rename from architecture/notes/nebula_app/platform/2026-10-13-bounded-wsl-guest-probes.md rename to architecture/notes/pebrel_app/platform/2026-10-13-bounded-wsl-guest-probes.md diff --git a/architecture/notes/nebula_app/platform/2026-10-14-linux-desktop-lifecycle.md b/architecture/notes/pebrel_app/platform/2026-10-14-linux-desktop-lifecycle.md similarity index 100% rename from architecture/notes/nebula_app/platform/2026-10-14-linux-desktop-lifecycle.md rename to architecture/notes/pebrel_app/platform/2026-10-14-linux-desktop-lifecycle.md diff --git a/architecture/notes/nebula_app/platform/2026-10-23-wsl-startup-directory.md b/architecture/notes/pebrel_app/platform/2026-10-23-wsl-startup-directory.md similarity index 96% rename from architecture/notes/nebula_app/platform/2026-10-23-wsl-startup-directory.md rename to architecture/notes/pebrel_app/platform/2026-10-23-wsl-startup-directory.md index 78751170e..70d206ba9 100644 --- a/architecture/notes/nebula_app/platform/2026-10-23-wsl-startup-directory.md +++ b/architecture/notes/pebrel_app/platform/2026-10-23-wsl-startup-directory.md @@ -16,10 +16,10 @@ crosses CLI handover, workspace launch snapshots and the final PTY boundary. - [Microsoft's WSL command help](https://github.com/microsoft/WSL/blob/master/localization/strings/en-US/Resources.resw) defines `--cd ~` as the selected Linux user's home, `/...` as an absolute Linux path, and other arguments as absolute Windows paths. -- [Directory policy and regression tests](../../../../nebula_app/src/platform/launch_directory.rs) +- [Directory policy and regression tests](../../../../pebrel_app/src/platform/launch_directory.rs) cover inherited host directories, guest paths, configured paths and explicit WSL directory/command options. -- [Workspace launch tests](../../../../nebula_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs) +- [Workspace launch tests](../../../../pebrel_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs) exercise the snapshot-to-PTY boundary, including paths with spaces and relative host paths. diff --git a/architecture/notes/nebula_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md b/architecture/notes/pebrel_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md similarity index 100% rename from architecture/notes/nebula_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md rename to architecture/notes/pebrel_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md diff --git a/architecture/notes/nebula_app/platform/ai_session_identity/windows/2026-10-26-update-quiescence.md b/architecture/notes/pebrel_app/platform/ai_session_identity/windows/2026-10-26-update-quiescence.md similarity index 100% rename from architecture/notes/nebula_app/platform/ai_session_identity/windows/2026-10-26-update-quiescence.md rename to architecture/notes/pebrel_app/platform/ai_session_identity/windows/2026-10-26-update-quiescence.md diff --git a/architecture/notes/nebula_app/platform/elevation/2026-10-10-privileged-launch-handover.md b/architecture/notes/pebrel_app/platform/elevation/2026-10-10-privileged-launch-handover.md similarity index 100% rename from architecture/notes/nebula_app/platform/elevation/2026-10-10-privileged-launch-handover.md rename to architecture/notes/pebrel_app/platform/elevation/2026-10-10-privileged-launch-handover.md diff --git a/architecture/notes/nebula_app/platform/notifications/2026-09-20-actionable-notification-lifetime.md b/architecture/notes/pebrel_app/platform/notifications/2026-09-20-actionable-notification-lifetime.md similarity index 100% rename from architecture/notes/nebula_app/platform/notifications/2026-09-20-actionable-notification-lifetime.md rename to architecture/notes/pebrel_app/platform/notifications/2026-09-20-actionable-notification-lifetime.md diff --git a/architecture/notes/nebula_app/platform/startup/2026-10-10-login-launch-intent.md b/architecture/notes/pebrel_app/platform/startup/2026-10-10-login-launch-intent.md similarity index 93% rename from architecture/notes/nebula_app/platform/startup/2026-10-10-login-launch-intent.md rename to architecture/notes/pebrel_app/platform/startup/2026-10-10-login-launch-intent.md index 1f2d12f93..e45e23322 100644 --- a/architecture/notes/nebula_app/platform/startup/2026-10-10-login-launch-intent.md +++ b/architecture/notes/pebrel_app/platform/startup/2026-10-10-login-launch-intent.md @@ -12,13 +12,13 @@ after enabling silent startup could leave the application hidden in the tray. ## Evidence -- [`platform/startup.rs`](../../../../../nebula_app/src/platform/startup.rs) owns +- [`platform/startup.rs`](../../../../../pebrel_app/src/platform/startup.rs) owns the tray/capability guard and the Windows Settings login shortcut. -- [`startup/login.rs`](../../../../../nebula_app/src/platform/startup/login.rs) +- [`startup/login.rs`](../../../../../pebrel_app/src/platform/startup/login.rs) renders macOS LaunchAgent and Linux autostart entries. - [`installer.iss`](../../../../../scripts/installer.iss) separately owns the installer login, Start Menu, and desktop shortcuts. -- [`windowing/startup.rs`](../../../../../nebula_app/src/gpui_shell/workspace/windowing/startup.rs) +- [`windowing/startup.rs`](../../../../../pebrel_app/src/gpui_shell/workspace/windowing/startup.rs) selects the first session and its visibility. ## Decision diff --git a/architecture/notes/nebula_app/platform/update_installation/2026-10-21-privileged-storage.md b/architecture/notes/pebrel_app/platform/update_installation/2026-10-21-privileged-storage.md similarity index 100% rename from architecture/notes/nebula_app/platform/update_installation/2026-10-21-privileged-storage.md rename to architecture/notes/pebrel_app/platform/update_installation/2026-10-21-privileged-storage.md diff --git a/architecture/notes/nebula_app/platform/wsl_hooks/2026-09-20-wsl-hook-transport.md b/architecture/notes/pebrel_app/platform/wsl_hooks/2026-09-20-wsl-hook-transport.md similarity index 100% rename from architecture/notes/nebula_app/platform/wsl_hooks/2026-09-20-wsl-hook-transport.md rename to architecture/notes/pebrel_app/platform/wsl_hooks/2026-09-20-wsl-hook-transport.md diff --git a/architecture/notes/nebula_app/plugins/2026-09-28-bounded-command-foundation.md b/architecture/notes/pebrel_app/plugins/2026-09-28-bounded-command-foundation.md similarity index 100% rename from architecture/notes/nebula_app/plugins/2026-09-28-bounded-command-foundation.md rename to architecture/notes/pebrel_app/plugins/2026-09-28-bounded-command-foundation.md diff --git a/architecture/notes/nebula_app/plugins/2026-10-01-core-experience-boundary.md b/architecture/notes/pebrel_app/plugins/2026-10-01-core-experience-boundary.md similarity index 99% rename from architecture/notes/nebula_app/plugins/2026-10-01-core-experience-boundary.md rename to architecture/notes/pebrel_app/plugins/2026-10-01-core-experience-boundary.md index c6d6d7d03..2c9953172 100644 --- a/architecture/notes/nebula_app/plugins/2026-10-01-core-experience-boundary.md +++ b/architecture/notes/pebrel_app/plugins/2026-10-01-core-experience-boundary.md @@ -84,7 +84,7 @@ The Windows GPUI test target compiled and all 21 plugin tests passed, including They cover self-granted core methods, unused forbidden permissions, unknown methods, native/Lua dispatch rechecks, coroutine denial and recovery, and check/run entry behavior. The existing public CLI parser test also passed, including its assertion that plugin commands do not select GUI startup. -The actual GPUI product configuration passed `cargo check --locked -p nebula --bin pebrel +The actual GPUI product configuration passed `cargo check --locked -p pebrel --bin pebrel --features gpui-shell`. Focused rustfmt checks and `git diff --check` passed. The architecture checker with base `624a421a` reports the unrelated, already modified diff --git a/architecture/notes/nebula_app/plugins/2026-11-09-install-library-and-theme-grant.md b/architecture/notes/pebrel_app/plugins/2026-11-09-install-library-and-theme-grant.md similarity index 98% rename from architecture/notes/nebula_app/plugins/2026-11-09-install-library-and-theme-grant.md rename to architecture/notes/pebrel_app/plugins/2026-11-09-install-library-and-theme-grant.md index 910878874..37cfc4d4e 100644 --- a/architecture/notes/nebula_app/plugins/2026-11-09-install-library-and-theme-grant.md +++ b/architecture/notes/pebrel_app/plugins/2026-11-09-install-library-and-theme-grant.md @@ -10,7 +10,7 @@ Settings → Plugins. `theme_library` is the only grant. The user decided that plugins and themes connect in two ways: a plugin may ship theme packages, and a plugin may generate themes. The command foundation only ran a package directory the user named on each invocation; there was no installed state to hang a grant on, and -[BOUNDARIES §7](../../../../nebula_app/src/plugins/BOUNDARIES.md) recorded that no authorization +[BOUNDARIES §7](../../../../pebrel_app/src/plugins/BOUNDARIES.md) recorded that no authorization library existed. The user also asked for a Plugins menu in Settings. ## Evidence diff --git a/architecture/notes/nebula_app/prompt_suggestions/2026-10-29-native-prediction-ownership.md b/architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-native-prediction-ownership.md similarity index 100% rename from architecture/notes/nebula_app/prompt_suggestions/2026-10-29-native-prediction-ownership.md rename to architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-native-prediction-ownership.md diff --git a/architecture/notes/nebula_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md b/architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md similarity index 100% rename from architecture/notes/nebula_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md rename to architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md diff --git a/architecture/notes/nebula_app/prompt_suggestions/2026-10-29-upstream-prompt-boundary.md b/architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-upstream-prompt-boundary.md similarity index 100% rename from architecture/notes/nebula_app/prompt_suggestions/2026-10-29-upstream-prompt-boundary.md rename to architecture/notes/pebrel_app/prompt_suggestions/2026-10-29-upstream-prompt-boundary.md diff --git a/architecture/notes/nebula_app/renderer/2026-10-11-macos-legacy-build-boundaries.md b/architecture/notes/pebrel_app/renderer/2026-10-11-macos-legacy-build-boundaries.md similarity index 100% rename from architecture/notes/nebula_app/renderer/2026-10-11-macos-legacy-build-boundaries.md rename to architecture/notes/pebrel_app/renderer/2026-10-11-macos-legacy-build-boundaries.md diff --git a/architecture/notes/nebula_app/runtime_api/2026-09-28-mobile-color-grid.md b/architecture/notes/pebrel_app/runtime_api/2026-09-28-mobile-color-grid.md similarity index 100% rename from architecture/notes/nebula_app/runtime_api/2026-09-28-mobile-color-grid.md rename to architecture/notes/pebrel_app/runtime_api/2026-09-28-mobile-color-grid.md diff --git a/architecture/notes/nebula_app/runtime_api/2026-10-06-mobile-wheel-viewport.md b/architecture/notes/pebrel_app/runtime_api/2026-10-06-mobile-wheel-viewport.md similarity index 100% rename from architecture/notes/nebula_app/runtime_api/2026-10-06-mobile-wheel-viewport.md rename to architecture/notes/pebrel_app/runtime_api/2026-10-06-mobile-wheel-viewport.md diff --git a/architecture/notes/nebula_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md b/architecture/notes/pebrel_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md similarity index 98% rename from architecture/notes/nebula_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md rename to architecture/notes/pebrel_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md index 5c9c1240c..8f043804e 100644 --- a/architecture/notes/nebula_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md +++ b/architecture/notes/pebrel_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md @@ -13,7 +13,7 @@ Private administrator instances must continue to address only their own server. ## Evidence -[`runtime_api/server.rs`](../../../../nebula_app/src/runtime_api/server.rs) previously exported the current port/token to every PTY. +[`runtime_api/server.rs`](../../../../pebrel_app/src/runtime_api/server.rs) previously exported the current port/token to every PTY. `read_endpoint` preferred that inherited value over `runtime.port` indefinitely. Removing the environment value restored ordinary discovery in the report. The same explicit-address contract also protects private instances, as described diff --git a/architecture/notes/nebula_app/runtime_api/2026-10-29-consume-ambiguous-window-handover.md b/architecture/notes/pebrel_app/runtime_api/2026-10-29-consume-ambiguous-window-handover.md similarity index 100% rename from architecture/notes/nebula_app/runtime_api/2026-10-29-consume-ambiguous-window-handover.md rename to architecture/notes/pebrel_app/runtime_api/2026-10-29-consume-ambiguous-window-handover.md diff --git a/architecture/notes/nebula_app/scrollbar/2026-10-13-renderer-independent-scrollbar.md b/architecture/notes/pebrel_app/scrollbar/2026-10-13-renderer-independent-scrollbar.md similarity index 100% rename from architecture/notes/nebula_app/scrollbar/2026-10-13-renderer-independent-scrollbar.md rename to architecture/notes/pebrel_app/scrollbar/2026-10-13-renderer-independent-scrollbar.md diff --git a/architecture/notes/nebula_app/serial_session/2026-10-13-native-serial-transport.md b/architecture/notes/pebrel_app/serial_session/2026-10-13-native-serial-transport.md similarity index 98% rename from architecture/notes/nebula_app/serial_session/2026-10-13-native-serial-transport.md rename to architecture/notes/pebrel_app/serial_session/2026-10-13-native-serial-transport.md index ed06fb334..78c205507 100644 --- a/architecture/notes/nebula_app/serial_session/2026-10-13-native-serial-transport.md +++ b/architecture/notes/pebrel_app/serial_session/2026-10-13-native-serial-transport.md @@ -12,7 +12,7 @@ and `StreamProcessor::feed` drive the same terminal view. ## Evidence -- `nebula_app/src/ssh_session/lifecycle.rs` is the existing non-PTY transport. +- `pebrel_app/src/ssh_session/lifecycle.rs` is the existing non-PTY transport. - The existing native dependencies provide the small API surface required here; port enumeration and flow-control negotiation are outside this feature. - `libc` and `windows-sys` are already dependencies; only the `Win32_Devices_Communication` feature of `windows-sys` is added (no lock change). diff --git a/architecture/notes/nebula_app/session/2026-09-21-native-resume-identity.md b/architecture/notes/pebrel_app/session/2026-09-21-native-resume-identity.md similarity index 100% rename from architecture/notes/nebula_app/session/2026-09-21-native-resume-identity.md rename to architecture/notes/pebrel_app/session/2026-09-21-native-resume-identity.md diff --git a/architecture/notes/nebula_app/session/2026-09-21-windows-open-rollout-and-exit.md b/architecture/notes/pebrel_app/session/2026-09-21-windows-open-rollout-and-exit.md similarity index 93% rename from architecture/notes/nebula_app/session/2026-09-21-windows-open-rollout-and-exit.md rename to architecture/notes/pebrel_app/session/2026-09-21-windows-open-rollout-and-exit.md index a515889a1..ffc3b40d2 100644 --- a/architecture/notes/nebula_app/session/2026-09-21-windows-open-rollout-and-exit.md +++ b/architecture/notes/pebrel_app/session/2026-09-21-windows-open-rollout-and-exit.md @@ -16,16 +16,16 @@ made closing the window impossible when no usable Hook arrived. ## Evidence -- [The shared probe](../../../../nebula_app/src/platform/ai_session_identity.rs) +- [The shared probe](../../../../pebrel_app/src/platform/ai_session_identity.rs) verifies rollout filename and first-record metadata, rejects explicit subagents and refuses multiple main conversations. -- [The Windows adapter](../../../../nebula_app/src/platform/ai_session_identity/windows.rs) +- [The Windows adapter](../../../../pebrel_app/src/platform/ai_session_identity/windows.rs) reads per-process handle snapshots for the pane shell's verified descendants. -- [Command completion](../../../../nebula_app/src/gpui_shell/terminal/view/runtime.rs) +- [Command completion](../../../../pebrel_app/src/gpui_shell/terminal/view/runtime.rs) has a native CMD route with no exit status; missing-ID recovery previously required a nonzero status. -- [Window close](../../../../nebula_app/src/gpui_shell/workspace/closing.rs) and - [application quit](../../../../nebula_app/src/gpui_shell/workspace/windowing/shutdown.rs) +- [Window close](../../../../pebrel_app/src/gpui_shell/workspace/closing.rs) and + [application quit](../../../../pebrel_app/src/gpui_shell/workspace/windowing/shutdown.rs) previously aborted after identity discovery timed out. ## Decision diff --git a/architecture/notes/nebula_app/shell_detect/2026-09-28-wsl-spawn-distro-snapshot.md b/architecture/notes/pebrel_app/shell_detect/2026-09-28-wsl-spawn-distro-snapshot.md similarity index 100% rename from architecture/notes/nebula_app/shell_detect/2026-09-28-wsl-spawn-distro-snapshot.md rename to architecture/notes/pebrel_app/shell_detect/2026-09-28-wsl-spawn-distro-snapshot.md diff --git a/architecture/notes/nebula_app/ssh/2026-10-21-wsl-config-discovery.md b/architecture/notes/pebrel_app/ssh/2026-10-21-wsl-config-discovery.md similarity index 100% rename from architecture/notes/nebula_app/ssh/2026-10-21-wsl-config-discovery.md rename to architecture/notes/pebrel_app/ssh/2026-10-21-wsl-config-discovery.md diff --git a/architecture/notes/nebula_app/ssh_profiles/2026-09-28-independent-host-copies.md b/architecture/notes/pebrel_app/ssh_profiles/2026-09-28-independent-host-copies.md similarity index 100% rename from architecture/notes/nebula_app/ssh_profiles/2026-09-28-independent-host-copies.md rename to architecture/notes/pebrel_app/ssh_profiles/2026-09-28-independent-host-copies.md diff --git a/architecture/notes/nebula_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md b/architecture/notes/pebrel_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md similarity index 100% rename from architecture/notes/nebula_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md rename to architecture/notes/pebrel_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md diff --git a/architecture/notes/nebula_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md b/architecture/notes/pebrel_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md similarity index 100% rename from architecture/notes/nebula_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md rename to architecture/notes/pebrel_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-09-19-system-agent-authentication.md b/architecture/notes/pebrel_app/ssh_session/2026-09-19-system-agent-authentication.md similarity index 95% rename from architecture/notes/nebula_app/ssh_session/2026-09-19-system-agent-authentication.md rename to architecture/notes/pebrel_app/ssh_session/2026-09-19-system-agent-authentication.md index 7555b282f..da414e23d 100644 --- a/architecture/notes/nebula_app/ssh_session/2026-09-19-system-agent-authentication.md +++ b/architecture/notes/pebrel_app/ssh_session/2026-09-19-system-agent-authentication.md @@ -15,10 +15,10 @@ can leave the underlying SSH task waiting for a signature. ## Evidence -[The shared authentication plan](../../../../nebula_app/src/ssh_session.rs), -[native transport adapter](../../../../nebula_app/src/platform/ssh_agent.rs) and -[agent policy](../../../../nebula_app/src/ssh_session/agent.rs) define the current -boundaries. [Loopback and wire tests](../../../../nebula_app/src/ssh_session/agent/tests.rs) +[The shared authentication plan](../../../../pebrel_app/src/ssh_session.rs), +[native transport adapter](../../../../pebrel_app/src/platform/ssh_agent.rs) and +[agent policy](../../../../pebrel_app/src/ssh_session/agent.rs) define the current +boundaries. [Loopback and wire tests](../../../../pebrel_app/src/ssh_session/agent/tests.rs) exercise real SSH authentication with generated identities. The locked protocol dependency supplies public-key, certificate and RSA signing support. diff --git a/architecture/notes/nebula_app/ssh_session/2026-09-26-pane-local-forwarding.md b/architecture/notes/pebrel_app/ssh_session/2026-09-26-pane-local-forwarding.md similarity index 100% rename from architecture/notes/nebula_app/ssh_session/2026-09-26-pane-local-forwarding.md rename to architecture/notes/pebrel_app/ssh_session/2026-09-26-pane-local-forwarding.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-10-23-bounded-output-draining.md b/architecture/notes/pebrel_app/ssh_session/2026-10-23-bounded-output-draining.md similarity index 100% rename from architecture/notes/nebula_app/ssh_session/2026-10-23-bounded-output-draining.md rename to architecture/notes/pebrel_app/ssh_session/2026-10-23-bounded-output-draining.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-10-23-shell-duplex-backpressure.md b/architecture/notes/pebrel_app/ssh_session/2026-10-23-shell-duplex-backpressure.md similarity index 95% rename from architecture/notes/nebula_app/ssh_session/2026-10-23-shell-duplex-backpressure.md rename to architecture/notes/pebrel_app/ssh_session/2026-10-23-shell-duplex-backpressure.md index 80d684f16..9f542a878 100644 --- a/architecture/notes/nebula_app/ssh_session/2026-10-23-shell-duplex-backpressure.md +++ b/architecture/notes/pebrel_app/ssh_session/2026-10-23-shell-duplex-backpressure.md @@ -15,7 +15,7 @@ remote window credit. While waiting, the pump stopped consuming channel output. Russh delivers channel output through a bounded receive queue. When a shell echoes large input while the send window is exhausted, that queue can fill and prevent the connection from processing the window adjustment needed by the pending write. -The loopback regression in [lifecycle tests](../../../../nebula_app/src/ssh_session/lifecycle/tests.rs) +The loopback regression in [lifecycle tests](../../../../pebrel_app/src/ssh_session/lifecycle/tests.rs) uses a 4096-byte peer window, 512-byte packets and a large echoed input. With the old pump it hits the fixture's ten-second timeout; the duplex pump completes. This establishes a backpressure defect, not a universal explanation for typing @@ -23,7 +23,7 @@ latency or a claim about real-network throughput. ## Decision -[The shell lifecycle](../../../../nebula_app/src/ssh_session/lifecycle.rs) owns the +[The shell lifecycle](../../../../pebrel_app/src/ssh_session/lifecycle.rs) owns the channel reader and writer separately. The existing pump keeps at most one pending write future and polls it alongside output, synchronized-output deadlines and disconnect handling. Later input and resize requests wait for that write, retaining diff --git a/architecture/notes/nebula_app/ssh_session/2026-10-25-pane-session-recovery.md b/architecture/notes/pebrel_app/ssh_session/2026-10-25-pane-session-recovery.md similarity index 100% rename from architecture/notes/nebula_app/ssh_session/2026-10-25-pane-session-recovery.md rename to architecture/notes/pebrel_app/ssh_session/2026-10-25-pane-session-recovery.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-10-25-sftp-negotiation-ownership.md b/architecture/notes/pebrel_app/ssh_session/2026-10-25-sftp-negotiation-ownership.md similarity index 100% rename from architecture/notes/nebula_app/ssh_session/2026-10-25-sftp-negotiation-ownership.md rename to architecture/notes/pebrel_app/ssh_session/2026-10-25-sftp-negotiation-ownership.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-11-01-posix-startup-quoting.md b/architecture/notes/pebrel_app/ssh_session/2026-11-01-posix-startup-quoting.md similarity index 97% rename from architecture/notes/nebula_app/ssh_session/2026-11-01-posix-startup-quoting.md rename to architecture/notes/pebrel_app/ssh_session/2026-11-01-posix-startup-quoting.md index f7e2fb4c5..564612ac0 100644 --- a/architecture/notes/nebula_app/ssh_session/2026-11-01-posix-startup-quoting.md +++ b/architecture/notes/pebrel_app/ssh_session/2026-11-01-posix-startup-quoting.md @@ -20,7 +20,7 @@ previously bypassed this probe. ## Decision -[`resume::supported`](../../../../nebula_app/src/ssh_session/resume.rs) now runs a +[`resume::supported`](../../../../pebrel_app/src/ssh_session/resume.rs) now runs a probe through the same POSIX quoting helpers as startup. It verifies an exact sentinel containing quotes, a dollar sign, a backslash and a space after variable assignment and expansion. Probe support before preparing integration or executing diff --git a/architecture/notes/nebula_app/ssh_session/2026-11-02-tmux-agent-observations.md b/architecture/notes/pebrel_app/ssh_session/2026-11-02-tmux-agent-observations.md similarity index 97% rename from architecture/notes/nebula_app/ssh_session/2026-11-02-tmux-agent-observations.md rename to architecture/notes/pebrel_app/ssh_session/2026-11-02-tmux-agent-observations.md index 067b66b46..cca47146c 100644 --- a/architecture/notes/nebula_app/ssh_session/2026-11-02-tmux-agent-observations.md +++ b/architecture/notes/pebrel_app/ssh_session/2026-11-02-tmux-agent-observations.md @@ -26,9 +26,9 @@ sessions before the next observation. Reattachment refreshed the token without restarting the synthetic Agent process. This is transport evidence, not proof of a particular installed Codex version's Hook configuration or native UI behavior. -The existing [recovery monitor](../../../../nebula_app/src/ssh_session/resume.rs) +The existing [recovery monitor](../../../../pebrel_app/src/ssh_session/resume.rs) already resolves the client owning the SSH channel's nonce-scoped PTY. The -[shared lifecycle](../../../../nebula_app/src/ai_hook/lifecycle.rs) already owns +[shared lifecycle](../../../../pebrel_app/src/ai_hook/lifecycle.rs) already owns Hook arbitration and structurally constrained screen observations. ## Decision diff --git a/architecture/notes/nebula_app/ssh_session/2026-11-05-shared-keepalive-budget.md b/architecture/notes/pebrel_app/ssh_session/2026-11-05-shared-keepalive-budget.md similarity index 100% rename from architecture/notes/nebula_app/ssh_session/2026-11-05-shared-keepalive-budget.md rename to architecture/notes/pebrel_app/ssh_session/2026-11-05-shared-keepalive-budget.md diff --git a/architecture/notes/nebula_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md b/architecture/notes/pebrel_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md similarity index 90% rename from architecture/notes/nebula_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md rename to architecture/notes/pebrel_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md index b9da37951..c7d26435f 100644 --- a/architecture/notes/nebula_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md +++ b/architecture/notes/pebrel_app/ssh_session/2026-11-05-unobserved-multiplexer-evidence.md @@ -29,15 +29,15 @@ shells and `ssh` relay a guest Agent's identity. ## Evidence -- [Foreground checkpoint](../../../../nebula_app/src/ssh_session/resume.rs): +- [Foreground checkpoint](../../../../pebrel_app/src/ssh_session/resume.rs): `has_client` already proves from the remote process list that a multiplexer client owns this PTY, independently of whether its server can be queried. -- [Discovery script](../../../../nebula_app/src/ssh_session/resume/discover.sh) +- [Discovery script](../../../../pebrel_app/src/ssh_session/resume/discover.sh) filters processes by the channel's uid. -- [Outer evidence gates](../../../../nebula_app/src/gpui_shell/terminal/view/remote_activity.rs) - and [screen identity](../../../../nebula_app/src/gpui_shell/terminal/view/notifications.rs). +- [Outer evidence gates](../../../../pebrel_app/src/gpui_shell/terminal/view/remote_activity.rs) + and [screen identity](../../../../pebrel_app/src/gpui_shell/terminal/view/notifications.rs). - A restored Codex form is identified only when its model footer ends the - screen ([manifest](../../../../nebula_app/src/agent_detection/codex.toml)); a + screen ([manifest](../../../../pebrel_app/src/agent_detection/codex.toml)); a multiplexer status line on the last row hides that anchor. ## Decision @@ -82,10 +82,10 @@ shells and `ssh` relay a guest Agent's identity. ## Validation -[View tests](../../../../nebula_app/src/gpui_shell/terminal/view/activity_tests.rs) +[View tests](../../../../pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs) cover a launcher-started multiplexer client without observations (identity, redraw tolerance, release and re-identification) and a known target without a -current observation. [Notification tests](../../../../nebula_app/src/gpui_shell/terminal/view/notifications.rs) +current observation. [Notification tests](../../../../pebrel_app/src/gpui_shell/terminal/view/notifications.rs) cover the relay rule. ## Supersedes diff --git a/architecture/notes/nebula_app/ssh_sftp/2026-10-23-buffered-local-transfer-io.md b/architecture/notes/pebrel_app/ssh_sftp/2026-10-23-buffered-local-transfer-io.md similarity index 100% rename from architecture/notes/nebula_app/ssh_sftp/2026-10-23-buffered-local-transfer-io.md rename to architecture/notes/pebrel_app/ssh_sftp/2026-10-23-buffered-local-transfer-io.md diff --git a/architecture/notes/nebula_app/ssh_sftp/2026-10-24-pane-file-intake.md b/architecture/notes/pebrel_app/ssh_sftp/2026-10-24-pane-file-intake.md similarity index 100% rename from architecture/notes/nebula_app/ssh_sftp/2026-10-24-pane-file-intake.md rename to architecture/notes/pebrel_app/ssh_sftp/2026-10-24-pane-file-intake.md diff --git a/architecture/notes/nebula_app/ssh_sftp/2026-11-02-streamed-file-previews.md b/architecture/notes/pebrel_app/ssh_sftp/2026-11-02-streamed-file-previews.md similarity index 100% rename from architecture/notes/nebula_app/ssh_sftp/2026-11-02-streamed-file-previews.md rename to architecture/notes/pebrel_app/ssh_sftp/2026-11-02-streamed-file-previews.md diff --git a/architecture/notes/nebula_app/theme_library/2026-10-02-background-theme-publication.md b/architecture/notes/pebrel_app/theme_library/2026-10-02-background-theme-publication.md similarity index 100% rename from architecture/notes/nebula_app/theme_library/2026-10-02-background-theme-publication.md rename to architecture/notes/pebrel_app/theme_library/2026-10-02-background-theme-publication.md diff --git a/architecture/notes/nebula_app/theme_library/community/2026-11-08-on-demand-community-catalog.md b/architecture/notes/pebrel_app/theme_library/community/2026-11-08-on-demand-community-catalog.md similarity index 100% rename from architecture/notes/nebula_app/theme_library/community/2026-11-08-on-demand-community-catalog.md rename to architecture/notes/pebrel_app/theme_library/community/2026-11-08-on-demand-community-catalog.md diff --git a/architecture/notes/nebula_app/theme_library/package/2026-10-02-portable-resource-package.md b/architecture/notes/pebrel_app/theme_library/package/2026-10-02-portable-resource-package.md similarity index 100% rename from architecture/notes/nebula_app/theme_library/package/2026-10-02-portable-resource-package.md rename to architecture/notes/pebrel_app/theme_library/package/2026-10-02-portable-resource-package.md diff --git a/architecture/notes/nebula_app/update_check/2026-09-23-public-release-fallback.md b/architecture/notes/pebrel_app/update_check/2026-09-23-public-release-fallback.md similarity index 100% rename from architecture/notes/nebula_app/update_check/2026-09-23-public-release-fallback.md rename to architecture/notes/pebrel_app/update_check/2026-09-23-public-release-fallback.md diff --git a/architecture/notes/nebula_app/update_download/2026-09-23-macos-bundle-handoff.md b/architecture/notes/pebrel_app/update_download/2026-09-23-macos-bundle-handoff.md similarity index 100% rename from architecture/notes/nebula_app/update_download/2026-09-23-macos-bundle-handoff.md rename to architecture/notes/pebrel_app/update_download/2026-09-23-macos-bundle-handoff.md diff --git a/architecture/notes/nebula_app/update_download/2026-10-21-privileged-recovery.md b/architecture/notes/pebrel_app/update_download/2026-10-21-privileged-recovery.md similarity index 100% rename from architecture/notes/nebula_app/update_download/2026-10-21-privileged-recovery.md rename to architecture/notes/pebrel_app/update_download/2026-10-21-privileged-recovery.md diff --git a/architecture/notes/nebula_gpui/media_probe/2026-10-03-media-qualification-lifecycle.md b/architecture/notes/pebrel_gpui/media_probe/2026-10-03-media-qualification-lifecycle.md similarity index 100% rename from architecture/notes/nebula_gpui/media_probe/2026-10-03-media-qualification-lifecycle.md rename to architecture/notes/pebrel_gpui/media_probe/2026-10-03-media-qualification-lifecycle.md diff --git a/architecture/notes/nebula_hook/2026-09-23-bounded-forwarding-lifetime.md b/architecture/notes/pebrel_hook/2026-09-23-bounded-forwarding-lifetime.md similarity index 92% rename from architecture/notes/nebula_hook/2026-09-23-bounded-forwarding-lifetime.md rename to architecture/notes/pebrel_hook/2026-09-23-bounded-forwarding-lifetime.md index a3cf0266c..1e30a77ce 100644 --- a/architecture/notes/nebula_hook/2026-09-23-bounded-forwarding-lifetime.md +++ b/architecture/notes/pebrel_hook/2026-09-23-bounded-forwarding-lifetime.md @@ -13,11 +13,11 @@ The helper must finish even when its caller or notification receiver stalls. ## Evidence -`nebula_hook/src/main.rs` drained stdin through `read_to_end` and wrote the +`pebrel_hook/src/main.rs` drained stdin through `read_to_end` and wrote the notification through synchronous `write_all`. Neither had a deadline. A caller retaining stdin can prevent EOF; a receiver that stops reading can block a write. Both conditions are reproduced by actual child processes in -[`lifetime.rs`](../../../nebula_hook/tests/lifetime.rs). +[`lifetime.rs`](../../../pebrel_hook/tests/lifetime.rs). ## Decision @@ -48,7 +48,7 @@ the new deadline and may still require the user to close the owning CLI/restart. ## Validation -`cargo test --locked -p nebula_hook`: seven unit tests and five actual-process +`cargo test --locked -p pebrel_hook`: seven unit tests and five actual-process tests passed on Windows, covering retained stdin, a connected non-reading named pipe, normal completion, Cursor continuation and the original chained notifier. Non-Windows integration paths still require their native CI run. diff --git a/architecture/notes/nebula_settings/background_effects/2026-10-03-explicit-shader-authorization.md b/architecture/notes/pebrel_settings/background_effects/2026-10-03-explicit-shader-authorization.md similarity index 100% rename from architecture/notes/nebula_settings/background_effects/2026-10-03-explicit-shader-authorization.md rename to architecture/notes/pebrel_settings/background_effects/2026-10-03-explicit-shader-authorization.md diff --git a/architecture/notes/nebula_settings/background_media/2026-10-04-explicit-source-kind.md b/architecture/notes/pebrel_settings/background_media/2026-10-04-explicit-source-kind.md similarity index 100% rename from architecture/notes/nebula_settings/background_media/2026-10-04-explicit-source-kind.md rename to architecture/notes/pebrel_settings/background_media/2026-10-04-explicit-source-kind.md diff --git a/architecture/notes/nebula_settings/completion/2026-09-30-completion-modes.md b/architecture/notes/pebrel_settings/completion/2026-09-30-completion-modes.md similarity index 92% rename from architecture/notes/nebula_settings/completion/2026-09-30-completion-modes.md rename to architecture/notes/pebrel_settings/completion/2026-09-30-completion-modes.md index 48032b2f1..a163bd6d0 100644 --- a/architecture/notes/nebula_settings/completion/2026-09-30-completion-modes.md +++ b/architecture/notes/pebrel_settings/completion/2026-09-30-completion-modes.md @@ -13,12 +13,12 @@ The application has GPUI and explicitly selected legacy presentation adapters. ## Evidence -- `nebula_settings/src/lib.rs`: `CompletionStyleName` is the persisted mode. -- `nebula_app/src/display/state.rs`: `NebulaPaneState` owns completion candidates, +- `pebrel_settings/src/lib.rs`: `CompletionStyleName` is the persisted mode. +- `pebrel_app/src/display/state.rs`: `NebulaPaneState` owns completion candidates, selection and the lifetime of a manually requested list. -- `nebula_app/src/gpui_shell/terminal/view/completion.rs`: asynchronous results +- `pebrel_app/src/gpui_shell/terminal/view/completion.rs`: asynchronous results are checked against the query, environment and current mode before application. -- `nebula_app/src/input/keyboard.rs`: the legacy input adapter previously used +- `pebrel_app/src/input/keyboard.rs`: the legacy input adapter previously used the independent accept-key setting and always cycled on Tab in a popup. ## Decision diff --git a/architecture/notes/nebula_settings/config_defaults/2026-11-02-script-ui-defaults.md b/architecture/notes/pebrel_settings/config_defaults/2026-11-02-script-ui-defaults.md similarity index 91% rename from architecture/notes/nebula_settings/config_defaults/2026-11-02-script-ui-defaults.md rename to architecture/notes/pebrel_settings/config_defaults/2026-11-02-script-ui-defaults.md index 5bda57a6b..1dc68d856 100644 --- a/architecture/notes/nebula_settings/config_defaults/2026-11-02-script-ui-defaults.md +++ b/architecture/notes/pebrel_settings/config_defaults/2026-11-02-script-ui-defaults.md @@ -14,10 +14,10 @@ settings controls reading different values. ## Evidence -- [Defaults boundary](../../../../nebula_settings/src/config_defaults.rs) -- [Script field adapter](../../../../nebula_app/src/config/desktop.rs) -- [GPUI startup owner](../../../../nebula_app/src/gpui_shell/config/source.rs) -- [Settings and reset semantics](../../../../nebula_settings/src/lib.rs) +- [Defaults boundary](../../../../pebrel_settings/src/config_defaults.rs) +- [Script field adapter](../../../../pebrel_app/src/config/desktop.rs) +- [GPUI startup owner](../../../../pebrel_app/src/gpui_shell/config/source.rs) +- [Settings and reset semantics](../../../../pebrel_settings/src/lib.rs) - [User configuration contract](../../../../docs/lua-configuration.md) ## Decision diff --git a/architecture/notes/nebula_settings/cursor_motion/2026-09-25-opt-in-cursor-motion.md b/architecture/notes/pebrel_settings/cursor_motion/2026-09-25-opt-in-cursor-motion.md similarity index 100% rename from architecture/notes/nebula_settings/cursor_motion/2026-09-25-opt-in-cursor-motion.md rename to architecture/notes/pebrel_settings/cursor_motion/2026-09-25-opt-in-cursor-motion.md diff --git a/architecture/notes/nebula_settings/environment/2026-09-30-inherited-environment-choice.md b/architecture/notes/pebrel_settings/environment/2026-09-30-inherited-environment-choice.md similarity index 97% rename from architecture/notes/nebula_settings/environment/2026-09-30-inherited-environment-choice.md rename to architecture/notes/pebrel_settings/environment/2026-09-30-inherited-environment-choice.md index a652b5a37..6dadac5b6 100644 --- a/architecture/notes/nebula_settings/environment/2026-09-30-inherited-environment-choice.md +++ b/architecture/notes/pebrel_settings/environment/2026-09-30-inherited-environment-choice.md @@ -14,7 +14,7 @@ and which came from an older registry snapshot. ## Evidence -`nebula_terminal/src/tty/windows/environment.rs` removes registered keys from the +`pebrel_terminal/src/tty/windows/environment.rs` removes registered keys from the inherited snapshot before applying current machine/user values. Its deletion and expansion tests depend on that rule. Issue #103 supplies the concrete case of prepending a directory to PATH in cmd before launching Pebrel. diff --git a/architecture/notes/nebula_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md b/architecture/notes/pebrel_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md similarity index 92% rename from architecture/notes/nebula_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md rename to architecture/notes/pebrel_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md index b8af7f441..5adcfa550 100644 --- a/architecture/notes/nebula_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md +++ b/architecture/notes/pebrel_settings/prompt_suggestions/2026-10-29-independent-prediction-settings.md @@ -6,7 +6,7 @@ Implemented settings contract; native UI integration awaits product compilation. Native adapter availability is independent of this UI. Subsequent UI integration and Linux acceptance are recorded in the -[resident integration decision](../../nebula_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md). +[resident integration decision](../../pebrel_app/prompt_suggestions/2026-10-29-native-runtime-predictions.md). ## Context @@ -16,8 +16,8 @@ preferences do not authorize paid next-message prediction requests. ## Evidence -- `nebula_settings/src/prompt_suggestions.rs` owns opt-in, validation and key updates. -- `nebula_app/src/gpui_shell/settings_pane/providers/predictions.rs` edits a separate +- `pebrel_settings/src/prompt_suggestions.rs` owns opt-in, validation and key updates. +- `pebrel_app/src/gpui_shell/settings_pane/providers/predictions.rs` edits a separate draft and reuses existing provider metadata without storing another credential. - Provider compatibility is evaluated by the production prediction client's `supported` function; the picker also requires configured endpoint/key metadata. diff --git a/architecture/notes/nebula_settings/scrolling/2026-10-03-scrollbar-visibility.md b/architecture/notes/pebrel_settings/scrolling/2026-10-03-scrollbar-visibility.md similarity index 100% rename from architecture/notes/nebula_settings/scrolling/2026-10-03-scrollbar-visibility.md rename to architecture/notes/pebrel_settings/scrolling/2026-10-03-scrollbar-visibility.md diff --git a/architecture/notes/nebula_settings/terminal_effects/2026-10-06-ordered-source-chain.md b/architecture/notes/pebrel_settings/terminal_effects/2026-10-06-ordered-source-chain.md similarity index 97% rename from architecture/notes/nebula_settings/terminal_effects/2026-10-06-ordered-source-chain.md rename to architecture/notes/pebrel_settings/terminal_effects/2026-10-06-ordered-source-chain.md index f84bbf304..3b9a4bb3f 100644 --- a/architecture/notes/nebula_settings/terminal_effects/2026-10-06-ordered-source-chain.md +++ b/architecture/notes/pebrel_settings/terminal_effects/2026-10-06-ordered-source-chain.md @@ -14,7 +14,7 @@ in `terminal_effect_path`; selected sources must not implicitly start execution. ## Evidence -[`RawSettings`](../../../../nebula_settings/src/lib.rs) trims values and treats an +[`RawSettings`](../../../../pebrel_settings/src/lib.rs) trims values and treats an empty value as absent. The terminal compiler produces an ordered list of native passes, while the renderer limits a chain to eight passes and two intermediate textures. Each file can declare more than one fragment entry point. @@ -97,7 +97,7 @@ check frame integer flags/cursor history and the shader search aliases. ## Supersedes Extends the single-source persistence described in -[`terminal WGSL effects`](../../nebula_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md). +[`terminal WGSL effects`](../../pebrel_app/gpui_shell/terminal/effects/2026-10-06-wgsl-terminal-effects.md). The frame ABI, ownership and background independence are unchanged. ## Revisit when diff --git a/architecture/notes/nebula_settings/themes/2026-10-01-light-theme-identities.md b/architecture/notes/pebrel_settings/themes/2026-10-01-light-theme-identities.md similarity index 97% rename from architecture/notes/nebula_settings/themes/2026-10-01-light-theme-identities.md rename to architecture/notes/pebrel_settings/themes/2026-10-01-light-theme-identities.md index ff251d2b8..f9d1f2951 100644 --- a/architecture/notes/nebula_settings/themes/2026-10-01-light-theme-identities.md +++ b/architecture/notes/pebrel_settings/themes/2026-10-01-light-theme-identities.md @@ -12,7 +12,7 @@ and exported custom theme documents already contain Paper and GlassLight names. ## Evidence -- `nebula_settings/src/themes.rs` owns selectable built-ins and their palettes. +- `pebrel_settings/src/themes.rs` owns selectable built-ins and their palettes. - `ThemeName::from_prompt_name` reads saved names; `prompt_name` emits them. - `display/ui/theme.rs::for_system_appearance` is shared by the shell adapters. - Custom theme documents store concrete colors, independently of built-in defaults. diff --git a/architecture/notes/nebula_terminal/event_loop/2026-10-13-parser-input-sync-accounting.md b/architecture/notes/pebrel_terminal/event_loop/2026-10-13-parser-input-sync-accounting.md similarity index 100% rename from architecture/notes/nebula_terminal/event_loop/2026-10-13-parser-input-sync-accounting.md rename to architecture/notes/pebrel_terminal/event_loop/2026-10-13-parser-input-sync-accounting.md diff --git a/architecture/notes/nebula_terminal/event_loop/2026-10-23-network-synchronized-frames.md b/architecture/notes/pebrel_terminal/event_loop/2026-10-23-network-synchronized-frames.md similarity index 98% rename from architecture/notes/nebula_terminal/event_loop/2026-10-23-network-synchronized-frames.md rename to architecture/notes/pebrel_terminal/event_loop/2026-10-23-network-synchronized-frames.md index 24c1e17e6..29d52cb35 100644 --- a/architecture/notes/nebula_terminal/event_loop/2026-10-23-network-synchronized-frames.md +++ b/architecture/notes/pebrel_terminal/event_loop/2026-10-23-network-synchronized-frames.md @@ -19,7 +19,7 @@ synchronized update containing synthetic early history, waits 300 ms and sends the final screen and end marker. Before the end marker, the grid already contains `EARLY HISTORY` instead of `COMPLETE`. No user transcript or credentials are used. See `ssh_delayed_synchronized_redraw_keeps_the_complete_screen_visible` in -`nebula_app/src/ssh_session/lifecycle/tests.rs`. +`pebrel_app/src/ssh_session/lifecycle/tests.rs`. An isolated remote multiplexer 3.4 fixture also emits redraws without outer synchronization markers. The watchdog change does not make those redraws atomic, diff --git a/architecture/notes/nebula_terminal/grid/2026-10-24-grid-content-ownership.md b/architecture/notes/pebrel_terminal/grid/2026-10-24-grid-content-ownership.md similarity index 100% rename from architecture/notes/nebula_terminal/grid/2026-10-24-grid-content-ownership.md rename to architecture/notes/pebrel_terminal/grid/2026-10-24-grid-content-ownership.md diff --git a/architecture/notes/nebula_terminal/grid/2026-10-24-native-markers-and-image-guards.md b/architecture/notes/pebrel_terminal/grid/2026-10-24-native-markers-and-image-guards.md similarity index 100% rename from architecture/notes/nebula_terminal/grid/2026-10-24-native-markers-and-image-guards.md rename to architecture/notes/pebrel_terminal/grid/2026-10-24-native-markers-and-image-guards.md diff --git a/architecture/notes/nebula_terminal/inline_content/2026-10-18-native-result-surfaces.md b/architecture/notes/pebrel_terminal/inline_content/2026-10-18-native-result-surfaces.md similarity index 100% rename from architecture/notes/nebula_terminal/inline_content/2026-10-18-native-result-surfaces.md rename to architecture/notes/pebrel_terminal/inline_content/2026-10-18-native-result-surfaces.md diff --git a/architecture/notes/nebula_terminal/inline_content/2026-10-19-command-output-lenses.md b/architecture/notes/pebrel_terminal/inline_content/2026-10-19-command-output-lenses.md similarity index 100% rename from architecture/notes/nebula_terminal/inline_content/2026-10-19-command-output-lenses.md rename to architecture/notes/pebrel_terminal/inline_content/2026-10-19-command-output-lenses.md diff --git a/architecture/notes/nebula_terminal/inline_content/2026-10-19-unified-result-scroll.md b/architecture/notes/pebrel_terminal/inline_content/2026-10-19-unified-result-scroll.md similarity index 100% rename from architecture/notes/nebula_terminal/inline_content/2026-10-19-unified-result-scroll.md rename to architecture/notes/pebrel_terminal/inline_content/2026-10-19-unified-result-scroll.md diff --git a/architecture/notes/nebula_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md b/architecture/notes/pebrel_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md similarity index 98% rename from architecture/notes/nebula_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md rename to architecture/notes/pebrel_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md index a179c1383..2ee30372d 100644 --- a/architecture/notes/nebula_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md +++ b/architecture/notes/pebrel_terminal/inline_content/2026-10-20-directory-results-and-bounded-tables.md @@ -3,7 +3,7 @@ ## Status The ordinary directory-table presentation is superseded by -`architecture/notes/nebula_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md`. +`architecture/notes/pebrel_app/gpui_shell/terminal/native_results/2026-10-20-directory-folding.md`. The JSON materialization limits and source-validation decisions remain applicable. Implemented locally. Parser, ordinary-command and native viewport regressions diff --git a/architecture/notes/nebula_terminal/inline_content/2026-10-21-bounded-output-store.md b/architecture/notes/pebrel_terminal/inline_content/2026-10-21-bounded-output-store.md similarity index 100% rename from architecture/notes/nebula_terminal/inline_content/2026-10-21-bounded-output-store.md rename to architecture/notes/pebrel_terminal/inline_content/2026-10-21-bounded-output-store.md diff --git a/architecture/notes/nebula_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md b/architecture/notes/pebrel_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md similarity index 97% rename from architecture/notes/nebula_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md rename to architecture/notes/pebrel_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md index 863bae9c7..b5356b27f 100644 --- a/architecture/notes/nebula_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md +++ b/architecture/notes/pebrel_terminal/kitty_graphics/2026-10-25-kitty-graphics-placements.md @@ -45,7 +45,7 @@ pane, 14x36 device pixels per cell (8.00x20.57 logical, scale 1.75). ## Decision -`nebula_terminal::kitty_graphics::KittyGraphics` parses the APC commands +`pebrel_terminal::kitty_graphics::KittyGraphics` parses the APC commands (`a=t` transfer with chunked base64, `a=p` placement, `a=d` erase, `a=q` probe, `a=T` transfer-and-place) and translates each dialect into the existing grid model: @@ -102,10 +102,10 @@ pane that has shown images retains one bitmap per live placement. ## Validation -`cargo test -p nebula_terminal` passes 353 tests with two pre-existing +`cargo test -p pebrel_terminal` passes 353 tests with two pre-existing PowerShell-proxy failures (the host has no `pwsh`), including the new coverage for chunk reassembly, placement unions, erase plus id reuse, probe answers and -the `CSI 16 t` reply. `cargo test -p nebula --bin pebrel --features gpui-shell` +the `CSI 16 t` reply. `cargo test -p pebrel --bin pebrel --features gpui-shell` passes the image-store tests, including raw-pixel repacking for both channel counts. `scripts/check_architecture.py` reports no errors. diff --git a/architecture/notes/nebula_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md b/architecture/notes/pebrel_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md similarity index 98% rename from architecture/notes/nebula_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md rename to architecture/notes/pebrel_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md index af5cb28d2..300c1b3ad 100644 --- a/architecture/notes/nebula_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md +++ b/architecture/notes/pebrel_terminal/kitty_graphics/2026-10-30-bounded-transfer-store.md @@ -20,7 +20,7 @@ an already stored ID must not create another independent partial transfer. ## Decision -[`KittyGraphics`](../../../../nebula_terminal/src/kitty_graphics.rs) owns one active +[`KittyGraphics`](../../../../pebrel_terminal/src/kitty_graphics.rs) owns one active partial transfer and a FIFO-bounded named data store: at most 16 completed images and 128 MiB of raw payload bytes. Incomplete base64 is limited to 24 MiB and to the declared pixel count's encoded size, whichever is smaller. Append limits are diff --git a/architecture/notes/nebula_terminal/kitty_graphics/2026-10-30-ordered-placements.md b/architecture/notes/pebrel_terminal/kitty_graphics/2026-10-30-ordered-placements.md similarity index 100% rename from architecture/notes/nebula_terminal/kitty_graphics/2026-10-30-ordered-placements.md rename to architecture/notes/pebrel_terminal/kitty_graphics/2026-10-30-ordered-placements.md diff --git a/architecture/notes/nebula_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md b/architecture/notes/pebrel_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md similarity index 97% rename from architecture/notes/nebula_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md rename to architecture/notes/pebrel_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md index a949a569f..168c0442d 100644 --- a/architecture/notes/nebula_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md +++ b/architecture/notes/pebrel_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md @@ -18,9 +18,9 @@ notification ownership. Both local PTYs and built-in SSH already use the same defines replacement records, hierarchical ids, limits and prompt/reset lifetime. - [Motivation](https://mitchellh.com/writing/program-status-osc7501) describes experimental integrations; this does not establish support in every released CLI. -- `nebula_terminal/src/program_status.rs` owns validation and the record set. -- `nebula_terminal/tests/osc7501.rs` exercises the actual VT/OSC ingestion path. -- `nebula_app/src/ai_hook/lifecycle.rs` already owns accepted Hook facts. A generic +- `pebrel_terminal/src/program_status.rs` owns validation and the record set. +- `pebrel_terminal/tests/osc7501.rs` exercises the actual VT/OSC ingestion path. +- `pebrel_app/src/ai_hook/lifecycle.rs` already owns accepted Hook facts. A generic program report carries neither authenticated Hook ownership nor a resumable Agent session id. @@ -120,7 +120,7 @@ Hook arrival orders, Hook/screen fallback after clear/reset, pane failure, result retention/acknowledgement, no extra notifications, taskbar clearing and mailbox flooding. -On Linux ARM64, `cargo test -p nebula_terminal --locked` passed 345 tests with two +On Linux ARM64, `cargo test -p pebrel_terminal --locked` passed 345 tests with two pre-existing ignored tests; the scoped GPUI/Runtime API run passed 80 tests. The real GPUI product check (including tests), architecture check against main, format check, 55 governance tests, 99 settings tests, 24 i18n contract tests (one diff --git a/architecture/notes/nebula_terminal/reading/2026-10-03-bounded-command-output.md b/architecture/notes/pebrel_terminal/reading/2026-10-03-bounded-command-output.md similarity index 96% rename from architecture/notes/nebula_terminal/reading/2026-10-03-bounded-command-output.md rename to architecture/notes/pebrel_terminal/reading/2026-10-03-bounded-command-output.md index 2f044d489..8aa1fbf2a 100644 --- a/architecture/notes/nebula_terminal/reading/2026-10-03-bounded-command-output.md +++ b/architecture/notes/pebrel_terminal/reading/2026-10-03-bounded-command-output.md @@ -12,7 +12,7 @@ ## Evidence -- `nebula_terminal/src/event_loop.rs::StreamProcessor::feed` 已按parser slice处理OSC;新增记录沿用同一wire order,不另解析UI标题。 +- `pebrel_terminal/src/event_loop.rs::StreamProcessor::feed` 已按parser slice处理OSC;新增记录沿用同一wire order,不另解析UI标题。 - `term/reading.rs` 提供epoch+半开范围、分块读取、源列映射及完成命令查询。 - `term/reading/guard.rs` 比较D时live尾的精确字符、宽字符/换行flags及组合字符,不保存搜索映射或超链接对象。 - `term/reading/tests.rs` 覆盖所有标记切块位置、CJK/组合字符、软折行、覆盖后滚入历史、重排/清历史/切屏、十万行及极宽行。 @@ -48,13 +48,13 @@ 初次实现的GNU Rust1.97.1本地隔离构建: -- `cargo test --offline --locked -p nebula_terminal --lib`:300通过、0失败、2手动样本忽略。 +- `cargo test --offline --locked -p pebrel_terminal --lib`:300通过、0失败、2手动样本忽略。 - `... term::reading::tests -- --ignored --nocapture --test-threads=1`:2通过。 - 本机dev样本,256-cell读取2000次:100行历史16.04ms、10万行历史12.71ms、10万列长行9.26ms。 - 32768-cell守卫捕获328.7µs;完整检查1000次290.17ms,观测最大1.01ms。 - 200列×10万行样本输出1.4MB,4883次查询,总483.40ms,单次查询观测最大771.1µs,长期metadata39401B。 -迁入当前主线后,`cargo test --offline --locked -p nebula_terminal term::reading::` 的23项读取测试通过,两个手动成本样本保持默认忽略。完整原生回归由对应提交的CI执行。 +迁入当前主线后,`cargo test --offline --locked -p pebrel_terminal term::reading::` 的23项读取测试通过,两个手动成本样本保持默认忽略。完整原生回归由对应提交的CI执行。 以上是本机函数级样本,不是输入延迟、GPU帧率或跨机器保证。GUI输入隔离、剪贴板及焦点测试由对应UI改动承担。 diff --git a/architecture/notes/nebula_terminal/render/2026-10-13-faint-color-ownership.md b/architecture/notes/pebrel_terminal/render/2026-10-13-faint-color-ownership.md similarity index 100% rename from architecture/notes/nebula_terminal/render/2026-10-13-faint-color-ownership.md rename to architecture/notes/pebrel_terminal/render/2026-10-13-faint-color-ownership.md diff --git a/architecture/notes/nebula_terminal/term/2026-09-20-native-prompt-input-boundaries.md b/architecture/notes/pebrel_terminal/term/2026-09-20-native-prompt-input-boundaries.md similarity index 100% rename from architecture/notes/nebula_terminal/term/2026-09-20-native-prompt-input-boundaries.md rename to architecture/notes/pebrel_terminal/term/2026-09-20-native-prompt-input-boundaries.md diff --git a/architecture/notes/nebula_terminal/term/2026-09-26-silent-color-report-subscriptions.md b/architecture/notes/pebrel_terminal/term/2026-09-26-silent-color-report-subscriptions.md similarity index 100% rename from architecture/notes/nebula_terminal/term/2026-09-26-silent-color-report-subscriptions.md rename to architecture/notes/pebrel_terminal/term/2026-09-26-silent-color-report-subscriptions.md diff --git a/architecture/notes/nebula_terminal/term/2026-09-27-grid-owned-inline-images.md b/architecture/notes/pebrel_terminal/term/2026-09-27-grid-owned-inline-images.md similarity index 98% rename from architecture/notes/nebula_terminal/term/2026-09-27-grid-owned-inline-images.md rename to architecture/notes/pebrel_terminal/term/2026-09-27-grid-owned-inline-images.md index b0374b8d3..ddbc7abeb 100644 --- a/architecture/notes/nebula_terminal/term/2026-09-27-grid-owned-inline-images.md +++ b/architecture/notes/pebrel_terminal/term/2026-09-27-grid-owned-inline-images.md @@ -21,16 +21,16 @@ already been removed. ## Evidence -- [`event_loop.rs`](../../../../nebula_terminal/src/event_loop.rs) observes OSC +- [`event_loop.rs`](../../../../pebrel_terminal/src/event_loop.rs) observes OSC sequences in addition to VTE parsing; DEC 2026 can defer VTE cursor updates. -- [`inline_image.rs`](../../../../nebula_terminal/src/inline_image.rs) calculates +- [`inline_image.rs`](../../../../pebrel_terminal/src/inline_image.rs) calculates requested cell, pixel and percentage sizes against the available viewport. - The OSC 1337 specification defines those units and aspect-ratio behavior. Its reference image insertion helper (source links are retained in the PR evidence) clamps both dimensions at the right margin, advances between image rows, and leaves the final newline to the application. -- [`tests/inline_image.rs`](../../../../nebula_terminal/tests/inline_image.rs) +- [`tests/inline_image.rs`](../../../../pebrel_terminal/tests/inline_image.rs) exercises the OMP save/move/image/restore sequence, every stream split point, timeout replay, erasure, alternate screens, resizing and title isolation. diff --git a/architecture/notes/nebula_terminal/term/2026-09-28-no-image-grid-fast-path.md b/architecture/notes/pebrel_terminal/term/2026-09-28-no-image-grid-fast-path.md similarity index 100% rename from architecture/notes/nebula_terminal/term/2026-09-28-no-image-grid-fast-path.md rename to architecture/notes/pebrel_terminal/term/2026-09-28-no-image-grid-fast-path.md diff --git a/architecture/notes/nebula_terminal/term/2026-10-03-emoji-input-clusters.md b/architecture/notes/pebrel_terminal/term/2026-10-03-emoji-input-clusters.md similarity index 100% rename from architecture/notes/nebula_terminal/term/2026-10-03-emoji-input-clusters.md rename to architecture/notes/pebrel_terminal/term/2026-10-03-emoji-input-clusters.md diff --git a/architecture/notes/nebula_terminal/term/2026-10-05-emoji-input-state-cost.md b/architecture/notes/pebrel_terminal/term/2026-10-05-emoji-input-state-cost.md similarity index 100% rename from architecture/notes/nebula_terminal/term/2026-10-05-emoji-input-state-cost.md rename to architecture/notes/pebrel_terminal/term/2026-10-05-emoji-input-state-cost.md diff --git a/architecture/notes/nebula_terminal/tty/2026-10-31-native-shell-pointer.md b/architecture/notes/pebrel_terminal/tty/2026-10-31-native-shell-pointer.md similarity index 100% rename from architecture/notes/nebula_terminal/tty/2026-10-31-native-shell-pointer.md rename to architecture/notes/pebrel_terminal/tty/2026-10-31-native-shell-pointer.md diff --git a/architecture/notes/nebula_terminal/tty/2026-10-31-powershell-native-pointer.md b/architecture/notes/pebrel_terminal/tty/2026-10-31-powershell-native-pointer.md similarity index 100% rename from architecture/notes/nebula_terminal/tty/2026-10-31-powershell-native-pointer.md rename to architecture/notes/pebrel_terminal/tty/2026-10-31-powershell-native-pointer.md diff --git a/architecture/notes/nebula_terminal/tty/2026-11-01-legacy-powershell-pointer.md b/architecture/notes/pebrel_terminal/tty/2026-11-01-legacy-powershell-pointer.md similarity index 97% rename from architecture/notes/nebula_terminal/tty/2026-11-01-legacy-powershell-pointer.md rename to architecture/notes/pebrel_terminal/tty/2026-11-01-legacy-powershell-pointer.md index 758b07258..72857834e 100644 --- a/architecture/notes/nebula_terminal/tty/2026-11-01-legacy-powershell-pointer.md +++ b/architecture/notes/pebrel_terminal/tty/2026-11-01-legacy-powershell-pointer.md @@ -50,7 +50,7 @@ module installation, persistence format or per-keystroke I/O is added. `scripts.tests.test_powershell_pointer` runs the actual 2.0 module when `NEBULA_TEST_PSREADLINE_LEGACY` names its manifest; an absent module is an explicit skip. It also checks the modern editor, races, ownership, redraw and re-source. -`nebula_terminal/tests/native_pointer.rs` checks the in-box Windows module's +`pebrel_terminal/tests/native_pointer.rs` checks the in-box Windows module's actual bindings. That Windows test has not been executed on this Linux host. ## Supersedes diff --git a/architecture/notes/nebula_terminal/tty/windows/2026-10-03-prompt-wrapper-ownership.md b/architecture/notes/pebrel_terminal/tty/windows/2026-10-03-prompt-wrapper-ownership.md similarity index 100% rename from architecture/notes/nebula_terminal/tty/windows/2026-10-03-prompt-wrapper-ownership.md rename to architecture/notes/pebrel_terminal/tty/windows/2026-10-03-prompt-wrapper-ownership.md diff --git a/architecture/notes/nebula_terminal/tty/windows/2026-10-07-restored-powershell-bootstrap.md b/architecture/notes/pebrel_terminal/tty/windows/2026-10-07-restored-powershell-bootstrap.md similarity index 100% rename from architecture/notes/nebula_terminal/tty/windows/2026-10-07-restored-powershell-bootstrap.md rename to architecture/notes/pebrel_terminal/tty/windows/2026-10-07-restored-powershell-bootstrap.md diff --git a/architecture/notes/nebula_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md b/architecture/notes/pebrel_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md similarity index 97% rename from architecture/notes/nebula_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md rename to architecture/notes/pebrel_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md index 4f895f32a..e3a57b9f3 100644 --- a/architecture/notes/nebula_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md +++ b/architecture/notes/pebrel_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md @@ -26,7 +26,7 @@ aborts a session by sending ten CAN bytes followed by ten backspaces. ## Decision -`nebula_terminal::zmodem::ZmodemSniffer` watches the raw output stream. It is +`pebrel_terminal::zmodem::ZmodemSniffer` watches the raw output stream. It is an allocation-free state machine that persists across reads. It matches two or more `*`, an optional ZDLE, `B`, and fourteen hex digits. The CRC must be valid and the frame type must be ZRQINIT (`00`) or ZRINIT (`01`). The optional ZDLE @@ -69,7 +69,7 @@ guarantee. ## Validation -`nebula_terminal/src/zmodem.rs` unit tests cover every chunk split, byte-at-a-time +`pebrel_terminal/src/zmodem.rs` unit tests cover every chunk split, byte-at-a-time input, headers with and without ZDLE, bad CRC, truncation, wrong frame types and lookalike text. `event_loop/zmodem_tests.rs` drives the real `StreamProcessor` and checks that exactly one abort is written and the header stays on screen. A diff --git a/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md b/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md index 484b4c31a..5cbe257ed 100644 --- a/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md +++ b/architecture/notes/scripts/architecture/2026-11-09-moved-source-roots.md @@ -8,7 +8,7 @@ Accepted with the maintainer-requested Pebrel naming migration, 2026-11-09. The maintainer asked for the remaining `nebula` names, including crate source directories such as `nebula_app`, to become `pebrel`. The -[completion package identity note](../../nebula-completions/2026-09-30-package-identity.md) +[completion package identity note](../../pebrel-completions/2026-09-30-package-identity.md) already recorded that the line-budget checker rejects removed source roots, so a physical directory rename needed a reviewed policy change first. diff --git a/architecture/notes/scripts/check_prohibited_names/2026-11-08-allow-terminal-multiplexer-name.md b/architecture/notes/scripts/check_prohibited_names/2026-11-08-allow-terminal-multiplexer-name.md index c75310e77..a3e8ecee8 100644 --- a/architecture/notes/scripts/check_prohibited_names/2026-11-08-allow-terminal-multiplexer-name.md +++ b/architecture/notes/scripts/check_prohibited_names/2026-11-08-allow-terminal-multiplexer-name.md @@ -19,7 +19,7 @@ The 2.4.0 follow-up chain (#882, folding #883–#887) fails `architecture-contra on functional code and one commit message: - the remote hook bridge reads `$TMUX` and sends a `tmux=` route field - (`nebula_app/res/hooks/remote_tmux.py`, `remote_bridge.py`, `ai_hook/protocol.rs`); + (`pebrel_app/res/hooks/remote_tmux.py`, `remote_bridge.py`, `ai_hook/protocol.rs`); - the Android SSH integration test runs real `tmux` commands; - a merge commit message names the IME fix "in tmux". diff --git a/architecture/notes/scripts/ci/2026-09-25-shared-native-pr-cache.md b/architecture/notes/scripts/ci/2026-09-25-shared-native-pr-cache.md index 62f3415f4..81c9ccae1 100644 --- a/architecture/notes/scripts/ci/2026-09-25-shared-native-pr-cache.md +++ b/architecture/notes/scripts/ci/2026-09-25-shared-native-pr-cache.md @@ -110,7 +110,7 @@ doctests/features and failure propagation at each command. Actionlint 1.7.12 passed for the native workflow. The architecture check passed against the PR base without policy/budget changes. Nextest ran all 71 -`nebula-settings` tests successfully on Windows; its discovered test names match +`pebrel-settings` tests successfully on Windows; its discovered test names match Cargo's inventory exactly. Rustfmt and the subset's doctest command also passed (that subset has zero doctests). Full native/GPUI execution, cache restore/save behavior and cold/warm timing comparisons are validated by diff --git a/docs/answer-reader-language.md b/docs/answer-reader-language.md index 580710c0e..651f68274 100644 --- a/docs/answer-reader-language.md +++ b/docs/answer-reader-language.md @@ -22,8 +22,8 @@ share a 64 MiB budget. Additional images display a translated omission notice. Network images are not downloaded automatically. Local image paths are checked against the captured working directory; choosing a local file explicitly remains available when automatic loading is rejected. PNG and JPEG support is unchanged. -The [document model](../nebula_app/src/assistant_answer/document.rs) and -[reader](../nebula_app/src/gpui_shell/terminal/answer_reader.rs) own these limits. +The [document model](../pebrel_app/src/assistant_answer/document.rs) and +[reader](../pebrel_app/src/gpui_shell/terminal/answer_reader.rs) own these limits. 阅读器保留已有的回答和图片上限;超限图片显示对应语言的提示。网络图片不会自动下载, 自动加载本地图片时仍检查工作目录边界。加载被拒绝后,可以主动选择本地 PNG 或 JPEG。 @@ -55,4 +55,4 @@ logical viewport across English → Chinese → English. It resets the clipboard each copy and checks exact source equality, so a stale clipboard cannot pass the test. Generated/forged image markers, omitted-image bounds and sanitized localized failures have separate regression coverage. The ownership rationale is recorded in the -[reader presentation decision](../architecture/notes/nebula_app/assistant_answer/2026-09-27-reader-presentation-language.md). +[reader presentation decision](../architecture/notes/pebrel_app/assistant_answer/2026-09-27-reader-presentation-language.md). diff --git a/docs/architecture-decisions.md b/docs/architecture-decisions.md index 3442aa391..0eead3f0b 100644 --- a/docs/architecture-decisions.md +++ b/docs/architecture-decisions.md @@ -248,10 +248,10 @@ single-file storage process; the records below remain unchanged historical conte trees. They save terminal layout/launch identity, not command history or output. Reads and writes belong to the recipe view's background tasks. Restoring creates a separate regular window. Bounds, count and version validation precede restore. -- **Split authority:** `nebula_split::SplitTree::dock_at_leaf` owns subtree grafting. +- **Split authority:** `pebrel_split::SplitTree::dock_at_leaf` owns subtree grafting. Local/cross-window gestures carry a stable destination pane ID and direction; preview rectangles use the same tree layout math as the resulting split. -- **Preferences:** `nebula_settings` owns the quick-window mode and optional logical +- **Preferences:** `pebrel_settings` owns the quick-window mode and optional logical dimensions. The window registry samples only normal, settled window bounds, saves changes through the existing preference writer and clamps restored sizes to the current display. Animation positions do not become saved dimensions. @@ -300,7 +300,7 @@ single-file storage process; the records below remain unchanged historical conte - **Status:** Requested by the maintainer, 2026-09-11; implemented in the working tree, with native validation pending. -- **Decision:** Add the default-on `ai_toasts` preference to `nebula_settings` and +- **Decision:** Add the default-on `ai_toasts` preference to `pebrel_settings` and its existing persistence/reset contracts. The GPUI adapter caches it with other runtime settings. Disabling it hides only in-app AI completion/confirmation cards; native system notifications, tab indicators and terminal state retain @@ -346,7 +346,7 @@ single-file storage process; the records below remain unchanged historical conte process requires a separately reviewed broker and authenticated PTY transport. A future privileged-residency feature must have explicit recovery/discovery. -The two pane preferences in the same request reuse `nebula_settings`: mouse focus +The two pane preferences in the same request reuse `pebrel_settings`: mouse focus has an optional GUI override of the compatible TOML setting (default off), while inactive-pane dimming defaults on to preserve the existing appearance. Both are cached by the GPUI settings adapter; pointer movement and rendering do not read @@ -360,7 +360,7 @@ settings files. Users need to start from an existing theme, adjust common settings, preview text colors and exchange themes without making the selection page an editor. - **Decision:** Keep built-in identities compatible. Shared, dependency-free theme - values and validation belong to `nebula_settings`; versioned JSON, external format + values and validation belong to `pebrel_settings`; versioned JSON, external format adapters and library I/O belong to the application's `theme_library` capability. A custom theme is an independent snapshot with a stable library identity and a built-in fallback. Copying or renaming does not edit its source or create a runtime @@ -648,7 +648,7 @@ settings files. increase a large shrink's latency. Allocation reduction is not a working-set or universal throughput guarantee. Existing-history scrolling does not allocate new history rows. Compare identical content, geometry and build profiles. -- **Preferences:** `nebula_settings` owns additive `scrollback_lines` and +- **Preferences:** `pebrel_settings` owns additive `scrollback_lines` and `scroll_speed` keys, validation and defaults. History offers seven values from 1,000 to 100,000, defaults to 10,000 and is passed only to newly created terminal sessions; changing it cannot truncate open sessions. Wheel speed defaults to diff --git a/docs/architecture.md b/docs/architecture.md index 77422ab6e..30a807173 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -16,30 +16,30 @@ to rename all existing directories or create abstract interfaces everywhere. | Area | Owns | Must not become | | --- | --- | --- | -| `nebula_settings` | Runtime settings, language registry, shared preference contracts | A UI/widget library | -| `nebula_split` | Split tree, geometry, navigation rules | Window management or rendering | -| `nebula_terminal` | Grid, VT processing, terminal/PTY behavior | Product panels or GPUI state | -| `nebula_config`, `nebula_config_derive` | Configuration abstractions and derives | Application orchestration | -| `pebrel-completions` (source: `nebula-completions/`) | Completion matching and presentation-independent results | Terminal view ownership | -| `nebula_app/src/completion.rs` | Completion request snapshots, shared source lifetime and per-pane source selection | A GPUI task owner or a shell interpreter | -| `nebula_app/src/display/suggest_engine.rs` | Shared candidate calculation from input snapshots; compatibility adapter for pane state | A second source registry or access to the terminal grid during calculation | -| `nebula_hook` | Small process/lifecycle hook bridge | An application dependency container | -| `nebula_app/src/i18n` | Static lookup, locale resolution and formatting | Runtime catalog parsing or UI ownership | -| `nebula_app/src/scrollbar.rs` | Shared overlay-scrollbar geometry, hit testing and drag mapping | A renderer, view owner or input dispatcher | -| `nebula_app/src/math` | Parse, validate, layout, compile and cache responsibilities | A duplicated per-shell math engine | -| `nebula_app/src/platform` | Explicit platform capabilities and native adapters | A dumping ground for unrelated logic | -| `nebula_app/src/ai_hook` | Normalized provider facts, bounded ordering, one shared pane lifecycle and owned installation policy; native Windows/Unix transports | Screen keyword rules or a separate state machine per UI shell | -| `nebula_app/src/platform/ssh_agent.rs` | Native agent endpoints, transport connection and bounded identity discovery | Host authentication policy or private key selection | -| `nebula_app/src/ssh_session/agent.rs` | SSH agent identity selection, signing outcomes and total discovery budget; fresh scope per host | A second authentication plan, credential store or agent forwarding service | -| `nebula_app/src/serial_session.rs` | Native serial port transport for non-PTY panes and the `serial:` destination syntax | SSH authentication, remote files or a settings form | -| `nebula_app/src/ssh_session/integration.rs` | Authenticated exec/PTY orchestration for remote hook installation and shell startup | Provider policy or a second Agent state machine | -| `nebula_app/src/ai_agents` | Agent identity and structurally constrained screen observations | Authority to overwrite hook results or infer remote completion from silence | -| `nebula_app/src/gpui_shell` | GPUI views, UI state, commands and subscriptions | A second settings/domain implementation | -| `nebula_app/src/product_ui` | Feature-selected shared presentation facade | A route to legacy rendering dependencies | -| `nebula_app/src/display`, `renderer` | Legacy rendering and still-shared extracted models | A source of new undifferentiated functionality | -| `nebula_app/src/display/animations.rs` | Legacy window animation state and shared frame snapshots behind existing display operations | Public tween fields or rendering/hit-test ownership | -| `nebula_gpui` | Component acceptance lab | A dependency of the product | -| `nebula_app/build`, `tools/i18n-contract` | Generation and independent contract verification | Runtime configuration loading | +| `pebrel_settings` | Runtime settings, language registry, shared preference contracts | A UI/widget library | +| `pebrel_split` | Split tree, geometry, navigation rules | Window management or rendering | +| `pebrel_terminal` | Grid, VT processing, terminal/PTY behavior | Product panels or GPUI state | +| `pebrel_config`, `pebrel_config_derive` | Configuration abstractions and derives | Application orchestration | +| `pebrel-completions` (source: `pebrel-completions/`) | Completion matching and presentation-independent results | Terminal view ownership | +| `pebrel_app/src/completion.rs` | Completion request snapshots, shared source lifetime and per-pane source selection | A GPUI task owner or a shell interpreter | +| `pebrel_app/src/display/suggest_engine.rs` | Shared candidate calculation from input snapshots; compatibility adapter for pane state | A second source registry or access to the terminal grid during calculation | +| `pebrel_hook` | Small process/lifecycle hook bridge | An application dependency container | +| `pebrel_app/src/i18n` | Static lookup, locale resolution and formatting | Runtime catalog parsing or UI ownership | +| `pebrel_app/src/scrollbar.rs` | Shared overlay-scrollbar geometry, hit testing and drag mapping | A renderer, view owner or input dispatcher | +| `pebrel_app/src/math` | Parse, validate, layout, compile and cache responsibilities | A duplicated per-shell math engine | +| `pebrel_app/src/platform` | Explicit platform capabilities and native adapters | A dumping ground for unrelated logic | +| `pebrel_app/src/ai_hook` | Normalized provider facts, bounded ordering, one shared pane lifecycle and owned installation policy; native Windows/Unix transports | Screen keyword rules or a separate state machine per UI shell | +| `pebrel_app/src/platform/ssh_agent.rs` | Native agent endpoints, transport connection and bounded identity discovery | Host authentication policy or private key selection | +| `pebrel_app/src/ssh_session/agent.rs` | SSH agent identity selection, signing outcomes and total discovery budget; fresh scope per host | A second authentication plan, credential store or agent forwarding service | +| `pebrel_app/src/serial_session.rs` | Native serial port transport for non-PTY panes and the `serial:` destination syntax | SSH authentication, remote files or a settings form | +| `pebrel_app/src/ssh_session/integration.rs` | Authenticated exec/PTY orchestration for remote hook installation and shell startup | Provider policy or a second Agent state machine | +| `pebrel_app/src/ai_agents` | Agent identity and structurally constrained screen observations | Authority to overwrite hook results or infer remote completion from silence | +| `pebrel_app/src/gpui_shell` | GPUI views, UI state, commands and subscriptions | A second settings/domain implementation | +| `pebrel_app/src/product_ui` | Feature-selected shared presentation facade | A route to legacy rendering dependencies | +| `pebrel_app/src/display`, `renderer` | Legacy rendering and still-shared extracted models | A source of new undifferentiated functionality | +| `pebrel_app/src/display/animations.rs` | Legacy window animation state and shared frame snapshots behind existing display operations | Public tween fields or rendering/hit-test ownership | +| `pebrel_gpui` | Component acceptance lab | A dependency of the product | +| `pebrel_app/build`, `tools/i18n-contract` | Generation and independent contract verification | Runtime configuration loading | The map records current responsibilities; it does not assert that every legacy file has already reached the target shape. Eleven oversized legacy files remain @@ -52,7 +52,7 @@ projects those records into existing status badges, progress and Runtime API states, before Hooks and screen/process inference. Pane/transport failure still takes precedence. Reports do not create Hook ownership, session ids or additional desktop notifications. See -the [protocol boundary](../architecture/notes/nebula_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md). +the [protocol boundary](../architecture/notes/pebrel_terminal/program_status/2026-10-21-osc7501-record-lifecycle.md). ## Rust module names are not file locations @@ -106,11 +106,11 @@ WSL or authenticated SSH execution scope; SSH connection generations separate cached snapshots. Queries use owned background processes or channels. Workspace selection and command argument roles remain shared rules, with local and guest catalogs using the same selection code. See the -[metadata boundary](../architecture/notes/nebula_app/completion/2026-10-03-scoped-metadata.md) -and [editor ownership](../architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md). +[metadata boundary](../architecture/notes/pebrel_app/completion/2026-10-03-scoped-metadata.md) +and [editor ownership](../architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-03-editor-snapshots.md). The existing legacy adapter still accepts pane state, then calls the same candidate calculation; it does not gain local Git discovery through -this extraction. See the [request boundary decision](../architecture/notes/nebula_app/completion/2026-09-30-request-boundary.md). +this extraction. See the [request boundary decision](../architecture/notes/pebrel_app/completion/2026-09-30-request-boundary.md). ## Extension checklist diff --git a/docs/internationalization.md b/docs/internationalization.md index 5724c63e5..fbe475530 100644 --- a/docs/internationalization.md +++ b/docs/internationalization.md @@ -34,9 +34,9 @@ translation of every screen, configuration template, or installer language. ## Runtime contract / 运行时合同 -- `nebula_settings/src/language.rs` owns the supported-language registry, +- `pebrel_settings/src/language.rs` owns the supported-language registry, native names, saved values, and locale negotiation. Both shells use it. -- `nebula_app/build/i18n.rs` validates JSON and generates static Rust data at +- `pebrel_app/build/i18n.rs` validates JSON and generates static Rust data at compile time. Runtime lookup never parses a JSON file, constructs a map, reads a file, takes a lock, or allocates a string. - `UiLanguage::text(Message::...)` uses a typed identifier and direct table @@ -73,9 +73,9 @@ content are preserved. ## Add a language / 新增语言 -1. Add one row to the `languages!` registry in `nebula_settings/src/language.rs`. +1. Add one row to the `languages!` registry in `pebrel_settings/src/language.rs`. Saved values are canonical locale tags; do not change existing tags or order. -2. Add `nebula_app/i18n/.json`. Keep the same message ids and named +2. Add `pebrel_app/i18n/.json`. Keep the same message ids and named placeholders as English. A partial catalog is allowed and falls back to English. Do not copy English entries just to inflate the translation coverage count. 3. Set the component locale to one actually supplied by the pinned component @@ -105,13 +105,13 @@ content are preserved. ## Checks / 验证 ```text -cargo test -p nebula-settings +cargo test -p pebrel-settings cargo test --manifest-path tools/i18n-contract/Cargo.toml --locked -cargo test -p nebula --test i18n_contract -cargo test -p nebula --bin pebrel --features gpui-shell i18n:: -cargo test -p nebula --bin pebrel --features gpui-shell gpui_shell::settings_pane::tests:: -cargo test -p nebula --test file_line_budget -cargo test -p nebula --test i18n_contract --release -- --ignored --nocapture +cargo test -p pebrel --test i18n_contract +cargo test -p pebrel --bin pebrel --features gpui-shell i18n:: +cargo test -p pebrel --bin pebrel --features gpui-shell gpui_shell::settings_pane::tests:: +cargo test -p pebrel --test file_line_budget +cargo test -p pebrel --test i18n_contract --release -- --ignored --nocapture ``` The allocation contract checks both the first and repeated lookup across every diff --git a/docs/lua-configuration.md b/docs/lua-configuration.md index 8550c6aa6..18864d8c8 100644 --- a/docs/lua-configuration.md +++ b/docs/lua-configuration.md @@ -83,7 +83,7 @@ config.ui = { ``` The supported field names and scalar shapes are defined by -[`ui_value_kind`](../nebula_settings/src/config_defaults.rs). Numeric ranges, +[`ui_value_kind`](../pebrel_settings/src/config_defaults.rs). Numeric ranges, enum aliases and defaults continue to come from `RuntimeSettings::from_raw`; unknown fields and incorrect scalar types fail `config check`. Background-image paths in `config.ui` are relative to the entry configuration directory. @@ -150,16 +150,16 @@ top-left origin. This does not implement Shadertoy texture channels or includes. Background snippets receive `iParameter` from `background.parameter`. Full background fragments may declare one 16-byte uniform at set 0/binding 0 containing width, height, scaled seconds and that parameter. Terminal snippets receive the -[`GLSL frame ABI`](../nebula_app/src/gpui_shell/terminal/effects/abi.glsl), including +[`GLSL frame ABI`](../pebrel_app/src/gpui_shell/terminal/effects/abi.glsl), including `load_surface`, `sample_surface`, the palette/cursor data and `iParameters`. The four values are also available as `frame.parameters` in WGSL. Frame ABI version 2 appends those values after the palette, preserving every earlier field offset. Other textures, storage and resource bindings are rejected by the renderer's existing validation. Shader reads and compilation stay on background workers. -Start with the [background example](../nebula_app/examples/shaders/background.glsl) -and [terminal example](../nebula_app/examples/shaders/scanlines.frag). The complete -configuration shape is defined in [`config/shaders.rs`](../nebula_app/src/config/shaders.rs). +Start with the [background example](../pebrel_app/examples/shaders/background.glsl) +and [terminal example](../pebrel_app/examples/shaders/scanlines.frag). The complete +configuration shape is defined in [`config/shaders.rs`](../pebrel_app/src/config/shaders.rs). `config check` validates configuration values and paths' syntax; actual shader compilation occurs when an effect is enabled in a supported window. @@ -229,7 +229,7 @@ shell alias. Imported profiles live in `terminal_profiles.json`. Their settings IDs combine the stored shell family and profile identity as `profile:|`, as defined by -[`Profile::settings_id`](../nebula_app/src/config/ui_config.rs). +[`Profile::settings_id`](../pebrel_app/src/config/ui_config.rs). The complete ID is case-sensitive and requires an actual, launchable store entry. Adding `terminal_profile_id` to a Lua entry does not create that entry. When using such an ID on the command line, quote it because it contains `|`. diff --git a/docs/math-rendering-test.md b/docs/math-rendering-test.md index 8861c10be..3f2efa3a8 100644 --- a/docs/math-rendering-test.md +++ b/docs/math-rendering-test.md @@ -27,7 +27,7 @@ TextView 控件在深浅主题与宽窄布局下的鼠标拖选、键盘复制 (默认 480),然后运行: ```text -cargo test --locked -p nebula --bin pebrel --features gpui-test-support native_reader_selection_preview -- --ignored --nocapture --test-threads=1 +cargo test --locked -p pebrel --bin pebrel --features gpui-test-support native_reader_selection_preview -- --ignored --nocapture --test-threads=1 ``` 测试只对自己的原生 TextView 窗口分发选择事件,不启动终端或 AI 会话、不改系统 diff --git a/docs/project-constraints.md b/docs/project-constraints.md index d8124d370..34e011d88 100644 --- a/docs/project-constraints.md +++ b/docs/project-constraints.md @@ -37,7 +37,7 @@ module remains covered. Dependency caches are not product sources. Generated translation tables live in Cargo output, not handwritten source roots. JSON catalogs and other data assets use semantic/payload tests, not arbitrary -line-count limits. `nebula_app/tests/file_line_budget.rs` reads the same budget; +line-count limits. `pebrel_app/tests/file_line_budget.rs` reads the same budget; the Python PR checker additionally enforces history-relative ratcheting. ## 2. Dependency direction @@ -47,7 +47,7 @@ allowed local dependencies separately for normal, build and test use. - Core crates must not depend on the application or acceptance lab. The policy rejects direct renderer packages in core production/build dependencies. -- `nebula-settings`, `nebula-split` and `nebula_hook` retain their existing +- `pebrel-settings`, `pebrel-split` and `pebrel_hook` retain their existing zero-production-dependency contracts. Test-only tools are not prohibited by a runtime-performance argument; they remain subject to normal dependency review. - Normal/build local dependency edges must be acyclic, across the declared target diff --git a/docs/runtime-control-api.md b/docs/runtime-control-api.md index 4f444740a..af4679d62 100644 --- a/docs/runtime-control-api.md +++ b/docs/runtime-control-api.md @@ -38,7 +38,7 @@ Pebrel 打开的每个**本地** pane 都带上下面这些变量。pane 里的 连接旧版 Nebula 时,可在新变量缺失时使用旧版导出的 `NEBULA_CLI` 与 `NEBULA_PANE_ID`。 CLI 路径由环境给出,调用方无需根据展示名称猜测文件名。 -实现在 `nebula_app/src/agent_env.rs`,两个壳共用同一个 `apply()`。三条设计约束: +实现在 `pebrel_app/src/agent_env.rs`,两个壳共用同一个 `apply()`。三条设计约束: 1. **只进本地 PTY。** SSH pane 注入的是 `PEBREL_PANE_REMOTE=1`,不给 `PEBREL_CLI`/`PEBREL_BIN_DIR` ——远端主机上没有这个二进制,把本机绝对路径送过去只会造出一个"变量有了但永远执行不了"的伪能力, @@ -219,7 +219,7 @@ id 解析不出来时请求以 `invalid_shell` 失败,**不会**回落到默 Windows 本地 PowerShell 的终端剪贴板操作可委托给当前 PSReadLine 的原生 Paste。 该能力只用于用户剪贴板操作及其广播接收端,不能作为 Runtime API 目标已开启 bracketed paste 的证明;`pane.paste` 和 `agent.paste` 仍遵循上述协议校验。 -详见[剪贴板能力边界](../architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 +详见[剪贴板能力边界](../architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 ## 单请求编排 @@ -435,7 +435,7 @@ token。无 token 的连接会被静默丢弃。该边界用于阻止其他本 `export PEBREL_RUNTIME_ENDPOINT=resident`(POSIX),使后续 CLI 子进程使用当前发现记录。 不要把隔离实例的专属地址改为此标记。旧版 CLI 不识别 `resident`,应使用当前 PTY 导出的 `PEBREL_CLI`。生命周期取舍与验证边界见 -[地址发现决策](../architecture/notes/nebula_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md)。 +[地址发现决策](../architecture/notes/pebrel_app/runtime_api/2026-10-23-resident-endpoint-lifetime.md)。 旧版 `PING/ATTACH` 文本请求仍由同一服务端接受,保证单实例与会话重新挂载不因协议升级 失效;新功能只通过版本化 JSON 协议开放。 diff --git a/extra/completions/README.md b/extra/completions/README.md index b2d853f47..19e9400a0 100644 --- a/extra/completions/README.md +++ b/extra/completions/README.md @@ -7,8 +7,8 @@ Linux packaging installs the Unix files; neither platform should reuse the other After changing CLI options, regenerate on both Windows and Unix with the same locked dependencies: ```sh -cargo test --locked -p nebula --bin pebrel cli::tests::regenerate_completions -- --ignored --exact -cargo test --locked -p nebula --bin pebrel cli::tests::completions -- --exact +cargo test --locked -p pebrel --bin pebrel cli::tests::regenerate_completions -- --ignored --exact +cargo test --locked -p pebrel --bin pebrel cli::tests::completions -- --exact ``` The regeneration command selects the host's snapshot directory. Set diff --git a/extra/logo/README.md b/extra/logo/README.md index d77a2e09d..474a58434 100644 --- a/extra/logo/README.md +++ b/extra/logo/README.md @@ -13,7 +13,7 @@ personal choices, with graphite violet retained as palette 25. | `silver-violet` | `nebula-light.svg` | Optional silver-violet colorway; palette 12 | | `graphite-violet` | `nebula-dark.svg` | Optional graphite / gray-violet colorway; palette 25 | -`nebula_settings/src/app_icon.rs` is the canonical catalog of stable setting +`pebrel_settings/src/app_icon.rs` is the canonical catalog of stable setting keys, original palette numbers, bilingual names and colors. The renderer exports `icon-catalog.json` from it. Personal color options do not imply exclusive colors or completed trademark clearance. @@ -71,8 +71,8 @@ Regenerate using Node.js 24+ with `@resvg/resvg-js` (verified with 2.6.2): node scripts/render-app-icons.mjs /path/to/renderer/package.json node scripts/render-app-icons.mjs /path/to/renderer/package.json --check python3 -m unittest scripts.tests.test_app_icons -v -cargo test -p nebula-settings --offline --locked -cargo test -p nebula --bin nebula --features gpui-shell app_icon::tests +cargo test -p pebrel-settings --offline --locked +cargo test -p pebrel --bin nebula --features gpui-shell app_icon::tests ``` The renderer is development-only; it adds no application dependency. The @@ -114,8 +114,8 @@ Regenerate each adjacent SVGZ with Python's standard library: import gzip from pathlib import Path sources = list(Path("extra/logo").glob("ai_*.svg")) -sources += list(Path("nebula_app/assets/icons").glob("nebula-agent-*.svg")) -sources += list(Path("nebula_app/assets/icons").glob("nebula-provider-*.svg")) +sources += list(Path("pebrel_app/assets/icons").glob("nebula-agent-*.svg")) +sources += list(Path("pebrel_app/assets/icons").glob("nebula-provider-*.svg")) for source in sources: source.with_suffix(".svgz").write_bytes( gzip.compress(source.read_bytes(), compresslevel=9, mtime=0) @@ -127,7 +127,7 @@ for source in sources: The Agents settings page renders 24 logical pixel SVG marks rather than enlarging the sidebar PNG textures. Claude, Kimi and Oh My Pi reuse the SVG sources below; Cursor and Copilot reuse the existing settings icons. OpenAI, OpenCode, Pi and -Grok use `nebula_app/assets/icons/nebula-agent-{openai,opencode,pi,grok}.svg`, +Grok use `pebrel_app/assets/icons/nebula-agent-{openai,opencode,pi,grok}.svg`, retrieved from the fixed npm package `@lobehub/icons-static-svg` 1.95.0: `https://unpkg.com/@lobehub/icons-static-svg@1.95.0/icons/{name}.svg`. These four sources are unchanged except for a final newline, under the collection's @@ -137,8 +137,8 @@ purple for Oh My Pi; sidebar PNG presentation is independent. ### Cursor and GitHub Copilot settings icons -`nebula_app/assets/icons/nebula-agent-cursor.svg` and -`nebula_app/assets/icons/nebula-agent-copilot.svg` use the monochrome marks from +`pebrel_app/assets/icons/nebula-agent-cursor.svg` and +`pebrel_app/assets/icons/nebula-agent-copilot.svg` use the monochrome marks from `@lobehub/icons-static-svg` 1.95.0, retrieved on 2026-09-20: - Cursor: https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.95.0/icons/cursor.svg @@ -168,7 +168,7 @@ same package (`icons/{qoder,qwen}.svg`) on 2026-10-07. Droid uses `ai_droid.svg`, retrieved unchanged from Factory's official https://factory.ai/favicon.svg on 2026-10-31 (also served by https://docs.factory.ai/favicon.svg). The official mark is black and white. -Hermes reuses `nebula_app/assets/icons/nebula-agent-hermes.svg`, including its +Hermes reuses `pebrel_app/assets/icons/nebula-agent-hermes.svg`, including its white background and black illustration. Both retain their source artwork rather than rendering the opaque background as a single-color mask. These marks identify the installed products and do not imply endorsement; trademarks remain with their diff --git a/mobile/android/app/build.gradle.kts b/mobile/android/app/build.gradle.kts index 34c143534..d3ba852bf 100644 --- a/mobile/android/app/build.gradle.kts +++ b/mobile/android/app/build.gradle.kts @@ -97,8 +97,8 @@ dependencies { val generateAssets by tasks.registering(Exec::class) { val root = rootProject.projectDir.resolve("../..").canonicalFile - inputs.files(root.resolve("nebula_settings/src/lib.rs"), root.resolve("nebula_settings/src/themes.rs"), - root.resolve("nebula_app/src/display/ui/os_icons.rs"), root.resolve("assets/fonts/MapleMono-NF-CN-Regular.ttf"), + inputs.files(root.resolve("pebrel_settings/src/lib.rs"), root.resolve("pebrel_settings/src/themes.rs"), + root.resolve("pebrel_app/src/display/ui/os_icons.rs"), root.resolve("assets/fonts/MapleMono-NF-CN-Regular.ttf"), root.resolve("assets/fonts/JetBrainsMono-Regular.ttf"), root.resolve("extra/logo/nebula-titanium.png")) inputs.dir(root.resolve("mobile/tools")) inputs.files(fileTree(root.resolve("mobile/relay")) { include("*.mjs", "*.json", "*.md", "*.yaml", "Caddyfile", "Dockerfile") }) diff --git a/mobile/tools/generate_assets.py b/mobile/tools/generate_assets.py index 17875ce36..c4d01f1b9 100644 --- a/mobile/tools/generate_assets.py +++ b/mobile/tools/generate_assets.py @@ -9,7 +9,7 @@ def generate(output: Path, resources: Path | None = None) -> None: root = Path(__file__).resolve().parents[2] - source = (root / "nebula_settings/src/themes.rs").read_text(encoding="utf-8") + source = (root / "pebrel_settings/src/themes.rs").read_text(encoding="utf-8") names_block = source.split("pub const BUILTIN:", 1)[1].split("];", 1)[0] names = re.findall(r"Self::(\w+)", names_block) palettes = {} @@ -27,7 +27,7 @@ def generate(output: Path, resources: Path | None = None) -> None: output.mkdir(parents=True, exist_ok=True) (output / "themes.json").write_text(json.dumps(palettes, separators=(",", ":")), encoding="utf-8") # Keep icon identity, glyph metrics and both labels in the desktop authority. - icon_source = (root / "nebula_app/src/display/ui/os_icons.rs").read_text(encoding="utf-8") + icon_source = (root / "pebrel_app/src/display/ui/os_icons.rs").read_text(encoding="utf-8") catalog = icon_source.split("pub(crate) const CATALOG:", 1)[1].split("];", 1)[0] icons = [] for body in re.findall(r"OsIcon \{ (.*?) \}", catalog): diff --git a/nebula_gpui/src/main.rs b/nebula_gpui/src/main.rs deleted file mode 100644 index d3387ac4a..000000000 --- a/nebula_gpui/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - nebula_gpui::run_shell(); -} diff --git a/nebula-completions/Cargo.toml b/pebrel-completions/Cargo.toml similarity index 100% rename from nebula-completions/Cargo.toml rename to pebrel-completions/Cargo.toml diff --git a/nebula-completions/src/color.rs b/pebrel-completions/src/color.rs similarity index 100% rename from nebula-completions/src/color.rs rename to pebrel-completions/src/color.rs diff --git a/nebula-completions/src/command_context.rs b/pebrel-completions/src/command_context.rs similarity index 100% rename from nebula-completions/src/command_context.rs rename to pebrel-completions/src/command_context.rs diff --git a/nebula-completions/src/command_search.rs b/pebrel-completions/src/command_search.rs similarity index 100% rename from nebula-completions/src/command_search.rs rename to pebrel-completions/src/command_search.rs diff --git a/nebula-completions/src/completer.rs b/pebrel-completions/src/completer.rs similarity index 100% rename from nebula-completions/src/completer.rs rename to pebrel-completions/src/completer.rs diff --git a/nebula-completions/src/directory.rs b/pebrel-completions/src/directory.rs similarity index 100% rename from nebula-completions/src/directory.rs rename to pebrel-completions/src/directory.rs diff --git a/nebula-completions/src/file.rs b/pebrel-completions/src/file.rs similarity index 100% rename from nebula-completions/src/file.rs rename to pebrel-completions/src/file.rs diff --git a/nebula-completions/src/lib.rs b/pebrel-completions/src/lib.rs similarity index 100% rename from nebula-completions/src/lib.rs rename to pebrel-completions/src/lib.rs diff --git a/nebula-completions/src/matcher.rs b/pebrel-completions/src/matcher.rs similarity index 100% rename from nebula-completions/src/matcher.rs rename to pebrel-completions/src/matcher.rs diff --git a/nebula-completions/src/options.rs b/pebrel-completions/src/options.rs similarity index 100% rename from nebula-completions/src/options.rs rename to pebrel-completions/src/options.rs diff --git a/nebula-completions/src/semantic.rs b/pebrel-completions/src/semantic.rs similarity index 100% rename from nebula-completions/src/semantic.rs rename to pebrel-completions/src/semantic.rs diff --git a/nebula-completions/src/semantic/common.rs b/pebrel-completions/src/semantic/common.rs similarity index 100% rename from nebula-completions/src/semantic/common.rs rename to pebrel-completions/src/semantic/common.rs diff --git a/nebula-completions/src/semantic/git.rs b/pebrel-completions/src/semantic/git.rs similarity index 100% rename from nebula-completions/src/semantic/git.rs rename to pebrel-completions/src/semantic/git.rs diff --git a/nebula-completions/src/semantic/scripts.rs b/pebrel-completions/src/semantic/scripts.rs similarity index 100% rename from nebula-completions/src/semantic/scripts.rs rename to pebrel-completions/src/semantic/scripts.rs diff --git a/nebula-completions/src/semantic/tests.rs b/pebrel-completions/src/semantic/tests.rs similarity index 100% rename from nebula-completions/src/semantic/tests.rs rename to pebrel-completions/src/semantic/tests.rs diff --git a/nebula-completions/src/span.rs b/pebrel-completions/src/span.rs similarity index 100% rename from nebula-completions/src/span.rs rename to pebrel-completions/src/span.rs diff --git a/nebula-completions/src/static_completion.rs b/pebrel-completions/src/static_completion.rs similarity index 100% rename from nebula-completions/src/static_completion.rs rename to pebrel-completions/src/static_completion.rs diff --git a/nebula-completions/src/suggestion.rs b/pebrel-completions/src/suggestion.rs similarity index 100% rename from nebula-completions/src/suggestion.rs rename to pebrel-completions/src/suggestion.rs diff --git a/nebula_app/AGENTS.md b/pebrel_app/AGENTS.md similarity index 68% rename from nebula_app/AGENTS.md rename to pebrel_app/AGENTS.md index 936ebea73..ee9efd6be 100644 --- a/nebula_app/AGENTS.md +++ b/pebrel_app/AGENTS.md @@ -1,33 +1,33 @@ # Nebula application rules - 本目录是应用编排和适配层;依赖方向保持为 UI/组合 → 应用能力 → 共享领域规则,不在视图里复制设置、持久化、终端状态或协议状态机。 -- 原生结果的块级呈现和目录折叠遵循 [`native_results`](../architecture/notes/nebula_app/gpui_shell/terminal/native_results/);文字、链接和命中共享终端的滚动投影。 -- GLSL/WGSL 源码转换、Luau shader 参数与帧 ABI 边界见 [`shader_source`](../architecture/notes/nebula_app/gpui_shell/shader_source/)。 +- 原生结果的块级呈现和目录折叠遵循 [`native_results`](../architecture/notes/pebrel_app/gpui_shell/terminal/native_results/);文字、链接和命中共享终端的滚动投影。 +- GLSL/WGSL 源码转换、Luau shader 参数与帧 ABI 边界见 [`shader_source`](../architecture/notes/pebrel_app/gpui_shell/shader_source/)。 - `src/gpui_shell` 负责 GPUI 呈现、命令和订阅。交互改动必须覆盖默认、hover、pressed、键盘焦点、disabled/loading 以及成功/失败中实际需要的状态。 -- 首帧窗口尺寸、非阻塞 logo 准备与原生呈现顺序的因果记录见 [`workspace`](../architecture/notes/nebula_app/gpui_shell/workspace/)。 -- 本地启动失败的诊断保留与显式 Shell 选择见 [`terminal/view`](../architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md)。 -- 独立本地草稿写入的 canonical target 并发合同见 [`file_editor writers`](../architecture/notes/nebula_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md)。 -- GPUI 图片解码帧与 zoom/pan 几何一致性见 [`doc_tabs`](../architecture/notes/nebula_app/gpui_shell/doc_tabs/)。 -- SFTP 图片/文本的分段预览、取消、来源身份与可写快照边界见 [`streamed previews`](../architecture/notes/nebula_app/ssh_sftp/2026-11-02-streamed-file-previews.md)。 -- Linux 静默启动、关窗守卫、桌面身份与 portal 激活令牌见 [`原生生命周期`](../architecture/notes/nebula_app/platform/2026-10-14-linux-desktop-lifecycle.md)。 +- 首帧窗口尺寸、非阻塞 logo 准备与原生呈现顺序的因果记录见 [`workspace`](../architecture/notes/pebrel_app/gpui_shell/workspace/)。 +- 本地启动失败的诊断保留与显式 Shell 选择见 [`terminal/view`](../architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-24-failed-local-session-retention.md)。 +- 独立本地草稿写入的 canonical target 并发合同见 [`file_editor writers`](../architecture/notes/pebrel_app/gpui_shell/file_editor/2026-10-11-canonical-target-writers.md)。 +- GPUI 图片解码帧与 zoom/pan 几何一致性见 [`doc_tabs`](../architecture/notes/pebrel_app/gpui_shell/doc_tabs/)。 +- SFTP 图片/文本的分段预览、取消、来源身份与可写快照边界见 [`streamed previews`](../architecture/notes/pebrel_app/ssh_sftp/2026-11-02-streamed-file-previews.md)。 +- Linux 静默启动、关窗守卫、桌面身份与 portal 激活令牌见 [`原生生命周期`](../architecture/notes/pebrel_app/platform/2026-10-14-linux-desktop-lifecycle.md)。 - 操作形成“触发 → 执行 → 可感知结果”的闭环。成功只能在操作真实完成或底层接口明确接受后显示,不能把回调触发当成平台级成功。 - 异步工作必须有所有者、取消/过期策略和视图销毁清理;旧结果不得覆盖新状态。渲染回调不得同步等待磁盘、网络、子进程或长锁。 - 新 UI 文案使用现有 typed message ID、命名占位符和回退合同,遵循 [`../docs/internationalization.md`](../docs/internationalization.md)。 -- 回答原文与阅读器呈现语言的所有权依据见 [`assistant_answer`](../architecture/notes/nebula_app/assistant_answer/)。 +- 回答原文与阅读器呈现语言的所有权依据见 [`assistant_answer`](../architecture/notes/pebrel_app/assistant_answer/)。 - 测试真实控件和布局路径;编译或状态单测不能代替 hover、命中区域、键盘路径和视觉验收。 -- 只有跨层所有权、持久化、协议、线程/生命周期或重要性能取舍才写 note,路径镜像到 `architecture/notes/nebula_app//`。 -- Agent 集成、改键输入与 SSH 认证的因果记录分别位于 [`ai_hook`](../architecture/notes/nebula_app/ai_hook/)、[`input`](../architecture/notes/nebula_app/input/) 和 [`ssh_session`](../architecture/notes/nebula_app/ssh_session/)。 -- Windows PowerShell 剪贴板粘贴与当前编辑器能力的边界见 [`terminal/view`](../architecture/notes/nebula_app/gpui_shell/terminal/view/)。 -- Runtime 地址发现与隔离实例的生命周期边界见 [`runtime_api`](../architecture/notes/nebula_app/runtime_api/)。 -- 补齐数据源选择和请求快照归 `completion.rs`,界面仅拥有任务与交互;边界依据见 [`completion`](../architecture/notes/nebula_app/completion/)。 -- 旧渲染入口的窗口动画状态归 `display/animations.rs`;迁移及显式 legacy 验证依据见 [`display`](../architecture/notes/nebula_app/display/)。 -- 旧壳逐步退役时,保留共享规则的单一实现;首个滚动条边界切片见 [`scrollbar`](../architecture/notes/nebula_app/scrollbar/)。 -- 新终端代理保持选定协议,不把 SOCKS 改写成 HTTP。见 [`terminal proxy scheme`](../architecture/notes/nebula_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md)。 -- 新终端的绕过列表写成 curl 的 `no_proxy`,`socks5h` 按原样保存。见 [`terminal proxy bypass`](../architecture/notes/nebula_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md)。 -- WSL pane 的发行版快照与分屏/新标签继承见 [`shell_detect`](../architecture/notes/nebula_app/shell_detect/);WSL zsh 启动注入见 [`platform`](../architecture/notes/nebula_app/platform/2026-09-28-wsl-zsh-startup-integration.md)。 -- Windows Codex 身份探测复用进程级辅助进程;光标提示、私有管道、请求期限和退出回收见 [`探测进程生命周期`](../architecture/notes/nebula_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md)。 -- SSH Files 的 pane cwd 跟随、手动浏览快照与取消归属见 [`remote_files`](../architecture/notes/nebula_app/gpui_shell/workspace/remote_files/)。 -- 管理员更新的受保护目录与会话恢复分别见 [`update_installation`](../architecture/notes/nebula_app/platform/update_installation/) 和 [`update_download`](../architecture/notes/nebula_app/update_download/),普通会话与管理员更新状态保持独立。 -- Windows Acrylic 的运行库回退与窗口生命周期见 [`platform`](../architecture/notes/nebula_app/platform/2026-09-22-acrylic-controller.md)。 -- Windows Acrylic 的动画期间透明回退与计时边界见 [`窗口状态切换`](../architecture/notes/nebula_app/platform/2026-09-22-acrylic-window-transitions.md)。 -- 登录项的启动意图与首窗静默边界见 [`登录启动`](../architecture/notes/nebula_app/platform/startup/2026-10-10-login-launch-intent.md)。 +- 只有跨层所有权、持久化、协议、线程/生命周期或重要性能取舍才写 note,路径镜像到 `architecture/notes/pebrel_app//`。 +- Agent 集成、改键输入与 SSH 认证的因果记录分别位于 [`ai_hook`](../architecture/notes/pebrel_app/ai_hook/)、[`input`](../architecture/notes/pebrel_app/input/) 和 [`ssh_session`](../architecture/notes/pebrel_app/ssh_session/)。 +- Windows PowerShell 剪贴板粘贴与当前编辑器能力的边界见 [`terminal/view`](../architecture/notes/pebrel_app/gpui_shell/terminal/view/)。 +- Runtime 地址发现与隔离实例的生命周期边界见 [`runtime_api`](../architecture/notes/pebrel_app/runtime_api/)。 +- 补齐数据源选择和请求快照归 `completion.rs`,界面仅拥有任务与交互;边界依据见 [`completion`](../architecture/notes/pebrel_app/completion/)。 +- 旧渲染入口的窗口动画状态归 `display/animations.rs`;迁移及显式 legacy 验证依据见 [`display`](../architecture/notes/pebrel_app/display/)。 +- 旧壳逐步退役时,保留共享规则的单一实现;首个滚动条边界切片见 [`scrollbar`](../architecture/notes/pebrel_app/scrollbar/)。 +- 新终端代理保持选定协议,不把 SOCKS 改写成 HTTP。见 [`terminal proxy scheme`](../architecture/notes/pebrel_app/ssh_proxy/2026-09-29-terminal-proxy-scheme.md)。 +- 新终端的绕过列表写成 curl 的 `no_proxy`,`socks5h` 按原样保存。见 [`terminal proxy bypass`](../architecture/notes/pebrel_app/ssh_proxy/2026-09-30-terminal-proxy-bypass.md)。 +- WSL pane 的发行版快照与分屏/新标签继承见 [`shell_detect`](../architecture/notes/pebrel_app/shell_detect/);WSL zsh 启动注入见 [`platform`](../architecture/notes/pebrel_app/platform/2026-09-28-wsl-zsh-startup-integration.md)。 +- Windows Codex 身份探测复用进程级辅助进程;光标提示、私有管道、请求期限和退出回收见 [`探测进程生命周期`](../architecture/notes/pebrel_app/platform/ai_session_identity/windows/2026-10-23-reusable-probe-process.md)。 +- SSH Files 的 pane cwd 跟随、手动浏览快照与取消归属见 [`remote_files`](../architecture/notes/pebrel_app/gpui_shell/workspace/remote_files/)。 +- 管理员更新的受保护目录与会话恢复分别见 [`update_installation`](../architecture/notes/pebrel_app/platform/update_installation/) 和 [`update_download`](../architecture/notes/pebrel_app/update_download/),普通会话与管理员更新状态保持独立。 +- Windows Acrylic 的运行库回退与窗口生命周期见 [`platform`](../architecture/notes/pebrel_app/platform/2026-09-22-acrylic-controller.md)。 +- Windows Acrylic 的动画期间透明回退与计时边界见 [`窗口状态切换`](../architecture/notes/pebrel_app/platform/2026-09-22-acrylic-window-transitions.md)。 +- 登录项的启动意图与首窗静默边界见 [`登录启动`](../architecture/notes/pebrel_app/platform/startup/2026-10-10-login-launch-intent.md)。 diff --git a/nebula_app/CHANGELOG.md b/pebrel_app/CHANGELOG.md similarity index 100% rename from nebula_app/CHANGELOG.md rename to pebrel_app/CHANGELOG.md diff --git a/nebula_app/Cargo.toml b/pebrel_app/Cargo.toml similarity index 96% rename from nebula_app/Cargo.toml rename to pebrel_app/Cargo.toml index af9371b77..1c83b6abc 100644 --- a/nebula_app/Cargo.toml +++ b/pebrel_app/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula" +name = "pebrel" default-run = "pebrel" version = "2.5.0" license = "GPL-3.0-or-later" @@ -20,16 +20,16 @@ path = "src/console_main.rs" test = false bench = false -[dependencies.nebula_terminal] -path = "../nebula_terminal" +[dependencies.pebrel_terminal] +path = "../pebrel_terminal" version = "2.5.0" -[dependencies.nebula_config_derive] -path = "../nebula_config_derive" +[dependencies.pebrel_config_derive] +path = "../pebrel_config_derive" version = "2.5.0" -[dependencies.nebula_config] -path = "../nebula_config" +[dependencies.pebrel_config] +path = "../pebrel_config" version = "2.5.0" # 可选:GPUI UI 层(feature = "gpui-shell",模块 src/gpui_shell/)。 @@ -65,12 +65,12 @@ optional = true # 运行时用户设置(nebula_settings.txt + 主题终端色表)的共享权威实现。 # 非可选:ai_hook 的 `ai_hooks` 持久开关(setup-ai --remove)在所有壳形态 # 下都要读写这份设置。 -[dependencies.nebula-settings] -path = "../nebula_settings" +[dependencies.pebrel-settings] +path = "../pebrel_settings" # 分屏规则的共享权威实现(布局树/拖拽比例/方向导航);GPUI 壳消费。 -[dependencies.nebula-split] -path = "../nebula_split" +[dependencies.pebrel-split] +path = "../pebrel_split" optional = true [dependencies.futures] @@ -78,7 +78,7 @@ version = "0.3" optional = true [dependencies.pebrel-completions] -path = "../nebula-completions" +path = "../pebrel-completions" version = "2.5.0" [dependencies] @@ -166,7 +166,7 @@ naga = { version = "=29.0.4", optional = true, features = ["wgsl-in", "glsl-in", gif = { version = "=0.14.2", optional = true } [build-dependencies] -nebula-settings = { path = "../nebula_settings", version = "2.5.0" } +pebrel-settings = { path = "../pebrel_settings", version = "2.5.0" } gl_generator = { version = "0.14.0", optional = true } serde = "1" serde_json = "1" @@ -350,11 +350,11 @@ gpui-shell = [ "dep:gpui_platform", "dep:gpui-component", "dep:gpui-component-assets", - "dep:nebula-split", + "dep:pebrel-split", "dep:futures", ] # 真实 GPUI hitbox / 鼠标路由测试显式启用;不能放进 dev-dependencies, -# 否则不带 gpui-shell 的默认 `cargo test -p nebula` 也会编译整棵 GPUI。 +# 否则不带 gpui-shell 的默认 `cargo test -p pebrel` 也会编译整棵 GPUI。 video-background = [ "gpui-shell", "dep:anyhow", diff --git a/nebula_app/README.md b/pebrel_app/README.md similarity index 100% rename from nebula_app/README.md rename to pebrel_app/README.md diff --git a/nebula_app/assets/icons/nebula-agent-antigravity.svg b/pebrel_app/assets/icons/nebula-agent-antigravity.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-antigravity.svg rename to pebrel_app/assets/icons/nebula-agent-antigravity.svg diff --git a/nebula_app/assets/icons/nebula-agent-antigravity.svgz b/pebrel_app/assets/icons/nebula-agent-antigravity.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-antigravity.svgz rename to pebrel_app/assets/icons/nebula-agent-antigravity.svgz diff --git a/nebula_app/assets/icons/nebula-agent-codebuddy.svg b/pebrel_app/assets/icons/nebula-agent-codebuddy.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-codebuddy.svg rename to pebrel_app/assets/icons/nebula-agent-codebuddy.svg diff --git a/nebula_app/assets/icons/nebula-agent-codebuddy.svgz b/pebrel_app/assets/icons/nebula-agent-codebuddy.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-codebuddy.svgz rename to pebrel_app/assets/icons/nebula-agent-codebuddy.svgz diff --git a/nebula_app/assets/icons/nebula-agent-copilot.svg b/pebrel_app/assets/icons/nebula-agent-copilot.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-copilot.svg rename to pebrel_app/assets/icons/nebula-agent-copilot.svg diff --git a/nebula_app/assets/icons/nebula-agent-copilot.svgz b/pebrel_app/assets/icons/nebula-agent-copilot.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-copilot.svgz rename to pebrel_app/assets/icons/nebula-agent-copilot.svgz diff --git a/nebula_app/assets/icons/nebula-agent-cursor.svg b/pebrel_app/assets/icons/nebula-agent-cursor.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-cursor.svg rename to pebrel_app/assets/icons/nebula-agent-cursor.svg diff --git a/nebula_app/assets/icons/nebula-agent-cursor.svgz b/pebrel_app/assets/icons/nebula-agent-cursor.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-cursor.svgz rename to pebrel_app/assets/icons/nebula-agent-cursor.svgz diff --git a/nebula_app/assets/icons/nebula-agent-grok.svg b/pebrel_app/assets/icons/nebula-agent-grok.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-grok.svg rename to pebrel_app/assets/icons/nebula-agent-grok.svg diff --git a/nebula_app/assets/icons/nebula-agent-grok.svgz b/pebrel_app/assets/icons/nebula-agent-grok.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-grok.svgz rename to pebrel_app/assets/icons/nebula-agent-grok.svgz diff --git a/nebula_app/assets/icons/nebula-agent-hermes.svg b/pebrel_app/assets/icons/nebula-agent-hermes.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-hermes.svg rename to pebrel_app/assets/icons/nebula-agent-hermes.svg diff --git a/nebula_app/assets/icons/nebula-agent-hermes.svgz b/pebrel_app/assets/icons/nebula-agent-hermes.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-hermes.svgz rename to pebrel_app/assets/icons/nebula-agent-hermes.svgz diff --git a/nebula_app/assets/icons/nebula-agent-openai.svg b/pebrel_app/assets/icons/nebula-agent-openai.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-openai.svg rename to pebrel_app/assets/icons/nebula-agent-openai.svg diff --git a/nebula_app/assets/icons/nebula-agent-openai.svgz b/pebrel_app/assets/icons/nebula-agent-openai.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-openai.svgz rename to pebrel_app/assets/icons/nebula-agent-openai.svgz diff --git a/nebula_app/assets/icons/nebula-agent-opencode.svg b/pebrel_app/assets/icons/nebula-agent-opencode.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-opencode.svg rename to pebrel_app/assets/icons/nebula-agent-opencode.svg diff --git a/nebula_app/assets/icons/nebula-agent-opencode.svgz b/pebrel_app/assets/icons/nebula-agent-opencode.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-opencode.svgz rename to pebrel_app/assets/icons/nebula-agent-opencode.svgz diff --git a/nebula_app/assets/icons/nebula-agent-pi.svg b/pebrel_app/assets/icons/nebula-agent-pi.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-pi.svg rename to pebrel_app/assets/icons/nebula-agent-pi.svg diff --git a/nebula_app/assets/icons/nebula-agent-pi.svgz b/pebrel_app/assets/icons/nebula-agent-pi.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-pi.svgz rename to pebrel_app/assets/icons/nebula-agent-pi.svgz diff --git a/nebula_app/assets/icons/nebula-agent-qoder.svg b/pebrel_app/assets/icons/nebula-agent-qoder.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-qoder.svg rename to pebrel_app/assets/icons/nebula-agent-qoder.svg diff --git a/nebula_app/assets/icons/nebula-agent-qoder.svgz b/pebrel_app/assets/icons/nebula-agent-qoder.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-qoder.svgz rename to pebrel_app/assets/icons/nebula-agent-qoder.svgz diff --git a/nebula_app/assets/icons/nebula-agent-qwen.svg b/pebrel_app/assets/icons/nebula-agent-qwen.svg similarity index 100% rename from nebula_app/assets/icons/nebula-agent-qwen.svg rename to pebrel_app/assets/icons/nebula-agent-qwen.svg diff --git a/nebula_app/assets/icons/nebula-agent-qwen.svgz b/pebrel_app/assets/icons/nebula-agent-qwen.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-agent-qwen.svgz rename to pebrel_app/assets/icons/nebula-agent-qwen.svgz diff --git a/nebula_app/assets/icons/nebula-backup-check.svg b/pebrel_app/assets/icons/nebula-backup-check.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-check.svg rename to pebrel_app/assets/icons/nebula-backup-check.svg diff --git a/nebula_app/assets/icons/nebula-backup-check.svgz b/pebrel_app/assets/icons/nebula-backup-check.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-check.svgz rename to pebrel_app/assets/icons/nebula-backup-check.svgz diff --git a/nebula_app/assets/icons/nebula-backup-cloud.svg b/pebrel_app/assets/icons/nebula-backup-cloud.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-cloud.svg rename to pebrel_app/assets/icons/nebula-backup-cloud.svg diff --git a/nebula_app/assets/icons/nebula-backup-cloud.svgz b/pebrel_app/assets/icons/nebula-backup-cloud.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-cloud.svgz rename to pebrel_app/assets/icons/nebula-backup-cloud.svgz diff --git a/nebula_app/assets/icons/nebula-backup-database.svg b/pebrel_app/assets/icons/nebula-backup-database.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-database.svg rename to pebrel_app/assets/icons/nebula-backup-database.svg diff --git a/nebula_app/assets/icons/nebula-backup-database.svgz b/pebrel_app/assets/icons/nebula-backup-database.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-database.svgz rename to pebrel_app/assets/icons/nebula-backup-database.svgz diff --git a/nebula_app/assets/icons/nebula-backup-drive.svg b/pebrel_app/assets/icons/nebula-backup-drive.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-drive.svg rename to pebrel_app/assets/icons/nebula-backup-drive.svg diff --git a/nebula_app/assets/icons/nebula-backup-drive.svgz b/pebrel_app/assets/icons/nebula-backup-drive.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-drive.svgz rename to pebrel_app/assets/icons/nebula-backup-drive.svgz diff --git a/nebula_app/assets/icons/nebula-backup-folder.svg b/pebrel_app/assets/icons/nebula-backup-folder.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-folder.svg rename to pebrel_app/assets/icons/nebula-backup-folder.svg diff --git a/nebula_app/assets/icons/nebula-backup-folder.svgz b/pebrel_app/assets/icons/nebula-backup-folder.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-folder.svgz rename to pebrel_app/assets/icons/nebula-backup-folder.svgz diff --git a/nebula_app/assets/icons/nebula-backup-globe.svg b/pebrel_app/assets/icons/nebula-backup-globe.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-globe.svg rename to pebrel_app/assets/icons/nebula-backup-globe.svg diff --git a/nebula_app/assets/icons/nebula-backup-globe.svgz b/pebrel_app/assets/icons/nebula-backup-globe.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-globe.svgz rename to pebrel_app/assets/icons/nebula-backup-globe.svgz diff --git a/nebula_app/assets/icons/nebula-backup-lock.svg b/pebrel_app/assets/icons/nebula-backup-lock.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-lock.svg rename to pebrel_app/assets/icons/nebula-backup-lock.svg diff --git a/nebula_app/assets/icons/nebula-backup-lock.svgz b/pebrel_app/assets/icons/nebula-backup-lock.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-lock.svgz rename to pebrel_app/assets/icons/nebula-backup-lock.svgz diff --git a/nebula_app/assets/icons/nebula-backup-server.svg b/pebrel_app/assets/icons/nebula-backup-server.svg similarity index 100% rename from nebula_app/assets/icons/nebula-backup-server.svg rename to pebrel_app/assets/icons/nebula-backup-server.svg diff --git a/nebula_app/assets/icons/nebula-backup-server.svgz b/pebrel_app/assets/icons/nebula-backup-server.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-backup-server.svgz rename to pebrel_app/assets/icons/nebula-backup-server.svgz diff --git a/nebula_app/assets/icons/nebula-brain.svg b/pebrel_app/assets/icons/nebula-brain.svg similarity index 100% rename from nebula_app/assets/icons/nebula-brain.svg rename to pebrel_app/assets/icons/nebula-brain.svg diff --git a/nebula_app/assets/icons/nebula-brain.svgz b/pebrel_app/assets/icons/nebula-brain.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-brain.svgz rename to pebrel_app/assets/icons/nebula-brain.svgz diff --git a/nebula_app/assets/icons/nebula-clipboard-paste.svg b/pebrel_app/assets/icons/nebula-clipboard-paste.svg similarity index 100% rename from nebula_app/assets/icons/nebula-clipboard-paste.svg rename to pebrel_app/assets/icons/nebula-clipboard-paste.svg diff --git a/nebula_app/assets/icons/nebula-clipboard-paste.svgz b/pebrel_app/assets/icons/nebula-clipboard-paste.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-clipboard-paste.svgz rename to pebrel_app/assets/icons/nebula-clipboard-paste.svgz diff --git a/nebula_app/assets/icons/nebula-clock.svg b/pebrel_app/assets/icons/nebula-clock.svg similarity index 100% rename from nebula_app/assets/icons/nebula-clock.svg rename to pebrel_app/assets/icons/nebula-clock.svg diff --git a/nebula_app/assets/icons/nebula-clock.svgz b/pebrel_app/assets/icons/nebula-clock.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-clock.svgz rename to pebrel_app/assets/icons/nebula-clock.svgz diff --git a/nebula_app/assets/icons/nebula-command-manager.svg b/pebrel_app/assets/icons/nebula-command-manager.svg similarity index 100% rename from nebula_app/assets/icons/nebula-command-manager.svg rename to pebrel_app/assets/icons/nebula-command-manager.svg diff --git a/nebula_app/assets/icons/nebula-command-manager.svgz b/pebrel_app/assets/icons/nebula-command-manager.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-command-manager.svgz rename to pebrel_app/assets/icons/nebula-command-manager.svgz diff --git a/nebula_app/assets/icons/nebula-credit-card.svg b/pebrel_app/assets/icons/nebula-credit-card.svg similarity index 100% rename from nebula_app/assets/icons/nebula-credit-card.svg rename to pebrel_app/assets/icons/nebula-credit-card.svg diff --git a/nebula_app/assets/icons/nebula-credit-card.svgz b/pebrel_app/assets/icons/nebula-credit-card.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-credit-card.svgz rename to pebrel_app/assets/icons/nebula-credit-card.svgz diff --git a/nebula_app/assets/icons/nebula-download.svg b/pebrel_app/assets/icons/nebula-download.svg similarity index 100% rename from nebula_app/assets/icons/nebula-download.svg rename to pebrel_app/assets/icons/nebula-download.svg diff --git a/nebula_app/assets/icons/nebula-download.svgz b/pebrel_app/assets/icons/nebula-download.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-download.svgz rename to pebrel_app/assets/icons/nebula-download.svgz diff --git a/nebula_app/assets/icons/nebula-keymap.svg b/pebrel_app/assets/icons/nebula-keymap.svg similarity index 100% rename from nebula_app/assets/icons/nebula-keymap.svg rename to pebrel_app/assets/icons/nebula-keymap.svg diff --git a/nebula_app/assets/icons/nebula-keymap.svgz b/pebrel_app/assets/icons/nebula-keymap.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-keymap.svgz rename to pebrel_app/assets/icons/nebula-keymap.svgz diff --git a/nebula_app/assets/icons/nebula-layout-grid.svg b/pebrel_app/assets/icons/nebula-layout-grid.svg similarity index 100% rename from nebula_app/assets/icons/nebula-layout-grid.svg rename to pebrel_app/assets/icons/nebula-layout-grid.svg diff --git a/nebula_app/assets/icons/nebula-layout-grid.svgz b/pebrel_app/assets/icons/nebula-layout-grid.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-layout-grid.svgz rename to pebrel_app/assets/icons/nebula-layout-grid.svgz diff --git a/nebula_app/assets/icons/nebula-mouse-pointer.svg b/pebrel_app/assets/icons/nebula-mouse-pointer.svg similarity index 100% rename from nebula_app/assets/icons/nebula-mouse-pointer.svg rename to pebrel_app/assets/icons/nebula-mouse-pointer.svg diff --git a/nebula_app/assets/icons/nebula-mouse-pointer.svgz b/pebrel_app/assets/icons/nebula-mouse-pointer.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-mouse-pointer.svgz rename to pebrel_app/assets/icons/nebula-mouse-pointer.svgz diff --git a/nebula_app/assets/icons/nebula-pencil.svg b/pebrel_app/assets/icons/nebula-pencil.svg similarity index 100% rename from nebula_app/assets/icons/nebula-pencil.svg rename to pebrel_app/assets/icons/nebula-pencil.svg diff --git a/nebula_app/assets/icons/nebula-pencil.svgz b/pebrel_app/assets/icons/nebula-pencil.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-pencil.svgz rename to pebrel_app/assets/icons/nebula-pencil.svgz diff --git a/nebula_app/assets/icons/nebula-phone.svg b/pebrel_app/assets/icons/nebula-phone.svg similarity index 100% rename from nebula_app/assets/icons/nebula-phone.svg rename to pebrel_app/assets/icons/nebula-phone.svg diff --git a/nebula_app/assets/icons/nebula-phone.svgz b/pebrel_app/assets/icons/nebula-phone.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-phone.svgz rename to pebrel_app/assets/icons/nebula-phone.svgz diff --git a/nebula_app/assets/icons/nebula-pin.svg b/pebrel_app/assets/icons/nebula-pin.svg similarity index 100% rename from nebula_app/assets/icons/nebula-pin.svg rename to pebrel_app/assets/icons/nebula-pin.svg diff --git a/nebula_app/assets/icons/nebula-pin.svgz b/pebrel_app/assets/icons/nebula-pin.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-pin.svgz rename to pebrel_app/assets/icons/nebula-pin.svgz diff --git a/nebula_app/assets/icons/nebula-provider-anthropic.svg b/pebrel_app/assets/icons/nebula-provider-anthropic.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-anthropic.svg rename to pebrel_app/assets/icons/nebula-provider-anthropic.svg diff --git a/nebula_app/assets/icons/nebula-provider-anthropic.svgz b/pebrel_app/assets/icons/nebula-provider-anthropic.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-anthropic.svgz rename to pebrel_app/assets/icons/nebula-provider-anthropic.svgz diff --git a/nebula_app/assets/icons/nebula-provider-azure.svg b/pebrel_app/assets/icons/nebula-provider-azure.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-azure.svg rename to pebrel_app/assets/icons/nebula-provider-azure.svg diff --git a/nebula_app/assets/icons/nebula-provider-azure.svgz b/pebrel_app/assets/icons/nebula-provider-azure.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-azure.svgz rename to pebrel_app/assets/icons/nebula-provider-azure.svgz diff --git a/nebula_app/assets/icons/nebula-provider-deepseek.svg b/pebrel_app/assets/icons/nebula-provider-deepseek.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-deepseek.svg rename to pebrel_app/assets/icons/nebula-provider-deepseek.svg diff --git a/nebula_app/assets/icons/nebula-provider-deepseek.svgz b/pebrel_app/assets/icons/nebula-provider-deepseek.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-deepseek.svgz rename to pebrel_app/assets/icons/nebula-provider-deepseek.svgz diff --git a/nebula_app/assets/icons/nebula-provider-doubao.svg b/pebrel_app/assets/icons/nebula-provider-doubao.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-doubao.svg rename to pebrel_app/assets/icons/nebula-provider-doubao.svg diff --git a/nebula_app/assets/icons/nebula-provider-doubao.svgz b/pebrel_app/assets/icons/nebula-provider-doubao.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-doubao.svgz rename to pebrel_app/assets/icons/nebula-provider-doubao.svgz diff --git a/nebula_app/assets/icons/nebula-provider-gemini.svg b/pebrel_app/assets/icons/nebula-provider-gemini.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-gemini.svg rename to pebrel_app/assets/icons/nebula-provider-gemini.svg diff --git a/nebula_app/assets/icons/nebula-provider-gemini.svgz b/pebrel_app/assets/icons/nebula-provider-gemini.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-gemini.svgz rename to pebrel_app/assets/icons/nebula-provider-gemini.svgz diff --git a/nebula_app/assets/icons/nebula-provider-ollama.svg b/pebrel_app/assets/icons/nebula-provider-ollama.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-ollama.svg rename to pebrel_app/assets/icons/nebula-provider-ollama.svg diff --git a/nebula_app/assets/icons/nebula-provider-ollama.svgz b/pebrel_app/assets/icons/nebula-provider-ollama.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-ollama.svgz rename to pebrel_app/assets/icons/nebula-provider-ollama.svgz diff --git a/nebula_app/assets/icons/nebula-provider-openrouter.svg b/pebrel_app/assets/icons/nebula-provider-openrouter.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-openrouter.svg rename to pebrel_app/assets/icons/nebula-provider-openrouter.svg diff --git a/nebula_app/assets/icons/nebula-provider-openrouter.svgz b/pebrel_app/assets/icons/nebula-provider-openrouter.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-openrouter.svgz rename to pebrel_app/assets/icons/nebula-provider-openrouter.svgz diff --git a/nebula_app/assets/icons/nebula-provider-qwen.svg b/pebrel_app/assets/icons/nebula-provider-qwen.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-qwen.svg rename to pebrel_app/assets/icons/nebula-provider-qwen.svg diff --git a/nebula_app/assets/icons/nebula-provider-qwen.svgz b/pebrel_app/assets/icons/nebula-provider-qwen.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-qwen.svgz rename to pebrel_app/assets/icons/nebula-provider-qwen.svgz diff --git a/nebula_app/assets/icons/nebula-provider-xiaomimimo.svg b/pebrel_app/assets/icons/nebula-provider-xiaomimimo.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-xiaomimimo.svg rename to pebrel_app/assets/icons/nebula-provider-xiaomimimo.svg diff --git a/nebula_app/assets/icons/nebula-provider-xiaomimimo.svgz b/pebrel_app/assets/icons/nebula-provider-xiaomimimo.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-xiaomimimo.svgz rename to pebrel_app/assets/icons/nebula-provider-xiaomimimo.svgz diff --git a/nebula_app/assets/icons/nebula-provider-zhipu.svg b/pebrel_app/assets/icons/nebula-provider-zhipu.svg similarity index 100% rename from nebula_app/assets/icons/nebula-provider-zhipu.svg rename to pebrel_app/assets/icons/nebula-provider-zhipu.svg diff --git a/nebula_app/assets/icons/nebula-provider-zhipu.svgz b/pebrel_app/assets/icons/nebula-provider-zhipu.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-provider-zhipu.svgz rename to pebrel_app/assets/icons/nebula-provider-zhipu.svgz diff --git a/nebula_app/assets/icons/nebula-puzzle.svg b/pebrel_app/assets/icons/nebula-puzzle.svg similarity index 100% rename from nebula_app/assets/icons/nebula-puzzle.svg rename to pebrel_app/assets/icons/nebula-puzzle.svg diff --git a/nebula_app/assets/icons/nebula-puzzle.svgz b/pebrel_app/assets/icons/nebula-puzzle.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-puzzle.svgz rename to pebrel_app/assets/icons/nebula-puzzle.svgz diff --git a/nebula_app/assets/icons/nebula-refresh.svg b/pebrel_app/assets/icons/nebula-refresh.svg similarity index 100% rename from nebula_app/assets/icons/nebula-refresh.svg rename to pebrel_app/assets/icons/nebula-refresh.svg diff --git a/nebula_app/assets/icons/nebula-refresh.svgz b/pebrel_app/assets/icons/nebula-refresh.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-refresh.svgz rename to pebrel_app/assets/icons/nebula-refresh.svgz diff --git a/nebula_app/assets/icons/nebula-shield.svg b/pebrel_app/assets/icons/nebula-shield.svg similarity index 100% rename from nebula_app/assets/icons/nebula-shield.svg rename to pebrel_app/assets/icons/nebula-shield.svg diff --git a/nebula_app/assets/icons/nebula-shield.svgz b/pebrel_app/assets/icons/nebula-shield.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-shield.svgz rename to pebrel_app/assets/icons/nebula-shield.svgz diff --git a/nebula_app/assets/icons/nebula-sliders.svg b/pebrel_app/assets/icons/nebula-sliders.svg similarity index 100% rename from nebula_app/assets/icons/nebula-sliders.svg rename to pebrel_app/assets/icons/nebula-sliders.svg diff --git a/nebula_app/assets/icons/nebula-sliders.svgz b/pebrel_app/assets/icons/nebula-sliders.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-sliders.svgz rename to pebrel_app/assets/icons/nebula-sliders.svgz diff --git a/nebula_app/assets/icons/nebula-spinner-arc.svg b/pebrel_app/assets/icons/nebula-spinner-arc.svg similarity index 100% rename from nebula_app/assets/icons/nebula-spinner-arc.svg rename to pebrel_app/assets/icons/nebula-spinner-arc.svg diff --git a/nebula_app/assets/icons/nebula-spinner-arc.svgz b/pebrel_app/assets/icons/nebula-spinner-arc.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-spinner-arc.svgz rename to pebrel_app/assets/icons/nebula-spinner-arc.svgz diff --git a/nebula_app/assets/icons/nebula-spinner-track.svg b/pebrel_app/assets/icons/nebula-spinner-track.svg similarity index 100% rename from nebula_app/assets/icons/nebula-spinner-track.svg rename to pebrel_app/assets/icons/nebula-spinner-track.svg diff --git a/nebula_app/assets/icons/nebula-spinner-track.svgz b/pebrel_app/assets/icons/nebula-spinner-track.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-spinner-track.svgz rename to pebrel_app/assets/icons/nebula-spinner-track.svgz diff --git a/nebula_app/assets/icons/nebula-terminal.svg b/pebrel_app/assets/icons/nebula-terminal.svg similarity index 100% rename from nebula_app/assets/icons/nebula-terminal.svg rename to pebrel_app/assets/icons/nebula-terminal.svg diff --git a/nebula_app/assets/icons/nebula-terminal.svgz b/pebrel_app/assets/icons/nebula-terminal.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-terminal.svgz rename to pebrel_app/assets/icons/nebula-terminal.svgz diff --git a/nebula_app/assets/icons/nebula-trash-2.svg b/pebrel_app/assets/icons/nebula-trash-2.svg similarity index 100% rename from nebula_app/assets/icons/nebula-trash-2.svg rename to pebrel_app/assets/icons/nebula-trash-2.svg diff --git a/nebula_app/assets/icons/nebula-trash-2.svgz b/pebrel_app/assets/icons/nebula-trash-2.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-trash-2.svgz rename to pebrel_app/assets/icons/nebula-trash-2.svgz diff --git a/nebula_app/assets/icons/nebula-vcs-changes.svg b/pebrel_app/assets/icons/nebula-vcs-changes.svg similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-changes.svg rename to pebrel_app/assets/icons/nebula-vcs-changes.svg diff --git a/nebula_app/assets/icons/nebula-vcs-changes.svgz b/pebrel_app/assets/icons/nebula-vcs-changes.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-changes.svgz rename to pebrel_app/assets/icons/nebula-vcs-changes.svgz diff --git a/nebula_app/assets/icons/nebula-vcs-conflict.svg b/pebrel_app/assets/icons/nebula-vcs-conflict.svg similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-conflict.svg rename to pebrel_app/assets/icons/nebula-vcs-conflict.svg diff --git a/nebula_app/assets/icons/nebula-vcs-conflict.svgz b/pebrel_app/assets/icons/nebula-vcs-conflict.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-conflict.svgz rename to pebrel_app/assets/icons/nebula-vcs-conflict.svgz diff --git a/nebula_app/assets/icons/nebula-vcs-history.svg b/pebrel_app/assets/icons/nebula-vcs-history.svg similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-history.svg rename to pebrel_app/assets/icons/nebula-vcs-history.svg diff --git a/nebula_app/assets/icons/nebula-vcs-history.svgz b/pebrel_app/assets/icons/nebula-vcs-history.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-vcs-history.svgz rename to pebrel_app/assets/icons/nebula-vcs-history.svgz diff --git a/nebula_app/assets/icons/nebula-waiting-hand.svg b/pebrel_app/assets/icons/nebula-waiting-hand.svg similarity index 100% rename from nebula_app/assets/icons/nebula-waiting-hand.svg rename to pebrel_app/assets/icons/nebula-waiting-hand.svg diff --git a/nebula_app/assets/icons/nebula-waiting-hand.svgz b/pebrel_app/assets/icons/nebula-waiting-hand.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-waiting-hand.svgz rename to pebrel_app/assets/icons/nebula-waiting-hand.svgz diff --git a/nebula_app/assets/icons/nebula-wallet.svg b/pebrel_app/assets/icons/nebula-wallet.svg similarity index 100% rename from nebula_app/assets/icons/nebula-wallet.svg rename to pebrel_app/assets/icons/nebula-wallet.svg diff --git a/nebula_app/assets/icons/nebula-wallet.svgz b/pebrel_app/assets/icons/nebula-wallet.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-wallet.svgz rename to pebrel_app/assets/icons/nebula-wallet.svgz diff --git a/nebula_app/assets/icons/nebula-waypoints.svg b/pebrel_app/assets/icons/nebula-waypoints.svg similarity index 100% rename from nebula_app/assets/icons/nebula-waypoints.svg rename to pebrel_app/assets/icons/nebula-waypoints.svg diff --git a/nebula_app/assets/icons/nebula-waypoints.svgz b/pebrel_app/assets/icons/nebula-waypoints.svgz similarity index 100% rename from nebula_app/assets/icons/nebula-waypoints.svgz rename to pebrel_app/assets/icons/nebula-waypoints.svgz diff --git a/nebula_app/build.rs b/pebrel_app/build.rs similarity index 98% rename from nebula_app/build.rs rename to pebrel_app/build.rs index 02136957d..f538ada67 100644 --- a/nebula_app/build.rs +++ b/pebrel_app/build.rs @@ -82,7 +82,7 @@ fn generate_legacy_gl_bindings() { #[cfg(windows)] fn deploy_conpty() { let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); - // workspace_root/nebula_app -> workspace_root + // workspace_root/pebrel_app -> workspace_root let workspace_root = Path::new(&manifest_dir).parent().unwrap(); let src_dir = workspace_root.join("assets").join("windows").join("conhost"); diff --git a/nebula_app/build/i18n.rs b/pebrel_app/build/i18n.rs similarity index 94% rename from nebula_app/build/i18n.rs rename to pebrel_app/build/i18n.rs index 036bbcb18..9a7378f1a 100644 --- a/nebula_app/build/i18n.rs +++ b/pebrel_app/build/i18n.rs @@ -2,7 +2,7 @@ use std::collections::{BTreeMap, BTreeSet}; use std::fmt::Write; use std::path::Path; -use nebula_settings::LanguagePref; +use pebrel_settings::LanguagePref; #[path = "i18n/catalog.rs"] mod catalog; @@ -61,18 +61,18 @@ pub fn generate(directory: &Path, output: &Path) -> Result<(), String> { for info in LanguagePref::LANGUAGES { write!(code, "Self::{},", info.rust_variant).unwrap(); } - code.push_str("];\npub const fn shared(self) -> nebula_settings::LanguagePref { match self {\nSelf::System => nebula_settings::LanguagePref::System,\n"); + code.push_str("];\npub const fn shared(self) -> pebrel_settings::LanguagePref { match self {\nSelf::System => pebrel_settings::LanguagePref::System,\n"); for info in LanguagePref::LANGUAGES { - writeln!(code, "Self::{0} => nebula_settings::LanguagePref::{0},", info.rust_variant) + writeln!(code, "Self::{0} => pebrel_settings::LanguagePref::{0},", info.rust_variant) .unwrap(); } code.push_str("}}\npub const fn explicit(self) -> Option { match self {\nSelf::System => None,\n"); for info in LanguagePref::LANGUAGES { writeln!(code, "Self::{0} => Some(UiLanguage::{0}),", info.rust_variant).unwrap(); } - code.push_str("}}}\nimpl From for LanguagePreference {\nfn from(value: nebula_settings::LanguagePref) -> Self {match value {\nnebula_settings::LanguagePref::System => Self::System,\n"); + code.push_str("}}}\nimpl From for LanguagePreference {\nfn from(value: pebrel_settings::LanguagePref) -> Self {match value {\npebrel_settings::LanguagePref::System => Self::System,\n"); for info in LanguagePref::LANGUAGES { - writeln!(code, "nebula_settings::LanguagePref::{0} => Self::{0},", info.rust_variant) + writeln!(code, "pebrel_settings::LanguagePref::{0} => Self::{0},", info.rust_variant) .unwrap(); } code.push_str("}}}\nimpl UiLanguage {\npub const ALL: &'static [Self] = &["); @@ -156,7 +156,7 @@ mod tests { let root = std::env::temp_dir() .join(format!("pebrel-catalog-test-{}-{sequence}", std::process::id())); std::fs::create_dir(&root).unwrap(); - for info in nebula_settings::LanguagePref::LANGUAGES { + for info in pebrel_settings::LanguagePref::LANGUAGES { let source = match info.code { "en-US" => english, "zh-CN" => chinese, diff --git a/nebula_app/build/i18n/catalog.rs b/pebrel_app/build/i18n/catalog.rs similarity index 100% rename from nebula_app/build/i18n/catalog.rs rename to pebrel_app/build/i18n/catalog.rs diff --git a/nebula_app/examples/plugins/lua-overview/init.luau b/pebrel_app/examples/plugins/lua-overview/init.luau similarity index 100% rename from nebula_app/examples/plugins/lua-overview/init.luau rename to pebrel_app/examples/plugins/lua-overview/init.luau diff --git a/nebula_app/examples/plugins/lua-overview/plugin.toml b/pebrel_app/examples/plugins/lua-overview/plugin.toml similarity index 100% rename from nebula_app/examples/plugins/lua-overview/plugin.toml rename to pebrel_app/examples/plugins/lua-overview/plugin.toml diff --git a/nebula_app/examples/plugins/native-overview/plugin.toml b/pebrel_app/examples/plugins/native-overview/plugin.toml similarity index 100% rename from nebula_app/examples/plugins/native-overview/plugin.toml rename to pebrel_app/examples/plugins/native-overview/plugin.toml diff --git a/nebula_app/examples/plugins/theme-generator/init.luau b/pebrel_app/examples/plugins/theme-generator/init.luau similarity index 100% rename from nebula_app/examples/plugins/theme-generator/init.luau rename to pebrel_app/examples/plugins/theme-generator/init.luau diff --git a/nebula_app/examples/plugins/theme-generator/plugin.toml b/pebrel_app/examples/plugins/theme-generator/plugin.toml similarity index 100% rename from nebula_app/examples/plugins/theme-generator/plugin.toml rename to pebrel_app/examples/plugins/theme-generator/plugin.toml diff --git a/nebula_app/examples/shaders/background.glsl b/pebrel_app/examples/shaders/background.glsl similarity index 100% rename from nebula_app/examples/shaders/background.glsl rename to pebrel_app/examples/shaders/background.glsl diff --git a/nebula_app/examples/shaders/scanlines.frag b/pebrel_app/examples/shaders/scanlines.frag similarity index 100% rename from nebula_app/examples/shaders/scanlines.frag rename to pebrel_app/examples/shaders/scanlines.frag diff --git a/nebula_app/extra b/pebrel_app/extra similarity index 100% rename from nebula_app/extra rename to pebrel_app/extra diff --git a/nebula_app/i18n/de-DE.json b/pebrel_app/i18n/de-DE.json similarity index 100% rename from nebula_app/i18n/de-DE.json rename to pebrel_app/i18n/de-DE.json diff --git a/nebula_app/i18n/en-US.json b/pebrel_app/i18n/en-US.json similarity index 100% rename from nebula_app/i18n/en-US.json rename to pebrel_app/i18n/en-US.json diff --git a/nebula_app/i18n/es-ES.json b/pebrel_app/i18n/es-ES.json similarity index 100% rename from nebula_app/i18n/es-ES.json rename to pebrel_app/i18n/es-ES.json diff --git a/nebula_app/i18n/fr-FR.json b/pebrel_app/i18n/fr-FR.json similarity index 100% rename from nebula_app/i18n/fr-FR.json rename to pebrel_app/i18n/fr-FR.json diff --git a/nebula_app/i18n/it-IT.json b/pebrel_app/i18n/it-IT.json similarity index 100% rename from nebula_app/i18n/it-IT.json rename to pebrel_app/i18n/it-IT.json diff --git a/nebula_app/i18n/ja-JP.json b/pebrel_app/i18n/ja-JP.json similarity index 100% rename from nebula_app/i18n/ja-JP.json rename to pebrel_app/i18n/ja-JP.json diff --git a/nebula_app/i18n/ko-KR.json b/pebrel_app/i18n/ko-KR.json similarity index 100% rename from nebula_app/i18n/ko-KR.json rename to pebrel_app/i18n/ko-KR.json diff --git a/nebula_app/i18n/pt-BR.json b/pebrel_app/i18n/pt-BR.json similarity index 100% rename from nebula_app/i18n/pt-BR.json rename to pebrel_app/i18n/pt-BR.json diff --git a/nebula_app/i18n/ru-RU.json b/pebrel_app/i18n/ru-RU.json similarity index 100% rename from nebula_app/i18n/ru-RU.json rename to pebrel_app/i18n/ru-RU.json diff --git a/nebula_app/i18n/zh-CN.json b/pebrel_app/i18n/zh-CN.json similarity index 100% rename from nebula_app/i18n/zh-CN.json rename to pebrel_app/i18n/zh-CN.json diff --git a/nebula_app/i18n/zh-TW.json b/pebrel_app/i18n/zh-TW.json similarity index 100% rename from nebula_app/i18n/zh-TW.json rename to pebrel_app/i18n/zh-TW.json diff --git a/nebula_app/res/gles2/text.f.glsl b/pebrel_app/res/gles2/text.f.glsl similarity index 100% rename from nebula_app/res/gles2/text.f.glsl rename to pebrel_app/res/gles2/text.f.glsl diff --git a/nebula_app/res/gles2/text.v.glsl b/pebrel_app/res/gles2/text.v.glsl similarity index 100% rename from nebula_app/res/gles2/text.v.glsl rename to pebrel_app/res/gles2/text.v.glsl diff --git a/nebula_app/res/glsl3/text.f.glsl b/pebrel_app/res/glsl3/text.f.glsl similarity index 100% rename from nebula_app/res/glsl3/text.f.glsl rename to pebrel_app/res/glsl3/text.f.glsl diff --git a/nebula_app/res/glsl3/text.v.glsl b/pebrel_app/res/glsl3/text.v.glsl similarity index 100% rename from nebula_app/res/glsl3/text.v.glsl rename to pebrel_app/res/glsl3/text.v.glsl diff --git a/nebula_app/res/hooks/opencode.js b/pebrel_app/res/hooks/opencode.js similarity index 100% rename from nebula_app/res/hooks/opencode.js rename to pebrel_app/res/hooks/opencode.js diff --git a/nebula_app/res/hooks/pi.ts b/pebrel_app/res/hooks/pi.ts similarity index 100% rename from nebula_app/res/hooks/pi.ts rename to pebrel_app/res/hooks/pi.ts diff --git a/nebula_app/res/hooks/remote_bridge.py b/pebrel_app/res/hooks/remote_bridge.py similarity index 100% rename from nebula_app/res/hooks/remote_bridge.py rename to pebrel_app/res/hooks/remote_bridge.py diff --git a/nebula_app/res/hooks/remote_files.py b/pebrel_app/res/hooks/remote_files.py similarity index 100% rename from nebula_app/res/hooks/remote_files.py rename to pebrel_app/res/hooks/remote_files.py diff --git a/nebula_app/res/hooks/remote_shell.py b/pebrel_app/res/hooks/remote_shell.py similarity index 100% rename from nebula_app/res/hooks/remote_shell.py rename to pebrel_app/res/hooks/remote_shell.py diff --git a/nebula_app/res/hooks/remote_tmux.py b/pebrel_app/res/hooks/remote_tmux.py similarity index 100% rename from nebula_app/res/hooks/remote_tmux.py rename to pebrel_app/res/hooks/remote_tmux.py diff --git a/nebula_app/res/image.f.glsl b/pebrel_app/res/image.f.glsl similarity index 100% rename from nebula_app/res/image.f.glsl rename to pebrel_app/res/image.f.glsl diff --git a/nebula_app/res/image.v.glsl b/pebrel_app/res/image.v.glsl similarity index 100% rename from nebula_app/res/image.v.glsl rename to pebrel_app/res/image.v.glsl diff --git a/nebula_app/res/math.f.glsl b/pebrel_app/res/math.f.glsl similarity index 100% rename from nebula_app/res/math.f.glsl rename to pebrel_app/res/math.f.glsl diff --git a/nebula_app/res/math.v.glsl b/pebrel_app/res/math.v.glsl similarity index 100% rename from nebula_app/res/math.v.glsl rename to pebrel_app/res/math.v.glsl diff --git a/nebula_app/res/prompt-suggestions/claude/.claude-plugin/plugin.json b/pebrel_app/res/prompt-suggestions/claude/.claude-plugin/plugin.json similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/.claude-plugin/plugin.json rename to pebrel_app/res/prompt-suggestions/claude/.claude-plugin/plugin.json diff --git a/nebula_app/res/prompt-suggestions/claude/README.md b/pebrel_app/res/prompt-suggestions/claude/README.md similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/README.md rename to pebrel_app/res/prompt-suggestions/claude/README.md diff --git a/nebula_app/res/prompt-suggestions/claude/hooks/hooks.json b/pebrel_app/res/prompt-suggestions/claude/hooks/hooks.json similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/hooks/hooks.json rename to pebrel_app/res/prompt-suggestions/claude/hooks/hooks.json diff --git a/nebula_app/res/prompt-suggestions/claude/hooks/prompt.js b/pebrel_app/res/prompt-suggestions/claude/hooks/prompt.js similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/hooks/prompt.js rename to pebrel_app/res/prompt-suggestions/claude/hooks/prompt.js diff --git a/nebula_app/res/prompt-suggestions/claude/package.json b/pebrel_app/res/prompt-suggestions/claude/package.json similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/package.json rename to pebrel_app/res/prompt-suggestions/claude/package.json diff --git a/nebula_app/res/prompt-suggestions/claude/tests/prompt.test.mjs b/pebrel_app/res/prompt-suggestions/claude/tests/prompt.test.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/claude/tests/prompt.test.mjs rename to pebrel_app/res/prompt-suggestions/claude/tests/prompt.test.mjs diff --git a/nebula_app/res/prompt-suggestions/opencode/index.tsx b/pebrel_app/res/prompt-suggestions/opencode/index.tsx similarity index 100% rename from nebula_app/res/prompt-suggestions/opencode/index.tsx rename to pebrel_app/res/prompt-suggestions/opencode/index.tsx diff --git a/nebula_app/res/prompt-suggestions/opencode/session.mjs b/pebrel_app/res/prompt-suggestions/opencode/session.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/opencode/session.mjs rename to pebrel_app/res/prompt-suggestions/opencode/session.mjs diff --git a/nebula_app/res/prompt-suggestions/opencode/session.test.mjs b/pebrel_app/res/prompt-suggestions/opencode/session.test.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/opencode/session.test.mjs rename to pebrel_app/res/prompt-suggestions/opencode/session.test.mjs diff --git a/nebula_app/res/prompt-suggestions/pi/editor.mjs b/pebrel_app/res/prompt-suggestions/pi/editor.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/pi/editor.mjs rename to pebrel_app/res/prompt-suggestions/pi/editor.mjs diff --git a/nebula_app/res/prompt-suggestions/pi/editor.test.mjs b/pebrel_app/res/prompt-suggestions/pi/editor.test.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/pi/editor.test.mjs rename to pebrel_app/res/prompt-suggestions/pi/editor.test.mjs diff --git a/nebula_app/res/prompt-suggestions/pi/index.ts b/pebrel_app/res/prompt-suggestions/pi/index.ts similarity index 100% rename from nebula_app/res/prompt-suggestions/pi/index.ts rename to pebrel_app/res/prompt-suggestions/pi/index.ts diff --git a/nebula_app/res/prompt-suggestions/shared/client.mjs b/pebrel_app/res/prompt-suggestions/shared/client.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/shared/client.mjs rename to pebrel_app/res/prompt-suggestions/shared/client.mjs diff --git a/nebula_app/res/prompt-suggestions/shared/client.test.mjs b/pebrel_app/res/prompt-suggestions/shared/client.test.mjs similarity index 100% rename from nebula_app/res/prompt-suggestions/shared/client.test.mjs rename to pebrel_app/res/prompt-suggestions/shared/client.test.mjs diff --git a/nebula_app/res/prompts/codex_prompt_suggestion.txt b/pebrel_app/res/prompts/codex_prompt_suggestion.txt similarity index 100% rename from nebula_app/res/prompts/codex_prompt_suggestion.txt rename to pebrel_app/res/prompts/codex_prompt_suggestion.txt diff --git a/nebula_app/res/rect.f.glsl b/pebrel_app/res/rect.f.glsl similarity index 100% rename from nebula_app/res/rect.f.glsl rename to pebrel_app/res/rect.f.glsl diff --git a/nebula_app/res/rect.v.glsl b/pebrel_app/res/rect.v.glsl similarity index 100% rename from nebula_app/res/rect.v.glsl rename to pebrel_app/res/rect.v.glsl diff --git a/nebula_app/res/shell/bashrc b/pebrel_app/res/shell/bashrc similarity index 100% rename from nebula_app/res/shell/bashrc rename to pebrel_app/res/shell/bashrc diff --git a/nebula_app/res/shell/powershell.ps1 b/pebrel_app/res/shell/powershell.ps1 similarity index 100% rename from nebula_app/res/shell/powershell.ps1 rename to pebrel_app/res/shell/powershell.ps1 diff --git a/nebula_app/res/shell/ssh-config-reader.py b/pebrel_app/res/shell/ssh-config-reader.py similarity index 100% rename from nebula_app/res/shell/ssh-config-reader.py rename to pebrel_app/res/shell/ssh-config-reader.py diff --git a/nebula_app/res/shell/wsl-guest-probe.sh b/pebrel_app/res/shell/wsl-guest-probe.sh similarity index 89% rename from nebula_app/res/shell/wsl-guest-probe.sh rename to pebrel_app/res/shell/wsl-guest-probe.sh index 4b664c4b5..6207d243a 100644 --- a/nebula_app/res/shell/wsl-guest-probe.sh +++ b/pebrel_app/res/shell/wsl-guest-probe.sh @@ -1,4 +1,4 @@ -# Pebrel WSL guest probe; nebula_app/src/platform/wsl_guest_shell.rs runs it and +# Pebrel WSL guest probe; pebrel_app/src/platform/wsl_guest_shell.rs runs it and # parses the two `name=value` lines it prints. bootstrap=readable for file in .zshenv .zprofile .zshrc; do diff --git a/nebula_app/res/shell/zprofile b/pebrel_app/res/shell/zprofile similarity index 100% rename from nebula_app/res/shell/zprofile rename to pebrel_app/res/shell/zprofile diff --git a/nebula_app/res/shell/zshenv b/pebrel_app/res/shell/zshenv similarity index 100% rename from nebula_app/res/shell/zshenv rename to pebrel_app/res/shell/zshenv diff --git a/nebula_app/res/shell/zshrc b/pebrel_app/res/shell/zshrc similarity index 100% rename from nebula_app/res/shell/zshrc rename to pebrel_app/res/shell/zshrc diff --git a/nebula_app/res/ui.f.glsl b/pebrel_app/res/ui.f.glsl similarity index 100% rename from nebula_app/res/ui.f.glsl rename to pebrel_app/res/ui.f.glsl diff --git a/nebula_app/res/ui.v.glsl b/pebrel_app/res/ui.v.glsl similarity index 100% rename from nebula_app/res/ui.v.glsl rename to pebrel_app/res/ui.v.glsl diff --git a/nebula_app/src/agent_detection/_shared.toml b/pebrel_app/src/agent_detection/_shared.toml similarity index 100% rename from nebula_app/src/agent_detection/_shared.toml rename to pebrel_app/src/agent_detection/_shared.toml diff --git a/nebula_app/src/agent_detection/amp.toml b/pebrel_app/src/agent_detection/amp.toml similarity index 100% rename from nebula_app/src/agent_detection/amp.toml rename to pebrel_app/src/agent_detection/amp.toml diff --git a/nebula_app/src/agent_detection/antigravity.toml b/pebrel_app/src/agent_detection/antigravity.toml similarity index 100% rename from nebula_app/src/agent_detection/antigravity.toml rename to pebrel_app/src/agent_detection/antigravity.toml diff --git a/nebula_app/src/agent_detection/claude.toml b/pebrel_app/src/agent_detection/claude.toml similarity index 100% rename from nebula_app/src/agent_detection/claude.toml rename to pebrel_app/src/agent_detection/claude.toml diff --git a/nebula_app/src/agent_detection/cline.toml b/pebrel_app/src/agent_detection/cline.toml similarity index 100% rename from nebula_app/src/agent_detection/cline.toml rename to pebrel_app/src/agent_detection/cline.toml diff --git a/nebula_app/src/agent_detection/codebuddy.toml b/pebrel_app/src/agent_detection/codebuddy.toml similarity index 100% rename from nebula_app/src/agent_detection/codebuddy.toml rename to pebrel_app/src/agent_detection/codebuddy.toml diff --git a/nebula_app/src/agent_detection/codex.toml b/pebrel_app/src/agent_detection/codex.toml similarity index 100% rename from nebula_app/src/agent_detection/codex.toml rename to pebrel_app/src/agent_detection/codex.toml diff --git a/nebula_app/src/agent_detection/copilot.toml b/pebrel_app/src/agent_detection/copilot.toml similarity index 100% rename from nebula_app/src/agent_detection/copilot.toml rename to pebrel_app/src/agent_detection/copilot.toml diff --git a/nebula_app/src/agent_detection/cursor.toml b/pebrel_app/src/agent_detection/cursor.toml similarity index 100% rename from nebula_app/src/agent_detection/cursor.toml rename to pebrel_app/src/agent_detection/cursor.toml diff --git a/nebula_app/src/agent_detection/devin.toml b/pebrel_app/src/agent_detection/devin.toml similarity index 100% rename from nebula_app/src/agent_detection/devin.toml rename to pebrel_app/src/agent_detection/devin.toml diff --git a/nebula_app/src/agent_detection/droid.toml b/pebrel_app/src/agent_detection/droid.toml similarity index 100% rename from nebula_app/src/agent_detection/droid.toml rename to pebrel_app/src/agent_detection/droid.toml diff --git a/nebula_app/src/agent_detection/gemini.toml b/pebrel_app/src/agent_detection/gemini.toml similarity index 100% rename from nebula_app/src/agent_detection/gemini.toml rename to pebrel_app/src/agent_detection/gemini.toml diff --git a/nebula_app/src/agent_detection/grok.toml b/pebrel_app/src/agent_detection/grok.toml similarity index 100% rename from nebula_app/src/agent_detection/grok.toml rename to pebrel_app/src/agent_detection/grok.toml diff --git a/nebula_app/src/agent_detection/hermes.toml b/pebrel_app/src/agent_detection/hermes.toml similarity index 100% rename from nebula_app/src/agent_detection/hermes.toml rename to pebrel_app/src/agent_detection/hermes.toml diff --git a/nebula_app/src/agent_detection/kilo.toml b/pebrel_app/src/agent_detection/kilo.toml similarity index 100% rename from nebula_app/src/agent_detection/kilo.toml rename to pebrel_app/src/agent_detection/kilo.toml diff --git a/nebula_app/src/agent_detection/kimi.toml b/pebrel_app/src/agent_detection/kimi.toml similarity index 100% rename from nebula_app/src/agent_detection/kimi.toml rename to pebrel_app/src/agent_detection/kimi.toml diff --git a/nebula_app/src/agent_detection/kiro.toml b/pebrel_app/src/agent_detection/kiro.toml similarity index 100% rename from nebula_app/src/agent_detection/kiro.toml rename to pebrel_app/src/agent_detection/kiro.toml diff --git a/nebula_app/src/agent_detection/maki.toml b/pebrel_app/src/agent_detection/maki.toml similarity index 100% rename from nebula_app/src/agent_detection/maki.toml rename to pebrel_app/src/agent_detection/maki.toml diff --git a/nebula_app/src/agent_detection/opencode.toml b/pebrel_app/src/agent_detection/opencode.toml similarity index 100% rename from nebula_app/src/agent_detection/opencode.toml rename to pebrel_app/src/agent_detection/opencode.toml diff --git a/nebula_app/src/agent_detection/pi.toml b/pebrel_app/src/agent_detection/pi.toml similarity index 100% rename from nebula_app/src/agent_detection/pi.toml rename to pebrel_app/src/agent_detection/pi.toml diff --git a/nebula_app/src/agent_detection/qodercli.toml b/pebrel_app/src/agent_detection/qodercli.toml similarity index 100% rename from nebula_app/src/agent_detection/qodercli.toml rename to pebrel_app/src/agent_detection/qodercli.toml diff --git a/nebula_app/src/agent_env.rs b/pebrel_app/src/agent_env.rs similarity index 100% rename from nebula_app/src/agent_env.rs rename to pebrel_app/src/agent_env.rs diff --git a/nebula_app/src/ai_agents.rs b/pebrel_app/src/ai_agents.rs similarity index 99% rename from nebula_app/src/ai_agents.rs rename to pebrel_app/src/ai_agents.rs index 37509a32d..5c05a13c1 100644 --- a/nebula_app/src/ai_agents.rs +++ b/pebrel_app/src/ai_agents.rs @@ -7,7 +7,7 @@ //! //! Detection rules are declarative TOML. Bundled rules cover the popular //! clients; `%APPDATA%\Nebula\agent-detection\.toml` (or the equivalent -//! [`nebula_settings::settings_dir`]) overrides one manifest. Overrides are +//! [`pebrel_settings::settings_dir`]) overrides one manifest. Overrides are //! mtime-checked at most once every two seconds, so rules can be tuned while a //! client is running without putting filesystem work on every frame. @@ -615,7 +615,7 @@ fn override_path(agent: AgentKind) -> PathBuf { settings_dir().join("agent-detection").join(format!("{}.toml", agent.slug())) } -/// Same path contract as nebula-settings, repeated here because that crate is +/// Same path contract as pebrel-settings, repeated here because that crate is /// optional in non-GPUI builds while agent semantics serve both shells. fn settings_dir() -> PathBuf { if let Some(path) = std::env::var_os("NEBULA_CONFIG_DIR").filter(|path| !path.is_empty()) { diff --git a/nebula_app/src/ai_agents/native_title.rs b/pebrel_app/src/ai_agents/native_title.rs similarity index 100% rename from nebula_app/src/ai_agents/native_title.rs rename to pebrel_app/src/ai_agents/native_title.rs diff --git a/nebula_app/src/ai_agents/screen_context.rs b/pebrel_app/src/ai_agents/screen_context.rs similarity index 100% rename from nebula_app/src/ai_agents/screen_context.rs rename to pebrel_app/src/ai_agents/screen_context.rs diff --git a/nebula_app/src/ai_assistant.rs b/pebrel_app/src/ai_assistant.rs similarity index 100% rename from nebula_app/src/ai_assistant.rs rename to pebrel_app/src/ai_assistant.rs diff --git a/nebula_app/src/ai_hook.rs b/pebrel_app/src/ai_hook.rs similarity index 100% rename from nebula_app/src/ai_hook.rs rename to pebrel_app/src/ai_hook.rs diff --git a/nebula_app/src/ai_hook/bridges.rs b/pebrel_app/src/ai_hook/bridges.rs similarity index 100% rename from nebula_app/src/ai_hook/bridges.rs rename to pebrel_app/src/ai_hook/bridges.rs diff --git a/nebula_app/src/ai_hook/event.rs b/pebrel_app/src/ai_hook/event.rs similarity index 100% rename from nebula_app/src/ai_hook/event.rs rename to pebrel_app/src/ai_hook/event.rs diff --git a/nebula_app/src/ai_hook/installation.rs b/pebrel_app/src/ai_hook/installation.rs similarity index 100% rename from nebula_app/src/ai_hook/installation.rs rename to pebrel_app/src/ai_hook/installation.rs diff --git a/nebula_app/src/ai_hook/installation/notify.rs b/pebrel_app/src/ai_hook/installation/notify.rs similarity index 100% rename from nebula_app/src/ai_hook/installation/notify.rs rename to pebrel_app/src/ai_hook/installation/notify.rs diff --git a/nebula_app/src/ai_hook/integrations.rs b/pebrel_app/src/ai_hook/integrations.rs similarity index 99% rename from nebula_app/src/ai_hook/integrations.rs rename to pebrel_app/src/ai_hook/integrations.rs index fe5564b3b..c875a4b97 100644 --- a/nebula_app/src/ai_hook/integrations.rs +++ b/pebrel_app/src/ai_hook/integrations.rs @@ -2,7 +2,7 @@ use std::path::{Path, PathBuf}; -use nebula_settings::AgentHook; +use pebrel_settings::AgentHook; use crate::ai_agents::AgentKind; diff --git a/nebula_app/src/ai_hook/lifecycle.rs b/pebrel_app/src/ai_hook/lifecycle.rs similarity index 100% rename from nebula_app/src/ai_hook/lifecycle.rs rename to pebrel_app/src/ai_hook/lifecycle.rs diff --git a/nebula_app/src/ai_hook/lifecycle/tests.rs b/pebrel_app/src/ai_hook/lifecycle/tests.rs similarity index 100% rename from nebula_app/src/ai_hook/lifecycle/tests.rs rename to pebrel_app/src/ai_hook/lifecycle/tests.rs diff --git a/nebula_app/src/ai_hook/local.rs b/pebrel_app/src/ai_hook/local.rs similarity index 99% rename from nebula_app/src/ai_hook/local.rs rename to pebrel_app/src/ai_hook/local.rs index bd195585c..39fc0c2a1 100644 --- a/nebula_app/src/ai_hook/local.rs +++ b/pebrel_app/src/ai_hook/local.rs @@ -32,11 +32,11 @@ fn announce() { if ANNOUNCED.swap(true, Ordering::Relaxed) { return; } - match claim_setup_announcement(&nebula_settings::settings_dir()) { + match claim_setup_announcement(&pebrel_settings::settings_dir()) { Ok(true) => crate::notify::toast( "Pebrel", crate::i18n::LanguagePreference::from( - nebula_settings::RuntimeSettings::load().language, + pebrel_settings::RuntimeSettings::load().language, ) .resolved() .text(crate::i18n::Message::AiHooksAnnounced), @@ -253,7 +253,7 @@ fn remove_claude_hooks_from(root: &mut Value) -> bool { /// CLI 与设置菜单复用实际安装/移除和读回校验;卸载必须尽力处理所有接入。 pub fn setup_ai_cli(remove: bool) -> i32 { - use nebula_settings::{AgentHook, RawSettings}; + use pebrel_settings::{AgentHook, RawSettings}; let deadline = std::time::Instant::now() + std::time::Duration::from_secs(10); let _lock = loop { match settings::lock() { @@ -274,7 +274,7 @@ pub fn setup_ai_cli(remove: bool) -> i32 { let updates = if remove { AgentHook::all_updates(false) } else { AgentHook::setup_updates() }; let mut failed = false; // 持久选择先于文件操作;其他实例拿到锁后只会看到最新授权。 - if let Err(error) = nebula_settings::persist_keys(&updates) { + if let Err(error) = pebrel_settings::persist_keys(&updates) { eprintln!("无法保存 Hook 开关:{error}"); if !remove { return 1; diff --git a/nebula_app/src/ai_hook/local/antigravity.rs b/pebrel_app/src/ai_hook/local/antigravity.rs similarity index 100% rename from nebula_app/src/ai_hook/local/antigravity.rs rename to pebrel_app/src/ai_hook/local/antigravity.rs diff --git a/nebula_app/src/ai_hook/local/claude_style.rs b/pebrel_app/src/ai_hook/local/claude_style.rs similarity index 99% rename from nebula_app/src/ai_hook/local/claude_style.rs rename to pebrel_app/src/ai_hook/local/claude_style.rs index 9323ed44d..ca2d1148f 100644 --- a/nebula_app/src/ai_hook/local/claude_style.rs +++ b/pebrel_app/src/ai_hook/local/claude_style.rs @@ -4,7 +4,7 @@ use std::io; use std::path::{Path, PathBuf}; -use nebula_settings::AgentHook; +use pebrel_settings::AgentHook; use serde_json::{Value, json}; use super::extended::{command_for, owns_command}; diff --git a/nebula_app/src/ai_hook/local/codex_hooks.rs b/pebrel_app/src/ai_hook/local/codex_hooks.rs similarity index 100% rename from nebula_app/src/ai_hook/local/codex_hooks.rs rename to pebrel_app/src/ai_hook/local/codex_hooks.rs diff --git a/nebula_app/src/ai_hook/local/codex_notify.rs b/pebrel_app/src/ai_hook/local/codex_notify.rs similarity index 100% rename from nebula_app/src/ai_hook/local/codex_notify.rs rename to pebrel_app/src/ai_hook/local/codex_notify.rs diff --git a/nebula_app/src/ai_hook/local/config_guard.rs b/pebrel_app/src/ai_hook/local/config_guard.rs similarity index 97% rename from nebula_app/src/ai_hook/local/config_guard.rs rename to pebrel_app/src/ai_hook/local/config_guard.rs index 6955fd5b3..ff7a1a3e4 100644 --- a/nebula_app/src/ai_hook/local/config_guard.rs +++ b/pebrel_app/src/ai_hook/local/config_guard.rs @@ -1,6 +1,6 @@ //! Install/repair scheduling. Provider file edits remain in their installers. use super::{ManagedSkillInstall, ensure_runtime_skills, settings}; -use nebula_settings::{AgentHook, RawSettings}; +use pebrel_settings::{AgentHook, RawSettings}; use std::collections::HashSet; use std::sync::{ Arc, @@ -109,7 +109,7 @@ fn config_guard(tx: mpsc::SyncSender<()>, rx: mpsc::Receiver<()>, stop: Arc io::Result { - crate::atomic_file::try_lifetime_lock(&nebula_settings::settings_dir().join("agent-hooks"))? + crate::atomic_file::try_lifetime_lock(&pebrel_settings::settings_dir().join("agent-hooks"))? .ok_or_else(|| io::Error::other("Another hook operation is running. Please retry.")) } @@ -201,7 +201,7 @@ pub(crate) fn set_enabled(agent: AgentHook, enabled: bool) -> io::Result<()> { } } // Persist first so another instance's guard cannot reinstall a removed hook. - nebula_settings::persist_keys(&[( + pebrel_settings::persist_keys(&[( agent.settings_key(), if enabled { "1" } else { "0" }.into(), )])?; diff --git a/nebula_app/src/ai_hook/native_events.rs b/pebrel_app/src/ai_hook/native_events.rs similarity index 100% rename from nebula_app/src/ai_hook/native_events.rs rename to pebrel_app/src/ai_hook/native_events.rs diff --git a/nebula_app/src/ai_hook/native_tests.rs b/pebrel_app/src/ai_hook/native_tests.rs similarity index 100% rename from nebula_app/src/ai_hook/native_tests.rs rename to pebrel_app/src/ai_hook/native_tests.rs diff --git a/nebula_app/src/ai_hook/ordering.rs b/pebrel_app/src/ai_hook/ordering.rs similarity index 100% rename from nebula_app/src/ai_hook/ordering.rs rename to pebrel_app/src/ai_hook/ordering.rs diff --git a/nebula_app/src/ai_hook/payload.rs b/pebrel_app/src/ai_hook/payload.rs similarity index 100% rename from nebula_app/src/ai_hook/payload.rs rename to pebrel_app/src/ai_hook/payload.rs diff --git a/nebula_app/src/ai_hook/protocol.rs b/pebrel_app/src/ai_hook/protocol.rs similarity index 99% rename from nebula_app/src/ai_hook/protocol.rs rename to pebrel_app/src/ai_hook/protocol.rs index 402e81871..47a20183b 100644 --- a/nebula_app/src/ai_hook/protocol.rs +++ b/pebrel_app/src/ai_hook/protocol.rs @@ -65,7 +65,7 @@ pub(super) fn parse_envelope(bytes: &[u8]) -> Option { // `session_id`(snake_case);codex notify 带 `thread-id`(kebab-case,即 // rollout uuid)。**claude 分支绝不读 camelCase**:那是别家 hook runner 的 // 写法,把它的 session id 当成 claude 的,就会把一个不存在的会话交给 - // `claude --resume`(见 nebula_hook 的 FOREIGN_HOOK_RUNNERS 注释)。 + // `claude --resume`(见 pebrel_hook 的 FOREIGN_HOOK_RUNNERS 注释)。 let session_id_keys: &[&str] = match source.as_str() { s if claude_style(s) || s == "kimi" => &["session_id"], "codex" if native_codex => &["session_id"], @@ -126,7 +126,7 @@ pub(super) fn parse_envelope(bytes: &[u8]) -> Option { .as_deref() .and_then(AiPermissionMode::parse); let (kind, message) = match source.as_str() { - // 第二道串台门。第一道在 nebula_hook 里靠环境变量判断调用方是不是别家 + // 第二道串台门。第一道在 pebrel_hook 里靠环境变量判断调用方是不是别家 // 的 hook runner;那种门会被上游改名静默失效,所以这里独立再拦一次: // 别家 runner 的载荷用 camelCase 字段名,claude 从不这样发。 s if claude_style(s) && payload.get("hookEventName").is_some() => return None, diff --git a/nebula_app/src/ai_hook/remote.rs b/pebrel_app/src/ai_hook/remote.rs similarity index 99% rename from nebula_app/src/ai_hook/remote.rs rename to pebrel_app/src/ai_hook/remote.rs index 878ffcb06..313540bee 100644 --- a/nebula_app/src/ai_hook/remote.rs +++ b/pebrel_app/src/ai_hook/remote.rs @@ -222,12 +222,12 @@ impl Snapshot { let bashrc = format!( "{}\n{}", include_str!("../../res/shell/bashrc"), - nebula_terminal::tty::connection_shell() + pebrel_terminal::tty::connection_shell() ); let zshrc = format!( "{}\n{}", include_str!("../../res/shell/zshrc"), - nebula_terminal::tty::connection_shell() + pebrel_terminal::tty::connection_shell() ); let mut assets = vec![ ("pebrel-hook", launcher.as_str()), diff --git a/nebula_app/src/ai_hook/remote/tests.rs b/pebrel_app/src/ai_hook/remote/tests.rs similarity index 100% rename from nebula_app/src/ai_hook/remote/tests.rs rename to pebrel_app/src/ai_hook/remote/tests.rs diff --git a/nebula_app/src/ai_hook/tests.rs b/pebrel_app/src/ai_hook/tests.rs similarity index 99% rename from nebula_app/src/ai_hook/tests.rs rename to pebrel_app/src/ai_hook/tests.rs index 4e4f7c182..ce6c02db1 100644 --- a/nebula_app/src/ai_hook/tests.rs +++ b/pebrel_app/src/ai_hook/tests.rs @@ -22,7 +22,7 @@ fn claude_events_carry_their_session_id_for_cold_resume() { assert_eq!(event.session_id.as_deref(), Some("0199a213-c2a4-7cf5-8f6b-d746fbb6e86c")); } -/// 串台门的第二层。第一层(`nebula_hook::foreign_hook_runner`)是环境变量 +/// 串台门的第二层。第一层(`pebrel_hook::foreign_hook_runner`)是环境变量 /// 判据,会随上游改名静默失效;这条测试钉住「即使那扇门不响,载荷形状仍然 /// 拦得住」。别家 hook runner 读我们装在 ~/.claude/settings.json 里的条目、 /// 用 camelCase 发事件,若被当成 claude 上报,pane 会贴错 provider 身份, diff --git a/nebula_app/src/ai_hook/unix.rs b/pebrel_app/src/ai_hook/unix.rs similarity index 100% rename from nebula_app/src/ai_hook/unix.rs rename to pebrel_app/src/ai_hook/unix.rs diff --git a/nebula_app/src/ai_hook/windows.rs b/pebrel_app/src/ai_hook/windows.rs similarity index 100% rename from nebula_app/src/ai_hook/windows.rs rename to pebrel_app/src/ai_hook/windows.rs diff --git a/nebula_app/src/ai_providers.rs b/pebrel_app/src/ai_providers.rs similarity index 100% rename from nebula_app/src/ai_providers.rs rename to pebrel_app/src/ai_providers.rs diff --git a/nebula_app/src/ai_providers/agent_config.rs b/pebrel_app/src/ai_providers/agent_config.rs similarity index 100% rename from nebula_app/src/ai_providers/agent_config.rs rename to pebrel_app/src/ai_providers/agent_config.rs diff --git a/nebula_app/src/ai_providers/editor.rs b/pebrel_app/src/ai_providers/editor.rs similarity index 100% rename from nebula_app/src/ai_providers/editor.rs rename to pebrel_app/src/ai_providers/editor.rs diff --git a/nebula_app/src/ai_providers/install.rs b/pebrel_app/src/ai_providers/install.rs similarity index 100% rename from nebula_app/src/ai_providers/install.rs rename to pebrel_app/src/ai_providers/install.rs diff --git a/nebula_app/src/ai_providers/install/grok.ps1 b/pebrel_app/src/ai_providers/install/grok.ps1 similarity index 100% rename from nebula_app/src/ai_providers/install/grok.ps1 rename to pebrel_app/src/ai_providers/install/grok.ps1 diff --git a/nebula_app/src/ai_providers/install/node.ps1 b/pebrel_app/src/ai_providers/install/node.ps1 similarity index 100% rename from nebula_app/src/ai_providers/install/node.ps1 rename to pebrel_app/src/ai_providers/install/node.ps1 diff --git a/nebula_app/src/ai_providers/install/node.sh b/pebrel_app/src/ai_providers/install/node.sh similarity index 100% rename from nebula_app/src/ai_providers/install/node.sh rename to pebrel_app/src/ai_providers/install/node.sh diff --git a/nebula_app/src/ai_providers/models.rs b/pebrel_app/src/ai_providers/models.rs similarity index 100% rename from nebula_app/src/ai_providers/models.rs rename to pebrel_app/src/ai_providers/models.rs diff --git a/nebula_app/src/ai_sessions.rs b/pebrel_app/src/ai_sessions.rs similarity index 100% rename from nebula_app/src/ai_sessions.rs rename to pebrel_app/src/ai_sessions.rs diff --git a/nebula_app/src/app_icon.rs b/pebrel_app/src/app_icon.rs similarity index 98% rename from nebula_app/src/app_icon.rs rename to pebrel_app/src/app_icon.rs index 5d676d6a9..943d53ba8 100644 --- a/nebula_app/src/app_icon.rs +++ b/pebrel_app/src/app_icon.rs @@ -3,7 +3,7 @@ use std::sync::atomic::{AtomicU8, Ordering}; use std::sync::{Arc, Mutex, OnceLock}; use image::{ImageEncoder as _, RgbaImage}; -use nebula_settings::AppIconName; +use pebrel_settings::AppIconName; pub const FRAME_SIZES: [u32; 14] = [16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 256]; const ATLAS_WIDTH: u32 = 512; @@ -12,7 +12,7 @@ const CACHE_LIMIT: usize = 128; fn selection() -> &'static AtomicU8 { static SELECTION: OnceLock = OnceLock::new(); - SELECTION.get_or_init(|| AtomicU8::new(nebula_settings::RuntimeSettings::load().app_icon as u8)) + SELECTION.get_or_init(|| AtomicU8::new(pebrel_settings::RuntimeSettings::load().app_icon as u8)) } pub fn selected() -> AppIconName { @@ -125,7 +125,7 @@ pub mod windows { use std::cell::RefCell; use std::collections::HashMap; - use nebula_settings::AppIconName; + use pebrel_settings::AppIconName; use windows_sys::Win32::Foundation::HWND; use windows_sys::Win32::UI::HiDpi::{GetDpiForWindow, GetSystemMetricsForDpi}; use windows_sys::Win32::UI::WindowsAndMessaging::{ diff --git a/nebula_app/src/app_icon/windows/taskbar.rs b/pebrel_app/src/app_icon/windows/taskbar.rs similarity index 99% rename from nebula_app/src/app_icon/windows/taskbar.rs rename to pebrel_app/src/app_icon/windows/taskbar.rs index b130c3a20..4b9f2e488 100644 --- a/nebula_app/src/app_icon/windows/taskbar.rs +++ b/pebrel_app/src/app_icon/windows/taskbar.rs @@ -2,7 +2,7 @@ //! Keep the selected icon as an immutable, content-addressed ICO so Explorer //! does not reuse the default executable icon from its path-based cache. -use nebula_settings::AppIconName; +use pebrel_settings::AppIconName; use sha2::{Digest, Sha256}; use std::path::{Path, PathBuf}; use windows::Win32::Foundation::{HWND, PROPERTYKEY}; diff --git a/nebula_app/src/app_icon/windows/taskbar/shortcuts.rs b/pebrel_app/src/app_icon/windows/taskbar/shortcuts.rs similarity index 100% rename from nebula_app/src/app_icon/windows/taskbar/shortcuts.rs rename to pebrel_app/src/app_icon/windows/taskbar/shortcuts.rs diff --git a/nebula_app/src/assistant_answer.rs b/pebrel_app/src/assistant_answer.rs similarity index 100% rename from nebula_app/src/assistant_answer.rs rename to pebrel_app/src/assistant_answer.rs diff --git a/nebula_app/src/assistant_answer/conversation.rs b/pebrel_app/src/assistant_answer/conversation.rs similarity index 100% rename from nebula_app/src/assistant_answer/conversation.rs rename to pebrel_app/src/assistant_answer/conversation.rs diff --git a/nebula_app/src/assistant_answer/conversation/remote.rs b/pebrel_app/src/assistant_answer/conversation/remote.rs similarity index 100% rename from nebula_app/src/assistant_answer/conversation/remote.rs rename to pebrel_app/src/assistant_answer/conversation/remote.rs diff --git a/nebula_app/src/assistant_answer/conversation/remote_read.py b/pebrel_app/src/assistant_answer/conversation/remote_read.py similarity index 100% rename from nebula_app/src/assistant_answer/conversation/remote_read.py rename to pebrel_app/src/assistant_answer/conversation/remote_read.py diff --git a/nebula_app/src/assistant_answer/document.rs b/pebrel_app/src/assistant_answer/document.rs similarity index 100% rename from nebula_app/src/assistant_answer/document.rs rename to pebrel_app/src/assistant_answer/document.rs diff --git a/nebula_app/src/atomic_file.rs b/pebrel_app/src/atomic_file.rs similarity index 100% rename from nebula_app/src/atomic_file.rs rename to pebrel_app/src/atomic_file.rs diff --git a/nebula_app/src/backup_remote.rs b/pebrel_app/src/backup_remote.rs similarity index 100% rename from nebula_app/src/backup_remote.rs rename to pebrel_app/src/backup_remote.rs diff --git a/nebula_app/src/backup_remote/credential_tests.rs b/pebrel_app/src/backup_remote/credential_tests.rs similarity index 100% rename from nebula_app/src/backup_remote/credential_tests.rs rename to pebrel_app/src/backup_remote/credential_tests.rs diff --git a/nebula_app/src/backup_remote/listing.rs b/pebrel_app/src/backup_remote/listing.rs similarity index 100% rename from nebula_app/src/backup_remote/listing.rs rename to pebrel_app/src/backup_remote/listing.rs diff --git a/nebula_app/src/backup_remote/preferences.rs b/pebrel_app/src/backup_remote/preferences.rs similarity index 100% rename from nebula_app/src/backup_remote/preferences.rs rename to pebrel_app/src/backup_remote/preferences.rs diff --git a/nebula_app/src/brand.rs b/pebrel_app/src/brand.rs similarity index 100% rename from nebula_app/src/brand.rs rename to pebrel_app/src/brand.rs diff --git a/nebula_app/src/chemistry.rs b/pebrel_app/src/chemistry.rs similarity index 100% rename from nebula_app/src/chemistry.rs rename to pebrel_app/src/chemistry.rs diff --git a/nebula_app/src/cli.rs b/pebrel_app/src/cli.rs similarity index 99% rename from nebula_app/src/cli.rs rename to pebrel_app/src/cli.rs index c3a17dde7..55c409aec 100644 --- a/nebula_app/src/cli.rs +++ b/pebrel_app/src/cli.rs @@ -5,11 +5,11 @@ use std::rc::Rc; use clap::{ArgAction, Args, Parser, Subcommand, ValueEnum, ValueHint}; use log::{LevelFilter, error}; -use nebula_config::SerdeReplace; +use pebrel_config::SerdeReplace; use serde::{Deserialize, Serialize}; use toml::Value; -use nebula_terminal::tty::Options as PtyOptions; +use pebrel_terminal::tty::Options as PtyOptions; use crate::config::UiConfig; use crate::config::ui_config::Program; diff --git a/nebula_app/src/clipboard.rs b/pebrel_app/src/clipboard.rs similarity index 99% rename from nebula_app/src/clipboard.rs rename to pebrel_app/src/clipboard.rs index 0aa088912..26032cdc8 100644 --- a/nebula_app/src/clipboard.rs +++ b/pebrel_app/src/clipboard.rs @@ -1,7 +1,7 @@ use log::{debug, warn}; use winit::raw_window_handle::RawDisplayHandle; -use nebula_terminal::term::ClipboardType; +use pebrel_terminal::term::ClipboardType; #[cfg(any(feature = "x11", target_os = "macos", windows))] use copypasta::ClipboardContext; diff --git a/nebula_app/src/codex_config.rs b/pebrel_app/src/codex_config.rs similarity index 100% rename from nebula_app/src/codex_config.rs rename to pebrel_app/src/codex_config.rs diff --git a/nebula_app/src/command_lenses.rs b/pebrel_app/src/command_lenses.rs similarity index 98% rename from nebula_app/src/command_lenses.rs rename to pebrel_app/src/command_lenses.rs index 16b8dbab4..ea00c17fe 100644 --- a/nebula_app/src/command_lenses.rs +++ b/pebrel_app/src/command_lenses.rs @@ -1,6 +1,6 @@ //! 普通命令的显示匹配;命令仍由原 shell 执行,输出仍完整进入 VT 网格。 -use nebula_terminal::inline_content::CommandView; use pebrel_completions::command_context::{CommandContext, ShellSyntax}; +use pebrel_terminal::inline_content::CommandView; pub(crate) fn classify(shell: &str, line: &str) -> Option { let shell = shell.rsplit('|').next()?.split(':').next()?; diff --git a/nebula_app/src/completion.rs b/pebrel_app/src/completion.rs similarity index 97% rename from nebula_app/src/completion.rs rename to pebrel_app/src/completion.rs index fb654cdc2..64d3b82bc 100644 --- a/nebula_app/src/completion.rs +++ b/pebrel_app/src/completion.rs @@ -391,8 +391,8 @@ mod tests { let user = std::env::var("PEBREL_WSL_SSH_QA_USER").unwrap(); let config = std::env::var("PEBREL_WSL_SSH_QA_CONFIG").unwrap(); assert!(config.starts_with('/') && !config.contains('\'')); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new( + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["-d".into(), distro.clone(), "-u".into(), user], )), @@ -483,9 +483,9 @@ mod tests { git(repository.path(), &["update-ref", "refs/remotes/origin/topic", "HEAD"]); git(repository.path(), &["update-ref", "refs/remotes/origin/excluded", "HEAD"]); git(repository.path(), &["config", "--add", "remote.origin.fetch", "^refs/heads/excluded"]); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), - shell: Some(nebula_terminal::tty::Shell::new("sh".into(), vec![])), + shell: Some(pebrel_terminal::tty::Shell::new("sh".into(), vec![])), ..Default::default() }); let session = Session::default(); @@ -520,9 +520,9 @@ mod tests { fn editor_cursor_requests_replace_only_the_active_token_and_keep_following_options() { use crate::git_completion::tests::repository; let repository = repository(); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), - shell: Some(nebula_terminal::tty::Shell::new("pwsh".into(), vec![])), + shell: Some(pebrel_terminal::tty::Shell::new("pwsh".into(), vec![])), ..Default::default() }); let session = Session::default(); @@ -577,8 +577,8 @@ mod tests { for (program, expected) in [("sh", "-iidentity.pem"), ("pwsh", "'-iidentity.pem'"), ("cmd", "-iidentity.pem")] { - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new(program.into(), vec![])), + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new(program.into(), vec![])), ..Default::default() }); let line = "ssh -F config -iidentity"; @@ -647,8 +647,8 @@ mod tests { let names = crate::platform::shell::registered_wsl_distros(&|| false); let r = query(SuggestEnv::Local, "wsl -d ", CompletionStyle::Popup); assert_eq!(r.completion_items.len(), names.len()); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new( + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["-d".into(), "source-isolation".into()], )), @@ -720,8 +720,8 @@ mod tests { ("pwsh", ShellSyntax::PowerShell), ("cmd", ShellSyntax::Cmd), ] { - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new(program.into(), vec![])), + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new(program.into(), vec![])), ..Default::default() }); for style in [CompletionStyle::Inline, CompletionStyle::Popup, CompletionStyle::Hybrid] @@ -790,7 +790,7 @@ mod tests { use crate::display::NebulaCompletionKind; let repository = crate::git_completion::tests::repository(); std::fs::write(repository.path().join("feature-file.txt"), b"").unwrap(); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }); @@ -837,9 +837,9 @@ mod tests { git(repository.path(), &["update-ref", "refs/remotes/origin/topic", "HEAD"]); let session = Session::default(); for program in ["sh", "pwsh", "cmd"] { - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), - shell: Some(nebula_terminal::tty::Shell::new(program.into(), vec![])), + shell: Some(pebrel_terminal::tty::Shell::new(program.into(), vec![])), ..Default::default() }); for style in [CompletionStyle::Inline, CompletionStyle::Popup, CompletionStyle::Hybrid] @@ -900,7 +900,7 @@ mod tests { fn completion_requests_work_without_a_view_and_keep_repository_invalidation() { let repository = crate::git_completion::tests::repository(); let cwd = repository.path().to_str().unwrap(); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }); diff --git a/nebula_app/src/completion/connections.rs b/pebrel_app/src/completion/connections.rs similarity index 98% rename from nebula_app/src/completion/connections.rs rename to pebrel_app/src/completion/connections.rs index 86b36cf3e..f9503ac7b 100644 --- a/nebula_app/src/completion/connections.rs +++ b/pebrel_app/src/completion/connections.rs @@ -162,8 +162,8 @@ mod tests { #[test] fn guest_connection_scope_keeps_user_config_and_host_boundaries() { let execution = |user: &str| { - PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new( + PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["-d".into(), "Debian".into(), "-u".into(), user.into()], )), diff --git a/nebula_app/src/completion/metadata.rs b/pebrel_app/src/completion/metadata.rs similarity index 99% rename from nebula_app/src/completion/metadata.rs rename to pebrel_app/src/completion/metadata.rs index 0388f2525..8b807c507 100644 --- a/nebula_app/src/completion/metadata.rs +++ b/pebrel_app/src/completion/metadata.rs @@ -165,15 +165,15 @@ impl Execution { match scope { SuggestEnv::Local => Some(Self::Process { context: execution.cloned().unwrap_or_else(|| { - PaneExecContext::from_pty_options(&nebula_terminal::tty::Options::default()) + PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options::default()) }), scope: scope.clone(), }), SuggestEnv::Wsl { distro } if !distro.is_empty() => { let context = execution.and_then(|e| e.for_wsl_distribution(distro)).unwrap_or_else(|| { - PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new( + PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["--distribution".into(), distro.clone()], )), diff --git a/nebula_app/src/completion/paths.rs b/pebrel_app/src/completion/paths.rs similarity index 100% rename from nebula_app/src/completion/paths.rs rename to pebrel_app/src/completion/paths.rs diff --git a/nebula_app/src/completion/project_probe.py b/pebrel_app/src/completion/project_probe.py similarity index 100% rename from nebula_app/src/completion/project_probe.py rename to pebrel_app/src/completion/project_probe.py diff --git a/nebula_app/src/completion/project_scripts.rs b/pebrel_app/src/completion/project_scripts.rs similarity index 100% rename from nebula_app/src/completion/project_scripts.rs rename to pebrel_app/src/completion/project_scripts.rs diff --git a/nebula_app/src/completion/project_scripts/workspace.rs b/pebrel_app/src/completion/project_scripts/workspace.rs similarity index 100% rename from nebula_app/src/completion/project_scripts/workspace.rs rename to pebrel_app/src/completion/project_scripts/workspace.rs diff --git a/nebula_app/src/completion_context.rs b/pebrel_app/src/completion_context.rs similarity index 99% rename from nebula_app/src/completion_context.rs rename to pebrel_app/src/completion_context.rs index e0fff3735..21a862027 100644 --- a/nebula_app/src/completion_context.rs +++ b/pebrel_app/src/completion_context.rs @@ -178,7 +178,7 @@ impl NebulaPaneState { } pub(crate) fn initial_state( - options: &nebula_terminal::tty::Options, + options: &pebrel_terminal::tty::Options, cwd: String, ) -> NebulaPaneState { let mut state = NebulaPaneState::default(); diff --git a/nebula_app/src/completion_context/tests.rs b/pebrel_app/src/completion_context/tests.rs similarity index 100% rename from nebula_app/src/completion_context/tests.rs rename to pebrel_app/src/completion_context/tests.rs diff --git a/nebula_app/src/config/bell.rs b/pebrel_app/src/config/bell.rs similarity index 97% rename from nebula_app/src/config/bell.rs rename to pebrel_app/src/config/bell.rs index f61c3ccb3..6504822aa 100644 --- a/nebula_app/src/config/bell.rs +++ b/pebrel_app/src/config/bell.rs @@ -2,7 +2,7 @@ use std::time::Duration; use serde::Serialize; -use nebula_config_derive::ConfigDeserialize; +use pebrel_config_derive::ConfigDeserialize; use crate::config::ui_config::Program; use crate::display::color::Rgb; diff --git a/nebula_app/src/config/bindings.rs b/pebrel_app/src/config/bindings.rs similarity index 99% rename from nebula_app/src/config/bindings.rs rename to pebrel_app/src/config/bindings.rs index f65c0f29e..93b8a51c3 100644 --- a/nebula_app/src/config/bindings.rs +++ b/pebrel_app/src/config/bindings.rs @@ -13,10 +13,10 @@ use winit::keyboard::{ }; use winit::platform::scancode::PhysicalKeyExtScancode; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; -use nebula_terminal::term::TermMode; -use nebula_terminal::vi_mode::ViMotion; +use pebrel_terminal::term::TermMode; +use pebrel_terminal::vi_mode::ViMotion; use crate::config::ui_config::{Hint, Program, StringVisitor}; diff --git a/nebula_app/src/config/bindings/defaults.rs b/pebrel_app/src/config/bindings/defaults.rs similarity index 99% rename from nebula_app/src/config/bindings/defaults.rs rename to pebrel_app/src/config/bindings/defaults.rs index 47940493d..32455b522 100644 --- a/nebula_app/src/config/bindings/defaults.rs +++ b/pebrel_app/src/config/bindings/defaults.rs @@ -7,7 +7,7 @@ use winit::event::MouseButton; use winit::keyboard::{Key, KeyCode, ModifiersState, NamedKey, PhysicalKey}; -use nebula_terminal::vi_mode::ViMotion; +use pebrel_terminal::vi_mode::ViMotion; use super::{ Action, BindingKey, BindingMode, KeyBinding, KeyLocation, MouseAction, MouseBinding, diff --git a/nebula_app/src/config/color.rs b/pebrel_app/src/config/color.rs similarity index 99% rename from nebula_app/src/config/color.rs rename to pebrel_app/src/config/color.rs index ab673f16f..8584d625c 100644 --- a/nebula_app/src/config/color.rs +++ b/pebrel_app/src/config/color.rs @@ -1,7 +1,7 @@ use serde::de::Error as SerdeError; use serde::{Deserialize, Deserializer, Serialize}; -use nebula_config_derive::ConfigDeserialize; +use pebrel_config_derive::ConfigDeserialize; use crate::display::color::{CellRgb, Rgb}; diff --git a/nebula_app/src/config/cursor.rs b/pebrel_app/src/config/cursor.rs similarity index 97% rename from nebula_app/src/config/cursor.rs rename to pebrel_app/src/config/cursor.rs index f57ac7402..8f102309d 100644 --- a/nebula_app/src/config/cursor.rs +++ b/pebrel_app/src/config/cursor.rs @@ -3,8 +3,8 @@ use std::time::Duration; use serde::{Deserialize, Serialize}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; -use nebula_terminal::vte::ansi::{CursorShape as VteCursorShape, CursorStyle as VteCursorStyle}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_terminal::vte::ansi::{CursorShape as VteCursorShape, CursorStyle as VteCursorStyle}; use crate::config::ui_config::Percentage; diff --git a/nebula_app/src/config/debug.rs b/pebrel_app/src/config/debug.rs similarity index 97% rename from nebula_app/src/config/debug.rs rename to pebrel_app/src/config/debug.rs index c8faaafb0..e1f053973 100644 --- a/nebula_app/src/config/debug.rs +++ b/pebrel_app/src/config/debug.rs @@ -1,7 +1,7 @@ use log::LevelFilter; use serde::Serialize; -use nebula_config_derive::ConfigDeserialize; +use pebrel_config_derive::ConfigDeserialize; /// Debugging options. #[derive(ConfigDeserialize, Serialize, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] diff --git a/nebula_app/src/config/desktop.rs b/pebrel_app/src/config/desktop.rs similarity index 93% rename from nebula_app/src/config/desktop.rs rename to pebrel_app/src/config/desktop.rs index 39e914752..bf440e4c0 100644 --- a/nebula_app/src/config/desktop.rs +++ b/pebrel_app/src/config/desktop.rs @@ -1,10 +1,10 @@ -//! Script-facing desktop settings; value semantics stay in nebula_settings. +//! Script-facing desktop settings; value semantics stay in pebrel_settings. use std::collections::BTreeMap; use std::path::Path; -use nebula_config_derive::SerdeReplace; -use nebula_settings::{RawSettings, UiValueKind, ui_value_kind}; +use pebrel_config_derive::SerdeReplace; +use pebrel_settings::{RawSettings, UiValueKind, ui_value_kind}; use serde::{Deserialize, Deserializer, Serialize, de::Error as _}; #[derive(Serialize, SerdeReplace, Default, Clone, Debug, PartialEq)] diff --git a/nebula_app/src/config/font.rs b/pebrel_app/src/config/font.rs similarity index 99% rename from nebula_app/src/config/font.rs rename to pebrel_app/src/config/font.rs index d9b81c88f..2aed738e0 100644 --- a/nebula_app/src/config/font.rs +++ b/pebrel_app/src/config/font.rs @@ -5,7 +5,7 @@ use crossfont::Size as CrossfontSize; use serde::de::{self, Visitor}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; use crate::config::ui_config::Delta; diff --git a/nebula_app/src/config/general.rs b/pebrel_app/src/config/general.rs similarity index 95% rename from nebula_app/src/config/general.rs rename to pebrel_app/src/config/general.rs index 20c2d2301..bf6b76b3f 100644 --- a/nebula_app/src/config/general.rs +++ b/pebrel_app/src/config/general.rs @@ -4,7 +4,7 @@ use std::path::PathBuf; use serde::Serialize; -use nebula_config_derive::ConfigDeserialize; +use pebrel_config_derive::ConfigDeserialize; /// General config section. /// diff --git a/nebula_app/src/config/lua/convert.rs b/pebrel_app/src/config/lua/convert.rs similarity index 100% rename from nebula_app/src/config/lua/convert.rs rename to pebrel_app/src/config/lua/convert.rs diff --git a/nebula_app/src/config/lua/mod.rs b/pebrel_app/src/config/lua/mod.rs similarity index 98% rename from nebula_app/src/config/lua/mod.rs rename to pebrel_app/src/config/lua/mod.rs index e99b1f556..7070f1822 100644 --- a/nebula_app/src/config/lua/mod.rs +++ b/pebrel_app/src/config/lua/mod.rs @@ -4,7 +4,7 @@ use std::fs; use std::path::Path; use mlua::Value as LuaValue; -use nebula_config::{ConfigDiagnostic, UnknownFieldPolicy, capture_diagnostics}; +use pebrel_config::{ConfigDiagnostic, UnknownFieldPolicy, capture_diagnostics}; use serde::Deserialize; use crate::config::UiConfig; diff --git a/nebula_app/src/config/lua/modules.rs b/pebrel_app/src/config/lua/modules.rs similarity index 100% rename from nebula_app/src/config/lua/modules.rs rename to pebrel_app/src/config/lua/modules.rs diff --git a/nebula_app/src/config/lua/runtime.rs b/pebrel_app/src/config/lua/runtime.rs similarity index 100% rename from nebula_app/src/config/lua/runtime.rs rename to pebrel_app/src/config/lua/runtime.rs diff --git a/nebula_app/src/config/mod.rs b/pebrel_app/src/config/mod.rs similarity index 100% rename from nebula_app/src/config/mod.rs rename to pebrel_app/src/config/mod.rs diff --git a/nebula_app/src/config/monitor.rs b/pebrel_app/src/config/monitor.rs similarity index 99% rename from nebula_app/src/config/monitor.rs rename to pebrel_app/src/config/monitor.rs index 17467f321..57b4e400f 100644 --- a/nebula_app/src/config/monitor.rs +++ b/pebrel_app/src/config/monitor.rs @@ -13,7 +13,7 @@ use notify::{ }; use winit::event_loop::EventLoopProxy; -use nebula_terminal::thread; +use pebrel_terminal::thread; use crate::event::{Event, EventType}; diff --git a/nebula_app/src/config/mouse.rs b/pebrel_app/src/config/mouse.rs similarity index 95% rename from nebula_app/src/config/mouse.rs rename to pebrel_app/src/config/mouse.rs index 0f2712cea..9b2c7dcb2 100644 --- a/nebula_app/src/config/mouse.rs +++ b/pebrel_app/src/config/mouse.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Deserializer, Serialize}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; use crate::config::bindings::{self, MouseBinding}; use crate::config::ui_config; diff --git a/nebula_app/src/config/reload.rs b/pebrel_app/src/config/reload.rs similarity index 100% rename from nebula_app/src/config/reload.rs rename to pebrel_app/src/config/reload.rs diff --git a/nebula_app/src/config/scrolling.rs b/pebrel_app/src/config/scrolling.rs similarity index 95% rename from nebula_app/src/config/scrolling.rs rename to pebrel_app/src/config/scrolling.rs index a8029ac6b..b35e3d6dc 100644 --- a/nebula_app/src/config/scrolling.rs +++ b/pebrel_app/src/config/scrolling.rs @@ -1,7 +1,7 @@ use serde::de::Error as SerdeError; use serde::{Deserialize, Deserializer, Serialize}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; /// Maximum scrollback amount configurable. pub const MAX_SCROLLBACK_LINES: u32 = 100_000; diff --git a/nebula_app/src/config/selection.rs b/pebrel_app/src/config/selection.rs similarity index 90% rename from nebula_app/src/config/selection.rs rename to pebrel_app/src/config/selection.rs index 91bbd72c5..d821a0f39 100644 --- a/nebula_app/src/config/selection.rs +++ b/pebrel_app/src/config/selection.rs @@ -1,7 +1,7 @@ use serde::Serialize; -use nebula_config_derive::ConfigDeserialize; -use nebula_terminal::term::SEMANTIC_ESCAPE_CHARS; +use pebrel_config_derive::ConfigDeserialize; +use pebrel_terminal::term::SEMANTIC_ESCAPE_CHARS; #[derive(ConfigDeserialize, Serialize, Clone, Debug, PartialEq, Eq)] pub struct Selection { diff --git a/nebula_app/src/config/serde_utils.rs b/pebrel_app/src/config/serde_utils.rs similarity index 100% rename from nebula_app/src/config/serde_utils.rs rename to pebrel_app/src/config/serde_utils.rs diff --git a/nebula_app/src/config/shaders.rs b/pebrel_app/src/config/shaders.rs similarity index 98% rename from nebula_app/src/config/shaders.rs rename to pebrel_app/src/config/shaders.rs index 509759f4a..11b78bdb4 100644 --- a/nebula_app/src/config/shaders.rs +++ b/pebrel_app/src/config/shaders.rs @@ -2,8 +2,8 @@ use std::path::Path; -use nebula_config_derive::SerdeReplace; -use nebula_settings::{BackgroundEffects, EffectAnimation, ShaderTiming, TerminalEffects}; +use pebrel_config_derive::SerdeReplace; +use pebrel_settings::{BackgroundEffects, EffectAnimation, ShaderTiming, TerminalEffects}; use serde::{Deserialize, Deserializer, Serialize, de::Error as _}; #[derive(Serialize, SerdeReplace, Default, Clone, Debug, PartialEq)] diff --git a/nebula_app/src/config/source.rs b/pebrel_app/src/config/source.rs similarity index 98% rename from nebula_app/src/config/source.rs rename to pebrel_app/src/config/source.rs index 7b27b455c..364c13c03 100644 --- a/nebula_app/src/config/source.rs +++ b/pebrel_app/src/config/source.rs @@ -41,7 +41,7 @@ impl DiscoveryRoots { .or_else(|| home_dir.as_ref().map(|home| home.join(".config"))); Self { - data_dir: Some(nebula_settings::settings_dir()), + data_dir: Some(pebrel_settings::settings_dir()), config_home, home_dir, executable_dir: env::current_exe() @@ -163,7 +163,7 @@ pub fn source_for_path(path: PathBuf, explicit: bool) -> Result Result { - Ok(nebula_settings::settings_dir().join("pebrel.luau")) + Ok(pebrel_settings::settings_dir().join("pebrel.luau")) } /// Resolve the Luau file edited by the settings command. diff --git a/nebula_app/src/config/template.rs b/pebrel_app/src/config/template.rs similarity index 100% rename from nebula_app/src/config/template.rs rename to pebrel_app/src/config/template.rs diff --git a/nebula_app/src/config/templates/pebrel.en-US.luau b/pebrel_app/src/config/templates/pebrel.en-US.luau similarity index 100% rename from nebula_app/src/config/templates/pebrel.en-US.luau rename to pebrel_app/src/config/templates/pebrel.en-US.luau diff --git a/nebula_app/src/config/templates/pebrel.zh-CN.luau b/pebrel_app/src/config/templates/pebrel.zh-CN.luau similarity index 100% rename from nebula_app/src/config/templates/pebrel.zh-CN.luau rename to pebrel_app/src/config/templates/pebrel.zh-CN.luau diff --git a/nebula_app/src/config/terminal.rs b/pebrel_app/src/config/terminal.rs similarity index 89% rename from nebula_app/src/config/terminal.rs rename to pebrel_app/src/config/terminal.rs index 884dfd285..f75b80c09 100644 --- a/nebula_app/src/config/terminal.rs +++ b/pebrel_app/src/config/terminal.rs @@ -1,8 +1,8 @@ use serde::{Deserialize, Deserializer, Serialize, de}; use toml::Value; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; -use nebula_terminal::term::Osc52; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_terminal::term::Osc52; use crate::config::ui_config::{Program, StringVisitor}; diff --git a/nebula_app/src/config/ui_config.rs b/pebrel_app/src/config/ui_config.rs similarity index 98% rename from nebula_app/src/config/ui_config.rs rename to pebrel_app/src/config/ui_config.rs index cdbfe086f..3c3d85c7f 100644 --- a/nebula_app/src/config/ui_config.rs +++ b/pebrel_app/src/config/ui_config.rs @@ -11,11 +11,11 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; use unicode_width::UnicodeWidthChar; use winit::keyboard::{Key, ModifiersState}; -use nebula_config::SerdeReplace; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; -use nebula_terminal::term::Config as TermConfig; -use nebula_terminal::term::search::RegexSearch; -use nebula_terminal::tty::{Options as PtyOptions, Shell}; +use pebrel_config::SerdeReplace; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_terminal::term::Config as TermConfig; +use pebrel_terminal::term::search::RegexSearch; +use pebrel_terminal::tty::{Options as PtyOptions, Shell}; use crate::config::LOG_TARGET_CONFIG; use crate::config::bell::BellConfig; @@ -96,7 +96,7 @@ pub struct UiConfig { /// Regex hints for interacting with terminal content. pub hints: Hints, - /// Config for the nebula_terminal itself. + /// Config for the pebrel_terminal itself. pub terminal: Terminal, /// Quick-launch profiles: named commands, each @@ -137,11 +137,11 @@ impl UiConfig { /// Derive [`TermConfig`] from the config. pub fn term_options(&self) -> TermConfig { // Side-loaded ConPTY sessions get their bring-up DA1 query answered - // by a pre-primed response (see nebula_terminal's conpty); the Term + // by a pre-primed response (see pebrel_terminal's conpty); the Term // must swallow its own duplicate answer or the host forwards it to // the shell as typed input. #[cfg(windows)] - let suppress_bringup_da1 = nebula_terminal::tty::windows::conpty_sideload_enabled(); + let suppress_bringup_da1 = pebrel_terminal::tty::windows::conpty_sideload_enabled(); #[cfg(not(windows))] let suppress_bringup_da1 = false; @@ -766,13 +766,13 @@ impl Profile { #[cfg(windows)] match self.shell_id.as_deref() { Some("pwsh") | Some("powershell") => { - return nebula_terminal::tty::windows::powershell_with_nebula_integration( + return pebrel_terminal::tty::windows::powershell_with_nebula_integration( self.command.clone(), self.args.clone(), ); }, Some("bash") | Some("git-bash") => { - return nebula_terminal::tty::windows::bash_with_nebula_integration( + return pebrel_terminal::tty::windows::bash_with_nebula_integration( self.command.clone(), self.args.clone(), ); @@ -811,7 +811,7 @@ impl serde::de::Visitor<'_> for StringVisitor { mod tests { use super::*; - use nebula_terminal::term::test::mock_term; + use pebrel_terminal::term::test::mock_term; use crate::display::hint::visible_regex_match_iter; diff --git a/nebula_app/src/config/window.rs b/pebrel_app/src/config/window.rs similarity index 99% rename from nebula_app/src/config/window.rs rename to pebrel_app/src/config/window.rs index 31b782dfc..6c62525a3 100644 --- a/nebula_app/src/config/window.rs +++ b/pebrel_app/src/config/window.rs @@ -8,7 +8,7 @@ use serde::{Deserialize, Deserializer, Serialize}; use winit::platform::macos::OptionAsAlt as WinitOptionAsAlt; use winit::window::{Fullscreen, Theme as WinitTheme, WindowLevel as WinitWindowLevel}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; use crate::config::LOG_TARGET_CONFIG; use crate::config::ui_config::{Delta, Percentage}; diff --git a/nebula_app/src/config_cli.rs b/pebrel_app/src/config_cli.rs similarity index 100% rename from nebula_app/src/config_cli.rs rename to pebrel_app/src/config_cli.rs diff --git a/nebula_app/src/console_main.rs b/pebrel_app/src/console_main.rs similarity index 100% rename from nebula_app/src/console_main.rs rename to pebrel_app/src/console_main.rs diff --git a/nebula_app/src/daemon.rs b/pebrel_app/src/daemon.rs similarity index 100% rename from nebula_app/src/daemon.rs rename to pebrel_app/src/daemon.rs diff --git a/nebula_app/src/directory_history.rs b/pebrel_app/src/directory_history.rs similarity index 99% rename from nebula_app/src/directory_history.rs rename to pebrel_app/src/directory_history.rs index 16e18ab83..5b2a1bf23 100644 --- a/nebula_app/src/directory_history.rs +++ b/pebrel_app/src/directory_history.rs @@ -661,7 +661,7 @@ mod tests { #[test] fn ordered_keywords_constrain_the_last_path_component() { - assert!(ordered_keyword_match("D:/temp_build/nebula_app", &["temp".into(), "app".into()])); + assert!(ordered_keyword_match("D:/temp_build/pebrel_app", &["temp".into(), "app".into()])); assert!(!ordered_keyword_match("D:/app/nebula/src", &["app".into()])); } diff --git a/nebula_app/src/display/animations.rs b/pebrel_app/src/display/animations.rs similarity index 100% rename from nebula_app/src/display/animations.rs rename to pebrel_app/src/display/animations.rs diff --git a/nebula_app/src/display/background_color_model.rs b/pebrel_app/src/display/background_color_model.rs similarity index 100% rename from nebula_app/src/display/background_color_model.rs rename to pebrel_app/src/display/background_color_model.rs diff --git a/nebula_app/src/display/bell.rs b/pebrel_app/src/display/bell.rs similarity index 100% rename from nebula_app/src/display/bell.rs rename to pebrel_app/src/display/bell.rs diff --git a/nebula_app/src/display/chrome.rs b/pebrel_app/src/display/chrome.rs similarity index 99% rename from nebula_app/src/display/chrome.rs rename to pebrel_app/src/display/chrome.rs index cc2e65883..a4379450f 100644 --- a/nebula_app/src/display/chrome.rs +++ b/pebrel_app/src/display/chrome.rs @@ -1583,7 +1583,7 @@ pub(super) fn draw_chrome(d: &mut Display) { let tabs_chevron = if d.nebula_tabs_section_open { "\u{eab4}" } else { "\u{eab6}" }; const SECTION_TITLE_SCALE: f32 = 0.82; let section_title_tracking = s(0.65); - let section_title_flags = nebula_terminal::term::cell::Flags::BOLD; + let section_title_flags = pebrel_terminal::term::cell::Flags::BOLD; d.renderer.draw_ui_text_tracked( &size, pnl_x + s(16.0), @@ -1624,7 +1624,7 @@ pub(super) fn draw_chrome(d: &mut Display) { SECTION_TITLE_SCALE, 0.0, sk.ink_faint, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &n, &mut d.glyph_cache, ); @@ -1808,7 +1808,7 @@ pub(super) fn draw_chrome(d: &mut Display) { } else { color }, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &label, &mut d.glyph_cache, ); @@ -1838,7 +1838,7 @@ pub(super) fn draw_chrome(d: &mut Display) { widgets::centered_y(draw_row_y, tab_h, cell_h * TAG_SCALE), TAG_SCALE, sk.ink_faint, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), tag, &mut d.glyph_cache, ); @@ -1906,7 +1906,7 @@ pub(super) fn draw_chrome(d: &mut Display) { SECTION_TITLE_SCALE, 0.0, sk.ink_faint, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &n, &mut d.glyph_cache, ); @@ -1923,7 +1923,7 @@ pub(super) fn draw_chrome(d: &mut Display) { if d.nebula_ssh_hosts.is_empty() && d.nebula_hosts_section_open { use unicode_width::UnicodeWidthChar; const HINT_SCALE: f32 = tokens::type_scale::SUPPORTING; - let hint_flags = nebula_terminal::term::cell::Flags::empty(); + let hint_flags = pebrel_terminal::term::cell::Flags::empty(); let (pnl_x, _, pnl_w, _) = tab_layout.panel; let text_x = hh_x + s(28.0); // Wrap budget in the TRUE scaled advance (`draw_ui_text` @@ -2051,7 +2051,7 @@ pub(super) fn draw_chrome(d: &mut Display) { 1.0, row_tracking, color, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &label, &mut d.glyph_cache, ); @@ -2069,7 +2069,7 @@ pub(super) fn draw_chrome(d: &mut Display) { SUB_SCALE, row_tracking, sk.ink_faint, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &sub, &mut d.glyph_cache, ); @@ -2178,8 +2178,8 @@ pub(super) fn draw_chrome(d: &mut Display) { let scale = d.window.scale_factor as f32; let layout = sftp_panel::layout(&d.side_panel_layout(), scale); let ls_colors = side_panel::LsColors { - dir: d.colors[nebula_terminal::vte::ansi::NamedColor::Blue], - exec: d.colors[nebula_terminal::vte::ansi::NamedColor::Green], + dir: d.colors[pebrel_terminal::vte::ansi::NamedColor::Blue], + exec: d.colors[pebrel_terminal::vte::ansi::NamedColor::Green], }; sftp_panel::draw_text( panel, @@ -2195,8 +2195,8 @@ pub(super) fn draw_chrome(d: &mut Display) { // File-tree rows use the terminal's live ANSI palette so the drawer // matches `ls` colors exactly (dirs blue, executables green). let ls_colors = side_panel::LsColors { - dir: d.colors[nebula_terminal::vte::ansi::NamedColor::Blue], - exec: d.colors[nebula_terminal::vte::ansi::NamedColor::Green], + dir: d.colors[pebrel_terminal::vte::ansi::NamedColor::Blue], + exec: d.colors[pebrel_terminal::vte::ansi::NamedColor::Green], }; side_panel::draw_text( &d.nebula_side_panel, diff --git a/nebula_app/src/display/color.rs b/pebrel_app/src/display/color.rs similarity index 98% rename from nebula_app/src/display/color.rs rename to pebrel_app/src/display/color.rs index b831e655d..cf57fe730 100644 --- a/nebula_app/src/display/color.rs +++ b/pebrel_app/src/display/color.rs @@ -6,9 +6,9 @@ use log::trace; use serde::de::{Error as SerdeError, Visitor}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use nebula_config_derive::SerdeReplace; -use nebula_terminal::term::color::COUNT; -use nebula_terminal::vte::ansi::{NamedColor, Rgb as VteRgb}; +use pebrel_config_derive::SerdeReplace; +use pebrel_terminal::term::color::COUNT; +use pebrel_terminal::vte::ansi::{NamedColor, Rgb as VteRgb}; use crate::config::color::Colors; diff --git a/nebula_app/src/display/command_completion.rs b/pebrel_app/src/display/command_completion.rs similarity index 100% rename from nebula_app/src/display/command_completion.rs rename to pebrel_app/src/display/command_completion.rs diff --git a/nebula_app/src/display/command_palette.rs b/pebrel_app/src/display/command_palette.rs similarity index 99% rename from nebula_app/src/display/command_palette.rs rename to pebrel_app/src/display/command_palette.rs index a451ae4bc..4a6bf9dcc 100644 --- a/nebula_app/src/display/command_palette.rs +++ b/pebrel_app/src/display/command_palette.rs @@ -2360,7 +2360,7 @@ pub(super) fn draw_text( gy + s(3.0), LAUNCHER_GROUP_TEXT_SCALE, sk.ink_faint, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), label, gc, ); diff --git a/nebula_app/src/display/command_palette/catalog.rs b/pebrel_app/src/display/command_palette/catalog.rs similarity index 99% rename from nebula_app/src/display/command_palette/catalog.rs rename to pebrel_app/src/display/command_palette/catalog.rs index 7f3d7526a..c7046e9ab 100644 --- a/nebula_app/src/display/command_palette/catalog.rs +++ b/pebrel_app/src/display/command_palette/catalog.rs @@ -205,6 +205,6 @@ mod tests { _ => None, }) .collect(); - assert_eq!(themes, nebula_settings::ThemeName::BUILTIN_NAMES); + assert_eq!(themes, pebrel_settings::ThemeName::BUILTIN_NAMES); } } diff --git a/nebula_app/src/display/completion.rs b/pebrel_app/src/display/completion.rs similarity index 100% rename from nebula_app/src/display/completion.rs rename to pebrel_app/src/display/completion.rs diff --git a/nebula_app/src/display/confirmation_text.rs b/pebrel_app/src/display/confirmation_text.rs similarity index 100% rename from nebula_app/src/display/confirmation_text.rs rename to pebrel_app/src/display/confirmation_text.rs diff --git a/nebula_app/src/display/content.rs b/pebrel_app/src/display/content.rs similarity index 97% rename from nebula_app/src/display/content.rs rename to pebrel_app/src/display/content.rs index e60c57a1e..154b72a5e 100644 --- a/nebula_app/src/display/content.rs +++ b/pebrel_app/src/display/content.rs @@ -8,24 +8,24 @@ use std::ops::Deref; use std::{cmp, mem}; #[cfg(feature = "legacy-shell")] -use nebula_terminal::event::EventListener; +use pebrel_terminal::event::EventListener; #[cfg(feature = "legacy-shell")] -use nebula_terminal::grid::{Dimensions, Indexed}; -use nebula_terminal::index::Point; +use pebrel_terminal::grid::{Dimensions, Indexed}; +use pebrel_terminal::index::Point; #[cfg(feature = "legacy-shell")] -use nebula_terminal::index::{Column, Line}; +use pebrel_terminal::index::{Column, Line}; #[cfg(feature = "legacy-shell")] -use nebula_terminal::selection::SelectionRange; +use pebrel_terminal::selection::SelectionRange; #[cfg(feature = "legacy-shell")] -use nebula_terminal::term::cell::Cell; -use nebula_terminal::term::cell::{Flags, Hyperlink}; +use pebrel_terminal::term::cell::Cell; +use pebrel_terminal::term::cell::{Flags, Hyperlink}; #[cfg(feature = "legacy-shell")] -use nebula_terminal::term::search::{Match, RegexSearch}; +use pebrel_terminal::term::search::{Match, RegexSearch}; #[cfg(feature = "legacy-shell")] -use nebula_terminal::term::{self, RenderableContent as TerminalContent, Term, TermMode}; +use pebrel_terminal::term::{self, RenderableContent as TerminalContent, Term, TermMode}; #[cfg(feature = "legacy-shell")] -use nebula_terminal::vte::ansi::NamedColor; -use nebula_terminal::vte::ansi::{Color, CursorShape}; +use pebrel_terminal::vte::ansi::NamedColor; +use pebrel_terminal::vte::ansi::{Color, CursorShape}; #[cfg(feature = "legacy-shell")] use crate::config::UiConfig; @@ -68,7 +68,7 @@ pub struct RenderableContent<'a> { color_resolver: &'a mut TerminalColorResolver, theme_is_light: bool, themed_selection: bool, - exact_term_colors: Option, + exact_term_colors: Option, } #[cfg(feature = "legacy-shell")] @@ -253,7 +253,7 @@ fn cursor_follows_theme(color: InvertedCellColors) -> bool { } #[cfg(feature = "legacy-shell")] -fn rgb8([r, g, b]: nebula_settings::Rgb8) -> Rgb { +fn rgb8([r, g, b]: pebrel_settings::Rgb8) -> Rgb { Rgb::new(r, g, b) } @@ -642,7 +642,7 @@ pub(crate) fn is_application_cursor_cell( pub(crate) fn cell_background_is_fixed( color: Color, - overrides: &nebula_terminal::term::color::Colors, + overrides: &pebrel_terminal::term::color::Colors, ) -> bool { is_fixed_color(color, overrides) } @@ -738,7 +738,7 @@ impl RenderableCursor { #[cfg(test)] mod tests { - use nebula_terminal::vte::ansi::CursorShape; + use pebrel_terminal::vte::ansi::CursorShape; use super::{ composite_overlay, cursor_follows_theme, is_application_cursor_cell, @@ -747,8 +747,8 @@ mod tests { use crate::config::color::NEBULA_DEFAULT_CURSOR; use crate::display::color::Rgb; use crate::display::ui::tokens::terminal_feedback; - use nebula_terminal::index::{Column, Line, Point}; - use nebula_terminal::term::cell::Flags; + use pebrel_terminal::index::{Column, Line, Point}; + use pebrel_terminal::term::cell::Flags; #[test] fn translucent_overlay_preserves_transparent_surface() { diff --git a/nebula_app/src/display/context_menu.rs b/pebrel_app/src/display/context_menu.rs similarity index 100% rename from nebula_app/src/display/context_menu.rs rename to pebrel_app/src/display/context_menu.rs diff --git a/nebula_app/src/display/context_menu_model.rs b/pebrel_app/src/display/context_menu_model.rs similarity index 100% rename from nebula_app/src/display/context_menu_model.rs rename to pebrel_app/src/display/context_menu_model.rs diff --git a/nebula_app/src/display/cursor.rs b/pebrel_app/src/display/cursor.rs similarity index 98% rename from nebula_app/src/display/cursor.rs rename to pebrel_app/src/display/cursor.rs index bcb4dfae4..73a8e044f 100644 --- a/nebula_app/src/display/cursor.rs +++ b/pebrel_app/src/display/cursor.rs @@ -1,6 +1,6 @@ //! Convert a cursor into an iterator of rects. -use nebula_terminal::vte::ansi::CursorShape; +use pebrel_terminal::vte::ansi::CursorShape; use crate::display::SizeInfo; use crate::display::color::Rgb; diff --git a/nebula_app/src/display/damage.rs b/pebrel_app/src/display/damage.rs similarity index 98% rename from nebula_app/src/display/damage.rs rename to pebrel_app/src/display/damage.rs index d3faa00db..936020ce2 100644 --- a/nebula_app/src/display/damage.rs +++ b/pebrel_app/src/display/damage.rs @@ -3,9 +3,9 @@ use std::{cmp, mem}; use glutin::surface::Rect; -use nebula_terminal::index::Point; -use nebula_terminal::selection::SelectionRange; -use nebula_terminal::term::{LineDamageBounds, TermDamageIterator}; +use pebrel_terminal::index::Point; +use pebrel_terminal::selection::SelectionRange; +use pebrel_terminal::term::{LineDamageBounds, TermDamageIterator}; use crate::display::SizeInfo; @@ -220,7 +220,7 @@ pub fn damage_y_to_viewport_y(size_info: &SizeInfo, rect: &Rect) -> i32 { size_info.height() as i32 - rect.y - rect.height } -/// Iterator which converts `nebula_terminal` damage information into renderer damaged rects. +/// Iterator which converts `pebrel_terminal` damage information into renderer damaged rects. struct RenderDamageIterator<'a> { damaged_lines: Peekable>, size_info: &'a SizeInfo, diff --git a/nebula_app/src/display/document_model.rs b/pebrel_app/src/display/document_model.rs similarity index 100% rename from nebula_app/src/display/document_model.rs rename to pebrel_app/src/display/document_model.rs diff --git a/nebula_app/src/display/file_dialog.rs b/pebrel_app/src/display/file_dialog.rs similarity index 100% rename from nebula_app/src/display/file_dialog.rs rename to pebrel_app/src/display/file_dialog.rs diff --git a/nebula_app/src/display/file_dialog/desktop.rs b/pebrel_app/src/display/file_dialog/desktop.rs similarity index 100% rename from nebula_app/src/display/file_dialog/desktop.rs rename to pebrel_app/src/display/file_dialog/desktop.rs diff --git a/nebula_app/src/display/file_dialog/folder.rs b/pebrel_app/src/display/file_dialog/folder.rs similarity index 100% rename from nebula_app/src/display/file_dialog/folder.rs rename to pebrel_app/src/display/file_dialog/folder.rs diff --git a/nebula_app/src/display/file_dialog/windows.rs b/pebrel_app/src/display/file_dialog/windows.rs similarity index 100% rename from nebula_app/src/display/file_dialog/windows.rs rename to pebrel_app/src/display/file_dialog/windows.rs diff --git a/nebula_app/src/display/file_operations.rs b/pebrel_app/src/display/file_operations.rs similarity index 100% rename from nebula_app/src/display/file_operations.rs rename to pebrel_app/src/display/file_operations.rs diff --git a/nebula_app/src/display/hint.rs b/pebrel_app/src/display/hint.rs similarity index 98% rename from nebula_app/src/display/hint.rs rename to pebrel_app/src/display/hint.rs index bdedbe50f..0b981e09b 100644 --- a/nebula_app/src/display/hint.rs +++ b/pebrel_app/src/display/hint.rs @@ -7,11 +7,11 @@ use std::sync::Arc; use ahash::RandomState; use winit::keyboard::ModifiersState; -use nebula_terminal::grid::{BidirectionalIterator, Dimensions}; -use nebula_terminal::index::{Boundary, Column, Direction, Line, Point}; -use nebula_terminal::term::cell::Hyperlink; -use nebula_terminal::term::search::{Match, RegexIter, RegexSearch}; -use nebula_terminal::term::{Term, TermMode}; +use pebrel_terminal::grid::{BidirectionalIterator, Dimensions}; +use pebrel_terminal::index::{Boundary, Column, Direction, Line, Point}; +use pebrel_terminal::term::cell::Hyperlink; +use pebrel_terminal::term::search::{Match, RegexIter, RegexSearch}; +use pebrel_terminal::term::{Term, TermMode}; use crate::config::UiConfig; use crate::config::ui_config::{Hint, HintAction}; @@ -839,9 +839,9 @@ impl Iterator for HintPostProcessor<'_, T> { #[cfg(test)] mod tests { - use nebula_terminal::index::{Column, Line}; - use nebula_terminal::term::test::mock_term; - use nebula_terminal::vte::ansi::Handler; + use pebrel_terminal::index::{Column, Line}; + use pebrel_terminal::term::test::mock_term; + use pebrel_terminal::vte::ansi::Handler; use super::*; @@ -953,10 +953,10 @@ mod tests { #[test] fn search_limit_never_opens_a_truncated_softwrapped_url_prefix() { - use nebula_terminal::event::VoidListener; - use nebula_terminal::grid::Scroll; - use nebula_terminal::term::{Config, test::TermSize}; - use nebula_terminal::vte::ansi::{Processor, StdSyncHandler}; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::grid::Scroll; + use pebrel_terminal::term::{Config, test::TermSize}; + use pebrel_terminal::vte::ansi::{Processor, StdSyncHandler}; let mut term = Term::new(Config::default(), &TermSize::new(20, 4), VoidListener); let target = format!("https://example.com/{}7 ", "a".repeat(20 * 140)); Processor::::default().advance(&mut term, target.as_bytes()); diff --git a/nebula_app/src/display/hint/table.rs b/pebrel_app/src/display/hint/table.rs similarity index 99% rename from nebula_app/src/display/hint/table.rs rename to pebrel_app/src/display/hint/table.rs index 5087052b1..adfbf8010 100644 --- a/nebula_app/src/display/hint/table.rs +++ b/pebrel_app/src/display/hint/table.rs @@ -1,7 +1,7 @@ //! Resolve a bare URL wrapped inside one bordered table record. use super::*; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; const MAX_TABLE_ROWS: usize = 32; diff --git a/nebula_app/src/display/image_viewer.rs b/pebrel_app/src/display/image_viewer.rs similarity index 100% rename from nebula_app/src/display/image_viewer.rs rename to pebrel_app/src/display/image_viewer.rs diff --git a/nebula_app/src/display/inline_image.rs b/pebrel_app/src/display/inline_image.rs similarity index 92% rename from nebula_app/src/display/inline_image.rs rename to pebrel_app/src/display/inline_image.rs index 960f800d6..461a1406f 100644 --- a/nebula_app/src/display/inline_image.rs +++ b/pebrel_app/src/display/inline_image.rs @@ -2,10 +2,10 @@ use std::sync::Arc; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::inline_image::push_image_run; -use nebula_terminal::term::{Term, point_to_viewport_from}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::inline_image::push_image_run; +use pebrel_terminal::term::{Term, point_to_viewport_from}; use crate::renderer::Renderer; diff --git a/nebula_app/src/display/input_state.rs b/pebrel_app/src/display/input_state.rs similarity index 97% rename from nebula_app/src/display/input_state.rs rename to pebrel_app/src/display/input_state.rs index d7d331e49..6d3b36edc 100644 --- a/nebula_app/src/display/input_state.rs +++ b/pebrel_app/src/display/input_state.rs @@ -4,11 +4,11 @@ //! suggestions and reconciles it with the terminal grid whenever screen truth //! is available. No window or renderer state belongs in this module. -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line, Point}; -use nebula_terminal::term::Term; -use nebula_terminal::term::cell::{Cell, Flags}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line, Point}; +use pebrel_terminal::term::Term; +use pebrel_terminal::term::cell::{Cell, Flags}; use super::{NebulaPaneState, SuggestEnv, nebula_debug_log}; @@ -250,7 +250,7 @@ pub(crate) fn nebula_shell_prompt_restored_from_raw_grid( expected_prompt: &str, env: &SuggestEnv, ) -> bool { - if terminal.mode().intersects(nebula_terminal::term::TermMode::ALT_SCREEN) { + if terminal.mode().intersects(pebrel_terminal::term::TermMode::ALT_SCREEN) { return false; } let cursor = terminal.grid().cursor.point; @@ -465,9 +465,9 @@ mod tests { #[test] fn prompt_start_alone_does_not_turn_a_nested_path_suffix_into_a_command() { - use nebula_terminal::event::VoidListener; - use nebula_terminal::event_loop::StreamProcessor; - use nebula_terminal::grid::Grid; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::event_loop::StreamProcessor; + use pebrel_terminal::grid::Grid; for boundary in ["", "\x1b]133;B\x07"] { let size = Grid::::new(2, 80, 0); @@ -544,8 +544,8 @@ mod tests { #[test] fn shell_text_after_cursor_yields_completion_until_accepted() { - use nebula_terminal::event::VoidListener; - use nebula_terminal::grid::Grid; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::grid::Grid; let size = Grid::::new(2, 80, 0); let mut terminal = Term::new(Default::default(), &size, VoidListener); @@ -565,9 +565,9 @@ mod tests { #[test] fn semantic_prompt_input_handles_pending_wrap_and_bottom_row_scroll() { - use nebula_terminal::event::VoidListener; - use nebula_terminal::event_loop::StreamProcessor; - use nebula_terminal::grid::Grid; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::event_loop::StreamProcessor; + use pebrel_terminal::grid::Grid; for start_row in [1, 2] { for prompt_len in [0, 75, 79, 80, 81, 160] { diff --git a/nebula_app/src/display/keymap.rs b/pebrel_app/src/display/keymap.rs similarity index 99% rename from nebula_app/src/display/keymap.rs rename to pebrel_app/src/display/keymap.rs index 730326a9c..02ce3d35d 100644 --- a/nebula_app/src/display/keymap.rs +++ b/pebrel_app/src/display/keymap.rs @@ -1025,8 +1025,8 @@ mod tests { assert_eq!(effective_combo(&action, &[]), Some(("F2".into(), false))); let mut raw = Vec::new(); rebind_action(&mut raw, &action, "ctrl+alt+r".into()); - let saved = nebula_settings::apply_keybinds("theme=nord\n", &raw); - let mut restored = nebula_settings::keybind_pairs_from_text(&saved); + let saved = pebrel_settings::apply_keybinds("theme=nord\n", &raw); + let mut restored = pebrel_settings::keybind_pairs_from_text(&saved); let bindings = build_bindings(&restored); assert_eq!( effective_combo(&action, &bindings), @@ -1080,8 +1080,8 @@ mod tests { let action = Action::ToggleShellPicker; let mut raw = vec![("ctrl+alt+k".to_owned(), action_storage_name(&action))]; clear_action(&mut raw, &action); - let saved = nebula_settings::apply_keybinds("theme=moss\n", &raw); - let reloaded = nebula_settings::keybind_pairs_from_text(&saved); + let saved = pebrel_settings::apply_keybinds("theme=moss\n", &raw); + let reloaded = pebrel_settings::keybind_pairs_from_text(&saved); assert_eq!(raw, reloaded); let bindings = build_bindings(&reloaded); assert!(effective_combo(&action, &bindings).is_none()); diff --git a/nebula_app/src/display/markdown_view.rs b/pebrel_app/src/display/markdown_view.rs similarity index 99% rename from nebula_app/src/display/markdown_view.rs rename to pebrel_app/src/display/markdown_view.rs index 61466dd81..343758e16 100644 --- a/nebula_app/src/display/markdown_view.rs +++ b/pebrel_app/src/display/markdown_view.rs @@ -21,7 +21,7 @@ use std::ops::Range; use std::path::{Path, PathBuf}; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; use unicode_width::UnicodeWidthChar; use crate::markdown::{ diff --git a/nebula_app/src/display/message_queue_entry.rs b/pebrel_app/src/display/message_queue_entry.rs similarity index 99% rename from nebula_app/src/display/message_queue_entry.rs rename to pebrel_app/src/display/message_queue_entry.rs index dace3b93f..5c304a416 100644 --- a/nebula_app/src/display/message_queue_entry.rs +++ b/pebrel_app/src/display/message_queue_entry.rs @@ -5,7 +5,7 @@ //! work can evolve without adding another block of unrelated drawing code to //! `chrome.rs`. -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; use super::color::Rgb; use super::ui::theme::Skin; diff --git a/nebula_app/src/display/meter.rs b/pebrel_app/src/display/meter.rs similarity index 97% rename from nebula_app/src/display/meter.rs rename to pebrel_app/src/display/meter.rs index 5032b734e..7896b9da5 100644 --- a/nebula_app/src/display/meter.rs +++ b/pebrel_app/src/display/meter.rs @@ -6,7 +6,7 @@ //! //! ```rust //! // create a meter -//! let mut meter = nebula_terminal::meter::Meter::new(); +//! let mut meter = pebrel_terminal::meter::Meter::new(); //! //! // Sample something. //! { diff --git a/nebula_app/src/display/mod.rs b/pebrel_app/src/display/mod.rs similarity index 99% rename from nebula_app/src/display/mod.rs rename to pebrel_app/src/display/mod.rs index 4535afc23..d7ae38085 100644 --- a/nebula_app/src/display/mod.rs +++ b/pebrel_app/src/display/mod.rs @@ -26,15 +26,15 @@ use winit::window::{CursorIcon, Theme as WinitTheme}; use crossfont::{Rasterize, Size as FontSize}; use unicode_width::UnicodeWidthChar; -use nebula_terminal::event::{EventListener, OnResize}; -use nebula_terminal::grid::Dimensions as TermDimensions; -use nebula_terminal::index::{Column, Direction, Line, Point}; -use nebula_terminal::selection::Selection; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::term::{ +use pebrel_terminal::event::{EventListener, OnResize}; +use pebrel_terminal::grid::Dimensions as TermDimensions; +use pebrel_terminal::index::{Column, Direction, Line, Point}; +use pebrel_terminal::selection::Selection; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::term::{ self, LineDamageBounds, MIN_COLUMNS, MIN_SCREEN_LINES, Term, TermDamage, TermMode, }; -use nebula_terminal::vte::ansi::{CursorShape, NamedColor}; +use pebrel_terminal::vte::ansi::{CursorShape, NamedColor}; use crate::config::UiConfig; use crate::config::debug::RendererPreference; @@ -287,10 +287,10 @@ pub(crate) const UI_CORNER_RADIUS_LOGICAL: f32 = 8.0; /// (see `gpui_shell::theme::card_radius`) so both shells round the card /// identically. /// -/// The number itself lives in `nebula_settings` — it is the default for the +/// The number itself lives in `pebrel_settings` — it is the default for the /// per-theme card geometry, and a second literal here would be exactly the /// "two copies of one number" that produced the white seam around the card. -pub(crate) const UI_SHELL_RADIUS_LOGICAL: f32 = nebula_settings::DEFAULT_PANE_CARD_RADIUS; +pub(crate) const UI_SHELL_RADIUS_LOGICAL: f32 = pebrel_settings::DEFAULT_PANE_CARD_RADIUS; /// Gap between the terminal card and the window's right/bottom edges, in /// logical pixels — the visible "seam" of shell color that makes the terminal @@ -378,7 +378,7 @@ fn apply_min_window_size( cell_height, pad.1 + chrome_reserve(scale), pad.1, - nebula_terminal::term::MIN_SCREEN_LINES, + pebrel_terminal::term::MIN_SCREEN_LINES, ); window .set_min_inner_size(Some(LogicalSize::new((min_w / scale) as f64, (min_h / scale) as f64))); @@ -600,7 +600,7 @@ pub(crate) fn nebula_data_dir() -> PathBuf { /// The typed loader is `settings::nebula_settings_load`; this is for the few /// callers (e.g. the default-shell id) that want the raw string verbatim. pub(crate) fn nebula_settings_value(key: &str) -> Option { - let data = std::fs::read_to_string(nebula_settings::settings_path()).ok()?; + let data = std::fs::read_to_string(pebrel_settings::settings_path()).ok()?; data.lines().find_map(|line| { let (k, v) = line.split_once('=')?; k.trim().eq_ignore_ascii_case(key).then(|| v.trim().to_owned()) @@ -1081,7 +1081,7 @@ pub struct Display { /// 捕获态实时回显:当前按住的修饰键前缀("Ctrl+Shift+")。松开清空。 pub nebula_keymap_capture_preview: String, /// 与 GPUI 壳共用的标签栏位置。旧壳只负责原样保留,不改变自身布局。 - pub nebula_tabs_position: nebula_settings::TabsPositionName, + pub nebula_tabs_position: pebrel_settings::TabsPositionName, pub nebula_tab_reveal_motion: settings::TabRevealMotion, /// 界面外观预设。紧凑只在既有阶梯上降一档,不引入新的视觉数值 /// (ADR-0002);它不改变终端字体、单元格几何或 shell 输出。 @@ -3740,8 +3740,8 @@ impl Display { /// The default cursor style (shape + blink) every terminal should fall /// back to when no escape has overridden it. - pub fn nebula_default_cursor_style(&self) -> nebula_terminal::vte::ansi::CursorStyle { - nebula_terminal::vte::ansi::CursorStyle { + pub fn nebula_default_cursor_style(&self) -> pebrel_terminal::vte::ansi::CursorStyle { + pebrel_terminal::vte::ansi::CursorStyle { shape: self.nebula_cursor_shape, blinking: self.nebula_cursor_blink, } @@ -8877,7 +8877,7 @@ impl Display { action_x, action_y, if self.nebula_ssh_delete_undo_hover { sk.ink_strong } else { sk.accent }, - nebula_terminal::term::cell::Flags::BOLD, + pebrel_terminal::term::cell::Flags::BOLD, action, &mut self.glyph_cache, ); @@ -10233,7 +10233,7 @@ fn window_size( #[cfg(test)] mod nebula_ux_tests { - use nebula_terminal::grid::Dimensions; + use pebrel_terminal::grid::Dimensions; use winit::window::Theme as WinitTheme; use super::{ diff --git a/nebula_app/src/display/network_proxy_model.rs b/pebrel_app/src/display/network_proxy_model.rs similarity index 100% rename from nebula_app/src/display/network_proxy_model.rs rename to pebrel_app/src/display/network_proxy_model.rs diff --git a/nebula_app/src/display/program_identity.rs b/pebrel_app/src/display/program_identity.rs similarity index 100% rename from nebula_app/src/display/program_identity.rs rename to pebrel_app/src/display/program_identity.rs diff --git a/nebula_app/src/display/proxy_editor.rs b/pebrel_app/src/display/proxy_editor.rs similarity index 100% rename from nebula_app/src/display/proxy_editor.rs rename to pebrel_app/src/display/proxy_editor.rs diff --git a/nebula_app/src/display/settings.rs b/pebrel_app/src/display/settings.rs similarity index 99% rename from nebula_app/src/display/settings.rs rename to pebrel_app/src/display/settings.rs index c7f1198dd..28be42336 100644 --- a/nebula_app/src/display/settings.rs +++ b/pebrel_app/src/display/settings.rs @@ -15,7 +15,7 @@ use unicode_width::UnicodeWidthChar; -use nebula_terminal::vte::ansi::CursorShape; +use pebrel_terminal::vte::ansi::CursorShape; use crate::config::UiConfig; use crate::display::color::Rgb; @@ -744,7 +744,7 @@ pub(super) struct NebulaRuntimeSettings { pub(super) cjk_bold_regular: bool, /// 旧壳不渲染顶部标签栏,但必须保留这个共享设置,否则它整体写回配置 /// 时会把 GPUI 壳选择的布局抹掉。 - pub(super) tabs_position: nebula_settings::TabsPositionName, + pub(super) tabs_position: pebrel_settings::TabsPositionName, pub(super) tab_reveal: TabRevealMotion, /// 界面外观预设:标准 / 紧凑。 pub(super) density: super::ui::tokens::Density, @@ -818,7 +818,7 @@ pub(super) struct NebulaRuntimeSettings { /// absent. Format is one `key=value` per line so power users can edit it while /// the graphical settings page catches up. pub(super) fn nebula_settings_load(config: &UiConfig) -> NebulaRuntimeSettings { - let path = nebula_settings::settings_path(); + let path = pebrel_settings::settings_path(); let mut settings = NebulaRuntimeSettings { language: LanguagePreference::System, ghost: true, @@ -833,7 +833,7 @@ pub(super) fn nebula_settings_load(config: &UiConfig) -> NebulaRuntimeSettings { cursor_blink: true, copy_on_select: true, cjk_bold_regular: true, - tabs_position: nebula_settings::TabsPositionName::Sidebar, + tabs_position: pebrel_settings::TabsPositionName::Sidebar, tab_reveal: TabRevealMotion::Slide, density: super::ui::tokens::Density::Standard, new_tab_position: NewTabPosition::AfterCurrent, @@ -855,7 +855,7 @@ pub(super) fn nebula_settings_load(config: &UiConfig) -> NebulaRuntimeSettings { // toast 会过期);不想要常驻图标的人在设置里关。 tray: true, // Both shells use the shared opt-in material default. - blur: nebula_settings::BlurModeName::default().enabled(), + blur: pebrel_settings::BlurModeName::default().enabled(), opacity: config.window_opacity(), background: None, background_image: None, @@ -936,7 +936,7 @@ pub(super) fn nebula_settings_load(config: &UiConfig) -> NebulaRuntimeSettings { Some(("cjk_bold_regular", v)) => settings.cjk_bold_regular = parse_bool(v, true), Some(("tabs_position", v)) => { settings.tabs_position = - nebula_settings::TabsPositionName::from_settings(v).unwrap_or_default(); + pebrel_settings::TabsPositionName::from_settings(v).unwrap_or_default(); }, Some(("tab_reveal", v)) => { settings.tab_reveal = TabRevealMotion::parse(v).unwrap_or_default(); @@ -1060,7 +1060,7 @@ fn parse_bool(value: &str, default: bool) -> bool { /// Project the shared material parser into the legacy shell's boolean switch. fn parse_blur_enabled(value: &str) -> bool { - nebula_settings::BlurModeName::from_settings(value).unwrap_or_default().enabled() + pebrel_settings::BlurModeName::from_settings(value).unwrap_or_default().enabled() } fn parse_cursor_shape(value: &str) -> Option { @@ -1083,7 +1083,7 @@ pub(super) fn cursor_shape_settings_value(shape: CursorShape) -> &'static str { } pub(crate) fn parse_hex_rgb(value: &str) -> Option { - nebula_settings::parse_hex_rgb(value).map(|[r, g, b]| Rgb::new(r, g, b)) + pebrel_settings::parse_hex_rgb(value).map(|[r, g, b]| Rgb::new(r, g, b)) } fn format_hex_rgb(rgb: Rgb) -> String { @@ -1117,7 +1117,7 @@ fn background_image_alignment_label( } pub(super) fn nebula_settings_mtime() -> Option { - std::fs::metadata(nebula_settings::settings_path()).and_then(|meta| meta.modified()).ok() + std::fs::metadata(pebrel_settings::settings_path()).and_then(|meta| meta.modified()).ok() } /// Persist runtime settings next to the history file. @@ -1140,7 +1140,7 @@ pub(super) fn nebula_settings_write(settings: &NebulaRuntimeSettings) { .map(|path| path.to_string_lossy().into_owned()) .unwrap_or_default(); let theme = settings.theme.prompt_name(); - let path = nebula_settings::settings_path(); + let path = pebrel_settings::settings_path(); let pinned_hosts = crate::ssh_profiles::host_lists::encode(&settings.pinned_hosts); let saved_hosts = crate::ssh_profiles::host_lists::encode(&settings.saved_hosts); let hidden_hosts = crate::ssh_profiles::host_lists::encode(&settings.hidden_hosts); @@ -1479,7 +1479,7 @@ fn settings_geometry( let row_h = s(ROW_H); // Appearance: preview, cards, colors, cursor and interface groups. - let card_rows = (nebula_settings::ThemeName::BUILTIN.len() as f32 / card_columns).ceil(); + let card_rows = (pebrel_settings::ThemeName::BUILTIN.len() as f32 / card_columns).ceil(); let system_theme_y0 = card_y0 + card_rows * (64.0 + 48.0) + GROUP_ADVANCE; let color_y0 = system_theme_y0 + ROW_H + GROUP_ADVANCE; // Background-image controls: path, stretch, @@ -1776,7 +1776,7 @@ fn settings_geometry( nav, nav_groups, options: std::array::from_fn(|index| { - let name = nebula_settings::ThemeName::BUILTIN[index]; + let name = pebrel_settings::ThemeName::BUILTIN[index]; let theme = NebulaTheme::from_prompt_name(name.prompt_name()).unwrap(); (theme, card(index as f32), card_slot_y(index as f32), card_w, card_h) }), @@ -5568,7 +5568,7 @@ fn draw_big_text( ink: Rgb, text: &str, ) { - r.draw_ui_text(size, x, y, mult, ink, nebula_terminal::term::cell::Flags::empty(), text, gc); + r.draw_ui_text(size, x, y, mult, ink, pebrel_terminal::term::cell::Flags::empty(), text, gc); } /// A group heading inside the content pane: clearly larger than row labels @@ -5605,7 +5605,7 @@ fn keymap_group_title( text: &str, ink: Rgb, ) { - r.draw_ui_text(size, x, y, 0.86, ink, nebula_terminal::term::cell::Flags::empty(), text, gc); + r.draw_ui_text(size, x, y, 0.86, ink, pebrel_terminal::term::cell::Flags::empty(), text, gc); } fn warning_lines(note: &str, max_cols: usize) -> [String; 2] { @@ -5850,7 +5850,7 @@ pub(super) fn draw_text( widgets::centered_y(rect.1, rect.3, group_text_h), 0.78, sk.ink_dim, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), label, gc, ); @@ -5955,7 +5955,7 @@ pub(super) fn draw_text( prompt_y, 0.55, theme.accent(), - nebula_terminal::term::cell::Flags::BOLD, + pebrel_terminal::term::cell::Flags::BOLD, "❯", gc, ); @@ -6841,7 +6841,7 @@ pub(super) fn draw_text( title_y + cell_h * 0.95, 0.78, sk.ink_dim, - nebula_terminal::term::cell::Flags::empty(), + pebrel_terminal::term::cell::Flags::empty(), &host.destination, gc, ); diff --git a/nebula_app/src/display/sftp_panel.rs b/pebrel_app/src/display/sftp_panel.rs similarity index 100% rename from nebula_app/src/display/sftp_panel.rs rename to pebrel_app/src/display/sftp_panel.rs diff --git a/nebula_app/src/display/side_panel/enumerate.rs b/pebrel_app/src/display/side_panel/enumerate.rs similarity index 100% rename from nebula_app/src/display/side_panel/enumerate.rs rename to pebrel_app/src/display/side_panel/enumerate.rs diff --git a/nebula_app/src/display/side_panel/gitignore.rs b/pebrel_app/src/display/side_panel/gitignore.rs similarity index 100% rename from nebula_app/src/display/side_panel/gitignore.rs rename to pebrel_app/src/display/side_panel/gitignore.rs diff --git a/nebula_app/src/display/side_panel/gitignore_tests.rs b/pebrel_app/src/display/side_panel/gitignore_tests.rs similarity index 100% rename from nebula_app/src/display/side_panel/gitignore_tests.rs rename to pebrel_app/src/display/side_panel/gitignore_tests.rs diff --git a/nebula_app/src/display/side_panel/icons.rs b/pebrel_app/src/display/side_panel/icons.rs similarity index 100% rename from nebula_app/src/display/side_panel/icons.rs rename to pebrel_app/src/display/side_panel/icons.rs diff --git a/nebula_app/src/display/side_panel/mod.rs b/pebrel_app/src/display/side_panel/mod.rs similarity index 99% rename from nebula_app/src/display/side_panel/mod.rs rename to pebrel_app/src/display/side_panel/mod.rs index 2644548f3..ad9b638bd 100644 --- a/nebula_app/src/display/side_panel/mod.rs +++ b/pebrel_app/src/display/side_panel/mod.rs @@ -988,17 +988,17 @@ impl SidePanel { // 的分支;`vcs_display` 强制 Svn 时同理保持"无仓库"。 Some(located) if !matches!( - nebula_settings::RuntimeSettings::load().vcs_display, - nebula_settings::VcsDisplayName::Svn + pebrel_settings::RuntimeSettings::load().vcs_display, + pebrel_settings::VcsDisplayName::Svn ) => { read_git_wsl(located) }, Some(_) => None, - None => match nebula_settings::RuntimeSettings::load().vcs_display { - nebula_settings::VcsDisplayName::Git => read_git(&git_root), - nebula_settings::VcsDisplayName::Svn => read_svn(&git_root), - nebula_settings::VcsDisplayName::Auto => { + None => match pebrel_settings::RuntimeSettings::load().vcs_display { + pebrel_settings::VcsDisplayName::Git => read_git(&git_root), + pebrel_settings::VcsDisplayName::Svn => read_svn(&git_root), + pebrel_settings::VcsDisplayName::Auto => { if svn_dir_hint(&git_root) { read_svn(&git_root).or_else(|| read_git(&git_root)) } else { @@ -1294,7 +1294,7 @@ impl SidePanel { /// Order: directories first, then case-insensitive alphabetical. The cap is /// applied *after* sorting — capping the `read_dir` iterator instead samples /// whatever order the filesystem yields, and in a dot-heavy root (274 of - /// this repo's 318 entries start with `.`) that pushes `nebula_app`, `docs` + /// this repo's 318 entries start with `.`) that pushes `pebrel_app`, `docs` /// and the rest of the real tree past the cap, leaving a screen of `.tmp-*`. fn ordered_entries( entries: impl IntoIterator, diff --git a/nebula_app/src/display/side_panel/notice.rs b/pebrel_app/src/display/side_panel/notice.rs similarity index 100% rename from nebula_app/src/display/side_panel/notice.rs rename to pebrel_app/src/display/side_panel/notice.rs diff --git a/nebula_app/src/display/side_panel/render.rs b/pebrel_app/src/display/side_panel/render.rs similarity index 100% rename from nebula_app/src/display/side_panel/render.rs rename to pebrel_app/src/display/side_panel/render.rs diff --git a/nebula_app/src/display/side_panel/search.rs b/pebrel_app/src/display/side_panel/search.rs similarity index 100% rename from nebula_app/src/display/side_panel/search.rs rename to pebrel_app/src/display/side_panel/search.rs diff --git a/nebula_app/src/display/side_panel/search/cache.rs b/pebrel_app/src/display/side_panel/search/cache.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/cache.rs rename to pebrel_app/src/display/side_panel/search/cache.rs diff --git a/nebula_app/src/display/side_panel/search/matching.rs b/pebrel_app/src/display/side_panel/search/matching.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/matching.rs rename to pebrel_app/src/display/side_panel/search/matching.rs diff --git a/nebula_app/src/display/side_panel/search/memory.rs b/pebrel_app/src/display/side_panel/search/memory.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/memory.rs rename to pebrel_app/src/display/side_panel/search/memory.rs diff --git a/nebula_app/src/display/side_panel/search/stress.rs b/pebrel_app/src/display/side_panel/search/stress.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/stress.rs rename to pebrel_app/src/display/side_panel/search/stress.rs diff --git a/nebula_app/src/display/side_panel/search/tests.rs b/pebrel_app/src/display/side_panel/search/tests.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/tests.rs rename to pebrel_app/src/display/side_panel/search/tests.rs diff --git a/nebula_app/src/display/side_panel/search/walk.rs b/pebrel_app/src/display/side_panel/search/walk.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/walk.rs rename to pebrel_app/src/display/side_panel/search/walk.rs diff --git a/nebula_app/src/display/side_panel/search/worker.rs b/pebrel_app/src/display/side_panel/search/worker.rs similarity index 100% rename from nebula_app/src/display/side_panel/search/worker.rs rename to pebrel_app/src/display/side_panel/search/worker.rs diff --git a/nebula_app/src/display/side_panel/tests.rs b/pebrel_app/src/display/side_panel/tests.rs similarity index 99% rename from nebula_app/src/display/side_panel/tests.rs rename to pebrel_app/src/display/side_panel/tests.rs index bfe557e06..25994ab8b 100644 --- a/nebula_app/src/display/side_panel/tests.rs +++ b/pebrel_app/src/display/side_panel/tests.rs @@ -235,7 +235,7 @@ mod tests { } /// WSL 来宾根的枚举回归。依赖本机真实 Debian,所以默认忽略; - /// 用 `cargo test -p nebula --features gpui-shell -- --ignored` 手动跑。 + /// 用 `cargo test -p pebrel --features gpui-shell -- --ignored` 手动跑。 #[test] #[ignore = "需要本机注册 Debian 发行版"] fn wsl_guest_root_enumerates_entries() { @@ -398,13 +398,13 @@ mod tests { e(true, "zz-last-dir"), e(true, ".tmp-scratch"), e(false, "a.txt"), - e(true, "nebula_app"), + e(true, "pebrel_app"), ]; let kept = SidePanel::ordered_entries(raw, 2); let names: Vec<_> = kept.iter().map(|(_, name, _)| name.as_str()).collect(); assert_eq!( names, - [".tmp-scratch", "nebula_app"], + [".tmp-scratch", "pebrel_app"], "cap keeps the ordered head (dirs first, alphabetical), not read_dir order" ); // Files still sort behind every directory, and the cap never reorders. diff --git a/nebula_app/src/display/side_panel/vcs.rs b/pebrel_app/src/display/side_panel/vcs.rs similarity index 100% rename from nebula_app/src/display/side_panel/vcs.rs rename to pebrel_app/src/display/side_panel/vcs.rs diff --git a/nebula_app/src/display/size_info.rs b/pebrel_app/src/display/size_info.rs similarity index 98% rename from nebula_app/src/display/size_info.rs rename to pebrel_app/src/display/size_info.rs index 23679c5e5..704baded6 100644 --- a/nebula_app/src/display/size_info.rs +++ b/pebrel_app/src/display/size_info.rs @@ -4,9 +4,9 @@ use std::cmp; use serde::{Deserialize, Serialize}; -use nebula_terminal::event::WindowSize; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::term::{MIN_COLUMNS, MIN_SCREEN_LINES}; +use pebrel_terminal::event::WindowSize; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::term::{MIN_COLUMNS, MIN_SCREEN_LINES}; #[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq)] pub struct SizeInfo { diff --git a/nebula_app/src/display/ssh_connect.rs b/pebrel_app/src/display/ssh_connect.rs similarity index 99% rename from nebula_app/src/display/ssh_connect.rs rename to pebrel_app/src/display/ssh_connect.rs index ea5544b4c..0c7377203 100644 --- a/nebula_app/src/display/ssh_connect.rs +++ b/pebrel_app/src/display/ssh_connect.rs @@ -28,7 +28,7 @@ use crate::renderer::ui::{Gradient, Rgba, UiQuad}; use crate::renderer::{GlyphCache, Renderer}; use crate::ssh_session::SshStage; #[cfg(feature = "legacy-shell")] -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; /// 低于这个耗时的连接完全不显示卡片。 const REVEAL_DELAY: Duration = Duration::from_millis(350); diff --git a/nebula_app/src/display/ssh_editor_input.rs b/pebrel_app/src/display/ssh_editor_input.rs similarity index 100% rename from nebula_app/src/display/ssh_editor_input.rs rename to pebrel_app/src/display/ssh_editor_input.rs diff --git a/nebula_app/src/display/ssh_editor_render.rs b/pebrel_app/src/display/ssh_editor_render.rs similarity index 100% rename from nebula_app/src/display/ssh_editor_render.rs rename to pebrel_app/src/display/ssh_editor_render.rs diff --git a/nebula_app/src/display/ssh_ui.rs b/pebrel_app/src/display/ssh_ui.rs similarity index 100% rename from nebula_app/src/display/ssh_ui.rs rename to pebrel_app/src/display/ssh_ui.rs diff --git a/nebula_app/src/display/state.rs b/pebrel_app/src/display/state.rs similarity index 98% rename from nebula_app/src/display/state.rs rename to pebrel_app/src/display/state.rs index 2faf4f77d..c9ff5acd9 100644 --- a/nebula_app/src/display/state.rs +++ b/pebrel_app/src/display/state.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use std::sync::Arc; -use nebula_terminal::index::{Line, Point, Side}; +use pebrel_terminal::index::{Line, Point, Side}; use super::terminal_math::TerminalMathState; @@ -16,7 +16,7 @@ pub enum AcceptKey { Both, } -pub use nebula_settings::CompletionStyleName as CompletionStyle; +pub use pebrel_settings::CompletionStyleName as CompletionStyle; /// Source of a popup completion candidate; drives the right-aligned tag. #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -162,7 +162,7 @@ impl NebulaConfirm { /// Decoded pixels for a grid-owned OSC 1337 image. #[derive(Debug, Clone)] pub struct NebulaInlineImage { - pub placement: nebula_terminal::inline_image::ImagePlacement, + pub placement: pebrel_terminal::inline_image::ImagePlacement, pub rgba: Arc>, pub px_w: u32, pub px_h: u32, diff --git a/nebula_app/src/display/suggest_engine.rs b/pebrel_app/src/display/suggest_engine.rs similarity index 100% rename from nebula_app/src/display/suggest_engine.rs rename to pebrel_app/src/display/suggest_engine.rs diff --git a/nebula_app/src/display/surface_opacity.rs b/pebrel_app/src/display/surface_opacity.rs similarity index 100% rename from nebula_app/src/display/surface_opacity.rs rename to pebrel_app/src/display/surface_opacity.rs diff --git a/nebula_app/src/display/terminal_color.rs b/pebrel_app/src/display/terminal_color.rs similarity index 98% rename from nebula_app/src/display/terminal_color.rs rename to pebrel_app/src/display/terminal_color.rs index 2b0fd4356..a9bb329f8 100644 --- a/nebula_app/src/display/terminal_color.rs +++ b/pebrel_app/src/display/terminal_color.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; -use nebula_terminal::term::color::Colors; -use nebula_terminal::vte::ansi::Color; +use pebrel_terminal::term::color::Colors; +use pebrel_terminal::vte::ansi::Color; use super::color::Rgb; use super::ui::tokens::terminal_feedback::FIXED_TEXT_MIN_CONTRAST; @@ -204,8 +204,8 @@ fn packed(color: Rgb) -> u32 { #[cfg(test)] mod tests { - use nebula_terminal::term::color::Colors; - use nebula_terminal::vte::ansi::{Color, NamedColor, Rgb as VteRgb}; + use pebrel_terminal::term::color::Colors; + use pebrel_terminal::vte::ansi::{Color, NamedColor, Rgb as VteRgb}; use super::{TerminalColorResolver, is_fixed_color}; use crate::display::color::Rgb; diff --git a/nebula_app/src/display/terminal_math.rs b/pebrel_app/src/display/terminal_math.rs similarity index 99% rename from nebula_app/src/display/terminal_math.rs rename to pebrel_app/src/display/terminal_math.rs index e856b43b2..d07033464 100644 --- a/nebula_app/src/display/terminal_math.rs +++ b/pebrel_app/src/display/terminal_math.rs @@ -15,11 +15,11 @@ use std::hash::{DefaultHasher, Hash, Hasher}; use std::mem::size_of; use std::sync::Arc; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line, Point, Side}; -use nebula_terminal::inline_image::ImageRun; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::term::{self, Term}; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line, Point, Side}; +use pebrel_terminal::inline_image::ImageRun; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::term::{self, Term}; use crate::display::SizeInfo; use crate::display::color::Rgb; @@ -697,7 +697,7 @@ impl FormulaOverlay { /// /// PR #55 重写扫描器时把这个访问器删了,但 `gpui_shell` 的 /// `math_overlay.rs` 一直在调它——默认 features 不编译 gpui 壳,所以 - /// `cargo build -p nebula` 看不出来。加 feature 才暴露。 + /// `cargo build -p pebrel` 看不出来。加 feature 才暴露。 pub(crate) fn source_arc(&self) -> Arc { Arc::clone(&self.source) } diff --git a/nebula_app/src/display/terminal_math/scan.rs b/pebrel_app/src/display/terminal_math/scan.rs similarity index 100% rename from nebula_app/src/display/terminal_math/scan.rs rename to pebrel_app/src/display/terminal_math/scan.rs diff --git a/nebula_app/src/display/terminal_math/tests.rs b/pebrel_app/src/display/terminal_math/tests.rs similarity index 99% rename from nebula_app/src/display/terminal_math/tests.rs rename to pebrel_app/src/display/terminal_math/tests.rs index 1e68738c8..5ca17191b 100644 --- a/nebula_app/src/display/terminal_math/tests.rs +++ b/pebrel_app/src/display/terminal_math/tests.rs @@ -1655,7 +1655,7 @@ fn diagnose_sizes() { } /// 每帧扫描与冷编译的量尺,不是断言。跑法: -/// `cargo test -p nebula --bin nebula terminal_math::tests::measure_scan -- --ignored --nocapture` +/// `cargo test -p pebrel --bin nebula terminal_math::tests::measure_scan -- --ignored --nocapture` #[test] #[ignore = "timing probe, run by hand"] fn measure_scan_and_compile_cost() { @@ -1715,7 +1715,7 @@ fn measure_scan_and_compile_cost() { #[test] fn image_projection_preserves_erased_tiles_row_offsets_and_clipping() { - use nebula_terminal::inline_image::ImageRun; + use pebrel_terminal::inline_image::ImageRun; let projection = LineProjection { spans: vec![ProjectionSpan { source_index: 0, @@ -1778,7 +1778,7 @@ fn image_projection_preserves_erased_tiles_row_offsets_and_clipping() { #[test] fn expanded_formula_clips_image_without_changing_texture_origin() { - use nebula_terminal::inline_image::ImageRun; + use pebrel_terminal::inline_image::ImageRun; let projection = LineProjection { spans: vec![ProjectionSpan { source_index: 0, diff --git a/nebula_app/src/display/text_input.rs b/pebrel_app/src/display/text_input.rs similarity index 100% rename from nebula_app/src/display/text_input.rs rename to pebrel_app/src/display/text_input.rs diff --git a/nebula_app/src/display/text_path_model.rs b/pebrel_app/src/display/text_path_model.rs similarity index 100% rename from nebula_app/src/display/text_path_model.rs rename to pebrel_app/src/display/text_path_model.rs diff --git a/nebula_app/src/display/toast.rs b/pebrel_app/src/display/toast.rs similarity index 100% rename from nebula_app/src/display/toast.rs rename to pebrel_app/src/display/toast.rs diff --git a/nebula_app/src/display/ui/caret.rs b/pebrel_app/src/display/ui/caret.rs similarity index 100% rename from nebula_app/src/display/ui/caret.rs rename to pebrel_app/src/display/ui/caret.rs diff --git a/nebula_app/src/display/ui/color_math.rs b/pebrel_app/src/display/ui/color_math.rs similarity index 100% rename from nebula_app/src/display/ui/color_math.rs rename to pebrel_app/src/display/ui/color_math.rs diff --git a/nebula_app/src/display/ui/geometry.rs b/pebrel_app/src/display/ui/geometry.rs similarity index 100% rename from nebula_app/src/display/ui/geometry.rs rename to pebrel_app/src/display/ui/geometry.rs diff --git a/nebula_app/src/display/ui/guardrails.rs b/pebrel_app/src/display/ui/guardrails.rs similarity index 100% rename from nebula_app/src/display/ui/guardrails.rs rename to pebrel_app/src/display/ui/guardrails.rs diff --git a/nebula_app/src/display/ui/icons.rs b/pebrel_app/src/display/ui/icons.rs similarity index 100% rename from nebula_app/src/display/ui/icons.rs rename to pebrel_app/src/display/ui/icons.rs diff --git a/nebula_app/src/display/ui/keycap.rs b/pebrel_app/src/display/ui/keycap.rs similarity index 100% rename from nebula_app/src/display/ui/keycap.rs rename to pebrel_app/src/display/ui/keycap.rs diff --git a/nebula_app/src/display/ui/keycap_model.rs b/pebrel_app/src/display/ui/keycap_model.rs similarity index 100% rename from nebula_app/src/display/ui/keycap_model.rs rename to pebrel_app/src/display/ui/keycap_model.rs diff --git a/nebula_app/src/display/ui/mod.rs b/pebrel_app/src/display/ui/mod.rs similarity index 100% rename from nebula_app/src/display/ui/mod.rs rename to pebrel_app/src/display/ui/mod.rs diff --git a/nebula_app/src/display/ui/os_icons.rs b/pebrel_app/src/display/ui/os_icons.rs similarity index 100% rename from nebula_app/src/display/ui/os_icons.rs rename to pebrel_app/src/display/ui/os_icons.rs diff --git a/nebula_app/src/display/ui/overlay_list.rs b/pebrel_app/src/display/ui/overlay_list.rs similarity index 100% rename from nebula_app/src/display/ui/overlay_list.rs rename to pebrel_app/src/display/ui/overlay_list.rs diff --git a/nebula_app/src/display/ui/surface.rs b/pebrel_app/src/display/ui/surface.rs similarity index 100% rename from nebula_app/src/display/ui/surface.rs rename to pebrel_app/src/display/ui/surface.rs diff --git a/nebula_app/src/display/ui/text_field.rs b/pebrel_app/src/display/ui/text_field.rs similarity index 100% rename from nebula_app/src/display/ui/text_field.rs rename to pebrel_app/src/display/ui/text_field.rs diff --git a/nebula_app/src/display/ui/theme.rs b/pebrel_app/src/display/ui/theme.rs similarity index 98% rename from nebula_app/src/display/ui/theme.rs rename to pebrel_app/src/display/ui/theme.rs index 73c01edc0..852b329a1 100644 --- a/nebula_app/src/display/ui/theme.rs +++ b/pebrel_app/src/display/ui/theme.rs @@ -20,7 +20,7 @@ use crate::display::color::{List, Rgb}; use crate::renderer::ui::Rgba; -use nebula_terminal::vte::ansi::NamedColor; +use pebrel_terminal::vte::ansi::NamedColor; /// Built-in chrome themes exposed from the settings panel. The original seven /// theme identities bridge to the settings-owned palette catalog. @@ -49,14 +49,14 @@ pub enum NebulaTheme { } impl Default for NebulaTheme { - /// 出厂默认主题的唯一真源是 [`nebula_settings::ThemeName::default`]。 + /// 出厂默认主题的唯一真源是 [`pebrel_settings::ThemeName::default`]。 /// /// 这里通过稳定的 prompt 名桥接而不是再写一份枚举映射:`ThemeName` 和 /// `NebulaTheme` 是两个 crate 里的两个枚举,各存一份字面量默认值就会在 /// 「改了出厂主题但只改了一处」时让两壳分家 —— 圆角默认值当初正是这样漏出 /// 一圈白边的。名字对不上时回落到 Nord,与真源当前的默认一致。 fn default() -> Self { - Self::from_prompt_name(nebula_settings::ThemeName::default().prompt_name()) + Self::from_prompt_name(pebrel_settings::ThemeName::default().prompt_name()) .unwrap_or(Self::Nord) } } @@ -274,9 +274,9 @@ impl NebulaTheme { } /// Nord and Paper carry a complete terminal palette. Keeping the - /// data in `nebula_settings` gives GPUI and the legacy renderer one source. - pub(crate) fn exact_term_colors(self) -> Option { - nebula_settings::ThemeName::from_prompt_name(self.prompt_name()) + /// data in `pebrel_settings` gives GPUI and the legacy renderer one source. + pub(crate) fn exact_term_colors(self) -> Option { + pebrel_settings::ThemeName::from_prompt_name(self.prompt_name()) .and_then(|name| name.term_theme().exact) } @@ -385,7 +385,7 @@ impl NebulaTheme { | Self::CatppuccinFrappe | Self::CatppuccinMacchiato | Self::GlassLight - | Self::GlassDark => nebula_settings::ThemeName::from_prompt_name(self.prompt_name()) + | Self::GlassDark => pebrel_settings::ThemeName::from_prompt_name(self.prompt_name()) .unwrap() .term_theme() .powerline @@ -473,15 +473,15 @@ impl NebulaTheme { } } - fn fresh_palette(self) -> Option { - nebula_settings::ThemeName::from_prompt_name(self.prompt_name()) + fn fresh_palette(self) -> Option { + pebrel_settings::ThemeName::from_prompt_name(self.prompt_name()) .and_then(|name| name.fresh_palette()) } pub(crate) fn palette(self) -> NebulaPalette { let p = self.fresh_palette().expect("reviewed theme palette"); let rgba = |rgb: [u8; 3], alpha| Rgba::new(rgb[0], rgb[1], rgb[2], alpha); - let reviewed = nebula_settings::ThemeName::from_prompt_name(self.prompt_name()) + let reviewed = pebrel_settings::ThemeName::from_prompt_name(self.prompt_name()) .expect("shared theme identity") .reviewed_palette(); NebulaPalette { @@ -520,7 +520,7 @@ impl NebulaTheme { /// See [`Skin`] for what each token means. pub(crate) fn skin(self) -> Skin { let mut skin = self.skin_defaults(); - let p = nebula_settings::ThemeName::from_prompt_name(self.prompt_name()) + let p = pebrel_settings::ThemeName::from_prompt_name(self.prompt_name()) .expect("shared theme identity") .reviewed_palette(); let rgba = |rgb: [u8; 3]| Rgba::new(rgb[0], rgb[1], rgb[2], 255); @@ -739,7 +739,7 @@ impl NebulaTheme { } } -fn rgb8([r, g, b]: nebula_settings::Rgb8) -> Rgb { +fn rgb8([r, g, b]: pebrel_settings::Rgb8) -> Rgb { Rgb::new(r, g, b) } diff --git a/nebula_app/src/display/ui/toast.rs b/pebrel_app/src/display/ui/toast.rs similarity index 100% rename from nebula_app/src/display/ui/toast.rs rename to pebrel_app/src/display/ui/toast.rs diff --git a/nebula_app/src/display/ui/toast_kind.rs b/pebrel_app/src/display/ui/toast_kind.rs similarity index 100% rename from nebula_app/src/display/ui/toast_kind.rs rename to pebrel_app/src/display/ui/toast_kind.rs diff --git a/nebula_app/src/display/ui/tokens.rs b/pebrel_app/src/display/ui/tokens.rs similarity index 100% rename from nebula_app/src/display/ui/tokens.rs rename to pebrel_app/src/display/ui/tokens.rs diff --git a/nebula_app/src/display/ui/widgets.rs b/pebrel_app/src/display/ui/widgets.rs similarity index 100% rename from nebula_app/src/display/ui/widgets.rs rename to pebrel_app/src/display/ui/widgets.rs diff --git a/nebula_app/src/display/window.rs b/pebrel_app/src/display/window.rs similarity index 99% rename from nebula_app/src/display/window.rs rename to pebrel_app/src/display/window.rs index 150d11947..5bfc1ccb0 100644 --- a/nebula_app/src/display/window.rs +++ b/pebrel_app/src/display/window.rs @@ -39,7 +39,7 @@ use winit::window::{ WindowAttributes, WindowId, WindowLevel, }; -use nebula_terminal::index::Point; +use pebrel_terminal::index::Point; use crate::cli::WindowOptions; use crate::config::UiConfig; @@ -49,7 +49,7 @@ use crate::display::SizeInfo; /// Window icon for `_NET_WM_ICON` property. /// /// Three levels up, not two: this file sits in `src/display/`, so `../../` -/// would land on `nebula_app/extra` — which is a stray 8-byte regular file +/// would land on `pebrel_app/extra` — which is a stray 8-byte regular file /// holding the text `../extra` (a symlink that got committed as content under /// `core.symlinks=false`, mode 100644). It is not a real symlink on any /// platform, so the two-level path can never resolve. Windows never noticed diff --git a/nebula_app/src/document_io.rs b/pebrel_app/src/document_io.rs similarity index 100% rename from nebula_app/src/document_io.rs rename to pebrel_app/src/document_io.rs diff --git a/nebula_app/src/encrypted_backup.rs b/pebrel_app/src/encrypted_backup.rs similarity index 99% rename from nebula_app/src/encrypted_backup.rs rename to pebrel_app/src/encrypted_backup.rs index 4bd6ae140..c39f75ee0 100644 --- a/nebula_app/src/encrypted_backup.rs +++ b/pebrel_app/src/encrypted_backup.rs @@ -322,8 +322,8 @@ fn add_file( entries: &mut Vec, transform: fn(Vec) -> Vec, ) -> Result<(), String> { - let canonical = nebula_settings::canonical_data_file_name(name); - let legacy = nebula_settings::legacy_data_file_name(canonical).unwrap_or(name); + let canonical = pebrel_settings::canonical_data_file_name(name); + let legacy = pebrel_settings::legacy_data_file_name(canonical).unwrap_or(name); for candidate in [canonical, legacy] { match fs::read(root.join(candidate)) { Ok(bytes) => { @@ -378,7 +378,7 @@ fn add_fonts(root: &Path, entries: &mut Vec) -> Result<(), String> if path .file_name() .and_then(|name| name.to_str()) - .is_some_and(nebula_settings::is_migration_artifact) + .is_some_and(pebrel_settings::is_migration_artifact) { continue; } diff --git a/nebula_app/src/encrypted_backup/recovery.rs b/pebrel_app/src/encrypted_backup/recovery.rs similarity index 100% rename from nebula_app/src/encrypted_backup/recovery.rs rename to pebrel_app/src/encrypted_backup/recovery.rs diff --git a/nebula_app/src/event.rs b/pebrel_app/src/event.rs similarity index 99% rename from nebula_app/src/event.rs rename to pebrel_app/src/event.rs index 961996636..2c26e72d3 100644 --- a/nebula_app/src/event.rs +++ b/pebrel_app/src/event.rs @@ -30,15 +30,15 @@ use winit::window::WindowId; use global_hotkey::hotkey::{Code, HotKey, Modifiers as HotKeyModifiers}; use global_hotkey::{GlobalHotKeyEvent, GlobalHotKeyManager, HotKeyState}; -use nebula_terminal::event::{Event as TerminalEvent, EventListener, Notify}; -use nebula_terminal::event_loop::Notifier; -use nebula_terminal::grid::{BidirectionalIterator, Dimensions, Scroll}; -use nebula_terminal::index::{Boundary, Column, Direction, Line, Point, Side}; -use nebula_terminal::selection::{Selection, SelectionType}; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::term::search::{Match, RegexSearch}; -use nebula_terminal::term::{ClipboardType, Term, TermMode}; -use nebula_terminal::vte::ansi::NamedColor; +use pebrel_terminal::event::{Event as TerminalEvent, EventListener, Notify}; +use pebrel_terminal::event_loop::Notifier; +use pebrel_terminal::grid::{BidirectionalIterator, Dimensions, Scroll}; +use pebrel_terminal::index::{Boundary, Column, Direction, Line, Point, Side}; +use pebrel_terminal::selection::{Selection, SelectionType}; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::term::search::{Match, RegexSearch}; +use pebrel_terminal::term::{ClipboardType, Term, TermMode}; +use pebrel_terminal::vte::ansi::NamedColor; #[cfg(unix)] use crate::cli::ParsedOptions; @@ -2709,8 +2709,8 @@ impl input::Processor> { /// — the newest lines carry the actual error. Shell-side integrations cannot /// see this rendered context, so the terminal grid remains the authoritative source. fn grid_output_tail(&self, max_lines: usize, max_chars: usize) -> String { - use nebula_terminal::index::{Column, Line}; - use nebula_terminal::term::cell::Flags as CellFlags; + use pebrel_terminal::index::{Column, Line}; + use pebrel_terminal::term::cell::Flags as CellFlags; let grid = self.ctx.terminal.grid(); let cursor_line = grid.cursor.point.line.0; diff --git a/nebula_app/src/event/agent_runtime.rs b/pebrel_app/src/event/agent_runtime.rs similarity index 100% rename from nebula_app/src/event/agent_runtime.rs rename to pebrel_app/src/event/agent_runtime.rs diff --git a/nebula_app/src/event/input_state.rs b/pebrel_app/src/event/input_state.rs similarity index 95% rename from nebula_app/src/event/input_state.rs rename to pebrel_app/src/event/input_state.rs index 9b4e6586a..977b5569f 100644 --- a/nebula_app/src/event/input_state.rs +++ b/pebrel_app/src/event/input_state.rs @@ -7,9 +7,9 @@ use std::time::Instant; use ahash::RandomState; use winit::event::{ElementState, MouseButton, Touch as TouchEvent}; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Point, Side}; -use nebula_terminal::term::Term; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Point, Side}; +use pebrel_terminal::term::Term; use crate::display::SizeInfo; use crate::input::FONT_SIZE_STEP; @@ -79,7 +79,7 @@ pub struct Mouse { pub inside_text_area: bool, pub drag_origin: Option<(usize, usize)>, pub drag_active: bool, - pub pending_selection: Option<(nebula_terminal::selection::SelectionType, Point, Side)>, + pub pending_selection: Option<(pebrel_terminal::selection::SelectionType, Point, Side)>, pub debug_press_id: u64, pub debug_selection_updates: u32, pub debug_tab_drag_logged: bool, diff --git a/nebula_app/src/event/link_open.rs b/pebrel_app/src/event/link_open.rs similarity index 100% rename from nebula_app/src/event/link_open.rs rename to pebrel_app/src/event/link_open.rs diff --git a/nebula_app/src/event/proxy.rs b/pebrel_app/src/event/proxy.rs similarity index 96% rename from nebula_app/src/event/proxy.rs rename to pebrel_app/src/event/proxy.rs index 7e917fc31..421294301 100644 --- a/nebula_app/src/event/proxy.rs +++ b/pebrel_app/src/event/proxy.rs @@ -6,7 +6,7 @@ use std::sync::atomic::{AtomicU64, Ordering}; use winit::event_loop::EventLoopProxy; use winit::window::WindowId; -use nebula_terminal::event::{Event as TerminalEvent, EventListener}; +use pebrel_terminal::event::{Event as TerminalEvent, EventListener}; use super::{Event, EventType}; diff --git a/nebula_app/src/event/quick_hotkey.rs b/pebrel_app/src/event/quick_hotkey.rs similarity index 100% rename from nebula_app/src/event/quick_hotkey.rs rename to pebrel_app/src/event/quick_hotkey.rs diff --git a/nebula_app/src/event/runtime_control.rs b/pebrel_app/src/event/runtime_control.rs similarity index 100% rename from nebula_app/src/event/runtime_control.rs rename to pebrel_app/src/event/runtime_control.rs diff --git a/nebula_app/src/event/search_state.rs b/pebrel_app/src/event/search_state.rs similarity index 94% rename from nebula_app/src/event/search_state.rs rename to pebrel_app/src/event/search_state.rs index 99fe3a514..8bfeb28c4 100644 --- a/nebula_app/src/event/search_state.rs +++ b/pebrel_app/src/event/search_state.rs @@ -2,8 +2,8 @@ use std::collections::VecDeque; -use nebula_terminal::index::{Direction, Point}; -use nebula_terminal::term::search::{Match, RegexSearch}; +use pebrel_terminal::index::{Direction, Point}; +use pebrel_terminal::term::search::{Match, RegexSearch}; /// Regex search state. pub struct SearchState { diff --git a/nebula_app/src/event/types.rs b/pebrel_app/src/event/types.rs similarity index 98% rename from nebula_app/src/event/types.rs rename to pebrel_app/src/event/types.rs index 7242b83a0..30ebeca23 100644 --- a/nebula_app/src/event/types.rs +++ b/pebrel_app/src/event/types.rs @@ -8,8 +8,8 @@ use std::os::unix::net::UnixStream; use winit::event::Event as WinitEvent; use winit::window::WindowId; -use nebula_terminal::event::Event as TerminalEvent; -use nebula_terminal::grid::Scroll; +use pebrel_terminal::event::Event as TerminalEvent; +use pebrel_terminal::grid::Scroll; #[cfg(unix)] use crate::cli::IpcConfig; @@ -156,7 +156,7 @@ pub enum TabRequest { NewProfile(crate::config::ui_config::Profile), NewShell { name: String, - shell: nebula_terminal::tty::Shell, + shell: pebrel_terminal::tty::Shell, }, NewSsh(String), /// 在当前布局叶位置重建失败的 SSH pane,不经过关闭 tab 的路径。 diff --git a/nebula_app/src/file_uri.rs b/pebrel_app/src/file_uri.rs similarity index 99% rename from nebula_app/src/file_uri.rs rename to pebrel_app/src/file_uri.rs index 17822f0ed..ed73a5e47 100644 --- a/nebula_app/src/file_uri.rs +++ b/pebrel_app/src/file_uri.rs @@ -906,8 +906,8 @@ mod tests { #[test] fn terminal_line_count_annotations_open_the_unannotated_file() { - use nebula_terminal::index::{Column, Line, Point}; - use nebula_terminal::term::test::mock_term; + use pebrel_terminal::index::{Column, Line, Point}; + use pebrel_terminal::term::test::mock_term; use winit::keyboard::ModifiersState; let directory = tempfile::tempdir().unwrap(); diff --git a/nebula_app/src/font_install.rs b/pebrel_app/src/font_install.rs similarity index 100% rename from nebula_app/src/font_install.rs rename to pebrel_app/src/font_install.rs diff --git a/nebula_app/src/git_completion.rs b/pebrel_app/src/git_completion.rs similarity index 99% rename from nebula_app/src/git_completion.rs rename to pebrel_app/src/git_completion.rs index ec94c2c8d..2efa07ec6 100644 --- a/nebula_app/src/git_completion.rs +++ b/pebrel_app/src/git_completion.rs @@ -379,7 +379,7 @@ pub(crate) mod tests { fn real_explicit_tracking_creates_and_inherits_the_expected_upstream() { let repository = repository(); let cwd = repository.path().to_str().unwrap(); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }); @@ -471,7 +471,7 @@ pub(crate) mod tests { fn real_remote_guesses_follow_configuration_and_refspecs() { let repository = repository(); let cwd = repository.path().to_str().unwrap(); - let execution = PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { + let execution = PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }); @@ -599,7 +599,7 @@ pub(crate) mod tests { fn real_branches_cache_invalidation_and_directory_context() { let repository = repository(); let cwd = repository.path().to_str().unwrap(); - let options = nebula_terminal::tty::Options { + let options = pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }; diff --git a/nebula_app/src/git_completion/tracking.rs b/pebrel_app/src/git_completion/tracking.rs similarity index 100% rename from nebula_app/src/git_completion/tracking.rs rename to pebrel_app/src/git_completion/tracking.rs diff --git a/nebula_app/src/git_worktree.rs b/pebrel_app/src/git_worktree.rs similarity index 100% rename from nebula_app/src/git_worktree.rs rename to pebrel_app/src/git_worktree.rs diff --git a/nebula_app/src/git_worktree/status.rs b/pebrel_app/src/git_worktree/status.rs similarity index 100% rename from nebula_app/src/git_worktree/status.rs rename to pebrel_app/src/git_worktree/status.rs diff --git a/nebula_app/src/gpui_shell/assets.rs b/pebrel_app/src/gpui_shell/assets.rs similarity index 100% rename from nebula_app/src/gpui_shell/assets.rs rename to pebrel_app/src/gpui_shell/assets.rs diff --git a/nebula_app/src/gpui_shell/background_color.rs b/pebrel_app/src/gpui_shell/background_color.rs similarity index 99% rename from nebula_app/src/gpui_shell/background_color.rs rename to pebrel_app/src/gpui_shell/background_color.rs index 4cb9d6721..0a60eb973 100644 --- a/nebula_app/src/gpui_shell/background_color.rs +++ b/pebrel_app/src/gpui_shell/background_color.rs @@ -16,7 +16,7 @@ use crate::display::ui::tokens::radius; use crate::display::{BACKGROUND_SWATCHES, BgPickerPart, hsv_to_rgb, rgb_to_hsv}; use crate::gpui_shell::prelude::*; use gpui_component::input::InputEvent; -use nebula_settings::{format_hex_rgb, parse_hex_rgb}; +use pebrel_settings::{format_hex_rgb, parse_hex_rgb}; use super::{SettingsPane, help}; diff --git a/nebula_app/src/gpui_shell/code_tab.rs b/pebrel_app/src/gpui_shell/code_tab.rs similarity index 100% rename from nebula_app/src/gpui_shell/code_tab.rs rename to pebrel_app/src/gpui_shell/code_tab.rs diff --git a/nebula_app/src/gpui_shell/code_tab/merge_error.rs b/pebrel_app/src/gpui_shell/code_tab/merge_error.rs similarity index 100% rename from nebula_app/src/gpui_shell/code_tab/merge_error.rs rename to pebrel_app/src/gpui_shell/code_tab/merge_error.rs diff --git a/nebula_app/src/gpui_shell/code_tab/native_localization_tests.rs b/pebrel_app/src/gpui_shell/code_tab/native_localization_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/code_tab/native_localization_tests.rs rename to pebrel_app/src/gpui_shell/code_tab/native_localization_tests.rs index fccd80c64..467302616 100644 --- a/nebula_app/src/gpui_shell/code_tab/native_localization_tests.rs +++ b/pebrel_app/src/gpui_shell/code_tab/native_localization_tests.rs @@ -19,7 +19,7 @@ fn native_merge_localization() { move |cx| { gpui_component::init(cx); cx.set_global(crate::gpui_shell::config::Settings::load( - nebula_settings::ThemeName::Nord, + pebrel_settings::ThemeName::Nord, )); crate::gpui_shell::theme::apply_chrome_theme(cx); crate::gpui_shell::math_view::register(cx); diff --git a/nebula_app/src/gpui_shell/completion_history.rs b/pebrel_app/src/gpui_shell/completion_history.rs similarity index 100% rename from nebula_app/src/gpui_shell/completion_history.rs rename to pebrel_app/src/gpui_shell/completion_history.rs diff --git a/nebula_app/src/gpui_shell/config.rs b/pebrel_app/src/gpui_shell/config.rs similarity index 96% rename from nebula_app/src/gpui_shell/config.rs rename to pebrel_app/src/gpui_shell/config.rs index a08563906..da41a8821 100644 --- a/nebula_app/src/gpui_shell/config.rs +++ b/pebrel_app/src/gpui_shell/config.rs @@ -7,8 +7,8 @@ use std::path::{Path, PathBuf}; use std::sync::Arc; use gpui::{App, Global}; -use nebula_settings::{BlurModeName, CursorShapeName, RuntimeSettings}; -use nebula_terminal::vte::ansi::CursorShape; +use pebrel_settings::{BlurModeName, CursorShapeName, RuntimeSettings}; +use pebrel_terminal::vte::ansi::CursorShape; use serde::Deserialize; use crate::display::{LanguagePreference, UiLanguage}; @@ -64,29 +64,29 @@ pub struct Settings { pub(crate) resolved_theme: Arc, pub cursor_shape: Option, pub cursor_blink: Option, - pub cursor_motion: nebula_settings::CursorMotion, + pub cursor_motion: pebrel_settings::CursorMotion, /// 选区完成即复制(旧壳 `copy_on_select` 设置)。 pub copy_on_select: bool, pub scrollback_lines: usize, pub scroll_speed: f32, - pub scrollbar_visibility: nebula_settings::ScrollbarVisibility, + pub scrollbar_visibility: pebrel_settings::ScrollbarVisibility, /// Pointer handlers and split rendering only read these cached preferences. pub focus_follows_mouse: bool, pub dim_inactive_panes: bool, /// Cached in-app toast preference, independent of native system notifications. pub ai_toasts: bool, /// Cached display lifetime; toast delivery and native notifications are independent. - pub notification_duration: nebula_settings::NotificationDuration, + pub notification_duration: pebrel_settings::NotificationDuration, /// 标签关闭按钮与标签插入动画都在渲染热路径读取,必须随全局设置驻留内存。 pub tab_close_visible: bool, - pub tab_reveal: nebula_settings::TabRevealName, + pub tab_reveal: pebrel_settings::TabRevealName, /// 命令补全设置(settings.txt 的 `ghost`/`completion_style`), /// 类型直接用旧壳 display 的语义枚举:接受键判定与样式分支两壳同源。 pub ghost: bool, pub prompt_suggestions_enabled: bool, pub completion_style: crate::display::CompletionStyle, /// 单元格宽度取整方式;同一窗口宽度下必须与旧壳得到相同列数。 - pub cell_width_mode: nebula_settings::CellWidthModeName, + pub cell_width_mode: pebrel_settings::CellWidthModeName, /// 全宽字形(CJK 等)的 bold run 用 Regular 字形栅格(粗体只提亮不加粗, /// 旧壳 `glyph_cache.wide_bold_use_regular` 同义)。 pub cjk_bold_regular: bool, @@ -117,7 +117,7 @@ pub(crate) fn panel_resize(cx: &App) -> bool { /// 只查询内存快照,避免动画渲染读盘;初始化前保持默认滑动行为。 pub(crate) fn tab_reveal_instant(cx: &App) -> bool { cx.try_global::() - .is_some_and(|settings| settings.tab_reveal == nebula_settings::TabRevealName::Instant) + .is_some_and(|settings| settings.tab_reveal == pebrel_settings::TabRevealName::Instant) } pub(crate) fn ctrl_wheel_font_zoom(cx: &App) -> bool { @@ -129,7 +129,7 @@ pub(crate) fn ai_toasts_enabled(cx: &App) -> bool { } #[inline] -fn resolve_ui_language(preference: nebula_settings::LanguagePref) -> UiLanguage { +fn resolve_ui_language(preference: pebrel_settings::LanguagePref) -> UiLanguage { LanguagePreference::from(preference).resolved() } @@ -178,14 +178,14 @@ impl Settings { /// `theme`:**生效**主题(follow_system 折算后,见 /// `theme::effective_theme_name`)。不在这里自行读 RuntimeSettings 的 /// 原始主题,否则 chrome 层与终端 palette 会在跟随系统时分家。 - pub fn load(theme: nebula_settings::ThemeName) -> Self { + pub fn load(theme: pebrel_settings::ThemeName) -> Self { Self::load_with_runtime(theme, RuntimeSettings::load()) } /// Load from the exact runtime snapshot that was just persisted. Settings /// panes use this entry point to avoid resolving the old theme between the /// write and the global cache update. - pub fn load_with_runtime(theme: nebula_settings::ThemeName, runtime: RuntimeSettings) -> Self { + pub fn load_with_runtime(theme: pebrel_settings::ThemeName, runtime: RuntimeSettings) -> Self { let resolved_theme = Arc::new(crate::gpui_shell::theme::ResolvedTheme::from_runtime(&runtime, theme)); let ui_language = resolve_ui_language(runtime.language); @@ -327,8 +327,8 @@ impl Settings { } /// 引擎 Term 的启动配置(默认光标形状/闪烁来自运行时设置)。 - pub fn term_config(&self) -> nebula_terminal::term::Config { - let mut config = nebula_terminal::term::Config::default(); + pub fn term_config(&self) -> pebrel_terminal::term::Config { + let mut config = pebrel_terminal::term::Config::default(); config.scrolling_history = self.scrollback_lines; if let Some(shape) = self.cursor_shape { config.default_cursor_style.shape = shape; @@ -343,7 +343,7 @@ impl Settings { // 同一行语义,否则光标漂移。 #[cfg(windows)] { - config.suppress_bringup_da1 = nebula_terminal::tty::windows::conpty_sideload_enabled(); + config.suppress_bringup_da1 = pebrel_terminal::tty::windows::conpty_sideload_enabled(); config.conpty_resize = true; } config.kitty_keyboard = true; @@ -362,15 +362,15 @@ fn default_font_offset() -> RawDelta { fn runtime_background( follow_system_theme: bool, - background: Option, -) -> Option { + background: Option, +) -> Option { (!follow_system_theme).then_some(background).flatten() } /// 主题叠加在 toml 配色之上(镜像旧壳 `apply_term_colors` 的范围与次序): /// 背景永远替换;保留应用使用的扩展色槽。原有主题保持旧合同:仅浅色 /// 主题替换前景与 ANSI-16;自带完整 palette 的主题(Nord/Paper)应用其明确色表。 -fn apply_theme(palette: &mut Palette, theme: nebula_settings::ThemeName) { +fn apply_theme(palette: &mut Palette, theme: pebrel_settings::ThemeName) { let resolved = crate::gpui_shell::theme::ResolvedTheme::builtin(theme, None); apply_resolved_theme(palette, &resolved); } @@ -431,11 +431,11 @@ fn apply_resolved_theme(palette: &mut Palette, resolved: &crate::gpui_shell::the } if term.is_light { let foreground = - rgba8(resolved.foreground_override().unwrap_or(nebula_settings::LIGHT_FOREGROUND)); + rgba8(resolved.foreground_override().unwrap_or(pebrel_settings::LIGHT_FOREGROUND)); palette.foreground = foreground; palette.bright_foreground = foreground; palette.dim_foreground = Palette::dim_of(foreground); - for (i, color) in nebula_settings::LIGHT_ANSI.into_iter().enumerate() { + for (i, color) in pebrel_settings::LIGHT_ANSI.into_iter().enumerate() { palette.ansi[i] = rgba8(color); if i < 8 { palette.dim[i] = Palette::dim_of(palette.ansi[i]); @@ -444,7 +444,7 @@ fn apply_resolved_theme(palette: &mut Palette, resolved: &crate::gpui_shell::the } } -fn rgba8(color: nebula_settings::Rgb8) -> gpui::Rgba { +fn rgba8(color: pebrel_settings::Rgb8) -> gpui::Rgba { gpui::Rgba { r: color[0] as f32 / 255.0, g: color[1] as f32 / 255.0, @@ -523,12 +523,12 @@ pub(crate) fn startup_grid(cx: &App) -> (f32, f32) { return builtin(); }; ( - dimensions.columns.max(nebula_terminal::term::MIN_COLUMNS) as f32, - dimensions.lines.max(nebula_terminal::term::MIN_SCREEN_LINES) as f32, + dimensions.columns.max(pebrel_terminal::term::MIN_COLUMNS) as f32, + dimensions.lines.max(pebrel_terminal::term::MIN_SCREEN_LINES) as f32, ) } -/// 查找配置文件;顺序与 `nebula_app::config::installed_config` 一致。 +/// 查找配置文件;顺序与 `pebrel_app::config::installed_config` 一致。 /// `NEBULA_GPUI_CONFIG` 用于隔离测试:绝不能往用户真实配置目录写测试文件, /// 正式版 Nebula 正在监视它做热重载。 fn find_config_file() -> Option { @@ -650,7 +650,7 @@ fn merge_values(base: toml::Value, other: toml::Value) -> toml::Value { } // --------------------------------------------------------------------------- -// TOML 字段子集(与 nebula_app/src/config 的 TOML 形状兼容) +// TOML 字段子集(与 pebrel_app/src/config 的 TOML 形状兼容) // --------------------------------------------------------------------------- #[derive(Deserialize, Default)] @@ -849,7 +849,7 @@ mod tests { use crate::config::window::Dimensions; use crate::display::UiLanguage; use crate::gpui_shell::terminal::colors::Palette; - use nebula_settings::{ + use pebrel_settings::{ BlurModeName, LanguagePref, RawSettings, RuntimeSettings, ThemeDefinition, ThemeName, }; @@ -1006,8 +1006,8 @@ mod tests { #[test] fn builtin_themes_preserve_application_extended_colors() { - use nebula_terminal::term::color::Colors; - use nebula_terminal::vte::ansi::{Color, Rgb}; + use pebrel_terminal::term::color::Colors; + use pebrel_terminal::vte::ansi::{Color, Rgb}; for theme in ThemeName::BUILTIN { let mut palette = Palette::default(); @@ -1041,8 +1041,8 @@ mod tests { #[test] fn theme_switches_preserve_user_extended_colors_and_osc_overrides() { - use nebula_terminal::term::color::Colors; - use nebula_terminal::vte::ansi::{Color, Rgb}; + use pebrel_terminal::term::color::Colors; + use pebrel_terminal::vte::ansi::{Color, Rgb}; let configured = [12, 34, 56]; let osc = Rgb { r: 78, g: 90, b: 123 }; diff --git a/nebula_app/src/gpui_shell/config/source.rs b/pebrel_app/src/gpui_shell/config/source.rs similarity index 96% rename from nebula_app/src/gpui_shell/config/source.rs rename to pebrel_app/src/gpui_shell/config/source.rs index bf4e7df88..9b1ff28cb 100644 --- a/nebula_app/src/gpui_shell/config/source.rs +++ b/pebrel_app/src/gpui_shell/config/source.rs @@ -20,7 +20,7 @@ pub(crate) fn initialize(config_file: Option) -> StartupWindow { match read(config_file) { Ok(Some((config, raw, defaults))) => { window = StartupWindow::from_config(&config); - if nebula_settings::install_config_defaults(defaults).is_err() { + if pebrel_settings::install_config_defaults(defaults).is_err() { log::warn!("Desktop configuration was already initialized"); } snapshot.raw = raw; @@ -46,7 +46,7 @@ pub(super) fn raw(notice: &mut Option) -> Option { fn read( config_file: Option, -) -> Result, String> { +) -> Result, String> { let override_path = config_file.or_else(|| { ["PEBREL_GPUI_CONFIG", "NEBULA_GPUI_CONFIG"].into_iter().find_map(|name| { std::env::var_os(name).filter(|value| !value.is_empty()).map(PathBuf::from) diff --git a/nebula_app/src/gpui_shell/copy_feedback.rs b/pebrel_app/src/gpui_shell/copy_feedback.rs similarity index 100% rename from nebula_app/src/gpui_shell/copy_feedback.rs rename to pebrel_app/src/gpui_shell/copy_feedback.rs diff --git a/nebula_app/src/gpui_shell/doc_tabs.rs b/pebrel_app/src/gpui_shell/doc_tabs.rs similarity index 100% rename from nebula_app/src/gpui_shell/doc_tabs.rs rename to pebrel_app/src/gpui_shell/doc_tabs.rs diff --git a/nebula_app/src/gpui_shell/doc_tabs/image_geometry_tests.rs b/pebrel_app/src/gpui_shell/doc_tabs/image_geometry_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/doc_tabs/image_geometry_tests.rs rename to pebrel_app/src/gpui_shell/doc_tabs/image_geometry_tests.rs diff --git a/nebula_app/src/gpui_shell/doc_tabs/image_source.rs b/pebrel_app/src/gpui_shell/doc_tabs/image_source.rs similarity index 100% rename from nebula_app/src/gpui_shell/doc_tabs/image_source.rs rename to pebrel_app/src/gpui_shell/doc_tabs/image_source.rs diff --git a/nebula_app/src/gpui_shell/file_drop.rs b/pebrel_app/src/gpui_shell/file_drop.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_drop.rs rename to pebrel_app/src/gpui_shell/file_drop.rs diff --git a/nebula_app/src/gpui_shell/file_editor/activity.rs b/pebrel_app/src/gpui_shell/file_editor/activity.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/activity.rs rename to pebrel_app/src/gpui_shell/file_editor/activity.rs diff --git a/nebula_app/src/gpui_shell/file_editor/block_inline.rs b/pebrel_app/src/gpui_shell/file_editor/block_inline.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/block_inline.rs rename to pebrel_app/src/gpui_shell/file_editor/block_inline.rs diff --git a/nebula_app/src/gpui_shell/file_editor/block_structure.rs b/pebrel_app/src/gpui_shell/file_editor/block_structure.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/block_structure.rs rename to pebrel_app/src/gpui_shell/file_editor/block_structure.rs diff --git a/nebula_app/src/gpui_shell/file_editor/chrome.rs b/pebrel_app/src/gpui_shell/file_editor/chrome.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/chrome.rs rename to pebrel_app/src/gpui_shell/file_editor/chrome.rs diff --git a/nebula_app/src/gpui_shell/file_editor/code_actions.rs b/pebrel_app/src/gpui_shell/file_editor/code_actions.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/code_actions.rs rename to pebrel_app/src/gpui_shell/file_editor/code_actions.rs diff --git a/nebula_app/src/gpui_shell/file_editor/code_actions_tests.rs b/pebrel_app/src/gpui_shell/file_editor/code_actions_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/code_actions_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/code_actions_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/details.rs b/pebrel_app/src/gpui_shell/file_editor/details.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/details.rs rename to pebrel_app/src/gpui_shell/file_editor/details.rs diff --git a/nebula_app/src/gpui_shell/file_editor/document.rs b/pebrel_app/src/gpui_shell/file_editor/document.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/document.rs rename to pebrel_app/src/gpui_shell/file_editor/document.rs diff --git a/nebula_app/src/gpui_shell/file_editor/document/writer_tests.rs b/pebrel_app/src/gpui_shell/file_editor/document/writer_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/document/writer_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/document/writer_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/document/writers.rs b/pebrel_app/src/gpui_shell/file_editor/document/writers.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/document/writers.rs rename to pebrel_app/src/gpui_shell/file_editor/document/writers.rs diff --git a/nebula_app/src/gpui_shell/file_editor/edit_history.rs b/pebrel_app/src/gpui_shell/file_editor/edit_history.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/edit_history.rs rename to pebrel_app/src/gpui_shell/file_editor/edit_history.rs diff --git a/nebula_app/src/gpui_shell/file_editor/focus_tests.rs b/pebrel_app/src/gpui_shell/file_editor/focus_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/focus_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/focus_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/image_cache.rs b/pebrel_app/src/gpui_shell/file_editor/image_cache.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/image_cache.rs rename to pebrel_app/src/gpui_shell/file_editor/image_cache.rs diff --git a/nebula_app/src/gpui_shell/file_editor/images.rs b/pebrel_app/src/gpui_shell/file_editor/images.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/images.rs rename to pebrel_app/src/gpui_shell/file_editor/images.rs diff --git a/nebula_app/src/gpui_shell/file_editor/info.rs b/pebrel_app/src/gpui_shell/file_editor/info.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/info.rs rename to pebrel_app/src/gpui_shell/file_editor/info.rs diff --git a/nebula_app/src/gpui_shell/file_editor/inline_edit.rs b/pebrel_app/src/gpui_shell/file_editor/inline_edit.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/inline_edit.rs rename to pebrel_app/src/gpui_shell/file_editor/inline_edit.rs diff --git a/nebula_app/src/gpui_shell/file_editor/inline_live_tests.rs b/pebrel_app/src/gpui_shell/file_editor/inline_live_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/inline_live_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/inline_live_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/inline_object_tests.rs b/pebrel_app/src/gpui_shell/file_editor/inline_object_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/inline_object_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/inline_object_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/inline_selection.rs b/pebrel_app/src/gpui_shell/file_editor/inline_selection.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/inline_selection.rs rename to pebrel_app/src/gpui_shell/file_editor/inline_selection.rs diff --git a/nebula_app/src/gpui_shell/file_editor/inline_selection_tests.rs b/pebrel_app/src/gpui_shell/file_editor/inline_selection_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/inline_selection_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/inline_selection_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/input_rules.rs b/pebrel_app/src/gpui_shell/file_editor/input_rules.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/input_rules.rs rename to pebrel_app/src/gpui_shell/file_editor/input_rules.rs diff --git a/nebula_app/src/gpui_shell/file_editor/link_actions.rs b/pebrel_app/src/gpui_shell/file_editor/link_actions.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/link_actions.rs rename to pebrel_app/src/gpui_shell/file_editor/link_actions.rs diff --git a/nebula_app/src/gpui_shell/file_editor/live_commands.rs b/pebrel_app/src/gpui_shell/file_editor/live_commands.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/live_commands.rs rename to pebrel_app/src/gpui_shell/file_editor/live_commands.rs diff --git a/nebula_app/src/gpui_shell/file_editor/live_edit.rs b/pebrel_app/src/gpui_shell/file_editor/live_edit.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/live_edit.rs rename to pebrel_app/src/gpui_shell/file_editor/live_edit.rs diff --git a/nebula_app/src/gpui_shell/file_editor/live_navigation.rs b/pebrel_app/src/gpui_shell/file_editor/live_navigation.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/live_navigation.rs rename to pebrel_app/src/gpui_shell/file_editor/live_navigation.rs diff --git a/nebula_app/src/gpui_shell/file_editor/live_selection.rs b/pebrel_app/src/gpui_shell/file_editor/live_selection.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/live_selection.rs rename to pebrel_app/src/gpui_shell/file_editor/live_selection.rs diff --git a/nebula_app/src/gpui_shell/file_editor/live_tests.rs b/pebrel_app/src/gpui_shell/file_editor/live_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/live_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/live_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/loading.rs b/pebrel_app/src/gpui_shell/file_editor/loading.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/loading.rs rename to pebrel_app/src/gpui_shell/file_editor/loading.rs diff --git a/nebula_app/src/gpui_shell/file_editor/mod.rs b/pebrel_app/src/gpui_shell/file_editor/mod.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/mod.rs rename to pebrel_app/src/gpui_shell/file_editor/mod.rs diff --git a/nebula_app/src/gpui_shell/file_editor/object_edit.rs b/pebrel_app/src/gpui_shell/file_editor/object_edit.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/object_edit.rs rename to pebrel_app/src/gpui_shell/file_editor/object_edit.rs diff --git a/nebula_app/src/gpui_shell/file_editor/object_source.rs b/pebrel_app/src/gpui_shell/file_editor/object_source.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/object_source.rs rename to pebrel_app/src/gpui_shell/file_editor/object_source.rs diff --git a/nebula_app/src/gpui_shell/file_editor/object_view.rs b/pebrel_app/src/gpui_shell/file_editor/object_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/object_view.rs rename to pebrel_app/src/gpui_shell/file_editor/object_view.rs diff --git a/nebula_app/src/gpui_shell/file_editor/outline.rs b/pebrel_app/src/gpui_shell/file_editor/outline.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/outline.rs rename to pebrel_app/src/gpui_shell/file_editor/outline.rs diff --git a/nebula_app/src/gpui_shell/file_editor/outline_view.rs b/pebrel_app/src/gpui_shell/file_editor/outline_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/outline_view.rs rename to pebrel_app/src/gpui_shell/file_editor/outline_view.rs diff --git a/nebula_app/src/gpui_shell/file_editor/preview.rs b/pebrel_app/src/gpui_shell/file_editor/preview.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/preview.rs rename to pebrel_app/src/gpui_shell/file_editor/preview.rs diff --git a/nebula_app/src/gpui_shell/file_editor/reader_presentation.rs b/pebrel_app/src/gpui_shell/file_editor/reader_presentation.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/reader_presentation.rs rename to pebrel_app/src/gpui_shell/file_editor/reader_presentation.rs diff --git a/nebula_app/src/gpui_shell/file_editor/source.rs b/pebrel_app/src/gpui_shell/file_editor/source.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/source.rs rename to pebrel_app/src/gpui_shell/file_editor/source.rs diff --git a/nebula_app/src/gpui_shell/file_editor/structure_commands.rs b/pebrel_app/src/gpui_shell/file_editor/structure_commands.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/structure_commands.rs rename to pebrel_app/src/gpui_shell/file_editor/structure_commands.rs diff --git a/nebula_app/src/gpui_shell/file_editor/structure_inline_view.rs b/pebrel_app/src/gpui_shell/file_editor/structure_inline_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/structure_inline_view.rs rename to pebrel_app/src/gpui_shell/file_editor/structure_inline_view.rs diff --git a/nebula_app/src/gpui_shell/file_editor/structure_tests.rs b/pebrel_app/src/gpui_shell/file_editor/structure_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/structure_tests.rs rename to pebrel_app/src/gpui_shell/file_editor/structure_tests.rs diff --git a/nebula_app/src/gpui_shell/file_editor/structure_view.rs b/pebrel_app/src/gpui_shell/file_editor/structure_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/structure_view.rs rename to pebrel_app/src/gpui_shell/file_editor/structure_view.rs diff --git a/nebula_app/src/gpui_shell/file_editor/tests.rs b/pebrel_app/src/gpui_shell/file_editor/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_editor/tests.rs rename to pebrel_app/src/gpui_shell/file_editor/tests.rs diff --git a/nebula_app/src/gpui_shell/file_preview.rs b/pebrel_app/src/gpui_shell/file_preview.rs similarity index 100% rename from nebula_app/src/gpui_shell/file_preview.rs rename to pebrel_app/src/gpui_shell/file_preview.rs diff --git a/nebula_app/src/gpui_shell/font_loading.rs b/pebrel_app/src/gpui_shell/font_loading.rs similarity index 98% rename from nebula_app/src/gpui_shell/font_loading.rs rename to pebrel_app/src/gpui_shell/font_loading.rs index a12534b06..c9066a658 100644 --- a/nebula_app/src/gpui_shell/font_loading.rs +++ b/pebrel_app/src/gpui_shell/font_loading.rs @@ -76,7 +76,7 @@ mod tests { ) { cx.update(|cx| { let mut settings = - super::super::config::Settings::load(nebula_settings::ThemeName::Nord); + super::super::config::Settings::load(pebrel_settings::ThemeName::Nord); settings.font_family = "Consolas".into(); settings.font_bold_family = "Consolas".into(); settings.font_italic_family = "Consolas".into(); diff --git a/nebula_app/src/gpui_shell/http.rs b/pebrel_app/src/gpui_shell/http.rs similarity index 100% rename from nebula_app/src/gpui_shell/http.rs rename to pebrel_app/src/gpui_shell/http.rs diff --git a/nebula_app/src/gpui_shell/math_view.rs b/pebrel_app/src/gpui_shell/math_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/math_view.rs rename to pebrel_app/src/gpui_shell/math_view.rs diff --git a/nebula_app/src/gpui_shell/math_view/source_fallback.rs b/pebrel_app/src/gpui_shell/math_view/source_fallback.rs similarity index 100% rename from nebula_app/src/gpui_shell/math_view/source_fallback.rs rename to pebrel_app/src/gpui_shell/math_view/source_fallback.rs diff --git a/nebula_app/src/gpui_shell/mod.rs b/pebrel_app/src/gpui_shell/mod.rs similarity index 97% rename from nebula_app/src/gpui_shell/mod.rs rename to pebrel_app/src/gpui_shell/mod.rs index 6db28e5b3..85c5e4198 100644 --- a/nebula_app/src/gpui_shell/mod.rs +++ b/pebrel_app/src/gpui_shell/mod.rs @@ -1,7 +1,7 @@ //! GPUI UI 层(产品代码,feature = "gpui-shell")。 //! //! 这里是 nebula.exe 体内的新 UI:终端视图/渲染元素/工作区与配置桥全部 -//! 住在本模块,`nebula_gpui` crate 只是组件验收的实验场,不承载产品代码 +//! 住在本模块,`pebrel_gpui` crate 只是组件验收的实验场,不承载产品代码 //! (ROADMAP 终局形态第 1 条)。 //! //! `nebula --gpui` 从主线程直接进入 GPUI 消息循环;旧壳不会同时启动。 @@ -111,7 +111,7 @@ pub fn run_shell( let (shell_tx, shell_rx) = std::sync::mpsc::channel(); let _elevated_handover = if crate::platform::elevation::is_elevated().is_ok_and(|value| value) { use crate::platform::elevation::handover::{Request, Startup, start_or_forward}; - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); let request = Request { cwd: crate::platform::startup::resident_launch_directory( initial_cwd.clone(), @@ -201,7 +201,7 @@ pub fn run_shell( { // 与另一份进程同时启动时,对方可能已经拿到 owner lock、但尚未来得及 // 发布 endpoint。短暂等待并交接,避免继续打开一个无控制面的空窗口。 - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); let handover_cwd = crate::platform::startup::resident_launch_directory( initial_cwd.clone(), &settings, @@ -210,9 +210,9 @@ pub fn run_shell( ), ); for _ in 0..40 { - let behavior = nebula_settings::RuntimeSettings::load().windowing_behavior; + let behavior = pebrel_settings::RuntimeSettings::load().windowing_behavior; let handed_over = match behavior { - nebula_settings::WindowingBehaviorName::UseNew => { + pebrel_settings::WindowingBehaviorName::UseNew => { crate::runtime_api::try_open_window_existing( handover_cwd.as_deref(), shell_id.as_deref(), @@ -256,7 +256,7 @@ pub fn run_shell( || shell_id.is_some() || crate::platform::elevation::requires_isolation() || !crate::platform::startup::start_hidden( - &nebula_settings::RuntimeSettings::load(), + &pebrel_settings::RuntimeSettings::load(), launched_at_login, ) { @@ -296,7 +296,7 @@ fn init(cx: &mut App, startup_window: config::StartupWindow) { // Read one runtime snapshot before installing any renderer. The resolved // custom theme, terminal palette and chrome therefore start from the same // immutable value and cannot diverge during bootstrap. - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let theme = theme::resolve_theme_name( runtime.theme, runtime.follow_system_theme, @@ -370,7 +370,7 @@ fn open_main_window( /// 按 `tray` 设置挂上或摘掉系统托盘图标(旧壳 `tray::set_enabled`)。 /// 启动、设置热应用、系统外观变化都经 [`theme::apply_chrome_theme`] 落到这里。 pub(crate) fn apply_tray_setting() { - crate::tray::set_enabled(nebula_settings::RuntimeSettings::load().tray); + crate::tray::set_enabled(pebrel_settings::RuntimeSettings::load().tray); } /// 关窗保留会话:藏起 HWND,PTY 与工作区继续活着。 @@ -455,7 +455,7 @@ pub(crate) fn set_native_window_icon(window: &gpui::Window) { crate::app_icon::windows::set_window(hwnd, crate::app_icon::selected()); } -pub(crate) fn apply_app_icon(variant: nebula_settings::AppIconName, cx: &mut App) { +pub(crate) fn apply_app_icon(variant: pebrel_settings::AppIconName, cx: &mut App) { if !crate::app_icon::set_selected(variant) { return; } diff --git a/nebula_app/src/gpui_shell/molecule_view.rs b/pebrel_app/src/gpui_shell/molecule_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/molecule_view.rs rename to pebrel_app/src/gpui_shell/molecule_view.rs diff --git a/nebula_app/src/gpui_shell/motion.rs b/pebrel_app/src/gpui_shell/motion.rs similarity index 100% rename from nebula_app/src/gpui_shell/motion.rs rename to pebrel_app/src/gpui_shell/motion.rs diff --git a/nebula_app/src/gpui_shell/network_settings.rs b/pebrel_app/src/gpui_shell/network_settings.rs similarity index 99% rename from nebula_app/src/gpui_shell/network_settings.rs rename to pebrel_app/src/gpui_shell/network_settings.rs index 984169738..66a0df953 100644 --- a/nebula_app/src/gpui_shell/network_settings.rs +++ b/pebrel_app/src/gpui_shell/network_settings.rs @@ -8,7 +8,7 @@ use gpui::prelude::FluentBuilder as _; use gpui::{Context, IntoElement, ParentElement as _, SharedString, Styled as _, div, px}; use gpui_component::input::InputEvent; -use nebula_settings::ProxyModeName; +use pebrel_settings::ProxyModeName; use crate::display::{ MANUAL_PROXY_PROTOCOL_OPTIONS, ManualProxyProtocol, ProxyTestStatus, compose_manual_proxy_url, @@ -285,7 +285,7 @@ mod tests { use super::{apply_proxy_test_result, shows_manual_proxy_address}; use crate::display::ProxyTestStatus; use crate::proxy_test::{ProxyTestFailure, ProxyTestOutcome, ProxyTestRoute}; - use nebula_settings::ProxyModeName; + use pebrel_settings::ProxyModeName; #[test] fn custom_mode_is_the_only_one_that_expands_the_address_row() { diff --git a/nebula_app/src/gpui_shell/prelude.rs b/pebrel_app/src/gpui_shell/prelude.rs similarity index 100% rename from nebula_app/src/gpui_shell/prelude.rs rename to pebrel_app/src/gpui_shell/prelude.rs diff --git a/nebula_app/src/gpui_shell/scientific_render.rs b/pebrel_app/src/gpui_shell/scientific_render.rs similarity index 100% rename from nebula_app/src/gpui_shell/scientific_render.rs rename to pebrel_app/src/gpui_shell/scientific_render.rs diff --git a/nebula_app/src/gpui_shell/scientific_render/corpus_tests.rs b/pebrel_app/src/gpui_shell/scientific_render/corpus_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/scientific_render/corpus_tests.rs rename to pebrel_app/src/gpui_shell/scientific_render/corpus_tests.rs diff --git a/nebula_app/src/gpui_shell/session_restore.rs b/pebrel_app/src/gpui_shell/session_restore.rs similarity index 97% rename from nebula_app/src/gpui_shell/session_restore.rs rename to pebrel_app/src/gpui_shell/session_restore.rs index 2bdaa3840..9a425f09b 100644 --- a/nebula_app/src/gpui_shell/session_restore.rs +++ b/pebrel_app/src/gpui_shell/session_restore.rs @@ -1,10 +1,10 @@ //! GPUI 壳的会话恢复桥:共享 schema = `crate::session`(v4,与旧壳同一份 //! `session.json`、同一套版本升级/崩溃断路器语义),这里只做 -//! `nebula_split::SplitTree`(运行时布局)与 `LayoutSession`(持久化树) +//! `pebrel_split::SplitTree`(运行时布局)与 `LayoutSession`(持久化树) //! 之间的纯转换。文档/图片/设置 tab 不进会话(旧壳同合同)。 use crate::session::{AgentSession, LaunchSession, LayoutSession, SplitAxis}; -use nebula_split::{SplitDirection, SplitTree}; +use pebrel_split::{SplitDirection, SplitTree}; fn axis_of(direction: SplitDirection) -> SplitAxis { match direction { diff --git a/nebula_app/src/gpui_shell/settings_fixture.rs b/pebrel_app/src/gpui_shell/settings_fixture.rs similarity index 97% rename from nebula_app/src/gpui_shell/settings_fixture.rs rename to pebrel_app/src/gpui_shell/settings_fixture.rs index 65bd0af00..9a0ffc5ed 100644 --- a/nebula_app/src/gpui_shell/settings_fixture.rs +++ b/pebrel_app/src/gpui_shell/settings_fixture.rs @@ -26,7 +26,7 @@ pub(crate) struct SettingsBytesGuard { impl SettingsBytesGuard { pub(crate) fn capture() -> Self { - let path = nebula_settings::settings_path(); + let path = pebrel_settings::settings_path(); Self { bytes: std::fs::read(&path).ok(), path } } } diff --git a/nebula_app/src/gpui_shell/settings_pane.rs b/pebrel_app/src/gpui_shell/settings_pane.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane.rs rename to pebrel_app/src/gpui_shell/settings_pane.rs index 788128f99..a450da2fe 100644 --- a/nebula_app/src/gpui_shell/settings_pane.rs +++ b/pebrel_app/src/gpui_shell/settings_pane.rs @@ -5,7 +5,7 @@ //! 高级/备份),并以应用主页承载关于、更新与支持入口。 //! //! 薄壳纪律:本文件不定义任何设置语义——键名、值域、出厂默认、主题色表、 -//! 持久化格式全部在共享 crate `nebula-settings`(从旧壳逐字迁移并有单测 +//! 持久化格式全部在共享 crate `pebrel-settings`(从旧壳逐字迁移并有单测 //! 锁定)。这里只负责用组件库把字段摆出来;改动经 `persist_keys` 原地 //! 写回 `nebula_settings.txt`,与旧壳读写同一份文件、同一套语义。 //! @@ -24,7 +24,7 @@ use gpui::{ }; use gpui_component::input::InputEvent; use gpui_component::select::{SelectEvent, SelectItem}; -use nebula_settings::{RuntimeSettings, ThemeName, format_hex_rgb, parse_hex_rgb, persist_keys}; +use pebrel_settings::{RuntimeSettings, ThemeName, format_hex_rgb, parse_hex_rgb, persist_keys}; use design::GROUP_GAP; use setting_help::{SettingHelp, help}; @@ -752,7 +752,7 @@ impl SettingsPane { fn factory_defaults() -> &'static RuntimeSettings { static DEFAULTS: std::sync::OnceLock = std::sync::OnceLock::new(); DEFAULTS - .get_or_init(|| RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text(""))) + .get_or_init(|| RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text(""))) } /// 这一项在这台机器上是否被改过,以及它的出厂值(供 ↶ 还原写回)。 @@ -1053,7 +1053,7 @@ impl SettingsPane { } fn set_background_kind(&mut self, value: &str, window: &mut Window, cx: &mut Context) { - let Some(kind) = nebula_settings::BackgroundMediaKind::parse(value) else { return }; + let Some(kind) = pebrel_settings::BackgroundMediaKind::parse(value) else { return }; if kind == self.runtime.background_media_kind { return; } @@ -1102,9 +1102,9 @@ impl SettingsPane { directories: false, multiple: false, prompt: Some( - if kind == nebula_settings::BackgroundMediaKind::Gif { + if kind == pebrel_settings::BackgroundMediaKind::Gif { language.text(crate::i18n::Message::WallpaperGifPrompt) - } else if kind == nebula_settings::BackgroundMediaKind::Video { + } else if kind == pebrel_settings::BackgroundMediaKind::Video { language.text(crate::i18n::Message::WallpaperVideoPrompt) } else { language.text(crate::i18n::Message::ThemeEditorChooseImage) @@ -1161,8 +1161,8 @@ impl SettingsPane { fn background_image_row(&self, cx: &mut Context) -> impl IntoElement { let language = crate::gpui_shell::config::ui_language(cx); let video = - self.runtime.background_media_kind == nebula_settings::BackgroundMediaKind::Video; - let gif = self.runtime.background_media_kind == nebula_settings::BackgroundMediaKind::Gif; + self.runtime.background_media_kind == pebrel_settings::BackgroundMediaKind::Video; + let gif = self.runtime.background_media_kind == pebrel_settings::BackgroundMediaKind::Gif; let current = self.runtime.background_image.clone(); let has_image = current.as_ref().is_some_and(|path| !path.trim().is_empty()); let path_label: Option = diff --git a/nebula_app/src/gpui_shell/settings_pane/about.rs b/pebrel_app/src/gpui_shell/settings_pane/about.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/about.rs rename to pebrel_app/src/gpui_shell/settings_pane/about.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/agents.rs b/pebrel_app/src/gpui_shell/settings_pane/agents.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/agents.rs rename to pebrel_app/src/gpui_shell/settings_pane/agents.rs index 90b197579..1ed8c5fb4 100644 --- a/nebula_app/src/gpui_shell/settings_pane/agents.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/agents.rs @@ -9,7 +9,7 @@ mod tests; #[cfg(all(test, feature = "gpui-test-support"))] type TestOperation = std::sync::Arc< dyn Fn( - nebula_settings::AgentHook, + pebrel_settings::AgentHook, bool, ) -> futures::future::BoxFuture<'static, (Result<(), String>, Vec)> diff --git a/nebula_app/src/gpui_shell/settings_pane/agents/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/agents/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/agents/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/agents/tests.rs index dd5550e27..5f10945e5 100644 --- a/nebula_app/src/gpui_shell/settings_pane/agents/tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/agents/tests.rs @@ -13,7 +13,7 @@ fn rows(installed: bool) -> Vec { vec![AgentIntegration { agent: AgentKind::Claude, executable: Some("C:/test/claude.exe".into()), - hook: Some(nebula_settings::AgentHook::Claude), + hook: Some(pebrel_settings::AgentHook::Claude), inspection: HookInspection { available: true, installed, @@ -47,7 +47,7 @@ fn fixture( pane.active_section = 10; pane.agents.rows = Some(rows(true)); pane.agents.test_operation = Some(Arc::new(move |hook, enabled| { - assert_eq!(hook, nebula_settings::AgentHook::Claude); + assert_eq!(hook, pebrel_settings::AgentHook::Claude); assert!(!enabled, "the real installed state makes the first action removal"); counted.fetch_add(1, Ordering::SeqCst); let receiver = receiver.lock().unwrap().take().expect("one operation at a time"); diff --git a/nebula_app/src/gpui_shell/settings_pane/app_icon.rs b/pebrel_app/src/gpui_shell/settings_pane/app_icon.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/app_icon.rs rename to pebrel_app/src/gpui_shell/settings_pane/app_icon.rs index 8e862982a..8ade512fc 100644 --- a/nebula_app/src/gpui_shell/settings_pane/app_icon.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/app_icon.rs @@ -1,6 +1,6 @@ use super::appearance_picker::{AppearanceColors, AppearanceSelection, picker_columns}; use super::*; -use nebula_settings::AppIconName; +use pebrel_settings::AppIconName; pub(super) fn icon_family(icon: AppIconName) -> usize { match icon { diff --git a/nebula_app/src/gpui_shell/settings_pane/appearance.rs b/pebrel_app/src/gpui_shell/settings_pane/appearance.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/appearance.rs rename to pebrel_app/src/gpui_shell/settings_pane/appearance.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/appearance_advanced.rs b/pebrel_app/src/gpui_shell/settings_pane/appearance_advanced.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/appearance_advanced.rs rename to pebrel_app/src/gpui_shell/settings_pane/appearance_advanced.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/appearance_picker.rs b/pebrel_app/src/gpui_shell/settings_pane/appearance_picker.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/appearance_picker.rs rename to pebrel_app/src/gpui_shell/settings_pane/appearance_picker.rs index e29fa53f8..8115b2910 100644 --- a/nebula_app/src/gpui_shell/settings_pane/appearance_picker.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/appearance_picker.rs @@ -2,7 +2,7 @@ use super::*; use crate::i18n::Message; use gpui::accesskit::{Role, Toggled}; use gpui_component::FocusTrapElement as _; -use nebula_settings::AppIconName; +use pebrel_settings::AppIconName; #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub(super) enum AppearanceSelection { @@ -66,7 +66,7 @@ pub(super) struct AppearancePicker { pub(super) focus: FocusHandle, pub(super) options: Vec<(AppearanceSelection, FocusHandle)>, pub(super) custom_themes: Vec, - pub(super) custom_definitions: Vec, + pub(super) custom_definitions: Vec, pub(super) foreground_focus: Vec, pub(super) custom_loading: bool, pub(super) custom_load_error: Option, @@ -77,8 +77,8 @@ pub(super) struct AppearancePicker { pub(super) error: Option, /// A picker-only terminal foreground override. `None` means use the /// selected theme's declared foreground; it is persisted only on apply. - pub(super) foreground_override: Option, - pub(super) initial_foreground_override: Option, + pub(super) foreground_override: Option, + pub(super) initial_foreground_override: Option, /// Created on the first visit to the Community filter, dropped with the picker. pub(super) community: Option, } @@ -95,7 +95,7 @@ impl AppearancePicker { pub(super) fn adopt_custom_theme( &mut self, document: crate::theme_library::ThemeDocument, - definition: nebula_settings::ThemeDefinition, + definition: pebrel_settings::ThemeDefinition, focus: FocusHandle, ) -> usize { let index = self.custom_themes.len(); @@ -152,7 +152,7 @@ impl AppearancePicker { pub(super) fn default_foreground( &self, choice: AppearanceSelection, - ) -> Option { + ) -> Option { match choice { AppearanceSelection::Theme(theme) => Some(super::theme_picker::theme_foreground(theme)), AppearanceSelection::Custom(index) => { @@ -449,7 +449,7 @@ impl SettingsPane { updates.push(("custom_theme", String::new())); updates.push(( "theme_foreground", - foreground_override.map(nebula_settings::format_hex_rgb).unwrap_or_default(), + foreground_override.map(pebrel_settings::format_hex_rgb).unwrap_or_default(), )); updates }, diff --git a/nebula_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs similarity index 93% rename from nebula_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs index 64366139f..366d4cfd2 100644 --- a/nebula_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/appearance_picker_tests.rs @@ -1,6 +1,6 @@ use super::appearance_picker::{AppearanceSelection, picker_columns, picker_next_index}; use super::*; -use nebula_settings::AppIconName; +use pebrel_settings::AppIconName; #[test] fn appearance_theme_catalog_matches_the_approved_gallery_order() { @@ -55,8 +55,8 @@ fn appearance_theme_confirmation_preserves_icon_and_other_settings() { [ThemeName::LinenLight, ThemeName::CatppuccinFrappe, ThemeName::CatppuccinMacchiato] { let updates = AppearanceSelection::Theme(theme).updates(); - let updated = nebula_settings::apply_updates(initial, &updates); - let runtime = RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text(&updated)); + let updated = pebrel_settings::apply_updates(initial, &updates); + let runtime = RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text(&updated)); assert_eq!(runtime.theme, theme); assert!(!runtime.follow_system_theme); assert_eq!(runtime.background, Some(theme.term_theme().background)); @@ -74,7 +74,7 @@ fn catppuccin_system_appearance_restores_the_saved_dark_flavor() { [ThemeName::CatppuccinMocha, ThemeName::CatppuccinFrappe, ThemeName::CatppuccinMacchiato] { let initial = format!("theme={}\nfollow_system_theme=1\n", theme.prompt_name()); - let runtime = RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text(&initial)); + let runtime = RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text(&initial)); for is_light in [false, true, false] { assert_eq!( resolve_theme_name(runtime.theme, runtime.follow_system_theme, is_light), @@ -95,8 +95,8 @@ fn appearance_icon_confirmation_never_changes_the_theme() { let initial = "theme=SteelDark\nfollow_system_theme=1\nbackground=#123456\nfont_size=17\n"; let updates = AppearanceSelection::Icon(AppIconName::SilverViolet).updates(); assert_eq!(updates, vec![("app_icon", "silver-violet".to_owned())]); - let updated = nebula_settings::apply_updates(initial, &updates); - let runtime = RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text(&updated)); + let updated = pebrel_settings::apply_updates(initial, &updates); + let runtime = RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text(&updated)); assert_eq!(runtime.theme, ThemeName::SteelDark); assert!(runtime.follow_system_theme); assert_eq!(runtime.background, Some([0x12, 0x34, 0x56])); diff --git a/nebula_app/src/gpui_shell/settings_pane/background_shader.rs b/pebrel_app/src/gpui_shell/settings_pane/background_shader.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/background_shader.rs rename to pebrel_app/src/gpui_shell/settings_pane/background_shader.rs index 1535a1034..e6a04bb7a 100644 --- a/nebula_app/src/gpui_shell/settings_pane/background_shader.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/background_shader.rs @@ -1,6 +1,6 @@ use super::*; use crate::i18n::Message; -use nebula_settings::BackgroundEffects; +use pebrel_settings::BackgroundEffects; impl SettingsPane { pub(super) fn set_shader_preset( diff --git a/nebula_app/src/gpui_shell/settings_pane/backup.rs b/pebrel_app/src/gpui_shell/settings_pane/backup.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/drawer.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/drawer.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/drawer.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/drawer.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/form.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/form.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/form.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/form.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/operations.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/operations.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/operations.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/operations.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/setup.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/setup.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/setup.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/setup.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/tests.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/backup/view.rs b/pebrel_app/src/gpui_shell/settings_pane/backup/view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/backup/view.rs rename to pebrel_app/src/gpui_shell/settings_pane/backup/view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/command_history.rs b/pebrel_app/src/gpui_shell/settings_pane/command_history.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/command_history.rs rename to pebrel_app/src/gpui_shell/settings_pane/command_history.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/command_history/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/command_history/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/command_history/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/command_history/tests.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/cursor_motion.rs b/pebrel_app/src/gpui_shell/settings_pane/cursor_motion.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/cursor_motion.rs rename to pebrel_app/src/gpui_shell/settings_pane/cursor_motion.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs index 22fcc3e2c..c00da40bd 100644 --- a/nebula_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/cursor_motion/native_tests.rs @@ -65,7 +65,7 @@ fn native_cursor_motion_menu_keeps_all_choices_visible() { ); } let view = pane.read(cx); - if view.runtime.cursor_motion != nebula_settings::CursorMotion::Smooth + if view.runtime.cursor_motion != pebrel_settings::CursorMotion::Smooth || view.runtime.ai_toasts { return Err( diff --git a/nebula_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs similarity index 95% rename from nebula_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs index e2a5d544a..2a4505ded 100644 --- a/nebula_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/cursor_motion/tests.rs @@ -36,7 +36,7 @@ fn cursor_motion_control_is_searchable_keyboard_accessible_and_available(cx: &mu let view = cx.new(|cx| SettingsPane::new(window, cx)); view.update(cx, |pane, cx| { pane.runtime = - RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text("ai_toasts=0")); + RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text("ai_toasts=0")); pane.sync_select("cursor_motion", "off", window, cx); }); pane = Some(view.clone()); @@ -80,7 +80,7 @@ fn cursor_motion_options_have_localized_labels_and_stable_persisted_values() { for language in [crate::display::UiLanguage::EnUs, crate::display::UiLanguage::ZhCn] { let labels = localized_select_labels( "cursor_motion", - nebula_settings::CursorMotion::VALUES, + pebrel_settings::CursorMotion::VALUES, language, ); assert_eq!(labels.len(), 2); @@ -140,12 +140,12 @@ fn choosing_cursor_motion_persists_it_and_a_failed_save_restores_the_visible_sel let _ = window.draw(cx); }); } - assert_eq!(RuntimeSettings::load().cursor_motion, nebula_settings::CursorMotion::Smooth); + assert_eq!(RuntimeSettings::load().cursor_motion, pebrel_settings::CursorMotion::Smooth); assert!(!RuntimeSettings::load().ai_toasts); window.update(|_, cx| { assert_eq!( cx.global::().cursor_motion, - nebula_settings::CursorMotion::Smooth + pebrel_settings::CursorMotion::Smooth ); }); assert!(std::fs::read_to_string(&path).unwrap().contains("custom_data=keep")); @@ -166,7 +166,7 @@ fn choosing_cursor_motion_persists_it_and_a_failed_save_restores_the_visible_sel }); } pane.read_with(window, |pane, cx| { - assert_eq!(pane.runtime.cursor_motion, nebula_settings::CursorMotion::Smooth); + assert_eq!(pane.runtime.cursor_motion, pebrel_settings::CursorMotion::Smooth); assert_eq!( pane.select_of("cursor_motion").unwrap().read(cx).selected_index(cx).unwrap().row, 1 @@ -181,5 +181,5 @@ fn choosing_cursor_motion_persists_it_and_a_failed_save_restores_the_visible_sel }); std::fs::remove_dir(&path).unwrap(); std::fs::rename(&backup, &path).unwrap(); - assert_eq!(RuntimeSettings::load().cursor_motion, nebula_settings::CursorMotion::Smooth); + assert_eq!(RuntimeSettings::load().cursor_motion, pebrel_settings::CursorMotion::Smooth); } diff --git a/nebula_app/src/gpui_shell/settings_pane/design.rs b/pebrel_app/src/gpui_shell/settings_pane/design.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/design.rs rename to pebrel_app/src/gpui_shell/settings_pane/design.rs index bf785662d..fab78f3e4 100644 --- a/nebula_app/src/gpui_shell/settings_pane/design.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/design.rs @@ -55,7 +55,7 @@ pub(super) fn group_heading( impl SettingsPane { pub(super) fn row_padding_y(&self) -> f32 { - if self.runtime.density == nebula_settings::DensityName::Compact { + if self.runtime.density == pebrel_settings::DensityName::Compact { ROW_PAD_Y_COMPACT } else { ROW_PAD_Y diff --git a/nebula_app/src/gpui_shell/settings_pane/font_picker.rs b/pebrel_app/src/gpui_shell/settings_pane/font_picker.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/font_picker.rs rename to pebrel_app/src/gpui_shell/settings_pane/font_picker.rs index 8c515b217..aec3cc010 100644 --- a/nebula_app/src/gpui_shell/settings_pane/font_picker.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/font_picker.rs @@ -723,7 +723,7 @@ mod interaction_tests { use crate::gpui_shell::settings_fixture::{SettingsBytesGuard, lock_theme_studio}; let _lock = lock_theme_studio(); let _settings = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("font_family", REQUIRED_FONT_FAMILY.into()), ("font_family_cjk", "Consolas".into()), ]) @@ -784,7 +784,7 @@ mod interaction_tests { cx.update(|cx| { gpui_component::init(cx); let mut settings = - crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord); + crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord); // This layout fixture controls its font chain; installed/user // preferences must not decide its expected field contents. settings.font_family = REQUIRED_FONT_FAMILY.to_owned(); diff --git a/nebula_app/src/gpui_shell/settings_pane/initialization.rs b/pebrel_app/src/gpui_shell/settings_pane/initialization.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/initialization.rs rename to pebrel_app/src/gpui_shell/settings_pane/initialization.rs index 211416abb..c0825e562 100644 --- a/nebula_app/src/gpui_shell/settings_pane/initialization.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/initialization.rs @@ -69,7 +69,7 @@ impl SettingsPane { add_select( "terminal_effect_animation", - nebula_settings::EffectAnimation::VALUES, + pebrel_settings::EffectAnimation::VALUES, runtime.terminal_effects.animation.settings_value(), window, cx, @@ -78,7 +78,7 @@ impl SettingsPane { runtime.cursor_shape.map(|shape| shape.settings_value()).unwrap_or("beam"); add_select( "cursor_motion", - nebula_settings::CursorMotion::VALUES, + pebrel_settings::CursorMotion::VALUES, runtime.cursor_motion.settings_value(), window, cx, @@ -87,7 +87,7 @@ impl SettingsPane { add_select( "language", - nebula_settings::LanguagePref::VALUES, + pebrel_settings::LanguagePref::VALUES, runtime.language.settings_value(), window, cx, @@ -102,7 +102,7 @@ impl SettingsPane { add_select("theme", &THEME_VALUES, runtime.theme.prompt_name(), window, cx); add_select( "notification_duration", - nebula_settings::NotificationDuration::VALUES, + pebrel_settings::NotificationDuration::VALUES, runtime.notification_duration.settings_value(), window, cx, @@ -159,7 +159,7 @@ impl SettingsPane { ); add_select( "ligatures", - nebula_settings::Ligatures::VALUES, + pebrel_settings::Ligatures::VALUES, runtime.ligatures.settings_value(), window, cx, @@ -173,14 +173,14 @@ impl SettingsPane { ); add_select( "scrollback_lines", - nebula_settings::SCROLLBACK_VALUES, + pebrel_settings::SCROLLBACK_VALUES, &runtime.scrollback_lines.to_string(), window, cx, ); add_select( "scrollbar_visibility", - nebula_settings::ScrollbarVisibility::VALUES, + pebrel_settings::ScrollbarVisibility::VALUES, runtime.scrollbar_visibility.settings_value(), window, cx, @@ -205,14 +205,14 @@ impl SettingsPane { ); add_select( "completion_style", - &nebula_settings::CompletionStyleName::VALUES, + &pebrel_settings::CompletionStyleName::VALUES, runtime.completion_style.settings_value(), window, cx, ); add_select( "background_media_kind", - nebula_settings::BackgroundMediaKind::VALUES, + pebrel_settings::BackgroundMediaKind::VALUES, runtime.background_media_kind.settings_value(), window, cx, @@ -220,7 +220,7 @@ impl SettingsPane { // 壁纸 fit/对齐:存原文,经旧壳 renderer::image 的 parse 归一化 add_select( "background_shader_preset", - nebula_settings::BackgroundEffects::PRESETS, + pebrel_settings::BackgroundEffects::PRESETS, runtime.background_effects.preset(), window, cx, @@ -794,7 +794,7 @@ impl SettingsPane { }), keymap_capture: None, keymap_capture_preview: String::new(), - keymap_binds: nebula_settings::keybind_pairs(), + keymap_binds: pebrel_settings::keybind_pairs(), slider_persist: None, _subscriptions: subscriptions, } diff --git a/nebula_app/src/gpui_shell/settings_pane/keymap.rs b/pebrel_app/src/gpui_shell/settings_pane/keymap.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/keymap.rs rename to pebrel_app/src/gpui_shell/settings_pane/keymap.rs index 7e88c61af..9b6492edb 100644 --- a/nebula_app/src/gpui_shell/settings_pane/keymap.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/keymap.rs @@ -301,12 +301,12 @@ impl SettingsPane { /// keybind= 整表落盘 → 重载镜像 → 通知宿主热应用(工作区会重注入 /// gpui 键位表)。persist 走通用路径拿重载与事件,这里补镜像。 fn persist_keybinds(&mut self, cx: &mut Context) { - if let Err(err) = nebula_settings::persist_keybinds(&self.keymap_binds) { + if let Err(err) = pebrel_settings::persist_keybinds(&self.keymap_binds) { crate::gpui_shell::try_write_stderr(format_args!( "[nebula:gpui] failed to persist keybinds: {err}" )); } - self.keymap_binds = nebula_settings::keybind_pairs(); + self.keymap_binds = pebrel_settings::keybind_pairs(); self.runtime = RuntimeSettings::load(); cx.emit(SettingsPaneEvent::Changed); cx.notify(); diff --git a/nebula_app/src/gpui_shell/settings_pane/launcher_actions.rs b/pebrel_app/src/gpui_shell/settings_pane/launcher_actions.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/launcher_actions.rs rename to pebrel_app/src/gpui_shell/settings_pane/launcher_actions.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/localization.rs b/pebrel_app/src/gpui_shell/settings_pane/localization.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/localization.rs rename to pebrel_app/src/gpui_shell/settings_pane/localization.rs index d62b9c8c0..f8775943a 100644 --- a/nebula_app/src/gpui_shell/settings_pane/localization.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/localization.rs @@ -35,10 +35,10 @@ pub(super) fn localized_select_labels( language.text(crate::i18n::Message::WallpaperVideo), language.text(crate::i18n::Message::WallpaperGif), ], - "language" => nebula_settings::LanguagePref::ALL + "language" => pebrel_settings::LanguagePref::ALL .iter() .map(|preference| { - if *preference == nebula_settings::LanguagePref::System { + if *preference == pebrel_settings::LanguagePref::System { language.tr("language.system") } else { preference.native_name() @@ -129,7 +129,7 @@ pub(super) fn localized_select_labels( "Tab", language.text(crate::i18n::Message::SettingsOptionTabOrRightArrow), ], - "completion_style" => nebula_settings::CompletionStyleName::ALL + "completion_style" => pebrel_settings::CompletionStyleName::ALL .into_iter() .map(|style| language.completion_style_label(style)) .collect(), diff --git a/nebula_app/src/gpui_shell/settings_pane/mobile.rs b/pebrel_app/src/gpui_shell/settings_pane/mobile.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/mobile.rs rename to pebrel_app/src/gpui_shell/settings_pane/mobile.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/mobile/relay.rs b/pebrel_app/src/gpui_shell/settings_pane/mobile/relay.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/mobile/relay.rs rename to pebrel_app/src/gpui_shell/settings_pane/mobile/relay.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/mobile/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/mobile/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/mobile/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/mobile/tests.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/mobile/view.rs b/pebrel_app/src/gpui_shell/settings_pane/mobile/view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/mobile/view.rs rename to pebrel_app/src/gpui_shell/settings_pane/mobile/view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/navigation.rs b/pebrel_app/src/gpui_shell/settings_pane/navigation.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/navigation.rs rename to pebrel_app/src/gpui_shell/settings_pane/navigation.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/notifications.rs b/pebrel_app/src/gpui_shell/settings_pane/notifications.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/notifications.rs rename to pebrel_app/src/gpui_shell/settings_pane/notifications.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/notifications/native_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/notifications/native_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/notifications/native_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/notifications/native_tests.rs index 6b5780af1..5c7026972 100644 --- a/nebula_app/src/gpui_shell/settings_pane/notifications/native_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/notifications/native_tests.rs @@ -67,7 +67,7 @@ fn native_notification_duration_menu_keeps_all_choices_visible() { } let view = pane.read(cx); if view.runtime.notification_duration - != nebula_settings::NotificationDuration::ThirtySeconds + != pebrel_settings::NotificationDuration::ThirtySeconds || view.runtime.ai_toasts { return Err( diff --git a/nebula_app/src/gpui_shell/settings_pane/notifications/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/notifications/tests.rs similarity index 94% rename from nebula_app/src/gpui_shell/settings_pane/notifications/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/notifications/tests.rs index a68fd6c89..a14a9716b 100644 --- a/nebula_app/src/gpui_shell/settings_pane/notifications/tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/notifications/tests.rs @@ -17,7 +17,7 @@ fn duration_control_is_searchable_keyboard_accessible_and_keeps_the_delivery_swi let view = cx.new(|cx| SettingsPane::new(window, cx)); view.update(cx, |pane, cx| { pane.runtime = - RuntimeSettings::from_raw(&nebula_settings::RawSettings::from_text("ai_toasts=0")); + RuntimeSettings::from_raw(&pebrel_settings::RawSettings::from_text("ai_toasts=0")); pane.sync_select("notification_duration", "default", window, cx); }); pane = Some(view.clone()); @@ -60,7 +60,7 @@ fn duration_options_have_localized_labels_and_stable_persisted_values() { for language in [crate::display::UiLanguage::EnUs, crate::display::UiLanguage::ZhCn] { let labels = localized_select_labels( "notification_duration", - nebula_settings::NotificationDuration::VALUES, + pebrel_settings::NotificationDuration::VALUES, language, ); assert_eq!(labels.len(), 6); @@ -121,13 +121,13 @@ fn choosing_a_duration_persists_it_and_a_failed_save_restores_the_visible_select } assert_eq!( RuntimeSettings::load().notification_duration, - nebula_settings::NotificationDuration::Persistent + pebrel_settings::NotificationDuration::Persistent ); assert!(!RuntimeSettings::load().ai_toasts); window.update(|_, cx| { assert_eq!( cx.global::().notification_duration, - nebula_settings::NotificationDuration::Persistent + pebrel_settings::NotificationDuration::Persistent ); }); assert!(std::fs::read_to_string(&path).unwrap().contains("custom_data=keep")); @@ -150,7 +150,7 @@ fn choosing_a_duration_persists_it_and_a_failed_save_restores_the_visible_select pane.read_with(window, |pane, cx| { assert_eq!( pane.runtime.notification_duration, - nebula_settings::NotificationDuration::Persistent + pebrel_settings::NotificationDuration::Persistent ); assert_eq!( pane.select_of("notification_duration") @@ -173,6 +173,6 @@ fn choosing_a_duration_persists_it_and_a_failed_save_restores_the_visible_select std::fs::rename(&backup, &path).unwrap(); assert_eq!( RuntimeSettings::load().notification_duration, - nebula_settings::NotificationDuration::Persistent + pebrel_settings::NotificationDuration::Persistent ); } diff --git a/nebula_app/src/gpui_shell/settings_pane/plugins.rs b/pebrel_app/src/gpui_shell/settings_pane/plugins.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/plugins.rs rename to pebrel_app/src/gpui_shell/settings_pane/plugins.rs index 614ef6132..2e9822030 100644 --- a/nebula_app/src/gpui_shell/settings_pane/plugins.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/plugins.rs @@ -36,7 +36,7 @@ pub(super) struct PluginsState { impl PluginsState { pub(super) fn new() -> Self { - let settings = nebula_settings::settings_dir(); + let settings = pebrel_settings::settings_dir(); Self { listing: None, loading: false, diff --git a/nebula_app/src/gpui_shell/settings_pane/plugins_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/plugins_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/plugins_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/plugins_tests.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/plugins_view.rs b/pebrel_app/src/gpui_shell/settings_pane/plugins_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/plugins_view.rs rename to pebrel_app/src/gpui_shell/settings_pane/plugins_view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers.rs b/pebrel_app/src/gpui_shell/settings_pane/providers.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/brand.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/brand.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers/brand.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/brand.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/editor.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/editor.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers/editor.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/editor.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/key.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/key.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers/key.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/key.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/predictions.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/predictions.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/providers/predictions.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/predictions.rs index e8e67eaa5..9cc896c51 100644 --- a/nebula_app/src/gpui_shell/settings_pane/providers/predictions.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/providers/predictions.rs @@ -3,7 +3,7 @@ use super::*; use crate::i18n::Message; use gpui_component::menu::PopupMenuItem; -use nebula_settings::PromptSuggestions; +use pebrel_settings::PromptSuggestions; pub(super) struct PredictionSettingsUi { provider_id: String, diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/select_trigger.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/select_trigger.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers/select_trigger.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/select_trigger.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/providers/view.rs b/pebrel_app/src/gpui_shell/settings_pane/providers/view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/providers/view.rs rename to pebrel_app/src/gpui_shell/settings_pane/providers/view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/reset.rs b/pebrel_app/src/gpui_shell/settings_pane/reset.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/reset.rs rename to pebrel_app/src/gpui_shell/settings_pane/reset.rs index 095c8046d..350658fbe 100644 --- a/nebula_app/src/gpui_shell/settings_pane/reset.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/reset.rs @@ -32,7 +32,7 @@ impl SettingsPane { fn reset_all_settings(&mut self, window: &mut Window, cx: &mut Context) { let language = crate::gpui_shell::config::ui_language(cx); self.slider_persist = None; - let backup = match nebula_settings::restore_default_settings() { + let backup = match pebrel_settings::restore_default_settings() { Ok(backup) => backup, Err(error) => { crate::gpui_shell::toast::toast( diff --git a/nebula_app/src/gpui_shell/settings_pane/scrolling.rs b/pebrel_app/src/gpui_shell/settings_pane/scrolling.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/scrolling.rs rename to pebrel_app/src/gpui_shell/settings_pane/scrolling.rs index 3e1b47cae..9d55eb532 100644 --- a/nebula_app/src/gpui_shell/settings_pane/scrolling.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/scrolling.rs @@ -1,7 +1,7 @@ use super::*; use crate::gpui_shell::config::Settings; use crate::i18n::Message; -use nebula_settings::{ +use pebrel_settings::{ MAX_SCROLL_SPEED, MIN_SCROLL_SPEED, SCROLL_SPEED_STEP, normalize_scroll_speed, }; diff --git a/nebula_app/src/gpui_shell/settings_pane/search_header.rs b/pebrel_app/src/gpui_shell/settings_pane/search_header.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/search_header.rs rename to pebrel_app/src/gpui_shell/settings_pane/search_header.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/segmented.rs b/pebrel_app/src/gpui_shell/settings_pane/segmented.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/segmented.rs rename to pebrel_app/src/gpui_shell/settings_pane/segmented.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/segmented/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/segmented/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/segmented/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/segmented/tests.rs index 7b33d3ead..b5818a856 100644 --- a/nebula_app/src/gpui_shell/settings_pane/segmented/tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/segmented/tests.rs @@ -16,7 +16,7 @@ impl Render for SegmentsHost { fn capsule_uses_inset_thumb_full_hit_targets_and_keyboard_selection(cx: &mut gpui::TestAppContext) { let _lock = lock_theme_studio(); let _settings = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[("tab_reveal", "slide".into()), ("language", "en-US".into())]) + pebrel_settings::persist_keys(&[("tab_reveal", "slide".into()), ("language", "en-US".into())]) .unwrap(); cx.update(|cx| { gpui_component::init(cx); @@ -90,7 +90,7 @@ fn capsule_uses_inset_thumb_full_hit_targets_and_keyboard_selection(cx: &mut gpu fn completion_capsules_keep_all_chinese_choices_at_large_font_size(cx: &mut gpui::TestAppContext) { let _lock = lock_theme_studio(); let _settings = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("completion_style", "hybrid".into()), ("language", "zh-CN".into()), ]) diff --git a/nebula_app/src/gpui_shell/settings_pane/setting_help.rs b/pebrel_app/src/gpui_shell/settings_pane/setting_help.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/setting_help.rs rename to pebrel_app/src/gpui_shell/settings_pane/setting_help.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/shell_picker.rs b/pebrel_app/src/gpui_shell/settings_pane/shell_picker.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/shell_picker.rs rename to pebrel_app/src/gpui_shell/settings_pane/shell_picker.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/shell_picker_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/shell_picker_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/shell_picker_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/shell_picker_tests.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/sponsor.rs b/pebrel_app/src/gpui_shell/settings_pane/sponsor.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/sponsor.rs rename to pebrel_app/src/gpui_shell/settings_pane/sponsor.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/status.rs b/pebrel_app/src/gpui_shell/settings_pane/status.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/status.rs rename to pebrel_app/src/gpui_shell/settings_pane/status.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/terminal_effect.rs b/pebrel_app/src/gpui_shell/settings_pane/terminal_effect.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/terminal_effect.rs rename to pebrel_app/src/gpui_shell/settings_pane/terminal_effect.rs index 2e3e94b09..ebd0b5dac 100644 --- a/nebula_app/src/gpui_shell/settings_pane/terminal_effect.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/terminal_effect.rs @@ -118,7 +118,7 @@ impl SettingsPane { deactivate: bool, cx: &mut Context, ) -> std::io::Result<()> { - let mut updates = nebula_settings::TerminalEffects::source_updates(paths) + let mut updates = pebrel_settings::TerminalEffects::source_updates(paths) .map_err(|error| std::io::Error::new(std::io::ErrorKind::InvalidInput, error))?; if deactivate || paths.is_empty() { updates.push(("terminal_effect_enabled", "false".into())); @@ -240,7 +240,7 @@ impl SettingsPane { .disabled( busy || !available || config.paths.len() - >= nebula_settings::TerminalEffects::PATH_KEYS.len(), + >= pebrel_settings::TerminalEffects::PATH_KEYS.len(), ) .on_click(cx.listener(|this, _, window, cx| { this.choose_terminal_effect(window, cx) diff --git a/nebula_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs index 0f8d6a032..58ec4896f 100644 --- a/nebula_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/terminal_effect_tests.rs @@ -5,9 +5,9 @@ fn open_effect_settings( cx: &mut TestAppContext, effects: &str, ) -> (Entity, VisualTestContext) { - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); std::fs::write( - nebula_settings::settings_path(), + pebrel_settings::settings_path(), format!("{TEST_SETTINGS}background_image_opacity=0.35\n{effects}"), ) .unwrap(); diff --git a/nebula_app/src/gpui_shell/settings_pane/tests.rs b/pebrel_app/src/gpui_shell/settings_pane/tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/settings_pane/tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/tests.rs index cae5478d0..ee3575d87 100644 --- a/nebula_app/src/gpui_shell/settings_pane/tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/tests.rs @@ -7,7 +7,7 @@ fn environment_refresh_switch_is_searchable_and_persists(cx: &mut gpui::TestAppC let _fixture_guard = lock_theme_studio(); let _guard = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[("refresh_environment", "1".into())]).unwrap(); + pebrel_settings::persist_keys(&[("refresh_environment", "1".into())]).unwrap(); cx.update(|cx| { gpui_component::init(cx); cx.set_global(crate::gpui_shell::config::Settings::load(ThemeName::Nord)); @@ -63,14 +63,14 @@ fn pasted_proxy_scheme_updates_the_visible_protocol_and_saved_url(cx: &mut gpui: let _lock = lock_theme_studio(); let _settings = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("ssh_proxy_mode", "custom".into()), ("ssh_proxy_url", "socks5://127.0.0.1:1080".into()), ]) .unwrap(); cx.update(|cx| { gpui_component::init(cx); - cx.set_global(crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut pane_out = None; let (_, cx) = cx.add_window_view(|window, cx| { @@ -104,7 +104,7 @@ fn pasted_proxy_scheme_updates_the_visible_protocol_and_saved_url(cx: &mut gpui: assert_eq!(MANUAL_PROXY_PROTOCOL_OPTIONS[row], expected); assert_eq!(pane.proxy_url_input.read(cx).value().to_string(), host); }); - assert_eq!(nebula_settings::RuntimeSettings::load().ssh_proxy_url, text); + assert_eq!(pebrel_settings::RuntimeSettings::load().ssh_proxy_url, text); } } @@ -155,7 +155,7 @@ fn rename_keymap_row_is_searchable_and_enters_capture(cx: &mut gpui::TestAppCont let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - nebula_settings::persist_keybinds(&[]).unwrap(); + pebrel_settings::persist_keybinds(&[]).unwrap(); cx.update(|cx| { gpui_component::init(cx); cx.set_reduce_motion(true); @@ -197,7 +197,7 @@ fn rename_keymap_row_is_searchable_and_enters_capture(cx: &mut gpui::TestAppCont cx.run_until_parked(); assert_eq!(pane.read_with(cx, |pane, _| pane.keymap_capture), None); - let before = std::fs::read(nebula_settings::settings_path()).unwrap(); + let before = std::fs::read(pebrel_settings::settings_path()).unwrap(); // 走窗口拦截器和真实弹窗命中,避免仅测谓词却漏掉 Enter 打开后立即误确认。 for dismissal in ["cancel", "escape", "confirm"] { cx.update(|window, cx| { @@ -220,7 +220,7 @@ fn rename_keymap_row_is_searchable_and_enters_capture(cx: &mut gpui::TestAppCont assert!(cx.debug_bounds("confirm-dialog-ok").is_some()); assert!(cx.debug_bounds("confirm-dialog-cancel").is_some()); assert_eq!(pane.read_with(cx, |pane, _| pane.keymap_capture), None); - assert_eq!(std::fs::read(nebula_settings::settings_path()).unwrap(), before); + assert_eq!(std::fs::read(pebrel_settings::settings_path()).unwrap(), before); if dismissal == "escape" { cx.simulate_keystrokes("escape"); @@ -236,7 +236,7 @@ fn rename_keymap_row_is_searchable_and_enters_capture(cx: &mut gpui::TestAppCont window.draw(cx).clear(cx); }); assert!(cx.debug_bounds("confirm-dialog-ok").is_none()); - let saved = nebula_settings::keybind_pairs(); + let saved = pebrel_settings::keybind_pairs(); assert_eq!(pane.read_with(cx, |pane, _| pane.keymap_binds.clone()), saved); if dismissal == "confirm" { let (combo, custom) = keymap::GPUI @@ -246,7 +246,7 @@ fn rename_keymap_row_is_searchable_and_enters_capture(cx: &mut gpui::TestAppCont assert_eq!(keymap::parse_combo(&combo), keymap::parse_combo("enter")); } else { assert!(saved.is_empty()); - assert_eq!(std::fs::read(nebula_settings::settings_path()).unwrap(), before); + assert_eq!(std::fs::read(pebrel_settings::settings_path()).unwrap(), before); } } } @@ -378,7 +378,7 @@ fn ai_toast_setting_is_searchable_and_has_a_visible_switch(cx: &mut gpui::TestAp let (_, cx) = cx.add_window_view(|window, cx| { let view = cx.new(|cx| SettingsPane::new(window, cx)); view.update(cx, |pane, _| { - pane.runtime = RuntimeSettings::from_raw(&nebula_settings::RawSettings::default()); + pane.runtime = RuntimeSettings::from_raw(&pebrel_settings::RawSettings::default()); }); pane = Some(view.clone()); gpui_component::Root::new(view, window, cx) @@ -426,7 +426,7 @@ fn ctrl_wheel_font_zoom_setting_is_searchable_and_has_a_visible_switch( let (_, cx) = cx.add_window_view(|window, cx| { let view = cx.new(|cx| SettingsPane::new(window, cx)); view.update(cx, |pane, _| { - pane.runtime = RuntimeSettings::from_raw(&nebula_settings::RawSettings::default()); + pane.runtime = RuntimeSettings::from_raw(&pebrel_settings::RawSettings::default()); }); pane_out = Some(view.clone()); gpui_component::Root::new(view, window, cx) @@ -584,12 +584,12 @@ fn settings_nav_starts_with_application_then_frequent_options() { #[test] fn localized_select_labels_keep_stable_value_cardinality() { let cases: &[(&str, &[&str])] = &[ - ("language", nebula_settings::LanguagePref::VALUES), + ("language", pebrel_settings::LanguagePref::VALUES), ("cursor_shape", &["beam", "underline", "block", "hollow"]), ("tabs_position", &["sidebar", "top"]), ("bell", &["off", "visual", "sound", "both"]), - ("notification_duration", nebula_settings::NotificationDuration::VALUES), - ("completion_style", &nebula_settings::CompletionStyleName::VALUES), + ("notification_duration", pebrel_settings::NotificationDuration::VALUES), + ("completion_style", &pebrel_settings::CompletionStyleName::VALUES), ]; for (key, values) in cases { for language in crate::display::UiLanguage::ALL { @@ -606,7 +606,7 @@ fn localized_select_labels_keep_stable_value_cardinality() { fn language_picker_uses_native_names_and_translated_system_option() { let labels = localized_select_labels( "language", - nebula_settings::LanguagePref::VALUES, + pebrel_settings::LanguagePref::VALUES, crate::display::UiLanguage::FrFr, ); assert_eq!(labels[0], SharedString::from("Suivre le système")); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_advanced.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_advanced.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_advanced.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_advanced.rs index 118fbe04b..59bf6a800 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_advanced.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_advanced.rs @@ -10,7 +10,7 @@ use super::appearance_picker::AppearanceColors; use super::navigation::rgb_hsla; use super::*; use gpui_component::color_picker::{ColorPicker, ColorPickerEvent, ColorPickerState}; -use nebula_settings::{ +use pebrel_settings::{ MAX_PANE_CARD_DIVIDER, MAX_PANE_CARD_GUTTER, MAX_PANE_CARD_RADIUS, Rgb8, ThemeDefinition, format_hex_rgb, parse_hex_rgb, }; diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_background_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_background_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/settings_pane/theme_background_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_background_tests.rs index 139ac5338..ca87ac452 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_background_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_background_tests.rs @@ -52,7 +52,7 @@ fn background_controls_are_draft_only_and_native_export_keeps_effects(cx: &mut T let draft = editor_draft(&pane, &mut window); assert_eq!(draft.effects.background_image.as_deref(), path.to_str()); assert_eq!(draft.effects.background_image_opacity, Some(0.42)); - assert_eq!(draft.effects.blur, Some(nebula_settings::BlurModeName::None)); + assert_eq!(draft.effects.blur, Some(pebrel_settings::BlurModeName::None)); assert_eq!(settings_file_snapshot(), settings_before); let document = editor_document(&pane, &mut window); let artifact = crate::theme_library::export(&document, ThemeFormat::Pebrel).unwrap(); @@ -117,8 +117,8 @@ fn invalid_background_shows_preview_error_without_publishing_settings(cx: &mut T fn background_save_apply_publishes_image_and_independent_opacities(cx: &mut TestAppContext) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let mut cleanup = CustomThemeCleanup::default(); let before_ids = custom_theme_ids(); let (pane, mut window) = open_settings(cx); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_community.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_community.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/theme_community.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_community.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_community_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_community_tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/settings_pane/theme_community_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_community_tests.rs index d3b086f6f..33ace9a1a 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_community_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_community_tests.rs @@ -66,8 +66,8 @@ fn community_install_adds_a_previewed_theme_and_applies_only_on_confirmation( ) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let mut cleanup = CustomThemeCleanup::default(); let dir = tempfile::tempdir().unwrap(); let name = format!("Community fixture {}", std::process::id()); @@ -134,8 +134,8 @@ fn community_install_adds_a_previewed_theme_and_applies_only_on_confirmation( fn closing_the_picker_cancels_community_work_and_drops_late_results(cx: &mut TestAppContext) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let dir = tempfile::tempdir().unwrap(); let listing = fixture(dir.path(), &format!("Community closed {}", std::process::id())); let (pane, mut window) = open_settings(cx); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_community_view.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_community_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/theme_community_view.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_community_view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_editor.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_editor.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_editor.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_editor.rs index cc81b1049..df637238c 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_editor.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_editor.rs @@ -11,7 +11,7 @@ use crate::i18n::Message; use crate::theme_library::{ RevisionPrecondition, ThemeDocument, ThemeLibraryStore, from_definition, }; -use nebula_settings::{Rgb8, ThemeDefinition, ThemeName, format_hex_rgb, parse_hex_rgb}; +use pebrel_settings::{Rgb8, ThemeDefinition, ThemeName, format_hex_rgb, parse_hex_rgb}; use std::collections::{HashMap, HashSet}; mod background; @@ -959,7 +959,7 @@ impl SettingsPane { EditorInput::ImagePath => { candidate.effects.background_image = Some(value.trim().to_owned()); candidate.effects.background_media_kind = - Some(nebula_settings::BackgroundMediaKind::Image); + Some(pebrel_settings::BackgroundMediaKind::Image); true }, EditorInput::ImageOpacity => { diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_editor/background.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/background.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_editor/background.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_editor/background.rs index 4bd98569f..a9bbd783d 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_editor/background.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/background.rs @@ -2,7 +2,7 @@ //! texture is owned here; applying uses the existing bounded wallpaper loader. use super::*; -use nebula_settings::BlurModeName; +use pebrel_settings::BlurModeName; const BLUR: &[&str] = &["none", "mica", "mica-alt", "aero", "acrylic"]; const FIT: &[&str] = &["fill", "uniform", "uniform_to_fill", "none"]; @@ -215,7 +215,7 @@ impl SettingsPane { }; let mut candidate = editor.draft.clone(); candidate.effects.background_image = Some(path.clone()); - candidate.effects.background_media_kind = Some(nebula_settings::BackgroundMediaKind::Image); + candidate.effects.background_media_kind = Some(pebrel_settings::BackgroundMediaKind::Image); if candidate.validate().is_err() { editor.error = Some( crate::gpui_shell::config::ui_language(cx) diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs index dff6c49bd..09788bf96 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/color_dialog.rs @@ -4,7 +4,7 @@ use super::*; use crate::display::BgPickerPart; use gpui::accesskit::Role; use gpui::{Bounds, FocusHandle, Pixels, Point, WeakEntity, canvas}; -use nebula_settings::Rgb8; +use pebrel_settings::Rgb8; use std::cell::Cell; use std::rc::Rc; diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_editor/controls.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/controls.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_editor/controls.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_editor/controls.rs index 7b8f42b9c..352970796 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_editor/controls.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/controls.rs @@ -9,7 +9,7 @@ use super::*; use gpui::{Bounds, FocusHandle, Pixels}; -use nebula_settings::{Rgb8, ThemeDefinition, ThemeUiColors, format_hex_rgb}; +use pebrel_settings::{Rgb8, ThemeDefinition, ThemeUiColors, format_hex_rgb}; /// The four colors shown in the editor's common section. #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)] @@ -506,7 +506,7 @@ impl ThemeEditor { #[cfg(test)] mod tests { use super::*; - use nebula_settings::ThemeName; + use pebrel_settings::ThemeName; #[test] fn hsv_round_trip_keeps_color_close() { diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_editor/view.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/view.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_editor/view.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_editor/view.rs index f953711e6..bb961f858 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_editor/view.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_editor/view.rs @@ -748,7 +748,7 @@ impl SettingsPane { .get(editor.selected_index()) .map(|template| template.label.to_string()) .unwrap_or_else(|| editor.draft.name.clone()); - let contrast = nebula_settings::wcag_contrast_ratio( + let contrast = pebrel_settings::wcag_contrast_ratio( editor.draft.terminal.foreground, editor.draft.terminal.background, ); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_foreground.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_foreground.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_foreground.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_foreground.rs index 5a0b4429c..91535be4c 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_foreground.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_foreground.rs @@ -14,7 +14,7 @@ use gpui::{ StatefulInteractiveElement as _, Styled as _, Window, canvas, div, px, }; use gpui_component::input::InputEvent; -use nebula_settings::{Rgb8, format_hex_rgb, parse_hex_rgb}; +use pebrel_settings::{Rgb8, format_hex_rgb, parse_hex_rgb}; use std::cell::Cell; use std::rc::Rc; diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_package.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_package.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_package.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_package.rs index 4f6b77a53..6b8b7e638 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_package.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_package.rs @@ -28,7 +28,7 @@ pub(super) struct Inspected { pub(super) path: PathBuf, pub(super) manifest: Manifest, pub(super) document: ThemeDocument, - pub(super) definition: nebula_settings::ThemeDefinition, + pub(super) definition: pebrel_settings::ThemeDefinition, } pub(super) struct PackageTransfer { pub(super) mode: Mode, diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_package_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_package_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/theme_package_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_package_tests.rs index 198dcc41a..13935cb46 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_package_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_package_tests.rs @@ -91,8 +91,8 @@ fn zip_export_shares_background_preview_and_metadata_without_publishing(cx: &mut fn zip_import_waits_for_confirmation_and_repeated_clicks_install_once(cx: &mut TestAppContext) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let mut cleanup = CustomThemeCleanup::default(); let dir = tempfile::tempdir().unwrap(); let path = fixture(dir.path(), &format!("Package native test {}", std::process::id())); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_package_view.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_package_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/theme_package_view.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_package_view.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_picker.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_picker.rs similarity index 99% rename from nebula_app/src/gpui_shell/settings_pane/theme_picker.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_picker.rs index 295d2e1d8..659a5edd5 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_picker.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_picker.rs @@ -9,7 +9,7 @@ pub(super) fn theme_foreground(name: ThemeName) -> [u8; 3] { if let Some(exact) = theme.exact { exact.foreground } else if theme.is_light { - nebula_settings::LIGHT_FOREGROUND + pebrel_settings::LIGHT_FOREGROUND } else { let foreground = chrome_theme(name).card_ink().fg; [foreground.r, foreground.g, foreground.b] @@ -95,11 +95,11 @@ pub(super) fn theme_sample_with_foreground( foreground, accent: palette.accent, modified: theme.exact.map_or_else( - || if theme.is_light { nebula_settings::LIGHT_ANSI[3] } else { palette.yellow }, + || if theme.is_light { pebrel_settings::LIGHT_ANSI[3] } else { palette.yellow }, |exact| exact.ansi[3], ), ready: theme.exact.map_or_else( - || if theme.is_light { nebula_settings::LIGHT_ANSI[2] } else { palette.green }, + || if theme.is_light { pebrel_settings::LIGHT_ANSI[2] } else { palette.green }, |exact| exact.ansi[2], ), cursor: theme.exact.and_then(|exact| exact.cursor).unwrap_or(foreground), @@ -113,7 +113,7 @@ pub(super) fn theme_sample_with_foreground( /// this renderer beside the built-in card prevents the appearance trigger and /// the picker from drifting into two different miniature representations. pub(super) fn theme_definition_sample( - definition: &nebula_settings::ThemeDefinition, + definition: &pebrel_settings::ThemeDefinition, foreground_override: Option<[u8; 3]>, token: bool, compact: bool, @@ -466,7 +466,7 @@ impl SettingsPane { }, AppearanceSelection::Icon(_) => unreachable!(), }; - let recommendations = nebula_settings::foreground_recommendations( + let recommendations = pebrel_settings::foreground_recommendations( match draft { AppearanceSelection::Theme(name) => name.term_theme().background, AppearanceSelection::Custom(index) => picker diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_studio_tests.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_studio_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/settings_pane/theme_studio_tests.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_studio_tests.rs index f426fde88..291e23682 100644 --- a/nebula_app/src/gpui_shell/settings_pane/theme_studio_tests.rs +++ b/pebrel_app/src/gpui_shell/settings_pane/theme_studio_tests.rs @@ -11,7 +11,7 @@ use crate::gpui_shell::settings_fixture::{ use crate::theme_library::{ThemeDocument, ThemeFormat, ThemeLibraryStore}; use gpui::{Modifiers, TestAppContext, VisualTestContext, size}; use gpui_component::Root; -use nebula_settings::{RawSettings, RuntimeSettings, ThemeDefinition, ThemeName}; +use pebrel_settings::{RawSettings, RuntimeSettings, ThemeDefinition, ThemeName}; #[path = "theme_background_tests.rs"] mod background_tests; @@ -44,12 +44,12 @@ fn test_runtime() -> RuntimeSettings { #[gpui::test] fn ligature_menu_defaults_on_and_persists_keyboard_choices(cx: &mut TestAppContext) { use crate::gpui_shell::config::Settings; - use nebula_settings::Ligatures; + use pebrel_settings::Ligatures; let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let (pane, mut window) = open_settings(cx); pane.update(&mut window, |pane, cx| { pane.active_section = 1; @@ -88,14 +88,14 @@ fn scrolling_controls_persist_dropdown_and_slider_without_changing_existing_hist cx: &mut TestAppContext, ) { use crate::gpui_shell::config::Settings; - use nebula_terminal::event::VoidListener; - use nebula_terminal::grid::Dimensions; - use nebula_terminal::term::{Term, test::TermSize}; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::grid::Dimensions; + use pebrel_terminal::term::{Term, test::TermSize}; let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let (pane, mut window) = open_settings(cx); pane.update(&mut window, |pane, cx| { pane.active_section = 1; @@ -111,7 +111,7 @@ fn scrolling_controls_persist_dropdown_and_slider_without_changing_existing_hist assert_eq!( localized_select_labels( "scrollback_lines", - nebula_settings::SCROLLBACK_VALUES, + pebrel_settings::SCROLLBACK_VALUES, crate::display::UiLanguage::ZhCn ), ["1,000", "2,000", "5,000", "10,000", "20,000", "50,000", "100,000"] @@ -165,12 +165,12 @@ fn scrolling_controls_persist_dropdown_and_slider_without_changing_existing_hist #[gpui::test] fn scrollbar_menu_persists_all_modes_and_reopens_with_the_selected_value(cx: &mut TestAppContext) { use crate::gpui_shell::config::Settings; - use nebula_settings::ScrollbarVisibility; + use pebrel_settings::ScrollbarVisibility; let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::create_dir_all(nebula_settings::settings_dir()).unwrap(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS).unwrap(); + std::fs::create_dir_all(pebrel_settings::settings_dir()).unwrap(); + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS).unwrap(); let (pane, mut window) = open_settings(cx); pane.update(&mut window, |pane, cx| { pane.active_section = 1; @@ -330,7 +330,7 @@ fn runtime_snapshot() -> RuntimeSnapshot { } fn settings_file_snapshot() -> Option> { - std::fs::read(nebula_settings::settings_path()).ok() + std::fs::read(pebrel_settings::settings_path()).ok() } fn custom_theme_ids() -> Vec { @@ -765,7 +765,7 @@ fn theme_editor_save_only_persists_a_copy_without_changing_source_selection( fn theme_editor_save_and_apply_persists_copy_and_reloads_its_foreground(cx: &mut TestAppContext) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS) + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS) .expect("write isolated apply settings"); let mut theme_cleanup = CustomThemeCleanup::default(); let (pane, mut window) = open_settings(cx); @@ -831,7 +831,7 @@ fn advanced_selection_and_cursor_text_picker_colors_preview_persist_apply_and_re let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS) + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS) .expect("write isolated advanced color settings"); let mut theme_cleanup = CustomThemeCleanup::default(); let (pane, mut window) = open_settings(cx); @@ -1086,7 +1086,7 @@ fn theme_editor_color_picker_is_draft_only_and_cancel_restores(cx: &mut TestAppC .read(cx) .value() .to_string()), - nebula_settings::format_hex_rgb(changed_draft.terminal.foreground), + pebrel_settings::format_hex_rgb(changed_draft.terminal.foreground), "the displayed cursor HEX follows the preview color" ); } @@ -1580,7 +1580,7 @@ fn theme_picker_recommended_foreground_is_local_until_apply_and_restores_after_r ) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS) + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS) .expect("write isolated picker settings"); let (pane, mut window) = open_settings(cx); let before_runtime = runtime_snapshot(); @@ -1634,7 +1634,7 @@ fn theme_editor_save_only_forks_a_non_active_custom_template_without_publishing_ ) { let _fixture_guard = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - std::fs::write(nebula_settings::settings_path(), TEST_SETTINGS) + std::fs::write(pebrel_settings::settings_path(), TEST_SETTINGS) .expect("write isolated template settings"); let mut theme_cleanup = CustomThemeCleanup::default(); let source_name = format!("000000-nebula-template-source-{}", std::process::id()); diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_transfer.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_transfer.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/theme_transfer.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_transfer.rs diff --git a/nebula_app/src/gpui_shell/settings_pane/theme_transfer_view.rs b/pebrel_app/src/gpui_shell/settings_pane/theme_transfer_view.rs similarity index 100% rename from nebula_app/src/gpui_shell/settings_pane/theme_transfer_view.rs rename to pebrel_app/src/gpui_shell/settings_pane/theme_transfer_view.rs diff --git a/nebula_app/src/gpui_shell/shader_source.rs b/pebrel_app/src/gpui_shell/shader_source.rs similarity index 100% rename from nebula_app/src/gpui_shell/shader_source.rs rename to pebrel_app/src/gpui_shell/shader_source.rs diff --git a/nebula_app/src/gpui_shell/ssh_hosts.rs b/pebrel_app/src/gpui_shell/ssh_hosts.rs similarity index 98% rename from nebula_app/src/gpui_shell/ssh_hosts.rs rename to pebrel_app/src/gpui_shell/ssh_hosts.rs index d1f5db28e..6528f7d67 100644 --- a/nebula_app/src/gpui_shell/ssh_hosts.rs +++ b/pebrel_app/src/gpui_shell/ssh_hosts.rs @@ -30,7 +30,7 @@ fn parse_list(value: Option<&str>) -> Vec { impl SshHostLists { pub fn load() -> Self { - let raw = nebula_settings::RawSettings::load(); + let raw = pebrel_settings::RawSettings::load(); let (profiles, load_error) = match crate::ssh_profiles::SshProfiles::load( &crate::display::nebula_data_dir().join("ssh_profiles.json"), ) { @@ -124,7 +124,7 @@ impl SshHostLists { /// 三键原地写回 `nebula_settings.txt`(与旧壳全量写并存时后写者胜, /// 既有多窗口语义)。 pub fn persist(&self) -> std::io::Result<()> { - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("saved_hosts", crate::ssh_profiles::host_lists::encode(&self.saved)), ("pinned_hosts", crate::ssh_profiles::host_lists::encode(&self.pinned)), ("hidden_hosts", crate::ssh_profiles::host_lists::encode(&self.hidden)), diff --git a/nebula_app/src/gpui_shell/ssh_settings.rs b/pebrel_app/src/gpui_shell/ssh_settings.rs similarity index 100% rename from nebula_app/src/gpui_shell/ssh_settings.rs rename to pebrel_app/src/gpui_shell/ssh_settings.rs diff --git a/nebula_app/src/gpui_shell/ssh_settings/advanced.rs b/pebrel_app/src/gpui_shell/ssh_settings/advanced.rs similarity index 100% rename from nebula_app/src/gpui_shell/ssh_settings/advanced.rs rename to pebrel_app/src/gpui_shell/ssh_settings/advanced.rs diff --git a/nebula_app/src/gpui_shell/ssh_settings/editor.rs b/pebrel_app/src/gpui_shell/ssh_settings/editor.rs similarity index 100% rename from nebula_app/src/gpui_shell/ssh_settings/editor.rs rename to pebrel_app/src/gpui_shell/ssh_settings/editor.rs diff --git a/nebula_app/src/gpui_shell/ssh_settings/library.rs b/pebrel_app/src/gpui_shell/ssh_settings/library.rs similarity index 100% rename from nebula_app/src/gpui_shell/ssh_settings/library.rs rename to pebrel_app/src/gpui_shell/ssh_settings/library.rs diff --git a/nebula_app/src/gpui_shell/ssh_settings/library/exchange.rs b/pebrel_app/src/gpui_shell/ssh_settings/library/exchange.rs similarity index 98% rename from nebula_app/src/gpui_shell/ssh_settings/library/exchange.rs rename to pebrel_app/src/gpui_shell/ssh_settings/library/exchange.rs index 0901f7eae..cb5d574be 100644 --- a/nebula_app/src/gpui_shell/ssh_settings/library/exchange.rs +++ b/pebrel_app/src/gpui_shell/ssh_settings/library/exchange.rs @@ -228,7 +228,7 @@ impl SettingsPane { records.iter().map(|record| record.destination.clone()).collect(); let added = profiles.import_missing(&records)?; profiles.save(&path).map_err(|e| e.to_string())?; - let raw = nebula_settings::RawSettings::load(); + let raw = pebrel_settings::RawSettings::load(); let old_hidden = raw.value("hidden_hosts").unwrap_or_default(); let hidden = old_hidden .split(',') @@ -237,7 +237,7 @@ impl SettingsPane { .collect::>() .join(","); let visibility_error = if hidden != old_hidden { - nebula_settings::persist_keys(&[("hidden_hosts", hidden)]) + pebrel_settings::persist_keys(&[("hidden_hosts", hidden)]) .err() .map(|error| error.to_string()) } else { diff --git a/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs b/pebrel_app/src/gpui_shell/ssh_settings/library/tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/ssh_settings/library/tests.rs rename to pebrel_app/src/gpui_shell/ssh_settings/library/tests.rs index 3f48ed9dc..1bdd102e9 100644 --- a/nebula_app/src/gpui_shell/ssh_settings/library/tests.rs +++ b/pebrel_app/src/gpui_shell/ssh_settings/library/tests.rs @@ -18,7 +18,7 @@ fn pairing_design_ssh_auth_description_uses_metadata_not_a_saved_password_claim( fn prototype_ssh_rows_keep_icon_anchors_and_compact_filter(cx: &mut gpui::TestAppContext) { cx.update(|cx| { gpui_component::init(cx); - cx.set_global(crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut pane = None; let (_, cx) = cx.add_window_view(|window, cx| { @@ -185,9 +185,9 @@ fn native_ssh_copy_context_menu_preview() { move |cx| { gpui_component::init(cx); let theme = if std::env::var("PEBREL_SSH_QA_THEME").as_deref() == Ok("paper") { - nebula_settings::ThemeName::Paper + pebrel_settings::ThemeName::Paper } else { - nebula_settings::ThemeName::Nord + pebrel_settings::ThemeName::Nord }; let mut settings = crate::gpui_shell::config::Settings::load(theme); settings.ui_language = crate::display::UiLanguage::ZhCn; diff --git a/nebula_app/src/gpui_shell/ssh_settings/serial_tests.rs b/pebrel_app/src/gpui_shell/ssh_settings/serial_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/ssh_settings/serial_tests.rs rename to pebrel_app/src/gpui_shell/ssh_settings/serial_tests.rs index eef0d24eb..5cf621608 100644 --- a/nebula_app/src/gpui_shell/ssh_settings/serial_tests.rs +++ b/pebrel_app/src/gpui_shell/ssh_settings/serial_tests.rs @@ -19,7 +19,7 @@ fn serial_editor_saves_reloads_and_reopens_without_ssh_username(cx: &mut gpui::T let _settings = SettingsBytesGuard::capture(); let profile_path = crate::display::nebula_data_dir().join("ssh_profiles.json"); let _profiles = ProfilesGuard(profile_path.clone(), std::fs::read(&profile_path).ok()); - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("saved_hosts", "".into()), ("pinned_hosts", "".into()), ("hidden_hosts", "".into()), @@ -27,7 +27,7 @@ fn serial_editor_saves_reloads_and_reopens_without_ssh_username(cx: &mut gpui::T .unwrap(); cx.update(|cx| { gpui_component::init(cx); - cx.set_global(crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut pane_out = None; let (_, cx) = cx.add_window_view(|window, cx| { diff --git a/nebula_app/src/gpui_shell/terminal/answer_reader.rs b/pebrel_app/src/gpui_shell/terminal/answer_reader.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/answer_reader.rs rename to pebrel_app/src/gpui_shell/terminal/answer_reader.rs index 5ec950495..d8d53f90d 100644 --- a/nebula_app/src/gpui_shell/terminal/answer_reader.rs +++ b/pebrel_app/src/gpui_shell/terminal/answer_reader.rs @@ -616,7 +616,7 @@ mod tests { for language in [UiLanguage::EnUs, UiLanguage::ZhCn, UiLanguage::EnUs] { cx.update(|window, cx| { let mut settings = - crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord); + crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord); settings.ui_language = language; cx.set_global(settings); reader.update(cx, |_, cx| cx.notify()); diff --git a/nebula_app/src/gpui_shell/terminal/answer_reader/messages.rs b/pebrel_app/src/gpui_shell/terminal/answer_reader/messages.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/answer_reader/messages.rs rename to pebrel_app/src/gpui_shell/terminal/answer_reader/messages.rs diff --git a/nebula_app/src/gpui_shell/terminal/answer_reader/native_tests.rs b/pebrel_app/src/gpui_shell/terminal/answer_reader/native_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/answer_reader/native_tests.rs rename to pebrel_app/src/gpui_shell/terminal/answer_reader/native_tests.rs index 552ffccc5..11d7736a4 100644 --- a/nebula_app/src/gpui_shell/terminal/answer_reader/native_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/answer_reader/native_tests.rs @@ -16,7 +16,7 @@ fn native_reader_localization() { move |cx| { gpui_component::init(cx); cx.set_global(crate::gpui_shell::config::Settings::load( - nebula_settings::ThemeName::Nord, + pebrel_settings::ThemeName::Nord, )); crate::gpui_shell::theme::apply_chrome_theme(cx); crate::gpui_shell::math_view::register(cx); diff --git a/nebula_app/src/gpui_shell/terminal/character_art.rs b/pebrel_app/src/gpui_shell/terminal/character_art.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/character_art.rs rename to pebrel_app/src/gpui_shell/terminal/character_art.rs index e0f4201b4..611f72935 100644 --- a/nebula_app/src/gpui_shell/terminal/character_art.rs +++ b/pebrel_app/src/gpui_shell/terminal/character_art.rs @@ -2,7 +2,7 @@ use std::ops::Range; -use nebula_terminal::render::RenderSnapshot; +use pebrel_terminal::render::RenderSnapshot; mod paint; pub(super) use paint::paint_overflow; diff --git a/nebula_app/src/gpui_shell/terminal/character_art/paint.rs b/pebrel_app/src/gpui_shell/terminal/character_art/paint.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/character_art/paint.rs rename to pebrel_app/src/gpui_shell/terminal/character_art/paint.rs index fed0cf141..579c752d7 100644 --- a/nebula_app/src/gpui_shell/terminal/character_art/paint.rs +++ b/pebrel_app/src/gpui_shell/terminal/character_art/paint.rs @@ -2,7 +2,7 @@ use super::Frame; use crate::gpui_shell::terminal::{colors::Palette, cursor_painter::paint_box_glyph}; use gpui::{App, Bounds, Font, Pixels, Point, Rgba, TextAlign, TextRun, Window, fill, point, size}; -use nebula_terminal::{ +use pebrel_terminal::{ render::{RenderSnapshot, boxdraw}, term::color::Colors, }; diff --git a/nebula_app/src/gpui_shell/terminal/character_art/tests.rs b/pebrel_app/src/gpui_shell/terminal/character_art/tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/character_art/tests.rs rename to pebrel_app/src/gpui_shell/terminal/character_art/tests.rs index 5ff6955dd..903fa38f9 100644 --- a/nebula_app/src/gpui_shell/terminal/character_art/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/character_art/tests.rs @@ -1,7 +1,7 @@ use super::*; -use nebula_terminal::render::{BgRun, BoxGlyph, CursorSnapshot, SnapCell, TextSegment}; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::vte::ansi::{Color, CursorShape, NamedColor}; +use pebrel_terminal::render::{BgRun, BoxGlyph, CursorSnapshot, SnapCell, TextSegment}; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::vte::ansi::{Color, CursorShape, NamedColor}; fn snapshot(lines: &[String], rows: u16) -> RenderSnapshot { let mut snap = RenderSnapshot { @@ -21,7 +21,7 @@ fn snapshot(lines: &[String], rows: u16) -> RenderSnapshot { if ch == ' ' { continue; } - if nebula_terminal::render::boxdraw::is_builtin(ch) { + if pebrel_terminal::render::boxdraw::is_builtin(ch) { snap.box_glyphs.push(BoxGlyph { row: row as u16, col: col as u16, diff --git a/nebula_app/src/gpui_shell/terminal/colors.rs b/pebrel_app/src/gpui_shell/terminal/colors.rs similarity index 96% rename from nebula_app/src/gpui_shell/terminal/colors.rs rename to pebrel_app/src/gpui_shell/terminal/colors.rs index c67135947..72535d3f1 100644 --- a/nebula_app/src/gpui_shell/terminal/colors.rs +++ b/pebrel_app/src/gpui_shell/terminal/colors.rs @@ -1,19 +1,19 @@ //! 终端调色板:把 vte 的 `Color` 解析成 GPUI 的 `Rgba`。 //! -//! 解析顺序与 nebula_app 一致:OSC 4/10/11 的运行时覆盖(`Term::colors()`) +//! 解析顺序与 pebrel_app 一致:OSC 4/10/11 的运行时覆盖(`Term::colors()`) //! 优先,其次是 `Palette`(用户 nebula.toml 覆盖 deep-space 默认值,由 //! `crate::config` 构造)。 use gpui::Rgba; -use nebula_terminal::term::color::Colors; -use nebula_terminal::vte::ansi::{Color, NamedColor, Rgb}; +use pebrel_terminal::term::color::Colors; +use pebrel_terminal::vte::ansi::{Color, NamedColor, Rgb}; const fn rgb8(r: u8, g: u8, b: u8) -> Rgba { Rgba { r: r as f32 / 255.0, g: g as f32 / 255.0, b: b as f32 / 255.0, a: 1.0 } } -/// 一份终端实例的静态配色。默认值与 nebula_app 的 deep-space 主题逐字段一致 -/// (`nebula_app/src/config/color.rs`),保证两个壳在同一份用户配置下同色。 +/// 一份终端实例的静态配色。默认值与 pebrel_app 的 deep-space 主题逐字段一致 +/// (`pebrel_app/src/config/color.rs`),保证两个壳在同一份用户配置下同色。 #[derive(Clone)] pub struct Palette { pub foreground: Rgba, @@ -102,12 +102,12 @@ impl Palette { /// 两条渠道必须给同一个答案,否则 app 会在「你说是亮的、我量出来是暗的」 /// 之间反复横跳。 /// - /// 阈值与公式下沉到 `nebula_terminal::term::background_is_dark`,与旧壳共用 + /// 阈值与公式下沉到 `pebrel_terminal::term::background_is_dark`,与旧壳共用 /// 同一判据。 pub fn is_dark(&self) -> bool { let to_u8 = |c: f32| (c.clamp(0.0, 1.0) * 255.0).round() as u8; let bg = self.background; - nebula_terminal::term::background_is_dark(to_u8(bg.r), to_u8(bg.g), to_u8(bg.b)) + pebrel_terminal::term::background_is_dark(to_u8(bg.r), to_u8(bg.g), to_u8(bg.b)) } fn indexed_default(&self, index: u8) -> Rgba { diff --git a/nebula_app/src/gpui_shell/terminal/completion_viewport.rs b/pebrel_app/src/gpui_shell/terminal/completion_viewport.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/completion_viewport.rs rename to pebrel_app/src/gpui_shell/terminal/completion_viewport.rs diff --git a/nebula_app/src/gpui_shell/terminal/confirmation.rs b/pebrel_app/src/gpui_shell/terminal/confirmation.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/confirmation.rs rename to pebrel_app/src/gpui_shell/terminal/confirmation.rs index 1a9978ba1..dcd4cddd5 100644 --- a/nebula_app/src/gpui_shell/terminal/confirmation.rs +++ b/pebrel_app/src/gpui_shell/terminal/confirmation.rs @@ -3,7 +3,7 @@ mod choices; use std::sync::OnceLock; use std::sync::atomic::{AtomicU64, Ordering}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::term::TermMode; use regex::Regex; #[derive(Clone)] diff --git a/nebula_app/src/gpui_shell/terminal/confirmation/choices.rs b/pebrel_app/src/gpui_shell/terminal/confirmation/choices.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/confirmation/choices.rs rename to pebrel_app/src/gpui_shell/terminal/confirmation/choices.rs diff --git a/nebula_app/src/gpui_shell/terminal/cursor_motion.rs b/pebrel_app/src/gpui_shell/terminal/cursor_motion.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/cursor_motion.rs rename to pebrel_app/src/gpui_shell/terminal/cursor_motion.rs diff --git a/nebula_app/src/gpui_shell/terminal/cursor_motion/tests.rs b/pebrel_app/src/gpui_shell/terminal/cursor_motion/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/cursor_motion/tests.rs rename to pebrel_app/src/gpui_shell/terminal/cursor_motion/tests.rs diff --git a/nebula_app/src/gpui_shell/terminal/cursor_painter.rs b/pebrel_app/src/gpui_shell/terminal/cursor_painter.rs similarity index 96% rename from nebula_app/src/gpui_shell/terminal/cursor_painter.rs rename to pebrel_app/src/gpui_shell/terminal/cursor_painter.rs index 197ccc800..1335b06fc 100644 --- a/nebula_app/src/gpui_shell/terminal/cursor_painter.rs +++ b/pebrel_app/src/gpui_shell/terminal/cursor_painter.rs @@ -4,7 +4,7 @@ use gpui::{ App, Bounds, ContentMask, Hsla, Pixels, Point, Rgba, ShapedLine, TextRun, Window, fill, outline, point, px, size, }; -use nebula_terminal::vte::ansi::CursorShape; +use pebrel_terminal::vte::ansi::CursorShape; pub(super) struct CursorPaint { pub rect: Bounds, @@ -94,11 +94,11 @@ impl CursorPaint { pub(super) fn paint_box_glyph( window: &mut Window, - prims: &[nebula_terminal::render::boxdraw::Primitive], + prims: &[pebrel_terminal::render::boxdraw::Primitive], origin: Point, color: Rgba, ) { - use nebula_terminal::render::boxdraw::Primitive; + use pebrel_terminal::render::boxdraw::Primitive; let at = |p: &[f32; 2]| point(origin.x + px(p[0]), origin.y + px(p[1])); for prim in prims { match prim { diff --git a/nebula_app/src/gpui_shell/terminal/effects.rs b/pebrel_app/src/gpui_shell/terminal/effects.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/effects.rs rename to pebrel_app/src/gpui_shell/terminal/effects.rs index 0c90471c8..580efdf87 100644 --- a/nebula_app/src/gpui_shell/terminal/effects.rs +++ b/pebrel_app/src/gpui_shell/terminal/effects.rs @@ -8,8 +8,8 @@ use gpui::{ PostprocessFeedback, StreamImageBudget, StreamImageBudgets, StreamImageHandle, Subscription, Task, WeakEntity, WgslPostprocessDescriptor, Window, size, }; -use nebula_settings::{EffectAnimation, TerminalEffects}; -use nebula_terminal::term::color::Colors; +use pebrel_settings::{EffectAnimation, TerminalEffects}; +use pebrel_terminal::term::color::Colors; use std::{ sync::{ Arc, @@ -211,7 +211,7 @@ impl TerminalEffect { } let paths: Vec<_> = match self.config.request() { Ok(Some(paths)) => { - paths.iter().map(|path| nebula_settings::settings_dir().join(path)).collect() + paths.iter().map(|path| pebrel_settings::settings_dir().join(path)).collect() }, Ok(None) => return, Err(error) => { diff --git a/nebula_app/src/gpui_shell/terminal/effects/abi.glsl b/pebrel_app/src/gpui_shell/terminal/effects/abi.glsl similarity index 100% rename from nebula_app/src/gpui_shell/terminal/effects/abi.glsl rename to pebrel_app/src/gpui_shell/terminal/effects/abi.glsl diff --git a/nebula_app/src/gpui_shell/terminal/effects/abi.wgsl b/pebrel_app/src/gpui_shell/terminal/effects/abi.wgsl similarity index 100% rename from nebula_app/src/gpui_shell/terminal/effects/abi.wgsl rename to pebrel_app/src/gpui_shell/terminal/effects/abi.wgsl diff --git a/nebula_app/src/gpui_shell/terminal/effects/compiler.rs b/pebrel_app/src/gpui_shell/terminal/effects/compiler.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/effects/compiler.rs rename to pebrel_app/src/gpui_shell/terminal/effects/compiler.rs diff --git a/nebula_app/src/gpui_shell/terminal/effects/frame.rs b/pebrel_app/src/gpui_shell/terminal/effects/frame.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/effects/frame.rs rename to pebrel_app/src/gpui_shell/terminal/effects/frame.rs index f913cc098..ae0be7979 100644 --- a/nebula_app/src/gpui_shell/terminal/effects/frame.rs +++ b/pebrel_app/src/gpui_shell/terminal/effects/frame.rs @@ -1,6 +1,6 @@ use super::super::{colors::Palette, cursor_painter::CursorPaint}; use gpui::{Bounds, Pixels, Rgba}; -use nebula_terminal::{ +use pebrel_terminal::{ term::color::Colors, vte::ansi::{Color, CursorShape, NamedColor}, }; @@ -34,7 +34,7 @@ mod tests { text_color: None, }; let mut history = History::default(); - let config = nebula_settings::TerminalEffects::default(); + let config = pebrel_settings::TerminalEffects::default(); let first = history.encode([100, 50], bounds, 1.0, Some(&cursor), true, &palette, &colors, &config); let word = |bytes: &[u8], index: usize| { @@ -97,7 +97,7 @@ impl History { focused: bool, palette: &Palette, colors: &Colors, - config: &nebula_settings::TerminalEffects, + config: &pebrel_settings::TerminalEffects, ) -> Arc<[u8]> { let started = self.started.get_or_insert_with(Instant::now); self.speed = config.timing.speed; diff --git a/nebula_app/src/gpui_shell/terminal/effects/unavailable.rs b/pebrel_app/src/gpui_shell/terminal/effects/unavailable.rs similarity index 94% rename from nebula_app/src/gpui_shell/terminal/effects/unavailable.rs rename to pebrel_app/src/gpui_shell/terminal/effects/unavailable.rs index 7936aaee5..7f16c115a 100644 --- a/nebula_app/src/gpui_shell/terminal/effects/unavailable.rs +++ b/pebrel_app/src/gpui_shell/terminal/effects/unavailable.rs @@ -1,7 +1,7 @@ //! 没有后处理后端时不创建 actor;保持与原平台缺省路径相同的绘制与可见性行为。 use super::{colors::Palette, cursor_painter::CursorPaint, view::TerminalView}; use gpui::{App, Bounds, Context, Entity, Pixels, Window}; -use nebula_terminal::term::color::Colors; +use pebrel_terminal::term::color::Colors; // 此类型没有可构造值,确保不支持的平台始终没有伪造的效果 entity。 pub(super) type TerminalEffect = std::convert::Infallible; diff --git a/nebula_app/src/gpui_shell/terminal/element.rs b/pebrel_app/src/gpui_shell/terminal/element.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/element.rs rename to pebrel_app/src/gpui_shell/terminal/element.rs index ea657f090..035782c0c 100644 --- a/nebula_app/src/gpui_shell/terminal/element.rs +++ b/pebrel_app/src/gpui_shell/terminal/element.rs @@ -1,7 +1,7 @@ //! 终端网格的自定义 GPUI Element。 //! //! 热路径约定:paint 内只对 `Term` 加一次锁,通过渲染合同 -//! (`nebula_terminal::render::RenderSnapshot`)把可见网格快照成纯数据后立刻 +//! (`pebrel_terminal::render::RenderSnapshot`)把可见网格快照成纯数据后立刻 //! 放锁;颜色解析(调色板 + OSC 覆盖表)与绘制都在锁外进行。 //! //! 定位合同:字形落在 `列号 × cell_width`,不使用 `force_width` 的 @@ -16,11 +16,11 @@ use gpui::{ UnderlineStyle, Window, fill, outline, point, px, relative, size, }; use gpui_component::ActiveTheme as _; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::render::{RenderSnapshot, SnapshotConfig, boxdraw}; -use nebula_terminal::term::TermMode; -use nebula_terminal::term::color::Colors; -use nebula_terminal::vte::ansi::{Color, CursorShape, NamedColor}; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig, boxdraw}; +use pebrel_terminal::term::TermMode; +use pebrel_terminal::term::color::Colors; +use pebrel_terminal::vte::ansi::{Color, CursorShape, NamedColor}; use super::colors::Palette; use super::cursor_painter::{CursorPaint, paint_box_glyph}; @@ -1769,11 +1769,11 @@ mod tests { use crate::display::{NebulaCompletionItem, NebulaCompletionKind}; mod app_color_resolution { - use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; - use nebula_terminal::term::color::Colors; - use nebula_terminal::term::test::TermSize; - use nebula_terminal::term::{Config, Term}; - use nebula_terminal::vte::ansi::{self, Color, NamedColor}; + use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; + use pebrel_terminal::term::color::Colors; + use pebrel_terminal::term::test::TermSize; + use pebrel_terminal::term::{Config, Term}; + use pebrel_terminal::vte::ansi::{self, Color, NamedColor}; use super::super::{Palette, resolve_app_colors_into, rgb_from_rgba}; use crate::display::terminal_color::TerminalColorResolver; @@ -1784,7 +1784,7 @@ mod tests { fn snapshot_of(bytes: &[u8]) -> RenderSnapshot { let size = TermSize::new(40, 2); let mut term = - Term::new(Config::default(), &size, nebula_terminal::event::VoidListener); + Term::new(Config::default(), &size, pebrel_terminal::event::VoidListener); let mut parser: ansi::Processor = ansi::Processor::new(); parser.advance(&mut term, bytes); RenderSnapshot::capture(&term, &SnapshotConfig { rows: 2, cols: 40 }) diff --git a/nebula_app/src/gpui_shell/terminal/element/app_colors.rs b/pebrel_app/src/gpui_shell/terminal/element/app_colors.rs similarity index 95% rename from nebula_app/src/gpui_shell/terminal/element/app_colors.rs rename to pebrel_app/src/gpui_shell/terminal/element/app_colors.rs index 58eef94cb..a32388c20 100644 --- a/nebula_app/src/gpui_shell/terminal/element/app_colors.rs +++ b/pebrel_app/src/gpui_shell/terminal/element/app_colors.rs @@ -1,8 +1,8 @@ //! Theme correction for colors written by applications. -use nebula_terminal::render::RenderSnapshot; -use nebula_terminal::term::color::Colors; -use nebula_terminal::vte::ansi::Color; +use pebrel_terminal::render::RenderSnapshot; +use pebrel_terminal::term::color::Colors; +use pebrel_terminal::vte::ansi::Color; use super::{Palette, rgb_from_rgba}; use crate::display::terminal_color::TerminalColorResolver; diff --git a/nebula_app/src/gpui_shell/terminal/element/cell_fit.rs b/pebrel_app/src/gpui_shell/terminal/element/cell_fit.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/element/cell_fit.rs rename to pebrel_app/src/gpui_shell/terminal/element/cell_fit.rs diff --git a/nebula_app/src/gpui_shell/terminal/element/color_tests.rs b/pebrel_app/src/gpui_shell/terminal/element/color_tests.rs similarity index 93% rename from nebula_app/src/gpui_shell/terminal/element/color_tests.rs rename to pebrel_app/src/gpui_shell/terminal/element/color_tests.rs index c858da387..78a8721de 100644 --- a/nebula_app/src/gpui_shell/terminal/element/color_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/element/color_tests.rs @@ -2,19 +2,19 @@ //! Fixture colors follow codex rust-v0.154.0 tui/src/style.rs and //! bottom_pane/chat_composer/sparkle.rs; this does not emulate a live Codex session. -use nebula_terminal::event::VoidListener; -use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; -use nebula_terminal::term::color::Colors; -use nebula_terminal::term::test::TermSize; -use nebula_terminal::term::{Config, Term}; -use nebula_terminal::vte::ansi::{self, Color, NamedColor, Rgb}; +use pebrel_terminal::event::VoidListener; +use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; +use pebrel_terminal::term::color::Colors; +use pebrel_terminal::term::test::TermSize; +use pebrel_terminal::term::{Config, Term}; +use pebrel_terminal::vte::ansi::{self, Color, NamedColor, Rgb}; use super::{Palette, resolve_app_colors_into, rgb_from_rgba}; use crate::display::terminal_color::TerminalColorResolver; use crate::gpui_shell::terminal::colors::from_ansi_rgb; use crate::gpui_shell::theme::ResolvedTheme; -fn palette(name: nebula_settings::ThemeName) -> Palette { +fn palette(name: pebrel_settings::ThemeName) -> Palette { let resolved = ResolvedTheme::builtin(name, None); let color = |[r, g, b]: [u8; 3]| from_ansi_rgb(Rgb { r, g, b }); Palette { @@ -42,7 +42,7 @@ fn capture(palette: &Palette) -> (RenderSnapshot, Rgb) { #[test] fn every_builtin_theme_keeps_message_surfaces_and_braille_stars() { - for name in nebula_settings::ThemeName::BUILTIN { + for name in pebrel_settings::ThemeName::BUILTIN { let palette = palette(name); let (mut snapshot, user) = capture(&palette); assert_ne!(from_ansi_rgb(user), palette.background, "{name:?}"); @@ -81,8 +81,8 @@ fn every_builtin_theme_keeps_message_surfaces_and_braille_stars() { #[test] fn message_background_remains_distinct_after_every_builtin_theme_switch() { - for from in nebula_settings::ThemeName::BUILTIN { - for to in nebula_settings::ThemeName::BUILTIN { + for from in pebrel_settings::ThemeName::BUILTIN { + for to in pebrel_settings::ThemeName::BUILTIN { let original = palette(from); let next = palette(to); let (mut snapshot, _) = capture(&original); @@ -163,7 +163,7 @@ fn dim_follows_the_original_foreground_under_inverse() { #[test] fn dim_text_stays_distinct_after_contrast_adjustment_without_dimming_twice() { - let nord = palette(nebula_settings::ThemeName::Nord); + let nord = palette(pebrel_settings::ThemeName::Nord); let nord = Palette { dim_foreground: Palette::dim_of(nord.foreground), ..nord }; let none = Colors::default(); let mut term = Term::new(Config::default(), &TermSize::new(40, 2), VoidListener); diff --git a/nebula_app/src/gpui_shell/terminal/element/reading.rs b/pebrel_app/src/gpui_shell/terminal/element/reading.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/element/reading.rs rename to pebrel_app/src/gpui_shell/terminal/element/reading.rs diff --git a/nebula_app/src/gpui_shell/terminal/element/snapshot.rs b/pebrel_app/src/gpui_shell/terminal/element/snapshot.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/element/snapshot.rs rename to pebrel_app/src/gpui_shell/terminal/element/snapshot.rs index 5868df408..fc4b411ec 100644 --- a/nebula_app/src/gpui_shell/terminal/element/snapshot.rs +++ b/pebrel_app/src/gpui_shell/terminal/element/snapshot.rs @@ -82,7 +82,7 @@ impl TerminalElement { let source = RenderSnapshot::capture_from( &term, &SnapshotConfig { rows: (range.end - range.start) as u16, cols: cols as u16 }, - nebula_terminal::index::Line((range.start - image_anchor) as i32), + pebrel_terminal::index::Line((range.start - image_anchor) as i32), ); (range.start - viewport_top_abs, source) }); diff --git a/nebula_app/src/gpui_shell/terminal/element/snapshot_probe.rs b/pebrel_app/src/gpui_shell/terminal/element/snapshot_probe.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/element/snapshot_probe.rs rename to pebrel_app/src/gpui_shell/terminal/element/snapshot_probe.rs index 4ba8ba83f..5dd307502 100644 --- a/nebula_app/src/gpui_shell/terminal/element/snapshot_probe.rs +++ b/pebrel_app/src/gpui_shell/terminal/element/snapshot_probe.rs @@ -4,7 +4,7 @@ use std::cell::RefCell; use std::collections::HashMap; use gpui::{App, Bounds, Entity, EntityId, Global, Pixels, Point, Size, size}; -use nebula_terminal::render::RenderSnapshot; +use pebrel_terminal::render::RenderSnapshot; use super::{TermLayout, TerminalView}; diff --git a/nebula_app/src/gpui_shell/terminal/event_mailbox.rs b/pebrel_app/src/gpui_shell/terminal/event_mailbox.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/event_mailbox.rs rename to pebrel_app/src/gpui_shell/terminal/event_mailbox.rs index f068194bf..f79daa5d6 100644 --- a/nebula_app/src/gpui_shell/terminal/event_mailbox.rs +++ b/pebrel_app/src/gpui_shell/terminal/event_mailbox.rs @@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex}; use std::task::{Context, Poll}; use futures::{Stream, channel::mpsc}; -use nebula_terminal::event::Event; +use pebrel_terminal::event::Event; #[derive(Clone)] pub(super) struct EventSender { diff --git a/nebula_app/src/gpui_shell/terminal/inline_image.rs b/pebrel_app/src/gpui_shell/terminal/inline_image.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/inline_image.rs rename to pebrel_app/src/gpui_shell/terminal/inline_image.rs index 45295ae37..2468a0171 100644 --- a/nebula_app/src/gpui_shell/terminal/inline_image.rs +++ b/pebrel_app/src/gpui_shell/terminal/inline_image.rs @@ -9,7 +9,7 @@ use std::sync::{Arc, Weak}; use gpui::{Bounds, ContentMask, Corners, Pixels, RenderImage, Window, point, px, size}; use image::{Frame, ImageFormat}; -use nebula_terminal::inline_image::{ImageLayout, ImagePlacement, ImageRun}; +use pebrel_terminal::inline_image::{ImageLayout, ImagePlacement, ImageRun}; const MAX_IMAGE_PIXELS: u64 = 16 * 1024 * 1024; const MAX_IMAGE_ENCODED_BYTES: usize = 12 * 1024 * 1024; @@ -513,7 +513,7 @@ fn decode_rgba( #[cfg(test)] mod tests { use super::*; - use nebula_terminal::inline_image::{ImageIdentity, ImageLayout}; + use pebrel_terminal::inline_image::{ImageIdentity, ImageLayout}; fn placement(image: &Arc) -> ImagePlacement { ImagePlacement { @@ -621,7 +621,7 @@ mod tests { #[test] fn kitty_crop_uses_full_texture_coordinates_without_shrinking_at_the_viewport_edge() { - use nebula_terminal::inline_image::KittyPlacement; + use pebrel_terminal::inline_image::KittyPlacement; let resource = ImageIdentity::new(); let lease = ImageIdentity::new(); let placement = Arc::new(KittyPlacement { @@ -670,7 +670,7 @@ mod tests { #[test] fn tiled_paint_batches_preserve_holes_and_different_source_transforms() { - use nebula_terminal::inline_image::KittyPlacement; + use pebrel_terminal::inline_image::KittyPlacement; let resource = ImageIdentity::new(); let layout = ImageLayout { width: 460.0, diff --git a/nebula_app/src/gpui_shell/terminal/keymap.rs b/pebrel_app/src/gpui_shell/terminal/keymap.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/keymap.rs rename to pebrel_app/src/gpui_shell/terminal/keymap.rs index 67f9269ba..02fe330c0 100644 --- a/nebula_app/src/gpui_shell/terminal/keymap.rs +++ b/pebrel_app/src/gpui_shell/terminal/keymap.rs @@ -7,7 +7,7 @@ mod win32; use gpui::Keystroke; -use nebula_terminal::term::TermMode; +use pebrel_terminal::term::TermMode; /// xterm 修饰参数:1 + shift(1) + alt(2) + ctrl(4)。 fn modifier_param(ks: &Keystroke) -> u8 { @@ -1068,9 +1068,9 @@ mod tests { #[derive(Clone, Default)] struct KeyboardReplyRecorder(std::rc::Rc>>); - impl nebula_terminal::event::EventListener for KeyboardReplyRecorder { - fn send_event(&self, event: nebula_terminal::event::Event) { - if let nebula_terminal::event::Event::PtyWrite(reply) = event { + impl pebrel_terminal::event::EventListener for KeyboardReplyRecorder { + fn send_event(&self, event: pebrel_terminal::event::Event) { + if let pebrel_terminal::event::Event::PtyWrite(reply) = event { self.0.borrow_mut().push(reply); } } @@ -1078,12 +1078,12 @@ mod tests { #[test] fn antigravity_startup_queries_applied_flags_and_preserves_newline_chords() { - use nebula_terminal::term::Config; - use nebula_terminal::vte::ansi::Processor; + use pebrel_terminal::term::Config; + use pebrel_terminal::vte::ansi::Processor; let size = super::super::session::GridSize { columns: 80, screen_lines: 24 }; let recorder = KeyboardReplyRecorder::default(); - let mut term = nebula_terminal::Term::new( + let mut term = pebrel_terminal::Term::new( Config { kitty_keyboard: true, ..Config::default() }, &size, recorder.clone(), @@ -1120,12 +1120,12 @@ mod tests { #[test] fn codex_keyboard_negotiation_preserves_enter_chords_until_reset() { - use nebula_terminal::term::Config; - use nebula_terminal::vte::ansi::Processor; + use pebrel_terminal::term::Config; + use pebrel_terminal::vte::ansi::Processor; let size = super::super::session::GridSize { columns: 80, screen_lines: 24 }; let recorder = KeyboardReplyRecorder::default(); - let mut term = nebula_terminal::Term::new( + let mut term = pebrel_terminal::Term::new( Config { kitty_keyboard: true, ..Config::default() }, &size, recorder.clone(), @@ -1154,12 +1154,12 @@ mod tests { #[test] fn pi_keyboard_negotiation_controls_alt_v_and_pop_restores_legacy() { - use nebula_terminal::term::Config; - use nebula_terminal::vte::ansi::Processor; + use pebrel_terminal::term::Config; + use pebrel_terminal::vte::ansi::Processor; let recorder = KeyboardReplyRecorder::default(); let size = super::super::session::GridSize { columns: 80, screen_lines: 24 }; - let mut term = nebula_terminal::Term::new( + let mut term = pebrel_terminal::Term::new( Config { kitty_keyboard: true, ..Config::default() }, &size, recorder.clone(), diff --git a/nebula_app/src/gpui_shell/terminal/keymap/win32.rs b/pebrel_app/src/gpui_shell/terminal/keymap/win32.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/keymap/win32.rs rename to pebrel_app/src/gpui_shell/terminal/keymap/win32.rs diff --git a/nebula_app/src/gpui_shell/terminal/ligatures.rs b/pebrel_app/src/gpui_shell/terminal/ligatures.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/ligatures.rs rename to pebrel_app/src/gpui_shell/terminal/ligatures.rs index 262c69aa8..6c78d00d2 100644 --- a/nebula_app/src/gpui_shell/terminal/ligatures.rs +++ b/pebrel_app/src/gpui_shell/terminal/ligatures.rs @@ -20,7 +20,7 @@ use gpui::{ FontId, LineLayout, Pixels, ShapedGlyph, ShapedLine, ShapedRun, SharedString, TextRun, WindowTextSystem, px, }; -use nebula_terminal::render::SnapCell; +use pebrel_terminal::render::SnapCell; fn ascii_graphic(cell: &SnapCell) -> bool { cell.text.len() == 1 && cell.text.as_bytes()[0].is_ascii_graphic() diff --git a/nebula_app/src/gpui_shell/terminal/ligatures/tests.rs b/pebrel_app/src/gpui_shell/terminal/ligatures/tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/ligatures/tests.rs rename to pebrel_app/src/gpui_shell/terminal/ligatures/tests.rs index 9e10a4d45..e146c9f07 100644 --- a/nebula_app/src/gpui_shell/terminal/ligatures/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/ligatures/tests.rs @@ -1,6 +1,6 @@ use super::*; use gpui::{FontId, GlyphId, ShapedGlyph, ShapedRun, point, px}; -use nebula_terminal::vte::ansi::{Color, NamedColor}; +use pebrel_terminal::vte::ansi::{Color, NamedColor}; fn cells(text: &str) -> Vec { text.chars() diff --git a/nebula_app/src/gpui_shell/terminal/link_underline.rs b/pebrel_app/src/gpui_shell/terminal/link_underline.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/link_underline.rs rename to pebrel_app/src/gpui_shell/terminal/link_underline.rs index 3c0afbe30..24aa6dfdc 100644 --- a/nebula_app/src/gpui_shell/terminal/link_underline.rs +++ b/pebrel_app/src/gpui_shell/terminal/link_underline.rs @@ -51,10 +51,10 @@ mod tests { use super::*; use crate::config::UiConfig; use crate::gpui_shell::terminal::osc_links::{dashed_cells, dashed_cells_where}; - use nebula_terminal::event::VoidListener; - use nebula_terminal::term::test::TermSize; - use nebula_terminal::term::{Config, Term}; - use nebula_terminal::vte::ansi; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::term::test::TermSize; + use pebrel_terminal::term::{Config, Term}; + use pebrel_terminal::vte::ansi; #[test] #[ignore = "informational hot-path measurement; no machine-specific timing gate"] diff --git a/nebula_app/src/gpui_shell/terminal/math_overlay.rs b/pebrel_app/src/gpui_shell/terminal/math_overlay.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/math_overlay.rs rename to pebrel_app/src/gpui_shell/terminal/math_overlay.rs index 6c2ce10f7..a77d317dc 100644 --- a/nebula_app/src/gpui_shell/terminal/math_overlay.rs +++ b/pebrel_app/src/gpui_shell/terminal/math_overlay.rs @@ -15,14 +15,14 @@ use std::{ops::Range, sync::Arc}; use gpui::{App, Bounds, Pixels, Rgba, SharedString, Window, point, px, size}; -use nebula_terminal::Term; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::index::{Column, Line, Point, Side}; -use nebula_terminal::selection::{SelectionRange, SelectionType}; -use nebula_terminal::term::TermMode; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::vte::ansi::{Color, NamedColor}; +use pebrel_terminal::Term; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::index::{Column, Line, Point, Side}; +use pebrel_terminal::selection::{SelectionRange, SelectionType}; +use pebrel_terminal::term::TermMode; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::vte::ansi::{Color, NamedColor}; use crate::display::SizeInfo; use crate::display::color::Rgb; @@ -112,9 +112,9 @@ impl MathFrame { pub(super) fn project_image_runs( &self, - runs: &[nebula_terminal::inline_image::ImageRun], + runs: &[pebrel_terminal::inline_image::ImageRun], columns: usize, - ) -> Vec { + ) -> Vec { self.projection.project_image_runs(runs, columns) } @@ -248,7 +248,7 @@ impl MathOverlay { // 光标所在行是活动输入,必须保留原文。备用屏幕里同样放过:编辑器 // 的光标压在你要改的那一行上,换成渲染图就没法编辑源码了。 let cursor = - nebula_terminal::term::point_to_viewport_from(origin, term.grid().cursor.point).filter( + pebrel_terminal::term::point_to_viewport_from(origin, term.grid().cursor.point).filter( |point| point.line < size.screen_lines() && point.column.0 < size.columns(), ); let rendered_cells = scan_cells_from_term(term, size, default_foreground); @@ -489,7 +489,7 @@ fn scan_cells_from_term( cells } -fn cell_foreground(cell: &nebula_terminal::term::cell::Cell, default: Rgb) -> Rgb { +fn cell_foreground(cell: &pebrel_terminal::term::cell::Cell, default: Rgb) -> Rgb { let color = if cell.flags.contains(Flags::INVERSE) { cell.bg } else { cell.fg }; match color { Color::Spec(rgb) => Rgb::new(rgb.r, rgb.g, rgb.b), @@ -594,13 +594,13 @@ pub fn paint_frame( #[cfg(test)] mod tests { - use nebula_terminal::event::VoidListener; - use nebula_terminal::grid::Dimensions; - use nebula_terminal::index::{Column, Line, Point}; - use nebula_terminal::selection::{Selection, SelectionType}; - use nebula_terminal::term::Config; - use nebula_terminal::vte::ansi::Color; - use nebula_terminal::{Term, index::Side}; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::grid::Dimensions; + use pebrel_terminal::index::{Column, Line, Point}; + use pebrel_terminal::selection::{Selection, SelectionType}; + use pebrel_terminal::term::Config; + use pebrel_terminal::vte::ansi::Color; + use pebrel_terminal::{Term, index::Side}; use super::{MathOverlay, grid_size_info, scan_cells_from_term}; use crate::display::color::Rgb; @@ -688,7 +688,7 @@ mod tests { #[test] fn adjacent_image_rows_are_solid_formula_clip_boundaries() { - use nebula_terminal::inline_image::ImageLayout; + use pebrel_terminal::inline_image::ImageLayout; for prefixed in [false, true] { let prefix = if prefixed { format!("$x{}$ ", " ".repeat(60)) } else { String::new() }; let text = format!("{prefix}{}", r"$\frac{1}{\frac{x}{y}}$"); @@ -1091,9 +1091,9 @@ mod tests { fn protocol_image_with_real_math_bitmaps_keeps_text_visible(cx: &mut gpui::TestAppContext) { use super::super::inline_image::{InlineImageStore, decode}; use base64::Engine as _; - use nebula_terminal::event::{Event, EventListener, WindowSize}; - use nebula_terminal::event_loop::StreamProcessor; - use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; + use pebrel_terminal::event::{Event, EventListener, WindowSize}; + use pebrel_terminal::event_loop::StreamProcessor; + use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; use std::io::Write as _; use std::sync::{Arc, Mutex}; @@ -1218,8 +1218,8 @@ mod tests { } #[test] fn image_cells_are_not_formula_whitespace() { - use nebula_terminal::event::WindowSize; - use nebula_terminal::event_loop::StreamProcessor; + use pebrel_terminal::event::WindowSize; + use pebrel_terminal::event_loop::StreamProcessor; let mut term = Term::new(Config::default(), &TestSize { cols: 20, rows: 8 }, VoidListener); let mut stream = StreamProcessor::default(); stream.resize(WindowSize { num_cols: 20, num_lines: 8, cell_width: 8, cell_height: 18 }); @@ -1239,9 +1239,9 @@ mod tests { } #[test] fn image_projection_splits_an_older_snapshot_around_new_formula_cells() { - use nebula_terminal::event_loop::StreamProcessor; - use nebula_terminal::inline_image::ImageLayout; - use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; + use pebrel_terminal::event_loop::StreamProcessor; + use pebrel_terminal::inline_image::ImageLayout; + use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; let mut term = Term::new(Config::default(), &TestSize { cols: 20, rows: 4 }, VoidListener); term.grid_mut().cursor.point = Point::new(Line(0), Column(2)); let _placement = term.nebula_insert_inline_image(ImageLayout { diff --git a/nebula_app/src/gpui_shell/terminal/mod.rs b/pebrel_app/src/gpui_shell/terminal/mod.rs similarity index 90% rename from nebula_app/src/gpui_shell/terminal/mod.rs rename to pebrel_app/src/gpui_shell/terminal/mod.rs index 7090f44ad..a7684304c 100644 --- a/nebula_app/src/gpui_shell/terminal/mod.rs +++ b/pebrel_app/src/gpui_shell/terminal/mod.rs @@ -1,6 +1,6 @@ -//! 终端垂直切片:nebula_terminal(PTY/网格)× GPUI(渲染/输入/IME)。 +//! 终端垂直切片:pebrel_terminal(PTY/网格)× GPUI(渲染/输入/IME)。 //! -//! 边界:本模块之外不出现 nebula_terminal 类型;nebula_terminal 之内不出现 +//! 边界:本模块之外不出现 pebrel_terminal 类型;pebrel_terminal 之内不出现 //! GPUI 类型。会话生命周期归 `session`,绘制归 `element`,交互归 `view`。 mod answer_reader; @@ -35,7 +35,7 @@ pub mod view; use gpui::{App, KeyBinding}; -gpui::actions!(nebula_terminal, [TerminalTab, TerminalBackTab]); +gpui::actions!(pebrel_terminal, [TerminalTab, TerminalBackTab]); pub(super) const KEY_CONTEXT: &str = "NebulaTerminal"; diff --git a/nebula_app/src/gpui_shell/terminal/molecule_overlay.rs b/pebrel_app/src/gpui_shell/terminal/molecule_overlay.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/molecule_overlay.rs rename to pebrel_app/src/gpui_shell/terminal/molecule_overlay.rs index 5ce9379c6..80dbd52fc 100644 --- a/nebula_app/src/gpui_shell/terminal/molecule_overlay.rs +++ b/pebrel_app/src/gpui_shell/terminal/molecule_overlay.rs @@ -3,7 +3,7 @@ use super::view::TerminalView; use gpui::{App, Bounds, Corners, Entity, Pixels, Window, fill, point, px, size}; -use nebula_terminal::{render::RenderSnapshot, term::TermMode}; +use pebrel_terminal::{render::RenderSnapshot, term::TermMode}; use std::{ hash::{DefaultHasher, Hash, Hasher}, ops::Range, diff --git a/nebula_app/src/gpui_shell/terminal/mouse_protocol.rs b/pebrel_app/src/gpui_shell/terminal/mouse_protocol.rs similarity index 96% rename from nebula_app/src/gpui_shell/terminal/mouse_protocol.rs rename to pebrel_app/src/gpui_shell/terminal/mouse_protocol.rs index 8451bb855..06ad8c74e 100644 --- a/nebula_app/src/gpui_shell/terminal/mouse_protocol.rs +++ b/pebrel_app/src/gpui_shell/terminal/mouse_protocol.rs @@ -1,14 +1,14 @@ //! 鼠标上报协议编码:X10/normal、SGR、UTF-8 扩展坐标。 //! -//! 从旧壳 `nebula_app/src/input/mouse.rs` 的 `mouse_report` / +//! 从旧壳 `pebrel_app/src/input/mouse.rs` 的 `mouse_report` / //! `normal_mouse_report` / `sgr_mouse_report` 逐字对照移植成纯函数—— //! 字节序列以旧壳行为为权威,这里只做"无 UI 状态"化,方便单测锁定。 //! //! 坐标约定:`point` 是 buffer 坐标(`viewport_to_point` 之后),负行 //! 意味着鼠标落在回滚区,任何协议都不上报。 -use nebula_terminal::index::Point as TermPoint; -use nebula_terminal::term::TermMode; +use pebrel_terminal::index::Point as TermPoint; +use pebrel_terminal::term::TermMode; /// 按钮码(xterm):左 0、中 1、右 2;滚轮上/下 64/65。 /// 拖动在按钮码上 +32;无按键的纯移动固定 35。 @@ -106,7 +106,7 @@ fn normal_report(mode: &TermMode, point: TermPoint, button: u8) -> Option TermPoint { TermPoint::new(Line(line), Column(col)) diff --git a/nebula_app/src/gpui_shell/terminal/native_results/code.rs b/pebrel_app/src/gpui_shell/terminal/native_results/code.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/code.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/code.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/diff.rs b/pebrel_app/src/gpui_shell/terminal/native_results/diff.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/diff.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/diff.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/fold.rs b/pebrel_app/src/gpui_shell/terminal/native_results/fold.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/fold.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/fold.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/json.rs b/pebrel_app/src/gpui_shell/terminal/native_results/json.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/json.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/json.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/markdown.rs b/pebrel_app/src/gpui_shell/terminal/native_results/markdown.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/markdown.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/markdown.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/mod.rs b/pebrel_app/src/gpui_shell/terminal/native_results/mod.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/native_results/mod.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/mod.rs index 77b5c4cd4..ec690fd75 100644 --- a/nebula_app/src/gpui_shell/terminal/native_results/mod.rs +++ b/pebrel_app/src/gpui_shell/terminal/native_results/mod.rs @@ -16,10 +16,10 @@ use gpui_component::input::{Input, InputEvent, InputState}; use gpui_component::text::{ MarkdownExtensions, MarkdownNode, TextView, TextViewState, TextViewStyle, }; -use nebula_terminal::grid::{Dimensions as _, GridCell as _}; -use nebula_terminal::index::{Column, Point}; -use nebula_terminal::inline_content::{Status, Surface}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::grid::{Dimensions as _, GridCell as _}; +use pebrel_terminal::index::{Column, Point}; +use pebrel_terminal::inline_content::{Status, Surface}; +use pebrel_terminal::term::TermMode; use std::collections::{HashMap, HashSet}; use std::sync::{Arc, Weak}; diff --git a/nebula_app/src/gpui_shell/terminal/native_results/table.rs b/pebrel_app/src/gpui_shell/terminal/native_results/table.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/table.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/table.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/tools.rs b/pebrel_app/src/gpui_shell/terminal/native_results/tools.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/native_results/tools.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/tools.rs diff --git a/nebula_app/src/gpui_shell/terminal/native_results/viewport.rs b/pebrel_app/src/gpui_shell/terminal/native_results/viewport.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/native_results/viewport.rs rename to pebrel_app/src/gpui_shell/terminal/native_results/viewport.rs index 182197711..9ee7e536b 100644 --- a/nebula_app/src/gpui_shell/terminal/native_results/viewport.rs +++ b/pebrel_app/src/gpui_shell/terminal/native_results/viewport.rs @@ -1,7 +1,7 @@ //! 所有结果和普通终端行共用的纵向坐标;占位只影响显示,不改写 VT 网格。 use super::super::session::EventProxy; use super::*; -use nebula_terminal::{Term, index::Line}; +use pebrel_terminal::{Term, index::Line}; use std::cell::RefCell; #[derive(Clone)] @@ -103,7 +103,7 @@ impl Projection { let offset = (-line.0).max(0) as usize; let current = term.grid().display_offset(); if current != offset { - term.scroll_display(nebula_terminal::grid::Scroll::Delta( + term.scroll_display(pebrel_terminal::grid::Scroll::Delta( offset as i32 - current as i32, )); } @@ -354,7 +354,7 @@ mod tests { #[test] fn image_fragments_follow_native_result_height_without_changing_texture_bounds() { use gpui::{point, px}; - use nebula_terminal::inline_image::{ImageLayout, ImageRun}; + use pebrel_terminal::inline_image::{ImageLayout, ImageRun}; for height in [1.0, 5.5] { let mut projection = Projection { slots: vec![Slot { id: 1, start: 1, rows: 3, height, hide_source: true }], diff --git a/nebula_app/src/gpui_shell/terminal/osc_links.rs b/pebrel_app/src/gpui_shell/terminal/osc_links.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/osc_links.rs rename to pebrel_app/src/gpui_shell/terminal/osc_links.rs index b6ea327f3..71c730755 100644 --- a/nebula_app/src/gpui_shell/terminal/osc_links.rs +++ b/pebrel_app/src/gpui_shell/terminal/osc_links.rs @@ -7,12 +7,12 @@ use std::collections::HashMap; use std::sync::Arc; use gpui::{App, ClipboardItem, Window}; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::index::Point; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::term::{Term, point_to_viewport_from}; -use nebula_terminal::vte::ansi::Color; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::index::Point; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::term::{Term, point_to_viewport_from}; +use pebrel_terminal::vte::ansi::Color; use unicode_width::UnicodeWidthChar; use winit::keyboard::ModifiersState; diff --git a/nebula_app/src/gpui_shell/terminal/reading.rs b/pebrel_app/src/gpui_shell/terminal/reading.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/reading.rs rename to pebrel_app/src/gpui_shell/terminal/reading.rs index 8c6edee08..9242b6e0f 100644 --- a/nebula_app/src/gpui_shell/terminal/reading.rs +++ b/pebrel_app/src/gpui_shell/terminal/reading.rs @@ -7,7 +7,7 @@ pub(super) mod worker; use crate::gpui_shell::copy_feedback::CopyFeedback; use gpui::{Entity, Subscription, Task}; use gpui_component::input::InputState; -use nebula_terminal::term::reading::{CompletedCommand, ReadingError, ReadingSpan}; +use pebrel_terminal::term::reading::{CompletedCommand, ReadingError, ReadingSpan}; use std::sync::{ Arc, atomic::{AtomicU64, Ordering}, diff --git a/nebula_app/src/gpui_shell/terminal/reading/output_hover.rs b/pebrel_app/src/gpui_shell/terminal/reading/output_hover.rs similarity index 96% rename from nebula_app/src/gpui_shell/terminal/reading/output_hover.rs rename to pebrel_app/src/gpui_shell/terminal/reading/output_hover.rs index 29e23157a..2a11a1eb4 100644 --- a/nebula_app/src/gpui_shell/terminal/reading/output_hover.rs +++ b/pebrel_app/src/gpui_shell/terminal/reading/output_hover.rs @@ -2,7 +2,7 @@ use super::ReadingIssue; use crate::gpui_shell::copy_feedback::CopyFeedback; use gpui::{Entity, Subscription, Task}; -use nebula_terminal::term::reading::ReadingSpan; +use pebrel_terminal::term::reading::ReadingSpan; use std::sync::{ Arc, atomic::{AtomicU64, Ordering}, diff --git a/nebula_app/src/gpui_shell/terminal/reading/text.rs b/pebrel_app/src/gpui_shell/terminal/reading/text.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/reading/text.rs rename to pebrel_app/src/gpui_shell/terminal/reading/text.rs index c065c45f4..a50884b46 100644 --- a/nebula_app/src/gpui_shell/terminal/reading/text.rs +++ b/pebrel_app/src/gpui_shell/terminal/reading/text.rs @@ -1,5 +1,5 @@ //! 有界流式字面搜索与复制组装;只消费锁外的终端文本块。 -use nebula_terminal::term::reading::{ReadingPoint, ReadingRow}; +use pebrel_terminal::term::reading::{ReadingPoint, ReadingRow}; use std::collections::VecDeque; pub(in crate::gpui_shell::terminal) const MAX_QUERY_BYTES: usize = 4096; @@ -206,7 +206,7 @@ impl TextCollector { #[cfg(test)] mod tests { use super::*; - use nebula_terminal::term::reading::ReadingCell; + use pebrel_terminal::term::reading::ReadingCell; fn row(line: usize, column: usize, text: &str, hard_break: bool) -> ReadingRow { let mut cells = Vec::new(); let mut col = column; diff --git a/nebula_app/src/gpui_shell/terminal/reading/worker.rs b/pebrel_app/src/gpui_shell/terminal/reading/worker.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/reading/worker.rs rename to pebrel_app/src/gpui_shell/terminal/reading/worker.rs index 23dab2db5..42bbe10b5 100644 --- a/nebula_app/src/gpui_shell/terminal/reading/worker.rs +++ b/pebrel_app/src/gpui_shell/terminal/reading/worker.rs @@ -5,9 +5,9 @@ use super::{ text::{LiteralSearch, MAX_COPY_BYTES, TextCollector}, }; use futures::{SinkExt as _, channel::mpsc}; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::term::reading::{ReadingRow, ReadingSpan}; -use nebula_terminal::{Term, sync::FairMutex}; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::term::reading::{ReadingRow, ReadingSpan}; +use pebrel_terminal::{Term, sync::FairMutex}; use std::sync::{ Arc, atomic::{AtomicU64, Ordering}, diff --git a/nebula_app/src/gpui_shell/terminal/session.rs b/pebrel_app/src/gpui_shell/terminal/session.rs similarity index 95% rename from nebula_app/src/gpui_shell/terminal/session.rs rename to pebrel_app/src/gpui_shell/terminal/session.rs index 13a75c4b2..6b6e81c69 100644 --- a/nebula_app/src/gpui_shell/terminal/session.rs +++ b/pebrel_app/src/gpui_shell/terminal/session.rs @@ -1,6 +1,6 @@ -//! PTY 会话接线:`Term` + `EventLoop` + ConPTY,全部来自 `nebula_terminal`。 +//! PTY 会话接线:`Term` + `EventLoop` + ConPTY,全部来自 `pebrel_terminal`。 //! -//! 与 `nebula_app::window_context::create_pane` 相同的模式,只是事件出口换成 +//! 与 `pebrel_app::window_context::create_pane` 相同的模式,只是事件出口换成 //! futures channel,让 GPUI 前台任务可以 `await` 事件。SSH 会话复用同一 //! `TerminalSession` 形状:传输层换成 `ssh_session::spawn_session`(russh //! 直连,与旧壳同一条业务路径),事件与输入协议不变。 @@ -8,14 +8,14 @@ use std::sync::Arc; use futures::channel::mpsc::{UnboundedReceiver, UnboundedSender, unbounded}; -use nebula_terminal::Term; -use nebula_terminal::event::{Event, EventListener, WindowSize}; -use nebula_terminal::event_loop::{EventLoop, Notifier}; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::Config; -use nebula_terminal::tty; -use nebula_terminal::tty::EventedPty as _; +use pebrel_terminal::Term; +use pebrel_terminal::event::{Event, EventListener, WindowSize}; +use pebrel_terminal::event_loop::{EventLoop, Notifier}; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::Config; +use pebrel_terminal::tty; +use pebrel_terminal::tty::EventedPty as _; /// 把 PTY/SSH 线程发出的终端事件转投到 GPUI 前台的异步通道。本地与 SSH /// 会话共用同一形状:`stages` 只有 SSH 业务层会写(连接阶段横幅的数据 @@ -40,7 +40,7 @@ impl EventListener for EventProxy { &self, shell: &str, command: &str, - ) -> Option { + ) -> Option { crate::command_lenses::classify(shell, command) } } @@ -115,7 +115,7 @@ pub struct TerminalSession { #[cfg(all(test, feature = "gpui-test-support"))] pub(super) fn test_session() --> (TerminalSession, std::sync::mpsc::Receiver) { +-> (TerminalSession, std::sync::mpsc::Receiver) { let (session, receiver, _, _) = test_session_with_events(); (session, receiver) } @@ -123,7 +123,7 @@ pub(super) fn test_session() #[cfg(all(test, feature = "gpui-test-support"))] pub(super) fn test_session_with_events() -> ( TerminalSession, - std::sync::mpsc::Receiver, + std::sync::mpsc::Receiver, super::event_mailbox::EventReceiver, EventProxy, ) { @@ -139,7 +139,7 @@ pub(super) fn test_session_with_events() -> ( }; let term = Term::new(Config::default(), &GridSize { columns: 80, screen_lines: 24 }, proxy.clone()); - let (sender, receiver) = nebula_terminal::event_loop::EventLoopSender::standalone().unwrap(); + let (sender, receiver) = pebrel_terminal::event_loop::EventLoopSender::standalone().unwrap(); ( TerminalSession { term: Arc::new(FairMutex::new(term)), diff --git a/nebula_app/src/gpui_shell/terminal/session_pump.rs b/pebrel_app/src/gpui_shell/terminal/session_pump.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/session_pump.rs rename to pebrel_app/src/gpui_shell/terminal/session_pump.rs index ab2a6777e..8e07d0e77 100644 --- a/nebula_app/src/gpui_shell/terminal/session_pump.rs +++ b/pebrel_app/src/gpui_shell/terminal/session_pump.rs @@ -2,7 +2,7 @@ use super::view::TerminalView; use futures::StreamExt as _; use gpui::Context; -use nebula_terminal::event::Event as TermEvent; +use pebrel_terminal::event::Event as TermEvent; pub(super) fn attach( mut rx: super::event_mailbox::EventReceiver, diff --git a/nebula_app/src/gpui_shell/terminal/ssh_connect_overlay.rs b/pebrel_app/src/gpui_shell/terminal/ssh_connect_overlay.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/ssh_connect_overlay.rs rename to pebrel_app/src/gpui_shell/terminal/ssh_connect_overlay.rs diff --git a/nebula_app/src/gpui_shell/terminal/suggest.rs b/pebrel_app/src/gpui_shell/terminal/suggest.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/suggest.rs rename to pebrel_app/src/gpui_shell/terminal/suggest.rs diff --git a/nebula_app/src/gpui_shell/terminal/view.rs b/pebrel_app/src/gpui_shell/terminal/view.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view.rs rename to pebrel_app/src/gpui_shell/terminal/view.rs index a0ca4bad1..e92642d2b 100644 --- a/nebula_app/src/gpui_shell/terminal/view.rs +++ b/pebrel_app/src/gpui_shell/terminal/view.rs @@ -50,15 +50,15 @@ use gpui::{ div, point, px, }; use gpui_component::Sizable as _; -use nebula_settings::CellWidthModeName; -use nebula_terminal::event::{Event as TermEvent, Notify as _, OnResize as _, WindowSize}; -use nebula_terminal::event_loop::Msg; -use nebula_terminal::grid::{Dimensions as _, Scroll}; -use nebula_terminal::index::{Column, Line, Point as TermPoint, Side}; -use nebula_terminal::render::{CellMetrics, TerminalViewport, ViewportTracker}; -use nebula_terminal::selection::{Selection, SelectionType}; -use nebula_terminal::term::TermMode; -use nebula_terminal::vte::ansi::CursorStyle; +use pebrel_settings::CellWidthModeName; +use pebrel_terminal::event::{Event as TermEvent, Notify as _, OnResize as _, WindowSize}; +use pebrel_terminal::event_loop::Msg; +use pebrel_terminal::grid::{Dimensions as _, Scroll}; +use pebrel_terminal::index::{Column, Line, Point as TermPoint, Side}; +use pebrel_terminal::render::{CellMetrics, TerminalViewport, ViewportTracker}; +use pebrel_terminal::selection::{Selection, SelectionType}; +use pebrel_terminal::term::TermMode; +use pebrel_terminal::vte::ansi::CursorStyle; use std::sync::Arc; @@ -197,7 +197,7 @@ fn paste_needs_confirmation(text: &str, mode: TermMode) -> bool { /// 当前 UI 语言。`RuntimeSettings` 每次读盘,所以只在用户动作(复制提示、 /// 粘贴确认)时取,不进渲染热路径。 fn ui_language() -> crate::display::UiLanguage { - crate::display::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::display::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved() } @@ -250,7 +250,7 @@ pub enum TerminalViewEvent { pub enum TerminalLaunch { Local { cwd: Option, - shell: Option, + shell: Option, /// 只用于欢迎屏选择 PowerShell/Bash 形态,不参与 PTY 启动。 shell_name: Option, }, @@ -336,7 +336,7 @@ pub struct TerminalView { pub font_bold_italic: Font, pub font_size: Pixels, pub ligatures: bool, - cell_width_mode: nebula_settings::CellWidthModeName, + cell_width_mode: pebrel_settings::CellWidthModeName, /// Cell offsets use physical pixels, matching the legacy crossfont /// contract. They are applied after GPUI has shaped the actual face. font_offset_x: f32, @@ -440,7 +440,7 @@ pub struct TerminalView { /// 反算 `display_offset`,拇指不会在按下那一刻跳到指针中心。 scrollbar_drag: Option, scrollbar_hovered: bool, - scrollbar_visibility: nebula_settings::ScrollbarVisibility, + scrollbar_visibility: pebrel_settings::ScrollbarVisibility, origin: Point, cell_width: Pixels, pub(super) line_height: Pixels, @@ -1082,8 +1082,8 @@ impl TerminalView { if self.agent_activity.hook_seen() { return; } - let mode = nebula_settings::RuntimeSettings::load().bell; - if mode == nebula_settings::BellModeName::None { + let mode = pebrel_settings::RuntimeSettings::load().bell; + if mode == pebrel_settings::BellModeName::None { return; } let audible_ok = if mode.audible() { Self::ring_audible() } else { false }; @@ -1128,7 +1128,7 @@ impl TerminalView { if (next - current).abs() < f32::EPSILON { return; } - if let Err(err) = nebula_settings::persist_keys(&[("font_size", format!("{next:.2}"))]) { + if let Err(err) = pebrel_settings::persist_keys(&[("font_size", format!("{next:.2}"))]) { crate::gpui_shell::try_write_stderr(format_args!( "[nebula:gpui] failed to persist font size: {err}" )); diff --git a/nebula_app/src/gpui_shell/terminal/view/activity_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/activity_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs index 0d6d61dac..45d4a5cb0 100644 --- a/nebula_app/src/gpui_shell/terminal/view/activity_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/activity_tests.rs @@ -28,8 +28,8 @@ fn remote_hook(session: &str, name: &str, process: &str, sequence: u64) -> AiHoo #[gpui::test] fn pi_redraw_anchor_follows_accepted_hook_and_command_lifecycle(cx: &mut TestAppContext) { - use nebula_terminal::term::test::TermSize; - use nebula_terminal::vte::ansi::Processor; + use pebrel_terminal::term::test::TermSize; + use pebrel_terminal::vte::ansi::Processor; let (view, window, _) = open(cx); view.update(window, |view, cx| { @@ -42,7 +42,7 @@ fn pi_redraw_anchor_follows_accepted_hook_and_command_lifecycle(cx: &mut TestApp let check = |view: &mut TerminalView, expected: usize| { let mut term = view.session.as_ref().unwrap().term.lock(); term.resize(TermSize::new(60, 5)); - let mut stream = Processor::::default(); + let mut stream = Processor::::default(); let text = (0..12).map(|n| format!("ROW_{n:03}")).collect::>().join("\r\n"); let frame = format!("\x1b[?2026h\x1b[2J\x1b[H\x1b[3J{text}\x1b[?2026l"); term.scroll_display(Scroll::Bottom); diff --git a/nebula_app/src/gpui_shell/terminal/view/agent_activity.rs b/pebrel_app/src/gpui_shell/terminal/view/agent_activity.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/agent_activity.rs rename to pebrel_app/src/gpui_shell/terminal/view/agent_activity.rs index a54c5ad97..ba1be3b72 100644 --- a/nebula_app/src/gpui_shell/terminal/view/agent_activity.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/agent_activity.rs @@ -1,8 +1,8 @@ //! GPUI adapter for the shared Agent lifecycle: route evidence, project effects. use gpui::{Context, EventEmitter as _}; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::index::{Column, Line, Point}; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::index::{Column, Line, Point}; use crate::ai_agents::{AgentKind, AgentStatus, AgentStatusSource}; use crate::ai_hook::{AiHookEvent, AiHookKind}; diff --git a/nebula_app/src/gpui_shell/terminal/view/application_mouse.rs b/pebrel_app/src/gpui_shell/terminal/view/application_mouse.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/application_mouse.rs rename to pebrel_app/src/gpui_shell/terminal/view/application_mouse.rs index 3aca364c8..08da5d58b 100644 --- a/nebula_app/src/gpui_shell/terminal/view/application_mouse.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/application_mouse.rs @@ -1,8 +1,8 @@ //! A left-button press owns its motion/release, even outside the pane's hitbox. //! Text ranges and edits remain owned by the application reading the PTY. use super::*; -use nebula_terminal::Term; -use nebula_terminal::sync::FairMutex; +use pebrel_terminal::Term; +use pebrel_terminal::sync::FairMutex; use std::sync::Weak; #[cfg(all(test, feature = "gpui-test-support"))] diff --git a/nebula_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs index c9a0015a9..b8d9b1137 100644 --- a/nebula_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/application_mouse/native_tests.rs @@ -42,7 +42,7 @@ fn native_application_mouse_editor() { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); crate::gpui_shell::theme::apply_chrome_theme(cx); let mut terminal = None; let handle = cx.open_window(WindowOptions { @@ -55,7 +55,7 @@ fn native_application_mouse_editor() { let view = cx.new(|cx| TerminalView::new( 9900, (100, 35), TerminalLaunch::Local { cwd: Some(output.clone()), - shell: Some(nebula_terminal::tty::Shell::new(launch.program, launch.args)), + shell: Some(pebrel_terminal::tty::Shell::new(launch.program, launch.args)), shell_name: None, }, window, cx, )); @@ -93,7 +93,7 @@ fn native_application_mouse_editor() { let mut text = String::new(); for column in 0..term.columns() { let cell = &term.grid()[Line(row as i32)][Column(column)]; - if cell.flags.contains(nebula_terminal::term::cell::Flags::WIDE_CHAR_SPACER) { + if cell.flags.contains(pebrel_terminal::term::cell::Flags::WIDE_CHAR_SPACER) { continue; } text.push(cell.c); diff --git a/nebula_app/src/gpui_shell/terminal/view/broadcast.rs b/pebrel_app/src/gpui_shell/terminal/view/broadcast.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/broadcast.rs rename to pebrel_app/src/gpui_shell/terminal/view/broadcast.rs index 2c18aa9e9..dab9fb9cb 100644 --- a/nebula_app/src/gpui_shell/terminal/view/broadcast.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/broadcast.rs @@ -16,7 +16,7 @@ //! 时,同一个方向键的正确字节序列根本不同;照搬会往其中一个 pane 里灌乱码。 use gpui::Context; -use nebula_terminal::term::TermMode; +use pebrel_terminal::term::TermMode; use super::super::keymap; use super::{TerminalView, TerminalViewEvent}; diff --git a/nebula_app/src/gpui_shell/terminal/view/completion.rs b/pebrel_app/src/gpui_shell/terminal/view/completion.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/completion.rs rename to pebrel_app/src/gpui_shell/terminal/view/completion.rs index 92bd1a498..ab814a022 100644 --- a/nebula_app/src/gpui_shell/terminal/view/completion.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/completion.rs @@ -2,7 +2,7 @@ use super::{TerminalView, TerminalViewEvent, suggest}; use gpui::{AppContext as _, Context, EventEmitter as _}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::term::TermMode; impl TerminalView { pub(super) fn invalidate_completion_history(&mut self, cx: &mut Context) { @@ -71,7 +71,7 @@ impl TerminalView { let term = session.term.lock(); let cursor = term.grid().cursor.point; let line = self.suggest.completion_prefix_from_raw_grid(&term, cursor)?; - let point = nebula_terminal::term::point_to_viewport_from( + let point = pebrel_terminal::term::point_to_viewport_from( term.viewport_origin_for(self.rows), cursor, )?; diff --git a/nebula_app/src/gpui_shell/terminal/view/completion_native_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/completion_native_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/completion_native_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/completion_native_tests.rs index e5ec83288..5e722f620 100644 --- a/nebula_app/src/gpui_shell/terminal/view/completion_native_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/completion_native_tests.rs @@ -100,7 +100,7 @@ fn run_native_completion_fixture(editor_only: bool) { assert!(!output.join("result.json").exists(), "use a fresh QA directory"); if demo.is_some() { // Powerline 由 shell 读取共享持久化设置;只写本次录制的隔离配置。 - nebula_settings::persist_keys(&[("powerline", "1".to_owned())]).unwrap(); + pebrel_settings::persist_keys(&[("powerline", "1".to_owned())]).unwrap(); } let repository = crate::git_completion::tests::repository(); for name in @@ -252,7 +252,7 @@ fn run_native_completion_fixture(editor_only: bool) { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.ghost = true; if demo.is_some() { settings.font_size_px = 18.0; diff --git a/nebula_app/src/gpui_shell/terminal/view/completion_native_tests/editor.rs b/pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/editor.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/completion_native_tests/editor.rs rename to pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/editor.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs b/pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs rename to pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs index 570946f2b..f4a6dc28d 100644 --- a/nebula_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/completion_native_tests/remote.rs @@ -30,7 +30,7 @@ fn remote_editor_completion_native_shell_end_to_end() { let launch = match fixture.route.as_str() { "wsl" => TerminalLaunch::Local { cwd: Some(fixture.host_cwd.clone()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec![ "--distribution".into(), @@ -61,7 +61,7 @@ fn remote_editor_completion_native_shell_end_to_end() { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.ghost = true; cx.set_global(settings); crate::gpui_shell::theme::apply_chrome_theme(cx); diff --git a/nebula_app/src/gpui_shell/terminal/view/confirmation.rs b/pebrel_app/src/gpui_shell/terminal/view/confirmation.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/confirmation.rs rename to pebrel_app/src/gpui_shell/terminal/view/confirmation.rs index e1d1b372b..645ae58b1 100644 --- a/nebula_app/src/gpui_shell/terminal/view/confirmation.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/confirmation.rs @@ -136,7 +136,7 @@ mod tests { use super::*; use crate::gpui_shell::terminal::view::startup_tests::{feed, open}; use gpui::TestAppContext; - use nebula_terminal::event_loop::Msg; + use pebrel_terminal::event_loop::Msg; use std::time::Duration; fn waiting( @@ -146,7 +146,7 @@ mod tests { session: &str, cx: &mut Context, ) { - view.session.as_ref().unwrap().term.lock().set_options(nebula_terminal::term::Config { + view.session.as_ref().unwrap().term.lock().set_options(pebrel_terminal::term::Config { kitty_keyboard: true, ..Default::default() }); @@ -228,7 +228,7 @@ mod tests { view.update(window, |view, cx| { waiting(view, "codex", "Question 1/1 (1 unanswered)\nChoose a scope.\n› 1. Current\n 2. All\ntab to add notes | enter to submit answer | esc to interrupt", "confirmation-test-numbered", cx); feed(view, b"\x1b[>10u"); - assert!(view.term_mode().contains(nebula_terminal::term::TermMode::REPORT_ALL_KEYS_AS_ESC)); + assert!(view.term_mode().contains(pebrel_terminal::term::TermMode::REPORT_ALL_KEYS_AS_ESC)); let request = view.capture_confirmation().unwrap(); assert_eq!(request.choices, ["Current", "All"]); assert!(view.answer_choice(request.id, 1, cx)); diff --git a/nebula_app/src/gpui_shell/terminal/view/conversation.rs b/pebrel_app/src/gpui_shell/terminal/view/conversation.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/conversation.rs rename to pebrel_app/src/gpui_shell/terminal/view/conversation.rs index f357eb07f..118d039ab 100644 --- a/nebula_app/src/gpui_shell/terminal/view/conversation.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/conversation.rs @@ -179,7 +179,7 @@ impl TerminalView { #[cfg(test)] mod tests { use super::*; - use nebula_terminal::term::TermMode; + use pebrel_terminal::term::TermMode; #[test] fn conversation_projection_keeps_native_question_identity_and_single_key_semantics() { diff --git a/nebula_app/src/gpui_shell/terminal/view/cursor.rs b/pebrel_app/src/gpui_shell/terminal/view/cursor.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/cursor.rs rename to pebrel_app/src/gpui_shell/terminal/view/cursor.rs index a78b5d68b..d107cbcfa 100644 --- a/nebula_app/src/gpui_shell/terminal/view/cursor.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/cursor.rs @@ -2,8 +2,8 @@ use super::super::cursor_motion::{CursorMotion, Position}; use super::*; -use nebula_terminal::render::CursorSnapshot; -use nebula_terminal::vte::ansi::CursorShape; +use pebrel_terminal::render::CursorSnapshot; +use pebrel_terminal::vte::ansi::CursorShape; use std::time::{Duration, Instant}; // PSReadLine hides the host cursor while repainting each input echo. Preserve @@ -85,7 +85,7 @@ impl TerminalView { cx: &mut Context, ) -> Option { let enabled = cx.try_global::().is_some_and(|settings| { - settings.cursor_motion == nebula_settings::CursorMotion::Smooth + settings.cursor_motion == pebrel_settings::CursorMotion::Smooth }) && self.output_visible && at_bottom && !cx.reduce_motion() diff --git a/nebula_app/src/gpui_shell/terminal/view/cursor/native_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/cursor/native_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/cursor/native_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/cursor/native_tests.rs index 0b783552b..db9f0f1d3 100644 --- a/nebula_app/src/gpui_shell/terminal/view/cursor/native_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/cursor/native_tests.rs @@ -40,8 +40,8 @@ fn native_cursor_frames_interpolate_and_settle_in_one_and_four_panes() { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); - settings.cursor_motion = nebula_settings::CursorMotion::Smooth; + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); + settings.cursor_motion = pebrel_settings::CursorMotion::Smooth; cx.set_global(settings); crate::gpui_shell::theme::apply_chrome_theme(cx); let mut terminals = Vec::new(); @@ -61,7 +61,7 @@ fn native_cursor_frames_interpolate_and_settle_in_one_and_four_panes() { 9000 + index, (80, 24), TerminalLaunch::Local { cwd: Some(output.clone()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), shell_name: None, diff --git a/nebula_app/src/gpui_shell/terminal/view/cursor/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/cursor/tests.rs similarity index 95% rename from nebula_app/src/gpui_shell/terminal/view/cursor/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/cursor/tests.rs index aea1af4bf..86dd7a9c9 100644 --- a/nebula_app/src/gpui_shell/terminal/view/cursor/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/cursor/tests.rs @@ -1,7 +1,7 @@ use super::super::startup_tests::{feed, open}; use super::*; use gpui::TestAppContext; -use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; +use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; fn capture(view: &TerminalView) -> RenderSnapshot { RenderSnapshot::capture( @@ -29,7 +29,7 @@ fn cursor_motion_hot_applies_without_replacing_the_session_or_logical_cursor( window.update(|window, cx| { view.update(cx, |view, cx| { let term = view.session.as_ref().unwrap().term.clone(); - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; view.apply_settings(cx); let before = capture(view); let shape = before.cursor.as_ref().unwrap().shape; @@ -48,7 +48,7 @@ fn cursor_motion_hot_applies_without_replacing_the_session_or_logical_cursor( ); assert!(view.cursor_animation.motion.active()); assert_eq!(capture(view).cursor.unwrap().col, 4); - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Off; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Off; view.apply_settings(cx); assert_eq!( view.visual_cursor(snap.cursor.as_ref(), 4, g, true, window, cx), @@ -67,7 +67,7 @@ fn cursor_motion_resets_for_long_hide_scrolled_reduced_motion_and_changed_geomet let (view, window, _) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; let mut snap = capture(view); let mut g = geometry(snap.cursor.as_ref().unwrap().shape); let cursor = snap.cursor.as_mut().unwrap(); @@ -115,7 +115,7 @@ fn psreadline_hidden_repaint_preserves_typing_and_backspace_motion(cx: &mut Test let (view, window, _) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; feed(view, b"QA> "); let snap = capture(view); let g = geometry(snap.cursor.as_ref().unwrap().shape); @@ -167,7 +167,7 @@ fn hidden_cursor_stops_frame_demand_and_invalidates_changed_surface(cx: &mut Tes let (view, window, _) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; let snap = capture(view); let g = geometry(snap.cursor.as_ref().unwrap().shape); view.visual_cursor(snap.cursor.as_ref(), 0, g, true, window, cx); @@ -200,7 +200,7 @@ fn blink_phase_does_not_reset_motion_and_frame_requests_are_single_flight(cx: &m let (view, window, _) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; let snap = capture(view); let g = geometry(snap.cursor.as_ref().unwrap().shape); view.visual_cursor(snap.cursor.as_ref(), 0, g, true, window, cx); @@ -226,7 +226,7 @@ fn negotiated_key_protocols_keep_one_bounded_left_permit(cx: &mut TestAppContext let (view, window, _) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { - cx.global_mut::().cursor_motion = nebula_settings::CursorMotion::Smooth; + cx.global_mut::().cursor_motion = pebrel_settings::CursorMotion::Smooth; let snapshot = capture(view); let g = geometry(snapshot.cursor.as_ref().unwrap().shape); let key = gpui::Keystroke::parse("left").unwrap(); diff --git a/nebula_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs index b69d505a3..5362c4918 100644 --- a/nebula_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/cursor/typing_tests.rs @@ -34,8 +34,8 @@ function global:prompt { 'QA> ' } crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); - settings.cursor_motion = nebula_settings::CursorMotion::Smooth; + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); + settings.cursor_motion = pebrel_settings::CursorMotion::Smooth; cx.set_global(settings); crate::gpui_shell::theme::apply_chrome_theme(cx); let mut terminal = None; @@ -56,7 +56,7 @@ function global:prompt { 'QA> ' } (80, 24), TerminalLaunch::Local { cwd: Some(output.clone()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pwsh.exe".into(), vec![ "-NoLogo".into(), diff --git a/nebula_app/src/gpui_shell/terminal/view/cwd_report.rs b/pebrel_app/src/gpui_shell/terminal/view/cwd_report.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/cwd_report.rs rename to pebrel_app/src/gpui_shell/terminal/view/cwd_report.rs index 03b5d182d..0119418b1 100644 --- a/nebula_app/src/gpui_shell/terminal/view/cwd_report.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/cwd_report.rs @@ -1,6 +1,6 @@ //! Apply directory metadata without changing the reported filesystem path. -use nebula_terminal::event::Event; +use pebrel_terminal::event::Event; pub(super) fn apply(current: &mut String, event: &Event) -> bool { let reported = match event { diff --git a/nebula_app/src/gpui_shell/terminal/view/editor.rs b/pebrel_app/src/gpui_shell/terminal/view/editor.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/editor.rs rename to pebrel_app/src/gpui_shell/terminal/view/editor.rs index 5f9f54596..828560000 100644 --- a/nebula_app/src/gpui_shell/terminal/view/editor.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/editor.rs @@ -343,8 +343,8 @@ mod tests { fn posix_editor_query_keeps_its_bytes_under_win32_input_mode(cx: &mut gpui::TestAppContext) { let (view, window, _) = super::startup_tests::open(cx); view.update(window, |view, _| { - let mut parser = nebula_terminal::vte::ansi::Processor::< - nebula_terminal::vte::ansi::StdSyncHandler, + let mut parser = pebrel_terminal::vte::ansi::Processor::< + pebrel_terminal::vte::ansi::StdSyncHandler, >::default(); parser.advance(&mut *view.session.as_ref().unwrap().term.lock(), b"\x1b[?9001h"); assert!(view.term_mode().contains(TermMode::WIN32_INPUT_MODE)); diff --git a/nebula_app/src/gpui_shell/terminal/view/image_paste.rs b/pebrel_app/src/gpui_shell/terminal/view/image_paste.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/image_paste.rs rename to pebrel_app/src/gpui_shell/terminal/view/image_paste.rs index 0d3ab881c..c421eab95 100644 --- a/nebula_app/src/gpui_shell/terminal/view/image_paste.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/image_paste.rs @@ -97,7 +97,7 @@ impl TerminalView { return; } let lines = paste_line_count(&text); - if nebula_settings::RuntimeSettings::load().multiline_paste_confirm + if pebrel_settings::RuntimeSettings::load().multiline_paste_confirm && paste_needs_confirmation(&text, self.term_mode()) { self.confirm_paste(text, lines, window, cx); @@ -232,7 +232,7 @@ impl TerminalView { window: &mut Window, cx: &mut Context, ) { - use nebula_terminal::term::TermMode; + use pebrel_terminal::term::TermMode; let language = ui_language(); let runs_line_by_line = !self.term_mode().contains(TermMode::BRACKETED_PASTE); @@ -283,7 +283,7 @@ impl TerminalView { ) .on_ok(move |_, _window, cx| { if persist_state.load(std::sync::atomic::Ordering::Relaxed) { - let _ = nebula_settings::persist_keys(&[( + let _ = pebrel_settings::persist_keys(&[( "multiline_paste_confirm", "0".to_owned(), )]); diff --git a/nebula_app/src/gpui_shell/terminal/view/layout.rs b/pebrel_app/src/gpui_shell/terminal/view/layout.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/layout.rs rename to pebrel_app/src/gpui_shell/terminal/view/layout.rs index 937047523..586612466 100644 --- a/nebula_app/src/gpui_shell/terminal/view/layout.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/layout.rs @@ -152,14 +152,14 @@ impl TerminalView { /// 的网格。UI 线程自己上锁 resize 就绕过了这道流边界保护。 fn resize_grid_only(&mut self, viewport: TerminalViewport) { let Some(session) = &self.session else { return }; - let mut notifier = nebula_terminal::event_loop::Notifier(session.notifier.0.clone()); + let mut notifier = pebrel_terminal::event_loop::Notifier(session.notifier.0.clone()); notifier.on_resize_grid(viewport.window_size()); } /// 只把 cell 像素尺寸告诉字节流,不动 conhost、不 reflow、不去抖。 - fn announce_cell_metrics(&mut self, window_size: nebula_terminal::event::WindowSize) { + fn announce_cell_metrics(&mut self, window_size: pebrel_terminal::event::WindowSize) { let Some(session) = &self.session else { return }; - let mut notifier = nebula_terminal::event_loop::Notifier(session.notifier.0.clone()); + let mut notifier = pebrel_terminal::event_loop::Notifier(session.notifier.0.clone()); notifier.on_cell_metrics(window_size); } @@ -177,7 +177,7 @@ impl TerminalView { } if let Some(session) = &self.session { - let mut notifier = nebula_terminal::event_loop::Notifier(session.notifier.0.clone()); + let mut notifier = pebrel_terminal::event_loop::Notifier(session.notifier.0.clone()); notifier.on_resize(next); } self.window_size = next; diff --git a/nebula_app/src/gpui_shell/terminal/view/native_clipboard.rs b/pebrel_app/src/gpui_shell/terminal/view/native_clipboard.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/native_clipboard.rs rename to pebrel_app/src/gpui_shell/terminal/view/native_clipboard.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs index c908360d7..c8f5dd6f3 100644 --- a/nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests.rs @@ -149,7 +149,7 @@ fn native_clipboard_yields_to_negotiated_paste_and_foreground_modes(cx: &mut Tes let (view, window, receiver) = open(cx); view.update(window, |view, cx| { ready(view, cx); - view.session.as_ref().unwrap().term.lock().set_options(nebula_terminal::term::Config { + view.session.as_ref().unwrap().term.lock().set_options(pebrel_terminal::term::Config { kitty_keyboard: true, ..Default::default() }); diff --git a/nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs b/pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs rename to pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs index 971be8309..26c1e685e 100644 --- a/nebula_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/native_clipboard_tests/acceptance.rs @@ -234,7 +234,7 @@ fn native_clipboard_shell_end_to_end() { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.ghost = false; cx.set_global(settings); crate::gpui_shell::theme::apply_chrome_theme(cx); diff --git a/nebula_app/src/gpui_shell/terminal/view/native_cmd_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/native_cmd_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/native_cmd_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/native_cmd_tests.rs index ed4eb5ba2..b3aac4e2c 100644 --- a/nebula_app/src/gpui_shell/terminal/view/native_cmd_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/native_cmd_tests.rs @@ -1,8 +1,8 @@ //! Native CMD input comes from the marked grid, including history recall. use super::*; use gpui::TestAppContext; -use nebula_terminal::event::Event; -use nebula_terminal::event_loop::StreamProcessor; +use pebrel_terminal::event::Event; +use pebrel_terminal::event_loop::StreamProcessor; use startup_tests::{feed, open}; fn prompt_bytes(prompt: &str, input: &str) -> Vec { @@ -156,7 +156,7 @@ fn native_queued_prompt_cannot_finish_a_later_submission(cx: &mut TestAppContext view.session = Some(session); view.suggest.suggest_env = crate::display::SuggestEnv::Local; // Parse a real prompt, but hold its mailbox delivery until after Enter. - nebula_terminal::event_loop::StreamProcessor::default().feed( + pebrel_terminal::event_loop::StreamProcessor::default().feed( &mut *view.session.as_ref().unwrap().term.lock(), &proxy, b"C:\\work>\x1b]1337;SetUserVar=pebrel_cmd_prompt=MQ==\x07pause", @@ -184,7 +184,7 @@ fn native_queued_prompt_cannot_finish_a_later_submission(cx: &mut TestAppContext "queued startup prompt must not end pause" ); // A later real prompt still completes this same command without another Enter. - nebula_terminal::event_loop::StreamProcessor::default().feed( + pebrel_terminal::event_loop::StreamProcessor::default().feed( &mut *view.session.as_ref().unwrap().term.lock(), &proxy, b"\r\nC:\\work>\x1b]1337;SetUserVar=pebrel_cmd_prompt=MQ==\x07", @@ -218,7 +218,7 @@ fn native_queued_prompt_allows_fast_next_submission(cx: &mut TestAppContext) { view.runtime_send_key(crate::runtime_api::RuntimeKey::Enter, Default::default(), 1, cx) .unwrap(); let first = view.command_started; - nebula_terminal::event_loop::StreamProcessor::default().feed( + pebrel_terminal::event_loop::StreamProcessor::default().feed( &mut *view.session.as_ref().unwrap().term.lock(), &proxy, b"\r\nfirst\r\nC:\\work>\x1b]1337;SetUserVar=pebrel_cmd_prompt=MQ==\x07pause", @@ -245,7 +245,7 @@ fn native_queued_prompt_allows_fast_newline_paste(cx: &mut TestAppContext) { view.runtime_send_key(crate::runtime_api::RuntimeKey::Enter, Default::default(), 1, cx) .unwrap(); let first = view.command_started; - nebula_terminal::event_loop::StreamProcessor::default().feed( + pebrel_terminal::event_loop::StreamProcessor::default().feed( &mut *view.session.as_ref().unwrap().term.lock(), &proxy, b"\r\nfirst\r\nC:\\work>\x1b]1337;SetUserVar=pebrel_cmd_prompt=MQ==\x07", @@ -769,7 +769,7 @@ fn native_queued_prompt_survives_editing_keys(cx: &mut TestAppContext) { view.suggest.suggest_env = crate::display::SuggestEnv::Local; view.mark_command_running(); let started = view.command_started; - nebula_terminal::event_loop::StreamProcessor::default().feed( + pebrel_terminal::event_loop::StreamProcessor::default().feed( &mut *view.session.as_ref().unwrap().term.lock(), &proxy, b"C:\\work>\x1b]1337;SetUserVar=pebrel_cmd_prompt=MQ==\x07", diff --git a/nebula_app/src/gpui_shell/terminal/view/notifications.rs b/pebrel_app/src/gpui_shell/terminal/view/notifications.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/notifications.rs rename to pebrel_app/src/gpui_shell/terminal/view/notifications.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/output_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/output_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/output_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/output_tests.rs index e61d36f3e..9db1d4a4c 100644 --- a/nebula_app/src/gpui_shell/terminal/view/output_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/output_tests.rs @@ -97,9 +97,9 @@ fn hidden_output_keeps_the_latest_grid_without_notifying_observers(cx: &mut Test } assert_eq!(notifications.get(), 0, "hidden output must not invalidate chrome readers"); view.update(window, |view, cx| { - let snapshot = nebula_terminal::render::RenderSnapshot::capture( + let snapshot = pebrel_terminal::render::RenderSnapshot::capture( &view.session.as_ref().unwrap().term.lock(), - &nebula_terminal::render::SnapshotConfig { rows: 24, cols: 80 }, + &pebrel_terminal::render::SnapshotConfig { rows: 24, cols: 80 }, ); let text: String = snapshot .segments @@ -220,7 +220,7 @@ fn remote_zmodem_offer_is_cancelled_on_the_pty_and_reported_once(cx: &mut TestAp let (session, writes, mut events, proxy) = crate::gpui_shell::terminal::session::test_session_with_events(); view.session = Some(session); - let mut stream = nebula_terminal::event_loop::StreamProcessor::default(); + let mut stream = pebrel_terminal::event_loop::StreamProcessor::default(); let wire = b"rz waiting to receive.**\x18B0100000023be50\r\x8a\x11"; for chunk in wire.chunks(7) { stream.feed(&mut view.session.as_ref().unwrap().term.lock(), &proxy, chunk); @@ -235,7 +235,7 @@ fn remote_zmodem_offer_is_cancelled_on_the_pty_and_reported_once(cx: &mut TestAp _ => Vec::new(), }) .collect(); - assert_eq!(written, nebula_terminal::zmodem::ABORT_SEQUENCE.as_bytes()); + assert_eq!(written, pebrel_terminal::zmodem::ABORT_SEQUENCE.as_bytes()); }); assert_eq!(reported.get(), 1); } diff --git a/nebula_app/src/gpui_shell/terminal/view/path_drop.rs b/pebrel_app/src/gpui_shell/terminal/view/path_drop.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/path_drop.rs rename to pebrel_app/src/gpui_shell/terminal/view/path_drop.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/path_drop/ssh_upload.rs b/pebrel_app/src/gpui_shell/terminal/view/path_drop/ssh_upload.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/path_drop/ssh_upload.rs rename to pebrel_app/src/gpui_shell/terminal/view/path_drop/ssh_upload.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs index f09d86218..608ef5dd4 100644 --- a/nebula_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/path_drop/ssh_upload/tests.rs @@ -1,6 +1,6 @@ use super::*; use gpui::TestAppContext; -use nebula_terminal::event_loop::Msg; +use pebrel_terminal::event_loop::Msg; #[gpui::test] fn upload_completion_is_paste_only_and_rejects_stale_owners(cx: &mut TestAppContext) { @@ -83,7 +83,7 @@ fn visible_cancel_stops_path_insertion_and_fits_narrow_terminals(cx: &mut TestAp gpui_component::init(cx); crate::gpui_shell::terminal::init(cx); crate::gpui_shell::math_view::register(cx); - cx.set_global(crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord)); }); let (send, receive) = tokio::sync::oneshot::channel(); let (_wake, signal) = tokio::sync::mpsc::channel(1); @@ -95,7 +95,7 @@ fn visible_cancel_stops_path_insertion_and_fits_narrow_terminals(cx: &mut TestAp (80, 24), super::super::super::TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), Vec::new(), )), diff --git a/nebula_app/src/gpui_shell/terminal/view/pointer.rs b/pebrel_app/src/gpui_shell/terminal/view/pointer.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/pointer.rs rename to pebrel_app/src/gpui_shell/terminal/view/pointer.rs index b21afa139..0d14a481a 100644 --- a/nebula_app/src/gpui_shell/terminal/view/pointer.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/pointer.rs @@ -24,9 +24,9 @@ impl TerminalView { .unwrap_or((display_offset, history)); let visible = self.scrollbar_drag.is_some() || match self.scrollbar_visibility { - nebula_settings::ScrollbarVisibility::Auto => display_offset > 0, - nebula_settings::ScrollbarVisibility::Hover => self.scrollbar_hovered, - nebula_settings::ScrollbarVisibility::Always => true, + pebrel_settings::ScrollbarVisibility::Auto => display_offset > 0, + pebrel_settings::ScrollbarVisibility::Hover => self.scrollbar_hovered, + pebrel_settings::ScrollbarVisibility::Always => true, }; visible.then(|| self.scrollbar_geometry(display_offset, history)).flatten() } @@ -1170,7 +1170,7 @@ mod scrolling_tests { fn pi_wheel_pages_only_without_application_mouse_reporting() { use crate::ai_agents::AgentKind; use crate::runtime_api::RuntimeKey; - use nebula_terminal::term::TermMode; + use pebrel_terminal::term::TermMode; let mode = TermMode::ALT_SCREEN | TermMode::ALTERNATE_SCROLL; let modifiers = gpui::Modifiers::default(); for (lines, key) in [(1, RuntimeKey::PageUp), (-3, RuntimeKey::PageDown)] { @@ -1209,7 +1209,7 @@ mod scrolling_tests { cx: &mut gpui::TestAppContext, ) { use super::super::startup_tests::{feed, open}; - use nebula_terminal::event_loop::Msg; + use pebrel_terminal::event_loop::Msg; let (view, window, receiver) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { diff --git a/nebula_app/src/gpui_shell/terminal/view/pointer/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/pointer/tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/pointer/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/pointer/tests.rs index 185a44595..e0dbb32af 100644 --- a/nebula_app/src/gpui_shell/terminal/view/pointer/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/pointer/tests.rs @@ -42,7 +42,7 @@ impl Render for Probe { fn open(cx: &mut TestAppContext) -> (Entity, VisualTestContext) { cx.update(|cx| { gpui_component::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.focus_follows_mouse = false; cx.set_global(settings); }); @@ -55,7 +55,7 @@ fn open(cx: &mut TestAppContext) -> (Entity, VisualTestContext) { super::super::TerminalLaunch::Local { cwd: None, // Exercise the real terminal element without creating a shell session. - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), Vec::new(), )), @@ -601,7 +601,7 @@ fn pi_wheel_pages_remote_fullscreen_without_mouse_reporting(cx: &mut TestAppCont super::super::startup_tests::feed(view, b"\x1b[?1049h"); (receiver, proxy) }); - let mut stream = nebula_terminal::event_loop::StreamProcessor::default(); + let mut stream = pebrel_terminal::event_loop::StreamProcessor::default(); draw(&mut cx); let height = terminal.update(&mut cx, |view, _| { view.running_program = Some("pi".into()); @@ -636,7 +636,7 @@ fn pi_wheel_pages_remote_fullscreen_without_mouse_reporting(cx: &mut TestAppCont // Paging uses the negotiated encoder, including complete CSI u key events. terminal.update(&mut cx, |view, _| { - view.session.as_ref().unwrap().term.lock().set_options(nebula_terminal::term::Config { + view.session.as_ref().unwrap().term.lock().set_options(pebrel_terminal::term::Config { kitty_keyboard: true, ..Default::default() }); @@ -778,7 +778,7 @@ fn ctrl_wheel_font_zoom_toggle_gates_zoom_and_terminal_scroll(cx: &mut TestAppCo #[gpui::test] fn scrollbar_modes_keep_live_drag_visible_and_preserve_hidden_selection(cx: &mut TestAppContext) { - use nebula_settings::ScrollbarVisibility; + use pebrel_settings::ScrollbarVisibility; let (terminal, mut window) = terminal_with_history(cx); window.update(|_, cx| { @@ -870,7 +870,7 @@ fn scrollbar_modes_keep_live_drag_visible_and_preserve_hidden_selection(cx: &mut fn scrollbar_modes_never_capture_without_history_and_hover_clears_on_leave( cx: &mut TestAppContext, ) { - use nebula_settings::ScrollbarVisibility; + use pebrel_settings::ScrollbarVisibility; let (terminal, mut window, receiver) = link_fixture(cx, b"\x1b[?1000h"); terminal.update(&mut window, |view, _| view.spawn_at -= TerminalView::STARTUP_GRID_GRACE); diff --git a/nebula_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs b/pebrel_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs rename to pebrel_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs index b87b80df4..1ff8a6a5d 100644 --- a/nebula_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/pointer/tests/application_mouse.rs @@ -200,7 +200,7 @@ fn application_drag_stays_with_the_original_pane(cx: &mut TestAppContext) { cx.update(|cx| { gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut panes = Vec::new(); let mut receivers = Vec::new(); @@ -212,7 +212,7 @@ fn application_drag_stays_with_the_original_pane(cx: &mut TestAppContext) { (40, 24), super::super::super::TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), diff --git a/nebula_app/src/gpui_shell/terminal/view/pointer/tests/shell_pointer.rs b/pebrel_app/src/gpui_shell/terminal/view/pointer/tests/shell_pointer.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/pointer/tests/shell_pointer.rs rename to pebrel_app/src/gpui_shell/terminal/view/pointer/tests/shell_pointer.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/program_status.rs b/pebrel_app/src/gpui_shell/terminal/view/program_status.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/program_status.rs rename to pebrel_app/src/gpui_shell/terminal/view/program_status.rs index f0d2b1d3c..affa1c97b 100644 --- a/nebula_app/src/gpui_shell/terminal/view/program_status.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/program_status.rs @@ -1,6 +1,6 @@ //! Presentation of the core's latest OSC 7501 records. No screen-text inference. use gpui::{Context, EventEmitter as _}; -use nebula_terminal::program_status::{Records, State}; +use pebrel_terminal::program_status::{Records, State}; use super::{TerminalView, TerminalViewEvent}; use crate::runtime_api::RuntimeTaskState; diff --git a/nebula_app/src/gpui_shell/terminal/view/program_status/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/program_status/tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/program_status/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/program_status/tests.rs index 5ef75221c..3f08c9b44 100644 --- a/nebula_app/src/gpui_shell/terminal/view/program_status/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/program_status/tests.rs @@ -2,7 +2,7 @@ use super::*; use crate::gpui_shell::terminal::view::{SidebarActivity, TermEvent, startup_tests::open}; use crate::runtime_api::RuntimeAgentStateSource; use gpui::TestAppContext; -use nebula_terminal::event_loop::StreamProcessor; +use pebrel_terminal::event_loop::StreamProcessor; struct Wire { stream: StreamProcessor, diff --git a/nebula_app/src/gpui_shell/terminal/view/reading.rs b/pebrel_app/src/gpui_shell/terminal/view/reading.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/reading.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading.rs index 5c1ef1587..dfc958be7 100644 --- a/nebula_app/src/gpui_shell/terminal/view/reading.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/reading.rs @@ -5,7 +5,7 @@ use crate::gpui_shell::copy_feedback::CopyFeedback; use crate::i18n::Message; use futures::{StreamExt as _, channel::mpsc}; use gpui_component::input::{InputEvent, InputState}; -use nebula_terminal::term::reading::{ReadingPoint, ReadingSpan}; +use pebrel_terminal::term::reading::{ReadingPoint, ReadingSpan}; use std::sync::atomic::Ordering; mod chrome; mod output_hover; @@ -444,7 +444,7 @@ impl TerminalView { } } fn scroll_to_point( - term: &mut nebula_terminal::Term, + term: &mut pebrel_terminal::Term, point: ReadingPoint, epoch: u64, ) { diff --git a/nebula_app/src/gpui_shell/terminal/view/reading/chrome.rs b/pebrel_app/src/gpui_shell/terminal/view/reading/chrome.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/reading/chrome.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading/chrome.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/reading/output_hover.rs b/pebrel_app/src/gpui_shell/terminal/view/reading/output_hover.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/reading/output_hover.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading/output_hover.rs index 0dd8aca9c..8cfc092ab 100644 --- a/nebula_app/src/gpui_shell/terminal/view/reading/output_hover.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/reading/output_hover.rs @@ -2,7 +2,7 @@ use super::super::super::reading::OutputTarget; use super::*; use crate::gpui_shell::copy_feedback::COPY_FEEDBACK_TTL; -use nebula_terminal::Term; +use pebrel_terminal::Term; mod chrome; diff --git a/nebula_app/src/gpui_shell/terminal/view/reading/output_hover/chrome.rs b/pebrel_app/src/gpui_shell/terminal/view/reading/output_hover/chrome.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/reading/output_hover/chrome.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading/output_hover/chrome.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/reading/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/reading/tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/reading/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading/tests.rs index 8b1a63116..63a459575 100644 --- a/nebula_app/src/gpui_shell/terminal/view/reading/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/reading/tests.rs @@ -2,7 +2,7 @@ use super::*; use crate::gpui_shell::terminal::element::snapshot_probe; use gpui::{Entity, Modifiers, TestAppContext, VisualTestContext}; use gpui_component::{Root, WindowExt as _}; -use nebula_terminal::event_loop::StreamProcessor; +use pebrel_terminal::event_loop::StreamProcessor; use std::sync::mpsc::Receiver; mod output_hover; @@ -10,7 +10,7 @@ mod output_hover; #[test] #[ignore = "requires a native desktop and isolated PEBREL_READING_QA_DIR/config and source"] fn native_result_desktop_visual_review() { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; use std::{path::PathBuf, time::Duration}; let output = PathBuf::from(std::env::var_os("PEBREL_READING_QA_DIR").expect("QA output")); @@ -51,7 +51,7 @@ fn native_result_desktop_visual_review() { (100, 32), TerminalLaunch::Local { cwd: Some(output.clone()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -94,7 +94,7 @@ fn native_result_desktop_visual_review() { for message in receiver.try_iter() { if let Msg::Resize(size) | Msg::ResizeGrid(size) = message { terminal.read(cx).session.as_ref().unwrap().term.lock().resize( - nebula_terminal::term::test::TermSize::new( + pebrel_terminal::term::test::TermSize::new( size.num_cols as usize, size.num_lines as usize, ), @@ -125,7 +125,7 @@ fn native_result_desktop_visual_review() { #[gpui::test] fn ordinary_cat_uses_native_layout_and_keeps_following_prompt(cx: &mut TestAppContext) { - use nebula_terminal::grid::Dimensions as _; + use pebrel_terminal::grid::Dimensions as _; let (view, mut cx, _, proxy) = open(cx); let source = (0..80) .map(|i| format!("## 第 {i} 段\r\n\r\n中文与 English 正文。\r\n\r\n")) @@ -144,9 +144,9 @@ fn ordinary_cat_uses_native_layout_and_keeps_following_prompt(cx: &mut TestAppCo let term = view.session.as_ref().unwrap().term.lock(); let p = view.native_results.projection.borrow(); let rows = p.source_rows(view.grid_rows()); - let snap = nebula_terminal::render::RenderSnapshot::capture_rows( + let snap = pebrel_terminal::render::RenderSnapshot::capture_rows( &term, - &nebula_terminal::render::SnapshotConfig { + &pebrel_terminal::render::SnapshotConfig { rows: rows as u16, cols: term.columns() as u16, }, @@ -169,7 +169,7 @@ fn ordinary_cat_uses_native_layout_and_keeps_following_prompt(cx: &mut TestAppCo #[gpui::test] fn native_result_compact_hover_tools_and_copy_feedback(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let source = "fatal: missing repository\n"; let wire = format!( @@ -242,7 +242,7 @@ fn native_result_compact_hover_tools_and_copy_feedback(cx: &mut TestAppContext) #[gpui::test] fn native_result_mount_preserves_grid_and_isolates_pointer(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let packets = [ Packet::Begin { @@ -301,7 +301,7 @@ fn native_result_mount_preserves_grid_and_isolates_pointer(cx: &mut TestAppConte #[gpui::test] fn native_result_long_document_uses_terminal_scroll_and_retains_identity(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let body = (0..80).map(|i| format!("paragraph {i}\n\n")).collect::(); let wire = format!( @@ -406,7 +406,7 @@ fn native_result_long_document_uses_terminal_scroll_and_retains_identity(cx: &mu assert_eq!(mapped.line.0, 1, "prompt hit must resolve to the original VT row"); cx.update(|window, cx| { view.update(cx, |view, cx| { - use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; + use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; let snapshot = RenderSnapshot::capture( &*view.session.as_ref().unwrap().term.lock(), &SnapshotConfig { rows: view.rows as u16, cols: view.cols as u16 }, @@ -454,7 +454,7 @@ fn native_result_long_document_uses_terminal_scroll_and_retains_identity(cx: &mu #[gpui::test] fn ordinary_directory_folds_only_middle_and_keeps_original_links(cx: &mut TestAppContext) { use base64::Engine as _; - use nebula_terminal::grid::Dimensions as _; + use pebrel_terminal::grid::Dimensions as _; let (view, mut cx, receiver, proxy) = open_with_cache(cx, true); cx.simulate_resize(gpui::size(px(900.0), px(480.0))); draw(&mut cx); @@ -498,8 +498,8 @@ fn ordinary_directory_folds_only_middle_and_keeps_original_links(cx: &mut TestAp assert_eq!(cell.hyperlink().unwrap().uri(), format!("file:///fold/{i}")); assert_eq!( cell.fg, - nebula_terminal::vte::ansi::Color::Named( - nebula_terminal::vte::ansi::NamedColor::Green + pebrel_terminal::vte::ansi::Color::Named( + pebrel_terminal::vte::ansi::NamedColor::Green ) ); } @@ -660,7 +660,7 @@ fn ordinary_short_directory_keeps_every_line_without_controls(cx: &mut TestAppCo #[gpui::test] fn native_result_revalidates_live_rows_that_scroll_into_history(cx: &mut TestAppContext) { use base64::Engine as _; - use nebula_terminal::grid::Dimensions as _; + use pebrel_terminal::grid::Dimensions as _; let (view, mut cx, _, proxy) = open(cx); for column in [1, 2] { feed(&view, &mut cx, &proxy, b"\x1bc"); @@ -697,7 +697,7 @@ fn native_result_revalidates_live_rows_that_scroll_into_history(cx: &mut TestApp #[gpui::test] fn native_result_json_expands_all_rows_and_keeps_body_font(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, _, proxy) = open(cx); let source = format!( "[{}]", @@ -733,7 +733,7 @@ fn native_result_json_expands_all_rows_and_keeps_body_font(cx: &mut TestAppConte #[gpui::test] fn native_result_row_hover_notifies_inside_a_cached_parent(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; use std::{cell::Cell, rc::Rc}; let (view, mut cx, _, proxy) = open_with_cache(cx, true); @@ -779,7 +779,7 @@ fn native_result_row_hover_notifies_inside_a_cached_parent(cx: &mut TestAppConte #[gpui::test] fn native_result_table_filter_and_sort_follow_real_controls(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let source = "-rw-r--r-- 2 Oct 25 12:00 alpha-long-filename.rs\n-rw-r--r-- 10 Oct 25 12:00 beta.rs\n-rw-r--r-- 1 Oct 25 12:00 gamma.rs"; let wire = format!( @@ -854,7 +854,7 @@ fn native_result_table_filter_and_sort_follow_real_controls(cx: &mut TestAppCont #[gpui::test] fn native_result_json_tree_folds_filters_and_selects_without_pty_input(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let source = r#"{"code":200,"message":"success","data":{"tags":["vip","new-user"],"address":{"province":"广东 省 <&>","city":"深圳市","street":"科技路"},"orders":[{"orderId":"A20240101"},{"orderId":"A20240102"}]}}"#; let wire = format!( @@ -926,7 +926,7 @@ fn native_result_json_tree_folds_filters_and_selects_without_pty_input(cx: &mut #[gpui::test] fn native_result_markdown_keeps_compact_blocks_and_copies_only_code(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let code = "# a comment\nprintf 'hello'"; let source = format!( @@ -992,7 +992,7 @@ fn native_result_markdown_keeps_compact_blocks_and_copies_only_code(cx: &mut Tes #[gpui::test] fn native_result_diff_keeps_file_boundaries_copy_and_collapse(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let source = "diff --git a/src/config.ts b/src/config.ts\n--- a/src/config.ts\n+++ b/src/config.ts\n@@ -12,3 +12,4 @@\n export const output = {\n- format: 'text',\n+ format: 'auto',\n+ preserveSource: true,\n };\ndiff --git a/old b/new\nsimilarity index 100%\nrename from old\nrename to new\n"; let wire = format!( @@ -1075,7 +1075,7 @@ fn native_result_diff_keeps_file_boundaries_copy_and_collapse(cx: &mut TestAppCo #[gpui::test] fn native_result_unsupported_diff_preserves_raw_output(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, receiver, proxy) = open(cx); let source = "diff --cc file\n@@@ -1,1 -1,1 +1,1 @@@\n++new\n"; let wire = format!( @@ -1108,7 +1108,7 @@ fn native_result_unsupported_diff_preserves_raw_output(cx: &mut TestAppContext) #[gpui::test] fn native_result_eviction_releases_offscreen_parsed_state(cx: &mut TestAppContext) { - use nebula_terminal::inline_content::Packet; + use pebrel_terminal::inline_content::Packet; let (view, mut cx, _, proxy) = open(cx); let mut stream = StreamProcessor::default(); let mut first = None; @@ -1166,7 +1166,7 @@ fn open_with_cache( crate::gpui_shell::terminal::init(cx); crate::gpui_shell::math_view::register(cx); snapshot_probe::enable(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut result = None; let (_, window) = cx.add_window_view(|window, cx| { @@ -1176,7 +1176,7 @@ fn open_with_cache( (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), diff --git a/nebula_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs b/pebrel_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs rename to pebrel_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs index e2b66ea78..6ec52a4a4 100644 --- a/nebula_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/reading/tests/output_hover.rs @@ -1,8 +1,8 @@ //! 按真实结果位置hover/点击,不以直接改hover状态代替交互验收。 use super::*; use crate::gpui_shell::copy_feedback::COPY_FEEDBACK_TTL; -use nebula_terminal::term::reading::CompletedCommand; -use nebula_terminal::vte::ansi::{ClearMode, Handler as _}; +use pebrel_terminal::term::reading::CompletedCommand; +use pebrel_terminal::vte::ansi::{ClearMode, Handler as _}; #[gpui::test] fn hover_control_consumes_middle_and_right_without_terminal_gestures(cx: &mut TestAppContext) { diff --git a/nebula_app/src/gpui_shell/terminal/view/remote_activity.rs b/pebrel_app/src/gpui_shell/terminal/view/remote_activity.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/remote_activity.rs rename to pebrel_app/src/gpui_shell/terminal/view/remote_activity.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/runtime.rs b/pebrel_app/src/gpui_shell/terminal/view/runtime.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/runtime.rs rename to pebrel_app/src/gpui_shell/terminal/view/runtime.rs index fe88e1cf5..b4fa0072d 100644 --- a/nebula_app/src/gpui_shell/terminal/view/runtime.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/runtime.rs @@ -1,9 +1,9 @@ //! GPUI 终端对 Runtime API 暴露的读取、输入与任务状态边界。 use gpui::{Context, EventEmitter as _, Window, px}; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::index::{Column, Line, Point as TermPoint}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::index::{Column, Line, Point as TermPoint}; +use pebrel_terminal::term::TermMode; use super::{SidebarActivity, TerminalView, TerminalViewEvent}; @@ -961,7 +961,7 @@ impl TerminalView { session_id: session.session_id, }); if let Some(cwd) = session.cwd { - view.process_event(nebula_terminal::event::Event::CwdReport(cwd), cx); + view.process_event(pebrel_terminal::event::Event::CwdReport(cwd), cx); } view.ai_session_from_probe = true; cx.emit(TerminalViewEvent::TitleChanged); @@ -1131,7 +1131,7 @@ impl TerminalView { && !self.agent_activity.status().is_decided() { self.process_event( - nebula_terminal::event::Event::Progress { state: 0, value: None }, + pebrel_terminal::event::Event::Progress { state: 0, value: None }, cx, ); } diff --git a/nebula_app/src/gpui_shell/terminal/view/runtime/activity_probe_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/runtime/activity_probe_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/runtime/activity_probe_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/runtime/activity_probe_tests.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/session_failure.rs b/pebrel_app/src/gpui_shell/terminal/view/session_failure.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/session_failure.rs rename to pebrel_app/src/gpui_shell/terminal/view/session_failure.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/shell_pointer.rs b/pebrel_app/src/gpui_shell/terminal/view/shell_pointer.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/shell_pointer.rs rename to pebrel_app/src/gpui_shell/terminal/view/shell_pointer.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs b/pebrel_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs rename to pebrel_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs index e186b68ef..f20b75e65 100644 --- a/nebula_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/shell_pointer/layout.rs @@ -1,9 +1,9 @@ //! A verified native buffer mapped onto actual terminal cells, never prompt text guesses. -use nebula_terminal::Term; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line, Point, Side}; -use nebula_terminal::term::cell::{Cell, Flags}; +use pebrel_terminal::Term; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line, Point, Side}; +use pebrel_terminal::term::cell::{Cell, Flags}; use unicode_segmentation::UnicodeSegmentation; /// Capture the cells the user actually clicked. Readline clears and redraws its diff --git a/nebula_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs index 98e1a2c06..829f4671b 100644 --- a/nebula_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/shell_pointer/tests.rs @@ -1,12 +1,12 @@ use super::layout::{Layout, Screen}; -use nebula_terminal::Term; -use nebula_terminal::event::VoidListener; -use nebula_terminal::grid::Scroll; -use nebula_terminal::index::{Column, Line, Point, Side}; -use nebula_terminal::term::Config; -use nebula_terminal::term::cell::Flags; -use nebula_terminal::term::test::TermSize; -use nebula_terminal::vte::ansi::{Processor, StdSyncHandler}; +use pebrel_terminal::Term; +use pebrel_terminal::event::VoidListener; +use pebrel_terminal::grid::Scroll; +use pebrel_terminal::index::{Column, Line, Point, Side}; +use pebrel_terminal::term::Config; +use pebrel_terminal::term::cell::Flags; +use pebrel_terminal::term::test::TermSize; +use pebrel_terminal::vte::ansi::{Processor, StdSyncHandler}; fn feed(term: &mut Term, text: &str) { Processor::::default().advance(term, text.as_bytes()); diff --git a/nebula_app/src/gpui_shell/terminal/view/ssh_reconnect.rs b/pebrel_app/src/gpui_shell/terminal/view/ssh_reconnect.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/ssh_reconnect.rs rename to pebrel_app/src/gpui_shell/terminal/view/ssh_reconnect.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs index c9343ad4b..9a2b3d32d 100644 --- a/nebula_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/ssh_reconnect/tests.rs @@ -12,7 +12,7 @@ fn open(cx: &mut TestAppContext) -> (Entity, VisualTestContext, Re gpui_component::init(cx); crate::gpui_shell::terminal::init(cx); crate::gpui_shell::math_view::register(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut result = None; let (_, window) = cx.add_window_view(|window, cx| { @@ -22,7 +22,7 @@ fn open(cx: &mut TestAppContext) -> (Entity, VisualTestContext, Re (80, 24), super::super::TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), Vec::new(), )), diff --git a/nebula_app/src/gpui_shell/terminal/view/startup.rs b/pebrel_app/src/gpui_shell/terminal/view/startup.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/startup.rs rename to pebrel_app/src/gpui_shell/terminal/view/startup.rs index f979505ee..62934af0a 100644 --- a/nebula_app/src/gpui_shell/terminal/view/startup.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/startup.rs @@ -2,7 +2,7 @@ use super::*; -fn accepts_startup_intro(shell: Option<&nebula_terminal::tty::Shell>) -> bool { +fn accepts_startup_intro(shell: Option<&pebrel_terminal::tty::Shell>) -> bool { // 复用器的 stdin 是界面按键,不是 shell 提示符;注入欢迎命令会误触操作。 !shell.is_some_and(|shell| { shell.program().rsplit(['/', '\\']).next().is_some_and(|name| { @@ -12,7 +12,7 @@ fn accepts_startup_intro(shell: Option<&nebula_terminal::tty::Shell>) -> bool { } fn startup_history_directory( - options: &nebula_terminal::tty::Options, + options: &pebrel_terminal::tty::Options, env: &crate::display::SuggestEnv, ) -> Option { env.is_this_machine() @@ -78,7 +78,7 @@ impl TerminalView { 0.0, None, Arc::new(Palette::default()), - nebula_terminal::term::Config::default(), + pebrel_terminal::term::Config::default(), // 旧壳的出厂默认即开。 true, None, @@ -214,9 +214,9 @@ impl TerminalView { // 出生网格裁定双列/堆叠版式;bash/WSL id 走 fastfetch 回退 // 链,其余按 PowerShell 智能双列脚本。SSH 会话不注入本地 // 欢迎屏(远端 shell 有自己的首屏)。 - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); if runtime.fetch && !is_ssh && startup_intro { - use nebula_terminal::event::Notify as _; + use pebrel_terminal::event::Notify as _; let id = intro_shell_name .as_deref() .or(runtime.shell.as_deref()) @@ -230,7 +230,7 @@ impl TerminalView { crate::display::NebulaShell::PowerShell }; let notifier = - nebula_terminal::event_loop::Notifier(session.notifier.0.clone()); + pebrel_terminal::event_loop::Notifier(session.notifier.0.clone()); notifier.notify( crate::window_context::welcome::nebula_fastfetch_intro_command_for( usize::from(spawn_grid.0), @@ -460,18 +460,18 @@ mod tests { #[test] fn zellij_launch_preserves_input_for_the_multiplexer() { for program in ["zellij", "/opt/homebrew/bin/zellij", "/usr/local/bin/zellij"] { - let shell = nebula_terminal::tty::Shell::new(program.into(), vec![]); + let shell = pebrel_terminal::tty::Shell::new(program.into(), vec![]); assert!(!accepts_startup_intro(Some(&shell))); } assert!(accepts_startup_intro(None)); - let shell = nebula_terminal::tty::Shell::new("/bin/zsh".into(), vec!["-l".into()]); + let shell = pebrel_terminal::tty::Shell::new("/bin/zsh".into(), vec!["-l".into()]); assert!(accepts_startup_intro(Some(&shell))); } #[test] fn startup_history_uses_only_local_initial_directories() { let directory = tempfile::tempdir().unwrap(); - let mut options = nebula_terminal::tty::Options::default(); + let mut options = pebrel_terminal::tty::Options::default(); options.working_directory = Some(directory.path().to_path_buf()); assert_eq!( diff --git a/nebula_app/src/gpui_shell/terminal/view/startup_command.rs b/pebrel_app/src/gpui_shell/terminal/view/startup_command.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/startup_command.rs rename to pebrel_app/src/gpui_shell/terminal/view/startup_command.rs index 257939e2f..6b31cf543 100644 --- a/nebula_app/src/gpui_shell/terminal/view/startup_command.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/startup_command.rs @@ -381,8 +381,8 @@ mod prediction_tests { view.update(window, |view, cx| { let context = |program: &str| { crate::runtime_exec::PaneExecContext::from_pty_options( - &nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new(program.into(), vec![])), + &pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new(program.into(), vec![])), ..Default::default() }, ) diff --git a/nebula_app/src/gpui_shell/terminal/view/startup_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/startup_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/startup_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/startup_tests.rs index 4fbc2f3a9..a86adaf40 100644 --- a/nebula_app/src/gpui_shell/terminal/view/startup_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/startup_tests.rs @@ -1,7 +1,7 @@ use super::*; use gpui::{Entity, TestAppContext, VisualTestContext, size}; use gpui_component::Root; -use nebula_terminal::event::Event; +use pebrel_terminal::event::Event; use std::sync::mpsc::Receiver; // Keep the terminal entity off the layout tree so tests control each viewport @@ -71,7 +71,7 @@ fn open_at( ) -> (Entity, &mut VisualTestContext, Receiver) { cx.update(|cx| { gpui_component::init(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); }); let mut result = None; let (_, window) = cx.add_window_view(|window, cx| { @@ -81,7 +81,7 @@ fn open_at( (80, 24), TerminalLaunch::Local { cwd, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -104,8 +104,8 @@ fn open_at( pub(super) fn feed(view: &mut TerminalView, bytes: &[u8]) { let mut term = view.session.as_ref().unwrap().term.lock(); - let mut parser = nebula_terminal::vte::ansi::Processor::< - nebula_terminal::vte::ansi::StdSyncHandler, + let mut parser = pebrel_terminal::vte::ansi::Processor::< + pebrel_terminal::vte::ansi::StdSyncHandler, >::default(); parser.advance(&mut *term, bytes); } @@ -180,8 +180,8 @@ fn git_completion_real_repository_reaches_all_modes_and_preserves_quoted_edits( let (view, window, receiver) = open_at(cx, Some(repository.path().to_owned())); view.update(window, |view, cx| { view.exec_context = Some(crate::runtime_exec::PaneExecContext::from_pty_options( - &nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new("pwsh".into(), vec![])), + &pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new("pwsh".into(), vec![])), working_directory: Some(repository.path().to_owned()), ..Default::default() }, @@ -264,7 +264,7 @@ fn git_completion_rejects_previous_directory_and_remote_context(cx: &mut TestApp let (view, window, _) = open_at(cx, Some(repository.path().to_owned())); view.update(window, |view, cx| { view.exec_context = Some(crate::runtime_exec::PaneExecContext::from_pty_options( - &nebula_terminal::tty::Options { + &pebrel_terminal::tty::Options { working_directory: Some(repository.path().to_owned()), ..Default::default() }, @@ -886,8 +886,8 @@ fn ligature_changes_update_all_faces_without_replacing_the_open_session(cx: &mut } } assert_eq!( - term.lock().grid()[nebula_terminal::index::Line(0)] - [nebula_terminal::index::Column(1)] + term.lock().grid()[pebrel_terminal::index::Line(0)] + [pebrel_terminal::index::Column(1)] .c, '-' ); @@ -1578,8 +1578,8 @@ fn host_administrator_scope_excludes_remote_and_wsl_shells(cx: &mut TestAppConte let (view, window, _) = open(cx); view.update(window, |view, _| { let context = |program: &str| { - crate::runtime_exec::PaneExecContext::from_pty_options(&nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new(program.into(), vec![])), + crate::runtime_exec::PaneExecContext::from_pty_options(&pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new(program.into(), vec![])), ..Default::default() }) }; @@ -1608,7 +1608,7 @@ fn host_administrator_scope_excludes_remote_and_wsl_shells(cx: &mut TestAppConte #[gpui::test] fn remote_scroll_reuses_mouse_alternate_screen_and_history_routing(cx: &mut TestAppContext) { - use nebula_terminal::vte::ansi::{Processor, StdSyncHandler}; + use pebrel_terminal::vte::ansi::{Processor, StdSyncHandler}; let (view, window, receiver) = open(cx); window.update(|window, cx| { view.update(cx, |view, cx| { diff --git a/nebula_app/src/gpui_shell/terminal/view/tab_identity.rs b/pebrel_app/src/gpui_shell/terminal/view/tab_identity.rs similarity index 100% rename from nebula_app/src/gpui_shell/terminal/view/tab_identity.rs rename to pebrel_app/src/gpui_shell/terminal/view/tab_identity.rs diff --git a/nebula_app/src/gpui_shell/terminal/view/tests.rs b/pebrel_app/src/gpui_shell/terminal/view/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/terminal/view/tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/tests.rs index dc9fc7be1..4dd79b4ae 100644 --- a/nebula_app/src/gpui_shell/terminal/view/tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/tests.rs @@ -273,7 +273,7 @@ fn cell_width_mode_matches_the_legacy_grid_rounding_contract() { assert_eq!( f32::from(typography::effective_cell_width( 10.8, - nebula_settings::CellWidthModeName::Compact, + pebrel_settings::CellWidthModeName::Compact, 1.0, 0.0, )), @@ -282,7 +282,7 @@ fn cell_width_mode_matches_the_legacy_grid_rounding_contract() { assert_eq!( f32::from(typography::effective_cell_width( 10.8, - nebula_settings::CellWidthModeName::Relaxed, + pebrel_settings::CellWidthModeName::Relaxed, 1.0, 0.0, )), @@ -291,7 +291,7 @@ fn cell_width_mode_matches_the_legacy_grid_rounding_contract() { let compact = f32::from(typography::effective_cell_width( 9.2, - nebula_settings::CellWidthModeName::Compact, + pebrel_settings::CellWidthModeName::Compact, 1.5, 0.0, )); @@ -299,7 +299,7 @@ fn cell_width_mode_matches_the_legacy_grid_rounding_contract() { let relaxed = f32::from(typography::effective_cell_width( 9.2, - nebula_settings::CellWidthModeName::Relaxed, + pebrel_settings::CellWidthModeName::Relaxed, 1.5, 0.0, )); @@ -346,7 +346,7 @@ fn maple_reading_rows_restore_2_2_2_height_without_changing_columns() { for (font_size, expected_device_height) in [(13.0, 29.0), (14.0, 31.0)] { let width = typography::effective_cell_width( font_size * 0.6, - nebula_settings::CellWidthModeName::Compact, + pebrel_settings::CellWidthModeName::Compact, 1.5, 0.0, ); diff --git a/nebula_app/src/gpui_shell/terminal/view/typography.rs b/pebrel_app/src/gpui_shell/terminal/view/typography.rs similarity index 99% rename from nebula_app/src/gpui_shell/terminal/view/typography.rs rename to pebrel_app/src/gpui_shell/terminal/view/typography.rs index 8dc7b9203..9fcf3d3bf 100644 --- a/nebula_app/src/gpui_shell/terminal/view/typography.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/typography.rs @@ -8,7 +8,7 @@ use gpui::{ App, Font, FontFeatures, FontStyle, FontWeight, Hsla, Pixels, SharedString, TextRun, Window, WindowTextSystem, px, }; -use nebula_settings::CellWidthModeName; +use pebrel_settings::CellWidthModeName; use super::Settings; use crate::font_install::{REQUIRED_FONT_FAMILY, gpui_font_with_fallbacks}; diff --git a/nebula_app/src/gpui_shell/terminal/view/typography/native_tests.rs b/pebrel_app/src/gpui_shell/terminal/view/typography/native_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/terminal/view/typography/native_tests.rs rename to pebrel_app/src/gpui_shell/terminal/view/typography/native_tests.rs index d463766d7..b22c3750d 100644 --- a/nebula_app/src/gpui_shell/terminal/view/typography/native_tests.rs +++ b/pebrel_app/src/gpui_shell/terminal/view/typography/native_tests.rs @@ -74,7 +74,7 @@ fn native_character_grid_preserves_art_text_and_viewport() { crate::gpui_shell::register_bundled_fonts(cx); gpui_component::init(cx); crate::gpui_shell::scientific_render::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); let font_size = std::env::var("PEBREL_GRID_QA_FONT_SIZE") .map(|value| value.parse::().expect("finite fixture font size")) .unwrap_or(14.0); @@ -99,7 +99,7 @@ fn native_character_grid_preserves_art_text_and_viewport() { }, |window, cx| { let view = cx.new(|cx| TerminalView::new(9000, (100, 28), TerminalLaunch::Local { cwd: Some(output.clone()), - shell: Some(nebula_terminal::tty::Shell::new("pebrel-test-missing-shell-executable".into(), vec![])), + shell: Some(pebrel_terminal::tty::Shell::new("pebrel-test-missing-shell-executable".into(), vec![])), shell_name: None, }, window, cx)); receiver = Some(view.update(cx, |view, _| { @@ -130,14 +130,14 @@ fn native_character_grid_preserves_art_text_and_viewport() { assert_eq!(size.cell_width, (view.cell_width.as_f32() * window.scale_factor()).round() as u16); assert_eq!(size.cell_height, (view.line_height.as_f32() * window.scale_factor()).round() as u16); view.session.as_ref().unwrap().term.lock().resize( - nebula_terminal::term::test::TermSize::new(size.num_cols as usize, size.num_lines as usize)); + pebrel_terminal::term::test::TermSize::new(size.num_cols as usize, size.num_lines as usize)); } } if !fed { // 先接收真实布局尺寸再送 VT,避免宽字符画在测试默认 80 列里提前换行。 terminal.update(cx, |view, cx| { view.session.as_ref().unwrap().term.lock().resize( - nebula_terminal::term::test::TermSize::new(view.cols, view.rows)); + pebrel_terminal::term::test::TermSize::new(view.cols, view.rows)); startup_tests::feed(view, vt.as_bytes()); cx.notify(); }); diff --git a/nebula_app/src/gpui_shell/theme.rs b/pebrel_app/src/gpui_shell/theme.rs similarity index 98% rename from nebula_app/src/gpui_shell/theme.rs rename to pebrel_app/src/gpui_shell/theme.rs index 4160b9965..347579c94 100644 --- a/nebula_app/src/gpui_shell/theme.rs +++ b/pebrel_app/src/gpui_shell/theme.rs @@ -7,7 +7,7 @@ use gpui_component::{ActiveTheme as _, Theme, ThemeMode}; use crate::display::color::Rgb; use crate::display::ui::theme::NebulaTheme; use crate::renderer::ui::Rgba; -use nebula_settings::ThemeName; +use pebrel_settings::ThemeName; mod custom; mod syntax; @@ -64,7 +64,7 @@ pub(crate) fn resolved_theme(cx: &App) -> std::sync::Arc { cx.try_global::() .map(|settings| settings.resolved_theme.clone()) .unwrap_or_else(|| { - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let fallback = resolve_theme_name(runtime.theme, runtime.follow_system_theme, system_is_light(cx)); std::sync::Arc::new(ResolvedTheme::from_runtime(&runtime, fallback)) @@ -109,7 +109,7 @@ pub fn effective_theme_name(cx: &App) -> ThemeName { if let Some(settings) = cx.try_global::() { return settings.resolved_theme.base_name(); } - let rt = nebula_settings::RuntimeSettings::load(); + let rt = pebrel_settings::RuntimeSettings::load(); resolve_theme_name(rt.theme, rt.follow_system_theme, system_is_light(cx)) } @@ -119,7 +119,7 @@ pub(crate) fn theme_card_persist_updates(name: ThemeName) -> [(&'static str, Str [ ("theme", name.prompt_name().to_owned()), ("follow_system_theme", "0".to_owned()), - ("background", nebula_settings::format_hex_rgb(name.term_theme().background)), + ("background", pebrel_settings::format_hex_rgb(name.term_theme().background)), ("pane_card_radius", "0".to_owned()), ("pane_card_gutter", "0".to_owned()), ("pane_card_shadow", "0".to_owned()), @@ -259,7 +259,7 @@ impl PaneCardStyle { /// [`crate::gpui_shell::config::Settings::load`]——那里同时握着**生效**主题 /// 与 `RuntimeSettings`,是唯一能正确合并两层的地方;别处自行读一遍 /// settings 就会在跟随系统主题时和 chrome 分家。 - pub fn resolve(theme: ThemeName, runtime: &nebula_settings::RuntimeSettings) -> Self { + pub fn resolve(theme: ThemeName, runtime: &pebrel_settings::RuntimeSettings) -> Self { let resolved = ResolvedTheme::builtin(theme, None); Self::resolve_for_resolved_theme(&resolved, runtime) } @@ -269,7 +269,7 @@ impl PaneCardStyle { /// to their built-in base card shape. pub fn resolve_for_resolved_theme( theme: &ResolvedTheme, - runtime: &nebula_settings::RuntimeSettings, + runtime: &pebrel_settings::RuntimeSettings, ) -> Self { let geometry = theme.card_geometry(); let radius = runtime.pane_card_radius.unwrap_or(geometry.radius); @@ -304,7 +304,7 @@ pub fn card_divider_color(cx: &App) -> Hsla { wash(resolved_skin(cx).hairline) } -/// 终端卡圆角。默认值的权威在 `nebula_settings::DEFAULT_PANE_CARD_RADIUS`, +/// 终端卡圆角。默认值的权威在 `pebrel_settings::DEFAULT_PANE_CARD_RADIUS`, /// 旧壳的 `UI_SHELL_RADIUS_LOGICAL` 引用同一个常量——两壳必须同径。 pub fn card_radius(cx: &App) -> Pixels { px(PaneCardStyle::current(cx).radius) @@ -829,7 +829,7 @@ fn apply_skin_tokens(chrome: &ResolvedTheme, cx: &mut App) { #[cfg(test)] mod tests { use super::{PaneCardStyle, resolve_theme_name, theme_card_persist_updates}; - use nebula_settings::{RawSettings, RuntimeSettings, ThemeName}; + use pebrel_settings::{RawSettings, RuntimeSettings, ThemeName}; #[cfg(feature = "gpui-test-support")] #[gpui::test] @@ -938,7 +938,7 @@ mod tests { updates[2], ( "background", - nebula_settings::format_hex_rgb(ThemeName::LinenLight.term_theme().background) + pebrel_settings::format_hex_rgb(ThemeName::LinenLight.term_theme().background) ) ); } diff --git a/nebula_app/src/gpui_shell/theme/custom.rs b/pebrel_app/src/gpui_shell/theme/custom.rs similarity index 96% rename from nebula_app/src/gpui_shell/theme/custom.rs rename to pebrel_app/src/gpui_shell/theme/custom.rs index 50e5b06b4..89670b932 100644 --- a/nebula_app/src/gpui_shell/theme/custom.rs +++ b/pebrel_app/src/gpui_shell/theme/custom.rs @@ -4,7 +4,7 @@ //! owns the small amount of derivation needed by GPUI after a snapshot has //! already been loaded and validated. -use nebula_settings::{Rgb8, RuntimeSettings, ThemeCardGeometry, ThemeDefinition, ThemeName}; +use pebrel_settings::{Rgb8, RuntimeSettings, ThemeCardGeometry, ThemeDefinition, ThemeName}; use std::sync::{Mutex, OnceLock}; use crate::display::color::Rgb; @@ -166,12 +166,12 @@ impl ResolvedTheme { } self.base.term_theme().exact.map(|colors| colors.ansi).unwrap_or_else(|| { if self.base.term_theme().is_light { - nebula_settings::LIGHT_ANSI + pebrel_settings::LIGHT_ANSI } else { // A dark theme without an explicit palette keeps the // existing user/config palette. This value is used only // by callers that need a complete snapshot. - nebula_settings::ThemeDefinition::from_builtin(self.base) + pebrel_settings::ThemeDefinition::from_builtin(self.base) .terminal .palette .ansi_colors() @@ -193,11 +193,11 @@ impl ResolvedTheme { .unwrap_or_else(|| self.base.card_geometry()) } - pub(crate) fn typography(&self) -> Option<&nebula_settings::ThemeTypography> { + pub(crate) fn typography(&self) -> Option<&pebrel_settings::ThemeTypography> { self.custom.as_ref().map(|definition| &definition.typography) } - pub(crate) fn effects(&self) -> Option<&nebula_settings::ThemeEffects> { + pub(crate) fn effects(&self) -> Option<&pebrel_settings::ThemeEffects> { self.custom.as_ref().map(|definition| &definition.effects) } @@ -205,7 +205,7 @@ impl ResolvedTheme { self.effects().and_then(|effects| effects.opacity) } - pub(crate) fn effect_blur(&self) -> Option { + pub(crate) fn effect_blur(&self) -> Option { self.effects().and_then(|effects| effects.blur) } @@ -223,7 +223,7 @@ impl ResolvedTheme { pub(crate) fn effective_blur( &self, runtime: &RuntimeSettings, - ) -> nebula_settings::BlurModeName { + ) -> pebrel_settings::BlurModeName { if runtime.blur_is_explicit() { runtime.blur } else { @@ -368,7 +368,7 @@ fn builtin_foreground(name: ThemeName) -> Rgb8 { let term = name.term_theme(); term.exact.map(|colors| colors.foreground).unwrap_or_else(|| { if term.is_light { - nebula_settings::LIGHT_FOREGROUND + pebrel_settings::LIGHT_FOREGROUND } else { let p = name.reviewed_palette(); p.foreground diff --git a/nebula_app/src/gpui_shell/theme/selection_tests.rs b/pebrel_app/src/gpui_shell/theme/selection_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/theme/selection_tests.rs rename to pebrel_app/src/gpui_shell/theme/selection_tests.rs index 97f474cc0..dd3c1b79d 100644 --- a/nebula_app/src/gpui_shell/theme/selection_tests.rs +++ b/pebrel_app/src/gpui_shell/theme/selection_tests.rs @@ -7,7 +7,7 @@ use gpui_component::{ ActiveTheme as _, Colorize as _, Root, Theme, ThemeMode, WindowExt as _, text::{TextView, TextViewState}, }; -use nebula_settings::ThemeName; +use pebrel_settings::ThemeName; use super::{ResolvedTheme, apply_skin_tokens}; @@ -35,7 +35,7 @@ fn terminal_and_settings_backgrounds_follow_live_opacity_without_dimming_text( crate::gpui_shell::wallpaper::test_install_visual_effects( cx, 1.0, - nebula_settings::BlurModeName::None, + pebrel_settings::BlurModeName::None, ); let foreground = cx.theme().foreground; for opacity in [1.0, 0.8, 0.5, 0.2, 0.0, 1.0] { @@ -130,7 +130,7 @@ fn editor_surfaces_follow_a_custom_document_palette(cx: &mut TestAppContext) { cx.update(|cx| { gpui_component::init(cx); for name in [ThemeName::MintLight, ThemeName::Nord] { - let mut definition = nebula_settings::ThemeDefinition::from_builtin(name); + let mut definition = pebrel_settings::ThemeDefinition::from_builtin(name); definition.terminal.background = if name == ThemeName::Nord { [24, 32, 45] } else { [245, 248, 242] }; let expected = definition.terminal.background; diff --git a/nebula_app/src/gpui_shell/theme/syntax.rs b/pebrel_app/src/gpui_shell/theme/syntax.rs similarity index 100% rename from nebula_app/src/gpui_shell/theme/syntax.rs rename to pebrel_app/src/gpui_shell/theme/syntax.rs diff --git a/nebula_app/src/gpui_shell/theme/transition.rs b/pebrel_app/src/gpui_shell/theme/transition.rs similarity index 100% rename from nebula_app/src/gpui_shell/theme/transition.rs rename to pebrel_app/src/gpui_shell/theme/transition.rs diff --git a/nebula_app/src/gpui_shell/theme/transition/geometry.rs b/pebrel_app/src/gpui_shell/theme/transition/geometry.rs similarity index 100% rename from nebula_app/src/gpui_shell/theme/transition/geometry.rs rename to pebrel_app/src/gpui_shell/theme/transition/geometry.rs diff --git a/nebula_app/src/gpui_shell/theme/transition/tests.rs b/pebrel_app/src/gpui_shell/theme/transition/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/theme/transition/tests.rs rename to pebrel_app/src/gpui_shell/theme/transition/tests.rs diff --git a/nebula_app/src/gpui_shell/toast.rs b/pebrel_app/src/gpui_shell/toast.rs similarity index 99% rename from nebula_app/src/gpui_shell/toast.rs rename to pebrel_app/src/gpui_shell/toast.rs index e833649ab..b76c0cef6 100644 --- a/nebula_app/src/gpui_shell/toast.rs +++ b/pebrel_app/src/gpui_shell/toast.rs @@ -385,7 +385,7 @@ pub(crate) fn reply_to_choice( if !applied && let Some(feedback) = feedback { let _ = feedback.update(cx, |_, window, cx| { let language = crate::display::LanguagePreference::from( - nebula_settings::RuntimeSettings::load().language, + pebrel_settings::RuntimeSettings::load().language, ) .resolved(); toast( @@ -514,9 +514,9 @@ mod tests { fn initialize(cx: &mut TestAppContext, enabled: bool) { cx.update(|cx| { gpui_component::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.ai_toasts = enabled; - settings.notification_duration = nebula_settings::NotificationDuration::Default; + settings.notification_duration = pebrel_settings::NotificationDuration::Default; cx.set_global(settings); init(cx); }); diff --git a/nebula_app/src/gpui_shell/toast/duration_tests.rs b/pebrel_app/src/gpui_shell/toast/duration_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/toast/duration_tests.rs rename to pebrel_app/src/gpui_shell/toast/duration_tests.rs index 010c13944..7e61d4be7 100644 --- a/nebula_app/src/gpui_shell/toast/duration_tests.rs +++ b/pebrel_app/src/gpui_shell/toast/duration_tests.rs @@ -3,7 +3,7 @@ use gpui::{ AppContext as _, BorrowAppContext as _, Context, EntityId, Render, TestAppContext, VisualTestContext, }; -use nebula_settings::NotificationDuration; +use pebrel_settings::NotificationDuration; use std::{cell::Cell, rc::Rc}; use crate::gpui_shell::config::Settings; @@ -20,7 +20,7 @@ impl Render for Empty { fn open(duration: NotificationDuration, cx: &mut TestAppContext) -> VisualTestContext { cx.update(|cx| { gpui_component::init(cx); - let mut settings = Settings::load(nebula_settings::ThemeName::Nord); + let mut settings = Settings::load(pebrel_settings::ThemeName::Nord); settings.ai_toasts = true; settings.notification_duration = duration; cx.set_global(settings); diff --git a/nebula_app/src/gpui_shell/typography.rs b/pebrel_app/src/gpui_shell/typography.rs similarity index 100% rename from nebula_app/src/gpui_shell/typography.rs rename to pebrel_app/src/gpui_shell/typography.rs diff --git a/nebula_app/src/gpui_shell/wallpaper.rs b/pebrel_app/src/gpui_shell/wallpaper.rs similarity index 96% rename from nebula_app/src/gpui_shell/wallpaper.rs rename to pebrel_app/src/gpui_shell/wallpaper.rs index 2d1b8a580..e014815cb 100644 --- a/nebula_app/src/gpui_shell/wallpaper.rs +++ b/pebrel_app/src/gpui_shell/wallpaper.rs @@ -8,7 +8,7 @@ //! - 壁纸 = 底色之上、单元格之下的一层图(旧壳 `renderer::image` 的 //! fit/alignment/透明度语义;图自身透明度独立于窗口 opacity)。 //! -//! 设置来源是共享层 `nebula_settings`(新增壁纸五键),解码结果按 +//! 设置来源是共享层 `pebrel_settings`(新增壁纸五键),解码结果按 //! (路径, 文件状态) 缓存;加载在后台串行执行,绘制只复用一张纹理。 use std::collections::HashSet; @@ -32,7 +32,7 @@ pub(crate) use tab_bar::{tab_bar_material_is_custom, tab_bar_surface_opacity}; pub(crate) mod preview; #[cfg(all(test, feature = "gpui-test-support"))] mod tests; -use nebula_settings::BlurModeName; +use pebrel_settings::BlurModeName; use crate::renderer::image::{BackgroundImageAlignment, BackgroundImageFit, wallpaper_rect}; @@ -41,13 +41,13 @@ use crate::renderer::image::{BackgroundImageAlignment, BackgroundImageFit, wallp pub struct VisualEffects { pub opacity: f32, pub blur: BlurModeName, - tab_bar_material: nebula_settings::TabBarMaterial, + tab_bar_material: pebrel_settings::TabBarMaterial, wallpaper: Option, generation: Arc, loading: bool, - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, layout: WallpaperLayout, - terminal_config: nebula_settings::TerminalEffects, + terminal_config: pebrel_settings::TerminalEffects, terminal_reload: u64, animated: animated::Animated, } @@ -89,7 +89,7 @@ impl Default for WallpaperLayout { /// Refresh prepared visual state without reading or decoding image files on the UI thread. pub fn refresh(cx: &mut App) { - let rt = nebula_settings::RuntimeSettings::load(); + let rt = pebrel_settings::RuntimeSettings::load(); let (opacity, blur) = cx .try_global::() .map(|settings| (settings.visual_opacity, settings.visual_blur)) @@ -99,7 +99,7 @@ pub fn refresh(cx: &mut App) { } fn update_wallpaper( - rt: &nebula_settings::RuntimeSettings, + rt: &pebrel_settings::RuntimeSettings, opacity: f32, blur: BlurModeName, cx: &mut App, @@ -112,10 +112,10 @@ fn update_wallpaper( wallpaper: None, generation: Arc::new(AtomicU64::new(0)), loading: false, - kind: nebula_settings::BackgroundMediaKind::Image, + kind: pebrel_settings::BackgroundMediaKind::Image, layout: WallpaperLayout::default(), - terminal_config: nebula_settings::TerminalEffects::default(), + terminal_config: pebrel_settings::TerminalEffects::default(), terminal_reload: 0, animated: animated::Animated::default(), }); @@ -361,14 +361,14 @@ fn underlay_composition(surface: f32, wallpaper: f32) -> (f32, f32) { /// (`gpui::Window::new` → `platform_window.set_background_appearance`)。 /// Mica / Mica Alt 因此从首帧就走平台原生 backdrop,不再先挂一层普通透明背景。 pub fn initial_background_appearance() -> WindowBackgroundAppearance { - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let (opacity, blur) = effective_material(&runtime); background_appearance( tab_bar::resolve_blur(blur, runtime.tab_bar_material.blur, opacity >= 1.0).0, ) } -fn effective_material(runtime: &nebula_settings::RuntimeSettings) -> (f32, BlurModeName) { +fn effective_material(runtime: &pebrel_settings::RuntimeSettings) -> (f32, BlurModeName) { let resolved = crate::gpui_shell::theme::ResolvedTheme::from_runtime(runtime, runtime.theme); (resolved.effective_opacity(runtime), resolved.effective_blur(runtime)) } @@ -664,14 +664,14 @@ pub(crate) fn test_install_visual_effects(cx: &mut App, opacity: f32, blur: Blur cx.set_global(VisualEffects { opacity, blur, - tab_bar_material: nebula_settings::TabBarMaterial::default(), + tab_bar_material: pebrel_settings::TabBarMaterial::default(), wallpaper: None, generation: Arc::new(AtomicU64::new(0)), loading: false, - kind: nebula_settings::BackgroundMediaKind::Image, + kind: pebrel_settings::BackgroundMediaKind::Image, layout: WallpaperLayout::default(), - terminal_config: nebula_settings::TerminalEffects::default(), + terminal_config: pebrel_settings::TerminalEffects::default(), terminal_reload: 0, animated: animated::Animated::default(), }); @@ -686,7 +686,7 @@ pub(super) fn video_available() -> bool { animated::video_available() } -pub(super) fn media_available(kind: nebula_settings::BackgroundMediaKind) -> bool { +pub(super) fn media_available(kind: pebrel_settings::BackgroundMediaKind) -> bool { animated::media_available(kind) } @@ -720,14 +720,14 @@ fn background_ready(effects: &VisualEffects, cx: &App) -> bool { || animated::media_ready(cx) } pub(super) fn show_video_error(cx: &mut App) { - show_media_error(nebula_settings::BackgroundMediaKind::Video, cx); + show_media_error(pebrel_settings::BackgroundMediaKind::Video, cx); } -pub(super) fn show_media_error(kind: nebula_settings::BackgroundMediaKind, cx: &mut App) { +pub(super) fn show_media_error(kind: pebrel_settings::BackgroundMediaKind, cx: &mut App) { use crate::i18n::Message; - let message = if kind == nebula_settings::BackgroundMediaKind::Image { + let message = if kind == pebrel_settings::BackgroundMediaKind::Image { Message::WallpaperLoadFailed - } else if kind == nebula_settings::BackgroundMediaKind::Gif { + } else if kind == pebrel_settings::BackgroundMediaKind::Gif { if media_available(kind) { Message::WallpaperGifFailed } else { @@ -753,7 +753,7 @@ pub(super) fn show_media_error(kind: nebula_settings::BackgroundMediaKind, cx: & }); } -pub(super) fn terminal_effect_configuration(cx: &App) -> (nebula_settings::TerminalEffects, u64) { +pub(super) fn terminal_effect_configuration(cx: &App) -> (pebrel_settings::TerminalEffects, u64) { cx.try_global::() .map(|effects| (effects.terminal_config.clone(), effects.terminal_reload)) .unwrap_or_default() diff --git a/nebula_app/src/gpui_shell/wallpaper/AGENTS.md b/pebrel_app/src/gpui_shell/wallpaper/AGENTS.md similarity index 85% rename from nebula_app/src/gpui_shell/wallpaper/AGENTS.md rename to pebrel_app/src/gpui_shell/wallpaper/AGENTS.md index b1b8de52d..21611c891 100644 --- a/nebula_app/src/gpui_shell/wallpaper/AGENTS.md +++ b/pebrel_app/src/gpui_shell/wallpaper/AGENTS.md @@ -7,5 +7,5 @@ latest-source coalescing, and owned-cache retirement on release; borrowed runtime images retain their original owner. - Bounds, alpha, and channel order must remain consistent with the shared wallpaper layout. -- Resource/lifecycle rationale: [bounded draft preview](../../../../architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md). -- Tab-region alpha and the single native-backdrop boundary: [tab bar material](../../../../architecture/notes/nebula_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md). +- Resource/lifecycle rationale: [bounded draft preview](../../../../architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-02-draft-background-preview.md). +- Tab-region alpha and the single native-backdrop boundary: [tab bar material](../../../../architecture/notes/pebrel_app/gpui_shell/wallpaper/2026-10-24-tab-bar-material.md). diff --git a/nebula_app/src/gpui_shell/wallpaper/animated.rs b/pebrel_app/src/gpui_shell/wallpaper/animated.rs similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/animated.rs rename to pebrel_app/src/gpui_shell/wallpaper/animated.rs diff --git a/nebula_app/src/gpui_shell/wallpaper/animated/av_player.rs b/pebrel_app/src/gpui_shell/wallpaper/animated/av_player.rs similarity index 91% rename from nebula_app/src/gpui_shell/wallpaper/animated/av_player.rs rename to pebrel_app/src/gpui_shell/wallpaper/animated/av_player.rs index 9d6236f0b..535b2e27a 100644 --- a/nebula_app/src/gpui_shell/wallpaper/animated/av_player.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/animated/av_player.rs @@ -15,7 +15,7 @@ use std::{path::PathBuf, time::Duration}; const MONITOR_INTERVAL: Duration = Duration::from_millis(500); #[derive(Default)] pub(in crate::gpui_shell::wallpaper) struct Animated { - effect_config: nebula_settings::BackgroundEffects, + effect_config: pebrel_settings::BackgroundEffects, source: Option, } struct Source { @@ -25,7 +25,7 @@ struct Source { } pub(in crate::gpui_shell::wallpaper) fn configure( - rt: &nebula_settings::RuntimeSettings, + rt: &pebrel_settings::RuntimeSettings, source_changed: bool, cx: &mut App, ) { @@ -35,7 +35,7 @@ pub(in crate::gpui_shell::wallpaper) fn configure( if effects_changed && rt.background_effects.preset() != "off" { show_shader_error(cx); } - if rt.background_media_kind != nebula_settings::BackgroundMediaKind::Video { + if rt.background_media_kind != pebrel_settings::BackgroundMediaKind::Video { if cx.global_mut::().animated.source.take().is_some() { cx.defer(refresh_surface_opacity); } @@ -61,7 +61,7 @@ fn restart(cx: &mut App) { Ok(source) => Some(source), Err(error) => { log::warn!("video background open failed: {error:#}"); - show_media_error(nebula_settings::BackgroundMediaKind::Video, cx); + show_media_error(pebrel_settings::BackgroundMediaKind::Video, cx); None }, }); @@ -106,7 +106,7 @@ fn tick(cx: &mut App) { Err(error) => { log::warn!("video background failed: {error:#}"); source.video.fail(); - show_media_error(nebula_settings::BackgroundMediaKind::Video, cx); + show_media_error(pebrel_settings::BackgroundMediaKind::Video, cx); cx.defer(refresh_surface_opacity); }, } @@ -133,10 +133,10 @@ pub(in crate::gpui_shell::wallpaper) fn shader_available() -> bool { false } pub(in crate::gpui_shell::wallpaper) fn media_available( - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, ) -> bool { - kind == nebula_settings::BackgroundMediaKind::Image - || (kind == nebula_settings::BackgroundMediaKind::Video && video_available()) + kind == pebrel_settings::BackgroundMediaKind::Image + || (kind == pebrel_settings::BackgroundMediaKind::Video && video_available()) } pub(in crate::gpui_shell::wallpaper) fn paint( bounds: Bounds, @@ -164,7 +164,7 @@ pub(in crate::gpui_shell::wallpaper) fn paint( log::warn!("video background placement failed: {error:#}"); source.video.fail(); cx.defer(|cx| { - show_media_error(nebula_settings::BackgroundMediaKind::Video, cx); + show_media_error(pebrel_settings::BackgroundMediaKind::Video, cx); refresh_surface_opacity(cx); cx.refresh_windows(); }); @@ -175,7 +175,7 @@ pub(in crate::gpui_shell::wallpaper) fn paint( pub(in crate::gpui_shell::wallpaper) fn reload_media(cx: &mut App) { if cx .try_global::() - .is_some_and(|effects| effects.kind == nebula_settings::BackgroundMediaKind::Video) + .is_some_and(|effects| effects.kind == pebrel_settings::BackgroundMediaKind::Video) { restart(cx); cx.refresh_windows(); diff --git a/nebula_app/src/gpui_shell/wallpaper/animated/native.rs b/pebrel_app/src/gpui_shell/wallpaper/animated/native.rs similarity index 95% rename from nebula_app/src/gpui_shell/wallpaper/animated/native.rs rename to pebrel_app/src/gpui_shell/wallpaper/animated/native.rs index 4f0676914..4dc650950 100644 --- a/nebula_app/src/gpui_shell/wallpaper/animated/native.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/animated/native.rs @@ -14,7 +14,7 @@ use crate::platform::background_media as video; #[derive(Default)] pub(in crate::gpui_shell::wallpaper) struct Animated { - effect_config: nebula_settings::BackgroundEffects, + effect_config: pebrel_settings::BackgroundEffects, #[cfg(feature = "shader-background")] shader: Option>, video: Option>, @@ -28,7 +28,7 @@ pub(in crate::gpui_shell::wallpaper) fn source_failed(cx: &App) -> bool { .is_some_and(|actor| actor.read(cx).failed()) } pub(in crate::gpui_shell::wallpaper) fn configure( - rt: &nebula_settings::RuntimeSettings, + rt: &pebrel_settings::RuntimeSettings, source_changed: bool, cx: &mut App, ) { @@ -48,7 +48,7 @@ pub(in crate::gpui_shell::wallpaper) fn configure( } } -fn restart_media(kind: nebula_settings::BackgroundMediaKind, cx: &mut App) { +fn restart_media(kind: pebrel_settings::BackgroundMediaKind, cx: &mut App) { let old = cx.global_mut::().animated.video.take(); if let Some(old) = old { let ready = old.read(cx).has_front(); @@ -87,7 +87,7 @@ pub(in crate::gpui_shell::wallpaper) fn reload_shader(cx: &mut App) { show_shader_error(cx); } -fn refresh_shader(rt: &nebula_settings::RuntimeSettings, cx: &mut App) { +fn refresh_shader(rt: &pebrel_settings::RuntimeSettings, cx: &mut App) { #[cfg(not(feature = "shader-background"))] let changed = cx.global::().animated.effect_config != rt.background_effects; cx.global_mut::().animated.effect_config = rt.background_effects.clone(); @@ -300,11 +300,11 @@ pub(in crate::gpui_shell::wallpaper) fn shader_available() -> bool { } pub(in crate::gpui_shell::wallpaper) fn media_available( - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, ) -> bool { match kind { - nebula_settings::BackgroundMediaKind::Image - | nebula_settings::BackgroundMediaKind::Video => true, - nebula_settings::BackgroundMediaKind::Gif => cfg!(feature = "gif-background"), + pebrel_settings::BackgroundMediaKind::Image + | pebrel_settings::BackgroundMediaKind::Video => true, + pebrel_settings::BackgroundMediaKind::Gif => cfg!(feature = "gif-background"), } } diff --git a/nebula_app/src/gpui_shell/wallpaper/animated/unavailable.rs b/pebrel_app/src/gpui_shell/wallpaper/animated/unavailable.rs similarity index 89% rename from nebula_app/src/gpui_shell/wallpaper/animated/unavailable.rs rename to pebrel_app/src/gpui_shell/wallpaper/animated/unavailable.rs index f6529184c..4fddb15d1 100644 --- a/nebula_app/src/gpui_shell/wallpaper/animated/unavailable.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/animated/unavailable.rs @@ -3,10 +3,10 @@ use super::super::{VisualEffects, WallpaperLayout, show_media_error, show_shader use gpui::{App, Bounds, Pixels, Window}; #[derive(Default)] pub(in crate::gpui_shell::wallpaper) struct Animated { - effect_config: nebula_settings::BackgroundEffects, + effect_config: pebrel_settings::BackgroundEffects, } pub(in crate::gpui_shell::wallpaper) fn configure( - rt: &nebula_settings::RuntimeSettings, + rt: &pebrel_settings::RuntimeSettings, source_changed: bool, cx: &mut App, ) { @@ -40,9 +40,9 @@ pub(in crate::gpui_shell::wallpaper) fn shader_available() -> bool { false } pub(in crate::gpui_shell::wallpaper) fn media_available( - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, ) -> bool { - kind == nebula_settings::BackgroundMediaKind::Image + kind == pebrel_settings::BackgroundMediaKind::Image } pub(in crate::gpui_shell::wallpaper) fn paint( _: Bounds, diff --git a/nebula_app/src/gpui_shell/wallpaper/budgets.rs b/pebrel_app/src/gpui_shell/wallpaper/budgets.rs similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/budgets.rs rename to pebrel_app/src/gpui_shell/wallpaper/budgets.rs diff --git a/nebula_app/src/gpui_shell/wallpaper/image_loader.rs b/pebrel_app/src/gpui_shell/wallpaper/image_loader.rs similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/image_loader.rs rename to pebrel_app/src/gpui_shell/wallpaper/image_loader.rs diff --git a/nebula_app/src/gpui_shell/wallpaper/playback.rs b/pebrel_app/src/gpui_shell/wallpaper/playback.rs similarity index 98% rename from nebula_app/src/gpui_shell/wallpaper/playback.rs rename to pebrel_app/src/gpui_shell/wallpaper/playback.rs index 17111a409..ea9bcdbe0 100644 --- a/nebula_app/src/gpui_shell/wallpaper/playback.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/playback.rs @@ -29,7 +29,7 @@ struct Placement { pub(super) struct Playback { path: PathBuf, - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, front: Option>, pending: Option>, cursor: Option, @@ -69,7 +69,7 @@ pub(super) fn allowed(native: isize) -> bool { impl Playback { pub fn new( path: PathBuf, - kind: nebula_settings::BackgroundMediaKind, + kind: pebrel_settings::BackgroundMediaKind, cx: &mut Context, ) -> Self { let weak = cx.weak_entity(); @@ -274,11 +274,11 @@ impl Playback { anyhow::ensure!(!cancellation.load(Ordering::Acquire), "video request cancelled"); if cursor.is_none() { cursor = Some(match kind { - nebula_settings::BackgroundMediaKind::Video => { + pebrel_settings::BackgroundMediaKind::Video => { video::Cursor::start(path, cpu, jobs, ui_thread, cancellation.clone())? }, #[cfg(feature = "gif-background")] - nebula_settings::BackgroundMediaKind::Gif => video::Cursor::start_gif( + pebrel_settings::BackgroundMediaKind::Gif => video::Cursor::start_gif( path, cpu, jobs, diff --git a/nebula_app/src/gpui_shell/wallpaper/preview.rs b/pebrel_app/src/gpui_shell/wallpaper/preview.rs similarity index 98% rename from nebula_app/src/gpui_shell/wallpaper/preview.rs rename to pebrel_app/src/gpui_shell/wallpaper/preview.rs index 9b5ccd5f1..bd7c1de64 100644 --- a/nebula_app/src/gpui_shell/wallpaper/preview.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/preview.rs @@ -2,7 +2,7 @@ use super::*; use gpui::{Context, InteractiveElement as _}; -use nebula_settings::{RuntimeSettings, ThemeEffects}; +use pebrel_settings::{RuntimeSettings, ThemeEffects}; struct PreparedImage { image: Arc, @@ -67,7 +67,7 @@ impl ImagePreview { self.cover_chrome = effects.background_image_cover_chrome.unwrap_or(runtime.background_image_cover_chrome); let kind = effects.background_kind_override().unwrap_or(runtime.background_media_kind); - self.video_source = kind == nebula_settings::BackgroundMediaKind::Video; + self.video_source = kind == pebrel_settings::BackgroundMediaKind::Video; let path = effects .background_image .as_deref() diff --git a/nebula_app/src/gpui_shell/wallpaper/shader.rs b/pebrel_app/src/gpui_shell/wallpaper/shader.rs similarity index 99% rename from nebula_app/src/gpui_shell/wallpaper/shader.rs rename to pebrel_app/src/gpui_shell/wallpaper/shader.rs index 4f1b818fe..81061af5b 100644 --- a/nebula_app/src/gpui_shell/wallpaper/shader.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/shader.rs @@ -8,7 +8,7 @@ use gpui::{ StreamImageBudgets, StreamImageCompletion, StreamImageHandle, Subscription, Task, Window, WindowId, size, }; -use nebula_settings::BackgroundEffects; +use pebrel_settings::BackgroundEffects; use raw_window_handle::{HasWindowHandle, RawWindowHandle}; use std::{ collections::HashMap, diff --git a/nebula_app/src/gpui_shell/wallpaper/shader/aurora_ribbons.wgsl b/pebrel_app/src/gpui_shell/wallpaper/shader/aurora_ribbons.wgsl similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/shader/aurora_ribbons.wgsl rename to pebrel_app/src/gpui_shell/wallpaper/shader/aurora_ribbons.wgsl diff --git a/nebula_app/src/gpui_shell/wallpaper/shader/compile.rs b/pebrel_app/src/gpui_shell/wallpaper/shader/compile.rs similarity index 98% rename from nebula_app/src/gpui_shell/wallpaper/shader/compile.rs rename to pebrel_app/src/gpui_shell/wallpaper/shader/compile.rs index 69f798bd3..5af1fc167 100644 --- a/nebula_app/src/gpui_shell/wallpaper/shader/compile.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/shader/compile.rs @@ -1,7 +1,7 @@ //! 显式启用后才在后台读取和编译;绘制阶段只接收已验证的字节码。 use crate::gpui_shell::shader_source::{self, Language, SOURCE_LIMIT}; use anyhow::{Context as _, Result, anyhow, bail, ensure}; -use nebula_settings::{BackgroundEffectRequest, BackgroundEffects}; +use pebrel_settings::{BackgroundEffectRequest, BackgroundEffects}; use std::{io::Read, sync::Arc}; #[path = "native_compile.rs"] mod native; @@ -33,7 +33,7 @@ pub(super) fn compile(settings: &BackgroundEffects) -> Result> { }, BackgroundEffectRequest::LiquidSilk => (include_str!("liquid_silk.wgsl").to_owned(), true), BackgroundEffectRequest::Wgsl(path) => { - let path = nebula_settings::settings_dir().join(path); + let path = pebrel_settings::settings_dir().join(path); language = Language::for_path(&path); let file = std::fs::File::open(path).context("open background shader")?; ensure!(file.metadata()?.is_file(), "background shader must be a regular file"); diff --git a/nebula_app/src/gpui_shell/wallpaper/shader/liquid_silk.wgsl b/pebrel_app/src/gpui_shell/wallpaper/shader/liquid_silk.wgsl similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/shader/liquid_silk.wgsl rename to pebrel_app/src/gpui_shell/wallpaper/shader/liquid_silk.wgsl diff --git a/nebula_app/src/gpui_shell/wallpaper/shader/native_compile.rs b/pebrel_app/src/gpui_shell/wallpaper/shader/native_compile.rs similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/shader/native_compile.rs rename to pebrel_app/src/gpui_shell/wallpaper/shader/native_compile.rs diff --git a/nebula_app/src/gpui_shell/wallpaper/shader/neon_vortex.wgsl b/pebrel_app/src/gpui_shell/wallpaper/shader/neon_vortex.wgsl similarity index 100% rename from nebula_app/src/gpui_shell/wallpaper/shader/neon_vortex.wgsl rename to pebrel_app/src/gpui_shell/wallpaper/shader/neon_vortex.wgsl diff --git a/nebula_app/src/gpui_shell/wallpaper/tab_bar.rs b/pebrel_app/src/gpui_shell/wallpaper/tab_bar.rs similarity index 99% rename from nebula_app/src/gpui_shell/wallpaper/tab_bar.rs rename to pebrel_app/src/gpui_shell/wallpaper/tab_bar.rs index 4435d0207..f66dbf556 100644 --- a/nebula_app/src/gpui_shell/wallpaper/tab_bar.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/tab_bar.rs @@ -68,7 +68,7 @@ mod tests { cx.update(gpui_component::init); cx.update(|cx| { test_install_visual_effects(cx, 1.0, BlurModeName::None); - cx.global_mut::().tab_bar_material = nebula_settings::TabBarMaterial { + cx.global_mut::().tab_bar_material = pebrel_settings::TabBarMaterial { opacity: Some(0.6), blur: Some(BlurModeName::Acrylic), }; diff --git a/nebula_app/src/gpui_shell/wallpaper/tests.rs b/pebrel_app/src/gpui_shell/wallpaper/tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/wallpaper/tests.rs rename to pebrel_app/src/gpui_shell/wallpaper/tests.rs index d75c7a071..cb4326a30 100644 --- a/nebula_app/src/gpui_shell/wallpaper/tests.rs +++ b/pebrel_app/src/gpui_shell/wallpaper/tests.rs @@ -66,14 +66,14 @@ fn native_underlay_composites_exactly_like_a_wallpaper_painted_above_the_surface } } -fn settings(path: Option) -> nebula_settings::RuntimeSettings { - let mut settings = nebula_settings::RuntimeSettings::load(); +fn settings(path: Option) -> pebrel_settings::RuntimeSettings { + let mut settings = pebrel_settings::RuntimeSettings::load(); settings.background_image = path.map(|path| path.to_string_lossy().into_owned()); settings.background_image_opacity = 0.38; settings.background_image_fit = Some("fill".into()); settings.background_image_alignment = Some("center".into()); settings.background_image_cover_chrome = false; - settings.background_effects = nebula_settings::BackgroundEffects::default(); + settings.background_effects = pebrel_settings::BackgroundEffects::default(); settings } diff --git a/nebula_app/src/gpui_shell/widgets.rs b/pebrel_app/src/gpui_shell/widgets.rs similarity index 100% rename from nebula_app/src/gpui_shell/widgets.rs rename to pebrel_app/src/gpui_shell/widgets.rs diff --git a/nebula_app/src/gpui_shell/widgets/segmented.rs b/pebrel_app/src/gpui_shell/widgets/segmented.rs similarity index 100% rename from nebula_app/src/gpui_shell/widgets/segmented.rs rename to pebrel_app/src/gpui_shell/widgets/segmented.rs diff --git a/nebula_app/src/gpui_shell/widgets/switch.rs b/pebrel_app/src/gpui_shell/widgets/switch.rs similarity index 100% rename from nebula_app/src/gpui_shell/widgets/switch.rs rename to pebrel_app/src/gpui_shell/widgets/switch.rs diff --git a/nebula_app/src/gpui_shell/widgets_tests.rs b/pebrel_app/src/gpui_shell/widgets_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/widgets_tests.rs rename to pebrel_app/src/gpui_shell/widgets_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace.rs b/pebrel_app/src/gpui_shell/workspace.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace.rs rename to pebrel_app/src/gpui_shell/workspace.rs index bfdb93204..f0556ca90 100644 --- a/nebula_app/src/gpui_shell/workspace.rs +++ b/pebrel_app/src/gpui_shell/workspace.rs @@ -1,13 +1,13 @@ //! Nebula 主工作区:左侧垂直 Tab 侧边栏 + 主内容区(终端 / 设置页)。 //! -//! 布局对齐 nebula_app 的产品形态(TABS 侧边栏、每项图标 + 标题 + 关闭、 +//! 布局对齐 pebrel_app 的产品形态(TABS 侧边栏、每项图标 + 标题 + 关闭、 //! 激活高亮、主区圆角卡片)。设置页与旧壳同形态:一个单例特殊 tab。 //! 终端实例由本视图直接持有;会话清理走显式 `shutdown` + //! `TerminalView::drop` 兜底。 //! //! ## 分屏 pane 生命周期合同 //! -//! - 每个 Terminal tab 持有 `panes`(实体属主)+ `tree`(`nebula_split` +//! - 每个 Terminal tab 持有 `panes`(实体属主)+ `tree`(`pebrel_split` //! 布局树,叶 = pane id)+ `focused`。不变式:panes 的 id 集合 == 树的 //! 叶集合。 //! - 关一个 pane:`tree.remove_leaf` 裁定结局——`WasRoot` 关整个 tab; @@ -43,7 +43,7 @@ use crate::gpui_shell::terminal::view::{SidebarActivity, TerminalView, TerminalV use gpui_component::Root; use gpui_component::input::InputEvent; use gpui_component::notification::Notification; -use nebula_split::{DIVIDER_GAP, HIT_SLOP, RemoveOutcome, SplitDirection, SplitNav, SplitTree}; +use pebrel_split::{DIVIDER_GAP, HIT_SLOP, RemoveOutcome, SplitDirection, SplitNav, SplitTree}; mod agents; mod closing; @@ -200,7 +200,7 @@ enum WorkspaceTab { Terminal { /// pane 实体属主(无序存储,按 id 查找)。见模块头的生命周期合同。 panes: Vec, - /// 分屏布局树(`nebula_split` 共享权威实现),叶 = pane id。 + /// 分屏布局树(`pebrel_split` 共享权威实现),叶 = pane id。 tree: SplitTree, /// 聚焦 pane:键盘输入焦点与 split/close 动作的作用对象。 focused: u64, @@ -259,7 +259,7 @@ impl WorkspaceTab { } } -/// 进行中的分隔条拖拽:目标 Split 节点以树路径寻址(`nebula_split::Divider` +/// 进行中的分隔条拖拽:目标 Split 节点以树路径寻址(`pebrel_split::Divider` /// 同语义)。指针→比例的换算依赖 [`NebulaWorkspace::split_bounds`] 记录的 /// 该节点上一帧视口矩形。 struct SplitDrag { @@ -279,9 +279,9 @@ type SplitBoundsStore = Rc), Bounds>>> /// 键:pane id(方向导航要拿所有叶子的屏幕矩形算最近邻)。 type PaneBoundsStore = Rc>>>; -/// GPUI `Bounds` → `nebula_split::Rect`(同为窗口逻辑像素坐标系)。 -fn to_split_rect(bounds: &Bounds) -> nebula_split::Rect { - nebula_split::Rect::new( +/// GPUI `Bounds` → `pebrel_split::Rect`(同为窗口逻辑像素坐标系)。 +fn to_split_rect(bounds: &Bounds) -> pebrel_split::Rect { + pebrel_split::Rect::new( f32::from(bounds.origin.x), f32::from(bounds.origin.y), f32::from(bounds.size.width), @@ -291,16 +291,16 @@ fn to_split_rect(bounds: &Bounds) -> nebula_split::Rect { #[derive(Debug, Clone, Copy, PartialEq)] struct SplitDragVisual { - divider: nebula_split::Rect, - close_area: Option, + divider: pebrel_split::Rect, + close_area: Option, } /// Compute the cheap split-drag overlay without changing either pane's layout. -/// `close_target` uses [`nebula_split::drag_close_target`] semantics: `false` +/// `close_target` uses [`pebrel_split::drag_close_target`] semantics: `false` /// is the first (left/top) child, `true` the second (right/bottom) child. fn split_drag_visual_geometry( direction: SplitDirection, - viewport: nebula_split::Rect, + viewport: pebrel_split::Rect, preview_ratio: f32, close_target: Option, ) -> SplitDragVisual { @@ -311,26 +311,26 @@ fn split_drag_visual_geometry( let split = usable * preview_ratio.clamp(0.0, 1.0); let divider = match direction { SplitDirection::LeftRight => { - nebula_split::Rect::new(viewport.x + split, viewport.y, DIVIDER_GAP, viewport.h) + pebrel_split::Rect::new(viewport.x + split, viewport.y, DIVIDER_GAP, viewport.h) }, SplitDirection::TopBottom => { - nebula_split::Rect::new(viewport.x, viewport.y + split, viewport.w, DIVIDER_GAP) + pebrel_split::Rect::new(viewport.x, viewport.y + split, viewport.w, DIVIDER_GAP) }, }; let close_area = close_target.map(|second| match (direction, second) { (SplitDirection::LeftRight, false) => { - nebula_split::Rect::new(viewport.x, viewport.y, split, viewport.h) + pebrel_split::Rect::new(viewport.x, viewport.y, split, viewport.h) }, - (SplitDirection::LeftRight, true) => nebula_split::Rect::new( + (SplitDirection::LeftRight, true) => pebrel_split::Rect::new( divider.x + divider.w, viewport.y, (viewport.w - split - divider.w).max(0.0), viewport.h, ), (SplitDirection::TopBottom, false) => { - nebula_split::Rect::new(viewport.x, viewport.y, viewport.w, split) + pebrel_split::Rect::new(viewport.x, viewport.y, viewport.w, split) }, - (SplitDirection::TopBottom, true) => nebula_split::Rect::new( + (SplitDirection::TopBottom, true) => pebrel_split::Rect::new( viewport.x, divider.y + divider.h, viewport.w, @@ -582,26 +582,26 @@ pub(super) fn reveal_in_file_manager(path: &Path) { } fn workspace_ui_language() -> crate::display::UiLanguage { - crate::display::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::display::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved() } fn new_tab_insert_index( - position: nebula_settings::NewTabPositionName, + position: pebrel_settings::NewTabPositionName, active: usize, tab_count: usize, ) -> usize { match position { - nebula_settings::NewTabPositionName::AfterCurrent if tab_count > 0 => { + pebrel_settings::NewTabPositionName::AfterCurrent if tab_count > 0 => { active.saturating_add(1).min(tab_count) }, - nebula_settings::NewTabPositionName::AfterCurrent - | nebula_settings::NewTabPositionName::End => tab_count, + pebrel_settings::NewTabPositionName::AfterCurrent + | pebrel_settings::NewTabPositionName::End => tab_count, } } -fn settings_should_fold_sidebar(tabs_position: nebula_settings::TabsPositionName) -> bool { - tabs_position == nebula_settings::TabsPositionName::Sidebar +fn settings_should_fold_sidebar(tabs_position: pebrel_settings::TabsPositionName) -> bool { + tabs_position == pebrel_settings::TabsPositionName::Sidebar } fn ssh_host_icon_ids(data_dir: &Path) -> std::collections::HashMap { @@ -633,8 +633,8 @@ pub struct NebulaWorkspace { /// 只折叠 TABS 分区,不影响整个左栏;与旧壳分区标题的 chevron 同义。 tabs_section_collapsed: bool, /// 标签栏布局:默认沿用左侧栏;Top 将同一组 tab 放进标题栏。 - tabs_position: nebula_settings::TabsPositionName, - density: nebula_settings::DensityName, + tabs_position: pebrel_settings::TabsPositionName, + density: pebrel_settings::DensityName, /// 运行时持久化的侧栏逻辑宽;布局、初始窗口和折叠动画必须同源。 sidebar_width: f32, /// 首次手动切换后才启用折叠动画:启动帧保持静止落位(旧壳同感, @@ -790,7 +790,7 @@ pub struct NebulaWorkspace { impl NebulaWorkspace { /// 所有新建标签共用同一个插入口,避免本地/SSH/设置各自解释配置。 fn insert_new_tab(&mut self, tab: WorkspaceTab) { - let position = nebula_settings::RuntimeSettings::load().new_tab_position; + let position = pebrel_settings::RuntimeSettings::load().new_tab_position; let at = new_tab_insert_index(position, self.active, self.tabs.len()); self.insert_tab_at(at, tab, TabMeta::default()); self.active = at; @@ -839,7 +839,7 @@ impl NebulaWorkspace { ) -> Self { // 启动相关设置只取样一次:本次开窗的恢复决策不能被恢复过程中的 // 文件变化拆成互相矛盾的 restore/resume 状态。 - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let sidebar_width = runtime.sidebar_width; windowing::observe_window_bounds(runtime_window_id, window, cx); let fit_default_grid = window_role == windowing::WindowRole::Regular @@ -1084,7 +1084,7 @@ impl NebulaWorkspace { LaunchSession::Default => TerminalLaunch::Local { cwd, shell: None, shell_name: None }, LaunchSession::Shell { name, program, args } => TerminalLaunch::Local { cwd, - shell: Some(nebula_terminal::tty::Shell::new(program.clone(), args.clone())), + shell: Some(pebrel_terminal::tty::Shell::new(program.clone(), args.clone())), shell_name: Some(name.clone()), }, LaunchSession::Profile { name, command, args, cwd: profile_cwd, shell_id } => { @@ -1245,7 +1245,7 @@ impl NebulaWorkspace { zoomed: false, broadcast: false, }; - let position = nebula_settings::RuntimeSettings::load().new_tab_position; + let position = pebrel_settings::RuntimeSettings::load().new_tab_position; let at = new_tab_insert_index(position, self.active, self.tabs.len()); self.insert_tab_at( at, @@ -1501,7 +1501,7 @@ impl NebulaWorkspace { } /// ctrl+alt+方向:按上一帧 pane 矩形找目标方向最近邻(垂直漂移 4 倍 - /// 惩罚,`nebula_split::nav_target` 与旧壳同式)。缩放态先退出缩放再 + /// 惩罚,`pebrel_split::nav_target` 与旧壳同式)。缩放态先退出缩放再 /// 导航,pane 矩形下一帧才有——本次导航按缩放前记录的矩形执行。 fn navigate_pane(&mut self, nav: SplitNav, window: &mut Window, cx: &mut Context) { let active = self.active; @@ -1515,12 +1515,12 @@ impl NebulaWorkspace { *zoomed = false; let focused_id = *focused; let bounds = self.pane_bounds.borrow(); - let rects: Vec<(u64, nebula_split::Rect)> = panes + let rects: Vec<(u64, pebrel_split::Rect)> = panes .iter() .filter_map(|pane| bounds.get(&pane.id).map(|b| (pane.id, to_split_rect(b)))) .collect(); drop(bounds); - if let Some(target) = nebula_split::nav_target(&rects, focused_id, nav) { + if let Some(target) = pebrel_split::nav_target(&rects, focused_id, nav) { self.focus_pane(active, target, window, cx); } else { cx.notify(); @@ -2032,22 +2032,22 @@ impl NebulaWorkspace { }, PaletteAction::ExportWorkspace => self.export_workspace(window, cx), PaletteAction::ToggleGhost => { - let value = !nebula_settings::RuntimeSettings::load().ghost; - let _ = nebula_settings::persist_keys(&[("ghost", (value as u8).to_string())]); + let value = !pebrel_settings::RuntimeSettings::load().ghost; + let _ = pebrel_settings::persist_keys(&[("ghost", (value as u8).to_string())]); self.apply_runtime_settings(cx); self.focus_active(window, cx); }, PaletteAction::CycleCompletionStyle => { - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let next = runtime.completion_style.cycle().settings_value(); - let _ = nebula_settings::persist_keys(&[("completion_style", next.to_owned())]); + let _ = pebrel_settings::persist_keys(&[("completion_style", next.to_owned())]); self.apply_runtime_settings(cx); self.focus_active(window, cx); }, PaletteAction::SelectTheme(theme) => { - let name = nebula_settings::ThemeName::from_prompt_name(theme.prompt_name()) + let name = pebrel_settings::ThemeName::from_prompt_name(theme.prompt_name()) .unwrap_or_default(); - let _ = nebula_settings::persist_keys( + let _ = pebrel_settings::persist_keys( &crate::gpui_shell::theme::theme_card_persist_updates(name), ); self.apply_runtime_settings(cx); @@ -2163,7 +2163,7 @@ impl NebulaWorkspace { } /// 递归渲染分屏树。Split 节点 = flex 容器:first 占 `relative(ratio)`、 - /// 分隔条固定 `DIVIDER_GAP`、second 吃剩余(与 `nebula_split::layout` + /// 分隔条固定 `DIVIDER_GAP`、second 吃剩余(与 `pebrel_split::layout` /// 的切割数学等价到 ±divider×ratio ≤ 2px;比例在提交时按真实视口吸附 /// 整格,不累积漂移)。节点视口与 pane 矩形经 canvas prepaint 回写 /// 帧记录,供拖拽换算与方向导航消费。 @@ -2353,8 +2353,8 @@ impl NebulaWorkspace { Some(raw) => raw, None => return, }; - let preview_ratio = nebula_split::preview_ratio(raw); - let close_target = nebula_split::drag_close_target(raw); + let preview_ratio = pebrel_split::preview_ratio(raw); + let close_target = pebrel_split::drag_close_target(raw); let Some(drag) = self.split_drag.as_mut() else { return }; let changed = (drag.preview_ratio - preview_ratio).abs() > f32::EPSILON || drag.close_target != close_target; @@ -2423,7 +2423,7 @@ impl NebulaWorkspace { SplitDirection::LeftRight => f32::from(cell_w), SplitDirection::TopBottom => f32::from(line_h), }; - Some(nebula_split::drag_ratio( + Some(pebrel_split::drag_ratio( drag.direction, to_split_rect(&viewport), DIVIDER_GAP, @@ -2455,7 +2455,7 @@ impl NebulaWorkspace { if let (Some(raw), Some(WorkspaceTab::Terminal { tree, .. })) = (raw, self.tabs.get_mut(drag.tab)) { - if let Some(squeezed_second) = nebula_split::drag_close_target(raw) { + if let Some(squeezed_second) = pebrel_split::drag_close_target(raw) { if let Some(SplitTree::Split { first, second, .. }) = tree.node_mut(&drag.path) { let child = if squeezed_second { second.as_ref() } else { first.as_ref() }; if let SplitTree::Leaf(id) = child { @@ -2489,8 +2489,8 @@ impl NebulaWorkspace { SplitDirection::LeftRight => vp.w, SplitDirection::TopBottom => vp.h, }; - *ratio = nebula_split::commit_ratio( - nebula_split::preview_ratio(raw), + *ratio = pebrel_split::commit_ratio( + pebrel_split::preview_ratio(raw), extent, DIVIDER_GAP, cell, diff --git a/nebula_app/src/gpui_shell/workspace/agents.rs b/pebrel_app/src/gpui_shell/workspace/agents.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/agents.rs rename to pebrel_app/src/gpui_shell/workspace/agents.rs index 7a97f8feb..0f99f4d87 100644 --- a/nebula_app/src/gpui_shell/workspace/agents.rs +++ b/pebrel_app/src/gpui_shell/workspace/agents.rs @@ -7,7 +7,7 @@ use std::time::Duration; use crate::i18n::{Message, UiLanguage}; use gpui::{Context, Window}; -use nebula_split::SplitTree; +use pebrel_split::SplitTree; use super::{ NebulaWorkspace, TabMeta, WorkspacePaletteAction, WorkspacePaletteRow, WorkspaceTab, @@ -369,7 +369,7 @@ impl NebulaWorkspace { zoomed: false, broadcast: false, }; - let position = nebula_settings::RuntimeSettings::load().new_tab_position; + let position = pebrel_settings::RuntimeSettings::load().new_tab_position; let at = new_tab_insert_index(position, self.active, self.tabs.len()); self.insert_tab_at( at, diff --git a/nebula_app/src/gpui_shell/workspace/closing.rs b/pebrel_app/src/gpui_shell/workspace/closing.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/closing.rs rename to pebrel_app/src/gpui_shell/workspace/closing.rs index a2074b131..55e2abfb0 100644 --- a/nebula_app/src/gpui_shell/workspace/closing.rs +++ b/pebrel_app/src/gpui_shell/workspace/closing.rs @@ -287,7 +287,7 @@ mod tests { async fn missing_identity_prompt_supports_cancel_and_explicit_close(cx: &mut TestAppContext) { cx.update(|cx| { cx.set_global(crate::gpui_shell::config::Settings::load( - nebula_settings::ThemeName::Nord, + pebrel_settings::ThemeName::Nord, )); }); let handle = cx.add_empty_window().update(|window, _| window.window_handle()); diff --git a/nebula_app/src/gpui_shell/workspace/command_manager.rs b/pebrel_app/src/gpui_shell/workspace/command_manager.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/bulk.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/bulk.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/bulk.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/bulk.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/clipboard.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/clipboard.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/clipboard.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/clipboard.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/clipboard_tests.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/clipboard_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/clipboard_tests.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/clipboard_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/group_tests.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/group_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/command_manager/group_tests.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/group_tests.rs index 24b2a68ba..ba443904e 100644 --- a/nebula_app/src/gpui_shell/workspace/command_manager/group_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/command_manager/group_tests.rs @@ -35,7 +35,7 @@ fn command_search_tracks_language_without_replacing_the_query(cx: &mut TestAppCo ] { cx.update(|window, cx| { let mut settings = - crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord); + crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord); settings.ui_language = language; cx.set_global(settings); workspace.update(cx, |_, cx| cx.notify()); diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/groups.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/groups.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/groups.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/groups.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/input_tests.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/input_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/input_tests.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/input_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs index 517d2eca0..297d22af5 100644 --- a/nebula_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/command_manager/native_paste_tests.rs @@ -24,7 +24,7 @@ fn native_command_dialog_paste() { let hub = crate::runtime_api::RuntimeHub::new(); gpui_component::init(cx); cx.set_global(crate::gpui_shell::config::Settings::load( - nebula_settings::ThemeName::Nord, + pebrel_settings::ThemeName::Nord, )); crate::gpui_shell::theme::apply_chrome_theme(cx); crate::gpui_shell::math_view::register(cx); diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/native_tests.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/native_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/command_manager/native_tests.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/native_tests.rs index 2a8c85386..be21fc9d6 100644 --- a/nebula_app/src/gpui_shell/workspace/command_manager/native_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/command_manager/native_tests.rs @@ -13,9 +13,9 @@ fn native_command_bulk_preview() { let first = saved.insert("Build project", "cargo build --locked", false).unwrap(); saved.insert("Run focused tests", "cargo test --locked", false).unwrap(); let theme = if std::env::var("PEBREL_COMMAND_QA_THEME").as_deref() == Ok("light") { - nebula_settings::ThemeName::Paper + pebrel_settings::ThemeName::Paper } else { - nebula_settings::ThemeName::Nord + pebrel_settings::ThemeName::Nord }; gpui_platform::application().with_assets(crate::gpui_shell::assets::NebulaAssets).run( move |cx| { diff --git a/nebula_app/src/gpui_shell/workspace/command_manager/rows.rs b/pebrel_app/src/gpui_shell/workspace/command_manager/rows.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/command_manager/rows.rs rename to pebrel_app/src/gpui_shell/workspace/command_manager/rows.rs diff --git a/nebula_app/src/gpui_shell/workspace/details_panel.rs b/pebrel_app/src/gpui_shell/workspace/details_panel.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/details_panel.rs rename to pebrel_app/src/gpui_shell/workspace/details_panel.rs diff --git a/nebula_app/src/gpui_shell/workspace/details_panel_tests.rs b/pebrel_app/src/gpui_shell/workspace/details_panel_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/details_panel_tests.rs rename to pebrel_app/src/gpui_shell/workspace/details_panel_tests.rs index 1723e82f4..8d5ef1729 100644 --- a/nebula_app/src/gpui_shell/workspace/details_panel_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/details_panel_tests.rs @@ -52,14 +52,14 @@ fn width_limits_keep_room_for_the_document_without_losing_preference() { #[gpui::test] fn switching_to_instant_removes_closed_panel_geometry(cx: &mut TestAppContext) { use crate::gpui_shell::config::Settings; - use nebula_settings::TabRevealName; + use pebrel_settings::TabRevealName; let directory = tempfile::tempdir().unwrap(); let path = directory.path().join("instant.md"); std::fs::write(&path, "# Heading\n\nBody").unwrap(); let (workspace, mut cx) = open(path, cx); cx.update(|_, cx| { - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); // 必须保留真实动画路径,否则系统减弱动态效果会掩盖偏好切换的问题。 cx.set_reduce_motion(false); }); @@ -260,7 +260,7 @@ fn both_sidebar_drags_commit_outside_the_window_after_non_client_moves(cx: &mut for left in [true, false] { workspace.update(&mut cx, |view, cx| { view.sidebar_collapsed = false; - view.tabs_position = nebula_settings::TabsPositionName::Sidebar; + view.tabs_position = pebrel_settings::TabsPositionName::Sidebar; view.side_panel.open = true; cx.notify(); }); @@ -398,7 +398,7 @@ fn left_sidebar_close_and_escape_share_the_right_sidebar_detent(cx: &mut TestApp }); let _ = window.draw(cx); }); - let close = point(px(nebula_settings::MIN_SIDEBAR_WIDTH - 100.0), px(200.0)); + let close = point(px(pebrel_settings::MIN_SIDEBAR_WIDTH - 100.0), px(200.0)); cx.simulate_mouse_move(close, Some(MouseButton::Left), Modifiers::default()); cx.run_until_parked(); cx.simulate_keystrokes("escape"); diff --git a/nebula_app/src/gpui_shell/workspace/documents.rs b/pebrel_app/src/gpui_shell/workspace/documents.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/documents.rs rename to pebrel_app/src/gpui_shell/workspace/documents.rs diff --git a/nebula_app/src/gpui_shell/workspace/export.rs b/pebrel_app/src/gpui_shell/workspace/export.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/export.rs rename to pebrel_app/src/gpui_shell/workspace/export.rs diff --git a/nebula_app/src/gpui_shell/workspace/file_tree.rs b/pebrel_app/src/gpui_shell/workspace/file_tree.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/file_tree.rs rename to pebrel_app/src/gpui_shell/workspace/file_tree.rs diff --git a/nebula_app/src/gpui_shell/workspace/file_tree/path_bar.rs b/pebrel_app/src/gpui_shell/workspace/file_tree/path_bar.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/file_tree/path_bar.rs rename to pebrel_app/src/gpui_shell/workspace/file_tree/path_bar.rs diff --git a/nebula_app/src/gpui_shell/workspace/file_tree/sticky.rs b/pebrel_app/src/gpui_shell/workspace/file_tree/sticky.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/file_tree/sticky.rs rename to pebrel_app/src/gpui_shell/workspace/file_tree/sticky.rs diff --git a/nebula_app/src/gpui_shell/workspace/key_actions.rs b/pebrel_app/src/gpui_shell/workspace/key_actions.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/key_actions.rs rename to pebrel_app/src/gpui_shell/workspace/key_actions.rs index 914817979..3419d1122 100644 --- a/nebula_app/src/gpui_shell/workspace/key_actions.rs +++ b/pebrel_app/src/gpui_shell/workspace/key_actions.rs @@ -64,7 +64,7 @@ impl NebulaWorkspace { ) { // Validate before activate_tab, which also leaves Settings. Missing // numbered tabs must not change the active page or its focus. - let top = self.tabs_position == nebula_settings::TabsPositionName::Top; + let top = self.tabs_position == pebrel_settings::TabsPositionName::Top; let count = if top { self.top_tab_count() } else { self.tabs.len() }; let Some(index) = action.index_for(count) else { return }; if top { @@ -82,7 +82,7 @@ impl NebulaWorkspace { window: &mut Window, cx: &mut Context, ) { - if self.tabs_position == nebula_settings::TabsPositionName::Top { + if self.tabs_position == pebrel_settings::TabsPositionName::Top { let len = self.top_tab_count(); if len == 0 { return; @@ -139,7 +139,7 @@ impl NebulaWorkspace { if (next - current).abs() < f32::EPSILON { return; } - if let Err(err) = nebula_settings::persist_keys(&[("font_size", format!("{next:.2}"))]) { + if let Err(err) = pebrel_settings::persist_keys(&[("font_size", format!("{next:.2}"))]) { crate::gpui_shell::try_write_stderr(format_args!( "[nebula:gpui] failed to persist font size: {err}" )); diff --git a/nebula_app/src/gpui_shell/workspace/keyboard_bindings.rs b/pebrel_app/src/gpui_shell/workspace/keyboard_bindings.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/keyboard_bindings.rs rename to pebrel_app/src/gpui_shell/workspace/keyboard_bindings.rs index 8a366c268..646beaec6 100644 --- a/nebula_app/src/gpui_shell/workspace/keyboard_bindings.rs +++ b/pebrel_app/src/gpui_shell/workspace/keyboard_bindings.rs @@ -337,7 +337,7 @@ fn with_user_keybindings(keymap: &gpui::Keymap, current: Vec) -> Vec impl NebulaWorkspace { pub(super) fn apply_custom_keybinds(&mut self, cx: &mut Context) { - self.update_keybinds(nebula_settings::keybind_pairs(), cx); + self.update_keybinds(pebrel_settings::keybind_pairs(), cx); } fn update_keybinds(&mut self, raw: Vec<(String, String)>, cx: &mut Context) { diff --git a/nebula_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs b/pebrel_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs rename to pebrel_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs index 91380d668..a53d63a01 100644 --- a/nebula_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/keyboard_bindings/tests.rs @@ -242,7 +242,7 @@ fn replacing_overrides_preserves_component_keys_and_foreign_registrations() { mod dispatch { use super::*; use gpui::{FocusHandle, Keystroke, TestAppContext, VisualTestContext}; - use nebula_terminal::term::TermMode; + use pebrel_terminal::term::TermMode; fn press(combo: &str, cx: &mut VisualTestContext) { let keystroke = Keystroke::parse(combo).unwrap(); @@ -375,7 +375,7 @@ mod dispatch { std::fs::write(&broken, b"not an image").unwrap(); for position in - [nebula_settings::TabsPositionName::Sidebar, nebula_settings::TabsPositionName::Top] + [pebrel_settings::TabsPositionName::Sidebar, pebrel_settings::TabsPositionName::Top] { for (path, custom) in [(&image, false), (&image, true), (&broken, false), (&broken, true)] @@ -426,7 +426,7 @@ mod dispatch { #[gpui::test] fn control_character_dispatch_reaches_the_terminal_receiver(cx: &mut TestAppContext) { - use nebula_terminal::event_loop::Msg; + use pebrel_terminal::event_loop::Msg; let (directory, workspace, mut cx) = open_workspace(0, cx); let receiver = cx.update(|window, cx| { @@ -744,13 +744,13 @@ mod dispatch { cx: &mut TestAppContext, ) { use gpui::EntityInputHandler as _; - use nebula_terminal::event_loop::Msg; - use nebula_terminal::term::test::TermSize; - use nebula_terminal::vte::ansi::{Processor, StdSyncHandler}; + use pebrel_terminal::event_loop::Msg; + use pebrel_terminal::term::test::TermSize; + use pebrel_terminal::vte::ansi::{Processor, StdSyncHandler}; let _settings_lock = crate::gpui_shell::settings_fixture::lock_theme_studio(); let _settings_bytes = crate::gpui_shell::settings_fixture::SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[("ghost", "1".into()), ("theme", "Nord".into())]).unwrap(); + pebrel_settings::persist_keys(&[("ghost", "1".into()), ("theme", "Nord".into())]).unwrap(); fn draw(cx: &mut VisualTestContext) { cx.run_until_parked(); @@ -764,7 +764,7 @@ mod dispatch { crate::gpui_shell::terminal::init(cx); crate::gpui_shell::scientific_render::init(cx); let mut settings = - crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord); + crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord); settings.ghost = true; settings.completion_style = crate::display::CompletionStyle::Inline; cx.set_global(settings); @@ -788,9 +788,9 @@ mod dispatch { }); let pane_id = terminal.read_with(&cx, |view, _| view.pane_id); for position in [ - nebula_settings::TabsPositionName::Sidebar, - nebula_settings::TabsPositionName::Top, - nebula_settings::TabsPositionName::Sidebar, + pebrel_settings::TabsPositionName::Sidebar, + pebrel_settings::TabsPositionName::Top, + pebrel_settings::TabsPositionName::Sidebar, ] { workspace.update(&mut cx, |workspace, cx| { workspace.tabs_position = position; @@ -809,7 +809,7 @@ mod dispatch { (crate::display::CompletionStyle::Inline, "inline"), (crate::display::CompletionStyle::Hybrid, "hybrid"), ] { - nebula_settings::persist_keys(&[ + pebrel_settings::persist_keys(&[ ("tabs_position", position.settings_value().into()), ("completion_style", value.into()), ]) @@ -828,7 +828,7 @@ mod dispatch { position ); } - let selector = if position == nebula_settings::TabsPositionName::Top { + let selector = if position == pebrel_settings::TabsPositionName::Top { "top-tab-0" } else { cx.update(|window, cx| { @@ -893,7 +893,7 @@ mod dispatch { fn digits_switch_real_tabs_and_focus_in_both_tab_layouts(cx: &mut TestAppContext) { let (_directory, workspace, mut cx) = open_workspace(10, cx); for position in - [nebula_settings::TabsPositionName::Sidebar, nebula_settings::TabsPositionName::Top] + [pebrel_settings::TabsPositionName::Sidebar, pebrel_settings::TabsPositionName::Top] { workspace.update(&mut cx, |workspace, cx| { workspace.tabs_position = position; @@ -980,7 +980,7 @@ mod dispatch { use crate::display::keymap; let (_directory, workspace, mut cx) = open_workspace(3, cx); for position in - [nebula_settings::TabsPositionName::Sidebar, nebula_settings::TabsPositionName::Top] + [pebrel_settings::TabsPositionName::Sidebar, pebrel_settings::TabsPositionName::Top] { workspace.update(&mut cx, |workspace, cx| { workspace.tabs_position = position; @@ -997,8 +997,8 @@ mod dispatch { let mut raw = Vec::new(); keymap::GPUI.rebind_action(&mut raw, &Action::RenameTab, "ctrl+alt+r".into()); - let saved = nebula_settings::apply_keybinds("", &raw); - let mut raw = nebula_settings::keybind_pairs_from_text(&saved); + let saved = pebrel_settings::apply_keybinds("", &raw); + let mut raw = pebrel_settings::keybind_pairs_from_text(&saved); workspace.update(&mut cx, |w, cx| w.update_keybinds(raw.clone(), cx)); press("f2", &mut cx); assert!(workspace.read_with(&cx, |w, _| w.tab_rename.is_none())); diff --git a/nebula_app/src/gpui_shell/workspace/launcher_menu.rs b/pebrel_app/src/gpui_shell/workspace/launcher_menu.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/launcher_menu.rs rename to pebrel_app/src/gpui_shell/workspace/launcher_menu.rs index 56e91653a..569aa49f5 100644 --- a/nebula_app/src/gpui_shell/workspace/launcher_menu.rs +++ b/pebrel_app/src/gpui_shell/workspace/launcher_menu.rs @@ -230,7 +230,7 @@ impl NebulaWorkspace { return; }; let language = workspace_ui_language(); - if let Err(error) = nebula_settings::persist_keys(&[("shell", id.clone())]) { + if let Err(error) = pebrel_settings::persist_keys(&[("shell", id.clone())]) { toast( window, cx, diff --git a/nebula_app/src/gpui_shell/workspace/launcher_menu/tests.rs b/pebrel_app/src/gpui_shell/workspace/launcher_menu/tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/launcher_menu/tests.rs rename to pebrel_app/src/gpui_shell/workspace/launcher_menu/tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/logos.rs b/pebrel_app/src/gpui_shell/workspace/logos.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/logos.rs rename to pebrel_app/src/gpui_shell/workspace/logos.rs diff --git a/nebula_app/src/gpui_shell/workspace/notifications.rs b/pebrel_app/src/gpui_shell/workspace/notifications.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/notifications.rs rename to pebrel_app/src/gpui_shell/workspace/notifications.rs diff --git a/nebula_app/src/gpui_shell/workspace/palette.rs b/pebrel_app/src/gpui_shell/workspace/palette.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/palette.rs rename to pebrel_app/src/gpui_shell/workspace/palette.rs diff --git a/nebula_app/src/gpui_shell/workspace/pane_header.rs b/pebrel_app/src/gpui_shell/workspace/pane_header.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/pane_header.rs rename to pebrel_app/src/gpui_shell/workspace/pane_header.rs index 057f52790..c8d38a643 100644 --- a/nebula_app/src/gpui_shell/workspace/pane_header.rs +++ b/pebrel_app/src/gpui_shell/workspace/pane_header.rs @@ -29,7 +29,7 @@ use gpui::{ StatefulInteractiveElement as _, Styled as _, StyledImage as _, Window, canvas, div, img, px, size, }; -use nebula_split::{SplitDirection, SplitTree}; +use pebrel_split::{SplitDirection, SplitTree}; use crate::gpui_shell::prelude::*; use crate::gpui_shell::terminal::view::{TerminalInput, TerminalView}; @@ -145,10 +145,10 @@ pub(super) fn split_layout_icon(tab: &WorkspaceTab, label_px: f32, ink: Hsla) -> ) } -fn split_icon_rects(tree: &SplitTree, width: f32, height: f32) -> Vec { +fn split_icon_rects(tree: &SplitTree, width: f32, height: f32) -> Vec { // Lay out in a large logical viewport before scaling: a thumbnail must not // impose the terminal's minimum cell size or change persisted proportions. - tree.layout(nebula_split::Rect::new(0.0, 0.0, 1000.0, 800.0), 1.0, 1.0, 0.0, false) + tree.layout(pebrel_split::Rect::new(0.0, 0.0, 1000.0, 800.0), 1.0, 1.0, 0.0, false) .panes .into_iter() .map(|(_, rect)| { @@ -157,7 +157,7 @@ fn split_icon_rects(tree: &SplitTree, width: f32, height: f32) -> Vec tree.remove_leaf(pane_id), _ => return, }; - let nebula_split::RemoveOutcome::Collapsed(next_focus) = outcome else { + let pebrel_split::RemoveOutcome::Collapsed(next_focus) = outcome else { // panes.len() >= 2 时树上必然还有别的叶子,摘掉这个只会是 Collapsed。 // 真出现 NotFound/WasRoot 说明树与 panes 已经不同步;此时啥都不做 // 比继续搬迁安全(后者会把 pane 从两边同时摘掉,留下孤儿 PTY)。 @@ -835,7 +835,7 @@ mod tests { HeaderCorners, broadcast_targets, drag_crossed_threshold, header_visible, pane_order, split_icon_rects, }; - use nebula_split::{SplitDirection, SplitTree}; + use pebrel_split::{SplitDirection, SplitTree}; fn split(first: SplitTree, second: SplitTree) -> SplitTree { SplitTree::Split { diff --git a/nebula_app/src/gpui_shell/workspace/pane_header/layout.rs b/pebrel_app/src/gpui_shell/workspace/pane_header/layout.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/pane_header/layout.rs rename to pebrel_app/src/gpui_shell/workspace/pane_header/layout.rs index 825a1bf28..c9a2d23dc 100644 --- a/nebula_app/src/gpui_shell/workspace/pane_header/layout.rs +++ b/pebrel_app/src/gpui_shell/workspace/pane_header/layout.rs @@ -17,7 +17,7 @@ impl NebulaWorkspace { corners: HeaderCorners, cx: &mut Context, ) -> gpui::AnyElement { - let sidebar = self.tabs_position == nebula_settings::TabsPositionName::Sidebar; + let sidebar = self.tabs_position == pebrel_settings::TabsPositionName::Sidebar; let id = pane.id; let group: SharedString = format!("terminal-pane-{id}").into(); let store = self.pane_bounds.clone(); diff --git a/nebula_app/src/gpui_shell/workspace/pane_header/native_tests.rs b/pebrel_app/src/gpui_shell/workspace/pane_header/native_tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/workspace/pane_header/native_tests.rs rename to pebrel_app/src/gpui_shell/workspace/pane_header/native_tests.rs index b84897187..bf2206251 100644 --- a/nebula_app/src/gpui_shell/workspace/pane_header/native_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/pane_header/native_tests.rs @@ -6,12 +6,12 @@ use gpui_component::Root; #[gpui::test] fn header_drag_exchanges_existing_views_and_escape_cancels(cx: &mut TestAppContext) { - exercise_drag(cx, nebula_settings::TabsPositionName::Top); + exercise_drag(cx, pebrel_settings::TabsPositionName::Top); } #[gpui::test] fn sidebar_grip_exchanges_existing_views_and_escape_cancels(cx: &mut TestAppContext) { - exercise_drag(cx, nebula_settings::TabsPositionName::Sidebar); + exercise_drag(cx, pebrel_settings::TabsPositionName::Sidebar); } fn hover(window: &mut gpui::VisualTestContext, position: gpui::Point) { @@ -22,7 +22,7 @@ fn hover(window: &mut gpui::VisualTestContext, position: gpui::Point String { - nebula_settings::RuntimeSettings::load().quick_terminal_hotkey + pebrel_settings::RuntimeSettings::load().quick_terminal_hotkey } /// 注册一个组合键。返回 `None` 表示解析或注册失败——两者都不影响其余功能。 diff --git a/nebula_app/src/gpui_shell/workspace/recipes/mod.rs b/pebrel_app/src/gpui_shell/workspace/recipes/mod.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/recipes/mod.rs rename to pebrel_app/src/gpui_shell/workspace/recipes/mod.rs diff --git a/nebula_app/src/gpui_shell/workspace/recipes/store.rs b/pebrel_app/src/gpui_shell/workspace/recipes/store.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/recipes/store.rs rename to pebrel_app/src/gpui_shell/workspace/recipes/store.rs index 2955d1fa6..ccd67d338 100644 --- a/nebula_app/src/gpui_shell/workspace/recipes/store.rs +++ b/pebrel_app/src/gpui_shell/workspace/recipes/store.rs @@ -17,7 +17,7 @@ pub(super) struct Recipe { } pub(super) fn directory() -> PathBuf { - nebula_settings::settings_dir().join("recipes") + pebrel_settings::settings_dir().join("recipes") } fn clear_agents(layout: &mut LayoutSession) { diff --git a/nebula_app/src/gpui_shell/workspace/remote_files.rs b/pebrel_app/src/gpui_shell/workspace/remote_files.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/drag.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/drag.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files/drag.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/drag.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/follow_tests.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/follow_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/remote_files/follow_tests.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/follow_tests.rs index d47298847..80ea78ff4 100644 --- a/nebula_app/src/gpui_shell/workspace/remote_files/follow_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/remote_files/follow_tests.rs @@ -5,7 +5,7 @@ use super::*; use crate::gpui_shell::terminal::view::{TerminalLaunch, TerminalView}; use gpui::{Entity, TestAppContext, VisualTestContext}; use gpui_component::Root; -use nebula_terminal::event::Event; +use pebrel_terminal::event::Event; use russh_sftp::protocol::{File, Handle, Name, Status, StatusCode}; use std::cell::{Cell, RefCell}; use std::future::Future; @@ -147,7 +147,7 @@ struct Fixture { window: VisualTestContext, terminals: Vec>, stores: Vec>>, - _inputs: Vec>, + _inputs: Vec>, } impl Drop for Fixture { @@ -201,7 +201,7 @@ fn open(cx: &mut TestAppContext) -> Fixture { (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -224,7 +224,7 @@ fn open(cx: &mut TestAppContext) -> Fixture { let focused = pane.id; workspace.tabs.push(super::super::WorkspaceTab::Terminal { panes: vec![pane], - tree: nebula_split::SplitTree::Leaf(focused), + tree: pebrel_split::SplitTree::Leaf(focused), focused, zoomed: false, broadcast: false, diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/interaction.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/interaction.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files/interaction.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/interaction.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/selection.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/selection.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files/selection.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/selection.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/target.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/target.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files/target.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/target.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_files/transfers.rs b/pebrel_app/src/gpui_shell/workspace/remote_files/transfers.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/remote_files/transfers.rs rename to pebrel_app/src/gpui_shell/workspace/remote_files/transfers.rs diff --git a/nebula_app/src/gpui_shell/workspace/remote_tab.rs b/pebrel_app/src/gpui_shell/workspace/remote_tab.rs similarity index 93% rename from nebula_app/src/gpui_shell/workspace/remote_tab.rs rename to pebrel_app/src/gpui_shell/workspace/remote_tab.rs index 5a17ccd8f..6268b8c6f 100644 --- a/nebula_app/src/gpui_shell/workspace/remote_tab.rs +++ b/pebrel_app/src/gpui_shell/workspace/remote_tab.rs @@ -1,7 +1,7 @@ //! Opens a new tab for a non-PTY remote transport (SSH or serial). use gpui::{Context, Window}; -use nebula_split::SplitTree; +use pebrel_split::SplitTree; use super::{NebulaWorkspace, TabMeta, WorkspaceTab, new_tab_insert_index}; use crate::gpui_shell::terminal::view::TerminalLaunch; @@ -25,7 +25,7 @@ impl NebulaWorkspace { zoomed: false, broadcast: false, }; - let position = nebula_settings::RuntimeSettings::load().new_tab_position; + let position = pebrel_settings::RuntimeSettings::load().new_tab_position; let at = new_tab_insert_index(position, self.active, self.tabs.len()); let meta = TabMeta { shell_tag: Self::launch_shell_tag(&session), diff --git a/nebula_app/src/gpui_shell/workspace/rename.rs b/pebrel_app/src/gpui_shell/workspace/rename.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/rename.rs rename to pebrel_app/src/gpui_shell/workspace/rename.rs diff --git a/nebula_app/src/gpui_shell/workspace/rename/tests.rs b/pebrel_app/src/gpui_shell/workspace/rename/tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/rename/tests.rs rename to pebrel_app/src/gpui_shell/workspace/rename/tests.rs index db72fa21f..4d3c7bc97 100644 --- a/nebula_app/src/gpui_shell/workspace/rename/tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/rename/tests.rs @@ -51,14 +51,14 @@ impl RenameFixture { ) }); let ids = workspace.update(cx, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Sidebar; + workspace.tabs_position = pebrel_settings::TabsPositionName::Sidebar; let panes = (0..2) .map(|_| { workspace.new_pane( (80, 24), TerminalLaunch::Local { cwd: Some(directory.path().to_path_buf()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( program.to_string_lossy().into_owned(), vec![], )), @@ -99,7 +99,7 @@ impl RenameFixture { settle(&mut window); // Startup settings are asynchronous; choose the test layout afterwards. workspace.update(&mut window, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Sidebar; + workspace.tabs_position = pebrel_settings::TabsPositionName::Sidebar; workspace.sync_settings_layout(true); cx.notify(); }); @@ -213,7 +213,7 @@ fn redo(cx: &mut VisualTestContext) { fn automatic_task_titles_follow_clicked_panes_and_preserve_manual_tab_names( cx: &mut TestAppContext, ) { - use nebula_terminal::event::Event; + use pebrel_terminal::event::Event; let (fixture, mut cx) = RenameFixture::open(cx); fixture.workspace.update(&mut cx, |workspace, cx| { @@ -385,7 +385,7 @@ fn sidebar_panes_keep_their_full_surface_and_center_the_title(cx: &mut TestAppCo } // The retained top-tab layout still reserves the original 24px header. fixture.workspace.update(&mut window, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Top; + workspace.tabs_position = pebrel_settings::TabsPositionName::Top; cx.notify(); }); settle(&mut window); diff --git a/nebula_app/src/gpui_shell/workspace/render.rs b/pebrel_app/src/gpui_shell/workspace/render.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/render.rs rename to pebrel_app/src/gpui_shell/workspace/render.rs index 9e3a3343a..b528a9e9d 100644 --- a/nebula_app/src/gpui_shell/workspace/render.rs +++ b/pebrel_app/src/gpui_shell/workspace/render.rs @@ -67,7 +67,7 @@ impl Render for NebulaWorkspace { } else { crate::gpui_shell::theme::card_content_bg(cx) }; - let top_tabs = self.tabs_position == nebula_settings::TabsPositionName::Top; + let top_tabs = self.tabs_position == pebrel_settings::TabsPositionName::Top; let reader_focus = self.reader_focus_active(cx); // dock 预览:被拖 tab 悬于终端区时高亮目标半区(松手即挂到那侧)。 let dock_preview = self diff --git a/nebula_app/src/gpui_shell/workspace/residency.rs b/pebrel_app/src/gpui_shell/workspace/residency.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/residency.rs rename to pebrel_app/src/gpui_shell/workspace/residency.rs index c43d4cce9..41aaec723 100644 --- a/nebula_app/src/gpui_shell/workspace/residency.rs +++ b/pebrel_app/src/gpui_shell/workspace/residency.rs @@ -9,7 +9,7 @@ use std::sync::Arc; use std::time::Duration; use gpui::{App, Context, Window}; -use nebula_split::{SplitDirection, SplitTree}; +use pebrel_split::{SplitDirection, SplitTree}; use serde_json::{Value, json}; use super::{NebulaWorkspace, WorkspaceTab}; @@ -1056,7 +1056,7 @@ impl NebulaWorkspace { } pub(super) fn reveal_if_tray_disabled(&mut self, cx: &mut Context) { - if self.window_hidden && !nebula_settings::RuntimeSettings::load().tray { + if self.window_hidden && !pebrel_settings::RuntimeSettings::load().tray { self.reveal_session(cx); } } @@ -1080,7 +1080,7 @@ impl NebulaWorkspace { { return false; } - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); // 平台藏不了窗口就没有「驻留」可言:不拦关闭,否则 Unix 上会变成 // 既不关也不藏(设置页那一行也按同一能力位隐藏)。 let can_hide = crate::platform::CAPABILITIES.hide_window_on_close; diff --git a/nebula_app/src/gpui_shell/workspace/runtime_conversation.rs b/pebrel_app/src/gpui_shell/workspace/runtime_conversation.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/runtime_conversation.rs rename to pebrel_app/src/gpui_shell/workspace/runtime_conversation.rs diff --git a/nebula_app/src/gpui_shell/workspace/runtime_tabs.rs b/pebrel_app/src/gpui_shell/workspace/runtime_tabs.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/runtime_tabs.rs rename to pebrel_app/src/gpui_shell/workspace/runtime_tabs.rs diff --git a/nebula_app/src/gpui_shell/workspace/send_to_chat.rs b/pebrel_app/src/gpui_shell/workspace/send_to_chat.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/send_to_chat.rs rename to pebrel_app/src/gpui_shell/workspace/send_to_chat.rs index ae3c405e3..cc43aefcc 100644 --- a/nebula_app/src/gpui_shell/workspace/send_to_chat.rs +++ b/pebrel_app/src/gpui_shell/workspace/send_to_chat.rs @@ -25,7 +25,7 @@ use gpui::{ }; use gpui_component::menu::PopupMenuItem; use gpui_component::select::SelectItem; -use nebula_split::SplitDirection; +use pebrel_split::SplitDirection; use crate::gpui_shell::prelude::*; use crate::gpui_shell::terminal::view::{InputOrigin, TerminalView}; diff --git a/nebula_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs b/pebrel_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs rename to pebrel_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs index 5e9166ae2..d5f3179c5 100644 --- a/nebula_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/send_to_chat/menu_tests.rs @@ -3,7 +3,7 @@ use crate::gpui_shell::terminal::view::TerminalLaunch; use crate::gpui_shell::workspace::{TabMeta, windowing}; use gpui::{AssetSource as _, TestAppContext, VisualTestContext, point, size}; use gpui_component::Root; -use nebula_split::SplitTree; +use pebrel_split::SplitTree; fn draw(cx: &mut VisualTestContext) { cx.run_until_parked(); @@ -49,7 +49,7 @@ fn terminal_menu_renders_without_a_selection_and_escape_restores_focus(cx: &mut (80, 24), TerminalLaunch::Local { cwd: Some(directory.path().to_path_buf()), - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( program.to_string_lossy().into_owned(), vec![], )), diff --git a/nebula_app/src/gpui_shell/workspace/session_persistence.rs b/pebrel_app/src/gpui_shell/workspace/session_persistence.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/session_persistence.rs rename to pebrel_app/src/gpui_shell/workspace/session_persistence.rs diff --git a/nebula_app/src/gpui_shell/workspace/session_persistence/shutdown_tests.rs b/pebrel_app/src/gpui_shell/workspace/session_persistence/shutdown_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/session_persistence/shutdown_tests.rs rename to pebrel_app/src/gpui_shell/workspace/session_persistence/shutdown_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/session_recovery.rs b/pebrel_app/src/gpui_shell/workspace/session_recovery.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/session_recovery.rs rename to pebrel_app/src/gpui_shell/workspace/session_recovery.rs diff --git a/nebula_app/src/gpui_shell/workspace/settings_navigation.rs b/pebrel_app/src/gpui_shell/workspace/settings_navigation.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/settings_navigation.rs rename to pebrel_app/src/gpui_shell/workspace/settings_navigation.rs index 32e88894f..ad76e7553 100644 --- a/nebula_app/src/gpui_shell/workspace/settings_navigation.rs +++ b/pebrel_app/src/gpui_shell/workspace/settings_navigation.rs @@ -1,5 +1,5 @@ use gpui::{App, AppContext as _, Context, Entity, Focusable as _, Window}; -use nebula_settings::TabsPositionName; +use pebrel_settings::TabsPositionName; use super::{ NebulaWorkspace, SettingsPane, SettingsPaneEvent, SidebarActivity, TabPresentation, diff --git a/nebula_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs b/pebrel_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs rename to pebrel_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs index a58994d58..68d54b8fd 100644 --- a/nebula_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/settings_navigation/ui_tests.rs @@ -9,7 +9,7 @@ fn open_workspace( let hub = crate::runtime_api::RuntimeHub::new(); cx.update(|cx| { gpui_component::init(cx); - cx.set_global(crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord)); crate::gpui_shell::math_view::register(cx); crate::gpui_shell::file_editor::init(cx); init(cx); @@ -30,7 +30,7 @@ fn open_workspace( ) }); workspace.update(cx, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Top; + workspace.tabs_position = pebrel_settings::TabsPositionName::Top; for index in 0..count { let path = directory.path().join(format!("tab-{index}.txt")); std::fs::write(&path, "fixture\n").unwrap(); @@ -51,7 +51,7 @@ fn open_workspace( window.run_until_parked(); window.simulate_resize(gpui::size(px(1280.0), px(900.0))); workspace_out.as_ref().unwrap().update(window, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Top; + workspace.tabs_position = pebrel_settings::TabsPositionName::Top; workspace.sync_settings_layout(false); cx.notify(); }); @@ -85,7 +85,7 @@ fn numbered_tab_shortcuts() -> [&'static str; 2] { fn switching_top_tabs_keeps_settings_reachable_until_explicit_close(cx: &mut TestAppContext) { let (_directory, workspace, mut cx) = open_workspace(2, cx); let settings_id = workspace.read_with(&cx, |workspace, _| { - assert_eq!(workspace.tabs_position, nebula_settings::TabsPositionName::Top); + assert_eq!(workspace.tabs_position, pebrel_settings::TabsPositionName::Top); assert_eq!(workspace.top_tab_count(), 3); workspace.settings_surface.as_ref().unwrap().0.entity_id() }); @@ -141,7 +141,7 @@ fn settings_survives_overflow_and_layout_changes(cx: &mut TestAppContext) { cx.simulate_resize(gpui::size(px(760.0), px(900.0))); cx.simulate_keystrokes(numbered_tab_shortcuts()[0]); for position in - [nebula_settings::TabsPositionName::Sidebar, nebula_settings::TabsPositionName::Top] + [pebrel_settings::TabsPositionName::Sidebar, pebrel_settings::TabsPositionName::Top] { workspace.update(&mut cx, |workspace, cx| { workspace.tabs_position = position; @@ -162,7 +162,7 @@ fn instant_slide_animation_keeps_the_side_panel_static(cx: &mut TestAppContext) // With the slide animation off, folding the main sidebar for the settings // page must not arm the fold animation: the column snaps into place. workspace.update(&mut cx, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Sidebar; + workspace.tabs_position = pebrel_settings::TabsPositionName::Sidebar; workspace.settings_open = true; workspace.sidebar_collapsed = false; workspace.sync_settings_layout(true); @@ -202,7 +202,7 @@ fn closing_last_regular_tab_keeps_settings_until_it_is_closed(cx: &mut TestAppCo #[gpui::test] fn density_changes_real_tab_bounds_and_sidebar_drag_pitch(cx: &mut TestAppContext) { - use nebula_settings::{DensityName, TabsPositionName}; + use pebrel_settings::{DensityName, TabsPositionName}; let (_directory, workspace, mut cx) = open_workspace(8, cx); click_tab("top-tab-0", &mut cx); diff --git a/nebula_app/src/gpui_shell/workspace/shell_launch.rs b/pebrel_app/src/gpui_shell/workspace/shell_launch.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/shell_launch.rs rename to pebrel_app/src/gpui_shell/workspace/shell_launch.rs index 58368de85..de0681458 100644 --- a/nebula_app/src/gpui_shell/workspace/shell_launch.rs +++ b/pebrel_app/src/gpui_shell/workspace/shell_launch.rs @@ -71,7 +71,7 @@ pub(super) fn configured_at(cx: &App, cwd: Option<&Path>) -> crate::session::Lau } pub(super) fn configured_directory() -> Option { - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); let directory = settings.startup_directory.as_deref()?.trim(); if directory.is_empty() { return None; @@ -91,7 +91,7 @@ pub(super) fn profile_directory(program: &str, cwd: Option<&str>) -> Option nebula_terminal::tty::Shell { +) -> pebrel_terminal::tty::Shell { let shell = profile.shell(); if let Some(launch) = crate::shell_detect::wsl_launch(shell.program(), shell.args()) && !launch.chooses_directory @@ -100,7 +100,7 @@ pub(super) fn profile_shell( && let Some(args) = crate::shell_detect::wsl_args_in_directory(shell.program(), shell.args(), &cwd) { - return nebula_terminal::tty::Shell::new(shell.program().to_owned(), args); + return pebrel_terminal::tty::Shell::new(shell.program().to_owned(), args); } shell } @@ -110,11 +110,11 @@ pub(super) fn profile_shell( /// setting, through [`resolve_shell_id`] (detected shells, terminal profiles, /// the synthetic WSL launch), then the PTY-default snapshot. Used to warm the /// guest verdict before the pane exists (`platform::wsl_guest_shell::warm_up`). -pub(crate) fn startup_shell(shell_id: Option) -> Option { +pub(crate) fn startup_shell(shell_id: Option) -> Option { use crate::gpui_shell::terminal::view::TerminalLaunch; let launch = shell_id - .or_else(|| nebula_settings::RuntimeSettings::load().shell) + .or_else(|| pebrel_settings::RuntimeSettings::load().shell) .filter(|id| !id.trim().is_empty()) .and_then(|id| resolve_shell_id(&id).ok()) .unwrap_or(crate::session::LaunchSession::Default); diff --git a/nebula_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs b/pebrel_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs rename to pebrel_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs index f4f41ec73..55fb1f960 100644 --- a/nebula_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/shell_launch/directory_tests.rs @@ -130,7 +130,7 @@ fn explicit_guest_directory_survives_to_the_wsl_launch() { panic!("expected local WSL launch") }; let mut options = - nebula_terminal::tty::Options { shell, working_directory: cwd, ..Default::default() }; + pebrel_terminal::tty::Options { shell, working_directory: cwd, ..Default::default() }; crate::platform::launch_directory::prepare_wsl(&mut options, Some("/different")); assert_eq!( options.shell.unwrap().args(), @@ -156,7 +156,7 @@ fn profile_directory_precedes_guest_home_but_explicit_wsl_cd_keeps_precedence() panic!("expected local WSL launch") }; let mut options = - nebula_terminal::tty::Options { shell, working_directory: cwd, ..Default::default() }; + pebrel_terminal::tty::Options { shell, working_directory: cwd, ..Default::default() }; crate::platform::launch_directory::prepare_wsl(&mut options, None); assert_eq!( options.shell.unwrap().args(), diff --git a/nebula_app/src/gpui_shell/workspace/shell_picker.rs b/pebrel_app/src/gpui_shell/workspace/shell_picker.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/shell_picker.rs rename to pebrel_app/src/gpui_shell/workspace/shell_picker.rs diff --git a/nebula_app/src/gpui_shell/workspace/sidebar.rs b/pebrel_app/src/gpui_shell/workspace/sidebar.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/sidebar.rs rename to pebrel_app/src/gpui_shell/workspace/sidebar.rs index 40bde370e..0fe53a71e 100644 --- a/nebula_app/src/gpui_shell/workspace/sidebar.rs +++ b/pebrel_app/src/gpui_shell/workspace/sidebar.rs @@ -186,7 +186,7 @@ impl NebulaWorkspace { let tab_close_visible = settings.map(|settings| settings.tab_close_visible).unwrap_or(true); let tab_reveal = settings .map(|settings| settings.tab_reveal) - .unwrap_or(nebula_settings::TabRevealName::Slide); + .unwrap_or(pebrel_settings::TabRevealName::Slide); let chrome_family = theme.font_family.clone(); let metadata_family = theme.mono_font_family.clone(); let symbol_family: SharedString = crate::font_install::SYMBOL_FONT_FAMILY.into(); @@ -619,7 +619,7 @@ impl NebulaWorkspace { // 让位滑动:进位方向 ease-out 滑入(旧壳是双向弹簧;回位 // 这里先直落,违和再补逐帧插值)。设置「标签动画=立即」时 // 直接落位(旧壳 TabRevealMotion::Instant 的 Snap 语义)。 - if tab_reveal == nebula_settings::TabRevealName::Instant { + if tab_reveal == pebrel_settings::TabRevealName::Instant { row.top(px(shift)).into_any_element() } else { row.with_animation( @@ -995,7 +995,7 @@ mod tests { .id("status-probe-row") .debug_selector(|| "status-probe-row".to_owned()) .w(px(200.0)) - .h(px(tab_scroll::tab_row_height(nebula_settings::DensityName::Standard))) + .h(px(tab_scroll::tab_row_height(pebrel_settings::DensityName::Standard))) .px_2() .overflow_hidden() .child(div().flex_1()) diff --git a/nebula_app/src/gpui_shell/workspace/sidebar_resize.rs b/pebrel_app/src/gpui_shell/workspace/sidebar_resize.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/sidebar_resize.rs rename to pebrel_app/src/gpui_shell/workspace/sidebar_resize.rs index ee9827c90..4417202d5 100644 --- a/nebula_app/src/gpui_shell/workspace/sidebar_resize.rs +++ b/pebrel_app/src/gpui_shell/workspace/sidebar_resize.rs @@ -62,7 +62,7 @@ impl NebulaWorkspace { if self.sidebar_collapsed || self.settings_open || self.reader_focus_active(cx) - || self.tabs_position == nebula_settings::TabsPositionName::Top + || self.tabs_position == pebrel_settings::TabsPositionName::Top || !crate::gpui_shell::config::panel_resize(cx) { return None; @@ -122,7 +122,7 @@ impl NebulaWorkspace { } let raw = drag.start_width + f32::from(event.position.x) - drag.start_x; self.sidebar_width = - drag.width(raw, nebula_settings::MIN_SIDEBAR_WIDTH, nebula_settings::MAX_SIDEBAR_WIDTH); + drag.width(raw, pebrel_settings::MIN_SIDEBAR_WIDTH, pebrel_settings::MAX_SIDEBAR_WIDTH); cx.notify(); } @@ -136,7 +136,7 @@ impl NebulaWorkspace { self.sidebar_collapsed = true; self.sidebar_fold_armed = !tab_reveal_instant(cx); } else if let Err(error) = - nebula_settings::persist_keys(&[("sidebar_w", format!("{:.0}", self.sidebar_width))]) + pebrel_settings::persist_keys(&[("sidebar_w", format!("{:.0}", self.sidebar_width))]) { log::warn!("Could not persist sidebar width: {error}"); } diff --git a/nebula_app/src/gpui_shell/workspace/ssh_dialog.rs b/pebrel_app/src/gpui_shell/workspace/ssh_dialog.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/ssh_dialog.rs rename to pebrel_app/src/gpui_shell/workspace/ssh_dialog.rs index bb4234f75..9653965b4 100644 --- a/nebula_app/src/gpui_shell/workspace/ssh_dialog.rs +++ b/pebrel_app/src/gpui_shell/workspace/ssh_dialog.rs @@ -209,7 +209,7 @@ mod tests { (80, 24), crate::gpui_shell::terminal::view::TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -297,7 +297,7 @@ mod tests { (80, 24), crate::gpui_shell::terminal::view::TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), diff --git a/nebula_app/src/gpui_shell/workspace/ssh_reconnect.rs b/pebrel_app/src/gpui_shell/workspace/ssh_reconnect.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/ssh_reconnect.rs rename to pebrel_app/src/gpui_shell/workspace/ssh_reconnect.rs diff --git a/nebula_app/src/gpui_shell/workspace/tab_drag.rs b/pebrel_app/src/gpui_shell/workspace/tab_drag.rs similarity index 95% rename from nebula_app/src/gpui_shell/workspace/tab_drag.rs rename to pebrel_app/src/gpui_shell/workspace/tab_drag.rs index 7b4eb4ba4..6413e2b74 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_drag.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_drag.rs @@ -4,7 +4,7 @@ //! 步距,因此拖拽状态捕获这两个量,而不是复制两套状态机。 use gpui::{Context, MouseButton, Pixels, Point, Styled as _, Window, px}; -use nebula_split::{SplitNav, SplitTree}; +use pebrel_split::{SplitNav, SplitTree}; use super::{ NebulaWorkspace, TAB_DRAG_THRESHOLD, WorkspaceTab, @@ -346,7 +346,7 @@ impl NebulaWorkspace { && self.tabs.get(self.active).is_some_and(WorkspaceTab::is_terminal) } - pub(super) fn active_terminal_area(&self) -> Option { + pub(super) fn active_terminal_area(&self) -> Option { let Some(WorkspaceTab::Terminal { panes, tree, focused, zoomed, .. }) = self.tabs.get(self.active) else { @@ -359,7 +359,7 @@ impl NebulaWorkspace { if let Some(b) = self.split_bounds.borrow().get(&(self.active, Vec::new())).copied() { let (w, h) = (f32::from(b.size.width), f32::from(b.size.height)); if w > 0.0 && h > 0.0 { - return Some(nebula_split::Rect::new( + return Some(pebrel_split::Rect::new( f32::from(b.origin.x), f32::from(b.origin.y), w, @@ -376,7 +376,7 @@ impl NebulaWorkspace { let b = bounds.get(&pane.id)?; let (w, h) = (f32::from(b.size.width), f32::from(b.size.height)); return (w > 0.0 && h > 0.0).then(|| { - nebula_split::Rect::new(f32::from(b.origin.x), f32::from(b.origin.y), w, h) + pebrel_split::Rect::new(f32::from(b.origin.x), f32::from(b.origin.y), w, h) }); } let mut acc: Option<(f32, f32, f32, f32)> = None; @@ -390,7 +390,7 @@ impl NebulaWorkspace { }); } let (x0, y0, x1, y1) = acc?; - (x1 > x0 && y1 > y0).then(|| nebula_split::Rect::new(x0, y0, x1 - x0, y1 - y0)) + (x1 > x0 && y1 > y0).then(|| pebrel_split::Rect::new(x0, y0, x1 - x0, y1 - y0)) } pub(crate) fn dock_nav_at(&self, x: f32, y: f32) -> Option { @@ -403,7 +403,7 @@ impl NebulaWorkspace { pane_at_point(&self.dock_pane_areas(), x, y) } - fn dock_pane_areas(&self) -> Vec<(u64, nebula_split::Rect)> { + fn dock_pane_areas(&self) -> Vec<(u64, pebrel_split::Rect)> { let Some(area) = self.active_terminal_area() else { return vec![] }; let Some(WorkspaceTab::Terminal { tree, zoomed, .. }) = self.tabs.get(self.active) else { return vec![]; @@ -413,10 +413,10 @@ impl NebulaWorkspace { if *zoomed && !tree.is_leaf() { return vec![]; } - tree.layout(area, 1.0, 1.0, nebula_split::DIVIDER_GAP, false).panes + tree.layout(area, 1.0, 1.0, pebrel_split::DIVIDER_GAP, false).panes } - pub(super) fn dock_preview_area(&self, target: DockTarget) -> Option { + pub(super) fn dock_preview_area(&self, target: DockTarget) -> Option { let area = if let Some(pane) = target.pane { self.dock_pane_areas().into_iter().find(|(id, _)| *id == pane)?.1 } else { @@ -424,7 +424,7 @@ impl NebulaWorkspace { }; SplitTree::leaf(0) .joined(SplitTree::leaf(1), target.nav) - .layout(area, 1.0, 1.0, nebula_split::DIVIDER_GAP, false) + .layout(area, 1.0, 1.0, pebrel_split::DIVIDER_GAP, false) .panes .into_iter() .find(|(pane, _)| *pane == 1) @@ -510,13 +510,13 @@ pub(crate) struct DockTarget { pub(crate) nav: SplitNav, } -fn pane_at_point(panes: &[(u64, nebula_split::Rect)], x: f32, y: f32) -> Option { +fn pane_at_point(panes: &[(u64, pebrel_split::Rect)], x: f32, y: f32) -> Option { panes.iter().find(|(_, area)| area.contains(x, y)).map(|(pane, _)| *pane) } fn dock_target_at( - area: nebula_split::Rect, - panes: &[(u64, nebula_split::Rect)], + area: pebrel_split::Rect, + panes: &[(u64, pebrel_split::Rect)], x: f32, y: f32, ) -> Option { @@ -538,7 +538,7 @@ fn dock_target_at( Some(DockTarget { pane: Some(*pane), nav: nearest_edge(*area, x, y) }) } -fn nearest_edge(area: nebula_split::Rect, x: f32, y: f32) -> SplitNav { +fn nearest_edge(area: pebrel_split::Rect, x: f32, y: f32) -> SplitNav { let nx = (x - area.x) / area.w.max(1.0); let ny = (y - area.y) / area.h.max(1.0); [ @@ -558,12 +558,12 @@ mod tests { use super::*; #[test] fn outer_rim_and_quadrant_drops_have_distinct_preview_targets() { - let area = nebula_split::Rect::new(0.0, 0.0, 1200.0, 800.0); + let area = pebrel_split::Rect::new(0.0, 0.0, 1200.0, 800.0); let panes = [ - (1, nebula_split::Rect::new(0.0, 0.0, 599.0, 399.0)), - (2, nebula_split::Rect::new(601.0, 0.0, 599.0, 399.0)), - (3, nebula_split::Rect::new(0.0, 401.0, 599.0, 399.0)), - (4, nebula_split::Rect::new(601.0, 401.0, 599.0, 399.0)), + (1, pebrel_split::Rect::new(0.0, 0.0, 599.0, 399.0)), + (2, pebrel_split::Rect::new(601.0, 0.0, 599.0, 399.0)), + (3, pebrel_split::Rect::new(0.0, 401.0, 599.0, 399.0)), + (4, pebrel_split::Rect::new(601.0, 401.0, 599.0, 399.0)), ]; assert_eq!( dock_target_at(area, &panes, 610.0, 600.0), @@ -578,10 +578,10 @@ mod tests { #[test] fn pane_header_exchange_keeps_a_leaf_target_inside_the_tab_docking_rim() { - let area = nebula_split::Rect::new(0.0, 0.0, 1200.0, 800.0); + let area = pebrel_split::Rect::new(0.0, 0.0, 1200.0, 800.0); let panes = [ - (1, nebula_split::Rect::new(0.0, 0.0, 599.0, 800.0)), - (2, nebula_split::Rect::new(601.0, 0.0, 599.0, 800.0)), + (1, pebrel_split::Rect::new(0.0, 0.0, 599.0, 800.0)), + (2, pebrel_split::Rect::new(601.0, 0.0, 599.0, 800.0)), ]; let (x, y) = (900.0, super::super::pane_header::PANE_HEADER_H / 2.0); assert_eq!(pane_at_point(&panes, x, y), Some(2)); @@ -595,7 +595,7 @@ mod tests { #[test] fn direction_is_relative_to_the_hovered_pane() { - let pane = nebula_split::Rect::new(600.0, 400.0, 600.0, 400.0); + let pane = pebrel_split::Rect::new(600.0, 400.0, 600.0, 400.0); assert_eq!(nearest_edge(pane, 610.0, 600.0), SplitNav::Left); assert_eq!(nearest_edge(pane, 900.0, 410.0), SplitNav::Up); assert_eq!(nearest_edge(pane, 1190.0, 600.0), SplitNav::Right); diff --git a/nebula_app/src/gpui_shell/workspace/tab_duplication.rs b/pebrel_app/src/gpui_shell/workspace/tab_duplication.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/tab_duplication.rs rename to pebrel_app/src/gpui_shell/workspace/tab_duplication.rs index fbf6875ef..5c7447a52 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_duplication.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_duplication.rs @@ -188,7 +188,7 @@ impl NebulaWorkspace { if self.settings_open { self.leave_settings(window, cx); } - let position = nebula_settings::RuntimeSettings::load().new_tab_position; + let position = pebrel_settings::RuntimeSettings::load().new_tab_position; let at = new_tab_insert_index(position, self.active, self.tabs.len()); if self.restore_tab_at(&duplicate, false, at, window, cx) { self.active = at; diff --git a/nebula_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs b/pebrel_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs rename to pebrel_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs index 7832493d5..cc56f91f3 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_duplication/layout_tests.rs @@ -44,8 +44,8 @@ fn duplicate_bare_wsl_keeps_the_panes_frozen_distribution(cx: &mut TestAppContex let source = workspace.tabs[0].focused_view().unwrap().clone(); source.update(cx, |view, _| { view.cwd = "/srv/project with spaces".into(); - let mut options = nebula_terminal::tty::Options::default(); - options.shell = Some(nebula_terminal::tty::Shell::new( + let mut options = pebrel_terminal::tty::Options::default(); + options.shell = Some(pebrel_terminal::tty::Shell::new( program.clone(), ["-d", "FrozenDistro", "-u", "worker"].map(String::from).to_vec(), )); diff --git a/nebula_app/src/gpui_shell/workspace/tab_menu.rs b/pebrel_app/src/gpui_shell/workspace/tab_menu.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/tab_menu.rs rename to pebrel_app/src/gpui_shell/workspace/tab_menu.rs index f8a4d4f9d..a0eb5f0e3 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_menu.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_menu.rs @@ -32,7 +32,7 @@ use crate::display::color::Rgb; use crate::gpui_shell::prelude::*; use crate::i18n::Message; use crate::session::LaunchSession; -use nebula_split::SplitDirection; +use pebrel_split::SplitDirection; use super::{ CloseActiveTerminal, MoveTabLeft, MoveTabRight, NebulaWorkspace, RenameActiveTab, SplitDown, @@ -436,7 +436,7 @@ mod cwd_copy_tests { fn cwd_menu_copies_the_reported_directory_via_keyboard(cx: &mut TestAppContext) { cx.update(|cx| { gpui_component::init(cx); - cx.set_global(Settings::load(nebula_settings::ThemeName::Nord)); + cx.set_global(Settings::load(pebrel_settings::ThemeName::Nord)); }); let (_, window) = cx.add_window_view(|window, cx| { let source = cx.new(|cx| { @@ -445,7 +445,7 @@ mod cwd_copy_tests { (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), diff --git a/nebula_app/src/gpui_shell/workspace/tab_presentation.rs b/pebrel_app/src/gpui_shell/workspace/tab_presentation.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/tab_presentation.rs rename to pebrel_app/src/gpui_shell/workspace/tab_presentation.rs index 07530666d..9ad181d25 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_presentation.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_presentation.rs @@ -219,7 +219,7 @@ mod tests { cx.update(|cx| { gpui_component::init(cx); cx.set_global(crate::gpui_shell::config::Settings::load( - nebula_settings::ThemeName::Nord, + pebrel_settings::ThemeName::Nord, )); }); let (_, window) = cx.add_window_view(|window, cx| { diff --git a/nebula_app/src/gpui_shell/workspace/tab_scroll.rs b/pebrel_app/src/gpui_shell/workspace/tab_scroll.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/tab_scroll.rs rename to pebrel_app/src/gpui_shell/workspace/tab_scroll.rs index 490ba62da..75f25367e 100644 --- a/nebula_app/src/gpui_shell/workspace/tab_scroll.rs +++ b/pebrel_app/src/gpui_shell/workspace/tab_scroll.rs @@ -14,7 +14,7 @@ use gpui::{ use crate::gpui_shell::prelude::*; use crate::scrollbar::{self, OverlayScrollbar}; -use nebula_settings::DensityName; +use pebrel_settings::DensityName; use super::NebulaWorkspace; diff --git a/nebula_app/src/gpui_shell/workspace/terminal_activity.rs b/pebrel_app/src/gpui_shell/workspace/terminal_activity.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/terminal_activity.rs rename to pebrel_app/src/gpui_shell/workspace/terminal_activity.rs index 0c0f57ab4..9f60a6e89 100644 --- a/nebula_app/src/gpui_shell/workspace/terminal_activity.rs +++ b/pebrel_app/src/gpui_shell/workspace/terminal_activity.rs @@ -175,8 +175,8 @@ mod tests { use crate::gpui_shell::terminal::element::snapshot_probe::{self, PaintedSnapshot}; use crate::gpui_shell::terminal::view::TerminalLaunch; use gpui::{Modifiers, TestAppContext, VisualTestContext, point}; - use nebula_terminal::event::Event; - use nebula_terminal::event_loop::Msg; + use pebrel_terminal::event::Event; + use pebrel_terminal::event_loop::Msg; use std::cell::Cell; use std::sync::mpsc::Receiver; @@ -189,8 +189,8 @@ mod tests { fn feed(terminal: &mut TerminalView, bytes: &[u8]) { let mut term = terminal.session.as_ref().unwrap().term.lock(); - let mut parser = nebula_terminal::vte::ansi::Processor::< - nebula_terminal::vte::ansi::StdSyncHandler, + let mut parser = pebrel_terminal::vte::ansi::Processor::< + pebrel_terminal::vte::ansi::StdSyncHandler, >::default(); parser.advance(&mut *term, bytes); } @@ -225,7 +225,7 @@ mod tests { windowing::WindowRole::Regular, cx, ); - workspace.tabs_position = nebula_settings::TabsPositionName::Sidebar; + workspace.tabs_position = pebrel_settings::TabsPositionName::Sidebar; for &pane_count in pane_counts { let panes: Vec<_> = (0..pane_count) .map(|_| { @@ -233,7 +233,7 @@ mod tests { (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -468,7 +468,7 @@ mod tests { draw(&mut window); assert_spinner_stopped(&workspace, &mut window); workspace.update(&mut window, |workspace, cx| { - workspace.tabs_position = nebula_settings::TabsPositionName::Top; + workspace.tabs_position = pebrel_settings::TabsPositionName::Top; cx.notify(); }); draw(&mut window); @@ -675,7 +675,7 @@ mod tests { (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), diff --git a/nebula_app/src/gpui_shell/workspace/terminal_activity/tests/session_failure.rs b/pebrel_app/src/gpui_shell/workspace/terminal_activity/tests/session_failure.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/terminal_activity/tests/session_failure.rs rename to pebrel_app/src/gpui_shell/workspace/terminal_activity/tests/session_failure.rs diff --git a/nebula_app/src/gpui_shell/workspace/tests.rs b/pebrel_app/src/gpui_shell/workspace/tests.rs similarity index 96% rename from nebula_app/src/gpui_shell/workspace/tests.rs rename to pebrel_app/src/gpui_shell/workspace/tests.rs index 33c74faf4..e05499f26 100644 --- a/nebula_app/src/gpui_shell/workspace/tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/tests.rs @@ -29,8 +29,8 @@ fn ssh_host_icons_are_confined_to_the_selected_configuration_directory() { #[test] fn settings_only_fold_the_sidebar_in_sidebar_tab_mode() { - assert!(settings_should_fold_sidebar(nebula_settings::TabsPositionName::Sidebar)); - assert!(!settings_should_fold_sidebar(nebula_settings::TabsPositionName::Top)); + assert!(settings_should_fold_sidebar(pebrel_settings::TabsPositionName::Sidebar)); + assert!(!settings_should_fold_sidebar(pebrel_settings::TabsPositionName::Top)); } #[cfg(feature = "gpui-test-support")] @@ -77,7 +77,7 @@ mod title_bar_panel_control_tests { } #[derive(Default)] - struct TopTabGeometryProbe(nebula_settings::DensityName); + struct TopTabGeometryProbe(pebrel_settings::DensityName); impl Render for TopTabGeometryProbe { fn render(&mut self, _window: &mut Window, _cx: &mut Context) -> impl IntoElement { @@ -117,9 +117,9 @@ mod title_bar_panel_control_tests { cx.update(gpui_component::init); let (probe, cx) = cx.add_window_view(|_, _| TopTabGeometryProbe::default()); for (density, height) in [ - (nebula_settings::DensityName::Standard, 34.0), - (nebula_settings::DensityName::Compact, 32.0), - (nebula_settings::DensityName::Standard, 34.0), + (pebrel_settings::DensityName::Standard, 34.0), + (pebrel_settings::DensityName::Compact, 32.0), + (pebrel_settings::DensityName::Standard, 34.0), ] { probe.update(cx, |probe, cx| { probe.0 = density; @@ -435,41 +435,41 @@ fn pane_card_divider_requires_both_width_and_a_real_sidebar_boundary() { #[test] fn split_drag_preview_moves_only_the_overlay_divider() { - let viewport = nebula_split::Rect::new(100.0, 40.0, 802.0, 500.0); + let viewport = pebrel_split::Rect::new(100.0, 40.0, 802.0, 500.0); let visual = split_drag_visual_geometry(SplitDirection::LeftRight, viewport, 0.25, None); - assert_eq!(visual.divider, nebula_split::Rect::new(300.0, 40.0, 2.0, 500.0)); + assert_eq!(visual.divider, pebrel_split::Rect::new(300.0, 40.0, 2.0, 500.0)); assert_eq!(visual.close_area, None); let vertical = split_drag_visual_geometry( SplitDirection::TopBottom, - nebula_split::Rect::new(20.0, 30.0, 700.0, 402.0), + pebrel_split::Rect::new(20.0, 30.0, 700.0, 402.0), 0.75, None, ); - assert_eq!(vertical.divider, nebula_split::Rect::new(20.0, 330.0, 700.0, 2.0)); + assert_eq!(vertical.divider, pebrel_split::Rect::new(20.0, 330.0, 700.0, 2.0)); } #[test] fn split_drag_close_preview_marks_only_the_squeezed_child() { - let viewport = nebula_split::Rect::new(100.0, 40.0, 802.0, 500.0); + let viewport = pebrel_split::Rect::new(100.0, 40.0, 802.0, 500.0); let first = split_drag_visual_geometry( SplitDirection::LeftRight, viewport, - nebula_split::preview_ratio(0.01), - nebula_split::drag_close_target(0.01), + pebrel_split::preview_ratio(0.01), + pebrel_split::drag_close_target(0.01), ); - assert_eq!(first.divider, nebula_split::Rect::new(116.0, 40.0, 2.0, 500.0)); - assert_eq!(first.close_area, Some(nebula_split::Rect::new(100.0, 40.0, 16.0, 500.0))); + assert_eq!(first.divider, pebrel_split::Rect::new(116.0, 40.0, 2.0, 500.0)); + assert_eq!(first.close_area, Some(pebrel_split::Rect::new(100.0, 40.0, 16.0, 500.0))); let second = split_drag_visual_geometry( SplitDirection::TopBottom, - nebula_split::Rect::new(20.0, 30.0, 700.0, 402.0), - nebula_split::preview_ratio(0.99), - nebula_split::drag_close_target(0.99), + pebrel_split::Rect::new(20.0, 30.0, 700.0, 402.0), + pebrel_split::preview_ratio(0.99), + pebrel_split::drag_close_target(0.99), ); - assert_eq!(second.divider, nebula_split::Rect::new(20.0, 422.0, 700.0, 2.0)); - assert_eq!(second.close_area, Some(nebula_split::Rect::new(20.0, 424.0, 700.0, 8.0))); + assert_eq!(second.divider, pebrel_split::Rect::new(20.0, 422.0, 700.0, 2.0)); + assert_eq!(second.close_area, Some(pebrel_split::Rect::new(20.0, 424.0, 700.0, 8.0))); } #[test] @@ -499,7 +499,7 @@ fn restored_agent_command_honors_resume_ai_without_changing_session_data() { #[test] fn new_tab_position_uses_the_shared_runtime_semantics() { - use nebula_settings::NewTabPositionName::{AfterCurrent, End}; + use pebrel_settings::NewTabPositionName::{AfterCurrent, End}; assert_eq!(new_tab_insert_index(AfterCurrent, 1, 4), 2); assert_eq!(new_tab_insert_index(End, 1, 4), 4); @@ -895,11 +895,11 @@ fn tab_chrome_label_uses_cwd_last_component() { /// 7.5px,鼠标停在线上不出现拖拽光标。 #[test] fn sidebar_resize_hot_zone_follows_the_theme_boundary() { - let nord = nebula_settings::ThemeName::Nord.card_geometry(); + let nord = pebrel_settings::ThemeName::Nord.card_geometry(); assert_eq!((nord.gutter, nord.divider), (0.0, 1.0), "Nord 是铺满 + 竖线形态"); assert_eq!(sidebar_resize_offset_for(nord.divider, nord.gutter), 0.5, "对准 1px 线心"); - let floating = nebula_settings::ThemeCardGeometry { + let floating = pebrel_settings::ThemeCardGeometry { radius: 14.0, gutter: 8.0, shadow: false, diff --git a/nebula_app/src/gpui_shell/workspace/top_tabs.rs b/pebrel_app/src/gpui_shell/workspace/top_tabs.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/top_tabs.rs rename to pebrel_app/src/gpui_shell/workspace/top_tabs.rs index 19b91616e..b2f6d5cc7 100644 --- a/nebula_app/src/gpui_shell/workspace/top_tabs.rs +++ b/pebrel_app/src/gpui_shell/workspace/top_tabs.rs @@ -108,7 +108,7 @@ pub(super) fn top_tabs_menu_button(settings_active: bool, language: UiLanguage) /// 紧邻 TabView 的操作按钮占满同一条标签行,再在槽内居中 32px 按钮。 /// 外层仍贴标题栏底边,tab 与正文相接的既有布局不变。 pub(super) fn top_tab_action_slot( - density: nebula_settings::DensityName, + density: pebrel_settings::DensityName, child: impl gpui::IntoElement, ) -> gpui::Div { h_flex().h(px(super::tab_scroll::tab_row_height(density))).items_center().child(child) @@ -141,7 +141,7 @@ impl NebulaWorkspace { let tab_close_visible = settings.map(|settings| settings.tab_close_visible).unwrap_or(true); let tab_reveal = settings .map(|settings| settings.tab_reveal) - .unwrap_or(nebula_settings::TabRevealName::Slide); + .unwrap_or(pebrel_settings::TabRevealName::Slide); let chrome_family = theme.font_family.clone(); let metadata_family = theme.mono_font_family.clone(); let symbol_family: SharedString = crate::font_install::SYMBOL_FONT_FAMILY.into(); @@ -532,7 +532,7 @@ impl NebulaWorkspace { ) .into_any_element() } else if shift != 0.0 { - if tab_reveal == nebula_settings::TabRevealName::Instant { + if tab_reveal == pebrel_settings::TabRevealName::Instant { row.left(px(shift)).into_any_element() } else { row.with_animation( @@ -757,7 +757,7 @@ impl NebulaWorkspace { window: &Window, cx: &mut Context, ) { - if self.tabs_position != nebula_settings::TabsPositionName::Top { + if self.tabs_position != pebrel_settings::TabsPositionName::Top { return; } let capacity_w = diff --git a/nebula_app/src/gpui_shell/workspace/update_dialog.rs b/pebrel_app/src/gpui_shell/workspace/update_dialog.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/update_dialog.rs rename to pebrel_app/src/gpui_shell/workspace/update_dialog.rs index 42b6af7c6..76099e298 100644 --- a/nebula_app/src/gpui_shell/workspace/update_dialog.rs +++ b/pebrel_app/src/gpui_shell/workspace/update_dialog.rs @@ -30,7 +30,7 @@ pub(crate) fn show_update_notification( show_download_outcome_notification(result, cached_status.unwrap(), window, cx); return; } - if nebula_settings::RuntimeSettings::load().auto_download_updates + if pebrel_settings::RuntimeSettings::load().auto_download_updates && result.asset.as_ref().is_some_and(|asset| asset.sha256.is_some()) { start_update_download(result.clone(), window, cx); @@ -485,10 +485,10 @@ mod tests { Root::new(view, window, cx) }); cx.simulate_resize(size(px(800.0), px(600.0))); - for name in [nebula_settings::ThemeName::LinenLight, nebula_settings::ThemeName::Nord] { + for name in [pebrel_settings::ThemeName::LinenLight, pebrel_settings::ThemeName::Nord] { cx.update(|window, cx| { - let mut runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::default(), + let mut runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::default(), ); runtime.theme = name; runtime.follow_system_theme = false; diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel.rs diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/avatars.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/avatars.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/avatars.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/avatars.rs diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs index 9c780fade..3cef962e2 100644 --- a/nebula_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs +++ b/pebrel_app/src/gpui_shell/workspace/vcs_panel/commit_input.rs @@ -76,7 +76,7 @@ mod tests { ] { cx.update(|window, cx| { let mut settings = - crate::gpui_shell::config::Settings::load(nebula_settings::ThemeName::Nord); + crate::gpui_shell::config::Settings::load(pebrel_settings::ThemeName::Nord); settings.ui_language = language; cx.set_global(settings); probe.update(cx, |_, cx| cx.notify()); diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/list_model.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/list_model.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/list_model.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/list_model.rs diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/list_tests.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/list_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/list_tests.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/list_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/relative_time.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/relative_time.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/relative_time.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/relative_time.rs diff --git a/nebula_app/src/gpui_shell/workspace/vcs_panel/rows.rs b/pebrel_app/src/gpui_shell/workspace/vcs_panel/rows.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/vcs_panel/rows.rs rename to pebrel_app/src/gpui_shell/workspace/vcs_panel/rows.rs diff --git a/nebula_app/src/gpui_shell/workspace/window_titlebar.rs b/pebrel_app/src/gpui_shell/workspace/window_titlebar.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/window_titlebar.rs rename to pebrel_app/src/gpui_shell/workspace/window_titlebar.rs index 2f759b257..bf137cf4a 100644 --- a/nebula_app/src/gpui_shell/workspace/window_titlebar.rs +++ b/pebrel_app/src/gpui_shell/workspace/window_titlebar.rs @@ -1,13 +1,13 @@ use super::*; use crate::{gpui_shell::widgets::toolbar_button, i18n::Message}; -fn title_bar_height(_density: nebula_settings::DensityName) -> f32 { +fn title_bar_height(_density: pebrel_settings::DensityName) -> f32 { // Content density must not compress the application chrome. 48.0 } pub(super) fn effective_title_bar_height( - density: nebula_settings::DensityName, + density: pebrel_settings::DensityName, native_layout: Option<(f32, f32)>, ) -> f32 { native_layout.map_or_else(|| title_bar_height(density), |(height, _)| height) @@ -141,7 +141,7 @@ impl NebulaWorkspace { window: &mut Window, cx: &mut Context, ) -> gpui::Div { - let top_tabs = self.tabs_position == nebula_settings::TabsPositionName::Top; + let top_tabs = self.tabs_position == pebrel_settings::TabsPositionName::Top; let native_layout = crate::platform::window_chrome::layout(window); let title_bar_height = effective_title_bar_height(self.density, native_layout); let bar = TitleBar::new() @@ -222,7 +222,7 @@ mod tests { let workspace = workspace.unwrap(); window.simulate_resize(gpui::size(px(1200.0), px(800.0))); for position in - [nebula_settings::TabsPositionName::Sidebar, nebula_settings::TabsPositionName::Top] + [pebrel_settings::TabsPositionName::Sidebar, pebrel_settings::TabsPositionName::Top] { window.update(|window, cx| { workspace.update(cx, |workspace, cx| { @@ -276,7 +276,7 @@ mod tests { #[cfg(test)] mod density_tests { use super::{effective_title_bar_height, title_bar_height}; - use nebula_settings::DensityName; + use pebrel_settings::DensityName; #[test] fn content_density_preserves_title_bar_height_and_native_layout() { diff --git a/nebula_app/src/gpui_shell/workspace/windowing.rs b/pebrel_app/src/gpui_shell/workspace/windowing.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/windowing.rs rename to pebrel_app/src/gpui_shell/workspace/windowing.rs index db15c4109..f72aa5bc7 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing.rs @@ -37,7 +37,7 @@ use gpui::{ Styled as _, Subscription, WeakEntity, Window, div, px, }; use gpui_component::Root; -use nebula_split::SplitTree; +use pebrel_split::SplitTree; use serde_json::json; use super::session_persistence::{SaveReason, SessionPersistence, combine_sessions}; @@ -76,8 +76,8 @@ pub(super) fn report_quick_terminal_failure(error: &str, cx: &mut App) -> bool { pub(crate) fn toggle_quick_terminal_window_with_token(cx: &mut App, token: Option<&str>) { quick_window::toggle_quick_terminal_window(cx); let Some(token) = token else { return }; - let handle = if nebula_settings::RuntimeSettings::load().quick_terminal_mode - == nebula_settings::QuickTerminalMode::Existing + let handle = if pebrel_settings::RuntimeSettings::load().quick_terminal_mode + == pebrel_settings::QuickTerminalMode::Existing { entries_by_mru(cx).first().map(|entry| entry.handle) } else { @@ -207,7 +207,7 @@ pub(crate) struct WindowRegistry { quit_pending: bool, update_restore_windows: Option>>, quick_terminal: Option, - quick_size_dirty: Option, + quick_size_dirty: Option, _subscriptions: Vec, } @@ -366,7 +366,7 @@ fn open_workspace_window_with_visibility( start_hidden: bool, ) -> gpui::Result<(u64, Entity)> { let (runtime_window_id, runtime_hub) = allocate_window(cx); - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); startup_geometry::load_restore(runtime_window_id, &startup, role, cx); let mut options = startup_geometry::options(cx, focus, role, runtime.sidebar_width, runtime_window_id); @@ -536,11 +536,11 @@ fn entries_by_mru(cx: &mut App) -> Vec { } fn select_mru_window( - behavior: nebula_settings::WindowingBehaviorName, + behavior: pebrel_settings::WindowingBehaviorName, cx: &mut App, ) -> Option { let entries = entries_by_mru(cx); - if behavior != nebula_settings::WindowingBehaviorName::UseExisting { + if behavior != pebrel_settings::WindowingBehaviorName::UseExisting { return entries.into_iter().next(); } @@ -731,7 +731,7 @@ fn route_entry(command: &RuntimeCommand, cx: &mut App) -> Result, cx: &mut App) { let target = pane_id.and_then(|pane_id| entry_with_pane(pane_id, cx)).or_else(|| { select_mru_window( - nebula_settings::RuntimeSettings::load().windowing_behavior, + pebrel_settings::RuntimeSettings::load().windowing_behavior, cx, ) }); @@ -913,8 +913,8 @@ fn dispatch_runtime(dispatch: Arc, cx: &mut App) { return; }, RuntimeCommand::NewTab { window_id: None, cwd, shell_id } - if nebula_settings::RuntimeSettings::load().windowing_behavior - == nebula_settings::WindowingBehaviorName::UseNew => + if pebrel_settings::RuntimeSettings::load().windowing_behavior + == pebrel_settings::WindowingBehaviorName::UseNew => { let response = open_runtime_window(cx, cwd.clone(), shell_id.clone()).map( |(window_id, pane_id)| { @@ -1041,7 +1041,7 @@ fn focus_workspace_window(workspace: &mut NebulaWorkspace, window: &mut Window) pub(super) fn persist_quick_size(cx: &mut App) { let Some(size) = cx.global::().quick_size_dirty else { return }; - match nebula_settings::persist_keys(&[ + match pebrel_settings::persist_keys(&[ ("quick_terminal_width", size.width.to_string()), ("quick_terminal_height", size.height.to_string()), ]) { diff --git a/nebula_app/src/gpui_shell/workspace/windowing/elevated_launch.rs b/pebrel_app/src/gpui_shell/workspace/windowing/elevated_launch.rs similarity index 98% rename from nebula_app/src/gpui_shell/workspace/windowing/elevated_launch.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/elevated_launch.rs index 66fe8a4fa..96fdc474f 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/elevated_launch.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/elevated_launch.rs @@ -34,8 +34,8 @@ fn open(request: &Request, cx: &mut App) -> Result<(u64, u64), ApiError> { return open_update_windows(sessions, None, None, cx); } let startup = startup(request)?; - let behavior = nebula_settings::RuntimeSettings::load().windowing_behavior; - let target = (behavior != nebula_settings::WindowingBehaviorName::UseNew) + let behavior = pebrel_settings::RuntimeSettings::load().windowing_behavior; + let target = (behavior != pebrel_settings::WindowingBehaviorName::UseNew) .then(|| select_mru_window(behavior, cx)) .flatten(); let Some(target) = target else { @@ -72,7 +72,7 @@ mod tests { use crate::gpui_shell::settings_fixture::{SettingsBytesGuard, lock_theme_studio}; fn configure(behavior: &str) { - let path = nebula_settings::settings_path(); + let path = pebrel_settings::settings_path(); std::fs::create_dir_all(path.parent().unwrap()).unwrap(); std::fs::write(path, format!("windowing_behavior={behavior}\nrestore_session=0\ntray=0\n")) .unwrap(); diff --git a/nebula_app/src/gpui_shell/workspace/windowing/linux_native_tests.rs b/pebrel_app/src/gpui_shell/workspace/windowing/linux_native_tests.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/windowing/linux_native_tests.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/linux_native_tests.rs diff --git a/nebula_app/src/gpui_shell/workspace/windowing/quick_window.rs b/pebrel_app/src/gpui_shell/workspace/windowing/quick_window.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/windowing/quick_window.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/quick_window.rs index 880c2b55e..f49c6402b 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/quick_window.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/quick_window.rs @@ -49,7 +49,7 @@ pub(in crate::gpui_shell::workspace) fn quick_terminal_bounds_changed( if resized { let scale = window.scale_factor().max(1.0); cx.global_mut::().quick_size_dirty = - nebula_settings::QuickTerminalSize::new(width as f32 / scale, height as f32 / scale); + pebrel_settings::QuickTerminalSize::new(width as f32 / scale, height as f32 / scale); } } @@ -58,8 +58,8 @@ pub(in crate::gpui_shell::workspace) fn quick_terminal_bounds_changed( /// 已在前台时才向上收起。 pub(crate) fn toggle_quick_terminal_window(cx: &mut App) { prune_entries(cx); - if nebula_settings::RuntimeSettings::load().quick_terminal_mode - == nebula_settings::QuickTerminalMode::Existing + if pebrel_settings::RuntimeSettings::load().quick_terminal_mode + == pebrel_settings::QuickTerminalMode::Existing { if let Some(entry) = entries_by_mru(cx).into_iter().next() { focus_entry(&entry, None, cx); @@ -137,7 +137,7 @@ fn open_quick_terminal_window(cx: &mut App) { let anchor_hwnd = quick_terminal_anchor_hwnd(cx); let Some(geometry) = super::super::quick_terminal::native_geometry( anchor_hwnd, - nebula_settings::RuntimeSettings::load().quick_terminal_size, + pebrel_settings::RuntimeSettings::load().quick_terminal_size, ) else { log::warn!("quick terminal could not resolve a target monitor"); return; diff --git a/nebula_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs b/pebrel_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs similarity index 95% rename from nebula_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs index 86bb4e56b..6acdae6f5 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/quick_window_unix.rs @@ -14,8 +14,8 @@ pub(in crate::gpui_shell::workspace) fn observe_window_bounds( pub(crate) fn toggle_quick_terminal_window(cx: &mut App) { prune_entries(cx); - if nebula_settings::RuntimeSettings::load().quick_terminal_mode - == nebula_settings::QuickTerminalMode::Existing + if pebrel_settings::RuntimeSettings::load().quick_terminal_mode + == pebrel_settings::QuickTerminalMode::Existing { if let Some(entry) = entries_by_mru(cx).into_iter().next() { focus_entry(&entry, None, cx); @@ -110,7 +110,7 @@ pub(in crate::gpui_shell::workspace) fn quick_terminal_bounds_changed( return; } let bounds = window.window_bounds().get_bounds(); - cx.global_mut::().quick_size_dirty = nebula_settings::QuickTerminalSize::new( + cx.global_mut::().quick_size_dirty = pebrel_settings::QuickTerminalSize::new( bounds.size.width.into(), bounds.size.height.into(), ); diff --git a/nebula_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs b/pebrel_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs similarity index 97% rename from nebula_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs index 0077d154a..c549ca137 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/runtime_resize_tests.rs @@ -1,7 +1,7 @@ use super::*; use crate::gpui_shell::terminal::view::TerminalLaunch; use gpui::{TestAppContext, point, size}; -use nebula_terminal::event_loop::Msg; +use pebrel_terminal::event_loop::Msg; #[gpui::test] fn resize_reply_commits_both_pty_sizes_before_the_next_input(cx: &mut TestAppContext) { @@ -20,7 +20,7 @@ fn resize_reply_commits_both_pty_sizes_before_the_next_input(cx: &mut TestAppCon (80, 24), TerminalLaunch::Local { cwd: None, - shell: Some(nebula_terminal::tty::Shell::new( + shell: Some(pebrel_terminal::tty::Shell::new( "pebrel-test-missing-shell-executable".into(), vec![], )), @@ -51,7 +51,7 @@ fn resize_reply_commits_both_pty_sizes_before_the_next_input(cx: &mut TestAppCon assert!(tree.split_leaf( ids[0], ids[1], - nebula_split::SplitDirection::LeftRight, + pebrel_split::SplitDirection::LeftRight, 0.5 )); workspace.insert_tab_at( diff --git a/nebula_app/src/gpui_shell/workspace/windowing/shutdown.rs b/pebrel_app/src/gpui_shell/workspace/windowing/shutdown.rs similarity index 100% rename from nebula_app/src/gpui_shell/workspace/windowing/shutdown.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/shutdown.rs diff --git a/nebula_app/src/gpui_shell/workspace/windowing/startup.rs b/pebrel_app/src/gpui_shell/workspace/windowing/startup.rs similarity index 95% rename from nebula_app/src/gpui_shell/workspace/windowing/startup.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/startup.rs index 788a95ff6..4217ec531 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/startup.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/startup.rs @@ -38,7 +38,7 @@ pub(crate) fn open_initial_window( }; let start_hidden = initial_window_hidden( &startup, - &nebula_settings::RuntimeSettings::load(), + &pebrel_settings::RuntimeSettings::load(), launched_at_login, ); open_workspace_window_with_visibility( @@ -55,7 +55,7 @@ pub(crate) fn open_initial_window( fn initial_window_hidden( startup: &WorkspaceStartup, - settings: &nebula_settings::RuntimeSettings, + settings: &pebrel_settings::RuntimeSettings, launched_at_login: bool, ) -> bool { matches!(startup, WorkspaceStartup::RestoreOrDefault) @@ -103,11 +103,11 @@ mod startup_tests { #[gpui::test] fn launch_visibility_reaches_the_actual_workspace(cx: &mut gpui::TestAppContext) { use crate::gpui_shell::settings_fixture::{SettingsBytesGuard, lock_theme_studio}; - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; let _lock = lock_theme_studio(); let _settings_guard = SettingsBytesGuard::capture(); - nebula_settings::persist_keys(&[("silent_start", "1".into()), ("tray", "1".into())]) + pebrel_settings::persist_keys(&[("silent_start", "1".into()), ("tray", "1".into())]) .expect("persist the launch settings consumed by the workspace"); cx.update(|cx| { gpui_component::init(cx); @@ -145,7 +145,7 @@ mod startup_tests { #[test] fn only_login_session_restore_can_start_hidden() { - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; let settings = RuntimeSettings::from_raw(&RawSettings::from_text("silent_start=1\ntray=1")); let restored = initial_startup(None, None, false); @@ -226,8 +226,8 @@ mod startup_tests { let crate::session::LaunchSession::Shell { program, args, .. } = launch else { panic!("expected command shell"); }; - let mut options = nebula_terminal::tty::Options { - shell: Some(nebula_terminal::tty::Shell::new(program, args)), + let mut options = pebrel_terminal::tty::Options { + shell: Some(pebrel_terminal::tty::Shell::new(program, args)), working_directory: actual_cwd, ..Default::default() }; diff --git a/nebula_app/src/gpui_shell/workspace/windowing/startup_geometry.rs b/pebrel_app/src/gpui_shell/workspace/windowing/startup_geometry.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/windowing/startup_geometry.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/startup_geometry.rs index 23ba1ddab..3ea7040a2 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/startup_geometry.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/startup_geometry.rs @@ -130,7 +130,7 @@ pub(super) fn options( cx.primary_display().map(|display| (Some(display.id()), display.bounds())) }) .unwrap_or_else(|| (None, Bounds::centered(None, size(px(1080.0), px(720.0)), cx))); - let remembered = nebula_settings::RuntimeSettings::load() + let remembered = pebrel_settings::RuntimeSettings::load() .quick_terminal_size .map(|size| size.fit(visible.size.width.into(), visible.size.height.into())); let width = remembered.map_or(visible.size.width, |size| px(size.width)); diff --git a/nebula_app/src/gpui_shell/workspace/windowing/transfer_tests.rs b/pebrel_app/src/gpui_shell/workspace/windowing/transfer_tests.rs similarity index 99% rename from nebula_app/src/gpui_shell/workspace/windowing/transfer_tests.rs rename to pebrel_app/src/gpui_shell/workspace/windowing/transfer_tests.rs index 5ce7eab50..8bf0fe230 100644 --- a/nebula_app/src/gpui_shell/workspace/windowing/transfer_tests.rs +++ b/pebrel_app/src/gpui_shell/workspace/windowing/transfer_tests.rs @@ -27,7 +27,7 @@ pub(super) fn open_test_window(cx: &mut App, count: usize) -> (u64, Entity Option { - nebula_settings::LanguagePref::from_settings(value).map(Self::from) + pebrel_settings::LanguagePref::from_settings(value).map(Self::from) } pub const fn as_str(self) -> &'static str { @@ -22,9 +22,9 @@ impl LanguagePreference { impl UiLanguage { pub fn completion_style_label( self, - style: nebula_settings::CompletionStyleName, + style: pebrel_settings::CompletionStyleName, ) -> &'static str { - use nebula_settings::CompletionStyleName; + use pebrel_settings::CompletionStyleName; self.text(match style { CompletionStyleName::Inline => Message::SettingsCompletionInline, CompletionStyleName::Popup => Message::SettingsCompletionPopup, @@ -34,7 +34,7 @@ impl UiLanguage { pub fn for_locale(locale: Option<&str>) -> Self { locale - .and_then(nebula_settings::LanguagePref::from_locale) + .and_then(pebrel_settings::LanguagePref::from_locale) .and_then(|preference| LanguagePreference::from(preference).explicit()) .unwrap_or(Self::EnUs) } diff --git a/nebula_app/src/i18n/outcomes.rs b/pebrel_app/src/i18n/outcomes.rs similarity index 100% rename from nebula_app/src/i18n/outcomes.rs rename to pebrel_app/src/i18n/outcomes.rs diff --git a/nebula_app/src/i18n/tests.rs b/pebrel_app/src/i18n/tests.rs similarity index 98% rename from nebula_app/src/i18n/tests.rs rename to pebrel_app/src/i18n/tests.rs index 08342d65e..20286167f 100644 --- a/nebula_app/src/i18n/tests.rs +++ b/pebrel_app/src/i18n/tests.rs @@ -2,7 +2,7 @@ use super::{LanguagePreference, Message, UiLanguage}; #[test] fn language_metadata_and_settings_values_remain_in_sync() { - assert_eq!(UiLanguage::ALL.len(), nebula_settings::LanguagePref::LANGUAGES.len()); + assert_eq!(UiLanguage::ALL.len(), pebrel_settings::LanguagePref::LANGUAGES.len()); for preference in LanguagePreference::ALL { assert_eq!(LanguagePreference::parse(preference.as_str()), Some(*preference)); if let Some(language) = preference.explicit() { diff --git a/nebula_app/src/input/action.rs b/pebrel_app/src/input/action.rs similarity index 98% rename from nebula_app/src/input/action.rs rename to pebrel_app/src/input/action.rs index 4935befde..96e82c14b 100644 --- a/nebula_app/src/input/action.rs +++ b/pebrel_app/src/input/action.rs @@ -4,13 +4,13 @@ use log::debug; #[cfg(target_os = "macos")] use winit::platform::macos::ActiveEventLoopExtMacOS; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::{Dimensions, Scroll}; -use nebula_terminal::index::{Boundary, Direction, Side}; -use nebula_terminal::selection::SelectionType; -use nebula_terminal::term::{ClipboardType, TermMode}; -use nebula_terminal::vi_mode::ViMotion; -use nebula_terminal::vte::ansi::{ClearMode, Handler}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::{Dimensions, Scroll}; +use pebrel_terminal::index::{Boundary, Direction, Side}; +use pebrel_terminal::selection::SelectionType; +use pebrel_terminal::term::{ClipboardType, TermMode}; +use pebrel_terminal::vi_mode::ViMotion; +use pebrel_terminal::vte::ansi::{ClearMode, Handler}; #[cfg(target_os = "macos")] use crate::config::window::Decorations; diff --git a/nebula_app/src/input/chrome.rs b/pebrel_app/src/input/chrome.rs similarity index 99% rename from nebula_app/src/input/chrome.rs rename to pebrel_app/src/input/chrome.rs index 1623e5d0b..3017b5211 100644 --- a/nebula_app/src/input/chrome.rs +++ b/pebrel_app/src/input/chrome.rs @@ -4,9 +4,9 @@ use std::time::{Duration, Instant}; use winit::event::{ElementState, MouseButton}; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::{Dimensions, Scroll}; -use nebula_terminal::term::ClipboardType; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::{Dimensions, Scroll}; +use pebrel_terminal::term::ClipboardType; use crate::event::{ClickState, Event, EventType}; use crate::scheduler::{TimerId, Topic}; diff --git a/nebula_app/src/input/keyboard.rs b/pebrel_app/src/input/keyboard.rs similarity index 99% rename from nebula_app/src/input/keyboard.rs rename to pebrel_app/src/input/keyboard.rs index 921b30dcb..68eefb7b6 100644 --- a/nebula_app/src/input/keyboard.rs +++ b/pebrel_app/src/input/keyboard.rs @@ -5,8 +5,8 @@ use winit::keyboard::{Key, KeyLocation, ModifiersState, NamedKey}; #[cfg(target_os = "macos")] use winit::platform::macos::OptionAsAlt; -use nebula_terminal::event::EventListener; -use nebula_terminal::term::{ClipboardType, TermMode}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::term::{ClipboardType, TermMode}; use winit::platform::modifier_supplement::KeyEventExtModifierSupplement; use crate::config::{Action, BindingKey, BindingMode, KeyBinding}; diff --git a/nebula_app/src/input/latency.rs b/pebrel_app/src/input/latency.rs similarity index 100% rename from nebula_app/src/input/latency.rs rename to pebrel_app/src/input/latency.rs diff --git a/nebula_app/src/input/mod.rs b/pebrel_app/src/input/mod.rs similarity index 97% rename from nebula_app/src/input/mod.rs rename to pebrel_app/src/input/mod.rs index abf9b2e0b..25c428e95 100644 --- a/nebula_app/src/input/mod.rs +++ b/pebrel_app/src/input/mod.rs @@ -13,12 +13,12 @@ use winit::event::Modifiers; #[cfg(target_os = "macos")] use winit::event_loop::ActiveEventLoop; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Scroll; -use nebula_terminal::index::{Direction, Point, Side}; -use nebula_terminal::selection::SelectionType; -use nebula_terminal::term::search::Match; -use nebula_terminal::term::{ClipboardType, Term}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Scroll; +use pebrel_terminal::index::{Direction, Point, Side}; +use pebrel_terminal::selection::SelectionType; +use pebrel_terminal::term::search::Match; +use pebrel_terminal::term::{ClipboardType, Term}; use crate::clipboard::Clipboard; use crate::config::UiConfig; diff --git a/nebula_app/src/input/mouse.rs b/pebrel_app/src/input/mouse.rs similarity index 99% rename from nebula_app/src/input/mouse.rs rename to pebrel_app/src/input/mouse.rs index 43b259203..8a13ee484 100644 --- a/nebula_app/src/input/mouse.rs +++ b/pebrel_app/src/input/mouse.rs @@ -8,11 +8,11 @@ use winit::event::{ElementState, Modifiers, MouseButton, MouseScrollDelta, Touch use winit::keyboard::ModifiersState; use winit::window::CursorIcon; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::{Dimensions, Scroll}; -use nebula_terminal::index::{Column, Line, Point, Side}; -use nebula_terminal::selection::SelectionType; -use nebula_terminal::term::{ClipboardType, TermMode}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::{Dimensions, Scroll}; +use pebrel_terminal::index::{Column, Line, Point, Side}; +use pebrel_terminal::selection::SelectionType; +use pebrel_terminal::term::{ClipboardType, TermMode}; use crate::config::{BindingMode, MouseEvent}; use crate::display::hint::HintMatch; diff --git a/nebula_app/src/input/terminal_input.rs b/pebrel_app/src/input/terminal_input.rs similarity index 99% rename from nebula_app/src/input/terminal_input.rs rename to pebrel_app/src/input/terminal_input.rs index c61f53303..29c14aefe 100644 --- a/nebula_app/src/input/terminal_input.rs +++ b/pebrel_app/src/input/terminal_input.rs @@ -22,7 +22,7 @@ use winit::platform::modifier_supplement::KeyEventExtModifierSupplement; #[cfg(target_os = "windows")] use winit::platform::windows::{KeyEventExtWindows, RawKeyEventInfo}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::term::TermMode; use crate::runtime_api::{RuntimeKey, RuntimeKeyModifiers}; diff --git a/nebula_app/src/input/tests.rs b/pebrel_app/src/input/tests.rs similarity index 98% rename from nebula_app/src/input/tests.rs rename to pebrel_app/src/input/tests.rs index e992fa906..5081f2ce9 100644 --- a/nebula_app/src/input/tests.rs +++ b/pebrel_app/src/input/tests.rs @@ -8,11 +8,11 @@ use winit::event_loop::ActiveEventLoop; use winit::keyboard::{Key, ModifiersState}; use winit::window::WindowId; -use nebula_terminal::event::{Event as TerminalEvent, EventListener}; -use nebula_terminal::grid::Scroll; -use nebula_terminal::index::{Direction, Point, Side}; -use nebula_terminal::term::Term; -use nebula_terminal::term::search::Match; +use pebrel_terminal::event::{Event as TerminalEvent, EventListener}; +use pebrel_terminal::grid::Scroll; +use pebrel_terminal::index::{Direction, Point, Side}; +use pebrel_terminal::term::Term; +use pebrel_terminal::term::search::Match; use crate::clipboard::Clipboard; use crate::config::{Action, Binding, BindingMode, UiConfig}; diff --git a/nebula_app/src/input/touch.rs b/pebrel_app/src/input/touch.rs similarity index 99% rename from nebula_app/src/input/touch.rs rename to pebrel_app/src/input/touch.rs index 42dc9bdcc..b02ab4275 100644 --- a/nebula_app/src/input/touch.rs +++ b/pebrel_app/src/input/touch.rs @@ -5,8 +5,8 @@ use std::mem; use winit::event::{ElementState, MouseButton, Touch as TouchEvent, TouchPhase}; -use nebula_terminal::event::EventListener; -use nebula_terminal::term::TermMode; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::term::TermMode; use crate::display::window::ImeInhibitor; use crate::event::{TouchPurpose, TouchZoom}; diff --git a/nebula_app/src/logging.rs b/pebrel_app/src/logging.rs similarity index 98% rename from nebula_app/src/logging.rs rename to pebrel_app/src/logging.rs index 5ef90cac6..47c5db2e0 100644 --- a/nebula_app/src/logging.rs +++ b/pebrel_app/src/logging.rs @@ -29,7 +29,7 @@ pub const LOG_TARGET_IPC_CONFIG: &str = "nebula_log_window_config"; const LOG_PATH_ENV: &str = "PEBREL_LOG"; /// Logging target for config error messages. -pub const LOG_TARGET_CONFIG: &str = "nebula_config_derive"; +pub const LOG_TARGET_CONFIG: &str = "pebrel_config_derive"; /// Logging target for winit events. pub const LOG_TARGET_WINIT: &str = "nebula_winit_event"; @@ -78,8 +78,8 @@ const ALLOWED_TARGETS: &[&str] = &[ LOG_TARGET_IPC_CONFIG, LOG_TARGET_CONFIG, LOG_TARGET_WINIT, - "nebula_config_derive", - "nebula_terminal", + "pebrel_config_derive", + "pebrel_terminal", "nebula", "crossfont", ]; diff --git a/nebula_app/src/luau.rs b/pebrel_app/src/luau.rs similarity index 100% rename from nebula_app/src/luau.rs rename to pebrel_app/src/luau.rs diff --git a/nebula_app/src/macos/locale.rs b/pebrel_app/src/macos/locale.rs similarity index 100% rename from nebula_app/src/macos/locale.rs rename to pebrel_app/src/macos/locale.rs diff --git a/nebula_app/src/macos/mod.rs b/pebrel_app/src/macos/mod.rs similarity index 100% rename from nebula_app/src/macos/mod.rs rename to pebrel_app/src/macos/mod.rs diff --git a/nebula_app/src/macos/proc.rs b/pebrel_app/src/macos/proc.rs similarity index 100% rename from nebula_app/src/macos/proc.rs rename to pebrel_app/src/macos/proc.rs diff --git a/nebula_app/src/main.rs b/pebrel_app/src/main.rs similarity index 98% rename from nebula_app/src/main.rs rename to pebrel_app/src/main.rs index 1575bc0c0..fbc559df9 100644 --- a/nebula_app/src/main.rs +++ b/pebrel_app/src/main.rs @@ -34,7 +34,7 @@ use winit::event_loop::EventLoop; #[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))] use winit::raw_window_handle::{HasDisplayHandle, RawDisplayHandle}; -use nebula_terminal::tty; +use pebrel_terminal::tty; mod agent_env; mod ai_agents; @@ -207,7 +207,7 @@ fn main() -> Result<(), Box> { // Load command line options. let options = Options::new(); - if let Err(error) = nebula_settings::migrate_legacy_data() { + if let Err(error) = pebrel_settings::migrate_legacy_data() { platform::startup::report_error(&error, options.subcommands.is_none()); return Err(error.into()); } @@ -586,9 +586,9 @@ fn try_hand_over_to_resident(options: &Options) -> bool { return false; } let shell_id = terminal_options.shell_id(); - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); let launch_dir = resident_launch_directory(terminal_options, &settings); - if settings.windowing_behavior == nebula_settings::WindowingBehaviorName::UseNew { + if settings.windowing_behavior == pebrel_settings::WindowingBehaviorName::UseNew { return runtime_api::try_open_window_existing(launch_dir.as_deref(), shell_id.as_deref()); } if launch_dir.is_none() && runtime_api::try_open_default_tab_existing(shell_id.as_deref()) { @@ -607,7 +607,7 @@ fn try_hand_over_to_resident(options: &Options) -> bool { fn resident_launch_directory( options: &cli::TerminalOptions, - settings: &nebula_settings::RuntimeSettings, + settings: &pebrel_settings::RuntimeSettings, ) -> Option { #[cfg(feature = "gpui-shell")] let shell = options.command().map(Into::into).or_else(|| { @@ -628,7 +628,7 @@ fn resident_launch_directory( mod resident_launch_tests { use super::*; use clap::Parser as _; - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; #[test] fn ordinary_resident_launch_honors_the_configured_directory() { diff --git a/nebula_app/src/markdown/mod.rs b/pebrel_app/src/markdown/mod.rs similarity index 100% rename from nebula_app/src/markdown/mod.rs rename to pebrel_app/src/markdown/mod.rs diff --git a/nebula_app/src/markdown/parser.rs b/pebrel_app/src/markdown/parser.rs similarity index 100% rename from nebula_app/src/markdown/parser.rs rename to pebrel_app/src/markdown/parser.rs diff --git a/nebula_app/src/math/bitmap.rs b/pebrel_app/src/math/bitmap.rs similarity index 100% rename from nebula_app/src/math/bitmap.rs rename to pebrel_app/src/math/bitmap.rs diff --git a/nebula_app/src/math/cache.rs b/pebrel_app/src/math/cache.rs similarity index 100% rename from nebula_app/src/math/cache.rs rename to pebrel_app/src/math/cache.rs diff --git a/nebula_app/src/math/compile.rs b/pebrel_app/src/math/compile.rs similarity index 100% rename from nebula_app/src/math/compile.rs rename to pebrel_app/src/math/compile.rs diff --git a/nebula_app/src/math/font.rs b/pebrel_app/src/math/font.rs similarity index 100% rename from nebula_app/src/math/font.rs rename to pebrel_app/src/math/font.rs diff --git a/nebula_app/src/math/ir.rs b/pebrel_app/src/math/ir.rs similarity index 100% rename from nebula_app/src/math/ir.rs rename to pebrel_app/src/math/ir.rs diff --git a/nebula_app/src/math/layout.rs b/pebrel_app/src/math/layout.rs similarity index 100% rename from nebula_app/src/math/layout.rs rename to pebrel_app/src/math/layout.rs diff --git a/nebula_app/src/math/mod.rs b/pebrel_app/src/math/mod.rs similarity index 100% rename from nebula_app/src/math/mod.rs rename to pebrel_app/src/math/mod.rs diff --git a/nebula_app/src/math/parser.rs b/pebrel_app/src/math/parser.rs similarity index 100% rename from nebula_app/src/math/parser.rs rename to pebrel_app/src/math/parser.rs diff --git a/nebula_app/src/math/rasterizer.rs b/pebrel_app/src/math/rasterizer.rs similarity index 100% rename from nebula_app/src/math/rasterizer.rs rename to pebrel_app/src/math/rasterizer.rs diff --git a/nebula_app/src/math/spacing.rs b/pebrel_app/src/math/spacing.rs similarity index 100% rename from nebula_app/src/math/spacing.rs rename to pebrel_app/src/math/spacing.rs diff --git a/nebula_app/src/math/validate.rs b/pebrel_app/src/math/validate.rs similarity index 100% rename from nebula_app/src/math/validate.rs rename to pebrel_app/src/math/validate.rs diff --git a/nebula_app/src/message_bar.rs b/pebrel_app/src/message_bar.rs similarity index 99% rename from nebula_app/src/message_bar.rs rename to pebrel_app/src/message_bar.rs index b655b19b9..87d1795ed 100644 --- a/nebula_app/src/message_bar.rs +++ b/pebrel_app/src/message_bar.rs @@ -2,7 +2,7 @@ use std::collections::VecDeque; use unicode_width::UnicodeWidthChar; -use nebula_terminal::grid::Dimensions; +use pebrel_terminal::grid::Dimensions; use crate::display::SizeInfo; diff --git a/nebula_app/src/migrate/mod.rs b/pebrel_app/src/migrate/mod.rs similarity index 100% rename from nebula_app/src/migrate/mod.rs rename to pebrel_app/src/migrate/mod.rs diff --git a/nebula_app/src/migrate/yaml.rs b/pebrel_app/src/migrate/yaml.rs similarity index 100% rename from nebula_app/src/migrate/yaml.rs rename to pebrel_app/src/migrate/yaml.rs diff --git a/nebula_app/src/mobile_connection.rs b/pebrel_app/src/mobile_connection.rs similarity index 100% rename from nebula_app/src/mobile_connection.rs rename to pebrel_app/src/mobile_connection.rs diff --git a/nebula_app/src/mobile_connection/preferences.rs b/pebrel_app/src/mobile_connection/preferences.rs similarity index 100% rename from nebula_app/src/mobile_connection/preferences.rs rename to pebrel_app/src/mobile_connection/preferences.rs diff --git a/nebula_app/src/mobile_connection/recovery.rs b/pebrel_app/src/mobile_connection/recovery.rs similarity index 100% rename from nebula_app/src/mobile_connection/recovery.rs rename to pebrel_app/src/mobile_connection/recovery.rs diff --git a/nebula_app/src/motion.rs b/pebrel_app/src/motion.rs similarity index 100% rename from nebula_app/src/motion.rs rename to pebrel_app/src/motion.rs diff --git a/nebula_app/src/mux.rs b/pebrel_app/src/mux.rs similarity index 100% rename from nebula_app/src/mux.rs rename to pebrel_app/src/mux.rs diff --git a/nebula_app/src/native_result_model.rs b/pebrel_app/src/native_result_model.rs similarity index 99% rename from nebula_app/src/native_result_model.rs rename to pebrel_app/src/native_result_model.rs index 7fae8e552..14fc9ac62 100644 --- a/nebula_app/src/native_result_model.rs +++ b/pebrel_app/src/native_result_model.rs @@ -42,7 +42,7 @@ pub(crate) struct Table { impl Table { pub fn parse(text: &str) -> Result { - if text.len() > nebula_terminal::inline_content::MAX_CONTENT_BYTES { + if text.len() > pebrel_terminal::inline_content::MAX_CONTENT_BYTES { return Err("limit"); } let values = bounded_values(text)?; diff --git a/nebula_app/src/native_result_model/diff.rs b/pebrel_app/src/native_result_model/diff.rs similarity index 99% rename from nebula_app/src/native_result_model/diff.rs rename to pebrel_app/src/native_result_model/diff.rs index 62ab8d881..fadb2cda9 100644 --- a/nebula_app/src/native_result_model/diff.rs +++ b/pebrel_app/src/native_result_model/diff.rs @@ -91,7 +91,7 @@ impl Pending { impl Patch { pub fn parse(text: &str, from_grid: bool) -> Result { - if text.len() > nebula_terminal::inline_content::MAX_CONTENT_BYTES { + if text.len() > pebrel_terminal::inline_content::MAX_CONTENT_BYTES { return Err("limit"); } let mut files = Vec::new(); diff --git a/nebula_app/src/native_result_model/directory.rs b/pebrel_app/src/native_result_model/directory.rs similarity index 99% rename from nebula_app/src/native_result_model/directory.rs rename to pebrel_app/src/native_result_model/directory.rs index bf3ae0ee5..b263d1de9 100644 --- a/nebula_app/src/native_result_model/directory.rs +++ b/pebrel_app/src/native_result_model/directory.rs @@ -18,7 +18,7 @@ pub(crate) struct FileMetadata { impl Table { pub fn parse_directory(text: &str, powershell: bool) -> Result { - if text.len() > nebula_terminal::inline_content::MAX_CONTENT_BYTES { + if text.len() > pebrel_terminal::inline_content::MAX_CONTENT_BYTES { return Err("limit"); } let lines = text diff --git a/nebula_app/src/native_result_model/json.rs b/pebrel_app/src/native_result_model/json.rs similarity index 99% rename from nebula_app/src/native_result_model/json.rs rename to pebrel_app/src/native_result_model/json.rs index dddb8cf85..dc9c3e9a3 100644 --- a/nebula_app/src/native_result_model/json.rs +++ b/pebrel_app/src/native_result_model/json.rs @@ -39,7 +39,7 @@ pub(crate) struct Row { impl Document { pub fn parse(text: &str) -> Result { - if text.len() > nebula_terminal::inline_content::MAX_CONTENT_BYTES { + if text.len() > pebrel_terminal::inline_content::MAX_CONTENT_BYTES { return Err("limit"); } if text.trim().is_empty() { diff --git a/nebula_app/src/native_view_cli.rs b/pebrel_app/src/native_view_cli.rs similarity index 99% rename from nebula_app/src/native_view_cli.rs rename to pebrel_app/src/native_view_cli.rs index 0d9b3296b..3a39f9bbc 100644 --- a/nebula_app/src/native_view_cli.rs +++ b/pebrel_app/src/native_view_cli.rs @@ -5,7 +5,7 @@ use std::path::PathBuf; use std::process::{Command, Stdio}; use clap::{Args, ValueEnum}; -use nebula_terminal::inline_content::{MAX_CONTENT_BYTES, MAX_TITLE_BYTES, Packet}; +use pebrel_terminal::inline_content::{MAX_CONTENT_BYTES, MAX_TITLE_BYTES, Packet}; #[derive(Debug, Clone, Copy, ValueEnum)] pub enum Kind { diff --git a/nebula_app/src/nebula_history.rs b/pebrel_app/src/nebula_history.rs similarity index 100% rename from nebula_app/src/nebula_history.rs rename to pebrel_app/src/nebula_history.rs diff --git a/nebula_app/src/nebula_history/deletion_tests.rs b/pebrel_app/src/nebula_history/deletion_tests.rs similarity index 100% rename from nebula_app/src/nebula_history/deletion_tests.rs rename to pebrel_app/src/nebula_history/deletion_tests.rs diff --git a/nebula_app/src/notify.rs b/pebrel_app/src/notify.rs similarity index 99% rename from nebula_app/src/notify.rs rename to pebrel_app/src/notify.rs index 5e41ca0dd..01c476cd7 100644 --- a/nebula_app/src/notify.rs +++ b/pebrel_app/src/notify.rs @@ -279,7 +279,7 @@ impl Notification { } fn notification_language() -> crate::i18n::UiLanguage { - crate::i18n::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::i18n::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved() } diff --git a/nebula_app/src/panic.rs b/pebrel_app/src/panic.rs similarity index 98% rename from nebula_app/src/panic.rs rename to pebrel_app/src/panic.rs index 55a971b9c..8dbe79af2 100644 --- a/nebula_app/src/panic.rs +++ b/pebrel_app/src/panic.rs @@ -7,7 +7,7 @@ use windows_sys::Win32::UI::WindowsAndMessaging::{ MB_ICONERROR, MB_OK, MB_SETFOREGROUND, MB_TASKMODAL, MessageBoxW, }; -use nebula_terminal::tty::windows::win32_string; +use pebrel_terminal::tty::windows::win32_string; /// Startup failures precede logger/panic initialization and must not open the data directory. pub fn report_startup_error(error: &dyn std::fmt::Display, gui_launch: bool) { diff --git a/nebula_app/src/platform/acrylic.rs b/pebrel_app/src/platform/acrylic.rs similarity index 100% rename from nebula_app/src/platform/acrylic.rs rename to pebrel_app/src/platform/acrylic.rs diff --git a/nebula_app/src/platform/acrylic/bindings.rs b/pebrel_app/src/platform/acrylic/bindings.rs similarity index 100% rename from nebula_app/src/platform/acrylic/bindings.rs rename to pebrel_app/src/platform/acrylic/bindings.rs diff --git a/nebula_app/src/platform/acrylic/composition.rs b/pebrel_app/src/platform/acrylic/composition.rs similarity index 100% rename from nebula_app/src/platform/acrylic/composition.rs rename to pebrel_app/src/platform/acrylic/composition.rs diff --git a/nebula_app/src/platform/acrylic/controller.rs b/pebrel_app/src/platform/acrylic/controller.rs similarity index 100% rename from nebula_app/src/platform/acrylic/controller.rs rename to pebrel_app/src/platform/acrylic/controller.rs diff --git a/nebula_app/src/platform/acrylic/gpui_tests.rs b/pebrel_app/src/platform/acrylic/gpui_tests.rs similarity index 99% rename from nebula_app/src/platform/acrylic/gpui_tests.rs rename to pebrel_app/src/platform/acrylic/gpui_tests.rs index 726ff01c5..f07fae46e 100644 --- a/nebula_app/src/platform/acrylic/gpui_tests.rs +++ b/pebrel_app/src/platform/acrylic/gpui_tests.rs @@ -6,7 +6,7 @@ use crate::gpui_shell::wallpaper::{ use crate::platform::acrylic; use gpui::{App, AppContext, AsyncApp, Context, Render, WindowHandle, WindowOptions}; use gpui::{IntoElement, Styled, Window, WindowBackgroundAppearance, div}; -use nebula_settings::BlurModeName; +use pebrel_settings::BlurModeName; use std::cell::{Cell, RefCell}; use std::rc::Rc; use std::time::Duration; diff --git a/nebula_app/src/platform/acrylic/runtime.rs b/pebrel_app/src/platform/acrylic/runtime.rs similarity index 100% rename from nebula_app/src/platform/acrylic/runtime.rs rename to pebrel_app/src/platform/acrylic/runtime.rs diff --git a/nebula_app/src/platform/acrylic/tests.rs b/pebrel_app/src/platform/acrylic/tests.rs similarity index 100% rename from nebula_app/src/platform/acrylic/tests.rs rename to pebrel_app/src/platform/acrylic/tests.rs diff --git a/nebula_app/src/platform/acrylic/transitions.rs b/pebrel_app/src/platform/acrylic/transitions.rs similarity index 100% rename from nebula_app/src/platform/acrylic/transitions.rs rename to pebrel_app/src/platform/acrylic/transitions.rs diff --git a/nebula_app/src/platform/agent_launch.rs b/pebrel_app/src/platform/agent_launch.rs similarity index 100% rename from nebula_app/src/platform/agent_launch.rs rename to pebrel_app/src/platform/agent_launch.rs diff --git a/nebula_app/src/platform/ai_session_identity.rs b/pebrel_app/src/platform/ai_session_identity.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity.rs rename to pebrel_app/src/platform/ai_session_identity.rs diff --git a/nebula_app/src/platform/ai_session_identity/macos.rs b/pebrel_app/src/platform/ai_session_identity/macos.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/macos.rs rename to pebrel_app/src/platform/ai_session_identity/macos.rs diff --git a/nebula_app/src/platform/ai_session_identity/tests/proc_fixture.rs b/pebrel_app/src/platform/ai_session_identity/tests/proc_fixture.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/tests/proc_fixture.rs rename to pebrel_app/src/platform/ai_session_identity/tests/proc_fixture.rs diff --git a/nebula_app/src/platform/ai_session_identity/windows.rs b/pebrel_app/src/platform/ai_session_identity/windows.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/windows.rs rename to pebrel_app/src/platform/ai_session_identity/windows.rs diff --git a/nebula_app/src/platform/ai_session_identity/windows/tests.rs b/pebrel_app/src/platform/ai_session_identity/windows/tests.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/windows/tests.rs rename to pebrel_app/src/platform/ai_session_identity/windows/tests.rs diff --git a/nebula_app/src/platform/ai_session_identity/windows/worker.rs b/pebrel_app/src/platform/ai_session_identity/windows/worker.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/windows/worker.rs rename to pebrel_app/src/platform/ai_session_identity/windows/worker.rs diff --git a/nebula_app/src/platform/ai_session_identity/windows/worker/tests.rs b/pebrel_app/src/platform/ai_session_identity/windows/worker/tests.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/windows/worker/tests.rs rename to pebrel_app/src/platform/ai_session_identity/windows/worker/tests.rs diff --git a/nebula_app/src/platform/ai_session_identity/windows/worker/update_tests.rs b/pebrel_app/src/platform/ai_session_identity/windows/worker/update_tests.rs similarity index 100% rename from nebula_app/src/platform/ai_session_identity/windows/worker/update_tests.rs rename to pebrel_app/src/platform/ai_session_identity/windows/worker/update_tests.rs diff --git a/nebula_app/src/platform/background_media.rs b/pebrel_app/src/platform/background_media.rs similarity index 100% rename from nebula_app/src/platform/background_media.rs rename to pebrel_app/src/platform/background_media.rs diff --git a/nebula_app/src/platform/background_media/gif_decoder.rs b/pebrel_app/src/platform/background_media/gif_decoder.rs similarity index 99% rename from nebula_app/src/platform/background_media/gif_decoder.rs rename to pebrel_app/src/platform/background_media/gif_decoder.rs index f1fcc7d41..77ea721bf 100644 --- a/nebula_app/src/platform/background_media/gif_decoder.rs +++ b/pebrel_app/src/platform/background_media/gif_decoder.rs @@ -462,7 +462,7 @@ mod tests { fn fixtures() -> std::path::PathBuf { std::env::var_os("PEBREL_MEDIA_FIXTURE_DIR").map(PathBuf::from).unwrap_or_else(|| { Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../nebula_app/tests/fixtures/background-gif") + .join("../pebrel_app/tests/fixtures/background-gif") }) } #[test] diff --git a/nebula_app/src/platform/background_media/video.rs b/pebrel_app/src/platform/background_media/video.rs similarity index 100% rename from nebula_app/src/platform/background_media/video.rs rename to pebrel_app/src/platform/background_media/video.rs diff --git a/nebula_app/src/platform/background_media/video/media_foundation.rs b/pebrel_app/src/platform/background_media/video/media_foundation.rs similarity index 100% rename from nebula_app/src/platform/background_media/video/media_foundation.rs rename to pebrel_app/src/platform/background_media/video/media_foundation.rs diff --git a/nebula_app/src/platform/capabilities.rs b/pebrel_app/src/platform/capabilities.rs similarity index 100% rename from nebula_app/src/platform/capabilities.rs rename to pebrel_app/src/platform/capabilities.rs diff --git a/nebula_app/src/platform/credentials.rs b/pebrel_app/src/platform/credentials.rs similarity index 100% rename from nebula_app/src/platform/credentials.rs rename to pebrel_app/src/platform/credentials.rs diff --git a/nebula_app/src/platform/dirs.rs b/pebrel_app/src/platform/dirs.rs similarity index 97% rename from nebula_app/src/platform/dirs.rs rename to pebrel_app/src/platform/dirs.rs index c124c498a..49e2fff96 100644 --- a/nebula_app/src/platform/dirs.rs +++ b/pebrel_app/src/platform/dirs.rs @@ -57,9 +57,9 @@ pub fn data_dir() -> &'static Path { fn resolve_data_dir() -> PathBuf { // `pebrel_settings.txt`, runtime discovery, sessions, history, and imported // fonts must share one directory. The zero-dependency settings crate owns - // the environment/OS resolution so consumers outside `nebula_app` cannot + // the environment/OS resolution so consumers outside `pebrel_app` cannot // accidentally revive the old Linux/macOS paths. - nebula_settings::settings_dir() + pebrel_settings::settings_dir() } #[cfg(test)] diff --git a/nebula_app/src/platform/distribution.rs b/pebrel_app/src/platform/distribution.rs similarity index 100% rename from nebula_app/src/platform/distribution.rs rename to pebrel_app/src/platform/distribution.rs diff --git a/nebula_app/src/platform/effect_activity.rs b/pebrel_app/src/platform/effect_activity.rs similarity index 100% rename from nebula_app/src/platform/effect_activity.rs rename to pebrel_app/src/platform/effect_activity.rs diff --git a/nebula_app/src/platform/elevation.rs b/pebrel_app/src/platform/elevation.rs similarity index 100% rename from nebula_app/src/platform/elevation.rs rename to pebrel_app/src/platform/elevation.rs diff --git a/nebula_app/src/platform/elevation/handover.rs b/pebrel_app/src/platform/elevation/handover.rs similarity index 100% rename from nebula_app/src/platform/elevation/handover.rs rename to pebrel_app/src/platform/elevation/handover.rs diff --git a/nebula_app/src/platform/elevation/handover/security.rs b/pebrel_app/src/platform/elevation/handover/security.rs similarity index 99% rename from nebula_app/src/platform/elevation/handover/security.rs rename to pebrel_app/src/platform/elevation/handover/security.rs index b21d7008e..55ada30a1 100644 --- a/nebula_app/src/platform/elevation/handover/security.rs +++ b/pebrel_app/src/platform/elevation/handover/security.rs @@ -87,7 +87,7 @@ impl Identity { let mut scope = DefaultHasher::new(); // 同一程序/数据目录才共享窗口,隔离开发构建、便携目录和显式配置文件。 std::env::current_exe()?.canonicalize()?.hash(&mut scope); - std::path::absolute(nebula_settings::settings_dir())?.hash(&mut scope); + std::path::absolute(pebrel_settings::settings_dir())?.hash(&mut scope); config_file.map(std::path::absolute).transpose()?.hash(&mut scope); Ok(format!( "Pebrel.elevated-launch.v2.{}.{}.{:016x}", diff --git a/nebula_app/src/platform/elevation/handover/windows.rs b/pebrel_app/src/platform/elevation/handover/windows.rs similarity index 100% rename from nebula_app/src/platform/elevation/handover/windows.rs rename to pebrel_app/src/platform/elevation/handover/windows.rs diff --git a/nebula_app/src/platform/elevation/tests.rs b/pebrel_app/src/platform/elevation/tests.rs similarity index 100% rename from nebula_app/src/platform/elevation/tests.rs rename to pebrel_app/src/platform/elevation/tests.rs diff --git a/nebula_app/src/platform/environment.rs b/pebrel_app/src/platform/environment.rs similarity index 94% rename from nebula_app/src/platform/environment.rs rename to pebrel_app/src/platform/environment.rs index e9629a51a..306924505 100644 --- a/nebula_app/src/platform/environment.rs +++ b/pebrel_app/src/platform/environment.rs @@ -1,11 +1,11 @@ //! Startup aliases and platform compatibility for local terminal environments. /// Refresh local pane environments before adding identity and other pane overrides. -pub(crate) fn prepare_local_pty(options: &mut nebula_terminal::tty::Options) { +pub(crate) fn prepare_local_pty(options: &mut pebrel_terminal::tty::Options) { #[cfg(windows)] { // 同一次启动共用设置快照,避免重复读盘或两次读取间设置变化。 - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); super::launch_directory::prepare_wsl(options, settings.startup_directory.as_deref()); prepare_windows_local_pty(options, settings.refresh_environment); // Both Windows shells use this adapter after environment refresh. New @@ -21,9 +21,9 @@ pub(crate) fn prepare_local_pty(options: &mut nebula_terminal::tty::Options) { } #[cfg(windows)] -fn prepare_windows_local_pty(options: &mut nebula_terminal::tty::Options, refresh: bool) { +fn prepare_windows_local_pty(options: &mut pebrel_terminal::tty::Options, refresh: bool) { super::shell::prepare_startup_directory(options); - if refresh && let Err(error) = nebula_terminal::tty::refresh_environment(options) { + if refresh && let Err(error) = pebrel_terminal::tty::refresh_environment(options) { log::warn!("Could not refresh the Windows environment for a new pane: {error}"); } let inherited_override = @@ -36,7 +36,7 @@ const GROK_LEGACY_CONSOLE: &str = "GROK_FORCE_LEGACY_CONSOLE"; #[cfg(windows)] fn apply_local_console_defaults( - options: &mut nebula_terminal::tty::Options, + options: &mut pebrel_terminal::tty::Options, inherited_override: bool, ) { // The refreshed, complete environment is captured before the GPUI spawn @@ -115,7 +115,7 @@ mod tests { const PROBE: &str = "PEBREL_INHERITED_ENVIRONMENT_PROBE"; const SENTINEL: &str = "C:\\pebrel-parent-path-only;"; if std::env::var_os(PROBE).is_some() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [("PEBREL_PANE_VALUE".into(), "pane-override".into())].into_iter().collect(), ..Default::default() }; @@ -159,7 +159,7 @@ mod tests { #[cfg(windows)] #[test] fn local_terminal_defaults_enable_grok_unicode_without_changing_identity() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [("TERM_PROGRAM", "pebrel"), ("WSLENV", "KEEP/p")] .into_iter() .map(|(name, value)| (name.to_owned(), value.to_owned())) @@ -182,7 +182,7 @@ mod tests { fn local_terminal_defaults_preserve_explicit_grok_overrides_case_insensitively() { for name in [super::GROK_LEGACY_CONSOLE, "grok_force_legacy_console"] { for value in ["1", "true", "0", "false", ""] { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [ (name.to_owned(), value.to_owned()), ("TERM".to_owned(), "xterm-256color".to_owned()), @@ -203,7 +203,7 @@ mod tests { #[cfg(windows)] #[test] fn inherited_grok_override_only_applies_to_incomplete_environments() { - let mut options = nebula_terminal::tty::Options::default(); + let mut options = pebrel_terminal::tty::Options::default(); super::apply_local_console_defaults(&mut options, true); assert!(!options.env.contains_key(super::GROK_LEGACY_CONSOLE)); @@ -213,7 +213,7 @@ mod tests { super::apply_local_console_defaults(&mut options, true); assert_eq!(options.env[super::GROK_LEGACY_CONSOLE], "0"); - let mut fallback = nebula_terminal::tty::Options::default(); + let mut fallback = pebrel_terminal::tty::Options::default(); super::apply_local_console_defaults(&mut fallback, false); assert_eq!(fallback.env[super::GROK_LEGACY_CONSOLE], "0"); assert!(!fallback.env_is_complete); @@ -222,7 +222,7 @@ mod tests { #[cfg(windows)] #[test] fn complete_explorer_environment_advertises_truecolor_to_the_child_process() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: std::env::vars() .filter(|(name, _)| { !["TERM", "COLORTERM", "WT_SESSION", "TERM_PROGRAM"] @@ -269,7 +269,7 @@ mod tests { #[cfg(windows)] #[test] fn color_capability_defaults_preserve_explicit_overrides() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [ ("term", "dumb"), ("ColorTerm", "24bit"), @@ -293,7 +293,7 @@ mod tests { #[cfg(windows)] #[test] fn refreshed_local_terminal_preserves_the_pane_grok_override() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [("grok_force_legacy_console".to_owned(), "1".to_owned())].into_iter().collect(), ..Default::default() }; @@ -310,7 +310,7 @@ mod tests { #[cfg(not(windows))] #[test] fn local_terminal_preparation_preserves_non_windows_environments() { - let mut options = nebula_terminal::tty::Options { + let mut options = pebrel_terminal::tty::Options { env: [("TERM_PROGRAM".to_owned(), "pebrel".to_owned())].into_iter().collect(), ..Default::default() }; diff --git a/nebula_app/src/platform/file_drag/mod.rs b/pebrel_app/src/platform/file_drag/mod.rs similarity index 100% rename from nebula_app/src/platform/file_drag/mod.rs rename to pebrel_app/src/platform/file_drag/mod.rs diff --git a/nebula_app/src/platform/file_drag/windows.rs b/pebrel_app/src/platform/file_drag/windows.rs similarity index 100% rename from nebula_app/src/platform/file_drag/windows.rs rename to pebrel_app/src/platform/file_drag/windows.rs diff --git a/nebula_app/src/platform/file_drag/windows/stream.rs b/pebrel_app/src/platform/file_drag/windows/stream.rs similarity index 100% rename from nebula_app/src/platform/file_drag/windows/stream.rs rename to pebrel_app/src/platform/file_drag/windows/stream.rs diff --git a/nebula_app/src/platform/file_drag/windows/tests.rs b/pebrel_app/src/platform/file_drag/windows/tests.rs similarity index 100% rename from nebula_app/src/platform/file_drag/windows/tests.rs rename to pebrel_app/src/platform/file_drag/windows/tests.rs diff --git a/nebula_app/src/platform/file_drag/windows/tests/ole_probe.rs b/pebrel_app/src/platform/file_drag/windows/tests/ole_probe.rs similarity index 100% rename from nebula_app/src/platform/file_drag/windows/tests/ole_probe.rs rename to pebrel_app/src/platform/file_drag/windows/tests/ole_probe.rs diff --git a/nebula_app/src/platform/file_manager.rs b/pebrel_app/src/platform/file_manager.rs similarity index 100% rename from nebula_app/src/platform/file_manager.rs rename to pebrel_app/src/platform/file_manager.rs diff --git a/nebula_app/src/platform/file_picker.rs b/pebrel_app/src/platform/file_picker.rs similarity index 100% rename from nebula_app/src/platform/file_picker.rs rename to pebrel_app/src/platform/file_picker.rs diff --git a/nebula_app/src/platform/file_preview.rs b/pebrel_app/src/platform/file_preview.rs similarity index 100% rename from nebula_app/src/platform/file_preview.rs rename to pebrel_app/src/platform/file_preview.rs diff --git a/nebula_app/src/platform/fonts.rs b/pebrel_app/src/platform/fonts.rs similarity index 100% rename from nebula_app/src/platform/fonts.rs rename to pebrel_app/src/platform/fonts.rs diff --git a/nebula_app/src/platform/global_shortcut.rs b/pebrel_app/src/platform/global_shortcut.rs similarity index 100% rename from nebula_app/src/platform/global_shortcut.rs rename to pebrel_app/src/platform/global_shortcut.rs diff --git a/nebula_app/src/platform/keyboard.rs b/pebrel_app/src/platform/keyboard.rs similarity index 100% rename from nebula_app/src/platform/keyboard.rs rename to pebrel_app/src/platform/keyboard.rs diff --git a/nebula_app/src/platform/keyboard/tests.rs b/pebrel_app/src/platform/keyboard/tests.rs similarity index 97% rename from nebula_app/src/platform/keyboard/tests.rs rename to pebrel_app/src/platform/keyboard/tests.rs index f172aee5b..a6f8accbe 100644 --- a/nebula_app/src/platform/keyboard/tests.rs +++ b/pebrel_app/src/platform/keyboard/tests.rs @@ -5,9 +5,9 @@ use std::io::{self, Read, Write}; use std::path::Path; use std::time::{Duration, Instant}; -use nebula_terminal::event::WindowSize; -use nebula_terminal::term::TermMode; -use nebula_terminal::tty::{self, EventedReadWrite}; +use pebrel_terminal::event::WindowSize; +use pebrel_terminal::term::TermMode; +use pebrel_terminal::tty::{self, EventedReadWrite}; use windows_sys::Win32::Storage::FileSystem::ReadFile; use windows_sys::Win32::System::Console::*; diff --git a/nebula_app/src/platform/launch_directory.rs b/pebrel_app/src/platform/launch_directory.rs similarity index 99% rename from nebula_app/src/platform/launch_directory.rs rename to pebrel_app/src/platform/launch_directory.rs index f59ce4dc3..08f3a2066 100644 --- a/nebula_app/src/platform/launch_directory.rs +++ b/pebrel_app/src/platform/launch_directory.rs @@ -2,7 +2,7 @@ use std::path::{Path, PathBuf}; -use nebula_terminal::tty::{Options, Shell}; +use pebrel_terminal::tty::{Options, Shell}; pub(crate) fn is_wsl(shell: Option<&Shell>) -> bool { shell.is_some_and(|shell| is_wsl_program(shell.program())) diff --git a/nebula_app/src/platform/local_paths.rs b/pebrel_app/src/platform/local_paths.rs similarity index 100% rename from nebula_app/src/platform/local_paths.rs rename to pebrel_app/src/platform/local_paths.rs diff --git a/nebula_app/src/platform/locale.rs b/pebrel_app/src/platform/locale.rs similarity index 97% rename from nebula_app/src/platform/locale.rs rename to pebrel_app/src/platform/locale.rs index 47f0f3be9..a181bfb22 100644 --- a/nebula_app/src/platform/locale.rs +++ b/pebrel_app/src/platform/locale.rs @@ -67,7 +67,7 @@ fn native_locale() -> Option { let Ok(locale) = CStr::from_ptr(buffer.as_ptr().cast()).to_str() else { continue; }; - if nebula_settings::LanguagePref::from_locale(locale).is_some() { + if pebrel_settings::LanguagePref::from_locale(locale).is_some() { return Some(locale.to_owned()); } } diff --git a/nebula_app/src/platform/mod.rs b/pebrel_app/src/platform/mod.rs similarity index 100% rename from nebula_app/src/platform/mod.rs rename to pebrel_app/src/platform/mod.rs diff --git a/nebula_app/src/platform/notifications.rs b/pebrel_app/src/platform/notifications.rs similarity index 97% rename from nebula_app/src/platform/notifications.rs rename to pebrel_app/src/platform/notifications.rs index b95b75175..749034407 100644 --- a/nebula_app/src/platform/notifications.rs +++ b/pebrel_app/src/platform/notifications.rs @@ -101,7 +101,7 @@ pub(crate) fn toast_actionable( notification.appname(crate::brand::NAME).summary(title).body(body); if activation.is_some() { let language = crate::i18n::LanguagePreference::from( - nebula_settings::RuntimeSettings::load().language, + pebrel_settings::RuntimeSettings::load().language, ) .resolved(); notification.action("default", language.text(crate::i18n::Message::CommonOpen)); @@ -220,7 +220,7 @@ mod win { /// write itself is a few syscalls, there is just no point repeating them /// for every toast. pub fn ensure_aumid() { - static REGISTERED: Mutex> = Mutex::new(None); + static REGISTERED: Mutex> = Mutex::new(None); let variant = crate::app_icon::selected(); let mut registered = REGISTERED.lock().unwrap_or_else(|error| error.into_inner()); if *registered != Some(variant) { @@ -239,7 +239,7 @@ mod win { register_icon(crate::app_icon::selected()) } - fn register_icon(variant: nebula_settings::AppIconName) -> Result<(), String> { + fn register_icon(variant: pebrel_settings::AppIconName) -> Result<(), String> { let subkey = format!(r"Software\Classes\AppUserModelId\{AUMID}"); set_reg_sz(&subkey, "DisplayName", crate::brand::NAME)?; match ensure_icon_file(variant) { @@ -254,7 +254,7 @@ mod win { ensure_icon_file(crate::app_icon::selected()) } - fn ensure_icon_file(variant: nebula_settings::AppIconName) -> Option { + fn ensure_icon_file(variant: pebrel_settings::AppIconName) -> Option { let bytes = crate::app_icon::png(variant, 256)?; let directory = crate::platform::dirs::data_dir(); let path = directory.join(format!("toast_icon-{}.png", variant.settings_value())); diff --git a/nebula_app/src/platform/notifications/windows.rs b/pebrel_app/src/platform/notifications/windows.rs similarity index 100% rename from nebula_app/src/platform/notifications/windows.rs rename to pebrel_app/src/platform/notifications/windows.rs diff --git a/nebula_app/src/platform/pi_session.rs b/pebrel_app/src/platform/pi_session.rs similarity index 100% rename from nebula_app/src/platform/pi_session.rs rename to pebrel_app/src/platform/pi_session.rs diff --git a/nebula_app/src/platform/pi_session.sh b/pebrel_app/src/platform/pi_session.sh similarity index 100% rename from nebula_app/src/platform/pi_session.sh rename to pebrel_app/src/platform/pi_session.sh diff --git a/nebula_app/src/platform/private_file.rs b/pebrel_app/src/platform/private_file.rs similarity index 100% rename from nebula_app/src/platform/private_file.rs rename to pebrel_app/src/platform/private_file.rs diff --git a/nebula_app/src/platform/process.rs b/pebrel_app/src/platform/process.rs similarity index 100% rename from nebula_app/src/platform/process.rs rename to pebrel_app/src/platform/process.rs diff --git a/nebula_app/src/platform/process_output.rs b/pebrel_app/src/platform/process_output.rs similarity index 100% rename from nebula_app/src/platform/process_output.rs rename to pebrel_app/src/platform/process_output.rs diff --git a/nebula_app/src/platform/process_snapshot.rs b/pebrel_app/src/platform/process_snapshot.rs similarity index 100% rename from nebula_app/src/platform/process_snapshot.rs rename to pebrel_app/src/platform/process_snapshot.rs diff --git a/nebula_app/src/platform/process_snapshot/windows.rs b/pebrel_app/src/platform/process_snapshot/windows.rs similarity index 100% rename from nebula_app/src/platform/process_snapshot/windows.rs rename to pebrel_app/src/platform/process_snapshot/windows.rs diff --git a/nebula_app/src/platform/quick_window.rs b/pebrel_app/src/platform/quick_window.rs similarity index 99% rename from nebula_app/src/platform/quick_window.rs rename to pebrel_app/src/platform/quick_window.rs index 3939ef5ec..8231c3105 100644 --- a/nebula_app/src/platform/quick_window.rs +++ b/pebrel_app/src/platform/quick_window.rs @@ -16,7 +16,7 @@ impl QuickTerminalGeometry { /// 以普通工作区 HWND 所在显示器为目标;没有锚点时 Win32 回退主显示器。 pub(crate) fn native_geometry( anchor_hwnd: isize, - remembered: Option, + remembered: Option, ) -> Option { use windows_sys::Win32::Foundation::RECT; use windows_sys::Win32::Graphics::Gdi::{ diff --git a/nebula_app/src/platform/serial_port.rs b/pebrel_app/src/platform/serial_port.rs similarity index 100% rename from nebula_app/src/platform/serial_port.rs rename to pebrel_app/src/platform/serial_port.rs diff --git a/nebula_app/src/platform/session_end.rs b/pebrel_app/src/platform/session_end.rs similarity index 100% rename from nebula_app/src/platform/session_end.rs rename to pebrel_app/src/platform/session_end.rs diff --git a/nebula_app/src/platform/session_end/windows.rs b/pebrel_app/src/platform/session_end/windows.rs similarity index 100% rename from nebula_app/src/platform/session_end/windows.rs rename to pebrel_app/src/platform/session_end/windows.rs diff --git a/nebula_app/src/platform/session_end/windows/tests.rs b/pebrel_app/src/platform/session_end/windows/tests.rs similarity index 100% rename from nebula_app/src/platform/session_end/windows/tests.rs rename to pebrel_app/src/platform/session_end/windows/tests.rs diff --git a/nebula_app/src/platform/shell.rs b/pebrel_app/src/platform/shell.rs similarity index 96% rename from nebula_app/src/platform/shell.rs rename to pebrel_app/src/platform/shell.rs index 5993e47a6..b604ebb27 100644 --- a/nebula_app/src/platform/shell.rs +++ b/pebrel_app/src/platform/shell.rs @@ -61,7 +61,7 @@ pub fn default_shell_id() -> String { } #[cfg(unix)] { - let shell = nebula_terminal::tty::default_shell_program().unwrap_or_default(); + let shell = pebrel_terminal::tty::default_shell_program().unwrap_or_default(); Path::new(&shell) .file_name() .and_then(|name| name.to_str()) @@ -97,18 +97,18 @@ pub fn interactive_args(id: &str) -> Vec { /// Preserve the actual Windows PTY default in a pane's durable launch snapshot. /// Unix keeps an unspecified shell unspecified so the login-shell policy applies. pub(crate) fn snapshot_shell( - configured: Option, -) -> Option { + configured: Option, +) -> Option { #[cfg(windows)] { - configured.or_else(|| Some(nebula_terminal::tty::resolved_default_shell())) + configured.or_else(|| Some(pebrel_terminal::tty::resolved_default_shell())) } #[cfg(not(windows))] configured } #[cfg(windows)] -pub(super) fn prepare_startup_directory(options: &mut nebula_terminal::tty::Options) { +pub(super) fn prepare_startup_directory(options: &mut pebrel_terminal::tty::Options) { use std::path::{Component, Prefix}; let Some(Component::Prefix(prefix)) = @@ -125,7 +125,7 @@ pub(super) fn prepare_startup_directory(options: &mut nebula_terminal::tty::Opti }) { return; } - let shell = options.shell.clone().unwrap_or_else(nebula_terminal::tty::resolved_default_shell); + let shell = options.shell.clone().unwrap_or_else(pebrel_terminal::tty::resolved_default_shell); let name = shell.program().rsplit(['/', '\\']).next().unwrap_or_default(); if matches!( name.to_ascii_lowercase().as_str(), @@ -262,10 +262,10 @@ pub(crate) fn completion_qa_package_manager() -> &'static str { /// Isolated native-shell fixture for completion acceptance on every desktop host. #[cfg(test)] -pub(crate) fn completion_qa_shell(_output: &std::path::Path) -> nebula_terminal::tty::Shell { +pub(crate) fn completion_qa_shell(_output: &std::path::Path) -> pebrel_terminal::tty::Shell { #[cfg(windows)] { - let integrated = nebula_terminal::tty::powershell_with_nebula_integration( + let integrated = pebrel_terminal::tty::powershell_with_nebula_integration( std::env::var("PEBREL_COMPLETION_QA_PWSH").unwrap_or_else(|_| "powershell.exe".into()), vec!["-NoLogo".into(), "-NoProfile".into()], ); @@ -284,7 +284,7 @@ pub(crate) fn completion_qa_shell(_output: &std::path::Path) -> nebula_terminal: *args.last_mut().unwrap() = "-File".into(); // PTY 接收的参数已经是 Windows 命令行文本,路径中的空格需要保留引号。 args.push(format!("\"{}\"", startup_path.display())); - nebula_terminal::tty::Shell::new(integrated.program().to_owned(), args) + pebrel_terminal::tty::Shell::new(integrated.program().to_owned(), args) } #[cfg(unix)] { @@ -294,7 +294,7 @@ pub(crate) fn completion_qa_shell(_output: &std::path::Path) -> nebula_terminal: "PS1='\\[\\e]133;A\\a\\]QA> \\[\\e]133;B\\a\\]'\nunset HISTFILE PROMPT_COMMAND\n", ) .unwrap(); - nebula_terminal::tty::Shell::new( + pebrel_terminal::tty::Shell::new( "bash".into(), vec![ "--noprofile".into(), @@ -311,10 +311,10 @@ pub(crate) fn completion_qa_shell(_output: &std::path::Path) -> nebula_terminal: pub(crate) fn native_clipboard_qa_shell( program: String, output: &std::path::Path, -) -> nebula_terminal::tty::Shell { +) -> pebrel_terminal::tty::Shell { #[cfg(windows)] { - let shell = nebula_terminal::tty::powershell_with_nebula_integration( + let shell = pebrel_terminal::tty::powershell_with_nebula_integration( program, vec!["-NoLogo".into(), "-NoProfile".into()], ); @@ -333,7 +333,7 @@ function global:PasteFixture {{ param($value); [IO.File]::AppendAllText('{result std::fs::write(&startup_path, format!("\u{feff}{startup}\n")).unwrap(); *args.last_mut().unwrap() = "-File".into(); args.push(format!("\"{}\"", startup_path.display())); - nebula_terminal::tty::Shell::new(shell.program().into(), args) + pebrel_terminal::tty::Shell::new(shell.program().into(), args) } #[cfg(not(windows))] { @@ -363,7 +363,7 @@ mod tests { #[cfg(windows)] #[test] fn powershell_wsl_unc_startup_uses_home_without_changing_the_launch() { - use nebula_terminal::tty::{Options, Shell}; + use pebrel_terminal::tty::{Options, Shell}; let home = super::super::dirs::home_dir().unwrap(); for program in ["powershell.exe", "C:/Program Files/PowerShell/7/pwsh.exe"] { @@ -388,7 +388,7 @@ mod tests { #[cfg(windows)] #[test] fn ordinary_network_directories_and_wsl_launches_keep_their_startup_cwd() { - use nebula_terminal::tty::{Options, Shell}; + use pebrel_terminal::tty::{Options, Shell}; for (program, cwd) in [ ("pwsh.exe", r"C:\work"), @@ -410,7 +410,7 @@ mod tests { #[cfg(windows)] #[test] fn powershell_cmd_launchers_inherit_the_prepared_windows_directory() { - use nebula_terminal::tty::{Options, Shell}; + use pebrel_terminal::tty::{Options, Shell}; let root = tempfile::tempdir().unwrap(); let shim = root.path().join("cwd-probe.cmd"); diff --git a/nebula_app/src/platform/shell_integration.rs b/pebrel_app/src/platform/shell_integration.rs similarity index 99% rename from nebula_app/src/platform/shell_integration.rs rename to pebrel_app/src/platform/shell_integration.rs index a3993cad6..7f4d2f09e 100644 --- a/nebula_app/src/platform/shell_integration.rs +++ b/pebrel_app/src/platform/shell_integration.rs @@ -1,4 +1,4 @@ -use nebula_terminal::tty; +use pebrel_terminal::tty; pub fn prepare(options: &mut tty::Options) -> std::io::Result<()> { #[cfg(unix)] diff --git a/nebula_app/src/platform/sound.rs b/pebrel_app/src/platform/sound.rs similarity index 100% rename from nebula_app/src/platform/sound.rs rename to pebrel_app/src/platform/sound.rs diff --git a/nebula_app/src/platform/ssh_agent.rs b/pebrel_app/src/platform/ssh_agent.rs similarity index 100% rename from nebula_app/src/platform/ssh_agent.rs rename to pebrel_app/src/platform/ssh_agent.rs diff --git a/nebula_app/src/platform/ssh_agent/test_support.rs b/pebrel_app/src/platform/ssh_agent/test_support.rs similarity index 100% rename from nebula_app/src/platform/ssh_agent/test_support.rs rename to pebrel_app/src/platform/ssh_agent/test_support.rs diff --git a/nebula_app/src/platform/ssh_agent/tests.rs b/pebrel_app/src/platform/ssh_agent/tests.rs similarity index 100% rename from nebula_app/src/platform/ssh_agent/tests.rs rename to pebrel_app/src/platform/ssh_agent/tests.rs diff --git a/nebula_app/src/platform/ssh_config_probe_tests.rs b/pebrel_app/src/platform/ssh_config_probe_tests.rs similarity index 100% rename from nebula_app/src/platform/ssh_config_probe_tests.rs rename to pebrel_app/src/platform/ssh_config_probe_tests.rs diff --git a/nebula_app/src/platform/startup.rs b/pebrel_app/src/platform/startup.rs similarity index 98% rename from nebula_app/src/platform/startup.rs rename to pebrel_app/src/platform/startup.rs index 84102180c..4113a6767 100644 --- a/nebula_app/src/platform/startup.rs +++ b/pebrel_app/src/platform/startup.rs @@ -9,7 +9,7 @@ pub(crate) fn report_error(error: &dyn std::fmt::Display, gui_launch: bool) { /// 两种权限的重复启动共用目录优先级,进程 cwd 不覆盖显式目录或用户设置。 pub(crate) fn resident_launch_directory( explicit: Option, - settings: &nebula_settings::RuntimeSettings, + settings: &pebrel_settings::RuntimeSettings, wsl: bool, ) -> Option { explicit @@ -98,7 +98,7 @@ pub fn prepare_gui() { pub(crate) const LOGIN_STARTUP_ARGUMENTS: &str = "--gpui --launched-at-login"; pub(crate) fn start_hidden( - settings: &nebula_settings::RuntimeSettings, + settings: &pebrel_settings::RuntimeSettings, launched_at_login: bool, ) -> bool { launched_at_login @@ -176,7 +176,7 @@ fn startup_shortcut() -> std::io::Result { mod tests { #[test] fn wsl_handover_does_not_reclassify_an_inherited_host_directory_as_explicit() { - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; let settings = RuntimeSettings::from_raw(&RawSettings::from_text("")); assert_eq!(super::resident_launch_directory(None, &settings, true), None); assert!(super::resident_launch_directory(None, &settings, false).is_some()); @@ -198,7 +198,7 @@ mod tests { #[test] fn silent_start_requires_a_tray_and_native_window_hiding() { - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; for (text, expected) in [ ("", false), diff --git a/nebula_app/src/platform/startup/console.rs b/pebrel_app/src/platform/startup/console.rs similarity index 100% rename from nebula_app/src/platform/startup/console.rs rename to pebrel_app/src/platform/startup/console.rs diff --git a/nebula_app/src/platform/startup/console_tests.rs b/pebrel_app/src/platform/startup/console_tests.rs similarity index 100% rename from nebula_app/src/platform/startup/console_tests.rs rename to pebrel_app/src/platform/startup/console_tests.rs diff --git a/nebula_app/src/platform/startup/first_frame.rs b/pebrel_app/src/platform/startup/first_frame.rs similarity index 100% rename from nebula_app/src/platform/startup/first_frame.rs rename to pebrel_app/src/platform/startup/first_frame.rs diff --git a/nebula_app/src/platform/startup/login.rs b/pebrel_app/src/platform/startup/login.rs similarity index 100% rename from nebula_app/src/platform/startup/login.rs rename to pebrel_app/src/platform/startup/login.rs diff --git a/nebula_app/src/platform/tray_native.rs b/pebrel_app/src/platform/tray_native.rs similarity index 99% rename from nebula_app/src/platform/tray_native.rs rename to pebrel_app/src/platform/tray_native.rs index d1f3ffbe8..04450b389 100644 --- a/nebula_app/src/platform/tray_native.rs +++ b/pebrel_app/src/platform/tray_native.rs @@ -121,7 +121,7 @@ fn render( previous: Option, ) -> Result> { let language = - crate::i18n::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::i18n::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved(); let menu = Menu::new(); let show = MenuItem::new(language.text(crate::i18n::Message::TrayShow), true, None); diff --git a/nebula_app/src/platform/update_installation.rs b/pebrel_app/src/platform/update_installation.rs similarity index 98% rename from nebula_app/src/platform/update_installation.rs rename to pebrel_app/src/platform/update_installation.rs index ad6f6ac81..572dd0779 100644 --- a/nebula_app/src/platform/update_installation.rs +++ b/pebrel_app/src/platform/update_installation.rs @@ -19,7 +19,7 @@ pub(crate) fn state_directory(relative: &Path) -> io::Result { if crate::platform::elevation::is_elevated()? { return privileged::directory(relative); } - Ok(nebula_settings::settings_dir().join("updates").join(relative)) + Ok(pebrel_settings::settings_dir().join("updates").join(relative)) } pub(crate) fn canonical(path: &Path) -> io::Result { diff --git a/nebula_app/src/platform/update_installation/macos.rs b/pebrel_app/src/platform/update_installation/macos.rs similarity index 100% rename from nebula_app/src/platform/update_installation/macos.rs rename to pebrel_app/src/platform/update_installation/macos.rs diff --git a/nebula_app/src/platform/update_installation/privileged.rs b/pebrel_app/src/platform/update_installation/privileged.rs similarity index 99% rename from nebula_app/src/platform/update_installation/privileged.rs rename to pebrel_app/src/platform/update_installation/privileged.rs index e0f09d311..4591b4e2f 100644 --- a/nebula_app/src/platform/update_installation/privileged.rs +++ b/pebrel_app/src/platform/update_installation/privileged.rs @@ -42,7 +42,7 @@ pub(super) fn directory(relative: &Path) -> io::Result { let root = root.as_ref().map_err(|error| io::Error::other(error.clone()))?; let mut identity = Sha256::new(); identity.update(root.user.as_bytes()); - for path in [std::env::current_exe()?, nebula_settings::settings_dir()] { + for path in [std::env::current_exe()?, pebrel_settings::settings_dir()] { let path = super::canonical(&path)?; let units: Vec<_> = path.as_os_str().encode_wide().collect(); identity.update((units.len() as u64).to_le_bytes()); diff --git a/nebula_app/src/platform/video_underlay.rs b/pebrel_app/src/platform/video_underlay.rs similarity index 100% rename from nebula_app/src/platform/video_underlay.rs rename to pebrel_app/src/platform/video_underlay.rs diff --git a/nebula_app/src/platform/video_underlay/macos.rs b/pebrel_app/src/platform/video_underlay/macos.rs similarity index 100% rename from nebula_app/src/platform/video_underlay/macos.rs rename to pebrel_app/src/platform/video_underlay/macos.rs diff --git a/nebula_app/src/platform/window_capture.rs b/pebrel_app/src/platform/window_capture.rs similarity index 100% rename from nebula_app/src/platform/window_capture.rs rename to pebrel_app/src/platform/window_capture.rs diff --git a/nebula_app/src/platform/window_chrome.rs b/pebrel_app/src/platform/window_chrome.rs similarity index 100% rename from nebula_app/src/platform/window_chrome.rs rename to pebrel_app/src/platform/window_chrome.rs diff --git a/nebula_app/src/platform/window_chrome/macos.rs b/pebrel_app/src/platform/window_chrome/macos.rs similarity index 100% rename from nebula_app/src/platform/window_chrome/macos.rs rename to pebrel_app/src/platform/window_chrome/macos.rs diff --git a/nebula_app/src/platform/window_material.rs b/pebrel_app/src/platform/window_material.rs similarity index 99% rename from nebula_app/src/platform/window_material.rs rename to pebrel_app/src/platform/window_material.rs index c3c44394d..600d3c69b 100644 --- a/nebula_app/src/platform/window_material.rs +++ b/pebrel_app/src/platform/window_material.rs @@ -1,6 +1,6 @@ //! 原生窗口材质适配;窗口枚举和热应用生命周期仍由界面拥有。 use gpui::{Window, WindowBackgroundAppearance}; -use nebula_settings::BlurModeName; +use pebrel_settings::BlurModeName; #[cfg(windows)] use std::sync::OnceLock; diff --git a/nebula_app/src/platform/window_visibility.rs b/pebrel_app/src/platform/window_visibility.rs similarity index 100% rename from nebula_app/src/platform/window_visibility.rs rename to pebrel_app/src/platform/window_visibility.rs diff --git a/nebula_app/src/platform/wsl_guest_shell.rs b/pebrel_app/src/platform/wsl_guest_shell.rs similarity index 99% rename from nebula_app/src/platform/wsl_guest_shell.rs rename to pebrel_app/src/platform/wsl_guest_shell.rs index cef8f898b..a1cfbb455 100644 --- a/nebula_app/src/platform/wsl_guest_shell.rs +++ b/pebrel_app/src/platform/wsl_guest_shell.rs @@ -1,7 +1,7 @@ //! What a WSL launch starts in the guest, and whether that guest user can read //! the host zsh bootstrap: one `sh` probe per (distribution, user), cached for //! the process. The spawn path on the UI thread only reads the cache ([`verified`]); -//! see `architecture/notes/nebula_app/platform/` for why neither fact is guessed. +//! see `architecture/notes/pebrel_app/platform/` for why neither fact is guessed. use std::collections::HashMap; use std::path::Path; @@ -9,7 +9,7 @@ use std::process::Command; use std::sync::{Arc, Mutex, OnceLock, PoisonError}; use std::time::{Duration, Instant}; -use nebula_terminal::tty; +use pebrel_terminal::tty; use crate::shell_detect; diff --git a/nebula_app/src/platform/wsl_hooks.rs b/pebrel_app/src/platform/wsl_hooks.rs similarity index 76% rename from nebula_app/src/platform/wsl_hooks.rs rename to pebrel_app/src/platform/wsl_hooks.rs index 2bf994224..bdec798a5 100644 --- a/nebula_app/src/platform/wsl_hooks.rs +++ b/pebrel_app/src/platform/wsl_hooks.rs @@ -5,4 +5,4 @@ mod windows; pub(crate) use windows::{prepare, setup_cli}; #[cfg(not(windows))] -pub(crate) fn prepare(_options: &mut nebula_terminal::tty::Options) {} +pub(crate) fn prepare(_options: &mut pebrel_terminal::tty::Options) {} diff --git a/nebula_app/src/platform/wsl_hooks/windows.rs b/pebrel_app/src/platform/wsl_hooks/windows.rs similarity index 98% rename from nebula_app/src/platform/wsl_hooks/windows.rs rename to pebrel_app/src/platform/wsl_hooks/windows.rs index a7485c5fa..ce3256573 100644 --- a/nebula_app/src/platform/wsl_hooks/windows.rs +++ b/pebrel_app/src/platform/wsl_hooks/windows.rs @@ -9,7 +9,7 @@ use std::process::Command; use std::sync::{OnceLock, mpsc}; use std::time::{Duration, Instant}; -use nebula_terminal::tty; +use pebrel_terminal::tty; use serde_json::json; use crate::ai_hook::remote::{self, Action, Snapshot}; @@ -83,7 +83,7 @@ impl Target { /// the caller checks the local preference and prepares the pane environment. pub(crate) fn prepare(options: &mut tty::Options) { let Some(target) = options.shell.as_ref().and_then(Target::from_shell) else { return }; - if nebula_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { + if pebrel_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { return; } let token = match remote::new_token() { @@ -117,7 +117,7 @@ fn worker() -> Option<&'static mpsc::SyncSender> { .spawn(move || { let mut attempted: HashMap = HashMap::new(); while let Ok(target) = rx.recv() { - if nebula_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { + if pebrel_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { continue; } attempted.retain(|_, at| at.elapsed() < RETRY_AFTER); diff --git a/nebula_app/src/plugins/AGENTS.md b/pebrel_app/src/plugins/AGENTS.md similarity index 88% rename from nebula_app/src/plugins/AGENTS.md rename to pebrel_app/src/plugins/AGENTS.md index 9985fc924..ad7667548 100644 --- a/nebula_app/src/plugins/AGENTS.md +++ b/pebrel_app/src/plugins/AGENTS.md @@ -8,6 +8,6 @@ - Luau 只交出可验证的普通数据与宿主请求;VM 配额之外还需约束 JSON 展开、包文件与协议帧。 - 不增加 Luau 以外的语言运行时、后台扫描、全局缓存或空的生命周期框架;新增持续资源时再明确 owner、取消与代次。 - 安装库(`install.rs`)只复制清单声明的文件,回执由宿主写入;授权只来自用户的安装确认,不来自清单或包内文件。插件对主题库的写入集中在 `themes.rs`,复用主题包校验和主题文档校验,不另写主题规则,也不应用设置。 -- 当前事实和命令示例见 README;设计依据见 [命令地基](../../../architecture/notes/nebula_app/plugins/2026-09-28-bounded-command-foundation.md) 、[核心体验边界](../../../architecture/notes/nebula_app/plugins/2026-10-01-core-experience-boundary.md) 和 [安装库与主题授权](../../../architecture/notes/nebula_app/plugins/2026-11-09-install-library-and-theme-grant.md)。 +- 当前事实和命令示例见 README;设计依据见 [命令地基](../../../architecture/notes/pebrel_app/plugins/2026-09-28-bounded-command-foundation.md) 、[核心体验边界](../../../architecture/notes/pebrel_app/plugins/2026-10-01-core-experience-boundary.md) 和 [安装库与主题授权](../../../architecture/notes/pebrel_app/plugins/2026-11-09-install-library-and-theme-grant.md)。 -- Luau 引擎、配置模块与不可捕获限额的依据见 [Luau VM 边界](../../../architecture/notes/nebula_app/luau/2026-11-02-bounded-luau-vms.md)。 +- Luau 引擎、配置模块与不可捕获限额的依据见 [Luau VM 边界](../../../architecture/notes/pebrel_app/luau/2026-11-02-bounded-luau-vms.md)。 diff --git a/nebula_app/src/plugins/BOUNDARIES.md b/pebrel_app/src/plugins/BOUNDARIES.md similarity index 100% rename from nebula_app/src/plugins/BOUNDARIES.md rename to pebrel_app/src/plugins/BOUNDARIES.md diff --git a/nebula_app/src/plugins/README.md b/pebrel_app/src/plugins/README.md similarity index 96% rename from nebula_app/src/plugins/README.md rename to pebrel_app/src/plugins/README.md index 1928104e1..45107582c 100644 --- a/nebula_app/src/plugins/README.md +++ b/pebrel_app/src/plugins/README.md @@ -14,10 +14,10 @@ command slice is not the implementation of that entire product scope. From the repository root, using a newly built `pebrel` binary: ```text -pebrel plugin check nebula_app/examples/plugins/native-overview --pretty -pebrel plugin run nebula_app/examples/plugins/native-overview describe --pretty -pebrel plugin check nebula_app/examples/plugins/lua-overview --pretty -pebrel plugin run nebula_app/examples/plugins/lua-overview summary --pretty +pebrel plugin check pebrel_app/examples/plugins/native-overview --pretty +pebrel plugin run pebrel_app/examples/plugins/native-overview describe --pretty +pebrel plugin check pebrel_app/examples/plugins/lua-overview --pretty +pebrel plugin run pebrel_app/examples/plugins/lua-overview summary --pretty ``` `check` validates the UTF-8 TOML manifest, contribution rules, declared entry path and source-size @@ -33,7 +33,7 @@ The check command is offline. The examples do not create panes or modify setting ## Install library and grants ```text -pebrel plugin install nebula_app/examples/plugins/theme-generator --grant theme-library +pebrel plugin install pebrel_app/examples/plugins/theme-generator --grant theme-library pebrel plugin list pebrel plugin run example.theme-generator ocean pebrel plugin disable example.theme-generator diff --git a/nebula_app/src/plugins/boundary.rs b/pebrel_app/src/plugins/boundary.rs similarity index 100% rename from nebula_app/src/plugins/boundary.rs rename to pebrel_app/src/plugins/boundary.rs diff --git a/nebula_app/src/plugins/cli.rs b/pebrel_app/src/plugins/cli.rs similarity index 100% rename from nebula_app/src/plugins/cli.rs rename to pebrel_app/src/plugins/cli.rs diff --git a/nebula_app/src/plugins/install.rs b/pebrel_app/src/plugins/install.rs similarity index 99% rename from nebula_app/src/plugins/install.rs rename to pebrel_app/src/plugins/install.rs index 486effb1a..67bbce0ca 100644 --- a/nebula_app/src/plugins/install.rs +++ b/pebrel_app/src/plugins/install.rs @@ -71,7 +71,7 @@ pub(crate) struct Library { impl Default for Library { fn default() -> Self { - Self::new(nebula_settings::settings_dir().join("plugins")) + Self::new(pebrel_settings::settings_dir().join("plugins")) } } diff --git a/nebula_app/src/plugins/install_tests.rs b/pebrel_app/src/plugins/install_tests.rs similarity index 99% rename from nebula_app/src/plugins/install_tests.rs rename to pebrel_app/src/plugins/install_tests.rs index dc9ea36b6..d5d5af031 100644 --- a/nebula_app/src/plugins/install_tests.rs +++ b/pebrel_app/src/plugins/install_tests.rs @@ -167,7 +167,7 @@ mod theme_contributions { use crate::plugins::themes::{self, BundledTheme}; use crate::theme_library::package::{Author, Origin, export_package}; use crate::theme_library::{ThemeLibraryStore, builtin_document}; - use nebula_settings::ThemeName; + use pebrel_settings::ThemeName; use std::time::Duration; fn bundled_fixture() -> (tempfile::TempDir, tempfile::TempDir, Library, ThemeLibraryStore) { diff --git a/nebula_app/src/plugins/json.rs b/pebrel_app/src/plugins/json.rs similarity index 100% rename from nebula_app/src/plugins/json.rs rename to pebrel_app/src/plugins/json.rs diff --git a/nebula_app/src/plugins/lua.rs b/pebrel_app/src/plugins/lua.rs similarity index 100% rename from nebula_app/src/plugins/lua.rs rename to pebrel_app/src/plugins/lua.rs diff --git a/nebula_app/src/plugins/mod.rs b/pebrel_app/src/plugins/mod.rs similarity index 100% rename from nebula_app/src/plugins/mod.rs rename to pebrel_app/src/plugins/mod.rs diff --git a/nebula_app/src/plugins/package.rs b/pebrel_app/src/plugins/package.rs similarity index 100% rename from nebula_app/src/plugins/package.rs rename to pebrel_app/src/plugins/package.rs diff --git a/nebula_app/src/plugins/tests.rs b/pebrel_app/src/plugins/tests.rs similarity index 100% rename from nebula_app/src/plugins/tests.rs rename to pebrel_app/src/plugins/tests.rs diff --git a/nebula_app/src/plugins/themes.rs b/pebrel_app/src/plugins/themes.rs similarity index 99% rename from nebula_app/src/plugins/themes.rs rename to pebrel_app/src/plugins/themes.rs index 115dc1b08..283886e4f 100644 --- a/nebula_app/src/plugins/themes.rs +++ b/pebrel_app/src/plugins/themes.rs @@ -162,7 +162,7 @@ fn document(result: Value, package: &Package, command: &str) -> Result builtin_document(nebula_settings::ThemeName::default()).ok(), + None => builtin_document(pebrel_settings::ThemeName::default()).ok(), Some(base) => builtin_documents() .into_iter() .find(|document| document.name() == base || document.id() == Some(base.as_str())), diff --git a/nebula_app/src/polling/ipc.rs b/pebrel_app/src/polling/ipc.rs similarity index 100% rename from nebula_app/src/polling/ipc.rs rename to pebrel_app/src/polling/ipc.rs diff --git a/nebula_app/src/polling/mod.rs b/pebrel_app/src/polling/mod.rs similarity index 99% rename from nebula_app/src/polling/mod.rs rename to pebrel_app/src/polling/mod.rs index 5d8c081db..502e8f79d 100644 --- a/nebula_app/src/polling/mod.rs +++ b/pebrel_app/src/polling/mod.rs @@ -9,7 +9,7 @@ use log::error; use std::result::Result; use winit::event_loop::EventLoopProxy; -use nebula_terminal::thread; +use pebrel_terminal::thread; use crate::UiConfig; use crate::cli::Options; diff --git a/nebula_app/src/polling/signal.rs b/pebrel_app/src/polling/signal.rs similarity index 100% rename from nebula_app/src/polling/signal.rs rename to pebrel_app/src/polling/signal.rs diff --git a/nebula_app/src/process_tree.rs b/pebrel_app/src/process_tree.rs similarity index 100% rename from nebula_app/src/process_tree.rs rename to pebrel_app/src/process_tree.rs diff --git a/nebula_app/src/product_input.rs b/pebrel_app/src/product_input.rs similarity index 100% rename from nebula_app/src/product_input.rs rename to pebrel_app/src/product_input.rs diff --git a/nebula_app/src/product_renderer.rs b/pebrel_app/src/product_renderer.rs similarity index 100% rename from nebula_app/src/product_renderer.rs rename to pebrel_app/src/product_renderer.rs diff --git a/nebula_app/src/product_ui/mod.rs b/pebrel_app/src/product_ui/mod.rs similarity index 100% rename from nebula_app/src/product_ui/mod.rs rename to pebrel_app/src/product_ui/mod.rs diff --git a/nebula_app/src/product_ui/ui.rs b/pebrel_app/src/product_ui/ui.rs similarity index 100% rename from nebula_app/src/product_ui/ui.rs rename to pebrel_app/src/product_ui/ui.rs diff --git a/nebula_app/src/product_window_context.rs b/pebrel_app/src/product_window_context.rs similarity index 100% rename from nebula_app/src/product_window_context.rs rename to pebrel_app/src/product_window_context.rs diff --git a/nebula_app/src/prompt_suggestions.rs b/pebrel_app/src/prompt_suggestions.rs similarity index 100% rename from nebula_app/src/prompt_suggestions.rs rename to pebrel_app/src/prompt_suggestions.rs diff --git a/nebula_app/src/prompt_suggestions/client.rs b/pebrel_app/src/prompt_suggestions/client.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/client.rs rename to pebrel_app/src/prompt_suggestions/client.rs diff --git a/nebula_app/src/prompt_suggestions/client_tests.rs b/pebrel_app/src/prompt_suggestions/client_tests.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/client_tests.rs rename to pebrel_app/src/prompt_suggestions/client_tests.rs diff --git a/nebula_app/src/prompt_suggestions/evaluation.json b/pebrel_app/src/prompt_suggestions/evaluation.json similarity index 100% rename from nebula_app/src/prompt_suggestions/evaluation.json rename to pebrel_app/src/prompt_suggestions/evaluation.json diff --git a/nebula_app/src/prompt_suggestions/http.rs b/pebrel_app/src/prompt_suggestions/http.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/http.rs rename to pebrel_app/src/prompt_suggestions/http.rs diff --git a/nebula_app/src/prompt_suggestions/install.rs b/pebrel_app/src/prompt_suggestions/install.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/install.rs rename to pebrel_app/src/prompt_suggestions/install.rs diff --git a/nebula_app/src/prompt_suggestions/launcher.rs b/pebrel_app/src/prompt_suggestions/launcher.rs similarity index 99% rename from nebula_app/src/prompt_suggestions/launcher.rs rename to pebrel_app/src/prompt_suggestions/launcher.rs index 142b808d3..8da338c9f 100644 --- a/nebula_app/src/prompt_suggestions/launcher.rs +++ b/pebrel_app/src/prompt_suggestions/launcher.rs @@ -190,7 +190,7 @@ fn prediction_command(options: &Options) -> Result { } pub(crate) fn run(options: Options) -> i32 { - let settings = nebula_settings::RuntimeSettings::load(); + let settings = pebrel_settings::RuntimeSettings::load(); let language = crate::i18n::LanguagePreference::from(settings.language).resolved(); let command = if settings.prompt_suggestions.enabled { match prediction_command(&options) { diff --git a/nebula_app/src/prompt_suggestions/service.rs b/pebrel_app/src/prompt_suggestions/service.rs similarity index 98% rename from nebula_app/src/prompt_suggestions/service.rs rename to pebrel_app/src/prompt_suggestions/service.rs index 2e08a7f29..d60701200 100644 --- a/nebula_app/src/prompt_suggestions/service.rs +++ b/pebrel_app/src/prompt_suggestions/service.rs @@ -34,7 +34,7 @@ struct Snapshot { impl Snapshot { fn load(revision: u64) -> Self { - let runtime = nebula_settings::RuntimeSettings::load(); + let runtime = pebrel_settings::RuntimeSettings::load(); let settings = runtime.prompt_suggestions; let language = crate::i18n::LanguagePreference::from(runtime.language).resolved(); let client = settings diff --git a/nebula_app/src/prompt_suggestions/service_tests.rs b/pebrel_app/src/prompt_suggestions/service_tests.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/service_tests.rs rename to pebrel_app/src/prompt_suggestions/service_tests.rs diff --git a/nebula_app/src/prompt_suggestions/tests.rs b/pebrel_app/src/prompt_suggestions/tests.rs similarity index 100% rename from nebula_app/src/prompt_suggestions/tests.rs rename to pebrel_app/src/prompt_suggestions/tests.rs diff --git a/nebula_app/src/provider_test.rs b/pebrel_app/src/provider_test.rs similarity index 100% rename from nebula_app/src/provider_test.rs rename to pebrel_app/src/provider_test.rs diff --git a/nebula_app/src/proxy_test.rs b/pebrel_app/src/proxy_test.rs similarity index 100% rename from nebula_app/src/proxy_test.rs rename to pebrel_app/src/proxy_test.rs diff --git a/nebula_app/src/remote_dirs.rs b/pebrel_app/src/remote_dirs.rs similarity index 100% rename from nebula_app/src/remote_dirs.rs rename to pebrel_app/src/remote_dirs.rs diff --git a/nebula_app/src/render_cache.rs b/pebrel_app/src/render_cache.rs similarity index 100% rename from nebula_app/src/render_cache.rs rename to pebrel_app/src/render_cache.rs diff --git a/nebula_app/src/renderer/image.rs b/pebrel_app/src/renderer/image.rs similarity index 100% rename from nebula_app/src/renderer/image.rs rename to pebrel_app/src/renderer/image.rs diff --git a/nebula_app/src/renderer/image_layout.rs b/pebrel_app/src/renderer/image_layout.rs similarity index 100% rename from nebula_app/src/renderer/image_layout.rs rename to pebrel_app/src/renderer/image_layout.rs diff --git a/nebula_app/src/renderer/math.rs b/pebrel_app/src/renderer/math.rs similarity index 100% rename from nebula_app/src/renderer/math.rs rename to pebrel_app/src/renderer/math.rs diff --git a/nebula_app/src/renderer/mod.rs b/pebrel_app/src/renderer/mod.rs similarity index 99% rename from nebula_app/src/renderer/mod.rs rename to pebrel_app/src/renderer/mod.rs index 25dde5ea3..272b8a36a 100644 --- a/nebula_app/src/renderer/mod.rs +++ b/pebrel_app/src/renderer/mod.rs @@ -13,9 +13,9 @@ use glutin::display::{GetGlDisplay, GlDisplay}; use log::{LevelFilter, debug, info}; use unicode_width::UnicodeWidthChar; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Point}; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Point}; +use pebrel_terminal::term::cell::Flags; use crate::config::debug::RendererPreference; use crate::display::SizeInfo; diff --git a/nebula_app/src/renderer/platform.rs b/pebrel_app/src/renderer/platform.rs similarity index 100% rename from nebula_app/src/renderer/platform.rs rename to pebrel_app/src/renderer/platform.rs diff --git a/nebula_app/src/renderer/rects.rs b/pebrel_app/src/renderer/rects.rs similarity index 99% rename from nebula_app/src/renderer/rects.rs rename to pebrel_app/src/renderer/rects.rs index a6ca37316..5b13d0acf 100644 --- a/nebula_app/src/renderer/rects.rs +++ b/pebrel_app/src/renderer/rects.rs @@ -5,9 +5,9 @@ use ahash::RandomState; use crossfont::Metrics; use log::info; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Point}; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Point}; +use pebrel_terminal::term::cell::Flags; use crate::display::SizeInfo; use crate::display::color::Rgb; diff --git a/nebula_app/src/renderer/shader.rs b/pebrel_app/src/renderer/shader.rs similarity index 100% rename from nebula_app/src/renderer/shader.rs rename to pebrel_app/src/renderer/shader.rs diff --git a/nebula_app/src/renderer/text/atlas.rs b/pebrel_app/src/renderer/text/atlas.rs similarity index 100% rename from nebula_app/src/renderer/text/atlas.rs rename to pebrel_app/src/renderer/text/atlas.rs diff --git a/nebula_app/src/renderer/text/builtin_font.rs b/pebrel_app/src/renderer/text/builtin_font.rs similarity index 100% rename from nebula_app/src/renderer/text/builtin_font.rs rename to pebrel_app/src/renderer/text/builtin_font.rs diff --git a/nebula_app/src/renderer/text/builtin_font/glyphs.rs b/pebrel_app/src/renderer/text/builtin_font/glyphs.rs similarity index 100% rename from nebula_app/src/renderer/text/builtin_font/glyphs.rs rename to pebrel_app/src/renderer/text/builtin_font/glyphs.rs diff --git a/nebula_app/src/renderer/text/font_rasterizer.rs b/pebrel_app/src/renderer/text/font_rasterizer.rs similarity index 100% rename from nebula_app/src/renderer/text/font_rasterizer.rs rename to pebrel_app/src/renderer/text/font_rasterizer.rs diff --git a/nebula_app/src/renderer/text/gles2.rs b/pebrel_app/src/renderer/text/gles2.rs similarity index 99% rename from nebula_app/src/renderer/text/gles2.rs rename to pebrel_app/src/renderer/text/gles2.rs index 745bf218b..6da7e777a 100644 --- a/nebula_app/src/renderer/text/gles2.rs +++ b/pebrel_app/src/renderer/text/gles2.rs @@ -4,7 +4,7 @@ use std::ptr; use crossfont::RasterizedGlyph; use log::info; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; use crate::display::SizeInfo; use crate::display::content::RenderableCell; diff --git a/nebula_app/src/renderer/text/glsl3.rs b/pebrel_app/src/renderer/text/glsl3.rs similarity index 99% rename from nebula_app/src/renderer/text/glsl3.rs rename to pebrel_app/src/renderer/text/glsl3.rs index eed9bf6ba..267cf8365 100644 --- a/nebula_app/src/renderer/text/glsl3.rs +++ b/pebrel_app/src/renderer/text/glsl3.rs @@ -4,7 +4,7 @@ use std::ptr; use crossfont::RasterizedGlyph; use log::info; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; use crate::display::SizeInfo; use crate::display::content::RenderableCell; diff --git a/nebula_app/src/renderer/text/glyph_cache.rs b/pebrel_app/src/renderer/text/glyph_cache.rs similarity index 100% rename from nebula_app/src/renderer/text/glyph_cache.rs rename to pebrel_app/src/renderer/text/glyph_cache.rs diff --git a/nebula_app/src/renderer/text/mod.rs b/pebrel_app/src/renderer/text/mod.rs similarity index 99% rename from nebula_app/src/renderer/text/mod.rs rename to pebrel_app/src/renderer/text/mod.rs index 35e328cdf..19050275b 100644 --- a/nebula_app/src/renderer/text/mod.rs +++ b/pebrel_app/src/renderer/text/mod.rs @@ -1,7 +1,7 @@ use bitflags::bitflags; use crossfont::{GlyphKey, RasterizedGlyph}; -use nebula_terminal::term::cell::Flags; +use pebrel_terminal::term::cell::Flags; use crate::display::SizeInfo; use crate::display::content::RenderableCell; diff --git a/nebula_app/src/renderer/ui.rs b/pebrel_app/src/renderer/ui.rs similarity index 100% rename from nebula_app/src/renderer/ui.rs rename to pebrel_app/src/renderer/ui.rs diff --git a/nebula_app/src/runtime_api.rs b/pebrel_app/src/runtime_api.rs similarity index 100% rename from nebula_app/src/runtime_api.rs rename to pebrel_app/src/runtime_api.rs diff --git a/nebula_app/src/runtime_api/agent_api.rs b/pebrel_app/src/runtime_api/agent_api.rs similarity index 100% rename from nebula_app/src/runtime_api/agent_api.rs rename to pebrel_app/src/runtime_api/agent_api.rs diff --git a/nebula_app/src/runtime_api/cli.rs b/pebrel_app/src/runtime_api/cli.rs similarity index 100% rename from nebula_app/src/runtime_api/cli.rs rename to pebrel_app/src/runtime_api/cli.rs diff --git a/nebula_app/src/runtime_api/command.rs b/pebrel_app/src/runtime_api/command.rs similarity index 100% rename from nebula_app/src/runtime_api/command.rs rename to pebrel_app/src/runtime_api/command.rs diff --git a/nebula_app/src/runtime_api/conversation.rs b/pebrel_app/src/runtime_api/conversation.rs similarity index 100% rename from nebula_app/src/runtime_api/conversation.rs rename to pebrel_app/src/runtime_api/conversation.rs diff --git a/nebula_app/src/runtime_api/git.rs b/pebrel_app/src/runtime_api/git.rs similarity index 100% rename from nebula_app/src/runtime_api/git.rs rename to pebrel_app/src/runtime_api/git.rs diff --git a/nebula_app/src/runtime_api/git/tests.rs b/pebrel_app/src/runtime_api/git/tests.rs similarity index 98% rename from nebula_app/src/runtime_api/git/tests.rs rename to pebrel_app/src/runtime_api/git/tests.rs index c7d922ee3..ba4f871df 100644 --- a/nebula_app/src/runtime_api/git/tests.rs +++ b/pebrel_app/src/runtime_api/git/tests.rs @@ -29,7 +29,7 @@ fn request(cwd: &Path, operation: &str, mut params: Value) -> Request { } fn call(cwd: &Path, operation: &str, params: Value) -> Result { - let options = nebula_terminal::tty::Options { + let options = pebrel_terminal::tty::Options { working_directory: Some(cwd.to_path_buf()), ..Default::default() }; @@ -118,7 +118,7 @@ fn local_remote_fetch_pull_push_and_nested_cwd() { #[test] fn rejects_wrong_target_and_unknown_methods_before_execution() { let dir = repository(); - let options = nebula_terminal::tty::Options::default(); + let options = pebrel_terminal::tty::Options::default(); let error = execute( PaneExecContext::from_pty_options(&options), "another cwd".into(), diff --git a/nebula_app/src/runtime_api/handover.rs b/pebrel_app/src/runtime_api/handover.rs similarity index 97% rename from nebula_app/src/runtime_api/handover.rs rename to pebrel_app/src/runtime_api/handover.rs index 4c4353138..9a3f607a9 100644 --- a/nebula_app/src/runtime_api/handover.rs +++ b/pebrel_app/src/runtime_api/handover.rs @@ -18,7 +18,7 @@ pub(super) fn open(method: &str, params: Value) -> bool { Outcome::Confirmed => true, Outcome::Unconfirmed => { let language = crate::i18n::LanguagePreference::from( - nebula_settings::RuntimeSettings::load().language, + pebrel_settings::RuntimeSettings::load().language, ) .resolved(); let message = language.text(crate::i18n::Message::StartupHandoverUnconfirmed); diff --git a/nebula_app/src/runtime_api/handover_tests.rs b/pebrel_app/src/runtime_api/handover_tests.rs similarity index 100% rename from nebula_app/src/runtime_api/handover_tests.rs rename to pebrel_app/src/runtime_api/handover_tests.rs diff --git a/nebula_app/src/runtime_api/mobile_bridge.rs b/pebrel_app/src/runtime_api/mobile_bridge.rs similarity index 100% rename from nebula_app/src/runtime_api/mobile_bridge.rs rename to pebrel_app/src/runtime_api/mobile_bridge.rs diff --git a/nebula_app/src/runtime_api/mobile_screen.rs b/pebrel_app/src/runtime_api/mobile_screen.rs similarity index 100% rename from nebula_app/src/runtime_api/mobile_screen.rs rename to pebrel_app/src/runtime_api/mobile_screen.rs diff --git a/nebula_app/src/runtime_api/orchestrate.rs b/pebrel_app/src/runtime_api/orchestrate.rs similarity index 100% rename from nebula_app/src/runtime_api/orchestrate.rs rename to pebrel_app/src/runtime_api/orchestrate.rs diff --git a/nebula_app/src/runtime_api/server.rs b/pebrel_app/src/runtime_api/server.rs similarity index 100% rename from nebula_app/src/runtime_api/server.rs rename to pebrel_app/src/runtime_api/server.rs diff --git a/nebula_app/src/runtime_api/shortcuts.rs b/pebrel_app/src/runtime_api/shortcuts.rs similarity index 100% rename from nebula_app/src/runtime_api/shortcuts.rs rename to pebrel_app/src/runtime_api/shortcuts.rs diff --git a/nebula_app/src/runtime_api/tabs.rs b/pebrel_app/src/runtime_api/tabs.rs similarity index 100% rename from nebula_app/src/runtime_api/tabs.rs rename to pebrel_app/src/runtime_api/tabs.rs diff --git a/nebula_app/src/runtime_api/terminal_read.rs b/pebrel_app/src/runtime_api/terminal_read.rs similarity index 97% rename from nebula_app/src/runtime_api/terminal_read.rs rename to pebrel_app/src/runtime_api/terminal_read.rs index 179f37e30..d7ada23c2 100644 --- a/nebula_app/src/runtime_api/terminal_read.rs +++ b/pebrel_app/src/runtime_api/terminal_read.rs @@ -1,10 +1,10 @@ //! 终端模型的只读投影:纯文本尾部与有界彩色网格共用目标和生命周期。 use super::{ApiError, MAX_READ_BYTES, RuntimeTaskState}; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line, Point}; -use nebula_terminal::term::{Term, cell::Flags}; -use nebula_terminal::vte::ansi::{Color, CursorShape, Rgb}; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line, Point}; +use pebrel_terminal::term::{Term, cell::Flags}; +use pebrel_terminal::vte::ansi::{Color, CursorShape, Rgb}; use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] @@ -83,7 +83,7 @@ pub(crate) fn capture_terminal_history( start: Option, requested_rows: usize, ) -> Result { - use nebula_terminal::term::TermMode; + use pebrel_terminal::term::TermMode; let columns = term.columns(); if !(1..=400).contains(&columns) || !(1..=200).contains(&requested_rows) { return Err(ApiError::invalid_params("history requires 1..200 rows and 1..400 columns")); @@ -187,7 +187,7 @@ fn capture_terminal_grid( .contains(Flags::WRAPLINE) }) .collect(), - palette: (0..nebula_terminal::term::color::COUNT) + palette: (0..pebrel_terminal::term::color::COUNT) .map(|index| (index, packed_rgb(palette_color(index)))) .collect(), cursor: ( @@ -290,10 +290,10 @@ pub(crate) fn capture_terminal_tail( #[cfg(test)] mod tests { use super::*; - use nebula_terminal::event::VoidListener; - use nebula_terminal::grid::Scroll; - use nebula_terminal::term::test::TermSize; - use nebula_terminal::vte::ansi::{NamedColor, Processor}; + use pebrel_terminal::event::VoidListener; + use pebrel_terminal::grid::Scroll; + use pebrel_terminal::term::test::TermSize; + use pebrel_terminal::vte::ansi::{NamedColor, Processor}; fn terminal(columns: usize, lines: usize, text: &str) -> Term { let mut term = Term::new(Default::default(), &TermSize::new(columns, lines), VoidListener); diff --git a/nebula_app/src/runtime_api/tests.rs b/pebrel_app/src/runtime_api/tests.rs similarity index 99% rename from nebula_app/src/runtime_api/tests.rs rename to pebrel_app/src/runtime_api/tests.rs index c798f3ffd..45d1ff074 100644 --- a/nebula_app/src/runtime_api/tests.rs +++ b/pebrel_app/src/runtime_api/tests.rs @@ -1175,7 +1175,7 @@ fn protocol_schema_is_valid_json_and_tracks_v1() { #[test] fn terminal_tail_reads_buffer_bottom_with_utf8_intact() { - let term = nebula_terminal::term::test::mock_term("old\r\n中间\r\nlatest"); + let term = pebrel_terminal::term::test::mock_term("old\r\n中间\r\nlatest"); let read = capture_terminal_tail(&term, 7, 3, 2, RuntimeTaskState::Finished, false, None); assert_eq!(read.text, "中间\nlatest"); assert_eq!(read.requested_lines, 2); diff --git a/nebula_app/src/runtime_api/transport.rs b/pebrel_app/src/runtime_api/transport.rs similarity index 100% rename from nebula_app/src/runtime_api/transport.rs rename to pebrel_app/src/runtime_api/transport.rs diff --git a/nebula_app/src/runtime_exec.rs b/pebrel_app/src/runtime_exec.rs similarity index 97% rename from nebula_app/src/runtime_exec.rs rename to pebrel_app/src/runtime_exec.rs index d5462936a..4cf9ca784 100644 --- a/nebula_app/src/runtime_exec.rs +++ b/pebrel_app/src/runtime_exec.rs @@ -100,7 +100,7 @@ impl PaneExecContext { .filter(|value| !value.is_empty()) } - pub(crate) fn from_pty_options(options: &nebula_terminal::tty::Options) -> Self { + pub(crate) fn from_pty_options(options: &pebrel_terminal::tty::Options) -> Self { let location = options .shell .as_ref() @@ -424,11 +424,11 @@ mod tests { #[test] fn launch_location_distinguishes_host_default_wsl_and_named_wsl() { - let mut options = nebula_terminal::tty::Options::default(); + let mut options = pebrel_terminal::tty::Options::default(); assert_eq!(PaneExecContext::from_pty_options(&options).wsl_distribution(), None); - options.shell = Some(nebula_terminal::tty::Shell::new("wsl.exe".into(), Vec::new())); + options.shell = Some(pebrel_terminal::tty::Shell::new("wsl.exe".into(), Vec::new())); assert_eq!(PaneExecContext::from_pty_options(&options).wsl_distribution(), Some(None)); - options.shell = Some(nebula_terminal::tty::Shell::new( + options.shell = Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["--distribution".into(), "Debian".into(), "--user".into(), "hello".into()], )); @@ -442,8 +442,8 @@ mod tests { /// 启动目录和直接执行参数是不同的解析边界。 #[test] fn wsl_exec_preserves_argv_and_checks_startup_directory() { - let mut options = nebula_terminal::tty::Options::default(); - options.shell = Some(nebula_terminal::tty::Shell::new( + let mut options = pebrel_terminal::tty::Options::default(); + options.shell = Some(pebrel_terminal::tty::Shell::new( "wsl.exe".into(), vec!["-d".into(), "Ubuntu".into()], )); diff --git a/nebula_app/src/saved_commands.rs b/pebrel_app/src/saved_commands.rs similarity index 100% rename from nebula_app/src/saved_commands.rs rename to pebrel_app/src/saved_commands.rs diff --git a/nebula_app/src/saved_commands/builtins.rs b/pebrel_app/src/saved_commands/builtins.rs similarity index 100% rename from nebula_app/src/saved_commands/builtins.rs rename to pebrel_app/src/saved_commands/builtins.rs diff --git a/nebula_app/src/saved_commands/bulk.rs b/pebrel_app/src/saved_commands/bulk.rs similarity index 100% rename from nebula_app/src/saved_commands/bulk.rs rename to pebrel_app/src/saved_commands/bulk.rs diff --git a/nebula_app/src/saved_commands/groups.rs b/pebrel_app/src/saved_commands/groups.rs similarity index 100% rename from nebula_app/src/saved_commands/groups.rs rename to pebrel_app/src/saved_commands/groups.rs diff --git a/nebula_app/src/scheduler.rs b/pebrel_app/src/scheduler.rs similarity index 100% rename from nebula_app/src/scheduler.rs rename to pebrel_app/src/scheduler.rs diff --git a/nebula_app/src/scientific_corpus.rs b/pebrel_app/src/scientific_corpus.rs similarity index 100% rename from nebula_app/src/scientific_corpus.rs rename to pebrel_app/src/scientific_corpus.rs diff --git a/nebula_app/src/scrollbar.rs b/pebrel_app/src/scrollbar.rs similarity index 100% rename from nebula_app/src/scrollbar.rs rename to pebrel_app/src/scrollbar.rs diff --git a/nebula_app/src/serial_session.rs b/pebrel_app/src/serial_session.rs similarity index 97% rename from nebula_app/src/serial_session.rs rename to pebrel_app/src/serial_session.rs index 2f9995346..68900dc7e 100644 --- a/nebula_app/src/serial_session.rs +++ b/pebrel_app/src/serial_session.rs @@ -11,10 +11,10 @@ use std::sync::mpsc::RecvTimeoutError; use std::sync::{Arc, Mutex}; use std::time::Duration; -use nebula_terminal::event::{Event as TerminalEvent, EventListener, WindowSize}; -use nebula_terminal::event_loop::{EventLoopSender, Msg, StreamProcessor}; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::Term; +use pebrel_terminal::event::{Event as TerminalEvent, EventListener, WindowSize}; +use pebrel_terminal::event_loop::{EventLoopSender, Msg, StreamProcessor}; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::Term; pub(crate) const SCHEME: &str = "serial:"; @@ -108,7 +108,7 @@ where { let config: SerialConfig = destination.parse()?; let language = - crate::i18n::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::i18n::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved(); let mut writer = crate::platform::serial_port::open(&config)?; let mut reader = writer.try_clone()?; diff --git a/nebula_app/src/serial_session/tests.rs b/pebrel_app/src/serial_session/tests.rs similarity index 100% rename from nebula_app/src/serial_session/tests.rs rename to pebrel_app/src/serial_session/tests.rs diff --git a/nebula_app/src/session.rs b/pebrel_app/src/session.rs similarity index 100% rename from nebula_app/src/session.rs rename to pebrel_app/src/session.rs diff --git a/nebula_app/src/session/identity.rs b/pebrel_app/src/session/identity.rs similarity index 100% rename from nebula_app/src/session/identity.rs rename to pebrel_app/src/session/identity.rs diff --git a/nebula_app/src/session/window_layout.rs b/pebrel_app/src/session/window_layout.rs similarity index 100% rename from nebula_app/src/session/window_layout.rs rename to pebrel_app/src/session/window_layout.rs diff --git a/nebula_app/src/shell_detect.rs b/pebrel_app/src/shell_detect.rs similarity index 98% rename from nebula_app/src/shell_detect.rs rename to pebrel_app/src/shell_detect.rs index a0c8a2265..5d4678a7b 100644 --- a/nebula_app/src/shell_detect.rs +++ b/pebrel_app/src/shell_detect.rs @@ -46,17 +46,17 @@ enum ShellIntegration { } impl DetectedShell { - pub fn shell(&self) -> nebula_terminal::tty::Shell { + pub fn shell(&self) -> pebrel_terminal::tty::Shell { #[cfg(windows)] match self.integration() { ShellIntegration::PowerShell => { - return nebula_terminal::tty::powershell_with_nebula_integration( + return pebrel_terminal::tty::powershell_with_nebula_integration( self.program.clone(), self.args.clone(), ); }, ShellIntegration::Bash => { - return nebula_terminal::tty::bash_with_nebula_integration( + return pebrel_terminal::tty::bash_with_nebula_integration( self.program.clone(), self.args.clone(), ); @@ -66,7 +66,7 @@ impl DetectedShell { | ShellIntegration::Unsupported => {}, } - nebula_terminal::tty::Shell::new(self.program.clone(), self.args.clone()) + pebrel_terminal::tty::Shell::new(self.program.clone(), self.args.clone()) } fn integration(&self) -> ShellIntegration { @@ -247,7 +247,7 @@ fn detect_unix() -> Vec { args: crate::platform::shell::interactive_args(id), }); }; - if let Ok(login) = nebula_terminal::tty::default_shell_program() { + if let Ok(login) = pebrel_terminal::tty::default_shell_program() { push(PathBuf::from(login)); } if let Ok(list) = std::fs::read_to_string("/etc/shells") { @@ -859,7 +859,7 @@ pub fn wsl_unc_cwd(located: &WslCwd) -> Option { /// 尽力而为、失败无害:fish(不认 `PROMPT_COMMAND`),或用户自己在 rc 里直接 /// 赋值把它覆盖掉,都只是回到"不上报"的现状,不会影响 shell 正常启动。zsh 用 /// `zsh_integration`:来宾确认过的 bootstrap 目录经 `WSLENV` `/p` 作为 `ZDOTDIR` -/// 送进来宾,见 `architecture/notes/nebula_app/platform/`。它必须是 +/// 送进来宾,见 `architecture/notes/pebrel_app/platform/`。它必须是 /// `wsl_guest_shell::takes_zsh_bootstrap` 的答案:宿主 `WSLENV` 已转发用户自己的 /// `ZDOTDIR` 时,那里已经拒绝接管。 pub fn wsl_cwd_report_env( @@ -882,7 +882,7 @@ fi; printf '\033]1337;SetUserVar=pebrel_shell=%s\007' "$__pebrel_shell_token"; i // 宿主侧可能已经有 WSLENV(别的工具设的),必须追加而不是覆盖。 let mut wslenv = effective_wslenv(current_wslenv); let report = - REPORT.replace("__PEBREL_CONNECTION_HOOK__", nebula_terminal::tty::connection_shell()); + REPORT.replace("__PEBREL_CONNECTION_HOOK__", pebrel_terminal::tty::connection_shell()); let mut additions = vec![("PROMPT_COMMAND".to_owned(), report)]; append_wslenv(&mut wslenv, "PROMPT_COMMAND"); if let Some(directory) = zsh_integration { @@ -940,14 +940,14 @@ pub(crate) fn wslenv_forwards(wslenv: &str, name: &str) -> bool { /// the snapshot explicitly, other PTY defaults stay `None`; a WSL spawn is pinned /// to `distro` while the caller persists the launch as configured. pub(crate) fn spawn_shell( - effective: Option, - snapshot: Option<&nebula_terminal::tty::Shell>, + effective: Option, + snapshot: Option<&pebrel_terminal::tty::Shell>, distro: Option<&str>, -) -> Option { +) -> Option { let shell = effective.or_else(|| snapshot.filter(|shell| is_wsl_launcher(shell.program())).cloned())?; match distro.and_then(|distro| wsl_args_pinned(shell.program(), shell.args(), distro)) { - Some(args) => Some(nebula_terminal::tty::Shell::new(shell.program().to_owned(), args)), + Some(args) => Some(pebrel_terminal::tty::Shell::new(shell.program().to_owned(), args)), None => Some(shell), } } @@ -1261,7 +1261,7 @@ mod tests { #[test] fn spawn_shell_pins_wsl_and_keeps_other_pty_defaults_on_the_engine_path() { - use nebula_terminal::tty::Shell; + use pebrel_terminal::tty::Shell; let shell = |program: &str, args: &[&str]| Shell::new(program.to_owned(), owned(args)); let spawned = |effective: Option, snapshot: Option| { super::spawn_shell(effective, snapshot.as_ref(), Some("Ubuntu")) @@ -1549,8 +1549,8 @@ test "$token" = "$__pebrel_shell_token" || exit 96 #[cfg(unix)] { let broken = prompt.replace( - nebula_terminal::tty::connection_shell(), - &nebula_terminal::tty::connection_shell().replace('\n', "\r\n"), + pebrel_terminal::tty::connection_shell(), + &pebrel_terminal::tty::connection_shell().replace('\n', "\r\n"), ); let output = run(&broken, ""); assert!(!output.status.success(), "CRLF must reproduce the original parse failure"); diff --git a/nebula_app/src/ssh.rs b/pebrel_app/src/ssh.rs similarity index 99% rename from nebula_app/src/ssh.rs rename to pebrel_app/src/ssh.rs index daa917821..17fc9da50 100644 --- a/nebula_app/src/ssh.rs +++ b/pebrel_app/src/ssh.rs @@ -746,7 +746,7 @@ pub fn run(mut args: Vec) -> i32 { }, SshPlan::Inject => { let b64 = base64::engine::general_purpose::STANDARD; - let shell = nebula_terminal::tty::connection_shell(); + let shell = pebrel_terminal::tty::connection_shell(); let bootstrap = build_bootstrap( &b64.encode(format!("{REMOTE_BASH}\n{shell}")), &b64.encode(format!("{REMOTE_ZSH}\n{shell}")), diff --git a/nebula_app/src/ssh/hosts.rs b/pebrel_app/src/ssh/hosts.rs similarity index 100% rename from nebula_app/src/ssh/hosts.rs rename to pebrel_app/src/ssh/hosts.rs diff --git a/nebula_app/src/ssh/hosts/wsl.rs b/pebrel_app/src/ssh/hosts/wsl.rs similarity index 100% rename from nebula_app/src/ssh/hosts/wsl.rs rename to pebrel_app/src/ssh/hosts/wsl.rs diff --git a/nebula_app/src/ssh_credentials.rs b/pebrel_app/src/ssh_credentials.rs similarity index 100% rename from nebula_app/src/ssh_credentials.rs rename to pebrel_app/src/ssh_credentials.rs diff --git a/nebula_app/src/ssh_profiles.rs b/pebrel_app/src/ssh_profiles.rs similarity index 100% rename from nebula_app/src/ssh_profiles.rs rename to pebrel_app/src/ssh_profiles.rs diff --git a/nebula_app/src/ssh_profiles/connection.rs b/pebrel_app/src/ssh_profiles/connection.rs similarity index 100% rename from nebula_app/src/ssh_profiles/connection.rs rename to pebrel_app/src/ssh_profiles/connection.rs diff --git a/nebula_app/src/ssh_profiles/connection/tests.rs b/pebrel_app/src/ssh_profiles/connection/tests.rs similarity index 100% rename from nebula_app/src/ssh_profiles/connection/tests.rs rename to pebrel_app/src/ssh_profiles/connection/tests.rs diff --git a/nebula_app/src/ssh_profiles/duplication.rs b/pebrel_app/src/ssh_profiles/duplication.rs similarity index 100% rename from nebula_app/src/ssh_profiles/duplication.rs rename to pebrel_app/src/ssh_profiles/duplication.rs diff --git a/nebula_app/src/ssh_profiles/exchange.rs b/pebrel_app/src/ssh_profiles/exchange.rs similarity index 100% rename from nebula_app/src/ssh_profiles/exchange.rs rename to pebrel_app/src/ssh_profiles/exchange.rs diff --git a/nebula_app/src/ssh_profiles/host_lists.rs b/pebrel_app/src/ssh_profiles/host_lists.rs similarity index 100% rename from nebula_app/src/ssh_profiles/host_lists.rs rename to pebrel_app/src/ssh_profiles/host_lists.rs diff --git a/nebula_app/src/ssh_profiles/organization.rs b/pebrel_app/src/ssh_profiles/organization.rs similarity index 100% rename from nebula_app/src/ssh_profiles/organization.rs rename to pebrel_app/src/ssh_profiles/organization.rs diff --git a/nebula_app/src/ssh_prompt.rs b/pebrel_app/src/ssh_prompt.rs similarity index 100% rename from nebula_app/src/ssh_prompt.rs rename to pebrel_app/src/ssh_prompt.rs diff --git a/nebula_app/src/ssh_proxy.rs b/pebrel_app/src/ssh_proxy.rs similarity index 99% rename from nebula_app/src/ssh_proxy.rs rename to pebrel_app/src/ssh_proxy.rs index 3e794cee7..dfc684913 100644 --- a/nebula_app/src/ssh_proxy.rs +++ b/pebrel_app/src/ssh_proxy.rs @@ -484,7 +484,7 @@ impl SshProxyConfig { /// 直接读 `nebula_settings.txt` 的三个键。SSH runtime 线程不持有窗口的 /// 设置结构,走文件是两边共享配置的既有方式(同 `sync.rs`)。 pub fn load_global() -> Self { - let path = nebula_settings::settings_path(); + let path = pebrel_settings::settings_path(); let mut config = Self::default(); let Ok(data) = std::fs::read_to_string(path) else { return config }; for line in data.lines() { @@ -745,7 +745,7 @@ fn apply_terminal_proxy_env( /// 使用启动时的设置快照补代理变量,避免与环境刷新重复读盘。已打开的会话不经过这里。 pub(crate) fn apply_saved_terminal_proxy_env( env: &mut HashMap, - settings: &nebula_settings::RuntimeSettings, + settings: &pebrel_settings::RuntimeSettings, ) -> bool { let mode = ProxyMode::parse(settings.ssh_proxy_mode.settings_value()); let system = @@ -1680,7 +1680,7 @@ mod tests { #[test] fn saved_custom_proxy_defaults_empty_bypass_to_loopback() { - use nebula_settings::{RawSettings, RuntimeSettings}; + use pebrel_settings::{RawSettings, RuntimeSettings}; for (bypass_setting, expected) in [ ("", "localhost,127.0.0.1,::1"), diff --git a/nebula_app/src/ssh_session.rs b/pebrel_app/src/ssh_session.rs similarity index 99% rename from nebula_app/src/ssh_session.rs rename to pebrel_app/src/ssh_session.rs index 62f889793..f2e22963e 100644 --- a/nebula_app/src/ssh_session.rs +++ b/pebrel_app/src/ssh_session.rs @@ -12,10 +12,10 @@ use std::sync::{Arc, OnceLock}; use std::time::Duration; use log::{info, warn}; -use nebula_terminal::event::{Event as TerminalEvent, WindowSize}; -use nebula_terminal::event_loop::{EventLoopSender, StreamProcessor}; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::Term; +use pebrel_terminal::event::{Event as TerminalEvent, WindowSize}; +use pebrel_terminal::event_loop::{EventLoopSender, StreamProcessor}; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::Term; use russh::client::{self, KeyboardInteractiveAuthResponse}; use russh::keys::ssh_key; use russh::keys::{HashAlg, PrivateKeyWithHashAlg}; @@ -44,8 +44,8 @@ use route::{ResolvedRoute, RouteTransport}; /// Remote terminals have no pre-primed ConPTY handshake or host row anchoring. pub(crate) fn terminal_config( - mut config: nebula_terminal::term::Config, -) -> nebula_terminal::term::Config { + mut config: pebrel_terminal::term::Config, +) -> pebrel_terminal::term::Config { config.suppress_bringup_da1 = false; config.conpty_resize = false; config @@ -72,9 +72,9 @@ struct OpenedTransport { /// 它,[`spawn_session`] 因此对 UI 壳无感——同一条 russh 业务路径服务 /// 两个壳,不产生第二套连接语义。 /// -/// [`EventListener`]: nebula_terminal::event::EventListener +/// [`EventListener`]: pebrel_terminal::event::EventListener pub trait SshEventHost: - nebula_terminal::event::EventListener + Clone + Send + Sync + 'static + pebrel_terminal::event::EventListener + Clone + Send + Sync + 'static { /// Access is scoped to this pane's live authenticated transport. fn ssh_pane_connection(&self, _connection: Option) {} @@ -107,7 +107,7 @@ impl SshEventHost for EventProxy { #[derive(Clone)] struct NoopSshEventHost; -impl nebula_terminal::event::EventListener for NoopSshEventHost {} +impl pebrel_terminal::event::EventListener for NoopSshEventHost {} impl SshEventHost for NoopSshEventHost {} /// 直连 SSH 会话的连接阶段。 diff --git a/nebula_app/src/ssh_session/agent.rs b/pebrel_app/src/ssh_session/agent.rs similarity index 99% rename from nebula_app/src/ssh_session/agent.rs rename to pebrel_app/src/ssh_session/agent.rs index ab7d42c84..87bbcc4c9 100644 --- a/nebula_app/src/ssh_session/agent.rs +++ b/pebrel_app/src/ssh_session/agent.rs @@ -223,7 +223,7 @@ fn identity_blob(identity: &AgentIdentity) -> Result, SessionError> { } fn language() -> crate::i18n::UiLanguage { - crate::i18n::LanguagePreference::from(nebula_settings::RuntimeSettings::load().language) + crate::i18n::LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language) .resolved() } diff --git a/nebula_app/src/ssh_session/agent/test_support.rs b/pebrel_app/src/ssh_session/agent/test_support.rs similarity index 100% rename from nebula_app/src/ssh_session/agent/test_support.rs rename to pebrel_app/src/ssh_session/agent/test_support.rs diff --git a/nebula_app/src/ssh_session/agent/tests.rs b/pebrel_app/src/ssh_session/agent/tests.rs similarity index 100% rename from nebula_app/src/ssh_session/agent/tests.rs rename to pebrel_app/src/ssh_session/agent/tests.rs diff --git a/nebula_app/src/ssh_session/completion.rs b/pebrel_app/src/ssh_session/completion.rs similarity index 100% rename from nebula_app/src/ssh_session/completion.rs rename to pebrel_app/src/ssh_session/completion.rs diff --git a/nebula_app/src/ssh_session/config.rs b/pebrel_app/src/ssh_session/config.rs similarity index 100% rename from nebula_app/src/ssh_session/config.rs rename to pebrel_app/src/ssh_session/config.rs diff --git a/nebula_app/src/ssh_session/exec.rs b/pebrel_app/src/ssh_session/exec.rs similarity index 100% rename from nebula_app/src/ssh_session/exec.rs rename to pebrel_app/src/ssh_session/exec.rs diff --git a/nebula_app/src/ssh_session/forward.rs b/pebrel_app/src/ssh_session/forward.rs similarity index 100% rename from nebula_app/src/ssh_session/forward.rs rename to pebrel_app/src/ssh_session/forward.rs diff --git a/nebula_app/src/ssh_session/forward/tests.rs b/pebrel_app/src/ssh_session/forward/tests.rs similarity index 100% rename from nebula_app/src/ssh_session/forward/tests.rs rename to pebrel_app/src/ssh_session/forward/tests.rs diff --git a/nebula_app/src/ssh_session/integration.rs b/pebrel_app/src/ssh_session/integration.rs similarity index 98% rename from nebula_app/src/ssh_session/integration.rs rename to pebrel_app/src/ssh_session/integration.rs index 9b61511c9..0538cadbb 100644 --- a/nebula_app/src/ssh_session/integration.rs +++ b/pebrel_app/src/ssh_session/integration.rs @@ -15,7 +15,7 @@ pub(super) struct Prepared { } pub(super) async fn prepare(session: &SharedSession, token: &str) -> Option { - if nebula_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { + if pebrel_settings::RawSettings::load().bool_on("ai_hooks") == Some(false) { return None; } let result = tokio::time::timeout(BUDGET, async { diff --git a/nebula_app/src/ssh_session/lifecycle.rs b/pebrel_app/src/ssh_session/lifecycle.rs similarity index 99% rename from nebula_app/src/ssh_session/lifecycle.rs rename to pebrel_app/src/ssh_session/lifecycle.rs index 64c70b9d1..28ba45ff8 100644 --- a/nebula_app/src/ssh_session/lifecycle.rs +++ b/pebrel_app/src/ssh_session/lifecycle.rs @@ -8,10 +8,10 @@ use std::sync::mpsc::{Receiver, RecvTimeoutError}; use std::task::{Context, Poll, Waker}; use std::time::Duration; -use nebula_terminal::event::{Event as TerminalEvent, WindowSize}; -use nebula_terminal::event_loop::{Msg, StreamProcessor}; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::Term; +use pebrel_terminal::event::{Event as TerminalEvent, WindowSize}; +use pebrel_terminal::event_loop::{Msg, StreamProcessor}; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::Term; use russh::{Channel, ChannelMsg, ChannelReadHalf, ChannelWriteHalf, client}; use tokio::sync::{mpsc, watch}; diff --git a/nebula_app/src/ssh_session/lifecycle/tests.rs b/pebrel_app/src/ssh_session/lifecycle/tests.rs similarity index 98% rename from nebula_app/src/ssh_session/lifecycle/tests.rs rename to pebrel_app/src/ssh_session/lifecycle/tests.rs index 9453534fa..a8daa7ee6 100644 --- a/nebula_app/src/ssh_session/lifecycle/tests.rs +++ b/pebrel_app/src/ssh_session/lifecycle/tests.rs @@ -1,7 +1,7 @@ use std::sync::Mutex; -use nebula_terminal::event::EventListener; -use nebula_terminal::grid::Dimensions; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::grid::Dimensions; use russh::keys::ssh_key::{Algorithm, PrivateKey}; use russh::server::{self, Auth, ChannelOpenHandle, Session}; use russh::{ChannelId, Pty}; @@ -502,7 +502,7 @@ fn ssh_first_capability_query_receives_reply_and_input_keeps_flowing() { let acquired = fixture.connect().await; let (sender, mut input) = mpsc::unbounded_channel(); let events = Events { replies: Some(sender.clone()), ..Events::default() }; - let options = super::super::terminal_config(nebula_terminal::term::Config { + let options = super::super::terminal_config(pebrel_terminal::term::Config { suppress_bringup_da1: true, conpty_resize: true, kitty_keyboard: true, @@ -538,8 +538,8 @@ fn ssh_first_capability_query_receives_reply_and_input_keeps_flowing() { #[test] fn ssh_terminal_options_preserve_preferences_but_disable_conpty_only_behavior() { - use nebula_terminal::term::{Config, Osc52}; - use nebula_terminal::vte::ansi::{CursorShape, CursorStyle}; + use pebrel_terminal::term::{Config, Osc52}; + use pebrel_terminal::vte::ansi::{CursorShape, CursorStyle}; let local = Config { suppress_bringup_da1: true, @@ -563,8 +563,8 @@ fn ssh_terminal_options_preserve_preferences_but_disable_conpty_only_behavior() let (sender, mut input) = mpsc::unbounded_channel(); let events = Events { replies: Some(sender), ..Default::default() }; let mut terminal = Term::new(local, &size(), events); - let mut parser: nebula_terminal::vte::ansi::Processor = - nebula_terminal::vte::ansi::Processor::new(); + let mut parser: pebrel_terminal::vte::ansi::Processor = + pebrel_terminal::vte::ansi::Processor::new(); parser.advance(&mut terminal, b"\x1b[c"); assert!(input.try_recv().is_err(), "the pre-primed local handshake is still suppressed"); parser.advance(&mut terminal, b"\x1b[c"); @@ -895,7 +895,7 @@ fn ssh_delayed_synchronized_redraw_keeps_the_complete_screen_visible() { // Longer than the parser's local-PTY default, but a realistic network gap. tokio::time::sleep(Duration::from_millis(300)).await; let first_row = || { - use nebula_terminal::index::{Column, Line}; + use pebrel_terminal::index::{Column, Line}; let terminal = terminal.lock(); (0..terminal.columns()) .map(|column| terminal.grid()[Line(0)][Column(column)].c) @@ -959,7 +959,7 @@ fn ssh_unfinished_synchronized_output_is_preserved_on_exit_disconnect_and_shutdo let result = running.await.unwrap(); assert_eq!(result.is_ok(), ending != Some(b'\x03')); let terminal = terminal.lock(); - use nebula_terminal::index::{Column, Line}; + use pebrel_terminal::index::{Column, Line}; let row: String = (0..terminal.columns()) .map(|column| terminal.grid()[Line(0)][Column(column)].c) .collect(); @@ -1000,7 +1000,7 @@ fn ssh_queued_unmarked_redraw_publishes_once_and_preserves_split_text() { wakeups += 1; } assert_eq!(wakeups, 1, "one queued redraw produced {wakeups} display updates"); - use nebula_terminal::index::{Column, Line}; + use pebrel_terminal::index::{Column, Line}; let terminal = terminal.lock(); let row: String = (0..terminal.columns()) .map(|column| terminal.grid()[Line(0)][Column(column)].c) diff --git a/nebula_app/src/ssh_session/lifecycle/tests/keepalive.rs b/pebrel_app/src/ssh_session/lifecycle/tests/keepalive.rs similarity index 100% rename from nebula_app/src/ssh_session/lifecycle/tests/keepalive.rs rename to pebrel_app/src/ssh_session/lifecycle/tests/keepalive.rs diff --git a/nebula_app/src/ssh_session/lifecycle/tests/sftp.rs b/pebrel_app/src/ssh_session/lifecycle/tests/sftp.rs similarity index 100% rename from nebula_app/src/ssh_session/lifecycle/tests/sftp.rs rename to pebrel_app/src/ssh_session/lifecycle/tests/sftp.rs diff --git a/nebula_app/src/ssh_session/pane_connection.rs b/pebrel_app/src/ssh_session/pane_connection.rs similarity index 100% rename from nebula_app/src/ssh_session/pane_connection.rs rename to pebrel_app/src/ssh_session/pane_connection.rs diff --git a/nebula_app/src/ssh_session/resume.rs b/pebrel_app/src/ssh_session/resume.rs similarity index 100% rename from nebula_app/src/ssh_session/resume.rs rename to pebrel_app/src/ssh_session/resume.rs diff --git a/nebula_app/src/ssh_session/resume/acceptance.rs b/pebrel_app/src/ssh_session/resume/acceptance.rs similarity index 100% rename from nebula_app/src/ssh_session/resume/acceptance.rs rename to pebrel_app/src/ssh_session/resume/acceptance.rs diff --git a/nebula_app/src/ssh_session/resume/activity.rs b/pebrel_app/src/ssh_session/resume/activity.rs similarity index 100% rename from nebula_app/src/ssh_session/resume/activity.rs rename to pebrel_app/src/ssh_session/resume/activity.rs diff --git a/nebula_app/src/ssh_session/resume/discover.sh b/pebrel_app/src/ssh_session/resume/discover.sh similarity index 100% rename from nebula_app/src/ssh_session/resume/discover.sh rename to pebrel_app/src/ssh_session/resume/discover.sh diff --git a/nebula_app/src/ssh_session/resume/identity.rs b/pebrel_app/src/ssh_session/resume/identity.rs similarity index 100% rename from nebula_app/src/ssh_session/resume/identity.rs rename to pebrel_app/src/ssh_session/resume/identity.rs diff --git a/nebula_app/src/ssh_session/resume/tests.rs b/pebrel_app/src/ssh_session/resume/tests.rs similarity index 100% rename from nebula_app/src/ssh_session/resume/tests.rs rename to pebrel_app/src/ssh_session/resume/tests.rs diff --git a/nebula_app/src/ssh_session/resume/tests/startup.rs b/pebrel_app/src/ssh_session/resume/tests/startup.rs similarity index 100% rename from nebula_app/src/ssh_session/resume/tests/startup.rs rename to pebrel_app/src/ssh_session/resume/tests/startup.rs diff --git a/nebula_app/src/ssh_session/route.rs b/pebrel_app/src/ssh_session/route.rs similarity index 100% rename from nebula_app/src/ssh_session/route.rs rename to pebrel_app/src/ssh_session/route.rs diff --git a/nebula_app/src/ssh_session/route/tests.rs b/pebrel_app/src/ssh_session/route/tests.rs similarity index 100% rename from nebula_app/src/ssh_session/route/tests.rs rename to pebrel_app/src/ssh_session/route/tests.rs diff --git a/nebula_app/src/ssh_session/route/tests/loopback.rs b/pebrel_app/src/ssh_session/route/tests/loopback.rs similarity index 100% rename from nebula_app/src/ssh_session/route/tests/loopback.rs rename to pebrel_app/src/ssh_session/route/tests/loopback.rs diff --git a/nebula_app/src/ssh_session/sftp.rs b/pebrel_app/src/ssh_session/sftp.rs similarity index 100% rename from nebula_app/src/ssh_session/sftp.rs rename to pebrel_app/src/ssh_session/sftp.rs diff --git a/nebula_app/src/ssh_session/tests.rs b/pebrel_app/src/ssh_session/tests.rs similarity index 100% rename from nebula_app/src/ssh_session/tests.rs rename to pebrel_app/src/ssh_session/tests.rs diff --git a/nebula_app/src/ssh_sftp.rs b/pebrel_app/src/ssh_sftp.rs similarity index 100% rename from nebula_app/src/ssh_sftp.rs rename to pebrel_app/src/ssh_sftp.rs diff --git a/nebula_app/src/ssh_sftp/document.rs b/pebrel_app/src/ssh_sftp/document.rs similarity index 100% rename from nebula_app/src/ssh_sftp/document.rs rename to pebrel_app/src/ssh_sftp/document.rs diff --git a/nebula_app/src/ssh_sftp/document/tests.rs b/pebrel_app/src/ssh_sftp/document/tests.rs similarity index 100% rename from nebula_app/src/ssh_sftp/document/tests.rs rename to pebrel_app/src/ssh_sftp/document/tests.rs diff --git a/nebula_app/src/ssh_sftp/document/tests/peer.rs b/pebrel_app/src/ssh_sftp/document/tests/peer.rs similarity index 100% rename from nebula_app/src/ssh_sftp/document/tests/peer.rs rename to pebrel_app/src/ssh_sftp/document/tests/peer.rs diff --git a/nebula_app/src/ssh_sftp/export.rs b/pebrel_app/src/ssh_sftp/export.rs similarity index 100% rename from nebula_app/src/ssh_sftp/export.rs rename to pebrel_app/src/ssh_sftp/export.rs diff --git a/nebula_app/src/ssh_sftp/intake.rs b/pebrel_app/src/ssh_sftp/intake.rs similarity index 100% rename from nebula_app/src/ssh_sftp/intake.rs rename to pebrel_app/src/ssh_sftp/intake.rs diff --git a/nebula_app/src/ssh_sftp/intake/tests.rs b/pebrel_app/src/ssh_sftp/intake/tests.rs similarity index 100% rename from nebula_app/src/ssh_sftp/intake/tests.rs rename to pebrel_app/src/ssh_sftp/intake/tests.rs diff --git a/nebula_app/src/ssh_sftp/limits.rs b/pebrel_app/src/ssh_sftp/limits.rs similarity index 100% rename from nebula_app/src/ssh_sftp/limits.rs rename to pebrel_app/src/ssh_sftp/limits.rs diff --git a/nebula_app/src/ssh_sftp/preview.rs b/pebrel_app/src/ssh_sftp/preview.rs similarity index 100% rename from nebula_app/src/ssh_sftp/preview.rs rename to pebrel_app/src/ssh_sftp/preview.rs diff --git a/nebula_app/src/ssh_sftp/remote_cwd.rs b/pebrel_app/src/ssh_sftp/remote_cwd.rs similarity index 100% rename from nebula_app/src/ssh_sftp/remote_cwd.rs rename to pebrel_app/src/ssh_sftp/remote_cwd.rs diff --git a/nebula_app/src/ssh_sftp/transaction.rs b/pebrel_app/src/ssh_sftp/transaction.rs similarity index 100% rename from nebula_app/src/ssh_sftp/transaction.rs rename to pebrel_app/src/ssh_sftp/transaction.rs diff --git a/nebula_app/src/ssh_sftp/transfer.rs b/pebrel_app/src/ssh_sftp/transfer.rs similarity index 100% rename from nebula_app/src/ssh_sftp/transfer.rs rename to pebrel_app/src/ssh_sftp/transfer.rs diff --git a/nebula_app/src/ssh_sftp/transfer_io_tests.rs b/pebrel_app/src/ssh_sftp/transfer_io_tests.rs similarity index 100% rename from nebula_app/src/ssh_sftp/transfer_io_tests.rs rename to pebrel_app/src/ssh_sftp/transfer_io_tests.rs diff --git a/nebula_app/src/string.rs b/pebrel_app/src/string.rs similarity index 100% rename from nebula_app/src/string.rs rename to pebrel_app/src/string.rs diff --git a/nebula_app/src/svn_status.rs b/pebrel_app/src/svn_status.rs similarity index 100% rename from nebula_app/src/svn_status.rs rename to pebrel_app/src/svn_status.rs diff --git a/nebula_app/src/sync.rs b/pebrel_app/src/sync.rs similarity index 99% rename from nebula_app/src/sync.rs rename to pebrel_app/src/sync.rs index 3e52310fa..b498aff47 100644 --- a/nebula_app/src/sync.rs +++ b/pebrel_app/src/sync.rs @@ -512,7 +512,7 @@ pub fn apply_to_settings_text(payload: &SyncPayload, current: &str) -> String { // ---- 本地文件 ---- fn settings_file_path() -> PathBuf { - nebula_settings::settings_path() + pebrel_settings::settings_path() } fn history_file_path(file_name: &str) -> PathBuf { diff --git a/nebula_app/src/taskbar.rs b/pebrel_app/src/taskbar.rs similarity index 100% rename from nebula_app/src/taskbar.rs rename to pebrel_app/src/taskbar.rs diff --git a/nebula_app/src/terminal_profiles.rs b/pebrel_app/src/terminal_profiles.rs similarity index 100% rename from nebula_app/src/terminal_profiles.rs rename to pebrel_app/src/terminal_profiles.rs diff --git a/nebula_app/src/text_document.rs b/pebrel_app/src/text_document.rs similarity index 100% rename from nebula_app/src/text_document.rs rename to pebrel_app/src/text_document.rs diff --git a/nebula_app/src/text_preview.rs b/pebrel_app/src/text_preview.rs similarity index 100% rename from nebula_app/src/text_preview.rs rename to pebrel_app/src/text_preview.rs diff --git a/nebula_app/src/theme_library/community/AGENTS.md b/pebrel_app/src/theme_library/community/AGENTS.md similarity index 93% rename from nebula_app/src/theme_library/community/AGENTS.md rename to pebrel_app/src/theme_library/community/AGENTS.md index 4b34c6359..2c1828e69 100644 --- a/nebula_app/src/theme_library/community/AGENTS.md +++ b/pebrel_app/src/theme_library/community/AGENTS.md @@ -5,4 +5,4 @@ - 目录登记的大小和 SHA-256 是下载的固定值;校验通过后仍走 `package::CheckedPackage`,不另写解包或安装规则。安装只加入主题库,不应用设置。 - 来源回执写在 `metadata.package.origin`,只用于标记“已安装”,不是校验依据。 - 网络请求每次新建 `update_proxy::agent`;没有共享客户端、缓存或常驻服务。GUI 调用方拥有任务、代次与取消标志。 -- 设计依据见 [按需社区目录](../../../../architecture/notes/nebula_app/theme_library/community/2026-11-08-on-demand-community-catalog.md)。 +- 设计依据见 [按需社区目录](../../../../architecture/notes/pebrel_app/theme_library/community/2026-11-08-on-demand-community-catalog.md)。 diff --git a/nebula_app/src/theme_library/community/mod.rs b/pebrel_app/src/theme_library/community/mod.rs similarity index 100% rename from nebula_app/src/theme_library/community/mod.rs rename to pebrel_app/src/theme_library/community/mod.rs diff --git a/nebula_app/src/theme_library/community/tests.rs b/pebrel_app/src/theme_library/community/tests.rs similarity index 99% rename from nebula_app/src/theme_library/community/tests.rs rename to pebrel_app/src/theme_library/community/tests.rs index 046e49e6d..6d0732d78 100644 --- a/nebula_app/src/theme_library/community/tests.rs +++ b/pebrel_app/src/theme_library/community/tests.rs @@ -4,7 +4,7 @@ use crate::theme_library::package::{Author as PackageAuthor, export_package}; use crate::theme_library::{ThemeLibraryStore, builtin_document}; use crate::update_proxy::NetworkFailure; use crate::update_proxy::test_support::{Server, response}; -use nebula_settings::ThemeName; +use pebrel_settings::ThemeName; use serde_json::{Value, json}; use sha2::{Digest, Sha256}; use std::sync::atomic::AtomicBool; diff --git a/nebula_app/src/theme_library/community/transfer.rs b/pebrel_app/src/theme_library/community/transfer.rs similarity index 100% rename from nebula_app/src/theme_library/community/transfer.rs rename to pebrel_app/src/theme_library/community/transfer.rs diff --git a/nebula_app/src/theme_library/document.rs b/pebrel_app/src/theme_library/document.rs similarity index 99% rename from nebula_app/src/theme_library/document.rs rename to pebrel_app/src/theme_library/document.rs index eb762c490..82d9dbc28 100644 --- a/nebula_app/src/theme_library/document.rs +++ b/pebrel_app/src/theme_library/document.rs @@ -7,7 +7,7 @@ use std::fmt; -use nebula_settings::{ +use pebrel_settings::{ BlurModeName, CursorShapeName, MAX_PANE_CARD_DIVIDER, MAX_PANE_CARD_GUTTER, MAX_PANE_CARD_RADIUS, Rgb8, Rgba8, ThemeAppearance, ThemeDefinition, ThemeName, }; @@ -267,7 +267,7 @@ impl ThemeDocument { definition.effects.background_media_kind = effects .get("background_media_kind") .and_then(Value::as_str) - .and_then(nebula_settings::BackgroundMediaKind::parse); + .and_then(pebrel_settings::BackgroundMediaKind::parse); definition.effects.background_image_opacity = effects .get("background_image_opacity") .filter(|value| !value.is_null()) @@ -693,7 +693,7 @@ fn validate_effects(value: &Value) -> Result<(), DocumentError> { optional_string_with_limit(object, "background_image", 4096)?; } if let Some(value) = object.get("background_media_kind").filter(|v| !v.is_null()) { - if value.as_str().and_then(nebula_settings::BackgroundMediaKind::parse).is_none() { + if value.as_str().and_then(pebrel_settings::BackgroundMediaKind::parse).is_none() { return Err(DocumentError::Invalid( "effects.background_media_kind must be image or video".to_owned(), )); diff --git a/nebula_app/src/theme_library/format_tests.rs b/pebrel_app/src/theme_library/format_tests.rs similarity index 99% rename from nebula_app/src/theme_library/format_tests.rs rename to pebrel_app/src/theme_library/format_tests.rs index 12a3e6d44..1a5d23735 100644 --- a/nebula_app/src/theme_library/format_tests.rs +++ b/pebrel_app/src/theme_library/format_tests.rs @@ -1,7 +1,7 @@ //! Format contracts exercise interchange as well as independent target schemas. use super::*; -use nebula_settings::{ThemeDefinition, ThemeName}; +use pebrel_settings::{ThemeDefinition, ThemeName}; const STATIC_FORMATS: [ThemeFormat; 6] = [ ThemeFormat::Pebrel, diff --git a/nebula_app/src/theme_library/formats.rs b/pebrel_app/src/theme_library/formats.rs similarity index 100% rename from nebula_app/src/theme_library/formats.rs rename to pebrel_app/src/theme_library/formats.rs diff --git a/nebula_app/src/theme_library/mod.rs b/pebrel_app/src/theme_library/mod.rs similarity index 100% rename from nebula_app/src/theme_library/mod.rs rename to pebrel_app/src/theme_library/mod.rs diff --git a/nebula_app/src/theme_library/package/AGENTS.md b/pebrel_app/src/theme_library/package/AGENTS.md similarity index 93% rename from nebula_app/src/theme_library/package/AGENTS.md rename to pebrel_app/src/theme_library/package/AGENTS.md index 4f052489a..b77152ab2 100644 --- a/nebula_app/src/theme_library/package/AGENTS.md +++ b/pebrel_app/src/theme_library/package/AGENTS.md @@ -10,4 +10,4 @@ with an owner and stale-result handling; render callbacks do not read archives. - Resource directories currently survive library-document deletion. Do not add cleanup based only on a directory named by untrusted document metadata. -- Format and ownership rationale: [portable resources](../../../../architecture/notes/nebula_app/theme_library/package/2026-10-02-portable-resource-package.md). +- Format and ownership rationale: [portable resources](../../../../architecture/notes/pebrel_app/theme_library/package/2026-10-02-portable-resource-package.md). diff --git a/nebula_app/src/theme_library/package/CLI.md b/pebrel_app/src/theme_library/package/CLI.md similarity index 100% rename from nebula_app/src/theme_library/package/CLI.md rename to pebrel_app/src/theme_library/package/CLI.md diff --git a/nebula_app/src/theme_library/package/README.md b/pebrel_app/src/theme_library/package/README.md similarity index 100% rename from nebula_app/src/theme_library/package/README.md rename to pebrel_app/src/theme_library/package/README.md diff --git a/nebula_app/src/theme_library/package/archive.rs b/pebrel_app/src/theme_library/package/archive.rs similarity index 100% rename from nebula_app/src/theme_library/package/archive.rs rename to pebrel_app/src/theme_library/package/archive.rs diff --git a/nebula_app/src/theme_library/package/cli.rs b/pebrel_app/src/theme_library/package/cli.rs similarity index 100% rename from nebula_app/src/theme_library/package/cli.rs rename to pebrel_app/src/theme_library/package/cli.rs diff --git a/nebula_app/src/theme_library/package/envelope.rs b/pebrel_app/src/theme_library/package/envelope.rs similarity index 100% rename from nebula_app/src/theme_library/package/envelope.rs rename to pebrel_app/src/theme_library/package/envelope.rs diff --git a/nebula_app/src/theme_library/package/mod.rs b/pebrel_app/src/theme_library/package/mod.rs similarity index 100% rename from nebula_app/src/theme_library/package/mod.rs rename to pebrel_app/src/theme_library/package/mod.rs diff --git a/nebula_app/src/theme_library/package/tests.rs b/pebrel_app/src/theme_library/package/tests.rs similarity index 99% rename from nebula_app/src/theme_library/package/tests.rs rename to pebrel_app/src/theme_library/package/tests.rs index c57af2a09..3a93e7d30 100644 --- a/nebula_app/src/theme_library/package/tests.rs +++ b/pebrel_app/src/theme_library/package/tests.rs @@ -1,6 +1,6 @@ use super::*; use crate::theme_library::{ThemeDocument, ThemeLibraryStore, builtin_document}; -use nebula_settings::ThemeName; +use pebrel_settings::ThemeName; use std::fs; use std::io::Write; use std::path::Path; diff --git a/nebula_app/src/theme_library/preferences.rs b/pebrel_app/src/theme_library/preferences.rs similarity index 86% rename from nebula_app/src/theme_library/preferences.rs rename to pebrel_app/src/theme_library/preferences.rs index 64a93fda9..0aa779797 100644 --- a/nebula_app/src/theme_library/preferences.rs +++ b/pebrel_app/src/theme_library/preferences.rs @@ -21,7 +21,7 @@ const MAX_PREFERENCE_BYTES: usize = 1024 * 1024; /// Preparing these values performs no I/O and does not apply the theme. pub(crate) fn custom_theme_updates( document: &ThemeDocument, - foreground: Option, + foreground: Option, ) -> Result, DocumentError> { let id = document.id().filter(|_| !document.is_builtin()).ok_or_else(|| { DocumentError::Invalid("applying a custom theme requires a saved library id".to_owned()) @@ -32,8 +32,8 @@ pub(crate) fn custom_theme_updates( ("custom_theme", id.to_owned()), ("theme", definition.base.prompt_name().to_owned()), ("follow_system_theme", "0".to_owned()), - ("background", nebula_settings::format_hex_rgb(definition.terminal.background)), - ("theme_foreground", foreground.map(nebula_settings::format_hex_rgb).unwrap_or_default()), + ("background", pebrel_settings::format_hex_rgb(definition.terminal.background)), + ("theme_foreground", foreground.map(pebrel_settings::format_hex_rgb).unwrap_or_default()), ("pane_card_radius", card.radius.to_string()), ("pane_card_gutter", card.gutter.to_string()), ("pane_card_shadow", if card.shadow { "1" } else { "0" }.to_owned()), @@ -83,14 +83,14 @@ pub(crate) fn custom_theme_updates( pub(crate) struct PreferenceRevision(Option>); pub(crate) fn load() -> io::Result { - read_at(&nebula_settings::settings_path()) + read_at(&pebrel_settings::settings_path()) } pub(crate) fn save( expected: &PreferenceRevision, updates: &[(&str, String)], ) -> io::Result { - save_at(&nebula_settings::settings_path(), expected, updates) + save_at(&pebrel_settings::settings_path(), expected, updates) } fn read_at(path: &Path) -> io::Result { @@ -137,7 +137,7 @@ fn save_at( } let text = std::str::from_utf8(current.0.as_deref().unwrap_or_default()) .map_err(|error| io::Error::new(io::ErrorKind::InvalidData, error))?; - let updated = nebula_settings::apply_updates(text, updates).into_bytes(); + let updated = pebrel_settings::apply_updates(text, updates).into_bytes(); if updated.len() > MAX_PREFERENCE_BYTES { return Err(io::Error::new(io::ErrorKind::InvalidData, "settings file exceeds 1 MiB")); } @@ -152,25 +152,25 @@ mod tests { #[test] fn wallpaper_overrides_apply_independently_of_window_material() { let mut definition = - nebula_settings::ThemeDefinition::from_builtin(nebula_settings::ThemeName::Nord); + pebrel_settings::ThemeDefinition::from_builtin(pebrel_settings::ThemeName::Nord); definition.effects.background_image = Some("wallpapers/雪山.png".to_owned()); definition.effects.background_image_opacity = Some(0.42); definition.effects.background_image_fit = Some("uniform".to_owned()); definition.effects.background_image_alignment = Some("top_right".to_owned()); definition.effects.background_image_cover_chrome = Some(false); definition.effects.opacity = Some(0.8); - definition.effects.blur = Some(nebula_settings::BlurModeName::Aero); + definition.effects.blur = Some(pebrel_settings::BlurModeName::Aero); let document = super::super::from_definition(&definition) .unwrap() .fork("wallpaper-test", "Wallpaper") .unwrap(); let original = "background_image=old.png\nbackground_image_opacity=0.2\nbackground_image_fit=fill\nbackground_image_alignment=bottom\nbackground_image_cover_chrome=1\nopacity=1\nblur=none\nshell=cmd\n"; - let text = nebula_settings::apply_updates( + let text = pebrel_settings::apply_updates( original, &custom_theme_updates(&document, None).unwrap(), ); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&text), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&text), ); assert_eq!(runtime.background_image.as_deref(), Some("wallpapers/雪山.png")); assert_eq!(runtime.background_image_opacity, 0.42); @@ -178,27 +178,27 @@ mod tests { assert_eq!(runtime.background_image_alignment.as_deref(), Some("top_right")); assert!(!runtime.background_image_cover_chrome); assert_eq!(runtime.opacity, 0.8); - assert_eq!(runtime.blur, nebula_settings::BlurModeName::Aero); + assert_eq!(runtime.blur, pebrel_settings::BlurModeName::Aero); assert_eq!(runtime.shell.as_deref(), Some("cmd")); } #[test] fn wallpaper_inheritance_and_explicit_removal_have_different_meanings() { let mut definition = - nebula_settings::ThemeDefinition::from_builtin(nebula_settings::ThemeName::Nord); + pebrel_settings::ThemeDefinition::from_builtin(pebrel_settings::ThemeName::Nord); let original = "background_image=personal.png\nbackground_image_opacity=0.65\nbackground_image_fit=fill\nbackground_image_alignment=left\nbackground_image_cover_chrome=1\n"; - let make_document = |definition: &nebula_settings::ThemeDefinition| { + let make_document = |definition: &pebrel_settings::ThemeDefinition| { super::super::from_definition(definition) .unwrap() .fork("wallpaper-inherit", "Inherited") .unwrap() }; - let inherited = nebula_settings::apply_updates( + let inherited = pebrel_settings::apply_updates( original, &custom_theme_updates(&make_document(&definition), None).unwrap(), ); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&inherited), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&inherited), ); assert_eq!(runtime.background_image.as_deref(), Some("personal.png")); assert_eq!(runtime.background_image_opacity, 0.65); @@ -207,12 +207,12 @@ mod tests { assert!(runtime.background_image_cover_chrome); definition.effects.background_image = Some(String::new()); definition.effects.background_image_opacity = Some(0.0); - let cleared = nebula_settings::apply_updates( + let cleared = pebrel_settings::apply_updates( original, &custom_theme_updates(&make_document(&definition), None).unwrap(), ); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&cleared), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&cleared), ); assert_eq!(runtime.background_image, None); assert_eq!(runtime.background_image_opacity, 0.0); @@ -223,12 +223,12 @@ mod tests { #[test] fn confirmed_theme_options_replace_old_active_overrides_together() { let mut definition = - nebula_settings::ThemeDefinition::from_builtin(nebula_settings::ThemeName::Nord); + pebrel_settings::ThemeDefinition::from_builtin(pebrel_settings::ThemeName::Nord); definition.terminal.foreground = [0xdd, 0xcc, 0xbb]; definition.typography.font_size = Some(18.0); definition.typography.font_family = Some("Cascadia Code".to_owned()); definition.effects.opacity = Some(0.7); - definition.effects.blur = Some(nebula_settings::BlurModeName::Acrylic); + definition.effects.blur = Some(pebrel_settings::BlurModeName::Acrylic); definition.layout.card.radius = 12.0; definition.layout.card.gutter = 8.0; let document = super::super::from_definition(&definition) @@ -236,19 +236,19 @@ mod tests { .fork("custom-confirmed", "Confirmed") .unwrap(); let initial = "font_size=14\nfont_family=Old Font\nopacity=1\nblur=none\npane_card_radius=0\ntheme_foreground=#ffffff\nshell=cmd\n"; - let text = nebula_settings::apply_updates( + let text = pebrel_settings::apply_updates( initial, &custom_theme_updates(&document, None).unwrap(), ); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&text), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&text), ); assert_eq!(runtime.custom_theme.as_deref(), Some("custom-confirmed")); assert_eq!(runtime.theme_foreground, None); assert_eq!(runtime.font_size_px, Some(18.0)); assert_eq!(runtime.font_family.as_deref(), Some("Cascadia Code")); assert_eq!(runtime.opacity, 0.7); - assert_eq!(runtime.blur, nebula_settings::BlurModeName::Acrylic); + assert_eq!(runtime.blur, pebrel_settings::BlurModeName::Acrylic); assert_eq!(runtime.pane_card_radius, Some(12.0)); assert_eq!(runtime.pane_card_gutter, Some(8.0)); assert_eq!(runtime.shell.as_deref(), Some("cmd")); @@ -256,22 +256,22 @@ mod tests { #[test] fn absent_theme_options_preserve_personal_settings_and_preview_override_is_explicit() { - let document = super::super::builtin_document(nebula_settings::ThemeName::Nord) + let document = super::super::builtin_document(pebrel_settings::ThemeName::Nord) .unwrap() .fork("custom-colors-only", "Colors only") .unwrap(); let foreground = [0xf0, 0xd0, 0xa0]; - let text = nebula_settings::apply_updates( + let text = pebrel_settings::apply_updates( "font_family=My Font\nfont_size=19\nopacity=0.85\nblur=mica\n", &custom_theme_updates(&document, Some(foreground)).unwrap(), ); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&text), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&text), ); assert_eq!(runtime.font_family.as_deref(), Some("My Font")); assert_eq!(runtime.font_size_px, Some(19.0)); assert_eq!(runtime.opacity, 0.85); - assert_eq!(runtime.blur, nebula_settings::BlurModeName::Mica); + assert_eq!(runtime.blur, pebrel_settings::BlurModeName::Mica); assert_eq!(runtime.theme_foreground, Some(foreground)); } @@ -294,10 +294,10 @@ mod tests { .unwrap(); assert_eq!(read_at(&path).unwrap(), applied); let saved = std::fs::read_to_string(&path).unwrap(); - let runtime = nebula_settings::RuntimeSettings::from_raw( - &nebula_settings::RawSettings::from_text(&saved), + let runtime = pebrel_settings::RuntimeSettings::from_raw( + &pebrel_settings::RawSettings::from_text(&saved), ); - assert_eq!(runtime.theme, nebula_settings::ThemeName::Nord); + assert_eq!(runtime.theme, pebrel_settings::ThemeName::Nord); assert_eq!(runtime.theme_foreground, Some([0xe0, 0xbc, 0x91])); assert_eq!(runtime.font_family.as_deref(), Some("Maple Mono NF CN")); assert!(saved.contains("custom_key=keep")); diff --git a/nebula_app/src/theme_library/store.rs b/pebrel_app/src/theme_library/store.rs similarity index 99% rename from nebula_app/src/theme_library/store.rs rename to pebrel_app/src/theme_library/store.rs index 4d92e84f8..b926570e3 100644 --- a/nebula_app/src/theme_library/store.rs +++ b/pebrel_app/src/theme_library/store.rs @@ -1,6 +1,6 @@ //! Durable custom-theme library. //! -//! Built-in themes remain virtual values from `nebula_settings`; only user +//! Built-in themes remain virtual values from `pebrel_settings`; only user //! themes are files. The store is deliberately synchronous and cold-path: //! callers run it on their background executor and retain the returned //! `ThemeDocument`/`ThemeDefinition` for rendering. @@ -97,7 +97,7 @@ pub struct ThemeLibraryStore { impl Default for ThemeLibraryStore { fn default() -> Self { - Self::new(nebula_settings::settings_dir().join("themes")) + Self::new(pebrel_settings::settings_dir().join("themes")) } } diff --git a/nebula_app/src/theme_library/tests.rs b/pebrel_app/src/theme_library/tests.rs similarity index 98% rename from nebula_app/src/theme_library/tests.rs rename to pebrel_app/src/theme_library/tests.rs index caf5fd0ab..ec1e95f0f 100644 --- a/nebula_app/src/theme_library/tests.rs +++ b/pebrel_app/src/theme_library/tests.rs @@ -1,12 +1,12 @@ use super::*; -use nebula_settings::{CursorShapeName, ThemeDefinition, ThemeEffects, ThemeName, ThemeTypography}; +use pebrel_settings::{CursorShapeName, ThemeDefinition, ThemeEffects, ThemeName, ThemeTypography}; #[test] fn video_kind_roundtrips_without_changing_legacy_path_or_optional_effects() { let mut definition = ThemeDefinition::from_builtin(ThemeName::Nord); definition.effects.background_image = Some("scene.mp4".into()); - definition.effects.background_media_kind = Some(nebula_settings::BackgroundMediaKind::Video); + definition.effects.background_media_kind = Some(pebrel_settings::BackgroundMediaKind::Video); let document = from_definition(&definition).unwrap(); assert_eq!(document.definition().unwrap(), definition); assert_eq!(document.to_value()["effects"]["background_media_kind"], "video"); diff --git a/nebula_app/src/tray.rs b/pebrel_app/src/tray.rs similarity index 100% rename from nebula_app/src/tray.rs rename to pebrel_app/src/tray.rs diff --git a/nebula_app/src/update_check.rs b/pebrel_app/src/update_check.rs similarity index 99% rename from nebula_app/src/update_check.rs rename to pebrel_app/src/update_check.rs index a1ae83f91..e6d92c193 100644 --- a/nebula_app/src/update_check.rs +++ b/pebrel_app/src/update_check.rs @@ -191,7 +191,7 @@ pub fn spawn_gpui_once(sender: std::sync::mpsc::Sender Result { } fn update_state_path() -> std::path::PathBuf { - nebula_settings::settings_dir().join(UPDATE_STATE_FILE) + pebrel_settings::settings_dir().join(UPDATE_STATE_FILE) } fn now_secs() -> u64 { diff --git a/nebula_app/src/update_check/assets.rs b/pebrel_app/src/update_check/assets.rs similarity index 100% rename from nebula_app/src/update_check/assets.rs rename to pebrel_app/src/update_check/assets.rs diff --git a/nebula_app/src/update_check/fallback.rs b/pebrel_app/src/update_check/fallback.rs similarity index 99% rename from nebula_app/src/update_check/fallback.rs rename to pebrel_app/src/update_check/fallback.rs index 5e015adf9..ab044d961 100644 --- a/nebula_app/src/update_check/fallback.rs +++ b/pebrel_app/src/update_check/fallback.rs @@ -16,7 +16,7 @@ pub(super) fn fetch_latest(status: u16) -> Result { log::info!("update-check: API returned HTTP {status}; checking official latest-release page"); // Resolve proxy settings for github.com independently of api.github.com. let language = - LanguagePreference::from(nebula_settings::RuntimeSettings::load().language).resolved(); + LanguagePreference::from(pebrel_settings::RuntimeSettings::load().language).resolved(); let agent = crate::update_proxy::agent(LATEST_PAGE, Duration::from_secs(10)).map_err(|error| { language.format( diff --git a/nebula_app/src/update_check/test_source.rs b/pebrel_app/src/update_check/test_source.rs similarity index 100% rename from nebula_app/src/update_check/test_source.rs rename to pebrel_app/src/update_check/test_source.rs diff --git a/nebula_app/src/update_download.rs b/pebrel_app/src/update_download.rs similarity index 100% rename from nebula_app/src/update_download.rs rename to pebrel_app/src/update_download.rs diff --git a/nebula_app/src/update_download/cache.rs b/pebrel_app/src/update_download/cache.rs similarity index 100% rename from nebula_app/src/update_download/cache.rs rename to pebrel_app/src/update_download/cache.rs diff --git a/nebula_app/src/update_download/handoff.ps1 b/pebrel_app/src/update_download/handoff.ps1 similarity index 100% rename from nebula_app/src/update_download/handoff.ps1 rename to pebrel_app/src/update_download/handoff.ps1 diff --git a/nebula_app/src/update_download/handoff.rs b/pebrel_app/src/update_download/handoff.rs similarity index 99% rename from nebula_app/src/update_download/handoff.rs rename to pebrel_app/src/update_download/handoff.rs index b48563385..7f955efe3 100644 --- a/nebula_app/src/update_download/handoff.rs +++ b/pebrel_app/src/update_download/handoff.rs @@ -153,7 +153,7 @@ pub(crate) fn prepare(asset: &UpdateAsset) -> Result { transaction: transaction.clone(), installation, executable, - config_directory: canonical(&nebula_settings::settings_dir()) + config_directory: canonical(&pebrel_settings::settings_dir()) .map_err(|error| error.to_string())?, installer: canonical(&installer).map_err(|error| error.to_string())?, sha256: asset.sha256.clone().ok_or("Missing package digest")?, @@ -244,7 +244,7 @@ fn restore_candidate(path: &Path) -> Option<(PathBuf, Vec)> { || plan.elevated != crate::platform::elevation::is_elevated().ok()? || directory.file_name()?.to_str()? != plan.transaction || canonical(&plan.config_directory).ok()? - != canonical(&nebula_settings::settings_dir()).ok()? + != canonical(&pebrel_settings::settings_dir()).ok()? || canonical(&plan.executable).ok()? != canonical(&std::env::current_exe().ok()?).ok()? { return None; diff --git a/nebula_app/src/update_download/handoff/macos.rs b/pebrel_app/src/update_download/handoff/macos.rs similarity index 98% rename from nebula_app/src/update_download/handoff/macos.rs rename to pebrel_app/src/update_download/handoff/macos.rs index 939bcc350..fd5b7cc4d 100644 --- a/nebula_app/src/update_download/handoff/macos.rs +++ b/pebrel_app/src/update_download/handoff/macos.rs @@ -24,7 +24,7 @@ fn run(path: &Path) -> Result<(), String> { let path = canonical(path).map_err(|e| e.to_string())?; let directory = path.parent().ok_or("Missing update directory")?; let plan: Plan = read_json(&path).ok_or("Invalid update plan")?; - let root = canonical(&nebula_settings::settings_dir().join("updates/handoffs")) + let root = canonical(&pebrel_settings::settings_dir().join("updates/handoffs")) .map_err(|e| e.to_string())?; if path.file_name().is_none_or(|n| n != "plan.json") || directory.parent() != Some(root.as_path()) @@ -36,7 +36,7 @@ fn run(path: &Path) -> Result<(), String> { || plan.participants.len() != 1 || plan.version != plan.asset.version || plan.sha256 != plan.asset.sha256.clone().unwrap_or_default() - || canonical(&nebula_settings::settings_dir()).map_err(|e| e.to_string())? + || canonical(&pebrel_settings::settings_dir()).map_err(|e| e.to_string())? != plan.config_directory || plan.executable != plan.installation.join("Contents/MacOS/pebrel") || native::bundle(&plan.executable)? != plan.installation diff --git a/nebula_app/src/update_download/handoff/macos/tests.rs b/pebrel_app/src/update_download/handoff/macos/tests.rs similarity index 100% rename from nebula_app/src/update_download/handoff/macos/tests.rs rename to pebrel_app/src/update_download/handoff/macos/tests.rs diff --git a/nebula_app/src/update_download/handoff/tests.rs b/pebrel_app/src/update_download/handoff/tests.rs similarity index 99% rename from nebula_app/src/update_download/handoff/tests.rs rename to pebrel_app/src/update_download/handoff/tests.rs index 0fb4ca957..d09dd5b06 100644 --- a/nebula_app/src/update_download/handoff/tests.rs +++ b/pebrel_app/src/update_download/handoff/tests.rs @@ -21,7 +21,7 @@ fn update_restore_tickets_cover_success_rollback_and_acknowledgement() { ); return; } - let config = canonical(&nebula_settings::settings_dir()).unwrap(); + let config = canonical(&pebrel_settings::settings_dir()).unwrap(); let update_root = super::super::state_directory("").unwrap(); let directory = super::super::state_directory("handoffs/restore-test").unwrap(); std::fs::create_dir_all(&directory).unwrap(); diff --git a/nebula_app/src/update_proxy.rs b/pebrel_app/src/update_proxy.rs similarity index 100% rename from nebula_app/src/update_proxy.rs rename to pebrel_app/src/update_proxy.rs diff --git a/nebula_app/src/update_proxy/test_support.rs b/pebrel_app/src/update_proxy/test_support.rs similarity index 100% rename from nebula_app/src/update_proxy/test_support.rs rename to pebrel_app/src/update_proxy/test_support.rs diff --git a/nebula_app/src/ux.rs b/pebrel_app/src/ux.rs similarity index 100% rename from nebula_app/src/ux.rs rename to pebrel_app/src/ux.rs diff --git a/nebula_app/src/window_context.rs b/pebrel_app/src/window_context.rs similarity index 99% rename from nebula_app/src/window_context.rs rename to pebrel_app/src/window_context.rs index a23e20554..e8cb25001 100644 --- a/nebula_app/src/window_context.rs +++ b/pebrel_app/src/window_context.rs @@ -23,14 +23,14 @@ use winit::event_loop::{ActiveEventLoop, EventLoopProxy}; use winit::raw_window_handle::HasDisplayHandle; use winit::window::WindowId; -use nebula_terminal::event::{Event as TerminalEvent, Notify}; -use nebula_terminal::event_loop::{EventLoop as PtyEventLoop, Msg, Notifier}; -use nebula_terminal::grid::{Dimensions, Scroll}; -use nebula_terminal::index::{Column, Direction, Line, Point}; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::test::TermSize; -use nebula_terminal::term::{Term, TermMode}; -use nebula_terminal::tty; +use pebrel_terminal::event::{Event as TerminalEvent, Notify}; +use pebrel_terminal::event_loop::{EventLoop as PtyEventLoop, Msg, Notifier}; +use pebrel_terminal::grid::{Dimensions, Scroll}; +use pebrel_terminal::index::{Column, Direction, Line, Point}; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::test::TermSize; +use pebrel_terminal::term::{Term, TermMode}; +use pebrel_terminal::tty; use crate::cli::{ParsedOptions, WindowOptions}; use crate::clipboard::Clipboard; @@ -594,7 +594,7 @@ impl WindowContext { let terminal = Term::new(config.term_options(), size_info, event_proxy); Pane { terminal: Arc::new(FairMutex::new(terminal)), - notifier: Notifier(nebula_terminal::event_loop::EventLoopSender::sink()), + notifier: Notifier(pebrel_terminal::event_loop::EventLoopSender::sink()), search_state: Default::default(), inline_search_state: Default::default(), id: DOC_PANE_ID, @@ -951,7 +951,7 @@ impl WindowContext { /// layer's own default (which owns the powershell/bash prompt bootstrap). fn default_shell_override( config: &crate::config::ui_config::UiConfig, - ) -> Option { + ) -> Option { let id = crate::display::nebula_settings_value("shell") .or_else(|| crate::display::nebula_settings_value("executor"))?; if let Some(profile) = config @@ -1006,7 +1006,7 @@ impl WindowContext { fn spawn_tab_shell( &mut self, name: String, - shell: nebula_terminal::tty::Shell, + shell: pebrel_terminal::tty::Shell, placement: TabPlacement, ) { if let Some(id) = self.spawn_pane_detached_with( @@ -1187,7 +1187,7 @@ impl WindowContext { let tab = &mut self.tabs[self.active_tab]; if !tab.layout.replace_leaf(old_id, new_id) { - let _ = new_pane.notifier.0.send(nebula_terminal::event_loop::Msg::Shutdown); + let _ = new_pane.notifier.0.send(pebrel_terminal::event_loop::Msg::Shutdown); return; } tab.active_pane = new_id; @@ -1202,7 +1202,7 @@ impl WindowContext { destination, crate::ssh_session::SshStage::Resolve, ); - let _ = old_pane.notifier.0.send(nebula_terminal::event_loop::Msg::Shutdown); + let _ = old_pane.notifier.0.send(pebrel_terminal::event_loop::Msg::Shutdown); self.resize_active_layout(); self.dirty = true; self.display.window.request_redraw(); @@ -1794,7 +1794,7 @@ impl WindowContext { &mut self, cwd: Option, size_info: crate::display::SizeInfo, - shell: Option, + shell: Option, ) -> Option { let pane_id = self.next_pane_id; self.next_pane_id += 1; @@ -2839,8 +2839,8 @@ impl WindowContext { // 新背景,而已经跑着的 TUI 不会再问第二次。少了这条通知,深色切浅色 // 之后 nvim/codex 会继续用为深底挑的配色画在白底上。 let dark = { - let bg = self.display.colors[nebula_terminal::vte::ansi::NamedColor::Background]; - nebula_terminal::term::background_is_dark(bg.r, bg.g, bg.b) + let bg = self.display.colors[pebrel_terminal::vte::ansi::NamedColor::Background]; + pebrel_terminal::term::background_is_dark(bg.r, bg.g, bg.b) }; for pane in &self.panes { let mut terminal = pane.terminal.lock(); diff --git a/nebula_app/src/window_context/agent_activity.rs b/pebrel_app/src/window_context/agent_activity.rs similarity index 98% rename from nebula_app/src/window_context/agent_activity.rs rename to pebrel_app/src/window_context/agent_activity.rs index fdf4e6ce1..64da4a11a 100644 --- a/nebula_app/src/window_context/agent_activity.rs +++ b/pebrel_app/src/window_context/agent_activity.rs @@ -2,8 +2,8 @@ use std::time::Instant; -use nebula_terminal::grid::Dimensions as _; -use nebula_terminal::index::{Column, Line, Point}; +use pebrel_terminal::grid::Dimensions as _; +use pebrel_terminal::index::{Column, Line, Point}; use crate::ai_agents::{AgentKind, AgentStatus, AgentStatusSource}; use crate::ai_hook::{AiHookEvent, AiHookKind}; diff --git a/nebula_app/src/window_context/agents.rs b/pebrel_app/src/window_context/agents.rs similarity index 100% rename from nebula_app/src/window_context/agents.rs rename to pebrel_app/src/window_context/agents.rs diff --git a/nebula_app/src/window_context/model.rs b/pebrel_app/src/window_context/model.rs similarity index 96% rename from nebula_app/src/window_context/model.rs rename to pebrel_app/src/window_context/model.rs index 15dc64253..0b881726b 100644 --- a/nebula_app/src/window_context/model.rs +++ b/pebrel_app/src/window_context/model.rs @@ -6,10 +6,10 @@ use std::path::PathBuf; use std::sync::Arc; use std::sync::atomic::AtomicU64; -use nebula_terminal::event_loop::{Msg, Notifier}; -use nebula_terminal::sync::FairMutex; -use nebula_terminal::term::Term; -use nebula_terminal::tty; +use pebrel_terminal::event_loop::{Msg, Notifier}; +use pebrel_terminal::sync::FairMutex; +use pebrel_terminal::term::Term; +use pebrel_terminal::tty; use crate::config::ui_config::Profile; use crate::display::color::Rgb; diff --git a/nebula_app/src/window_context/nebula_fetch_art.rs b/pebrel_app/src/window_context/nebula_fetch_art.rs similarity index 100% rename from nebula_app/src/window_context/nebula_fetch_art.rs rename to pebrel_app/src/window_context/nebula_fetch_art.rs diff --git a/nebula_app/src/window_context/runtime.rs b/pebrel_app/src/window_context/runtime.rs similarity index 99% rename from nebula_app/src/window_context/runtime.rs rename to pebrel_app/src/window_context/runtime.rs index 7ac35c1e1..159042a9c 100644 --- a/nebula_app/src/window_context/runtime.rs +++ b/pebrel_app/src/window_context/runtime.rs @@ -4,10 +4,10 @@ //! same tab/layout/pane authority as the GUI without exposing those mutable //! implementation types to transport threads. -use nebula_terminal::event::Notify; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line, Point}; -use nebula_terminal::term::TermMode; +use pebrel_terminal::event::Notify; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line, Point}; +use pebrel_terminal::term::TermMode; use serde_json::{Value, json}; use crate::display::SplitDirection; diff --git a/nebula_app/src/window_context/session_snapshot.rs b/pebrel_app/src/window_context/session_snapshot.rs similarity index 99% rename from nebula_app/src/window_context/session_snapshot.rs rename to pebrel_app/src/window_context/session_snapshot.rs index ee1a85ada..f375742b4 100644 --- a/nebula_app/src/window_context/session_snapshot.rs +++ b/pebrel_app/src/window_context/session_snapshot.rs @@ -16,7 +16,7 @@ impl WindowContext { self.append_default_tab(tab); }, session::LaunchSession::Shell { name, program, args } => { - let shell = nebula_terminal::tty::Shell::new(program.clone(), args.clone()); + let shell = pebrel_terminal::tty::Shell::new(program.clone(), args.clone()); self.spawn_tab_shell(name.clone(), shell, TabPlacement::AfterActive); }, session::LaunchSession::Profile { name, command, args, cwd, shell_id } => { diff --git a/nebula_app/src/window_context/split.rs b/pebrel_app/src/window_context/split.rs similarity index 99% rename from nebula_app/src/window_context/split.rs rename to pebrel_app/src/window_context/split.rs index 05e5fdc05..bdbd56e04 100644 --- a/nebula_app/src/window_context/split.rs +++ b/pebrel_app/src/window_context/split.rs @@ -11,10 +11,10 @@ use std::mem; use winit::event::{ElementState, Event as WinitEvent, MouseButton, WindowEvent}; use winit::window::CursorIcon; -use nebula_terminal::event::{Notify, OnResize, WindowSize}; -use nebula_terminal::event_loop::Msg; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::term::test::TermSize; +use pebrel_terminal::event::{Notify, OnResize, WindowSize}; +use pebrel_terminal::event_loop::Msg; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::term::test::TermSize; use crate::display::{ NEBULA_SPLIT_DIVIDER_GAP, NEBULA_SPLIT_HIT_SLOP, SizeInfo, SplitDirection, SplitNav, @@ -904,7 +904,7 @@ impl WindowContext { mod resize_layout_tests { use winit::event::MouseButton; - use nebula_terminal::grid::Dimensions; + use pebrel_terminal::grid::Dimensions; use super::{Layout, collect_layout, pane_viewport_contains, terminal_content_rect}; use crate::display::{SizeInfo, SplitDirection}; diff --git a/nebula_app/src/window_context/ssh_panes.rs b/pebrel_app/src/window_context/ssh_panes.rs similarity index 100% rename from nebula_app/src/window_context/ssh_panes.rs rename to pebrel_app/src/window_context/ssh_panes.rs diff --git a/nebula_app/src/window_context/startup_shell_tests.rs b/pebrel_app/src/window_context/startup_shell_tests.rs similarity index 99% rename from nebula_app/src/window_context/startup_shell_tests.rs rename to pebrel_app/src/window_context/startup_shell_tests.rs index 0be0cd33e..42594f353 100644 --- a/nebula_app/src/window_context/startup_shell_tests.rs +++ b/pebrel_app/src/window_context/startup_shell_tests.rs @@ -1,4 +1,4 @@ -use nebula_terminal::tty::Shell; +use pebrel_terminal::tty::Shell; use super::{ TabPlacement, chrome_clock_interval, preferred_initial_cwd, preferred_tab_cwd, diff --git a/nebula_app/src/window_context/tab_duplication.rs b/pebrel_app/src/window_context/tab_duplication.rs similarity index 100% rename from nebula_app/src/window_context/tab_duplication.rs rename to pebrel_app/src/window_context/tab_duplication.rs diff --git a/nebula_app/src/window_context/welcome.rs b/pebrel_app/src/window_context/welcome.rs similarity index 100% rename from nebula_app/src/window_context/welcome.rs rename to pebrel_app/src/window_context/welcome.rs diff --git a/nebula_app/src/window_transition.rs b/pebrel_app/src/window_transition.rs similarity index 100% rename from nebula_app/src/window_transition.rs rename to pebrel_app/src/window_transition.rs diff --git a/nebula_app/tests/file_line_budget.rs b/pebrel_app/tests/file_line_budget.rs similarity index 100% rename from nebula_app/tests/file_line_budget.rs rename to pebrel_app/tests/file_line_budget.rs diff --git a/nebula_app/tests/fixtures/background-gif/animated-720p12.gif b/pebrel_app/tests/fixtures/background-gif/animated-720p12.gif similarity index 100% rename from nebula_app/tests/fixtures/background-gif/animated-720p12.gif rename to pebrel_app/tests/fixtures/background-gif/animated-720p12.gif diff --git a/nebula_app/tests/fixtures/background-gif/disposal-oracle.rgba b/pebrel_app/tests/fixtures/background-gif/disposal-oracle.rgba similarity index 100% rename from nebula_app/tests/fixtures/background-gif/disposal-oracle.rgba rename to pebrel_app/tests/fixtures/background-gif/disposal-oracle.rgba diff --git a/nebula_app/tests/fixtures/background-gif/disposal.gif b/pebrel_app/tests/fixtures/background-gif/disposal.gif similarity index 100% rename from nebula_app/tests/fixtures/background-gif/disposal.gif rename to pebrel_app/tests/fixtures/background-gif/disposal.gif diff --git a/nebula_app/tests/fixtures/background-gif/gif-720p-oracle-samples.json b/pebrel_app/tests/fixtures/background-gif/gif-720p-oracle-samples.json similarity index 100% rename from nebula_app/tests/fixtures/background-gif/gif-720p-oracle-samples.json rename to pebrel_app/tests/fixtures/background-gif/gif-720p-oracle-samples.json diff --git a/nebula_app/tests/fixtures/background-gif/invalid.gif b/pebrel_app/tests/fixtures/background-gif/invalid.gif similarity index 100% rename from nebula_app/tests/fixtures/background-gif/invalid.gif rename to pebrel_app/tests/fixtures/background-gif/invalid.gif diff --git a/nebula_app/tests/fixtures/background-gif/large-canvas-header.gif b/pebrel_app/tests/fixtures/background-gif/large-canvas-header.gif similarity index 100% rename from nebula_app/tests/fixtures/background-gif/large-canvas-header.gif rename to pebrel_app/tests/fixtures/background-gif/large-canvas-header.gif diff --git a/nebula_app/tests/fixtures/background-gif/zero-delay-10000.gif b/pebrel_app/tests/fixtures/background-gif/zero-delay-10000.gif similarity index 100% rename from nebula_app/tests/fixtures/background-gif/zero-delay-10000.gif rename to pebrel_app/tests/fixtures/background-gif/zero-delay-10000.gif diff --git a/nebula_app/tests/fixtures/theme-package/minimal-video.mp4 b/pebrel_app/tests/fixtures/theme-package/minimal-video.mp4 similarity index 100% rename from nebula_app/tests/fixtures/theme-package/minimal-video.mp4 rename to pebrel_app/tests/fixtures/theme-package/minimal-video.mp4 diff --git a/nebula_app/tests/i18n_contract.rs b/pebrel_app/tests/i18n_contract.rs similarity index 100% rename from nebula_app/tests/i18n_contract.rs rename to pebrel_app/tests/i18n_contract.rs diff --git a/nebula_app/tests/theme_package_cli.rs b/pebrel_app/tests/theme_package_cli.rs similarity index 100% rename from nebula_app/tests/theme_package_cli.rs rename to pebrel_app/tests/theme_package_cli.rs diff --git a/nebula_app/tests/windows_console_startup.rs b/pebrel_app/tests/windows_console_startup.rs similarity index 100% rename from nebula_app/tests/windows_console_startup.rs rename to pebrel_app/tests/windows_console_startup.rs diff --git a/nebula_app/windows/nebula-dark.ico b/pebrel_app/windows/nebula-dark.ico similarity index 100% rename from nebula_app/windows/nebula-dark.ico rename to pebrel_app/windows/nebula-dark.ico diff --git a/nebula_app/windows/nebula-light.ico b/pebrel_app/windows/nebula-light.ico similarity index 100% rename from nebula_app/windows/nebula-light.ico rename to pebrel_app/windows/nebula-light.ico diff --git a/nebula_app/windows/nebula-titanium.ico b/pebrel_app/windows/nebula-titanium.ico similarity index 100% rename from nebula_app/windows/nebula-titanium.ico rename to pebrel_app/windows/nebula-titanium.ico diff --git a/nebula_app/windows/nebula.ico b/pebrel_app/windows/nebula.ico similarity index 100% rename from nebula_app/windows/nebula.ico rename to pebrel_app/windows/nebula.ico diff --git a/nebula_app/windows/nebula.manifest b/pebrel_app/windows/nebula.manifest similarity index 100% rename from nebula_app/windows/nebula.manifest rename to pebrel_app/windows/nebula.manifest diff --git a/nebula_app/windows/nebula.rc b/pebrel_app/windows/nebula.rc similarity index 100% rename from nebula_app/windows/nebula.rc rename to pebrel_app/windows/nebula.rc diff --git a/nebula_config/Cargo.toml b/pebrel_config/Cargo.toml similarity index 83% rename from nebula_config/Cargo.toml rename to pebrel_config/Cargo.toml index 34eaa2d1e..7d9a6126b 100644 --- a/nebula_config/Cargo.toml +++ b/pebrel_config/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula_config" +name = "pebrel_config" version = "2.5.0" license = "GPL-3.0-or-later" description = "Nebula configuration abstractions" @@ -14,5 +14,5 @@ serde = "1.0.163" toml.workspace = true [dev-dependencies] -nebula_config_derive = { version = "2.5.0", path = "../nebula_config_derive" } +pebrel_config_derive = { version = "2.5.0", path = "../pebrel_config_derive" } serde = { version = "1.0.163", features = ["derive"] } diff --git a/nebula_config/src/lib.rs b/pebrel_config/src/lib.rs similarity index 98% rename from nebula_config/src/lib.rs rename to pebrel_config/src/lib.rs index 09f429115..8689737b5 100644 --- a/nebula_config/src/lib.rs +++ b/pebrel_config/src/lib.rs @@ -205,8 +205,8 @@ impl<'de, T: Deserialize<'de>> SerdeReplace for HashMap { mod tests { use super::*; - use crate as nebula_config; - use nebula_config_derive::ConfigDeserialize; + use crate as pebrel_config; + use pebrel_config_derive::ConfigDeserialize; #[test] fn captures_unknown_and_invalid_fields_without_logging() { diff --git a/nebula_config_derive/Cargo.toml b/pebrel_config_derive/Cargo.toml similarity index 86% rename from nebula_config_derive/Cargo.toml rename to pebrel_config_derive/Cargo.toml index 034efcefb..a73aea645 100644 --- a/nebula_config_derive/Cargo.toml +++ b/pebrel_config_derive/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula_config_derive" +name = "pebrel_config_derive" version = "2.5.0" license = "GPL-3.0-or-later" description = "Failure resistant deserialization derive" @@ -16,8 +16,8 @@ proc-macro2 = "1.0.24" quote = "1.0.7" syn = { version = "2.0.16", features = ["derive", "parsing", "proc-macro", "printing"], default-features = false } -[dev-dependencies.nebula_config] -path = "../nebula_config" +[dev-dependencies.pebrel_config] +path = "../pebrel_config" version = "2.5.0" [dev-dependencies] diff --git a/nebula_config_derive/src/config_deserialize/de_enum.rs b/pebrel_config_derive/src/config_deserialize/de_enum.rs similarity index 97% rename from nebula_config_derive/src/config_deserialize/de_enum.rs rename to pebrel_config_derive/src/config_deserialize/de_enum.rs index 0cc850e8b..267fb4591 100644 --- a/nebula_config_derive/src/config_deserialize/de_enum.rs +++ b/pebrel_config_derive/src/config_deserialize/de_enum.rs @@ -68,7 +68,7 @@ pub fn derive_deserialize(ident: Ident, generics: Generics, data_enum: DataEnum) } }; - // Automatically implement [`nebula_config::SerdeReplace`]. + // Automatically implement [`pebrel_config::SerdeReplace`]. tokens.extend(serde_replace::derive_direct(ident, generics)); tokens.into() diff --git a/nebula_config_derive/src/config_deserialize/de_struct.rs b/pebrel_config_derive/src/config_deserialize/de_struct.rs similarity index 96% rename from nebula_config_derive/src/config_deserialize/de_struct.rs rename to pebrel_config_derive/src/config_deserialize/de_struct.rs index c56f07356..998710726 100644 --- a/nebula_config_derive/src/config_deserialize/de_struct.rs +++ b/pebrel_config_derive/src/config_deserialize/de_struct.rs @@ -58,7 +58,7 @@ pub fn derive_deserialize( // Report unused keys through the active config diagnostic scope. for key in unused.keys() { - nebula_config::report_unknown_field(#LOG_TARGET, key); + pebrel_config::report_unknown_field(#LOG_TARGET, key); } Ok(config) @@ -75,7 +75,7 @@ pub fn derive_deserialize( } }; - // Automatically implement [`nebula_config::SerdeReplace`]. + // Automatically implement [`pebrel_config::SerdeReplace`]. tokens.extend(serde_replace::derive_recursive(ident, generics, fields)); tokens.into() @@ -114,7 +114,7 @@ fn field_deserializer(field_streams: &mut FieldStreams, field: &Field) -> Result match serde::Deserialize::deserialize(value) { Ok(value) => config.#ident = value, Err(err) => { - nebula_config::report_invalid_value(#LOG_TARGET, #literal, &err.to_string()); + pebrel_config::report_invalid_value(#LOG_TARGET, #literal, &err.to_string()); }, } }; @@ -154,7 +154,7 @@ fn field_deserializer(field_streams: &mut FieldStreams, field: &Field) -> Result // Append stream to capture or log the deprecation/removal warning. match_assignment_stream.extend(quote! { - nebula_config::report_deprecated_field(#LOG_TARGET, #literal, #message); + pebrel_config::report_deprecated_field(#LOG_TARGET, #literal, #message); }); }, // Add aliases to match pattern. diff --git a/nebula_config_derive/src/config_deserialize/mod.rs b/pebrel_config_derive/src/config_deserialize/mod.rs similarity index 100% rename from nebula_config_derive/src/config_deserialize/mod.rs rename to pebrel_config_derive/src/config_deserialize/mod.rs diff --git a/nebula_config_derive/src/lib.rs b/pebrel_config_derive/src/lib.rs similarity index 96% rename from nebula_config_derive/src/lib.rs rename to pebrel_config_derive/src/lib.rs index a5cadbeee..4544c12cf 100644 --- a/nebula_config_derive/src/lib.rs +++ b/pebrel_config_derive/src/lib.rs @@ -47,7 +47,7 @@ pub(crate) fn generics_streams(params: &Punctuated) -> Gener if let GenericParam::Type(TypeParam { ident, .. }) = generic { generics.unconstrained.extend(quote!( #ident , )); generics.constrained.extend(quote! { - #ident : Default + serde::Deserialize<'de> + nebula_config::SerdeReplace, + #ident : Default + serde::Deserialize<'de> + pebrel_config::SerdeReplace, }); generics.phantoms.extend(quote! { #ident : std::marker::PhantomData < #ident >, diff --git a/nebula_config_derive/src/serde_replace.rs b/pebrel_config_derive/src/serde_replace.rs similarity index 95% rename from nebula_config_derive/src/serde_replace.rs rename to pebrel_config_derive/src/serde_replace.rs index b8b976877..5cbe02e58 100644 --- a/nebula_config_derive/src/serde_replace.rs +++ b/pebrel_config_derive/src/serde_replace.rs @@ -27,7 +27,7 @@ pub fn derive(input: TokenStream) -> TokenStream { pub fn derive_direct(ident: Ident, generics: Generics) -> TokenStream2 { quote! { - impl <#generics> nebula_config::SerdeReplace for #ident <#generics> { + impl <#generics> pebrel_config::SerdeReplace for #ident <#generics> { fn replace(&mut self, value: toml::Value) -> Result<(), Box> { *self = serde::Deserialize::deserialize(value)?; @@ -51,7 +51,7 @@ pub fn derive_recursive( quote! { #[allow(clippy::extra_unused_lifetimes)] - impl <'de, #constrained> nebula_config::SerdeReplace for #ident <#unconstrained> { + impl <'de, #constrained> pebrel_config::SerdeReplace for #ident <#unconstrained> { fn replace(&mut self, value: toml::Value) -> Result<(), Box> { match value.as_table() { Some(table) => { @@ -99,7 +99,7 @@ fn match_arms(fields: &Punctuated) -> Result nebula_config::SerdeReplace::replace(&mut self.#ident, value)?, + _ => pebrel_config::SerdeReplace::replace(&mut self.#ident, value)?, }); } else { // Extract all `#[config(alias = "...")]` attribute values. @@ -125,7 +125,7 @@ fn match_arms(fields: &Punctuated) -> Result nebula_config::SerdeReplace::replace(&mut + #(#aliases)|* | #literal => pebrel_config::SerdeReplace::replace(&mut self.#ident, next_value)?, }); } } diff --git a/nebula_config_derive/tests/config.rs b/pebrel_config_derive/tests/config.rs similarity index 98% rename from nebula_config_derive/tests/config.rs rename to pebrel_config_derive/tests/config.rs index aa69e686e..170d35b15 100644 --- a/nebula_config_derive/tests/config.rs +++ b/pebrel_config_derive/tests/config.rs @@ -3,8 +3,8 @@ use std::sync::{Arc, Mutex, OnceLock}; use log::{Level, Log, Metadata, Record}; use serde::Deserialize; -use nebula_config::{DiagnosticKind, SerdeReplace as _, UnknownFieldPolicy, capture_diagnostics}; -use nebula_config_derive::{ConfigDeserialize, SerdeReplace}; +use pebrel_config::{DiagnosticKind, SerdeReplace as _, UnknownFieldPolicy, capture_diagnostics}; +use pebrel_config_derive::{ConfigDeserialize, SerdeReplace}; #[derive(ConfigDeserialize, Debug, PartialEq, Eq)] enum TestEnum { diff --git a/nebula_gpui/ARCHITECTURE.md b/pebrel_gpui/ARCHITECTURE.md similarity index 90% rename from nebula_gpui/ARCHITECTURE.md rename to pebrel_gpui/ARCHITECTURE.md index b730d6892..937ddfc8c 100644 --- a/nebula_gpui/ARCHITECTURE.md +++ b/pebrel_gpui/ARCHITECTURE.md @@ -1,13 +1,13 @@ # Nebula GPUI Foundation -`nebula_gpui` is an isolated GPUI component gallery. It remains a validation +`pebrel_gpui` is an isolated GPUI component gallery. It remains a validation surface, but it no longer owns the product terminal or workspace runtime. -Those implementations moved into `nebula_app/src/gpui_shell/` in P3 and run as +Those implementations moved into `pebrel_app/src/gpui_shell/` in P3 and run as the product main window through `nebula.exe --gpui`. It is a laboratory, not a home: the single maintained product is -`nebula_app` (`nebula.exe`), and modules proven here are integrated into -`nebula_app` rather than accumulating product code in this crate. The +`pebrel_app` (`nebula.exe`), and modules proven here are integrated into +`pebrel_app` rather than accumulating product code in this crate. The staged plan lives in the repo-root `ROADMAP.md`. ## Adoption & Rollback Discipline @@ -103,8 +103,8 @@ Do not use wildcard versions, Git `main`, or branch-only pins. Verify every dependency revision change with: ```powershell -cargo check -p nebula --features gpui-shell --locked --offline -cargo tree -p nebula --features gpui-shell -i gpui --locked --offline +cargo check -p pebrel --features gpui-shell --locked --offline +cargo tree -p pebrel --features gpui-shell -i gpui --locked --offline ``` GPUI upgrades happen in a dedicated branch with component acceptance testing; @@ -115,7 +115,7 @@ baseline branch and tag must never move. ## Workspace Boundary -`nebula_gpui` is a member of the root Cargo workspace (merged 2026-08-12). +`pebrel_gpui` is a member of the root Cargo workspace (merged 2026-08-12). The former blocker — two packages holding `links = "fontconfig"` — was resolved by aligning both sides on `yeslogic-fontconfig-sys ^6.0`: @@ -134,8 +134,8 @@ removed on that path. ## Terminal Vertical Slice -`nebula_app/src/gpui_shell/terminal/` hosts the product terminal integration and proves the hardest -migration claim: `nebula_terminal` (PTY, VT parser, grid, selection) renders +`pebrel_app/src/gpui_shell/terminal/` hosts the product terminal integration and proves the hardest +migration claim: `pebrel_terminal` (PTY, VT parser, grid, selection) renders inside GPUI as a custom `Element` without forking either side. - `session.rs` — owns the ConPTY + `EventLoop` wiring. Terminal events cross @@ -153,17 +153,17 @@ inside GPUI as a custom `Element` without forking either side. - `colors.rs` — resolves vte colors against `Term::colors()` overrides, then a default palette. -The boundary rule stays symmetric: no `nebula_terminal` type escapes -`src/terminal/`, and no GPUI type enters `nebula_terminal`. +The boundary rule stays symmetric: no `pebrel_terminal` type escapes +`src/terminal/`, and no GPUI type enters `pebrel_terminal`. ## Multi-Tab Terminal Workspace -`nebula_app/src/gpui_shell/workspace.rs` is the product shell: a custom +`pebrel_app/src/gpui_shell/workspace.rs` is the product shell: a custom `TitleBar`, sidebar and center content surface owning terminal and settings tabs. `WorkspaceTab::Terminal` is the authoritative split owner; it holds the -pane entities, `nebula_split::SplitTree`, focused pane, zoom state, and +pane entities, `pebrel_split::SplitTree`, focused pane, zoom state, and broadcast state. Terminal behavior stays in each `TerminalView`, while -`nebula_split` remains a pure-data layout and navigation crate. +`pebrel_split` remains a pure-data layout and navigation crate. Lifecycle rules proven by manual acceptance: diff --git a/nebula_gpui/Cargo.toml b/pebrel_gpui/Cargo.toml similarity index 89% rename from nebula_gpui/Cargo.toml rename to pebrel_gpui/Cargo.toml index 3dce5629a..2b6a75769 100644 --- a/nebula_gpui/Cargo.toml +++ b/pebrel_gpui/Cargo.toml @@ -1,20 +1,20 @@ [package] -name = "nebula-gpui" +name = "pebrel-gpui" version = "0.1.0" license = "GPL-3.0-or-later" -description = "Nebula's GPUI component acceptance lab (scratch; product UI lives in nebula_app)" +description = "Nebula's GPUI component acceptance lab (scratch; product UI lives in pebrel_app)" publish = false edition = "2024" rust-version = "1.97.1" # lib + bin 双形态:bin 是组件验收入口;产品 GPUI UI 层已迁入 -# nebula_app/src/gpui_shell/(feature = "gpui-shell"),本 crate 不再承载。 +# pebrel_app/src/gpui_shell/(feature = "gpui-shell"),本 crate 不再承载。 [lib] -name = "nebula_gpui" +name = "pebrel_gpui" path = "src/lib.rs" [[bin]] -name = "nebula-gpui" +name = "pebrel-gpui" path = "src/main.rs" [[bin]] diff --git a/nebula_gpui/IME_CHECKLIST.md b/pebrel_gpui/IME_CHECKLIST.md similarity index 97% rename from nebula_gpui/IME_CHECKLIST.md rename to pebrel_gpui/IME_CHECKLIST.md index 38a16ea2e..a0ac4b641 100644 --- a/nebula_gpui/IME_CHECKLIST.md +++ b/pebrel_gpui/IME_CHECKLIST.md @@ -1,7 +1,7 @@ # G2 闸门:IME 中文输入人工验收清单 环境:启用 `gpui-shell` feature 构建的 `nebula.exe --gpui` 产品主窗形态, -微软拼音输入法。实验场 `nebula-gpui.exe` 和 `NEBULA_GPUI_SHELL=1` 双运行时 +微软拼音输入法。实验场 `pebrel-gpui.exe` 和 `NEBULA_GPUI_SHELL=1` 双运行时 spike 的结果不能替代本清单。任一项失败即 G2 否决:记录复现步骤、输入法、 Windows 版本、显示器缩放和截图,修复后整单重验。 diff --git a/nebula_gpui/src/app.rs b/pebrel_gpui/src/app.rs similarity index 93% rename from nebula_gpui/src/app.rs rename to pebrel_gpui/src/app.rs index 8f865339a..a383068c8 100644 --- a/nebula_gpui/src/app.rs +++ b/pebrel_gpui/src/app.rs @@ -8,7 +8,7 @@ pub fn open_gallery_window(cx: &mut App) { let options = WindowOptions { window_bounds: Some(WindowBounds::Windowed(bounds)), window_min_size: Some(size(px(760.0), px(540.0))), - app_id: Some("nebula-gpui".to_owned()), + app_id: Some("pebrel-gpui".to_owned()), ..Default::default() }; diff --git a/nebula_gpui/src/lib.rs b/pebrel_gpui/src/lib.rs similarity index 90% rename from nebula_gpui/src/lib.rs rename to pebrel_gpui/src/lib.rs index 87e1460c3..bc44936a2 100644 --- a/nebula_gpui/src/lib.rs +++ b/pebrel_gpui/src/lib.rs @@ -1,6 +1,6 @@ //! GPUI 组件验收实验场(scratch)。 //! -//! 产品代码不在这里:GPUI UI 层住在 `nebula_app/src/gpui_shell/` +//! 产品代码不在这里:GPUI UI 层住在 `pebrel_app/src/gpui_shell/` //! (feature = "gpui-shell"),本 crate 只保留组件验收页,用于快速验证 //! gpui-component 组件、fork 补丁与上游升级回归,验证通过的方案进产品。 diff --git a/pebrel_gpui/src/main.rs b/pebrel_gpui/src/main.rs new file mode 100644 index 000000000..00108751e --- /dev/null +++ b/pebrel_gpui/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + pebrel_gpui::run_shell(); +} diff --git a/nebula_gpui/src/media_probe/gif_stream.rs b/pebrel_gpui/src/media_probe/gif_stream.rs similarity index 68% rename from nebula_gpui/src/media_probe/gif_stream.rs rename to pebrel_gpui/src/media_probe/gif_stream.rs index 596d97e83..d249b4728 100644 --- a/nebula_gpui/src/media_probe/gif_stream.rs +++ b/pebrel_gpui/src/media_probe/gif_stream.rs @@ -1,4 +1,4 @@ //! Qualification reuses the production decoder and its regression tests. -#[path = "../../../nebula_app/src/platform/background_media/gif_decoder.rs"] +#[path = "../../../pebrel_app/src/platform/background_media/gif_decoder.rs"] mod production; pub use production::{Cursor, Decoded}; diff --git a/nebula_gpui/src/media_probe/main.rs b/pebrel_gpui/src/media_probe/main.rs similarity index 100% rename from nebula_gpui/src/media_probe/main.rs rename to pebrel_gpui/src/media_probe/main.rs diff --git a/nebula_gpui/src/media_probe/metrics.rs b/pebrel_gpui/src/media_probe/metrics.rs similarity index 100% rename from nebula_gpui/src/media_probe/metrics.rs rename to pebrel_gpui/src/media_probe/metrics.rs diff --git a/nebula_gpui/src/media_probe/native_gate.rs b/pebrel_gpui/src/media_probe/native_gate.rs similarity index 100% rename from nebula_gpui/src/media_probe/native_gate.rs rename to pebrel_gpui/src/media_probe/native_gate.rs diff --git a/nebula_gpui/src/ui/bootstrap.rs b/pebrel_gpui/src/ui/bootstrap.rs similarity index 100% rename from nebula_gpui/src/ui/bootstrap.rs rename to pebrel_gpui/src/ui/bootstrap.rs diff --git a/nebula_gpui/src/ui/mod.rs b/pebrel_gpui/src/ui/mod.rs similarity index 100% rename from nebula_gpui/src/ui/mod.rs rename to pebrel_gpui/src/ui/mod.rs diff --git a/nebula_gpui/src/ui/prelude.rs b/pebrel_gpui/src/ui/prelude.rs similarity index 93% rename from nebula_gpui/src/ui/prelude.rs rename to pebrel_gpui/src/ui/prelude.rs index 934067d11..a1c57cea2 100644 --- a/nebula_gpui/src/ui/prelude.rs +++ b/pebrel_gpui/src/ui/prelude.rs @@ -1,4 +1,4 @@ -//! 实验场副本:产品权威在 `nebula_app/src/gpui_shell/prelude.rs`。 +//! 实验场副本:产品权威在 `pebrel_app/src/gpui_shell/prelude.rs`。 //! 业务视图只从这里导入获准使用的第三方组件;改导出面时两处同步。 // 这些导出是受控的业务入口,未被当前验收页使用的组件仍应保留,避免业务代码 diff --git a/nebula_gpui/src/views/component_gallery.rs b/pebrel_gpui/src/views/component_gallery.rs similarity index 100% rename from nebula_gpui/src/views/component_gallery.rs rename to pebrel_gpui/src/views/component_gallery.rs diff --git a/nebula_gpui/src/views/mod.rs b/pebrel_gpui/src/views/mod.rs similarity index 100% rename from nebula_gpui/src/views/mod.rs rename to pebrel_gpui/src/views/mod.rs diff --git a/nebula_hook/Cargo.toml b/pebrel_hook/Cargo.toml similarity index 95% rename from nebula_hook/Cargo.toml rename to pebrel_hook/Cargo.toml index d18998038..09a0d87f7 100644 --- a/nebula_hook/Cargo.toml +++ b/pebrel_hook/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula_hook" +name = "pebrel_hook" version = "0.6.0" license = "GPL-3.0-or-later" description = "Tiny bridge: AI-CLI lifecycle hooks -> Nebula named pipe" diff --git a/nebula_hook/src/main.rs b/pebrel_hook/src/main.rs similarity index 100% rename from nebula_hook/src/main.rs rename to pebrel_hook/src/main.rs diff --git a/nebula_hook/tests/lifetime.rs b/pebrel_hook/tests/lifetime.rs similarity index 100% rename from nebula_hook/tests/lifetime.rs rename to pebrel_hook/tests/lifetime.rs diff --git a/nebula_settings/AGENTS.md b/pebrel_settings/AGENTS.md similarity index 86% rename from nebula_settings/AGENTS.md rename to pebrel_settings/AGENTS.md index 48e9adde8..1ba7df8c9 100644 --- a/nebula_settings/AGENTS.md +++ b/pebrel_settings/AGENTS.md @@ -4,6 +4,6 @@ - 保持零生产依赖合同。新依赖、动态解析或后台服务需要单独设计依据,不能为了一个界面入口扩大核心职责。 - 新设置必须定义默认值、合法范围、序列化/反序列化、旧配置兼容、重置和往返测试;开放会话是否即时生效必须明确。 - 语言和消息注册保持单一权威;普通翻译查询的既有零分配合同不能被格式化或冷路径逻辑悄悄改变。 -- 持久化格式、兼容迁移或共享设置所有权的非平凡变化写入 `architecture/notes/nebula_settings//`。 +- 持久化格式、兼容迁移或共享设置所有权的非平凡变化写入 `architecture/notes/pebrel_settings//`。 -- 原生 UI 的 Luau 默认值与界面保存优先级见 [脚本默认值](../architecture/notes/nebula_settings/config_defaults/2026-11-02-script-ui-defaults.md);设置核心不执行脚本。 +- 原生 UI 的 Luau 默认值与界面保存优先级见 [脚本默认值](../architecture/notes/pebrel_settings/config_defaults/2026-11-02-script-ui-defaults.md);设置核心不执行脚本。 diff --git a/nebula_settings/Cargo.toml b/pebrel_settings/Cargo.toml similarity index 94% rename from nebula_settings/Cargo.toml rename to pebrel_settings/Cargo.toml index 691685eb9..92bbc3576 100644 --- a/nebula_settings/Cargo.toml +++ b/pebrel_settings/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula-settings" +name = "pebrel-settings" version = "2.5.0" license = "GPL-3.0-or-later" description = "Shared reader for Nebula runtime user settings (nebula_settings.txt) and theme terminal-color tables" diff --git a/nebula_settings/src/agent_hooks.rs b/pebrel_settings/src/agent_hooks.rs similarity index 100% rename from nebula_settings/src/agent_hooks.rs rename to pebrel_settings/src/agent_hooks.rs diff --git a/nebula_settings/src/app_icon.rs b/pebrel_settings/src/app_icon.rs similarity index 100% rename from nebula_settings/src/app_icon.rs rename to pebrel_settings/src/app_icon.rs diff --git a/nebula_settings/src/background_effects.rs b/pebrel_settings/src/background_effects.rs similarity index 100% rename from nebula_settings/src/background_effects.rs rename to pebrel_settings/src/background_effects.rs diff --git a/nebula_settings/src/background_media.rs b/pebrel_settings/src/background_media.rs similarity index 100% rename from nebula_settings/src/background_media.rs rename to pebrel_settings/src/background_media.rs diff --git a/nebula_settings/src/config_defaults.rs b/pebrel_settings/src/config_defaults.rs similarity index 100% rename from nebula_settings/src/config_defaults.rs rename to pebrel_settings/src/config_defaults.rs diff --git a/nebula_settings/src/cursor_motion.rs b/pebrel_settings/src/cursor_motion.rs similarity index 100% rename from nebula_settings/src/cursor_motion.rs rename to pebrel_settings/src/cursor_motion.rs diff --git a/nebula_settings/src/custom_theme.rs b/pebrel_settings/src/custom_theme.rs similarity index 100% rename from nebula_settings/src/custom_theme.rs rename to pebrel_settings/src/custom_theme.rs diff --git a/nebula_settings/src/language.rs b/pebrel_settings/src/language.rs similarity index 100% rename from nebula_settings/src/language.rs rename to pebrel_settings/src/language.rs diff --git a/nebula_settings/src/lib.rs b/pebrel_settings/src/lib.rs similarity index 99% rename from nebula_settings/src/lib.rs rename to pebrel_settings/src/lib.rs index 46bdccc1b..155602a7d 100644 --- a/nebula_settings/src/lib.rs +++ b/pebrel_settings/src/lib.rs @@ -6,10 +6,10 @@ //! 权威来源,优先级高于 `nebula.toml` 的对应字段。 //! //! 同步事实(记录在案): -//! - `nebula_app/src/display/ui/theme.rs` 是旧壳体内的既有实现;本 crate 的 +//! - `pebrel_app/src/display/ui/theme.rs` 是旧壳体内的既有实现;本 crate 的 //! 色值与其逐字一致。旧壳按 P4 裁定冻结保留,新 UI 一律读这里;改主题 //! 色值时两处同步,直到 P3 接入完成后旧壳引用此 crate。 -//! - `nebula_terminal::tty::windows` 里有一份私有的同款路径/键值读取;引擎 +//! - `pebrel_terminal::tty::windows` 里有一份私有的同款路径/键值读取;引擎 //! 不能依赖 UI 侧 crate(依赖方向是铁律),属有意保留的最小重复。 //! - `follow_system_theme` 的系统外观联动暂未在此实现(消费方自行处理)。 diff --git a/nebula_settings/src/ligatures.rs b/pebrel_settings/src/ligatures.rs similarity index 100% rename from nebula_settings/src/ligatures.rs rename to pebrel_settings/src/ligatures.rs diff --git a/nebula_settings/src/notifications.rs b/pebrel_settings/src/notifications.rs similarity index 100% rename from nebula_settings/src/notifications.rs rename to pebrel_settings/src/notifications.rs diff --git a/nebula_settings/src/paths.rs b/pebrel_settings/src/paths.rs similarity index 100% rename from nebula_settings/src/paths.rs rename to pebrel_settings/src/paths.rs diff --git a/nebula_settings/src/paths/migration.rs b/pebrel_settings/src/paths/migration.rs similarity index 100% rename from nebula_settings/src/paths/migration.rs rename to pebrel_settings/src/paths/migration.rs diff --git a/nebula_settings/src/paths/tests.rs b/pebrel_settings/src/paths/tests.rs similarity index 100% rename from nebula_settings/src/paths/tests.rs rename to pebrel_settings/src/paths/tests.rs diff --git a/nebula_settings/src/prompt_suggestions.rs b/pebrel_settings/src/prompt_suggestions.rs similarity index 100% rename from nebula_settings/src/prompt_suggestions.rs rename to pebrel_settings/src/prompt_suggestions.rs diff --git a/nebula_settings/src/quick_terminal.rs b/pebrel_settings/src/quick_terminal.rs similarity index 100% rename from nebula_settings/src/quick_terminal.rs rename to pebrel_settings/src/quick_terminal.rs diff --git a/nebula_settings/src/reset.rs b/pebrel_settings/src/reset.rs similarity index 100% rename from nebula_settings/src/reset.rs rename to pebrel_settings/src/reset.rs diff --git a/nebula_settings/src/scrolling.rs b/pebrel_settings/src/scrolling.rs similarity index 100% rename from nebula_settings/src/scrolling.rs rename to pebrel_settings/src/scrolling.rs diff --git a/nebula_settings/src/shader_parameters.rs b/pebrel_settings/src/shader_parameters.rs similarity index 100% rename from nebula_settings/src/shader_parameters.rs rename to pebrel_settings/src/shader_parameters.rs diff --git a/nebula_settings/src/tab_bar_material.rs b/pebrel_settings/src/tab_bar_material.rs similarity index 100% rename from nebula_settings/src/tab_bar_material.rs rename to pebrel_settings/src/tab_bar_material.rs diff --git a/nebula_settings/src/terminal_effects.rs b/pebrel_settings/src/terminal_effects.rs similarity index 100% rename from nebula_settings/src/terminal_effects.rs rename to pebrel_settings/src/terminal_effects.rs diff --git a/nebula_settings/src/themes.rs b/pebrel_settings/src/themes.rs similarity index 100% rename from nebula_settings/src/themes.rs rename to pebrel_settings/src/themes.rs diff --git a/nebula_split/Cargo.toml b/pebrel_split/Cargo.toml similarity index 83% rename from nebula_split/Cargo.toml rename to pebrel_split/Cargo.toml index c042e8306..b3fef3542 100644 --- a/nebula_split/Cargo.toml +++ b/pebrel_split/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula-split" +name = "pebrel-split" version = "2.5.0" license = "GPL-3.0-or-later" description = "Shared split-pane rules: layout tree, geometry, divider drag and directional focus" @@ -7,5 +7,5 @@ publish = false edition.workspace = true rust-version.workspace = true -# 刻意零依赖:任何壳与任何渲染后端都能免费引用(与 nebula-settings 同则)。 +# 刻意零依赖:任何壳与任何渲染后端都能免费引用(与 pebrel-settings 同则)。 [dependencies] diff --git a/nebula_split/src/dock.rs b/pebrel_split/src/dock.rs similarity index 100% rename from nebula_split/src/dock.rs rename to pebrel_split/src/dock.rs diff --git a/nebula_split/src/lib.rs b/pebrel_split/src/lib.rs similarity index 99% rename from nebula_split/src/lib.rs rename to pebrel_split/src/lib.rs index 5f3cd2c50..6aa4cea33 100644 --- a/nebula_split/src/lib.rs +++ b/pebrel_split/src/lib.rs @@ -1,6 +1,6 @@ //! Nebula 分屏规则的共享权威实现:布局树、几何切割、分隔条拖拽与方向聚焦。 //! -//! 从旧壳 `nebula_app/src/window_context/split.rs` 逐字对照移植成纯数据 + +//! 从旧壳 `pebrel_app/src/window_context/split.rs` 逐字对照移植成纯数据 + //! 纯函数——切割数学(floor/钳制次序)、拖拽比例曲线(关闭边距/预览钉边/ //! 提交量化)与最近邻导航(垂直漂移 4 倍惩罚)以旧壳行为为权威,任何 UI //! 框架类型都不出现在这里。 diff --git a/nebula_terminal/AGENTS.md b/pebrel_terminal/AGENTS.md similarity index 78% rename from nebula_terminal/AGENTS.md rename to pebrel_terminal/AGENTS.md index e37f4b201..a8a898b64 100644 --- a/nebula_terminal/AGENTS.md +++ b/pebrel_terminal/AGENTS.md @@ -2,13 +2,13 @@ - 本目录只拥有 grid、VT、PTY、输入编码、回放和终端行为;不得依赖产品视图、窗口状态或 GPUI 组件。 - 输入修复必须分别验证原生控制台读取方、翻译后字节流读取方和协商协议;不能用单一路径正常推断所有客户端兼容。 -- PowerShell 剪贴板能力只报告当前原生编辑器,界面准入和回退依据见 [`clipboard paste`](../architecture/notes/nebula_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 -- 原生 Shell 点选与 PSReadLine 按键传输的依据见 [`tty pointer`](../architecture/notes/nebula_terminal/tty/2026-10-31-powershell-native-pointer.md);Linux 验收不代替 Windows ConPTY 验收。 +- PowerShell 剪贴板能力只报告当前原生编辑器,界面准入和回退依据见 [`clipboard paste`](../architecture/notes/pebrel_app/gpui_shell/terminal/view/2026-10-23-powershell-clipboard-paste.md)。 +- 原生 Shell 点选与 PSReadLine 按键传输的依据见 [`tty pointer`](../architecture/notes/pebrel_terminal/tty/2026-10-31-powershell-native-pointer.md);Linux 验收不代替 Windows ConPTY 验收。 - 字节流、解析器和回放测试要覆盖分块边界、静默源、错误/EOF 和平台差异。间歇问题需要能稳定失败的判据。 - 热路径变更提供代表性成本证据;分配、吞吐或内存结论限定到实际测量的内容、尺寸、平台和构建配置。 - 不为 UI 需求在终端核心增加产品概念。确需新接口时,公开最小命令/结果并保持状态私有。 -- 重大协议、缓冲、线程、所有权或兼容性决策写入 `architecture/notes/nebula_terminal//`;普通回归修复只需测试和变更说明。 -- 快照中的 DIM 与反色颜色归属见 [`render`](../architecture/notes/nebula_terminal/render/);颜色保持未解析,前端统一处理调色板和 OSC 覆盖。 -- ZMODEM(rz/sz)只做识别并自动取消,不实现传输;依据见 [`zmodem`](../architecture/notes/nebula_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md)。 -- OSC 7501 记录、PTY 生命周期和 GPUI 投影的边界见 [`program_status`](../architecture/notes/nebula_terminal/program_status/)。 -- 有界输出载荷、命令捕获与网格标记的所有权见 [`inline_content`](../architecture/notes/nebula_terminal/inline_content/2026-10-21-bounded-output-store.md);前端分类命令,核心不解释 MIME 正文。 +- 重大协议、缓冲、线程、所有权或兼容性决策写入 `architecture/notes/pebrel_terminal//`;普通回归修复只需测试和变更说明。 +- 快照中的 DIM 与反色颜色归属见 [`render`](../architecture/notes/pebrel_terminal/render/);颜色保持未解析,前端统一处理调色板和 OSC 覆盖。 +- ZMODEM(rz/sz)只做识别并自动取消,不实现传输;依据见 [`zmodem`](../architecture/notes/pebrel_terminal/zmodem/2026-11-05-cancel-unsupported-zmodem.md)。 +- OSC 7501 记录、PTY 生命周期和 GPUI 投影的边界见 [`program_status`](../architecture/notes/pebrel_terminal/program_status/)。 +- 有界输出载荷、命令捕获与网格标记的所有权见 [`inline_content`](../architecture/notes/pebrel_terminal/inline_content/2026-10-21-bounded-output-store.md);前端分类命令,核心不解释 MIME 正文。 diff --git a/nebula_terminal/Cargo.toml b/pebrel_terminal/Cargo.toml similarity index 98% rename from nebula_terminal/Cargo.toml rename to pebrel_terminal/Cargo.toml index 48ca69985..474bd85e2 100644 --- a/nebula_terminal/Cargo.toml +++ b/pebrel_terminal/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nebula_terminal" +name = "pebrel_terminal" version = "2.5.0" license = "GPL-3.0-or-later" description = "Nebula terminal emulation core" diff --git a/nebula_terminal/src/event.rs b/pebrel_terminal/src/event.rs similarity index 100% rename from nebula_terminal/src/event.rs rename to pebrel_terminal/src/event.rs diff --git a/nebula_terminal/src/event_loop.rs b/pebrel_terminal/src/event_loop.rs similarity index 100% rename from nebula_terminal/src/event_loop.rs rename to pebrel_terminal/src/event_loop.rs diff --git a/nebula_terminal/src/event_loop/kitty_tests.rs b/pebrel_terminal/src/event_loop/kitty_tests.rs similarity index 100% rename from nebula_terminal/src/event_loop/kitty_tests.rs rename to pebrel_terminal/src/event_loop/kitty_tests.rs diff --git a/nebula_terminal/src/event_loop/sync_tests.rs b/pebrel_terminal/src/event_loop/sync_tests.rs similarity index 100% rename from nebula_terminal/src/event_loop/sync_tests.rs rename to pebrel_terminal/src/event_loop/sync_tests.rs diff --git a/nebula_terminal/src/event_loop/zmodem_tests.rs b/pebrel_terminal/src/event_loop/zmodem_tests.rs similarity index 100% rename from nebula_terminal/src/event_loop/zmodem_tests.rs rename to pebrel_terminal/src/event_loop/zmodem_tests.rs diff --git a/nebula_terminal/src/grid/mod.rs b/pebrel_terminal/src/grid/mod.rs similarity index 100% rename from nebula_terminal/src/grid/mod.rs rename to pebrel_terminal/src/grid/mod.rs diff --git a/nebula_terminal/src/grid/resize.rs b/pebrel_terminal/src/grid/resize.rs similarity index 100% rename from nebula_terminal/src/grid/resize.rs rename to pebrel_terminal/src/grid/resize.rs diff --git a/nebula_terminal/src/grid/row.rs b/pebrel_terminal/src/grid/row.rs similarity index 100% rename from nebula_terminal/src/grid/row.rs rename to pebrel_terminal/src/grid/row.rs diff --git a/nebula_terminal/src/grid/storage.rs b/pebrel_terminal/src/grid/storage.rs similarity index 100% rename from nebula_terminal/src/grid/storage.rs rename to pebrel_terminal/src/grid/storage.rs diff --git a/nebula_terminal/src/grid/tests.rs b/pebrel_terminal/src/grid/tests.rs similarity index 100% rename from nebula_terminal/src/grid/tests.rs rename to pebrel_terminal/src/grid/tests.rs diff --git a/nebula_terminal/src/index.rs b/pebrel_terminal/src/index.rs similarity index 100% rename from nebula_terminal/src/index.rs rename to pebrel_terminal/src/index.rs diff --git a/nebula_terminal/src/inline_content.rs b/pebrel_terminal/src/inline_content.rs similarity index 100% rename from nebula_terminal/src/inline_content.rs rename to pebrel_terminal/src/inline_content.rs diff --git a/nebula_terminal/src/inline_content/command.rs b/pebrel_terminal/src/inline_content/command.rs similarity index 100% rename from nebula_terminal/src/inline_content/command.rs rename to pebrel_terminal/src/inline_content/command.rs diff --git a/nebula_terminal/src/inline_image.rs b/pebrel_terminal/src/inline_image.rs similarity index 100% rename from nebula_terminal/src/inline_image.rs rename to pebrel_terminal/src/inline_image.rs diff --git a/nebula_terminal/src/kitty_graphics.rs b/pebrel_terminal/src/kitty_graphics.rs similarity index 100% rename from nebula_terminal/src/kitty_graphics.rs rename to pebrel_terminal/src/kitty_graphics.rs diff --git a/nebula_terminal/src/kitty_graphics/control.rs b/pebrel_terminal/src/kitty_graphics/control.rs similarity index 100% rename from nebula_terminal/src/kitty_graphics/control.rs rename to pebrel_terminal/src/kitty_graphics/control.rs diff --git a/nebula_terminal/src/lib.rs b/pebrel_terminal/src/lib.rs similarity index 100% rename from nebula_terminal/src/lib.rs rename to pebrel_terminal/src/lib.rs diff --git a/nebula_terminal/src/osc_cwd.rs b/pebrel_terminal/src/osc_cwd.rs similarity index 100% rename from nebula_terminal/src/osc_cwd.rs rename to pebrel_terminal/src/osc_cwd.rs diff --git a/nebula_terminal/src/program_status.rs b/pebrel_terminal/src/program_status.rs similarity index 100% rename from nebula_terminal/src/program_status.rs rename to pebrel_terminal/src/program_status.rs diff --git a/nebula_terminal/src/program_status/tests.rs b/pebrel_terminal/src/program_status/tests.rs similarity index 100% rename from nebula_terminal/src/program_status/tests.rs rename to pebrel_terminal/src/program_status/tests.rs diff --git a/nebula_terminal/src/render.rs b/pebrel_terminal/src/render.rs similarity index 100% rename from nebula_terminal/src/render.rs rename to pebrel_terminal/src/render.rs diff --git a/nebula_terminal/src/render/boxdraw.rs b/pebrel_terminal/src/render/boxdraw.rs similarity index 99% rename from nebula_terminal/src/render/boxdraw.rs rename to pebrel_terminal/src/render/boxdraw.rs index e7b66e415..7b52acc40 100644 --- a/nebula_terminal/src/render/boxdraw.rs +++ b/pebrel_terminal/src/render/boxdraw.rs @@ -1,6 +1,6 @@ //! 内建字形几何:框线、块元素、盲文点阵与 Powerline 分隔符。 //! -//! 从 nebula_app 的 builtin_font(像素栅格化)移植而来,改为输出纯几何 +//! 从 pebrel_app 的 builtin_font(像素栅格化)移植而来,改为输出纯几何 //! 指令(矩形 + 凸多边形),由前端用自己的图元 API 填充。放进渲染合同的 //! 理由与 `RenderSnapshot` 相同:这些字符必须精确盖满单元格、相邻单元格 //! 必须无缝拼接,字体(尤其 CJK 字体)保证不了这一点;几何是唯一权威, diff --git a/nebula_terminal/src/selection.rs b/pebrel_terminal/src/selection.rs similarity index 100% rename from nebula_terminal/src/selection.rs rename to pebrel_terminal/src/selection.rs diff --git a/nebula_terminal/src/sync.rs b/pebrel_terminal/src/sync.rs similarity index 100% rename from nebula_terminal/src/sync.rs rename to pebrel_terminal/src/sync.rs diff --git a/nebula_terminal/src/term/cell.rs b/pebrel_terminal/src/term/cell.rs similarity index 100% rename from nebula_terminal/src/term/cell.rs rename to pebrel_terminal/src/term/cell.rs diff --git a/nebula_terminal/src/term/clear.rs b/pebrel_terminal/src/term/clear.rs similarity index 100% rename from nebula_terminal/src/term/clear.rs rename to pebrel_terminal/src/term/clear.rs diff --git a/nebula_terminal/src/term/color.rs b/pebrel_terminal/src/term/color.rs similarity index 100% rename from nebula_terminal/src/term/color.rs rename to pebrel_terminal/src/term/color.rs diff --git a/nebula_terminal/src/term/damage.rs b/pebrel_terminal/src/term/damage.rs similarity index 100% rename from nebula_terminal/src/term/damage.rs rename to pebrel_terminal/src/term/damage.rs diff --git a/nebula_terminal/src/term/emoji_input_tests.rs b/pebrel_terminal/src/term/emoji_input_tests.rs similarity index 100% rename from nebula_terminal/src/term/emoji_input_tests.rs rename to pebrel_terminal/src/term/emoji_input_tests.rs diff --git a/nebula_terminal/src/term/grid_content.rs b/pebrel_terminal/src/term/grid_content.rs similarity index 100% rename from nebula_terminal/src/term/grid_content.rs rename to pebrel_terminal/src/term/grid_content.rs diff --git a/nebula_terminal/src/term/inline_image.rs b/pebrel_terminal/src/term/inline_image.rs similarity index 100% rename from nebula_terminal/src/term/inline_image.rs rename to pebrel_terminal/src/term/inline_image.rs diff --git a/nebula_terminal/src/term/input.rs b/pebrel_terminal/src/term/input.rs similarity index 100% rename from nebula_terminal/src/term/input.rs rename to pebrel_terminal/src/term/input.rs diff --git a/nebula_terminal/src/term/keyboard.rs b/pebrel_terminal/src/term/keyboard.rs similarity index 100% rename from nebula_terminal/src/term/keyboard.rs rename to pebrel_terminal/src/term/keyboard.rs diff --git a/nebula_terminal/src/term/keyboard_contract_tests.rs b/pebrel_terminal/src/term/keyboard_contract_tests.rs similarity index 100% rename from nebula_terminal/src/term/keyboard_contract_tests.rs rename to pebrel_terminal/src/term/keyboard_contract_tests.rs diff --git a/nebula_terminal/src/term/mod.rs b/pebrel_terminal/src/term/mod.rs similarity index 99% rename from nebula_terminal/src/term/mod.rs rename to pebrel_terminal/src/term/mod.rs index 499a4ab7a..89d3ca7f6 100644 --- a/nebula_terminal/src/term/mod.rs +++ b/pebrel_terminal/src/term/mod.rs @@ -2307,7 +2307,7 @@ impl From for ModeState { /// Terminal version for escape sequence reports. /// -/// This returns the current terminal version as a unique number based on nebula_terminal's +/// This returns the current terminal version as a unique number based on pebrel_terminal's /// semver version. The different versions are padded to ensure that a higher semver version will /// always report a higher version number. fn version_number(mut version: &str) -> usize { @@ -2419,7 +2419,7 @@ pub mod test { /// # Examples /// /// ```rust - /// use nebula_terminal::term::test::mock_term; + /// use pebrel_terminal::term::test::mock_term; /// /// // Create a terminal with the following cells: /// // diff --git a/nebula_terminal/src/term/mouse.rs b/pebrel_terminal/src/term/mouse.rs similarity index 100% rename from nebula_terminal/src/term/mouse.rs rename to pebrel_terminal/src/term/mouse.rs diff --git a/nebula_terminal/src/term/program_status.rs b/pebrel_terminal/src/term/program_status.rs similarity index 100% rename from nebula_terminal/src/term/program_status.rs rename to pebrel_terminal/src/term/program_status.rs diff --git a/nebula_terminal/src/term/prompt.rs b/pebrel_terminal/src/term/prompt.rs similarity index 100% rename from nebula_terminal/src/term/prompt.rs rename to pebrel_terminal/src/term/prompt.rs diff --git a/nebula_terminal/src/term/reading.rs b/pebrel_terminal/src/term/reading.rs similarity index 100% rename from nebula_terminal/src/term/reading.rs rename to pebrel_terminal/src/term/reading.rs diff --git a/nebula_terminal/src/term/reading/guard.rs b/pebrel_terminal/src/term/reading/guard.rs similarity index 100% rename from nebula_terminal/src/term/reading/guard.rs rename to pebrel_terminal/src/term/reading/guard.rs diff --git a/nebula_terminal/src/term/reading/tests.rs b/pebrel_terminal/src/term/reading/tests.rs similarity index 100% rename from nebula_terminal/src/term/reading/tests.rs rename to pebrel_terminal/src/term/reading/tests.rs diff --git a/nebula_terminal/src/term/redraw_anchor.rs b/pebrel_terminal/src/term/redraw_anchor.rs similarity index 100% rename from nebula_terminal/src/term/redraw_anchor.rs rename to pebrel_terminal/src/term/redraw_anchor.rs diff --git a/nebula_terminal/src/term/renderable.rs b/pebrel_terminal/src/term/renderable.rs similarity index 100% rename from nebula_terminal/src/term/renderable.rs rename to pebrel_terminal/src/term/renderable.rs diff --git a/nebula_terminal/src/term/search.rs b/pebrel_terminal/src/term/search.rs similarity index 100% rename from nebula_terminal/src/term/search.rs rename to pebrel_terminal/src/term/search.rs diff --git a/nebula_terminal/src/term/tests.rs b/pebrel_terminal/src/term/tests.rs similarity index 100% rename from nebula_terminal/src/term/tests.rs rename to pebrel_terminal/src/term/tests.rs diff --git a/nebula_terminal/src/term/title.rs b/pebrel_terminal/src/term/title.rs similarity index 100% rename from nebula_terminal/src/term/title.rs rename to pebrel_terminal/src/term/title.rs diff --git a/nebula_terminal/src/term/viewport.rs b/pebrel_terminal/src/term/viewport.rs similarity index 100% rename from nebula_terminal/src/term/viewport.rs rename to pebrel_terminal/src/term/viewport.rs diff --git a/nebula_terminal/src/thread.rs b/pebrel_terminal/src/thread.rs similarity index 100% rename from nebula_terminal/src/thread.rs rename to pebrel_terminal/src/thread.rs diff --git a/nebula_terminal/src/tty/clipboard.ps1 b/pebrel_terminal/src/tty/clipboard.ps1 similarity index 100% rename from nebula_terminal/src/tty/clipboard.ps1 rename to pebrel_terminal/src/tty/clipboard.ps1 diff --git a/nebula_terminal/src/tty/command.sh b/pebrel_terminal/src/tty/command.sh similarity index 100% rename from nebula_terminal/src/tty/command.sh rename to pebrel_terminal/src/tty/command.sh diff --git a/nebula_terminal/src/tty/completion.ps1 b/pebrel_terminal/src/tty/completion.ps1 similarity index 100% rename from nebula_terminal/src/tty/completion.ps1 rename to pebrel_terminal/src/tty/completion.ps1 diff --git a/nebula_terminal/src/tty/completion.sh b/pebrel_terminal/src/tty/completion.sh similarity index 100% rename from nebula_terminal/src/tty/completion.sh rename to pebrel_terminal/src/tty/completion.sh diff --git a/nebula_terminal/src/tty/connection.ps1 b/pebrel_terminal/src/tty/connection.ps1 similarity index 100% rename from nebula_terminal/src/tty/connection.ps1 rename to pebrel_terminal/src/tty/connection.ps1 diff --git a/nebula_terminal/src/tty/connection.sh b/pebrel_terminal/src/tty/connection.sh similarity index 100% rename from nebula_terminal/src/tty/connection.sh rename to pebrel_terminal/src/tty/connection.sh diff --git a/nebula_terminal/src/tty/mod.rs b/pebrel_terminal/src/tty/mod.rs similarity index 100% rename from nebula_terminal/src/tty/mod.rs rename to pebrel_terminal/src/tty/mod.rs diff --git a/nebula_terminal/src/tty/pointer.ps1 b/pebrel_terminal/src/tty/pointer.ps1 similarity index 100% rename from nebula_terminal/src/tty/pointer.ps1 rename to pebrel_terminal/src/tty/pointer.ps1 diff --git a/nebula_terminal/src/tty/pointer.sh b/pebrel_terminal/src/tty/pointer.sh similarity index 100% rename from nebula_terminal/src/tty/pointer.sh rename to pebrel_terminal/src/tty/pointer.sh diff --git a/nebula_terminal/src/tty/unix.rs b/pebrel_terminal/src/tty/unix.rs similarity index 100% rename from nebula_terminal/src/tty/unix.rs rename to pebrel_terminal/src/tty/unix.rs diff --git a/nebula_terminal/src/tty/windows/blocking.rs b/pebrel_terminal/src/tty/windows/blocking.rs similarity index 100% rename from nebula_terminal/src/tty/windows/blocking.rs rename to pebrel_terminal/src/tty/windows/blocking.rs diff --git a/nebula_terminal/src/tty/windows/child.rs b/pebrel_terminal/src/tty/windows/child.rs similarity index 100% rename from nebula_terminal/src/tty/windows/child.rs rename to pebrel_terminal/src/tty/windows/child.rs diff --git a/nebula_terminal/src/tty/windows/cmd_prompt.rs b/pebrel_terminal/src/tty/windows/cmd_prompt.rs similarity index 100% rename from nebula_terminal/src/tty/windows/cmd_prompt.rs rename to pebrel_terminal/src/tty/windows/cmd_prompt.rs diff --git a/nebula_terminal/src/tty/windows/conpty.rs b/pebrel_terminal/src/tty/windows/conpty.rs similarity index 100% rename from nebula_terminal/src/tty/windows/conpty.rs rename to pebrel_terminal/src/tty/windows/conpty.rs diff --git a/nebula_terminal/src/tty/windows/environment.rs b/pebrel_terminal/src/tty/windows/environment.rs similarity index 100% rename from nebula_terminal/src/tty/windows/environment.rs rename to pebrel_terminal/src/tty/windows/environment.rs diff --git a/nebula_terminal/src/tty/windows/mod.rs b/pebrel_terminal/src/tty/windows/mod.rs similarity index 100% rename from nebula_terminal/src/tty/windows/mod.rs rename to pebrel_terminal/src/tty/windows/mod.rs diff --git a/nebula_terminal/src/tty/windows/powershell_launch.rs b/pebrel_terminal/src/tty/windows/powershell_launch.rs similarity index 100% rename from nebula_terminal/src/tty/windows/powershell_launch.rs rename to pebrel_terminal/src/tty/windows/powershell_launch.rs diff --git a/nebula_terminal/src/tty/windows/proxy.ps1 b/pebrel_terminal/src/tty/windows/proxy.ps1 similarity index 100% rename from nebula_terminal/src/tty/windows/proxy.ps1 rename to pebrel_terminal/src/tty/windows/proxy.ps1 diff --git a/nebula_terminal/src/tty/windows/proxy_tests.rs b/pebrel_terminal/src/tty/windows/proxy_tests.rs similarity index 100% rename from nebula_terminal/src/tty/windows/proxy_tests.rs rename to pebrel_terminal/src/tty/windows/proxy_tests.rs diff --git a/nebula_terminal/src/tty/windows/test/bash_input.rs b/pebrel_terminal/src/tty/windows/test/bash_input.rs similarity index 100% rename from nebula_terminal/src/tty/windows/test/bash_input.rs rename to pebrel_terminal/src/tty/windows/test/bash_input.rs diff --git a/nebula_terminal/src/vi_mode.rs b/pebrel_terminal/src/vi_mode.rs similarity index 100% rename from nebula_terminal/src/vi_mode.rs rename to pebrel_terminal/src/vi_mode.rs diff --git a/nebula_terminal/src/zmodem.rs b/pebrel_terminal/src/zmodem.rs similarity index 100% rename from nebula_terminal/src/zmodem.rs rename to pebrel_terminal/src/zmodem.rs diff --git a/nebula_terminal/tests/connection_transport.rs b/pebrel_terminal/tests/connection_transport.rs similarity index 94% rename from nebula_terminal/tests/connection_transport.rs rename to pebrel_terminal/tests/connection_transport.rs index 17ac3489b..ec56cccd7 100644 --- a/nebula_terminal/tests/connection_transport.rs +++ b/pebrel_terminal/tests/connection_transport.rs @@ -4,9 +4,9 @@ use std::io::{Read, Write}; use std::time::{Duration, Instant}; -use nebula_terminal::event::WindowSize; -use nebula_terminal::osc_cwd::{CwdSniffer, OscEvent}; -use nebula_terminal::tty::{self, EventedReadWrite, Options, Shell}; +use pebrel_terminal::event::WindowSize; +use pebrel_terminal::osc_cwd::{CwdSniffer, OscEvent}; +use pebrel_terminal::tty::{self, EventedReadWrite, Options, Shell}; #[test] fn connection_reports_survive_native_conpty_in_execution_order() { diff --git a/nebula_terminal/tests/grid_images.rs b/pebrel_terminal/tests/grid_images.rs similarity index 94% rename from nebula_terminal/tests/grid_images.rs rename to pebrel_terminal/tests/grid_images.rs index 917057316..fe3d57fe8 100644 --- a/nebula_terminal/tests/grid_images.rs +++ b/pebrel_terminal/tests/grid_images.rs @@ -1,15 +1,15 @@ use std::sync::Arc; -use nebula_terminal::Term; -use nebula_terminal::event::EventListener; -use nebula_terminal::event_loop::StreamProcessor; -use nebula_terminal::grid::{Dimensions, Grid}; -use nebula_terminal::index::{Column, Line}; -use nebula_terminal::inline_image::{ImageCell, ImageIdentity, ImageLayout, ImagePlacement}; -use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; -use nebula_terminal::term::Config; -use nebula_terminal::term::cell::Cell; -use nebula_terminal::term::reading::ReadingError; +use pebrel_terminal::Term; +use pebrel_terminal::event::EventListener; +use pebrel_terminal::event_loop::StreamProcessor; +use pebrel_terminal::grid::{Dimensions, Grid}; +use pebrel_terminal::index::{Column, Line}; +use pebrel_terminal::inline_image::{ImageCell, ImageIdentity, ImageLayout, ImagePlacement}; +use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; +use pebrel_terminal::term::Config; +use pebrel_terminal::term::cell::Cell; +use pebrel_terminal::term::reading::ReadingError; #[derive(Clone, Copy)] struct Listener; @@ -18,9 +18,9 @@ impl EventListener for Listener { &self, shell: &str, command: &str, - ) -> Option { + ) -> Option { (shell == "pwsh:1" && command == "cat long.md").then(|| { - nebula_terminal::inline_content::CommandView { + pebrel_terminal::inline_content::CommandView { mime: "text/markdown".into(), title: command.into(), } diff --git a/nebula_terminal/tests/inline_image.rs b/pebrel_terminal/tests/inline_image.rs similarity index 96% rename from nebula_terminal/tests/inline_image.rs rename to pebrel_terminal/tests/inline_image.rs index 6f8243567..f83b24630 100644 --- a/nebula_terminal/tests/inline_image.rs +++ b/pebrel_terminal/tests/inline_image.rs @@ -1,14 +1,14 @@ use std::sync::{Arc, Mutex}; -use nebula_terminal::Term; -use nebula_terminal::event::{Event, EventListener, WindowSize}; -use nebula_terminal::event_loop::StreamProcessor; -use nebula_terminal::grid::Dimensions; -use nebula_terminal::index::{Column, Line}; -use nebula_terminal::inline_image::ImageOptions; -use nebula_terminal::render::{RenderSnapshot, SnapshotConfig}; -use nebula_terminal::term::Config; -use nebula_terminal::term::reading::ReadingPoint; +use pebrel_terminal::Term; +use pebrel_terminal::event::{Event, EventListener, WindowSize}; +use pebrel_terminal::event_loop::StreamProcessor; +use pebrel_terminal::grid::Dimensions; +use pebrel_terminal::index::{Column, Line}; +use pebrel_terminal::inline_image::ImageOptions; +use pebrel_terminal::render::{RenderSnapshot, SnapshotConfig}; +use pebrel_terminal::term::Config; +use pebrel_terminal::term::reading::ReadingPoint; #[derive(Clone, Default)] struct Listener(Arc>>); @@ -21,9 +21,9 @@ impl EventListener for Listener { &self, shell: &str, command: &str, - ) -> Option { + ) -> Option { (shell == "pwsh:1" && command == "cat long.md").then(|| { - nebula_terminal::inline_content::CommandView { + pebrel_terminal::inline_content::CommandView { mime: "text/markdown".into(), title: command.into(), } diff --git a/nebula_terminal/tests/native_clipboard.rs b/pebrel_terminal/tests/native_clipboard.rs similarity index 100% rename from nebula_terminal/tests/native_clipboard.rs rename to pebrel_terminal/tests/native_clipboard.rs diff --git a/nebula_terminal/tests/native_pointer.rs b/pebrel_terminal/tests/native_pointer.rs similarity index 100% rename from nebula_terminal/tests/native_pointer.rs rename to pebrel_terminal/tests/native_pointer.rs diff --git a/nebula_terminal/tests/osc7501.rs b/pebrel_terminal/tests/osc7501.rs similarity index 97% rename from nebula_terminal/tests/osc7501.rs rename to pebrel_terminal/tests/osc7501.rs index a86ce9570..f86b20760 100644 --- a/nebula_terminal/tests/osc7501.rs +++ b/pebrel_terminal/tests/osc7501.rs @@ -1,11 +1,11 @@ use std::sync::{Arc, Mutex}; -use nebula_terminal::Term; -use nebula_terminal::event::{Event, EventListener}; -use nebula_terminal::event_loop::StreamProcessor; -use nebula_terminal::osc_cwd::{CwdSniffer, OscEvent}; -use nebula_terminal::program_status::{FEATURE_REPLY, State}; -use nebula_terminal::term::test::TermSize; +use pebrel_terminal::Term; +use pebrel_terminal::event::{Event, EventListener}; +use pebrel_terminal::event_loop::StreamProcessor; +use pebrel_terminal::osc_cwd::{CwdSniffer, OscEvent}; +use pebrel_terminal::program_status::{FEATURE_REPLY, State}; +use pebrel_terminal::term::test::TermSize; use vte::ansi::Handler; #[derive(Clone, Default)] diff --git a/nebula_terminal/tests/pi_redraw_anchor.rs b/pebrel_terminal/tests/pi_redraw_anchor.rs similarity index 97% rename from nebula_terminal/tests/pi_redraw_anchor.rs rename to pebrel_terminal/tests/pi_redraw_anchor.rs index 2744698ab..157fac604 100644 --- a/nebula_terminal/tests/pi_redraw_anchor.rs +++ b/pebrel_terminal/tests/pi_redraw_anchor.rs @@ -1,9 +1,9 @@ -use nebula_terminal::Term; -use nebula_terminal::event::VoidListener; -use nebula_terminal::event_loop::StreamProcessor; -use nebula_terminal::grid::{Dimensions, Scroll}; -use nebula_terminal::index::{Column, Line}; -use nebula_terminal::term::{Config, test::TermSize}; +use pebrel_terminal::Term; +use pebrel_terminal::event::VoidListener; +use pebrel_terminal::event_loop::StreamProcessor; +use pebrel_terminal::grid::{Dimensions, Scroll}; +use pebrel_terminal::index::{Column, Line}; +use pebrel_terminal::term::{Config, test::TermSize}; type Terminal = Term; diff --git a/nebula_terminal/tests/ref.rs b/pebrel_terminal/tests/ref.rs similarity index 91% rename from nebula_terminal/tests/ref.rs rename to pebrel_terminal/tests/ref.rs index a3ec389d4..e68417c65 100644 --- a/nebula_terminal/tests/ref.rs +++ b/pebrel_terminal/tests/ref.rs @@ -6,13 +6,13 @@ use std::fs::{self, File}; use std::io::Read; use std::path::Path; -use nebula_terminal::event::{Event, EventListener}; -use nebula_terminal::grid::{Dimensions, Grid}; -use nebula_terminal::index::{Column, Line}; -use nebula_terminal::term::cell::Cell; -use nebula_terminal::term::test::TermSize; -use nebula_terminal::term::{Config, Term}; -use nebula_terminal::vte::ansi; +use pebrel_terminal::event::{Event, EventListener}; +use pebrel_terminal::grid::{Dimensions, Grid}; +use pebrel_terminal::index::{Column, Line}; +use pebrel_terminal::term::cell::Cell; +use pebrel_terminal::term::test::TermSize; +use pebrel_terminal::term::{Config, Term}; +use pebrel_terminal::vte::ansi; macro_rules! ref_tests { ($($name:ident)*) => { diff --git a/nebula_terminal/tests/ref/alt_reset/config.json b/pebrel_terminal/tests/ref/alt_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/alt_reset/config.json rename to pebrel_terminal/tests/ref/alt_reset/config.json diff --git a/nebula_terminal/tests/ref/alt_reset/grid.json b/pebrel_terminal/tests/ref/alt_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/alt_reset/grid.json rename to pebrel_terminal/tests/ref/alt_reset/grid.json diff --git a/nebula_terminal/tests/ref/alt_reset/nebula.recording b/pebrel_terminal/tests/ref/alt_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/alt_reset/nebula.recording rename to pebrel_terminal/tests/ref/alt_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/alt_reset/size.json b/pebrel_terminal/tests/ref/alt_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/alt_reset/size.json rename to pebrel_terminal/tests/ref/alt_reset/size.json diff --git a/nebula_terminal/tests/ref/clear_underline/config.json b/pebrel_terminal/tests/ref/clear_underline/config.json similarity index 100% rename from nebula_terminal/tests/ref/clear_underline/config.json rename to pebrel_terminal/tests/ref/clear_underline/config.json diff --git a/nebula_terminal/tests/ref/clear_underline/grid.json b/pebrel_terminal/tests/ref/clear_underline/grid.json similarity index 100% rename from nebula_terminal/tests/ref/clear_underline/grid.json rename to pebrel_terminal/tests/ref/clear_underline/grid.json diff --git a/nebula_terminal/tests/ref/clear_underline/nebula.recording b/pebrel_terminal/tests/ref/clear_underline/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/clear_underline/nebula.recording rename to pebrel_terminal/tests/ref/clear_underline/nebula.recording diff --git a/nebula_terminal/tests/ref/clear_underline/size.json b/pebrel_terminal/tests/ref/clear_underline/size.json similarity index 100% rename from nebula_terminal/tests/ref/clear_underline/size.json rename to pebrel_terminal/tests/ref/clear_underline/size.json diff --git a/nebula_terminal/tests/ref/colored_reset/config.json b/pebrel_terminal/tests/ref/colored_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/colored_reset/config.json rename to pebrel_terminal/tests/ref/colored_reset/config.json diff --git a/nebula_terminal/tests/ref/colored_reset/grid.json b/pebrel_terminal/tests/ref/colored_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/colored_reset/grid.json rename to pebrel_terminal/tests/ref/colored_reset/grid.json diff --git a/nebula_terminal/tests/ref/colored_reset/nebula.recording b/pebrel_terminal/tests/ref/colored_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/colored_reset/nebula.recording rename to pebrel_terminal/tests/ref/colored_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/colored_reset/size.json b/pebrel_terminal/tests/ref/colored_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/colored_reset/size.json rename to pebrel_terminal/tests/ref/colored_reset/size.json diff --git a/nebula_terminal/tests/ref/colored_underline/config.json b/pebrel_terminal/tests/ref/colored_underline/config.json similarity index 100% rename from nebula_terminal/tests/ref/colored_underline/config.json rename to pebrel_terminal/tests/ref/colored_underline/config.json diff --git a/nebula_terminal/tests/ref/colored_underline/grid.json b/pebrel_terminal/tests/ref/colored_underline/grid.json similarity index 100% rename from nebula_terminal/tests/ref/colored_underline/grid.json rename to pebrel_terminal/tests/ref/colored_underline/grid.json diff --git a/nebula_terminal/tests/ref/colored_underline/nebula.recording b/pebrel_terminal/tests/ref/colored_underline/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/colored_underline/nebula.recording rename to pebrel_terminal/tests/ref/colored_underline/nebula.recording diff --git a/nebula_terminal/tests/ref/colored_underline/size.json b/pebrel_terminal/tests/ref/colored_underline/size.json similarity index 100% rename from nebula_terminal/tests/ref/colored_underline/size.json rename to pebrel_terminal/tests/ref/colored_underline/size.json diff --git a/nebula_terminal/tests/ref/csi_rep/config.json b/pebrel_terminal/tests/ref/csi_rep/config.json similarity index 100% rename from nebula_terminal/tests/ref/csi_rep/config.json rename to pebrel_terminal/tests/ref/csi_rep/config.json diff --git a/nebula_terminal/tests/ref/csi_rep/grid.json b/pebrel_terminal/tests/ref/csi_rep/grid.json similarity index 100% rename from nebula_terminal/tests/ref/csi_rep/grid.json rename to pebrel_terminal/tests/ref/csi_rep/grid.json diff --git a/nebula_terminal/tests/ref/csi_rep/nebula.recording b/pebrel_terminal/tests/ref/csi_rep/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/csi_rep/nebula.recording rename to pebrel_terminal/tests/ref/csi_rep/nebula.recording diff --git a/nebula_terminal/tests/ref/csi_rep/size.json b/pebrel_terminal/tests/ref/csi_rep/size.json similarity index 100% rename from nebula_terminal/tests/ref/csi_rep/size.json rename to pebrel_terminal/tests/ref/csi_rep/size.json diff --git a/nebula_terminal/tests/ref/decaln_reset/config.json b/pebrel_terminal/tests/ref/decaln_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/decaln_reset/config.json rename to pebrel_terminal/tests/ref/decaln_reset/config.json diff --git a/nebula_terminal/tests/ref/decaln_reset/grid.json b/pebrel_terminal/tests/ref/decaln_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/decaln_reset/grid.json rename to pebrel_terminal/tests/ref/decaln_reset/grid.json diff --git a/nebula_terminal/tests/ref/decaln_reset/nebula.recording b/pebrel_terminal/tests/ref/decaln_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/decaln_reset/nebula.recording rename to pebrel_terminal/tests/ref/decaln_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/decaln_reset/size.json b/pebrel_terminal/tests/ref/decaln_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/decaln_reset/size.json rename to pebrel_terminal/tests/ref/decaln_reset/size.json diff --git a/nebula_terminal/tests/ref/deccolm_reset/config.json b/pebrel_terminal/tests/ref/deccolm_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/deccolm_reset/config.json rename to pebrel_terminal/tests/ref/deccolm_reset/config.json diff --git a/nebula_terminal/tests/ref/deccolm_reset/grid.json b/pebrel_terminal/tests/ref/deccolm_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/deccolm_reset/grid.json rename to pebrel_terminal/tests/ref/deccolm_reset/grid.json diff --git a/nebula_terminal/tests/ref/deccolm_reset/nebula.recording b/pebrel_terminal/tests/ref/deccolm_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/deccolm_reset/nebula.recording rename to pebrel_terminal/tests/ref/deccolm_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/deccolm_reset/size.json b/pebrel_terminal/tests/ref/deccolm_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/deccolm_reset/size.json rename to pebrel_terminal/tests/ref/deccolm_reset/size.json diff --git a/nebula_terminal/tests/ref/delete_chars_reset/config.json b/pebrel_terminal/tests/ref/delete_chars_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/delete_chars_reset/config.json rename to pebrel_terminal/tests/ref/delete_chars_reset/config.json diff --git a/nebula_terminal/tests/ref/delete_chars_reset/grid.json b/pebrel_terminal/tests/ref/delete_chars_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/delete_chars_reset/grid.json rename to pebrel_terminal/tests/ref/delete_chars_reset/grid.json diff --git a/nebula_terminal/tests/ref/delete_chars_reset/nebula.recording b/pebrel_terminal/tests/ref/delete_chars_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/delete_chars_reset/nebula.recording rename to pebrel_terminal/tests/ref/delete_chars_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/delete_chars_reset/size.json b/pebrel_terminal/tests/ref/delete_chars_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/delete_chars_reset/size.json rename to pebrel_terminal/tests/ref/delete_chars_reset/size.json diff --git a/nebula_terminal/tests/ref/delete_lines/config.json b/pebrel_terminal/tests/ref/delete_lines/config.json similarity index 100% rename from nebula_terminal/tests/ref/delete_lines/config.json rename to pebrel_terminal/tests/ref/delete_lines/config.json diff --git a/nebula_terminal/tests/ref/delete_lines/grid.json b/pebrel_terminal/tests/ref/delete_lines/grid.json similarity index 100% rename from nebula_terminal/tests/ref/delete_lines/grid.json rename to pebrel_terminal/tests/ref/delete_lines/grid.json diff --git a/nebula_terminal/tests/ref/delete_lines/nebula.recording b/pebrel_terminal/tests/ref/delete_lines/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/delete_lines/nebula.recording rename to pebrel_terminal/tests/ref/delete_lines/nebula.recording diff --git a/nebula_terminal/tests/ref/delete_lines/size.json b/pebrel_terminal/tests/ref/delete_lines/size.json similarity index 100% rename from nebula_terminal/tests/ref/delete_lines/size.json rename to pebrel_terminal/tests/ref/delete_lines/size.json diff --git a/nebula_terminal/tests/ref/erase_chars_reset/config.json b/pebrel_terminal/tests/ref/erase_chars_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/erase_chars_reset/config.json rename to pebrel_terminal/tests/ref/erase_chars_reset/config.json diff --git a/nebula_terminal/tests/ref/erase_chars_reset/grid.json b/pebrel_terminal/tests/ref/erase_chars_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/erase_chars_reset/grid.json rename to pebrel_terminal/tests/ref/erase_chars_reset/grid.json diff --git a/nebula_terminal/tests/ref/erase_chars_reset/nebula.recording b/pebrel_terminal/tests/ref/erase_chars_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/erase_chars_reset/nebula.recording rename to pebrel_terminal/tests/ref/erase_chars_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/erase_chars_reset/size.json b/pebrel_terminal/tests/ref/erase_chars_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/erase_chars_reset/size.json rename to pebrel_terminal/tests/ref/erase_chars_reset/size.json diff --git a/nebula_terminal/tests/ref/erase_in_line/config.json b/pebrel_terminal/tests/ref/erase_in_line/config.json similarity index 100% rename from nebula_terminal/tests/ref/erase_in_line/config.json rename to pebrel_terminal/tests/ref/erase_in_line/config.json diff --git a/nebula_terminal/tests/ref/erase_in_line/grid.json b/pebrel_terminal/tests/ref/erase_in_line/grid.json similarity index 100% rename from nebula_terminal/tests/ref/erase_in_line/grid.json rename to pebrel_terminal/tests/ref/erase_in_line/grid.json diff --git a/nebula_terminal/tests/ref/erase_in_line/nebula.recording b/pebrel_terminal/tests/ref/erase_in_line/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/erase_in_line/nebula.recording rename to pebrel_terminal/tests/ref/erase_in_line/nebula.recording diff --git a/nebula_terminal/tests/ref/erase_in_line/size.json b/pebrel_terminal/tests/ref/erase_in_line/size.json similarity index 100% rename from nebula_terminal/tests/ref/erase_in_line/size.json rename to pebrel_terminal/tests/ref/erase_in_line/size.json diff --git a/nebula_terminal/tests/ref/fish_cc/config.json b/pebrel_terminal/tests/ref/fish_cc/config.json similarity index 100% rename from nebula_terminal/tests/ref/fish_cc/config.json rename to pebrel_terminal/tests/ref/fish_cc/config.json diff --git a/nebula_terminal/tests/ref/fish_cc/grid.json b/pebrel_terminal/tests/ref/fish_cc/grid.json similarity index 100% rename from nebula_terminal/tests/ref/fish_cc/grid.json rename to pebrel_terminal/tests/ref/fish_cc/grid.json diff --git a/nebula_terminal/tests/ref/fish_cc/nebula.recording b/pebrel_terminal/tests/ref/fish_cc/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/fish_cc/nebula.recording rename to pebrel_terminal/tests/ref/fish_cc/nebula.recording diff --git a/nebula_terminal/tests/ref/fish_cc/size.json b/pebrel_terminal/tests/ref/fish_cc/size.json similarity index 100% rename from nebula_terminal/tests/ref/fish_cc/size.json rename to pebrel_terminal/tests/ref/fish_cc/size.json diff --git a/nebula_terminal/tests/ref/grid_reset/config.json b/pebrel_terminal/tests/ref/grid_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/grid_reset/config.json rename to pebrel_terminal/tests/ref/grid_reset/config.json diff --git a/nebula_terminal/tests/ref/grid_reset/grid.json b/pebrel_terminal/tests/ref/grid_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/grid_reset/grid.json rename to pebrel_terminal/tests/ref/grid_reset/grid.json diff --git a/nebula_terminal/tests/ref/grid_reset/nebula.recording b/pebrel_terminal/tests/ref/grid_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/grid_reset/nebula.recording rename to pebrel_terminal/tests/ref/grid_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/grid_reset/size.json b/pebrel_terminal/tests/ref/grid_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/grid_reset/size.json rename to pebrel_terminal/tests/ref/grid_reset/size.json diff --git a/nebula_terminal/tests/ref/history/config.json b/pebrel_terminal/tests/ref/history/config.json similarity index 100% rename from nebula_terminal/tests/ref/history/config.json rename to pebrel_terminal/tests/ref/history/config.json diff --git a/nebula_terminal/tests/ref/history/grid.json b/pebrel_terminal/tests/ref/history/grid.json similarity index 100% rename from nebula_terminal/tests/ref/history/grid.json rename to pebrel_terminal/tests/ref/history/grid.json diff --git a/nebula_terminal/tests/ref/history/nebula.recording b/pebrel_terminal/tests/ref/history/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/history/nebula.recording rename to pebrel_terminal/tests/ref/history/nebula.recording diff --git a/nebula_terminal/tests/ref/history/size.json b/pebrel_terminal/tests/ref/history/size.json similarity index 100% rename from nebula_terminal/tests/ref/history/size.json rename to pebrel_terminal/tests/ref/history/size.json diff --git a/nebula_terminal/tests/ref/hyperlinks/config.json b/pebrel_terminal/tests/ref/hyperlinks/config.json similarity index 100% rename from nebula_terminal/tests/ref/hyperlinks/config.json rename to pebrel_terminal/tests/ref/hyperlinks/config.json diff --git a/nebula_terminal/tests/ref/hyperlinks/grid.json b/pebrel_terminal/tests/ref/hyperlinks/grid.json similarity index 100% rename from nebula_terminal/tests/ref/hyperlinks/grid.json rename to pebrel_terminal/tests/ref/hyperlinks/grid.json diff --git a/nebula_terminal/tests/ref/hyperlinks/nebula.recording b/pebrel_terminal/tests/ref/hyperlinks/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/hyperlinks/nebula.recording rename to pebrel_terminal/tests/ref/hyperlinks/nebula.recording diff --git a/nebula_terminal/tests/ref/hyperlinks/size.json b/pebrel_terminal/tests/ref/hyperlinks/size.json similarity index 100% rename from nebula_terminal/tests/ref/hyperlinks/size.json rename to pebrel_terminal/tests/ref/hyperlinks/size.json diff --git a/nebula_terminal/tests/ref/indexed_256_colors/config.json b/pebrel_terminal/tests/ref/indexed_256_colors/config.json similarity index 100% rename from nebula_terminal/tests/ref/indexed_256_colors/config.json rename to pebrel_terminal/tests/ref/indexed_256_colors/config.json diff --git a/nebula_terminal/tests/ref/indexed_256_colors/grid.json b/pebrel_terminal/tests/ref/indexed_256_colors/grid.json similarity index 100% rename from nebula_terminal/tests/ref/indexed_256_colors/grid.json rename to pebrel_terminal/tests/ref/indexed_256_colors/grid.json diff --git a/nebula_terminal/tests/ref/indexed_256_colors/nebula.recording b/pebrel_terminal/tests/ref/indexed_256_colors/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/indexed_256_colors/nebula.recording rename to pebrel_terminal/tests/ref/indexed_256_colors/nebula.recording diff --git a/nebula_terminal/tests/ref/indexed_256_colors/size.json b/pebrel_terminal/tests/ref/indexed_256_colors/size.json similarity index 100% rename from nebula_terminal/tests/ref/indexed_256_colors/size.json rename to pebrel_terminal/tests/ref/indexed_256_colors/size.json diff --git a/nebula_terminal/tests/ref/insert_blank_reset/config.json b/pebrel_terminal/tests/ref/insert_blank_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/insert_blank_reset/config.json rename to pebrel_terminal/tests/ref/insert_blank_reset/config.json diff --git a/nebula_terminal/tests/ref/insert_blank_reset/grid.json b/pebrel_terminal/tests/ref/insert_blank_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/insert_blank_reset/grid.json rename to pebrel_terminal/tests/ref/insert_blank_reset/grid.json diff --git a/nebula_terminal/tests/ref/insert_blank_reset/nebula.recording b/pebrel_terminal/tests/ref/insert_blank_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/insert_blank_reset/nebula.recording rename to pebrel_terminal/tests/ref/insert_blank_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/insert_blank_reset/size.json b/pebrel_terminal/tests/ref/insert_blank_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/insert_blank_reset/size.json rename to pebrel_terminal/tests/ref/insert_blank_reset/size.json diff --git a/nebula_terminal/tests/ref/ll/config.json b/pebrel_terminal/tests/ref/ll/config.json similarity index 100% rename from nebula_terminal/tests/ref/ll/config.json rename to pebrel_terminal/tests/ref/ll/config.json diff --git a/nebula_terminal/tests/ref/ll/grid.json b/pebrel_terminal/tests/ref/ll/grid.json similarity index 100% rename from nebula_terminal/tests/ref/ll/grid.json rename to pebrel_terminal/tests/ref/ll/grid.json diff --git a/nebula_terminal/tests/ref/ll/nebula.recording b/pebrel_terminal/tests/ref/ll/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/ll/nebula.recording rename to pebrel_terminal/tests/ref/ll/nebula.recording diff --git a/nebula_terminal/tests/ref/ll/size.json b/pebrel_terminal/tests/ref/ll/size.json similarity index 100% rename from nebula_terminal/tests/ref/ll/size.json rename to pebrel_terminal/tests/ref/ll/size.json diff --git a/nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/config.json b/pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/config.json similarity index 100% rename from nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/config.json rename to pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/config.json diff --git a/nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json b/pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json similarity index 100% rename from nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json rename to pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json diff --git a/nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/nebula.recording b/pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/nebula.recording rename to pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/nebula.recording diff --git a/nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/size.json b/pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/size.json similarity index 100% rename from nebula_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/size.json rename to pebrel_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/size.json diff --git a/nebula_terminal/tests/ref/origin_goto/config.json b/pebrel_terminal/tests/ref/origin_goto/config.json similarity index 100% rename from nebula_terminal/tests/ref/origin_goto/config.json rename to pebrel_terminal/tests/ref/origin_goto/config.json diff --git a/nebula_terminal/tests/ref/origin_goto/grid.json b/pebrel_terminal/tests/ref/origin_goto/grid.json similarity index 100% rename from nebula_terminal/tests/ref/origin_goto/grid.json rename to pebrel_terminal/tests/ref/origin_goto/grid.json diff --git a/nebula_terminal/tests/ref/origin_goto/nebula.recording b/pebrel_terminal/tests/ref/origin_goto/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/origin_goto/nebula.recording rename to pebrel_terminal/tests/ref/origin_goto/nebula.recording diff --git a/nebula_terminal/tests/ref/origin_goto/size.json b/pebrel_terminal/tests/ref/origin_goto/size.json similarity index 100% rename from nebula_terminal/tests/ref/origin_goto/size.json rename to pebrel_terminal/tests/ref/origin_goto/size.json diff --git a/nebula_terminal/tests/ref/region_scroll_down/config.json b/pebrel_terminal/tests/ref/region_scroll_down/config.json similarity index 100% rename from nebula_terminal/tests/ref/region_scroll_down/config.json rename to pebrel_terminal/tests/ref/region_scroll_down/config.json diff --git a/nebula_terminal/tests/ref/region_scroll_down/grid.json b/pebrel_terminal/tests/ref/region_scroll_down/grid.json similarity index 100% rename from nebula_terminal/tests/ref/region_scroll_down/grid.json rename to pebrel_terminal/tests/ref/region_scroll_down/grid.json diff --git a/nebula_terminal/tests/ref/region_scroll_down/nebula.recording b/pebrel_terminal/tests/ref/region_scroll_down/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/region_scroll_down/nebula.recording rename to pebrel_terminal/tests/ref/region_scroll_down/nebula.recording diff --git a/nebula_terminal/tests/ref/region_scroll_down/size.json b/pebrel_terminal/tests/ref/region_scroll_down/size.json similarity index 100% rename from nebula_terminal/tests/ref/region_scroll_down/size.json rename to pebrel_terminal/tests/ref/region_scroll_down/size.json diff --git a/nebula_terminal/tests/ref/row_reset/config.json b/pebrel_terminal/tests/ref/row_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/row_reset/config.json rename to pebrel_terminal/tests/ref/row_reset/config.json diff --git a/nebula_terminal/tests/ref/row_reset/grid.json b/pebrel_terminal/tests/ref/row_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/row_reset/grid.json rename to pebrel_terminal/tests/ref/row_reset/grid.json diff --git a/nebula_terminal/tests/ref/row_reset/nebula.recording b/pebrel_terminal/tests/ref/row_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/row_reset/nebula.recording rename to pebrel_terminal/tests/ref/row_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/row_reset/size.json b/pebrel_terminal/tests/ref/row_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/row_reset/size.json rename to pebrel_terminal/tests/ref/row_reset/size.json diff --git a/nebula_terminal/tests/ref/saved_cursor/config.json b/pebrel_terminal/tests/ref/saved_cursor/config.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor/config.json rename to pebrel_terminal/tests/ref/saved_cursor/config.json diff --git a/nebula_terminal/tests/ref/saved_cursor/grid.json b/pebrel_terminal/tests/ref/saved_cursor/grid.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor/grid.json rename to pebrel_terminal/tests/ref/saved_cursor/grid.json diff --git a/nebula_terminal/tests/ref/saved_cursor/nebula.recording b/pebrel_terminal/tests/ref/saved_cursor/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor/nebula.recording rename to pebrel_terminal/tests/ref/saved_cursor/nebula.recording diff --git a/nebula_terminal/tests/ref/saved_cursor/size.json b/pebrel_terminal/tests/ref/saved_cursor/size.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor/size.json rename to pebrel_terminal/tests/ref/saved_cursor/size.json diff --git a/nebula_terminal/tests/ref/saved_cursor_alt/config.json b/pebrel_terminal/tests/ref/saved_cursor_alt/config.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor_alt/config.json rename to pebrel_terminal/tests/ref/saved_cursor_alt/config.json diff --git a/nebula_terminal/tests/ref/saved_cursor_alt/grid.json b/pebrel_terminal/tests/ref/saved_cursor_alt/grid.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor_alt/grid.json rename to pebrel_terminal/tests/ref/saved_cursor_alt/grid.json diff --git a/nebula_terminal/tests/ref/saved_cursor_alt/nebula.recording b/pebrel_terminal/tests/ref/saved_cursor_alt/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor_alt/nebula.recording rename to pebrel_terminal/tests/ref/saved_cursor_alt/nebula.recording diff --git a/nebula_terminal/tests/ref/saved_cursor_alt/size.json b/pebrel_terminal/tests/ref/saved_cursor_alt/size.json similarity index 100% rename from nebula_terminal/tests/ref/saved_cursor_alt/size.json rename to pebrel_terminal/tests/ref/saved_cursor_alt/size.json diff --git a/nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/config.json b/pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/config.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/config.json rename to pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/config.json diff --git a/nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/grid.json b/pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/grid.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/grid.json rename to pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/grid.json diff --git a/nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/nebula.recording b/pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/nebula.recording rename to pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/nebula.recording diff --git a/nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/size.json b/pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/size.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_in_region_up_preserves_history/size.json rename to pebrel_terminal/tests/ref/scroll_in_region_up_preserves_history/size.json diff --git a/nebula_terminal/tests/ref/scroll_up_reset/config.json b/pebrel_terminal/tests/ref/scroll_up_reset/config.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_up_reset/config.json rename to pebrel_terminal/tests/ref/scroll_up_reset/config.json diff --git a/nebula_terminal/tests/ref/scroll_up_reset/grid.json b/pebrel_terminal/tests/ref/scroll_up_reset/grid.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_up_reset/grid.json rename to pebrel_terminal/tests/ref/scroll_up_reset/grid.json diff --git a/nebula_terminal/tests/ref/scroll_up_reset/nebula.recording b/pebrel_terminal/tests/ref/scroll_up_reset/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/scroll_up_reset/nebula.recording rename to pebrel_terminal/tests/ref/scroll_up_reset/nebula.recording diff --git a/nebula_terminal/tests/ref/scroll_up_reset/size.json b/pebrel_terminal/tests/ref/scroll_up_reset/size.json similarity index 100% rename from nebula_terminal/tests/ref/scroll_up_reset/size.json rename to pebrel_terminal/tests/ref/scroll_up_reset/size.json diff --git a/nebula_terminal/tests/ref/selective_erasure/config.json b/pebrel_terminal/tests/ref/selective_erasure/config.json similarity index 100% rename from nebula_terminal/tests/ref/selective_erasure/config.json rename to pebrel_terminal/tests/ref/selective_erasure/config.json diff --git a/nebula_terminal/tests/ref/selective_erasure/grid.json b/pebrel_terminal/tests/ref/selective_erasure/grid.json similarity index 100% rename from nebula_terminal/tests/ref/selective_erasure/grid.json rename to pebrel_terminal/tests/ref/selective_erasure/grid.json diff --git a/nebula_terminal/tests/ref/selective_erasure/nebula.recording b/pebrel_terminal/tests/ref/selective_erasure/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/selective_erasure/nebula.recording rename to pebrel_terminal/tests/ref/selective_erasure/nebula.recording diff --git a/nebula_terminal/tests/ref/selective_erasure/size.json b/pebrel_terminal/tests/ref/selective_erasure/size.json similarity index 100% rename from nebula_terminal/tests/ref/selective_erasure/size.json rename to pebrel_terminal/tests/ref/selective_erasure/size.json diff --git a/nebula_terminal/tests/ref/sgr/config.json b/pebrel_terminal/tests/ref/sgr/config.json similarity index 100% rename from nebula_terminal/tests/ref/sgr/config.json rename to pebrel_terminal/tests/ref/sgr/config.json diff --git a/nebula_terminal/tests/ref/sgr/grid.json b/pebrel_terminal/tests/ref/sgr/grid.json similarity index 100% rename from nebula_terminal/tests/ref/sgr/grid.json rename to pebrel_terminal/tests/ref/sgr/grid.json diff --git a/nebula_terminal/tests/ref/sgr/nebula.recording b/pebrel_terminal/tests/ref/sgr/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/sgr/nebula.recording rename to pebrel_terminal/tests/ref/sgr/nebula.recording diff --git a/nebula_terminal/tests/ref/sgr/size.json b/pebrel_terminal/tests/ref/sgr/size.json similarity index 100% rename from nebula_terminal/tests/ref/sgr/size.json rename to pebrel_terminal/tests/ref/sgr/size.json diff --git a/nebula_terminal/tests/ref/tab_rendering/config.json b/pebrel_terminal/tests/ref/tab_rendering/config.json similarity index 100% rename from nebula_terminal/tests/ref/tab_rendering/config.json rename to pebrel_terminal/tests/ref/tab_rendering/config.json diff --git a/nebula_terminal/tests/ref/tab_rendering/grid.json b/pebrel_terminal/tests/ref/tab_rendering/grid.json similarity index 100% rename from nebula_terminal/tests/ref/tab_rendering/grid.json rename to pebrel_terminal/tests/ref/tab_rendering/grid.json diff --git a/nebula_terminal/tests/ref/tab_rendering/nebula.recording b/pebrel_terminal/tests/ref/tab_rendering/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/tab_rendering/nebula.recording rename to pebrel_terminal/tests/ref/tab_rendering/nebula.recording diff --git a/nebula_terminal/tests/ref/tab_rendering/size.json b/pebrel_terminal/tests/ref/tab_rendering/size.json similarity index 100% rename from nebula_terminal/tests/ref/tab_rendering/size.json rename to pebrel_terminal/tests/ref/tab_rendering/size.json diff --git a/nebula_terminal/tests/ref/tmux_git_log/config.json b/pebrel_terminal/tests/ref/tmux_git_log/config.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_git_log/config.json rename to pebrel_terminal/tests/ref/tmux_git_log/config.json diff --git a/nebula_terminal/tests/ref/tmux_git_log/grid.json b/pebrel_terminal/tests/ref/tmux_git_log/grid.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_git_log/grid.json rename to pebrel_terminal/tests/ref/tmux_git_log/grid.json diff --git a/nebula_terminal/tests/ref/tmux_git_log/nebula.recording b/pebrel_terminal/tests/ref/tmux_git_log/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/tmux_git_log/nebula.recording rename to pebrel_terminal/tests/ref/tmux_git_log/nebula.recording diff --git a/nebula_terminal/tests/ref/tmux_git_log/size.json b/pebrel_terminal/tests/ref/tmux_git_log/size.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_git_log/size.json rename to pebrel_terminal/tests/ref/tmux_git_log/size.json diff --git a/nebula_terminal/tests/ref/tmux_htop/config.json b/pebrel_terminal/tests/ref/tmux_htop/config.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_htop/config.json rename to pebrel_terminal/tests/ref/tmux_htop/config.json diff --git a/nebula_terminal/tests/ref/tmux_htop/grid.json b/pebrel_terminal/tests/ref/tmux_htop/grid.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_htop/grid.json rename to pebrel_terminal/tests/ref/tmux_htop/grid.json diff --git a/nebula_terminal/tests/ref/tmux_htop/nebula.recording b/pebrel_terminal/tests/ref/tmux_htop/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/tmux_htop/nebula.recording rename to pebrel_terminal/tests/ref/tmux_htop/nebula.recording diff --git a/nebula_terminal/tests/ref/tmux_htop/size.json b/pebrel_terminal/tests/ref/tmux_htop/size.json similarity index 100% rename from nebula_terminal/tests/ref/tmux_htop/size.json rename to pebrel_terminal/tests/ref/tmux_htop/size.json diff --git a/nebula_terminal/tests/ref/underline/config.json b/pebrel_terminal/tests/ref/underline/config.json similarity index 100% rename from nebula_terminal/tests/ref/underline/config.json rename to pebrel_terminal/tests/ref/underline/config.json diff --git a/nebula_terminal/tests/ref/underline/grid.json b/pebrel_terminal/tests/ref/underline/grid.json similarity index 100% rename from nebula_terminal/tests/ref/underline/grid.json rename to pebrel_terminal/tests/ref/underline/grid.json diff --git a/nebula_terminal/tests/ref/underline/nebula.recording b/pebrel_terminal/tests/ref/underline/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/underline/nebula.recording rename to pebrel_terminal/tests/ref/underline/nebula.recording diff --git a/nebula_terminal/tests/ref/underline/size.json b/pebrel_terminal/tests/ref/underline/size.json similarity index 100% rename from nebula_terminal/tests/ref/underline/size.json rename to pebrel_terminal/tests/ref/underline/size.json diff --git a/nebula_terminal/tests/ref/vim_24bitcolors_bce/config.json b/pebrel_terminal/tests/ref/vim_24bitcolors_bce/config.json similarity index 100% rename from nebula_terminal/tests/ref/vim_24bitcolors_bce/config.json rename to pebrel_terminal/tests/ref/vim_24bitcolors_bce/config.json diff --git a/nebula_terminal/tests/ref/vim_24bitcolors_bce/grid.json b/pebrel_terminal/tests/ref/vim_24bitcolors_bce/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vim_24bitcolors_bce/grid.json rename to pebrel_terminal/tests/ref/vim_24bitcolors_bce/grid.json diff --git a/nebula_terminal/tests/ref/vim_24bitcolors_bce/nebula.recording b/pebrel_terminal/tests/ref/vim_24bitcolors_bce/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vim_24bitcolors_bce/nebula.recording rename to pebrel_terminal/tests/ref/vim_24bitcolors_bce/nebula.recording diff --git a/nebula_terminal/tests/ref/vim_24bitcolors_bce/size.json b/pebrel_terminal/tests/ref/vim_24bitcolors_bce/size.json similarity index 100% rename from nebula_terminal/tests/ref/vim_24bitcolors_bce/size.json rename to pebrel_terminal/tests/ref/vim_24bitcolors_bce/size.json diff --git a/nebula_terminal/tests/ref/vim_large_window_scroll/config.json b/pebrel_terminal/tests/ref/vim_large_window_scroll/config.json similarity index 100% rename from nebula_terminal/tests/ref/vim_large_window_scroll/config.json rename to pebrel_terminal/tests/ref/vim_large_window_scroll/config.json diff --git a/nebula_terminal/tests/ref/vim_large_window_scroll/grid.json b/pebrel_terminal/tests/ref/vim_large_window_scroll/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vim_large_window_scroll/grid.json rename to pebrel_terminal/tests/ref/vim_large_window_scroll/grid.json diff --git a/nebula_terminal/tests/ref/vim_large_window_scroll/nebula.recording b/pebrel_terminal/tests/ref/vim_large_window_scroll/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vim_large_window_scroll/nebula.recording rename to pebrel_terminal/tests/ref/vim_large_window_scroll/nebula.recording diff --git a/nebula_terminal/tests/ref/vim_large_window_scroll/size.json b/pebrel_terminal/tests/ref/vim_large_window_scroll/size.json similarity index 100% rename from nebula_terminal/tests/ref/vim_large_window_scroll/size.json rename to pebrel_terminal/tests/ref/vim_large_window_scroll/size.json diff --git a/nebula_terminal/tests/ref/vim_simple_edit/config.json b/pebrel_terminal/tests/ref/vim_simple_edit/config.json similarity index 100% rename from nebula_terminal/tests/ref/vim_simple_edit/config.json rename to pebrel_terminal/tests/ref/vim_simple_edit/config.json diff --git a/nebula_terminal/tests/ref/vim_simple_edit/grid.json b/pebrel_terminal/tests/ref/vim_simple_edit/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vim_simple_edit/grid.json rename to pebrel_terminal/tests/ref/vim_simple_edit/grid.json diff --git a/nebula_terminal/tests/ref/vim_simple_edit/nebula.recording b/pebrel_terminal/tests/ref/vim_simple_edit/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vim_simple_edit/nebula.recording rename to pebrel_terminal/tests/ref/vim_simple_edit/nebula.recording diff --git a/nebula_terminal/tests/ref/vim_simple_edit/size.json b/pebrel_terminal/tests/ref/vim_simple_edit/size.json similarity index 100% rename from nebula_terminal/tests/ref/vim_simple_edit/size.json rename to pebrel_terminal/tests/ref/vim_simple_edit/size.json diff --git a/nebula_terminal/tests/ref/vttest_cursor_movement_1/config.json b/pebrel_terminal/tests/ref/vttest_cursor_movement_1/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_cursor_movement_1/config.json rename to pebrel_terminal/tests/ref/vttest_cursor_movement_1/config.json diff --git a/nebula_terminal/tests/ref/vttest_cursor_movement_1/grid.json b/pebrel_terminal/tests/ref/vttest_cursor_movement_1/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_cursor_movement_1/grid.json rename to pebrel_terminal/tests/ref/vttest_cursor_movement_1/grid.json diff --git a/nebula_terminal/tests/ref/vttest_cursor_movement_1/nebula.recording b/pebrel_terminal/tests/ref/vttest_cursor_movement_1/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_cursor_movement_1/nebula.recording rename to pebrel_terminal/tests/ref/vttest_cursor_movement_1/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_cursor_movement_1/size.json b/pebrel_terminal/tests/ref/vttest_cursor_movement_1/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_cursor_movement_1/size.json rename to pebrel_terminal/tests/ref/vttest_cursor_movement_1/size.json diff --git a/nebula_terminal/tests/ref/vttest_insert/config.json b/pebrel_terminal/tests/ref/vttest_insert/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_insert/config.json rename to pebrel_terminal/tests/ref/vttest_insert/config.json diff --git a/nebula_terminal/tests/ref/vttest_insert/grid.json b/pebrel_terminal/tests/ref/vttest_insert/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_insert/grid.json rename to pebrel_terminal/tests/ref/vttest_insert/grid.json diff --git a/nebula_terminal/tests/ref/vttest_insert/nebula.recording b/pebrel_terminal/tests/ref/vttest_insert/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_insert/nebula.recording rename to pebrel_terminal/tests/ref/vttest_insert/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_insert/size.json b/pebrel_terminal/tests/ref/vttest_insert/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_insert/size.json rename to pebrel_terminal/tests/ref/vttest_insert/size.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_1/config.json b/pebrel_terminal/tests/ref/vttest_origin_mode_1/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_1/config.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_1/config.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_1/grid.json b/pebrel_terminal/tests/ref/vttest_origin_mode_1/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_1/grid.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_1/grid.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_1/nebula.recording b/pebrel_terminal/tests/ref/vttest_origin_mode_1/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_1/nebula.recording rename to pebrel_terminal/tests/ref/vttest_origin_mode_1/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_1/size.json b/pebrel_terminal/tests/ref/vttest_origin_mode_1/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_1/size.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_1/size.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_2/config.json b/pebrel_terminal/tests/ref/vttest_origin_mode_2/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_2/config.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_2/config.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_2/grid.json b/pebrel_terminal/tests/ref/vttest_origin_mode_2/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_2/grid.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_2/grid.json diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_2/nebula.recording b/pebrel_terminal/tests/ref/vttest_origin_mode_2/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_2/nebula.recording rename to pebrel_terminal/tests/ref/vttest_origin_mode_2/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_origin_mode_2/size.json b/pebrel_terminal/tests/ref/vttest_origin_mode_2/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_origin_mode_2/size.json rename to pebrel_terminal/tests/ref/vttest_origin_mode_2/size.json diff --git a/nebula_terminal/tests/ref/vttest_scroll/config.json b/pebrel_terminal/tests/ref/vttest_scroll/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_scroll/config.json rename to pebrel_terminal/tests/ref/vttest_scroll/config.json diff --git a/nebula_terminal/tests/ref/vttest_scroll/grid.json b/pebrel_terminal/tests/ref/vttest_scroll/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_scroll/grid.json rename to pebrel_terminal/tests/ref/vttest_scroll/grid.json diff --git a/nebula_terminal/tests/ref/vttest_scroll/nebula.recording b/pebrel_terminal/tests/ref/vttest_scroll/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_scroll/nebula.recording rename to pebrel_terminal/tests/ref/vttest_scroll/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_scroll/size.json b/pebrel_terminal/tests/ref/vttest_scroll/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_scroll/size.json rename to pebrel_terminal/tests/ref/vttest_scroll/size.json diff --git a/nebula_terminal/tests/ref/vttest_tab_clear_set/config.json b/pebrel_terminal/tests/ref/vttest_tab_clear_set/config.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_tab_clear_set/config.json rename to pebrel_terminal/tests/ref/vttest_tab_clear_set/config.json diff --git a/nebula_terminal/tests/ref/vttest_tab_clear_set/grid.json b/pebrel_terminal/tests/ref/vttest_tab_clear_set/grid.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_tab_clear_set/grid.json rename to pebrel_terminal/tests/ref/vttest_tab_clear_set/grid.json diff --git a/nebula_terminal/tests/ref/vttest_tab_clear_set/nebula.recording b/pebrel_terminal/tests/ref/vttest_tab_clear_set/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/vttest_tab_clear_set/nebula.recording rename to pebrel_terminal/tests/ref/vttest_tab_clear_set/nebula.recording diff --git a/nebula_terminal/tests/ref/vttest_tab_clear_set/size.json b/pebrel_terminal/tests/ref/vttest_tab_clear_set/size.json similarity index 100% rename from nebula_terminal/tests/ref/vttest_tab_clear_set/size.json rename to pebrel_terminal/tests/ref/vttest_tab_clear_set/size.json diff --git a/nebula_terminal/tests/ref/wrapline_alt_toggle/config.json b/pebrel_terminal/tests/ref/wrapline_alt_toggle/config.json similarity index 100% rename from nebula_terminal/tests/ref/wrapline_alt_toggle/config.json rename to pebrel_terminal/tests/ref/wrapline_alt_toggle/config.json diff --git a/nebula_terminal/tests/ref/wrapline_alt_toggle/grid.json b/pebrel_terminal/tests/ref/wrapline_alt_toggle/grid.json similarity index 100% rename from nebula_terminal/tests/ref/wrapline_alt_toggle/grid.json rename to pebrel_terminal/tests/ref/wrapline_alt_toggle/grid.json diff --git a/nebula_terminal/tests/ref/wrapline_alt_toggle/nebula.recording b/pebrel_terminal/tests/ref/wrapline_alt_toggle/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/wrapline_alt_toggle/nebula.recording rename to pebrel_terminal/tests/ref/wrapline_alt_toggle/nebula.recording diff --git a/nebula_terminal/tests/ref/wrapline_alt_toggle/size.json b/pebrel_terminal/tests/ref/wrapline_alt_toggle/size.json similarity index 100% rename from nebula_terminal/tests/ref/wrapline_alt_toggle/size.json rename to pebrel_terminal/tests/ref/wrapline_alt_toggle/size.json diff --git a/nebula_terminal/tests/ref/zerowidth/config.json b/pebrel_terminal/tests/ref/zerowidth/config.json similarity index 100% rename from nebula_terminal/tests/ref/zerowidth/config.json rename to pebrel_terminal/tests/ref/zerowidth/config.json diff --git a/nebula_terminal/tests/ref/zerowidth/grid.json b/pebrel_terminal/tests/ref/zerowidth/grid.json similarity index 100% rename from nebula_terminal/tests/ref/zerowidth/grid.json rename to pebrel_terminal/tests/ref/zerowidth/grid.json diff --git a/nebula_terminal/tests/ref/zerowidth/nebula.recording b/pebrel_terminal/tests/ref/zerowidth/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/zerowidth/nebula.recording rename to pebrel_terminal/tests/ref/zerowidth/nebula.recording diff --git a/nebula_terminal/tests/ref/zerowidth/size.json b/pebrel_terminal/tests/ref/zerowidth/size.json similarity index 100% rename from nebula_terminal/tests/ref/zerowidth/size.json rename to pebrel_terminal/tests/ref/zerowidth/size.json diff --git a/nebula_terminal/tests/ref/zsh_bck_i_search/config.json b/pebrel_terminal/tests/ref/zsh_bck_i_search/config.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_bck_i_search/config.json rename to pebrel_terminal/tests/ref/zsh_bck_i_search/config.json diff --git a/nebula_terminal/tests/ref/zsh_bck_i_search/grid.json b/pebrel_terminal/tests/ref/zsh_bck_i_search/grid.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_bck_i_search/grid.json rename to pebrel_terminal/tests/ref/zsh_bck_i_search/grid.json diff --git a/nebula_terminal/tests/ref/zsh_bck_i_search/nebula.recording b/pebrel_terminal/tests/ref/zsh_bck_i_search/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/zsh_bck_i_search/nebula.recording rename to pebrel_terminal/tests/ref/zsh_bck_i_search/nebula.recording diff --git a/nebula_terminal/tests/ref/zsh_bck_i_search/size.json b/pebrel_terminal/tests/ref/zsh_bck_i_search/size.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_bck_i_search/size.json rename to pebrel_terminal/tests/ref/zsh_bck_i_search/size.json diff --git a/nebula_terminal/tests/ref/zsh_tab_completion/config.json b/pebrel_terminal/tests/ref/zsh_tab_completion/config.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_tab_completion/config.json rename to pebrel_terminal/tests/ref/zsh_tab_completion/config.json diff --git a/nebula_terminal/tests/ref/zsh_tab_completion/grid.json b/pebrel_terminal/tests/ref/zsh_tab_completion/grid.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_tab_completion/grid.json rename to pebrel_terminal/tests/ref/zsh_tab_completion/grid.json diff --git a/nebula_terminal/tests/ref/zsh_tab_completion/nebula.recording b/pebrel_terminal/tests/ref/zsh_tab_completion/nebula.recording similarity index 100% rename from nebula_terminal/tests/ref/zsh_tab_completion/nebula.recording rename to pebrel_terminal/tests/ref/zsh_tab_completion/nebula.recording diff --git a/nebula_terminal/tests/ref/zsh_tab_completion/size.json b/pebrel_terminal/tests/ref/zsh_tab_completion/size.json similarity index 100% rename from nebula_terminal/tests/ref/zsh_tab_completion/size.json rename to pebrel_terminal/tests/ref/zsh_tab_completion/size.json diff --git a/nebula_terminal/tests/windows_pty_lifecycle.rs b/pebrel_terminal/tests/windows_pty_lifecycle.rs similarity index 98% rename from nebula_terminal/tests/windows_pty_lifecycle.rs rename to pebrel_terminal/tests/windows_pty_lifecycle.rs index 8af086c4b..20e8c349c 100644 --- a/nebula_terminal/tests/windows_pty_lifecycle.rs +++ b/pebrel_terminal/tests/windows_pty_lifecycle.rs @@ -6,8 +6,8 @@ use std::thread; use std::time::{Duration, Instant, SystemTime}; use std::{env, fs, process::Command}; -use nebula_terminal::event::WindowSize; -use nebula_terminal::tty::{self, Options, Shell}; +use pebrel_terminal::event::WindowSize; +use pebrel_terminal::tty::{self, Options, Shell}; use windows_sys::Win32::System::Threading::{GetCurrentProcess, GetProcessHandleCount}; const SIZE: WindowSize = WindowSize { num_lines: 24, num_cols: 80, cell_width: 8, cell_height: 16 }; diff --git a/scripts/build-installer.ps1 b/scripts/build-installer.ps1 index 438195096..3c1b385f4 100644 --- a/scripts/build-installer.ps1 +++ b/scripts/build-installer.ps1 @@ -28,7 +28,7 @@ $ErrorActionPreference = 'Stop' Set-StrictMode -Version Latest $repo = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path -$manifestPath = Join-Path $repo 'nebula_app\Cargo.toml' +$manifestPath = Join-Path $repo 'pebrel_app\Cargo.toml' $installerScript = Join-Path $PSScriptRoot 'installer.iss' $translationPath = Join-Path $repo 'target\installer-tools\ChineseSimplified.isl' $translationUrl = 'https://raw.githubusercontent.com/jrsoftware/issrc/c495623a97376d524f298b1b160e8fd612375c62/Files/Languages/ChineseSimplified.isl' @@ -108,15 +108,15 @@ if ($PackageBrand -eq 'Pebrel' -and (Get-Item -LiteralPath $packagedExe).Version # 变更目标不重链接,不能拿运行开始时刻当基准。 if (-not $AllowStale) { $memberDirs = @( - 'nebula_app', 'nebula_terminal', 'nebula_config', 'nebula_config_derive', - 'nebula-completions', 'nebula_gpui', 'nebula_settings', 'nebula_split' + 'pebrel_app', 'pebrel_terminal', 'pebrel_config', 'pebrel_config_derive', + 'pebrel-completions', 'pebrel_gpui', 'pebrel_settings', 'pebrel_split' ) | ForEach-Object { Join-Path $repo $_ } $sourceScopes = @( @{ Binary = (Join-Path $targetRoot 'pebrel-cli.exe'); Roots = $memberDirs + @((Join-Path $repo 'Cargo.toml')) }, @{ Binary = $packagedExe; Roots = $memberDirs + @( (Join-Path $repo 'Cargo.toml'), (Join-Path $repo '..\gpui-component-fork\crates')) }, @{ Binary = (Join-Path $targetRoot 'pebrel-hook.exe'); Roots = @( - (Join-Path $repo 'nebula_hook'), (Join-Path $repo 'Cargo.toml')) } + (Join-Path $repo 'pebrel_hook'), (Join-Path $repo 'Cargo.toml')) } ) foreach ($scope in $sourceScopes) { $newestSource = [datetime]::MinValue diff --git a/scripts/build-windows-product.ps1 b/scripts/build-windows-product.ps1 index eb68b8c14..21f72ee7f 100644 --- a/scripts/build-windows-product.ps1 +++ b/scripts/build-windows-product.ps1 @@ -21,9 +21,9 @@ try { # The acceptance lab is tested by CI but does not supply a packaged binary. $arguments = @( 'build', '--locked', '--timings', - '-p', 'nebula', '--bin', 'pebrel', '--bin', 'pebrel-cli', - '-p', 'nebula_hook', '--bin', 'pebrel-hook', - '--features', 'nebula/gpui-shell' + '-p', 'pebrel', '--bin', 'pebrel', '--bin', 'pebrel-cli', + '-p', 'pebrel_hook', '--bin', 'pebrel-hook', + '--features', 'pebrel/gpui-shell' ) if ($Configuration -eq 'release') { $arguments += '--release' } & cargo @arguments diff --git a/scripts/check_gpui_migration.ps1 b/scripts/check_gpui_migration.ps1 index 43e8000ca..c9f5bd7de 100644 --- a/scripts/check_gpui_migration.ps1 +++ b/scripts/check_gpui_migration.ps1 @@ -39,7 +39,7 @@ Get-Command git -ErrorAction Stop | Out-Null Push-Location $repoRoot try { [Environment]::SetEnvironmentVariable("CARGO_TARGET_DIR", $resolvedTarget, "Process") - $common = @("-p", "nebula", "--features", "gpui-shell", "--jobs", "$Jobs") + $common = @("-p", "pebrel", "--features", "gpui-shell", "--jobs", "$Jobs") if ($Locked) { $common += "--locked" } diff --git a/scripts/check_platform_cfg.py b/scripts/check_platform_cfg.py index 070b51bdf..f860fc0b8 100644 --- a/scripts/check_platform_cfg.py +++ b/scripts/check_platform_cfg.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""平台 cfg 预算:`nebula_app/src/platform/` 之外的平台 `cfg` 只能减不能增。 +"""平台 cfg 预算:`pebrel_app/src/platform/` 之外的平台 `cfg` 只能减不能增。 三端一致性的编译门。平台差异应收进 `platform/`(能力表 + 每平台实现), 业务代码写 `if CAPABILITIES.xxx` 而不是 `#[cfg(windows)]`。基线数字写在 @@ -16,7 +16,7 @@ from pathlib import Path ROOT = Path(__file__).resolve().parents[1] -SOURCE_ROOT = ROOT / "nebula_app" / "src" +SOURCE_ROOT = ROOT / "pebrel_app" / "src" BUDGET_FILE = ROOT / "scripts" / "platform_cfg_budget.txt" # 只数平台维度的 cfg:windows / unix / target_os。feature 维度(legacy-shell、 @@ -60,7 +60,7 @@ def main(argv: list[str]) -> int: for name, count in worst: print(f" {count:4d} {name}", file=sys.stderr) print( - "move the platform branch into nebula_app/src/platform/ (or a CAPABILITIES check)", + "move the platform branch into pebrel_app/src/platform/ (or a CAPABILITIES check)", file=sys.stderr, ) return 1 diff --git a/scripts/ci_native_tests.py b/scripts/ci_native_tests.py index 2b3ac219a..718b2dfd2 100644 --- a/scripts/ci_native_tests.py +++ b/scripts/ci_native_tests.py @@ -11,7 +11,7 @@ def native_commands(runner: str = "cargo") -> list[list[str]]: profile = ["--config", ".github/ci-profile.toml", "--profile", "ci"] - workspace = ["--locked", "--workspace", "--features", "nebula/gpui-test-support", "--timings"] + workspace = ["--locked", "--workspace", "--features", "pebrel/gpui-test-support", "--timings"] if runner == "cargo": tests = [["cargo", "test", *profile, *workspace]] elif runner == "nextest": @@ -33,7 +33,7 @@ def native_commands(runner: str = "cargo") -> list[list[str]]: # dependencies, while metadata-only check output cannot link the tests. # Keep the actual production feature graph independently checked. [ - "cargo", "check", "--locked", *profile, "-p", "nebula", "--bin", "pebrel", + "cargo", "check", "--locked", *profile, "-p", "pebrel", "--bin", "pebrel", "--features", "gpui-shell", "--timings", ], ] diff --git a/scripts/ci_plan.py b/scripts/ci_plan.py index b5a79dd55..ddfbbaf24 100644 --- a/scripts/ci_plan.py +++ b/scripts/ci_plan.py @@ -120,7 +120,7 @@ def select_pr_platforms(paths: Sequence[str]) -> set[str]: or name in {"stable_release.py", "preview_release.py", "test_stable_release.py"} or name.endswith((".asm", ".s", ".wgsl")) or any(part in {"simd", "sse2", "avx", "neon", "x86", "aarch64"} for part in parts) - or path in {"nebula_app/src/main.rs", "nebula_app/src/gpui_shell/mod.rs"}): + or path in {"pebrel_app/src/main.rs", "pebrel_app/src/gpui_shell/mod.rs"}): return {p.runner for p in PLATFORMS} if name.endswith((".md", ".rst")) or path.startswith("docs/"): continue @@ -131,7 +131,7 @@ def select_pr_platforms(paths: Sequence[str]) -> set[str]: selected.update(("macos-26", "macos-26-intel")) elif "platform" in parts or "tty" in parts: return {p.runner for p in PLATFORMS} - elif not path.startswith(("nebula_", "scripts/", "mobile/", "assets/", "locales/", "extra/", "tools/")): + elif not path.startswith(("pebrel_", "scripts/", "mobile/", "assets/", "locales/", "extra/", "tools/")): # 新的顶层代码区域没有经过分类时扩大验证,不默认为安全。 return {p.runner for p in PLATFORMS} return selected diff --git a/scripts/installer.iss b/scripts/installer.iss index cf0fc2441..b328dcc5a 100644 --- a/scripts/installer.iss +++ b/scripts/installer.iss @@ -61,7 +61,7 @@ ArchitecturesAllowed=x64compatible #endif MinVersion=10.0.17763 LicenseFile={#RepoRoot}\LICENSE -SetupIconFile={#RepoRoot}\nebula_app\windows\nebula.ico +SetupIconFile={#RepoRoot}\pebrel_app\windows\nebula.ico UninstallDisplayIcon={app}\pebrel.exe OutputDir={#RepoRoot}\dist OutputBaseFilename={#PackageBrand}-v{#AppVersion}-windows-{#Architecture}-setup diff --git a/scripts/launch_probe_instance.ps1 b/scripts/launch_probe_instance.ps1 index 4342b58a8..68beff88c 100644 --- a/scripts/launch_probe_instance.ps1 +++ b/scripts/launch_probe_instance.ps1 @@ -30,7 +30,7 @@ New-Item -ItemType Directory -Force -Path $ProbeDir | Out-Null foreach ($name in @("pebrel.exe", "conpty.dll", "OpenConsole.exe")) { $src = Join-Path $SourceDir $name if (-not (Test-Path $src)) { - Write-Error "missing build artifact: $src (run cargo build -p nebula --bin pebrel first)" + Write-Error "missing build artifact: $src (run cargo build -p pebrel --bin pebrel first)" } # A previous probe may still hold the same file. A failed copy means it is # alive; say so, and point at killing it BY PID rather than by image name. diff --git a/scripts/package-release.ps1 b/scripts/package-release.ps1 index deb8ef9cf..ffdfb27dd 100644 --- a/scripts/package-release.ps1 +++ b/scripts/package-release.ps1 @@ -128,8 +128,8 @@ function Assert-FreshBinaries { # 是预编译供给件,不参与判定。 if ($AllowStale) { return } $memberDirs = @( - 'nebula_app', 'nebula_terminal', 'nebula_config', 'nebula_config_derive', - 'nebula-completions', 'nebula_gpui', 'nebula_settings', 'nebula_split' + 'pebrel_app', 'pebrel_terminal', 'pebrel_config', 'pebrel_config_derive', + 'pebrel-completions', 'pebrel_gpui', 'pebrel_settings', 'pebrel_split' ) | ForEach-Object { Join-Path $repo $_ } $appSources = $memberDirs + @( (Join-Path $repo 'Cargo.toml'), @@ -139,7 +139,7 @@ function Assert-FreshBinaries { @{ Binary = $manifest['pebrel.exe']; Newest = Get-NewestSourceTime $appSources }, @{ Binary = $manifest['pebrel.com']; Newest = Get-NewestSourceTime $appSources }, @{ Binary = $manifest['runtime/pebrel-hook.exe']; Newest = Get-NewestSourceTime @( - (Join-Path $repo 'nebula_hook'), (Join-Path $repo 'Cargo.toml')) } + (Join-Path $repo 'pebrel_hook'), (Join-Path $repo 'Cargo.toml')) } ) foreach ($check in $checks) { $item = Get-Item -LiteralPath $check.Binary diff --git a/scripts/perf_baseline.ps1 b/scripts/perf_baseline.ps1 index e0b365880..58e2dfe9e 100644 --- a/scripts/perf_baseline.ps1 +++ b/scripts/perf_baseline.ps1 @@ -3,7 +3,7 @@ # # 用法: # .\scripts\perf_baseline.ps1 -Exe -Tag winit-old -ExeArgs '--working-directory D:\temp_build\nebula' -# .\scripts\perf_baseline.ps1 -Exe -Tag gpui-lab +# .\scripts\perf_baseline.ps1 -Exe -Tag gpui-lab # # 方法论: # - 负载混合 ANSI 256 色/真彩、CJK 宽字符、boxdraw 框线、Powerline 分隔符, diff --git a/scripts/preview_release.py b/scripts/preview_release.py index 897ee011a..518bac9d4 100644 --- a/scripts/preview_release.py +++ b/scripts/preview_release.py @@ -36,8 +36,8 @@ class ManifestError(ValueError): def verify_binary_freshness(binary: Path, repo: Path) -> None: sources = [repo / name for name in ("Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "CHANGELOG.md")] - for name in ("nebula_app", "nebula_terminal", "nebula_config", "nebula_config_derive", - "nebula_settings", "nebula_split", "nebula-completions", "assets", "extra", "third_party"): + for name in ("pebrel_app", "pebrel_terminal", "pebrel_config", "pebrel_config_derive", + "pebrel_settings", "pebrel_split", "pebrel-completions", "assets", "extra", "third_party"): root = repo / name if root.is_dir(): sources.extend(path for path in root.rglob("*") if path.is_file()) diff --git a/scripts/release_240.py b/scripts/release_240.py index 010cf5531..1670cc1e4 100644 --- a/scripts/release_240.py +++ b/scripts/release_240.py @@ -72,7 +72,7 @@ def source_commit() -> str: def prepare() -> None: data = request() source_commit() - manifest = tomllib.loads((ROOT / "nebula_app/Cargo.toml").read_text(encoding="utf-8")) + manifest = tomllib.loads((ROOT / "pebrel_app/Cargo.toml").read_text(encoding="utf-8")) if manifest["package"]["version"] != VERSION: raise ValueError("Cargo package version differs from the release request") stable_release.validate_notes(ROOT / NOTES, VERSION) diff --git a/scripts/render-app-icons.mjs b/scripts/render-app-icons.mjs index bf851d85d..1d3d56536 100644 --- a/scripts/render-app-icons.mjs +++ b/scripts/render-app-icons.mjs @@ -14,7 +14,7 @@ const atlasSizes = [...sizes, 512]; const atlasWidth = 512; const atlasHeight = atlasSizes.reduce((total, size) => total + size, 0); const source = await readFile(join(root, 'extra/logo/nebula-coverage.svg'), 'utf8'); -const catalogSource = await readFile(join(root, 'nebula_settings/src/app_icon.rs'), 'utf8'); +const catalogSource = await readFile(join(root, 'pebrel_settings/src/app_icon.rs'), 'utf8'); const palettePattern = /\w+\s*=>\s*\(\s*"([^"]+)"\s*,\s*"(\d+)"\s*,\s*"([^"]+)"\s*,\s*"([^"]+)"\s*,\s*0x([\dA-Fa-f]{6})\s*,\s*0x([\dA-Fa-f]{6})\s*,\s*0x([\dA-Fa-f]{6})\s*\)/g; const palettes = [...catalogSource.matchAll(palettePattern)].map(([, key, number, nameZh, nameEn, tile, mark, border]) => ({ key, number, nameZh, nameEn, tile: `#${tile}`, mark: `#${mark}`, border: `#${border}`, @@ -183,13 +183,13 @@ for (const palette of palettes.filter(palette => palette.key in aliases)) { .replace('#FF0000', palette.tile).replace('#00FF00', palette.border).replace('#0000FF', palette.mark); outputs.set(`extra/logo/nebula-${alias}.svg`, Buffer.from(svg)); outputs.set(`extra/logo/nebula-${alias}.png`, png); - outputs.set(`nebula_app/windows/nebula-${alias}.ico`, ico); + outputs.set(`pebrel_app/windows/nebula-${alias}.ico`, ico); if (palette.key === 'titanium') { outputs.set('extra/logo/nebula.png', png); - outputs.set('nebula_app/windows/nebula.ico', ico); + outputs.set('pebrel_app/windows/nebula.ico', ico); } } -const payloadBytes = atlasPng.length + outputs.get('nebula_app/windows/nebula.ico').length; +const payloadBytes = atlasPng.length + outputs.get('pebrel_app/windows/nebula.ico').length; assert.ok(payloadBytes <= 96 * 1024, `Runtime icon payload exceeds 96 KiB: ${payloadBytes}`); outputs.set('extra/logo/icon-catalog.json', Buffer.from(`${JSON.stringify({ default: 'titanium', sizes, atlasSizes, atlasWidth, atlasHeight, payloadBytes, palettes, diff --git a/scripts/tests/build-windows-product.tests.ps1 b/scripts/tests/build-windows-product.tests.ps1 index 28024674a..36e336acc 100644 --- a/scripts/tests/build-windows-product.tests.ps1 +++ b/scripts/tests/build-windows-product.tests.ps1 @@ -19,9 +19,9 @@ try { if ($arguments[$i] -eq '-p') { $packages += $arguments[$i + 1] } if ($arguments[$i] -eq '--bin') { $binaries += $arguments[$i + 1] } } - if (($packages -join ',') -ne 'nebula,nebula_hook') { throw 'Unexpected package selection' } + if (($packages -join ',') -ne 'nebula,pebrel_hook') { throw 'Unexpected package selection' } if (($binaries -join ',') -ne 'pebrel,pebrel-cli,pebrel-hook') { throw 'Unexpected product binaries' } - foreach ($required in @('--locked', '--release', '--features', 'nebula/gpui-shell')) { + foreach ($required in @('--locked', '--release', '--features', 'pebrel/gpui-shell')) { if ($required -notin $arguments) { throw "Missing product build argument: $required" } } if ('--workspace' -in $arguments) { throw 'Packaging must not build the acceptance lab' } diff --git a/scripts/tests/opencode-notification-bridge.test.mjs b/scripts/tests/opencode-notification-bridge.test.mjs index 32fc4fa56..890aedb98 100644 --- a/scripts/tests/opencode-notification-bridge.test.mjs +++ b/scripts/tests/opencode-notification-bridge.test.mjs @@ -8,7 +8,7 @@ import { runInNewContext } from "node:vm"; // Execute the installed source with a provider event bus and a fake helper. // The tests do not install plugins or contact a running Agent. -const embedded = readFileSync(new URL("../../nebula_app/res/hooks/opencode.js", import.meta.url), "utf8"); +const embedded = readFileSync(new URL("../../pebrel_app/res/hooks/opencode.js", import.meta.url), "utf8"); const code = embedded .replace('import { execFile } from "node:child_process"', "") .replace("export default", "const plugin ="); @@ -298,7 +298,7 @@ test("the installed module delivers literal arguments through a real helper proc } finally { await bridge.dispose(); } `); const stdout = execFileSync(process.execPath, [join(directory, "worker.mjs"), - new URL("../../nebula_app/res/hooks/opencode.js", import.meta.url).href], { + new URL("../../pebrel_app/res/hooks/opencode.js", import.meta.url).href], { cwd: directory, env: { ...process.env, PEBREL_HOOK_EXE: process.execPath }, timeout: 15000, diff --git a/scripts/tests/pi-notification-bridge.test.mjs b/scripts/tests/pi-notification-bridge.test.mjs index 52ac8650a..dfc79fb46 100644 --- a/scripts/tests/pi-notification-bridge.test.mjs +++ b/scripts/tests/pi-notification-bridge.test.mjs @@ -8,7 +8,7 @@ import { runInNewContext } from "node:vm"; // Execute the shipped bridge with a fake Pi event bus and child process sink. // No installed extensions, user sessions, or actual helper processes are touched. -const embedded = readFileSync(new URL("../../nebula_app/res/hooks/pi.ts", import.meta.url), "utf8"); +const embedded = readFileSync(new URL("../../pebrel_app/res/hooks/pi.ts", import.meta.url), "utf8"); const code = stripTypeScriptTypes(embedded) .replace('import { spawn } from "node:child_process";', "") .replace('import { openSync, readSync, closeSync } from "node:fs";', "") diff --git a/scripts/tests/test_ai_session_probe.py b/scripts/tests/test_ai_session_probe.py index 7b7ae7b6b..9e8a605a5 100644 --- a/scripts/tests/test_ai_session_probe.py +++ b/scripts/tests/test_ai_session_probe.py @@ -20,7 +20,7 @@ @unittest.skipUnless(sys.platform == "linux", "requires Linux procfs (also runs inside WSL)") class ActiveRolloutProbeTests(unittest.TestCase): def test_probe_binds_custom_home_to_exact_instance_and_pane(self): - source = (ROOT / "nebula_app/src/platform/ai_session_identity.rs").read_text() + source = (ROOT / "pebrel_app/src/platform/ai_session_identity.rs").read_text() script = source.split('const PROBE_SCRIPT: &str = r###"', 1)[1].split('"###;', 1)[0] with tempfile.TemporaryDirectory(prefix="pebrel-identity-") as temporary: codex_directory = Path(temporary) / "custom codex" diff --git a/scripts/tests/test_app_icons.py b/scripts/tests/test_app_icons.py index 3ed30c4d3..f0b097dbd 100644 --- a/scripts/tests/test_app_icons.py +++ b/scripts/tests/test_app_icons.py @@ -95,13 +95,13 @@ def luminance(channels): class AppIconTests(unittest.TestCase): def test_shared_resource_budget_and_titanium_default(self): - primary = ROOT / "nebula_app/windows/nebula.ico" + primary = ROOT / "pebrel_app/windows/nebula.ico" coverage = ROOT / "extra/logo/nebula-coverage.png" self.assertLessEqual(primary.stat().st_size + coverage.stat().st_size, 96 * 1024) - self.assertEqual((ROOT / "nebula_app/windows/nebula-titanium.ico").read_bytes(), primary.read_bytes()) + self.assertEqual((ROOT / "pebrel_app/windows/nebula-titanium.ico").read_bytes(), primary.read_bytes()) self.assertEqual((ROOT / "extra/logo/nebula.png").read_bytes(), (ROOT / "extra/logo/nebula-titanium.png").read_bytes()) - resource = (ROOT / "nebula_app/windows/nebula.rc").read_text() + resource = (ROOT / "pebrel_app/windows/nebula.rc").read_text() self.assertEqual(resource.count(' ICON "'), 1) for variant in VARIANTS: self.assertNotIn(f'"nebula-{variant}.ico"', resource) @@ -126,7 +126,7 @@ def test_catalog_preserves_all_24_color_lab_palettes(self): for number, colors in enumerate(original_colors, 1): self.assertEqual(tuple(entries[f"{number:02}"][key] for key in ("tile", "mark", "border")), tuple(f"#{value}" for value in colors.split())) - source = (ROOT / "nebula_settings/src/app_icon.rs").read_text() + source = (ROOT / "pebrel_settings/src/app_icon.rs").read_text() canonical = re.findall( r'\w+\s*=>\s*\(\s*"([^"]+)"\s*,\s*"(\d+)"\s*,\s*"([^"]+)"\s*,\s*"([^"]+)"\s*,' r'\s*0x([\dA-Fa-f]{6})\s*,\s*0x([\dA-Fa-f]{6})\s*,\s*0x([\dA-Fa-f]{6})\s*\)', source) @@ -169,7 +169,7 @@ def test_native_frames_transparency_size_and_prompt_separation(self): source = ET.parse(ROOT / "extra/logo" / f"nebula-{variant}.svg").getroot() tile = color(source.find("svg:rect", NAMESPACE).get("fill")) mark = color(source.find("svg:use", NAMESPACE).get("color")) - for size, frame in ico_frames(ROOT / "nebula_app/windows" / f"nebula-{variant}.ico").items(): + for size, frame in ico_frames(ROOT / "pebrel_app/windows" / f"nebula-{variant}.ico").items(): with self.subTest(variant=variant, size=size): width, height, pixels = decode_png(frame) self.assertEqual((width, height), (size, size)) diff --git a/scripts/tests/test_architecture_governance.py b/scripts/tests/test_architecture_governance.py index 236266dd5..0ee2f1da2 100644 --- a/scripts/tests/test_architecture_governance.py +++ b/scripts/tests/test_architecture_governance.py @@ -13,8 +13,8 @@ "docs/internationalization.md", "architecture/notes/AGENTS.md", ) AGENT_GUIDES = ( - "AGENTS.md", "nebula_app/AGENTS.md", "nebula_terminal/AGENTS.md", - "nebula_settings/AGENTS.md", "scripts/AGENTS.md", "packaging/AGENTS.md", + "AGENTS.md", "pebrel_app/AGENTS.md", "pebrel_terminal/AGENTS.md", + "pebrel_settings/AGENTS.md", "scripts/AGENTS.md", "packaging/AGENTS.md", "docs/AGENTS.md", "docs/release-notes/AGENTS.md", ) PUBLIC_GUIDES = DOCUMENTS + AGENT_GUIDES @@ -142,12 +142,12 @@ def test_maintained_tests_dependencies_and_public_assets_stay_visible(self): "scripts/conformance/tests/test_harness.py", "scripts/launch_probe_instance.ps1", "scripts/probe_ssh_connect.ps1", "tools/probe_ime.rs", "tools/i18n-contract/Cargo.toml", "tools/i18n-contract/Cargo.lock", - "nebula_app/tests/i18n_contract.rs", "nebula_app/tests/fixtures/page.html", - "nebula_app/i18n/fr-FR.json", "third_party/winit-0.30.13/Cargo.toml", + "pebrel_app/tests/i18n_contract.rs", "pebrel_app/tests/fixtures/page.html", + "pebrel_app/i18n/fr-FR.json", "third_party/winit-0.30.13/Cargo.toml", "third_party/winit-0.30.13/src/lib.rs", "docs/screenshots/SHOTLIST.md", "docs/screenshots/hero.png", "docs/release-notes/v1.5.0.md", "docs/skills/pebrel-runtime/SKILL.md", - "architecture/notes/nebula_terminal/input/2026-09-19-example.md", + "architecture/notes/pebrel_terminal/input/2026-09-19-example.md", ) self.assertEqual(self.ignored_paths(paths), set()) diff --git a/scripts/tests/test_ci_native_tests.py b/scripts/tests/test_ci_native_tests.py index 1d9e45df9..7e417b5e2 100644 --- a/scripts/tests/test_ci_native_tests.py +++ b/scripts/tests/test_ci_native_tests.py @@ -128,7 +128,7 @@ def test_full_workspace_and_interactions_share_one_unfiltered_invocation(self): self.assertEqual(command[1], "test") self.assertIn("--locked", command) self.assertIn("--workspace", command) - self.assertEqual(command[command.index("--features") + 1], "nebula/gpui-test-support") + self.assertEqual(command[command.index("--features") + 1], "pebrel/gpui-test-support") self.assertNotIn("--exclude", command) self.assertNotIn("--lib", command) self.assertNotIn("--skip", command) @@ -155,7 +155,7 @@ def test_nextest_runs_all_native_targets_and_preserves_doctests(self): self.assertIn("--locked", command) self.assertIn("--workspace", command) self.assertIn("--timings", command) - self.assertEqual(command[command.index("--features") + 1], "nebula/gpui-test-support") + self.assertEqual(command[command.index("--features") + 1], "pebrel/gpui-test-support") self.assertEqual(command[command.index(profile_flag) + 1], "ci") self.assertEqual(command[command.index("--config") + 1], ".github/ci-profile.toml") for excluded in ("--exclude", "--lib", "--skip", "--filterset", "--partition", "--no-run"): @@ -228,16 +228,16 @@ def test_nextest_reserves_only_shared_settings_and_exact_bounded_process_fixture }], }) - unix_hook = (root / "nebula_app/src/ai_hook/unix.rs").read_text(encoding="utf-8") + unix_hook = (root / "pebrel_app/src/ai_hook/unix.rs").read_text(encoding="utf-8") self.assertIn("fn local_hook_socket_routes_identity_and_releases_its_private_directory(", unix_hook) - serial = (root / "nebula_app/src/gpui_shell/ssh_settings/serial_tests.rs").read_text(encoding="utf-8") + serial = (root / "pebrel_app/src/gpui_shell/ssh_settings/serial_tests.rs").read_text(encoding="utf-8") self.assertIn("fn serial_editor_saves_reloads_and_reopens_without_ssh_username(", serial) self.assertIn("let _lock = lock_theme_studio();", serial) self.assertIn("SettingsBytesGuard::capture()", serial) # 核对真实函数名,避免配置和期望同时保留旧名字却漏掉写设置的测试。 - segmented = (root / "nebula_app/src/gpui_shell/settings_pane/segmented/tests.rs").read_text(encoding="utf-8") + segmented = (root / "pebrel_app/src/gpui_shell/settings_pane/segmented/tests.rs").read_text(encoding="utf-8") for name in ( "capsule_uses_inset_thumb_full_hit_targets_and_keyboard_selection", "completion_capsules_keep_all_chinese_choices_at_large_font_size", @@ -245,7 +245,7 @@ def test_nextest_reserves_only_shared_settings_and_exact_bounded_process_fixture self.assertIn(f"fn {name}(", segmented) # 这些夹具同样会写共享设置;只加入真实函数,不放宽其它测试的调度。 - elevated = (root / "nebula_app/src/gpui_shell/workspace/windowing/elevated_launch.rs").read_text(encoding="utf-8") + elevated = (root / "pebrel_app/src/gpui_shell/workspace/windowing/elevated_launch.rs").read_text(encoding="utf-8") for name in ( "elevated_launch_reuses_window_and_preserves_each_program_and_directory", "elevated_launch_new_window_policy_and_invalid_requests_preserve_existing_tabs", @@ -253,10 +253,10 @@ def test_nextest_reserves_only_shared_settings_and_exact_bounded_process_fixture ): self.assertIn(f"fn {name}(", elevated) - startup = (root / "nebula_app/src/gpui_shell/workspace/windowing/startup.rs").read_text(encoding="utf-8") + startup = (root / "pebrel_app/src/gpui_shell/workspace/windowing/startup.rs").read_text(encoding="utf-8") self.assertIn("fn launch_visibility_reaches_the_actual_workspace(", startup) - bash_input = (root / "nebula_terminal/src/tty/windows/test/bash_input.rs").read_text(encoding="utf-8") + bash_input = (root / "pebrel_terminal/src/tty/windows/test/bash_input.rs").read_text(encoding="utf-8") self.assertIn( "fn git_bash_wrapped_input_can_be_fully_erased_in_byte_and_utf8_locales()", bash_input, diff --git a/scripts/tests/test_ci_plan.py b/scripts/tests/test_ci_plan.py index 899d5fc4a..77f1affbc 100644 --- a/scripts/tests/test_ci_plan.py +++ b/scripts/tests/test_ci_plan.py @@ -179,13 +179,13 @@ def test_renaming_a_windows_file_keeps_windows_validation(self) -> None: repo = root / "repo" repo.mkdir() self.git(repo, "init", "-q") - old = repo / "nebula_terminal/src/tty/windows.rs" + old = repo / "pebrel_terminal/src/tty/windows.rs" old.parent.mkdir(parents=True) old.write_text("// platform fixture\n", encoding="utf-8") self.git(repo, "add", ".") self.git(repo, "commit", "-qm", "Create Windows fixture") base = self.git(repo, "rev-parse", "HEAD").strip() - self.git(repo, "mv", "nebula_terminal/src/tty/windows.rs", "nebula_terminal/src/common.rs") + self.git(repo, "mv", "pebrel_terminal/src/tty/windows.rs", "pebrel_terminal/src/common.rs") self.git(repo, "commit", "-qm", "Move platform fixture") payload = {"pull_request": {"draft": False, "base": {"sha": base}, "head": {"sha": self.git(repo, "rev-parse", "HEAD").strip()}}} @@ -201,7 +201,7 @@ def test_removing_a_platform_condition_in_a_generic_file_keeps_both_hosts(self) repo = root / "repo" repo.mkdir() self.git(repo, "init", "-q") - source = repo / "nebula_app/src/welcome.rs" + source = repo / "pebrel_app/src/welcome.rs" source.parent.mkdir(parents=True) source.write_text("#[cfg(windows)]\nfn welcome() {}\n", encoding="utf-8") self.git(repo, "add", ".") @@ -261,20 +261,20 @@ def test_representative_prs_select_only_the_required_native_hosts(self) -> None: full = {p.runner for p in PLATFORMS} cases = ( (["README.md", "docs/user-guide.md", "architecture/notes/scripts/ci/example.md"], set()), - (["nebula_app/src/gpui_shell/settings_pane/colors.rs"], {"ubuntu-24.04"}), - (["nebula_terminal/src/term/mod.rs", "nebula_app/src/backup_remote.rs"], {"ubuntu-24.04"}), - (["nebula_terminal/src/tty/windows/mod.rs"], {"ubuntu-24.04", "windows-2022", "windows-11-arm"}), + (["pebrel_app/src/gpui_shell/settings_pane/colors.rs"], {"ubuntu-24.04"}), + (["pebrel_terminal/src/term/mod.rs", "pebrel_app/src/backup_remote.rs"], {"ubuntu-24.04"}), + (["pebrel_terminal/src/tty/windows/mod.rs"], {"ubuntu-24.04", "windows-2022", "windows-11-arm"}), (["scripts/prepare-windows-runtime.ps1"], {"ubuntu-24.04", "windows-2022", "windows-11-arm"}), - (["nebula_app/src/platform/macos/notifications.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), - (["nebula_app/src/notify_macos.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), - (["nebula_terminal/src/tty/unix.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), - (["nebula_app/src/platform/process.rs"], full), + (["pebrel_app/src/platform/macos/notifications.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), + (["pebrel_app/src/notify_macos.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), + (["pebrel_terminal/src/tty/unix.rs"], {"ubuntu-24.04", "macos-26", "macos-26-intel"}), + (["pebrel_app/src/platform/process.rs"], full), (["Cargo.lock"], full), - (["nebula_terminal/Cargo.toml"], full), + (["pebrel_terminal/Cargo.toml"], full), ([".github/workflows/linux-lua.yml"], full), (["scripts/ci_plan.py"], full), (["scripts/package-macos.sh"], full), - (["nebula_terminal/src/scan_x86_64.rs"], full), + (["pebrel_terminal/src/scan_x86_64.rs"], full), (["architecture/dependencies.toml"], full), (["new_native_module/source.rs"], full), ) @@ -286,7 +286,7 @@ def test_representative_prs_select_only_the_required_native_hosts(self) -> None: self.assertEqual({row["os"] for row in release}, expected & {"macos-26", "macos-26-intel"}) def test_invalid_paths_do_not_silently_skip_validation(self) -> None: - for path in ("", "/absolute.rs", "../outside.rs", "nebula_app/../unknown.rs", "windows\\path.rs"): + for path in ("", "/absolute.rs", "../outside.rs", "pebrel_app/../unknown.rs", "windows\\path.rs"): with self.subTest(path=path), self.assertRaises(PlanError): plan_matrices("pull_request", {"pull_request": {"draft": False}}, [path]) diff --git a/scripts/tests/test_completion_editor.py b/scripts/tests/test_completion_editor.py index e5a3a4704..7d0eae6d3 100644 --- a/scripts/tests/test_completion_editor.py +++ b/scripts/tests/test_completion_editor.py @@ -18,7 +18,7 @@ def setUp(self) -> None: self.fixture = shell_integration.ShellIntegrationTests() self.fixture.setUp() self.addCleanup(self.fixture.doCleanups) - self.adapter = Path(__file__).resolve().parents[2] / "nebula_terminal/src/tty/completion.sh" + self.adapter = Path(__file__).resolve().parents[2] / "pebrel_terminal/src/tty/completion.sh" def start(self, shell: str, rc: str = "") -> shell_integration.ShellSession: session = self.fixture.start(shell, rc) @@ -44,17 +44,17 @@ def start_bootstrap(self, shell: str, route: str, owned_binding: bool = False) - program = shutil.which(shell) if not program: self.skipTest(f"{shell} is not installed") - adapter = "\n".join((root / "nebula_terminal/src/tty" / name).read_text() + adapter = "\n".join((root / "pebrel_terminal/src/tty" / name).read_text() for name in ("connection.sh", "completion.sh")) if route == "wsl": - source = (root / "nebula_app/src/shell_detect.rs").read_text() + source = (root / "pebrel_app/src/shell_detect.rs").read_text() report = re.search(r'const REPORT: &str = r#"(.*?)"#;', source, re.S) self.assertIsNotNone(report) prompt = report.group(1).replace("__PEBREL_CONNECTION_HOOK__", adapter) args = ["--noprofile", "--norc", "-i"] env = {"PROMPT_COMMAND": prompt, "WSL_DISTRO_NAME": "completion-fixture"} else: - source = (root / "nebula_app/src/ssh.rs").read_text() + source = (root / "pebrel_app/src/ssh.rs").read_text() name = "REMOTE_BASH" if shell == "bash" else "REMOTE_ZSH" body = re.search(rf'const {name}: &str = r#"(.*?)"#;', source, re.S) self.assertIsNotNone(body) diff --git a/scripts/tests/test_git_attributes.py b/scripts/tests/test_git_attributes.py index 2878ed1cb..9d168ed0c 100644 --- a/scripts/tests/test_git_attributes.py +++ b/scripts/tests/test_git_attributes.py @@ -6,17 +6,17 @@ ROOT = Path(__file__).resolve().parents[2] -FIXTURES = ROOT / "nebula_terminal/tests/ref" +FIXTURES = ROOT / "pebrel_terminal/tests/ref" class GitAttributeTests(unittest.TestCase): def test_embedded_shell_scripts_survive_autocrlf_checkout(self): paths = [ - "nebula_terminal/src/tty/connection.sh", - "nebula_app/src/platform/pi_session.sh", + "pebrel_terminal/src/tty/connection.sh", + "pebrel_app/src/platform/pi_session.sh", *( path.relative_to(ROOT).as_posix() - for path in sorted((ROOT / "nebula_app/res/shell").iterdir()) + for path in sorted((ROOT / "pebrel_app/res/shell").iterdir()) if path.is_file() ), ] @@ -52,7 +52,7 @@ def test_embedded_shell_scripts_survive_autocrlf_checkout(self): def test_embedded_remote_scripts_use_posix_newlines_in_windows_checkouts(self): paths = [str(path.relative_to(ROOT)).replace("\\", "/") - for directory in ["nebula_app/res/hooks", "nebula_app/res/shell"] + for directory in ["pebrel_app/res/hooks", "pebrel_app/res/shell"] for path in (ROOT / directory).iterdir() if path.is_file()] self.assertTrue(paths) with tempfile.TemporaryDirectory() as directory: @@ -73,7 +73,7 @@ def test_embedded_remote_scripts_use_posix_newlines_in_windows_checkouts(self): def test_checksum_pinned_assets_keep_verified_bytes_on_checkout(self): fixtures = { - "nebula_app/res/prompts/codex_prompt_suggestion.txt": + "pebrel_app/res/prompts/codex_prompt_suggestion.txt": "3728870393e8d9776f983db00b1b4bea094b541d56478807d204f7e650232f4e", "scripts/tests/fixtures/ai-hooks-v1.5.0/opencode.js": "5f155e7330a9ef51c5ad1a048e27bedf6f48ade94e0bbe0624d76e632b545a06", diff --git a/scripts/tests/test_pebrel_branding.py b/scripts/tests/test_pebrel_branding.py index 6509e8867..ba53a7f00 100644 --- a/scripts/tests/test_pebrel_branding.py +++ b/scripts/tests/test_pebrel_branding.py @@ -15,28 +15,28 @@ def manifest(self, path): return tomllib.loads(self.source(path)) def test_visible_identity_and_cli_use_pebrel(self): - brand = self.source("nebula_app/src/brand.rs") - cli = self.source("nebula_app/src/cli.rs") + brand = self.source("pebrel_app/src/brand.rs") + cli = self.source("pebrel_app/src/cli.rs") self.assertIn('pub const NAME: &str = "Pebrel";', brand) self.assertIn('bin_name = "pebrel"', cli) self.assertIn('display_name = crate::brand::NAME', cli) self.assertIn('version = env!("VERSION")', cli) self.assertEqual( - [target["name"] for target in self.manifest("nebula_app/Cargo.toml")["bin"]], + [target["name"] for target in self.manifest("pebrel_app/Cargo.toml")["bin"]], ["pebrel", "pebrel-cli"], ) self.assertEqual( - [target["name"] for target in self.manifest("nebula_hook/Cargo.toml")["bin"]], + [target["name"] for target in self.manifest("pebrel_hook/Cargo.toml")["bin"]], ["pebrel-hook"], ) - window = self.source("nebula_app/src/config/window.rs") + window = self.source("pebrel_app/src/config/window.rs") self.assertIn('DEFAULT_NAME: &str = crate::brand::NAME;', window) self.assertIn('DEFAULT_CLASS: &str = "Pebrel";', window) - gpui = self.source("nebula_app/src/gpui_shell/workspace/windowing.rs") + gpui = self.source("pebrel_app/src/gpui_shell/workspace/windowing.rs") self.assertIn('window.set_window_title(crate::brand::NAME)', gpui) self.assertIn("startup_geometry::options(", gpui) geometry = self.source( - "nebula_app/src/gpui_shell/workspace/windowing/startup_geometry.rs" + "pebrel_app/src/gpui_shell/workspace/windowing/startup_geometry.rs" ) for fallback in ('pebrel', 'pebrel-quick-terminal'): self.assertRegex(geometry, rf'application_id\(\s*"{fallback}"\s*,?\s*\)') @@ -48,7 +48,7 @@ def test_visible_identity_and_cli_use_pebrel(self): entry = self.source(f'packaging/linux/{desktop}.desktop') self.assertIn(f'StartupWMClass={desktop}', entry.splitlines()) self.assertIn(f'Icon={desktop}', entry.splitlines()) - welcome = self.source("nebula_app/src/window_context/welcome.rs") + welcome = self.source("pebrel_app/src/window_context/welcome.rs") self.assertIn('crate::brand::NAME', welcome) self.assertNotIn('Nebula Terminal', welcome) @@ -96,8 +96,8 @@ def test_pebrel_assets_are_default_and_keep_explicit_legacy_alias(self): self.assertIn('"/DArchitecture=$Architecture"', builder) def test_update_asset_validation_shares_current_and_legacy_names(self): - check = self.source("nebula_app/src/update_check.rs") - download = self.source("nebula_app/src/update_download.rs") + check = self.source("pebrel_app/src/update_check.rs") + download = self.source("pebrel_app/src/update_download.rs") self.assertIn('format!("Pebrel-{version}-windows-x64-setup.exe")', check) self.assertIn('format!("Pebrel-v{version}-windows-x64-setup.exe")', check) self.assertIn('format!("NebulaTerminal-{version}-windows-x64-setup.exe")', check) @@ -105,7 +105,7 @@ def test_update_asset_validation_shares_current_and_legacy_names(self): # Discovery and validation now route through the shared native selector. # Retain the Windows brand contract while also checking the macOS path; # executable Rust regressions cover accepted brands and rejected URLs. - assets = self.source("nebula_app/src/update_check/assets.rs") + assets = self.source("pebrel_app/src/update_check/assets.rs") self.assertIn("assets::native_names(&version)", check) self.assertIn("assets::native_names(&asset.version)", download) self.assertIn("super::windows_x64_installer_names(version).to_vec()", assets) @@ -113,24 +113,24 @@ def test_update_asset_validation_shares_current_and_legacy_names(self): self.assertIn("if !names.contains(&asset.name)", download) def test_notification_identity_uses_pebrel(self): - source = self.source("nebula_app/src/platform/notifications.rs") - brand = self.source("nebula_app/src/brand.rs") - taskbar = self.source("nebula_app/src/app_icon/windows/taskbar.rs") + source = self.source("pebrel_app/src/platform/notifications.rs") + brand = self.source("pebrel_app/src/brand.rs") + taskbar = self.source("pebrel_app/src/app_icon/windows/taskbar.rs") self.assertIn('WINDOWS_APP_ID: &str = "com.pebrel.terminal";', brand) self.assertIn('AUMID: &str = crate::brand::WINDOWS_APP_ID;', source) self.assertIn('set_string(&store, &APP_ID, crate::brand::WINDOWS_APP_ID)', taskbar) self.assertIn('set_reg_sz(&subkey, "DisplayName", crate::brand::NAME)', source) def test_config_directory_uses_pebrel_and_migrates_legacy_data(self): - paths = self.source("nebula_settings/src/paths.rs") + paths = self.source("pebrel_settings/src/paths.rs") self.assertIn('"PEBREL_CONFIG_DIR", "NEBULA_CONFIG_DIR"', paths) self.assertIn('default_dir("Pebrel")', paths) self.assertIn('default_dir("Nebula")', paths) self.assertIn('"pebrel_settings.txt"', paths) - migration = self.source("nebula_settings/src/paths/migration.rs") + migration = self.source("pebrel_settings/src/paths/migration.rs") self.assertIn('("nebula_settings.txt", "pebrel_settings.txt")', migration) - startup = self.source("nebula_app/src/main.rs") - self.assertIn("nebula_settings::migrate_legacy_data()", startup) + startup = self.source("pebrel_app/src/main.rs") + self.assertIn("pebrel_settings::migrate_legacy_data()", startup) def test_project_identity_without_local_preview_notice(self): readme = self.source("README.md") @@ -142,7 +142,7 @@ def test_project_identity_without_local_preview_notice(self): self.assertNotIn("A name change does not create a new published release", readme) def test_current_changelog_matches_bilingual_release_notes(self): - version = self.manifest("nebula_app/Cargo.toml")["package"]["version"] + version = self.manifest("pebrel_app/Cargo.toml")["package"]["version"] notes = self.source(f"docs/release-notes/v{version}.md") self.assertTrue(notes.startswith(f"# Pebrel {version}\n")) body = notes.split("## English\n", 1)[1].split("## SHA256", 1)[0] diff --git a/scripts/tests/test_pi_bridge.mjs b/scripts/tests/test_pi_bridge.mjs index 0fe1af064..edc031481 100644 --- a/scripts/tests/test_pi_bridge.mjs +++ b/scripts/tests/test_pi_bridge.mjs @@ -8,7 +8,7 @@ import { test, after } from 'node:test'; import { spawnSync } from 'node:child_process'; const root = new URL('../../', import.meta.url); -const bridgeSource = new URL('nebula_app/src/ai_hook/bridges.rs', root); +const bridgeSource = new URL('pebrel_app/src/ai_hook/bridges.rs', root); const bridgePath = readFileSync(bridgeSource, 'utf8').match(/PI_EXTENSION_TS: &str = include_str!\("([^"]+)"\)/)?.[1]; assert.ok(bridgePath, 'test must execute the production PI_EXTENSION_TS asset'); const embedded = readFileSync(new URL(bridgePath, bridgeSource), 'utf8'); diff --git a/scripts/tests/test_pi_session_guest.py b/scripts/tests/test_pi_session_guest.py index 2e2b8e6bc..dce57c099 100644 --- a/scripts/tests/test_pi_session_guest.py +++ b/scripts/tests/test_pi_session_guest.py @@ -7,7 +7,7 @@ import tempfile import unittest -SCRIPT = Path(__file__).resolve().parents[2] / 'nebula_app/src/platform/pi_session.sh' +SCRIPT = Path(__file__).resolve().parents[2] / 'pebrel_app/src/platform/pi_session.sh' SESSION = '11111111-2222-4333-8444-555555555555' diff --git a/scripts/tests/test_powershell_pointer.py b/scripts/tests/test_powershell_pointer.py index 20f68e009..ee7c24dfb 100644 --- a/scripts/tests/test_powershell_pointer.py +++ b/scripts/tests/test_powershell_pointer.py @@ -58,14 +58,14 @@ def start(self, mode: str = "Emacs", before: str = "", *, legacy: bool = False) temporary = tempfile.TemporaryDirectory(prefix="pebrel-pwsh-pointer-") self.addCleanup(temporary.cleanup) home = Path(temporary.name) - root = Path(__file__).resolve().parents[2] / "nebula_terminal/src/tty" + root = Path(__file__).resolve().parents[2] / "pebrel_terminal/src/tty" script = home / "init.ps1" (home / "native-editor.ps1").write_text( (root / "completion.ps1").read_text(encoding="utf-8") + "\n" + (root / "pointer.ps1").read_text(encoding="utf-8"), encoding="utf-8", ) bootstrap = home / "bootstrap.ps1" - bootstrap.write_text((root.parents[2] / "nebula_app/res/shell/powershell.ps1").read_text(encoding="utf-8"), encoding="utf-8") + bootstrap.write_text((root.parents[2] / "pebrel_app/res/shell/powershell.ps1").read_text(encoding="utf-8"), encoding="utf-8") script.write_text( import_module + "\n" "Set-PSReadLineOption -HistorySaveStyle SaveNothing\n" diff --git a/scripts/tests/test_preview_release.py b/scripts/tests/test_preview_release.py index 9ec4142ec..bda99d2d5 100644 --- a/scripts/tests/test_preview_release.py +++ b/scripts/tests/test_preview_release.py @@ -99,7 +99,7 @@ def test_public_preview_requires_matching_bilingual_categories(self) -> None: def test_packaging_rejects_stale_binary(self) -> None: with tempfile.TemporaryDirectory() as directory: root = Path(directory) - source = root / "nebula_app/res/shell/zshrc" + source = root / "pebrel_app/res/shell/zshrc" source.parent.mkdir(parents=True) source.write_text("updated script", encoding="utf-8") binary = root / "nebula" diff --git a/scripts/tests/test_prohibited_names.py b/scripts/tests/test_prohibited_names.py index 26a39eb9c..4db645a9c 100644 --- a/scripts/tests/test_prohibited_names.py +++ b/scripts/tests/test_prohibited_names.py @@ -40,8 +40,8 @@ def test_the_terminal_multiplexer_name_is_a_compatibility_target(self) -> None: cases = ( ("README.md", "Agent status works inside tmux."), ("architecture/notes/mobile/recovery.md", "Typed tmux commands use an independent channel."), - ("nebula_app/res/hooks/remote_tmux.py", 'if os.environ.get("TMUX"):'), - ("nebula_app/src/ai_hook/protocol.rs", 'field.strip_prefix("tmux=")'), + ("pebrel_app/res/hooks/remote_tmux.py", 'if os.environ.get("TMUX"):'), + ("pebrel_app/src/ai_hook/protocol.rs", 'field.strip_prefix("tmux=")'), ("mobile/android/app/src/androidTest/SshIntegrationTest.kt", "tmux capture-pane -p -t '$name'"), ("mobile/android/app/preview-proguard-rules.pro", "# The real tmux/IME regression"), ) diff --git a/scripts/tests/test_remote_hooks.py b/scripts/tests/test_remote_hooks.py index 80ec80cc6..c395dd72f 100644 --- a/scripts/tests/test_remote_hooks.py +++ b/scripts/tests/test_remote_hooks.py @@ -15,7 +15,7 @@ import unittest from unittest.mock import patch -ASSETS = Path(__file__).resolve().parents[2] / "nebula_app/res/hooks" +ASSETS = Path(__file__).resolve().parents[2] / "pebrel_app/res/hooks" TOKEN = "0123456789abcdef0123456789abcdef" diff --git a/scripts/tests/test_shell_integration.py b/scripts/tests/test_shell_integration.py index b7445fad5..f8cde348f 100644 --- a/scripts/tests/test_shell_integration.py +++ b/scripts/tests/test_shell_integration.py @@ -11,7 +11,7 @@ import unittest from urllib.parse import quote -SCRIPTS = Path(__file__).resolve().parents[2] / "nebula_app/res/shell" +SCRIPTS = Path(__file__).resolve().parents[2] / "pebrel_app/res/shell" # Hosted runners ship group/world-writable fpath directories; a native compinit would # stop at compaudit's prompt there too. Drop what compaudit rejects (the directory, # its parent, its .zwc digest or a file inside it) before the login shell's compinit. diff --git a/scripts/tests/test_shell_pointer.py b/scripts/tests/test_shell_pointer.py index 552071327..f35bb7cdb 100644 --- a/scripts/tests/test_shell_pointer.py +++ b/scripts/tests/test_shell_pointer.py @@ -20,7 +20,7 @@ def setUp(self) -> None: def start(self, shell: str, setup: str = ""): session = self.editor.start(shell, setup) - adapter = Path(__file__).resolve().parents[2] / "nebula_terminal/src/tty/pointer.sh" + adapter = Path(__file__).resolve().parents[2] / "pebrel_terminal/src/tty/pointer.sh" session.command(f"source {shlex.quote(str(adapter))}", b"\x1b]133;A\x07") return session @@ -126,7 +126,7 @@ def check_prompt_boundary(self, shell: str) -> None: session.wait(boundary) # Repeated prompt changes and re-sourcing must retain exactly one # boundary, after all printable user prompt cells. - adapter = Path(__file__).resolve().parents[2] / "nebula_terminal/src/tty/pointer.sh" + adapter = Path(__file__).resolve().parents[2] / "pebrel_terminal/src/tty/pointer.sh" session.command(f"source {shlex.quote(str(adapter))}", boundary) output = session.command(":", boundary) self.assertEqual(output.count(b"\x1b]133;B\x07"), 1, output) diff --git a/scripts/tests/test_update_handoff.ps1 b/scripts/tests/test_update_handoff.ps1 index 304230aa2..5c5603c6a 100644 --- a/scripts/tests/test_update_handoff.ps1 +++ b/scripts/tests/test_update_handoff.ps1 @@ -8,7 +8,7 @@ if (-not $OutputRoot) { $OutputRoot = Join-Path $root ('tmp\handoff-tests-' + [g $null = New-Item -ItemType Directory -Path $OutputRoot -Force $fixture = Join-Path $PSScriptRoot 'fixtures\update_process.cs' $compiler = Join-Path $env:WINDIR 'Microsoft.NET\Framework64\v4.0.30319\csc.exe' -$helper = Join-Path $root 'nebula_app\src\update_download\handoff.ps1' +$helper = Join-Path $root 'pebrel_app\src\update_download\handoff.ps1' $powershell = Join-Path $env:WINDIR 'System32\WindowsPowerShell\v1.0\powershell.exe' $old = Join-Path $OutputRoot 'old.exe' $candidate = Join-Path $OutputRoot 'candidate.exe' diff --git a/scripts/tests/test_windows_resources.py b/scripts/tests/test_windows_resources.py index 8fccc4782..78b7f813d 100644 --- a/scripts/tests/test_windows_resources.py +++ b/scripts/tests/test_windows_resources.py @@ -16,7 +16,7 @@ def resource(self, gpui): command = [compiler, "-E", "-P", "-x", "c"] if gpui: command.append("-DNEBULA_GPUI_MANIFEST") - command.append(str(ROOT / "nebula_app/windows/nebula.rc")) + command.append(str(ROOT / "pebrel_app/windows/nebula.rc")) return subprocess.check_output(command, text=True, encoding="utf-8") def test_gpui_keeps_product_resources_without_a_second_manifest(self): @@ -33,7 +33,7 @@ def test_legacy_shell_still_embeds_its_manifest(self): self.assertEqual(len(re.findall(r"^1\s+24\s+nebula\.manifest$", resource, re.MULTILINE)), 1) def test_product_versions_match_the_application_package(self): - manifest = tomllib.loads((ROOT / "nebula_app/Cargo.toml").read_text(encoding="utf-8")) + manifest = tomllib.loads((ROOT / "pebrel_app/Cargo.toml").read_text(encoding="utf-8")) version = manifest["package"]["version"] numeric = re.match(r"^\d+\.\d+\.\d+", version).group().replace(".", ",") + ",0" for gpui in (False, True): @@ -47,7 +47,7 @@ def test_product_versions_match_the_application_package(self): self.assertEqual(values, [version]) def test_build_script_selects_the_resource_contract(self): - source = (ROOT / "nebula_app/build.rs").read_text(encoding="utf-8") + source = (ROOT / "pebrel_app/build.rs").read_text(encoding="utf-8") self.assertRegex(source, r'if cfg!\(feature = "gpui-shell"\)\s*\{\s*&\["NEBULA_GPUI_MANIFEST"\]') self.assertIn('embed_resource::compile("./windows/nebula.rc", defines)', source) self.assertIn("cargo:rerun-if-changed=windows/nebula.manifest", source) diff --git a/scripts/tests/test_xplat.py b/scripts/tests/test_xplat.py index cc238ada9..06063ad85 100644 --- a/scripts/tests/test_xplat.py +++ b/scripts/tests/test_xplat.py @@ -79,7 +79,7 @@ def build_out(self, base, package): def test_inherited_native_output_is_preserved_and_cargo_is_locked(self): native_out = self.build_out(self.native, "media-native") - result = self.run_check("macos", "--features", "gpui-shell", "-p", "nebula") + result = self.run_check("macos", "--features", "gpui-shell", "-p", "pebrel") self.assertEqual(result.returncode, 0, result.stderr) call, = self.recordings() self.assertEqual(call["target"], str(self.output)) @@ -87,7 +87,7 @@ def test_inherited_native_output_is_preserved_and_cargo_is_locked(self): args = call["args"] self.assertIn("--locked", args) self.assertEqual(args[args.index("--target-dir") + 1], str(self.output)) - self.assertEqual(args[-4:], ["--features", "gpui-shell", "-p", "nebula"]) + self.assertEqual(args[-4:], ["--features", "gpui-shell", "-p", "pebrel"]) self.assertEqual(list(native_out.iterdir()), []) self.assertEqual(self.native_sentinel.read_text(encoding="utf-8"), "native cache") self.assertIn("not a native build/test", result.stdout) diff --git a/scripts/tests/user-feedback-regressions.md b/scripts/tests/user-feedback-regressions.md index 49e4f082c..1a7923ec3 100644 --- a/scripts/tests/user-feedback-regressions.md +++ b/scripts/tests/user-feedback-regressions.md @@ -58,15 +58,15 @@ Windows 右键菜单与 F2 快捷键冲突反馈。它是验收合同,不表 ## 当前测试入口 ```powershell -cargo test --locked -p nebula --bin pebrel --features gpui-shell rename -cargo test --locked -p nebula_hook -cargo test --locked -p nebula --bin pebrel --features gpui-shell platform::environment::tests -cargo test --locked -p nebula --bin pebrel --features gpui-shell ai_hook:: -cargo test --locked -p nebula --bin pebrel --features gpui-shell display::hint::tests -cargo test --locked -p nebula --bin pebrel --features gpui-shell config::ui_config::tests -cargo test --locked -p nebula --bin pebrel --features gpui-shell gpui_shell::terminal::link_underline::tests -cargo test --locked -p nebula --bin pebrel --features gpui-shell gpui_shell::terminal::element::tests -cargo test --locked -p nebula --bin pebrel --features gpui-shell display::terminal_color::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell rename +cargo test --locked -p pebrel_hook +cargo test --locked -p pebrel --bin pebrel --features gpui-shell platform::environment::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell ai_hook:: +cargo test --locked -p pebrel --bin pebrel --features gpui-shell display::hint::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell config::ui_config::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell gpui_shell::terminal::link_underline::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell gpui_shell::terminal::element::tests +cargo test --locked -p pebrel --bin pebrel --features gpui-shell display::terminal_color::tests ``` 安装器既有入口为 `scripts/tests/installer.tests.ps1`、 diff --git a/scripts/visual_parity.ps1 b/scripts/visual_parity.ps1 index 610836e59..a1b829d90 100644 --- a/scripts/visual_parity.ps1 +++ b/scripts/visual_parity.ps1 @@ -7,7 +7,7 @@ # # 用法: # .\scripts\visual_parity.ps1 -Exe -Tag winit-old -ExeArgs '--working-directory D:\temp_build\nebula' -# .\scripts\visual_parity.ps1 -Exe -Tag gpui-lab +# .\scripts\visual_parity.ps1 -Exe -Tag gpui-lab param( [Parameter(Mandatory = $true)][string]$Exe, [Parameter(Mandatory = $true)][string]$Tag, diff --git a/scripts/windows-memory-stress.md b/scripts/windows-memory-stress.md index ba2fc7e19..22afebb7b 100644 --- a/scripts/windows-memory-stress.md +++ b/scripts/windows-memory-stress.md @@ -7,7 +7,7 @@ 需要 Windows 原生 Python 3.11+,不需要第三方 Python 包。先构建真实产品: ```powershell -cargo build --release --locked -p nebula --bin pebrel --features gpui-shell +cargo build --release --locked -p pebrel --bin pebrel --features gpui-shell ``` 确认 `pebrel.exe` 同目录存在产品附带的 `conpty.dll` 和 `OpenConsole.exe`。 @@ -88,8 +88,8 @@ python scripts/windows_memory_stress.py ` ```powershell python -m unittest scripts.tests.test_windows_memory_stress -cargo test --locked -p nebula_terminal --test windows_pty_lifecycle -- --nocapture -cargo test --locked -p nebula --bin pebrel --features gpui-shell process_tree:: -- --test-threads=1 +cargo test --locked -p pebrel_terminal --test windows_pty_lifecycle -- --nocapture +cargo test --locked -p pebrel --bin pebrel --features gpui-shell process_tree:: -- --test-threads=1 ``` 本地终端输出沿用现有有界 PTY 缓冲和有限历史网格。此次回收修复关闭了创建 diff --git a/tools/gen_fetch_art.py b/tools/gen_fetch_art.py index f064c8093..6bb740e11 100644 --- a/tools/gen_fetch_art.py +++ b/tools/gen_fetch_art.py @@ -17,7 +17,7 @@ import math -OUT_RS = r"D:\temp_build\nebula\nebula_app\src\window_context\nebula_fetch_art.rs" +OUT_RS = r"D:\temp_build\nebula\pebrel_app\src\window_context\nebula_fetch_art.rs" OUT_HTML = r"D:\SHARE\nebula_fetch_preview.html" W, H = 62, 19 diff --git a/tools/i18n-contract/Cargo.lock b/tools/i18n-contract/Cargo.lock index 25792529d..1ce5096f4 100644 --- a/tools/i18n-contract/Cargo.lock +++ b/tools/i18n-contract/Cargo.lock @@ -15,14 +15,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] -name = "nebula-settings" +name = "pebrel-settings" version = "2.5.0" [[package]] name = "pebrel-i18n-contract" version = "0.0.0" dependencies = [ - "nebula-settings", + "pebrel-settings", "serde", "serde_json", "windows-sys", diff --git a/tools/i18n-contract/Cargo.toml b/tools/i18n-contract/Cargo.toml index 47deb3b87..67be529eb 100644 --- a/tools/i18n-contract/Cargo.toml +++ b/tools/i18n-contract/Cargo.toml @@ -7,10 +7,10 @@ publish = false [workspace] [lib] -path = "../../nebula_app/tests/i18n_contract.rs" +path = "../../pebrel_app/tests/i18n_contract.rs" [dependencies] -nebula-settings = { path = "../../nebula_settings" } +pebrel-settings = { path = "../../pebrel_settings" } serde = "1" serde_json = "1" @@ -18,7 +18,7 @@ serde_json = "1" windows-sys = { version = "0.59", features = ["Win32_Globalization"] } [build-dependencies] -nebula-settings = { path = "../../nebula_settings" } +pebrel-settings = { path = "../../pebrel_settings" } serde = "1" serde_json = "1" diff --git a/tools/i18n-contract/build.rs b/tools/i18n-contract/build.rs index 09fa0c6dd..b2daa08db 100644 --- a/tools/i18n-contract/build.rs +++ b/tools/i18n-contract/build.rs @@ -1,8 +1,8 @@ -#[path = "../../nebula_app/build/i18n.rs"] +#[path = "../../pebrel_app/build/i18n.rs"] mod i18n; fn main() { let root = std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()); let output = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap()); - i18n::generate(&root.join("../../nebula_app/i18n"), &output.join("translations.rs")).unwrap(); + i18n::generate(&root.join("../../pebrel_app/i18n"), &output.join("translations.rs")).unwrap(); }