@maximoai/maximo-syntax-cli 0.1.51 → 0.1.52

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 +258 -153
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -124100,7 +124100,7 @@ var init_metadata = __esm(() => {
124100
124100
  isMaximoAiAuth: isMaximoAISubscriber(),
124101
124101
  version: "99.0.0",
124102
124102
  versionBase: getVersionBase(),
124103
- buildTime: "2026-10-08T20:29:25.759Z",
124103
+ buildTime: "2026-11-05T01:52:52.911Z",
124104
124104
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
124105
124105
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
124106
124106
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -237793,18 +237793,35 @@ Plan mode note: In plan mode, use this tool to clarify requirements or choose be
237793
237793
  // src/tools/ImageGenerationTool/prompt.ts
237794
237794
  function getImageGenerationPrompt() {
237795
237795
  return `
237796
- - Allows Maximo to generate images using the connected Maximo AI backend's image generation tool
237797
- - Generates images via the backend (Maximo AI API / MyTabulon) in a single API call
237798
- - Use this tool when the user asks for an image, illustration, logo, concept art, or any visual asset
237799
- - Returns the generated image URL(s) which Maximo should present to the user as markdown links/images
237800
-
237801
- Usage notes:
237802
- - Provide a detailed, descriptive prompt for best results (subject, style, composition, lighting)
237803
- - Optional: aspect_ratio (e.g. "16:9", "1:1", "4:3"), size ("1K", "2K", "4K"), output count
237804
- - After generating, include the image in your response using markdown: ![description](exact_url_from_tool_result)
237796
+ - Allows Maximo to generate new images and edit existing ones using the connected Maximo AI backend's image tool
237797
+ - Runs through the backend (Maximo AI API / MyTabulon) in a single API call
237798
+ - Use this tool when the user asks for an image, illustration, logo, concept art, or any visual asset, or wants to change, restyle, combine, or build on an existing image
237799
+ - Returns the image URL(s) which Maximo should present to the user as markdown links/images
237800
+
237801
+ Generating:
237802
+ - Provide a detailed, descriptive prompt (subject, style, composition, lighting)
237803
+
237804
+ Editing (MyTabulon logins only):
237805
+ - Pass the source images in images: local file paths, http(s) URLs, or data: URIs, up to 10. Supplying any image makes the request an edit, even if the user said generate, create, or draw.
237806
+ - For files already in the MyTabulon workspace, pass source_document_ids. An edit result's document IDs can be used to keep editing it.
237807
+ - Describe the change ("replace the background with a snowy mountain") rather than re-describing the whole scene
237808
+ - Leave aspect_ratio unset or "auto" so the output follows the first source image
237809
+
237810
+ Controls, all optional:
237811
+ - aspect_ratio: "auto", "21:9", "2:1", "16:9", "3:2", "7:5", "4:3", "5:4", "1:1", "4:5", "3:4", "5:7", "2:3", "9:16", "1:2", "9:21"
237812
+ - resolution: "512", "1K", "1.5K", "2K", "4K" (the plan sets the maximum; size is an older name for the same thing)
237813
+ - output_count: 1-8 images, capped by the plan
237814
+ - model: "mini" for fast everyday work, "pro" for premium, text-heavy, or brand-accurate work, "auto" to let the plan decide
237815
+ - output_format: "png" (default), "jpg", or "webp"; output_quality: 0-100 for jpg and webp
237816
+ - grounding: research the prompt on the web first. Useful for real people, places, and products. Off by default for edits.
237817
+ - safety_tolerance: 0 (strictest) to 2 (default)
237818
+ - title: a short name for the saved file
237819
+
237820
+ Results:
237821
+ - After the tool returns, include each image in your response using markdown: ![description](exact_url_from_tool_result)
237805
237822
  - CRITICAL: You MUST copy the URL(s) exactly as returned in the tool result text (lines like "Image 1 URL: https://..."). NEVER invent, guess, or reconstruct a URL — this includes https://example.com, https://via.placeholder.com, https://placehold.co, https://picsum.photos, or any placeholder. If you use any hallucinated/reconstructed/placeholder URL the image will be broken and the task fails.
237806
237823
  - Use the full URL exactly as returned - verbatim, one markdown image per URL. Do NOT shorten, re-encode, or change any part of it.
237807
- - If the tool result contains "No images were returned" you MUST report the failure verbatim and MUST NOT output any ![...](https://...) at all.
237824
+ - If the tool result contains "No images were returned" you MUST tell the user the reason it gives and MUST NOT output any ![...](https://...) at all.
237808
237825
  `;
237809
237826
  }
237810
237827
  var IMAGE_GENERATION_TOOL_NAME = "ImageGeneration";
@@ -277379,7 +277396,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
277379
277396
  import { homedir as homedir22 } from "os";
277380
277397
  import { join as join65 } from "path";
277381
277398
  function getCurrentRealVersion() {
277382
- return "0.1.51";
277399
+ return "0.1.52";
277383
277400
  }
277384
277401
  async function getRolloutConfig() {
277385
277402
  try {
@@ -347914,6 +347931,80 @@ REMINDER: You MUST include the sources above in your response to the user using
347914
347931
  });
347915
347932
  });
347916
347933
 
347934
+ // src/tools/ImageGenerationTool/imageRequest.ts
347935
+ import { readFile as readFile25 } from "node:fs/promises";
347936
+ import { extname as extname12 } from "node:path";
347937
+ function isImageEdit(input) {
347938
+ return Boolean(input.images?.length || input.source_document_ids?.length);
347939
+ }
347940
+ async function resolveSourceImage(source) {
347941
+ if (/^(https?:|data:)/i.test(source))
347942
+ return source;
347943
+ const filePath = expandPath(source);
347944
+ const mimeType = IMAGE_MIME_TYPES2[extname12(filePath).toLowerCase()];
347945
+ if (!mimeType) {
347946
+ throw new Error(`${source} is not an image file. Use a JPEG, PNG, GIF, or WebP file.`);
347947
+ }
347948
+ let file2;
347949
+ try {
347950
+ file2 = await readFile25(filePath);
347951
+ } catch {
347952
+ throw new Error(`Could not read ${source}. Check the path and try again.`);
347953
+ }
347954
+ if (file2.length > MAX_SOURCE_IMAGE_BYTES) {
347955
+ throw new Error(`${source} is over the 16 MB limit for a source image.`);
347956
+ }
347957
+ return `data:${mimeType};base64,${file2.toString("base64")}`;
347958
+ }
347959
+ async function buildImageRequestBody(input, isMyTabulon) {
347960
+ if (!isMyTabulon) {
347961
+ if (isImageEdit(input)) {
347962
+ throw new Error("Editing images needs a MyTabulon login. Maximo AI logins can only generate new images.");
347963
+ }
347964
+ const body = { prompt: input.prompt };
347965
+ for (const option of MAXIMO_AI_OPTIONS) {
347966
+ if (input[option] !== undefined)
347967
+ body[option] = input[option];
347968
+ }
347969
+ if (body.size === undefined && input.resolution !== undefined)
347970
+ body.size = input.resolution;
347971
+ return body;
347972
+ }
347973
+ const { images, ...rest } = input;
347974
+ if (!images?.length)
347975
+ return rest;
347976
+ return { ...rest, images: await Promise.all(images.map(resolveSourceImage)) };
347977
+ }
347978
+ function imageErrorMessage(status, rawText) {
347979
+ try {
347980
+ const parsed = JSON.parse(rawText);
347981
+ const nested = parsed.error && typeof parsed.error === "object" ? parsed.error.message : parsed.error;
347982
+ const message = parsed.message ?? nested;
347983
+ if (typeof message === "string" && message.trim())
347984
+ return message.trim();
347985
+ } catch {}
347986
+ return `The image backend returned HTTP ${status}.`;
347987
+ }
347988
+ var MAX_SOURCE_IMAGE_BYTES, IMAGE_MIME_TYPES2, MAXIMO_AI_OPTIONS;
347989
+ var init_imageRequest = __esm(() => {
347990
+ init_path2();
347991
+ MAX_SOURCE_IMAGE_BYTES = 16 * 1024 * 1024;
347992
+ IMAGE_MIME_TYPES2 = {
347993
+ ".avif": "image/avif",
347994
+ ".bmp": "image/bmp",
347995
+ ".gif": "image/gif",
347996
+ ".heic": "image/heic",
347997
+ ".heif": "image/heif",
347998
+ ".jpeg": "image/jpeg",
347999
+ ".jpg": "image/jpeg",
348000
+ ".png": "image/png",
348001
+ ".tif": "image/tiff",
348002
+ ".tiff": "image/tiff",
348003
+ ".webp": "image/webp"
348004
+ };
348005
+ MAXIMO_AI_OPTIONS = ["aspect_ratio", "size", "output_count"];
348006
+ });
348007
+
347917
348008
  // src/tools/ImageGenerationTool/ImageGenerationTool.ts
347918
348009
  function resolveImageEndpoint(baseUrl) {
347919
348010
  const trimmed = baseUrl.replace(/\/+$/, "");
@@ -347931,28 +348022,41 @@ var init_ImageGenerationTool = __esm(() => {
347931
348022
  init_maximoModels();
347932
348023
  init_Tool();
347933
348024
  init_log3();
348025
+ init_imageRequest();
347934
348026
  inputSchema23 = lazySchema(() => exports_external.strictObject({
347935
- prompt: exports_external.string().min(1).describe("The image generation prompt to use"),
347936
- aspect_ratio: exports_external.string().optional().describe('Aspect ratio for the image (e.g. "16:9", "1:1", "4:3")'),
347937
- size: exports_external.string().optional().describe('Image size/resolution (e.g. "1K", "2K", "4K")'),
347938
- output_count: exports_external.number().int().positive().max(4).optional().describe("Number of images to generate (1-4)")
348027
+ prompt: exports_external.string().min(1).describe("What to generate, or the edit to apply to the source images"),
348028
+ images: exports_external.array(exports_external.string().min(1)).max(10).optional().describe("Source images to edit or draw from: local file paths, http(s) URLs, or data: URIs. Any image makes this an edit (MyTabulon logins only)."),
348029
+ source_document_ids: exports_external.array(exports_external.string().min(1)).max(10).optional().describe("MyTabulon Files document IDs to edit or draw from"),
348030
+ aspect_ratio: exports_external.string().optional().describe('Aspect ratio: "auto", "21:9", "2:1", "16:9", "3:2", "7:5", "4:3", "5:4", "1:1", "4:5", "3:4", "5:7", "2:3", "9:16", "1:2", or "9:21". Leave unset for edits so the first source sets it.'),
348031
+ resolution: exports_external.string().optional().describe('Output resolution: "512", "1K", "1.5K", "2K", or "4K"'),
348032
+ size: exports_external.string().optional().describe('Older name for resolution (e.g. "1K", "2K", "4K")'),
348033
+ output_count: exports_external.number().int().positive().max(8).optional().describe("Number of images to make (1-8, capped by the plan)"),
348034
+ model: exports_external.enum(["auto", "mini", "pro"]).optional().describe('"mini" for fast everyday work, "pro" for premium or text-heavy work'),
348035
+ output_format: exports_external.enum(["png", "jpg", "webp"]).optional().describe("Output file format. Defaults to png."),
348036
+ output_quality: exports_external.number().int().min(0).max(100).optional().describe("Quality for jpg and webp output, 0-100"),
348037
+ grounding: exports_external.boolean().optional().describe("Research the prompt on the web before making the image"),
348038
+ safety_tolerance: exports_external.number().int().min(0).max(2).optional().describe("Moderation strictness: 0 is strictest, 2 is the default"),
348039
+ title: exports_external.string().optional().describe("Short name for the saved file")
347939
348040
  }));
347940
348041
  outputSchema19 = lazySchema(() => exports_external.object({
347941
348042
  prompt: exports_external.string().describe("The image prompt that was executed"),
347942
348043
  images: exports_external.array(exports_external.object({
347943
- url: exports_external.string().describe("The URL of the generated image")
348044
+ url: exports_external.string().describe("The URL of the generated image"),
348045
+ document_id: exports_external.string().nullable().optional().describe("The saved file's ID, usable as a source for another edit")
347944
348046
  })).describe("The generated image URLs"),
348047
+ edited: exports_external.boolean().optional().describe("True when source images were edited"),
348048
+ error: exports_external.string().optional().describe("Why no images were returned"),
347945
348049
  credits: exports_external.unknown().optional().describe("Credit/usage info from the backend"),
347946
348050
  modelUsed: exports_external.string().nullable().optional(),
347947
348051
  durationSeconds: exports_external.number().describe("Time taken to complete the image generation operation")
347948
348052
  }));
347949
348053
  ImageGenerationTool = buildTool({
347950
348054
  name: IMAGE_GENERATION_TOOL_NAME,
347951
- searchHint: "generate images with the connected Maximo backend",
348055
+ searchHint: "generate or edit images with the connected Maximo backend",
347952
348056
  maxResultSizeChars: 1e5,
347953
348057
  shouldDefer: true,
347954
348058
  async description(input) {
347955
- return `Maximo wants to generate an image for: ${input.prompt}`;
348059
+ return `Maximo wants to ${isImageEdit(input) ? "edit an image" : "generate an image"} for: ${input.prompt}`;
347956
348060
  },
347957
348061
  userFacingName() {
347958
348062
  return "Image Generation";
@@ -347998,11 +348102,13 @@ var init_ImageGenerationTool = __esm(() => {
347998
348102
  async prompt() {
347999
348103
  return getImageGenerationPrompt();
348000
348104
  },
348001
- renderToolUseMessage({ prompt }, { verbose }) {
348105
+ renderToolUseMessage(input, { verbose }) {
348106
+ const { prompt } = input;
348002
348107
  if (!prompt) {
348003
348108
  return null;
348004
348109
  }
348005
- return `${verbose ? "Generating image for: " : ""}"${prompt}"`;
348110
+ const action2 = isImageEdit(input) ? "Editing image: " : "Generating image for: ";
348111
+ return `${verbose ? action2 : ""}"${prompt}"`;
348006
348112
  },
348007
348113
  renderToolUseProgressMessage() {
348008
348114
  return null;
@@ -348026,18 +348132,22 @@ var init_ImageGenerationTool = __esm(() => {
348026
348132
  },
348027
348133
  async call(input, context6, _canUseTool, _parentMessage, onProgress) {
348028
348134
  const startTime2 = performance.now();
348029
- const { prompt, ...rest } = input;
348135
+ const { prompt } = input;
348136
+ const edited = isImageEdit(input);
348030
348137
  const baseUrl = getMaximoAIBaseUrl();
348031
348138
  const apiKey = getMaximoApiKey();
348032
348139
  const endpoint = resolveImageEndpoint(baseUrl);
348140
+ const failed = (error42) => ({
348141
+ data: {
348142
+ prompt,
348143
+ images: [],
348144
+ edited,
348145
+ ...error42 ? { error: error42 } : {},
348146
+ durationSeconds: (performance.now() - startTime2) / 1000
348147
+ }
348148
+ });
348033
348149
  if (!apiKey || !endpoint) {
348034
- return {
348035
- data: {
348036
- prompt,
348037
- images: [],
348038
- durationSeconds: (performance.now() - startTime2) / 1000
348039
- }
348040
- };
348150
+ return failed();
348041
348151
  }
348042
348152
  if (onProgress) {
348043
348153
  onProgress({
@@ -348045,7 +348155,12 @@ var init_ImageGenerationTool = __esm(() => {
348045
348155
  data: { type: "image_generation_started", prompt }
348046
348156
  });
348047
348157
  }
348048
- const requestBody = { prompt, ...rest };
348158
+ let requestBody;
348159
+ try {
348160
+ requestBody = await buildImageRequestBody(input, baseUrl.includes("api.mytabulon.com"));
348161
+ } catch (error42) {
348162
+ return failed(error42.message);
348163
+ }
348049
348164
  try {
348050
348165
  const response = await fetch(endpoint.url, {
348051
348166
  method: "POST",
@@ -348058,28 +348173,19 @@ var init_ImageGenerationTool = __esm(() => {
348058
348173
  });
348059
348174
  const rawText = await response.text();
348060
348175
  if (!response.ok) {
348061
- logError2(new Error(`Image generation request failed (${response.status}): ${rawText}`));
348062
- return {
348063
- data: {
348064
- prompt,
348065
- images: [],
348066
- durationSeconds: (performance.now() - startTime2) / 1000
348067
- }
348068
- };
348176
+ logError2(new Error(`Image generation request failed (${response.status}): ${rawText.slice(0, 2000)}`));
348177
+ return failed(imageErrorMessage(response.status, rawText));
348069
348178
  }
348070
348179
  let parsed;
348071
348180
  try {
348072
348181
  parsed = JSON.parse(rawText);
348073
348182
  } catch {
348074
- return {
348075
- data: {
348076
- prompt,
348077
- images: [],
348078
- durationSeconds: (performance.now() - startTime2) / 1000
348079
- }
348080
- };
348183
+ return failed();
348081
348184
  }
348082
- const images = Array.isArray(parsed?.images) ? parsed.images.map((image) => image && typeof image === "object" && typeof image.url === "string" ? { url: image.url } : null).filter((image) => Boolean(image)) : [];
348185
+ const images = Array.isArray(parsed?.images) ? parsed.images.map((image) => image && typeof image === "object" && typeof image.url === "string" ? {
348186
+ url: image.url,
348187
+ document_id: image.document_id ?? null
348188
+ } : null).filter((image) => Boolean(image)) : [];
348083
348189
  if (onProgress) {
348084
348190
  onProgress({
348085
348191
  toolUseID: "image-progress-2",
@@ -348094,6 +348200,7 @@ var init_ImageGenerationTool = __esm(() => {
348094
348200
  data: {
348095
348201
  prompt,
348096
348202
  images,
348203
+ edited,
348097
348204
  credits: parsed?.credits ?? null,
348098
348205
  modelUsed: parsed?.modelUsed ?? null,
348099
348206
  durationSeconds: (performance.now() - startTime2) / 1000
@@ -348104,27 +348211,25 @@ var init_ImageGenerationTool = __esm(() => {
348104
348211
  throw error42;
348105
348212
  }
348106
348213
  logError2(error42);
348107
- return {
348108
- data: {
348109
- prompt,
348110
- images: [],
348111
- durationSeconds: (performance.now() - startTime2) / 1000
348112
- }
348113
- };
348214
+ return failed();
348114
348215
  }
348115
348216
  },
348116
348217
  mapToolResultToToolResultBlockParam(output, toolUseID) {
348117
- const { prompt, images } = output;
348218
+ const { prompt, images, edited, error: error42 } = output;
348118
348219
  const lines = [];
348119
- lines.push(`Generated image${images.length === 1 ? "" : "s"} for prompt: "${prompt}"`);
348220
+ lines.push(`${edited ? "Edited" : "Generated"} image${images.length === 1 ? "" : "s"} for prompt: "${prompt}"`);
348120
348221
  if (!images || images.length === 0) {
348121
- lines.push("No images were returned — generation failed. Do NOT invent a URL (never use https://example.com, https://via.placeholder.com, https://placehold.co, https://picsum.photos, or https://ai-image-output...). Tell the user it failed, why it might have (check login: Maximo AI / MyTabulon required), and ask to try again.");
348222
+ const reason = error42 ? `Reason: ${error42} Tell the user this reason.` : "Tell the user it failed, why it might have (check login: Maximo AI / MyTabulon required), and ask to try again.";
348223
+ lines.push(`No images were returned — ${edited ? "the edit" : "generation"} failed. Do NOT invent a URL (never use https://example.com, https://via.placeholder.com, https://placehold.co, https://picsum.photos, or https://ai-image-output...). ${reason}`);
348122
348224
  lines.push("FORBIDDEN PLACEHOLDERS: https://example.com, https://via.placeholder.com, https://placehold.co, https://picsum.photos — using any of these is a failure.");
348123
348225
  } else {
348124
348226
  for (let i3 = 0;i3 < images.length; i3++) {
348125
348227
  const url3 = images[i3]?.url;
348126
348228
  if (url3) {
348127
348229
  lines.push(`Image ${i3 + 1} URL: ${url3}`);
348230
+ if (images[i3]?.document_id) {
348231
+ lines.push(`Image ${i3 + 1} document ID (for further edits): ${images[i3].document_id}`);
348232
+ }
348128
348233
  }
348129
348234
  }
348130
348235
  lines.push("IMPORTANT: Use the exact URL(s) above verbatim in your markdown. Do NOT invent, shorten, or change the domain/path. Example: ![alt text](<exact URL>)");
@@ -352272,7 +352377,7 @@ __export(exports_voice2, {
352272
352377
  _resetAlsaCardsForTesting: () => _resetAlsaCardsForTesting
352273
352378
  });
352274
352379
  import { spawn as spawn6, spawnSync as spawnSync3 } from "child_process";
352275
- import { readFile as readFile25 } from "fs/promises";
352380
+ import { readFile as readFile26 } from "fs/promises";
352276
352381
  function loadAudioNapi() {
352277
352382
  audioNapiPromise ??= (async () => {
352278
352383
  const t0 = Date.now();
@@ -352327,7 +352432,7 @@ function _resetArecordProbeForTesting() {
352327
352432
  arecordProbe = null;
352328
352433
  }
352329
352434
  function linuxHasAlsaCards() {
352330
- linuxAlsaCardsMemo ??= readFile25("/proc/asound/cards", "utf8").then((cards) => {
352435
+ linuxAlsaCardsMemo ??= readFile26("/proc/asound/cards", "utf8").then((cards) => {
352331
352436
  const c6 = cards.trim();
352332
352437
  return c6 !== "" && !c6.includes("no soundcards");
352333
352438
  }, () => false);
@@ -354128,7 +354233,7 @@ import {
354128
354233
  chmod as chmod7,
354129
354234
  mkdir as mkdir22,
354130
354235
  readdir as readdir14,
354131
- readFile as readFile26,
354236
+ readFile as readFile27,
354132
354237
  unlink as unlink13,
354133
354238
  writeFile as writeFile22
354134
354239
  } from "fs/promises";
@@ -354176,7 +354281,7 @@ async function registerSession() {
354176
354281
  async function updatePidFile(patch) {
354177
354282
  const pidFile = join85(getSessionsDir(), `${process.pid}.json`);
354178
354283
  try {
354179
- const data = jsonParse(await readFile26(pidFile, "utf8"));
354284
+ const data = jsonParse(await readFile27(pidFile, "utf8"));
354180
354285
  await writeFile22(pidFile, jsonStringify({ ...data, ...patch }));
354181
354286
  } catch (e) {
354182
354287
  logForDebugging2(`[concurrentSessions] updatePidFile failed: ${errorMessage(e)}`);
@@ -364828,7 +364933,7 @@ var init_config5 = __esm(() => {
364828
364933
 
364829
364934
  // src/utils/readFileInRange.ts
364830
364935
  import { createReadStream as createReadStream2, fstat } from "fs";
364831
- import { stat as fsStat3, readFile as readFile27 } from "fs/promises";
364936
+ import { stat as fsStat3, readFile as readFile28 } from "fs/promises";
364832
364937
  async function readFileInRange(filePath, offset = 0, maxLines, maxBytes, signal, options2) {
364833
364938
  signal?.throwIfAborted();
364834
364939
  const truncateOnByteLimit = options2?.truncateOnByteLimit ?? false;
@@ -364840,7 +364945,7 @@ async function readFileInRange(filePath, offset = 0, maxLines, maxBytes, signal,
364840
364945
  if (!truncateOnByteLimit && maxBytes !== undefined && stats.size > maxBytes) {
364841
364946
  throw new FileTooLargeError(stats.size, maxBytes);
364842
364947
  }
364843
- const text = await readFile27(filePath, { encoding: "utf8", signal });
364948
+ const text = await readFile28(filePath, { encoding: "utf8", signal });
364844
364949
  return readFileInRangeFast(text, stats.mtimeMs, offset, maxLines, truncateOnByteLimit ? maxBytes : undefined);
364845
364950
  }
364846
364951
  return readFileInRangeStreaming(filePath, offset, maxLines, maxBytes, truncateOnByteLimit, signal);
@@ -368094,7 +368199,7 @@ function getAnthropicEnvMetadata() {
368094
368199
  function getBuildAgeMinutes() {
368095
368200
  if (false)
368096
368201
  ;
368097
- const buildTime = new Date("2026-10-08T20:29:25.759Z").getTime();
368202
+ const buildTime = new Date("2026-11-05T01:52:52.911Z").getTime();
368098
368203
  if (isNaN(buildTime))
368099
368204
  return;
368100
368205
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -368807,7 +368912,7 @@ var init_types11 = __esm(() => {
368807
368912
  });
368808
368913
 
368809
368914
  // src/services/internalLogging.ts
368810
- import { readFile as readFile28 } from "fs/promises";
368915
+ import { readFile as readFile29 } from "fs/promises";
368811
368916
  async function logPermissionContextForAnts(toolPermissionContext, moment) {
368812
368917
  if (process.env.USER_TYPE !== "ant") {
368813
368918
  return;
@@ -368831,7 +368936,7 @@ var init_internalLogging = __esm(() => {
368831
368936
  const namespacePath = "/var/run/secrets/kubernetes.io/serviceaccount/namespace";
368832
368937
  const namespaceNotFound = "namespace not found";
368833
368938
  try {
368834
- const content = await readFile28(namespacePath, { encoding: "utf8" });
368939
+ const content = await readFile29(namespacePath, { encoding: "utf8" });
368835
368940
  return content.trim();
368836
368941
  } catch {
368837
368942
  return namespaceNotFound;
@@ -368845,7 +368950,7 @@ var init_internalLogging = __esm(() => {
368845
368950
  const containerIdNotFound = "container ID not found";
368846
368951
  const containerIdNotFoundInMountinfo = "container ID not found in mountinfo";
368847
368952
  try {
368848
- const mountinfo = (await readFile28(containerIdPath, { encoding: "utf8" })).trim();
368953
+ const mountinfo = (await readFile29(containerIdPath, { encoding: "utf8" })).trim();
368849
368954
  const containerIdPattern = /(?:\/docker\/containers\/|\/sandboxes\/)([0-9a-f]{64})/;
368850
368955
  const lines = mountinfo.split(`
368851
368956
  `);
@@ -370207,7 +370312,7 @@ var init_postCompactCleanup = __esm(() => {
370207
370312
  });
370208
370313
 
370209
370314
  // src/services/SessionMemory/prompts.ts
370210
- import { readFile as readFile29 } from "fs/promises";
370315
+ import { readFile as readFile30 } from "fs/promises";
370211
370316
  import { join as join89 } from "path";
370212
370317
  function getDefaultUpdatePrompt() {
370213
370318
  return `IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "note-taking", "session notes extraction", or these update instructions in the notes content.
@@ -370251,7 +370356,7 @@ REMEMBER: Use the Edit tool in parallel and stop. Do not continue after the edit
370251
370356
  async function loadSessionMemoryTemplate() {
370252
370357
  const templatePath = join89(getMaximoConfigHomeDir(), "session-memory", "config", "template.md");
370253
370358
  try {
370254
- return await readFile29(templatePath, { encoding: "utf-8" });
370359
+ return await readFile30(templatePath, { encoding: "utf-8" });
370255
370360
  } catch (e) {
370256
370361
  const code = getErrnoCode(e);
370257
370362
  if (code === "ENOENT") {
@@ -370264,7 +370369,7 @@ async function loadSessionMemoryTemplate() {
370264
370369
  async function loadSessionMemoryPrompt() {
370265
370370
  const promptPath = join89(getMaximoConfigHomeDir(), "session-memory", "config", "prompt.md");
370266
370371
  try {
370267
- return await readFile29(promptPath, { encoding: "utf-8" });
370372
+ return await readFile30(promptPath, { encoding: "utf-8" });
370268
370373
  } catch (e) {
370269
370374
  const code = getErrnoCode(e);
370270
370375
  if (code === "ENOENT") {
@@ -371958,7 +372063,7 @@ var init_toolSearch = __esm(() => {
371958
372063
 
371959
372064
  // src/services/vcr.ts
371960
372065
  import { createHash as createHash20, randomUUID as randomUUID23 } from "crypto";
371961
- import { mkdir as mkdir23, readFile as readFile30, writeFile as writeFile24 } from "fs/promises";
372066
+ import { mkdir as mkdir23, readFile as readFile31, writeFile as writeFile24 } from "fs/promises";
371962
372067
  import { dirname as dirname36, join as join90 } from "path";
371963
372068
  function shouldUseVCR() {
371964
372069
  if (false) {}
@@ -371974,7 +372079,7 @@ async function withFixture(input, fixtureName, f) {
371974
372079
  const hash2 = createHash20("sha1").update(jsonStringify(input)).digest("hex").slice(0, 12);
371975
372080
  const filename = join90(process.env.MAXIMO_SYNTAX_TEST_FIXTURES_ROOT ?? getCwd(), `fixtures/${fixtureName}-${hash2}.json`);
371976
372081
  try {
371977
- const cached3 = jsonParse(await readFile30(filename, { encoding: "utf8" }));
372082
+ const cached3 = jsonParse(await readFile31(filename, { encoding: "utf8" }));
371978
372083
  return cached3;
371979
372084
  } catch (e) {
371980
372085
  const code = getErrnoCode(e);
@@ -372008,7 +372113,7 @@ async function withVCR(messages, f) {
372008
372113
  const dehydratedInput = mapMessages(messagesForAPI.map((_) => _.message.content), dehydrateValue);
372009
372114
  const filename = join90(process.env.MAXIMO_SYNTAX_TEST_FIXTURES_ROOT ?? getCwd(), `fixtures/${dehydratedInput.map((_) => createHash20("sha1").update(jsonStringify(_)).digest("hex").slice(0, 6)).join("-")}.json`);
372010
372115
  try {
372011
- const cached3 = jsonParse(await readFile30(filename, { encoding: "utf8" }));
372116
+ const cached3 = jsonParse(await readFile31(filename, { encoding: "utf8" }));
372012
372117
  cached3.output.forEach(addCachedCostToTotalSessionCost);
372013
372118
  return cached3.output.map((message, index) => mapMessage(message, hydrateValue, index, randomUUID23()));
372014
372119
  } catch (e) {
@@ -372472,7 +372577,7 @@ var init_tokenEstimation = __esm(() => {
372472
372577
 
372473
372578
  // src/utils/pdf.ts
372474
372579
  import { randomUUID as randomUUID24 } from "crypto";
372475
- import { mkdir as mkdir24, readdir as readdir16, readFile as readFile31 } from "fs/promises";
372580
+ import { mkdir as mkdir24, readdir as readdir16, readFile as readFile32 } from "fs/promises";
372476
372581
  import { join as join91 } from "path";
372477
372582
  async function readPDF(filePath) {
372478
372583
  try {
@@ -372494,7 +372599,7 @@ async function readPDF(filePath) {
372494
372599
  }
372495
372600
  };
372496
372601
  }
372497
- const fileBuffer = await readFile31(filePath);
372602
+ const fileBuffer = await readFile32(filePath);
372498
372603
  const header = fileBuffer.subarray(0, 5).toString("ascii");
372499
372604
  if (!header.startsWith("%PDF-")) {
372500
372605
  return {
@@ -376340,7 +376445,7 @@ import {
376340
376445
  chmod as chmod8,
376341
376446
  lstat as lstat5,
376342
376447
  readdir as readdir19,
376343
- readFile as readFile32,
376448
+ readFile as readFile33,
376344
376449
  rename as rename3,
376345
376450
  rm as rm5,
376346
376451
  stat as stat33,
@@ -376485,7 +376590,7 @@ async function collectFilesForZip(baseDir, relativePath, files, visited) {
376485
376590
  await collectFilesForZip(baseDir, relPath, files, visited);
376486
376591
  } else if (fileStat.isFile()) {
376487
376592
  try {
376488
- const content = await readFile32(fullPath);
376593
+ const content = await readFile33(fullPath);
376489
376594
  files[relPath] = [
376490
376595
  new Uint8Array(content),
376491
376596
  { os: 3, attrs: (fileStat.mode & 65535) << 16 }
@@ -376996,7 +377101,7 @@ var init_marketplaceHelpers = __esm(() => {
376996
377101
  });
376997
377102
 
376998
377103
  // src/utils/plugins/officialMarketplaceGcs.ts
376999
- import { chmod as chmod9, mkdir as mkdir25, readFile as readFile33, rename as rename4, rm as rm7, writeFile as writeFile27 } from "fs/promises";
377104
+ import { chmod as chmod9, mkdir as mkdir25, readFile as readFile34, rename as rename4, rm as rm7, writeFile as writeFile27 } from "fs/promises";
377000
377105
  import { dirname as dirname40, join as join96, resolve as resolve32, sep as sep22 } from "path";
377001
377106
  async function fetchOfficialMarketplaceFromGcs(installLocation, marketplacesCacheDir) {
377002
377107
  const cacheDir = resolve32(marketplacesCacheDir);
@@ -377021,7 +377126,7 @@ async function fetchOfficialMarketplaceFromGcs(installLocation, marketplacesCach
377021
377126
  throw new Error("latest pointer returned empty body");
377022
377127
  }
377023
377128
  const sentinelPath = join96(installLocation, ".gcs-sha");
377024
- const currentSha = await readFile33(sentinelPath, "utf8").then((s) => s.trim(), () => null);
377129
+ const currentSha = await readFile34(sentinelPath, "utf8").then((s) => s.trim(), () => null);
377025
377130
  if (currentSha === sha) {
377026
377131
  outcome = "noop";
377027
377132
  return sha;
@@ -379127,7 +379232,7 @@ var init_pluginInstallationHelpers = __esm(() => {
379127
379232
  import {
379128
379233
  copyFile as copyFile7,
379129
379234
  readdir as readdir21,
379130
- readFile as readFile34,
379235
+ readFile as readFile35,
379131
379236
  readlink as readlink2,
379132
379237
  realpath as realpath11,
379133
379238
  rename as rename6,
@@ -379527,7 +379632,7 @@ async function cachePlugin(source, options2) {
379527
379632
  let manifest;
379528
379633
  if (await pathExists(manifestPath)) {
379529
379634
  try {
379530
- const content = await readFile34(manifestPath, { encoding: "utf-8" });
379635
+ const content = await readFile35(manifestPath, { encoding: "utf-8" });
379531
379636
  const parsed = jsonParse(content);
379532
379637
  const result = PluginManifestSchema().safeParse(parsed);
379533
379638
  if (result.success) {
@@ -379551,7 +379656,7 @@ async function cachePlugin(source, options2) {
379551
379656
  }
379552
379657
  } else if (await pathExists(legacyManifestPath)) {
379553
379658
  try {
379554
- const content = await readFile34(legacyManifestPath, {
379659
+ const content = await readFile35(legacyManifestPath, {
379555
379660
  encoding: "utf-8"
379556
379661
  });
379557
379662
  const parsed = jsonParse(content);
@@ -379601,7 +379706,7 @@ async function loadPluginManifest(manifestPath, pluginName, source) {
379601
379706
  };
379602
379707
  }
379603
379708
  try {
379604
- const content = await readFile34(manifestPath, { encoding: "utf-8" });
379709
+ const content = await readFile35(manifestPath, { encoding: "utf-8" });
379605
379710
  const parsedJson = jsonParse(content);
379606
379711
  const result = PluginManifestSchema().safeParse(parsedJson);
379607
379712
  if (result.success) {
@@ -379627,7 +379732,7 @@ async function loadPluginHooks2(hooksConfigPath, pluginName) {
379627
379732
  if (!await pathExists(hooksConfigPath)) {
379628
379733
  throw new Error(`Hooks file not found at ${hooksConfigPath} for plugin ${pluginName}. If the manifest declares hooks, the file must exist.`);
379629
379734
  }
379630
- const content = await readFile34(hooksConfigPath, { encoding: "utf-8" });
379735
+ const content = await readFile35(hooksConfigPath, { encoding: "utf-8" });
379631
379736
  const rawHooksConfig = jsonParse(content);
379632
379737
  const validatedPluginHooks = PluginHooksSchema().parse(rawHooksConfig);
379633
379738
  return validatedPluginHooks.hooks;
@@ -379930,7 +380035,7 @@ function parsePluginSettings(raw) {
379930
380035
  async function loadPluginSettings(pluginPath, manifest) {
379931
380036
  const settingsJsonPath = join100(pluginPath, "settings.json");
379932
380037
  try {
379933
- const content = await readFile34(settingsJsonPath, { encoding: "utf-8" });
380038
+ const content = await readFile35(settingsJsonPath, { encoding: "utf-8" });
379934
380039
  const parsed = jsonParse(content);
379935
380040
  if (isRecord(parsed)) {
379936
380041
  const filtered = parsePluginSettings(parsed);
@@ -388144,7 +388249,7 @@ __export(exports_terminalSetup, {
388144
388249
  call: () => call5
388145
388250
  });
388146
388251
  import { randomBytes as randomBytes14 } from "crypto";
388147
- import { copyFile as copyFile8, mkdir as mkdir26, readFile as readFile35, writeFile as writeFile29 } from "fs/promises";
388252
+ import { copyFile as copyFile8, mkdir as mkdir26, readFile as readFile36, writeFile as writeFile29 } from "fs/promises";
388148
388253
  import { homedir as homedir29, platform as platform4 } from "os";
388149
388254
  import { dirname as dirname46, join as join104 } from "path";
388150
388255
  import { pathToFileURL as pathToFileURL7 } from "url";
@@ -388291,7 +388396,7 @@ async function installBindingsForVSCodeTerminal(editor = "VSCode", theme) {
388291
388396
  let keybindings = [];
388292
388397
  let fileExists = false;
388293
388398
  try {
388294
- content = await readFile35(keybindingsPath, {
388399
+ content = await readFile36(keybindingsPath, {
388295
388400
  encoding: "utf-8"
388296
388401
  });
388297
388402
  fileExists = true;
@@ -388440,7 +388545,7 @@ chars = "\\u001B\\r"`;
388440
388545
  let configExists = false;
388441
388546
  for (const path17 of configPaths) {
388442
388547
  try {
388443
- configContent = await readFile35(path17, {
388548
+ configContent = await readFile36(path17, {
388444
388549
  encoding: "utf-8"
388445
388550
  });
388446
388551
  configPath = path17;
@@ -388502,7 +388607,7 @@ async function installBindingsForZed(theme) {
388502
388607
  let keymapContent = "[]";
388503
388608
  let fileExists = false;
388504
388609
  try {
388505
- keymapContent = await readFile35(keymapPath, {
388610
+ keymapContent = await readFile36(keymapPath, {
388506
388611
  encoding: "utf-8"
388507
388612
  });
388508
388613
  fileExists = true;
@@ -388575,7 +388680,7 @@ var init_terminalSetup = __esm(() => {
388575
388680
 
388576
388681
  // src/utils/pasteStore.ts
388577
388682
  import { createHash as createHash22 } from "crypto";
388578
- import { mkdir as mkdir27, readdir as readdir22, readFile as readFile36, stat as stat37, unlink as unlink15, writeFile as writeFile30 } from "fs/promises";
388683
+ import { mkdir as mkdir27, readdir as readdir22, readFile as readFile37, stat as stat37, unlink as unlink15, writeFile as writeFile30 } from "fs/promises";
388579
388684
  import { join as join105 } from "path";
388580
388685
  function getPasteStoreDir() {
388581
388686
  return join105(getMaximoConfigHomeDir(), PASTE_STORE_DIR);
@@ -388600,7 +388705,7 @@ async function storePastedText(hash2, content) {
388600
388705
  async function retrievePastedText(hash2) {
388601
388706
  try {
388602
388707
  const pastePath = getPastePath(hash2);
388603
- return await readFile36(pastePath, { encoding: "utf8" });
388708
+ return await readFile37(pastePath, { encoding: "utf8" });
388604
388709
  } catch (error42) {
388605
388710
  if (!isENOENT(error42)) {
388606
388711
  logForDebugging2(`Failed to retrieve paste ${hash2}: ${error42}`);
@@ -392671,7 +392776,7 @@ var init_issue = __esm(() => {
392671
392776
  });
392672
392777
 
392673
392778
  // src/components/Feedback.tsx
392674
- import { readFile as readFile37, stat as stat38 } from "fs/promises";
392779
+ import { readFile as readFile38, stat as stat38 } from "fs/promises";
392675
392780
  function redactSensitiveInfo(text) {
392676
392781
  let redacted = text;
392677
392782
  redacted = redacted.replace(/"(sk-ant[^\s"']{24,})"/g, '"[REDACTED_API_KEY]"');
@@ -392708,7 +392813,7 @@ async function loadRawTranscriptJsonl() {
392708
392813
  });
392709
392814
  return null;
392710
392815
  }
392711
- return await readFile37(transcriptPath, "utf-8");
392816
+ return await readFile38(transcriptPath, "utf-8");
392712
392817
  } catch {
392713
392818
  return null;
392714
392819
  }
@@ -418508,7 +418613,7 @@ var init_AddMarketplace = __esm(() => {
418508
418613
 
418509
418614
  // src/utils/plugins/installCounts.ts
418510
418615
  import { randomBytes as randomBytes15 } from "crypto";
418511
- import { readFile as readFile38, rename as rename7, unlink as unlink17, writeFile as writeFile36 } from "fs/promises";
418616
+ import { readFile as readFile39, rename as rename7, unlink as unlink17, writeFile as writeFile36 } from "fs/promises";
418512
418617
  import { join as join116 } from "path";
418513
418618
  function getInstallCountsCachePath() {
418514
418619
  return join116(getPluginsDirectory(), INSTALL_COUNTS_CACHE_FILENAME);
@@ -418516,7 +418621,7 @@ function getInstallCountsCachePath() {
418516
418621
  async function loadInstallCountsCache() {
418517
418622
  const cachePath = getInstallCountsCachePath();
418518
418623
  try {
418519
- const content = await readFile38(cachePath, { encoding: "utf-8" });
418624
+ const content = await readFile39(cachePath, { encoding: "utf-8" });
418520
418625
  const parsed = jsonParse(content);
418521
418626
  if (typeof parsed !== "object" || parsed === null || !("version" in parsed) || !("fetchedAt" in parsed) || !("counts" in parsed)) {
418522
418627
  logForDebugging2("Install counts cache has invalid structure");
@@ -422931,7 +423036,7 @@ var init_ManageMarketplaces = __esm(() => {
422931
423036
 
422932
423037
  // src/utils/plugins/pluginFlagging.ts
422933
423038
  import { randomBytes as randomBytes16 } from "crypto";
422934
- import { readFile as readFile39, rename as rename8, unlink as unlink18, writeFile as writeFile37 } from "fs/promises";
423039
+ import { readFile as readFile40, rename as rename8, unlink as unlink18, writeFile as writeFile37 } from "fs/promises";
422935
423040
  import { join as join118 } from "path";
422936
423041
  function getFlaggedPluginsPath() {
422937
423042
  return join118(getPluginsDirectory(), FLAGGED_PLUGINS_FILENAME);
@@ -422958,7 +423063,7 @@ function parsePluginsData(content) {
422958
423063
  }
422959
423064
  async function readFromDisk() {
422960
423065
  try {
422961
- const content = await readFile39(getFlaggedPluginsPath(), {
423066
+ const content = await readFile40(getFlaggedPluginsPath(), {
422962
423067
  encoding: "utf-8"
422963
423068
  });
422964
423069
  return parsePluginsData(content);
@@ -426237,7 +426342,7 @@ function parsePluginArgs(args) {
426237
426342
  }
426238
426343
 
426239
426344
  // src/utils/plugins/validatePlugin.ts
426240
- import { readdir as readdir25, readFile as readFile41, stat as stat40 } from "fs/promises";
426345
+ import { readdir as readdir25, readFile as readFile42, stat as stat40 } from "fs/promises";
426241
426346
  import * as path20 from "path";
426242
426347
  function detectManifestType(filePath) {
426243
426348
  const fileName = path20.basename(filePath);
@@ -426277,7 +426382,7 @@ async function validatePluginManifest(filePath) {
426277
426382
  const absolutePath = path20.resolve(filePath);
426278
426383
  let content;
426279
426384
  try {
426280
- content = await readFile41(absolutePath, { encoding: "utf-8" });
426385
+ content = await readFile42(absolutePath, { encoding: "utf-8" });
426281
426386
  } catch (error42) {
426282
426387
  const code = getErrnoCode(error42);
426283
426388
  let message;
@@ -426401,7 +426506,7 @@ async function validateMarketplaceManifest(filePath) {
426401
426506
  const absolutePath = path20.resolve(filePath);
426402
426507
  let content;
426403
426508
  try {
426404
- content = await readFile41(absolutePath, { encoding: "utf-8" });
426509
+ content = await readFile42(absolutePath, { encoding: "utf-8" });
426405
426510
  } catch (error42) {
426406
426511
  const code = getErrnoCode(error42);
426407
426512
  let message;
@@ -426487,7 +426592,7 @@ async function validateMarketplaceManifest(filePath) {
426487
426592
  const pluginJsonPath = path20.join(marketplaceRoot, entry.source, ".maximo-plugin", "plugin.json");
426488
426593
  let manifestVersion;
426489
426594
  try {
426490
- const raw = await readFile41(pluginJsonPath, { encoding: "utf-8" });
426595
+ const raw = await readFile42(pluginJsonPath, { encoding: "utf-8" });
426491
426596
  const parsed2 = jsonParse(raw);
426492
426597
  if (typeof parsed2.version === "string") {
426493
426598
  manifestVersion = parsed2.version;
@@ -426604,7 +426709,7 @@ function validateComponentFile(filePath, content, fileType) {
426604
426709
  async function validateHooksJson(filePath) {
426605
426710
  let content;
426606
426711
  try {
426607
- content = await readFile41(filePath, { encoding: "utf-8" });
426712
+ content = await readFile42(filePath, { encoding: "utf-8" });
426608
426713
  } catch (e) {
426609
426714
  const code = getErrnoCode(e);
426610
426715
  if (code === "ENOENT") {
@@ -426697,7 +426802,7 @@ async function validatePluginContents(pluginDir) {
426697
426802
  for (const filePath of files) {
426698
426803
  let content;
426699
426804
  try {
426700
- content = await readFile41(filePath, { encoding: "utf-8" });
426805
+ content = await readFile42(filePath, { encoding: "utf-8" });
426701
426806
  } catch (e) {
426702
426807
  if (isENOENT(e))
426703
426808
  continue;
@@ -426766,7 +426871,7 @@ async function validateManifest2(filePath) {
426766
426871
  return validateMarketplaceManifest(filePath);
426767
426872
  case "unknown": {
426768
426873
  try {
426769
- const content = await readFile41(absolutePath, { encoding: "utf-8" });
426874
+ const content = await readFile42(absolutePath, { encoding: "utf-8" });
426770
426875
  const parsed = jsonParse(content);
426771
426876
  if (Array.isArray(parsed.plugins)) {
426772
426877
  return validateMarketplaceManifest(filePath);
@@ -433041,7 +433146,7 @@ ${args ? "Additional user input: " + args : ""}
433041
433146
  });
433042
433147
 
433043
433148
  // src/utils/releaseNotes.ts
433044
- import { mkdir as mkdir32, readFile as readFile42, writeFile as writeFile38 } from "fs/promises";
433149
+ import { mkdir as mkdir32, readFile as readFile43, writeFile as writeFile38 } from "fs/promises";
433045
433150
  import { dirname as dirname52, join as join121 } from "path";
433046
433151
  function getChangelogCachePath() {
433047
433152
  return join121(getMaximoConfigHomeDir(), "cache", "changelog.md");
@@ -433091,7 +433196,7 @@ async function getStoredChangelog() {
433091
433196
  }
433092
433197
  const cachePath = getChangelogCachePath();
433093
433198
  try {
433094
- const content = await readFile42(cachePath, "utf-8");
433199
+ const content = await readFile43(cachePath, "utf-8");
433095
433200
  changelogMemoryCache = content;
433096
433201
  return content;
433097
433202
  } catch {
@@ -434366,7 +434471,7 @@ function getRecentActivitySync() {
434366
434471
  return cachedActivity;
434367
434472
  }
434368
434473
  function getLogoDisplayData() {
434369
- const version2 = process.env.DEMO_VERSION ?? "0.1.51" ?? "99.0.0";
434474
+ const version2 = process.env.DEMO_VERSION ?? "0.1.52" ?? "99.0.0";
434370
434475
  const serverUrl = getDirectConnectServerUrl();
434371
434476
  const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
434372
434477
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -449660,7 +449765,7 @@ __export(exports_thinkback, {
449660
449765
  playAnimation: () => playAnimation,
449661
449766
  call: () => call40
449662
449767
  });
449663
- import { readFile as readFile43 } from "fs/promises";
449768
+ import { readFile as readFile44 } from "fs/promises";
449664
449769
  import { join as join123 } from "path";
449665
449770
  function getMarketplaceName() {
449666
449771
  return OFFICIAL_MARKETPLACE_NAME;
@@ -449687,7 +449792,7 @@ async function playAnimation(skillDir) {
449687
449792
  const dataPath = join123(skillDir, "year_in_review.js");
449688
449793
  const playerPath = join123(skillDir, "player.js");
449689
449794
  try {
449690
- await readFile43(dataPath);
449795
+ await readFile44(dataPath);
449691
449796
  } catch (e) {
449692
449797
  if (isENOENT(e)) {
449693
449798
  return {
@@ -449702,7 +449807,7 @@ async function playAnimation(skillDir) {
449702
449807
  };
449703
449808
  }
449704
449809
  try {
449705
- await readFile43(playerPath);
449810
+ await readFile44(playerPath);
449706
449811
  } catch (e) {
449707
449812
  if (isENOENT(e)) {
449708
449813
  return {
@@ -456830,7 +456935,7 @@ __export(exports_branch, {
456830
456935
  call: () => call50
456831
456936
  });
456832
456937
  import { randomUUID as randomUUID29 } from "crypto";
456833
- import { mkdir as mkdir34, readFile as readFile44, writeFile as writeFile39 } from "fs/promises";
456938
+ import { mkdir as mkdir34, readFile as readFile45, writeFile as writeFile39 } from "fs/promises";
456834
456939
  function deriveFirstPrompt(firstUserMessage) {
456835
456940
  const content = firstUserMessage?.message?.content;
456836
456941
  if (!content)
@@ -456849,7 +456954,7 @@ async function createFork(customTitle) {
456849
456954
  await mkdir34(projectDir, { recursive: true, mode: 448 });
456850
456955
  let transcriptContent;
456851
456956
  try {
456852
- transcriptContent = await readFile44(currentTranscriptPath);
456957
+ transcriptContent = await readFile45(currentTranscriptPath);
456853
456958
  } catch {
456854
456959
  throw new Error("No conversation to branch");
456855
456960
  }
@@ -463216,7 +463321,7 @@ var init_rewind = __esm(() => {
463216
463321
 
463217
463322
  // src/utils/heapDumpService.ts
463218
463323
  import { createWriteStream as createWriteStream3, writeFileSync as writeFileSync4 } from "fs";
463219
- import { readdir as readdir26, readFile as readFile45, writeFile as writeFile40 } from "fs/promises";
463324
+ import { readdir as readdir26, readFile as readFile46, writeFile as writeFile40 } from "fs/promises";
463220
463325
  import { join as join126 } from "path";
463221
463326
  import { pipeline as pipeline2 } from "stream/promises";
463222
463327
  import {
@@ -463241,7 +463346,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
463241
463346
  } catch {}
463242
463347
  let smapsRollup;
463243
463348
  try {
463244
- smapsRollup = await readFile45("/proc/self/smaps_rollup", "utf8");
463349
+ smapsRollup = await readFile46("/proc/self/smaps_rollup", "utf8");
463245
463350
  } catch {}
463246
463351
  const nativeMemory = usage.rss - usage.heapUsed;
463247
463352
  const bytesPerSecond = uptimeSeconds > 0 ? usage.rss / uptimeSeconds : 0;
@@ -463893,7 +463998,7 @@ var init_bridge_kick = __esm(() => {
463893
463998
  var call57 = async () => {
463894
463999
  return {
463895
464000
  type: "text",
463896
- value: `${"99.0.0"} (built ${"2026-10-08T20:29:25.759Z"})`
464001
+ value: `${"99.0.0"} (built ${"2026-11-05T01:52:52.911Z"})`
463897
464002
  };
463898
464003
  }, version2, version_default;
463899
464004
  var init_version = __esm(() => {
@@ -465213,7 +465318,7 @@ var init_setupPortable = __esm(() => {
465213
465318
  });
465214
465319
 
465215
465320
  // src/utils/claudeInChrome/setup.ts
465216
- import { chmod as chmod10, mkdir as mkdir36, readFile as readFile46, writeFile as writeFile41 } from "fs/promises";
465321
+ import { chmod as chmod10, mkdir as mkdir36, readFile as readFile47, writeFile as writeFile41 } from "fs/promises";
465217
465322
  import { homedir as homedir35 } from "os";
465218
465323
  import { join as join128 } from "path";
465219
465324
  import { fileURLToPath as fileURLToPath6 } from "url";
@@ -465322,7 +465427,7 @@ async function installChromeNativeHostManifest(manifestBinaryPath) {
465322
465427
  let anyManifestUpdated = false;
465323
465428
  for (const manifestDir of manifestDirs) {
465324
465429
  const manifestPath = join128(manifestDir, NATIVE_HOST_MANIFEST_NAME);
465325
- const existingContent = await readFile46(manifestPath, "utf-8").catch(() => null);
465430
+ const existingContent = await readFile47(manifestPath, "utf-8").catch(() => null);
465326
465431
  if (existingContent === manifestContent) {
465327
465432
  continue;
465328
465433
  }
@@ -465385,7 +465490,7 @@ ${command7}
465385
465490
  # Generated by Maximo Syntax - do not edit manually
465386
465491
  exec ${command7}
465387
465492
  `;
465388
- const existingContent = await readFile46(wrapperPath, "utf-8").catch(() => null);
465493
+ const existingContent = await readFile47(wrapperPath, "utf-8").catch(() => null);
465389
465494
  if (existingContent === scriptContent) {
465390
465495
  return wrapperPath;
465391
465496
  }
@@ -472614,13 +472719,13 @@ import {
472614
472719
  mkdir as mkdir39,
472615
472720
  mkdtemp,
472616
472721
  readdir as readdir28,
472617
- readFile as readFile47,
472722
+ readFile as readFile48,
472618
472723
  rm as rm10,
472619
472724
  unlink as unlink21,
472620
472725
  writeFile as writeFile43
472621
472726
  } from "fs/promises";
472622
472727
  import { tmpdir as tmpdir10 } from "os";
472623
- import { extname as extname14, join as join135 } from "path";
472728
+ import { extname as extname15, join as join135 } from "path";
472624
472729
  function getAnalysisModel() {
472625
472730
  return getDefaultOpusModel();
472626
472731
  }
@@ -472637,7 +472742,7 @@ function getSessionMetaDir() {
472637
472742
  return join135(getDataDir(), "session-meta");
472638
472743
  }
472639
472744
  function getLanguageFromPath(filePath) {
472640
- const ext = extname14(filePath).toLowerCase();
472745
+ const ext = extname15(filePath).toLowerCase();
472641
472746
  return EXTENSION_TO_LANGUAGE[ext] || null;
472642
472747
  }
472643
472748
  function extractToolStats(log) {
@@ -472981,7 +473086,7 @@ async function formatTranscriptWithSummarization(log) {
472981
473086
  async function loadCachedFacets(sessionId) {
472982
473087
  const facetPath = join135(getFacetsDir(), `${sessionId}.json`);
472983
473088
  try {
472984
- const content = await readFile47(facetPath, { encoding: "utf-8" });
473089
+ const content = await readFile48(facetPath, { encoding: "utf-8" });
472985
473090
  const parsed = jsonParse(content);
472986
473091
  if (!isValidSessionFacets(parsed)) {
472987
473092
  try {
@@ -473007,7 +473112,7 @@ async function saveFacets(facets) {
473007
473112
  async function loadCachedSessionMeta(sessionId) {
473008
473113
  const metaPath = join135(getSessionMetaDir(), `${sessionId}.json`);
473009
473114
  try {
473010
- const content = await readFile47(metaPath, { encoding: "utf-8" });
473115
+ const content = await readFile48(metaPath, { encoding: "utf-8" });
473011
473116
  return jsonParse(content);
473012
473117
  } catch {
473013
473118
  return null;
@@ -475365,7 +475470,7 @@ import {
475365
475470
  open as fsOpen2,
475366
475471
  mkdir as mkdir40,
475367
475472
  readdir as readdir29,
475368
- readFile as readFile48,
475473
+ readFile as readFile49,
475369
475474
  stat as stat42,
475370
475475
  unlink as unlink22,
475371
475476
  writeFile as writeFile44
@@ -475421,7 +475526,7 @@ async function writeAgentMetadata(agentId, metadata) {
475421
475526
  async function readAgentMetadata(agentId) {
475422
475527
  const path21 = getAgentMetadataPath(agentId);
475423
475528
  try {
475424
- const raw = await readFile48(path21, "utf-8");
475529
+ const raw = await readFile49(path21, "utf-8");
475425
475530
  return JSON.parse(raw);
475426
475531
  } catch (e) {
475427
475532
  if (isFsInaccessible(e))
@@ -475444,7 +475549,7 @@ async function writeRemoteAgentMetadata(taskId, metadata) {
475444
475549
  async function readRemoteAgentMetadata(taskId) {
475445
475550
  const path21 = getRemoteAgentMetadataPath(taskId);
475446
475551
  try {
475447
- const raw = await readFile48(path21, "utf-8");
475552
+ const raw = await readFile49(path21, "utf-8");
475448
475553
  return JSON.parse(raw);
475449
475554
  } catch (e) {
475450
475555
  if (isFsInaccessible(e))
@@ -475477,7 +475582,7 @@ async function listRemoteAgentMetadata() {
475477
475582
  if (!entry.isFile() || !entry.name.endsWith(".meta.json"))
475478
475583
  continue;
475479
475584
  try {
475480
- const raw = await readFile48(join136(dir, entry.name), "utf-8");
475585
+ const raw = await readFile49(join136(dir, entry.name), "utf-8");
475481
475586
  results.push(JSON.parse(raw));
475482
475587
  } catch (e) {
475483
475588
  logForDebugging2(`listRemoteAgentMetadata: skipping ${entry.name}: ${String(e)}`);
@@ -475819,7 +475924,7 @@ class Project {
475819
475924
  logForDebugging2(`Skipping tombstone removal: session file too large (${formatFileSize(fileSize)})`, { level: "warn" });
475820
475925
  return;
475821
475926
  }
475822
- const content = await readFile48(this.sessionFile, { encoding: "utf-8" });
475927
+ const content = await readFile49(this.sessionFile, { encoding: "utf-8" });
475823
475928
  const lines = content.split(`
475824
475929
  `).filter((line) => {
475825
475930
  if (!line.trim())
@@ -476632,7 +476737,7 @@ async function loadTranscriptFromFile(filePath) {
476632
476737
  worktreeSession: worktreeStates.has(sessionId) ? worktreeStates.get(sessionId) : undefined
476633
476738
  };
476634
476739
  }
476635
- const content = await readFile48(filePath, { encoding: "utf-8" });
476740
+ const content = await readFile49(filePath, { encoding: "utf-8" });
476636
476741
  let parsed;
476637
476742
  try {
476638
476743
  parsed = jsonParse(content);
@@ -477294,7 +477399,7 @@ async function loadTranscriptFile(filePath, opts) {
477294
477399
  }
477295
477400
  }
477296
477401
  }
477297
- buf ??= await readFile48(filePath);
477402
+ buf ??= await readFile49(filePath);
477298
477403
  if (!opts?.keepAllLeaves && !hasPreservedSegment && !isEnvTruthy(process.env.MAXIMO_SYNTAX_DISABLE_PRECOMPACT_SKIP) && buf.length > SKIP_PRECOMPACT_THRESHOLD) {
477299
477404
  buf = walkChainBeforeParse(buf);
477300
477405
  }
@@ -483695,7 +483800,7 @@ import {
483695
483800
  copyFile as copyFile10,
483696
483801
  mkdir as mkdir42,
483697
483802
  readdir as readdir30,
483698
- readFile as readFile49,
483803
+ readFile as readFile50,
483699
483804
  stat as stat45,
483700
483805
  symlink as symlink6,
483701
483806
  utimes as utimes2
@@ -483838,7 +483943,7 @@ async function getOrCreateWorktree(repoRoot, slug, options2) {
483838
483943
  async function copyWorktreeIncludeFiles(repoRoot, worktreePath) {
483839
483944
  let includeContent;
483840
483945
  try {
483841
- includeContent = await readFile49(join140(repoRoot, ".worktreeinclude"), "utf-8");
483946
+ includeContent = await readFile50(join140(repoRoot, ".worktreeinclude"), "utf-8");
483842
483947
  } catch {
483843
483948
  return [];
483844
483949
  }
@@ -490260,7 +490365,7 @@ __export(exports_upstreamproxy, {
490260
490365
  getUpstreamProxyEnv: () => getUpstreamProxyEnv,
490261
490366
  SESSION_TOKEN_PATH: () => SESSION_TOKEN_PATH
490262
490367
  });
490263
- import { mkdir as mkdir44, readFile as readFile50, unlink as unlink25, writeFile as writeFile45 } from "fs/promises";
490368
+ import { mkdir as mkdir44, readFile as readFile51, unlink as unlink25, writeFile as writeFile45 } from "fs/promises";
490264
490369
  import { homedir as homedir38 } from "os";
490265
490370
  import { join as join142 } from "path";
490266
490371
  async function initUpstreamProxy(opts) {
@@ -490341,7 +490446,7 @@ function resetUpstreamProxyForTests() {
490341
490446
  }
490342
490447
  async function readToken(path21) {
490343
490448
  try {
490344
- const raw = await readFile50(path21, "utf8");
490449
+ const raw = await readFile51(path21, "utf8");
490345
490450
  return raw.trim() || null;
490346
490451
  } catch (err2) {
490347
490452
  if (isENOENT(err2))
@@ -490382,7 +490487,7 @@ async function downloadCaBundle(baseUrl, systemCaPath, outPath) {
490382
490487
  return false;
490383
490488
  }
490384
490489
  const ccrCa = await resp.text();
490385
- const systemCa = await readFile50(systemCaPath, "utf8").catch(() => "");
490490
+ const systemCa = await readFile51(systemCaPath, "utf8").catch(() => "");
490386
490491
  await mkdir44(join142(outPath, ".."), { recursive: true });
490387
490492
  await writeFile45(outPath, systemCa + `
490388
490493
  ` + ccrCa, "utf8");
@@ -527595,7 +527700,7 @@ var init_useDynamicConfig = __esm(() => {
527595
527700
  });
527596
527701
 
527597
527702
  // src/components/FeedbackSurvey/submitTranscriptShare.ts
527598
- import { readFile as readFile51, stat as stat48 } from "fs/promises";
527703
+ import { readFile as readFile52, stat as stat48 } from "fs/promises";
527599
527704
  async function submitTranscriptShare(messages, trigger, appearanceId) {
527600
527705
  try {
527601
527706
  logForDebugging2("Collecting transcript for sharing", { level: "info" });
@@ -527607,7 +527712,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
527607
527712
  const transcriptPath = getTranscriptPath();
527608
527713
  const { size } = await stat48(transcriptPath);
527609
527714
  if (size <= MAX_TRANSCRIPT_READ_BYTES) {
527610
- rawTranscriptJsonl = await readFile51(transcriptPath, "utf-8");
527715
+ rawTranscriptJsonl = await readFile52(transcriptPath, "utf-8");
527611
527716
  } else {
527612
527717
  logForDebugging2(`Skipping raw transcript read: file too large (${size} bytes)`, { level: "warn" });
527613
527718
  }
@@ -531182,7 +531287,7 @@ var init_binaryCheck = __esm(() => {
531182
531287
  });
531183
531288
 
531184
531289
  // src/utils/plugins/lspRecommendation.ts
531185
- import { extname as extname15 } from "path";
531290
+ import { extname as extname16 } from "path";
531186
531291
  function isOfficialMarketplace(name) {
531187
531292
  return ALLOWED_OFFICIAL_MARKETPLACE_NAMES.has(name.toLowerCase());
531188
531293
  }
@@ -531272,7 +531377,7 @@ async function getMatchingLspPlugins(filePath) {
531272
531377
  logForDebugging2("[lspRecommendation] Recommendations are disabled");
531273
531378
  return [];
531274
531379
  }
531275
- const ext = extname15(filePath).toLowerCase();
531380
+ const ext = extname16(filePath).toLowerCase();
531276
531381
  if (!ext) {
531277
531382
  logForDebugging2("[lspRecommendation] No file extension found");
531278
531383
  return [];
@@ -531465,7 +531570,7 @@ var init_usePluginRecommendationBase = __esm(() => {
531465
531570
  });
531466
531571
 
531467
531572
  // src/hooks/useLspPluginRecommendation.tsx
531468
- import { extname as extname16, join as join146 } from "path";
531573
+ import { extname as extname17, join as join146 } from "path";
531469
531574
  function useLspPluginRecommendation() {
531470
531575
  const $2 = import_react_compiler_runtime350.c(12);
531471
531576
  const trackedFiles = useAppState(_temp208);
@@ -531511,7 +531616,7 @@ function useLspPluginRecommendation() {
531511
531616
  pluginId: match.pluginId,
531512
531617
  pluginName: match.pluginName,
531513
531618
  pluginDescription: match.description,
531514
- fileExtension: extname16(filePath),
531619
+ fileExtension: extname17(filePath),
531515
531620
  shownAt: Date.now()
531516
531621
  };
531517
531622
  }
@@ -539883,7 +539988,7 @@ function SetupRow({ children }) {
539883
539988
  }
539884
539989
  function WelcomeV2() {
539885
539990
  const { columns } = useTerminalSize();
539886
- const version3 = "0.1.51";
539991
+ const version3 = "0.1.52";
539887
539992
  const width = Math.max(48, Math.min(columns || 92, 92));
539888
539993
  const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
539889
539994
  return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
@@ -549502,11 +549607,11 @@ var init_sessionUrl = __esm(() => {
549502
549607
  });
549503
549608
 
549504
549609
  // src/utils/plugins/zipCacheAdapters.ts
549505
- import { readFile as readFile52 } from "fs/promises";
549610
+ import { readFile as readFile53 } from "fs/promises";
549506
549611
  import { join as join151 } from "path";
549507
549612
  async function readZipCacheKnownMarketplaces() {
549508
549613
  try {
549509
- const content = await readFile52(getZipCacheKnownMarketplacesPath(), "utf-8");
549614
+ const content = await readFile53(getZipCacheKnownMarketplacesPath(), "utf-8");
549510
549615
  const parsed = KnownMarketplacesFileSchema().safeParse(jsonParse(content));
549511
549616
  if (!parsed.success) {
549512
549617
  logForDebugging2(`Invalid known_marketplaces.json in zip cache: ${parsed.error.message}`, { level: "error" });
@@ -549539,7 +549644,7 @@ async function readMarketplaceJsonContent(dir) {
549539
549644
  ];
549540
549645
  for (const candidate of candidates) {
549541
549646
  try {
549542
- return await readFile52(candidate, "utf-8");
549647
+ return await readFile53(candidate, "utf-8");
549543
549648
  } catch {}
549544
549649
  }
549545
549650
  return null;
@@ -549992,7 +550097,7 @@ __export(exports_bridgePointer, {
549992
550097
  clearBridgePointer: () => clearBridgePointer,
549993
550098
  BRIDGE_POINTER_TTL_MS: () => BRIDGE_POINTER_TTL_MS
549994
550099
  });
549995
- import { mkdir as mkdir46, readFile as readFile53, stat as stat51, unlink as unlink27, writeFile as writeFile51 } from "fs/promises";
550100
+ import { mkdir as mkdir46, readFile as readFile54, stat as stat51, unlink as unlink27, writeFile as writeFile51 } from "fs/promises";
549996
550101
  import { dirname as dirname63, join as join152 } from "path";
549997
550102
  function getBridgePointerPath(dir) {
549998
550103
  return join152(getProjectsDir(), sanitizePath2(dir), "bridge-pointer.json");
@@ -550013,7 +550118,7 @@ async function readBridgePointer(dir) {
550013
550118
  let mtimeMs;
550014
550119
  try {
550015
550120
  mtimeMs = (await stat51(path23)).mtimeMs;
550016
- raw = await readFile53(path23, "utf8");
550121
+ raw = await readFile54(path23, "utf8");
550017
550122
  } catch {
550018
550123
  return null;
550019
550124
  }
@@ -552003,7 +552108,7 @@ __export(exports_print, {
552003
552108
  createCanUseToolWithPermissionPrompt: () => createCanUseToolWithPermissionPrompt,
552004
552109
  canBatchWith: () => canBatchWith
552005
552110
  });
552006
- import { readFile as readFile54, stat as stat52 } from "fs/promises";
552111
+ import { readFile as readFile55, stat as stat52 } from "fs/promises";
552007
552112
  import { dirname as dirname64 } from "path";
552008
552113
  import { cwd as cwd2 } from "process";
552009
552114
  import { randomUUID as randomUUID55 } from "crypto";
@@ -553372,7 +553477,7 @@ ${m.text}
553372
553477
  const normalizedPath = expandPath(message.request.path);
553373
553478
  const diskMtime = Math.floor((await stat52(normalizedPath)).mtimeMs);
553374
553479
  if (diskMtime <= message.request.mtime) {
553375
- const raw = await readFile54(normalizedPath, "utf-8");
553480
+ const raw = await readFile55(normalizedPath, "utf-8");
553376
553481
  const content = (raw.charCodeAt(0) === 65279 ? raw.slice(1) : raw).replaceAll(`\r
553377
553482
  `, `
553378
553483
  `);
@@ -555960,7 +556065,7 @@ __export(exports_claudeDesktop, {
555960
556065
  readMaximoDesktopMcpServers: () => readMaximoDesktopMcpServers,
555961
556066
  getMaximoDesktopConfigPath: () => getMaximoDesktopConfigPath
555962
556067
  });
555963
- import { readdir as readdir32, readFile as readFile55, stat as stat53 } from "fs/promises";
556068
+ import { readdir as readdir32, readFile as readFile56, stat as stat53 } from "fs/promises";
555964
556069
  import { homedir as homedir43 } from "os";
555965
556070
  import { join as join153 } from "path";
555966
556071
  async function getMaximoDesktopConfigPath() {
@@ -556008,7 +556113,7 @@ async function readMaximoDesktopMcpServers() {
556008
556113
  const configPath = await getMaximoDesktopConfigPath();
556009
556114
  let configContent;
556010
556115
  try {
556011
- configContent = await readFile55(configPath, { encoding: "utf8" });
556116
+ configContent = await readFile56(configPath, { encoding: "utf8" });
556012
556117
  } catch (e) {
556013
556118
  const code = getErrnoCode(e);
556014
556119
  if (code === "ENOENT") {
@@ -559843,7 +559948,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
559843
559948
  pendingHookMessages
559844
559949
  }, renderAndRun);
559845
559950
  }
559846
- }).version("0.1.51 (Maximo Syntax)", "-v, --version", "Output the version number");
559951
+ }).version("0.1.52 (Maximo Syntax)", "-v, --version", "Output the version number");
559847
559952
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
559848
559953
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
559849
559954
  if (canUserConfigureAdvisor()) {
@@ -560382,7 +560487,7 @@ function validateProviderEnvOrExit() {
560382
560487
  async function main2() {
560383
560488
  const args = process.argv.slice(2);
560384
560489
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
560385
- console.log(`${"0.1.51"} (Maximo Syntax)`);
560490
+ console.log(`${"0.1.52"} (Maximo Syntax)`);
560386
560491
  return;
560387
560492
  }
560388
560493
  validateProviderEnvOrExit();
@@ -560459,4 +560564,4 @@ async function main2() {
560459
560564
  }
560460
560565
  main2();
560461
560566
 
560462
- //# debugId=69F6B4FB0CFDE55B64756E2164756E21
560567
+ //# debugId=9EE7305DD07F686A64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maximoai/maximo-syntax-cli",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
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": {