improvement(docs): simplify docs and add examples/pictures of v5 (#1887)

* improvement(docs): added new platform ss

* rename approval to human in the loop

* cleanup

* remove yml

* removed other languages large sections

* fix icons
This commit is contained in:
Waleed
2025-11-11 11:35:29 -08:00
committed by GitHub
parent c86f2a0537
commit b6139d6f6e
148 changed files with 845 additions and 2952 deletions

View File

@@ -13,7 +13,7 @@ import type { BlockStateWriter, ContextExtensions } from '@/executor/execution/t
import {
generatePauseContextId,
mapNodeMetadataToPauseScopes,
} from '@/executor/pause-resume/utils.ts'
} from '@/executor/human-in-the-loop/utils.ts'
import type {
BlockHandler,
BlockLog,
@@ -65,7 +65,7 @@ export class BlockExecutor {
const nodeMetadata = this.buildNodeMetadata(node)
let cleanupSelfReference: (() => void) | undefined
if (block.metadata?.id === BlockType.APPROVAL) {
if (block.metadata?.id === BlockType.HUMAN_IN_THE_LOOP) {
cleanupSelfReference = this.preparePauseResumeSelfReference(ctx, node, block, nodeMetadata)
}
@@ -296,7 +296,7 @@ export class BlockExecutor {
block: SerializedBlock,
output: NormalizedBlockOutput
): NormalizedBlockOutput {
if (block.metadata?.id === BlockType.APPROVAL) {
if (block.metadata?.id === BlockType.HUMAN_IN_THE_LOOP) {
const filtered: NormalizedBlockOutput = {}
for (const [key, value] of Object.entries(output)) {
if (key.startsWith('_')) continue