@zhivex-ai/harness 1.4.0-rc.1 → 1.4.0-rc.8
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.
- package/CHANGELOG.md +60 -1
- package/README.md +26 -6
- package/contracts/engine-api.json +75 -0
- package/contracts/stable-api-signatures.json +33 -33
- package/dist/acp-cli.js +16 -14
- package/dist/cli/arguments.d.ts +3 -0
- package/dist/cli/console/console-budget.d.ts +8 -2
- package/dist/{cli-mejgq79m.js → cli-3bzvq594.js} +77 -34
- package/dist/{cli-entry-0c8vd42w.js → cli-entry-25xefnws.js} +3005 -1282
- package/dist/{cli-entry-645q3vwx.js → cli-entry-qav71mxw.js} +14 -11
- package/dist/{cli-entry-d5788aay.js → cli-entry-yqwa1943.js} +38 -5
- package/dist/cli.js +2 -2
- package/dist/client/check-evidence.d.ts +17 -0
- package/dist/client/json-contracts.d.ts +95 -2
- package/dist/client/local-service.d.ts +2 -2
- package/dist/client/protocol.d.ts +3 -0
- package/dist/client/run-document.d.ts +12 -0
- package/dist/client/stream.d.ts +2 -1
- package/dist/compat/code-support.d.ts +10 -0
- package/dist/compat/code-support.js +35 -5
- package/dist/{config-j3jga5wh.js → config-depqpsae.js} +2 -1
- package/dist/{config-c002f06f.js → config-pwbnze4g.js} +1 -1
- package/dist/context/compaction.d.ts +5 -0
- package/dist/context/task-memory.d.ts +33 -1
- package/dist/engine/acp.js +12 -11
- package/dist/engine/client.js +9 -9
- package/dist/engine/desktop-state-v1.js +7 -8
- package/dist/engine/index.js +46 -45
- package/dist/engine/mcp-stdio-v1.js +5 -5
- package/dist/engine/protocol.js +18 -2
- package/dist/engine/service.js +10 -10
- package/dist/hostile-repository-demo.js +4526 -2860
- package/dist/{index-gq9xagx2.js → index-09zphhwt.js} +24 -137
- package/dist/{index-n86069yc.js → index-1k248k0w.js} +95 -26
- package/dist/{index-hwff3qx5.js → index-7y6b4yjx.js} +62 -30
- package/dist/{index-8vm2m34s.js → index-9v72fpya.js} +40 -11
- package/dist/index-fny13znr.js +3778 -0
- package/dist/index-jdb1q8yn.js +149 -0
- package/dist/{index-qfpz5y2v.js → index-ngg2168h.js} +8 -2
- package/dist/{index-4nf70nq1.js → index-nqhnh1hz.js} +1660 -987
- package/dist/{index-wq2tax80.js → index-pcn2bk8j.js} +1 -1
- package/dist/index-sbzvrpm7.js +343 -0
- package/dist/index-txrqqd2r.js +705 -0
- package/dist/{index-ma9a5re7.js → index-vga76vmb.js} +3 -5
- package/dist/{index-fm6ahk8m.js → index-w9pjt7td.js} +16 -13
- package/dist/{index-z0qxmkm2.js → index-zmx264xy.js} +1127 -170
- package/dist/index.js +42 -41
- package/dist/persistence/operations.d.ts +3 -0
- package/dist/persistence/sdk-store-identity.d.ts +4 -0
- package/dist/runtime/config.d.ts +8 -0
- package/dist/runtime/context-runtime.d.ts +1 -0
- package/dist/runtime/error-diagnostics.d.ts +35 -0
- package/dist/runtime/errors.d.ts +10 -0
- package/dist/runtime/harness.d.ts +10 -1
- package/dist/runtime/policy-inspection.d.ts +1 -0
- package/dist/runtime/run-interruption.d.ts +1 -1
- package/dist/runtime/runtime-checkpoints.d.ts +3 -0
- package/dist/runtime/runtime-diagnostics.d.ts +3 -0
- package/dist/runtime/runtime-policy.d.ts +8 -10
- package/dist/runtime/task-acceptance-host.d.ts +1 -1
- package/dist/runtime/task-acceptance-native.d.ts +10 -0
- package/dist/runtime/task-budget-host.d.ts +217 -0
- package/dist/runtime/task-budget.d.ts +147 -0
- package/dist/runtime/task-continuity.d.ts +434 -0
- package/dist/runtime/task-telemetry.d.ts +63 -0
- package/dist/runtime/task-transport.d.ts +3 -0
- package/dist/runtime/task-usage-context.d.ts +13 -0
- package/dist/runtime/time-to-safe-fix.d.ts +35 -0
- package/dist/runtime/usage-ledger.d.ts +17 -0
- package/dist/service-cli.js +10 -10
- package/dist/{service-client-cli-2ye331s3.js → service-client-cli-ra3yzvjg.js} +18 -7
- package/dist/verify-historical-migrations.js +2317 -607
- package/dist/zhx.js +2 -2
- package/docs/CLI.md +37 -7
- package/docs/CLIENT_PROTOCOL.md +19 -1
- package/docs/CODE_RELEASE.md +170 -13
- package/docs/CONTEXT_ENGINEERING.md +23 -0
- package/docs/DURABLE_OPERATIONS.md +58 -1
- package/docs/ENGINE_API.md +12 -2
- package/docs/EXTENSIBILITY.md +1 -1
- package/docs/FIRST_USE.md +6 -6
- package/docs/LOCAL_SERVICE.md +10 -4
- package/docs/MINIMUM_OFFLINE_EVALS.md +31 -0
- package/docs/MINIMUM_TASK_AUTHORITY.md +395 -0
- package/docs/PROJECT_MEMORY.md +1 -1
- package/docs/README.md +2 -0
- package/docs/STABILITY.md +1 -1
- package/docs/WEB_LIMITS.md +117 -0
- package/evaluations/representative-assembly-matrix.json +64 -1
- package/examples/README.md +3 -3
- package/package.json +14 -11
- package/dist/index-aqe7236b.js +0 -1650
- package/dist/index-ds5e9x3a.js +0 -1555
- package/dist/index-g0wfcb65.js +0 -477
- package/dist/index-yb239ghk.js +0 -961
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,70 @@ All notable changes to Zhivex Harness are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The project follows Semantic Versioning. During `0.x`, minor releases may change user-facing contracts when the change is documented with a migration note. Patch releases remain backwards compatible bug fixes.
|
|
6
6
|
|
|
7
|
+
## 1.4.0-rc.8 - 2026-10-08
|
|
8
|
+
|
|
9
|
+
- Prepare matched Harness 1.4.0-rc.8 and Code 0.3.0-rc.8 for npm `next`, with the exact Code engine pin, private Desktop binding and an additive representative mapping using unchanged models. Retain the SDK pins already on main (Core 1.31.0, Agents 1.11.0 and the existing provider packages). Stable `latest` stays Harness 1.3.0 and Code 0.2.0.
|
|
10
|
+
- Refuse a second `delegate_*` call for a task that was already accepted in the same model response. The duplicate stays non-executable and the next turn tells the coordinator to use the completed result instead of retrying. A later model step can still recover from an invalid call that did not execute. Paused runs bound to the previous delegation fingerprint must be completed with the artifact that created them.
|
|
11
|
+
- Document that Qwen live certification accepts `DASHSCOPE_API_KEY` alone. `QWEN_API_KEY`, `QWEN_BASE_URL`, `QWEN_WORKSPACE_ID`, and `QWEN_REGION` remain optional overrides.
|
|
12
|
+
- Preserve annotated `v1.4.0-rc.7` at `1f986a0b044fa2827166fc934c712684971127b5`. It was tagged but not published because live certification failed on Qwen in the bounded reviewer orchestration gate. No Code RC.7 tag was created. Published npm `next` remains Harness 1.4.0-rc.6 and Code 0.3.0-rc.6. That evidence does not certify RC.8.
|
|
13
|
+
- Require fresh exact-source/artifact validation and separate explicit approval before any paid campaign, annotated tag or publication. Provider/API tiers remain unchanged.
|
|
14
|
+
|
|
15
|
+
## 1.4.0-rc.7 - 2026-10-08
|
|
16
|
+
|
|
17
|
+
- Prepare matched Harness 1.4.0-rc.7 and Code 0.3.0-rc.7 for npm `next`, with the exact Code engine pin, private Desktop binding and an additive representative mapping using unchanged models. Retain the SDK pins already on main (Core 1.31.0, Agents 1.11.0 and the existing provider packages). Stable `latest` stays Harness 1.3.0 and Code 0.2.0.
|
|
18
|
+
- Include reviewed main since published 1.4.0-rc.6: optional Web task/project limits and immediate composer consumption (PR189); sanitized Qwen SSE transport/parser diagnostics in CLI JSON/JSONL and failed client runs, including message-only installed SDK compatibility, while provider payloads, parser causes and arbitrary exception text stay excluded (PR188); experimental guided Code task budget authority across turns, correction and restart (PR187); private Desktop Electron 44.5.1 (PR180); persisted task cancellation that fences late admissions (PR190, HAR-HU-71); and host-only task continuity over existing SQLite task, contract, journal and budget records (PR191, HAR-HU-72).
|
|
19
|
+
- Keep one native SQLite writer and the SDK token coordinator. Reserve before primary and compaction dispatch, fence tools and checkpoints against the task lease, retain uncertain consumption and unknown exposure, and require explicit known-outcome continuation after cancellation. Preserve contract revisions, refuse stale approvals and missing or uncertain effect evidence, and revalidate receipts before Code keep. No automatic effect replay or new public web task projection.
|
|
20
|
+
- Show authoritative task limits, confirmed/reserved/unknown usage, fresh checks and human decisions in Code; retain drafts when admission fails before a run checkpoint. Ordinary non-task retry and no-cap chat stay unchanged, and unlimited hosts still require explicit task token limits. Index transport usage by scope/run without changing pruning, redaction or mandatory persistence errors. Preserve explicit monetary output caps above 2,048.
|
|
21
|
+
- Add numeric monotonic phase telemetry and a frozen synthetic offline evaluation scaffold. These fixtures validate runtime behavior, not real-task or model quality; real holdout selection, human review and any paid campaign remain pending. Logical JSON backups omit transport monetary tables and cannot restore task spending authority; incomplete restores fail closed.
|
|
22
|
+
- Preserve published Harness `v1.4.0-rc.6` and Code `code-v0.3.0-rc.6` at `0adf4e2e96380864ef4c697ea94df64ad7c18eec`, the held RC.5 campaign, and the RC.4 failure history and SDK store migration requirements. Their evidence does not certify RC.7.
|
|
23
|
+
- Require fresh exact-source/artifact validation and separate explicit approval before any paid campaign, annotated tag or publication. Provider/API tiers remain unchanged.
|
|
24
|
+
|
|
25
|
+
## 1.4.0-rc.6 - 2026-10-05
|
|
26
|
+
|
|
27
|
+
- Prepare matched Harness 1.4.0-rc.6 and Code 0.3.0-rc.6 for npm `next`, with the exact Code engine pin, private Desktop binding and an additive representative mapping using unchanged models and SDK pins.
|
|
28
|
+
- Include the reviewed activity projection fix from PR185: compact bounded UI snapshot previews without failing valid runs, preserve run identities/statuses and truncation markers, and split already-redacted streamed text into bounded Unicode-safe events. Durable policy/event journals, retention limits and approval authority are unchanged.
|
|
29
|
+
- Preserve the held RC.5 campaign and immutable tag/source. Its passing offline, live and 42/42 representative evidence belongs to the older artifact and does not certify RC.6. Keep the RC.4 failure history and SDK store migration requirements.
|
|
30
|
+
- Require fresh exact-source/artifact validation and separate explicit approval before any paid campaign, annotated tag or publication. Stable `latest` channels and provider/API tiers remain unchanged.
|
|
31
|
+
|
|
32
|
+
## 1.4.0-rc.5 - 2026-10-05
|
|
33
|
+
|
|
34
|
+
- Prepare matched Harness 1.4.0-rc.5 and Code 0.3.0-rc.5 for npm `next`, with the exact engine pin, Desktop binding and a new representative mapping using unchanged models and SDK pins.
|
|
35
|
+
- Include the reviewed inherited-pipe termination regression correction: account for the existing cleanup grace and verify that the descendant heartbeat stops. Production termination protections are unchanged.
|
|
36
|
+
- Carry the reviewed Desktop lucide-react 1.50.0 update from main. Keep Desktop private alpha and retain all provider and API tiers.
|
|
37
|
+
- Preserve the immutable RC.4 tag and its failed offline campaign. Require a new exact artifact, unchanged protected gates and separate approval for any new paid campaign or publication.
|
|
38
|
+
|
|
39
|
+
The RC.4 SDK store migration requirements below still apply.
|
|
40
|
+
|
|
41
|
+
## 1.4.0-rc.4 - 2026-10-05
|
|
42
|
+
|
|
43
|
+
- Integrate published Core 1.30.1, Agents 1.10.3, Anthropic 0.13.2, OpenAI 0.14.1, Qwen 0.16.4 and Vertex 1.2.4. Keep Meta 0.2.9 and Gemini 0.13.0; align Code and browser contributor pins and retain a single Core runtime in Harness.
|
|
44
|
+
- Prepare matched Harness 1.4.0-rc.4 and Code 0.3.0-rc.4 for npm `next`, with an exact engine pin, Desktop binding and a new representative mapping using unchanged models. Retain immutable RC.2/RC.3 evidence and all protected gates.
|
|
45
|
+
- Preserve Core 1.30.1 canonical identities and memory envelopes through backup/import, retaining verified legacy runs and rejecting mismatched identities. Finalize cooperative cancellation after the worker drains so session reads do not strand at `cancel_requested`.
|
|
46
|
+
- Record bounded continuity response shape, streamed event counts and usage for the next failed phase without retaining provider text. This does not identify or resolve the historical RC.3 Meta cause.
|
|
47
|
+
|
|
48
|
+
- Extend experimental task acceptance to bounded native reviewed edits and declared package-script checks, tying receipts to selected/protected file digests and the manifest. Block other effect tools and delegation for native task runs. Preserve the separate SDK run status and pending human review.
|
|
49
|
+
- Add a redacted recorded-check projection to beta run-result JSON and experimental Code host helpers. Stable declaration snapshots and Harness run/session/backup schemas are unchanged.
|
|
50
|
+
- Carry forward Meta SDK 0.2.9 reasoning usage as a subset of output tokens, without adding it again to totals.
|
|
51
|
+
|
|
52
|
+
Migration: stop all workers sharing an SDK store and upgrade them together, keeping a complete backup. Core 1.30.1 uses canonical identities for new runs; verified legacy runs retain their physical keys. Older workers cannot resolve new identities. Legacy default SDK memory without verified ownership requires explicit offline migration; do not rewrite IDs/scopes to bypass validation. See [SDK store migration](https://github.com/Zhivex/zhivex-ai-sdk/blob/4a93004395a80c183b1257bb1d02fb3a3d4050e1/docs/maintainers/AGENT_STORE_MIGRATION.md). Runs without a task contract retain their behavior. Native task contracts now enforce their edit/check tool scope and may report `pending_review`/`verified` when their watched-file requirements pass; they do not receive OCI sandbox, whole-snapshot or import guarantees. Check evidence remains invalid after watched-file drift or uncertain journal recovery.
|
|
53
|
+
|
|
54
|
+
## 1.4.0-rc.3 - 2026-10-04
|
|
55
|
+
|
|
56
|
+
- Retain finite stage, assertion and provider-route identities in mixed-routing release diagnostics, preserve typed operational causes across artifact class boundaries, and keep cleanup failures from masking the original gate failure. Add offline fault coverage; historical release evidence remains unchanged.
|
|
57
|
+
|
|
58
|
+
- Prepare matched Harness 1.4.0-rc.3 and Code 0.3.0-rc.3 for npm `next`, preserving the complete certification workflow, model pins and provider support tiers. Keep RC.2 tags, retained artifacts and failed evidence immutable; RC.3 requires fresh source-bound artifact, OCI, live and representative gates.
|
|
59
|
+
|
|
60
|
+
## 1.4.0-rc.2 - 2026-10-04
|
|
61
|
+
|
|
62
|
+
- Recover bounded prior assistant reports and plans through `read_task` after local session compaction, including immediate manual compaction of the first report and continued sessions after reconnect or host restart. Keep recovered text untrusted and separate from operator requests, approvals and acceptance evidence.
|
|
63
|
+
|
|
64
|
+
- Prepare the matched Harness 1.4.0-rc.2 and Code 0.3.0-rc.2 for npm `next`, retaining exact engine pins, historical model mappings and provider support tiers. Publication requires new release-bound artifact, OCI, live and representative gates.
|
|
65
|
+
|
|
7
66
|
## 1.4.0-rc.1 - 2026-10-04
|
|
8
67
|
|
|
9
68
|
- Add experimental, project-scoped operator memory in the existing SQLite memory table, with explicit corrections/deletion, reviewed suggestions, provenance, freshness and bounded per-request retrieval.
|
|
10
69
|
- Add local `memory` commands and `--no-memory` to Harness/Code without terminal layout changes. Curated mode stops automatic last-assistant capture; the stable engine default and explicit SDK memory integrations remain supported.
|
|
11
|
-
- Preserve old state and import compatibility; document active deletion versus separately retained histories/backups and next-release engine pairing. See [Project memory](docs/PROJECT_MEMORY.md).
|
|
70
|
+
- Preserve old state and import compatibility; document active deletion versus separately retained histories/backups and next-release engine pairing. See [Project memory](docs/PROJECT_MEMORY.md). Published to npm `next` on 2026-10-04.
|
|
12
71
|
|
|
13
72
|
- Pair with Code 0.3.0-rc.1 for compact terminal flow, pageable approval review and the local browser workspace with packaged assets. Publish Harness first to `next`; preserve stable `latest`.
|
|
14
73
|
|
package/README.md
CHANGED
|
@@ -11,22 +11,28 @@ implement a change. Conversation context retains decisions, hypotheses and bound
|
|
|
11
11
|
diagnostic excerpts across compaction. Edits and command execution keep their
|
|
12
12
|
own permission checks; a conversational summary never grants approval.
|
|
13
13
|
|
|
14
|
+
For the developer-facing terminal product, install
|
|
15
|
+
`npm install -g @zhivex-ai/code@0.2.0` and run `zhivex-code` in your project.
|
|
16
|
+
See [Code installation and first use](https://github.com/Zhivex/zhivex-harness/blob/main/packages/code/README.md). Harness remains
|
|
17
|
+
the reusable engine and its compatibility CLI. The `/task` delivery workflow in
|
|
18
|
+
this checkout is an unreleased experimental Code addition, not a published feature.
|
|
19
|
+
|
|
14
20
|
Version `1.3.0` is the current public npm release on `latest`, with terminal-independent engine
|
|
15
|
-
entrypoints and the separately published Code CLI `0.2.0` on `latest`. Harness publication passed registry integrity and provenance verification. Harness
|
|
16
|
-
Code
|
|
21
|
+
entrypoints and the separately published Code CLI `0.2.0` on `latest`. Harness publication passed registry integrity and provenance verification. Harness `1.4.0-rc.6` and
|
|
22
|
+
Code `0.3.0-rc.6` are published on `next`. Annotated `v1.4.0-rc.7` was tagged but
|
|
23
|
+
not published after live certification failed. The RC.8 versions prepared in this
|
|
24
|
+
checkout remain unpublished. Stable package numbering does
|
|
17
25
|
not change API stability tiers: beta and experimental APIs retain their policies,
|
|
18
26
|
Gemini/Anthropic/Vertex remain provisional, and Desktop remains a private alpha.
|
|
19
27
|
|
|
20
|
-
This checkout prepares Harness `1.4.0-rc.1` and Code `0.3.0-rc.1` for `next`, with an exact engine pin. Project memory, compact terminal review and the local browser workspace ship together after protected validation. See the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). The candidates are not yet published.
|
|
21
|
-
|
|
22
28
|
## Quick start
|
|
23
29
|
|
|
24
30
|
Requires Node.js 22.13.0 or newer, Git and a provider API key.
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
Install the stable npm release (`latest`, currently `1.3.0`):
|
|
27
33
|
|
|
28
34
|
```sh
|
|
29
|
-
npm install -g @zhivex-ai/harness@
|
|
35
|
+
npm install -g @zhivex-ai/harness@latest
|
|
30
36
|
cd /path/to/your/project
|
|
31
37
|
zhx
|
|
32
38
|
```
|
|
@@ -42,6 +48,20 @@ Type `/` for common actions. `/model` changes the model, `/sessions` finds previ
|
|
|
42
48
|
conversations, and `/diff` shows changes. Review requested actions before approving
|
|
43
49
|
them. Ctrl+C stops active work; it does not undo completed changes.
|
|
44
50
|
|
|
51
|
+
## Release candidates
|
|
52
|
+
|
|
53
|
+
This checkout prepares Harness `1.4.0-rc.8` and Code `0.3.0-rc.8` for `next`, with an exact engine pin. Project memory, compact terminal review and the local browser workspace ship together after protected validation. See the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). RC.8 publication is pending. It includes the reviewed duplicate-delegation fix on main after RC.7. Published npm `next` is Harness `1.4.0-rc.6` and Code `0.3.0-rc.6`. Annotated `v1.4.0-rc.7` was tagged but not published after Qwen live certification failed; that source and tag cannot certify RC.8. The held RC.5 campaign and failed RC.4 attempt remain preserved. These prerelease candidates are separate from the stable `latest` channel.
|
|
54
|
+
|
|
55
|
+
Use candidates only for prerelease validation. Check [npm versions](https://www.npmjs.com/package/@zhivex-ai/harness?activeTab=versions)
|
|
56
|
+
and the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md)
|
|
57
|
+
before installing a candidate; `next` can still point to an earlier RC.
|
|
58
|
+
|
|
59
|
+
After publication of this exact candidate:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npm install -g @zhivex-ai/harness@1.4.0-rc.8
|
|
63
|
+
```
|
|
64
|
+
|
|
45
65
|
## A few commands are enough
|
|
46
66
|
|
|
47
67
|
| Command | Purpose |
|
|
@@ -2715,6 +2715,81 @@
|
|
|
2715
2715
|
"name": "readRegularFileNoFollow",
|
|
2716
2716
|
"kind": "runtime",
|
|
2717
2717
|
"tier": "experimental"
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"name": "resolvePackageCheckCommand",
|
|
2721
|
+
"kind": "runtime",
|
|
2722
|
+
"tier": "experimental"
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
"name": "nativeTaskSnapshot",
|
|
2726
|
+
"kind": "runtime",
|
|
2727
|
+
"tier": "experimental"
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
"name": "TASK_ACCEPTANCE_EVIDENCE_KEY",
|
|
2731
|
+
"kind": "runtime",
|
|
2732
|
+
"tier": "experimental"
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"name": "checkEvidence",
|
|
2736
|
+
"kind": "runtime",
|
|
2737
|
+
"tier": "experimental"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
"name": "initializeHarnessTaskBudget",
|
|
2741
|
+
"kind": "runtime",
|
|
2742
|
+
"tier": "experimental"
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"name": "inspectHarnessTaskBudget",
|
|
2746
|
+
"kind": "runtime",
|
|
2747
|
+
"tier": "experimental"
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
"name": "requestHarnessTaskCancellation",
|
|
2751
|
+
"kind": "runtime",
|
|
2752
|
+
"tier": "experimental"
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"name": "persistHarnessTaskDraft",
|
|
2756
|
+
"kind": "runtime",
|
|
2757
|
+
"tier": "experimental"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"name": "readHarnessTaskDraft",
|
|
2761
|
+
"kind": "runtime",
|
|
2762
|
+
"tier": "experimental"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"name": "TASK_BUDGET_KEY",
|
|
2766
|
+
"kind": "runtime",
|
|
2767
|
+
"tier": "experimental"
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"name": "inspectTaskBudgetSummary",
|
|
2771
|
+
"kind": "runtime",
|
|
2772
|
+
"tier": "experimental"
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "inspectHarnessTaskContinuity",
|
|
2776
|
+
"kind": "runtime",
|
|
2777
|
+
"tier": "experimental"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"name": "createTaskTelemetry",
|
|
2781
|
+
"kind": "runtime",
|
|
2782
|
+
"tier": "experimental"
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"name": "runHarnessTask",
|
|
2786
|
+
"kind": "runtime",
|
|
2787
|
+
"tier": "experimental"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"name": "HarnessTaskRunOptions",
|
|
2791
|
+
"kind": "type",
|
|
2792
|
+
"tier": "experimental"
|
|
2718
2793
|
}
|
|
2719
2794
|
]
|
|
2720
2795
|
},
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"name": "cancelHarnessRun",
|
|
136
|
-
"sha256": "sha256:
|
|
136
|
+
"sha256": "sha256:209632058366e3993cc22c7bdadde31dd00a3f533dcfb4d61c8f5124de9c3aed"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "canonicalizeChangeEnvelope",
|
|
@@ -141,15 +141,15 @@
|
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "cleanupHarnessRuns",
|
|
144
|
-
"sha256": "sha256:
|
|
144
|
+
"sha256": "sha256:0d91a941627459e31098d8f7b0f5abbde1ec518705c61e8eb4cd54ac1a2da4f8"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"name": "cliJsonDocumentSchema",
|
|
148
|
-
"sha256": "sha256:
|
|
148
|
+
"sha256": "sha256:7e7a254c88c40eb537981b8e28cc9abeb1196e75d8ee025c12551cb8cfeab580"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"name": "cliJsonLineDocumentSchema",
|
|
152
|
-
"sha256": "sha256:
|
|
152
|
+
"sha256": "sha256:94a0815632f10a637cc889ed54ffb406b9253aab373fff3bb045be68aa071d91"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"name": "computeChangeEnvelopeDigest",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "createHarness",
|
|
168
|
-
"sha256": "sha256:
|
|
168
|
+
"sha256": "sha256:8b682f88b2c92a5581a68f92dbd886b5dc6c8b49b04ca8e1214bed164708b9ea"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "createHarnessMcpTools",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
"name": "createHarnessStateBackup",
|
|
180
|
-
"sha256": "sha256:
|
|
180
|
+
"sha256": "sha256:f1fa095f7b2db71d64f07ff23d8823fc1ba57729d3cfdb1188969c5ab2172332"
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"name": "createHttpMcpClient",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"name": "createProviderModel",
|
|
188
|
-
"sha256": "sha256:
|
|
188
|
+
"sha256": "sha256:482f0414ff0315198c7b1deaabf024ffdbb64b6c06e5e7d7832652931ec540bb"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "digestChangeEnvelopeArtifact",
|
|
@@ -193,31 +193,31 @@
|
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"name": "exportHarnessStateBackup",
|
|
196
|
-
"sha256": "sha256:
|
|
196
|
+
"sha256": "sha256:f6a581444669735dcc3998ec24b4e6f9f389d18f4680e9c956f6287738076a12"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"name": "harnessErrorDocument",
|
|
200
|
-
"sha256": "sha256:
|
|
200
|
+
"sha256": "sha256:5340a9d49948981bbaa3223ec63249351dbc6271b4caf717e34b0fcc05c8f1fd"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "importHarnessStateBackup",
|
|
204
|
-
"sha256": "sha256:
|
|
204
|
+
"sha256": "sha256:1929d2a2ba7de06801dc7b6b961b74e92e7fb871ac4f01e0ba9d79d9dfb97d0f"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "importHarnessStateBackupFile",
|
|
208
|
-
"sha256": "sha256:
|
|
208
|
+
"sha256": "sha256:07b707e8e8495a87972a075894c4ecf59161be6ac2cdce8f9a66bf71d1b51d40"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
"name": "inspectHarnessRun",
|
|
212
|
-
"sha256": "sha256:
|
|
212
|
+
"sha256": "sha256:68e13aabfcd8974e92cebb7b06afdb5643c76d86b3473c2afeb127245329d4e5"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"name": "inspectHarnessState",
|
|
216
|
-
"sha256": "sha256:
|
|
216
|
+
"sha256": "sha256:529d9bf8c0528942793786c345030a98e88d219c34f41ea2c3e31724cca66837"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"name": "listHarnessRuns",
|
|
220
|
-
"sha256": "sha256:
|
|
220
|
+
"sha256": "sha256:2085baf7b5c69e79939dd8d13d6dbccb8166d163659823d93bd2eb10d6080acc"
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"name": "loadHarnessMcpConfiguration",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"name": "migrateHarnessConfigInput",
|
|
228
|
-
"sha256": "sha256:
|
|
228
|
+
"sha256": "sha256:719fcc2bef2415d972f7f04f3970b9120e285a4b9abd5df0fd01727e05befa2f"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
"name": "normalizeHarnessError",
|
|
@@ -241,15 +241,15 @@
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"name": "openHarnessPersistence",
|
|
244
|
-
"sha256": "sha256:
|
|
244
|
+
"sha256": "sha256:91a4d79eb2c7a4e82cb1aa6ad199492538bd2d9599bd320eb603765fb6fca934"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"name": "parseCliJsonDocument",
|
|
248
|
-
"sha256": "sha256:
|
|
248
|
+
"sha256": "sha256:8d94b80ef3160b12119ce8b083937ef6beed2a1b068f46f94b5077e36d54a931"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "parseCliJsonLineDocument",
|
|
252
|
-
"sha256": "sha256:
|
|
252
|
+
"sha256": "sha256:3f0c38ada9d89150fe2cedbb50380f8e170ad22dfb2d7a17690efc057be9bc3b"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"name": "parseHarnessModelRoute",
|
|
@@ -269,11 +269,11 @@
|
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"name": "resolveHarnessConfig",
|
|
272
|
-
"sha256": "sha256:
|
|
272
|
+
"sha256": "sha256:92dd51056d4745eea346f9163f29b9748ac6e1b9f9d0e28a3191111093703804"
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
"name": "runHarness",
|
|
276
|
-
"sha256": "sha256:
|
|
276
|
+
"sha256": "sha256:aeed30705c782cb7af884a8d51abf9d47bf4a9b7010650c842209c5f608b6019"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"name": "serializeStreamEvent",
|
|
@@ -319,11 +319,11 @@
|
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
"name": "CliJsonDocument",
|
|
322
|
-
"sha256": "sha256:
|
|
322
|
+
"sha256": "sha256:613a0da81316ffd657d18427c28804a8f7dc51017aec2e6893d7b2d64a5ff96e"
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
"name": "CliJsonLineDocument",
|
|
326
|
-
"sha256": "sha256:
|
|
326
|
+
"sha256": "sha256:5dd40d8c335fd1e6e3414825e70fd4dd70117286e1bc0f5e96c53c45b6b6c91a"
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"name": "CliOptionDefinition",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"name": "CliRunEventDocument",
|
|
342
|
-
"sha256": "sha256:
|
|
342
|
+
"sha256": "sha256:9ad681aea1b90debc0682dea6487f4098c50e5cd548e4694ae07db94b80279f0"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"name": "CliRunInspectionDocument",
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"name": "CliRunResultDocument",
|
|
354
|
-
"sha256": "sha256:
|
|
354
|
+
"sha256": "sha256:1c14e0466d7e387aa80294d1271d9b2ff37fa4cbe41d9e1d7a1ad5faabe23318"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"name": "CliSession",
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
"name": "CliStreamErrorDocument",
|
|
370
|
-
"sha256": "sha256:
|
|
370
|
+
"sha256": "sha256:b9f92e4dc53013ec79690838dab8f5db19bdbba10a918549a914ddf41eb423b7"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
"name": "CliStreamResultDocument",
|
|
@@ -375,23 +375,23 @@
|
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"name": "CreateHarnessOptions",
|
|
378
|
-
"sha256": "sha256:
|
|
378
|
+
"sha256": "sha256:bf02d5a2b5cc10dfbc59a2dcceebe91d2a56add94f9912e8d73c61da4bb64a12"
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
"name": "HarnessBudget",
|
|
382
|
-
"sha256": "sha256:
|
|
382
|
+
"sha256": "sha256:d5ab8916582847c82fb2c86eface15f44af12a710926aa5eca2c59eac97638c0"
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
"name": "HarnessConfig",
|
|
386
|
-
"sha256": "sha256:
|
|
386
|
+
"sha256": "sha256:afd78cedcbe664b7decf1d11dd70a5bb7ad997ea090c9afaa894398f408cbd3d"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"name": "HarnessConfigInput",
|
|
390
|
-
"sha256": "sha256:
|
|
390
|
+
"sha256": "sha256:4679312a8a410043ee77890447460ac294b87dade7e2eb04e809295e3093b8c1"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"name": "HarnessConfigMigrationResult",
|
|
394
|
-
"sha256": "sha256:
|
|
394
|
+
"sha256": "sha256:4d9e7b61dd92f95be292571da2251ce8927c08fe488d7742d8c71cbc87e2eedb"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
"name": "HarnessContextBundle",
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
"name": "HarnessErrorDocument",
|
|
418
|
-
"sha256": "sha256:
|
|
418
|
+
"sha256": "sha256:1bd889952a59431c2439a14e23b7dc1fd03ce63a4da4cdfa208da25d6f4c1c77"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
"name": "HarnessExecutionBackend",
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
"name": "ZhivexHarness",
|
|
490
|
-
"sha256": "sha256:
|
|
490
|
+
"sha256": "sha256:4275565d750dbfd7d6dcaa7182f05d74136db32b057744446de24d6b69fe2061"
|
|
491
491
|
}
|
|
492
492
|
],
|
|
493
|
-
"digest": "sha256:
|
|
493
|
+
"digest": "sha256:e2ef392ba67e8a07f5d511c0274f8b4171888a1469205f541350fafb0b74f8cb"
|
|
494
494
|
}
|
package/dist/acp-cli.js
CHANGED
|
@@ -5,42 +5,44 @@ import {
|
|
|
5
5
|
parseHarnessModelRoute,
|
|
6
6
|
resolveHarnessModelRoutes,
|
|
7
7
|
validateCliCommandOptions
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-pcn2bk8j.js";
|
|
9
9
|
import {
|
|
10
10
|
serveAcpStdio
|
|
11
11
|
} from "./index-3ah1f369.js";
|
|
12
12
|
import {
|
|
13
|
-
createHarness,
|
|
14
13
|
createHarnessClientAdapter
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import
|
|
14
|
+
} from "./index-txrqqd2r.js";
|
|
15
|
+
import"./index-sbzvrpm7.js";
|
|
16
|
+
import {
|
|
17
|
+
createHarness
|
|
18
|
+
} from "./index-nqhnh1hz.js";
|
|
18
19
|
import {
|
|
19
20
|
usagePricingSchema
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-z0qxmkm2.js";
|
|
21
|
+
} from "./index-fny13znr.js";
|
|
22
|
+
import"./index-w9pjt7td.js";
|
|
23
23
|
import {
|
|
24
24
|
FileChangedWhileReadingError,
|
|
25
25
|
FileSizeLimitError,
|
|
26
26
|
UnsafeFileTypeError,
|
|
27
27
|
readRegularFileNoFollow
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-zmx264xy.js";
|
|
29
29
|
import {
|
|
30
30
|
HARNESS_REQUIRED_CAPABILITIES,
|
|
31
31
|
HARNESS_SUBAGENT_PROFILES,
|
|
32
|
-
HarnessConfigError,
|
|
33
|
-
HarnessError,
|
|
34
32
|
PROVIDERS,
|
|
35
33
|
createProviderModel,
|
|
36
34
|
parseProvider,
|
|
37
35
|
providerDescriptor,
|
|
38
36
|
reasoningEffortSchema,
|
|
39
37
|
resolveHarnessConfig
|
|
40
|
-
} from "./index-
|
|
38
|
+
} from "./index-09zphhwt.js";
|
|
41
39
|
import"./index-8705zxpr.js";
|
|
42
40
|
import"./index-xqxeypt5.js";
|
|
43
|
-
import"./index-
|
|
41
|
+
import"./index-ngg2168h.js";
|
|
42
|
+
import {
|
|
43
|
+
HarnessConfigError,
|
|
44
|
+
HarnessError
|
|
45
|
+
} from "./index-jdb1q8yn.js";
|
|
44
46
|
import {
|
|
45
47
|
__require
|
|
46
48
|
} from "./index-1bx83sw4.js";
|
|
@@ -924,7 +926,7 @@ var parseCliArgs = (argv) => {
|
|
|
924
926
|
|
|
925
927
|
// src/cli/cli-credentials.ts
|
|
926
928
|
async function credentialModel(config, env, modelFactory) {
|
|
927
|
-
const { createProviderModel: createProviderModel2 } = await import("./config-
|
|
929
|
+
const { createProviderModel: createProviderModel2 } = await import("./config-depqpsae.js");
|
|
928
930
|
const { wrapLanguageModel } = await import("@zhivex-ai/core");
|
|
929
931
|
const secrets = providerDescriptor(config.provider).credentialNames.map((name) => env[name]).filter((value) => !!value);
|
|
930
932
|
const safeError = (error) => {
|
package/dist/cli/arguments.d.ts
CHANGED
|
@@ -34,6 +34,9 @@ export interface CliOptions {
|
|
|
34
34
|
maxToolCalls?: number;
|
|
35
35
|
maxToolErrors?: number;
|
|
36
36
|
unlimitedTokens?: boolean;
|
|
37
|
+
unlimitedSteps?: boolean;
|
|
38
|
+
unlimitedToolCalls?: boolean;
|
|
39
|
+
unlimitedDuration?: boolean;
|
|
37
40
|
compactionMaxEstimatedInputTokens?: number;
|
|
38
41
|
maxInputTokens?: number;
|
|
39
42
|
maxOutputTokens?: number;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { CliOptions } from "../arguments.js";
|
|
2
|
-
import { type HarnessConfig } from "../../runtime/config.js";
|
|
2
|
+
import { type HarnessConfig, type HarnessConfigInput } from "../../runtime/config.js";
|
|
3
3
|
import type { TokenUsage } from "@zhivex-ai/core";
|
|
4
4
|
/** Only new local console sessions change defaults. Explicit limits always opt
|
|
5
5
|
* into bounded execution; SDK, service hosts and automation retain their policy. */
|
|
6
|
-
export declare const consoleBudgetOptions: (options:
|
|
6
|
+
export declare const consoleBudgetOptions: <T extends HarnessConfigInput>(options: T, env?: NodeJS.ProcessEnv) => T & {
|
|
7
|
+
maxToolErrors?: number;
|
|
8
|
+
unlimitedSteps: boolean;
|
|
9
|
+
unlimitedToolCalls: boolean;
|
|
10
|
+
unlimitedDuration: boolean;
|
|
11
|
+
unlimitedTokens: boolean;
|
|
12
|
+
};
|
|
7
13
|
/** A saved run owns its budget, including legacy runs without a mode flag. */
|
|
8
14
|
export declare const restoreConsoleOptions: (current: CliOptions, saved: Partial<CliOptions>) => CliOptions;
|
|
9
15
|
export declare const formatConsoleBudget: (config: HarnessConfig, usage?: TokenUsage) => string;
|