cdspec 0.1.6 → 0.1.7

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/README.md CHANGED
@@ -1,82 +1,68 @@
1
- # CDSpec
2
-
3
- `cdspec` 是一个用于规范项目开发、提高开发效率的 Skill 初始化 CLI。
4
- 它会把项目内 `templates/` 的技能模板一键安装到不同编程智能体(Codex / ClaudeCode / iFlow)可识别的目录,并自动生成对应命令文件。
5
-
6
- ## 功能
7
-
8
- - 基于 `templates/` 一键生成并安装 skills
9
- - 自动为每个 skill 生成可调用命令(`cd-<skill-name>`)
10
- - 支持选择生成路径:默认路径(用户目录)或当前项目路径
11
- - 支持目标智能体:`codex`、`claudecode`、`iflow`
12
-
13
- ## 安装
14
-
15
- ```bash
16
- npm i -g cdspec
17
- ```
18
-
19
- 验证安装:
20
-
21
- ```bash
22
- cdspec --help
23
- ```
24
-
25
- ## 使用
26
-
27
- 执行初始化(交互选择智能体 + 路径模式):
28
-
29
- ```bash
30
- cdspec init
31
- ```
32
-
33
- 非交互方式:
34
-
35
- ```bash
36
- cdspec init --agents codex,claudecode,iflow --path-mode default
37
- ```
38
-
39
- 可选参数:
40
-
41
- - `--agents <agents>`: `codex|claudecode|iflow`,支持逗号分隔
42
- - `--path-mode <mode>`: `default|project`
43
-
44
- ## 模板约定
45
-
46
- 在项目根目录准备 `templates/`,每个技能一个目录,且至少包含 `SKILL.md`。
47
-
48
- 示例:
49
-
50
- ```text
51
- templates/
52
- design-doc/
53
- SKILL.md
54
- agents/openai.yaml
55
- references/*
56
- frontend-standard/
57
- SKILL.md
58
- backend-standard/
59
- SKILL.md
60
- ```
61
-
62
- ## 输出目录
63
-
64
- `--path-mode default`(默认,用户目录):
65
-
66
- - Codex: `~/.codex/skills/*` 和 `~/.codex/prompts/*`
67
- - ClaudeCode: `~/.claude/skills/*` 和 `~/.claude/commands/*`
68
- - iFlow: `~/.iflow/skills/*` 和 `~/.iflow/commands/*`
69
-
70
- `--path-mode project`(当前项目目录):
71
-
72
- - Codex: `./.codex/skills/*` 和 `./.codex/prompts/*`
73
- - ClaudeCode: `./.claude/skills/*` 和 `./.claude/commands/*`
74
- - iFlow: `./.iflow/skills/*` 和 `./.iflow/commands/*`
75
-
76
- ## 开发
77
-
78
- ```bash
79
- npm install
80
- npm run build
81
- npm run dev
1
+ # CDSpec
2
+
3
+ `cdspec` 是一个用于规范项目开发、提高开发效率的 Skill 初始化 CLI。
4
+ 它会把 cdspec 安装包内置的 `templates/` 技能模板一键安装到不同编程智能体(Codex / ClaudeCode / iFlow)可识别目录,并自动生成对应命令文件。
5
+
6
+ ## 功能
7
+
8
+ - 基于内置 `templates/` 一键生成并安装 skills
9
+ - 自动为每个 skill 生成可调用命令(`cd-<skill-name>`)
10
+ - 支持选择生成路径:默认路径(用户目录)或当前项目路径
11
+ - 支持目标智能体:`codex`、`claudecode`、`iflow`
12
+
13
+ ## 安装
14
+
15
+ ```bash
16
+ npm i -g cdspec
17
+ ```
18
+
19
+ 验证安装:
20
+
21
+ ```bash
22
+ cdspec --help
23
+ ```
24
+
25
+ ## 使用
26
+
27
+ 执行初始化(交互选择智能体 + 路径模式):
28
+
29
+ ```bash
30
+ cdspec init
31
+ ```
32
+
33
+ 非交互方式:
34
+
35
+ ```bash
36
+ cdspec init --agents codex,claudecode,iflow --path-mode default
37
+ ```
38
+
39
+ 可选参数:
40
+
41
+ - `--agents <agents>`: `codex|claudecode|iflow`,支持逗号分隔
42
+ - `--path-mode <mode>`: `default|project`
43
+
44
+ ## 模板来源
45
+
46
+ `cdspec init` 使用 **cdspec 安装包内置** 的 `templates/` 作为技能来源,不扫描当前业务项目目录。
47
+
48
+ ## 输出目录
49
+
50
+ `--path-mode default`(默认,用户目录):
51
+
52
+ - Codex: `~/.codex/skills/*` 和 `~/.codex/prompts/*`
53
+ - ClaudeCode: `~/.claude/skills/*` 和 `~/.claude/commands/*`
54
+ - iFlow: `~/.iflow/skills/*` 和 `~/.iflow/commands/*`
55
+
56
+ `--path-mode project`(当前项目目录):
57
+
58
+ - Codex: `./.codex/skills/*` 和 `./.codex/prompts/*`
59
+ - ClaudeCode: `./.claude/skills/*` 和 `./.claude/commands/*`
60
+ - iFlow: `./.iflow/skills/*` 和 `./.iflow/commands/*`
61
+
62
+ ## 开发
63
+
64
+ ```bash
65
+ npm install
66
+ npm run build
67
+ npm run dev
82
68
  ```
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x4b16ea=_0x4203;(function(_0x421c27,_0xdc8902){const _0x15aff1=_0x4203,_0x45608b=_0x421c27();while(!![]){try{const _0xa919ab=-parseInt(_0x15aff1(0x195))/(-0x2c*0x53+-0xa88+-0x1*-0x18cd)*(-parseInt(_0x15aff1(0x181))/(0xd84+0x148d+-0x220f))+-parseInt(_0x15aff1(0x17d))/(0x1489*0x1+-0x1*0x115c+0x5a*-0x9)*(-parseInt(_0x15aff1(0x192))/(0xa*-0x326+0x3*0x329+-0x1605*-0x1))+-parseInt(_0x15aff1(0x188))/(0x4ee+-0x2027+0xb*0x27a)*(parseInt(_0x15aff1(0x190))/(0x16db+-0x1ee6+0x23*0x3b))+parseInt(_0x15aff1(0x182))/(0x149c+0x427*-0x4+0x3f9*-0x1)*(parseInt(_0x15aff1(0x187))/(0x25c7*-0x1+-0x15fd+-0x4*-0xef3))+-parseInt(_0x15aff1(0x17e))/(0x6cb*-0x5+0x367+0x45f*0x7)+parseInt(_0x15aff1(0x176))/(-0x17fb+-0x2*0x1e9+0x1bd7)+-parseInt(_0x15aff1(0x191))/(0x1f83+-0x1*-0x259e+-0x25*0x1de);if(_0xa919ab===_0xdc8902)break;else _0x45608b['push'](_0x45608b['shift']());}catch(_0x540ee9){_0x45608b['push'](_0x45608b['shift']());}}}(_0x52fe,0xf2f3+0x269e5+-0x1227c));import _0x3cc44a from'@inquirer/checkbox';import _0x8480a7 from'@inquirer/select';import{Command}from'commander';function _0x52fe(){const _0x41959b=['claudecode','exitCode',',可选值:\x20default\x20|\x20project','toLowerCase','catch','isTTY','--path-mode\x20<mode>','message','cwd','agents','name','生成路径模式:','argv','parse','default','未知路径模式:\x20','iflow','--agents\x20<agents>','error','description','cdspec','codex','Skill\x20init\x20CLI','2353530GvueDK','option','已完成初始化:','command','dirname','action','utf8','859557fwmCcc','1124523ttfLXd','default|project','resolve','250JumRlH','1054067CzvjMd','parseAsync','string','stdin','当前项目路径','8SNKeBa','15KFOgel','[\x20]','请选择生成路径','为所选编程智能体初始化技能','length','请选择编程智能体','trim','project','271182elYhGP','4477308wAELxA','4NlfCvD','log','0.0.0','1129oUeDmV','codex|claudecode|iflow|all\x20or\x20comma-separated','version'];_0x52fe=function(){return _0x41959b;};return _0x52fe();}import{readFileSync}from'node:fs';function _0x4203(_0x522ec0,_0x59d852){_0x522ec0=_0x522ec0-(0x1f*-0x117+-0x1cb8+-0xaa9*-0x6);const _0x50d5ea=_0x52fe();let _0x197d36=_0x50d5ea[_0x522ec0];return _0x197d36;}import _0x223ce1 from'node:path';import _0x44e90e from'node:process';import{fileURLToPath}from'node:url';import{initSkills}from'./skill-core/service.js';const program=new Command(),cliVersion=readCliVersion();program[_0x4b16ea(0x1a2)](_0x4b16ea(0x1ac))[_0x4b16ea(0x1ab)](_0x4b16ea(0x175))[_0x4b16ea(0x197)](cliVersion),program[_0x4b16ea(0x179)]('init')[_0x4b16ea(0x1ab)](_0x4b16ea(0x18b))[_0x4b16ea(0x177)](_0x4b16ea(0x1a9),_0x4b16ea(0x196))[_0x4b16ea(0x177)](_0x4b16ea(0x19e),_0x4b16ea(0x17f))[_0x4b16ea(0x17b)](async _0x331d7e=>{const _0x28ed16=_0x4b16ea,_0x15b0a7=_0x331d7e[_0x28ed16(0x1a1)]??await askAgentsSelection(),_0x5a3cf6=normalizePathMode(_0x331d7e['pathMode'])??await askPathModeSelection(),_0x35b4db=await initSkills(_0x44e90e[_0x28ed16(0x1a0)](),_0x15b0a7,!![],_0x5a3cf6);console['log'](_0x28ed16(0x178)+_0x15b0a7),console[_0x28ed16(0x193)](_0x28ed16(0x1a3)+(_0x5a3cf6===_0x28ed16(0x18f)?_0x28ed16(0x186):'默认路径(按配置)')),console['log']('已生成技能包:');for(const _0x47adff of _0x35b4db){console['log'](_0x223ce1['resolve'](_0x47adff));}}),program[_0x4b16ea(0x183)](_0x44e90e[_0x4b16ea(0x1a4)])[_0x4b16ea(0x19c)](_0x443d48=>{const _0x2b1f9b=_0x4b16ea,_0x1f7c78=_0x443d48 instanceof Error?_0x443d48[_0x2b1f9b(0x19f)]:String(_0x443d48);console[_0x2b1f9b(0x1aa)](_0x1f7c78),_0x44e90e[_0x2b1f9b(0x199)]=-0x610*0x3+-0x3b*-0x7a+-0x1*0x9ed;});async function askAgentsSelection(){const _0x2bc2e9=_0x4b16ea;if(!_0x44e90e[_0x2bc2e9(0x185)][_0x2bc2e9(0x19d)])return _0x2bc2e9(0x1ad);const _0x179745=await _0x3cc44a({'message':_0x2bc2e9(0x18d),'required':!![],'theme':{'icon':{'checked':'[✓]','unchecked':_0x2bc2e9(0x189),'cursor':'>'}},'choices':[{'name':_0x2bc2e9(0x1ad),'value':_0x2bc2e9(0x1ad),'checked':!![]},{'name':_0x2bc2e9(0x198),'value':'claudecode'},{'name':_0x2bc2e9(0x1a8),'value':_0x2bc2e9(0x1a8)}]});if(_0x179745[_0x2bc2e9(0x18c)]===-0x1*-0x2125+0x1389*-0x1+0xd*-0x10c)return'codex';return _0x179745['join'](',');}async function askPathModeSelection(){const _0x42ed57=_0x4b16ea;if(!_0x44e90e[_0x42ed57(0x185)][_0x42ed57(0x19d)])return'default';return _0x8480a7({'message':_0x42ed57(0x18a),'choices':[{'name':'默认路径(按配置)','value':_0x42ed57(0x1a6)},{'name':'当前项目路径','value':_0x42ed57(0x18f)}],'default':'default'});}function normalizePathMode(_0x3980ca){const _0x40ede0=_0x4b16ea;if(typeof _0x3980ca!==_0x40ede0(0x184))return undefined;const _0x25289e=_0x3980ca[_0x40ede0(0x18e)]()[_0x40ede0(0x19b)]();if(_0x25289e==='default'||_0x25289e===_0x40ede0(0x18f))return _0x25289e;throw new Error(_0x40ede0(0x1a7)+_0x3980ca+_0x40ede0(0x19a));}function readCliVersion(){const _0x3887f5=_0x4b16ea;try{const _0x4b3a2c=_0x223ce1[_0x3887f5(0x17a)](fileURLToPath(import.meta.url)),_0x2095ff=_0x223ce1[_0x3887f5(0x180)](_0x4b3a2c,'..','package.json'),_0x5ea9ed=readFileSync(_0x2095ff,_0x3887f5(0x17c)),_0x5f2675=JSON[_0x3887f5(0x1a5)](_0x5ea9ed);return _0x5f2675[_0x3887f5(0x197)]||'0.0.0';}catch{return _0x3887f5(0x194);}}
2
+ const _0x315b51=_0x5602;(function(_0xf19d43,_0x2fed68){const _0x199577=_0x5602,_0x575979=_0xf19d43();while(!![]){try{const _0x169487=parseInt(_0x199577(0x1c8))/(-0xff4+0x10c*-0x17+-0x1*-0x2809)+-parseInt(_0x199577(0x1dc))/(0x2231+0x17*-0x32+-0x2b3*0xb)+-parseInt(_0x199577(0x1e8))/(0x1363*-0x2+-0x1f38+0x4601)*(-parseInt(_0x199577(0x1e9))/(0x1a81+-0x4cd+0x10*-0x15b))+-parseInt(_0x199577(0x1ea))/(0x1*-0x1ddf+0x816+-0x1*-0x15ce)+parseInt(_0x199577(0x1d1))/(0x1f*-0x5a+-0x6a*0x17+0x1472)+-parseInt(_0x199577(0x1cb))/(-0x255d*-0x1+0x1045+-0x359b*0x1)*(-parseInt(_0x199577(0x1ee))/(0xc2f+0x1*0xc4e+-0x1875))+parseInt(_0x199577(0x1c6))/(-0x22ad+-0x3f9*-0x3+-0x185*-0xf)*(-parseInt(_0x199577(0x1cd))/(-0x2*-0x10f9+-0x1*0x2581+0x399));if(_0x169487===_0x2fed68)break;else _0x575979['push'](_0x575979['shift']());}catch(_0x43ad00){_0x575979['push'](_0x575979['shift']());}}}(_0x28f3,0x76e52+0x5cae*-0x5+0x1*0x95da4));import _0x1497a4 from'@inquirer/checkbox';import _0x1f4bae from'@inquirer/select';function _0x5602(_0x135e4c,_0x53d131){_0x135e4c=_0x135e4c-(-0x1d5+0x25*0xe2+-0x1d11);const _0x36cedc=_0x28f3();let _0x2a85d0=_0x36cedc[_0x135e4c];return _0x2a85d0;}import{Command}from'commander';import{readFileSync}from'node:fs';import _0x571856 from'node:path';import _0x23f426 from'node:process';function _0x28f3(){const _0x44d3c2=['init','codex','0.0.0','生成路径模式:','98793gFbtoN','默认路径(按配置)','844443eaqTfo','Skill\x20init\x20CLI','resolve','15869rDSBGD','[✓]','110GGVake','--agents\x20<agents>','command','dirname','8945106GxnhqP','pathMode','claudecode','iflow','codex|claudecode|iflow|all\x20or\x20comma-separated','log','package.json','message','parseAsync','isTTY','length','3658578ZaRhva','action','stdin','default','请选择生成路径','trim','cwd','为所选编程智能体初始化技能','description','utf8','project','default|project','3pstpMg','2487652zGQZPs','5622530eAcHsN','version','option','exitCode','3880WyItWj','error','agents',',可选值:\x20default\x20|\x20project','parse','cdspec'];_0x28f3=function(){return _0x44d3c2;};return _0x28f3();}import{fileURLToPath}from'node:url';import{initSkills}from'./skill-core/service.js';const program=new Command(),cliVersion=readCliVersion();program['name'](_0x315b51(0x1f3))[_0x315b51(0x1e4)](_0x315b51(0x1c9))[_0x315b51(0x1eb)](cliVersion),program[_0x315b51(0x1cf)](_0x315b51(0x1f4))['description'](_0x315b51(0x1e3))[_0x315b51(0x1ec)](_0x315b51(0x1ce),_0x315b51(0x1d5))[_0x315b51(0x1ec)]('--path-mode\x20<mode>',_0x315b51(0x1e7))[_0x315b51(0x1dd)](async _0xcc3690=>{const _0x563d06=_0x315b51,_0x263228=_0xcc3690[_0x563d06(0x1f0)]??await askAgentsSelection(),_0x2c987f=normalizePathMode(_0xcc3690[_0x563d06(0x1d2)])??await askPathModeSelection(),_0x48d3bf=await initSkills(_0x23f426[_0x563d06(0x1e2)](),_0x263228,!![],_0x2c987f);console[_0x563d06(0x1d6)]('已完成初始化:'+_0x263228),console[_0x563d06(0x1d6)](_0x563d06(0x1c5)+(_0x2c987f===_0x563d06(0x1e6)?'当前项目路径':_0x563d06(0x1c7))),console[_0x563d06(0x1d6)]('已生成技能包:');for(const _0x565073 of _0x48d3bf){console[_0x563d06(0x1d6)](_0x571856['resolve'](_0x565073));}}),program[_0x315b51(0x1d9)](_0x23f426['argv'])['catch'](_0x5f3aee=>{const _0x437a37=_0x315b51,_0x6ff460=_0x5f3aee instanceof Error?_0x5f3aee[_0x437a37(0x1d8)]:String(_0x5f3aee);console[_0x437a37(0x1ef)](_0x6ff460),_0x23f426[_0x437a37(0x1ed)]=-0xb*0x37a+-0xf11+0x3550;});async function askAgentsSelection(){const _0x18cb11=_0x315b51;if(!_0x23f426[_0x18cb11(0x1de)][_0x18cb11(0x1da)])return _0x18cb11(0x1f5);const _0x1554f2=await _0x1497a4({'message':'请选择编程智能体','required':!![],'theme':{'icon':{'checked':_0x18cb11(0x1cc),'unchecked':'[\x20]','cursor':'>'}},'choices':[{'name':'codex','value':_0x18cb11(0x1f5),'checked':!![]},{'name':_0x18cb11(0x1d3),'value':_0x18cb11(0x1d3)},{'name':_0x18cb11(0x1d4),'value':'iflow'}]});if(_0x1554f2[_0x18cb11(0x1db)]===-0x1*-0x26c9+-0xffa+-0x16cf)return _0x18cb11(0x1f5);return _0x1554f2['join'](',');}async function askPathModeSelection(){const _0x44243d=_0x315b51;if(!_0x23f426[_0x44243d(0x1de)][_0x44243d(0x1da)])return _0x44243d(0x1df);return _0x1f4bae({'message':_0x44243d(0x1e0),'choices':[{'name':'默认路径(按配置)','value':_0x44243d(0x1df)},{'name':'当前项目路径','value':_0x44243d(0x1e6)}],'default':_0x44243d(0x1df)});}function normalizePathMode(_0x2f3e19){const _0x2f84d6=_0x315b51;if(typeof _0x2f3e19!=='string')return undefined;const _0x41949b=_0x2f3e19[_0x2f84d6(0x1e1)]()['toLowerCase']();if(_0x41949b===_0x2f84d6(0x1df)||_0x41949b===_0x2f84d6(0x1e6))return _0x41949b;throw new Error('未知路径模式:\x20'+_0x2f3e19+_0x2f84d6(0x1f1));}function readCliVersion(){const _0x4a5d52=_0x315b51;try{const _0xb51268=_0x571856[_0x4a5d52(0x1d0)](fileURLToPath(import.meta.url)),_0x5b71c1=_0x571856[_0x4a5d52(0x1ca)](_0xb51268,'..',_0x4a5d52(0x1d7)),_0x3e4383=readFileSync(_0x5b71c1,_0x4a5d52(0x1e5)),_0x3d0321=JSON[_0x4a5d52(0x1f2)](_0x3e4383);return _0x3d0321[_0x4a5d52(0x1eb)]||_0x4a5d52(0x1c4);}catch{return _0x4a5d52(0x1c4);}}
@@ -1 +1 @@
1
- function _0x2010(_0x17e1b3,_0x42155a){_0x17e1b3=_0x17e1b3-(0x2346+-0x2507+0x24c);const _0x639d3d=_0x2993();let _0x1fb20c=_0x639d3d[_0x17e1b3];return _0x1fb20c;}const _0x18f611=_0x2010;(function(_0x34d5cf,_0x7dcc34){const _0x2df088=_0x2010,_0x459aae=_0x34d5cf();while(!![]){try{const _0xd1b8fc=parseInt(_0x2df088(0x97))/(-0x1d19+0x8db*0x2+-0x12*-0xa2)*(parseInt(_0x2df088(0x99))/(0x1*-0x15a+0x7*-0x39b+0x1a99))+parseInt(_0x2df088(0x92))/(-0x1fc5+0x3*0xa5+0x1dd9)+parseInt(_0x2df088(0x9a))/(-0x1c57+-0x6d*0x42+-0x61*-0x95)+parseInt(_0x2df088(0x8d))/(-0xf50+-0x2495+0x33ea)*(-parseInt(_0x2df088(0x8c))/(-0x1ce7*0x1+0x3*0xa31+-0x1a6))+parseInt(_0x2df088(0x8e))/(-0x1908+0xfe7+0x928)*(parseInt(_0x2df088(0x9b))/(0x4c8+0x130*-0x6+0x98*0x4))+-parseInt(_0x2df088(0x9c))/(0x1*-0x2153+0x719+0x1a43)*(parseInt(_0x2df088(0x96))/(-0x1d03+0x157f+0x78e))+-parseInt(_0x2df088(0x98))/(-0xef9+0x11bb+-0x2b7);if(_0xd1b8fc===_0x7dcc34)break;else _0x459aae['push'](_0x459aae['shift']());}catch(_0x55cac8){_0x459aae['push'](_0x459aae['shift']());}}}(_0x2993,0x22505+-0x20*-0x556+0x3*0x6cd));export const defaultConfig={'commandBindings':[],'agents':{'codex':{'rootDir':_0x18f611(0x93),'commandsDir':'prompts','commandFilePattern':_0x18f611(0x91),'slashPattern':'/{id}','guideFile':'AGENTS.md'},'claudecode':{'rootDir':'~/.claude','commandsDir':_0x18f611(0x95),'commandFilePattern':_0x18f611(0x91),'slashPattern':_0x18f611(0x8b),'guideFile':_0x18f611(0x8f),'guideAtProjectRoot':!![]},'iflow':{'rootDir':_0x18f611(0x90),'commandsDir':'commands','commandFilePattern':'{id}.md','slashPattern':_0x18f611(0x8b),'guideFile':_0x18f611(0x94)}}};function _0x2993(){const _0x5af806=['906380jmBUGI','930MEQTXV','12562JkEOGb','200eOrovt','166456HsILXh','1762480IDNAYR','18ttRQxE','/{id}','114942bhdhpB','5VcxQbM','7lAtIAf','CLAUDE.md','~/.iflow','{id}.md','108405rzmTcl','~/.codex','IFLOW.md','commands'];_0x2993=function(){return _0x5af806;};return _0x2993();}
1
+ function _0x5648(_0x3f31d6,_0x45a00d){_0x3f31d6=_0x3f31d6-(0x32c*-0x9+0xd8d+0x10a2*0x1);const _0xa0d45=_0x30fa();let _0x33a484=_0xa0d45[_0x3f31d6];return _0x33a484;}const _0x582dd0=_0x5648;function _0x30fa(){const _0x47bece=['201928VhHTQD','3515TEDHOX','commands','~/.codex','2526uPELaV','388dLJiZV','11WtzkZV','~/.iflow','1794870dYHFWo','17042352FaohQd','CLAUDE.md','2889aBRVMN','4571MHJdWM','prompts','/{id}','AGENTS.md','9992MlJGkr','11BDJOcW','{id}.md','~/.claude','10292832BqPXYj'];_0x30fa=function(){return _0x47bece;};return _0x30fa();}(function(_0x150ed2,_0x4db602){const _0xf3f3b7=_0x5648,_0x4e59af=_0x150ed2();while(!![]){try{const _0x3ca188=-parseInt(_0xf3f3b7(0x1ab))/(0x24ad+-0x47f+-0x202d)*(-parseInt(_0xf3f3b7(0x1af))/(0x199d+0x44+0x19df*-0x1))+-parseInt(_0xf3f3b7(0x1a5))/(0x1*0xb5e+0x938+-0x1493*0x1)*(-parseInt(_0xf3f3b7(0x1b4))/(0x39f*0xa+0x2d8+-0x270a))+parseInt(_0xf3f3b7(0x1b0))/(-0x16f8+0xd37*0x1+0x9*0x116)*(parseInt(_0xf3f3b7(0x1b3))/(0x1*0x44d+0x2c7+0x1*-0x70e))+-parseInt(_0xf3f3b7(0x1a6))/(0x3a*-0x37+0x162c*-0x1+0x22a9)*(parseInt(_0xf3f3b7(0x1aa))/(0x1*0xd9c+-0x8fc*-0x3+-0xa22*0x4))+parseInt(_0xf3f3b7(0x1ae))/(0x247b+0x24a3+-0x4915)+parseInt(_0xf3f3b7(0x1b7))/(-0x161*0xe+0x997*-0x1+-0x1cef*-0x1)+-parseInt(_0xf3f3b7(0x1b5))/(-0x2*-0x4de+0xcb+-0xb*0xf4)*(parseInt(_0xf3f3b7(0x1a3))/(-0x3e*0x12+-0x10ba+0xa*0x21d));if(_0x3ca188===_0x4db602)break;else _0x4e59af['push'](_0x4e59af['shift']());}catch(_0x9c2613){_0x4e59af['push'](_0x4e59af['shift']());}}}(_0x30fa,-0xac954+-0x8f778+-0x14*-0x16f8d));export const defaultConfig={'commandBindings':[],'agents':{'codex':{'rootDir':_0x582dd0(0x1b2),'commandsDir':_0x582dd0(0x1a7),'commandFilePattern':_0x582dd0(0x1ac),'slashPattern':_0x582dd0(0x1a8),'guideFile':_0x582dd0(0x1a9)},'claudecode':{'rootDir':_0x582dd0(0x1ad),'commandsDir':_0x582dd0(0x1b1),'commandFilePattern':_0x582dd0(0x1ac),'slashPattern':_0x582dd0(0x1a8),'guideFile':_0x582dd0(0x1a4),'guideAtProjectRoot':!![]},'iflow':{'rootDir':_0x582dd0(0x1b6),'commandsDir':_0x582dd0(0x1b1),'commandFilePattern':_0x582dd0(0x1ac),'slashPattern':_0x582dd0(0x1a8),'guideFile':'IFLOW.md'}}};
@@ -1 +1 @@
1
- (function(_0x683797,_0x40adb1){const _0x413135=_0x2f8b,_0x50cbe1=_0x683797();while(!![]){try{const _0x2d4c18=-parseInt(_0x413135(0x159))/(0x110*0x1+-0x21*-0x3c+0x1*-0x8cb)+parseInt(_0x413135(0x154))/(0xb*0x97+-0xb2d*-0x1+-0x11a8)*(-parseInt(_0x413135(0x15b))/(-0xb05+0x232b+-0x1823))+-parseInt(_0x413135(0x15f))/(-0x182*-0x3+-0xc59*-0x3+0x1*-0x298d)*(parseInt(_0x413135(0x156))/(0x4f*0x29+-0x7*-0x1bd+0x1*-0x18cd))+parseInt(_0x413135(0x14e))/(0x13cb+0x1*0x301+-0xb63*0x2)*(-parseInt(_0x413135(0x15c))/(0xdb7*0x1+-0x1dcf+-0x1*-0x101f))+-parseInt(_0x413135(0x157))/(-0x844+-0x2f*-0x6f+-0xc15)*(-parseInt(_0x413135(0x153))/(-0x4*-0x99e+0x229b+0x2*-0x2485))+-parseInt(_0x413135(0x152))/(-0x202+0x1*-0x503+0xd*0x8b)*(parseInt(_0x413135(0x158))/(0xcb1+0x2659*-0x1+-0x2b*-0x99))+parseInt(_0x413135(0x15e))/(0x3fb+0x76f*0x2+-0x1*0x12cd)*(parseInt(_0x413135(0x15a))/(-0x180b+-0x1e8c+-0x434*-0xd));if(_0x2d4c18===_0x40adb1)break;else _0x50cbe1['push'](_0x50cbe1['shift']());}catch(_0x15ca01){_0x50cbe1['push'](_0x50cbe1['shift']());}}}(_0x41ac,0x10*-0x4f3+-0x3dc25*0x1+0x1687*0x54));import _0x1b6585 from'node:path';import{readFile}from'node:fs/promises';import{parse}from'yaml';import{pathExists}from'../utils/fs.js';function _0x2f8b(_0x2868ef,_0x2e1771){_0x2868ef=_0x2868ef-(-0x1*0xd6e+0x16dc+-0x821);const _0x5d2295=_0x41ac();let _0x1fbfce=_0x5d2295[_0x2868ef];return _0x1fbfce;}function _0x41ac(){const _0x3c630f=['codex','length','45590zfdlmZ','111420KWSwww','6IMDfBR','agents','170WLkucG','232ePnoQQ','143FPUSPU','51372RFEFlr','1927679ZnLSvO','228561tfDmUy','4151VyqdRg','commandBindings','60CVQmYg','40712pkikbS','claudecode','2064AVWanq','iflow'];_0x41ac=function(){return _0x3c630f;};return _0x41ac();}import{defaultConfig}from'./default.js';const CONFIG_FILE='cdspec.config.yaml';export async function loadConfig(_0x1d0a5e){const _0xe7eb6b=_0x2f8b,_0x527fb8=_0x1b6585['join'](_0x1d0a5e,CONFIG_FILE);if(!await pathExists(_0x527fb8))return defaultConfig;const _0x142ba6=await readFile(_0x527fb8,'utf8'),_0x4c016e=parse(_0x142ba6);if(!_0x4c016e)return defaultConfig;const _0x3bdc7a={'commandBindings':_0x4c016e[_0xe7eb6b(0x15d)]&&_0x4c016e[_0xe7eb6b(0x15d)][_0xe7eb6b(0x151)]>-0xb*0x27a+0x322*0x8+-0x117*-0x2?_0x4c016e[_0xe7eb6b(0x15d)]:defaultConfig['commandBindings'],'agents':{'codex':{...defaultConfig['agents'][_0xe7eb6b(0x150)],..._0x4c016e['agents']?.[_0xe7eb6b(0x150)]||{}},'claudecode':{...defaultConfig[_0xe7eb6b(0x155)]['claudecode'],..._0x4c016e[_0xe7eb6b(0x155)]?.[_0xe7eb6b(0x14d)]||{}},'iflow':{...defaultConfig[_0xe7eb6b(0x155)][_0xe7eb6b(0x14f)],..._0x4c016e['agents']?.[_0xe7eb6b(0x14f)]||{}}}};return _0x3bdc7a;}
1
+ const _0x288ecc=_0x1a45;(function(_0x230e75,_0x1052f6){const _0x52e348=_0x1a45,_0x260fe1=_0x230e75();while(!![]){try{const _0x1c1452=-parseInt(_0x52e348(0x12a))/(-0x1628*0x1+0x47*-0x27+0x43*0x7e)+parseInt(_0x52e348(0x129))/(-0x92d+-0x5*0x3c9+0xe0e*0x2)*(parseInt(_0x52e348(0x128))/(-0x16e1*-0x1+-0x1*0x67b+-0x1063))+parseInt(_0x52e348(0x12d))/(0x3e9+0xc20+-0x1005)+parseInt(_0x52e348(0x126))/(-0x230e+0x12c6+0x104d)+parseInt(_0x52e348(0x130))/(-0x4d1+0x1*0x122c+-0xd55)+-parseInt(_0x52e348(0x121))/(0x1f*-0x37+0x248a*0x1+-0x1dda)+-parseInt(_0x52e348(0x123))/(0x267d*-0x1+0x3*0x32b+0x1d04);if(_0x1c1452===_0x1052f6)break;else _0x260fe1['push'](_0x260fe1['shift']());}catch(_0x36f9df){_0x260fe1['push'](_0x260fe1['shift']());}}}(_0x3034,0x4a71*0x29+0x1*-0x9e597+0x4ed22));import _0x3be597 from'node:path';import{readFile}from'node:fs/promises';import{parse}from'yaml';import{pathExists}from'../utils/fs.js';function _0x1a45(_0x453948,_0x27819e){_0x453948=_0x453948-(-0x1a*-0x58+0x1f1+-0x9c0);const _0x563b96=_0x3034();let _0xed4a6b=_0x563b96[_0x453948];return _0xed4a6b;}import{defaultConfig}from'./default.js';const CONFIG_FILE=_0x288ecc(0x12f);function _0x3034(){const _0x32cc13=['2761504JqFURy','utf8','iflow','615295LsEpxQ','claudecode','4584zAnzWV','100CZNxGZ','10850CvRiGI','join','agents','1881620eqPPEo','codex','cdspec.config.yaml','3075384ZwGUaD','length','2595614UYnvOg','commandBindings'];_0x3034=function(){return _0x32cc13;};return _0x3034();}export async function loadConfig(_0x47bb2a){const _0x1bc7f4=_0x288ecc,_0x4165e9=_0x3be597[_0x1bc7f4(0x12b)](_0x47bb2a,CONFIG_FILE);if(!await pathExists(_0x4165e9))return defaultConfig;const _0x5d8b4c=await readFile(_0x4165e9,_0x1bc7f4(0x124)),_0x5c66fb=parse(_0x5d8b4c);if(!_0x5c66fb)return defaultConfig;const _0x301f87={'commandBindings':_0x5c66fb[_0x1bc7f4(0x122)]&&_0x5c66fb['commandBindings'][_0x1bc7f4(0x131)]>-0x1e1e+-0xd1b+0x2b39?_0x5c66fb[_0x1bc7f4(0x122)]:defaultConfig[_0x1bc7f4(0x122)],'agents':{'codex':{...defaultConfig[_0x1bc7f4(0x12c)]['codex'],..._0x5c66fb[_0x1bc7f4(0x12c)]?.[_0x1bc7f4(0x12e)]||{}},'claudecode':{...defaultConfig[_0x1bc7f4(0x12c)][_0x1bc7f4(0x127)],..._0x5c66fb[_0x1bc7f4(0x12c)]?.[_0x1bc7f4(0x127)]||{}},'iflow':{...defaultConfig[_0x1bc7f4(0x12c)][_0x1bc7f4(0x125)],..._0x5c66fb['agents']?.[_0x1bc7f4(0x125)]||{}}}};return _0x301f87;}
@@ -1 +1 @@
1
- function _0x6ab6(){var _0x45b7e0=['852410DCKzcw','9NtLXTI','join','isAbsolute','startsWith','5599566VArKKU','659304pQiHJa','1QWOfzb','80tGVQYg','slice','win32','18546gjOatV','homedir','11Hshdnw','40Jusuvk','83587XwHGfx','927466JgVzoe','posix','normalize','2846148xVmODo'];_0x6ab6=function(){return _0x45b7e0;};return _0x6ab6();}(function(_0x2c7ce1,_0x1d72a0){var _0x1e6e5a=_0x5932,_0x349bfb=_0x2c7ce1();while(!![]){try{var _0x4db017=-parseInt(_0x1e6e5a(0x71))/(0xf98+0x23ef+-0x3386)*(-parseInt(_0x1e6e5a(0x7a))/(-0x9d+-0x1*-0x43b+-0x39c))+-parseInt(_0x1e6e5a(0x7f))/(0x169f+0x86+-0x1722)*(-parseInt(_0x1e6e5a(0x70))/(0x2*0xc5+-0xb94+-0x21*-0x4e))+parseInt(_0x1e6e5a(0x72))/(-0x1d92+-0x1*0x1cc1+0x1d2c*0x2)*(-parseInt(_0x1e6e5a(0x75))/(-0xd13+0x25f9*-0x1+0x1106*0x3))+parseInt(_0x1e6e5a(0x79))/(-0x26ba+0x11eb+0x14d6)*(-parseInt(_0x1e6e5a(0x78))/(0x12f1*-0x1+0x3*-0xb55+0x34f8))+-parseInt(_0x1e6e5a(0x6f))/(-0x214c*-0x1+0x2*-0x130e+0x4d9)+-parseInt(_0x1e6e5a(0x7e))/(0xd01+-0x129+-0xbce*0x1)+parseInt(_0x1e6e5a(0x77))/(-0x277*-0xc+0xc7c+-0x2a05)*(parseInt(_0x1e6e5a(0x7d))/(0x1fe3+-0x1*-0x22e5+-0x42bc));if(_0x4db017===_0x1d72a0)break;else _0x349bfb['push'](_0x349bfb['shift']());}catch(_0x3a2e3d){_0x349bfb['push'](_0x349bfb['shift']());}}}(_0x6ab6,-0x5e5a2+0x22014*0x3+0x54d24));import _0xf0043 from'node:os';function _0x5932(_0x1be6a5,_0x454f35){_0x1be6a5=_0x1be6a5-(-0x1d5d+0x1b*0x1+0x1dae);var _0x18bf18=_0x6ab6();var _0xefe177=_0x18bf18[_0x1be6a5];return _0xefe177;}import _0xbb11e1 from'node:path';export function resolveAgentRoot(_0x43cf2e,_0x5f4bcf){var _0x2b60f2=_0x5932;if(_0x5f4bcf[_0x2b60f2(0x6e)]('~/')||_0x5f4bcf[_0x2b60f2(0x6e)]('~\x5c'))return _0xbb11e1[_0x2b60f2(0x6c)](_0xf0043[_0x2b60f2(0x76)](),_0x5f4bcf[_0x2b60f2(0x73)](0x1d3b+0x719*-0x1+-0x1620));if(_0xbb11e1[_0x2b60f2(0x74)][_0x2b60f2(0x6d)](_0x5f4bcf)||_0xbb11e1[_0x2b60f2(0x7b)][_0x2b60f2(0x6d)](_0x5f4bcf))return _0xbb11e1[_0x2b60f2(0x7c)](_0x5f4bcf);return _0xbb11e1['join'](_0x43cf2e,_0x5f4bcf);}
1
+ (function(_0x42e510,_0x4ebc00){var _0x13990c=_0x159e,_0x5e597d=_0x42e510();while(!![]){try{var _0x475a34=-parseInt(_0x13990c(0xf5))/(-0xef*0x3+0x1fe9+-0x1*0x1d1b)*(parseInt(_0x13990c(0xf6))/(0x57e+-0x3*0xc01+0x1e87))+-parseInt(_0x13990c(0xfc))/(0x17ec+-0x23dc+0xbf3)*(parseInt(_0x13990c(0xfd))/(0x10*0x15b+-0x205*0x10+-0x38c*-0x3))+-parseInt(_0x13990c(0xf8))/(0x8fc+-0x2126+0x97*0x29)*(-parseInt(_0x13990c(0xef))/(-0x6*-0x1c0+0x12e*0x3+0x5c*-0x27))+-parseInt(_0x13990c(0xf9))/(-0x1*-0x1a93+0xc12+-0x269e)+parseInt(_0x13990c(0xed))/(0x188e+0x67*-0x3a+-0x130)+parseInt(_0x13990c(0xfb))/(0x5*-0x2d9+0x1be0+-0xd9a)+-parseInt(_0x13990c(0xfe))/(0x2*-0xc23+-0x24e8+0x3d38)*(-parseInt(_0x13990c(0xf4))/(-0x1*-0x18b6+-0x22be+0xa13));if(_0x475a34===_0x4ebc00)break;else _0x5e597d['push'](_0x5e597d['shift']());}catch(_0x4f06c9){_0x5e597d['push'](_0x5e597d['shift']());}}}(_0xbe29,-0x1*-0x365bf+0x1b5156*0x1+-0x1058e9));import _0xacbb73 from'node:os';import _0x3792ea from'node:path';function _0x159e(_0x2ae775,_0x17604d){_0x2ae775=_0x2ae775-(0x5a8+0x487+-0x942);var _0x1a444d=_0xbe29();var _0x4feeee=_0x1a444d[_0x2ae775];return _0x4feeee;}function _0xbe29(){var _0x250d24=['startsWith','isAbsolute','normalize','3008731khJZxw','25615BEUxkZ','78yFJdtt','slice','780130iLwuvx','11676217gaWHkS','homedir','5674419Fkmgaa','325467TFPlWa','16wNqSlt','110PBfKUp','730480dPhCQO','posix','12crhwJI','join'];_0xbe29=function(){return _0x250d24;};return _0xbe29();}export function resolveAgentRoot(_0x23f517,_0x59101c){var _0x2308da=_0x159e;if(_0x59101c[_0x2308da(0xf1)]('~/')||_0x59101c[_0x2308da(0xf1)]('~\x5c'))return _0x3792ea[_0x2308da(0xf0)](_0xacbb73[_0x2308da(0xfa)](),_0x59101c[_0x2308da(0xf7)](-0xa6b*-0x1+-0x197*-0x12+0x61*-0x67));if(_0x3792ea['win32'][_0x2308da(0xf2)](_0x59101c)||_0x3792ea[_0x2308da(0xee)][_0x2308da(0xf2)](_0x59101c))return _0x3792ea[_0x2308da(0xf3)](_0x59101c);return _0x3792ea[_0x2308da(0xf0)](_0x23f517,_0x59101c);}
@@ -1 +1 @@
1
- const _0xd8f94f=_0xece2;(function(_0x509980,_0x36638f){const _0x28c3fe=_0xece2,_0x39f5e8=_0x509980();while(!![]){try{const _0x4085f1=parseInt(_0x28c3fe(0x8b))/(-0x9+-0x5d6+-0x8*-0xbc)+parseInt(_0x28c3fe(0x7e))/(-0x5b0+-0x25c1*0x1+0x2b73)*(-parseInt(_0x28c3fe(0x76))/(-0x1*-0x2263+-0x1*0x257b+0x31b))+-parseInt(_0x28c3fe(0x87))/(-0x1512+-0x38b+0x18a1)*(-parseInt(_0x28c3fe(0x89))/(0x1354+0x1*0x1c8b+-0xa*0x4c9))+parseInt(_0x28c3fe(0x83))/(-0x16bd*0x1+0x1*0x1a82+-0x3bf)*(-parseInt(_0x28c3fe(0x78))/(-0x12b4+-0x35*-0xb5+-0x12be))+parseInt(_0x28c3fe(0x85))/(0x7b2*0x1+0x175d+0xa9*-0x2f)+-parseInt(_0x28c3fe(0x79))/(0x2*0x1229+0x5cc*0x2+0x77*-0x67)+parseInt(_0x28c3fe(0x84))/(0x6d*0x2+-0xf2b+0xe5b);if(_0x4085f1===_0x36638f)break;else _0x39f5e8['push'](_0x39f5e8['shift']());}catch(_0xacd9bf){_0x39f5e8['push'](_0x39f5e8['shift']());}}}(_0x4702,-0xb7*-0x12a4+-0x180ffa+0x180eb7*0x1));import _0x293bf0 from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';function _0xece2(_0x20c02d,_0x5240fb){_0x20c02d=_0x20c02d-(-0xe71*0x1+0xb*0x12+0x5*0x2d3);const _0x1cd8be=_0x4702();let _0x2930fc=_0x1cd8be[_0x20c02d];return _0x2930fc;}function _0x4702(){const _0x16060=['2450673iRHvap','join','claudecode.skill.json','error','validate','2lGJhFu','SKILL.md','Target\x20already\x20exists\x20for\x20skill\x20\x22','target','emit','6693324TxQnkz','7433760DdAhUz','7207712EuhCwu','[claudecode]\x20name\x20is\x20required.','12laBGYG','stringify','999095UXBXfv','name','1626040KufsGX','push','description','4827099SlzdhZ','claudecode','7aKHKym'];_0x4702=function(){return _0x16060;};return _0x4702();}export class ClaudeCodeAdapter{[_0xd8f94f(0x81)]=_0xd8f94f(0x77);[_0xd8f94f(0x7d)](_0x55f54c){const _0x2749f6=_0xd8f94f,_0xdc8c53=[];return!_0x55f54c[_0x2749f6(0x8a)]&&_0xdc8c53[_0x2749f6(0x74)]({'level':_0x2749f6(0x7c),'message':_0x2749f6(0x86)}),_0xdc8c53;}async[_0xd8f94f(0x82)](_0x325317,_0x57ccf3,_0x169424){const _0x21cda3=_0xd8f94f;if(await pathExists(_0x57ccf3)&&!_0x169424)throw new Error(_0x21cda3(0x80)+_0x325317[_0x21cda3(0x8a)]+'\x22\x20at\x20'+_0x57ccf3+'.\x20Use\x20--force\x20to\x20overwrite.');_0x169424&&await emptyDir(_0x57ccf3);const _0x434cc9={'name':_0x325317[_0x21cda3(0x8a)],'description':_0x325317[_0x21cda3(0x75)],'entry':_0x21cda3(0x7f)};await emitWithLayout(_0x325317,_0x57ccf3,!![],[{'relativePath':_0x21cda3(0x7b),'content':JSON[_0x21cda3(0x88)](_0x434cc9,null,-0xd*0x130+-0x553+0x14c5)+'\x0a'}]);}}export function claudecodeSkillPath(_0x1b6651,_0x7a0011){const _0x2bb445=_0xd8f94f;return _0x293bf0[_0x2bb445(0x7a)](_0x1b6651,_0x2bb445(0x77),_0x7a0011);}
1
+ function _0x3106(){const _0x84208=['12WMFUSp','\x22\x20at\x20','72534tGBumX','122865oBoxXs','.\x20Use\x20--force\x20to\x20overwrite.','43143155pFeGbl','error','3407496KjLtdc','validate','target','7PXTajg','36GpmzuW','claudecode.skill.json','join','Target\x20already\x20exists\x20for\x20skill\x20\x22','push','6971280PTfULD','9WczYAR','name','2QpfOpM','7935896FGKfry','612235kOvfOh','claudecode'];_0x3106=function(){return _0x84208;};return _0x3106();}const _0x5a86b3=_0x48b9;(function(_0x5f0281,_0x2825c2){const _0x158e29=_0x48b9,_0x61f295=_0x5f0281();while(!![]){try{const _0x5a4292=-parseInt(_0x158e29(0x7f))/(-0xa*-0x2b6+0x2*-0x5b5+-0x3*0x53b)*(parseInt(_0x158e29(0x7d))/(0x14bf+-0xf0d*-0x1+-0x23ca))+-parseInt(_0x158e29(0x88))/(-0x837+0x94d*-0x1+0x281*0x7)+parseInt(_0x158e29(0x8c))/(0xc82+0xb5*0x3+-0xe9d)*(parseInt(_0x158e29(0x84))/(-0x20e3*-0x1+0x16a0+-0x377e))+parseInt(_0x158e29(0x83))/(0x25b*0x1+-0x2*0x83+-0x14f)+parseInt(_0x158e29(0x8b))/(-0x1d3*-0x3+0x154d+0x1abf*-0x1)*(-parseInt(_0x158e29(0x7e))/(0x1*-0x1fb5+-0x1a7a+0x3a37))+-parseInt(_0x158e29(0x7b))/(0xe3a+0x60d+-0x143e)*(parseInt(_0x158e29(0x91))/(0x2453+-0x93d*0x2+0x61*-0x2f))+parseInt(_0x158e29(0x86))/(-0xcf*0x9+0x53f+0x213)*(parseInt(_0x158e29(0x81))/(-0x1*0x1643+0x1f02+-0x11*0x83));if(_0x5a4292===_0x2825c2)break;else _0x61f295['push'](_0x61f295['shift']());}catch(_0x265f51){_0x61f295['push'](_0x61f295['shift']());}}}(_0x3106,-0x5*0xa6b6+0xc9376*-0x1+0x1aca5d));import _0xcb965c from'node:path';function _0x48b9(_0x42ac8d,_0x3e6838){_0x42ac8d=_0x42ac8d-(-0xb26+0x1b*0x2e+0x6c7);const _0x34effd=_0x3106();let _0x448434=_0x34effd[_0x42ac8d];return _0x448434;}import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class ClaudeCodeAdapter{[_0x5a86b3(0x8a)]=_0x5a86b3(0x80);[_0x5a86b3(0x89)](_0x3459ae){const _0x52ce17=_0x5a86b3,_0x519678=[];return!_0x3459ae[_0x52ce17(0x7c)]&&_0x519678[_0x52ce17(0x90)]({'level':_0x52ce17(0x87),'message':'[claudecode]\x20name\x20is\x20required.'}),_0x519678;}async['emit'](_0x1589f5,_0x46b62e,_0x5364b9){const _0x3865c2=_0x5a86b3;if(await pathExists(_0x46b62e)&&!_0x5364b9)throw new Error(_0x3865c2(0x8f)+_0x1589f5['name']+_0x3865c2(0x82)+_0x46b62e+_0x3865c2(0x85));_0x5364b9&&await emptyDir(_0x46b62e);const _0x32c365={'name':_0x1589f5[_0x3865c2(0x7c)],'description':_0x1589f5['description'],'entry':'SKILL.md'};await emitWithLayout(_0x1589f5,_0x46b62e,!![],[{'relativePath':_0x3865c2(0x8d),'content':JSON['stringify'](_0x32c365,null,-0xe33*-0x1+0x13cc+-0x21fd)+'\x0a'}]);}}export function claudecodeSkillPath(_0x4e59b1,_0xd04877){const _0x25d25b=_0x5a86b3;return _0xcb965c[_0x25d25b(0x8e)](_0x4e59b1,_0x25d25b(0x80),_0xd04877);}
@@ -1 +1 @@
1
- const _0x230d5b=_0x2828;(function(_0x33fcca,_0x96fd84){const _0x15bc5e=_0x2828,_0x50187a=_0x33fcca();while(!![]){try{const _0x2bb23a=-parseInt(_0x15bc5e(0x10e))/(-0xce+-0x249*-0xf+-0x3f*0x88)+-parseInt(_0x15bc5e(0x109))/(0x1*-0x3f9+0x7*-0x36d+0x952*0x3)*(-parseInt(_0x15bc5e(0x111))/(0x1b8*0x1+-0x7d2+0x139*0x5))+parseInt(_0x15bc5e(0x116))/(-0x5f0+0x336+0xea*0x3)+-parseInt(_0x15bc5e(0x106))/(-0x6a*-0x34+0x553*0x6+-0xa1*0x55)+-parseInt(_0x15bc5e(0x107))/(-0x9ef+0x15*0x4c+0x3b9)+-parseInt(_0x15bc5e(0x112))/(-0xfb4+-0x25*0x15+0x12c4)*(parseInt(_0x15bc5e(0x114))/(-0x155d+0x439*-0x4+0x2649))+parseInt(_0x15bc5e(0x113))/(-0x265e+0x81*-0x19+-0x100*-0x33);if(_0x2bb23a===_0x96fd84)break;else _0x50187a['push'](_0x50187a['shift']());}catch(_0x249cb0){_0x50187a['push'](_0x50187a['shift']());}}}(_0x239a,0x2289e+0x1b396+-0x219ac));import _0x5bc2b6 from'node:path';function _0x2828(_0x130ece,_0x34e498){_0x130ece=_0x130ece-(0x1e44+0x1b2b+-0x3869);const _0x7d7521=_0x239a();let _0x19d8b6=_0x7d7521[_0x130ece];return _0x19d8b6;}import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class CodexAdapter{['target']=_0x230d5b(0x10f);[_0x230d5b(0x10d)](_0x61f99b){const _0x14d01b=_0x230d5b,_0x2c299e=[];return!_0x61f99b[_0x14d01b(0x10b)]&&_0x2c299e['push']({'level':_0x14d01b(0x115),'message':'[codex]\x20'+_0x61f99b[_0x14d01b(0x108)]+_0x14d01b(0x110)}),_0x2c299e;}async['emit'](_0x35c907,_0x1d1341,_0x430564){const _0x26ebd2=_0x230d5b;if(await pathExists(_0x1d1341)&&!_0x430564)throw new Error(_0x26ebd2(0x10c)+_0x35c907[_0x26ebd2(0x108)]+_0x26ebd2(0x10a)+_0x1d1341+'.\x20Use\x20--force\x20to\x20overwrite.');_0x430564&&await emptyDir(_0x1d1341),await emitWithLayout(_0x35c907,_0x1d1341,!![],[]);}}function _0x239a(){const _0x19582f=['name','2KnzRWh','\x22\x20at\x20','description','Target\x20already\x20exists\x20for\x20skill\x20\x22','validate','55912bqrGED','codex',':\x20description\x20is\x20required.','91323fSBALQ','56bKbWdN','3772692uOOaXz','108680FUCEMZ','error','774236vxiloy','join','1065170nYlNiB','901356JeMCxq'];_0x239a=function(){return _0x19582f;};return _0x239a();}export function codexSkillPath(_0x10a67c,_0x5bee00){const _0x5529b3=_0x230d5b;return _0x5bc2b6[_0x5529b3(0x117)](_0x10a67c,_0x5529b3(0x10f),_0x5bee00);}
1
+ const _0x2a8cf3=_0x4be3;function _0xffd0(){const _0x129deb=['join','target','156114TjvsJZ','description','9SRxZhf','Target\x20already\x20exists\x20for\x20skill\x20\x22','436040rHUWcS','push','4709538RvzwkO','8494500CfedFt','codex','79012lIITDW','108752XafiTE','name','8sigSPS','emit','290069AlQlMZ','15Rihtjg'];_0xffd0=function(){return _0x129deb;};return _0xffd0();}(function(_0x54c345,_0xb9f2d8){const _0x33dee2=_0x4be3,_0x5364a5=_0x54c345();while(!![]){try{const _0x506de0=parseInt(_0x33dee2(0x100))/(0x200e+0x10a5*0x2+-0x4157)+-parseInt(_0x33dee2(0xf6))/(-0x12b+-0x1794+0x18c1)+parseInt(_0x33dee2(0xf4))/(-0x81*-0x6+0x14*0xa4+-0xfd3)*(-parseInt(_0x33dee2(0xfb))/(-0xc9c+0xb*-0x132+0x19c6))+parseInt(_0x33dee2(0xef))/(0x201a+-0x1*-0xdb5+-0x2dca)*(-parseInt(_0x33dee2(0xf2))/(0x22b7+-0x1*-0x8f0+-0x2ba1))+-parseInt(_0x33dee2(0xfc))/(0x83f*0x1+0x1e33+0x57d*-0x7)*(-parseInt(_0x33dee2(0xfe))/(-0x7be+-0x2*0xdd5+-0x510*-0x7))+-parseInt(_0x33dee2(0xf8))/(-0x5*0x62f+-0x16a*-0x16+-0x28)+parseInt(_0x33dee2(0xf9))/(-0x2*-0x9bd+-0xbb1+-0x7bf);if(_0x506de0===_0xb9f2d8)break;else _0x5364a5['push'](_0x5364a5['shift']());}catch(_0x1c6e14){_0x5364a5['push'](_0x5364a5['shift']());}}}(_0xffd0,0x56234+0x6e790+0x23d*-0x39b));import _0x1fdc0b from'node:path';function _0x4be3(_0x32e71f,_0x4c509f){_0x32e71f=_0x32e71f-(0xd34+0xc*-0x71+-0x69*0x11);const _0x300840=_0xffd0();let _0x1fdc0b=_0x300840[_0x32e71f];return _0x1fdc0b;}import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class CodexAdapter{[_0x2a8cf3(0xf1)]=_0x2a8cf3(0xfa);['validate'](_0xd59ca2){const _0x5d4041=_0x2a8cf3,_0x4bd531=[];return!_0xd59ca2[_0x5d4041(0xf3)]&&_0x4bd531[_0x5d4041(0xf7)]({'level':'error','message':'[codex]\x20'+_0xd59ca2['name']+':\x20description\x20is\x20required.'}),_0x4bd531;}async[_0x2a8cf3(0xff)](_0x404bfa,_0x376bfd,_0x173a4c){const _0x37d7d0=_0x2a8cf3;if(await pathExists(_0x376bfd)&&!_0x173a4c)throw new Error(_0x37d7d0(0xf5)+_0x404bfa[_0x37d7d0(0xfd)]+'\x22\x20at\x20'+_0x376bfd+'.\x20Use\x20--force\x20to\x20overwrite.');_0x173a4c&&await emptyDir(_0x376bfd),await emitWithLayout(_0x404bfa,_0x376bfd,!![],[]);}}export function codexSkillPath(_0x337943,_0x34944b){const _0x2dbc15=_0x2a8cf3;return _0x1fdc0b[_0x2dbc15(0xf0)](_0x337943,_0x2dbc15(0xfa),_0x34944b);}
@@ -1 +1 @@
1
- function _0x4828(_0xdb5f5e,_0x216752){_0xdb5f5e=_0xdb5f5e-(-0x1a86+-0x62f*-0x1+0x159d);const _0x5597fd=_0x2768();let _0x4bf29c=_0x5597fd[_0xdb5f5e];return _0x4bf29c;}const _0x217185=_0x4828;(function(_0x87185a,_0x27daae){const _0x4b6f2e=_0x4828,_0x43c085=_0x87185a();while(!![]){try{const _0x2c7bd9=-parseInt(_0x4b6f2e(0x156))/(-0x114e+-0xa79+-0xfe*-0x1c)+-parseInt(_0x4b6f2e(0x147))/(0x13*0x185+-0x1bf0+-0xed*0x1)+-parseInt(_0x4b6f2e(0x14c))/(0xe80+-0xe*0x43+-0xad3)+parseInt(_0x4b6f2e(0x146))/(0x23e3*0x1+-0x17*-0x119+-0x3d1e)*(-parseInt(_0x4b6f2e(0x160))/(-0x35*-0x6d+-0x94a+-0xd42))+-parseInt(_0x4b6f2e(0x15d))/(0x110c*-0x2+-0x3b*0x34+0x2e1a)*(-parseInt(_0x4b6f2e(0x152))/(0xfbd*0x1+0x8*0x3fa+0xe*-0x365))+-parseInt(_0x4b6f2e(0x14e))/(0x258e+0x19*-0xf+-0x240f)+parseInt(_0x4b6f2e(0x15f))/(0x15b1+0x2ba*0x9+-0x2e32)*(parseInt(_0x4b6f2e(0x15c))/(-0x1e3d*0x1+-0x42*0x17+0x2435));if(_0x2c7bd9===_0x27daae)break;else _0x43c085['push'](_0x43c085['shift']());}catch(_0x1fce04){_0x43c085['push'](_0x43c085['shift']());}}}(_0x2768,0x250*-0x45d+0xe*0x153eb+-0x2*-0xe2af));import _0x5ab949 from'node:path';function _0x2768(){const _0x40e6a7=['495tUpJxM','1165RZRtJd','12772HelIoA','2222372NCbTwt','entry:\x20\x22prompt.md\x22','replace','join','body','3641907DJroRT','Target\x20already\x20exists\x20for\x20skill\x20\x22','3395664ApXTCg','name',':\x20description\x20is\x20empty.','description:\x20\x22','42IitGoX','iflow.skill.yaml','validate','push','867063unJpTK','description','warning','iflow','.\x20Use\x20--force\x20to\x20overwrite.','prompt.md','781050XyvXsN','737934HTtAUr','emit'];_0x2768=function(){return _0x40e6a7;};return _0x2768();}import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class IFlowAdapter{['target']=_0x217185(0x159);[_0x217185(0x154)](_0x34351d){const _0xcdf97b=_0x217185,_0x533768=[];return!_0x34351d[_0xcdf97b(0x157)]&&_0x533768[_0xcdf97b(0x155)]({'level':_0xcdf97b(0x158),'message':'[iflow]\x20'+_0x34351d[_0xcdf97b(0x14f)]+_0xcdf97b(0x150)}),_0x533768;}async[_0x217185(0x15e)](_0xc433aa,_0x5053bc,_0x2fc742){const _0x27831c=_0x217185;if(await pathExists(_0x5053bc)&&!_0x2fc742)throw new Error(_0x27831c(0x14d)+_0xc433aa['name']+'\x22\x20at\x20'+_0x5053bc+_0x27831c(0x15a));_0x2fc742&&await emptyDir(_0x5053bc);const _0xfd08d4=['name:\x20\x22'+_0xc433aa[_0x27831c(0x14f)]+'\x22',_0x27831c(0x151)+_0xc433aa['description'][_0x27831c(0x149)](/"/g,'\x5c\x22')+'\x22',_0x27831c(0x148)][_0x27831c(0x14a)]('\x0a');await emitWithLayout(_0xc433aa,_0x5053bc,![],[{'relativePath':_0x27831c(0x15b),'content':'#\x20'+_0xc433aa[_0x27831c(0x14f)]+'\x0a\x0a'+_0xc433aa[_0x27831c(0x14b)]+'\x0a'},{'relativePath':_0x27831c(0x153),'content':_0xfd08d4+'\x0a'}]);}}export function iflowSkillPath(_0x31d65f,_0x4c7897){const _0x5eae23=_0x217185;return _0x5ab949[_0x5eae23(0x14a)](_0x31d65f,_0x5eae23(0x159),_0x4c7897);}
1
+ function _0x50be(_0x2c4e0e,_0x14179a){_0x2c4e0e=_0x2c4e0e-(0xf4d*-0x2+0xdfe+0x8e*0x21);const _0x55b12f=_0x3fae();let _0x48fc66=_0x55b12f[_0x2c4e0e];return _0x48fc66;}const _0x9cdb35=_0x50be;(function(_0x387943,_0x3c08d7){const _0x3c8617=_0x50be,_0x4a4f0e=_0x387943();while(!![]){try{const _0x4b1fc9=parseInt(_0x3c8617(0x1bb))/(0x8b*-0x3c+-0x1b9+-0x1*-0x224e)*(-parseInt(_0x3c8617(0x1c6))/(0x62f*-0x1+-0x219a+0x27cb))+-parseInt(_0x3c8617(0x1ba))/(0x5a5+-0x1831*-0x1+0x1fd*-0xf)*(parseInt(_0x3c8617(0x1c3))/(-0x1*-0xd2e+0x9c2+-0x16ec))+parseInt(_0x3c8617(0x1c1))/(0x1869+-0xa6+-0x6*0x3f5)+-parseInt(_0x3c8617(0x1c7))/(-0x231a+-0x111f+-0x6b*-0x7d)+parseInt(_0x3c8617(0x1b4))/(0x1*0x1421+-0x258d+0x1173)+parseInt(_0x3c8617(0x1b3))/(0x92*0x5+-0x983*-0x2+-0x15d8)+parseInt(_0x3c8617(0x1bc))/(0x1106+0x2338+-0x3*0x1167);if(_0x4b1fc9===_0x3c08d7)break;else _0x4a4f0e['push'](_0x4a4f0e['shift']());}catch(_0x287a95){_0x4a4f0e['push'](_0x4a4f0e['shift']());}}}(_0x3fae,-0x1d5*0x122+-0xb8ef8+0x15c2c2));function _0x3fae(){const _0x4eb92c=['replace','116jpLqde','description','iflow.skill.yaml','883010DYGVta','5797956GOEqlk','[iflow]\x20','name','.\x20Use\x20--force\x20to\x20overwrite.','join','target','2017080QDyoLl','5353075iDWgrI','warning','body','validate','\x22\x20at\x20','iflow','63561hEzRca','1nhtmry','9644400lRbYwH',':\x20description\x20is\x20empty.','push','entry:\x20\x22prompt.md\x22','Target\x20already\x20exists\x20for\x20skill\x20\x22','2332010OZnXDi'];_0x3fae=function(){return _0x4eb92c;};return _0x3fae();}import _0x48fc66 from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class IFlowAdapter{[_0x9cdb35(0x1b2)]=_0x9cdb35(0x1b9);[_0x9cdb35(0x1b7)](_0x5a7c4a){const _0x49d272=_0x9cdb35,_0x196826=[];return!_0x5a7c4a[_0x49d272(0x1c4)]&&_0x196826[_0x49d272(0x1be)]({'level':_0x49d272(0x1b5),'message':_0x49d272(0x1c8)+_0x5a7c4a[_0x49d272(0x1c9)]+_0x49d272(0x1bd)}),_0x196826;}async['emit'](_0x5ab4fc,_0x26b519,_0x4a470c){const _0x1e71f8=_0x9cdb35;if(await pathExists(_0x26b519)&&!_0x4a470c)throw new Error(_0x1e71f8(0x1c0)+_0x5ab4fc[_0x1e71f8(0x1c9)]+_0x1e71f8(0x1b8)+_0x26b519+_0x1e71f8(0x1ca));_0x4a470c&&await emptyDir(_0x26b519);const _0x1bef67=['name:\x20\x22'+_0x5ab4fc[_0x1e71f8(0x1c9)]+'\x22','description:\x20\x22'+_0x5ab4fc[_0x1e71f8(0x1c4)][_0x1e71f8(0x1c2)](/"/g,'\x5c\x22')+'\x22',_0x1e71f8(0x1bf)][_0x1e71f8(0x1cb)]('\x0a');await emitWithLayout(_0x5ab4fc,_0x26b519,![],[{'relativePath':'prompt.md','content':'#\x20'+_0x5ab4fc['name']+'\x0a\x0a'+_0x5ab4fc[_0x1e71f8(0x1b6)]+'\x0a'},{'relativePath':_0x1e71f8(0x1c5),'content':_0x1bef67+'\x0a'}]);}}export function iflowSkillPath(_0x38ad3a,_0x522bb6){const _0x158b0b=_0x9cdb35;return _0x48fc66[_0x158b0b(0x1cb)](_0x38ad3a,_0x158b0b(0x1b9),_0x522bb6);}
@@ -1 +1 @@
1
- (function(_0x6a6eee,_0x4e02d7){const _0xfcff5=_0x1985,_0x1d3562=_0x6a6eee();while(!![]){try{const _0xcae58=parseInt(_0xfcff5(0x129))/(-0x1*-0x90e+-0x1767+0xe5a)*(parseInt(_0xfcff5(0x138))/(-0x1b3c+-0x98*0x13+-0x2686*-0x1))+-parseInt(_0xfcff5(0x135))/(-0x14*0x80+-0x2ad*-0xd+-0x18c6)+parseInt(_0xfcff5(0x13c))/(0x3aa+-0x10c7+0xd21)+parseInt(_0xfcff5(0x12e))/(0x1*-0x89b+-0x24a+0xaea)*(parseInt(_0xfcff5(0x12d))/(0x1*-0x4ac+-0xd3*0x2d+0x1*0x29c9))+-parseInt(_0xfcff5(0x139))/(0x2646+-0x10a2*0x2+-0x4fb)+parseInt(_0xfcff5(0x12f))/(0x3*0xc61+-0x1d87*-0x1+-0x42a2)*(-parseInt(_0xfcff5(0x131))/(0x3ef*-0x7+0x2*0x67c+0x15*0xb2))+parseInt(_0xfcff5(0x133))/(-0x7*0x16d+-0x985*-0x1+-0x80*-0x1)*(-parseInt(_0xfcff5(0x13d))/(0x4fa+0x1f04+-0x23f3));if(_0xcae58===_0x4e02d7)break;else _0x1d3562['push'](_0x1d3562['shift']());}catch(_0x1374c1){_0x1d3562['push'](_0x1d3562['shift']());}}}(_0x1a5f,-0xeb6*0x6b+-0x12c4ef+0x262fb7*0x1));import{ClaudeCodeAdapter}from'./claudecode-adapter.js';import{CodexAdapter}from'./codex-adapter.js';import{IFlowAdapter}from'./iflow-adapter.js';const adapters={'codex':new CodexAdapter(),'claudecode':new ClaudeCodeAdapter(),'iflow':new IFlowAdapter()};function _0x1a5f(){const _0x39509d=['codex','2804860rgkIyA','1419kklWAe','Unknown\x20target\x20\x22','claudecode','1LdhzFE','map','iflow','ifow','3431442rHAwUR','15WQdGOo','7208LgXxOs','\x22.\x20Use\x20codex|claudecode|iflow|all.','945ocjADk','from','810cfPqdB','split','2970030QfFghP','filter','length','1383370ZjKSEM','8007993izRjJL','all'];_0x1a5f=function(){return _0x39509d;};return _0x1a5f();}export function getAdapter(_0x53ed76){return adapters[_0x53ed76];}export function expandTargets(_0x98a6){const _0x36a49a=_0x1985,_0x3b7e67=_0x98a6['trim']()['toLowerCase']();if(_0x3b7e67===_0x36a49a(0x13a))return[_0x36a49a(0x13b),_0x36a49a(0x13f),_0x36a49a(0x12b)];const _0x1237fa=_0x3b7e67[_0x36a49a(0x134)](',')[_0x36a49a(0x12a)](_0x5aac0c=>_0x5aac0c['trim']())[_0x36a49a(0x136)](Boolean)['map'](normalizeTargetAlias);if(_0x1237fa[_0x36a49a(0x137)]===0x6ad+0x46c*0x2+-0xf85)throw new Error(_0x36a49a(0x13e)+_0x98a6+_0x36a49a(0x130));const _0x144b2f=_0x1237fa[_0x36a49a(0x136)](_0xd49f42=>_0xd49f42!=='codex'&&_0xd49f42!==_0x36a49a(0x13f)&&_0xd49f42!==_0x36a49a(0x12b));if(_0x144b2f[_0x36a49a(0x137)]>-0x1844+-0x1*0x1fb9+0x37fd)throw new Error(_0x36a49a(0x13e)+_0x144b2f[-0x1f68+0x16b6+0x35*0x2a]+'\x22.\x20Use\x20codex|claudecode|iflow|all.');return Array[_0x36a49a(0x132)](new Set(_0x1237fa));}function _0x1985(_0x5f2c76,_0x185124){_0x5f2c76=_0x5f2c76-(0x148f+0x5a8+-0x190e);const _0x2c8794=_0x1a5f();let _0xa3df12=_0x2c8794[_0x5f2c76];return _0xa3df12;}function normalizeTargetAlias(_0x161463){const _0x110af2=_0x1985;if(_0x161463===_0x110af2(0x12c))return _0x110af2(0x12b);return _0x161463;}
1
+ (function(_0x27c051,_0x389206){const _0x37608a=_0xed36,_0x4caf1f=_0x27c051();while(!![]){try{const _0x30adca=-parseInt(_0x37608a(0x121))/(0x1*0x12d6+-0x1f*0x63+-0x6*0x124)+parseInt(_0x37608a(0x123))/(-0x2*-0xce2+-0x1cf*-0x11+0x107*-0x37)*(-parseInt(_0x37608a(0x11e))/(0x2008+-0x1b9a*0x1+-0x27*0x1d))+-parseInt(_0x37608a(0x126))/(-0x756*-0x2+-0x5d*0x3+-0xd91)*(-parseInt(_0x37608a(0x111))/(-0x4*0x5e3+0x1b6f+0x21*-0x1e))+-parseInt(_0x37608a(0x11d))/(-0x1*-0x18ab+0xfe6+-0x288b*0x1)*(parseInt(_0x37608a(0x115))/(0xb9d+-0x2165+0x15cf))+parseInt(_0x37608a(0x117))/(-0x1512+-0x1262+-0x1*-0x277c)*(-parseInt(_0x37608a(0x114))/(-0x1307*-0x1+0x3a5*-0x1+0x1*-0xf59))+-parseInt(_0x37608a(0x11f))/(-0x22c5*0x1+-0x5*-0x769+-0x23e)*(-parseInt(_0x37608a(0x11b))/(0xedd+-0x1a1e+0xb4c))+parseInt(_0x37608a(0x119))/(0x3*-0x5d4+0x7*-0x4bd+-0x1*-0x32b3);if(_0x30adca===_0x389206)break;else _0x4caf1f['push'](_0x4caf1f['shift']());}catch(_0x43eae0){_0x4caf1f['push'](_0x4caf1f['shift']());}}}(_0x809d,0x9a2a3+0xe*0x11d90+-0xf6836));import{ClaudeCodeAdapter}from'./claudecode-adapter.js';import{CodexAdapter}from'./codex-adapter.js';import{IFlowAdapter}from'./iflow-adapter.js';const adapters={'codex':new CodexAdapter(),'claudecode':new ClaudeCodeAdapter(),'iflow':new IFlowAdapter()};function _0xed36(_0x211044,_0x134219){_0x211044=_0x211044-(-0x102a+0x5ff+-0x1*-0xb3b);const _0x19becc=_0x809d();let _0x259f21=_0x19becc[_0x211044];return _0x259f21;}export function getAdapter(_0x1492d3){return adapters[_0x1492d3];}export function expandTargets(_0x35e449){const _0x5983fe=_0xed36,_0x42a426=_0x35e449['trim']()['toLowerCase']();if(_0x42a426==='all')return[_0x5983fe(0x110),'claudecode',_0x5983fe(0x11c)];const _0x4e3969=_0x42a426[_0x5983fe(0x116)](',')[_0x5983fe(0x124)](_0x45d629=>_0x45d629[_0x5983fe(0x125)]())['filter'](Boolean)['map'](normalizeTargetAlias);if(_0x4e3969['length']===0x1*0x1a+-0xec*0x6+-0x2*-0x2b7)throw new Error('Unknown\x20target\x20\x22'+_0x35e449+_0x5983fe(0x112));const _0x5db013=_0x4e3969[_0x5983fe(0x118)](_0x395b73=>_0x395b73!==_0x5983fe(0x110)&&_0x395b73!==_0x5983fe(0x122)&&_0x395b73!==_0x5983fe(0x11c));if(_0x5db013[_0x5983fe(0x113)]>0x25e8+-0x14ce*0x1+-0x111a)throw new Error(_0x5983fe(0x11a)+_0x5db013[-0x153*-0x1a+-0x8ed*0x2+0x4*-0x425]+_0x5983fe(0x112));return Array[_0x5983fe(0x120)](new Set(_0x4e3969));}function normalizeTargetAlias(_0x3238e9){const _0x1707f1=_0xed36;if(_0x3238e9==='ifow')return _0x1707f1(0x11c);return _0x3238e9;}function _0x809d(){const _0x1295a2=['581556LaHCEc','395751dDXDPW','405560hdeLmo','from','1282562xBirYO','claudecode','2MeZsMN','map','trim','8VIiBeB','codex','271625ltTwQn','\x22.\x20Use\x20codex|claudecode|iflow|all.','length','1587906XJoHfT','91iHRLHG','split','8TfMVwX','filter','27023160dHRZwX','Unknown\x20target\x20\x22','308hieNYI','iflow'];_0x809d=function(){return _0x1295a2;};return _0x809d();}
@@ -1 +1 @@
1
- (function(_0x546e31,_0x29ab05){const _0xc954fa=_0x55b2,_0x1de45b=_0x546e31();while(!![]){try{const _0x423744=parseInt(_0xc954fa(0x1f4))/(-0x1c9+0x1fbd+-0x29*0xbb)*(-parseInt(_0xc954fa(0x1ee))/(-0x7b8*-0x5+0x1605*0x1+-0x3c9b))+-parseInt(_0xc954fa(0x1ed))/(0x4*0x4a0+-0x1504+0x287)*(parseInt(_0xc954fa(0x1e9))/(-0x4*0x1df+0x825*-0x2+0x17ca))+-parseInt(_0xc954fa(0x1f7))/(0x11d*0x22+0x141b+-0x39f0)*(parseInt(_0xc954fa(0x1eb))/(-0x26fa+-0xfe4+0x36e4))+parseInt(_0xc954fa(0x1ec))/(-0x2*0xbe1+-0x1cf*0x11+-0x14*-0x2ba)*(-parseInt(_0xc954fa(0x1f5))/(-0x22c4+0x1*0x7ae+0xd*0x216))+parseInt(_0xc954fa(0x1f6))/(0xe1a+-0x8ef*-0x3+-0x28de)+parseInt(_0xc954fa(0x1f2))/(0xb82+-0x17af+0xc37)*(-parseInt(_0xc954fa(0x1f3))/(0x1744+0x54+0x178d*-0x1))+parseInt(_0xc954fa(0x1e3))/(-0x40d+-0x10f2+0x150b);if(_0x423744===_0x29ab05)break;else _0x1de45b['push'](_0x1de45b['shift']());}catch(_0x4713a0){_0x1de45b['push'](_0x1de45b['shift']());}}}(_0x50a8,-0x676cf*-0x1+-0x5e7fa+-0xec21*-0xd));function _0x55b2(_0x3213f7,_0x114261){_0x3213f7=_0x3213f7-(0xcc*-0x5+-0x9ea+-0xfc9*-0x1);const _0x4b2467=_0x50a8();let _0x12b761=_0x4b2467[_0x3213f7];return _0x12b761;}import{copyFile,readFile,readdir,writeFile}from'node:fs/promises';import _0x12b761 from'node:path';function _0x50a8(){const _0x12351e=['sourcePath','references','3954260nclGzq','11IBDZvI','479XAVBWg','6136712aejiUv','2180889KfSUCy','2264065GhoxoD','agents','66925980iSOmVd','join','content','SKILL.md','dirname','utf8','1756KecoDO','relativePath','18fQgHCA','7zDGGAD','9363XWhAVh','4618imbNhX','name'];_0x50a8=function(){return _0x12351e;};return _0x50a8();}import{ensureDir,pathExists}from'../../utils/fs.js';export async function emitWithLayout(_0x1c8a72,_0x39dc7c,_0x999770,_0x21b165){const _0x2395d2=_0x55b2;await ensureDir(_0x39dc7c);if(_0x999770){const _0x362e54=_0x12b761['join'](_0x1c8a72['sourcePath'],_0x2395d2(0x1e6));await copyFile(_0x362e54,_0x12b761[_0x2395d2(0x1e4)](_0x39dc7c,'SKILL.md'));}for(const _0x13c0b8 of _0x21b165){const _0x4e2989=_0x12b761['join'](_0x39dc7c,_0x13c0b8[_0x2395d2(0x1ea)]);await ensureDir(_0x12b761[_0x2395d2(0x1e7)](_0x4e2989)),await writeFile(_0x4e2989,_0x13c0b8[_0x2395d2(0x1e5)],_0x2395d2(0x1e8));}const _0x53e82e=[_0x2395d2(0x1f8),_0x2395d2(0x1f1),'scripts','assets'];for(const _0x53a9eb of _0x53e82e){const _0x14ae8d=_0x12b761[_0x2395d2(0x1e4)](_0x1c8a72[_0x2395d2(0x1f0)],_0x53a9eb);if(!await pathExists(_0x14ae8d))continue;await copyFolder(_0x14ae8d,_0x12b761['join'](_0x39dc7c,_0x53a9eb));}}async function copyFolder(_0xf6de94,_0x2a419d){const _0x7327ef=_0x55b2;await ensureDir(_0x2a419d);const _0x1d6da1=await readdir(_0xf6de94,{'withFileTypes':!![]});for(const _0x4a809e of _0x1d6da1){const _0x301daf=_0x12b761[_0x7327ef(0x1e4)](_0xf6de94,_0x4a809e[_0x7327ef(0x1ef)]),_0xb4fbab=_0x12b761[_0x7327ef(0x1e4)](_0x2a419d,_0x4a809e[_0x7327ef(0x1ef)]);if(_0x4a809e['isDirectory']()){await copyFolder(_0x301daf,_0xb4fbab);continue;}const _0x46b295=await readFile(_0x301daf);await writeFile(_0xb4fbab,_0x46b295);}}
1
+ (function(_0x52939b,_0x43668c){const _0x11223b=_0x1db3,_0x3df2d0=_0x52939b();while(!![]){try{const _0xe98a7b=parseInt(_0x11223b(0x1db))/(0x186a+-0xf23+0x946*-0x1)+-parseInt(_0x11223b(0x1df))/(-0x3*0xbeb+-0x1b1*0x17+0x4aaa)+parseInt(_0x11223b(0x1e0))/(0x2543*0x1+-0xc60+-0x18e*0x10)*(-parseInt(_0x11223b(0x1d6))/(-0x12bd+0x25a5+0x9c*-0x1f))+parseInt(_0x11223b(0x1d7))/(0x2*-0xe23+0x19e3+0x2c*0xe)+parseInt(_0x11223b(0x1d8))/(-0xe65+0x169b+0x2*-0x418)*(parseInt(_0x11223b(0x1d4))/(-0x20fc*-0x1+0x1105*-0x1+-0xcc*0x14))+parseInt(_0x11223b(0x1d9))/(-0x9*0x1e5+0x2127+-0x1012)+-parseInt(_0x11223b(0x1e2))/(-0x21cf*0x1+0x15f2+-0xbe6*-0x1);if(_0xe98a7b===_0x43668c)break;else _0x3df2d0['push'](_0x3df2d0['shift']());}catch(_0x26e1c3){_0x3df2d0['push'](_0x3df2d0['shift']());}}}(_0x5e4c,0x2afdc+-0x9cdec+0x63707*0x2));import{copyFile,readFile,readdir,writeFile}from'node:fs/promises';import _0x4d5e2d from'node:path';import{ensureDir,pathExists}from'../../utils/fs.js';export async function emitWithLayout(_0x5a230a,_0x5040ca,_0x4d2429,_0x5b3b81){const _0x312d37=_0x1db3;await ensureDir(_0x5040ca);if(_0x4d2429){const _0x466c73=_0x4d5e2d[_0x312d37(0x1e1)](_0x5a230a[_0x312d37(0x1cf)],_0x312d37(0x1da));await copyFile(_0x466c73,_0x4d5e2d[_0x312d37(0x1e1)](_0x5040ca,_0x312d37(0x1da)));}for(const _0x1a319f of _0x5b3b81){const _0x449cc5=_0x4d5e2d[_0x312d37(0x1e1)](_0x5040ca,_0x1a319f['relativePath']);await ensureDir(_0x4d5e2d[_0x312d37(0x1dd)](_0x449cc5)),await writeFile(_0x449cc5,_0x1a319f[_0x312d37(0x1d0)],'utf8');}const _0x458f6f=[_0x312d37(0x1d1),_0x312d37(0x1de),_0x312d37(0x1d2),_0x312d37(0x1d5)];for(const _0x31753e of _0x458f6f){const _0x3f83ac=_0x4d5e2d[_0x312d37(0x1e1)](_0x5a230a[_0x312d37(0x1cf)],_0x31753e);if(!await pathExists(_0x3f83ac))continue;await copyFolder(_0x3f83ac,_0x4d5e2d['join'](_0x5040ca,_0x31753e));}}function _0x1db3(_0x1667ee,_0x237dd9){_0x1667ee=_0x1667ee-(-0x1a*0x3d+0x22c0+-0x1abf);const _0x2ac134=_0x5e4c();let _0x150205=_0x2ac134[_0x1667ee];return _0x150205;}function _0x5e4c(){const _0x2b7bab=['2848176eJfImt','SKILL.md','379442pGTMbs','isDirectory','dirname','references','927544WVsyyg','24xnDsxh','join','5754762rCJlps','sourcePath','content','agents','scripts','name','1043MDUTfZ','assets','45784ghvsAS','3294495FCEZvW','5982XZKdNx'];_0x5e4c=function(){return _0x2b7bab;};return _0x5e4c();}async function copyFolder(_0x569850,_0x6e5935){const _0x355b5e=_0x1db3;await ensureDir(_0x6e5935);const _0x3e7bdc=await readdir(_0x569850,{'withFileTypes':!![]});for(const _0x30afb5 of _0x3e7bdc){const _0x53ce04=_0x4d5e2d[_0x355b5e(0x1e1)](_0x569850,_0x30afb5[_0x355b5e(0x1d3)]),_0x48d68d=_0x4d5e2d['join'](_0x6e5935,_0x30afb5['name']);if(_0x30afb5[_0x355b5e(0x1dc)]()){await copyFolder(_0x53ce04,_0x48d68d);continue;}const _0x1a6d4a=await readFile(_0x53ce04);await writeFile(_0x48d68d,_0x1a6d4a);}}
@@ -1 +1 @@
1
- const _0x11d058=_0x49c3;function _0x49c3(_0xb12421,_0x1fe86a){_0xb12421=_0xb12421-(0x25*-0x9+-0x9b+-0x6*-0x6b);const _0x2fb4f2=_0x575f();let _0x373059=_0x2fb4f2[_0xb12421];return _0x373059;}(function(_0x5c5b8d,_0x3c1deb){const _0x496908=_0x49c3,_0xb766bb=_0x5c5b8d();while(!![]){try{const _0x5600de=parseInt(_0x496908(0x9d))/(0x1216+-0x15d7+-0x1*-0x3c2)*(parseInt(_0x496908(0xa6))/(0x1d39+0x271+-0x1fa8))+-parseInt(_0x496908(0xad))/(0x526*-0x4+-0x1819*0x1+0x2cb4)*(-parseInt(_0x496908(0xb4))/(-0x17b8+-0xc0*-0x2e+-0xac4))+parseInt(_0x496908(0x9e))/(0xdba*-0x1+-0x15cb*0x1+-0x11c5*-0x2)*(-parseInt(_0x496908(0x9a))/(-0xa*-0x125+-0x82*0xb+-0x5d6))+parseInt(_0x496908(0xa8))/(-0x1*-0xf17+0x20*0x89+0x28*-0xce)*(-parseInt(_0x496908(0x9c))/(-0x1af*-0xf+0x3f1*0x7+-0x34d0))+parseInt(_0x496908(0xa4))/(-0x14d5+-0x1*0x19ea+-0x1764*-0x2)+parseInt(_0x496908(0xae))/(0x249c+-0x1*-0xb04+0x2*-0x17cb)+parseInt(_0x496908(0xa3))/(0x2513*-0x1+0x11f3+-0x1*-0x132b)*(-parseInt(_0x496908(0x9f))/(0x1c09+0xc26+-0x2823));if(_0x5600de===_0x3c1deb)break;else _0xb766bb['push'](_0xb766bb['shift']());}catch(_0x3b8b30){_0xb766bb['push'](_0xb766bb['shift']());}}}(_0x575f,-0x20389+0x2d4a8+-0xd43e*-0x1));import{readdir,readFile}from'node:fs/promises';import _0x373059 from'node:path';import{parseFrontmatter}from'../utils/frontmatter.js';import{listDirs,pathExists}from'../utils/fs.js';const CODEX_DIR=_0x11d058(0xaf);function _0x575f(){const _0x4e8187=['assets','basename','name','push','1252LtXpMB','trim','6pmTZEV','dirname','4984DuEZuw','9790hVeQju','486815RiDEXC','784116WbEgZI','utf8','replace','scripts','11fRaQBZ','1169487peBxcV','attributes','40nkjFgJ','agents','1750VyhRgJ','join','replaceAll','isDirectory','relative','237vlXwPg','758550hUmEJH','.codex'];_0x575f=function(){return _0x4e8187;};return _0x575f();}export async function loadAllSkillManifests(_0x5a9e01){const _0x5009ba=_0x11d058,_0x4b54df=_0x373059[_0x5009ba(0xa9)](_0x5a9e01,CODEX_DIR),_0x5d5de4=await listDirs(_0x4b54df),_0x3fb448=[];for(const _0x27c4e9 of _0x5d5de4){const _0x4acfff=_0x373059[_0x5009ba(0xa9)](_0x4b54df,_0x27c4e9),_0x3e6f65=await loadSkillManifest(_0x4acfff);if(_0x3e6f65)_0x3fb448[_0x5009ba(0xb3)](_0x3e6f65);}return _0x3fb448;}async function loadSkillManifest(_0x3da5c4){const _0x155378=_0x11d058,_0x44b839=_0x373059[_0x155378(0xa9)](_0x3da5c4,'SKILL.md');if(!await pathExists(_0x44b839))return null;const _0x3712bb=await readFile(_0x44b839,_0x155378(0xa0)),_0x3136a5=parseFrontmatter(_0x3712bb),_0x343917=_0x3136a5[_0x155378(0xa5)][_0x155378(0xb2)]?.[_0x155378(0xb5)](),_0x128255=_0x3136a5[_0x155378(0xa5)]['description']?.[_0x155378(0xb5)](),_0x139439=_0x343917||_0x373059[_0x155378(0xb1)](_0x3da5c4),_0x567662=await collectRelativeFiles(_0x373059[_0x155378(0xa9)](_0x3da5c4,_0x155378(0xa7)),_0x155378(0xa7)),_0x311793=await collectRelativeFiles(_0x373059[_0x155378(0xa9)](_0x3da5c4,'references'),'references'),_0x2ab465=await collectRelativeFiles(_0x373059[_0x155378(0xa9)](_0x3da5c4,_0x155378(0xa2)),_0x155378(0xa2)),_0x44ec0a=await collectRelativeFiles(_0x373059[_0x155378(0xa9)](_0x3da5c4,_0x155378(0xb0)),_0x155378(0xb0));return{'name':_0x139439,'description':_0x128255||'','body':_0x3136a5['body'][_0x155378(0xb5)](),'agents':_0x567662,'resources':[..._0x311793,..._0x2ab465,..._0x44ec0a],'sourcePath':_0x3da5c4};}async function collectRelativeFiles(_0x15fffc,_0x500e1a){if(!await pathExists(_0x15fffc))return[];const _0x27f9e7=[];return await walk(_0x15fffc,_0x353055=>{const _0x1e04a8=_0x49c3,_0x2e53a1=_0x373059[_0x1e04a8(0xac)](_0x373059[_0x1e04a8(0x9b)](_0x15fffc),_0x353055);_0x27f9e7[_0x1e04a8(0xb3)](_0x2e53a1[_0x1e04a8(0xaa)]('\x5c','/')[_0x1e04a8(0xa1)](_0x500e1a+'/./',_0x500e1a+'/'));}),_0x27f9e7;}async function walk(_0xe91616,_0x1f2075){const _0x266ec3=_0x11d058,_0x1f55cd=await readdir(_0xe91616,{'withFileTypes':!![]});for(const _0x359550 of _0x1f55cd){const _0x5242d9=_0x373059['join'](_0xe91616,_0x359550['name']);if(_0x359550[_0x266ec3(0xab)]()){await walk(_0x5242d9,_0x1f2075);continue;}_0x1f2075(_0x5242d9);}}
1
+ const _0x534bd6=_0x2e34;(function(_0xef9657,_0x230004){const _0x55a15e=_0x2e34,_0x118fe3=_0xef9657();while(!![]){try{const _0x1f42f4=parseInt(_0x55a15e(0x146))/(0x2*0xd79+0x1406+-0x2ef7)+parseInt(_0x55a15e(0x149))/(0x1dd1+0x1*-0x2523+0x754)*(-parseInt(_0x55a15e(0x155))/(-0x47+-0x16fb+0x353*0x7))+-parseInt(_0x55a15e(0x143))/(-0x17*0xfb+0x77f*-0x1+0x1e10)*(-parseInt(_0x55a15e(0x14b))/(0x14da*0x1+0x1d8e+-0x1*0x3263))+parseInt(_0x55a15e(0x154))/(0x287*-0x4+0xd*-0x52+0xe4c)+parseInt(_0x55a15e(0x144))/(0x97a*0x2+0x1c69*-0x1+-0x4*-0x25f)*(-parseInt(_0x55a15e(0x147))/(0x9f9*-0x2+0x16b2+-0x2*0x15c))+parseInt(_0x55a15e(0x13d))/(0x718+0x28d*-0x2+0x3*-0xa7)*(-parseInt(_0x55a15e(0x151))/(0x2b*0x13+0x1*0x1503+-0x182a))+parseInt(_0x55a15e(0x156))/(-0x1*0x144d+-0x18f5+0x2d4d)*(parseInt(_0x55a15e(0x150))/(-0x1bbe+-0xb*0x37b+0x4213));if(_0x1f42f4===_0x230004)break;else _0x118fe3['push'](_0x118fe3['shift']());}catch(_0x4f65e8){_0x118fe3['push'](_0x118fe3['shift']());}}}(_0x3019,-0x1e*0x19fc+-0x440*0x101+-0x1a164*-0x7));import{readdir,readFile}from'node:fs/promises';import _0x51d2c6 from'node:path';function _0x2e34(_0x39ce2b,_0x44b0a7){_0x39ce2b=_0x39ce2b-(-0x1*-0x394+0x11a7+-0x50*0x40);const _0x2b941d=_0x3019();let _0x51d2c6=_0x2b941d[_0x39ce2b];return _0x51d2c6;}import{parseFrontmatter}from'../utils/frontmatter.js';import{listDirs,pathExists}from'../utils/fs.js';const CODEX_DIR=_0x534bd6(0x141);function _0x3019(){const _0x20827f=['name','attributes','156oWyrik','810PEEsjO','/./','replace','322422QRGFaa','700365SjmkwY','269093klYDqq','assets','utf8','push','11835rSJazh','scripts','trim','references','.codex','agents','1838708uOdhEP','63gkPdjO','dirname','241428jkfeLe','412536oryCsx','body','2zTRrEf','basename','5vrLXrX','join','replaceAll'];_0x3019=function(){return _0x20827f;};return _0x3019();}export async function loadAllSkillManifests(_0x45079c){const _0x58940a=_0x534bd6,_0x59769b=_0x51d2c6[_0x58940a(0x14c)](_0x45079c,CODEX_DIR),_0x27be74=await listDirs(_0x59769b),_0x4eb648=[];for(const _0x1f6c72 of _0x27be74){const _0x3c1952=_0x51d2c6[_0x58940a(0x14c)](_0x59769b,_0x1f6c72),_0xbb6655=await loadSkillManifest(_0x3c1952);if(_0xbb6655)_0x4eb648[_0x58940a(0x13c)](_0xbb6655);}return _0x4eb648;}async function loadSkillManifest(_0xbce8c){const _0x4960f0=_0x534bd6,_0x448d1c=_0x51d2c6[_0x4960f0(0x14c)](_0xbce8c,'SKILL.md');if(!await pathExists(_0x448d1c))return null;const _0x466345=await readFile(_0x448d1c,_0x4960f0(0x13b)),_0x47071d=parseFrontmatter(_0x466345),_0x221895=_0x47071d[_0x4960f0(0x14f)][_0x4960f0(0x14e)]?.[_0x4960f0(0x13f)](),_0x25a988=_0x47071d[_0x4960f0(0x14f)]['description']?.[_0x4960f0(0x13f)](),_0x10d4de=_0x221895||_0x51d2c6[_0x4960f0(0x14a)](_0xbce8c),_0x232f32=await collectRelativeFiles(_0x51d2c6[_0x4960f0(0x14c)](_0xbce8c,_0x4960f0(0x142)),'agents'),_0x27ede1=await collectRelativeFiles(_0x51d2c6['join'](_0xbce8c,_0x4960f0(0x140)),_0x4960f0(0x140)),_0x262f75=await collectRelativeFiles(_0x51d2c6[_0x4960f0(0x14c)](_0xbce8c,_0x4960f0(0x13e)),'scripts'),_0x6adab2=await collectRelativeFiles(_0x51d2c6[_0x4960f0(0x14c)](_0xbce8c,_0x4960f0(0x157)),_0x4960f0(0x157));return{'name':_0x10d4de,'description':_0x25a988||'','body':_0x47071d[_0x4960f0(0x148)]['trim'](),'agents':_0x232f32,'resources':[..._0x27ede1,..._0x262f75,..._0x6adab2],'sourcePath':_0xbce8c};}async function collectRelativeFiles(_0x175ef0,_0x456c09){if(!await pathExists(_0x175ef0))return[];const _0x92e1e7=[];return await walk(_0x175ef0,_0x36d31c=>{const _0x2c29b1=_0x2e34,_0x3010d4=_0x51d2c6['relative'](_0x51d2c6[_0x2c29b1(0x145)](_0x175ef0),_0x36d31c);_0x92e1e7[_0x2c29b1(0x13c)](_0x3010d4[_0x2c29b1(0x14d)]('\x5c','/')[_0x2c29b1(0x153)](_0x456c09+_0x2c29b1(0x152),_0x456c09+'/'));}),_0x92e1e7;}async function walk(_0xff2fa9,_0x21fc5b){const _0x4b02fb=_0x534bd6,_0x136d3e=await readdir(_0xff2fa9,{'withFileTypes':!![]});for(const _0x3e19a9 of _0x136d3e){const _0x69062b=_0x51d2c6[_0x4b02fb(0x14c)](_0xff2fa9,_0x3e19a9[_0x4b02fb(0x14e)]);if(_0x3e19a9['isDirectory']()){await walk(_0x69062b,_0x21fc5b);continue;}_0x21fc5b(_0x69062b);}}
@@ -1 +1 @@
1
- const _0x2789d7=_0x1196;(function(_0x119c58,_0x3a2649){const _0xc69a57=_0x1196,_0x54bd1f=_0x119c58();while(!![]){try{const _0x72336f=parseInt(_0xc69a57(0x181))/(0x3*-0xcd7+0x1d0f*0x1+0x977)*(-parseInt(_0xc69a57(0x186))/(0x950+0x1d9+-0xb27))+-parseInt(_0xc69a57(0x18f))/(-0x2309*-0x1+-0x210a+-0x1*0x1fc)+-parseInt(_0xc69a57(0x16f))/(0x1b99*-0x1+-0x402+0x1f9f)+-parseInt(_0xc69a57(0x18d))/(0x1*0xadf+0x3*-0x445+0xa7*0x3)*(-parseInt(_0xc69a57(0x16a))/(-0x13fe+-0x14b*-0x15+-0x723))+-parseInt(_0xc69a57(0x173))/(0x53*-0xb+0x1fd3*0x1+-0x1c3b)+parseInt(_0xc69a57(0x184))/(-0xc04+-0x946+0x2*0xaa9)*(-parseInt(_0xc69a57(0x17b))/(0x11c5*-0x2+-0x113+-0x24a6*-0x1))+-parseInt(_0xc69a57(0x176))/(0x996+-0x1*-0x1d07+-0x2693)*(-parseInt(_0xc69a57(0x16d))/(-0x18e4+0xa83+0xe6c));if(_0x72336f===_0x3a2649)break;else _0x54bd1f['push'](_0x54bd1f['shift']());}catch(_0x5eea77){_0x54bd1f['push'](_0x54bd1f['shift']());}}}(_0xdefb,-0x63d9*-0x19+0x7*0x1d35+-0x3f9bc));import{mkdtemp,readdir,readFile,writeFile}from'node:fs/promises';import _0x47a8dc from'node:os';import _0xa65de5 from'node:path';import{parseFrontmatter}from'../utils/frontmatter.js';import{ensureDir,listDirs,pathExists}from'../utils/fs.js';function _0xdefb(){const _0x174104=['split','extname','toLowerCase','replace','12231QDjrtx','push','map','skill','replaceAll','isFile','33ZgYxqa','\x20to\x20run\x20this\x20skill.\x22','cdspec-template-','2064XpRkea','basename','27752yMyJzW','\x20\x20short_description:\x20\x22','join','body','filter','agents','name','449695whddjV','openai.yaml','2116401AaxnBY','tmpdir','references','utf8','templates','\x20\x20display_name:\x20\x22','Generated\x20from\x20templates/','SKILL.md','sort','length','trim','relative','6KavEUo','scripts','---','11XODlEN','pop','3249420qJQleq','attributes','description','description:\x20','1118194PcJITZ','name:\x20','endsWith','28269790dHGAFR'];_0xdefb=function(){return _0x174104;};return _0xdefb();}const DEFAULT_SKILL_NAME=_0x2789d7(0x17e);export async function loadProjectTemplateManifests(_0x4d133e){const _0x34f48a=_0x2789d7;return loadFromProjectTemplates(_0xa65de5[_0x34f48a(0x188)](_0x4d133e,_0x34f48a(0x162)));}async function buildManifestFromDir(_0x16d6b2){const _0x671b6=_0x2789d7,_0x2cbd3a=await readFile(_0xa65de5[_0x671b6(0x188)](_0x16d6b2,'SKILL.md'),_0x671b6(0x161)),_0xd50087=parseFrontmatter(_0x2cbd3a),_0x489c2=normalizeSkillName(_0xd50087[_0x671b6(0x170)][_0x671b6(0x18c)]?.['trim']()||_0xa65de5[_0x671b6(0x185)](_0x16d6b2)),_0x488fe3=_0xd50087['attributes']['description']?.[_0x671b6(0x168)]()||'Skill\x20from\x20templates/'+_0xa65de5[_0x671b6(0x185)](_0x16d6b2),_0x5acc7a=await collectRelativeFiles(_0xa65de5['join'](_0x16d6b2,'agents')),_0x425960=await collectRelativeFiles(_0xa65de5[_0x671b6(0x188)](_0x16d6b2,'references')),_0x56a955=await collectRelativeFiles(_0xa65de5[_0x671b6(0x188)](_0x16d6b2,_0x671b6(0x16b))),_0x2d007b=await collectRelativeFiles(_0xa65de5[_0x671b6(0x188)](_0x16d6b2,'assets'));return{'name':_0x489c2,'description':_0x488fe3,'body':_0xd50087['body'][_0x671b6(0x168)](),'agents':_0x5acc7a,'resources':[..._0x425960,..._0x56a955,..._0x2d007b],'sourcePath':_0x16d6b2};}async function collectRelativeFiles(_0x4d761d){const _0x2ff1e7=_0x2789d7;if(!await pathExists(_0x4d761d))return[];const _0x7dd218=_0xa65de5['dirname'](_0x4d761d),_0x129403=[],_0x2f6f01=[_0x4d761d];while(_0x2f6f01[_0x2ff1e7(0x167)]>-0x11ea+-0xe87*0x1+0x2071){const _0x4bd6cf=_0x2f6f01[_0x2ff1e7(0x16e)](),_0x477a87=await listDirs(_0x4bd6cf);for(const _0x2cb558 of _0x477a87){_0x2f6f01[_0x2ff1e7(0x17c)](_0xa65de5[_0x2ff1e7(0x188)](_0x4bd6cf,_0x2cb558));}const _0x1a1b26=await readdir(_0x4bd6cf,{'withFileTypes':!![]});for(const _0x979645 of _0x1a1b26){if(!_0x979645[_0x2ff1e7(0x180)]())continue;const _0x1d2c03=_0xa65de5[_0x2ff1e7(0x188)](_0x4bd6cf,_0x979645[_0x2ff1e7(0x18c)]);_0x129403['push'](_0xa65de5['relative'](_0x7dd218,_0x1d2c03)[_0x2ff1e7(0x17f)]('\x5c','/'));}}return _0x129403;}async function loadFromProjectTemplates(_0x233a57){const _0x5f42c4=_0x2789d7;if(!await pathExists(_0x233a57))return[];const _0x1fba18=[],_0x47367c=await listDirs(_0x233a57);for(const _0x15ad2b of _0x47367c){const _0x399348=_0xa65de5['join'](_0x233a57,_0x15ad2b);await pathExists(_0xa65de5[_0x5f42c4(0x188)](_0x399348,'SKILL.md'))&&_0x1fba18[_0x5f42c4(0x17c)](await buildManifestFromDir(_0x399348));}if(_0x1fba18[_0x5f42c4(0x167)]>-0x1bdb+0x1227+0x9b4)return _0x1fba18;const _0x2d8575=await collectMarkdownFiles(_0x233a57);for(const _0x2005a7 of _0x2d8575[_0x5f42c4(0x166)]()){_0x1fba18[_0x5f42c4(0x17c)](await buildManifestFromMarkdown(_0x233a57,_0x2005a7));}return _0x1fba18;}async function buildManifestFromMarkdown(_0x5c45cb,_0x166057){const _0x261fd0=_0x2789d7,_0x1dda73=await readFile(_0x166057,_0x261fd0(0x161)),_0x50db0e=parseFrontmatter(_0x1dda73),_0x2a6a5d=_0xa65de5[_0x261fd0(0x185)](_0x166057,_0xa65de5[_0x261fd0(0x178)](_0x166057)),_0x14cf37=normalizeSkillName(_0x50db0e[_0x261fd0(0x170)][_0x261fd0(0x18c)]||_0x2a6a5d),_0x554790=_0x50db0e['attributes'][_0x261fd0(0x171)]||_0x261fd0(0x164)+_0xa65de5[_0x261fd0(0x169)](_0x5c45cb,_0x166057)[_0x261fd0(0x17f)]('\x5c','/'),_0x5a3571=_0x50db0e[_0x261fd0(0x189)][_0x261fd0(0x168)]()||_0x1dda73[_0x261fd0(0x168)](),_0x2009e5=await mkdtemp(_0xa65de5[_0x261fd0(0x188)](_0x47a8dc[_0x261fd0(0x15f)](),_0x261fd0(0x183)));await ensureDir(_0xa65de5[_0x261fd0(0x188)](_0x2009e5,_0x261fd0(0x18b))),await ensureDir(_0xa65de5[_0x261fd0(0x188)](_0x2009e5,'references'));const _0x82941a=[_0x261fd0(0x16c),_0x261fd0(0x174)+_0x14cf37,_0x261fd0(0x172)+_0x554790,_0x261fd0(0x16c),'',_0x5a3571]['join']('\x0a'),_0x450dd7=['interface:',_0x261fd0(0x163)+humanizeName(_0x14cf37)+'\x22',_0x261fd0(0x187)+escapeYaml(_0x554790)+'\x22','\x20\x20default_prompt:\x20\x22Use\x20$'+_0x14cf37+_0x261fd0(0x182)][_0x261fd0(0x188)]('\x0a');return await writeFile(_0xa65de5['join'](_0x2009e5,_0x261fd0(0x165)),_0x82941a+'\x0a',_0x261fd0(0x161)),await writeFile(_0xa65de5[_0x261fd0(0x188)](_0x2009e5,_0x261fd0(0x18b),_0x261fd0(0x18e)),_0x450dd7+'\x0a',_0x261fd0(0x161)),await writeFile(_0xa65de5[_0x261fd0(0x188)](_0x2009e5,_0x261fd0(0x160),_0xa65de5['basename'](_0x166057)),_0x1dda73,_0x261fd0(0x161)),buildManifestFromDir(_0x2009e5);}function _0x1196(_0x47fc51,_0x4268a6){_0x47fc51=_0x47fc51-(-0x1a2f+0x246b+-0x8dd);const _0x1e211b=_0xdefb();let _0x2ea5d5=_0x1e211b[_0x47fc51];return _0x2ea5d5;}async function collectMarkdownFiles(_0x5941dc){const _0x283264=_0x2789d7,_0x37dbbd=[],_0x5f2a08=[_0x5941dc];while(_0x5f2a08[_0x283264(0x167)]>0x5*0x61f+0xb*0x54+-0x13*0x1cd){const _0x9dbc9d=_0x5f2a08[_0x283264(0x16e)](),_0x4951c8=await listDirs(_0x9dbc9d);for(const _0x542b04 of _0x4951c8){_0x5f2a08[_0x283264(0x17c)](_0xa65de5[_0x283264(0x188)](_0x9dbc9d,_0x542b04));}const _0x53f9a5=await readdir(_0x9dbc9d,{'withFileTypes':!![]});for(const _0x1e80a7 of _0x53f9a5){_0x1e80a7[_0x283264(0x180)]()&&_0x1e80a7[_0x283264(0x18c)][_0x283264(0x179)]()[_0x283264(0x175)]('.md')&&_0x37dbbd[_0x283264(0x17c)](_0xa65de5[_0x283264(0x188)](_0x9dbc9d,_0x1e80a7[_0x283264(0x18c)]));}}return _0x37dbbd;}function normalizeSkillName(_0xc84ea9){const _0x535d13=_0x2789d7;return _0xc84ea9[_0x535d13(0x179)]()[_0x535d13(0x17a)](/[^a-z0-9]+/g,'-')[_0x535d13(0x17a)](/^-+|-+$/g,'')||DEFAULT_SKILL_NAME;}function humanizeName(_0x38937e){const _0x294f38=_0x2789d7;return _0x38937e[_0x294f38(0x177)]('-')[_0x294f38(0x18a)](Boolean)[_0x294f38(0x17d)](_0x5cc21c=>_0x5cc21c[-0x12c*-0x4+0x1*0x7d9+-0xc89]['toUpperCase']()+_0x5cc21c['slice'](0xff*0x21+0x3*-0x329+-0x1763))[_0x294f38(0x188)]('\x20');}function escapeYaml(_0xbcf00e){return _0xbcf00e['replace'](/\"/g,'\x5c\x22');}
1
+ const _0x1b1ce6=_0x157f;(function(_0x505781,_0x497616){const _0x42be24=_0x157f,_0x505faa=_0x505781();while(!![]){try{const _0x433e72=-parseInt(_0x42be24(0x1d1))/(-0x2b*-0x5a+0x1880+-0x279d)+-parseInt(_0x42be24(0x1df))/(-0x44*0x58+-0xe8f*0x2+0x18*0x230)*(-parseInt(_0x42be24(0x1f0))/(0x2*-0x567+0x254b*0x1+-0x1a7a*0x1))+parseInt(_0x42be24(0x1c3))/(-0x1*0x1543+-0xf08+0x41*0x8f)*(parseInt(_0x42be24(0x1ef))/(-0x6f9*0x3+-0x4*0x78e+0x3328))+parseInt(_0x42be24(0x1da))/(0x35*0x56+-0x71*0x44+-0x36*-0x3a)*(parseInt(_0x42be24(0x1de))/(-0x1d87+-0xd7*-0xf+0x10f5))+-parseInt(_0x42be24(0x1d3))/(0x1*-0x787+0x1244+0x1*-0xab5)*(parseInt(_0x42be24(0x1e7))/(0x11*0xbc+0x1715+-0x2388))+-parseInt(_0x42be24(0x1f3))/(-0x1511+-0x93*-0x21+0x45*0x8)*(-parseInt(_0x42be24(0x1c8))/(0xd3c+0x1a52+-0x2783))+parseInt(_0x42be24(0x1e5))/(-0xb1+-0x1*-0x61f+-0x562)*(-parseInt(_0x42be24(0x1c2))/(-0x2*0xf6+0x7cd*0x2+-0xda1));if(_0x433e72===_0x497616)break;else _0x505faa['push'](_0x505faa['shift']());}catch(_0x591afe){_0x505faa['push'](_0x505faa['shift']());}}}(_0x1d68,-0xaba7e+0x280ee+0x2a*0x59de));import{mkdtemp,readdir,readFile,writeFile}from'node:fs/promises';import _0x525185 from'node:os';import _0x27faf9 from'node:path';import{fileURLToPath}from'node:url';function _0x1d68(){const _0x325f8c=['---','4878FNJCpb','Skill\x20from\x20templates/','length','attributes','basename','utf8','name:\x20','\x20\x20short_description:\x20\x22','16585eQVbAI','3CJUJZM','relative','references','56300kUiNNy','scripts','split','tmpdir','2145YgcYxv','136SqjznF','isFile','\x20\x20default_prompt:\x20\x22Use\x20$','skill','agents','253JImIqe','openai.yaml','description:\x20','filter','map','toLowerCase','name','endsWith','replace','79097gdUZre','pop','6376Uibfbe','replaceAll','sort','description','join','Generated\x20from\x20templates/','body','40032HLqJAd','.md','../../templates','extname','763yKrmXc','168236rwtgGy','push','\x20\x20display_name:\x20\x22','dirname','SKILL.md','trim','8388gHrnvK'];_0x1d68=function(){return _0x325f8c;};return _0x1d68();}import{parseFrontmatter}from'../utils/frontmatter.js';import{ensureDir,listDirs,pathExists}from'../utils/fs.js';const DEFAULT_SKILL_NAME=_0x1b1ce6(0x1c6),BUNDLED_TEMPLATE_ROOT=_0x27faf9['resolve'](_0x27faf9['dirname'](fileURLToPath(import.meta.url)),_0x1b1ce6(0x1dc));export async function loadBundledTemplateManifests(){return loadFromTemplateRoot(BUNDLED_TEMPLATE_ROOT);}async function buildManifestFromDir(_0x43dacb){const _0x5a6ef1=_0x1b1ce6,_0x4c459b=await readFile(_0x27faf9[_0x5a6ef1(0x1d7)](_0x43dacb,_0x5a6ef1(0x1e3)),_0x5a6ef1(0x1ec)),_0x5e9212=parseFrontmatter(_0x4c459b),_0x218ff0=normalizeSkillName(_0x5e9212[_0x5a6ef1(0x1ea)][_0x5a6ef1(0x1ce)]?.['trim']()||_0x27faf9[_0x5a6ef1(0x1eb)](_0x43dacb)),_0xaaad9b=_0x5e9212[_0x5a6ef1(0x1ea)]['description']?.[_0x5a6ef1(0x1e4)]()||_0x5a6ef1(0x1e8)+_0x27faf9[_0x5a6ef1(0x1eb)](_0x43dacb),_0x50fec6=await collectRelativeFiles(_0x27faf9[_0x5a6ef1(0x1d7)](_0x43dacb,_0x5a6ef1(0x1c7))),_0x21d89d=await collectRelativeFiles(_0x27faf9[_0x5a6ef1(0x1d7)](_0x43dacb,_0x5a6ef1(0x1f2))),_0x476c65=await collectRelativeFiles(_0x27faf9[_0x5a6ef1(0x1d7)](_0x43dacb,_0x5a6ef1(0x1f4))),_0x10c7df=await collectRelativeFiles(_0x27faf9['join'](_0x43dacb,'assets'));return{'name':_0x218ff0,'description':_0xaaad9b,'body':_0x5e9212['body'][_0x5a6ef1(0x1e4)](),'agents':_0x50fec6,'resources':[..._0x21d89d,..._0x476c65,..._0x10c7df],'sourcePath':_0x43dacb};}async function collectRelativeFiles(_0x17f761){const _0xe8248b=_0x1b1ce6;if(!await pathExists(_0x17f761))return[];const _0x55c374=_0x27faf9[_0xe8248b(0x1e2)](_0x17f761),_0x274bf3=[],_0x50addc=[_0x17f761];while(_0x50addc[_0xe8248b(0x1e9)]>-0xd*0x183+0x4f3+-0x3ad*-0x4){const _0x4ab485=_0x50addc[_0xe8248b(0x1d2)](),_0x198380=await listDirs(_0x4ab485);for(const _0x65c85 of _0x198380){_0x50addc['push'](_0x27faf9[_0xe8248b(0x1d7)](_0x4ab485,_0x65c85));}const _0xde87e8=await readdir(_0x4ab485,{'withFileTypes':!![]});for(const _0x4911a0 of _0xde87e8){if(!_0x4911a0[_0xe8248b(0x1c4)]())continue;const _0x1c255c=_0x27faf9[_0xe8248b(0x1d7)](_0x4ab485,_0x4911a0[_0xe8248b(0x1ce)]);_0x274bf3[_0xe8248b(0x1e0)](_0x27faf9['relative'](_0x55c374,_0x1c255c)[_0xe8248b(0x1d4)]('\x5c','/'));}}return _0x274bf3;}async function loadFromTemplateRoot(_0x1044b0){const _0x187a56=_0x1b1ce6;if(!await pathExists(_0x1044b0))return[];const _0x564131=[],_0x18b7bb=await listDirs(_0x1044b0);for(const _0x193c40 of _0x18b7bb){const _0x29d94f=_0x27faf9[_0x187a56(0x1d7)](_0x1044b0,_0x193c40);await pathExists(_0x27faf9[_0x187a56(0x1d7)](_0x29d94f,_0x187a56(0x1e3)))&&_0x564131[_0x187a56(0x1e0)](await buildManifestFromDir(_0x29d94f));}if(_0x564131[_0x187a56(0x1e9)]>0x1*0x1345+-0xd53*-0x1+-0x826*0x4)return _0x564131;const _0x2e4add=await collectMarkdownFiles(_0x1044b0);for(const _0x235b16 of _0x2e4add[_0x187a56(0x1d5)]()){_0x564131[_0x187a56(0x1e0)](await buildManifestFromMarkdown(_0x1044b0,_0x235b16));}return _0x564131;}async function buildManifestFromMarkdown(_0x24ae91,_0x2ab68f){const _0x249880=_0x1b1ce6,_0xd8a7b5=await readFile(_0x2ab68f,_0x249880(0x1ec)),_0x1dcf10=parseFrontmatter(_0xd8a7b5),_0x52deb3=_0x27faf9[_0x249880(0x1eb)](_0x2ab68f,_0x27faf9[_0x249880(0x1dd)](_0x2ab68f)),_0x1e1a9b=normalizeSkillName(_0x1dcf10['attributes'][_0x249880(0x1ce)]||_0x52deb3),_0x8584bc=_0x1dcf10[_0x249880(0x1ea)][_0x249880(0x1d6)]||_0x249880(0x1d8)+_0x27faf9[_0x249880(0x1f1)](_0x24ae91,_0x2ab68f)[_0x249880(0x1d4)]('\x5c','/'),_0xc34581=_0x1dcf10[_0x249880(0x1d9)]['trim']()||_0xd8a7b5[_0x249880(0x1e4)](),_0x2baa99=await mkdtemp(_0x27faf9['join'](_0x525185[_0x249880(0x1c1)](),'cdspec-template-'));await ensureDir(_0x27faf9['join'](_0x2baa99,'agents')),await ensureDir(_0x27faf9[_0x249880(0x1d7)](_0x2baa99,_0x249880(0x1f2)));const _0x3326f9=[_0x249880(0x1e6),_0x249880(0x1ed)+_0x1e1a9b,_0x249880(0x1ca)+_0x8584bc,_0x249880(0x1e6),'',_0xc34581][_0x249880(0x1d7)]('\x0a'),_0x174c33=['interface:',_0x249880(0x1e1)+humanizeName(_0x1e1a9b)+'\x22',_0x249880(0x1ee)+escapeYaml(_0x8584bc)+'\x22',_0x249880(0x1c5)+_0x1e1a9b+'\x20to\x20run\x20this\x20skill.\x22'][_0x249880(0x1d7)]('\x0a');return await writeFile(_0x27faf9[_0x249880(0x1d7)](_0x2baa99,_0x249880(0x1e3)),_0x3326f9+'\x0a',_0x249880(0x1ec)),await writeFile(_0x27faf9[_0x249880(0x1d7)](_0x2baa99,_0x249880(0x1c7),_0x249880(0x1c9)),_0x174c33+'\x0a',_0x249880(0x1ec)),await writeFile(_0x27faf9[_0x249880(0x1d7)](_0x2baa99,'references',_0x27faf9[_0x249880(0x1eb)](_0x2ab68f)),_0xd8a7b5,'utf8'),buildManifestFromDir(_0x2baa99);}async function collectMarkdownFiles(_0x1a61ee){const _0x452417=_0x1b1ce6,_0xcb0b1b=[],_0x336405=[_0x1a61ee];while(_0x336405['length']>-0xa36*-0x3+0x1*-0xd3b+0x3*-0x5cd){const _0xc53598=_0x336405[_0x452417(0x1d2)](),_0x523b09=await listDirs(_0xc53598);for(const _0x4329ba of _0x523b09){_0x336405[_0x452417(0x1e0)](_0x27faf9[_0x452417(0x1d7)](_0xc53598,_0x4329ba));}const _0x285317=await readdir(_0xc53598,{'withFileTypes':!![]});for(const _0x5a8279 of _0x285317){_0x5a8279[_0x452417(0x1c4)]()&&_0x5a8279[_0x452417(0x1ce)]['toLowerCase']()[_0x452417(0x1cf)](_0x452417(0x1db))&&_0xcb0b1b[_0x452417(0x1e0)](_0x27faf9['join'](_0xc53598,_0x5a8279[_0x452417(0x1ce)]));}}return _0xcb0b1b;}function _0x157f(_0x2d2df8,_0x21bf79){_0x2d2df8=_0x2d2df8-(-0x224f+0x16bb+0xd55);const _0x10312f=_0x1d68();let _0x5e1932=_0x10312f[_0x2d2df8];return _0x5e1932;}function normalizeSkillName(_0x4e4374){const _0x4857e7=_0x1b1ce6;return _0x4e4374[_0x4857e7(0x1cd)]()[_0x4857e7(0x1d0)](/[^a-z0-9]+/g,'-')[_0x4857e7(0x1d0)](/^-+|-+$/g,'')||DEFAULT_SKILL_NAME;}function humanizeName(_0x483889){const _0xbc60a2=_0x1b1ce6;return _0x483889[_0xbc60a2(0x1f5)]('-')[_0xbc60a2(0x1cb)](Boolean)[_0xbc60a2(0x1cc)](_0x4f7829=>_0x4f7829[-0x187*0x2+0xab8+-0x12*0x6d]['toUpperCase']()+_0x4f7829['slice'](0x1e3a+0x1*-0xe95+-0xfa4))[_0xbc60a2(0x1d7)]('\x20');}function escapeYaml(_0x440539){const _0x4c38a1=_0x1b1ce6;return _0x440539[_0x4c38a1(0x1d0)](/\"/g,'\x5c\x22');}
@@ -1 +1 @@
1
- const _0x9c4956=_0xd99a;(function(_0x586ab5,_0x194bd4){const _0x4c095b=_0xd99a,_0xa515f1=_0x586ab5();while(!![]){try{const _0x314098=parseInt(_0x4c095b(0x192))/(0x13d*-0x3+0xca7+-0x1*0x8ef)*(-parseInt(_0x4c095b(0x182))/(-0x1*0xcf+-0x197*-0x6+-0x8b9))+-parseInt(_0x4c095b(0x17e))/(0x1*-0x2a1+-0x4a*0x39+0x131e*0x1)*(parseInt(_0x4c095b(0x1a6))/(-0x1654+0x214c+-0x57a*0x2))+parseInt(_0x4c095b(0x181))/(-0x1eb3+0x1654+0x864)*(-parseInt(_0x4c095b(0x19e))/(-0x25a0+-0x8e1+-0x2e87*-0x1))+-parseInt(_0x4c095b(0x1a2))/(-0x122b+0xc60+-0x2*-0x2e9)+parseInt(_0x4c095b(0x194))/(-0x192d+0x1d20+-0x3eb)*(parseInt(_0x4c095b(0x1ab))/(-0x1*-0xfb6+-0x101c*0x1+0x6f))+parseInt(_0x4c095b(0x17d))/(-0xb*0x191+0x2*0x8f9+-0xad)+-parseInt(_0x4c095b(0x17f))/(0x1e*-0x1d+0x88*-0x5+0x619)*(-parseInt(_0x4c095b(0x1a9))/(-0x137f+0x3*-0x6bb+-0x4*-0x9ef));if(_0x314098===_0x194bd4)break;else _0xa515f1['push'](_0xa515f1['shift']());}catch(_0x4589b2){_0xa515f1['push'](_0xa515f1['shift']());}}}(_0x8df5,0x7bfa1+-0x42e53*0x2+-0x95*-0xaad));import _0x5b1587 from'node:path';import{rm}from'node:fs/promises';import{loadConfig}from'../config/loader.js';import{resolveAgentRoot}from'../config/path.js';import{expandTargets,getAdapter}from'./adapters/index.js';import{loadProjectTemplateManifests}from'./scaffold.js';import{installToolInteractionTemplates}from'./tool-interactions.js';import{validateManifest}from'./validator.js';export async function initSkills(_0x4a8baf,_0x5898bf,_0x294dec,_0x2254ec=_0x9c4956(0x1a7)){const _0x4e70e1=_0x9c4956,_0x84798a=await loadConfig(_0x4a8baf),_0x4fc2b5=await loadProjectTemplateManifests(_0x4a8baf);if(_0x4fc2b5[_0x4e70e1(0x18d)]===0x1e1a*0x1+-0x5*0x68b+0x29d)throw new Error(_0x4e70e1(0x18e));const _0x533b18=buildInitConfig(_0x84798a,_0x4fc2b5,_0x2254ec),_0x5de9ed=expandTargets(_0x5898bf);if(_0x294dec)for(const _0x46d22b of _0x5de9ed){const _0x36552d=resolveAgentRoot(_0x4a8baf,_0x533b18['agents'][_0x46d22b][_0x4e70e1(0x189)]);await rm(_0x5b1587[_0x4e70e1(0x1a0)](_0x36552d,_0x4e70e1(0x183)),{'recursive':!![],'force':!![]}),await rm(_0x5b1587[_0x4e70e1(0x1a0)](_0x36552d,_0x533b18[_0x4e70e1(0x1a8)][_0x46d22b][_0x4e70e1(0x185)]),{'recursive':!![],'force':!![]});}for(const _0x12d3db of _0x4fc2b5){const _0x48d71e=[...validateManifest(_0x12d3db)];for(const _0x170ac9 of _0x5de9ed){_0x48d71e[_0x4e70e1(0x19b)](...getAdapter(_0x170ac9)[_0x4e70e1(0x19f)](_0x12d3db));}failIfErrors(_0x48d71e);}for(const _0x57e24e of _0x4fc2b5){for(const _0xffac3a of _0x5de9ed){const _0x48159d=_0x5b1587['join'](resolveAgentRoot(_0x4a8baf,_0x533b18[_0x4e70e1(0x1a8)][_0xffac3a][_0x4e70e1(0x189)]),_0x4e70e1(0x183),_0x57e24e[_0x4e70e1(0x19a)]);await getAdapter(_0xffac3a)[_0x4e70e1(0x18b)](_0x57e24e,_0x48159d,_0x294dec);}}const _0x245994=[];for(const _0x50df39 of _0x5de9ed){_0x245994['push'](...await installToolInteractionTemplates(_0x4a8baf,_0x50df39,_0x4fc2b5,_0x533b18));}return _0x245994;}function buildInitConfig(_0xb46525,_0x354a06,_0x1a6f3a){const _0x17c742=_0x9c4956,_0x3b60c2=new Set(_0x354a06[_0x17c742(0x1a1)](_0x3dd20a=>_0x3dd20a[_0x17c742(0x19a)])),_0x291973=buildSkillDrivenBindings(_0x354a06),_0x5d8d99=_0x1a6f3a==='project'?{'codex':{..._0xb46525['agents'][_0x17c742(0x19d)],'rootDir':toProjectRootDir(_0xb46525[_0x17c742(0x1a8)][_0x17c742(0x19d)][_0x17c742(0x189)],_0x17c742(0x1a3))},'claudecode':{..._0xb46525[_0x17c742(0x1a8)]['claudecode'],'rootDir':toProjectRootDir(_0xb46525[_0x17c742(0x1a8)]['claudecode'][_0x17c742(0x189)],_0x17c742(0x1a5))},'iflow':{..._0xb46525[_0x17c742(0x1a8)]['iflow'],'rootDir':toProjectRootDir(_0xb46525[_0x17c742(0x1a8)]['iflow'][_0x17c742(0x189)],_0x17c742(0x195))}}:_0xb46525['agents'];return{..._0xb46525,'commandBindings':_0x291973[_0x17c742(0x18d)]>-0xb26+0x12eb*-0x1+0x1e11?_0x291973:_0xb46525[_0x17c742(0x1aa)][_0x17c742(0x1a1)](_0x594dd2=>_0x3b60c2['has'](_0x594dd2[_0x17c742(0x17c)])?_0x594dd2:{..._0x594dd2,'skill':_0x354a06[0x23de+0x8cb+0x6f*-0x67]?.[_0x17c742(0x19a)]||_0x594dd2[_0x17c742(0x17c)]}),'agents':{'codex':{..._0x5d8d99[_0x17c742(0x19d)],'commandFilePattern':_0x17c742(0x19c),'slashPattern':_0x17c742(0x18c)},'claudecode':{..._0x5d8d99[_0x17c742(0x180)],'commandFilePattern':'{id}.md','slashPattern':_0x17c742(0x18c)},'iflow':{..._0x5d8d99[_0x17c742(0x193)],'commandFilePattern':_0x17c742(0x19c),'slashPattern':_0x17c742(0x18c)}}};}function toProjectRootDir(_0x3964ab,_0x5b70fb){const _0x212f5d=_0x9c4956;if(!_0x3964ab)return _0x5b70fb;if(!_0x3964ab[_0x212f5d(0x199)]('~/')&&!_0x3964ab['startsWith']('~\x5c')&&!_0x5b1587[_0x212f5d(0x197)](_0x3964ab))return _0x3964ab;const _0x1fbade=_0x3964ab['replace'](/[/\\]+$/,''),_0x2669cd=_0x5b1587[_0x212f5d(0x1a4)](_0x1fbade);return _0x2669cd||_0x5b70fb;}function _0x8df5(){const _0x1ce211=['1077909fbKBgb','.codex','basename','.claude','18168XaXFBo','default','agents','1315284AoulKf','commandBindings','18BIhIno','skill','4749990JczkEe','456zVfwAG','55hKbeOE','claudecode','5SeGsMi','4388dcLLTu','skills','cd-','commandsDir','level','replace','warning','rootDir','filter','emit','/{id}','length','未在当前项目找到可用\x20skill\x20模板。请在项目根目录准备\x20templates/<skill>/SKILL.md\x20后重试。','warn','message','toLowerCase','21qpljRH','iflow','1114040xrMSWR','.iflow','error','isAbsolute','forEach','startsWith','name','push','{id}.md','codex','264474isOlby','validate','join','map'];_0x8df5=function(){return _0x1ce211;};return _0x8df5();}function _0xd99a(_0x505ed3,_0x3dae32){_0x505ed3=_0x505ed3-(-0x2278+0x1b39+-0x2e9*-0x3);const _0x7a63c7=_0x8df5();let _0x102a4f=_0x7a63c7[_0x505ed3];return _0x102a4f;}function buildSkillDrivenBindings(_0x508dc7){const _0x50d862=_0x9c4956,_0x213956=new Set();return _0x508dc7[_0x50d862(0x1a1)](_0x140711=>{const _0x1b873b=_0x50d862,_0x180dfd=commandIdForSkillName(_0x140711[_0x1b873b(0x19a)]);let _0x476946=_0x180dfd,_0x469156=-0x25*0x34+-0x81f+0x321*0x5;while(_0x213956['has'](_0x476946)){_0x476946=''+_0x180dfd+_0x469156,_0x469156+=-0xbfe+0x7*-0x593+0x3304;}return _0x213956['add'](_0x476946),{'id':_0x476946,'skill':_0x140711[_0x1b873b(0x19a)],'description':'Run\x20skill\x20'+_0x140711[_0x1b873b(0x19a)]};});}function commandIdForSkillName(_0x1e7c53){const _0x147cab=_0x9c4956,_0x5c9add=_0x1e7c53[_0x147cab(0x191)]()[_0x147cab(0x187)](/[^a-z0-9]+/g,'-')[_0x147cab(0x187)](/^-+|-+$/g,'');return _0x147cab(0x184)+(_0x5c9add||_0x147cab(0x17c));}function failIfErrors(_0x407299){const _0x509c85=_0x9c4956,_0x10d5b5=_0x407299['filter'](_0x4a5a04=>_0x4a5a04[_0x509c85(0x186)]===_0x509c85(0x188));_0x10d5b5[_0x509c85(0x198)](_0x141d9b=>console[_0x509c85(0x18f)]('[warn]\x20'+_0x141d9b[_0x509c85(0x190)]));const _0x2270df=_0x407299[_0x509c85(0x18a)](_0x536758=>_0x536758[_0x509c85(0x186)]===_0x509c85(0x196));if(_0x2270df[_0x509c85(0x18d)]>-0x50+-0x1*0x26+0x76)throw new Error(_0x2270df[_0x509c85(0x1a1)](_0x4272c9=>_0x4272c9[_0x509c85(0x190)])[_0x509c85(0x1a0)]('\x0a'));}
1
+ (function(_0x2cbaaf,_0x27a4ae){const _0x59738c=_0x557f,_0x40acb4=_0x2cbaaf();while(!![]){try{const _0x3fd554=-parseInt(_0x59738c(0x1d6))/(0x30d*-0x7+-0x129*0x5+0x1b29*0x1)*(-parseInt(_0x59738c(0x1da))/(-0xdd9+-0x25d*-0x5+-0x1*-0x20a))+parseInt(_0x59738c(0x1c7))/(0x1cd5*-0x1+0x5d5*-0x1+-0xb8f*-0x3)+parseInt(_0x59738c(0x1cf))/(0xc36*-0x1+0x11a1+-0x567)*(parseInt(_0x59738c(0x1f2))/(-0x2204+-0x3b+0x5b6*0x6))+parseInt(_0x59738c(0x1cd))/(-0x1*-0x18d5+-0x78b*-0x4+-0x36fb*0x1)*(-parseInt(_0x59738c(0x1d7))/(-0x239e+0x1546+0xe5f))+parseInt(_0x59738c(0x1c8))/(-0xa4d+-0x114e+0x1ba3)+parseInt(_0x59738c(0x1d8))/(0x1d*-0xbd+-0x1779*-0x1+-0x207)*(-parseInt(_0x59738c(0x1cb))/(0x4*0x36d+0x1f57*-0x1+0x11ad))+-parseInt(_0x59738c(0x1ee))/(0x372+-0x6e2+-0x1b*-0x21)*(parseInt(_0x59738c(0x1de))/(0x6*-0x65a+-0x224e+0x73f*0xa));if(_0x3fd554===_0x27a4ae)break;else _0x40acb4['push'](_0x40acb4['shift']());}catch(_0x111cec){_0x40acb4['push'](_0x40acb4['shift']());}}}(_0x3c0d,0x26*0x1553+0x508d8*-0x1+0x56045));import _0xd96b1c from'node:path';function _0x557f(_0x22df3a,_0x1d8533){_0x22df3a=_0x22df3a-(0x400*-0x4+0x153e+-0x6*0x94);const _0x88b986=_0x3c0d();let _0x548d48=_0x88b986[_0x22df3a];return _0x548d48;}import{rm}from'node:fs/promises';import{loadConfig}from'../config/loader.js';import{resolveAgentRoot}from'../config/path.js';import{expandTargets,getAdapter}from'./adapters/index.js';import{loadBundledTemplateManifests}from'./scaffold.js';import{installToolInteractionTemplates}from'./tool-interactions.js';import{validateManifest}from'./validator.js';export async function initSkills(_0x3d4df3,_0x194f1f,_0x417b07,_0x411b3d='default'){const _0x2c4a15=_0x557f,_0x59e335=await loadConfig(_0x3d4df3),_0x36d6d5=await loadBundledTemplateManifests();if(_0x36d6d5[_0x2c4a15(0x1ef)]===0x1e34+0x1438*-0x1+-0x9fc)throw new Error(_0x2c4a15(0x1d2));const _0x445707=buildInitConfig(_0x59e335,_0x36d6d5,_0x411b3d),_0x1fc5b1=expandTargets(_0x194f1f);if(_0x417b07)for(const _0x254dd0 of _0x1fc5b1){const _0x553ece=resolveAgentRoot(_0x3d4df3,_0x445707['agents'][_0x254dd0][_0x2c4a15(0x1dd)]);await rm(_0xd96b1c['join'](_0x553ece,'skills'),{'recursive':!![],'force':!![]}),await rm(_0xd96b1c[_0x2c4a15(0x1c9)](_0x553ece,_0x445707[_0x2c4a15(0x1e1)][_0x254dd0][_0x2c4a15(0x1e9)]),{'recursive':!![],'force':!![]});}for(const _0x32f3b4 of _0x36d6d5){const _0x2ffbc0=[...validateManifest(_0x32f3b4)];for(const _0x45c801 of _0x1fc5b1){_0x2ffbc0[_0x2c4a15(0x1e8)](...getAdapter(_0x45c801)[_0x2c4a15(0x1d5)](_0x32f3b4));}failIfErrors(_0x2ffbc0);}for(const _0x179ed2 of _0x36d6d5){for(const _0x5c9778 of _0x1fc5b1){const _0x56994e=_0xd96b1c[_0x2c4a15(0x1c9)](resolveAgentRoot(_0x3d4df3,_0x445707[_0x2c4a15(0x1e1)][_0x5c9778][_0x2c4a15(0x1dd)]),_0x2c4a15(0x1e4),_0x179ed2[_0x2c4a15(0x1e2)]);await getAdapter(_0x5c9778)['emit'](_0x179ed2,_0x56994e,_0x417b07);}}const _0x50fa5f=[];for(const _0x4fe747 of _0x1fc5b1){_0x50fa5f['push'](...await installToolInteractionTemplates(_0x3d4df3,_0x4fe747,_0x36d6d5,_0x445707));}return _0x50fa5f;}function buildInitConfig(_0x183cc7,_0x20123c,_0x315f4e){const _0x20b9f4=_0x557f,_0x696f7d=new Set(_0x20123c['map'](_0x3b78db=>_0x3b78db['name'])),_0x2a45e3=buildSkillDrivenBindings(_0x20123c),_0x1b6647=_0x315f4e===_0x20b9f4(0x1db)?{'codex':{..._0x183cc7[_0x20b9f4(0x1e1)][_0x20b9f4(0x1cc)],'rootDir':toProjectRootDir(_0x183cc7[_0x20b9f4(0x1e1)]['codex'][_0x20b9f4(0x1dd)],_0x20b9f4(0x1ea))},'claudecode':{..._0x183cc7['agents'][_0x20b9f4(0x1d9)],'rootDir':toProjectRootDir(_0x183cc7[_0x20b9f4(0x1e1)][_0x20b9f4(0x1d9)][_0x20b9f4(0x1dd)],_0x20b9f4(0x1e0))},'iflow':{..._0x183cc7[_0x20b9f4(0x1e1)][_0x20b9f4(0x1ca)],'rootDir':toProjectRootDir(_0x183cc7[_0x20b9f4(0x1e1)][_0x20b9f4(0x1ca)]['rootDir'],'.iflow')}}:_0x183cc7[_0x20b9f4(0x1e1)];return{..._0x183cc7,'commandBindings':_0x2a45e3[_0x20b9f4(0x1ef)]>-0x130+0x22cd+-0x219d?_0x2a45e3:_0x183cc7[_0x20b9f4(0x1ce)][_0x20b9f4(0x1eb)](_0x127927=>_0x696f7d[_0x20b9f4(0x1d3)](_0x127927[_0x20b9f4(0x1ec)])?_0x127927:{..._0x127927,'skill':_0x20123c[0x2*0x3d9+0x1dd+-0x98f*0x1]?.[_0x20b9f4(0x1e2)]||_0x127927[_0x20b9f4(0x1ec)]}),'agents':{'codex':{..._0x1b6647[_0x20b9f4(0x1cc)],'commandFilePattern':_0x20b9f4(0x1f0),'slashPattern':_0x20b9f4(0x1df)},'claudecode':{..._0x1b6647[_0x20b9f4(0x1d9)],'commandFilePattern':_0x20b9f4(0x1f0),'slashPattern':_0x20b9f4(0x1df)},'iflow':{..._0x1b6647[_0x20b9f4(0x1ca)],'commandFilePattern':_0x20b9f4(0x1f0),'slashPattern':_0x20b9f4(0x1df)}}};}function toProjectRootDir(_0x53788d,_0x41f12e){const _0x2c9755=_0x557f;if(!_0x53788d)return _0x41f12e;if(!_0x53788d[_0x2c9755(0x1e7)]('~/')&&!_0x53788d[_0x2c9755(0x1e7)]('~\x5c')&&!_0xd96b1c[_0x2c9755(0x1e3)](_0x53788d))return _0x53788d;const _0x194a5e=_0x53788d[_0x2c9755(0x1d1)](/[/\\]+$/,''),_0x5593f2=_0xd96b1c[_0x2c9755(0x1e5)](_0x194a5e);return _0x5593f2||_0x41f12e;}function buildSkillDrivenBindings(_0x1b7499){const _0x21b5f7=_0x557f,_0x2023ff=new Set();return _0x1b7499[_0x21b5f7(0x1eb)](_0x54f075=>{const _0x33de24=_0x21b5f7,_0x2adf94=commandIdForSkillName(_0x54f075[_0x33de24(0x1e2)]);let _0x5b2d91=_0x2adf94,_0x401192=0xde+-0x1*0x2a7+0x1b*0x11;while(_0x2023ff[_0x33de24(0x1d3)](_0x5b2d91)){_0x5b2d91=''+_0x2adf94+_0x401192,_0x401192+=0x1bec+0x284+-0x1e6f;}return _0x2023ff['add'](_0x5b2d91),{'id':_0x5b2d91,'skill':_0x54f075['name'],'description':_0x33de24(0x1dc)+_0x54f075[_0x33de24(0x1e2)]};});}function commandIdForSkillName(_0x58fc29){const _0x5abc8f=_0x557f,_0x470fbd=_0x58fc29['toLowerCase']()[_0x5abc8f(0x1d1)](/[^a-z0-9]+/g,'-')[_0x5abc8f(0x1d1)](/^-+|-+$/g,'');return _0x5abc8f(0x1f3)+(_0x470fbd||'skill');}function failIfErrors(_0x4c3e24){const _0x54904c=_0x557f,_0x181ee7=_0x4c3e24[_0x54904c(0x1d4)](_0x778515=>_0x778515[_0x54904c(0x1d0)]===_0x54904c(0x1c6));_0x181ee7['forEach'](_0x4eb3d7=>console[_0x54904c(0x1e6)](_0x54904c(0x1f1)+_0x4eb3d7[_0x54904c(0x1ed)]));const _0x3539c9=_0x4c3e24['filter'](_0x2c445e=>_0x2c445e['level']==='error');if(_0x3539c9[_0x54904c(0x1ef)]>-0x723+0x3c8+0x35b)throw new Error(_0x3539c9[_0x54904c(0x1eb)](_0xa87d2d=>_0xa87d2d[_0x54904c(0x1ed)])['join']('\x0a'));}function _0x3c0d(){const _0x5d802a=['skill','message','4368023nJxFde','length','{id}.md','[warn]\x20','16580yzOyzJ','cd-','warning','1086060siSTAU','26744FbsCyB','join','iflow','10dvuCby','codex','1446deUlHj','commandBindings','548zTOONF','level','replace','未在\x20cdspec\x20内置\x20templates\x20中找到可用\x20skill\x20模板,请检查安装包是否完整。','has','filter','validate','17IMtbIe','2212hCoXwK','1895337CoqdFm','claudecode','11060RpXvSa','project','Run\x20skill\x20','rootDir','12vPBpQA','/{id}','.claude','agents','name','isAbsolute','skills','basename','warn','startsWith','push','commandsDir','.codex','map'];_0x3c0d=function(){return _0x5d802a;};return _0x3c0d();}
@@ -1 +1 @@
1
- (function(_0x462330,_0x423048){const _0x14744e=_0x49d7,_0x157f67=_0x462330();while(!![]){try{const _0x589660=-parseInt(_0x14744e(0x164))/(-0xbc9*0x1+0x212e+-0x1564)+parseInt(_0x14744e(0x16b))/(0x2*-0x100b+0x1ebe+0x15a)+parseInt(_0x14744e(0x167))/(0x1e65*-0x1+-0x296*-0x2+-0x17c*-0x11)+parseInt(_0x14744e(0x16f))/(0x1b1*0x2+-0x2614+0xb92*0x3)*(parseInt(_0x14744e(0x165))/(-0x109e+0x19ee+-0x94b))+parseInt(_0x14744e(0x162))/(-0x21bf*0x1+-0x1f60+0x4125)+parseInt(_0x14744e(0x172))/(-0x12ab+0x379+0xf39)+-parseInt(_0x14744e(0x174))/(-0x13b7+0x1*0x1eee+-0xb2f);if(_0x589660===_0x423048)break;else _0x157f67['push'](_0x157f67['shift']());}catch(_0x833f90){_0x157f67['push'](_0x157f67['shift']());}}}(_0x31b6,-0x46b0d*0x3+0x1*-0x22712+0x97b*0x296));import{writeFile}from'node:fs/promises';import _0x3f4174 from'node:path';function _0x49d7(_0x46989b,_0x5068f0){_0x46989b=_0x46989b-(0x5f3*-0x6+0x2*0xb31+0xead);const _0x32f4e6=_0x31b6();let _0x3f4174=_0x32f4e6[_0x46989b];return _0x3f4174;}import{resolveAgentRoot}from'../config/path.js';function _0x31b6(){const _0x255a0e=['5193517tZxszB','skill','4203536WunNNM','rootDir','agents','join','{id}','##\x20Skill\x20binding','1623864FozTDD','utf8','642255aRyOgT','5MdxvyI','commandBindings','1010856sqiCcQ','description','push','##\x20Required\x20output','74518PJjlHA','replace','-\x20Change\x20ID','commandFilePattern','1511456Pcncfh','-\x20skill:\x20','-\x20Validation\x20summary'];_0x31b6=function(){return _0x255a0e;};return _0x31b6();}import{ensureDir}from'../utils/fs.js';export async function installToolInteractionTemplates(_0x3689a3,_0x309da8,_0x33c22b,_0x145ff8){const _0x41e38b=_0x49d7,_0x18e96b=_0x145ff8[_0x41e38b(0x15e)][_0x309da8],_0xfcf0c5=resolveAgentRoot(_0x3689a3,_0x18e96b[_0x41e38b(0x15d)]),_0x20f593=_0x3f4174['join'](_0xfcf0c5,_0x18e96b['commandsDir']);await ensureDir(_0x20f593);const _0x2039ac=[];for(const _0x2bf012 of _0x145ff8[_0x41e38b(0x166)]){const _0x11c4d5=_0x18e96b[_0x41e38b(0x16e)][_0x41e38b(0x16c)](_0x41e38b(0x160),_0x2bf012['id']),_0x3f630c=_0x3f4174[_0x41e38b(0x15f)](_0x20f593,_0x11c4d5);await writeFile(_0x3f630c,renderCommandTemplate(_0x309da8,_0x2bf012['id'],_0x2bf012[_0x41e38b(0x173)],_0x2bf012[_0x41e38b(0x168)]),_0x41e38b(0x163)),_0x2039ac[_0x41e38b(0x169)](_0x3f630c);}return _0x2039ac;}function renderCommandTemplate(_0x1b7113,_0x5cbc41,_0x5bab9f,_0x2eb657){const _0x365d18=_0x49d7;return['#\x20'+_0x5cbc41+'\x20('+_0x1b7113+')','',_0x2eb657,'',_0x365d18(0x161),_0x365d18(0x170)+_0x5bab9f,'',_0x365d18(0x16a),_0x365d18(0x16d),'-\x20Updated\x20files',_0x365d18(0x171)][_0x365d18(0x15f)]('\x0a');}
1
+ (function(_0x2fad8d,_0x412785){const _0x6b17ca=_0x2c6e,_0x51bedb=_0x2fad8d();while(!![]){try{const _0x3a68e2=-parseInt(_0x6b17ca(0x16d))/(-0x25*0x22+0xc1*-0xb+-0xd36*-0x1)*(-parseInt(_0x6b17ca(0x182))/(0x11d3+-0x1b65*-0x1+-0x2d36))+-parseInt(_0x6b17ca(0x17c))/(0x7ce+0x3c3+-0xb8e)+parseInt(_0x6b17ca(0x170))/(0x6e3+-0x26b2+-0x1fd3*-0x1)+parseInt(_0x6b17ca(0x175))/(-0x1a78+0x957+0x1126)+-parseInt(_0x6b17ca(0x17d))/(0xae6+0x1*-0x1f3+-0x8ed)*(-parseInt(_0x6b17ca(0x17a))/(-0x2545+-0xa2f*0x1+0x37*0xdd))+parseInt(_0x6b17ca(0x16e))/(0x1ec5*0x1+0x1961+-0xb*0x51a)*(-parseInt(_0x6b17ca(0x16b))/(-0xd4+0x1bd9+-0x1afc))+-parseInt(_0x6b17ca(0x177))/(0x13b1*-0x1+-0x189*0xd+-0x1*-0x27b0);if(_0x3a68e2===_0x412785)break;else _0x51bedb['push'](_0x51bedb['shift']());}catch(_0x522666){_0x51bedb['push'](_0x51bedb['shift']());}}}(_0x106f,0x2*0x3c2ba+0x76f71+-0xa7cca));import{writeFile}from'node:fs/promises';import _0x3041fe from'node:path';import{resolveAgentRoot}from'../config/path.js';function _0x2c6e(_0x1a57e9,_0x31bf2d){_0x1a57e9=_0x1a57e9-(0x1bcf+-0x1bca+0x166);const _0x29d63d=_0x106f();let _0x180f7f=_0x29d63d[_0x1a57e9];return _0x180f7f;}import{ensureDir}from'../utils/fs.js';function _0x106f(){const _0x5ce3d7=['utf8','commandFilePattern','34ZgikhU','##\x20Skill\x20binding','9ZESEGM','commandsDir','1858yeONID','1853048ZXLalF','push','263468Mkirar','-\x20Updated\x20files','agents','commandBindings','rootDir','294555UywkqX','description','154620OdEhbl','-\x20skill:\x20','{id}','28JMaLcJ','##\x20Required\x20output','201792NrmzSb','676326DvvLZj','join','skill'];_0x106f=function(){return _0x5ce3d7;};return _0x106f();}export async function installToolInteractionTemplates(_0x44c67f,_0x61e730,_0x49cf14,_0x4ae2db){const _0x5900ed=_0x2c6e,_0x2a9c6e=_0x4ae2db[_0x5900ed(0x172)][_0x61e730],_0x5d8891=resolveAgentRoot(_0x44c67f,_0x2a9c6e[_0x5900ed(0x174)]),_0x35922f=_0x3041fe[_0x5900ed(0x17e)](_0x5d8891,_0x2a9c6e[_0x5900ed(0x16c)]);await ensureDir(_0x35922f);const _0x3dcbca=[];for(const _0x3759ef of _0x4ae2db[_0x5900ed(0x173)]){const _0xe5d84c=_0x2a9c6e[_0x5900ed(0x181)]['replace'](_0x5900ed(0x179),_0x3759ef['id']),_0x56874b=_0x3041fe[_0x5900ed(0x17e)](_0x35922f,_0xe5d84c);await writeFile(_0x56874b,renderCommandTemplate(_0x61e730,_0x3759ef['id'],_0x3759ef[_0x5900ed(0x17f)],_0x3759ef[_0x5900ed(0x176)]),_0x5900ed(0x180)),_0x3dcbca[_0x5900ed(0x16f)](_0x56874b);}return _0x3dcbca;}function renderCommandTemplate(_0xfef7d3,_0x4be76e,_0x57a71c,_0x326e1f){const _0x41b7d4=_0x2c6e;return['#\x20'+_0x4be76e+'\x20('+_0xfef7d3+')','',_0x326e1f,'',_0x41b7d4(0x183),_0x41b7d4(0x178)+_0x57a71c,'',_0x41b7d4(0x17b),'-\x20Change\x20ID',_0x41b7d4(0x171),'-\x20Validation\x20summary']['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x5b70e9,_0x2d1a30){const _0x1420fa=_0x5c44,_0x6e9c09=_0x5b70e9();while(!![]){try{const _0x4450b1=-parseInt(_0x1420fa(0x145))/(0x8f5+-0xe*-0x187+-0x16*0x161)*(-parseInt(_0x1420fa(0x136))/(-0x314*0xc+-0x1*0x1ecc+0x1a*0x29b))+parseInt(_0x1420fa(0x13f))/(0x12cd*-0x1+-0x2c+0x12fc)+-parseInt(_0x1420fa(0x13b))/(-0x7*0x455+0x1564+0x8f3)*(-parseInt(_0x1420fa(0x134))/(-0x1*-0x1e51+-0x2138+0x2ec))+-parseInt(_0x1420fa(0x13c))/(-0x41*0x1+0x12*0x116+0x1345*-0x1)*(-parseInt(_0x1420fa(0x143))/(-0xd*-0x137+-0x1f45*-0x1+-0x2f09))+-parseInt(_0x1420fa(0x140))/(-0x1412+0x2527*0x1+-0x369*0x5)+-parseInt(_0x1420fa(0x144))/(0x25*0x47+-0x2ce+-0x76c)+-parseInt(_0x1420fa(0x139))/(-0x5ab*-0x2+0x208f+-0x2bdb*0x1)*(-parseInt(_0x1420fa(0x138))/(-0x85f+0x6e*-0x54+0x2c82));if(_0x4450b1===_0x2d1a30)break;else _0x6e9c09['push'](_0x6e9c09['shift']());}catch(_0x5dc16f){_0x6e9c09['push'](_0x6e9c09['shift']());}}}(_0x294a,-0x1a*-0xb2f6+-0x8af83+-0x853*-0x26));export function validateManifest(_0x58bfe5){const _0x4047ce=_0x5c44,_0x25aae1=[];return!_0x58bfe5[_0x4047ce(0x147)]&&_0x25aae1[_0x4047ce(0x142)]({'level':'error','message':'Skill\x20name\x20is\x20required.'}),!_0x58bfe5[_0x4047ce(0x13a)]&&_0x25aae1[_0x4047ce(0x142)]({'level':_0x4047ce(0x135),'message':_0x4047ce(0x13e)+_0x58bfe5[_0x4047ce(0x147)]+_0x4047ce(0x146)}),!_0x58bfe5['body']&&_0x25aae1[_0x4047ce(0x142)]({'level':_0x4047ce(0x13d),'message':'Skill\x20\x22'+_0x58bfe5['name']+_0x4047ce(0x137)}),!/^[a-z0-9-]+$/['test'](_0x58bfe5['name'])&&_0x25aae1[_0x4047ce(0x142)]({'level':_0x4047ce(0x13d),'message':_0x4047ce(0x13e)+_0x58bfe5[_0x4047ce(0x147)]+_0x4047ce(0x141)}),_0x25aae1;}function _0x5c44(_0x413204,_0x59a5bf){_0x413204=_0x413204-(0x1582+-0xc70*-0x1+-0x20be);const _0x5bc87c=_0x294a();let _0x296701=_0x5bc87c[_0x413204];return _0x296701;}function _0x294a(){const _0x59c0c8=['Skill\x20\x22','1802892rrmCXx','8249520esMppj','\x22\x20should\x20use\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.','push','96299McyHQW','9318708XtLgrh','410209bVAAPH','\x22\x20is\x20missing\x20frontmatter\x20description.','name','58120aRNIIN','error','2nxiOib','\x22\x20has\x20empty\x20SKILL.md\x20body.','6048559tUrhqn','10BhyvoV','description','4GpaPht','522tzObSu','warning'];_0x294a=function(){return _0x59c0c8;};return _0x294a();}
1
+ (function(_0x182441,_0x1c3f72){const _0x119de1=_0x47ab,_0x19d3a8=_0x182441();while(!![]){try{const _0x460517=parseInt(_0x119de1(0x169))/(0x1f8d+-0x35*-0x79+-0x3899)*(-parseInt(_0x119de1(0x177))/(0xbe1+-0xb*0x29+-0x2*0x50e))+parseInt(_0x119de1(0x17a))/(0x19d7+0x664+-0x80e*0x4)+-parseInt(_0x119de1(0x175))/(0x1996+0xc*0x293+-0x3876)+-parseInt(_0x119de1(0x16e))/(-0x5ad+0x550+0x62)*(-parseInt(_0x119de1(0x173))/(0x182b+-0xf8f+0xe*-0x9d))+parseInt(_0x119de1(0x16b))/(-0x1438+0x2438+0x553*-0x3)+parseInt(_0x119de1(0x16a))/(-0xc9c+0x1a*-0xdc+-0x2*-0x117e)*(parseInt(_0x119de1(0x17c))/(-0x4*0xbb+-0x252f+0x1*0x2824))+-parseInt(_0x119de1(0x16d))/(-0x1236+0x3d*-0x35+0x1ee1)*(-parseInt(_0x119de1(0x178))/(-0x198a+-0x143d+-0xaa*-0x45));if(_0x460517===_0x1c3f72)break;else _0x19d3a8['push'](_0x19d3a8['shift']());}catch(_0x324ec4){_0x19d3a8['push'](_0x19d3a8['shift']());}}}(_0x5a35,0xafbc9+-0xe3e*-0x1bb+-0x168853));export function validateManifest(_0x109535){const _0x52db15=_0x47ab,_0x44a233=[];return!_0x109535['name']&&_0x44a233['push']({'level':_0x52db15(0x170),'message':_0x52db15(0x174)}),!_0x109535[_0x52db15(0x176)]&&_0x44a233['push']({'level':_0x52db15(0x170),'message':_0x52db15(0x172)+_0x109535['name']+_0x52db15(0x168)}),!_0x109535[_0x52db15(0x171)]&&_0x44a233[_0x52db15(0x16c)]({'level':_0x52db15(0x167),'message':'Skill\x20\x22'+_0x109535['name']+_0x52db15(0x16f)}),!/^[a-z0-9-]+$/[_0x52db15(0x17b)](_0x109535['name'])&&_0x44a233[_0x52db15(0x16c)]({'level':_0x52db15(0x167),'message':'Skill\x20\x22'+_0x109535[_0x52db15(0x179)]+_0x52db15(0x17d)}),_0x44a233;}function _0x47ab(_0x2a36a2,_0x1760da){_0x2a36a2=_0x2a36a2-(0xb3*-0x17+0x17a2+-0x626);const _0x58e581=_0x5a35();let _0x5c5b2c=_0x58e581[_0x2a36a2];return _0x5c5b2c;}function _0x5a35(){const _0x33b89f=['2370AsBasQ','Skill\x20name\x20is\x20required.','3065304aGPeJo','description','142AhgBpd','1916805STKDNM','name','508584LWWhsH','test','1494flPyOy','\x22\x20should\x20use\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.','warning','\x22\x20is\x20missing\x20frontmatter\x20description.','16481UHaWeK','33816mlNALN','965097GCSlCI','push','50wzXoAy','11575ztylOP','\x22\x20has\x20empty\x20SKILL.md\x20body.','error','body','Skill\x20\x22'];_0x5a35=function(){return _0x33b89f;};return _0x5a35();}
@@ -1 +1 @@
1
- function _0x3f15(_0x2d3bf1,_0x5a51de){_0x2d3bf1=_0x2d3bf1-(0x8*0x314+0x2*-0x1321+-0x5*-0x305);const _0x460221=_0x570a();let _0x29d2b1=_0x460221[_0x2d3bf1];return _0x29d2b1;}function _0x570a(){const _0x1c3eb2=['\x0a---\x0a\x0a','map','2717056YzmRTc','4872wPobBk','join','trim','entries','---\x0a','2132060zpSEEP','528638IgizyI',':\x20\x22','split','indexOf','\x0a---\x0a','startsWith','endsWith','slice','26KzRfca','17496fWXzGW','replace','1218216QsFqwA','4552359McmBdZ','8256oGZSEL'];_0x570a=function(){return _0x1c3eb2;};return _0x570a();}(function(_0x513a8a,_0xb16fe8){const _0x3c5cc3=_0x3f15,_0x570e0d=_0x513a8a();while(!![]){try{const _0x92913f=-parseInt(_0x3c5cc3(0x18a))/(-0x16ae+0x100e+-0x6a1*-0x1)+parseInt(_0x3c5cc3(0x17b))/(0x238a+0xd31+0x1*-0x30b9)*(-parseInt(_0x3c5cc3(0x184))/(0x10e9*0x1+0x1*-0x24ce+0x13e8))+-parseInt(_0x3c5cc3(0x183))/(0xe*0x61+-0x18d7+0x138d)+parseInt(_0x3c5cc3(0x189))/(-0xf4*0x27+-0x184e*-0x1+0xce3)+-parseInt(_0x3c5cc3(0x17e))/(0x2439+-0x7d*-0x4+-0x2627)+-parseInt(_0x3c5cc3(0x17f))/(-0x43f*0x4+-0x2703+0x3806*0x1)+parseInt(_0x3c5cc3(0x180))/(-0x159b+0x2*-0xba1+-0xef7*-0x3)*(parseInt(_0x3c5cc3(0x17c))/(0x527*0x7+-0x23dd+-0x2b*0x1));if(_0x92913f===_0xb16fe8)break;else _0x570e0d['push'](_0x570e0d['shift']());}catch(_0x28c2b7){_0x570e0d['push'](_0x570e0d['shift']());}}}(_0x570a,-0x284b6*0x2+-0x4ae37+0xf0fbc*0x1));export function parseFrontmatter(_0x21f03f){const _0x1375ca=_0x3f15,_0x14f024=_0x21f03f[_0x1375ca(0x17d)](/^\uFEFF/,'')[_0x1375ca(0x17d)](/\r\n/g,'\x0a');if(!_0x14f024[_0x1375ca(0x178)](_0x1375ca(0x188)))return{'attributes':{},'body':_0x14f024};const _0x9b8703=_0x14f024[_0x1375ca(0x18d)](_0x1375ca(0x177),-0x925*-0x2+-0x4ce+0x8*-0x1af);if(_0x9b8703===-(-0x257e+0x2394+0x1eb))return{'attributes':{},'body':_0x14f024};const _0x38309a=_0x14f024[_0x1375ca(0x17a)](0x10*-0x6a+-0x2ce*0xb+-0x2*-0x12bf,_0x9b8703),_0x30d955=_0x14f024[_0x1375ca(0x17a)](_0x9b8703+(0x1bb3+-0x1ffa*0x1+0x44c)),_0x4ba12f={};for(const _0x56b908 of _0x38309a[_0x1375ca(0x18c)]('\x0a')){const _0x9f38ff=_0x56b908['trim']();if(!_0x9f38ff||_0x9f38ff[_0x1375ca(0x178)]('#'))continue;const _0x6e7b25=_0x9f38ff[_0x1375ca(0x18d)](':');if(_0x6e7b25<=0x5*0x2b8+-0x7ee+-0x5aa)continue;const _0x24d902=_0x9f38ff[_0x1375ca(0x17a)](0x1*-0x1735+-0x14a6+0x2bdb,_0x6e7b25)[_0x1375ca(0x186)]();let _0x5dc71c=_0x9f38ff[_0x1375ca(0x17a)](_0x6e7b25+(-0xcbe+-0x9e*0x29+0x260d))[_0x1375ca(0x186)]();_0x5dc71c=stripQuotes(_0x5dc71c),_0x4ba12f[_0x24d902]=_0x5dc71c;}return{'attributes':_0x4ba12f,'body':_0x30d955};}export function stringifyFrontmatter(_0x3aa611,_0x1950c4){const _0x23eb39=_0x3f15,_0x460550=Object[_0x23eb39(0x187)](_0x3aa611)[_0x23eb39(0x182)](([_0x26682b,_0x3a5677])=>{const _0x15d295=_0x23eb39,_0x169428=_0x3a5677['replace'](/"/g,'\x5c\x22');return _0x26682b+_0x15d295(0x18b)+_0x169428+'\x22';});return _0x23eb39(0x188)+_0x460550[_0x23eb39(0x185)]('\x0a')+_0x23eb39(0x181)+_0x1950c4['trimEnd']()+'\x0a';}function stripQuotes(_0x596e88){const _0xa4d109=_0x3f15;if(_0x596e88[_0xa4d109(0x178)]('\x22')&&_0x596e88[_0xa4d109(0x179)]('\x22')||_0x596e88['startsWith']('\x27')&&_0x596e88['endsWith']('\x27'))return _0x596e88[_0xa4d109(0x17a)](0x1*-0xe78+-0x2053+0x2ecc,-(-0x8*0x2b7+0x1041+0x578));return _0x596e88;}
1
+ function _0x4c5e(){const _0x12df72=['12770lqhhAq','indexOf','split','\x0a---\x0a\x0a','5KxhIqF','3378498sglMVZ','797682LKpjPP','559116rzAuAv','42312qnmPHa','3255094tKEtRq',':\x20\x22','---\x0a','slice','entries','startsWith','trim','35PKgrPp','1910384WafCuN','replace','15021SVcrOD','trimEnd'];_0x4c5e=function(){return _0x12df72;};return _0x4c5e();}(function(_0x29982e,_0x58e7ba){const _0x55f0bf=_0x24d1,_0x3ef50d=_0x29982e();while(!![]){try{const _0x35214e=parseInt(_0x55f0bf(0x113))/(-0x160+-0x1c5f+0x1dc0)+-parseInt(_0x55f0bf(0x115))/(0x1*0x5cb+-0x5*-0x723+-0x14bc*0x2)+-parseInt(_0x55f0bf(0x111))/(0x7f7+-0x14b2+0xcbe)+-parseInt(_0x55f0bf(0x114))/(-0x1fe6+0x1*0xe79+0x1171)*(parseInt(_0x55f0bf(0x110))/(0x9b*-0x2d+0x1dc0+-0x27c))+-parseInt(_0x55f0bf(0x112))/(0x1*-0x10eb+-0x12*-0x71+-0x2f*-0x31)*(-parseInt(_0x55f0bf(0x11c))/(-0xfe7+0xeaa+0x144))+parseInt(_0x55f0bf(0x11d))/(0x14ff+0x1d47*-0x1+0x38*0x26)+-parseInt(_0x55f0bf(0x11f))/(0xed+-0x2*-0xdd+-0x14f*0x2)*(-parseInt(_0x55f0bf(0x10c))/(-0x19b0+-0xd2d+0x26e7));if(_0x35214e===_0x58e7ba)break;else _0x3ef50d['push'](_0x3ef50d['shift']());}catch(_0x494a8){_0x3ef50d['push'](_0x3ef50d['shift']());}}}(_0x4c5e,0x1b02*-0x34+0xece38+-0x1df*-0x1c9));export function parseFrontmatter(_0x34f812){const _0x55e48f=_0x24d1,_0x1365bb=_0x34f812[_0x55e48f(0x11e)](/^\uFEFF/,'')[_0x55e48f(0x11e)](/\r\n/g,'\x0a');if(!_0x1365bb[_0x55e48f(0x11a)]('---\x0a'))return{'attributes':{},'body':_0x1365bb};const _0x5f047a=_0x1365bb[_0x55e48f(0x10d)]('\x0a---\x0a',-0xaf9+0x1*-0x2a+0xb27);if(_0x5f047a===-(-0x4ef*-0x2+-0x5e7*-0x2+-0x15ab*0x1))return{'attributes':{},'body':_0x1365bb};const _0x371e7f=_0x1365bb[_0x55e48f(0x118)](0xe60*-0x2+0x425*0x9+0x5f*-0x17,_0x5f047a),_0x29a234=_0x1365bb[_0x55e48f(0x118)](_0x5f047a+(-0x57*-0x1+0x1f*0x5e+-0xbb4)),_0x3e15a8={};for(const _0x175262 of _0x371e7f[_0x55e48f(0x10e)]('\x0a')){const _0x3ee7c4=_0x175262[_0x55e48f(0x11b)]();if(!_0x3ee7c4||_0x3ee7c4[_0x55e48f(0x11a)]('#'))continue;const _0x4422dd=_0x3ee7c4[_0x55e48f(0x10d)](':');if(_0x4422dd<=-0x2363*0x1+-0x2235+-0x83*-0x88)continue;const _0x38f64d=_0x3ee7c4[_0x55e48f(0x118)](-0x1*0xde9+0x277*-0xe+-0xb9*-0x43,_0x4422dd)['trim']();let _0x54b64f=_0x3ee7c4[_0x55e48f(0x118)](_0x4422dd+(-0x2369+-0xd81*-0x2+0x868))[_0x55e48f(0x11b)]();_0x54b64f=stripQuotes(_0x54b64f),_0x3e15a8[_0x38f64d]=_0x54b64f;}return{'attributes':_0x3e15a8,'body':_0x29a234};}function _0x24d1(_0x1fc497,_0x4b3337){_0x1fc497=_0x1fc497-(-0x2*-0x10fc+-0x1a1e+0x3*-0x245);const _0x1932ed=_0x4c5e();let _0x224b61=_0x1932ed[_0x1fc497];return _0x224b61;}export function stringifyFrontmatter(_0x4d3b54,_0x527bfb){const _0x3e28d0=_0x24d1,_0xb93ebb=Object[_0x3e28d0(0x119)](_0x4d3b54)['map'](([_0x2c28d6,_0x47fd55])=>{const _0x5736a5=_0x3e28d0,_0x5068a6=_0x47fd55['replace'](/"/g,'\x5c\x22');return _0x2c28d6+_0x5736a5(0x116)+_0x5068a6+'\x22';});return _0x3e28d0(0x117)+_0xb93ebb['join']('\x0a')+_0x3e28d0(0x10f)+_0x527bfb[_0x3e28d0(0x10b)]()+'\x0a';}function stripQuotes(_0x1acc38){const _0xfe002b=_0x24d1;if(_0x1acc38[_0xfe002b(0x11a)]('\x22')&&_0x1acc38['endsWith']('\x22')||_0x1acc38[_0xfe002b(0x11a)]('\x27')&&_0x1acc38['endsWith']('\x27'))return _0x1acc38[_0xfe002b(0x118)](-0x1476+-0x187d+0x66c*0x7,-(-0x227b+0x15f7+0xc85));return _0x1acc38;}
package/dist/utils/fs.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4dca77,_0x1aac88){const _0xc3707b=_0xa974,_0x256879=_0x4dca77();while(!![]){try{const _0x29bfed=parseInt(_0xc3707b(0x6f))/(0x61f*-0x3+0x9e7+-0xb*-0xc5)+-parseInt(_0xc3707b(0x73))/(-0xcec*0x2+-0x1213*0x2+-0x200*-0x1f)+-parseInt(_0xc3707b(0x77))/(0x271+0x1*0xefd+0x1*-0x116b)+-parseInt(_0xc3707b(0x70))/(-0x630+-0x7ca+-0x255*-0x6)*(-parseInt(_0xc3707b(0x71))/(-0x1f*0x15+-0x240f*0x1+0x269f))+parseInt(_0xc3707b(0x72))/(-0x1*-0x11fb+0x217a+0x273*-0x15)*(parseInt(_0xc3707b(0x6c))/(-0x2466+-0x7*-0x539+-0x22))+parseInt(_0xc3707b(0x75))/(0x3*-0x41e+-0x641*-0x6+-0x1924)+parseInt(_0xc3707b(0x74))/(0x3ad*0x1+-0x11*-0x81+-0xc35)*(parseInt(_0xc3707b(0x6e))/(-0x262d+0x1ae4+0xb53));if(_0x29bfed===_0x1aac88)break;else _0x256879['push'](_0x256879['shift']());}catch(_0x4331f1){_0x256879['push'](_0x256879['shift']());}}}(_0x3972,-0x25*0x4525+-0x9bca0+0x4*0x71b6b));function _0x3972(){const _0x1ccc2a=['map','join','14HhxlDd','filter','10pWfmCV','517239kPTNex','3403308LuiRBI','5AtFzcB','1149420uVwlsC','2074904OOZsKZ','591687Zffewf','3104640TUjKmc','name','1792626UEjVVW'];_0x3972=function(){return _0x1ccc2a;};return _0x3972();}import{mkdir,readdir,rm,stat,copyFile}from'node:fs/promises';import _0x57bfe5 from'node:path';export async function ensureDir(_0x184e9f){await mkdir(_0x184e9f,{'recursive':!![]});}export async function pathExists(_0x4aa69f){try{return await stat(_0x4aa69f),!![];}catch{return![];}}function _0xa974(_0x3bf9fa,_0x384061){_0x3bf9fa=_0x3bf9fa-(-0x128c*-0x2+0xf2*0x22+-0x44d0);const _0x3c7c37=_0x3972();let _0x57bfe5=_0x3c7c37[_0x3bf9fa];return _0x57bfe5;}export async function emptyDir(_0x2d4ac8){await rm(_0x2d4ac8,{'recursive':!![],'force':!![]}),await mkdir(_0x2d4ac8,{'recursive':!![]});}export async function copyDir(_0x484f29,_0x44acf8){const _0x487039=_0xa974;await ensureDir(_0x44acf8);const _0x562c66=await readdir(_0x484f29,{'withFileTypes':!![]});for(const _0x375977 of _0x562c66){const _0x42eec9=_0x57bfe5['join'](_0x484f29,_0x375977[_0x487039(0x76)]),_0x427ca8=_0x57bfe5[_0x487039(0x79)](_0x44acf8,_0x375977[_0x487039(0x76)]);if(_0x375977['isDirectory']()){await copyDir(_0x42eec9,_0x427ca8);continue;}await copyFile(_0x42eec9,_0x427ca8);}}export async function listDirs(_0x38228f){const _0x5bd42a=_0xa974;if(!await pathExists(_0x38228f))return[];const _0x49f294=await readdir(_0x38228f,{'withFileTypes':!![]});return _0x49f294[_0x5bd42a(0x6d)](_0x1d80c0=>_0x1d80c0['isDirectory']())[_0x5bd42a(0x78)](_0x37ebb2=>_0x37ebb2[_0x5bd42a(0x76)]);}
1
+ (function(_0x7ffec4,_0x381b9b){const _0x47cc4f=_0x471d,_0x3e6f32=_0x7ffec4();while(!![]){try{const _0x17a1a3=-parseInt(_0x47cc4f(0x193))/(-0xa*-0x175+-0xa1*-0x1f+-0x2210)*(-parseInt(_0x47cc4f(0x192))/(-0x1d95+-0x24fd+0x2*0x214a))+-parseInt(_0x47cc4f(0x18f))/(-0x175b+-0x24b7+-0x1*-0x3c15)*(-parseInt(_0x47cc4f(0x18d))/(-0xcd4+-0x21e0+0xe6*0x34))+parseInt(_0x47cc4f(0x196))/(-0x249d+-0x12ab+0x374d)*(-parseInt(_0x47cc4f(0x188))/(-0x8*0x1bd+-0x862+0x30*0x77))+parseInt(_0x47cc4f(0x195))/(-0x22*-0xe+0x1be1+-0x1db6)*(parseInt(_0x47cc4f(0x18b))/(-0x1877+-0x7*-0x289+0x30*0x24))+-parseInt(_0x47cc4f(0x190))/(-0x1*0x12ad+-0x17*0x2e+0x16d8)*(-parseInt(_0x47cc4f(0x189))/(-0x874*0x3+-0xf45*0x1+0x28ab*0x1))+parseInt(_0x47cc4f(0x18c))/(0xbb2+-0xdca+0x223)+-parseInt(_0x47cc4f(0x191))/(-0x11d6+-0x1227+0x401*0x9);if(_0x17a1a3===_0x381b9b)break;else _0x3e6f32['push'](_0x3e6f32['shift']());}catch(_0x5dcaa6){_0x3e6f32['push'](_0x3e6f32['shift']());}}}(_0x4066,-0x1*-0xf1024+-0xbdd34+0x73881));import{mkdir,readdir,rm,stat,copyFile}from'node:fs/promises';import _0x55a401 from'node:path';export async function ensureDir(_0x346e98){await mkdir(_0x346e98,{'recursive':!![]});}function _0x471d(_0x359cf6,_0xfdda17){_0x359cf6=_0x359cf6-(0x14*-0x1a5+-0x108c+0x1c*0x1d2);const _0x3e20e6=_0x4066();let _0x55a401=_0x3e20e6[_0x359cf6];return _0x55a401;}export async function pathExists(_0x1a62f7){try{return await stat(_0x1a62f7),!![];}catch{return![];}}function _0x4066(){const _0x4aedda=['map','306948gDndNH','7964710zHhIVJ','join','24LYsxQS','877327gPNmLM','4rjBxdA','name','1968522msiPRB','9ijYKDI','25414980AVWjVo','142OrVOIz','3749oVScmg','filter','2815939DOADsl','20xYTOOY','isDirectory'];_0x4066=function(){return _0x4aedda;};return _0x4066();}export async function emptyDir(_0x4fd618){await rm(_0x4fd618,{'recursive':!![],'force':!![]}),await mkdir(_0x4fd618,{'recursive':!![]});}export async function copyDir(_0x56432b,_0x3f842e){const _0x303717=_0x471d;await ensureDir(_0x3f842e);const _0x583aec=await readdir(_0x56432b,{'withFileTypes':!![]});for(const _0x1241d4 of _0x583aec){const _0x1a2104=_0x55a401[_0x303717(0x18a)](_0x56432b,_0x1241d4[_0x303717(0x18e)]),_0x2941a6=_0x55a401[_0x303717(0x18a)](_0x3f842e,_0x1241d4[_0x303717(0x18e)]);if(_0x1241d4[_0x303717(0x197)]()){await copyDir(_0x1a2104,_0x2941a6);continue;}await copyFile(_0x1a2104,_0x2941a6);}}export async function listDirs(_0xa1f03c){const _0xf0ccef=_0x471d;if(!await pathExists(_0xa1f03c))return[];const _0x4300c9=await readdir(_0xa1f03c,{'withFileTypes':!![]});return _0x4300c9[_0xf0ccef(0x194)](_0x3452e3=>_0x3452e3['isDirectory']())[_0xf0ccef(0x198)](_0x1614d1=>_0x1614d1[_0xf0ccef(0x18e)]);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdspec",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "author": "liyanwei",
5
5
  "description": "CDSpec CLI for standardized skill installation and command generation",
6
6
  "type": "module",