gl-life-claude-zen 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/hooks/auto-format.js +1 -1
- package/dist/hooks/check-pending-reviews.js +1 -1
- package/dist/hooks/complete-task.js +1 -1
- package/dist/hooks/detect-pending-reviews.js +1 -1
- package/dist/hooks/enforce-hard-requirements.js +1 -1
- package/dist/hooks/enforce-migration-workflow.js +1 -1
- package/dist/hooks/enforce-structured-development.js +1 -1
- package/dist/hooks/enforce-test-pyramid.js +1 -1
- package/dist/hooks/init-task-tracker.js +1 -1
- package/dist/hooks/performance-cache.js +1 -1
- package/dist/hooks/prevent-read-bypass.js +1 -1
- package/dist/hooks/start-task.js +1 -1
- package/dist/hooks/task-status.js +1 -1
- package/dist/hooks/validate-component-contract.js +1 -1
- package/dist/hooks/validate-database-changes.js +1 -1
- package/dist/hooks/validate-e2e-coverage.js +1 -1
- package/dist/hooks/validate-git-workflow.js +1 -1
- package/dist/hooks/validate-integration-site.js +1 -1
- package/dist/hooks/validate-migration-impact.js +1 -1
- package/dist/hooks/validate-task-completion.js +1 -1
- package/dist/hooks/validate-test-quality.js +1 -1
- package/dist/hooks/validate-test-results.js +1 -1
- package/dist/hooks/validate-ui-integration.js +1 -1
- package/dist/hooks/validate-ui-runtime.js +1 -1
- package/dist/hooks/validate-ui-syntax.js +1 -1
- package/dist/hooks/validate-ui-visual-native.js +1 -1
- package/dist/hooks/validate-ui-visual.js +1 -1
- package/dist/hooks/validate-visual-regression.js +1 -1
- package/dist/scripts/help.js +1 -1
- package/dist/scripts/plan-amend.js +1 -1
- package/dist/scripts/plan-create.js +1 -1
- package/dist/scripts/plan-generate.js +1 -1
- package/dist/scripts/plan-help.js +1 -1
- package/dist/scripts/plan-init.js +1 -1
- package/dist/scripts/plan-manager.js +1 -1
- package/dist/scripts/pre-publish-checklist.js +1 -1
- package/dist/scripts/production-test.js +1 -1
- package/dist/scripts/profile-hooks.js +1 -1
- package/dist/scripts/setup-git-hooks.js +1 -1
- package/dist/scripts/task-done.js +1 -1
- package/dist/scripts/task-merge.js +1 -1
- package/dist/scripts/task-next.js +1 -1
- package/dist/scripts/task-start.js +1 -1
- package/dist/scripts/task-status.js +1 -1
- package/dist/scripts/verify-hooks.js +1 -1
- package/lib/init.js +52 -0
- package/package.json +1 -1
- package/templates/.claude/CLAUDE.md +23 -22
- package/templates/.claude/ONBOARDING.md +712 -0
- package/templates/.claude/settings.json +2 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
var _0x2dfcf7=_0x32ad;(function(_0x5bdbb7,_0x43a7b6){var _0x49c266=_0x32ad,_0x407be6=_0x5bdbb7();while(!![]){try{var _0x538fcc=-parseInt(_0x49c266(0x1cf))/0x1+parseInt(_0x49c266(0x1a8))/0x2*(parseInt(_0x49c266(0x1ab))/0x3)+parseInt(_0x49c266(0x1c4))/0x4+-parseInt(_0x49c266(0x1cb))/0x5+-parseInt(_0x49c266(0x1b8))/0x6*(-parseInt(_0x49c266(0x1b3))/0x7)+-parseInt(_0x49c266(0x1a5))/0x8+parseInt(_0x49c266(0x1bb))/0x9;if(_0x538fcc===_0x43a7b6)break;else _0x407be6['push'](_0x407be6['shift']());}catch(_0xb69b82){_0x407be6['push'](_0x407be6['shift']());}}}(_0x3eff,0xec755));var _0x53761c=(function(){var _0x1da42c=_0x32ad,_0x21ab2b={'YYhye':function(_0x187155,_0x49d38e){return _0x187155!==_0x49d38e;},'EocuH':'aJPoT','VjIPB':function(_0x1fc662,_0x391f5d){return _0x1fc662<_0x391f5d;},'UzpNp':function(_0xe680aa,_0x34b542){return _0xe680aa+_0x34b542;},'fAcAz':_0x1da42c(0x1a1),'xwXye':function(_0x523dd6,_0x17de1b,_0x47676c){return _0x523dd6(_0x17de1b,_0x47676c);},'uwQRh':_0x1da42c(0x1d2),'TMXxy':function(_0x1d425c,_0x5f4d74){return _0x1d425c!==_0x5f4d74;},'avrVA':_0x1da42c(0x1cd)},_0x16169f=!![];return function(_0x4649fe,_0x10110a){var _0x1e0209=_0x1da42c,_0x405a1e={'knwGS':function(_0x4f8d13,_0x5dcb08,_0x4b783a){var _0xf8c9c8=_0x32ad;return _0x21ab2b[_0xf8c9c8(0x1cc)](_0x4f8d13,_0x5dcb08,_0x4b783a);},'qyBWF':'\x20\x20-\x20Check\x20status:\x20npm\x20run\x20task:status','tIwOl':_0x21ab2b[_0x1e0209(0x1c7)]};if(_0x21ab2b[_0x1e0209(0x1b1)](_0x21ab2b['avrVA'],_0x1e0209(0x1b2))){var _0x3cb3ec=_0x16169f?function(){var _0x356834=_0x1e0209;if(_0x10110a){if(_0x21ab2b['YYhye'](_0x21ab2b['EocuH'],_0x356834(0x1c0))){var _0x43076b={};_0x43076b[_0x356834(0x1bf)]=_0x356834(0x1c9),(_0x405a1e['knwGS'](_0x3b6737,_0x356834(0x1ca)+_0x1d3dcd+'\x22\x20'+_0x40e48d,_0x43076b),_0x482552['log'](_0x356834(0x1d4)+_0x2592b9+'\x20marked\x20as\x20completed!'),_0x12018c['log'](_0x356834(0x1ae)),_0x1be435[_0x356834(0x1b7)](_0x405a1e[_0x356834(0x1c8)]),_0x88f47b[_0x356834(0x1b7)](_0x405a1e[_0x356834(0x1c3)]));}else{var _0x7e3232=_0x10110a[_0x356834(0x1bd)](_0x4649fe,arguments);return _0x10110a=null,_0x7e3232;}}}:function(){};return _0x16169f=![],_0x3cb3ec;}else{if(_0x21ab2b['VjIPB'](typeof _0x197f85,'u'))return _0x2a7984[_0x1e0209(0x1bd)](this,arguments);throw _0x594bd2(_0x21ab2b[_0x1e0209(0x1aa)](_0x1e0209(0x1a4),_0x48b46a)+_0x21ab2b['fAcAz']);}};}()),_0x39e104=_0x53761c(this,function(){var _0x4c13e3=_0x32ad,_0x741f4e={};_0x741f4e[_0x4c13e3(0x1ad)]=_0x4c13e3(0x1b4);var _0x355846=_0x741f4e;return _0x39e104[_0x4c13e3(0x1d7)]()['search'](_0x355846[_0x4c13e3(0x1ad)])[_0x4c13e3(0x1d7)]()[_0x4c13e3(0x1b0)](_0x39e104)[_0x4c13e3(0x1a6)](_0x355846[_0x4c13e3(0x1ad)]);});function _0x32ad(_0x140d80,_0x67b02c){_0x140d80=_0x140d80-0x1a0;var _0x27e36f=_0x3eff();var _0x39e104=_0x27e36f[_0x140d80];return _0x39e104;}_0x39e104();function _0x3eff(){var _0xfbea67=['TMXxy','JSoSv','462WKbOUt','(((.+)+)+)+$','Hook\x20not\x20found:\x20','.\x20Checked:\x0a\x20\x20-\x20','log','166758NyWwoP','\x0a❌\x20Failed\x20to\x20complete\x20task\x20','kbxqI','9394749nXxXBp','afZuY','apply','complete-task.js','stdio','aJPoT','✅\x20Completing\x20task:\x20','huXeE','tIwOl','1346768XACkjH','exit','existsSync','uwQRh','qyBWF','inherit','node\x20\x22','9274690UllTxl','xwXye','RRaQG','argv','771613pKoLSr','lrNMh','mWUnx','\x20\x20-\x20Start\x20next\x20task:\x20npm\x20run\x20task:start\x20TASK-XXX','.claude','\x0a🎉\x20Task\x20','oDfyp','\x20\x20\x20Or:\x20npm\x20run\x20task:done\x20TASK-001','toString','\x20marked\x20as\x20completed!','\x22\x20is\x20not\x20supported','\x0a\x20\x20-\x20','\x20\x20-\x20Check\x20status:\x20npm\x20run\x20task:status','Dynamic\x20require\x20of\x20\x22','9174496IWOJmg','search','join','610802QayOXL','hooks','UzpNp','15osvTJR','error','UQAwB','\x0aNext\x20steps:','child_process','constructor'];_0x3eff=function(){return _0xfbea67;};return _0x3eff();}var r=(_0x1a0039=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x1a0039,{'get':(_0x5aaec5,_0x421274)=>(typeof require<'u'?require:_0x5aaec5)[_0x421274]}):_0x1a0039)(function(_0x20c85c){var _0x2af804=_0x32ad,_0x578a1d={'oDfyp':function(_0x23a810,_0x1b51e3){return _0x23a810<_0x1b51e3;},'kbxqI':function(_0x34d1ed,_0x2a5028){return _0x34d1ed(_0x2a5028);},'huXeE':function(_0x296a0f,_0x1574d8){return _0x296a0f+_0x1574d8;},'lrNMh':_0x2af804(0x1a4),'ZJPCG':_0x2af804(0x1a1)};if(_0x578a1d[_0x2af804(0x1d5)](typeof require,'u'))return require[_0x2af804(0x1bd)](this,arguments);throw _0x578a1d[_0x2af804(0x1ba)](Error,_0x578a1d[_0x2af804(0x1c2)](_0x578a1d[_0x2af804(0x1d0)]+_0x20c85c,_0x578a1d['ZJPCG']));}),{execSync:a}=r(_0x2dfcf7(0x1af)),t=r('path'),c=r('fs'),n=process[_0x2dfcf7(0x1ce)][0x2];n||(console[_0x2dfcf7(0x1ac)]('❌\x20Error:\x20Task\x20ID\x20is\x20required'),console[_0x2dfcf7(0x1ac)]('\x0aUsage:\x20node\x20scripts/task-done.js\x20TASK-001'),console[_0x2dfcf7(0x1ac)](_0x2dfcf7(0x1d6)),process[_0x2dfcf7(0x1c5)](0x1));var i=_0x5876fd=>{var _0x2c7ac7=_0x2dfcf7,_0x310e27={};_0x310e27['afZuY']=_0x2c7ac7(0x1a9),_0x310e27[_0x2c7ac7(0x1d1)]=_0x2c7ac7(0x1d3);var _0x6f8aa5=_0x310e27;let _0x2545ce=t[_0x2c7ac7(0x1a7)](__dirname,'..',_0x6f8aa5['afZuY'],_0x5876fd);if(c[_0x2c7ac7(0x1c6)](_0x2545ce))return _0x2545ce;let _0x194c72=t[_0x2c7ac7(0x1a7)](__dirname,'..',_0x6f8aa5[_0x2c7ac7(0x1d1)],_0x6f8aa5[_0x2c7ac7(0x1bc)],_0x5876fd);if(c[_0x2c7ac7(0x1c6)](_0x194c72))return _0x194c72;throw new Error(_0x2c7ac7(0x1b5)+_0x5876fd+_0x2c7ac7(0x1b6)+_0x2545ce+_0x2c7ac7(0x1a2)+_0x194c72);},l=i(_0x2dfcf7(0x1be));console[_0x2dfcf7(0x1b7)](_0x2dfcf7(0x1c1)+n+'\x0a');try{var _0x2551fa={};_0x2551fa[_0x2dfcf7(0x1bf)]=_0x2dfcf7(0x1c9),(a(_0x2dfcf7(0x1ca)+l+'\x22\x20'+n,_0x2551fa),console[_0x2dfcf7(0x1b7)]('\x0a🎉\x20Task\x20'+n+_0x2dfcf7(0x1a0)),console['log'](_0x2dfcf7(0x1ae)),console[_0x2dfcf7(0x1b7)](_0x2dfcf7(0x1a3)),console[_0x2dfcf7(0x1b7)](_0x2dfcf7(0x1d2)));}catch{console[_0x2dfcf7(0x1ac)](_0x2dfcf7(0x1b9)+n),process[_0x2dfcf7(0x1c5)](0x1);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x516890=_0x2cc3;(function(_0x2359f8,_0x5925d2){const _0x2df63d=_0x2cc3,_0x16d438=_0x2359f8();while(!![]){try{const _0x426cdb=-parseInt(_0x2df63d(0x105))/0x1*(parseInt(_0x2df63d(0xf2))/0x2)+-parseInt(_0x2df63d(0x13f))/0x3*(parseInt(_0x2df63d(0x134))/0x4)+parseInt(_0x2df63d(0x13e))/0x5*(-parseInt(_0x2df63d(0xfa))/0x6)+parseInt(_0x2df63d(0x129))/0x7*(parseInt(_0x2df63d(0x11f))/0x8)+parseInt(_0x2df63d(0x132))/0x9+parseInt(_0x2df63d(0x10e))/0xa*(-parseInt(_0x2df63d(0xc4))/0xb)+parseInt(_0x2df63d(0x147))/0xc;if(_0x426cdb===_0x5925d2)break;else _0x16d438['push'](_0x16d438['shift']());}catch(_0x19c42a){_0x16d438['push'](_0x16d438['shift']());}}}(_0x3a37,0xbb198));const _0x438048=(function(){const _0x16550d=_0x2cc3,_0x535b63={'dApFX':function(_0x264c81,_0x379d12){return _0x264c81!==_0x379d12;},'hmdPq':_0x16550d(0x116),'cSaJQ':_0x16550d(0x137),'ncGwj':'Obayh','BUzmI':function(_0x58a13c,_0x468a3d,_0x5240d4){return _0x58a13c(_0x468a3d,_0x5240d4);},'hnLIz':'inherit'};let _0x7abc8c=!![];return function(_0x23397f,_0x45cb2f){const _0x22756e={'ZGizM':function(_0x2cc251,_0x423ad3,_0xd96dd7){const _0x2e2621=_0x2cc3;return _0x535b63[_0x2e2621(0x114)](_0x2cc251,_0x423ad3,_0xd96dd7);},'DBLWl':_0x535b63['hnLIz']},_0x2c6081=_0x7abc8c?function(){const _0x59fa0a=_0x2cc3;if(_0x535b63[_0x59fa0a(0xec)](_0x535b63['hmdPq'],_0x59fa0a(0x116)))_0x4a4aed['log']('\x20\x20✅\x20'+_0xb6376c['id']+':\x20'+_0x448e3c[_0x59fa0a(0xf5)]);else{if(_0x45cb2f){if(_0x535b63[_0x59fa0a(0x11e)]===_0x535b63[_0x59fa0a(0x102)])_0x22756e[_0x59fa0a(0x119)](_0x1f3e1e,_0x59fa0a(0x13c)+_0x1e026e,{'stdio':_0x22756e[_0x59fa0a(0x133)]}),_0x3354ba[_0x59fa0a(0x10c)](_0x59fa0a(0x13d));else{const _0x22947a=_0x45cb2f[_0x59fa0a(0x12d)](_0x23397f,arguments);return _0x45cb2f=null,_0x22947a;}}}}:function(){};return _0x7abc8c=![],_0x2c6081;};}()),_0x5e60b3=_0x438048(this,function(){const _0x10ee3c=_0x2cc3,_0x16a855={};_0x16a855[_0x10ee3c(0x121)]=_0x10ee3c(0x143);const _0x43567e=_0x16a855;return _0x5e60b3[_0x10ee3c(0x13b)]()[_0x10ee3c(0x123)](_0x43567e[_0x10ee3c(0x121)])[_0x10ee3c(0x13b)]()[_0x10ee3c(0xda)](_0x5e60b3)[_0x10ee3c(0x123)](_0x10ee3c(0x143));});_0x5e60b3();var u=(_0x33965f=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x33965f,{'get':(_0x32e7da,_0x18f223)=>(typeof require<'u'?require:_0x32e7da)[_0x18f223]}):_0x33965f)(function(_0x376667){const _0x515056=_0x2cc3,_0x5ad9bb={};_0x5ad9bb[_0x515056(0x128)]=function(_0x5cd691,_0x4703cb){return _0x5cd691<_0x4703cb;},_0x5ad9bb[_0x515056(0xd5)]=function(_0x16c0f7,_0x1dbc55){return _0x16c0f7+_0x1dbc55;},_0x5ad9bb['ZhPTc']=function(_0xb26856,_0x4eeb51){return _0xb26856+_0x4eeb51;},_0x5ad9bb[_0x515056(0x13a)]='Dynamic\x20require\x20of\x20\x22';const _0x10cd98=_0x5ad9bb;if(_0x10cd98['FJron'](typeof require,'u'))return require[_0x515056(0x12d)](this,arguments);throw Error(_0x10cd98[_0x515056(0xd5)](_0x10cd98[_0x515056(0x107)](_0x10cd98['SnkGl'],_0x376667),_0x515056(0xeb)));}),{execSync:s}=u(_0x516890(0xc5)),c=u('fs'),g=u(_0x516890(0xdd)),l=process[_0x516890(0x108)][_0x516890(0xff)](0x2),p='.claude/ACTIVE-PLAN';c[_0x516890(0xd7)](p)||(console[_0x516890(0xe1)](_0x516890(0xfb)),console[_0x516890(0xe1)](_0x516890(0xf8)),process[_0x516890(0x144)](0x1));var f=c['readFileSync'](p,'utf8')[_0x516890(0xf7)](),h=g[_0x516890(0xc1)](_0x516890(0x103),f),R=g['join'](h,_0x516890(0x138));c[_0x516890(0xd7)](R)||(console['error'](_0x516890(0x117)),console['error'](_0x516890(0x136)+f),process[_0x516890(0x144)](0x1));var m=JSON[_0x516890(0xd6)](c[_0x516890(0xe4)](R,'utf8')),d=_0x516890(0x130),r=null;l[0x0]===_0x516890(0x125)?(d=_0x516890(0xed),r=l[0x1],r||(console['error'](_0x516890(0x140)),console['error'](_0x516890(0xde)),process[_0x516890(0x144)](0x1))):(r=l[0x0],r||(console[_0x516890(0xe1)](_0x516890(0x110)),console[_0x516890(0xe1)](_0x516890(0x11c)),console[_0x516890(0xe1)](_0x516890(0xe9)),process[_0x516890(0x144)](0x1))),console[_0x516890(0x10c)]('\x0a🔀\x20Merge\x20to\x20Main:\x20'+(d===_0x516890(0xed)?_0x516890(0x122):_0x516890(0xce))+'\x20'+r+'\x0a');var i=[];if(d===_0x516890(0x130)){m['taskFiles'][_0x516890(0x10b)](_0x43c448=>_0x43c448['id']===r)||(console[_0x516890(0xe1)](_0x516890(0x135)+r+_0x516890(0xe2)),process[_0x516890(0x144)](0x1));let n=g[_0x516890(0xc1)](h,_0x516890(0xe3),r+_0x516890(0x109));c['existsSync'](n)||(console[_0x516890(0xe1)](_0x516890(0xdc)+n),process[_0x516890(0x144)](0x1));let o=JSON[_0x516890(0xd6)](c['readFileSync'](n,_0x516890(0xf1)));o['status']!==_0x516890(0xea)&&(console[_0x516890(0xe1)](_0x516890(0x135)+r+_0x516890(0xcd)+o['status']+')'),console['error'](_0x516890(0xf3)+r),process['exit'](0x1)),i['push'](o);}else{let e=m['taskFiles']['map'](_0x22e9f7=>{const _0x23984b=_0x516890,_0x2cafc5={};_0x2cafc5[_0x23984b(0xc2)]=_0x23984b(0xe3),_0x2cafc5[_0x23984b(0x124)]=_0x23984b(0xf1);const _0x1c6bf1=_0x2cafc5;let _0x9d12d8=g[_0x23984b(0xc1)](h,_0x1c6bf1[_0x23984b(0xc2)],_0x22e9f7['id']+_0x23984b(0x109));return c[_0x23984b(0xd7)](_0x9d12d8)?JSON[_0x23984b(0xd6)](c['readFileSync'](_0x9d12d8,_0x1c6bf1[_0x23984b(0x124)])):null;})[_0x516890(0x141)](_0x1dd770=>_0x1dd770!==null&&_0x1dd770['phase']===r);e[_0x516890(0xf9)]===0x0&&(console[_0x516890(0xe1)](_0x516890(0xd8)+r),process[_0x516890(0x144)](0x1));let n=e[_0x516890(0x141)](_0x1c2ca2=>_0x1c2ca2['status']!==_0x516890(0xea));n[_0x516890(0xf9)]>0x0&&(console['error'](_0x516890(0x145)+r+_0x516890(0xdf)),n[_0x516890(0xc8)](_0x2ac51=>{const _0x41064b=_0x516890;console[_0x41064b(0xe1)]('\x20\x20'+_0x2ac51['id']+':\x20'+_0x2ac51['title']+'\x20('+_0x2ac51[_0x41064b(0xc9)]+')');}),console['error']('\x0aComplete\x20all\x20tasks\x20in\x20phase\x20before\x20merging.\x0a'),process[_0x516890(0x144)](0x1)),i=e['filter'](_0xefe0cd=>_0xefe0cd[_0x516890(0xc9)]===_0x516890(0xea));}function _0x2cc3(_0x1b6c4b,_0xd4c6){_0x1b6c4b=_0x1b6c4b-0xbf;const _0x1e65ab=_0x3a37();let _0x5e60b3=_0x1e65ab[_0x1b6c4b];return _0x5e60b3;}console[_0x516890(0x10c)](_0x516890(0xd3)+i['length']+'\x20completed\x20task(s)\x20to\x20merge:\x0a'),i[_0x516890(0xc8)](_0x1c7e16=>{const _0x4be7fc=_0x516890;console[_0x4be7fc(0x10c)]('\x20\x20✅\x20'+_0x1c7e16['id']+':\x20'+_0x1c7e16[_0x4be7fc(0xf5)]);}),console[_0x516890(0x10c)]('');try{const _0x2799e7={};_0x2799e7[_0x516890(0xbf)]=_0x516890(0xf1);let e=s('git\x20branch\x20--show-current',_0x2799e7)[_0x516890(0xf7)]();(e===_0x516890(0x113)||e===_0x516890(0xf6))&&(console[_0x516890(0xe1)](_0x516890(0x104)),console[_0x516890(0xe1)](_0x516890(0x142)),process[_0x516890(0x144)](0x1)),console[_0x516890(0x10c)](_0x516890(0xc3)+e+'\x0a');}catch{console[_0x516890(0xe1)](_0x516890(0x12a)),console[_0x516890(0xe1)](_0x516890(0x12f)),process[_0x516890(0x144)](0x1);}function _0x3a37(){const _0x2c06e4=['title','master','trim','Set\x20active\x20plan\x20first:\x20npm\x20run\x20plan:manager\x0a','length','399090fhDNHh','\x0a❌\x20ERROR:\x20No\x20active\x20plan\x20found','git\x20branch','Uncommitted\x20files:','\x20not\x20found\x20(may\x20not\x20have\x20been\x20pushed)','slice','\x0aYou\x20are\x20now\x20on\x20','\x0a✅\x20MERGE\x20COMPLETE!\x0a','ncGwj','.claude/plans','❌\x20ERROR:\x20Already\x20on\x20main\x20branch','544076LtDRxZ','\x20not\x20found,\x20skipping','ZhPTc','argv','.json','inherit','find','log','1.\x20Fetching\x20latest\x20changes\x20from\x20remote...','40890vQyRNr','⚠️\x20\x20WARNING:\x20Could\x20not\x20fetch\x20from\x20remote\x20(continuing\x20anyway)','\x0a❌\x20ERROR:\x20Task\x20ID\x20required','⚠️\x20\x20WARNING:\x20Could\x20not\x20detect\x20main\x20branch,\x20using\x20\x22main\x22\x0a','\x20\x20\x20⚠️\x20\x20WARNING:\x20Branch\x20','main','BUzmI','6.\x20Cleaning\x20up\x20merged\x20branches...\x0a','zLgMx','\x0a❌\x20ERROR:\x20Task\x20tracker\x20not\x20found','\x20-m\x20\x22Merge\x20','ZGizM','\x20branch.','\x0a❌\x20ERROR:\x20Could\x20not\x20push\x20to\x20remote','Usage:\x20npm\x20run\x20task:merge\x20TASK-001','\x20\x204.\x20Continue\x20with:\x20npm\x20run\x20task:merge\x20','cSaJQ','32TmOuVj','To\x20start\x20next\x20task:\x20npm\x20run\x20task:start\x20TASK-XXX\x0a','vlfAF','Phase','search','vpTrQ','--phase','git\x20merge\x20--no-ff\x20','replace','FJron','1680441XztWqt','❌\x20ERROR:\x20Could\x20not\x20get\x20current\x20branch','pipe','git\x20branch\x20-a','apply','\x20\x20\x20🗑️\x20\x20Deleted\x20remote\x20branch:\x20','Are\x20you\x20in\x20a\x20git\x20repository?\x0a','task','\x0a4.\x20Merging\x20task\x20branch(es)...\x0a','5223645zSwHGK','DBLWl','97784hvLmXg','❌\x20ERROR:\x20Task\x20','Plan:\x20','UuunF','TASK-TRACKER.json','task/','SnkGl','toString','git\x20push\x20origin\x20','\x0a✅\x20Successfully\x20pushed\x20to\x20remote\x0a','115UvFxUU','96eoZSlz','\x0a❌\x20ERROR:\x20Phase\x20name\x20required','filter','Checkout\x20a\x20task\x20branch\x20first\x0a','(((.+)+)+)+$','exit','❌\x20ERROR:\x20Phase\x20','toLowerCase','40981788KZlhts','encoding','includes','join','ViAwt','Current\x20branch:\x20','2123BACAfV','child_process','\x20\x20\x20✅\x20Merged\x20','\x20\x202.\x20git\x20add\x20<resolved-files>','forEach','status','❌\x20ERROR:\x20You\x20have\x20uncommitted\x20changes\x0a','\x20\x20\x20🗑️\x20\x20Deleted\x20local\x20branch:\x20','Merged\x20','\x20is\x20not\x20completed\x20(status:\x20','Task','⚠️\x20\x20WARNING:\x20Could\x20not\x20pull\x20from\x20remote\x20(continuing\x20anyway)','\x0aResolve\x20conflicts\x20manually:','\x20\x201.\x20Fix\x20conflicts\x20in\x20files','\x0a3.\x20Pulling\x20latest\x20','Found\x20','\x0aCommit\x20all\x20changes\x20before\x20merging:','hbfDA','parse','existsSync','❌\x20ERROR:\x20No\x20tasks\x20found\x20in\x20phase:\x20','\x20\x20\x20⚠️\x20\x20Remote\x20branch\x20','constructor','\x0a❌\x20ERROR:\x20Could\x20not\x20checkout\x20','❌\x20ERROR:\x20Task\x20file\x20not\x20found:\x20','path','Usage:\x20npm\x20run\x20task:merge\x20--\x20--phase\x20PHASE-NAME\x0a','\x20has\x20incomplete\x20tasks:\x0a','git\x20fetch\x20origin','error','\x20not\x20found','tasks','readFileSync','\x20task(s)\x20to\x20','\x20\x203.\x20git\x20commit','substring','\x0a2.\x20Checking\x20out\x20','\x20\x20\x20Or:\x20npm\x20run\x20task:merge\x20--\x20--phase\x20PHASE-NAME\x0a','completed','\x22\x20is\x20not\x20supported','dApFX','phase','Push\x20manually:\x20git\x20push\x20origin\x20','git\x20pull\x20origin\x20','warn','utf8','4vaTMox','Complete\x20task\x20first:\x20npm\x20run\x20task:done\x20','stdio'];_0x3a37=function(){return _0x2c06e4;};return _0x3a37();}try{const _0x21ec00={};_0x21ec00[_0x516890(0xbf)]=_0x516890(0xf1);let e=s('git\x20status\x20--porcelain',_0x21ec00);e[_0x516890(0xf7)]()&&(console[_0x516890(0xe1)](_0x516890(0xca)),console[_0x516890(0xe1)](_0x516890(0xfd)),console['error'](e),console[_0x516890(0xe1)](_0x516890(0xd4)),console[_0x516890(0xe1)]('\x20\x20git\x20add\x20.'),console[_0x516890(0xe1)]('\x20\x20git\x20commit\x20-m\x20\x22[TASK-XXX]\x20Description\x22\x0a'),process[_0x516890(0x144)](0x1));}catch{console[_0x516890(0xf0)]('⚠️\x20\x20WARNING:\x20Could\x20not\x20check\x20git\x20status\x0a');}var t=_0x516890(0x113);try{const _0xb8613e={};_0xb8613e['encoding']=_0x516890(0xf1);let e=s(_0x516890(0x12c),_0xb8613e);e['includes'](_0x516890(0xf6))&&!e[_0x516890(0xc0)](_0x516890(0x113))&&(t=_0x516890(0xf6));}catch{console[_0x516890(0xf0)](_0x516890(0x111));}console[_0x516890(0x10c)]('🔄\x20Starting\x20merge\x20process...\x0a'),console[_0x516890(0x10c)](_0x516890(0x10d));try{const _0x4c903c={};_0x4c903c[_0x516890(0xf4)]='inherit',s(_0x516890(0xe0),_0x4c903c);}catch{console[_0x516890(0xf0)](_0x516890(0x10f));}console['log'](_0x516890(0xe8)+t+'\x20branch...');try{const _0x3f0cf7={};_0x3f0cf7['stdio']='inherit',s('git\x20checkout\x20'+t,_0x3f0cf7);}catch{console[_0x516890(0xe1)](_0x516890(0xdb)+t),process[_0x516890(0x144)](0x1);}console['log'](_0x516890(0xd2)+t+'...');try{const _0x26064e={};_0x26064e[_0x516890(0xf4)]=_0x516890(0x10a),s(_0x516890(0xef)+t,_0x26064e);}catch{console['warn'](_0x516890(0xcf));}console[_0x516890(0x10c)](_0x516890(0x131));for(let e of i){let n=_0x516890(0x139)+e['id']+'-'+e['title'][_0x516890(0x146)]()[_0x516890(0x127)](/\s+/g,'-')[_0x516890(0xe7)](0x0,0x1e);console[_0x516890(0x10c)]('\x20\x20\x20Merging:\x20'+n);try{const _0x193e7c={};_0x193e7c[_0x516890(0xbf)]=_0x516890(0xf1);if(!s(_0x516890(0xfc),_0x193e7c)['includes'](n)){console[_0x516890(0xf0)](_0x516890(0x112)+n+_0x516890(0x106));continue;}const _0x46bd18={};_0x46bd18[_0x516890(0xf4)]=_0x516890(0x10a),(s(_0x516890(0x126)+n+_0x516890(0x118)+e['id']+':\x20'+e[_0x516890(0xf5)]+'\x22',_0x46bd18),console[_0x516890(0x10c)](_0x516890(0xc6)+e['id']+'\x0a'));}catch{console[_0x516890(0xe1)]('\x0a❌\x20ERROR:\x20Merge\x20conflict\x20or\x20error\x20merging\x20'+e['id']),console[_0x516890(0xe1)](_0x516890(0xd0)),console[_0x516890(0xe1)](_0x516890(0xd1)),console[_0x516890(0xe1)](_0x516890(0xc7)),console[_0x516890(0xe1)](_0x516890(0xe6)),console['error'](_0x516890(0x11d)+l['join']('\x20')+'\x0a'),process[_0x516890(0x144)](0x1);}}console[_0x516890(0x10c)]('5.\x20Pushing\x20to\x20remote...\x0a');try{const _0x2074b1={};_0x2074b1[_0x516890(0xf4)]=_0x516890(0x10a),(s('git\x20push\x20origin\x20'+t,_0x2074b1),console[_0x516890(0x10c)](_0x516890(0x13d)));}catch{console[_0x516890(0xe1)](_0x516890(0x11b)),console['error'](_0x516890(0xee)+t+'\x0a'),process[_0x516890(0x144)](0x1);}console[_0x516890(0x10c)](_0x516890(0x115));for(let e of i){let n=_0x516890(0x139)+e['id']+'-'+e['title'][_0x516890(0x146)]()['replace'](/\s+/g,'-')[_0x516890(0xe7)](0x0,0x1e);try{const _0x2a32c1={};_0x2a32c1[_0x516890(0xbf)]=_0x516890(0xf1);if(s(_0x516890(0xfc),_0x2a32c1)['includes'](n)){const _0x464f3d={};_0x464f3d['encoding']='utf8',(s('git\x20branch\x20-d\x20'+n,_0x464f3d),console[_0x516890(0x10c)](_0x516890(0xcb)+n));try{const _0x15b6d1={};_0x15b6d1['stdio']=_0x516890(0x12b),(s('git\x20push\x20origin\x20--delete\x20'+n,_0x15b6d1),console[_0x516890(0x10c)](_0x516890(0x12e)+n));}catch{console[_0x516890(0x10c)](_0x516890(0xd9)+n+_0x516890(0xfe));}}}catch{console[_0x516890(0xf0)]('\x20\x20\x20⚠️\x20\x20Could\x20not\x20delete\x20branch\x20'+n);}}console[_0x516890(0x10c)](_0x516890(0x101)),console[_0x516890(0x10c)](_0x516890(0xcc)+i[_0x516890(0xf9)]+_0x516890(0xe5)+t+':'),i[_0x516890(0xc8)](_0x30d7ff=>{const _0x1bb5c1=_0x516890;console['log']('\x20\x20✅\x20'+_0x30d7ff['id']+':\x20'+_0x30d7ff[_0x1bb5c1(0xf5)]);}),console[_0x516890(0x10c)](_0x516890(0x100)+t+_0x516890(0x11a)),console[_0x516890(0x10c)](_0x516890(0x120)),process[_0x516890(0x144)](0x0);
|
|
2
|
+
const _0x5361ca=_0x30fe;(function(_0x203953,_0x401180){const _0x396f38=_0x30fe,_0x15a17d=_0x203953();while(!![]){try{const _0xb8fc6b=-parseInt(_0x396f38(0x160))/0x1+parseInt(_0x396f38(0x152))/0x2*(parseInt(_0x396f38(0x170))/0x3)+parseInt(_0x396f38(0x148))/0x4*(-parseInt(_0x396f38(0x143))/0x5)+parseInt(_0x396f38(0x173))/0x6+parseInt(_0x396f38(0x171))/0x7*(-parseInt(_0x396f38(0x19c))/0x8)+-parseInt(_0x396f38(0x162))/0x9*(-parseInt(_0x396f38(0x199))/0xa)+parseInt(_0x396f38(0x17c))/0xb;if(_0xb8fc6b===_0x401180)break;else _0x15a17d['push'](_0x15a17d['shift']());}catch(_0x5b5cd9){_0x15a17d['push'](_0x15a17d['shift']());}}}(_0x2865,0xf2782));const _0x1abd1e=(function(){const _0x1069f0=_0x30fe,_0x61d942={};_0x61d942[_0x1069f0(0x174)]=function(_0x5cb6b1,_0x46d924){return _0x5cb6b1!==_0x46d924;},_0x61d942[_0x1069f0(0x191)]='IDUjx';const _0x5956c8=_0x61d942;let _0x423cdf=!![];return function(_0x5a2929,_0x59d001){const _0x2f79ee=_0x423cdf?function(){const _0x41e620=_0x30fe;if(_0x59d001){if(_0x5956c8[_0x41e620(0x174)]('uzqSe',_0x5956c8[_0x41e620(0x191)])){const _0x858f40=_0x59d001[_0x41e620(0x139)](_0x5a2929,arguments);return _0x59d001=null,_0x858f40;}else _0x4bfa0f[_0x41e620(0x18e)]('\x0a❌\x20ERROR:\x20Could\x20not\x20checkout\x20'+_0x15b8af),_0x37e8ff[_0x41e620(0x185)](0x1);}}:function(){};return _0x423cdf=![],_0x2f79ee;};}()),_0x31167c=_0x1abd1e(this,function(){const _0x5cfac4=_0x30fe,_0x3792a3={};_0x3792a3[_0x5cfac4(0x14c)]=_0x5cfac4(0x154);const _0x3aa493=_0x3792a3;return _0x31167c['toString']()[_0x5cfac4(0x181)](_0x3aa493[_0x5cfac4(0x14c)])[_0x5cfac4(0x144)]()[_0x5cfac4(0x163)](_0x31167c)['search'](_0x5cfac4(0x154));});_0x31167c();var u=(_0x1c7eb2=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x1c7eb2,{'get':(_0x11608d,_0x56bb88)=>(typeof require<'u'?require:_0x11608d)[_0x56bb88]}):_0x1c7eb2)(function(_0xbd5ab7){const _0x6088f2=_0x30fe,_0x3dbd3c={'kahIz':function(_0x264f15,_0x1a7805){return _0x264f15(_0x1a7805);},'yfhvG':function(_0x3fd107,_0x4ae788){return _0x3fd107+_0x4ae788;},'AmQUk':_0x6088f2(0x133)};if(typeof require<'u')return require[_0x6088f2(0x139)](this,arguments);throw _0x3dbd3c[_0x6088f2(0x17b)](Error,_0x3dbd3c[_0x6088f2(0x164)](_0x3dbd3c[_0x6088f2(0x164)](_0x3dbd3c['AmQUk'],_0xbd5ab7),'\x22\x20is\x20not\x20supported'));}),{execSync:s}=u(_0x5361ca(0x146)),c=u('fs'),g=u(_0x5361ca(0x1a2)),l=process[_0x5361ca(0x192)][_0x5361ca(0x149)](0x2),p='.claude/ACTIVE-PLAN';c[_0x5361ca(0x17e)](p)||(console[_0x5361ca(0x18e)](_0x5361ca(0x196)),console['error']('Set\x20active\x20plan\x20first:\x20npm\x20run\x20plan:manager\x0a'),process[_0x5361ca(0x185)](0x1));var f=c[_0x5361ca(0x16a)](p,'utf8')[_0x5361ca(0x19a)](),h=g[_0x5361ca(0x14f)](_0x5361ca(0x129),f),R=g[_0x5361ca(0x14f)](h,_0x5361ca(0x161));c[_0x5361ca(0x17e)](R)||(console[_0x5361ca(0x18e)](_0x5361ca(0x12f)),console[_0x5361ca(0x18e)]('Plan:\x20'+f),process[_0x5361ca(0x185)](0x1));var m=JSON[_0x5361ca(0x157)](c['readFileSync'](R,_0x5361ca(0x12d))),d=_0x5361ca(0x18f),r=null;l[0x0]===_0x5361ca(0x14a)?(d=_0x5361ca(0x186),r=l[0x1],r||(console[_0x5361ca(0x18e)]('\x0a❌\x20ERROR:\x20Phase\x20name\x20required'),console[_0x5361ca(0x18e)](_0x5361ca(0x18b)),process['exit'](0x1))):(r=l[0x0],r||(console[_0x5361ca(0x18e)](_0x5361ca(0x18c)),console[_0x5361ca(0x18e)](_0x5361ca(0x13b)),console['error'](_0x5361ca(0x177)),process[_0x5361ca(0x185)](0x1))),console[_0x5361ca(0x18d)]('\x0a🔀\x20Merge\x20to\x20Main:\x20'+(d===_0x5361ca(0x186)?_0x5361ca(0x13f):'Task')+'\x20'+r+'\x0a');var i=[];if(d==='task'){m['taskFiles'][_0x5361ca(0x184)](_0x4b6cc1=>_0x4b6cc1['id']===r)||(console[_0x5361ca(0x18e)](_0x5361ca(0x189)+r+_0x5361ca(0x132)),process['exit'](0x1));let n=g['join'](h,'tasks',r+_0x5361ca(0x16d));c[_0x5361ca(0x17e)](n)||(console['error'](_0x5361ca(0x167)+n),process[_0x5361ca(0x185)](0x1));let o=JSON[_0x5361ca(0x157)](c['readFileSync'](n,_0x5361ca(0x12d)));o[_0x5361ca(0x172)]!==_0x5361ca(0x17a)&&(console[_0x5361ca(0x18e)](_0x5361ca(0x189)+r+_0x5361ca(0x188)+o[_0x5361ca(0x172)]+')'),console['error'](_0x5361ca(0x194)+r),process[_0x5361ca(0x185)](0x1)),i[_0x5361ca(0x16e)](o);}else{let e=m[_0x5361ca(0x142)][_0x5361ca(0x13a)](_0x54c2cc=>{const _0x31527a=_0x5361ca,_0x872432={};_0x872432[_0x31527a(0x140)]='tasks',_0x872432[_0x31527a(0x16c)]=_0x31527a(0x12d);const _0x3450cc=_0x872432;let _0x1cc885=g['join'](h,_0x3450cc['PJZNG'],_0x54c2cc['id']+_0x31527a(0x16d));return c['existsSync'](_0x1cc885)?JSON[_0x31527a(0x157)](c[_0x31527a(0x16a)](_0x1cc885,_0x3450cc['Whhzq'])):null;})[_0x5361ca(0x14b)](_0x235ea5=>_0x235ea5!==null&&_0x235ea5[_0x5361ca(0x186)]===r);e[_0x5361ca(0x131)]===0x0&&(console[_0x5361ca(0x18e)](_0x5361ca(0x134)+r),process['exit'](0x1));let n=e['filter'](_0x4261dc=>_0x4261dc[_0x5361ca(0x172)]!==_0x5361ca(0x17a));n[_0x5361ca(0x131)]>0x0&&(console['error']('❌\x20ERROR:\x20Phase\x20'+r+_0x5361ca(0x1a1)),n[_0x5361ca(0x15b)](_0x1b53c9=>{const _0x153623=_0x5361ca;console['error']('\x20\x20'+_0x1b53c9['id']+':\x20'+_0x1b53c9[_0x153623(0x12a)]+'\x20('+_0x1b53c9[_0x153623(0x172)]+')');}),console['error']('\x0aComplete\x20all\x20tasks\x20in\x20phase\x20before\x20merging.\x0a'),process[_0x5361ca(0x185)](0x1)),i=e[_0x5361ca(0x14b)](_0x8b2a4a=>_0x8b2a4a['status']===_0x5361ca(0x17a));}console[_0x5361ca(0x18d)](_0x5361ca(0x136)+i[_0x5361ca(0x131)]+'\x20completed\x20task(s)\x20to\x20merge:\x0a'),i[_0x5361ca(0x15b)](_0xac2906=>{const _0x5365bb=_0x5361ca;console[_0x5365bb(0x18d)]('\x20\x20✅\x20'+_0xac2906['id']+':\x20'+_0xac2906[_0x5365bb(0x12a)]);}),console[_0x5361ca(0x18d)]('');try{const _0x22ecf1={};_0x22ecf1[_0x5361ca(0x155)]='utf8';let e=s(_0x5361ca(0x190),_0x22ecf1)['trim']();(e===_0x5361ca(0x17f)||e===_0x5361ca(0x198))&&(console[_0x5361ca(0x18e)](_0x5361ca(0x135)),console[_0x5361ca(0x18e)](_0x5361ca(0x168)),process[_0x5361ca(0x185)](0x1)),console[_0x5361ca(0x18d)]('Current\x20branch:\x20'+e+'\x0a');}catch{console['error'](_0x5361ca(0x13e)),console[_0x5361ca(0x18e)](_0x5361ca(0x197)),process[_0x5361ca(0x185)](0x1);}try{const _0x354f4a={};_0x354f4a[_0x5361ca(0x155)]='utf8';let e=s('git\x20status\x20--porcelain',_0x354f4a);e['trim']()&&(console[_0x5361ca(0x18e)]('❌\x20ERROR:\x20You\x20have\x20uncommitted\x20changes\x0a'),console['error'](_0x5361ca(0x17d)),console['error'](e),console[_0x5361ca(0x18e)](_0x5361ca(0x176)),console[_0x5361ca(0x18e)](_0x5361ca(0x193)),console[_0x5361ca(0x18e)]('\x20\x20git\x20commit\x20-m\x20\x22[TASK-XXX]\x20Description\x22\x0a'),process[_0x5361ca(0x185)](0x1));}catch{console[_0x5361ca(0x19e)](_0x5361ca(0x178));}var t=_0x5361ca(0x17f);try{const _0x6d014d={};_0x6d014d[_0x5361ca(0x155)]=_0x5361ca(0x12d);let e=s('git\x20branch\x20-a',_0x6d014d);e[_0x5361ca(0x15f)](_0x5361ca(0x198))&&!e['includes'](_0x5361ca(0x17f))&&(t=_0x5361ca(0x198));}catch{console['warn'](_0x5361ca(0x1a3));}console[_0x5361ca(0x18d)](_0x5361ca(0x15a)),console['log'](_0x5361ca(0x137));try{const _0x1689d4={};_0x1689d4[_0x5361ca(0x13d)]='inherit',s('git\x20fetch\x20origin',_0x1689d4);}catch{console[_0x5361ca(0x19e)](_0x5361ca(0x195));}console[_0x5361ca(0x18d)](_0x5361ca(0x15c)+t+_0x5361ca(0x12b));try{const _0x3de1f2={};_0x3de1f2[_0x5361ca(0x13d)]=_0x5361ca(0x169),s('git\x20checkout\x20'+t,_0x3de1f2);}catch{console[_0x5361ca(0x18e)](_0x5361ca(0x128)+t),process[_0x5361ca(0x185)](0x1);}console[_0x5361ca(0x18d)](_0x5361ca(0x12c)+t+_0x5361ca(0x156));try{const _0x26b6cf={};_0x26b6cf[_0x5361ca(0x13d)]=_0x5361ca(0x169),s(_0x5361ca(0x153)+t,_0x26b6cf);}catch{console[_0x5361ca(0x19e)](_0x5361ca(0x19f));}console[_0x5361ca(0x18d)](_0x5361ca(0x150));for(let e of i){let n='task/'+e['id']+'-'+e['title']['toLowerCase']()[_0x5361ca(0x16b)](/\s+/g,'-')[_0x5361ca(0x175)](0x0,0x1e);console[_0x5361ca(0x18d)](_0x5361ca(0x19b)+n);try{const _0x5d3002={};_0x5d3002[_0x5361ca(0x155)]=_0x5361ca(0x12d);if(!s(_0x5361ca(0x145),_0x5d3002)['includes'](n)){console[_0x5361ca(0x19e)](_0x5361ca(0x141)+n+'\x20not\x20found,\x20skipping');continue;}const _0x4e5b6a={};_0x4e5b6a['stdio']=_0x5361ca(0x169),(s(_0x5361ca(0x18a)+n+_0x5361ca(0x180)+e['id']+':\x20'+e['title']+'\x22',_0x4e5b6a),console[_0x5361ca(0x18d)]('\x20\x20\x20✅\x20Merged\x20'+e['id']+'\x0a'));}catch{console['error']('\x0a❌\x20ERROR:\x20Merge\x20conflict\x20or\x20error\x20merging\x20'+e['id']),console[_0x5361ca(0x18e)](_0x5361ca(0x13c)),console[_0x5361ca(0x18e)](_0x5361ca(0x166)),console[_0x5361ca(0x18e)]('\x20\x202.\x20git\x20add\x20<resolved-files>'),console[_0x5361ca(0x18e)]('\x20\x203.\x20git\x20commit'),console[_0x5361ca(0x18e)](_0x5361ca(0x138)+l[_0x5361ca(0x14f)]('\x20')+'\x0a'),process[_0x5361ca(0x185)](0x1);}}console[_0x5361ca(0x18d)]('5.\x20Pushing\x20to\x20remote...\x0a');function _0x2865(){const _0x545596=['\x20branch.','\x0a❌\x20ERROR:\x20Task\x20tracker\x20not\x20found','task/','length','\x20not\x20found','Dynamic\x20require\x20of\x20\x22','❌\x20ERROR:\x20No\x20tasks\x20found\x20in\x20phase:\x20','❌\x20ERROR:\x20Already\x20on\x20main\x20branch','Found\x20','1.\x20Fetching\x20latest\x20changes\x20from\x20remote...','\x20\x204.\x20Continue\x20with:\x20npm\x20run\x20task:merge\x20','apply','map','Usage:\x20npm\x20run\x20task:merge\x20TASK-001','\x0aResolve\x20conflicts\x20manually:','stdio','❌\x20ERROR:\x20Could\x20not\x20get\x20current\x20branch','Phase','PJZNG','\x20\x20\x20⚠️\x20\x20WARNING:\x20Branch\x20','taskFiles','367005xhBHQV','toString','git\x20branch','child_process','\x20\x20\x20🗑️\x20\x20Deleted\x20local\x20branch:\x20','108pUMJeG','slice','--phase','filter','XAeKy','\x20\x20✅\x20','\x0a❌\x20ERROR:\x20Could\x20not\x20push\x20to\x20remote','join','\x0a4.\x20Merging\x20task\x20branch(es)...\x0a','\x20task(s)\x20to\x20','10898OJVeBz','git\x20pull\x20origin\x20','(((.+)+)+)+$','encoding','...','parse','\x20\x20\x20⚠️\x20\x20Remote\x20branch\x20','Push\x20manually:\x20git\x20push\x20origin\x20','🔄\x20Starting\x20merge\x20process...\x0a','forEach','\x0a2.\x20Checking\x20out\x20','To\x20start\x20next\x20task:\x20npm\x20run\x20task:start\x20TASK-XXX\x0a','\x20\x20\x20🗑️\x20\x20Deleted\x20remote\x20branch:\x20','includes','1197258fwIqxh','TASK-TRACKER.json','207jZYAia','constructor','yfhvG','toLowerCase','\x20\x201.\x20Fix\x20conflicts\x20in\x20files','❌\x20ERROR:\x20Task\x20file\x20not\x20found:\x20','Checkout\x20a\x20task\x20branch\x20first\x0a','inherit','readFileSync','replace','Whhzq','.json','push','git\x20push\x20origin\x20--delete\x20','381TGdgnn','903wNDrJC','status','11390430cRoxYg','EYitC','substring','\x0aCommit\x20all\x20changes\x20before\x20merging:','\x20\x20\x20Or:\x20npm\x20run\x20task:merge\x20--\x20--phase\x20PHASE-NAME\x0a','⚠️\x20\x20WARNING:\x20Could\x20not\x20check\x20git\x20status\x0a','\x20\x20\x20⚠️\x20\x20Could\x20not\x20delete\x20branch\x20','completed','kahIz','4454978eQyjmv','Uncommitted\x20files:','existsSync','main','\x20-m\x20\x22Merge\x20','search','git\x20push\x20origin\x20','pipe','find','exit','phase','\x0aYou\x20are\x20now\x20on\x20','\x20is\x20not\x20completed\x20(status:\x20','❌\x20ERROR:\x20Task\x20','git\x20merge\x20--no-ff\x20','Usage:\x20npm\x20run\x20task:merge\x20--\x20--phase\x20PHASE-NAME\x0a','\x0a❌\x20ERROR:\x20Task\x20ID\x20required','log','error','task','git\x20branch\x20--show-current','ByZNv','argv','\x20\x20git\x20add\x20.','Complete\x20task\x20first:\x20npm\x20run\x20task:done\x20','⚠️\x20\x20WARNING:\x20Could\x20not\x20fetch\x20from\x20remote\x20(continuing\x20anyway)','\x0a❌\x20ERROR:\x20No\x20active\x20plan\x20found','Are\x20you\x20in\x20a\x20git\x20repository?\x0a','master','654960SMbIlu','trim','\x20\x20\x20Merging:\x20','20440wkWRVR','6.\x20Cleaning\x20up\x20merged\x20branches...\x0a','warn','⚠️\x20\x20WARNING:\x20Could\x20not\x20pull\x20from\x20remote\x20(continuing\x20anyway)','git\x20branch\x20-d\x20','\x20has\x20incomplete\x20tasks:\x0a','path','⚠️\x20\x20WARNING:\x20Could\x20not\x20detect\x20main\x20branch,\x20using\x20\x22main\x22\x0a','\x0a❌\x20ERROR:\x20Could\x20not\x20checkout\x20','.claude/plans','title','\x20branch...','\x0a3.\x20Pulling\x20latest\x20','utf8'];_0x2865=function(){return _0x545596;};return _0x2865();}try{const _0x2620c4={};_0x2620c4[_0x5361ca(0x13d)]=_0x5361ca(0x169),(s(_0x5361ca(0x182)+t,_0x2620c4),console[_0x5361ca(0x18d)]('\x0a✅\x20Successfully\x20pushed\x20to\x20remote\x0a'));}catch{console[_0x5361ca(0x18e)](_0x5361ca(0x14e)),console['error'](_0x5361ca(0x159)+t+'\x0a'),process[_0x5361ca(0x185)](0x1);}console['log'](_0x5361ca(0x19d));for(let e of i){let n=_0x5361ca(0x130)+e['id']+'-'+e[_0x5361ca(0x12a)][_0x5361ca(0x165)]()[_0x5361ca(0x16b)](/\s+/g,'-')[_0x5361ca(0x175)](0x0,0x1e);try{const _0x424cb1={};_0x424cb1['encoding']=_0x5361ca(0x12d);if(s(_0x5361ca(0x145),_0x424cb1)['includes'](n)){const _0x3990db={};_0x3990db[_0x5361ca(0x155)]='utf8',(s(_0x5361ca(0x1a0)+n,_0x3990db),console[_0x5361ca(0x18d)](_0x5361ca(0x147)+n));try{const _0x40ac24={};_0x40ac24[_0x5361ca(0x13d)]=_0x5361ca(0x183),(s(_0x5361ca(0x16f)+n,_0x40ac24),console[_0x5361ca(0x18d)](_0x5361ca(0x15e)+n));}catch{console['log'](_0x5361ca(0x158)+n+'\x20not\x20found\x20(may\x20not\x20have\x20been\x20pushed)');}}}catch{console[_0x5361ca(0x19e)](_0x5361ca(0x179)+n);}}function _0x30fe(_0x79db6f,_0x597c07){_0x79db6f=_0x79db6f-0x128;const _0xb0a3d3=_0x2865();let _0x31167c=_0xb0a3d3[_0x79db6f];return _0x31167c;}console[_0x5361ca(0x18d)]('\x0a✅\x20MERGE\x20COMPLETE!\x0a'),console[_0x5361ca(0x18d)]('Merged\x20'+i['length']+_0x5361ca(0x151)+t+':'),i[_0x5361ca(0x15b)](_0x2a67bb=>{const _0x414600=_0x5361ca;console[_0x414600(0x18d)](_0x414600(0x14d)+_0x2a67bb['id']+':\x20'+_0x2a67bb[_0x414600(0x12a)]);}),console[_0x5361ca(0x18d)](_0x5361ca(0x187)+t+_0x5361ca(0x12e)),console[_0x5361ca(0x18d)](_0x5361ca(0x15d)),process[_0x5361ca(0x185)](0x0);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var _0x362d0b=_0x3382;(function(_0x33a2b8,_0x233df1){var _0x15ebbf=_0x3382,_0xa87cdc=_0x33a2b8();while(!![]){try{var _0x592b05=parseInt(_0x15ebbf(0x1ae))/0x1+-parseInt(_0x15ebbf(0x1b5))/0x2*(parseInt(_0x15ebbf(0x1ec))/0x3)+parseInt(_0x15ebbf(0x1e4))/0x4*(parseInt(_0x15ebbf(0x1dd))/0x5)+-parseInt(_0x15ebbf(0x1eb))/0x6+parseInt(_0x15ebbf(0x1e7))/0x7+parseInt(_0x15ebbf(0x1fd))/0x8*(-parseInt(_0x15ebbf(0x1ef))/0x9)+parseInt(_0x15ebbf(0x1cc))/0xa;if(_0x592b05===_0x233df1)break;else _0xa87cdc['push'](_0xa87cdc['shift']());}catch(_0x338886){_0xa87cdc['push'](_0xa87cdc['shift']());}}}(_0x5cd8,0x6ed38));function _0x5cd8(){var _0x25e2db=['\x20\x20\x20\x20Waiting\x20for:\x20','\x0aCheck\x20status:\x20npm\x20run\x20task:status\x0a','forEach','h\x20ago)','kumNI','startedAt','8295700MNQPih','length','split','⏱️\x20\x20Estimated:\x20','npm\x20run\x20task:start\x20','xErtG','child_process','\x0aBlocked\x20tasks:','activeTask','MydQb','existsSync','HeRAO','Plan:\x20','round','Check\x20status:\x20npm\x20run\x20task:status\x0a','Started:\x20','Set\x20active\x20plan\x20first:\x20npm\x20run\x20plan:manager\x0a','195VFXXKz','\x22\x20is\x20not\x20supported','\x0aComplete\x20it\x20first:\x20npm\x20run\x20task:done\x20','exit','description','.claude/plans','jSXJl','65452hUuQxP','bndlN','iSxXc','4107383LSJmIn','log','error','apply','3178692jLDNMA','142797ZWpflE','📝\x20','sort','18NeJdlc','(((.+)+)+)+$','bNXQd','toString','trim','✅\x20Dependencies:\x20','title','dependencies','parse','kLAxH','readFileSync','rIHtM','join','KBSvg','1896704tevVMY','📌\x20Active:\x20','filter','status','.json','every','inherit','212589zNbyns','search','.claude/ACTIVE-PLAN','OpBnK','OUtno','includes','map','34QBtsSk','VgRBR','completed','GevLA','Or\x20switch\x20to\x20it:\x20npm\x20run\x20task:start\x20','Initialize\x20first:\x20npm\x20run\x20plan:init\x0a','pending','\x0a⚠️\x20\x20No\x20tasks\x20available\x20to\x20start\x0a','tasks','taskFiles','estimatedHours','\x0a❌\x20ERROR:\x20Task\x20tracker\x20not\x20found','constructor','\x0a⚠️\x20\x20WARNING:\x20There\x20is\x20already\x20an\x20active\x20task\x0a','toLocaleString','utf8','\x0a🎉\x20No\x20pending\x20tasks!\x20All\x20tasks\x20completed.\x0a'];_0x5cd8=function(){return _0x25e2db;};return _0x5cd8();}var _0x5c479d=(function(){var _0x37ab32=_0x3382,_0x3b8628={};_0x3b8628[_0x37ab32(0x1fa)]=_0x37ab32(0x1bd),_0x3b8628['bNXQd']=_0x37ab32(0x1c4),_0x3b8628[_0x37ab32(0x1d7)]=function(_0x8cef18,_0x3da369){return _0x8cef18/_0x3da369;},_0x3b8628[_0x37ab32(0x1e5)]=function(_0x29f31a,_0x1e1d60){return _0x29f31a-_0x1e1d60;},_0x3b8628['jfmOf']=function(_0x45753d,_0x89bbbf){return _0x45753d*_0x89bbbf;},_0x3b8628[_0x37ab32(0x1b6)]=function(_0xd5a171,_0x580dfb){return _0xd5a171+_0x580dfb;},_0x3b8628[_0x37ab32(0x1d5)]=function(_0x46b39d,_0x2e6798){return _0x46b39d+_0x2e6798;},_0x3b8628[_0x37ab32(0x1b1)]='Or\x20switch\x20to\x20it:\x20npm\x20run\x20task:start\x20',_0x3b8628['xErtG']=function(_0x591da0,_0x346a59){return _0x591da0===_0x346a59;},_0x3b8628[_0x37ab32(0x1b2)]='efCbM';var _0x1bd3bf=_0x3b8628,_0x4bca72=!![];return function(_0xb51f8f,_0xe9335e){var _0x24d139=_0x37ab32;if(_0x1bd3bf[_0x24d139(0x1d1)](_0x1bd3bf[_0x24d139(0x1b2)],_0x1bd3bf[_0x24d139(0x1b2)])){var _0x13e54e=_0x4bca72?function(){var _0x4e59a7=_0x24d139;if(_0xe9335e){var _0x1c4902=_0xe9335e[_0x4e59a7(0x1ea)](_0xb51f8f,arguments);return _0xe9335e=null,_0x1c4902;}}:function(){};return _0x4bca72=![],_0x13e54e;}else{_0x4173d5[_0x24d139(0x1e8)](_0x24d139(0x1c2));let _0x2e65bd=_0x4d6512[_0x24d139(0x1fb)](_0x3bb81f,_0x1bd3bf['rIHtM'],_0x1ab4c2['activeTask']+'.json');if(_0xdde9b6[_0x24d139(0x1d6)](_0x2e65bd)){let _0x410b65=_0x27a59f[_0x24d139(0x1f7)](_0x499e43['readFileSync'](_0x2e65bd,_0x1bd3bf[_0x24d139(0x1f1)]));if(_0x2bd8ce[_0x24d139(0x1e8)](_0x24d139(0x1a8)+_0x410b65['id']+'\x20-\x20'+_0x410b65['title']),_0x410b65['startedAt']){let _0x23754f=new _0x4f8828(_0x410b65[_0x24d139(0x1cb)]),_0x1de785=_0x1bd3bf[_0x24d139(0x1d7)](_0x4327ff[_0x24d139(0x1d9)](_0x1bd3bf[_0x24d139(0x1e5)](new _0x1de65a(),_0x23754f)/(_0x1bd3bf['jfmOf'](0x3e8,0x3c)*0x3c)*0xa),0xa);_0x17e955[_0x24d139(0x1e8)](_0x24d139(0x1db)+_0x23754f['toLocaleString']()+'\x20('+_0x1de785+_0x24d139(0x1c9));}_0x3929a9['log'](_0x1bd3bf['VgRBR'](_0x24d139(0x1df),_0x23b30a[_0x24d139(0x1d4)])),_0x363a8d[_0x24d139(0x1e8)](_0x1bd3bf[_0x24d139(0x1d5)](_0x1bd3bf[_0x24d139(0x1b1)],_0x1d45c9[_0x24d139(0x1d4)])),_0x1c78a2[_0x24d139(0x1e8)](''),_0x23141c[_0x24d139(0x1e0)](0x1);}}};}()),_0x193705=_0x5c479d(this,function(){var _0x1c7706=_0x3382;return _0x193705[_0x1c7706(0x1f2)]()['search'](_0x1c7706(0x1f0))[_0x1c7706(0x1f2)]()[_0x1c7706(0x1c1)](_0x193705)[_0x1c7706(0x1af)]('(((.+)+)+)+$');});_0x193705();function _0x3382(_0x1ee5c9,_0x4d633e){_0x1ee5c9=_0x1ee5c9-0x1a8;var _0x5bf6f8=_0x5cd8();var _0x193705=_0x5bf6f8[_0x1ee5c9];return _0x193705;}var c=(_0x2f4837=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x2f4837,{'get':(_0x35cd74,_0x453e31)=>(typeof require<'u'?require:_0x35cd74)[_0x453e31]}):_0x2f4837)(function(_0x5e5976){var _0x18cea3=_0x3382,_0x3912d9={};_0x3912d9[_0x18cea3(0x1e3)]=function(_0x3dcb56,_0x3feada){return _0x3dcb56+_0x3feada;},_0x3912d9[_0x18cea3(0x1e6)]=function(_0x484d1d,_0x5317a8){return _0x484d1d+_0x5317a8;},_0x3912d9['unRik']='Dynamic\x20require\x20of\x20\x22';var _0x577b9c=_0x3912d9;if(typeof require<'u')return require[_0x18cea3(0x1ea)](this,arguments);throw Error(_0x577b9c[_0x18cea3(0x1e3)](_0x577b9c[_0x18cea3(0x1e6)](_0x577b9c['unRik'],_0x5e5976),_0x18cea3(0x1de)));}),{execSync:m}=c(_0x362d0b(0x1d2)),o=c('fs'),a=c('path'),p=_0x362d0b(0x1b0);o[_0x362d0b(0x1d6)](p)||(console[_0x362d0b(0x1e9)]('\x0a❌\x20ERROR:\x20No\x20active\x20plan\x20found'),console[_0x362d0b(0x1e9)](_0x362d0b(0x1dc)),process[_0x362d0b(0x1e0)](0x1));var u=o[_0x362d0b(0x1f9)](p,'utf8')[_0x362d0b(0x1f3)](),r=a[_0x362d0b(0x1fb)](_0x362d0b(0x1e2),u),g=a[_0x362d0b(0x1fb)](r,'TASK-TRACKER.json');o[_0x362d0b(0x1d6)](g)||(console['error'](_0x362d0b(0x1c0)),console[_0x362d0b(0x1e9)](_0x362d0b(0x1d8)+u),console[_0x362d0b(0x1e9)](_0x362d0b(0x1ba)),process[_0x362d0b(0x1e0)](0x1));var i=JSON[_0x362d0b(0x1f7)](o[_0x362d0b(0x1f9)](g,_0x362d0b(0x1c4)));if(i[_0x362d0b(0x1d4)]){console[_0x362d0b(0x1e8)](_0x362d0b(0x1c2));let e=a[_0x362d0b(0x1fb)](r,_0x362d0b(0x1bd),i[_0x362d0b(0x1d4)]+_0x362d0b(0x1ab));if(o[_0x362d0b(0x1d6)](e)){let n=JSON[_0x362d0b(0x1f7)](o[_0x362d0b(0x1f9)](e,_0x362d0b(0x1c4)));if(console['log'](_0x362d0b(0x1a8)+n['id']+'\x20-\x20'+n['title']),n[_0x362d0b(0x1cb)]){let s=new Date(n[_0x362d0b(0x1cb)]),l=Math[_0x362d0b(0x1d9)]((new Date()-s)/(0x3e8*0x3c*0x3c)*0xa)/0xa;console[_0x362d0b(0x1e8)]('Started:\x20'+s[_0x362d0b(0x1c3)]()+'\x20('+l+_0x362d0b(0x1c9));}console[_0x362d0b(0x1e8)](_0x362d0b(0x1df)+i[_0x362d0b(0x1d4)]),console[_0x362d0b(0x1e8)](_0x362d0b(0x1b9)+i[_0x362d0b(0x1d4)]),console['log'](''),process[_0x362d0b(0x1e0)](0x1);}}var d=i[_0x362d0b(0x1be)][_0x362d0b(0x1a9)](_0x24d5e7=>_0x24d5e7[_0x362d0b(0x1aa)]===_0x362d0b(0x1bb))[_0x362d0b(0x1b4)](_0x20109c=>{var _0x50808b=_0x362d0b,_0x590565={};_0x590565[_0x50808b(0x1fc)]=_0x50808b(0x1bd),_0x590565[_0x50808b(0x1b8)]=_0x50808b(0x1c4);var _0x46b2c5=_0x590565;let _0x45f273=a[_0x50808b(0x1fb)](r,_0x46b2c5['KBSvg'],_0x20109c['id']+'.json');return o['existsSync'](_0x45f273)?JSON[_0x50808b(0x1f7)](o[_0x50808b(0x1f9)](_0x45f273,_0x46b2c5[_0x50808b(0x1b8)])):null;})[_0x362d0b(0x1a9)](_0x258e46=>_0x258e46!==null);d[_0x362d0b(0x1cd)]===0x0&&(console['log'](_0x362d0b(0x1c5)),console[_0x362d0b(0x1e8)](_0x362d0b(0x1da)),process['exit'](0x0));var k=i[_0x362d0b(0x1be)][_0x362d0b(0x1a9)](_0x5410e7=>_0x5410e7[_0x362d0b(0x1aa)]===_0x362d0b(0x1b7))[_0x362d0b(0x1b4)](_0x490beb=>_0x490beb['id']),f=d[_0x362d0b(0x1a9)](_0xc6f833=>!_0xc6f833[_0x362d0b(0x1f6)]||_0xc6f833[_0x362d0b(0x1f6)][_0x362d0b(0x1cd)]===0x0?!0x0:_0xc6f833[_0x362d0b(0x1f6)][_0x362d0b(0x1ac)](_0xdbfbce=>k['includes'](_0xdbfbce)));f[_0x362d0b(0x1cd)]===0x0&&(console['log'](_0x362d0b(0x1bc)),console[_0x362d0b(0x1e8)]('All\x20pending\x20tasks\x20have\x20incomplete\x20dependencies.'),console[_0x362d0b(0x1e8)](_0x362d0b(0x1d3)),d[_0x362d0b(0x1c8)](_0x31a5bf=>{var _0x4b0c3a=_0x362d0b,_0x275eec={};_0x275eec[_0x4b0c3a(0x1f8)]=function(_0xa5fbe5,_0xbfbdfa){return _0xa5fbe5>_0xbfbdfa;};var _0x530119=_0x275eec;let _0x172a67=_0x31a5bf['dependencies']?.['filter'](_0x55f31e=>!k[_0x4b0c3a(0x1b3)](_0x55f31e))||[];_0x530119[_0x4b0c3a(0x1f8)](_0x172a67[_0x4b0c3a(0x1cd)],0x0)&&(console[_0x4b0c3a(0x1e8)]('\x20\x20'+_0x31a5bf['id']+':\x20'+_0x31a5bf[_0x4b0c3a(0x1f5)]),console['log'](_0x4b0c3a(0x1c6)+_0x172a67[_0x4b0c3a(0x1fb)](',\x20')));}),console[_0x362d0b(0x1e8)](_0x362d0b(0x1c7)),process[_0x362d0b(0x1e0)](0x1));var t=f[_0x362d0b(0x1ee)]((_0x554b62,_0x47feb3)=>{var _0x5cd3df=_0x362d0b,_0x484835={'kumNI':function(_0x10b124,_0xcbad7e){return _0x10b124(_0xcbad7e);}};let _0x45c89c=parseInt(_0x554b62['id']['split']('-')[0x1]),_0x4c14be=_0x484835[_0x5cd3df(0x1ca)](parseInt,_0x47feb3['id'][_0x5cd3df(0x1ce)]('-')[0x1]);return _0x45c89c-_0x4c14be;})[0x0];console[_0x362d0b(0x1e8)]('\x0a🚀\x20Starting\x20next\x20available\x20task...\x0a'),console['log']('📌\x20'+t['id']+':\x20'+t[_0x362d0b(0x1f5)]),console[_0x362d0b(0x1e8)](_0x362d0b(0x1ed)+t[_0x362d0b(0x1e1)]),console[_0x362d0b(0x1e8)](_0x362d0b(0x1cf)+t[_0x362d0b(0x1bf)]+'h'),t[_0x362d0b(0x1f6)]&&t[_0x362d0b(0x1f6)][_0x362d0b(0x1cd)]>0x0&&console[_0x362d0b(0x1e8)](_0x362d0b(0x1f4)+t[_0x362d0b(0x1f6)][_0x362d0b(0x1fb)](',\x20')+'\x20(completed)'),console[_0x362d0b(0x1e8)]('');try{var _0xc5b10e={};_0xc5b10e['stdio']=_0x362d0b(0x1ad),m(_0x362d0b(0x1d0)+t['id'],_0xc5b10e);}catch{console[_0x362d0b(0x1e9)]('\x0a❌\x20Failed\x20to\x20start\x20task\x20'+t['id']),process[_0x362d0b(0x1e0)](0x1);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
function _0x3183(){var _0x5c702f=['search','log','join','apply','child_process','216814gJZUKh','Dynamic\x20require\x20of\x20\x22','4298375leFACC','toString','iuqkF','tBSyu','node\x20\x22','hooks','28Zjbkai','162591jATlSx','CdUIh','When\x20done,\x20run:\x20npm\x20run\x20task:done\x20','2122720IfqDNv','NSSsG','\x0a\x20\x20-\x20','2SPWRKz','Hook\x20not\x20found:\x20','\x22\x20is\x20not\x20supported','🚀\x20Starting\x20task:\x20','exit','36090nlCzeF','\x0a✅\x20Task\x20','\x0aUsage:\x20node\x20scripts/task-start.js\x20TASK-001','.claude','\x20\x20\x20Or:\x20npm\x20run\x20task:start\x20TASK-001','\x20is\x20now\x20active!','TIpNO','583794ESWvoT','error','inherit','902OisUOX','vXoXx','constructor','existsSync','.\x20Checked:\x0a\x20\x20-\x20','argv','\x0aYou\x20can\x20now\x20work\x20on\x20this\x20task.','URUfY','10577GYyKuB','stdio','(((.+)+)+)+$','WhxLg','anPag','HzJPh','FxwDO','1542zIFnbB','start-task.js','❌\x20Error:\x20Task\x20ID\x20is\x20required','\x0a❌\x20Failed\x20to\x20start\x20task\x20','piqSG'];_0x3183=function(){return _0x5c702f;};return _0x3183();}var _0x439598=_0x31b5;(function(_0x38c0f0,_0xf5cdbe){var _0x5e2d85=_0x31b5,_0x3ae44a=_0x38c0f0();while(!![]){try{var _0x20562d=parseInt(_0x5e2d85(0x164))/0x1*(parseInt(_0x5e2d85(0x155))/0x2)+-parseInt(_0x5e2d85(0x15e))/0x3*(-parseInt(_0x5e2d85(0x15d))/0x4)+parseInt(_0x5e2d85(0x157))/0x5+parseInt(_0x5e2d85(0x182))/0x6*(-parseInt(_0x5e2d85(0x17b))/0x7)+-parseInt(_0x5e2d85(0x161))/0x8+-parseInt(_0x5e2d85(0x170))/0x9+-parseInt(_0x5e2d85(0x169))/0xa*(parseInt(_0x5e2d85(0x173))/0xb);if(_0x20562d===_0xf5cdbe)break;else _0x3ae44a['push'](_0x3ae44a['shift']());}catch(_0x6e3daf){_0x3ae44a['push'](_0x3ae44a['shift']());}}}(_0x3183,0x6bc35));var _0xc9a19f=(function(){var _0x24143b=_0x31b5,_0x47c26e={};_0x47c26e[_0x24143b(0x17a)]=_0x24143b(0x17e),_0x47c26e[_0x24143b(0x159)]=_0x24143b(0x15f);var _0x22800c=_0x47c26e,_0x46c705=!![];return function(_0x5c7964,_0x28fc28){var _0x49e8df=_0x24143b,_0x372dd8={};_0x372dd8[_0x49e8df(0x162)]=_0x22800c[_0x49e8df(0x17a)],_0x372dd8['piqSG']=_0x22800c[_0x49e8df(0x159)];var _0x57adfe=_0x372dd8,_0x352618=_0x46c705?function(){var _0x2dd184=_0x49e8df;if(_0x57adfe[_0x2dd184(0x162)]===_0x57adfe[_0x2dd184(0x14f)])_0x5cdbfd[_0x2dd184(0x171)](_0x2dd184(0x14e)+_0x1a97f0),_0x1b5a4e[_0x2dd184(0x168)](0x1);else{if(_0x28fc28){var _0x5c0b8a=_0x28fc28[_0x2dd184(0x153)](_0x5c7964,arguments);return _0x28fc28=null,_0x5c0b8a;}}}:function(){};return _0x46c705=![],_0x352618;};}()),_0x386380=_0xc9a19f(this,function(){var _0xa795cf=_0x31b5,_0x361180={};_0x361180['rgMWy']=_0xa795cf(0x17d);var _0x498b24=_0x361180;return _0x386380[_0xa795cf(0x158)]()[_0xa795cf(0x150)](_0x498b24['rgMWy'])[_0xa795cf(0x158)]()[_0xa795cf(0x175)](_0x386380)['search'](_0xa795cf(0x17d));});_0x386380();var e=(_0x165a0c=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x165a0c,{'get':(_0x2a501a,_0x2c0a6f)=>(typeof require<'u'?require:_0x2a501a)[_0x2c0a6f]}):_0x165a0c)(function(_0x292131){var _0x1d617a=_0x31b5,_0x113e38={};_0x113e38[_0x1d617a(0x181)]=function(_0x8c2c41,_0x55a0af){return _0x8c2c41<_0x55a0af;},_0x113e38[_0x1d617a(0x17f)]=function(_0x2e3b0b,_0x461747){return _0x2e3b0b+_0x461747;},_0x113e38[_0x1d617a(0x16f)]=_0x1d617a(0x156),_0x113e38[_0x1d617a(0x174)]=_0x1d617a(0x166);var _0x1cb20f=_0x113e38;if(_0x1cb20f[_0x1d617a(0x181)](typeof require,'u'))return require['apply'](this,arguments);throw Error(_0x1cb20f['anPag'](_0x1cb20f['anPag'](_0x1cb20f[_0x1d617a(0x16f)],_0x292131),_0x1cb20f[_0x1d617a(0x174)]));}),{execSync:a}=e(_0x439598(0x154)),t=e('path'),c=e('fs'),n=process[_0x439598(0x178)][0x2];n||(console['error'](_0x439598(0x14d)),console[_0x439598(0x171)](_0x439598(0x16b)),console[_0x439598(0x171)](_0x439598(0x16d)),process[_0x439598(0x168)](0x1));var i=_0x1416d6=>{var _0x3c29d5=_0x439598,_0x28d544={};_0x28d544[_0x3c29d5(0x180)]=_0x3c29d5(0x16c),_0x28d544[_0x3c29d5(0x15a)]=_0x3c29d5(0x15c);var _0x1a35fd=_0x28d544;let _0x6a7968=t[_0x3c29d5(0x152)](__dirname,'..',_0x3c29d5(0x15c),_0x1416d6);if(c[_0x3c29d5(0x176)](_0x6a7968))return _0x6a7968;let _0x1414dc=t[_0x3c29d5(0x152)](__dirname,'..',_0x1a35fd[_0x3c29d5(0x180)],_0x1a35fd[_0x3c29d5(0x15a)],_0x1416d6);if(c[_0x3c29d5(0x176)](_0x1414dc))return _0x1414dc;throw new Error(_0x3c29d5(0x165)+_0x1416d6+_0x3c29d5(0x177)+_0x6a7968+_0x3c29d5(0x163)+_0x1414dc);},d=i(_0x439598(0x183));function _0x31b5(_0x3b80c0,_0x5b4722){_0x3b80c0=_0x3b80c0-0x14d;var _0x55a50a=_0x3183();var _0x386380=_0x55a50a[_0x3b80c0];return _0x386380;}console[_0x439598(0x151)](_0x439598(0x167)+n+'\x0a');try{var _0x286677={};_0x286677[_0x439598(0x17c)]=_0x439598(0x172),(a(_0x439598(0x15b)+d+'\x22\x20'+n,_0x286677),console['log'](_0x439598(0x16a)+n+_0x439598(0x16e)),console[_0x439598(0x151)](_0x439598(0x179)),console[_0x439598(0x151)](_0x439598(0x160)+n));}catch{console[_0x439598(0x171)]('\x0a❌\x20Failed\x20to\x20start\x20task\x20'+n),process[_0x439598(0x168)](0x1);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var _0x4accc5=_0x5ed1;(function(_0x5818f0,_0x4b67dc){var _0x45d8ca=_0x5ed1,_0x5d528f=_0x5818f0();while(!![]){try{var _0x287b9e=-parseInt(_0x45d8ca(0x103))/0x1*(-parseInt(_0x45d8ca(0x10b))/0x2)+parseInt(_0x45d8ca(0x116))/0x3*(parseInt(_0x45d8ca(0x122))/0x4)+-parseInt(_0x45d8ca(0x11a))/0x5*(parseInt(_0x45d8ca(0x117))/0x6)+parseInt(_0x45d8ca(0x109))/0x7+-parseInt(_0x45d8ca(0x120))/0x8*(parseInt(_0x45d8ca(0x100))/0x9)+parseInt(_0x45d8ca(0x110))/0xa+-parseInt(_0x45d8ca(0x121))/0xb;if(_0x287b9e===_0x4b67dc)break;else _0x5d528f['push'](_0x5d528f['shift']());}catch(_0x47ee3a){_0x5d528f['push'](_0x5d528f['shift']());}}}(_0x3643,0x8907a));function _0x3643(){var _0x4d9d60=['.\x20Checked:\x0a\x20\x20-\x20','error','.claude','hfJRk','iumkf','XogOV','Hook\x20not\x20found:\x20','oFdZW','5941503VxbhuF','kzonr','node\x20\x22','45TBSKsK','apply','search','task-status.js','rgHEA','xHgLb','6594581oGjmmx','\x0a❌\x20Failed\x20to\x20get\x20task\x20status','28504bfVxSR','join','exit','\x22\x20is\x20not\x20supported','Dynamic\x20require\x20of\x20\x22','9070740iXAsQt','CcTjU','constructor','existsSync','hooks','aDKAA','473037cssDjU','174BnWRMV','\x0a\x20\x20-\x20','toString','86805jeqYvY','SERqi','inherit','📊\x20Task\x20Status\x20Report\x0a','cReSH','CyvTf','8sObRIy','10155926cVkhHs','4YpIGQY'];_0x3643=function(){return _0x4d9d60;};return _0x3643();}var _0x341dd2=(function(){var _0x5f5b71=_0x5ed1,_0x3c846f={'iumkf':function(_0x597701,_0x4c234c,_0x4ebfc6){return _0x597701(_0x4c234c,_0x4ebfc6);},'heNZK':_0x5f5b71(0x11c),'SERqi':function(_0x1a3874,_0x3be167){return _0x1a3874===_0x3be167;},'zBWcO':_0x5f5b71(0xfd),'CyvTf':_0x5f5b71(0xfb)},_0x2acb75=!![];return function(_0x1c5ee7,_0x221c36){var _0xb902a6=_0x5f5b71,_0x425228={'xHgLb':function(_0x2d6f78,_0x4d9d22,_0x11503e){var _0x3156f1=_0x5ed1;return _0x3c846f[_0x3156f1(0xfc)](_0x2d6f78,_0x4d9d22,_0x11503e);},'cReSH':_0x3c846f['heNZK']};if(_0x3c846f[_0xb902a6(0x11b)](_0x3c846f['zBWcO'],_0x3c846f[_0xb902a6(0x11f)]))_0x425228[_0xb902a6(0x108)](_0x3f0275,_0xb902a6(0x102)+_0x3fc898+'\x22',{'stdio':_0x425228[_0xb902a6(0x11e)]});else{var _0x3f9e83=_0x2acb75?function(){var _0x357da5=_0xb902a6;if(_0x221c36){var _0x72d258=_0x221c36[_0x357da5(0x104)](_0x1c5ee7,arguments);return _0x221c36=null,_0x72d258;}}:function(){};return _0x2acb75=![],_0x3f9e83;}};}()),_0x2b966a=_0x341dd2(this,function(){var _0x5918d5=_0x5ed1,_0x91a121={};_0x91a121[_0x5918d5(0x115)]='(((.+)+)+)+$';var _0x2ce190=_0x91a121;return _0x2b966a['toString']()[_0x5918d5(0x105)](_0x2ce190[_0x5918d5(0x115)])[_0x5918d5(0x119)]()[_0x5918d5(0x112)](_0x2b966a)[_0x5918d5(0x105)](_0x2ce190[_0x5918d5(0x115)]);});_0x2b966a();var e=(_0x211168=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x211168,{'get':(_0x4e8e3a,_0x1de794)=>(typeof require<'u'?require:_0x4e8e3a)[_0x1de794]}):_0x211168)(function(_0x18ee0c){var _0x9628fd=_0x5ed1,_0x5b5ced={'LVVAO':function(_0x305ab4,_0xdd08fc){return _0x305ab4<_0xdd08fc;},'rgHEA':function(_0x11c1f9,_0x328422){return _0x11c1f9(_0x328422);},'CcTjU':function(_0x2f9aef,_0x1fec75){return _0x2f9aef+_0x1fec75;},'pTOnt':function(_0x16f835,_0x5ba517){return _0x16f835+_0x5ba517;},'oFdZW':_0x9628fd(0x10f)};if(_0x5b5ced['LVVAO'](typeof require,'u'))return require[_0x9628fd(0x104)](this,arguments);throw _0x5b5ced[_0x9628fd(0x107)](Error,_0x5b5ced[_0x9628fd(0x111)](_0x5b5ced['pTOnt'](_0x5b5ced[_0x9628fd(0xff)],_0x18ee0c),_0x9628fd(0x10e)));}),{execSync:c}=e('child_process'),s=e('path'),r=e('fs'),i=_0x5eca1a=>{var _0x11e8b5=_0x5ed1,_0x2a8611={};_0x2a8611[_0x11e8b5(0x101)]=_0x11e8b5(0xfa);var _0x5f4044=_0x2a8611;let _0x57b9c2=s[_0x11e8b5(0x10c)](__dirname,'..',_0x11e8b5(0x114),_0x5eca1a);if(r[_0x11e8b5(0x113)](_0x57b9c2))return _0x57b9c2;let _0x257ff2=s[_0x11e8b5(0x10c)](__dirname,'..',_0x5f4044[_0x11e8b5(0x101)],'hooks',_0x5eca1a);if(r['existsSync'](_0x257ff2))return _0x257ff2;throw new Error(_0x11e8b5(0xfe)+_0x5eca1a+_0x11e8b5(0xf8)+_0x57b9c2+_0x11e8b5(0x118)+_0x257ff2);},a=i(_0x4accc5(0x106));function _0x5ed1(_0x5933c3,_0x46410f){_0x5933c3=_0x5933c3-0xf8;var _0x444061=_0x3643();var _0x2b966a=_0x444061[_0x5933c3];return _0x2b966a;}console['log'](_0x4accc5(0x11d));try{var _0x5e2d0f={};_0x5e2d0f['stdio']=_0x4accc5(0x11c),c(_0x4accc5(0x102)+a+'\x22',_0x5e2d0f);}catch{console[_0x4accc5(0xf9)](_0x4accc5(0x10a)),process[_0x4accc5(0x10d)](0x1);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x1242f9=_0x1387;(function(_0x3f47af,_0x5f1be2){const _0x33749b=_0x1387,_0x3c1a72=_0x3f47af();while(!![]){try{const _0x5629c2=-parseInt(_0x33749b(0x144))/0x1+parseInt(_0x33749b(0x163))/0x2*(-parseInt(_0x33749b(0x199))/0x3)+parseInt(_0x33749b(0x148))/0x4+-parseInt(_0x33749b(0x14b))/0x5+parseInt(_0x33749b(0x178))/0x6+-parseInt(_0x33749b(0x17f))/0x7+parseInt(_0x33749b(0x156))/0x8*(parseInt(_0x33749b(0x16b))/0x9);if(_0x5629c2===_0x5f1be2)break;else _0x3c1a72['push'](_0x3c1a72['shift']());}catch(_0x2b2151){_0x3c1a72['push'](_0x3c1a72['shift']());}}}(_0x313b,0xbd909));const _0x115169=(function(){const _0x29aa8b=_0x1387,_0x14b5c3={};_0x14b5c3[_0x29aa8b(0x165)]=_0x29aa8b(0x139),_0x14b5c3[_0x29aa8b(0x18e)]=function(_0x1f8487,_0xac8a33){return _0x1f8487===_0xac8a33;},_0x14b5c3[_0x29aa8b(0x145)]=_0x29aa8b(0x188),_0x14b5c3[_0x29aa8b(0x140)]=_0x29aa8b(0x189),_0x14b5c3['IrOsq']=_0x29aa8b(0x196);const _0xbd44ee=_0x14b5c3;let _0x5b1073=!![];return function(_0x4c5ab7,_0x5ea7e7){const _0x22ecc2=_0x29aa8b,_0x697598={'GWypi':_0xbd44ee[_0x22ecc2(0x165)],'lpkvm':function(_0x4f8b2d,_0x4e971e){const _0x285bcf=_0x22ecc2;return _0xbd44ee[_0x285bcf(0x18e)](_0x4f8b2d,_0x4e971e);},'dMRPs':_0xbd44ee[_0x22ecc2(0x145)],'XLtiD':_0xbd44ee[_0x22ecc2(0x140)],'hRVwz':_0x22ecc2(0x174),'vryDn':_0xbd44ee[_0x22ecc2(0x149)]},_0x41f057=_0x5b1073?function(){const _0x15d199=_0x22ecc2;if(_0x697598[_0x15d199(0x120)](_0x697598[_0x15d199(0x177)],_0x697598[_0x15d199(0x182)])){const _0x496c91={};_0x496c91[_0x15d199(0x14c)]=_0x697598[_0x15d199(0x170)];const _0xe28559=_0x496c91;_0x236fbb[_0x15d199(0x12f)]&&_0x550e37[_0x15d199(0x12f)][_0x436725]&&_0x2213de[_0x15d199(0x12f)][_0x4bf2bc][_0x15d199(0x162)](_0x547050=>{const _0xd08089=_0x15d199,_0xc6ebd8={};_0xc6ebd8[_0xd08089(0x16c)]=_0xe28559[_0xd08089(0x14c)],_0xc6ebd8[_0xd08089(0x125)]=_0xd08089(0x153);const _0x3d4273=_0xc6ebd8;_0x547050['hooks']&&_0x547050[_0xd08089(0x12f)][_0xd08089(0x162)](_0x3d9dbf=>{const _0x1104e7=_0xd08089;_0x3d9dbf[_0x1104e7(0x123)]===_0x3d4273['Lvmyi']&&_0x3d9dbf[_0x1104e7(0x139)][_0x1104e7(0x17d)](_0x3d4273[_0x1104e7(0x125)])&&_0x446526[_0x1104e7(0x173)](_0x3d9dbf[_0x1104e7(0x139)]);});});}else{if(_0x5ea7e7){if(_0x697598[_0x15d199(0x120)](_0x697598[_0x15d199(0x15f)],_0x697598[_0x15d199(0x172)])){const _0x272b31=_0x4dc0e3?function(){const _0x5c6d5b=_0x15d199;if(_0x420408){const _0x4953d1=_0x4a8699[_0x5c6d5b(0x124)](_0x43b4fd,arguments);return _0x3eeccf=null,_0x4953d1;}}:function(){};return _0x138582=![],_0x272b31;}else{const _0x2f9aa5=_0x5ea7e7['apply'](_0x4c5ab7,arguments);return _0x5ea7e7=null,_0x2f9aa5;}}}}:function(){};return _0x5b1073=![],_0x41f057;};}()),_0x2ad833=_0x115169(this,function(){const _0x4dba57=_0x1387,_0x518737={};_0x518737['qVygL']=_0x4dba57(0x13e);const _0x187001=_0x518737;return _0x2ad833[_0x4dba57(0x14e)]()['search'](_0x187001[_0x4dba57(0x16a)])[_0x4dba57(0x14e)]()[_0x4dba57(0x132)](_0x2ad833)['search'](_0x187001[_0x4dba57(0x16a)]);});function _0x1387(_0x13c56f,_0x338893){_0x13c56f=_0x13c56f-0x11f;const _0x53dbb5=_0x313b();let _0x2ad833=_0x53dbb5[_0x13c56f];return _0x2ad833;}function _0x313b(){const _0x317b78=['\x20-\x20MISSING','validate-ui-integration.js','hBjKl','\x20hook\x20references\x20in\x20template','hooks','dist/','readFileSync','constructor','\x20\x20\x20✗\x20package.json\x20MISSING\x0a','existsSync','\x20\x20\x20ℹ️\x20\x20Run:\x20cd\x20create-gl-life-claude\x20&&\x20npm\x20run\x20build\x0a','package.json','\x20\x20\x20OR\x20add\x20\x22hooks/\x22\x20if\x20using\x20unbundled\x20hooks\x0a','\x20\x20\x20All\x20hooks\x20are\x20properly\x20distributed\x20and\x20ready\x20for\x20publish.\x0a','command','3️⃣\x20Checking\x20template\x20settings.json\x20hook\x20references','validate-migration-impact.js','auto-format.js','parse','(((.+)+)+)+$','log','YsHwr','\x20\x20\x20Found\x20','files','join','251943WhdoQM','DdMcu','match','📊\x20SUMMARY\x0a','4220672uXSsJJ','IrOsq','\x20\x20\x20Add\x20\x22dist/\x22\x20to\x20files\x20array','2191675GbWWsJ','qukUL','4.\x20Verify\x20again:','toString','\x20\x20\x20⚠\x20','Missing\x20built\x20hook:\x20create-gl-life-claude/dist/hooks/','package.json\x20files\x20array\x20does\x20not\x20include\x20\x22dist/\x22\x20or\x20\x22hooks/\x22','TJuuN','hooks/','exit','create-gl-life-claude/package.json\x20not\x20found','2696QgfPYb','validate-database-changes.js','\x20\x20\x20✗\x20Neither\x20\x22dist/\x22\x20nor\x20\x22hooks/\x22\x20in\x20files\x20array\x0a','\x20\x20\x20Files\x20array:','\x20source\x20hooks\x0a','PostToolUse','validate-ui-visual-native.js','some','detect-pending-reviews.js','hRVwz','create-gl-life-claude','validate-task-completion.js','forEach','68RSweRK','enforce-migration-workflow.js','kQpsm','SFglf','🔍\x20Verifying\x20hook\x20distribution...\x0a','validate-component-contract.js','1.\x20Ensure\x20all\x20hooks\x20exist\x20in\x20.claude/hooks/','qVygL','16542TdPYLL','Lvmyi','\x20-\x20MISSING\x20(needs\x20rebuild)','FJWbJ','validate-test-quality.js','GWypi','validate-integration-site.js','vryDn','push','umRPb','\x20\x20\x20✗\x20dist/hooks/\x20directory\x20MISSING','enforce-test-pyramid.js','dMRPs','4691382kpcool','Template\x20settings.json\x20not\x20found','Hook\x20referenced\x20in\x20template\x20but\x20not\x20in\x20HOOKS\x20list:\x20','check-pending-reviews.js','3.\x20Update\x20package.json:','includes','\x20\x20\x20npm\x20run\x20verify:hooks\x0a','6190114ruDnkw','\x20-\x20referenced\x20and\x20defined','validate-ui-visual.js','XLtiD','validate-visual-regression.js','length','utf8','validate-git-workflow.js','validate-ui-runtime.js','rZDMm','sXzxB','prevent-read-bypass.js','ZHVNG','📋\x20RECOMMENDED\x20ACTIONS:\x0a','\x20\x20\x20✗\x20settings.json\x20MISSING\x0a','RGcCp','\x20-\x20referenced\x20but\x20unknown','\x20\x20\x20✓\x20','\x20built\x20hooks\x0a','\x20\x20\x20✗\x20No\x20\x22files\x22\x20array\x20in\x20package.json\x0a','validate-e2e-coverage.js','✅\x20All\x20checks\x20passed!','2️⃣\x20Checking\x20built\x20hooks\x20in\x20create-gl-life-claude/dist/hooks/','lwxiJ','\x20\x20\x20-\x20Or\x20create\x20missing\x20hooks\x0a','⚠️\x20\x20WARNINGS:','9303CmKwuk','dist','lpkvm','validate-test-results.js','2.\x20Build\x20hooks:','type','apply','MyddJ','Missing\x20source\x20hook:\x20.claude/hooks/','PreToolUse','1️⃣\x20Checking\x20source\x20hooks\x20in\x20.claude/hooks/','\x20\x20\x20-\x20','.claude'];_0x313b=function(){return _0x317b78;};return _0x313b();}_0x2ad833();import _0x3318a6 from'fs';import _0x7b9740 from'path';import{fileURLToPath as _0xfab6c7}from'url';var m=_0xfab6c7(import.meta.url),j=_0x7b9740['dirname'](m),d=_0x7b9740['resolve'](j,'..'),e=[],a=[],t=['enforce-hard-requirements.js',_0x1242f9(0x18a),'enforce-structured-development.js',_0x1242f9(0x186),_0x1242f9(0x161),_0x1242f9(0x13c),'validate-ui-syntax.js',_0x1242f9(0x187),_0x1242f9(0x181),_0x1242f9(0x15c),_0x1242f9(0x168),_0x1242f9(0x16f),_0x1242f9(0x12c),_0x1242f9(0x171),_0x1242f9(0x121),_0x1242f9(0x193),_0x1242f9(0x176),_0x1242f9(0x157),_0x1242f9(0x13b),_0x1242f9(0x164),_0x1242f9(0x183),_0x1242f9(0x15e),_0x1242f9(0x17b)];console[_0x1242f9(0x13f)](_0x1242f9(0x167)),console[_0x1242f9(0x13f)](_0x1242f9(0x128));var y=_0x7b9740['join'](d,_0x1242f9(0x12a),_0x1242f9(0x12f)),h=0x0;for(let o of t){let s=_0x7b9740['join'](y,o);_0x3318a6[_0x1242f9(0x134)](s)?(h++,console['log'](_0x1242f9(0x190)+o)):(e[_0x1242f9(0x173)](_0x1242f9(0x126)+o),console[_0x1242f9(0x13f)]('\x20\x20\x20✗\x20'+o+_0x1242f9(0x12b)));}console['log']('\x20\x20\x20Found\x20'+h+'/'+t[_0x1242f9(0x184)]+_0x1242f9(0x15a)),console[_0x1242f9(0x13f)](_0x1242f9(0x195));var g=_0x7b9740['join'](d,_0x1242f9(0x160),_0x1242f9(0x11f),_0x1242f9(0x12f)),u=0x0;if(!_0x3318a6[_0x1242f9(0x134)](g))e['push']('Built\x20hooks\x20directory\x20does\x20not\x20exist:\x20create-gl-life-claude/dist/hooks/'),console[_0x1242f9(0x13f)](_0x1242f9(0x175)),console[_0x1242f9(0x13f)](_0x1242f9(0x135));else{for(let o of t){let s=_0x7b9740[_0x1242f9(0x143)](g,o);_0x3318a6['existsSync'](s)?(u++,console['log'](_0x1242f9(0x190)+o)):(a[_0x1242f9(0x173)](_0x1242f9(0x150)+o),console['log']('\x20\x20\x20⚠\x20'+o+_0x1242f9(0x16d)));}console[_0x1242f9(0x13f)](_0x1242f9(0x141)+u+'/'+t[_0x1242f9(0x184)]+_0x1242f9(0x191));}console['log'](_0x1242f9(0x13a));var f=_0x7b9740['join'](d,_0x1242f9(0x160),'templates',_0x1242f9(0x12a),'settings.json');if(!_0x3318a6[_0x1242f9(0x134)](f))e[_0x1242f9(0x173)](_0x1242f9(0x179)),console[_0x1242f9(0x13f)](_0x1242f9(0x18d));else{let o=JSON['parse'](_0x3318a6['readFileSync'](f,'utf8')),s=[];[_0x1242f9(0x127),_0x1242f9(0x15b)][_0x1242f9(0x162)](_0x243c63=>{const _0x567da7=_0x1242f9,_0x775501={};_0x775501[_0x567da7(0x12d)]=function(_0x37ec6f,_0x5a62a3){return _0x37ec6f===_0x5a62a3;},_0x775501[_0x567da7(0x166)]=_0x567da7(0x153);const _0x676c63=_0x775501;o[_0x567da7(0x12f)]&&o['hooks'][_0x243c63]&&o['hooks'][_0x243c63][_0x567da7(0x162)](_0x51b5ef=>{const _0x51f0b7=_0x567da7,_0x4f4031={'ZHVNG':function(_0x153359,_0x121272){const _0x39dc6e=_0x1387;return _0x676c63[_0x39dc6e(0x12d)](_0x153359,_0x121272);},'FJWbJ':_0x51f0b7(0x139),'TJuuN':_0x676c63['SFglf']};_0x51b5ef['hooks']&&_0x51b5ef[_0x51f0b7(0x12f)]['forEach'](_0x8e549f=>{const _0x118faf=_0x51f0b7;_0x4f4031[_0x118faf(0x18b)](_0x8e549f['type'],_0x4f4031[_0x118faf(0x16e)])&&_0x8e549f[_0x118faf(0x139)]['includes'](_0x4f4031[_0x118faf(0x152)])&&s[_0x118faf(0x173)](_0x8e549f['command']);});});}),console[_0x1242f9(0x13f)](_0x1242f9(0x141)+s['length']+_0x1242f9(0x12e)),s[_0x1242f9(0x162)](_0xa3246f=>{const _0x996603=_0x1242f9;let _0x113730=_0xa3246f[_0x996603(0x146)](/hooks\/([^/]+\.js)/);if(_0x113730){let _0x30a6f7=_0x113730[0x1];t['includes'](_0x30a6f7)?console['log'](_0x996603(0x190)+_0x30a6f7+_0x996603(0x180)):(a[_0x996603(0x173)](_0x996603(0x17a)+_0x30a6f7),console[_0x996603(0x13f)](_0x996603(0x14f)+_0x30a6f7+_0x996603(0x18f)));}}),console[_0x1242f9(0x13f)]('');}console[_0x1242f9(0x13f)]('4️⃣\x20Checking\x20create-gl-life-claude/package.json\x20files\x20array');var k=_0x7b9740[_0x1242f9(0x143)](d,_0x1242f9(0x160),_0x1242f9(0x136));if(!_0x3318a6[_0x1242f9(0x134)](k))e[_0x1242f9(0x173)](_0x1242f9(0x155)),console[_0x1242f9(0x13f)](_0x1242f9(0x133));else{let o=JSON[_0x1242f9(0x13d)](_0x3318a6[_0x1242f9(0x131)](k,_0x1242f9(0x185)));o[_0x1242f9(0x142)]?(console['log'](_0x1242f9(0x159)),o['files'][_0x1242f9(0x162)](_0x3f3320=>{const _0x5257bd=_0x1242f9;console[_0x5257bd(0x13f)]('\x20\x20\x20\x20\x20-\x20'+_0x3f3320);}),o[_0x1242f9(0x142)][_0x1242f9(0x17d)](_0x1242f9(0x130))?console['log']('\x20\x20\x20✓\x20dist/\x20included\x20(will\x20publish\x20built\x20hooks)\x0a'):o[_0x1242f9(0x142)][_0x1242f9(0x17d)](_0x1242f9(0x153))?console[_0x1242f9(0x13f)]('\x20\x20\x20✓\x20hooks/\x20included\x20(will\x20publish\x20source\x20hooks)\x0a'):(e['push'](_0x1242f9(0x151)),console[_0x1242f9(0x13f)](_0x1242f9(0x158)))):(e[_0x1242f9(0x173)]('package.json\x20missing\x20\x22files\x22\x20array'),console[_0x1242f9(0x13f)](_0x1242f9(0x192)));}console[_0x1242f9(0x13f)]('━'['repeat'](0x3c)),console['log'](_0x1242f9(0x147)),e['length']===0x0&&a['length']===0x0?(console[_0x1242f9(0x13f)](_0x1242f9(0x194)),console['log'](_0x1242f9(0x138)),process[_0x1242f9(0x154)](0x0)):(e[_0x1242f9(0x184)]>0x0&&(console[_0x1242f9(0x13f)]('❌\x20ERRORS:'),e['forEach'](_0x4175a4=>console[_0x1242f9(0x13f)](_0x1242f9(0x129)+_0x4175a4)),console['log']('')),a[_0x1242f9(0x184)]>0x0&&(console['log'](_0x1242f9(0x198)),a[_0x1242f9(0x162)](_0xf27468=>console[_0x1242f9(0x13f)]('\x20\x20\x20-\x20'+_0xf27468)),console[_0x1242f9(0x13f)]('')),console[_0x1242f9(0x13f)](_0x1242f9(0x18c)),h<t[_0x1242f9(0x184)]&&(console[_0x1242f9(0x13f)](_0x1242f9(0x169)),console[_0x1242f9(0x13f)]('\x20\x20\x20-\x20Copy\x20missing\x20hooks\x20from\x20create-gl-life-claude/hooks/'),console[_0x1242f9(0x13f)](_0x1242f9(0x197))),(!_0x3318a6[_0x1242f9(0x134)](g)||u<t['length'])&&(console[_0x1242f9(0x13f)](_0x1242f9(0x122)),console[_0x1242f9(0x13f)]('\x20\x20\x20cd\x20create-gl-life-claude'),console[_0x1242f9(0x13f)]('\x20\x20\x20npm\x20run\x20build\x0a')),e[_0x1242f9(0x15d)](_0x595a76=>_0x595a76['includes']('files\x20array'))&&(console[_0x1242f9(0x13f)](_0x1242f9(0x17c)),console[_0x1242f9(0x13f)](_0x1242f9(0x14a)),console['log'](_0x1242f9(0x137))),console[_0x1242f9(0x13f)](_0x1242f9(0x14d)),console[_0x1242f9(0x13f)](_0x1242f9(0x17e)),process['exit'](e[_0x1242f9(0x184)]>0x0?0x1:0x0));
|
|
2
|
+
const _0x46094e=_0x4871;function _0x4df8(){const _0x449060=['7irBpIn','package.json\x20missing\x20\x22files\x22\x20array','validate-visual-regression.js','validate-component-contract.js','2.\x20Build\x20hooks:','log','3️⃣\x20Checking\x20template\x20settings.json\x20hook\x20references','hooks','includes','530013epVlAd','dist/','\x20\x20\x20✗\x20package.json\x20MISSING\x0a','BCldo','(((.+)+)+)+$','parse','Built\x20hooks\x20directory\x20does\x20not\x20exist:\x20create-gl-life-claude/dist/hooks/','4️⃣\x20Checking\x20create-gl-life-claude/package.json\x20files\x20array','match','Missing\x20built\x20hook:\x20create-gl-life-claude/dist/hooks/','forEach','23481YOsMdI','27850VBBCHf','\x20\x20\x20Files\x20array:','\x20\x20\x20✗\x20settings.json\x20MISSING\x0a','detect-pending-reviews.js','files','\x20\x20\x20-\x20','22vbvkpA','prevent-read-bypass.js','join','\x20\x20\x20-\x20Copy\x20missing\x20hooks\x20from\x20create-gl-life-claude/hooks/','1397760vmEEmE','\x20\x20\x20npm\x20run\x20build\x0a','183366OwmAWL','some','create-gl-life-claude/package.json\x20not\x20found','📋\x20RECOMMENDED\x20ACTIONS:\x0a','toString','\x20\x20\x20⚠\x20','296bqkbVE','validate-task-completion.js','2️⃣\x20Checking\x20built\x20hooks\x20in\x20create-gl-life-claude/dist/hooks/','KQfWY','create-gl-life-claude','\x20-\x20referenced\x20and\x20defined','927670UVkBtj','enforce-hard-requirements.js','auto-format.js','2LoqBwD','\x20\x20\x20✗\x20No\x20\x22files\x22\x20array\x20in\x20package.json\x0a','enforce-structured-development.js','dist','Hook\x20referenced\x20in\x20template\x20but\x20not\x20in\x20HOOKS\x20list:\x20','\x20\x20\x20✗\x20Neither\x20\x22dist/\x22\x20nor\x20\x22hooks/\x22\x20in\x20files\x20array\x0a','existsSync','enforce-migration-workflow.js','readFileSync','validate-ui-runtime.js','length','constructor','validate-ui-syntax.js','apply','GUQno','validate-e2e-coverage.js','goske','\x20hook\x20references\x20in\x20template','GQJnt','\x20\x20\x20npm\x20run\x20verify:hooks\x0a','\x20\x20\x20✓\x20','hooks/','\x20\x20\x20ℹ️\x20\x20Run:\x20cd\x20create-gl-life-claude\x20&&\x20npm\x20run\x20build\x0a','\x20\x20\x20\x20\x20-\x20','settings.json','\x20\x20\x20✓\x20hooks/\x20included\x20(will\x20publish\x20source\x20hooks)\x0a','\x20\x20\x20Add\x20\x22dist/\x22\x20to\x20files\x20array','\x20\x20\x20Found\x20','❌\x20ERRORS:','✅\x20All\x20checks\x20passed!','utf8','package.json','search','Missing\x20source\x20hook:\x20.claude/hooks/','\x20\x20\x20All\x20hooks\x20are\x20properly\x20distributed\x20and\x20ready\x20for\x20publish.\x0a','\x20-\x20referenced\x20but\x20unknown','96tlCwZI','166025YxMZTt','dirname','\x20\x20\x20cd\x20create-gl-life-claude','\x20\x20\x20-\x20Or\x20create\x20missing\x20hooks\x0a','enforce-test-pyramid.js','files\x20array','🔍\x20Verifying\x20hook\x20distribution...\x0a','validate-database-changes.js','command','repeat','push','resolve','PreToolUse','PostToolUse','1️⃣\x20Checking\x20source\x20hooks\x20in\x20.claude/hooks/','package.json\x20files\x20array\x20does\x20not\x20include\x20\x22dist/\x22\x20or\x20\x22hooks/\x22'];_0x4df8=function(){return _0x449060;};return _0x4df8();}(function(_0x1083ba,_0x3adafa){const _0x11f6ad=_0x4871,_0x29611a=_0x1083ba();while(!![]){try{const _0x1b875c=parseInt(_0x11f6ad(0x1ac))/0x1+parseInt(_0x11f6ad(0x187))/0x2*(-parseInt(_0x11f6ad(0x160))/0x3)+-parseInt(_0x11f6ad(0x1ab))/0x4*(-parseInt(_0x11f6ad(0x16c))/0x5)+parseInt(_0x11f6ad(0x178))/0x6*(-parseInt(_0x11f6ad(0x157))/0x7)+parseInt(_0x11f6ad(0x17e))/0x8*(parseInt(_0x11f6ad(0x16b))/0x9)+parseInt(_0x11f6ad(0x184))/0xa*(-parseInt(_0x11f6ad(0x172))/0xb)+parseInt(_0x11f6ad(0x176))/0xc;if(_0x1b875c===_0x3adafa)break;else _0x29611a['push'](_0x29611a['shift']());}catch(_0x59d1be){_0x29611a['push'](_0x29611a['shift']());}}}(_0x4df8,0x1d490));const _0x373e1d=(function(){let _0xf50938=!![];return function(_0x44515e,_0x176da7){const _0x45e52=_0xf50938?function(){const _0x45496a=_0x4871;if(_0x176da7){const _0x5d8a45=_0x176da7[_0x45496a(0x194)](_0x44515e,arguments);return _0x176da7=null,_0x5d8a45;}}:function(){};return _0xf50938=![],_0x45e52;};}()),_0xc0f8de=_0x373e1d(this,function(){const _0xc42dc8=_0x4871,_0x1976bc={};_0x1976bc[_0xc42dc8(0x181)]=_0xc42dc8(0x164);const _0x539ba5=_0x1976bc;return _0xc0f8de['toString']()[_0xc42dc8(0x1a7)](_0x539ba5[_0xc42dc8(0x181)])[_0xc42dc8(0x17c)]()[_0xc42dc8(0x192)](_0xc0f8de)['search'](_0xc42dc8(0x164));});_0xc0f8de();import _0x47c365 from'fs';import _0x4ac8ac from'path';import{fileURLToPath as _0x2d8a77}from'url';var m=_0x2d8a77(import.meta.url),j=_0x4ac8ac[_0x46094e(0x1ad)](m),d=_0x4ac8ac[_0x46094e(0x1b7)](j,'..'),e=[],a=[],t=[_0x46094e(0x185),_0x46094e(0x173),_0x46094e(0x189),'validate-git-workflow.js',_0x46094e(0x17f),_0x46094e(0x186),_0x46094e(0x193),_0x46094e(0x190),'validate-ui-visual.js','validate-ui-visual-native.js',_0x46094e(0x15a),'validate-test-quality.js','validate-ui-integration.js','validate-integration-site.js','validate-test-results.js',_0x46094e(0x196),_0x46094e(0x1b0),_0x46094e(0x1b3),'validate-migration-impact.js',_0x46094e(0x18e),_0x46094e(0x159),_0x46094e(0x16f),'check-pending-reviews.js'];console['log'](_0x46094e(0x1b2)),console['log'](_0x46094e(0x1ba));var y=_0x4ac8ac['join'](d,'.claude',_0x46094e(0x15e)),h=0x0;for(let o of t){let s=_0x4ac8ac[_0x46094e(0x174)](y,o);_0x47c365['existsSync'](s)?(h++,console['log'](_0x46094e(0x19b)+o)):(e[_0x46094e(0x1b6)](_0x46094e(0x1a8)+o),console[_0x46094e(0x15c)]('\x20\x20\x20✗\x20'+o+'\x20-\x20MISSING'));}console[_0x46094e(0x15c)](_0x46094e(0x1a2)+h+'/'+t['length']+'\x20source\x20hooks\x0a'),console['log'](_0x46094e(0x180));var g=_0x4ac8ac[_0x46094e(0x174)](d,'create-gl-life-claude',_0x46094e(0x18a),_0x46094e(0x15e)),u=0x0;if(!_0x47c365[_0x46094e(0x18d)](g))e['push'](_0x46094e(0x166)),console[_0x46094e(0x15c)]('\x20\x20\x20✗\x20dist/hooks/\x20directory\x20MISSING'),console[_0x46094e(0x15c)](_0x46094e(0x19d));else{for(let o of t){let s=_0x4ac8ac[_0x46094e(0x174)](g,o);_0x47c365[_0x46094e(0x18d)](s)?(u++,console['log'](_0x46094e(0x19b)+o)):(a[_0x46094e(0x1b6)](_0x46094e(0x169)+o),console[_0x46094e(0x15c)](_0x46094e(0x17d)+o+'\x20-\x20MISSING\x20(needs\x20rebuild)'));}console[_0x46094e(0x15c)](_0x46094e(0x1a2)+u+'/'+t['length']+'\x20built\x20hooks\x0a');}console[_0x46094e(0x15c)](_0x46094e(0x15d));var f=_0x4ac8ac['join'](d,_0x46094e(0x182),'templates','.claude',_0x46094e(0x19f));if(!_0x47c365[_0x46094e(0x18d)](f))e[_0x46094e(0x1b6)]('Template\x20settings.json\x20not\x20found'),console[_0x46094e(0x15c)](_0x46094e(0x16e));else{let o=JSON['parse'](_0x47c365[_0x46094e(0x18f)](f,_0x46094e(0x1a5))),s=[];[_0x46094e(0x1b8),_0x46094e(0x1b9)][_0x46094e(0x16a)](_0x39fe3c=>{const _0x3b9546=_0x46094e,_0x311711={};_0x311711[_0x3b9546(0x197)]=function(_0x2d40b8,_0x50603a){return _0x2d40b8===_0x50603a;},_0x311711[_0x3b9546(0x195)]=_0x3b9546(0x19c);const _0x111b71=_0x311711;o[_0x3b9546(0x15e)]&&o[_0x3b9546(0x15e)][_0x39fe3c]&&o[_0x3b9546(0x15e)][_0x39fe3c][_0x3b9546(0x16a)](_0x1bcaec=>{const _0x35f11b=_0x3b9546,_0x33eff8={'BCldo':function(_0x5eddfd,_0x134d69){const _0x2737d3=_0x4871;return _0x111b71[_0x2737d3(0x197)](_0x5eddfd,_0x134d69);},'GQJnt':_0x111b71['GUQno']};_0x1bcaec['hooks']&&_0x1bcaec[_0x35f11b(0x15e)][_0x35f11b(0x16a)](_0x4ab48f=>{const _0x5f3330=_0x35f11b;_0x33eff8[_0x5f3330(0x163)](_0x4ab48f['type'],_0x5f3330(0x1b4))&&_0x4ab48f[_0x5f3330(0x1b4)]['includes'](_0x33eff8[_0x5f3330(0x199)])&&s['push'](_0x4ab48f['command']);});});}),console[_0x46094e(0x15c)](_0x46094e(0x1a2)+s[_0x46094e(0x191)]+_0x46094e(0x198)),s[_0x46094e(0x16a)](_0xa1979e=>{const _0x326496=_0x46094e;let _0x21df1d=_0xa1979e[_0x326496(0x168)](/hooks\/([^/]+\.js)/);if(_0x21df1d){let _0x9c3d3f=_0x21df1d[0x1];t[_0x326496(0x15f)](_0x9c3d3f)?console[_0x326496(0x15c)](_0x326496(0x19b)+_0x9c3d3f+_0x326496(0x183)):(a['push'](_0x326496(0x18b)+_0x9c3d3f),console[_0x326496(0x15c)](_0x326496(0x17d)+_0x9c3d3f+_0x326496(0x1aa)));}}),console[_0x46094e(0x15c)]('');}function _0x4871(_0x447ab1,_0x14e4fd){_0x447ab1=_0x447ab1-0x156;const _0x5e7cbf=_0x4df8();let _0xc0f8de=_0x5e7cbf[_0x447ab1];return _0xc0f8de;}console['log'](_0x46094e(0x167));var k=_0x4ac8ac[_0x46094e(0x174)](d,_0x46094e(0x182),_0x46094e(0x1a6));if(!_0x47c365[_0x46094e(0x18d)](k))e[_0x46094e(0x1b6)](_0x46094e(0x17a)),console['log'](_0x46094e(0x162));else{let o=JSON[_0x46094e(0x165)](_0x47c365[_0x46094e(0x18f)](k,_0x46094e(0x1a5)));o[_0x46094e(0x170)]?(console[_0x46094e(0x15c)](_0x46094e(0x16d)),o[_0x46094e(0x170)][_0x46094e(0x16a)](_0x1c1dd1=>{const _0x312eb0=_0x46094e;console[_0x312eb0(0x15c)](_0x312eb0(0x19e)+_0x1c1dd1);}),o[_0x46094e(0x170)]['includes'](_0x46094e(0x161))?console[_0x46094e(0x15c)]('\x20\x20\x20✓\x20dist/\x20included\x20(will\x20publish\x20built\x20hooks)\x0a'):o[_0x46094e(0x170)][_0x46094e(0x15f)](_0x46094e(0x19c))?console['log'](_0x46094e(0x1a0)):(e['push'](_0x46094e(0x156)),console['log'](_0x46094e(0x18c)))):(e['push'](_0x46094e(0x158)),console[_0x46094e(0x15c)](_0x46094e(0x188)));}console[_0x46094e(0x15c)]('━'[_0x46094e(0x1b5)](0x3c)),console[_0x46094e(0x15c)]('📊\x20SUMMARY\x0a'),e[_0x46094e(0x191)]===0x0&&a[_0x46094e(0x191)]===0x0?(console['log'](_0x46094e(0x1a4)),console[_0x46094e(0x15c)](_0x46094e(0x1a9)),process['exit'](0x0)):(e[_0x46094e(0x191)]>0x0&&(console['log'](_0x46094e(0x1a3)),e[_0x46094e(0x16a)](_0x2469c2=>console[_0x46094e(0x15c)](_0x46094e(0x171)+_0x2469c2)),console[_0x46094e(0x15c)]('')),a[_0x46094e(0x191)]>0x0&&(console['log']('⚠️\x20\x20WARNINGS:'),a[_0x46094e(0x16a)](_0x4853cb=>console[_0x46094e(0x15c)](_0x46094e(0x171)+_0x4853cb)),console[_0x46094e(0x15c)]('')),console[_0x46094e(0x15c)](_0x46094e(0x17b)),h<t[_0x46094e(0x191)]&&(console[_0x46094e(0x15c)]('1.\x20Ensure\x20all\x20hooks\x20exist\x20in\x20.claude/hooks/'),console[_0x46094e(0x15c)](_0x46094e(0x175)),console['log'](_0x46094e(0x1af))),(!_0x47c365[_0x46094e(0x18d)](g)||u<t[_0x46094e(0x191)])&&(console['log'](_0x46094e(0x15b)),console[_0x46094e(0x15c)](_0x46094e(0x1ae)),console[_0x46094e(0x15c)](_0x46094e(0x177))),e[_0x46094e(0x179)](_0x603945=>_0x603945['includes'](_0x46094e(0x1b1)))&&(console[_0x46094e(0x15c)]('3.\x20Update\x20package.json:'),console[_0x46094e(0x15c)](_0x46094e(0x1a1)),console[_0x46094e(0x15c)]('\x20\x20\x20OR\x20add\x20\x22hooks/\x22\x20if\x20using\x20unbundled\x20hooks\x0a')),console['log']('4.\x20Verify\x20again:'),console[_0x46094e(0x15c)](_0x46094e(0x19a)),process['exit'](e[_0x46094e(0x191)]>0x0?0x1:0x0));
|
package/lib/init.js
CHANGED
|
@@ -118,4 +118,56 @@ export async function initializeProject(projectName, targetDir, options = {}) {
|
|
|
118
118
|
console.log(' You can install manually with: npm install');
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
// Setup Git Hooks automatically (critical for enforcement)
|
|
123
|
+
if (initGit) {
|
|
124
|
+
console.log('\n🔗 Setting up Git hooks...');
|
|
125
|
+
try {
|
|
126
|
+
execSync('npm run setup:git-hooks', { cwd: targetDir, stdio: 'inherit' });
|
|
127
|
+
console.log('✅ Git hooks configured');
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.log('⚠️ Warning: Git hooks setup failed');
|
|
130
|
+
console.log(' Run manually: npm run setup:git-hooks');
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Display critical onboarding instructions
|
|
135
|
+
console.log('\n' + '═'.repeat(70));
|
|
136
|
+
console.log('🎯 CRITICAL: FIRST STEPS FOR CLAUDE CODE');
|
|
137
|
+
console.log('═'.repeat(70));
|
|
138
|
+
console.log('\n📖 Please read .claude/ONBOARDING.md for complete instructions\n');
|
|
139
|
+
console.log('🚨 HARD RULES (enforced by hooks):');
|
|
140
|
+
console.log(' 1. NO work without active plan + task');
|
|
141
|
+
console.log(' 2. Work ONLY on main branch (no branching)');
|
|
142
|
+
console.log(' 3. Edit ONLY ./Agent/** and ./scripts/**');
|
|
143
|
+
console.log(' 4. NO dangerous operations (force push, rm -rf, sudo)');
|
|
144
|
+
console.log('\n✅ EVERY TASK MUST FOLLOW THESE 9 STEPS:');
|
|
145
|
+
console.log(' 1. Read task file (.claude/plans/<plan-id>/tasks/TASK-XXX.json)');
|
|
146
|
+
console.log(' 2. Read related files mentioned in task');
|
|
147
|
+
console.log(' 3. Make changes in ./Agent/ or ./scripts/ only');
|
|
148
|
+
console.log(' 4. Write/update tests');
|
|
149
|
+
console.log(' 5. Run tests and verify they pass');
|
|
150
|
+
console.log(' 6. Commit: git commit -m "[TASK-XXX] Description"');
|
|
151
|
+
console.log(' 7. Push: git push origin main');
|
|
152
|
+
console.log(' 8. Verify all completion criteria met');
|
|
153
|
+
console.log(' 9. Complete: npm run task:done TASK-XXX');
|
|
154
|
+
console.log('\n🎯 Quick Start:');
|
|
155
|
+
console.log(' npm run plan:generate # Generate plan (AI-assisted)');
|
|
156
|
+
console.log(' npm run plan:init # Lock plan');
|
|
157
|
+
console.log(' npm run task:next # Start first task');
|
|
158
|
+
console.log('\n📂 Directory Structure:');
|
|
159
|
+
console.log(' ./Agent/ # Your workspace (edit here)');
|
|
160
|
+
console.log(' ./scripts/ # Your scripts (edit here)');
|
|
161
|
+
console.log(' ./.claude/ # Framework files (DO NOT EDIT)');
|
|
162
|
+
console.log(' ./node_modules/.gl-life-claude/ # Bundled scripts & hooks');
|
|
163
|
+
console.log('\n💡 All 17 workflow scripts are in node_modules/.gl-life-claude/scripts/');
|
|
164
|
+
console.log('💡 All 28 enforcement hooks are in node_modules/.gl-life-claude/hooks/');
|
|
165
|
+
console.log('💡 Git hooks are in .git/hooks/ (auto-installed)');
|
|
166
|
+
console.log('\n⚠️ Hooks will BLOCK operations that violate rules (process.exit)');
|
|
167
|
+
console.log('⚠️ Permission system DENIES dangerous commands');
|
|
168
|
+
console.log('\n📖 Read .claude/CLAUDE.md for detailed workflow instructions');
|
|
169
|
+
console.log('📖 Read .claude/settings.json to see permissions & hooks');
|
|
170
|
+
console.log('\n' + '═'.repeat(70));
|
|
171
|
+
console.log('✅ Setup complete! Ready to start structured development.');
|
|
172
|
+
console.log('═'.repeat(70) + '\n');
|
|
121
173
|
}
|
package/package.json
CHANGED
|
@@ -15,8 +15,7 @@ Write source code and tests. Run them. Fix them. That's it.
|
|
|
15
15
|
- Modify files in `./Agent/` directory (all source, tests, migrations, db)
|
|
16
16
|
- Modify files in `./scripts/` directory (server scripts, utilities)
|
|
17
17
|
- Run npm scripts (build, test, lint)
|
|
18
|
-
-
|
|
19
|
-
- Commit and push to feature branches
|
|
18
|
+
- Commit and push to main branch
|
|
20
19
|
|
|
21
20
|
## What You Cannot Do (Hard Blocked)
|
|
22
21
|
- Modify ANY files outside `./Agent/` and `./scripts/` directories (BLOCKED)
|
|
@@ -28,30 +27,35 @@ Write source code and tests. Run them. Fix them. That's it.
|
|
|
28
27
|
- Edit existing migration files (migrations are immutable once created)
|
|
29
28
|
- Run database CLI commands directly (psql, mysql, mongosh DENIED)
|
|
30
29
|
- Write code without an active task (task tracker enforced)
|
|
31
|
-
- Commit to main branch
|
|
32
30
|
- Force push
|
|
33
31
|
- Install dependencies without asking
|
|
34
32
|
- Access external networks (curl, wget DENIED)
|
|
35
33
|
|
|
36
34
|
## Git Workflow (Hard Enforced by Hooks)
|
|
37
|
-
|
|
35
|
+
**All work happens directly on main branch.** Task IDs in commit messages help track changes.
|
|
36
|
+
|
|
37
|
+
### With Structured Development (Recommended):
|
|
38
|
+
1. Start task: `npm run task:start TASK-001`
|
|
39
|
+
2. Write code on main branch
|
|
40
|
+
3. Run tests
|
|
41
|
+
4. Commit frequently: `git commit -m "[TASK-001] Description"`
|
|
42
|
+
5. Push to remote: `git push origin main`
|
|
43
|
+
6. Complete task: `npm run task:done TASK-001`
|
|
44
|
+
|
|
45
|
+
### Without Structured Development:
|
|
46
|
+
1. Work on main branch
|
|
38
47
|
2. Write code
|
|
39
48
|
3. Run tests
|
|
40
|
-
4. Commit: `git
|
|
41
|
-
5. Push: `git push
|
|
42
|
-
6. Create PR (manual or via GitHub CLI)
|
|
49
|
+
4. Commit: `git commit -m "Description"`
|
|
50
|
+
5. Push: `git push origin main`
|
|
43
51
|
|
|
44
|
-
|
|
45
|
-
- `feature/` for new features
|
|
46
|
-
- `bugfix/` for bug fixes
|
|
47
|
-
- `hotfix/` for critical fixes
|
|
52
|
+
**Note:** All commits reference task IDs for traceability. No branching required.
|
|
48
53
|
|
|
49
54
|
## Before Every Commit (Hard Enforced)
|
|
50
55
|
- Tests MUST pass (validated by hooks)
|
|
51
56
|
- Tests MUST contain real assertions (validated by hooks)
|
|
52
57
|
- Tests MUST NOT be empty/fake (validated by hooks)
|
|
53
58
|
- Code MUST be formatted (auto-formatted by hooks)
|
|
54
|
-
- Branch MUST follow naming convention (validated by hooks)
|
|
55
59
|
|
|
56
60
|
## Commands Available
|
|
57
61
|
- `/commit-commands:commit` - Stage and commit
|
|
@@ -356,24 +360,21 @@ Database changes MUST follow migration workflow:
|
|
|
356
360
|
4. Request amendments if needed: `npm run plan:amend`
|
|
357
361
|
|
|
358
362
|
**Agent Role:**
|
|
359
|
-
1.
|
|
363
|
+
1. Work directly on main branch (no branching required)
|
|
360
364
|
2. Write code in `Agent/` directory (blocked if no active task)
|
|
361
365
|
3. Run tests and fix issues
|
|
362
366
|
4. Commit changes frequently with task ID reference (REQUIRED)
|
|
363
|
-
5.
|
|
364
|
-
6.
|
|
367
|
+
5. Push to remote regularly
|
|
368
|
+
6. When task complete, ensure all changes committed
|
|
369
|
+
7. Make amendments via tool when human requests
|
|
365
370
|
|
|
366
371
|
**Git Workflow (HARD ENFORCED):**
|
|
367
|
-
1. **
|
|
372
|
+
1. **All work on main branch:** No branching required
|
|
368
373
|
2. **During development:** Commit regularly with descriptive messages
|
|
369
374
|
3. **Commit message format:** `[TASK-XXX] Description of changes`
|
|
370
375
|
4. **When task done:** All changes must be committed before marking complete
|
|
371
|
-
5. **
|
|
372
|
-
6. **
|
|
373
|
-
- Merges completed task(s) to main branch
|
|
374
|
-
- Validates all tasks are completed and committed
|
|
375
|
-
- Automatically cleans up merged branches
|
|
376
|
-
- Preserves branch history with --no-ff merge
|
|
376
|
+
5. **Push regularly:** `git push origin main` to backup work
|
|
377
|
+
6. **No merging needed:** Everything stays on main branch
|
|
377
378
|
|
|
378
379
|
**System Role:**
|
|
379
380
|
1. Enforce active task requirement (hard block)
|