arkhai-core 0.1.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.
- arkhai_core-0.1.0/.gitignore +223 -0
- arkhai_core-0.1.0/PKG-INFO +6 -0
- arkhai_core-0.1.0/buyer/pyproject.toml +53 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/__init__.py +43 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/aggregation.py +579 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/buyer_config.py +239 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/cli.py +320 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/deal_helpers.py +445 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/escrow_client.py +122 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/escrow_selection.py +156 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/negotiation_client.py +738 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/orchestration.py +758 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/orchestrator.py +281 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/plugins.py +85 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/policy_surface.py +257 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/registry_config.py +170 -0
- arkhai_core-0.1.0/buyer/src/core_buyer/run_log.py +189 -0
- arkhai_core-0.1.0/buyer/tests/unit/test_cli.py +192 -0
- arkhai_core-0.1.0/buyer/tests/unit/test_orchestrator.py +121 -0
- arkhai_core-0.1.0/buyer/tests/unit/test_plugins.py +45 -0
- arkhai_core-0.1.0/buyer/tests/unit/test_registry_schema.py +134 -0
- arkhai_core-0.1.0/buyer/uv.lock +1563 -0
- arkhai_core-0.1.0/pyproject.toml +28 -0
- arkhai_core-0.1.0/registry/.dockerignore +72 -0
- arkhai_core-0.1.0/registry/.env.docker-compose +17 -0
- arkhai_core-0.1.0/registry/.env.sample +13 -0
- arkhai_core-0.1.0/registry/.gitignore +62 -0
- arkhai_core-0.1.0/registry/Dockerfile +59 -0
- arkhai_core-0.1.0/registry/Makefile +130 -0
- arkhai_core-0.1.0/registry/README.md +89 -0
- arkhai_core-0.1.0/registry/alembic/env.py +63 -0
- arkhai_core-0.1.0/registry/alembic/script.py.mako +25 -0
- arkhai_core-0.1.0/registry/alembic/versions/001_initial.py +74 -0
- arkhai_core-0.1.0/registry/alembic/versions/002_add_owner_field.py +25 -0
- arkhai_core-0.1.0/registry/alembic/versions/003_add_market_orders_table.py +60 -0
- arkhai_core-0.1.0/registry/alembic/versions/004_standardize_agent_ids_and_metadata.py +70 -0
- arkhai_core-0.1.0/registry/alembic/versions/005_simplify_to_erc8004_canonical_ids.py +130 -0
- arkhai_core-0.1.0/registry/alembic/versions/006_rename_duration_to_duration_hours.py +40 -0
- arkhai_core-0.1.0/registry/alembic/versions/007_add_oracle_address.py +24 -0
- arkhai_core-0.1.0/registry/alembic/versions/008_rename_orders_to_listings.py +73 -0
- arkhai_core-0.1.0/registry/alembic/versions/009_listing_max_duration_seconds.py +43 -0
- arkhai_core-0.1.0/registry/alembic/versions/010_drop_listing_attestations.py +43 -0
- arkhai_core-0.1.0/registry/alembic/versions/011_listing_accepted_escrows.py +41 -0
- arkhai_core-0.1.0/registry/alembic/versions/012_pluggable_identity_scheme.py +115 -0
- arkhai_core-0.1.0/registry/alembic/versions/013_api_key_scope.py +57 -0
- arkhai_core-0.1.0/registry/alembic/versions/014_agent_to_publisher.py +148 -0
- arkhai_core-0.1.0/registry/alembic.ini +41 -0
- arkhai_core-0.1.0/registry/docker-compose.yml +28 -0
- arkhai_core-0.1.0/registry/filter-spec.yaml +194 -0
- arkhai_core-0.1.0/registry/pyproject.toml +49 -0
- arkhai_core-0.1.0/registry/src/__init__.py +2 -0
- arkhai_core-0.1.0/registry/src/api/__init__.py +4 -0
- arkhai_core-0.1.0/registry/src/api/admin_routes.py +91 -0
- arkhai_core-0.1.0/registry/src/api/api_key_auth.py +153 -0
- arkhai_core-0.1.0/registry/src/api/filter_eval.py +414 -0
- arkhai_core-0.1.0/registry/src/api/filter_spec.py +193 -0
- arkhai_core-0.1.0/registry/src/api/listing_routes.py +280 -0
- arkhai_core-0.1.0/registry/src/api/publisher_routes.py +67 -0
- arkhai_core-0.1.0/registry/src/api/routes.py +34 -0
- arkhai_core-0.1.0/registry/src/api/system_model.py +32 -0
- arkhai_core-0.1.0/registry/src/api/system_routes.py +115 -0
- arkhai_core-0.1.0/registry/src/api/utils.py +200 -0
- arkhai_core-0.1.0/registry/src/api/validate_model.py +52 -0
- arkhai_core-0.1.0/registry/src/api/validate_routes.py +105 -0
- arkhai_core-0.1.0/registry/src/config.py +76 -0
- arkhai_core-0.1.0/registry/src/db/__init__.py +4 -0
- arkhai_core-0.1.0/registry/src/db/database.py +81 -0
- arkhai_core-0.1.0/registry/src/db/models.py +119 -0
- arkhai_core-0.1.0/registry/src/main.py +111 -0
- arkhai_core-0.1.0/registry/src/services/__init__.py +0 -0
- arkhai_core-0.1.0/registry/src/types/__init__.py +14 -0
- arkhai_core-0.1.0/registry/tests/__init__.py +2 -0
- arkhai_core-0.1.0/registry/tests/conftest.py +46 -0
- arkhai_core-0.1.0/registry/tests/integration/__init__.py +2 -0
- arkhai_core-0.1.0/registry/tests/integration/conftest.py +129 -0
- arkhai_core-0.1.0/registry/tests/integration/test_api_keys.py +250 -0
- arkhai_core-0.1.0/registry/tests/integration/test_eip191_publish.py +134 -0
- arkhai_core-0.1.0/registry/tests/integration/test_filter_spec.py +58 -0
- arkhai_core-0.1.0/registry/tests/integration/test_listings.py +183 -0
- arkhai_core-0.1.0/registry/tests/integration/test_listings_filtering.py +326 -0
- arkhai_core-0.1.0/registry/tests/integration/test_publishers.py +57 -0
- arkhai_core-0.1.0/registry/tests/integration/test_system.py +81 -0
- arkhai_core-0.1.0/registry/tests/integration/test_validate_publish.py +135 -0
- arkhai_core-0.1.0/registry/tests/unit/__init__.py +2 -0
- arkhai_core-0.1.0/registry/tests/unit/test_database.py +133 -0
- arkhai_core-0.1.0/registry/tests/unit/test_filter_eval.py +437 -0
- arkhai_core-0.1.0/registry/tests/unit/test_filter_spec.py +328 -0
- arkhai_core-0.1.0/registry/tests/unit/test_order_auth_utils.py +115 -0
- arkhai_core-0.1.0/registry/uv.lock +2043 -0
- arkhai_core-0.1.0/registry-client/pyproject.toml +16 -0
- arkhai_core-0.1.0/registry-client/src/registry_client/__init__.py +46 -0
- arkhai_core-0.1.0/registry-client/src/registry_client/auth.py +96 -0
- arkhai_core-0.1.0/registry-client/src/registry_client/client.py +535 -0
- arkhai_core-0.1.0/registry-client/src/registry_client/models.py +399 -0
- arkhai_core-0.1.0/registry-client/tests/__init__.py +0 -0
- arkhai_core-0.1.0/registry-client/uv.lock +696 -0
- arkhai_core-0.1.0/src/market_core/__init__.py +2 -0
- arkhai_core-0.1.0/src/market_core/schemas.py +799 -0
- arkhai_core-0.1.0/storefront/pyproject.toml +39 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/__init__.py +1 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/aggregation.py +338 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/auth.py +188 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/capacity.py +170 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/capacity_remote.py +280 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/escrow_verification.py +466 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/heartbeats.py +103 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/__init__.py +1 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/deal_models.py +43 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/listing_models.py +209 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/negotiation_models.py +129 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/settle_models.py +111 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/models/system_models.py +26 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/multi_registry_client.py +412 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/negotiation_sync.py +262 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/openapi.py +58 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/refund.py +195 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/registry_publication.py +189 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/services/__init__.py +1 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/services/negotiation_service.py +265 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/settlement_lifecycle.py +298 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/sqlite_client.py +2643 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/sqlite_migrations.py +461 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/stage_log.py +57 -0
- arkhai_core-0.1.0/storefront/src/core_storefront/token_transfer.py +116 -0
- arkhai_core-0.1.0/storefront/tests/unit/test_aggregation.py +215 -0
- arkhai_core-0.1.0/storefront/tests/unit/test_heartbeats.py +65 -0
- arkhai_core-0.1.0/storefront/tests/unit/test_negotiation_sync.py +68 -0
- arkhai_core-0.1.0/storefront/tests/unit/test_registry_publication.py +165 -0
- arkhai_core-0.1.0/storefront/tests/unit/test_settlement_lifecycle.py +205 -0
- arkhai_core-0.1.0/storefront/uv.lock +1663 -0
- arkhai_core-0.1.0/storefront-client/README.md +88 -0
- arkhai_core-0.1.0/storefront-client/pyproject.toml +24 -0
- arkhai_core-0.1.0/storefront-client/src/storefront_client/__init__.py +25 -0
- arkhai_core-0.1.0/storefront-client/src/storefront_client/client.py +1740 -0
- arkhai_core-0.1.0/storefront-client/src/storefront_client/models.py +695 -0
- arkhai_core-0.1.0/storefront-client/tests/test_auth_headers.py +109 -0
- arkhai_core-0.1.0/storefront-client/tests/test_close_listing_routes.py +63 -0
- arkhai_core-0.1.0/storefront-client/tests/test_negotiate_new_payload.py +65 -0
- arkhai_core-0.1.0/storefront-client/uv.lock +765 -0
- arkhai_core-0.1.0/tests/unit/test_carrier_purity.py +64 -0
- arkhai_core-0.1.0/tests/unit/test_escrow_proposal.py +117 -0
- arkhai_core-0.1.0/tests/unit/test_escrow_terms.py +198 -0
- arkhai_core-0.1.0/tests/unit/test_provision_terms.py +69 -0
- arkhai_core-0.1.0/tests/unit/test_rate_helpers.py +130 -0
- arkhai_core-0.1.0/tests/unit/test_settlement_plan.py +149 -0
- arkhai_core-0.1.0/uv.lock +264 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
.vscode/
|
|
2
|
+
|
|
3
|
+
# Project-local scratch files, private notes, and generated diagnostics.
|
|
4
|
+
.scm-local/
|
|
5
|
+
|
|
6
|
+
# Visible transfer staging for snap-confined tools such as Multipass.
|
|
7
|
+
scm-clean-room-transfer/
|
|
8
|
+
|
|
9
|
+
# Legacy local rehearsal params (private keys, RPC URLs, etc.).
|
|
10
|
+
.rehearsal-params.local.md
|
|
11
|
+
.rehearsal-params.local.*
|
|
12
|
+
|
|
13
|
+
### Python ###
|
|
14
|
+
# Byte-compiled / optimized / DLL files
|
|
15
|
+
__pycache__/
|
|
16
|
+
*.py[cod]
|
|
17
|
+
*$py.class
|
|
18
|
+
|
|
19
|
+
# C extensions
|
|
20
|
+
*.so
|
|
21
|
+
|
|
22
|
+
# Distribution / packaging
|
|
23
|
+
.Python
|
|
24
|
+
build/
|
|
25
|
+
develop-eggs/
|
|
26
|
+
dist/
|
|
27
|
+
downloads/
|
|
28
|
+
eggs/
|
|
29
|
+
.eggs/
|
|
30
|
+
lib/
|
|
31
|
+
lib64/
|
|
32
|
+
parts/
|
|
33
|
+
sdist/
|
|
34
|
+
var/
|
|
35
|
+
wheels/
|
|
36
|
+
share/python-wheels/
|
|
37
|
+
*.egg-info/
|
|
38
|
+
.installed.cfg
|
|
39
|
+
*.egg
|
|
40
|
+
MANIFEST
|
|
41
|
+
|
|
42
|
+
# PyInstaller
|
|
43
|
+
# Usually these files are written by a python script from a template
|
|
44
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
45
|
+
*.manifest
|
|
46
|
+
*.spec
|
|
47
|
+
|
|
48
|
+
# Installer logs
|
|
49
|
+
pip-log.txt
|
|
50
|
+
pip-delete-this-directory.txt
|
|
51
|
+
|
|
52
|
+
# Unit test / coverage reports
|
|
53
|
+
htmlcov/
|
|
54
|
+
.tox/
|
|
55
|
+
.nox/
|
|
56
|
+
.coverage
|
|
57
|
+
.coverage.*
|
|
58
|
+
.cache
|
|
59
|
+
nosetests.xml
|
|
60
|
+
coverage.xml
|
|
61
|
+
*.cover
|
|
62
|
+
*.py,cover
|
|
63
|
+
.hypothesis/
|
|
64
|
+
.pytest_cache/
|
|
65
|
+
cover/
|
|
66
|
+
|
|
67
|
+
# Translations
|
|
68
|
+
*.mo
|
|
69
|
+
*.pot
|
|
70
|
+
|
|
71
|
+
# Django stuff:
|
|
72
|
+
*.log
|
|
73
|
+
*.log.[0-9]*
|
|
74
|
+
local_settings.py
|
|
75
|
+
db.sqlite3
|
|
76
|
+
db.sqlite3-journal
|
|
77
|
+
|
|
78
|
+
# Flask stuff:
|
|
79
|
+
instance/
|
|
80
|
+
.webassets-cache
|
|
81
|
+
|
|
82
|
+
# Scrapy stuff:
|
|
83
|
+
.scrapy
|
|
84
|
+
|
|
85
|
+
# Sphinx documentation
|
|
86
|
+
docs/_build/
|
|
87
|
+
|
|
88
|
+
# PyBuilder
|
|
89
|
+
.pybuilder/
|
|
90
|
+
target/
|
|
91
|
+
|
|
92
|
+
# Jupyter Notebook
|
|
93
|
+
.ipynb_checkpoints
|
|
94
|
+
|
|
95
|
+
# IPython
|
|
96
|
+
profile_default/
|
|
97
|
+
ipython_config.py
|
|
98
|
+
|
|
99
|
+
# pyenv
|
|
100
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
101
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
102
|
+
# .python-version
|
|
103
|
+
|
|
104
|
+
# pipenv
|
|
105
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
106
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
107
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
108
|
+
# install all needed dependencies.
|
|
109
|
+
#Pipfile.lock
|
|
110
|
+
|
|
111
|
+
# poetry
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
113
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
114
|
+
# commonly ignored for libraries.
|
|
115
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
116
|
+
#poetry.lock
|
|
117
|
+
|
|
118
|
+
# pdm
|
|
119
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
120
|
+
#pdm.lock
|
|
121
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
122
|
+
# in version control.
|
|
123
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
124
|
+
.pdm.toml
|
|
125
|
+
|
|
126
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
127
|
+
__pypackages__/
|
|
128
|
+
|
|
129
|
+
# Celery stuff
|
|
130
|
+
celerybeat-schedule
|
|
131
|
+
celerybeat.pid
|
|
132
|
+
|
|
133
|
+
# SageMath parsed files
|
|
134
|
+
*.sage.py
|
|
135
|
+
|
|
136
|
+
# Environments
|
|
137
|
+
.env
|
|
138
|
+
.env.*
|
|
139
|
+
.venv
|
|
140
|
+
env/
|
|
141
|
+
venv/
|
|
142
|
+
ENV/
|
|
143
|
+
env.bak/
|
|
144
|
+
venv.bak/
|
|
145
|
+
|
|
146
|
+
# Spyder project settings
|
|
147
|
+
.spyderproject
|
|
148
|
+
.spyproject
|
|
149
|
+
|
|
150
|
+
# Rope project settings
|
|
151
|
+
.ropeproject
|
|
152
|
+
|
|
153
|
+
# mkdocs documentation
|
|
154
|
+
/site
|
|
155
|
+
|
|
156
|
+
# mypy
|
|
157
|
+
.mypy_cache/
|
|
158
|
+
.dmypy.json
|
|
159
|
+
dmypy.json
|
|
160
|
+
|
|
161
|
+
# Pyre type checker
|
|
162
|
+
.pyre/
|
|
163
|
+
|
|
164
|
+
# pytype static type analyzer
|
|
165
|
+
.pytype/
|
|
166
|
+
|
|
167
|
+
# Cython debug symbols
|
|
168
|
+
cython_debug/
|
|
169
|
+
|
|
170
|
+
# PyCharm
|
|
171
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
172
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
173
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
174
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
175
|
+
#.idea/
|
|
176
|
+
|
|
177
|
+
### Python Patch ###
|
|
178
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
179
|
+
poetry.toml
|
|
180
|
+
|
|
181
|
+
# ruff
|
|
182
|
+
.ruff_cache/
|
|
183
|
+
|
|
184
|
+
# LSP config files
|
|
185
|
+
pyrightconfig.json
|
|
186
|
+
|
|
187
|
+
# Infra
|
|
188
|
+
infra/*/*.tfvars
|
|
189
|
+
infra/*/*.tfstate
|
|
190
|
+
infra/*/*.tfstate.backup
|
|
191
|
+
infra/*/.terraform*
|
|
192
|
+
infra/*/*.plan
|
|
193
|
+
*.db
|
|
194
|
+
# PufferRL Experiments
|
|
195
|
+
experiments/
|
|
196
|
+
wandb/
|
|
197
|
+
!.env.sample
|
|
198
|
+
!.env.docker-compose
|
|
199
|
+
!.env.*.docker-compose
|
|
200
|
+
!.env.*.docker-compose
|
|
201
|
+
!.env.docker-compose
|
|
202
|
+
.cursor/
|
|
203
|
+
|
|
204
|
+
# Cloud Function
|
|
205
|
+
node_modules
|
|
206
|
+
|
|
207
|
+
# Puffer artifacts — ignore any resources/ dir or symlink at any depth
|
|
208
|
+
**/resources
|
|
209
|
+
pr-message-puffer.md
|
|
210
|
+
dev-env/state/state.json
|
|
211
|
+
shared-env/*
|
|
212
|
+
helm/Chart.lock
|
|
213
|
+
helm/charts/*.tgz
|
|
214
|
+
helm/.port-forward.pids
|
|
215
|
+
provisioning-service/settings.local.toml
|
|
216
|
+
provisioning-service/src/config/config-local.yml
|
|
217
|
+
.snapshot/*
|
|
218
|
+
|
|
219
|
+
# Per-env deployment scratch dirs (carry keys + per-env configs)
|
|
220
|
+
deploy-base-sepolia/
|
|
221
|
+
|
|
222
|
+
# Claude Code per-project state
|
|
223
|
+
.claude/
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "arkhai-core-buyer"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Core buyer role shell and orchestration contracts"
|
|
5
|
+
requires-python = ">=3.12"
|
|
6
|
+
dependencies = [
|
|
7
|
+
# The `market` verb skeleton + plugin assembly (core_buyer.cli).
|
|
8
|
+
"typer>=0.12.0",
|
|
9
|
+
# Candidate tables + price-confirmation rendering in the scalar
|
|
10
|
+
# policy surface and escrow-entry selection.
|
|
11
|
+
"rich>=13.7.0",
|
|
12
|
+
# Generic registry discovery config (registry.urls/auth/discovery_timeout)
|
|
13
|
+
# comes from the shared buyer TOML loader in kit.
|
|
14
|
+
"arkhai-kit-config",
|
|
15
|
+
# Negotiation chain framework + buyer-policy registry; the scalar
|
|
16
|
+
# policies themselves (listed_price/bisection middlewares) also live
|
|
17
|
+
# in kit-policy and register on import.
|
|
18
|
+
"arkhai-kit-policy",
|
|
19
|
+
# EscrowProposal/EscrowTerms schemas + settlement-plan carriers used
|
|
20
|
+
# by the negotiation and escrow clients. alkahest-py (the native
|
|
21
|
+
# on-chain client) stays a lazy import inside escrow creation —
|
|
22
|
+
# domain buyer wheels that actually create escrows depend on it.
|
|
23
|
+
"arkhai-kit-alkahest",
|
|
24
|
+
# ProvisionTerms/SettlementPlan carriers.
|
|
25
|
+
"arkhai-core",
|
|
26
|
+
# EIP-191 request signing for negotiate/settle calls.
|
|
27
|
+
"eth-account>=0.13.0",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
market = "core_buyer.cli:main"
|
|
32
|
+
|
|
33
|
+
[tool.uv.sources]
|
|
34
|
+
arkhai-kit-config = { path = "../../kit/config", editable = true }
|
|
35
|
+
arkhai-kit-policy = { path = "../../kit/policy", editable = true }
|
|
36
|
+
arkhai-kit-alkahest = { path = "../../kit/alkahest", editable = true }
|
|
37
|
+
arkhai-core = { path = "../", editable = true }
|
|
38
|
+
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["hatchling"]
|
|
41
|
+
build-backend = "hatchling.build"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.wheel]
|
|
44
|
+
packages = ["src/core_buyer"]
|
|
45
|
+
|
|
46
|
+
[tool.pytest.ini_options]
|
|
47
|
+
pythonpath = ["src"]
|
|
48
|
+
testpaths = ["tests/unit"]
|
|
49
|
+
|
|
50
|
+
[dependency-groups]
|
|
51
|
+
dev = [
|
|
52
|
+
"pytest>=8.3.4,<9.0.0",
|
|
53
|
+
]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Core buyer role contracts and orchestration helpers."""
|
|
2
|
+
|
|
3
|
+
from core_buyer.plugins import PLUGIN_GROUP, BuyerSchemaPlugin, discover_plugins
|
|
4
|
+
from core_buyer.registry_config import (
|
|
5
|
+
resolve_discovery_timeout,
|
|
6
|
+
resolve_indexer_auth,
|
|
7
|
+
resolve_indexer_urls,
|
|
8
|
+
)
|
|
9
|
+
from core_buyer.orchestrator import (
|
|
10
|
+
DEFAULT_HTTP_TIMEOUT,
|
|
11
|
+
BuyConfig,
|
|
12
|
+
BuyConstraints,
|
|
13
|
+
BuyResult,
|
|
14
|
+
NegotiationResult,
|
|
15
|
+
NegotiateFn,
|
|
16
|
+
SettleFn,
|
|
17
|
+
fetch_listing_dict,
|
|
18
|
+
fetch_listing_dict_multi,
|
|
19
|
+
query_registry_for_matches,
|
|
20
|
+
query_registry_for_matches_multi,
|
|
21
|
+
run_buy,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"PLUGIN_GROUP",
|
|
26
|
+
"BuyerSchemaPlugin",
|
|
27
|
+
"discover_plugins",
|
|
28
|
+
"resolve_discovery_timeout",
|
|
29
|
+
"resolve_indexer_auth",
|
|
30
|
+
"resolve_indexer_urls",
|
|
31
|
+
"DEFAULT_HTTP_TIMEOUT",
|
|
32
|
+
"BuyConfig",
|
|
33
|
+
"BuyConstraints",
|
|
34
|
+
"BuyResult",
|
|
35
|
+
"NegotiationResult",
|
|
36
|
+
"NegotiateFn",
|
|
37
|
+
"SettleFn",
|
|
38
|
+
"fetch_listing_dict",
|
|
39
|
+
"fetch_listing_dict_multi",
|
|
40
|
+
"query_registry_for_matches",
|
|
41
|
+
"query_registry_for_matches_multi",
|
|
42
|
+
"run_buy",
|
|
43
|
+
]
|