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 FolderBrowserDialog
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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
pyxis_harness_workspace-0.1.0rc1.tar.gz 7.7 kB Without provenance Details for pyxis_harness_workspace-0.1.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 19.3 kB

Release files / pyxis_harness_workspace-0.1.0rc1.tar.gz

Download URL pyxis_harness_workspace-0.1.0rc1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
91998c1c76e484373ea38cc80548823f24ddd60f00e3b2eff750d4a80b10d732
BLAKE2b-256 checksum
How to use checksums
7a0844fa06ea847e3939ac530caebc7909bdbbc54a1a05de6ca769479e767177
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.0rc1-py3-none-any.whl

Download URL pyxis_harness_workspace-0.1.0rc1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2fcaf53571a260b942dc2b1d9ded9523f78545545cfad784eaa43986fd0c2fd
BLAKE2b-256 checksum
How to use checksums
575a2fcccc3e2984fe481c60d4284a5cda043b6ac6b7abe06e07b3d61393e0bd
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.0rc1

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