@atlasharness/atlascode 0.1.77 → 0.1.78
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.
- package/dist/cli.js +13 -31
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -30058,11 +30058,7 @@ var init_permissionRuleParser = __esm(() => {
|
|
|
30058
30058
|
|
|
30059
30059
|
// src/permissions/mcpRuleNames.ts
|
|
30060
30060
|
function normalizeNameForMCP(name) {
|
|
30061
|
-
|
|
30062
|
-
if (name.startsWith(CLAUDEAI_SERVER_PREFIX)) {
|
|
30063
|
-
normalized = normalized.replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
30064
|
-
}
|
|
30065
|
-
return normalized;
|
|
30061
|
+
return name.replace(/[^a-zA-Z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
30066
30062
|
}
|
|
30067
30063
|
function mcpInfoFromString(toolString) {
|
|
30068
30064
|
const parts = toolString.split("__");
|
|
@@ -30082,7 +30078,6 @@ function buildMcpToolName(serverName, toolName) {
|
|
|
30082
30078
|
function getToolNameForPermissionCheck(tool) {
|
|
30083
30079
|
return tool.mcpInfo ? buildMcpToolName(tool.mcpInfo.serverName, tool.mcpInfo.toolName) : tool.name;
|
|
30084
30080
|
}
|
|
30085
|
-
var CLAUDEAI_SERVER_PREFIX = "claude.ai ";
|
|
30086
30081
|
|
|
30087
30082
|
// src/permissions/ruleMatching.ts
|
|
30088
30083
|
function permissionRuleSourceDisplayString(source) {
|
|
@@ -36515,11 +36510,7 @@ var init_killShellTasks = __esm(() => {
|
|
|
36515
36510
|
|
|
36516
36511
|
// src/engine/tools/mcp.ts
|
|
36517
36512
|
function normalizeNameForMCP2(name) {
|
|
36518
|
-
|
|
36519
|
-
if (name.startsWith(CLAUDEAI_SERVER_PREFIX2)) {
|
|
36520
|
-
normalized = normalized.replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
36521
|
-
}
|
|
36522
|
-
return normalized;
|
|
36513
|
+
return name.replace(/[^a-zA-Z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
36523
36514
|
}
|
|
36524
36515
|
function mcpInfoFromString2(toolString) {
|
|
36525
36516
|
const parts = toolString.split("__");
|
|
@@ -36601,7 +36592,7 @@ function buildMcpTool(conn, d) {
|
|
|
36601
36592
|
}
|
|
36602
36593
|
};
|
|
36603
36594
|
}
|
|
36604
|
-
var
|
|
36595
|
+
var MCP_MAX_RESULT_SIZE_CHARS = 1e5, PERMISSIVE_INPUT_SCHEMA;
|
|
36605
36596
|
var init_mcp = __esm(() => {
|
|
36606
36597
|
PERMISSIVE_INPUT_SCHEMA = {
|
|
36607
36598
|
type: "object",
|
|
@@ -124241,13 +124232,8 @@ var init_stringUtils2 = __esm(() => {
|
|
|
124241
124232
|
|
|
124242
124233
|
// src/tui/services/mcp/normalization.ts
|
|
124243
124234
|
function normalizeNameForMCP3(name) {
|
|
124244
|
-
|
|
124245
|
-
if (name.startsWith(CLAUDEAI_SERVER_PREFIX3)) {
|
|
124246
|
-
normalized = normalized.replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
124247
|
-
}
|
|
124248
|
-
return normalized;
|
|
124235
|
+
return name.replace(/[^a-zA-Z0-9_-]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
|
|
124249
124236
|
}
|
|
124250
|
-
var CLAUDEAI_SERVER_PREFIX3 = "claude.ai ";
|
|
124251
124237
|
|
|
124252
124238
|
// src/tui/services/mcp/mcpStringUtils.ts
|
|
124253
124239
|
function mcpInfoFromString3(toolString) {
|
|
@@ -133082,7 +133068,7 @@ function getEnvironmentKind() {
|
|
|
133082
133068
|
}
|
|
133083
133069
|
return null;
|
|
133084
133070
|
}
|
|
133085
|
-
var WIRE_ENVIRONMENT_KIND_CLOUD = "
|
|
133071
|
+
var WIRE_ENVIRONMENT_KIND_CLOUD = "cloud";
|
|
133086
133072
|
var init_outputsScanner = __esm(() => {
|
|
133087
133073
|
init_debug();
|
|
133088
133074
|
});
|
|
@@ -167506,7 +167492,7 @@ var init_coreSchemas = __esm(() => {
|
|
|
167506
167492
|
]).optional(),
|
|
167507
167493
|
isUsingOverage: boolean2().optional(),
|
|
167508
167494
|
surpassedThreshold: number2().optional()
|
|
167509
|
-
}).describe("Rate limit information
|
|
167495
|
+
}).describe("Rate limit information."));
|
|
167510
167496
|
SDKAssistantMessageSchema = lazySchema2(() => object({
|
|
167511
167497
|
type: literal("assistant"),
|
|
167512
167498
|
message: APIAssistantMessagePlaceholder(),
|
|
@@ -194533,8 +194519,6 @@ function describeMcpConfigFilePath2(scope) {
|
|
|
194533
194519
|
return "Dynamically configured";
|
|
194534
194520
|
case "enterprise":
|
|
194535
194521
|
return getEnterpriseMcpFilePath();
|
|
194536
|
-
case "claudeai":
|
|
194537
|
-
return "claude.ai";
|
|
194538
194522
|
default:
|
|
194539
194523
|
return scope;
|
|
194540
194524
|
}
|
|
@@ -194551,8 +194535,6 @@ function getScopeLabel2(scope) {
|
|
|
194551
194535
|
return "Dynamic config (from command line)";
|
|
194552
194536
|
case "enterprise":
|
|
194553
194537
|
return "Enterprise config (managed by your organization)";
|
|
194554
|
-
case "claudeai":
|
|
194555
|
-
return "claude.ai config";
|
|
194556
194538
|
default:
|
|
194557
194539
|
return scope;
|
|
194558
194540
|
}
|
|
@@ -320944,7 +320926,7 @@ var init_tools3 = __esm(() => {
|
|
|
320944
320926
|
});
|
|
320945
320927
|
|
|
320946
320928
|
// src/tui/utils/model/providers.ts
|
|
320947
|
-
function
|
|
320929
|
+
function isDefaultGateway() {
|
|
320948
320930
|
return !process.env.OPENAI_BASE_URL;
|
|
320949
320931
|
}
|
|
320950
320932
|
|
|
@@ -321005,7 +320987,7 @@ async function toolToAPISchema(tool, options) {
|
|
|
321005
320987
|
if (strictToolsEnabled && tool.strict === true && options.model && modelSupportsStructuredOutputs(options.model)) {
|
|
321006
320988
|
base.strict = true;
|
|
321007
320989
|
}
|
|
321008
|
-
if (
|
|
320990
|
+
if (isDefaultGateway() && (getFeatureValue_CACHED_MAY_BE_STALE("atlas_fgts", false) || isEnvTruthy2(process.env.ATLAS_ENABLE_FINE_GRAINED_TOOL_STREAMING))) {
|
|
321009
320991
|
base.eager_input_streaming = true;
|
|
321010
320992
|
}
|
|
321011
320993
|
cache.set(cacheKey, base);
|
|
@@ -326019,7 +326001,7 @@ function isToolSearchEnabledOptimistic2() {
|
|
|
326019
326001
|
}
|
|
326020
326002
|
return false;
|
|
326021
326003
|
}
|
|
326022
|
-
if (!process.env.ENABLE_TOOL_SEARCH && !
|
|
326004
|
+
if (!process.env.ENABLE_TOOL_SEARCH && !isDefaultGateway()) {
|
|
326023
326005
|
if (!loggedOptimistic2) {
|
|
326024
326006
|
loggedOptimistic2 = true;
|
|
326025
326007
|
logForDebugging3(`[ToolSearch:optimistic] disabled: OPENAI_BASE_URL=${process.env.OPENAI_BASE_URL} is not a first-party host. Set ENABLE_TOOL_SEARCH=true (or auto / auto:N) if your proxy forwards tool_reference blocks.`);
|
|
@@ -352148,11 +352130,11 @@ function buildAccountProperties() {
|
|
|
352148
352130
|
}
|
|
352149
352131
|
function buildAPIProviderProperties() {
|
|
352150
352132
|
const properties = [];
|
|
352151
|
-
const
|
|
352152
|
-
if (
|
|
352133
|
+
const baseUrl = process.env.OPENAI_BASE_URL;
|
|
352134
|
+
if (baseUrl) {
|
|
352153
352135
|
properties.push({
|
|
352154
352136
|
label: "API base URL",
|
|
352155
|
-
value:
|
|
352137
|
+
value: baseUrl
|
|
352156
352138
|
});
|
|
352157
352139
|
}
|
|
352158
352140
|
const proxyUrl = getProxyUrl();
|
|
@@ -420990,7 +420972,7 @@ function meetsAvailabilityRequirement2(cmd) {
|
|
|
420990
420972
|
case "claude-ai":
|
|
420991
420973
|
break;
|
|
420992
420974
|
case "console":
|
|
420993
|
-
if (
|
|
420975
|
+
if (isDefaultGateway())
|
|
420994
420976
|
return true;
|
|
420995
420977
|
break;
|
|
420996
420978
|
case "vendor":
|
package/package.json
CHANGED