create-maa-project 3.7.1__tar.gz → 3.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.release/create-maa-project-manifest.json +26 -26
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/CHANGELOG.md +50 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/PKG-INFO +1 -1
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/commands.en.md +22 -3
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/commands.md +19 -3
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/package.json +1 -1
- create_maa_project-3.7.3/py-wrapper/create_maa_project/__init__.py +1 -0
- create_maa_project-3.7.3/py-wrapper/create_maa_project/release_manifest.py +2 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/pyproject.toml +1 -1
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/skills/create-maa-project/references/commands.md +15 -2
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/assets.ts +64 -14
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/doctor.ts +6 -2
- create_maa_project-3.7.3/src/maafw-version.ts +25 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/scaffold.ts +2 -2
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/templates.ts +142 -4
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/update.ts +95 -3
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/.github/workflows/android-build.yml +21 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/tools/android-packaging.mjs +65 -22
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/release.yml +8 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/interface.schema.json +32 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/interface_import.schema.json +32 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/schema-manifest.json +2 -2
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/android-addon.test.ts +79 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/android-packaging.test.ts +60 -0
- create_maa_project-3.7.3/tests/maafw-version.test.ts +15 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/scaffold.test.ts +171 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/templates.test.ts +64 -1
- create_maa_project-3.7.1/py-wrapper/create_maa_project/__init__.py +0 -1
- create_maa_project-3.7.1/py-wrapper/create_maa_project/release_manifest.py +0 -2
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.editorconfig +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.gitattributes +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/cliff.toml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/ci.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/deps-audit.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/deps-sync.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/network-assets.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/release.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.github/workflows/schema-sync.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.gitignore +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.prettierignore +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/.prettierrc.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/AGENTS.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/LICENSE +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/README.en.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/README.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/RELEASING.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/android-packaging-plan.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/json-report.en.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/json-report.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/mcp.en.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/docs/mcp.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/pnpm-lock.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/pnpm-workspace.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/py-wrapper/create_maa_project/__main__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/build-sea.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/build.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/changelog-notes.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/check-network-assets.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/create-release-manifest.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/create-sbom.d.mts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/create-sbom.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/prepare-pypi-release.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/smoke-cli-artifact.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/sync-release-version.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/sync-schema.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/sync-template-deps.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/test-python.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/scripts/update-audit-overrides.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/skills/README.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/skills/create-maa-project/SKILL.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/skills/create-maa-project/agents/openai.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/skills/create-maa-project/references/json-report.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/addons.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/android.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/args.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/auto-update.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/command.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/controllers.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/features.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/incremental-addons.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/index.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/lang.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/log.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/mcp.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/node-support.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/project-config.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/project.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/prompt.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/report.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/semver.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/sync.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/template-deps.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/template-deps.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/types.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/update-targets.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/utils.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/src/version.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/.github/workflows/android.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/Android/README.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/Android/profile.agent.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/android/Android/profile.pipeline.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/auto-format/.github/workflows/format.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/CONTRIBUTING.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/PULL_REQUEST_TEMPLATE.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/bug_report.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/feature_request.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/issue_config.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/community/other_issue.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dependabot/.github/dependabot.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/extensions.agent.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/extensions.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/launch.agent.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/settings.agent.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/settings.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/tasks.agent.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/tasks.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/package.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/pnpm-workspace.yaml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/dev-tools/tools/validate-schema.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/git-cliff/.github/cliff.toml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/check.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/package-smoke.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/github/tools/build-release.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/github/tools/sync-runtime.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/optimize-images/.github/workflows/optimize-images.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/optimize-images/tools/optimize-images.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/schema-sync/.github/workflows/schema-sync.yml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/addons/schema-sync/tools/sync-schema.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/README.en.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/README.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/agent_runtime.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/action/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/action/general.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/reco/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/reco/general.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/custom/sink/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/maafw_paths.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/main.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/__init__.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/logger.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/maa_types.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/params.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/pienv.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/agent/utils/runtime_paths.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/pyproject.toml +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/requirements.in +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/requirements.txt +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/tools/schema/custom.action.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/tools/schema/custom.recognition.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/agent/uv.lock +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/.editorconfig +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/.gitattributes +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/.gitignore +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/.prettierignore +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/.prettierrc.mjs +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/README.en.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/README.md +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/gitignore.tmpl +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/interface.json.tmpl +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/licenses/AGPL-3.0-or-later.txt +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/licenses/MIT.txt +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/maatools.config.mts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/resource/base/default_pipeline.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/resource/base/image/empty.png +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/resource/base/model/ocr/manifest.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/resource/base/pipeline/Tutorial/Tutorial.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tasks/tutorial.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/custom.action.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/custom.recognition.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/interface_config.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/templates/base/tools/schema/pipeline.schema.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/addons.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/args.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/auto-update.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/backup-operations.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/changelog-notes.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/child-env.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/cli-info.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/command.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/doctor-errors.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/enabled-config.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/git-initialization.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/incremental-addons-results.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/lang.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/mcp.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/node-support.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/ocr-git-registration.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/package-smoke-workflow.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/project-config.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/project.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/prompt-interactive.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/prompt.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/release-smoke.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/release-workflow.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/report.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/sbom.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/semver.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/template-deps.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/test_py_wrapper.py +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tests/update-audit-overrides.test.ts +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/tsconfig.json +0 -0
- {create_maa_project-3.7.1 → create_maa_project-3.7.3}/vitest.config.ts +0 -0
{create_maa_project-3.7.1 → create_maa_project-3.7.3}/.release/create-maa-project-manifest.json
RENAMED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "create-maa-project",
|
|
4
|
-
"version": "3.7.
|
|
5
|
-
"tag": "v3.7.
|
|
4
|
+
"version": "3.7.3",
|
|
5
|
+
"tag": "v3.7.3",
|
|
6
6
|
"assets": [
|
|
7
7
|
{
|
|
8
8
|
"kind": "sea",
|
|
9
9
|
"os": "linux",
|
|
10
10
|
"arch": "aarch64",
|
|
11
|
-
"version": "3.7.
|
|
11
|
+
"version": "3.7.3",
|
|
12
12
|
"name": "create-maa-project-linux-aarch64",
|
|
13
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
13
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-linux-aarch64",
|
|
14
|
+
"sha256": "1890a202c464e0c650d68cbcbac80f706c4f3847a7f95f3d8cda6fd2b7f836b7",
|
|
15
|
+
"size": 124652672
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"kind": "sea",
|
|
19
19
|
"os": "linux",
|
|
20
20
|
"arch": "x86_64",
|
|
21
|
-
"version": "3.7.
|
|
21
|
+
"version": "3.7.3",
|
|
22
22
|
"name": "create-maa-project-linux-x86_64",
|
|
23
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
24
|
-
"sha256": "
|
|
25
|
-
"size":
|
|
23
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-linux-x86_64",
|
|
24
|
+
"sha256": "bc41eefe83715fbb57e5557530fd865ca0aa11ce8fcd7ebf30c5dfb1d1ece88b",
|
|
25
|
+
"size": 128322752
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"kind": "sea",
|
|
29
29
|
"os": "macos",
|
|
30
30
|
"arch": "aarch64",
|
|
31
|
-
"version": "3.7.
|
|
31
|
+
"version": "3.7.3",
|
|
32
32
|
"name": "create-maa-project-macos-aarch64",
|
|
33
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
34
|
-
"sha256": "
|
|
35
|
-
"size":
|
|
33
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-macos-aarch64",
|
|
34
|
+
"sha256": "7506c2671d6ae4c802711ceefcbfb7e9708cc0c2ecd48afb179cd2c83d024cda",
|
|
35
|
+
"size": 122839072
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"kind": "sea",
|
|
39
39
|
"os": "macos",
|
|
40
40
|
"arch": "x86_64",
|
|
41
|
-
"version": "3.7.
|
|
41
|
+
"version": "3.7.3",
|
|
42
42
|
"name": "create-maa-project-macos-x86_64",
|
|
43
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
44
|
-
"sha256": "
|
|
45
|
-
"size":
|
|
43
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-macos-x86_64",
|
|
44
|
+
"sha256": "82fca84b7dba52a06830da5a3b7d932f0e017452d60d587132710b5ecd31e315",
|
|
45
|
+
"size": 125095024
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"kind": "sea",
|
|
49
49
|
"os": "win",
|
|
50
50
|
"arch": "aarch64",
|
|
51
|
-
"version": "3.7.
|
|
51
|
+
"version": "3.7.3",
|
|
52
52
|
"name": "create-maa-project-win-aarch64.exe",
|
|
53
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
54
|
-
"sha256": "
|
|
55
|
-
"size":
|
|
53
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-win-aarch64.exe",
|
|
54
|
+
"sha256": "a598047cab6f6eb4dd35976aea3294a7ff3f09a3000ee25b5fb5106b4bc6be42",
|
|
55
|
+
"size": 83646976
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"kind": "sea",
|
|
59
59
|
"os": "win",
|
|
60
60
|
"arch": "x86_64",
|
|
61
|
-
"version": "3.7.
|
|
61
|
+
"version": "3.7.3",
|
|
62
62
|
"name": "create-maa-project-win-x86_64.exe",
|
|
63
|
-
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.
|
|
64
|
-
"sha256": "
|
|
65
|
-
"size":
|
|
63
|
+
"url": "https://github.com/Windsland52/create-maa-project/releases/download/v3.7.3/create-maa-project-win-x86_64.exe",
|
|
64
|
+
"sha256": "4ff26a8488513a44715afbc29663ffe8471d95fcc8c25e7a9d3570cf1973b774",
|
|
65
|
+
"size": 95345664
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
}
|
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
create-maa-project 的重要更改记录。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [3.7.3] - 2026-10-18
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
|
|
9
|
+
- `--add android` 不再把 `extend-exclude` 叠成重复 key。项目自己的 `[tool.ruff]` 已有
|
|
10
|
+
`extend-exclude` 时,`Android/MaaFwApp` 会并进现有数组(单行、空数组、多行都支持);早期版本留下
|
|
11
|
+
的重复 key 会在下一次 `--add android` / `--add agent` 时折回成一个。重复 key 会让 `pyproject.toml`
|
|
12
|
+
变成非法 TOML,连带 `--update python-deps` 的 `tomllib` 解析一起失败(`Cannot overwrite a value`)
|
|
13
|
+
|
|
14
|
+
已有项目:手工删掉重复的那行 `extend-exclude`(保留项目自己的并补上 `"Android/MaaFwApp"`),或升级后
|
|
15
|
+
重跑 `create-maa-project --add android` 自动修复。
|
|
16
|
+
|
|
17
|
+
[3.7.3]: https://github.com/Windsland52/create-maa-project/compare/v3.7.2...v3.7.3
|
|
18
|
+
|
|
19
|
+
## [3.7.2] - 2026-10-17
|
|
20
|
+
|
|
21
|
+
### 修复
|
|
22
|
+
|
|
23
|
+
- Android 的 beta 配对现在能真正匹配上。预发布版本在三个地方拼写不同:`requirements.txt` 是 uv 导出的
|
|
24
|
+
PEP 440 归一形式(`maafw==5.15.0b1`),内核 tag 是发布原文(`3.13.15-maafw5.15.0-beta.1`),
|
|
25
|
+
MaaFramework release tag 是 `v5.15.0-beta.1`。resolver 的配对正则原先不认 `-`,`5.15.0b1` 会被判成
|
|
26
|
+
"内核还没发配对"而降级回上一个正式版;现在 tag 解析放行预发布后缀,配对、`AGENT_CORE_TAG` 校验以及
|
|
27
|
+
`maa-project.json` / `requirements.txt` 的一致性比较都先按 PEP 440 归一再比,`maafw_tag` 取 release
|
|
28
|
+
的真实拼写而不是 `v` 加归一版本。`--doctor` 的 android 钉版检查同样归一后再比,`maafw.version` 写
|
|
29
|
+
`5.15.0b1` 或 `5.15.0-beta.1` 不再互相误报。桌面侧 `--update maafw` 把 `maafw.version` 当 tag 查时,
|
|
30
|
+
归一形式查不到会补试发布拼写(`5.15.0b1` → `v5.15.0-beta.1`)
|
|
31
|
+
|
|
32
|
+
### 变更
|
|
33
|
+
|
|
34
|
+
- `--update python-deps` 成为 android 项目的版本对齐点。启用 `android` 的 Agent 项目里,它先确定
|
|
35
|
+
MaaFramework 目标版本(`maa-project.json` 的精确 `maafw.version` 优先,为空则按 `maafw.channel` 解析
|
|
36
|
+
最新发布,`beta` / `alpha` 含预发布),把 `maafw==X` 钉进 `pyproject.toml` 后再 `uv lock` /
|
|
37
|
+
`uv export`,最后校验 `requirements.txt` 导出的是同一版本(PEP 440 归一后比较),不一致直接报错。
|
|
38
|
+
没有 `android` 的 Agent 项目保持原行为:`maafw` 浮动,由 uv 与 Dependabot 的 `lockfile-only` 更新
|
|
39
|
+
驱动,不会和自动更新打架。`--add android` 现在也会改写已有的 `maafw` 钉版(原来只填未钉版的依赖),
|
|
40
|
+
`maafw.version` 改了重跑即可
|
|
41
|
+
- 发版 workflow 自己重导 Python 依赖。Dependabot 的 `uv` 更新只动 `uv.lock`,而桌面包与 APK 都从
|
|
42
|
+
`requirements.txt` 装依赖;现在 `release.yml` 在 `pnpm sync:runtime` 之前、`android-build.yml` 在两个
|
|
43
|
+
job 的 `tools/android-packaging.mjs` 之前都会先跑 `uv export --frozen`,从 lock 重新导出工作区里的
|
|
44
|
+
`requirements.txt`。合并 Dependabot 的 uv PR 后不必再手工跑 `--update python-deps` 才能发版;仓库里
|
|
45
|
+
那份仍是提交物,本地开发想更新时再跑。`--frozen` 在 `pyproject.toml` 与 `uv.lock` 不一致时直接失败,
|
|
46
|
+
不会悄悄用旧 lock
|
|
47
|
+
|
|
48
|
+
已有项目:`tools/android-packaging.mjs` 是受管文件,重跑 `create-maa-project --add android` 即更新。
|
|
49
|
+
要出 beta 包不用再手改 `pyproject.toml`:把 `maa-project.json` 的 `maafw.channel` 改成 `beta`(或把
|
|
50
|
+
`maafw.version` 写成精确版本)后跑一次 `--update python-deps`,它会自己把 `maafw==5.15.0-beta.1` 钉进
|
|
51
|
+
`pyproject.toml`、导出 `requirements.txt`,内核已有 `3.13.15-maafw5.15.0-beta.1` 配对时 APK 就会用它。
|
|
52
|
+
|
|
53
|
+
[3.7.2]: https://github.com/Windsland52/create-maa-project/compare/v3.7.1...v3.7.2
|
|
54
|
+
|
|
5
55
|
## [3.7.1] - 2026-10-13
|
|
6
56
|
|
|
7
57
|
### 修复
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: create-maa-project
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.3
|
|
4
4
|
Summary: 用于创建和维护 MaaFW 应用项目的脚手架 CLI / Scaffold and maintenance CLI for MaaFW application projects
|
|
5
5
|
Project-URL: Homepage, https://github.com/Windsland52/create-maa-project
|
|
6
6
|
Project-URL: Source, https://github.com/Windsland52/create-maa-project
|
|
@@ -140,15 +140,21 @@ the files:
|
|
|
140
140
|
- `pyproject.toml` gains `extend-exclude = ["Android/MaaFwApp"]` under `[tool.ruff]` (**Agent
|
|
141
141
|
projects**): `release.yml` checks submodules out, so an unscoped `ruff check .` reads the shell's own
|
|
142
142
|
`scripts/*.py`, trips `UP009`, and fails `pnpm check:py` in every `package` job — which is what keeps
|
|
143
|
-
the release from being created.
|
|
143
|
+
the release from being created. When the project already has an `extend-exclude`, the path is merged
|
|
144
|
+
into that array (single-line or multi-line) instead of adding a second key: duplicate keys make
|
|
145
|
+
`pyproject.toml` invalid TOML and break `--update python-deps`, which parses the file.
|
|
144
146
|
- An **Agent** project also needs an exact `maafw==X` in `requirements.txt`: the Android Python binding
|
|
145
147
|
only ships inside the MaaAgentCoreAndroid kernel release (`X-maafwY` tags), which is what pairs the
|
|
146
148
|
kernel with the native libraries inside the APK. Without it the add-on records an `android-version`
|
|
147
149
|
pending action. When `maa-project.json` carries an exact `maafw.version`, `--add android` pins
|
|
148
|
-
`pyproject.toml` to it as well,
|
|
150
|
+
`pyproject.toml` to it as well; when it is empty, `--update python-deps` resolves `maafw.channel`
|
|
151
|
+
and pins that version instead. Either way `--update python-deps` exports the pin to `requirements.txt`.
|
|
149
152
|
When upstream ships a patch release before the kernel catches up, CI degrades to the highest pairing
|
|
150
153
|
at or below the pin and prints a `::warning::` (the APK stays internally consistent, it is just older
|
|
151
|
-
than the pin); only a pin older than every kernel pairing is an error.
|
|
154
|
+
than the pin); only a pin older than every kernel pairing is an error. Pre-releases pair too: kernel
|
|
155
|
+
and release tags keep the released spelling (`3.13.15-maafw5.15.0-beta.1`, `v5.15.0-beta.1`) while
|
|
156
|
+
`requirements.txt` carries the PEP 440-normalized form `uv export` produces (`5.15.0b1`); the resolver
|
|
157
|
+
and `--doctor` compare normalized versions, and `maafw.version` accepts either spelling.
|
|
152
158
|
- Native Python packages (the ones carrying `.so` files) are probed per package against the Chaquopy
|
|
153
159
|
index, and the resolver emits the downgrade arguments: a desktop pin with no build for the kernel
|
|
154
160
|
CPython is pinned to the highest version the index has, a package the index does not carry at all is
|
|
@@ -241,6 +247,19 @@ leaves local runs working while the built package ships without the new dependen
|
|
|
241
247
|
dependency change, commit `pyproject.toml`, `uv.lock`, `requirements.in`, and `requirements.txt`
|
|
242
248
|
together.
|
|
243
249
|
|
|
250
|
+
For an Agent project with the `android` add-on, `--update python-deps` also reconciles the
|
|
251
|
+
MaaFramework version: the target is an exact `maafw.version` from `maa-project.json`, or the newest
|
|
252
|
+
release of `maafw.channel` (`beta` / `alpha` include prereleases) when that is empty. It pins
|
|
253
|
+
`maafw==X` into `pyproject.toml` before `uv lock` / `uv export`, then verifies the exported
|
|
254
|
+
`requirements.txt` still carries the same version (compared after PEP 440 normalization) and fails
|
|
255
|
+
instead of letting the APK and the desktop package use different frameworks. Agent projects without
|
|
256
|
+
the `android` add-on are untouched: `maafw` stays floating, so uv and Dependabot's `lockfile-only`
|
|
257
|
+
updates own the version. The release workflows (`release.yml` for desktop and `android-build.yml` for
|
|
258
|
+
APKs) re-export `requirements.txt` from `uv.lock` with `uv export --frozen` before packaging, so a
|
|
259
|
+
merged Dependabot uv PR needs no manual re-export; `--update python-deps` only keeps the committed
|
|
260
|
+
file current for local development. `--frozen` fails when `pyproject.toml` and `uv.lock` disagree
|
|
261
|
+
instead of silently exporting the old lock.
|
|
262
|
+
|
|
244
263
|
`--update python-runtime` takes its platform from `CREATE_MAA_PROJECT_RUNTIME_PLATFORM=<os>-<arch>`
|
|
245
264
|
(one platform per run), downloads the embedded interpreter into
|
|
246
265
|
`.create-maa-project/runtime/python/<platform>`, and reinstalls from `requirements.txt`; after a
|
|
@@ -121,12 +121,18 @@ dev-tools 的产物(Prettier formatter、`tools/schema/*`、`pnpm install`)
|
|
|
121
121
|
- `pyproject.toml` 的 `[tool.ruff]` 追加 `extend-exclude = ["Android/MaaFwApp"]`(**Agent 项目**):
|
|
122
122
|
`release.yml` 以 `submodules` 检出子模块,不排除的话 `ruff check .` 会扫进外壳自带的
|
|
123
123
|
`scripts/*.py` 并命中 `UP009`,`pnpm check:py` 在 6 个 `package` job 里一起失败、Release 因此不创建。
|
|
124
|
+
项目自己已有 `extend-exclude` 时把路径并进那个数组(单行/多行都行),不会再写第二个同名 key——重复
|
|
125
|
+
key 会让 `pyproject.toml` 变成非法 TOML,连带 `--update python-deps` 的 `tomllib` 解析一起失败。
|
|
124
126
|
- **Agent 项目**需要 `requirements.txt` 里的精确 `maafw==X`:Android 的 Python 绑定只随内核
|
|
125
127
|
(`MaaAgentCoreAndroid` 的 `X-maafwY` tag)发布,CI 按它配对内核与 APK 内的原生库。拿不到精确版本时
|
|
126
128
|
登记 `android-version` pending;`maa-project.json` 的 `maafw.version` 填了精确版本时,`--add android`
|
|
127
|
-
会把 `pyproject.toml` 的 `maafw`
|
|
128
|
-
`requirements.txt
|
|
129
|
-
`::warning::`(APK 内仍是同版本,只是比 requirements
|
|
129
|
+
会把 `pyproject.toml` 的 `maafw` 一并钉住;为空时由 `--update python-deps` 按 `maafw.channel` 解析并
|
|
130
|
+
钉住。两条路径都靠 `--update python-deps` 把钉版导出到 `requirements.txt`。上游发了补丁版而内核还没
|
|
131
|
+
跟上时,CI 会降级到不高于固定版本的最高配对并打 `::warning::`(APK 内仍是同版本,只是比 requirements
|
|
132
|
+
固定得旧);固定版本比内核所有配对都旧才报错。
|
|
133
|
+
预发布版本同样能配对:内核 tag 与 release tag 用发布原文(`3.13.15-maafw5.15.0-beta.1`、
|
|
134
|
+
`v5.15.0-beta.1`),`requirements.txt` 里是 uv 导出的归一形式(`5.15.0b1`),resolver 与 `--doctor`
|
|
135
|
+
都先按 PEP 440 归一再比较,`maa-project.json` 的 `maafw.version` 写哪种拼写都能匹配。
|
|
130
136
|
- 带 `.so` 的原生 Python 包由 resolver 按 Chaquopy 索引**逐包探测**后给出降级参数:桌面 pin 在索引上
|
|
131
137
|
没有当前 CPython 的构建就钉到索引最高可用版,索引上没有该包(纯 Python)不钉,索引有构建但没有
|
|
132
138
|
当前 CPython 时 CI 直接报错,而不是让 pip 在构建中途失败。
|
|
@@ -195,6 +201,16 @@ Agent 项目的 Python 依赖是一条两级链路,改依赖时两步都要走
|
|
|
195
201
|
包里没有新依赖。每次改完依赖,把 `pyproject.toml`、`uv.lock`、`requirements.in`、`requirements.txt`
|
|
196
202
|
一起提交。
|
|
197
203
|
|
|
204
|
+
对启用 `android` 的 Agent 项目,`--update python-deps` 还负责对齐 MaaFramework 版本:目标取
|
|
205
|
+
`maa-project.json` 的精确 `maafw.version`,为空则按 `maafw.channel` 解析最新发布(`beta` / `alpha`
|
|
206
|
+
含预发布),先把该版本钉进 `pyproject.toml` 的 `maafw==X` 再 `uv lock` / `uv export`,最后校验导出的
|
|
207
|
+
`requirements.txt` 仍是同一版本(按 PEP 440 归一后比较,不一致直接报错,不让 APK 与桌面资产各用一套)。
|
|
208
|
+
没有 `android` 的 Agent 项目不受影响:`maafw` 保持浮动,由 uv 与 Dependabot 的 `lockfile-only` 更新驱动。
|
|
209
|
+
发版 workflow(桌面 `release.yml` 与 Android 的 `android-build.yml`)在打包前会用 `uv export --frozen`
|
|
210
|
+
从 `uv.lock` 重新导出 `requirements.txt`,所以合并 Dependabot 的 uv PR 后不用手工重导;`--update
|
|
211
|
+
python-deps` 只负责把仓库里那份文件同步到最新(本地开发与提交用)。`--frozen` 会在 `pyproject.toml` 与
|
|
212
|
+
`uv.lock` 不一致时直接失败,而不是悄悄用旧 lock。
|
|
213
|
+
|
|
198
214
|
`--update python-runtime` 用 `CREATE_MAA_PROJECT_RUNTIME_PLATFORM=<os>-<arch>` 指定平台(一次一个),
|
|
199
215
|
把内嵌解释器下载到 `.create-maa-project/runtime/python/<platform>`,并按 `requirements.txt` 重装依赖;
|
|
200
216
|
依赖变更后要先跑 `python-deps`,`python-runtime` 才能装到新版本。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.7.3"
|
|
@@ -147,11 +147,16 @@ android` fails the clone and lands in that pending action.
|
|
|
147
147
|
- `.gitignore` gains `Android/agent-dist/`.
|
|
148
148
|
- An Agent project's `pyproject.toml` gains `extend-exclude = ["Android/MaaFwApp"]` under
|
|
149
149
|
`[tool.ruff]`: `release.yml` checks out submodules, so an unscoped `ruff check .` lints the vendored
|
|
150
|
-
shell and fails `pnpm check:py` in every package job.
|
|
150
|
+
shell and fails `pnpm check:py` in every package job. An existing `extend-exclude` is merged into,
|
|
151
|
+
never duplicated (a duplicate key is invalid TOML and breaks `--update python-deps`).
|
|
151
152
|
- An Agent project needs an exact `maafw==X` in `requirements.txt` (the Android Python binding only
|
|
152
153
|
ships inside the MaaAgentCoreAndroid kernel release); otherwise the add-on records an
|
|
153
154
|
`android-version` pending action with `create-maa-project --update python-deps` as its command. With
|
|
154
|
-
an exact `maafw.version` in `maa-project.json`, `--add android` pins `pyproject.toml` too
|
|
155
|
+
an exact `maafw.version` in `maa-project.json`, `--add android` pins `pyproject.toml` too; when it is
|
|
156
|
+
empty, `--update python-deps` resolves `maafw.channel` and pins that version instead.
|
|
157
|
+
Pre-releases pair as well: kernel and release tags keep the released spelling
|
|
158
|
+
(`3.13.15-maafw5.15.0-beta.1`, `v5.15.0-beta.1`) while `requirements.txt` carries the PEP 440-normalized
|
|
159
|
+
form `uv export` writes (`5.15.0b1`); the resolver and doctor compare normalized versions.
|
|
155
160
|
- With `github` enabled, `release.yml` gains an `android` job that runs in parallel with `package`;
|
|
156
161
|
`release-assets/*.apk` is published, and the release job's `needs` becomes `[package, android]`
|
|
157
162
|
(`[package, android, git_cliff]` with git-cliff). A tag release without `KEYSTORE_BASE64` fails.
|
|
@@ -172,6 +177,14 @@ interpreter for one platform (`CREATE_MAA_PROJECT_RUNTIME_PLATFORM=<os>-<arch>`)
|
|
|
172
177
|
`.create-maa-project/runtime/python/<platform>` and reinstalls from `requirements.txt`, so run
|
|
173
178
|
`python-deps` first after a dependency change.
|
|
174
179
|
|
|
180
|
+
With the `android` add-on, `--update python-deps` also reconciles the MaaFramework version: an exact
|
|
181
|
+
`maafw.version` wins, otherwise the newest release of `maafw.channel` (`beta` / `alpha` include
|
|
182
|
+
prereleases). It pins `maafw==X` into `pyproject.toml` before `uv lock` / `uv export`, then verifies
|
|
183
|
+
the exported `requirements.txt` still carries the same version (PEP 440-normalized) and fails on
|
|
184
|
+
drift. Without `android`, `maafw` stays floating so uv and Dependabot's `lockfile-only` updates own
|
|
185
|
+
it. The release workflows re-export `requirements.txt` from `uv.lock` (`uv export --frozen`) before
|
|
186
|
+
packaging, so merged Dependabot uv PRs need no manual re-export.
|
|
187
|
+
|
|
175
188
|
## Common options
|
|
176
189
|
|
|
177
190
|
Command modes are mutually exclusive: one mode per invocation. Options below list the modes
|
|
@@ -193,6 +193,42 @@ export async function resolveProductAssetManifestFromGithubRelease(
|
|
|
193
193
|
return parseGithubReleaseManifest(config, release, channel, selectedPlatform)
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
export type ProductReleaseTagRequest = {
|
|
197
|
+
product: string
|
|
198
|
+
channel?: string
|
|
199
|
+
version?: string
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type ProductReleaseTag = {
|
|
203
|
+
tag: string
|
|
204
|
+
version: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type ProductReleaseTagResolver = (request: ProductReleaseTagRequest) => Promise<ProductReleaseTag | undefined>
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Resolves just the release a product selector points at, without downloading its manifest. Callers
|
|
211
|
+
* that have to pin another file to the same release — an Agent project pins its Python `maafw`
|
|
212
|
+
* binding to the MaaFramework release its Android kernel pairs with — use this so the channel is
|
|
213
|
+
* resolved by one implementation rather than by a second copy of the release rules.
|
|
214
|
+
*/
|
|
215
|
+
export async function resolveProductReleaseTag(
|
|
216
|
+
request: ProductReleaseTagRequest,
|
|
217
|
+
options: ProductAssetManifestResolveOptions = {},
|
|
218
|
+
): Promise<ProductReleaseTag | undefined> {
|
|
219
|
+
const config = productReleaseConfig(request.product)
|
|
220
|
+
if (!config) return undefined
|
|
221
|
+
const channel = normalizeReleaseChannel(request.channel)
|
|
222
|
+
const version = request.version?.trim() ?? ''
|
|
223
|
+
const release = version
|
|
224
|
+
? await fetchGithubReleaseByTag(config, version, options.fetchJson, options.signal)
|
|
225
|
+
: await fetchGithubReleaseByChannel(config, channel, options.fetchJson, options.signal)
|
|
226
|
+
if (!isRecord(release) || typeof release.tag_name !== 'string' || release.tag_name.trim() === '') {
|
|
227
|
+
throw new Error(`Invalid GitHub release payload for ${config.product}.`)
|
|
228
|
+
}
|
|
229
|
+
return { tag: release.tag_name, version: release.tag_name.replace(/^v/i, '') }
|
|
230
|
+
}
|
|
231
|
+
|
|
196
232
|
export async function downloadManifestAssets(
|
|
197
233
|
manifest: AssetManifest,
|
|
198
234
|
options: {
|
|
@@ -612,11 +648,6 @@ function isIgnoredArchiveEntry(path: string): boolean {
|
|
|
612
648
|
return lower === '.ds_store' || lower.endsWith('/.ds_store') || lower.startsWith('__macosx/')
|
|
613
649
|
}
|
|
614
650
|
|
|
615
|
-
/**
|
|
616
|
-
* Upstream tags are v-prefixed (`v5.13.1`) while a pinned version is often written without it, so a
|
|
617
|
-
* tag that does not resolve is retried with the other spelling. The first failure is the one that
|
|
618
|
-
* surfaces when neither resolves, which keeps the message tied to what the config asked for.
|
|
619
|
-
*/
|
|
620
651
|
async function fetchGithubReleaseByTag(
|
|
621
652
|
config: ProductReleaseConfig,
|
|
622
653
|
tag: string,
|
|
@@ -635,17 +666,36 @@ async function fetchGithubReleaseByTag(
|
|
|
635
666
|
throw failure
|
|
636
667
|
}
|
|
637
668
|
|
|
669
|
+
/**
|
|
670
|
+
* Upstream tags are v-prefixed (`v5.13.1`) while a pinned version is often written without it, so a
|
|
671
|
+
* tag that does not resolve is retried with the other spelling. Pre-releases add a second axis:
|
|
672
|
+
* `uv export` and PEP 440 write the normalized form (`5.15.0b1`) while the release tag keeps the
|
|
673
|
+
* released form (`v5.15.0-beta.1`), so the expanded spelling is retried too. The first failure is
|
|
674
|
+
* the one that surfaces when none of them resolve, which keeps the message tied to what the config
|
|
675
|
+
* asked for.
|
|
676
|
+
*/
|
|
638
677
|
function releaseTagCandidates(tag: string): string[] {
|
|
639
678
|
const pinned = tag.trim()
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
679
|
+
const candidates: string[] = []
|
|
680
|
+
for (const spelling of new Set([
|
|
681
|
+
pinned,
|
|
682
|
+
expandPrereleaseSpelling(pinned),
|
|
683
|
+
])) {
|
|
684
|
+
candidates.push(spelling, /^v/i.test(spelling) ? spelling.slice(1) : `v${spelling}`)
|
|
685
|
+
}
|
|
686
|
+
return candidates
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/** `5.15.0b1` / `v5.15.0b1` -> `v5.15.0-beta.1`; anything already in release form is returned as-is. */
|
|
690
|
+
function expandPrereleaseSpelling(tag: string): string {
|
|
691
|
+
const match = /^(v?)(\d+(?:\.\d+)*)(a|b|rc|c)(\d+)$/i.exec(tag)
|
|
692
|
+
if (match === null) return tag
|
|
693
|
+
const prefix = match[1] ?? ''
|
|
694
|
+
const release = match[2] ?? ''
|
|
695
|
+
const kind = (match[3] ?? '').toLowerCase()
|
|
696
|
+
const number = match[4] ?? ''
|
|
697
|
+
const word = kind === 'a' ? 'alpha' : kind === 'b' ? 'beta' : 'rc'
|
|
698
|
+
return `${prefix}${release}-${word}.${number}`
|
|
649
699
|
}
|
|
650
700
|
|
|
651
701
|
function fetchTaggedGithubRelease(
|
|
@@ -3,6 +3,7 @@ import { dirname, join, resolve } from 'node:path'
|
|
|
3
3
|
import { stat } from 'node:fs/promises'
|
|
4
4
|
import { promisify } from 'node:util'
|
|
5
5
|
import { readProjectConfig } from './project.js'
|
|
6
|
+
import { normalizeMaafwVersion } from './maafw-version.js'
|
|
6
7
|
import type { MaaProjectConfig } from './types.js'
|
|
7
8
|
import { normalizeControllerKind } from './controllers.js'
|
|
8
9
|
import { enabledResourcePacks, hasDevTools, hasGithubAutomation, isAddonEnabled } from './features.js'
|
|
@@ -301,7 +302,7 @@ async function checkAndroidPackaging(root: string, config: MaaProjectConfig, lin
|
|
|
301
302
|
ok = false
|
|
302
303
|
} else {
|
|
303
304
|
const declared = (config.maafw.version ?? '').trim()
|
|
304
|
-
if (declared !== '' && declared !== requirementsPin) {
|
|
305
|
+
if (declared !== '' && normalizeMaafwVersion(declared) !== normalizeMaafwVersion(requirementsPin)) {
|
|
305
306
|
lines.push(
|
|
306
307
|
`[ERR] maa-project.json pins maafw ${declared} but requirements.txt pins ${requirementsPin}; the APK would mix two versions.`,
|
|
307
308
|
)
|
|
@@ -311,7 +312,10 @@ async function checkAndroidPackaging(root: string, config: MaaProjectConfig, lin
|
|
|
311
312
|
ok = false
|
|
312
313
|
}
|
|
313
314
|
const pyprojectPin = await requirementPin(join(root, 'pyproject.toml'), /"maafw==([^"]+)"/)
|
|
314
|
-
if (
|
|
315
|
+
if (
|
|
316
|
+
pyprojectPin !== undefined &&
|
|
317
|
+
normalizeMaafwVersion(pyprojectPin) !== normalizeMaafwVersion(requirementsPin)
|
|
318
|
+
) {
|
|
315
319
|
lines.push(
|
|
316
320
|
`[ERR] pyproject.toml pins maafw ${pyprojectPin} but requirements.txt pins ${requirementsPin}; uv has not exported the change.`,
|
|
317
321
|
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The same MaaFramework release is spelled two ways across the toolchain.
|
|
3
|
+
*
|
|
4
|
+
* PyPI and `uv export` carry the PEP 440-normalized form (`5.15.0b1`), while GitHub tags — and the
|
|
5
|
+
* Android kernel tags that copy them — keep the released form (`v5.15.0-beta.1`,
|
|
6
|
+
* `3.13.15-maafw5.15.0-beta.1`). `requirements.txt`, `pyproject.toml` and `maa-project.json` can each
|
|
7
|
+
* hold either one, so anything comparing them has to compare these keys instead of the raw strings.
|
|
8
|
+
*/
|
|
9
|
+
export function normalizeMaafwVersion(version: string): string {
|
|
10
|
+
const value = version.trim().replace(/^[vV]/u, '')
|
|
11
|
+
const match = /^(\d+(?:\.\d+)*)(.*)$/u.exec(value)
|
|
12
|
+
if (match === null) return value.toLowerCase()
|
|
13
|
+
return `${match[1] ?? ''}${prereleaseKey(match[2] ?? '')}`
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** `-beta.1` / `beta.1` / `b1` -> `b1`, `rc.2` / `c2` -> `rc2`, release -> empty. */
|
|
17
|
+
function prereleaseKey(text: string): string {
|
|
18
|
+
const suffix = text.toLowerCase().replace(/^[-_.]+/u, '')
|
|
19
|
+
if (suffix === '') return ''
|
|
20
|
+
const match = /^(alpha|beta|preview|pre|rc|a|b|c)[-_.]?(\d*)(.*)$/u.exec(suffix)
|
|
21
|
+
if (match === null) return suffix
|
|
22
|
+
const word = match[1] ?? ''
|
|
23
|
+
const short = word === 'a' || word === 'alpha' ? 'a' : word === 'b' || word === 'beta' ? 'b' : 'rc'
|
|
24
|
+
return `${short}${match[2] ?? ''}${match[3] ?? ''}`
|
|
25
|
+
}
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
interfaceResourceItems,
|
|
23
23
|
maatoolsConfigFile,
|
|
24
24
|
optimizeImagesFiles,
|
|
25
|
-
|
|
25
|
+
pinMaafwToVersion,
|
|
26
26
|
projectCustomSchemaFiles,
|
|
27
27
|
releaseWorkflowFile,
|
|
28
28
|
schemaSyncFiles,
|
|
@@ -1024,7 +1024,7 @@ async function pinMaafwForAndroid(root: string, config: MaaProjectConfig, writte
|
|
|
1024
1024
|
const fullPath = join(root, relativePath)
|
|
1025
1025
|
if (!(await exists(fullPath))) return
|
|
1026
1026
|
const current = await readText(fullPath)
|
|
1027
|
-
const next =
|
|
1027
|
+
const next = pinMaafwToVersion(current, version)
|
|
1028
1028
|
if (next === current) return
|
|
1029
1029
|
await trackProjectPathForBackup(root, relativePath)
|
|
1030
1030
|
await writeText(fullPath, next)
|