enclave-harness 0.0.0-stage → 0.1.0

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.
Files changed (3) hide show
  1. package/README.md +49 -2
  2. package/dist/enclave.js +4604 -0
  3. package/package.json +49 -4
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ # Enclave CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Run, validate, export and reproduce workflow-harnesses from the terminal. Same engine and same
4
+ document format as the VS Code and browser hosts; only the host differs.
5
+
6
+ ```bash
7
+ npm install -g enclave-harness # or: npx enclave-harness … (command: enclave)
8
+ enclave list # built-in harnesses and .continued/harnesses/ in this workspace
9
+ enclave run # interactive: pick a harness, give the input, pick a model
10
+ enclave run workspace-health-harness --model llama3 --yes
11
+ enclave run ./my.harness.json --input "focus on tests" --model blablador/alias-code
12
+ enclave repro workspace-health-harness --runs 10 --model llama3 --model blablador/alias-large --yes
13
+ enclave validate ./my.harness.json
14
+ enclave export workspace-health-harness --format cwl --out exports/
15
+ enclave models
16
+ enclave probe --provider blablador
17
+ ```
18
+
19
+ **Models.** A bare name is an Ollama model (`ENCLAVE_OLLAMA_URL`, default `http://localhost:11434`).
20
+ `blablador/<id>`, `openai/<id>`, `anthropic/<id>` and `gemini/<id>` read their keys from
21
+ `ENCLAVE_BLABLADOR_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`. `ENCLAVE_MODEL`
22
+ sets the default.
23
+
24
+ **Approvals.** Read-only tools never ask. `run-command` asks on the terminal (`y` / `N` / `a` for
25
+ all) unless `--yes` grants every request or `--no-approvals` declines every request. A forbidden
26
+ command is blocked whatever the answer; a declined step is terminal, as in the editor.
27
+
28
+ **Tools available here.** `run-command`, `read-file`, `grep-search`, `semantic-search`,
29
+ `list-directory`, `file-info`, `git-info`, `csv-preview`, `json-query`; resources
30
+ `workspace-files`, `git-summary`. Editor-only plugins (diagnostics, open editors, browser tabs)
31
+ make a step report failure with the reason; its error policy then applies.
32
+
33
+ **Reproducibility.** `enclave repro` runs a harness *N* times per model, records for every step
34
+ its status, attempt count and a hash of its output, and reports three things: *structural
35
+ stability* (share of runs with the modal step graph), *step-output stability* (distinct outputs
36
+ per step; expected to be 1 for every step that is not, and does not contain, an `llm` step) and
37
+ *approval determinism* (whether every run raised the same number of approval requests). Records
38
+ and a Markdown report land in `.continued/repro/<id>-<timestamp>/`. Exit code 2 means a step
39
+ that should have been deterministic produced differing outputs.
40
+
41
+ **Testing the contract.** `enclave conformance` runs ten adversarial cases (forbidden commands,
42
+ mutations, path traversal, a declined step under a retry policy, injected instructions) through
43
+ this host with a stub model, under both approval modes, and reports whether the contract held.
44
+ `enclave grounding <run.json>` checks quotes and numbers in model steps against the read steps;
45
+ `--check-grounding` on `run` does it immediately.
46
+
47
+ **Files.** A run writes `run.json` (the run and its record) and `output.md` to
48
+ `.continued/harness-runs/<id>-<timestamp>/`. `--json` prints the same to stdout instead.
49
+
50
+ Build from source: `cd cli && npm ci && npm run build` → `dist/enclave.js`.