Skip to content

Remove retired relay provenance - #1

Merged
Mile-Away merged 1 commit into
mainfrom
codex/independent-provenance-cleanup
Sep 12, 2026
Merged

Remove retired relay provenance#1
Mile-Away merged 1 commit into
mainfrom
codex/independent-provenance-cleanup

Conversation

@Mile-Away

@Mile-Away Mile-Away commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rename the private capturer FFI boundary to SciLaxy-owned symbols
  • remove retired environment and endpoint names from smoke tooling
  • correct the macOS capturer documentation to HEVC

Verification

  • affected Rust crates pass cargo check
  • Windows capturer tests pass (6/6)
  • Swift/Rust FFI symbols match exactly (10/10)
  • independent and thermo-nuclear staged-diff reviews passed

Sourcery 摘要

移除已弃用的中继来源信息,并使采集器接口、HEVC 文档和冒烟测试工具与 SciLaxy 命名方案保持一致。

改进:

  • 将 macOS 采集器的 Rust/Swift FFI 符号及相关内部标识符重命名为 SciLaxy 所有的名称。
  • 更新采集器消息和示例,以统一描述 HEVC 输出。
  • 确保在 macOS 以外的平台运行时,macOS 采集器示例能够安全处理。

文档:

  • 更新冒烟测试工具,以使用当前的 SciLaxy 环境名称和端点名称。

杂项:

  • 从采集器和冒烟测试工具代码中移除已弃用的 Xyzen 和中继来源信息引用。
Original summary in English

Summary by Sourcery

Remove retired relay provenance and align capturer interfaces, HEVC documentation, and smoke tooling with the SciLaxy naming scheme.

Enhancements:

  • Rename the macOS capturer’s Rust/Swift FFI symbols and related internal identifiers to SciLaxy-owned names.
  • Update capturer messaging and examples to consistently describe HEVC output.
  • Make the macOS capturer example platform-safe when run outside macOS.

Documentation:

  • Update smoke tooling to use current SciLaxy environment and endpoint names.

Chores:

  • Remove retired Xyzen and relay provenance references from capturer and smoke-tooling code.

@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

审查者指南

该 PR 通过将 macOS 捕获器的 Rust/Swift FFI ABI 及相关标识符重命名为 SciLaxy 所有的名称,移除了已废弃的来源标识;更新捕获器文档以准确描述 HEVC 输出;并将冒烟测试工具中的 XYZEN 环境变量和服务标签迁移为 SCILAXY 对应项。

使用重命名后的 FFI 进行 HEVC 捕获的时序图

sequenceDiagram
    participant Rust as Rust capturer
    participant Swift as Swift MacCapturer
    participant WS as Stream publisher

    Rust->>Swift: scilaxy_capturer_start(width, height, fps, bitrateKbps, displayId, ctx, cb)
    Swift-->>Rust: HEVC NAL callback
    Rust->>WS: Send HEVC NAL binary frame
Loading

文件级变更

变更 详细信息 文件
将 macOS 捕获器的私有 FFI 边界及相关运行时标识符重命名为 SciLaxy 所有的符号。
  • 将所有 Rust extern 声明和调用位置更新为新的 scilaxy_capturer_* ABI。
  • 重命名 Swift 回调/API 符号、C 导出项、回调类型、日志标签和分发队列标签。
  • 更新相关的显示器选择文档,以及用于扩展后启动签名的 dump 示例。
  • 添加非 macOS 回退 main,使 dump 示例在 macOS 之外仍可构建。
crates/mac-capturer/src/lib.rs
crates/mac-capturer/swift/MacCapturer.swift
crates/mac-capturer/examples/dump.rs
crates/win-capturer/src/display.rs
修正捕获器文档和 CLI 描述,将输出格式标识为 HEVC 而不是 H264。
  • 将 crate 级别、CLI、示例和 NAL 文档中的 H264 更新为 HEVC。
  • 将 dump 输出文件名示例从 .h264 改为 .h265
  • 将 Swift 管线注释和查看器头部文档更新为 HEVC 术语。
crates/capturer/src/main.rs
crates/mac-capturer/src/lib.rs
crates/mac-capturer/examples/dump.rs
crates/mac-capturer/swift/MacCapturer.swift
移除已废弃的 XYZEN 冒烟测试配置和服务命名。
  • 将冒烟测试工具迁移为使用 SCILAXY_* 主机和端口变量,包括 rendezvous 专用的 WebSocket 端口。
  • 将冒烟测试描述和成功输出更新为 SciLaxy 服务名称。
  • 保留现有默认值和请求路径,仅更改已废弃的配置命名空间。
scripts/dump_view.py
scripts/smoke_stream.py
scripts/smoke_ws_register.py
scripts/smoke_ws_via_nginx.py

提示和命令

与 Sourcery 交互

  • 触发新的审查: 在 pull request 中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 从审查评论生成 GitHub issue: 回复审查评论,请 Sourcery 根据该评论创建 issue。你也可以在审查评论中回复 @sourcery-ai issue,以从该评论创建 issue。
  • 生成 pull request 标题: 在 pull request 标题的任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在 pull request 中评论 @sourcery-ai title,以随时生成或重新生成标题。
  • 生成 pull request 摘要: 在 pull request 正文的任意位置写入 @sourcery-ai summary,即可在指定位置随时生成 PR 摘要。你也可以在 pull request 中评论 @sourcery-ai summary,以随时生成或重新生成摘要。
  • 生成审查者指南: 在 pull request 中评论 @sourcery-ai guide,即可随时生成或重新生成审查者指南。
  • 解决所有 Sourcery 评论: 在 pull request 中评论 @sourcery-ai resolve,即可解决所有 Sourcery 评论。如果你已经处理完所有评论且不想再看到它们,此功能非常有用。
  • 忽略所有 Sourcery 审查: 在 pull request 中评论 @sourcery-ai dismiss,即可忽略所有现有的 Sourcery 审查。如果你希望使用新的审查重新开始,此功能尤其有用——别忘了评论 @sourcery-ai review 来触发新的审查!

自定义你的使用体验

访问你的控制面板,以便:

  • 启用或禁用审查功能,例如 Sourcery 生成的 pull request 摘要、审查者指南等。
  • 更改审查语言。
  • 添加、移除或编辑自定义审查说明。
  • 调整其他审查设置。

获取帮助

Original review guide in English

Reviewer's Guide

The PR removes retired provenance by renaming the macOS capturer’s Rust/Swift FFI ABI and associated identifiers to SciLaxy-owned names, updates capturer documentation to accurately describe HEVC output, and migrates smoke tooling from XYZEN environment variables and service labels to SCILAXY equivalents.

Sequence diagram for HEVC capture through the renamed FFI

sequenceDiagram
    participant Rust as Rust capturer
    participant Swift as Swift MacCapturer
    participant WS as Stream publisher

    Rust->>Swift: scilaxy_capturer_start(width, height, fps, bitrateKbps, displayId, ctx, cb)
    Swift-->>Rust: HEVC NAL callback
    Rust->>WS: Send HEVC NAL binary frame
Loading

File-Level Changes

Change Details Files
Renamed the macOS capturer’s private FFI boundary and related runtime identifiers to SciLaxy-owned symbols.
  • Updated every Rust extern declaration and call site to the new scilaxy_capturer_* ABI.
  • Renamed Swift callback/API symbols, C exports, callback types, logging labels, and dispatch queue label.
  • Updated related display-selection documentation and the dump example for the expanded start signature.
  • Added a non-macOS fallback main so the dump example remains buildable outside macOS.
crates/mac-capturer/src/lib.rs
crates/mac-capturer/swift/MacCapturer.swift
crates/mac-capturer/examples/dump.rs
crates/win-capturer/src/display.rs
Corrected capturer documentation and CLI descriptions to identify HEVC output rather than H264.
  • Updated crate-level, CLI, example, and NAL documentation from H264 to HEVC.
  • Changed the dump output filename example from .h264 to .h265.
  • Updated the Swift pipeline comments and viewer-header documentation to HEVC terminology.
crates/capturer/src/main.rs
crates/mac-capturer/src/lib.rs
crates/mac-capturer/examples/dump.rs
crates/mac-capturer/swift/MacCapturer.swift
Removed retired XYZEN smoke-test configuration and service naming.
  • Migrated smoke tooling to SCILAXY_* host and port variables, including the rendezvous-specific WebSocket port.
  • Updated smoke-test descriptions and success output to SciLaxy service names.
  • Preserved existing defaults and request paths while changing only the retired configuration namespace.
scripts/dump_view.py
scripts/smoke_stream.py
scripts/smoke_ws_register.py
scripts/smoke_ws_via_nginx.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿——我发现了 1 个问题

面向 AI 代理的提示
请处理本次代码审查中的评论:

## 单独评论

### 评论 1
<location path="scripts/dump_view.py" line_range="11" />
<code_context>
+PORT = int(os.environ.get("SCILAXY_STREAM_PORT", "21130"))
 peer = sys.argv[1] if len(sys.argv) > 1 else "test123"
 secs = float(sys.argv[2]) if len(sys.argv) > 2 else 3.0
 out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h264"
</code_context>
<issue_to_address>
**小问题:** 当省略输出路径时,`dump_view.py` 会将 HEVC NAL 流写入 `/tmp/sample.h264`,因此生成的文件会被标记为 H.264,尽管 macOS 捕获器现在输出的是 HEVC。

**触发条件:** 在不提供可选输出路径参数的情况下运行 `dump_view.py`**建议修复:** 将默认路径改为 HEVC 扩展名,例如 `/tmp/sample.h265``/tmp/sample.hevc````suggestion
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h265"
```
</issue_to_address>

Sourcery 对开源项目免费——如果您喜欢我们的审查结果,请考虑分享它们 ✨
Original comment in English

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="scripts/dump_view.py" line_range="11" />
<code_context>
+PORT = int(os.environ.get("SCILAXY_STREAM_PORT", "21130"))
 peer = sys.argv[1] if len(sys.argv) > 1 else "test123"
 secs = float(sys.argv[2]) if len(sys.argv) > 2 else 3.0
 out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h264"
</code_context>
<issue_to_address>
**nitpick:** When the output path is omitted, `dump_view.py` writes the HEVC NAL stream to `/tmp/sample.h264`, so the generated file is labeled as H.264 even though the macOS capturer now emits HEVC.

**Triggers:** When `dump_view.py` is run without its optional output-path argument.

**Suggested fix:** Change the default path to an HEVC extension such as `/tmp/sample.h265` or `/tmp/sample.hevc`.

```suggestion
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h265"
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread scripts/dump_view.py
PORT = int(os.environ.get("SCILAXY_STREAM_PORT", "21130"))
peer = sys.argv[1] if len(sys.argv) > 1 else "test123"
secs = float(sys.argv[2]) if len(sys.argv) > 2 else 3.0
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h264"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小问题: 当省略输出路径时,dump_view.py 会将 HEVC NAL 流写入 /tmp/sample.h264,因此生成的文件会被标记为 H.264,尽管 macOS 捕获器现在输出的是 HEVC。

触发条件: 在不提供可选输出路径参数的情况下运行 dump_view.py

建议修复: 将默认路径改为 HEVC 扩展名,例如 /tmp/sample.h265/tmp/sample.hevc

Suggested change
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h264"
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h265"
Original comment in English

nitpick: When the output path is omitted, dump_view.py writes the HEVC NAL stream to /tmp/sample.h264, so the generated file is labeled as H.264 even though the macOS capturer now emits HEVC.

Triggers: When dump_view.py is run without its optional output-path argument.

Suggested fix: Change the default path to an HEVC extension such as /tmp/sample.h265 or /tmp/sample.hevc.

Suggested change
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h264"
out_path = sys.argv[3] if len(sys.argv) > 3 else "/tmp/sample.h265"

@Mile-Away
Mile-Away merged commit b39c881 into main Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant