Buckets:
mvp-ai/skill-base / github.com /zxhwolfe-dev /aiworkstation-open-source-intelligence /.github /workflows /alpha-package.yml
| name: alpha-package | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: alpha-package | |
| cancel-in-progress: false | |
| jobs: | |
| package: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install package | |
| run: | | |
| set -euo pipefail | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[mcp]" | |
| - name: Run release gates | |
| run: | | |
| set -euo pipefail | |
| python -m unittest discover -s tests -v | |
| osi-validate-plugin --root . | |
| - name: Build deterministic complete Plugin bundle | |
| run: | | |
| set -euo pipefail | |
| osi-build-alpha --root . --output-dir dist/alpha | |
| ( | |
| cd dist/alpha | |
| sha256sum --check SHA256SUMS | |
| ) | |
| - name: Inspect package surface | |
| run: | | |
| set -euo pipefail | |
| python - <<'PY' | |
| import json | |
| import zipfile | |
| from pathlib import Path | |
| root = Path("dist/alpha") | |
| report = json.loads((root / "bundle-report.json").read_text(encoding="utf-8")) | |
| archive = Path(report["archive"]) | |
| if not archive.is_absolute(): | |
| archive = Path.cwd() / archive | |
| with zipfile.ZipFile(archive) as bundle: | |
| names = set(bundle.namelist()) | |
| manifest = json.loads(bundle.read("BUNDLE-MANIFEST.json")) | |
| expected = { | |
| "BUNDLE-MANIFEST.json", | |
| ".codex-plugin/plugin.json", | |
| ".mcp.json", | |
| ".agents/plugins/marketplace.json", | |
| "assets/plugin-icon.svg", | |
| "README.md", | |
| "README.zh-CN.md", | |
| "LICENSE", | |
| "TERMS.md", | |
| "ROADMAP.md", | |
| "docs/QUICKSTART.md", | |
| "docs/FAQ.md", | |
| "docs/alpha-tester-guide.md", | |
| "docs/evidence-readiness.md", | |
| "docs/external-alpha-checklist.md", | |
| "examples/codex-config.toml", | |
| "schemas/tool-manifest.json", | |
| "schemas/tool-result.schema.json", | |
| "schemas/error.schema.json", | |
| "skills/ai-open-source-intelligence/SKILL.md", | |
| "skills/ai-open-source-intelligence/agents/openai.yaml", | |
| "SECURITY.md", | |
| "PRIVACY.md", | |
| "SUPPORT.md", | |
| } | |
| missing = sorted(expected - names) | |
| forbidden = sorted( | |
| name for name in names | |
| if name.startswith("src/") | |
| or name.startswith("tests/") | |
| or name.startswith(".github/") | |
| or name == "pyproject.toml" | |
| ) | |
| if missing or forbidden: | |
| raise SystemExit(f"unsafe package surface: missing={missing} forbidden={forbidden}") | |
| if manifest.get("distribution_mode") != "skill-plus-hosted-mcp": | |
| raise SystemExit("alpha bundle must declare Skill plus Hosted MCP distribution") | |
| if manifest.get("hosted_mcp_config_bundled") is not True: | |
| raise SystemExit("alpha bundle must include the reviewed Hosted MCP configuration") | |
| if manifest.get("live_mcp_bundled") is not False: | |
| raise SystemExit("alpha bundle must not claim the remote MCP runtime is embedded") | |
| PY | |
| - name: Write package summary | |
| run: | | |
| set -euo pipefail | |
| python - <<'PY' | |
| import json | |
| import os | |
| from pathlib import Path | |
| report = json.loads(Path("dist/alpha/bundle-report.json").read_text(encoding="utf-8")) | |
| summary = "\n".join( | |
| [ | |
| "# Complete Plugin alpha package", | |
| "", | |
| f"- Name: `{report['name']}`", | |
| f"- Version: `{report['version']}`", | |
| f"- Archive: `{Path(report['archive']).name}`", | |
| f"- SHA-256: `{report['archive_sha256']}`", | |
| f"- Packaged files: `{report['file_count']}`", | |
| "- License: `Apache-2.0`", | |
| "- Hosted MCP configuration bundled: `true`", | |
| "- Remote MCP runtime embedded: `false`", | |
| "", | |
| "The package contains the reviewed unified Skill, production Hosted MCP connection, local configuration example, and bilingual quickstart, evidence, license, terms, security, privacy and support documentation.", | |
| ] | |
| ) + "\n" | |
| Path("dist/alpha/SUMMARY.md").write_text(summary, encoding="utf-8") | |
| destination = os.environ.get("GITHUB_STEP_SUMMARY") | |
| if destination: | |
| Path(destination).write_text(summary, encoding="utf-8") | |
| PY | |
| - name: Upload reviewed alpha package | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ai-open-source-intelligence-plugin-alpha-${{ github.run_id }} | |
| path: dist/alpha | |
| if-no-files-found: error | |
| retention-days: 14 | |
Xet Storage Details
- Size:
- 5.2 kB
- Xet hash:
- 358b14b24e6d257f5817fad49a65e1c744d3ec7b1efdc49edd23e3e7d1b9534f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.