@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.
Files changed (62) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +7 -7
  3. package/contracts/public-api.json +5 -0
  4. package/contracts/stable-api-signatures.json +28 -28
  5. package/dist/acp-cli.js +1096 -609
  6. package/dist/cli/arguments.d.ts +2 -0
  7. package/dist/cli/cli-credentials.d.ts +1 -1
  8. package/dist/cli/cli-options.d.ts +1 -1
  9. package/dist/cli/cli-profiles.d.ts +15 -0
  10. package/dist/cli/cli-stream.d.ts +3 -3
  11. package/dist/cli/console/console-commands.d.ts +3 -3
  12. package/dist/cli/console/console-input.d.ts +22 -3
  13. package/dist/cli/console/console-navigation.d.ts +3 -0
  14. package/dist/cli/console/console-presentation.d.ts +8 -2
  15. package/dist/cli/console/console-reasoning.d.ts +3 -0
  16. package/dist/cli/presentation.d.ts +3 -0
  17. package/dist/cli/run-document.d.ts +4 -4
  18. package/dist/cli/terminal/activity-history.d.ts +15 -0
  19. package/dist/cli/terminal/tool-activity.d.ts +11 -1
  20. package/dist/{cli-7nj89dq0.js → cli-3jmy4h5h.js} +385 -217
  21. package/dist/{cli-entry-t3bay5k5.js → cli-entry-427869g9.js} +287 -180
  22. package/dist/{cli-entry-0mhbpe8j.js → cli-entry-b1mfvmxe.js} +2 -1
  23. package/dist/{cli-entry-hkxakkng.js → cli-entry-c2f58zj2.js} +998 -210
  24. package/dist/cli.js +2 -2
  25. package/dist/client/json-contracts.d.ts +20 -0
  26. package/dist/{config-w1npe8mp.js → config-1k9t4jhh.js} +1 -1
  27. package/dist/context/compaction.d.ts +1 -1
  28. package/dist/context/semantic-compaction.d.ts +1 -1
  29. package/dist/context/task-memory.d.ts +2 -2
  30. package/dist/hostile-repository-demo.js +950 -509
  31. package/dist/index.js +1803 -1132
  32. package/dist/persistence/operations.d.ts +5 -1
  33. package/dist/persistence/state-backup-stream.d.ts +4 -0
  34. package/dist/providers/meta-replay.d.ts +1 -1
  35. package/dist/providers/qwen-context.d.ts +2 -0
  36. package/dist/providers/qwen-hosted-policy.d.ts +5 -0
  37. package/dist/providers/reasoning.d.ts +18 -0
  38. package/dist/runtime/config.d.ts +3 -0
  39. package/dist/runtime/error-diagnostics.d.ts +2 -0
  40. package/dist/runtime/harness.d.ts +1 -1
  41. package/dist/runtime/model-edit-references.d.ts +4 -2
  42. package/dist/runtime/progress-monitor.d.ts +6 -2
  43. package/dist/runtime/runtime-policy.d.ts +5 -4
  44. package/dist/runtime/time-to-safe-fix.d.ts +6 -1
  45. package/dist/service-cli.js +1112 -639
  46. package/dist/{service-client-cli-s3ee2hrj.js → service-client-cli-yx56n0hc.js} +66 -8
  47. package/dist/tools/dependency-read.d.ts +51 -4
  48. package/dist/tools/execution.d.ts +8 -8
  49. package/dist/tools/workspace.d.ts +27 -16
  50. package/dist/verify-historical-migrations.js +1122 -638
  51. package/dist/workspace/file-security.d.ts +6 -0
  52. package/dist/zhx.js +2 -2
  53. package/docs/CLI.md +75 -23
  54. package/docs/CONTEXT_ENGINEERING.md +25 -5
  55. package/docs/DURABLE_OPERATIONS.md +8 -0
  56. package/docs/EXTENSIBILITY.md +1 -1
  57. package/docs/FIRST_USE.md +6 -6
  58. package/docs/MODEL_CATALOG.md +28 -1
  59. package/evaluations/representative-assembly-matrix.json +55 -1
  60. package/evaluations/representative-repositories-v2.jsonl +7 -0
  61. package/examples/README.md +4 -4
  62. 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-0mhbpe8j.js";
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-7nj89dq0.js");
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;
@@ -26,7 +26,7 @@ import {
26
26
  providerAvailability,
27
27
  providerDescriptor,
28
28
  resolveHarnessConfig
29
- } from "./cli-entry-t3bay5k5.js";
29
+ } from "./cli-entry-427869g9.js";
30
30
  import"./cli-entry-1bx83sw4.js";
31
31
  export {
32
32
  BUILTIN_PROVIDER_REGISTRATIONS,
@@ -1,5 +1,5 @@
1
1
  import type { ModelMessage } from "@zhivex-ai/core";
2
- export declare const COMPACTION_STRATEGY = "bounded-evidence-v7";
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-v3-attested-sources";
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/agents").ToolDefinition<z.ZodObject<{
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/agents").ToolDefinition<z.ZodObject<{
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>;