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 保留在存储中

token 数的输入

项 契约
字段 模型的「上下文」「最大输出」;压缩的「默认上下文窗口」
写法 正整数,可带 K、M 后缀:不分大小写,十进制(1M = 1000K);1.5K 这类小数倍数须得到整数;,、_ 被忽略
显示 读回同一个数的最短写法:128000 → 128K,2300000 → 2.3M,1048576 原样
读不出的写法 输入框标红;不保存
存储 整数

浏览器模块

纯 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.1.dev2

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.1.dev2
File Size Uploaded Provenance Actions
pyxis_harness_web_ui-0.1.1.dev2.tar.gz 170.0 kB Without provenance Details for pyxis_harness_web_ui-0.1.1.dev2.tar.gz

Built distribution (wheel)

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

Total release size: 344.5 kB

Release files / pyxis_harness_web_ui-0.1.1.dev2.tar.gz

Download URL pyxis_harness_web_ui-0.1.1.dev2.tar.gz
Size 170.0 kB
Tags Source
SHA-256 checksum
How to use checksums
96501f26c4469dce23b10a1e2bf578b311b6769152c3bef38a611bd2852f4f29
BLAKE2b-256 checksum
How to use checksums
d19d9774d25cd2a0db27c5cfa12733f847f4a532a34f00a02a184eb17e06bf29
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.1.dev2-py3-none-any.whl

Download URL pyxis_harness_web_ui-0.1.1.dev2-py3-none-any.whl
Size 174.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64734469da1426eb3ab99ff889a0291ae9c0d16d9ad19e039950b596f752229f
BLAKE2b-256 checksum
How to use checksums
9e719a24b60c974b85a3f7d6c31dab3716e8cf24c9d45f1dbb4f2070a76c6e42
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.1.dev2

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