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