@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 +1 -1
- package/lib/commom/ai-hooks.mjs +1 -1
- package/package.json +1 -1
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
|
|
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())};
|
package/lib/commom/ai-hooks.mjs
CHANGED
|
@@ -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
|
|
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 = ".*"
|