Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyxis-harness-web-ui

Web UI 页面,以及供插件使用的客户端模块注册表。

项 值
条目 web-ui(base bundle)
服务 WebUIService,ctx.webui
注入 http
页面 ctx.http 上的 config.path
数据 <profile data>/web-ui/prefs.json

文件

文件 内容
__init__.py 导出
service.py WebUIService、Config、SLOTS、ClientModule、PrefsStore、路由
index.html 页面
vendor/ VENDOR_FILES 的脚本

服务

成员 契约
register_client(path, calls=, inject=) 为调用方提供 path;calls 应答 ctx.host.call
clients() 已注册的客户端模块:条目 id、修订号、calls
slots() 页面的扩展槽及其种类与 props(SLOTS)
prefs profile 的页面偏好(PrefsStore)

路由

路由 内容
GET / 页面;window.__PYH_BOOT__ 携带客户端模块清单
GET /plugins/boot.json 同一份清单;供未内嵌清单的页面获取
GET /plugins/{entry}/client.js 插件的浏览器模块(?rev=:文件的 mtime 与大小)
POST /plugins/{entry}/call/{m} JSON body → calls[m](args) → {"result": ...}
GET /vendor/{name} VENDOR_FILES 中的脚本,可缓存一年;其余 404
GET /api/webui/prefs {"unpinnedPanels": [ids]}
PUT /api/webui/prefs {"unpinnedPanels": [ids]} → 存储后的对象;body 非法 → 400

页面偏好

键 值
unpinnedPanels 列在「更多」菜单中的 sidebar.panellist id
unpinnedPanels 规则
数量 至多 200 个字符串
长度 每个至多 200 个字符
没有已注册面板的 id 保留在存储中

浏览器模块

纯 JavaScript,无打包器。

window.__PyhModules__.load({
  id: "<entry id>",
  factory(require) {
    const { h, icon, esc, toast } = require("pyxis-harness");
    return { apply(ctx) {
        ctx.slots.register({ slot: "main", key: "my-panel", label: "My panel", icon: "box" },
                           (el, props) => { el.textContent = "hi"; return () => {}; });
    } };
  },
});
id 规则
值 patch 条目的 id
只注册一个模块的文件 按其条目 id 接受
页面中的 ctx 成员
slots register(spec, mount?)
api api(path, init)
host call(method, args)
on on(event, fn);事件:session、run、health
effect effect(cleanup)
locale 属性
theme theme()
rightbar openTab(kind, {params})、openFile(path)、close(tabId)、isExpanded()、toggle()

Metadata

Release files for pyxis-harness-web-ui 0.1.0rc3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxis-harness-web-ui 0.1.0rc3
File Size Uploaded Provenance Actions
pyxis_harness_web_ui-0.1.0rc3.tar.gz 168.9 kB Without provenance Details for pyxis_harness_web_ui-0.1.0rc3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyxis-harness-web-ui 0.1.0rc3
File Interpreter ABI Platform Actions
pyxis_harness_web_ui-0.1.0rc3-py3-none-any.whl Python 3 none any Details for pyxis_harness_web_ui-0.1.0rc3-py3-none-any.whl

Total release size: 341.8 kB

Release files / pyxis_harness_web_ui-0.1.0rc3.tar.gz

Download URL pyxis_harness_web_ui-0.1.0rc3.tar.gz
Size 168.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2efeb9571e8686bfd7c8005fc0d9b28f5a1bd1b1fc2ccd4dd066c140966b21e8
BLAKE2b-256 checksum
How to use checksums
98c3c753e2cccc1d96a6309f4edc9ddd3af80bbc77b43f4efc8ee99767d7a82b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyxis_harness_web_ui-0.1.0rc3-py3-none-any.whl

Download URL pyxis_harness_web_ui-0.1.0rc3-py3-none-any.whl
Size 173.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d478a716cfde81426880dd665166ae6eff65725b00964b2c04bf310593300f77
BLAKE2b-256 checksum
How to use checksums
793d24a0ca6695ca3e95e5d572cd78855922b92bc2f3d94aa1de94ede90d70de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pyxis-harness-web-ui 0.1.0rc3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page