harness-core 0.1.0

Shared types and traits for @agent-sh/harness-* Rust tools: ToolError, PermissionPolicy, ReadOperations
Documentation
  • Coverage
  • 12.86%
    9 out of 70 items documented0 out of 12 items with examples
  • Size
  • Source code size: 15.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 37s Average build duration of successful builds.
  • all releases: 1m 37s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • avifenesh/tools
    2 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • avifenesh

harness-core

Shared foundation for harness-* Rust tools — types, errors, permission policies.

Rust port of @agent-sh/harness-core. Part of the harness-* monorepo — see the top-level README for architectural context.

Install

[dependencies]
harness-core = "0.1"

Usage

use harness_core::{ToolError, ToolErrorCode, format_tool_error};

let err = ToolError::new(ToolErrorCode::NotFound, "File not found");
println!("{}", format_tool_error(&err)); // "Error [NOT_FOUND]: File not found"

Contract

Foundation crate; see the per-tool crates it supports for concrete contracts.

License

MIT © Avi Fenesh