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 数的输入

项 契约
字段 模型的「上下文」「最大输出」;压缩的「默认上下文窗口」
模型的空格 占位符是生效的默认值:压缩的 default_context_window、模型注册表的 default_max_tokens
写法 正整数,可带 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.dev9

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

Built distribution (wheel)

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

Total release size: 353.7 kB

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

Download URL pyxis_harness_web_ui-0.1.1.dev9.tar.gz
Size 174.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8253f4198316240baa651ebf0179a23466dffa09edbc822671134e8ee61f9d65
BLAKE2b-256 checksum
How to use checksums
70042e2fffd3fd26d41eff9cd7f7c14f8662583231180d31a13d6820f39036d9
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.dev9-py3-none-any.whl

Download URL pyxis_harness_web_ui-0.1.1.dev9-py3-none-any.whl
Size 179.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26de7495cc828a8a788f27403fb915231adfce37b285265e351182fe2631c4c9
BLAKE2b-256 checksum
How to use checksums
6baa51d5369eef0dad18388bff64e7432432a88c2ffd66e69b5327c64ce75bcf
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.dev9

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