@maximoai/maximo-syntax-cli 0.1.32 → 0.1.33

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 +527 -264
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -79659,7 +79659,7 @@ var require_eventsource = __commonJS((exports, module) => {
79659
79659
 
79660
79660
  // node_modules/undici/index.js
79661
79661
  var require_undici = __commonJS((exports, module) => {
79662
- var __filename = "/private/tmp/maximo-syntax-cli-copy/node_modules/undici/index.js";
79662
+ var __filename = "/Users/johnsondaniel/Documents/maximo-syntax-cli/node_modules/undici/index.js";
79663
79663
  var Client = require_client();
79664
79664
  var Dispatcher = require_dispatcher();
79665
79665
  var Pool = require_pool();
@@ -96490,7 +96490,7 @@ var require_package = __commonJS((exports, module) => {
96490
96490
 
96491
96491
  // node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
96492
96492
  var require_dist_cjs78 = __commonJS((exports) => {
96493
- var __dirname = "/private/tmp/maximo-syntax-cli-copy/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
96493
+ var __dirname = "/Users/johnsondaniel/Documents/maximo-syntax-cli/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
96494
96494
  var node_os = __require("node:os");
96495
96495
  var node_process = __require("node:process");
96496
96496
  var utilConfigProvider = require_dist_cjs63();
@@ -108410,6 +108410,17 @@ var init_betas = __esm(() => {
108410
108410
  ]);
108411
108411
  });
108412
108412
 
108413
+ // src/utils/model/modelDefaults.ts
108414
+ function normalizeRetiredMytabulonModel(value) {
108415
+ if (value === RETIRED_MYTABULON_MODEL)
108416
+ return MYTABULON_DEFAULT_MODEL;
108417
+ return value;
108418
+ }
108419
+ function chooseMytabulonDefaultModel(modelIds) {
108420
+ return modelIds.find((id) => id === MYTABULON_DEFAULT_MODEL) ?? modelIds.find((id) => id !== RETIRED_MYTABULON_MODEL) ?? MYTABULON_DEFAULT_MODEL;
108421
+ }
108422
+ var MYTABULON_DEFAULT_MODEL = "maximo-atlas-1.2", RETIRED_MYTABULON_MODEL = "maximo-atlas-preview";
108423
+
108413
108424
  // src/services/api/maximoModels.ts
108414
108425
  function normalizedBaseUrl(baseUrl) {
108415
108426
  return (baseUrl || "").replace(/\/+$/, "").toLowerCase();
@@ -108822,7 +108833,7 @@ async function refreshMyTabulonAccount({
108822
108833
  };
108823
108834
  }
108824
108835
  function persistMyTabulonState(apiKey, baseUrl, models, account) {
108825
- const defaultModel = models.find((model) => model.id === "maximo-atlas-preview")?.id || models[0]?.id || "maximo-atlas-preview";
108836
+ const defaultModel = chooseMytabulonDefaultModel(models.map((model) => model.id));
108826
108837
  process.env.MAXIMO_SYNTAX_USE_OPENAI = "1";
108827
108838
  process.env.OPENAI_API_KEY = apiKey;
108828
108839
  process.env.OPENAI_BASE_URL = baseUrl;
@@ -109674,13 +109685,13 @@ function isMaximoAIProvider() {
109674
109685
  return false;
109675
109686
  }
109676
109687
  function getOpenAIProviderDefaultModel(fallback) {
109677
- if (process.env.OPENAI_MODEL) {
109678
- return process.env.OPENAI_MODEL;
109679
- }
109680
109688
  const globalConfig2 = getGlobalConfig();
109681
109689
  const baseUrl = process.env.OPENAI_BASE_URL || globalConfig2.openAIBaseUrl || "";
109690
+ if (process.env.OPENAI_MODEL) {
109691
+ return normalizeRetiredMytabulonModel(process.env.OPENAI_MODEL) || process.env.OPENAI_MODEL;
109692
+ }
109682
109693
  if (baseUrl.includes("api.mytabulon.com")) {
109683
- return globalConfig2.mytabulonDefaultModel || "maximo-atlas-preview";
109694
+ return normalizeRetiredMytabulonModel(globalConfig2.mytabulonDefaultModel) || MYTABULON_DEFAULT_MODEL;
109684
109695
  }
109685
109696
  if (baseUrl.includes("maximoai.co")) {
109686
109697
  return "maximo-pandora-3.8-nano";
@@ -109716,6 +109727,9 @@ function getUserSpecifiedModelSetting() {
109716
109727
  const settings = getSettings_DEPRECATED() || {};
109717
109728
  specifiedModel = process.env.ANTHROPIC_MODEL || process.env.GEMINI_MODEL || settings.model || process.env.OPENAI_MODEL || undefined;
109718
109729
  }
109730
+ if (typeof specifiedModel === "string") {
109731
+ specifiedModel = normalizeRetiredMytabulonModel(specifiedModel);
109732
+ }
109719
109733
  if (specifiedModel && !isModelAllowed(specifiedModel)) {
109720
109734
  return;
109721
109735
  }
@@ -109812,6 +109826,9 @@ function firstPartyNameToCanonical(name) {
109812
109826
  if (name.includes("maximo-pandora-3.7-nano")) {
109813
109827
  return "maximo-pandora-3.7-nano";
109814
109828
  }
109829
+ if (name.includes("maximo-atlas-1.2")) {
109830
+ return "maximo-atlas-1.2";
109831
+ }
109815
109832
  if (name.includes("maximo-atlas-preview")) {
109816
109833
  return "maximo-atlas-preview";
109817
109834
  }
@@ -109899,7 +109916,7 @@ function getMaximoAiUserDefaultModelDescription(fastMode = false) {
109899
109916
  if (fastMode) {
109900
109917
  return "Pandora 3.8 Nano · Fast & efficient";
109901
109918
  }
109902
- return getOpenAIProviderDefaultModel("maximo-pandora-3.8-nano") === "maximo-atlas-preview" ? "Atlas Preview · Included with MyTabulon Coding Plan" : "Pandora 3.8 Nano · Optimized for coding";
109919
+ return getOpenAIProviderDefaultModel("maximo-pandora-3.8-nano") === MYTABULON_DEFAULT_MODEL ? "Atlas 1.2 · Included with MyTabulon Coding Plan" : "Pandora 3.8 Nano · Optimized for coding";
109903
109920
  }
109904
109921
  if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
109905
109922
  if (isOpus1mMergeEnabled()) {
@@ -123983,7 +124000,7 @@ var init_metadata = __esm(() => {
123983
124000
  isMaximoAiAuth: isMaximoAISubscriber(),
123984
124001
  version: "99.0.0",
123985
124002
  versionBase: getVersionBase(),
123986
- buildTime: "2026-08-07T23:54:01.463Z",
124003
+ buildTime: "2026-08-13T12:57:41.293Z",
123987
124004
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
123988
124005
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
123989
124006
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -165964,6 +165981,9 @@ function getSupportedEffortLevelsForModel(model) {
165964
165981
  return providerConfig.supportedEfforts.filter(isEffortLevel);
165965
165982
  }
165966
165983
  const m = model.toLowerCase();
165984
+ if (m.includes("maximo-atlas-1.2")) {
165985
+ return ["low", "medium", "high", "xhigh", "max"];
165986
+ }
165967
165987
  if (m.includes("opus-4-6")) {
165968
165988
  return ["low", "medium", "high", "max"];
165969
165989
  }
@@ -276770,7 +276790,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
276770
276790
  import { homedir as homedir22 } from "os";
276771
276791
  import { join as join65 } from "path";
276772
276792
  function getCurrentRealVersion() {
276773
- return "0.1.32";
276793
+ return "0.1.33";
276774
276794
  }
276775
276795
  async function getRolloutConfig() {
276776
276796
  try {
@@ -345963,6 +345983,247 @@ var init_BriefTool = __esm(() => {
345963
345983
  });
345964
345984
  });
345965
345985
 
345986
+ // src/tools/AutomationTool/host.ts
345987
+ import { createConnection as createConnection2 } from "node:net";
345988
+ import { randomUUID as randomUUID18 } from "node:crypto";
345989
+ function safeErrorMessage(error42) {
345990
+ if (typeof error42 === "string" && error42.trim())
345991
+ return error42.trim();
345992
+ if (error42 && typeof error42 === "object" && typeof error42.message === "string") {
345993
+ return error42.message.trim() || "The desktop automation host rejected the request.";
345994
+ }
345995
+ return "The desktop automation host rejected the request.";
345996
+ }
345997
+ function getAutomationHostEnvironment(environment = process.env) {
345998
+ const pipe2 = environment.MAXIMO_SYNTAX_AUTOMATION_HOST_PIPE?.trim();
345999
+ const capability = environment.MAXIMO_SYNTAX_AUTOMATION_HOST_CAPABILITY?.trim();
346000
+ if (!pipe2 || !capability)
346001
+ return null;
346002
+ return {
346003
+ pipe: pipe2,
346004
+ capability,
346005
+ threadId: environment.MAXIMO_SYNTAX_DESKTOP_THREAD_ID?.trim() || undefined,
346006
+ projectId: environment.MAXIMO_SYNTAX_DESKTOP_PROJECT_ID?.trim() || undefined,
346007
+ workspaceRoot: environment.MAXIMO_SYNTAX_DESKTOP_WORKSPACE_ROOT?.trim() || undefined
346008
+ };
346009
+ }
346010
+ async function callAutomationHost(action2, argumentsValue, host = getAutomationHostEnvironment()) {
346011
+ if (!host) {
346012
+ throw new Error("Automations are only available while Maximo Syntax is running inside the desktop app.");
346013
+ }
346014
+ const requestId = randomUUID18();
346015
+ const request = JSON.stringify({
346016
+ id: requestId,
346017
+ capability: host.capability,
346018
+ action: action2,
346019
+ arguments: argumentsValue,
346020
+ context: {
346021
+ threadId: host.threadId,
346022
+ projectId: host.projectId,
346023
+ workspaceRoot: host.workspaceRoot
346024
+ }
346025
+ });
346026
+ return new Promise((resolve31, reject2) => {
346027
+ const socket = createConnection2(host.pipe);
346028
+ let settled = false;
346029
+ let responseText = "";
346030
+ const finish = (error42, value) => {
346031
+ if (settled)
346032
+ return;
346033
+ settled = true;
346034
+ clearTimeout(timeout);
346035
+ socket.destroy();
346036
+ if (error42)
346037
+ reject2(error42);
346038
+ else
346039
+ resolve31(value);
346040
+ };
346041
+ const timeout = setTimeout(() => {
346042
+ finish(new Error("The desktop automation host did not respond in time."));
346043
+ }, REQUEST_TIMEOUT_MS);
346044
+ socket.setEncoding("utf8");
346045
+ socket.on("connect", () => socket.write(`${request}
346046
+ `));
346047
+ socket.on("data", (chunk) => {
346048
+ responseText += chunk;
346049
+ if (Buffer.byteLength(responseText, "utf8") > MAX_RESPONSE_BYTES) {
346050
+ finish(new Error("The desktop automation response was too large."));
346051
+ return;
346052
+ }
346053
+ const newline2 = responseText.indexOf(`
346054
+ `);
346055
+ if (newline2 < 0)
346056
+ return;
346057
+ try {
346058
+ const response = JSON.parse(responseText.slice(0, newline2));
346059
+ if (response.id !== requestId) {
346060
+ finish(new Error("The desktop automation host returned a mismatched response."));
346061
+ } else if (response.ok === false || response.error) {
346062
+ finish(new Error(safeErrorMessage(response.error)));
346063
+ } else {
346064
+ finish(undefined, response.result);
346065
+ }
346066
+ } catch (error42) {
346067
+ finish(new Error(error42 instanceof Error ? `Invalid response from the desktop automation host: ${error42.message}` : "Invalid response from the desktop automation host."));
346068
+ }
346069
+ });
346070
+ socket.on("error", (error42) => {
346071
+ finish(new Error(`Could not reach the desktop automation host: ${error42.message}`));
346072
+ });
346073
+ socket.on("close", () => {
346074
+ if (!settled)
346075
+ finish(new Error("The desktop automation host closed the connection."));
346076
+ });
346077
+ });
346078
+ }
346079
+ var MAX_RESPONSE_BYTES, REQUEST_TIMEOUT_MS = 15000;
346080
+ var init_host = __esm(() => {
346081
+ MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
346082
+ });
346083
+
346084
+ // src/tools/AutomationTool/AutomationTool.ts
346085
+ var actionSchema, scheduleSchema, inputSchema20, outputSchema17, MUTATING_ACTIONS, AutomationTool;
346086
+ var init_AutomationTool = __esm(() => {
346087
+ init_v4();
346088
+ init_Tool();
346089
+ init_host();
346090
+ actionSchema = exports_external.enum([
346091
+ "create",
346092
+ "list",
346093
+ "get",
346094
+ "update",
346095
+ "pause",
346096
+ "resume",
346097
+ "delete",
346098
+ "run_now",
346099
+ "list_runs",
346100
+ "cancel_run",
346101
+ "mark_runs_read"
346102
+ ]);
346103
+ scheduleSchema = exports_external.strictObject({
346104
+ type: exports_external.enum(["manual", "once", "interval", "daily", "weekdays", "weekly", "cron"]),
346105
+ run_at: exports_external.string().optional().describe("ISO timestamp for a one-time automation."),
346106
+ every_minutes: exports_external.number().int().min(1).max(525600).optional(),
346107
+ time_of_day: exports_external.string().optional().describe('Local 24-hour time such as "09:00".'),
346108
+ day_of_week: exports_external.number().int().min(0).max(6).optional().describe("0 is Sunday and 6 is Saturday."),
346109
+ expression: exports_external.string().optional().describe("Standard five-field cron expression."),
346110
+ timezone: exports_external.string().optional().describe('IANA timezone such as "Africa/Lagos".')
346111
+ }).optional();
346112
+ inputSchema20 = lazySchema(() => exports_external.strictObject({
346113
+ action: actionSchema.describe("The automation operation to perform."),
346114
+ automation_id: exports_external.string().optional(),
346115
+ run_id: exports_external.string().optional(),
346116
+ limit: exports_external.number().int().min(1).max(200).optional().describe("Run-history page size for list_runs. Defaults to 50."),
346117
+ offset: exports_external.number().int().min(0).max(1000).optional().describe("Run-history offset for list_runs. Defaults to 0."),
346118
+ name: exports_external.string().max(160).optional(),
346119
+ description: exports_external.string().max(2000).optional(),
346120
+ prompt: exports_external.string().max(1e5).optional(),
346121
+ schedule: scheduleSchema,
346122
+ destination: exports_external.enum(["new_chat", "dedicated_chat", "existing_chat"]).optional(),
346123
+ thread_id: exports_external.string().optional().describe("Required when destination is existing_chat."),
346124
+ model: exports_external.string().optional(),
346125
+ effort: exports_external.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
346126
+ permission_mode: exports_external.enum(["default", "acceptEdits", "auto", "full", "bypassPermissions", "plan"]).optional().describe("Desktop permission policy. full and bypassPermissions both grant unrestricted command access."),
346127
+ workspace_mode: exports_external.enum(["auto", "local", "worktree"]).optional(),
346128
+ allow_local_fallback: exports_external.boolean().optional(),
346129
+ notification_policy: exports_external.enum(["all", "failures_only", "none"]).optional(),
346130
+ max_runtime_minutes: exports_external.number().int().min(1).max(1440).optional(),
346131
+ enabled: exports_external.boolean().optional()
346132
+ }));
346133
+ outputSchema17 = lazySchema(() => exports_external.object({
346134
+ success: exports_external.boolean(),
346135
+ action: actionSchema,
346136
+ result: exports_external.unknown().optional()
346137
+ }));
346138
+ MUTATING_ACTIONS = new Set([
346139
+ "create",
346140
+ "update",
346141
+ "pause",
346142
+ "resume",
346143
+ "delete",
346144
+ "run_now",
346145
+ "cancel_run",
346146
+ "mark_runs_read"
346147
+ ]);
346148
+ AutomationTool = buildTool({
346149
+ name: "Automation",
346150
+ searchHint: "schedule manage background recurring work",
346151
+ shouldDefer: true,
346152
+ maxResultSizeChars: 1e5,
346153
+ get inputSchema() {
346154
+ return inputSchema20();
346155
+ },
346156
+ get outputSchema() {
346157
+ return outputSchema17();
346158
+ },
346159
+ isEnabled() {
346160
+ return getAutomationHostEnvironment() !== null;
346161
+ },
346162
+ isConcurrencySafe(input) {
346163
+ return !MUTATING_ACTIONS.has(input.action);
346164
+ },
346165
+ isReadOnly(input) {
346166
+ return !MUTATING_ACTIONS.has(input.action);
346167
+ },
346168
+ isDestructive(input) {
346169
+ return input.action === "delete" || input.action === "cancel_run";
346170
+ },
346171
+ toAutoClassifierInput(input) {
346172
+ return `${input.action}: ${input.name ?? input.automation_id ?? input.run_id ?? "automations"}`;
346173
+ },
346174
+ async description() {
346175
+ return "Create and fully manage persistent desktop automations. Automations can run once, on an interval, daily, on weekdays, weekly, or from a five-field cron schedule; run in a new, dedicated, or existing chat; use the project checkout or an isolated git worktree; and keep durable run history. Use this only when the user explicitly asks to schedule or manage future/background work. Never silently turn an ordinary request into an automation.";
346176
+ },
346177
+ async prompt() {
346178
+ return `Use Automation when the user explicitly asks to schedule, repeat, pause, resume, inspect, run, or delete background work in Maximo Syntax Desktop.
346179
+
346180
+ For create, provide name, prompt, and schedule. The current desktop project is used automatically. Default to destination=new_chat and workspace_mode=auto unless the user says otherwise. Use existing_chat only with a thread_id. Preserve the user's timezone intent; use an IANA timezone. Use action=list or list_runs before changing an ambiguous automation; list returns compact prompt previews, while get returns the complete definition. Paginate list_runs with limit and offset when needed. You may edit an automation that is currently executing, including this automation, when the user's request requires it. Never create an automation merely because work could be repeated.`;
346181
+ },
346182
+ async validateInput(input) {
346183
+ if (input.action === "create" && (!input.name?.trim() || !input.prompt?.trim() || !input.schedule)) {
346184
+ return {
346185
+ result: false,
346186
+ message: "create requires name, prompt, and schedule",
346187
+ errorCode: 1
346188
+ };
346189
+ }
346190
+ if (["get", "update", "pause", "resume", "delete", "run_now", "list_runs", "mark_runs_read"].includes(input.action) && !input.automation_id) {
346191
+ return {
346192
+ result: false,
346193
+ message: `${input.action} requires automation_id`,
346194
+ errorCode: 2
346195
+ };
346196
+ }
346197
+ if (input.action === "cancel_run" && !input.run_id) {
346198
+ return { result: false, message: "cancel_run requires run_id", errorCode: 3 };
346199
+ }
346200
+ if (input.destination === "existing_chat" && !input.thread_id) {
346201
+ return {
346202
+ result: false,
346203
+ message: "destination=existing_chat requires thread_id",
346204
+ errorCode: 4
346205
+ };
346206
+ }
346207
+ return { result: true };
346208
+ },
346209
+ renderToolUseMessage() {
346210
+ return null;
346211
+ },
346212
+ async call(input) {
346213
+ const { action: action2, ...argumentsValue } = input;
346214
+ const result = await callAutomationHost(action2, argumentsValue);
346215
+ return { data: { success: true, action: action2, result } };
346216
+ },
346217
+ mapToolResultToToolResultBlockParam(output, toolUseID) {
346218
+ return {
346219
+ tool_use_id: toolUseID,
346220
+ type: "tool_result",
346221
+ content: JSON.stringify(output.result ?? { success: output.success }, null, 2)
346222
+ };
346223
+ }
346224
+ });
346225
+ });
346226
+
345966
346227
  // src/utils/task/outputFormatting.ts
345967
346228
  function getMaxTaskOutputLength() {
345968
346229
  const result = validateBoundedIntEnvVar("TASK_MAX_OUTPUT_LENGTH", process.env.TASK_MAX_OUTPUT_LENGTH, TASK_MAX_OUTPUT_DEFAULT, TASK_MAX_OUTPUT_UPPER_LIMIT);
@@ -346418,7 +346679,7 @@ function TaskOutputResultDisplay(t0) {
346418
346679
  }
346419
346680
  return t5;
346420
346681
  }
346421
- var import_react_compiler_runtime118, jsx_runtime140, inputSchema20, TaskOutputTool;
346682
+ var import_react_compiler_runtime118, jsx_runtime140, inputSchema21, TaskOutputTool;
346422
346683
  var init_TaskOutputTool = __esm(() => {
346423
346684
  init_v4();
346424
346685
  init_FallbackToolUseErrorMessage();
@@ -346439,7 +346700,7 @@ var init_TaskOutputTool = __esm(() => {
346439
346700
  init_BashToolResultMessage();
346440
346701
  import_react_compiler_runtime118 = __toESM(require_dist4(), 1);
346441
346702
  jsx_runtime140 = __toESM(require_jsx_runtime(), 1);
346442
- inputSchema20 = lazySchema(() => exports_external.strictObject({
346703
+ inputSchema21 = lazySchema(() => exports_external.strictObject({
346443
346704
  task_id: exports_external.string().describe("The task ID to get output from"),
346444
346705
  block: semanticBoolean(exports_external.boolean().default(true)).describe("Whether to wait for completion"),
346445
346706
  timeout: exports_external.number().min(0).max(600000).default(30000).describe("Max wait time in ms")
@@ -346454,7 +346715,7 @@ var init_TaskOutputTool = __esm(() => {
346454
346715
  return "Task Output";
346455
346716
  },
346456
346717
  get inputSchema() {
346457
- return inputSchema20();
346718
+ return inputSchema21();
346458
346719
  },
346459
346720
  async description() {
346460
346721
  return "[Deprecated] — prefer Read on the task output file path";
@@ -346798,7 +347059,7 @@ function resolveWebSearchEndpoint(baseUrl) {
346798
347059
  }
346799
347060
  return { url: `${trimmed.replace(/\/v1$/, "")}/v1/api/web-search`, path: "/v1/api/web-search" };
346800
347061
  }
346801
- var inputSchema21, searchResultSchema, outputSchema17, WebSearchTool;
347062
+ var inputSchema22, searchResultSchema, outputSchema18, WebSearchTool;
346802
347063
  var init_WebSearchTool = __esm(() => {
346803
347064
  init_v4();
346804
347065
  init_maximoModels();
@@ -346806,7 +347067,7 @@ var init_WebSearchTool = __esm(() => {
346806
347067
  init_log3();
346807
347068
  init_prompt5();
346808
347069
  init_UI16();
346809
- inputSchema21 = lazySchema(() => exports_external.strictObject({
347070
+ inputSchema22 = lazySchema(() => exports_external.strictObject({
346810
347071
  query: exports_external.string().min(2).describe("The search query to use"),
346811
347072
  allowed_domains: exports_external.array(exports_external.string()).optional().describe("Only include search results from these domains"),
346812
347073
  blocked_domains: exports_external.array(exports_external.string()).optional().describe("Never include search results from these domains"),
@@ -346830,7 +347091,7 @@ var init_WebSearchTool = __esm(() => {
346830
347091
  content: exports_external.array(searchHitSchema).describe("Array of search hits")
346831
347092
  });
346832
347093
  });
346833
- outputSchema17 = lazySchema(() => exports_external.object({
347094
+ outputSchema18 = lazySchema(() => exports_external.object({
346834
347095
  query: exports_external.string().describe("The search query that was executed"),
346835
347096
  results: exports_external.array(exports_external.union([searchResultSchema(), exports_external.string()])).describe("Search results and/or text commentary from the model"),
346836
347097
  durationSeconds: exports_external.number().describe("Time taken to complete the search operation")
@@ -346861,10 +347122,10 @@ var init_WebSearchTool = __esm(() => {
346861
347122
  return true;
346862
347123
  },
346863
347124
  get inputSchema() {
346864
- return inputSchema21();
347125
+ return inputSchema22();
346865
347126
  },
346866
347127
  get outputSchema() {
346867
- return outputSchema17();
347128
+ return outputSchema18();
346868
347129
  },
346869
347130
  isConcurrencySafe() {
346870
347131
  return true;
@@ -347068,19 +347329,19 @@ function resolveImageEndpoint(baseUrl) {
347068
347329
  path: "/v1/api/image-generation"
347069
347330
  };
347070
347331
  }
347071
- var inputSchema22, outputSchema18, ImageGenerationTool;
347332
+ var inputSchema23, outputSchema19, ImageGenerationTool;
347072
347333
  var init_ImageGenerationTool = __esm(() => {
347073
347334
  init_v4();
347074
347335
  init_maximoModels();
347075
347336
  init_Tool();
347076
347337
  init_log3();
347077
- inputSchema22 = lazySchema(() => exports_external.strictObject({
347338
+ inputSchema23 = lazySchema(() => exports_external.strictObject({
347078
347339
  prompt: exports_external.string().min(1).describe("The image generation prompt to use"),
347079
347340
  aspect_ratio: exports_external.string().optional().describe('Aspect ratio for the image (e.g. "16:9", "1:1", "4:3")'),
347080
347341
  size: exports_external.string().optional().describe('Image size/resolution (e.g. "1K", "2K", "4K")'),
347081
347342
  output_count: exports_external.number().int().positive().max(4).optional().describe("Number of images to generate (1-4)")
347082
347343
  }));
347083
- outputSchema18 = lazySchema(() => exports_external.object({
347344
+ outputSchema19 = lazySchema(() => exports_external.object({
347084
347345
  prompt: exports_external.string().describe("The image prompt that was executed"),
347085
347346
  images: exports_external.array(exports_external.object({
347086
347347
  url: exports_external.string().describe("The URL of the generated image")
@@ -347110,10 +347371,10 @@ var init_ImageGenerationTool = __esm(() => {
347110
347371
  return true;
347111
347372
  },
347112
347373
  get inputSchema() {
347113
- return inputSchema22();
347374
+ return inputSchema23();
347114
347375
  },
347115
347376
  get outputSchema() {
347116
- return outputSchema18();
347377
+ return outputSchema19();
347117
347378
  },
347118
347379
  isConcurrencySafe() {
347119
347380
  return true;
@@ -347513,7 +347774,7 @@ var autoModeActive = false, autoModeFlagCli = false, autoModeCircuitBroken = fal
347513
347774
 
347514
347775
  // src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts
347515
347776
  import { writeFile as writeFile21 } from "fs/promises";
347516
- var autoModeStateModule, permissionSetupModule, allowedPromptSchema, inputSchema23, _sdkInputSchema, outputSchema19, ExitPlanModeV2Tool;
347777
+ var autoModeStateModule, permissionSetupModule, allowedPromptSchema, inputSchema24, _sdkInputSchema, outputSchema20, ExitPlanModeV2Tool;
347517
347778
  var init_ExitPlanModeV2Tool = __esm(() => {
347518
347779
  init_v4();
347519
347780
  init_state();
@@ -347536,14 +347797,14 @@ var init_ExitPlanModeV2Tool = __esm(() => {
347536
347797
  tool: exports_external.enum(["Bash"]).describe("The tool this prompt applies to"),
347537
347798
  prompt: exports_external.string().describe('Semantic description of the action, e.g. "run tests", "install dependencies"')
347538
347799
  }));
347539
- inputSchema23 = lazySchema(() => exports_external.strictObject({
347800
+ inputSchema24 = lazySchema(() => exports_external.strictObject({
347540
347801
  allowedPrompts: exports_external.array(allowedPromptSchema()).optional().describe("Prompt-based permissions needed to implement the plan. These describe categories of actions rather than specific commands.")
347541
347802
  }).passthrough());
347542
- _sdkInputSchema = lazySchema(() => inputSchema23().extend({
347803
+ _sdkInputSchema = lazySchema(() => inputSchema24().extend({
347543
347804
  plan: exports_external.string().optional().describe("The plan content (injected by normalizeToolInput from disk)"),
347544
347805
  planFilePath: exports_external.string().optional().describe("The plan file path (injected by normalizeToolInput)")
347545
347806
  }));
347546
- outputSchema19 = lazySchema(() => exports_external.object({
347807
+ outputSchema20 = lazySchema(() => exports_external.object({
347547
347808
  plan: exports_external.string().nullable().describe("The plan that was presented to the user"),
347548
347809
  isAgent: exports_external.boolean(),
347549
347810
  filePath: exports_external.string().optional().describe("The file path where the plan was saved"),
@@ -347563,10 +347824,10 @@ var init_ExitPlanModeV2Tool = __esm(() => {
347563
347824
  return EXIT_PLAN_MODE_V2_TOOL_PROMPT;
347564
347825
  },
347565
347826
  get inputSchema() {
347566
- return inputSchema23();
347827
+ return inputSchema24();
347567
347828
  },
347568
347829
  get outputSchema() {
347569
- return outputSchema19();
347830
+ return outputSchema20();
347570
347831
  },
347571
347832
  userFacingName() {
347572
347833
  return "";
@@ -347792,11 +348053,11 @@ ${plan}`,
347792
348053
  });
347793
348054
 
347794
348055
  // src/tools/testing/TestingPermissionTool.tsx
347795
- var NAME = "TestingPermission", inputSchema24, TestingPermissionTool;
348056
+ var NAME = "TestingPermission", inputSchema25, TestingPermissionTool;
347796
348057
  var init_TestingPermissionTool = __esm(() => {
347797
348058
  init_v4();
347798
348059
  init_Tool();
347799
- inputSchema24 = lazySchema(() => exports_external.strictObject({}));
348060
+ inputSchema25 = lazySchema(() => exports_external.strictObject({}));
347800
348061
  TestingPermissionTool = buildTool({
347801
348062
  name: NAME,
347802
348063
  maxResultSizeChars: 1e5,
@@ -347807,7 +348068,7 @@ var init_TestingPermissionTool = __esm(() => {
347807
348068
  return "Test tool that always asks for permission before executing. Used for end-to-end testing.";
347808
348069
  },
347809
348070
  get inputSchema() {
347810
- return inputSchema24();
348071
+ return inputSchema25();
347811
348072
  },
347812
348073
  userFacingName() {
347813
348074
  return "TestingPermission";
@@ -347940,7 +348201,7 @@ function validateHtmlPreview(preview) {
347940
348201
  }
347941
348202
  return null;
347942
348203
  }
347943
- var import_react_compiler_runtime119, jsx_runtime143, questionOptionSchema, questionSchema, annotationsSchema, UNIQUENESS_REFINE, commonFields, inputSchema25, outputSchema20, AskUserQuestionTool;
348204
+ var import_react_compiler_runtime119, jsx_runtime143, questionOptionSchema, questionSchema, annotationsSchema, UNIQUENESS_REFINE, commonFields, inputSchema26, outputSchema21, AskUserQuestionTool;
347944
348205
  var init_AskUserQuestionTool = __esm(() => {
347945
348206
  init_state();
347946
348207
  init_MessageResponse();
@@ -347993,13 +348254,13 @@ var init_AskUserQuestionTool = __esm(() => {
347993
348254
  source: exports_external.string().optional().describe('Optional identifier for the source of this question (e.g., "remember" for /remember command). Used for analytics tracking.')
347994
348255
  }).optional().describe("Optional metadata for tracking and analytics purposes. Not displayed to user.")
347995
348256
  }));
347996
- inputSchema25 = lazySchema(() => exports_external.strictObject({
348257
+ inputSchema26 = lazySchema(() => exports_external.strictObject({
347997
348258
  questions: exports_external.array(questionSchema()).min(1).max(4).describe("Questions to ask the user (1-4 questions)"),
347998
348259
  ...commonFields()
347999
348260
  }).refine(UNIQUENESS_REFINE.check, {
348000
348261
  message: UNIQUENESS_REFINE.message
348001
348262
  }));
348002
- outputSchema20 = lazySchema(() => exports_external.object({
348263
+ outputSchema21 = lazySchema(() => exports_external.object({
348003
348264
  questions: exports_external.array(questionSchema()).describe("The questions that were asked"),
348004
348265
  answers: exports_external.record(exports_external.string(), exports_external.string()).describe("The answers provided by the user (question text -> answer string; multi-select answers are comma-separated)"),
348005
348266
  annotations: annotationsSchema()
@@ -348020,10 +348281,10 @@ var init_AskUserQuestionTool = __esm(() => {
348020
348281
  return ASK_USER_QUESTION_TOOL_PROMPT + PREVIEW_FEATURE_PROMPT[format4];
348021
348282
  },
348022
348283
  get inputSchema() {
348023
- return inputSchema25();
348284
+ return inputSchema26();
348024
348285
  },
348025
348286
  get outputSchema() {
348026
- return outputSchema20();
348287
+ return outputSchema21();
348027
348288
  },
348028
348289
  userFacingName() {
348029
348290
  return "";
@@ -349188,7 +349449,7 @@ function countUniqueFilesFromOutgoingCalls(calls) {
349188
349449
  const validUris = calls.map((call5) => call5.to?.uri).filter((uri) => uri);
349189
349450
  return new Set(validUris).size;
349190
349451
  }
349191
- var MAX_LSP_FILE_SIZE_BYTES = 1e7, inputSchema26, outputSchema21, LSPTool;
349452
+ var MAX_LSP_FILE_SIZE_BYTES = 1e7, inputSchema27, outputSchema22, LSPTool;
349192
349453
  var init_LSPTool = __esm(() => {
349193
349454
  init_v4();
349194
349455
  init_manager();
@@ -349204,7 +349465,7 @@ var init_LSPTool = __esm(() => {
349204
349465
  init_formatters();
349205
349466
  init_schemas5();
349206
349467
  init_UI18();
349207
- inputSchema26 = lazySchema(() => exports_external.strictObject({
349468
+ inputSchema27 = lazySchema(() => exports_external.strictObject({
349208
349469
  operation: exports_external.enum([
349209
349470
  "goToDefinition",
349210
349471
  "findReferences",
@@ -349220,7 +349481,7 @@ var init_LSPTool = __esm(() => {
349220
349481
  line: exports_external.number().int().positive().describe("The line number (1-based, as shown in editors)"),
349221
349482
  character: exports_external.number().int().positive().describe("The character offset (1-based, as shown in editors)")
349222
349483
  }));
349223
- outputSchema21 = lazySchema(() => exports_external.object({
349484
+ outputSchema22 = lazySchema(() => exports_external.object({
349224
349485
  operation: exports_external.enum([
349225
349486
  "goToDefinition",
349226
349487
  "findReferences",
@@ -349251,10 +349512,10 @@ var init_LSPTool = __esm(() => {
349251
349512
  return isLspConnected();
349252
349513
  },
349253
349514
  get inputSchema() {
349254
- return inputSchema26();
349515
+ return inputSchema27();
349255
349516
  },
349256
349517
  get outputSchema() {
349257
- return outputSchema21();
349518
+ return outputSchema22();
349258
349519
  },
349259
349520
  isConcurrencySafe() {
349260
349521
  return true;
@@ -349703,7 +349964,7 @@ var init_UI19 = __esm(() => {
349703
349964
  });
349704
349965
 
349705
349966
  // src/tools/EnterPlanModeTool/EnterPlanModeTool.ts
349706
- var inputSchema27, outputSchema22, EnterPlanModeTool;
349967
+ var inputSchema28, outputSchema23, EnterPlanModeTool;
349707
349968
  var init_EnterPlanModeTool = __esm(() => {
349708
349969
  init_v4();
349709
349970
  init_state();
@@ -349713,8 +349974,8 @@ var init_EnterPlanModeTool = __esm(() => {
349713
349974
  init_planModeV2();
349714
349975
  init_prompt16();
349715
349976
  init_UI19();
349716
- inputSchema27 = lazySchema(() => exports_external.strictObject({}));
349717
- outputSchema22 = lazySchema(() => exports_external.object({
349977
+ inputSchema28 = lazySchema(() => exports_external.strictObject({}));
349978
+ outputSchema23 = lazySchema(() => exports_external.object({
349718
349979
  message: exports_external.string().describe("Confirmation that plan mode was entered")
349719
349980
  }));
349720
349981
  EnterPlanModeTool = buildTool({
@@ -349728,10 +349989,10 @@ var init_EnterPlanModeTool = __esm(() => {
349728
349989
  return getEnterPlanModeToolPrompt();
349729
349990
  },
349730
349991
  get inputSchema() {
349731
- return inputSchema27();
349992
+ return inputSchema28();
349732
349993
  },
349733
349994
  get outputSchema() {
349734
- return outputSchema22();
349995
+ return outputSchema23();
349735
349996
  },
349736
349997
  userFacingName() {
349737
349998
  return "";
@@ -349885,7 +350146,7 @@ var init_UI20 = __esm(() => {
349885
350146
  });
349886
350147
 
349887
350148
  // src/tools/EnterWorktreeTool/EnterWorktreeTool.ts
349888
- var inputSchema28, outputSchema23, EnterWorktreeTool;
350149
+ var inputSchema29, outputSchema24, EnterWorktreeTool;
349889
350150
  var init_EnterWorktreeTool = __esm(() => {
349890
350151
  init_v4();
349891
350152
  init_state();
@@ -349900,7 +350161,7 @@ var init_EnterWorktreeTool = __esm(() => {
349900
350161
  init_sessionStorage();
349901
350162
  init_worktree();
349902
350163
  init_UI20();
349903
- inputSchema28 = lazySchema(() => exports_external.strictObject({
350164
+ inputSchema29 = lazySchema(() => exports_external.strictObject({
349904
350165
  name: exports_external.string().superRefine((s, ctx) => {
349905
350166
  try {
349906
350167
  validateWorktreeSlug(s);
@@ -349909,7 +350170,7 @@ var init_EnterWorktreeTool = __esm(() => {
349909
350170
  }
349910
350171
  }).optional().describe('Optional name for the worktree. Each "/"-separated segment may contain only letters, digits, dots, underscores, and dashes; max 64 chars total. A random name is generated if not provided.')
349911
350172
  }));
349912
- outputSchema23 = lazySchema(() => exports_external.object({
350173
+ outputSchema24 = lazySchema(() => exports_external.object({
349913
350174
  worktreePath: exports_external.string(),
349914
350175
  worktreeBranch: exports_external.string().optional(),
349915
350176
  message: exports_external.string()
@@ -349925,10 +350186,10 @@ var init_EnterWorktreeTool = __esm(() => {
349925
350186
  return getEnterWorktreeToolPrompt();
349926
350187
  },
349927
350188
  get inputSchema() {
349928
- return inputSchema28();
350189
+ return inputSchema29();
349929
350190
  },
349930
350191
  get outputSchema() {
349931
- return outputSchema23();
350192
+ return outputSchema24();
349932
350193
  },
349933
350194
  userFacingName() {
349934
350195
  return "Creating worktree";
@@ -350095,7 +350356,7 @@ function restoreSessionToOriginalCwd(originalCwd, projectRootIsWorktree) {
350095
350356
  clearMemoryFileCaches();
350096
350357
  getPlansDirectory.cache.clear?.();
350097
350358
  }
350098
- var inputSchema29, outputSchema24, ExitWorktreeTool;
350359
+ var inputSchema30, outputSchema25, ExitWorktreeTool;
350099
350360
  var init_ExitWorktreeTool = __esm(() => {
350100
350361
  init_v4();
350101
350362
  init_state();
@@ -350110,11 +350371,11 @@ var init_ExitWorktreeTool = __esm(() => {
350110
350371
  init_sessionStorage();
350111
350372
  init_worktree();
350112
350373
  init_UI21();
350113
- inputSchema29 = lazySchema(() => exports_external.strictObject({
350374
+ inputSchema30 = lazySchema(() => exports_external.strictObject({
350114
350375
  action: exports_external.enum(["keep", "remove"]).describe('"keep" leaves the worktree and branch on disk; "remove" deletes both.'),
350115
350376
  discard_changes: exports_external.boolean().optional().describe('Required true when action is "remove" and the worktree has uncommitted files or unmerged commits. The tool will refuse and list them otherwise.')
350116
350377
  }));
350117
- outputSchema24 = lazySchema(() => exports_external.object({
350378
+ outputSchema25 = lazySchema(() => exports_external.object({
350118
350379
  action: exports_external.enum(["keep", "remove"]),
350119
350380
  originalCwd: exports_external.string(),
350120
350381
  worktreePath: exports_external.string(),
@@ -350135,10 +350396,10 @@ var init_ExitWorktreeTool = __esm(() => {
350135
350396
  return getExitWorktreeToolPrompt();
350136
350397
  },
350137
350398
  get inputSchema() {
350138
- return inputSchema29();
350399
+ return inputSchema30();
350139
350400
  },
350140
350401
  get outputSchema() {
350141
- return outputSchema24();
350402
+ return outputSchema25();
350142
350403
  },
350143
350404
  userFacingName() {
350144
350405
  return "Exiting worktree";
@@ -351133,7 +351394,7 @@ function buildNestedObject(path16, value) {
351133
351394
  }
351134
351395
  return { [key]: buildNestedObject(path16.slice(1), value) };
351135
351396
  }
351136
- var inputSchema30, outputSchema25, ConfigTool;
351397
+ var inputSchema31, outputSchema26, ConfigTool;
351137
351398
  var init_ConfigTool = __esm(() => {
351138
351399
  init_v4();
351139
351400
  init_analytics();
@@ -351146,11 +351407,11 @@ var init_ConfigTool = __esm(() => {
351146
351407
  init_prompt17();
351147
351408
  init_supportedSettings();
351148
351409
  init_UI22();
351149
- inputSchema30 = lazySchema(() => exports_external.strictObject({
351410
+ inputSchema31 = lazySchema(() => exports_external.strictObject({
351150
351411
  setting: exports_external.string().describe('The setting key (e.g., "theme", "model", "permissions.defaultMode")'),
351151
351412
  value: exports_external.union([exports_external.string(), exports_external.boolean(), exports_external.number()]).optional().describe("The new value. Omit to get current value.")
351152
351413
  }));
351153
- outputSchema25 = lazySchema(() => exports_external.object({
351414
+ outputSchema26 = lazySchema(() => exports_external.object({
351154
351415
  success: exports_external.boolean(),
351155
351416
  operation: exports_external.enum(["get", "set"]).optional(),
351156
351417
  setting: exports_external.string().optional(),
@@ -351170,10 +351431,10 @@ var init_ConfigTool = __esm(() => {
351170
351431
  return generatePrompt();
351171
351432
  },
351172
351433
  get inputSchema() {
351173
- return inputSchema30();
351434
+ return inputSchema31();
351174
351435
  },
351175
351436
  get outputSchema() {
351176
- return outputSchema25();
351437
+ return outputSchema26();
351177
351438
  },
351178
351439
  userFacingName() {
351179
351440
  return "Config";
@@ -351445,7 +351706,7 @@ var init_prompt18 = __esm(() => {
351445
351706
  });
351446
351707
 
351447
351708
  // src/tools/TaskCreateTool/TaskCreateTool.ts
351448
- var inputSchema31, outputSchema26, TaskCreateTool;
351709
+ var inputSchema32, outputSchema27, TaskCreateTool;
351449
351710
  var init_TaskCreateTool = __esm(() => {
351450
351711
  init_v4();
351451
351712
  init_Tool();
@@ -351453,13 +351714,13 @@ var init_TaskCreateTool = __esm(() => {
351453
351714
  init_tasks();
351454
351715
  init_teammate();
351455
351716
  init_prompt18();
351456
- inputSchema31 = lazySchema(() => exports_external.strictObject({
351717
+ inputSchema32 = lazySchema(() => exports_external.strictObject({
351457
351718
  subject: exports_external.string().describe("A brief title for the task"),
351458
351719
  description: exports_external.string().describe("What needs to be done"),
351459
351720
  activeForm: exports_external.string().optional().describe('Present continuous form shown in spinner when in_progress (e.g., "Running tests")'),
351460
351721
  metadata: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Arbitrary metadata to attach to the task")
351461
351722
  }));
351462
- outputSchema26 = lazySchema(() => exports_external.object({
351723
+ outputSchema27 = lazySchema(() => exports_external.object({
351463
351724
  task: exports_external.object({
351464
351725
  id: exports_external.string(),
351465
351726
  subject: exports_external.string()
@@ -351476,10 +351737,10 @@ var init_TaskCreateTool = __esm(() => {
351476
351737
  return getPrompt4();
351477
351738
  },
351478
351739
  get inputSchema() {
351479
- return inputSchema31();
351740
+ return inputSchema32();
351480
351741
  },
351481
351742
  get outputSchema() {
351482
- return outputSchema26();
351743
+ return outputSchema27();
351483
351744
  },
351484
351745
  userFacingName() {
351485
351746
  return "TaskCreate";
@@ -351570,15 +351831,15 @@ Returns full task details:
351570
351831
  `;
351571
351832
 
351572
351833
  // src/tools/TaskGetTool/TaskGetTool.ts
351573
- var inputSchema32, outputSchema27, TaskGetTool;
351834
+ var inputSchema33, outputSchema28, TaskGetTool;
351574
351835
  var init_TaskGetTool = __esm(() => {
351575
351836
  init_v4();
351576
351837
  init_Tool();
351577
351838
  init_tasks();
351578
- inputSchema32 = lazySchema(() => exports_external.strictObject({
351839
+ inputSchema33 = lazySchema(() => exports_external.strictObject({
351579
351840
  taskId: exports_external.string().describe("The ID of the task to retrieve")
351580
351841
  }));
351581
- outputSchema27 = lazySchema(() => exports_external.object({
351842
+ outputSchema28 = lazySchema(() => exports_external.object({
351582
351843
  task: exports_external.object({
351583
351844
  id: exports_external.string(),
351584
351845
  subject: exports_external.string(),
@@ -351599,10 +351860,10 @@ var init_TaskGetTool = __esm(() => {
351599
351860
  return PROMPT6;
351600
351861
  },
351601
351862
  get inputSchema() {
351602
- return inputSchema32();
351863
+ return inputSchema33();
351603
351864
  },
351604
351865
  get outputSchema() {
351605
- return outputSchema27();
351866
+ return outputSchema28();
351606
351867
  },
351607
351868
  userFacingName() {
351608
351869
  return "TaskGet";
@@ -351754,7 +352015,7 @@ Set up task dependencies:
351754
352015
  `;
351755
352016
 
351756
352017
  // src/tools/TaskUpdateTool/TaskUpdateTool.ts
351757
- var inputSchema33, outputSchema28, TaskUpdateTool;
352018
+ var inputSchema34, outputSchema29, TaskUpdateTool;
351758
352019
  var init_TaskUpdateTool = __esm(() => {
351759
352020
  init_v4();
351760
352021
  init_growthbook();
@@ -351765,7 +352026,7 @@ var init_TaskUpdateTool = __esm(() => {
351765
352026
  init_teammate();
351766
352027
  init_teammateMailbox();
351767
352028
  init_constants3();
351768
- inputSchema33 = lazySchema(() => {
352029
+ inputSchema34 = lazySchema(() => {
351769
352030
  const TaskUpdateStatusSchema = TaskStatusSchema2().or(exports_external.literal("deleted"));
351770
352031
  return exports_external.strictObject({
351771
352032
  taskId: exports_external.string().describe("The ID of the task to update"),
@@ -351779,7 +352040,7 @@ var init_TaskUpdateTool = __esm(() => {
351779
352040
  metadata: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Metadata keys to merge into the task. Set a key to null to delete it.")
351780
352041
  });
351781
352042
  });
351782
- outputSchema28 = lazySchema(() => exports_external.object({
352043
+ outputSchema29 = lazySchema(() => exports_external.object({
351783
352044
  success: exports_external.boolean(),
351784
352045
  taskId: exports_external.string(),
351785
352046
  updatedFields: exports_external.array(exports_external.string()),
@@ -351801,10 +352062,10 @@ var init_TaskUpdateTool = __esm(() => {
351801
352062
  return PROMPT7;
351802
352063
  },
351803
352064
  get inputSchema() {
351804
- return inputSchema33();
352065
+ return inputSchema34();
351805
352066
  },
351806
352067
  get outputSchema() {
351807
- return outputSchema28();
352068
+ return outputSchema29();
351808
352069
  },
351809
352070
  userFacingName() {
351810
352071
  return "TaskUpdate";
@@ -352060,14 +352321,14 @@ var init_prompt19 = __esm(() => {
352060
352321
  });
352061
352322
 
352062
352323
  // src/tools/TaskListTool/TaskListTool.ts
352063
- var inputSchema34, outputSchema29, TaskListTool;
352324
+ var inputSchema35, outputSchema30, TaskListTool;
352064
352325
  var init_TaskListTool = __esm(() => {
352065
352326
  init_v4();
352066
352327
  init_Tool();
352067
352328
  init_tasks();
352068
352329
  init_prompt19();
352069
- inputSchema34 = lazySchema(() => exports_external.strictObject({}));
352070
- outputSchema29 = lazySchema(() => exports_external.object({
352330
+ inputSchema35 = lazySchema(() => exports_external.strictObject({}));
352331
+ outputSchema30 = lazySchema(() => exports_external.object({
352071
352332
  tasks: exports_external.array(exports_external.object({
352072
352333
  id: exports_external.string(),
352073
352334
  subject: exports_external.string(),
@@ -352087,10 +352348,10 @@ var init_TaskListTool = __esm(() => {
352087
352348
  return getPrompt5();
352088
352349
  },
352089
352350
  get inputSchema() {
352090
- return inputSchema34();
352351
+ return inputSchema35();
352091
352352
  },
352092
352353
  get outputSchema() {
352093
- return outputSchema29();
352354
+ return outputSchema30();
352094
352355
  },
352095
352356
  userFacingName() {
352096
352357
  return "TaskList";
@@ -352305,7 +352566,7 @@ function generateUniqueTeamName(providedName) {
352305
352566
  }
352306
352567
  return generateWordSlug();
352307
352568
  }
352308
- var inputSchema35, TeamCreateTool;
352569
+ var inputSchema36, TeamCreateTool;
352309
352570
  var init_TeamCreateTool = __esm(() => {
352310
352571
  init_v4();
352311
352572
  init_state();
@@ -352320,7 +352581,7 @@ var init_TeamCreateTool = __esm(() => {
352320
352581
  init_teammateLayoutManager();
352321
352582
  init_tasks();
352322
352583
  init_words();
352323
- inputSchema35 = lazySchema(() => exports_external.strictObject({
352584
+ inputSchema36 = lazySchema(() => exports_external.strictObject({
352324
352585
  team_name: exports_external.string().describe("Name for the new team to create."),
352325
352586
  description: exports_external.string().optional().describe("Team description/purpose."),
352326
352587
  agent_type: exports_external.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). ' + "Used for team file and inter-agent coordination.")
@@ -352334,7 +352595,7 @@ var init_TeamCreateTool = __esm(() => {
352334
352595
  return "";
352335
352596
  },
352336
352597
  get inputSchema() {
352337
- return inputSchema35();
352598
+ return inputSchema36();
352338
352599
  },
352339
352600
  isEnabled() {
352340
352601
  return isAgentSwarmsEnabled();
@@ -352485,7 +352746,7 @@ var exports_TeamDeleteTool = {};
352485
352746
  __export(exports_TeamDeleteTool, {
352486
352747
  TeamDeleteTool: () => TeamDeleteTool
352487
352748
  });
352488
- var inputSchema36, TeamDeleteTool;
352749
+ var inputSchema37, TeamDeleteTool;
352489
352750
  var init_TeamDeleteTool = __esm(() => {
352490
352751
  init_v4();
352491
352752
  init_analytics();
@@ -352496,7 +352757,7 @@ var init_TeamDeleteTool = __esm(() => {
352496
352757
  init_teammateLayoutManager();
352497
352758
  init_tasks();
352498
352759
  init_UI23();
352499
- inputSchema36 = lazySchema(() => exports_external.strictObject({}));
352760
+ inputSchema37 = lazySchema(() => exports_external.strictObject({}));
352500
352761
  TeamDeleteTool = buildTool({
352501
352762
  name: TEAM_DELETE_TOOL_NAME,
352502
352763
  searchHint: "disband a swarm team and clean up",
@@ -352506,7 +352767,7 @@ var init_TeamDeleteTool = __esm(() => {
352506
352767
  return "";
352507
352768
  },
352508
352769
  get inputSchema() {
352509
- return inputSchema36();
352770
+ return inputSchema37();
352510
352771
  },
352511
352772
  isEnabled() {
352512
352773
  return isAgentSwarmsEnabled();
@@ -352964,7 +353225,7 @@ var init_systemPrompt = __esm(() => {
352964
353225
  });
352965
353226
 
352966
353227
  // src/tools/AgentTool/forkSubagent.ts
352967
- import { randomUUID as randomUUID18 } from "crypto";
353228
+ import { randomUUID as randomUUID19 } from "crypto";
352968
353229
  function isForkSubagentEnabled() {
352969
353230
  if (false) {}
352970
353231
  return false;
@@ -352982,7 +353243,7 @@ function isInForkChild(messages) {
352982
353243
  function buildForkedMessages(directive, assistantMessage) {
352983
353244
  const fullAssistantMessage = {
352984
353245
  ...assistantMessage,
352985
- uuid: randomUUID18(),
353246
+ uuid: randomUUID19(),
352986
353247
  message: {
352987
353248
  ...assistantMessage.message,
352988
353249
  content: [...assistantMessage.message.content]
@@ -353574,7 +353835,7 @@ async function handlePlanRejection(recipientName, requestId, feedback, context6)
353574
353835
  }
353575
353836
  };
353576
353837
  }
353577
- var StructuredMessage, inputSchema37, SendMessageTool;
353838
+ var StructuredMessage, inputSchema38, SendMessageTool;
353578
353839
  var init_SendMessageTool = __esm(() => {
353579
353840
  init_v4();
353580
353841
  init_state();
@@ -353614,7 +353875,7 @@ var init_SendMessageTool = __esm(() => {
353614
353875
  feedback: exports_external.string().optional()
353615
353876
  })
353616
353877
  ]));
353617
- inputSchema37 = lazySchema(() => exports_external.object({
353878
+ inputSchema38 = lazySchema(() => exports_external.object({
353618
353879
  to: exports_external.string().describe('Recipient: teammate name, or "*" for broadcast to all teammates'),
353619
353880
  summary: exports_external.string().optional().describe("A 5-10 word summary shown as a preview in the UI (required when message is a string)"),
353620
353881
  message: exports_external.union([
@@ -353630,7 +353891,7 @@ var init_SendMessageTool = __esm(() => {
353630
353891
  return "SendMessage";
353631
353892
  },
353632
353893
  get inputSchema() {
353633
- return inputSchema37();
353894
+ return inputSchema38();
353634
353895
  },
353635
353896
  shouldDefer: true,
353636
353897
  isEnabled() {
@@ -353892,6 +354153,7 @@ function getAllBaseTools() {
353892
354153
  ImageGenerationTool,
353893
354154
  TaskStopTool,
353894
354155
  AskUserQuestionTool,
354156
+ AutomationTool,
353895
354157
  SkillTool,
353896
354158
  EnterPlanModeTool,
353897
354159
  ...process.env.USER_TYPE === "ant" ? [ConfigTool] : [],
@@ -353979,6 +354241,7 @@ var init_tools2 = __esm(() => {
353979
354241
  init_WebFetchTool();
353980
354242
  init_TaskStopTool();
353981
354243
  init_BriefTool();
354244
+ init_AutomationTool();
353982
354245
  init_TaskOutputTool();
353983
354246
  init_WebSearchTool();
353984
354247
  init_ImageGenerationTool();
@@ -355381,7 +355644,7 @@ function resolveTeamName(input, appState) {
355381
355644
  return;
355382
355645
  return input.team_name || appState.teamContext?.teamName;
355383
355646
  }
355384
- var jsx_runtime151, proactiveModule = null, PROGRESS_THRESHOLD_MS2 = 2000, isBackgroundTasksDisabled2, baseInputSchema, fullInputSchema2, inputSchema8, outputSchema30, AgentTool;
355647
+ var jsx_runtime151, proactiveModule = null, PROGRESS_THRESHOLD_MS2 = 2000, isBackgroundTasksDisabled2, baseInputSchema, fullInputSchema2, inputSchema8, outputSchema31, AgentTool;
355385
355648
  var init_AgentTool = __esm(() => {
355386
355649
  init_Tool();
355387
355650
  init_promptCategory();
@@ -355457,7 +355720,7 @@ var init_AgentTool = __esm(() => {
355457
355720
  run_in_background: true
355458
355721
  }) : schema;
355459
355722
  });
355460
- outputSchema30 = lazySchema(() => {
355723
+ outputSchema31 = lazySchema(() => {
355461
355724
  const syncOutputSchema = agentToolResultSchema().extend({
355462
355725
  status: exports_external.literal("completed"),
355463
355726
  prompt: exports_external.string()
@@ -355506,7 +355769,7 @@ var init_AgentTool = __esm(() => {
355506
355769
  return inputSchema8();
355507
355770
  },
355508
355771
  get outputSchema() {
355509
- return outputSchema30();
355772
+ return outputSchema31();
355510
355773
  },
355511
355774
  async call({
355512
355775
  prompt,
@@ -359075,7 +359338,7 @@ async function* runShellCommand({
359075
359338
  }
359076
359339
  }
359077
359340
  var jsx_runtime152, EOL4 = `
359078
- `, PROGRESS_THRESHOLD_MS3 = 2000, ASSISTANT_BLOCKING_BUDGET_MS2 = 15000, BASH_SEARCH_COMMANDS, BASH_READ_COMMANDS, BASH_LIST_COMMANDS, BASH_SEMANTIC_NEUTRAL_COMMANDS, BASH_SILENT_COMMANDS, DISALLOWED_AUTO_BACKGROUND_COMMANDS2, isBackgroundTasksDisabled3, fullInputSchema3, inputSchema38, COMMON_BACKGROUND_COMMANDS2, outputSchema31, BashTool;
359341
+ `, PROGRESS_THRESHOLD_MS3 = 2000, ASSISTANT_BLOCKING_BUDGET_MS2 = 15000, BASH_SEARCH_COMMANDS, BASH_READ_COMMANDS, BASH_LIST_COMMANDS, BASH_SEMANTIC_NEUTRAL_COMMANDS, BASH_SILENT_COMMANDS, DISALLOWED_AUTO_BACKGROUND_COMMANDS2, isBackgroundTasksDisabled3, fullInputSchema3, inputSchema39, COMMON_BACKGROUND_COMMANDS2, outputSchema32, BashTool;
359079
359342
  var init_BashTool = __esm(() => {
359080
359343
  init_v4();
359081
359344
  init_state();
@@ -359192,7 +359455,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
359192
359455
  newContent: exports_external.string()
359193
359456
  }).optional().describe("Internal: pre-computed sed edit result from preview")
359194
359457
  }));
359195
- inputSchema38 = lazySchema(() => isBackgroundTasksDisabled3 ? fullInputSchema3().omit({
359458
+ inputSchema39 = lazySchema(() => isBackgroundTasksDisabled3 ? fullInputSchema3().omit({
359196
359459
  run_in_background: true,
359197
359460
  _simulatedSedEdit: true
359198
359461
  }) : fullInputSchema3().omit({
@@ -359222,7 +359485,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
359222
359485
  "watch",
359223
359486
  "dev"
359224
359487
  ];
359225
- outputSchema31 = lazySchema(() => exports_external.object({
359488
+ outputSchema32 = lazySchema(() => exports_external.object({
359226
359489
  stdout: exports_external.string().describe("The standard output of the command"),
359227
359490
  stderr: exports_external.string().describe("The standard error output of the command"),
359228
359491
  rawOutputPath: exports_external.string().optional().describe("Path to raw output file for large MCP tool outputs"),
@@ -359277,7 +359540,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
359277
359540
  };
359278
359541
  },
359279
359542
  isSearchOrReadCommand(input) {
359280
- const parsed = inputSchema38().safeParse(input);
359543
+ const parsed = inputSchema39().safeParse(input);
359281
359544
  if (!parsed.success)
359282
359545
  return {
359283
359546
  isSearch: false,
@@ -359287,10 +359550,10 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
359287
359550
  return isSearchOrReadBashCommand(parsed.data.command);
359288
359551
  },
359289
359552
  get inputSchema() {
359290
- return inputSchema38();
359553
+ return inputSchema39();
359291
359554
  },
359292
359555
  get outputSchema() {
359293
- return outputSchema31();
359556
+ return outputSchema32();
359294
359557
  },
359295
359558
  userFacingName(input) {
359296
359559
  if (!input) {
@@ -363904,13 +364167,13 @@ var init_config6 = __esm(() => {
363904
364167
  });
363905
364168
 
363906
364169
  // src/query/deps.ts
363907
- import { randomUUID as randomUUID19 } from "crypto";
364170
+ import { randomUUID as randomUUID20 } from "crypto";
363908
364171
  function productionDeps() {
363909
364172
  return {
363910
364173
  callModel: queryModelWithStreaming,
363911
364174
  microcompact: microcompactMessages,
363912
364175
  autocompact: autoCompactIfNeeded,
363913
- uuid: randomUUID19
364176
+ uuid: randomUUID20
363914
364177
  };
363915
364178
  }
363916
364179
  var init_deps = __esm(() => {
@@ -363939,7 +364202,7 @@ var init_types10 = __esm(() => {
363939
364202
  });
363940
364203
 
363941
364204
  // src/services/goal/goalTracker.ts
363942
- import { randomUUID as randomUUID20 } from "crypto";
364205
+ import { randomUUID as randomUUID21 } from "crypto";
363943
364206
  import { mkdirSync as mkdirSync5 } from "fs";
363944
364207
  import { tmpdir as tmpdir6 } from "os";
363945
364208
  import { join as join87 } from "path";
@@ -364040,7 +364303,7 @@ function makeScratchDir(goalId) {
364040
364303
  return dir;
364041
364304
  }
364042
364305
  function createGoal(objective, options2) {
364043
- const goalId = randomUUID20().slice(0, 8);
364306
+ const goalId = randomUUID21().slice(0, 8);
364044
364307
  const scratchDir = makeScratchDir(goalId);
364045
364308
  current = {
364046
364309
  goalId,
@@ -366177,7 +366440,7 @@ function getAnthropicEnvMetadata() {
366177
366440
  function getBuildAgeMinutes() {
366178
366441
  if (false)
366179
366442
  ;
366180
- const buildTime = new Date("2026-08-07T23:54:01.463Z").getTime();
366443
+ const buildTime = new Date("2026-08-13T12:57:41.293Z").getTime();
366181
366444
  if (isNaN(buildTime))
366182
366445
  return;
366183
366446
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -366628,7 +366891,7 @@ var init_denialTracking = __esm(() => {
366628
366891
  });
366629
366892
 
366630
366893
  // src/utils/forkedAgent.ts
366631
- import { randomUUID as randomUUID21 } from "crypto";
366894
+ import { randomUUID as randomUUID22 } from "crypto";
366632
366895
  function saveCacheSafeParams(params) {
366633
366896
  lastCacheSafeParams = params;
366634
366897
  }
@@ -366737,7 +367000,7 @@ function createSubagentContext(parentContext, overrides) {
366737
367000
  agentId: overrides?.agentId ?? createAgentId(),
366738
367001
  agentType: overrides?.agentType,
366739
367002
  queryTracking: {
366740
- chainId: randomUUID21(),
367003
+ chainId: randomUUID22(),
366741
367004
  depth: (parentContext.queryTracking?.depth ?? -1) + 1
366742
367005
  },
366743
367006
  fileReadingLimits: parentContext.fileReadingLimits,
@@ -369723,8 +369986,8 @@ async function calculateDeferredToolDescriptionChars(tools, getToolPermissionCon
369723
369986
  tools,
369724
369987
  agents
369725
369988
  });
369726
- const inputSchema39 = tool.inputJSONSchema ? jsonStringify(tool.inputJSONSchema) : tool.inputSchema ? jsonStringify(zodToJsonSchema3(tool.inputSchema)) : "";
369727
- return tool.name.length + description.length + inputSchema39.length;
369989
+ const inputSchema40 = tool.inputJSONSchema ? jsonStringify(tool.inputJSONSchema) : tool.inputSchema ? jsonStringify(zodToJsonSchema3(tool.inputSchema)) : "";
369990
+ return tool.name.length + description.length + inputSchema40.length;
369728
369991
  }));
369729
369992
  return sizes.reduce((total, size) => total + size, 0);
369730
369993
  }
@@ -369915,7 +370178,7 @@ var init_toolSearch = __esm(() => {
369915
370178
  });
369916
370179
 
369917
370180
  // src/services/vcr.ts
369918
- import { createHash as createHash20, randomUUID as randomUUID22 } from "crypto";
370181
+ import { createHash as createHash20, randomUUID as randomUUID23 } from "crypto";
369919
370182
  import { mkdir as mkdir23, readFile as readFile29, writeFile as writeFile24 } from "fs/promises";
369920
370183
  import { dirname as dirname36, join as join90 } from "path";
369921
370184
  function shouldUseVCR() {
@@ -369968,7 +370231,7 @@ async function withVCR(messages, f) {
369968
370231
  try {
369969
370232
  const cached3 = jsonParse(await readFile29(filename, { encoding: "utf8" }));
369970
370233
  cached3.output.forEach(addCachedCostToTotalSessionCost);
369971
- return cached3.output.map((message, index) => mapMessage(message, hydrateValue, index, randomUUID22()));
370234
+ return cached3.output.map((message, index) => mapMessage(message, hydrateValue, index, randomUUID23()));
369972
370235
  } catch (e) {
369973
370236
  const code = getErrnoCode(e);
369974
370237
  if (code !== "ENOENT") {
@@ -370429,7 +370692,7 @@ var init_tokenEstimation = __esm(() => {
370429
370692
  });
370430
370693
 
370431
370694
  // src/utils/pdf.ts
370432
- import { randomUUID as randomUUID23 } from "crypto";
370695
+ import { randomUUID as randomUUID24 } from "crypto";
370433
370696
  import { mkdir as mkdir24, readdir as readdir16, readFile as readFile30 } from "fs/promises";
370434
370697
  import { join as join91 } from "path";
370435
370698
  async function readPDF(filePath) {
@@ -370540,7 +370803,7 @@ async function extractPDFPages(filePath, options2) {
370540
370803
  }
370541
370804
  };
370542
370805
  }
370543
- const uuid3 = randomUUID23();
370806
+ const uuid3 = randomUUID24();
370544
370807
  const outputDir = join91(getToolResultsDir(), `pdf-${uuid3}`);
370545
370808
  await mkdir24(outputDir, { recursive: true });
370546
370809
  const prefix = join91(outputDir, "page");
@@ -371232,7 +371495,7 @@ async function readImageWithTokenBudget(filePath, maxTokens = getDefaultFileRead
371232
371495
  }
371233
371496
  return result;
371234
371497
  }
371235
- var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS, inputSchema39, outputSchema32, FileReadTool, CYBER_RISK_MITIGATION_REMINDER = `
371498
+ var BLOCKED_DEVICE_PATHS, THIN_SPACE, fileReadListeners, MaxFileReadTokenExceededError, IMAGE_EXTENSIONS, inputSchema40, outputSchema33, FileReadTool, CYBER_RISK_MITIGATION_REMINDER = `
371236
371499
 
371237
371500
  <system-reminder>
371238
371501
  Whenever you read a file, you should consider whether it would be considered malware. You CAN and SHOULD provide analysis of malware, what it is doing. But you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer questions about the code behavior.
@@ -371300,13 +371563,13 @@ var init_FileReadTool = __esm(() => {
371300
371563
  }
371301
371564
  };
371302
371565
  IMAGE_EXTENSIONS = new Set(["png", "jpg", "jpeg", "gif", "webp"]);
371303
- inputSchema39 = lazySchema(() => exports_external.strictObject({
371566
+ inputSchema40 = lazySchema(() => exports_external.strictObject({
371304
371567
  file_path: exports_external.string().describe("The absolute path to the file to read"),
371305
371568
  offset: semanticNumber(exports_external.number().int().nonnegative().optional()).describe("The line number to start reading from. Only provide if the file is too large to read at once"),
371306
371569
  limit: semanticNumber(exports_external.number().int().positive().optional()).describe("The number of lines to read. Only provide if the file is too large to read at once."),
371307
371570
  pages: exports_external.string().optional().describe(`Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files. Maximum ${PDF_MAX_PAGES_PER_READ} pages per request.`)
371308
371571
  }));
371309
- outputSchema32 = lazySchema(() => {
371572
+ outputSchema33 = lazySchema(() => {
371310
371573
  const imageMediaTypes = exports_external.enum([
371311
371574
  "image/jpeg",
371312
371575
  "image/png",
@@ -371385,10 +371648,10 @@ var init_FileReadTool = __esm(() => {
371385
371648
  return renderPromptTemplate(pickLineFormatInstruction(), maxSizeInstruction, offsetInstruction);
371386
371649
  },
371387
371650
  get inputSchema() {
371388
- return inputSchema39();
371651
+ return inputSchema40();
371389
371652
  },
371390
371653
  get outputSchema() {
371391
- return outputSchema32();
371654
+ return outputSchema33();
371392
371655
  },
371393
371656
  userFacingName: userFacingName7,
371394
371657
  getToolUseSummary: getToolUseSummary8,
@@ -372118,7 +372381,7 @@ var init_findRelevantMemories = __esm(() => {
372118
372381
  // src/utils/attachments.ts
372119
372382
  import { readdir as readdir18, stat as stat32 } from "fs/promises";
372120
372383
  import { dirname as dirname37, parse as parse12, relative as relative19, resolve as resolve31 } from "path";
372121
- import { randomUUID as randomUUID24 } from "crypto";
372384
+ import { randomUUID as randomUUID25 } from "crypto";
372122
372385
  async function getAttachments(input, toolUseContext, ideSelection, queuedCommands, messages, querySource, options2) {
372123
372386
  if (isEnvTruthy(process.env.MAXIMO_SYNTAX_DISABLE_ATTACHMENTS) || isEnvTruthy(process.env.MAXIMO_SYNTAX_SIMPLE)) {
372124
372387
  return getQueuedCommandAttachments(queuedCommands);
@@ -373338,7 +373601,7 @@ function createAttachmentMessage(attachment) {
373338
373601
  return {
373339
373602
  attachment,
373340
373603
  type: "attachment",
373341
- uuid: randomUUID24(),
373604
+ uuid: randomUUID25(),
373342
373605
  timestamp: new Date().toISOString()
373343
373606
  };
373344
373607
  }
@@ -378929,7 +379192,7 @@ ${EXPLANATORY_FEATURE_PROMPT}`
378929
379192
  });
378930
379193
 
378931
379194
  // src/utils/messages.ts
378932
- import { randomUUID as randomUUID25 } from "crypto";
379195
+ import { randomUUID as randomUUID26 } from "crypto";
378933
379196
  function getTeammateMailbox() {
378934
379197
  return init_teammateMailbox(), __toCommonJS(exports_teammateMailbox);
378935
379198
  }
@@ -379004,10 +379267,10 @@ function baseCreateAssistantMessage({
379004
379267
  }) {
379005
379268
  return {
379006
379269
  type: "assistant",
379007
- uuid: randomUUID25(),
379270
+ uuid: randomUUID26(),
379008
379271
  timestamp: new Date().toISOString(),
379009
379272
  message: {
379010
- id: randomUUID25(),
379273
+ id: randomUUID26(),
379011
379274
  container: null,
379012
379275
  model: SYNTHETIC_MODEL,
379013
379276
  role: "assistant",
@@ -379088,7 +379351,7 @@ function createUserMessage({
379088
379351
  isVirtual,
379089
379352
  isCompactSummary,
379090
379353
  summarizeMetadata,
379091
- uuid: uuid3 || randomUUID25(),
379354
+ uuid: uuid3 || randomUUID26(),
379092
379355
  timestamp: timestamp ?? new Date().toISOString(),
379093
379356
  toolUseResult,
379094
379357
  mcpMeta,
@@ -379157,7 +379420,7 @@ function createProgressMessage({
379157
379420
  data,
379158
379421
  toolUseID,
379159
379422
  parentToolUseID,
379160
- uuid: randomUUID25(),
379423
+ uuid: randomUUID26(),
379161
379424
  timestamp: new Date().toISOString()
379162
379425
  };
379163
379426
  }
@@ -381464,7 +381727,7 @@ function createSystemMessage(content, level, toolUseID, preventContinuation) {
381464
381727
  content,
381465
381728
  isMeta: false,
381466
381729
  timestamp: new Date().toISOString(),
381467
- uuid: randomUUID25(),
381730
+ uuid: randomUUID26(),
381468
381731
  toolUseID,
381469
381732
  level,
381470
381733
  ...preventContinuation && { preventContinuation }
@@ -381479,7 +381742,7 @@ function createPermissionRetryMessage(commands) {
381479
381742
  level: "info",
381480
381743
  isMeta: false,
381481
381744
  timestamp: new Date().toISOString(),
381482
- uuid: randomUUID25()
381745
+ uuid: randomUUID26()
381483
381746
  };
381484
381747
  }
381485
381748
  function createStopHookSummaryMessage(hookCount, hookInfos, hookErrors, preventedContinuation, stopReason, hasOutput, level, toolUseID, hookLabel, totalDurationMs) {
@@ -381494,7 +381757,7 @@ function createStopHookSummaryMessage(hookCount, hookInfos, hookErrors, prevente
381494
381757
  hasOutput,
381495
381758
  level,
381496
381759
  timestamp: new Date().toISOString(),
381497
- uuid: randomUUID25(),
381760
+ uuid: randomUUID26(),
381498
381761
  toolUseID,
381499
381762
  hookLabel,
381500
381763
  totalDurationMs
@@ -381510,7 +381773,7 @@ function createTurnDurationMessage(durationMs, budget, messageCount) {
381510
381773
  budgetNudges: budget?.nudges,
381511
381774
  messageCount,
381512
381775
  timestamp: new Date().toISOString(),
381513
- uuid: randomUUID25(),
381776
+ uuid: randomUUID26(),
381514
381777
  isMeta: false
381515
381778
  };
381516
381779
  }
@@ -381520,7 +381783,7 @@ function createMemorySavedMessage(writtenPaths) {
381520
381783
  subtype: "memory_saved",
381521
381784
  writtenPaths,
381522
381785
  timestamp: new Date().toISOString(),
381523
- uuid: randomUUID25(),
381786
+ uuid: randomUUID26(),
381524
381787
  isMeta: false
381525
381788
  };
381526
381789
  }
@@ -381529,7 +381792,7 @@ function createAgentsKilledMessage() {
381529
381792
  type: "system",
381530
381793
  subtype: "agents_killed",
381531
381794
  timestamp: new Date().toISOString(),
381532
- uuid: randomUUID25(),
381795
+ uuid: randomUUID26(),
381533
381796
  isMeta: false
381534
381797
  };
381535
381798
  }
@@ -381540,7 +381803,7 @@ function createCommandInputMessage(content) {
381540
381803
  content,
381541
381804
  level: "info",
381542
381805
  timestamp: new Date().toISOString(),
381543
- uuid: randomUUID25(),
381806
+ uuid: randomUUID26(),
381544
381807
  isMeta: false
381545
381808
  };
381546
381809
  }
@@ -381551,7 +381814,7 @@ function createCompactBoundaryMessage(trigger, preTokens, lastPreCompactMessageU
381551
381814
  content: `Conversation compacted`,
381552
381815
  isMeta: false,
381553
381816
  timestamp: new Date().toISOString(),
381554
- uuid: randomUUID25(),
381817
+ uuid: randomUUID26(),
381555
381818
  level: "info",
381556
381819
  compactMetadata: {
381557
381820
  trigger,
@@ -381575,7 +381838,7 @@ function createSystemAPIErrorMessage(error42, retryInMs, retryAttempt, maxRetrie
381575
381838
  retryAttempt,
381576
381839
  maxRetries,
381577
381840
  timestamp: new Date().toISOString(),
381578
- uuid: randomUUID25()
381841
+ uuid: randomUUID26()
381579
381842
  };
381580
381843
  }
381581
381844
  function isCompactBoundaryMessage(message) {
@@ -381844,7 +382107,7 @@ function createToolUseSummaryMessage(summary, precedingToolUseIds) {
381844
382107
  type: "tool_use_summary",
381845
382108
  summary,
381846
382109
  precedingToolUseIds,
381847
- uuid: randomUUID25(),
382110
+ uuid: randomUUID26(),
381848
382111
  timestamp: new Date().toISOString()
381849
382112
  };
381850
382113
  }
@@ -392214,7 +392477,7 @@ var exports_conversation = {};
392214
392477
  __export(exports_conversation, {
392215
392478
  clearConversation: () => clearConversation
392216
392479
  });
392217
- import { randomUUID as randomUUID26 } from "crypto";
392480
+ import { randomUUID as randomUUID27 } from "crypto";
392218
392481
  async function clearConversation({
392219
392482
  setMessages,
392220
392483
  readFileState,
@@ -392259,7 +392522,7 @@ async function clearConversation({
392259
392522
  setMessages(() => []);
392260
392523
  if (false) {}
392261
392524
  if (setConversationId) {
392262
- setConversationId(randomUUID26());
392525
+ setConversationId(randomUUID27());
392263
392526
  }
392264
392527
  clearSessionCaches(preservedAgentIds);
392265
392528
  setCwd(getOriginalCwd());
@@ -432255,7 +432518,7 @@ function getRecentActivitySync() {
432255
432518
  return cachedActivity;
432256
432519
  }
432257
432520
  function getLogoDisplayData() {
432258
- const version2 = process.env.DEMO_VERSION ?? "0.1.32" ?? "99.0.0";
432521
+ const version2 = process.env.DEMO_VERSION ?? "0.1.33" ?? "99.0.0";
432259
432522
  const serverUrl = getDirectConnectServerUrl();
432260
432523
  const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
432261
432524
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -444352,7 +444615,7 @@ var init_InProcessTeammateDetailDialog = __esm(() => {
444352
444615
  });
444353
444616
 
444354
444617
  // src/utils/messages/mappers.ts
444355
- import { randomUUID as randomUUID27 } from "crypto";
444618
+ import { randomUUID as randomUUID28 } from "crypto";
444356
444619
  function toInternalMessages(messages) {
444357
444620
  return messages.flatMap((message) => {
444358
444621
  switch (message.type) {
@@ -444371,7 +444634,7 @@ function toInternalMessages(messages) {
444371
444634
  {
444372
444635
  type: "user",
444373
444636
  message: message.message,
444374
- uuid: message.uuid ?? randomUUID27(),
444637
+ uuid: message.uuid ?? randomUUID28(),
444375
444638
  timestamp: message.timestamp ?? new Date().toISOString(),
444376
444639
  isMeta: message.isSynthetic
444377
444640
  }
@@ -454656,7 +454919,7 @@ __export(exports_branch, {
454656
454919
  deriveFirstPrompt: () => deriveFirstPrompt,
454657
454920
  call: () => call50
454658
454921
  });
454659
- import { randomUUID as randomUUID28 } from "crypto";
454922
+ import { randomUUID as randomUUID29 } from "crypto";
454660
454923
  import { mkdir as mkdir34, readFile as readFile43, writeFile as writeFile39 } from "fs/promises";
454661
454924
  function deriveFirstPrompt(firstUserMessage) {
454662
454925
  const content = firstUserMessage?.message?.content;
@@ -454668,7 +454931,7 @@ function deriveFirstPrompt(firstUserMessage) {
454668
454931
  return raw.replace(/\s+/g, " ").trim().slice(0, 100) || "Branched conversation";
454669
454932
  }
454670
454933
  async function createFork(customTitle) {
454671
- const forkSessionId = randomUUID28();
454934
+ const forkSessionId = randomUUID29();
454672
454935
  const originalSessionId = getSessionId();
454673
454936
  const projectDir = getProjectDir2(getOriginalCwd());
454674
454937
  const forkSessionPath = getTranscriptPathForSession(forkSessionId);
@@ -461720,7 +461983,7 @@ var init_bridge_kick = __esm(() => {
461720
461983
  var call57 = async () => {
461721
461984
  return {
461722
461985
  type: "text",
461723
- value: `${"99.0.0"} (built ${"2026-08-07T23:54:01.463Z"})`
461986
+ value: `${"99.0.0"} (built ${"2026-08-13T12:57:41.293Z"})`
461724
461987
  };
461725
461988
  }, version2, version_default;
461726
461989
  var init_version = __esm(() => {
@@ -477101,9 +477364,9 @@ var init_hookHelpers = __esm(() => {
477101
477364
  });
477102
477365
 
477103
477366
  // src/utils/hooks/execPromptHook.ts
477104
- import { randomUUID as randomUUID29 } from "crypto";
477367
+ import { randomUUID as randomUUID30 } from "crypto";
477105
477368
  async function execPromptHook(hook, hookName, hookEvent, jsonInput, signal, toolUseContext, messages, toolUseID) {
477106
- const effectiveToolUseID = toolUseID || `hook-${randomUUID29()}`;
477369
+ const effectiveToolUseID = toolUseID || `hook-${randomUUID30()}`;
477107
477370
  try {
477108
477371
  const processedPrompt = addArgumentsToPrompt(hook.prompt, jsonInput);
477109
477372
  logForDebugging2(`Hooks: Processing prompt hook with prompt: ${processedPrompt}`);
@@ -477257,9 +477520,9 @@ var init_execPromptHook = __esm(() => {
477257
477520
  });
477258
477521
 
477259
477522
  // src/utils/hooks/execAgentHook.ts
477260
- import { randomUUID as randomUUID30 } from "crypto";
477523
+ import { randomUUID as randomUUID31 } from "crypto";
477261
477524
  async function execAgentHook(hook, hookName, hookEvent, jsonInput, signal, toolUseContext, toolUseID, _messages, agentName) {
477262
- const effectiveToolUseID = toolUseID || `hook-${randomUUID30()}`;
477525
+ const effectiveToolUseID = toolUseID || `hook-${randomUUID31()}`;
477263
477526
  const transcriptPath = toolUseContext.agentId ? getAgentTranscriptPath(toolUseContext.agentId) : getTranscriptPath();
477264
477527
  const hookStartTime = Date.now();
477265
477528
  try {
@@ -477294,7 +477557,7 @@ When done, return your result using the ${SYNTHETIC_OUTPUT_TOOL_NAME} tool with:
477294
477557
  ]);
477295
477558
  const model = hook.model ?? getSmallFastModel();
477296
477559
  const MAX_AGENT_TURNS = 50;
477297
- const hookAgentId = asAgentId(`hook-agent-${randomUUID30()}`);
477560
+ const hookAgentId = asAgentId(`hook-agent-${randomUUID31()}`);
477298
477561
  const agentToolUseContext = {
477299
477562
  ...toolUseContext,
477300
477563
  agentId: hookAgentId,
@@ -477788,7 +478051,7 @@ __export(exports_hooks2, {
477788
478051
  });
477789
478052
  import { basename as basename42 } from "path";
477790
478053
  import { spawn as spawn7 } from "child_process";
477791
- import { randomUUID as randomUUID31 } from "crypto";
478054
+ import { randomUUID as randomUUID32 } from "crypto";
477792
478055
  function getSessionEndHookTimeoutMs() {
477793
478056
  const raw = process.env.MAXIMO_SYNTAX_SESSIONEND_HOOKS_TIMEOUT_MS;
477794
478057
  const parsed = raw ? parseInt(raw, 10) : NaN;
@@ -478826,7 +479089,7 @@ async function* executeHooks({
478826
479089
  parentToolUseID: toolUseID,
478827
479090
  toolUseID,
478828
479091
  timestamp: new Date().toISOString(),
478829
- uuid: randomUUID31()
479092
+ uuid: randomUUID32()
478830
479093
  }
478831
479094
  };
478832
479095
  }
@@ -478888,7 +479151,7 @@ async function* executeHooks({
478888
479151
  const { signal: abortSignal, cleanup } = createCombinedAbortSignal(signal, {
478889
479152
  timeoutMs: commandTimeoutMs
478890
479153
  });
478891
- const hookId = randomUUID31();
479154
+ const hookId = randomUUID32();
478892
479155
  const hookStartMs = Date.now();
478893
479156
  const hookCommand = getHookDisplayText(hook);
478894
479157
  try {
@@ -479536,7 +479799,7 @@ async function executeHooksOutsideREPL({
479536
479799
  const callbackTimeoutMs = hook.timeout ? hook.timeout * 1000 : timeoutMs;
479537
479800
  const { signal: abortSignal2, cleanup: cleanup2 } = createCombinedAbortSignal(signal, { timeoutMs: callbackTimeoutMs });
479538
479801
  try {
479539
- const toolUseID = randomUUID31();
479802
+ const toolUseID = randomUUID32();
479540
479803
  const json2 = await hook.callback(hookInput, toolUseID, abortSignal2, hookIndex);
479541
479804
  cleanup2?.();
479542
479805
  if (isAsyncHookJSONOutput(json2)) {
@@ -479647,7 +479910,7 @@ async function executeHooksOutsideREPL({
479647
479910
  const commandTimeoutMs = hook.timeout ? hook.timeout * 1000 : timeoutMs;
479648
479911
  const { signal: abortSignal, cleanup } = createCombinedAbortSignal(signal, { timeoutMs: commandTimeoutMs });
479649
479912
  try {
479650
- const result = await execCommandHook(hook, hookEvent, hookName, jsonInput, abortSignal, randomUUID31(), hookIndex, pluginRoot, pluginId);
479913
+ const result = await execCommandHook(hook, hookEvent, hookName, jsonInput, abortSignal, randomUUID32(), hookIndex, pluginRoot, pluginId);
479651
479914
  cleanup?.();
479652
479915
  if (result.aborted) {
479653
479916
  logForDebugging2(`${hookName} [${hook.command}] cancelled`);
@@ -479848,7 +480111,7 @@ async function* executeStopHooks(permissionMode, signal, timeoutMs = TOOL_HOOK_E
479848
480111
  };
479849
480112
  yield* executeHooks({
479850
480113
  hookInput,
479851
- toolUseID: randomUUID31(),
480114
+ toolUseID: randomUUID32(),
479852
480115
  signal,
479853
480116
  timeoutMs,
479854
480117
  toolUseContext,
@@ -479865,7 +480128,7 @@ async function* executeTeammateIdleHooks(teammateName, teamName, permissionMode,
479865
480128
  };
479866
480129
  yield* executeHooks({
479867
480130
  hookInput,
479868
- toolUseID: randomUUID31(),
480131
+ toolUseID: randomUUID32(),
479869
480132
  signal,
479870
480133
  timeoutMs
479871
480134
  });
@@ -479882,7 +480145,7 @@ async function* executeTaskCreatedHooks(taskId, taskSubject, taskDescription, te
479882
480145
  };
479883
480146
  yield* executeHooks({
479884
480147
  hookInput,
479885
- toolUseID: randomUUID31(),
480148
+ toolUseID: randomUUID32(),
479886
480149
  signal,
479887
480150
  timeoutMs,
479888
480151
  toolUseContext
@@ -479900,7 +480163,7 @@ async function* executeTaskCompletedHooks(taskId, taskSubject, taskDescription,
479900
480163
  };
479901
480164
  yield* executeHooks({
479902
480165
  hookInput,
479903
- toolUseID: randomUUID31(),
480166
+ toolUseID: randomUUID32(),
479904
480167
  signal,
479905
480168
  timeoutMs,
479906
480169
  toolUseContext
@@ -479919,7 +480182,7 @@ async function* executeUserPromptSubmitHooks(prompt, permissionMode, toolUseCont
479919
480182
  };
479920
480183
  yield* executeHooks({
479921
480184
  hookInput,
479922
- toolUseID: randomUUID31(),
480185
+ toolUseID: randomUUID32(),
479923
480186
  signal: toolUseContext.abortController.signal,
479924
480187
  timeoutMs: TOOL_HOOK_EXECUTION_TIMEOUT_MS,
479925
480188
  toolUseContext,
@@ -479936,7 +480199,7 @@ async function* executeSessionStartHooks(source, sessionId, agentType, model, si
479936
480199
  };
479937
480200
  yield* executeHooks({
479938
480201
  hookInput,
479939
- toolUseID: randomUUID31(),
480202
+ toolUseID: randomUUID32(),
479940
480203
  matchQuery: source,
479941
480204
  signal,
479942
480205
  timeoutMs,
@@ -479951,7 +480214,7 @@ async function* executeSetupHooks(trigger, signal, timeoutMs = TOOL_HOOK_EXECUTI
479951
480214
  };
479952
480215
  yield* executeHooks({
479953
480216
  hookInput,
479954
- toolUseID: randomUUID31(),
480217
+ toolUseID: randomUUID32(),
479955
480218
  matchQuery: trigger,
479956
480219
  signal,
479957
480220
  timeoutMs,
@@ -479967,7 +480230,7 @@ async function* executeSubagentStartHooks(agentId, agentType, signal, timeoutMs
479967
480230
  };
479968
480231
  yield* executeHooks({
479969
480232
  hookInput,
479970
- toolUseID: randomUUID31(),
480233
+ toolUseID: randomUUID32(),
479971
480234
  matchQuery: agentType,
479972
480235
  signal,
479973
480236
  timeoutMs
@@ -480330,7 +480593,7 @@ async function executeStatusLineCommand(statusLineInput, signal, timeoutMs = 500
480330
480593
  const abortSignal = signal || AbortSignal.timeout(timeoutMs);
480331
480594
  try {
480332
480595
  const jsonInput = jsonStringify(statusLineInput);
480333
- const result = await execCommandHook(statusLine, "StatusLine", "statusLine", jsonInput, abortSignal, randomUUID31());
480596
+ const result = await execCommandHook(statusLine, "StatusLine", "statusLine", jsonInput, abortSignal, randomUUID32());
480334
480597
  if (result.aborted) {
480335
480598
  return;
480336
480599
  }
@@ -480374,7 +480637,7 @@ async function executeFileSuggestionCommand(fileSuggestionInput, signal, timeout
480374
480637
  try {
480375
480638
  const jsonInput = jsonStringify(fileSuggestionInput);
480376
480639
  const hook = { type: "command", command: fileSuggestion.command };
480377
- const result = await execCommandHook(hook, "FileSuggestion", "FileSuggestion", jsonInput, abortSignal, randomUUID31());
480640
+ const result = await execCommandHook(hook, "FileSuggestion", "FileSuggestion", jsonInput, abortSignal, randomUUID32());
480378
480641
  if (result.aborted || result.status !== 0) {
480379
480642
  return [];
480380
480643
  }
@@ -482442,7 +482705,7 @@ function insertBlockAfterToolResults(content, block2) {
482442
482705
  }
482443
482706
 
482444
482707
  // src/services/api/maximo.ts
482445
- import { randomUUID as randomUUID32 } from "crypto";
482708
+ import { randomUUID as randomUUID33 } from "crypto";
482446
482709
  function getExtraBodyParams(betaHeaders) {
482447
482710
  const extraBodyStr = process.env.MAXIMO_SYNTAX_EXTRA_BODY;
482448
482711
  let result = {};
@@ -483225,7 +483488,7 @@ ${deferredToolList}
483225
483488
  if (!options2.agentId) {
483226
483489
  headlessProfilerCheckpoint("api_request_sent");
483227
483490
  }
483228
- clientRequestId = getAPIProvider() === "firstParty" && isFirstPartyAnthropicBaseUrl() ? randomUUID32() : undefined;
483491
+ clientRequestId = getAPIProvider() === "firstParty" && isFirstPartyAnthropicBaseUrl() ? randomUUID33() : undefined;
483229
483492
  const result = await anthropic.beta.messages.create({ ...params, stream: true }, {
483230
483493
  signal,
483231
483494
  ...clientRequestId && {
@@ -483455,7 +483718,7 @@ ${deferredToolList}
483455
483718
  },
483456
483719
  requestId: streamRequestId ?? undefined,
483457
483720
  type: "assistant",
483458
- uuid: randomUUID32(),
483721
+ uuid: randomUUID33(),
483459
483722
  timestamp: new Date().toISOString(),
483460
483723
  ...process.env.USER_TYPE === "ant" && research !== undefined && { research },
483461
483724
  ...advisorModel && { advisorModel }
@@ -483635,7 +483898,7 @@ ${deferredToolList}
483635
483898
  },
483636
483899
  requestId: streamRequestId ?? undefined,
483637
483900
  type: "assistant",
483638
- uuid: randomUUID32(),
483901
+ uuid: randomUUID33(),
483639
483902
  timestamp: new Date().toISOString(),
483640
483903
  ...process.env.USER_TYPE === "ant" && research !== undefined && {
483641
483904
  research
@@ -483689,7 +483952,7 @@ ${deferredToolList}
483689
483952
  },
483690
483953
  requestId: streamRequestId ?? undefined,
483691
483954
  type: "assistant",
483692
- uuid: randomUUID32(),
483955
+ uuid: randomUUID33(),
483693
483956
  timestamp: new Date().toISOString(),
483694
483957
  ...process.env.USER_TYPE === "ant" && research !== undefined && { research },
483695
483958
  ...advisorModel && { advisorModel }
@@ -486885,7 +487148,7 @@ function applySafeConfigEnvironmentVariables() {
486885
487148
  process.env.OPENAI_BASE_URL = baseUrl;
486886
487149
  if (!process.env.OPENAI_MODEL) {
486887
487150
  if (baseUrl.includes("api.mytabulon.com")) {
486888
- process.env.OPENAI_MODEL = globalConfig2.mytabulonDefaultModel || "maximo-atlas-preview";
487151
+ process.env.OPENAI_MODEL = normalizeRetiredMytabulonModel(globalConfig2.mytabulonDefaultModel) || MYTABULON_DEFAULT_MODEL;
486889
487152
  } else if (baseUrl.includes("openrouter.ai/api/v1")) {
486890
487153
  process.env.OPENAI_MODEL = "openai/gpt-5.4";
486891
487154
  } else if (baseUrl.includes("opencode.ai/zen/")) {
@@ -488808,7 +489071,7 @@ var init_inboundMessages = __esm(() => {
488808
489071
  });
488809
489072
 
488810
489073
  // src/utils/messages/systemInit.ts
488811
- import { randomUUID as randomUUID33 } from "crypto";
489074
+ import { randomUUID as randomUUID34 } from "crypto";
488812
489075
  function sdkCompatToolName(name) {
488813
489076
  return name === AGENT_TOOL_NAME ? LEGACY_AGENT_TOOL_NAME : name;
488814
489077
  }
@@ -488839,7 +489102,7 @@ function buildSystemInitMessage(inputs) {
488839
489102
  path: plugin2.path,
488840
489103
  source: plugin2.source
488841
489104
  })),
488842
- uuid: randomUUID33()
489105
+ uuid: randomUUID34()
488843
489106
  };
488844
489107
  if (false) {}
488845
489108
  initMessage.fast_mode_state = getFastModeState(inputs.model, inputs.fastMode);
@@ -488927,7 +489190,7 @@ __export(exports_MessageSelector, {
488927
489190
  messagesAfterAreOnlySynthetic: () => messagesAfterAreOnlySynthetic,
488928
489191
  MessageSelector: () => MessageSelector
488929
489192
  });
488930
- import { randomUUID as randomUUID34 } from "crypto";
489193
+ import { randomUUID as randomUUID35 } from "crypto";
488931
489194
  import * as path21 from "path";
488932
489195
  function isTextBlock2(block2) {
488933
489196
  return block2.type === "text";
@@ -488947,7 +489210,7 @@ function MessageSelector({
488947
489210
  const fileHistory = useAppState((s) => s.fileHistory);
488948
489211
  const [error42, setError] = import_react206.useState(undefined);
488949
489212
  const isFileHistoryEnabled = fileHistoryEnabled();
488950
- const currentUUID = import_react206.useMemo(randomUUID34, []);
489213
+ const currentUUID = import_react206.useMemo(randomUUID35, []);
488951
489214
  const messageOptions = import_react206.useMemo(() => [...messages.filter(selectableUserMessagesFilter), {
488952
489215
  ...createUserMessage({
488953
489216
  content: ""
@@ -494817,7 +495080,7 @@ var init_FileEditToolDiff = __esm(() => {
494817
495080
  });
494818
495081
 
494819
495082
  // src/hooks/useDiffInIDE.ts
494820
- import { randomUUID as randomUUID35 } from "crypto";
495083
+ import { randomUUID as randomUUID36 } from "crypto";
494821
495084
  import { basename as basename45 } from "path";
494822
495085
  function useDiffInIDE({
494823
495086
  onChange,
@@ -494828,7 +495091,7 @@ function useDiffInIDE({
494828
495091
  }) {
494829
495092
  const isUnmounted = import_react217.useRef(false);
494830
495093
  const [hasError, setHasError] = import_react217.useState(false);
494831
- const sha = import_react217.useMemo(() => randomUUID35().slice(0, 6), []);
495094
+ const sha = import_react217.useMemo(() => randomUUID36().slice(0, 6), []);
494832
495095
  const tabName = import_react217.useMemo(() => `✻ [Maximo Syntax] ${basename45(filePath)} (${sha}) ⧉`, [filePath, sha]);
494833
495096
  const shouldShowDiffInIDE = hasAccessToIDEExtensionDiffFeature(toolUseContext.options.mcpClients) && getGlobalConfig().diffTool === "auto" && !filePath.endsWith(".ipynb");
494834
495097
  const ideName = getConnectedIdeName(toolUseContext.options.mcpClients) ?? "IDE";
@@ -510235,7 +510498,7 @@ var init_teamDiscovery = __esm(() => {
510235
510498
  });
510236
510499
 
510237
510500
  // src/components/teams/TeamsDialog.tsx
510238
- import { randomUUID as randomUUID36 } from "crypto";
510501
+ import { randomUUID as randomUUID37 } from "crypto";
510239
510502
  function TeamsDialog({
510240
510503
  initialTeams,
510241
510504
  onDone
@@ -510859,7 +511122,7 @@ async function killTeammate(paneId, backendType, teamName, teammateId, teammateN
510859
511122
  },
510860
511123
  inbox: {
510861
511124
  messages: [...prev.inbox.messages, {
510862
- id: randomUUID36(),
511125
+ id: randomUUID37(),
510863
511126
  from: "system",
510864
511127
  text: jsonStringify({
510865
511128
  type: "teammate_terminated",
@@ -517141,7 +517404,7 @@ function normalizeControlMessageKeys(obj) {
517141
517404
  }
517142
517405
 
517143
517406
  // src/bridge/bridgeMessaging.ts
517144
- import { randomUUID as randomUUID37 } from "crypto";
517407
+ import { randomUUID as randomUUID38 } from "crypto";
517145
517408
  function isSDKMessage(value) {
517146
517409
  return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
517147
517410
  }
@@ -517349,7 +517612,7 @@ function makeResultMessage(sessionId) {
517349
517612
  modelUsage: {},
517350
517613
  permission_denials: [],
517351
517614
  session_id: sessionId,
517352
- uuid: randomUUID37()
517615
+ uuid: randomUUID38()
517353
517616
  };
517354
517617
  }
517355
517618
 
@@ -517393,7 +517656,7 @@ var init_bridgeMessaging = __esm(() => {
517393
517656
  });
517394
517657
 
517395
517658
  // src/remote/SessionsWebSocket.ts
517396
- import { randomUUID as randomUUID38 } from "crypto";
517659
+ import { randomUUID as randomUUID39 } from "crypto";
517397
517660
  function isSessionsMessage(value) {
517398
517661
  if (typeof value !== "object" || value === null || !("type" in value)) {
517399
517662
  return false;
@@ -517577,7 +517840,7 @@ class SessionsWebSocket {
517577
517840
  }
517578
517841
  const controlRequest = {
517579
517842
  type: "control_request",
517580
- request_id: randomUUID38(),
517843
+ request_id: randomUUID39(),
517581
517844
  request
517582
517845
  };
517583
517846
  logForDebugging2(`[SessionsWebSocket] Sending control request: ${request.subtype}`);
@@ -517769,11 +518032,11 @@ var init_RemoteSessionManager = __esm(() => {
517769
518032
  });
517770
518033
 
517771
518034
  // src/remote/remotePermissionBridge.ts
517772
- import { randomUUID as randomUUID39 } from "crypto";
518035
+ import { randomUUID as randomUUID40 } from "crypto";
517773
518036
  function createSyntheticAssistantMessage(request, requestId) {
517774
518037
  return {
517775
518038
  type: "assistant",
517776
- uuid: randomUUID39(),
518039
+ uuid: randomUUID40(),
517777
518040
  message: {
517778
518041
  id: `remote-${requestId}`,
517779
518042
  type: "message",
@@ -518576,7 +518839,7 @@ var init_useDirectConnect = __esm(() => {
518576
518839
  });
518577
518840
 
518578
518841
  // src/hooks/useSSHSession.ts
518579
- import { randomUUID as randomUUID40 } from "crypto";
518842
+ import { randomUUID as randomUUID41 } from "crypto";
518580
518843
  function useSSHSession({
518581
518844
  session: session2,
518582
518845
  setMessages,
@@ -518674,7 +518937,7 @@ function useSSHSession({
518674
518937
  subtype: "informational",
518675
518938
  content: `SSH connection dropped — reconnecting (attempt ${attempt}/${max2})...`,
518676
518939
  timestamp: new Date().toISOString(),
518677
- uuid: randomUUID40(),
518940
+ uuid: randomUUID41(),
518678
518941
  level: "warning"
518679
518942
  };
518680
518943
  setMessages((prev) => [...prev, msg]);
@@ -520816,7 +521079,7 @@ var init_PermissionContext = __esm(() => {
520816
521079
  });
520817
521080
 
520818
521081
  // src/hooks/toolPermission/handlers/interactiveHandler.ts
520819
- import { randomUUID as randomUUID41 } from "crypto";
521082
+ import { randomUUID as randomUUID42 } from "crypto";
520820
521083
  function handleInteractivePermission(params, resolve42) {
520821
521084
  const {
520822
521085
  ctx,
@@ -520834,7 +521097,7 @@ function handleInteractivePermission(params, resolve42) {
520834
521097
  let userInteracted = false;
520835
521098
  let checkmarkTransitionTimer;
520836
521099
  let checkmarkAbortHandler;
520837
- const bridgeRequestId = bridgeCallbacks ? randomUUID41() : undefined;
521100
+ const bridgeRequestId = bridgeCallbacks ? randomUUID42() : undefined;
520838
521101
  let channelUnsubscribe;
520839
521102
  const permissionPromptStartTimeMs = Date.now();
520840
521103
  const displayInput = result.updatedInput ?? ctx.input;
@@ -521256,9 +521519,9 @@ function matchesKeepGoingKeyword(input) {
521256
521519
  }
521257
521520
 
521258
521521
  // src/utils/processUserInput/processTextPrompt.ts
521259
- import { randomUUID as randomUUID42 } from "crypto";
521522
+ import { randomUUID as randomUUID43 } from "crypto";
521260
521523
  function processTextPrompt(input, imageContentBlocks, imagePasteIds, attachmentMessages, uuid3, permissionMode, isMeta) {
521261
- const promptId = randomUUID42();
521524
+ const promptId = randomUUID43();
521262
521525
  setPromptId(promptId);
521263
521526
  const userPromptText = typeof input === "string" ? input : input.find((block2) => block2.type === "text")?.text || "";
521264
521527
  startInteractionSpan(userPromptText);
@@ -521392,7 +521655,7 @@ var exports_processBashCommand = {};
521392
521655
  __export(exports_processBashCommand, {
521393
521656
  processBashCommand: () => processBashCommand
521394
521657
  });
521395
- import { randomUUID as randomUUID43 } from "crypto";
521658
+ import { randomUUID as randomUUID44 } from "crypto";
521396
521659
  async function processBashCommand(inputString, precedingInputBlocks, attachmentMessages, context8, setToolJSX) {
521397
521660
  const usePowerShell = isPowerShellToolEnabled() && resolveDefaultShell() === "powershell";
521398
521661
  logEvent("tengu_input_bash", {
@@ -521456,7 +521719,7 @@ async function processBashCommand(inputString, precedingInputBlocks, attachmentM
521456
521719
  const mapped = await processToolResultBlock(shellTool, {
521457
521720
  ...data,
521458
521721
  stderr: ""
521459
- }, randomUUID43());
521722
+ }, randomUUID44());
521460
521723
  const stdout = typeof mapped.content === "string" ? mapped.content : escapeXml(data.stdout);
521461
521724
  return {
521462
521725
  messages: [createSyntheticUserCaveatMessage(), userMessage, ...attachmentMessages, createUserMessage({
@@ -521505,7 +521768,7 @@ var init_processBashCommand = __esm(() => {
521505
521768
  });
521506
521769
 
521507
521770
  // src/utils/processUserInput/processUserInput.ts
521508
- import { randomUUID as randomUUID44 } from "crypto";
521771
+ import { randomUUID as randomUUID45 } from "crypto";
521509
521772
  async function processUserInput({
521510
521773
  input,
521511
521774
  preExpansionInput,
@@ -521567,7 +521830,7 @@ Original prompt: ${input}`, "warning")
521567
521830
  type: "hook_additional_context",
521568
521831
  content: hookResult.additionalContexts.map(applyTruncation),
521569
521832
  hookName: "UserPromptSubmit",
521570
- toolUseID: `hook-${randomUUID44()}`,
521833
+ toolUseID: `hook-${randomUUID45()}`,
521571
521834
  hookEvent: "UserPromptSubmit"
521572
521835
  }));
521573
521836
  }
@@ -523073,7 +523336,7 @@ var init_sessionRestore = __esm(() => {
523073
523336
  });
523074
523337
 
523075
523338
  // src/hooks/useInboxPoller.ts
523076
- import { randomUUID as randomUUID45 } from "crypto";
523339
+ import { randomUUID as randomUUID46 } from "crypto";
523077
523340
  function getAgentNameToPoll(appState) {
523078
523341
  if (isInProcessTeammate()) {
523079
523342
  return;
@@ -523490,7 +523753,7 @@ function useInboxPoller({
523490
523753
  messages: [
523491
523754
  ...prev.inbox.messages,
523492
523755
  {
523493
- id: randomUUID45(),
523756
+ id: randomUUID46(),
523494
523757
  from: "system",
523495
523758
  text: jsonStringify({
523496
523759
  type: "teammate_terminated",
@@ -523530,7 +523793,7 @@ ${messageContent}
523530
523793
  messages: [
523531
523794
  ...prev.inbox.messages,
523532
523795
  ...regularMessages.map((m) => ({
523533
- id: randomUUID45(),
523796
+ id: randomUUID46(),
523534
523797
  from: m.from,
523535
523798
  text: m.text,
523536
523799
  timestamp: m.timestamp,
@@ -524434,7 +524697,7 @@ var init_submitTranscriptShare = __esm(() => {
524434
524697
  });
524435
524698
 
524436
524699
  // src/components/FeedbackSurvey/useSurveyState.tsx
524437
- import { randomUUID as randomUUID46 } from "crypto";
524700
+ import { randomUUID as randomUUID47 } from "crypto";
524438
524701
  function useSurveyState({
524439
524702
  hideThanksAfterMs,
524440
524703
  onOpen,
@@ -524445,7 +524708,7 @@ function useSurveyState({
524445
524708
  }) {
524446
524709
  const [state2, setState] = import_react300.useState("closed");
524447
524710
  const [lastResponse, setLastResponse] = import_react300.useState(null);
524448
- const appearanceId = import_react300.useRef(randomUUID46());
524711
+ const appearanceId = import_react300.useRef(randomUUID47());
524449
524712
  const lastResponseRef = import_react300.useRef(null);
524450
524713
  const showThanksThenClose = import_react300.useCallback(() => {
524451
524714
  setState("thanks");
@@ -524463,7 +524726,7 @@ function useSurveyState({
524463
524726
  return;
524464
524727
  }
524465
524728
  setState("open");
524466
- appearanceId.current = randomUUID46();
524729
+ appearanceId.current = randomUUID47();
524467
524730
  onOpen(appearanceId.current);
524468
524731
  }, [state2, onOpen]);
524469
524732
  const handleSelect = import_react300.useCallback((selected) => {
@@ -526677,13 +526940,13 @@ function permissionPromptToolResultToPermissionDecision(result, tool, input, too
526677
526940
  decisionReason
526678
526941
  };
526679
526942
  }
526680
- var inputSchema40, decisionClassificationField, PermissionAllowResultSchema, PermissionDenyResultSchema, outputSchema33;
526943
+ var inputSchema41, decisionClassificationField, PermissionAllowResultSchema, PermissionDenyResultSchema, outputSchema34;
526681
526944
  var init_PermissionPromptToolResultSchema = __esm(() => {
526682
526945
  init_v4();
526683
526946
  init_debug();
526684
526947
  init_PermissionUpdate();
526685
526948
  init_PermissionUpdateSchema();
526686
- inputSchema40 = lazySchema(() => v4_default.object({
526949
+ inputSchema41 = lazySchema(() => v4_default.object({
526687
526950
  tool_name: v4_default.string().describe("The name of the tool requesting permission"),
526688
526951
  input: v4_default.record(v4_default.string(), v4_default.unknown()).describe("The input for the tool"),
526689
526952
  tool_use_id: v4_default.string().optional().describe("The unique tool use request ID")
@@ -526706,7 +526969,7 @@ var init_PermissionPromptToolResultSchema = __esm(() => {
526706
526969
  toolUseID: v4_default.string().optional(),
526707
526970
  decisionClassification: decisionClassificationField()
526708
526971
  }));
526709
- outputSchema33 = lazySchema(() => v4_default.union([PermissionAllowResultSchema(), PermissionDenyResultSchema()]));
526972
+ outputSchema34 = lazySchema(() => v4_default.union([PermissionAllowResultSchema(), PermissionDenyResultSchema()]));
526710
526973
  });
526711
526974
 
526712
526975
  // src/cli/ndjsonSafeStringify.ts
@@ -526723,7 +526986,7 @@ var init_ndjsonSafeStringify = __esm(() => {
526723
526986
  });
526724
526987
 
526725
526988
  // src/cli/structuredIO.ts
526726
- import { randomUUID as randomUUID47 } from "crypto";
526989
+ import { randomUUID as randomUUID48 } from "crypto";
526727
526990
  function serializeDecisionReason(reason) {
526728
526991
  if (!reason) {
526729
526992
  return;
@@ -526973,7 +527236,7 @@ class StructuredIO {
526973
527236
  writeToStdout(ndjsonSafeStringify(message) + `
526974
527237
  `);
526975
527238
  }
526976
- async sendRequest(request, schema, signal, requestId = randomUUID47()) {
527239
+ async sendRequest(request, schema, signal, requestId = randomUUID48()) {
526977
527240
  const message = {
526978
527241
  type: "control_request",
526979
527242
  request_id: requestId,
@@ -527039,7 +527302,7 @@ class StructuredIO {
527039
527302
  parentSignal.addEventListener("abort", onParentAbort, { once: true });
527040
527303
  try {
527041
527304
  const hookPromise = executePermissionRequestHooksForSDK(tool.name, toolUseID, input, toolUseContext, mainPermissionResult.suggestions).then((decision) => ({ source: "hook", decision }));
527042
- const requestId = randomUUID47();
527305
+ const requestId = randomUUID48();
527043
527306
  onPermissionPrompt?.(buildRequiresActionDetails(tool, input, toolUseID, requestId));
527044
527307
  const sdkPromise = this.sendRequest({
527045
527308
  subtype: "can_use_tool",
@@ -527050,7 +527313,7 @@ class StructuredIO {
527050
527313
  decision_reason: serializeDecisionReason(mainPermissionResult.decisionReason),
527051
527314
  tool_use_id: toolUseID,
527052
527315
  agent_id: toolUseContext.agentId
527053
- }, outputSchema33(), hookAbortController.signal, requestId).then((result) => ({ source: "sdk", result }));
527316
+ }, outputSchema34(), hookAbortController.signal, requestId).then((result) => ({ source: "sdk", result }));
527054
527317
  const winner = await Promise.race([hookPromise, sdkPromise]);
527055
527318
  if (winner.source === "hook") {
527056
527319
  if (winner.decision) {
@@ -527119,9 +527382,9 @@ class StructuredIO {
527119
527382
  subtype: "can_use_tool",
527120
527383
  tool_name: SANDBOX_NETWORK_ACCESS_TOOL_NAME,
527121
527384
  input: { host: hostPattern.host },
527122
- tool_use_id: randomUUID47(),
527385
+ tool_use_id: randomUUID48(),
527123
527386
  description: `Allow network connection to ${hostPattern.host}?`
527124
- }, outputSchema33());
527387
+ }, outputSchema34());
527125
527388
  return result.behavior === "allow";
527126
527389
  } catch {
527127
527390
  return false;
@@ -531462,7 +531725,7 @@ __export(exports_REPL, {
531462
531725
  import { dirname as dirname60, join as join147 } from "path";
531463
531726
  import { tmpdir as tmpdir12 } from "os";
531464
531727
  import { writeFile as writeFile47 } from "fs/promises";
531465
- import { randomUUID as randomUUID48 } from "crypto";
531728
+ import { randomUUID as randomUUID49 } from "crypto";
531466
531729
  function TranscriptModeFooter(t0) {
531467
531730
  const $2 = import_react_compiler_runtime363.c(9);
531468
531731
  const {
@@ -532178,7 +532441,7 @@ function REPL({
532178
532441
  const [isMessageSelectorVisible, setIsMessageSelectorVisible] = import_react327.useState(false);
532179
532442
  const [messageSelectorPreselect, setMessageSelectorPreselect] = import_react327.useState(undefined);
532180
532443
  const [showCostDialog, setShowCostDialog] = import_react327.useState(false);
532181
- const [conversationId, setConversationId] = import_react327.useState(randomUUID48());
532444
+ const [conversationId, setConversationId] = import_react327.useState(randomUUID49());
532182
532445
  const [idleReturnPending, setIdleReturnPending] = import_react327.useState(null);
532183
532446
  const skipIdleCheckRef = import_react327.useRef(false);
532184
532447
  const lastQueryCompletionTimeRef = import_react327.useRef(lastQueryCompletionTime);
@@ -532971,7 +533234,7 @@ Error: sandbox required but unavailable: ${reason}
532971
533234
  } else {
532972
533235
  setMessages(() => [newMessage]);
532973
533236
  }
532974
- setConversationId(randomUUID48());
533237
+ setConversationId(randomUUID49());
532975
533238
  if (false) {}
532976
533239
  } else if (newMessage.type === "progress" && isEphemeralToolProgress(newMessage.data.type)) {
532977
533240
  setMessages((oldMessages) => {
@@ -533054,7 +533317,7 @@ Error: sandbox required but unavailable: ${reason}
533054
533317
  });
533055
533318
  if (!shouldQuery) {
533056
533319
  if (newMessages.some(isCompactBoundaryMessage)) {
533057
- setConversationId(randomUUID48());
533320
+ setConversationId(randomUUID49());
533058
533321
  if (false) {}
533059
533322
  }
533060
533323
  resetLoadingState();
@@ -533701,7 +533964,7 @@ Error: sandbox required but unavailable: ${reason}
533701
533964
  rewindToMessageIndex: messageIndex
533702
533965
  });
533703
533966
  setMessages(prev.slice(0, messageIndex));
533704
- setConversationId(randomUUID48());
533967
+ setConversationId(randomUUID49());
533705
533968
  resetMicrocompactState();
533706
533969
  if (false) {}
533707
533970
  setAppState((prev2) => ({
@@ -534900,7 +535163,7 @@ Note: ctrl + z now suspends Maximo Syntax, ctrl + _ undoes input.
534900
535163
  setMessages(postCompact);
534901
535164
  }
534902
535165
  if (false) {}
534903
- setConversationId(randomUUID48());
535166
+ setConversationId(randomUUID49());
534904
535167
  runPostCompactCleanup(context8.options.querySource);
534905
535168
  if (direction === "from") {
534906
535169
  const r = textForResubmit(message);
@@ -536252,7 +536515,7 @@ function SetupRow({ children }) {
536252
536515
  }
536253
536516
  function WelcomeV2() {
536254
536517
  const { columns } = useTerminalSize();
536255
- const version3 = "0.1.32";
536518
+ const version3 = "0.1.33";
536256
536519
  const width = Math.max(48, Math.min(columns || 92, 92));
536257
536520
  const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
536258
536521
  return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
@@ -542989,7 +543252,7 @@ function coalescePatches(base2, overlay) {
542989
543252
  var init_WorkerStateUploader = () => {};
542990
543253
 
542991
543254
  // src/cli/transports/ccrClient.ts
542992
- import { randomUUID as randomUUID49 } from "crypto";
543255
+ import { randomUUID as randomUUID50 } from "crypto";
542993
543256
  function alwaysValidStatus() {
542994
543257
  return true;
542995
543258
  }
@@ -543348,7 +543611,7 @@ class CCRClient {
543348
543611
  return {
543349
543612
  payload: {
543350
543613
  ...msg,
543351
- uuid: typeof msg.uuid === "string" ? msg.uuid : randomUUID49()
543614
+ uuid: typeof msg.uuid === "string" ? msg.uuid : randomUUID50()
543352
543615
  }
543353
543616
  };
543354
543617
  }
@@ -543372,7 +543635,7 @@ class CCRClient {
543372
543635
  payload: {
543373
543636
  type: eventType,
543374
543637
  ...payload,
543375
- uuid: typeof payload.uuid === "string" ? payload.uuid : randomUUID49()
543638
+ uuid: typeof payload.uuid === "string" ? payload.uuid : randomUUID50()
543376
543639
  },
543377
543640
  ...isCompaction && { is_compaction: true },
543378
543641
  ...agentId && { agent_id: agentId }
@@ -544880,7 +545143,7 @@ var init_queryContext = __esm(() => {
544880
545143
  });
544881
545144
 
544882
545145
  // src/QueryEngine.ts
544883
- import { randomUUID as randomUUID50 } from "crypto";
545146
+ import { randomUUID as randomUUID51 } from "crypto";
544884
545147
 
544885
545148
  class QueryEngine {
544886
545149
  config;
@@ -545177,7 +545440,7 @@ class QueryEngine {
545177
545440
  modelUsage: getModelUsage(),
545178
545441
  permission_denials: this.permissionDenials,
545179
545442
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545180
- uuid: randomUUID50()
545443
+ uuid: randomUUID51()
545181
545444
  };
545182
545445
  return;
545183
545446
  }
@@ -545290,7 +545553,7 @@ class QueryEngine {
545290
545553
  event: message.event,
545291
545554
  session_id: getSessionId(),
545292
545555
  parent_tool_use_id: null,
545293
- uuid: randomUUID50()
545556
+ uuid: randomUUID51()
545294
545557
  };
545295
545558
  }
545296
545559
  break;
@@ -545322,7 +545585,7 @@ class QueryEngine {
545322
545585
  modelUsage: getModelUsage(),
545323
545586
  permission_denials: this.permissionDenials,
545324
545587
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545325
- uuid: randomUUID50(),
545588
+ uuid: randomUUID51(),
545326
545589
  errors: [
545327
545590
  `Reached maximum number of turns (${message.attachment.maxTurns})`
545328
545591
  ]
@@ -545426,7 +545689,7 @@ class QueryEngine {
545426
545689
  modelUsage: getModelUsage(),
545427
545690
  permission_denials: this.permissionDenials,
545428
545691
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545429
- uuid: randomUUID50(),
545692
+ uuid: randomUUID51(),
545430
545693
  errors: [`Reached maximum budget ($${maxBudgetUsd})`]
545431
545694
  };
545432
545695
  return;
@@ -545455,7 +545718,7 @@ class QueryEngine {
545455
545718
  modelUsage: getModelUsage(),
545456
545719
  permission_denials: this.permissionDenials,
545457
545720
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545458
- uuid: randomUUID50(),
545721
+ uuid: randomUUID51(),
545459
545722
  errors: [
545460
545723
  `Failed to provide valid structured output after ${maxRetries} attempts`
545461
545724
  ]
@@ -545487,7 +545750,7 @@ class QueryEngine {
545487
545750
  modelUsage: getModelUsage(),
545488
545751
  permission_denials: this.permissionDenials,
545489
545752
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545490
- uuid: randomUUID50(),
545753
+ uuid: randomUUID51(),
545491
545754
  errors: (() => {
545492
545755
  const all4 = getInMemoryErrors();
545493
545756
  const start = errorLogWatermark ? all4.lastIndexOf(errorLogWatermark) + 1 : 0;
@@ -545524,7 +545787,7 @@ class QueryEngine {
545524
545787
  permission_denials: this.permissionDenials,
545525
545788
  structured_output: structuredOutputFromTool,
545526
545789
  fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
545527
- uuid: randomUUID50()
545790
+ uuid: randomUUID51()
545528
545791
  };
545529
545792
  }
545530
545793
  interrupt() {
@@ -545701,7 +545964,7 @@ var init_idleTimeout = __esm(() => {
545701
545964
  });
545702
545965
 
545703
545966
  // src/bridge/inboundAttachments.ts
545704
- import { randomUUID as randomUUID51 } from "crypto";
545967
+ import { randomUUID as randomUUID52 } from "crypto";
545705
545968
  import { mkdir as mkdir45, writeFile as writeFile50 } from "fs/promises";
545706
545969
  import { basename as basename58, join as join150 } from "path";
545707
545970
  function debug(msg) {
@@ -545746,7 +546009,7 @@ async function resolveOne(att) {
545746
546009
  return;
545747
546010
  }
545748
546011
  const safeName = sanitizeFileName(att.file_name);
545749
- const prefix = (att.file_uuid.slice(0, 8) || randomUUID51().slice(0, 8)).replace(/[^a-zA-Z0-9_-]/g, "_");
546012
+ const prefix = (att.file_uuid.slice(0, 8) || randomUUID52().slice(0, 8)).replace(/[^a-zA-Z0-9_-]/g, "_");
545750
546013
  const dir = uploadsDir();
545751
546014
  const outPath = join150(dir, `${prefix}-${safeName}`);
545752
546015
  try {
@@ -545810,11 +546073,11 @@ var init_inboundAttachments = __esm(() => {
545810
546073
  });
545811
546074
 
545812
546075
  // src/utils/sessionUrl.ts
545813
- import { randomUUID as randomUUID52 } from "crypto";
546076
+ import { randomUUID as randomUUID53 } from "crypto";
545814
546077
  function parseSessionIdentifier(resumeIdentifier) {
545815
546078
  if (resumeIdentifier.toLowerCase().endsWith(".jsonl")) {
545816
546079
  return {
545817
- sessionId: randomUUID52(),
546080
+ sessionId: randomUUID53(),
545818
546081
  ingressUrl: null,
545819
546082
  isUrl: false,
545820
546083
  jsonlFile: resumeIdentifier,
@@ -545833,7 +546096,7 @@ function parseSessionIdentifier(resumeIdentifier) {
545833
546096
  try {
545834
546097
  const url3 = new URL(resumeIdentifier);
545835
546098
  return {
545836
- sessionId: randomUUID52(),
546099
+ sessionId: randomUUID53(),
545837
546100
  ingressUrl: url3.href,
545838
546101
  isUrl: true,
545839
546102
  jsonlFile: null,
@@ -546442,7 +546705,7 @@ var init_bridgePointer = __esm(() => {
546442
546705
  });
546443
546706
 
546444
546707
  // src/bridge/replBridge.ts
546445
- import { randomUUID as randomUUID53 } from "crypto";
546708
+ import { randomUUID as randomUUID54 } from "crypto";
546446
546709
  async function initBridgeCore(params) {
546447
546710
  const {
546448
546711
  dir,
@@ -546499,9 +546762,9 @@ async function initBridgeCore(params) {
546499
546762
  spawnMode: "single-session",
546500
546763
  verbose: false,
546501
546764
  sandbox: false,
546502
- bridgeId: randomUUID53(),
546765
+ bridgeId: randomUUID54(),
546503
546766
  workerType,
546504
- environmentId: randomUUID53(),
546767
+ environmentId: randomUUID54(),
546505
546768
  reuseEnvironmentId: prior?.environmentId,
546506
546769
  apiBaseUrl: baseUrl,
546507
546770
  sessionIngressUrl
@@ -548351,7 +548614,7 @@ __export(exports_print, {
548351
548614
  import { readFile as readFile53, stat as stat52 } from "fs/promises";
548352
548615
  import { dirname as dirname64 } from "path";
548353
548616
  import { cwd as cwd2 } from "process";
548354
- import { randomUUID as randomUUID54 } from "crypto";
548617
+ import { randomUUID as randomUUID55 } from "crypto";
548355
548618
  function trackReceivedMessageUuid(uuid3) {
548356
548619
  if (receivedMessageUuids.has(uuid3)) {
548357
548620
  return false;
@@ -548471,7 +548734,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
548471
548734
  hook_id: event.hookId,
548472
548735
  hook_name: event.hookName,
548473
548736
  hook_event: event.hookEvent,
548474
- uuid: randomUUID54(),
548737
+ uuid: randomUUID55(),
548475
548738
  session_id: getSessionId()
548476
548739
  };
548477
548740
  case "progress":
@@ -548484,7 +548747,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
548484
548747
  stdout: event.stdout,
548485
548748
  stderr: event.stderr,
548486
548749
  output: event.output,
548487
- uuid: randomUUID54(),
548750
+ uuid: randomUUID55(),
548488
548751
  session_id: getSessionId()
548489
548752
  };
548490
548753
  case "response":
@@ -548499,7 +548762,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
548499
548762
  stderr: event.stderr,
548500
548763
  exit_code: event.exitCode,
548501
548764
  outcome: event.outcome,
548502
- uuid: randomUUID54(),
548765
+ uuid: randomUUID55(),
548503
548766
  session_id: getSessionId()
548504
548767
  };
548505
548768
  }
@@ -548517,7 +548780,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
548517
548780
  decision: event.decision,
548518
548781
  classifier: event.classifier,
548519
548782
  reason: event.reason,
548520
- uuid: randomUUID54(),
548783
+ uuid: randomUUID55(),
548521
548784
  session_id: getSessionId()
548522
548785
  });
548523
548786
  });
@@ -548711,7 +548974,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
548711
548974
  subtype: "status",
548712
548975
  status: null,
548713
548976
  permissionMode: newMode,
548714
- uuid: randomUUID54(),
548977
+ uuid: randomUUID55(),
548715
548978
  session_id: getSessionId()
548716
548979
  });
548717
548980
  }
@@ -548732,7 +548995,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
548732
548995
  isAuthenticating: status2.isAuthenticating,
548733
548996
  output: status2.output,
548734
548997
  error: status2.error,
548735
- uuid: randomUUID54(),
548998
+ uuid: randomUUID55(),
548736
548999
  session_id: getSessionId()
548737
549000
  });
548738
549001
  });
@@ -548743,7 +549006,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
548743
549006
  output.enqueue({
548744
549007
  type: "rate_limit_event",
548745
549008
  rate_limit_info: rateLimitInfo,
548746
- uuid: randomUUID54(),
549009
+ uuid: randomUUID55(),
548747
549010
  session_id: getSessionId()
548748
549011
  });
548749
549012
  }
@@ -548759,7 +549022,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
548759
549022
  enqueue({
548760
549023
  mode: "prompt",
548761
549024
  value: turnInterruptionState.message.message.content,
548762
- uuid: randomUUID54()
549025
+ uuid: randomUUID55()
548763
549026
  });
548764
549027
  }
548765
549028
  const modelOptions = getModelOptions();
@@ -548853,7 +549116,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
548853
549116
  subtype: "elicitation_complete",
548854
549117
  mcp_server_name: serverName,
548855
549118
  elicitation_id: elicitationId,
548856
- uuid: randomUUID54(),
549119
+ uuid: randomUUID55(),
548857
549120
  session_id: getSessionId()
548858
549121
  });
548859
549122
  });
@@ -549201,7 +549464,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
549201
549464
  duration_ms: durationMsMatch ? parseInt(durationMsMatch[1], 10) : 0
549202
549465
  } : undefined,
549203
549466
  session_id: getSessionId(),
549204
- uuid: randomUUID54()
549467
+ uuid: randomUUID55()
549205
549468
  });
549206
549469
  }
549207
549470
  }
@@ -549275,7 +549538,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
549275
549538
  subtype: "status",
549276
549539
  status: status2,
549277
549540
  session_id: getSessionId(),
549278
- uuid: randomUUID54()
549541
+ uuid: randomUUID55()
549279
549542
  });
549280
549543
  }
549281
549544
  })) {
@@ -549323,7 +549586,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
549323
549586
  const suggestionMsg = {
549324
549587
  type: "prompt_suggestion",
549325
549588
  suggestion: result.suggestion,
549326
- uuid: randomUUID54(),
549589
+ uuid: randomUUID55(),
549327
549590
  session_id: getSessionId()
549328
549591
  };
549329
549592
  const lastEmittedEntry = {
@@ -549413,7 +549676,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
549413
549676
  usage: EMPTY_USAGE,
549414
549677
  modelUsage: {},
549415
549678
  permission_denials: [],
549416
- uuid: randomUUID54(),
549679
+ uuid: randomUUID55(),
549417
549680
  errors: [
549418
549681
  errorMessage(error42),
549419
549682
  ...getInMemoryErrors().map((_) => _.error)
@@ -549497,7 +549760,7 @@ ${m.text}
549497
549760
  enqueue({
549498
549761
  mode: "prompt",
549499
549762
  value: formatted,
549500
- uuid: randomUUID54()
549763
+ uuid: randomUUID55()
549501
549764
  });
549502
549765
  run();
549503
549766
  return;
@@ -549508,7 +549771,7 @@ ${m.text}
549508
549771
  enqueue({
549509
549772
  mode: "prompt",
549510
549773
  value: SHUTDOWN_TEAM_PROMPT,
549511
- uuid: randomUUID54()
549774
+ uuid: randomUUID55()
549512
549775
  });
549513
549776
  run();
549514
549777
  return;
@@ -549532,7 +549795,7 @@ ${m.text}
549532
549795
  enqueue({
549533
549796
  mode: "prompt",
549534
549797
  value: SHUTDOWN_TEAM_PROMPT,
549535
- uuid: randomUUID54()
549798
+ uuid: randomUUID55()
549536
549799
  });
549537
549800
  run();
549538
549801
  } else {
@@ -550283,7 +550546,7 @@ ${m.text}
550283
550546
  subtype: "bridge_state",
550284
550547
  state: state2,
550285
550548
  detail,
550286
- uuid: randomUUID54(),
550549
+ uuid: randomUUID55(),
550287
550550
  session_id: getSessionId()
550288
550551
  });
550289
550552
  },
@@ -550441,7 +550704,7 @@ function createCanUseToolWithPermissionPrompt(permissionPromptTool) {
550441
550704
  if (!permissionToolResultBlockParam.content || !Array.isArray(permissionToolResultBlockParam.content) || !permissionToolResultBlockParam.content[0] || permissionToolResultBlockParam.content[0].type !== "text" || typeof permissionToolResultBlockParam.content[0].text !== "string") {
550442
550705
  throw new Error('Permission prompt tool returned an invalid result. Expected a single text block param with type="text" and a string text value.');
550443
550706
  }
550444
- return permissionPromptToolResultToPermissionDecision(outputSchema33().parse(safeParseJSON(permissionToolResultBlockParam.content[0].text)), permissionPromptTool, input, toolUseContext);
550707
+ return permissionPromptToolResultToPermissionDecision(outputSchema34().parse(safeParseJSON(permissionToolResultBlockParam.content[0].text)), permissionPromptTool, input, toolUseContext);
550445
550708
  };
550446
550709
  return canUseTool;
550447
550710
  }
@@ -550591,7 +550854,7 @@ async function handleInitializeRequest(request, requestId, initialized5, output,
550591
550854
  isAuthenticating: status2.isAuthenticating,
550592
550855
  output: status2.output,
550593
550856
  error: status2.error,
550594
- uuid: randomUUID54(),
550857
+ uuid: randomUUID55(),
550595
550858
  session_id: getSessionId()
550596
550859
  });
550597
550860
  }
@@ -550790,7 +551053,7 @@ function emitLoadError(message, outputFormat) {
550790
551053
  usage: EMPTY_USAGE,
550791
551054
  modelUsage: {},
550792
551055
  permission_denials: [],
550793
- uuid: randomUUID54(),
551056
+ uuid: randomUUID55(),
550794
551057
  errors: [message]
550795
551058
  };
550796
551059
  process.stdout.write(jsonStringify(errorResult) + `
@@ -552186,11 +552449,11 @@ async function startMCPServer(cwd3, debug2, verbose) {
552186
552449
  const tools = getTools(toolPermissionContext);
552187
552450
  return {
552188
552451
  tools: await Promise.all(tools.map(async (tool) => {
552189
- let outputSchema34;
552452
+ let outputSchema35;
552190
552453
  if (tool.outputSchema) {
552191
552454
  const convertedSchema = zodToJsonSchema3(tool.outputSchema);
552192
552455
  if (typeof convertedSchema === "object" && convertedSchema !== null && "type" in convertedSchema && convertedSchema.type === "object") {
552193
- outputSchema34 = convertedSchema;
552456
+ outputSchema35 = convertedSchema;
552194
552457
  }
552195
552458
  }
552196
552459
  return {
@@ -552201,7 +552464,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
552201
552464
  agents: []
552202
552465
  }),
552203
552466
  inputSchema: zodToJsonSchema3(tool.inputSchema),
552204
- outputSchema: outputSchema34
552467
+ outputSchema: outputSchema35
552205
552468
  };
552206
552469
  }))
552207
552470
  };
@@ -554602,7 +554865,7 @@ async function run() {
554602
554865
  }).hideHelp()).option("--replay-user-messages", "Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)", () => true).addOption(new Option("--enable-auth-status", "Enable auth status messages in SDK mode").default(false).hideHelp()).option("--allowedTools, --allowed-tools <tools...>", 'Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit")').option("--tools <tools...>", 'Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").').option("--disallowedTools, --disallowed-tools <tools...>", 'Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit")').option("--mcp-config <configs...>", "Load MCP servers from JSON files or strings (space-separated)").addOption(new Option("--permission-prompt-tool <tool>", "MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new Option("--system-prompt <prompt>", "System prompt to use for the session").argParser(String)).addOption(new Option("--system-prompt-file <file>", "Read system prompt from a file").argParser(String).hideHelp()).addOption(new Option("--append-system-prompt <prompt>", "Append a system prompt to the default system prompt").argParser(String)).addOption(new Option("--append-system-prompt-file <file>", "Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new Option("--permission-mode <mode>", "Permission mode to use for the session").argParser(String).choices(PERMISSION_MODES)).option("-c, --continue", "Continue the most recent conversation in the current directory", () => true).option("-r, --resume [value]", "Resume a conversation by session ID, or open interactive picker with optional search term", (value) => value || true).option("--fork-session", "When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)", () => true).addOption(new Option("--prefill <text>", "Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new Option("--deep-link-origin", "Signal that this session was launched from a deep link").hideHelp()).addOption(new Option("--deep-link-repo <slug>", "Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new Option("--deep-link-last-fetch <ms>", "FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((v) => {
554603
554866
  const n3 = Number(v);
554604
554867
  return Number.isFinite(n3) ? n3 : undefined;
554605
- }).hideHelp()).option("--from-pr [value]", "Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term", (value) => value || true).option("--no-session-persistence", "Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new Option("--resume-session-at <message id>", "When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new Option("--rewind-files <user-message-id>", "Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>", `Model for the current session. Use a model from the active provider (e.g. 'maximo-pandora-3.8-nano' or 'maximo-atlas-preview').`).addOption(new Option("--effort <level>", `Effort level for the current session (minimal, low, medium, high, xhigh, max, ultra)`).argParser((rawValue) => {
554868
+ }).hideHelp()).option("--from-pr [value]", "Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term", (value) => value || true).option("--no-session-persistence", "Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new Option("--resume-session-at <message id>", "When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new Option("--rewind-files <user-message-id>", "Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>", `Model for the current session. Use a model from the active provider (e.g. 'maximo-pandora-3.8-nano' or 'maximo-atlas-1.2').`).addOption(new Option("--effort <level>", `Effort level for the current session (minimal, low, medium, high, xhigh, max, ultra)`).argParser((rawValue) => {
554606
554869
  const normalized = rawValue.trim().toLowerCase().replace(/[-_\s]+/g, "").replace(/^extrahigh$/, "xhigh").replace(/^ultra$/, "xhigh").replace(/^maximum$/, "max").replace(/^med$/, "medium");
554607
554870
  const allowed = ["minimal", "low", "medium", "high", "xhigh", "max", "ultra"];
554608
554871
  if (!allowed.includes(normalized)) {
@@ -556188,7 +556451,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
556188
556451
  pendingHookMessages
556189
556452
  }, renderAndRun);
556190
556453
  }
556191
- }).version("0.1.32 (Maximo Syntax)", "-v, --version", "Output the version number");
556454
+ }).version("0.1.33 (Maximo Syntax)", "-v, --version", "Output the version number");
556192
556455
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
556193
556456
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
556194
556457
  if (canUserConfigureAdvisor()) {
@@ -556727,7 +556990,7 @@ function validateProviderEnvOrExit() {
556727
556990
  async function main2() {
556728
556991
  const args = process.argv.slice(2);
556729
556992
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
556730
- console.log(`${"0.1.32"} (Maximo Syntax)`);
556993
+ console.log(`${"0.1.33"} (Maximo Syntax)`);
556731
556994
  return;
556732
556995
  }
556733
556996
  validateProviderEnvOrExit();
@@ -556804,4 +557067,4 @@ async function main2() {
556804
557067
  }
556805
557068
  main2();
556806
557069
 
556807
- //# debugId=733B749EDC111ACA64756E2164756E21
557070
+ //# debugId=A40DFA0841863D9C64756E2164756E21