scalemax 0.1.54 → 0.1.55
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:
|
|
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 = [];
|