agenticstar-platform 3.2.3__tar.gz → 3.3.0__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.
- agenticstar_platform-3.3.0/.gitignore +270 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/PKG-INFO +22 -2
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/README.md +21 -1
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/__init__.py +1 -1
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/azure.py +15 -2
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/base.py +3 -1
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/gcs.py +17 -1
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/s3.py +27 -6
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/pyproject.toml +1 -1
- agenticstar_platform-3.3.0/tests/storage/test_download_version.py +225 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/LICENSE +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/_config_utils.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/ROW_HASH_SPEC.md +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/action_audit.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/guardrail_alerts.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/row_hash_fixture.json +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/client.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/config.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/exceptions.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/models.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/common/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/common/context_manager.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/common/secrets.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/common/validation.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/api_manager.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/completion_report.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/config.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/config_access.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/data_access.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/execution_access.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/factory.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/manager.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/pod_runtime.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/started_fence.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/telemetry_access.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/db/wire_types.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/events/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/events/emitter.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/events/handlers.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/events/models.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/events/types.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/README.md +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/__main__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/checks.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/docker-compose.yml +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/doctor.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/lab_config.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/offline_embedding.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/run_lab.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/seed.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/memory/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/memory/semantic.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/metering/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/metering/meter.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/internal_operations.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/model.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/base.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/embedding.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/qdrant_manager.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/runner.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/runtime.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/aws.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/azure.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/base.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/content_safety_validator.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/factory.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/security/gcp.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/paths.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/canonical.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/child.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/context.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/envelope.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/errors.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/files.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/runner.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/runtime_client.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/schema.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/testing.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/docs/agenticstar_platform.html +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/docs/examples/workflow_mock_send_agent.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/docs/examples/workflow_reply_agent.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/docs/index.html +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/docs/search.js +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/audit/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/audit/test_action_audit_30.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/audit/test_row_hash_fixture.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/auth/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/auth/test_auth_type_bearer_only.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/auth/test_get_user_path_encoding.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/auth/test_mcp_tokens_expiry.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/auth/test_mcp_tokens_rejected.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_api_manager_drain_and_headers.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_completion_report.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_data_access_identifier_validation.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_manager_execute_query_dispatch.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_telemetry_tools_used_contract.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/db/test_wire_param_types.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/events/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/events/test_handler_type_routing.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/events/test_notify_token.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/lab/test_lab_contract.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/lab/test_lab_docker.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/memory/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/memory/test_semantic_converter_base_url.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/metering/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/metering/test_meter_cache_split.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/test_a2a_connection_rule.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/test_decision_layer.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/test_evaluate_decision_table.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/test_policy_model.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/policy/test_scoped_forbid.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/rag/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/rag/test_embedding_dimensions.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/rag/test_qdrant_error_hierarchy.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/rag/test_qdrant_get_statistics.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/runner/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_contract.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_db_fallback.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_started_fence.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/security/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/security/test_azure_connect_retry.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/security/test_azure_prompt_shield_documents.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/security/test_factory_vertex_ai_safety.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/security/test_gcp_vertex_ai_safety.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/storage/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/storage/test_azure_credential.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/storage/test_s3_credential.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/test_lazy_import_contract.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/test_readme_quickstart.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/test_storage_provider_extra_contract.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/__init__.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/agent_fixtures.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/test_child_failure_summary.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_incomplete.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_runner.py +0 -0
- {agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_testing.py +0 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
### Project-specific ###
|
|
2
|
+
# Logs
|
|
3
|
+
logs/
|
|
4
|
+
|
|
5
|
+
# Data
|
|
6
|
+
data/
|
|
7
|
+
|
|
8
|
+
# Workspace
|
|
9
|
+
workspace/
|
|
10
|
+
|
|
11
|
+
# Memo
|
|
12
|
+
memo/
|
|
13
|
+
|
|
14
|
+
# Instructions (sensitive configuration)
|
|
15
|
+
instructions/
|
|
16
|
+
|
|
17
|
+
### CLI Frontend (Go) ###
|
|
18
|
+
# Go binaries
|
|
19
|
+
cli-frontend/agenticai
|
|
20
|
+
cli-frontend/agenticai-*
|
|
21
|
+
cli-frontend/*.exe
|
|
22
|
+
|
|
23
|
+
# Python backend (compiled for development/debug)
|
|
24
|
+
cli-frontend/python-backend/
|
|
25
|
+
|
|
26
|
+
# Claude Code MCP (downloaded/configured)
|
|
27
|
+
cli-frontend/claude-code/
|
|
28
|
+
cli-frontend/claude_code_config.py
|
|
29
|
+
|
|
30
|
+
# Bundled tools (Playwright & Marp)
|
|
31
|
+
cli-frontend/bundled-tools/
|
|
32
|
+
cli-frontend/bundled_tools_config.py
|
|
33
|
+
|
|
34
|
+
# Distribution packages
|
|
35
|
+
cli-frontend/dist-package/
|
|
36
|
+
cli-frontend/releases/*.tar.gz
|
|
37
|
+
cli-frontend/releases/*.zip
|
|
38
|
+
|
|
39
|
+
# Legacy Node/TypeScript (removed but keep for safety)
|
|
40
|
+
cli-frontend/node_modules/
|
|
41
|
+
cli-frontend/package.json
|
|
42
|
+
cli-frontend/package-lock.json
|
|
43
|
+
cli-frontend/dist/
|
|
44
|
+
cli-frontend/build/
|
|
45
|
+
|
|
46
|
+
# Test artifacts
|
|
47
|
+
cli-frontend/*.test
|
|
48
|
+
cli-frontend/*.out
|
|
49
|
+
cli-frontend/coverage/
|
|
50
|
+
|
|
51
|
+
# Temporary files
|
|
52
|
+
cli-frontend/.tmp/
|
|
53
|
+
|
|
54
|
+
### Python ###
|
|
55
|
+
# Byte-compiled / optimized / DLL files
|
|
56
|
+
__pycache__/
|
|
57
|
+
*.py[cod]
|
|
58
|
+
*$py.class
|
|
59
|
+
|
|
60
|
+
# C extensions
|
|
61
|
+
*.so
|
|
62
|
+
|
|
63
|
+
# Distribution / packaging
|
|
64
|
+
.Python
|
|
65
|
+
build/
|
|
66
|
+
develop-eggs/
|
|
67
|
+
dist/
|
|
68
|
+
downloads/
|
|
69
|
+
eggs/
|
|
70
|
+
.eggs/
|
|
71
|
+
lib/
|
|
72
|
+
lib64/
|
|
73
|
+
parts/
|
|
74
|
+
sdist/
|
|
75
|
+
var/
|
|
76
|
+
wheels/
|
|
77
|
+
share/python-wheels/
|
|
78
|
+
*.egg-info/
|
|
79
|
+
.installed.cfg
|
|
80
|
+
*.egg
|
|
81
|
+
MANIFEST
|
|
82
|
+
|
|
83
|
+
# PyInstaller
|
|
84
|
+
# Usually these files are written by a python script from a template
|
|
85
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
86
|
+
*.manifest
|
|
87
|
+
*.spec
|
|
88
|
+
|
|
89
|
+
# Installer logs
|
|
90
|
+
pip-log.txt
|
|
91
|
+
pip-delete-this-directory.txt
|
|
92
|
+
|
|
93
|
+
# Unit test / coverage reports
|
|
94
|
+
htmlcov/
|
|
95
|
+
.tox/
|
|
96
|
+
.nox/
|
|
97
|
+
.coverage
|
|
98
|
+
.coverage.*
|
|
99
|
+
.cache
|
|
100
|
+
nosetests.xml
|
|
101
|
+
coverage.xml
|
|
102
|
+
*.cover
|
|
103
|
+
*.py,cover
|
|
104
|
+
.hypothesis/
|
|
105
|
+
.pytest_cache/
|
|
106
|
+
cover/
|
|
107
|
+
|
|
108
|
+
# Translations
|
|
109
|
+
*.mo
|
|
110
|
+
*.pot
|
|
111
|
+
|
|
112
|
+
# Django stuff:
|
|
113
|
+
*.log
|
|
114
|
+
local_settings.py
|
|
115
|
+
db.sqlite3
|
|
116
|
+
db.sqlite3-journal
|
|
117
|
+
|
|
118
|
+
# Flask stuff:
|
|
119
|
+
instance/
|
|
120
|
+
.webassets-cache
|
|
121
|
+
|
|
122
|
+
# Scrapy stuff:
|
|
123
|
+
.scrapy
|
|
124
|
+
|
|
125
|
+
# Sphinx documentation
|
|
126
|
+
docs/_build/
|
|
127
|
+
|
|
128
|
+
# PyBuilder
|
|
129
|
+
.pybuilder/
|
|
130
|
+
target/
|
|
131
|
+
|
|
132
|
+
# Jupyter Notebook
|
|
133
|
+
.ipynb_checkpoints
|
|
134
|
+
|
|
135
|
+
# IPython
|
|
136
|
+
profile_default/
|
|
137
|
+
ipython_config.py
|
|
138
|
+
|
|
139
|
+
# pyenv
|
|
140
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
141
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
142
|
+
# .python-version
|
|
143
|
+
|
|
144
|
+
# pipenv
|
|
145
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
146
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
147
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
148
|
+
# install all needed dependencies.
|
|
149
|
+
#Pipfile.lock
|
|
150
|
+
|
|
151
|
+
# UV
|
|
152
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
153
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
154
|
+
# commonly ignored for libraries.
|
|
155
|
+
#uv.lock
|
|
156
|
+
|
|
157
|
+
# poetry
|
|
158
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
159
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
160
|
+
# commonly ignored for libraries.
|
|
161
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
162
|
+
#poetry.lock
|
|
163
|
+
|
|
164
|
+
# pdm
|
|
165
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
166
|
+
#pdm.lock
|
|
167
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
168
|
+
# in version control.
|
|
169
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
170
|
+
.pdm.toml
|
|
171
|
+
.pdm-python
|
|
172
|
+
.pdm-build/
|
|
173
|
+
|
|
174
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
175
|
+
__pypackages__/
|
|
176
|
+
|
|
177
|
+
# Celery stuff
|
|
178
|
+
celerybeat-schedule
|
|
179
|
+
celerybeat.pid
|
|
180
|
+
|
|
181
|
+
# SageMath parsed files
|
|
182
|
+
*.sage.py
|
|
183
|
+
|
|
184
|
+
# Environments
|
|
185
|
+
.env
|
|
186
|
+
.env.docker
|
|
187
|
+
.venv
|
|
188
|
+
env/
|
|
189
|
+
venv/
|
|
190
|
+
ENV/
|
|
191
|
+
env.bak/
|
|
192
|
+
venv.bak/
|
|
193
|
+
config.toml
|
|
194
|
+
|
|
195
|
+
# Claude configuration
|
|
196
|
+
.claude/
|
|
197
|
+
CLAUDE.local.md
|
|
198
|
+
|
|
199
|
+
# Spyder project settings
|
|
200
|
+
.spyderproject
|
|
201
|
+
.spyproject
|
|
202
|
+
|
|
203
|
+
# Rope project settings
|
|
204
|
+
.ropeproject
|
|
205
|
+
|
|
206
|
+
# mkdocs documentation
|
|
207
|
+
/site
|
|
208
|
+
|
|
209
|
+
# mypy
|
|
210
|
+
.mypy_cache/
|
|
211
|
+
.dmypy.json
|
|
212
|
+
dmypy.json
|
|
213
|
+
|
|
214
|
+
# Pyre type checker
|
|
215
|
+
.pyre/
|
|
216
|
+
|
|
217
|
+
# pytype static type analyzer
|
|
218
|
+
.pytype/
|
|
219
|
+
|
|
220
|
+
# Cython debug symbols
|
|
221
|
+
cython_debug/
|
|
222
|
+
|
|
223
|
+
# PyCharm
|
|
224
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
225
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
226
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
227
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
228
|
+
.idea/
|
|
229
|
+
|
|
230
|
+
# PyPI configuration file
|
|
231
|
+
.pypirc
|
|
232
|
+
|
|
233
|
+
### Visual Studio Code ###
|
|
234
|
+
.vscode/*
|
|
235
|
+
!.vscode/settings.json
|
|
236
|
+
!.vscode/tasks.json
|
|
237
|
+
!.vscode/launch.json
|
|
238
|
+
!.vscode/extensions.json
|
|
239
|
+
!.vscode/*.code-snippets
|
|
240
|
+
|
|
241
|
+
# Local History for Visual Studio Code
|
|
242
|
+
.history/
|
|
243
|
+
|
|
244
|
+
# Built Visual Studio Code Extensions
|
|
245
|
+
*.vsix
|
|
246
|
+
|
|
247
|
+
# sqlite db
|
|
248
|
+
*.db
|
|
249
|
+
|
|
250
|
+
# OSX
|
|
251
|
+
.DS_Store
|
|
252
|
+
|
|
253
|
+
.vscode/settings.json
|
|
254
|
+
|
|
255
|
+
# Helm
|
|
256
|
+
helm/*/charts/
|
|
257
|
+
helm/*/*.tgz
|
|
258
|
+
|
|
259
|
+
# GAIA benchmark: secrets-containing config (use .sample as template)
|
|
260
|
+
gaia_benchmark/gaia_config.toml
|
|
261
|
+
gaia_benchmark/config_gaia_pod.toml
|
|
262
|
+
gaia_pipeline/.env
|
|
263
|
+
# GAIA benchmark: runtime/dataset artifacts
|
|
264
|
+
gaia_benchmark/data/
|
|
265
|
+
gaia_benchmark/results/
|
|
266
|
+
gaia_benchmark/workspace/
|
|
267
|
+
|
|
268
|
+
# LLM routing override (opt-in). 実 llm.toml は commit / イメージ同梱しない
|
|
269
|
+
# (誤って本番 Pod が direct に落ちる事故防止。配布は mount 経由)。.example はテンプレとして追跡。
|
|
270
|
+
llm.toml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agenticstar-platform
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: AGENTICSTAR Platform SDK - Enterprise AI Agent Infrastructure
|
|
5
5
|
Project-URL: Homepage, https://developers.fd.agenticstar.tm.softbank.jp/
|
|
6
6
|
Project-URL: Documentation, https://developers.fd.agenticstar.tm.softbank.jp/
|
|
@@ -491,6 +491,21 @@ config = S3Config.from_dict({
|
|
|
491
491
|
client = S3StorageClient(config)
|
|
492
492
|
```
|
|
493
493
|
|
|
494
|
+
A specific version (3.3.0): `download_file(object_name, download_path, version_id=...)` downloads that
|
|
495
|
+
version of the object instead of the latest one. The value is the Azure Blob `versionId`, the S3
|
|
496
|
+
`VersionId` or the GCS generation (a number as a string). A version that does not exist, and an empty
|
|
497
|
+
value, fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS). To keep
|
|
498
|
+
the older version when an object is overwritten or deleted, turn on versioning (Azure: blob versioning of
|
|
499
|
+
the storage account; S3 and GCS: versioning of the bucket); versions kept earlier stay readable after it is
|
|
500
|
+
turned off. Without `version_id` the latest version is downloaded, as before.
|
|
501
|
+
|
|
502
|
+
```python
|
|
503
|
+
# S3: pass the VersionId that S3 returned for the object
|
|
504
|
+
result = await client.download_file(
|
|
505
|
+
"users/u1/report.docx", "/tmp/report.docx", version_id="3HL4kqtJlcpXroDTDmJ.rmSpXd3dIbrHY"
|
|
506
|
+
)
|
|
507
|
+
```
|
|
508
|
+
|
|
494
509
|
### Telemetry / LLM Usage Tracking (Marketplace)
|
|
495
510
|
|
|
496
511
|
`TelemetryAccess` (under `db` module) writes records to the `ai_telemetry` table. **Unknown fields are stored in the `metadata` jsonb column automatically** — no schema migration is required to add new tracking dimensions.
|
|
@@ -1128,6 +1143,11 @@ See the [developer portal](https://developers.fd.agenticstar.tm.softbank.jp/) fo
|
|
|
1128
1143
|
|
|
1129
1144
|
## Changelog
|
|
1130
1145
|
|
|
1146
|
+
### 3.3.0 (2026-11-09) — storage: download a specific version (`download_file(..., version_id=...)`)
|
|
1147
|
+
|
|
1148
|
+
- **`download_file` takes an optional `version_id`** on `AzureBlobStorageClient`, `S3StorageClient` and `GCSStorageClient` (and on `StorageClientProtocol` / `StorageClientBase`). With it, the client checks and downloads that version: the Azure Blob `versionId`, the S3 `VersionId`, or the GCS generation given as a string of digits. A version that does not exist and an empty value fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS); on GCS a value that is not a number fails the same way. Without `version_id` the client calls the storage exactly as before and downloads the latest version.
|
|
1149
|
+
- A storage client of your own that implements `StorageClientBase` should accept the new keyword argument; a caller that does not pass it is unaffected.
|
|
1150
|
+
|
|
1131
1151
|
### 3.2.3 (2026-11-04) — storage: S3 without access keys (IRSA) / events: a failed run ends the chat message
|
|
1132
1152
|
|
|
1133
1153
|
3.2.2 was not published to PyPI; 3.2.3 includes its change (the notify token below).
|
|
@@ -1588,4 +1608,4 @@ Marketplace SDK reliability fixes (surfaced while building agents from the guide
|
|
|
1588
1608
|
|
|
1589
1609
|
## Version
|
|
1590
1610
|
|
|
1591
|
-
3.
|
|
1611
|
+
3.3.0
|
|
@@ -410,6 +410,21 @@ config = S3Config.from_dict({
|
|
|
410
410
|
client = S3StorageClient(config)
|
|
411
411
|
```
|
|
412
412
|
|
|
413
|
+
A specific version (3.3.0): `download_file(object_name, download_path, version_id=...)` downloads that
|
|
414
|
+
version of the object instead of the latest one. The value is the Azure Blob `versionId`, the S3
|
|
415
|
+
`VersionId` or the GCS generation (a number as a string). A version that does not exist, and an empty
|
|
416
|
+
value, fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS). To keep
|
|
417
|
+
the older version when an object is overwritten or deleted, turn on versioning (Azure: blob versioning of
|
|
418
|
+
the storage account; S3 and GCS: versioning of the bucket); versions kept earlier stay readable after it is
|
|
419
|
+
turned off. Without `version_id` the latest version is downloaded, as before.
|
|
420
|
+
|
|
421
|
+
```python
|
|
422
|
+
# S3: pass the VersionId that S3 returned for the object
|
|
423
|
+
result = await client.download_file(
|
|
424
|
+
"users/u1/report.docx", "/tmp/report.docx", version_id="3HL4kqtJlcpXroDTDmJ.rmSpXd3dIbrHY"
|
|
425
|
+
)
|
|
426
|
+
```
|
|
427
|
+
|
|
413
428
|
### Telemetry / LLM Usage Tracking (Marketplace)
|
|
414
429
|
|
|
415
430
|
`TelemetryAccess` (under `db` module) writes records to the `ai_telemetry` table. **Unknown fields are stored in the `metadata` jsonb column automatically** — no schema migration is required to add new tracking dimensions.
|
|
@@ -1047,6 +1062,11 @@ See the [developer portal](https://developers.fd.agenticstar.tm.softbank.jp/) fo
|
|
|
1047
1062
|
|
|
1048
1063
|
## Changelog
|
|
1049
1064
|
|
|
1065
|
+
### 3.3.0 (2026-11-09) — storage: download a specific version (`download_file(..., version_id=...)`)
|
|
1066
|
+
|
|
1067
|
+
- **`download_file` takes an optional `version_id`** on `AzureBlobStorageClient`, `S3StorageClient` and `GCSStorageClient` (and on `StorageClientProtocol` / `StorageClientBase`). With it, the client checks and downloads that version: the Azure Blob `versionId`, the S3 `VersionId`, or the GCS generation given as a string of digits. A version that does not exist and an empty value fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS); on GCS a value that is not a number fails the same way. Without `version_id` the client calls the storage exactly as before and downloads the latest version.
|
|
1068
|
+
- A storage client of your own that implements `StorageClientBase` should accept the new keyword argument; a caller that does not pass it is unaffected.
|
|
1069
|
+
|
|
1050
1070
|
### 3.2.3 (2026-11-04) — storage: S3 without access keys (IRSA) / events: a failed run ends the chat message
|
|
1051
1071
|
|
|
1052
1072
|
3.2.2 was not published to PyPI; 3.2.3 includes its change (the notify token below).
|
|
@@ -1507,4 +1527,4 @@ Marketplace SDK reliability fixes (surfaced while building agents from the guide
|
|
|
1507
1527
|
|
|
1508
1528
|
## Version
|
|
1509
1529
|
|
|
1510
|
-
3.
|
|
1530
|
+
3.3.0
|
|
@@ -9,7 +9,7 @@ import importlib
|
|
|
9
9
|
import importlib.util
|
|
10
10
|
from typing import TYPE_CHECKING
|
|
11
11
|
|
|
12
|
-
__version__ = "3.
|
|
12
|
+
__version__ = "3.3.0"
|
|
13
13
|
|
|
14
14
|
# Common utilities are internal - not exported as public API
|
|
15
15
|
# Use agenticstar_platform.common for internal SDK development only
|
{agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/azure.py
RENAMED
|
@@ -360,6 +360,7 @@ class AzureBlobStorageClient(StorageClientBase):
|
|
|
360
360
|
self,
|
|
361
361
|
object_name: str,
|
|
362
362
|
download_path: str,
|
|
363
|
+
version_id: Optional[str] = None,
|
|
363
364
|
) -> DownloadResult:
|
|
364
365
|
"""
|
|
365
366
|
ファイルをダウンロード(ストリーミング)
|
|
@@ -370,6 +371,8 @@ class AzureBlobStorageClient(StorageClientBase):
|
|
|
370
371
|
Args:
|
|
371
372
|
object_name: ダウンロードするBlob名
|
|
372
373
|
download_path: ダウンロード先のローカルパス
|
|
374
|
+
version_id: Blob の版 (versionId)。指せばその版を取る (無い版は BLOB_NOT_FOUND)。
|
|
375
|
+
省略時は最新
|
|
373
376
|
|
|
374
377
|
Returns:
|
|
375
378
|
DownloadResult: ダウンロード結果
|
|
@@ -400,12 +403,22 @@ class AzureBlobStorageClient(StorageClientBase):
|
|
|
400
403
|
error_code="STORAGE_NOT_ENABLED",
|
|
401
404
|
)
|
|
402
405
|
|
|
406
|
+
if version_id is not None and not version_id.strip():
|
|
407
|
+
return DownloadResult(
|
|
408
|
+
success=False,
|
|
409
|
+
object_name=object_name,
|
|
410
|
+
error=f"Blob not found: {object_name}",
|
|
411
|
+
error_code="BLOB_NOT_FOUND",
|
|
412
|
+
)
|
|
413
|
+
|
|
403
414
|
try:
|
|
404
415
|
blob_client = self._get_blob_client(object_name)
|
|
416
|
+
# 版を指すときだけ version_id を渡す (省略時は今までと同じ呼び方で最新)
|
|
417
|
+
version_kwargs = {"version_id": version_id} if version_id is not None else {}
|
|
405
418
|
|
|
406
419
|
# 存在確認
|
|
407
420
|
exists = await asyncio.get_event_loop().run_in_executor(
|
|
408
|
-
None, blob_client.exists
|
|
421
|
+
None, lambda: blob_client.exists(**version_kwargs)
|
|
409
422
|
)
|
|
410
423
|
if not exists:
|
|
411
424
|
return DownloadResult(
|
|
@@ -422,7 +435,7 @@ class AzureBlobStorageClient(StorageClientBase):
|
|
|
422
435
|
# ストリーミングダウンロード(メモリ効率化)
|
|
423
436
|
def _streaming_download():
|
|
424
437
|
with open(download_path_obj, 'wb') as f:
|
|
425
|
-
download_stream = blob_client.download_blob()
|
|
438
|
+
download_stream = blob_client.download_blob(**version_kwargs)
|
|
426
439
|
# chunks()でチャンク単位でダウンロード
|
|
427
440
|
for chunk in download_stream.chunks():
|
|
428
441
|
f.write(chunk)
|
{agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/base.py
RENAMED
|
@@ -470,8 +470,9 @@ class StorageClientProtocol(Protocol):
|
|
|
470
470
|
self,
|
|
471
471
|
object_name: str,
|
|
472
472
|
download_path: str,
|
|
473
|
+
version_id: Optional[str] = None,
|
|
473
474
|
) -> DownloadResult:
|
|
474
|
-
"""
|
|
475
|
+
"""ファイルをダウンロード(version_id を指せばその版。無ければ最新)"""
|
|
475
476
|
...
|
|
476
477
|
|
|
477
478
|
async def list_objects(
|
|
@@ -640,6 +641,7 @@ class StorageClientBase(ABC):
|
|
|
640
641
|
self,
|
|
641
642
|
object_name: str,
|
|
642
643
|
download_path: str,
|
|
644
|
+
version_id: Optional[str] = None,
|
|
643
645
|
) -> DownloadResult:
|
|
644
646
|
pass
|
|
645
647
|
|
{agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/gcs.py
RENAMED
|
@@ -289,6 +289,7 @@ class GCSStorageClient(StorageClientBase):
|
|
|
289
289
|
self,
|
|
290
290
|
object_name: str,
|
|
291
291
|
download_path: str,
|
|
292
|
+
version_id: Optional[str] = None,
|
|
292
293
|
) -> DownloadResult:
|
|
293
294
|
"""
|
|
294
295
|
ファイルをGCSからダウンロード
|
|
@@ -296,6 +297,8 @@ class GCSStorageClient(StorageClientBase):
|
|
|
296
297
|
Args:
|
|
297
298
|
object_name: ダウンロードするオブジェクト名
|
|
298
299
|
download_path: ダウンロード先のローカルパス
|
|
300
|
+
version_id: オブジェクトの版 (generation の数字の文字列)。指せばその版を取る
|
|
301
|
+
(無い版・数字でない値は OBJECT_NOT_FOUND)。省略時は最新
|
|
299
302
|
|
|
300
303
|
Returns:
|
|
301
304
|
DownloadResult: ダウンロード結果
|
|
@@ -307,9 +310,22 @@ class GCSStorageClient(StorageClientBase):
|
|
|
307
310
|
error_code="STORAGE_NOT_ENABLED",
|
|
308
311
|
)
|
|
309
312
|
|
|
313
|
+
generation: Optional[int] = None
|
|
314
|
+
if version_id is not None:
|
|
315
|
+
try:
|
|
316
|
+
generation = int(version_id)
|
|
317
|
+
except (TypeError, ValueError):
|
|
318
|
+
return DownloadResult(
|
|
319
|
+
success=False,
|
|
320
|
+
object_name=object_name,
|
|
321
|
+
error=f"Object not found: {object_name}",
|
|
322
|
+
error_code="OBJECT_NOT_FOUND",
|
|
323
|
+
)
|
|
324
|
+
|
|
310
325
|
try:
|
|
311
326
|
bucket = self._get_bucket()
|
|
312
|
-
|
|
327
|
+
# 版を指すときだけ generation を渡す (省略時は今までと同じ呼び方で最新)
|
|
328
|
+
blob = bucket.blob(object_name, generation=generation) if generation is not None else bucket.blob(object_name)
|
|
313
329
|
|
|
314
330
|
exists = await asyncio.get_running_loop().run_in_executor(
|
|
315
331
|
None, blob.exists
|
{agenticstar_platform-3.2.3 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/s3.py
RENAMED
|
@@ -296,6 +296,7 @@ class S3StorageClient(StorageClientBase):
|
|
|
296
296
|
self,
|
|
297
297
|
object_name: str,
|
|
298
298
|
download_path: str,
|
|
299
|
+
version_id: Optional[str] = None,
|
|
299
300
|
) -> DownloadResult:
|
|
300
301
|
"""
|
|
301
302
|
ファイルをS3からダウンロード(ストリーミング)
|
|
@@ -303,6 +304,8 @@ class S3StorageClient(StorageClientBase):
|
|
|
303
304
|
Args:
|
|
304
305
|
object_name: ダウンロードするオブジェクト名
|
|
305
306
|
download_path: ダウンロード先のローカルパス
|
|
307
|
+
version_id: オブジェクトの版 (VersionId)。指せばその版を取る (無い版は OBJECT_NOT_FOUND)。
|
|
308
|
+
省略時は最新
|
|
306
309
|
|
|
307
310
|
Returns:
|
|
308
311
|
DownloadResult: ダウンロード結果
|
|
@@ -314,9 +317,20 @@ class S3StorageClient(StorageClientBase):
|
|
|
314
317
|
error_code="STORAGE_NOT_ENABLED",
|
|
315
318
|
)
|
|
316
319
|
|
|
320
|
+
if version_id is not None and not version_id.strip():
|
|
321
|
+
return DownloadResult(
|
|
322
|
+
success=False,
|
|
323
|
+
object_name=object_name,
|
|
324
|
+
error=f"Object not found: {object_name}",
|
|
325
|
+
error_code="OBJECT_NOT_FOUND",
|
|
326
|
+
)
|
|
327
|
+
|
|
317
328
|
try:
|
|
318
|
-
# 存在確認
|
|
319
|
-
|
|
329
|
+
# 存在確認 (版を指さないときは今までどおり公開の object_exists を呼ぶ)
|
|
330
|
+
if version_id is None:
|
|
331
|
+
exists = await self.object_exists(object_name)
|
|
332
|
+
else:
|
|
333
|
+
exists = await self._object_exists(object_name, version_id)
|
|
320
334
|
if not exists:
|
|
321
335
|
return DownloadResult(
|
|
322
336
|
success=False,
|
|
@@ -328,12 +342,15 @@ class S3StorageClient(StorageClientBase):
|
|
|
328
342
|
download_path_obj = Path(download_path)
|
|
329
343
|
download_path_obj.parent.mkdir(parents=True, exist_ok=True)
|
|
330
344
|
|
|
345
|
+
# 版を指すときだけ ExtraArgs を渡す (省略時は今までと同じ呼び方で最新)
|
|
346
|
+
extra = {"ExtraArgs": {"VersionId": version_id}} if version_id is not None else {}
|
|
331
347
|
await asyncio.get_running_loop().run_in_executor(
|
|
332
348
|
None,
|
|
333
349
|
lambda: self._s3_client.download_file(
|
|
334
350
|
self.bucket_name,
|
|
335
351
|
object_name,
|
|
336
352
|
str(download_path_obj),
|
|
353
|
+
**extra,
|
|
337
354
|
)
|
|
338
355
|
)
|
|
339
356
|
|
|
@@ -440,16 +457,20 @@ class S3StorageClient(StorageClientBase):
|
|
|
440
457
|
|
|
441
458
|
async def object_exists(self, object_name: str) -> bool:
|
|
442
459
|
"""オブジェクトの存在確認"""
|
|
460
|
+
return await self._object_exists(object_name)
|
|
461
|
+
|
|
462
|
+
async def _object_exists(self, object_name: str, version_id: Optional[str] = None) -> bool:
|
|
463
|
+
"""オブジェクト (version_id を指せばその版) の存在確認"""
|
|
443
464
|
if not self._enabled:
|
|
444
465
|
return False
|
|
445
466
|
|
|
467
|
+
head_args: Dict[str, Any] = {"Bucket": self.bucket_name, "Key": object_name}
|
|
468
|
+
if version_id is not None:
|
|
469
|
+
head_args["VersionId"] = version_id
|
|
446
470
|
try:
|
|
447
471
|
await asyncio.get_running_loop().run_in_executor(
|
|
448
472
|
None,
|
|
449
|
-
lambda: self._s3_client.head_object(
|
|
450
|
-
Bucket=self.bucket_name,
|
|
451
|
-
Key=object_name,
|
|
452
|
-
)
|
|
473
|
+
lambda: self._s3_client.head_object(**head_args)
|
|
453
474
|
)
|
|
454
475
|
return True
|
|
455
476
|
except ClientError as e:
|