scalemax 0.1.54 → 0.1.56

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.
@@ -26,6 +26,14 @@ export interface ClaudeToolsResult {
26
26
  }
27
27
  export declare function claudeDesktopConfigPath(root: string): string;
28
28
  export declare function claudeGithubToolPath(home: string): string;
29
+ /**
30
+ * Settings a ScaleMax-gateway Claude Desktop (3P) profile needs for Cowork's
31
+ * tools to work. Without `coworkEgressAllowedHosts` Cowork and Chat refuse
32
+ * EVERY Web Fetch (and the sandbox shell reaches no host); tool search keeps
33
+ * many connectors from filling the context. An allowlist the user already set
34
+ * is left alone.
35
+ */
36
+ export declare function scaleMaxManagedConfigPatch(current: Record<string, unknown>): Record<string, unknown>;
29
37
  /** Install and verify the bounded public-GitHub MCP server for Claude Desktop/Cowork. */
30
38
  export declare function installClaudeDesktopGithubTools(home: string, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv, runner?: ClaudeToolsRunner, nodePath?: string, assetPath?: string): Promise<ClaudeDesktopToolsResult>;
31
39
  /** Install Anthropic's official skills plugin and safe GitHub-read permissions for Claude Code. */
@@ -97,6 +97,19 @@ function isScaleMaxManagedGateway(value) {
97
97
  return false;
98
98
  }
99
99
  }
100
+ /**
101
+ * Settings a ScaleMax-gateway Claude Desktop (3P) profile needs for Cowork's
102
+ * tools to work. Without `coworkEgressAllowedHosts` Cowork and Chat refuse
103
+ * EVERY Web Fetch (and the sandbox shell reaches no host); tool search keeps
104
+ * many connectors from filling the context. An allowlist the user already set
105
+ * is left alone.
106
+ */
107
+ export function scaleMaxManagedConfigPatch(current) {
108
+ const next = { ...current, isLocalDevMcpEnabled: true, toolSearchEnabled: true };
109
+ if (current.coworkEgressAllowedHosts === undefined)
110
+ next.coworkEgressAllowedHosts = ['*'];
111
+ return next;
112
+ }
100
113
  async function managedThirdPartyConfigs(roots) {
101
114
  const files = [];
102
115
  for (const root of roots) {
@@ -164,7 +177,7 @@ export async function installClaudeDesktopGithubTools(home, platform = process.p
164
177
  const current = await parseJsonObject(file);
165
178
  if (!isScaleMaxManagedGateway(current))
166
179
  continue;
167
- managedConfigs.push({ file, current, next: { ...current, isLocalDevMcpEnabled: true, toolSearchEnabled: true } });
180
+ managedConfigs.push({ file, current, next: scaleMaxManagedConfigPatch(current) });
168
181
  }
169
182
  const oldScript = await fs.readFile(scriptPath, 'utf8').catch(() => undefined);
170
183
  const written = [];
@@ -24,9 +24,12 @@ function providerConfig(ctx) {
24
24
  tool_call: modelSupportsTools(ctx, modelId),
25
25
  limit: {
26
26
  context: metadata?.context_window || (modelId.startsWith('claude-') ? 200000 : 128000),
27
+ // The catalog's own output cap. A flat 4096 for every non-Opus model
28
+ // cut DeepSeek V4.1 Flash (393k) replies off at 4k in OpenCode; the
29
+ // gateway enforces the catalog figure, so publishing it is safe.
27
30
  output: hasLargeOutputCap(modelId)
28
31
  ? Math.min(metadata?.max_output_tokens || 128000, 128000)
29
- : Math.min(metadata?.max_output_tokens || 4096, 4096)
32
+ : metadata?.max_output_tokens || 4096
30
33
  }
31
34
  }];
32
35
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scalemax",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "Universal ScaleMax installer for AI coding clients",
5
5
  "type": "module",
6
6
  "bin": {