@khanhcan148/mk 0.1.26 → 0.1.27
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanhcan148/mk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "CLI to install and manage MyClaudeKit (.claude/) in your projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,10 +26,9 @@
|
|
|
26
26
|
"chalk": "^5.0.0",
|
|
27
27
|
"commander": "^12.0.0",
|
|
28
28
|
"fs-extra": "^11.0.0",
|
|
29
|
-
"js-yaml": "4.1.
|
|
29
|
+
"js-yaml": "^4.1.1",
|
|
30
30
|
"semver": "^7.0.0"
|
|
31
31
|
},
|
|
32
|
-
"devDependencies": {},
|
|
33
32
|
"keywords": [
|
|
34
33
|
"claude",
|
|
35
34
|
"claude-code",
|
|
@@ -133,7 +133,7 @@ function buildToml() {
|
|
|
133
133
|
const parts = [
|
|
134
134
|
'# codex >=0.129.0 <0.140.0',
|
|
135
135
|
'',
|
|
136
|
-
emitTable('features', {
|
|
136
|
+
emitTable('features', { hooks: true }),
|
|
137
137
|
'',
|
|
138
138
|
emitArrayOfTables('hooks.PreToolUse', hookBlocks['hooks.PreToolUse'].items),
|
|
139
139
|
emitArrayOfTables('hooks.PostToolUse', hookBlocks['hooks.PostToolUse'].items),
|
package/src/commands/codex.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - .claude/skills/ → .codex/skills/ (via skills converter, Claude-only FM keys stripped)
|
|
8
8
|
* - .claude/workflows/ → .codex/workflows/ (recursive copy)
|
|
9
9
|
* - .claude/hooks/ → .codex/hooks/ (via hooks converter)
|
|
10
|
-
* - .codex/config.toml — emitted with [features]
|
|
10
|
+
* - .codex/config.toml — emitted with [features] hooks=true + 6 hook blocks
|
|
11
11
|
*
|
|
12
12
|
* The converter is the source of truth for IAC-1/3/4 + R2 compliance; this
|
|
13
13
|
* command is a thin wrapper that supplies cwd-derived paths and handles the
|
package/src/lib/toml-emit.js
CHANGED
|
@@ -170,7 +170,7 @@ export function emitArrayOfTables(key, arr) {
|
|
|
170
170
|
* ```js
|
|
171
171
|
* {
|
|
172
172
|
* __leadingComments?: string, // file-level comments, emitted first
|
|
173
|
-
* features?: {
|
|
173
|
+
* features?: { hooks: boolean, ... }, // [features] table, emitted first among sections
|
|
174
174
|
* 'hooks.PreToolUse'?: { __type: 'array', items: [...] }, // array-of-tables
|
|
175
175
|
* 'hooks.PostToolUse'?: { __type: 'array', items: [...] },
|
|
176
176
|
* 'hooks.SessionStart'?: { __type: 'array', items: [...] },
|