- harness/es.py: append-only event store + проекции (образец — кооп-портал) - harness/levels.py: уровни 1с/1м/1ч/1д, контекст ∝ масштабу - harness/scheduler.py: уровневые потоки, идемпотентные тики, absorbed-стабы - harness/isolated_runner.py + _llm_worker.py: LLM-тик в сабпроцессе (глобальный asyncio-рантайм Strands не переживает 2+ create_harness) - cli.py: init/task/tasks/status/events + requeue (написан самим минутным агентом) - 9router: отдельный ключ sk-simbiot, модель auto (glm-5.3 первым)
43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
|
# may not use this file except in compliance with the License. A copy of
|
|
# the License is located at
|
|
#
|
|
# http://aws.amazon.com/apache2.0/
|
|
#
|
|
# or in the "license" file accompanying this file. This file is
|
|
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
# ANY KIND, either express or implied. See the License for the specific
|
|
# language governing permissions and limitations under the License.
|
|
import s3transfer
|
|
|
|
KB = 1024
|
|
MB = KB * KB
|
|
GB = MB * KB
|
|
|
|
ALLOWED_DOWNLOAD_ARGS = [
|
|
'ChecksumMode',
|
|
'VersionId',
|
|
'SSECustomerAlgorithm',
|
|
'SSECustomerKey',
|
|
'SSECustomerKeyMD5',
|
|
'RequestPayer',
|
|
'ExpectedBucketOwner',
|
|
]
|
|
|
|
FULL_OBJECT_CHECKSUM_ARGS = [
|
|
'ChecksumCRC32',
|
|
'ChecksumCRC32C',
|
|
'ChecksumCRC64NVME',
|
|
'ChecksumMD5',
|
|
'ChecksumSHA1',
|
|
'ChecksumSHA256',
|
|
'ChecksumSHA512',
|
|
'ChecksumXXHASH3',
|
|
'ChecksumXXHASH64',
|
|
'ChecksumXXHASH128',
|
|
]
|
|
|
|
USER_AGENT = f's3transfer/{s3transfer.__version__}'
|
|
PROCESS_USER_AGENT = f'{USER_AGENT} processpool'
|