Build WASM and deploy a Tercen Flutter operator to GitHub. Creates the repo in the tercen org if needed, validates operator.json, builds, commits, and pushes.
Build and deploy the Tercen Flutter operator at $ARGUMENTS.
Verify operator.json exists and contains required fields:
name — display nameisWebApp → trueisViewOnly → falseentryType → "app"serve → "build/web"urls → array with at least one GitHub URL matching https://github.com/tercen/{name}_flutter_operatorVerify index.html line 17 base href is commented out:
<!--<base href="$FLUTTER_BASE_HREF"> -->
Verify pubspec.yaml name: matches the operator repo name
cd $ARGUMENTS
flutter build web --wasm
If the build fails, fix the errors and retry. Do not proceed until the build succeeds.
Check if the repo exists:
gh repo view tercen/{name}_flutter_operator 2>/dev/null
If it does not exist, create it:
gh repo create tercen/{name}_flutter_operator --public --description "{operator description from operator.json}"
Set the remote:
git remote add origin https://github.com/tercen/{name}_flutter_operator.git
Or verify the existing remote points to the correct repo.
git add -A
git commit -m "Build and deploy web app"
git push -u origin main
Report to the user:
MCP tools for direct Tercen sync are being developed. When available, this skill will be extended to push directly to Tercen instead of only to GitHub.