scalemax 0.1.33 → 0.1.34

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.
@@ -17,6 +17,7 @@ const codexProfileId = 'scalemax-codex';
17
17
  const claudeProfileId = 'scalemax-claude';
18
18
  const deepSeekProfileId = 'scalemax-deepseek';
19
19
  const glmProfileId = 'scalemax-glm-5-2';
20
+ const rooMaximumOutputTokens = 384_000;
20
21
  function exactChatProfile(ctx, model) {
21
22
  if (model.trim().toLowerCase() === 'glm-5.2')
22
23
  return { name: glmProfileName, id: glmProfileId, model };
@@ -30,7 +31,10 @@ function positiveInteger(value, fallback) {
30
31
  function rooModelInfo(ctx, modelId) {
31
32
  const model = (ctx.models || []).find(candidate => candidate.id.trim() === modelId.trim());
32
33
  const contextWindow = positiveInteger(model?.context_window, 128_000);
33
- const maxTokens = Math.min(contextWindow, positiveInteger(model?.max_output_tokens, 4_096));
34
+ // Roo sends this value as max_completion_tokens. Keep it within the
35
+ // ScaleMax/OpenAI-compatible contract even if an upstream catalog
36
+ // accidentally reports an output window larger than the public API accepts.
37
+ const maxTokens = Math.min(rooMaximumOutputTokens, contextWindow, positiveInteger(model?.max_output_tokens, 4_096));
34
38
  const capabilities = model?.capabilities;
35
39
  return {
36
40
  maxTokens,
@@ -128,7 +132,13 @@ function handoff(ctx) {
128
132
  apiConfigs,
129
133
  modeApiConfigs: {}
130
134
  },
131
- globalSettings: {}
135
+ globalSettings: {
136
+ // Roo 3.54 still probes an obsolete bundled-ripgrep path while building
137
+ // automatic workspace snapshots on newer VS Code releases. Disabling
138
+ // only that snapshot prevents its recursive request loop; Roo's explicit
139
+ // read/search/edit tools remain available to the selected model.
140
+ maxWorkspaceFiles: 0
141
+ }
132
142
  }, null, 2) + '\n';
133
143
  }
134
144
  export async function configure(ctx) {
@@ -171,6 +181,9 @@ export async function verify(ctx) {
171
181
  if (settings[importSetting] !== importSettingValue || profile?.providerProfiles?.currentApiConfigName !== current.name) {
172
182
  throw new Error('Roo Code auto-import handoff is incomplete.');
173
183
  }
184
+ if (profile?.globalSettings?.maxWorkspaceFiles !== 0) {
185
+ throw new Error('Roo Code reliability settings are incomplete.');
186
+ }
174
187
  for (const expected of expectedProfiles) {
175
188
  const config = profile?.providerProfiles?.apiConfigs?.[expected.name];
176
189
  const expectedModelInfo = rooModelInfo(ctx, expected.model);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scalemax",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Universal ScaleMax installer for AI coding clients",
5
5
  "type": "module",
6
6
  "bin": {