a2a-memory 0.12.56 → 0.12.58
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.d.ts +5 -0
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.d.ts +50 -0
- 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.d.ts +64 -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/keychain.d.ts +12 -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(_0x59b648,_0x35c51e){function _0x3f048d(_0x2a91b7,_0x410eb8){return _0x5041(_0x410eb8- -0x3e3,_0x2a91b7);}function _0x1e51b0(_0x3eb851,_0x589b49){return _0x5041(_0x589b49-0x2,_0x3eb851);}const _0x214d43=_0x59b648();while(!![]){try{const _0x1ca45c=-parseInt(_0x3f048d(-0x1df,-0x261))/0x1*(-parseInt(_0x1e51b0(0x2d1,0x2a8))/0x2)+-parseInt(_0x1e51b0(0x151,0x1bc))/0x3+-parseInt(_0x1e51b0(0x2d6,0x2b8))/0x4*(-parseInt(_0x3f048d(-0x1c0,-0x157))/0x5)+-parseInt(_0x1e51b0(0x15d,0x19c))/0x6+parseInt(_0x1e51b0(0x264,0x1b1))/0x7+-parseInt(_0x1e51b0(0x317,0x26c))/0x8+parseInt(_0x1e51b0(0x301,0x2c9))/0x9*(parseInt(_0x1e51b0(0x214,0x232))/0xa);if(_0x1ca45c===_0x35c51e)break;else _0x214d43['push'](_0x214d43['shift']());}catch(_0x418dcd){_0x214d43['push'](_0x214d43['shift']());}}}(_0x1dc6,0xc26c0));import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{scoreSignificance}from'../extraction/scorer.js';import{filterSensitiveInfo}from'../extraction/filter.js';import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';function _0x1dc6(){const _0x1284f7=['Agf2zq','uefbqLK','tvHwyxG','Dw5KzwzPBMvK','tvrNy04','A2v5CW','Bwu6','yMvMB3jL','yxnZAxn0yw50','ywLSzwq','sg9VAYbZDgfYDa','t2XKig1LBw9YEq','vhngrxe','BMnHDguP','v2vIrMv0y2G','EYjMAwXLugf0Aa','DxrMltG','mte5ota4r0LxueXm','zxbPC29Kzq','B2XKu3rYAw5N','BMCVAw5KzxGUAG','B3LvEg0','BgXT','zwqP','Eg1S','v3jPDgu','Bg9Nz2LUzW','C2LTAwXHCML0Eq','w0fYCMf5oIa','zw50CMLLCW','lI9ZAgfYzwqUAG','C2XPy2u','l3zHCI9MB2XKzq','nhj1rhjStG','tMPNrxO','Aw5Qzwn0zwrlzq','C3rYAw5NAwz5','icHbrfiTmdmZkq','B25SEq','y3rPB25iAxq','zwrPDa','CMvZB2X2zq','BwvZC2fNzq','rwrPDa','ig9Mig1LCMDLia','u2vUC2L0AxzLia','C2TPBgW','revmrvrf','lMPZB24','v2vIu2vHCMnO','mZm1nZa1nhrWCw9Uwa','Ahr0CdOYmda','BNvSBa','z3jLCa','zMLSDgvYzwq','vgnlvw4','B3j5ihn5BMmGzG','s2nYruK','DhvYzwq','C3LUyY5QCW','C3rHCNrZv2L0Aa','zcb0BYbtzxnZAq','D3jPDgu','DxbKyxrLtwvTBW','Bwf0y2G','ywjVDxq','yxv0B0nHChr1CG','DMfSDwu','vg9VBfvZzsbLCG','rMLSztOG','AxnbCNjHEq','Dg9VBfjLC3vSDa','zxjYB3i','yMvLBG','y3nZ','twvTB3j5ignYzq','qxv0BY1ZEw5Jia','ihnRAwXS','zMLSDgvY','ChvZAa','BxmSigrIoIa','DgHPCW','BMPLy3rPB24','BwLKu2vZC2LVBG','BgLZDa','BMfTzq','ywz0zxi','twvTB3j5ihvWza','zNvSBhK','zxjYB3jFC29SDq','CgfYC2u','u2TPBgW','BgvUz3rO','DgHL','ofn2txbUDW','zxbPC29KAwm','lI4U','Dg9VBeLUChv0','u3LUy0nVDw50','C2f2zuvTyMvKza','ug9ZDfrVB2XvCW','BxmSihnPz25PzG','B3DSzwrNzq','thPJswW','AgLZ','DhvZ','y29UzhmI','DgvZDa','Dhj1BMnHDgvK','CMvJB3jKsw5Qzq','ignVBNrLBNq','EYjMAwXLx3bHDa','C2fTzq','lNrVBwW','DhLWzq','CNvSzq','Cgf0DgvYBG','BM9Uzq','nZm0mJm2mMj3CKrSrq','zMfSC2u','BM93','qvnmtKe','zM9Y','BwvYz2vdB250zq','BIb0CMLNz2vYCW','zMLSzv9WyxrO','AeTjse4','BxbSzxrLzcaODa','8j+uJsbBuhjLlunVBq','D2vIC2vHCMnO','qure','lNLHBwW','BeHxvuq','lcbZEw5JoIa','AwnL','rKfjteve','zhvYAw5N','A2v5D29Yzhm','w0eYqv0Gug9ZDa','ntq3mta2n1LyBMn4sa','DgHHBG','zMLSzsbJCMvHDa','lMLUAq','AxrZ','zw5KC1DPDgG','iokaLcbHDxrVlxn5','C2HVDa','Dg9tDhjPBMC','y29UDgv4Da','CNmV','mZyZodGYu3rNuerO','Bg9Hza','iM9Szfn0CMLUzW','uKLhuxC','zw1IzwrKAw5N','zw4GC3vJy2vZCW','DhvYzwqGkgfMDa','zMfPBgvKoG','u2TPChbPBMCGBq','Ahr0CdO0mdq','iNn0CNvJDhvYzq','yxrPB24GzMfPBa','ywjVDMu','qxv0B1n5BMm','y29Uy2f0','z3rO','yxjNDG','C3rKAw4','rxHJzxb0Aw9U','EK9qy3y','lNLTBa','ywjZB3jIsw50BW','zfbHDgnOiG','D2L0Aa','C3rYAw5N','C3rKzxjY','lMnMzW','iMnVBNrLBNqI','twvTB3j5ihnHDG','Cg9W','D2vUDcb3AxrO','z2v0tgf0zxn0sq','zZOG','Aw5JBhvKzxm','y21K','DgLVBG','Ew91','DgHLAxi','y3jLyxrLtwvTBW','y3jLyxrLzcbZDq','vg9VBfvZzsbJBW','ANnVBG','AwnHBMnLoIa','B3rHBdOG','ChjVy2vKDxjL','C2v0u3LUy1n0yq','uMvHza','ywrK','C3rKB3v0','AgfK','yw5K','ugf0y2G','Cg9ZDc10B29Slq','B3b0zwqGzM9Y','DK9Rzhe','C2TPBgXjza','l3rLC3qV','DxnLlMPZ','u2TpD3y','ywn0Aw9UrxzHBa','vhjHy2vIywnR','DgHLEq','yMfZAa','y2nLC3nMDwXSEq','y29UDMvUDgLVBG','w2eYyv0Gug9ZDa','CM90zwn0zwqGyq','BwfW','A2v5D29Yze1HCa','DgfYz2v0twvTBW','ywXPzgf0Aw9Uia','zw5HyMXLza','Dvnvrha','B3vY','y291Bgq','y2fU','zNjVBq','lI4Vy2XHDwrLlW','w0vYCM9Yxsa','D291BgrczuXLBG','zxHPDa','EwfTBa','Aw1LoG','ExDVCMrZ','yxrLzcaOBwvYzW','C3vJAa','Dhj1zq','twvTB3j5ignHCa','BxmGFcbJB25MAq','qxv0BY1Jyxb0Dq','iM5LD1n0CMLUzW','Dg9V','C2LNBMLMAwnHBG','w2eYyv0Gqxv0BW','BgLZDe1LBw9YAq','zgvIDwC','D2LSBa','zgf0yq','B25fBMq','ChjVAMvJDfbHDa','Bw9Yzq','zMfJDa','y29UDgvUDa','C3rYDwn0DxjLza','C3jJ','Ew1S','iNr5CguI','Bwf5','qMfZAa','y2HVC2u','BgLKyxrLza','rLz2rvy','tuLpuKS','D29YA2LUzW','C2vZC2LVBKLK','Dg9ju09tDhjPBG','Aw5MBW','Dg90ywXty29Yzq','mtb1u1bXyuC','DgfNCW','sg9VAYbJB21WBa','Cgf0Aa','C2vYDMvY','AhrTBa','DMvYEq','yxv0B1n5BMm','rwPKAfq','q2XHDwrLig1LBq','vvbeqvrf','C29Tzq','rvjst1i6','Dg9VBe5HBwu','zxzLCNK','BMv3u3rYAw5N','rLfesuG','r2XVyG','zgvK','CMuGzgLZywjSzq','zw1Izwq','zgvJAxnPB24','CMvWBgfJzq','u3LUyZOG','zMLUzenHBMrPza','BxmSigrLzhvWoG','lI4VC2TPBgWVzq','lI4Vzw1IzwrKAq','C2LVBG','zxiGzgvSzxrLkq','D2fYBG','zgvJAwrLza','y2vuAhjLC2HVBa','rMfPBgvKoG','CgLJA2vK','C3bSAxq','rxjYB3i6','rNjVEMvUihnUyq','BMmGzgvMzxjYzq','BwvHBMLUz2z1Ba','C2TPChbLzcaOCa','zMLSzsbLEgnSDq','r3jLCa','uu11BLO','CM9YoG','yxbW','zMLYC3rFDxb0Aq','iNn0yxr1CYi6iG','wuvesfu','y29TBwfUza','B3rOzxi','z3vPzgvSAw5L','khDVDwXKihrYDq','zxjYB3i6','ywn0Aw9U','y2f0zwDVCNK','zMfPBgvK','B2jQzwn0','ndi4mZCWngjQq1L4ua','C2TPBgXdB252zq','yMvZDcbWCMfJDa','Ew91CG','AM9PBG','AgfZ','Dg9mB3DLCKnHCW','ChvZAgvK','CM91BMq','zw1VCNK6ig5Via','vgfZAW','yM90Aa','zxHJzxb0Aw9U','z2v0','iMzPBgvqyxrOiG','AgvY','yxjL','C2vSzwn0zwq','ANvZDa','l3rTCc8','vfnTzNe','tK9pua','DhH0','ihnVzNqTAw52yq','ywXS','twvTB3j5ihnRAq','zxHJBhvKzvbHDa','DhjPBq','lMvUDG','uNLNr1u','y29T','C3nLDcK','ChjVDMLKzxi','z2v0ugvUzgLUzW','ntiXmZa4nuTuz0nACG','vwnltha','D2fZ','CgvUzgLUzW','DgfIBgu','BMv3','DhjHy2vIywnR','BgvHCM5PBMC','C3rHBMrHCMq'];_0x1dc6=function(){return _0x1284f7;};return _0x1dc6();}import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':'experience','code_pattern':_0x232e2b(0x391,0x3d5),'decision':_0x232e2b(0x4ea,0x45d),'context':_0x905f23(0x4e7,0x454),'project_knowledge':_0x232e2b(0x3bb,0x3d5),'convention':'procedure','learning':'experience','skill':'procedure','rule':_0x232e2b(0x3d4,0x39c)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x30953d){const _0x1d1552=performance[_0x48d49b(-0x22c,-0x1f8)](),_0x4a379f=new ConfigManager()[_0x10de83(0x3bb,0x3f8)]();function _0x10de83(_0x277a97,_0xa0a369){return _0x232e2b(_0x277a97,_0xa0a369-0x87);}function _0x48d49b(_0xae2ea6,_0x42d0de){return _0x232e2b(_0xae2ea6,_0x42d0de- -0x54a);}const _0x3a628b=performance[_0x10de83(0x425,0x3d9)](),_0x16a753=createLogger(_0x48d49b(-0x1c4,-0x20c)+'e',_0x4a379f[_0x48d49b(-0x164,-0xe5)]);try{_0x16a753[_0x10de83(0x436,0x46b)](_0x10de83(0x55e,0x4dc)+'ed',{'toolName':_0x30953d[_0x10de83(0x4e9,0x47a)]});if(!_0x4a379f['autoCaptur'+'e']['enabled']){_0x16a753[_0x10de83(0x42a,0x46b)](_0x48d49b(-0x21f,-0x181)+_0x48d49b(-0x110,-0x151)+'d');return;}if(!_0x4a379f['autoCaptur'+'e']['triggers']['includes'](_0x30953d['toolName'])){_0x16a753[_0x10de83(0x3d0,0x456)]('Tool\x20not\x20i'+_0x48d49b(-0x29e,-0x1f4),{'toolName':_0x30953d[_0x48d49b(-0x1d8,-0x157)]});return;}const _0x5d61c9=extractFilePath(_0x30953d[_0x10de83(0x347,0x3c2)]);if(_0x5d61c9&&isSensitiveFile(_0x5d61c9,_0x4a379f[_0x10de83(0x577,0x514)+'e'][_0x48d49b(-0xe5,-0x110)+'terns'])){_0x16a753[_0x10de83(0x4f6,0x46b)](_0x10de83(0x510,0x4ff)+_0x10de83(0x513,0x496)+_0x48d49b(-0xc1,-0x152),{'filePath':_0x5d61c9});return;}if(_0x5d61c9&&isClaudeMemoryFile(_0x5d61c9)&&(_0x30953d['toolName']===_0x48d49b(-0x93,-0xe6)||_0x30953d[_0x10de83(0x433,0x47a)]===_0x10de83(0x484,0x4fd))){const _0x37b9da=performance[_0x48d49b(-0x284,-0x1f8)]();try{const _0x36df93=getSharedDb(_0x4a379f['db'][_0x10de83(0x3e2,0x470)]),{syncClaudeMd:_0x384a69}=await import(_0x10de83(0x39c,0x444)+_0x10de83(0x5a0,0x50d));await _0x384a69(_0x36df93,{'claudeMdPath':_0x5d61c9,'projectPath':_0x30953d[_0x48d49b(-0x105,-0x177)+'h']});const _0x4c2b42=performance[_0x10de83(0x334,0x3d9)](),_0x4fcb34=Math[_0x48d49b(-0xa9,-0x122)](_0x4c2b42-_0x1d1552),_0x458bd6=Math[_0x10de83(0x47a,0x4af)](_0x4c2b42-_0x37b9da),_0x4ac1bb=Math[_0x10de83(0x4c3,0x4af)](_0x3a628b-_0x1d1552);process[_0x10de83(0x485,0x410)][_0x10de83(0x493,0x510)](_0x10de83(0x36c,0x3eb)+_0x48d49b(-0x17b,-0x1b2)+_0x10de83(0x377,0x3e0)+'otal:\x20'+_0x4fcb34+(_0x10de83(0x487,0x44f)+_0x10de83(0x3a1,0x417))+_0x4ac1bb+('ms,\x20claude'+_0x48d49b(-0x1f6,-0x14d))+_0x458bd6+'ms)\x0a'),_0x16a753[_0x48d49b(-0x125,-0x166)]('Claude\x20mem'+'ory\x20file\x20s'+'ynced',{'filePath':_0x5d61c9});}catch(_0x1363f3){_0x16a753['warn'](_0x10de83(0x51d,0x476)+_0x10de83(0x580,0x50a)+_0x48d49b(-0x137,-0xf6),{'error':_0x1363f3 instanceof Error?_0x1363f3[_0x10de83(0x58b,0x4fc)]:String(_0x1363f3)});}return;}const _0x744425=performance[_0x48d49b(-0x1af,-0x1f8)](),_0x17c2e0={'uuid':_0x30953d[_0x10de83(0x450,0x469)],'type':'assistant','message':{'role':_0x10de83(0x48e,0x4da),'content':_0x30953d['toolResult']},'timestamp':new Date()[_0x10de83(0x512,0x46a)+'g']()},_0x27d25c=_0x30953d[_0x48d49b(-0xb7,-0x157)]===_0x48d49b(-0x71,-0xe6),_0x225352=_0x5d61c9?isConfigFile(_0x5d61c9):![],_0x7bc96e=detectActualError(_0x30953d['toolResult'],_0x30953d[_0x10de83(0x368,0x3c2)]);let _0x14cee6;if(_0x30953d['toolName']===_0x48d49b(-0xf5,-0x16e)&&_0x30953d[_0x48d49b(-0x198,-0x20f)])try{const _0x274c0d=typeof _0x30953d[_0x48d49b(-0x2c2,-0x20f)]===_0x10de83(0x3fe,0x40f)?JSON[_0x48d49b(-0x18f,-0x216)](_0x30953d[_0x48d49b(-0x1cc,-0x20f)]):_0x30953d[_0x10de83(0x406,0x3c2)];_0x14cee6=_0x274c0d?.[_0x48d49b(-0x95,-0x133)]??_0x274c0d?.[_0x10de83(0x3f9,0x419)]??(typeof _0x274c0d===_0x48d49b(-0x139,-0x1c2)?_0x274c0d:undefined);}catch{_0x14cee6=typeof _0x30953d[_0x48d49b(-0x175,-0x20f)]===_0x48d49b(-0x190,-0x1c2)?_0x30953d[_0x48d49b(-0x1e7,-0x20f)]:undefined;}const _0x13d1d5=scoreSignificance(_0x17c2e0,{'toolName':_0x30953d[_0x10de83(0x4fd,0x47a)],'isNewFile':_0x27d25c,'isConfigChange':_0x225352,'hasError':_0x7bc96e,'bashCommand':_0x14cee6},_0x4a379f['autoCaptur'+'e'][_0x48d49b(-0x188,-0x17e)+'ceThreshol'+'d']),_0x5a6c0e=performance[_0x10de83(0x44b,0x3d9)](),_0x197daa=_0x4a379f['autoCaptur'+'e'][_0x10de83(0x457,0x453)+'ceThreshol'+'d']*0.5;_0x16a753[_0x10de83(0x4a7,0x46b)]('Tool\x20evalu'+'ated',{'toolName':_0x30953d[_0x10de83(0x435,0x47a)],'score':_0x13d1d5[_0x48d49b(-0x1a6,-0x165)],'shouldCapture':_0x13d1d5[_0x48d49b(-0x216,-0x165)]>=_0x197daa});if(_0x13d1d5[_0x10de83(0x459,0x46c)]<_0x197daa)return;const _0x335e4c=determineCategory(_0x30953d,_0x7bc96e),_0x1627a0=buildContent(_0x30953d);if(!_0x1627a0){_0x16a753[_0x48d49b(-0xdb,-0x166)]('Skipping\x20m'+_0x10de83(0x4bf,0x4b0)+_0x10de83(0x4f3,0x494)+_0x48d49b(-0x158,-0x202),{'toolName':_0x30953d['toolName']});return;}const _0x61841d=filterSensitiveInfo(_0x1627a0);let _0x584cbd;if(_0x7bc96e)_0x584cbd=_0x48d49b(-0x236,-0x211);else _0x13d1d5[_0x48d49b(-0x137,-0x165)]<_0x4a379f['autoCaptur'+'e'][_0x10de83(0x3a0,0x453)+_0x48d49b(-0x1c3,-0x144)+'d']?_0x584cbd=_0x48d49b(-0xf4,-0x169):_0x584cbd='semantic';const _0x1f8e9e={'content':_0x61841d['filtered'],'category':_0x335e4c,'tier':_0x584cbd,'tags':buildTags(_0x30953d),'projectPath':_0x30953d[_0x48d49b(-0xeb,-0x177)+'h'],'sessionId':_0x30953d[_0x10de83(0x40d,0x469)],'memoryType':CATEGORY_TYPE_MAP[_0x335e4c]??_0x48d49b(-0x11f,-0x175)},_0x2dfef8=getSharedDb(_0x4a379f['db']['path']),_0x45e15a=performance[_0x10de83(0x487,0x3d9)](),_0x347b0e=new DedupManager(),_0x329ef9=_0x347b0e[_0x10de83(0x491,0x485)+'ates'](_0x2dfef8[_0x48d49b(-0x213,-0x17c)+'es']({'projectPath':_0x30953d[_0x48d49b(-0x184,-0x177)+'h'],'limit':0x32,'excludeParents':!![]}),_0x335e4c,_0x30953d['projectPat'+'h']),_0x386310=_0x347b0e['decide'](_0x61841d['filtered'],_0x329ef9),_0x1f76ba=performance[_0x10de83(0x406,0x3d9)]();_0x16a753[_0x48d49b(-0x167,-0x166)]('Dedup\x20deci'+_0x10de83(0x423,0x489),{'action':_0x386310[_0x48d49b(-0xbb,-0x12e)],'similarity':_0x386310['similarity']});const _0x1e0e48=performance[_0x10de83(0x466,0x3d9)]();let _0x1cb17a;try{if(_0x10de83(0x458,0x466)===_0x48d49b(-0xef,-0x16b))switch(_0x386310['action']){case _0x48d49b(-0x1be,-0x115):_0x16a753[_0x10de83(0x465,0x46b)](_0x10de83(0x4b9,0x4c0)+'pped\x20(dupl'+'icate)',{'similarity':_0x386310[_0x10de83(0x4c5,0x4ed)]});return;case _0x48d49b(-0xc8,-0x15a):if(_0x386310[_0x48d49b(-0x121,-0x195)+'ry']){const _0x50290e=_0x347b0e[_0x48d49b(-0x24e,-0x1f5)+'nt'](_0x386310['targetMemo'+'ry']['content'],_0x61841d[_0x48d49b(-0x82,-0xc9)]);if(_0x50290e[_0x48d49b(-0x198,-0x204)]){_0x1cb17a=_0x2dfef8[_0x48d49b(-0x200,-0x1b4)+'ry'](_0x1f8e9e);_0x584cbd!=='working'&&_0x2dfef8[_0x48d49b(-0x105,-0x1ad)+'tus'](_0x1cb17a['id'],null,_0x48d49b(-0xcf,-0x105));_0x16a753[_0x10de83(0x4dc,0x46b)](_0x48d49b(-0x220,-0x1be)+'ed\x20instead'+_0x48d49b(-0xd2,-0xd3)+_0x10de83(0x500,0x4a1)+_0x48d49b(-0x86,-0xf2),{'targetId':_0x386310[_0x48d49b(-0x11b,-0x195)+'ry']['id'],'newId':_0x1cb17a['id'],'targetLength':_0x386310[_0x10de83(0x4b5,0x43c)+'ry'][_0x48d49b(-0xcd,-0x174)]['length'],'wouldBeLength':_0x50290e[_0x48d49b(-0x210,-0x18b)+_0x10de83(0x36d,0x406)]});break;}_0x2dfef8[_0x48d49b(-0x117,-0xc0)+'ry'](_0x386310[_0x48d49b(-0xf9,-0x195)+'ry']['id'],{'content':_0x50290e[_0x48d49b(-0x16d,-0x174)],'tags':[...new Set([..._0x386310[_0x48d49b(-0x136,-0x195)+'ry'][_0x10de83(0x426,0x46e)]||[],...buildTags(_0x30953d)])]}),_0x16a753['info'](_0x10de83(0x399,0x3b8)+_0x10de83(0x4f1,0x44b)+_0x48d49b(-0x105,-0xe8),{'memoryId':_0x386310[_0x10de83(0x496,0x43c)+'ry']['id']});}return;case _0x48d49b(-0xf8,-0xd0):{if(_0x48d49b(-0x1d4,-0x1f2)===_0x10de83(0x3fd,0x3df)){if(_0x386310[_0x10de83(0x484,0x43c)+'ry']){if(isProtectedFromCleanup(_0x386310[_0x48d49b(-0x1b8,-0x195)+'ry'])){if(_0x48d49b(-0x19c,-0x15c)===_0x10de83(0x467,0x475))_0x16a753[_0x48d49b(-0x19f,-0x166)]('DELETE\x20inv'+_0x10de83(0x47d,0x43d)+_0x10de83(0x463,0x495)+_0x48d49b(-0xee,-0x198)+_0x10de83(0x562,0x4c6),{'memoryId':_0x386310[_0x10de83(0x478,0x43c)+'ry']['id'],'category':_0x386310[_0x48d49b(-0x1c8,-0x195)+'ry'][_0x48d49b(-0x1c4,-0x12d)]});else{const _0x2e8941=_0x5f456a[_0x39eb1d],_0x423615=typeof _0x2e8941===_0x10de83(0x38d,0x40f)?_0x2e8941['slice'](0x0,0x50):_0x3ecbcd[_0x48d49b(-0x14e,-0xdb)](_0x2e8941)[_0x10de83(0x452,0x4f1)](0x0,0x50);return _0x276488+':\x20'+_0x423615;}}else _0x10de83(0x4e9,0x4de)!=='TsFEq'?_0x29e11d=_0x522cbe[_0x10de83(0x38f,0x3bb)](_0x54ceda):(_0x2dfef8[_0x48d49b(-0x41,-0xc0)+'ry'](_0x386310[_0x10de83(0x4ce,0x43c)+'ry']['id'],{'invalidAt':new Date()[_0x48d49b(-0x118,-0x167)+'g']()}),_0x16a753[_0x10de83(0x441,0x46b)](_0x10de83(0x577,0x4dd)+_0x10de83(0x54a,0x4be)+_0x48d49b(-0x1b6,-0x16c),{'memoryId':_0x386310[_0x48d49b(-0x112,-0x195)+'ry']['id']}));}_0x1cb17a=_0x2dfef8[_0x10de83(0x448,0x41d)+'ry'](_0x1f8e9e);if(_0x584cbd!=='working'){if(_0x48d49b(-0x149,-0x1d7)!==_0x48d49b(-0x195,-0x134))_0x2dfef8[_0x10de83(0x3ce,0x424)+'tus'](_0x1cb17a['id'],null,_0x10de83(0x440,0x4cc));else{const _0x391ce1=_0xc63715[_0x10de83(0x346,0x3bb)](_0x5c65eb);if(_0x391ce1[_0x10de83(0x477,0x4e5)]||_0x391ce1['newString']||_0x391ce1['structured'+'Patch']||_0x391ce1['type']&&_0x391ce1['filePath']&&typeof _0x391ce1[_0x10de83(0x480,0x45d)]===_0x48d49b(-0x1ce,-0x1c2))return'';return _0x3f43d2;}}_0x16a753[_0x10de83(0x3e2,0x46b)](_0x48d49b(-0x22c,-0x183)+_0x10de83(0x3ee,0x3fd)+_0x48d49b(-0xfc,-0x147),{'category':_0x335e4c,'memoryId':_0x1cb17a['id']});break;}else{const _0x39da99=['md',_0x48d49b(-0x95,-0x114),_0x48d49b(-0x14e,-0x1b1),_0x10de83(0x489,0x460),_0x10de83(0x3be,0x448),_0x48d49b(-0x146,-0xe7),_0x48d49b(-0x1db,-0x15f),_0x48d49b(-0x2cb,-0x226)];!_0x39da99[_0x10de83(0x4b8,0x418)](_0x4338b0)&&_0x96cdad[_0x48d49b(-0x227,-0x221)](_0x4e22a9);}}case _0x48d49b(-0x238,-0x1ee):default:_0x1cb17a=_0x2dfef8['createMemo'+'ry'](_0x1f8e9e);if(_0x584cbd!==_0x10de83(0x51b,0x468)){if(_0x48d49b(-0x53,-0xdd)===_0x48d49b(-0x1a5,-0xfb)){const _0x5daa32=[_0x10de83(0x4bc,0x502),_0x48d49b(-0x226,-0x1ed),_0x48d49b(-0x261,-0x1c6),_0x48d49b(-0x2a7,-0x1ff),'.env',_0x10de83(0x41c,0x3ef),_0x48d49b(-0x244,-0x1c0)];return _0x5daa32[_0x10de83(0x3e0,0x478)](_0x181604=>_0x20d379[_0x10de83(0x367,0x3f1)](_0x181604));}else _0x2dfef8['setSyncSta'+_0x48d49b(-0x292,-0x207)](_0x1cb17a['id'],null,_0x48d49b(-0x154,-0x105));}_0x16a753['info']('Memory\x20cap'+_0x48d49b(-0x72,-0xc5),{'category':_0x335e4c,'memoryId':_0x1cb17a['id']});break;}else _0x2b7d03[_0x48d49b(-0x2d9,-0x228)](_0x48d49b(-0xf8,-0x199)+_0x10de83(0x3c2,0x3a5)+_0x48d49b(-0x11b,-0x138),_0x4dfd90 instanceof _0x2799ba?_0x588300[_0x10de83(0x56a,0x4fc)]:_0x199075),_0x12b075[_0x10de83(0x404,0x447)](0x0);}catch(_0x13ea47){const _0x58c6ed=_0x13ea47 instanceof Error?_0x13ea47:new Error(String(_0x13ea47));_0x16a753[_0x10de83(0x40d,0x3a9)](_0x10de83(0x3a0,0x3ac)+_0x48d49b(-0x128,-0x1cf)+'ed',_0x58c6ed,{'category':_0x335e4c});}const _0x3dc058=performance[_0x10de83(0x3ec,0x3d9)]();if(_0x1cb17a&&_0x4a379f[_0x10de83(0x389,0x3fb)]?.[_0x10de83(0x49d,0x43e)]&&_0x4a379f[_0x48d49b(-0x23c,-0x1d6)][_0x10de83(0x4f9,0x4c7)]==='local'){if(_0x10de83(0x45e,0x467)==='pilNb')_0x106ed7[_0x10de83(0x30c,0x3b0)](_0x26eaac);else try{const {createEmbeddingProvider:_0x54f259}=await import(_0x10de83(0x472,0x488)+_0x48d49b(-0x103,-0xeb)+'s'),_0x29d9d0=_0x54f259(_0x4a379f[_0x48d49b(-0x18e,-0x1d6)],_0x4a379f[_0x48d49b(-0x11c,-0xe9)]),_0x54e800=await Promise[_0x10de83(0x54b,0x4fb)](_0x29d9d0[_0x10de83(0x524,0x481)](_0x1cb17a[_0x48d49b(-0x151,-0x174)]));Array[_0x48d49b(-0x1eb,-0x22a)](_0x54e800)&&_0x2dfef8[_0x10de83(0x377,0x3c4)+'ing'](_0x1cb17a['id'],_0x54e800);}catch(_0x330e1a){if(_0x48d49b(-0x1ff,-0x1ec)!==_0x48d49b(-0x1e1,-0x1ec))return _0x48d49b(-0x158,-0x1dc);else _0x16a753[_0x48d49b(-0xd7,-0x146)]('Embedding\x20'+_0x48d49b(-0x74,-0x12c),{'error':_0x330e1a instanceof Error?_0x330e1a[_0x48d49b(-0x125,-0xd5)]:String(_0x330e1a)});}}try{const _0x5629cf=_0x2dfef8[_0x10de83(0x4a7,0x416)+_0x48d49b(-0x270,-0x21e)](_0x30953d[_0x48d49b(-0x1ea,-0x168)]);if(_0x5629cf&&_0x5629cf[_0x10de83(0x52f,0x4f5)+_0x48d49b(-0x192,-0x187)]){const _0x223621=(_0x30953d[_0x48d49b(-0x1d2,-0x157)]+'\x20'+JSON['stringify'](_0x30953d[_0x48d49b(-0x183,-0x20f)])+'\x20'+String(_0x30953d[_0x10de83(0x402,0x3a8)]))['toLowerCas'+'e'](),{parseInjectedKeywords:_0x253a1a}=await import(_0x48d49b(-0x11d,-0xe1)+'s'),_0x5bbcae=_0x253a1a(_0x5629cf['injectedKe'+_0x48d49b(-0x176,-0x187)]);let _0x19c635=[],_0x15a3d9=[];if(_0x5bbcae['isMap']){for(const [_0x221e9e,_0x9e33e2]of Object['entries'](_0x5bbcae[_0x10de83(0x39a,0x43b)])){const _0x30995e=_0x9e33e2[_0x48d49b(-0x23b,-0x222)](_0x27cdfe=>_0x223621['includes'](_0x27cdfe));_0x30995e[_0x10de83(0x395,0x3bd)]>0x0&&(_0x19c635[_0x10de83(0x40c,0x3b0)](..._0x30995e),_0x15a3d9[_0x48d49b(-0x23a,-0x221)](_0x221e9e));}_0x19c635=[...new Set(_0x19c635)],_0x15a3d9=[...new Set(_0x15a3d9)];}else _0x19c635=_0x5bbcae[_0x10de83(0x38d,0x3ea)][_0x48d49b(-0x178,-0x222)](_0x1ee213=>_0x223621[_0x48d49b(-0x198,-0x1b9)](_0x1ee213));_0x19c635[_0x10de83(0x341,0x3bd)]>0x0&&_0x2dfef8[_0x10de83(0x47b,0x3ce)+_0x48d49b(-0x91,-0xd8)](_0x5629cf['id'],_0x19c635,_0x30953d['toolName'],_0x15a3d9);}}catch{}if(_0x1cb17a&&(_0x386310[_0x48d49b(-0x8c,-0x12e)]===_0x10de83(0x49a,0x3e3)||_0x386310[_0x48d49b(-0x14f,-0x12e)]===_0x10de83(0x5a9,0x501)))try{_0x2dfef8['recordExtr'+_0x48d49b(-0x1ef,-0x19f)]({'memoryId':_0x1cb17a['id'],'sessionId':_0x30953d[_0x48d49b(-0x1db,-0x168)],'significanceScore':_0x13d1d5['totalScore'],'dedupAction':_0x386310[_0x10de83(0x4f2,0x4a3)],'tier':_0x584cbd});}catch{}if(_0x1cb17a&&_0x1cb17a[_0x10de83(0x39b,0x3fb)]&&_0x4a379f[_0x10de83(0x514,0x4a8)+'rsion']?.['enabled']){if('IauLZ'!==_0x10de83(0x463,0x47d))try{const {SkillEvaluator:_0x10569e}=await import(_0x48d49b(-0x15d,-0x14a)+'valuator.j'+'s'),_0x1a8d02=new _0x10569e(_0x2dfef8,_0x4a379f),_0x4dea01=_0x1a8d02[_0x10de83(0x366,0x40c)+_0x10de83(0x429,0x3bc)](_0x1cb17a);_0x4dea01['absorbed']&&_0x16a753[_0x10de83(0x47c,0x46b)]('Memory\x20abs'+'orbed\x20into'+_0x48d49b(-0x196,-0x223),{'memoryId':_0x1cb17a['id'],'skillId':_0x4dea01[_0x48d49b(-0x110,-0x1a3)]});}catch{}else return![];}const _0x28b50b=performance['now']();let _0x245d1f=0x0;const _0x4da6c1=_0x4a379f['frozenSnap'+_0x10de83(0x3ff,0x3f3)]?.[_0x48d49b(-0x1a8,-0x193)]!==![]&&_0x4a379f['frozenSnap'+_0x10de83(0x45c,0x3f3)]?.[_0x48d49b(-0x2a6,-0x21d)+_0x10de83(0x4b3,0x404)]!==!![];if(_0x4a379f[_0x10de83(0x40c,0x474)]?.[_0x48d49b(-0x17d,-0x193)]&&_0x4a379f[_0x48d49b(-0x17b,-0x160)]?.['apiKey']&&!_0x4da6c1){try{if(_0x48d49b(-0x9d,-0x116)!==_0x48d49b(-0xc0,-0x116)){if(_0x1cfabb[_0x10de83(0x471,0x418)](_0x10de83(0x43c,0x3f9)+'\x22')||_0x1ef692[_0x10de83(0x485,0x418)](_0x10de83(0x477,0x451)+'\x22')||_0x2f20a8[_0x48d49b(-0x239,-0x1b9)](_0x48d49b(-0x246,-0x1d0)+_0x48d49b(-0x21b,-0x1c4))||_0xce0221[_0x10de83(0x3ae,0x418)](_0x10de83(0x458,0x461))&&_0x466c99[_0x48d49b(-0x22c,-0x1b9)]('\x22filePath\x22')&&_0x4ef5c3[_0x48d49b(-0x200,-0x1b9)]('\x22content\x22'))return'';return _0x33e6d7;}else{const _0x1e30fc=_0x2dfef8[_0x48d49b(-0x101,-0x109)+_0x48d49b(-0x1d4,-0x20e)]();if(_0x1e30fc>=AUTO_SYNC_THRESHOLD){const _0x57a8c2=createHookClient(_0x4a379f);if(_0x57a8c2){if(_0x48d49b(-0x243,-0x1c7)==='WTzQp')return null;else{const _0x28ddc5=new SyncQueue(_0x2dfef8,_0x57a8c2),_0x5126f2=await _0x28ddc5['flush']({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});if(_0x5126f2[_0x10de83(0x469,0x4ae)]>0x0){if(_0x48d49b(-0x1f8,-0x192)==='uSUDp')_0x16a753['info'](_0x48d49b(-0x29f,-0x224)+_0x10de83(0x402,0x4ae),{'pushed':_0x5126f2['pushed'],'pending':_0x1e30fc}),console[_0x10de83(0x43d,0x3a9)](_0x10de83(0x3fc,0x454)+'-synced\x20'+_0x5126f2[_0x10de83(0x465,0x4ae)]+'\x20memories');else{for(const [_0x32ab12,_0x39747a]of _0x243b99['entries'](_0xe730dc['keywordMap'])){const _0x74055b=_0x39747a['filter'](_0x2d3d97=>_0x10ef35[_0x48d49b(-0x193,-0x1b9)](_0x2d3d97));_0x74055b['length']>0x0&&(_0x3b369c[_0x10de83(0x425,0x3b0)](..._0x74055b),_0xd3d794[_0x10de83(0x3c3,0x3b0)](_0x32ab12));}_0x125ade=[...new _0x1256ad(_0x3d679d)],_0x34906b=[...new _0x3c5a91(_0x27be78)];}}}}}}}catch(_0x59d313){_0x16a753['warn'](_0x10de83(0x43f,0x3ad)+_0x10de83(0x52c,0x4a5),{'error':_0x59d313 instanceof Error?_0x59d313['message']:String(_0x59d313)});}_0x245d1f=Math[_0x10de83(0x4ff,0x4af)](performance[_0x10de83(0x415,0x3d9)]()-_0x28b50b);}else _0x4a379f[_0x48d49b(-0xae,-0x15d)]?.[_0x48d49b(-0x1fa,-0x193)]&&_0x4a379f[_0x48d49b(-0x207,-0x160)]?.['apiKey']&&_0x4da6c1&&_0x16a753[_0x10de83(0x4b7,0x456)](_0x48d49b(-0x144,-0x13f)+'pshot\x20mode'+_0x10de83(0x57c,0x4f7)+_0x10de83(0x34c,0x3f2)+_0x48d49b(-0xf1,-0x13e)+_0x48d49b(-0xb5,-0xc2)+_0x10de83(0x4bd,0x459));const _0x276eae=Math[_0x48d49b(-0xfe,-0x122)](performance[_0x10de83(0x3fd,0x3d9)]()-_0x1d1552),_0x5032d2=Math[_0x10de83(0x4cc,0x4af)](_0x3a628b-_0x1d1552),_0x3a8ebe=Math[_0x10de83(0x4d0,0x4af)](_0x5a6c0e-_0x744425),_0x599f36=Math[_0x10de83(0x4a9,0x4af)](_0x1f76ba-_0x45e15a),_0x539724=Math[_0x10de83(0x513,0x4af)](_0x3dc058-_0x1e0e48),_0x9610ca=_0x245d1f>0x0?_0x48d49b(-0x1d9,-0x1eb)+_0x245d1f+'ms':'';process[_0x10de83(0x35b,0x410)][_0x10de83(0x5a4,0x510)](_0x10de83(0x475,0x3eb)+_0x10de83(0x3c7,0x41f)+_0x10de83(0x34a,0x3e0)+_0x10de83(0x4bc,0x422)+_0x276eae+(_0x48d49b(-0xf2,-0x182)+_0x48d49b(-0x131,-0x1ba))+_0x5032d2+(_0x48d49b(-0x21b,-0x20b)+_0x10de83(0x471,0x421))+_0x3a8ebe+(_0x48d49b(-0xac,-0x14b)+'\x20')+_0x599f36+_0x48d49b(-0x248,-0x220)+_0x539724+'ms'+_0x9610ca+')\x0a'),_0x16a753['info'](_0x10de83(0x45a,0x46f)+'eted',{'durationMs':_0x276eae});}finally{_0x16a753['flush']();}}function _0x905f23(_0x30dea3,_0x2a5f64){return _0x5041(_0x30dea3-0x240,_0x2a5f64);}function extractFilePath(_0x505ef4){let _0x22201d=_0x505ef4;function _0x29edc3(_0x103510,_0x1821e7){return _0x232e2b(_0x1821e7,_0x103510-0xd3);}function _0x3cc740(_0x28241a,_0x2a4c17){return _0x232e2b(_0x28241a,_0x2a4c17- -0x4fe);}if(typeof _0x22201d===_0x29edc3(0x45b,0x477))try{_0x22201d=JSON['parse'](_0x22201d);}catch{return null;}if(typeof _0x22201d===_0x3cc740(-0x6b,-0xdf)&&_0x22201d!==null){if(typeof _0x22201d[_0x29edc3(0x42a,0x3db)]===_0x3cc740(-0x188,-0x176))return _0x22201d[_0x3cc740(-0x1bc,-0x1a7)];if(typeof _0x22201d[_0x29edc3(0x4bc,0x4c2)]===_0x3cc740(-0x220,-0x176))return _0x22201d[_0x3cc740(-0x93,-0x115)];}return null;}function isSensitiveFile(_0x28c85b,_0x112305){const _0x4f7762=_0x28c85b['split']('/')[_0x235687(0x1d5,0x13d)]()??'';function _0x5da1e1(_0x4a484d,_0x2eb062){return _0x232e2b(_0x4a484d,_0x2eb062- -0x4bf);}function _0x235687(_0x8fd24,_0x4e0f32){return _0x232e2b(_0x8fd24,_0x4e0f32- -0x250);}return _0x112305[_0x235687(0xf9,0x1a1)](_0x59898d=>{if(_0x59898d[_0x577c4a(-0xcf,-0x123)]('*'))return _0x4f7762[_0x577c4a(-0x1ec,-0x185)](_0x59898d[_0x41b028(0x3f7,0x40f)](0x1));function _0x577c4a(_0x399b20,_0x1c7460){return _0x5da1e1(_0x1c7460,_0x399b20- -0x97);}if(_0x59898d[_0x577c4a(-0x1ec,-0x256)]('*'))return _0x4f7762[_0x577c4a(-0xcf,-0x11a)](_0x59898d[_0x41b028(0x3f7,0x3d6)](0x0,-0x1));function _0x41b028(_0x33b294,_0x2bffb8){return _0x5da1e1(_0x2bffb8,_0x33b294-0x44c);}return _0x4f7762===_0x59898d;});}function isConfigFile(_0x1056a1){function _0x21804a(_0x1915b6,_0x1dc36b){return _0x232e2b(_0x1dc36b,_0x1915b6- -0x312);}const _0x22e941=[_0x21804a(0x169,0x108),_0x15b8c6(0x3b7,0x40e),_0x15b8c6(0x42a,0x435),_0x21804a(0x39,0x63),_0x21804a(0x12a,0x181),_0x15b8c6(0x3b5,0x419),'.cfg'];function _0x15b8c6(_0x3516de,_0x535c21){return _0x232e2b(_0x3516de,_0x535c21-0xb1);}return _0x22e941[_0x21804a(0xdf,0x6b)](_0x2bd273=>_0x1056a1['endsWith'](_0x2bd273));}function detectActualError(_0x13ce05,_0x23ef07){function _0x1d2b95(_0x17a181,_0x3be42c){return _0x905f23(_0x17a181- -0x380,_0x3be42c);}function _0x493667(_0xfba7bc,_0x379fc3){return _0x905f23(_0x379fc3- -0x3bd,_0xfba7bc);}if(_0x13ce05[_0x493667(0x63,0x3)]<0xc8)return![];const _0x16ab24=_0x23ef07?.[_0x1d2b95(0xfd,0x120)];if(_0x16ab24===_0x493667(0x83,0x6b))return![];const _0x4e7d7a=_0x13ce05[_0x1d2b95(0x130,0x1bf)+'e'](),_0x3d5a04=[_0x493667(0xf2,0xe8),_0x1d2b95(0x114,0x68),_0x1d2b95(0xfc,0xe4),_0x1d2b95(0x136,0x124),_0x493667(0x31,0x4f),_0x1d2b95(0x81,0xba),_0x1d2b95(0x111,0x16e),_0x493667(0xd8,0x2e),_0x1d2b95(0x152,0x1c1),'Traceback'],_0x2be51f=_0x3d5a04[_0x493667(0xf1,0xbe)](_0x24a344=>_0x13ce05[_0x1d2b95(0x9b,0xb2)](_0x24a344)||_0x4e7d7a['includes'](_0x24a344[_0x493667(0x5e,0xf3)+'e']()));if(!_0x2be51f)return![];const _0x2bb413=_0x23ef07?.[_0x1d2b95(0x61,0x87)]||_0x23ef07?.[_0x493667(0x1,0xb6)]||'';if(_0x2bb413[_0x493667(0x8a,0xf3)+'e']()[_0x1d2b95(0x9b,0x90)]('error')&&!_0x3d5a04[_0x493667(0x1d1,0x137)](0x2)[_0x1d2b95(0xfb,0x54)](_0x2b497f=>_0x4e7d7a[_0x1d2b95(0x9b,0x112)](_0x2b497f[_0x1d2b95(0x130,0x9a)+'e']())))return'oyUxm'!==_0x493667(0x1b6,0x12d)?'':![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x1f3f77,_0x44b80e){if(_0x44b80e)return _0x422c30(0x3f8,0x367)+_0x422c30(0x458,0x3b3);const _0x205ff3=_0x1f3f77[_0x274386(0xa3,0x10f)][_0x422c30(0x4eb,0x4db)+'e']();function _0x274386(_0x134356,_0x5c74d6){return _0x232e2b(_0x134356,_0x5c74d6- -0x212);}function _0x422c30(_0x104197,_0x7d626){return _0x232e2b(_0x7d626,_0x104197-0xc5);}const _0x2a40d4=_0x1f3f77[_0x274386(0x13a,0x10f)];if(_0x1f3f77[_0x422c30(0x4b8,0x567)]==='Bash'){if(_0x422c30(0x508,0x565)!=='NsraA'){const _0x125cb4=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m['test'](_0x1f3f77[_0x274386(0x133,0x10f)]);if(_0x125cb4)return _0x422c30(0x433,0x4a4);const _0x2ffef8=[_0x422c30(0x4a2,0x426),'decided',_0x422c30(0x46a,0x4c1),_0x422c30(0x4f6,0x46c),_0x274386(0x191,0x1f6),_0x422c30(0x453,0x468)];if(_0x2ffef8['some'](_0x4f0aba=>_0x205ff3[_0x274386(0x1d5,0x17f)](_0x4f0aba)))return _0x422c30(0x4c0,0x54c);const _0x413494=[_0x422c30(0x475,0x429),_0x274386(0x26c,0x238),_0x422c30(0x413,0x498),'rule',_0x274386(0x23f,0x207),_0x274386(0x19d,0x210)+_0x274386(0x1b7,0x14e)];if(_0x413494[_0x422c30(0x4b6,0x4c7)](_0x56fe3f=>_0x205ff3['includes'](_0x56fe3f)))return _0x422c30(0x475,0x520);if(LEARNING_KEYWORDS_RE['test'](_0x2a40d4))return'learning';}else _0x5ccfe2=typeof _0x312ed9[_0x274386(0x100,0x129)]===_0x422c30(0x44d,0x494)?_0x18b917['toolInput']:_0xf19a25;}if(_0x1f3f77[_0x422c30(0x4b8,0x418)]===_0x422c30(0x463,0x4f7)||_0x1f3f77[_0x422c30(0x4b8,0x4a3)]===_0x422c30(0x4d5,0x4d9)||_0x1f3f77[_0x422c30(0x4b8,0x4ec)]===_0x274386(0x1b2,0x1e5)){if(_0x274386(0xdb,0x194)===_0x422c30(0x511,0x5ad))_0x597ad7[_0x422c30(0x402,0x493)+'ing'](_0x2bbbd1['id'],_0xf39773);else return _0x274386(0x16c,0x15c);}if(_0x1f3f77['toolName']===_0x274386(0x1a9,0x252)||_0x1f3f77[_0x274386(0x164,0x1e1)]==='Edit'){const _0x62d527=extractFilePath(_0x1f3f77[_0x274386(0x7c,0x129)]),_0x58a719=_0x1f3f77[_0x422c30(0x3e6,0x465)];if(_0x62d527&&(_0x62d527[_0x274386(0x116,0x17f)](_0x274386(0xeb,0x196))||_0x62d527['includes'](_0x422c30(0x4f8,0x4c6)))){if('LBQHt'!=='LBQHt'){const _0x229225=_0x205795 instanceof _0x159b1e?_0x1cc9d4:new _0x2574a2(_0x6bb7e8(_0x539d65));_0x40fc38[_0x274386(0x73,0x110)](_0x274386(0x159,0x113)+_0x422c30(0x440,0x445)+'ed',_0x229225,{'category':_0x48f90d});}else return'context';}if(_0x58a719[_0x422c30(0x3fb,0x433)]<0x32||_0x58a719['toLowerCas'+'e']()[_0x422c30(0x456,0x415)]('file\x20writt'+_0x422c30(0x43a,0x407)+_0x274386(0xda,0x120))||_0x58a719[_0x422c30(0x4eb,0x570)+'e']()[_0x274386(0x1e0,0x17f)](_0x422c30(0x42c,0x423)+'ed')||_0x58a719['toLowerCas'+'e']()[_0x422c30(0x456,0x507)](_0x274386(0x1ff,0x185)+_0x274386(0x1a8,0x19d))){if(_0x274386(0x2fa,0x272)===_0x422c30(0x46f,0x4d3))_0x48b9f1[_0x274386(0x177,0x117)](_0xc9293e);else return'context';}if(LEARNING_KEYWORDS_RE[_0x274386(0x163,0x133)](_0x58a719))return _0x274386(0x248,0x237);return'code_patte'+'rn';}return _0x274386(0x131,0x15c);}function _0x232e2b(_0x412c2f,_0x14ad08){return _0x5041(_0x14ad08-0x1b6,_0x412c2f);}export function buildContent(_0x53febe){const _0x3f099a=extractFilePath(_0x53febe[_0x544cf6(0x188,0x13c)]);let _0x136cd9=_0x53febe[_0x544cf6(0x16e,0x21c)][_0x5de21d(0x8f,0xb8)](0x0,0x5dc)[_0x5de21d(0xa3,0x89)]();(_0x53febe['toolName']===_0x544cf6(0x2c3,0x374)||_0x53febe[_0x5de21d(0xb,0x41)]===_0x5de21d(0xfa,0xb2))&&_0x136cd9[_0x5de21d(0xdb,0xd5)]('{')&&(_0x136cd9=stripDiffContent(_0x136cd9));_0x53febe['toolName']===_0x544cf6(0x229,0x174)&&_0x136cd9['startsWith']('{')&&(_0x136cd9=extractBashContent(_0x136cd9));_0x136cd9[_0x5de21d(0x26,-0x7c)]>0x1f4&&(_0x136cd9['startsWith']('{')||_0x136cd9['startsWith']('['))&&(_0x136cd9=summarizeJsonResult(_0x136cd9));_0x136cd9=_0x136cd9[_0x5de21d(0xcd,0xb8)](0x0,0x3e8)[_0x5de21d(-0x12,0x89)]();if(!_0x136cd9||isNoiseResult(_0x136cd9))return'';const _0x59518=[];if(_0x3f099a)_0x59518['push'](_0x544cf6(0x16c,0x203)+_0x3f099a);_0x59518['push'](_0x136cd9);function _0x5de21d(_0x2c4c3b,_0x52dc71){return _0x905f23(_0x52dc71- -0x43c,_0x2c4c3b);}const _0x14604c=_0x59518[_0x5de21d(0x88,0x72)]('\x0a');function _0x544cf6(_0x48cbab,_0x49c23a){return _0x905f23(_0x48cbab- -0x23d,_0x49c23a);}if(_0x14604c['length']<0x14)return'';return _0x14604c;}function stripDiffContent(_0x105b81){function _0xc3e9d1(_0x16ca8a,_0x53b4da){return _0x232e2b(_0x53b4da,_0x16ca8a- -0x533);}function _0x1f1b51(_0xa5a533,_0x34ac84){return _0x232e2b(_0xa5a533,_0x34ac84- -0x31b);}try{const _0x5f3610=JSON['parse'](_0x105b81);if(_0x5f3610[_0x1f1b51(0xc4,0x143)]||_0x5f3610[_0x1f1b51(0x50,0xda)]||_0x5f3610[_0xc3e9d1(-0x15c,-0xb8)+_0x1f1b51(0x10b,0x88)]||_0x5f3610[_0xc3e9d1(-0x1e7,-0x238)]&&_0x5f3610['filePath']&&typeof _0x5f3610[_0xc3e9d1(-0x15d,-0xab)]===_0xc3e9d1(-0x1ab,-0x22a)){if('ayaNS'==='ayaNS')return'';else _0x3019be[_0xc3e9d1(-0x14f,-0xb6)]('DELETE\x20inv'+_0xc3e9d1(-0x17d,-0x1a2)+_0xc3e9d1(-0x125,-0x112)+_0xc3e9d1(-0x181,-0xd0)+'sset)',{'memoryId':_0x4a09e9['targetMemo'+'ry']['id'],'category':_0x2b4b7a[_0x1f1b51(0x64,0x9a)+'ry']['category']});}return _0x105b81;}catch{if(_0x105b81[_0xc3e9d1(-0x1a2,-0x1b7)](_0xc3e9d1(-0x1c1,-0x151)+'\x22')||_0x105b81[_0xc3e9d1(-0x1a2,-0x185)](_0x1f1b51(0x11c,0xaf)+'\x22')||_0x105b81[_0xc3e9d1(-0x1a2,-0x10f)](_0x1f1b51(0x27,0x5f)+'dPatch\x22')||_0x105b81[_0x1f1b51(0x69,0x76)](_0x1f1b51(0x137,0xbf))&&_0x105b81[_0xc3e9d1(-0x1a2,-0x23a)](_0x1f1b51(0x80,0x113))&&_0x105b81[_0xc3e9d1(-0x1a2,-0x118)](_0x1f1b51(0x55,0x70)))return'';return _0x105b81;}}function extractBashContent(_0x36a27c){function _0xbed5d4(_0x2a84ec,_0xa797f5){return _0x905f23(_0x2a84ec- -0x4bf,_0xa797f5);}function _0x58adfa(_0x1962b0,_0x412efd){return _0x905f23(_0x1962b0- -0x3e1,_0x412efd);}try{const _0x3ae3d9=JSON[_0x58adfa(-0x23,0x74)](_0x36a27c),_0x5a9c21=(_0x3ae3d9[_0x58adfa(0x49,0xd4)]||'')[_0x58adfa(0xe4,0xdb)](),_0x5a3a4e=(_0x3ae3d9['stderr']||'')[_0x58adfa(0xe4,0xe1)]();if(_0x5a3a4e&&_0x5a3a4e['length']>0xa)return _0x58adfa(0x67,0x1d)+_0x5a3a4e[_0x58adfa(0x113,0x17c)](0x0,0x1f4)+(_0x5a9c21?'\x0a[Output]\x20'+_0x5a9c21[_0xbed5d4(0x35,-0x5e)](0x0,0x12c):'');if(_0x5a9c21)return _0x5a9c21[_0xbed5d4(0x35,0xd4)](0x0,0x3e8);return _0x36a27c[_0xbed5d4(0x35,-0x10)](0x0,0x1f4);}catch{return _0x36a27c[_0x58adfa(0x113,0x11f)](0x0,0x3e8);}}function summarizeJsonResult(_0x1ceb15){function _0x581fcb(_0x67c638,_0x2a98af){return _0x905f23(_0x67c638- -0x3ac,_0x2a98af);}function _0x174cb5(_0xc94a17,_0xf80974){return _0x905f23(_0xf80974- -0x3e1,_0xc94a17);}try{if('BYfcg'===_0x581fcb(0xef,0x6c))_0x466769['flush']();else{const _0x519688=JSON[_0x581fcb(0x12,0xad)](_0x1ceb15);if(Array[_0x174cb5(-0xe7,-0x37)](_0x519688))return _0x174cb5(0xfe,0x110)+_0x519688[_0x581fcb(0x14,0x12)]+'\x20items]\x20'+JSON['stringify'](_0x519688[0x0])[_0x174cb5(0x1ae,0x113)](0x0,0xc8)+_0x174cb5(-0x23,-0x1d);const _0x39de2c=Object[_0x174cb5(0xee,0xf9)](_0x519688)['slice'](0x0,0xa),_0x10dc79=_0x39de2c[_0x174cb5(0x51,0x5c)](_0x2f0f69=>{const _0x4210b8=_0x519688[_0x2f0f69];function _0x4a9fdc(_0x294e3d,_0x24b8aa){return _0x581fcb(_0x294e3d-0x335,_0x24b8aa);}const _0x1b3a16=typeof _0x4210b8===_0x4a9fdc(0x39b,0x355)?_0x4210b8[_0x588f46(0x71d,0x69b)](0x0,0x50):JSON[_0x588f46(0x748,0x6a0)](_0x4210b8)[_0x588f46(0x661,0x69b)](0x0,0x50);function _0x588f46(_0xa526c0,_0x22dff4){return _0x581fcb(_0x22dff4-0x553,_0xa526c0);}return _0x2f0f69+':\x20'+_0x1b3a16;})[_0x581fcb(0x102,0x124)](',\x20');return _0x10dc79[_0x174cb5(0x1af,0x113)](0x0,0x320);}}catch{return _0x1ceb15['slice'](0x0,0x1f4);}}function isNoiseResult(_0x29a53b){const _0x224fe2=_0x29a53b[_0x104f96(0x304,0x38f)]();if(_0x224fe2[_0x3fadee(0xd2,0x154)]('{\x22stdout\x22:'))return!![];if(_0x224fe2['startsWith'](_0x3fadee(0x19f,0x127)+'\x22')||_0x224fe2[_0x3fadee(0xb4,0x154)](_0x3fadee(-0x24,0x16)+'h\x22'))return!![];if(_0x224fe2['includes'](_0x104f96(0x453,0x3bf)+_0x104f96(0x362,0x2c3)))return!![];if(_0x224fe2[_0x104f96(0x40e,0x3db)](_0x3fadee(0x148,0xe1)+_0x104f96(0x34d,0x3a5))||_0x224fe2[_0x3fadee(0x1ae,0x154)]('second_upt'+_0x104f96(0x357,0x316)))return!![];if(_0x224fe2[_0x3fadee(0x9e,0x154)](_0x3fadee(0xb8,0x14b))||_0x224fe2[_0x104f96(0x456,0x3db)](_0x104f96(0x234,0x2cd)))return!![];if(_0x224fe2[_0x104f96(0x35c,0x3db)](_0x104f96(0x240,0x2ae)+'mit]'))return!![];const _0x2b33ca=_0x224fe2[_0x3fadee(0x13f,0x137)](0x0,0xc8);function _0x104f96(_0x2c462e,_0x23e7ea){return _0x232e2b(_0x2c462e,_0x23e7ea- -0xac);}function _0x3fadee(_0x487430,_0x332350){return _0x232e2b(_0x487430,_0x332350- -0x333);}if(_0x2b33ca[_0x3fadee(0x6a,0x5e)](_0x104f96(0x413,0x369)+'healthy\x22')&&_0x2b33ca[_0x3fadee(0x8,0x5e)]('\x22uptime_se'+_0x3fadee(0x0,0x11)))return!![];const _0x3df6e8=_0x224fe2['split']('\x0a',0x1)[0x0],_0x4193d5=[/브랜치로\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(_0x4193d5[_0x3fadee(0xb,0xbe)](_0x2b5197=>_0x2b5197[_0x104f96(0x305,0x299)](_0x3df6e8)))return!![];const _0x5690a7=[/^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 _0x5690a7[_0x104f96(0x3e5,0x345)](_0x3b3723=>_0x3b3723['test'](_0x224fe2));}const TAG_BLOCKLIST=new Set(['id',_0x232e2b(0x45a,0x43e),_0x905f23(0x49d,0x51d),_0x232e2b(0x43c,0x42d),'set',_0x905f23(0x462,0x4dc),_0x905f23(0x4d0,0x511),_0x232e2b(0x2f5,0x337),'to','in','of','a','is',_0x905f23(0x3de,0x492),_0x232e2b(0x407,0x352),_0x232e2b(0x377,0x39f),_0x232e2b(0x32f,0x32f),_0x232e2b(0x4bf,0x48e),'map',_0x905f23(0x4c5,0x50d),_0x905f23(0x3d6,0x45c),_0x232e2b(0x40f,0x3d1),_0x232e2b(0x38f,0x32e),_0x905f23(0x4d1,0x4b9),_0x232e2b(0x307,0x345),_0x232e2b(0x3b1,0x3fb),_0x232e2b(0x2ec,0x333)+_0x232e2b(0x3cd,0x393),'code_patte'+'rn',_0x905f23(0x3f8,0x3ba),_0x905f23(0x43a,0x4e8),_0x905f23(0x503,0x4fe),_0x232e2b(0x3de,0x449),'project_kn'+_0x905f23(0x3ca,0x3ee),_0x232e2b(0x45d,0x464),_0x232e2b(0x400,0x476),_0x905f23(0x466,0x41b),'Read',_0x232e2b(0x49f,0x3f7),_0x232e2b(0x458,0x410),_0x232e2b(0x48c,0x42a),_0x905f23(0x4e3,0x527),_0x905f23(0x506,0x4c6),'write',_0x232e2b(0x3c0,0x473),_0x232e2b(0x41b,0x3ae),'read','glob',_0x905f23(0x50a,0x521),'task','webfetch',_0x232e2b(0x3fc,0x35b)]),STOPWORDS=new Set([_0x905f23(0x3c1,0x3f4),_0x905f23(0x42c,0x399),_0x232e2b(0x3dd,0x430),_0x232e2b(0x3a2,0x444),'were',_0x905f23(0x3ad,0x42d),_0x905f23(0x4d5,0x423),'has',_0x232e2b(0x374,0x3a1),_0x905f23(0x45a,0x496),'would',_0x905f23(0x444,0x42c),'should',_0x905f23(0x465,0x4de),'might','shall',_0x905f23(0x445,0x4a9),_0x905f23(0x3b5,0x364),'that',_0x905f23(0x3f3,0x389),_0x905f23(0x3de,0x45b),_0x905f23(0x446,0x3cc),_0x905f23(0x411,0x382),'into','through',_0x232e2b(0x3bc,0x362),_0x905f23(0x3ba,0x409),_0x232e2b(0x505,0x452),_0x232e2b(0x442,0x48c),_0x232e2b(0x328,0x37c),_0x232e2b(0x4c8,0x438),'each',_0x232e2b(0x41c,0x3f4),_0x905f23(0x4b5,0x431),'few',_0x905f23(0x45e,0x3b8),'most',_0x232e2b(0x4b4,0x418),'some',_0x232e2b(0x343,0x3c5),_0x905f23(0x4fb,0x456),'own',_0x905f23(0x3d4,0x3ab),_0x905f23(0x3f0,0x3c9),_0x232e2b(0x43a,0x3cb),_0x232e2b(0x3a1,0x3ec),_0x232e2b(0x42a,0x432),'also',_0x232e2b(0x3e7,0x3c6),_0x232e2b(0x3a0,0x351),_0x232e2b(0x3d2,0x47f),_0x905f23(0x3d9,0x37f),_0x905f23(0x4d8,0x424),_0x232e2b(0x41e,0x3ad),'them',_0x232e2b(0x2e7,0x395),_0x232e2b(0x39b,0x423),_0x905f23(0x3cc,0x39a),_0x232e2b(0x432,0x42f),_0x905f23(0x443,0x4e4),_0x232e2b(0x402,0x394),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0xc56091,_0x5caced=0x3){const _0x133ab9=_0xc56091[_0x2dc093(0x205,0x294)+'e']();function _0xc44262(_0x482ffa,_0x1818ff){return _0x905f23(_0x1818ff- -0x3a0,_0x482ffa);}const _0x46db7f=_0x133ab9[_0xc44262(0x190,0x175)](WORD_RE)||[],_0x485900=new Map();for(const _0x9862bf of _0x46db7f){if(_0x2dc093(0x196,0x1af)===_0x2dc093(0x1b0,0x1af)){if(_0x9862bf[_0xc44262(-0x4e,0x20)]<0x3)continue;if(STOPWORDS[_0xc44262(0xb1,0x10f)](_0x9862bf))continue;if(TAG_BLOCKLIST[_0x2dc093(0x2de,0x293)](_0x9862bf))continue;_0x485900['set'](_0x9862bf,(_0x485900['get'](_0x9862bf)||0x0)+0x1);}else{if(_0xf45bfa[_0x2dc093(0x1d7,0x1a4)]<0xc8)return![];const _0x416977=_0x25b75e?.[_0x2dc093(0x2ce,0x261)];if(_0x416977==='Read')return![];const _0x55e59b=_0x10827a[_0xc44262(0x148,0x110)+'e'](),_0x3266dd=[_0x2dc093(0x1f8,0x289),_0x2dc093(0x25b,0x278),_0x2dc093(0x1c3,0x260),'exception','Exception',_0xc44262(0x19,0x61),_0x2dc093(0x312,0x275),_0x2dc093(0x126,0x1cf),_0x2dc093(0x20e,0x2b6),_0x2dc093(0x2aa,0x21a)],_0x3e451f=_0x3266dd['some'](_0x47e500=>_0x381796[_0xc44262(0x11a,0x7b)](_0x47e500)||_0x55e59b[_0xc44262(-0x12,0x7b)](_0x47e500[_0x2dc093(0x219,0x294)+'e']()));if(!_0x3e451f)return![];const _0x3f8821=_0x219b8b?.[_0x2dc093(0x18a,0x1c5)]||_0x311c68?.['path']||'';if(_0x3f8821[_0x2dc093(0x254,0x294)+'e']()[_0x2dc093(0x212,0x1ff)](_0xc44262(0xa9,0xc))&&!_0x3266dd[_0x2dc093(0x226,0x2d8)](0x2)[_0x2dc093(0x218,0x25f)](_0x43e36a=>_0x55e59b[_0xc44262(0x2a,0x7b)](_0x43e36a[_0xc44262(0x157,0x110)+'e']())))return![];return!![];}}function _0x2dc093(_0x43fdbc,_0x7a4580){return _0x905f23(_0x7a4580- -0x21c,_0x43fdbc);}return[..._0x485900[_0x2dc093(0x388,0x2d6)]()]['sort']((_0x42fa29,_0x2840bf)=>_0x2840bf[0x1]-_0x42fa29[0x1])[_0x2dc093(0x2b3,0x2d8)](0x0,_0x5caced)[_0x2dc093(0x1ba,0x221)](([_0x584299])=>_0x584299);}function _0x5041(_0x3f36bc,_0x4fdfa2){_0x3f36bc=_0x3f36bc-0x168;const _0x1dc685=_0x1dc6();let _0x504106=_0x1dc685[_0x3f36bc];if(_0x5041['hVRwQO']===undefined){var _0x192c88=function(_0x566e9a){const _0x2219ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8026ee='',_0x2edccc='';for(let _0x208cfe=0x0,_0x55863a,_0x2169f8,_0x30eb35=0x0;_0x2169f8=_0x566e9a['charAt'](_0x30eb35++);~_0x2169f8&&(_0x55863a=_0x208cfe%0x4?_0x55863a*0x40+_0x2169f8:_0x2169f8,_0x208cfe++%0x4)?_0x8026ee+=String['fromCharCode'](0xff&_0x55863a>>(-0x2*_0x208cfe&0x6)):0x0){_0x2169f8=_0x2219ba['indexOf'](_0x2169f8);}for(let _0x4051f8=0x0,_0x23110a=_0x8026ee['length'];_0x4051f8<_0x23110a;_0x4051f8++){_0x2edccc+='%'+('00'+_0x8026ee['charCodeAt'](_0x4051f8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2edccc);};_0x5041['GTLDeG']=_0x192c88,_0x5041['XaPgWa']={},_0x5041['hVRwQO']=!![];}const _0x529654=_0x1dc685[0x0],_0x287615=_0x3f36bc+_0x529654,_0x4c6725=_0x5041['XaPgWa'][_0x287615];return!_0x4c6725?(_0x504106=_0x5041['GTLDeG'](_0x504106),_0x5041['XaPgWa'][_0x287615]=_0x504106):_0x504106=_0x4c6725,_0x504106;}function buildTags(_0x1fd2b4){function _0x438357(_0xd22caf,_0x99649e){return _0x232e2b(_0xd22caf,_0x99649e- -0x4c5);}const _0x363843=[],_0x2a84ba=extractFilePath(_0x1fd2b4[_0x5a97f3(0x14c,0x1be)]);function _0x5a97f3(_0x494be4,_0x3f70d3){return _0x232e2b(_0x3f70d3,_0x494be4- -0x1ef);}if(_0x2a84ba){const _0x153f0e=_0x2a84ba['split']('/')['filter'](Boolean),_0x392027=_0x153f0e['slice'](-0x3)[_0x438357(-0xfe,-0x19d)](_0x228a68=>_0x228a68[_0x5a97f3(0x147,0x1a2)]>0x2&&!TAG_BLOCKLIST['has'](_0x228a68[_0x5a97f3(0x237,0x290)+'e']()));for(const _0x135ff2 of _0x392027[_0x5a97f3(0x27b,0x2bc)](0x0,0x2)){const _0x114277=_0x135ff2[_0x438357(-0xab,-0xc9)](/\.[^.]+$/,'');_0x114277[_0x5a97f3(0x147,0x9c)]>0x2&&!TAG_BLOCKLIST[_0x438357(0x15,-0xa0)](_0x114277['toLowerCas'+'e']())&&_0x363843[_0x5a97f3(0x13a,0x14f)](_0x114277);}const _0x5c449b=_0x2a84ba[_0x438357(-0x76,-0xbc)]('.')[_0x438357(-0x149,-0x138)]();if(_0x5c449b){const _0x2bf966=_0x5c449b['toLowerCas'+'e']();if(!/^\d+$/[_0x438357(-0x159,-0x180)](_0x5c449b)&&_0x5c449b[_0x5a97f3(0x147,0x191)]>0x2&&!TAG_BLOCKLIST[_0x5a97f3(0x236,0x1a5)](_0x2bf966)){const _0x4aa6da=['md',_0x5a97f3(0x247,0x285),_0x5a97f3(0x1aa,0x130),_0x5a97f3(0x1ea,0x22c),_0x438357(-0x13a,-0x104),_0x438357(-0x10b,-0x62),_0x5a97f3(0x1fc,0x188),_0x438357(-0x1de,-0x1a1)];!_0x4aa6da[_0x5a97f3(0x1a2,0x10d)](_0x2bf966)&&('ESlfq'==='ESlfq'?_0x363843[_0x438357(-0xf5,-0x19c)](_0x5c449b):(_0x1f3f6d[_0x5a97f3(0x13a,0xc7)](..._0x52c5b1),_0x2ae1e1[_0x5a97f3(0x13a,0x1ba)](_0x265c43)));}}}if(_0x363843[_0x438357(-0x18d,-0x18f)]===0x0){if(_0x5a97f3(0x293,0x30a)!=='TcKUn')_0x39e565();else{const _0x4816d3=extractKeywords(_0x1fd2b4[_0x5a97f3(0x132,0x1ab)],0x3);_0x363843[_0x5a97f3(0x13a,0xfb)](..._0x4816d3);}}return _0x363843;}export async function main(){const _0x48c2f3=[];function _0x5b72e8(_0x2526a5,_0x7035b9){return _0x232e2b(_0x7035b9,_0x2526a5- -0x2df);}for await(const _0x1f2f83 of process[_0x5b72e8(0xa2,0x67)]){if(_0x42df8c(0x75,0x10e)===_0x5b72e8(0x74,0xc3)){_0x3ed9db[_0x5b72e8(0x105,0x103)](_0x5b72e8(0x99,0xb1)+_0x42df8c(0x93,0xfa)+_0x42df8c(0xc5,0xde)+'\x20content',{'toolName':_0x3d9fbb[_0x42df8c(0x46,0xc4)]});return;}else _0x48c2f3['push'](_0x1f2f83);}const _0x3b9752=Buffer[_0x5b72e8(0x9f,0x150)](_0x48c2f3)[_0x42df8c(0x4f,0x3e)](_0x5b72e8(0x17c,0x143))[_0x5b72e8(0x15c,0x140)]();function _0x42df8c(_0x260522,_0x318235){return _0x232e2b(_0x260522,_0x318235- -0x32f);}!_0x3b9752&&process[_0x5b72e8(0xe1,0x150)](0x0);try{if(_0x5b72e8(0x16e,0x141)!==_0x5b72e8(0x16e,0x148)){const _0x4bf306=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x5b72e8(0x66,0x10d)](_0xa907da[_0x5b72e8(0x42,-0x16)]);if(_0x4bf306)return _0x5b72e8(0x8f,0x39);const _0x388ab9=[_0x42df8c(0xc1,0xae),_0x5b72e8(0x126,0xd4),_0x42df8c(0x11c,0x76),_0x42df8c(0x135,0x102),'picked',_0x42df8c(0x9d,0x5f)];if(_0x388ab9[_0x5b72e8(0x112,0x159)](_0x5623cd=>_0x5cf430['includes'](_0x5623cd)))return _0x42df8c(0xf1,0xcc);const _0x35cfe1=['convention',_0x42df8c(0x11a,0x11b),_0x42df8c(0x2d,0x1f),_0x5b72e8(0x6e,0x62),_0x5b72e8(0x13a,0x15e),_0x5b72e8(0x143,0xa1)+'ice'];if(_0x35cfe1['some'](_0x593529=>_0xe665d5[_0x42df8c(0x4c,0x62)](_0x593529)))return _0x42df8c(0xeb,0x81);if(_0x4ea5b4[_0x42df8c(-0x6c,0x16)](_0x411305))return _0x5b72e8(0x16a,0x18a);}else{const _0x16e33e=JSON[_0x5b72e8(0x55,0x108)](_0x3b9752),_0xd5781e=normalizeHookInput(_0x16e33e);await handlePostToolUse(_0xd5781e);}}catch(_0x355adc){console['error'](_0x42df8c(0xca,0x82)+_0x42df8c(0x26,-0x11)+_0x42df8c(0x106,0xe3),_0x355adc instanceof Error?_0x355adc[_0x42df8c(0x1de,0x146)]:_0x355adc),process[_0x42df8c(0xb1,0x91)](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x232e2b(0x368,0x380)][0x1]?.[_0x905f23(0x3f4,0x346)](_0x905f23(0x42e,0x43a)+_0x905f23(0x433,0x473))||process[_0x905f23(0x40a,0x4a7)][0x1]?.[_0x905f23(0x3f4,0x3b0)](_0x232e2b(0x3e1,0x3a4)+'use.ts');isMainModule&&main();
|
|
1
|
+
(function(_0xadf84f,_0x3d7904){function _0x276d74(_0x402161,_0x9ae73d){return _0x1f2b(_0x402161- -0x3c6,_0x9ae73d);}function _0x8c8cd2(_0x371053,_0x5780fa){return _0x1f2b(_0x5780fa- -0x9d,_0x371053);}const _0x1cefca=_0xadf84f();while(!![]){try{const _0x756da4=-parseInt(_0x8c8cd2(0xcb,0x73))/0x1*(-parseInt(_0x276d74(-0x1a5,-0x17f))/0x2)+parseInt(_0x276d74(-0x249,-0x241))/0x3*(parseInt(_0x8c8cd2(0x134,0x123))/0x4)+-parseInt(_0x8c8cd2(0x1f8,0x15c))/0x5*(-parseInt(_0x276d74(-0x1be,-0x1c4))/0x6)+parseInt(_0x8c8cd2(0x110,0xec))/0x7*(-parseInt(_0x276d74(-0x301,-0x2d7))/0x8)+-parseInt(_0x8c8cd2(0x7d,0xde))/0x9*(-parseInt(_0x8c8cd2(0x122,0xa4))/0xa)+parseInt(_0x8c8cd2(-0x24,0x61))/0xb+-parseInt(_0x8c8cd2(0xc6,0x148))/0xc;if(_0x756da4===_0x3d7904)break;else _0x1cefca['push'](_0x1cefca['shift']());}catch(_0x5dc812){_0x1cefca['push'](_0x1cefca['shift']());}}}(_0x2f5d,0x652ab));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 _0x10c647(_0x372444,_0x315548){return _0x1f2b(_0x315548- -0x319,_0x372444);}import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':_0x1163e9(0x539,0x52f),'code_pattern':_0x1163e9(0x42a,0x455),'decision':_0x1163e9(0x42e,0x4a7),'context':_0x10c647(-0x1ad,-0x249),'project_knowledge':_0x10c647(-0x1ab,-0x24d),'convention':_0x1163e9(0x4b4,0x54f),'learning':_0x10c647(-0x1cd,-0x13e),'skill':'procedure','rule':'procedure'},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x24b6d6){function _0xe276ba(_0x2299da,_0x542c9d){return _0x10c647(_0x2299da,_0x542c9d-0x246);}const _0x2afc92=performance[_0x528b95(0x183,0x1a1)]();function _0x528b95(_0x42be0f,_0x1b906f){return _0x10c647(_0x1b906f,_0x42be0f-0x377);}const _0x3486da=new ConfigManager()['load'](),_0x3edb09=performance[_0xe276ba(0xc2,0x52)](),_0x45a8aa=createLogger(_0x528b95(0x14c,0x1c8)+'e',_0x3486da['logging']);try{_0x45a8aa['info'](_0xe276ba(-0x1b,0x53)+'ed',{'toolName':_0x24b6d6['toolName']});if(!_0x3486da[_0xe276ba(0x147,0xcc)+'e'][_0xe276ba(0x83,0x114)]){_0x45a8aa[_0xe276ba(0xe6,0xd1)](_0x528b95(0x141,0x157)+'re\x20disable'+'d');return;}if(!_0x3486da[_0x528b95(0x1fd,0x190)+'e'][_0xe276ba(0x7,0x24)]['includes'](_0x24b6d6['toolName'])){_0x45a8aa[_0x528b95(0x25a,0x20a)]('Tool\x20not\x20i'+'n\x20triggers',{'toolName':_0x24b6d6[_0xe276ba(0xc4,0x61)]});return;}const _0x2f242b=extractFilePath(_0x24b6d6['toolInput']);if(_0x2f242b&&isSensitiveFile(_0x2f242b,_0x3486da[_0xe276ba(0xf5,0xcc)+'e'][_0x528b95(0x248,0x21d)+'terns'])){_0x45a8aa[_0x528b95(0x202,0x29d)](_0x528b95(0x175,0x1a5)+_0x528b95(0x173,0x1af)+_0xe276ba(0x146,0x12f),{'filePath':_0x2f242b});return;}if(_0x2f242b&&isClaudeMemoryFile(_0x2f242b)&&(_0x24b6d6[_0xe276ba(0x99,0x61)]===_0x528b95(0x215,0x1f7)||_0x24b6d6[_0xe276ba(0x55,0x61)]===_0x528b95(0x159,0x187))){const _0x5930a0=performance[_0xe276ba(0x16,0x52)]();try{const _0x18cfc9=getSharedDb(_0x3486da['db'][_0xe276ba(0x9e,0xf2)]),{syncClaudeMd:_0x30beaf}=await import(_0xe276ba(0x88,0x62)+'sync.js');await _0x30beaf(_0x18cfc9,{'claudeMdPath':_0x2f242b,'projectPath':_0x24b6d6['projectPat'+'h']});const _0x45fcfa=performance[_0xe276ba(0x70,0x52)](),_0x3bbfaf=Math[_0x528b95(0x1fc,0x298)](_0x45fcfa-_0x2afc92),_0x420c37=Math[_0xe276ba(0x30,0xcb)](_0x45fcfa-_0x5930a0),_0x1f8915=Math[_0x528b95(0x1fc,0x196)](_0x3edb09-_0x2afc92);process[_0x528b95(0x1cf,0x245)][_0xe276ba(0x12c,0xd5)](_0xe276ba(0xaf,0x8d)+_0x528b95(0x1c6,0x153)+_0x528b95(0x242,0x1ad)+_0xe276ba(0x132,0xbc)+_0x3bbfaf+(_0x528b95(0x150,0xf2)+_0x528b95(0x16a,0x115))+_0x1f8915+('ms,\x20claude'+_0x528b95(0x230,0x191))+_0x420c37+'ms)\x0a'),_0x45a8aa[_0xe276ba(0x8c,0xd1)]('Claude\x20mem'+_0xe276ba(0x126,0x81)+_0x528b95(0x19e,0x185),{'filePath':_0x2f242b});}catch(_0x3de680){_0x45a8aa[_0x528b95(0x162,0xd1)]('Claude\x20mem'+_0xe276ba(0x5b,0xdf)+_0x528b95(0x187,0x165),{'error':_0x3de680 instanceof Error?_0x3de680['message']:String(_0x3de680)});}return;}const _0x5b94ab=performance['now'](),_0x2332d3={'uuid':_0x24b6d6[_0x528b95(0x280,0x320)],'type':_0xe276ba(0x10b,0x13d),'message':{'role':'assistant','content':_0x24b6d6[_0x528b95(0x276,0x28d)]},'timestamp':new Date()['toISOStrin'+'g']()},_0x39cd20=_0x24b6d6[_0xe276ba(0x33,0x61)]===_0xe276ba(0x77,0xe4),_0x2fff79=_0x2f242b?isConfigFile(_0x2f242b):![],_0x22c205=detectActualError(_0x24b6d6['toolResult'],_0x24b6d6[_0xe276ba(0xfa,0x50)]);let _0x301012;if(_0x24b6d6['toolName']===_0x528b95(0x17c,0x174)&&_0x24b6d6[_0xe276ba(-0x4b,0x50)]){if(_0xe276ba(0x85,0xea)===_0x528b95(0x268,0x2d1)){const _0x50efd8=_0x4326ac[_0x118b3],_0x5a29a3=typeof _0x50efd8===_0xe276ba(0x5c,0xf9)?_0x50efd8[_0xe276ba(0x4d,0xd)](0x0,0x50):_0x5a2709['stringify'](_0x50efd8)[_0x528b95(0x13e,0x134)](0x0,0x50);return _0x36482d+':\x20'+_0x5a29a3;}else try{const _0x3c526a=typeof _0x24b6d6[_0x528b95(0x181,0x217)]===_0x528b95(0x22a,0x26c)?JSON[_0x528b95(0x283,0x217)](_0x24b6d6[_0x528b95(0x181,0x227)]):_0x24b6d6[_0xe276ba(0x72,0x50)];_0x301012=_0x3c526a?.[_0x528b95(0x19a,0x121)]??_0x3c526a?.[_0xe276ba(0x68,0x88)]??(typeof _0x3c526a===_0xe276ba(0x18d,0xf9)?_0x3c526a:undefined);}catch{_0x301012=typeof _0x24b6d6[_0x528b95(0x181,0x190)]===_0x528b95(0x22a,0x1f6)?_0x24b6d6[_0x528b95(0x181,0x1f9)]:undefined;}}const _0x573537=scoreSignificance(_0x2332d3,{'toolName':_0x24b6d6[_0xe276ba(-0x4,0x61)],'isNewFile':_0x39cd20,'isConfigChange':_0x2fff79,'hasError':_0x22c205,'bashCommand':_0x301012},_0x3486da['autoCaptur'+'e'][_0xe276ba(0xe,0x60)+'ceThreshol'+'d']),_0x365d89=performance[_0xe276ba(0x9c,0x52)](),_0x1abdaa=_0x3486da[_0x528b95(0x1fd,0x210)+'e']['significan'+_0x528b95(0x152,0x13d)+'d']*0.5;_0x45a8aa[_0xe276ba(0x6b,0xd1)](_0xe276ba(0x4c,0x0)+_0xe276ba(0xa2,0x146),{'toolName':_0x24b6d6[_0xe276ba(0x10f,0x61)],'score':_0x573537[_0xe276ba(0xc3,0x148)],'shouldCapture':_0x573537[_0x528b95(0x279,0x1e5)]>=_0x1abdaa});if(_0x573537['totalScore']<_0x1abdaa)return;const _0x47a1b7=determineCategory(_0x24b6d6,_0x22c205),_0x174ba9=buildContent(_0x24b6d6);if(!_0x174ba9){_0x45a8aa[_0x528b95(0x202,0x1e7)](_0xe276ba(0xdf,0xc7)+_0xe276ba(0x133,0xef)+_0xe276ba(0xa6,-0x6)+_0x528b95(0x15e,0xbd),{'toolName':_0x24b6d6[_0x528b95(0x192,0x138)]});return;}const _0x2def80=filterSensitiveInfo(_0x174ba9);let _0x3210f9;if(_0x22c205)_0x3210f9=_0x528b95(0x261,0x261);else _0x573537['totalScore']<_0x3486da[_0xe276ba(0x60,0xcc)+'e'][_0xe276ba(-0x6,0x60)+_0xe276ba(0x8a,0x21)+'d']?_0x3210f9=_0xe276ba(-0x4f,0x34):_0x3210f9='semantic';const _0x1bd7e3={'content':_0x2def80['filtered'],'category':_0x47a1b7,'tier':_0x3210f9,'tags':buildTags(_0x24b6d6),'projectPath':_0x24b6d6[_0x528b95(0x254,0x2d2)+'h'],'sessionId':_0x24b6d6[_0xe276ba(0x1dd,0x14f)],'memoryType':CATEGORY_TYPE_MAP[_0x47a1b7]??'fact'},_0x2c08ef=getSharedDb(_0x3486da['db'][_0x528b95(0x223,0x2b0)]),_0x38cbe0=performance[_0x528b95(0x183,0xf8)](),_0x164906=new DedupManager(),_0xd4cebc=_0x164906[_0x528b95(0x1e1,0x276)+_0xe276ba(0x2b,0xc5)](_0x2c08ef[_0x528b95(0x247,0x26a)+'es']({'projectPath':_0x24b6d6[_0x528b95(0x254,0x23a)+'h'],'limit':0x32,'excludeParents':!![]}),_0x47a1b7,_0x24b6d6[_0xe276ba(0x133,0x123)+'h']),_0x3fbc5f=_0x164906[_0xe276ba(0x59,-0x8)](_0x2def80[_0xe276ba(-0x81,-0x4)],_0xd4cebc),_0x3591d7=performance[_0xe276ba(0x71,0x52)]();_0x45a8aa['info']('Dedup\x20deci'+_0x528b95(0x13d,0x127),{'action':_0x3fbc5f[_0x528b95(0x25e,0x2fd)],'similarity':_0x3fbc5f[_0xe276ba(0xc6,0xab)]});const _0x535fab=performance[_0xe276ba(-0x51,0x52)]();let _0x42ee8b;try{if(_0xe276ba(0x8f,0x5c)!==_0xe276ba(0x3e,0x5c))return null;else switch(_0x3fbc5f['action']){case _0x528b95(0x1ab,0x11b):_0x45a8aa[_0xe276ba(0x3f,0xd1)]('Memory\x20ski'+_0x528b95(0x1f9,0x1d8)+'icate)',{'similarity':_0x3fbc5f[_0xe276ba(0xe1,0xab)]});return;case _0xe276ba(0x88,0x10d):if(_0x3fbc5f['targetMemo'+'ry']){if('piDQi'!=='lDfPv'){const _0x4147d7=_0x164906[_0xe276ba(0xd4,0x86)+'nt'](_0x3fbc5f[_0xe276ba(0xd1,0x11b)+'ry']['content'],_0x2def80[_0x528b95(0x12d,0x1cb)]);if(_0x4147d7[_0xe276ba(0x80,0x8)]){_0x42ee8b=_0x2c08ef[_0xe276ba(0xd7,0x70)+'ry'](_0x1bd7e3);_0x3210f9!==_0x528b95(0x165,0x121)&&_0x2c08ef['setSyncSta'+_0xe276ba(0x1dc,0x143)](_0x42ee8b['id'],null,_0x528b95(0x13b,0xfc));_0x45a8aa[_0x528b95(0x202,0x171)](_0xe276ba(0x143,0xa7)+'ed\x20instead'+_0x528b95(0x1d3,0x19b)+_0x528b95(0x22b,0x2aa)+_0x528b95(0x20a,0x2a8),{'targetId':_0x3fbc5f[_0x528b95(0x24c,0x250)+'ry']['id'],'newId':_0x42ee8b['id'],'targetLength':_0x3fbc5f['targetMemo'+'ry']['content'][_0x528b95(0x163,0x1e7)],'wouldBeLength':_0x4147d7[_0xe276ba(0xde,0x12a)+_0x528b95(0x1bd,0x24f)]});break;}_0x2c08ef['updateMemo'+'ry'](_0x3fbc5f['targetMemo'+'ry']['id'],{'content':_0x4147d7['content'],'tags':[...new Set([..._0x3fbc5f[_0xe276ba(0xd0,0x11b)+'ry'][_0x528b95(0x199,0x199)]||[],...buildTags(_0x24b6d6)])]}),_0x45a8aa[_0xe276ba(0x124,0xd1)]('Memory\x20upd'+'ated\x20(merg'+_0xe276ba(0x174,0x14c),{'memoryId':_0x3fbc5f[_0x528b95(0x24c,0x20e)+'ry']['id']});}else{for(const [_0x26159a,_0x13a017]of _0x5591e8['entries'](_0x263f21['keywordMap'])){const _0x3577a3=_0x13a017[_0xe276ba(0x11f,0x134)](_0x59a61b=>_0xd5265c[_0x528b95(0x1f1,0x14d)](_0x59a61b));_0x3577a3[_0x528b95(0x163,0x169)]>0x0&&(_0x5cd625[_0xe276ba(-0x13,0x5b)](..._0x3577a3),_0x26affa[_0x528b95(0x18c,0xf3)](_0x26159a));}_0x5035db=[...new _0x270504(_0x3881d1)],_0x1a4c43=[...new _0x13c7dc(_0x20b514)];}}return;case _0x528b95(0x251,0x281):{if(_0x3fbc5f[_0x528b95(0x24c,0x19e)+'ry']){if(isProtectedFromCleanup(_0x3fbc5f[_0x528b95(0x24c,0x204)+'ry']))_0x45a8aa['info'](_0x528b95(0x244,0x2c2)+_0xe276ba(0x46,0x37)+'skipped\x20(p'+'rotected\x20a'+_0x528b95(0x20b,0x267),{'memoryId':_0x3fbc5f[_0x528b95(0x24c,0x19a)+'ry']['id'],'category':_0x3fbc5f[_0x528b95(0x24c,0x22d)+'ry']['category']});else{if(_0x528b95(0x26b,0x2b8)!=='NlBNi')return'';else _0x2c08ef[_0x528b95(0x1e8,0x224)+'ry'](_0x3fbc5f[_0xe276ba(0xb3,0x11b)+'ry']['id'],{'invalidAt':new Date()['toISOStrin'+'g']()}),_0x45a8aa[_0xe276ba(0x141,0xd1)](_0xe276ba(0x81,0x121)+_0x528b95(0x144,0xca)+_0xe276ba(0x38,0xee),{'memoryId':_0x3fbc5f[_0x528b95(0x24c,0x2e9)+'ry']['id']});}}_0x42ee8b=_0x2c08ef[_0xe276ba(0x76,0x70)+'ry'](_0x1bd7e3);_0x3210f9!==_0x528b95(0x165,0x1ad)&&_0x2c08ef[_0x528b95(0x14a,0x1b4)+_0x528b95(0x274,0x31f)](_0x42ee8b['id'],null,'pending');_0x45a8aa[_0x528b95(0x202,0x229)](_0xe276ba(0x25,-0xa)+_0xe276ba(-0x27,-0x13)+_0x528b95(0x1ad,0x1a4),{'category':_0x47a1b7,'memoryId':_0x42ee8b['id']});break;}case _0x528b95(0x15b,0xdc):default:_0x42ee8b=_0x2c08ef[_0x528b95(0x1a1,0x184)+'ry'](_0x1bd7e3);_0x3210f9!=='working'&&_0x2c08ef['setSyncSta'+_0xe276ba(0x16e,0x143)](_0x42ee8b['id'],null,'pending');_0x45a8aa[_0x528b95(0x202,0x172)]('Memory\x20cap'+_0xe276ba(-0x27,0x1),{'category':_0x47a1b7,'memoryId':_0x42ee8b['id']});break;}}catch(_0xccb05a){const _0x5687a4=_0xccb05a instanceof Error?_0xccb05a:new Error(String(_0xccb05a));_0x45a8aa[_0xe276ba(0x3e,0x38)]('Memory\x20cre'+_0xe276ba(0xcb,0x43)+'ed',_0x5687a4,{'category':_0x47a1b7});}const _0x20a8d0=performance[_0xe276ba(-0x42,0x52)]();if(_0x42ee8b&&_0x3486da[_0xe276ba(0x39,0x4a)]?.[_0xe276ba(0xc2,0x114)]&&_0x3486da[_0x528b95(0x17b,0xe2)][_0xe276ba(0x119,0xb5)]===_0x528b95(0x122,0x1a2)){if('MAdkx'===_0x528b95(0x1c8,0x17d))_0x3331d3[_0x528b95(0x209,0x24d)+_0x528b95(0x22c,0x2b0)]({'memoryId':_0x5a9fdf['id'],'sessionId':_0x2b0350['sessionId'],'significanceScore':_0x326e12[_0xe276ba(0xba,0x148)],'dedupAction':_0x22041f[_0x528b95(0x25e,0x302)],'tier':_0x5f16cc});else try{if(_0xe276ba(0x127,0x82)==='aHTLg')_0x5068c1['push'](..._0x17d487),_0xb4159d[_0x528b95(0x18c,0x1a9)](_0x360af0);else{const {createEmbeddingProvider:_0x3d9939}=await import(_0xe276ba(0x1e2,0x13e)+_0xe276ba(0xd7,0x3b)+'s'),_0x240643=_0x3d9939(_0x3486da['embedding'],_0x3486da[_0x528b95(0x124,0x114)]),_0x114a86=await Promise[_0x528b95(0x270,0x2ef)](_0x240643['embed'](_0x42ee8b[_0xe276ba(0xff,0x102)]));Array['isArray'](_0x114a86)&&_0x2c08ef[_0x528b95(0x15f,0x157)+'ing'](_0x42ee8b['id'],_0x114a86);}}catch(_0x5bef41){_0x45a8aa[_0x528b95(0x162,0x1ba)](_0x528b95(0x19d,0x226)+_0x528b95(0x198,0x176),{'error':_0x5bef41 instanceof Error?_0x5bef41[_0xe276ba(0xb0,0x4e)]:String(_0x5bef41)});}}try{const _0x2759b7=_0x2c08ef['getLatestI'+_0x528b95(0x1b8,0x13a)](_0x24b6d6[_0xe276ba(0x181,0x14f)]);if(_0x2759b7&&_0x2759b7[_0xe276ba(0x11f,0xf7)+'ywords']){const _0xc63808=(_0x24b6d6[_0x528b95(0x192,0x20b)]+'\x20'+JSON[_0x528b95(0x133,0x13e)](_0x24b6d6['toolInput'])+'\x20'+String(_0x24b6d6[_0x528b95(0x276,0x2c2)]))[_0x528b95(0x157,0x170)+'e'](),{parseInjectedKeywords:_0x62223c}=await import('./shared.j'+'s'),_0xb857c6=_0x62223c(_0x2759b7[_0x528b95(0x228,0x176)+_0x528b95(0x1af,0x176)]);let _0x364f4c=[],_0xd232ca=[];if(_0xb857c6[_0xe276ba(0x82,-0x11)]){for(const [_0x5b18fb,_0x416349]of Object[_0xe276ba(-0xc2,-0x14)](_0xb857c6[_0x528b95(0x237,0x2c4)])){const _0x55470f=_0x416349[_0x528b95(0x265,0x1d7)](_0x26e21f=>_0xc63808['includes'](_0x26e21f));if(_0x55470f[_0x528b95(0x163,0xd8)]>0x0){if(_0x528b95(0x13f,0x16b)===_0xe276ba(-0x5d,0xe))_0x364f4c[_0x528b95(0x18c,0x211)](..._0x55470f),_0xd232ca[_0xe276ba(0xcd,0x5b)](_0x5b18fb);else{const _0x424f54=_0x2e6cda[_0xe276ba(0x6d,0x76)](/\.[^.]+$/,'');_0x424f54[_0x528b95(0x163,0x142)]>0x2&&!_0x5094de[_0x528b95(0x137,0x17d)](_0x424f54[_0x528b95(0x157,0x19c)+'e']())&&_0x80847[_0xe276ba(-0x17,0x5b)](_0x424f54);}}}_0x364f4c=[...new Set(_0x364f4c)],_0xd232ca=[...new Set(_0xd232ca)];}else _0x364f4c=_0xb857c6[_0x528b95(0x142,0x145)]['filter'](_0x48a270=>_0xc63808[_0xe276ba(0x56,0xc0)](_0x48a270));_0x364f4c[_0xe276ba(0x7b,0x32)]>0x0&&_0x2c08ef[_0xe276ba(0x4c,0x23)+_0x528b95(0x20c,0x28c)](_0x2759b7['id'],_0x364f4c,_0x24b6d6[_0xe276ba(0x57,0x61)],_0xd232ca);}}catch{}if(_0x42ee8b&&(_0x3fbc5f[_0x528b95(0x25e,0x1dd)]===_0x528b95(0x15b,0xf8)||_0x3fbc5f[_0xe276ba(0x8e,0x12d)]===_0xe276ba(0x79,0x120)))try{_0x2c08ef['recordExtr'+_0xe276ba(0x1a8,0xfb)]({'memoryId':_0x42ee8b['id'],'sessionId':_0x24b6d6[_0xe276ba(0x17e,0x14f)],'significanceScore':_0x573537[_0x528b95(0x279,0x269)],'dedupAction':_0x3fbc5f[_0x528b95(0x25e,0x24c)],'tier':_0x3210f9});}catch{}if(_0x42ee8b&&_0x42ee8b[_0xe276ba(0xa3,0x4a)]&&_0x3486da[_0xe276ba(0x113,0xd6)+_0xe276ba(0x168,0x119)]?.[_0x528b95(0x245,0x1a7)])try{const {SkillEvaluator:_0x1fe948}=await import(_0x528b95(0x1c4,0x254)+_0x528b95(0x135,0x145)+'s'),_0xa4f5ab=new _0x1fe948(_0x2c08ef,_0x3486da),_0x574a97=_0xa4f5ab[_0x528b95(0x214,0x17d)+_0xe276ba(0x64,0xa0)](_0x42ee8b);_0x574a97[_0x528b95(0x1ae,0x155)]&&_0x45a8aa[_0xe276ba(0x27,0xd1)](_0xe276ba(0xf8,0xde)+'orbed\x20into'+_0xe276ba(0x13d,0xc6),{'memoryId':_0x42ee8b['id'],'skillId':_0x574a97['skillId']});}catch{}const _0x3c3c7a=performance['now']();let _0x13ac46=0x0;const _0x126a00=_0x3486da['frozenSnap'+_0x528b95(0x166,0xf5)]?.['enabled']!==![]&&_0x3486da[_0xe276ba(0x57,0xae)+'shot']?.['midSession'+_0xe276ba(0xc3,0xc2)]!==!![];if(_0x3486da[_0x528b95(0x234,0x19e)]?.['enabled']&&_0x3486da[_0x528b95(0x200,0x1fe)]?.[_0xe276ba(0x2f,0x9c)]&&!_0x126a00){try{const _0x12e1c2=_0x2c08ef['getPending'+_0x528b95(0x23f,0x228)]();if(_0x12e1c2>=AUTO_SYNC_THRESHOLD){if('AYvEA'===_0xe276ba(0x187,0xf8)){const _0x3ff7ec=createHookClient(_0x3486da);if(_0x3ff7ec){const _0x3019b4=new SyncQueue(_0x2c08ef,_0x3ff7ec),_0x4a4e07=await _0x3019b4[_0x528b95(0x134,0xc1)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});if(_0x4a4e07[_0x528b95(0x1b6,0x232)]>0x0){if('hCFds'!==_0xe276ba(0x123,0xbe)){_0x2141f5[_0x528b95(0x202,0x1b6)](_0x528b95(0x141,0xf5)+_0x528b95(0x1e5,0x1a2)+'d');return;}else _0x45a8aa[_0x528b95(0x202,0x182)](_0xe276ba(0xe,0x3a)+_0xe276ba(0x51,0x85),{'pushed':_0x4a4e07[_0x528b95(0x1b6,0x1bf)],'pending':_0x12e1c2}),console[_0x528b95(0x169,0x214)]('[a2a]\x20Auto'+_0xe276ba(0xad,-0x2)+_0x4a4e07[_0x528b95(0x1b6,0x174)]+'\x20memories');}}}else{if(typeof _0x4da4a7[_0x528b95(0x1bf,0x1be)]===_0x528b95(0x22a,0x2b7))return _0x2b0a6['file_path'];if(typeof _0x241893[_0x528b95(0x223,0x2ac)]===_0x528b95(0x22a,0x24c))return _0x444015[_0x528b95(0x223,0x195)];}}}catch(_0x419130){_0x45a8aa[_0x528b95(0x162,0xc3)]('Auto-sync\x20'+'failed',{'error':_0x419130 instanceof Error?_0x419130[_0x528b95(0x17f,0x166)]:String(_0x419130)});}_0x13ac46=Math[_0x528b95(0x1fc,0x15d)](performance[_0x528b95(0x183,0x153)]()-_0x3c3c7a);}else _0x3486da[_0xe276ba(0x189,0x103)]?.[_0x528b95(0x245,0x2d4)]&&_0x3486da['server']?.[_0xe276ba(0x24,0x9c)]&&_0x126a00&&_0x45a8aa[_0xe276ba(0x8c,0x129)](_0xe276ba(0xb1,0x105)+_0xe276ba(0x95,0x71)+_0x528b95(0x25c,0x20b)+_0xe276ba(0x95,0xfe)+'nc\x20deferre'+_0x528b95(0x1e2,0x189)+_0x528b95(0x21d,0x20a));const _0x37ef58=Math[_0xe276ba(0x7a,0xcb)](performance[_0x528b95(0x183,0x15f)]()-_0x2afc92),_0x2e4c1f=Math[_0x528b95(0x1fc,0x2a8)](_0x3edb09-_0x2afc92),_0x1937af=Math[_0xe276ba(0xbd,0xcb)](_0x365d89-_0x5b94ab),_0x17261f=Math[_0x528b95(0x1fc,0x233)](_0x3591d7-_0x38cbe0),_0x1f88be=Math[_0xe276ba(0x14a,0xcb)](_0x20a8d0-_0x535fab),_0x238de7=_0x13ac46>0x0?_0xe276ba(0x16,-0xc)+_0x13ac46+'ms':'';process[_0x528b95(0x1cf,0x137)][_0x528b95(0x206,0x24e)]('[A2A]\x20Post'+_0x528b95(0x1c6,0x140)+_0x528b95(0x242,0x258)+_0xe276ba(0x15c,0xbc)+_0x37ef58+('ms\x20|\x20confi'+_0xe276ba(-0x6f,0x39))+_0x2e4c1f+(_0xe276ba(0x1d4,0x13c)+_0x528b95(0x259,0x2eb))+_0x1937af+(_0xe276ba(0x11,0x4d)+'\x20')+_0x17261f+_0xe276ba(0x124,0x153)+_0x1f88be+'ms'+_0x238de7+')\x0a'),_0x45a8aa[_0x528b95(0x202,0x295)](_0xe276ba(0x1d2,0x151)+'eted',{'durationMs':_0x37ef58});}finally{_0x45a8aa[_0xe276ba(0x11,0x3)]();}}function extractFilePath(_0x435cb3){let _0x462115=_0x435cb3;function _0x2ab94d(_0x17b85c,_0x268e44){return _0x1163e9(_0x17b85c- -0x52e,_0x268e44);}function _0x38adb9(_0x3d2a19,_0x5a1d4d){return _0x1163e9(_0x3d2a19- -0x3bd,_0x5a1d4d);}if(typeof _0x462115===_0x2ab94d(-0x4,-0x27))try{_0x2ab94d(-0x102,-0x54)!==_0x2ab94d(-0x12,0x7)?_0x462115=JSON[_0x2ab94d(0x55,0x2a)](_0x462115):_0x1b4c3a=_0x2ab94d(-0xc9,-0x13f);}catch{return null;}if(typeof _0x462115===_0x38adb9(0xdf,0x11a)&&_0x462115!==null){if(typeof _0x462115[_0x38adb9(0x102,0x8d)]===_0x38adb9(0x16d,0xed))return _0x462115[_0x2ab94d(-0x6f,-0x10)];if(typeof _0x462115[_0x38adb9(0x166,0x1af)]==='string')return _0x462115['path'];}return null;}function isSensitiveFile(_0x4b06d5,_0x45b68e){function _0x2cd4ce(_0x55d61a,_0x41fffe){return _0x1163e9(_0x41fffe- -0x161,_0x55d61a);}function _0x3758ff(_0x4ce237,_0x25c4d9){return _0x1163e9(_0x4ce237- -0x741,_0x25c4d9);}const _0x4c277d=_0x4b06d5[_0x3758ff(-0x30b,-0x391)]('/')[_0x2cd4ce(0x3f8,0x350)]()??'';return _0x45b68e['some'](_0x13f398=>{function _0x49a637(_0x87cc95,_0x4a4d69){return _0x3758ff(_0x87cc95-0x7b4,_0x4a4d69);}function _0x3af5fd(_0x351f46,_0x43d740){return _0x3758ff(_0x351f46-0x79f,_0x43d740);}if('Bmjkx'===_0x3af5fd(0x4bb,0x554))return _0x3af5fd(0x528,0x4c0);else{if(_0x13f398['startsWith']('*'))return _0x4c277d[_0x3af5fd(0x58f,0x57e)](_0x13f398['slice'](0x1));if(_0x13f398['endsWith']('*'))return _0x4c277d[_0x49a637(0x5d0,0x5c5)](_0x13f398['slice'](0x0,-0x1));return _0x4c277d===_0x13f398;}});}function isConfigFile(_0x227409){function _0x237206(_0x4d0bf7,_0x5b936e){return _0x1163e9(_0x4d0bf7- -0x380,_0x5b936e);}function _0x1d3062(_0xd3b663,_0x4c2973){return _0x1163e9(_0xd3b663-0x87,_0x4c2973);}const _0x36d33c=[_0x1d3062(0x4d4,0x4a0),'.yaml',_0x237206(0x184,0x205),'.toml','.env',_0x237206(0x1ad,0x213),_0x237206(0x1f1,0x298)];return _0x36d33c[_0x1d3062(0x4ff,0x504)](_0x12e997=>_0x227409[_0x237206(0x1b1,0x205)](_0x12e997));}function detectActualError(_0x4b19de,_0x3cdecb){if(_0x4b19de['length']<0xc8)return![];function _0x385303(_0xd1ce1a,_0xc81b59){return _0x10c647(_0xc81b59,_0xd1ce1a-0x52);}const _0x11517f=_0x3cdecb?.[_0x385303(-0x193,-0x203)];if(_0x11517f===_0x385303(-0x182,-0x1a8))return![];const _0x1cf46f=_0x4b19de[_0x385303(-0x1ce,-0x1bf)+'e'](),_0x32042d=[_0x2a2a79(-0x211,-0x1ac),_0x2a2a79(-0x23c,-0x2d6),_0x385303(-0x162,-0x15f),_0x385303(-0xbe,-0x1f),_0x2a2a79(-0x1f9,-0x1bc),'failed:','Failed:',_0x2a2a79(-0x1fb,-0x189),'traceback',_0x2a2a79(-0x21c,-0x283)],_0x26b584=_0x32042d[_0x2a2a79(-0x284,-0x2dd)](_0x148d69=>_0x4b19de['includes'](_0x148d69)||_0x1cf46f['includes'](_0x148d69['toLowerCas'+'e']()));if(!_0x26b584)return![];const _0x18e301=_0x3cdecb?.['file_path']||_0x3cdecb?.[_0x385303(-0x102,-0x9d)]||'';function _0x2a2a79(_0x3b08d1,_0x1bff1d){return _0x10c647(_0x1bff1d,_0x3b08d1- -0x85);}if(_0x18e301[_0x385303(-0x1ce,-0x26a)+'e']()[_0x385303(-0x134,-0x128)](_0x385303(-0x1bc,-0x18d))&&!_0x32042d[_0x2a2a79(-0x2be,-0x29b)](0x2)[_0x385303(-0x1ad,-0x260)](_0x3f5f14=>_0x1cf46f[_0x2a2a79(-0x20b,-0x2a1)](_0x3f5f14['toLowerCas'+'e']())))return _0x2a2a79(-0x17b,-0xce)!=='pyPaU'?'learning':![];return!![];}function _0x1163e9(_0x4850b6,_0x31cd81){return _0x1f2b(_0x4850b6-0x35e,_0x31cd81);}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function _0x2f5d(){const _0x2bff74=['Aengzhm','vgfZAW','Aw5JBhvKzxm','Cgf0DgvYBG','qxv0B1n5BMm','vxPfz2C','iNn0yxr1CYi6iG','yxrLCW','ihnRAwXS','u2TPChbPBMCGBq','ChbLzcaOzhvWBa','B3DSzwrNzq','v2vIu2vHCMnO','CM91BMq','yxv0B0nHChr1CG','Dhj1zq','iNr5CguI','C2vYDMvY','rKfjteve','Aw5MBW','rxHJzxb0Aw9U','lNLTBa','B3DU','D3jPDgu','C2TPBgXdB252zq','DxrMltG','CMvJB3jKrxH0CG','BMnHDguP','C3nLDcK','y3rPB25iAxq','z3vPzgvSAw5L','ANnVBG','twvTB3j5igfICW','B3j5ihn5BMmGzG','ANvZDa','yxjNDG','C29YDa','ywjZB3jIsw50BW','v3jPDgu','zw4GC3vJy2vZCW','zxjYB3jFC29SDq','C3rHBMrHCMq','AM9PBG','BNfmsfq','wg9ftuu','v3fcDgO','B25fBMq','nZe4oejnBLHuCW','BgLKyxrLza','zw1VCNK6ig5Via','yxbW','Dg9tDhjPBMC','Cgf0Aa','Dw5KzwzPBMvK','zxHPDa','iNvWDgLTzv9Zzq','C2HHBgW','Aw5Qzwn0zwrlzq','qvL2rue','C3rYAw5N','khDVDwXKihrYDq','ywn0Aw9UrxzHBa','lMLUAq','ywXZBW','iokaLcbHDxrVlxn5','u3LUyZOG','zw5KC1DPDgG','zM9Y','y29UDgvUDa','yxv0B1n5BMm','CMvHza','rNjVEMvUihnUyq','A2v5D29Yze1HCa','DgHYB3vNAa','zxHWzxjPzw5Jzq','y2fU','CgLJA2vK','D2vIzMv0y2G','Ahr0CdOYmda','vvbeqvrf','u3LUy0nVDw50','DgvZDa','y29UzhmI','BxbSzxrLzcaODa','mteZmtCXmtz3s3HLDKy','revmrvrfigLUDG','zw5HyMXLza','EYjZDgrVDxqIoG','BgLZDe1LBw9YAq','zxHJBhvKzvbHDa','BgLZDa','CNnPB24','zxzLCNK','DgfYz2v0twvTBW','C3rKAw4','BwfW','y29UDMvUDgLVBG','DMvYEq','revmrvrf','t2XKig1LBw9YEq','yxjL','ChjVAMvJDfbHDa','yw5K','Ew91','mtKYmJaZmevLB0H5vG','EwfTBa','AwnHBMnLoIa','zgvIDwC','D291BgrczuXLBG','icHbrfiTmdmZkq','C3rHCNrZv2L0Aa','ywn0Aw9U','zMLSzsbJCMvHDa','zgvK','zxbPC29KAwm','y3nZ','tLblq0e','DgLVBG','zMLSDgvY','mtjVAvbVswS','zxHJzxb0Aw9U','u3zeAMK','BgvHCM5PBMC','yMvMB3jL','tMXctMK','CNmV','BxmSihnPz25PzG','yxnZAxn0yw50','lI4Vzw1IzwrKAq','CMvZB2X2zq','lMnMzW','B25SEq','zgvJAwrLza','DhvZ','y3jLyxrLzcbZDq','Dg9VBfjLC3vSDa','yxrLza','Aw1LoG','Dg90ywXty29Yzq','y2nLC3nMDwXSEq','r3jLCa','Eg1S','zwqP','BNvSBa','nZm3ohbdzgHryW','C2vZC2LVBKLK','ChLqyvu','sg9VAYbJB21WBa','CgfYC2u','BxmSigrIoIa','DgHPCW','D291Bgq','Ew1S','zw50CMLLCW','DhvYzwqGkgfMDa','DgfZAW','Axnnyxa','D2vYzq','Bg9JywW','mZjrCNHuCKK','BgXT','lcbZEw5JoIa','B3rOzxi','twvTB3j5ignHCa','AxrZ','zgvJAwrL','zMfJDa','BwvHBMLUz2z1Ba','v2nbrgO','zMLSDgvYzwq','zxbPC29Kzq','lxn5BMnLzca','ywjVDMu','vg9VBcbLDMfSDq','DhvYzwq','C3rYAw5NAwz5','zMX1C2G','DMfSDwf0B3iUAG','C3bSAxq','AgfZ','zgf0yq','Dhj1BMnHDgvK','Aw50BW','CgvUzgLUzW','z2XVyG','C2LVBG','C2XPy2u','C25dtxy','iNn0CNvJDhvYzq','qxv0BY1Jyxb0Dq','A2v5D29Yzhm','ywrK','ihnVzNqTAw52yq','D2vIC2vHCMnO','DhLWzq','D2LSBa','C2HVDwXK','DhH0','C2v0u3LUy1n0yq','BMv3','ug9ZDfrVB2XvCW','lMPZB24','rKjmrLG','DhjPBq','BxmGFcbJB25MAq','CNvSzq','y2vuAhjLC2HVBa','zMfPBgvKoG','CMvJB3jKsw5Qzq','DhjPz2DLCNm','zfbHDgnOiG','Dg9mB3DLCKnHCW','Bw9Yzq','rwrPDa','AgvHBhrOEsi','qure','nZu5nJC0m3LmrLrnBG','CNbowfy','ignVBNrLBNq','C2f2zuvTyMvKza','A2v5CW','B3vY','D2fYBG','BgvUz3rO','Bwf0y2G','D29YA2LUzW','C2HVDa','yMvLBG','ywXPzgf0Aw9Uia','zxjYB3i','zZOG','qxv0BY1ZEw5Jia','BMCVAw5KzxGUAG','DgHLEq','nZvlv3nVB0i','zMLSzsb3CML0Da','y2HVC2u','Agf2zq','AwnL','zMLSzsbLEgnSDq','yxrPB24GzMfPBa','u2vUC2L0AxzLia','8j+uJsbBuhjLlunVBq','BM9Uzq','C29Tzq','y29T','yMvZDcbWCMfJDa','zw1IzwrKAw5N','qMfZAa','rMfPBgvKoG','BxmSigrLzhvWoG','BwvZC2fNzq','C2fTzq','Dg9VBeLUChv0','BwL0xq','BM93','sg9VAYbZDgfYDa','AhrTBa','ywjVDxq','ywLSzwq','zNvSBhK','EYjMAwXLx3bHDa','rMLSztOG','D2fZ','ChvZAa','sK1isMy','y29Kzv9Wyxr0zq','w0vYCM9Yxsa','r2XVyG','C2LNBMLMAwnHBG','Dg9VBe5HBwu','lI4Vy2XHDwrLlW','C3rKB3v0','ugf0y2G','zNjVBq','z3jLCa','zMfPBgvK','DgfNCW','y29TBwfUza','DxnLlNrZ','B2jQzwn0','rw1IzwrKAw5Nia','Ew5Jzwq','mta2mJi4mefVDK1mDa','zMLYC3rFDxb0Aq','y3jLyxrLtwvTBW','ChnOB3qGBw9Kzq','uMvHza','zhvYAw5N','Aw5N','BwLNAhq','CMvWBgfJzq','BMfTzq','vxPsq3i','Bwu6','tK9pua','z2v0','zxiGzgvSzxrLkq','ywjZB3jIzwq','ExDVCMrZ','C3rYDwn0DxjLza','Cg9W','B3j5igzPBguGCW','rvfbt0m','ChjVy2vKDxjL','Cg9ZDc10B29Slq','ChvZAgvK','BwvYz2vdB250zq','BMPLy3rPB24','y21K','C2vSzwn0zwq','zwfJAa','Ew91CG','z3rO','w0eYqv0Gug9ZDa','zMLSzv9WyxrO','rxjYB3i6','DhjHy2vIywnR','ChjVAMvJDf9RBG','rvjst1i6','lI4VC2TPBgWVzq','iM5LD1n0CMLUzW','vg9VBfvZzsbJBW','zgvJAxnPB24','BLniD2G','w2eYyv0Gug9ZDa','y29UDgv4Da','ru9YzfK','Bwf5','yxbPs2v5','l3rLC3qV','C3rKzxjY','cLTpDxrWDxrDia','u2TPBgW','C2TPBgW','ig9Mig1LCMDLia','AgvY','l3rTCc8','zMLSzvbHDgG','Bw9ZDa','twvTB3j5ihnHDG','oxnbrKLVAq','C2Xwzhy','mtu2r0HpuLzf','C2LTAwXHCML0Eq','D2vUDcb3AxrO','B2XKu3rYAw5N','zNjVEMvUu25HCa','vhjHy2vIywnR','zMLUzenHBMrPza','zcb0BYbtzxnZAq','AxnbCNjHEq','igL0zw1Zxsa','CMuGzgLZywjSzq','ChjVDMLKzxi','mtaXmJaYnvzYshbOBq','DxbKyxrLtwvTBW','C2v0','B3b0zwqGzM9Y','zxjYB3i6','DgHL','B3rHBdOG','yM90Aa'];_0x2f5d=function(){return _0x2bff74;};return _0x2f5d();}function determineCategory(_0x37b720,_0x3942e6){if(_0x3942e6)return _0x107ea8(0x144,0x1a4)+_0x107ea8(0x29d,0x1f1);function _0x107ea8(_0x5656ac,_0x3e28f9){return _0x10c647(_0x5656ac,_0x3e28f9-0x304);}const _0x35a310=_0x37b720[_0x107ea8(0x23c,0x203)][_0x1f7ad3(0xa9,0x7e)+'e']();function _0x1f7ad3(_0x242b82,_0xca8bab){return _0x10c647(_0x242b82,_0xca8bab-0x29e);}const _0x160087=_0x37b720[_0x107ea8(0x1bd,0x203)];if(_0x37b720[_0x1f7ad3(0xf2,0xb9)]===_0x1f7ad3(0x23,0xa3)){const _0x37f563=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x1f7ad3(0x11c,0x167)](_0x37b720[_0x1f7ad3(0x194,0x19d)]);if(_0x37f563)return'context';const _0x3b6500=[_0x1f7ad3(0x11c,0x97),_0x1f7ad3(0x14f,0x19a),_0x107ea8(0x122,0x177),_0x107ea8(0xdf,0x147),_0x1f7ad3(0xdc,0x162),_0x1f7ad3(0x14e,0x104)];if(_0x3b6500[_0x1f7ad3(0xbd,0x9f)](_0x1125a9=>_0x35a310[_0x1f7ad3(0x119,0x118)](_0x1125a9)))return'FBLFX'!==_0x107ea8(0x15f,0xdb)?_0x2b62d6[_0x107ea8(0x156,0xcb)](0x0,0x1f4):'decision';const _0x8a1a11=[_0x107ea8(0x16b,0x1dc),_0x107ea8(0x11d,0x1a5),_0x107ea8(0x1c0,0x17f),_0x1f7ad3(0xd9,0x78),_0x1f7ad3(0x101,0x134),_0x107ea8(0xfe,0x107)+_0x1f7ad3(0xdc,0x99)];if(_0x8a1a11['some'](_0x4ab057=>_0x35a310[_0x1f7ad3(0x166,0x118)](_0x4ab057)))return _0x1f7ad3(0xe1,0x176);if(LEARNING_KEYWORDS_RE[_0x1f7ad3(0x1b2,0x167)](_0x160087))return _0x107ea8(0x28a,0x1f6);}if(_0x37b720[_0x107ea8(0x15a,0x11f)]==='Read'||_0x37b720[_0x107ea8(0x13f,0x11f)]===_0x1f7ad3(0x1ec,0x1a2)||_0x37b720['toolName']===_0x1f7ad3(0x7,0xb7))return _0x1f7ad3(0x7b,0xf1);if(_0x37b720[_0x1f7ad3(0x22,0xb9)]==='Write'||_0x37b720[_0x107ea8(0x7a,0x11f)]===_0x107ea8(0x189,0xe6)){const _0x3b844a=extractFilePath(_0x37b720['toolInput']),_0x2b646c=_0x37b720[_0x107ea8(0x26e,0x203)];if(_0x3b844a&&(_0x3b844a['includes'](_0x107ea8(0x139,0x15b))||_0x3b844a[_0x107ea8(0x126,0x17e)](_0x1f7ad3(0x144,0xfc))))return _0x1f7ad3(0x42,0xf1);if(_0x2b646c[_0x1f7ad3(0x1b,0x8a)]<0x32||_0x2b646c[_0x107ea8(0x12d,0xe4)+'e']()['includes'](_0x1f7ad3(-0x1a,0x96)+_0x107ea8(0x14e,0x1a3)+_0x1f7ad3(0x49,0xaf))||_0x2b646c[_0x107ea8(0x158,0xe4)+'e']()[_0x107ea8(0x145,0x17e)](_0x1f7ad3(0x183,0x186)+'ed')||_0x2b646c[_0x107ea8(0x93,0xe4)+'e']()['includes'](_0x1f7ad3(0x18e,0x19c)+'ccessfully'))return _0x107ea8(0xd2,0x157);if(LEARNING_KEYWORDS_RE[_0x107ea8(0x1c0,0x1cd)](_0x2b646c))return'learning';return _0x107ea8(0x80,0x11b)+'rn';}return _0x107ea8(0x187,0x157);}export function buildContent(_0x2e0f7c){const _0x357a7a=extractFilePath(_0x2e0f7c[_0x58d013(0x3a7,0x333)]);let _0x201270=_0x2e0f7c[_0x58d013(0x390,0x428)][_0x58d013(0x36c,0x2f0)](0x0,0x5dc)['trim']();function _0x58d013(_0x221e2b,_0x3d597b){return _0x10c647(_0x221e2b,_0x3d597b-0x529);}(_0x2e0f7c[_0x239df5(-0x2a,0x35)]===_0x58d013(0x38d,0x30b)||_0x2e0f7c[_0x239df5(-0x2a,-0xaf)]===_0x239df5(0x59,0xed))&&_0x201270[_0x58d013(0x45e,0x40f)]('{')&&(_0x201270=stripDiffContent(_0x201270));_0x2e0f7c[_0x239df5(-0x2a,0x23)]===_0x58d013(0x2b3,0x32e)&&_0x201270[_0x58d013(0x3ed,0x40f)]('{')&&(_0x201270=extractBashContent(_0x201270));_0x201270['length']>0x1f4&&(_0x201270[_0x58d013(0x393,0x40f)]('{')||_0x201270['startsWith']('['))&&(_0x201270=summarizeJsonResult(_0x201270));_0x201270=_0x201270[_0x239df5(-0x7e,-0x6f)](0x0,0x3e8)[_0x239df5(-0x6d,-0xca)]();if(!_0x201270||isNoiseResult(_0x201270))return'';const _0x27664d=[];if(_0x357a7a)_0x27664d['push'](_0x239df5(-0x32,-0x49)+_0x357a7a);_0x27664d[_0x239df5(-0x30,-0x38)](_0x201270);const _0x449347=_0x27664d[_0x58d013(0x3b3,0x3cb)]('\x0a');if(_0x449347[_0x58d013(0x2ef,0x315)]<0x14)return'';function _0x239df5(_0x17d39b,_0x5b0e33){return _0x10c647(_0x5b0e33,_0x17d39b-0x1bb);}return _0x449347;}function stripDiffContent(_0x101fd5){function _0x3c1322(_0x2d4750,_0x384a96){return _0x10c647(_0x384a96,_0x2d4750-0x1ad);}function _0x51d1e1(_0x3a869e,_0x59bea9){return _0x10c647(_0x59bea9,_0x3a869e-0x1b);}try{const _0x5b8ef1=JSON[_0x3c1322(0xb9,0xe5)](_0x101fd5);if(_0x5b8ef1[_0x51d1e1(-0x17e,-0x1a8)]||_0x5b8ef1['newString']||_0x5b8ef1[_0x3c1322(-0x1a,-0x5)+_0x3c1322(-0x35,0x22)]||_0x5b8ef1[_0x3c1322(-0x84,-0x7a)]&&_0x5b8ef1[_0x51d1e1(-0x186,-0x12c)]&&typeof _0x5b8ef1[_0x51d1e1(-0x129,-0x16c)]===_0x3c1322(0x60,0x67))return'';return _0x101fd5;}catch{if(_0x101fd5[_0x51d1e1(-0x16b,-0x175)]('\x22oldString'+'\x22')||_0x101fd5[_0x51d1e1(-0x16b,-0x157)](_0x51d1e1(-0x197,-0xfd)+'\x22')||_0x101fd5[_0x3c1322(0x27,0x49)](_0x51d1e1(-0x21c,-0x221)+_0x3c1322(-0x74,-0x8b))||_0x101fd5['includes'](_0x3c1322(0x35,0x1d))&&_0x101fd5['includes']('\x22filePath\x22')&&_0x101fd5[_0x3c1322(0x27,-0x18)]('\x22content\x22')){if(_0x3c1322(-0x21,-0x6b)!==_0x51d1e1(-0x1b3,-0x1ff))_0x409479[_0x3c1322(-0x6b,-0xb0)+_0x3c1322(-0x25,0x7a)](_0x325077['id'],_0x50d041);else return'';}return _0x101fd5;}}function extractBashContent(_0x52e9ba){function _0x494218(_0x4266d3,_0x4b9bef){return _0x1163e9(_0x4266d3- -0x440,_0x4b9bef);}function _0x499d63(_0x19944c,_0x546512){return _0x1163e9(_0x546512- -0x38d,_0x19944c);}try{const _0x30532e=JSON[_0x499d63(0x1f2,0x1f6)](_0x52e9ba),_0x5bc48e=(_0x30532e[_0x494218(0x54,-0x4c)]||'')[_0x494218(0xf,-0x83)](),_0x2e49c9=(_0x30532e[_0x499d63(0x166,0x142)]||'')['trim']();if(_0x2e49c9&&_0x2e49c9[_0x494218(0x23,0xb)]>0xa){if(_0x499d63(0x139,0x167)===_0x499d63(0x1ef,0x167))return _0x499d63(0x185,0x102)+_0x2e49c9[_0x494218(-0x2,0x4a)](0x0,0x1f4)+(_0x5bc48e?_0x494218(0x90,0x74)+_0x5bc48e[_0x494218(-0x2,-0x3b)](0x0,0x12c):'');else _0x1f5223=_0x38334f(_0x3df533);}if(_0x5bc48e)return _0x5bc48e['slice'](0x0,0x3e8);return _0x52e9ba['slice'](0x0,0x1f4);}catch{if(_0x499d63(0x1ce,0x13e)!==_0x499d63(0x1c8,0x13e)){if(_0x172c28['length']<0xc8)return![];const _0x3df852=_0x13a94a?.['toolName'];if(_0x3df852===_0x499d63(0xc2,0x116))return![];const _0x144fb6=_0x313c41['toLowerCas'+'e'](),_0x212f0c=[_0x494218(0xab,0xfb),_0x499d63(0x8d,0x133),_0x499d63(0x1e8,0x136),'exception',_0x499d63(0x12d,0x176),_0x499d63(0xce,0xc6),_0x499d63(0x11e,0xf0),'FAILED',_0x499d63(0x105,0x134),_0x499d63(0x1e8,0x153)],_0x41a5a4=_0x212f0c['some'](_0x720141=>_0x481eb3[_0x499d63(0x1a8,0x164)](_0x720141)||_0x144fb6['includes'](_0x720141['toLowerCas'+'e']()));if(!_0x41a5a4)return![];const _0x142c44=_0x43af26?.['file_path']||_0x29e36f?.['path']||'';if(_0x142c44[_0x499d63(0xfd,0xca)+'e']()[_0x499d63(0xc2,0x164)]('error')&&!_0x212f0c[_0x494218(-0x2,-0x22)](0x2)[_0x499d63(0x14b,0xeb)](_0x1cf2cc=>_0x144fb6['includes'](_0x1cf2cc[_0x494218(0x17,0x45)+'e']())))return![];return!![];}else return _0x52e9ba[_0x499d63(0x131,0xb1)](0x0,0x3e8);}}function summarizeJsonResult(_0x39af2d){function _0x1941c1(_0x325475,_0x2dd4a8){return _0x10c647(_0x2dd4a8,_0x325475-0x3ea);}function _0x559168(_0x185d3b,_0x5d6a8d){return _0x10c647(_0x185d3b,_0x5d6a8d-0x650);}try{const _0x39b650=JSON[_0x559168(0x5de,0x55c)](_0x39af2d);if(Array[_0x1941c1(0x256,0x279)](_0x39b650))return'[Array:\x20'+_0x39b650[_0x1941c1(0x1d6,0x260)]+_0x559168(0x513,0x4bd)+JSON[_0x559168(0x413,0x40c)](_0x39b650[0x0])[_0x1941c1(0x1b1,0x114)](0x0,0xc8)+'...';const _0x3c9747=Object[_0x1941c1(0x1d3,0x142)](_0x39b650)[_0x559168(0x42b,0x417)](0x0,0xa),_0x342747=_0x3c9747[_0x1941c1(0x2c1,0x35e)](_0x376d02=>{function _0x21efde(_0x40e266,_0x33d7f8){return _0x559168(_0x33d7f8,_0x40e266- -0x208);}function _0x5b4afb(_0x2a0d1d,_0x1bba56){return _0x559168(_0x2a0d1d,_0x1bba56- -0x417);}const _0xfbc281=_0x39b650[_0x376d02],_0x3140f8=typeof _0xfbc281===_0x5b4afb(0x4c,0xec)?_0xfbc281[_0x5b4afb(0xa3,0x0)](0x0,0x50):JSON['stringify'](_0xfbc281)['slice'](0x0,0x50);return _0x376d02+':\x20'+_0x3140f8;})[_0x559168(0x559,0x4f2)](',\x20');return _0x342747[_0x559168(0x3f2,0x417)](0x0,0x320);}catch{return _0x39af2d[_0x1941c1(0x1b1,0x1a5)](0x0,0x1f4);}}function isNoiseResult(_0x2764c8){const _0x19dbd1=_0x2764c8['trim']();if(_0x19dbd1[_0x337c92(0x1c6,0x220)](_0x5840eb(0x352,0x334)))return!![];if(_0x19dbd1[_0x5840eb(0x369,0x382)]('{\x22filePath'+'\x22')||_0x19dbd1[_0x337c92(0x1c6,0x276)](_0x337c92(0xf2,0x99)+'h\x22'))return!![];if(_0x19dbd1[_0x5840eb(0x2fd,0x295)]('/var/folde'+_0x5840eb(0x378,0x305)))return!![];if(_0x19dbd1[_0x5840eb(0x369,0x3ab)](_0x337c92(0x109,0x117)+_0x337c92(0x113,0x122))||_0x19dbd1[_0x5840eb(0x369,0x3c7)]('second_upt'+_0x337c92(0x1e1,0x228)))return!![];if(_0x19dbd1['startsWith'](_0x337c92(0x1a6,0x164))||_0x19dbd1[_0x5840eb(0x369,0x3b4)]('http:404'))return!![];if(_0x19dbd1[_0x5840eb(0x369,0x35f)](_0x5840eb(0x282,0x1fc)+_0x337c92(0xeb,0x126)))return!![];const _0xbe73a5=_0x19dbd1[_0x337c92(0xa7,0xb8)](0x0,0xc8);if(_0xbe73a5[_0x5840eb(0x2fd,0x270)](_0x5840eb(0x301,0x2d3)+_0x337c92(0xc3,0x22))&&_0xbe73a5['includes'](_0x5840eb(0x332,0x351)+_0x337c92(0x1aa,0x12f)))return!![];const _0xe29d7b=_0x19dbd1[_0x337c92(0x9f,0x98)]('\x0a',0x1)[0x0];function _0x5840eb(_0x487637,_0x4f652c){return _0x1163e9(_0x487637- -0x1f4,_0x4f652c);}function _0x337c92(_0x460955,_0x410b11){return _0x1163e9(_0x460955- -0x397,_0x410b11);}const _0x532d4c=[/브랜치로\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(_0x532d4c['some'](_0x49b6b4=>_0x49b6b4[_0x5840eb(0x34c,0x31e)](_0xe29d7b)))return!![];const _0x2aa8f9=[/^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 _0x2aa8f9[_0x5840eb(0x284,0x205)](_0x1b5b29=>_0x1b5b29['test'](_0x19dbd1));}const TAG_BLOCKLIST=new Set(['id',_0x1163e9(0x479,0x49c),_0x1163e9(0x521,0x4cc),_0x10c647(-0x1a0,-0x1cb),'set','src','table',_0x1163e9(0x4ec,0x532),'to','in','of','a','is',_0x1163e9(0x532,0x4a0),_0x1163e9(0x483,0x4d1),_0x1163e9(0x443,0x3d2),_0x10c647(-0x240,-0x1cf),'value','map',_0x10c647(-0x263,-0x228),'type',_0x10c647(-0x239,-0x23f),_0x1163e9(0x549,0x55d),_0x1163e9(0x44b,0x476),_0x1163e9(0x540,0x53b),_0x10c647(-0x14a,-0x1b0),_0x10c647(-0x1b8,-0x160)+_0x10c647(-0xfb,-0x113),_0x1163e9(0x48e,0x4b0)+'rn','context',_0x1163e9(0x54f,0x4f2),_0x1163e9(0x4d2,0x49a),_0x1163e9(0x569,0x602),_0x10c647(-0x1ec,-0x1b5)+_0x1163e9(0x4fa,0x523),'Write',_0x1163e9(0x459,0x3dd),_0x10c647(-0x187,-0x1fb),_0x10c647(-0x152,-0x1d4),'Glob','Grep',_0x10c647(-0x223,-0x187),'WebFetch',_0x10c647(-0x1cc,-0x17c),'write','edit','bash',_0x10c647(-0xb1,-0x142),_0x1163e9(0x43c,0x450),_0x1163e9(0x497,0x431),_0x10c647(-0x257,-0x258),_0x1163e9(0x53c,0x4be),_0x10c647(-0x2a6,-0x232)]),STOPWORDS=new Set([_0x10c647(-0x159,-0x18b),_0x1163e9(0x555,0x5ed),_0x10c647(-0x1b9,-0x124),_0x1163e9(0x48b,0x3dc),_0x10c647(-0x2ea,-0x256),_0x1163e9(0x467,0x4b2),_0x1163e9(0x471,0x4e0),_0x1163e9(0x437,0x3cf),'had',_0x10c647(-0x241,-0x230),_0x1163e9(0x41b,0x3c3),'could',_0x10c647(-0x2dd,-0x22f),_0x1163e9(0x4cc,0x4d6),_0x10c647(-0x194,-0x1d1),_0x10c647(-0x1bc,-0x150),_0x10c647(-0x193,-0x13d),_0x1163e9(0x41a,0x382),'that',_0x1163e9(0x428,0x3ea),_0x10c647(-0x1e7,-0x145),_0x1163e9(0x496,0x43f),'with',_0x10c647(-0x1f7,-0x23d),_0x1163e9(0x538,0x55b),_0x1163e9(0x4a4,0x455),'after',_0x10c647(-0x10b,-0x10d),_0x10c647(-0x173,-0x1f1),_0x1163e9(0x430,0x4e6),'all',_0x1163e9(0x4bb,0x4da),_0x1163e9(0x54b,0x5d8),_0x1163e9(0x4ee,0x459),'few',_0x10c647(-0x28b,-0x21f),_0x1163e9(0x4d7,0x55b),_0x1163e9(0x426,0x46e),_0x10c647(-0x27f,-0x1ff),'such',_0x1163e9(0x572,0x4bf),_0x10c647(-0x19a,-0x172),_0x10c647(-0x1a3,-0x1f7),'than','too',_0x1163e9(0x550,0x4dd),_0x1163e9(0x511,0x587),_0x10c647(-0x1fb,-0x149),_0x10c647(-0x211,-0x179),'false',_0x1163e9(0x57e,0x555),_0x10c647(-0x22a,-0x200),_0x10c647(-0xbc,-0x153),_0x10c647(-0x215,-0x20a),'them','their',_0x10c647(-0x145,-0x1bb),'his',_0x10c647(-0x17b,-0x1a3),_0x10c647(-0x282,-0x216),_0x1163e9(0x556,0x574),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function _0x1f2b(_0x4a727f,_0x58e065){_0x4a727f=_0x4a727f-0xbc;const _0x2f5d2e=_0x2f5d();let _0x1f2bc4=_0x2f5d2e[_0x4a727f];if(_0x1f2b['iRRtwe']===undefined){var _0x56845b=function(_0xcc618e){const _0x59a07f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4aa40e='',_0x2141f5='';for(let _0x242ecf=0x0,_0xa26688,_0x4935e4,_0x4f864a=0x0;_0x4935e4=_0xcc618e['charAt'](_0x4f864a++);~_0x4935e4&&(_0xa26688=_0x242ecf%0x4?_0xa26688*0x40+_0x4935e4:_0x4935e4,_0x242ecf++%0x4)?_0x4aa40e+=String['fromCharCode'](0xff&_0xa26688>>(-0x2*_0x242ecf&0x6)):0x0){_0x4935e4=_0x59a07f['indexOf'](_0x4935e4);}for(let _0x37d9b7=0x0,_0x318306=_0x4aa40e['length'];_0x37d9b7<_0x318306;_0x37d9b7++){_0x2141f5+='%'+('00'+_0x4aa40e['charCodeAt'](_0x37d9b7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2141f5);};_0x1f2b['ZJoEvM']=_0x56845b,_0x1f2b['pyTMKz']={},_0x1f2b['iRRtwe']=!![];}const _0x367491=_0x2f5d2e[0x0],_0x46d621=_0x4a727f+_0x367491,_0x21ad6f=_0x1f2b['pyTMKz'][_0x46d621];return!_0x21ad6f?(_0x1f2bc4=_0x1f2b['ZJoEvM'](_0x1f2bc4),_0x1f2b['pyTMKz'][_0x46d621]=_0x1f2bc4):_0x1f2bc4=_0x21ad6f,_0x1f2bc4;}function extractKeywords(_0x50733f,_0x54cf15=0x3){function _0x238762(_0x350729,_0x112a02){return _0x10c647(_0x112a02,_0x350729-0x2d7);}const _0x9b9b1e=_0x50733f['toLowerCas'+'e']();function _0x2ba7cc(_0x187948,_0x362e3c){return _0x10c647(_0x187948,_0x362e3c-0x288);}const _0x32b987=_0x9b9b1e[_0x238762(0xc4,0x131)](WORD_RE)||[],_0x1cbff6=new Map();for(const _0x2e8c2a of _0x32b987){if(_0x2e8c2a[_0x238762(0xc3,0x68)]<0x3)continue;if(STOPWORDS[_0x2ba7cc(0xc0,0x48)](_0x2e8c2a))continue;if(TAG_BLOCKLIST[_0x238762(0x97,0xe9)](_0x2e8c2a))continue;_0x1cbff6[_0x238762(0x149,0x188)](_0x2e8c2a,(_0x1cbff6[_0x2ba7cc(0x112,0xbd)](_0x2e8c2a)||0x0)+0x1);}return[..._0x1cbff6[_0x2ba7cc(-0x1b,0x2e)]()][_0x2ba7cc(0x13a,0x124)]((_0x324e41,_0x4c2fc4)=>_0x4c2fc4[0x1]-_0x324e41[0x1])[_0x238762(0x9e,0x10b)](0x0,_0x54cf15)[_0x238762(0x1ae,0x1ff)](([_0x4e42b6])=>_0x4e42b6);}function buildTags(_0x4075d3){const _0x3c0d3c=[],_0x10d6e3=extractFilePath(_0x4075d3['toolInput']);function _0x1d3dc4(_0x74bc80,_0x4bd935){return _0x10c647(_0x74bc80,_0x4bd935-0x1ed);}function _0x5d20f7(_0x4588cc,_0x123b6d){return _0x10c647(_0x123b6d,_0x4588cc-0x280);}if(_0x10d6e3){const _0x3a41c1=_0x10d6e3[_0x5d20f7(0x3f,0xa3)]('/')[_0x1d3dc4(0x10b,0xdb)](Boolean),_0x238f0a=_0x3a41c1[_0x1d3dc4(0x14,-0x4c)](-0x3)['filter'](_0x25209a=>_0x25209a[_0x1d3dc4(-0x39,-0x27)]>0x2&&!TAG_BLOCKLIST[_0x1d3dc4(-0xdd,-0x53)](_0x25209a[_0x5d20f7(0x60,0x1d)+'e']()));for(const _0x37fb6b of _0x238f0a[_0x5d20f7(0x47,0xe6)](0x0,0x2)){if(_0x5d20f7(0x16c,0xf1)!==_0x5d20f7(0x123,0x78)){const _0x4e73ad=_0x37fb6b[_0x5d20f7(0xb0,0x38)](/\.[^.]+$/,'');if(_0x4e73ad[_0x5d20f7(0x6c,-0x2d)]>0x2&&!TAG_BLOCKLIST['has'](_0x4e73ad['toLowerCas'+'e']())){if(_0x1d3dc4(-0x34,0x50)!==_0x5d20f7(0xe3,0x116)){const _0xd638b0=_0xceb883(_0x14413b[_0x1d3dc4(0x81,-0x9)]),_0x51c3ff=_0x3c4125[_0x1d3dc4(0x10d,0xec)];if(_0xd638b0&&(_0xd638b0[_0x5d20f7(0xfa,0x12b)](_0x5d20f7(0xd7,0x81))||_0xd638b0[_0x5d20f7(0xfa,0x61)](_0x5d20f7(0xde,0xaa))))return _0x5d20f7(0xd3,0x97);if(_0x51c3ff[_0x1d3dc4(-0xad,-0x27)]<0x32||_0x51c3ff['toLowerCas'+'e']()[_0x5d20f7(0xfa,0x17e)](_0x1d3dc4(0x54,-0x1b)+_0x5d20f7(0x11f,0x126)+'fully')||_0x51c3ff['toLowerCas'+'e']()[_0x5d20f7(0xfa,0xca)](_0x5d20f7(0x168,0x195)+'ed')||_0x51c3ff[_0x1d3dc4(-0x45,-0x33)+'e']()[_0x5d20f7(0xfa,0x11f)](_0x1d3dc4(0xfb,0xeb)+_0x1d3dc4(0x14e,0xf0)))return _0x1d3dc4(0xa0,0x40);if(_0x4adbd6[_0x5d20f7(0x149,0x16d)](_0x51c3ff))return'learning';return _0x1d3dc4(-0x22,0x4)+'rn';}else _0x3c0d3c[_0x1d3dc4(0xa7,0x2)](_0x4e73ad);}}else return'';}const _0x333bbf=_0x10d6e3[_0x1d3dc4(-0x8a,-0x54)]('.')[_0x1d3dc4(-0x82,0x27)]();if(_0x333bbf){const _0x3aecdf=_0x333bbf[_0x1d3dc4(0x42,-0x33)+'e']();if(!/^\d+$/[_0x5d20f7(0x149,0x1e1)](_0x333bbf)&&_0x333bbf[_0x1d3dc4(-0x8f,-0x27)]>0x2&&!TAG_BLOCKLIST[_0x1d3dc4(-0xfe,-0x53)](_0x3aecdf)){const _0x5339b0=['md',_0x1d3dc4(-0xb7,-0x41),_0x1d3dc4(0x10c,0x84),_0x1d3dc4(-0x67,-0x6e),_0x1d3dc4(0x159,0xce),_0x1d3dc4(0x16f,0xf2),_0x5d20f7(0x8e,0x138),_0x5d20f7(0x16b,0xba)];!_0x5339b0[_0x5d20f7(0xfa,0x68)](_0x3aecdf)&&_0x3c0d3c[_0x5d20f7(0x95,0x11b)](_0x333bbf);}}}if(_0x3c0d3c[_0x1d3dc4(0x31,-0x27)]===0x0){const _0xd5b5d8=extractKeywords(_0x4075d3[_0x1d3dc4(0x8c,0xec)],0x3);_0x3c0d3c['push'](..._0xd5b5d8);}return _0x3c0d3c;}export async function main(){const _0x377fcd=[];for await(const _0x2e2900 of process[_0x5bd813(0x1f8,0x270)]){_0x377fcd[_0x5bd813(0x22e,0x1af)](_0x2e2900);}const _0x195184=Buffer['concat'](_0x377fcd)[_0x33f2f6(0x54c,0x5a7)](_0x5bd813(0x27e,0x22b))[_0x5bd813(0xe1,0x172)]();function _0x5bd813(_0x4737e7,_0x3215f4){return _0x10c647(_0x4737e7,_0x3215f4-0x39a);}!_0x195184&&process['exit'](0x0);function _0x33f2f6(_0x3d5ecd,_0x533848){return _0x10c647(_0x3d5ecd,_0x533848-0x6fc);}try{const _0x217670=JSON[_0x5bd813(0x23c,0x2a6)](_0x195184),_0x3199a6=normalizeHookInput(_0x217670);await handlePostToolUse(_0x3199a6);}catch(_0x286e83){console[_0x5bd813(0x184,0x18c)](_0x33f2f6(0x5b3,0x54e)+'ToolUse\x20er'+'ror:',_0x286e83 instanceof Error?_0x286e83['message']:_0x286e83),process[_0x33f2f6(0x5ab,0x5aa)](0x0);}finally{closeSharedDb();}}const isMainModule=process['argv'][0x1]?.[_0x10c647(-0xa6,-0x146)](_0x1163e9(0x4b5,0x4f1)+'use.js')||process[_0x1163e9(0x512,0x5a6)][0x1]?.['endsWith'](_0x1163e9(0x4b5,0x4e9)+_0x1163e9(0x49b,0x431));isMainModule&&main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x6b59(_0x123c47,_0x426ac7){_0x123c47=_0x123c47-0x1aa;const _0x9a1af8=_0x9a1a();let _0x6b594a=_0x9a1af8[_0x123c47];if(_0x6b59['XYGbBn']===undefined){var _0x50860a=function(_0x11988b){const _0x1da08b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5771a6='',_0x51526d='';for(let _0x480cf4=0x0,_0x50b474,_0x3abcde,_0x36c277=0x0;_0x3abcde=_0x11988b['charAt'](_0x36c277++);~_0x3abcde&&(_0x50b474=_0x480cf4%0x4?_0x50b474*0x40+_0x3abcde:_0x3abcde,_0x480cf4++%0x4)?_0x5771a6+=String['fromCharCode'](0xff&_0x50b474>>(-0x2*_0x480cf4&0x6)):0x0){_0x3abcde=_0x1da08b['indexOf'](_0x3abcde);}for(let _0x3e2c27=0x0,_0x269a97=_0x5771a6['length'];_0x3e2c27<_0x269a97;_0x3e2c27++){_0x51526d+='%'+('00'+_0x5771a6['charCodeAt'](_0x3e2c27)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51526d);};_0x6b59['BPKwTi']=_0x50860a,_0x6b59['NNdPBn']={},_0x6b59['XYGbBn']=!![];}const _0x58e569=_0x9a1af8[0x0],_0x39658f=_0x123c47+_0x58e569,_0x254d87=_0x6b59['NNdPBn'][_0x39658f];return!_0x254d87?(_0x6b594a=_0x6b59['BPKwTi'](_0x6b594a),_0x6b59['NNdPBn'][_0x39658f]=_0x6b594a):_0x6b594a=_0x254d87,_0x6b594a;}function _0x7b6277(_0x14cef5,_0x268c43){return _0x6b59(_0x268c43- -0x204,_0x14cef5);}function _0x9a1a(){const _0x2fff4f=['mtHoBuP4veW','Bg9Hza','zxr5ihrPBwvVDq','Dc50CW','B21Wywn0ihnHzG','ChjLlwnVBxbHyW','Dg9tDhjPBMC','B21Wywn0igvYCG','mtu5otCZotDYuhDos2C','mtiXndyYtwD3seXA','BwvZC2fNzq','zwqGkg5Vlw9Wia','mJe2BvzXqxfO','yxjNDG','mte1nZbuyKH0su8','mZy5ody4t1vjEuHY','w2eYyv0GuhjLqW','nde4meX5serfsG','zxHPDa','Dw5Yzwy','BxmP','DxLQu2y','mtC0rvjqz3jz','y29Uy2f0','nJu0qNrOALDu','DxrMltG','Aw5MBW','DhjPBq','mta0ndbxAgXjAxe','zw5KC1DPDgG','zxjYB3i','vfvcwve','mteZmtjpBuLHDwi','Bg9Nz2LUzW','uhjLq29TCgfJDa','mJr4uujHsee','DcaO','C2LUy2uGiZKYkq','mtCZnvPlwuTQDq','zMX1C2G'];_0x9a1a=function(){return _0x2fff4f;};return _0x9a1a();}(function(_0x2514c4,_0x5867b8){function _0x4b51e7(_0x1d991a,_0x3936d2){return _0x6b59(_0x3936d2-0x94,_0x1d991a);}function _0x4f1aad(_0x27a0d9,_0x4b5e26){return _0x6b59(_0x27a0d9-0x1c2,_0x4b5e26);}const _0x817a72=_0x2514c4();while(!![]){try{const _0x8f735b=-parseInt(_0x4f1aad(0x389,0x39c))/0x1*(-parseInt(_0x4f1aad(0x37b,0x36a))/0x2)+parseInt(_0x4f1aad(0x38b,0x38b))/0x3*(parseInt(_0x4b51e7(0x235,0x244))/0x4)+-parseInt(_0x4f1aad(0x371,0x37f))/0x5*(parseInt(_0x4b51e7(0x256,0x24b))/0x6)+-parseInt(_0x4b51e7(0x266,0x255))/0x7*(-parseInt(_0x4b51e7(0x233,0x241))/0x8)+-parseInt(_0x4f1aad(0x37f,0x384))/0x9*(-parseInt(_0x4b51e7(0x23b,0x246))/0xa)+parseInt(_0x4b51e7(0x243,0x23e))/0xb*(parseInt(_0x4f1aad(0x386,0x37d))/0xc)+-parseInt(_0x4b51e7(0x256,0x265))/0xd;if(_0x8f735b===_0x5867b8)break;else _0x817a72['push'](_0x817a72['shift']());}catch(_0x43f264){_0x817a72['push'](_0x817a72['shift']());}}}(_0x9a1a,0x5b91c));import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x1f82ae){function _0x5c3067(_0x30a544,_0x494bea){return _0x6b59(_0x494bea- -0x20d,_0x30a544);}const _0x403538=new ConfigManager()[_0x4fc1d0(0xd6,0xd4)](),_0xf3bc78=createLogger(_0x4fc1d0(0xcf,0xce),_0x403538[_0x4fc1d0(0xce,0xc5)]);_0xf3bc78[_0x4fc1d0(0xc7,0xd8)]('Hook\x20start'+_0x5c3067(-0x67,-0x61)+_0x4fc1d0(0xd2,0xc4),{'projectPath':_0x1f82ae['projectPat'+'h']});function _0x4fc1d0(_0x20fc9a,_0x786aa4){return _0x6b59(_0x20fc9a- -0xf4,_0x786aa4);}_0xf3bc78[_0x4fc1d0(0xd4,0xc9)]();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){const _0x150868=[];function _0xd0a7cd(_0x125c5c,_0x162cf9){return _0x6b59(_0x125c5c- -0x3a7,_0x162cf9);}for await(const _0x2d0231 of process['stdin']){_0x150868['push'](_0x2d0231);}const _0x577a7e=Buffer[_0xd0a7cd(-0x1ef,-0x1de)](_0x150868)[_0xd0a7cd(-0x1d8,-0x1c8)](_0xd0a7cd(-0x1ed,-0x1e2))[_0xd0a7cd(-0x1eb,-0x1f6)]();!_0x577a7e&&(closeSharedDb(),process[_0x266f49(-0x20d,-0x213)](0x0));const _0x5e1078=setTimeout(()=>{console[_0x3694c7(0xb5,0xaf)](_0xc58c21(0x572,0x576)+_0x3694c7(0xc3,0xbc)+_0x3694c7(0xc1,0xad)+_0x3694c7(0xbb,0xab)+HOOK_TIMEOUT_MS+_0xc58c21(0x583,0x57a));function _0xc58c21(_0x4ec068,_0x2df5f6){return _0x266f49(_0x4ec068,_0x2df5f6-0x78b);}function _0x3694c7(_0x47d954,_0x31a6f0){return _0x266f49(_0x31a6f0,_0x47d954-0x2bc);}closeSharedDb(),process[_0x3694c7(0xa9,0xb2)](0x0);},HOOK_TIMEOUT_MS);_0x5e1078[_0xd0a7cd(-0x1f3,-0x1e8)]();function _0x266f49(_0x2c66b9,_0x40a7f4){return _0x6b59(_0x40a7f4- -0x3c6,_0x2c66b9);}try{const _0x4b1e82=JSON['parse'](_0x577a7e),_0x313da3=normalizeHookInput(_0x4b1e82);await handlePreCompact(_0x313da3);}catch(_0x2768d1){console['error'](_0xd0a7cd(-0x1f6,-0x1e4)+_0xd0a7cd(-0x1d7,-0x1d2)+'or:',_0x2768d1 instanceof Error?_0x2768d1[_0x266f49(-0x222,-0x21b)]:_0x2768d1);}finally{_0xd0a7cd(-0x1e7,-0x1ec)!==_0xd0a7cd(-0x1f1,-0x205)?(closeSharedDb(),process[_0xd0a7cd(-0x1f4,-0x1fb)](0x0)):(_0xc4841d(),_0x53c92e[_0x266f49(-0x208,-0x213)](0x0));}}const isMainModule=process['argv'][0x1]?.[_0x7b6277(-0x49,-0x46)]('pre-compac'+'t.js')||process[_0xa62e39(0x191,0x193)][0x1]?.[_0xa62e39(0x1b2,0x1a3)](_0x7b6277(-0x2b,-0x36)+_0xa62e39(0x1c0,0x1b1));function _0xa62e39(_0x5ada32,_0x175d0c){return _0x6b59(_0x175d0c- -0x1b,_0x5ada32);}isMainModule&&main();
|