@maximoai/maximo-syntax-cli 0.1.22 → 0.1.23

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 (2) hide show
  1. package/dist/cli.mjs +49 -29
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -123670,7 +123670,7 @@ var init_metadata = __esm(() => {
123670
123670
  isMaximoAiAuth: isMaximoAISubscriber(),
123671
123671
  version: "99.0.0",
123672
123672
  versionBase: getVersionBase(),
123673
- buildTime: "2026-08-03T11:50:31.866Z",
123673
+ buildTime: "2026-08-03T12:06:47.158Z",
123674
123674
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
123675
123675
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
123676
123676
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -147430,27 +147430,18 @@ function drainAdaptive(node, pending, innerHeight) {
147430
147430
  const step = abs <= SCROLL_INSTANT_THRESHOLD ? abs : abs < SCROLL_HIGH_PENDING ? SCROLL_STEP_MED : SCROLL_STEP_HIGH;
147431
147431
  applied += sign * step;
147432
147432
  const rem = abs - step;
147433
- const cap = Math.max(1, innerHeight - 1);
147433
+ const frameCap = Math.max(1, Math.min(innerHeight - 1, Math.floor(innerHeight / SCROLL_MAX_STEP_FRACTION)));
147434
147434
  const totalAbs = Math.abs(applied);
147435
- if (totalAbs > cap) {
147436
- const excess = totalAbs - cap;
147435
+ if (totalAbs > frameCap) {
147436
+ const excess = totalAbs - frameCap;
147437
147437
  node.pendingScrollDelta = sign * (rem + excess);
147438
- return sign * cap;
147438
+ return sign * frameCap;
147439
147439
  }
147440
147440
  node.pendingScrollDelta = rem > 0 ? sign * rem : undefined;
147441
147441
  return applied;
147442
147442
  }
147443
147443
  function drainProportional(node, pending, innerHeight) {
147444
- const abs = Math.abs(pending);
147445
- const cap = Math.max(1, innerHeight - 1);
147446
- const step = Math.min(cap, Math.max(SCROLL_MIN_PER_FRAME, abs * 3 >> 2));
147447
- if (abs <= step) {
147448
- node.pendingScrollDelta = undefined;
147449
- return pending;
147450
- }
147451
- const applied = pending > 0 ? step : -step;
147452
- node.pendingScrollDelta = pending - applied;
147453
- return applied;
147444
+ return drainAdaptive(node, pending, innerHeight);
147454
147445
  }
147455
147446
  function wrapWithOsc8Link(text, url3) {
147456
147447
  return `${OSC3}8;;${url3}${BEL3}${text}${OSC3}8;;${BEL3}`;
@@ -147765,7 +147756,7 @@ function renderNodeToOutput(node, output, {
147765
147756
  const haveClamp = cMin !== undefined && cMax !== undefined;
147766
147757
  if (pending !== undefined && pending !== 0) {
147767
147758
  const pastClamp = haveClamp && (pending < 0 && cur < cMin || pending > 0 && cur > cMax);
147768
- const eff = pastClamp ? Math.min(4, innerHeight >> 3) : innerHeight;
147759
+ const eff = pastClamp ? Math.max(8, Math.min(16, innerHeight >> 2)) : innerHeight;
147769
147760
  cur += isXtermJsHost() ? drainAdaptive(node, pending, eff) : drainProportional(node, pending, eff);
147770
147761
  } else if (pending === 0) {
147771
147762
  node.pendingScrollDelta = undefined;
@@ -148087,7 +148078,7 @@ function dropSubtreeCache(node) {
148087
148078
  }
148088
148079
  }
148089
148080
  }
148090
- var layoutShifted = false, scrollHint = null, absoluteRectsPrev, absoluteRectsCur, scrollDrainNode = null, followScroll = null, SCROLL_MIN_PER_FRAME = 4, SCROLL_INSTANT_THRESHOLD = 5, SCROLL_HIGH_PENDING = 12, SCROLL_STEP_MED = 2, SCROLL_STEP_HIGH = 3, SCROLL_MAX_PENDING = 30, OSC3 = "\x1B]", BEL3 = "\x07", render_node_to_output_default;
148081
+ var layoutShifted = false, scrollHint = null, absoluteRectsPrev, absoluteRectsCur, scrollDrainNode = null, followScroll = null, SCROLL_INSTANT_THRESHOLD = 3, SCROLL_STEP_MED = 2, SCROLL_STEP_HIGH = 4, SCROLL_HIGH_PENDING = 16, SCROLL_MAX_PENDING = 48, SCROLL_MAX_STEP_FRACTION = 4, OSC3 = "\x1B]", BEL3 = "\x07", render_node_to_output_default;
148091
148082
  var init_render_node_to_output = __esm(() => {
148092
148083
  init_colorize();
148093
148084
  init_get_max_width();
@@ -276422,7 +276413,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
276422
276413
  import { homedir as homedir22 } from "os";
276423
276414
  import { join as join65 } from "path";
276424
276415
  function getCurrentRealVersion() {
276425
- return "0.1.22";
276416
+ return "0.1.23";
276426
276417
  }
276427
276418
  async function getRolloutConfig() {
276428
276419
  try {
@@ -363889,7 +363880,7 @@ function getAnthropicEnvMetadata() {
363889
363880
  function getBuildAgeMinutes() {
363890
363881
  if (false)
363891
363882
  ;
363892
- const buildTime = new Date("2026-08-03T11:50:31.866Z").getTime();
363883
+ const buildTime = new Date("2026-08-03T12:06:47.158Z").getTime();
363893
363884
  if (isNaN(buildTime))
363894
363885
  return;
363895
363886
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -387807,6 +387798,13 @@ function ScrollBox({
387807
387798
  el.pendingScrollDelta = (el.pendingScrollDelta ?? 0) + Math.floor(dy);
387808
387799
  scrollMutated(el);
387809
387800
  },
387801
+ nudgeScrollTop(dy) {
387802
+ const el = domRef.current;
387803
+ if (!el || dy === 0)
387804
+ return;
387805
+ el.scrollTop = Math.max(0, Math.floor((el.scrollTop ?? 0) + dy));
387806
+ scrollMutated(el);
387807
+ },
387810
387808
  scrollToBottom() {
387811
387809
  const el = domRef.current;
387812
387810
  if (!el)
@@ -429956,7 +429954,7 @@ function getRecentActivitySync() {
429956
429954
  return cachedActivity;
429957
429955
  }
429958
429956
  function getLogoDisplayData() {
429959
- const version2 = process.env.DEMO_VERSION ?? "0.1.22" ?? "99.0.0";
429957
+ const version2 = process.env.DEMO_VERSION ?? "0.1.23" ?? "99.0.0";
429960
429958
  const serverUrl = getDirectConnectServerUrl();
429961
429959
  const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
429962
429960
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -432860,6 +432858,7 @@ var init_StatusNotices = __esm(() => {
432860
432858
  function useVirtualScroll(scrollRef, itemKeys, columns) {
432861
432859
  const heightCache = import_react156.useRef(new Map);
432862
432860
  const offsetVersionRef = import_react156.useRef(0);
432861
+ const [, setMeasureEpoch] = import_react156.useState(0);
432863
432862
  const lastScrollTopRef = import_react156.useRef(0);
432864
432863
  const offsetsRef = import_react156.useRef({
432865
432864
  arr: new Float64Array(0),
@@ -433053,7 +433052,10 @@ function useVirtualScroll(scrollRef, itemKeys, columns) {
433053
433052
  skipMeasurementRef.current = false;
433054
433053
  return;
433055
433054
  }
433055
+ const scrollTopNow = scrollRef.current?.getScrollTop() ?? -1;
433056
+ const stickyNow = scrollRef.current?.isSticky() ?? true;
433056
433057
  let anyChanged = false;
433058
+ let anchorDelta = 0;
433057
433059
  for (const [key, el] of itemRefs.current) {
433058
433060
  const yoga = el.yogaNode;
433059
433061
  if (!yoga)
@@ -433062,16 +433064,34 @@ function useVirtualScroll(scrollRef, itemKeys, columns) {
433062
433064
  const prev = heightCache.current.get(key);
433063
433065
  if (h2 > 0) {
433064
433066
  if (prev !== h2) {
433067
+ const oldH = prev ?? DEFAULT_ESTIMATE;
433068
+ const itemTop = yoga.getComputedTop();
433069
+ if (!stickyNow && scrollTopNow >= 0 && itemTop < scrollTopNow) {
433070
+ anchorDelta += h2 - oldH;
433071
+ }
433065
433072
  heightCache.current.set(key, h2);
433066
433073
  anyChanged = true;
433067
433074
  }
433068
433075
  } else if (yoga.getComputedWidth() > 0 && prev !== 0) {
433076
+ if (prev !== undefined && prev > 0) {
433077
+ const itemTop = yoga.getComputedTop();
433078
+ if (!stickyNow && scrollTopNow >= 0 && itemTop < scrollTopNow) {
433079
+ anchorDelta += 0 - prev;
433080
+ }
433081
+ }
433069
433082
  heightCache.current.set(key, 0);
433070
433083
  anyChanged = true;
433071
433084
  }
433072
433085
  }
433073
- if (anyChanged)
433074
- offsetVersionRef.current++;
433086
+ if (!anyChanged)
433087
+ return;
433088
+ offsetVersionRef.current++;
433089
+ if (anchorDelta !== 0) {
433090
+ scrollRef.current?.nudgeScrollTop(anchorDelta);
433091
+ }
433092
+ if (!stickyNow) {
433093
+ setMeasureEpoch((e) => e + 1);
433094
+ }
433075
433095
  });
433076
433096
  const measureRef = import_react156.useCallback((key) => {
433077
433097
  let fn = refCache.current.get(key);
@@ -433123,7 +433143,7 @@ function useVirtualScroll(scrollRef, itemKeys, columns) {
433123
433143
  scrollToIndex
433124
433144
  };
433125
433145
  }
433126
- var import_react156, DEFAULT_ESTIMATE = 3, OVERSCAN_ROWS = 80, COLD_START_COUNT = 30, SCROLL_QUANTUM, PESSIMISTIC_HEIGHT = 1, MAX_MOUNTED_ITEMS = 300, SLIDE_STEP = 25, NOOP_UNSUB = () => {};
433146
+ var import_react156, DEFAULT_ESTIMATE = 4, OVERSCAN_ROWS = 80, COLD_START_COUNT = 30, SCROLL_QUANTUM, PESSIMISTIC_HEIGHT = 1, MAX_MOUNTED_ITEMS = 300, SLIDE_STEP = 25, NOOP_UNSUB = () => {};
433127
433147
  var init_useVirtualScroll = __esm(() => {
433128
433148
  import_react156 = __toESM(require_react(), 1);
433129
433149
  SCROLL_QUANTUM = OVERSCAN_ROWS >> 1;
@@ -459399,7 +459419,7 @@ var init_bridge_kick = __esm(() => {
459399
459419
  var call57 = async () => {
459400
459420
  return {
459401
459421
  type: "text",
459402
- value: `${"99.0.0"} (built ${"2026-08-03T11:50:31.866Z"})`
459422
+ value: `${"99.0.0"} (built ${"2026-08-03T12:06:47.158Z"})`
459403
459423
  };
459404
459424
  }, version2, version_default;
459405
459425
  var init_version = __esm(() => {
@@ -528833,7 +528853,7 @@ function applyModalPagerAction(s, act, onBeforeJump) {
528833
528853
  }
528834
528854
  }
528835
528855
  }
528836
- var import_react325, WHEEL_ACCEL_WINDOW_MS = 40, WHEEL_ACCEL_STEP = 0.3, WHEEL_ACCEL_MAX = 6, WHEEL_BOUNCE_GAP_MAX_MS = 200, WHEEL_MODE_STEP = 15, WHEEL_MODE_CAP = 15, WHEEL_MODE_RAMP = 3, WHEEL_MODE_IDLE_DISENGAGE_MS = 1500, WHEEL_DECAY_HALFLIFE_MS = 150, WHEEL_DECAY_STEP = 5, WHEEL_BURST_MS = 5, WHEEL_DECAY_GAP_MS = 80, WHEEL_DECAY_CAP_SLOW = 3, WHEEL_DECAY_CAP_FAST = 6, WHEEL_DECAY_IDLE_MS = 500, AUTOSCROLL_LINES = 2, AUTOSCROLL_INTERVAL_MS = 50, AUTOSCROLL_MAX_TICKS = 200;
528856
+ var import_react325, WHEEL_ACCEL_WINDOW_MS = 40, WHEEL_ACCEL_STEP = 0.25, WHEEL_ACCEL_MAX = 4, WHEEL_BOUNCE_GAP_MAX_MS = 200, WHEEL_MODE_STEP = 6, WHEEL_MODE_CAP = 8, WHEEL_MODE_RAMP = 2, WHEEL_MODE_IDLE_DISENGAGE_MS = 1500, WHEEL_DECAY_HALFLIFE_MS = 150, WHEEL_DECAY_STEP = 3, WHEEL_BURST_MS = 5, WHEEL_DECAY_GAP_MS = 80, WHEEL_DECAY_CAP_SLOW = 2, WHEEL_DECAY_CAP_FAST = 4, WHEEL_DECAY_IDLE_MS = 500, AUTOSCROLL_LINES = 2, AUTOSCROLL_INTERVAL_MS = 50, AUTOSCROLL_MAX_TICKS = 200;
528837
528857
  var init_ScrollKeybindingHandler = __esm(() => {
528838
528858
  init_notifications();
528839
528859
  init_useCopyOnSelect();
@@ -533751,7 +533771,7 @@ function SetupRow({ children }) {
533751
533771
  }
533752
533772
  function WelcomeV2() {
533753
533773
  const { columns } = useTerminalSize();
533754
- const version3 = "0.1.22";
533774
+ const version3 = "0.1.23";
533755
533775
  const width = Math.max(48, Math.min(columns || 92, 92));
533756
533776
  const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
533757
533777
  return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
@@ -553678,7 +553698,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
553678
553698
  pendingHookMessages
553679
553699
  }, renderAndRun);
553680
553700
  }
553681
- }).version("0.1.22 (Maximo Syntax)", "-v, --version", "Output the version number");
553701
+ }).version("0.1.23 (Maximo Syntax)", "-v, --version", "Output the version number");
553682
553702
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
553683
553703
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
553684
553704
  if (canUserConfigureAdvisor()) {
@@ -554209,7 +554229,7 @@ function validateProviderEnvOrExit() {
554209
554229
  async function main2() {
554210
554230
  const args = process.argv.slice(2);
554211
554231
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
554212
- console.log(`${"0.1.22"} (Maximo Syntax)`);
554232
+ console.log(`${"0.1.23"} (Maximo Syntax)`);
554213
554233
  return;
554214
554234
  }
554215
554235
  validateProviderEnvOrExit();
@@ -554286,4 +554306,4 @@ async function main2() {
554286
554306
  }
554287
554307
  main2();
554288
554308
 
554289
- //# debugId=13CAD1936B51588C64756E2164756E21
554309
+ //# debugId=A69DD0EA5FE13F0D64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maximoai/maximo-syntax-cli",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Maximo Syntax CLI - A powerful AI-powered command-line interface for code development with any LLM",
5
5
  "type": "module",
6
6
  "bin": {