toolframe-core 0.8.1__tar.gz → 0.8.2__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.
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/CHANGELOG.md +15 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/Cargo.lock +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/Cargo.toml +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/Dockerfile +2 -2
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/PKG-INFO +12 -8
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/README.md +11 -7
- toolframe_core-0.8.2/docs/application-templates.md +87 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/architecture.md +8 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/container.md +5 -5
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/postgresql-state.md +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/releasing.md +12 -7
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/web.md +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/pyproject.toml +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/dependencies.json +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/main.rs +8 -8
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/__init__.py +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/authoring_catalog.json +1 -1
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/host.py +39 -54
- toolframe_core-0.8.2/src/toolframe_core/lockfile.py +39 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/packages.py +259 -117
- toolframe_core-0.8.2/src/toolframe_core/selection.py +129 -0
- toolframe_core-0.8.2/src/toolframe_core/templates.json +6 -0
- toolframe_core-0.8.2/src/toolframe_core/templates.py +116 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/dependencies.py +2 -2
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_authoring.py +10 -8
- toolframe_core-0.8.2/tests/test_package_selection.py +318 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_retained_plugins.py +4 -3
- toolframe_core-0.8.2/tests/test_templates.py +261 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/uv.lock +1 -1
- toolframe_core-0.8.1/src/toolframe_core/templates.json +0 -9
- toolframe_core-0.8.1/src/toolframe_core/templates.py +0 -58
- toolframe_core-0.8.1/tests/test_templates.py +0 -83
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.dockerignore +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/actions/scan-container/action.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/dependabot.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/ci.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/container-security.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/container.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/launcher.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/pr-policy.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/publish.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/quality.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.github/workflows/validate.yml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.gitignore +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/.pre-commit-config.yaml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/CONTRIBUTING.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/LICENSE +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/NOTICE +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/authoring.json +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/cchk.toml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/companion-wheels.txt +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0001-explicit-dashboard-access-mode.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0002-scoped-passwords-and-public-business-entrances.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0003-public-fallback-on-auth-error-or-disablement.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0004-separate-auth-ownership-from-dashboard-presentation.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0005-password-only-login-and-secret-reuse.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0006-require-explicit-plugin-authorization-contracts.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0007-independent-mcp-bearer-authentication.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0008-shared-oidc-authentication.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0009-replaceable-core-journal.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0010-multiple-sql-providers.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0011-safe-new-application-access.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0012-optional-runtime-tracing.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0013-context-logging.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0014-web-presentation.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0015-distribution-authoring.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/adr/0016-plugin-compatibility.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/artifacts.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/authentication.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/authoring.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/ci.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/dependency-graph.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/glossary.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/intel-companion.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/mcp-authentication.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/object-storage.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/offline-maintenance.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/oidc-authentication.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/runtime.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/sql-storage.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/testing.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/docs/tracing.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/packaging/launcher/NOTICE +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/packaging/launcher/README.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/packaging/launcher/pyproject.toml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/build-launcher.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/build-release.sh +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/check-authoring-catalog.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/check-container-security.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/check_branch_name.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/artifacts.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/check-launcher-wheel.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/check-postgres.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/check-release.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/intel-companion.json +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/intel_companion.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/prepare-launcher.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/ci/validate.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/container-healthcheck.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/dev-wheelhouse.sh +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/harden-container.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/prepare-container.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-auth-upgrade.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-auth.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-container.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-dependencies.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-network.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-operation-history.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-release.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-retained-plugins.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-scaffold.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/scripts/verify-skill.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/companions.rs +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/_state_postgres.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/_state_sqlite.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/access.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/api.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/authoring.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/authoring_metadata.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/authoring_runner.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/LICENSE +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/README.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/pyproject.toml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/src/toolframe_basic/__init__.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/src/toolframe_basic/plugin.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/src/toolframe_basic/service.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/basic_template/tests/test_service.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/LICENSE +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/SKILL.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/agents/openai.yaml +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/evals/cases.json +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/references/design.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/references/operations.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/references/plugin-api.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/bundled_skills/toolframe-plugin-design/references/web-authoring.md +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/cli.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/config.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/diagnostics.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/gateway.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/graph.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/maintenance.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/mcp_access.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/network.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/oidc_access.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/process.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/redaction.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/scaffold.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/skills.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/state.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/state_admin.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/stores.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/web_access.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/web_build.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/toolframe_core/web_gateway.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/src/uv.rs +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_acceptance.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_access_policy.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_architecture.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_auth.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_bundles.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_ci_artifacts.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_ci_dependencies.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_cli.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_container_release.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_container_security.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_cookie_security.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_core_state.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_dashboard_policy.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_diagnostics.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_foundations.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_host.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_intel_companion.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_maintenance.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_managed_tasks.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_mcp_auth.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_mixed_storage.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_network.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_object_store.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_oidc.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_operation_history.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_process.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_redaction.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_scaffold.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_skills.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_storage_bindings.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_tracing.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_web.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/tests/test_web_boundaries.py +0 -0
- {toolframe_core-0.8.1 → toolframe_core-0.8.2}/uv-release-manifest.txt +0 -0
|
@@ -5,6 +5,21 @@ imply that its distributions have been published or every target is qualified.
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 0.8.2
|
|
9
|
+
|
|
10
|
+
- Resolve named application recipes to the latest compatible stable, non-yanked
|
|
11
|
+
plugin releases within their declared minimum and upper bounds. Backtrack over
|
|
12
|
+
incompatible metadata while preserving Core's SDK and backend isolation.
|
|
13
|
+
- Freeze exact sources, artifact hashes and environment locks before first
|
|
14
|
+
serve, retaining recipe ranges in the existing candidate provenance for
|
|
15
|
+
explicit updates. Dashboard and Web extras use their existing shared cohorts.
|
|
16
|
+
- Retain selected index versions through serve, restart, validate and reload;
|
|
17
|
+
only explicit update selects again. Restore missing environments from their
|
|
18
|
+
saved locks and reject missing or modified captured artifacts.
|
|
19
|
+
- Use the Entry Register 0.4.2 recipe and remove the per-plugin
|
|
20
|
+
`toolframe-fastmcp` patch override. Preserve explicit pins and custom sources,
|
|
21
|
+
support verified offline resources, and leave failed initialization retryable.
|
|
22
|
+
|
|
8
23
|
## 0.8.1
|
|
9
24
|
|
|
10
25
|
- Redact schema-declared secrets from the composition snapshot being exported,
|
|
@@ -3,7 +3,7 @@ FROM ghcr.io/astral-sh/uv:0.12.24@sha256:3af4716e991d6956a41e573eab705d0ee08500c
|
|
|
3
3
|
|
|
4
4
|
FROM debian:trixie-slim@sha256:62bd423aeee912639ca8ee681c2b762cb3e25137e0a92b20be455898a9f034ad AS runtime
|
|
5
5
|
ARG TARGETARCH
|
|
6
|
-
ARG TOOLFRAME_VERSION=0.8.
|
|
6
|
+
ARG TOOLFRAME_VERSION=0.8.2
|
|
7
7
|
ARG TOOLFRAME_REVISION
|
|
8
8
|
LABEL org.opencontainers.image.source="https://github.com/toolframe/toolframe-core" \
|
|
9
9
|
org.opencontainers.image.title="Toolframe" \
|
|
@@ -68,7 +68,7 @@ RUN mkdir -p /opt/ps-libs/var/lib/dpkg/status.d \
|
|
|
68
68
|
&& dpkg-query -s tini > /opt/ps-libs/var/lib/dpkg/status.d/tini
|
|
69
69
|
|
|
70
70
|
FROM gcr.io/distroless/cc-debian13:nonroot@sha256:83b9b50586253821cf63ffcec87d3d94265a093ad30da232039af962dd8f4edf AS distroless
|
|
71
|
-
ARG TOOLFRAME_VERSION=0.8.
|
|
71
|
+
ARG TOOLFRAME_VERSION=0.8.2
|
|
72
72
|
ARG TOOLFRAME_REVISION
|
|
73
73
|
LABEL org.opencontainers.image.source="https://github.com/toolframe/toolframe-core" \
|
|
74
74
|
org.opencontainers.image.title="Toolframe (Distroless)" \
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: toolframe-core
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Persistent control host for isolated Toolframe plugins
|
|
5
5
|
Project-URL: Homepage, https://github.com/toolframe/toolframe-core
|
|
6
6
|
Project-URL: Repository, https://github.com/toolframe/toolframe-core
|
|
@@ -250,14 +250,18 @@ toolframe --home ./example plugin status plugin-id --json --check
|
|
|
250
250
|
`enable` and `apply` reuse the latest installed candidate when its source matches
|
|
251
251
|
composition, including after the original source or an older binary bundle is
|
|
252
252
|
removed. They verify the retained wheel and rerun import/configuration preflight.
|
|
253
|
-
`reload` and `validate` likewise
|
|
254
|
-
|
|
255
|
-
captured afresh. A missing or modified retained wheel is an error, never an
|
|
256
|
-
implicit package upgrade.
|
|
257
|
-
|
|
253
|
+
`reload` and `validate` likewise retain installed index selections, including
|
|
254
|
+
`pypi:package>=minimum,<ceiling` ranges. Local directories, wheel paths and Git refs
|
|
255
|
+
are captured afresh. A missing or modified retained wheel is an error, never an
|
|
256
|
+
implicit package upgrade. Missing environments are restored from their exact
|
|
257
|
+
locks when the runtime profile is unchanged; required dependencies must be cached
|
|
258
|
+
or downloadable.
|
|
258
259
|
|
|
259
260
|
`update` explicitly resolves the source again and stages a candidate; it does not
|
|
260
|
-
change the active generation.
|
|
261
|
+
change the active generation. Named application recipes select compatible stable
|
|
262
|
+
versions during initialization, write exact sources and locks, and retain their
|
|
263
|
+
original ranges for explicit updates. See [application recipes](docs/application-templates.md)
|
|
264
|
+
for selection, isolation and offline behavior. Use update to pick up a replaced wheel or dependency
|
|
261
265
|
resolution, or to change the requested source/version. `reload` does not enable a
|
|
262
266
|
disabled plugin: use `enable` to restore its services, pages and tools.
|
|
263
267
|
A reviewed plan binds the
|
|
@@ -267,7 +271,7 @@ candidate. `--expected-revision` protects managed edits to composition.
|
|
|
267
271
|
|
|
268
272
|
Supported sources are local directories (`path:/absolute/directory`), Git
|
|
269
273
|
(`git+https://host/repo.git@ref#subdirectory=path`), wheel files/HTTPS URLs and
|
|
270
|
-
`pypi:distribution==version
|
|
274
|
+
`pypi:distribution==version` or bounded index ranges. Git refs resolve to full commits; local edits receive
|
|
271
275
|
new content identities even when their package version is unchanged. Workers use
|
|
272
276
|
captured wheels, never live editable imports. Each wheel supplies one
|
|
273
277
|
`toolframe.plugins` entry point and one stable plugin ID.
|
|
@@ -219,14 +219,18 @@ toolframe --home ./example plugin status plugin-id --json --check
|
|
|
219
219
|
`enable` and `apply` reuse the latest installed candidate when its source matches
|
|
220
220
|
composition, including after the original source or an older binary bundle is
|
|
221
221
|
removed. They verify the retained wheel and rerun import/configuration preflight.
|
|
222
|
-
`reload` and `validate` likewise
|
|
223
|
-
|
|
224
|
-
captured afresh. A missing or modified retained wheel is an error, never an
|
|
225
|
-
implicit package upgrade.
|
|
226
|
-
|
|
222
|
+
`reload` and `validate` likewise retain installed index selections, including
|
|
223
|
+
`pypi:package>=minimum,<ceiling` ranges. Local directories, wheel paths and Git refs
|
|
224
|
+
are captured afresh. A missing or modified retained wheel is an error, never an
|
|
225
|
+
implicit package upgrade. Missing environments are restored from their exact
|
|
226
|
+
locks when the runtime profile is unchanged; required dependencies must be cached
|
|
227
|
+
or downloadable.
|
|
227
228
|
|
|
228
229
|
`update` explicitly resolves the source again and stages a candidate; it does not
|
|
229
|
-
change the active generation.
|
|
230
|
+
change the active generation. Named application recipes select compatible stable
|
|
231
|
+
versions during initialization, write exact sources and locks, and retain their
|
|
232
|
+
original ranges for explicit updates. See [application recipes](docs/application-templates.md)
|
|
233
|
+
for selection, isolation and offline behavior. Use update to pick up a replaced wheel or dependency
|
|
230
234
|
resolution, or to change the requested source/version. `reload` does not enable a
|
|
231
235
|
disabled plugin: use `enable` to restore its services, pages and tools.
|
|
232
236
|
A reviewed plan binds the
|
|
@@ -236,7 +240,7 @@ candidate. `--expected-revision` protects managed edits to composition.
|
|
|
236
240
|
|
|
237
241
|
Supported sources are local directories (`path:/absolute/directory`), Git
|
|
238
242
|
(`git+https://host/repo.git@ref#subdirectory=path`), wheel files/HTTPS URLs and
|
|
239
|
-
`pypi:distribution==version
|
|
243
|
+
`pypi:distribution==version` or bounded index ranges. Git refs resolve to full commits; local edits receive
|
|
240
244
|
new content identities even when their package version is unchanged. Workers use
|
|
241
245
|
captured wheels, never live editable imports. Each wheel supplies one
|
|
242
246
|
`toolframe.plugins` entry point and one stable plugin ID.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Application recipes and version selection
|
|
2
|
+
|
|
3
|
+
Create an application from a named recipe with:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
toolframe --home ./my-app init --template entry-register
|
|
7
|
+
toolframe --home ./my-app serve
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Named recipes are composition assets in plugin distributions. The recipe owner
|
|
11
|
+
declares each plugin's supported range, with a verified minimum and a compatibility
|
|
12
|
+
ceiling. Core's recipe catalog selects a compatible recipe distribution; it does
|
|
13
|
+
not carry per-plugin patch overrides. Entry Register's ranges and their reasons
|
|
14
|
+
are documented in its
|
|
15
|
+
[recipe contract](https://github.com/toolframe/toolframe-demo-entry-register/blob/main/docs/recipe.md).
|
|
16
|
+
The basic plugin scaffold and package-provided authoring templates are separate;
|
|
17
|
+
see [plugin authoring](authoring.md).
|
|
18
|
+
|
|
19
|
+
## Initialization
|
|
20
|
+
|
|
21
|
+
For each index range, initialization chooses the newest available stable,
|
|
22
|
+
non-yanked release satisfying the declared range, Python/platform metadata and
|
|
23
|
+
dependencies. Core's exact SDK selection is held fixed. A plugin's declared Core
|
|
24
|
+
dependency must also accept the running Core. Unsatisfiable newer releases allow
|
|
25
|
+
the resolver to select an older compatible release within the same range.
|
|
26
|
+
|
|
27
|
+
Each backend is resolved independently, including its `backend` extra when
|
|
28
|
+
provided and any extras explicitly requested in its source. Only page contributors
|
|
29
|
+
and their Dashboard provider share a `ui` solve; Web contributors share their
|
|
30
|
+
existing `web` cohort. Cohort constraints can lower a floating plugin selection,
|
|
31
|
+
which is rechecked in its own backend environment. Other workers' dependency
|
|
32
|
+
versions do not constrain that cohort. Imports, plugin identity, worker protocol
|
|
33
|
+
and configuration preflight still run; metadata compatibility does not certify
|
|
34
|
+
arbitrary future runtime behavior.
|
|
35
|
+
|
|
36
|
+
Initialization writes exact `pypi:distribution==version` sources, captured wheels,
|
|
37
|
+
their SHA-256 hashes, environment locks and journal candidates before reporting
|
|
38
|
+
success. It uses the existing format-1 `toolframe.lock`. The original range is
|
|
39
|
+
kept as `source.requirement` in candidate provenance, alongside the selected exact
|
|
40
|
+
`source.request`. The first `serve` reuses those selections and prepared
|
|
41
|
+
environments. Initialization does not activate plugins or create business stores.
|
|
42
|
+
|
|
43
|
+
If no selection is available, `no_compatible_version` identifies the requirements,
|
|
44
|
+
SDK, Core, Python, platform and resolver diagnostics. The composition is not
|
|
45
|
+
published when resolution or preflight fails. Correct the range, supply compatible
|
|
46
|
+
artifacts or choose a compatible Core runtime, then retry.
|
|
47
|
+
|
|
48
|
+
## Existing applications and explicit updates
|
|
49
|
+
|
|
50
|
+
`serve`, restart, `apply`, `enable`, `validate` and `reload` retain an installed
|
|
51
|
+
index selection when its source still matches the composition, including older
|
|
52
|
+
applications that contain a range. These operations verify the captured wheel;
|
|
53
|
+
a missing or modified artifact is an error. A missing environment is restored
|
|
54
|
+
from its saved lock when the Core runtime profile is unchanged. A changed Core/SDK
|
|
55
|
+
profile may require new dependency resolution for the same plugin artifact.
|
|
56
|
+
|
|
57
|
+
To select a new release within a named recipe's original range:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
toolframe --home ./my-app plugin update entry-register
|
|
61
|
+
toolframe --home ./my-app plan --action reload --id entry-register
|
|
62
|
+
toolframe --home ./my-app plugin reload entry-register --plan-id PLAN_ID
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Update stages a new candidate and exact source; reload activates it. The other
|
|
66
|
+
plugins keep their selected artifacts. The retained range is used only while its
|
|
67
|
+
exact source still matches the composition. To replace that policy with an
|
|
68
|
+
explicit pin or a different source, supply `plugin update ID --source SOURCE`.
|
|
69
|
+
An explicit `==version` remains exact, including an explicitly selected prerelease
|
|
70
|
+
or yanked release; Core does not silently reinterpret it as a range.
|
|
71
|
+
|
|
72
|
+
Local TOML recipes are copied with their sources intact. Local directory, Git,
|
|
73
|
+
wheel and direct URL sources retain their existing capture/update semantics.
|
|
74
|
+
Reloading a local development source can still capture edits. Changing source
|
|
75
|
+
intent is an explicit operation; an index publication alone never updates an
|
|
76
|
+
already selected plugin. Stores remain owned by the same plugin IDs and follow
|
|
77
|
+
the existing [migration and recovery contract](architecture.md#data-ownership).
|
|
78
|
+
|
|
79
|
+
## Offline use
|
|
80
|
+
|
|
81
|
+
Set `TOOLFRAME_OFFLINE=1` and supply local wheels with `TOOLFRAME_WHEELHOUSE` or
|
|
82
|
+
`packages.find_links`. Offline resolution uses locally available wheels and uv's
|
|
83
|
+
cached dependency metadata/artifacts; it cannot discover new remote releases or
|
|
84
|
+
withdrawals. Cached source artifacts are checked against their recorded hashes,
|
|
85
|
+
and every required dependency must be available locally. Missing resources produce
|
|
86
|
+
an error without a network fallback. Core does not discover or substitute sibling
|
|
87
|
+
source checkouts. Keep the application home and its artifact/lock state together.
|
|
@@ -62,6 +62,14 @@ configuration and bindings. `toolframe.lock` records exact resolved artifacts an
|
|
|
62
62
|
environments. The Core journal stores candidates, observed generations, validation
|
|
63
63
|
results and operations. It does not override the composition file.
|
|
64
64
|
|
|
65
|
+
Named application recipes resolve stable index ranges before first serve. Each
|
|
66
|
+
backend retains its own dependency solve with Core's exact SDK; only existing
|
|
67
|
+
Dashboard/Web cohorts share their required extras. The chosen plugin sources
|
|
68
|
+
become exact, and the original update ranges remain in source provenance in the
|
|
69
|
+
same candidate journal and format-1 lock. Ordinary lifecycle operations retain
|
|
70
|
+
index selections; explicit update is the selection boundary. See
|
|
71
|
+
[application recipes](application-templates.md) for the operator contract.
|
|
72
|
+
|
|
65
73
|
A distribution exports one `toolframe.plugins` entry point and one stable plugin
|
|
66
74
|
ID. Distribution name, import namespace and plugin ID are distinct. A local
|
|
67
75
|
directory, Git revision, wheel or package-index request is captured into an
|
|
@@ -13,11 +13,11 @@ Create a named volume, initialize an application and start the server:
|
|
|
13
13
|
docker volume create toolframe-data
|
|
14
14
|
docker run --rm --cap-drop ALL --security-opt no-new-privileges:true \
|
|
15
15
|
-v toolframe-data:/data \
|
|
16
|
-
ghcr.io/toolframe/toolframe:0.8.
|
|
16
|
+
ghcr.io/toolframe/toolframe:0.8.2 init --template entry-register
|
|
17
17
|
docker run -d --name toolframe --restart unless-stopped \
|
|
18
18
|
--cap-drop ALL --security-opt no-new-privileges:true \
|
|
19
19
|
--stop-timeout 40 -p 127.0.0.1:9876:9876 -v toolframe-data:/data \
|
|
20
|
-
ghcr.io/toolframe/toolframe:0.8.
|
|
20
|
+
ghcr.io/toolframe/toolframe:0.8.2
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Open `http://localhost:9876`. To obtain the management sign-in link:
|
|
@@ -39,8 +39,8 @@ follow the [network and access guidance](../README.md#lan-access).
|
|
|
39
39
|
|
|
40
40
|
| Tag | Contents and intended use |
|
|
41
41
|
| --- | --- |
|
|
42
|
-
| `0.8.
|
|
43
|
-
| `0.8.
|
|
42
|
+
| `0.8.2` | Debian 13 slim, shell, Git, process tools and the Toolframe runtime. Supports Git plugin sources and interactive diagnosis. |
|
|
43
|
+
| `0.8.2-distroless` | Google Distroless Debian 13 C/C++ runtime, Toolframe, uv, managed Python, Tini and the `ps` dependencies required by Core. No shell, Git or OS package manager. |
|
|
44
44
|
| `latest` | Standard image for the latest stable Core release. |
|
|
45
45
|
| `distroless` | Distroless image for the latest stable Core release. |
|
|
46
46
|
|
|
@@ -51,7 +51,7 @@ and Python/Core preparation path. Base images and uv are pinned by
|
|
|
51
51
|
multi-platform digest in the Dockerfile.
|
|
52
52
|
|
|
53
53
|
To use Distroless, replace the image in both quick-start commands with
|
|
54
|
-
`ghcr.io/toolframe/toolframe:0.8.
|
|
54
|
+
`ghcr.io/toolframe/toolframe:0.8.2-distroless`. It retains uv because Toolframe
|
|
55
55
|
uses it for plugin environments. Python wheels and compatible pure-Python builds
|
|
56
56
|
work; Git sources, plugins invoking a shell, and native source builds needing
|
|
57
57
|
compilers or missing system libraries require another image. Neither variant
|
|
@@ -15,7 +15,7 @@ business databases. Do not provision Core tables in a business-provider database
|
|
|
15
15
|
Install the coordinated Core release with its optional driver:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
pip install 'toolframe-core[postgres]==0.8.
|
|
18
|
+
pip install 'toolframe-core[postgres]==0.8.2'
|
|
19
19
|
toolframe-core --home ./app init
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -8,9 +8,14 @@ contains no Python wheels; it resolves Core and selected plugins from PyPI.
|
|
|
8
8
|
|
|
9
9
|
## Coordinated release
|
|
10
10
|
|
|
11
|
-
Core selects SDK 0.4.1 and requires Cordis 0.2.2.
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
Core selects SDK 0.4.1 and requires Cordis 0.2.2. Publish Entry Register 0.4.2
|
|
12
|
+
before Core 0.8.2. Its named recipe resolves bounded plugin ranges and freezes
|
|
13
|
+
the compatible stable selections before first serve; see
|
|
14
|
+
[application recipes](application-templates.md).
|
|
15
|
+
|
|
16
|
+
The release validation combination uses SQLite 0.4.1, auth 0.3.1,
|
|
17
|
+
dashboard-auth 0.2.1, Dashboard 0.5.1, Web 0.1.0, `toolframe-fastmcp` 0.3.1,
|
|
18
|
+
llms-txt 0.3.0 and Entry Register 0.4.2. Optional
|
|
14
19
|
versions are PostgreSQL 0.2.1, MCP Auth 0.3.1, OIDC Auth 0.3.2, Jobs 0.2.1 and
|
|
15
20
|
Backup 0.2.2. Backup uses the public Core operator API and supports gateway mounts.
|
|
16
21
|
|
|
@@ -20,7 +25,7 @@ the public Web sdist by hash. The Web repository may remain private; its PyPI
|
|
|
20
25
|
wheel and sdist are public. See [CI](ci.md) for source acquisition and local
|
|
21
26
|
prepublication artifacts.
|
|
22
27
|
|
|
23
|
-
Publish `toolframe-core==0.8.
|
|
28
|
+
Publish `toolframe-core==0.8.2` and `toolframe==0.8.2` together through Core's
|
|
24
29
|
workflow after the dependency combination is available. Core and launcher versions
|
|
25
30
|
must match. The launcher resolves the package versions selected by the template;
|
|
26
31
|
its native wheel does not bundle Python distributions.
|
|
@@ -54,7 +59,7 @@ credentials; see [CI](ci.md).
|
|
|
54
59
|
## Validate and publish
|
|
55
60
|
|
|
56
61
|
`ci.yml` validates Core's wheel/sdist, real PostgreSQL integration and native
|
|
57
|
-
launcher wheels on four platforms. Publication is manual: select tag `v0.8.
|
|
62
|
+
launcher wheels on four platforms. Publication is manual: select tag `v0.8.2`
|
|
58
63
|
for `publish.yml` to publish to PyPI.
|
|
59
64
|
The tag must match both Python and Cargo versions. Branches and mismatched tags
|
|
60
65
|
fail before validation.
|
|
@@ -112,7 +117,7 @@ Prepublication acceptance supplies matching local wheels explicitly. After all
|
|
|
112
117
|
uploads, run in a fresh environment:
|
|
113
118
|
|
|
114
119
|
```sh
|
|
115
|
-
uv tool install toolframe==0.8.
|
|
120
|
+
uv tool install toolframe==0.8.2
|
|
116
121
|
toolframe --version
|
|
117
122
|
toolframe --home ./release-check init --template entry-register
|
|
118
123
|
toolframe --home ./release-check serve
|
|
@@ -120,7 +125,7 @@ toolframe --home ./release-check serve
|
|
|
120
125
|
toolframe --home ./release-check open
|
|
121
126
|
```
|
|
122
127
|
|
|
123
|
-
Repeat with `uvx --from toolframe==0.8.
|
|
128
|
+
Repeat with `uvx --from toolframe==0.8.2 toolframe ...` and with the downloaded
|
|
124
129
|
native archive. Compare the archive SHA-256 with `SHA256SUMS`. The automated
|
|
125
130
|
consumer probe can be repeated without a test wheelhouse:
|
|
126
131
|
|
|
@@ -11,7 +11,7 @@ Use a Core 0.8 executable or `toolframe-core` Python entry point. Install the CL
|
|
|
11
11
|
and select the published Web authoring package explicitly:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
uv tool install toolframe==0.8.
|
|
14
|
+
uv tool install toolframe==0.8.2
|
|
15
15
|
toolframe --home ./notes-app init
|
|
16
16
|
toolframe --home ./notes-app plugin new notes --from pypi:toolframe-web==0.1.0 --template toolframe-web/notes
|
|
17
17
|
toolframe --home ./notes-app web prepare ./notes-app/plugins/notes
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"toolframe-streamlit-dashboard": "efd27f321e8c3e277fd25ad8259c225027eb2cc4",
|
|
7
7
|
"toolframe-fastmcp": "43a4151bfa6565ffb3d697019ed8ebd61432156e",
|
|
8
8
|
"toolframe-llms-txt": "d52dd2ed54dd4ee23bb1687d43ec347f459f7b5c",
|
|
9
|
-
"toolframe-demo-entry-register": "
|
|
9
|
+
"toolframe-demo-entry-register": "4269add5ca83a9dacda4c56f0bb80e48cd1b3356",
|
|
10
10
|
"toolframe-auth": "b7c26f0e0681ef4f707024e21219bbcf4533e8f8",
|
|
11
11
|
"toolframe-dashboard-auth": "e4e2a29ba9be18eec64158bae3a9d65d076cae68",
|
|
12
12
|
"toolframe-mcp-auth": "86866e270a71e418466ff1b26f471d88b281709a",
|
|
@@ -23,10 +23,10 @@ fn tracing_requested(value: Option<&str>) -> Result<bool> {
|
|
|
23
23
|
|
|
24
24
|
fn core_requirement(postgres: bool, tracing: bool) -> &'static str {
|
|
25
25
|
match (postgres, tracing) {
|
|
26
|
-
(true, true) => "toolframe-core[postgres,tracing]==0.8.
|
|
27
|
-
(true, false) => "toolframe-core[postgres]==0.8.
|
|
28
|
-
(false, true) => "toolframe-core[tracing]==0.8.
|
|
29
|
-
(false, false) => "toolframe-core==0.8.
|
|
26
|
+
(true, true) => "toolframe-core[postgres,tracing]==0.8.2",
|
|
27
|
+
(true, false) => "toolframe-core[postgres]==0.8.2",
|
|
28
|
+
(false, true) => "toolframe-core[tracing]==0.8.2",
|
|
29
|
+
(false, false) => "toolframe-core==0.8.2",
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -270,18 +270,18 @@ mod tests {
|
|
|
270
270
|
|
|
271
271
|
#[test]
|
|
272
272
|
fn runtime_profiles_select_only_the_requested_extras() {
|
|
273
|
-
assert_eq!(core_requirement(false, false), "toolframe-core==0.8.
|
|
273
|
+
assert_eq!(core_requirement(false, false), "toolframe-core==0.8.2");
|
|
274
274
|
assert_eq!(
|
|
275
275
|
core_requirement(false, true),
|
|
276
|
-
"toolframe-core[tracing]==0.8.
|
|
276
|
+
"toolframe-core[tracing]==0.8.2"
|
|
277
277
|
);
|
|
278
278
|
assert_eq!(
|
|
279
279
|
core_requirement(true, false),
|
|
280
|
-
"toolframe-core[postgres]==0.8.
|
|
280
|
+
"toolframe-core[postgres]==0.8.2"
|
|
281
281
|
);
|
|
282
282
|
assert_eq!(
|
|
283
283
|
core_requirement(true, true),
|
|
284
|
-
"toolframe-core[postgres,tracing]==0.8.
|
|
284
|
+
"toolframe-core[postgres,tracing]==0.8.2"
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
@@ -28,11 +28,13 @@ from .config import ConfigFile, HostLock, PluginRequest, atomic_write, managemen
|
|
|
28
28
|
from .diagnostics import dependency_snapshot
|
|
29
29
|
from .gateway import compile_gateway, endpoints, validate_web_catalogs
|
|
30
30
|
from .graph import Graph
|
|
31
|
+
from .lockfile import write_lock
|
|
31
32
|
from .mcp_access import McpAccess
|
|
32
33
|
from .network import bind_host
|
|
33
|
-
from .packages import Packages,
|
|
34
|
+
from .packages import Packages, floating_index_source, index_source, source_files
|
|
34
35
|
from .process import WorkerProcess, group_exists, process_inventory, stop_group
|
|
35
36
|
from .redaction import redact, secret_values
|
|
37
|
+
from .selection import prepare_selection
|
|
36
38
|
from .state import CoreState, StateSettings
|
|
37
39
|
from .stores import RetainedStores
|
|
38
40
|
from .web_access import WebAccess
|
|
@@ -520,7 +522,7 @@ class Host:
|
|
|
520
522
|
if (
|
|
521
523
|
not retained
|
|
522
524
|
or retained["source"]["request"] != request.source
|
|
523
|
-
or not (installed or
|
|
525
|
+
or not (installed or index_source(request.source))
|
|
524
526
|
):
|
|
525
527
|
retained = None
|
|
526
528
|
candidate = await self.packages.prepare(
|
|
@@ -642,7 +644,33 @@ class Host:
|
|
|
642
644
|
if action == "update":
|
|
643
645
|
request = self.composition.plugins[name]
|
|
644
646
|
source = params.get("source", request.source)
|
|
645
|
-
|
|
647
|
+
pin = False
|
|
648
|
+
if "source" not in params:
|
|
649
|
+
row = await self.state.plugin(name)
|
|
650
|
+
previous = row["last_candidate"] or row["current_candidate"]
|
|
651
|
+
retained = await self.state.candidate(previous) if previous else None
|
|
652
|
+
if retained and retained["source"]["request"] == source:
|
|
653
|
+
source = retained["source"].get("requirement", source)
|
|
654
|
+
pin = source != request.source
|
|
655
|
+
if floating_index_source(source):
|
|
656
|
+
fixed = await self.selected()
|
|
657
|
+
fixed.pop(name, None)
|
|
658
|
+
candidates = await prepare_selection(
|
|
659
|
+
self.packages,
|
|
660
|
+
{name: request.model_copy(update={"source": source})},
|
|
661
|
+
self.composition.bindings,
|
|
662
|
+
fixed=fixed,
|
|
663
|
+
enabled={
|
|
664
|
+
key
|
|
665
|
+
for key, item in self.composition.plugins.items()
|
|
666
|
+
if item.enabled
|
|
667
|
+
},
|
|
668
|
+
pin=pin,
|
|
669
|
+
)
|
|
670
|
+
candidate = candidates[name]
|
|
671
|
+
source = candidate["source"]["request"]
|
|
672
|
+
else:
|
|
673
|
+
candidate = await self.packages.prepare(name, source, request.config)
|
|
646
674
|
if source != request.source:
|
|
647
675
|
self.composition, self.revision = self.config.put_plugin(
|
|
648
676
|
name, request.model_copy(update={"source": source}), self.revision
|
|
@@ -871,7 +899,7 @@ class Host:
|
|
|
871
899
|
for resource in graph.definitions[owner].resources
|
|
872
900
|
)
|
|
873
901
|
]
|
|
874
|
-
environment = await self.packages.
|
|
902
|
+
environment = await self.packages.cohort_environment(cohort, extra="ui")
|
|
875
903
|
proposed[dashboard] = {
|
|
876
904
|
**proposed[dashboard],
|
|
877
905
|
"ui_environment": environment,
|
|
@@ -890,7 +918,9 @@ class Host:
|
|
|
890
918
|
r.kind == "web.app" for r in graph.definitions[owner].resources
|
|
891
919
|
)
|
|
892
920
|
]
|
|
893
|
-
environment = await self.packages.
|
|
921
|
+
environment = await self.packages.cohort_environment(
|
|
922
|
+
cohort, extra="web"
|
|
923
|
+
)
|
|
894
924
|
proposed[web] = {**proposed[web], "web_environment": environment}
|
|
895
925
|
stages[stage] = {"status": "passed", "environment": environment["id"]}
|
|
896
926
|
for kind, resource_kind in {
|
|
@@ -1507,15 +1537,9 @@ class Host:
|
|
|
1507
1537
|
cohort_ids = {item["plugin_id"]: item["id"] for item in cohort}
|
|
1508
1538
|
prior = proposed[name]
|
|
1509
1539
|
profile = "web" if definition.provider_kind == "web" else "ui"
|
|
1510
|
-
environment =
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
or prior.get(profile + "_cohort") != cohort_ids
|
|
1514
|
-
or not (self.home / environment["python"]).is_file()
|
|
1515
|
-
):
|
|
1516
|
-
environment = await self.packages.environment(
|
|
1517
|
-
cohort, extra=profile
|
|
1518
|
-
)
|
|
1540
|
+
environment = await self.packages.cohort_environment(
|
|
1541
|
+
cohort, extra=profile
|
|
1542
|
+
)
|
|
1519
1543
|
proposed[name] = {
|
|
1520
1544
|
**prior,
|
|
1521
1545
|
profile + "_environment": environment,
|
|
@@ -1912,46 +1936,7 @@ class Host:
|
|
|
1912
1936
|
self.gateway = gateway
|
|
1913
1937
|
|
|
1914
1938
|
async def write_lock(self):
|
|
1915
|
-
|
|
1916
|
-
for name in self.composition.plugins:
|
|
1917
|
-
row = await self.state.plugin(name)
|
|
1918
|
-
candidates = {}
|
|
1919
|
-
for selection in (
|
|
1920
|
-
"current_candidate",
|
|
1921
|
-
"last_candidate",
|
|
1922
|
-
"previous_candidate",
|
|
1923
|
-
):
|
|
1924
|
-
if row[selection]:
|
|
1925
|
-
candidate = await self.state.candidate(row[selection])
|
|
1926
|
-
candidates[selection] = {
|
|
1927
|
-
key: candidate[key]
|
|
1928
|
-
for key in (
|
|
1929
|
-
"id",
|
|
1930
|
-
"version",
|
|
1931
|
-
"artifact",
|
|
1932
|
-
"artifact_hash",
|
|
1933
|
-
"source",
|
|
1934
|
-
"environment",
|
|
1935
|
-
"ui_environment",
|
|
1936
|
-
"web_environment",
|
|
1937
|
-
)
|
|
1938
|
-
if key in candidate
|
|
1939
|
-
}
|
|
1940
|
-
plugins[name] = candidates
|
|
1941
|
-
atomic_write(
|
|
1942
|
-
self.home / "toolframe.lock",
|
|
1943
|
-
json.dumps(
|
|
1944
|
-
{"format": 1, "desired_revision": self.revision, "plugins": plugins},
|
|
1945
|
-
indent=2,
|
|
1946
|
-
)
|
|
1947
|
-
+ "\n",
|
|
1948
|
-
)
|
|
1949
|
-
(await self.state.set_meta("desired_revision", self.revision))
|
|
1950
|
-
(
|
|
1951
|
-
await self.state.set_meta(
|
|
1952
|
-
"last_valid_composition", self.composition.model_dump()
|
|
1953
|
-
)
|
|
1954
|
-
)
|
|
1939
|
+
await write_lock(self.home, self.state, self.composition, self.revision)
|
|
1955
1940
|
|
|
1956
1941
|
def begin_root(self, owner, *, deadline=None, principal=None):
|
|
1957
1942
|
if (
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Publish the existing application lock from journal candidate selections."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
|
|
5
|
+
from .config import atomic_write
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
async def write_lock(home, state, composition, revision):
|
|
9
|
+
plugins = {}
|
|
10
|
+
for name in composition.plugins:
|
|
11
|
+
row = await state.plugin(name)
|
|
12
|
+
candidates = {}
|
|
13
|
+
for selection in ("current_candidate", "last_candidate", "previous_candidate"):
|
|
14
|
+
if row[selection]:
|
|
15
|
+
candidate = await state.candidate(row[selection])
|
|
16
|
+
candidates[selection] = {
|
|
17
|
+
key: candidate[key]
|
|
18
|
+
for key in (
|
|
19
|
+
"id",
|
|
20
|
+
"version",
|
|
21
|
+
"artifact",
|
|
22
|
+
"artifact_hash",
|
|
23
|
+
"source",
|
|
24
|
+
"environment",
|
|
25
|
+
"ui_environment",
|
|
26
|
+
"web_environment",
|
|
27
|
+
)
|
|
28
|
+
if key in candidate
|
|
29
|
+
}
|
|
30
|
+
plugins[name] = candidates
|
|
31
|
+
atomic_write(
|
|
32
|
+
home / "toolframe.lock",
|
|
33
|
+
json.dumps(
|
|
34
|
+
{"format": 1, "desired_revision": revision, "plugins": plugins}, indent=2
|
|
35
|
+
)
|
|
36
|
+
+ "\n",
|
|
37
|
+
)
|
|
38
|
+
await state.set_meta("desired_revision", revision)
|
|
39
|
+
await state.set_meta("last_valid_composition", composition.model_dump())
|