johns-harness 2026.11.19 → 2026.11.20
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.
- package/CHANGELOG.md +5 -0
- package/dist/compact-B247y5Qt.js +6 -0
- package/dist/pi-embedded-C6ITuRXf.js +6 -0
- package/dist/pi-embedded-DoQsYfIY.js +6 -0
- package/dist/plugin-sdk/dispatch-BP0viZiL.js +6 -0
- package/dist/plugin-sdk/dispatch-CQsjmw7g.js +6 -0
- package/dist/plugin-sdk/dispatch-Cerq29sy.js +6 -0
- package/dist/plugin-sdk/dispatch-Cndjtt0g.js +6 -0
- package/dist/plugin-sdk/dispatch-UogiJYul.js +6 -0
- package/dist/plugin-sdk/reply-DbZnH8-h.js +6 -0
- package/dist/reply-C5LKjXcC.js +6 -0
- package/docs/MODELS.md +3 -0
- package/package.json +1 -1
- package/scripts/models-sync.mjs +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026.11.20
|
|
4
|
+
|
|
5
|
+
- Fixed a 400 error when GPT-6.2 Astra or Sol fell back from a Codex subscription to the native OpenAI API. A legacy Chat Completions setting could send function tools and reasoning to the wrong endpoint. Both models now use `/v1/responses` on the native API and keep the requested reasoning level. Subscription routing, custom endpoints, and older models are unchanged.
|
|
6
|
+
- Rollback: `npm i -g johns-harness@2026.11.19`.
|
|
7
|
+
|
|
3
8
|
## 2026.11.19
|
|
4
9
|
|
|
5
10
|
### Gemini 4 Neon native chat and xhigh
|
package/dist/compact-B247y5Qt.js
CHANGED
|
@@ -1858,6 +1858,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
1858
1858
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
1859
1859
|
}
|
|
1860
1860
|
function normalizeModelCompat(model) {
|
|
1861
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1862
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
1863
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
1864
|
+
return { ...model, api: "openai-responses" };
|
|
1865
|
+
}
|
|
1866
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
1861
1867
|
const baseUrl = model.baseUrl ?? "";
|
|
1862
1868
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
1863
1869
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -1713,6 +1713,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
1713
1713
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
1714
1714
|
}
|
|
1715
1715
|
function normalizeModelCompat(model) {
|
|
1716
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1717
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
1718
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
1719
|
+
return { ...model, api: "openai-responses" };
|
|
1720
|
+
}
|
|
1721
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
1716
1722
|
const baseUrl = model.baseUrl ?? "";
|
|
1717
1723
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
1718
1724
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -1791,6 +1791,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
1791
1791
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
1792
1792
|
}
|
|
1793
1793
|
function normalizeModelCompat(model) {
|
|
1794
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1795
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
1796
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
1797
|
+
return { ...model, api: "openai-responses" };
|
|
1798
|
+
}
|
|
1799
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
1794
1800
|
const baseUrl = model.baseUrl ?? "";
|
|
1795
1801
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
1796
1802
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -1720,6 +1720,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
1720
1720
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
1721
1721
|
}
|
|
1722
1722
|
function normalizeModelCompat(model) {
|
|
1723
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1724
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
1725
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
1726
|
+
return { ...model, api: "openai-responses" };
|
|
1727
|
+
}
|
|
1728
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
1723
1729
|
const baseUrl = model.baseUrl ?? "";
|
|
1724
1730
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
1725
1731
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -1962,6 +1962,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
1962
1962
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
1963
1963
|
}
|
|
1964
1964
|
function normalizeModelCompat(model) {
|
|
1965
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
1966
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
1967
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
1968
|
+
return { ...model, api: "openai-responses" };
|
|
1969
|
+
}
|
|
1970
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
1965
1971
|
const baseUrl = model.baseUrl ?? "";
|
|
1966
1972
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
1967
1973
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -4044,6 +4044,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
4044
4044
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
4045
4045
|
}
|
|
4046
4046
|
function normalizeModelCompat(model) {
|
|
4047
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
4048
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
4049
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
4050
|
+
return { ...model, api: "openai-responses" };
|
|
4051
|
+
}
|
|
4052
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
4047
4053
|
const baseUrl = model.baseUrl ?? "";
|
|
4048
4054
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
4049
4055
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -2411,6 +2411,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
2411
2411
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
2412
2412
|
}
|
|
2413
2413
|
function normalizeModelCompat(model) {
|
|
2414
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
2415
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
2416
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
2417
|
+
return { ...model, api: "openai-responses" };
|
|
2418
|
+
}
|
|
2419
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
2414
2420
|
const baseUrl = model.baseUrl ?? "";
|
|
2415
2421
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
2416
2422
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -2026,6 +2026,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
2026
2026
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
2027
2027
|
}
|
|
2028
2028
|
function normalizeModelCompat(model) {
|
|
2029
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
2030
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
2031
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
2032
|
+
return { ...model, api: "openai-responses" };
|
|
2033
|
+
}
|
|
2034
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
2029
2035
|
const baseUrl = model.baseUrl ?? "";
|
|
2030
2036
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
2031
2037
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
|
@@ -9976,6 +9976,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
9976
9976
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
9977
9977
|
}
|
|
9978
9978
|
function normalizeModelCompat(model) {
|
|
9979
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
9980
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
9981
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
9982
|
+
return { ...model, api: "openai-responses" };
|
|
9983
|
+
}
|
|
9984
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
9979
9985
|
const baseUrl = model.baseUrl ?? "";
|
|
9980
9986
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
9981
9987
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
package/dist/reply-C5LKjXcC.js
CHANGED
|
@@ -7364,6 +7364,12 @@ function normalizeAnthropicBaseUrl(baseUrl) {
|
|
|
7364
7364
|
return baseUrl.replace(/\/v1\/?$/, "");
|
|
7365
7365
|
}
|
|
7366
7366
|
function normalizeModelCompat(model) {
|
|
7367
|
+
/* JOHNNESS_MODELS_MASTER:BEGIN native responses (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
|
|
7368
|
+
if (model.provider === "openai" && isOpenAiCompletionsModel(model)
|
|
7369
|
+
&& ["gpt-6.2-astra","gpt-6.2-sol"].includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {
|
|
7370
|
+
return { ...model, api: "openai-responses" };
|
|
7371
|
+
}
|
|
7372
|
+
/* JOHNNESS_MODELS_MASTER:END */
|
|
7367
7373
|
const baseUrl = model.baseUrl ?? "";
|
|
7368
7374
|
if (isAnthropicMessagesModel(model) && baseUrl) {
|
|
7369
7375
|
const normalised = normalizeAnthropicBaseUrl(baseUrl);
|
package/docs/MODELS.md
CHANGED
|
@@ -49,6 +49,9 @@ markers. Never edit inside them. The older hand-written literals stay in place b
|
|
|
49
49
|
live GPT-6.2 subscription calls reject that field. Codex retains its prompt-cache key and
|
|
50
50
|
backend-controlled lifetime. These rules are independent, serving-provider-specific and
|
|
51
51
|
generated by the existing master layer; unruled models keep their historical behavior.
|
|
52
|
+
On the public OpenAI endpoint, the embedded resolver keeps models with these Responses
|
|
53
|
+
rules on Responses even if legacy config selects Chat Completions. Custom endpoints and
|
|
54
|
+
subscription transports are not rewritten.
|
|
52
55
|
First use: GPT-6.2 Astra/Sol (2026-11-18), both validated with a real subscription function
|
|
53
56
|
call and tool-result replay. Prefix edits can still drop later reasoning; this does not add
|
|
54
57
|
an append-only transcript engine, configuration-update items or native compaction.
|
package/package.json
CHANGED
package/scripts/models-sync.mjs
CHANGED
|
@@ -54,6 +54,12 @@ export const ALIAS14 = [
|
|
|
54
54
|
"dist/plugin-sdk/model-auth-DVyo6JSX.js", "dist/plugin-sdk/model-auth-kiHYHGrs.js",
|
|
55
55
|
"dist/plugin-sdk/model-selection-Dbj4jDYM.js",
|
|
56
56
|
];
|
|
57
|
+
// Runtime and plugin SDK each inline the final embedded model resolver.
|
|
58
|
+
const RESOLVER10 = [
|
|
59
|
+
"dist/reply-C5LKjXcC.js", "dist/compact-B247y5Qt.js", "dist/pi-embedded-C6ITuRXf.js", "dist/pi-embedded-DoQsYfIY.js",
|
|
60
|
+
"dist/plugin-sdk/reply-DbZnH8-h.js", "dist/plugin-sdk/dispatch-BP0viZiL.js", "dist/plugin-sdk/dispatch-CQsjmw7g.js",
|
|
61
|
+
"dist/plugin-sdk/dispatch-Cerq29sy.js", "dist/plugin-sdk/dispatch-Cndjtt0g.js", "dist/plugin-sdk/dispatch-UogiJYul.js",
|
|
62
|
+
];
|
|
57
63
|
export const IMAGE_TOOL = "dist/image-generate.js";
|
|
58
64
|
export const XHIGH12 = [
|
|
59
65
|
"dist/thinking-B5B36ffe.js", "dist/thinking-BYwvlJ3S.js", "dist/thinking-CAzdgmNV.js", "dist/thinking-DykY2Fzj.js",
|
|
@@ -496,6 +502,16 @@ function aliasBlock(master) {
|
|
|
496
502
|
return HEAD("aliases") + `const JOHNNESS_MASTER_ALIASES = ${JSON.stringify(resolvedAliases(master))};\n`
|
|
497
503
|
+ "for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;\n" + TAIL();
|
|
498
504
|
}
|
|
505
|
+
// A legacy provider-wide Chat Completions setting can hide the catalog transport on the
|
|
506
|
+
// OpenAI API sibling. Models with Responses wire rules need their adapter on direct OpenAI.
|
|
507
|
+
function nativeResponsesBlock(master) {
|
|
508
|
+
const ids = Object.entries(master.providers.openai).filter(([, card]) => card.api === "openai-responses" && card.harness?.responses).map(([id]) => id);
|
|
509
|
+
return HEAD("native responses", "\t")
|
|
510
|
+
+ `\tif (model.provider === "openai" && isOpenAiCompletionsModel(model)\n`
|
|
511
|
+
+ `\t\t&& ${JSON.stringify(ids)}.includes(model.id) && isOpenAINativeEndpoint(model.baseUrl)) {\n`
|
|
512
|
+
+ `\t\treturn { ...model, api: "openai-responses" };\n\t}\n`
|
|
513
|
+
+ TAIL("\t");
|
|
514
|
+
}
|
|
499
515
|
function imageAliasBlock(master) {
|
|
500
516
|
return HEAD("image aliases") + `for (const [alias, ref] of Object.entries(${JSON.stringify(imageAliasesOf(master))})) IMAGE_MODEL_ALIAS_TABLE[alias] = ref;\n` + TAIL();
|
|
501
517
|
}
|
|
@@ -553,6 +569,7 @@ export function targets(master) {
|
|
|
553
569
|
for (const rel of [`${PI_VENDOR}/providers/openai-responses.js`, `${PI_INSTALLED}/providers/openai-responses.js`, SNAPSHOT]) {
|
|
554
570
|
out.push({ rel, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildParams"))] });
|
|
555
571
|
}
|
|
572
|
+
for (const rel of RESOLVER10) out.push({ rel, edits: [insertAfter("function normalizeModelCompat(model) {\n", nativeResponsesBlock(master))] });
|
|
556
573
|
for (const rel of ALIAS14) out.push({ rel, edits: [insertBefore("const DEFAULT_MODEL_COST = {", aliasBlock(master))] });
|
|
557
574
|
for (const rel of XHIGH12) out.push({ rel, edits: [afterArray("const XHIGH_MODEL_REFS = [", xhighRefsBlock(master))] });
|
|
558
575
|
out.push({ rel: IMAGE_TOOL, edits: [insertBefore("export const IMAGE_MODEL_ALIASES = Object.freeze(IMAGE_MODEL_ALIAS_TABLE);\n", imageAliasBlock(master)), insertBefore("export const DEFAULT_IMAGE_GENERATION_MODEL = Object.freeze({\n", imageRuntimeBlock(master))] });
|