Skip to content

Interface: GitSnapshotAndResetNode ​

Defined in: ast/domain/git-snapshot-and-reset-node.ts:12

Passive AST node snapshotting an aborted worktree to refs/harness/aborted/<run-id>/<stepExecId> and resetting the working tree to handle.baseRef (git.snapshotAndReset).

Preserves the aborted step's dirty working tree as an immutable git commit ref for downstream git.refReaderTools inspection while restoring the workspace to a clean baseline for replacement steps.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__handleBrand?readonlyBivariantCallback<[handle: GitWorktreeHandle], void>Phantom type brand binding the hook to its compatible scope handle type.BaseAbortHookASTNode.__handleBrandast/base/base-abort-hook-ast-node.ts:26
idreadonlystringLogical identifier of the abort hook.GitSnapshotAndResetNode.idast/base/base-abort-hook-ast-node.ts:22
metaSchemareadonlyZodType<GitAbortMeta>Zod schema validating metadata returned by the abort hook executor.BaseAbortHookASTNode.metaSchemaast/base/base-abort-hook-ast-node.ts:24
typereadonly"git:snapshot-and-reset"Unique string-literal discriminant of the abort hook node.BaseAbortHookASTNode.typeast/base/base-abort-hook-ast-node.ts:20

Released under the MIT License.