@maximoai/maximo-syntax-cli 0.1.34 → 0.1.35

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 +74 -31
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -124000,7 +124000,7 @@ var init_metadata = __esm(() => {
124000
124000
  isMaximoAiAuth: isMaximoAISubscriber(),
124001
124001
  version: "99.0.0",
124002
124002
  versionBase: getVersionBase(),
124003
- buildTime: "2026-08-15T17:26:52.338Z",
124003
+ buildTime: "2026-08-15T17:39:50.605Z",
124004
124004
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
124005
124005
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
124006
124006
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -277246,7 +277246,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
277246
277246
  import { homedir as homedir22 } from "os";
277247
277247
  import { join as join65 } from "path";
277248
277248
  function getCurrentRealVersion() {
277249
- return "0.1.34";
277249
+ return "0.1.35";
277250
277250
  }
277251
277251
  async function getRolloutConfig() {
277252
277252
  try {
@@ -300915,7 +300915,8 @@ async function* runAgent({
300915
300915
  }
300916
300916
  };
300917
300917
  }
300918
- const effortValue = effort !== undefined ? effort : agentDefinition.effort !== undefined ? agentDefinition.effort : state.effortValue;
300918
+ const requestedEffort = effort !== undefined ? effort : agentDefinition.effort !== undefined ? agentDefinition.effort : state.effortValue;
300919
+ const effortValue = resolveAppliedEffort(resolvedAgentModel, requestedEffort);
300919
300920
  if (toolPermissionContext === state.toolPermissionContext && effortValue === state.effortValue) {
300920
300921
  return state;
300921
300922
  }
@@ -301179,6 +301180,7 @@ var init_runAgent = __esm(() => {
301179
301180
  init_hooks5();
301180
301181
  init_messages3();
301181
301182
  init_agent();
301183
+ init_effort();
301182
301184
  init_sessionStorage();
301183
301185
  init_pluginOnlyPolicy();
301184
301186
  init_perfettoTracing();
@@ -354432,26 +354434,33 @@ function normalizeAgentToolInput(value) {
354432
354434
  return out;
354433
354435
  }
354434
354436
  function listSubagentModelSlugs() {
354435
- const slugs = new Set(["inherit"]);
354437
+ return listSubagentDelegationCatalog().map((entry) => entry.slug);
354438
+ }
354439
+ function listSubagentDelegationCatalog() {
354440
+ const entries = [
354441
+ { slug: "inherit", efforts: [] }
354442
+ ];
354443
+ const seen = new Set(["inherit"]);
354444
+ const add = (slug) => {
354445
+ const trimmed = slug.trim();
354446
+ if (!trimmed || seen.has(trimmed))
354447
+ return;
354448
+ seen.add(trimmed);
354449
+ const config2 = getCachedMaximoModelEffortConfig(trimmed);
354450
+ const supported = config2?.supportedEfforts?.length ? config2.supportedEfforts : getSupportedEffortLevelsForModel(trimmed);
354451
+ entries.push({
354452
+ slug: trimmed,
354453
+ efforts: supported ? [...supported] : [],
354454
+ ...config2?.defaultEffort ? { defaultEffort: config2.defaultEffort } : {}
354455
+ });
354456
+ };
354436
354457
  try {
354437
354458
  for (const option of getModelOptions()) {
354438
- if (typeof option.value === "string" && option.value.trim()) {
354439
- slugs.add(option.value.trim());
354440
- }
354459
+ if (typeof option.value === "string")
354460
+ add(option.value);
354441
354461
  }
354442
354462
  } catch {}
354443
- for (const alias of ["sonnet", "opus", "haiku"]) {
354444
- slugs.add(alias);
354445
- }
354446
- return [...slugs];
354447
- }
354448
- function listSubagentEffortLevels(model) {
354449
- if (model) {
354450
- const supported = getSupportedEffortLevelsForModel(model);
354451
- if (supported?.length)
354452
- return [...supported];
354453
- }
354454
- return [...EFFORT_LEVELS];
354463
+ return entries;
354455
354464
  }
354456
354465
  function formatSubagentModelList(slugs) {
354457
354466
  if (slugs.length === 0)
@@ -354460,8 +354469,32 @@ function formatSubagentModelList(slugs) {
354460
354469
  const extra = slugs.length - shown.length;
354461
354470
  return extra > 0 ? `${shown.join(", ")}, and ${extra} more` : shown.join(", ");
354462
354471
  }
354472
+ function formatSubagentDelegationCatalog(entries, limit = 40) {
354473
+ const models = entries.filter((entry) => entry.slug !== "inherit");
354474
+ if (models.length === 0) {
354475
+ return "The live provider catalog is not loaded yet. Omit `model` and `effort` to inherit the parent conversation, or pass a known slug from this session.";
354476
+ }
354477
+ const shown = entries.slice(0, limit);
354478
+ const extra = entries.length - shown.length;
354479
+ const lines = shown.map((entry) => {
354480
+ if (entry.slug === "inherit") {
354481
+ return "- inherit — use the parent conversation model and effort";
354482
+ }
354483
+ if (entry.efforts.length === 0) {
354484
+ return `- ${entry.slug} — omit effort (no advertised effort levels)`;
354485
+ }
354486
+ const defaultSuffix = entry.defaultEffort ? ` (default ${entry.defaultEffort})` : "";
354487
+ return `- ${entry.slug} — efforts: ${entry.efforts.join(", ")}${defaultSuffix}`;
354488
+ });
354489
+ if (extra > 0) {
354490
+ lines.push(`- …and ${extra} more slugs from the same provider catalog`);
354491
+ }
354492
+ return lines.join(`
354493
+ `);
354494
+ }
354463
354495
  var SENTINEL_STRINGS, SHARED_ISOLATION_STRINGS, WORKTREE_ISOLATION_STRINGS;
354464
354496
  var init_agentToolParams = __esm(() => {
354497
+ init_maximoModels();
354465
354498
  init_effort();
354466
354499
  init_agent();
354467
354500
  init_modelOptions();
@@ -355697,8 +355730,11 @@ Forks are cheap because they share your prompt cache. Don't set \`model\` on a f
355697
355730
 
355698
355731
  **Writing a fork prompt.** Since the fork inherits your context, the prompt is a *directive* — what to do, not what the situation is. Be specific about scope: what's in, what's out, what another agent is handling. Don't re-explain background.
355699
355732
  ` : "";
355733
+ try {
355734
+ await getModelOptionsAsync();
355735
+ } catch {}
355700
355736
  const availableModels = formatSubagentModelList(listSubagentModelSlugs());
355701
- const availableEfforts = listSubagentEffortLevels().join(", ");
355737
+ const catalogText = formatSubagentDelegationCatalog(listSubagentDelegationCatalog());
355702
355738
  const requiredCallShapeSection = `
355703
355739
 
355704
355740
  ## Required call shape
@@ -355711,11 +355747,17 @@ A call that omits \`description\` or \`prompt\` is rejected. Do not start the su
355711
355747
 
355712
355748
  Optional but supported on every spawn:
355713
355749
  - \`subagent_type\`: one of the types listed above. If omitted, ${forkEnabled ? "a fork of yourself is created" : "the general-purpose agent is used"}.
355714
- - \`model\`: any available model slug, a family alias (\`sonnet\`, \`opus\`, \`haiku\`), or \`inherit\`. Omit to inherit the parent model. Available models right now: ${availableModels}.
355715
- - \`effort\`: any effort the chosen model supports (${availableEfforts}, plus display aliases like Extra High). Omit to inherit the parent effort.
355750
+ - \`model\`: an exact slug from the live catalog below, a family alias (\`sonnet\`, \`opus\`, \`haiku\`), or \`inherit\`. Do not invent slugs. Omit to inherit the parent model. Compact list: ${availableModels}.
355751
+ - \`effort\`: a level listed for that model in the catalog (plus display aliases like Extra High). Omit to inherit the parent effort. Never pass an effort the chosen model does not list.
355716
355752
  - \`isolation\`: \`"none"\` (default, shared workspace) or \`"worktree"\` (isolated git worktree). Never pass any other value. \`"none"\` is valid and means "do not isolate".
355717
355753
  - \`run_in_background\`: \`true\` to return immediately and get a completion notification later.
355718
355754
 
355755
+ ## Live model and effort catalog
355756
+
355757
+ This is the same provider catalog the CLI uses for \`/model\` and \`/effort\`. Use these exact \`model\` slugs and only the efforts listed on that row:
355758
+
355759
+ ${catalogText}
355760
+
355719
355761
  Example of a correct call:
355720
355762
 
355721
355763
  ${AGENT_TOOL_NAME}({
@@ -355877,6 +355919,7 @@ var init_prompt20 = __esm(() => {
355877
355919
  init_auth2();
355878
355920
  init_embeddedTools();
355879
355921
  init_envUtils();
355922
+ init_modelOptions();
355880
355923
  init_teammate();
355881
355924
  init_teammateContext();
355882
355925
  init_prompt2();
@@ -355954,8 +355997,8 @@ var init_AgentTool = __esm(() => {
355954
355997
  description: exports_external.string().describe("A short (3-5 word) title for the task. Required. Shown in the UI as the subagent name."),
355955
355998
  prompt: exports_external.string().describe("The full task for the agent to perform. Required. The subagent starts with zero conversation context, so include everything it needs."),
355956
355999
  subagent_type: exports_external.string().optional().describe("The type of specialized agent to use for this task. Built-in types include general-purpose, Explore, and Plan when enabled. If omitted, the general-purpose agent is used (or a fork, when forking is enabled)."),
355957
- model: exports_external.string().optional().describe(`Optional model slug for this subagent. Pass any available model id from the current provider catalog, a family alias (sonnet, opus, haiku), or "inherit". If omitted, uses the agent definition's model or inherits the parent. Only set this when you intend a different model than the parent.`),
355958
- effort: exports_external.string().optional().describe("Optional reasoning effort for this subagent. Pass any effort the chosen model supports (minimal, low, medium, high, xhigh, max, ultra — plus Extra High / extra_high aliases). If omitted, inherits the parent effort or the agent definition's effort."),
356000
+ model: exports_external.string().optional().describe(`Optional model slug for this subagent. Pass an exact slug from the live catalog in this tool's description, a family alias (sonnet, opus, haiku), or "inherit". If omitted, uses the agent definition's model or inherits the parent. Do not invent slugs.`),
356001
+ effort: exports_external.string().optional().describe("Optional reasoning effort for this subagent. Pass a level listed for the chosen model in this tool's live catalog (minimal, low, medium, high, xhigh, max, ultra — plus Extra High / extra_high aliases). If omitted, inherits the parent effort or the agent definition's effort. Unsupported levels are clamped to that model's catalog."),
355959
356002
  run_in_background: exports_external.boolean().optional().describe("Set to true to run this agent in the background. You will be notified when it completes.")
355960
356003
  }));
355961
356004
  fullInputSchema2 = lazySchema(() => {
@@ -366705,7 +366748,7 @@ function getAnthropicEnvMetadata() {
366705
366748
  function getBuildAgeMinutes() {
366706
366749
  if (false)
366707
366750
  ;
366708
- const buildTime = new Date("2026-08-15T17:26:52.338Z").getTime();
366751
+ const buildTime = new Date("2026-08-15T17:39:50.605Z").getTime();
366709
366752
  if (isNaN(buildTime))
366710
366753
  return;
366711
366754
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -432783,7 +432826,7 @@ function getRecentActivitySync() {
432783
432826
  return cachedActivity;
432784
432827
  }
432785
432828
  function getLogoDisplayData() {
432786
- const version2 = process.env.DEMO_VERSION ?? "0.1.34" ?? "99.0.0";
432829
+ const version2 = process.env.DEMO_VERSION ?? "0.1.35" ?? "99.0.0";
432787
432830
  const serverUrl = getDirectConnectServerUrl();
432788
432831
  const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
432789
432832
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -462248,7 +462291,7 @@ var init_bridge_kick = __esm(() => {
462248
462291
  var call57 = async () => {
462249
462292
  return {
462250
462293
  type: "text",
462251
- value: `${"99.0.0"} (built ${"2026-08-15T17:26:52.338Z"})`
462294
+ value: `${"99.0.0"} (built ${"2026-08-15T17:39:50.605Z"})`
462252
462295
  };
462253
462296
  }, version2, version_default;
462254
462297
  var init_version = __esm(() => {
@@ -536780,7 +536823,7 @@ function SetupRow({ children }) {
536780
536823
  }
536781
536824
  function WelcomeV2() {
536782
536825
  const { columns } = useTerminalSize();
536783
- const version3 = "0.1.34";
536826
+ const version3 = "0.1.35";
536784
536827
  const width = Math.max(48, Math.min(columns || 92, 92));
536785
536828
  const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
536786
536829
  return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
@@ -556716,7 +556759,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
556716
556759
  pendingHookMessages
556717
556760
  }, renderAndRun);
556718
556761
  }
556719
- }).version("0.1.34 (Maximo Syntax)", "-v, --version", "Output the version number");
556762
+ }).version("0.1.35 (Maximo Syntax)", "-v, --version", "Output the version number");
556720
556763
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
556721
556764
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
556722
556765
  if (canUserConfigureAdvisor()) {
@@ -557255,7 +557298,7 @@ function validateProviderEnvOrExit() {
557255
557298
  async function main2() {
557256
557299
  const args = process.argv.slice(2);
557257
557300
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
557258
- console.log(`${"0.1.34"} (Maximo Syntax)`);
557301
+ console.log(`${"0.1.35"} (Maximo Syntax)`);
557259
557302
  return;
557260
557303
  }
557261
557304
  validateProviderEnvOrExit();
@@ -557332,4 +557375,4 @@ async function main2() {
557332
557375
  }
557333
557376
  main2();
557334
557377
 
557335
- //# debugId=48AE7DC8230AA9A764756E2164756E21
557378
+ //# debugId=2CD0260EB03346DE64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maximoai/maximo-syntax-cli",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
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": {