@n1creator/openacp-cli 2026.712.5 → 2026.712.6
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 +11 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10266,15 +10266,23 @@ var init_agent_registry = __esm({
|
|
|
10266
10266
|
// src/plugins/api-server/routes/agents.ts
|
|
10267
10267
|
var agents_exports = {};
|
|
10268
10268
|
__export(agents_exports, {
|
|
10269
|
-
agentRoutes: () => agentRoutes
|
|
10269
|
+
agentRoutes: () => agentRoutes,
|
|
10270
|
+
redactAgentEnv: () => redactAgentEnv
|
|
10270
10271
|
});
|
|
10272
|
+
function redactAgentEnv(agent) {
|
|
10273
|
+
if (!agent.env) return agent;
|
|
10274
|
+
return {
|
|
10275
|
+
...agent,
|
|
10276
|
+
env: Object.fromEntries(Object.keys(agent.env).map((key) => [key, "***"]))
|
|
10277
|
+
};
|
|
10278
|
+
}
|
|
10271
10279
|
async function agentRoutes(app, deps) {
|
|
10272
10280
|
function loadAndListAgents() {
|
|
10273
10281
|
deps.core.agentCatalog.load();
|
|
10274
10282
|
const agents = deps.core.agentManager.getAvailableAgents();
|
|
10275
10283
|
const defaultAgent = deps.core.configManager.get().defaultAgent;
|
|
10276
10284
|
const agentsWithCaps = agents.map((a) => ({
|
|
10277
|
-
...a,
|
|
10285
|
+
...redactAgentEnv(a),
|
|
10278
10286
|
capabilities: getAgentCapabilities(a.name)
|
|
10279
10287
|
}));
|
|
10280
10288
|
return { agents: agentsWithCaps, default: defaultAgent };
|
|
@@ -10292,7 +10300,7 @@ async function agentRoutes(app, deps) {
|
|
|
10292
10300
|
throw new NotFoundError("AGENT_NOT_FOUND", `Agent "${name}" not found`);
|
|
10293
10301
|
}
|
|
10294
10302
|
return {
|
|
10295
|
-
...agent,
|
|
10303
|
+
...redactAgentEnv(agent),
|
|
10296
10304
|
key: name,
|
|
10297
10305
|
capabilities: getAgentCapabilities(name)
|
|
10298
10306
|
};
|