DEFAULT_ACTION } from &quot;../src/pocket&quot;;

// Define NodeA
class NodeA extends BaseNode {
  public async prepAsync(sharedState: any): Promise&lt;void&gt; {
    // Preparation logic for NodeA
  }

  public async execAsync(_: void): Promise&lt;void&gt; {
    // Execution logic for NodeA
  }

  public async postAsync(sharedState: any, _: void, __: void): Promise&lt;string&gt; {
    // Transition to NodeB
    return &quot;default&quot;;
  }
}

// Define NodeB
class NodeB extends BaseNode {
  public async