@super-one/cli 0.62.1-alpha → 0.62.2-alpha

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/MANIFEST.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.62.1-alpha",
3
+ "version": "0.62.2-alpha",
4
4
  "kind": "npm",
5
5
  "minNodeMajor": 20,
6
- "builtAt": "2026-09-05T11:16:43.350Z"
6
+ "builtAt": "2026-09-07T00:09:56.921Z"
7
7
  }
package/lib/cli.mjs CHANGED
@@ -23886,7 +23886,7 @@ function lastMergeTargetIndex(content, delta) {
23886
23886
  }
23887
23887
  return -1;
23888
23888
  }
23889
- function applyContentDelta(content, delta) {
23889
+ function applyContentDelta(content, delta, now = Date.now) {
23890
23890
  if (delta.type === "text") {
23891
23891
  const idx = lastMergeTargetIndex(content, delta);
23892
23892
  const target = idx === -1 ? void 0 : content[idx];
@@ -23906,7 +23906,7 @@ function applyContentDelta(content, delta) {
23906
23906
  if (idx !== -1) {
23907
23907
  const existing = content[idx];
23908
23908
  if (existing.type !== "tool_use") {
23909
- return content.map((b3, i) => i === idx ? { ...delta, startedAt: Date.now() } : b3);
23909
+ return content.map((b3, i) => i === idx ? { ...delta, startedAt: now() } : b3);
23910
23910
  }
23911
23911
  const mergedInput = mergeToolUseInputJson(existing.input, delta.input);
23912
23912
  const mergedSummary = pickRicherToolSummary(
@@ -23926,7 +23926,7 @@ function applyContentDelta(content, delta) {
23926
23926
  toolFilePath: delta.toolFilePath || existing.toolFilePath
23927
23927
  } : b3);
23928
23928
  }
23929
- return [...content, { ...delta, startedAt: Date.now() }];
23929
+ return [...content, { ...delta, startedAt: now() }];
23930
23930
  }
23931
23931
  if (delta.type === "tool_result") {
23932
23932
  const updated = content.map(
@@ -61670,20 +61670,27 @@ var init_cursor_store = __esm({
61670
61670
  }
61671
61671
  });
61672
61672
 
61673
- // ../../packages/cursor/src/cursor-model-selection.ts
61674
- function parseCursorContextWindow(raw) {
61673
+ // ../../packages/shared/src/model-option-params.ts
61674
+ function parseCatalogContextWindow(raw) {
61675
61675
  if (!raw) return null;
61676
61676
  const match = /^(\d+(?:\.\d+)?)\s*([km])?$/i.exec(raw.trim());
61677
61677
  if (!match) return null;
61678
61678
  const amount = Number(match[1]);
61679
61679
  if (!Number.isFinite(amount) || amount <= 0) return null;
61680
61680
  const unit = match[2]?.toLowerCase();
61681
- const multiplier = unit === "m" ? 1e6 : unit === "k" ? 1e3 : 1;
61682
- return Math.round(amount * multiplier);
61681
+ return Math.round(amount * (unit === "m" ? 1e6 : unit === "k" ? 1e3 : 1));
61683
61682
  }
61683
+ var init_model_option_params = __esm({
61684
+ "../../packages/shared/src/model-option-params.ts"() {
61685
+ "use strict";
61686
+ }
61687
+ });
61688
+
61689
+ // ../../packages/cursor/src/cursor-model-selection.ts
61684
61690
  var init_cursor_model_selection = __esm({
61685
61691
  "../../packages/cursor/src/cursor-model-selection.ts"() {
61686
61692
  "use strict";
61693
+ init_model_option_params();
61687
61694
  }
61688
61695
  });
61689
61696
 
@@ -61857,7 +61864,7 @@ function formatCursorError(error51) {
61857
61864
  }
61858
61865
  function resolveContextWindow(modelSelection) {
61859
61866
  const contextParam = modelSelection?.params?.find((p3) => p3.id === "context");
61860
- return parseCursorContextWindow(contextParam?.value);
61867
+ return parseCatalogContextWindow(contextParam?.value);
61861
61868
  }
61862
61869
  async function createCursorRuntime(opts) {
61863
61870
  const log2 = {
@@ -70409,8 +70416,8 @@ import { fileURLToPath } from "node:url";
70409
70416
  function resolveCliReleaseVersion() {
70410
70417
  const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
70411
70418
  if (fromEnv) return fromEnv;
70412
- if ("0.62.1-alpha".trim()) {
70413
- return "0.62.1-alpha".trim();
70419
+ if ("0.62.2-alpha".trim()) {
70420
+ return "0.62.2-alpha".trim();
70414
70421
  }
70415
70422
  const fromDist = readDistManifestVersion();
70416
70423
  if (fromDist) return fromDist;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.62.1-alpha",
3
+ "version": "0.62.2-alpha",
4
4
  "description": "SuperOne headless node CLI — remote execution environment (RPC, workspaces, sessions).",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",