@swmansion/argent 0.8.0 → 0.8.1
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/bin/ax-service +0 -0
- package/dist/argent-android-devtools-0.1.0.apk +0 -0
- package/dist/installer.mjs +13 -12
- package/dist/mcp-server.mjs +2159 -665
- package/dist/tool-server.cjs +16467 -5362
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/manifest.json +7 -0
- package/package.json +2 -1
package/bin/ax-service
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/installer.mjs
CHANGED
|
@@ -13020,16 +13020,17 @@ function getAvailableToolIds() {
|
|
|
13020
13020
|
return tools.map((t) => t.id);
|
|
13021
13021
|
}
|
|
13022
13022
|
function buildMcpEntry() {
|
|
13023
|
-
const logFile = path2.join(homedir2(), ".argent", "mcp-calls.log");
|
|
13024
13023
|
return {
|
|
13025
13024
|
command: MCP_BINARY_NAME,
|
|
13026
|
-
args: ["mcp"]
|
|
13027
|
-
env: { ARGENT_MCP_LOG: logFile }
|
|
13025
|
+
args: ["mcp"]
|
|
13028
13026
|
};
|
|
13029
13027
|
}
|
|
13030
13028
|
function getMcpEntry() {
|
|
13031
13029
|
return buildMcpEntry();
|
|
13032
13030
|
}
|
|
13031
|
+
function hasEnv(entry) {
|
|
13032
|
+
return entry.env != null && Object.keys(entry.env).length > 0;
|
|
13033
|
+
}
|
|
13033
13034
|
function removeDirIfEmpty(dirPath) {
|
|
13034
13035
|
try {
|
|
13035
13036
|
if (!fs2.existsSync(dirPath)) return;
|
|
@@ -13091,7 +13092,7 @@ var cursorAdapter = {
|
|
|
13091
13092
|
servers[MCP_SERVER_KEY] = {
|
|
13092
13093
|
command: entry.command,
|
|
13093
13094
|
args: entry.args,
|
|
13094
|
-
env: entry.env
|
|
13095
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13095
13096
|
};
|
|
13096
13097
|
config.mcpServers = servers;
|
|
13097
13098
|
writeJson(configPath, config);
|
|
@@ -13146,7 +13147,7 @@ var claudeAdapter = {
|
|
|
13146
13147
|
type: "stdio",
|
|
13147
13148
|
command: entry.command,
|
|
13148
13149
|
args: entry.args,
|
|
13149
|
-
env: entry.env
|
|
13150
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13150
13151
|
};
|
|
13151
13152
|
config.mcpServers = servers;
|
|
13152
13153
|
writeJson(configPath, config);
|
|
@@ -13185,7 +13186,7 @@ var vscodeAdapter = {
|
|
|
13185
13186
|
type: "stdio",
|
|
13186
13187
|
command: entry.command,
|
|
13187
13188
|
args: entry.args,
|
|
13188
|
-
env: entry.env
|
|
13189
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13189
13190
|
};
|
|
13190
13191
|
config.servers = servers;
|
|
13191
13192
|
writeJson(configPath, config);
|
|
@@ -13217,7 +13218,7 @@ var windsurfAdapter = {
|
|
|
13217
13218
|
servers[MCP_SERVER_KEY] = {
|
|
13218
13219
|
command: entry.command,
|
|
13219
13220
|
args: entry.args,
|
|
13220
|
-
env: entry.env
|
|
13221
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13221
13222
|
};
|
|
13222
13223
|
config.mcpServers = servers;
|
|
13223
13224
|
writeJson(configPath, config);
|
|
@@ -13272,7 +13273,7 @@ var zedAdapter = {
|
|
|
13272
13273
|
source: "custom",
|
|
13273
13274
|
command: entry.command,
|
|
13274
13275
|
args: entry.args,
|
|
13275
|
-
env: entry.env
|
|
13276
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13276
13277
|
});
|
|
13277
13278
|
},
|
|
13278
13279
|
remove(configPath) {
|
|
@@ -13317,7 +13318,7 @@ var geminiAdapter = {
|
|
|
13317
13318
|
servers[MCP_SERVER_KEY] = {
|
|
13318
13319
|
command: entry.command,
|
|
13319
13320
|
args: entry.args,
|
|
13320
|
-
env: entry.env
|
|
13321
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13321
13322
|
};
|
|
13322
13323
|
config.mcpServers = servers;
|
|
13323
13324
|
writeJson(configPath, config);
|
|
@@ -13374,7 +13375,7 @@ var codexAdapter = {
|
|
|
13374
13375
|
servers[MCP_SERVER_KEY] = {
|
|
13375
13376
|
command: entry.command,
|
|
13376
13377
|
args: entry.args,
|
|
13377
|
-
env: entry.env
|
|
13378
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13378
13379
|
};
|
|
13379
13380
|
config.mcp_servers = servers;
|
|
13380
13381
|
writeToml(configPath, config);
|
|
@@ -13448,7 +13449,7 @@ var hermesAdapter = {
|
|
|
13448
13449
|
doc.setIn(["mcp_servers", MCP_SERVER_KEY], {
|
|
13449
13450
|
command: entry.command,
|
|
13450
13451
|
args: entry.args,
|
|
13451
|
-
env: entry.env
|
|
13452
|
+
...hasEnv(entry) ? { env: entry.env } : {}
|
|
13452
13453
|
});
|
|
13453
13454
|
writeYaml(configPath, doc);
|
|
13454
13455
|
},
|
|
@@ -13502,7 +13503,7 @@ var openCodeAdapter = {
|
|
|
13502
13503
|
type: "local",
|
|
13503
13504
|
command: [entry.command, ...entry.args],
|
|
13504
13505
|
enabled: true,
|
|
13505
|
-
environment: entry.env
|
|
13506
|
+
...hasEnv(entry) ? { environment: entry.env } : {}
|
|
13506
13507
|
});
|
|
13507
13508
|
},
|
|
13508
13509
|
remove(configPath) {
|