@maximoai/maximo-syntax-cli 0.1.25 → 0.1.27

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 +43 -26
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -108510,8 +108510,14 @@ function getCachedMaximoModelLimits(model) {
108510
108510
  };
108511
108511
  }
108512
108512
  function normalizeEffortName(value) {
108513
- const normalized = value.trim().toLowerCase().replace(/-/g, "");
108514
- return normalized === "xhigh" ? "xhigh" : normalized;
108513
+ const normalized = value.trim().toLowerCase().replace(/[-_\s]+/g, "");
108514
+ if (normalized === "extrahigh" || normalized === "ultra")
108515
+ return "xhigh";
108516
+ if (normalized === "maximum")
108517
+ return "max";
108518
+ if (normalized === "med")
108519
+ return "medium";
108520
+ return normalized;
108515
108521
  }
108516
108522
  function getCachedMaximoModelEffortConfig(model) {
108517
108523
  const maximoModel = getCachedMaximoModel(model);
@@ -123977,7 +123983,7 @@ var init_metadata = __esm(() => {
123977
123983
  isMaximoAiAuth: isMaximoAISubscriber(),
123978
123984
  version: "99.0.0",
123979
123985
  versionBase: getVersionBase(),
123980
- buildTime: "2026-08-05T14:40:10.954Z",
123986
+ buildTime: "2026-08-06T11:48:40.178Z",
123981
123987
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
123982
123988
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
123983
123989
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -166011,11 +166017,13 @@ function parseEffortValue(value) {
166011
166017
  if (typeof value === "number" && isValidNumericEffort(value)) {
166012
166018
  return value;
166013
166019
  }
166014
- const str = String(value).toLowerCase();
166015
- if (isEffortLevel(str)) {
166016
- return str;
166020
+ const raw = String(value).trim();
166021
+ const str = raw.toLowerCase().replace(/[-_\s]+/g, "");
166022
+ const normalized = str === "extrahigh" || str === "ultra" ? "xhigh" : str === "maximum" ? "max" : str === "med" ? "medium" : str;
166023
+ if (isEffortLevel(normalized)) {
166024
+ return normalized;
166017
166025
  }
166018
- const numericValue = parseInt(str, 10);
166026
+ const numericValue = parseInt(raw, 10);
166019
166027
  if (!isNaN(numericValue) && isValidNumericEffort(numericValue)) {
166020
166028
  return numericValue;
166021
166029
  }
@@ -276742,7 +276750,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
276742
276750
  import { homedir as homedir22 } from "os";
276743
276751
  import { join as join65 } from "path";
276744
276752
  function getCurrentRealVersion() {
276745
- return "0.1.25";
276753
+ return "0.1.27";
276746
276754
  }
276747
276755
  async function getRolloutConfig() {
276748
276756
  try {
@@ -299955,6 +299963,7 @@ async function getMessagesForSlashCommand(commandName, args, setToolJSX, context
299955
299963
  }),
299956
299964
  ...metaMessages
299957
299965
  ],
299966
+ resultText: typeof result === "string" ? result : undefined,
299958
299967
  shouldQuery: options2?.shouldQuery ?? false,
299959
299968
  command,
299960
299969
  nextInput: options2?.nextInput,
@@ -299965,6 +299974,8 @@ async function getMessagesForSlashCommand(commandName, args, setToolJSX, context
299965
299974
  ...context6,
299966
299975
  canUseTool
299967
299976
  }, args)).then((jsx115) => {
299977
+ if (doneWasCalled)
299978
+ return;
299968
299979
  if (jsx115 == null)
299969
299980
  return;
299970
299981
  if (context6.options.isNonInteractiveSession) {
@@ -299975,8 +299986,6 @@ async function getMessagesForSlashCommand(commandName, args, setToolJSX, context
299975
299986
  });
299976
299987
  return;
299977
299988
  }
299978
- if (doneWasCalled)
299979
- return;
299980
299989
  setToolJSX({
299981
299990
  jsx: jsx115,
299982
299991
  shouldHidePromptInput: true,
@@ -363688,6 +363697,7 @@ function historyEntry(event, detail, extra) {
363688
363697
  };
363689
363698
  }
363690
363699
  function notify2() {
363700
+ cachedStatusDirty = true;
363691
363701
  for (const l of listeners) {
363692
363702
  try {
363693
363703
  l();
@@ -363748,8 +363758,9 @@ function subscribeGoal(listener2) {
363748
363758
  function getGoalStatusSnapshot() {
363749
363759
  if (!current)
363750
363760
  return null;
363751
- accountElapsed();
363752
- return {
363761
+ if (!cachedStatusDirty && cachedStatusSnapshot)
363762
+ return cachedStatusSnapshot;
363763
+ cachedStatusSnapshot = {
363753
363764
  status: current.status,
363754
363765
  phase: current.phase,
363755
363766
  objective: current.objective,
@@ -363757,8 +363768,11 @@ function getGoalStatusSnapshot() {
363757
363768
  tokenBudget: current.tokenBudget,
363758
363769
  totalWorkerRounds: current.totalWorkerRounds,
363759
363770
  totalVerifyRounds: current.totalVerifyRounds,
363760
- pauseMessage: current.pauseMessage
363771
+ pauseMessage: current.pauseMessage,
363772
+ elapsedMs: current.elapsedMs
363761
363773
  };
363774
+ cachedStatusDirty = false;
363775
+ return cachedStatusSnapshot;
363762
363776
  }
363763
363777
  function makeScratchDir(goalId) {
363764
363778
  const dir = join87(tmpdir6(), `maximo-goal-${goalId}`);
@@ -364051,7 +364065,7 @@ ${g.lastClassifierGaps}`);
364051
364065
  return lines.join(`
364052
364066
  `);
364053
364067
  }
364054
- var current = null, listeners;
364068
+ var current = null, listeners, cachedStatusSnapshot = null, cachedStatusDirty = true;
364055
364069
  var init_goalTracker = __esm(() => {
364056
364070
  init_types10();
364057
364071
  listeners = new Set;
@@ -365905,7 +365919,7 @@ function getAnthropicEnvMetadata() {
365905
365919
  function getBuildAgeMinutes() {
365906
365920
  if (false)
365907
365921
  ;
365908
- const buildTime = new Date("2026-08-05T14:40:10.954Z").getTime();
365922
+ const buildTime = new Date("2026-08-06T11:48:40.178Z").getTime();
365909
365923
  if (isNaN(buildTime))
365910
365924
  return;
365911
365925
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -431983,7 +431997,7 @@ function getRecentActivitySync() {
431983
431997
  return cachedActivity;
431984
431998
  }
431985
431999
  function getLogoDisplayData() {
431986
- const version2 = process.env.DEMO_VERSION ?? "0.1.25" ?? "99.0.0";
432000
+ const version2 = process.env.DEMO_VERSION ?? "0.1.27" ?? "99.0.0";
431987
432001
  const serverUrl = getDirectConnectServerUrl();
431988
432002
  const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
431989
432003
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -461448,7 +461462,7 @@ var init_bridge_kick = __esm(() => {
461448
461462
  var call57 = async () => {
461449
461463
  return {
461450
461464
  type: "text",
461451
- value: `${"99.0.0"} (built ${"2026-08-05T14:40:10.954Z"})`
461465
+ value: `${"99.0.0"} (built ${"2026-08-06T11:48:40.178Z"})`
461452
461466
  };
461453
461467
  }, version2, version_default;
461454
461468
  var init_version = __esm(() => {
@@ -466176,16 +466190,18 @@ function unsetEffortLevel() {
466176
466190
  };
466177
466191
  }
466178
466192
  function executeEffort(args) {
466179
- const normalized = args.toLowerCase();
466180
- if (normalized === "auto" || normalized === "unset") {
466193
+ const raw = args.trim();
466194
+ const normalized = raw.toLowerCase().replace(/[-_\s]+/g, "");
466195
+ const canonical = normalized === "extrahigh" || normalized === "ultra" ? "xhigh" : normalized === "maximum" ? "max" : normalized === "med" ? "medium" : normalized;
466196
+ if (canonical === "auto" || canonical === "unset") {
466181
466197
  return unsetEffortLevel();
466182
466198
  }
466183
- if (!isEffortLevel(normalized)) {
466199
+ if (!isEffortLevel(canonical)) {
466184
466200
  return {
466185
466201
  message: `Invalid argument: ${args}. Valid options are: minimal, low, medium, high, xhigh, max, ultra, auto`
466186
466202
  };
466187
466203
  }
466188
- return setEffortValue(normalized);
466204
+ return setEffortValue(canonical);
466189
466205
  }
466190
466206
  function ShowCurrentEffort(t0) {
466191
466207
  const {
@@ -466424,6 +466440,7 @@ var init_goal3 = __esm(() => {
466424
466440
  name: "goal",
466425
466441
  description: "Set, manage, or check an autonomous goal (works across turns with independent completion verification)",
466426
466442
  argumentHint: "<objective> [--budget <tokens>] | status | pause | resume | clear",
466443
+ supportsNonInteractive: true,
466427
466444
  load: () => Promise.resolve().then(() => (init_goal2(), exports_goal2))
466428
466445
  };
466429
466446
  goal_default = goal;
@@ -535977,7 +535994,7 @@ function SetupRow({ children }) {
535977
535994
  }
535978
535995
  function WelcomeV2() {
535979
535996
  const { columns } = useTerminalSize();
535980
- const version3 = "0.1.25";
535997
+ const version3 = "0.1.27";
535981
535998
  const width = Math.max(48, Math.min(columns || 92, 92));
535982
535999
  const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
535983
536000
  return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
@@ -555217,7 +555234,7 @@ ${customInstructions}` : customInstructions;
555217
555234
  `);
555218
555235
  process.exit(1);
555219
555236
  }
555220
- const commandsHeadless = disableSlashCommands ? [] : commands.filter((command8) => command8.type === "prompt" && !command8.disableNonInteractive || command8.type === "local" && command8.supportsNonInteractive);
555237
+ const commandsHeadless = disableSlashCommands ? [] : commands.filter((command8) => command8.type === "prompt" && !command8.disableNonInteractive || command8.type === "local" && command8.supportsNonInteractive || command8.type === "local-jsx" && command8.supportsNonInteractive === true);
555221
555238
  const defaultState = getDefaultAppState();
555222
555239
  const headlessInitialState = {
555223
555240
  ...defaultState,
@@ -555913,7 +555930,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
555913
555930
  pendingHookMessages
555914
555931
  }, renderAndRun);
555915
555932
  }
555916
- }).version("0.1.25 (Maximo Syntax)", "-v, --version", "Output the version number");
555933
+ }).version("0.1.27 (Maximo Syntax)", "-v, --version", "Output the version number");
555917
555934
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
555918
555935
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
555919
555936
  if (canUserConfigureAdvisor()) {
@@ -556452,7 +556469,7 @@ function validateProviderEnvOrExit() {
556452
556469
  async function main2() {
556453
556470
  const args = process.argv.slice(2);
556454
556471
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
556455
- console.log(`${"0.1.25"} (Maximo Syntax)`);
556472
+ console.log(`${"0.1.27"} (Maximo Syntax)`);
556456
556473
  return;
556457
556474
  }
556458
556475
  validateProviderEnvOrExit();
@@ -556529,4 +556546,4 @@ async function main2() {
556529
556546
  }
556530
556547
  main2();
556531
556548
 
556532
- //# debugId=432E05AA608D384C64756E2164756E21
556549
+ //# debugId=5C33CADA7413433764756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maximoai/maximo-syntax-cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
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": {