HARNBC 0.10.19F"��D&@E��c�����ܲ�_�X�}'�2��E@`�G7b��8����۞4D�զ�߂PX
JYb�Θ�
__escape_basic_string__harn_string_literal__toml_string_literal__strip_trailing_periods__render_harn_toml__render_tools_harn__render_main_harn__render_test_harn__render_readme__render_workflow_yaml__writemainharnessX$$$$$$((((((......777777tttttt�������������������� �� �� �� �� �� �������%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%X __escape_basic_string Resultvalue string k J��r�=�C l k J��r�=�C m k J��r�=�C m k J��r�=�C m k
J��r�=�C m k \\\replace"\"
\n
\r \t !!!!!""""""""""""""""""
!9Qivalue out __harn_string_literal Resultvalue string k J�_���s "__escape_basic_string%%%%%%%%%%%%%%%%%%%%%%%%%$$
''''''''''''''''00000000 0 value __toml_string_literal Resultvalue string k __harn_string_literal++++++++++(( value __strip_trailing_periods Resultvalue string lk l k Jrj�+L /k J���l&IǤ b k k Jrj�+L J��Ub�� m
k len . ends_with substringl00000011111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222 244444..l
###((((((((((((((((((((((!!!!!!!!!!!!!!!((((((((((((((((((((((((((
#?NOvalue out __render_harn_toml Resultpackage_name string description string
harn_range string �+k J,=�8�}�1 l k J,=�8�}�1 l k J,=�8�}�1 l k J,=�8�}�1 l k k k k
k
k k
__toml_string_literalhttps://github.com/OWNER//releases/tag/v0.1.0[package]
name =
version = "0.1.0"
description = license = "MIT OR Apache-2.0"
repository =
provenance = harn = ""
docs_url = "docs/api.md"
!permissions = ["tool:read_only"]
[exports]
tools = "lib/tools.harn"
[[package.tools]]
name = module = "lib/tools.harn"
symbol = "tools"
[package.tools.input_schema]
type = "object"
required = ["text"]
-[package.tools.input_schema.properties.text]
type = "string"
description = "Text to echo."
[package.tools.output_schema]
[package.tools.annotations]
kind = "read"
side_effect_level = "read_only"
'[package.tools.annotations.arg_schema]
[dependencies]
�+888888888888888888999999999999999999::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;<<<>>>>????@@@@AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYYZZZZ[[[[\\\\]]]]^^^^____````aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnooooppppqqqqqq77�+%%%%%%%%%%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&DDDDDDDDDDDDDDDDDDD&&&DDDDSSSSSSSSSSSSSSSSSSS
; *+@DEZ^b f
jnr
vz~���������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/�� 0�1�2�
3�4�5�6�7�8�"9�&:package_name description
harn_range pkg desc repo prov __render_tools_harn Resultpackage_name string handler string description string �k J�A��y<d l k J�A��y<d l k J!=��Ñص l k k
k k k
!k " #__harn_string_literal__strip_trailing_periods/** . */
pub fn (args) {
& const input = schema_expect(args, {
type: "object",
properties: {
text: {type: "string"}
},
required: ["text"]
})
return input.text
}
'/** Return a tool registry containing ``. */
pub fn tools(registry = nil) {
( let reg = registry ?? tool_registry()
reg = tool_define(reg, , , {
parameters: {
text: {
type: "string",
% description: "Text to echo."
}
returns: {type: "string"},
annotations: {
kind: "read",
& side_effect_level: "read_only",
' arg_schema: {required: ["text"]}
handler:
return reg
�uuuuuuuuuuuuuuuuuuvvvvvvvvvvvvvvvvvvzzzzzzzzzzzzzzzzzz{{{{{{{{{{{||||}}}}~~~~������������������������������������������������������������������������������������������������������������������������������������������������������tt�++++++++++++++++++******************000000000000000000
!!!! . '<@DHLPT X
\`d
hlptx|������������� �!�"�#�$�%�&�'�(�)�*�+�,�-package_name handler description tool_name desc_lit handler_doc __render_main_harn Resultpackage_name string =k J�A��y<d l k
__harn_string_literal�
import { agent_dispatch_tool_call } from "std/agent/primitives"
import { tools } from "lib/tools"
pipeline default() {
const registry = tools()
let text = "hello"
if len(argv) > 0 {
text = argv[0]
}
const result = agent_dispatch_tool_call({
name: ,
arguments: {text: text}
}, registry)
if !result.ok {
8 throw (result.error?.message ?? "tool call failed")
}
log(result.rendered_result)
}
=�������������������������������������������������������������=++++++++++++++++++
$(,048 package_name tool_name __render_test_harn Resultpackage_name string ident string ik J�A��y<d l k k
k
__harn_string_literaltimport { agent_dispatch_tool_call } from "std/agent/primitives"
import { tools } from "../lib/tools"
pipeline test__tool(task) {
const registry = tools()
( const ok = agent_dispatch_tool_call({
name: ,
arguments: {text: "hello"}
}, registry)
> assert(ok.ok, ok.error?.message ?? "tool call should pass")
) assert_eq(ok.rendered_result, "hello")
) const bad = agent_dispatch_tool_call({
arguments: {}
B assert(!bad.ok, "schema validation should reject missing text")
}
i������������������������������������������������������������������������������������������������������ؿ�i++++++++++++++++++
$(,048 <
@DH
LPTX\`dpackage_name ident tool_name __render_readme Resultpackage_name string description string � k k
k
k #
## Develop
```bash
harn test tests/
harn package check
harn package docs --check
harn package pack --dry-run
```
## Install into another project
harn add ../
harn install
3Consumers import the stable registry builder with:
```harn
import { tools } from "/tools"
�����������������������������������������������������������������������������������������������������������������������������������ۃ
"&* .
26:
>BFJNRVZ^bfjnrvz~package_name description __render_workflow_yaml Result ��name: Harn tool package
on:
pull_request:
push:
branches: [main]
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-binstall
- run: cargo binstall harn-cli --no-confirm
- run: harn install --locked --offline || harn install
- run: harn test tests/
- run: harn package check
- run: harn package docs --check
- run: harn package pack --dry-run
�� �� �� �� �� �� ��
__write Resultharness Harness dest string rel string content string �� k k JM���P�K l k J���L�K l k @k &