@safeskill/cli 0.3.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.2
4
+
5
+ - Fixed the published npm binary entrypoint so `npx @safeskill/cli` executes the bundled CLI instead of exiting with no output.
6
+
3
7
  ## 0.3.1
4
8
 
5
9
  - Added upstream synchronization infrastructure with `vercel-labs/skills` kept as a subtree reference under `upstream/vercel-labs-skills`.
package/bin/cli.mjs CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  import module from 'node:module';
4
4
 
5
+ process.env.SAFESKILL_CLI_ENTRYPOINT = '1';
6
+
5
7
  // https://nodejs.org/api/module.html#module-compile-cache
6
8
  if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
7
9
  try {
package/dist/cli.mjs CHANGED
@@ -2900,7 +2900,7 @@ async function saveSelectedAgents(agents) {
2900
2900
  lock.lastSelectedAgents = agents;
2901
2901
  await writeSkillLock(lock);
2902
2902
  }
2903
- var version$1 = "0.3.1";
2903
+ var version$1 = "0.3.2";
2904
2904
  const isCancelled$1 = (value) => typeof value === "symbol";
2905
2905
  async function isSourcePrivate(source) {
2906
2906
  const ownerRepo = parseOwnerRepo(source);
@@ -6734,6 +6734,7 @@ async function main() {
6734
6734
  }
6735
6735
  }
6736
6736
  function isCliEntrypoint() {
6737
+ if (process.env.SAFESKILL_CLI_ENTRYPOINT === "1") return true;
6737
6738
  const entrypoint = process.argv[1];
6738
6739
  return entrypoint ? import.meta.url === pathToFileURL(entrypoint).href : false;
6739
6740
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safeskill/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "SafeSkill CLI, for safe your skills",
5
5
  "type": "module",
6
6
  "bin": {