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 原样
读不出的写法 输入框标红;不保存
存储 整数

token 数的显示

位置 写法
统计条、每轮用量行 紧凑:517、12.2K、517K、1.2M
用量明细 精确,带千分位,单位 tok
上下文占用明细 紧凑;估算值前加 ~
缓存命中 整数百分比;未全部命中时不显示为 100
上下文占用 取值
已用 最近一次模型应答报告的输入 token;没有报告时为三部分估算之和
窗口 会话的 context_window
占用条 长度为已用的百分比;各段按 stats.context 三部分的比例划分

浏览器模块

纯 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.dev3

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

Built distribution (wheel)

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

Total release size: 348.2 kB

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

Download URL pyxis_harness_web_ui-0.1.1.dev3.tar.gz
Size 171.8 kB
Tags Source
SHA-256 checksum
How to use checksums
38dff9377b65966b3734af15ab7e6dde44ef495129ac6c80324328fdd8a1ed1d
BLAKE2b-256 checksum
How to use checksums
8cdcf9ab4746a538bd17e63bebf7c8eaf5c21d82bdce5dc0ac98c0db777aa534
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.dev3-py3-none-any.whl

Download URL pyxis_harness_web_ui-0.1.1.dev3-py3-none-any.whl
Size 176.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
028ba4fb1befbd792b234380d102c2154e58fd92c78281c70c8cc730fa635fbd
BLAKE2b-256 checksum
How to use checksums
f2f668f223e336bbe19b26effde42764da3fd19b04991aa032e49e6f49ba3c5d
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.dev3

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