Skip to main content
Pre-release

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

pyxis-harness-workspace

工作区提供者:工作区注册表与默认的 deepagents backend。

项 值
条目 workspace(base bundle)
插件 apply(函数插件)
提供 ctx.workspace(Workspaces)、ctx.backend
注入 tools
数据 记住的工作区:ctx.store

文件

文件 内容
__init__.py 导出
config.py Config
plugin.py apply:提供 ctx.workspace 与 ctx.backend
workspace.py Workspace、WorkspaceError、DEFAULT_WORKSPACE
registry.py Workspaces:打开、backend、最近使用、选择器、浏览

默认工作区

项 契约
根目录 profile.documents 下的 default-workspace/:~/Documents/pyharness/<profile>/default-workspace/;不存在时创建
配置、环境变量、启动目录 不参与
<profile>/ 目录的其余内容 不在 agent 的文件工具范围内
没有 profile 的 harness 进程的当前目录

Backend

配置 backend agent 的文件工具
shell: false FilesystemBackend 工作区根上的 ls、read_file、write_file …
shell: true LocalShellBackend 同上,加 execute;需审批,shell_approval: false 时免审批

virtual_mode:agent 路径以 / 起始,/ = 根;路径不出根。

harness home 与根

关系 结果
home 在根之内 文件工具在 home 上被拒绝(读与写)
根在 home 之内 拒绝

Workspaces(ctx.workspace,registry.py)

成员 契约
default 配置的工作区(config.root);root、resolve … 委托给它
open(path) path 的已校验 Workspace;None 为默认工作区
backend_for(path, shell) 工作区的 backend,带缓存;shell=False 给出仅文件系统的 backend
recent() / remember / forget 会话用过的工作区;存于 ctx.store
rename(path, name) 工作区的显示名;None 恢复为目录名
browse(path) 一层目录:仅子目录;供应用内选择器使用
picker() native(本机的系统文件夹对话框)或 browse
pick(prompt) 打开系统文件夹对话框;所选的绝对路径,或 None
平台 原生对话框
macOS osascript choose folder
Windows PowerShell(powershell,否则 pwsh)的 FolderBrowserDialog:-STA;以置顶窗体为 owner,对话框出现在浏览器之前;路径以无 BOM 的 UTF-8 输出;不另开控制台窗口;两者都不存在时为 browse
Linux zenity 或 kdialog;有显示环境时

Workspace(workspace.py)

一个工作区:根目录、agent 路径解析、受保护路径。

成员 契约
resolve(path) agent 路径的真实路径;在根之外或在 home 之内 → ValueError
permissions() deepagents 的 FilesystemPermission 规则:拒绝受保护路径
describe() {root, name, virtual_mode, protected}

Metadata

Release files for pyxis-harness-workspace 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-workspace 0.1.0rc3
File Size Uploaded Provenance Actions
pyxis_harness_workspace-0.1.0rc3.tar.gz 8.3 kB Without provenance Details for pyxis_harness_workspace-0.1.0rc3.tar.gz

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / pyxis_harness_workspace-0.1.0rc3.tar.gz

Download URL pyxis_harness_workspace-0.1.0rc3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e00c97b2fd77a26d71705356962b1942e6a6bd9e71d4d64245f527687ffee233
BLAKE2b-256 checksum
How to use checksums
98e9258d64088d40ed9add75ac5ca71068a777238798be01159a19a4a71e1398
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_workspace-0.1.0rc3-py3-none-any.whl

Download URL pyxis_harness_workspace-0.1.0rc3-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4107e3995902b4e91b6e220ae1e51d41bc1c53fd46723597966ebb393921157
BLAKE2b-256 checksum
How to use checksums
97330b1c7c5a67b6752abf49459507f3ab6503963acd248350cb0e8c262b31c5
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-workspace 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