@sideboard-ai/core 0.1.263 → 0.1.264

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.
@@ -1418,14 +1418,18 @@ function cursorDeltaToEvents(update) {
1418
1418
  function buildCursorModelSelection(model, opts) {
1419
1419
  const raw = model && model.trim() || "";
1420
1420
  const id = !raw || raw.toLowerCase() === "auto" || raw.toLowerCase() === "default" ? "default" : raw;
1421
+ const isGrok47 = /^grok-4\.7(?:$|-)/i.test(id);
1421
1422
  const params = [];
1422
- if (/^grok-4\.7(?:$|-)/i.test(id)) {
1423
+ if (isGrok47) {
1423
1424
  params.push({ id: "context", value: "256k" });
1424
1425
  }
1425
1426
  const effort = (opts.effort ?? "").trim().toLowerCase();
1426
1427
  const normalized = effort === "normal" ? "medium" : effort === "low" || effort === "medium" || effort === "high" || effort === "xhigh" || effort === "max" ? effort : "";
1427
1428
  if (normalized) {
1428
- params.push({ id: "effort", value: normalized });
1429
+ params.push({
1430
+ id: isGrok47 ? "reasoning_effort" : "effort",
1431
+ value: isGrok47 && normalized === "max" ? "xhigh" : normalized
1432
+ });
1429
1433
  }
1430
1434
  params.push({ id: "fast", value: opts.fast ? "true" : "false" });
1431
1435
  return { id, params };
@@ -277,14 +277,18 @@ function slicedReadCustomToolConfig(cwd) {
277
277
  function buildCursorModelSelection(model, opts) {
278
278
  const raw = model && model.trim() || "";
279
279
  const id = !raw || raw.toLowerCase() === "auto" || raw.toLowerCase() === "default" ? "default" : raw;
280
+ const isGrok47 = /^grok-4\.7(?:$|-)/i.test(id);
280
281
  const params = [];
281
- if (/^grok-4\.7(?:$|-)/i.test(id)) {
282
+ if (isGrok47) {
282
283
  params.push({ id: "context", value: "256k" });
283
284
  }
284
285
  const effort = (opts.effort ?? "").trim().toLowerCase();
285
286
  const normalized = effort === "normal" ? "medium" : effort === "low" || effort === "medium" || effort === "high" || effort === "xhigh" || effort === "max" ? effort : "";
286
287
  if (normalized) {
287
- params.push({ id: "effort", value: normalized });
288
+ params.push({
289
+ id: isGrok47 ? "reasoning_effort" : "effort",
290
+ value: isGrok47 && normalized === "max" ? "xhigh" : normalized
291
+ });
288
292
  }
289
293
  params.push({ id: "fast", value: opts.fast ? "true" : "false" });
290
294
  return { id, params };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/core",
3
- "version": "0.1.263",
3
+ "version": "0.1.264",
4
4
  "description": "Sideboard core — orchestration, agents, git worktrees, MCP server",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",