Skip to content

@paraharness/git ​

Variables ​

VariableDescription
gitFrozen git DSL builder and receipt schema namespace (@paraharness/git).
GitAbortMetaSchemaZod schema validating GitAbortMeta objects returned by git.snapshotAndReset().
gitExecutorsDefault frozen RuntimeExecutorRegistrySlice instance for @paraharness/git.
GitScopeReceiptSchemaZod schema validating GitScopeReceipt objects returned by inspect() and commitChild().
GitSyncReceiptSchemaZod schema validating GitSyncReceipt objects returned by syncChild() and syncRoot().
HarnessMetaSchemaZod schema validating persistent <gitdir>/harness-meta.json worktree lineage and recovery metadata.

Functions ​

FunctionDescription
createGitCandidateComparisonToolDriversCreates the ToolDriver handling GitCandidateComparisonToolNode (git:candidate-comparison-tool) invocations.
createGitCandidateComparisonToolsCreates the speculative candidate comparison and benchmark tool bundle (git.candidateComparisonTools(runner?)).
createGitCommitAndPushBuilderCreates a fluent GitCommitAndPushBuilder (git.commitAndPush(id, options)).
createGitCowWorktreeBuilderCreates a fluent GitCowWorktreeBuilder (git.cowWorktree(options?)).
createGitDiscardBranchBuilderCreates a fluent AstBuilder<GitDiscardBranchNode> (git.discardBranch()).
createGitExecutorsConstructs a fresh RuntimeExecutorRegistrySlice registering all @paraharness/git scope, step, check, hook, cross-verifier, and tool executors.
createGitKeepWorktreeBuilderCreates a fluent AstBuilder<GitKeepWorktreeNode> (git.keepWorktree()).
createGitMergeQueueBuilderCreates a fluent GitMergeQueueBuilder (git.mergeQueue(id, options)).
createGitPatchEquivalenceBuilderCreates a CrossVerifierBuilder for normalized patch equivalence clustering (git.patchEquivalence).
createGitPublicSurfaceCrossTesterBuilderCreates a CrossVerifierBuilder for AST-gated public-boundary cross-testing (git.publicSurfaceCrossTester).
createGitRefReaderToolDriversCreates the ToolDriver handling GitRefReaderToolNode (git:ref-reader-tool) invocations.
createGitRefReaderToolsCreates the read-only git object store inspection tool bundle (git.refReaderTools(runner?)).
createGitResetWorktreeBuilderCreates a fluent AstBuilder<GitDiscardBranchNode> (git.resetWorktree()).
createGitSnapshotAndResetBuilderCreates a fluent AstBuilder<GitSnapshotAndResetNode> (git.snapshotAndReset()).
executeGitCleanWorkingTreeCheckEvaluates a GitCleanWorkingTreeNode (git:clean-working-tree) conflict-clean check on ctx.scopeHandle.
executeGitCommitAndPushStepExecutes a GitCommitAndPushNode (git.commitAndPush) step against the active GitWorktreeHandle.
executeGitDiscardBranchHookExecutes a GitDiscardBranchNode (git.resetWorktree() / git.discardBranch()) rewind hook on input.handle.
executeGitKeepWorktreeHookExecutes a GitKeepWorktreeNode (git.keepWorktree()) rewind hook on input.handle.
executeGitMergeQueueStepExecutes a GitMergeQueueNode (git.mergeQueue) step using speculative cumulative rebase chains.
executeGitPatchEquivalenceExecutes a GitPatchEquivalenceNode (git.patchEquivalence) across speculative worktree candidates.
executeGitPublicSurfaceCrossTesterExecutes a GitPublicSurfaceCrossTesterNode (git.publicSurfaceCrossTester) across speculative candidates.
executeGitSnapshotAndResetHookExecutes a GitSnapshotAndResetNode (git.snapshotAndReset()) abort hook on input.handle.

Classes ​

ClassDescription
GitCowWorktreeScopeDriverTier-3 branchable Copy-on-Write Git worktree isolation scope driver (git.cowWorktree).

Interfaces ​

InterfaceDescription
GitAbortMetaValidated abort metadata produced by git.snapshotAndReset().
GitCandidateComparisonToolNodePassive AST node for speculative candidate comparison and benchmark tools (git.candidateComparisonTools).
GitCheckpointPayloadSerialized checkpoint payload produced by GitCowWorktreeScopeDriver.serializeCheckpoint().
GitCleanWorkingTreeNodePassive AST node verifying that a GitWorktreeHandle has zero unresolved conflict paths or paired conflict markers.
GitCommitAndPushBuilderFluent builder for a retry-safe commit, rebase, and push domain step (git.commitAndPush).
GitCommitAndPushNodePassive AST node squashing, rebasing, verifying, and pushing a worktree branch (git.commitAndPush).
GitCommitAndPushOptionsConfiguration options for git.commitAndPush(id, options) (createGitCommitAndPushBuilder).
GitCowWorktreeBuilderFluent builder for a Tier-3 branchable Copy-on-Write Git worktree scope (git.cowWorktree).
GitCowWorktreeNodePassive AST node configuring a Tier-3 branchable Copy-on-Write Git worktree scope (git.cowWorktree).
GitCowWorktreeOptionsConfiguration options for git.cowWorktree(options) (createGitCowWorktreeBuilder).
GitDiscardBranchNodePassive AST node resetting a worktree to targetStepBaseScopeCheckpoint and clearing uncommitted run topology overlay mutations during .rewindTo() (git.resetWorktree / git.discardBranch).
GitKeepWorktreeNodePassive AST node preserving a worktree's current working tree and topology overlay in-place across a signal-driven .rewindTo() (git.keepWorktree).
GitMergeQueueBuilderFluent builder for cumulative batch merge-train verification (git.mergeQueue).
GitMergeQueueNodePassive AST node executing cumulative batch merge-train verification (git.mergeQueue).
GitMergeQueueOptionsConfiguration options for git.mergeQueue(id, options) (createGitMergeQueueBuilder).
GitNamespacePublic git builder and schema namespace contract (import { git } from '@paraharness/git').
GitPatchEquivalenceNodePassive AST node comparing patch equivalence across speculative worktree candidates (git.patchEquivalence).
GitPublicSurfaceCrossTesterNodePassive AST node cross-executing boundary-only tests across speculative worktree candidates (git.publicSurfaceCrossTester).
GitPublicSurfaceCrossTesterOptionsConfiguration options for git.publicSurfaceCrossTester(options) (createGitPublicSurfaceCrossTesterBuilder).
GitReconcileStrategyConfigBranch landing reconciliation strategy ('rebase-onto-base' or 'batch-merge-train') for GitCowWorktreeNode.
GitReconcileStrategyOptionsOptions for configuring branch landing reconciliation via GitCowWorktreeBuilder.reconcileStrategy().
GitRefReaderToolNodePassive AST node for read-only git object store inspection tools (git.refReaderTools).
GitScopeReceiptValidated scope inspection receipt produced by git.cowWorktree (inspect and commitChild).
GitSnapshotAndResetNodePassive AST node snapshotting an aborted worktree to refs/harness/aborted/<run-id>/<stepExecId> and resetting the working tree to handle.baseRef (git.snapshotAndReset).
GitSyncReceiptValidated synchronization receipt produced by git.cowWorktree (syncChild and syncRoot).
GitWorktreeHandleRuntime scope handle for an isolated Copy-on-Write Git worktree (git.cowWorktree).

Type Aliases ​

HarnessMetaRecord ​

ts
type HarnessMetaRecord = z.infer<typeof HarnessMetaSchema>;

Defined in: git/src/schemas/git-receipts.schema.ts:61

Inferred TypeScript record shape for <gitdir>/harness-meta.json.

Released under the MIT License.