MCPcopy Create free account
hub / github.com/codemod/codemod / execute_custom_shard_function

Method execute_custom_shard_function

crates/core/src/engine.rs:3744–3839  ·  view source on GitHub ↗

Execute a custom shard function using the jssg engine (QuickJS). The user's script exports a default function that receives a typed `ShardInput` and returns `ShardResult[]`. The engine handles all file I/O and serialization.

(
        &self,
        shard_config: &butterflow_models::step::UseShard,
        func: &butterflow_models::step::CustomShardFunction,
        eligible_files: Option<&[String]>,
        previous_shar

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

execute_shard_stepMethod · 0.80

Calls 9

RuntimeClass · 0.85
find_tsconfigFunction · 0.85
cloneMethod · 0.80
existsMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected