oathbound 0.17.2 → 0.17.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.
Files changed (2) hide show
  1. package/dist/cli.cjs +9 -6
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -18549,7 +18549,7 @@ ${BRAND} ${TEAL}${showing}${RESET}
18549
18549
  }
18550
18550
  }
18551
18551
  // cli.ts
18552
- var VERSION = "0.17.2";
18552
+ var VERSION = "0.17.3";
18553
18553
  function parseSkillArg(arg) {
18554
18554
  const slash = arg.indexOf("/");
18555
18555
  if (slash < 1 || slash === arg.length - 1)
@@ -18691,21 +18691,24 @@ async function init(options = {}) {
18691
18691
  async function ensureInitialized() {
18692
18692
  const globalSettings = import_node_path9.join(import_node_os4.homedir(), ".claude", "settings.json");
18693
18693
  const localSettings = import_node_path9.join(process.cwd(), ".claude", "settings.json");
18694
- if (settingsHaveOathboundHooks(globalSettings) || settingsHaveOathboundHooks(localSettings)) {
18694
+ const hasGlobal = settingsHaveOathboundHooks(globalSettings);
18695
+ const hasLocal = settingsHaveOathboundHooks(localSettings);
18696
+ if (hasGlobal && hasLocal)
18695
18697
  return;
18696
- }
18697
18698
  if (!process.stdin.isTTY) {
18698
18699
  process.stderr.write("oathbound: no hooks configured. Run `npx oathbound init` first.\n");
18699
18700
  process.exit(1);
18700
18701
  }
18701
18702
  process.stderr.write(`
18702
- ${BRAND} ${YELLOW}No oathbound hooks detected. Setting up...${RESET}
18703
+ ${BRAND} ${YELLOW}Setting up oathbound hooks...${RESET}
18703
18704
  `);
18704
18705
  process.stderr.write(`${DIM} Hooks verify skills on every Claude Code session.${RESET}
18705
18706
 
18706
18707
  `);
18707
- initGlobal();
18708
- await initLocal();
18708
+ if (!hasGlobal)
18709
+ initGlobal();
18710
+ if (!hasLocal)
18711
+ await initLocal();
18709
18712
  }
18710
18713
  async function pull(skillArg, options = {}) {
18711
18714
  const parsed = parseSkillArg(skillArg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oathbound",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Install verified Claude Code skills and agents from the Oath Bound registry",
5
5
  "license": "MIT",
6
6
  "author": "Josh Anderson",