mastracode 0.3.0 → 0.4.0
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/CHANGELOG.md +132 -0
- package/README.md +60 -12
- package/dist/agents/instructions.d.ts.map +1 -1
- package/dist/agents/model.d.ts +4 -1
- package/dist/agents/model.d.ts.map +1 -1
- package/dist/auth/claude-max-warning.d.ts +9 -0
- package/dist/auth/claude-max-warning.d.ts.map +1 -0
- package/dist/{chunk-7TFV3VBB.cjs → chunk-C4X3C2DL.cjs} +1091 -607
- package/dist/chunk-C4X3C2DL.cjs.map +1 -0
- package/dist/{chunk-7K5VFY2N.cjs → chunk-K4WJUBEC.cjs} +151 -48
- package/dist/chunk-K4WJUBEC.cjs.map +1 -0
- package/dist/{chunk-HHX6BKLR.js → chunk-M5LKPQB4.js} +12 -11
- package/dist/chunk-M5LKPQB4.js.map +1 -0
- package/dist/{chunk-V4HZ2AVV.js → chunk-REVOTI2T.js} +143 -38
- package/dist/chunk-REVOTI2T.js.map +1 -0
- package/dist/{chunk-C6XKRHRK.cjs → chunk-S5ZLN7DR.cjs} +6 -2
- package/dist/chunk-S5ZLN7DR.cjs.map +1 -0
- package/dist/{chunk-VRZZSUQE.js → chunk-SM3QCOA7.js} +6 -3
- package/dist/chunk-SM3QCOA7.js.map +1 -0
- package/dist/{chunk-LYETHS2L.js → chunk-X3BGE7CL.js} +877 -394
- package/dist/chunk-X3BGE7CL.js.map +1 -0
- package/dist/{chunk-VZFPT5N7.cjs → chunk-Z4QRXVST.cjs} +62 -61
- package/dist/chunk-Z4QRXVST.cjs.map +1 -0
- package/dist/cli.cjs +20 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -4
- package/dist/cli.js.map +1 -1
- package/dist/docs/SKILL.md +30 -0
- package/dist/docs/assets/SOURCE_MAP.json +11 -0
- package/dist/docs/references/docs-mastra-code-configuration.md +299 -0
- package/dist/docs/references/docs-mastra-code-customization.md +228 -0
- package/dist/docs/references/docs-mastra-code-modes.md +104 -0
- package/dist/docs/references/docs-mastra-code-overview.md +135 -0
- package/dist/docs/references/docs-mastra-code-tools.md +229 -0
- package/dist/docs/references/reference-mastra-code-createMastraCode.md +108 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/onboarding/onboarding-inline.d.ts +5 -0
- package/dist/onboarding/onboarding-inline.d.ts.map +1 -1
- package/dist/onboarding/settings.d.ts +3 -0
- package/dist/onboarding/settings.d.ts.map +1 -1
- package/dist/providers/openai-codex.d.ts +5 -1
- package/dist/providers/openai-codex.d.ts.map +1 -1
- package/dist/schema.d.ts +7 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/storage-PO4VN5NF.cjs +24 -0
- package/dist/{storage-JFFX7LJJ.cjs.map → storage-PO4VN5NF.cjs.map} +1 -1
- package/dist/storage-PQOHJLBI.js +3 -0
- package/dist/{storage-52Y5MKTG.js.map → storage-PQOHJLBI.js.map} +1 -1
- package/dist/tui/claude-max-warning.d.ts +18 -0
- package/dist/tui/claude-max-warning.d.ts.map +1 -0
- package/dist/tui/command-dispatch.d.ts.map +1 -1
- package/dist/tui/commands/index.d.ts +1 -0
- package/dist/tui/commands/index.d.ts.map +1 -1
- package/dist/tui/commands/login.d.ts.map +1 -1
- package/dist/tui/commands/models-pack.d.ts.map +1 -1
- package/dist/tui/commands/settings.d.ts.map +1 -1
- package/dist/tui/commands/skills.d.ts.map +1 -1
- package/dist/tui/commands/theme.d.ts +6 -0
- package/dist/tui/commands/theme.d.ts.map +1 -0
- package/dist/tui/commands/think.d.ts +1 -1
- package/dist/tui/commands/think.d.ts.map +1 -1
- package/dist/tui/components/banner.d.ts.map +1 -1
- package/dist/tui/components/diff-output.d.ts.map +1 -1
- package/dist/tui/components/help-overlay.d.ts.map +1 -1
- package/dist/tui/components/obi-loader.d.ts.map +1 -1
- package/dist/tui/components/settings.d.ts +1 -0
- package/dist/tui/components/settings.d.ts.map +1 -1
- package/dist/tui/components/shell-output.d.ts.map +1 -1
- package/dist/tui/components/task-progress.d.ts.map +1 -1
- package/dist/tui/components/thinking-settings.d.ts +11 -22
- package/dist/tui/components/thinking-settings.d.ts.map +1 -1
- package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
- package/dist/tui/detect-theme.d.ts +17 -0
- package/dist/tui/detect-theme.d.ts.map +1 -0
- package/dist/tui/event-dispatch.d.ts.map +1 -1
- package/dist/tui/handlers/agent-lifecycle.d.ts.map +1 -1
- package/dist/tui/index.d.ts +2 -2
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts +8 -0
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/tui/render-messages.d.ts.map +1 -1
- package/dist/tui/setup.d.ts.map +1 -1
- package/dist/tui/status-line.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +33 -20
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui.cjs +27 -19
- package/dist/tui.js +2 -2
- package/dist/utils/project.d.ts +5 -0
- package/dist/utils/project.d.ts.map +1 -1
- package/dist/utils/slash-command-processor.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunk-7K5VFY2N.cjs.map +0 -1
- package/dist/chunk-7TFV3VBB.cjs.map +0 -1
- package/dist/chunk-C6XKRHRK.cjs.map +0 -1
- package/dist/chunk-HHX6BKLR.js.map +0 -1
- package/dist/chunk-LYETHS2L.js.map +0 -1
- package/dist/chunk-V4HZ2AVV.js.map +0 -1
- package/dist/chunk-VRZZSUQE.js.map +0 -1
- package/dist/chunk-VZFPT5N7.cjs.map +0 -1
- package/dist/storage-52Y5MKTG.js +0 -3
- package/dist/storage-JFFX7LJJ.cjs +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkS5ZLN7DR_cjs = require('./chunk-S5ZLN7DR.cjs');
|
|
4
4
|
var child_process = require('child_process');
|
|
5
5
|
var fs8 = require('fs');
|
|
6
6
|
var os = require('os');
|
|
@@ -2174,7 +2174,7 @@ var claudeCodeIdentity = "You are Claude Code, Anthropic's official CLI for Clau
|
|
|
2174
2174
|
var authStorageInstance = null;
|
|
2175
2175
|
function getAuthStorage() {
|
|
2176
2176
|
if (!authStorageInstance) {
|
|
2177
|
-
authStorageInstance = new
|
|
2177
|
+
authStorageInstance = new chunkS5ZLN7DR_cjs.AuthStorage();
|
|
2178
2178
|
}
|
|
2179
2179
|
return authStorageInstance;
|
|
2180
2180
|
}
|
|
@@ -2284,7 +2284,7 @@ var CODEX_API_ENDPOINT = "https://chatgpt.com/backend-api/codex/responses";
|
|
|
2284
2284
|
var authStorageInstance2 = null;
|
|
2285
2285
|
function getAuthStorage2() {
|
|
2286
2286
|
if (!authStorageInstance2) {
|
|
2287
|
-
authStorageInstance2 = new
|
|
2287
|
+
authStorageInstance2 = new chunkS5ZLN7DR_cjs.AuthStorage();
|
|
2288
2288
|
}
|
|
2289
2289
|
return authStorageInstance2;
|
|
2290
2290
|
}
|
|
@@ -2294,33 +2294,48 @@ function setAuthStorage2(storage) {
|
|
|
2294
2294
|
var CODEX_INSTRUCTIONS = `You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
|
|
2295
2295
|
|
|
2296
2296
|
IMPORTANT: You should be concise, direct, and helpful. Focus on solving the user's problem efficiently.`;
|
|
2297
|
-
var
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
params.providerOptions = {
|
|
2304
|
-
...params.providerOptions,
|
|
2305
|
-
openai: {
|
|
2306
|
-
...params.providerOptions?.openai ?? {},
|
|
2307
|
-
// Codex API requires instructions
|
|
2308
|
-
instructions: CODEX_INSTRUCTIONS,
|
|
2309
|
-
// Codex API requires store to be false
|
|
2310
|
-
store: false
|
|
2311
|
-
}
|
|
2312
|
-
};
|
|
2313
|
-
return params;
|
|
2314
|
-
}
|
|
2297
|
+
var THINKING_LEVEL_TO_REASONING_EFFORT = {
|
|
2298
|
+
off: void 0,
|
|
2299
|
+
low: "low",
|
|
2300
|
+
medium: "medium",
|
|
2301
|
+
high: "high",
|
|
2302
|
+
xhigh: "xhigh"
|
|
2315
2303
|
};
|
|
2316
|
-
function
|
|
2304
|
+
function createCodexMiddleware(reasoningEffort) {
|
|
2305
|
+
return {
|
|
2306
|
+
specificationVersion: "v3",
|
|
2307
|
+
transformParams: async ({ params }) => {
|
|
2308
|
+
if (params.temperature !== void 0 && params.temperature !== null) {
|
|
2309
|
+
delete params.topP;
|
|
2310
|
+
}
|
|
2311
|
+
params.providerOptions = {
|
|
2312
|
+
...params.providerOptions,
|
|
2313
|
+
openai: {
|
|
2314
|
+
...params.providerOptions?.openai ?? {},
|
|
2315
|
+
instructions: CODEX_INSTRUCTIONS,
|
|
2316
|
+
// Codex API requires store to be false
|
|
2317
|
+
store: false,
|
|
2318
|
+
// Enable reasoning for Codex models — without this, the model
|
|
2319
|
+
// skips the reasoning/action phase and goes straight to final_answer,
|
|
2320
|
+
// resulting in narration instead of tool calls.
|
|
2321
|
+
...reasoningEffort ? { reasoningEffort } : {}
|
|
2322
|
+
}
|
|
2323
|
+
};
|
|
2324
|
+
return params;
|
|
2325
|
+
}
|
|
2326
|
+
};
|
|
2327
|
+
}
|
|
2328
|
+
function openaiCodexProvider(modelId = "codex-mini-latest", options) {
|
|
2329
|
+
const level = options?.thinkingLevel ?? "medium";
|
|
2330
|
+
const reasoningEffort = THINKING_LEVEL_TO_REASONING_EFFORT[level];
|
|
2331
|
+
const middleware = createCodexMiddleware(reasoningEffort);
|
|
2317
2332
|
if (process.env.NODE_ENV === "test" || process.env.VITEST) {
|
|
2318
2333
|
const openai2 = openai.createOpenAI({
|
|
2319
2334
|
apiKey: process.env.OPENAI_API_KEY || "test-api-key"
|
|
2320
2335
|
});
|
|
2321
2336
|
return ai.wrapLanguageModel({
|
|
2322
2337
|
model: openai2.responses(modelId),
|
|
2323
|
-
middleware: [
|
|
2338
|
+
middleware: [middleware]
|
|
2324
2339
|
});
|
|
2325
2340
|
}
|
|
2326
2341
|
const oauthFetch = async (url, init) => {
|
|
@@ -2381,11 +2396,11 @@ function openaiCodexProvider(modelId = "codex-mini-latest") {
|
|
|
2381
2396
|
});
|
|
2382
2397
|
return ai.wrapLanguageModel({
|
|
2383
2398
|
model: openai$1.responses(modelId),
|
|
2384
|
-
middleware: [
|
|
2399
|
+
middleware: [middleware]
|
|
2385
2400
|
});
|
|
2386
2401
|
}
|
|
2387
|
-
var authStorage = new
|
|
2388
|
-
function resolveModel(modelId) {
|
|
2402
|
+
var authStorage = new chunkS5ZLN7DR_cjs.AuthStorage();
|
|
2403
|
+
function resolveModel(modelId, options) {
|
|
2389
2404
|
authStorage.reload();
|
|
2390
2405
|
const isAnthropicModel = modelId.startsWith("anthropic/");
|
|
2391
2406
|
const isOpenAIModel = modelId.startsWith("openai/");
|
|
@@ -2402,7 +2417,9 @@ function resolveModel(modelId) {
|
|
|
2402
2417
|
} else if (isAnthropicModel) {
|
|
2403
2418
|
return opencodeClaudeMaxProvider(modelId.substring(`anthropic/`.length));
|
|
2404
2419
|
} else if (isOpenAIModel && authStorage.isLoggedIn("openai-codex")) {
|
|
2405
|
-
return openaiCodexProvider(modelId.substring(`openai/`.length)
|
|
2420
|
+
return openaiCodexProvider(modelId.substring(`openai/`.length), {
|
|
2421
|
+
thinkingLevel: options?.thinkingLevel
|
|
2422
|
+
});
|
|
2406
2423
|
} else {
|
|
2407
2424
|
return new llm.ModelRouterLanguageModel(modelId);
|
|
2408
2425
|
}
|
|
@@ -2415,7 +2432,8 @@ function getDynamicModel({
|
|
|
2415
2432
|
if (!modelId) {
|
|
2416
2433
|
throw new Error("No model selected. Use /models to select a model first.");
|
|
2417
2434
|
}
|
|
2418
|
-
|
|
2435
|
+
const thinkingLevel = harnessContext?.state?.thinkingLevel;
|
|
2436
|
+
return resolveModel(modelId, { thinkingLevel });
|
|
2419
2437
|
}
|
|
2420
2438
|
|
|
2421
2439
|
// src/agents/subagents/execute.ts
|
|
@@ -3028,7 +3046,7 @@ var requestSandboxAccessTool = tools.createTool({
|
|
|
3028
3046
|
// src/onboarding/packs.ts
|
|
3029
3047
|
function getAvailableModePacks(access, savedCustomPacks = []) {
|
|
3030
3048
|
const packs = [];
|
|
3031
|
-
const openaiCodex = "openai/gpt-5.
|
|
3049
|
+
const openaiCodex = "openai/gpt-5.3-codex";
|
|
3032
3050
|
const anthropicBuild = access.anthropic === "oauth" ? "anthropic/claude-opus-4-6" : "anthropic/claude-sonnet-4-5";
|
|
3033
3051
|
if (access.anthropic && access.openai) {
|
|
3034
3052
|
packs.push({
|
|
@@ -3141,7 +3159,8 @@ var DEFAULTS = {
|
|
|
3141
3159
|
skippedAt: null,
|
|
3142
3160
|
version: 0,
|
|
3143
3161
|
modePackId: null,
|
|
3144
|
-
omPackId: null
|
|
3162
|
+
omPackId: null,
|
|
3163
|
+
claudeMaxOAuthWarningAcknowledgedAt: null
|
|
3145
3164
|
},
|
|
3146
3165
|
models: {
|
|
3147
3166
|
activeModelPackId: null,
|
|
@@ -3151,17 +3170,18 @@ var DEFAULTS = {
|
|
|
3151
3170
|
subagentModels: {}
|
|
3152
3171
|
},
|
|
3153
3172
|
preferences: {
|
|
3154
|
-
yolo: null
|
|
3173
|
+
yolo: null,
|
|
3174
|
+
theme: "auto"
|
|
3155
3175
|
},
|
|
3156
3176
|
storage: { ...STORAGE_DEFAULTS },
|
|
3157
3177
|
customModelPacks: [],
|
|
3158
3178
|
modelUseCounts: {}
|
|
3159
3179
|
};
|
|
3160
3180
|
function getSettingsPath() {
|
|
3161
|
-
return path.join(
|
|
3181
|
+
return path.join(chunkS5ZLN7DR_cjs.getAppDataDir(), "settings.json");
|
|
3162
3182
|
}
|
|
3163
3183
|
function migrateFromAuth(settingsPath) {
|
|
3164
|
-
const authPath = path.join(
|
|
3184
|
+
const authPath = path.join(chunkS5ZLN7DR_cjs.getAppDataDir(), "auth.json");
|
|
3165
3185
|
if (!fs8.existsSync(authPath)) return false;
|
|
3166
3186
|
let authData;
|
|
3167
3187
|
try {
|
|
@@ -3277,7 +3297,11 @@ function saveSettings(settings, filePath = getSettingsPath()) {
|
|
|
3277
3297
|
}
|
|
3278
3298
|
fs8.writeFileSync(filePath, JSON.stringify(settings, null, 2), "utf-8");
|
|
3279
3299
|
}
|
|
3280
|
-
var
|
|
3300
|
+
var currentThemeMode = "dark";
|
|
3301
|
+
function getThemeMode() {
|
|
3302
|
+
return currentThemeMode;
|
|
3303
|
+
}
|
|
3304
|
+
var mastraBrand = {
|
|
3281
3305
|
purple: "#7f45e0",
|
|
3282
3306
|
// #b588fe brand is too washed out for terminal
|
|
3283
3307
|
green: "#059669",
|
|
@@ -3288,22 +3312,49 @@ var mastra = {
|
|
|
3288
3312
|
// #6ccdfb brand is to washed out
|
|
3289
3313
|
red: "#DC5663",
|
|
3290
3314
|
// #ff4758 too intense
|
|
3291
|
-
yellow: "#e7e67b"
|
|
3292
|
-
|
|
3315
|
+
yellow: "#e7e67b"
|
|
3316
|
+
};
|
|
3317
|
+
var darkSurface = {
|
|
3293
3318
|
bg: "#020202",
|
|
3294
3319
|
antiGrid: "#0d0d0d",
|
|
3295
3320
|
elevationSm: "#1a1a1a",
|
|
3296
3321
|
elevationLg: "#141414",
|
|
3297
3322
|
hover: "#262626",
|
|
3298
|
-
// Text colors
|
|
3299
3323
|
white: "#f0f0f0",
|
|
3300
3324
|
specialGray: "#cccccc",
|
|
3301
3325
|
mainGray: "#939393",
|
|
3302
3326
|
darkGray: "#424242",
|
|
3303
|
-
// Border colors
|
|
3304
3327
|
borderAntiGrid: "#141414",
|
|
3305
3328
|
borderElevation: "#1a1a1a"
|
|
3306
3329
|
};
|
|
3330
|
+
var lightSurface = {
|
|
3331
|
+
bg: "#ffffff",
|
|
3332
|
+
antiGrid: "#eaeaea",
|
|
3333
|
+
elevationSm: "#ebebeb",
|
|
3334
|
+
elevationLg: "#f0f0f0",
|
|
3335
|
+
hover: "#e0e0e0",
|
|
3336
|
+
white: "#1a1a1a",
|
|
3337
|
+
specialGray: "#444444",
|
|
3338
|
+
mainGray: "#6b6b6b",
|
|
3339
|
+
darkGray: "#b0b0b0",
|
|
3340
|
+
borderAntiGrid: "#e5e5e5",
|
|
3341
|
+
borderElevation: "#e0e0e0"
|
|
3342
|
+
};
|
|
3343
|
+
function getSurface() {
|
|
3344
|
+
return currentThemeMode === "dark" ? darkSurface : lightSurface;
|
|
3345
|
+
}
|
|
3346
|
+
var mastra = new Proxy({}, {
|
|
3347
|
+
get(_target, prop) {
|
|
3348
|
+
if (prop in mastraBrand) {
|
|
3349
|
+
return mastraBrand[prop];
|
|
3350
|
+
}
|
|
3351
|
+
const surface = getSurface();
|
|
3352
|
+
if (prop in surface) {
|
|
3353
|
+
return surface[prop];
|
|
3354
|
+
}
|
|
3355
|
+
return void 0;
|
|
3356
|
+
}
|
|
3357
|
+
});
|
|
3307
3358
|
function tintHex(hex, factor) {
|
|
3308
3359
|
const r = Math.floor(parseInt(hex.slice(1, 3), 16) * factor);
|
|
3309
3360
|
const g = Math.floor(parseInt(hex.slice(3, 5), 16) * factor);
|
|
@@ -3356,9 +3407,59 @@ var darkTheme = {
|
|
|
3356
3407
|
function: "#60a5fa",
|
|
3357
3408
|
// Light blue for function names
|
|
3358
3409
|
// Selection
|
|
3359
|
-
selectedBg:
|
|
3410
|
+
selectedBg: darkSurface.hover,
|
|
3411
|
+
// Overlays
|
|
3412
|
+
overlayBg: darkSurface.antiGrid
|
|
3413
|
+
};
|
|
3414
|
+
var lightTheme = {
|
|
3415
|
+
// Core UI
|
|
3416
|
+
accent: "#7c3aed",
|
|
3417
|
+
// Purple stays the same
|
|
3418
|
+
border: "#d4d4d8",
|
|
3419
|
+
borderAccent: "#7c3aed",
|
|
3420
|
+
borderMuted: "#e4e4e7",
|
|
3421
|
+
success: "#16a34a",
|
|
3422
|
+
error: "#dc2626",
|
|
3423
|
+
warning: "#d97706",
|
|
3424
|
+
muted: "#71717a",
|
|
3425
|
+
dim: "#a1a1aa",
|
|
3426
|
+
text: "#18181b",
|
|
3427
|
+
thinkingText: "#71717a",
|
|
3428
|
+
// User messages
|
|
3429
|
+
userMessageBg: "#eff6ff",
|
|
3430
|
+
// Light blue
|
|
3431
|
+
userMessageText: "#18181b",
|
|
3432
|
+
// System reminders
|
|
3433
|
+
systemReminderBg: "#fefce8",
|
|
3434
|
+
// Light yellow
|
|
3435
|
+
// Tool execution
|
|
3436
|
+
toolPendingBg: "#f5f3ff",
|
|
3437
|
+
// Light purple
|
|
3438
|
+
toolSuccessBg: "#f5f3ff",
|
|
3439
|
+
// Light purple (same as pending)
|
|
3440
|
+
toolErrorBg: "#fef2f2",
|
|
3441
|
+
// Light red
|
|
3442
|
+
toolBorderPending: "#6366f1",
|
|
3443
|
+
// Indigo for pending
|
|
3444
|
+
toolBorderSuccess: "#16a34a",
|
|
3445
|
+
// Green for success
|
|
3446
|
+
toolBorderError: "#dc2626",
|
|
3447
|
+
// Red for error
|
|
3448
|
+
toolTitle: "#7c3aed",
|
|
3449
|
+
toolOutput: "#3f3f46",
|
|
3450
|
+
// Error display
|
|
3451
|
+
errorBg: "#fef2f2",
|
|
3452
|
+
// Light red
|
|
3453
|
+
path: "#6b7280",
|
|
3454
|
+
// Gray for file paths
|
|
3455
|
+
number: "#b45309",
|
|
3456
|
+
// Amber for line numbers
|
|
3457
|
+
function: "#2563eb",
|
|
3458
|
+
// Blue for function names
|
|
3459
|
+
// Selection
|
|
3460
|
+
selectedBg: lightSurface.hover,
|
|
3360
3461
|
// Overlays
|
|
3361
|
-
overlayBg:
|
|
3462
|
+
overlayBg: lightSurface.antiGrid
|
|
3362
3463
|
};
|
|
3363
3464
|
var currentTheme = darkTheme;
|
|
3364
3465
|
function getTheme() {
|
|
@@ -3367,6 +3468,10 @@ function getTheme() {
|
|
|
3367
3468
|
function setTheme(colors) {
|
|
3368
3469
|
currentTheme = colors;
|
|
3369
3470
|
}
|
|
3471
|
+
function applyThemeMode(mode) {
|
|
3472
|
+
currentThemeMode = mode;
|
|
3473
|
+
currentTheme = mode === "light" ? lightTheme : darkTheme;
|
|
3474
|
+
}
|
|
3370
3475
|
function fg(color, text) {
|
|
3371
3476
|
const hex = currentTheme[color];
|
|
3372
3477
|
if (!hex) return text;
|
|
@@ -3457,7 +3562,7 @@ var ThreadLockError = class extends Error {
|
|
|
3457
3562
|
}
|
|
3458
3563
|
};
|
|
3459
3564
|
function getLocksDir() {
|
|
3460
|
-
const dir = path__namespace.join(
|
|
3565
|
+
const dir = path__namespace.join(chunkS5ZLN7DR_cjs.getAppDataDir(), "locks");
|
|
3461
3566
|
if (!fs8__namespace.existsSync(dir)) {
|
|
3462
3567
|
fs8__namespace.mkdirSync(dir, { recursive: true });
|
|
3463
3568
|
}
|
|
@@ -3527,9 +3632,8 @@ function releaseAllThreadLocks() {
|
|
|
3527
3632
|
exports.ONBOARDING_VERSION = ONBOARDING_VERSION;
|
|
3528
3633
|
exports.ThreadLockError = ThreadLockError;
|
|
3529
3634
|
exports.acquireThreadLock = acquireThreadLock;
|
|
3635
|
+
exports.applyThemeMode = applyThemeMode;
|
|
3530
3636
|
exports.astSmartEditTool = astSmartEditTool;
|
|
3531
|
-
exports.bg = bg;
|
|
3532
|
-
exports.bold = bold;
|
|
3533
3637
|
exports.createExecuteCommandTool = createExecuteCommandTool;
|
|
3534
3638
|
exports.createGlobTool = createGlobTool;
|
|
3535
3639
|
exports.createGrepTool = createGrepTool;
|
|
@@ -3539,7 +3643,6 @@ exports.createWebSearchTool = createWebSearchTool;
|
|
|
3539
3643
|
exports.createWriteFileTool = createWriteFileTool;
|
|
3540
3644
|
exports.executeSubagent = executeSubagent;
|
|
3541
3645
|
exports.exploreSubagent = exploreSubagent;
|
|
3542
|
-
exports.fg = fg;
|
|
3543
3646
|
exports.getAvailableModePacks = getAvailableModePacks;
|
|
3544
3647
|
exports.getAvailableOmPacks = getAvailableOmPacks;
|
|
3545
3648
|
exports.getDynamicModel = getDynamicModel;
|
|
@@ -3547,10 +3650,11 @@ exports.getEditorTheme = getEditorTheme;
|
|
|
3547
3650
|
exports.getMarkdownTheme = getMarkdownTheme;
|
|
3548
3651
|
exports.getSelectListTheme = getSelectListTheme;
|
|
3549
3652
|
exports.getSettingsListTheme = getSettingsListTheme;
|
|
3550
|
-
exports.
|
|
3653
|
+
exports.getThemeMode = getThemeMode;
|
|
3551
3654
|
exports.hasTavilyKey = hasTavilyKey;
|
|
3552
3655
|
exports.loadSettings = loadSettings;
|
|
3553
3656
|
exports.mastra = mastra;
|
|
3657
|
+
exports.mastraBrand = mastraBrand;
|
|
3554
3658
|
exports.parseSubagentMeta = parseSubagentMeta;
|
|
3555
3659
|
exports.planSubagent = planSubagent;
|
|
3556
3660
|
exports.releaseAllThreadLocks = releaseAllThreadLocks;
|
|
@@ -3562,9 +3666,8 @@ exports.resolveOmModel = resolveOmModel;
|
|
|
3562
3666
|
exports.saveSettings = saveSettings;
|
|
3563
3667
|
exports.setAuthStorage = setAuthStorage;
|
|
3564
3668
|
exports.setAuthStorage2 = setAuthStorage2;
|
|
3565
|
-
exports.setTheme = setTheme;
|
|
3566
3669
|
exports.stringReplaceLspTool = stringReplaceLspTool;
|
|
3567
3670
|
exports.theme = theme;
|
|
3568
3671
|
exports.tintHex = tintHex;
|
|
3569
|
-
//# sourceMappingURL=chunk-
|
|
3570
|
-
//# sourceMappingURL=chunk-
|
|
3672
|
+
//# sourceMappingURL=chunk-K4WJUBEC.cjs.map
|
|
3673
|
+
//# sourceMappingURL=chunk-K4WJUBEC.cjs.map
|