@zhivex-ai/harness 1.2.0-rc.9 → 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 (57) hide show
  1. package/CHANGELOG.md +36 -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 +804 -545
  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 +3 -1
  20. package/dist/{cli-2dxcfrz5.js → cli-3jmy4h5h.js} +348 -187
  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-gddtj1db.js → cli-entry-c2f58zj2.js} +699 -139
  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/task-memory.d.ts +2 -2
  28. package/dist/hostile-repository-demo.js +661 -448
  29. package/dist/index.js +1517 -1074
  30. package/dist/persistence/operations.d.ts +5 -1
  31. package/dist/persistence/state-backup-stream.d.ts +4 -0
  32. package/dist/providers/meta-replay.d.ts +1 -1
  33. package/dist/providers/qwen-context.d.ts +2 -0
  34. package/dist/providers/qwen-hosted-policy.d.ts +5 -0
  35. package/dist/providers/reasoning.d.ts +18 -0
  36. package/dist/runtime/config.d.ts +3 -0
  37. package/dist/runtime/error-diagnostics.d.ts +2 -0
  38. package/dist/runtime/harness.d.ts +1 -1
  39. package/dist/runtime/model-edit-references.d.ts +4 -2
  40. package/dist/runtime/runtime-policy.d.ts +5 -4
  41. package/dist/runtime/time-to-safe-fix.d.ts +6 -1
  42. package/dist/service-cli.js +820 -575
  43. package/dist/{service-client-cli-1c9j6xah.js → service-client-cli-yx56n0hc.js} +66 -8
  44. package/dist/tools/execution.d.ts +8 -8
  45. package/dist/tools/workspace.d.ts +16 -16
  46. package/dist/verify-historical-migrations.js +830 -574
  47. package/dist/workspace/file-security.d.ts +6 -0
  48. package/dist/zhx.js +2 -2
  49. package/docs/CLI.md +52 -1
  50. package/docs/DURABLE_OPERATIONS.md +8 -0
  51. package/docs/EXTENSIBILITY.md +1 -1
  52. package/docs/FIRST_USE.md +6 -6
  53. package/docs/MODEL_CATALOG.md +28 -1
  54. package/evaluations/representative-assembly-matrix.json +46 -1
  55. package/evaluations/representative-repositories-v2.jsonl +7 -0
  56. package/examples/README.md +4 -4
  57. 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-2dxcfrz5.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,
@@ -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>;