commit 7d9c1235dafbd89b4eb0d27128b25e24d872ae0b Author: Hongming Wang Date: Wed May 6 13:53:41 2026 -0700 import from local vendored copy (2026-05-06) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..deccb1a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,5 @@ +name: CI +on: [push, pull_request] +jobs: + validate: + uses: Molecule-AI/molecule-ci/.github/workflows/validate-org-template.yml@main diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2af45b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Credentials — never commit. Use .env.example as the template. +.env +.env.local +.env.*.local +.env.* +!.env.example +!.env.sample + +# Private keys + certs +*.pem +*.key +*.crt +*.p12 +*.pfx + +# Secret directories +.secrets/ + +# Workspace auth tokens +.auth-token +.auth_token diff --git a/README.md b/README.md new file mode 100644 index 0000000..560c9ed --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# template-medo-smoke + +Molecule AI org template — deploys a full organizational hierarchy of agent workspaces. + +## Usage + +### In Molecule AI canvas +Select this template from the "Org Templates" section when setting up a new organization. + +### From a URL (community install) +``` +github://Molecule-AI/template-medo-smoke +``` + +## Structure +- `org.yaml` — full org definition (workspaces, roles, plugins, schedules, channels) +- Per-role directories contain `system-prompt.md` files for each workspace role. + +## Schema version +`template_schema_version: 1` — compatible with Molecule AI platform v1.x. + +## License +Business Source License 1.1 — © Molecule AI. diff --git a/org.yaml b/org.yaml new file mode 100644 index 0000000..3cde0f6 --- /dev/null +++ b/org.yaml @@ -0,0 +1,46 @@ +# MeDo Smoke Test Org — single OpenClaw workspace for Miaoda App Builder skill testing. +# Use this to validate the MeDo integration before wiring it into molecule-dev. +# +# Prerequisites (operator must do these before importing): +# 1. bash workspace-template/build-all.sh openclaw +# (or full rebuild: bash workspace-template/build-all.sh) +# 2. Verify: docker images | grep workspace-template:openclaw +# +# Import via platform API (inline — no file on platform FS needed): +# POST http://platform:8080/org/import +# Body: see docs/adapters/medo-integration.md §2.3 for full inline payload +# +# Required secrets (at least one LLM key + the Miaoda key): +# MIAODA_API_KEY — from MeDo website → Settings → API Keys +# AISTUDIO_API_KEY — Google AI Studio (OpenAI-compat, works with gemini-2.0-flash) +# OR OPENROUTER_API_KEY / OPENAI_API_KEY / GROQ_API_KEY / QIANFAN_API_KEY + +name: MeDo Smoke Test +description: Single openclaw workspace for validating Miaoda App Builder skill end-to-end + +defaults: + runtime: openclaw + tier: 2 + required_env: + - MIAODA_API_KEY + # Model: use AISTUDIO_API_KEY + gemini-2.0-flash (available hackathon key). + # OpenClaw will use AISTUDIO_API_KEY → https://generativelanguage.googleapis.com/v1beta/openai + # once the adapter fix (Issue A in smoke-test-log.md §8) is applied. + model: "gemini-2.0-flash" + config: + provider_url: "https://generativelanguage.googleapis.com/v1beta/openai" + +workspaces: + - name: MeDo Builder + role: Builds and publishes MeDo applications via the Miaoda App Builder OpenClaw skill + canvas: { x: 400, y: 300 } + initial_prompt: | + You are a MeDo App Builder. On first boot: + 1. Install the Miaoda App Builder skill by sending yourself: + "Install the Miaoda App Builder skill from ClawHub: seiriosPlus/miaoda-app-builder" + Wait for confirmation before proceeding. + 2. Report ready to parent. + When you receive a build task, relay it to the Miaoda skill verbatim. + App generation takes 5-8 minutes — wait and return the published URL. + +template_schema_version: 1