소스 검색

refactor: replace Prepare Generation code node with predefined nodes

The Prepare Generation code node in "[SWF] anime: process one image" did
nothing that needed scripting: measure the source image, pick an orientation
matched resolution, set a fixed prompt prefix and seed, and gate on the
safety analysis. Replaced with six predefined nodes wired off Safety Gate +
Prompt directly: an Analysis Present check that fails the run loudly via
Stop and Error if the payload is missing (the code node used to throw for
this; an expression would have silently resolved to empty and generated a
default square image instead), a Store Eligible gate, an Image node (info
operation) for measurement, and two Set Fields nodes for the not-eligible
defaults and the final generation parameters.

Verified field-for-field against the original code node across landscape,
portrait and square real source images plus the not-eligible, blocked and
missing-payload cases, using an isolated harness workflow that ran both
implementations side by side on the runner. The not-eligible path was also
proven three times end to end in live production. Old node kept disabled
and disconnected until proven, then removed. Published (publishedVersion
21) since call-workflow only runs published versions, and re-synced
deploy/workflows/swf-anime-process-one-image.json.
fszontagh 1 개월 전
부모
커밋
2fc3e01d0f
1개의 변경된 파일과 51개의 추가작업 그리고 21개의 파일을 삭제
  1. 51 21
      deploy/workflows/swf-anime-process-one-image.json

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 51 - 21
deploy/workflows/swf-anime-process-one-image.json


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.