@openacp/cli 2026.407.1 → 2026.408.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/dist/cli.js +4 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4879,15 +4879,6 @@ function stripPythonPackageVersion(pkg) {
|
|
|
4879
4879
|
async function installAgent(agent, store, progress, agentsDir) {
|
|
4880
4880
|
const agentKey = getAgentAlias(agent.id);
|
|
4881
4881
|
await progress?.onStart(agent.id, agent.name);
|
|
4882
|
-
await progress?.onStep("Checking requirements...");
|
|
4883
|
-
const depResult = checkDependencies(agent.id);
|
|
4884
|
-
if (!depResult.available) {
|
|
4885
|
-
const hints = depResult.missing.map((m) => ` ${m.label}: ${m.installHint}`).join("\n");
|
|
4886
|
-
const msg = `${agent.name} needs some tools installed first:
|
|
4887
|
-
${hints}`;
|
|
4888
|
-
await progress?.onError(msg);
|
|
4889
|
-
return { ok: false, agentKey, error: msg };
|
|
4890
|
-
}
|
|
4891
4882
|
const dist = resolveDistribution(agent);
|
|
4892
4883
|
if (!dist) {
|
|
4893
4884
|
const platformKey = getPlatformKey();
|
|
@@ -4901,6 +4892,7 @@ Install it with: pip install uv`;
|
|
|
4901
4892
|
await progress?.onError(msg, "pip install uv");
|
|
4902
4893
|
return { ok: false, agentKey, error: msg, hint: "pip install uv" };
|
|
4903
4894
|
}
|
|
4895
|
+
const depResult = checkDependencies(agent.id);
|
|
4904
4896
|
let binaryPath;
|
|
4905
4897
|
if (dist.type === "binary") {
|
|
4906
4898
|
try {
|
|
@@ -4916,8 +4908,9 @@ Install it with: pip install uv`;
|
|
|
4916
4908
|
const installed = buildInstalledAgent(agent.id, agent.name, agent.version, dist, binaryPath);
|
|
4917
4909
|
store.addAgent(agentKey, installed);
|
|
4918
4910
|
const setup = getAgentSetup(agent.id);
|
|
4911
|
+
const setupSteps = setup?.setupSteps ?? (depResult.missing?.map((m) => `${m.label}: ${m.installHint}`) ?? []);
|
|
4919
4912
|
await progress?.onSuccess(agent.name);
|
|
4920
|
-
return { ok: true, agentKey, setupSteps:
|
|
4913
|
+
return { ok: true, agentKey, setupSteps: setupSteps.length > 0 ? setupSteps : void 0 };
|
|
4921
4914
|
}
|
|
4922
4915
|
async function downloadAndExtract(agentId, archiveUrl, progress, agentsDir) {
|
|
4923
4916
|
const destDir = path15.join(agentsDir ?? DEFAULT_AGENTS_DIR, agentId);
|
|
@@ -22722,7 +22715,7 @@ var init_agent_catalog = __esm({
|
|
|
22722
22715
|
description: agent.description,
|
|
22723
22716
|
distribution: dist?.type ?? "binary",
|
|
22724
22717
|
installed: false,
|
|
22725
|
-
available: dist !== null
|
|
22718
|
+
available: dist !== null,
|
|
22726
22719
|
missingDeps: availability.missing?.map((m) => m.label)
|
|
22727
22720
|
});
|
|
22728
22721
|
}
|