cdspec 0.1.3 → 0.1.4

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/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x4586ae=_0x2ae6;(function(_0x952b63,_0x19c83a){const _0x589d6a=_0x2ae6,_0x4ae186=_0x952b63();while(!![]){try{const _0x44ad2d=parseInt(_0x589d6a(0xf1))/(-0x8f4*0x1+0x25cf*-0x1+0x2ec4)+parseInt(_0x589d6a(0x102))/(-0xd*0x115+-0x1d9*0x4+0x1577)+parseInt(_0x589d6a(0xfd))/(-0x15b1+0x30*-0xc5+0x3aa4)*(parseInt(_0x589d6a(0x103))/(-0xb*0x23d+-0x3*-0x2cf+0x53*0x32))+parseInt(_0x589d6a(0xf2))/(0xbda+-0x1a28+0xc1*0x13)+-parseInt(_0x589d6a(0xfa))/(0x1fec+-0x3a0+0x1*-0x1c46)+-parseInt(_0x589d6a(0xf4))/(0xbc7+-0x230b*-0x1+-0x2ecb)+-parseInt(_0x589d6a(0x100))/(-0x27f*-0x2+0x207a+-0x2570);if(_0x44ad2d===_0x19c83a)break;else _0x4ae186['push'](_0x4ae186['shift']());}catch(_0x26c43b){_0x4ae186['push'](_0x4ae186['shift']());}}}(_0x4cca,-0x1dbe33+0x1584ad*0x1+-0xbb209*-0x2));import _0x18a232 from'@inquirer/checkbox';import{Command}from'commander';import _0x414dbc from'node:path';function _0x4cca(){const _0x13d22e=['command','Initialized\x20setup\x20for\x20\x22','log','join','all','version','iflow','message','name','Select\x20coding\x20agents','error','--agents\x20<agents>','isTTY','codex|claudecode|iflow|all\x20or\x20comma-separated','1440721ofwkIH','4373925AQBeYl','option','9023161UrAXlu','0.1.0','claudecode','stdin','action','catch','6361488VqTaZQ','Initialize\x20skills\x20for\x20selected\x20coding\x20agents','codex','243kdCjWw','init','cwd','10801848dwxeRn','Generated\x20files:\x20','1258762enamVM','86348TxpcQx','includes','argv'];_0x4cca=function(){return _0x13d22e;};return _0x4cca();}function _0x2ae6(_0x3a72c1,_0x4474e6){_0x3a72c1=_0x3a72c1-(-0x23b4+0x20ff+-0x1*-0x397);const _0x52982d=_0x4cca();let _0x5a546f=_0x52982d[_0x3a72c1];return _0x5a546f;}import _0x2cb688 from'node:process';import{initSkills}from'./skill-core/service.js';const program=new Command();program[_0x4586ae(0xeb)]('cdspec')['description']('Skill\x20init\x20CLI')[_0x4586ae(0xe8)](_0x4586ae(0xf5)),program[_0x4586ae(0xe3)](_0x4586ae(0xfe))['description'](_0x4586ae(0xfb))[_0x4586ae(0xf3)](_0x4586ae(0xee),_0x4586ae(0xf0))[_0x4586ae(0xf8)](async _0x2a3372=>{const _0x120f72=_0x4586ae,_0x4dc941=_0x2a3372['agents']??await askAgentsSelection(),_0x4bd56f=await initSkills(_0x2cb688['cwd'](),_0x4dc941,!![]);console[_0x120f72(0xe5)](_0x120f72(0xe4)+_0x4dc941+'\x22.'),console[_0x120f72(0xe5)](_0x120f72(0x101)+_0x4bd56f['map'](_0x1063a1=>_0x414dbc['relative'](_0x2cb688[_0x120f72(0xff)](),_0x1063a1))[_0x120f72(0xe6)](',\x20'));}),program['parseAsync'](_0x2cb688[_0x4586ae(0xe2)])[_0x4586ae(0xf9)](_0x311986=>{const _0x31556b=_0x4586ae,_0xb7ae0f=_0x311986 instanceof Error?_0x311986[_0x31556b(0xea)]:String(_0x311986);console[_0x31556b(0xed)](_0xb7ae0f),_0x2cb688['exitCode']=0x5e3+0x2*0x2dd+0x1*-0xb9c;});async function askAgentsSelection(){const _0x4f55c0=_0x4586ae;if(!_0x2cb688[_0x4f55c0(0xf7)][_0x4f55c0(0xef)])return _0x4f55c0(0xe7);const _0x510c4a=await _0x18a232({'message':_0x4f55c0(0xec),'choices':[{'name':'codex','value':_0x4f55c0(0xfc),'checked':!![]},{'name':_0x4f55c0(0xf6),'value':_0x4f55c0(0xf6)},{'name':_0x4f55c0(0xe9),'value':'iflow'},{'name':'all','value':_0x4f55c0(0xe7)}]});if(_0x510c4a['length']===0x2455+-0x1*-0x85+-0x24da)return _0x4f55c0(0xe7);if(_0x510c4a[_0x4f55c0(0x104)](_0x4f55c0(0xe7)))return _0x4f55c0(0xe7);return _0x510c4a[_0x4f55c0(0xe6)](',');}
2
+ const _0x1e5646=_0x3b05;(function(_0x4ee451,_0x3569b9){const _0x1f05e0=_0x3b05,_0x5d1dc1=_0x4ee451();while(!![]){try{const _0x5179be=-parseInt(_0x1f05e0(0x84))/(-0x2001+-0x67*0x3d+-0x1*-0x388d)+parseInt(_0x1f05e0(0x96))/(0x12bf*-0x1+-0x1ecb+-0xc63*-0x4)+parseInt(_0x1f05e0(0x89))/(-0x1a5*0x16+0x287+0x3e*0x8b)*(-parseInt(_0x1f05e0(0x79))/(-0x1*0xc3b+-0x293*0x2+0x1165))+-parseInt(_0x1f05e0(0x7e))/(0x6*0x60a+-0x25c9+0x192)+-parseInt(_0x1f05e0(0xa4))/(-0x1615+0x5*0x449+0xae)*(-parseInt(_0x1f05e0(0x95))/(0x182+-0x3d*0x11+0x1*0x292))+-parseInt(_0x1f05e0(0x80))/(-0x1a10+-0xb7*-0x2e+-0x6ca)+parseInt(_0x1f05e0(0x8b))/(0x9*-0x47+-0x1020+0x12a8);if(_0x5179be===_0x3569b9)break;else _0x5d1dc1['push'](_0x5d1dc1['shift']());}catch(_0x8383ab){_0x5d1dc1['push'](_0x5d1dc1['shift']());}}}(_0xa98e,0xd687e+0x161f1+-0x11*0x357b));import _0x3e267c from'@inquirer/checkbox';import _0x263e5c from'@inquirer/select';import{Command}from'commander';function _0x3b05(_0xcb0c9b,_0x9f3b86){_0xcb0c9b=_0xcb0c9b-(-0x258d+-0x1382*0x1+-0x3988*-0x1);const _0x13c83a=_0xa98e();let _0x480847=_0x13c83a[_0xcb0c9b];return _0x480847;}import _0x4bde05 from'node:path';import _0xfd157b from'node:process';import{initSkills}from'./skill-core/service.js';const program=new Command();function _0xa98e(){const _0x22b31c=['默认路径(按配置)','argv','error','log','init','description','isTTY','command','message','67165ufSaFf','39170BEPBmB','length','iflow','toLowerCase','default|project','project','cdspec','join','[✓]','trim','--agents\x20<agents>','codex','0.1.0','agents','606RkbENY','exitCode','未知路径模式:\x20','claudecode','cwd','请选择编程智能体','[\x20]','48520pUTxzg','default','已完成初始化:','string','Skill\x20init\x20CLI','4843425GemgOe','已生成技能包:','11307288EXYiAg','stdin','请选择生成路径','version','1381099RrvMmJ','--path-mode\x20<mode>','当前项目路径','codex|claudecode|iflow|all\x20or\x20comma-separated','pathMode','3ozXreL','action','31709025QlVAEB'];_0xa98e=function(){return _0x22b31c;};return _0xa98e();}program['name'](_0x1e5646(0x9c))[_0x1e5646(0x91)](_0x1e5646(0x7d))[_0x1e5646(0x83)](_0x1e5646(0xa2)),program[_0x1e5646(0x93)](_0x1e5646(0x90))[_0x1e5646(0x91)]('为所选编程智能体初始化技能')['option'](_0x1e5646(0xa0),_0x1e5646(0x87))['option'](_0x1e5646(0x85),_0x1e5646(0x9a))[_0x1e5646(0x8a)](async _0x57c25b=>{const _0x1ec360=_0x1e5646,_0x57561a=_0x57c25b[_0x1ec360(0xa3)]??await askAgentsSelection(),_0x109d41=normalizePathMode(_0x57c25b[_0x1ec360(0x88)])??await askPathModeSelection(),_0x56cb02=await initSkills(_0xfd157b[_0x1ec360(0xa8)](),_0x57561a,!![],_0x109d41);console[_0x1ec360(0x8f)](_0x1ec360(0x7b)+_0x57561a),console['log']('生成路径模式:'+(_0x109d41==='project'?_0x1ec360(0x86):_0x1ec360(0x8c))),console[_0x1ec360(0x8f)](_0x1ec360(0x7f));for(const _0x268481 of _0x56cb02){console[_0x1ec360(0x8f)](_0x4bde05['resolve'](_0x268481));}}),program['parseAsync'](_0xfd157b[_0x1e5646(0x8d)])['catch'](_0x5aeae6=>{const _0x47bc0d=_0x1e5646,_0x8873c7=_0x5aeae6 instanceof Error?_0x5aeae6[_0x47bc0d(0x94)]:String(_0x5aeae6);console[_0x47bc0d(0x8e)](_0x8873c7),_0xfd157b[_0x47bc0d(0xa5)]=0x13f2*0x1+-0x1b59+0x768;});async function askAgentsSelection(){const _0x1abd93=_0x1e5646;if(!_0xfd157b['stdin'][_0x1abd93(0x92)])return _0x1abd93(0xa1);const _0x330887=await _0x3e267c({'message':_0x1abd93(0xa9),'required':!![],'theme':{'icon':{'checked':_0x1abd93(0x9e),'unchecked':_0x1abd93(0xaa),'cursor':'>'}},'choices':[{'name':'codex','value':'codex','checked':!![]},{'name':'claudecode','value':_0x1abd93(0xa7)},{'name':_0x1abd93(0x98),'value':'iflow'}]});if(_0x330887[_0x1abd93(0x97)]===0x21d9+-0x125a+-0xf7f)return'codex';return _0x330887[_0x1abd93(0x9d)](',');}async function askPathModeSelection(){const _0x5c279c=_0x1e5646;if(!_0xfd157b[_0x5c279c(0x81)][_0x5c279c(0x92)])return _0x5c279c(0x7a);return _0x263e5c({'message':_0x5c279c(0x82),'choices':[{'name':_0x5c279c(0x8c),'value':_0x5c279c(0x7a)},{'name':_0x5c279c(0x86),'value':_0x5c279c(0x9b)}],'default':_0x5c279c(0x7a)});}function normalizePathMode(_0x11ee60){const _0x42cee6=_0x1e5646;if(typeof _0x11ee60!==_0x42cee6(0x7c))return undefined;const _0x194e87=_0x11ee60[_0x42cee6(0x9f)]()[_0x42cee6(0x99)]();if(_0x194e87===_0x42cee6(0x7a)||_0x194e87==='project')return _0x194e87;throw new Error(_0x42cee6(0xa6)+_0x11ee60+',可选值:\x20default\x20|\x20project');}
@@ -1 +1 @@
1
- const _0x3ae830=_0x4311;function _0x4311(_0x218500,_0x2547d7){_0x218500=_0x218500-(0x11*0xa9+-0xb*0x114+0x5*0x40);const _0x5a2b7b=_0x3d10();let _0x414fbe=_0x5a2b7b[_0x218500];return _0x414fbe;}(function(_0x2227e2,_0x58b444){const _0x532852=_0x4311,_0x258d5c=_0x2227e2();while(!![]){try{const _0x4f9852=parseInt(_0x532852(0xa2))/(-0x3*0x5c2+0x10c8+-0x7f*-0x1)+-parseInt(_0x532852(0xa5))/(0x1*0x1727+0x2522+-0x1*0x3c47)+parseInt(_0x532852(0xac))/(-0x1d*0x25+0x141f+-0xfeb)+parseInt(_0x532852(0xa1))/(0x1e1+0x18c6+-0x1aa3)+parseInt(_0x532852(0xaf))/(-0x173b*-0x1+-0xcf3+-0xa43)*(parseInt(_0x532852(0x9d))/(0x60+-0x9*0x41+0x1ef))+-parseInt(_0x532852(0xb2))/(0x2*-0xb1b+0xb*-0xfe+0x2127)*(parseInt(_0x532852(0xb1))/(0x38*-0xb2+-0x2*-0x685+0x19ee))+parseInt(_0x532852(0xa7))/(0x8cf+0x1*0x1105+-0x19cb)*(-parseInt(_0x532852(0xa9))/(0x1f88+0xc1b+0x1*-0x2b99));if(_0x4f9852===_0x58b444)break;else _0x258d5c['push'](_0x258d5c['shift']());}catch(_0xb859b7){_0x258d5c['push'](_0x258d5c['shift']());}}}(_0x3d10,0x1ab080+-0x151*0xe83+0x6ec94));function _0x3d10(){const _0x11b532=['2490710AhsFdV','.claude','72ZgNMth','commands/opsx','677460ftTtEq','/opsx-{id}','openspec-core','2552697ArNttS','explore','.iflow','145apVVUm','{id}.md','120aFUvWr','281183gbaswn','Analyze\x20existing\x20specs\x20and\x20produce\x20planned\x20deltas.','.codex','270888etCjcj','Create\x20a\x20change\x20proposal\x20with\x20scope\x20and\x20impacted\x20specs.','archive','Implement\x20approved\x20tasks\x20and\x20keep\x20spec\x20updates\x20in\x20sync.','1910552GYOIVL','702974BnWimk','/opsx:{id}','Archive\x20completed\x20changes\x20and\x20update\x20baseline\x20specs.'];_0x3d10=function(){return _0x11b532;};return _0x3d10();}export const defaultConfig={'commandBindings':[{'id':'propose','skill':_0x3ae830(0xab),'description':_0x3ae830(0x9e)},{'id':_0x3ae830(0xad),'skill':'openspec-core','description':_0x3ae830(0xb3)},{'id':'apply','skill':_0x3ae830(0xab),'description':_0x3ae830(0xa0)},{'id':_0x3ae830(0x9f),'skill':_0x3ae830(0xab),'description':_0x3ae830(0xa4)}],'agents':{'codex':{'rootDir':_0x3ae830(0xb4),'commandsDir':'prompts','commandFilePattern':'opsx-{id}.md','slashPattern':'/opsx-{id}','guideFile':'AGENTS.md'},'claudecode':{'rootDir':_0x3ae830(0xa6),'commandsDir':_0x3ae830(0xa8),'commandFilePattern':_0x3ae830(0xb0),'slashPattern':_0x3ae830(0xa3),'guideFile':'CLAUDE.md','guideAtProjectRoot':!![]},'iflow':{'rootDir':_0x3ae830(0xae),'commandsDir':'commands','commandFilePattern':'opsx-{id}.md','slashPattern':_0x3ae830(0xaa),'guideFile':'IFLOW.md'}}};
1
+ const _0x5373db=_0x2664;function _0x204d(){const _0x30cd4d=['3047364SjbeaV','explore','7837760tIKVPn','718dLzuZp','/opsx:{id}','{id}.md','archive','IFLOW.md','2875jSExhy','~/.iflow','Archive\x20completed\x20changes\x20and\x20update\x20baseline\x20specs.','Implement\x20approved\x20tasks\x20and\x20keep\x20spec\x20updates\x20in\x20sync.','AGENTS.md','10116320bxqRUa','opsx-{id}.md','apply','commands','.codex','1311985awSZdh','openspec-core','/opsx-{id}','Create\x20a\x20change\x20proposal\x20with\x20scope\x20and\x20impacted\x20specs.','CLAUDE.md','2974380IIcmfp','Analyze\x20existing\x20specs\x20and\x20produce\x20planned\x20deltas.','2708970Woprdq'];_0x204d=function(){return _0x30cd4d;};return _0x204d();}(function(_0x271c5e,_0x3be773){const _0x2d6a9f=_0x2664,_0x8ce1ea=_0x271c5e();while(!![]){try{const _0x310d9c=-parseInt(_0x2d6a9f(0x8e))/(0x3d7*0x5+-0xf*-0xa3+-0x1cbf)*(-parseInt(_0x2d6a9f(0x89))/(0x21e5*0x1+0x1*0x1135+-0x663*0x8))+parseInt(_0x2d6a9f(0x83))/(0x141*0x13+0x9b9+-0x2189)+parseInt(_0x2d6a9f(0x86))/(0x90+0x2089+-0x2115)+-parseInt(_0x2d6a9f(0x7e))/(-0x722+-0x6a3+0xdca*0x1)+parseInt(_0x2d6a9f(0x85))/(-0x1ff0+0x1487+0xb6f)+-parseInt(_0x2d6a9f(0x88))/(0x909+-0xb06+0x204)+-parseInt(_0x2d6a9f(0x93))/(0x100f+-0x1633*0x1+-0x62c*-0x1);if(_0x310d9c===_0x3be773)break;else _0x8ce1ea['push'](_0x8ce1ea['shift']());}catch(_0x25c475){_0x8ce1ea['push'](_0x8ce1ea['shift']());}}}(_0x204d,-0x843a6+0x9de20+-0x863*-0xe2));function _0x2664(_0x243ab2,_0x16c0f0){_0x243ab2=_0x243ab2-(0x1000+0x4f8+-0x147e);const _0x1be26f=_0x204d();let _0x11deeb=_0x1be26f[_0x243ab2];return _0x11deeb;}export const defaultConfig={'commandBindings':[{'id':'propose','skill':_0x5373db(0x7f),'description':_0x5373db(0x81)},{'id':_0x5373db(0x87),'skill':_0x5373db(0x7f),'description':_0x5373db(0x84)},{'id':_0x5373db(0x7b),'skill':_0x5373db(0x7f),'description':_0x5373db(0x91)},{'id':_0x5373db(0x8c),'skill':'openspec-core','description':_0x5373db(0x90)}],'agents':{'codex':{'rootDir':_0x5373db(0x7d),'commandsDir':'prompts','commandFilePattern':_0x5373db(0x7a),'slashPattern':_0x5373db(0x80),'guideFile':_0x5373db(0x92)},'claudecode':{'rootDir':'~/.claude','commandsDir':'commands/opsx','commandFilePattern':_0x5373db(0x8b),'slashPattern':_0x5373db(0x8a),'guideFile':_0x5373db(0x82),'guideAtProjectRoot':!![]},'iflow':{'rootDir':_0x5373db(0x8f),'commandsDir':_0x5373db(0x7c),'commandFilePattern':_0x5373db(0x7a),'slashPattern':'/opsx-{id}','guideFile':_0x5373db(0x8d)}}};
@@ -1 +1 @@
1
- (function(_0x205a0c,_0x27990a){const _0x365c77=_0x2c61,_0x41850f=_0x205a0c();while(!![]){try{const _0x3e38c6=-parseInt(_0x365c77(0x148))/(0x1e25*0x1+-0x3bb*-0x1+0x1d*-0x12b)+-parseInt(_0x365c77(0x149))/(-0x2286+-0x1145+-0x1*-0x33cd)+-parseInt(_0x365c77(0x14b))/(0x12b9+-0x1952+0x69c)+parseInt(_0x365c77(0x146))/(-0x1bba+0xc19+-0x537*-0x3)+-parseInt(_0x365c77(0x14e))/(0x2*0x119+0x475+0x236*-0x3)+parseInt(_0x365c77(0x14a))/(-0x42a+-0x1*-0x1d17+-0x18e7)+parseInt(_0x365c77(0x150))/(-0xfa*0x1e+-0xa5e+0x27b1)*(parseInt(_0x365c77(0x147))/(-0x12b7+-0x2*-0x1145+0xfcb*-0x1));if(_0x3e38c6===_0x27990a)break;else _0x41850f['push'](_0x41850f['shift']());}catch(_0x5f89e3){_0x41850f['push'](_0x41850f['shift']());}}}(_0x48f7,0x9bd2a+-0x335*0x241+0x2e1bd*0x1));import _0x10540a from'node:path';import{readFile}from'node:fs/promises';function _0x2c61(_0x200928,_0x386259){_0x200928=_0x200928-(-0x1*0x26ae+-0x3*-0xbf1+0x420);const _0x1ab987=_0x48f7();let _0x31e5a2=_0x1ab987[_0x200928];return _0x31e5a2;}import{parse}from'yaml';import{pathExists}from'../utils/fs.js';import{defaultConfig}from'./default.js';function _0x48f7(){const _0x1adcf2=['commandBindings','2948375cJsTwZ','codex','20153WVZiRK','length','iflow','claudecode','1285476ALZGmV','3576GowtxX','686929QtBrHs','211092kdiVmk','2033376UpDoGI','634902wAEvGO','agents'];_0x48f7=function(){return _0x1adcf2;};return _0x48f7();}const CONFIG_FILE='cdspec.config.yaml';export async function loadConfig(_0x2c770a){const _0xa720c1=_0x2c61,_0x21524d=_0x10540a['join'](_0x2c770a,CONFIG_FILE);if(!await pathExists(_0x21524d))return defaultConfig;const _0x5e970a=await readFile(_0x21524d,'utf8'),_0x175ba0=parse(_0x5e970a);if(!_0x175ba0)return defaultConfig;const _0x9df6d2={'commandBindings':_0x175ba0[_0xa720c1(0x14d)]&&_0x175ba0[_0xa720c1(0x14d)][_0xa720c1(0x151)]>0x1cf+-0xb*0x159+0xee*0xe?_0x175ba0['commandBindings']:defaultConfig[_0xa720c1(0x14d)],'agents':{'codex':{...defaultConfig[_0xa720c1(0x14c)][_0xa720c1(0x14f)],..._0x175ba0[_0xa720c1(0x14c)]?.[_0xa720c1(0x14f)]||{}},'claudecode':{...defaultConfig['agents'][_0xa720c1(0x145)],..._0x175ba0[_0xa720c1(0x14c)]?.[_0xa720c1(0x145)]||{}},'iflow':{...defaultConfig[_0xa720c1(0x14c)][_0xa720c1(0x152)],..._0x175ba0[_0xa720c1(0x14c)]?.[_0xa720c1(0x152)]||{}}}};return _0x9df6d2;}
1
+ const _0x5222ab=_0x477f;(function(_0x135e07,_0x1b59d6){const _0x1bacdf=_0x477f,_0x37dfd2=_0x135e07();while(!![]){try{const _0x273373=parseInt(_0x1bacdf(0xc2))/(-0x10af+0x1fe5+-0xf35)+-parseInt(_0x1bacdf(0xc0))/(-0x21e1+0x161e+0xbc5)+-parseInt(_0x1bacdf(0xba))/(-0x1*-0x565+0x13f*0xa+-0x11d8)+-parseInt(_0x1bacdf(0xbc))/(0xd8d+-0x3c7*-0x2+-0x1517)+parseInt(_0x1bacdf(0xc4))/(-0x1fc0+-0x2*0x135a+0x1*0x4679)*(-parseInt(_0x1bacdf(0xc3))/(-0x19fe+-0x1da3+0x37a7))+parseInt(_0x1bacdf(0xc5))/(0x1ba1+0x2*0xd+-0x1bb4)+parseInt(_0x1bacdf(0xbb))/(-0x1*-0x758+-0x8a0+0x150)*(parseInt(_0x1bacdf(0xbf))/(-0x1731+-0x1aa0+0x31da));if(_0x273373===_0x1b59d6)break;else _0x37dfd2['push'](_0x37dfd2['shift']());}catch(_0x272f06){_0x37dfd2['push'](_0x37dfd2['shift']());}}}(_0x3771,0x1*-0x2aa43+0x14d*0x329+0xfcd*0xa));import _0x23dbf5 from'node:path';import{readFile}from'node:fs/promises';function _0x3771(){const _0x4c74fd=['538178SJbJiK','cdspec.config.yaml','205467lVGERH','1177158FJpbOt','5CAoiib','1866403rEdAWu','commandBindings','agents','claudecode','704997JfvrUd','542928nozQrv','446756ihDaxE','length','codex','63STNbVH'];_0x3771=function(){return _0x4c74fd;};return _0x3771();}import{parse}from'yaml';function _0x477f(_0x1cd539,_0x35e5c6){_0x1cd539=_0x1cd539-(0x4*-0x745+0x545*-0x6+0x3d6b);const _0x8f2e21=_0x3771();let _0x5f5a82=_0x8f2e21[_0x1cd539];return _0x5f5a82;}import{pathExists}from'../utils/fs.js';import{defaultConfig}from'./default.js';const CONFIG_FILE=_0x5222ab(0xc1);export async function loadConfig(_0x15af00){const _0x38535b=_0x5222ab,_0x196ed5=_0x23dbf5['join'](_0x15af00,CONFIG_FILE);if(!await pathExists(_0x196ed5))return defaultConfig;const _0x3ef151=await readFile(_0x196ed5,'utf8'),_0x31dfbb=parse(_0x3ef151);if(!_0x31dfbb)return defaultConfig;const _0x489231={'commandBindings':_0x31dfbb[_0x38535b(0xc6)]&&_0x31dfbb[_0x38535b(0xc6)][_0x38535b(0xbd)]>-0x2*-0x1387+0x3*-0x611+-0x119*0x13?_0x31dfbb[_0x38535b(0xc6)]:defaultConfig[_0x38535b(0xc6)],'agents':{'codex':{...defaultConfig['agents'][_0x38535b(0xbe)],..._0x31dfbb[_0x38535b(0xc7)]?.['codex']||{}},'claudecode':{...defaultConfig['agents'][_0x38535b(0xb9)],..._0x31dfbb[_0x38535b(0xc7)]?.[_0x38535b(0xb9)]||{}},'iflow':{...defaultConfig[_0x38535b(0xc7)]['iflow'],..._0x31dfbb[_0x38535b(0xc7)]?.['iflow']||{}}}};return _0x489231;}
@@ -1 +1 @@
1
- (function(_0xaa45ba,_0x2b4eb9){var _0x1adef6=_0x3178,_0x258b32=_0xaa45ba();while(!![]){try{var _0x181d65=-parseInt(_0x1adef6(0x1a6))/(-0x45d*-0x2+-0x15*0x1af+0x1aa2)*(parseInt(_0x1adef6(0x199))/(0x2ea+0xf1d+0x1205*-0x1))+-parseInt(_0x1adef6(0x1a4))/(0x27*0xfe+-0x1b94+-0x1*0xb1b)*(parseInt(_0x1adef6(0x19a))/(-0x2000*0x1+-0x1*-0x962+0x1*0x16a2))+parseInt(_0x1adef6(0x19b))/(0x708+0x2057+-0x275a)*(parseInt(_0x1adef6(0x1a5))/(0x1d*0x137+-0x7e*-0x3a+0x35b*-0x13))+-parseInt(_0x1adef6(0x198))/(0x170e+-0xd0d+-0x9fa)+-parseInt(_0x1adef6(0x19f))/(0x4*0x712+0x61f*0x3+-0x2e9d)*(-parseInt(_0x1adef6(0x19c))/(-0x665+-0xb5f*-0x1+-0x4f1))+-parseInt(_0x1adef6(0x19d))/(0xbd5+0x6bb*0x2+-0x1941)+-parseInt(_0x1adef6(0x1a2))/(-0x4*-0x23f+0x3*-0x6f8+-0xbf7*-0x1)*(-parseInt(_0x1adef6(0x1a3))/(0x1*-0x1942+-0x1cb3+0xacd*0x5));if(_0x181d65===_0x2b4eb9)break;else _0x258b32['push'](_0x258b32['shift']());}catch(_0x3afb7b){_0x258b32['push'](_0x258b32['shift']());}}}(_0x3c68,0xdc*-0xb9d+0x1e7*-0xdf+0x11e26c));import _0x3616d1 from'node:os';function _0x3c68(){var _0x5a462a=['12wopkBC','525BmEFAA','6OuAHzU','1rAmQKV','join','2871344FagCFd','22632MogBWj','6172YDxmVq','1474315PMlyMx','1386xHyGDL','5900320LmRPrb','homedir','34552MqlCTY','slice','startsWith','8040901cqgoTC'];_0x3c68=function(){return _0x5a462a;};return _0x3c68();}function _0x3178(_0x5b692d,_0x25b984){_0x5b692d=_0x5b692d-(0x1*0x197a+0xbe9*-0x1+-0x5fd*0x2);var _0x4fc857=_0x3c68();var _0x42e409=_0x4fc857[_0x5b692d];return _0x42e409;}import _0x3c668b from'node:path';export function resolveAgentRoot(_0x401d15,_0x5a2768){var _0x507f66=_0x3178;if(_0x5a2768[_0x507f66(0x1a1)]('~/')||_0x5a2768[_0x507f66(0x1a1)]('~\x5c'))return _0x3c668b[_0x507f66(0x197)](_0x3616d1[_0x507f66(0x19e)](),_0x5a2768[_0x507f66(0x1a0)](0x1a4c*0x1+-0xfbc*-0x1+0x3*-0xe02));if(_0x3c668b['win32']['isAbsolute'](_0x5a2768)||_0x3c668b['posix']['isAbsolute'](_0x5a2768))return _0x3c668b['normalize'](_0x5a2768);return _0x3c668b[_0x507f66(0x197)](_0x401d15,_0x5a2768);}
1
+ function _0x2efe(_0xe98e69,_0x2b944b){_0xe98e69=_0xe98e69-(-0xbda+0x14b1+-0x821);var _0x56d631=_0x43b5();var _0x147f7e=_0x56d631[_0xe98e69];return _0x147f7e;}(function(_0x1bc325,_0x31ea4d){var _0x30c9a0=_0x2efe,_0x3b774e=_0x1bc325();while(!![]){try{var _0x9074ec=-parseInt(_0x30c9a0(0xc2))/(-0x74+0x985*0x1+0x244*-0x4)+-parseInt(_0x30c9a0(0xbb))/(0x1*0x1097+-0x1*-0x2547+-0x35dc)*(parseInt(_0x30c9a0(0xb6))/(0x62b*-0x1+0x515+0x119))+parseInt(_0x30c9a0(0xb9))/(-0xc99+-0x40a+-0x1*-0x10a7)*(parseInt(_0x30c9a0(0xbe))/(0x1aad*-0x1+-0xd3b+0x3*0xd4f))+-parseInt(_0x30c9a0(0xb7))/(0x10c*-0x1e+0x19c9+0x5a5)*(-parseInt(_0x30c9a0(0xbd))/(-0x228f+0xd96*0x1+0x1500))+parseInt(_0x30c9a0(0xbf))/(0x35b+-0x16*0x167+-0x105*-0x1b)+parseInt(_0x30c9a0(0xc1))/(-0x3*-0x3cb+-0x1a1*-0x16+-0x44a*0xb)+-parseInt(_0x30c9a0(0xc0))/(0x1943*-0x1+0xaea+0xe63);if(_0x9074ec===_0x31ea4d)break;else _0x3b774e['push'](_0x3b774e['shift']());}catch(_0x2b8dd1){_0x3b774e['push'](_0x3b774e['shift']());}}}(_0x43b5,0x1fd7d+-0xbf5f+0x10f52));import _0x4e12ac from'node:os';import _0x4887c8 from'node:path';function _0x43b5(){var _0x12ee88=['1300600McCJTH','125000pMidWb','774054KSPpIq','239904uyFnPm','slice','win32','1116IZitzT','12858WFaYbK','normalize','46680oxHyGa','isAbsolute','346uawZEa','join','525kQLTeK','25jbLieR'];_0x43b5=function(){return _0x12ee88;};return _0x43b5();}export function resolveAgentRoot(_0x4e9a55,_0x333d68){var _0x2e9e4c=_0x2efe;if(_0x333d68['startsWith']('~/')||_0x333d68['startsWith']('~\x5c'))return _0x4887c8[_0x2e9e4c(0xbc)](_0x4e12ac['homedir'](),_0x333d68[_0x2e9e4c(0xc3)](-0x1b6d*0x1+-0x26ba*0x1+0x1*0x4229));if(_0x4887c8[_0x2e9e4c(0xc4)][_0x2e9e4c(0xba)](_0x333d68)||_0x4887c8['posix'][_0x2e9e4c(0xba)](_0x333d68))return _0x4887c8[_0x2e9e4c(0xb8)](_0x333d68);return _0x4887c8[_0x2e9e4c(0xbc)](_0x4e9a55,_0x333d68);}
@@ -1 +1 @@
1
- function _0x246b(){const _0xa483d8=['3158530AqAUJF','2637BKCJLg','6486907LiieVn','[claudecode]\x20name\x20is\x20required.','Target\x20already\x20exists\x20for\x20skill\x20\x22','description','validate','claudecode','\x22\x20at\x20','emit','SKILL.md','name','.\x20Use\x20--force\x20to\x20overwrite.','stringify','3445276gGGfoS','7752VTZvYx','claudecode.skill.json','error','2uENUAJ','target','1001187AdtKKa','6ZvPWTf','891675jTjKeq','3503655wXqnoU'];_0x246b=function(){return _0xa483d8;};return _0x246b();}const _0x420f5f=_0x5734;(function(_0xac7a5f,_0x2fff46){const _0x1fabd5=_0x5734,_0x554cd2=_0xac7a5f();while(!![]){try{const _0x33892f=parseInt(_0x1fabd5(0x1f6))/(-0xd*-0x235+-0x1*-0x597+-0x2247)*(parseInt(_0x1fabd5(0x1f4))/(0x1*0x1e67+0x1*0x91b+-0x2780))+parseInt(_0x1fabd5(0x1f9))/(-0x1007*-0x1+0xf*-0x154+0x3e8)+-parseInt(_0x1fabd5(0x1f0))/(-0xf58+-0x1fda+-0x179b*-0x2)+parseInt(_0x1fabd5(0x1f8))/(-0x1*-0x163f+0x11*0x173+-0x2edd)+parseInt(_0x1fabd5(0x1f7))/(0x13a6+-0x54d+-0xe53)*(-parseInt(_0x1fabd5(0x1fc))/(0x1*-0x19+-0x44*0x50+0x1560))+parseInt(_0x1fabd5(0x1f1))/(0x13*0x6b+0x14b3+-0x1c9c)*(-parseInt(_0x1fabd5(0x1fb))/(-0x13f3*-0x1+-0x10b+-0x1*0x12df))+parseInt(_0x1fabd5(0x1fa))/(-0x2*0xba4+0x4ae+0x12a4);if(_0x33892f===_0x2fff46)break;else _0x554cd2['push'](_0x554cd2['shift']());}catch(_0x33f97d){_0x554cd2['push'](_0x554cd2['shift']());}}}(_0x246b,0xd3855*0x1+-0x6d7*0x286+0xd1010));import _0x181578 from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';function _0x5734(_0x1507ba,_0x539b70){_0x1507ba=_0x1507ba-(-0x1c6a+-0xa5*-0x10+0x140a);const _0x881f5a=_0x246b();let _0x2464ce=_0x881f5a[_0x1507ba];return _0x2464ce;}export class ClaudeCodeAdapter{[_0x420f5f(0x1f5)]=_0x420f5f(0x201);[_0x420f5f(0x200)](_0x3acf27){const _0x359770=_0x420f5f,_0x35369d=[];return!_0x3acf27[_0x359770(0x205)]&&_0x35369d['push']({'level':_0x359770(0x1f3),'message':_0x359770(0x1fd)}),_0x35369d;}async[_0x420f5f(0x203)](_0x5d98e2,_0x5f4c14,_0x4f3e5f){const _0x114fee=_0x420f5f;if(await pathExists(_0x5f4c14)&&!_0x4f3e5f)throw new Error(_0x114fee(0x1fe)+_0x5d98e2['name']+_0x114fee(0x202)+_0x5f4c14+_0x114fee(0x206));_0x4f3e5f&&await emptyDir(_0x5f4c14);const _0x1016c4={'name':_0x5d98e2[_0x114fee(0x205)],'description':_0x5d98e2[_0x114fee(0x1ff)],'entry':_0x114fee(0x204)};await emitWithLayout(_0x5d98e2,_0x5f4c14,!![],[{'relativePath':_0x114fee(0x1f2),'content':JSON[_0x114fee(0x207)](_0x1016c4,null,0x19*-0x17e+0x2a2*-0xa+-0x3fa4*-0x1)+'\x0a'}]);}}export function claudecodeSkillPath(_0x2291a2,_0xb7d72b){return _0x181578['join'](_0x2291a2,'claudecode',_0xb7d72b);}
1
+ const _0x2a6c01=_0x15a7;function _0x2407(){const _0x1100a3=['348720nlbjxM','target','15ClPMUe','Target\x20already\x20exists\x20for\x20skill\x20\x22','name','108240nbuvNF','join','SKILL.md','109499ZgkGod','claudecode','[claudecode]\x20name\x20is\x20required.','2ruECuI','.\x20Use\x20--force\x20to\x20overwrite.','stringify','78zBYise','444710dcqaFK','741vaQexO','11wKmBMF','5909270jBgQeS','emit','push','\x22\x20at\x20','validate','claudecode.skill.json','1871748NKbSrI','16YcrsTi','795048wfKsQw'];_0x2407=function(){return _0x1100a3;};return _0x2407();}(function(_0x50f9d5,_0x437a96){const _0x130558=_0x15a7,_0x1b73fe=_0x50f9d5();while(!![]){try{const _0x4a6baf=-parseInt(_0x130558(0x17d))/(0xf*-0x2+-0x5*-0x5c6+-0x1cbf)*(parseInt(_0x130558(0x180))/(0xb07*-0x3+0x12*-0x47+0x2615))+parseInt(_0x130558(0x177))/(-0xb87+0x1cb+0x9bf)*(-parseInt(_0x130558(0x174))/(0x1fbe+-0x31d*-0x3+-0x2911))+-parseInt(_0x130558(0x17a))/(0x7cb*-0x1+0x66c+0x1*0x164)*(parseInt(_0x130558(0x183))/(-0x118c+-0x13d3+0x1*0x2565))+parseInt(_0x130558(0x184))/(-0x1fd9+0x1e7d+0x163)*(-parseInt(_0x130558(0x173))/(0xce+0x1*-0xdd3+0x1*0xd0d))+-parseInt(_0x130558(0x172))/(-0x2*0x1235+0x3*-0x79d+0x3b4a)+parseInt(_0x130558(0x187))/(0x3d*0x46+-0x2157+0x5f*0x2d)*(parseInt(_0x130558(0x186))/(0x1*0x188f+-0x2d0*0x6+-0x7a4))+-parseInt(_0x130558(0x175))/(0x1c0*0x4+0x1818+0xf86*-0x2)*(-parseInt(_0x130558(0x185))/(-0x12b8+-0x26e8+0x39ad*0x1));if(_0x4a6baf===_0x437a96)break;else _0x1b73fe['push'](_0x1b73fe['shift']());}catch(_0x3f00ed){_0x1b73fe['push'](_0x1b73fe['shift']());}}}(_0x2407,-0x357ca*0x2+0x6*-0x1a315+0xc4778*0x2));import _0x358ded from'node:path';function _0x15a7(_0x88f7a5,_0x4c7d31){_0x88f7a5=_0x88f7a5-(-0x1ac+-0x1b88+0x1ea5);const _0x8023fe=_0x2407();let _0x2418d3=_0x8023fe[_0x88f7a5];return _0x2418d3;}import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class ClaudeCodeAdapter{[_0x2a6c01(0x176)]=_0x2a6c01(0x17e);[_0x2a6c01(0x18b)](_0x5261a9){const _0x4588e2=_0x2a6c01,_0xe186a1=[];return!_0x5261a9[_0x4588e2(0x179)]&&_0xe186a1[_0x4588e2(0x189)]({'level':'error','message':_0x4588e2(0x17f)}),_0xe186a1;}async[_0x2a6c01(0x188)](_0xd12cbc,_0x17dec4,_0x25c009){const _0x328baf=_0x2a6c01;if(await pathExists(_0x17dec4)&&!_0x25c009)throw new Error(_0x328baf(0x178)+_0xd12cbc[_0x328baf(0x179)]+_0x328baf(0x18a)+_0x17dec4+_0x328baf(0x181));_0x25c009&&await emptyDir(_0x17dec4);const _0x2f702f={'name':_0xd12cbc[_0x328baf(0x179)],'description':_0xd12cbc['description'],'entry':_0x328baf(0x17c)};await emitWithLayout(_0xd12cbc,_0x17dec4,!![],[{'relativePath':_0x328baf(0x171),'content':JSON[_0x328baf(0x182)](_0x2f702f,null,0x1*-0x2627+-0x1c81+0x42aa)+'\x0a'}]);}}export function claudecodeSkillPath(_0x432baa,_0x394bfd){const _0x2a3ccc=_0x2a6c01;return _0x358ded[_0x2a3ccc(0x17b)](_0x432baa,_0x2a3ccc(0x17e),_0x394bfd);}
@@ -1 +1 @@
1
- function _0x3150(){const _0x471700=['988658eddGfG','63uQqZGr','51190sXXHGC','description','4943952KtvKZB',':\x20description\x20is\x20required.','64710aVDiYI','push','target','\x22\x20at\x20','1314089OrrHtu','name','50zjKmMu','join','validate','311908gxbPlu','emit','.\x20Use\x20--force\x20to\x20overwrite.','12HRuvad','4487812BmZNOv','45IwoUzo','codex','Target\x20already\x20exists\x20for\x20skill\x20\x22','error'];_0x3150=function(){return _0x471700;};return _0x3150();}function _0x269f(_0x5029ff,_0x1251ad){_0x5029ff=_0x5029ff-(-0x1*0x38f+-0x1d31+0x2209);const _0x42311f=_0x3150();let _0x4873ed=_0x42311f[_0x5029ff];return _0x4873ed;}const _0x5ec2da=_0x269f;(function(_0x34ea37,_0x60c25a){const _0x1a2dc4=_0x269f,_0x8848dc=_0x34ea37();while(!![]){try{const _0x292d59=parseInt(_0x1a2dc4(0x15d))/(-0x1*-0x16b5+-0x811+-0xea3*0x1)+parseInt(_0x1a2dc4(0x15f))/(0x135*-0x1d+-0x23e2+0x46e5)*(-parseInt(_0x1a2dc4(0x159))/(0xeb2+0xd61+-0x2*0xe08))+parseInt(_0x1a2dc4(0x14a))/(0x4*0x859+-0x535+0x1*-0x1c2b)*(-parseInt(_0x1a2dc4(0x14f))/(0xc37+0x8d4+-0x1a*0xcf))+parseInt(_0x1a2dc4(0x14d))/(0x13a*-0x10+-0xbe5+0x5f*0x55)*(parseInt(_0x1a2dc4(0x14e))/(0x1941+-0xb97+-0xda3))+-parseInt(_0x1a2dc4(0x157))/(-0x1*-0x13ae+-0x42e+-0xf78)+parseInt(_0x1a2dc4(0x154))/(-0xa7b*0x2+-0x1052+0x1*0x2551)*(parseInt(_0x1a2dc4(0x155))/(-0x7c+-0x9ba*-0x4+-0x2662))+-parseInt(_0x1a2dc4(0x153))/(-0x1003+0x1*0x1233+-0x225);if(_0x292d59===_0x60c25a)break;else _0x8848dc['push'](_0x8848dc['shift']());}catch(_0x41a63c){_0x8848dc['push'](_0x8848dc['shift']());}}}(_0x3150,0x17f76+-0x7b65*0x1e+0x67*0x3a21));import _0x17fabf from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';export class CodexAdapter{[_0x5ec2da(0x15b)]=_0x5ec2da(0x150);[_0x5ec2da(0x149)](_0x5d2826){const _0x53478d=_0x5ec2da,_0x142d9f=[];return!_0x5d2826[_0x53478d(0x156)]&&_0x142d9f[_0x53478d(0x15a)]({'level':_0x53478d(0x152),'message':'[codex]\x20'+_0x5d2826[_0x53478d(0x15e)]+_0x53478d(0x158)}),_0x142d9f;}async[_0x5ec2da(0x14b)](_0x25dac7,_0x2c6d92,_0x1332ae){const _0x529053=_0x5ec2da;if(await pathExists(_0x2c6d92)&&!_0x1332ae)throw new Error(_0x529053(0x151)+_0x25dac7[_0x529053(0x15e)]+_0x529053(0x15c)+_0x2c6d92+_0x529053(0x14c));_0x1332ae&&await emptyDir(_0x2c6d92),await emitWithLayout(_0x25dac7,_0x2c6d92,!![],[]);}}export function codexSkillPath(_0x3d9748,_0x4a0efa){const _0x7aac0d=_0x5ec2da;return _0x17fabf[_0x7aac0d(0x160)](_0x3d9748,_0x7aac0d(0x150),_0x4a0efa);}
1
+ const _0xd84d7b=_0x2076;function _0x3f89(){const _0x94c4a0=['1410bmyBee','2WXhTda','join','3189033CPIAFd','48wdWMPR',':\x20description\x20is\x20required.','15bmBeWb','10HKECTM','205172HGPHPL','14zLMrjG','5645GwgQhk','3674856PxegjN','[codex]\x20','22183oJnmXy','11ObrmQz','emit','.\x20Use\x20--force\x20to\x20overwrite.','1595009XxJuqE','202431LRHcrI','Target\x20already\x20exists\x20for\x20skill\x20\x22','name','target','codex'];_0x3f89=function(){return _0x94c4a0;};return _0x3f89();}(function(_0x433ecb,_0x5c7a1a){const _0x47bd68=_0x2076,_0xb76c9c=_0x433ecb();while(!![]){try{const _0x40f5c9=parseInt(_0x47bd68(0xf3))/(0x153d+0x4a0*0x8+0xe8f*-0x4)*(parseInt(_0x47bd68(0xe2))/(-0x1df6+-0x1a87*-0x1+0x371))+parseInt(_0x47bd68(0xe7))/(0x20c5*-0x1+-0xd*-0x209+0x653*0x1)*(parseInt(_0x47bd68(0xe9))/(-0x44f+0xe2b+-0x9d8))+-parseInt(_0x47bd68(0xeb))/(-0x248f*0x1+-0x17f9+0x3c8d)*(parseInt(_0x47bd68(0xe1))/(0x86b+-0x20ac+-0x235*-0xb))+parseInt(_0x47bd68(0xee))/(0x606+-0x80f+0x210)*(parseInt(_0x47bd68(0xe5))/(0x23c9*0x1+0x17ea+-0x497*0xd))+parseInt(_0x47bd68(0xe4))/(-0x2*-0x1163+-0x111f+0xa*-0x1c3)*(parseInt(_0x47bd68(0xe8))/(-0x1*0x143b+0x87d+0xbc8))+-parseInt(_0x47bd68(0xef))/(-0x1f3b+-0x34b*0x1+-0x1*-0x2291)*(parseInt(_0x47bd68(0xec))/(-0x730+0x7a7+-0x6b))+parseInt(_0x47bd68(0xf2))/(-0xa9d+-0x1*0x18cd+-0x511*-0x7)*(parseInt(_0x47bd68(0xea))/(0x191+-0xbdf*-0x1+-0xd62));if(_0x40f5c9===_0x5c7a1a)break;else _0xb76c9c['push'](_0xb76c9c['shift']());}catch(_0x41d1fc){_0xb76c9c['push'](_0xb76c9c['shift']());}}}(_0x3f89,-0x89aa+-0x3821a+0x9e55f));import _0x5a9c81 from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';function _0x2076(_0x49f9c6,_0x1df850){_0x49f9c6=_0x49f9c6-(-0xb*-0x1c6+0xa77+0x2*-0xe8c);const _0x1001a1=_0x3f89();let _0x5a9c81=_0x1001a1[_0x49f9c6];return _0x5a9c81;}import{emitWithLayout}from'./shared.js';export class CodexAdapter{[_0xd84d7b(0xf6)]=_0xd84d7b(0xf7);['validate'](_0x9edd07){const _0x51e51e=_0xd84d7b,_0x126c50=[];return!_0x9edd07['description']&&_0x126c50['push']({'level':'error','message':_0x51e51e(0xed)+_0x9edd07[_0x51e51e(0xf5)]+_0x51e51e(0xe6)}),_0x126c50;}async[_0xd84d7b(0xf0)](_0x22cb9c,_0x229ef9,_0x29cdf9){const _0x28b673=_0xd84d7b;if(await pathExists(_0x229ef9)&&!_0x29cdf9)throw new Error(_0x28b673(0xf4)+_0x22cb9c[_0x28b673(0xf5)]+'\x22\x20at\x20'+_0x229ef9+_0x28b673(0xf1));_0x29cdf9&&await emptyDir(_0x229ef9),await emitWithLayout(_0x22cb9c,_0x229ef9,!![],[]);}}export function codexSkillPath(_0x376cb6,_0x4b554e){const _0x43cf9a=_0xd84d7b;return _0x5a9c81[_0x43cf9a(0xe3)](_0x376cb6,_0x43cf9a(0xf7),_0x4b554e);}
@@ -1 +1 @@
1
- const _0x3f1188=_0x3ea5;function _0x3ea5(_0x390eb8,_0xa7893b){_0x390eb8=_0x390eb8-(0x23e8+-0x1f*0xeb+-0x6c5*0x1);const _0x5cae66=_0x19e3();let _0x19206c=_0x5cae66[_0x390eb8];return _0x19206c;}(function(_0x307407,_0x12a3c0){const _0x222f9b=_0x3ea5,_0x4a20ae=_0x307407();while(!![]){try{const _0x1fe5a8=-parseInt(_0x222f9b(0xbb))/(0xd*0xc7+-0x1165+0x74b)+parseInt(_0x222f9b(0xb9))/(0xa8*-0xc+-0x21b*-0x2+0x3ac)+-parseInt(_0x222f9b(0xb4))/(0x168a+-0x1754*-0x1+0x2b*-0x111)+parseInt(_0x222f9b(0xc2))/(0x1*-0x778+-0x21bf+0x293b*0x1)+-parseInt(_0x222f9b(0xc5))/(-0x1638+0x13*-0x93+-0x1093*-0x2)+-parseInt(_0x222f9b(0xb1))/(0xa*0x194+-0x31+-0xf91)+parseInt(_0x222f9b(0xbf))/(0x39*-0x5f+0x246c+0x1*-0xf3e);if(_0x1fe5a8===_0x12a3c0)break;else _0x4a20ae['push'](_0x4a20ae['shift']());}catch(_0x24afe6){_0x4a20ae['push'](_0x4a20ae['shift']());}}}(_0x19e3,0x1*-0x4f563+0x36707+0xb879f));import _0x19206c from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';function _0x19e3(){const _0x5c29d4=['4642925hprpPq','description','prompt.md','body','7645770mLpgPx','join','name','1294275jyzRKP','\x22\x20at\x20','[iflow]\x20','push','Target\x20already\x20exists\x20for\x20skill\x20\x22','428582HWCADb','.\x20Use\x20--force\x20to\x20overwrite.','172703VEDYyf','name:\x20\x22','entry:\x20\x22prompt.md\x22','validate','22475887AvghqV',':\x20description\x20is\x20empty.','replace','142044FOaQJF','iflow','iflow.skill.yaml'];_0x19e3=function(){return _0x5c29d4;};return _0x19e3();}export class IFlowAdapter{['target']=_0x3f1188(0xc3);[_0x3f1188(0xbe)](_0x45562c){const _0x4e300c=_0x3f1188,_0x2fc45a=[];return!_0x45562c[_0x4e300c(0xae)]&&_0x2fc45a[_0x4e300c(0xb7)]({'level':'warning','message':_0x4e300c(0xb6)+_0x45562c['name']+_0x4e300c(0xc0)}),_0x2fc45a;}async['emit'](_0x14597e,_0x221ff0,_0x34e477){const _0x550c2f=_0x3f1188;if(await pathExists(_0x221ff0)&&!_0x34e477)throw new Error(_0x550c2f(0xb8)+_0x14597e[_0x550c2f(0xb3)]+_0x550c2f(0xb5)+_0x221ff0+_0x550c2f(0xba));_0x34e477&&await emptyDir(_0x221ff0);const _0x27c2ca=[_0x550c2f(0xbc)+_0x14597e[_0x550c2f(0xb3)]+'\x22','description:\x20\x22'+_0x14597e[_0x550c2f(0xae)][_0x550c2f(0xc1)](/"/g,'\x5c\x22')+'\x22',_0x550c2f(0xbd)][_0x550c2f(0xb2)]('\x0a');await emitWithLayout(_0x14597e,_0x221ff0,![],[{'relativePath':_0x550c2f(0xaf),'content':'#\x20'+_0x14597e[_0x550c2f(0xb3)]+'\x0a\x0a'+_0x14597e[_0x550c2f(0xb0)]+'\x0a'},{'relativePath':_0x550c2f(0xc4),'content':_0x27c2ca+'\x0a'}]);}}export function iflowSkillPath(_0x344c14,_0x1c64ca){const _0x1f972d=_0x3f1188;return _0x19206c['join'](_0x344c14,_0x1f972d(0xc3),_0x1c64ca);}
1
+ const _0xc3010=_0x440b;(function(_0x29fe41,_0x4eb69e){const _0x1655cb=_0x440b,_0x310646=_0x29fe41();while(!![]){try{const _0x41f306=parseInt(_0x1655cb(0x1b0))/(0xf2d+-0x1b45+0xc19)*(parseInt(_0x1655cb(0x1b2))/(-0x1*0x154d+0x40a*-0x4+0x1a1*0x17))+-parseInt(_0x1655cb(0x1a1))/(-0xa8d+-0x118+0xba8)+-parseInt(_0x1655cb(0x1b3))/(0x2*0x9cc+-0x3*-0xcfe+0x5*-0xbb6)*(-parseInt(_0x1655cb(0x1a4))/(0xf32+0x134c+0x6e5*-0x5))+parseInt(_0x1655cb(0x19e))/(0x1bf*-0x1+0x5dd*-0x1+-0x2*-0x3d1)+parseInt(_0x1655cb(0x1a3))/(0xb*-0x226+0xd06*0x2+-0x263)*(-parseInt(_0x1655cb(0x1a0))/(0xd65+-0x125c+0x4ff))+-parseInt(_0x1655cb(0x1a7))/(0x5b*-0x19+-0xc4e+0x153a)*(parseInt(_0x1655cb(0x1a5))/(-0xfae+0xa75*-0x1+0x1a2d))+parseInt(_0x1655cb(0x1aa))/(0x12a1+0x9*0x315+0xb1*-0x43)*(parseInt(_0x1655cb(0x1b5))/(-0x90e+-0x1e91+0x27ab));if(_0x41f306===_0x4eb69e)break;else _0x310646['push'](_0x310646['shift']());}catch(_0x568375){_0x310646['push'](_0x310646['shift']());}}}(_0xcf8e,-0x18*-0x75cf+-0x3*-0x21a0d+-0xb226f));function _0xcf8e(){const _0x148fe9=['validate','121DPPuci','description','2292OpyoIc','4IJBeGQ',':\x20description\x20is\x20empty.','12aDZFVc','iflow','description:\x20\x22','.\x20Use\x20--force\x20to\x20overwrite.','253332NdBgGu','Target\x20already\x20exists\x20for\x20skill\x20\x22','24sDUFNx','1286319hMZfhU','emit','105175lxxeUO','1008725ZSPTSS','438580nDUNqg','name','45WLwSwi','[iflow]\x20','prompt.md','7896163nIJtFW','iflow.skill.yaml','name:\x20\x22','\x22\x20at\x20','push'];_0xcf8e=function(){return _0x148fe9;};return _0xcf8e();}import _0x39329c from'node:path';import{emptyDir,pathExists}from'../../utils/fs.js';import{emitWithLayout}from'./shared.js';function _0x440b(_0x525397,_0x43db3b){_0x525397=_0x525397-(-0xa35+-0x1319*-0x2+-0x266*0xb);const _0x1bf201=_0xcf8e();let _0x39329c=_0x1bf201[_0x525397];return _0x39329c;}export class IFlowAdapter{['target']=_0xc3010(0x19b);[_0xc3010(0x1af)](_0x56e491){const _0x4a405e=_0xc3010,_0x53193a=[];return!_0x56e491['description']&&_0x53193a[_0x4a405e(0x1ae)]({'level':'warning','message':_0x4a405e(0x1a8)+_0x56e491[_0x4a405e(0x1a6)]+_0x4a405e(0x1b4)}),_0x53193a;}async[_0xc3010(0x1a2)](_0x3c6525,_0x3fae18,_0x4e3d0b){const _0x5e8e8d=_0xc3010;if(await pathExists(_0x3fae18)&&!_0x4e3d0b)throw new Error(_0x5e8e8d(0x19f)+_0x3c6525[_0x5e8e8d(0x1a6)]+_0x5e8e8d(0x1ad)+_0x3fae18+_0x5e8e8d(0x19d));_0x4e3d0b&&await emptyDir(_0x3fae18);const _0x5f002d=[_0x5e8e8d(0x1ac)+_0x3c6525[_0x5e8e8d(0x1a6)]+'\x22',_0x5e8e8d(0x19c)+_0x3c6525[_0x5e8e8d(0x1b1)]['replace'](/"/g,'\x5c\x22')+'\x22','entry:\x20\x22prompt.md\x22']['join']('\x0a');await emitWithLayout(_0x3c6525,_0x3fae18,![],[{'relativePath':_0x5e8e8d(0x1a9),'content':'#\x20'+_0x3c6525[_0x5e8e8d(0x1a6)]+'\x0a\x0a'+_0x3c6525['body']+'\x0a'},{'relativePath':_0x5e8e8d(0x1ab),'content':_0x5f002d+'\x0a'}]);}}export function iflowSkillPath(_0x330b70,_0x36e7bb){const _0x9d8f11=_0xc3010;return _0x39329c['join'](_0x330b70,_0x9d8f11(0x19b),_0x36e7bb);}
@@ -1 +1 @@
1
- (function(_0x56a47f,_0x3adfb3){const _0x162c35=_0x21c1,_0x44bb91=_0x56a47f();while(!![]){try{const _0x361c75=-parseInt(_0x162c35(0x15b))/(-0x15d6+0x1c80+-0x6a9)+-parseInt(_0x162c35(0x160))/(-0x288+-0x74f*-0x5+-0x2201)*(parseInt(_0x162c35(0x16c))/(0x1816+-0x4*-0x5f3+-0x2fdf))+parseInt(_0x162c35(0x15e))/(-0x3c7*-0x7+0x1*0x12ae+-0x2d1b)+parseInt(_0x162c35(0x163))/(-0x1*-0x50d+0xfa2+-0x14aa*0x1)+-parseInt(_0x162c35(0x161))/(0xab4+0x1c8c+-0x273a)+parseInt(_0x162c35(0x169))/(-0x625+0x7e5+-0x3f*0x7)+parseInt(_0x162c35(0x162))/(-0x187*-0x7+-0xf*-0xde+-0x49*0x53);if(_0x361c75===_0x3adfb3)break;else _0x44bb91['push'](_0x44bb91['shift']());}catch(_0xa1f31e){_0x44bb91['push'](_0x44bb91['shift']());}}}(_0x29a7,0x1*-0x278f8+-0x7a6a2+0x188f83));function _0x21c1(_0x1e71f7,_0x4c01bc){_0x1e71f7=_0x1e71f7-(-0x219a+-0x601+0x28f6);const _0x31ba94=_0x29a7();let _0x4f4905=_0x31ba94[_0x1e71f7];return _0x4f4905;}function _0x29a7(){const _0x171c86=['5982760jukXjW','trim','1275026rIyuJx','8962344zlOtnk','13811768MKaZGn','2047105xGPFqk','all','from','map','split','Unknown\x20target\x20\x22','3685290GYdgmu','claudecode','\x22.\x20Use\x20codex|claudecode|iflow|all.','6GHUuIk','443149wWVIuF','filter','iflow'];_0x29a7=function(){return _0x171c86;};return _0x29a7();}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()};export function getAdapter(_0x863310){return adapters[_0x863310];}export function expandTargets(_0x5cb9ec){const _0x1c326c=_0x21c1,_0x4e25de=_0x5cb9ec[_0x1c326c(0x15f)]()['toLowerCase']();if(_0x4e25de===_0x1c326c(0x164))return['codex',_0x1c326c(0x16a),_0x1c326c(0x15d)];const _0x37bae6=_0x4e25de[_0x1c326c(0x167)](',')[_0x1c326c(0x166)](_0x1ce5b6=>_0x1ce5b6['trim']())[_0x1c326c(0x15c)](Boolean)[_0x1c326c(0x166)](normalizeTargetAlias);if(_0x37bae6['length']===-0xd91+-0x5d*-0x32+-0x1*0x499)throw new Error(_0x1c326c(0x168)+_0x5cb9ec+_0x1c326c(0x16b));const _0xd988b0=_0x37bae6[_0x1c326c(0x15c)](_0x496a7c=>_0x496a7c!=='codex'&&_0x496a7c!=='claudecode'&&_0x496a7c!==_0x1c326c(0x15d));if(_0xd988b0['length']>0x18*-0xfb+0x1*0x96d+0xe1b)throw new Error(_0x1c326c(0x168)+_0xd988b0[-0xf87+0x1f8f*-0x1+-0x62*-0x7b]+_0x1c326c(0x16b));return Array[_0x1c326c(0x165)](new Set(_0x37bae6));}function normalizeTargetAlias(_0x519f5d){const _0x297ce8=_0x21c1;if(_0x519f5d==='ifow')return _0x297ce8(0x15d);return _0x519f5d;}
1
+ (function(_0x2032cd,_0x11bbb0){const _0x18562d=_0x26f8,_0x143189=_0x2032cd();while(!![]){try{const _0x3e8c42=-parseInt(_0x18562d(0x11d))/(0xc*0x1d+0x1229*0x1+-0x4*0x4e1)*(parseInt(_0x18562d(0x125))/(0x2093+-0x28f*-0x1+-0x2320))+-parseInt(_0x18562d(0x11b))/(0x1637+-0x17*-0x6a+0x2*-0xfdd)*(parseInt(_0x18562d(0x123))/(0x21a2+0xb1*0x21+-0x386f))+-parseInt(_0x18562d(0x120))/(0x6b0+0x1*0x14c2+-0x1b6d)+-parseInt(_0x18562d(0x11f))/(0x10a5*-0x1+0x22a7+0x47f*-0x4)*(parseInt(_0x18562d(0x121))/(0x4b*-0x42+0x1091*-0x1+-0x1ff*-0x12))+-parseInt(_0x18562d(0x119))/(0x91*0x2+-0x8f2+-0x8*-0xfb)*(parseInt(_0x18562d(0x117))/(-0x5*-0xb9+-0xcfe*0x1+0xa*0xf1))+parseInt(_0x18562d(0x129))/(-0x8*0x4d4+-0x1292+0x6f*0x84)*(-parseInt(_0x18562d(0x118))/(0x157d*0x1+0xd5c+0x21*-0x10e))+parseInt(_0x18562d(0x11a))/(-0x43*-0x5c+0x1267+-0x2a6f);if(_0x3e8c42===_0x11bbb0)break;else _0x143189['push'](_0x143189['shift']());}catch(_0x2227a0){_0x143189['push'](_0x143189['shift']());}}}(_0x333c,-0x1e9b4+-0xd*0x3aac+0x69738));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()};export function getAdapter(_0x51dba9){return adapters[_0x51dba9];}function _0x26f8(_0x1a9c39,_0x449bc2){_0x1a9c39=_0x1a9c39-(-0x1*0x3e6+0x605*0x3+-0xd14);const _0x184e43=_0x333c();let _0x1821af=_0x184e43[_0x1a9c39];return _0x1821af;}export function expandTargets(_0x48d33d){const _0x138550=_0x26f8,_0x13b571=_0x48d33d[_0x138550(0x12a)]()[_0x138550(0x126)]();if(_0x13b571===_0x138550(0x12c))return[_0x138550(0x11e),'claudecode',_0x138550(0x127)];const _0x3d98d8=_0x13b571[_0x138550(0x124)](',')[_0x138550(0x11c)](_0x4ba6a7=>_0x4ba6a7['trim']())[_0x138550(0x116)](Boolean)[_0x138550(0x11c)](normalizeTargetAlias);if(_0x3d98d8[_0x138550(0x128)]===-0x134d+0x5*0x267+0x74a)throw new Error(_0x138550(0x12d)+_0x48d33d+_0x138550(0x115));const _0x428d03=_0x3d98d8[_0x138550(0x116)](_0x2a68d8=>_0x2a68d8!=='codex'&&_0x2a68d8!==_0x138550(0x12b)&&_0x2a68d8!==_0x138550(0x127));if(_0x428d03['length']>0x10de+0xfee+-0x20cc)throw new Error('Unknown\x20target\x20\x22'+_0x428d03[0x980+0x6*0xc8+-0x8*0x1c6]+'\x22.\x20Use\x20codex|claudecode|iflow|all.');return Array[_0x138550(0x122)](new Set(_0x3d98d8));}function normalizeTargetAlias(_0x36f527){const _0x4d4118=_0x26f8;if(_0x36f527==='ifow')return _0x4d4118(0x127);return _0x36f527;}function _0x333c(){const _0x3f824b=['\x22.\x20Use\x20codex|claudecode|iflow|all.','filter','324yBfhne','561jpILVo','16784zQELNy','9869988NxQUHs','200358aGezzQ','map','1HYnMDw','codex','180354hjgvcs','571900GLQHIF','7dCFQKS','from','8TQJDBo','split','299254anyywT','toLowerCase','iflow','length','40790dBSRIO','trim','claudecode','all','Unknown\x20target\x20\x22'];_0x333c=function(){return _0x3f824b;};return _0x333c();}
@@ -1 +1 @@
1
- (function(_0x3d372d,_0x232efb){const _0x23873d=_0x2f8a,_0x37f1de=_0x3d372d();while(!![]){try{const _0x7c3f6e=-parseInt(_0x23873d(0x65))/(-0x757*0x3+-0x1f6c*0x1+0x3572)+parseInt(_0x23873d(0x69))/(-0xeed*-0x2+0x72+-0x1*0x1e4a)+parseInt(_0x23873d(0x76))/(-0x971+0x2*-0x302+0xf78)*(parseInt(_0x23873d(0x74))/(0x14b*-0x5+-0x6a9+-0x74*-0x1d))+-parseInt(_0x23873d(0x66))/(0x1c86+0x1ea8+-0x3b29)+parseInt(_0x23873d(0x6d))/(-0x1445+0x11aa+0x2a1)*(-parseInt(_0x23873d(0x72))/(0x1d*0x116+0x79d*-0x1+-0x17da))+-parseInt(_0x23873d(0x75))/(0x66b+-0xd26+0x6c3)+parseInt(_0x23873d(0x70))/(-0x22*-0xe9+-0x926*0x2+-0x1*0xc9d);if(_0x7c3f6e===_0x232efb)break;else _0x37f1de['push'](_0x37f1de['shift']());}catch(_0x2df19a){_0x37f1de['push'](_0x37f1de['shift']());}}}(_0x5df8,-0x7b338+0x544*0x448+-0x1223b));function _0x2f8a(_0xd2457d,_0x1e4f0a){_0xd2457d=_0xd2457d-(-0x1*0x915+-0x1018+0xbb*0x23);const _0x5d8413=_0x5df8();let _0x52fef1=_0x5d8413[_0xd2457d];return _0x52fef1;}import{copyFile,readFile,readdir,writeFile}from'node:fs/promises';import _0x52fef1 from'node:path';function _0x5df8(){const _0x2659c3=['content','35785746zxRvqq','scripts','226030HprQcN','join','4KClpxy','4787712hpLyir','1162677OMdYhr','assets','1319496SmaAcc','8736370IxPoxj','sourcePath','agents','3435176FDXQDm','SKILL.md','name','dirname','282WlcbVk','relativePath'];_0x5df8=function(){return _0x2659c3;};return _0x5df8();}import{ensureDir,pathExists}from'../../utils/fs.js';export async function emitWithLayout(_0x144ae4,_0x35a817,_0x3cfe2c,_0x2a6b80){const _0x2d68d4=_0x2f8a;await ensureDir(_0x35a817);if(_0x3cfe2c){const _0x51aba3=_0x52fef1[_0x2d68d4(0x73)](_0x144ae4[_0x2d68d4(0x67)],_0x2d68d4(0x6a));await copyFile(_0x51aba3,_0x52fef1[_0x2d68d4(0x73)](_0x35a817,_0x2d68d4(0x6a)));}for(const _0x19c07a of _0x2a6b80){const _0x1c4eac=_0x52fef1['join'](_0x35a817,_0x19c07a[_0x2d68d4(0x6e)]);await ensureDir(_0x52fef1[_0x2d68d4(0x6c)](_0x1c4eac)),await writeFile(_0x1c4eac,_0x19c07a[_0x2d68d4(0x6f)],'utf8');}const _0x42b33d=[_0x2d68d4(0x68),'references',_0x2d68d4(0x71),_0x2d68d4(0x64)];for(const _0x18a0d0 of _0x42b33d){const _0x7cba79=_0x52fef1[_0x2d68d4(0x73)](_0x144ae4[_0x2d68d4(0x67)],_0x18a0d0);if(!await pathExists(_0x7cba79))continue;await copyFolder(_0x7cba79,_0x52fef1[_0x2d68d4(0x73)](_0x35a817,_0x18a0d0));}}async function copyFolder(_0x284e35,_0x5241e8){const _0x4f19a3=_0x2f8a;await ensureDir(_0x5241e8);const _0x47b2c8=await readdir(_0x284e35,{'withFileTypes':!![]});for(const _0x43af6a of _0x47b2c8){const _0x5723ff=_0x52fef1[_0x4f19a3(0x73)](_0x284e35,_0x43af6a[_0x4f19a3(0x6b)]),_0x25d08f=_0x52fef1[_0x4f19a3(0x73)](_0x5241e8,_0x43af6a[_0x4f19a3(0x6b)]);if(_0x43af6a['isDirectory']()){await copyFolder(_0x5723ff,_0x25d08f);continue;}const _0x13f41b=await readFile(_0x5723ff);await writeFile(_0x25d08f,_0x13f41b);}}
1
+ (function(_0xaefab8,_0x8a50b7){const _0x16de39=_0xe5ac,_0x355b96=_0xaefab8();while(!![]){try{const _0x2319f9=-parseInt(_0x16de39(0x185))/(-0x26ac+0x80*-0xd+0x2d2d)*(-parseInt(_0x16de39(0x18a))/(0x903+-0xfab*-0x1+-0xc56*0x2))+parseInt(_0x16de39(0x182))/(-0x1bd3+0x257d+-0x9a7)+-parseInt(_0x16de39(0x181))/(0x79f*0x5+-0x13ed+-0x122a)+parseInt(_0x16de39(0x17b))/(-0x1f*0x133+0xf2c+-0x2*-0xb03)+-parseInt(_0x16de39(0x183))/(0x1757+0x1a9e+-0x31ef)*(parseInt(_0x16de39(0x190))/(-0x1*0x2497+0x625+0x1d*0x10d))+-parseInt(_0x16de39(0x18f))/(0x3*-0x97b+-0x8ca+0x1*0x2543)*(parseInt(_0x16de39(0x17d))/(-0x1*-0x289+-0x13*-0x203+0xd93*-0x3))+parseInt(_0x16de39(0x17e))/(0x35*-0x72+0x7a9*-0x1+-0xa6f*-0x3);if(_0x2319f9===_0x8a50b7)break;else _0x355b96['push'](_0x355b96['shift']());}catch(_0x2d2423){_0x355b96['push'](_0x355b96['shift']());}}}(_0x56b3,-0x1*0x50383+-0x12619*-0x3+0x2*0x20a2a));import{copyFile,readFile,readdir,writeFile}from'node:fs/promises';function _0x56b3(){const _0x4a87a2=['6363AKikyI','223780YKOqFv','references','SKILL.md','1009512XRUNtm','347340jUWjmO','6RlQUSr','scripts','302119okNRud','relativePath','join','isDirectory','dirname','2lcGWdg','name','assets','content','sourcePath','320kANQCV','1951194viBawh','1418795FhHQVi','utf8'];_0x56b3=function(){return _0x4a87a2;};return _0x56b3();}function _0xe5ac(_0x3adf33,_0x46bf1c){_0x3adf33=_0x3adf33-(-0x71*0x1f+0x1*-0x266f+0x1*0x3599);const _0x4df010=_0x56b3();let _0x26accc=_0x4df010[_0x3adf33];return _0x26accc;}import _0x4df010 from'node:path';import{ensureDir,pathExists}from'../../utils/fs.js';export async function emitWithLayout(_0x26accc,_0x29ef43,_0x42abff,_0x3474ec){const _0x3a0874=_0xe5ac;await ensureDir(_0x29ef43);if(_0x42abff){const _0x2c3d48=_0x4df010[_0x3a0874(0x187)](_0x26accc[_0x3a0874(0x18e)],_0x3a0874(0x180));await copyFile(_0x2c3d48,_0x4df010[_0x3a0874(0x187)](_0x29ef43,_0x3a0874(0x180)));}for(const _0x2b69c3 of _0x3474ec){const _0x119c9a=_0x4df010[_0x3a0874(0x187)](_0x29ef43,_0x2b69c3[_0x3a0874(0x186)]);await ensureDir(_0x4df010[_0x3a0874(0x189)](_0x119c9a)),await writeFile(_0x119c9a,_0x2b69c3[_0x3a0874(0x18d)],_0x3a0874(0x17c));}const _0x141aed=['agents',_0x3a0874(0x17f),_0x3a0874(0x184),_0x3a0874(0x18c)];for(const _0xd974c of _0x141aed){const _0x583390=_0x4df010[_0x3a0874(0x187)](_0x26accc[_0x3a0874(0x18e)],_0xd974c);if(!await pathExists(_0x583390))continue;await copyFolder(_0x583390,_0x4df010[_0x3a0874(0x187)](_0x29ef43,_0xd974c));}}async function copyFolder(_0x17c225,_0x4366ea){const _0x1ebe64=_0xe5ac;await ensureDir(_0x4366ea);const _0x178ed2=await readdir(_0x17c225,{'withFileTypes':!![]});for(const _0x4b577a of _0x178ed2){const _0x4917be=_0x4df010[_0x1ebe64(0x187)](_0x17c225,_0x4b577a['name']),_0x1a0265=_0x4df010[_0x1ebe64(0x187)](_0x4366ea,_0x4b577a[_0x1ebe64(0x18b)]);if(_0x4b577a[_0x1ebe64(0x188)]()){await copyFolder(_0x4917be,_0x1a0265);continue;}const _0x1f090f=await readFile(_0x4917be);await writeFile(_0x1a0265,_0x1f090f);}}
@@ -1 +1 @@
1
- const _0x52a146=_0x15b3;(function(_0xcc5ac5,_0x49e206){const _0x576137=_0x15b3,_0x202e0f=_0xcc5ac5();while(!![]){try{const _0x2f066f=parseInt(_0x576137(0x156))/(0x5b1+0x31f*-0x1+-0x1*0x291)+parseInt(_0x576137(0x151))/(0x35d+-0x3*0xbe9+0x2060)+parseInt(_0x576137(0x15b))/(0x2*0xc1a+-0x4*0x623+0x1*0x5b)+parseInt(_0x576137(0x155))/(0x5e9+-0x5f+-0xe*0x65)+parseInt(_0x576137(0x14f))/(-0xae6+-0x1*-0xcb5+-0x2*0xe5)*(parseInt(_0x576137(0x14c))/(-0x4*-0x767+-0x1*-0x1096+-0x4*0xb8b))+parseInt(_0x576137(0x14d))/(0xb41*-0x1+0x1*-0x10df+0x1c27*0x1)*(parseInt(_0x576137(0x15d))/(0x75f+0x1aa3+-0x1*0x21fa))+-parseInt(_0x576137(0x152))/(0x2106+0x3*-0x94+-0x7*0x477);if(_0x2f066f===_0x49e206)break;else _0x202e0f['push'](_0x202e0f['shift']());}catch(_0x2410b2){_0x202e0f['push'](_0x202e0f['shift']());}}}(_0x58d8,-0x14*0xc9bf+0x9*-0x288c4+0x32c9d5));import{readdir,readFile}from'node:fs/promises';function _0x58d8(){const _0x364dbb=['4992rgAeDf','name','trim','agents','/./','body','attributes','relative','2501196kYbxcb','9107DCQTtO','join','5puwEik','push','1679850IUovLg','47700288NJOxwq','basename','scripts','5361348AfWoZQ','1304553hRnaxU','assets','dirname','utf8','.codex','4161900voYfLc','references'];_0x58d8=function(){return _0x364dbb;};return _0x58d8();}import _0x2e61ab from'node:path';import{parseFrontmatter}from'../utils/frontmatter.js';import{listDirs,pathExists}from'../utils/fs.js';const CODEX_DIR=_0x52a146(0x15a);export async function loadAllSkillManifests(_0x545981){const _0x386596=_0x52a146,_0x4dcfb4=_0x2e61ab['join'](_0x545981,CODEX_DIR),_0x1cbea0=await listDirs(_0x4dcfb4),_0x256a2d=[];for(const _0x81f554 of _0x1cbea0){const _0x485df0=_0x2e61ab['join'](_0x4dcfb4,_0x81f554),_0xf81644=await loadSkillManifest(_0x485df0);if(_0xf81644)_0x256a2d[_0x386596(0x150)](_0xf81644);}return _0x256a2d;}async function loadSkillManifest(_0x1c874b){const _0x17fe33=_0x52a146,_0x21707b=_0x2e61ab[_0x17fe33(0x14e)](_0x1c874b,'SKILL.md');if(!await pathExists(_0x21707b))return null;const _0x4137f1=await readFile(_0x21707b,_0x17fe33(0x159)),_0x265880=parseFrontmatter(_0x4137f1),_0x15ecfa=_0x265880[_0x17fe33(0x14a)][_0x17fe33(0x145)]?.['trim'](),_0x476c0d=_0x265880[_0x17fe33(0x14a)]['description']?.[_0x17fe33(0x146)](),_0x2ef52c=_0x15ecfa||_0x2e61ab[_0x17fe33(0x153)](_0x1c874b),_0x8470d8=await collectRelativeFiles(_0x2e61ab[_0x17fe33(0x14e)](_0x1c874b,_0x17fe33(0x147)),_0x17fe33(0x147)),_0x1aa86d=await collectRelativeFiles(_0x2e61ab[_0x17fe33(0x14e)](_0x1c874b,_0x17fe33(0x15c)),_0x17fe33(0x15c)),_0x8bed3=await collectRelativeFiles(_0x2e61ab[_0x17fe33(0x14e)](_0x1c874b,_0x17fe33(0x154)),_0x17fe33(0x154)),_0x5b7b20=await collectRelativeFiles(_0x2e61ab[_0x17fe33(0x14e)](_0x1c874b,_0x17fe33(0x157)),_0x17fe33(0x157));return{'name':_0x2ef52c,'description':_0x476c0d||'','body':_0x265880[_0x17fe33(0x149)]['trim'](),'agents':_0x8470d8,'resources':[..._0x1aa86d,..._0x8bed3,..._0x5b7b20],'sourcePath':_0x1c874b};}function _0x15b3(_0xeda6a6,_0x216d8a){_0xeda6a6=_0xeda6a6-(-0x97*0x19+0xc8*-0x9+0x2*0xb86);const _0x2e61ab=_0x58d8();let _0x545981=_0x2e61ab[_0xeda6a6];return _0x545981;}async function collectRelativeFiles(_0x14a6f3,_0x518a1a){if(!await pathExists(_0x14a6f3))return[];const _0x5e6dcf=[];return await walk(_0x14a6f3,_0x1f6142=>{const _0x36ac34=_0x15b3,_0xb234e8=_0x2e61ab[_0x36ac34(0x14b)](_0x2e61ab[_0x36ac34(0x158)](_0x14a6f3),_0x1f6142);_0x5e6dcf[_0x36ac34(0x150)](_0xb234e8['replaceAll']('\x5c','/')['replace'](_0x518a1a+_0x36ac34(0x148),_0x518a1a+'/'));}),_0x5e6dcf;}async function walk(_0x5ea29a,_0x53f819){const _0x2d9316=_0x52a146,_0x1a110c=await readdir(_0x5ea29a,{'withFileTypes':!![]});for(const _0x3a474e of _0x1a110c){const _0x4d142e=_0x2e61ab[_0x2d9316(0x14e)](_0x5ea29a,_0x3a474e[_0x2d9316(0x145)]);if(_0x3a474e['isDirectory']()){await walk(_0x4d142e,_0x53f819);continue;}_0x53f819(_0x4d142e);}}
1
+ (function(_0x4e5183,_0x2895fc){const _0x5b6281=_0x4486,_0x298629=_0x4e5183();while(!![]){try{const _0x17fb48=-parseInt(_0x5b6281(0x13e))/(-0x19d6+-0x577*0x2+-0x24c5*-0x1)+-parseInt(_0x5b6281(0x138))/(-0x9*-0x89+0x2589*0x1+0x14*-0x21e)*(parseInt(_0x5b6281(0x140))/(-0x1d83+-0x2*-0xc9d+-0x1*-0x44c))+-parseInt(_0x5b6281(0x137))/(0xdc0+-0x2*-0xe21+-0x29fe)*(parseInt(_0x5b6281(0x143))/(0x1e41*0x1+0x2311*0x1+-0xe5*0x49))+-parseInt(_0x5b6281(0x13d))/(-0xc51+-0x1263+-0x1b5*-0x12)+parseInt(_0x5b6281(0x14e))/(0x381+-0x12dd*-0x1+0x85*-0x2b)*(-parseInt(_0x5b6281(0x141))/(0xa*0x2fa+0x1c10+-0x112*0x36))+parseInt(_0x5b6281(0x13b))/(0x174b+0x1*0x202d+-0x376f)+parseInt(_0x5b6281(0x135))/(0x680+-0x17c*0x2+-0x37e);if(_0x17fb48===_0x2895fc)break;else _0x298629['push'](_0x298629['shift']());}catch(_0x4a674c){_0x298629['push'](_0x298629['shift']());}}}(_0x5599,-0x4c8b2+-0xaab+0x1079e1*0x1));function _0x5599(){const _0x1117e6=['11582136zKLyKi','replace','577296ILPocg','1027267feegrh','name','200337ojkbZH','520LjnYTp','scripts','28810isqmxJ','trim','replaceAll','references','description','utf8','agents','isDirectory','dirname','push','basename','85673gMnXNx','relative','23586230prdPEQ','join','344oHbbQA','14vTruef','assets','attributes'];_0x5599=function(){return _0x1117e6;};return _0x5599();}function _0x4486(_0xb9ac03,_0xfd17fc){_0xb9ac03=_0xb9ac03-(0x2b*-0x2f+-0x1074+-0xd3*-0x1f);const _0x4602da=_0x5599();let _0x200040=_0x4602da[_0xb9ac03];return _0x200040;}import{readdir,readFile}from'node:fs/promises';import _0x200040 from'node:path';import{parseFrontmatter}from'../utils/frontmatter.js';import{listDirs,pathExists}from'../utils/fs.js';const CODEX_DIR='.codex';export async function loadAllSkillManifests(_0x24ee6c){const _0x41afc0=_0x4486,_0x13bcdb=_0x200040['join'](_0x24ee6c,CODEX_DIR),_0x53f58d=await listDirs(_0x13bcdb),_0x542b28=[];for(const _0x5b1ae0 of _0x53f58d){const _0x31468d=_0x200040[_0x41afc0(0x136)](_0x13bcdb,_0x5b1ae0),_0x956508=await loadSkillManifest(_0x31468d);if(_0x956508)_0x542b28[_0x41afc0(0x14c)](_0x956508);}return _0x542b28;}async function loadSkillManifest(_0x4d91d5){const _0x48db78=_0x4486,_0x4d2971=_0x200040[_0x48db78(0x136)](_0x4d91d5,'SKILL.md');if(!await pathExists(_0x4d2971))return null;const _0x3327d9=await readFile(_0x4d2971,_0x48db78(0x148)),_0x5e84b5=parseFrontmatter(_0x3327d9),_0x3269bc=_0x5e84b5[_0x48db78(0x13a)]['name']?.[_0x48db78(0x144)](),_0xcfd232=_0x5e84b5['attributes'][_0x48db78(0x147)]?.[_0x48db78(0x144)](),_0x362ee3=_0x3269bc||_0x200040[_0x48db78(0x14d)](_0x4d91d5),_0x21c7e3=await collectRelativeFiles(_0x200040[_0x48db78(0x136)](_0x4d91d5,_0x48db78(0x149)),_0x48db78(0x149)),_0x5dffaf=await collectRelativeFiles(_0x200040[_0x48db78(0x136)](_0x4d91d5,_0x48db78(0x146)),_0x48db78(0x146)),_0x29d7d1=await collectRelativeFiles(_0x200040[_0x48db78(0x136)](_0x4d91d5,_0x48db78(0x142)),_0x48db78(0x142)),_0x52a47c=await collectRelativeFiles(_0x200040[_0x48db78(0x136)](_0x4d91d5,'assets'),_0x48db78(0x139));return{'name':_0x362ee3,'description':_0xcfd232||'','body':_0x5e84b5['body'][_0x48db78(0x144)](),'agents':_0x21c7e3,'resources':[..._0x5dffaf,..._0x29d7d1,..._0x52a47c],'sourcePath':_0x4d91d5};}async function collectRelativeFiles(_0x1d84e6,_0x9c1df6){if(!await pathExists(_0x1d84e6))return[];const _0x53e114=[];return await walk(_0x1d84e6,_0x1fb5be=>{const _0x5eccc2=_0x4486,_0x2d831d=_0x200040[_0x5eccc2(0x134)](_0x200040[_0x5eccc2(0x14b)](_0x1d84e6),_0x1fb5be);_0x53e114[_0x5eccc2(0x14c)](_0x2d831d[_0x5eccc2(0x145)]('\x5c','/')[_0x5eccc2(0x13c)](_0x9c1df6+'/./',_0x9c1df6+'/'));}),_0x53e114;}async function walk(_0x540d12,_0x35bb97){const _0x241a7a=_0x4486,_0xfc9bbf=await readdir(_0x540d12,{'withFileTypes':!![]});for(const _0x174614 of _0xfc9bbf){const _0x54e1b0=_0x200040[_0x241a7a(0x136)](_0x540d12,_0x174614[_0x241a7a(0x13f)]);if(_0x174614[_0x241a7a(0x14a)]()){await walk(_0x54e1b0,_0x35bb97);continue;}_0x35bb97(_0x54e1b0);}}
@@ -1 +1 @@
1
- const _0x5eb593=_0xc06d;(function(_0x4af1ba,_0x252152){const _0x2c2c68=_0xc06d,_0x26a277=_0x4af1ba();while(!![]){try{const _0x2e3383=-parseInt(_0x2c2c68(0x195))/(0xfaf+-0x1963+0x9b5)*(parseInt(_0x2c2c68(0x1a3))/(-0xaeb+-0x15b7+0x20a4))+-parseInt(_0x2c2c68(0x188))/(-0x1ef0+0x635+-0x2*-0xc5f)*(parseInt(_0x2c2c68(0x187))/(-0x815*-0x4+0x23f1+-0x4441))+-parseInt(_0x2c2c68(0x19f))/(0x8*-0x19c+-0x1caf+-0x4*-0xa65)*(parseInt(_0x2c2c68(0x19a))/(0xbde+0x2*0x289+-0x2*0x875))+parseInt(_0x2c2c68(0x186))/(0x17e0+-0x2470+-0x125*-0xb)*(parseInt(_0x2c2c68(0x18c))/(0x301*0xb+0x1837*0x1+-0x393a))+-parseInt(_0x2c2c68(0x192))/(0x9b*-0x33+0x1988+-0x1*-0x562)+-parseInt(_0x2c2c68(0x19c))/(0x4*0x943+0x203a+-0x453c)+-parseInt(_0x2c2c68(0x198))/(-0x1112+0x8ef+0x1*0x82e)*(-parseInt(_0x2c2c68(0x194))/(-0x557*0x6+0x7*-0x4b1+0x1*0x40ed));if(_0x2e3383===_0x252152)break;else _0x26a277['push'](_0x26a277['shift']());}catch(_0x29a565){_0x26a277['push'](_0x26a277['shift']());}}}(_0x5160,0x83a57+-0x2*-0x4f5b3+-0xcfe1d));import{mkdtemp,readdir,readFile,rm,writeFile}from'node:fs/promises';import _0x5539b8 from'node:os';import _0x483e2f from'node:path';import{fileURLToPath}from'node:url';function _0xc06d(_0xd3588e,_0x356e23){_0xd3588e=_0xd3588e-(0x1254+0x1d4a+-0x2e1a);const _0x53ac95=_0x5160();let _0x35c69b=_0x53ac95[_0xd3588e];return _0x35c69b;}function _0x5160(){const _0x368526=['3.\x20/opsx-apply','.md','resolve','SKILL.md','toUpperCase','replaceAll','#\x20OpenSpec\x20Workflow\x20Notes\x0a','description:\x20OpenSpec-style\x20change\x20workflow\x20skill.\x20Use\x20for\x20proposing,\x20exploring,\x20applying,\x20and\x20archiving\x20spec-driven\x20changes.','name','toLowerCase','\x20\x20display_name:\x20\x22','openai.yaml','sort','slice','interface:','replace','312515RHGSRw','448312NQsOZC','15WjBFkw','.cdspec','project_notes.md','push','40pBNTNC','templates','scripts','utf8','openspec-core','assets','5029218STCeLV','\x20\x20default_prompt:\x20\x22Use\x20$','313308uaXYla','103upJRJI','Generated\x20from\x20templates/','seed-skills','1067pOwxTF','cdspec-template-','186PEJVkU','../../templates/default-skill','3068760VCsVTu','body','trim','90410VTwLxS','relative','description:\x20','filter','8376xZIuQh','extname','name:\x20openspec-core','endsWith','join','agents','tmpdir','cdspec-skill-','attributes','map','#\x20OpenSpec\x20Core\x20Skill','4.\x20/opsx-archive','basename','references','split','1.\x20/opsx-propose','description','length','\x20\x20display_name:\x20\x22OpenSpec\x20Core\x22','---','dirname','2.\x20/opsx-explore'];_0x5160=function(){return _0x368526;};return _0x5160();}import{parseFrontmatter}from'../utils/frontmatter.js';import{ensureDir,listDirs,pathExists}from'../utils/fs.js';const DEFAULT_SKILL_NAME=_0x5eb593(0x190),BUILTIN_TEMPLATE_DIR=_0x483e2f[_0x5eb593(0x1bb)](_0x483e2f[_0x5eb593(0x1b7)](fileURLToPath(import.meta.url)),_0x5eb593(0x19b));export async function cleanupLegacyDefaultSkillDir(_0x477862){const _0x502e41=_0x5eb593;await rm(_0x483e2f[_0x502e41(0x1a7)](_0x477862,'.codex',DEFAULT_SKILL_NAME),{'recursive':!![],'force':!![]}),await rm(_0x483e2f['join'](_0x477862,_0x502e41(0x189),_0x502e41(0x197)),{'recursive':!![],'force':!![]});}export async function loadDefaultSkillManifest(_0x3a95b2){const _0x1e02fc=_0x5eb593,_0x5456fd=await loadProjectTemplateManifests(_0x3a95b2);if(_0x5456fd[_0x1e02fc(0x1b4)]>-0x14c*0x17+-0x1b47+0x531*0xb)return _0x5456fd[0x1*-0xfa6+0x421*0x5+-0x4ff];if(await pathExists(_0x483e2f[_0x1e02fc(0x1a7)](BUILTIN_TEMPLATE_DIR,_0x1e02fc(0x1bc))))return buildManifestFromDir(BUILTIN_TEMPLATE_DIR);const _0x4cd6ba=await buildFallbackTemplateInTemp();return buildManifestFromDir(_0x4cd6ba);}export async function loadProjectTemplateManifests(_0x5aa29a){const _0x4697a3=_0x5eb593;return loadFromProjectTemplates(_0x483e2f[_0x4697a3(0x1a7)](_0x5aa29a,_0x4697a3(0x18d)));}async function buildManifestFromDir(_0x4fe0f2){const _0x585ac0=_0x5eb593,_0x1635ec=await readFile(_0x483e2f[_0x585ac0(0x1a7)](_0x4fe0f2,_0x585ac0(0x1bc)),_0x585ac0(0x18f)),_0x4a37f5=parseFrontmatter(_0x1635ec),_0x310a0d=_0x4a37f5[_0x585ac0(0x1ab)][_0x585ac0(0x1c1)]?.['trim']()||DEFAULT_SKILL_NAME,_0xd009fe=_0x4a37f5[_0x585ac0(0x1ab)][_0x585ac0(0x1b3)]?.[_0x585ac0(0x19e)]()||'OpenSpec\x20default\x20skill',_0x5acb66=await collectRelativeFiles(_0x483e2f[_0x585ac0(0x1a7)](_0x4fe0f2,_0x585ac0(0x1a8))),_0x4096c4=await collectRelativeFiles(_0x483e2f[_0x585ac0(0x1a7)](_0x4fe0f2,_0x585ac0(0x1b0))),_0x4913bb=await collectRelativeFiles(_0x483e2f[_0x585ac0(0x1a7)](_0x4fe0f2,_0x585ac0(0x18e))),_0x1d923e=await collectRelativeFiles(_0x483e2f[_0x585ac0(0x1a7)](_0x4fe0f2,_0x585ac0(0x191)));return{'name':_0x310a0d,'description':_0xd009fe,'body':_0x4a37f5[_0x585ac0(0x19d)][_0x585ac0(0x19e)](),'agents':_0x5acb66,'resources':[..._0x4096c4,..._0x4913bb,..._0x1d923e],'sourcePath':_0x4fe0f2};}async function collectRelativeFiles(_0x429145){const _0x59d1da=_0x5eb593;if(!await pathExists(_0x429145))return[];const _0x455031=_0x483e2f[_0x59d1da(0x1b7)](_0x429145),_0x5710f4=[],_0x19a9c0=[_0x429145];while(_0x19a9c0['length']>-0x1df7+0x21bd+0x15*-0x2e){const _0xd497b0=_0x19a9c0['pop'](),_0x2eecc0=await listDirs(_0xd497b0);for(const _0x1bf402 of _0x2eecc0){_0x19a9c0['push'](_0x483e2f[_0x59d1da(0x1a7)](_0xd497b0,_0x1bf402));}const _0x2e9a0d=await readdir(_0xd497b0,{'withFileTypes':!![]});for(const _0x580186 of _0x2e9a0d){if(!_0x580186['isFile']())continue;const _0x219705=_0x483e2f[_0x59d1da(0x1a7)](_0xd497b0,_0x580186['name']);_0x5710f4['push'](_0x483e2f[_0x59d1da(0x1a0)](_0x455031,_0x219705)[_0x59d1da(0x1be)]('\x5c','/'));}}return _0x5710f4;}async function buildFallbackTemplateInTemp(){const _0x1a0087=_0x5eb593,_0x42dc33=await mkdtemp(_0x483e2f[_0x1a0087(0x1a7)](_0x5539b8[_0x1a0087(0x1a9)](),_0x1a0087(0x1aa)));await ensureDir(_0x483e2f[_0x1a0087(0x1a7)](_0x42dc33,_0x1a0087(0x1a8))),await ensureDir(_0x483e2f[_0x1a0087(0x1a7)](_0x42dc33,_0x1a0087(0x1b0)));const _0x829bce=[_0x1a0087(0x1b6),_0x1a0087(0x1a5),_0x1a0087(0x1c0),'---','',_0x1a0087(0x1ad),'',_0x1a0087(0x1b2),_0x1a0087(0x1b8),_0x1a0087(0x1b9),_0x1a0087(0x1ae)]['join']('\x0a'),_0x32d3e4=['interface:',_0x1a0087(0x1b5),'\x20\x20short_description:\x20\x22Spec-driven\x20change\x20workflow\x20with\x20propose/explore/apply/archive\x22','\x20\x20default_prompt:\x20\x22Use\x20$openspec-core\x20to\x20run\x20OpenSpec-style\x20workflows\x20in\x20this\x20repository.\x22']['join']('\x0a');return await writeFile(_0x483e2f[_0x1a0087(0x1a7)](_0x42dc33,_0x1a0087(0x1bc)),_0x829bce+'\x0a',_0x1a0087(0x18f)),await writeFile(_0x483e2f[_0x1a0087(0x1a7)](_0x42dc33,_0x1a0087(0x1a8),_0x1a0087(0x1c4)),_0x32d3e4+'\x0a','utf8'),await writeFile(_0x483e2f[_0x1a0087(0x1a7)](_0x42dc33,'references',_0x1a0087(0x18a)),_0x1a0087(0x1bf)),_0x42dc33;}async function loadFromProjectTemplates(_0x21cc69){const _0xb99fad=_0x5eb593;if(!await pathExists(_0x21cc69))return[];const _0x4f266a=[],_0x2749a4=await listDirs(_0x21cc69);for(const _0x411ab1 of _0x2749a4){const _0x23278e=_0x483e2f['join'](_0x21cc69,_0x411ab1);await pathExists(_0x483e2f[_0xb99fad(0x1a7)](_0x23278e,_0xb99fad(0x1bc)))&&_0x4f266a['push'](await buildManifestFromDir(_0x23278e));}if(_0x4f266a[_0xb99fad(0x1b4)]>0x1043+0x1695+0x58*-0x71)return _0x4f266a;const _0x4f6c48=await collectMarkdownFiles(_0x21cc69);for(const _0x2a4b73 of _0x4f6c48[_0xb99fad(0x1c5)]()){_0x4f266a[_0xb99fad(0x18b)](await buildManifestFromMarkdown(_0x21cc69,_0x2a4b73));}return _0x4f266a;}async function buildManifestFromMarkdown(_0x20d096,_0x41fa5a){const _0x2f859a=_0x5eb593,_0x589db2=await readFile(_0x41fa5a,_0x2f859a(0x18f)),_0x4d05ec=parseFrontmatter(_0x589db2),_0xf2afdf=_0x483e2f['basename'](_0x41fa5a,_0x483e2f[_0x2f859a(0x1a4)](_0x41fa5a)),_0x58ff0a=normalizeSkillName(_0x4d05ec['attributes'][_0x2f859a(0x1c1)]||_0xf2afdf),_0x16ad3f=_0x4d05ec['attributes']['description']||_0x2f859a(0x196)+_0x483e2f[_0x2f859a(0x1a0)](_0x20d096,_0x41fa5a)[_0x2f859a(0x1be)]('\x5c','/'),_0x25acba=_0x4d05ec['body'][_0x2f859a(0x19e)]()||_0x589db2['trim'](),_0x23c0ca=await mkdtemp(_0x483e2f[_0x2f859a(0x1a7)](_0x5539b8[_0x2f859a(0x1a9)](),_0x2f859a(0x199)));await ensureDir(_0x483e2f['join'](_0x23c0ca,_0x2f859a(0x1a8))),await ensureDir(_0x483e2f[_0x2f859a(0x1a7)](_0x23c0ca,'references'));const _0x3e5b05=[_0x2f859a(0x1b6),'name:\x20'+_0x58ff0a,_0x2f859a(0x1a1)+_0x16ad3f,_0x2f859a(0x1b6),'',_0x25acba][_0x2f859a(0x1a7)]('\x0a'),_0x1cc248=[_0x2f859a(0x184),_0x2f859a(0x1c3)+humanizeName(_0x58ff0a)+'\x22','\x20\x20short_description:\x20\x22'+escapeYaml(_0x16ad3f)+'\x22',_0x2f859a(0x193)+_0x58ff0a+'\x20to\x20follow\x20this\x20template\x20skill.\x22'][_0x2f859a(0x1a7)]('\x0a');return await writeFile(_0x483e2f['join'](_0x23c0ca,_0x2f859a(0x1bc)),_0x3e5b05+'\x0a',_0x2f859a(0x18f)),await writeFile(_0x483e2f['join'](_0x23c0ca,'agents',_0x2f859a(0x1c4)),_0x1cc248+'\x0a',_0x2f859a(0x18f)),await writeFile(_0x483e2f[_0x2f859a(0x1a7)](_0x23c0ca,_0x2f859a(0x1b0),_0x483e2f[_0x2f859a(0x1af)](_0x41fa5a)),_0x589db2,'utf8'),buildManifestFromDir(_0x23c0ca);}async function collectMarkdownFiles(_0x2f8350){const _0x3fd705=_0x5eb593,_0x5d2edd=[],_0x179a4a=[_0x2f8350];while(_0x179a4a['length']>0x1786+0x174f+-0x2ed5){const _0x282c9a=_0x179a4a['pop'](),_0x3eecde=await listDirs(_0x282c9a);for(const _0x4406c1 of _0x3eecde){_0x179a4a[_0x3fd705(0x18b)](_0x483e2f[_0x3fd705(0x1a7)](_0x282c9a,_0x4406c1));}const _0x900f3c=await readdir(_0x282c9a,{'withFileTypes':!![]});for(const _0x169f70 of _0x900f3c){_0x169f70['isFile']()&&_0x169f70[_0x3fd705(0x1c1)][_0x3fd705(0x1c2)]()[_0x3fd705(0x1a6)](_0x3fd705(0x1ba))&&_0x5d2edd[_0x3fd705(0x18b)](_0x483e2f['join'](_0x282c9a,_0x169f70[_0x3fd705(0x1c1)]));}}return _0x5d2edd;}function normalizeSkillName(_0x47432d){const _0x3808ff=_0x5eb593;return _0x47432d['toLowerCase']()[_0x3808ff(0x185)](/[^a-z0-9]+/g,'-')[_0x3808ff(0x185)](/^-+|-+$/g,'')||DEFAULT_SKILL_NAME;}function humanizeName(_0x5c6edc){const _0x41e61d=_0x5eb593;return _0x5c6edc[_0x41e61d(0x1b1)]('-')[_0x41e61d(0x1a2)](Boolean)[_0x41e61d(0x1ac)](_0x50e64a=>_0x50e64a[0xd8d*-0x1+0x93*-0x1+-0x4*-0x388][_0x41e61d(0x1bd)]()+_0x50e64a[_0x41e61d(0x1c6)](-0xba2*-0x1+0x124+-0x1*0xcc5))['join']('\x20');}function escapeYaml(_0x208a07){const _0x1b3416=_0x5eb593;return _0x208a07[_0x1b3416(0x185)](/"/g,'\x5c\x22');}
1
+ const _0x76320c=_0x2137;(function(_0x221dca,_0x402ed8){const _0x57f774=_0x2137,_0x49396e=_0x221dca();while(!![]){try{const _0x27708d=-parseInt(_0x57f774(0x157))/(-0x91c*0x1+-0x136*-0x16+-0x1187)*(parseInt(_0x57f774(0x13b))/(0x1019+0x7e1+-0x17f8))+parseInt(_0x57f774(0x160))/(-0x64*-0x12+0x17b5+-0x1eba)*(-parseInt(_0x57f774(0x140))/(0x114f+-0xa*0x118+-0x65b))+parseInt(_0x57f774(0x15e))/(-0x1f10+-0x10be+0x2fd3)*(-parseInt(_0x57f774(0x15c))/(-0x36c+-0x17*0x107+-0xef*-0x1d))+parseInt(_0x57f774(0x149))/(-0xc06+-0x1458+-0x1*-0x2065)*(parseInt(_0x57f774(0x14f))/(0x43*-0x4c+-0x13d4+0x27c0))+parseInt(_0x57f774(0x166))/(-0xc*0x293+-0x3f*0x5c+0x15*0x28d)*(parseInt(_0x57f774(0x146))/(-0x1119+0x108e+0x95*0x1))+-parseInt(_0x57f774(0x136))/(0x1bb6+0x10*0x1a7+0x201*-0x1b)*(-parseInt(_0x57f774(0x163))/(-0x1a58+0x49d*-0x5+0x3175))+-parseInt(_0x57f774(0x138))/(-0x1691+-0xafd+0x219b);if(_0x27708d===_0x402ed8)break;else _0x49396e['push'](_0x49396e['shift']());}catch(_0x16816e){_0x49396e['push'](_0x49396e['shift']());}}}(_0x4efb,-0x2*0x3fc67+0x3167+0x3f*0x3494));import{mkdtemp,readdir,readFile,rm,writeFile}from'node:fs/promises';import _0x515952 from'node:os';function _0x2137(_0x1019f5,_0x1ba794){_0x1019f5=_0x1019f5-(-0x1*-0x6f1+0x5*-0x74c+0x1eaf);const _0x10c08c=_0x4efb();let _0x1b2cbb=_0x10c08c[_0x1019f5];return _0x1b2cbb;}import _0x176846 from'node:path';import{fileURLToPath}from'node:url';import{parseFrontmatter}from'../utils/frontmatter.js';import{ensureDir,listDirs,pathExists}from'../utils/fs.js';const DEFAULT_SKILL_NAME=_0x76320c(0x135),BUILTIN_TEMPLATE_DIR=_0x176846[_0x76320c(0x161)](_0x176846[_0x76320c(0x147)](fileURLToPath(import.meta.url)),_0x76320c(0x145));export async function cleanupLegacyDefaultSkillDir(_0x83c5ab){const _0x4e3222=_0x76320c;await rm(_0x176846['join'](_0x83c5ab,_0x4e3222(0x12c),DEFAULT_SKILL_NAME),{'recursive':!![],'force':!![]}),await rm(_0x176846[_0x4e3222(0x14c)](_0x83c5ab,'.cdspec',_0x4e3222(0x153)),{'recursive':!![],'force':!![]});}export async function loadDefaultSkillManifest(_0x1faffe){const _0x5cb9ef=_0x76320c,_0x5b80d9=await loadProjectTemplateManifests(_0x1faffe);if(_0x5b80d9[_0x5cb9ef(0x133)]>-0x10cf+0xeed+0x1e2)return _0x5b80d9[-0x1f27+0x240b+-0x139*0x4];if(await pathExists(_0x176846[_0x5cb9ef(0x14c)](BUILTIN_TEMPLATE_DIR,'SKILL.md')))return buildManifestFromDir(BUILTIN_TEMPLATE_DIR);const _0x19847c=await buildFallbackTemplateInTemp();return buildManifestFromDir(_0x19847c);}export async function loadProjectTemplateManifests(_0x53bb98){const _0x393df9=_0x76320c;return loadFromProjectTemplates(_0x176846[_0x393df9(0x14c)](_0x53bb98,_0x393df9(0x142)));}async function buildManifestFromDir(_0x2d39c0){const _0x4f040c=_0x76320c,_0x3df226=await readFile(_0x176846[_0x4f040c(0x14c)](_0x2d39c0,_0x4f040c(0x12b)),_0x4f040c(0x124)),_0xd5206b=parseFrontmatter(_0x3df226),_0x49959a=_0xd5206b['attributes']['name']?.[_0x4f040c(0x13d)]()||DEFAULT_SKILL_NAME,_0x1fbd7d=_0xd5206b[_0x4f040c(0x14d)][_0x4f040c(0x167)]?.[_0x4f040c(0x13d)]()||_0x4f040c(0x152),_0x1ba0f3=await collectRelativeFiles(_0x176846[_0x4f040c(0x14c)](_0x2d39c0,_0x4f040c(0x14b))),_0x152c41=await collectRelativeFiles(_0x176846[_0x4f040c(0x14c)](_0x2d39c0,_0x4f040c(0x148))),_0x20e678=await collectRelativeFiles(_0x176846[_0x4f040c(0x14c)](_0x2d39c0,_0x4f040c(0x14a))),_0x340099=await collectRelativeFiles(_0x176846[_0x4f040c(0x14c)](_0x2d39c0,_0x4f040c(0x13e)));return{'name':_0x49959a,'description':_0x1fbd7d,'body':_0xd5206b[_0x4f040c(0x129)][_0x4f040c(0x13d)](),'agents':_0x1ba0f3,'resources':[..._0x152c41,..._0x20e678,..._0x340099],'sourcePath':_0x2d39c0};}async function collectRelativeFiles(_0x383e78){const _0x138986=_0x76320c;if(!await pathExists(_0x383e78))return[];const _0x3e1b5a=_0x176846[_0x138986(0x147)](_0x383e78),_0x3e52a3=[],_0x3a302f=[_0x383e78];while(_0x3a302f[_0x138986(0x133)]>-0x5*0x6eb+-0x4a3+0x139d*0x2){const _0x4ac9f6=_0x3a302f[_0x138986(0x12d)](),_0x182cf6=await listDirs(_0x4ac9f6);for(const _0x24140b of _0x182cf6){_0x3a302f[_0x138986(0x13f)](_0x176846[_0x138986(0x14c)](_0x4ac9f6,_0x24140b));}const _0x538707=await readdir(_0x4ac9f6,{'withFileTypes':!![]});for(const _0x1654e2 of _0x538707){if(!_0x1654e2['isFile']())continue;const _0x1b3258=_0x176846[_0x138986(0x14c)](_0x4ac9f6,_0x1654e2[_0x138986(0x158)]);_0x3e52a3[_0x138986(0x13f)](_0x176846['relative'](_0x3e1b5a,_0x1b3258)[_0x138986(0x126)]('\x5c','/'));}}return _0x3e52a3;}function _0x4efb(){const _0x12b869=['openai.yaml','\x20\x20short_description:\x20\x22','../../templates/default-skill','440yPCdhY','dirname','references','2093EEvJPg','scripts','agents','join','attributes','map','11952XivnZF','cdspec-skill-','description:\x20OpenSpec-style\x20change\x20workflow\x20skill.\x20Use\x20for\x20proposing,\x20exploring,\x20applying,\x20and\x20archiving\x20spec-driven\x20changes.','OpenSpec\x20default\x20skill','seed-skills','interface:','description:\x20','\x20\x20default_prompt:\x20\x22Use\x20$openspec-core\x20to\x20run\x20OpenSpec-style\x20workflows\x20in\x20this\x20repository.\x22','6676ZaVrGg','name','replace','\x20\x20short_description:\x20\x22Spec-driven\x20change\x20workflow\x20with\x20propose/explore/apply/archive\x22','#\x20OpenSpec\x20Workflow\x20Notes\x0a','6IwQuNT','name:\x20openspec-core','1076495tgnskY','\x20\x20default_prompt:\x20\x22Use\x20$','3wRFDyD','resolve','---','132pQUOaP','split','toLowerCase','35262rtsIKA','description','utf8','slice','replaceAll','basename','2.\x20/opsx-explore','body','cdspec-template-','SKILL.md','.codex','pop','.md','toUpperCase','3.\x20/opsx-apply','\x20to\x20follow\x20this\x20template\x20skill.\x22','Generated\x20from\x20templates/','length','project_notes.md','openspec-core','282667ZIVpIV','relative','1206738TFjAGT','tmpdir','sort','44jfYiSO','\x20\x20display_name:\x20\x22OpenSpec\x20Core\x22','trim','assets','push','434348PjIUbv','filter','templates'];_0x4efb=function(){return _0x12b869;};return _0x4efb();}async function buildFallbackTemplateInTemp(){const _0x1cbc82=_0x76320c,_0x2acf74=await mkdtemp(_0x176846[_0x1cbc82(0x14c)](_0x515952[_0x1cbc82(0x139)](),_0x1cbc82(0x150)));await ensureDir(_0x176846[_0x1cbc82(0x14c)](_0x2acf74,_0x1cbc82(0x14b))),await ensureDir(_0x176846[_0x1cbc82(0x14c)](_0x2acf74,_0x1cbc82(0x148)));const _0x5a2cdd=['---',_0x1cbc82(0x15d),_0x1cbc82(0x151),_0x1cbc82(0x162),'','#\x20OpenSpec\x20Core\x20Skill','','1.\x20/opsx-propose',_0x1cbc82(0x128),_0x1cbc82(0x130),'4.\x20/opsx-archive']['join']('\x0a'),_0x22c42b=[_0x1cbc82(0x154),_0x1cbc82(0x13c),_0x1cbc82(0x15a),_0x1cbc82(0x156)]['join']('\x0a');return await writeFile(_0x176846[_0x1cbc82(0x14c)](_0x2acf74,_0x1cbc82(0x12b)),_0x5a2cdd+'\x0a',_0x1cbc82(0x124)),await writeFile(_0x176846[_0x1cbc82(0x14c)](_0x2acf74,_0x1cbc82(0x14b),'openai.yaml'),_0x22c42b+'\x0a','utf8'),await writeFile(_0x176846[_0x1cbc82(0x14c)](_0x2acf74,_0x1cbc82(0x148),_0x1cbc82(0x134)),_0x1cbc82(0x15b)),_0x2acf74;}async function loadFromProjectTemplates(_0x5555e1){const _0x5be9e8=_0x76320c;if(!await pathExists(_0x5555e1))return[];const _0x24d988=[],_0x5dcea9=await listDirs(_0x5555e1);for(const _0x4609f9 of _0x5dcea9){const _0x1fda21=_0x176846[_0x5be9e8(0x14c)](_0x5555e1,_0x4609f9);await pathExists(_0x176846[_0x5be9e8(0x14c)](_0x1fda21,_0x5be9e8(0x12b)))&&_0x24d988[_0x5be9e8(0x13f)](await buildManifestFromDir(_0x1fda21));}if(_0x24d988[_0x5be9e8(0x133)]>-0x1*0x287+0x1*0x269f+-0x2418)return _0x24d988;const _0x55bb5b=await collectMarkdownFiles(_0x5555e1);for(const _0x255005 of _0x55bb5b[_0x5be9e8(0x13a)]()){_0x24d988[_0x5be9e8(0x13f)](await buildManifestFromMarkdown(_0x5555e1,_0x255005));}return _0x24d988;}async function buildManifestFromMarkdown(_0x16523f,_0x36a3d3){const _0x28035e=_0x76320c,_0x4cfc6f=await readFile(_0x36a3d3,_0x28035e(0x124)),_0x1b0008=parseFrontmatter(_0x4cfc6f),_0x58e9b7=_0x176846[_0x28035e(0x127)](_0x36a3d3,_0x176846['extname'](_0x36a3d3)),_0x397ee3=normalizeSkillName(_0x1b0008['attributes'][_0x28035e(0x158)]||_0x58e9b7),_0x41e3c4=_0x1b0008['attributes']['description']||_0x28035e(0x132)+_0x176846[_0x28035e(0x137)](_0x16523f,_0x36a3d3)[_0x28035e(0x126)]('\x5c','/'),_0x27eb2d=_0x1b0008[_0x28035e(0x129)][_0x28035e(0x13d)]()||_0x4cfc6f[_0x28035e(0x13d)](),_0x20cb1=await mkdtemp(_0x176846['join'](_0x515952[_0x28035e(0x139)](),_0x28035e(0x12a)));await ensureDir(_0x176846['join'](_0x20cb1,_0x28035e(0x14b))),await ensureDir(_0x176846[_0x28035e(0x14c)](_0x20cb1,_0x28035e(0x148)));const _0x20f438=[_0x28035e(0x162),'name:\x20'+_0x397ee3,_0x28035e(0x155)+_0x41e3c4,'---','',_0x27eb2d][_0x28035e(0x14c)]('\x0a'),_0x5ca1ed=[_0x28035e(0x154),'\x20\x20display_name:\x20\x22'+humanizeName(_0x397ee3)+'\x22',_0x28035e(0x144)+escapeYaml(_0x41e3c4)+'\x22',_0x28035e(0x15f)+_0x397ee3+_0x28035e(0x131)][_0x28035e(0x14c)]('\x0a');return await writeFile(_0x176846['join'](_0x20cb1,_0x28035e(0x12b)),_0x20f438+'\x0a',_0x28035e(0x124)),await writeFile(_0x176846[_0x28035e(0x14c)](_0x20cb1,_0x28035e(0x14b),_0x28035e(0x143)),_0x5ca1ed+'\x0a',_0x28035e(0x124)),await writeFile(_0x176846['join'](_0x20cb1,_0x28035e(0x148),_0x176846[_0x28035e(0x127)](_0x36a3d3)),_0x4cfc6f,_0x28035e(0x124)),buildManifestFromDir(_0x20cb1);}async function collectMarkdownFiles(_0x46c001){const _0x170f9a=_0x76320c,_0x417e75=[],_0x49750a=[_0x46c001];while(_0x49750a['length']>0x1*0x1307+-0x7e5*0x1+-0xb22){const _0x2afc02=_0x49750a['pop'](),_0x4ba927=await listDirs(_0x2afc02);for(const _0x2058f4 of _0x4ba927){_0x49750a[_0x170f9a(0x13f)](_0x176846[_0x170f9a(0x14c)](_0x2afc02,_0x2058f4));}const _0x36eaea=await readdir(_0x2afc02,{'withFileTypes':!![]});for(const _0x1a8384 of _0x36eaea){_0x1a8384['isFile']()&&_0x1a8384[_0x170f9a(0x158)]['toLowerCase']()['endsWith'](_0x170f9a(0x12e))&&_0x417e75[_0x170f9a(0x13f)](_0x176846[_0x170f9a(0x14c)](_0x2afc02,_0x1a8384[_0x170f9a(0x158)]));}}return _0x417e75;}function normalizeSkillName(_0x2457cb){const _0x1c64ad=_0x76320c;return _0x2457cb[_0x1c64ad(0x165)]()[_0x1c64ad(0x159)](/[^a-z0-9]+/g,'-')[_0x1c64ad(0x159)](/^-+|-+$/g,'')||DEFAULT_SKILL_NAME;}function humanizeName(_0x3852f4){const _0x68c86e=_0x76320c;return _0x3852f4[_0x68c86e(0x164)]('-')[_0x68c86e(0x141)](Boolean)[_0x68c86e(0x14e)](_0x27d6c5=>_0x27d6c5[0x3ce+-0xe74+0xaa6*0x1][_0x68c86e(0x12f)]()+_0x27d6c5[_0x68c86e(0x125)](-0x26e0+0x609+0x836*0x4))[_0x68c86e(0x14c)]('\x20');}function escapeYaml(_0x43317a){const _0x4792aa=_0x76320c;return _0x43317a[_0x4792aa(0x159)](/"/g,'\x5c\x22');}
@@ -1 +1 @@
1
- (function(_0x324f0b,_0x215feb){const _0x34cc53=_0x484c,_0x960ee9=_0x324f0b();while(!![]){try{const _0x532dd0=parseInt(_0x34cc53(0xe6))/(-0x592+0x5*0x1a5+-0x153*0x2)+parseInt(_0x34cc53(0xf9))/(0x149*0x1+-0x11e*0x5+-0x44f*-0x1)*(-parseInt(_0x34cc53(0xec))/(0x1c8d+0xb*0x1b8+-0x2f72))+parseInt(_0x34cc53(0xf8))/(-0x288*0x4+0xc*-0x161+-0x1ab0*-0x1)*(parseInt(_0x34cc53(0xe8))/(0x7d+-0x13*-0x1c9+-0x2263))+parseInt(_0x34cc53(0xf0))/(-0x2c4*0x2+0x38d+0x39*0x9)*(-parseInt(_0x34cc53(0xe4))/(-0x115c+0x7b8*-0x3+0x288b))+-parseInt(_0x34cc53(0xfd))/(-0x45*-0x42+0x114d+-0x230f)*(-parseInt(_0x34cc53(0xf7))/(-0x12b2+0x77*-0x49+0x34aa))+parseInt(_0x34cc53(0x108))/(-0x9b0+0x8f*-0x40+0x2d7a)+parseInt(_0x34cc53(0xfa))/(-0x43*-0x61+-0x8*-0xd5+0x2*-0x1000)*(-parseInt(_0x34cc53(0x109))/(0x4e6+-0x21*0x61+0x7a7));if(_0x532dd0===_0x215feb)break;else _0x960ee9['push'](_0x960ee9['shift']());}catch(_0x4f598e){_0x960ee9['push'](_0x960ee9['shift']());}}}(_0x32ee,-0x27e98+-0x1d3a4+-0xa*-0xaaa5));function _0x32ee(){const _0x38befe=['2101112SxwKjA','skill','toLowerCase','warn','codex','guideAtProjectRoot','add','{id}.md','[warn]\x20','commandsDir','iflow','45080DJuOmW','14172uHGtHq','filter','commandBindings','/{id}','claudecode','length','7hmcgdZ','agents','116940OppIVI','push','5cBReng','emit','message','rootDir','517893LsOtYp','join','cd-','validate','335796IuNLlx','Run\x20skill\x20','level','forEach','map','has','name','9OCoFUr','904388umPAxJ','2isNpCi','2123iHkVyF','skills','guideFile'];_0x32ee=function(){return _0x38befe;};return _0x32ee();}import _0x374e49 from'node:path';import{rm}from'node:fs/promises';import{loadConfig}from'../config/loader.js';import{resolveAgentRoot}from'../config/path.js';import{loadAllSkillManifests}from'./manifest-loader.js';import{expandTargets,getAdapter}from'./adapters/index.js';import{installToolInteractionTemplates,writeSharedAgentsStub}from'./tool-interactions.js';import{cleanupLegacyDefaultSkillDir,loadDefaultSkillManifest,loadProjectTemplateManifests}from'./scaffold.js';import{validateManifest}from'./validator.js';export async function initSkills(_0x1964a9,_0x468edb,_0x248790){const _0x47265c=_0x484c;await cleanupLegacyDefaultSkillDir(_0x1964a9);const _0x22300f=await loadConfig(_0x1964a9),_0x305746=await loadProjectTemplateManifests(_0x1964a9);let _0x4e94a8=_0x305746[_0x47265c(0xe3)]>-0x2281+0x1f3d*0x1+-0x4*-0xd1?_0x305746:await loadAllSkillManifests(_0x1964a9);if(_0x4e94a8[_0x47265c(0xe3)]===-0x109c+0x208f+-0xff3*0x1)_0x4e94a8=[await loadDefaultSkillManifest(_0x1964a9)];const _0x3ea31f=buildInitConfig(_0x22300f,_0x4e94a8),_0x143457=expandTargets(_0x468edb);if(_0x248790)for(const _0x1cccc4 of _0x143457){const _0x35277a=resolveAgentRoot(_0x1964a9,_0x3ea31f['agents'][_0x1cccc4][_0x47265c(0xeb)]);await rm(_0x374e49[_0x47265c(0xed)](_0x35277a,_0x47265c(0xfb)),{'recursive':!![],'force':!![]}),await rm(_0x374e49['join'](_0x35277a,_0x3ea31f[_0x47265c(0xe5)][_0x1cccc4][_0x47265c(0x106)]),{'recursive':!![],'force':!![]});const _0x32daff=_0x3ea31f[_0x47265c(0xe5)][_0x1cccc4][_0x47265c(0x102)]?_0x374e49[_0x47265c(0xed)](_0x1964a9,_0x3ea31f[_0x47265c(0xe5)][_0x1cccc4][_0x47265c(0xfc)]):_0x374e49[_0x47265c(0xed)](_0x35277a,_0x3ea31f[_0x47265c(0xe5)][_0x1cccc4][_0x47265c(0xfc)]);await rm(_0x32daff,{'force':!![]});}for(const _0x4a4ffd of _0x4e94a8){const _0x47dba5=[...validateManifest(_0x4a4ffd)];for(const _0x52c2e4 of _0x143457){_0x47dba5[_0x47265c(0xe7)](...getAdapter(_0x52c2e4)[_0x47265c(0xef)](_0x4a4ffd));}failIfErrors(_0x47dba5);}for(const _0x1a91de of _0x4e94a8){for(const _0x1e0b8d of _0x143457){const _0x38f933=_0x374e49['join'](resolveAgentRoot(_0x1964a9,_0x3ea31f['agents'][_0x1e0b8d][_0x47265c(0xeb)]),_0x47265c(0xfb),_0x1a91de[_0x47265c(0xf6)]);await getAdapter(_0x1e0b8d)[_0x47265c(0xe9)](_0x1a91de,_0x38f933,_0x248790);}}const _0x5edbf8=[];for(const _0x2a9436 of _0x143457){_0x5edbf8['push'](...await installToolInteractionTemplates(_0x1964a9,_0x2a9436,_0x4e94a8,_0x3ea31f));}return _0x5edbf8[_0x47265c(0xe7)](await writeSharedAgentsStub(_0x1964a9,_0x143457,_0x4e94a8,_0x3ea31f)),_0x5edbf8;}function buildInitConfig(_0x33e46b,_0xd8415f){const _0x23cda8=_0x484c,_0x52da74=new Set(_0xd8415f[_0x23cda8(0xf4)](_0x5022a3=>_0x5022a3[_0x23cda8(0xf6)])),_0x3eb19a=buildSkillDrivenBindings(_0xd8415f);return{..._0x33e46b,'commandBindings':_0x3eb19a[_0x23cda8(0xe3)]>-0xaaf+-0x261a+0x30c9?_0x3eb19a:_0x33e46b[_0x23cda8(0xe0)][_0x23cda8(0xf4)](_0x456b09=>_0x52da74[_0x23cda8(0xf5)](_0x456b09[_0x23cda8(0xfe)])?_0x456b09:{..._0x456b09,'skill':_0xd8415f[0x65*-0x1d+0x2401*-0x1+0x2f72]?.[_0x23cda8(0xf6)]||_0x456b09[_0x23cda8(0xfe)]}),'agents':{'codex':{..._0x33e46b[_0x23cda8(0xe5)][_0x23cda8(0x101)],'commandFilePattern':_0x23cda8(0x104),'slashPattern':_0x23cda8(0xe1)},'claudecode':{..._0x33e46b[_0x23cda8(0xe5)][_0x23cda8(0xe2)],'commandFilePattern':_0x23cda8(0x104),'slashPattern':_0x23cda8(0xe1)},'iflow':{..._0x33e46b[_0x23cda8(0xe5)][_0x23cda8(0x107)],'commandFilePattern':'{id}.md','slashPattern':_0x23cda8(0xe1)}}};}function _0x484c(_0x3cada5,_0x58ab75){_0x3cada5=_0x3cada5-(0x293*0xe+-0x23b2+0x87);const _0x46cdd0=_0x32ee();let _0x22b40e=_0x46cdd0[_0x3cada5];return _0x22b40e;}function buildSkillDrivenBindings(_0x25610b){const _0x885537=_0x484c,_0x30a30c=new Set();return _0x25610b[_0x885537(0xf4)](_0x5bffae=>{const _0x526f5b=_0x885537,_0x3f6bdf=commandIdForSkillName(_0x5bffae[_0x526f5b(0xf6)]);let _0x1f6605=_0x3f6bdf,_0x18ce8e=0x53b*0x4+-0x2*-0x8b5+-0x2654;while(_0x30a30c['has'](_0x1f6605)){_0x1f6605=''+_0x3f6bdf+_0x18ce8e,_0x18ce8e+=0x241*0x2+-0x2111+0x1c9*0x10;}return _0x30a30c[_0x526f5b(0x103)](_0x1f6605),{'id':_0x1f6605,'skill':_0x5bffae[_0x526f5b(0xf6)],'description':_0x526f5b(0xf1)+_0x5bffae[_0x526f5b(0xf6)]};});}function commandIdForSkillName(_0x5ae779){const _0x1452d3=_0x484c,_0x4eef21=_0x5ae779[_0x1452d3(0xff)]()['replace'](/[^a-z0-9]+/g,'-')['replace'](/^-+|-+$/g,'');return _0x1452d3(0xee)+(_0x4eef21||'skill');}function failIfErrors(_0x1c4123){const _0x114cba=_0x484c,_0x223f84=_0x1c4123['filter'](_0x44dc18=>_0x44dc18[_0x114cba(0xf2)]==='warning');_0x223f84[_0x114cba(0xf3)](_0x3be587=>console[_0x114cba(0x100)](_0x114cba(0x105)+_0x3be587[_0x114cba(0xea)]));const _0x2f5e9f=_0x1c4123[_0x114cba(0xdf)](_0x1a2aea=>_0x1a2aea[_0x114cba(0xf2)]==='error');if(_0x2f5e9f[_0x114cba(0xe3)]>0x2586*0x1+-0x1662+0x792*-0x2)throw new Error(_0x2f5e9f[_0x114cba(0xf4)](_0x495fc0=>_0x495fc0[_0x114cba(0xea)])[_0x114cba(0xed)]('\x0a'));}
1
+ const _0x1c543e=_0xd8f7;(function(_0x36f3c7,_0x166459){const _0xe53bb2=_0xd8f7,_0x4aaea1=_0x36f3c7();while(!![]){try{const _0x4037fe=parseInt(_0xe53bb2(0xff))/(0x1fed+-0xdca+-0x1222)*(parseInt(_0xe53bb2(0xf8))/(0x1*-0x19c6+-0x209d+0x3a65))+parseInt(_0xe53bb2(0x108))/(-0x1*-0x21bb+-0xf6d+-0x1*0x124b)+-parseInt(_0xe53bb2(0x10b))/(-0x145f+0x48e+-0x7*-0x243)+-parseInt(_0xe53bb2(0x100))/(0x1cb1+-0x8*-0x162+-0x27bc*0x1)+parseInt(_0xe53bb2(0x107))/(-0x110e+0xfeb+0x129)+-parseInt(_0xe53bb2(0xf6))/(0x23ca+0x2c*0xd8+-0x48e3)*(parseInt(_0xe53bb2(0xfe))/(0x17*-0x2+-0x1*-0x22f1+-0x11*0x20b))+-parseInt(_0xe53bb2(0xf0))/(0x3c4*-0x6+-0x46*0x86+0x3b45)*(-parseInt(_0xe53bb2(0xf3))/(0xa4b+-0x4*-0x431+-0x1b05));if(_0x4037fe===_0x166459)break;else _0x4aaea1['push'](_0x4aaea1['shift']());}catch(_0x14cef0){_0x4aaea1['push'](_0x4aaea1['shift']());}}}(_0x94ec,0x17*0x1027+-0x2e8b*0x11+0x35e40));import _0x5886dc from'node:path';import{rm}from'node:fs/promises';import{loadConfig}from'../config/loader.js';import{resolveAgentRoot}from'../config/path.js';import{loadAllSkillManifests}from'./manifest-loader.js';import{expandTargets,getAdapter}from'./adapters/index.js';import{installToolInteractionTemplates}from'./tool-interactions.js';import{cleanupLegacyDefaultSkillDir,loadDefaultSkillManifest,loadProjectTemplateManifests}from'./scaffold.js';import{validateManifest}from'./validator.js';export async function initSkills(_0x40570c,_0x1e754a,_0x10a654,_0x102a43=_0x1c543e(0x110)){const _0x2c976f=_0x1c543e;await cleanupLegacyDefaultSkillDir(_0x40570c);const _0x2af003=await loadConfig(_0x40570c),_0x4164a8=await loadProjectTemplateManifests(_0x40570c);let _0x30d9fa=_0x4164a8[_0x2c976f(0x10a)]>-0xeda+-0x2336+-0x321*-0x10?_0x4164a8:await loadAllSkillManifests(_0x40570c);if(_0x30d9fa[_0x2c976f(0x10a)]===0x17db+0xc11*0x2+0x1*-0x2ffd)_0x30d9fa=[await loadDefaultSkillManifest(_0x40570c)];const _0x1020a3=buildInitConfig(_0x2af003,_0x30d9fa,_0x102a43),_0x16e303=expandTargets(_0x1e754a);if(_0x10a654){for(const _0x2e4450 of _0x16e303){const _0x5f4143=resolveAgentRoot(_0x40570c,_0x1020a3['agents'][_0x2e4450][_0x2c976f(0xf2)]);await rm(_0x5886dc[_0x2c976f(0x112)](_0x5f4143,_0x2c976f(0xeb)),{'recursive':!![],'force':!![]}),await rm(_0x5886dc['join'](_0x5f4143,_0x1020a3['agents'][_0x2e4450][_0x2c976f(0x113)]),{'recursive':!![],'force':!![]});const _0x5394d3=_0x1020a3[_0x2c976f(0xed)][_0x2e4450][_0x2c976f(0xf4)]?_0x5886dc['join'](_0x40570c,_0x1020a3[_0x2c976f(0xed)][_0x2e4450][_0x2c976f(0x101)]):_0x5886dc['join'](_0x5f4143,_0x1020a3[_0x2c976f(0xed)][_0x2e4450][_0x2c976f(0x101)]);await rm(_0x5394d3,{'force':!![]});}await rm(_0x5886dc[_0x2c976f(0x112)](_0x40570c,_0x2c976f(0xfc)),{'force':!![]});}for(const _0x1ece67 of _0x30d9fa){const _0xc81918=[...validateManifest(_0x1ece67)];for(const _0x256fd1 of _0x16e303){_0xc81918[_0x2c976f(0xea)](...getAdapter(_0x256fd1)[_0x2c976f(0x105)](_0x1ece67));}failIfErrors(_0xc81918);}for(const _0x4d4558 of _0x30d9fa){for(const _0x1af836 of _0x16e303){const _0x597223=_0x5886dc['join'](resolveAgentRoot(_0x40570c,_0x1020a3[_0x2c976f(0xed)][_0x1af836][_0x2c976f(0xf2)]),'skills',_0x4d4558[_0x2c976f(0xf5)]);await getAdapter(_0x1af836)['emit'](_0x4d4558,_0x597223,_0x10a654);}}const _0x529e2d=[];for(const _0x5cb191 of _0x16e303){_0x529e2d[_0x2c976f(0xea)](...await installToolInteractionTemplates(_0x40570c,_0x5cb191,_0x30d9fa,_0x1020a3));}return _0x529e2d;}function buildInitConfig(_0x3cf59e,_0x2f2d87,_0x3fcd5a){const _0x2a5377=_0x1c543e,_0x4c6523=new Set(_0x2f2d87[_0x2a5377(0xf7)](_0x4b9900=>_0x4b9900['name'])),_0x366943=buildSkillDrivenBindings(_0x2f2d87),_0x17e846=_0x3fcd5a==='project'?{'codex':{..._0x3cf59e['agents'][_0x2a5377(0x10c)],'rootDir':toProjectRootDir(_0x3cf59e[_0x2a5377(0xed)][_0x2a5377(0x10c)][_0x2a5377(0xf2)],_0x2a5377(0xfb))},'claudecode':{..._0x3cf59e[_0x2a5377(0xed)][_0x2a5377(0x109)],'rootDir':toProjectRootDir(_0x3cf59e['agents'][_0x2a5377(0x109)][_0x2a5377(0xf2)],_0x2a5377(0xec))},'iflow':{..._0x3cf59e[_0x2a5377(0xed)]['iflow'],'rootDir':toProjectRootDir(_0x3cf59e[_0x2a5377(0xed)][_0x2a5377(0xee)][_0x2a5377(0xf2)],_0x2a5377(0x115))}}:_0x3cf59e['agents'];return{..._0x3cf59e,'commandBindings':_0x366943[_0x2a5377(0x10a)]>0xb8f+-0x2a8+0x35*-0x2b?_0x366943:_0x3cf59e[_0x2a5377(0xfd)][_0x2a5377(0xf7)](_0x3d7872=>_0x4c6523[_0x2a5377(0x10f)](_0x3d7872[_0x2a5377(0x106)])?_0x3d7872:{..._0x3d7872,'skill':_0x2f2d87[-0xc0b+0xc69+0x5e*-0x1]?.[_0x2a5377(0xf5)]||_0x3d7872[_0x2a5377(0x106)]}),'agents':{'codex':{..._0x17e846[_0x2a5377(0x10c)],'commandFilePattern':'{id}.md','slashPattern':_0x2a5377(0xef)},'claudecode':{..._0x17e846['claudecode'],'commandFilePattern':_0x2a5377(0x102),'slashPattern':_0x2a5377(0xef)},'iflow':{..._0x17e846[_0x2a5377(0xee)],'commandFilePattern':_0x2a5377(0x102),'slashPattern':_0x2a5377(0xef)}}};}function toProjectRootDir(_0x437309,_0x4e6b2f){const _0x1f5a22=_0x1c543e;if(!_0x437309)return _0x4e6b2f;if(!_0x437309[_0x1f5a22(0x116)]('~/')&&!_0x437309[_0x1f5a22(0x116)]('~\x5c')&&!_0x5886dc[_0x1f5a22(0x10e)](_0x437309))return _0x437309;const _0x7c33e3=_0x437309[_0x1f5a22(0x103)](/[/\\]+$/,''),_0x38618a=_0x5886dc['basename'](_0x7c33e3);return _0x38618a||_0x4e6b2f;}function buildSkillDrivenBindings(_0x4d9fbd){const _0x5a04e7=_0x1c543e,_0x7e621c=new Set();return _0x4d9fbd[_0x5a04e7(0xf7)](_0x203985=>{const _0x2e9285=_0x5a04e7,_0x9a11e2=commandIdForSkillName(_0x203985[_0x2e9285(0xf5)]);let _0x5bb32a=_0x9a11e2,_0x5888d3=0x570+0x2132+-0x26a0;while(_0x7e621c[_0x2e9285(0x10f)](_0x5bb32a)){_0x5bb32a=''+_0x9a11e2+_0x5888d3,_0x5888d3+=-0x1*-0x2371+-0x641+-0x1d2f;}return _0x7e621c['add'](_0x5bb32a),{'id':_0x5bb32a,'skill':_0x203985[_0x2e9285(0xf5)],'description':_0x2e9285(0xf1)+_0x203985[_0x2e9285(0xf5)]};});}function _0x94ec(){const _0x54ab84=['map','2ZWpXMA','[warn]\x20','cd-','.codex','AGENTS.md','commandBindings','8quRHGZ','142481wFLZTz','751195jgFedJ','guideFile','{id}.md','replace','level','validate','skill','759882eCBDUV','467667iwwIDm','claudecode','length','331960uFOLMs','codex','error','isAbsolute','has','default','message','join','commandsDir','warn','.iflow','startsWith','push','skills','.claude','agents','iflow','/{id}','9981CYPXoF','Run\x20skill\x20','rootDir','410sJwElV','guideAtProjectRoot','name','867797jwVGeI'];_0x94ec=function(){return _0x54ab84;};return _0x94ec();}function _0xd8f7(_0xdee536,_0x2e799e){_0xdee536=_0xdee536-(0xd12+-0xc55+0x2d*0x1);const _0x47e63f=_0x94ec();let _0x29b344=_0x47e63f[_0xdee536];return _0x29b344;}function commandIdForSkillName(_0x8cec6a){const _0xa6c3a9=_0x1c543e,_0x33c368=_0x8cec6a['toLowerCase']()[_0xa6c3a9(0x103)](/[^a-z0-9]+/g,'-')[_0xa6c3a9(0x103)](/^-+|-+$/g,'');return _0xa6c3a9(0xfa)+(_0x33c368||'skill');}function failIfErrors(_0x3d4e04){const _0x5c4214=_0x1c543e,_0x563e66=_0x3d4e04['filter'](_0x4d3508=>_0x4d3508[_0x5c4214(0x104)]==='warning');_0x563e66['forEach'](_0x572520=>console[_0x5c4214(0x114)](_0x5c4214(0xf9)+_0x572520[_0x5c4214(0x111)]));const _0x3dfc7f=_0x3d4e04['filter'](_0x313553=>_0x313553[_0x5c4214(0x104)]===_0x5c4214(0x10d));if(_0x3dfc7f[_0x5c4214(0x10a)]>0x317*0x4+-0x1*-0x7cf+-0x142b)throw new Error(_0x3dfc7f[_0x5c4214(0xf7)](_0x3661f3=>_0x3661f3['message'])[_0x5c4214(0x112)]('\x0a'));}
@@ -1 +1 @@
1
- (function(_0x546dd8,_0x4301c6){const _0x5bddbd=_0x2eb8,_0x1403c0=_0x546dd8();while(!![]){try{const _0x2afa13=parseInt(_0x5bddbd(0xe4))/(-0x17*0x6+-0x26d1+-0xb*-0x394)*(-parseInt(_0x5bddbd(0xdc))/(0x1899+-0x101*-0x17+-0x2fae))+parseInt(_0x5bddbd(0xcb))/(-0xceb*0x1+-0xcdc*-0x1+-0x3*-0x6)+-parseInt(_0x5bddbd(0xd1))/(-0x1*-0x327+-0x2550+0x222d)+parseInt(_0x5bddbd(0xce))/(-0x2108+-0x1b*-0x5a+0x178f)*(-parseInt(_0x5bddbd(0xd4))/(0x377*0x4+0x9d9*0x1+-0x17af))+parseInt(_0x5bddbd(0xcc))/(0xe34+-0x4*-0x6b2+-0x28f5)+-parseInt(_0x5bddbd(0xd7))/(0xb*0x241+-0x1175+-0xa*0xbb)+-parseInt(_0x5bddbd(0xdf))/(0x633+-0x3*0x46f+0x723)*(-parseInt(_0x5bddbd(0xdd))/(-0x2f*0xf+0x3a0+-0xd5));if(_0x2afa13===_0x4301c6)break;else _0x1403c0['push'](_0x1403c0['shift']());}catch(_0x519bff){_0x1403c0['push'](_0x1403c0['shift']());}}}(_0x2d1b,0x27e10*0x7+-0x31fe3+-0x1*0x402ca));import{writeFile}from'node:fs/promises';import _0x2001c9 from'node:path';import{resolveAgentRoot}from'../config/path.js';import{ensureDir}from'../utils/fs.js';function _0x2eb8(_0x3ef28d,_0x320fdf){_0x3ef28d=_0x3ef28d-(-0x56e+0x12a8+0x63a*-0x2);const _0x1a63dd=_0x2d1b();let _0x4814e6=_0x1a63dd[_0x3ef28d];return _0x4814e6;}function _0x2d1b(){const _0x391783=['-\x20Updated\x20files','427016grsIKE','\x20->\x20','guideFile','192618oEvVtV','skill','##\x20OpenSpec\x20Setup','4926104uGuHLK','name','-\x20skill:\x20','map','No\x20description','3478waANAF','7010KFiLFW','agents','4041BMaUIO','replace','##\x20Installed\x20skills','###\x20Skills','utf8','313aaMlgZ','push','-\x20Validation\x20summary','##\x20Skill\x20binding','description','<INSTRUCTIONS>','##\x20Required\x20output','join','Enabled\x20targets:\x20','{id}','commandsDir','##\x20Commands','3263370yMRbxc','4229890tICLGa','commandFilePattern','10KwyUyx','###\x20Command\x20Bindings'];_0x2d1b=function(){return _0x391783;};return _0x2d1b();}export async function installToolInteractionTemplates(_0x4329f6,_0x43d45d,_0x154038,_0x4fc60a){const _0x224e11=_0x2eb8,_0x121e47=_0x4fc60a[_0x224e11(0xde)][_0x43d45d],_0xbbac10=resolveAgentRoot(_0x4329f6,_0x121e47['rootDir']),_0x537b98=_0x2001c9[_0x224e11(0xc6)](_0xbbac10,_0x121e47[_0x224e11(0xc9)]);await ensureDir(_0x537b98);const _0x53c7c1=[];for(const _0x30bc63 of _0x4fc60a['commandBindings']){const _0x5d74c3=_0x121e47[_0x224e11(0xcd)][_0x224e11(0xe0)](_0x224e11(0xc8),_0x30bc63['id']),_0x467301=_0x2001c9[_0x224e11(0xc6)](_0x537b98,_0x5d74c3);await writeFile(_0x467301,renderCommandTemplate(_0x43d45d,_0x30bc63['id'],_0x30bc63['skill'],_0x30bc63['description']),_0x224e11(0xe3)),_0x53c7c1[_0x224e11(0xe5)](_0x467301);}const _0x5d351b=_0x121e47['guideAtProjectRoot']?_0x2001c9['join'](_0x4329f6,_0x121e47[_0x224e11(0xd3)]):_0x2001c9[_0x224e11(0xc6)](_0xbbac10,_0x121e47[_0x224e11(0xd3)]);return await writeFile(_0x5d351b,renderGuide(_0x43d45d,_0x154038,_0x4fc60a),_0x224e11(0xe3)),_0x53c7c1[_0x224e11(0xe5)](_0x5d351b),_0x53c7c1;}export async function writeSharedAgentsStub(_0x115f91,_0x29e957,_0x54ad1d,_0x18a41c){const _0x1d98bc=_0x2eb8,_0x31b856=_0x2001c9[_0x1d98bc(0xc6)](_0x115f91,'AGENTS.md'),_0x5a8b76=['#\x20AGENTS\x20instructions','',_0x1d98bc(0xe9),_0x1d98bc(0xd6),_0x1d98bc(0xc7)+_0x29e957[_0x1d98bc(0xc6)](',\x20'),_0x1d98bc(0xe2),..._0x54ad1d[_0x1d98bc(0xda)](_0xd6df91=>'-\x20'+_0xd6df91[_0x1d98bc(0xd8)]+':\x20'+(_0xd6df91['description']||_0x1d98bc(0xdb))),_0x1d98bc(0xcf),..._0x18a41c['commandBindings'][_0x1d98bc(0xda)](_0x1cce62=>'-\x20'+_0x1cce62['id']+_0x1d98bc(0xd2)+_0x1cce62[_0x1d98bc(0xd5)]),'</INSTRUCTIONS>',''];return await writeFile(_0x31b856,_0x5a8b76[_0x1d98bc(0xc6)]('\x0a'),_0x1d98bc(0xe3)),_0x31b856;}function renderCommandTemplate(_0x114846,_0x51de58,_0x4612f7,_0x8b1058){const _0x386ccb=_0x2eb8;return['#\x20'+_0x51de58+'\x20('+_0x114846+')','',_0x8b1058,'',_0x386ccb(0xe7),_0x386ccb(0xd9)+_0x4612f7,'',_0x386ccb(0xea),'-\x20Change\x20ID',_0x386ccb(0xd0),_0x386ccb(0xe6)][_0x386ccb(0xc6)]('\x0a');}function renderGuide(_0x453a02,_0x4719f9,_0x28950b){const _0x273053=_0x2eb8,_0x53da1d=_0x28950b[_0x273053(0xde)][_0x453a02],_0x203ec2=_0x28950b['commandBindings'][_0x273053(0xda)](_0x4378b9=>'-\x20'+_0x53da1d['slashPattern'][_0x273053(0xe0)](_0x273053(0xc8),_0x4378b9['id'])+_0x273053(0xd2)+_0x4378b9[_0x273053(0xd5)]);return['#\x20'+_0x453a02+'\x20OpenSpec-style\x20setup','',_0x273053(0xe1),..._0x4719f9[_0x273053(0xda)](_0x3c4deb=>'-\x20'+_0x3c4deb['name']+':\x20'+(_0x3c4deb[_0x273053(0xe8)]||'No\x20description')),'',_0x273053(0xca),..._0x203ec2,''][_0x273053(0xc6)]('\x0a');}
1
+ (function(_0x49863d,_0x70edfc){const _0x24f0e6=_0x1e91,_0x3af24b=_0x49863d();while(!![]){try{const _0x431eb9=-parseInt(_0x24f0e6(0x76))/(0x1263+0x1*-0x113+-0x5c5*0x3)*(parseInt(_0x24f0e6(0x70))/(0x202a+0x1bf+0x1*-0x21e7))+-parseInt(_0x24f0e6(0x6d))/(0x1278+-0x142d+0x1b8)*(-parseInt(_0x24f0e6(0x71))/(0xd7*-0x20+-0x1*0xc51+0x1*0x2735))+-parseInt(_0x24f0e6(0x7c))/(-0xd8c+0x12f8+0x567*-0x1)*(-parseInt(_0x24f0e6(0x79))/(0x11bf+-0x161f*0x1+-0x466*-0x1))+parseInt(_0x24f0e6(0x73))/(0x1001*0x2+-0x198e+0x23*-0x2f)*(-parseInt(_0x24f0e6(0x7a))/(-0x1b0+0x1fa3+0x1deb*-0x1))+parseInt(_0x24f0e6(0x80))/(0x42a+0x24bd+-0x28de)+-parseInt(_0x24f0e6(0x6f))/(-0x12a8+-0x1f*0xa2+-0x1328*-0x2)*(parseInt(_0x24f0e6(0x69))/(0x95*0x2b+-0x2*0x7c1+-0x97a))+-parseInt(_0x24f0e6(0x6b))/(0x5e2+-0x6*0x5b2+-0x1f*-0xea);if(_0x431eb9===_0x70edfc)break;else _0x3af24b['push'](_0x3af24b['shift']());}catch(_0xc3bb41){_0x3af24b['push'](_0x3af24b['shift']());}}}(_0x5c70,0x1*-0x506ab+-0x1eb5*-0x26+0xb8e2*0x6));import{writeFile}from'node:fs/promises';function _0x1e91(_0x2715ac,_0x5998ed){_0x2715ac=_0x2715ac-(-0xb*-0x3e+-0xf38+0xcf7);const _0x268bb2=_0x5c70();let _0x408cf9=_0x268bb2[_0x2715ac];return _0x408cf9;}import _0x5914ef from'node:path';import{resolveAgentRoot}from'../config/path.js';import{ensureDir}from'../utils/fs.js';export async function installToolInteractionTemplates(_0x435f3d,_0x49ed9c,_0x1fe416,_0x371707){const _0x441339=_0x1e91,_0x25bc3d=_0x371707[_0x441339(0x77)][_0x49ed9c],_0x51270a=resolveAgentRoot(_0x435f3d,_0x25bc3d[_0x441339(0x75)]),_0x59eb3e=_0x5914ef[_0x441339(0x74)](_0x51270a,_0x25bc3d['commandsDir']);await ensureDir(_0x59eb3e);const _0x4715f9=[];for(const _0x3ade12 of _0x371707['commandBindings']){const _0xb1d665=_0x25bc3d['commandFilePattern']['replace'](_0x441339(0x7d),_0x3ade12['id']),_0x5585dc=_0x5914ef['join'](_0x59eb3e,_0xb1d665);await writeFile(_0x5585dc,renderCommandTemplate(_0x49ed9c,_0x3ade12['id'],_0x3ade12[_0x441339(0x7b)],_0x3ade12[_0x441339(0x72)]),_0x441339(0x6c)),_0x4715f9[_0x441339(0x7f)](_0x5585dc);}return _0x4715f9;}function _0x5c70(){const _0x1e12e4=['699nQJGJy','agents','-\x20skill:\x20','60jGwkCJ','902248slxePf','skill','212200MuQWPD','{id}','##\x20Required\x20output','push','3106503fGSaEv','5425519jGGiVp','-\x20Updated\x20files','2154828ofeUlT','utf8','24onPKJF','##\x20Skill\x20binding','10bGwSAY','302WjKHTi','187436OeADPB','description','7nYcnBh','join','rootDir'];_0x5c70=function(){return _0x1e12e4;};return _0x5c70();}function renderCommandTemplate(_0x5bcfa6,_0x190db8,_0x1b8dc2,_0x13e1f5){const _0x191fe5=_0x1e91;return['#\x20'+_0x190db8+'\x20('+_0x5bcfa6+')','',_0x13e1f5,'',_0x191fe5(0x6e),_0x191fe5(0x78)+_0x1b8dc2,'',_0x191fe5(0x7e),'-\x20Change\x20ID',_0x191fe5(0x6a),'-\x20Validation\x20summary']['join']('\x0a');}
@@ -1 +1 @@
1
- function _0x349c(_0x1abc75,_0x4f31bf){_0x1abc75=_0x1abc75-(-0x98f+0x47*0x19+-0x102*-0x3);const _0x1e76cc=_0x15f7();let _0x454d80=_0x1e76cc[_0x1abc75];return _0x454d80;}function _0x15f7(){const _0x5e9332=['16542fcuFyB','body','106400ZKtjhb','243KgNeyd','15415598efDSlf','30MfIOqR','\x22\x20has\x20empty\x20SKILL.md\x20body.','82512WXgNqp','340EaOLjH','name','Skill\x20name\x20is\x20required.','warning','484siVKgM','description','error','Skill\x20\x22','4699210oGYJIl','\x22\x20is\x20missing\x20frontmatter\x20description.','614YxwJry','463043vQctTK','push','\x22\x20should\x20use\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.'];_0x15f7=function(){return _0x5e9332;};return _0x15f7();}(function(_0x560764,_0x5cbed2){const _0x2e4b45=_0x349c,_0xd7bc7f=_0x560764();while(!![]){try{const _0x7b726c=parseInt(_0x2e4b45(0x79))/(-0x147b+0x14f6+0x2*-0x3d)*(-parseInt(_0x2e4b45(0x69))/(-0x2*0x26a+0x1*0x5a2+-0xcc))+-parseInt(_0x2e4b45(0x6d))/(0xc*-0x7f+-0xf5d+0x38e*0x6)*(parseInt(_0x2e4b45(0x75))/(-0x2d0+0x2*0x6e3+-0x6*0x1d3))+-parseInt(_0x2e4b45(0x6f))/(-0x1e9c*0x1+-0x935+0x27d6)+-parseInt(_0x2e4b45(0x72))/(0xabf*0x1+-0x1061+-0x16a*-0x4)*(-parseInt(_0x2e4b45(0x6a))/(0xcaf*0x1+0x3*0xc1+-0xeeb))+-parseInt(_0x2e4b45(0x74))/(-0x3b*-0x3c+0x2210+-0x2fdc)*(parseInt(_0x2e4b45(0x70))/(-0x13c0+0xd8d+0x72*0xe))+-parseInt(_0x2e4b45(0x67))/(0x1398+-0x1974+-0x97*-0xa)+parseInt(_0x2e4b45(0x71))/(-0xc7a+-0x1b09+0x278e);if(_0x7b726c===_0x5cbed2)break;else _0xd7bc7f['push'](_0xd7bc7f['shift']());}catch(_0x33139b){_0xd7bc7f['push'](_0xd7bc7f['shift']());}}}(_0x15f7,0x81803+-0x64700+0x37373));export function validateManifest(_0x454d80){const _0x975be7=_0x349c,_0x347148=[];return!_0x454d80[_0x975be7(0x76)]&&_0x347148[_0x975be7(0x6b)]({'level':'error','message':_0x975be7(0x77)}),!_0x454d80[_0x975be7(0x7a)]&&_0x347148[_0x975be7(0x6b)]({'level':_0x975be7(0x7b),'message':_0x975be7(0x66)+_0x454d80[_0x975be7(0x76)]+_0x975be7(0x68)}),!_0x454d80[_0x975be7(0x6e)]&&_0x347148[_0x975be7(0x6b)]({'level':_0x975be7(0x78),'message':_0x975be7(0x66)+_0x454d80['name']+_0x975be7(0x73)}),!/^[a-z0-9-]+$/['test'](_0x454d80[_0x975be7(0x76)])&&_0x347148['push']({'level':'warning','message':_0x975be7(0x66)+_0x454d80[_0x975be7(0x76)]+_0x975be7(0x6c)}),_0x347148;}
1
+ function _0x1c5a(_0x38d2b7,_0x7568ae){_0x38d2b7=_0x38d2b7-(-0x8*-0x8b+0x1bce*0x1+-0x1f40);const _0x1a1f5e=_0x5cb0();let _0x3398bf=_0x1a1f5e[_0x38d2b7];return _0x3398bf;}function _0x5cb0(){const _0x38b3f5=['warning','437327WIofVy','\x22\x20has\x20empty\x20SKILL.md\x20body.','10gNiHEX','24vdaowX','4077225COPzMn','description','4528405KsEsTf','Skill\x20\x22','4kMlEWg','99457amdSFb','error','name','test','push','1452345FbNqtT','body','8582862rVXbWQ','2792034zxBcjS','60oCwQCO','\x22\x20is\x20missing\x20frontmatter\x20description.','Skill\x20name\x20is\x20required.'];_0x5cb0=function(){return _0x38b3f5;};return _0x5cb0();}(function(_0x4e83fd,_0x4e9613){const _0x187b49=_0x1c5a,_0x213012=_0x4e83fd();while(!![]){try{const _0xd5e82b=-parseInt(_0x187b49(0xec))/(0x1eb+0x190b+-0x1af5)*(parseInt(_0x187b49(0xfb))/(0x15fc+0x7d*-0x5+-0x683*0x3))+-parseInt(_0x187b49(0xf1))/(0x1700+-0x1e5f*-0x1+0xd57*-0x4)+-parseInt(_0x187b49(0xeb))/(0x1*0xd72+0x25f5+0xa47*-0x5)*(-parseInt(_0x187b49(0xe7))/(0x2e*-0xbb+-0x1b85+0x3d24))+parseInt(_0x187b49(0xf3))/(0x5ca+0x1379*-0x2+0x1*0x212e)+parseInt(_0x187b49(0xe9))/(0x1*-0x89f+-0x3*-0x509+-0x227*0x3)+-parseInt(_0x187b49(0xe6))/(0x50e*0x7+0x1152+-0x34ac)*(parseInt(_0x187b49(0xf4))/(-0x588*-0x1+0x1*0x18da+-0x1e59))+-parseInt(_0x187b49(0xf5))/(-0x181d+-0x63d*-0x2+0x31*0x3d)*(parseInt(_0x187b49(0xf9))/(-0x20fc+-0x160f*0x1+0x3716));if(_0xd5e82b===_0x4e9613)break;else _0x213012['push'](_0x213012['shift']());}catch(_0x183285){_0x213012['push'](_0x213012['shift']());}}}(_0x5cb0,-0xc*0xeec3+0x69d*-0x1cd+0x226d26));export function validateManifest(_0x3398bf){const _0x2fb7eb=_0x1c5a,_0x2eef17=[];return!_0x3398bf[_0x2fb7eb(0xee)]&&_0x2eef17[_0x2fb7eb(0xf0)]({'level':_0x2fb7eb(0xed),'message':_0x2fb7eb(0xf7)}),!_0x3398bf[_0x2fb7eb(0xe8)]&&_0x2eef17['push']({'level':_0x2fb7eb(0xed),'message':_0x2fb7eb(0xea)+_0x3398bf['name']+_0x2fb7eb(0xf6)}),!_0x3398bf[_0x2fb7eb(0xf2)]&&_0x2eef17[_0x2fb7eb(0xf0)]({'level':_0x2fb7eb(0xf8),'message':'Skill\x20\x22'+_0x3398bf[_0x2fb7eb(0xee)]+_0x2fb7eb(0xfa)}),!/^[a-z0-9-]+$/[_0x2fb7eb(0xef)](_0x3398bf[_0x2fb7eb(0xee)])&&_0x2eef17[_0x2fb7eb(0xf0)]({'level':_0x2fb7eb(0xf8),'message':_0x2fb7eb(0xea)+_0x3398bf[_0x2fb7eb(0xee)]+'\x22\x20should\x20use\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.'}),_0x2eef17;}
@@ -1 +1 @@
1
- (function(_0x3539f9,_0x5ad08f){const _0xc76583=_0x312d,_0x571d92=_0x3539f9();while(!![]){try{const _0x5b6174=-parseInt(_0xc76583(0x12f))/(-0x261a+0x1*0x886+0x1d95)+-parseInt(_0xc76583(0x11e))/(0x269e+0x1*0x167b+-0x3d17)*(-parseInt(_0xc76583(0x12a))/(0x64*0x3c+0x1045+-0x2*0x13d9))+-parseInt(_0xc76583(0x12e))/(-0x19ad*-0x1+0x97*-0x39+0x2*0x3fb)+-parseInt(_0xc76583(0x11a))/(-0x108f*-0x2+-0x1862+-0x8b7)+parseInt(_0xc76583(0x11f))/(0x6be*-0x2+-0x87a+-0x2a*-0x86)+-parseInt(_0xc76583(0x12d))/(-0x1*0xda9+0x9*0x26e+-0x82e)*(-parseInt(_0xc76583(0x127))/(0x3*0xb91+-0x14cc+0xddf*-0x1))+-parseInt(_0xc76583(0x121))/(-0x9c9+-0x2350+0x2d22)*(-parseInt(_0xc76583(0x11d))/(0x476+-0x3db+-0x91));if(_0x5b6174===_0x5ad08f)break;else _0x571d92['push'](_0x571d92['shift']());}catch(_0x49424c){_0x571d92['push'](_0x571d92['shift']());}}}(_0x28ec,-0x53ca2+0xd*0xbd93+0x75cba));function _0x312d(_0x4f7e15,_0x35afd8){_0x4f7e15=_0x4f7e15-(-0x253c+0x7*0x1f3+0x18b0);const _0xefa204=_0x28ec();let _0x46bf8c=_0xefa204[_0x4f7e15];return _0x46bf8c;}function _0x28ec(){const _0x485c41=['join','entries','startsWith','8CXHbwh','split','trim','6pICIvc','slice','endsWith','4514223iHYjuj','5391392aASjfS','687826zmVmuY','---\x0a','2640855AuyMQW',':\x20\x22','\x0a---\x0a\x0a','8620KpILyV','892298DSJRqC','23334aIrbVu','replace','18720SgIaEm','map','indexOf'];_0x28ec=function(){return _0x485c41;};return _0x28ec();}export function parseFrontmatter(_0xeeeccd){const _0x595bf6=_0x312d,_0x15bc25=_0xeeeccd[_0x595bf6(0x120)](/^\uFEFF/,'')['replace'](/\r\n/g,'\x0a');if(!_0x15bc25['startsWith'](_0x595bf6(0x119)))return{'attributes':{},'body':_0x15bc25};const _0x2728f1=_0x15bc25[_0x595bf6(0x123)]('\x0a---\x0a',0x51e+-0x2b*-0x3d+0x1*-0xf59);if(_0x2728f1===-(-0x4ca+0x1*-0x236d+0x138*0x21))return{'attributes':{},'body':_0x15bc25};const _0x128ae0=_0x15bc25['slice'](-0x1884+-0x147+0x19cf,_0x2728f1),_0x399e5b=_0x15bc25['slice'](_0x2728f1+(-0x1f6a+0x31*0x90+0x3df*0x1)),_0x16be53={};for(const _0x30ed5e of _0x128ae0[_0x595bf6(0x128)]('\x0a')){const _0x442cf9=_0x30ed5e[_0x595bf6(0x129)]();if(!_0x442cf9||_0x442cf9[_0x595bf6(0x126)]('#'))continue;const _0x4ac1be=_0x442cf9['indexOf'](':');if(_0x4ac1be<=0x1a11+0x1712+-0x3123)continue;const _0x2bc592=_0x442cf9[_0x595bf6(0x12b)](-0x1613+-0x2622+0x3c35,_0x4ac1be)[_0x595bf6(0x129)]();let _0x134254=_0x442cf9[_0x595bf6(0x12b)](_0x4ac1be+(0x2253+-0x21f1+-0x61*0x1))[_0x595bf6(0x129)]();_0x134254=stripQuotes(_0x134254),_0x16be53[_0x2bc592]=_0x134254;}return{'attributes':_0x16be53,'body':_0x399e5b};}export function stringifyFrontmatter(_0x1f7d6c,_0x107af3){const _0x5aba23=_0x312d,_0x1a7def=Object[_0x5aba23(0x125)](_0x1f7d6c)[_0x5aba23(0x122)](([_0x15be05,_0x5dccde])=>{const _0x1e6bad=_0x5aba23,_0x38813c=_0x5dccde['replace'](/"/g,'\x5c\x22');return _0x15be05+_0x1e6bad(0x11b)+_0x38813c+'\x22';});return _0x5aba23(0x119)+_0x1a7def[_0x5aba23(0x124)]('\x0a')+_0x5aba23(0x11c)+_0x107af3['trimEnd']()+'\x0a';}function stripQuotes(_0x3306d8){const _0x22fd75=_0x312d;if(_0x3306d8[_0x22fd75(0x126)]('\x22')&&_0x3306d8[_0x22fd75(0x12c)]('\x22')||_0x3306d8[_0x22fd75(0x126)]('\x27')&&_0x3306d8[_0x22fd75(0x12c)]('\x27'))return _0x3306d8['slice'](0x1b5*-0x14+0x1866+0x5*0x1f3,-(0x3*-0x221+-0x1d1f+0x2383));return _0x3306d8;}
1
+ function _0x4e46(_0x355822,_0x20359f){_0x355822=_0x355822-(-0x82b+0x1*-0xea3+0x173d);const _0x52014c=_0x20ab();let _0x42b501=_0x52014c[_0x355822];return _0x42b501;}(function(_0x3de6f3,_0x10c9ed){const _0x3a0b78=_0x4e46,_0x588865=_0x3de6f3();while(!![]){try{const _0x189210=-parseInt(_0x3a0b78(0x82))/(0x1*-0x8cb+0x257b*-0x1+0x435*0xb)*(parseInt(_0x3a0b78(0x71))/(-0x73c+-0x11f+-0x85d*-0x1))+-parseInt(_0x3a0b78(0x7e))/(-0x3*-0x16e+-0x3*-0xc5f+-0x3*0xdcc)+parseInt(_0x3a0b78(0x79))/(-0x3c4*0x3+0x15*-0xe+0x91*0x16)+-parseInt(_0x3a0b78(0x7b))/(-0x48d+-0x239*-0x7+-0xafd)+-parseInt(_0x3a0b78(0x77))/(0x21df+0x11b*0x2+-0xb5*0x33)*(parseInt(_0x3a0b78(0x78))/(-0x17*0x58+-0x217*0x7+0x5a4*0x4))+parseInt(_0x3a0b78(0x74))/(0x1*0x20ab+0xd*-0x15e+-0xedd)+parseInt(_0x3a0b78(0x75))/(0x1e89+0x359*-0x2+0x22a*-0xb);if(_0x189210===_0x10c9ed)break;else _0x588865['push'](_0x588865['shift']());}catch(_0x1bf7a8){_0x588865['push'](_0x588865['shift']());}}}(_0x20ab,-0x53fc*-0x1+-0x5daa+0x42bda));export function parseFrontmatter(_0x33c4a1){const _0x1d42c7=_0x4e46,_0x465edb=_0x33c4a1['replace'](/^\uFEFF/,'')[_0x1d42c7(0x80)](/\r\n/g,'\x0a');if(!_0x465edb[_0x1d42c7(0x7a)](_0x1d42c7(0x70)))return{'attributes':{},'body':_0x465edb};const _0x5996d4=_0x465edb[_0x1d42c7(0x7c)]('\x0a---\x0a',0x1*-0x2243+0x3fc+0x1e4b);if(_0x5996d4===-(-0x1f71+-0x1e91+0xc67*0x5))return{'attributes':{},'body':_0x465edb};const _0x7f07da=_0x465edb[_0x1d42c7(0x7f)](-0x93*0x10+-0x1b66+0x249a,_0x5996d4),_0x30ad4f=_0x465edb[_0x1d42c7(0x7f)](_0x5996d4+(-0x18db+0x1a18+0x27*-0x8)),_0x194a23={};for(const _0x599dac of _0x7f07da['split']('\x0a')){const _0x539bb5=_0x599dac[_0x1d42c7(0x81)]();if(!_0x539bb5||_0x539bb5['startsWith']('#'))continue;const _0x83f224=_0x539bb5[_0x1d42c7(0x7c)](':');if(_0x83f224<=0x5e7*-0x6+0x161*-0x6+-0x6*-0x748)continue;const _0x39ecba=_0x539bb5[_0x1d42c7(0x7f)](-0xcfa+-0xc*0x338+0x339a,_0x83f224)[_0x1d42c7(0x81)]();let _0x48a203=_0x539bb5[_0x1d42c7(0x7f)](_0x83f224+(0x1a5a*-0x1+-0x1d13+0x376e))[_0x1d42c7(0x81)]();_0x48a203=stripQuotes(_0x48a203),_0x194a23[_0x39ecba]=_0x48a203;}return{'attributes':_0x194a23,'body':_0x30ad4f};}export function stringifyFrontmatter(_0x9509ef,_0x4fa06f){const _0x4b39eb=_0x4e46,_0x695e09=Object[_0x4b39eb(0x72)](_0x9509ef)['map'](([_0x548011,_0x2f8583])=>{const _0xd61263=_0x2f8583['replace'](/"/g,'\x5c\x22');return _0x548011+':\x20\x22'+_0xd61263+'\x22';});return _0x4b39eb(0x70)+_0x695e09[_0x4b39eb(0x6f)]('\x0a')+_0x4b39eb(0x76)+_0x4fa06f[_0x4b39eb(0x7d)]()+'\x0a';}function _0x20ab(){const _0x2c154f=['\x0a---\x0a\x0a','1157154mScjsw','7AoznHX','1878360fcNhIP','startsWith','1488940LKLIQe','indexOf','trimEnd','1161870akgGFY','slice','replace','trim','5lhmAXH','join','---\x0a','158042FquyOI','entries','endsWith','2252856PGSPRy','7134633VlKMWg'];_0x20ab=function(){return _0x2c154f;};return _0x20ab();}function stripQuotes(_0x21b2f6){const _0x35187a=_0x4e46;if(_0x21b2f6[_0x35187a(0x7a)]('\x22')&&_0x21b2f6[_0x35187a(0x73)]('\x22')||_0x21b2f6[_0x35187a(0x7a)]('\x27')&&_0x21b2f6[_0x35187a(0x73)]('\x27'))return _0x21b2f6[_0x35187a(0x7f)](-0xe68+0x247a+0x15*-0x10d,-(-0xe29+0xa*0x3ce+0x17e2*-0x1));return _0x21b2f6;}
package/dist/utils/fs.js CHANGED
@@ -1 +1 @@
1
- (function(_0x10009d,_0x3e2e32){const _0x3fa788=_0x2d93,_0x244326=_0x10009d();while(!![]){try{const _0x2cd429=parseInt(_0x3fa788(0xb9))/(-0x19c9+0x1121+0x1*0x8a9)+parseInt(_0x3fa788(0xae))/(-0x155e+0x1686+0x1*-0x126)+-parseInt(_0x3fa788(0xb2))/(0x18d*-0x1+0x1704+-0x1574)+-parseInt(_0x3fa788(0xb6))/(0x1d56*-0x1+0x5ab*0x1+0x17af)+parseInt(_0x3fa788(0xb1))/(-0x2e5+0x2*-0x11f9+0x26dc)+-parseInt(_0x3fa788(0xb5))/(0x29e*0x1+-0x102e+0xd96)*(parseInt(_0x3fa788(0xb7))/(0x983*-0x1+0x2*0x441+-0x84*-0x2))+parseInt(_0x3fa788(0xb3))/(0x242a+0x12db+-0x36fd)*(parseInt(_0x3fa788(0xb4))/(0xa*-0x19+0x19b6*-0x1+0x1ab9));if(_0x2cd429===_0x3e2e32)break;else _0x244326['push'](_0x244326['shift']());}catch(_0x11db59){_0x244326['push'](_0x244326['shift']());}}}(_0x57a3,0xd7c5+0x994*0x8b+0x67*-0x35f));import{mkdir,readdir,rm,stat,copyFile}from'node:fs/promises';function _0x2d93(_0x9e7978,_0x4e2cf5){_0x9e7978=_0x9e7978-(-0x1*-0x1bfc+-0x12b9*0x1+0x1*-0x897);const _0x18c282=_0x57a3();let _0x15a66f=_0x18c282[_0x9e7978];return _0x15a66f;}import _0x18c282 from'node:path';function _0x57a3(){const _0xf01aa7=['name','697218lTwORA','map','filter','2131095EInSdl','620664VsZIcV','656gEJmeH','38601Sjbflj','1206qflTBx','1423416BPkOaa','16149galUJw','isDirectory','207099hUrgbb','join'];_0x57a3=function(){return _0xf01aa7;};return _0x57a3();}export async function ensureDir(_0x15a66f){await mkdir(_0x15a66f,{'recursive':!![]});}export async function pathExists(_0x5d6470){try{return await stat(_0x5d6470),!![];}catch{return![];}}export async function emptyDir(_0xc2d6fa){await rm(_0xc2d6fa,{'recursive':!![],'force':!![]}),await mkdir(_0xc2d6fa,{'recursive':!![]});}export async function copyDir(_0x4f4d23,_0x2b7060){const _0x4b2e9b=_0x2d93;await ensureDir(_0x2b7060);const _0x555b51=await readdir(_0x4f4d23,{'withFileTypes':!![]});for(const _0x238ee7 of _0x555b51){const _0x2e7ca8=_0x18c282[_0x4b2e9b(0xac)](_0x4f4d23,_0x238ee7[_0x4b2e9b(0xad)]),_0x40c57c=_0x18c282['join'](_0x2b7060,_0x238ee7[_0x4b2e9b(0xad)]);if(_0x238ee7['isDirectory']()){await copyDir(_0x2e7ca8,_0x40c57c);continue;}await copyFile(_0x2e7ca8,_0x40c57c);}}export async function listDirs(_0x4c0094){const _0x3ed7a9=_0x2d93;if(!await pathExists(_0x4c0094))return[];const _0x4d2d29=await readdir(_0x4c0094,{'withFileTypes':!![]});return _0x4d2d29[_0x3ed7a9(0xb0)](_0x69f15e=>_0x69f15e[_0x3ed7a9(0xb8)]())[_0x3ed7a9(0xaf)](_0x12ab61=>_0x12ab61[_0x3ed7a9(0xad)]);}
1
+ (function(_0x6aa5d2,_0x45c489){const _0x41ada9=_0x567a,_0x37ea2a=_0x6aa5d2();while(!![]){try{const _0x467499=parseInt(_0x41ada9(0x83))/(0x6a0+-0x1e2d+0x178e)*(-parseInt(_0x41ada9(0x89))/(-0xcf9*-0x1+-0x1f5b+0x1264))+-parseInt(_0x41ada9(0x82))/(0x419+0x1*0xf9e+-0x34*0x61)+-parseInt(_0x41ada9(0x87))/(0x1*0x841+-0x1*0x1b0f+0x12d2)+-parseInt(_0x41ada9(0x8d))/(-0x20f6+-0xbc2+0x2cbd)+parseInt(_0x41ada9(0x86))/(-0x1*-0xc68+-0x1*0xa2b+-0x237)*(parseInt(_0x41ada9(0x85))/(0x291*0x6+-0x123b*-0x1+0x1fa*-0x11))+-parseInt(_0x41ada9(0x8c))/(0x2*0x4a5+-0xb*-0x34f+-0x2da7)+parseInt(_0x41ada9(0x8a))/(-0x1*-0xbe4+-0x829+-0x3b2);if(_0x467499===_0x45c489)break;else _0x37ea2a['push'](_0x37ea2a['shift']());}catch(_0x4efe05){_0x37ea2a['push'](_0x37ea2a['shift']());}}}(_0x3b16,0x343d*0x5+0x2*-0x5f8e2+0x1*0x1456c0));function _0x3b16(){const _0x2811a9=['896642asfNhG','29790198kCyLNc','name','300560kcBXvK','3837855UvMiVb','filter','2039448hDSHMw','1AlQytN','isDirectory','245kjudjB','14646SZLZvw','3380696TzhOqt','join'];_0x3b16=function(){return _0x2811a9;};return _0x3b16();}import{mkdir,readdir,rm,stat,copyFile}from'node:fs/promises';import _0x587c03 from'node:path';function _0x567a(_0x22bd6a,_0x5229b3){_0x22bd6a=_0x22bd6a-(0x238d*0x1+0x5*0x28d+-0x2fcc);const _0x15cd06=_0x3b16();let _0x587c03=_0x15cd06[_0x22bd6a];return _0x587c03;}export async function ensureDir(_0x15b30b){await mkdir(_0x15b30b,{'recursive':!![]});}export async function pathExists(_0x166fe4){try{return await stat(_0x166fe4),!![];}catch{return![];}}export async function emptyDir(_0x545df4){await rm(_0x545df4,{'recursive':!![],'force':!![]}),await mkdir(_0x545df4,{'recursive':!![]});}export async function copyDir(_0x2f3b06,_0x112e23){const _0x5460a4=_0x567a;await ensureDir(_0x112e23);const _0x25f88d=await readdir(_0x2f3b06,{'withFileTypes':!![]});for(const _0x515b68 of _0x25f88d){const _0x48d592=_0x587c03[_0x5460a4(0x88)](_0x2f3b06,_0x515b68[_0x5460a4(0x8b)]),_0x553dd1=_0x587c03[_0x5460a4(0x88)](_0x112e23,_0x515b68[_0x5460a4(0x8b)]);if(_0x515b68[_0x5460a4(0x84)]()){await copyDir(_0x48d592,_0x553dd1);continue;}await copyFile(_0x48d592,_0x553dd1);}}export async function listDirs(_0x23e641){const _0x3f818d=_0x567a;if(!await pathExists(_0x23e641))return[];const _0x281a00=await readdir(_0x23e641,{'withFileTypes':!![]});return _0x281a00[_0x3f818d(0x8e)](_0xbaa4d3=>_0xbaa4d3[_0x3f818d(0x84)]())['map'](_0x4557bf=>_0x4557bf['name']);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdspec",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "author": "liyanwei",
5
5
  "description": "CDSpec CLI for skill sync and task split/archive workflow",
6
6
  "type": "module",
@@ -10,8 +10,7 @@
10
10
  "files": [
11
11
  "dist",
12
12
  "templates",
13
- "README.md",
14
- "cdspec.config.yaml"
13
+ "README.md"
15
14
  ],
16
15
  "scripts": {
17
16
  "build": "node scripts/build.mjs",
@@ -26,6 +25,7 @@
26
25
  },
27
26
  "dependencies": {
28
27
  "@inquirer/checkbox": "^4.3.2",
28
+ "@inquirer/select": "^4.3.2",
29
29
  "commander": "^14.0.1",
30
30
  "yaml": "^2.8.1"
31
31
  },
@@ -1,34 +0,0 @@
1
- commandBindings:
2
- - id: propose
3
- skill: openspec-core
4
- description: Create a change proposal with scope and impacted specs.
5
- - id: explore
6
- skill: openspec-core
7
- description: Analyze existing specs and produce planned deltas.
8
- - id: apply
9
- skill: openspec-core
10
- description: Implement approved tasks and keep spec updates in sync.
11
- - id: archive
12
- skill: openspec-core
13
- description: Archive completed changes and update baseline specs.
14
-
15
- agents:
16
- codex:
17
- rootDir: ~/.codex
18
- commandsDir: prompts
19
- commandFilePattern: opsx-{id}.md
20
- slashPattern: /opsx-{id}
21
- guideFile: AGENTS.md
22
- claudecode:
23
- rootDir: .claude
24
- commandsDir: commands/opsx
25
- commandFilePattern: "{id}.md"
26
- slashPattern: /opsx:{id}
27
- guideFile: CLAUDE.md
28
- guideAtProjectRoot: true
29
- iflow:
30
- rootDir: .iflow
31
- commandsDir: commands
32
- commandFilePattern: opsx-{id}.md
33
- slashPattern: /opsx-{id}
34
- guideFile: IFLOW.md