a2a-memory 0.12.59 → 0.12.60
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/ac-matcher.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/contextrank/since-store.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.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.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/file-mode.d.ts +48 -0
- package/dist/utils/file-mode.js +1 -0
- 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(_0xafc1ef,_0x49da37){function _0x1175ff(_0x3c13a0,_0x56dfe0){return _0x37c5(_0x56dfe0-0xb8,_0x3c13a0);}function _0x128b14(_0x3519b9,_0x11a2a0){return _0x37c5(_0x11a2a0-0xf4,_0x3519b9);}const _0x5939d7=_0xafc1ef();while(!![]){try{const _0x4f91da=-parseInt(_0x128b14(0x402,0x3b3))/0x1+parseInt(_0x1175ff(0x342,0x2dc))/0x2+parseInt(_0x1175ff(0x239,0x29a))/0x3*(-parseInt(_0x128b14(0x212,0x29a))/0x4)+-parseInt(_0x128b14(0x289,0x2f9))/0x5*(parseInt(_0x1175ff(0x28b,0x2d1))/0x6)+-parseInt(_0x128b14(0x417,0x373))/0x7*(parseInt(_0x128b14(0x21f,0x290))/0x8)+-parseInt(_0x128b14(0x393,0x3af))/0x9+-parseInt(_0x128b14(0x35d,0x33a))/0xa*(-parseInt(_0x128b14(0x337,0x35f))/0xb);if(_0x4f91da===_0x49da37)break;else _0x5939d7['push'](_0x5939d7['shift']());}catch(_0x3d5b09){_0x5939d7['push'](_0x5939d7['shift']());}}}(_0x4099,0xdfc63));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';import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';function _0x4099(){const _0x30fcae=['AgvY','DhjPBq','zMLSzvbHDgG','t2XKig1LBw9YEq','zfbHDgnOiG','8j+uJsbBuhjLlunVBq','w2eYyv0Gqxv0BW','l3zHCI9MB2XKzq','zwqP','B3vY','rKfjteve','C2fTzq','EYjMAwXLugf0Aa','DgfYz2v0twvTBW','CMvJB3jKsw5Qzq','D291BgrczuXLBG','D2LSBa','l3rLC3qV','B25fBMq','y3jLyxrLtwvTBW','z2v0ugvUzgLUzW','Ahr0CdO0mdq','CgvUzgLUzW','Bwf5','y291Bgq','zxbPC29Kzq','C3rKzxjY','CM9YoG','BxmSigrLzhvWoG','zMLSzsbLEgnSDq','C2vYDMvY','BgLZDa','C3rYAw5NAwz5','vg9VBcbLDMfSDq','C3nLDcK','ChjVAMvJDf9RBG','CgLJA2vK','rxjYB3i6','B3jIzwqGAw50BW','zxzLCNK','D291Bgq','Aw50BW','B25SEq','iMzPBgvqyxrOiG','cLTpDxrWDxrDia','Dg90ywXty29Yzq','mZi2mJy5nMTVuuvxCW','zw50CMLLCW','zwfJAa','Dg9V','lxn5BMnLzca','AwnL','BxmSigrIoIa','BgXT','tgXcrvO','lI4U','mtq0nJbhDwPZyxy','w0eYqv0Gug9ZDa','iokaLcbHDxrVlxn5','ChjVy2vKDxjL','yxbPs2v5','yMvZDcbWCMfJDa','B3rHBdOG','r3jLCa','Eg1S','DxbKyxrLtwvTBW','y2vuAhjLC2HVBa','DgHLAxi','EYjMAwXLx3bHDa','BMv3','C2LTAwXHCML0Eq','C3rKB3v0','C2LNBMLMAwnHBG','y29UDgv4Da','v3jPDgu','ExDVCMrZ','ihnRAwXS','BNvSBa','D2vIC2vHCMnO','yxbW','Bw9ZDa','C2vTyw50Awm','Aw5JBhvKzxm','CNvSzq','y2nLC3nMDwXSEq','sg9VAYbZDgfYDa','ANvZDa','lMvUDG','CMuGzgLZywjSzq','BMnHDguP','CMvZB2X2zq','zMv3','Aw5MBW','AgfZ','zgvIDwC','C2vJB25Kx3vWDa','revmrvrfigLUDG','lMLUAq','Bg9Hza','C2LVBG','BwLKu2vZC2LVBG','D2L0Aa','B3j5igzPBguGCW','y3nZ','DMfSDwu','BwvZC2fNzq','DgHHDa','C29YDa','ywLSzwq','DLbSvLu','BwLNAhq','w0fYCMf5oIa','BxmSignSyxvKzq','C3rHCNrZv2L0Aa','BM93','ChbLzcaOzhvWBa','mZG0y2jMAfno','zu5iCK8','Dg9VBe5HBwu','ANnVBG','C2HHBgW','ug9ZDfrVB2XvCW','C3bSAxq','yMvMB3jL','wgPdtKW','zwqGAw5ZDgvHza','Dg9VBeLUChv0','DgfZAW','y29Kzv9Wyxr0zq','CgfYC2u','CNnPB24','B3DU','BgvUz3rO','DhvZ','zMLSDgvY','D2fYBG','qMvXDfu','C3rYDwn0DxjLza','yxjL','Bw9Yzq','z2XVyG','BxmGFcbJB25MAq','zxjYB3i','B3rOzxi','D2vIzMv0y2G','DgfNCW','C2HVDa','Dg9ju09tDhjPBG','C2TPBgW','ChnOB3qGBw9Kzq','zhvYAw5N','mtvtDNHnt3O','w0vYCM9Yxsa','zNvSBhK','u2vUC2L0AxzLia','ChvZAgvK','DMfSDwf0B3iUAG','rxHJzxb0Aw9U','yxnZAxn0yw50','rM9fu2K','zw1IzwrKAw5N','D3jPDgu','DgHLEq','DgHPCW','ywXPzgf0Aw9Uia','zMLYC3rFDxb0Aq','yMvLBG','zw5HyMXLza','zMfJDa','revmrvrf','Cgf0Aa','mtq1ntu3nNvWDgrSsq','Aw5N','ww9VEwO','y29T','zxrLza','rgvKDxaGzgvJAq','C3vJAa','twvTB3j5ignYzq','C3rYAw5N','icHbrfiTmdmZkq','sKryB1y','nty0mZq0tvzSEgz5','zxHPDa','C2XPy2u','BMPLy3rPB24','yxrLzcaOBwvYzW','Dg9VBfjLC3vSDa','DgfIBgu','B2jQzwn0','u3LUy0nVDw50','yxv0B0nHChr1CG','D29YA2LUzW','EwfTBa','zMfPBgvK','CM91BMq','rMLSztOG','Agf2zq','Cgf0DgvYBG','Dw5KzwzPBMvK','vvPstei','DgHYB3vNAa','yxv0B1n5BMm','twvTB3j5ihnHDG','vg9VBfvZzsbJBW','C2v0','ugf0y2G','y2fU','vvbeqvrf','C2f2zuvTyMvKza','C1rws1u','zxHWzxjPzw5Jzq','zxiGzgvSzxrLkq','Bg9JywW','zMLSzv9WyxrO','Axnnyxa','ntbfBM5bsNq','CMvHza','v2vIrMv0y2G','u3LUyZOG','C29Tzq','zgvJAwrLza','igL0zw1Zxsa','u2TPChbPBMCGBq','zM9Y','CKfovLq','DgvZDa','B3DSzwrNzq','BgLZDe1LBw9YAq','zgvJAxnPB24','ywjVDMu','lI9ZAgfYzwqUAG','ChvZAa','twvTB3j5ihnRAq','z2v0','twvTB3j5igfICW','DhLWzq','D2vYzq','Ew91','zNjVEMvUu25HCa','vhjHy2vIywnR','DxrMltG','Aw5Qzwn0zwrlzq','BxmSihnPz25PzG','rwH2EKq','C2vSzwn0zwq','zwrPDa','y29UzhmI','AM9PBG','rwrPDa','B3b0zwqGzM9Y','iMnVBNrLBNqI','y3rPB25iAxq','ntK0oduWm3virurMrq','vg9VBfvZzsbLCG','y2f0zwDVCNK','iNn0yxr1CYi6iG','EePYyNm','ywjZB3jIsw50BW','B3j5ihn5BMmGzG','rvjst1i6','zMX1C2G','CM90zwn0zwqGyq','DhjHy2vIywnR','BwL0xq','rMfPBgvKoG','lNLTBa','AxrZ','DgHL','zw5KC1DPDgG','Ew1S','ihnVzNqTAw52yq','A2v5CW','n1fRExfcsq','C2TPChbLzcaOCa','lcbZEw5JoIa','A2v5D29Yze1HCa','yxrPB24GzMfPBa','AwnHDguP','C2v0u3LUy1n0yq','zZOG','B2XKu3rYAw5N','Dg9mB3DLCKnHCW','z3jLCa','zgvK','Ew5Jzwq','zMLSzsb3CML0Da','Dhj1zq','qxv0BY1ZEw5Jia','DgHHBG','qMfZAa','ywrK','tK9pua','Aw1LoG','C2TPBgXdB252zq','ywn0Aw9UrxzHBa','BwfW','CvnIs3u','BgLKyxrLza','ywjZB3jIzwq','AwnHBMnLoIa','uKThv1i','r2XVyG','C2vZC2LVBKLK','zw1VCNK6ig5Via','z2v0tgf0zxn0sq','ChjVAMvJDfbHDa','C3rHBMrHCMq','zw1Izwq','BxbSzxrLzcaODa','AxnbCNjHEq','zMLSDgvYzwq','vg9VBcbUB3qGAq','zMfSC2u','lMPZB24','u2TPBgW','Cg9ZDc10B29Slq','DxnLlNrZ','zxHJzxb0Aw9U','yMfZAa','EYjZDgrVDxqIoG','BgvHCM5PBMC','renlq00','C2TPBgXjza','sg9VAYbJB21WBa','ywz0zxi','qure','yxjNDG','iNvWDgLTzv9Zzq','y29UDgvUDa','ywXZBW','y3jLyxrLzcbZDq','ywXS','mJG1mJu1mhDisK1Owa','y29UDMvUDgLVBG','y2HVC2u','zxjYB3jFC29SDq','mtu0mtyZEeX1ug9P','q2XHDwrLig1LBq','lI4Vy2XHDwrLlW','zcb0BYbtzxnZAq','y21K','ywn0Aw9U','Dg9tDhjPBMC','uMvHza','w2eYyv0Gug9ZDa','BMv3u3rYAw5N','DgHLBq','Bg9Nz2LUzW','twvTB3j5ignHCa'];_0x4099=function(){return _0x30fcae;};return _0x4099();}import{createHookClient}from'./client-factory.js';function _0x2b6207(_0x35f7ed,_0x20cd74){return _0x37c5(_0x35f7ed-0x220,_0x20cd74);}import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':'experience','code_pattern':_0x2b6207(0x436,0x4d7),'decision':_0x2b6207(0x505,0x53e),'context':'episode','project_knowledge':_0x2b6207(0x436,0x3b6),'convention':_0x2d6e07(0x256,0x2fa),'learning':_0x2b6207(0x461,0x441),'skill':_0x2d6e07(0x256,0x21d),'rule':_0x2d6e07(0x256,0x250)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0xd06d94){const _0x401737=performance['now']();function _0x51e526(_0x216980,_0x5bf1fd){return _0x2d6e07(_0x216980- -0x272,_0x5bf1fd);}const _0x56c77e=new ConfigManager()[_0x51e526(0xb,0x21)](),_0x1f799d=performance[_0x4e2e60(0x45b,0x4aa)]();function _0x4e2e60(_0x204c6f,_0x3335a6){return _0x2d6e07(_0x3335a6-0x21d,_0x204c6f);}const _0x247291=createLogger(_0x51e526(0x22,-0x47)+'e',_0x56c77e[_0x4e2e60(0x5eb,0x594)]);try{_0x247291['info'](_0x51e526(-0x2,0x44)+'ed',{'toolName':_0xd06d94[_0x4e2e60(0x497,0x4ae)]});if(!_0x56c77e[_0x51e526(0x68,0xd1)+'e']['enabled']){if(_0x51e526(0x25,0x7b)!=='aXTAQ'){_0x247291[_0x4e2e60(0x498,0x494)]('Auto-captu'+_0x51e526(0x1,-0x69)+'d');return;}else return _0x4e2e60(0x506,0x481);}if(!_0x56c77e[_0x4e2e60(0x4d5,0x4f7)+'e']['triggers'][_0x4e2e60(0x4a1,0x48a)](_0xd06d94[_0x51e526(0x1f,0xb3)])){_0x247291[_0x51e526(0x7,0x66)](_0x51e526(0xe1,0x7b)+'n\x20triggers',{'toolName':_0xd06d94[_0x4e2e60(0x540,0x4ae)]});return;}const _0x340c29=extractFilePath(_0xd06d94[_0x51e526(0x27,0x68)]);if(_0x340c29&&isSensitiveFile(_0x340c29,_0x56c77e[_0x4e2e60(0x565,0x4f7)+'e']['excludePat'+'terns'])){_0x247291['info'](_0x4e2e60(0x564,0x4d2)+_0x51e526(-0x3a,-0x4e)+_0x51e526(0xc5,0xc1),{'filePath':_0x340c29});return;}if(_0x340c29&&isClaudeMemoryFile(_0x340c29)&&(_0xd06d94['toolName']==='Write'||_0xd06d94['toolName']===_0x4e2e60(0x4e2,0x531))){if(_0x51e526(-0x21,0x7c)===_0x4e2e60(0x594,0x50a))return _0x5733dc[_0x51e526(0x61,0xac)](0x0,0x3e8);else{const _0x523193=performance[_0x4e2e60(0x4e7,0x4aa)]();try{const _0x2be5e2=getSharedDb(_0x56c77e['db'][_0x4e2e60(0x476,0x4e2)]),{syncClaudeMd:_0x5df42c}=await import(_0x51e526(0xfc,0x87)+'sync.js');await _0x5df42c(_0x2be5e2,{'claudeMdPath':_0x340c29,'projectPath':_0xd06d94[_0x51e526(0xdb,0x169)+'h']});const _0x20249d=performance['now'](),_0x29bbf7=Math['round'](_0x20249d-_0x401737),_0x1f55d2=Math[_0x4e2e60(0x514,0x4fb)](_0x20249d-_0x523193),_0x2f7e79=Math[_0x4e2e60(0x549,0x4fb)](_0x1f799d-_0x401737);process['stderr'][_0x4e2e60(0x51d,0x4d9)](_0x51e526(-0x1e,-0x40)+_0x51e526(0x75,-0x2b)+'mpleted\x20(t'+_0x4e2e60(0x3dc,0x476)+_0x29bbf7+(_0x4e2e60(0x49e,0x4c5)+_0x51e526(0xc1,0xb3))+_0x2f7e79+(_0x4e2e60(0x515,0x4a8)+_0x4e2e60(0x554,0x513))+_0x1f55d2+'ms)\x0a'),_0x247291[_0x51e526(0x5,0xe)](_0x51e526(0xfb,0xcb)+_0x4e2e60(0x449,0x49e)+_0x51e526(0xc6,0xb7),{'filePath':_0x340c29});}catch(_0x85a8a9){_0x247291[_0x4e2e60(0x4b5,0x4bf)](_0x51e526(0xfb,0xff)+_0x4e2e60(0x494,0x53b)+_0x4e2e60(0x535,0x4a4),{'error':_0x85a8a9 instanceof Error?_0x85a8a9['message']:String(_0x85a8a9)});}return;}}const _0x18f3b9=performance[_0x51e526(0x1b,-0x6b)](),_0x5ed0a6={'uuid':_0xd06d94['sessionId'],'type':_0x51e526(0x47,0x4a),'message':{'role':'assistant','content':_0xd06d94[_0x4e2e60(0x4ed,0x4f3)]},'timestamp':new Date()[_0x4e2e60(0x46c,0x4cb)+'g']()},_0x910445=_0xd06d94[_0x4e2e60(0x40a,0x4ae)]===_0x51e526(-0xd,0x1e),_0x54f654=_0x340c29?isConfigFile(_0x340c29):![],_0xe90519=detectActualError(_0xd06d94[_0x51e526(0x64,0x36)],_0xd06d94[_0x4e2e60(0x547,0x4b6)]);let _0x4bf20d;if(_0xd06d94[_0x51e526(0x1f,0x14)]==='Bash'&&_0xd06d94[_0x51e526(0x27,0x6e)])try{const _0xccfbcb=typeof _0xd06d94[_0x51e526(0x27,0x2d)]==='string'?JSON[_0x4e2e60(0x4bc,0x4b9)](_0xd06d94[_0x4e2e60(0x4d4,0x4b6)]):_0xd06d94[_0x4e2e60(0x4e1,0x4b6)];_0x4bf20d=_0xccfbcb?.['command']??_0xccfbcb?.[_0x51e526(0xfe,0x8a)]??(typeof _0xccfbcb==='string'?_0xccfbcb:undefined);}catch{_0x4bf20d=typeof _0xd06d94['toolInput']==='string'?_0xd06d94[_0x51e526(0x27,-0x49)]:undefined;}const _0x350342=scoreSignificance(_0x5ed0a6,{'toolName':_0xd06d94[_0x51e526(0x1f,-0x37)],'isNewFile':_0x910445,'isConfigChange':_0x54f654,'hasError':_0xe90519,'bashCommand':_0x4bf20d},_0x56c77e[_0x4e2e60(0x4a2,0x4f7)+'e'][_0x4e2e60(0x455,0x480)+_0x51e526(-0x15,0x98)+'d']),_0x48f1b5=performance[_0x51e526(0x1b,0x1a)](),_0x8d92a7=_0x56c77e['autoCaptur'+'e']['significan'+'ceThreshol'+'d']*0.5;_0x247291[_0x4e2e60(0x533,0x494)](_0x4e2e60(0x410,0x459)+'ated',{'toolName':_0xd06d94['toolName'],'score':_0x350342[_0x51e526(-0x2a,0x5c)],'shouldCapture':_0x350342[_0x4e2e60(0x454,0x465)]>=_0x8d92a7});if(_0x350342[_0x4e2e60(0x417,0x465)]<_0x8d92a7)return;const _0xe7bce7=determineCategory(_0xd06d94,_0xe90519),_0x2b9fe5=buildContent(_0xd06d94);if(!_0x2b9fe5){if(_0x51e526(0x5e,0x4b)!=='JDXoV')try{const _0x4afa18=typeof _0x2d399e[_0x51e526(0x27,-0x1f)]===_0x4e2e60(0x592,0x4eb)?_0x148546[_0x51e526(0x2a,-0x23)](_0x567a97['toolInput']):_0x5269d5[_0x51e526(0x27,0x70)];_0x17549=_0x4afa18?.['command']??_0x4afa18?.[_0x4e2e60(0x52e,0x58d)]??(typeof _0x4afa18==='string'?_0x4afa18:_0xce68e1);}catch{_0x14a0d9=typeof _0x4c22b8[_0x4e2e60(0x554,0x4b6)]==='string'?_0x1bca86[_0x51e526(0x27,-0x63)]:_0x3a61a8;}else{_0x247291['info'](_0x4e2e60(0x4f1,0x517)+_0x51e526(0xd9,0xa2)+'meaningful'+'\x20content',{'toolName':_0xd06d94['toolName']});return;}}const _0x856ba5=filterSensitiveInfo(_0x2b9fe5);let _0x3e869c;if(_0xe90519)_0x3e869c='episodic';else _0x350342[_0x51e526(-0x2a,0x5d)]<_0x56c77e[_0x4e2e60(0x494,0x4f7)+'e']['significan'+_0x4e2e60(0x47e,0x47a)+'d']?_0x3e869c=_0x4e2e60(0x4e9,0x4f8):_0x3e869c=_0x4e2e60(0x4e9,0x489);const _0x540bf9={'content':_0x856ba5[_0x51e526(0xe0,0xfa)],'category':_0xe7bce7,'tier':_0x3e869c,'tags':buildTags(_0xd06d94),'projectPath':_0xd06d94['projectPat'+'h'],'sessionId':_0xd06d94[_0x4e2e60(0x58d,0x567)],'memoryType':CATEGORY_TYPE_MAP[_0xe7bce7]??_0x51e526(0x51,0x72)},_0x15cc70=getSharedDb(_0x56c77e['db']['path']),_0x4e3f44=performance[_0x51e526(0x1b,-0x18)](),_0x42cdbb=new DedupManager(),_0xafbe9b=_0x42cdbb['findCandid'+'ates'](_0x15cc70[_0x4e2e60(0x47c,0x51c)+'es']({'projectPath':_0xd06d94[_0x51e526(0xdb,0x137)+'h'],'limit':0x32,'excludeParents':!![]}),_0xe7bce7,_0xd06d94[_0x4e2e60(0x553,0x56a)+'h']),_0x5cb7ab=_0x42cdbb['decide'](_0x856ba5['filtered'],_0xafbe9b),_0x18dc40=performance[_0x4e2e60(0x53f,0x4aa)]();_0x247291[_0x4e2e60(0x4b0,0x494)](_0x51e526(0x59,0x99)+_0x4e2e60(0x47d,0x49b),{'action':_0x5cb7ab['action'],'similarity':_0x5cb7ab[_0x51e526(-0x11,0x8f)]});const _0x165663=performance[_0x4e2e60(0x4aa,0x4aa)]();let _0x32b5c4;try{switch(_0x5cb7ab[_0x51e526(0xff,0xc4)]){case _0x51e526(0xcd,0x7d):_0x247291[_0x4e2e60(0x48a,0x494)](_0x4e2e60(0x58f,0x521)+_0x4e2e60(0x490,0x4ab)+_0x51e526(0xbf,0x63),{'similarity':_0x5cb7ab[_0x51e526(-0x11,-0x2b)]});return;case _0x51e526(0x79,-0x14):if(_0x5cb7ab[_0x4e2e60(0x53b,0x5a3)+'ry']){const _0x7706c=_0x42cdbb['mergeConte'+'nt'](_0x5cb7ab[_0x51e526(0x114,0xd4)+'ry'][_0x51e526(0xf2,0x54)],_0x856ba5[_0x4e2e60(0x4f4,0x56f)]);if(_0x7706c['truncated']){_0x32b5c4=_0x15cc70[_0x4e2e60(0x5bd,0x5a9)+'ry'](_0x540bf9);_0x3e869c!==_0x4e2e60(0x5a1,0x4f8)&&_0x15cc70[_0x51e526(0xc0,0x8b)+_0x51e526(0x2e,0xb2)](_0x32b5c4['id'],null,'pending');_0x247291[_0x51e526(0x5,-0x3c)](_0x4e2e60(0x52b,0x503)+_0x4e2e60(0x543,0x4b5)+'\x20of\x20merge\x20'+'(would\x20tru'+_0x4e2e60(0x450,0x491),{'targetId':_0x5cb7ab[_0x51e526(0x114,0xd0)+'ry']['id'],'newId':_0x32b5c4['id'],'targetLength':_0x5cb7ab[_0x51e526(0x114,0x17e)+'ry']['content'][_0x4e2e60(0x4a4,0x4bc)],'wouldBeLength':_0x7706c[_0x51e526(0x116,0xeb)+'gth']});break;}_0x15cc70[_0x4e2e60(0x51a,0x479)+'ry'](_0x5cb7ab[_0x51e526(0x114,0xc3)+'ry']['id'],{'content':_0x7706c[_0x4e2e60(0x516,0x581)],'tags':[...new Set([..._0x5cb7ab[_0x51e526(0x114,0x150)+'ry'][_0x51e526(0x3a,0x32)]||[],...buildTags(_0xd06d94)])]}),_0x247291[_0x4e2e60(0x3f6,0x494)]('Memory\x20upd'+_0x4e2e60(0x507,0x4f2)+_0x51e526(0x10f,0x63),{'memoryId':_0x5cb7ab[_0x4e2e60(0x5d8,0x5a3)+'ry']['id']});}return;case _0x51e526(0x52,0x4c):{_0x5cb7ab[_0x4e2e60(0x64b,0x5a3)+'ry']&&(isProtectedFromCleanup(_0x5cb7ab[_0x4e2e60(0x587,0x5a3)+'ry'])?_0x4e2e60(0x48f,0x4d7)!==_0x4e2e60(0x437,0x4d7)?_0x442f5f[_0x4e2e60(0x45c,0x509)+_0x51e526(0x55,0xc6)](_0x1cf9d5['id'],_0x45f580):_0x247291['info']('DELETE\x20inv'+_0x51e526(0x4d,-0xc)+'skipped\x20(p'+_0x51e526(0xaf,0x136)+_0x4e2e60(0x49d,0x45a),{'memoryId':_0x5cb7ab[_0x51e526(0x114,0x145)+'ry']['id'],'category':_0x5cb7ab['targetMemo'+'ry'][_0x4e2e60(0x533,0x537)]}):(_0x15cc70[_0x4e2e60(0x43a,0x479)+'ry'](_0x5cb7ab[_0x4e2e60(0x5da,0x5a3)+'ry']['id'],{'invalidAt':new Date()[_0x51e526(0x3c,0x73)+'g']()}),_0x247291['info']('Old\x20memory'+_0x4e2e60(0x5ac,0x547)+_0x51e526(0xd3,0x161),{'memoryId':_0x5cb7ab[_0x4e2e60(0x639,0x5a3)+'ry']['id']})));_0x32b5c4=_0x15cc70['createMemo'+'ry'](_0x540bf9);_0x3e869c!==_0x4e2e60(0x4c4,0x4f8)&&_0x15cc70[_0x51e526(0xc0,0x2e)+_0x4e2e60(0x43a,0x4bd)](_0x32b5c4['id'],null,_0x51e526(0x11d,0x164));_0x247291[_0x4e2e60(0x426,0x494)](_0x51e526(0x106,0x173)+'tured\x20(aft'+_0x51e526(0x7d,0xb7),{'category':_0xe7bce7,'memoryId':_0x32b5c4['id']});break;}case _0x51e526(0xef,0x61):default:_0x32b5c4=_0x15cc70[_0x51e526(0x11a,0xb3)+'ry'](_0x540bf9);_0x3e869c!==_0x4e2e60(0x479,0x4f8)&&_0x15cc70[_0x51e526(0xc0,0x11c)+_0x51e526(0x2e,0xd9)](_0x32b5c4['id'],null,_0x4e2e60(0x5a0,0x5ac));_0x247291[_0x51e526(0x5,-0x27)](_0x51e526(0x106,0x15f)+'tured',{'category':_0xe7bce7,'memoryId':_0x32b5c4['id']});break;}}catch(_0x8bed38){const _0x4863d1=_0x8bed38 instanceof Error?_0x8bed38:new Error(String(_0x8bed38));_0x247291[_0x51e526(0x37,0xa0)](_0x4e2e60(0x452,0x4ea)+_0x51e526(0xbe,0x155)+'ed',_0x4863d1,{'category':_0xe7bce7});}const _0x33a67f=performance[_0x51e526(0x1b,0x65)]();if(_0x32b5c4&&_0x56c77e[_0x4e2e60(0x4f8,0x4d8)]?.[_0x4e2e60(0x55e,0x4df)]&&_0x56c77e[_0x4e2e60(0x4f1,0x4d8)]['provider']===_0x51e526(0x7e,0x32))try{const {createEmbeddingProvider:_0x1593db}=await import('../embeddi'+'ng/index.j'+'s'),_0x192094=_0x1593db(_0x56c77e[_0x51e526(0x49,0x83)],_0x56c77e[_0x4e2e60(0x45b,0x46d)]),_0xd11e40=await Promise[_0x4e2e60(0x493,0x492)](_0x192094[_0x4e2e60(0x4c3,0x56c)](_0x32b5c4[_0x4e2e60(0x502,0x581)]));Array[_0x4e2e60(0x5c5,0x56e)](_0xd11e40)&&_0x15cc70[_0x51e526(0x7a,0x83)+'ing'](_0x32b5c4['id'],_0xd11e40);}catch(_0x1ec8d9){_0x247291[_0x4e2e60(0x471,0x4bf)]('Embedding\x20'+'failed',{'error':_0x1ec8d9 instanceof Error?_0x1ec8d9['message']:String(_0x1ec8d9)});}try{const _0x4140d9=_0x15cc70[_0x51e526(0xda,0xd3)+_0x51e526(0x62,0x101)](_0xd06d94[_0x51e526(0xd8,0x166)]);if(_0x4140d9&&_0x4140d9[_0x4e2e60(0x50e,0x52a)+_0x4e2e60(0x3d8,0x483)]){const _0x9c10f4=(_0xd06d94[_0x51e526(0x1f,0xb7)]+'\x20'+JSON['stringify'](_0xd06d94[_0x51e526(0x27,-0x7f)])+'\x20'+String(_0xd06d94[_0x51e526(0x64,0x62)]))[_0x51e526(0xc3,0x25)+'e'](),{parseInjectedKeywords:_0x58e761}=await import(_0x51e526(0x90,0xab)+'s'),_0x13c703=_0x58e761(_0x4140d9[_0x4e2e60(0x49c,0x52a)+'ywords']);let _0x50892c=[],_0x3e76a9=[];if(_0x13c703[_0x51e526(0x80,0x2f)]){for(const [_0x1345eb,_0x6fe91c]of Object[_0x51e526(-0x28,-0x72)](_0x13c703[_0x51e526(0xbd,0x117)])){const _0x1dfd28=_0x6fe91c[_0x51e526(0x2f,0x61)](_0x5b9143=>_0x9c10f4['includes'](_0x5b9143));_0x1dfd28[_0x51e526(0x2d,0xa2)]>0x0&&(_0x50892c[_0x4e2e60(0x5af,0x520)](..._0x1dfd28),_0x3e76a9['push'](_0x1345eb));}_0x50892c=[...new Set(_0x50892c)],_0x3e76a9=[...new Set(_0x3e76a9)];}else _0x50892c=_0x13c703['keywords'][_0x4e2e60(0x560,0x4be)](_0x298998=>_0x9c10f4['includes'](_0x298998));_0x50892c['length']>0x0&&_0x15cc70[_0x51e526(0x115,0x164)+_0x4e2e60(0x534,0x534)](_0x4140d9['id'],_0x50892c,_0xd06d94[_0x4e2e60(0x429,0x4ae)],_0x3e76a9);}}catch{}if(_0x32b5c4&&(_0x5cb7ab[_0x51e526(0xff,0x14e)]===_0x4e2e60(0x544,0x57e)||_0x5cb7ab['action']===_0x4e2e60(0x502,0x4e1)))try{_0x4e2e60(0x451,0x500)===_0x51e526(0xeb,0x9c)?_0x1f3c08[_0x4e2e60(0x581,0x53d)]():_0x15cc70['recordExtr'+_0x51e526(0xd0,0x5a)]({'memoryId':_0x32b5c4['id'],'sessionId':_0xd06d94[_0x4e2e60(0x4e3,0x567)],'significanceScore':_0x350342[_0x4e2e60(0x488,0x465)],'dedupAction':_0x5cb7ab[_0x4e2e60(0x4e3,0x58e)],'tier':_0x3e869c});}catch{}if(_0x32b5c4&&_0x32b5c4[_0x51e526(0x49,-0x2d)]&&_0x56c77e[_0x4e2e60(0x5bb,0x55e)+_0x4e2e60(0x4fa,0x4ba)]?.['enabled'])try{const {SkillEvaluator:_0x20d2ff}=await import('../skill/e'+_0x4e2e60(0x505,0x4d4)+'s'),_0x15c845=new _0x20d2ff(_0x15cc70,_0x56c77e),_0x8f2548=_0x15c845[_0x4e2e60(0x5af,0x53a)+_0x51e526(0xe4,0xaa)](_0x32b5c4);_0x8f2548[_0x51e526(0xd4,0x12e)]&&(_0x51e526(0x31,-0x4)!==_0x4e2e60(0x43f,0x4c0)?(_0x19fb25[_0x4e2e60(0x453,0x4c6)](_0x51e526(0x102,0x129)+_0x51e526(0xa7,0x92)+_0x51e526(0x122,0x8b),_0x5ecb42 instanceof _0x237782?_0x5a6f52[_0x51e526(0x12,0xb5)]:_0x46cb0b),_0x14864f[_0x4e2e60(0x47d,0x4ef)](0x0)):_0x247291['info'](_0x4e2e60(0x4a9,0x523)+_0x51e526(-0x31,-0x86)+_0x4e2e60(0x46c,0x484),{'memoryId':_0x32b5c4['id'],'skillId':_0x8f2548[_0x4e2e60(0x57d,0x57b)]}));}catch{}const _0x585709=performance[_0x4e2e60(0x4ce,0x4aa)]();let _0x5d7257=0x0;const _0x5629cc=_0x56c77e['frozenSnap'+_0x4e2e60(0x4e2,0x4ca)]?.[_0x4e2e60(0x4b2,0x4df)]!==![]&&_0x56c77e[_0x4e2e60(0x4dc,0x527)+_0x51e526(0x3b,0x20)]?.[_0x4e2e60(0x4fa,0x49c)+'AutoSync']!==!![];if(_0x56c77e[_0x51e526(0x73,0xc7)]?.[_0x4e2e60(0x49b,0x4df)]&&_0x56c77e[_0x4e2e60(0x3cf,0x456)]?.[_0x4e2e60(0x46a,0x474)]&&!_0x5629cc){try{const _0x1f41e7=_0x15cc70[_0x4e2e60(0x5ac,0x5aa)+_0x51e526(0x67,0x7d)]();if(_0x1f41e7>=AUTO_SYNC_THRESHOLD){const _0x3bf239=createHookClient(_0x56c77e);if(_0x3bf239){const _0x2342ea=new SyncQueue(_0x15cc70,_0x3bf239),_0x479815=await _0x2342ea['flush']({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});if(_0x479815[_0x4e2e60(0x448,0x4d3)]>0x0){if(_0x51e526(0xaa,0x60)===_0x4e2e60(0x564,0x539))_0x247291[_0x4e2e60(0x3e8,0x494)](_0x51e526(0xc9,0x134)+_0x51e526(0x44,0x67),{'pushed':_0x479815[_0x4e2e60(0x51a,0x4d3)],'pending':_0x1f41e7}),console[_0x51e526(0x37,-0x17)](_0x4e2e60(0x509,0x59c)+_0x4e2e60(0x46e,0x46a)+_0x479815['pushed']+'\x20memories');else{_0x2819af[_0x51e526(0x5,-0x75)](_0x51e526(0x43,-0x3d)+_0x51e526(-0x3a,-0x8a)+_0x4e2e60(0x593,0x554),{'filePath':_0x232f5b});return;}}}}}catch(_0x3e2051){_0x247291[_0x51e526(0x30,0xd)](_0x4e2e60(0x5a4,0x558)+_0x4e2e60(0x565,0x4fa),{'error':_0x3e2051 instanceof Error?_0x3e2051[_0x51e526(0x12,-0x19)]:String(_0x3e2051)});}_0x5d7257=Math[_0x4e2e60(0x457,0x4fb)](performance[_0x4e2e60(0x48d,0x4aa)]()-_0x585709);}else _0x56c77e['autoSync']?.[_0x4e2e60(0x4ea,0x4df)]&&_0x56c77e[_0x51e526(-0x39,-0x74)]?.['apiKey']&&_0x5629cc&&_0x247291['debug']('Frozen\x20sna'+_0x51e526(0x3e,-0x71)+_0x51e526(0x5d,0x40)+_0x4e2e60(0x472,0x472)+'nc\x20deferre'+_0x51e526(0xfd,0xcb)+_0x51e526(0x119,0x111));const _0x4ac1b1=Math[_0x51e526(0x6c,0x11b)](performance['now']()-_0x401737),_0x2080be=Math[_0x4e2e60(0x4a7,0x4fb)](_0x1f799d-_0x401737),_0x2c83c0=Math[_0x51e526(0x6c,0xa5)](_0x48f1b5-_0x18f3b9),_0xfbce4b=Math[_0x4e2e60(0x44c,0x4fb)](_0x18dc40-_0x4e3f44),_0x2338e=Math['round'](_0x33a67f-_0x165663),_0x347e30=_0x5d7257>0x0?_0x4e2e60(0x4f4,0x54b)+_0x5d7257+'ms':'';process['stderr'][_0x51e526(0x4a,0x3c)](_0x4e2e60(0x44a,0x471)+_0x4e2e60(0x4a9,0x504)+_0x51e526(0xde,0x143)+_0x4e2e60(0x514,0x476)+_0x4ac1b1+(_0x4e2e60(0x552,0x4c5)+_0x4e2e60(0x5d6,0x550))+_0x2080be+(_0x51e526(0x9c,0xcd)+_0x4e2e60(0x4d8,0x564))+_0x2c83c0+(_0x4e2e60(0x3db,0x454)+'\x20')+_0xfbce4b+_0x4e2e60(0x3db,0x46c)+_0x2338e+'ms'+_0x347e30+')\x0a'),_0x247291['info'](_0x51e526(0xed,0xe9)+_0x51e526(0x58,0xe8),{'durationMs':_0x4ac1b1});}finally{_0x247291[_0x51e526(0xae,0xab)]();}}function extractFilePath(_0x5cfdb8){let _0x15fb15=_0x5cfdb8;function _0x1f1a5f(_0x59a0c0,_0x58b459){return _0x2b6207(_0x59a0c0- -0x338,_0x58b459);}if(typeof _0x15fb15===_0x1f1a5f(0x109,0xfa))try{_0x15fb15=JSON[_0x1001df(0xad,0x140)](_0x15fb15);}catch{if('oAiXc'!==_0x1f1a5f(0xcb,0x170))return null;else _0x54a2fe=_0x278e64(_0x68661b);}if(typeof _0x15fb15===_0x1001df(0x117,0x17c)&&_0x15fb15!==null){if(typeof _0x15fb15[_0x1001df(0x18a,0x195)]===_0x1001df(0x199,0x172))return _0x15fb15[_0x1001df(0x13e,0x195)];if(typeof _0x15fb15['path']===_0x1f1a5f(0x109,0xe5))return _0x15fb15[_0x1f1a5f(0x100,0x1a1)];}function _0x1001df(_0x18fde8,_0x5bccbd){return _0x2b6207(_0x5bccbd- -0x2cf,_0x18fde8);}return null;}function isSensitiveFile(_0x96f11f,_0x410e78){const _0x1af038=_0x96f11f['split']('/')['pop']()??'';return _0x410e78['some'](_0x420356=>{function _0x5558e1(_0x20af5b,_0x10879c){return _0x37c5(_0x20af5b-0x1b0,_0x10879c);}function _0x181c0f(_0x5b9e62,_0x3a66a9){return _0x37c5(_0x5b9e62- -0x333,_0x3a66a9);}if(_0x5558e1(0x447,0x3a9)!==_0x181c0f(-0x118,-0x1c0)){if(_0x420356['startsWith']('*'))return _0x1af038[_0x5558e1(0x42b,0x39c)](_0x420356[_0x5558e1(0x3d6,0x43f)](0x1));if(_0x420356[_0x181c0f(-0xb8,-0x156)]('*'))return _0x1af038[_0x181c0f(-0x154,-0x177)](_0x420356['slice'](0x0,-0x1));return _0x1af038===_0x420356;}else return![];});}function _0x2d6e07(_0x341171,_0x16b304){return _0x37c5(_0x341171-0xad,_0x16b304);}function isConfigFile(_0x1ced28){function _0x548855(_0x3f74fc,_0x2fcd0c){return _0x2b6207(_0x2fcd0c- -0x36e,_0x3f74fc);}function _0x491b59(_0x9bd687,_0x10fa40){return _0x2b6207(_0x10fa40-0xb4,_0x9bd687);}const _0xbe6475=[_0x491b59(0x5bb,0x57c),'.yaml',_0x491b59(0x5bd,0x54c),'.toml',_0x548855(0x33,0x77),_0x548855(0xd,0x81),'.cfg'];return _0xbe6475[_0x548855(0xb1,0xfc)](_0x24175e=>_0x1ced28[_0x548855(0x115,0x12d)](_0x24175e));}function detectActualError(_0x54036f,_0x46aa1c){if(_0x54036f[_0x1d5e70(-0xd9,-0xef)]<0xc8)return![];const _0x47d219=_0x46aa1c?.[_0x1d5e70(-0x1aa,-0xfd)];if(_0x47d219===_0x1d5e70(0x4c,-0x1b))return![];const _0x384e9f=_0x54036f['toLowerCas'+'e']();function _0x1971b7(_0x102dcd,_0x58d330){return _0x2d6e07(_0x102dcd- -0x406,_0x58d330);}const _0x17257a=['error:',_0x1971b7(-0x1c6,-0x166),_0x1d5e70(-0xbc,-0x6f),_0x1971b7(-0xad,-0x2e),_0x1971b7(-0x14e,-0xf6),'failed:',_0x1d5e70(-0x5,-0x6a),_0x1d5e70(-0x79,-0xb),_0x1971b7(-0xe4,-0xf4),_0x1d5e70(-0x20,-0x83)],_0x505e6=_0x17257a[_0x1d5e70(-0x68,-0x97)](_0x12fea2=>_0x54036f['includes'](_0x12fea2)||_0x384e9f[_0x1971b7(-0x199,-0x106)](_0x12fea2[_0x1971b7(-0xd1,-0x7a)+'e']()));if(!_0x505e6)return![];const _0x3c050a=_0x46aa1c?.[_0x1971b7(-0x115,-0x11e)]||_0x46aa1c?.[_0x1971b7(-0x141,-0x10d)]||'';function _0x1d5e70(_0x45ddbe,_0x3d1ece){return _0x2d6e07(_0x3d1ece- -0x38e,_0x45ddbe);}if(_0x3c050a['toLowerCas'+'e']()[_0x1971b7(-0x199,-0x121)](_0x1d5e70(-0x187,-0xe5))&&!_0x17257a['slice'](0x2)[_0x1971b7(-0x10f,-0x14b)](_0x560384=>_0x384e9f[_0x1d5e70(-0x176,-0x121)](_0x560384[_0x1971b7(-0xd1,-0x101)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x5cc572,_0x57b1db){if(_0x57b1db)return'error_solu'+'tion';function _0x5c5488(_0x6b2347,_0x1e42da){return _0x2d6e07(_0x1e42da-0x104,_0x6b2347);}function _0x484a47(_0x5dd95a,_0x539c96){return _0x2d6e07(_0x5dd95a-0x25a,_0x539c96);}const _0x1fbcc9=_0x5cc572[_0x484a47(0x530,0x506)][_0x484a47(0x58f,0x54d)+'e'](),_0x119d41=_0x5cc572[_0x484a47(0x530,0x4ab)];if(_0x5cc572['toolName']===_0x484a47(0x597,0x5d0)){const _0x8ebf95=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x484a47(0x557,0x4b9)](_0x5cc572['toolResult']);if(_0x8ebf95)return _0x5c5488(0x2ee,0x368);const _0x3726ee=[_0x484a47(0x5c4,0x530),_0x484a47(0x552,0x4fb),_0x5c5488(0x377,0x419),_0x484a47(0x56a,0x571),_0x5c5488(0x3c6,0x343),'went\x20with'];if(_0x3726ee['some'](_0x340f02=>_0x1fbcc9[_0x5c5488(0x30e,0x371)](_0x340f02)))return _0x5c5488(0x379,0x404);const _0x1ddeca=[_0x484a47(0x5c3,0x658),_0x484a47(0x5a8,0x5d0),_0x5c5488(0x47b,0x3e5),_0x484a47(0x4c8,0x56d),'guideline',_0x484a47(0x4b2,0x549)+_0x484a47(0x4a8,0x4d8)];if(_0x1ddeca[_0x5c5488(0x442,0x3fb)](_0x399167=>_0x1fbcc9[_0x5c5488(0x32c,0x371)](_0x399167)))return _0x484a47(0x5c3,0x608);if(LEARNING_KEYWORDS_RE[_0x484a47(0x557,0x533)](_0x119d41)){if(_0x484a47(0x556,0x5b4)!==_0x5c5488(0x3a7,0x400))_0x334e10(_0x453e9e[_0x5c5488(0x4a6,0x48a)+'ry'])?_0x32361f[_0x5c5488(0x3eb,0x37b)](_0x5c5488(0x3e2,0x37f)+_0x484a47(0x519,0x554)+_0x5c5488(0x3c3,0x431)+_0x5c5488(0x392,0x425)+_0x5c5488(0x354,0x341),{'memoryId':_0x54f8b8[_0x5c5488(0x4fa,0x48a)+'ry']['id'],'category':_0x3b689e[_0x5c5488(0x530,0x48a)+'ry'][_0x484a47(0x574,0x58c)]}):(_0x4d8be4[_0x5c5488(0x310,0x360)+'ry'](_0x3f7e45[_0x484a47(0x5e0,0x5e4)+'ry']['id'],{'invalidAt':new _0x410e34()['toISOStrin'+'g']()}),_0x2bea0a[_0x5c5488(0x409,0x37b)]('Old\x20memory'+_0x484a47(0x584,0x5bf)+_0x5c5488(0x3f3,0x449),{'memoryId':_0x12af2c['targetMemo'+'ry']['id']}));else return _0x484a47(0x5b6,0x634);}}if(_0x5cc572[_0x5c5488(0x349,0x395)]==='Read'||_0x5cc572[_0x5c5488(0x3d9,0x395)]==='Grep'||_0x5cc572[_0x484a47(0x4eb,0x599)]===_0x484a47(0x5a3,0x4fc))return _0x5c5488(0x378,0x368);if(_0x5cc572['toolName']===_0x5c5488(0x30e,0x369)||_0x5cc572['toolName']===_0x5c5488(0x445,0x418)){const _0x48a21a=extractFilePath(_0x5cc572[_0x484a47(0x4f3,0x4c5)]),_0x28a0ae=_0x5cc572[_0x484a47(0x530,0x593)];if(_0x48a21a&&(_0x48a21a[_0x484a47(0x4c7,0x4e2)](_0x484a47(0x5e4,0x63f))||_0x48a21a['includes']('/tmp/')))return _0x5c5488(0x327,0x368);if(_0x28a0ae[_0x484a47(0x4f9,0x57c)]<0x32||_0x28a0ae[_0x484a47(0x58f,0x61d)+'e']()[_0x484a47(0x4c7,0x438)](_0x5c5488(0x4e7,0x43d)+'en\x20success'+_0x5c5488(0x435,0x3b8))||_0x28a0ae[_0x484a47(0x58f,0x590)+'e']()[_0x484a47(0x4c7,0x49c)]('file\x20creat'+'ed')||_0x28a0ae[_0x484a47(0x58f,0x509)+'e']()[_0x5c5488(0x3c1,0x371)](_0x5c5488(0x45b,0x46a)+_0x5c5488(0x41f,0x373)))return _0x484a47(0x4be,0x40f);if(LEARNING_KEYWORDS_RE[_0x5c5488(0x38e,0x401)](_0x28a0ae))return _0x484a47(0x5b6,0x54a);return _0x5c5488(0x30a,0x39f)+'rn';}return _0x5c5488(0x37f,0x368);}export function buildContent(_0x3d26cd){function _0x5dc950(_0x5d4e0a,_0x14c500){return _0x2d6e07(_0x14c500- -0x168,_0x5d4e0a);}const _0x56dac4=extractFilePath(_0x3d26cd['toolInput']);let _0x5ea8bc=_0x3d26cd[_0x1a35e1(0x410,0x483)][_0x1a35e1(0x4b6,0x480)](0x0,0x5dc)[_0x1a35e1(0x47b,0x527)]();(_0x3d26cd[_0x1a35e1(0x3ca,0x43e)]==='Edit'||_0x3d26cd[_0x1a35e1(0x3bc,0x43e)]===_0x5dc950(0x183,0xfd))&&_0x5ea8bc[_0x5dc950(0x11d,0x124)]('{')&&(_0x5ea8bc=stripDiffContent(_0x5ea8bc));_0x3d26cd[_0x1a35e1(0x391,0x43e)]==='Bash'&&_0x5ea8bc['startsWith']('{')&&(_0x5ea8bc=extractBashContent(_0x5ea8bc));_0x5ea8bc['length']>0x1f4&&(_0x5ea8bc[_0x1a35e1(0x4dc,0x439)]('{')||_0x5ea8bc['startsWith']('['))&&(_0x5ea8bc=summarizeJsonResult(_0x5ea8bc));_0x5ea8bc=_0x5ea8bc['slice'](0x0,0x3e8)[_0x1a35e1(0x57e,0x527)]();if(!_0x5ea8bc||isNoiseResult(_0x5ea8bc))return'';const _0x420784=[];if(_0x56dac4)_0x420784[_0x5dc950(0x196,0x19b)](_0x5dc950(0x1f1,0x177)+_0x56dac4);_0x420784[_0x5dc950(0x210,0x19b)](_0x5ea8bc);const _0x593c2f=_0x420784[_0x5dc950(0x105,0x1ab)]('\x0a');function _0x1a35e1(_0x2d4a65,_0x1f473d){return _0x2d6e07(_0x1f473d-0x1ad,_0x2d4a65);}if(_0x593c2f['length']<0x14)return'';return _0x593c2f;}function stripDiffContent(_0xb653b2){function _0x1167db(_0x61af8a,_0x3d4b15){return _0x2b6207(_0x3d4b15- -0x4ee,_0x61af8a);}function _0x422609(_0x5721c9,_0x1bed6f){return _0x2b6207(_0x1bed6f- -0x21a,_0x5721c9);}try{const _0x45c673=JSON['parse'](_0xb653b2);if(_0x45c673[_0x1167db(-0x33,-0x47)]||_0x45c673[_0x422609(0x256,0x2ce)]||_0x45c673[_0x1167db(-0x93,-0xd7)+_0x422609(0x211,0x242)]||_0x45c673[_0x422609(0x21d,0x260)]&&_0x45c673[_0x422609(0x225,0x2d4)]&&typeof _0x45c673[_0x422609(0x25f,0x2bd)]===_0x1167db(-0x4e,-0xad))return'';return _0xb653b2;}catch{if(_0xb653b2[_0x1167db(-0x178,-0x10e)]('\x22oldString'+'\x22')||_0xb653b2[_0x422609(0x22d,0x1c6)]('\x22newString'+'\x22')||_0xb653b2[_0x422609(0x240,0x1c6)]('\x22structure'+_0x1167db(-0x5d,0x2))||_0xb653b2[_0x1167db(-0x91,-0x10e)]('\x22type\x22')&&_0xb653b2[_0x422609(0x247,0x1c6)](_0x1167db(-0x177,-0x135))&&_0xb653b2[_0x1167db(-0x9c,-0x10e)](_0x422609(0x1e4,0x26f))){if('mBCNH'===_0x422609(0x1f1,0x268))_0x4b7c80[_0x1167db(-0x90,-0x11f)+'ry'](_0x45f532[_0x1167db(0x8e,0xb)+'ry']['id'],{'invalidAt':new _0x33a036()[_0x422609(0x22b,0x207)+'g']()}),_0x2c5144[_0x422609(0x1b1,0x1d0)](_0x422609(0x256,0x2d5)+_0x1167db(-0x49,-0x51)+'lidated',{'memoryId':_0x5f2e16[_0x1167db(0x8f,0xb)+'ry']['id']});else return'';}return _0xb653b2;}}function extractBashContent(_0x6ab536){function _0x1c6324(_0x1da8f7,_0x49643a){return _0x2b6207(_0x1da8f7- -0xe7,_0x49643a);}function _0xdd06b8(_0x5412b2,_0x1b6919){return _0x2b6207(_0x1b6919- -0x2a2,_0x5412b2);}try{const _0x2d36b2=JSON[_0xdd06b8(0x211,0x16d)](_0x6ab536),_0x38572f=(_0x2d36b2[_0x1c6324(0x2ee,0x2ac)]||'')[_0x1c6324(0x406,0x43b)](),_0x5f53d0=(_0x2d36b2[_0x1c6324(0x41f,0x3dd)]||'')['trim']();if(_0x5f53d0&&_0x5f53d0['length']>0xa)return _0xdd06b8(0x12c,0x184)+_0x5f53d0[_0xdd06b8(0x125,0x1a4)](0x0,0x1f4)+(_0x38572f?_0x1c6324(0x2d3,0x23f)+_0x38572f[_0xdd06b8(0x193,0x1a4)](0x0,0x12c):'');if(_0x38572f)return _0x38572f[_0x1c6324(0x35f,0x3e5)](0x0,0x3e8);return _0x6ab536[_0x1c6324(0x35f,0x382)](0x0,0x1f4);}catch{return _0x6ab536['slice'](0x0,0x3e8);}}function summarizeJsonResult(_0x24a9a0){function _0x5cc1f4(_0xbe9bb0,_0x321778){return _0x2d6e07(_0xbe9bb0- -0x2ef,_0x321778);}function _0x471353(_0x49a03d,_0x36b019){return _0x2d6e07(_0x49a03d- -0x47c,_0x36b019);}try{if(_0x471353(-0x1f4,-0x1d8)!==_0x471353(-0x1f4,-0x27e))return'';else{const _0x1c50ce=JSON[_0x5cc1f4(-0x53,-0x13)](_0x24a9a0);if(Array[_0x471353(-0x12b,-0x122)](_0x1c50ce))return _0x471353(-0x1f2,-0x19a)+_0x1c50ce[_0x5cc1f4(-0x50,0x24)]+_0x471353(-0x183,-0x19a)+JSON[_0x471353(-0x241,-0x1f6)](_0x1c50ce[0x0])[_0x471353(-0x1a9,-0x140)](0x0,0xc8)+_0x5cc1f4(-0x9d,-0x39);const _0x3e10cf=Object[_0x5cc1f4(0x3c,0x33)](_0x1c50ce)[_0x5cc1f4(-0x1c,-0x11)](0x0,0xa),_0xf4d0c=_0x3e10cf[_0x5cc1f4(0x54,0x7c)](_0xc2f7d6=>{function _0x1817af(_0x215fe1,_0x216f70){return _0x5cc1f4(_0x216f70-0x2ce,_0x215fe1);}const _0x5476c8=_0x1c50ce[_0xc2f7d6],_0x1d0ad8=typeof _0x5476c8===_0x3ada31(-0x6,-0x18)?_0x5476c8[_0x1817af(0x281,0x2b2)](0x0,0x50):JSON['stringify'](_0x5476c8)[_0x1817af(0x2f8,0x2b2)](0x0,0x50);function _0x3ada31(_0x353148,_0x312679){return _0x5cc1f4(_0x353148-0x1b,_0x312679);}return _0xc2f7d6+':\x20'+_0x1d0ad8;})[_0x5cc1f4(0x24,0x3)](',\x20');return _0xf4d0c[_0x471353(-0x1a9,-0x1d6)](0x0,0x320);}}catch{return _0x24a9a0[_0x5cc1f4(-0x1c,-0x2e)](0x0,0x1f4);}}function isNoiseResult(_0x3db418){const _0x54fb31=_0x3db418[_0x4d98c8(0x383,0x41e)]();if(_0x54fb31[_0x4d98c8(0x3a6,0x330)](_0x4d98c8(0x357,0x3ff)))return!![];if(_0x54fb31[_0x4d98c8(0x2a6,0x330)](_0x4d98c8(0x49d,0x429)+'\x22')||_0x54fb31['startsWith'](_0x4d98c8(0x2bf,0x303)+'h\x22'))return!![];if(_0x54fb31[_0x4d98c8(0x2a8,0x311)](_0x4d98c8(0x4c8,0x424)+'rs/'))return!![];if(_0x54fb31[_0x90c63(-0x171,-0x209)](_0x4d98c8(0x3b5,0x364)+'me:')||_0x54fb31[_0x4d98c8(0x2f9,0x330)](_0x4d98c8(0x360,0x31e)+_0x90c63(-0xbd,-0xe4)))return!![];if(_0x54fb31['startsWith']('http:200')||_0x54fb31[_0x4d98c8(0x3bd,0x330)](_0x4d98c8(0x4ac,0x432)))return!![];function _0x4d98c8(_0x4766d2,_0x4da25d){return _0x2d6e07(_0x4da25d-0xa4,_0x4766d2);}if(_0x54fb31['startsWith'](_0x4d98c8(0x482,0x422)+_0x90c63(-0xda,-0x187)))return!![];const _0x4240f7=_0x54fb31['slice'](0x0,0xc8);function _0x90c63(_0x768de3,_0x24f2d6){return _0x2d6e07(_0x768de3- -0x3fd,_0x24f2d6);}if(_0x4240f7['includes'](_0x90c63(-0xe2,-0x133)+'healthy\x22')&&_0x4240f7['includes'](_0x90c63(-0x9a,-0x89)+_0x4d98c8(0x333,0x3b6)))return!![];const _0x7d4bb=_0x54fb31[_0x4d98c8(0x307,0x339)]('\x0a',0x1)[0x0],_0x41d59c=[/브랜치로\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(_0x41d59c[_0x4d98c8(0x42c,0x39b)](_0x2658ab=>_0x2658ab[_0x90c63(-0x100,-0x14c)](_0x7d4bb)))return!![];const _0x2b95f5=[/^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 _0x2b95f5[_0x90c63(-0x106,-0x1aa)](_0x28dc9d=>_0x28dc9d[_0x4d98c8(0x329,0x3a1)](_0x54fb31));}const TAG_BLOCKLIST=new Set(['id',_0x2b6207(0x43c,0x4ce),_0x2b6207(0x3dd,0x43b),'get',_0x2b6207(0x45b,0x3b1),'src',_0x2d6e07(0x2d7,0x286),_0x2d6e07(0x327,0x3b6),'to','in','of','a','is',_0x2b6207(0x46e,0x48c),'now',_0x2b6207(0x4b1,0x454),'name',_0x2d6e07(0x283,0x1e2),_0x2b6207(0x4b6,0x442),'trim','type','data',_0x2b6207(0x3ad,0x33e),_0x2b6207(0x3d3,0x47f),'test','decision',_0x2d6e07(0x36b,0x30b)+'tion',_0x2b6207(0x40e,0x4aa)+'rn',_0x2d6e07(0x264,0x2d8),_0x2b6207(0x4dc,0x50e),_0x2d6e07(0x2af,0x2ed),'learning',_0x2b6207(0x3b1,0x30b)+_0x2d6e07(0x2fe,0x264),_0x2b6207(0x3d8,0x3a2),_0x2d6e07(0x314,0x335),_0x2d6e07(0x33d,0x2d6),_0x2b6207(0x4e6,0x441),_0x2d6e07(0x349,0x344),_0x2d6e07(0x25a,0x210),'Task',_0x2b6207(0x468,0x3d5),'WebSearch','write',_0x2b6207(0x484,0x4fb),_0x2d6e07(0x35a,0x404),_0x2b6207(0x467,0x432),_0x2d6e07(0x2a7,0x28f),_0x2d6e07(0x336,0x3d5),_0x2d6e07(0x29a,0x296),_0x2b6207(0x41e,0x3c7),_0x2d6e07(0x269,0x279)]),STOPWORDS=new Set(['the','and',_0x2b6207(0x418,0x469),'was',_0x2d6e07(0x308,0x341),_0x2d6e07(0x2c1,0x255),_0x2b6207(0x453,0x46b),_0x2b6207(0x3eb,0x427),'had',_0x2d6e07(0x389,0x31c),_0x2b6207(0x3b6,0x41f),_0x2b6207(0x504,0x46f),'should',_0x2d6e07(0x390,0x356),_0x2d6e07(0x289,0x258),_0x2b6207(0x406,0x481),_0x2b6207(0x45d,0x4a6),_0x2d6e07(0x2be,0x2dc),_0x2b6207(0x3f8,0x3d6),_0x2d6e07(0x326,0x398),_0x2b6207(0x46e,0x4b1),'from',_0x2b6207(0x3f3,0x3c2),_0x2d6e07(0x244,0x2c8),_0x2d6e07(0x2e4,0x284),_0x2b6207(0x424,0x437),_0x2d6e07(0x360,0x2c6),_0x2b6207(0x409,0x3d7),'about',_0x2d6e07(0x301,0x380),_0x2b6207(0x4da,0x510),_0x2d6e07(0x24b,0x2e9),_0x2b6207(0x3b5,0x43c),'both',_0x2d6e07(0x276,0x1ca),_0x2b6207(0x419,0x460),_0x2d6e07(0x26b,0x2f1),_0x2d6e07(0x2aa,0x29e),_0x2b6207(0x46a,0x41b),_0x2d6e07(0x2cc,0x2cd),_0x2d6e07(0x245,0x2c0),_0x2d6e07(0x29e,0x208),_0x2d6e07(0x384,0x416),_0x2d6e07(0x33c,0x330),_0x2d6e07(0x24c,0x2bf),'very',_0x2d6e07(0x271,0x230),_0x2b6207(0x4d8,0x553),_0x2d6e07(0x33a,0x29d),_0x2b6207(0x4c7,0x4b5),_0x2b6207(0x3db,0x401),'none',_0x2b6207(0x455,0x4a7),_0x2b6207(0x430,0x3d5),_0x2b6207(0x4e9,0x573),_0x2b6207(0x3d1,0x351),'your','his',_0x2d6e07(0x379,0x3b7),_0x2b6207(0x4f5,0x49f),_0x2b6207(0x47c,0x430),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function _0x37c5(_0x1862ea,_0x3f627){_0x1862ea=_0x1862ea-0x18a;const _0x4099b4=_0x4099();let _0x37c5d7=_0x4099b4[_0x1862ea];if(_0x37c5['YlwJeC']===undefined){var _0x2e2bca=function(_0x47fb3f){const _0x173bfd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x274314='',_0xa62d51='';for(let _0x27b889=0x0,_0x3c1055,_0x8f0040,_0x55f985=0x0;_0x8f0040=_0x47fb3f['charAt'](_0x55f985++);~_0x8f0040&&(_0x3c1055=_0x27b889%0x4?_0x3c1055*0x40+_0x8f0040:_0x8f0040,_0x27b889++%0x4)?_0x274314+=String['fromCharCode'](0xff&_0x3c1055>>(-0x2*_0x27b889&0x6)):0x0){_0x8f0040=_0x173bfd['indexOf'](_0x8f0040);}for(let _0x2d3c7a=0x0,_0x162dc7=_0x274314['length'];_0x2d3c7a<_0x162dc7;_0x2d3c7a++){_0xa62d51+='%'+('00'+_0x274314['charCodeAt'](_0x2d3c7a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa62d51);};_0x37c5['ljdccc']=_0x2e2bca,_0x37c5['CfqwwB']={},_0x37c5['YlwJeC']=!![];}const _0x2f91e6=_0x4099b4[0x0],_0x3f2c4a=_0x1862ea+_0x2f91e6,_0x39ef38=_0x37c5['CfqwwB'][_0x3f2c4a];return!_0x39ef38?(_0x37c5d7=_0x37c5['ljdccc'](_0x37c5d7),_0x37c5['CfqwwB'][_0x3f2c4a]=_0x37c5d7):_0x37c5d7=_0x39ef38,_0x37c5d7;}function extractKeywords(_0x2f3424,_0x4d6aaa=0x3){const _0x2d594c=_0x2f3424[_0x5291bb(0x4c7,0x46c)+'e'](),_0x27298a=_0x2d594c['match'](WORD_RE)||[],_0x2f6521=new Map();function _0x5291bb(_0x11bb43,_0x28aa3b){return _0x2d6e07(_0x11bb43-0x192,_0x28aa3b);}function _0x1fa74b(_0x56af26,_0x488e03){return _0x2d6e07(_0x56af26-0xd8,_0x488e03);}for(const _0x5c1ae1 of _0x27298a){if(_0x5c1ae1[_0x5291bb(0x431,0x4ba)]<0x3)continue;if(STOPWORDS[_0x1fa74b(0x350,0x38c)](_0x5c1ae1))continue;if(TAG_BLOCKLIST['has'](_0x5c1ae1))continue;_0x2f6521[_0x1fa74b(0x3c0,0x462)](_0x5c1ae1,(_0x2f6521[_0x5291bb(0x497,0x456)](_0x5c1ae1)||0x0)+0x1);}return[..._0x2f6521[_0x1fa74b(0x322,0x375)]()][_0x1fa74b(0x35e,0x3dd)]((_0x4a398b,_0x45ffa7)=>_0x45ffa7[0x1]-_0x4a398b[0x1])['slice'](0x0,_0x4d6aaa)[_0x5291bb(0x4d5,0x505)](([_0x370661])=>_0x370661);}function buildTags(_0x3b44e1){function _0x362f93(_0xd56d69,_0x59ea27){return _0x2b6207(_0xd56d69- -0x9e,_0x59ea27);}const _0x9b752=[],_0x280d15=extractFilePath(_0x3b44e1[_0x362f93(0x36e,0x356)]);if(_0x280d15){const _0x1a46be=_0x280d15[_0x54aa9a(0x3fa,0x453)]('/')[_0x54aa9a(0x406,0x48c)](Boolean),_0x18c522=_0x1a46be['slice'](-0x3)['filter'](_0x17649f=>_0x17649f['length']>0x2&&!TAG_BLOCKLIST[_0x54aa9a(0x3dd,0x396)](_0x17649f[_0x362f93(0x40a,0x399)+'e']()));for(const _0x3a422c of _0x18c522[_0x362f93(0x3a8,0x42b)](0x0,0x2)){const _0x2f6730=_0x3a422c['replace'](/\.[^.]+$/,'');_0x2f6730[_0x54aa9a(0x404,0x3c3)]>0x2&&!TAG_BLOCKLIST[_0x54aa9a(0x3dd,0x46b)](_0x2f6730['toLowerCas'+'e']())&&_0x9b752['push'](_0x2f6730);}const _0x38ca9f=_0x280d15[_0x362f93(0x36a,0x387)]('.')['pop']();if(_0x38ca9f){const _0x103d4e=_0x38ca9f['toLowerCas'+'e']();if(!/^\d+$/['test'](_0x38ca9f)&&_0x38ca9f[_0x362f93(0x374,0x2dc)]>0x2&&!TAG_BLOCKLIST[_0x362f93(0x34d,0x2df)](_0x103d4e)){const _0x189fb6=['md','txt',_0x362f93(0x367,0x31e),_0x362f93(0x3fe,0x3ae),_0x362f93(0x3b1,0x36c),_0x362f93(0x330,0x376),'html',_0x362f93(0x357,0x30f)];!_0x189fb6[_0x362f93(0x342,0x318)](_0x103d4e)&&_0x9b752[_0x362f93(0x3d8,0x340)](_0x38ca9f);}}}function _0x54aa9a(_0x53c547,_0x2296c2){return _0x2b6207(_0x53c547- -0xe,_0x2296c2);}if(_0x9b752['length']===0x0){const _0x2e37b3=extractKeywords(_0x3b44e1[_0x362f93(0x3ab,0x45a)],0x3);_0x9b752[_0x362f93(0x3d8,0x35f)](..._0x2e37b3);}return _0x9b752;}export async function main(){const _0x379343=[];for await(const _0x36ef9d of process['stdin']){'RKGWR'===_0xdf2ec2(0x175,0x18e)?_0x379343[_0xdf2ec2(0x130,0x1d9)](_0x36ef9d):_0x1e4b78[_0xdf2ec2(0xcf,0xb1)]('Embedding\x20'+_0x51cabf(0x172,0xe4),{'error':_0x27d255 instanceof _0x1562bc?_0xfaa02c[_0x51cabf(0x119,0xc7)]:_0x2550e4(_0x54751f)});}function _0xdf2ec2(_0x210dfb,_0x4feb77){return _0x2b6207(_0x210dfb- -0x346,_0x4feb77);}const _0x40b510=Buffer['concat'](_0x379343)[_0x51cabf(0x207,0x194)](_0xdf2ec2(0x139,0xc9))[_0x51cabf(0x20f,0x1fc)]();!_0x40b510&&process['exit'](0x0);function _0x51cabf(_0x4eaf51,_0x3ded92){return _0x2b6207(_0x4eaf51- -0x2de,_0x3ded92);}try{const _0x1137c5=JSON[_0x51cabf(0x131,0x15c)](_0x40b510),_0x573b16=normalizeHookInput(_0x1137c5);await handlePostToolUse(_0x573b16);}catch(_0x3cd876){console['error'](_0x51cabf(0x209,0x19a)+_0xdf2ec2(0x146,0x1d7)+_0x51cabf(0x229,0x1ac),_0x3cd876 instanceof Error?_0x3cd876[_0xdf2ec2(0xb1,0x46)]:_0x3cd876),process[_0x51cabf(0x167,0x11a)](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x2d6e07(0x362,0x2e6)][0x1]?.[_0x2d6e07(0x328,0x3c7)]('post-tool-'+'use.js')||process[_0x2b6207(0x4d5,0x4ca)][0x1]?.[_0x2d6e07(0x328,0x3b6)](_0x2b6207(0x4ca,0x4f0)+_0x2d6e07(0x358,0x3b9));isMainModule&&main();
|
|
1
|
+
(function(_0x56771f,_0x3020a4){const _0x4dd342=_0x56771f();function _0x303ed0(_0x42ae60,_0x38ee28){return _0x25c5(_0x42ae60-0x2f3,_0x38ee28);}function _0x3e609e(_0x4fbf2a,_0x42c655){return _0x25c5(_0x4fbf2a-0x18,_0x42c655);}while(!![]){try{const _0x30b0ba=-parseInt(_0x3e609e(0x12f,0xc5))/0x1+parseInt(_0x3e609e(0x16f,0x12c))/0x2+parseInt(_0x3e609e(0x1a2,0x15f))/0x3+-parseInt(_0x303ed0(0x491,0x4ba))/0x4+-parseInt(_0x303ed0(0x3a9,0x3d4))/0x5*(parseInt(_0x3e609e(0x1b7,0x206))/0x6)+parseInt(_0x3e609e(0xe5,0x155))/0x7+parseInt(_0x3e609e(0x1ce,0x14e))/0x8;if(_0x30b0ba===_0x3020a4)break;else _0x4dd342['push'](_0x4dd342['shift']());}catch(_0x45238d){_0x4dd342['push'](_0x4dd342['shift']());}}}(_0x5b7b,0xe3e9c));function _0x1be466(_0x57ca4d,_0xbe46fa){return _0x25c5(_0xbe46fa- -0x2b0,_0x57ca4d);}function _0x25c5(_0x575914,_0x4cfae8){_0x575914=_0x575914-0x9f;const _0x5b7b89=_0x5b7b();let _0x25c5bf=_0x5b7b89[_0x575914];if(_0x25c5['ThxbqD']===undefined){var _0x19a78a=function(_0x1229bd){const _0x53f0ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a5cff='',_0x454786='';for(let _0x369f34=0x0,_0x5c832b,_0x337688,_0x111bf2=0x0;_0x337688=_0x1229bd['charAt'](_0x111bf2++);~_0x337688&&(_0x5c832b=_0x369f34%0x4?_0x5c832b*0x40+_0x337688:_0x337688,_0x369f34++%0x4)?_0x1a5cff+=String['fromCharCode'](0xff&_0x5c832b>>(-0x2*_0x369f34&0x6)):0x0){_0x337688=_0x53f0ad['indexOf'](_0x337688);}for(let _0x1c2e3e=0x0,_0x4ffa1f=_0x1a5cff['length'];_0x1c2e3e<_0x4ffa1f;_0x1c2e3e++){_0x454786+='%'+('00'+_0x1a5cff['charCodeAt'](_0x1c2e3e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x454786);};_0x25c5['glREPh']=_0x19a78a,_0x25c5['zYtqfP']={},_0x25c5['ThxbqD']=!![];}const _0x36da81=_0x5b7b89[0x0],_0x2fa023=_0x575914+_0x36da81,_0x2afb43=_0x25c5['zYtqfP'][_0x2fa023];return!_0x2afb43?(_0x25c5bf=_0x25c5['glREPh'](_0x25c5bf),_0x25c5['zYtqfP'][_0x2fa023]=_0x25c5bf):_0x25c5bf=_0x2afb43,_0x25c5bf;}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';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':_0x5ee131(-0x13e,-0x18c),'code_pattern':'fact','decision':'episode','context':_0x1be466(-0x214,-0x1e9),'project_knowledge':_0x5ee131(-0x283,-0x214),'convention':_0x1be466(-0xe0,-0xd4),'learning':_0x1be466(-0x1ab,-0x124),'skill':_0x1be466(-0x21,-0xd4),'rule':_0x5ee131(-0x110,-0x13c)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x34e6aa){function _0x274085(_0xf41ad5,_0x114b71){return _0x1be466(_0x114b71,_0xf41ad5-0x688);}const _0x16d6f2=performance[_0x1bf015(0xe6,0x157)](),_0x9a61=new ConfigManager()[_0x1bf015(0x154,0x1f1)](),_0x33f64a=performance['now'](),_0x40edb7=createLogger(_0x1bf015(0x235,0x225)+'e',_0x9a61[_0x1bf015(0x25a,0x1d7)]);function _0x1bf015(_0x530fda,_0x252718){return _0x1be466(_0x530fda,_0x252718-0x31a);}try{_0x40edb7[_0x274085(0x57e,0x606)](_0x274085(0x53e,0x572)+'ed',{'toolName':_0x34e6aa[_0x274085(0x499,0x495)]});if(!_0x9a61['autoCaptur'+'e']['enabled']){_0x40edb7[_0x1bf015(0x17a,0x210)](_0x1bf015(0x1f4,0x22b)+_0x274085(0x4cc,0x514)+'d');return;}if(!_0x9a61[_0x274085(0x56d,0x597)+'e'][_0x274085(0x585,0x5b9)][_0x274085(0x5b0,0x575)](_0x34e6aa[_0x274085(0x499,0x43a)])){_0x40edb7[_0x1bf015(0x197,0x125)](_0x274085(0x596,0x51b)+_0x1bf015(0x1e9,0x150),{'toolName':_0x34e6aa[_0x274085(0x499,0x47b)]});return;}const _0x340c9f=extractFilePath(_0x34e6aa[_0x274085(0x5d2,0x655)]);if(_0x340c9f&&isSensitiveFile(_0x340c9f,_0x9a61[_0x274085(0x56d,0x5d8)+'e'][_0x274085(0x4c7,0x448)+_0x1bf015(0x2d2,0x257)])){_0x40edb7[_0x274085(0x57e,0x53c)](_0x274085(0x484,0x494)+_0x1bf015(0x234,0x19a)+_0x1bf015(0x2cc,0x22e),{'filePath':_0x340c9f});return;}if(_0x340c9f&&isClaudeMemoryFile(_0x340c9f)&&(_0x34e6aa[_0x1bf015(0x127,0x12b)]==='Write'||_0x34e6aa[_0x1bf015(0xfe,0x12b)]===_0x274085(0x4de,0x521))){const _0x2cec9f=performance['now']();try{if(_0x1bf015(0xa1,0x14b)!==_0x1bf015(0xca,0x14b)){if(_0x355953[_0x1bf015(0x19e,0x242)]('\x22oldString'+'\x22')||_0x34da1f[_0x274085(0x5b0,0x60a)]('\x22newString'+'\x22')||_0x3c0842[_0x1bf015(0x29f,0x242)](_0x1bf015(0x1de,0x1b1)+_0x1bf015(0x185,0x198))||_0x540d3b[_0x1bf015(0x1ca,0x242)]('\x22type\x22')&&_0x19fab7[_0x1bf015(0x2bd,0x242)](_0x274085(0x509,0x52c))&&_0x1cbb7c[_0x1bf015(0x2f6,0x242)](_0x274085(0x5ab,0x647)))return'';return _0x4dc551;}else{const _0x4e5e43=getSharedDb(_0x9a61['db']['path']),{syncClaudeMd:_0x355154}=await import('../claude/'+_0x274085(0x47f,0x3f6));await _0x355154(_0x4e5e43,{'claudeMdPath':_0x340c9f,'projectPath':_0x34e6aa[_0x274085(0x5bf,0x58f)+'h']});const _0x2f808b=performance[_0x274085(0x4c5,0x4f1)](),_0x294ca5=Math['round'](_0x2f808b-_0x16d6f2),_0x37fa6f=Math[_0x274085(0x4ac,0x55e)](_0x2f808b-_0x2cec9f),_0x379e0b=Math[_0x1bf015(0xff,0x13e)](_0x33f64a-_0x16d6f2);process[_0x274085(0x570,0x5fd)][_0x1bf015(0x18d,0x1ef)]('[A2A]\x20Post'+_0x1bf015(0x198,0x1b7)+_0x274085(0x4aa,0x3f7)+_0x274085(0x4c6,0x555)+_0x294ca5+(_0x274085(0x4ed,0x57a)+_0x274085(0x527,0x520))+_0x379e0b+(_0x1bf015(0x27b,0x1d8)+_0x274085(0x4d8,0x4a6))+_0x37fa6f+_0x1bf015(0x156,0x1f9)),_0x40edb7['info'](_0x1bf015(0x253,0x1a4)+'ory\x20file\x20s'+_0x274085(0x572,0x500),{'filePath':_0x340c9f});}}catch(_0xb8c904){if(_0x274085(0x519,0x46b)!==_0x1bf015(0x11f,0x1ab)){const _0x13027e=_0x259b34[_0x274085(0x49b,0x51f)]('/')[_0x1bf015(0x1b0,0x238)]()??'';return _0xf45b57[_0x274085(0x4ea,0x453)](_0x1ea20e=>{if(_0x1ea20e[_0x3f58bf(0x32f,0x284)]('*'))return _0x13027e['endsWith'](_0x1ea20e[_0x3f58bf(0x1d9,0x251)](0x1));function _0x4e896a(_0x1d9e53,_0x4654f3){return _0x274085(_0x4654f3- -0x728,_0x1d9e53);}if(_0x1ea20e[_0x4e896a(-0x276,-0x249)]('*'))return _0x13027e[_0x3f58bf(0x231,0x284)](_0x1ea20e[_0x3f58bf(0x24e,0x251)](0x0,-0x1));function _0x3f58bf(_0x361e96,_0x2def7f){return _0x274085(_0x2def7f- -0x289,_0x361e96);}return _0x13027e===_0x1ea20e;});}else _0x40edb7[_0x274085(0x501,0x593)](_0x1bf015(0x11c,0x1a4)+_0x1bf015(0x1bc,0x12e)+_0x274085(0x4fe,0x54d),{'error':_0xb8c904 instanceof Error?_0xb8c904[_0x1bf015(0x17d,0x141)]:String(_0xb8c904)});}return;}const _0x5f30bd=performance[_0x274085(0x4c5,0x578)](),_0x339bdf={'uuid':_0x34e6aa[_0x274085(0x5b8,0x64a)],'type':_0x1bf015(0xf4,0x17e),'message':{'role':_0x274085(0x4ec,0x51d),'content':_0x34e6aa[_0x274085(0x552,0x4c7)]},'timestamp':new Date()[_0x1bf015(0x19c,0x1c2)+'g']()},_0x5e2c88=_0x34e6aa['toolName']===_0x1bf015(0x158,0x191),_0x17f4c4=_0x340c9f?isConfigFile(_0x340c9f):![],_0x110731=detectActualError(_0x34e6aa[_0x1bf015(0x268,0x1e4)],_0x34e6aa[_0x274085(0x5d2,0x532)]);let _0x386c6c;if(_0x34e6aa['toolName']===_0x274085(0x59d,0x5fb)&&_0x34e6aa[_0x1bf015(0x2f4,0x264)])try{const _0x104df9=typeof _0x34e6aa[_0x274085(0x5d2,0x58a)]===_0x1bf015(0xf3,0x14d)?JSON[_0x274085(0x517,0x526)](_0x34e6aa['toolInput']):_0x34e6aa[_0x274085(0x5d2,0x53a)];_0x386c6c=_0x104df9?.[_0x1bf015(0x241,0x223)]??_0x104df9?.[_0x274085(0x4b5,0x513)]??(typeof _0x104df9===_0x1bf015(0x100,0x14d)?_0x104df9:undefined);}catch{_0x386c6c=typeof _0x34e6aa['toolInput']==='string'?_0x34e6aa[_0x274085(0x5d2,0x59a)]:undefined;}const _0x3d84cf=scoreSignificance(_0x339bdf,{'toolName':_0x34e6aa[_0x274085(0x499,0x47f)],'isNewFile':_0x5e2c88,'isConfigChange':_0x17f4c4,'hasError':_0x110731,'bashCommand':_0x386c6c},_0x9a61[_0x1bf015(0x165,0x1ff)+'e'][_0x274085(0x5c1,0x5c6)+_0x274085(0x5d0,0x549)+'d']),_0x2bb822=performance[_0x1bf015(0x1be,0x157)](),_0xd97ca0=_0x9a61[_0x1bf015(0x1fe,0x1ff)+'e'][_0x1bf015(0x1f3,0x253)+'ceThreshol'+'d']*0.5;_0x40edb7[_0x1bf015(0x2a6,0x210)](_0x1bf015(0x163,0x206)+_0x274085(0x560,0x58e),{'toolName':_0x34e6aa['toolName'],'score':_0x3d84cf[_0x274085(0x5dd,0x5f7)],'shouldCapture':_0x3d84cf[_0x1bf015(0x1e7,0x26f)]>=_0xd97ca0});if(_0x3d84cf[_0x274085(0x5dd,0x52a)]<_0xd97ca0)return;const _0x4acbc5=determineCategory(_0x34e6aa,_0x110731),_0x1e4f41=buildContent(_0x34e6aa);if(!_0x1e4f41){_0x40edb7[_0x274085(0x57e,0x577)](_0x274085(0x51b,0x496)+_0x274085(0x58a,0x4dc)+'meaningful'+_0x1bf015(0x253,0x1c5),{'toolName':_0x34e6aa[_0x274085(0x499,0x505)]});return;}const _0x2298b5=filterSensitiveInfo(_0x1e4f41);let _0x4913fb;if(_0x110731){if(_0x1bf015(0x230,0x224)===_0x274085(0x4cd,0x450)){const _0x5d52cb=_0x2c0c20(_0x47cc2b[_0x274085(0x552,0x54a)],0x3);_0x5b98b4[_0x1bf015(0x1f5,0x149)](..._0x5d52cb);}else _0x4913fb=_0x1bf015(0x2cd,0x23c);}else _0x3d84cf['totalScore']<_0x9a61[_0x1bf015(0x166,0x1ff)+'e'][_0x1bf015(0x222,0x253)+_0x1bf015(0x1b4,0x262)+'d']?_0x4913fb=_0x274085(0x52e,0x52f):_0x4913fb=_0x1bf015(0x200,0x256);const _0x380ed2={'content':_0x2298b5['filtered'],'category':_0x4acbc5,'tier':_0x4913fb,'tags':buildTags(_0x34e6aa),'projectPath':_0x34e6aa['projectPat'+'h'],'sessionId':_0x34e6aa[_0x274085(0x5b8,0x57e)],'memoryType':CATEGORY_TYPE_MAP[_0x4acbc5]??_0x1bf015(0x1ba,0x16e)},_0x47377a=getSharedDb(_0x9a61['db']['path']),_0x134bbc=performance['now'](),_0x27dbef=new DedupManager(),_0x696c27=_0x27dbef[_0x274085(0x4b4,0x568)+_0x274085(0x526,0x4dc)](_0x47377a['listMemori'+'es']({'projectPath':_0x34e6aa['projectPat'+'h'],'limit':0x32,'excludeParents':!![]}),_0x4acbc5,_0x34e6aa[_0x1bf015(0x2ae,0x251)+'h']),_0x253267=_0x27dbef['decide'](_0x2298b5[_0x274085(0x5b3,0x5ac)],_0x696c27),_0x481aec=performance['now']();_0x40edb7[_0x274085(0x57e,0x5e4)]('Dedup\x20deci'+'sion',{'action':_0x253267[_0x1bf015(0x2b9,0x21d)],'similarity':_0x253267[_0x274085(0x535,0x59f)]});const _0x472b26=performance[_0x1bf015(0x16d,0x157)]();let _0xec6b2a;try{switch(_0x253267[_0x274085(0x58b,0x54b)]){case _0x1bf015(0x18b,0x115):_0x40edb7[_0x274085(0x57e,0x5d0)]('Memory\x20ski'+_0x274085(0x549,0x569)+_0x274085(0x582,0x623),{'similarity':_0x253267[_0x1bf015(0x196,0x1c7)]});return;case _0x274085(0x510,0x52c):if(_0x253267[_0x274085(0x5de,0x539)+'ry']){const _0x1d5ae4=_0x27dbef[_0x274085(0x502,0x4d3)+'nt'](_0x253267[_0x274085(0x5de,0x58e)+'ry'][_0x1bf015(0x1a6,0x148)],_0x2298b5[_0x1bf015(0x21e,0x245)]);if(_0x1d5ae4[_0x274085(0x58f,0x5cd)]){_0xec6b2a=_0x47377a[_0x274085(0x5c2,0x524)+'ry'](_0x380ed2);if(_0x4913fb!==_0x1bf015(0x205,0x1c0)){if(_0x1bf015(0x249,0x265)!==_0x274085(0x52d,0x5ce))_0x47377a[_0x274085(0x47b,0x404)+_0x274085(0x5a3,0x570)](_0xec6b2a['id'],null,_0x274085(0x4e9,0x4bf));else{if(_0x2321c6[_0x274085(0x5c7,0x5cb)]<0xc8)return![];const _0x5c5502=_0x2fe101?.[_0x1bf015(0x16a,0x12b)];if(_0x5c5502==='Read')return![];const _0x2d64ea=_0x3e7df2['toLowerCas'+'e'](),_0x4888a3=[_0x274085(0x4fb,0x538),_0x1bf015(0x204,0x162),_0x1bf015(0x24d,0x1f8),_0x274085(0x553,0x52b),_0x274085(0x495,0x4b9),_0x274085(0x54b,0x52e),'Failed:',_0x1bf015(0x108,0x114),'traceback',_0x274085(0x558,0x4e8)],_0x5ca0cf=_0x4888a3[_0x274085(0x4ea,0x4ef)](_0x91f84b=>_0x12b502[_0x274085(0x5b0,0x527)](_0x91f84b)||_0x2d64ea['includes'](_0x91f84b['toLowerCas'+'e']()));if(!_0x5ca0cf)return![];const _0x680a4d=_0x4ef19d?.[_0x1bf015(0x17e,0x22c)]||_0x4d87c1?.['path']||'';if(_0x680a4d['toLowerCas'+'e']()[_0x274085(0x5b0,0x604)](_0x1bf015(0x156,0x128))&&!_0x4888a3['slice'](0x2)[_0x274085(0x4ea,0x51c)](_0xc32d7f=>_0x2d64ea[_0x1bf015(0x29f,0x242)](_0xc32d7f['toLowerCas'+'e']())))return![];return!![];}}_0x40edb7[_0x274085(0x57e,0x55f)](_0x1bf015(0x223,0x216)+_0x274085(0x4e6,0x550)+'\x20of\x20merge\x20'+_0x1bf015(0x2fe,0x26c)+_0x274085(0x5c9,0x59f),{'targetId':_0x253267[_0x1bf015(0x23f,0x270)+'ry']['id'],'newId':_0xec6b2a['id'],'targetLength':_0x253267[_0x1bf015(0x2fe,0x270)+'ry'][_0x274085(0x4b6,0x54d)][_0x1bf015(0x2dd,0x259)],'wouldBeLength':_0x1d5ae4[_0x1bf015(0x245,0x231)+'gth']});break;}_0x47377a[_0x274085(0x50f,0x48a)+'ry'](_0x253267['targetMemo'+'ry']['id'],{'content':_0x1d5ae4['content'],'tags':[...new Set([..._0x253267[_0x274085(0x5de,0x56a)+'ry']['tags']||[],...buildTags(_0x34e6aa)])]}),_0x40edb7[_0x274085(0x57e,0x53a)](_0x1bf015(0x272,0x20e)+'ated\x20(merg'+'ed)',{'memoryId':_0x253267[_0x1bf015(0x300,0x270)+'ry']['id']});}return;case _0x274085(0x490,0x4ff):{if('Iclyo'===_0x1bf015(0x1ea,0x19e))_0x225190[_0x1bf015(0x187,0x121)+_0x274085(0x4fc,0x47d)](_0x1a8bdd['id'],_0x3de88a,_0x4a76b7[_0x274085(0x499,0x45b)],_0x410272);else{if(_0x253267[_0x274085(0x5de,0x5bb)+'ry']){if(_0x274085(0x4d4,0x460)!=='rYyBy')_0x1e8f35['push'](_0x16d567);else{if(isProtectedFromCleanup(_0x253267[_0x1bf015(0x28a,0x270)+'ry']))_0x40edb7['info'](_0x274085(0x516,0x4b8)+_0x274085(0x53d,0x4ce)+'skipped\x20(p'+_0x274085(0x4f7,0x4da)+'sset)',{'memoryId':_0x253267[_0x1bf015(0x1d1,0x270)+'ry']['id'],'category':_0x253267[_0x1bf015(0x253,0x270)+'ry']['category']});else{if(_0x1bf015(0x112,0x15d)===_0x274085(0x4cb,0x498))_0x47377a[_0x274085(0x50f,0x4bb)+'ry'](_0x253267[_0x274085(0x5de,0x661)+'ry']['id'],{'invalidAt':new Date()[_0x1bf015(0x232,0x1c2)+'g']()}),_0x40edb7[_0x274085(0x57e,0x5b6)](_0x1bf015(0x94,0x138)+_0x274085(0x4a0,0x502)+_0x274085(0x5d9,0x5d7),{'memoryId':_0x253267[_0x1bf015(0x2ca,0x270)+'ry']['id']});else{const _0x48d482=_0x170fa2[_0x1d7885],_0x4de451=typeof _0x48d482==='string'?_0x48d482['slice'](0x0,0x50):_0x12d4e7[_0x1bf015(0x203,0x244)](_0x48d482)[_0x1bf015(0x16c,0x16c)](0x0,0x50);return _0x1152e6+':\x20'+_0x4de451;}}}}_0xec6b2a=_0x47377a[_0x1bf015(0x211,0x254)+'ry'](_0x380ed2);_0x4913fb!==_0x1bf015(0x129,0x1c0)&&_0x47377a[_0x274085(0x47b,0x424)+_0x1bf015(0x281,0x235)](_0xec6b2a['id'],null,_0x1bf015(0x168,0x17b));_0x40edb7[_0x1bf015(0x214,0x210)](_0x1bf015(0x156,0x129)+'tured\x20(aft'+_0x274085(0x53a,0x599),{'category':_0x4acbc5,'memoryId':_0xec6b2a['id']});break;}}case _0x274085(0x4e0,0x53d):default:_0xec6b2a=_0x47377a[_0x274085(0x5c2,0x646)+'ry'](_0x380ed2);_0x4913fb!=='working'&&_0x47377a[_0x1bf015(0x171,0x10d)+'tus'](_0xec6b2a['id'],null,_0x274085(0x4e9,0x543));_0x40edb7[_0x1bf015(0x29b,0x210)](_0x1bf015(0x90,0x129)+_0x274085(0x565,0x5c4),{'category':_0x4acbc5,'memoryId':_0xec6b2a['id']});break;}}catch(_0x4c0ada){const _0xba8b74=_0x4c0ada instanceof Error?_0x4c0ada:new Error(String(_0x4c0ada));_0x40edb7['error']('Memory\x20cre'+_0x274085(0x49e,0x427)+'ed',_0xba8b74,{'category':_0x4acbc5});}const _0x302cc9=performance[_0x274085(0x4c5,0x417)]();if(_0xec6b2a&&_0x9a61[_0x274085(0x500,0x54d)]?.[_0x274085(0x48d,0x3eb)]&&_0x9a61['embedding'][_0x274085(0x5ba,0x5a1)]===_0x274085(0x4b8,0x4f4))try{const {createEmbeddingProvider:_0x5c8e44}=await import(_0x274085(0x5dc,0x5b3)+_0x1bf015(0x15c,0x11c)+'s'),_0x5a8950=_0x5c8e44(_0x9a61[_0x274085(0x500,0x572)],_0x9a61[_0x1bf015(0xbb,0x10c)]),_0x48380e=await Promise['resolve'](_0x5a8950[_0x274085(0x528,0x479)](_0xec6b2a['content']));Array['isArray'](_0x48380e)&&_0x47377a[_0x274085(0x4c9,0x575)+_0x274085(0x4f0,0x477)](_0xec6b2a['id'],_0x48380e);}catch(_0x19cb24){_0x40edb7[_0x274085(0x501,0x528)](_0x1bf015(0x231,0x219)+_0x274085(0x511,0x5a1),{'error':_0x19cb24 instanceof Error?_0x19cb24[_0x1bf015(0xa7,0x141)]:String(_0x19cb24)});}try{if(_0x274085(0x505,0x47c)!=='Ontcv')_0x4d776d[_0x1bf015(0x171,0x193)](_0x274085(0x4e4,0x512)+'failed',{'error':_0x4fb8ff instanceof _0x453897?_0x3faa2d[_0x1bf015(0xba,0x141)]:_0x419de4(_0x4a4660)});else{const _0x51f502=_0x47377a[_0x1bf015(0x264,0x24b)+'njection'](_0x34e6aa[_0x1bf015(0x276,0x24a)]);if(_0x51f502&&_0x51f502[_0x274085(0x5d8,0x569)+_0x274085(0x58c,0x5d3)]){const _0x3640a6=(_0x34e6aa[_0x1bf015(0x19f,0x12b)]+'\x20'+JSON[_0x274085(0x5b2,0x546)](_0x34e6aa[_0x274085(0x5d2,0x61b)])+'\x20'+String(_0x34e6aa[_0x1bf015(0x20b,0x1e4)]))[_0x1bf015(0x225,0x22a)+'e'](),{parseInjectedKeywords:_0x5f5ce9}=await import(_0x1bf015(0x1e4,0x234)+'s'),_0x5ba0ce=_0x5f5ce9(_0x51f502[_0x274085(0x5d8,0x56d)+_0x1bf015(0x27c,0x21e)]);let _0x16c496=[],_0x56e9ae=[];if(_0x5ba0ce['isMap']){for(const [_0x4b60ef,_0x412009]of Object[_0x1bf015(0x17e,0x1c8)](_0x5ba0ce[_0x1bf015(0x20a,0x17d)])){if(_0x274085(0x56f,0x5ea)!==_0x274085(0x56f,0x578)){const _0x28f2a6=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x274085(0x586,0x5b4)](_0x56397f[_0x274085(0x552,0x501)]);if(_0x28f2a6)return _0x1bf015(0x25e,0x1aa);const _0x4c7405=[_0x274085(0x50a,0x579),_0x1bf015(0x239,0x1a6),_0x274085(0x594,0x59e),_0x1bf015(0x196,0x188),_0x274085(0x487,0x42e),'went\x20with'];if(_0x4c7405[_0x274085(0x4ea,0x4a7)](_0x482e9e=>_0x35722a[_0x274085(0x5b0,0x663)](_0x482e9e)))return _0x274085(0x5d5,0x56d);const _0x5ecc5f=[_0x1bf015(0x209,0x240),_0x1bf015(0x204,0x211),_0x274085(0x597,0x562),'rule',_0x274085(0x551,0x53a),'best\x20pract'+_0x1bf015(0x1ef,0x252)];if(_0x5ecc5f['some'](_0x5dbf8f=>_0x19d962[_0x1bf015(0x21e,0x242)](_0x5dbf8f)))return _0x274085(0x5ae,0x662);if(_0x112ec1[_0x1bf015(0x195,0x218)](_0x361d55))return _0x1bf015(0xfd,0x145);}else{const _0x3a8384=_0x412009[_0x274085(0x5d6,0x610)](_0x5dd7ae=>_0x3640a6[_0x274085(0x5b0,0x60d)](_0x5dd7ae));_0x3a8384['length']>0x0&&(_0x16c496['push'](..._0x3a8384),_0x56e9ae[_0x274085(0x4b7,0x51a)](_0x4b60ef));}}_0x16c496=[...new Set(_0x16c496)],_0x56e9ae=[...new Set(_0x56e9ae)];}else _0x16c496=_0x5ba0ce[_0x1bf015(0x191,0x12c)][_0x274085(0x5d6,0x5ac)](_0x269d36=>_0x3640a6[_0x1bf015(0x1d2,0x242)](_0x269d36));_0x16c496['length']>0x0&&_0x47377a[_0x274085(0x48f,0x487)+_0x274085(0x4fc,0x4ce)](_0x51f502['id'],_0x16c496,_0x34e6aa[_0x1bf015(0x15d,0x12b)],_0x56e9ae);}}}catch{}if(_0xec6b2a&&(_0x253267[_0x1bf015(0x24b,0x21d)]===_0x1bf015(0x1ed,0x172)||_0x253267['action']===_0x274085(0x490,0x4c7)))try{_0x47377a[_0x274085(0x47e,0x47a)+_0x1bf015(0x1c2,0x1fa)]({'memoryId':_0xec6b2a['id'],'sessionId':_0x34e6aa[_0x274085(0x5b8,0x637)],'significanceScore':_0x3d84cf[_0x1bf015(0x306,0x26f)],'dedupAction':_0x253267['action'],'tier':_0x4913fb});}catch{}if(_0xec6b2a&&_0xec6b2a['embedding']&&_0x9a61['skillConve'+_0x1bf015(0x1c1,0x136)]?.['enabled'])try{const {SkillEvaluator:_0x521706}=await import('../skill/e'+_0x1bf015(0x13c,0x1d6)+'s'),_0x100e73=new _0x521706(_0x47377a,_0x9a61),_0x163260=_0x100e73[_0x274085(0x56e,0x4f9)+'Skill'](_0xec6b2a);_0x163260[_0x274085(0x4d7,0x4b9)]&&_0x40edb7['info'](_0x274085(0x4f1,0x576)+'orbed\x20into'+_0x274085(0x4e1,0x49d),{'memoryId':_0xec6b2a['id'],'skillId':_0x163260[_0x274085(0x51e,0x5a8)]});}catch{}const _0x19a755=performance['now']();let _0x373acb=0x0;const _0x24bede=_0x9a61['frozenSnap'+_0x274085(0x5d7,0x626)]?.[_0x274085(0x48d,0x527)]!==![]&&_0x9a61[_0x1bf015(0x28b,0x1e8)+'shot']?.[_0x1bf015(0x1d7,0x180)+_0x274085(0x50b,0x487)]!==!![];if(_0x9a61['autoSync']?.['enabled']&&_0x9a61[_0x1bf015(0xc8,0x14f)]?.['apiKey']&&!_0x24bede){if('OpkAT'!==_0x274085(0x479,0x442))_0xced364=_0x1a14d8[_0x274085(0x49a,0x3ef)][_0x1bf015(0x1ec,0x268)](_0x18c7d5=>_0x36b1d6[_0x274085(0x5b0,0x614)](_0x18c7d5));else{try{const _0x421a4c=_0x47377a[_0x1bf015(0x16d,0x1d1)+_0x1bf015(0x1e7,0x1d5)]();if(_0x421a4c>=AUTO_SYNC_THRESHOLD){const _0x5dbb5c=createHookClient(_0x9a61);if(_0x5dbb5c){const _0x117edb=new SyncQueue(_0x47377a,_0x5dbb5c),_0x18b039=await _0x117edb[_0x1bf015(0x201,0x15c)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});if(_0x18b039[_0x274085(0x563,0x5e4)]>0x0){if(_0x274085(0x54f,0x512)!==_0x274085(0x54f,0x566)){_0x4cc56b[_0x1bf015(0x1dc,0x210)]('Sensitive\x20'+_0x1bf015(0x136,0x19a)+'ded',{'filePath':_0x3ecb9e});return;}else _0x40edb7[_0x274085(0x57e,0x5a8)](_0x1bf015(0xe5,0x176)+_0x1bf015(0x20c,0x1f5),{'pushed':_0x18b039['pushed'],'pending':_0x421a4c}),console[_0x1bf015(0x154,0x128)](_0x274085(0x4db,0x54b)+'-synced\x20'+_0x18b039[_0x274085(0x563,0x538)]+_0x1bf015(0xc2,0x15a));}}}}catch(_0x44dca4){_0x40edb7[_0x274085(0x501,0x479)](_0x274085(0x4e4,0x4e6)+_0x1bf015(0x1bd,0x1a3),{'error':_0x44dca4 instanceof Error?_0x44dca4[_0x274085(0x4af,0x4e0)]:String(_0x44dca4)});}_0x373acb=Math['round'](performance[_0x274085(0x4c5,0x540)]()-_0x19a755);}}else _0x9a61[_0x1bf015(0x195,0x13f)]?.['enabled']&&_0x9a61['server']?.[_0x274085(0x589,0x564)]&&_0x24bede&&_0x40edb7['debug'](_0x1bf015(0x246,0x1ce)+'pshot\x20mode'+_0x274085(0x540,0x566)+_0x1bf015(0x2b3,0x20d)+_0x274085(0x55c,0x4b3)+_0x1bf015(0x1f6,0x1e6)+_0x1bf015(0x1d6,0x250));const _0x29ab7d=Math[_0x274085(0x4ac,0x508)](performance['now']()-_0x16d6f2),_0x59b606=Math[_0x1bf015(0x15a,0x13e)](_0x33f64a-_0x16d6f2),_0x4ad82e=Math['round'](_0x2bb822-_0x5f30bd),_0x4475f9=Math['round'](_0x481aec-_0x134bbc),_0x390454=Math['round'](_0x302cc9-_0x472b26),_0x194f25=_0x373acb>0x0?',\x20sync:\x20'+_0x373acb+'ms':'';process['stderr'][_0x1bf015(0x1fb,0x1ef)](_0x1bf015(0x218,0x1dc)+_0x274085(0x525,0x500)+_0x1bf015(0xab,0x13c)+_0x1bf015(0x1fd,0x158)+_0x29ab7d+(_0x274085(0x4ed,0x58e)+'g:\x20')+_0x59b606+(_0x274085(0x4cf,0x555)+_0x274085(0x47c,0x460))+_0x4ad82e+('ms,\x20dedup:'+'\x20')+_0x4475f9+_0x1bf015(0xfb,0x187)+_0x390454+'ms'+_0x194f25+')\x0a'),_0x40edb7['info']('Hook\x20compl'+_0x274085(0x5db,0x590),{'durationMs':_0x29ab7d});}finally{_0x40edb7[_0x274085(0x4ca,0x44b)]();}}function extractFilePath(_0x3f92a6){let _0x3ff539=_0x3f92a6;if(typeof _0x3ff539===_0x5cf3db(0x95,0x66))try{if(_0x1c0bce(-0x1a2,-0x20d)===_0x5cf3db(0x13b,0x8d))_0x3ff539=JSON[_0x1c0bce(-0x179,-0x1d8)](_0x3ff539);else{const _0x42468f=_0x40dca(_0x197a75[_0x1c0bce(-0xb0,-0x11d)]),_0x345ae8=_0x1f29a4['toolResult'];if(_0x42468f&&(_0x42468f[_0x5cf3db(0x187,0x15b)]('/test/')||_0x42468f[_0x1c0bce(-0xf7,-0x13f)](_0x1c0bce(-0x281,-0x257))))return _0x5cf3db(0x18,0xc3);if(_0x345ae8[_0x5cf3db(0x125,0x172)]<0x32||_0x345ae8['toLowerCas'+'e']()[_0x1c0bce(-0xcf,-0x13f)](_0x1c0bce(-0x115,-0x133)+'en\x20success'+_0x5cf3db(0x5f,0xfb))||_0x345ae8[_0x5cf3db(0x1ea,0x143)+'e']()[_0x5cf3db(0x11a,0x15b)](_0x1c0bce(-0x16c,-0x195)+'ed')||_0x345ae8[_0x1c0bce(-0x1ee,-0x157)+'e']()[_0x1c0bce(-0x187,-0x13f)](_0x1c0bce(-0x187,-0x198)+_0x5cf3db(0x95,0xe2)))return _0x1c0bce(-0x14e,-0x1d7);if(_0x394ec8['test'](_0x345ae8))return _0x5cf3db(0xda,0x5e);return _0x1c0bce(-0x15e,-0x12c)+'rn';}}catch{return null;}function _0x1c0bce(_0x2cf07b,_0x56b147){return _0x1be466(_0x2cf07b,_0x56b147- -0x67);}if(typeof _0x3ff539==='object'&&_0x3ff539!==null){if(typeof _0x3ff539[_0x1c0bce(-0x186,-0x155)]===_0x5cf3db(-0x4c,0x66))return _0x3ff539[_0x5cf3db(0x172,0x145)];if(typeof _0x3ff539['path']==='string')return _0x3ff539[_0x1c0bce(-0x275,-0x216)];}function _0x5cf3db(_0x2df7e6,_0x17cac1){return _0x1be466(_0x2df7e6,_0x17cac1-0x233);}return null;}function _0x5ee131(_0x42d632,_0x389042){return _0x25c5(_0x389042- -0x318,_0x42d632);}function isSensitiveFile(_0x5d25e7,_0x2d3f3b){const _0x2b6a9a=_0x5d25e7['split']('/')[_0x43572e(0x2c7,0x2c5)]()??'';function _0x43572e(_0x4f0674,_0x1547a7){return _0x1be466(_0x4f0674,_0x1547a7-0x3a7);}function _0x2f9a23(_0x314bd0,_0x54c452){return _0x1be466(_0x314bd0,_0x54c452-0x3be);}return _0x2d3f3b[_0x2f9a23(0x1f9,0x220)](_0x41d5c3=>{function _0x4ce7b9(_0x236fd8,_0x17fa38){return _0x43572e(_0x17fa38,_0x236fd8- -0x1a4);}function _0x273f9b(_0xbdf7d,_0x148be8){return _0x43572e(_0x148be8,_0xbdf7d- -0x210);}if(_0x4ce7b9(0x4c,0xbe)!=='ajcjh'){const _0x24154b=_0x2f174b instanceof _0x29d993?_0x2c4271:new _0x1a248c(_0x228250(_0x28149d));_0x487494[_0x4ce7b9(0x11,-0x95)](_0x273f9b(-0x6b,-0xbb)+_0x4ce7b9(0x19,0xbb)+'ed',_0x24154b,{'category':_0x1e698e});}else{if(_0x41d5c3[_0x273f9b(0x1c,0xd)]('*'))return _0x2b6a9a['endsWith'](_0x41d5c3['slice'](0x1));if(_0x41d5c3[_0x273f9b(-0x12,-0x38)]('*'))return _0x2b6a9a[_0x273f9b(0x1c,-0x21)](_0x41d5c3[_0x4ce7b9(0x55,0x68)](0x0,-0x1));return _0x2b6a9a===_0x41d5c3;}});}function isConfigFile(_0x21ae9d){function _0x15c5c9(_0x549eb9,_0x489243){return _0x5ee131(_0x489243,_0x549eb9-0x5be);}const _0x4061ea=['.json',_0x4564d3(0x41c,0x404),_0x4564d3(0x3de,0x3e8),_0x4564d3(0x42f,0x45d),'.env',_0x15c5c9(0x3f9,0x42f),_0x15c5c9(0x37c,0x2fc)];function _0x4564d3(_0x43db8c,_0x145c03){return _0x5ee131(_0x43db8c,_0x145c03-0x5ca);}return _0x4061ea['some'](_0x7f9536=>_0x21ae9d[_0x15c5c9(0x3ad,0x317)](_0x7f9536));}function detectActualError(_0x5e6b9c,_0x547b76){function _0x2d412d(_0x5082fd,_0x50c2f7){return _0x5ee131(_0x5082fd,_0x50c2f7-0x45);}if(_0x5e6b9c['length']<0xc8)return![];const _0x2604d9=_0x547b76?.[_0x5367cc(0x318,0x2d0)];if(_0x2604d9==='Read')return![];const _0xff3ad4=_0x5e6b9c[_0x5367cc(0x417,0x441)+'e'](),_0x100bf8=['error:',_0x5367cc(0x34f,0x29d),_0x2d412d(-0xad,-0x145),_0x2d412d(-0x202,-0x158),_0x2d412d(-0x24f,-0x216),_0x2d412d(-0x10e,-0x160),_0x2d412d(-0x102,-0xe1),'FAILED','traceback',_0x5367cc(0x3d7,0x36b)],_0x17fca9=_0x100bf8[_0x5367cc(0x369,0x3b2)](_0x568afe=>_0x5e6b9c['includes'](_0x568afe)||_0xff3ad4[_0x2d412d(-0x4a,-0xfb)](_0x568afe[_0x2d412d(-0x15d,-0x113)+'e']()));if(!_0x17fca9)return![];const _0x7f232b=_0x547b76?.[_0x2d412d(-0x65,-0x111)]||_0x547b76?.['path']||'';if(_0x7f232b[_0x5367cc(0x417,0x44b)+'e']()[_0x5367cc(0x42f,0x39c)](_0x2d412d(-0x224,-0x215))&&!_0x100bf8[_0x2d412d(-0x151,-0x1d1)](0x2)[_0x2d412d(-0x246,-0x1c1)](_0xe8cc75=>_0xff3ad4[_0x2d412d(-0xf0,-0xfb)](_0xe8cc75[_0x5367cc(0x417,0x3e3)+'e']())))return![];function _0x5367cc(_0x23d808,_0x4f10db){return _0x5ee131(_0x4f10db,_0x23d808-0x56f);}return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x25e263,_0x5cc259){if(_0x5cc259)return _0x428ba6(-0x92,-0x127)+_0x58bea5(0x315,0x374);const _0x2f6259=_0x25e263[_0x58bea5(0x372,0x2f8)][_0x58bea5(0x2b8,0x33e)+'e'](),_0x5c0787=_0x25e263['toolResult'];function _0x428ba6(_0x4022c4,_0x2485cd){return _0x1be466(_0x4022c4,_0x2485cd-0x2f);}if(_0x25e263[_0x58bea5(0x2b5,0x23f)]===_0x58bea5(0x386,0x343)){const _0x566be5=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x58bea5(0x3da,0x32c)](_0x25e263[_0x58bea5(0x348,0x2f8)]);if(_0x566be5)return _0x58bea5(0x2f5,0x2be);const _0x2ffeb2=[_0x58bea5(0x2d7,0x2b0),'decided','opted\x20for',_0x428ba6(-0xc2,-0x163),_0x58bea5(0x1b5,0x22d),_0x428ba6(-0x11e,-0xd1)];if(_0x2ffeb2[_0x58bea5(0x2cb,0x290)](_0x2a6b7f=>_0x2f6259['includes'](_0x2a6b7f)))return _0x58bea5(0x418,0x37b);const _0x1d124a=[_0x428ba6(-0xb0,-0xab),'standard',_0x428ba6(-0x16a,-0xc2),'rule',_0x58bea5(0x360,0x2f7),_0x58bea5(0x386,0x2ee)+'ice'];if(_0x1d124a[_0x58bea5(0x2f6,0x290)](_0x530ab0=>_0x2f6259[_0x428ba6(-0xf5,-0xa9)](_0x530ab0)))return _0x58bea5(0x3d7,0x354);if(LEARNING_KEYWORDS_RE['test'](_0x5c0787)){if(_0x58bea5(0x226,0x27b)===_0x428ba6(-0x7b,-0xed)){if(typeof _0x3c5c39[_0x58bea5(0x2d8,0x340)]===_0x58bea5(0x2ca,0x261))return _0x245434['file_path'];if(typeof _0x129381[_0x58bea5(0x237,0x27f)]===_0x58bea5(0x272,0x261))return _0x8f4200[_0x58bea5(0x287,0x27f)];}else return _0x428ba6(-0x244,-0x1a6);}}if(_0x25e263[_0x58bea5(0x239,0x23f)]===_0x428ba6(-0x7a,-0xfe)||_0x25e263[_0x58bea5(0x1c6,0x23f)]===_0x428ba6(-0xc9,-0x12d)||_0x25e263[_0x428ba6(-0x26d,-0x1c0)]==='Glob'){if(_0x58bea5(0x274,0x29a)==='IEaEs')return _0x58bea5(0x226,0x2be);else _0x2abb4e['setSyncSta'+_0x428ba6(-0x5a,-0xb6)](_0x178854['id'],null,_0x58bea5(0x33c,0x28f));}if(_0x25e263['toolName']==='Write'||_0x25e263[_0x58bea5(0x2de,0x23f)]===_0x58bea5(0x1ec,0x284)){const _0x1e42e6=extractFilePath(_0x25e263[_0x58bea5(0x406,0x378)]),_0x403e8d=_0x25e263[_0x428ba6(-0xc8,-0x107)];if(_0x1e42e6&&(_0x1e42e6['includes'](_0x428ba6(-0x5d,-0xc9))||_0x1e42e6[_0x58bea5(0x2de,0x356)](_0x428ba6(-0x1b0,-0x1c1))))return'context';if(_0x403e8d[_0x58bea5(0x3dd,0x36d)]<0x32||_0x403e8d[_0x428ba6(-0x107,-0xc1)+'e']()[_0x428ba6(-0x96,-0xa9)]('file\x20writt'+_0x428ba6(-0x12c,-0x121)+_0x58bea5(0x2c7,0x2f6))||_0x403e8d[_0x58bea5(0x2ab,0x33e)+'e']()[_0x428ba6(-0x47,-0xa9)]('file\x20creat'+'ed')||_0x403e8d[_0x58bea5(0x34c,0x33e)+'e']()[_0x58bea5(0x3a5,0x356)](_0x58bea5(0x3a9,0x2fd)+'ccessfully')){if(_0x428ba6(-0x13f,-0x13f)!==_0x428ba6(-0x1bf,-0x176))return _0x428ba6(-0x139,-0x141);else _0x1dd738=_0x30827c(_0x5cda1f);}if(LEARNING_KEYWORDS_RE[_0x58bea5(0x28a,0x32c)](_0x403e8d))return _0x58bea5(0x2ad,0x259);return _0x58bea5(0x372,0x369)+'rn';}function _0x58bea5(_0x1ebd1e,_0x4c0db7){return _0x1be466(_0x1ebd1e,_0x4c0db7-0x42e);}return _0x428ba6(-0x15e,-0x141);}export function buildContent(_0x1de418){const _0x1fd0bb=extractFilePath(_0x1de418['toolInput']);let _0x17f4a1=_0x1de418[_0x42b814(-0x1c,0x24)][_0x42b814(-0x94,-0x79)](0x0,0x5dc)[_0x42b814(0x43,-0x1b)]();function _0x42b814(_0x19231f,_0x1ef0bc){return _0x1be466(_0x1ef0bc,_0x19231f-0x11a);}(_0x1de418['toolName']===_0x42b814(-0x90,-0x132)||_0x1de418['toolName']===_0x42b814(-0x6f,-0x3c))&&_0x17f4a1[_0x435036(0x1af,0x15c)]('{')&&(_0x17f4a1=stripDiffContent(_0x17f4a1));_0x1de418[_0x435036(0x82,0xe8)]===_0x435036(0x193,0x1ec)&&_0x17f4a1[_0x42b814(-0x61,0x45)]('{')&&(_0x17f4a1=extractBashContent(_0x17f4a1));_0x17f4a1[_0x42b814(0x59,-0x1c)]>0x1f4&&(_0x17f4a1[_0x435036(0xeb,0x15c)]('{')||_0x17f4a1['startsWith']('['))&&(_0x17f4a1=summarizeJsonResult(_0x17f4a1));_0x17f4a1=_0x17f4a1[_0x42b814(-0x94,-0xed)](0x0,0x3e8)[_0x435036(0x25b,0x200)]();if(!_0x17f4a1||isNoiseResult(_0x17f4a1))return'';const _0x338263=[];if(_0x1fd0bb)_0x338263[_0x435036(0x1b6,0x106)](_0x42b814(-0xed,-0xce)+_0x1fd0bb);_0x338263[_0x42b814(-0xb7,-0x6d)](_0x17f4a1);const _0xd18ec9=_0x338263[_0x42b814(-0x22,0x7f)]('\x0a');function _0x435036(_0x411da9,_0x58f3fd){return _0x1be466(_0x411da9,_0x58f3fd-0x2d7);}if(_0xd18ec9[_0x435036(0x192,0x216)]<0x14)return'';return _0xd18ec9;}function stripDiffContent(_0x521ac1){function _0x30f429(_0x1ad423,_0x288eeb){return _0x5ee131(_0x288eeb,_0x1ad423-0x15c);}function _0x1266db(_0x53df86,_0x15b46f){return _0x5ee131(_0x53df86,_0x15b46f-0x54f);}try{const _0x5ed21c=JSON[_0x1266db(0x341,0x376)](_0x521ac1);if(_0x5ed21c[_0x1266db(0x33d,0x374)]||_0x5ed21c[_0x1266db(0x373,0x398)]||_0x5ed21c[_0x30f429(-0xc6,-0xf0)+_0x1266db(0x493,0x3ff)]||_0x5ed21c[_0x1266db(0x3d1,0x3d7)]&&_0x5ed21c[_0x1266db(0x46a,0x41a)]&&typeof _0x5ed21c['content']===_0x30f429(-0xd9,-0xc4))return'';return _0x521ac1;}catch{if(_0x521ac1['includes'](_0x1266db(0x318,0x3ca)+'\x22')||_0x521ac1[_0x30f429(0x1c,0x1e)](_0x1266db(0x381,0x42e)+'\x22')||_0x521ac1['includes']('\x22structure'+_0x30f429(-0x8e,-0x28))||_0x521ac1[_0x1266db(0x3ee,0x40f)](_0x30f429(-0x10f,-0x156))&&_0x521ac1[_0x1266db(0x3cc,0x40f)](_0x1266db(0x2fa,0x368))&&_0x521ac1[_0x1266db(0x3c2,0x40f)](_0x30f429(0x17,-0x53))){if(_0x30f429(-0x36,-0xcc)!=='HJaFR')_0x3f3d6a['setSyncSta'+'tus'](_0x26eb56['id'],null,_0x1266db(0x2fb,0x348));else return'';}return _0x521ac1;}}function extractBashContent(_0x5dd995){function _0x1d7386(_0x30ba6f,_0x39460b){return _0x5ee131(_0x39460b,_0x30ba6f-0x700);}function _0x1d94a4(_0x2aa60e,_0x115b73){return _0x5ee131(_0x2aa60e,_0x115b73- -0x29);}try{const _0x534632=JSON[_0x1d94a4(-0x185,-0x202)](_0x5dd995),_0x1c60b3=(_0x534632[_0x1d94a4(-0x1e0,-0x1c4)]||'')[_0x1d94a4(-0x210,-0x168)](),_0x2621e4=(_0x534632[_0x1d94a4(-0x197,-0x1a9)]||'')[_0x1d94a4(-0x196,-0x168)]();if(_0x2621e4&&_0x2621e4[_0x1d7386(0x5d7,0x5ff)]>0xa)return _0x1d7386(0x517,0x568)+_0x2621e4[_0x1d7386(0x4ea,0x460)](0x0,0x1f4)+(_0x1c60b3?'\x0a[Output]\x20'+_0x1c60b3['slice'](0x0,0x12c):'');if(_0x1c60b3){if('cexmV'===_0x1d7386(0x4c2,0x4b1))return _0x1c60b3[_0x1d7386(0x4ea,0x557)](0x0,0x3e8);else{for(const [_0x380fc2,_0x2d0f06]of _0x4c8b20[_0x1d94a4(-0x15a,-0x1e3)](_0x19262c['keywordMap'])){const _0x41550f=_0x2d0f06['filter'](_0x5c877d=>_0x2d7b3e[_0x1d94a4(-0x1b7,-0x169)](_0x5c877d));_0x41550f[_0x1d7386(0x5d7,0x5b2)]>0x0&&(_0x3edc59[_0x1d7386(0x4c7,0x451)](..._0x41550f),_0x56fefb['push'](_0x380fc2));}_0x4c9132=[...new _0x16edfd(_0x278924)],_0x489f48=[...new _0x2987fa(_0x3bb0e5)];}}return _0x5dd995[_0x1d7386(0x4ea,0x485)](0x0,0x1f4);}catch{return _0x5dd995['slice'](0x0,0x3e8);}}function summarizeJsonResult(_0x352261){function _0x1f7599(_0x5e66c1,_0x127182){return _0x5ee131(_0x5e66c1,_0x127182-0x4c1);}function _0x1c02a3(_0x198fd1,_0x146247){return _0x5ee131(_0x146247,_0x198fd1-0xde);}try{const _0x103eb8=JSON[_0x1f7599(0x391,0x2e8)](_0x352261);if(Array['isArray'](_0x103eb8))return _0x1c02a3(-0x77,-0x111)+_0x103eb8['length']+_0x1f7599(0x27b,0x272)+JSON['stringify'](_0x103eb8[0x0])[_0x1c02a3(-0x138,-0xfc)](0x0,0xc8)+_0x1c02a3(-0x13c,-0x1dc);const _0x4f1a3c=Object[_0x1f7599(0x280,0x290)](_0x103eb8)[_0x1c02a3(-0x138,-0x12b)](0x0,0xa),_0xa5ee2a=_0x4f1a3c[_0x1c02a3(-0x9f,-0x11a)](_0x461753=>{function _0x171045(_0x21a380,_0x3473a1){return _0x1f7599(_0x3473a1,_0x21a380- -0xed);}function _0x4fe116(_0x89ec00,_0xdd5ce2){return _0x1f7599(_0xdd5ce2,_0x89ec00- -0x38f);}if(_0x4fe116(-0x7c,-0x16)===_0x171045(0x226,0x1bf)){const _0x26f91e=_0x103eb8[_0x461753],_0x13f9f0=typeof _0x26f91e===_0x171045(0x19f,0x1a3)?_0x26f91e[_0x4fe116(-0xe4,-0x10a)](0x0,0x50):JSON[_0x4fe116(-0xc,0x7b)](_0x26f91e)['slice'](0x0,0x50);return _0x461753+':\x20'+_0x13f9f0;}else return _0x4fe116(0x17,-0x45);})['join'](',\x20');return _0xa5ee2a['slice'](0x0,0x320);}catch{return _0x352261[_0x1f7599(0x24d,0x2ab)](0x0,0x1f4);}}function isNoiseResult(_0xe2f5f2){const _0x17c122=_0xe2f5f2[_0x4c767b(0x5a1,0x582)]();if(_0x17c122[_0x2d23b9(0x5,-0x2b)]('{\x22stdout\x22:'))return!![];if(_0x17c122[_0x4c767b(0x4fd,0x50f)](_0x4c767b(0x492,0x4b1)+'\x22')||_0x17c122[_0x2d23b9(0x1,-0x2b)](_0x4c767b(0x4b0,0x55e)+'h\x22'))return!![];if(_0x17c122[_0x2d23b9(0xa,0x78)](_0x2d23b9(-0xdf,-0x35)+_0x2d23b9(0x80,0x31)))return!![];if(_0x17c122[_0x4c767b(0x4fd,0x47c)](_0x2d23b9(-0x33,0x48)+_0x4c767b(0x512,0x516))||_0x17c122[_0x2d23b9(0x6c,-0x2b)](_0x2d23b9(-0xea,-0xb0)+'ime:'))return!![];if(_0x17c122[_0x4c767b(0x4fd,0x4ce)](_0x2d23b9(-0xe6,-0x88))||_0x17c122['startsWith']('http:404'))return!![];if(_0x17c122[_0x4c767b(0x4fd,0x478)](_0x4c767b(0x46d,0x4c4)+_0x2d23b9(-0x36,-0x7e)))return!![];function _0x2d23b9(_0x34d2d0,_0x4e52b2){return _0x1be466(_0x34d2d0,_0x4e52b2-0x150);}const _0x248c47=_0x17c122[_0x2d23b9(0x41,-0x5e)](0x0,0xc8);function _0x4c767b(_0x45301a,_0x4d3380){return _0x1be466(_0x4d3380,_0x45301a-0x678);}if(_0x248c47[_0x2d23b9(0x10c,0x78)](_0x4c767b(0x53d,0x5ca)+_0x4c767b(0x57d,0x4e2))&&_0x248c47[_0x4c767b(0x5a0,0x634)]('\x22uptime_se'+_0x2d23b9(0xef,0x3d)))return!![];const _0x316233=_0x17c122[_0x2d23b9(-0x5e,-0x9d)]('\x0a',0x1)[0x0],_0x3837cb=[/브랜치로\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(_0x3837cb[_0x2d23b9(-0x8a,-0x4e)](_0x46b23d=>_0x46b23d[_0x4c767b(0x576,0x547)](_0x316233)))return!![];const _0x2df731=[/^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 _0x2df731['some'](_0x3646e8=>_0x3646e8[_0x4c767b(0x576,0x5b5)](_0x17c122));}const TAG_BLOCKLIST=new Set(['id',_0x5ee131(-0x1ae,-0x253),_0x1be466(-0x1c2,-0x15f),'get',_0x5ee131(-0xeb,-0x14c),_0x1be466(-0x140,-0xb7),_0x1be466(-0x29c,-0x210),'the','to','in','of','a','is',_0x1be466(-0x12f,-0xea),_0x1be466(-0x12f,-0x1c3),_0x1be466(-0x12d,-0x165),'name','value','map','trim','type',_0x5ee131(-0x1be,-0x176),_0x1be466(-0xa9,-0xdb),'new',_0x5ee131(-0x179,-0x16a),'decision','error_solu'+_0x1be466(-0x9,-0xba),_0x1be466(-0x9c,-0xc5)+'rn','context',_0x1be466(-0x15c,-0xda),_0x1be466(-0x19e,-0x14d),_0x1be466(-0x1f3,-0x1d5),_0x1be466(-0x145,-0x196)+_0x5ee131(-0x227,-0x1f7),_0x1be466(-0x145,-0x189),_0x1be466(-0x150,-0x1aa),_0x5ee131(-0xa8,-0x153),_0x5ee131(-0x15d,-0x195),'Glob',_0x5ee131(-0x26f,-0x1c4),_0x5ee131(-0x23c,-0x24d),_0x1be466(-0x18e,-0x195),_0x5ee131(-0x16e,-0x20b),_0x5ee131(-0x130,-0x193),'edit','bash',_0x5ee131(-0x29f,-0x279),_0x5ee131(-0x286,-0x1dd),_0x1be466(-0xb7,-0xdf),_0x1be466(-0x1da,-0x157),'webfetch',_0x1be466(-0xea,-0xe3)]),STOPWORDS=new Set([_0x1be466(-0x242,-0x1a1),_0x5ee131(-0x20a,-0x177),_0x1be466(-0x167,-0xdc),_0x5ee131(-0x2f0,-0x267),_0x5ee131(-0x2da,-0x22e),_0x1be466(-0x283,-0x208),'have',_0x5ee131(-0x1a9,-0x1f3),_0x1be466(-0x1ac,-0x1c4),_0x1be466(-0x119,-0xf3),_0x1be466(-0x14f,-0x10b),_0x1be466(-0x95,-0xbb),_0x1be466(-0x138,-0xd1),'may',_0x5ee131(-0x24f,-0x1d0),_0x1be466(-0xdb,-0xe1),'can',_0x5ee131(-0x298,-0x213),_0x5ee131(-0x1fe,-0x265),'its',_0x5ee131(-0x16b,-0x152),'from',_0x1be466(-0x18f,-0x147),_0x1be466(-0x141,-0x1e0),'through','during',_0x1be466(-0x12b,-0x18e),'before',_0x1be466(-0xc6,-0xd3),'above',_0x5ee131(-0x107,-0x18f),'each',_0x5ee131(-0x11c,-0x125),_0x1be466(-0x12d,-0xe0),_0x1be466(-0x163,-0x141),_0x1be466(-0x173,-0x16c),'most',_0x5ee131(-0x13a,-0x124),_0x1be466(-0x110,-0x19e),_0x5ee131(-0x1d9,-0x25c),'only','own','same',_0x5ee131(-0x18d,-0x13a),'too',_0x1be466(-0xa1,-0x154),'just',_0x5ee131(-0x295,-0x249),'true',_0x1be466(-0x95,-0x117),_0x5ee131(-0x1ec,-0x1f8),'none',_0x5ee131(-0x248,-0x247),_0x1be466(-0xd9,-0x13a),_0x5ee131(-0x207,-0x21d),_0x5ee131(-0x1fd,-0x1cc),'your',_0x5ee131(-0x235,-0x197),_0x5ee131(-0x23c,-0x1d3),_0x1be466(-0x22b,-0x1f7),_0x5ee131(-0xbd,-0x128),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x28118c,_0x56ef77=0x3){function _0x5e5ad6(_0x457a95,_0x346c5d){return _0x1be466(_0x457a95,_0x346c5d-0x477);}const _0x29e87f=_0x28118c['toLowerCas'+'e'](),_0x47df16=_0x29e87f[_0x5e5ad6(0x34f,0x310)](WORD_RE)||[];function _0x1f7ddc(_0x14d575,_0x534402){return _0x1be466(_0x534402,_0x14d575-0x663);}const _0x2db41c=new Map();for(const _0x372430 of _0x47df16){if(_0x372430[_0x1f7ddc(0x5a2,0x625)]<0x3)continue;if(STOPWORDS[_0x1f7ddc(0x4d8,0x4ea)](_0x372430))continue;if(TAG_BLOCKLIST['has'](_0x372430))continue;_0x2db41c['set'](_0x372430,(_0x2db41c['get'](_0x372430)||0x0)+0x1);}return[..._0x2db41c['entries']()][_0x1f7ddc(0x57c,0x508)]((_0x22e3bb,_0x3db194)=>_0x3db194[0x1]-_0x22e3bb[0x1])[_0x1f7ddc(0x4b5,0x532)](0x0,_0x56ef77)[_0x1f7ddc(0x54e,0x502)](([_0x25d547])=>_0x25d547);}function buildTags(_0x709096){function _0x224543(_0xcf6d81,_0x4364eb){return _0x5ee131(_0xcf6d81,_0x4364eb-0x4d9);}const _0x2717b0=[],_0x38164a=extractFilePath(_0x709096[_0x5a870b(0x3a,0x70)]);if(_0x38164a){const _0x2ff00f=_0x38164a[_0x224543(0x2e4,0x284)]('/')[_0x5a870b(0x42,0x74)](Boolean),_0x453d73=_0x2ff00f[_0x5a870b(-0xf0,-0x88)](-0x3)['filter'](_0x5ef21b=>_0x5ef21b[_0x224543(0x431,0x3b0)]>0x2&&!TAG_BLOCKLIST[_0x5a870b(-0x6f,-0x65)](_0x5ef21b['toLowerCas'+'e']()));for(const _0x223f76 of _0x453d73[_0x224543(0x2c9,0x2c3)](0x0,0x2)){if('yYPFA'===_0x224543(0x2ea,0x2ac)){const _0x28d8c0=_0x223f76['replace'](/\.[^.]+$/,'');_0x28d8c0[_0x224543(0x34f,0x3b0)]>0x2&&!TAG_BLOCKLIST[_0x5a870b(0x35,-0x65)](_0x28d8c0['toLowerCas'+'e']())&&_0x2717b0[_0x5a870b(-0x27,-0xab)](_0x28d8c0);}else return _0x5a870b(-0x82,-0x4a);}const _0x413f27=_0x38164a[_0x5a870b(-0x144,-0xc7)]('.')['pop']();if(_0x413f27){const _0x502627=_0x413f27[_0x5a870b(0xb8,0x36)+'e']();if(!/^\d+$/[_0x5a870b(0x62,0x24)](_0x413f27)&&_0x413f27['length']>0x2&&!TAG_BLOCKLIST[_0x224543(0x298,0x2e6)](_0x502627)){const _0x2b99a8=['md',_0x5a870b(-0xe3,-0xd6),_0x5a870b(-0xad,-0x5e),'yml',_0x5a870b(0xf5,0x72),'xml',_0x224543(0x30d,0x2d1),_0x5a870b(0x35,0x4d)];!_0x2b99a8[_0x224543(0x3f2,0x399)](_0x502627)&&_0x2717b0[_0x224543(0x25d,0x2a0)](_0x413f27);}}}function _0x5a870b(_0x62a3c8,_0x584108){return _0x5ee131(_0x62a3c8,_0x584108-0x18e);}if(_0x2717b0['length']===0x0){const _0x575826=extractKeywords(_0x709096['toolResult'],0x3);_0x2717b0[_0x224543(0x2b0,0x2a0)](..._0x575826);}return _0x2717b0;}export async function main(){const _0x446be8=[];for await(const _0x486bd2 of process['stdin']){if(_0x17a1c6(-0x1e9,-0x230)!==_0x2620d4(-0xcf,-0x151))return _0x17a1c6(-0x2bd,-0x2e7);else _0x446be8[_0x2620d4(-0x220,-0x204)](_0x486bd2);}function _0x17a1c6(_0x59cd93,_0xc860a4){return _0x1be466(_0x59cd93,_0xc860a4- -0x112);}const _0xdd0e6a=Buffer[_0x2620d4(-0xa3,-0xfe)](_0x446be8)['toString'](_0x2620d4(-0x224,-0x210))[_0x2620d4(-0x172,-0x10a)]();function _0x2620d4(_0x3d8b2a,_0xc05637){return _0x1be466(_0x3d8b2a,_0xc05637- -0x33);}!_0xdd0e6a&&process[_0x2620d4(-0x160,-0x1e9)](0x0);try{const _0x423ca4=JSON[_0x2620d4(-0x1e7,-0x1a4)](_0xdd0e6a),_0x15ddf5=normalizeHookInput(_0x423ca4);await handlePostToolUse(_0x15ddf5);}catch(_0x3c3bf8){console[_0x17a1c6(-0x309,-0x304)](_0x17a1c6(-0x29a,-0x219)+'ToolUse\x20er'+_0x2620d4(-0x1a2,-0x20a),_0x3c3bf8 instanceof Error?_0x3c3bf8['message']:_0x3c3bf8),process[_0x17a1c6(-0x246,-0x2c8)](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x1be466(-0x218,-0x1cc)][0x1]?.[_0x1be466(-0x249,-0x1a9)](_0x5ee131(-0x2aa,-0x22f)+_0x5ee131(-0x292,-0x25e))||process[_0x1be466(-0x152,-0x1cc)][0x1]?.[_0x5ee131(-0x255,-0x211)]('post-tool-'+_0x5ee131(-0x125,-0x12a));isMainModule&&main();function _0x5b7b(){const _0x3d0fa7=['DhvYzwq','rvjst1i6','BxmPcG','ywn0Aw9UrxzHBa','CNmV','C3r5EM4','iM9Szfn0CMLUzW','z251uM4','yxv0B0nHChr1CG','ywjZB3jIsw50BW','r3HrugK','C3rKzxjY','zMfSC2u','Ew5Jzwq','BwfW','vg9VBcbLDMfSDq','y29UzhmI','nJqYmtC4ofbwthzdvq','mte0mZbKvNLswLe','DhLWzq','yw5K','zgf0yq','iokaLcbHDxrVlxn5','twvTB3j5ihvWza','D291Bgq','Aw5MBW','C3rHBMrHCMq','zMLYC3rFDxb0Aq','w2eYyv0Gug9ZDa','AwnHDguP','lNrVBwW','twvTB3j5ihnHDG','DhjPz2DLCNm','DgvZDa','rw1IzwrKAw5Nia','D2vUDcb3AxrO','yxbPs2v5','zw1VCNK6ig5Via','ywn0Aw9U','ExDVCMrZ','AgvHBhrOEsi','mtKXndC1mJHKv0rdDu0','Dhj1BMnHDgvK','l3rLC3qV','y29TBwfUza','t2LtquK','ug9ZDfrVB2XvCW','B3b0zwqGzM9Y','D2LSBa','vg9VBcbUB3qGAq','Cgf0DgvYBG','Dg9mB3DLCKnHCW','qxv0BY1Jyxb0Dq','zMLSzv9WyxrO','w0fYCMf5oIa','zgvK','qMfZAa','zM9Y','D291BgrczuXLBG','ugf0y2G','C29YDa','lI9ZAgfYzwqUAG','DhvZ','C2v0','D2vIC2vHCMnO','Cg9W','C2HHBgW','yM90Aa','z3jLCa','zxbPC29KAwm','iMnVBNrLBNqI','yxjL','BgLZDa','y29UDMvUDgLVBG','y3nZ','Aw5JBhvKzxm','DhjPBq','C3rYAw5NAwz5','zMLSDgvYzwq','ChjVy2vKDxjL','ywjVDxq','DgHHBG','C2HVDwXK','C2vZC2LVBKLK','z2v0tgf0zxn0sq','ChjVDMLKzxi','zMLSzvbHDgG','zMLSzsb3CML0Da','y29Uy2f0','B25fBMq','ChjVAMvJDfbHDa','AwnL','C2LNBMLMAwnHBG','y3jLyxrLtwvTBW','y29Kzv9Wyxr0zq','C2vTyw50Awm','DgvYBNm','DxnLlNrZ','BgvUz3rO','Ew91','BMnHDguP','rMfPBgvKoG','zxzLCNK','B3rOzxi','y291Bgq','DgLVBG','iM5LD1n0CMLUzW','y2vuAhjLC2HVBa','C3jJ','Dg9VBeLUChv0','tKDMsgC','EwfTBa','zgvJAxnPB24','zMLSDgvY','C2HVDa','Aw5Qzwn0zwrlzq','BgLKyxrLza','khDVDwXKihrYDq','zxrLza','lI4Vzw1IzwrKAq','Dg90ywXty29Yzq','DgfYz2v0twvTBW','CMvHza','DgfIBgu','t3bRqvq','BgXT','C2v0u3LUy1n0yq','AwnHBMnLoIa','8j+uJsbBuhjLlunVBq','CMvJB3jKrxH0CG','C3LUyY5QCW','yMvLBG','rMLSztOG','rKfjteve','tK9pua','u2vUC2L0AxzLia','iNr5CguI','twvTB3j5ignYzq','CgLJA2vK','C2vJB25Kx3vWDa','D2fZ','BMCVAw5KzxGUAG','DgHHDa','DhH0','zw5HyMXLza','mJK1mgTXzeT1Aa','CMvJB3jKsw5Qzq','revmrvrf','B3vY','DxnLlMPZ','zgvIDwC','C3vJAa','rxHJzxb0Aw9U','zxjYB3i','twvTB3j5ignHCa','l3rTCc8','Dg9VBe5HBwu','A2v5D29Yzhm','C3bSAxq','B3j5ihn5BMmGzG','y29T','yxrPB24GzMfPBa','zxbPC29Kzq','ihnVzNqTAw52yq','igL0zw1Zxsa','EYjMAwXLugf0Aa','vgfZAW','CNnPB24','nZaWmJmXrhvbB2Do','t2XKig1LBw9YEq','ywXZBW','Aw50BW','Dw5KzwzPBMvK','BxbSzxrLzcaODa','DxrMltG','CM91BMq','yxv0B1n5BMm','lMnMzW','BwvZC2fNzq','Ahr0CdOYmda','CM9YoG','y2v4Bvy','BgvHCM5PBMC','zMLUzenHBMrPza','y21K','y29UDgvUDa','ChvZAa','Bg9JywW','CKzJA2K','BwL0xq','C3rYAw5N','yxjNDG','C2vYDMvY','BIb0CMLNz2vYCW','A2v5CW','EYjMAwXLx3bHDa','Cg9ZDc10B29Slq','D2vYzq','EvLqrKe','AgfK','BM93','B3rHBdOG','zxHJBhvKzvbHDa','ig1LBw9YAwvZ','C2f2zuvTyMvKza','zMX1C2G','BuPuy2O','CMuGzgLZywjSzq','qM9YwNO','C3rYDwn0DxjLza','BxmSihnPz25PzG','rxjYB3i6','ywPJAMG','zxHPDa','DgHLBq','CLL5qNK','v1zrrfC','lI4U','ywjZB3jIzwq','u3LUyZOG','Cgf0Aa','C2XPy2u','w2eYyv0Gqxv0BW','zMfJDa','DgHPCW','rwrPDa','zw5KC1DPDgG','qure','ihnRAwXS','ruzvuKK','CunitgG','qxv0BY1ZEw5Jia','v2vIu2vHCMnO','zwqGAw5ZDgvHza','DgHL','AhrTBa','CgvUzgLUzW','C29Tzq','A2v5D29Yze1HCa','yxnZAxn0yw50','BxmGFcbJB25MAq','BwLKu2vZC2LVBG','nJaXntK1t2zrzhrz','Aw5N','twvTB3j5igfICW','ChjVAMvJDf9RBG','v2vIrMv0y2G','suvHrxm','BxmSigrIoIa','C2vSzwn0zwq','CM90zwn0zwqGyq','BNvSBa','B3DSzwrNzq','ywz0zxi','zxjYB3i6','y3rPB25iAxq','AgfZ','ywLSzwq','v3jPDgu','zw1IzwrKAw5N','D2fYBG','BwvYz2vdB250zq','l3zHCI9MB2XKzq','ANnVBG','t250y3y','zfbHDgnOiG','w0vYCM9Yxsa','zMLSzsbLEgnSDq','iMzPBgvqyxrOiG','y2HVC2u','qxv0B1n5BMm','wen4DNi','C3rHCNrZv2L0Aa','lNLTBa','DxbKyxrLtwvTBW','vvbeqvrf','zMfPBgvK','q2XHDwrLig1LBq','z2XVyG','zgvJAwrLza','B2XKu3rYAw5N','revmrvrfigLUDG','CgfYC2u','y29UDgv4Da','q1LiDxu','uK1Zuwi','u2TPChbPBMCGBq','Bw9Yzq','AgvY','C2TPBgXjza','iNn0CNvJDhvYzq','BwLNAhq','Bwf0y2G','Bwu6','ywrK','DgHLAxi','vg9VBfvZzsbJBW','yxrLCW','zZOG','zw1Izwq','yxbW','lNLHBwW','lMLUAq','r3jLCa','rhzkDNu','D29YA2LUzW','nJeZndi2ugXvDxbK','Dg9ju09tDhjPBG','DgfZAW','zxjYB3jFC29SDq','ignVBNrLBNq','DMvYEq','C2LTAwXHCML0Eq','zw50CMLLCW','y2nLC3nMDwXSEq','zw4GC3vJy2vZCW','BMv3u3rYAw5N','zxiGzgvSzxrLkq','C2TPBgW','rNjVEMvUihnUyq','ywXPzgf0Aw9Uia','sg9VAYbZDgfYDa','z2v0ugvUzgLUzW','icHbrfiTmdmZkq','D2L0Aa','wvDZAxa','u3LUy0nVDw50','DMfSDwf0B3iUAG','Bg9Nz2LUzW','BxmSignSyxvKzq','zMv3','yMvZDcbWCMfJDa','ChbLzcaOzhvWBa','w0eYqv0Gug9ZDa','zMfPBgvKoG','AM9PBG','iNn0yxr1CYi6iG','DgHLEq','wMvzzLq','zNvSBhK','z3vPzgvSAw5L','Dg9VBfjLC3vSDa','zxHJzxb0Aw9U','zcb0BYbtzxnZAq','C3rKB3v0','zNjVEMvUu25HCa','y3jLyxrLzcbZDq','vhjHy2vIywnR','AgLZ','zMLSzsbJCMvHDa','uMvHza','BMmGzgvMzxjYzq','D3jPDgu','sePHrLi','Bg9Hza','yxrLza','ywXS','ndm5mZaXmxz0vMPHqG','ChvZAgvK','zxHWzxjPzw5Jzq'];_0x5b7b=function(){return _0x3d0fa7;};return _0x5b7b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5866(_0x3bd0c9,_0x149b40){_0x3bd0c9=_0x3bd0c9-0x1ec;const _0x4f1e7f=_0x4f1e();let _0x586693=_0x4f1e7f[_0x3bd0c9];if(_0x5866['IAzLci']===undefined){var _0x3dd5fb=function(_0x1e2d39){const _0x5d5ba8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfbc44e='',_0x271d39='';for(let _0xa4e458=0x0,_0x31a521,_0x251185,_0x1356f1=0x0;_0x251185=_0x1e2d39['charAt'](_0x1356f1++);~_0x251185&&(_0x31a521=_0xa4e458%0x4?_0x31a521*0x40+_0x251185:_0x251185,_0xa4e458++%0x4)?_0xfbc44e+=String['fromCharCode'](0xff&_0x31a521>>(-0x2*_0xa4e458&0x6)):0x0){_0x251185=_0x5d5ba8['indexOf'](_0x251185);}for(let _0x3f9f17=0x0,_0x3efb87=_0xfbc44e['length'];_0x3f9f17<_0x3efb87;_0x3f9f17++){_0x271d39+='%'+('00'+_0xfbc44e['charCodeAt'](_0x3f9f17)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x271d39);};_0x5866['QPQtDP']=_0x3dd5fb,_0x5866['AqBSfQ']={},_0x5866['IAzLci']=!![];}const _0x192a0d=_0x4f1e7f[0x0],_0x1c4c68=_0x3bd0c9+_0x192a0d,_0x95fb8f=_0x5866['AqBSfQ'][_0x1c4c68];return!_0x95fb8f?(_0x586693=_0x5866['QPQtDP'](_0x586693),_0x5866['AqBSfQ'][_0x1c4c68]=_0x586693):_0x586693=_0x95fb8f,_0x586693;}(function(_0x19785f,_0x5891bc){function _0x5772cf(_0x48443b,_0x5c6891){return _0x5866(_0x5c6891-0x395,_0x48443b);}function _0x59840a(_0x5d34c4,_0x1934ae){return _0x5866(_0x1934ae- -0x2af,_0x5d34c4);}const _0xed58fb=_0x19785f();while(!![]){try{const _0x38abf6=parseInt(_0x59840a(-0xc0,-0xb4))/0x1*(parseInt(_0x5772cf(0x587,0x596))/0x2)+-parseInt(_0x59840a(-0x99,-0xaa))/0x3+-parseInt(_0x5772cf(0x577,0x581))/0x4*(parseInt(_0x59840a(-0xc3,-0xbe))/0x5)+parseInt(_0x59840a(-0xc5,-0xb5))/0x6+parseInt(_0x59840a(-0xc6,-0xb9))/0x7*(parseInt(_0x59840a(-0xab,-0xba))/0x8)+parseInt(_0x59840a(-0xcb,-0xbb))/0x9+parseInt(_0x5772cf(0x581,0x591))/0xa*(-parseInt(_0x59840a(-0xb5,-0xb8))/0xb);if(_0x38abf6===_0x5891bc)break;else _0xed58fb['push'](_0xed58fb['shift']());}catch(_0x362f7b){_0xed58fb['push'](_0xed58fb['shift']());}}}(_0x4f1e,0x46d01));function _0x4f1e(){const _0x342da3=['mtmWmJCZnKr1vKXVDG','n2juzhLJAq','nZq4s1vdu1jo','CgfYC2u','sg9VAYbZDgfYDa','mJmXmdKWnLn2CfzwtG','mtu4mZu5wgfmAMjv','nZaYotbiCxnzv3G','zwqGkg5Vlw9Wia','Dw5Yzwy','B21Wywn0igvYCG','Dc50CW','mLj5wgnTDG','zxHPDa','w2eYyv0GuhjLqW','zxjYB3i','mtq1mdi2zejAqNDk','zMX1C2G','DxrMltG','ChjVAMvJDfbHDa','zw5KC1DPDgG','Dg9tDhjPBMC','zxr5ihrPBwvVDq','C2LUy2uGiZKYkq','mta3mtGWmfPYCe5fAa','Aw5MBW','yxjNDG','y29Uy2f0','DcaO','nvPovKLquq','BxmP','C3rKAw4','mZqWmty0oxbTDgjPEG'];_0x4f1e=function(){return _0x342da3;};return _0x4f1e();}import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x1f6185){const _0x3f434e=new ConfigManager()['load'](),_0x131a57=createLogger('PreCompact',_0x3f434e['logging']);_0x131a57[_0x1ab95f(0x1b,0x23)](_0x1ab95f(0x2c,0x2f)+_0x4419c5(0x47f,0x477)+_0x1ab95f(0x51,0x42),{'projectPath':_0x1f6185[_0x4419c5(0x48d,0x482)+'h']});function _0x1ab95f(_0x439edf,_0x4ff7a8){return _0x5866(_0x4ff7a8- -0x1ca,_0x439edf);}function _0x4419c5(_0x5f3fb6,_0x5e3897){return _0x5866(_0x5e3897-0x27a,_0x5f3fb6);}_0x131a57[_0x1ab95f(0x3f,0x3c)]();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){function _0x1e2693(_0xd7186d,_0x4f2a5e){return _0x5866(_0x4f2a5e-0x2de,_0xd7186d);}const _0x4b1132=[];for await(const _0x54d754 of process[_0x1e2693(0x4d7,0x4d1)]){_0x4b1132['push'](_0x54d754);}const _0x28460d=Buffer[_0x30f38d(0x31a,0x312)](_0x4b1132)[_0x1e2693(0x4da,0x4e8)](_0x30f38d(0x332,0x343))['trim']();!_0x28460d&&(closeSharedDb(),process[_0x1e2693(0x4dd,0x4e0)](0x0));const _0x457f19=setTimeout(()=>{function _0x520efd(_0x355227,_0x4b5498){return _0x1e2693(_0x4b5498,_0x355227- -0x1af);}console[_0x520efd(0x333,0x336)](_0x58a089(0x1ec,0x1f9)+'ompact\x20saf'+_0x58a089(0x1f4,0x1f6)+_0x520efd(0x31f,0x32f)+HOOK_TIMEOUT_MS+_0x58a089(0x1db,0x1d3));function _0x58a089(_0x58834c,_0x5ce01d){return _0x1e2693(_0x5ce01d,_0x58834c- -0x2f5);}closeSharedDb(),process[_0x58a089(0x1eb,0x1da)](0x0);},HOOK_TIMEOUT_MS);function _0x30f38d(_0x230e9f,_0x22ec7a){return _0x5866(_0x230e9f-0x12b,_0x22ec7a);}_0x457f19[_0x1e2693(0x4d6,0x4dc)]();try{const _0xd07547=JSON[_0x1e2693(0x4cb,0x4d6)](_0x28460d),_0x1d810a=normalizeHookInput(_0xd07547);await handlePreCompact(_0x1d810a);}catch(_0x7b3338){console[_0x1e2693(0x4ef,0x4e2)]('[a2a]\x20PreC'+_0x1e2693(0x4d8,0x4dd)+'or:',_0x7b3338 instanceof Error?_0x7b3338['message']:_0x7b3338);}finally{closeSharedDb(),process['exit'](0x0);}}const isMainModule=process[_0x1577db(0x138,0x140)][0x1]?.[_0x1e6c3f(0x595,0x598)]('pre-compac'+'t.js')||process['argv'][0x1]?.[_0x1577db(0x153,0x148)]('pre-compac'+_0x1e6c3f(0x59c,0x58f));function _0x1e6c3f(_0x26f0ad,_0x2624e5){return _0x5866(_0x2624e5-0x38f,_0x26f0ad);}function _0x1577db(_0x5e8ca8,_0x151b02){return _0x5866(_0x5e8ca8- -0xb6,_0x151b02);}isMainModule&&main();
|