amfs-http-server 0.3.68__tar.gz → 0.3.70__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.
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/PKG-INFO +3 -3
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/pyproject.toml +3 -3
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/models.py +12 -1
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/server.py +10 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/.gitignore +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/__init__.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/auth.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/capture.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/openrouter_proxy.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/pro_provider.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/pro_proxy.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/sse.py +0 -0
- {amfs_http_server-0.3.68 → amfs_http_server-0.3.70}/src/amfs_http/tenant_middleware.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: amfs-http-server
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.70
|
|
4
4
|
Summary: AMFS HTTP/REST API server with SSE support
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
|
-
Requires-Dist: amfs-core>=0.3.
|
|
8
|
-
Requires-Dist: amfs>=0.5.
|
|
7
|
+
Requires-Dist: amfs-core>=0.3.58
|
|
8
|
+
Requires-Dist: amfs>=0.5.44
|
|
9
9
|
Requires-Dist: fastapi>=0.115
|
|
10
10
|
Requires-Dist: httpx>=0.27
|
|
11
11
|
Requires-Dist: sse-starlette>=2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "amfs-http-server"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.70"
|
|
4
4
|
description = "AMFS HTTP/REST API server with SSE support"
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
|
13
13
|
# this tree is what test_dependency_floors forbids.
|
|
14
14
|
# 0.5.18 for AgentMemory.as_agent, which the agent detail page calls to list
|
|
15
15
|
# an agent's entries as that agent rather than as the server.
|
|
16
|
-
"amfs>=0.5.
|
|
16
|
+
"amfs>=0.5.44",
|
|
17
17
|
# 0.3.23 is real in the silent way: the write path calls
|
|
18
18
|
# adapter.scope_counts(), which is a default on AdapterABC from 0.3.23. On an
|
|
19
19
|
# older core the adapters that do not override it — filesystem, S3 — have no
|
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
# unexpected keyword, _scope_block swallows it, and the block disappears —
|
|
28
28
|
# while an adapter that ignored the argument instead would name another
|
|
29
29
|
# agent's private keys. Either way the floor is what makes the rule real.
|
|
30
|
-
"amfs-core>=0.3.
|
|
30
|
+
"amfs-core>=0.3.58",
|
|
31
31
|
"fastapi>=0.115",
|
|
32
32
|
# 0.37 is where uvicorn.run() grew timeout_worker_healthcheck, which
|
|
33
33
|
# main() passes unconditionally; on anything older that is a TypeError
|
|
@@ -59,8 +59,19 @@ class OutcomeRequest(BaseModel):
|
|
|
59
59
|
#: trace for one outcome. Only the SDK sets this, and only because its
|
|
60
60
|
#: ``commit_outcome`` posts the trace on every path out of itself.
|
|
61
61
|
trace_follows: bool = False
|
|
62
|
+
#: The subset of ``causal_entry_keys`` the session only had in view: read,
|
|
63
|
+
#: and not named by the agent as what it acted on. A failure lowers an
|
|
64
|
+
#: in-view entry without discrediting one that has never failed before.
|
|
65
|
+
#: Absent (an older client, a direct REST caller) means every key is
|
|
66
|
+
#: charged in full, as it always was.
|
|
67
|
+
in_view_entry_keys: list[str] | None = None
|
|
68
|
+
#: For a failed outcome: the entries the agent did not follow, when that
|
|
69
|
+
#: is why it failed. Credited instead of charged; never also charged.
|
|
70
|
+
not_followed_entry_keys: list[str] | None = None
|
|
62
71
|
#: Failed attempts that preceded the terminal outcome, oldest first:
|
|
63
|
-
#: ``{attempt, outcome_type, causal_entry_keys, action_indices, summary}
|
|
72
|
+
#: ``{attempt, outcome_type, causal_entry_keys, action_indices, summary}``,
|
|
73
|
+
#: and optionally each attempt's own ``in_view_entry_keys`` and
|
|
74
|
+
#: ``not_followed_entry_keys``.
|
|
64
75
|
#: Each is applied to its own causal entries before ``outcome_type`` is
|
|
65
76
|
#: applied to ``causal_entry_keys`` — inside this one outcome and trace.
|
|
66
77
|
attempts: list[dict[str, Any]] = Field(default_factory=list)
|
|
@@ -5425,6 +5425,16 @@ async def commit_outcome(
|
|
|
5425
5425
|
final_action_index=final_action_index,
|
|
5426
5426
|
# The client's read versions, never the server's shared tracker.
|
|
5427
5427
|
causal_entry_versions=req.causal_entry_versions or {},
|
|
5428
|
+
# The client's statement of each key's role. With explicit keys and
|
|
5429
|
+
# no ``in_view_entry_keys`` (an older client) nothing is in view and
|
|
5430
|
+
# every key is charged in full, as before; with no keys at all the
|
|
5431
|
+
# handle falls back to its read log, and those are in view.
|
|
5432
|
+
in_view_entry_keys=(
|
|
5433
|
+
req.in_view_entry_keys
|
|
5434
|
+
if req.in_view_entry_keys is not None or req.causal_entry_keys is None
|
|
5435
|
+
else []
|
|
5436
|
+
),
|
|
5437
|
+
not_followed_entry_keys=req.not_followed_entry_keys or [],
|
|
5428
5438
|
# Action-level learning. Derived from the request's own tool calls
|
|
5429
5439
|
# and attempts when the client did not send them, never from the
|
|
5430
5440
|
# shared tracker; the keys are scanned inside commit_outcome.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|