harnessweaver-cli 0.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- harnessweaver_cli/__init__.py +7 -0
- harnessweaver_cli/_load.py +119 -0
- harnessweaver_cli/_yaml.py +49 -0
- harnessweaver_cli/add.py +238 -0
- harnessweaver_cli/dev.py +141 -0
- harnessweaver_cli/doctor.py +185 -0
- harnessweaver_cli/evals.py +276 -0
- harnessweaver_cli/gateway.py +301 -0
- harnessweaver_cli/main.py +62 -0
- harnessweaver_cli/plugins.py +105 -0
- harnessweaver_cli/policy.py +143 -0
- harnessweaver_cli/py.typed +0 -0
- harnessweaver_cli/replay.py +75 -0
- harnessweaver_cli/scaffold.py +158 -0
- harnessweaver_cli/sidecar.py +48 -0
- harnessweaver_cli/spec.py +160 -0
- harnessweaver_cli/templates/_dev/compose.yaml +183 -0
- harnessweaver_cli/templates/_dev/otel-collector.yaml +25 -0
- harnessweaver_cli/templates/_plugin/README.md +26 -0
- harnessweaver_cli/templates/_plugin/pyproject.toml +26 -0
- harnessweaver_cli/templates/_plugin/src/__ns___harness/__init__.py +20 -0
- harnessweaver_cli/templates/_plugin/src/__ns___harness/guards.py +48 -0
- harnessweaver_cli/templates/_plugin/src/__ns___harness/py.typed +0 -0
- harnessweaver_cli/templates/_plugin/tests/test_guards.py +26 -0
- harnessweaver_cli/templates/agent/README.md +18 -0
- harnessweaver_cli/templates/agent/app/__init__.py +1 -0
- harnessweaver_cli/templates/agent/app/agent.py +12 -0
- harnessweaver_cli/templates/agent/app/main.py +19 -0
- harnessweaver_cli/templates/agent/app/tools.py +28 -0
- harnessweaver_cli/templates/agent/evals/redteam.yaml +17 -0
- harnessweaver_cli/templates/agent/harness.offline.yaml +16 -0
- harnessweaver_cli/templates/agent/harness.yaml +38 -0
- harnessweaver_cli/templates/agent/pyproject.toml +13 -0
- harnessweaver_cli/templates/agent/tests/test_agent.py +54 -0
- harnessweaver_cli/templates/agent/tools/lookup_order.tool.yaml +15 -0
- harnessweaver_cli/templates/agent/tools/refund_payment.tool.yaml +17 -0
- harnessweaver_cli/templates/chat/README.md +15 -0
- harnessweaver_cli/templates/chat/app/__init__.py +1 -0
- harnessweaver_cli/templates/chat/app/chat.py +32 -0
- harnessweaver_cli/templates/chat/app/main.py +33 -0
- harnessweaver_cli/templates/chat/evals/golden.yaml +10 -0
- harnessweaver_cli/templates/chat/harness.offline.yaml +12 -0
- harnessweaver_cli/templates/chat/harness.yaml +39 -0
- harnessweaver_cli/templates/chat/pyproject.toml +13 -0
- harnessweaver_cli/templates/chat/tests/test_chat.py +63 -0
- harnessweaver_cli/templates/extraction/README.md +16 -0
- harnessweaver_cli/templates/extraction/app/__init__.py +1 -0
- harnessweaver_cli/templates/extraction/app/main.py +21 -0
- harnessweaver_cli/templates/extraction/app/models.py +20 -0
- harnessweaver_cli/templates/extraction/evals/golden.yaml +12 -0
- harnessweaver_cli/templates/extraction/harness.offline.yaml +18 -0
- harnessweaver_cli/templates/extraction/harness.yaml +33 -0
- harnessweaver_cli/templates/extraction/prompts/extract@1.md +7 -0
- harnessweaver_cli/templates/extraction/pyproject.toml +13 -0
- harnessweaver_cli/templates/extraction/tests/test_extract.py +56 -0
- harnessweaver_cli/templates/rag/README.md +17 -0
- harnessweaver_cli/templates/rag/app/__init__.py +1 -0
- harnessweaver_cli/templates/rag/app/flow.py +29 -0
- harnessweaver_cli/templates/rag/app/main.py +19 -0
- harnessweaver_cli/templates/rag/data/kb.yaml +13 -0
- harnessweaver_cli/templates/rag/evals/golden.yaml +14 -0
- harnessweaver_cli/templates/rag/harness.offline.yaml +13 -0
- harnessweaver_cli/templates/rag/harness.yaml +50 -0
- harnessweaver_cli/templates/rag/prompts/answer@1.md +9 -0
- harnessweaver_cli/templates/rag/pyproject.toml +13 -0
- harnessweaver_cli/templates/rag/tests/test_answer.py +50 -0
- harnessweaver_cli/templates/workflow/README.md +16 -0
- harnessweaver_cli/templates/workflow/app/__init__.py +1 -0
- harnessweaver_cli/templates/workflow/app/main.py +20 -0
- harnessweaver_cli/templates/workflow/app/steps.py +49 -0
- harnessweaver_cli/templates/workflow/evals/golden.yaml +9 -0
- harnessweaver_cli/templates/workflow/harness.offline.yaml +12 -0
- harnessweaver_cli/templates/workflow/harness.yaml +39 -0
- harnessweaver_cli/templates/workflow/prompts/classify@1.md +4 -0
- harnessweaver_cli/templates/workflow/prompts/reply@1.md +5 -0
- harnessweaver_cli/templates/workflow/prompts/summarize@1.md +3 -0
- harnessweaver_cli/templates/workflow/pyproject.toml +13 -0
- harnessweaver_cli/templates/workflow/tests/test_pipeline.py +32 -0
- harnessweaver_cli/tools.py +72 -0
- harnessweaver_cli-0.7.1.dist-info/METADATA +83 -0
- harnessweaver_cli-0.7.1.dist-info/RECORD +84 -0
- harnessweaver_cli-0.7.1.dist-info/WHEEL +4 -0
- harnessweaver_cli-0.7.1.dist-info/entry_points.txt +2 -0
- harnessweaver_cli-0.7.1.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""``harnessweaver tools pin``: pin each tool manifest's definition (S2, ADR-0028).
|
|
2
|
+
|
|
3
|
+
A pin is the ``definition_digest`` of what a model is told about a tool (its
|
|
4
|
+
name, description and input schema). The governor blocks a tool whose
|
|
5
|
+
definition no longer matches its pin, so a changed tool can't slip into
|
|
6
|
+
production unreviewed (rug-pull defense). Pin after reviewing a change.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Annotated
|
|
10
|
+
|
|
11
|
+
import typer
|
|
12
|
+
from ruamel.yaml.comments import CommentedMap
|
|
13
|
+
|
|
14
|
+
from harnessweaver.core.errors import HarnessError
|
|
15
|
+
from harnessweaver.modules.tools import load_manifest, manifest_files
|
|
16
|
+
from harnessweaver.spec import load_spec
|
|
17
|
+
from harnessweaver_cli import _yaml
|
|
18
|
+
from harnessweaver_cli._load import fail, spec_path
|
|
19
|
+
from harnessweaver_cli.spec import Env, Path_, ProfileDirs
|
|
20
|
+
|
|
21
|
+
__all__ = ["tools_app"]
|
|
22
|
+
|
|
23
|
+
tools_app = typer.Typer(help="Work with tool manifests.", no_args_is_help=True)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _pin(spec: CommentedMap, digest: str) -> None:
|
|
27
|
+
"""Set ``definition_digest`` right after ``input_schema``, where a reader looks for it."""
|
|
28
|
+
keys = list(spec)
|
|
29
|
+
if "definition_digest" in spec:
|
|
30
|
+
spec["definition_digest"] = digest
|
|
31
|
+
elif "input_schema" in spec:
|
|
32
|
+
spec.insert(keys.index("input_schema") + 1, "definition_digest", digest)
|
|
33
|
+
else:
|
|
34
|
+
spec["definition_digest"] = digest
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@tools_app.command("pin")
|
|
38
|
+
def pin(
|
|
39
|
+
path: Path_ = None,
|
|
40
|
+
names: Annotated[
|
|
41
|
+
list[str] | None, typer.Option("--tool", help="Pin only this tool; repeatable.")
|
|
42
|
+
] = None,
|
|
43
|
+
env: Env = None,
|
|
44
|
+
profile_dir: ProfileDirs = None,
|
|
45
|
+
) -> None:
|
|
46
|
+
"""Write each manifest's current ``definition_digest`` into it, comments kept."""
|
|
47
|
+
target = spec_path(path)
|
|
48
|
+
try:
|
|
49
|
+
effective = load_spec(target, env=env, profile_dirs=profile_dir or [])
|
|
50
|
+
globs = effective.spec.tools.manifests
|
|
51
|
+
if not globs:
|
|
52
|
+
raise fail("the spec has no tools.manifests to pin")
|
|
53
|
+
files = manifest_files(globs, target.resolve().parent)
|
|
54
|
+
manifests = [(file, load_manifest(file)) for file in files]
|
|
55
|
+
except HarnessError as exc:
|
|
56
|
+
raise fail(exc) from None
|
|
57
|
+
wanted = set(names or [])
|
|
58
|
+
unknown = wanted - {m.name for _, m in manifests}
|
|
59
|
+
if unknown:
|
|
60
|
+
raise fail(f"no manifest for {', '.join(sorted(unknown))}")
|
|
61
|
+
for file, manifest in manifests:
|
|
62
|
+
if wanted and manifest.name not in wanted:
|
|
63
|
+
continue
|
|
64
|
+
pinned, computed = manifest.spec.definition_digest, manifest.computed_digest()
|
|
65
|
+
if pinned == computed:
|
|
66
|
+
typer.echo(f"ok {manifest.name} is pinned")
|
|
67
|
+
continue
|
|
68
|
+
document = _yaml.read(file)
|
|
69
|
+
_pin(document["spec"], computed)
|
|
70
|
+
_yaml.write(file, document)
|
|
71
|
+
verb = "pinned" if pinned is None else "re-pinned"
|
|
72
|
+
typer.echo(f"{verb:<7} {manifest.name}: {computed}")
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: harnessweaver-cli
|
|
3
|
+
Version: 0.7.1
|
|
4
|
+
Summary: Developer tooling for HarnessWeaver: the harnessweaver command.
|
|
5
|
+
Author-email: Muthu Kumaran R <rsmk7new@gmail.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: agents,ai,governance,guardrails,harness,llm,observability
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Requires-Dist: harnessweaver>=0.1.0
|
|
19
|
+
Requires-Dist: rich>=15
|
|
20
|
+
Requires-Dist: ruamel-yaml>=0.18
|
|
21
|
+
Requires-Dist: typer>=0.27
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# harnessweaver-cli
|
|
25
|
+
|
|
26
|
+
Developer tooling for [HarnessWeaver](../../README.md). Installs the `harnessweaver` command. The full reference, with every option and exit code, is [docs/cli.md](../../docs/cli.md).
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
uv add --dev harnessweaver-cli
|
|
30
|
+
harnessweaver --help
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Start a project
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
harnessweaver init invoice-bot # the extraction template; -t picks another
|
|
37
|
+
cd invoice-bot
|
|
38
|
+
harnessweaver spec validate --env offline # load it the way the app will
|
|
39
|
+
harnessweaver test # its tests, offline
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`init` copies a template and puts the project name in it; there is no template
|
|
43
|
+
language. A plugin's templates are named `<namespace>.<template>`
|
|
44
|
+
(`harnessweaver init -t acme.rag`). Every template's output passes its own tests
|
|
45
|
+
(RULES T6).
|
|
46
|
+
|
|
47
|
+
| Template | What you get |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| `extraction` (default) | Typed extraction with schema validation, one repair, PII and secrets guards, a golden set |
|
|
50
|
+
| `rag` | A session flow that routes the question, retrieves ACL-checked passages and answers with citations the output guard checks |
|
|
51
|
+
| `agent` | A Pydantic AI agent with two governed tools, one of them approval-gated, a policy rule and a red-team eval set |
|
|
52
|
+
| `workflow` | A three-stage step graph: a parallel stage, then a reply in an evaluator-optimizer loop |
|
|
53
|
+
| `chat` | A chat turn with memory, a topic guard and a streamed answer moderated chunk by chunk |
|
|
54
|
+
|
|
55
|
+
## Commands
|
|
56
|
+
|
|
57
|
+
| Command | What it does |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| `init [DIR] [-t TEMPLATE] [--name NAME] [--force]` | Start a project: `harness.yaml`, an offline overlay, code, a prompt, evals and tests. Never overwrites without `--force` |
|
|
60
|
+
| `spec validate [SPEC] [-e ENV] [--format text\|json]` | Load the spec with every check the app runs: layers, locks, bounds, plugins, tasks, reachable hooks (R4). Prints the adoption level |
|
|
61
|
+
| `spec explain [SPEC] [--path PREFIX]` | Every effective value, the layer it came from, and its locks and bounds |
|
|
62
|
+
| `spec diff BEFORE AFTER [--exit-code]` | Compare two effective specs as Markdown, for PR comments. Either side can be `git:<ref>:<path>`, read with the profiles committed at that ref |
|
|
63
|
+
| `doctor [SPEC] [--strict]` | Adoption level and what the next level needs, hooks each task's runner reaches, duplicate retry owners (R5), unpinned profiles, shadow guards (R8), content capture (R9), plugin installation problems. Exits 1 on a failure, or on a warning with `--strict` |
|
|
64
|
+
| `hooks [SPEC] [--task TASK]` | The middleware on every hook point in the order it runs, with band, fail mode and timeout |
|
|
65
|
+
| `test [-e ENV] [PYTEST ARGS...]` | Run the app's tests with `HARNESSWEAVER_TEST_MODE=1` and the `offline` overlay |
|
|
66
|
+
| `contracts export [DIR] [--check]` | Write the JSON Schema of every contract, or report drift |
|
|
67
|
+
| `eval run [SPEC] [--suite NAME] [--task TASK] [--update-baseline]` | Run the spec's eval suites, compare with `.harness/baselines`, print the shadow-guard report. Exits 1 on a missed threshold or a regression, 2 when the suites can't run |
|
|
68
|
+
| `eval report [SPEC] [--task TASK]` | The production runs online evals sampled and graded |
|
|
69
|
+
| `policy test [SPEC] [--cases FILE]` | Check a table of tool calls (`policy_tests.yaml`) against the governor's verdicts, as a dry run |
|
|
70
|
+
| `replay RUN_ID [SPEC]` | Run a recorded run again against the current code and spec, and show what changed |
|
|
71
|
+
| `add guard USE [SPEC] [--stage S] [--id ID] [--action A] [--set KEY=VALUE]` | Add a guard in shadow mode (`mode: log_only`, R8). Comments in `harness.yaml` are kept; an edit that doesn't load is taken back |
|
|
72
|
+
| `add tool MODULE:FUNCTION [SPEC] [--dir tools] [--risk R] [--side-effect S]` | Write a tool manifest from the function's signature and docstring, and add its directory to `tools.manifests` |
|
|
73
|
+
| `tools pin [SPEC] [--tool NAME]` | Write each manifest's `definition_digest`, so a tool that changes unreviewed is blocked (S2) |
|
|
74
|
+
| `plugin new NAMESPACE [DIR]` | Scaffold a standalone plugin package with a sample guard and tests that run the conformance suite |
|
|
75
|
+
| `plugin list [--format text\|json]` | Installed plugins: namespace, distribution, version, contract range, compatibility |
|
|
76
|
+
| `sidecar [SPEC] [-e ENV] [--host H] [--port P] [--token-env VAR]` | Serve the spec to other languages: runs `harnessd` (needs `harnessweaver-sidecar` and a token, S6) |
|
|
77
|
+
| `gateway litellm [SPEC] [-o FILE]` | A LiteLLM Proxy config from the spec: gateway models and aliases, retries, a timeout, no message logging, and a tool-permission guardrail from the manifests |
|
|
78
|
+
| `gateway mcp [SPEC] [-o FILE]` | A neutral tool allow-list for an MCP gateway: each allowed tool's server, digest and scopes, and the withheld tools with the reason |
|
|
79
|
+
| `dev [SPEC] [-e ENV] [--up]` | Write `.harness/dev/`: LiteLLM, an OTel collector, Langfuse and harnessd in a Compose file, wired to the spec, with local secrets in `.env`. `--up` starts it |
|
|
80
|
+
|
|
81
|
+
Every command that takes `SPEC` defaults to `harness.yaml`, takes
|
|
82
|
+
`--profile-dir` to find `org://` profiles, and makes the spec's directory
|
|
83
|
+
importable, as it is when the app runs from there.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
harnessweaver_cli/__init__.py,sha256=ElE1Wn1t6slWr30iINTrRPRgyRSqx2f42nx25Hm-Z_c,203
|
|
2
|
+
harnessweaver_cli/_load.py,sha256=g7XBjE_EcujogenGgYYS_TgG9phTeTGpMapeDxSrdWo,4932
|
|
3
|
+
harnessweaver_cli/_yaml.py,sha256=Z2c9c4Mrqnr-7vq_VuHwCJ7otJBASB4Ow0zE-qvYK5I,1643
|
|
4
|
+
harnessweaver_cli/add.py,sha256=_s3MmN0rxPNdo9lKvaDRVHPBlVAeU8sPzknonF0vLfg,10548
|
|
5
|
+
harnessweaver_cli/dev.py,sha256=sQRvPlJ2isrn6n3M0pWRYhhETcUk4bPt91NUNva3Ltg,5854
|
|
6
|
+
harnessweaver_cli/doctor.py,sha256=Dyxf4EFrEP6mXzjC-YRmhzQG5ew6HOoPnLP-wLe-Ki0,7276
|
|
7
|
+
harnessweaver_cli/evals.py,sha256=q-zdNE0XLNfxup9mQXNHOYcbsrwWXYhADooC_2MBmlY,9981
|
|
8
|
+
harnessweaver_cli/gateway.py,sha256=qaICMMtiVizfppeTfnWMKJ2n615amugC8bHJR2sL26k,11995
|
|
9
|
+
harnessweaver_cli/main.py,sha256=TJbGtZ8VS5tOw9PlEM2LE2BUvkkXPZj8hQuio3KBN8E,1931
|
|
10
|
+
harnessweaver_cli/plugins.py,sha256=Lo1LMbvGtsE_jU_KzxHIeWkS1OhiDbEis27AaF5vp24,4346
|
|
11
|
+
harnessweaver_cli/policy.py,sha256=kYHtTS7k_vhLyJjQgJC9C7IYaBNbaI8yn0uZHKPpzeU,4932
|
|
12
|
+
harnessweaver_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
harnessweaver_cli/replay.py,sha256=dHuxtGRQXVyLcWmZNIHvoKAeLHxFYrTxNYgx550u6AU,2748
|
|
14
|
+
harnessweaver_cli/scaffold.py,sha256=Sf3gSUAFQdmfE6HGClywjTfQsKkl52qolobRnKBqKXQ,5954
|
|
15
|
+
harnessweaver_cli/sidecar.py,sha256=PnMJxL8EYe3KmIc3g-dd1anI97Mbn-G2PdpDJHQTneI,1644
|
|
16
|
+
harnessweaver_cli/spec.py,sha256=KTnjbayhDlvqA6rWSodY6bhKq34V_mNd7MLUZQh8M8g,6331
|
|
17
|
+
harnessweaver_cli/tools.py,sha256=LjwGN_6cGEUWmQLE0iu3VVql-gVSVIqSRuhV8QflDEE,2801
|
|
18
|
+
harnessweaver_cli/templates/_dev/compose.yaml,sha256=B9kh5PM28eutcDmAV07U-dkBhVj-imvrJ8lcMC4BN9E,6921
|
|
19
|
+
harnessweaver_cli/templates/_dev/otel-collector.yaml,sha256=Lug7KgY0LXMsoUqZRUz43Z9X9wysMxPwnLTPP1ZJ_fM,695
|
|
20
|
+
harnessweaver_cli/templates/_plugin/README.md,sha256=9PqObGNeWaUOj1p-aSNDEnvykXfZjCDZOAMOELxLV6E,1482
|
|
21
|
+
harnessweaver_cli/templates/_plugin/pyproject.toml,sha256=FFGLE5rc-RUCGQ56KXeNVEU5HEtqiZgHB4BKp4BKw4c,813
|
|
22
|
+
harnessweaver_cli/templates/_plugin/src/__ns___harness/__init__.py,sha256=8W6MzF-Xx19dU7PopjMaKNh8YQx4aJrFfcNTWsFQtbU,696
|
|
23
|
+
harnessweaver_cli/templates/_plugin/src/__ns___harness/guards.py,sha256=GHgAPnbp9cgI2vmivo9Gxq3_cRxSbhSmiLHQvYoAaNE,1759
|
|
24
|
+
harnessweaver_cli/templates/_plugin/src/__ns___harness/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
+
harnessweaver_cli/templates/_plugin/tests/test_guards.py,sha256=5XnDjwmKXPVhvi7eeuyA3DiseYyi0KgbfdMEQ_FS5O4,935
|
|
26
|
+
harnessweaver_cli/templates/agent/README.md,sha256=CxIQVfNcEgzKRC8g8B_pNAxk_4dgDam4RovdqQh2w3E,1466
|
|
27
|
+
harnessweaver_cli/templates/agent/harness.offline.yaml,sha256=DuNdVi2SOFmMYOsLgdSl6gsaFFOtb2O5aFwA38zaOjE,910
|
|
28
|
+
harnessweaver_cli/templates/agent/harness.yaml,sha256=ifRKTAYXkhRCTdCskOUtYpTuKykb57boixn0OuqrQps,1364
|
|
29
|
+
harnessweaver_cli/templates/agent/pyproject.toml,sha256=8OAZ9X-nnHOjG9GtIBD3o8KMBOEvp3JW3aufBkRT7uI,312
|
|
30
|
+
harnessweaver_cli/templates/agent/app/__init__.py,sha256=XyNaPQ0adAjJlO_N6iwlyoeDrcOEuRSJlz4EbAEuDqk,63
|
|
31
|
+
harnessweaver_cli/templates/agent/app/agent.py,sha256=UjXf6d3WrxMdrw7Wo_O4gnZUdMViIewh1b_W-O-96E4,424
|
|
32
|
+
harnessweaver_cli/templates/agent/app/main.py,sha256=MmK3WPqMvf4kN8f-XxqTMZF1ReV-OSu0AYSYjS9vRoA,481
|
|
33
|
+
harnessweaver_cli/templates/agent/app/tools.py,sha256=A3lrBBF0Hv2BcYQjiHyDXRVcsK5sfEQaMADZcaPZ_ok,1167
|
|
34
|
+
harnessweaver_cli/templates/agent/evals/redteam.yaml,sha256=Fl5eBPvaId5hz2IGS3avzj6d_y2tkyj2SPveqDukp5E,722
|
|
35
|
+
harnessweaver_cli/templates/agent/tests/test_agent.py,sha256=w4oeUkA9KvK_iKTRk0_caG2kVZXSlZBJHe7WNSUzpa0,2010
|
|
36
|
+
harnessweaver_cli/templates/agent/tools/lookup_order.tool.yaml,sha256=XmweW70cQzy5zhmvM55R2-Xp_6W8E7zUkrAYIO8frgw,454
|
|
37
|
+
harnessweaver_cli/templates/agent/tools/refund_payment.tool.yaml,sha256=0Dgp2_KIVntK7s2hcW_28v99emP8_RYR7fkk1gsGMXQ,669
|
|
38
|
+
harnessweaver_cli/templates/chat/README.md,sha256=A6Vt7iLvjepMt-UtLeD27S_hChH_QY_MtVUVXykfitE,961
|
|
39
|
+
harnessweaver_cli/templates/chat/harness.offline.yaml,sha256=yIVc3k5MHI2GiN_btsdyR3cMTRZttVVlzuzLxh-Z0-8,593
|
|
40
|
+
harnessweaver_cli/templates/chat/harness.yaml,sha256=PXKkDKOihdz-G-YmGN-bYIvArck7STLvjHoJc4B3y-o,1189
|
|
41
|
+
harnessweaver_cli/templates/chat/pyproject.toml,sha256=Q3ddYxEWDy_wH3I5vs_ewCygm29BxT8SbpL7Y4WOlqo,300
|
|
42
|
+
harnessweaver_cli/templates/chat/app/__init__.py,sha256=XVAngLSxwkntqDtHbTCoveSW8fvHzWMMB5XJPaHjg-4,64
|
|
43
|
+
harnessweaver_cli/templates/chat/app/chat.py,sha256=atyxcFO_qzleGgj1x_VDCfU7qhbORTSE04aw9qAK9aE,1153
|
|
44
|
+
harnessweaver_cli/templates/chat/app/main.py,sha256=QyohBCxp4n9ExBW6K2eTh8SskShMBBB3jashYQY6sIA,1170
|
|
45
|
+
harnessweaver_cli/templates/chat/evals/golden.yaml,sha256=7scgqY8YcbypRcEJNWqXxo2Hd5luRwGhIclj2vf0HNw,357
|
|
46
|
+
harnessweaver_cli/templates/chat/tests/test_chat.py,sha256=dfIuWUSCXmeNM11sMYJsVJMsZgQndGoQgoTocM5sm7A,2325
|
|
47
|
+
harnessweaver_cli/templates/extraction/README.md,sha256=jQYzh64coRU1bmuJ4fVKkHUCkHxjPT68BYIWpQJT4Gs,895
|
|
48
|
+
harnessweaver_cli/templates/extraction/harness.offline.yaml,sha256=shKL3oO6ERySJvE25Iwx_GavyL4Pa8Rj-SC4hAA0Qe8,650
|
|
49
|
+
harnessweaver_cli/templates/extraction/harness.yaml,sha256=cl3FDggkZJMrfU0DRZrROEZo7u9wMTG5y1KemJ2fPmE,986
|
|
50
|
+
harnessweaver_cli/templates/extraction/pyproject.toml,sha256=Q3ddYxEWDy_wH3I5vs_ewCygm29BxT8SbpL7Y4WOlqo,300
|
|
51
|
+
harnessweaver_cli/templates/extraction/app/__init__.py,sha256=OsIOXrrV7XD0516SQqQVRuDAlCNzglyRiUxXJTPxMxE,57
|
|
52
|
+
harnessweaver_cli/templates/extraction/app/main.py,sha256=MNw_jv3xr6nifWuBpFZUtZO-gFJWchVdcDXL6FDcYxY,610
|
|
53
|
+
harnessweaver_cli/templates/extraction/app/models.py,sha256=n6eMeP_YZJcX-DEtO6RKYe-Hi-b_cE7yvH_I3_CGDyE,469
|
|
54
|
+
harnessweaver_cli/templates/extraction/evals/golden.yaml,sha256=pFahLJue78YkEKopobNDV0EarVeDxoU2QoWHhKONBvs,551
|
|
55
|
+
harnessweaver_cli/templates/extraction/prompts/extract@1.md,sha256=TLTlSOZv5Ogpypi0KVlevqezE9b6pvDNApuHZ43iIbM,274
|
|
56
|
+
harnessweaver_cli/templates/extraction/tests/test_extract.py,sha256=DV_Xi3gdnhmX_Mc36ef7pk9J2MQHgsNJ1HiusTn5qpo,1984
|
|
57
|
+
harnessweaver_cli/templates/rag/README.md,sha256=BNOTvBEvkDMEsU0jySgBuSWKWR-qU0FjJRcNrFmx9_o,1150
|
|
58
|
+
harnessweaver_cli/templates/rag/harness.offline.yaml,sha256=AZTGLssKhsWPkGqegIRwAc1-W6fF69L0hD8OG_C_Y84,661
|
|
59
|
+
harnessweaver_cli/templates/rag/harness.yaml,sha256=TKWJS0pQgiS0bihc-1y8HylNJXJnjQN7z2cvklLtu3c,1778
|
|
60
|
+
harnessweaver_cli/templates/rag/pyproject.toml,sha256=Q3ddYxEWDy_wH3I5vs_ewCygm29BxT8SbpL7Y4WOlqo,300
|
|
61
|
+
harnessweaver_cli/templates/rag/app/__init__.py,sha256=_ti-KbSs0c9C42DdryfeIyJH2FRj7jEjW1oRkH9y2nA,78
|
|
62
|
+
harnessweaver_cli/templates/rag/app/flow.py,sha256=xop8lhBYUoOr95G-pzIfLX-Fn3W2ir6ro48bQgxG70c,1194
|
|
63
|
+
harnessweaver_cli/templates/rag/app/main.py,sha256=mzaY96Jozcm19udk3ZKisakGbd9uHFFyIR0Z_A32yxg,481
|
|
64
|
+
harnessweaver_cli/templates/rag/data/kb.yaml,sha256=VCwNGdVAsW13G7a4yf2jh1-iC0WbGvAULl8J1lXtfuw,632
|
|
65
|
+
harnessweaver_cli/templates/rag/evals/golden.yaml,sha256=4TIbt9aWeA1HGuOX-MjrVxALisRxJTrTarAUC48DL-s,486
|
|
66
|
+
harnessweaver_cli/templates/rag/prompts/answer@1.md,sha256=oVknS8aaw3qCLdKwQAokWKRIyHEJShTdxKPyL9r0x_w,285
|
|
67
|
+
harnessweaver_cli/templates/rag/tests/test_answer.py,sha256=dUgmRDZbCP45zHMRsBLeWLS0ihB25UVPmd7iOwgurOk,1938
|
|
68
|
+
harnessweaver_cli/templates/workflow/README.md,sha256=WXyyHOpYA0gPR8Ud62W0bz0jZ_pFJmzTStfUMTSRdF0,1167
|
|
69
|
+
harnessweaver_cli/templates/workflow/harness.offline.yaml,sha256=Rd5DJ80QBrYYOZPQ-wMGJeDfTqIVCWSO_O7EAnBxnIw,716
|
|
70
|
+
harnessweaver_cli/templates/workflow/harness.yaml,sha256=LRKAo0SPNj137iPTCm9iPhWGGdsyxwYDddF5kXwMtBc,1407
|
|
71
|
+
harnessweaver_cli/templates/workflow/pyproject.toml,sha256=Q3ddYxEWDy_wH3I5vs_ewCygm29BxT8SbpL7Y4WOlqo,300
|
|
72
|
+
harnessweaver_cli/templates/workflow/app/__init__.py,sha256=wa9NwrG0n8MI4Oi2qSBeMC31h0MKUmV9QAD03RIby6Q,65
|
|
73
|
+
harnessweaver_cli/templates/workflow/app/main.py,sha256=Wx0vFHZZq7sT2xW6sPP_sPbmUH7W6yzHj7LD4F8VrIs,523
|
|
74
|
+
harnessweaver_cli/templates/workflow/app/steps.py,sha256=tnoe065wEV7ewap7Tz0pb3gKl9GU-_byOQ2SEy9PV88,1987
|
|
75
|
+
harnessweaver_cli/templates/workflow/evals/golden.yaml,sha256=UjAjrZ7V6whNmAvzL1tom6iygrc5AUT5h-ql-buL5qs,342
|
|
76
|
+
harnessweaver_cli/templates/workflow/prompts/classify@1.md,sha256=A5FbVJwsq-GcLqISLm3Z2ZWkLdrsLZuEn-312FHpVB8,118
|
|
77
|
+
harnessweaver_cli/templates/workflow/prompts/reply@1.md,sha256=18PpvGLN8j2wO71yeiTt18Mcm7jTWg4nzeypMy2jm5E,127
|
|
78
|
+
harnessweaver_cli/templates/workflow/prompts/summarize@1.md,sha256=IrDNyXbXG8vrx-HedCkZLyK4VNOIXu-zOxB6u9PQQHc,65
|
|
79
|
+
harnessweaver_cli/templates/workflow/tests/test_pipeline.py,sha256=bOZlqWCjNenJOt1ZkbZFdP7gBh-ostgNNqiNnkV68jA,1278
|
|
80
|
+
harnessweaver_cli-0.7.1.dist-info/METADATA,sha256=3fdYJ30HGZ8miV3y35SaN6fobJOozTkC52M2YmfWovQ,5960
|
|
81
|
+
harnessweaver_cli-0.7.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
82
|
+
harnessweaver_cli-0.7.1.dist-info/entry_points.txt,sha256=s8NS0nyF_UsY0zq4kUab57-ST35Yl0dROGjEP5jiH7Q,61
|
|
83
|
+
harnessweaver_cli-0.7.1.dist-info/licenses/LICENSE,sha256=TAoX_-pOyI-ookF1ejNojtjWzRRH-Q0XwUvZcjKaq8M,11346
|
|
84
|
+
harnessweaver_cli-0.7.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Muthu Kumaran R
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|