Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Convert Stitch-generated screens into validated React component systems with design token consistency
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/fetch-stitch.sh
1#!/bin/bash2# Copyright 2026 Google LLC3#4# Licensed under the Apache License, Version 2.0 (the "License");5# you may not use this file except in compliance with the License.6# You may obtain a copy of the License at7#8# http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing, software11# distributed under the License is distributed on an "AS IS" BASIS,12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13# See the License for the specific language governing permissions and14# limitations under the License.1516URL=$117OUTPUT=$218if [ -z "$URL" ] || [ -z "$OUTPUT" ]; then19echo "Usage: $0 <url> <output_path>"20exit 121fi22echo "Initiating high-reliability fetch for Stitch HTML..."23curl -L -f -sS --connect-timeout 10 --compressed "$URL" -o "$OUTPUT"24if [ $? -eq 0 ]; then25echo "✅ Successfully retrieved HTML at: $OUTPUT"26exit 027else28echo "❌ Error: Failed to retrieve content. Check TLS/SNI or URL expiration."29exit 130fi31