chore: code review, use new stainless releases
This commit is contained in:
parent
4b01f8754d
commit
5d74818bed
|
|
@ -8,7 +8,7 @@ authors = [
|
|||
{ name = "Plastic Labs", email = "hello@plasticlabs.ai" },
|
||||
]
|
||||
dependencies = [
|
||||
"honcho-core==1.9.0",
|
||||
"honcho-core==1.10.0",
|
||||
"httpx>=0.28.0, <1",
|
||||
"pydantic>=2.0.0, <3",
|
||||
"typing-extensions>=4.12.0; python_version < \"3.12\"",
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class ConclusionScope:
|
|||
session: Optional session (ID string or Session object) to filter by
|
||||
|
||||
Returns:
|
||||
List of Conclusion objects
|
||||
Paginated response containing Conclusion objects
|
||||
"""
|
||||
resolved_session_id = (
|
||||
None
|
||||
|
|
@ -311,7 +311,7 @@ class AsyncConclusionScope:
|
|||
session: Optional session (ID string or AsyncSession object) to filter by
|
||||
|
||||
Returns:
|
||||
List of Conclusion objects
|
||||
Paginated response containing Conclusion objects
|
||||
"""
|
||||
resolved_session_id = (
|
||||
None
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"": {
|
||||
"name": "@honcho-ai/sdk",
|
||||
"dependencies": {
|
||||
"@honcho-ai/core": "2.0.0",
|
||||
"@honcho-ai/core": "2.1.0",
|
||||
"@types/node": "^24.0.1",
|
||||
"zod": "4.0.0",
|
||||
},
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
|
||||
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.8", "", { "os": "win32", "cpu": "x64" }, "sha512-RguzimPoZWtBapfKhKjcWXBVI91tiSprqdBYu7tWhgN8pKRZhw24rFeNZTNf6UiBfjCYCi9eFQs/JzJZIhuK4w=="],
|
||||
|
||||
"@honcho-ai/core": ["@honcho-ai/core@2.0.0", "", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" } }, "sha512-2VVtVuyRtFzHvEca74PBrio5ee97P3rl2q68WkGT++8TL+a3SmFPTxjezxCvGgOForvUVZJu4I/7MkmpqwE+Fg=="],
|
||||
"@honcho-ai/core": ["@honcho-ai/core@2.1.0", "", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" } }, "sha512-BssURYjiBmFF/guQQkr6Dpiz1ZOzhJsf/rdp6Ek/A3T2vNz3pop0fNgHK6SjCFcqjSKF8SHWJMF2VqqH0y4J6Q=="],
|
||||
|
||||
"@istanbuljs/load-nyc-config": ["@istanbuljs/load-nyc-config@1.1.0", "", { "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", "get-package-type": "^0.1.0", "js-yaml": "^3.13.1", "resolve-from": "^5.0.0" } }, "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ=="],
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"test:coverage": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@honcho-ai/core": "2.0.0",
|
||||
"@honcho-ai/core": "2.1.0",
|
||||
"@types/node": "^24.0.1",
|
||||
"zod": "4.0.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ async def run_dream(
|
|||
observed: Observed peer name
|
||||
session_name: Session identifier
|
||||
"""
|
||||
if not settings.DREAM.ENABLED:
|
||||
return
|
||||
|
||||
run_id = str(uuid.uuid4())[:8]
|
||||
task_name = f"dream_orchestrator_{run_id}"
|
||||
|
|
@ -88,6 +90,11 @@ async def run_dream(
|
|||
workspace = await crud.get_workspace(db, workspace_name=workspace_name)
|
||||
|
||||
configuration = get_configuration(None, session, workspace)
|
||||
if not configuration.dream.enabled:
|
||||
logger.info(
|
||||
f"[{run_id}] Dreams disabled for {workspace_name}/{session_name}, skipping dream"
|
||||
)
|
||||
return
|
||||
|
||||
# Phase 0: Surprisal-based sampling (if enabled)
|
||||
probing_questions = PROBING_QUESTIONS # Default
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ def normalize_configuration_dict(raw: dict[str, Any]) -> dict[str, Any]:
|
|||
|
||||
def get_configuration(
|
||||
message_configuration: MessageConfiguration | None,
|
||||
session: models.Session,
|
||||
session: models.Session | None,
|
||||
workspace: models.Workspace | None = None,
|
||||
) -> ResolvedConfiguration:
|
||||
"""
|
||||
|
|
@ -92,8 +92,9 @@ def get_configuration(
|
|||
4. Global defaults from settings
|
||||
|
||||
Args:
|
||||
session: The session model
|
||||
workspace: Optional workspace model (if not provided, only session and global config are used)
|
||||
message_configuration: Optional message configuration
|
||||
session: Optional session model
|
||||
workspace: Optional workspace model
|
||||
|
||||
Returns:
|
||||
ResolvedConfiguration
|
||||
|
|
@ -119,7 +120,8 @@ def get_configuration(
|
|||
if workspace is not None:
|
||||
deep_update(config_dict, normalize_configuration_dict(workspace.configuration))
|
||||
|
||||
deep_update(config_dict, normalize_configuration_dict(session.configuration))
|
||||
if session is not None:
|
||||
deep_update(config_dict, normalize_configuration_dict(session.configuration))
|
||||
|
||||
if message_configuration is not None:
|
||||
deep_update(
|
||||
|
|
|
|||
8
uv.lock
8
uv.lock
|
|
@ -859,7 +859,7 @@ dev = [
|
|||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "honcho-core", specifier = "==1.9.0" },
|
||||
{ name = "honcho-core", specifier = "==1.10.0" },
|
||||
{ name = "httpx", specifier = ">=0.28.0,<1" },
|
||||
{ name = "pydantic", specifier = ">=2.0.0,<3" },
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.12'", specifier = ">=4.12.0" },
|
||||
|
|
@ -870,7 +870,7 @@ dev = [{ name = "ruff", specifier = ">=0.11.13" }]
|
|||
|
||||
[[package]]
|
||||
name = "honcho-core"
|
||||
version = "1.9.0"
|
||||
version = "1.10.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "anyio" },
|
||||
|
|
@ -880,9 +880,9 @@ dependencies = [
|
|||
{ name = "sniffio" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e0/be/4496fa3deb447e958d06490e6a18ae173c8ddb427a86a60a2bcaa9bba649/honcho_core-1.9.0.tar.gz", hash = "sha256:baaa61be3826e9fd3489037a5606c6d87e6ff6ac0c2d17139ed2153691f9bae8", size = 144184, upload-time = "2026-01-12T22:11:27.159Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6c/5f/912716e911966d8cefb34a23f9b3a452348f147e040c1025113a202363a2/honcho_core-1.10.0.tar.gz", hash = "sha256:1dc139f6199a7589781636b4535cc97da6016477fbaeeaee53376e7a227a5c51", size = 144284, upload-time = "2026-01-12T23:30:30.87Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/64/99a96c61e15e6aaa696ea67a752bdcda0472712de2d5f5a0f827f0de22d9/honcho_core-1.9.0-py3-none-any.whl", hash = "sha256:b80f1215b5f9f5e134421b7243865eea6620e66fbe39629e3d59cc688031cf90", size = 138655, upload-time = "2026-01-12T22:11:26.204Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/63/27/7cc9c5d0a91921339b843bed3d520225731199156c3410604375e5faf487/honcho_core-1.10.0-py3-none-any.whl", hash = "sha256:d0c7a1285b8e75c106b540773c0077e563c9bf6abda040da583bb7566828877d", size = 138588, upload-time = "2026-01-12T23:30:29.351Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
|||
Loading…
Reference in New Issue