opencode-agents 1.1.2 → 1.1.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.
package/dist/index.js CHANGED
@@ -27157,25 +27157,27 @@ async function addCommand(source, options2) {
27157
27157
  if (isGlobal === void 0) {
27158
27158
  isGlobal = await promptInstallLocation();
27159
27159
  }
27160
- R2.step(import_picocolors3.default.cyan(`Source: ${import_picocolors3.default.dim(`https://github.com/${source}.git`)}`));
27160
+ console.log(`${S_STEP_ACTIVE} ${import_picocolors3.default.cyan("Source:")} ${import_picocolors3.default.dim(`https://github.com/${source}.git`)}`);
27161
+ console.log(S_BAR);
27161
27162
  const s = bt2();
27162
27163
  s.start("Cloning repository...");
27163
27164
  let tempDir;
27164
27165
  try {
27165
27166
  tempDir = await fetchSource2(source);
27166
- s.stop(import_picocolors3.default.green("\u2713 Repository cloned"));
27167
+ s.stop(`${import_picocolors3.default.green("\u2713")} Repository cloned`);
27167
27168
  } catch (err) {
27168
- s.stop(import_picocolors3.default.red("\u2717 Failed to clone repository"));
27169
+ s.stop(`${import_picocolors3.default.red("\u2717")} Failed to clone repository`);
27169
27170
  R2.error(`Failed to fetch source: ${err instanceof Error ? err.message : String(err)}`);
27170
27171
  process.exit(1);
27171
27172
  }
27173
+ console.log(S_BAR);
27172
27174
  s.start("Discovering agents...");
27173
27175
  let agents;
27174
27176
  try {
27175
27177
  agents = await discoverFromDirectory(tempDir);
27176
- s.stop(import_picocolors3.default.green(`\u2713 Found ${agents.length} agent(s)`));
27178
+ s.stop(`${import_picocolors3.default.green("\u2713")} Found ${agents.length} agent(s)`);
27177
27179
  } catch (err) {
27178
- s.stop(import_picocolors3.default.red("\u2717 Failed to discover agents"));
27180
+ s.stop(`${import_picocolors3.default.red("\u2717")} Failed to discover agents`);
27179
27181
  R2.error(`Failed to discover agents: ${err instanceof Error ? err.message : String(err)}`);
27180
27182
  process.exit(1);
27181
27183
  }
@@ -27183,6 +27185,7 @@ async function addCommand(source, options2) {
27183
27185
  R2.error("No agents found in the source");
27184
27186
  process.exit(1);
27185
27187
  }
27188
+ console.log(S_BAR);
27186
27189
  let selectedAgents;
27187
27190
  if (options2.yes) {
27188
27191
  selectedAgents = agents;
@@ -27193,15 +27196,14 @@ async function addCommand(source, options2) {
27193
27196
  Ne("No agents selected, aborting");
27194
27197
  process.exit(0);
27195
27198
  }
27196
- console.log();
27197
- console.log(import_picocolors3.default.dim(` ${S_BRANCH} Selected agents:`));
27199
+ console.log(`${S_BAR} ${S_BRANCH} ${import_picocolors3.default.dim("Selected:")}`);
27198
27200
  selectedAgents.forEach((agent, index) => {
27199
27201
  const isLast = index === selectedAgents.length - 1;
27200
27202
  const prefix = isLast ? S_BRANCH_END : S_BRANCH;
27201
27203
  const name = agent.agent.name || basename4(agent.path, ".md");
27202
- console.log(` ${S_BAR} ${prefix} ${S_BULLET} ${import_picocolors3.default.bold(name)}`);
27204
+ console.log(`${S_BAR} ${isLast ? " " : S_BAR} ${prefix} ${S_BULLET} ${import_picocolors3.default.bold(name)}`);
27203
27205
  });
27204
- console.log();
27206
+ console.log(S_BAR);
27205
27207
  s.start("Installing agents...");
27206
27208
  try {
27207
27209
  let platforms;
@@ -27221,13 +27223,13 @@ async function addCommand(source, options2) {
27221
27223
  selectedAgents
27222
27224
  };
27223
27225
  await installAgent(installOptions);
27224
- s.stop(import_picocolors3.default.green(`\u2713 Successfully installed ${selectedAgents.length} agent(s)`));
27226
+ s.stop(`${import_picocolors3.default.green("\u2713")} Successfully installed ${selectedAgents.length} agent(s)`);
27225
27227
  console.log();
27226
27228
  console.log(import_picocolors3.default.dim(" Next steps:"));
27227
27229
  console.log(import_picocolors3.default.dim(` npx opencode-agents list View installed agents`));
27228
27230
  console.log();
27229
27231
  } catch (err) {
27230
- s.stop(import_picocolors3.default.red("\u2717 Installation failed"));
27232
+ s.stop(`${import_picocolors3.default.red("\u2717")} Installation failed`);
27231
27233
  R2.error(`Failed to install agent: ${err instanceof Error ? err.message : String(err)}`);
27232
27234
  process.exit(1);
27233
27235
  } finally {