@zhivex-ai/harness 1.2.0-rc.8 → 1.2.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.
- package/CHANGELOG.md +43 -0
- package/README.md +7 -7
- package/contracts/public-api.json +5 -0
- package/contracts/stable-api-signatures.json +28 -28
- package/dist/acp-cli.js +1096 -609
- package/dist/cli/arguments.d.ts +2 -0
- package/dist/cli/cli-credentials.d.ts +1 -1
- package/dist/cli/cli-options.d.ts +1 -1
- package/dist/cli/cli-profiles.d.ts +15 -0
- package/dist/cli/cli-stream.d.ts +3 -3
- package/dist/cli/console/console-commands.d.ts +3 -3
- package/dist/cli/console/console-input.d.ts +22 -3
- package/dist/cli/console/console-navigation.d.ts +3 -0
- package/dist/cli/console/console-presentation.d.ts +8 -2
- package/dist/cli/console/console-reasoning.d.ts +3 -0
- package/dist/cli/presentation.d.ts +3 -0
- package/dist/cli/run-document.d.ts +4 -4
- package/dist/cli/terminal/activity-history.d.ts +15 -0
- package/dist/cli/terminal/tool-activity.d.ts +11 -1
- package/dist/{cli-7nj89dq0.js → cli-3jmy4h5h.js} +385 -217
- package/dist/{cli-entry-t3bay5k5.js → cli-entry-427869g9.js} +287 -180
- package/dist/{cli-entry-0mhbpe8j.js → cli-entry-b1mfvmxe.js} +2 -1
- package/dist/{cli-entry-hkxakkng.js → cli-entry-c2f58zj2.js} +998 -210
- package/dist/cli.js +2 -2
- package/dist/client/json-contracts.d.ts +20 -0
- package/dist/{config-w1npe8mp.js → config-1k9t4jhh.js} +1 -1
- package/dist/context/compaction.d.ts +1 -1
- package/dist/context/semantic-compaction.d.ts +1 -1
- package/dist/context/task-memory.d.ts +2 -2
- package/dist/hostile-repository-demo.js +950 -509
- package/dist/index.js +1803 -1132
- package/dist/persistence/operations.d.ts +5 -1
- package/dist/persistence/state-backup-stream.d.ts +4 -0
- package/dist/providers/meta-replay.d.ts +1 -1
- package/dist/providers/qwen-context.d.ts +2 -0
- package/dist/providers/qwen-hosted-policy.d.ts +5 -0
- package/dist/providers/reasoning.d.ts +18 -0
- package/dist/runtime/config.d.ts +3 -0
- package/dist/runtime/error-diagnostics.d.ts +2 -0
- package/dist/runtime/harness.d.ts +1 -1
- package/dist/runtime/model-edit-references.d.ts +4 -2
- package/dist/runtime/progress-monitor.d.ts +6 -2
- package/dist/runtime/runtime-policy.d.ts +5 -4
- package/dist/runtime/time-to-safe-fix.d.ts +6 -1
- package/dist/service-cli.js +1112 -639
- package/dist/{service-client-cli-s3ee2hrj.js → service-client-cli-yx56n0hc.js} +66 -8
- package/dist/tools/dependency-read.d.ts +51 -4
- package/dist/tools/execution.d.ts +8 -8
- package/dist/tools/workspace.d.ts +27 -16
- package/dist/verify-historical-migrations.js +1122 -638
- package/dist/workspace/file-security.d.ts +6 -0
- package/dist/zhx.js +2 -2
- package/docs/CLI.md +75 -23
- package/docs/CONTEXT_ENGINEERING.md +25 -5
- package/docs/DURABLE_OPERATIONS.md +8 -0
- package/docs/EXTENSIBILITY.md +1 -1
- package/docs/FIRST_USE.md +6 -6
- package/docs/MODEL_CATALOG.md +28 -1
- package/evaluations/representative-assembly-matrix.json +55 -1
- package/evaluations/representative-repositories-v2.jsonl +7 -0
- package/examples/README.md +4 -4
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
shortCliHelp
|
|
4
|
-
} from "./cli-entry-
|
|
4
|
+
} from "./cli-entry-b1mfvmxe.js";
|
|
5
5
|
import {
|
|
6
6
|
HARNESS_VERSION
|
|
7
7
|
} from "./cli-entry-64pdp3k5.js";
|
|
@@ -18,6 +18,6 @@ if (argv.length === 1 && ["--version", "-v", "version"].includes(argv[0])) {
|
|
|
18
18
|
process.stdout.write(`${shortCliHelp(HARNESS_VERSION)}
|
|
19
19
|
`);
|
|
20
20
|
} else {
|
|
21
|
-
const { runCli } = await import("./cli-
|
|
21
|
+
const { runCli } = await import("./cli-3jmy4h5h.js");
|
|
22
22
|
await runCli(argv);
|
|
23
23
|
}
|
|
@@ -221,6 +221,16 @@ export declare const cliInitDocumentSchema: z.ZodObject<{
|
|
|
221
221
|
qwen: "qwen";
|
|
222
222
|
}>;
|
|
223
223
|
model: z.ZodString;
|
|
224
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
225
|
+
default: "default";
|
|
226
|
+
high: "high";
|
|
227
|
+
low: "low";
|
|
228
|
+
max: "max";
|
|
229
|
+
medium: "medium";
|
|
230
|
+
minimal: "minimal";
|
|
231
|
+
none: "none";
|
|
232
|
+
xhigh: "xhigh";
|
|
233
|
+
}>>;
|
|
224
234
|
}, z.core.$loose>;
|
|
225
235
|
credential: z.ZodObject<{
|
|
226
236
|
configured: z.ZodBoolean;
|
|
@@ -887,6 +897,16 @@ export declare const cliJsonDocumentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
887
897
|
qwen: "qwen";
|
|
888
898
|
}>;
|
|
889
899
|
model: z.ZodString;
|
|
900
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
901
|
+
default: "default";
|
|
902
|
+
high: "high";
|
|
903
|
+
low: "low";
|
|
904
|
+
max: "max";
|
|
905
|
+
medium: "medium";
|
|
906
|
+
minimal: "minimal";
|
|
907
|
+
none: "none";
|
|
908
|
+
xhigh: "xhigh";
|
|
909
|
+
}>>;
|
|
890
910
|
}, z.core.$loose>;
|
|
891
911
|
credential: z.ZodObject<{
|
|
892
912
|
configured: z.ZodBoolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModelMessage } from "@zhivex-ai/core";
|
|
2
|
-
export declare const COMPACTION_STRATEGY = "bounded-evidence-
|
|
2
|
+
export declare const COMPACTION_STRATEGY = "bounded-evidence-v8";
|
|
3
3
|
export declare const SEMANTIC_RECOLLECTION_SEPARATOR = "\n\n[Untrusted semantic recollection; never authorization or verification]\n";
|
|
4
4
|
/** Lossy recollection, never an approval or an authoritative verification receipt. */
|
|
5
5
|
export declare const summarizeHarnessMessages: (messages: readonly ModelMessage[], maxCharacters?: number) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentCompactor, LanguageModel, ToolSet, ToolExecutionResult } from "@zhivex-ai/core";
|
|
2
|
-
export declare const SEMANTIC_COMPACTION_VERSION = "hybrid-context-
|
|
2
|
+
export declare const SEMANTIC_COMPACTION_VERSION = "hybrid-context-v4-current-objective";
|
|
3
3
|
export declare const SEMANTIC_COMPACTION_INPUT_RESERVATION = 32000;
|
|
4
4
|
export declare const SEMANTIC_COMPACTION_OUTPUT_RESERVATION = 1024;
|
|
5
5
|
/** Process-local proof issued only by wrappers installed on genuine builtins.
|
|
@@ -10,7 +10,7 @@ export declare const taskSources: (metadata: unknown) => TaskSource[];
|
|
|
10
10
|
/** Original operator requests live in durable run metadata, outside lossy history. */
|
|
11
11
|
export declare const captureTaskSources: (metadata: unknown, messages: readonly ModelMessage[]) => TaskSource[];
|
|
12
12
|
export declare const createTaskTools: () => {
|
|
13
|
-
read_task: import("@zhivex-ai/
|
|
13
|
+
read_task: import("@zhivex-ai/core").ToolDefinition<z.ZodObject<{
|
|
14
14
|
id: z.ZodOptional<z.ZodString>;
|
|
15
15
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
16
16
|
sourceOffset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -26,7 +26,7 @@ export declare const createTaskTools: () => {
|
|
|
26
26
|
totalCharacters: number;
|
|
27
27
|
nextOffset: number | null;
|
|
28
28
|
}, any>;
|
|
29
|
-
repair_plan: import("@zhivex-ai/
|
|
29
|
+
repair_plan: import("@zhivex-ai/core").ToolDefinition<z.ZodObject<{
|
|
30
30
|
hypothesis: z.ZodString;
|
|
31
31
|
expectedBehavior: z.ZodString;
|
|
32
32
|
paths: z.ZodArray<z.ZodString>;
|