Skip to content

Function: executeFsTextSource() ​

ts
function executeFsTextSource(
   node, 
   _input, 
   ctx
): Promise<ResolvedSourceArtifact<string>>;

Defined in: fs/src/executors/fs-source-executors.ts:25

Loads UTF-8 text and computes a SHA-256 hex digest for an FsTextSourceNode (fs:text-source).

Resolves node.path against the immutable host repository root when ctx.scopeHandle is omitted, or against ctx.scopeHandle.worktreePath when computing in-run grounding diffs (SPEC.md §4.3).

Parameters ​

ParameterTypeDescription
nodeFsTextSourceNodePassive text source AST node.
_inputvoidUnused source executor input parameter.
ctxResolutionContextSource resolution context with optional scopeHandle.

Returns ​

Promise<ResolvedSourceArtifact<string>>

UTF-8 file text paired with its SHA-256 digest.

Released under the MIT License.