create-maa-project 3.7.2__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.2 → create_maa_project-3.7.3}/.release/create-maa-project-manifest.json +26 -26
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/CHANGELOG.md +14 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/PKG-INFO +1 -1
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/commands.en.md +3 -1
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/commands.md +2 -0
- {create_maa_project-3.7.2 → 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.2 → create_maa_project-3.7.3}/pyproject.toml +1 -1
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/create-maa-project/references/commands.md +2 -1
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/templates.ts +130 -4
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/android-addon.test.ts +39 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/templates.test.ts +63 -1
- create_maa_project-3.7.2/py-wrapper/create_maa_project/__init__.py +0 -1
- create_maa_project-3.7.2/py-wrapper/create_maa_project/release_manifest.py +0 -2
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.editorconfig +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.gitattributes +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/cliff.toml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/ci.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/deps-audit.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/deps-sync.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/network-assets.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/release.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.github/workflows/schema-sync.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.gitignore +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.prettierignore +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/.prettierrc.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/AGENTS.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/LICENSE +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/README.en.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/README.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/RELEASING.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/android-packaging-plan.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/json-report.en.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/json-report.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/mcp.en.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/docs/mcp.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/pnpm-lock.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/pnpm-workspace.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/py-wrapper/create_maa_project/__main__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/build-sea.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/build.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/changelog-notes.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/check-network-assets.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/create-release-manifest.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/create-sbom.d.mts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/create-sbom.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/prepare-pypi-release.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/smoke-cli-artifact.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/sync-release-version.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/sync-schema.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/sync-template-deps.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/test-python.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/scripts/update-audit-overrides.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/README.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/create-maa-project/SKILL.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/create-maa-project/agents/openai.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/create-maa-project/references/json-report.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/addons.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/android.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/args.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/assets.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/auto-update.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/command.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/controllers.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/doctor.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/features.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/incremental-addons.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/index.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/lang.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/log.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/maafw-version.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/mcp.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/node-support.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/project-config.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/project.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/prompt.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/report.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/scaffold.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/semver.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/sync.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/template-deps.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/template-deps.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/types.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/update-targets.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/update.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/utils.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/src/version.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/.github/workflows/android-build.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/.github/workflows/android.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/Android/README.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/Android/profile.agent.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/Android/profile.pipeline.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/android/tools/android-packaging.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/auto-format/.github/workflows/format.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/CONTRIBUTING.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/PULL_REQUEST_TEMPLATE.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/bug_report.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/feature_request.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/issue_config.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/community/other_issue.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dependabot/.github/dependabot.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/extensions.agent.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/extensions.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/launch.agent.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/settings.agent.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/settings.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/tasks.agent.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/.vscode/tasks.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/package.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/pnpm-workspace.yaml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/dev-tools/tools/validate-schema.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/git-cliff/.github/cliff.toml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/check.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/package-smoke.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/github/.github/workflows/release.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/github/tools/build-release.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/github/tools/sync-runtime.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/optimize-images/.github/workflows/optimize-images.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/optimize-images/tools/optimize-images.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/schema-sync/.github/workflows/schema-sync.yml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/addons/schema-sync/tools/sync-schema.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/README.en.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/README.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/agent_runtime.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/action/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/action/general.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/reco/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/reco/general.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/custom/sink/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/maafw_paths.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/main.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/__init__.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/logger.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/maa_types.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/params.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/pienv.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/agent/utils/runtime_paths.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/pyproject.toml +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/requirements.in +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/requirements.txt +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/tools/schema/custom.action.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/tools/schema/custom.recognition.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/agent/uv.lock +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/.editorconfig +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/.gitattributes +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/.gitignore +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/.prettierignore +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/.prettierrc.mjs +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/README.en.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/README.md +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/gitignore.tmpl +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/interface.json.tmpl +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/licenses/AGPL-3.0-or-later.txt +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/licenses/MIT.txt +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/maatools.config.mts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/resource/base/default_pipeline.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/resource/base/image/empty.png +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/resource/base/model/ocr/manifest.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/resource/base/pipeline/Tutorial/Tutorial.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tasks/tutorial.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/custom.action.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/custom.recognition.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/interface.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/interface_config.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/interface_import.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/pipeline.schema.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/templates/base/tools/schema/schema-manifest.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/addons.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/android-packaging.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/args.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/auto-update.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/backup-operations.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/changelog-notes.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/child-env.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/cli-info.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/command.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/doctor-errors.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/enabled-config.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/git-initialization.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/incremental-addons-results.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/lang.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/maafw-version.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/mcp.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/node-support.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/ocr-git-registration.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/package-smoke-workflow.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/project-config.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/project.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/prompt-interactive.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/prompt.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/release-smoke.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/release-workflow.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/report.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/sbom.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/scaffold.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/semver.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/template-deps.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/test_py_wrapper.py +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tests/update-audit-overrides.test.ts +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/tsconfig.json +0 -0
- {create_maa_project-3.7.2 → create_maa_project-3.7.3}/vitest.config.ts +0 -0
{create_maa_project-3.7.2 → 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,20 @@
|
|
|
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
|
+
|
|
5
19
|
## [3.7.2] - 2026-10-17
|
|
6
20
|
|
|
7
21
|
### 修复
|
|
@@ -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,7 +140,9 @@ 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`
|
|
@@ -121,6 +121,8 @@ 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`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.7.3"
|
|
@@ -147,7 +147,8 @@ 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
|
|
@@ -294,20 +294,146 @@ export function withAndroidGitignoreSection(content: string, enabled = true): st
|
|
|
294
294
|
* content (`[project].dependencies` feeds `--update python-deps`), so `--add android` and a re-run of
|
|
295
295
|
* `--add agent` insert the line into the file the project owns instead of rewriting it; the generated
|
|
296
296
|
* content carries the same lines from creation.
|
|
297
|
+
*
|
|
298
|
+
* A project-owned `extend-exclude` is merged, never duplicated: TOML rejects the duplicate key, and
|
|
299
|
+
* an unparsable `pyproject.toml` also breaks `--update python-deps` (it parses the file). Output from
|
|
300
|
+
* older releases could stack a second key; the shell-only line is folded back into the project's
|
|
301
|
+
* list when both are present.
|
|
297
302
|
*/
|
|
298
303
|
export function withAndroidRuffExclude(content: string, enabled = true): string {
|
|
299
304
|
if (!enabled) return content
|
|
305
|
+
const newline = content.includes('\r\n') ? '\r\n' : '\n'
|
|
300
306
|
const lines = content.split(/\r?\n/u)
|
|
301
|
-
if (lines.some((line) => line.trim() === ANDROID_RUFF_EXCLUDE_LINE)) return content
|
|
302
307
|
const header = lines.findIndex((line) => line.trim() === '[tool.ruff]')
|
|
303
308
|
if (header < 0) return content
|
|
309
|
+
|
|
310
|
+
let sectionEnd = ruffSectionEnd(lines, header)
|
|
311
|
+
let keys = extendExcludeKeys(lines, header, sectionEnd)
|
|
312
|
+
if (keys.length > 1) {
|
|
313
|
+
const drop = new Set<number>()
|
|
314
|
+
for (const index of keys) {
|
|
315
|
+
if (lines[index]?.trim() !== ANDROID_RUFF_EXCLUDE_LINE) continue
|
|
316
|
+
drop.add(index)
|
|
317
|
+
if (lines[index - 1]?.trim() === ANDROID_RUFF_EXCLUDE_COMMENT) drop.add(index - 1)
|
|
318
|
+
}
|
|
319
|
+
if (drop.size > 0) {
|
|
320
|
+
lines.splice(0, lines.length, ...lines.filter((_, index) => !drop.has(index)))
|
|
321
|
+
sectionEnd = ruffSectionEnd(lines, header)
|
|
322
|
+
keys = extendExcludeKeys(lines, header, sectionEnd)
|
|
323
|
+
}
|
|
324
|
+
if (keys.length > 1) {
|
|
325
|
+
throw new Error(
|
|
326
|
+
'pyproject.toml declares [tool.ruff] extend-exclude more than once; merge the lists before adding the Android shell exclusion.',
|
|
327
|
+
)
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
const [
|
|
332
|
+
keyIndex,
|
|
333
|
+
] = keys
|
|
334
|
+
if (keyIndex !== undefined) {
|
|
335
|
+
if (!extendExcludeHasShell(lines, keyIndex, sectionEnd)) addShellToExtendExclude(lines, keyIndex, sectionEnd)
|
|
336
|
+
return lines.join(newline)
|
|
337
|
+
}
|
|
338
|
+
|
|
304
339
|
// The line belongs to the `[tool.ruff]` table, so it goes before the next header — and after the
|
|
305
340
|
// section's last setting, not into the blank line that usually separates the two.
|
|
306
|
-
|
|
307
|
-
let insertAt = nextHeader < 0 ? lines.length : nextHeader
|
|
341
|
+
let insertAt = sectionEnd
|
|
308
342
|
while (insertAt > header + 1 && lines[insertAt - 1]?.trim() === '') insertAt -= 1
|
|
309
343
|
lines.splice(insertAt, 0, ANDROID_RUFF_EXCLUDE_COMMENT, ANDROID_RUFF_EXCLUDE_LINE)
|
|
310
|
-
return lines.join(
|
|
344
|
+
return lines.join(newline)
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/** Index of the first line after the `[tool.ruff]` table, or the end of the file. */
|
|
348
|
+
function ruffSectionEnd(lines: string[], header: number): number {
|
|
349
|
+
const next = lines.findIndex((line, index) => index > header && line.trimStart().startsWith('['))
|
|
350
|
+
return next < 0 ? lines.length : next
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/** Every `extend-exclude` key the `[tool.ruff]` table declares. TOML allows one; more is invalid. */
|
|
354
|
+
function extendExcludeKeys(lines: string[], header: number, sectionEnd: number): number[] {
|
|
355
|
+
const keys: number[] = []
|
|
356
|
+
for (let index = header + 1; index < sectionEnd; index += 1) {
|
|
357
|
+
if (/^\s*extend-exclude\s*=/u.test(lines[index] ?? '')) keys.push(index)
|
|
358
|
+
}
|
|
359
|
+
return keys
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
const SHELL_EXCLUDE_PATTERN = /["']Android\/MaaFwApp\/?["']/u
|
|
363
|
+
|
|
364
|
+
/** The closing bracket of the array value at `keyIndex`, ignoring brackets inside strings. */
|
|
365
|
+
function extendExcludeArray(
|
|
366
|
+
lines: string[],
|
|
367
|
+
keyIndex: number,
|
|
368
|
+
sectionEnd: number,
|
|
369
|
+
): { open: number; endLine: number; endColumn: number } {
|
|
370
|
+
const keyLine = lines[keyIndex] ?? ''
|
|
371
|
+
const equals = keyLine.indexOf('=')
|
|
372
|
+
const open = equals < 0 ? -1 : keyLine.indexOf('[', equals)
|
|
373
|
+
if (open < 0) {
|
|
374
|
+
throw new Error(
|
|
375
|
+
'pyproject.toml sets [tool.ruff] extend-exclude to a value that is not an array; add "Android/MaaFwApp" to it by hand.',
|
|
376
|
+
)
|
|
377
|
+
}
|
|
378
|
+
let depth = 0
|
|
379
|
+
let quote: string | undefined
|
|
380
|
+
for (let lineIndex = keyIndex; lineIndex < sectionEnd; lineIndex += 1) {
|
|
381
|
+
const line = lines[lineIndex] ?? ''
|
|
382
|
+
for (let column = lineIndex === keyIndex ? open : 0; column < line.length; column += 1) {
|
|
383
|
+
const char = line[column]
|
|
384
|
+
if (quote !== undefined) {
|
|
385
|
+
if (char === '\\' && quote === '"') column += 1
|
|
386
|
+
else if (char === quote) quote = undefined
|
|
387
|
+
continue
|
|
388
|
+
}
|
|
389
|
+
if (char === '"' || char === "'") quote = char
|
|
390
|
+
else if (char === '[') depth += 1
|
|
391
|
+
else if (char === ']') {
|
|
392
|
+
depth -= 1
|
|
393
|
+
if (depth === 0) return { open, endLine: lineIndex, endColumn: column }
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
throw new Error('pyproject.toml has an unterminated [tool.ruff] extend-exclude array.')
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function extendExcludeHasShell(lines: string[], keyIndex: number, sectionEnd: number): boolean {
|
|
401
|
+
const { open, endLine, endColumn } = extendExcludeArray(lines, keyIndex, sectionEnd)
|
|
402
|
+
const text =
|
|
403
|
+
endLine === keyIndex
|
|
404
|
+
? (lines[keyIndex] ?? '').slice(open, endColumn + 1)
|
|
405
|
+
: [
|
|
406
|
+
(lines[keyIndex] ?? '').slice(open),
|
|
407
|
+
...lines.slice(keyIndex + 1, endLine),
|
|
408
|
+
(lines[endLine] ?? '').slice(0, endColumn + 1),
|
|
409
|
+
].join('\n')
|
|
410
|
+
return SHELL_EXCLUDE_PATTERN.test(text)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/** Appends the shell path to the existing array, keeping the project's own entries and layout. */
|
|
414
|
+
function addShellToExtendExclude(lines: string[], keyIndex: number, sectionEnd: number): void {
|
|
415
|
+
const { open, endLine, endColumn } = extendExcludeArray(lines, keyIndex, sectionEnd)
|
|
416
|
+
const value = '"Android/MaaFwApp"'
|
|
417
|
+
if (endLine === keyIndex) {
|
|
418
|
+
const line = lines[keyIndex] ?? ''
|
|
419
|
+
const inner = line.slice(open + 1, endColumn).trim()
|
|
420
|
+
const before = line.slice(0, endColumn).trimEnd()
|
|
421
|
+
const separator = inner === '' ? '' : inner.endsWith(',') ? ' ' : ', '
|
|
422
|
+
lines[keyIndex] = `${before}${separator}${value}${line.slice(endColumn)}`
|
|
423
|
+
return
|
|
424
|
+
}
|
|
425
|
+
let previous = keyIndex
|
|
426
|
+
for (let index = endLine - 1; index > keyIndex; index -= 1) {
|
|
427
|
+
if ((lines[index] ?? '').trim() !== '') {
|
|
428
|
+
previous = index
|
|
429
|
+
break
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
const previousLine = lines[previous] ?? ''
|
|
433
|
+
if (previous !== keyIndex && !previousLine.trimEnd().endsWith(',')) lines[previous] = `${previousLine},`
|
|
434
|
+
// An empty multi-line array has no element to copy indentation from, so use a plain four spaces.
|
|
435
|
+
const indent = previous === keyIndex ? ' ' : (/^\s*/u.exec(previousLine)?.[0] ?? '')
|
|
436
|
+
lines.splice(endLine, 0, `${indent}${value},`)
|
|
311
437
|
}
|
|
312
438
|
|
|
313
439
|
export function agentFiles(
|
|
@@ -298,6 +298,45 @@ describe('android add-on: --add android on an existing project', () => {
|
|
|
298
298
|
expect(await readFile(pyprojectPath, 'utf8')).toBe(patched)
|
|
299
299
|
})
|
|
300
300
|
|
|
301
|
+
it('merges the shell into an extend-exclude the project already owns', async () => {
|
|
302
|
+
const root = await tempRoot()
|
|
303
|
+
await createProject(options({ name: 'maa-android-ruff-merge', template: 'agent' }), { cwd: root })
|
|
304
|
+
const projectRoot = join(root, 'maa-android-ruff-merge')
|
|
305
|
+
const pyprojectPath = join(projectRoot, 'pyproject.toml')
|
|
306
|
+
const current = await readFile(pyprojectPath, 'utf8')
|
|
307
|
+
await writeFile(
|
|
308
|
+
pyprojectPath,
|
|
309
|
+
current.replace('line-length = 120', 'line-length = 120\nextend-exclude = ["scripts"]'),
|
|
310
|
+
'utf8',
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
await applyIncrementalAddons(options({ add: ['android'] }), () => {}, projectRoot)
|
|
314
|
+
|
|
315
|
+
const patched = await readFile(pyprojectPath, 'utf8')
|
|
316
|
+
expect(patched).toContain('extend-exclude = ["scripts", "Android/MaaFwApp"]')
|
|
317
|
+
// A second key would be invalid TOML and would break --update python-deps (it parses this file).
|
|
318
|
+
expect(patched.split('\n').filter((line) => /^\s*extend-exclude\s*=/u.test(line))).toHaveLength(1)
|
|
319
|
+
})
|
|
320
|
+
|
|
321
|
+
it('repairs a pyproject.toml that already stacked the shell-only key', async () => {
|
|
322
|
+
const root = await tempRoot()
|
|
323
|
+
await createProject(options({ name: 'maa-android-ruff-repair-dupe', template: 'agent' }), { cwd: root })
|
|
324
|
+
const projectRoot = join(root, 'maa-android-ruff-repair-dupe')
|
|
325
|
+
const pyprojectPath = join(projectRoot, 'pyproject.toml')
|
|
326
|
+
const broken = (await readFile(pyprojectPath, 'utf8')).replace(
|
|
327
|
+
'line-length = 120',
|
|
328
|
+
'line-length = 120\nextend-exclude = ["scripts"]\nextend-exclude = ["Android/MaaFwApp"]',
|
|
329
|
+
)
|
|
330
|
+
await writeFile(pyprojectPath, broken, 'utf8')
|
|
331
|
+
|
|
332
|
+
await applyIncrementalAddons(options({ add: ['android'] }), () => {}, projectRoot)
|
|
333
|
+
|
|
334
|
+
const repaired = await readFile(pyprojectPath, 'utf8')
|
|
335
|
+
expect(repaired.split('\n').filter((line) => /^\s*extend-exclude\s*=/u.test(line))).toHaveLength(1)
|
|
336
|
+
expect(repaired).toContain('"scripts"')
|
|
337
|
+
expect(repaired).toContain('"Android/MaaFwApp"')
|
|
338
|
+
})
|
|
339
|
+
|
|
301
340
|
it('pins an exact maafw version into pyproject.toml and waits for the export', async () => {
|
|
302
341
|
const root = await tempRoot()
|
|
303
342
|
await createProject(options({ name: 'maa-android-pin', template: 'agent', add: ['android'] }), { cwd: root })
|
|
@@ -4,7 +4,12 @@ import { fileURLToPath } from 'node:url'
|
|
|
4
4
|
import { check } from 'prettier'
|
|
5
5
|
import { describe, expect, it } from 'vitest'
|
|
6
6
|
import { PYTHON_EMBED_VERSION, PYTHON_STANDALONE_MINOR } from '../src/assets.js'
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
androidAppId,
|
|
9
|
+
isValidAndroidAppId,
|
|
10
|
+
ANDROID_RUFF_EXCLUDE_COMMENT,
|
|
11
|
+
ANDROID_RUFF_EXCLUDE_LINE,
|
|
12
|
+
} from '../src/android.js'
|
|
8
13
|
import { SUPPORTED_NODE_MAJOR } from '../src/node-support.js'
|
|
9
14
|
import {
|
|
10
15
|
agentFiles,
|
|
@@ -399,6 +404,24 @@ describe('agent pyproject ruff scope', () => {
|
|
|
399
404
|
}).find((file) => file.path === 'pyproject.toml')?.content ?? '',
|
|
400
405
|
)
|
|
401
406
|
|
|
407
|
+
/** A project-owned pyproject.toml whose `[tool.ruff]` table already has `extend-exclude`. */
|
|
408
|
+
const ruffConfig = (extendExclude: string): string =>
|
|
409
|
+
[
|
|
410
|
+
'[project]',
|
|
411
|
+
'name = "probe"',
|
|
412
|
+
'',
|
|
413
|
+
'[tool.ruff]',
|
|
414
|
+
'line-length = 120',
|
|
415
|
+
extendExclude,
|
|
416
|
+
'',
|
|
417
|
+
'[tool.pyright]',
|
|
418
|
+
'include = ["agent"]',
|
|
419
|
+
'',
|
|
420
|
+
].join('\n')
|
|
421
|
+
|
|
422
|
+
const extendExcludeKeyCount = (content: string): number =>
|
|
423
|
+
content.split('\n').filter((line) => /^\s*extend-exclude\s*=/u.test(line)).length
|
|
424
|
+
|
|
402
425
|
it('excludes the vendored shell from ruff when the project has one', () => {
|
|
403
426
|
const content = pyproject(true)
|
|
404
427
|
|
|
@@ -430,6 +453,45 @@ describe('agent pyproject ruff scope', () => {
|
|
|
430
453
|
// the project never asked for.
|
|
431
454
|
expect(withAndroidRuffExclude('[project]\nname = "x"\n')).toBe('[project]\nname = "x"\n')
|
|
432
455
|
})
|
|
456
|
+
|
|
457
|
+
it('merges the shell into an extend-exclude the project already owns', () => {
|
|
458
|
+
const patched = withAndroidRuffExclude(ruffConfig('extend-exclude = ["scripts"]'))
|
|
459
|
+
|
|
460
|
+
expect(patched).toContain('extend-exclude = ["scripts", "Android/MaaFwApp"]')
|
|
461
|
+
expect(extendExcludeKeyCount(patched)).toBe(1)
|
|
462
|
+
expect(withAndroidRuffExclude(patched)).toBe(patched)
|
|
463
|
+
})
|
|
464
|
+
|
|
465
|
+
it('merges into an empty or multi-line extend-exclude without touching the project entries', () => {
|
|
466
|
+
const empty = withAndroidRuffExclude(ruffConfig('extend-exclude = []'))
|
|
467
|
+
expect(empty).toContain('extend-exclude = ["Android/MaaFwApp"]')
|
|
468
|
+
|
|
469
|
+
const multiLine = withAndroidRuffExclude(ruffConfig('extend-exclude = [\n "scripts",\n "vendor",\n]'))
|
|
470
|
+
expect(multiLine).toContain('extend-exclude = [\n "scripts",\n "vendor",\n "Android/MaaFwApp",\n]')
|
|
471
|
+
expect(extendExcludeKeyCount(multiLine)).toBe(1)
|
|
472
|
+
expect(withAndroidRuffExclude(multiLine)).toBe(multiLine)
|
|
473
|
+
})
|
|
474
|
+
|
|
475
|
+
it('repairs a pyproject.toml that stacked the shell-only key on the project list', () => {
|
|
476
|
+
const stacked = ruffConfig(
|
|
477
|
+
`extend-exclude = ["scripts"]\n${ANDROID_RUFF_EXCLUDE_COMMENT}\n${ANDROID_RUFF_EXCLUDE_LINE}`,
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
const repaired = withAndroidRuffExclude(stacked)
|
|
481
|
+
|
|
482
|
+
expect(extendExcludeKeyCount(repaired)).toBe(1)
|
|
483
|
+
expect(repaired).toContain('"scripts"')
|
|
484
|
+
expect(repaired).toContain('"Android/MaaFwApp"')
|
|
485
|
+
})
|
|
486
|
+
|
|
487
|
+
it('leaves a list that already excludes the shell alone', () => {
|
|
488
|
+
expect(withAndroidRuffExclude(ruffConfig('extend-exclude = ["Android/MaaFwApp", "scripts"]'))).toBe(
|
|
489
|
+
ruffConfig('extend-exclude = ["Android/MaaFwApp", "scripts"]'),
|
|
490
|
+
)
|
|
491
|
+
expect(withAndroidRuffExclude(ruffConfig('extend-exclude = ["Android/MaaFwApp/"]'))).toBe(
|
|
492
|
+
ruffConfig('extend-exclude = ["Android/MaaFwApp/"]'),
|
|
493
|
+
)
|
|
494
|
+
})
|
|
433
495
|
})
|
|
434
496
|
|
|
435
497
|
describe('android packaging hook in the generated release workflow', () => {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "3.7.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{create_maa_project-3.7.2 → create_maa_project-3.7.3}/py-wrapper/create_maa_project/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{create_maa_project-3.7.2 → create_maa_project-3.7.3}/skills/create-maa-project/agents/openai.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|