scalemax 0.1.52 → 0.1.53
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.
|
@@ -7,6 +7,8 @@ export declare const ROO_MAX_OUTPUT_TOKENS = 32768;
|
|
|
7
7
|
* a broken key. Same advice as the docs' Roo Code guide and troubleshooting page.
|
|
8
8
|
*/
|
|
9
9
|
export declare const ROO_CODE_MODE_TIP = "Run tasks in Code or Debug mode. Ask and Architect modes cannot run terminal commands, so Roo says \"terminal tools are not available\" there. Switch modes; nothing is wrong with your key.";
|
|
10
|
+
/** Roo Code 3.54's built-in mode slugs. */
|
|
11
|
+
export declare const ROO_BUILT_IN_MODES: readonly ["code", "architect", "ask", "debug", "orchestrator"];
|
|
10
12
|
export declare function configure(ctx: ConfigureContext): Promise<ConfigureResult>;
|
|
11
13
|
export declare function verify(ctx: ConfigureContext): Promise<ConfigureResult>;
|
|
12
14
|
export declare function remove(ctx: RemoveContext): Promise<ConfigureResult>;
|
|
@@ -30,6 +30,8 @@ export const ROO_MAX_OUTPUT_TOKENS = 32_768;
|
|
|
30
30
|
* a broken key. Same advice as the docs' Roo Code guide and troubleshooting page.
|
|
31
31
|
*/
|
|
32
32
|
export const ROO_CODE_MODE_TIP = 'Run tasks in Code or Debug mode. Ask and Architect modes cannot run terminal commands, so Roo says "terminal tools are not available" there. Switch modes; nothing is wrong with your key.';
|
|
33
|
+
/** Roo Code 3.54's built-in mode slugs. */
|
|
34
|
+
export const ROO_BUILT_IN_MODES = ['code', 'architect', 'ask', 'debug', 'orchestrator'];
|
|
33
35
|
function exactChatProfile(ctx, model) {
|
|
34
36
|
if (modelIdKey(model) === 'glm-5.2')
|
|
35
37
|
return { name: glmProfileName, id: glmProfileId, model };
|
|
@@ -147,7 +149,12 @@ function handoff(ctx) {
|
|
|
147
149
|
providerProfiles: {
|
|
148
150
|
currentApiConfigName: current.name,
|
|
149
151
|
apiConfigs,
|
|
150
|
-
|
|
152
|
+
// Roo remembers a profile PER MODE, and a fresh install binds Code mode
|
|
153
|
+
// to its own empty "default" (OpenRouter) profile on first activation.
|
|
154
|
+
// With an empty map the import selected ScaleMax for the current mode
|
|
155
|
+
// only, so the first switch to Code mode sent the task to OpenRouter
|
|
156
|
+
// ("401 Missing Authentication header"). Pin every built-in mode.
|
|
157
|
+
modeApiConfigs: Object.fromEntries(ROO_BUILT_IN_MODES.map(mode => [mode, current.id]))
|
|
151
158
|
},
|
|
152
159
|
globalSettings: {
|
|
153
160
|
// Roo 3.54 still probes an obsolete bundled-ripgrep path while building
|