@zhivex-ai/harness 0.9.0 → 0.10.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 +29 -0
- package/README.md +42 -16
- package/ROADMAP.md +35 -12
- package/SUPPORT.md +3 -2
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +1291 -417
- package/dist/config.d.ts +3 -3
- package/dist/execution-environment.d.ts +33 -5
- package/dist/harness.d.ts +57 -19
- package/dist/hostile-repository-demo.js +1217 -341
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1797 -443
- package/dist/package-manager.d.ts +17 -0
- package/dist/process-runtime.d.ts +16 -0
- package/dist/sqlite-database.d.ts +23 -0
- package/dist/time-to-safe-fix.d.ts +232 -0
- package/dist/version.d.ts +3 -1
- package/dist/workspace.d.ts +20 -5
- package/dist/zhx.js +1291 -417
- package/docs/CLI.md +4 -4
- package/docs/DURABLE_OPERATIONS.md +11 -3
- package/docs/EXECUTION_ENVIRONMENTS.md +22 -10
- package/docs/EXTENSIBILITY.md +3 -3
- package/docs/HOSTILE_REPOSITORY_DEMO.md +5 -4
- package/docs/RELEASE.md +6 -6
- package/docs/REPOSITORY_EDITING.md +2 -2
- package/docs/TIME_TO_SAFE_FIX.md +172 -0
- package/evaluations/time-to-safe-fix-expanded.jsonl +12 -0
- package/evaluations/time-to-safe-fix-smoke.jsonl +2 -0
- package/package.json +18 -7
package/dist/index.d.ts
CHANGED
|
@@ -7,14 +7,14 @@ export type { StreamRunResultSource } from "./cli-stream.js";
|
|
|
7
7
|
export { HARNESS_SESSION_INDEX_FILE, HARNESS_SESSION_SCHEMA_VERSION, SESSION_RUN_STATUSES, TERMINAL_SESSION_RUN_STATUSES, openCliSessionStore, openSessionStore } from "./sessions.js";
|
|
8
8
|
export type { AppendSessionRunInput, CliSession, CliSessionStore, CliSessionSummary, CreateSessionInput, ForkSessionInput, ListSessionsQuery, OpenSessionStoreOptions, SessionRetentionResult, SessionRunReference, SessionRunStatus, UpdateSessionInput, UpdateSessionRunInput } from "./sessions.js";
|
|
9
9
|
export { CliOciRuntimeAdapter, HARNESS_EXECUTION_ARTIFACT_SCHEMA_VERSION, HARNESS_OCI_LABEL, HARNESS_OCI_LABEL_VALUE, cleanupHarnessExecutionArtifacts, createHarnessOciExecutionEnvironment, describeOciCommand, executionFingerprintInput, harnessExecutionSession } from "./execution-environment.js";
|
|
10
|
-
export type { CreateHarnessOciEnvironmentOptions, EnvironmentPatchImportResult, EnvironmentPatchInspection, ExecutionArtifactCleanupResult, HarnessEnvironmentStatus, HarnessExecutionIoMetrics, HarnessExecutionSession, HarnessOciExecutionEnvironment, HarnessOciRuntimeAdapter, OciImageInspection, OciCommandResult, OciRunRequest } from "./execution-environment.js";
|
|
10
|
+
export type { CreateHarnessOciEnvironmentOptions, EnvironmentPatchImportResult, EnvironmentPatchInspection, ExecutionArtifactCleanupResult, HarnessCommandResult, HarnessEnvironmentStatus, HarnessExecutionIoMetrics, HarnessExecutionSession, HarnessOciExecutionEnvironment, HarnessOciRuntimeAdapter, OciCommandBatchResult, OciImageInspection, OciCommandResult, OciPhaseLatencies, OciRunBatchRequest, OciRunRequest } from "./execution-environment.js";
|
|
11
11
|
export { assertHarnessModelCapabilities, inspectHarnessModelCapabilities, selectHarnessModel } from "./capabilities.js";
|
|
12
12
|
export type { HarnessModelCandidate, HarnessModelCapabilityReport, HarnessModelSelection } from "./capabilities.js";
|
|
13
13
|
export { HARNESS_MCP_CONFIG_SCHEMA_VERSION, HARNESS_MCP_PERMISSIONS, createHarnessMcpTools, createHttpMcpClient, loadHarnessMcpConfiguration, normalizeHarnessMcpConfiguration } from "./mcp.js";
|
|
14
14
|
export type { HarnessMcpClients, HarnessMcpConfiguration, HarnessMcpPermission, HarnessMcpServerConfig, HarnessMcpTransport, McpClient, McpListedTool } from "./mcp.js";
|
|
15
15
|
export { HARNESS_SUBAGENT_PROFILE_DESCRIPTORS, createHarnessSubagents, runHarnessReviewGroup } from "./orchestration.js";
|
|
16
16
|
export type { HarnessReviewGroupResult, HarnessSubagentProfileDescriptor, HarnessSubagentRuntime } from "./orchestration.js";
|
|
17
|
-
export { BUN_ENGINE_RANGE, HARNESS_VERSION } from "./version.js";
|
|
17
|
+
export { BUN_ENGINE_RANGE, HARNESS_VERSION, NODE_ENGINE_RANGE } from "./version.js";
|
|
18
18
|
export { CHANGE_ENVELOPE_DIGEST_ALGORITHM, CHANGE_ENVELOPE_SCHEMA_VERSION, MAX_CHANGE_ENVELOPE_APPROVALS, MAX_CHANGE_ENVELOPE_APPROVAL_SCOPES, MAX_CHANGE_ENVELOPE_ATTESTATIONS, MAX_CHANGE_ENVELOPE_CHECKS, canonicalizeChangeEnvelope, changeEnvelopeApprovalSchema, changeEnvelopeBaseSchema, changeEnvelopeCheckSchema, changeEnvelopeEvidenceSchema, changeEnvelopeFingerprintsSchema, changeEnvelopeInputSchema, changeEnvelopePatchSchema, changeEnvelopePreconditionsSchema, changeEnvelopeSchema, computeChangeEnvelopeDigest, computeChangeEnvelopeEvidenceDigest, createChangeEnvelope, digestChangeEnvelopeArtifact, externalAttestationReferenceSchema, verifyChangeEnvelope } from "./change-envelope.js";
|
|
19
19
|
export type { ChangeEnvelope, ChangeEnvelopeApproval, ChangeEnvelopeCheck, ChangeEnvelopeEvidence, ChangeEnvelopePreconditions, ChangeEnvelopeVerificationIssue, ChangeEnvelopeVerificationIssueCode, ChangeEnvelopeVerificationOptions, ChangeEnvelopeVerificationResult, CreateChangeEnvelopeInput, ExternalAttestationReference } from "./change-envelope.js";
|
|
20
20
|
export { EDIT_CONTRACT_SCHEMA_VERSION, EDIT_DIGEST_ALGORITHM, MAX_EDIT_CHANGES, MAX_EDIT_FILE_BYTES, MAX_EDIT_PROPOSAL_BYTES, applyEditProposalInputSchema, createEditProposal, editContractDocument, editChangeSchema, editChangesSchema, editProposalInputSchema, editProposalChangeSchema, editProposalSchema, fileDigestSchema, moveFileInputSchema, mutationAuditEntrySchema, mutationOperationSchema, quarantineFileInputSchema, restoreFileInputSchema, validateEditProposal, workspaceFilePathSchema } from "./edit-contracts.js";
|
|
@@ -25,4 +25,6 @@ export { validateStateDirectory } from "./state-directory.js";
|
|
|
25
25
|
export type { HarnessMigrationResult, HarnessPersistence, HarnessRunQuery } from "./operations.js";
|
|
26
26
|
export type { CreateHarnessOptions, HarnessRunOptions, ZhivexHarness } from "./harness.js";
|
|
27
27
|
export { Workspace } from "./workspace.js";
|
|
28
|
-
export type { CommandResult, HarnessCheck, ListFilesOptions, ReadFilesRequest, SearchFilesOptions, SearchManyOptions, SearchManyQuery, SearchMatch, WorkspaceFile, WorkspaceIndexDiagnostics } from "./workspace.js";
|
|
28
|
+
export type { CommandResult, HarnessCheck, ListFilesOptions, ListFilesResult, ReadFilesRequest, SearchFilesOptions, SearchManyOptions, SearchManyQuery, SearchMatch, WorkspaceFile, WorkspaceTopologyFile, WorkspaceIndexDiagnostics } from "./workspace.js";
|
|
29
|
+
export { DEFAULT_TIME_TO_SAFE_FIX_GOAL, TIME_TO_SAFE_FIX_CARRIERS, TIME_TO_SAFE_FIX_FAILURE_STAGES, TIME_TO_SAFE_FIX_GOALS, TIME_TO_SAFE_FIX_PROFILES, TIME_TO_SAFE_FIX_SCHEMA_VERSION, classifyTimeToSafeFixFailure, createTimeToSafeFixCases, createTimeToSafeFixReport, createTimeToSafeFixSample, injectTimeToSafeFixAttack, timeToSafeFixDriverResultSchema, timeToSafeFixLatencyStatistics, timeToSafeFixTaskSchema } from "./time-to-safe-fix.js";
|
|
30
|
+
export type { TimeToSafeFixAggregate, TimeToSafeFixCarrier, TimeToSafeFixCase, TimeToSafeFixDriverResult, TimeToSafeFixFailureStage, TimeToSafeFixGoal, TimeToSafeFixLatencyStatistics, TimeToSafeFixProfile, TimeToSafeFixRate, TimeToSafeFixRatioStatistics, TimeToSafeFixReport, TimeToSafeFixSample, TimeToSafeFixTask } from "./time-to-safe-fix.js";
|