$ cat node-template.py
Workspace Break
// Decomposes a referenced workspace into selectable node outputs. Configure via the wizard to select which outputs to expose.
Process
Utility
template.py
1import json2import sys345def main():6 """Workspace Break node — configure outputs via the wizard."""7 try:8 raw = json.loads(sys.stdin.read())9 inputs = raw.get("inputs", {})10 workspace_id = inputs.get("workspaceId")1112 if not workspace_id:13 print(json.dumps({14 "error": "No workspace selected. Use the picker to select a workspace.",15 }), file=sys.stderr)16 sys.exit(1)1718 print(json.dumps({19 "error": "Not configured yet. Click 'Configure Outputs' to select which outputs to expose.",20 }), file=sys.stderr)21 sys.exit(1)2223 except Exception as e:24 print(json.dumps({25 "error": str(e),26 "errorType": type(e).__name__,27 }), file=sys.stderr)28 sys.exit(1)293031if __name__ == "__main__":32 main()