@maximoai/maximo-syntax-cli 0.1.10 → 0.1.11
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/README.md +1 -0
- package/dist/cli.mjs +433 -25
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ See documentation: https://code.claude.com/docs/en/google-vertex-ai
|
|
|
126
126
|
|
|
127
127
|
- [Maximo AI Documentation](https://maximoai.co/syntax)
|
|
128
128
|
- [GitHub Repository](https://github.com/maximoai/maximo-syntax-cli)
|
|
129
|
+
- [Changelog](./CHANGELOG.md)
|
|
129
130
|
|
|
130
131
|
---
|
|
131
132
|
|
package/dist/cli.mjs
CHANGED
|
@@ -123299,7 +123299,7 @@ var init_metadata = __esm(() => {
|
|
|
123299
123299
|
isMaximoAiAuth: isMaximoAISubscriber(),
|
|
123300
123300
|
version: "99.0.0",
|
|
123301
123301
|
versionBase: getVersionBase(),
|
|
123302
|
-
buildTime: "2026-04-
|
|
123302
|
+
buildTime: "2026-04-10T22:52:11.984Z",
|
|
123303
123303
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
123304
123304
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
123305
123305
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -290011,16 +290011,128 @@ var init_overageCreditGrant = __esm(() => {
|
|
|
290011
290011
|
});
|
|
290012
290012
|
|
|
290013
290013
|
// src/services/api/usage.ts
|
|
290014
|
-
|
|
290015
|
-
|
|
290016
|
-
|
|
290014
|
+
function getUsageApiBaseUrl() {
|
|
290015
|
+
const tokens = getMaximoAIOAuthTokens2();
|
|
290016
|
+
if (tokens?.scopes && shouldUseMaximoAIAuth(tokens.scopes)) {
|
|
290017
|
+
return MAXIMO_OAUTH_CONFIG2.BASE_API_URL;
|
|
290018
|
+
}
|
|
290019
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) {
|
|
290020
|
+
const baseUrl = process.env.OPENAI_BASE_URL || getGlobalConfig().openAIBaseUrl;
|
|
290021
|
+
if (baseUrl?.includes("maximoai.co")) {
|
|
290022
|
+
return MAXIMO_OAUTH_CONFIG2.BASE_API_URL;
|
|
290023
|
+
}
|
|
290024
|
+
}
|
|
290025
|
+
const globalConfig2 = getGlobalConfig();
|
|
290026
|
+
if (globalConfig2.maximoApiKey || globalConfig2.openAIBaseUrl?.includes("maximoai.co")) {
|
|
290027
|
+
return MAXIMO_OAUTH_CONFIG2.BASE_API_URL;
|
|
290017
290028
|
}
|
|
290029
|
+
return getOauthConfig().BASE_API_URL;
|
|
290030
|
+
}
|
|
290031
|
+
function hasMaximoApiKey() {
|
|
290032
|
+
console.log("[Usage] hasMaximoApiKey check:", {
|
|
290033
|
+
useOpenAI: isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI),
|
|
290034
|
+
baseUrl: process.env.OPENAI_BASE_URL || getGlobalConfig().openAIBaseUrl,
|
|
290035
|
+
hasApiKey: !!process.env.OPENAI_API_KEY,
|
|
290036
|
+
hasMaximoApiKey: !!getGlobalConfig().maximoApiKey,
|
|
290037
|
+
hasAnthropicKey: !!getAnthropicApiKey()
|
|
290038
|
+
});
|
|
290039
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) {
|
|
290040
|
+
const baseUrl = process.env.OPENAI_BASE_URL || getGlobalConfig().openAIBaseUrl;
|
|
290041
|
+
const apiKey = process.env.OPENAI_API_KEY;
|
|
290042
|
+
if (apiKey && baseUrl?.includes("maximoai.co")) {
|
|
290043
|
+
console.log("[Usage] Found OPENAI_API_KEY with Maximo base URL");
|
|
290044
|
+
return true;
|
|
290045
|
+
}
|
|
290046
|
+
}
|
|
290047
|
+
const globalConfig2 = getGlobalConfig();
|
|
290048
|
+
if (globalConfig2.maximoApiKey) {
|
|
290049
|
+
console.log("[Usage] Found maximoApiKey in global config");
|
|
290050
|
+
return true;
|
|
290051
|
+
}
|
|
290052
|
+
if (getAnthropicApiKey()) {
|
|
290053
|
+
console.log("[Usage] Found Anthropic API key");
|
|
290054
|
+
return true;
|
|
290055
|
+
}
|
|
290056
|
+
console.log("[Usage] No Maximo API key found");
|
|
290057
|
+
return false;
|
|
290058
|
+
}
|
|
290059
|
+
function getUsageApiKey() {
|
|
290060
|
+
console.log("[Usage] getUsageApiKey:", {
|
|
290061
|
+
useOpenAI: isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI),
|
|
290062
|
+
baseUrl: process.env.OPENAI_BASE_URL || getGlobalConfig().openAIBaseUrl,
|
|
290063
|
+
hasKey: !!process.env.OPENAI_API_KEY,
|
|
290064
|
+
keyLength: process.env.OPENAI_API_KEY?.length,
|
|
290065
|
+
keyPrefix: process.env.OPENAI_API_KEY?.substring(0, 10)
|
|
290066
|
+
});
|
|
290067
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) {
|
|
290068
|
+
const baseUrl = process.env.OPENAI_BASE_URL || getGlobalConfig().openAIBaseUrl;
|
|
290069
|
+
if (baseUrl?.includes("maximoai.co")) {
|
|
290070
|
+
console.log("[Usage] Returning OPENAI_API_KEY for usage endpoint");
|
|
290071
|
+
return process.env.OPENAI_API_KEY || null;
|
|
290072
|
+
}
|
|
290073
|
+
}
|
|
290074
|
+
const globalConfig2 = getGlobalConfig();
|
|
290075
|
+
if (globalConfig2.maximoApiKey) {
|
|
290076
|
+
console.log("[Usage] Returning maximoApiKey from global config");
|
|
290077
|
+
return globalConfig2.maximoApiKey;
|
|
290078
|
+
}
|
|
290079
|
+
const anthropicKey = getAnthropicApiKey();
|
|
290080
|
+
console.log("[Usage] Falling back to Anthropic API key:", !!anthropicKey);
|
|
290081
|
+
return anthropicKey;
|
|
290082
|
+
}
|
|
290083
|
+
function canFetchUsage() {
|
|
290018
290084
|
const tokens = getMaximoAIOAuthTokens2();
|
|
290019
|
-
|
|
290020
|
-
|
|
290085
|
+
const hasMaximoOAuth = tokens?.scopes && shouldUseMaximoAIAuth(tokens.scopes);
|
|
290086
|
+
const hasApiKey = hasMaximoApiKey();
|
|
290087
|
+
console.log("[Usage] canFetchUsage check:", {
|
|
290088
|
+
hasMaximoOAuth: !!hasMaximoOAuth,
|
|
290089
|
+
hasMaximoApiKey: hasApiKey,
|
|
290090
|
+
oauthScopes: tokens?.scopes
|
|
290091
|
+
});
|
|
290092
|
+
if (hasMaximoOAuth) {
|
|
290093
|
+
return true;
|
|
290094
|
+
}
|
|
290095
|
+
if (hasApiKey) {
|
|
290096
|
+
return true;
|
|
290097
|
+
}
|
|
290098
|
+
return false;
|
|
290099
|
+
}
|
|
290100
|
+
async function fetchUtilization() {
|
|
290101
|
+
if (!canFetchUsage()) {
|
|
290102
|
+
return {};
|
|
290021
290103
|
}
|
|
290022
290104
|
const authResult = getAuthHeaders2();
|
|
290023
290105
|
if (authResult.error) {
|
|
290106
|
+
const apiKey = getUsageApiKey();
|
|
290107
|
+
if (apiKey) {
|
|
290108
|
+
console.log("[Usage] Using API key for utilization endpoint");
|
|
290109
|
+
const response2 = await axios_default.get(`${getUsageApiBaseUrl()}/cli/oauth/usage`, {
|
|
290110
|
+
headers: {
|
|
290111
|
+
"Content-Type": "application/json",
|
|
290112
|
+
"User-Agent": getMaximoCodeUserAgent(),
|
|
290113
|
+
"x-api-key": apiKey
|
|
290114
|
+
},
|
|
290115
|
+
timeout: 5000
|
|
290116
|
+
});
|
|
290117
|
+
return response2.data;
|
|
290118
|
+
}
|
|
290119
|
+
const tokens = getMaximoAIOAuthTokens2();
|
|
290120
|
+
if (tokens?.accessToken && shouldUseMaximoAIAuth(tokens.scopes)) {
|
|
290121
|
+
if (isOAuthTokenExpired(tokens.expiresAt)) {
|
|
290122
|
+
console.log("[Usage] OAuth token expired");
|
|
290123
|
+
return null;
|
|
290124
|
+
}
|
|
290125
|
+
console.log("[Usage] Using OAuth token directly for utilization endpoint");
|
|
290126
|
+
const response2 = await axios_default.get(`${getUsageApiBaseUrl()}/cli/oauth/usage`, {
|
|
290127
|
+
headers: {
|
|
290128
|
+
"Content-Type": "application/json",
|
|
290129
|
+
"User-Agent": getMaximoCodeUserAgent(),
|
|
290130
|
+
Authorization: `Bearer ${tokens.accessToken}`
|
|
290131
|
+
},
|
|
290132
|
+
timeout: 5000
|
|
290133
|
+
});
|
|
290134
|
+
return response2.data;
|
|
290135
|
+
}
|
|
290024
290136
|
throw new Error(`Auth error: ${authResult.error}`);
|
|
290025
290137
|
}
|
|
290026
290138
|
const headers = {
|
|
@@ -290028,19 +290140,89 @@ async function fetchUtilization() {
|
|
|
290028
290140
|
"User-Agent": getMaximoCodeUserAgent(),
|
|
290029
290141
|
...authResult.headers
|
|
290030
290142
|
};
|
|
290031
|
-
const url3 = `${
|
|
290143
|
+
const url3 = `${getUsageApiBaseUrl()}/cli/oauth/usage`;
|
|
290032
290144
|
const response = await axios_default.get(url3, {
|
|
290033
290145
|
headers,
|
|
290034
290146
|
timeout: 5000
|
|
290035
290147
|
});
|
|
290036
290148
|
return response.data;
|
|
290037
290149
|
}
|
|
290150
|
+
async function fetchDetailedUsage() {
|
|
290151
|
+
if (!canFetchUsage()) {
|
|
290152
|
+
console.log("[Usage] canFetchUsage returned false - cannot fetch usage data");
|
|
290153
|
+
return null;
|
|
290154
|
+
}
|
|
290155
|
+
const authResult = getAuthHeaders2();
|
|
290156
|
+
console.log("[Usage] fetchDetailedUsage authResult:", { error: authResult.error, hasHeaders: !!authResult.headers, headerKeys: authResult.headers ? Object.keys(authResult.headers) : [] });
|
|
290157
|
+
if (authResult.error) {
|
|
290158
|
+
const apiKey = getUsageApiKey();
|
|
290159
|
+
console.log("[Usage] apiKey from getUsageApiKey():", !!apiKey, apiKey?.substring(0, 15));
|
|
290160
|
+
if (apiKey) {
|
|
290161
|
+
console.log("[Usage] Using API key for detailed-usage endpoint");
|
|
290162
|
+
try {
|
|
290163
|
+
const response = await axios_default.get(`${getUsageApiBaseUrl()}/cli/usage/detailed-usage`, {
|
|
290164
|
+
headers: {
|
|
290165
|
+
"Content-Type": "application/json",
|
|
290166
|
+
"User-Agent": getMaximoCodeUserAgent(),
|
|
290167
|
+
"x-api-key": apiKey
|
|
290168
|
+
},
|
|
290169
|
+
timeout: 1e4
|
|
290170
|
+
});
|
|
290171
|
+
console.log("[Usage] Response received (API key):", response.data?.success);
|
|
290172
|
+
return response.data;
|
|
290173
|
+
} catch (err2) {
|
|
290174
|
+
console.log("[Usage] API key request failed:", err2.response?.status, err2.response?.data);
|
|
290175
|
+
throw err2;
|
|
290176
|
+
}
|
|
290177
|
+
}
|
|
290178
|
+
const tokens = getMaximoAIOAuthTokens2();
|
|
290179
|
+
if (tokens?.accessToken && shouldUseMaximoAIAuth(tokens.scopes)) {
|
|
290180
|
+
if (isOAuthTokenExpired(tokens.expiresAt)) {
|
|
290181
|
+
console.log("[Usage] OAuth token expired");
|
|
290182
|
+
return null;
|
|
290183
|
+
}
|
|
290184
|
+
console.log("[Usage] Using OAuth token directly for detailed-usage endpoint");
|
|
290185
|
+
const response = await axios_default.get(`${getUsageApiBaseUrl()}/cli/usage/detailed-usage`, {
|
|
290186
|
+
headers: {
|
|
290187
|
+
"Content-Type": "application/json",
|
|
290188
|
+
"User-Agent": getMaximoCodeUserAgent(),
|
|
290189
|
+
Authorization: `Bearer ${tokens.accessToken}`
|
|
290190
|
+
},
|
|
290191
|
+
timeout: 1e4
|
|
290192
|
+
});
|
|
290193
|
+
console.log("[Usage] Response received (OAuth):", response.data?.success);
|
|
290194
|
+
return response.data;
|
|
290195
|
+
}
|
|
290196
|
+
console.log("[Usage] Auth error:", authResult.error);
|
|
290197
|
+
throw new Error(`Auth error: ${authResult.error}`);
|
|
290198
|
+
}
|
|
290199
|
+
console.log("[Usage] Making request to /api/usage/detailed-usage with headers:", Object.keys(authResult.headers));
|
|
290200
|
+
const headers = {
|
|
290201
|
+
"Content-Type": "application/json",
|
|
290202
|
+
"User-Agent": getMaximoCodeUserAgent(),
|
|
290203
|
+
...authResult.headers
|
|
290204
|
+
};
|
|
290205
|
+
const url3 = `${getUsageApiBaseUrl()}/cli/usage/detailed-usage`;
|
|
290206
|
+
try {
|
|
290207
|
+
const response = await axios_default.get(url3, {
|
|
290208
|
+
headers,
|
|
290209
|
+
timeout: 1e4
|
|
290210
|
+
});
|
|
290211
|
+
console.log("[Usage] Response received:", response.data?.success);
|
|
290212
|
+
return response.data;
|
|
290213
|
+
} catch (err2) {
|
|
290214
|
+
console.log("[Usage] API error:", err2.response?.status, err2.response?.data);
|
|
290215
|
+
throw err2;
|
|
290216
|
+
}
|
|
290217
|
+
}
|
|
290038
290218
|
var init_usage = __esm(() => {
|
|
290039
290219
|
init_axios2();
|
|
290040
290220
|
init_oauth();
|
|
290041
290221
|
init_auth2();
|
|
290042
290222
|
init_http2();
|
|
290043
290223
|
init_client2();
|
|
290224
|
+
init_config2();
|
|
290225
|
+
init_envUtils();
|
|
290044
290226
|
});
|
|
290045
290227
|
|
|
290046
290228
|
// src/commands/extra-usage/extra-usage-core.ts
|
|
@@ -364606,7 +364788,7 @@ function getAnthropicEnvMetadata() {
|
|
|
364606
364788
|
function getBuildAgeMinutes() {
|
|
364607
364789
|
if (false)
|
|
364608
364790
|
;
|
|
364609
|
-
const buildTime = new Date("2026-04-
|
|
364791
|
+
const buildTime = new Date("2026-04-10T22:52:11.984Z").getTime();
|
|
364610
364792
|
if (isNaN(buildTime))
|
|
364611
364793
|
return;
|
|
364612
364794
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -396245,6 +396427,7 @@ function LimitBar(t0) {
|
|
|
396245
396427
|
}
|
|
396246
396428
|
function Usage() {
|
|
396247
396429
|
const [utilization, setUtilization] = import_react110.useState(null);
|
|
396430
|
+
const [detailedUsage, setDetailedUsage] = import_react110.useState(null);
|
|
396248
396431
|
const [error42, setError] = import_react110.useState(null);
|
|
396249
396432
|
const [isLoading, setIsLoading] = import_react110.useState(true);
|
|
396250
396433
|
const {
|
|
@@ -396256,8 +396439,14 @@ function Usage() {
|
|
|
396256
396439
|
setIsLoading(true);
|
|
396257
396440
|
setError(null);
|
|
396258
396441
|
try {
|
|
396259
|
-
const
|
|
396260
|
-
|
|
396442
|
+
const [utilData, detailedData] = await Promise.all([
|
|
396443
|
+
fetchUtilization(),
|
|
396444
|
+
fetchDetailedUsage()
|
|
396445
|
+
]);
|
|
396446
|
+
setUtilization(utilData);
|
|
396447
|
+
if (detailedData?.success) {
|
|
396448
|
+
setDetailedUsage(detailedData.data);
|
|
396449
|
+
}
|
|
396261
396450
|
} catch (err2) {
|
|
396262
396451
|
logError2(err2);
|
|
396263
396452
|
const axiosError = err2;
|
|
@@ -396369,6 +396558,15 @@ function Usage() {
|
|
|
396369
396558
|
isEligibleForOverageCreditGrant() && /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(OverageCreditUpsell, {
|
|
396370
396559
|
maxWidth
|
|
396371
396560
|
}, undefined, false, undefined, this),
|
|
396561
|
+
detailedUsage && /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(BillingSection, {
|
|
396562
|
+
billing: detailedUsage.billing,
|
|
396563
|
+
subscription: detailedUsage.subscription,
|
|
396564
|
+
maxWidth
|
|
396565
|
+
}, undefined, false, undefined, this),
|
|
396566
|
+
detailedUsage?.allocations && /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(AllocationsSection, {
|
|
396567
|
+
allocations: detailedUsage.allocations,
|
|
396568
|
+
maxWidth
|
|
396569
|
+
}, undefined, false, undefined, this),
|
|
396372
396570
|
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396373
396571
|
dimColor: true,
|
|
396374
396572
|
children: /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ConfigurableShortcutHint, {
|
|
@@ -396517,6 +396715,217 @@ function ExtraUsageSection(t0) {
|
|
|
396517
396715
|
}
|
|
396518
396716
|
return t10;
|
|
396519
396717
|
}
|
|
396718
|
+
function BillingSection(t0) {
|
|
396719
|
+
const $2 = import_react_compiler_runtime143.c(11);
|
|
396720
|
+
const { billing, subscription, maxWidth } = t0;
|
|
396721
|
+
const { walletBalance, totalSpent, totalDeposited, currency } = billing;
|
|
396722
|
+
const formattedWallet = formatCost(walletBalance, 2);
|
|
396723
|
+
const formattedSpent = formatCost(totalSpent, 2);
|
|
396724
|
+
const formattedDeposited = formatCost(totalDeposited, 2);
|
|
396725
|
+
let t1;
|
|
396726
|
+
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
396727
|
+
t1 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396728
|
+
bold: true,
|
|
396729
|
+
children: "Billing"
|
|
396730
|
+
}, undefined, false, undefined, this);
|
|
396731
|
+
$2[0] = t1;
|
|
396732
|
+
} else {
|
|
396733
|
+
t1 = $2[0];
|
|
396734
|
+
}
|
|
396735
|
+
let t2;
|
|
396736
|
+
if ($2[1] !== formattedWallet) {
|
|
396737
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396738
|
+
children: [
|
|
396739
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396740
|
+
dimColor: true,
|
|
396741
|
+
children: "Wallet Balance: "
|
|
396742
|
+
}, undefined, false, undefined, this),
|
|
396743
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396744
|
+
color: "green",
|
|
396745
|
+
children: [
|
|
396746
|
+
formattedWallet,
|
|
396747
|
+
" ",
|
|
396748
|
+
currency
|
|
396749
|
+
]
|
|
396750
|
+
}, undefined, true, undefined, this)
|
|
396751
|
+
]
|
|
396752
|
+
}, undefined, true, undefined, this);
|
|
396753
|
+
$2[1] = formattedWallet;
|
|
396754
|
+
$2[2] = t2;
|
|
396755
|
+
} else {
|
|
396756
|
+
t2 = $2[2];
|
|
396757
|
+
}
|
|
396758
|
+
let t3;
|
|
396759
|
+
if ($2[3] !== formattedSpent) {
|
|
396760
|
+
t3 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396761
|
+
children: [
|
|
396762
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396763
|
+
dimColor: true,
|
|
396764
|
+
children: "Total Spent: "
|
|
396765
|
+
}, undefined, false, undefined, this),
|
|
396766
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396767
|
+
color: "red",
|
|
396768
|
+
children: [
|
|
396769
|
+
formattedSpent,
|
|
396770
|
+
" ",
|
|
396771
|
+
currency
|
|
396772
|
+
]
|
|
396773
|
+
}, undefined, true, undefined, this)
|
|
396774
|
+
]
|
|
396775
|
+
}, undefined, true, undefined, this);
|
|
396776
|
+
$2[3] = formattedSpent;
|
|
396777
|
+
$2[4] = t3;
|
|
396778
|
+
} else {
|
|
396779
|
+
t3 = $2[4];
|
|
396780
|
+
}
|
|
396781
|
+
let t4;
|
|
396782
|
+
if ($2[5] !== formattedDeposited) {
|
|
396783
|
+
t4 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396784
|
+
children: [
|
|
396785
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396786
|
+
dimColor: true,
|
|
396787
|
+
children: "Total Deposited: "
|
|
396788
|
+
}, undefined, false, undefined, this),
|
|
396789
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396790
|
+
children: [
|
|
396791
|
+
formattedDeposited,
|
|
396792
|
+
" ",
|
|
396793
|
+
currency
|
|
396794
|
+
]
|
|
396795
|
+
}, undefined, true, undefined, this)
|
|
396796
|
+
]
|
|
396797
|
+
}, undefined, true, undefined, this);
|
|
396798
|
+
$2[5] = formattedDeposited;
|
|
396799
|
+
$2[6] = t4;
|
|
396800
|
+
} else {
|
|
396801
|
+
t4 = $2[6];
|
|
396802
|
+
}
|
|
396803
|
+
let t5;
|
|
396804
|
+
if ($2[7] !== t1 || $2[8] !== t2 || $2[9] !== t3 || $2[10] !== subscription) {
|
|
396805
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedBox_default, {
|
|
396806
|
+
flexDirection: "column",
|
|
396807
|
+
gap: 1,
|
|
396808
|
+
children: [
|
|
396809
|
+
t1,
|
|
396810
|
+
subscription?.displayAmount && /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396811
|
+
children: [
|
|
396812
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396813
|
+
dimColor: true,
|
|
396814
|
+
children: "Subscription: "
|
|
396815
|
+
}, undefined, false, undefined, this),
|
|
396816
|
+
/* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396817
|
+
color: "cyan",
|
|
396818
|
+
children: [
|
|
396819
|
+
subscription.planType,
|
|
396820
|
+
" (",
|
|
396821
|
+
subscription.displayAmount,
|
|
396822
|
+
" ",
|
|
396823
|
+
subscription.currency,
|
|
396824
|
+
")"
|
|
396825
|
+
]
|
|
396826
|
+
}, undefined, true, undefined, this)
|
|
396827
|
+
]
|
|
396828
|
+
}, undefined, true, undefined, this),
|
|
396829
|
+
t2,
|
|
396830
|
+
t3,
|
|
396831
|
+
t4
|
|
396832
|
+
]
|
|
396833
|
+
}, undefined, true, undefined, this);
|
|
396834
|
+
$2[7] = t1;
|
|
396835
|
+
$2[8] = t2;
|
|
396836
|
+
$2[9] = t3;
|
|
396837
|
+
$2[10] = subscription;
|
|
396838
|
+
} else {
|
|
396839
|
+
t5 = $2[8];
|
|
396840
|
+
}
|
|
396841
|
+
return t5;
|
|
396842
|
+
}
|
|
396843
|
+
function AllocationsSection(t0) {
|
|
396844
|
+
const $2 = import_react_compiler_runtime143.c(14);
|
|
396845
|
+
const { allocations, maxWidth } = t0;
|
|
396846
|
+
const { daily, fiveHour, weekly } = allocations;
|
|
396847
|
+
let t1;
|
|
396848
|
+
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
396849
|
+
t1 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedText, {
|
|
396850
|
+
bold: true,
|
|
396851
|
+
children: "Allocations"
|
|
396852
|
+
}, undefined, false, undefined, this);
|
|
396853
|
+
$2[0] = t1;
|
|
396854
|
+
} else {
|
|
396855
|
+
t1 = $2[0];
|
|
396856
|
+
}
|
|
396857
|
+
const dailyLimit = {
|
|
396858
|
+
utilization: daily.percentUsed,
|
|
396859
|
+
resets_at: daily.resetAt
|
|
396860
|
+
};
|
|
396861
|
+
const fiveHourLimit = {
|
|
396862
|
+
utilization: fiveHour.percentUsed,
|
|
396863
|
+
resets_at: fiveHour.resetAt
|
|
396864
|
+
};
|
|
396865
|
+
const weeklyLimit = {
|
|
396866
|
+
utilization: weekly.percentUsed,
|
|
396867
|
+
resets_at: weekly.resetAt
|
|
396868
|
+
};
|
|
396869
|
+
let t2;
|
|
396870
|
+
if ($2[1] !== maxWidth || $2[2] !== dailyLimit) {
|
|
396871
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(LimitBar, {
|
|
396872
|
+
title: "Daily Limit",
|
|
396873
|
+
limit: dailyLimit,
|
|
396874
|
+
maxWidth
|
|
396875
|
+
}, undefined, false, undefined, this);
|
|
396876
|
+
$2[1] = maxWidth;
|
|
396877
|
+
$2[2] = dailyLimit;
|
|
396878
|
+
$2[3] = t2;
|
|
396879
|
+
} else {
|
|
396880
|
+
t2 = $2[3];
|
|
396881
|
+
}
|
|
396882
|
+
let t3;
|
|
396883
|
+
if ($2[4] !== maxWidth || $2[5] !== fiveHourLimit) {
|
|
396884
|
+
t3 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(LimitBar, {
|
|
396885
|
+
title: "5-Hour Window",
|
|
396886
|
+
limit: fiveHourLimit,
|
|
396887
|
+
maxWidth
|
|
396888
|
+
}, undefined, false, undefined, this);
|
|
396889
|
+
$2[4] = maxWidth;
|
|
396890
|
+
$2[5] = fiveHourLimit;
|
|
396891
|
+
$2[6] = t3;
|
|
396892
|
+
} else {
|
|
396893
|
+
t3 = $2[6];
|
|
396894
|
+
}
|
|
396895
|
+
let t4;
|
|
396896
|
+
if ($2[7] !== maxWidth || $2[8] !== weeklyLimit) {
|
|
396897
|
+
t4 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(LimitBar, {
|
|
396898
|
+
title: "Weekly Limit",
|
|
396899
|
+
limit: weeklyLimit,
|
|
396900
|
+
maxWidth
|
|
396901
|
+
}, undefined, false, undefined, this);
|
|
396902
|
+
$2[7] = maxWidth;
|
|
396903
|
+
$2[8] = weeklyLimit;
|
|
396904
|
+
$2[9] = t4;
|
|
396905
|
+
} else {
|
|
396906
|
+
t4 = $2[9];
|
|
396907
|
+
}
|
|
396908
|
+
let t5;
|
|
396909
|
+
if ($2[10] !== t1 || $2[11] !== t2 || $2[12] !== t3 || $2[13] !== t4) {
|
|
396910
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime180.jsxDEV(ThemedBox_default, {
|
|
396911
|
+
flexDirection: "column",
|
|
396912
|
+
gap: 1,
|
|
396913
|
+
children: [
|
|
396914
|
+
t1,
|
|
396915
|
+
t2,
|
|
396916
|
+
t3,
|
|
396917
|
+
t4
|
|
396918
|
+
]
|
|
396919
|
+
}, undefined, true, undefined, this);
|
|
396920
|
+
$2[10] = t1;
|
|
396921
|
+
$2[11] = t2;
|
|
396922
|
+
$2[12] = t3;
|
|
396923
|
+
$2[13] = t4;
|
|
396924
|
+
} else {
|
|
396925
|
+
t5 = $2[10];
|
|
396926
|
+
}
|
|
396927
|
+
return t5;
|
|
396928
|
+
}
|
|
396520
396929
|
var import_react_compiler_runtime143, React56, import_react110, jsx_dev_runtime180, EXTRA_USAGE_SECTION_TITLE = "Extra usage";
|
|
396521
396930
|
var init_Usage = __esm(() => {
|
|
396522
396931
|
init_extra_usage2();
|
|
@@ -429045,7 +429454,7 @@ function getRecentActivitySync() {
|
|
|
429045
429454
|
return cachedActivity;
|
|
429046
429455
|
}
|
|
429047
429456
|
function getLogoDisplayData() {
|
|
429048
|
-
const version2 = process.env.DEMO_VERSION ?? "0.1.
|
|
429457
|
+
const version2 = process.env.DEMO_VERSION ?? "0.1.11" ?? "99.0.0";
|
|
429049
429458
|
const serverUrl = getDirectConnectServerUrl();
|
|
429050
429459
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
429051
429460
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -444330,7 +444739,6 @@ var init_usage3 = __esm(() => {
|
|
|
444330
444739
|
type: "local-jsx",
|
|
444331
444740
|
name: "usage",
|
|
444332
444741
|
description: "Show plan usage limits",
|
|
444333
|
-
availability: ["claude-ai"],
|
|
444334
444742
|
load: () => Promise.resolve().then(() => (init_usage2(), exports_usage))
|
|
444335
444743
|
};
|
|
444336
444744
|
});
|
|
@@ -458180,7 +458588,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
458180
458588
|
var call56 = async () => {
|
|
458181
458589
|
return {
|
|
458182
458590
|
type: "text",
|
|
458183
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
458591
|
+
value: `${"99.0.0"} (built ${"2026-04-10T22:52:11.984Z"})`
|
|
458184
458592
|
};
|
|
458185
458593
|
}, version2, version_default;
|
|
458186
458594
|
var init_version = __esm(() => {
|
|
@@ -459735,7 +460143,7 @@ function MaximoInChromeMenu(t0) {
|
|
|
459735
460143
|
onDone,
|
|
459736
460144
|
isExtensionInstalled: installed,
|
|
459737
460145
|
configEnabled,
|
|
459738
|
-
isMaximoAISubscriber:
|
|
460146
|
+
isMaximoAISubscriber: isMaximoAISubscriber3,
|
|
459739
460147
|
isWSL
|
|
459740
460148
|
} = t0;
|
|
459741
460149
|
const mcpClients = useAppState(_temp159);
|
|
@@ -459910,7 +460318,7 @@ function MaximoInChromeMenu(t0) {
|
|
|
459910
460318
|
} else {
|
|
459911
460319
|
options2 = $2[8];
|
|
459912
460320
|
}
|
|
459913
|
-
const isDisabled = isWSL || !
|
|
460321
|
+
const isDisabled = isWSL || !isMaximoAISubscriber3;
|
|
459914
460322
|
let t5;
|
|
459915
460323
|
if ($2[18] !== onDone) {
|
|
459916
460324
|
t5 = () => onDone();
|
|
@@ -459940,12 +460348,12 @@ function MaximoInChromeMenu(t0) {
|
|
|
459940
460348
|
t7 = $2[22];
|
|
459941
460349
|
}
|
|
459942
460350
|
let t8;
|
|
459943
|
-
if ($2[23] !==
|
|
459944
|
-
t8 = !
|
|
460351
|
+
if ($2[23] !== isMaximoAISubscriber3) {
|
|
460352
|
+
t8 = !isMaximoAISubscriber3 && /* @__PURE__ */ jsx_dev_runtime344.jsxDEV(ThemedText, {
|
|
459945
460353
|
color: "error",
|
|
459946
460354
|
children: "Maximo in Chrome requires a claude.ai subscription."
|
|
459947
460355
|
}, undefined, false, undefined, this);
|
|
459948
|
-
$2[23] =
|
|
460356
|
+
$2[23] = isMaximoAISubscriber3;
|
|
459949
460357
|
$2[24] = t8;
|
|
459950
460358
|
} else {
|
|
459951
460359
|
t8 = $2[24];
|
|
@@ -531087,7 +531495,7 @@ function WelcomeV2() {
|
|
|
531087
531495
|
dimColor: true,
|
|
531088
531496
|
children: [
|
|
531089
531497
|
"v",
|
|
531090
|
-
"0.1.
|
|
531498
|
+
"0.1.11",
|
|
531091
531499
|
" "
|
|
531092
531500
|
]
|
|
531093
531501
|
}, undefined, true, undefined, this)
|
|
@@ -531287,7 +531695,7 @@ function WelcomeV2() {
|
|
|
531287
531695
|
dimColor: true,
|
|
531288
531696
|
children: [
|
|
531289
531697
|
"v",
|
|
531290
|
-
"0.1.
|
|
531698
|
+
"0.1.11",
|
|
531291
531699
|
" "
|
|
531292
531700
|
]
|
|
531293
531701
|
}, undefined, true, undefined, this)
|
|
@@ -531510,7 +531918,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
531510
531918
|
dimColor: true,
|
|
531511
531919
|
children: [
|
|
531512
531920
|
"v",
|
|
531513
|
-
"0.1.
|
|
531921
|
+
"0.1.11",
|
|
531514
531922
|
" "
|
|
531515
531923
|
]
|
|
531516
531924
|
}, undefined, true, undefined, this);
|
|
@@ -531764,7 +532172,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
531764
532172
|
dimColor: true,
|
|
531765
532173
|
children: [
|
|
531766
532174
|
"v",
|
|
531767
|
-
"0.1.
|
|
532175
|
+
"0.1.11",
|
|
531768
532176
|
" "
|
|
531769
532177
|
]
|
|
531770
532178
|
}, undefined, true, undefined, this);
|
|
@@ -551717,7 +552125,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
551717
552125
|
pendingHookMessages
|
|
551718
552126
|
}, renderAndRun);
|
|
551719
552127
|
}
|
|
551720
|
-
}).version("0.1.
|
|
552128
|
+
}).version("0.1.11 (Maximo Syntax)", "-v, --version", "Output the version number");
|
|
551721
552129
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
551722
552130
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
551723
552131
|
if (canUserConfigureAdvisor()) {
|
|
@@ -552222,7 +552630,7 @@ function validateProviderEnvOrExit() {
|
|
|
552222
552630
|
async function main2() {
|
|
552223
552631
|
const args = process.argv.slice(2);
|
|
552224
552632
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
552225
|
-
console.log(`${"0.1.
|
|
552633
|
+
console.log(`${"0.1.11"} (Maximo Syntax)`);
|
|
552226
552634
|
return;
|
|
552227
552635
|
}
|
|
552228
552636
|
validateProviderEnvOrExit();
|
|
@@ -552291,4 +552699,4 @@ async function main2() {
|
|
|
552291
552699
|
}
|
|
552292
552700
|
main2();
|
|
552293
552701
|
|
|
552294
|
-
//# debugId=
|
|
552702
|
+
//# debugId=BD18CEBFE731917064756E2164756E21
|