@cartanova/qgrid-cli 2.14.1 → 2.15.1

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.
Files changed (23) hide show
  1. package/bundle/dist/utils/providers/common/model-cost.js +10 -1
  2. package/bundle/dist/utils/providers/openai/openai-dispatcher.js +3 -2
  3. package/bundle/src/utils/providers/common/effort.test.ts +1 -0
  4. package/bundle/src/utils/providers/common/model-cost.test.ts +5 -0
  5. package/bundle/src/utils/providers/common/model-cost.ts +12 -0
  6. package/bundle/src/utils/providers/openai/openai-dispatcher.test.ts +7 -6
  7. package/bundle/src/utils/providers/openai/openai-dispatcher.ts +3 -1
  8. package/bundle/web-dist/client/assets/{index-jExDfi8j.js → index-JkBenvsH.js} +3 -3
  9. package/bundle/web-dist/client/assets/{logs-ol_IGjcT.js → logs-UozX8VD5.js} +1 -1
  10. package/bundle/web-dist/client/assets/{monit-CGTRk2U0.js → monit-CQ6cVvzc.js} +1 -1
  11. package/bundle/web-dist/client/assets/{routes-D9l20OWa.js → routes-BkeaYiBN.js} +1 -1
  12. package/bundle/web-dist/client/assets/{settings-D2zIv0xR.js → settings-DJdBEFoL.js} +1 -1
  13. package/bundle/web-dist/client/assets/{show-DefwCScC.js → show-CcKkiy8Y.js} +1 -1
  14. package/bundle/web-dist/client/assets/{tokens-CbmIxMZ9.js → tokens-DuLrdLMa.js} +1 -1
  15. package/bundle/web-dist/client/assets/{use-oauth-login-flow-CEufhZcR.js → use-oauth-login-flow-CFJY-N99.js} +1 -1
  16. package/bundle/web-dist/client/assets/{use-update-token-mutation-E5ey27W6.js → use-update-token-mutation-CrEi7wJa.js} +1 -1
  17. package/bundle/web-dist/client/index.html +1 -1
  18. package/bundle/web-dist/server/entry-server.generated.js +2 -1
  19. package/package.json +1 -1
  20. package/skills/qgrid/references/ai-sdk-provider-contract.md +1 -1
  21. package/skills/qgrid/references/docs-workflow.md +10 -0
  22. package/skills/qgrid/references/openai-codex-runtime.md +22 -5
  23. package/skills/qgrid/references/sonamu-api-web-flow.md +1 -1
@@ -53,7 +53,7 @@ async function tickTimer(): Promise<void> {
53
53
  }
54
54
 
55
55
  describe("OpenAIDispatcher direct runtime", () => {
56
- it.each(["gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5"])(
56
+ it.each(["gpt-6.1-terra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5"])(
57
57
  "disables thinking and omits summaries through generate/stream for %s",
58
58
  async (model) => {
59
59
  const run = vi.fn((options: OpenAIResponsesOptions) => {
@@ -1008,13 +1008,14 @@ describe("effort 어휘 해석 (Codex 카탈로그 기준)", () => {
1008
1008
  return mapped?.reasoning?.effort;
1009
1009
  }
1010
1010
 
1011
- it("모델이 지원하는 값은 그대로 보내고, 상한 초과·공개 API 어휘는 reasoning 에서 빼 백엔드 기본값을 쓴다", async () => {
1012
- await expect(mappedEffortFor("gpt-6-astra", "ultra")).resolves.toBe("ultra");
1013
- await expect(mappedEffortFor("gpt-6.1-sol", "ultra")).resolves.toBe("ultra");
1014
- await expect(mappedEffortFor("gpt-6-sol", "ultra")).resolves.toBe("ultra");
1011
+ it("모델이 지원하는 값은 그대로 보내되 ultra 는 wire 상한인 max 로 보내고, 상한 초과·공개 API 어휘는 reasoning 에서 빼 백엔드 기본값을 쓴다", async () => {
1012
+ await expect(mappedEffortFor("gpt-6-astra", "ultra")).resolves.toBe("max");
1013
+ await expect(mappedEffortFor("gpt-6.1-sol", "ultra")).resolves.toBe("max");
1014
+ await expect(mappedEffortFor("gpt-6.1-terra", "ultra")).resolves.toBe("max");
1015
+ await expect(mappedEffortFor("gpt-6-sol", "ultra")).resolves.toBe("max");
1015
1016
  await expect(mappedEffortFor("gpt-6-luna", "max")).resolves.toBe("max");
1016
1017
  await expect(mappedEffortFor("gpt-6-luna", "ultra")).resolves.toBeUndefined();
1017
- await expect(mappedEffortFor("gpt-5.6-terra", "ultra")).resolves.toBe("ultra");
1018
+ await expect(mappedEffortFor("gpt-5.6-terra", "ultra")).resolves.toBe("max");
1018
1019
  await expect(mappedEffortFor("gpt-5.5", "xhigh")).resolves.toBe("xhigh");
1019
1020
  await expect(mappedEffortFor("gpt-5.5", "max")).resolves.toBeUndefined();
1020
1021
  await expect(mappedEffortFor("gpt-5.6-terra", "minimal")).resolves.toBeUndefined();
@@ -35,6 +35,7 @@ const logger = getLogger(["qgrid", "openai-dispatcher"]);
35
35
 
36
36
  // Verified with the subscription Responses backend; public API support is not sufficient.
37
37
  const THINKING_OFF_MODELS = new Set([
38
+ "gpt-6.1-terra",
38
39
  "gpt-6-sol",
39
40
  "gpt-6-luna",
40
41
  "gpt-5.6-sol",
@@ -189,7 +190,8 @@ function asReasoning(req: GenerateRequest): OpenAIReasoning | undefined {
189
190
 
190
191
  const reasoning: OpenAIReasoning = {};
191
192
 
192
- if (effort) reasoning.effort = effort;
193
+ // ultra is a Codex client mode (sub-agent delegation), not a wire value; the backend accepts up to max.
194
+ if (effort) reasoning.effort = effort === "ultra" ? "max" : effort;
193
195
 
194
196
  if (summary) reasoning.summary = summary;
195
197