skills 1.5.13 → 1.5.14

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +12 -15
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3147,8 +3147,9 @@ async function tryBlobInstall(ownerRepo, options = {}) {
3147
3147
  tree
3148
3148
  };
3149
3149
  }
3150
- var version$1 = "1.5.13";
3150
+ var version$1 = "1.5.14";
3151
3151
  const isCancelled$1 = (value) => typeof value === "symbol";
3152
+ const EVE_AGENT_LABEL = "eve agent";
3152
3153
  async function isSourcePrivate(source) {
3153
3154
  const ownerRepo = parseOwnerRepo(source);
3154
3155
  if (!ownerRepo) return false;
@@ -3220,6 +3221,13 @@ function formatList$1(items, maxShow = 5) {
3220
3221
  const remaining = items.length - maxShow;
3221
3222
  return `${shown.join(", ")} +${remaining} more`;
3222
3223
  }
3224
+ function formatSkillPromptSubject(skills) {
3225
+ const namedSubject = formatList$1(skills.map((skill) => import_picocolors.default.cyan(getSkillDisplayName(skill))), 3);
3226
+ return stripTerminalEscapes(namedSubject).length <= 80 ? namedSubject : `${skills.length} selected skills`;
3227
+ }
3228
+ function formatEveInstallPromptMessage(skills) {
3229
+ return `Detected an eve project. Install ${formatSkillPromptSubject(skills)} for your ${EVE_AGENT_LABEL} to use?`;
3230
+ }
3223
3231
  function splitAgentsByType(agentTypes) {
3224
3232
  const universal = [];
3225
3233
  const symlinked = [];
@@ -3687,16 +3695,6 @@ async function runAdd(args, options = {}) {
3687
3695
  if (!ownerRepo) return Promise.resolve(null);
3688
3696
  return isRepoPrivate(ownerRepo.owner, ownerRepo.repo).catch(() => null);
3689
3697
  })();
3690
- if (ownerRepoRaw?.split("/")[0]?.toLowerCase() === "openclaw" && !options.dangerouslyAcceptOpenclawRisks) {
3691
- console.log();
3692
- M.warn(import_picocolors.default.yellow(import_picocolors.default.bold("⚠ OpenClaw skills are unverified community submissions.")));
3693
- M.message(import_picocolors.default.yellow("This source contains user-submitted skills that have not been reviewed for safety or quality."));
3694
- M.message(import_picocolors.default.yellow("Skills run with full agent permissions and could be malicious."));
3695
- console.log();
3696
- M.message(`If you understand the risks, re-run with:\n\n ${import_picocolors.default.cyan(`npx skills add ${source} --dangerously-accept-openclaw-risks`)}\n`);
3697
- Se(import_picocolors.default.red("Installation blocked"));
3698
- process.exit(1);
3699
- }
3700
3698
  if (parsed.type === "well-known") {
3701
3699
  await handleWellKnownSkills(source, parsed.url, options, spinner);
3702
3700
  return;
@@ -3890,7 +3888,7 @@ async function runAdd(args, options = {}) {
3890
3888
  spinner.stop(`${totalAgents} agents`);
3891
3889
  if (installedAgents.includes("eve") && (options.yes || !agentResult.isAgent)) {
3892
3890
  const useEve = options.yes ? true : await ye({
3893
- message: "Detected an Eve project. Install skills for Eve?",
3891
+ message: formatEveInstallPromptMessage(selectedSkills),
3894
3892
  initialValue: true
3895
3893
  });
3896
3894
  if (pD(useEve)) {
@@ -3900,7 +3898,7 @@ async function runAdd(args, options = {}) {
3900
3898
  }
3901
3899
  if (useEve) {
3902
3900
  targetAgents = ["eve"];
3903
- M.info(`Installing to: ${import_picocolors.default.cyan(agents.eve.displayName)}`);
3901
+ M.info(`Installing to: ${import_picocolors.default.cyan(EVE_AGENT_LABEL)}`);
3904
3902
  } else {
3905
3903
  const selected = await selectAgentsInteractive({ global: options.global });
3906
3904
  if (pD(selected)) {
@@ -4366,8 +4364,7 @@ function parseAddOptions(args) {
4366
4364
  nextArg = args[i];
4367
4365
  }
4368
4366
  i--;
4369
- } else if (arg === "--dangerously-accept-openclaw-risks") options.dangerouslyAcceptOpenclawRisks = true;
4370
- else if (arg && !arg.startsWith("-")) source.push(arg);
4367
+ } else if (arg && !arg.startsWith("-")) source.push(arg);
4371
4368
  }
4372
4369
  return {
4373
4370
  source,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skills",
3
- "version": "1.5.13",
3
+ "version": "1.5.14",
4
4
  "description": "The open agent skills ecosystem",
5
5
  "type": "module",
6
6
  "bin": {