@floomhq/skills 1.1.1 → 1.1.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
@@ -4377,7 +4377,7 @@ async function getMachineIdentity() {
4377
4377
  }
4378
4378
 
4379
4379
  // src/version.ts
4380
- var VERSION = "1.1.1";
4380
+ var VERSION = "1.1.2";
4381
4381
 
4382
4382
  // src/api-client.ts
4383
4383
  var DEFAULT_TIMEOUT_MS = 2e4;
@@ -7967,19 +7967,29 @@ async function installCommand(input, rawOpts = {}) {
7967
7967
  const planMode = isPlanMode(flags);
7968
7968
  const wantAll = flags.allAgents;
7969
7969
  let selectedAgents = flags.agents.length > 0 ? flags.agents : wantAll ? detected : [];
7970
+ let autoSelectedAgent = null;
7971
+ if (!planMode && selectedAgents.length === 0 && detected.length === 1) {
7972
+ autoSelectedAgent = detected[0];
7973
+ selectedAgents = [autoSelectedAgent];
7974
+ }
7970
7975
  if (!planMode && selectedAgents.length === 0) {
7971
7976
  if (!isInteractive()) {
7977
+ const suggested = detected[0];
7978
+ const exactCommand = cliCmd(`install ${input.trim()} --agent ${suggested}`);
7972
7979
  if (json) {
7973
- emitJson({ share: shareInfo(shareData), error: `${cliCmd("install")} needs to know where to install`, next: [cliCmd("install <link> --all-agents --yes")] });
7980
+ emitJson({
7981
+ share: shareInfo(shareData),
7982
+ error: `${cliCmd("install")} found ${detected.length} agents and needs to know which one`,
7983
+ detectedAgents: detected,
7984
+ next: [exactCommand, cliCmd(`install ${input.trim()} --all-agents --yes`)]
7985
+ });
7974
7986
  } else {
7975
- log.err(`${cliCmd("install")} needs to know where to install.`);
7987
+ log.err(`Found ${detected.length} agents on this machine: ${detected.map((a) => AGENT_LABELS[a]).join(", ")}.`);
7976
7988
  log.blank();
7977
- log.info("Pass --agent <name>, repeat --agent, or use --all-agents.");
7989
+ log.info("Pass --agent to say which one, or --all-agents for every one.");
7978
7990
  log.blank();
7979
- log.info("Examples:");
7980
- log.command(cliCmd("install <link> --agent claude --yes"));
7981
- log.command(cliCmd("install <link> --agent claude,codex --yes"));
7982
- log.command(cliCmd("install <link> --all-agents --yes"));
7991
+ log.command(exactCommand);
7992
+ log.command(cliCmd(`install ${input.trim()} --all-agents --yes`));
7983
7993
  }
7984
7994
  process.exitCode = 2;
7985
7995
  return;
@@ -8076,6 +8086,11 @@ async function installCommand(input, rawOpts = {}) {
8076
8086
  log.heading("Shared skill");
8077
8087
  log.info(` ${shareData.skill.title} ${shareData.skill.version.display}`);
8078
8088
  log.info(` From: ${shareData.skill.owner.name}`);
8089
+ if (autoSelectedAgent) {
8090
+ log.blank();
8091
+ log.info(`${AGENT_LABELS[autoSelectedAgent]} is the only agent on this machine, so it is the one being installed into.`);
8092
+ log.info(`Pass --agent to choose a different one.`);
8093
+ }
8079
8094
  log.blank();
8080
8095
  }
8081
8096
  const results = [];
@@ -8096,6 +8111,7 @@ async function installCommand(input, rawOpts = {}) {
8096
8111
  mode: "apply",
8097
8112
  applied: true,
8098
8113
  hasFailures: results.some((r) => !r.ok),
8114
+ autoSelectedAgent,
8099
8115
  agents: results.map((r) => ({
8100
8116
  name: r.agent,
8101
8117
  scope: "global",
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.1.1";
1
+ export const VERSION = "1.1.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/skills",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Floom Skills CLI \u2014 publish, install, sync, and share AI agent skills.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://skills.floom.dev",