@zhivex-ai/harness 1.1.0-rc.2 → 1.1.1
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 +109 -0
- package/README.md +6 -3
- package/contracts/public-api.json +7 -0
- package/contracts/stable-api-signatures.json +29 -29
- package/dist/{approval-diff.d.ts → approvals/approval-diff.d.ts} +1 -1
- package/dist/{approval-preview.d.ts → approvals/approval-preview.d.ts} +3 -3
- package/dist/cli/arguments.d.ts +105 -0
- package/dist/cli/changes.d.ts +2 -0
- package/dist/{cli-credentials.d.ts → cli/cli-credentials.d.ts} +14 -2
- package/dist/{cli-options.d.ts → cli/cli-options.d.ts} +1 -1
- package/dist/{cli-profiles.d.ts → cli/cli-profiles.d.ts} +17 -1
- package/dist/{cli-stream.d.ts → cli/cli-stream.d.ts} +3 -3
- package/dist/cli/configured-harness.d.ts +12 -0
- package/dist/{console-context.d.ts → cli/console/console-context.d.ts} +2 -2
- package/dist/cli/console/console-model-catalog.d.ts +8 -0
- package/dist/{console-navigation.d.ts → cli/console/console-navigation.d.ts} +4 -2
- package/dist/cli/console.d.ts +2 -0
- package/dist/cli/doctor.d.ts +52 -0
- package/dist/cli/errors.d.ts +8 -0
- package/dist/cli/help-text.d.ts +2 -0
- package/dist/cli/presentation.d.ts +23 -0
- package/dist/cli/resume-metadata.d.ts +12 -0
- package/dist/cli/routing.d.ts +6 -0
- package/dist/cli/run-commands.d.ts +4 -0
- package/dist/{run-document.d.ts → cli/run-document.d.ts} +9 -9
- package/dist/cli/run-management.d.ts +2 -0
- package/dist/{service-client-cli.d.ts → cli/service-client-cli.d.ts} +1 -1
- package/dist/cli/session-management.d.ts +8 -0
- package/dist/cli/setup.d.ts +10 -0
- package/dist/cli/state.d.ts +2 -0
- package/dist/cli/task-input.d.ts +6 -0
- package/dist/{terminal-ui.d.ts → cli/terminal/terminal-ui.d.ts} +2 -0
- package/dist/cli/terminal/tool-activity.d.ts +19 -0
- package/dist/cli.d.ts +32 -184
- package/dist/cli.js +11577 -10275
- package/dist/client/adapter.d.ts +4 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/{json-contracts.d.ts → client/json-contracts.d.ts} +6 -0
- package/dist/{local-service.d.ts → client/local-service.d.ts} +2 -2
- package/dist/{client-contract.d.ts → client/protocol.d.ts} +3 -6
- package/dist/{service-events.d.ts → client/service-events.d.ts} +1 -1
- package/dist/context/adaptive-compaction.d.ts +16 -0
- package/dist/{compaction.d.ts → context/compaction.d.ts} +1 -1
- package/dist/{context-engineering.d.ts → context/context-engineering.d.ts} +2 -2
- package/dist/{context-metrics.d.ts → context/context-metrics.d.ts} +2 -0
- package/dist/{task-memory.d.ts → context/task-memory.d.ts} +2 -2
- package/dist/{execution-environment.d.ts → execution/execution-environment.d.ts} +4 -4
- package/dist/hostile-repository-demo.js +1276 -447
- package/dist/index.d.ts +49 -48
- package/dist/index.js +2117 -1096
- package/dist/internal/desktop/persistence.d.ts +14 -0
- package/dist/internal/desktop/protocol.d.ts +8 -0
- package/dist/internal/desktop/providers.d.ts +9 -0
- package/dist/internal/desktop/runtime.d.ts +7 -0
- package/dist/models/catalog-store.d.ts +15 -0
- package/dist/models/catalog.d.ts +74 -0
- package/dist/{operations.d.ts → persistence/operations.d.ts} +2 -1
- package/dist/{state-backup.d.ts → persistence/state-backup.d.ts} +1 -1
- package/dist/{capabilities.d.ts → providers/capabilities.d.ts} +1 -1
- package/dist/providers/meta-continuation.d.ts +1 -0
- package/dist/{providers.d.ts → providers/providers.d.ts} +4 -0
- package/dist/{routing.d.ts → providers/routing.d.ts} +1 -1
- package/dist/{config.d.ts → runtime/config.d.ts} +5 -1
- package/dist/runtime/delegation-contracts.d.ts +23 -0
- package/dist/runtime/error-diagnostics.d.ts +186 -0
- package/dist/{harness.d.ts → runtime/harness.d.ts} +13 -135
- package/dist/{orchestration.d.ts → runtime/orchestration.d.ts} +2 -0
- package/dist/{runtime-diagnostics.d.ts → runtime/runtime-diagnostics.d.ts} +1 -0
- package/dist/{runtime-policy.d.ts → runtime/runtime-policy.d.ts} +21 -5
- package/dist/{time-to-safe-fix.d.ts → runtime/time-to-safe-fix.d.ts} +149 -0
- package/dist/service-cli.js +1473 -583
- package/dist/tools/execution.d.ts +47 -0
- package/dist/tools/shared.d.ts +67 -0
- package/dist/tools/workspace.d.ts +85 -0
- package/dist/verify-historical-migrations.js +1451 -622
- package/dist/zhx.js +11577 -10275
- package/docs/CLI.md +56 -2
- package/docs/CONTEXT_ENGINEERING.md +29 -2
- package/docs/CREDENTIALS.md +16 -6
- package/docs/DURABLE_OPERATIONS.md +6 -0
- package/docs/EXTENSIBILITY.md +58 -1
- package/docs/FIRST_USE.md +25 -12
- package/docs/MODEL_CATALOG.md +48 -0
- package/docs/README.md +1 -0
- package/docs/THREAT_MODEL.md +1 -1
- package/docs/TIME_TO_SAFE_FIX.md +2 -0
- package/docs/USAGE.md +3 -3
- package/evaluations/representative-assembly-matrix.json +91 -1
- package/examples/README.md +3 -3
- package/package.json +18 -11
- package/dist/console-model-catalog.d.ts +0 -25
- /package/dist/{approval-history.d.ts → approvals/approval-history.d.ts} +0 -0
- /package/dist/{cli-help.d.ts → cli/cli-help.d.ts} +0 -0
- /package/dist/{console-commands.d.ts → cli/console/console-commands.d.ts} +0 -0
- /package/dist/{console-input.d.ts → cli/console/console-input.d.ts} +0 -0
- /package/dist/{console-presentation.d.ts → cli/console/console-presentation.d.ts} +0 -0
- /package/dist/{console-welcome.d.ts → cli/console/console-welcome.d.ts} +0 -0
- /package/dist/{terminal-continuation.d.ts → cli/terminal/terminal-continuation.d.ts} +0 -0
- /package/dist/{terminal-markdown.d.ts → cli/terminal/terminal-markdown.d.ts} +0 -0
- /package/dist/{package-manager.d.ts → execution/package-manager.d.ts} +0 -0
- /package/dist/{process-runtime.d.ts → execution/process-runtime.d.ts} +0 -0
- /package/dist/{mcp.d.ts → integrations/mcp.d.ts} +0 -0
- /package/dist/{persistence-secrets.d.ts → persistence/persistence-secrets.d.ts} +0 -0
- /package/dist/{recorded-workspace.d.ts → persistence/recorded-workspace.d.ts} +0 -0
- /package/dist/{sessions.d.ts → persistence/sessions.d.ts} +0 -0
- /package/dist/{sqlite-access.d.ts → persistence/sqlite-access.d.ts} +0 -0
- /package/dist/{sqlite-database.d.ts → persistence/sqlite-database.d.ts} +0 -0
- /package/dist/{state-directory.d.ts → persistence/state-directory.d.ts} +0 -0
- /package/dist/{errors.d.ts → runtime/errors.d.ts} +0 -0
- /package/dist/{model-budget.d.ts → runtime/model-budget.d.ts} +0 -0
- /package/dist/{repair-controller.d.ts → runtime/repair-controller.d.ts} +0 -0
- /package/dist/{repair-progress.d.ts → runtime/repair-progress.d.ts} +0 -0
- /package/dist/{repair-verifier.d.ts → runtime/repair-verifier.d.ts} +0 -0
- /package/dist/{run-interruption.d.ts → runtime/run-interruption.d.ts} +0 -0
- /package/dist/{runtime-checkpoints.d.ts → runtime/runtime-checkpoints.d.ts} +0 -0
- /package/dist/{usage-ledger.d.ts → runtime/usage-ledger.d.ts} +0 -0
- /package/dist/{tool-registry.d.ts → tools/tool-registry.d.ts} +0 -0
- /package/dist/{bounded-reads.d.ts → workspace/bounded-reads.d.ts} +0 -0
- /package/dist/{change-envelope.d.ts → workspace/change-envelope.d.ts} +0 -0
- /package/dist/{edit-contracts.d.ts → workspace/edit-contracts.d.ts} +0 -0
- /package/dist/{file-security.d.ts → workspace/file-security.d.ts} +0 -0
- /package/dist/{replacement-edits.d.ts → workspace/replacement-edits.d.ts} +0 -0
- /package/dist/{workspace-mutation-lock.d.ts → workspace/workspace-mutation-lock.d.ts} +0 -0
- /package/dist/{workspace.d.ts → workspace/workspace.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,115 @@ 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.1.1 - 2026-09-23
|
|
8
|
+
|
|
9
|
+
- Update the RC.10 SDK batch to its stable releases: Agents 1.9.0, Core 1.23.0, Gemini 0.12.2, Meta 0.2.7, OpenAI 0.13.5 and Qwen 0.15.1. Preserve approvals and exactly-once host effects across resume; the updated artifact still requires release certification.
|
|
10
|
+
- Include bounded approval-denial evidence in benchmark and release diagnostics: tool, rejection rule, approval round and preceding compactions, without raw arguments or model text. Distinguish lexical command matches from direct protected-test edits.
|
|
11
|
+
- Publish directly to `latest` after fresh exact-artifact certification. Preserve the failed `v1.1.0` tag and its evidence.
|
|
12
|
+
- Archive superseded audit reports and intermediate diagnostic plans in Git history.
|
|
13
|
+
|
|
14
|
+
## 1.1.0 - 2026-09-23
|
|
15
|
+
|
|
16
|
+
Compatible minor release of the Node CLI and TypeScript library. The separate
|
|
17
|
+
Desktop application remains private alpha; Gemini remains provisional.
|
|
18
|
+
|
|
19
|
+
- Simplify first-use provider/model selection, credential setup, command help and recovery. Add UTF-8 task input, atomic profile updates and a shared searchable model catalog.
|
|
20
|
+
- Improve conversation activity, context estimates and compaction while preserving working plans. Add explicit unlimited cumulative-token mode without disabling per-request limits, accounting or other execution controls.
|
|
21
|
+
- Add authenticated local service transport, durable redacted event replay and application-owned read delegation with file scope and acceptance checks.
|
|
22
|
+
- Integrate the SDK prerelease batch certified by RC.10, including redaction, failed-child accounting and OpenAI function receipt fixes. Preserve approvals and exactly-once host effects across resume.
|
|
23
|
+
- Use Muse Spark 1.3, Qwen 3.8 Max and GPT-6 Luna for new selections and release certification. Add bounded Meta receipt-continuation recovery; preserve saved model selections and historical certification mappings.
|
|
24
|
+
- Preserve Stable 1.x contracts and state format 1. Existing installations need no state migration; review new default models when creating profiles.
|
|
25
|
+
|
|
26
|
+
RC.10 passed the full artifact, live and representative gates. Publication of this
|
|
27
|
+
stable artifact requires its own protected certification and provenance verification.
|
|
28
|
+
|
|
29
|
+
## 1.1.0-rc.10 - 2026-09-23
|
|
30
|
+
|
|
31
|
+
- Restore `qwen3.8-max` as the default for new CLI/Desktop selections and RC.10 certification. Keep saved models and historical release mappings unchanged.
|
|
32
|
+
- Remove transient provider/SDK investigation reports and their local trial evidence; retain them in Git history.
|
|
33
|
+
|
|
34
|
+
- Recover once when Meta Responses rejects a function receipt continuation because its response ID is unavailable. Replay the identical request after a bounded delay, preserve cancellation, and exclude hosted tools and unrelated HTTP errors. Host tools are not executed again.
|
|
35
|
+
- Bind the new Meta transport policy to durable run identity. Use Qwen 3.8 Max, OpenAI Luna 6 and Muse Spark 1.3 release models; full release certification remains required.
|
|
36
|
+
|
|
37
|
+
## 1.1.0-rc.9 - 2026-09-23
|
|
38
|
+
|
|
39
|
+
- Upgrade Core to 1.23.0-next.2 and Agents to 1.9.0-next.2. All eight consumer redaction cases pass, including later rejection and file-store reopen. Qwen Flash orchestration remains intermittent, so RC certification is still blocked.
|
|
40
|
+
|
|
41
|
+
- Default new Meta selections to Muse Spark 1.3 and use Responses for built-in Meta agent tool loops. Bind the transport migration to durable run identity; preserve saved model IDs and historical evidence. Certification remains pending.
|
|
42
|
+
|
|
43
|
+
- Add application-owned read delegation contracts: models select task IDs while Harness preserves task text, enforces file scope and validates acceptance. Keep durable SDK execution and budgets; expose finite error classifications without logging task content.
|
|
44
|
+
- Allow trusted strict-mode applications to select a fingerprint-bound tool catalog and render only relevant tool instructions. Use scoped contracts/catalogs in live certification without weakening effect, approval, journal or marker checks.
|
|
45
|
+
- Integrate the published SDK next batch with failed-child linkage/accounting and OpenAI function receipt fixes. Update native-tool fixtures to the consistent metadata contract.
|
|
46
|
+
- Publication remains blocked: governed Flash orchestration passed three local executions, but the scoped base campaign failed one of three cases on exact approval arguments before mutation. These are local validation results, not a new RC certification.
|
|
47
|
+
|
|
48
|
+
## 1.1.0-rc.8 - 2026-09-22
|
|
49
|
+
|
|
50
|
+
- Preserve OpenAI function tool receipts through approval resume using SDK result envelopes. Prevent function names such as `apply_patch` from being mistaken for native Responses tools and losing their output. Keep release assertions and fail-fast gates unchanged.
|
|
51
|
+
|
|
52
|
+
## 1.1.0-rc.7 - 2026-09-22
|
|
53
|
+
|
|
54
|
+
- Select `gpt-6-luna` as the OpenAI default for new CLI/Desktop choices and pin it in RC7 release certification. Preserve explicitly saved models and historical certification mappings.
|
|
55
|
+
- Identify failed base live-smoke checkpoints with allowlisted labels and assertion kinds, without retaining raw assertion values or model responses.
|
|
56
|
+
|
|
57
|
+
## 1.1.0-rc.6 - 2026-09-22
|
|
58
|
+
|
|
59
|
+
- Stop release gates and remaining providers after a confirmed failure while retaining exhaustive manual diagnostics.
|
|
60
|
+
- Preserve completed certification cases across report failures and record bounded, sanitized error structure and finalization phases.
|
|
61
|
+
|
|
62
|
+
## 1.1.0-rc.5 - 2026-09-22
|
|
63
|
+
|
|
64
|
+
Unpublished candidate targeting npm `next`, superseding the tagged but unpublished RC.4.
|
|
65
|
+
|
|
66
|
+
- Use `qwen3.8-flash` as the default Qwen model in CLI/Desktop and the new release certification matrix. Keep Max selectable and preserve explicitly saved model choices and historical certification pins. Flash requires fresh release-bound certification.
|
|
67
|
+
|
|
68
|
+
## 1.1.0-rc.4 - 2026-09-22
|
|
69
|
+
|
|
70
|
+
- Align the SDK batch with the latest stable packages verified on 2026-09-22:
|
|
71
|
+
Agents 1.8.0, Core 1.22.0, Gemini 0.12.1, Meta 0.2.6, OpenAI 0.13.4 and
|
|
72
|
+
Qwen 0.15.0. Keep the compatible TypeScript 6.0.3 compiler API for architecture
|
|
73
|
+
and Stable signature checks while building with TypeScript 7.0.2.
|
|
74
|
+
|
|
75
|
+
- Use searchable provider/model selection during first use, detect a lone environment
|
|
76
|
+
provider, recover failed keychain setup with explicit temporary use or retry, and
|
|
77
|
+
show one ready screen with credential source and approval policy.
|
|
78
|
+
- Make `doctor` follow conversation defaults and inspect the selected environment
|
|
79
|
+
or keychain credential without contacting the provider. Human diagnostics focus
|
|
80
|
+
on the selected provider; JSON retains the full provider inventory. One-shot
|
|
81
|
+
execution continues to require explicit profiles and environment credentials.
|
|
82
|
+
|
|
83
|
+
- Retain recent conversation groups by estimated tokens, adapt repair compaction
|
|
84
|
+
to remaining input allowance, and preserve structured working plans across
|
|
85
|
+
repeated summaries. Keep SDK approval/checkpoint ownership and explicit overrides.
|
|
86
|
+
- Unify context estimates, reuse transport measurements and cache tool-schema
|
|
87
|
+
serialization. Default discovery to ten search matches and path-only listings;
|
|
88
|
+
callers can explicitly request larger results and digests.
|
|
89
|
+
|
|
90
|
+
- Add `--no-token-budget` / `unlimitedTokens: true` to disable cumulative token
|
|
91
|
+
budgets for main runs and subagents while preserving usage accounting,
|
|
92
|
+
compaction, per-request limits, and non-token execution controls.
|
|
93
|
+
|
|
94
|
+
Unpublished release candidate targeting npm `next`, following published RC.3.
|
|
95
|
+
Fresh protected certification is required before publication. Stable `latest`
|
|
96
|
+
remains 1.0.0.
|
|
97
|
+
|
|
98
|
+
- Make appended command help independent of task/configuration validation, group options with examples, and accept `--name=value` for value options.
|
|
99
|
+
- Add explicit UTF-8 task input through `zhx run -` and `zhx review -`, bounded to 1 MiB and retaining approval requirements.
|
|
100
|
+
- Add atomic personal profile updates with `zhx init --update`, reopen provider/model selection after declining the default profile, and give actionable usage/configuration recovery messages.
|
|
101
|
+
- Share the curated model catalog across CLI and Desktop, with primary/other groups, explicit lifecycle and validation metadata, custom model IDs, and optional HTTPS catalog distribution with cached fallback.
|
|
102
|
+
- Improve the separate Desktop alpha with rendered Markdown, file diffs, conversation navigation and local preferences, accessible panels and controlled external links. Desktop retains its independent private alpha version.
|
|
103
|
+
|
|
104
|
+
## 1.1.0-rc.3 - 2026-09-22
|
|
105
|
+
|
|
106
|
+
Published release candidate on npm `next`. The changes below describe RC.3;
|
|
107
|
+
subsequent work belongs to RC.4. Stable `latest` remains 1.0.0.
|
|
108
|
+
|
|
109
|
+
- Group interactive tool activity into a bounded live line and summaries between assistant messages. Preserve individual failures, check receipts and approval requests; `/verbose` restores event detail.
|
|
110
|
+
- Identify token-budget and step-limit failures without mislabeling them as provider stream failures or exposing arbitrary provider error payloads.
|
|
111
|
+
- Enforce cumulative Qwen token budgets between responses for runs without subagents, including approval resume, without injecting a transport `maxTokens` parameter. An over-budget response cannot execute its requested tools or trigger another call.
|
|
112
|
+
- Organize CLI, runtime, providers, persistence, tools and Desktop integration behind explicit module boundaries, with architecture checks and unchanged public API contracts.
|
|
113
|
+
- Make the packaged conversation smoke select its fixture provider explicitly; onboarding is verified separately.
|
|
114
|
+
- Add release preparation and early metadata validation, retain release tarballs for recovery, and distinguish publication from verification in workflow summaries.
|
|
115
|
+
|
|
7
116
|
## 1.1.0-rc.2 - 2026-09-22
|
|
8
117
|
|
|
9
118
|
Release candidate superseding the unpublished RC.1, targeting npm `next`.
|
package/README.md
CHANGED
|
@@ -6,15 +6,18 @@ Zhivex Harness is a local terminal assistant and TypeScript library. It supports
|
|
|
6
6
|
OpenAI, Qwen and Meta, with provisional Gemini support. Conversations and pending
|
|
7
7
|
approvals survive restarts.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Version `1.1.1` is prepared for stable publication, with console, local service
|
|
10
|
+
and governed delegation improvements. Publication remains pending until the
|
|
11
|
+
[repository release status](https://raw.githubusercontent.com/Zhivex/zhivex-harness/main/release-status.json)
|
|
12
|
+
records its verified artifact. The installation commands below target 1.1.1 once
|
|
13
|
+
published. Desktop retains its separate private alpha status.
|
|
11
14
|
|
|
12
15
|
## Quick start
|
|
13
16
|
|
|
14
17
|
Requires Node.js 22.13.0 or newer, Git and a provider API key.
|
|
15
18
|
|
|
16
19
|
```sh
|
|
17
|
-
npm install -g @zhivex-ai/harness@1.
|
|
20
|
+
npm install -g @zhivex-ai/harness@1.1.1
|
|
18
21
|
cd /path/to/your/project
|
|
19
22
|
zhx
|
|
20
23
|
```
|
|
@@ -540,6 +540,7 @@
|
|
|
540
540
|
"HarnessContextManifestIdentity",
|
|
541
541
|
"HarnessContextSource",
|
|
542
542
|
"HarnessCostBudget",
|
|
543
|
+
"HarnessDelegationContract",
|
|
543
544
|
"HarnessEnvironmentStatus",
|
|
544
545
|
"HarnessErrorCategory",
|
|
545
546
|
"HarnessErrorCode",
|
|
@@ -738,6 +739,7 @@
|
|
|
738
739
|
"HarnessContextConfiguration",
|
|
739
740
|
"HarnessContextManifestIdentity",
|
|
740
741
|
"HarnessContextSource",
|
|
742
|
+
"HarnessDelegationContract",
|
|
741
743
|
"HarnessEnvironmentStatus",
|
|
742
744
|
"HarnessErrorOptions",
|
|
743
745
|
"HarnessExecutionIoMetrics",
|
|
@@ -904,6 +906,7 @@
|
|
|
904
906
|
"--provider",
|
|
905
907
|
"--model",
|
|
906
908
|
"--profile",
|
|
909
|
+
"--update",
|
|
907
910
|
"--json"
|
|
908
911
|
],
|
|
909
912
|
"required": [],
|
|
@@ -943,6 +946,7 @@
|
|
|
943
946
|
"--oci-max-workspace-bytes",
|
|
944
947
|
"--oci-max-file-write-bytes",
|
|
945
948
|
"--oci-tmpfs-mb",
|
|
949
|
+
"--no-token-budget",
|
|
946
950
|
"--max-steps",
|
|
947
951
|
"--timeout-ms",
|
|
948
952
|
"--max-tool-calls",
|
|
@@ -1015,6 +1019,7 @@
|
|
|
1015
1019
|
"--namespace",
|
|
1016
1020
|
"--context-config",
|
|
1017
1021
|
"--no-project-context",
|
|
1022
|
+
"--no-token-budget",
|
|
1018
1023
|
"--subagent-max-steps",
|
|
1019
1024
|
"--subagent-max-tool-calls",
|
|
1020
1025
|
"--subagent-max-tool-errors",
|
|
@@ -1067,6 +1072,7 @@
|
|
|
1067
1072
|
"--oci-max-workspace-bytes",
|
|
1068
1073
|
"--oci-max-file-write-bytes",
|
|
1069
1074
|
"--oci-tmpfs-mb",
|
|
1075
|
+
"--no-token-budget",
|
|
1070
1076
|
"--max-steps",
|
|
1071
1077
|
"--timeout-ms",
|
|
1072
1078
|
"--max-tool-calls",
|
|
@@ -1158,6 +1164,7 @@
|
|
|
1158
1164
|
"--oci-max-workspace-bytes",
|
|
1159
1165
|
"--oci-max-file-write-bytes",
|
|
1160
1166
|
"--oci-tmpfs-mb",
|
|
1167
|
+
"--no-token-budget",
|
|
1161
1168
|
"--max-steps",
|
|
1162
1169
|
"--timeout-ms",
|
|
1163
1170
|
"--max-tool-calls",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "CLI_OPTION_DEFINITIONS",
|
|
28
|
-
"sha256": "sha256:
|
|
28
|
+
"sha256": "sha256:4da95d4f23e38f79e7506efb7ad4a937e58bf8ab85ea5e256b05c6f3446fb037"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "CLI_OPTION_NAMES",
|
|
32
|
-
"sha256": "sha256:
|
|
32
|
+
"sha256": "sha256:103709e32bffb3b601aa4a5dafdb31da57fb671377ae27eee211636c31ac93ab"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "DEFAULT_ALLOWED_CHECKS",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"name": "cancelHarnessRun",
|
|
136
|
-
"sha256": "sha256:
|
|
136
|
+
"sha256": "sha256:823fd43f826d587b0b3147c844dfd47f7392a74632cc2bd45c3058d661e173c2"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "canonicalizeChangeEnvelope",
|
|
@@ -141,11 +141,11 @@
|
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "cleanupHarnessRuns",
|
|
144
|
-
"sha256": "sha256:
|
|
144
|
+
"sha256": "sha256:cbc2c34f94bd783b6934706ed874f85bd96575b38be3984093bad39f4dc5d2f1"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"name": "cliJsonDocumentSchema",
|
|
148
|
-
"sha256": "sha256:
|
|
148
|
+
"sha256": "sha256:ea42dc40b4af3974defe2e12e4d7ee9e34b0720bac927f6ea3c34659bb77c0ea"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"name": "cliJsonLineDocumentSchema",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "createHarness",
|
|
168
|
-
"sha256": "sha256:
|
|
168
|
+
"sha256": "sha256:52818969fa1527136a5b2759e385b3627390d66a6224703e7652481abbc9b5cf"
|
|
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:c8dd18aac2d97b68b5397f5eb934253e7f27a572538f5ced999bcc35aa0f1745"
|
|
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:8786fb1b47fdfb31136a08b83112942ccfbfcacb2532f6aea5d39eeabef48b1b"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "digestChangeEnvelopeArtifact",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"name": "exportHarnessStateBackup",
|
|
196
|
-
"sha256": "sha256:
|
|
196
|
+
"sha256": "sha256:39809fa355443c69e4b601cf9f695a514ceff82cfd769eb754cc865815066291"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"name": "harnessErrorDocument",
|
|
@@ -201,23 +201,23 @@
|
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "importHarnessStateBackup",
|
|
204
|
-
"sha256": "sha256:
|
|
204
|
+
"sha256": "sha256:ce72b186c9e4f22662ebde0f9db2d7c5529ce641355862a872107e237ed2876a"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"name": "importHarnessStateBackupFile",
|
|
208
|
-
"sha256": "sha256:
|
|
208
|
+
"sha256": "sha256:033e94a7eb08cff52e52524cb1b745b45f001645bd9c881916f51cd0bfc06fdc"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
"name": "inspectHarnessRun",
|
|
212
|
-
"sha256": "sha256:
|
|
212
|
+
"sha256": "sha256:a6cfd6fa9adc33ee9f8e11c2055c9add421143866718511634fd1b923c718366"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"name": "inspectHarnessState",
|
|
216
|
-
"sha256": "sha256:
|
|
216
|
+
"sha256": "sha256:db2caf84f86749f44f738fa2e838c81014dd44a69c00fdd12457107cc13ed644"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
"name": "listHarnessRuns",
|
|
220
|
-
"sha256": "sha256:
|
|
220
|
+
"sha256": "sha256:f5e2aaf8d3a7703743982dc78824e8ea37b09e84aa6f30fa02549a3258e49581"
|
|
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:03b462e72c9c2caf7a730b0fb8b3d0c7d6377c666e01a69a38f74da98387a07e"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
"name": "normalizeHarnessError",
|
|
@@ -241,11 +241,11 @@
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"name": "openHarnessPersistence",
|
|
244
|
-
"sha256": "sha256:
|
|
244
|
+
"sha256": "sha256:8e8a5e30d452b06b52e4ef7ee62790e3b07751d61f3641a3ff08d546f2c3dd8d"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"name": "parseCliJsonDocument",
|
|
248
|
-
"sha256": "sha256:
|
|
248
|
+
"sha256": "sha256:ccd4fcd5c2d462d0e583a4ba35c6c7d3e8dc463a461be981ee3cf6a9172ba53c"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "parseCliJsonLineDocument",
|
|
@@ -269,11 +269,11 @@
|
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"name": "resolveHarnessConfig",
|
|
272
|
-
"sha256": "sha256:
|
|
272
|
+
"sha256": "sha256:026cbbe3f5491a96e5bbb115692c47eb8128c51e2a2c8584eef2e8ebade1a85c"
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
"name": "runHarness",
|
|
276
|
-
"sha256": "sha256:
|
|
276
|
+
"sha256": "sha256:0804b28280524cb6ef0e465987138a201da5d5c65e2406271ac329c096b7d98e"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"name": "serializeStreamEvent",
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
"name": "CliJsonDocument",
|
|
322
|
-
"sha256": "sha256:
|
|
322
|
+
"sha256": "sha256:4883ded187c36153df00c29064b9ceff2dea7b529087d6901655d94fb9d42819"
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
"name": "CliJsonLineDocument",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"name": "CliOptionName",
|
|
334
|
-
"sha256": "sha256:
|
|
334
|
+
"sha256": "sha256:43987e98d1dc505e7348b59155334fea559a202e94941fc77528a5aa727ec471"
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"name": "CliReviewGroupDocument",
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"name": "CliRunResultDocument",
|
|
354
|
-
"sha256": "sha256:
|
|
354
|
+
"sha256": "sha256:31efc5f7914df25f60ebec8408242b54bcae290d2bb0306869fc2fddcf357390"
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"name": "CliSession",
|
|
@@ -375,23 +375,23 @@
|
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
"name": "CreateHarnessOptions",
|
|
378
|
-
"sha256": "sha256:
|
|
378
|
+
"sha256": "sha256:d8e0ac53e4adf68e3b69ad916720b1149fb9d6bddf28d2862513071c65a2c384"
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
"name": "HarnessBudget",
|
|
382
|
-
"sha256": "sha256:
|
|
382
|
+
"sha256": "sha256:86935e2a5d85184a15af839900cff28f8f46f58df68e62114327be88e287a249"
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
"name": "HarnessConfig",
|
|
386
|
-
"sha256": "sha256:
|
|
386
|
+
"sha256": "sha256:79a3e06319c96a8f1f22e79268ba69fb197e36239c416d71be4da6f0fa3fcc34"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"name": "HarnessConfigInput",
|
|
390
|
-
"sha256": "sha256:
|
|
390
|
+
"sha256": "sha256:df1e5958a465f308ca8a3fe6acb57fdcd4b8cf8abd4568aac729a8b82909a799"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"name": "HarnessConfigMigrationResult",
|
|
394
|
-
"sha256": "sha256:
|
|
394
|
+
"sha256": "sha256:6a0786f1ca26a837dcdff1a06190e3b3b0805796134e48314f9e4d033a5e75d3"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
"name": "HarnessContextBundle",
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
"name": "ZhivexHarness",
|
|
490
|
-
"sha256": "sha256:
|
|
490
|
+
"sha256": "sha256:4d1be5f38915422cedcc86e52d04daab55d91b9141aec6a0239ce8d1cbeaaf5e"
|
|
491
491
|
}
|
|
492
492
|
],
|
|
493
|
-
"digest": "sha256:
|
|
493
|
+
"digest": "sha256:d64051c5fff1b9b20576aebff01ca1a8451730850efbe79570cb2a0fddab1d7c"
|
|
494
494
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { AgentRunState } from "@zhivex-ai/core";
|
|
3
|
-
import type { HarnessClientRun } from "
|
|
3
|
+
import type { HarnessClientRun } from "../client/protocol.js";
|
|
4
4
|
import type { ApprovalDecisionView } from "./approval-history.js";
|
|
5
5
|
export declare const APPROVAL_DIFFS_KEY = "clientApprovalDiffsV1";
|
|
6
6
|
declare const file: z.ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { HarnessOciExecutionEnvironment } from "
|
|
1
|
+
import type { HarnessOciExecutionEnvironment } from "../execution/execution-environment.js";
|
|
2
2
|
import type { AgentStoreScope } from "@zhivex-ai/core";
|
|
3
|
-
import type { Workspace } from "
|
|
4
|
-
import type { HarnessClientRun } from "
|
|
3
|
+
import type { Workspace } from "../workspace/workspace.js";
|
|
4
|
+
import type { HarnessClientRun } from "../client/protocol.js";
|
|
5
5
|
export interface ApprovalPreviewFile {
|
|
6
6
|
path: string;
|
|
7
7
|
expectedDigest: string | null;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { type AgentStatus } from "@zhivex-ai/agents";
|
|
2
|
+
import { type HarnessSubagentProfile } from "../runtime/config.js";
|
|
3
|
+
import { HarnessError } from "../runtime/errors.js";
|
|
4
|
+
export declare const CLI_COMMANDS: readonly ["init", "run", "review", "chat", "providers", "doctor", "resume", "runs", "sessions", "changes", "state", "help", "version"];
|
|
5
|
+
export declare const CLI_RUNS_COMMANDS: readonly ["list", "inspect", "cancel", "cleanup", "export"];
|
|
6
|
+
export declare const CLI_SESSIONS_COMMANDS: readonly ["list", "inspect", "rename", "fork", "archive"];
|
|
7
|
+
export declare const CLI_CHANGES_COMMANDS: readonly ["create", "verify"];
|
|
8
|
+
export declare const CLI_STATE_COMMANDS: readonly ["status", "export", "import"];
|
|
9
|
+
type Command = (typeof CLI_COMMANDS)[number];
|
|
10
|
+
type RunsCommand = (typeof CLI_RUNS_COMMANDS)[number];
|
|
11
|
+
type SessionsCommand = (typeof CLI_SESSIONS_COMMANDS)[number];
|
|
12
|
+
type ChangesCommand = (typeof CLI_CHANGES_COMMANDS)[number];
|
|
13
|
+
type StateCommand = (typeof CLI_STATE_COMMANDS)[number];
|
|
14
|
+
export interface CliOptions {
|
|
15
|
+
serviceFile?: string;
|
|
16
|
+
command: Command;
|
|
17
|
+
helpTopic?: string;
|
|
18
|
+
profile?: string;
|
|
19
|
+
updateProfile?: boolean;
|
|
20
|
+
provider?: string;
|
|
21
|
+
model?: string;
|
|
22
|
+
workspace?: string;
|
|
23
|
+
stateDirectory?: string;
|
|
24
|
+
storeBackend?: string;
|
|
25
|
+
tenantId?: string;
|
|
26
|
+
userId?: string;
|
|
27
|
+
namespace?: string;
|
|
28
|
+
maxSteps?: number;
|
|
29
|
+
timeoutMs?: number;
|
|
30
|
+
maxToolCalls?: number;
|
|
31
|
+
maxToolErrors?: number;
|
|
32
|
+
unlimitedTokens?: boolean;
|
|
33
|
+
maxInputTokens?: number;
|
|
34
|
+
maxOutputTokens?: number;
|
|
35
|
+
maxTotalTokens?: number;
|
|
36
|
+
maxCostUsd?: number;
|
|
37
|
+
inputCostPerMillion?: number;
|
|
38
|
+
outputCostPerMillion?: number;
|
|
39
|
+
allowedChecks?: string[];
|
|
40
|
+
requiredCapabilities?: string[];
|
|
41
|
+
subagentProfiles?: HarnessSubagentProfile[];
|
|
42
|
+
reviewers?: HarnessSubagentProfile[];
|
|
43
|
+
routes?: string[];
|
|
44
|
+
subagentMaxSteps?: number;
|
|
45
|
+
subagentMaxToolCalls?: number;
|
|
46
|
+
subagentMaxToolErrors?: number;
|
|
47
|
+
subagentMaxInputTokens?: number;
|
|
48
|
+
subagentMaxOutputTokens?: number;
|
|
49
|
+
subagentMaxTotalTokens?: number;
|
|
50
|
+
subagentTimeoutMs?: number;
|
|
51
|
+
maxParallelReviews?: number;
|
|
52
|
+
executionBackend?: string;
|
|
53
|
+
agentProfile?: string;
|
|
54
|
+
ociRuntime?: string;
|
|
55
|
+
ociImage?: string;
|
|
56
|
+
ociAllowedCommands?: string[];
|
|
57
|
+
ociShellMode?: string;
|
|
58
|
+
ociMaxProcessRuntimeMs?: number;
|
|
59
|
+
ociMaxProcessOutputBytes?: number;
|
|
60
|
+
ociMaxMemoryMb?: number;
|
|
61
|
+
ociMaxPids?: number;
|
|
62
|
+
ociMaxCpus?: number;
|
|
63
|
+
ociMaxWorkspaceBytes?: number;
|
|
64
|
+
ociMaxFileWriteBytes?: number;
|
|
65
|
+
ociTmpfsMb?: number;
|
|
66
|
+
mcpConfigPath?: string;
|
|
67
|
+
contextConfigPath?: string;
|
|
68
|
+
projectContext?: boolean;
|
|
69
|
+
prompt?: string;
|
|
70
|
+
runId?: string;
|
|
71
|
+
idempotencyKey?: string;
|
|
72
|
+
runsCommand?: RunsCommand;
|
|
73
|
+
sessionsCommand?: SessionsCommand;
|
|
74
|
+
changesCommand?: ChangesCommand;
|
|
75
|
+
stateCommand?: StateCommand;
|
|
76
|
+
artifactPath?: string;
|
|
77
|
+
patchPath?: string;
|
|
78
|
+
preconditionsPath?: string;
|
|
79
|
+
verificationTime?: string;
|
|
80
|
+
backupPath?: string;
|
|
81
|
+
sessionId?: string;
|
|
82
|
+
sessionTitle?: string;
|
|
83
|
+
sessionSearch?: string;
|
|
84
|
+
pricingFile?: string;
|
|
85
|
+
usageLimitUsd?: number;
|
|
86
|
+
continueSession: boolean;
|
|
87
|
+
implicitCommand: boolean;
|
|
88
|
+
statuses?: AgentStatus[];
|
|
89
|
+
limit?: number;
|
|
90
|
+
cursor?: string;
|
|
91
|
+
before?: number;
|
|
92
|
+
reason?: string;
|
|
93
|
+
cascade: boolean;
|
|
94
|
+
final: boolean;
|
|
95
|
+
apply: boolean;
|
|
96
|
+
yes: boolean;
|
|
97
|
+
approve?: boolean;
|
|
98
|
+
json: boolean;
|
|
99
|
+
jsonl: boolean;
|
|
100
|
+
}
|
|
101
|
+
export declare class CliUsageError extends HarnessError {
|
|
102
|
+
constructor(message: string);
|
|
103
|
+
}
|
|
104
|
+
export declare const parseCliArgs: (argv: string[]) => CliOptions;
|
|
105
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HarnessProvider } from "
|
|
1
|
+
import { type HarnessProvider } from "../runtime/config.js";
|
|
2
2
|
export interface SecretEntry {
|
|
3
3
|
getPassword(): Promise<string | null | undefined>;
|
|
4
4
|
setPassword(value: string): Promise<void>;
|
|
@@ -13,6 +13,12 @@ export interface CredentialInput {
|
|
|
13
13
|
secret(prompt: string): Promise<string>;
|
|
14
14
|
}
|
|
15
15
|
export type EntryFactory = (provider: string) => Promise<SecretEntry>;
|
|
16
|
+
export type CredentialStatus = {
|
|
17
|
+
source: "environment" | "temporary" | "keychain" | "missing" | "unavailable" | "blocked";
|
|
18
|
+
configured: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare class CredentialSetupError extends Error {
|
|
21
|
+
}
|
|
16
22
|
export declare const credentialService = "ai.zhivex.harness.cli";
|
|
17
23
|
export declare const validCredential: (value: string) => boolean;
|
|
18
24
|
export declare const nativeCredentialEntry: EntryFactory;
|
|
@@ -27,7 +33,13 @@ export declare class CliCredentials {
|
|
|
27
33
|
private environmentKey;
|
|
28
34
|
private validate;
|
|
29
35
|
private saved;
|
|
36
|
+
private readonly sources;
|
|
37
|
+
source(provider: HarnessProvider): "blocked" | "environment" | "keychain" | "missing" | "temporary" | "unavailable";
|
|
38
|
+
private endpointOverride;
|
|
39
|
+
/** Presence only: never contacts a provider or returns a secret. */
|
|
40
|
+
inspect(provider: HarnessProvider): Promise<CredentialStatus>;
|
|
30
41
|
configure(provider: HarnessProvider, input: CredentialInput): Promise<boolean>;
|
|
42
|
+
private configureOnce;
|
|
31
43
|
providerEnvironment(provider: HarnessProvider, input: CredentialInput): Promise<NodeJS.ProcessEnv>;
|
|
32
44
|
clear(): void;
|
|
33
45
|
}
|
|
@@ -35,4 +47,4 @@ export declare class CliCredentials {
|
|
|
35
47
|
export declare function credentialModel(config: {
|
|
36
48
|
provider: HarnessProvider;
|
|
37
49
|
model: string;
|
|
38
|
-
}, env: NodeJS.ProcessEnv, modelFactory?: typeof import("
|
|
50
|
+
}, env: NodeJS.ProcessEnv, modelFactory?: typeof import("../runtime/config.js").createProviderModel): Promise<import("@zhivex-ai/agents").LanguageModel<import("@zhivex-ai/core").ProviderOptions>>;
|
|
@@ -8,7 +8,7 @@ export interface CliCommandOptionContract {
|
|
|
8
8
|
repeatable: readonly string[];
|
|
9
9
|
conflicts: Readonly<Record<string, readonly string[]>>;
|
|
10
10
|
}
|
|
11
|
-
export declare const CLI_OPTION_NAMES: readonly ["--provider", "--model", "--profile", "--route", "--workspace", "--state-dir", "--mcp-config", "--context-config", "--no-project-context", "--patch", "--preconditions", "--now", "--agent-profile", "--execution", "--oci-runtime", "--oci-image", "--oci-allow-command", "--oci-shell", "--oci-max-process-runtime-ms", "--oci-max-process-output-bytes", "--oci-max-memory-mb", "--oci-max-pids", "--oci-max-cpus", "--oci-max-workspace-bytes", "--oci-max-file-write-bytes", "--oci-tmpfs-mb", "--store", "--tenant", "--user", "--namespace", "--idempotency-key", "--max-steps", "--timeout-ms", "--max-tool-calls", "--max-tool-errors", "--max-input-tokens", "--max-output-tokens", "--max-total-tokens", "--subagent-max-steps", "--subagent-max-tool-calls", "--subagent-max-tool-errors", "--subagent-max-input-tokens", "--subagent-max-output-tokens", "--subagent-max-total-tokens", "--subagent-timeout-ms", "--max-parallel-reviews", "--max-cost-usd", "--input-cost-per-million", "--output-cost-per-million", "--allow-check", "--require-capability", "--subagent", "--reviewer", "--yes", "--approve", "--deny", "--json", "--jsonl", "--session", "--continue", "--status", "--limit", "--cursor", "--before", "--reason", "--cascade", "--final", "--service", "--apply", "--help", "--version", "--search", "--pricing-file", "--usage-limit-usd"];
|
|
11
|
+
export declare const CLI_OPTION_NAMES: readonly ["--provider", "--model", "--profile", "--route", "--workspace", "--state-dir", "--mcp-config", "--context-config", "--no-project-context", "--patch", "--preconditions", "--now", "--agent-profile", "--execution", "--oci-runtime", "--oci-image", "--oci-allow-command", "--oci-shell", "--oci-max-process-runtime-ms", "--oci-max-process-output-bytes", "--oci-max-memory-mb", "--oci-max-pids", "--oci-max-cpus", "--oci-max-workspace-bytes", "--oci-max-file-write-bytes", "--oci-tmpfs-mb", "--store", "--tenant", "--user", "--namespace", "--idempotency-key", "--no-token-budget", "--max-steps", "--timeout-ms", "--max-tool-calls", "--max-tool-errors", "--max-input-tokens", "--max-output-tokens", "--max-total-tokens", "--subagent-max-steps", "--subagent-max-tool-calls", "--subagent-max-tool-errors", "--subagent-max-input-tokens", "--subagent-max-output-tokens", "--subagent-max-total-tokens", "--subagent-timeout-ms", "--max-parallel-reviews", "--max-cost-usd", "--input-cost-per-million", "--output-cost-per-million", "--allow-check", "--require-capability", "--subagent", "--reviewer", "--yes", "--approve", "--deny", "--json", "--jsonl", "--session", "--continue", "--update", "--status", "--limit", "--cursor", "--before", "--reason", "--cascade", "--final", "--service", "--apply", "--help", "--version", "--search", "--pricing-file", "--usage-limit-usd"];
|
|
12
12
|
export type CliOptionName = (typeof CLI_OPTION_NAMES)[number];
|
|
13
13
|
export declare const CLI_OPTION_DEFINITIONS: Readonly<Record<CliOptionName, CliOptionDefinition>>;
|
|
14
14
|
export declare const CLI_COMMAND_OPTION_CONTRACTS: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type HarnessConfigInput, type HarnessProvider } from "
|
|
2
|
+
import { type HarnessConfigInput, type HarnessProvider } from "../runtime/config.js";
|
|
3
3
|
export declare const CLI_PROFILE_SCHEMA_VERSION: 1;
|
|
4
4
|
export declare const CLI_PROFILE_CONFIG_DIRECTORY_ENV: "ZHIVEX_HARNESS_CONFIG_DIR";
|
|
5
5
|
export declare const MAX_CLI_PROFILE_BYTES: number;
|
|
@@ -34,6 +34,22 @@ export declare const createCliProfile: (name: string, input: {
|
|
|
34
34
|
model: string;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
|
+
/** Publish a complete, private replacement without truncating the current profile. */
|
|
38
|
+
export declare const updateCliProfile: (name: string, input: {
|
|
39
|
+
provider: HarnessProvider;
|
|
40
|
+
model: string;
|
|
41
|
+
}, context?: CliProfilePathContext) => Promise<{
|
|
42
|
+
path: string;
|
|
43
|
+
profile: {
|
|
44
|
+
schemaVersion: 1;
|
|
45
|
+
provider: "gemini" | "meta" | "openai" | "qwen";
|
|
46
|
+
model: string;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
37
49
|
export declare const applyCliProfile: <T extends HarnessConfigInput & {
|
|
38
50
|
profile?: string;
|
|
39
51
|
}>(options: T, context?: CliProfilePathContext) => Promise<T>;
|
|
52
|
+
/** Shared defaults for the conversation and its diagnostic command. */
|
|
53
|
+
export declare const resolveCliDefaults: <T extends HarnessConfigInput & {
|
|
54
|
+
profile?: string;
|
|
55
|
+
}>(options: T, context?: CliProfilePathContext) => Promise<T>;
|
|
@@ -112,7 +112,7 @@ export declare const streamEventDocument: (event: AgentStreamEvent, sequence?: n
|
|
|
112
112
|
sequence: number;
|
|
113
113
|
type: "agent-approval-request" | "agent-approval-resolved" | "agent-compaction" | "agent-run-finish" | "agent-run-start" | "agent-run-update" | "agent-step-finish" | "agent-step-start" | "error" | "finish" | "image-generation" | "provider-data" | "text-delta" | "tool-approval-request" | "tool-call" | "tool-result";
|
|
114
114
|
stepIndex: number;
|
|
115
|
-
status: import("@zhivex-ai/
|
|
115
|
+
status: import("@zhivex-ai/agents").AgentStepStatus;
|
|
116
116
|
toolCalls: number;
|
|
117
117
|
} | {
|
|
118
118
|
schemaVersion: 1;
|
|
@@ -120,7 +120,7 @@ export declare const streamEventDocument: (event: AgentStreamEvent, sequence?: n
|
|
|
120
120
|
sequence: number;
|
|
121
121
|
type: "agent-approval-request" | "agent-approval-resolved" | "agent-compaction" | "agent-run-finish" | "agent-run-start" | "agent-run-update" | "agent-step-finish" | "agent-step-start" | "error" | "finish" | "image-generation" | "provider-data" | "text-delta" | "tool-approval-request" | "tool-call" | "tool-result";
|
|
122
122
|
compactionId: string;
|
|
123
|
-
reasons: import("@zhivex-ai/
|
|
123
|
+
reasons: import("@zhivex-ai/agents").AgentCompactionReason[];
|
|
124
124
|
messageCountBefore: number;
|
|
125
125
|
messageCountAfter: number;
|
|
126
126
|
} | {
|
|
@@ -129,7 +129,7 @@ export declare const streamEventDocument: (event: AgentStreamEvent, sequence?: n
|
|
|
129
129
|
sequence: number;
|
|
130
130
|
type: "agent-approval-request" | "agent-approval-resolved" | "agent-compaction" | "agent-run-finish" | "agent-run-start" | "agent-run-update" | "agent-step-finish" | "agent-step-start" | "error" | "finish" | "image-generation" | "provider-data" | "text-delta" | "tool-approval-request" | "tool-call" | "tool-result";
|
|
131
131
|
runId: string;
|
|
132
|
-
status: import("@zhivex-ai/
|
|
132
|
+
status: import("@zhivex-ai/agents").AgentStatus;
|
|
133
133
|
provider: string;
|
|
134
134
|
model: string;
|
|
135
135
|
} | undefined;
|