@floomhq/skills 1.0.0 → 1.0.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/index.js CHANGED
@@ -3071,7 +3071,7 @@ import { mkdir as mkdir2, readFile as readFile3, writeFile, chmod } from "node:f
3071
3071
  // src/lib/invocation.ts
3072
3072
  var NPX_HINTS = ["_npx", "npm-cache/_npx", "npm-cache\\_npx", ".npm/_npx"];
3073
3073
  var NPX_INVOCATION = "npx -y @floomhq/skills";
3074
- var GLOBAL_INVOCATION = "floom";
3074
+ var GLOBAL_INVOCATION = "floom-skills";
3075
3075
  var cached = null;
3076
3076
  function detect() {
3077
3077
  const override = process.env.FLOOM_INVOKED_AS;
@@ -3089,7 +3089,9 @@ function cliInvocation() {
3089
3089
  return cached;
3090
3090
  }
3091
3091
  function cliCmd(cmd) {
3092
- const stripped = cmd.startsWith("floom ") ? cmd.slice("floom ".length) : cmd;
3092
+ let stripped = cmd;
3093
+ if (stripped.startsWith("floom-skills ")) stripped = stripped.slice("floom-skills ".length);
3094
+ else if (stripped.startsWith("floom ")) stripped = stripped.slice("floom ".length);
3093
3095
  return `${cliInvocation()} ${stripped}`;
3094
3096
  }
3095
3097
 
@@ -3098,7 +3100,7 @@ var CONFIG_DIR = join3(homedir2(), ".floom");
3098
3100
  var AUTH_FILE = join3(CONFIG_DIR, "auth.json");
3099
3101
  var DEFAULT_APP_URL = "https://skills.floom.dev";
3100
3102
  var DEFAULT_API_URL = "https://skills.floom.dev/api/v1";
3101
- var TRUSTED_API_HOSTS = /* @__PURE__ */ new Set(["floom.dev", "skills.floom.dev", "try.floom.dev"]);
3103
+ var TRUSTED_API_HOSTS = /* @__PURE__ */ new Set(["skills.floom.dev", "floom.dev", "try.floom.dev"]);
3102
3104
  var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]);
3103
3105
  function devModeEnabled() {
3104
3106
  const v = process.env.FLOOM_DEV;
@@ -3125,8 +3127,7 @@ function trustedApiUrlOrDefault(apiUrl) {
3125
3127
  if (!isTrustedApiUrl(trimmed)) return DEFAULT_API_URL;
3126
3128
  try {
3127
3129
  const hostname2 = new URL(trimmed).hostname;
3128
- if (hostname2 === "floom.dev" || hostname2 === "try.floom.dev") return DEFAULT_API_URL;
3129
- if (hostname2 === "skills.floom.dev") return `${new URL(trimmed).origin}/api/v1`;
3130
+ if (TRUSTED_API_HOSTS.has(hostname2)) return DEFAULT_API_URL;
3130
3131
  } catch {
3131
3132
  return DEFAULT_API_URL;
3132
3133
  }
@@ -3289,7 +3290,7 @@ async function getMachineIdentity() {
3289
3290
  }
3290
3291
 
3291
3292
  // src/version.ts
3292
- var VERSION = "3.0.4";
3293
+ var VERSION = "1.0.1";
3293
3294
 
3294
3295
  // src/api-client.ts
3295
3296
  var DEFAULT_TIMEOUT_MS = 2e4;
@@ -3336,7 +3337,7 @@ async function readLimitedText(res, limitBytes = MAX_ERROR_BODY_BYTES) {
3336
3337
  return truncated ? `${text}
3337
3338
  [truncated]` : text;
3338
3339
  }
3339
- var HELP = "https://floom.dev/docs#troubleshooting";
3340
+ var HELP = "https://skills.floom.dev/docs#troubleshooting";
3340
3341
  function friendlyApiErrorMessage(code, raw, status) {
3341
3342
  if (code === "AUTH_REQUIRED" || code === "TOKEN_INVALID" || status === 401) {
3342
3343
  return `Not signed in.
@@ -3384,7 +3385,7 @@ async function api(path, opts = {}) {
3384
3385
  "AUTH_REQUIRED",
3385
3386
  `Not signed in.
3386
3387
  Run: ${cliCmd("login")}
3387
- More help: https://floom.dev/docs#troubleshooting`
3388
+ More help: https://skills.floom.dev/docs#troubleshooting`
3388
3389
  );
3389
3390
  }
3390
3391
  let lastError = null;
@@ -3420,7 +3421,7 @@ async function api(path, opts = {}) {
3420
3421
  "INTERNAL_ERROR",
3421
3422
  `Cannot reach Floom (${base}): ${e.message}
3422
3423
  Check your internet connection or firewall. If on a corporate network, you may need to set a proxy: npm config set proxy http://...
3423
- More help: https://floom.dev/docs#troubleshooting`,
3424
+ More help: https://skills.floom.dev/docs#troubleshooting`,
3424
3425
  { apiUrl: base }
3425
3426
  );
3426
3427
  continue;
@@ -3774,7 +3775,7 @@ async function loginCommand() {
3774
3775
  ]);
3775
3776
  if (cliCmd("login").startsWith("npx ")) {
3776
3777
  log.blank();
3777
- log.info(" Tip: install once with npm i -g @floomhq/skills and just type `floom` after that.");
3778
+ log.info(" Tip: install once with npm i -g @floomhq/skills and just type `floom-skills` after that.");
3778
3779
  }
3779
3780
  return;
3780
3781
  }
@@ -3795,7 +3796,7 @@ async function loginCommand() {
3795
3796
  log.err("Login timed out \u2014 the browser window expired.");
3796
3797
  printNext([
3797
3798
  { command: cliCmd("login"), description: "try again" },
3798
- { command: "More help: https://floom.dev/docs#troubleshooting" }
3799
+ { command: "More help: https://skills.floom.dev/docs#troubleshooting" }
3799
3800
  ]);
3800
3801
  process.exitCode = 1;
3801
3802
  }
@@ -4013,9 +4014,9 @@ async function readManifest(root) {
4013
4014
  if (err.code === "ENOENT") return null;
4014
4015
  if (error instanceof SyntaxError || error instanceof ZodError) {
4015
4016
  throw new Error(
4016
- `Corrupted manifest at ${manifestPath(root)}. Remove that file or run floom pull after backing up local edits.
4017
+ `Corrupted manifest at ${manifestPath(root)}. Remove that file or run floom-skills pull after backing up local edits.
4017
4018
  Run: rm ${manifestPath(root)} && npx -y @floomhq/skills pull
4018
- More help: https://floom.dev/docs#troubleshooting`
4019
+ More help: https://skills.floom.dev/docs#troubleshooting`
4019
4020
  );
4020
4021
  }
4021
4022
  throw error;
@@ -7301,7 +7302,7 @@ async function doctorCommand(opts = {}) {
7301
7302
  }
7302
7303
  }
7303
7304
  if (authOk) {
7304
- checks.push({ name: "api", status: "pass", message: "https://floom.dev reachable", fix: null });
7305
+ checks.push({ name: "api", status: "pass", message: "https://skills.floom.dev reachable", fix: null });
7305
7306
  } else {
7306
7307
  checks.push({ name: "api", status: "warn", message: "skipped \u2014 sign in first", fix: cliCmd("login") });
7307
7308
  }
@@ -8117,8 +8118,8 @@ var COMMON_FLAGS = `Common flags
8117
8118
  --no-secret-check with push, skip the pre-publish secret scan`;
8118
8119
  function printGroupedHelp() {
8119
8120
  const out2 = process.stdout;
8120
- out2.write("\n" + chalk7.bold("Usage: floom [command]") + "\n\n");
8121
- out2.write(` ${chalk7.cyan.bold("floom")} your dashboard \u2014 Library and agent status at a glance
8121
+ out2.write("\n" + chalk7.bold("Usage: floom-skills [command]") + "\n\n");
8122
+ out2.write(` ${chalk7.cyan.bold("floom-skills")} your dashboard \u2014 Library and agent status at a glance
8122
8123
  `);
8123
8124
  const allNames = GROUPS.flatMap((g) => g.rows.map((r) => r.name));
8124
8125
  const width = Math.max(...allNames.map((n) => n.length), 14);
@@ -8131,7 +8132,7 @@ function printGroupedHelp() {
8131
8132
  }
8132
8133
  }
8133
8134
  out2.write("\n" + COMMON_FLAGS + "\n");
8134
- out2.write("\n" + chalk7.dim("More help: https://floom.dev/docs") + "\n");
8135
+ out2.write("\n" + chalk7.dim("More help: https://skills.floom.dev/docs") + "\n");
8135
8136
  }
8136
8137
 
8137
8138
  // src/index.ts
@@ -8142,7 +8143,7 @@ function aliasNotice(oldName, newName) {
8142
8143
  log.notice(`"${oldName}" is now "${newName}" \u2014 both work for now.`);
8143
8144
  }
8144
8145
  var program = new Command();
8145
- program.name("floom").description("Floom: one shared skill library, synced across every AI agent.").version(VERSION).addHelpCommand(false).helpOption("-h, --help", "show grouped help").allowExcessArguments(true).showSuggestionAfterError(true).showHelpAfterError(false);
8146
+ program.name("floom-skills").description("Floom Skills: one shared skill library, synced across every AI agent.").version(VERSION).addHelpCommand(false).helpOption("-h, --help", "show grouped help").allowExcessArguments(true).showSuggestionAfterError(true).showHelpAfterError(false);
8146
8147
  program.helpInformation = function helpInformation() {
8147
8148
  printGroupedHelp();
8148
8149
  return "";
@@ -8157,8 +8158,8 @@ program.action(async (_opts, cmd) => {
8157
8158
  log.err(`unknown command: ${unknown}`);
8158
8159
  const knownNames = program.commands.map((c) => c.name());
8159
8160
  const suggestion = closestCommand(unknown, knownNames);
8160
- if (suggestion) log.info(`Did you mean: floom ${suggestion}?`);
8161
- log.info("Run: floom --help");
8161
+ if (suggestion) log.info(`Did you mean: floom-skills ${suggestion}?`);
8162
+ log.info("Run: floom-skills --help");
8162
8163
  process.exitCode = 2;
8163
8164
  return;
8164
8165
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.0";
1
+ export const VERSION = "1.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/skills",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "type": "module",
19
19
  "bin": {
20
- "floom": "dist/index.js"
20
+ "floom-skills": "dist/index.js"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsc -p tsconfig.typecheck.json --noEmit && node scripts/build-bundle.mjs",