daemon

package
v0.2.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: GPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package daemon 是 sctl serve 的组装层:一个 cago Component,把可配置监听地址的 桥接 WS server(internal/daemon/bridge)、本机控制 API(internal/daemon/controlapi)、 页面自动化组件(internal/daemon/page)、原始 CDP 端点(internal/daemon/cdpendpoint)与持久化存储(internal/daemon/store) 接到同一个 listener 上。 扩展 ↔ daemon 协议见 docs/protocol.md。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component(version, address string) *daemonComponent

Component 返回桥接 daemon 组件,注册到 cago 应用(用 RegistryCancel)。 version 注入 hello 消息的 daemonVersion。

Types

This section is empty.

Directories

Path Synopsis
Package auth 实现桥接协议的认证原语:双向 HMAC 挑战应答握手(会话/配对两种模式)、 配对码派生(HKDF)与长期密钥下发(AES-256-GCM)。
Package auth 实现桥接协议的认证原语:双向 HMAC 挑战应答握手(会话/配对两种模式)、 配对码派生(HKDF)与长期密钥下发(AES-256-GCM)。
Package cdpendpoint 为每个已配对的 sctl Browser 实例提供一个原始 CDP 端点:Playwright connectOverCDP 与 Puppeteer connect 连上它,就能驱动这个浏览器里能附加的全部标签页(docs/protocol.md「Raw CDP endpoint」)。
Package cdpendpoint 为每个已配对的 sctl Browser 实例提供一个原始 CDP 端点:Playwright connectOverCDP 与 Puppeteer connect 连上它,就能驱动这个浏览器里能附加的全部标签页(docs/protocol.md「Raw CDP endpoint」)。
Package controlapi 实现 daemon listener 上的本机内部控制 API(/control/*)。
Package controlapi 实现 daemon listener 上的本机内部控制 API(/control/*)。
Package page 是 daemon 内的页面自动化组件:把 `sctl page …` 与 page_* MCP 工具的一次动作翻译成 发往浏览器实例的 CDP 命令,并在 daemon 内存里保存跨命令的页面状态(调试器附加、空闲断开计时、快照的元素引用表)。
Package page 是 daemon 内的页面自动化组件:把 `sctl page …` 与 page_* MCP 工具的一次动作翻译成 发往浏览器实例的 CDP 命令,并在 daemon 内存里保存跨命令的页面状态(调试器附加、空闲断开计时、快照的元素引用表)。
Package ratelimit 提供按 key 的滑动窗口限流,用于桥接的配对尝试节流。
Package ratelimit 提供按 key 的滑动窗口限流,用于桥接的配对尝试节流。
Package store 是守卫侧的持久化层,以原子替换将扩展配对的长期共享密钥写入数据目录。
Package store 是守卫侧的持久化层,以原子替换将扩展配对的长期共享密钥写入数据目录。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL