@openacp/cli 2026.407.1 → 2026.408.2

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/index.js CHANGED
@@ -1306,15 +1306,6 @@ function stripPythonPackageVersion(pkg) {
1306
1306
  async function installAgent(agent, store, progress, agentsDir) {
1307
1307
  const agentKey = getAgentAlias(agent.id);
1308
1308
  await progress?.onStart(agent.id, agent.name);
1309
- await progress?.onStep("Checking requirements...");
1310
- const depResult = checkDependencies(agent.id);
1311
- if (!depResult.available) {
1312
- const hints = depResult.missing.map((m) => ` ${m.label}: ${m.installHint}`).join("\n");
1313
- const msg = `${agent.name} needs some tools installed first:
1314
- ${hints}`;
1315
- await progress?.onError(msg);
1316
- return { ok: false, agentKey, error: msg };
1317
- }
1318
1309
  const dist = resolveDistribution(agent);
1319
1310
  if (!dist) {
1320
1311
  const platformKey = getPlatformKey();
@@ -1328,6 +1319,7 @@ Install it with: pip install uv`;
1328
1319
  await progress?.onError(msg, "pip install uv");
1329
1320
  return { ok: false, agentKey, error: msg, hint: "pip install uv" };
1330
1321
  }
1322
+ const depResult = checkDependencies(agent.id);
1331
1323
  let binaryPath;
1332
1324
  if (dist.type === "binary") {
1333
1325
  try {
@@ -1343,8 +1335,9 @@ Install it with: pip install uv`;
1343
1335
  const installed = buildInstalledAgent(agent.id, agent.name, agent.version, dist, binaryPath);
1344
1336
  store.addAgent(agentKey, installed);
1345
1337
  const setup = getAgentSetup(agent.id);
1338
+ const setupSteps = setup?.setupSteps ?? (depResult.missing?.map((m) => `${m.label}: ${m.installHint}`) ?? []);
1346
1339
  await progress?.onSuccess(agent.name);
1347
- return { ok: true, agentKey, setupSteps: setup?.setupSteps };
1340
+ return { ok: true, agentKey, setupSteps: setupSteps.length > 0 ? setupSteps : void 0 };
1348
1341
  }
1349
1342
  async function downloadAndExtract(agentId, archiveUrl, progress, agentsDir) {
1350
1343
  const destDir = path12.join(agentsDir ?? DEFAULT_AGENTS_DIR, agentId);
@@ -11372,6 +11365,12 @@ function resolveAgentCommand(cmd) {
11372
11365
  }
11373
11366
  } catch {
11374
11367
  }
11368
+ if (cmd === "npx" || cmd === "uvx") {
11369
+ const sibling = path7.join(path7.dirname(process.execPath), cmd);
11370
+ if (fs8.existsSync(sibling)) {
11371
+ return { command: sibling, args: [] };
11372
+ }
11373
+ }
11375
11374
  return { command: cmd, args: [] };
11376
11375
  }
11377
11376
  var AgentInstance = class _AgentInstance extends TypedEmitter {
@@ -14682,7 +14681,7 @@ var AgentCatalog = class {
14682
14681
  description: agent.description,
14683
14682
  distribution: dist?.type ?? "binary",
14684
14683
  installed: false,
14685
- available: dist !== null && availability.available,
14684
+ available: dist !== null,
14686
14685
  missingDeps: availability.missing?.map((m) => m.label)
14687
14686
  });
14688
14687
  }