actions-runtime 1.0.3__tar.gz → 1.0.4__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.
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/PKG-INFO +21 -1
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/README.md +20 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/pyproject.toml +1 -1
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/setup.py +2 -2
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/__init__.py +1 -1
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_robots.py +28 -37
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_rcc_robot_utils.py +13 -29
- actions_runtime-1.0.4/src/actions/server/_robot_artifacts.py +225 -0
- actions_runtime-1.0.4/src/actions/server/_robot_inputs.py +200 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/build.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/oauth2/actions-oauth-config.yaml +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/oauth2/oauth-config.yaml +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/README.md +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/__main__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_action_package_handler.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_actions_cloud.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_actions_import.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_actions_process_pool.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_actions_run.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_actions_run_helpers.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_action_package.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_action_routes.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_analytics.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_oauth2.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_run.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_schedules.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_secrets.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_triggers.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_api_work_items.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_app.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_artifact_storage.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_ask_user.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_browser_session.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/build_executable.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/entitlements.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/file_from_function.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/process_call.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/py.typed +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/rcc_bundle.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/root_dir.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/signing.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/version_from_github_actions.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/workflows.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_build_common/zip_assets.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_cli_helpers.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_cli_impl.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/action_package_handling/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/action_package_handling/cli_errors.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/app_mutex.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/autoexit.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/callback.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/gallery.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/gen_certificate.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/locations.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/ls_protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/monitor.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/null.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/oauth2_settings.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/_conda_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/_deps_protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/_package_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/_pip_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/analyzer.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_cloud.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/conda_channel.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/conda_match_spec.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/conda_path.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/conda_url.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/conda_impl/conda_version.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/pip_impl/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/pip_impl/pip_distlib_util.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/pip_impl/pip_packaging_structure.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/pip_impl/pip_packaging_version.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_deps/pypi_cloud.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/package_exclude.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/process.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/process_logging.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/py.typed +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/run_in_thread.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/system_mutex.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/termcolors/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/text.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/tools.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/uris.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/url_callback_server.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/wait_for.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_common/yaml_with_location.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_community_expose.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_community_expose_lifecycle.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_database.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_datadir_commands.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_devenv.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_directory_publication.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_download_rcc.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_encryption.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_errors.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_errors_action_server.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_gen_ids.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_mode.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_models.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_new_project.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_new_project_helpers.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_notifications.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_oauth2.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_oauth2_config.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_portable_paths.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/preload_actions.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/preload_actions_autoexit.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/preload_actions_server_main.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/preload_actions_streams.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_preload_actions/preload_actions_teardown.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_rcc.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_rcc_runtime_adapter.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/auth.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/callback.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/constants.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/log_custom_handler.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/log_formatter.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/process.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/run_in_thread.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_robo_utils/system_mutex.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_runs_state_cache.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_scheduler.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_selftest.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_server.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_server_websockets.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_settings.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_slugify.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_static_contents.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_storage.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_triggers.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_user_session.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_watcher.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_whitelist.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_work_items_import.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/_work_items_paths.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/api.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/bin/.gitignore +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/cli.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/canonical.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/ids.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/source_manifest.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/source_read.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/deployments/source_staging.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/env/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/index.html +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/mcp/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/mcp/gateway_metadata.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/mcp/resource_routing.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/mcp/setup_mcp_server_from_actions.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/mcp/setup_mcp_server_v2.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_action_enabled.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_action_managed_params.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_action_options.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_code_verifier.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_is_consequential.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_mcp_catalog_names.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_mcp_resource_routing.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_request_id_to_run.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_robot_run_columns.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_run_outputs.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_schedules.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_add_session_and_indexes.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_align_schema_indexes.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_initial.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_reconcile_run_columns.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/migrations/migration_reconcile_schema.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_build.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_build_cli.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_metadata.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_publish.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_publish_api.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/_package_reader.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/package/package_exclude.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/py.typed +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/filesystem.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/models.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/service.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/transport.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/run_outputs/types.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/action-templates.yaml +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/action-templates.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/advanced.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/basic.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/canvas-query.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/mcp-v2-showcase.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/minimal.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/templates/zips/workflow-producer-consumer.zip +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/README.md +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/action_package_handling/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/action_package_handling/cli_errors.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/gen_certificate.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/ls_protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/oauth2_settings.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/_conda_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/_deps_protocols.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/_package_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/_pip_deps.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/analyzer.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_cloud.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_channel.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_match_spec.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_path.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_url.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_version.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/pip_impl/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_distlib_util.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_packaging_structure.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_packaging_version.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/package_deps/pypi_cloud.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/termcolors/__init__.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/url_callback_server.py +0 -0
- {actions_runtime-1.0.3 → actions_runtime-1.0.4}/src/actions/server/vendored_deps/yaml_with_location.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: actions-runtime
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Actions Runtime — serve Python actions through HTTP and MCP
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Joshua Yorko
|
|
@@ -145,6 +145,26 @@ After it's started, it's possible to access the following URLs:
|
|
|
145
145
|
- `/openapi.json`: Provides the openapi spec for the action server.
|
|
146
146
|
- `/docs`: Provides access to the APIs available in the server and a UI to test it.
|
|
147
147
|
|
|
148
|
+
## Robot run artifacts
|
|
149
|
+
|
|
150
|
+
After a Robot task exits, Runtime retains regular files from its configured
|
|
151
|
+
`artifactsDir`, or `output` when absent, including failure diagnostics. List
|
|
152
|
+
them at `/api/runs/{run_id}/artifacts` and download them through the existing
|
|
153
|
+
artifact endpoints with your configured Runtime credentials.
|
|
154
|
+
|
|
155
|
+
Collection captures the trusted output tree as it exists at task completion.
|
|
156
|
+
Pre-existing files can be included. Avoid concurrent writers while Runtime
|
|
157
|
+
collects the files; collection does not provide an atomic tree snapshot or
|
|
158
|
+
prove which invocation created them. Later source changes do not alter the
|
|
159
|
+
retained copies.
|
|
160
|
+
|
|
161
|
+
Output roots must be canonical relative paths inside the Robot package.
|
|
162
|
+
Runtime rejects links, hardlinks, special files, portable-name collisions and
|
|
163
|
+
reserved names such as `env.json` and `__action_server_*`. Limits are 50 MiB per
|
|
164
|
+
file, 500 MiB total, 10,000 entries and depth 32. A collection error marks the
|
|
165
|
+
Run failed and preserves its console and any complete files already retained.
|
|
166
|
+
The selected Robot configuration must fit within 64 KiB.
|
|
167
|
+
|
|
148
168
|
## Documentation
|
|
149
169
|
|
|
150
170
|
Explore our [docs](https://github.com/joshyorko/actions/tree/community/action_server/docs) for extensive documentation.
|
|
@@ -104,6 +104,26 @@ After it's started, it's possible to access the following URLs:
|
|
|
104
104
|
- `/openapi.json`: Provides the openapi spec for the action server.
|
|
105
105
|
- `/docs`: Provides access to the APIs available in the server and a UI to test it.
|
|
106
106
|
|
|
107
|
+
## Robot run artifacts
|
|
108
|
+
|
|
109
|
+
After a Robot task exits, Runtime retains regular files from its configured
|
|
110
|
+
`artifactsDir`, or `output` when absent, including failure diagnostics. List
|
|
111
|
+
them at `/api/runs/{run_id}/artifacts` and download them through the existing
|
|
112
|
+
artifact endpoints with your configured Runtime credentials.
|
|
113
|
+
|
|
114
|
+
Collection captures the trusted output tree as it exists at task completion.
|
|
115
|
+
Pre-existing files can be included. Avoid concurrent writers while Runtime
|
|
116
|
+
collects the files; collection does not provide an atomic tree snapshot or
|
|
117
|
+
prove which invocation created them. Later source changes do not alter the
|
|
118
|
+
retained copies.
|
|
119
|
+
|
|
120
|
+
Output roots must be canonical relative paths inside the Robot package.
|
|
121
|
+
Runtime rejects links, hardlinks, special files, portable-name collisions and
|
|
122
|
+
reserved names such as `env.json` and `__action_server_*`. Limits are 50 MiB per
|
|
123
|
+
file, 500 MiB total, 10,000 entries and depth 32. A collection error marks the
|
|
124
|
+
Run failed and preserves its console and any complete files already retained.
|
|
125
|
+
The selected Robot configuration must fit within 64 KiB.
|
|
126
|
+
|
|
107
127
|
## Documentation
|
|
108
128
|
|
|
109
129
|
Explore our [docs](https://github.com/joshyorko/actions/tree/community/action_server/docs) for extensive documentation.
|
|
@@ -64,9 +64,9 @@ entry_points = \
|
|
|
64
64
|
|
|
65
65
|
setup_kwargs = {
|
|
66
66
|
'name': 'actions-runtime',
|
|
67
|
-
'version': '1.0.
|
|
67
|
+
'version': '1.0.4',
|
|
68
68
|
'description': 'Actions Runtime — serve Python actions through HTTP and MCP',
|
|
69
|
-
'long_description': "# Actions Runtime (Action Server)\n\n`actions-runtime` is the canonical community PyPI distribution for the **Action Server**. It provides the `action-server` command and the `actions.server` module for serving Python functions to AI agents through MCP and OpenAPI.\n\nA `tool` or `action` is a Python function with declared inputs and outputs served by the Action Server. The server also manages the action lifecycle and provides full run traceability.\n\n## 1. Install Action Server\n\nInstall the canonical community distribution:\n\n```sh\npython -m pip install actions-runtime\n```\n\nThis installs the `action-server` command in the active Python environment.\n\n### Standalone release binaries\n\nThe standalone binaries are an alternative compatibility path when a Python environment is not wanted. The 1.0.1 binaries are unsigned and are not publisher-signed or notarized.\n\n#### For macOS (Apple Silicon)\n\n```sh\ncurl -o action-server https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-macos-arm64\nchmod a+x action-server\n```\n\n#### For Windows\n\n```sh\ncurl -o action-server.exe https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-windows64.exe\n\n# Add to PATH or move to a folder that is in PATH\nsetx PATH=%PATH%;%CD%\n```\n\n#### For Linux\n\n```sh\ncurl -o action-server https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-linux64\nchmod a+x action-server\n\n# Add to PATH or move to a folder that is in PATH\nsudo mv action-server /usr/local/bin/\n```\n\n## 2. Run your first MCP tool\n\n```sh\n# Bootstrap a new project using this template.\n# You'll be prompted for the name of the project (directory):\naction-server new\n\n# Start Action Server\ncd my-project\naction-server start\n```\n\n👉 You should now have an Action Server running locally at: [http://localhost:8080](http://localhost:8080), so open that in your browser and the web UI will guide you further.\n\n### MCP compatibility\n\n`/mcp` supports the MCP `2026-07-28` per-request contract through the Python\nMCP SDK v2. Clients use `server/discover` and then send calls without an\n`initialize`/`initialized` exchange or `Mcp-Session-Id`. The legacy `/sse`\nendpoint and initialization/session-era compatibility path are intentionally\nnot provided.\n\n## What do you need in your Action Package\n\nAn `Action Package` is currently defined as a local folder that contains at least one Python file containing an action entry point (a Python function marked with `@action` -decorator from `actions`).\n\nThe `package.yaml` file is required for specifying the Python environment and dependencies for your Action ([RCC](https://github.com/joshyorko/rcc/) will be used to automatically bootstrap it and keep it updated given the `package.yaml` contents).\n\n> Note: the `package.yaml` is optional if the action server is not being used as a standalone (i.e.: if it was pip-installed it can use the same python environment where it's installed).\n\n### Community RCC Fork\n\nThis Action Server uses the **joshyorko/rcc v18.19.3** community fork, which provides:\n- **Faster startup** - no proprietary cloud service calls\n- **Official sources** - downloads micromamba directly from conda-forge instead of Robocorp CDN\n- **Decoupled infrastructure** - works fully offline after initial environment bootstrap\n- **Security hardening** - includes upstream archive extraction and TLS fixes, built with Go 1.25.7\n\nEnvironment caching means subsequent startups are near-instant once the holotree is built.\n\n### Bootstrapping a new Action\n\nStart new projects with:\n\n`action-server new`\n\nNote: the `action-server` executable should be automatically added to your Python installation after `pip install actions-runtime`; if it was not, use `python -m actions.server` instead.\n\nAfter creating the project, it's possible to serve the actions under the current directory with:\n\n`action-server start`\n\nFor example: When running `action-server start`, the action server will scan for existing actions under the current directory, and it'll start serving those.\n\nAfter it's started, it's possible to access the following URLs:\n\n- `/index.html`: UI for the Action Server.\n- `/openapi.json`: Provides the openapi spec for the action server.\n- `/docs`: Provides access to the APIs available in the server and a UI to test it.\n\n## Documentation\n\nExplore our [docs](https://github.com/joshyorko/actions/tree/community/action_server/docs) for extensive documentation.\n\n## Changelog\n\nClean-break Actions Runtime releases and `actions-runtime-*` tags use the\n[Actions Runtime changelog](./docs/ACTIONS_RUNTIME_CHANGELOG.md). The historical\n[Action Server changelog](https://github.com/joshyorko/actions/blob/community/action_server/docs/CHANGELOG.md)\nis retained for the older `action-server-v1.2.x` delivery line.\n\n## Maintainer and attribution\n\nMaintained by Joshua Yorko. Upstream copyright and license attribution is preserved in\n[NOTICE.md](https://github.com/joshyorko/actions/blob/community/NOTICE.md) and\n[LICENSE](https://github.com/joshyorko/actions/blob/community/LICENSE).\n",
|
|
69
|
+
'long_description': "# Actions Runtime (Action Server)\n\n`actions-runtime` is the canonical community PyPI distribution for the **Action Server**. It provides the `action-server` command and the `actions.server` module for serving Python functions to AI agents through MCP and OpenAPI.\n\nA `tool` or `action` is a Python function with declared inputs and outputs served by the Action Server. The server also manages the action lifecycle and provides full run traceability.\n\n## 1. Install Action Server\n\nInstall the canonical community distribution:\n\n```sh\npython -m pip install actions-runtime\n```\n\nThis installs the `action-server` command in the active Python environment.\n\n### Standalone release binaries\n\nThe standalone binaries are an alternative compatibility path when a Python environment is not wanted. The 1.0.1 binaries are unsigned and are not publisher-signed or notarized.\n\n#### For macOS (Apple Silicon)\n\n```sh\ncurl -o action-server https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-macos-arm64\nchmod a+x action-server\n```\n\n#### For Windows\n\n```sh\ncurl -o action-server.exe https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-windows64.exe\n\n# Add to PATH or move to a folder that is in PATH\nsetx PATH=%PATH%;%CD%\n```\n\n#### For Linux\n\n```sh\ncurl -o action-server https://github.com/joshyorko/actions/releases/download/actions-runtime-1.0.1/actions-runtime-1.0.1-linux64\nchmod a+x action-server\n\n# Add to PATH or move to a folder that is in PATH\nsudo mv action-server /usr/local/bin/\n```\n\n## 2. Run your first MCP tool\n\n```sh\n# Bootstrap a new project using this template.\n# You'll be prompted for the name of the project (directory):\naction-server new\n\n# Start Action Server\ncd my-project\naction-server start\n```\n\n👉 You should now have an Action Server running locally at: [http://localhost:8080](http://localhost:8080), so open that in your browser and the web UI will guide you further.\n\n### MCP compatibility\n\n`/mcp` supports the MCP `2026-07-28` per-request contract through the Python\nMCP SDK v2. Clients use `server/discover` and then send calls without an\n`initialize`/`initialized` exchange or `Mcp-Session-Id`. The legacy `/sse`\nendpoint and initialization/session-era compatibility path are intentionally\nnot provided.\n\n## What do you need in your Action Package\n\nAn `Action Package` is currently defined as a local folder that contains at least one Python file containing an action entry point (a Python function marked with `@action` -decorator from `actions`).\n\nThe `package.yaml` file is required for specifying the Python environment and dependencies for your Action ([RCC](https://github.com/joshyorko/rcc/) will be used to automatically bootstrap it and keep it updated given the `package.yaml` contents).\n\n> Note: the `package.yaml` is optional if the action server is not being used as a standalone (i.e.: if it was pip-installed it can use the same python environment where it's installed).\n\n### Community RCC Fork\n\nThis Action Server uses the **joshyorko/rcc v18.19.3** community fork, which provides:\n- **Faster startup** - no proprietary cloud service calls\n- **Official sources** - downloads micromamba directly from conda-forge instead of Robocorp CDN\n- **Decoupled infrastructure** - works fully offline after initial environment bootstrap\n- **Security hardening** - includes upstream archive extraction and TLS fixes, built with Go 1.25.7\n\nEnvironment caching means subsequent startups are near-instant once the holotree is built.\n\n### Bootstrapping a new Action\n\nStart new projects with:\n\n`action-server new`\n\nNote: the `action-server` executable should be automatically added to your Python installation after `pip install actions-runtime`; if it was not, use `python -m actions.server` instead.\n\nAfter creating the project, it's possible to serve the actions under the current directory with:\n\n`action-server start`\n\nFor example: When running `action-server start`, the action server will scan for existing actions under the current directory, and it'll start serving those.\n\nAfter it's started, it's possible to access the following URLs:\n\n- `/index.html`: UI for the Action Server.\n- `/openapi.json`: Provides the openapi spec for the action server.\n- `/docs`: Provides access to the APIs available in the server and a UI to test it.\n\n## Robot run artifacts\n\nAfter a Robot task exits, Runtime retains regular files from its configured\n`artifactsDir`, or `output` when absent, including failure diagnostics. List\nthem at `/api/runs/{run_id}/artifacts` and download them through the existing\nartifact endpoints with your configured Runtime credentials.\n\nCollection captures the trusted output tree as it exists at task completion.\nPre-existing files can be included. Avoid concurrent writers while Runtime\ncollects the files; collection does not provide an atomic tree snapshot or\nprove which invocation created them. Later source changes do not alter the\nretained copies.\n\nOutput roots must be canonical relative paths inside the Robot package.\nRuntime rejects links, hardlinks, special files, portable-name collisions and\nreserved names such as `env.json` and `__action_server_*`. Limits are 50 MiB per\nfile, 500 MiB total, 10,000 entries and depth 32. A collection error marks the\nRun failed and preserves its console and any complete files already retained.\nThe selected Robot configuration must fit within 64 KiB.\n\n## Documentation\n\nExplore our [docs](https://github.com/joshyorko/actions/tree/community/action_server/docs) for extensive documentation.\n\n## Changelog\n\nClean-break Actions Runtime releases and `actions-runtime-*` tags use the\n[Actions Runtime changelog](./docs/ACTIONS_RUNTIME_CHANGELOG.md). The historical\n[Action Server changelog](https://github.com/joshyorko/actions/blob/community/action_server/docs/CHANGELOG.md)\nis retained for the older `action-server-v1.2.x` delivery line.\n\n## Maintainer and attribution\n\nMaintained by Joshua Yorko. Upstream copyright and license attribution is preserved in\n[NOTICE.md](https://github.com/joshyorko/actions/blob/community/NOTICE.md) and\n[LICENSE](https://github.com/joshyorko/actions/blob/community/LICENSE).\n",
|
|
70
70
|
'author': 'Joshua Yorko',
|
|
71
71
|
'author_email': 'None',
|
|
72
72
|
'maintainer': 'Joshua Yorko',
|
|
@@ -26,6 +26,7 @@ from actions.server._portable_paths import (
|
|
|
26
26
|
portable_path_collision_key,
|
|
27
27
|
)
|
|
28
28
|
from actions.server._rcc import get_rcc_robots
|
|
29
|
+
from actions.server._robot_inputs import robot_task_environment, validate_robot_inputs
|
|
29
30
|
from actions.server._runs_state_cache import get_global_runs_state
|
|
30
31
|
from actions.server._settings import get_settings
|
|
31
32
|
|
|
@@ -1049,6 +1050,13 @@ async def run_robot_task(
|
|
|
1049
1050
|
|
|
1050
1051
|
from actions.server._models import RUN_ID_COUNTER, Counter, Run, RunStatus, get_db
|
|
1051
1052
|
|
|
1053
|
+
try:
|
|
1054
|
+
task_inputs = validate_robot_inputs(
|
|
1055
|
+
Path(request.robot_package_path), request.task_name, request.inputs
|
|
1056
|
+
)
|
|
1057
|
+
except ValueError as error:
|
|
1058
|
+
raise fastapi.HTTPException(status_code=422, detail=str(error)) from None
|
|
1059
|
+
|
|
1052
1060
|
# Get settings for paths
|
|
1053
1061
|
settings = get_settings()
|
|
1054
1062
|
db = get_db()
|
|
@@ -1214,9 +1222,9 @@ async def run_robot_task(
|
|
|
1214
1222
|
"--silent", # Reduce verbose RCC output
|
|
1215
1223
|
]
|
|
1216
1224
|
|
|
1217
|
-
#
|
|
1225
|
+
# Only declared task inputs enter RCC's task environment.
|
|
1218
1226
|
# RCC's -e flag expects a JSON file path, not inline VAR:value syntax
|
|
1219
|
-
env_vars =
|
|
1227
|
+
env_vars = dict(task_inputs)
|
|
1220
1228
|
|
|
1221
1229
|
# RC_WORKITEM_DB_PATH: path to shared SQLite database for work items
|
|
1222
1230
|
workitems_db_path = str(settings.datadir / "workitems.db")
|
|
@@ -1226,13 +1234,6 @@ async def run_robot_task(
|
|
|
1226
1234
|
if workitem_queue:
|
|
1227
1235
|
env_vars["RC_WORKITEM_QUEUE_NAME"] = workitem_queue
|
|
1228
1236
|
|
|
1229
|
-
# Write env vars to a temp JSON file if we have any
|
|
1230
|
-
env_file = None
|
|
1231
|
-
if env_vars:
|
|
1232
|
-
env_file = artifacts_dir / "env.json"
|
|
1233
|
-
env_file.write_text(json.dumps(env_vars, indent=2))
|
|
1234
|
-
rcc_args.extend(["-e", str(env_file)])
|
|
1235
|
-
|
|
1236
1237
|
# Only add --space if we have an env hash (for pre-built environments)
|
|
1237
1238
|
if run.robot_env_hash:
|
|
1238
1239
|
rcc_args.extend(["--space", run.robot_env_hash])
|
|
@@ -1244,12 +1245,14 @@ async def run_robot_task(
|
|
|
1244
1245
|
output_file = artifacts_dir / "__action_server_output.txt"
|
|
1245
1246
|
|
|
1246
1247
|
# Run the robot task
|
|
1247
|
-
|
|
1248
|
-
rcc_args,
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1248
|
+
with robot_task_environment(env_vars) as env_file:
|
|
1249
|
+
rcc_args.extend(["-e", str(env_file)])
|
|
1250
|
+
result = rcc._run_rcc(
|
|
1251
|
+
rcc_args,
|
|
1252
|
+
timeout=3600, # 1 hour timeout
|
|
1253
|
+
cwd=str(package_path),
|
|
1254
|
+
show_interactive_output=True,
|
|
1255
|
+
)
|
|
1253
1256
|
|
|
1254
1257
|
# Save output to file for logs page
|
|
1255
1258
|
try:
|
|
@@ -1260,28 +1263,16 @@ async def run_robot_task(
|
|
|
1260
1263
|
except Exception as write_err:
|
|
1261
1264
|
log.warning(f"Failed to write robot output file: {write_err}")
|
|
1262
1265
|
|
|
1263
|
-
#
|
|
1264
|
-
#
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
except Exception as copy_err:
|
|
1274
|
-
log.warning(f"Failed to copy {robolog_file.name}: {copy_err}")
|
|
1275
|
-
|
|
1276
|
-
# Also copy Robot Framework output files if present
|
|
1277
|
-
for output_name in ["log.html", "output.xml", "report.html"]:
|
|
1278
|
-
src_file = robot_output_dir / output_name
|
|
1279
|
-
if src_file.exists():
|
|
1280
|
-
try:
|
|
1281
|
-
shutil.copy2(src_file, artifacts_dir / output_name)
|
|
1282
|
-
log.debug(f"Copied {output_name} to artifacts")
|
|
1283
|
-
except Exception as copy_err:
|
|
1284
|
-
log.warning(f"Failed to copy {output_name}: {copy_err}")
|
|
1266
|
+
# Retain workload files and failure diagnostics before publishing
|
|
1267
|
+
# terminal status. The collector uses the configured storage key.
|
|
1268
|
+
from actions.server._robot_artifacts import collect_robot_artifacts
|
|
1269
|
+
|
|
1270
|
+
collect_robot_artifacts(
|
|
1271
|
+
package_path,
|
|
1272
|
+
robot_config_file,
|
|
1273
|
+
get_artifact_storage(),
|
|
1274
|
+
run.relative_artifacts_dir,
|
|
1275
|
+
)
|
|
1285
1276
|
|
|
1286
1277
|
if result.success:
|
|
1287
1278
|
run.status = RunStatus.PASSED
|
|
@@ -9,6 +9,8 @@ from typing import Dict, List, Optional, Tuple
|
|
|
9
9
|
import yaml
|
|
10
10
|
from pydantic import BaseModel, Field
|
|
11
11
|
|
|
12
|
+
from actions.server._robot_inputs import robot_task_environment, validate_robot_inputs
|
|
13
|
+
|
|
12
14
|
logger = logging.getLogger(__name__)
|
|
13
15
|
|
|
14
16
|
|
|
@@ -252,8 +254,7 @@ def run_robot_task(
|
|
|
252
254
|
secrets_file: Optional[Path] = None, # For passing secrets if needed
|
|
253
255
|
) -> Tuple[str, str, int]:
|
|
254
256
|
"""
|
|
255
|
-
Executes
|
|
256
|
-
(potentially with --json inputs if applicable).
|
|
257
|
+
Executes RCC with inputs declared in the selected task's inputEnvironment list.
|
|
257
258
|
Captures and returns stdout, stderr, and the exit code of the subprocess.
|
|
258
259
|
Handles potential errors during subprocess execution.
|
|
259
260
|
"""
|
|
@@ -268,30 +269,11 @@ def run_robot_task(
|
|
|
268
269
|
|
|
269
270
|
args = ["task", "run", "--robot", rcc_target_path_str, "--task", task_name]
|
|
270
271
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
# that might be configured through `holotree variables` or `robot.yaml` `env` section.
|
|
277
|
-
# If direct input passing is needed, it would typically involve setting environment variables
|
|
278
|
-
# for the subprocess.
|
|
279
|
-
|
|
280
|
-
_env_vars = os.environ.copy() # Reserved for future use in subprocess calls
|
|
281
|
-
if inputs:
|
|
282
|
-
# This is a simplistic way; robots might expect specific env var formats
|
|
283
|
-
# or a work-items.json file. For now, just logging.
|
|
284
|
-
logger.info(
|
|
285
|
-
f"Inputs provided for task {task_name}: {inputs}. These are not directly passed via CLI args by this function yet."
|
|
286
|
-
)
|
|
287
|
-
# Example of setting env vars if needed:
|
|
288
|
-
# for key, value in inputs.items():
|
|
289
|
-
# env_vars[f"RC_INPUT_{key.upper()}"] = str(value)
|
|
290
|
-
|
|
291
|
-
# TODO: Explore how to pass `inputs` to `rcc task run`.
|
|
292
|
-
# This might involve creating a temporary input work-item JSON and passing its path,
|
|
293
|
-
# or setting environment variables if the robot is designed to pick them up.
|
|
294
|
-
# For now, `inputs` are not directly used in the command.
|
|
272
|
+
try:
|
|
273
|
+
task_inputs = validate_robot_inputs(robot_package_path, task_name, inputs)
|
|
274
|
+
except ValueError as error:
|
|
275
|
+
logger.warning("Invalid Robot task inputs: %s", error)
|
|
276
|
+
return "", str(error), -1
|
|
295
277
|
|
|
296
278
|
if run_id:
|
|
297
279
|
# RCC can associate logs with a run ID if the environment is set up for it
|
|
@@ -307,9 +289,11 @@ def run_robot_task(
|
|
|
307
289
|
|
|
308
290
|
# `_run_rcc_command` uses `cwd=None` by default, which means it runs from the action server's CWD.
|
|
309
291
|
# This should be fine as `--robot` takes an absolute or relative path to the robot.
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
292
|
+
if task_inputs:
|
|
293
|
+
with robot_task_environment(task_inputs) as env_file:
|
|
294
|
+
stdout, stderr, exit_code = _run_rcc_command([*args, "-e", str(env_file)])
|
|
295
|
+
else:
|
|
296
|
+
stdout, stderr, exit_code = _run_rcc_command(args)
|
|
313
297
|
|
|
314
298
|
if exit_code != 0:
|
|
315
299
|
logger.error(
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"""Bounded completion-time snapshots of trusted Robot artifact directories.
|
|
2
|
+
|
|
3
|
+
The package and its ancestor namespaces must remain under trusted control.
|
|
4
|
+
This is neither an atomic tree snapshot nor proof that this invocation created
|
|
5
|
+
each source file. Each admitted file becomes an independent durable Run copy.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
import stat
|
|
12
|
+
from pathlib import Path, PurePosixPath
|
|
13
|
+
|
|
14
|
+
import yaml
|
|
15
|
+
|
|
16
|
+
from ._artifact_storage import FilesystemArtifactStorage
|
|
17
|
+
from ._portable_paths import is_portable_path_component, portable_path_collision_key
|
|
18
|
+
|
|
19
|
+
CHUNK_BYTES = 64 * 1024
|
|
20
|
+
MAX_FILE_BYTES = 50 * 1024 * 1024
|
|
21
|
+
MAX_TOTAL_BYTES = 500 * 1024 * 1024
|
|
22
|
+
MAX_ENTRIES = 10_000
|
|
23
|
+
MAX_DEPTH = 32
|
|
24
|
+
MAX_CONFIG_BYTES = 64 * 1024
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class RobotArtifactError(ValueError):
|
|
28
|
+
"""The Robot artifact snapshot could not be collected safely."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _identity(info: os.stat_result) -> tuple[int, ...]:
|
|
32
|
+
return (
|
|
33
|
+
info.st_dev,
|
|
34
|
+
info.st_ino,
|
|
35
|
+
info.st_mode,
|
|
36
|
+
info.st_nlink,
|
|
37
|
+
info.st_size,
|
|
38
|
+
info.st_mtime_ns,
|
|
39
|
+
info.st_ctime_ns,
|
|
40
|
+
getattr(info, "st_birthtime_ns", 0),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _opened_identity(info: os.stat_result) -> tuple[int, ...]:
|
|
45
|
+
# CPython on Windows may expose creation time through lstat's ctime and
|
|
46
|
+
# change time through fstat's ctime (python/cpython#157671). Birthtime is
|
|
47
|
+
# comparable across both APIs. Keep full ctime checks within each API.
|
|
48
|
+
return _identity(info)[:6] + (getattr(info, "st_birthtime_ns", info.st_ctime_ns),)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _checked_stat(path: Path) -> os.stat_result:
|
|
52
|
+
info = path.lstat()
|
|
53
|
+
if stat.S_ISLNK(info.st_mode) or (
|
|
54
|
+
getattr(info, "st_file_attributes", 0)
|
|
55
|
+
& getattr(stat, "FILE_ATTRIBUTE_REPARSE_POINT", 1024)
|
|
56
|
+
):
|
|
57
|
+
raise RobotArtifactError("Robot artifacts contain a link or reparse point")
|
|
58
|
+
return info
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _checked_ancestors(path: Path) -> None:
|
|
62
|
+
for ancestor in (*reversed(path.parents), path):
|
|
63
|
+
if not stat.S_ISDIR(_checked_stat(ancestor).st_mode):
|
|
64
|
+
raise RobotArtifactError("Robot artifact parent is not a directory")
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _output_root(package: Path, config: Path) -> Path:
|
|
68
|
+
if config.parent != package:
|
|
69
|
+
raise RobotArtifactError("Robot configuration is outside its package")
|
|
70
|
+
# Trusted administrator-owned ancestor aliases, such as macOS /var, may
|
|
71
|
+
# spell the same package differently. Keep the package entry itself unlinked.
|
|
72
|
+
if not stat.S_ISDIR(_checked_stat(package).st_mode):
|
|
73
|
+
raise RobotArtifactError("Robot package is not a directory")
|
|
74
|
+
package = package.resolve(strict=True)
|
|
75
|
+
_checked_ancestors(package)
|
|
76
|
+
config = package / config.name
|
|
77
|
+
info = _checked_stat(config)
|
|
78
|
+
if not stat.S_ISREG(info.st_mode) or info.st_nlink != 1:
|
|
79
|
+
raise RobotArtifactError("Robot configuration is not a regular file")
|
|
80
|
+
with config.open("rb") as stream:
|
|
81
|
+
content = stream.read(MAX_CONFIG_BYTES + 1)
|
|
82
|
+
if len(content) > MAX_CONFIG_BYTES:
|
|
83
|
+
raise RobotArtifactError("Robot configuration exceeds the byte limit")
|
|
84
|
+
data = yaml.safe_load(content)
|
|
85
|
+
if not isinstance(data, dict):
|
|
86
|
+
raise RobotArtifactError("Robot configuration must be a mapping")
|
|
87
|
+
value = data.get("artifactsDir", "output")
|
|
88
|
+
if not isinstance(value, str) or not value or "\\" in value:
|
|
89
|
+
raise RobotArtifactError("Invalid Robot artifactsDir")
|
|
90
|
+
key = PurePosixPath(value)
|
|
91
|
+
if (
|
|
92
|
+
key.is_absolute()
|
|
93
|
+
or key.as_posix() != value
|
|
94
|
+
or any(
|
|
95
|
+
part in {".", ".."} or not is_portable_path_component(part)
|
|
96
|
+
for part in key.parts
|
|
97
|
+
)
|
|
98
|
+
or not key.parts
|
|
99
|
+
):
|
|
100
|
+
raise RobotArtifactError("Robot artifactsDir must be a canonical package path")
|
|
101
|
+
return package.joinpath(*key.parts)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _artifact_name(name: str) -> None:
|
|
105
|
+
if (
|
|
106
|
+
not is_portable_path_component(name)
|
|
107
|
+
or "\\" in name
|
|
108
|
+
or name in {".", ".."}
|
|
109
|
+
or name.casefold() == "env.json"
|
|
110
|
+
or name.casefold().startswith(
|
|
111
|
+
("__action_server_", ".action-server-", ".artifact-")
|
|
112
|
+
)
|
|
113
|
+
):
|
|
114
|
+
raise RobotArtifactError("Unsafe or reserved Robot artifact name")
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def _inventory(root: Path) -> list[tuple[Path, os.stat_result]]:
|
|
118
|
+
files: list[tuple[Path, os.stat_result]] = []
|
|
119
|
+
directories = [(root, _checked_stat(root))]
|
|
120
|
+
pending = [(root, 0)]
|
|
121
|
+
entries = 0
|
|
122
|
+
declared_bytes = 0
|
|
123
|
+
while pending:
|
|
124
|
+
directory, depth = pending.pop()
|
|
125
|
+
names: set[str] = set()
|
|
126
|
+
with os.scandir(directory) as children:
|
|
127
|
+
for child in children:
|
|
128
|
+
entries += 1
|
|
129
|
+
if entries > MAX_ENTRIES or depth + 1 > MAX_DEPTH:
|
|
130
|
+
raise RobotArtifactError(
|
|
131
|
+
"Robot artifact entry/depth limit exceeded"
|
|
132
|
+
)
|
|
133
|
+
_artifact_name(child.name)
|
|
134
|
+
collision_key = portable_path_collision_key(child.name)
|
|
135
|
+
if collision_key in names:
|
|
136
|
+
raise RobotArtifactError("Robot artifact names collide")
|
|
137
|
+
names.add(collision_key)
|
|
138
|
+
path = directory / child.name
|
|
139
|
+
info = _checked_stat(path)
|
|
140
|
+
if stat.S_ISDIR(info.st_mode):
|
|
141
|
+
directories.append((path, info))
|
|
142
|
+
pending.append((path, depth + 1))
|
|
143
|
+
elif stat.S_ISREG(info.st_mode) and info.st_nlink == 1:
|
|
144
|
+
declared_bytes += info.st_size
|
|
145
|
+
if (
|
|
146
|
+
not 0 <= info.st_size <= MAX_FILE_BYTES
|
|
147
|
+
or declared_bytes > MAX_TOTAL_BYTES
|
|
148
|
+
):
|
|
149
|
+
raise RobotArtifactError("Robot artifact byte limit exceeded")
|
|
150
|
+
files.append((path, info))
|
|
151
|
+
else:
|
|
152
|
+
raise RobotArtifactError(
|
|
153
|
+
"Robot artifact is not a single-link regular file"
|
|
154
|
+
)
|
|
155
|
+
for directory, before in directories:
|
|
156
|
+
if _identity(_checked_stat(directory)) != _identity(before):
|
|
157
|
+
raise RobotArtifactError(
|
|
158
|
+
"Robot artifact directory changed during collection"
|
|
159
|
+
)
|
|
160
|
+
return sorted(files, key=lambda item: item[0].relative_to(root).as_posix())
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def _read_file(path: Path, expected: os.stat_result, remaining: int) -> bytes:
|
|
164
|
+
_checked_ancestors(path.parent)
|
|
165
|
+
if _identity(_checked_stat(path)) != _identity(expected):
|
|
166
|
+
raise RobotArtifactError("Robot artifact changed before reading")
|
|
167
|
+
flags = os.O_RDONLY | getattr(os, "O_BINARY", 0)
|
|
168
|
+
for flag in ("O_NOFOLLOW", "O_NONBLOCK", "O_CLOEXEC"):
|
|
169
|
+
flags |= getattr(os, flag, 0)
|
|
170
|
+
descriptor = os.open(path, flags)
|
|
171
|
+
try:
|
|
172
|
+
before = os.fstat(descriptor)
|
|
173
|
+
if _opened_identity(before) != _opened_identity(expected):
|
|
174
|
+
raise RobotArtifactError("Robot artifact changed before opening")
|
|
175
|
+
content = bytearray()
|
|
176
|
+
limit = min(MAX_FILE_BYTES, remaining)
|
|
177
|
+
while True:
|
|
178
|
+
chunk = os.read(descriptor, min(CHUNK_BYTES, limit - len(content) + 1))
|
|
179
|
+
if not chunk:
|
|
180
|
+
break
|
|
181
|
+
content.extend(chunk)
|
|
182
|
+
if len(content) > limit:
|
|
183
|
+
raise RobotArtifactError("Robot artifact actual byte limit exceeded")
|
|
184
|
+
if (
|
|
185
|
+
len(content) != before.st_size
|
|
186
|
+
or _identity(os.fstat(descriptor)) != _identity(before)
|
|
187
|
+
or _identity(_checked_stat(path)) != _identity(expected)
|
|
188
|
+
):
|
|
189
|
+
raise RobotArtifactError("Robot artifact changed during reading")
|
|
190
|
+
_checked_ancestors(path.parent)
|
|
191
|
+
return bytes(content)
|
|
192
|
+
finally:
|
|
193
|
+
os.close(descriptor)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def collect_robot_artifacts(
|
|
197
|
+
package_path: Path,
|
|
198
|
+
config_path: Path,
|
|
199
|
+
storage: FilesystemArtifactStorage,
|
|
200
|
+
relative_artifacts_dir: str,
|
|
201
|
+
) -> None:
|
|
202
|
+
"""Copy the completed task's configured tree using existing Run storage.
|
|
203
|
+
|
|
204
|
+
Valid files published before a later read/storage failure remain available.
|
|
205
|
+
Source namespaces must stay trusted; pre-existing files can be included.
|
|
206
|
+
"""
|
|
207
|
+
try:
|
|
208
|
+
root = _output_root(package_path.absolute(), config_path.absolute())
|
|
209
|
+
try:
|
|
210
|
+
_checked_ancestors(root)
|
|
211
|
+
except FileNotFoundError:
|
|
212
|
+
return
|
|
213
|
+
total = 0
|
|
214
|
+
for path, info in _inventory(root):
|
|
215
|
+
content = _read_file(path, info, MAX_TOTAL_BYTES - total)
|
|
216
|
+
storage.write_bytes(
|
|
217
|
+
relative_artifacts_dir, path.relative_to(root).as_posix(), content
|
|
218
|
+
)
|
|
219
|
+
total += len(content)
|
|
220
|
+
except RobotArtifactError:
|
|
221
|
+
raise
|
|
222
|
+
except (OSError, ValueError, yaml.YAMLError):
|
|
223
|
+
# YAML parser errors can quote configuration values; filesystem errors
|
|
224
|
+
# can contain private paths. API logging must not expose either cause.
|
|
225
|
+
raise RobotArtifactError("Robot artifact collection failed") from None
|