feat: prepare deep search production runtime
Memind CI / Test, build, and release guards (pull_request) Successful in 4m4s
Memind CI / Test, build, and release guards (pull_request) Successful in 4m4s
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
clampUserCapabilities,
|
||||
DEFAULT_USER_CAPABILITIES,
|
||||
normalizeCapabilityPatch,
|
||||
resolveMindSearchMcpEndpoint,
|
||||
resolveSandboxMcpNodeExecPath,
|
||||
resolveSandboxMcpServerPath,
|
||||
resolveSandboxMcpUserDataPgUrl,
|
||||
@@ -53,6 +54,17 @@ test('resolveSandboxMcpUserDataPgUrl preserves native URLs and honors an explici
|
||||
);
|
||||
});
|
||||
|
||||
test('resolveMindSearchMcpEndpoint rewrites host loopback for goosed containers', () => {
|
||||
assert.equal(
|
||||
resolveMindSearchMcpEndpoint('http://127.0.0.1:20080/search'),
|
||||
'http://host.docker.internal:20080/search',
|
||||
);
|
||||
assert.equal(
|
||||
resolveMindSearchMcpEndpoint('https://search.internal/query'),
|
||||
'https://search.internal/query',
|
||||
);
|
||||
});
|
||||
|
||||
test('resolveSandboxMcpNodeExecPath honors container-path override without host fs checks', () => {
|
||||
assert.equal(resolveSandboxMcpNodeExecPath('/usr/local/bin/node'), '/usr/local/bin/node');
|
||||
assert.equal(resolveSandboxMcpNodeExecPath(''), process.execPath);
|
||||
|
||||
Reference in New Issue
Block a user