Repository navigation
feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI - #316
Merged
Merged
Conversation
CLI: - `synapsekit serve` — one-command FastAPI deployment with auto-detection - `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes Cost Intelligence: - `CostTracker` — hierarchical cost attribution with scope context manager - `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker Evaluation: - `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds Prompts & Plugins: - `PromptHub` — local versioned prompt registry - `PluginRegistry` — entry-point-based plugin system Graph Checkpointers: - `RedisCheckpointer` — Redis checkpoint backend with optional TTL - `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT 1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers
- Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059 - Rename BudgetExceeded → BudgetExceededError (N818) - Fix PromptHub.list/versions return type annotations with builtins.list - Simplify PluginRegistry to use entry_points(group=...) directly - Update plugin tests to match new entry_points API - Remove unused custom AsyncMock class from tests - Clean up integration test imports
- Run ruff format on all files - Update version assertions in old test files (1.1.0 → 1.2.0) - Add psycopg to deptry DEP002 ignore (lazy import) - Fix plugin test mocks to match entry_points(group=...) API
AmitoVrito
added a commit
that referenced
this pull request
Mar 24, 2026
* feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI CLI: - `synapsekit serve` — one-command FastAPI deployment with auto-detection - `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes Cost Intelligence: - `CostTracker` — hierarchical cost attribution with scope context manager - `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker Evaluation: - `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds Prompts & Plugins: - `PromptHub` — local versioned prompt registry - `PluginRegistry` — entry-point-based plugin system Graph Checkpointers: - `RedisCheckpointer` — Redis checkpoint backend with optional TTL - `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT 1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers * fix: resolve lint and type-check errors for CI - Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059 - Rename BudgetExceeded → BudgetExceededError (N818) - Fix PromptHub.list/versions return type annotations with builtins.list - Simplify PluginRegistry to use entry_points(group=...) directly - Update plugin tests to match new entry_points API - Remove unused custom AsyncMock class from tests - Clean up integration test imports * fix: CI fixes — formatting, version assertions, deptry ignore - Run ruff format on all files - Update version assertions in old test files (1.1.0 → 1.2.0) - Add psycopg to deptry DEP002 ignore (lazy import) - Fix plugin test mocks to match entry_points(group=...) API
AmitoVrito
added a commit
that referenced
this pull request
Apr 5, 2026
* feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI CLI: - `synapsekit serve` — one-command FastAPI deployment with auto-detection - `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes Cost Intelligence: - `CostTracker` — hierarchical cost attribution with scope context manager - `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker Evaluation: - `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds Prompts & Plugins: - `PromptHub` — local versioned prompt registry - `PluginRegistry` — entry-point-based plugin system Graph Checkpointers: - `RedisCheckpointer` — Redis checkpoint backend with optional TTL - `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT 1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers * fix: resolve lint and type-check errors for CI - Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059 - Rename BudgetExceeded → BudgetExceededError (N818) - Fix PromptHub.list/versions return type annotations with builtins.list - Simplify PluginRegistry to use entry_points(group=...) directly - Update plugin tests to match new entry_points API - Remove unused custom AsyncMock class from tests - Clean up integration test imports * fix: CI fixes — formatting, version assertions, deptry ignore - Run ruff format on all files - Update version assertions in old test files (1.1.0 → 1.2.0) - Add psycopg to deptry DEP002 ignore (lazy import) - Fix plugin test mocks to match entry_points(group=...) API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
synapsekit serve— one-command FastAPI deployment with auto-detection for RAG, Graph, and Agent appssynapsekit test— eval CLI that discovers@eval_case-decorated functions, enforces thresholds, CI-friendly exit codesCostTracker— hierarchical cost attribution with scope context manager and COST_TABLE lookupBudgetGuard— per-request/per-user/daily spending limits with circuit breaker (CLOSED → OPEN → HALF_OPEN)@eval_case— decorator for eval test cases withmin_score,max_cost_usd,max_latency_msboundsPromptHub— local versioned prompt registry (~/.synapsekit/prompts/)PluginRegistry— entry-point-based plugin system (synapsekit.pluginsgroup)RedisCheckpointer— Redis graph checkpoint backend with optional TTLPostgresCheckpointer— PostgreSQL graph checkpoint backend with UPSERT + JSONBNew dependencies (optional)
serve = ["fastapi>=0.110", "uvicorn[standard]>=0.29"]postgres = ["psycopg[binary]>=3.1"]Test plan
test_v120_features.py(all passing)test_v120_integration.py(all passing)from synapsekit import CostTracker, BudgetGuard, eval_case, PromptHub, PluginRegistry, RedisCheckpointer, PostgresCheckpointer