@maximoai/maximo-syntax-cli 0.1.38 → 0.1.39
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.
- package/dist/cli.mjs +206 -34
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -124011,7 +124011,7 @@ var init_metadata = __esm(() => {
|
|
|
124011
124011
|
isMaximoAiAuth: isMaximoAISubscriber(),
|
|
124012
124012
|
version: "99.0.0",
|
|
124013
124013
|
versionBase: getVersionBase(),
|
|
124014
|
-
buildTime: "2026-08-
|
|
124014
|
+
buildTime: "2026-08-23T12:37:37.196Z",
|
|
124015
124015
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
124016
124016
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
124017
124017
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -125521,6 +125521,7 @@ function createDefaultGlobalConfig() {
|
|
|
125521
125521
|
verbose: false,
|
|
125522
125522
|
editorMode: "normal",
|
|
125523
125523
|
autoCompactEnabled: true,
|
|
125524
|
+
autoCompactPercent: 40,
|
|
125524
125525
|
showTurnDuration: true,
|
|
125525
125526
|
hasSeenTasksHint: false,
|
|
125526
125527
|
hasUsedStash: false,
|
|
@@ -126250,6 +126251,7 @@ var init_config2 = __esm(() => {
|
|
|
126250
126251
|
"editorMode",
|
|
126251
126252
|
"hasUsedBackslashReturn",
|
|
126252
126253
|
"autoCompactEnabled",
|
|
126254
|
+
"autoCompactPercent",
|
|
126253
126255
|
"showTurnDuration",
|
|
126254
126256
|
"diffTool",
|
|
126255
126257
|
"env",
|
|
@@ -276785,7 +276787,7 @@ import { access as access3, writeFile as writeFile13 } from "fs/promises";
|
|
|
276785
276787
|
import { homedir as homedir22 } from "os";
|
|
276786
276788
|
import { join as join65 } from "path";
|
|
276787
276789
|
function getCurrentRealVersion() {
|
|
276788
|
-
return "0.1.
|
|
276790
|
+
return "0.1.39";
|
|
276789
276791
|
}
|
|
276790
276792
|
async function getRolloutConfig() {
|
|
276791
276793
|
try {
|
|
@@ -366618,6 +366620,65 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
366618
366620
|
});
|
|
366619
366621
|
return { reason: "max_turns", turnCount: nextTurnCount };
|
|
366620
366622
|
}
|
|
366623
|
+
const inTurnCandidate = [...messagesForQuery, ...assistantMessages, ...toolResults];
|
|
366624
|
+
const mainThreadNoAgent = !toolUseContext.agentId && !querySource.startsWith("agent:");
|
|
366625
|
+
if (mainThreadNoAgent && !toolUseContext.abortController.signal.aborted && !shouldPreventContinuation && isAutoCompactEnabled() && tokenCountWithEstimation(inTurnCandidate) - snipTokensFreed >= getAutoCompactThreshold(toolUseContext.options.mainLoopModel) + IN_TURN_COMPACT_SAFETY_MARGIN_TOKENS) {
|
|
366626
|
+
queryCheckpoint("query_in_turn_autocompact_start");
|
|
366627
|
+
const { compactionResult: inTurnResult, consecutiveFailures: inTurnFailures } = await deps.autocompact(inTurnCandidate, toolUseContext, {
|
|
366628
|
+
systemPrompt,
|
|
366629
|
+
userContext,
|
|
366630
|
+
systemContext,
|
|
366631
|
+
toolUseContext,
|
|
366632
|
+
forkContextMessages: inTurnCandidate
|
|
366633
|
+
}, querySource, tracking, snipTokensFreed);
|
|
366634
|
+
queryCheckpoint("query_in_turn_autocompact_end");
|
|
366635
|
+
if (inTurnResult) {
|
|
366636
|
+
logEvent("tengu_auto_compact_succeeded", {
|
|
366637
|
+
originalMessageCount: inTurnCandidate.length,
|
|
366638
|
+
compactedMessageCount: inTurnResult.summaryMessages.length + inTurnResult.attachments.length + inTurnResult.hookResults.length + (inTurnResult.messagesToKeep?.length ?? 0),
|
|
366639
|
+
preCompactTokenCount: inTurnResult.preCompactTokenCount,
|
|
366640
|
+
postCompactTokenCount: inTurnResult.postCompactTokenCount,
|
|
366641
|
+
truePostCompactTokenCount: inTurnResult.truePostCompactTokenCount,
|
|
366642
|
+
compactionInputTokens: inTurnResult.compactionUsage?.input_tokens,
|
|
366643
|
+
compactionOutputTokens: inTurnResult.compactionUsage?.output_tokens,
|
|
366644
|
+
compactionCacheReadTokens: inTurnResult.compactionUsage?.cache_read_input_tokens ?? 0,
|
|
366645
|
+
compactionCacheCreationTokens: inTurnResult.compactionUsage?.cache_creation_input_tokens ?? 0,
|
|
366646
|
+
compactionTotalTokens: inTurnResult.compactionUsage ? inTurnResult.compactionUsage.input_tokens + (inTurnResult.compactionUsage.cache_creation_input_tokens ?? 0) + (inTurnResult.compactionUsage.cache_read_input_tokens ?? 0) + inTurnResult.compactionUsage.output_tokens : 0,
|
|
366647
|
+
queryChainId: queryChainIdForAnalytics,
|
|
366648
|
+
queryDepth: queryTracking.depth,
|
|
366649
|
+
midTurn: true
|
|
366650
|
+
});
|
|
366651
|
+
tracking = {
|
|
366652
|
+
compacted: true,
|
|
366653
|
+
turnId: deps.uuid(),
|
|
366654
|
+
turnCounter: 0,
|
|
366655
|
+
consecutiveFailures: 0
|
|
366656
|
+
};
|
|
366657
|
+
const postCompactMessages = buildPostCompactMessages(inTurnResult);
|
|
366658
|
+
for (const message of postCompactMessages) {
|
|
366659
|
+
yield message;
|
|
366660
|
+
}
|
|
366661
|
+
toolResults.length = 0;
|
|
366662
|
+
state = {
|
|
366663
|
+
messages: postCompactMessages,
|
|
366664
|
+
toolUseContext: { ...updatedToolUseContext, queryTracking },
|
|
366665
|
+
autoCompactTracking: tracking,
|
|
366666
|
+
turnCount: nextTurnCount,
|
|
366667
|
+
maxOutputTokensRecoveryCount: 0,
|
|
366668
|
+
hasAttemptedReactiveCompact: false,
|
|
366669
|
+
pendingToolUseSummary: nextPendingToolUseSummary,
|
|
366670
|
+
maxOutputTokensOverride: undefined,
|
|
366671
|
+
stopHookActive,
|
|
366672
|
+
transition: { reason: "next_turn" }
|
|
366673
|
+
};
|
|
366674
|
+
continue;
|
|
366675
|
+
} else if (inTurnFailures !== undefined) {
|
|
366676
|
+
tracking = {
|
|
366677
|
+
...tracking ?? { compacted: false, turnId: "", turnCounter: 0 },
|
|
366678
|
+
consecutiveFailures: inTurnFailures
|
|
366679
|
+
};
|
|
366680
|
+
}
|
|
366681
|
+
}
|
|
366621
366682
|
queryCheckpoint("query_recursive_call");
|
|
366622
366683
|
const next = {
|
|
366623
366684
|
messages: [...messagesForQuery, ...assistantMessages, ...toolResults],
|
|
@@ -366639,7 +366700,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
366639
366700
|
__callDispose(__stack, _err, _hasErr);
|
|
366640
366701
|
}
|
|
366641
366702
|
}
|
|
366642
|
-
var reactiveCompact = null, skillPrefetch = null, MAX_OUTPUT_TOKENS_RECOVERY_LIMIT = 3;
|
|
366703
|
+
var reactiveCompact = null, skillPrefetch = null, IN_TURN_COMPACT_SAFETY_MARGIN_TOKENS = 2000, MAX_OUTPUT_TOKENS_RECOVERY_LIMIT = 3;
|
|
366643
366704
|
var init_query2 = __esm(() => {
|
|
366644
366705
|
init_withRetry();
|
|
366645
366706
|
init_autoCompact();
|
|
@@ -366748,7 +366809,7 @@ function getAnthropicEnvMetadata() {
|
|
|
366748
366809
|
function getBuildAgeMinutes() {
|
|
366749
366810
|
if (false)
|
|
366750
366811
|
;
|
|
366751
|
-
const buildTime = new Date("2026-08-
|
|
366812
|
+
const buildTime = new Date("2026-08-23T12:37:37.196Z").getTime();
|
|
366752
366813
|
if (isNaN(buildTime))
|
|
366753
366814
|
return;
|
|
366754
366815
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -367842,6 +367903,68 @@ Please provide your summary following this structure, ensuring precision and tho
|
|
|
367842
367903
|
REMINDER: Do NOT call any tools. Respond with plain text only — ` + "an <analysis> block followed by a <summary> block. " + "Tool calls will be rejected and you will fail the task.";
|
|
367843
367904
|
});
|
|
367844
367905
|
|
|
367906
|
+
// src/services/compact/turnSlicing.ts
|
|
367907
|
+
function isRealUserPrompt(message) {
|
|
367908
|
+
if (message.type !== "user") {
|
|
367909
|
+
return false;
|
|
367910
|
+
}
|
|
367911
|
+
if (message.isMeta || message.isCompactSummary || message.isVisibleInTranscriptOnly || message.isVirtual) {
|
|
367912
|
+
return false;
|
|
367913
|
+
}
|
|
367914
|
+
const content = message.message.content;
|
|
367915
|
+
if (typeof content === "string") {
|
|
367916
|
+
return true;
|
|
367917
|
+
}
|
|
367918
|
+
return Array.isArray(content) && !content.some((block2) => block2.type === "tool_result");
|
|
367919
|
+
}
|
|
367920
|
+
function turnContainsUnansweredMedia(messages) {
|
|
367921
|
+
let sawAssistant = false;
|
|
367922
|
+
for (const message of messages) {
|
|
367923
|
+
if (message.type === "assistant") {
|
|
367924
|
+
sawAssistant = true;
|
|
367925
|
+
continue;
|
|
367926
|
+
}
|
|
367927
|
+
if (!sawAssistant || message.type !== "user" || typeof message.message.content === "string") {
|
|
367928
|
+
continue;
|
|
367929
|
+
}
|
|
367930
|
+
const hasMedia = message.message.content.some((block2) => block2?.type === "image" || block2?.type === "document");
|
|
367931
|
+
if (hasMedia) {
|
|
367932
|
+
return true;
|
|
367933
|
+
}
|
|
367934
|
+
}
|
|
367935
|
+
return false;
|
|
367936
|
+
}
|
|
367937
|
+
function selectTailTurns(messages, keepTurns = 3) {
|
|
367938
|
+
const groups = [];
|
|
367939
|
+
let current2 = [];
|
|
367940
|
+
for (const message of messages) {
|
|
367941
|
+
if (isRealUserPrompt(message) && current2.length > 0) {
|
|
367942
|
+
groups.push(current2);
|
|
367943
|
+
current2 = [message];
|
|
367944
|
+
} else {
|
|
367945
|
+
current2.push(message);
|
|
367946
|
+
}
|
|
367947
|
+
}
|
|
367948
|
+
if (current2.length > 0) {
|
|
367949
|
+
groups.push(current2);
|
|
367950
|
+
}
|
|
367951
|
+
if (groups.length < 2) {
|
|
367952
|
+
return { kept: [], summarizedCount: messages.length };
|
|
367953
|
+
}
|
|
367954
|
+
const keepGroupCount = Math.min(keepTurns, groups.length - 1);
|
|
367955
|
+
const keptGroups = groups.slice(groups.length - keepGroupCount);
|
|
367956
|
+
const summarizedGroups = groups.slice(0, groups.length - keepGroupCount);
|
|
367957
|
+
const kept = keptGroups.flat();
|
|
367958
|
+
const summarizedCount = summarizedGroups.reduce((sum, group) => sum + group.length, 0);
|
|
367959
|
+
if (summarizedCount < 1 || kept.length > messages.length * 0.6) {
|
|
367960
|
+
return { kept: [], summarizedCount: messages.length };
|
|
367961
|
+
}
|
|
367962
|
+
if (turnContainsUnansweredMedia(kept)) {
|
|
367963
|
+
return { kept: [], summarizedCount: messages.length };
|
|
367964
|
+
}
|
|
367965
|
+
return { kept, summarizedCount };
|
|
367966
|
+
}
|
|
367967
|
+
|
|
367845
367968
|
// src/services/compact/compact.ts
|
|
367846
367969
|
function stripImagesFromMessages(messages) {
|
|
367847
367970
|
return messages.map((message) => {
|
|
@@ -368092,19 +368215,24 @@ async function compactConversation(messages, context6, cacheSafeParams, suppress
|
|
|
368092
368215
|
].sort();
|
|
368093
368216
|
}
|
|
368094
368217
|
const transcriptPath = getTranscriptPath();
|
|
368218
|
+
const { kept: keptTail } = selectTailTurns(messages);
|
|
368095
368219
|
const summaryMessages = [
|
|
368096
368220
|
createUserMessage({
|
|
368097
|
-
content: getCompactUserSummaryMessage(summary, suppressFollowUpQuestions, transcriptPath),
|
|
368221
|
+
content: getCompactUserSummaryMessage(summary, suppressFollowUpQuestions, transcriptPath, keptTail.length > 0),
|
|
368098
368222
|
isCompactSummary: true,
|
|
368099
368223
|
isVisibleInTranscriptOnly: true
|
|
368100
368224
|
})
|
|
368101
368225
|
];
|
|
368226
|
+
if (keptTail.length > 0) {
|
|
368227
|
+
boundaryMarker.compactMetadata = annotateBoundaryWithPreservedSegment(boundaryMarker, summaryMessages.at(-1).uuid, keptTail).compactMetadata;
|
|
368228
|
+
}
|
|
368102
368229
|
const compactionCallTotalTokens = tokenCountFromLastAPIResponse([
|
|
368103
368230
|
summaryResponse
|
|
368104
368231
|
]);
|
|
368105
368232
|
const truePostCompactTokenCount = roughTokenCountEstimationForMessages([
|
|
368106
368233
|
boundaryMarker,
|
|
368107
368234
|
...summaryMessages,
|
|
368235
|
+
...keptTail,
|
|
368108
368236
|
...postCompactFileAttachments,
|
|
368109
368237
|
...hookMessages
|
|
368110
368238
|
]);
|
|
@@ -368158,6 +368286,7 @@ async function compactConversation(messages, context6, cacheSafeParams, suppress
|
|
|
368158
368286
|
return {
|
|
368159
368287
|
boundaryMarker,
|
|
368160
368288
|
summaryMessages,
|
|
368289
|
+
messagesToKeep: keptTail.length > 0 ? keptTail : undefined,
|
|
368161
368290
|
attachments: postCompactFileAttachments,
|
|
368162
368291
|
hookResults: hookMessages,
|
|
368163
368292
|
userDisplayMessage: combinedUserDisplayMessage || undefined,
|
|
@@ -369293,9 +369422,24 @@ function getEffectiveContextWindowSize(model) {
|
|
|
369293
369422
|
const reservedTokensForSummary = getCompactSummaryMaxOutputTokensForModel(model, contextWindow);
|
|
369294
369423
|
return Math.max(0, contextWindow - reservedTokensForSummary);
|
|
369295
369424
|
}
|
|
369296
|
-
function
|
|
369297
|
-
|
|
369298
|
-
|
|
369425
|
+
function clampAutoCompactPercent(value) {
|
|
369426
|
+
if (!Number.isFinite(value))
|
|
369427
|
+
return AUTOCOMPACT_DEFAULT_PERCENT;
|
|
369428
|
+
return Math.min(AUTOCOMPACT_MAX_PERCENT, Math.max(AUTOCOMPACT_MIN_PERCENT, Math.floor(value)));
|
|
369429
|
+
}
|
|
369430
|
+
function getAutoCompactPercent() {
|
|
369431
|
+
const envPercent = process.env.MAXIMO_SYNTAX_AUTOCOMPACT_PCT;
|
|
369432
|
+
if (envPercent) {
|
|
369433
|
+
const parsed = parseFloat(envPercent);
|
|
369434
|
+
if (!isNaN(parsed) && parsed > 0 && parsed <= 100) {
|
|
369435
|
+
return clampAutoCompactPercent(parsed);
|
|
369436
|
+
}
|
|
369437
|
+
}
|
|
369438
|
+
const configured = getGlobalConfig().autoCompactPercent;
|
|
369439
|
+
if (typeof configured === "number") {
|
|
369440
|
+
return clampAutoCompactPercent(configured);
|
|
369441
|
+
}
|
|
369442
|
+
return AUTOCOMPACT_DEFAULT_PERCENT;
|
|
369299
369443
|
}
|
|
369300
369444
|
function getMaximoOutputRatio(model) {
|
|
369301
369445
|
const limits = getCachedMaximoModelLimits(model);
|
|
@@ -369312,17 +369456,15 @@ function getThresholdBufferTokens(model, threshold, fallback) {
|
|
|
369312
369456
|
return Math.floor(Math.min(threshold, threshold * outputRatio));
|
|
369313
369457
|
}
|
|
369314
369458
|
function getAutoCompactThreshold(model) {
|
|
369315
|
-
|
|
369316
|
-
const
|
|
369317
|
-
|
|
369318
|
-
|
|
369319
|
-
|
|
369320
|
-
|
|
369321
|
-
const percentageThreshold = Math.floor(effectiveContextWindow * (parsed / 100));
|
|
369322
|
-
return Math.min(percentageThreshold, autocompactThreshold);
|
|
369459
|
+
let contextWindow = getContextWindowForModel(model, getSdkBetas());
|
|
369460
|
+
const autoCompactWindow = process.env.MAXIMO_SYNTAX_AUTO_COMPACT_WINDOW;
|
|
369461
|
+
if (autoCompactWindow) {
|
|
369462
|
+
const parsed = parseInt(autoCompactWindow, 10);
|
|
369463
|
+
if (!isNaN(parsed) && parsed > 0) {
|
|
369464
|
+
contextWindow = Math.min(contextWindow, parsed);
|
|
369323
369465
|
}
|
|
369324
369466
|
}
|
|
369325
|
-
return Math.max(0,
|
|
369467
|
+
return Math.max(0, Math.floor(contextWindow * (getAutoCompactPercent() / 100)));
|
|
369326
369468
|
}
|
|
369327
369469
|
function calculateTokenWarningState(tokenUsage, model) {
|
|
369328
369470
|
const autoCompactThreshold = getAutoCompactThreshold(model);
|
|
@@ -369418,6 +369560,10 @@ async function autoCompactIfNeeded(messages, toolUseContext, cacheSafeParams, qu
|
|
|
369418
369560
|
return { wasCompacted: false };
|
|
369419
369561
|
}
|
|
369420
369562
|
const model = toolUseContext.options.mainLoopModel;
|
|
369563
|
+
if (skipInitialAutoCompact) {
|
|
369564
|
+
skipInitialAutoCompact = false;
|
|
369565
|
+
return { wasCompacted: false };
|
|
369566
|
+
}
|
|
369421
369567
|
const shouldCompact = await shouldAutoCompact(messages, model, querySource, snipTokensFreed);
|
|
369422
369568
|
if (!shouldCompact) {
|
|
369423
369569
|
return { wasCompacted: false };
|
|
@@ -369429,16 +369575,18 @@ async function autoCompactIfNeeded(messages, toolUseContext, cacheSafeParams, qu
|
|
|
369429
369575
|
autoCompactThreshold: getAutoCompactThreshold(model),
|
|
369430
369576
|
querySource
|
|
369431
369577
|
};
|
|
369432
|
-
|
|
369433
|
-
|
|
369434
|
-
|
|
369435
|
-
|
|
369436
|
-
|
|
369437
|
-
|
|
369438
|
-
|
|
369439
|
-
|
|
369440
|
-
|
|
369441
|
-
|
|
369578
|
+
if (!isEnvTruthy(process.env.MAXIMO_SYNTAX_DISABLE_KEEP_TAIL_COMPACT)) {
|
|
369579
|
+
const sessionMemoryResult = await trySessionMemoryCompaction(messages, toolUseContext.agentId, recompactionInfo.autoCompactThreshold);
|
|
369580
|
+
if (sessionMemoryResult) {
|
|
369581
|
+
setLastSummarizedMessageId(undefined);
|
|
369582
|
+
runPostCompactCleanup(querySource);
|
|
369583
|
+
if (false) {}
|
|
369584
|
+
markPostCompaction();
|
|
369585
|
+
return {
|
|
369586
|
+
wasCompacted: true,
|
|
369587
|
+
compactionResult: sessionMemoryResult
|
|
369588
|
+
};
|
|
369589
|
+
}
|
|
369442
369590
|
}
|
|
369443
369591
|
try {
|
|
369444
369592
|
const compactionResult = await compactConversation(messages, toolUseContext, cacheSafeParams, true, undefined, true, recompactionInfo);
|
|
@@ -369461,7 +369609,7 @@ async function autoCompactIfNeeded(messages, toolUseContext, cacheSafeParams, qu
|
|
|
369461
369609
|
return { wasCompacted: false, consecutiveFailures: nextFailures };
|
|
369462
369610
|
}
|
|
369463
369611
|
}
|
|
369464
|
-
var
|
|
369612
|
+
var AUTOCOMPACT_DEFAULT_PERCENT = 40, AUTOCOMPACT_MIN_PERCENT = 10, AUTOCOMPACT_MAX_PERCENT = 70, WARNING_THRESHOLD_BUFFER_TOKENS = 20000, ERROR_THRESHOLD_BUFFER_TOKENS = 20000, MANUAL_COMPACT_BUFFER_TOKENS = 3000, MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3, skipInitialAutoCompact;
|
|
369465
369613
|
var init_autoCompact = __esm(() => {
|
|
369466
369614
|
init_state();
|
|
369467
369615
|
init_state();
|
|
@@ -369479,6 +369627,7 @@ var init_autoCompact = __esm(() => {
|
|
|
369479
369627
|
init_compact();
|
|
369480
369628
|
init_postCompactCleanup();
|
|
369481
369629
|
init_sessionMemoryCompact();
|
|
369630
|
+
skipInitialAutoCompact = isEnvTruthy(process.env.MAXIMO_SYNTAX_SKIP_FIRST_AUTOCOMPACT);
|
|
369482
369631
|
});
|
|
369483
369632
|
|
|
369484
369633
|
// src/utils/analyzeContext.ts
|
|
@@ -397368,6 +397517,11 @@ var init_autoUpdateSchedulerSetup = __esm(() => {
|
|
|
397368
397517
|
});
|
|
397369
397518
|
|
|
397370
397519
|
// src/components/Settings/Config.tsx
|
|
397520
|
+
function clampAutoCompactPercentSetting(value) {
|
|
397521
|
+
if (typeof value !== "number" || !Number.isFinite(value))
|
|
397522
|
+
return 40;
|
|
397523
|
+
return Math.min(70, Math.max(10, Math.round(value)));
|
|
397524
|
+
}
|
|
397371
397525
|
function Config({
|
|
397372
397526
|
onClose,
|
|
397373
397527
|
context: context6,
|
|
@@ -397516,6 +397670,24 @@ function Config({
|
|
|
397516
397670
|
});
|
|
397517
397671
|
}
|
|
397518
397672
|
},
|
|
397673
|
+
{
|
|
397674
|
+
id: "autoCompactPercent",
|
|
397675
|
+
label: "Auto-compact threshold (% of context)",
|
|
397676
|
+
value: String(clampAutoCompactPercentSetting(globalConfig2.autoCompactPercent)),
|
|
397677
|
+
options: ["10", "20", "30", "40", "50", "60", "70"],
|
|
397678
|
+
type: "enum",
|
|
397679
|
+
onChange(autoCompactPercent) {
|
|
397680
|
+
const percent = Number(autoCompactPercent);
|
|
397681
|
+
saveGlobalConfig((current2) => ({
|
|
397682
|
+
...current2,
|
|
397683
|
+
autoCompactPercent: percent
|
|
397684
|
+
}));
|
|
397685
|
+
setGlobalConfig({
|
|
397686
|
+
...getGlobalConfig(),
|
|
397687
|
+
autoCompactPercent: percent
|
|
397688
|
+
});
|
|
397689
|
+
}
|
|
397690
|
+
},
|
|
397519
397691
|
{
|
|
397520
397692
|
id: "spinnerTipsEnabled",
|
|
397521
397693
|
label: "Show tips",
|
|
@@ -432826,7 +432998,7 @@ function getRecentActivitySync() {
|
|
|
432826
432998
|
return cachedActivity;
|
|
432827
432999
|
}
|
|
432828
433000
|
function getLogoDisplayData() {
|
|
432829
|
-
const version2 = process.env.DEMO_VERSION ?? "0.1.
|
|
433001
|
+
const version2 = process.env.DEMO_VERSION ?? "0.1.39" ?? "99.0.0";
|
|
432830
433002
|
const serverUrl = getDirectConnectServerUrl();
|
|
432831
433003
|
const displayPath = process.env.DEMO_VERSION ? "/code/maximo" : getDisplayPath(getCwd());
|
|
432832
433004
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -462291,7 +462463,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
462291
462463
|
var call57 = async () => {
|
|
462292
462464
|
return {
|
|
462293
462465
|
type: "text",
|
|
462294
|
-
value: `${"99.0.0"} (built ${"2026-08-
|
|
462466
|
+
value: `${"99.0.0"} (built ${"2026-08-23T12:37:37.196Z"})`
|
|
462295
462467
|
};
|
|
462296
462468
|
}, version2, version_default;
|
|
462297
462469
|
var init_version = __esm(() => {
|
|
@@ -536824,7 +536996,7 @@ function SetupRow({ children }) {
|
|
|
536824
536996
|
}
|
|
536825
536997
|
function WelcomeV2() {
|
|
536826
536998
|
const { columns } = useTerminalSize();
|
|
536827
|
-
const version3 = "0.1.
|
|
536999
|
+
const version3 = "0.1.39";
|
|
536828
537000
|
const width = Math.max(48, Math.min(columns || 92, 92));
|
|
536829
537001
|
const stacked = width < OCTOPUS_COMPACT_WIDTH + 42;
|
|
536830
537002
|
return /* @__PURE__ */ jsx_runtime479.jsx(ThemedBox_default, {
|
|
@@ -556760,7 +556932,7 @@ Usage: maximo --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
556760
556932
|
pendingHookMessages
|
|
556761
556933
|
}, renderAndRun);
|
|
556762
556934
|
}
|
|
556763
|
-
}).version("0.1.
|
|
556935
|
+
}).version("0.1.39 (Maximo Syntax)", "-v, --version", "Output the version number");
|
|
556764
556936
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
556765
556937
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
556766
556938
|
if (canUserConfigureAdvisor()) {
|
|
@@ -557299,7 +557471,7 @@ function validateProviderEnvOrExit() {
|
|
|
557299
557471
|
async function main2() {
|
|
557300
557472
|
const args = process.argv.slice(2);
|
|
557301
557473
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
557302
|
-
console.log(`${"0.1.
|
|
557474
|
+
console.log(`${"0.1.39"} (Maximo Syntax)`);
|
|
557303
557475
|
return;
|
|
557304
557476
|
}
|
|
557305
557477
|
validateProviderEnvOrExit();
|
|
@@ -557376,4 +557548,4 @@ async function main2() {
|
|
|
557376
557548
|
}
|
|
557377
557549
|
main2();
|
|
557378
557550
|
|
|
557379
|
-
//# debugId=
|
|
557551
|
+
//# debugId=8818C1A459D7EBB064756E2164756E21
|