Skip to content

Function: createGitRefReaderTools() ​

ts
function createGitRefReaderTools(runner?): readonly GitRefReaderToolNode<GitWorktreeHandle>[];

Defined in: git/src/builders/create-git-ref-reader-tools.ts:26

Creates the read-only git object store inspection tool bundle (git.refReaderTools(runner?)).

Emits passive GitRefReaderToolNode descriptors for readRefFile, diffRefs, and listRefFiles with effectTracking: 'declared' so actors can inspect refs/harness/aborted/<run-id>/<stepExecId>, defaulting runner to DEFAULT_NODE_RUNNER_AST_NODE when omitted.

Parameters ​

ParameterTypeDefault valueDescription
runner?MaybeBuilder<NodeRunnerNode>DEFAULT_NODE_RUNNER_AST_NODEOptional subprocess runner pool governing git command slots.

Returns ​

readonly GitRefReaderToolNode<GitWorktreeHandle>[]

Frozen tuple of readRefFile, diffRefs, and listRefFiles tool AST nodes.

Released under the MIT License.