@moneko/core 4.12.0 → 4.12.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/lib/bin/setup.mjs CHANGED
@@ -1 +1 @@
1
- import{argv as o}from"node:process";import{ensureClaudeHooks as m,ensureCodexHooks as r}from"../commom/ai-hooks.mjs";import c from"../commom/check-npm.mjs";import{corepack as p}from"../commom/corepack.mjs";import{parseArgs as s}from"../commom/parse-args.mjs";import{CONFIG as i}from"../config.mjs";export default function(){p(i.corepack),c(),s(o)["ai-hooks"]&&(r(),m())};
1
+ import{argv as o}from"node:process";import{ensureClaudeHooks as m,ensureCodexHooks as r}from"../commom/ai-hooks.mjs";import c from"../commom/check-npm.mjs";import{corepack as p}from"../commom/corepack.mjs";import s from"../commom/parse-args.mjs";import{CONFIG as i}from"../config.mjs";export default function(){p(i.corepack),c(),s(o)["ai-hooks"]&&(r(),m())};
@@ -1,4 +1,4 @@
1
- import{existsSync as o,mkdirSync as e,readFileSync as s,writeFileSync as t}from"node:fs";import{dirname as r,resolve as n}from"node:path";import{paths as m}from"./paths.mjs";let h=m.programPath,i='bash "$(git rev-parse --show-toplevel)/node_modules/@moneko/core/hooks/ai-eslint.sh"',p='bash "$(git rev-parse --show-toplevel)/node_modules/@moneko/core/hooks/ai-stylelint.sh"';export function ensureCodexHooks(){let m=n(h,".codex/config.toml"),a=o(m)?s(m,"utf8"):"[features]\nhooks = true\n";for(let o of(a.includes("[[hooks.Stop]]")||(a=`${a.trimEnd()}
1
+ import{existsSync as o,mkdirSync as e,readFileSync as s,writeFileSync as t}from"node:fs";import{dirname as r,resolve as n}from"node:path";import m from"./paths.mjs";let h=m.programPath,i='bash "$(git rev-parse --show-toplevel)/node_modules/@moneko/core/hooks/ai-eslint.sh"',p='bash "$(git rev-parse --show-toplevel)/node_modules/@moneko/core/hooks/ai-stylelint.sh"';export function ensureCodexHooks(){let m=n(h,".codex/config.toml"),a=o(m)?s(m,"utf8"):"[features]\nhooks = true\n";for(let o of(a.includes("[[hooks.Stop]]")||(a=`${a.trimEnd()}
2
2
 
3
3
  [[hooks.Stop]]
4
4
  matcher = ".*"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "@moneko/core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",