impel-cli 0.17.1 → 0.17.3

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.
@@ -110,19 +110,21 @@ async function prepareTenantCli(config, tenant, io, binaries) {
110
110
  try {
111
111
  const profile = definition.ensure();
112
112
  const root = definition.root(profile);
113
+ if (!binaries[client]) {
114
+ clients[client] = {
115
+ status: "failed",
116
+ root,
117
+ error: `${client === "claude" ? "Claude Code" : "Codex"} CLI is not installed or discoverable`,
118
+ };
119
+ continue;
120
+ }
113
121
  await io.syncSkills({
114
122
  client,
115
123
  gatewayUrl,
116
124
  env: definition.env(profile),
117
125
  label: `Impel ${client === "claude" ? "Claude" : "Codex"} CLI (${tenant.id})`,
118
126
  });
119
- clients[client] = binaries[client]
120
- ? { status: "ready", root, error: null }
121
- : {
122
- status: "failed",
123
- root,
124
- error: `${client === "claude" ? "Claude Code" : "Codex"} CLI is not installed or discoverable`,
125
- };
127
+ clients[client] = { status: "ready", root, error: null };
126
128
  } catch (error) {
127
129
  clients[client] = {
128
130
  status: "failed",
@@ -133,7 +135,7 @@ async function prepareTenantCli(config, tenant, io, binaries) {
133
135
  }
134
136
 
135
137
  const agentProfiles = Object.entries(clients)
136
- .filter(([, client]) => client.root)
138
+ .filter(([, client]) => client.root && client.status === "ready")
137
139
  .map(([client, value]) => ({
138
140
  client,
139
141
  root: value.root,