tickmarkr 1.90.4 → 1.90.5
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.
|
@@ -89,12 +89,20 @@ function providerModels(modelsDev, preferred) {
|
|
|
89
89
|
: [];
|
|
90
90
|
// Price is provider-specific. A provider-qualified query must never borrow an identically named
|
|
91
91
|
// model from another provider, where subscription and metered costs can differ materially.
|
|
92
|
-
|
|
92
|
+
// D-OBS-11 follow-up: that rule presumes the hinted provider EXISTS in the catalog. A hint that
|
|
93
|
+
// matches nothing (kimi's "moonshot" vs the catalog's "moonshotai"/"kimi-for-coding"; cursor has
|
|
94
|
+
// no provider at all) used to ZERO the search space and blanket-uncover the whole adapter.
|
|
95
|
+
// Fail open to the full scan instead — advisory evidence with a visible models.dev id beats none.
|
|
96
|
+
const selected = preferred && preferredEntries.length > 0 ? preferredEntries : entries;
|
|
93
97
|
return selected
|
|
94
98
|
.map(([, provider]) => record(record(provider)?.models))
|
|
95
99
|
.filter((models) => models !== undefined);
|
|
96
100
|
}
|
|
97
101
|
function findModelsDevModel(catalog, provider, modelId) {
|
|
102
|
+
// CLI namespaces prefix their catalog ids (kimi-code/k3 vs catalog key k3; omp's openai/gpt-4):
|
|
103
|
+
// after exact key/id misses, retry with the bare segment after the last "/". Deterministic
|
|
104
|
+
// provider order; first hit wins — acceptable for advisory evidence, never routing.
|
|
105
|
+
const bare = modelId.includes("/") ? modelId.slice(modelId.lastIndexOf("/") + 1) : undefined;
|
|
98
106
|
for (const models of providerModels(catalog.modelsDev, provider)) {
|
|
99
107
|
const direct = record(models[modelId]);
|
|
100
108
|
if (direct)
|
|
@@ -103,6 +111,13 @@ function findModelsDevModel(catalog, provider, modelId) {
|
|
|
103
111
|
if (byId)
|
|
104
112
|
return byId;
|
|
105
113
|
}
|
|
114
|
+
if (bare) {
|
|
115
|
+
for (const models of providerModels(catalog.modelsDev, provider)) {
|
|
116
|
+
const direct = record(models[bare]);
|
|
117
|
+
if (direct)
|
|
118
|
+
return direct;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
106
121
|
return undefined;
|
|
107
122
|
}
|
|
108
123
|
function artificialAnalysisRows(value) {
|
|
@@ -11,8 +11,9 @@ export const MODEL_STALE_DAYS = 30;
|
|
|
11
11
|
const DAY_MS = 86400000;
|
|
12
12
|
// cursor-agent 2026.07.08 reports 193 mostly-parameterized ids (e.g. gpt-5.3-codex-high-fast); filter the `auto`
|
|
13
13
|
// pseudo-model + effort/speed variant suffixes from the unconfigured-lint aggregation ONLY — doctor.json keeps the
|
|
14
|
-
// raw list (verified 2026-07-10). Data stays raw; lints stay signal.
|
|
15
|
-
|
|
14
|
+
// raw list (verified 2026-07-10). Data stays raw; lints stay signal. -max/-none/-thinking joined the suffix set
|
|
15
|
+
// 2026-08-12 (D-OBS-11: cursor's residual lint list was still mostly effort variants of configured bases).
|
|
16
|
+
const LINT_VARIANT_RE = /^auto$|-(fast|minimal|none|low|medium|high|xhigh|max|thinking)$/;
|
|
16
17
|
const LINT_CAP = 5;
|
|
17
18
|
const TTY_LINT_CAP = 3;
|
|
18
19
|
const DEFAULT_STATE_DIR = ".tickmarkr";
|