roadmodel 0.2.59__tar.gz → 0.2.60__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.
- {roadmodel-0.2.59 → roadmodel-0.2.60}/PKG-INFO +1 -1
- {roadmodel-0.2.59 → roadmodel-0.2.60}/pyproject.toml +1 -1
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/__init__.py +1 -1
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/recommend.py +46 -3
- {roadmodel-0.2.59 → roadmodel-0.2.60}/.gitignore +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/LICENSE +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/NOTICE +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/README.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/benchmarks.json +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/catalog.json +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/model-selector.txt +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/model-tier-cost-scale.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/settings-display.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/templates/phase-roadmap-template.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/templates/planning-kit-how-to-use.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/templates/project-roadmap-template.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/templates/prompt-phase-roadmap.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/templates/prompt-project-roadmap.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/docs/user-context.example.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/hatch_build.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/infra/README.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/infra/gcp-killswitch/README.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/infra/supabase/README.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/benchmarks.json +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/catalog.json +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/model-selector.txt +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/model-tier-cost-scale.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/phase-roadmap-template.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/planning-kit-how-to-use.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/project-roadmap-template.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/prompt-phase-roadmap.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/prompt-project-roadmap.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/settings-display.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/roadmodel/data/user-context.example.md +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/scripts/update_projects.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/__main__.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/cli.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/config.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/cost.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/errors.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/mcp_server.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/__init__.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/anthropic.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/google.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/openai.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/openai_compatible.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/providers/registry.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/scoring.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/usage.py +0 -0
- {roadmodel-0.2.59 → roadmodel-0.2.60}/src/roadmodel/user_context.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: roadmodel
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.60
|
|
4
4
|
Summary: BYO-key CLI that recommends the right AI model, platform, and settings for a prompt.
|
|
5
5
|
Project-URL: Homepage, https://roadmodel.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/nathanramoscfa/roadmodel
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# src/roadmodel/__init__.py
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.60"
|
|
@@ -1320,6 +1320,46 @@ def _enforce_table_row(ladder: dict[str, dict[str, str]], row: scoring.Ladder) -
|
|
|
1320
1320
|
return rewritten
|
|
1321
1321
|
|
|
1322
1322
|
|
|
1323
|
+
# Surfaces whose effort dial reads exactly the scorer's levels, so code can set
|
|
1324
|
+
# the row's level verbatim. Claude Code's ladder is Low / Medium / High / XHigh /
|
|
1325
|
+
# Max, with Ultracode above Max. Elsewhere the dial has its own words (Codex's
|
|
1326
|
+
# Intelligence, Gemini's thinking levels) and the engine maps to the nearest.
|
|
1327
|
+
_NATIVE_EFFORT_PLATFORMS: Final = frozenset({"claude-code"})
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
def _effort_level(value: str) -> str:
|
|
1331
|
+
level = re.sub(r"[\s_-]+", "", value.strip().lower())
|
|
1332
|
+
return {"extrahigh": "xhigh"}.get(level, level)
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
def _enforce_table_effort(ladder: dict[str, dict[str, str]], row: scoring.Ladder) -> list[str]:
|
|
1336
|
+
"""On a surface whose dial reads the scorer's levels, make every rung's
|
|
1337
|
+
EFFORT the row's (Ultracode stands where the row says Max) and rewrite its
|
|
1338
|
+
EFFORT segment to match. Two rungs on one model are told apart by effort
|
|
1339
|
+
alone, so an engine that copies the model but not the effort makes them
|
|
1340
|
+
identical. Returns the tiers whose effort it set."""
|
|
1341
|
+
adjusted: list[str] = []
|
|
1342
|
+
for tier in _LADDER_TIERS:
|
|
1343
|
+
base = ladder[tier]
|
|
1344
|
+
rung = row.rungs[tier]
|
|
1345
|
+
if rung.candidate.platform_id not in _NATIVE_EFFORT_PLATFORMS:
|
|
1346
|
+
continue
|
|
1347
|
+
written = _effort_level(base.get("effort", ""))
|
|
1348
|
+
if written == rung.effort or (rung.effort == "max" and written == "ultracode"):
|
|
1349
|
+
continue
|
|
1350
|
+
adjusted.append(tier)
|
|
1351
|
+
effort = _EFFORT_WORDS.get(rung.effort, rung.effort)
|
|
1352
|
+
base["effort"] = effort
|
|
1353
|
+
sections = _split_rationale_sections(base.get("rationale", ""))
|
|
1354
|
+
if sections:
|
|
1355
|
+
base["rationale"] = (
|
|
1356
|
+
f"TASK: {sections['task']} PICK: {sections['pick']} EFFORT: {effort} is the "
|
|
1357
|
+
f"effort the {scoring.TIER_BUDGET[tier]} posture sets for a "
|
|
1358
|
+
f"{row.task.complexity}-complexity {row.task.category} task."
|
|
1359
|
+
)
|
|
1360
|
+
return adjusted
|
|
1361
|
+
|
|
1362
|
+
|
|
1323
1363
|
def _ladder_table_for(
|
|
1324
1364
|
user_context_text: str, unavailable_models: list[str] | None
|
|
1325
1365
|
) -> dict[str, scoring.Ladder]:
|
|
@@ -1356,9 +1396,11 @@ def recommend_structured_ladder(
|
|
|
1356
1396
|
The picks come from this user's own cost/quality frontier: the scorer's
|
|
1357
1397
|
ladder table (scoring.ladder_table) goes into the prompt, the engine
|
|
1358
1398
|
classifies the task and copies its row, and every rung is then made the
|
|
1359
|
-
row's (:func:`_enforce_table_row`)
|
|
1360
|
-
|
|
1361
|
-
|
|
1399
|
+
row's (:func:`_enforce_table_row`), effort included where the surface's
|
|
1400
|
+
dial reads the scorer's levels (:func:`_enforce_table_effort`). ``guard``
|
|
1401
|
+
then reports ``mode: "frontier"``, the row, how it was found, the tiers
|
|
1402
|
+
rewritten and the tiers whose effort was set, and is healthy: two rungs on
|
|
1403
|
+
one model are the table's answer, not a collapse.
|
|
1362
1404
|
Without a table, or a response the table cannot place, the engine's own
|
|
1363
1405
|
picks stand under the tier-distinctness guard as before.
|
|
1364
1406
|
|
|
@@ -1404,6 +1446,7 @@ def recommend_structured_ladder(
|
|
|
1404
1446
|
"classification": key,
|
|
1405
1447
|
"found": found,
|
|
1406
1448
|
"rewritten": _enforce_table_row(ladder, row),
|
|
1449
|
+
"effort_set": _enforce_table_effort(ladder, row),
|
|
1407
1450
|
"frontier": [p.candidate.model_name for p in row.frontier],
|
|
1408
1451
|
}
|
|
1409
1452
|
else:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|