a2a-memory 0.12.41 → 0.12.43
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 +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.d.ts +15 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.d.ts +6 -0
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x85bfbe,_0x2ed2ec){const _0x3fd843=_0x85bfbe();function _0x23bf7e(_0x2e015f,_0x400e3e){return _0x75bf(_0x2e015f-0xd2,_0x400e3e);}function _0x5d3804(_0x47dae6,_0x1036ec){return _0x75bf(_0x1036ec-0xae,_0x47dae6);}while(!![]){try{const _0x4aba25=parseInt(_0x23bf7e(0x1d4,0x182))/0x1+parseInt(_0x23bf7e(0x2c8,0x353))/0x2+-parseInt(_0x23bf7e(0x27b,0x22d))/0x3+parseInt(_0x5d3804(0x228,0x1d4))/0x4+parseInt(_0x23bf7e(0x26c,0x263))/0x5*(-parseInt(_0x5d3804(0x1f4,0x1ab))/0x6)+parseInt(_0x5d3804(0x153,0x1d7))/0x7*(parseInt(_0x5d3804(0x237,0x1b6))/0x8)+-parseInt(_0x23bf7e(0x235,0x241))/0x9;if(_0x4aba25===_0x2ed2ec)break;else _0x3fd843['push'](_0x3fd843['shift']());}catch(_0x3db56f){_0x3fd843['push'](_0x3fd843['shift']());}}}(_0x5f04,0xb4cb2));import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{scoreSignificance}from'../extraction/scorer.js';import{filterSensitiveInfo}from'../extraction/filter.js';import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';function _0x472959(_0x446430,_0x4ee8e9){return _0x75bf(_0x4ee8e9- -0x3a3,_0x446430);}function _0x246dbf(_0x42db48,_0xb2adb1){return _0x75bf(_0x42db48- -0x204,_0xb2adb1);}import{createLogger}from'../utils/logger.js';function _0x5f04(){const _0x599aed=['DgHLEq','C3rKzxjY','Aw5Qzwn0zwrlzq','A2v5D29Yzhm','ChjVy2vKDxjL','AwnL','ywjZB3jIsw50BW','AwnHDguP','q2XHDwrLig1LBq','Dhj1zq','DgvZDa','zZOG','B25fBMq','DgHL','qxv0BY1ZEw5Jia','Bg9Hza','DgHYB3vNAa','icHbrfiTmdmZkq','DgvYBNm','C29Tzq','CgvUzgLUzW','lI4VC2TPBgWVzq','ig1LBw9YAwvZ','vvbeqvrf','qxv0B1n5BMm','zw1VCNK6ig5Via','zMLSDgvYzwq','BMmGzgvMzxjYzq','C3vJAa','ywn0Aw9U','Bwf0y2G','AuTtyMu','v2vIrMv0y2G','zhvYAw5N','yxnZAxn0yw50','ChjVDMLKzxi','zxbPC29KAwm','BgLZDe1LBw9YAq','Agf2zq','C3bSAxq','BwLKu2vZC2LVBG','C2TPChbLzcaOCa','BMfTzq','mtm1tgXkz2z3','iokaLcbHDxrVlxn5','BIb0CMLNz2vYCW','Aw5MBW','vg9VBfvZzsbJBW','zMLSzsb3CML0Da','zw5HyMXLza','qMfZAa','ywjVDxq','zNvSBhK','z2v0tgf0zxn0sq','BgvHCM5PBMC','zM9Y','D291Bgq','AgfK','mJyXnde2n3bjEvrZva','BM93','y3nZ','zw5KC1DPDgG','C2v0','vhjHy2vIywnR','DgHLAxi','zgf0yq','C2HHBgW','C2TPBgXdB252zq','iNvWDgLTzv9Zzq','Dg9ju09tDhjPBG','w0fYCMf5oIa','twvTB3j5igfICW','ANnVBG','yxrLza','w2eYyv0Gug9ZDa','CMvJB3jKrxH0CG','l3zHCI9MB2XKzq','AM9PBG','w2eYyv0Gqxv0BW','yxbW','CgfYC2u','w0eYqv0Gug9ZDa','C2fTzq','z3jLCa','y291Bgq','zxjYB3i6','Cg9ZDc10B29Slq','zgvIDwC','BxmSignSyxvKzq','y3rPB25iAxq','yxv0B0nHChr1CG','C3rYDwn0DxjLza','tNfSvKu','D2vUDcb3AxrO','DgfZAW','z2XVyG','ExDVCMrZ','Bw9Yzq','zw1IzwrKAw5N','lI9ZAgfYzwqUAG','ChbLzcaOzhvWBa','v3jPDgu','C3nLDcK','C2LNBMLMAwnHBG','DMvYEq','t1nor3e','C2HVDa','r2XVyG','y2vuAhjLC2HVBa','D2LSBa','C2XPy2u','zcb0BYbtzxnZAq','CMvWBgfJzq','Aw5JBhvKzxm','yMvMB3jL','y2f0zwDVCNK','ugf0y2G','C3rYAw5NAwz5','y21K','iNn0CNvJDhvYzq','yMvZDcbWCMfJDa','BwL0xq','Cgf0DgvYBG','zMLSDgvY','zMfSC2u','C3rHBMrHCMq','zMfJDa','rgvKDxaGzgvJAq','EwfTBa','B3DU','C2TPBgW','DgfYz2v0twvTBW','lMLUAq','Bwu6','yxjL','mJKWmdmXmLzPwwn2Aq','iM9Szfn0CMLUzW','C3rKB3v0','C3rHCNrZv2L0Aa','z3vPzgvSAw5L','vKnIy0O','DxnLlMPZ','BxmGFcbJB25MAq','AgvHBhrOEsi','CgLJA2vK','Ew1S','C2vZC2LVBKLK','DgfNCW','y29UDgv4Da','lMnMzW','zMLSzv9WyxrO','y2nLC3nMDwXSEq','B3rHBdOG','zMX1C2G','BwvZC2fNzq','BgvUz3rO','Dg9VBfjLC3vSDa','DhH0','B3DSzwrNzq','C3LUyY5QCW','ywrK','CNvSzq','AgfZ','lNLTBa','yw5K','DhvYzwq','y29UDgvUDa','zMfPBgvK','vgfZAW','iNr5CguI','ywz0zxi','rNjVEMvUihnUyq','C2TPBgXjza','DxrMltG','Dg9VBe5HBwu','t2XKig1LBw9YEq','u3LUyZOG','y3jLyxrLtwvTBW','B3b0zwqGzM9Y','D2L0Aa','DhjPBq','zNjVEMvUu25HCa','DhvZ','rw1IzwrKAw5Nia','B25SEq','u3LUy0nVDw50','zxjYB3jFC29SDq','lNLHBwW','C2vSzwn0zwq','zw1Izwq','CMuGzgLZywjSzq','s3r1yvy','EYjMAwXLx3bHDa','qure','zgvJAwrLza','ChjVAMvJDfbHDa','u2TPChbPBMCGBq','y29UDMvUDgLVBG','EYjZDgrVDxqIoG','rwrPDa','qxv0BY1Jyxb0Dq','C2vJB25Kx3vWDa','BNvSBa','Ew91','z2v0','ihnVzNqTAw52yq','sg9VAYbZDgfYDa','DgfIBgu','DxnLlNrZ','Bg9JywW','CMvZB2X2zq','C2v0u3LUy1n0yq','y2HVC2u','Cgf0Aa','Dg90ywXty29Yzq','C2vYDMvY','rKfjteve','l3rTCc8','Cg9W','AxrZ','Dg9mB3DLCKnHCW','wKTnzwO','ug9ZDfrVB2XvCW','A2v5CW','otKWntriD2PVAwW','ChvZAgvK','ChjVAMvJDf9RBG','BxbSzxrLzcaODa','uMvHza','mti1ntCXnwHyvgj4va','yMvLBG','y29Uy2f0','D3jPDgu','yM90Aa','Dg9VBeLUChv0','otq3nta2ngjgq3D2wq','DhjHy2vIywnR','DMfSDwf0B3iUAG','yxrLCW','ywn0Aw9UrxzHBa','zgvJAxnPB24','yxv0B1n5BMm','Bw9ZDa','D2fYBG','rxjYB3i6','y2fU','DxbKyxrLtwvTBW','AwnHBMnLoIa','yxjNDG','Bg9Nz2LUzW','zwrPDa','lI4U','Eg1S','D2vIC2vHCMnO','zxjYB3i','twPdz0S','yxbPs2v5','l3rLC3qV','Dg9V','Axnnyxa','sevzuuG','BgLZDa','DgHPCW','B3j5ihn5BMmGzG','r3jLCa','nte1oteYAgvcuury','zxHJBhvKzvbHDa','C3rYAw5N','n21fB3z4tW','zxzLCNK','B3jIzwqGAw50BW','Ew5Jzwq','lMvUDG','AxnbCNjHEq','B3j5igzPBguGCW','yMfZAa','BgXT','ywXZBW','Bwf5','zxbPC29Kzq','Aw50BW','Ew91CG','ChvZAa','lNrVBwW','BwLNAhq','zxHJzxb0Aw9U','ChnOB3qGBw9Kzq','zMLUzenHBMrPza','BMv3u3rYAw5N','v2vIu2vHCMnO','8j+uJsbBuhjLlunVBq','B3vY','Aw9Az1y','ignVBNrLBNq','revmrvrf','Aw1LoG','ihnRAwXS','D2vIzMv0y2G','D29YA2LUzW','rvjst1i6','D2fZ','Aw5N','CM91BMq','revmrvrfigLUDG','C2f2zuvTyMvKza','AhrTBa','zw4GC3vJy2vZCW','zxiGzgvSzxrLkq','BxmSihnPz25PzG','zMLSzvbHDgG','BwfW','yxrPB24GzMfPBa','zgvJAwrL','BwvHBMLUz2z1Ba','Dw5KzwzPBMvK','zw50CMLLCW','vg9VBfvZzsbLCG','wLvUA20','B3rOzxi','y2zbtxu','AfLRrvq','tK9pua','DgLVBG','CMvHza','CM9YoG','ywjZB3jIzwq','mtC2ntqXmZb5Ce5iuKW','zxrLza','C2LTAwXHCML0Eq','AgvY','zMv3','DhLWzq','zxHWzxjPzw5Jzq','Ahr0CdOYmda','BxmPcG','DgHLBq','EYjMAwXLugf0Aa','BwvYz2vdB250zq'];_0x5f04=function(){return _0x599aed;};return _0x5f04();}import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':_0x246dbf(-0x9b,-0xb0),'code_pattern':_0x472959(-0x191,-0x1b6),'decision':_0x246dbf(-0xd0,-0xdd),'context':_0x472959(-0x1d9,-0x26f),'project_knowledge':'fact','convention':_0x472959(-0x2c6,-0x230),'learning':_0x246dbf(-0x9b,-0x9c),'skill':_0x472959(-0x1b9,-0x230),'rule':_0x246dbf(-0x91,-0x85)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;function _0x75bf(_0x4b40b2,_0x406f7d){_0x4b40b2=_0x4b40b2-0xdb;const _0x5f0443=_0x5f04();let _0x75bf6a=_0x5f0443[_0x4b40b2];if(_0x75bf['RPCeHj']===undefined){var _0x1d5660=function(_0x34a1ed){const _0x13b273='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ce54c='',_0x2f6920='';for(let _0x5110b0=0x0,_0x4c7d96,_0x4152c1,_0x235680=0x0;_0x4152c1=_0x34a1ed['charAt'](_0x235680++);~_0x4152c1&&(_0x4c7d96=_0x5110b0%0x4?_0x4c7d96*0x40+_0x4152c1:_0x4152c1,_0x5110b0++%0x4)?_0x4ce54c+=String['fromCharCode'](0xff&_0x4c7d96>>(-0x2*_0x5110b0&0x6)):0x0){_0x4152c1=_0x13b273['indexOf'](_0x4152c1);}for(let _0x4a6de7=0x0,_0x465e81=_0x4ce54c['length'];_0x4a6de7<_0x465e81;_0x4a6de7++){_0x2f6920+='%'+('00'+_0x4ce54c['charCodeAt'](_0x4a6de7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f6920);};_0x75bf['hdAOwR']=_0x1d5660,_0x75bf['eVegej']={},_0x75bf['RPCeHj']=!![];}const _0x55ef9e=_0x5f0443[0x0],_0x1cf93f=_0x4b40b2+_0x55ef9e,_0x12c9f4=_0x75bf['eVegej'][_0x1cf93f];return!_0x12c9f4?(_0x75bf6a=_0x75bf['hdAOwR'](_0x75bf6a),_0x75bf['eVegej'][_0x1cf93f]=_0x75bf6a):_0x75bf6a=_0x12c9f4,_0x75bf6a;}export async function handlePostToolUse(_0xa8007b){const _0x212270=performance[_0x231d16(0x42f,0x4be)]();function _0x231d16(_0x730a1c,_0x329867){return _0x246dbf(_0x730a1c-0x489,_0x329867);}const _0x38f7fd=new ConfigManager()[_0xba203f(0x463,0x3ef)]();function _0xba203f(_0xd07089,_0x28f3fc){return _0x246dbf(_0x28f3fc-0x475,_0xd07089);}const _0x13805d=performance['now'](),_0x38fa27=createLogger(_0xba203f(0x3d2,0x36c)+'e',_0x38f7fd[_0xba203f(0x3f2,0x387)]);try{if(_0xba203f(0x35b,0x3b2)===_0x231d16(0x3e2,0x45d))_0x14aa20[_0x231d16(0x395,0x3a2)](_0xba203f(0x39f,0x3ee)+_0xba203f(0x427,0x487),{'error':_0x5d4834 instanceof _0x101566?_0x12c6b4[_0xba203f(0x3eb,0x47a)]:_0x32cde9(_0x186f50)});else{_0x38fa27[_0xba203f(0x37e,0x40e)](_0xba203f(0x331,0x35c)+'ed',{'toolName':_0xa8007b[_0x231d16(0x4a2,0x47f)]});if(!_0x38f7fd[_0x231d16(0x44e,0x456)+'e'][_0xba203f(0x37f,0x411)]){_0x38fa27['info'](_0x231d16(0x36a,0x3dd)+_0xba203f(0x3cd,0x34c)+'d');return;}if(!_0x38f7fd[_0xba203f(0x46a,0x43a)+'e']['triggers'][_0xba203f(0x419,0x451)](_0xa8007b[_0xba203f(0x4a9,0x48e)])){_0x38fa27[_0x231d16(0x44b,0x3c5)]('Tool\x20not\x20i'+_0x231d16(0x421,0x3b4),{'toolName':_0xa8007b[_0x231d16(0x4a2,0x4a1)]});return;}const _0xe4d45d=extractFilePath(_0xa8007b[_0x231d16(0x38c,0x355)]);if(_0xe4d45d&&isSensitiveFile(_0xe4d45d,_0x38f7fd['autoCaptur'+'e'][_0xba203f(0x370,0x398)+_0xba203f(0x3a7,0x3f2)])){_0x38fa27[_0xba203f(0x366,0x40e)]('Sensitive\x20'+'file\x20exclu'+'ded',{'filePath':_0xe4d45d});return;}if(_0xe4d45d&&isClaudeMemoryFile(_0xe4d45d)&&(_0xa8007b['toolName']===_0x231d16(0x459,0x41e)||_0xa8007b[_0xba203f(0x509,0x48e)]===_0xba203f(0x3c4,0x355))){const _0x2939e8=performance[_0xba203f(0x478,0x41b)]();try{const _0x539f73=getSharedDb(_0x38f7fd['db'][_0xba203f(0x2ca,0x363)]),{syncClaudeMd:_0x1b29f1}=await import('../claude/'+_0x231d16(0x493,0x432));await _0x1b29f1(_0x539f73,{'claudeMdPath':_0xe4d45d,'projectPath':_0xa8007b['projectPat'+'h']});const _0x34c4c2=performance[_0x231d16(0x42f,0x4c9)](),_0x3d633b=Math['round'](_0x34c4c2-_0x212270),_0x355fe9=Math[_0x231d16(0x3d0,0x3f1)](_0x34c4c2-_0x2939e8),_0x2b9ed1=Math[_0xba203f(0x359,0x3bc)](_0x13805d-_0x212270);process['stderr'][_0x231d16(0x38a,0x37f)](_0x231d16(0x445,0x4d8)+_0xba203f(0x444,0x40f)+_0xba203f(0x3a8,0x371)+'otal:\x20'+_0x3d633b+(_0x231d16(0x482,0x3f7)+_0xba203f(0x399,0x3eb))+_0x2b9ed1+(_0xba203f(0x4cd,0x438)+_0xba203f(0x3f7,0x490))+_0x355fe9+_0xba203f(0x401,0x3dc)),_0x38fa27['info'](_0xba203f(0x34d,0x3e8)+_0x231d16(0x3b4,0x3d6)+_0x231d16(0x3b1,0x40b),{'filePath':_0xe4d45d});}catch(_0x311d81){_0x38fa27[_0xba203f(0x407,0x381)]('Claude\x20mem'+_0x231d16(0x3a9,0x3b2)+'ailed',{'error':_0x311d81 instanceof Error?_0x311d81['message']:String(_0x311d81)});}return;}const _0x2664e9=performance[_0xba203f(0x404,0x41b)](),_0x4636c0={'uuid':_0xa8007b[_0xba203f(0x4dc,0x472)],'type':_0xba203f(0x43e,0x402),'message':{'role':_0x231d16(0x416,0x36f),'content':_0xa8007b['toolResult']},'timestamp':new Date()[_0x231d16(0x439,0x446)+'g']()},_0x3703e1=_0xa8007b['toolName']===_0xba203f(0x44a,0x445),_0x18dbd7=_0xe4d45d?isConfigFile(_0xe4d45d):![],_0x593052=detectActualError(_0xa8007b[_0x231d16(0x490,0x411)],_0xa8007b[_0xba203f(0x3fb,0x378)]);let _0x5e3e03;if(_0xa8007b[_0x231d16(0x4a2,0x4f9)]==='Bash'&&_0xa8007b[_0xba203f(0x373,0x378)]){if('OSNGq'===_0xba203f(0x495,0x449))try{const _0x4b5ce5=typeof _0xa8007b[_0xba203f(0x415,0x378)]===_0xba203f(0x31e,0x399)?JSON[_0xba203f(0x40a,0x430)](_0xa8007b[_0xba203f(0x3ab,0x378)]):_0xa8007b[_0x231d16(0x38c,0x39f)];_0x5e3e03=_0x4b5ce5?.['command']??_0x4b5ce5?.[_0xba203f(0x4b3,0x456)]??(typeof _0x4b5ce5===_0xba203f(0x366,0x399)?_0x4b5ce5:undefined);}catch{_0x5e3e03=typeof _0xa8007b[_0xba203f(0x30f,0x378)]===_0xba203f(0x3cf,0x399)?_0xa8007b[_0xba203f(0x2f1,0x378)]:undefined;}else{const _0x337e65=['md',_0xba203f(0x4b8,0x47d),'json',_0x231d16(0x485,0x50f),_0x231d16(0x474,0x4f8),'xml',_0x231d16(0x3d3,0x3c3),'css'];!_0x337e65[_0xba203f(0x424,0x451)](_0x490a35)&&_0x2ec9e1[_0xba203f(0x321,0x3a8)](_0x4460a9);}}const _0x1bf499=scoreSignificance(_0x4636c0,{'toolName':_0xa8007b[_0x231d16(0x4a2,0x504)],'isNewFile':_0x3703e1,'isConfigChange':_0x18dbd7,'hasError':_0x593052,'bashCommand':_0x5e3e03},_0x38f7fd['autoCaptur'+'e'][_0x231d16(0x45b,0x3b2)+_0x231d16(0x460,0x4a4)+'d']),_0x379d07=performance['now'](),_0x411176=_0x38f7fd[_0xba203f(0x453,0x43a)+'e']['significan'+_0x231d16(0x460,0x453)+'d']*0.5;_0x38fa27[_0x231d16(0x422,0x3e0)]('Tool\x20evalu'+_0x231d16(0x43d,0x443),{'toolName':_0xa8007b[_0xba203f(0x4f6,0x48e)],'score':_0x1bf499[_0xba203f(0x30d,0x364)],'shouldCapture':_0x1bf499[_0x231d16(0x378,0x325)]>=_0x411176});if(_0x1bf499['totalScore']<_0x411176)return;const _0xd9898=determineCategory(_0xa8007b,_0x593052),_0x5a27c0=buildContent(_0xa8007b);if(!_0x5a27c0){if('RpeLA'===_0x231d16(0x361,0x3cf))_0x8218fc['error'](_0xba203f(0x49d,0x42a)+_0xba203f(0x445,0x3ca)+_0xba203f(0x3a7,0x3d2),_0x3440b3 instanceof _0x303f5c?_0x1d6fe1[_0xba203f(0x3e1,0x47a)]:_0x353dbd),_0x5a3541['exit'](0x0);else{_0x38fa27[_0xba203f(0x40d,0x40e)](_0x231d16(0x366,0x3a9)+_0xba203f(0x357,0x3f9)+_0xba203f(0x3d4,0x3c7)+_0x231d16(0x3c7,0x419),{'toolName':_0xa8007b['toolName']});return;}}const _0x5f330a=filterSensitiveInfo(_0x5a27c0);let _0x5e8521;if(_0x593052)_0x5e8521=_0x231d16(0x418,0x3e2);else _0x1bf499[_0x231d16(0x378,0x2da)]<_0x38f7fd['autoCaptur'+'e']['significan'+_0xba203f(0x3b4,0x44c)+'d']?_0x5e8521=_0x231d16(0x3cc,0x350):_0x5e8521='semantic';const _0x418d2c={'content':_0x5f330a[_0xba203f(0x43a,0x3fa)],'category':_0xd9898,'tier':_0x5e8521,'tags':buildTags(_0xa8007b),'projectPath':_0xa8007b['projectPat'+'h'],'sessionId':_0xa8007b['sessionId'],'memoryType':CATEGORY_TYPE_MAP[_0xd9898]??_0xba203f(0x3fe,0x45e)},_0x498eeb=getSharedDb(_0x38f7fd['db'][_0x231d16(0x377,0x3e9)]),_0x35e4f4=performance['now'](),_0x4fafcf=new DedupManager(),_0x5da453=_0x4fafcf[_0xba203f(0x317,0x3ad)+_0x231d16(0x390,0x3e1)](_0x498eeb[_0xba203f(0x35e,0x405)+'es']({'projectPath':_0xa8007b[_0xba203f(0x383,0x351)+'h'],'limit':0x32}),_0xd9898,_0xa8007b['projectPat'+'h']),_0x2861fa=_0x4fafcf[_0x231d16(0x3da,0x388)](_0x5f330a[_0x231d16(0x40e,0x4a3)],_0x5da453),_0x3c98d8=performance[_0xba203f(0x409,0x41b)]();_0x38fa27[_0x231d16(0x422,0x37e)](_0x231d16(0x473,0x4a0)+'sion',{'action':_0x2861fa[_0xba203f(0x3b1,0x3fd)],'similarity':_0x2861fa['similarity']});const _0x301483=performance[_0x231d16(0x42f,0x4c5)]();let _0xe55ce6;try{switch(_0x2861fa[_0x231d16(0x411,0x3f3)]){case _0x231d16(0x3e3,0x343):_0x38fa27[_0x231d16(0x422,0x3d7)]('Memory\x20ski'+_0xba203f(0x4e0,0x444)+_0xba203f(0x43b,0x3e7),{'similarity':_0x2861fa[_0x231d16(0x3ea,0x364)]});return;case _0xba203f(0x431,0x3f7):if(_0x2861fa[_0xba203f(0x422,0x463)+'ry']){const _0x6763db=_0x4fafcf[_0x231d16(0x3f3,0x3fe)+'nt'](_0x2861fa['targetMemo'+'ry']['content'],_0x5f330a[_0x231d16(0x40e,0x42e)]);_0x498eeb[_0x231d16(0x398,0x3e7)+'ry'](_0x2861fa[_0x231d16(0x477,0x475)+'ry']['id'],{'content':_0x6763db,'tags':[...new Set([..._0x2861fa['targetMemo'+'ry'][_0xba203f(0x45b,0x473)]||[],...buildTags(_0xa8007b)])]}),_0x38fa27[_0x231d16(0x422,0x38b)]('Memory\x20upd'+'ated\x20(merg'+'ed)',{'memoryId':_0x2861fa[_0xba203f(0x4f0,0x463)+'ry']['id']});}return;case _0x231d16(0x3c8,0x38d):{_0x2861fa[_0x231d16(0x477,0x4c3)+'ry']&&(isProtectedFromCleanup(_0x2861fa[_0xba203f(0x509,0x463)+'ry'])?_0x38fa27[_0x231d16(0x422,0x425)](_0x231d16(0x3d1,0x36b)+'alidation\x20'+_0x231d16(0x41d,0x3df)+'rotected\x20a'+_0x231d16(0x45a,0x4ae),{'memoryId':_0x2861fa[_0xba203f(0x4bc,0x463)+'ry']['id'],'category':_0x2861fa[_0xba203f(0x476,0x463)+'ry'][_0x231d16(0x467,0x446)]}):(_0x498eeb[_0x231d16(0x398,0x344)+'ry'](_0x2861fa[_0xba203f(0x3c2,0x463)+'ry']['id'],{'invalidAt':new Date()[_0x231d16(0x439,0x49a)+'g']()}),_0x38fa27[_0x231d16(0x422,0x461)](_0x231d16(0x4a3,0x4bf)+_0x231d16(0x36f,0x3d1)+'lidated',{'memoryId':_0x2861fa[_0xba203f(0x497,0x463)+'ry']['id']})));_0xe55ce6=_0x498eeb[_0x231d16(0x4a5,0x41d)+'ry'](_0x418d2c);_0x5e8521!==_0x231d16(0x3cc,0x3ac)&&_0x498eeb[_0xba203f(0x2c1,0x361)+_0x231d16(0x4aa,0x463)](_0xe55ce6['id'],null,_0x231d16(0x408,0x368));_0x38fa27[_0xba203f(0x3aa,0x40e)]('Memory\x20cap'+'tured\x20(aft'+_0x231d16(0x3d5,0x380),{'category':_0xd9898,'memoryId':_0xe55ce6['id']});break;}case _0x231d16(0x363,0x369):default:_0xe55ce6=_0x498eeb[_0xba203f(0x456,0x491)+'ry'](_0x418d2c);_0x5e8521!==_0x231d16(0x3cc,0x426)&&_0x498eeb['setSyncSta'+_0x231d16(0x4aa,0x526)](_0xe55ce6['id'],null,_0x231d16(0x408,0x3d1));_0x38fa27[_0x231d16(0x422,0x394)]('Memory\x20cap'+_0xba203f(0x4af,0x485),{'category':_0xd9898,'memoryId':_0xe55ce6['id']});break;}}catch(_0x20b4aa){const _0x3fdec5=_0x20b4aa instanceof Error?_0x20b4aa:new Error(String(_0x20b4aa));_0x38fa27[_0xba203f(0x2f8,0x38c)]('Memory\x20cre'+_0xba203f(0x460,0x3c5)+'ed',_0x3fdec5,{'category':_0xd9898});}const _0xbd7e5b=performance[_0xba203f(0x3ee,0x41b)]();if(_0xe55ce6&&_0x38f7fd[_0xba203f(0x460,0x442)]?.['enabled']&&_0x38f7fd['embedding'][_0x231d16(0x417,0x3c5)]===_0x231d16(0x373,0x37a))try{if(_0x231d16(0x3df,0x43e)!==_0xba203f(0x430,0x3cb))return _0xba203f(0x4d8,0x474);else{const {createEmbeddingProvider:_0x40cb8d}=await import('../embeddi'+'ng/index.j'+'s'),_0x5301f5=_0x40cb8d(_0x38f7fd[_0xba203f(0x4af,0x442)],_0x38f7fd[_0xba203f(0x3a6,0x3a2)]),_0x4e0d74=await Promise[_0xba203f(0x2d5,0x360)](_0x5301f5[_0xba203f(0x50a,0x49d)](_0xe55ce6[_0xba203f(0x45a,0x486)]));Array[_0xba203f(0x38f,0x39f)](_0x4e0d74)&&_0x498eeb[_0xba203f(0x362,0x3be)+_0x231d16(0x3cf,0x43e)](_0xe55ce6['id'],_0x4e0d74);}}catch(_0x204968){_0x38fa27['warn'](_0xba203f(0x470,0x497)+_0xba203f(0x517,0x487),{'error':_0x204968 instanceof Error?_0x204968['message']:String(_0x204968)});}try{const _0x3b7741=_0x498eeb[_0x231d16(0x429,0x38f)+'njection'](_0xa8007b[_0x231d16(0x486,0x410)]);if(_0x3b7741&&_0x3b7741['injectedKe'+_0x231d16(0x454,0x4c1)]){const _0x2cb2bf=(_0xa8007b[_0xba203f(0x49f,0x48e)]+'\x20'+JSON[_0x231d16(0x469,0x43e)](_0xa8007b[_0xba203f(0x410,0x378)])+'\x20'+String(_0xa8007b[_0xba203f(0x50f,0x47c)]))[_0xba203f(0x2f2,0x36a)+'e'](),{parseInjectedKeywords:_0x455f6d}=await import(_0x231d16(0x457,0x491)+'s'),_0x55f8cc=_0x455f6d(_0x3b7741[_0xba203f(0x431,0x3e2)+_0x231d16(0x454,0x45b)]);let _0x2101d9=[],_0x5967af=[];if(_0x55f8cc[_0x231d16(0x3a5,0x3c3)]){for(const [_0x5ee3b8,_0x34c606]of Object[_0xba203f(0x38d,0x3c9)](_0x55f8cc['keywordMap'])){const _0x1967d6=_0x34c606[_0xba203f(0x436,0x45b)](_0x2c9ab7=>_0x2cb2bf[_0x231d16(0x465,0x3f1)](_0x2c9ab7));_0x1967d6[_0xba203f(0x470,0x47b)]>0x0&&(_0x2101d9[_0x231d16(0x3bc,0x33f)](..._0x1967d6),_0x5967af['push'](_0x5ee3b8));}_0x2101d9=[...new Set(_0x2101d9)],_0x5967af=[...new Set(_0x5967af)];}else _0x2101d9=_0x55f8cc[_0xba203f(0x489,0x3e3)]['filter'](_0x1461fb=>_0x2cb2bf[_0x231d16(0x465,0x460)](_0x1461fb));_0x2101d9[_0x231d16(0x48f,0x493)]>0x0&&(_0x231d16(0x3a6,0x310)!=='HEYQH'?_0xe904b0[_0xba203f(0x478,0x42b)+_0xba203f(0x3de,0x37d)]({'memoryId':_0x1a26ac['id'],'sessionId':_0x3673c6[_0x231d16(0x486,0x3e7)],'significanceScore':_0x45e270[_0xba203f(0x356,0x364)],'dedupAction':_0x1a38eb[_0x231d16(0x411,0x448)],'tier':_0x21f80a}):_0x498eeb['recordInje'+_0xba203f(0x3bb,0x439)](_0x3b7741['id'],_0x2101d9,_0xa8007b['toolName'],_0x5967af));}}catch{}if(_0xe55ce6&&(_0x2861fa[_0xba203f(0x410,0x3fd)]==='ADD'||_0x2861fa[_0xba203f(0x3d9,0x3fd)]===_0xba203f(0x38c,0x3b4)))try{_0x498eeb['recordExtr'+'actionEval']({'memoryId':_0xe55ce6['id'],'sessionId':_0xa8007b['sessionId'],'significanceScore':_0x1bf499[_0x231d16(0x378,0x329)],'dedupAction':_0x2861fa[_0xba203f(0x45b,0x3fd)],'tier':_0x5e8521});}catch{}if(_0xe55ce6&&_0xe55ce6[_0xba203f(0x477,0x442)]&&_0x38f7fd[_0x231d16(0x437,0x420)+'rsion']?.[_0x231d16(0x425,0x3d1)])try{const {SkillEvaluator:_0xdeb739}=await import(_0xba203f(0x46d,0x3f5)+_0xba203f(0x3b8,0x37b)+'s'),_0x58a964=new _0xdeb739(_0x498eeb,_0x38f7fd),_0x22a182=_0x58a964[_0xba203f(0x34a,0x3e6)+'Skill'](_0xe55ce6);_0x22a182[_0x231d16(0x3e7,0x350)]&&_0x38fa27[_0x231d16(0x422,0x4ad)](_0xba203f(0x385,0x427)+_0xba203f(0x33c,0x39c)+_0x231d16(0x3ca,0x3db),{'memoryId':_0xe55ce6['id'],'skillId':_0x22a182[_0xba203f(0x4dd,0x48c)]});}catch{}const _0x205957=performance[_0x231d16(0x42f,0x480)]();let _0x373d9f=0x0;const _0x791237=_0x38f7fd['frozenSnap'+_0xba203f(0x412,0x44a)]?.[_0xba203f(0x494,0x411)]!==![]&&_0x38f7fd[_0xba203f(0x451,0x495)+'shot']?.[_0xba203f(0x3f7,0x408)+_0xba203f(0x41f,0x3f8)]!==!![];if(_0x38f7fd[_0x231d16(0x393,0x43a)]?.[_0xba203f(0x3b9,0x411)]&&_0x38f7fd[_0xba203f(0x3f0,0x365)]?.[_0xba203f(0x3e9,0x38e)]&&!_0x791237){try{const _0x6900b7=_0x498eeb['getPending'+_0xba203f(0x4da,0x499)]();if(_0x6900b7>=AUTO_SYNC_THRESHOLD){if('dDIfu'!=='dDIfu')_0x52528d[_0xba203f(0x4c6,0x437)](_0x231d16(0x49f,0x440)+_0x231d16(0x3c0,0x343)+_0x231d16(0x405,0x40e)+_0xba203f(0x36e,0x40c)+_0xba203f(0x41a,0x3fb)+_0xba203f(0x414,0x44f)+_0xba203f(0x490,0x3ec));else{const _0x3ace8b=createHookClient(_0x38f7fd);if(_0x3ace8b){const _0x4d93d3=new SyncQueue(_0x498eeb,_0x3ace8b),_0x510be4=await _0x4d93d3[_0x231d16(0x48d,0x417)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x510be4['pushed']>0x0&&(_0x231d16(0x450,0x3e8)===_0xba203f(0x487,0x43c)?(_0x38fa27[_0x231d16(0x422,0x3fc)](_0x231d16(0x402,0x367)+_0x231d16(0x383,0x348),{'pushed':_0x510be4[_0xba203f(0x2ca,0x36f)],'pending':_0x6900b7}),console['error'](_0xba203f(0x461,0x42e)+'-synced\x20'+_0x510be4[_0x231d16(0x383,0x30f)]+_0xba203f(0x3ae,0x3f6))):(_0x315fd7['push'](..._0x31923b),_0x1a107b[_0x231d16(0x3bc,0x455)](_0x339535)));}}}}catch(_0x798113){if(_0xba203f(0x341,0x3cd)==='cfAMu')_0x38fa27['warn']('Auto-sync\x20'+'failed',{'error':_0x798113 instanceof Error?_0x798113[_0xba203f(0x3fe,0x47a)]:String(_0x798113)});else try{_0x4c88fa=_0x2493b['parse'](_0x4855d5);}catch{return null;}}_0x373d9f=Math[_0xba203f(0x38c,0x3bc)](performance[_0xba203f(0x498,0x41b)]()-_0x205957);}else _0x38f7fd[_0xba203f(0x316,0x37f)]?.['enabled']&&_0x38f7fd[_0x231d16(0x379,0x3e6)]?.['apiKey']&&_0x791237&&_0x38fa27[_0xba203f(0x3a4,0x437)]('Frozen\x20sna'+'pshot\x20mode'+_0xba203f(0x3d7,0x3f1)+'\x20—\x20auto-sy'+_0x231d16(0x40f,0x37a)+'d\x20to\x20Sessi'+_0xba203f(0x438,0x3ec));const _0x178972=Math[_0xba203f(0x3ac,0x3bc)](performance[_0x231d16(0x42f,0x440)]()-_0x212270),_0x45b2b8=Math[_0x231d16(0x3d0,0x453)](_0x13805d-_0x212270),_0x43977c=Math[_0x231d16(0x3d0,0x447)](_0x379d07-_0x2664e9),_0xb1f4e3=Math[_0x231d16(0x3d0,0x3cb)](_0x3c98d8-_0x35e4f4),_0x42cf01=Math['round'](_0xbd7e5b-_0x301483),_0x3044f7=_0x373d9f>0x0?',\x20sync:\x20'+_0x373d9f+'ms':'';process['stderr']['write']('[A2A]\x20Post'+_0xba203f(0x476,0x40f)+'mpleted\x20(t'+_0x231d16(0x48c,0x4c5)+_0x178972+(_0xba203f(0x45c,0x46e)+_0x231d16(0x3ff,0x39a))+_0x45b2b8+(_0xba203f(0x409,0x3c2)+_0xba203f(0x369,0x385))+_0x43977c+('ms,\x20dedup:'+'\x20')+_0xb1f4e3+'ms,\x20db:\x20'+_0x42cf01+'ms'+_0x3044f7+')\x0a'),_0x38fa27['info']('Hook\x20compl'+_0x231d16(0x3e9,0x3a9),{'durationMs':_0x178972});}}finally{_0x38fa27[_0xba203f(0x4f5,0x479)]();}}function extractFilePath(_0x26a966){function _0x19480d(_0x2805e0,_0x5205c3){return _0x472959(_0x5205c3,_0x2805e0-0x2db);}function _0x297869(_0x160f0f,_0x3b1ee0){return _0x472959(_0x160f0f,_0x3b1ee0-0x20c);}let _0x542521=_0x26a966;if(typeof _0x542521===_0x297869(-0x69,-0x6f))try{_0x542521=JSON[_0x297869(0x39,0x28)](_0x542521);}catch{return null;}if(typeof _0x542521==='object'&&_0x542521!==null){if(typeof _0x542521[_0x297869(0xf1,0x6e)]===_0x19480d(0x60,0x74))return _0x542521['file_path'];if(typeof _0x542521['path']===_0x297869(-0x8f,-0x6f))return _0x542521[_0x297869(-0xc,-0xa5)];}return null;}function isSensitiveFile(_0x32701d,_0x910bd6){function _0x443902(_0x455590,_0x244c15){return _0x472959(_0x455590,_0x244c15-0x225);}function _0x4943e4(_0x5e9147,_0x593a15){return _0x472959(_0x5e9147,_0x593a15-0x510);}const _0x3b4357=_0x32701d[_0x4943e4(0x34c,0x303)]('/')[_0x443902(0x8,-0x87)]()??'';return _0x910bd6[_0x4943e4(0x252,0x2ef)](_0x365696=>{function _0x125b82(_0x142025,_0x12e481){return _0x443902(_0x12e481,_0x142025-0x36d);}function _0x450f5a(_0x12017e,_0x317a15){return _0x443902(_0x12017e,_0x317a15-0x21d);}if('fNapw'==='fNapw'){if(_0x365696[_0x125b82(0x3e8,0x430)]('*'))return _0x3b4357[_0x450f5a(0x275,0x24b)](_0x365696[_0x450f5a(0x27b,0x27c)](0x1));if(_0x365696[_0x125b82(0x39b,0x417)]('*'))return _0x3b4357[_0x125b82(0x3e8,0x34d)](_0x365696[_0x450f5a(0x2e7,0x27c)](0x0,-0x1));return _0x3b4357===_0x365696;}else{const _0x4a390f=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m['test'](_0x583851[_0x125b82(0x3fa,0x355)]);if(_0x4a390f)return _0x450f5a(0x2c3,0x2a2);const _0x371f33=['chose',_0x450f5a(0xd7,0x17e),_0x450f5a(0x350,0x2c0),_0x125b82(0x41a,0x3bf),_0x450f5a(0x26c,0x29e),_0x125b82(0x3bb,0x390)];if(_0x371f33[_0x450f5a(0x1f7,0x221)](_0x337b7b=>_0x2cd16d['includes'](_0x337b7b)))return _0x125b82(0x2fc,0x316);const _0x1b6c39=[_0x450f5a(0x1b8,0x181),'standard','pattern','rule',_0x125b82(0x3e9,0x471),_0x125b82(0x3d6,0x419)+_0x450f5a(0x1de,0x213)];if(_0x1b6c39[_0x450f5a(0x1b3,0x221)](_0x286a31=>_0x469c32[_0x450f5a(0x2d0,0x27f)](_0x286a31)))return _0x450f5a(0x1fb,0x181);if(_0x545592[_0x450f5a(0x21d,0x218)](_0x3058de))return _0x450f5a(0x2d1,0x244);}});}function isConfigFile(_0x1cd092){const _0x1bc447=['.json',_0x258b1d(0xbc,0x12e),_0x4118e7(0x3d2,0x3af),_0x258b1d(0x28,0x3c),_0x4118e7(0x2ed,0x310),_0x258b1d(0x132,0xf7),_0x4118e7(0x3c4,0x3e1)];function _0x258b1d(_0x4913a0,_0x26c2a1){return _0x472959(_0x4913a0,_0x26c2a1-0x2a7);}function _0x4118e7(_0xd4cbb,_0x340e1a){return _0x472959(_0x340e1a,_0xd4cbb-0x563);}return _0x1bc447[_0x258b1d(0x72,0x86)](_0x39d511=>_0x1cd092[_0x4118e7(0x36c,0x2dc)](_0x39d511));}function detectActualError(_0x135edf,_0x49c845){function _0x3364d4(_0x3f02ac,_0xa3b231){return _0x246dbf(_0xa3b231-0x14f,_0x3f02ac);}if(_0x135edf[_0x532c1d(0x344,0x2d3)]<0xc8)return![];const _0x1dbe54=_0x49c845?.[_0x532c1d(0x357,0x32c)];if(_0x1dbe54===_0x532c1d(0x23b,0x1c4))return![];function _0x532c1d(_0x39f721,_0x28b3d7){return _0x246dbf(_0x39f721-0x33e,_0x28b3d7);}const _0x34747c=_0x135edf['toLowerCas'+'e'](),_0x1714d8=[_0x3364d4(0xf5,0x10f),_0x532c1d(0x24b,0x1e5),_0x3364d4(0x1f,0x93),_0x3364d4(0xf3,0x85),'Exception','failed:','Failed:',_0x532c1d(0x22f,0x217),_0x532c1d(0x243,0x2a7),_0x532c1d(0x2e8,0x2ea)],_0x43375a=_0x1714d8['some'](_0x3ae542=>_0x135edf['includes'](_0x3ae542)||_0x34747c['includes'](_0x3ae542['toLowerCas'+'e']()));if(!_0x43375a)return![];const _0x534acc=_0x49c845?.[_0x532c1d(0x33f,0x2f6)]||_0x49c845?.[_0x532c1d(0x22c,0x190)]||'';if(_0x534acc['toLowerCas'+'e']()[_0x3364d4(0x1b7,0x12b)](_0x3364d4(0x75,0x66))&&!_0x1714d8['slice'](0x2)[_0x3364d4(0xce,0xcd)](_0x19f49d=>_0x34747c['includes'](_0x19f49d[_0x3364d4(0x1d,0x44)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x374150,_0xa77f33){if(_0xa77f33)return'error_solu'+_0x3cbe50(-0x177,-0x1be);const _0x5dd3f1=_0x374150[_0x3cbe50(-0xcb,-0x11f)][_0x3cbe50(-0x1dd,-0x259)+'e'](),_0x52f495=_0x374150['toolResult'];function _0x4e43db(_0x189063,_0x3775f3){return _0x246dbf(_0x189063-0x15,_0x3775f3);}if(_0x374150[_0x3cbe50(-0xb9,-0x133)]===_0x3cbe50(-0x135,-0x165)){if(_0x4e43db(-0xd3,-0x100)==='oKyei')return _0x3b3390[_0x3cbe50(-0xf9,-0x15f)](0x0,0x3e8);else{const _0x3c0b5d=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x3cbe50(-0x15d,-0x151)](_0x374150[_0x4e43db(0x1c,-0x26)]);if(_0x3c0b5d)return'context';const _0x40c628=[_0x3cbe50(-0x1e5,-0x193),'decided',_0x4e43db(0x32,0x1),'selected',_0x4e43db(0x10,-0x22),_0x4e43db(-0x23,-0xba)];if(_0x40c628[_0x4e43db(-0x6d,-0x5b)](_0x4b7cb1=>_0x5dd3f1['includes'](_0x4b7cb1)))return'decision';const _0x252902=[_0x3cbe50(-0x1f4,-0x206),_0x3cbe50(-0xea,-0x139),_0x3cbe50(-0xed,-0x9c),_0x4e43db(0x21,-0x22),_0x3cbe50(-0xdc,-0x136),'best\x20pract'+_0x3cbe50(-0x162,-0x117)];if(_0x252902[_0x3cbe50(-0x154,-0x10f)](_0x2a2602=>_0x5dd3f1[_0x3cbe50(-0xf6,-0x168)](_0x2a2602)))return _0x3cbe50(-0x1f4,-0x1ba);if(LEARNING_KEYWORDS_RE['test'](_0x52f495)){if(_0x4e43db(-0x61,-0x43)!==_0x3cbe50(-0xdb,-0x111))return _0x3cbe50(-0x131,-0xb3);else _0x33d3e3[_0x4e43db(-0xff,-0xb2)+_0x3cbe50(-0xb1,-0x1f)](_0x55ed3e['id'],null,_0x3cbe50(-0x153,-0x163));}}}if(_0x374150[_0x4e43db(0x2e,0xb7)]==='Read'||_0x374150[_0x3cbe50(-0xb9,-0x132)]===_0x3cbe50(-0x1b1,-0x169)||_0x374150[_0x4e43db(0x2e,0x9c)]===_0x3cbe50(-0xfc,-0x93))return _0x4e43db(0x14,0xa7);if(_0x374150[_0x3cbe50(-0xb9,-0xf2)]===_0x3cbe50(-0x102,-0x136)||_0x374150['toolName']===_0x4e43db(-0x10b,-0x1a4)){const _0x2836cd=extractFilePath(_0x374150[_0x4e43db(-0xe8,-0x12a)]),_0x416fb0=_0x374150[_0x4e43db(0x1c,-0x7c)];if(_0x2836cd&&(_0x2836cd[_0x4e43db(-0xf,0x70)](_0x4e43db(-0xd1,-0x157))||_0x2836cd[_0x4e43db(-0xf,-0x25)](_0x4e43db(-0xf9,-0xbf))))return'context';if(_0x416fb0[_0x4e43db(0x1b,0x2c)]<0x32||_0x416fb0[_0x4e43db(-0xf6,-0xfd)+'e']()[_0x3cbe50(-0xf6,-0x105)](_0x3cbe50(-0x137,-0x170)+_0x3cbe50(-0x187,-0x1c5)+_0x3cbe50(-0x133,-0xe5))||_0x416fb0['toLowerCas'+'e']()[_0x4e43db(-0xf,0x53)]('file\x20creat'+'ed')||_0x416fb0['toLowerCas'+'e']()[_0x3cbe50(-0xf6,-0x183)]('created\x20su'+_0x4e43db(0x17,0x49)))return _0x3cbe50(-0xd3,-0xc1);if(LEARNING_KEYWORDS_RE['test'](_0x416fb0))return _0x3cbe50(-0x131,-0xd6);return'code_patte'+'rn';}function _0x3cbe50(_0x501e30,_0x4b0656){return _0x246dbf(_0x501e30- -0xd2,_0x4b0656);}return _0x3cbe50(-0xd3,-0x106);}export function buildContent(_0x33a134){const _0x5cad06=extractFilePath(_0x33a134[_0x6b2681(0xae,0xa9)]);let _0x5e5cd7=_0x33a134['toolResult'][_0x2aae48(0x3bf,0x3de)](0x0,0x5dc)['trim']();(_0x33a134['toolName']===_0x6b2681(0x8e,0x86)||_0x33a134[_0x6b2681(0x13f,0x1bf)]===_0x6b2681(0x1a3,0x176))&&_0x5e5cd7[_0x6b2681(0x1f2,0x19b)]('{')&&(_0x5e5cd7=stripDiffContent(_0x5e5cd7));_0x33a134[_0x2aae48(0x3ff,0x46a)]===_0x6b2681(0x1ea,0x143)&&_0x5e5cd7[_0x6b2681(0x166,0x19b)]('{')&&(_0x5e5cd7=extractBashContent(_0x5e5cd7));_0x5e5cd7[_0x6b2681(0x1ad,0x1ac)]>0x1f4&&(_0x5e5cd7[_0x6b2681(0x221,0x19b)]('{')||_0x5e5cd7[_0x6b2681(0x17c,0x19b)]('['))&&(_0x5e5cd7=summarizeJsonResult(_0x5e5cd7));function _0x6b2681(_0x1f5602,_0x391ce7){return _0x246dbf(_0x391ce7-0x1a6,_0x1f5602);}_0x5e5cd7=_0x5e5cd7['slice'](0x0,0x3e8)['trim']();if(!_0x5e5cd7||isNoiseResult(_0x5e5cd7))return'';const _0x6a5891=[];if(_0x5cad06)_0x6a5891[_0x6b2681(0x10a,0xd9)]('File:\x20'+_0x5cad06);_0x6a5891[_0x2aae48(0x319,0x31e)](_0x5e5cd7);const _0x586e9c=_0x6a5891[_0x6b2681(0x15a,0x15e)]('\x0a');if(_0x586e9c[_0x6b2681(0x1ea,0x1ac)]<0x14)return'';function _0x2aae48(_0x4da1b9,_0x598808){return _0x246dbf(_0x4da1b9-0x3e6,_0x598808);}return _0x586e9c;}function stripDiffContent(_0x5db70c){function _0x341495(_0x15a1f7,_0xbfbc0d){return _0x472959(_0x15a1f7,_0xbfbc0d-0x47d);}function _0x38d210(_0x4bcef8,_0x16c7f4){return _0x472959(_0x16c7f4,_0x4bcef8-0x3c2);}try{const _0x4633d3=JSON[_0x341495(0x278,0x299)](_0x5db70c);if(_0x4633d3['oldString']||_0x4633d3[_0x341495(0x299,0x217)]||_0x4633d3[_0x38d210(0x1e9,0x1fc)+_0x38d210(0x202,0x227)]||_0x4633d3[_0x38d210(0x187,0x1b8)]&&_0x4633d3[_0x38d210(0x171,0xf3)]&&typeof _0x4633d3[_0x38d210(0x234,0x1f6)]===_0x38d210(0x147,0x1b7))return'';return _0x5db70c;}catch{if('ZKMej'!==_0x341495(0x163,0x1d4)){const _0x398fac=_0x849a60[_0x341495(0x20b,0x1d3)+'e']();if(!/^\d+$/['test'](_0x25248c)&&_0x555061[_0x38d210(0x229,0x1ee)]>0x2&&!_0x3f1b47[_0x341495(0x2e4,0x2eb)](_0x398fac)){const _0x14a2c9=['md',_0x38d210(0x22b,0x27a),'json',_0x341495(0x236,0x2da),_0x341495(0x33d,0x2c9),'xml',_0x341495(0x1a1,0x228),'css'];!_0x14a2c9[_0x38d210(0x1ff,0x1ec)](_0x398fac)&&_0x27950e[_0x38d210(0x156,0x14e)](_0x5c802f);}}else{if(_0x5db70c[_0x38d210(0x1ff,0x263)](_0x38d210(0x216,0x233)+'\x22')||_0x5db70c['includes']('\x22newString'+'\x22')||_0x5db70c[_0x38d210(0x1ff,0x18e)](_0x341495(0x317,0x2c0)+'dPatch\x22')||_0x5db70c[_0x38d210(0x1ff,0x1c9)](_0x38d210(0x237,0x215))&&_0x5db70c[_0x341495(0x351,0x2ba)]('\x22filePath\x22')&&_0x5db70c[_0x341495(0x279,0x2ba)]('\x22content\x22'))return'';return _0x5db70c;}}}function extractBashContent(_0x4d8ca1){function _0x399f57(_0x36a084,_0x26e006){return _0x246dbf(_0x26e006-0x46f,_0x36a084);}function _0x48a338(_0x3b2d0a,_0x2a99ab){return _0x246dbf(_0x2a99ab- -0x140,_0x3b2d0a);}try{const _0x39520b=JSON['parse'](_0x4d8ca1),_0x4a25ad=(_0x39520b[_0x48a338(-0x128,-0x14c)]||'')[_0x399f57(0x52f,0x48e)](),_0x44b9d1=(_0x39520b[_0x399f57(0x3a4,0x3db)]||'')['trim']();if(_0x44b9d1&&_0x44b9d1[_0x48a338(-0x14a,-0x13a)]>0xa)return'[Error]\x20'+_0x44b9d1[_0x48a338(-0xd6,-0x167)](0x0,0x1f4)+(_0x4a25ad?'\x0a[Output]\x20'+_0x4a25ad[_0x48a338(-0xc2,-0x167)](0x0,0x12c):'');if(_0x4a25ad)return _0x4a25ad[_0x399f57(0x432,0x448)](0x0,0x3e8);return _0x4d8ca1[_0x399f57(0x3b3,0x448)](0x0,0x1f4);}catch{return _0x4d8ca1[_0x48a338(-0x13f,-0x167)](0x0,0x3e8);}}function summarizeJsonResult(_0x2c9326){function _0x69d82f(_0x56c0c7,_0x4d63dc){return _0x472959(_0x56c0c7,_0x4d63dc-0x1b1);}function _0x188976(_0x13d480,_0x329ed1){return _0x472959(_0x329ed1,_0x13d480-0x75a);}try{const _0x3aeb20=JSON[_0x69d82f(-0x96,-0x33)](_0x2c9326);if(Array['isArray'](_0x3aeb20))return _0x188976(0x56c,0x4ea)+_0x3aeb20[_0x188976(0x5c1,0x586)]+'\x20items]\x20'+JSON[_0x188976(0x59b,0x516)](_0x3aeb20[0x0])[_0x69d82f(-0x97,-0x15)](0x0,0xc8)+_0x69d82f(-0x143,-0xda);const _0x3ea28e=Object[_0x69d82f(-0x14f,-0xf6)](_0x3aeb20)[_0x188976(0x594,0x545)](0x0,0xa),_0x1eafca=_0x3ea28e[_0x188976(0x50a,0x4b5)](_0x4bcbe2=>{const _0x34476e=_0x3aeb20[_0x4bcbe2],_0x2450c2=typeof _0x34476e===_0x2a44a8(-0x2b6,-0x2b5)?_0x34476e[_0x4b1fbe(0xf3,0x71)](0x0,0x50):JSON[_0x4b1fbe(0xfa,0x80)](_0x34476e)[_0x2a44a8(-0x201,-0x253)](0x0,0x50);function _0x4b1fbe(_0x315eb4,_0x2bef1b){return _0x69d82f(_0x2bef1b,_0x315eb4-0x108);}function _0x2a44a8(_0x3a7652,_0x1740f4){return _0x69d82f(_0x1740f4,_0x3a7652- -0x1ec);}return _0x4bcbe2+':\x20'+_0x2450c2;})[_0x188976(0x573,0x5ed)](',\x20');return _0x1eafca[_0x69d82f(-0x8,-0x15)](0x0,0x320);}catch{return _0x2c9326[_0x69d82f(0x51,-0x15)](0x0,0x1f4);}}function isNoiseResult(_0x589da0){const _0x49e9f0=_0x589da0['trim']();if(_0x49e9f0[_0xbf32f9(0x573,0x4fc)](_0xbf32f9(0x45d,0x4df)))return!![];if(_0x49e9f0[_0xbf32f9(0x573,0x5f2)](_0xbf32f9(0x4e7,0x55b)+'\x22')||_0x49e9f0[_0xbf32f9(0x573,0x522)](_0xbf32f9(0x457,0x439)+'h\x22'))return!![];if(_0x49e9f0[_0x1e01bd(0x4aa,0x523)](_0xbf32f9(0x535,0x513)+'rs/'))return!![];if(_0x49e9f0[_0x1e01bd(0x4c3,0x559)]('first_upti'+_0xbf32f9(0x56e,0x5aa))||_0x49e9f0['startsWith'](_0xbf32f9(0x460,0x3d6)+_0xbf32f9(0x4be,0x4f8)))return!![];if(_0x49e9f0[_0xbf32f9(0x573,0x5bb)](_0xbf32f9(0x4e4,0x47a))||_0x49e9f0[_0xbf32f9(0x573,0x53c)]('http:404'))return!![];if(_0x49e9f0['startsWith'](_0x1e01bd(0x409,0x44a)+_0x1e01bd(0x4b2,0x4c5)))return!![];function _0x1e01bd(_0x140bb2,_0x442dd5){return _0x472959(_0x442dd5,_0x140bb2-0x66d);}const _0x1e70fd=_0x49e9f0[_0x1e01bd(0x4a7,0x4b6)](0x0,0xc8);if(_0x1e70fd[_0x1e01bd(0x4aa,0x41d)]('\x22status\x22:\x22'+_0xbf32f9(0x578,0x5a9))&&_0x1e70fd[_0x1e01bd(0x4aa,0x40c)](_0x1e01bd(0x47d,0x486)+'conds\x22'))return!![];const _0x28a796=_0x49e9f0[_0xbf32f9(0x510,0x506)]('\x0a',0x1)[0x0],_0x24dcba=[/브랜치로\s*전환합니다$/,/^Switched to (?:a new )?branch ['"]/,/^Merge made by /,/^\[[\w/.\-]+\s+[0-9a-f]{7,}\]/,/^npm (?:notice|WARN|info|ERR)/,/^[\w.\-]+\.\d+\.[a-z0-9]+@[\w-]+\s+\|/,/^=== \d+\./,/^https?:\/\/[\w.\-]+\/\S+\s+URL에서$/,/^(?:FAIL\s{2}|(?:FAIL|PASS)\s+tests?\/)/,/⎯{4,}/,/^Test Files\s+\d/,/^[A-Z][A-Z0-9_]*(?:=\d+)?$/,/^={3}[^=]{0,60}={3}$/,/\x1b\[[0-9;]*m/,/^이미 .*(?:있습니다|상태입니다)/,/^브랜치가 .*(?:상태입니다|업데이트)/,/^\s*\d+ files? changed, /,/^\s*(?:create|delete) mode \d{6} /,/^[0-9a-f]{7,40} (?:\[|Merge |docs|feat|fix|chore|test|refactor|perf|ci|build|ops|style)\b/,/^To \S+\.git$/,/^\s*\* \[new (?:tag|branch)\]/,/^\s*[├└]──\s/,/^\d+\.\d+\.\d+$/,/^(?!(?:19|20)\d\d:\s)\d{1,5}[:→]/];if(_0x24dcba[_0x1e01bd(0x44c,0x496)](_0x1eb562=>_0x1eb562[_0xbf32f9(0x4f3,0x488)](_0x28a796)))return!![];const _0x404545=[/^File (?:created|updated|written|modified|deleted)(?: successfully)?\.?$/i,/^(?:File )?(?:written|created|saved) successfully\.?$/i,/^(?:No|0) (?:files?|changes?) /i,/^\d+ files? (?:found|matched|updated|deleted)\.?$/i,/^(?:Success|Done|OK|Created|Updated|Deleted)\.?$/i];function _0xbf32f9(_0x3bb46a,_0x55c9c2){return _0x472959(_0x55c9c2,_0x3bb46a-0x71d);}return _0x404545[_0x1e01bd(0x44c,0x459)](_0x47b7af=>_0x47b7af[_0xbf32f9(0x4f3,0x4d8)](_0x49e9f0));}const TAG_BLOCKLIST=new Set(['id','com',_0x472959(-0x265,-0x1e5),_0x246dbf(-0x11b,-0x11e),'set','src',_0x246dbf(-0x118,-0x122),_0x246dbf(-0x88,0x8),'to','in','of','a','is',_0x246dbf(-0x5e,-0x4c),_0x472959(-0x223,-0x1f9),_0x246dbf(0xb,-0x10),_0x246dbf(-0x6b,-0x35),'value',_0x246dbf(-0xb1,-0x2c),_0x246dbf(0x1f,-0x1b),_0x472959(-0x289,-0x23b),_0x472959(-0x15f,-0x1f3),_0x472959(-0x2d6,-0x281),'new','test',_0x472959(-0x25c,-0x296),_0x472959(-0x211,-0x17a)+_0x472959(-0x24b,-0x244),'code_patte'+'rn',_0x246dbf(-0x1,0x77),_0x472959(-0x2b1,-0x2c1),_0x472959(-0x195,-0x1b2),_0x472959(-0x208,-0x1fe),_0x246dbf(-0x105,-0x118)+_0x472959(-0x19e,-0x196),'Write',_0x246dbf(-0x120,-0x121),_0x472959(-0x198,-0x202),_0x472959(-0x2db,-0x2a2),_0x472959(-0x1f3,-0x1c9),_0x246dbf(-0xdf,-0xaa),_0x246dbf(0x13,-0x50),_0x246dbf(-0x75,-0x12),_0x472959(-0x2b9,-0x265),_0x472959(-0x204,-0x29e),_0x246dbf(-0xed,-0x164),_0x472959(-0x2fc,-0x273),_0x472959(-0x23f,-0x243),_0x472959(-0x1fd,-0x1d5),_0x472959(-0x166,-0x1e1),_0x472959(-0x139,-0x1d6),_0x246dbf(-0xbe,-0x111),_0x472959(-0x296,-0x289)]),STOPWORDS=new Set([_0x246dbf(-0x88,-0x71),_0x246dbf(0xf,0x44),_0x472959(-0x23a,-0x1ae),_0x472959(-0x2d3,-0x25a),'were',_0x246dbf(-0x101,-0x11f),_0x246dbf(-0x6f,-0x26),'has',_0x246dbf(-0x5c,-0x9f),_0x246dbf(-0x28,-0x7b),_0x472959(-0x18f,-0x1fc),_0x246dbf(-0x41,-0x2c),'should',_0x472959(-0x253,-0x270),_0x472959(-0x297,-0x26a),_0x472959(-0x1fd,-0x1f2),_0x472959(-0x2a3,-0x291),_0x472959(-0x2ee,-0x280),'that',_0x246dbf(-0x10c,-0x11d),_0x472959(-0x294,-0x1fd),'from',_0x246dbf(0x1e,-0x1b),_0x246dbf(-0xcf,-0xfc),_0x246dbf(-0x85,-0x11),_0x472959(-0x274,-0x213),_0x246dbf(0x15,0xa1),_0x472959(-0x1e3,-0x1c2),_0x472959(-0x284,-0x201),'above','all','each',_0x246dbf(-0xda,-0x111),_0x246dbf(-0xfe,-0x175),_0x246dbf(-0x9d,-0x1),_0x472959(-0x150,-0x1d3),_0x246dbf(-0xf5,-0x129),_0x472959(-0x26f,-0x248),_0x472959(-0x1f0,-0x221),_0x472959(-0x298,-0x218),_0x472959(-0xf4,-0x17c),_0x472959(-0x24a,-0x1b3),_0x472959(-0x1c7,-0x1e2),'than',_0x246dbf(-0xe5,-0x17a),_0x472959(-0x1ac,-0x1cc),'just',_0x472959(-0x304,-0x271),_0x246dbf(-0x8c,-0x14),_0x246dbf(-0x19,0x4b),_0x472959(-0x238,-0x2bc),'none',_0x472959(-0x1c1,-0x24c),_0x472959(-0x27d,-0x234),_0x246dbf(-0x98,-0x3c),_0x246dbf(-0x55,-0xe5),_0x472959(-0x30d,-0x26d),'his',_0x472959(-0x277,-0x23d),_0x246dbf(-0xc4,-0x84),_0x246dbf(-0x11c,-0x1ba),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x306655,_0x1b83a9=0x3){function _0x304876(_0x252c74,_0x2c32d1){return _0x246dbf(_0x2c32d1-0x3a5,_0x252c74);}const _0x599cfc=_0x306655['toLowerCas'+'e'](),_0x325527=_0x599cfc[_0x304876(0x308,0x32e)](WORD_RE)||[],_0x7744b7=new Map();function _0x270230(_0x5e2d8c,_0x479940){return _0x246dbf(_0x479940-0x490,_0x5e2d8c);}for(const _0x1334a8 of _0x325527){if(_0x1334a8[_0x270230(0x4bf,0x496)]<0x3)continue;if(STOPWORDS[_0x270230(0x497,0x49d)](_0x1334a8))continue;if(TAG_BLOCKLIST[_0x304876(0x33e,0x3b2)](_0x1334a8))continue;_0x7744b7[_0x270230(0x4db,0x439)](_0x1334a8,(_0x7744b7['get'](_0x1334a8)||0x0)+0x1);}return[..._0x7744b7[_0x304876(0x32d,0x2f9)]()]['sort']((_0x472b51,_0x439ddf)=>_0x439ddf[0x1]-_0x472b51[0x1])[_0x304876(0x371,0x37e)](0x0,_0x1b83a9)[_0x304876(0x283,0x2f4)](([_0x35756a])=>_0x35756a);}function buildTags(_0x5b7e0d){function _0x504a9f(_0x27da28,_0x17af0c){return _0x472959(_0x27da28,_0x17af0c-0x675);}const _0x25eb10=[];function _0x5c40c2(_0x31f065,_0x48648e){return _0x472959(_0x31f065,_0x48648e-0x432);}const _0x4f25d7=extractFilePath(_0x5b7e0d[_0x5c40c2(0x232,0x196)]);if(_0x4f25d7){const _0xe43297=_0x4f25d7[_0x504a9f(0x508,0x468)]('/')['filter'](Boolean),_0x24df26=_0xe43297['slice'](-0x3)[_0x504a9f(0x517,0x4bc)](_0x5e7bd3=>_0x5e7bd3[_0x5c40c2(0x30b,0x299)]>0x2&&!TAG_BLOCKLIST[_0x5c40c2(0x2c2,0x2a0)](_0x5e7bd3[_0x5c40c2(0x17b,0x188)+'e']()));for(const _0x2cc23e of _0x24df26[_0x504a9f(0x46b,0x4af)](0x0,0x2)){const _0x36562a=_0x2cc23e[_0x5c40c2(0x315,0x26e)](/\.[^.]+$/,'');_0x36562a[_0x5c40c2(0x2dd,0x299)]>0x2&&!TAG_BLOCKLIST[_0x5c40c2(0x200,0x2a0)](_0x36562a['toLowerCas'+'e']())&&_0x25eb10[_0x504a9f(0x479,0x409)](_0x36562a);}const _0x22db1f=_0x4f25d7[_0x504a9f(0x41c,0x468)]('.')[_0x5c40c2(0x19e,0x186)]();if(_0x22db1f){const _0x58bb76=_0x22db1f[_0x504a9f(0x3ca,0x3cb)+'e']();if(!/^\d+$/[_0x504a9f(0x3ba,0x44b)](_0x22db1f)&&_0x22db1f[_0x504a9f(0x57e,0x4dc)]>0x2&&!TAG_BLOCKLIST[_0x504a9f(0x444,0x4e3)](_0x58bb76)){const _0x22aa83=['md','txt',_0x504a9f(0x4e2,0x489),_0x504a9f(0x479,0x4d2),_0x5c40c2(0x268,0x27e),_0x5c40c2(0x232,0x1a8),_0x5c40c2(0x1da,0x1dd),_0x504a9f(0x443,0x47d)];!_0x22aa83[_0x5c40c2(0x2f1,0x26f)](_0x58bb76)&&_0x25eb10[_0x5c40c2(0x19c,0x1c6)](_0x22db1f);}}}if(_0x25eb10[_0x504a9f(0x540,0x4dc)]===0x0){const _0x308d24=extractKeywords(_0x5b7e0d[_0x504a9f(0x482,0x4dd)],0x3);_0x25eb10[_0x504a9f(0x3ab,0x409)](..._0x308d24);}return _0x25eb10;}export async function main(){const _0x5961f6=[];function _0x22ca6c(_0x103570,_0x11d814){return _0x246dbf(_0x103570-0x2de,_0x11d814);}function _0x1c9446(_0x1cf120,_0x4b8b0c){return _0x246dbf(_0x1cf120-0x59f,_0x4b8b0c);}for await(const _0x56c4a1 of process['stdin']){_0x5961f6[_0x22ca6c(0x211,0x219)](_0x56c4a1);}const _0x274d28=Buffer[_0x1c9446(0x49f,0x425)](_0x5961f6)['toString'](_0x1c9446(0x5b7,0x56f))['trim']();!_0x274d28&&process['exit'](0x0);try{const _0x202636=JSON[_0x1c9446(0x55a,0x5ae)](_0x274d28),_0x3cd759=normalizeHookInput(_0x202636);await handlePostToolUse(_0x3cd759);}catch(_0x1c7095){console[_0x1c9446(0x4b6,0x481)](_0x22ca6c(0x293,0x2e5)+_0x22ca6c(0x233,0x262)+'ror:',_0x1c7095 instanceof Error?_0x1c7095[_0x1c9446(0x5a4,0x557)]:_0x1c7095),process['exit'](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x472959(-0x20e,-0x28e)][0x1]?.[_0x472959(-0x222,-0x1f7)]('post-tool-'+_0x246dbf(-0x8,0xa0))||process['argv'][0x1]?.[_0x472959(-0x1bd,-0x1f7)](_0x472959(-0x250,-0x1de)+_0x472959(-0x2e2,-0x2b6));isMainModule&&main();
|
|
1
|
+
(function(_0x59a30d,_0x21c90f){function _0x333163(_0x1ce46f,_0x34a004){return _0x2e1c(_0x34a004- -0x1d8,_0x1ce46f);}function _0x5b890f(_0x5a0e0d,_0x257c5c){return _0x2e1c(_0x5a0e0d- -0x2a5,_0x257c5c);}const _0x26ff8b=_0x59a30d();while(!![]){try{const _0x3d7a15=parseInt(_0x333163(-0x114,-0x7c))/0x1*(-parseInt(_0x333163(-0x38,-0x92))/0x2)+-parseInt(_0x333163(-0xe0,-0xd0))/0x3*(-parseInt(_0x5b890f(-0x174,-0x1b3))/0x4)+-parseInt(_0x5b890f(-0x12e,-0x1a6))/0x5*(parseInt(_0x333163(-0x1c,-0x63))/0x6)+-parseInt(_0x333163(0x57,-0x3f))/0x7+parseInt(_0x5b890f(-0xee,-0x44))/0x8*(-parseInt(_0x333163(-0x1e,-0x95))/0x9)+parseInt(_0x5b890f(-0x80,-0x113))/0xa*(parseInt(_0x5b890f(-0x123,-0x1a5))/0xb)+parseInt(_0x333163(-0x158,-0xb2))/0xc;if(_0x3d7a15===_0x21c90f)break;else _0x26ff8b['push'](_0x26ff8b['shift']());}catch(_0xa727fc){_0x26ff8b['push'](_0x26ff8b['shift']());}}}(_0x2dcf,0x62201));function _0x2e1c(_0x5e001a,_0x532bef){_0x5e001a=_0x5e001a-0xe2;const _0x2dcf82=_0x2dcf();let _0x2e1c37=_0x2dcf82[_0x5e001a];if(_0x2e1c['LsxEXB']===undefined){var _0x329d81=function(_0x458135){const _0x45b781='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4bc3c4='',_0x4f89ab='';for(let _0xdb98a6=0x0,_0x2e5ad4,_0x25146f,_0x150473=0x0;_0x25146f=_0x458135['charAt'](_0x150473++);~_0x25146f&&(_0x2e5ad4=_0xdb98a6%0x4?_0x2e5ad4*0x40+_0x25146f:_0x25146f,_0xdb98a6++%0x4)?_0x4bc3c4+=String['fromCharCode'](0xff&_0x2e5ad4>>(-0x2*_0xdb98a6&0x6)):0x0){_0x25146f=_0x45b781['indexOf'](_0x25146f);}for(let _0x4b958f=0x0,_0x4ace57=_0x4bc3c4['length'];_0x4b958f<_0x4ace57;_0x4b958f++){_0x4f89ab+='%'+('00'+_0x4bc3c4['charCodeAt'](_0x4b958f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f89ab);};_0x2e1c['cDDwDM']=_0x329d81,_0x2e1c['ZGOHwU']={},_0x2e1c['LsxEXB']=!![];}const _0x2050ad=_0x2dcf82[0x0],_0x2b2966=_0x5e001a+_0x2050ad,_0x15901f=_0x2e1c['ZGOHwU'][_0x2b2966];return!_0x15901f?(_0x2e1c37=_0x2e1c['cDDwDM'](_0x2e1c37),_0x2e1c['ZGOHwU'][_0x2b2966]=_0x2e1c37):_0x2e1c37=_0x15901f,_0x2e1c37;}import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{scoreSignificance}from'../extraction/scorer.js';import{filterSensitiveInfo}from'../extraction/filter.js';function _0x24567a(_0x15f0e2,_0x4e6b56){return _0x2e1c(_0x4e6b56- -0x1a4,_0x15f0e2);}import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':'experience','code_pattern':'fact','decision':_0x24567a(0xc,0x78),'context':_0x24567a(0x73,0x78),'project_knowledge':_0x24567a(-0x6c,-0x5b),'convention':_0x1c9e33(0x232,0x2b7),'learning':_0x1c9e33(0x10d,0x1ac),'skill':'procedure','rule':'procedure'},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x3e30ee){function _0x4a1fff(_0x1da61f,_0x462322){return _0x24567a(_0x1da61f,_0x462322-0x2b1);}const _0x3cde20=performance['now'](),_0x33944e=new ConfigManager()[_0x3b6d85(0x12c,0x16a)](),_0xb3f7cd=performance[_0x3b6d85(0xd,-0x8)](),_0x277079=createLogger(_0x4a1fff(0x30b,0x280)+'e',_0x33944e[_0x4a1fff(0x36e,0x2bc)]);function _0x3b6d85(_0x375244,_0x2efe88){return _0x24567a(_0x2efe88,_0x375244-0x91);}try{if(_0x4a1fff(0x2ac,0x2e8)!==_0x4a1fff(0x2c2,0x2e8))_0xca0617();else{_0x277079['info']('Hook\x20start'+'ed',{'toolName':_0x3e30ee[_0x4a1fff(0x2eb,0x34d)]});if(!_0x33944e[_0x4a1fff(0x225,0x235)+'e']['enabled']){if(_0x4a1fff(0x239,0x210)===_0x4a1fff(0x213,0x210)){_0x277079[_0x4a1fff(0x338,0x2f2)]('Auto-captu'+_0x4a1fff(0x326,0x2e5)+'d');return;}else try{_0x235238[_0x4a1fff(0x2c1,0x2d1)+_0x4a1fff(0x30d,0x32b)]({'memoryId':_0x28bceb['id'],'sessionId':_0x57345d[_0x3b6d85(-0x24,-0x7e)],'significanceScore':_0x3eab6d[_0x4a1fff(0x233,0x2e3)],'dedupAction':_0x33fef6[_0x4a1fff(0x194,0x216)],'tier':_0x5bd6ff});}catch{}}if(!_0x33944e[_0x3b6d85(0x15,-0x78)+'e'][_0x4a1fff(0x19d,0x1f7)][_0x4a1fff(0x371,0x318)](_0x3e30ee[_0x3b6d85(0x12d,0x1de)])){_0x277079[_0x3b6d85(0x12a,0x114)](_0x3b6d85(0x114,0xc9)+_0x4a1fff(0x2e3,0x2dd),{'toolName':_0x3e30ee[_0x3b6d85(0x12d,0x109)]});return;}const _0x37ff1e=extractFilePath(_0x3e30ee[_0x4a1fff(0x2a8,0x278)]);if(_0x37ff1e&&isSensitiveFile(_0x37ff1e,_0x33944e['autoCaptur'+'e'][_0x4a1fff(0x338,0x2ba)+'terns'])){_0x277079[_0x3b6d85(0xd2,0x5d)](_0x3b6d85(0xe2,0x3c)+'file\x20exclu'+_0x4a1fff(0x279,0x2cd),{'filePath':_0x37ff1e});return;}if(_0x37ff1e&&isClaudeMemoryFile(_0x37ff1e)&&(_0x3e30ee[_0x3b6d85(0x12d,0x106)]===_0x3b6d85(0x32,0x56)||_0x3e30ee[_0x4a1fff(0x2fd,0x34d)]===_0x4a1fff(0x254,0x2d2))){const _0x2eecaf=performance[_0x4a1fff(0x2a2,0x22d)]();try{const _0x3d3f31=getSharedDb(_0x33944e['db'][_0x4a1fff(0x252,0x2db)]),{syncClaudeMd:_0x1358f0}=await import(_0x4a1fff(0x3b5,0x327)+'sync.js');await _0x1358f0(_0x3d3f31,{'claudeMdPath':_0x37ff1e,'projectPath':_0x3e30ee[_0x3b6d85(-0x2f,0x12)+'h']});const _0x31fce=performance[_0x4a1fff(0x18b,0x22d)](),_0x5a7cc1=Math['round'](_0x31fce-_0x3cde20),_0x182106=Math['round'](_0x31fce-_0x2eecaf),_0x11801a=Math[_0x3b6d85(-0x15,-0xb2)](_0xb3f7cd-_0x3cde20);process['stderr'][_0x3b6d85(0x44,0x2c)](_0x3b6d85(0x96,0xb7)+_0x3b6d85(0xdb,0x125)+_0x4a1fff(0x26e,0x202)+'otal:\x20'+_0x5a7cc1+(_0x3b6d85(0x125,0xee)+_0x3b6d85(0xc6,0x16))+_0x11801a+(_0x3b6d85(0x5a,0x1)+'Sync:\x20')+_0x182106+_0x4a1fff(0x18b,0x207)),_0x277079['info'](_0x3b6d85(0xff,0x15e)+_0x4a1fff(0x1a0,0x20a)+_0x4a1fff(0x1f6,0x23a),{'filePath':_0x37ff1e});}catch(_0x2561e7){_0x277079['warn'](_0x4a1fff(0x2d6,0x31f)+_0x3b6d85(0xe1,0xf2)+'ailed',{'error':_0x2561e7 instanceof Error?_0x2561e7[_0x4a1fff(0x2b9,0x263)]:String(_0x2561e7)});}return;}const _0x4d22b9=performance[_0x4a1fff(0x277,0x22d)](),_0x58766e={'uuid':_0x3e30ee[_0x4a1fff(0x20f,0x1fc)],'type':'assistant','message':{'role':_0x3b6d85(0x7,0xd),'content':_0x3e30ee[_0x4a1fff(0x2f5,0x26b)]},'timestamp':new Date()['toISOStrin'+'g']()},_0x241a04=_0x3e30ee['toolName']==='Write',_0x2c3a33=_0x37ff1e?isConfigFile(_0x37ff1e):![],_0xd631c7=detectActualError(_0x3e30ee['toolResult'],_0x3e30ee[_0x4a1fff(0x313,0x278)]);let _0x70fe3a;if(_0x3e30ee[_0x4a1fff(0x2a3,0x34d)]===_0x4a1fff(0x192,0x225)&&_0x3e30ee[_0x4a1fff(0x24c,0x278)])try{const _0x57076b=typeof _0x3e30ee[_0x4a1fff(0x1f4,0x278)]===_0x4a1fff(0x20a,0x251)?JSON['parse'](_0x3e30ee[_0x3b6d85(0x58,0xac)]):_0x3e30ee[_0x3b6d85(0x58,0x7e)];_0x70fe3a=_0x57076b?.[_0x3b6d85(0x84,0x124)]??_0x57076b?.[_0x4a1fff(0x303,0x32a)]??(typeof _0x57076b===_0x4a1fff(0x2f7,0x251)?_0x57076b:undefined);}catch{_0x70fe3a=typeof _0x3e30ee[_0x4a1fff(0x1de,0x278)]===_0x4a1fff(0x2ff,0x251)?_0x3e30ee[_0x3b6d85(0x58,0x1)]:undefined;}const _0x37498d=scoreSignificance(_0x58766e,{'toolName':_0x3e30ee[_0x3b6d85(0x12d,0xb5)],'isNewFile':_0x241a04,'isConfigChange':_0x2c3a33,'hasError':_0xd631c7,'bashCommand':_0x70fe3a},_0x33944e['autoCaptur'+'e'][_0x3b6d85(0x3d,0x37)+_0x3b6d85(0x24,-0x49)+'d']),_0x4f2a0a=performance[_0x4a1fff(0x24e,0x22d)](),_0x11e39a=_0x33944e['autoCaptur'+'e'][_0x3b6d85(0x3d,-0x73)+'ceThreshol'+'d']*0.5;_0x277079[_0x4a1fff(0x38b,0x2f2)]('Tool\x20evalu'+'ated',{'toolName':_0x3e30ee['toolName'],'score':_0x37498d[_0x4a1fff(0x2de,0x2e3)],'shouldCapture':_0x37498d[_0x3b6d85(0xc3,0x4b)]>=_0x11e39a});if(_0x37498d[_0x3b6d85(0xc3,0x35)]<_0x11e39a)return;const _0x11cac0=determineCategory(_0x3e30ee,_0xd631c7),_0x220fa0=buildContent(_0x3e30ee);if(!_0x220fa0){_0x277079[_0x4a1fff(0x336,0x2f2)](_0x4a1fff(0x31b,0x26f)+_0x4a1fff(0x27c,0x204)+'meaningful'+_0x3b6d85(0x5c,0x35),{'toolName':_0x3e30ee[_0x4a1fff(0x339,0x34d)]});return;}const _0x1de3d4=filterSensitiveInfo(_0x220fa0);let _0x5d0130;if(_0xd631c7)_0x5d0130=_0x3b6d85(0xce,0xa4);else{if(_0x37498d[_0x4a1fff(0x2b9,0x2e3)]<_0x33944e['autoCaptur'+'e'][_0x4a1fff(0x23b,0x25d)+_0x3b6d85(0x24,0x8)+'d'])_0x5d0130=_0x4a1fff(0x254,0x221);else{if(_0x4a1fff(0x20b,0x212)==='pnhTh'){_0x25146f['debug'](_0x4a1fff(0x3ce,0x334)+_0x4a1fff(0x32f,0x2dd),{'toolName':_0x150473[_0x4a1fff(0x2c0,0x34d)]});return;}else _0x5d0130='semantic';}}const _0x2cde76={'content':_0x1de3d4[_0x4a1fff(0x3f5,0x350)],'category':_0x11cac0,'tier':_0x5d0130,'tags':buildTags(_0x3e30ee),'projectPath':_0x3e30ee[_0x3b6d85(-0x2f,-0x6)+'h'],'sessionId':_0x3e30ee[_0x4a1fff(0x175,0x1fc)],'memoryType':CATEGORY_TYPE_MAP[_0x11cac0]??_0x4a1fff(0x22c,0x256)},_0x1781ec=getSharedDb(_0x33944e['db'][_0x3b6d85(0xbb,0x150)]),_0x170d70=performance['now'](),_0xfcf346=new DedupManager(),_0x1fa68c=_0xfcf346['findCandid'+_0x4a1fff(0x315,0x268)](_0x1781ec[_0x3b6d85(0x81,0x6f)+'es']({'projectPath':_0x3e30ee[_0x4a1fff(0x24a,0x1f1)+'h'],'limit':0x32}),_0x11cac0,_0x3e30ee[_0x3b6d85(-0x2f,-0x76)+'h']),_0x4bfe98=_0xfcf346['decide'](_0x1de3d4['filtered'],_0x1fa68c),_0x2763c5=performance[_0x4a1fff(0x182,0x22d)]();_0x277079['info'](_0x4a1fff(0x2ab,0x2f9)+_0x4a1fff(0x32d,0x343),{'action':_0x4bfe98[_0x3b6d85(-0xa,0x1c)],'similarity':_0x4bfe98[_0x4a1fff(0x3aa,0x34e)]});const _0x3f839a=performance[_0x3b6d85(0xd,-0x29)]();let _0x17ba0d;try{switch(_0x4bfe98[_0x3b6d85(-0xa,-0xb3)]){case _0x4a1fff(0x246,0x2b3):_0x277079['info'](_0x3b6d85(-0x1d,0x73)+_0x3b6d85(0x82,0xf8)+'icate)',{'similarity':_0x4bfe98[_0x3b6d85(0x12e,0x153)]});return;case _0x3b6d85(0x2d,0x33):if(_0x4bfe98[_0x4a1fff(0x2a1,0x238)+'ry']){const _0x648efd=_0xfcf346[_0x3b6d85(-0x1,-0x53)+'nt'](_0x4bfe98[_0x4a1fff(0x1a0,0x238)+'ry'][_0x4a1fff(0x373,0x2c6)],_0x1de3d4['filtered']);if(_0x648efd[_0x4a1fff(0x1ee,0x24f)]){_0x17ba0d=_0x1781ec['createMemo'+'ry'](_0x2cde76);_0x5d0130!==_0x3b6d85(0x1,0x32)&&_0x1781ec[_0x4a1fff(0x242,0x266)+_0x3b6d85(0x108,0x18c)](_0x17ba0d['id'],null,_0x4a1fff(0x2b1,0x2fd));_0x277079['info'](_0x3b6d85(0x104,0x19b)+'ed\x20instead'+_0x4a1fff(0x26c,0x2d4)+_0x4a1fff(0x2b7,0x2cb)+'ncate)',{'targetId':_0x4bfe98['targetMemo'+'ry']['id'],'newId':_0x17ba0d['id'],'targetLength':_0x4bfe98['targetMemo'+'ry'][_0x3b6d85(0xa6,0xcf)][_0x3b6d85(0x90,-0x7)],'wouldBeLength':_0x648efd['wouldBeLen'+'gth']});break;}_0x1781ec[_0x4a1fff(0x17a,0x1f5)+'ry'](_0x4bfe98[_0x3b6d85(0x18,-0x29)+'ry']['id'],{'content':_0x648efd[_0x4a1fff(0x32f,0x2c6)],'tags':[...new Set([..._0x4bfe98[_0x4a1fff(0x19c,0x238)+'ry'][_0x3b6d85(-0x8,-0x2d)]||[],...buildTags(_0x3e30ee)])]}),_0x277079[_0x4a1fff(0x27d,0x2f2)]('Memory\x20upd'+_0x4a1fff(0x302,0x30e)+_0x4a1fff(0x2b0,0x234),{'memoryId':_0x4bfe98['targetMemo'+'ry']['id']});}return;case _0x4a1fff(0x24e,0x248):{_0x4bfe98['targetMemo'+'ry']&&(isProtectedFromCleanup(_0x4bfe98[_0x4a1fff(0x2c9,0x238)+'ry'])?_0x277079[_0x3b6d85(0xd2,0x56)](_0x4a1fff(0x33a,0x30d)+'alidation\x20'+_0x3b6d85(0xaa,0x143)+_0x4a1fff(0x30d,0x2c7)+_0x3b6d85(0xd7,0xc2),{'memoryId':_0x4bfe98[_0x3b6d85(0x18,-0x8)+'ry']['id'],'category':_0x4bfe98['targetMemo'+'ry'][_0x3b6d85(0xca,0xc3)]}):(_0x1781ec[_0x4a1fff(0x21a,0x1f5)+'ry'](_0x4bfe98[_0x4a1fff(0x1ef,0x238)+'ry']['id'],{'invalidAt':new Date()[_0x3b6d85(0xb,0xa8)+'g']()}),_0x277079[_0x4a1fff(0x260,0x2f2)](_0x4a1fff(0x2b3,0x315)+_0x4a1fff(0x248,0x24c)+'lidated',{'memoryId':_0x4bfe98[_0x3b6d85(0x18,-0x67)+'ry']['id']})));_0x17ba0d=_0x1781ec[_0x3b6d85(0x3e,0x39)+'ry'](_0x2cde76);_0x5d0130!==_0x4a1fff(0x174,0x221)&&_0x1781ec['setSyncSta'+'tus'](_0x17ba0d['id'],null,_0x4a1fff(0x251,0x2fd));_0x277079['info']('Memory\x20cap'+_0x4a1fff(0x277,0x2f4)+_0x4a1fff(0x215,0x275),{'category':_0x11cac0,'memoryId':_0x17ba0d['id']});break;}case _0x4a1fff(0x301,0x285):default:_0x17ba0d=_0x1781ec[_0x3b6d85(0x3e,-0x16)+'ry'](_0x2cde76);_0x5d0130!==_0x4a1fff(0x246,0x221)&&_0x1781ec[_0x3b6d85(0x46,-0x23)+_0x4a1fff(0x38b,0x328)](_0x17ba0d['id'],null,_0x3b6d85(0xdd,0x160));_0x277079[_0x4a1fff(0x280,0x2f2)](_0x3b6d85(-0x2a,-0xc6)+'tured',{'category':_0x11cac0,'memoryId':_0x17ba0d['id']});break;}}catch(_0x1f0d7f){const _0x45c636=_0x1f0d7f instanceof Error?_0x1f0d7f:new Error(String(_0x1f0d7f));_0x277079[_0x4a1fff(0x3a2,0x309)](_0x3b6d85(-0x2c,0x74)+_0x4a1fff(0x2c3,0x2c0)+'ed',_0x45c636,{'category':_0x11cac0});}const _0x2a2477=performance[_0x4a1fff(0x221,0x22d)]();if(_0x17ba0d&&_0x33944e['embedding']?.[_0x3b6d85(0x121,0x114)]&&_0x33944e[_0x4a1fff(0x383,0x323)][_0x3b6d85(0xe6,0x180)]===_0x4a1fff(0x335,0x2d0)){if(_0x3b6d85(0xe4,0xa1)===_0x4a1fff(0x344,0x2a3))_0x11bc9b[_0x3b6d85(0x87,0x2e)](_0x2d22c7);else try{const {createEmbeddingProvider:_0x3d8914}=await import('../embeddi'+_0x4a1fff(0x285,0x279)+'s'),_0x3b1d93=_0x3d8914(_0x33944e[_0x4a1fff(0x279,0x323)],_0x33944e[_0x4a1fff(0x2e8,0x259)]),_0x2ccd14=await Promise[_0x3b6d85(-0x28,0x62)](_0x3b1d93[_0x4a1fff(0x27a,0x271)](_0x17ba0d[_0x4a1fff(0x2ba,0x2c6)]));Array[_0x3b6d85(0x101,0xc9)](_0x2ccd14)&&_0x1781ec['saveEmbedd'+_0x4a1fff(0x33d,0x33e)](_0x17ba0d['id'],_0x2ccd14);}catch(_0x2b65fd){if('cwnKj'!==_0x4a1fff(0x328,0x2d9))_0x277079[_0x3b6d85(0xe7,0x167)](_0x4a1fff(0x39b,0x33b)+_0x4a1fff(0x1e0,0x22f),{'error':_0x2b65fd instanceof Error?_0x2b65fd[_0x3b6d85(0x43,-0x62)]:String(_0x2b65fd)});else return _0x3b6d85(0x11a,0xfc);}}try{const _0x13d0a9=_0x1781ec[_0x4a1fff(0x1f9,0x2ab)+_0x4a1fff(0x3a8,0x330)](_0x3e30ee['sessionId']);if(_0x13d0a9&&_0x13d0a9[_0x4a1fff(0x391,0x2f0)+_0x3b6d85(0x57,0x6f)]){const _0x8b84be=(_0x3e30ee[_0x4a1fff(0x38b,0x34d)]+'\x20'+JSON[_0x4a1fff(0x399,0x351)](_0x3e30ee[_0x4a1fff(0x1e3,0x278)])+'\x20'+String(_0x3e30ee[_0x4a1fff(0x278,0x26b)]))[_0x3b6d85(0x89,0x6d)+'e'](),{parseInjectedKeywords:_0x30e2a1}=await import(_0x4a1fff(0x1c4,0x1fe)+'s'),_0x23eb61=_0x30e2a1(_0x13d0a9[_0x3b6d85(0xd0,0x101)+'ywords']);let _0x637583=[],_0x4c116c=[];if(_0x23eb61[_0x3b6d85(0xfc,0x9b)]){for(const [_0x49a678,_0x4fb085]of Object[_0x3b6d85(0x73,0x85)](_0x23eb61[_0x4a1fff(0x1c3,0x254)])){const _0x40dd51=_0x4fb085['filter'](_0x104383=>_0x8b84be['includes'](_0x104383));_0x40dd51[_0x4a1fff(0x2d0,0x2b0)]>0x0&&(_0x637583[_0x4a1fff(0x285,0x2a7)](..._0x40dd51),_0x4c116c[_0x4a1fff(0x2fa,0x2a7)](_0x49a678));}_0x637583=[...new Set(_0x637583)],_0x4c116c=[...new Set(_0x4c116c)];}else _0x637583=_0x23eb61['keywords'][_0x4a1fff(0x374,0x2f5)](_0x5b51d1=>_0x8b84be[_0x4a1fff(0x2fc,0x318)](_0x5b51d1));_0x637583[_0x4a1fff(0x34a,0x2b0)]>0x0&&_0x1781ec[_0x3b6d85(0x85,-0x13)+'ctionHit'](_0x13d0a9['id'],_0x637583,_0x3e30ee[_0x4a1fff(0x2c8,0x34d)],_0x4c116c);}}catch{}if(_0x17ba0d&&(_0x4bfe98['action']===_0x3b6d85(0x65,0xf0)||_0x4bfe98['action']===_0x4a1fff(0x2c0,0x248))){if(_0x3b6d85(0x77,0x3e)===_0x4a1fff(0x317,0x297))try{_0x4a1fff(0x2e5,0x24e)!==_0x4a1fff(0x26f,0x24e)?_0x499a4e[_0x4a1fff(0x29b,0x224)]():_0x1781ec['recordExtr'+_0x4a1fff(0x374,0x32b)]({'memoryId':_0x17ba0d['id'],'sessionId':_0x3e30ee[_0x4a1fff(0x19b,0x1fc)],'significanceScore':_0x37498d[_0x3b6d85(0xc3,0x16e)],'dedupAction':_0x4bfe98[_0x3b6d85(-0xa,-0xe)],'tier':_0x5d0130});}catch{}else{_0x3fbc97[_0x3b6d85(0xd2,0x14d)]('Skipping\x20m'+_0x3b6d85(-0x1c,0x40)+'meaningful'+_0x3b6d85(0x5c,0x86),{'toolName':_0x5179bd[_0x4a1fff(0x341,0x34d)]});return;}}if(_0x17ba0d&&_0x17ba0d[_0x3b6d85(0x103,0xca)]&&_0x33944e[_0x3b6d85(0xc9,0x15c)+'rsion']?.['enabled'])try{const {SkillEvaluator:_0x3822b8}=await import(_0x3b6d85(0xbc,0xd4)+_0x3b6d85(0x120,0xfe)+'s'),_0x4c986e=new _0x3822b8(_0x1781ec,_0x33944e),_0x12ebdf=_0x4c986e[_0x3b6d85(0x95,0xca)+'Skill'](_0x17ba0d);_0x12ebdf[_0x3b6d85(0xda,0xde)]&&_0x277079['info']('Memory\x20abs'+_0x3b6d85(0x26,0x1)+_0x3b6d85(0xb6,0xf7),{'memoryId':_0x17ba0d['id'],'skillId':_0x12ebdf[_0x3b6d85(0x0,-0x5d)]});}catch{}const _0x189c6e=performance[_0x4a1fff(0x2be,0x22d)]();let _0x5dfc2c=0x0;const _0x696fe7=_0x33944e[_0x4a1fff(0x2b0,0x2b1)+_0x4a1fff(0x31d,0x294)]?.[_0x4a1fff(0x361,0x341)]!==![]&&_0x33944e['frozenSnap'+_0x4a1fff(0x307,0x294)]?.[_0x3b6d85(0x50,0xb6)+_0x4a1fff(0x2a5,0x24b)]!==!![];if(_0x33944e[_0x4a1fff(0x1d3,0x1fb)]?.[_0x4a1fff(0x2e9,0x341)]&&_0x33944e[_0x4a1fff(0x230,0x2cc)]?.[_0x4a1fff(0x324,0x2be)]&&!_0x696fe7){try{if(_0x3b6d85(0xf6,0x60)===_0x3b6d85(0xf6,0x4b)){const _0x1db6d1=_0x1781ec['getPending'+_0x3b6d85(0x76,-0x4)]();if(_0x1db6d1>=AUTO_SYNC_THRESHOLD){const _0x31c99d=createHookClient(_0x33944e);if(_0x31c99d){const _0x29db3b=new SyncQueue(_0x1781ec,_0x31c99d),_0x251158=await _0x29db3b['flush']({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x251158[_0x4a1fff(0x25a,0x22e)]>0x0&&(_0x277079[_0x3b6d85(0xd2,0x13a)]('Auto-sync\x20'+_0x3b6d85(0xe,0xb2),{'pushed':_0x251158[_0x3b6d85(0xe,-0x1c)],'pending':_0x1db6d1}),console[_0x4a1fff(0x34a,0x309)](_0x4a1fff(0x28d,0x23b)+_0x4a1fff(0x35c,0x333)+_0x251158[_0x4a1fff(0x1bb,0x22e)]+_0x3b6d85(0x19,-0x97)));}}}else{const _0x25e86f=_0x3debaa[_0x4a1fff(0x25e,0x205)](_0x1b52c5);if(_0x4f73af[_0x4a1fff(0x2f6,0x321)](_0x25e86f))return'[Array:\x20'+_0x25e86f[_0x4a1fff(0x305,0x2b0)]+_0x4a1fff(0x30e,0x272)+_0x4aaf2f[_0x3b6d85(0x131,0xe2)](_0x25e86f[0x0])[_0x3b6d85(0x8a,0x38)](0x0,0xc8)+_0x3b6d85(0xb7,0xf1);const _0x2c7800=_0x4fb41c[_0x3b6d85(0xf4,0xb7)](_0x25e86f)['slice'](0x0,0xa),_0x3d030e=_0x2c7800['map'](_0x2b823d=>{function _0x1c15bc(_0x206f26,_0x9ee9e7){return _0x3b6d85(_0x206f26-0x396,_0x9ee9e7);}const _0x432071=_0x25e86f[_0x2b823d],_0x296b57=typeof _0x432071===_0x24ff25(-0xb9,-0xbe)?_0x432071[_0x1c15bc(0x420,0x3a9)](0x0,0x50):_0x1b6fe1[_0x1c15bc(0x4c7,0x420)](_0x432071)[_0x1c15bc(0x420,0x37b)](0x0,0x50);function _0x24ff25(_0x5070c2,_0x45d0e1){return _0x3b6d85(_0x45d0e1- -0xef,_0x5070c2);}return _0x2b823d+':\x20'+_0x296b57;})[_0x3b6d85(-0x21,-0x4c)](',\x20');return _0x3d030e[_0x3b6d85(0x8a,0x132)](0x0,0x320);}}catch(_0x63ded6){_0x277079[_0x4a1fff(0x2e4,0x307)]('Auto-sync\x20'+_0x4a1fff(0x228,0x22f),{'error':_0x63ded6 instanceof Error?_0x63ded6[_0x3b6d85(0x43,-0x7)]:String(_0x63ded6)});}_0x5dfc2c=Math[_0x4a1fff(0x2a8,0x20b)](performance[_0x4a1fff(0x26a,0x22d)]()-_0x189c6e);}else _0x33944e[_0x4a1fff(0x1e9,0x1fb)]?.[_0x3b6d85(0x121,0xd7)]&&_0x33944e[_0x4a1fff(0x28a,0x2cc)]?.[_0x3b6d85(0x9e,0xea)]&&_0x696fe7&&(_0x4a1fff(0x1a4,0x242)!==_0x3b6d85(0xf2,0x114)?_0x277079[_0x3b6d85(0x12a,0xfc)](_0x3b6d85(-0x11,0x3e)+'pshot\x20mode'+_0x3b6d85(0x38,0xd0)+'\x20—\x20auto-sy'+_0x4a1fff(0x217,0x26c)+_0x4a1fff(0x3e0,0x33f)+_0x3b6d85(0x25,-0x3f)):_0xcdb11f['warn'](_0x3b6d85(-0x27,-0xc0)+'failed',{'error':_0x4c8729 instanceof _0x1643c2?_0x10fd9b['message']:_0x4163e2(_0x19c1f3)}));const _0x5b47c8=Math[_0x3b6d85(-0x15,-0x13)](performance[_0x3b6d85(0xd,0x4a)]()-_0x3cde20),_0x11165a=Math['round'](_0xb3f7cd-_0x3cde20),_0x17d898=Math[_0x4a1fff(0x176,0x20b)](_0x4f2a0a-_0x4d22b9),_0x481ad6=Math[_0x4a1fff(0x28b,0x20b)](_0x2763c5-_0x170d70),_0x98d414=Math[_0x4a1fff(0x26e,0x20b)](_0x2a2477-_0x3f839a),_0x20fcbf=_0x5dfc2c>0x0?_0x3b6d85(0xe5,0x12a)+_0x5dfc2c+'ms':'';process[_0x4a1fff(0x247,0x29f)][_0x4a1fff(0x237,0x264)](_0x3b6d85(0x96,0xb2)+_0x4a1fff(0x394,0x2fb)+_0x4a1fff(0x2a2,0x202)+_0x3b6d85(0xf1,0xe9)+_0x5b47c8+(_0x4a1fff(0x2a5,0x345)+_0x4a1fff(0x2bc,0x2e6))+_0x11165a+('ms,\x20signif'+_0x4a1fff(0x2be,0x322))+_0x17d898+(_0x3b6d85(0x9b,0x33)+'\x20')+_0x481ad6+'ms,\x20db:\x20'+_0x98d414+'ms'+_0x20fcbf+')\x0a'),_0x277079[_0x3b6d85(0xd2,0xf3)](_0x3b6d85(-0x31,-0x85)+_0x4a1fff(0x1f1,0x21a),{'durationMs':_0x5b47c8});}}finally{_0x277079[_0x4a1fff(0x208,0x224)]();}}function extractFilePath(_0x4ee6d0){function _0x568bb3(_0x1752b7,_0x56451a){return _0x24567a(_0x56451a,_0x1752b7-0x54d);}let _0x4a6448=_0x4ee6d0;function _0x35c3c7(_0x5297bd,_0x3e02a8){return _0x24567a(_0x3e02a8,_0x5297bd-0x548);}if(typeof _0x4a6448===_0x35c3c7(0x4e8,0x45f))try{_0x4a6448=JSON['parse'](_0x4a6448);}catch{if('QzJmj'==='fuHIh'){const _0x512a77=_0x49515e[_0x568bb3(0x4aa,0x3f8)]('/')[_0x568bb3(0x529,0x50e)]()??'';return _0x29847a[_0x568bb3(0x5ac,0x5e0)](_0x587384=>{function _0x5a3d35(_0x1020be,_0x295337){return _0x568bb3(_0x1020be- -0x446,_0x295337);}function _0x34cbb6(_0x3e5013,_0x3766f6){return _0x568bb3(_0x3e5013- -0x179,_0x3766f6);}if(_0x587384[_0x5a3d35(0x8d,0xe)]('*'))return _0x512a77['endsWith'](_0x587384['slice'](0x1));if(_0x587384[_0x5a3d35(0xb0,0xb5)]('*'))return _0x512a77[_0x34cbb6(0x35a,0x3d9)](_0x587384[_0x34cbb6(0x3cd,0x3c5)](0x0,-0x1));return _0x512a77===_0x587384;});}else return null;}if(typeof _0x4a6448===_0x568bb3(0x4d8,0x4a3)&&_0x4a6448!==null){if(typeof _0x4a6448[_0x35c3c7(0x522,0x56a)]==='string')return _0x4a6448['file_path'];if(typeof _0x4a6448['path']===_0x35c3c7(0x4e8,0x593))return _0x4a6448[_0x35c3c7(0x572,0x5f8)];}return null;}function isSensitiveFile(_0x3255dd,_0x10c2d3){function _0x2a0640(_0x4cb2d7,_0x3714cd){return _0x24567a(_0x3714cd,_0x4cb2d7-0x120);}const _0xa45406=_0x3255dd[_0x2a0640(0x7d,0xe1)]('/')['pop']()??'';function _0x59f283(_0x27a7bb,_0x4b363e){return _0x24567a(_0x27a7bb,_0x4b363e- -0x14);}return _0x10c2d3[_0x59f283(-0x48,0x4b)](_0x568e3b=>{if(_0x568e3b['startsWith']('*'))return _0xa45406[_0x568925(0x22d,0x17c)](_0x568e3b[_0x37ac7c(0x413,0x4b5)](0x1));function _0x37ac7c(_0x37252f,_0x353055){return _0x2a0640(_0x353055-0x39c,_0x37252f);}if(_0x568e3b[_0x568925(0x175,0x17c)]('*'))return _0xa45406[_0x37ac7c(0x43b,0x442)](_0x568e3b[_0x37ac7c(0x47d,0x4b5)](0x0,-0x1));function _0x568925(_0x239b7f,_0x118692){return _0x2a0640(_0x118692-0xb3,_0x239b7f);}return _0xa45406===_0x568e3b;});}function isConfigFile(_0x11548c){function _0xc6193b(_0x3e5e24,_0x165fd1){return _0x1c9e33(_0x165fd1,_0x3e5e24-0x57);}const _0x4b75d7=[_0x402fe6(-0x250,-0x212),'.yaml','.yml',_0xc6193b(0x280,0x2c2),_0xc6193b(0x2dd,0x362),_0xc6193b(0x1fd,0x21f),'.cfg'];function _0x402fe6(_0x1f8542,_0x3019a0){return _0x1c9e33(_0x1f8542,_0x3019a0- -0x437);}return _0x4b75d7['some'](_0xbbd470=>_0x11548c[_0x402fe6(-0x238,-0x244)](_0xbbd470));}function detectActualError(_0x47f7c5,_0x58e9c1){if(_0x47f7c5[_0x2adcd5(0x4f6,0x4b4)]<0xc8)return![];const _0x3de012=_0x58e9c1?.[_0x2adcd5(0x593,0x5f0)];function _0x2adcd5(_0x95bdb9,_0x4e899b){return _0x1c9e33(_0x4e899b,_0x95bdb9-0x2ad);}if(_0x3de012===_0x2adcd5(0x46e,0x4c8))return![];const _0x252a45=_0x47f7c5[_0x2adcd5(0x4ef,0x535)+'e'](),_0x22a479=[_0x2adcd5(0x489,0x476),_0x3d1838(0x1ee,0x189),_0x2adcd5(0x4e2,0x4f0),'exception',_0x3d1838(0x25c,0x211),_0x3d1838(0x1d1,0x197),_0x2adcd5(0x46c,0x4c2),'FAILED',_0x3d1838(0x27d,0x2d2),'Traceback'],_0x490858=_0x22a479[_0x3d1838(0x281,0x324)](_0x40a986=>_0x47f7c5[_0x2adcd5(0x55e,0x4be)](_0x40a986)||_0x252a45['includes'](_0x40a986[_0x3d1838(0x21a,0x24e)+'e']()));if(!_0x490858)return![];function _0x3d1838(_0x18f7cb,_0x43943f){return _0x1c9e33(_0x43943f,_0x18f7cb- -0x28);}const _0x14d148=_0x58e9c1?.['file_path']||_0x58e9c1?.[_0x3d1838(0x24c,0x1ee)]||'';if(_0x14d148[_0x3d1838(0x21a,0x1f8)+'e']()['includes'](_0x2adcd5(0x54f,0x600))&&!_0x22a479[_0x2adcd5(0x4f0,0x48d)](0x2)[_0x2adcd5(0x556,0x57a)](_0x1f15ab=>_0x252a45['includes'](_0x1f15ab[_0x3d1838(0x21a,0x1c4)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x20cbbd,_0x10441e){if(_0x10441e)return _0x1ec1dd(-0x7c,-0xaa)+_0x132a18(0x126,0x10b);const _0x594c26=_0x20cbbd[_0x1ec1dd(-0x5a,-0xf9)]['toLowerCas'+'e']();function _0x132a18(_0x1d96ca,_0x2be193){return _0x24567a(_0x1d96ca,_0x2be193-0x124);}const _0x23ee73=_0x20cbbd['toolResult'];if(_0x20cbbd[_0x132a18(0x18d,0x1c0)]===_0x132a18(0x3e,0x98)){const _0x3f4379=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x132a18(0x1f7,0x199)](_0x20cbbd[_0x132a18(0x93,0xde)]);if(_0x3f4379)return _0x132a18(0x193,0x110);const _0x5724a9=['chose',_0x1ec1dd(-0xae,-0x13),'opted\x20for','selected',_0x132a18(0xb8,0x132),'went\x20with'];if(_0x5724a9[_0x132a18(0xd1,0x183)](_0x139436=>_0x594c26[_0x1ec1dd(0x53,0x4a)](_0x139436)))return _0x132a18(0x1e1,0x1ad);const _0x1ca984=[_0x132a18(0x140,0x8e),_0x132a18(0xf0,0xcf),_0x132a18(0x7f,0xb4),'rule',_0x1ec1dd(0x8a,0xe2),_0x1ec1dd(0x0,-0xad)+_0x132a18(0x30,0x91)];if(_0x1ca984[_0x1ec1dd(0x4b,-0x4c)](_0x4f4b7e=>_0x594c26[_0x132a18(0x10b,0x18b)](_0x4f4b7e))){if(_0x1ec1dd(-0xa2,-0x10d)===_0x1ec1dd(0x4,-0x2))_0x2d3b72=_0x1b1938[_0x1ec1dd(-0xc0,-0x36)](_0xc0de0a);else return _0x132a18(-0x18,0x8e);}if(LEARNING_KEYWORDS_RE[_0x132a18(0x108,0x199)](_0x23ee73)){if('qWDCx'===_0x132a18(0x1c5,0x11b))_0x3b6f63['recordInje'+_0x1ec1dd(0x8d,0x76)](_0x341357['id'],_0x201fcd,_0x27c7e9[_0x132a18(0x245,0x1c0)],_0x5a468f);else return _0x1ec1dd(-0x58,-0xb0);}}if(_0x20cbbd['toolName']===_0x1ec1dd(-0x9d,-0x148)||_0x20cbbd['toolName']===_0x132a18(0x124,0x164)||_0x20cbbd[_0x132a18(0x147,0x1c0)]===_0x132a18(0x88,0xce))return _0x1ec1dd(-0x28,-0x40);function _0x1ec1dd(_0x5c439f,_0x4ba677){return _0x24567a(_0x4ba677,_0x5c439f- -0x14);}if(_0x20cbbd[_0x132a18(0x168,0x1c0)]===_0x132a18(0x23,0xc5)||_0x20cbbd[_0x132a18(0x23f,0x1c0)]===_0x1ec1dd(0xd,0x63)){const _0x4a5c5b=extractFilePath(_0x20cbbd[_0x1ec1dd(-0x4d,0x1e)]),_0x3ced56=_0x20cbbd[_0x1ec1dd(-0x5a,-0xe9)];if(_0x4a5c5b&&(_0x4a5c5b[_0x1ec1dd(0x53,0xf6)](_0x132a18(0x1b7,0x1a8))||_0x4a5c5b['includes'](_0x1ec1dd(0xa,0x30))))return _0x1ec1dd(-0x28,-0x71);if(_0x3ced56[_0x132a18(0x16d,0x123)]<0x32||_0x3ced56[_0x132a18(0xb4,0x11c)+'e']()[_0x1ec1dd(0x53,-0x26)]('file\x20writt'+'en\x20success'+'fully')||_0x3ced56[_0x132a18(0x18b,0x11c)+'e']()['includes'](_0x1ec1dd(-0xa3,-0x6e)+'ed')||_0x3ced56['toLowerCas'+'e']()[_0x1ec1dd(0x53,-0x3a)]('created\x20su'+_0x132a18(0x16d,0x111)))return _0x132a18(0x117,0x110);if(LEARNING_KEYWORDS_RE[_0x1ec1dd(0x61,0x13)](_0x3ced56)){if(_0x132a18(0xfa,0x141)!==_0x1ec1dd(0x9,0x2a))_0x1ec2d3[_0x132a18(0x94,0x144)+_0x132a18(0x1a4,0x19e)]({'memoryId':_0x50d3bb['id'],'sessionId':_0x1f28d4[_0x1ec1dd(-0xc9,-0x163)],'significanceScore':_0x5be382[_0x132a18(0x16b,0x156)],'dedupAction':_0x3d8861['action'],'tier':_0x44b2ac});else return'learning';}return'code_patte'+'rn';}return'context';}export function buildContent(_0x57dcbc){function _0x3b5ddf(_0x32bc81,_0x568fd3){return _0x24567a(_0x568fd3,_0x32bc81-0x393);}const _0x3f347f=extractFilePath(_0x57dcbc[_0x3b5ddf(0x35a,0x32e)]);let _0x436983=_0x57dcbc['toolResult']['slice'](0x0,0x5dc)['trim']();(_0x57dcbc[_0x3b5ddf(0x42f,0x402)]==='Edit'||_0x57dcbc[_0x32ddec(0x400,0x3b1)]==='Write')&&_0x436983['startsWith']('{')&&(_0x436983=stripDiffContent(_0x436983));_0x57dcbc[_0x32ddec(0x317,0x3b1)]===_0x32ddec(0x249,0x289)&&_0x436983['startsWith']('{')&&(_0x436983=extractBashContent(_0x436983));_0x436983[_0x3b5ddf(0x392,0x368)]>0x1f4&&(_0x436983[_0x3b5ddf(0x319,0x2b9)]('{')||_0x436983[_0x32ddec(0x302,0x29b)]('['))&&(_0x436983=summarizeJsonResult(_0x436983));_0x436983=_0x436983[_0x3b5ddf(0x38c,0x327)](0x0,0x3e8)[_0x3b5ddf(0x363,0x34b)]();if(!_0x436983||isNoiseResult(_0x436983)){if(_0x3b5ddf(0x322,0x3a3)!=='szuhs')return'';else _0x12be02[_0x3b5ddf(0x42c,0x384)](_0x3b5ddf(0x2f1,0x365)+'pshot\x20mode'+_0x3b5ddf(0x33a,0x32d)+_0x3b5ddf(0x3aa,0x364)+_0x3b5ddf(0x34e,0x33c)+'d\x20to\x20Sessi'+_0x3b5ddf(0x327,0x290));}const _0x3e864e=[];function _0x32ddec(_0x428c53,_0x373c04){return _0x24567a(_0x428c53,_0x373c04-0x315);}if(_0x3f347f)_0x3e864e[_0x32ddec(0x3b1,0x30b)](_0x32ddec(0x3be,0x3ab)+_0x3f347f);_0x3e864e['push'](_0x436983);const _0x1af6b3=_0x3e864e['join']('\x0a');if(_0x1af6b3[_0x3b5ddf(0x392,0x2e2)]<0x14)return'';return _0x1af6b3;}function _0x1c9e33(_0xf8c905,_0x2a1a65){return _0x2e1c(_0x2a1a65-0xa6,_0xf8c905);}function stripDiffContent(_0x1cc954){function _0x2da0ae(_0x4b6547,_0x41c417){return _0x24567a(_0x4b6547,_0x41c417-0xb9);}function _0x16c271(_0x55243f,_0x43d4c6){return _0x24567a(_0x55243f,_0x43d4c6-0xc7);}try{const _0x158c87=JSON[_0x2da0ae(0x2f,0xd)](_0x1cc954);if(_0x158c87[_0x16c271(0x174,0xd3)]||_0x158c87['newString']||_0x158c87[_0x16c271(0x65,0xf7)+_0x16c271(0x145,0x15f)]||_0x158c87[_0x2da0ae(-0x53,0x32)]&&_0x158c87[_0x16c271(0x1cd,0x143)]&&typeof _0x158c87['content']===_0x16c271(0xfa,0x67))return'';return _0x1cc954;}catch{if(_0x1cc954[_0x16c271(0x1bf,0x12e)](_0x16c271(0x109,0x9f)+'\x22')||_0x1cc954[_0x16c271(0x14b,0x12e)]('\x22newString'+'\x22')||_0x1cc954[_0x2da0ae(0xb1,0x120)](_0x2da0ae(0x12a,0x121)+_0x16c271(0xe9,0xf0))||_0x1cc954[_0x16c271(0x177,0x12e)](_0x2da0ae(0xfb,0x153))&&_0x1cc954[_0x16c271(0x136,0x12e)](_0x16c271(0x4f,0x80))&&_0x1cc954[_0x16c271(0x1a3,0x12e)]('\x22content\x22')){if('bFuGh'!=='bFuGh'){if(typeof _0x2cdedd['file_path']==='string')return _0xd01a9d[_0x2da0ae(0xb4,0x93)];if(typeof _0x356206[_0x16c271(0x7e,0xf1)]===_0x16c271(-0x2f,0x67))return _0x2e34d0[_0x2da0ae(0xe3,0xe3)];}else return'';}return _0x1cc954;}}function extractBashContent(_0x1a5dec){function _0x2ce443(_0x153e1e,_0x5c5894){return _0x24567a(_0x153e1e,_0x5c5894-0x95);}function _0x588a54(_0x14b528,_0x23137a){return _0x24567a(_0x23137a,_0x14b528-0xac);}try{if(_0x2ce443(0x2b,-0x29)!==_0x2ce443(0xd,-0x29))return'context';else{const _0x344e79=JSON['parse'](_0x1a5dec),_0x2796b2=(_0x344e79[_0x588a54(0x127,0x125)]||'')[_0x588a54(0x7c,0x79)](),_0x292178=(_0x344e79[_0x588a54(0x9a,0xb8)]||'')[_0x588a54(0x7c,-0x2d)]();if(_0x292178&&_0x292178[_0x2ce443(0xa4,0x94)]>0xa)return _0x2ce443(0x1cc,0x12c)+_0x292178[_0x588a54(0xa5,0xd)](0x0,0x1f4)+(_0x2796b2?_0x2ce443(0x0,0x62)+_0x2796b2['slice'](0x0,0x12c):'');if(_0x2796b2)return _0x2796b2['slice'](0x0,0x3e8);return _0x1a5dec[_0x588a54(0xa5,0xcb)](0x0,0x1f4);}}catch{return _0x1a5dec['slice'](0x0,0x3e8);}}function _0x2dcf(){const _0xcd6300=['Dg90ywXty29Yzq','B3vY','CMuGzgLZywjSzq','zZOG','B25SEq','zLrXBhy','C2TPBgXdB252zq','y2f0zwDVCNK','rxHJzxb0Aw9U','iNn0yxr1CYi6iG','lMvUDG','zxbPC29KAwm','DxrMltG','Aw5Qzwn0zwrlzq','r3jLCa','Aw5MBW','AgvHBhrOEsi','DhvYzwqGkgfMDa','zMLSDgvY','C2fTzq','C3nLDcK','Bwf0y2G','rgvKDxaGzgvJAq','ywjZB3jIzwq','vg9VBfvZzsbJBW','B0LfA2y','CgvUzgLUzW','D2vIzMv0y2G','CMvWBgfJzq','BhDxEvu','B3j5ihn5BMmGzG','u2vUC2L0AxzLia','BgLZDa','v1nRC3e','lcbZEw5JoIa','ChjVDMLKzxi','D2fYBG','AgfZ','zxjYB3i','DxnLlMPZ','DgHLEq','DhjHy2vIywnR','revmrvrfigLUDG','yxrLzcaOBwvYzW','C3jJ','C29Tzq','B3rHBdOG','BLrSreS','CM9YoG','A2v5CW','t2XKig1LBw9YEq','zvjzz0e','ywjVDMu','Aw5JBhvKzxm','iNn0CNvJDhvYzq','DgfIBgu','z2v0','Axnnyxa','AxrZ','ChjVy2vKDxjL','q2XHDwrLig1LBq','BNvSBa','AxnbCNjHEq','AwnHBMnLoIa','zw1IzwrKAw5N','twvTB3j5ihnHDG','AgvY','DgvZDa','lI4Vy2XHDwrLlW','DhvZ','zxbPC29Kzq','y21K','ywn0Aw9UrxzHBa','C3rKB3v0','zMLSzvbHDgG','Bw9ZDa','z2XVyG','BMPLy3rPB24','DgHPCW','mtbtuvPOtvG','lxn5BMnLzca','vg9VBcbUB3qGAq','l3rLC3qV','zwrPDa','y29UzhmI','zhvYAw5N','ANnVBG','zgvJAxnPB24','rw1IzwrKAw5Nia','C2TPBgW','yNngy0O','Aw5N','zcb0BYbtzxnZAq','DMfSDwf0B3iUAG','zw5HyMXLza','zM9Y','C2LVBG','DgHL','BxmGFcbJB25MAq','D2LSBa','rMLSztOG','w0vYCM9Yxsa','ugf0y2G','zgvIDwC','iNr5CguI','Bg9Hza','Dg9VBe5HBwu','C2LTAwXHCML0Eq','z3vPzgvSAw5L','zMLSDgvYzwq','C3rYAw5NAwz5','y3rPB25iAxq','sg9VAYbJB21WBa','yMvMB3jL','ChjVAMvJDfbHDa','Bw9Yzq','v3rlsvm','twvTB3j5ignYzq','DxbKyxrLtwvTBW','twvTB3j5ignHCa','DhjPz2DLCNm','CMvZB2X2zq','qxv0BY1ZEw5Jia','BwfW','yxv0B1n5BMm','C2vZC2LVBKLK','v2vIrMv0y2G','lI9ZAgfYzwqUAG','AM9PBG','C2HVDwXK','Ahr0CdO0mdq','BxbSzxrLzcaODa','twvTB3j5ihnRAq','zw1VCNK6ig5Via','CgfYC2u','zNvSBhK','BxmPcG','DgHLBq','zxHPDa','B3j5igzPBguGCW','CM91BMq','vgfZAW','lMLUAq','C3bSAxq','rNjVEMvUihnUyq','EM1Pvuq','ChjVAMvJDf9RBG','AgT5see','zxHWzxjPzw5Jzq','BMv3','oteYsfnKwwje','ywn0Aw9U','zgvJAwrLza','DgfNCW','ywrK','zxrLza','y29UDMvUDgLVBG','BwL0xq','qxzNBM0','AwnL','BwvYz2vdB250zq','C2TPBgXjza','D29YA2LUzW','zMLSzsbJCMvHDa','vvrWtwe','zMX1C2G','qMfZAa','rMfPBgvKoG','yxnZAxn0yw50','uMvHza','y29Uy2f0','DhLWzq','Dg9ju09tDhjPBG','Dw5KzwzPBMvK','BM93','ChvZAgvK','zMfPBgvK','BM9Uzq','sgXqA2O','Bwf5','mteXmJG4odrrA05UDMm','zwqP','yxv0B0nHChr1CG','iNvWDgLTzv9Zzq','C3rHCNrZv2L0Aa','DgfYz2v0twvTBW','ig1LBw9YAwvZ','Ew5Jzwq','w2eYyv0Gqxv0BW','B2jQzwn0','y29T','nJiYngHiuK54tq','B3DAufe','tKTXD2q','Cgf0DgvYBG','CxD0ufy','zxjYB3i6','y2vuAhjLC2HVBa','B25fBMq','B3jIzwqGAw50BW','Agf2zq','revmrvrf','zxjYB3jFC29SDq','C2HHBgW','qxv0B1n5BMm','ihnVzNqTAw52yq','vvbeqvrf','zKnkDwe','Dhj1BMnHDgvK','oujvD2LTAa','C3rYAw5N','v3jPDgu','nfzktMzmuq','A2v5D29Yze1HCa','y3jLyxrLzcbZDq','zMfJDa','AgLZ','icHbrfiTmdmZkq','BgXT','zw5KC1DPDgG','r2XVyG','C3rHBMrHCMq','C2LNBMLMAwnHBG','y3jLyxrLtwvTBW','Bwu6','zMfPBgvKoG','zMv3','C3rKAw4','BwvZC2fNzq','D3jPDgu','DMvYEq','C2v0u3LUy1n0yq','Aw1LoG','yxrLCW','nZeXmtv5qKjivKu','iMzPBgvqyxrOiG','Dg9VBfjLC3vSDa','BMmGzgvMzxjYzq','BgvHCM5PBMC','zgf0yq','u2TPChbPBMCGBq','BwLKu2vZC2LVBG','zw1Izwq','igL0zw1Zxsa','EwfTBa','Ew1S','zxiGzgvSzxrLkq','DgHYB3vNAa','ExDVCMrZ','Dg9VBeLUChv0','BMCVAw5KzxGUAG','BxmSignSyxvKzq','BwLNAhq','ignVBNrLBNq','rxjYB3i6','cLTpDxrWDxrDia','EYjZDgrVDxqIoG','ug9ZDfrVB2XvCW','DhjPBq','nZe0ntCWuLzitMXL','zMLYC3rFDxb0Aq','mJvXAevxvNq','qure','yMfZAa','ywXZBW','CMvHza','iM9Szfn0CMLUzW','D2vIC2vHCMnO','zMLSzv9WyxrO','lMPZB24','Cg9W','l3zHCI9MB2XKzq','mZGWmZiZoxjmAg1qzG','lNrVBwW','zNjVBq','yMvLBG','zw50CMLLCW','C2HVDa','C3vJAa','u3LUy0nVDw50','z1LrEMq','DgLVBG','Ahr0CdOYmda','ywjVDxq','w2eYyv0Gug9ZDa','rvjst1i6','y29UDgv4Da','y2nLC3nMDwXSEq','C3rKzxjY','BMfTzq','BgLZDe1LBw9YAq','ChbLzcaOzhvWBa','zLvRweK','y29TBwfUza','CMvJB3jKsw5Qzq','mJa0nde0n010C2T4rG','ChvZAa','CLPtEuC','Dg9mB3DLCKnHCW','C2XPy2u','z2v0tgf0zxn0sq','zxzLCNK','y3nZ','C2vJB25Kx3vWDa','y291Bgq','BgvUz3rO','zNjVEMvUu25HCa','D291Bgq','tK9pua','8j+uJsbBuhjLlunVBq','ywjZB3jIsw50BW','w0eYqv0Gug9ZDa','DMfSDwu','BvrzveW','D2L0Aa','zxHJBhvKzvbHDa','BxmSigrLzhvWoG','Bg9Nz2LUzW','B2XKu3rYAw5N','yxbPs2v5','CgLJA2vK','yxrPB24GzMfPBa','zMfSC2u','yM90Aa','yxjNDG','mJuXnJi2neHRtffOva','yMvZDcbWCMfJDa','y29UDgvUDa','CM90zwn0zwqGyq','iokaLcbHDxrVlxn5','wuPcsgW','C2TPChbLzcaOCa','khDVDwXKihrYDq','C2vYDMvY','zgvK','quDTywK','l3rTCc8','Bg9JywW','CMvJB3jKrxH0CG','rwrPDa','yw5K','ig9Mig1LCMDLia','zwfJAa','ihnRAwXS','lI4U','D2fZ','CLDOveK','zfbHDgnOiG','Cgf0Aa','lI4VC2TPBgWVzq','BIb0CMLNz2vYCW','Dhj1zq','Ew91','y29Kzv9Wyxr0zq','C3rYDwn0DxjLza','DgHHDa'];_0x2dcf=function(){return _0xcd6300;};return _0x2dcf();}function summarizeJsonResult(_0x27b9c5){function _0x3d5163(_0x1ecfbe,_0x59a3ef){return _0x24567a(_0x1ecfbe,_0x59a3ef- -0x233);}function _0x1f7f43(_0x293470,_0x2963d5){return _0x24567a(_0x2963d5,_0x293470-0xc0);}try{const _0x4b5495=JSON[_0x1f7f43(0x14,-0x2d)](_0x27b9c5);if(Array[_0x3d5163(-0x16f,-0x1c3)](_0x4b5495))return'[Array:\x20'+_0x4b5495[_0x1f7f43(0xbf,0x88)]+_0x1f7f43(0x81,0xda)+JSON[_0x3d5163(-0x16e,-0x193)](_0x4b5495[0x0])[_0x3d5163(-0x274,-0x23a)](0x0,0xc8)+'...';const _0x5d2aab=Object[_0x1f7f43(0x123,0x10a)](_0x4b5495)[_0x1f7f43(0xb9,0x93)](0x0,0xa),_0x61a07a=_0x5d2aab[_0x1f7f43(0x9,0x40)](_0x1f6d3e=>{function _0x51bd16(_0x1059d5,_0x52d97d){return _0x1f7f43(_0x52d97d-0x2bc,_0x1059d5);}function _0x2fe3ad(_0x3aa6c1,_0x346759){return _0x1f7f43(_0x3aa6c1-0x3f3,_0x346759);}if(_0x2fe3ad(0x441,0x432)===_0x51bd16(0x2e9,0x30a)){const _0x8b6387=_0x4b5495[_0x1f6d3e],_0x31522f=typeof _0x8b6387==='string'?_0x8b6387[_0x51bd16(0x365,0x375)](0x0,0x50):JSON[_0x2fe3ad(0x553,0x530)](_0x8b6387)[_0x2fe3ad(0x4ac,0x533)](0x0,0x50);return _0x1f6d3e+':\x20'+_0x31522f;}else{const _0x8b1e6=_0x3ebf79(_0x340d7d[_0x2fe3ad(0x47a,0x50f)]),_0x53bb69=_0x55e8c2[_0x2fe3ad(0x46d,0x454)];if(_0x8b1e6&&(_0x8b1e6[_0x51bd16(0x459,0x3e3)](_0x2fe3ad(0x537,0x581))||_0x8b1e6[_0x51bd16(0x46d,0x3e3)](_0x2fe3ad(0x4d1,0x4a5))))return'context';if(_0x53bb69['length']<0x32||_0x53bb69[_0x51bd16(0x425,0x374)+'e']()[_0x2fe3ad(0x51a,0x556)]('file\x20writt'+'en\x20success'+_0x2fe3ad(0x408,0x3d4))||_0x53bb69['toLowerCas'+'e']()[_0x51bd16(0x36e,0x3e3)](_0x51bd16(0x2e8,0x2ed)+'ed')||_0x53bb69[_0x51bd16(0x3ce,0x374)+'e']()[_0x2fe3ad(0x51a,0x533)](_0x2fe3ad(0x457,0x4ec)+'ccessfully'))return _0x2fe3ad(0x49f,0x544);if(_0x11acc4[_0x2fe3ad(0x528,0x4b7)](_0x53bb69))return'learning';return _0x51bd16(0x354,0x3ab)+'rn';}})[_0x1f7f43(0xe,0x85)](',\x20');return _0x61a07a['slice'](0x0,0x320);}catch{return _0x27b9c5['slice'](0x0,0x1f4);}}function isNoiseResult(_0x37e192){const _0x1383fd=_0x37e192[_0x270d5c(-0x1bd,-0x154)]();if(_0x1383fd[_0x320335(-0xe5,-0x18e)](_0x270d5c(-0x1bf,-0x222)))return!![];if(_0x1383fd[_0x270d5c(-0x207,-0x1a3)]('{\x22filePath'+'\x22')||_0x1383fd[_0x270d5c(-0x207,-0x1ff)]('{\x22file_pat'+'h\x22'))return!![];if(_0x1383fd[_0x320335(-0x4,0x55)](_0x320335(-0x8e,-0x11b)+'rs/'))return!![];if(_0x1383fd[_0x320335(-0xe5,-0x133)](_0x320335(-0x99,-0xfa)+_0x320335(-0xbd,-0x2d))||_0x1383fd[_0x320335(-0xe5,-0x14f)](_0x270d5c(-0x190,-0x1af)+_0x320335(-0xb5,-0xf0)))return!![];if(_0x1383fd[_0x320335(-0xe5,-0x155)](_0x320335(-0x83,-0xba))||_0x1383fd[_0x270d5c(-0x207,-0x27c)](_0x320335(-0x11b,-0x127)))return!![];if(_0x1383fd[_0x270d5c(-0x207,-0x166)](_0x320335(-0x68,-0xff)+_0x270d5c(-0x222,-0x257)))return!![];function _0x270d5c(_0x4f67ef,_0x53bd6c){return _0x1c9e33(_0x53bd6c,_0x4f67ef- -0x3d7);}const _0x2b1d4c=_0x1383fd[_0x320335(-0x72,-0x12)](0x0,0xc8);function _0x320335(_0xa360f1,_0x472976){return _0x1c9e33(_0x472976,_0xa360f1- -0x2b5);}if(_0x2b1d4c['includes'](_0x270d5c(-0x152,-0x1e1)+_0x270d5c(-0x14b,-0x1f9))&&_0x2b1d4c[_0x270d5c(-0x126,-0x1d0)](_0x320335(-0xe6,-0x85)+_0x270d5c(-0x107,-0xa5)))return!![];const _0x450ac4=_0x1383fd[_0x320335(-0x10e,-0x163)]('\x0a',0x1)[0x0],_0x69f56d=[/브랜치로\s*전환합니다$/,/^Switched to (?:a new )?branch ['"]/,/^Merge made by /,/^\[[\w/.\-]+\s+[0-9a-f]{7,}\]/,/^npm (?:notice|WARN|info|ERR)/,/^[\w.\-]+\.\d+\.[a-z0-9]+@[\w-]+\s+\|/,/^=== \d+\./,/^https?:\/\/[\w.\-]+\/\S+\s+URL에서$/,/^(?:FAIL\s{2}|(?:FAIL|PASS)\s+tests?\/)/,/⎯{4,}/,/^Test Files\s+\d/,/^[A-Z][A-Z0-9_]*(?:=\d+)?$/,/^={3}[^=]{0,60}={3}$/,/\x1b\[[0-9;]*m/,/^이미 .*(?:있습니다|상태입니다)/,/^브랜치가 .*(?:상태입니다|업데이트)/,/^\s*\d+ files? changed, /,/^\s*(?:create|delete) mode \d{6} /,/^[0-9a-f]{7,40} (?:\[|Merge |docs|feat|fix|chore|test|refactor|perf|ci|build|ops|style)\b/,/^To \S+\.git$/,/^\s*\* \[new (?:tag|branch)\]/,/^\s*[├└]──\s/,/^\d+\.\d+\.\d+$/,/^(?!(?:19|20)\d\d:\s)\d{1,5}[:→]/];if(_0x69f56d[_0x320335(-0xc,0x99)](_0x9e8c39=>_0x9e8c39[_0x320335(0xa,0xab)](_0x450ac4)))return!![];const _0x121251=[/^File (?:created|updated|written|modified|deleted)(?: successfully)?\.?$/i,/^(?:File )?(?:written|created|saved) successfully\.?$/i,/^(?:No|0) (?:files?|changes?) /i,/^\d+ files? (?:found|matched|updated|deleted)\.?$/i,/^(?:Success|Done|OK|Created|Updated|Deleted)\.?$/i];return _0x121251['some'](_0xf53600=>_0xf53600['test'](_0x1383fd));}const TAG_BLOCKLIST=new Set(['id',_0x24567a(-0x55,-0x74),'app',_0x1c9e33(0x2ec,0x2b4),'set',_0x1c9e33(0x2de,0x2a8),_0x1c9e33(0x2fe,0x2b3),_0x1c9e33(0x368,0x2dd),'to','in','of','a','is',_0x24567a(0xe8,0x91),_0x24567a(-0xe1,-0x84),_0x24567a(-0x24,-0x98),_0x24567a(-0x36,-0x11),_0x24567a(0x6b,0x6),_0x1c9e33(0x1c6,0x193),_0x24567a(-0x29,-0x30),_0x1c9e33(0x271,0x1c3),_0x1c9e33(0x22a,0x207),_0x24567a(0xf3,0x52),_0x24567a(-0xa2,-0x9d),_0x24567a(0x8b,0x75),_0x1c9e33(0x336,0x2d3),_0x1c9e33(0x26f,0x1e2)+_0x1c9e33(0x221,0x231),'code_patte'+'rn',_0x24567a(0x28,-0x14),_0x1c9e33(0x123,0x1b4),_0x24567a(0x118,0x8b),_0x24567a(0x8,-0x44),_0x24567a(-0xb0,-0xa0)+'owledge',_0x24567a(-0x44,-0x5f),'Edit',_0x1c9e33(0x223,0x1be),_0x1c9e33(0x218,0x1c1),'Glob',_0x24567a(-0x52,0x40),_0x24567a(-0xc6,-0xa5),_0x1c9e33(0x15d,0x196),'WebSearch',_0x1c9e33(0x1a1,0x1fd),_0x24567a(0xcc,0x85),_0x1c9e33(0x2b0,0x21f),_0x24567a(-0x93,-0x29),_0x1c9e33(0x218,0x2c8),'grep','task',_0x24567a(-0x5e,0x4d),_0x1c9e33(0x187,0x223)]),STOPWORDS=new Set([_0x1c9e33(0x2a1,0x2dd),_0x1c9e33(0x1cc,0x26c),'are',_0x24567a(0x5c,0x27),'were',_0x1c9e33(0x2ab,0x22b),_0x1c9e33(0x15c,0x1e0),'has','had',_0x1c9e33(0x318,0x2df),_0x24567a(-0x59,0x1),_0x24567a(-0x69,-0x2),_0x24567a(-0x14,-0xb1),_0x24567a(-0xa,-0x7f),_0x1c9e33(0x1c6,0x214),_0x1c9e33(0x1ad,0x1e3),'can',_0x1c9e33(0x302,0x2ca),_0x1c9e33(0x1ed,0x27b),_0x24567a(-0x1a,0x6c),_0x24567a(0x10b,0x91),_0x24567a(-0xcc,-0x20),_0x24567a(0x9d,0x8),'into',_0x1c9e33(0x223,0x20f),_0x1c9e33(0x2f1,0x2d1),'after',_0x1c9e33(0x124,0x189),_0x1c9e33(0x26d,0x233),_0x1c9e33(0x265,0x2b0),'all',_0x24567a(-0x68,0x24),_0x24567a(0x31,-0x5),_0x24567a(-0x90,0x11),_0x1c9e33(0x1ac,0x1fa),_0x1c9e33(0x218,0x18b),_0x1c9e33(0x319,0x2c7),'other',_0x1c9e33(0x273,0x2a9),_0x1c9e33(0x229,0x22e),_0x1c9e33(0x2e6,0x280),'own',_0x24567a(-0x66,0x45),'than','too',_0x24567a(0x35,-0x4c),'just',_0x24567a(0x65,-0x2a),_0x1c9e33(0x275,0x277),_0x1c9e33(0x213,0x25a),_0x24567a(-0x13,0x6f),_0x1c9e33(0x194,0x1c9),_0x1c9e33(0x1d0,0x1c5),_0x1c9e33(0x2dd,0x2a4),_0x1c9e33(0x1c0,0x1a1),'their','your',_0x1c9e33(0x23b,0x1f0),_0x1c9e33(0x333,0x2be),_0x24567a(-0x1e,0x33),_0x1c9e33(0x322,0x278),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x577e6f,_0x357a45=0x3){const _0x17bd9b=_0x577e6f[_0x590cb4(-0x210,-0x19d)+'e']();function _0x2a7eae(_0x3ed499,_0x343640){return _0x1c9e33(_0x343640,_0x3ed499- -0x1b1);}function _0x590cb4(_0x5ebd2c,_0x5cf134){return _0x1c9e33(_0x5ebd2c,_0x5cf134- -0x3df);}const _0x6f3215=_0x17bd9b[_0x590cb4(-0x184,-0x14e)](WORD_RE)||[],_0x12d886=new Map();for(const _0xe74ca9 of _0x6f3215){if(_0xe74ca9['length']<0x3)continue;if(STOPWORDS[_0x590cb4(-0x143,-0x13e)](_0xe74ca9))continue;if(TAG_BLOCKLIST['has'](_0xe74ca9))continue;_0x12d886['set'](_0xe74ca9,(_0x12d886[_0x2a7eae(0x103,0x139)](_0xe74ca9)||0x0)+0x1);}return[..._0x12d886[_0x590cb4(-0x21a,-0x1b3)]()]['sort']((_0x4d76bc,_0x479b28)=>_0x479b28[0x1]-_0x4d76bc[0x1])[_0x590cb4(-0x195,-0x19c)](0x0,_0x357a45)[_0x2a7eae(-0x1e,0x74)](([_0xc85ab7])=>_0xc85ab7);}function buildTags(_0x27bed1){function _0x3aeb25(_0x3b3755,_0x37373b){return _0x24567a(_0x3b3755,_0x37373b- -0x1ef);}function _0x4b1071(_0x27147a,_0x186170){return _0x24567a(_0x27147a,_0x186170-0x486);}const _0x4db2fa=[],_0x3eabd8=extractFilePath(_0x27bed1['toolInput']);if(_0x3eabd8){if(_0x4b1071(0x551,0x512)===_0x3aeb25(-0x152,-0x1a0)){const _0x2ef631=_0x2dbd5f(_0x531459[_0x4b1071(0x3eb,0x440)],0x3);_0x60a2ee['push'](..._0x2ef631);}else{const _0x21a628=_0x3eabd8['split']('/')['filter'](Boolean),_0x124165=_0x21a628[_0x3aeb25(-0x232,-0x1f6)](-0x3)[_0x3aeb25(-0x197,-0x1ab)](_0x2a3693=>_0x2a3693[_0x3aeb25(-0x1e7,-0x1f0)]>0x2&&!TAG_BLOCKLIST[_0x3aeb25(-0x128,-0x198)](_0x2a3693['toLowerCas'+'e']()));for(const _0x2828f2 of _0x124165[_0x3aeb25(-0x16c,-0x1f6)](0x0,0x2)){const _0x35d423=_0x2828f2[_0x3aeb25(-0x1a8,-0x1a1)](/\.[^.]+$/,'');_0x35d423[_0x4b1071(0x41a,0x485)]>0x2&&!TAG_BLOCKLIST[_0x4b1071(0x54c,0x4dd)](_0x35d423[_0x3aeb25(-0x231,-0x1f7)+'e']())&&_0x4db2fa[_0x4b1071(0x415,0x47c)](_0x35d423);}const _0xd88236=_0x3eabd8[_0x3aeb25(-0x27e,-0x292)]('.')[_0x4b1071(0x468,0x462)]();if(_0xd88236){const _0x5d82ca=_0xd88236[_0x4b1071(0x46a,0x47e)+'e']();if(!/^\d+$/['test'](_0xd88236)&&_0xd88236[_0x4b1071(0x410,0x485)]>0x2&&!TAG_BLOCKLIST[_0x3aeb25(-0x126,-0x198)](_0x5d82ca)){const _0x56b678=['md','txt',_0x4b1071(0x4d8,0x50e),_0x4b1071(0x443,0x449),_0x4b1071(0x3f3,0x448),'xml','html',_0x4b1071(0x524,0x482)];if(!_0x56b678[_0x3aeb25(-0x133,-0x188)](_0x5d82ca)){if('oIEkf'===_0x4b1071(0x47a,0x4d1))_0x4db2fa[_0x4b1071(0x4ad,0x47c)](_0xd88236);else return _0x46e4d6[_0x4b1071(0x4cf,0x47f)](0x0,0x3e8);}}}}}if(_0x4db2fa[_0x4b1071(0x4b2,0x485)]===0x0){const _0x13ba37=extractKeywords(_0x27bed1[_0x4b1071(0x49c,0x440)],0x3);_0x4db2fa[_0x3aeb25(-0x1c7,-0x1f9)](..._0x13ba37);}return _0x4db2fa;}export async function main(){const _0x174970=[];for await(const _0xf09ab of process[_0x1f781a(0x4ab,0x4e3)]){_0x2f7236(-0x275,-0x2b3)!==_0x2f7236(-0x275,-0x2f1)?_0x351d3e['info']('DELETE\x20inv'+'alidation\x20'+_0x1f781a(0x4c5,0x54b)+_0x1f781a(0x4fe,0x548)+_0x2f7236(-0x1af,-0x16a),{'memoryId':_0x825efa[_0x2f7236(-0x26e,-0x2f9)+'ry']['id'],'category':_0x59d724[_0x2f7236(-0x26e,-0x205)+'ry'][_0x1f781a(0x4c1,0x56b)]}):_0x174970[_0x2f7236(-0x1ff,-0x21d)](_0xf09ab);}function _0x2f7236(_0x1267db,_0x17a404){return _0x24567a(_0x17a404,_0x1267db- -0x1f5);}const _0x46a829=Buffer[_0x1f781a(0x51f,0x4aa)](_0x174970)['toString'](_0x2f7236(-0x1b7,-0x155))[_0x2f7236(-0x225,-0x2a1)]();function _0x1f781a(_0x1115c6,_0x796ebe){return _0x24567a(_0x1115c6,_0x796ebe-0x532);}if(!_0x46a829){if(_0x2f7236(-0x289,-0x273)!==_0x2f7236(-0x289,-0x1fc)){const _0x386a32=typeof _0xa51f75[_0x2f7236(-0x22e,-0x2bb)]===_0x1f781a(0x4aa,0x4d2)?_0x2a6164[_0x2f7236(-0x2a1,-0x1f4)](_0x4fe0c6[_0x1f781a(0x50d,0x4f9)]):_0x1eb17f[_0x1f781a(0x5aa,0x4f9)];_0x48ca47=_0x386a32?.[_0x1f781a(0x49c,0x525)]??_0x386a32?.[_0x1f781a(0x647,0x5ab)]??(typeof _0x386a32===_0x2f7236(-0x255,-0x236)?_0x386a32:_0x1350f3);}else process[_0x1f781a(0x47b,0x48a)](0x0);}try{const _0x4173ff=JSON[_0x1f781a(0x4be,0x486)](_0x46a829),_0x37d04=normalizeHookInput(_0x4173ff);await handlePostToolUse(_0x37d04);}catch(_0x3dd592){console['error'](_0x2f7236(-0x20b,-0x268)+'ToolUse\x20er'+_0x2f7236(-0x193,-0x15c),_0x3dd592 instanceof Error?_0x3dd592[_0x2f7236(-0x243,-0x261)]:_0x3dd592),process[_0x2f7236(-0x29d,-0x2b2)](0x0);}finally{'LAorv'===_0x1f781a(0x4a0,0x539)?_0x3a918a[_0x2f7236(-0x240,-0x227)+'tus'](_0x2a53e8['id'],null,_0x1f781a(0x5b7,0x57e)):closeSharedDb();}}const isMainModule=process[_0x24567a(-0x87,0x12)][0x1]?.[_0x1c9e33(0x1d4,0x1f3)]('post-tool-'+_0x24567a(-0x39,0x59))||process['argv'][0x1]?.[_0x1c9e33(0x150,0x1f3)]('post-tool-'+'use.ts');isMainModule&&main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36bac7,_0x3b946c){function _0x38ea50(_0x5aa3cf,_0x206e58){return _0x471d(_0x5aa3cf- -0x172,_0x206e58);}const _0xf8da1c=_0x36bac7();function _0x2c81c8(_0xa78076,_0x10aa38){return _0x471d(_0x10aa38- -0xe8,_0xa78076);}while(!![]){try{const _0x17e819=-parseInt(_0x38ea50(-0x70,-0x82))/0x1*(-parseInt(_0x38ea50(-0x80,-0x71))/0x2)+-parseInt(_0x2c81c8(0x15,0x9))/0x3+parseInt(_0x2c81c8(-0x2,-0x2))/0x4+-parseInt(_0x2c81c8(0x18,0x19))/0x5*(parseInt(_0x2c81c8(0x4,0x0))/0x6)+parseInt(_0x38ea50(-0x79,-0x6e))/0x7+-parseInt(_0x38ea50(-0x73,-0x68))/0x8+parseInt(_0x38ea50(-0x8e,-0x89))/0x9*(parseInt(_0x38ea50(-0x6e,-0x5d))/0xa);if(_0x17e819===_0x3b946c)break;else _0xf8da1c['push'](_0xf8da1c['shift']());}catch(_0x512e9d){_0xf8da1c['push'](_0xf8da1c['shift']());}}}(_0x3e76,0xc96a4));function _0x98f242(_0x281536,_0x2002b5){return _0x471d(_0x281536-0x1ca,_0x2002b5);}import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x444018){const _0x2eefb9=new ConfigManager()[_0x3e1b32(-0x54,-0x4a)]();function _0x3e1b32(_0x3f3f2a,_0xa08e83){return _0x471d(_0xa08e83- -0x142,_0x3f3f2a);}const _0x1f959b=createLogger(_0x3e1b32(-0x53,-0x56),_0x2eefb9[_0x579565(-0x127,-0x132)]);function _0x579565(_0x52b9a6,_0x5d8896){return _0x471d(_0x52b9a6- -0x20e,_0x5d8896);}_0x1f959b[_0x3e1b32(-0x6e,-0x60)](_0x579565(-0x112,-0x114)+_0x3e1b32(-0x5a,-0x61)+_0x579565(-0x124,-0x129),{'projectPath':_0x444018[_0x579565(-0x119,-0x118)+'h']}),_0x1f959b[_0x3e1b32(-0x4e,-0x4b)]();}const HOOK_TIMEOUT_MS=0x1388;function _0x5d7c4b(_0x58b81f,_0x34b1e3){return _0x471d(_0x58b81f-0x1c1,_0x34b1e3);}export async function main(){const _0x62ded=[];for await(const _0x290b20 of process[_0x493723(0x1eb,0x1e0)]){_0x62ded['push'](_0x290b20);}function _0x464dcc(_0x658564,_0x1352a9){return _0x471d(_0x1352a9-0x265,_0x658564);}const _0x31d785=Buffer[_0x493723(0x1ef,0x1ed)](_0x62ded)[_0x493723(0x1f1,0x1e4)](_0x493723(0x1fb,0x1ee))['trim']();!_0x31d785&&(closeSharedDb(),process[_0x493723(0x1e2,0x1d5)](0x0));function _0x493723(_0x254420,_0x4918a6){return _0x471d(_0x4918a6-0xf0,_0x254420);}const _0x2ab4d6=setTimeout(()=>{function _0x163345(_0x10df41,_0x365604){return _0x464dcc(_0x365604,_0x10df41- -0x32c);}function _0x5bc233(_0x2c0aa9,_0x568e32){return _0x464dcc(_0x568e32,_0x2c0aa9- -0x555);}'BovYy'===_0x5bc233(-0x1f5,-0x1e6)?(console[_0x163345(0x28,0x37)](_0x5bc233(-0x202,-0x1ff)+_0x163345(0x2f,0x3f)+'ety\x20timeou'+'t\x20('+HOOK_TIMEOUT_MS+'ms)'),closeSharedDb(),process[_0x163345(0x1e,0x15)](0x0)):_0x32c27e();},HOOK_TIMEOUT_MS);_0x2ab4d6[_0x493723(0x1f2,0x1ea)]();try{if('xjyWK'!==_0x493723(0x1e4,0x1dd))_0x2a5687(),_0x553cf0['exit'](0x0);else{const _0x168dc7=JSON[_0x464dcc(0x358,0x368)](_0x31d785),_0x2d97e5=normalizeHookInput(_0x168dc7);await handlePreCompact(_0x2d97e5);}}catch(_0x5c7657){console[_0x464dcc(0x347,0x354)](_0x464dcc(0x365,0x353)+_0x493723(0x1d2,0x1db)+'or:',_0x5c7657 instanceof Error?_0x5c7657['message']:_0x5c7657);}finally{closeSharedDb(),process[_0x464dcc(0x33a,0x34a)](0x0);}}function _0x471d(_0x1f44c7,_0x445c3a){_0x1f44c7=_0x1f44c7-0xe1;const _0x3e764d=_0x3e76();let _0x471d30=_0x3e764d[_0x1f44c7];if(_0x471d['UAoaVA']===undefined){var _0x23d1e5=function(_0x214671){const _0x25aa76='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d54bc='',_0x15c7a5='';for(let _0x32a942=0x0,_0x1711b2,_0x16ddfc,_0x82a66f=0x0;_0x16ddfc=_0x214671['charAt'](_0x82a66f++);~_0x16ddfc&&(_0x1711b2=_0x32a942%0x4?_0x1711b2*0x40+_0x16ddfc:_0x16ddfc,_0x32a942++%0x4)?_0x1d54bc+=String['fromCharCode'](0xff&_0x1711b2>>(-0x2*_0x32a942&0x6)):0x0){_0x16ddfc=_0x25aa76['indexOf'](_0x16ddfc);}for(let _0x50b1be=0x0,_0xb914d1=_0x1d54bc['length'];_0x50b1be<_0xb914d1;_0x50b1be++){_0x15c7a5+='%'+('00'+_0x1d54bc['charCodeAt'](_0x50b1be)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15c7a5);};_0x471d['ppMvMl']=_0x23d1e5,_0x471d['Pejopq']={},_0x471d['UAoaVA']=!![];}const _0x14391c=_0x3e764d[0x0],_0x187067=_0x1f44c7+_0x14391c,_0x56c407=_0x471d['Pejopq'][_0x187067];return!_0x56c407?(_0x471d30=_0x471d['ppMvMl'](_0x471d30),_0x471d['Pejopq'][_0x187067]=_0x471d30):_0x471d30=_0x56c407,_0x471d30;}function _0x3e76(){const _0x520a19=['Dg9tDhjPBMC','ChjVAMvJDfbHDa','B21Wywn0ihnHzG','zMX1C2G','Bg9Hza','mZKXnduZm0DKtKDxrG','Dw5Yzwy','qM92wxK','sg9VAYbZDgfYDa','y29Uy2f0','DxrMltG','mtiZnta5nLroy0DxvG','ChjLlwnVBxbHyW','mteWsw1KtePY','nduYmdi3wwnJtfPR','CgfYC2u','ndG2mtCWBuL1wgPL','zwqGkg5Vlw9Wia','Aw5MBW','zw5KC1DPDgG','ovr1z29ksa','zxHPDa','ndi3nZe4ofjrEeTXDa','Bg9Nz2LUzW','mJy3ntq2rMr4qvf0','yxjNDG','C2LUy2uGiZKYkq','B21Wywn0igvYCG','uhjLq29TCgfJDa','EgP5v0S','w2eYyv0GuhjLqW','zxjYB3i','C3rKAw4','mZiXodq4n3bouLnNqW','nLzcB1rNtW','Dc5QCW'];_0x3e76=function(){return _0x520a19;};return _0x3e76();}const isMainModule=process[_0x5d7c4b(0x2aa,0x2b2)][0x1]?.[_0x98f242(0x2ad,0x2ba)]('pre-compac'+_0x5d7c4b(0x2b4,0x2b1))||process[_0x5d7c4b(0x2aa,0x2b2)][0x1]?.['endsWith'](_0x98f242(0x2ca,0x2b8)+'t.ts');isMainModule&&main();
|