a2a-memory 0.12.66 → 0.12.67

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.
Files changed (111) hide show
  1. package/README.md +7 -7
  2. package/dist/adapters/anthropic.js +1 -1
  3. package/dist/chunking/chunker.js +1 -1
  4. package/dist/claude/sync.js +1 -1
  5. package/dist/cli/commands/add.js +1 -1
  6. package/dist/cli/commands/claude-sync.js +1 -1
  7. package/dist/cli/commands/cleanup.js +1 -1
  8. package/dist/cli/commands/config.js +1 -1
  9. package/dist/cli/commands/contextrank.js +1 -1
  10. package/dist/cli/commands/edit.js +1 -1
  11. package/dist/cli/commands/embed.js +1 -1
  12. package/dist/cli/commands/export.js +1 -1
  13. package/dist/cli/commands/extract.js +1 -1
  14. package/dist/cli/commands/health.js +1 -1
  15. package/dist/cli/commands/list.js +1 -1
  16. package/dist/cli/commands/measure.js +1 -1
  17. package/dist/cli/commands/migrate-chunks.js +1 -1
  18. package/dist/cli/commands/migrate-file-refs.js +1 -1
  19. package/dist/cli/commands/proficiency.js +1 -1
  20. package/dist/cli/commands/review.js +1 -1
  21. package/dist/cli/commands/rm.js +1 -1
  22. package/dist/cli/commands/search.js +1 -1
  23. package/dist/cli/commands/session-extract.js +1 -1
  24. package/dist/cli/commands/setup-wizard.d.ts +4 -1
  25. package/dist/cli/commands/setup-wizard.js +1 -1
  26. package/dist/cli/commands/setup.d.ts +1 -0
  27. package/dist/cli/commands/setup.js +1 -1
  28. package/dist/cli/commands/skill.js +1 -1
  29. package/dist/cli/commands/status.js +1 -1
  30. package/dist/cli/commands/sync.js +1 -1
  31. package/dist/cli/commands/team.js +1 -1
  32. package/dist/cli/commands/usage.js +1 -1
  33. package/dist/cli/index.js +1 -1
  34. package/dist/config/manager.d.ts +49 -0
  35. package/dist/config/manager.js +1 -1
  36. package/dist/config/prompt-hook.d.ts +52 -0
  37. package/dist/config/prompt-hook.js +1 -0
  38. package/dist/contextrank/ac-matcher.js +1 -1
  39. package/dist/contextrank/edge-builder.js +1 -1
  40. package/dist/contextrank/rank-builder.js +1 -1
  41. package/dist/contextrank/signal-builder.js +1 -1
  42. package/dist/contextrank/since-store.js +1 -1
  43. package/dist/db/database.js +1 -1
  44. package/dist/db/integrity-marker.js +1 -1
  45. package/dist/db/usage-spool.js +1 -1
  46. package/dist/embedding/e5-provider.js +1 -1
  47. package/dist/embedding/index.js +1 -1
  48. package/dist/embedding/local-provider.js +1 -1
  49. package/dist/embedding/openai-provider.js +1 -1
  50. package/dist/embedding/quantization.js +1 -1
  51. package/dist/extraction/dedup-manager.js +1 -1
  52. package/dist/extraction/emotion-filter.js +1 -1
  53. package/dist/extraction/extractor.js +1 -1
  54. package/dist/extraction/file-reference.js +1 -1
  55. package/dist/extraction/filter.js +1 -1
  56. package/dist/extraction/scorer.js +1 -1
  57. package/dist/extraction/similarity.js +1 -1
  58. package/dist/hooks/client-factory.js +1 -1
  59. package/dist/hooks/post-tool-use.js +1 -1
  60. package/dist/hooks/pre-compact.js +1 -1
  61. package/dist/hooks/session-end.js +1 -1
  62. package/dist/hooks/session-start.js +1 -1
  63. package/dist/hooks/shared.js +1 -1
  64. package/dist/hooks/stop.js +1 -1
  65. package/dist/hooks/user-prompt-submit.js +1 -1
  66. package/dist/i18n/index.js +1 -1
  67. package/dist/i18n/messages.js +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/lifecycle/channel-metrics.d.ts +23 -4
  70. package/dist/lifecycle/channel-metrics.js +1 -1
  71. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  72. package/dist/lifecycle/cleanup.js +1 -1
  73. package/dist/lifecycle/consolidation.js +1 -1
  74. package/dist/lifecycle/contradiction.js +1 -1
  75. package/dist/lifecycle/embedding-backfill.js +1 -1
  76. package/dist/lifecycle/index.js +1 -1
  77. package/dist/lifecycle/injection-flush.js +1 -1
  78. package/dist/lifecycle/quality-scorer.js +1 -1
  79. package/dist/lifecycle/session-extract.js +1 -1
  80. package/dist/lifecycle/shadow-rebuild.js +1 -1
  81. package/dist/lifecycle/tiering.js +1 -1
  82. package/dist/llm/client.js +1 -1
  83. package/dist/llm/index.js +1 -1
  84. package/dist/proficiency/actr-engine.js +1 -1
  85. package/dist/proficiency/detection.js +1 -1
  86. package/dist/proficiency/index.js +1 -1
  87. package/dist/proficiency/tracker.js +1 -1
  88. package/dist/search/adaptive-router.js +1 -1
  89. package/dist/search/index.js +1 -1
  90. package/dist/search/injection-filter.js +1 -1
  91. package/dist/search/memoryrank-rerank.js +1 -1
  92. package/dist/search/ranker.js +1 -1
  93. package/dist/search/reranker.js +1 -1
  94. package/dist/session/parser.js +1 -1
  95. package/dist/skill/evaluator.js +1 -1
  96. package/dist/skill/index.js +1 -1
  97. package/dist/sync/client.js +1 -1
  98. package/dist/sync/encryption.js +1 -1
  99. package/dist/sync/index.js +1 -1
  100. package/dist/sync/queue.js +1 -1
  101. package/dist/sync/scheduler.js +1 -1
  102. package/dist/sync/synchronizer.js +1 -1
  103. package/dist/sync/team-synchronizer.js +1 -1
  104. package/dist/sync/vector-clock.js +1 -1
  105. package/dist/types/index.d.ts +9 -0
  106. package/dist/types/index.js +1 -1
  107. package/dist/utils/file-mode.js +1 -1
  108. package/dist/utils/keychain.js +1 -1
  109. package/dist/utils/logger.js +1 -1
  110. package/dist/utils/test-isolation.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x245369,_0x4df99b){function _0x48971b(_0x3a103e,_0x4d436b){return _0x33b6(_0x3a103e-0xf7,_0x4d436b);}function _0x38da59(_0x1aa9bc,_0x15906b){return _0x33b6(_0x15906b-0x70,_0x1aa9bc);}const _0x5b9bb2=_0x245369();while(!![]){try{const _0x17ca38=-parseInt(_0x48971b(0x349,0x2e5))/0x1*(-parseInt(_0x48971b(0x303,0x321))/0x2)+-parseInt(_0x48971b(0x32b,0x316))/0x3*(parseInt(_0x38da59(0x331,0x2fa))/0x4)+parseInt(_0x38da59(0x291,0x268))/0x5+-parseInt(_0x48971b(0x257,0x241))/0x6+-parseInt(_0x38da59(0x180,0x22b))/0x7*(-parseInt(_0x38da59(0x23f,0x21c))/0x8)+-parseInt(_0x48971b(0x2ed,0x34c))/0x9+parseInt(_0x38da59(0x219,0x25f))/0xa;if(_0x17ca38===_0x4df99b)break;else _0x5b9bb2['push'](_0x5b9bb2['shift']());}catch(_0x46c4aa){_0x5b9bb2['push'](_0x5b9bb2['shift']());}}}(_0x49b2,0x4066d));import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';function _0x2ab5b6(_0x2ed11e,_0x30a2e2){return _0x33b6(_0x2ed11e-0x2fa,_0x30a2e2);}import{scoreSignificance}from'../extraction/scorer.js';import{filterSensitiveInfo}from'../extraction/filter.js';function _0x49b2(){const _0x4fd18a=['CMuGzgLZywjSzq','DgfIBgu','AhrTBa','yM90Aa','uhjPquG','yxrLza','zMLSDgvYzwq','Dhj1BMnHDgvK','nZHKBwjHrgS','C2f2zuvTyMvKza','B25SEq','zw1VCNK6ig5Via','ywn0Aw9UrxzHBa','Bw9ZDa','AM1pzKe','z3vPzgvSAw5L','ig9Mig1LCMDLia','zxHWzxjPzw5Jzq','BxPLyuW','z2XVyG','seLSB2C','ChjVAMvJDfbHDa','ugf0y2G','Aw5MBW','yw5K','A2v5D29Yze1HCa','twvTB3j5ihnRAq','Dg9V','DgvYBNm','lMLUAq','yMfZAa','C2LNBMLMAwnHBG','lMPZB24','zcb0BYbtzxnZAq','C2LTAwXHCML0Eq','D2vIC2vHCMnO','Dhj1zq','zxrLza','mtqZnZL5B1jOEMi','y29UDgvUDa','BMPLy3rPB24','iokaLcbHDxrVlxn5','DgHYB3vNAa','Ew5Jzwq','Ahr0CdOYmda','DhH0','zw1IzwrKAw5N','Cg9W','y29UDMvUDgLVBG','C3LUyY5QCW','D2fYBG','C29Tzq','qxv0B1n5BMm','lNLTBa','rvjst1i6','B3vY','DxnLlMPZ','rhb1sKe','zxHPDa','B25fBMq','zgvJAxnPB24','w0eYqv0Gug9ZDa','y29Kzv9Wyxr0zq','yxjL','C2LVBG','zfbHDgnOiG','rw1IzwrKAw5Nia','zxbPC29KAwm','AgfxzuS','EvDnAeS','DgvZDa','revmrvrf','yxv0B1n5BMm','iMzPBgvqyxrOiG','D29YA2LUzW','vg9VBcbLDMfSDq','C2TPChbLzcaOCa','twvTB3j5igfICW','ywjVDxq','zMLSzq','ywjZB3jIsw50BW','Aw50BW','revmrvrfigLUDG','De9WD0m','y2fU','y29UDgv4Da','DfzWt1C','Eg1S','v2vIu2vHCMnO','zxjYB3i','BxmSihnPz25PzG','BwLNAhq','zMLSzvbHDgG','C3rKzxjY','mteZmdbRwwDNB2K','Bw9Kzq','CNvSzq','Cgf0DgvYBG','AM9PBG','twvTB3j5ignHCa','y291Bgq','rKHhELK','ug9ZDfrVB2XvCW','BM93','r0jjAeO','DgHLEq','CM91BMq','D291Bgq','BgXT','z2v0tgf0zxn0sq','zMLSDgvY','DxnLlNrZ','zgvK','DhjPz2DLCNm','ChjVy2vKDxjL','DgfYz2v0twvTBW','tez4teW','ChvZAgvK','tK9pua','BgvUz3rO','vgfZAW','zgvIDwC','C2vTyw50Awm','yxjNDG','iNr5CguI','EYjMAwXLx3bHDa','ywLSzwq','rxHJzxb0Aw9U','ywXPzgf0Aw9Uia','Dw5KzwzPBMvK','iM1VzguIoIjJBW','zMfPBgvK','zNvSBhK','iMnVBNrLBNqI','C2vSzwn0zwq','C3rHBMrHCMq','Aw1LoG','y3nZ','zwqGAw5ZDgvHza','DhjHy2vIywnR','lI4VC2TPBgWVzq','CM9YoG','BxmSigrLzhvWoG','zMX1C2G','zNjVBq','y3jLyxrLzcbZDq','AwnL','zw5KC1DPDgG','ChvZAa','t3nLEwe','yMvZDcbWCMfJDa','A2v5D29Yzhm','Bw9Yzq','zgvJAwrL','BxmSigrIoIa','vvbeqvrf','zxjYB3jFC29SDq','twvTB3j5ihvWza','u2TPChbPBMCGBq','CgLJA2vK','ywz0zxi','Aw5Qzwn0zwrlzq','mtm3ndK3ohHjqvnhra','yxbW','sg9VAYbJB21WBa','rKfjteve','lNrVBwW','zxzLCNK','DwXqzgm','EwfTBa','zNjeywi','B2XZy2O','yxrLzcaOBwvYzW','ihnVzNqTAw52yq','Cgf0Aa','Dg9mB3DLCKnHCW','iM9Szfn0CMLUzW','qMfZAa','DgHPCW','Cg9ZDc10B29Slq','Dg9VBe5HBwu','C3rHCNrZv2L0Aa','ywjVDMu','AgvY','rxjYB3i6','ywjZB3jIzwq','y2vuAhjLC2HVBa','w0vYCM9Yxsa','q2XHDwrLig1LBq','BxmGFcbJB25MAq','C2XPy2u','DMvYEq','CunsCNG','r1zPChK','DhjPBq','AxnbCNjHEq','iM5LD1n0CMLUzW','AxrZ','zw4GC3vJy2vZCW','ChjVDMLKzxi','DxbKyxrLtwvTBW','y29T','AgfZ','C3rKB3v0','C3nLDcK','ihnRAwXS','DgHL','l3zHCI9MB2XKzq','qxv0BY1ZEw5Jia','Bwu6','B2XKu3rYAw5N','CNnPB24','zgf0yq','twvTB3j5ihnHDG','Bwf0y2G','zMfPBgvKoG','BMv3','rMfPBgvKoG','CM90zwn0zwqGyq','zNjVEMvUu25HCa','D2LSBa','DgLVBG','z2v0ugvUzgLUzW','u3LUy0nVDw50','D2fZ','rwjuCKm','zMfSC2u','BfD3DLu','vLvevvy','C2TPBgXdB252zq','DgHLAxi','DhvZ','D2L0Aa','Dg90ywXty29Yzq','zMLSzsbJCMvHDa','ChnOB3qGBw9Kzq','Bw5wwue','u3P4rKi','mtC2wgfxBxfQ','C3rYAw5N','y2f0zwDVCNK','vg9VBfvZzsbLCG','zw50CMLLCW','B3j5ihn5BMmGzG','C2HVDa','AhHkru8','rwrPDa','Bwf5','CMvWBgfJzq','C29YDa','u2TPBgW','BNvSBa','Bg9JywW','mZaXotfKvKj4r2S','Dg9ju09tDhjPBG','ywXZBW','Dg9VBeLUChv0','B3rHBdOG','y2HVC2u','A2v5CW','lNLHBwW','zhvYAw5N','yNPWzKC','BgLZDe1LBw9YAq','ywn0Aw9U','y29TBwfUza','u3LUyZOG','Dg9tDhjPBMC','zMv3','BgvHCM5PBMC','Aw5JBhvKzxm','C2TPBgW','zxjYB3i6','zMfJDa','BxbSzxrLzcaODa','r3jLCa','u3fkCxC','Ew1S','BM9Uzq','zxbPC29Kzq','iNn0yxr1CYi6iG','BwLKu2vZC2LVBG','Ahr0CdO0mdq','z3jLCa','B3b0zwqGzM9Y','w2eYyv0Gqxv0BW','y21K','BMv3u3rYAw5N','zMLSzsbLEgnSDq','t29OzKS','CMvJB3jKsw5Qzq','y29UzhmI','w0fYCMf5oIa','rNjVEMvUihnUyq','wgrhvxK','BgLKyxrLza','AgLZ','zwfJAa','B2jQzwn0','C2vZC2LVBKLK','yxv0B0nHChr1CG','zZOG','qure','yMvMB3jL','y3rPB25iAxq','mJm2ntq1mfrlDMHyEq','C3rYAw5NAwz5','l3rLC3qV','AgfK','Ew91CG','iNn0CNvJDhvYzq','zw5HyMXLza','mtaXnJu0mvjgDg54Dq','v3jPDgu','mtu5ntGXmezOswvHEq','EYjMAwXLugf0Aa','Bg9Nz2LUzW','uMvHza','ANnVBG','qxv0BY1Jyxb0Dq','v2vIrMv0y2G','w2eYyv0Gug9ZDa','C2vYDMvY','DgHLBq','ignVBNrLBNq','C2fTzq','D3jPDgu','zxHJBhvKzvbHDa','DhvYzwq','zM9Y','C3bSAxq','C2v0u3LUy1n0yq','t2XKig1LBw9YEq','y2nLC3nMDwXSEq','ng9YEMrYqq','BxmSignSyxvKzq','BwvZC2fNzq','BwvHBMLUz2z1Ba','DhLWzq','DM5Ssxy','CLrmtfG','C2v0','lMnMzW','zMLSzv9WyxrO','Dg9VBfjLC3vSDa','BwfW','ywrK','u2vUC2L0AxzLia','AwnHDguP','EvLJD2G','BgLZDa','CgfYC2u','zxHJzxb0Aw9U','z2v0','zgvJAwrLza','Aw5N','CgvUzgLUzW','igL0zw1Zxsa','CMvJB3jKrxH0CG','D2vUDcb3AxrO','yKzkuLC','rMLSztOG','BNrLBNqI','z3rO','BgjtEu0','rgvKDxaGzgvJAq'];_0x49b2=function(){return _0x4fd18a;};return _0x49b2();}import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':_0x2ab5b6(0x537,0x4ed),'code_pattern':_0x1f75c1(-0x250,-0x1a3),'decision':_0x1f75c1(-0x14d,-0x19d),'context':_0x1f75c1(-0x208,-0x19d),'project_knowledge':_0x1f75c1(-0x226,-0x1a3),'convention':_0x2ab5b6(0x42a,0x4be),'learning':_0x1f75c1(-0x1d5,-0x135),'skill':_0x1f75c1(-0x198,-0x242),'rule':'procedure'},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;function _0x33b6(_0x36f95f,_0x30dc2d){_0x36f95f=_0x36f95f-0x123;const _0x49b221=_0x49b2();let _0x33b620=_0x49b221[_0x36f95f];if(_0x33b6['OvFsVR']===undefined){var _0x38b8ff=function(_0x452a74){const _0x6e98b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c5dcc='',_0x165a4a='';for(let _0x49a12b=0x0,_0x45907a,_0x5a7218,_0x31b414=0x0;_0x5a7218=_0x452a74['charAt'](_0x31b414++);~_0x5a7218&&(_0x45907a=_0x49a12b%0x4?_0x45907a*0x40+_0x5a7218:_0x5a7218,_0x49a12b++%0x4)?_0x2c5dcc+=String['fromCharCode'](0xff&_0x45907a>>(-0x2*_0x49a12b&0x6)):0x0){_0x5a7218=_0x6e98b4['indexOf'](_0x5a7218);}for(let _0x41912e=0x0,_0x9b9ef4=_0x2c5dcc['length'];_0x41912e<_0x9b9ef4;_0x41912e++){_0x165a4a+='%'+('00'+_0x2c5dcc['charCodeAt'](_0x41912e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x165a4a);};_0x33b6['lbSqeW']=_0x38b8ff,_0x33b6['ahTnhL']={},_0x33b6['OvFsVR']=!![];}const _0x54bbb1=_0x49b221[0x0],_0x463069=_0x36f95f+_0x54bbb1,_0x57bbe5=_0x33b6['ahTnhL'][_0x463069];return!_0x57bbe5?(_0x33b620=_0x33b6['lbSqeW'](_0x33b620),_0x33b6['ahTnhL'][_0x463069]=_0x33b620):_0x33b620=_0x57bbe5,_0x33b620;}function _0x1f75c1(_0x2c6a04,_0x442a1e){return _0x33b6(_0x442a1e- -0x372,_0x2c6a04);}export async function handlePostToolUse(_0x373c3c){const _0xa3b872=performance['now'](),_0x47d762=new ConfigManager()['load'](),_0x3f847f=performance[_0x5e8337(0x4c6,0x48f)]();function _0x5e8337(_0x478db5,_0x306254){return _0x1f75c1(_0x306254,_0x478db5-0x713);}function _0x52a55f(_0x1fa681,_0x5831f4){return _0x1f75c1(_0x5831f4,_0x1fa681-0x174);}const _0x4c2dad=createLogger(_0x52a55f(-0xda,-0x10f)+'e',_0x47d762[_0x5e8337(0x59b,0x5a5)]);try{_0x4c2dad[_0x52a55f(0x45,0x3a)]('Hook\x20start'+'ed',{'toolName':_0x373c3c[_0x52a55f(-0x8c,-0xb8)]});if(!_0x47d762['autoCaptur'+'e'][_0x52a55f(-0x9,-0x78)]){_0x4c2dad[_0x5e8337(0x5e4,0x63c)]('Auto-captu'+_0x52a55f(0x2e,0xa1)+'d');return;}if(!_0x47d762[_0x5e8337(0x58b,0x507)+'e'][_0x5e8337(0x4d0,0x43f)][_0x52a55f(-0x32,0x14)](_0x373c3c['toolName'])){_0x4c2dad[_0x5e8337(0x4d8,0x492)]('Tool\x20not\x20i'+'n\x20triggers',{'toolName':_0x373c3c['toolName']});return;}const _0x185bf7=extractFilePath(_0x373c3c[_0x5e8337(0x55f,0x5ce)]);if(_0x185bf7&&isSensitiveFile(_0x185bf7,_0x47d762[_0x5e8337(0x58b,0x4d9)+'e'][_0x5e8337(0x5a6,0x547)+_0x52a55f(0x4a,0xfe)])){_0x4c2dad[_0x52a55f(0x45,0xdc)]('Sensitive\x20'+_0x52a55f(-0x20,0x9)+_0x5e8337(0x4cf,0x553),{'filePath':_0x185bf7});return;}if(_0x185bf7&&isClaudeMemoryFile(_0x185bf7)&&(_0x373c3c[_0x5e8337(0x513,0x512)]===_0x5e8337(0x598,0x645)||_0x373c3c['toolName']==='Edit')){if(_0x5e8337(0x585,0x592)!==_0x5e8337(0x585,0x56d))_0x1ad8aa(_0x48842f['targetMemo'+'ry'])?_0x227d08[_0x52a55f(0x45,-0x4a)](_0x52a55f(0x80,0x10e)+_0x5e8337(0x4df,0x4e9)+_0x52a55f(0x7a,0xef)+_0x5e8337(0x539,0x589)+'sset)',{'memoryId':_0x233b66[_0x5e8337(0x4d2,0x57f)+'ry']['id'],'category':_0x497896[_0x52a55f(-0xcd,-0xa9)+'ry'][_0x5e8337(0x54f,0x5ff)]}):(_0x411fa9[_0x5e8337(0x527,0x568)+'ry'](_0x170336[_0x52a55f(-0xcd,-0x79)+'ry']['id'],{'invalidAt':new _0xab453()[_0x5e8337(0x55d,0x520)+'g']()}),_0x19018e['info'](_0x5e8337(0x5ab,0x512)+_0x52a55f(-0x93,-0x21)+_0x5e8337(0x586,0x63b),{'memoryId':_0x72051f[_0x52a55f(-0xcd,-0xa9)+'ry']['id']}));else{const _0x5abda7=performance[_0x5e8337(0x4c6,0x425)]();try{const _0x190c71=getSharedDb(_0x47d762['db'][_0x5e8337(0x50d,0x567)]),{syncClaudeMd:_0x2a19bd}=await import('../claude/'+_0x5e8337(0x5fe,0x581));await _0x2a19bd(_0x190c71,{'claudeMdPath':_0x185bf7,'projectPath':_0x373c3c['projectPat'+'h']});const _0xf5061f=performance[_0x52a55f(-0xd9,-0xae)](),_0x5abcae=Math[_0x52a55f(-0xd6,-0x14b)](_0xf5061f-_0xa3b872),_0x113354=Math[_0x52a55f(-0xd6,-0x91)](_0xf5061f-_0x5abda7),_0x53ecae=Math[_0x52a55f(-0xd6,-0x161)](_0x3f847f-_0xa3b872);process[_0x52a55f(0x8b,0x53)][_0x5e8337(0x5a5,0x61f)]('[A2A]\x20Post'+'ToolUse\x20co'+_0x52a55f(-0x2e,0x59)+_0x52a55f(-0x3f,0x5a)+_0x5abcae+(_0x52a55f(-0x83,-0xd3)+'g:\x20')+_0x53ecae+(_0x5e8337(0x5ae,0x516)+_0x52a55f(-0x36,-0x6f))+_0x113354+'ms)\x0a'),_0x4c2dad[_0x52a55f(0x45,0x2c)](_0x5e8337(0x51b,0x5b3)+'ory\x20file\x20s'+_0x52a55f(0x59,-0x3a),{'filePath':_0x185bf7});}catch(_0x1b595f){_0x4c2dad[_0x52a55f(0x60,0xec)](_0x5e8337(0x51b,0x584)+_0x52a55f(-0x4d,-0x97)+_0x5e8337(0x4dd,0x4e1),{'error':_0x1b595f instanceof Error?_0x1b595f[_0x5e8337(0x5af,0x521)]:String(_0x1b595f)});}return;}}const _0x4ae3a7=performance['now'](),_0x1bfeba={'uuid':_0x373c3c['sessionId'],'type':'assistant','message':{'role':'assistant','content':_0x373c3c[_0x5e8337(0x5b7,0x604)]},'timestamp':new Date()[_0x52a55f(-0x42,0x3d)+'g']()},_0x481eb3=_0x373c3c['toolName']===_0x52a55f(-0x7,-0x68),_0x349334=_0x185bf7?isConfigFile(_0x185bf7):![],_0x4db834=detectActualError(_0x373c3c[_0x5e8337(0x5b7,0x5e8)],_0x373c3c['toolInput']);let _0x442362;if(_0x373c3c[_0x5e8337(0x513,0x4fb)]==='Bash'&&_0x373c3c[_0x5e8337(0x55f,0x60f)]){if(_0x52a55f(-0x80,0x1c)===_0x52a55f(-0x80,-0x2b))try{const _0x55583d=typeof _0x373c3c['toolInput']===_0x52a55f(-0x51,0x1e)?JSON[_0x52a55f(0x1f,0x3f)](_0x373c3c[_0x52a55f(-0x40,-0xd5)]):_0x373c3c[_0x5e8337(0x55f,0x559)];_0x442362=_0x55583d?.[_0x52a55f(-0x37,-0x26)]??_0x55583d?.[_0x52a55f(-0x22,0x5d)]??(typeof _0x55583d===_0x52a55f(-0x51,-0x5d)?_0x55583d:undefined);}catch{'hxJEO'!==_0x52a55f(-0x4b,-0x9c)?_0x1d9640():_0x442362=typeof _0x373c3c['toolInput']==='string'?_0x373c3c['toolInput']:undefined;}else return'';}const _0x45ba3=scoreSignificance(_0x1bfeba,{'toolName':_0x373c3c[_0x5e8337(0x513,0x4a4)],'isNewFile':_0x481eb3,'isConfigChange':_0x349334,'hasError':_0x4db834,'bashCommand':_0x442362},_0x47d762[_0x52a55f(-0x14,0x52)+'e']['significan'+_0x5e8337(0x519,0x596)+'d']),_0x571b94=performance[_0x52a55f(-0xd9,-0x12b)](),_0x4c591b=_0x47d762[_0x52a55f(-0x14,-0x41)+'e'][_0x5e8337(0x5ec,0x54b)+'ceThreshol'+'d']*0.5;_0x4c2dad[_0x5e8337(0x5e4,0x539)](_0x5e8337(0x618,0x686)+_0x52a55f(0x33,0x6d),{'toolName':_0x373c3c[_0x52a55f(-0x8c,-0x137)],'score':_0x45ba3[_0x5e8337(0x548,0x4ac)],'shouldCapture':_0x45ba3[_0x52a55f(-0x57,0x41)]>=_0x4c591b});if(_0x45ba3['totalScore']<_0x4c591b)return;const _0x382370=determineCategory(_0x373c3c,_0x4db834),_0x4629ea=buildContent(_0x373c3c);if(!_0x4629ea){_0x4c2dad[_0x52a55f(0x45,0x9d)](_0x52a55f(-0xa2,-0xb4)+_0x52a55f(0x39,0x44)+_0x52a55f(0x11,0xa1)+_0x5e8337(0x5a3,0x51a),{'toolName':_0x373c3c['toolName']});return;}const _0x108f33=filterSensitiveInfo(_0x4629ea);let _0x5e651a;if(_0x4db834)_0x5e651a=_0x5e8337(0x610,0x5f4);else _0x45ba3[_0x5e8337(0x548,0x562)]<_0x47d762[_0x5e8337(0x58b,0x4ef)+'e'][_0x52a55f(0x4d,0x8a)+_0x52a55f(-0x86,-0x7)+'d']?_0x5e651a=_0x5e8337(0x617,0x6a7):_0x5e651a=_0x52a55f(-0xc6,-0x31);const _0x15af8a={'content':_0x108f33[_0x52a55f(0x34,0xe8)],'category':_0x382370,'tier':_0x5e651a,'tags':buildTags(_0x373c3c),'projectPath':_0x373c3c['projectPat'+'h'],'sessionId':_0x373c3c['sessionId'],'memoryType':CATEGORY_TYPE_MAP[_0x382370]??_0x5e8337(0x570,0x5cf)},_0x222310=getSharedDb(_0x47d762['db'][_0x5e8337(0x50d,0x5be)]),_0x2b12f7=performance[_0x52a55f(-0xd9,-0xf9)](),_0x54cbcc=new DedupManager(),_0x8188ed=_0x54cbcc['findCandid'+'ates'](_0x222310[_0x5e8337(0x566,0x552)+'es']({'projectPath':_0x373c3c[_0x5e8337(0x5e2,0x656)+'h'],'limit':0x32,'excludeParents':!![]}),_0x382370,_0x373c3c[_0x52a55f(0x43,0x14)+'h']),_0x44a298=_0x54cbcc[_0x5e8337(0x4f8,0x48f)](_0x108f33['filtered'],_0x8188ed),_0x36b492=performance[_0x52a55f(-0xd9,-0xec)]();_0x4c2dad[_0x52a55f(0x45,-0x37)](_0x52a55f(0x2d,0x58)+_0x52a55f(0x6e,0x8a),{'action':_0x44a298[_0x52a55f(-0x38,0x1b)],'similarity':_0x44a298[_0x52a55f(0x50,-0x22)]});const _0x482a87=performance[_0x52a55f(-0xd9,-0xf2)]();let _0x11ef11;try{switch(_0x44a298[_0x5e8337(0x567,0x4d7)]){case _0x52a55f(-0xca,-0x17d):_0x4c2dad[_0x52a55f(0x45,-0x36)](_0x52a55f(0x48,-0x26)+'pped\x20(dupl'+_0x5e8337(0x5bb,0x5c3),{'similarity':_0x44a298[_0x5e8337(0x5ef,0x66b)]});return;case _0x52a55f(-0xa5,-0xd6):if(_0x44a298[_0x5e8337(0x4d2,0x4eb)+'ry']){const _0x49f82e=_0x54cbcc['mergeConte'+'nt'](_0x44a298[_0x5e8337(0x4d2,0x4b7)+'ry'][_0x5e8337(0x5f4,0x60c)],_0x108f33[_0x52a55f(0x34,0x70)]);if(_0x49f82e[_0x5e8337(0x5d4,0x58c)]){if(_0x5e8337(0x54c,0x4e7)!==_0x5e8337(0x54c,0x4df))_0x5be87d[_0x52a55f(0x26,-0x57)+_0x52a55f(0x3a,0xeb)]({'memoryId':_0x21ae77['id'],'sessionId':_0x57c2b5[_0x52a55f(-0x15,-0x5a)],'significanceScore':_0x36e017['totalScore'],'dedupAction':_0x1bc50b[_0x52a55f(-0x38,-0x13)],'tier':_0x4e8a8c});else{_0x11ef11=_0x222310['createMemo'+'ry'](_0x15af8a);_0x5e651a!==_0x5e8337(0x617,0x6c8)&&_0x222310[_0x52a55f(0xb,-0x21)+'tus'](_0x11ef11['id'],null,_0x52a55f(0x24,-0x1b));_0x4c2dad[_0x52a55f(0x45,0x36)](_0x5e8337(0x534,0x51d)+_0x52a55f(-0xb6,-0x55)+_0x5e8337(0x5dd,0x539)+'(would\x20tru'+'ncate)',{'targetId':_0x44a298[_0x5e8337(0x4d2,0x47c)+'ry']['id'],'newId':_0x11ef11['id'],'targetLength':_0x44a298[_0x5e8337(0x4d2,0x46f)+'ry'][_0x52a55f(0x55,-0x18)]['length'],'wouldBeLength':_0x49f82e['wouldBeLen'+_0x52a55f(0x2b,0x2d)]});break;}}_0x222310[_0x52a55f(-0x78,0x3c)+'ry'](_0x44a298[_0x52a55f(-0xcd,-0x75)+'ry']['id'],{'content':_0x49f82e[_0x52a55f(0x55,0x2d)],'tags':[...new Set([..._0x44a298['targetMemo'+'ry']['tags']||[],...buildTags(_0x373c3c)])]}),_0x4c2dad['info'](_0x5e8337(0x4fc,0x53a)+_0x52a55f(-0x94,-0x11f)+'ed)',{'memoryId':_0x44a298[_0x5e8337(0x4d2,0x495)+'ry']['id']});}return;case _0x52a55f(0x75,-0x24):{if(_0x52a55f(-0xd8,-0x16d)!==_0x52a55f(-0x1f,-0x45)){if(_0x44a298[_0x52a55f(-0xcd,-0x181)+'ry']){if(_0x52a55f(0x32,0x1f)!==_0x5e8337(0x5d1,0x675)){const _0x19ba56=_0x5a5224[_0x5e8337(0x5be,0x5b2)](_0x5cc82b),_0x2ff46b=(_0x19ba56[_0x5e8337(0x52a,0x54d)]||'')[_0x5e8337(0x521,0x576)](),_0x125e2c=(_0x19ba56[_0x52a55f(0x8b,0x4e)]||'')[_0x52a55f(-0x7e,-0x8f)]();if(_0x125e2c&&_0x125e2c[_0x5e8337(0x4d6,0x4b1)]>0xa)return _0x5e8337(0x51a,0x477)+_0x125e2c[_0x52a55f(-0x82,-0x11b)](0x0,0x1f4)+(_0x2ff46b?'\x0a[Output]\x20'+_0x2ff46b[_0x52a55f(-0x82,-0xd0)](0x0,0x12c):'');if(_0x2ff46b)return _0x2ff46b['slice'](0x0,0x3e8);return _0x581787['slice'](0x0,0x1f4);}else isProtectedFromCleanup(_0x44a298[_0x52a55f(-0xcd,-0x14b)+'ry'])?_0x4c2dad[_0x5e8337(0x5e4,0x58f)](_0x52a55f(0x80,0xcd)+'alidation\x20'+_0x5e8337(0x619,0x5f7)+_0x5e8337(0x539,0x583)+_0x5e8337(0x52b,0x596),{'memoryId':_0x44a298[_0x52a55f(-0xcd,-0x5f)+'ry']['id'],'category':_0x44a298[_0x52a55f(-0xcd,-0x141)+'ry'][_0x5e8337(0x54f,0x541)]}):_0x52a55f(-0x96,-0x134)!==_0x52a55f(0x73,0x11f)?(_0x222310[_0x5e8337(0x527,0x559)+'ry'](_0x44a298['targetMemo'+'ry']['id'],{'invalidAt':new Date()[_0x5e8337(0x55d,0x5f6)+'g']()}),_0x4c2dad[_0x52a55f(0x45,0xc2)]('Old\x20memory'+_0x52a55f(-0x93,-0xa0)+_0x52a55f(-0x19,0x4f),{'memoryId':_0x44a298['targetMemo'+'ry']['id']})):_0x18be90[_0x52a55f(0xb,-0x11)+_0x5e8337(0x546,0x56d)](_0x598e07['id'],null,_0x5e8337(0x5c3,0x57e));}_0x11ef11=_0x222310['createMemo'+'ry'](_0x15af8a);_0x5e651a!==_0x52a55f(0x78,-0x1f)&&_0x222310[_0x5e8337(0x5aa,0x5d9)+_0x5e8337(0x546,0x50e)](_0x11ef11['id'],null,'pending');_0x4c2dad[_0x5e8337(0x5e4,0x57b)](_0x5e8337(0x630,0x5d2)+'tured\x20(aft'+'er\x20delete)',{'category':_0x382370,'memoryId':_0x11ef11['id']});break;}else _0x377011=typeof _0x1b47b9[_0x52a55f(-0x40,0x51)]==='string'?_0x3e3d4e['toolInput']:_0x10cc28;}case _0x5e8337(0x58d,0x4df):default:_0x11ef11=_0x222310['createMemo'+'ry'](_0x15af8a);_0x5e651a!==_0x5e8337(0x617,0x60c)&&_0x222310[_0x52a55f(0xb,-0x5)+_0x52a55f(-0x59,-0x74)](_0x11ef11['id'],null,_0x52a55f(0x24,0x24));_0x4c2dad[_0x52a55f(0x45,0x66)](_0x52a55f(0x91,0xf2)+_0x5e8337(0x5a7,0x581),{'category':_0x382370,'memoryId':_0x11ef11['id']});break;}}catch(_0x36339e){const _0x1d75a5=_0x36339e instanceof Error?_0x36339e:new Error(String(_0x36339e));_0x4c2dad['error']('Memory\x20cre'+'ation\x20fail'+'ed',_0x1d75a5,{'category':_0x382370});}const _0x6e5737=performance[_0x52a55f(-0xd9,-0x50)]();if(_0x11ef11&&_0x47d762['embedding']?.[_0x5e8337(0x596,0x5df)]&&_0x47d762[_0x5e8337(0x5fb,0x668)][_0x5e8337(0x526,0x5a7)]===_0x52a55f(-0x44,-0xf)){if(_0x5e8337(0x573,0x585)!==_0x52a55f(-0xcc,-0x35))try{const {createEmbeddingProvider:_0x8eba4e}=await import('../embeddi'+'ng/index.j'+'s'),_0x58dc69=_0x8eba4e(_0x47d762['embedding'],_0x47d762[_0x52a55f(-0xd4,-0x4f)]),_0xde86d4=await Promise['resolve'](_0x58dc69['embed'](_0x11ef11[_0x5e8337(0x5f4,0x553)]));Array['isArray'](_0xde86d4)&&(_0x52a55f(0x1d,-0x13)!==_0x5e8337(0x4c4,0x45f)?_0x222310[_0x5e8337(0x5d6,0x5bc)+_0x5e8337(0x5c2,0x5a5)](_0x11ef11['id'],_0xde86d4):(_0x41fcb9['error'](_0x52a55f(0x1,-0x13)+_0x52a55f(-0x4f,-0x49)+'ror:',_0x384373 instanceof _0xa2596a?_0x5e7f3a[_0x5e8337(0x5af,0x5e9)]:_0x5d064c),_0x588a3a[_0x5e8337(0x607,0x625)](0x0)));}catch(_0xe3b1e6){_0x4c2dad[_0x52a55f(0x60,0x86)](_0x5e8337(0x60f,0x571)+_0x5e8337(0x4e2,0x42f),{'error':_0xe3b1e6 instanceof Error?_0xe3b1e6[_0x5e8337(0x5af,0x601)]:String(_0xe3b1e6)});}else return _0x52a55f(-0x33,-0x8e);}try{const _0x169ad5=_0x222310[_0x5e8337(0x4cc,0x546)+_0x52a55f(0x56,0x84)](_0x373c3c[_0x5e8337(0x58a,0x63d)]);if(_0x169ad5&&_0x169ad5[_0x52a55f(-0x9f,-0x8a)+'ywords']){const _0x1be15f=(_0x373c3c['toolName']+'\x20'+JSON[_0x52a55f(-0xe,-0x81)](_0x373c3c['toolInput'])+'\x20'+String(_0x373c3c['toolResult']))['toLowerCas'+'e'](),{parseInjectedKeywords:_0x1da20}=await import('./shared.j'+'s'),_0x5e3a88=_0x1da20(_0x169ad5[_0x5e8337(0x500,0x470)+'ywords']);let _0x5f44e7=[],_0x228313=[];if(_0x5e3a88['isMap']){if(_0x5e8337(0x5b2,0x621)===_0x52a55f(0x13,-0x61)){for(const [_0x150839,_0x3124ab]of Object[_0x52a55f(-0x4e,-0xc5)](_0x5e3a88[_0x52a55f(0x47,0x67)])){const _0x5e195c=_0x3124ab['filter'](_0x2e8b44=>_0x1be15f[_0x5e8337(0x56d,0x5eb)](_0x2e8b44));_0x5e195c[_0x52a55f(-0xc9,-0xbc)]>0x0&&(_0x5f44e7[_0x52a55f(-0xac,-0x103)](..._0x5e195c),_0x228313[_0x5e8337(0x4f3,0x440)](_0x150839));}_0x5f44e7=[...new Set(_0x5f44e7)],_0x228313=[...new Set(_0x228313)];}else{const _0x182353=_0x238985['toLowerCas'+'e']();if(!/^\d+$/[_0x5e8337(0x613,0x655)](_0x5eb2cc)&&_0x269522[_0x5e8337(0x4d6,0x42f)]>0x2&&!_0x7ab079[_0x5e8337(0x529,0x546)](_0x182353)){const _0x1a9945=['md',_0x52a55f(0x5b,-0x2d),_0x52a55f(-0x2,-0x71),'yml',_0x52a55f(-0x97,-0xb2),_0x5e8337(0x624,0x66b),_0x52a55f(0x30,0xd0),_0x52a55f(-0xb7,-0x13e)];!_0x1a9945[_0x5e8337(0x56d,0x57f)](_0x182353)&&_0x45e4d2[_0x52a55f(-0xac,0xa)](_0x36c92d);}}}else _0x52a55f(0x14,0x82)!=='teQPV'?_0x5f44e7=_0x5e3a88[_0x5e8337(0x4f6,0x4db)]['filter'](_0x1b0721=>_0x1be15f['includes'](_0x1b0721)):_0x2f1c36=_0x36a00e['keywords']['filter'](_0x2bdcbd=>_0x15fb67[_0x52a55f(-0x32,-0xa4)](_0x2bdcbd));_0x5f44e7['length']>0x0&&(_0x52a55f(0x3c,0x46)!==_0x52a55f(0x3c,-0x10)?_0x573020=_0x2372fc[_0x52a55f(0x1f,0x55)](_0x12dba8):_0x222310[_0x5e8337(0x581,0x557)+_0x52a55f(-0x10,0x48)](_0x169ad5['id'],_0x5f44e7,_0x373c3c[_0x5e8337(0x513,0x56b)],_0x228313));}}catch{}if(_0x11ef11&&(_0x44a298[_0x52a55f(-0x38,-0x80)]===_0x52a55f(-0x12,0x6)||_0x44a298[_0x5e8337(0x567,0x5ed)]===_0x5e8337(0x614,0x601))){if(_0x52a55f(-0x3a,-0xae)!==_0x52a55f(-0x5c,-0x6d))try{_0x222310['recordExtr'+_0x5e8337(0x5d9,0x58b)]({'memoryId':_0x11ef11['id'],'sessionId':_0x373c3c[_0x52a55f(-0x15,0x8c)],'significanceScore':_0x45ba3[_0x5e8337(0x548,0x580)],'dedupAction':_0x44a298[_0x52a55f(-0x38,0x5e)],'tier':_0x5e651a});}catch{}else{_0x165a4a[_0x52a55f(0x45,0xbe)](_0x5e8337(0x59e,0x5a2)+_0x52a55f(0x2e,0x81)+'d');return;}}if(_0x11ef11&&_0x11ef11['embedding']&&_0x47d762[_0x52a55f(-0x5b,-0xca)+_0x5e8337(0x532,0x598)]?.['enabled'])try{if(_0x5e8337(0x620,0x5c8)===_0x5e8337(0x623,0x655))_0x21d3c2['warn'](_0x5e8337(0x52f,0x4b7)+_0x52a55f(-0xbd,-0xa2),{'error':_0x3cc554 instanceof _0x2f95cd?_0x1a4054['message']:_0x528076(_0x18fc32)});else{const {SkillEvaluator:_0x4017fa}=await import(_0x5e8337(0x4eb,0x564)+'valuator.j'+'s'),_0x5aac4d=new _0x4017fa(_0x222310,_0x47d762),_0x2bd12c=_0x5aac4d[_0x52a55f(0x7e,0x10f)+_0x5e8337(0x559,0x5a8)](_0x11ef11);_0x2bd12c[_0x5e8337(0x518,0x4e0)]&&_0x4c2dad[_0x5e8337(0x5e4,0x64d)](_0x52a55f(0x7b,0x107)+'orbed\x20into'+_0x52a55f(-0x73,-0x26),{'memoryId':_0x11ef11['id'],'skillId':_0x2bd12c['skillId']});}}catch{}const _0x8737e=performance[_0x52a55f(-0xd9,-0x18f)]();let _0x5eb650=0x0;const _0x5e7a11=_0x47d762[_0x52a55f(-0x65,0x28)+_0x52a55f(-0x4c,0x60)]?.[_0x52a55f(-0x9,-0x70)]!==![]&&_0x47d762[_0x5e8337(0x53a,0x55c)+'shot']?.[_0x52a55f(-0x27,0x2a)+_0x52a55f(0x62,0xaf)]!==!![];if(_0x47d762[_0x5e8337(0x615,0x59e)]?.[_0x5e8337(0x596,0x55e)]&&_0x47d762[_0x5e8337(0x5a1,0x61f)]?.['apiKey']&&!_0x5e7a11){try{const _0x4a1fd2=_0x222310[_0x52a55f(-0x62,-0x17)+_0x5e8337(0x53e,0x5bf)]();if(_0x4a1fd2>=AUTO_SYNC_THRESHOLD){if(_0x5e8337(0x540,0x4d1)===_0x5e8337(0x540,0x4dd)){const _0x2fc9f6=createHookClient(_0x47d762);if(_0x2fc9f6){if(_0x52a55f(0x28,-0x77)==='owren')_0x6d7336[_0x5e8337(0x5e4,0x536)](_0x52a55f(0x80,0x104)+_0x5e8337(0x4df,0x462)+_0x5e8337(0x619,0x626)+_0x52a55f(-0x66,-0xec)+_0x52a55f(-0x74,-0x65),{'memoryId':_0x1eb5cd['targetMemo'+'ry']['id'],'category':_0x4b91bb['targetMemo'+'ry'][_0x5e8337(0x54f,0x4c9)]});else{const _0xf0366a=new SyncQueue(_0x222310,_0x2fc9f6),_0x46b455=await _0xf0366a[_0x52a55f(-0xb1,-0x60)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x46b455['pushed']>0x0&&(_0x5e8337(0x611,0x5b0)===_0x52a55f(0x72,0xd1)?(_0x4c2dad['info'](_0x5e8337(0x52f,0x595)+_0x5e8337(0x4d4,0x479),{'pushed':_0x46b455[_0x5e8337(0x4d4,0x4ed)],'pending':_0x4a1fd2}),console[_0x5e8337(0x626,0x581)](_0x5e8337(0x57c,0x580)+'-synced\x20'+_0x46b455[_0x5e8337(0x4d4,0x4b5)]+'\x20memories')):_0x3ed183['setSyncSta'+'tus'](_0x386253['id'],null,'pending'));}}}else{const _0x186d33=['md',_0x52a55f(0x5b,0x108),_0x52a55f(-0x2,0x2b),_0x52a55f(-0x2b,0xf),_0x5e8337(0x508,0x590),_0x52a55f(0x85,0x111),_0x52a55f(0x30,0x12),_0x52a55f(-0xb7,-0xae)];!_0x186d33[_0x52a55f(-0x32,-0x93)](_0x29dd94)&&_0x1407c1['push'](_0x5547e4);}}}catch(_0x3d89c9){_0x4c2dad[_0x5e8337(0x5ff,0x629)](_0x5e8337(0x52f,0x485)+_0x5e8337(0x4e2,0x448),{'error':_0x3d89c9 instanceof Error?_0x3d89c9[_0x5e8337(0x5af,0x56f)]:String(_0x3d89c9)});}_0x5eb650=Math[_0x52a55f(-0xd6,-0x9b)](performance['now']()-_0x8737e);}else _0x47d762['autoSync']?.[_0x52a55f(-0x9,0x6d)]&&_0x47d762[_0x5e8337(0x5a1,0x651)]?.['apiKey']&&_0x5e7a11&&_0x4c2dad[_0x52a55f(-0xc7,-0x16e)](_0x5e8337(0x584,0x4d3)+_0x5e8337(0x54a,0x4ea)+'\x20(ADR-033)'+_0x52a55f(0x57,0xb4)+'nc\x20deferre'+_0x5e8337(0x5ee,0x5cb)+_0x52a55f(0x69,-0x37));const _0x5b95aa=Math[_0x52a55f(-0xd6,-0xe0)](performance['now']()-_0xa3b872),_0x2a495d=Math['round'](_0x3f847f-_0xa3b872),_0x5af9d0=Math[_0x52a55f(-0xd6,-0x17d)](_0x571b94-_0x4ae3a7),_0x26f260=Math[_0x52a55f(-0xd6,-0xea)](_0x36b492-_0x2b12f7),_0x3e63cd=Math['round'](_0x6e5737-_0x482a87),_0x159d7d=_0x5eb650>0x0?',\x20sync:\x20'+_0x5eb650+'ms':'';process[_0x5e8337(0x62a,0x5fd)][_0x5e8337(0x5a5,0x646)](_0x5e8337(0x60a,0x6b6)+'ToolUse\x20co'+_0x5e8337(0x571,0x57c)+'otal:\x20'+_0x5b95aa+('ms\x20|\x20confi'+_0x5e8337(0x58c,0x502))+_0x2a495d+(_0x52a55f(0x88,0x102)+'icance:\x20')+_0x5af9d0+(_0x52a55f(-0xb2,-0x70)+'\x20')+_0x26f260+_0x5e8337(0x4f9,0x564)+_0x3e63cd+'ms'+_0x159d7d+')\x0a'),_0x4c2dad[_0x52a55f(0x45,0x68)](_0x52a55f(-0x9c,-0x113)+_0x52a55f(0x53,0x90),{'durationMs':_0x5b95aa});}finally{_0x4c2dad['flush']();}}function extractFilePath(_0x1d7996){let _0x110024=_0x1d7996;if(typeof _0x110024===_0x1cf880(0x3a6,0x42f))try{_0x110024=JSON['parse'](_0x110024);}catch{return null;}if(typeof _0x110024===_0x5d6a13(0x558,0x605)&&_0x110024!==null){if(typeof _0x110024[_0x1cf880(0x40e,0x471)]===_0x5d6a13(0x51d,0x4e0))return _0x110024[_0x5d6a13(0x585,0x513)];if(typeof _0x110024['path']===_0x1cf880(0x3a6,0x3a4))return _0x110024[_0x1cf880(0x365,0x2bf)];}function _0x5d6a13(_0x5476d9,_0x4cfde0){return _0x1f75c1(_0x4cfde0,_0x5476d9-0x6e2);}function _0x1cf880(_0x172285,_0x36ef22){return _0x1f75c1(_0x36ef22,_0x172285-0x56b);}return null;}function isSensitiveFile(_0x5860fc,_0x2df0b8){const _0x5e3ef9=_0x5860fc[_0x1daac3(0x33a,0x39e)]('/')[_0x1daac3(0x38d,0x2d8)]()??'';function _0x1daac3(_0x2945f3,_0x3ed643){return _0x2ab5b6(_0x2945f3- -0x1c8,_0x3ed643);}function _0x4f8279(_0xeffbc5,_0x1f6c75){return _0x2ab5b6(_0xeffbc5-0xc,_0x1f6c75);}return _0x2df0b8[_0x4f8279(0x565,0x554)](_0x32be78=>{if(_0x32be78[_0x1f21ba(-0x12a,-0x82)]('*'))return _0x5e3ef9[_0xb2c8df(-0xd3,-0x5b)](_0x32be78['slice'](0x1));if(_0x32be78[_0xb2c8df(-0xd3,-0xb5)]('*'))return _0x5e3ef9[_0xb2c8df(-0xb1,-0x4c)](_0x32be78[_0xb2c8df(-0xa8,-0xc9)](0x0,-0x1));function _0x1f21ba(_0x4213cd,_0x3d0bf2){return _0x4f8279(_0x4213cd- -0x5a3,_0x3d0bf2);}function _0xb2c8df(_0x215b62,_0x4398f9){return _0x4f8279(_0x215b62- -0x52a,_0x4398f9);}return _0x5e3ef9===_0x32be78;});}function isConfigFile(_0xdb797f){function _0x323a6b(_0x11864b,_0x4d466f){return _0x2ab5b6(_0x11864b- -0x10f,_0x4d466f);}const _0x590804=[_0x323a6b(0x437,0x448),_0x53b7d1(0x3bc,0x43c),_0x323a6b(0x44c,0x4b6),_0x53b7d1(0x35e,0x2aa),'.env',_0x323a6b(0x434,0x3ea),_0x53b7d1(0x40e,0x3ea)];function _0x53b7d1(_0x14c238,_0x1ce6ab){return _0x2ab5b6(_0x14c238- -0x100,_0x1ce6ab);}return _0x590804['some'](_0x8df288=>_0xdb797f[_0x323a6b(0x33c,0x2df)](_0x8df288));}function detectActualError(_0x75cb26,_0x525e90){function _0x13a9c7(_0x31149c,_0x215d30){return _0x1f75c1(_0x31149c,_0x215d30-0xd0);}if(_0x75cb26[_0x13a9c7(-0x1d4,-0x16d)]<0xc8)return![];const _0x13be69=_0x525e90?.[_0x2eeafb(0x558,0x4e3)];function _0x2eeafb(_0x4d9265,_0xb30f39){return _0x1f75c1(_0xb30f39,_0x4d9265-0x758);}if(_0x13be69===_0x2eeafb(0x5e1,0x550))return![];const _0x44b7a4=_0x75cb26[_0x13a9c7(-0x179,-0x135)+'e'](),_0x281a67=[_0x13a9c7(-0xf3,-0xd4),_0x2eeafb(0x55c,0x5e1),_0x13a9c7(0x66,-0x40),_0x13a9c7(-0x65,-0x84),_0x13a9c7(-0xb6,-0x165),_0x2eeafb(0x57b,0x5c2),_0x2eeafb(0x57d,0x578),_0x13a9c7(-0x160,-0x13f),_0x2eeafb(0x52f,0x55b),'Traceback'],_0x266d16=_0x281a67['some'](_0x35b9db=>_0x75cb26['includes'](_0x35b9db)||_0x44b7a4['includes'](_0x35b9db[_0x13a9c7(-0x11c,-0x135)+'e']()));if(!_0x266d16)return![];const _0x2ff87b=_0x525e90?.[_0x2eeafb(0x5fb,0x6ae)]||_0x525e90?.[_0x2eeafb(0x552,0x5c2)]||'';if(_0x2ff87b['toLowerCas'+'e']()[_0x13a9c7(-0xb9,-0xd6)](_0x2eeafb(0x66b,0x71d))&&!_0x281a67[_0x2eeafb(0x562,0x5a6)](0x2)[_0x13a9c7(0x1b,-0x43)](_0xc2521e=>_0x44b7a4[_0x13a9c7(-0x169,-0xd6)](_0xc2521e[_0x2eeafb(0x553,0x4ac)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x7c6957,_0x110f50){if(_0x110f50)return _0x2fe5b7(0x5,-0xa8)+_0xd1ad6a(-0x183,-0x175);const _0x3c23fe=_0x7c6957['toolResult'][_0xd1ad6a(-0x100,-0x1a3)+'e'](),_0x51b963=_0x7c6957[_0xd1ad6a(-0xbc,-0xfa)];if(_0x7c6957[_0x2fe5b7(0x1d,-0x4f)]==='Bash'){const _0x252cec=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0xd1ad6a(-0x135,-0x9e)](_0x7c6957[_0x2fe5b7(0xc1,0xbe)]);if(_0x252cec)return _0xd1ad6a(-0x34,-0x8f);const _0x5cc8e0=[_0xd1ad6a(-0x1a8,-0x150),'decided',_0x2fe5b7(0x85,-0x2f),_0x2fe5b7(-0x11,-0x10),_0x2fe5b7(0x8,-0x43),_0xd1ad6a(-0x163,-0xeb)];if(_0x5cc8e0[_0x2fe5b7(0x10a,0x1ab)](_0x3a2170=>_0x3c23fe['includes'](_0x3a2170)))return _0xd1ad6a(-0x11,-0xa8);const _0x47f7f1=[_0x2fe5b7(0x107,0x133),_0xd1ad6a(-0x181,-0x1cb),_0xd1ad6a(-0x36,-0x83),_0xd1ad6a(-0xb7,-0x84),_0x2fe5b7(0xe6,0x14c),_0x2fe5b7(-0x1,-0x8d)+_0xd1ad6a(-0x18d,-0x1c0)];if(_0x47f7f1[_0x2fe5b7(0x10a,0x54)](_0x5f1432=>_0x3c23fe[_0x2fe5b7(0x77,0x21)](_0x5f1432))){if('jdRcd'!==_0x2fe5b7(0x110,0x120))return _0xd1ad6a(-0x139,-0xb4);else _0x5e60ee[_0x2fe5b7(-0x3,0x27)](..._0x3fbe79),_0x1e3f71['push'](_0x21b1fa);}if(LEARNING_KEYWORDS_RE[_0xd1ad6a(-0xcd,-0x9e)](_0x51b963))return _0x2fe5b7(0x76,0xea);}if(_0x7c6957['toolName']===_0x2fe5b7(0xa6,0xd8)||_0x7c6957[_0xd1ad6a(-0x226,-0x19e)]===_0xd1ad6a(-0x177,-0x13f)||_0x7c6957[_0xd1ad6a(-0x105,-0x19e)]==='Glob')return'context';function _0x2fe5b7(_0x59caa4,_0x45d211){return _0x1f75c1(_0x45d211,_0x59caa4-0x21d);}function _0xd1ad6a(_0x3160f7,_0x72cdd3){return _0x1f75c1(_0x3160f7,_0x72cdd3-0x62);}if(_0x7c6957[_0xd1ad6a(-0x15a,-0x19e)]===_0xd1ad6a(-0x15a,-0x119)||_0x7c6957[_0xd1ad6a(-0x131,-0x19e)]===_0x2fe5b7(0x5f,0x90)){const _0x3ab463=extractFilePath(_0x7c6957[_0x2fe5b7(0x69,-0x19)]),_0x5b20cd=_0x7c6957[_0xd1ad6a(-0x156,-0xfa)];if(_0x3ab463&&(_0x3ab463['includes'](_0x2fe5b7(0x9c,-0x5))||_0x3ab463[_0xd1ad6a(-0xcb,-0x144)]('/tmp/')))return _0xd1ad6a(-0x7c,-0x8f);if(_0x5b20cd['length']<0x32||_0x5b20cd[_0xd1ad6a(-0x1d3,-0x1a3)+'e']()['includes']('file\x20writt'+_0xd1ad6a(-0x17e,-0x18c)+_0xd1ad6a(-0x1a9,-0x1ce))||_0x5b20cd[_0xd1ad6a(-0x15d,-0x1a3)+'e']()[_0xd1ad6a(-0x1c1,-0x144)](_0x2fe5b7(0x53,0xee)+'ed')||_0x5b20cd['toLowerCas'+'e']()[_0xd1ad6a(-0x1c9,-0x144)](_0xd1ad6a(-0x1fd,-0x1c1)+_0x2fe5b7(0xb6,0xfc)))return _0x2fe5b7(0x12c,0x93);if(LEARNING_KEYWORDS_RE['test'](_0x5b20cd))return _0x2fe5b7(0x76,-0xa);return _0x2fe5b7(0x115,0xce)+'rn';}return'context';}export function buildContent(_0x3d6b1a){const _0x23602a=extractFilePath(_0x3d6b1a[_0x42546c(0x3db,0x3c9)]);let _0x8f2dcd=_0x3d6b1a['toolResult'][_0x42546c(0x431,0x387)](0x0,0x5dc)[_0x76482a(-0x4e,-0x54)]();function _0x42546c(_0x7f4707,_0x7d6583){return _0x2ab5b6(_0x7d6583- -0xef,_0x7f4707);}TOOL_LOG_JSON_TOOLS['has'](_0x3d6b1a['toolName'])&&_0x8f2dcd['startsWith']('{')&&(_0x8f2dcd=stripDiffContent(_0x8f2dcd));_0x3d6b1a[_0x42546c(0x2fd,0x37d)]===_0x76482a(-0xed,-0x65)&&_0x8f2dcd[_0x76482a(-0x80,-0x61)]('{')&&(_0x8f2dcd=extractBashContent(_0x8f2dcd));if(_0x8f2dcd[_0x76482a(-0x122,-0x9f)]>0x1f4&&(_0x8f2dcd['startsWith']('{')||_0x8f2dcd[_0x76482a(0x53,-0x61)]('['))){if('fYFyh'!==_0x42546c(0x42f,0x435))_0x8f2dcd=summarizeJsonResult(_0x8f2dcd);else{if(_0x72cee[_0x42546c(0x454,0x3d7)](_0x76482a(-0xe8,-0x66)+'\x22')||_0x22b8dc['includes']('\x22newString'+'\x22')||_0x23e411[_0x76482a(-0x8d,-0x8)](_0x42546c(0x393,0x3ff)+_0x42546c(0x4ef,0x478))||_0x49f4d9[_0x76482a(0x28,-0x8)](_0x76482a(-0x6,-0x9a))&&_0x1e6f51[_0x42546c(0x3cf,0x3d7)](_0x76482a(0x119,0xa1))&&_0x5a0724[_0x76482a(-0x51,-0x8)](_0x42546c(0x3c2,0x34e))||_0x3ff946[_0x76482a(-0x53,-0x8)](_0x76482a(-0xef,-0x94)+_0x42546c(0x477,0x433))&&_0x18ba0c[_0x42546c(0x43f,0x3d7)]('\x22content\x22'))return'';return _0x28afe8;}}_0x8f2dcd=_0x8f2dcd[_0x76482a(-0xb,-0x58)](0x0,0x3e8)['trim']();if(!_0x8f2dcd||isNoiseResult(_0x8f2dcd)){if(_0x42546c(0x3aa,0x374)!=='olscj'){const _0x481693=_0x6d5b30[_0x48a86a],_0x479bb7=typeof _0x481693===_0x76482a(-0x32,-0x27)?_0x481693['slice'](0x0,0x50):_0x2702dd[_0x42546c(0x43b,0x3fb)](_0x481693)[_0x76482a(0x1,-0x58)](0x0,0x50);return _0x34dd54+':\x20'+_0x479bb7;}else return'';}function _0x76482a(_0x31c773,_0x44abfe){return _0x2ab5b6(_0x44abfe- -0x4ce,_0x31c773);}const _0x260e22=[];if(_0x23602a)_0x260e22[_0x42546c(0x365,0x35d)](_0x42546c(0x37c,0x432)+_0x23602a);_0x260e22['push'](_0x8f2dcd);const _0x2b99c5=_0x260e22[_0x76482a(0xb6,0xba)]('\x0a');if(_0x2b99c5[_0x76482a(-0x24,-0x9f)]<0x14)return'';return _0x2b99c5;}const TOOL_LOG_JSON_TOOLS=new Set([_0x2ab5b6(0x4ae,0x42d),_0x2ab5b6(0x4f1,0x4eb),'Read',_0x1f75c1(-0x1f2,-0x1a1)]);function stripDiffContent(_0x521dad){function _0x10be4a(_0x38c636,_0x52128a){return _0x1f75c1(_0x38c636,_0x52128a-0x4ac);}function _0x101578(_0x34b475,_0x69a92d){return _0x1f75c1(_0x34b475,_0x69a92d-0x1d2);}try{const _0x199ddd=JSON[_0x10be4a(0x3b3,0x357)](_0x521dad),_0xa46430=_0x199ddd?.[_0x10be4a(0x405,0x3b5)];if(_0x199ddd[_0x10be4a(0x2c8,0x2ca)]||_0x199ddd[_0x101578(-0x6e,0x3d)]||_0x199ddd['structured'+_0x101578(0x8d,0xa2)]||_0x199ddd['type']&&_0x199ddd['filePath']&&typeof _0x199ddd[_0x101578(0x94,0xb3)]===_0x101578(0x4,0xd)||_0xa46430&&_0xa46430[_0x10be4a(0x335,0x3c2)]&&typeof _0xa46430['content']===_0x10be4a(0x393,0x2e7)||_0x199ddd[_0x101578(0x80,0xeb)]===_0x101578(0x16a,0xb3)&&typeof _0x199ddd[_0x10be4a(0x381,0x38d)]===_0x10be4a(0x293,0x2e7))return'';return _0x521dad;}catch{if(_0x521dad['includes'](_0x10be4a(0x2cb,0x2a8)+'\x22')||_0x521dad[_0x10be4a(0x377,0x306)](_0x101578(-0x4c,-0x1e)+'\x22')||_0x521dad['includes'](_0x101578(-0x3,0x54)+_0x101578(0x7e,0xcd))||_0x521dad['includes']('\x22type\x22')&&_0x521dad[_0x10be4a(0x26b,0x306)](_0x101578(0xd7,0xd5))&&_0x521dad['includes'](_0x101578(-0xc9,-0x5d))||_0x521dad[_0x101578(-0x1d,0x2c)]('\x22mode\x22:\x22co'+_0x10be4a(0x34a,0x362))&&_0x521dad[_0x101578(-0x50,0x2c)]('\x22content\x22'))return'';return _0x521dad;}}function extractBashContent(_0x360484){function _0x5d1446(_0x216a8c,_0x222c0b){return _0x1f75c1(_0x216a8c,_0x222c0b-0x135);}function _0x316fab(_0x30555b,_0x34e101){return _0x1f75c1(_0x30555b,_0x34e101- -0x32);}try{const _0x3cd738=JSON[_0x316fab(-0x157,-0x187)](_0x360484),_0xffa5ef=(_0x3cd738[_0x5d1446(-0xc8,-0xb4)]||'')[_0x5d1446(-0x11b,-0xbd)](),_0x306499=(_0x3cd738[_0x316fab(-0x15c,-0x11b)]||'')[_0x5d1446(-0x70,-0xbd)]();if(_0x306499&&_0x306499[_0x5d1446(-0xce,-0x108)]>0xa)return _0x5d1446(-0x1d,-0xc4)+_0x306499['slice'](0x0,0x1f4)+(_0xffa5ef?'\x0a[Output]\x20'+_0xffa5ef[_0x316fab(-0x256,-0x228)](0x0,0x12c):'');if(_0xffa5ef)return _0xffa5ef[_0x316fab(-0x28f,-0x228)](0x0,0x3e8);return _0x360484[_0x5d1446(-0x6b,-0xc1)](0x0,0x1f4);}catch{if(_0x5d1446(0xd,0x3)!==_0x5d1446(0x2c,0x1))return _0x360484[_0x316fab(-0x1c4,-0x228)](0x0,0x3e8);else _0x1c0891=_0x5a50d3(_0x3ff22e);}}function summarizeJsonResult(_0x17b742){function _0x2e4356(_0x2ac13,_0x3765ee){return _0x1f75c1(_0x3765ee,_0x2ac13-0x2dd);}function _0x1c0875(_0x55296c,_0x2723c4){return _0x1f75c1(_0x2723c4,_0x55296c-0x1d1);}try{const _0x54550f=JSON['parse'](_0x17b742);if(Array[_0x2e4356(0xec,0x75)](_0x54550f)){if(_0x1c0875(-0x22,0x27)!==_0x1c0875(-0x4e,-0xb7))return _0x2e4356(0x14d,0xb2)+_0x54550f[_0x1c0875(-0x6c,-0xf1)]+_0x1c0875(0x82,-0x1e)+JSON['stringify'](_0x54550f[0x0])[_0x1c0875(-0x25,-0x69)](0x0,0xc8)+'...';else _0xb14c5d[_0x1c0875(-0x1b,0x38)+'ry'](_0x389371[_0x2e4356(0x9c,0x5)+'ry']['id'],{'invalidAt':new _0x211c0c()[_0x1c0875(0x1b,-0x54)+'g']()}),_0x15c980[_0x1c0875(0xa2,-0x12)](_0x2e4356(0x175,0x21f)+_0x1c0875(-0x36,-0x4a)+_0x2e4356(0x150,0x159),{'memoryId':_0x6d204f[_0x2e4356(0x9c,0x111)+'ry']['id']});}const _0x5e1efa=Object[_0x1c0875(0x20,-0x80)](_0x54550f)[_0x1c0875(-0x25,0x36)](0x0,0xa),_0x5007b4=_0x5e1efa[_0x2e4356(0x182,0xf9)](_0x1fde88=>{function _0x4a76b7(_0xd444eb,_0x16484f){return _0x2e4356(_0xd444eb-0x106,_0x16484f);}const _0x4a1118=_0x54550f[_0x1fde88];function _0x39b1ff(_0x5dad46,_0x162b9f){return _0x2e4356(_0x5dad46-0x386,_0x162b9f);}const _0x4b9cd3=typeof _0x4a1118===_0x39b1ff(0x49e,0x4af)?_0x4a1118[_0x39b1ff(0x46d,0x4e6)](0x0,0x50):JSON['stringify'](_0x4a1118)[_0x39b1ff(0x46d,0x4a9)](0x0,0x50);return _0x1fde88+':\x20'+_0x4b9cd3;})['join'](',\x20');return _0x5007b4[_0x2e4356(0xe7,0x8d)](0x0,0x320);}catch{return _0x17b742['slice'](0x0,0x1f4);}}function isNoiseResult(_0x257831){const _0x17aa41=_0x257831[_0x6e160c(0x78,0xc6)]();if(_0x17aa41[_0x6e160c(0x6b,-0x3f)]('{\x22stdout\x22:'))return!![];if(_0x17aa41[_0x212bfb(0x371,0x2e9)](_0x6e160c(0xf1,0x185)+'\x22')||_0x17aa41[_0x212bfb(0x371,0x350)](_0x6e160c(0x33,-0x16)+'h\x22'))return!![];function _0x212bfb(_0x5987f5,_0x4cfbed){return _0x2ab5b6(_0x5987f5- -0xfc,_0x4cfbed);}if(_0x17aa41[_0x212bfb(0x3ca,0x33d)](_0x6e160c(0x85,0x59)+'rs/'))return!![];if(_0x17aa41[_0x212bfb(0x371,0x37b)]('first_upti'+_0x6e160c(0x87,0x19))||_0x17aa41[_0x212bfb(0x371,0x2d7)]('second_upt'+_0x6e160c(0x3e,-0x42)))return!![];if(_0x17aa41[_0x212bfb(0x371,0x411)](_0x6e160c(0x150,0x149))||_0x17aa41[_0x212bfb(0x371,0x346)](_0x212bfb(0x3d6,0x414)))return!![];if(_0x17aa41[_0x6e160c(0x6b,0x90)]('🔍\x20[Pre-Com'+'mit]'))return!![];const _0x4211ce=_0x17aa41[_0x6e160c(0x74,0xd)](0x0,0xc8);if(_0x4211ce[_0x212bfb(0x3ca,0x392)](_0x6e160c(0xce,0x10c)+'healthy\x22')&&_0x4211ce['includes']('\x22uptime_se'+_0x6e160c(0xd9,0x72)))return!![];const _0x7b8b64=_0x17aa41[_0x6e160c(0x100,0x187)]('\x0a',0x1)[0x0],_0xe6c122=[/브랜치로\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}[:→]/,/^(?:\[Error\]\s*)?Shell cwd was reset to /,/^(?:\[Error\]\s*)?Another Claude session sent a message:/,/^(?:\[Error\]\s*)?<persisted-output>/];function _0x6e160c(_0x5e3119,_0x2d71bd){return _0x2ab5b6(_0x5e3119- -0x402,_0x2d71bd);}if(_0xe6c122[_0x212bfb(0x45d,0x4a0)](_0x11e341=>_0x11e341[_0x212bfb(0x470,0x4cf)](_0x7b8b64)))return!![];const _0x22a8cb=[/^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 _0x22a8cb['some'](_0x1652cc=>_0x1652cc[_0x6e160c(0x16a,0x1e0)](_0x17aa41));}const TAG_BLOCKLIST=new Set(['id',_0x1f75c1(-0x209,-0x1eb),_0x1f75c1(-0x189,-0x211),_0x1f75c1(-0x1c2,-0x153),_0x1f75c1(-0x19e,-0x15f),'src',_0x1f75c1(-0x1d9,-0x145),'the','to','in','of','a','is',_0x1f75c1(-0x1db,-0x16b),'now',_0x2ab5b6(0x512,0x530),'name','value',_0x2ab5b6(0x511,0x536),_0x1f75c1(-0x13b,-0x1f2),_0x1f75c1(-0x14e,-0x162),_0x2ab5b6(0x48c,0x46a),_0x2ab5b6(0x516,0x5a1),_0x2ab5b6(0x490,0x403),_0x1f75c1(-0x14a,-0x100),_0x1f75c1(-0x11f,-0x10a),_0x2ab5b6(0x454,0x4a5)+'tion',_0x2ab5b6(0x564,0x50c)+'rn',_0x1f75c1(-0xf2,-0xf1),'convention',_0x2ab5b6(0x4c7,0x494),'learning','project_kn'+'owledge',_0x2ab5b6(0x4f1,0x516),_0x1f75c1(-0x11f,-0x1be),_0x2ab5b6(0x469,0x436),'Read','Glob',_0x2ab5b6(0x4cb,0x581),_0x2ab5b6(0x430,0x4d8),_0x1f75c1(-0x125,-0x174),_0x2ab5b6(0x57e,0x593),'write','edit',_0x2ab5b6(0x544,0x4d6),'read',_0x1f75c1(-0xf5,-0x133),_0x1f75c1(-0x1d3,-0x199),'task','webfetch',_0x1f75c1(-0x1b9,-0x123)]),STOPWORDS=new Set([_0x1f75c1(-0x1f8,-0x1e6),_0x2ab5b6(0x53e,0x4f4),_0x2ab5b6(0x565,0x541),_0x1f75c1(-0x199,-0x1d4),'were','been','have',_0x2ab5b6(0x482,0x479),_0x2ab5b6(0x4ec,0x591),_0x2ab5b6(0x494,0x4ce),_0x1f75c1(-0x1de,-0x249),_0x1f75c1(-0x16b,-0xe2),'should',_0x1f75c1(-0x20f,-0x1bd),_0x1f75c1(-0x132,-0xeb),'shall',_0x2ab5b6(0x57a,0x4d5),_0x1f75c1(-0x27a,-0x202),'that',_0x2ab5b6(0x47d,0x504),'for',_0x2ab5b6(0x448,0x422),_0x1f75c1(-0x20a,-0x1cc),_0x2ab5b6(0x577,0x4c6),_0x2ab5b6(0x550,0x594),_0x1f75c1(-0x260,-0x1af),_0x2ab5b6(0x458,0x4bc),_0x1f75c1(-0x21f,-0x185),_0x2ab5b6(0x574,0x585),_0x2ab5b6(0x46e,0x497),'all',_0x1f75c1(-0x110,-0x18b),_0x2ab5b6(0x45f,0x3c7),_0x2ab5b6(0x529,0x502),_0x1f75c1(-0x1f1,-0x1a8),_0x1f75c1(-0x1eb,-0x21c),_0x1f75c1(-0x17b,-0x139),'other',_0x1f75c1(-0x134,-0x113),'such',_0x2ab5b6(0x530,0x4f2),'own',_0x1f75c1(-0x13a,-0x16f),'than',_0x2ab5b6(0x541,0x5bf),_0x1f75c1(-0x19f,-0x1f5),'just',_0x2ab5b6(0x4b7,0x492),_0x1f75c1(-0x19a,-0x122),_0x1f75c1(-0x198,-0x1d2),_0x1f75c1(-0x248,-0x1b9),_0x1f75c1(-0x14e,-0x19e),_0x1f75c1(-0x2b4,-0x233),_0x2ab5b6(0x421,0x498),_0x1f75c1(-0x18d,-0x171),_0x1f75c1(-0x175,-0x1ce),_0x1f75c1(-0x112,-0x17f),_0x2ab5b6(0x4e0,0x56e),_0x2ab5b6(0x46f,0x42b),_0x2ab5b6(0x55d,0x5e4),'you','we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x192c14,_0x1b148b=0x3){const _0x1a4c6c=_0x192c14[_0x292e73(0x328,0x291)+'e']();function _0x227581(_0x19a196,_0x150130){return _0x1f75c1(_0x150130,_0x19a196-0x4b);}const _0x168275=_0x1a4c6c[_0x227581(-0x193,-0x1f7)](WORD_RE)||[],_0x330e60=new Map();for(const _0x26e5cc of _0x168275){if(_0x26e5cc[_0x292e73(0x2f0,0x30e)]<0x3)continue;if(STOPWORDS[_0x292e73(0x343,0x2b1)](_0x26e5cc))continue;if(TAG_BLOCKLIST[_0x227581(-0x19f,-0x245)](_0x26e5cc))continue;_0x330e60[_0x292e73(0x3ce,0x376)](_0x26e5cc,(_0x330e60[_0x227581(-0x108,-0xd6)](_0x26e5cc)||0x0)+0x1);}function _0x292e73(_0x1f5c48,_0x9c84d0){return _0x1f75c1(_0x9c84d0,_0x1f5c48-0x52d);}return[..._0x330e60[_0x227581(-0x177,-0xcf)]()][_0x227581(-0x170,-0x1d2)]((_0x5653f4,_0x2c7cd5)=>_0x2c7cd5[0x1]-_0x5653f4[0x1])[_0x292e73(0x337,0x2b1)](0x0,_0x1b148b)['map'](([_0x2dcc8d])=>_0x2dcc8d);}function buildTags(_0x141d4a){function _0x3262b5(_0x14cd08,_0x1730ba){return _0x2ab5b6(_0x1730ba- -0x14c,_0x14cd08);}const _0x723e0a=[];function _0x3caae5(_0x4fa596,_0x48e376){return _0x2ab5b6(_0x48e376- -0x15d,_0x4fa596);}const _0x331b5d=extractFilePath(_0x141d4a[_0x3262b5(0x3e0,0x36c)]);if(_0x331b5d){const _0x1137f8=_0x331b5d[_0x3262b5(0x34a,0x3b6)]('/')[_0x3262b5(0x335,0x2da)](Boolean),_0x2f3a43=_0x1137f8[_0x3262b5(0x2c1,0x32a)](-0x3)[_0x3262b5(0x2e1,0x2da)](_0x362fcf=>_0x362fcf[_0x3caae5(0x35e,0x2d2)]>0x2&&!TAG_BLOCKLIST[_0x3262b5(0x34f,0x336)](_0x362fcf[_0x3262b5(0x2c9,0x31b)+'e']()));for(const _0x543621 of _0x2f3a43['slice'](0x0,0x2)){const _0x115134=_0x543621[_0x3262b5(0x3bd,0x364)](/\.[^.]+$/,'');_0x115134[_0x3caae5(0x296,0x2d2)]>0x2&&!TAG_BLOCKLIST[_0x3262b5(0x2db,0x336)](_0x115134[_0x3caae5(0x2de,0x30a)+'e']())&&_0x723e0a['push'](_0x115134);}const _0x374f9c=_0x331b5d[_0x3262b5(0x3ab,0x3b6)]('.')[_0x3262b5(0x42e,0x409)]();if(_0x374f9c){if(_0x3caae5(0x370,0x33e)===_0x3caae5(0x374,0x303)){const _0x548b97=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m['test'](_0x4de664[_0x3caae5(0x30a,0x3b3)]);if(_0x548b97)return'context';const _0xa27752=['chose',_0x3caae5(0x351,0x3bd),_0x3262b5(0x3b8,0x388),_0x3262b5(0x280,0x2f2),_0x3caae5(0x37f,0x2fa),_0x3262b5(0x3d0,0x3d3)];if(_0xa27752[_0x3caae5(0x49f,0x3fc)](_0x476077=>_0x45aa8f[_0x3262b5(0x3ad,0x37a)](_0x476077)))return _0x3262b5(0x384,0x416);const _0x156659=[_0x3262b5(0x4a4,0x40a),_0x3262b5(0x289,0x2f3),'pattern','rule',_0x3caae5(0x488,0x3d8),'best\x20pract'+_0x3262b5(0x290,0x2fe)];if(_0x156659[_0x3262b5(0x45b,0x40d)](_0x12122f=>_0x41def5[_0x3262b5(0x431,0x37a)](_0x12122f)))return'convention';if(_0x4d7e79[_0x3262b5(0x466,0x420)](_0x19aa96))return _0x3262b5(0x410,0x379);}else{const _0x7dd7f=_0x374f9c[_0x3caae5(0x359,0x30a)+'e']();if(!/^\d+$/['test'](_0x374f9c)&&_0x374f9c[_0x3262b5(0x314,0x2e3)]>0x2&&!TAG_BLOCKLIST['has'](_0x7dd7f)){const _0x3f9662=['md',_0x3caae5(0x3f9,0x3f6),'json',_0x3caae5(0x3c8,0x370),_0x3caae5(0x294,0x304),_0x3caae5(0x3b4,0x420),'html',_0x3262b5(0x36f,0x2f5)];!_0x3f9662[_0x3caae5(0x336,0x369)](_0x7dd7f)&&_0x723e0a['push'](_0x374f9c);}}}}if(_0x723e0a[_0x3262b5(0x32a,0x2e3)]===0x0){const _0x522994=extractKeywords(_0x141d4a['toolResult'],0x3);_0x723e0a['push'](..._0x522994);}return _0x723e0a;}export async function main(){const _0x33f08d=[];for await(const _0x231292 of process['stdin']){_0x33f08d[_0x394e14(0x4,0x44)](_0x231292);}function _0x394e14(_0xd2e5d3,_0x117f12){return _0x2ab5b6(_0x117f12- -0x408,_0xd2e5d3);}const _0x53bce2=Buffer['concat'](_0x33f08d)[_0x394e14(0x3b,0xbb)]('utf-8')[_0x2ac02f(-0x18d,-0xf9)]();function _0x2ac02f(_0x372526,_0x23db64){return _0x2ab5b6(_0x23db64- -0x573,_0x372526);}if(!_0x53bce2){if(_0x2ac02f(-0x131,-0xcf)===_0x394e14(0xab,0x9c))process[_0x2ac02f(-0xb2,-0x13)](0x0);else{_0x53b6e1[_0x394e14(0x1ca,0x135)](_0x2ac02f(0x37,-0x60)+_0x394e14(0xa0,0xd0)+_0x394e14(0xf,0x20),{'filePath':_0x4b52e4});return;}}try{const _0x360780=JSON[_0x394e14(0xd8,0x10f)](_0x53bce2),_0x597a2b=normalizeHookInput(_0x360780);await handlePostToolUse(_0x597a2b);}catch(_0x5eba9c){console['error']('[a2a]\x20Post'+_0x2ac02f(-0x87,-0xca)+_0x394e14(0x27,0x3d),_0x5eba9c instanceof Error?_0x5eba9c[_0x394e14(0x16d,0x100)]:_0x5eba9c),process['exit'](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x2ab5b6(0x433,0x414)][0x1]?.[_0x1f75c1(-0x192,-0x221)](_0x2ab5b6(0x46b,0x402)+_0x1f75c1(-0x94,-0x10e))||process[_0x1f75c1(-0x278,-0x239)][0x1]?.['endsWith']('post-tool-'+_0x2ab5b6(0x427,0x44f));isMainModule&&main();
1
+ (function(_0x6c2470,_0x1b66df){const _0x4a82ca=_0x6c2470();function _0x410111(_0x27b53c,_0x966445){return _0x376c(_0x966445-0x38a,_0x27b53c);}function _0x418b00(_0xf8dce1,_0x125ef1){return _0x376c(_0xf8dce1- -0x41,_0x125ef1);}while(!![]){try{const _0xfefe8e=-parseInt(_0x418b00(0x17f,0x1d5))/0x1+parseInt(_0x410111(0x618,0x638))/0x2+-parseInt(_0x410111(0x565,0x57e))/0x3*(parseInt(_0x418b00(0x123,0x1da))/0x4)+-parseInt(_0x418b00(0x235,0x18a))/0x5*(parseInt(_0x418b00(0x208,0x1a2))/0x6)+-parseInt(_0x418b00(0x12b,0x151))/0x7+parseInt(_0x410111(0x640,0x599))/0x8*(-parseInt(_0x418b00(0x147,0x1d1))/0x9)+parseInt(_0x410111(0x516,0x5aa))/0xa*(parseInt(_0x410111(0x540,0x4fc))/0xb);if(_0xfefe8e===_0x1b66df)break;else _0x4a82ca['push'](_0x4a82ca['shift']());}catch(_0x85233d){_0x4a82ca['push'](_0x4a82ca['shift']());}}}(_0x13bc,0x68bbb));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';function _0x380352(_0x354fd0,_0x19b9d6){return _0x376c(_0x354fd0- -0x286,_0x19b9d6);}import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':'experience','code_pattern':_0x3d884b(0x294,0x299),'decision':_0x3d884b(0x2ae,0x218),'context':'episode','project_knowledge':'fact','convention':_0x3d884b(0x1bf,0x13b),'learning':'experience','skill':_0x380352(-0xf8,-0x5d),'rule':_0x3d884b(0x1bf,0x239)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x5b6128){function _0x51355e(_0x28737b,_0x224fa6){return _0x3d884b(_0x28737b- -0x230,_0x224fa6);}const _0x3a9d58=performance[_0x352590(0x171,0x150)](),_0x29f5f2=new ConfigManager()['load'](),_0x3bea05=performance[_0x51355e(-0xad,-0x6f)]();function _0x352590(_0x3bfb12,_0x50e25d){return _0x3d884b(_0x3bfb12- -0x12,_0x50e25d);}const _0x3b652d=createLogger('PostToolUs'+'e',_0x29f5f2[_0x51355e(0x38,-0x2)]);try{if(_0x51355e(-0x82,-0xfb)!=='sGchG')_0x3ec72a=_0x5f3234['keywords'][_0x352590(0x26b,0x22d)](_0x44906a=>_0x282f13[_0x352590(0x245,0x2c8)](_0x44906a));else{_0x3b652d['info'](_0x352590(0x293,0x213)+'ed',{'toolName':_0x5b6128[_0x51355e(0xa8,0xed)]});if(!_0x29f5f2[_0x51355e(0x81,-0x9)+'e'][_0x352590(0x21b,0x1bf)]){_0x3b652d[_0x51355e(-0x74,0x20)](_0x51355e(-0x4c,-0x54)+'re\x20disable'+'d');return;}if(!_0x29f5f2['autoCaptur'+'e'][_0x51355e(-0xa1,-0x153)][_0x352590(0x245,0x2f6)](_0x5b6128[_0x51355e(0xa8,0x78)])){if(_0x51355e(-0x98,-0x49)===_0x51355e(-0x98,-0x28)){_0x3b652d[_0x352590(0x19d,0x102)]('Tool\x20not\x20i'+_0x352590(0x203,0x1eb),{'toolName':_0x5b6128[_0x352590(0x2c6,0x260)]});return;}else _0x10d135[_0x352590(0x1c3,0x277)+'tus'](_0x4b2454['id'],null,_0x352590(0x291,0x2a4));}const _0x1dee99=extractFilePath(_0x5b6128['toolInput']);if(_0x1dee99&&isSensitiveFile(_0x1dee99,_0x29f5f2[_0x51355e(0x81,0xb7)+'e'][_0x352590(0x24b,0x267)+_0x51355e(-0xc,0x4c)])){_0x3b652d[_0x352590(0x1aa,0x1b5)](_0x352590(0x2c9,0x372)+_0x51355e(-0x9f,-0x119)+_0x352590(0x1d4,0x13f),{'filePath':_0x1dee99});return;}if(_0x1dee99&&isClaudeMemoryFile(_0x1dee99)&&(_0x5b6128[_0x51355e(0xa8,0x84)]===_0x51355e(-0xd,-0x68)||_0x5b6128[_0x352590(0x2c6,0x238)]===_0x352590(0x1fd,0x193))){if(_0x51355e(0x0,-0x3f)!==_0x51355e(-0x25,0xd)){const _0x3852e7=performance[_0x352590(0x171,0x1d4)]();try{const _0x1c6eaf=getSharedDb(_0x29f5f2['db'][_0x352590(0x25c,0x2e3)]),{syncClaudeMd:_0x184cf6}=await import(_0x51355e(0xb9,0x80)+_0x51355e(-0x5e,-0x10c));await _0x184cf6(_0x1c6eaf,{'claudeMdPath':_0x1dee99,'projectPath':_0x5b6128['projectPat'+'h']});const _0x340089=performance[_0x51355e(-0xad,-0x103)](),_0xe3eb2a=Math[_0x51355e(0x9e,0x141)](_0x340089-_0x3a9d58),_0x1ad7c6=Math['round'](_0x340089-_0x3852e7),_0x11a48d=Math[_0x51355e(0x9e,0x9)](_0x3bea05-_0x3a9d58);process[_0x352590(0x227,0x1d2)][_0x51355e(0x53,0xb)](_0x352590(0x19f,0x15b)+_0x352590(0x2bf,0x2c6)+_0x51355e(-0xb0,-0x119)+_0x51355e(-0x6f,0x2b)+_0xe3eb2a+(_0x352590(0x2ba,0x31f)+'g:\x20')+_0x11a48d+(_0x352590(0x259,0x229)+_0x51355e(0x18,0x3f))+_0x1ad7c6+_0x352590(0x2cb,0x25a)),_0x3b652d[_0x51355e(-0x74,0x3d)]('Claude\x20mem'+'ory\x20file\x20s'+_0x51355e(-0x55,-0x44),{'filePath':_0x1dee99});}catch(_0x33ca33){_0x3b652d[_0x352590(0x24f,0x258)](_0x51355e(0xb8,0x147)+_0x352590(0x247,0x1fd)+_0x352590(0x16f,0x1a5),{'error':_0x33ca33 instanceof Error?_0x33ca33[_0x352590(0x292,0x1f7)]:String(_0x33ca33)});}return;}else _0x552082(_0x47cbbb['targetMemo'+'ry'])?_0x5ddce7[_0x352590(0x1aa,0x200)](_0x51355e(-0xa7,-0xb6)+_0x352590(0x214,0x1d1)+'skipped\x20(p'+_0x352590(0x19e,0x1fc)+'sset)',{'memoryId':_0x35c9eb['targetMemo'+'ry']['id'],'category':_0x26d0e7[_0x352590(0x173,0x214)+'ry'][_0x51355e(0x90,0x6c)]}):(_0x5b1048[_0x352590(0x2ad,0x268)+'ry'](_0x213436[_0x51355e(-0xab,-0x66)+'ry']['id'],{'invalidAt':new _0x14696e()[_0x51355e(-0x87,-0x108)+'g']()}),_0xde67d4[_0x352590(0x1aa,0x241)](_0x352590(0x254,0x290)+_0x352590(0x2a6,0x335)+_0x51355e(-0x86,-0x5b),{'memoryId':_0x3e3b00[_0x51355e(-0xab,-0x5b)+'ry']['id']}));}const _0x3753ca=performance[_0x352590(0x171,0xf3)](),_0x37739b={'uuid':_0x5b6128[_0x51355e(-0x95,-0x94)],'type':_0x352590(0x1e7,0x13b),'message':{'role':_0x352590(0x1e7,0x215),'content':_0x5b6128[_0x352590(0x1ed,0x26e)]},'timestamp':new Date()['toISOStrin'+'g']()},_0x314a0b=_0x5b6128[_0x352590(0x2c6,0x2a8)]===_0x352590(0x211,0x2a2),_0x1e0441=_0x1dee99?isConfigFile(_0x1dee99):![],_0x1fcc17=detectActualError(_0x5b6128['toolResult'],_0x5b6128[_0x51355e(0x4,-0xb0)]);let _0x562c4f;if(_0x5b6128[_0x352590(0x2c6,0x2d4)]===_0x352590(0x251,0x297)&&_0x5b6128['toolInput'])try{const _0x178f3e=typeof _0x5b6128[_0x352590(0x222,0x19a)]==='string'?JSON[_0x51355e(-0x11,0x37)](_0x5b6128['toolInput']):_0x5b6128[_0x352590(0x222,0x197)];_0x562c4f=_0x178f3e?.[_0x51355e(-0x45,-0x3d)]??_0x178f3e?.[_0x352590(0x1cf,0x229)]??(typeof _0x178f3e===_0x352590(0x299,0x2cb)?_0x178f3e:undefined);}catch{if(_0x352590(0x266,0x1ae)!==_0x352590(0x266,0x2ad))return _0x352590(0x253,0x292);else _0x562c4f=typeof _0x5b6128[_0x352590(0x222,0x1b7)]===_0x51355e(0x7b,0x63)?_0x5b6128[_0x51355e(0x4,0x77)]:undefined;}const _0x4e1814=scoreSignificance(_0x37739b,{'toolName':_0x5b6128[_0x51355e(0xa8,0x40)],'isNewFile':_0x314a0b,'isConfigChange':_0x1e0441,'hasError':_0x1fcc17,'bashCommand':_0x562c4f},_0x29f5f2['autoCaptur'+'e'][_0x352590(0x1f5,0x208)+'ceThreshol'+'d']),_0x4950af=performance[_0x352590(0x171,0x1f6)](),_0x4a944a=_0x29f5f2['autoCaptur'+'e']['significan'+_0x51355e(-0x3d,0x55)+'d']*0.5;_0x3b652d['info']('Tool\x20evalu'+_0x352590(0x174,0x18d),{'toolName':_0x5b6128[_0x51355e(0xa8,-0x10)],'score':_0x4e1814[_0x51355e(-0x8a,-0xa2)],'shouldCapture':_0x4e1814[_0x51355e(-0x8a,-0x11d)]>=_0x4a944a});if(_0x4e1814[_0x51355e(-0x8a,-0x114)]<_0x4a944a)return;const _0x5387aa=determineCategory(_0x5b6128,_0x1fcc17),_0x312112=buildContent(_0x5b6128);if(!_0x312112){_0x3b652d['info']('Skipping\x20m'+'emory:\x20no\x20'+_0x51355e(0x3d,-0x61)+_0x51355e(0x19,-0x6a),{'toolName':_0x5b6128[_0x352590(0x2c6,0x29e)]});return;}const _0x18c5da=filterSensitiveInfo(_0x312112);let _0xa843e2;if(_0x1fcc17)_0xa843e2=_0x51355e(0x1,-0x94);else _0x4e1814[_0x51355e(-0x8a,-0x62)]<_0x29f5f2[_0x51355e(0x81,0x1)+'e'][_0x51355e(-0x29,-0x3f)+_0x51355e(-0x3d,0x4c)+'d']?_0xa843e2=_0x51355e(-0x2e,-0x50):_0xa843e2=_0x352590(0x267,0x29a);const _0x14c2f6={'content':_0x18c5da[_0x352590(0x184,0xf1)],'category':_0x5387aa,'tier':_0xa843e2,'tags':buildTags(_0x5b6128),'projectPath':_0x5b6128[_0x51355e(-0x28,-0x1a)+'h'],'sessionId':_0x5b6128[_0x51355e(-0x95,-0x10)],'memoryType':CATEGORY_TYPE_MAP[_0x5387aa]??'fact'},_0x86629c=getSharedDb(_0x29f5f2['db'][_0x51355e(0x3e,0x8f)]),_0x437e36=performance[_0x51355e(-0xad,-0x10a)](),_0x4937f1=new DedupManager(),_0x2b6370=_0x4937f1[_0x352590(0x29a,0x258)+_0x352590(0x195,0x136)](_0x86629c[_0x51355e(0x1c,-0x12)+'es']({'projectPath':_0x5b6128[_0x352590(0x1f6,0x14e)+'h'],'limit':0x32,'excludeParents':!![]}),_0x5387aa,_0x5b6128['projectPat'+'h']),_0x1ef483=_0x4937f1['decide'](_0x18c5da[_0x51355e(-0x9a,-0x115)],_0x2b6370),_0x822d1d=performance[_0x352590(0x171,0x1b8)]();_0x3b652d[_0x352590(0x1aa,0x232)](_0x51355e(0x45,-0x6f)+_0x51355e(-0x17,0x18),{'action':_0x1ef483[_0x51355e(0xac,0x8b)],'similarity':_0x1ef483[_0x352590(0x1c8,0x24d)]});const _0x52d36d=performance['now']();let _0x11c950;try{switch(_0x1ef483[_0x51355e(0xac,0x80)]){case'NOOP':_0x3b652d[_0x352590(0x1aa,0x204)](_0x352590(0x1b9,0x11c)+_0x352590(0x1e5,0x19b)+'icate)',{'similarity':_0x1ef483[_0x352590(0x1c8,0x1a1)]});return;case _0x352590(0x22b,0x293):if(_0x1ef483[_0x51355e(-0xab,-0x100)+'ry']){const _0x321886=_0x4937f1[_0x51355e(0x1b,0x6e)+'nt'](_0x1ef483[_0x51355e(-0xab,-0x54)+'ry'][_0x51355e(-0xa9,-0x128)],_0x18c5da[_0x51355e(-0x9a,-0x135)]);if(_0x321886[_0x51355e(-0x1a,-0xce)]){if(_0x51355e(-0x18,-0x94)!=='jnEeF'){if(_0x503dc7[_0x51355e(0x8,-0x3b)]('*'))return _0xd2e8ad['endsWith'](_0xd320b0['slice'](0x1));if(_0x4880a2[_0x352590(0x1d6,0x1dc)]('*'))return _0x455961[_0x51355e(0x8,0x51)](_0x5911c5[_0x51355e(-0x96,-0x125)](0x0,-0x1));return _0x1f4f7a===_0x511f96;}else{_0x11c950=_0x86629c[_0x51355e(-0x5a,0x33)+'ry'](_0x14c2f6);if(_0xa843e2!==_0x51355e(-0x2e,0x56)){if(_0x352590(0x249,0x206)!==_0x51355e(0xb6,0x46))_0x86629c[_0x51355e(-0x5b,0x29)+_0x51355e(0x24,-0x39)](_0x11c950['id'],null,_0x51355e(0x73,0x67));else{const _0x5a12b0=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m['test'](_0x1d1dbc[_0x51355e(-0x31,-0x93)]);if(_0x5a12b0)return _0x352590(0x253,0x1e4);const _0xc718b1=[_0x352590(0x25d,0x215),_0x352590(0x1cb,0x158),'opted\x20for',_0x352590(0x28e,0x338),'picked','went\x20with'];if(_0xc718b1[_0x352590(0x1d7,0x1db)](_0x56b6d3=>_0x566779['includes'](_0x56b6d3)))return'decision';const _0x1e24d7=[_0x51355e(-0x51,0x64),'standard',_0x352590(0x2d3,0x342),_0x352590(0x1b2,0x24f),_0x352590(0x298,0x24f),_0x51355e(-0x42,0xe)+_0x51355e(-0x75,-0x44)];if(_0x1e24d7['some'](_0x479652=>_0x18759b['includes'](_0x479652)))return _0x352590(0x1cd,0x17b);if(_0x157aea[_0x51355e(-0x41,-0xd1)](_0xe937df))return _0x51355e(-0x54,-0xd9);}}_0x3b652d[_0x51355e(-0x74,-0x12a)]('Memory\x20sav'+'ed\x20instead'+_0x51355e(-0x13,0x6c)+_0x352590(0x1b8,0x20f)+'ncate)',{'targetId':_0x1ef483[_0x51355e(-0xab,-0xb2)+'ry']['id'],'newId':_0x11c950['id'],'targetLength':_0x1ef483['targetMemo'+'ry'][_0x51355e(-0xa9,-0x57)]['length'],'wouldBeLength':_0x321886[_0x51355e(0x94,0x69)+_0x51355e(0x6c,-0x9)]});break;}}_0x86629c['updateMemo'+'ry'](_0x1ef483['targetMemo'+'ry']['id'],{'content':_0x321886[_0x51355e(-0xa9,-0xb7)],'tags':[...new Set([..._0x1ef483[_0x352590(0x173,0x1cc)+'ry']['tags']||[],...buildTags(_0x5b6128)])]}),_0x3b652d[_0x352590(0x1aa,0x125)](_0x51355e(0x6d,0xc2)+_0x51355e(-0x10,-0x52)+_0x51355e(0x37,-0x2d),{'memoryId':_0x1ef483[_0x352590(0x173,0xbc)+'ry']['id']});}return;case _0x352590(0x1ba,0x262):{if(_0x1ef483['targetMemo'+'ry']){if(_0x51355e(0x11,0xb1)!==_0x51355e(0x11,-0x8c)){const _0x304ae9=_0x5de0c2['split']('/')['pop']()??'';return _0x4f5cd9[_0x51355e(-0x47,-0xc0)](_0x5303dd=>{if(_0x5303dd[_0x24024e(0x4f4,0x524)]('*'))return _0x304ae9['endsWith'](_0x5303dd['slice'](0x1));function _0x24024e(_0x2219e8,_0x423893){return _0x51355e(_0x423893-0x51c,_0x2219e8);}if(_0x5303dd['endsWith']('*'))return _0x304ae9[_0x1cf8b6(0x91,0xbb)](_0x5303dd[_0x1cf8b6(0xf,0x1d)](0x0,-0x1));function _0x1cf8b6(_0x2e7a09,_0x25a061){return _0x51355e(_0x25a061-0xb3,_0x2e7a09);}return _0x304ae9===_0x5303dd;});}else isProtectedFromCleanup(_0x1ef483[_0x352590(0x173,0x139)+'ry'])?_0x3b652d[_0x51355e(-0x74,-0x123)](_0x51355e(-0xa7,-0x7a)+_0x51355e(-0xa,-0x8d)+_0x352590(0x279,0x252)+'rotected\x20a'+_0x352590(0x2a4,0x313),{'memoryId':_0x1ef483[_0x51355e(-0xab,-0x6a)+'ry']['id'],'category':_0x1ef483['targetMemo'+'ry']['category']}):(_0x86629c[_0x352590(0x2ad,0x1fa)+'ry'](_0x1ef483[_0x352590(0x173,0x16e)+'ry']['id'],{'invalidAt':new Date()[_0x352590(0x197,0x1e8)+'g']()}),_0x3b652d[_0x352590(0x1aa,0x129)](_0x352590(0x254,0x272)+_0x352590(0x2a6,0x28e)+_0x51355e(-0x86,0x15),{'memoryId':_0x1ef483[_0x352590(0x173,0x1c3)+'ry']['id']}));}_0x11c950=_0x86629c['createMemo'+'ry'](_0x14c2f6);_0xa843e2!=='working'&&_0x86629c[_0x352590(0x1c3,0x232)+_0x352590(0x242,0x1cf)](_0x11c950['id'],null,_0x51355e(0x73,0x4d));_0x3b652d[_0x352590(0x1aa,0x1cc)](_0x352590(0x1be,0x223)+_0x51355e(-0x43,-0xce)+_0x352590(0x193,0x16c),{'category':_0x5387aa,'memoryId':_0x11c950['id']});break;}case _0x352590(0x29e,0x20e):default:_0x11c950=_0x86629c['createMemo'+'ry'](_0x14c2f6);if(_0xa843e2!=='working'){if(_0x352590(0x17e,0x1ae)!=='nvMjM'){const _0x24f755=_0x587123[_0x51355e(-0x11,-0x76)](_0x3a5d9e);if(_0x1daddb['isArray'](_0x24f755))return _0x51355e(-0x4b,-0xd7)+_0x24f755[_0x352590(0x216,0x210)]+_0x51355e(0x8d,0x6d)+_0x503595[_0x51355e(0x3c,0x78)](_0x24f755[0x0])[_0x51355e(-0x96,-0xa9)](0x0,0xc8)+'...';const _0x192423=_0x488593[_0x352590(0x20a,0x1f0)](_0x24f755)[_0x352590(0x188,0xdc)](0x0,0xa),_0x55200d=_0x192423['map'](_0x1a38f5=>{function _0x534b89(_0x4695bf,_0x343a54){return _0x352590(_0x4695bf-0x222,_0x343a54);}const _0xcc536a=_0x24f755[_0x1a38f5];function _0x1b6d31(_0x424beb,_0x12d034){return _0x352590(_0x424beb-0xa0,_0x12d034);}const _0x38b2a9=typeof _0xcc536a==='string'?_0xcc536a[_0x534b89(0x3aa,0x3d3)](0x0,0x50):_0x36eb7e[_0x1b6d31(0x2fa,0x36d)](_0xcc536a)['slice'](0x0,0x50);return _0x1a38f5+':\x20'+_0x38b2a9;})['join'](',\x20');return _0x55200d[_0x352590(0x188,0x194)](0x0,0x320);}else _0x86629c[_0x51355e(-0x5b,-0x104)+_0x51355e(0x24,0x72)](_0x11c950['id'],null,_0x51355e(0x73,0x49));}_0x3b652d[_0x51355e(-0x74,0x32)](_0x352590(0x1be,0x1eb)+'tured',{'category':_0x5387aa,'memoryId':_0x11c950['id']});break;}}catch(_0x37cdb0){const _0x4be848=_0x37cdb0 instanceof Error?_0x37cdb0:new Error(String(_0x37cdb0));_0x3b652d['error'](_0x352590(0x200,0x218)+_0x352590(0x240,0x20c)+'ed',_0x4be848,{'category':_0x5387aa});}const _0x15379e=performance[_0x51355e(-0xad,-0x9a)]();if(_0x11c950&&_0x29f5f2['embedding']?.[_0x51355e(-0x3,-0x4d)]&&_0x29f5f2[_0x51355e(0x82,0x5c)][_0x352590(0x223,0x18c)]===_0x352590(0x21a,0x249)){if(_0x51355e(-0x4e,0x38)!=='MooqD')try{const {createEmbeddingProvider:_0x50e0a0}=await import('../embeddi'+_0x51355e(0x6a,0x96)+'s'),_0x28dba9=_0x50e0a0(_0x29f5f2[_0x352590(0x2a0,0x276)],_0x29f5f2[_0x352590(0x24c,0x25e)]),_0x3f4581=await Promise[_0x352590(0x26a,0x1bb)](_0x28dba9[_0x51355e(-0x76,-0x24)](_0x11c950[_0x352590(0x175,0x144)]));Array[_0x51355e(-0x62,-0x7f)](_0x3f4581)&&_0x86629c[_0x352590(0x2b5,0x2f8)+_0x352590(0x1a0,0x15c)](_0x11c950['id'],_0x3f4581);}catch(_0x3ddb62){_0x3b652d[_0x352590(0x24f,0x28e)](_0x51355e(0x83,0x47)+_0x352590(0x2c7,0x33d),{'error':_0x3ddb62 instanceof Error?_0x3ddb62[_0x51355e(0x74,0x75)]:String(_0x3ddb62)});}else _0xa45e07['push'](_0x8202ff);}try{const _0x368626=_0x86629c[_0x352590(0x241,0x19b)+_0x352590(0x1fc,0x18e)](_0x5b6128[_0x51355e(-0x95,-0xf1)]);if(_0x368626&&_0x368626[_0x352590(0x281,0x24e)+_0x51355e(-0xa4,-0xed)]){const _0x369841=(_0x5b6128[_0x352590(0x2c6,0x324)]+'\x20'+JSON['stringify'](_0x5b6128[_0x352590(0x222,0x1b7)])+'\x20'+String(_0x5b6128[_0x352590(0x1ed,0x1a1)]))[_0x51355e(0x56,0xe3)+'e'](),{parseInjectedKeywords:_0xf03e4d}=await import('./shared.j'+'s'),_0x34a4d8=_0xf03e4d(_0x368626[_0x51355e(0x63,0x93)+_0x352590(0x17a,0xc2)]);let _0x225315=[],_0x13b393=[];if(_0x34a4d8[_0x352590(0x22a,0x285)]){for(const [_0xc1f55b,_0x2766a9]of Object[_0x352590(0x215,0x199)](_0x34a4d8['keywordMap'])){const _0x269b56=_0x2766a9['filter'](_0x4c98e4=>_0x369841[_0x352590(0x245,0x24d)](_0x4c98e4));_0x269b56[_0x51355e(-0x8,0x2f)]>0x0&&(_0x51355e(0x6f,0x37)!=='cYXzK'?_0x45a117=_0x352590(0x21f,0x179):(_0x225315[_0x352590(0x1a5,0x201)](..._0x269b56),_0x13b393[_0x51355e(-0x79,-0xad)](_0xc1f55b)));}_0x225315=[...new Set(_0x225315)],_0x13b393=[...new Set(_0x13b393)];}else _0x225315=_0x34a4d8[_0x51355e(0x8a,0x9a)][_0x51355e(0x4d,0xc4)](_0x2197ac=>_0x369841[_0x51355e(0x27,0xd3)](_0x2197ac));_0x225315[_0x51355e(-0x8,-0x7f)]>0x0&&_0x86629c[_0x51355e(-0x6e,-0x8)+'ctionHit'](_0x368626['id'],_0x225315,_0x5b6128[_0x352590(0x2c6,0x226)],_0x13b393);}}catch{}if(_0x11c950&&(_0x1ef483['action']===_0x352590(0x29e,0x22c)||_0x1ef483[_0x51355e(0xac,0x160)]===_0x352590(0x1ba,0x1be)))try{_0x86629c[_0x51355e(-0x16,-0x9)+_0x51355e(-0x15,-0x2d)]({'memoryId':_0x11c950['id'],'sessionId':_0x5b6128[_0x51355e(-0x95,-0xef)],'significanceScore':_0x4e1814['totalScore'],'dedupAction':_0x1ef483[_0x352590(0x2ca,0x2b2)],'tier':_0xa843e2});}catch{}if(_0x11c950&&_0x11c950[_0x51355e(0x82,0xaf)]&&_0x29f5f2[_0x352590(0x2c0,0x35a)+_0x51355e(0x65,-0x1c)]?.[_0x51355e(-0x3,-0x90)])try{const {SkillEvaluator:_0x57f479}=await import('../skill/e'+'valuator.j'+'s'),_0x13b953=new _0x57f479(_0x86629c,_0x29f5f2),_0x35c8f0=_0x13b953['absorbInto'+'Skill'](_0x11c950);_0x35c8f0[_0x352590(0x24d,0x2a4)]&&_0x3b652d['info'](_0x51355e(-0xb1,-0x15b)+_0x352590(0x250,0x265)+_0x352590(0x23c,0x202),{'memoryId':_0x11c950['id'],'skillId':_0x35c8f0[_0x352590(0x2a7,0x272)]});}catch{}const _0x32b8b5=performance['now']();let _0x1d6cac=0x0;const _0xef8182=_0x29f5f2[_0x51355e(0x6e,0xf2)+_0x51355e(0x43,0xe6)]?.[_0x51355e(-0x3,-0xa3)]!==![]&&_0x29f5f2[_0x352590(0x28c,0x214)+'shot']?.[_0x352590(0x20c,0x2af)+_0x352590(0x290,0x260)]!==!![];if(_0x29f5f2[_0x51355e(-0x6a,-0x111)]?.[_0x51355e(-0x3,-0x85)]&&_0x29f5f2[_0x51355e(0x15,-0x6f)]?.['apiKey']&&!_0xef8182){try{const _0x5ab2d7=_0x86629c[_0x352590(0x285,0x319)+_0x51355e(-0xa3,-0x4)]();if(_0x5ab2d7>=AUTO_SYNC_THRESHOLD){const _0x1bc730=createHookClient(_0x29f5f2);if(_0x1bc730){const _0x3e8f75=new SyncQueue(_0x86629c,_0x1bc730),_0x3e291e=await _0x3e8f75[_0x51355e(-0x33,-0x84)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x3e291e[_0x352590(0x29b,0x219)]>0x0&&(_0x3b652d[_0x352590(0x1aa,0x108)](_0x51355e(-0xa2,-0x65)+'pushed',{'pushed':_0x3e291e[_0x51355e(0x7d,0x7f)],'pending':_0x5ab2d7}),console[_0x51355e(-0x73,-0x93)](_0x51355e(-0x2a,0x2a)+_0x51355e(0x17,0xc)+_0x3e291e[_0x51355e(0x7d,0x6c)]+_0x51355e(-0x63,-0x9b)));}}}catch(_0x234568){_0x3b652d[_0x352590(0x24f,0x1d6)](_0x51355e(-0xa2,-0x23)+'failed',{'error':_0x234568 instanceof Error?_0x234568[_0x352590(0x292,0x2e5)]:String(_0x234568)});}_0x1d6cac=Math['round'](performance[_0x51355e(-0xad,-0x77)]()-_0x32b8b5);}else _0x29f5f2[_0x352590(0x1b4,0x132)]?.[_0x51355e(-0x3,-0x2e)]&&_0x29f5f2['server']?.[_0x352590(0x1e6,0x291)]&&_0xef8182&&_0x3b652d[_0x51355e(-0x81,-0xf0)](_0x51355e(-0x1c,0x61)+_0x51355e(-0x24,-0xcb)+_0x352590(0x1a4,0x145)+_0x352590(0x1de,0x230)+_0x352590(0x1b7,0x230)+_0x51355e(-0x6b,-0x7a)+_0x352590(0x170,0x13d));const _0x5e29b7=Math[_0x51355e(0x9e,0x154)](performance[_0x352590(0x171,0xe4)]()-_0x3a9d58),_0x3dd7cb=Math['round'](_0x3bea05-_0x3a9d58),_0x5606f9=Math[_0x51355e(0x9e,0x62)](_0x4950af-_0x3753ca),_0xd76597=Math[_0x352590(0x2bc,0x23e)](_0x822d1d-_0x437e36),_0xea2cd=Math[_0x51355e(0x9e,0x129)](_0x15379e-_0x52d36d),_0x4addfc=_0x1d6cac>0x0?_0x352590(0x232,0x180)+_0x1d6cac+'ms':'';process[_0x51355e(0x9,-0x89)][_0x51355e(0x53,-0x44)](_0x352590(0x19f,0x14c)+_0x51355e(0xa1,0xed)+_0x352590(0x16e,0x183)+_0x51355e(-0x6f,0x16)+_0x5e29b7+(_0x51355e(0x9c,0x1f)+_0x51355e(-0x2,-0xab))+_0x3dd7cb+(_0x51355e(0x99,0x12c)+_0x51355e(-0x46,0x59))+_0x5606f9+(_0x51355e(0xb3,0x135)+'\x20')+_0xd76597+_0x51355e(-0x70,-0x7d)+_0xea2cd+'ms'+_0x4addfc+')\x0a'),_0x3b652d[_0x352590(0x1aa,0x10f)](_0x51355e(-0xf,-0xa9)+_0x352590(0x23e,0x186),{'durationMs':_0x5e29b7});}}finally{_0x3b652d['flush']();}}function _0x3d884b(_0xd6c2cc,_0xe424b0){return _0x376c(_0xd6c2cc-0x31,_0xe424b0);}function extractFilePath(_0x568265){let _0x57a2a8=_0x568265;function _0x5b07af(_0x29ed19,_0x113232){return _0x380352(_0x113232-0x275,_0x29ed19);}if(typeof _0x57a2a8===_0x5b07af(0x282,0x269)){if(_0x20790e(-0x1d4,-0x139)!==_0x5b07af(0x232,0x186)){if(_0x3bd874[_0x5b07af(0x250,0x1e6)]<0xc8)return![];const _0x16094e=_0x1b4bb8?.[_0x20790e(-0xc4,-0x10c)];if(_0x16094e==='Read')return![];const _0x214c7d=_0x579436['toLowerCas'+'e'](),_0x5166c2=[_0x20790e(-0x18b,-0x1ee),_0x20790e(-0x19e,-0x1ec),'ERROR:',_0x20790e(-0xcd,-0x12c),_0x20790e(-0x1c9,-0x160),_0x5b07af(0x218,0x227),_0x5b07af(0x1ef,0x247),_0x20790e(-0xc2,-0x14d),_0x5b07af(0x24c,0x22e),'Traceback'],_0x1536f3=_0x5166c2[_0x5b07af(0x258,0x1a7)](_0x3dde55=>_0x1bcfb8['includes'](_0x3dde55)||_0x214c7d['includes'](_0x3dde55[_0x20790e(-0x116,-0x151)+'e']()));if(!_0x1536f3)return![];const _0x5bad31=_0x5d7bc2?.[_0x20790e(-0x138,-0x17d)]||_0xdd8469?.['path']||'';if(_0x5bad31['toLowerCas'+'e']()[_0x5b07af(0x29c,0x215)](_0x20790e(-0x1df,-0x15e))&&!_0x5166c2[_0x5b07af(0xf9,0x158)](0x2)[_0x5b07af(0x10c,0x1a7)](_0x10e0c8=>_0x214c7d[_0x5b07af(0x2ad,0x215)](_0x10e0c8[_0x20790e(-0x116,-0x163)+'e']())))return![];return!![];}else try{_0x57a2a8=JSON[_0x20790e(-0x17d,-0xd7)](_0x57a2a8);}catch{return null;}}if(typeof _0x57a2a8===_0x5b07af(0x2ae,0x264)&&_0x57a2a8!==null){if(typeof _0x57a2a8[_0x20790e(-0x138,-0x187)]===_0x5b07af(0x2fc,0x269))return _0x57a2a8[_0x20790e(-0x138,-0xbd)];if(typeof _0x57a2a8[_0x20790e(-0x12e,-0xb6)]==='string')return _0x57a2a8[_0x20790e(-0x12e,-0x85)];}function _0x20790e(_0x508daf,_0x114fbd){return _0x380352(_0x508daf- -0xe5,_0x114fbd);}return null;}function _0x376c(_0x57fb50,_0x5e8bd9){_0x57fb50=_0x57fb50-0x14c;const _0x13bcc8=_0x13bc();let _0x376c24=_0x13bcc8[_0x57fb50];if(_0x376c['nWNisE']===undefined){var _0x3cfdc0=function(_0x1e5146){const _0x109cf9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dcdc7='',_0x12fd70='';for(let _0x32870a=0x0,_0x46cc03,_0x22b604,_0x4b5317=0x0;_0x22b604=_0x1e5146['charAt'](_0x4b5317++);~_0x22b604&&(_0x46cc03=_0x32870a%0x4?_0x46cc03*0x40+_0x22b604:_0x22b604,_0x32870a++%0x4)?_0x5dcdc7+=String['fromCharCode'](0xff&_0x46cc03>>(-0x2*_0x32870a&0x6)):0x0){_0x22b604=_0x109cf9['indexOf'](_0x22b604);}for(let _0x2d1ab7=0x0,_0x3d9907=_0x5dcdc7['length'];_0x2d1ab7<_0x3d9907;_0x2d1ab7++){_0x12fd70+='%'+('00'+_0x5dcdc7['charCodeAt'](_0x2d1ab7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12fd70);};_0x376c['fzNTUK']=_0x3cfdc0,_0x376c['TMpVQU']={},_0x376c['nWNisE']=!![];}const _0x1c3252=_0x13bcc8[0x0],_0x2c7a47=_0x57fb50+_0x1c3252,_0x390e78=_0x376c['TMpVQU'][_0x2c7a47];return!_0x390e78?(_0x376c24=_0x376c['fzNTUK'](_0x376c24),_0x376c['TMpVQU'][_0x2c7a47]=_0x376c24):_0x376c24=_0x390e78,_0x376c24;}function isSensitiveFile(_0xdeb81c,_0x347636){function _0x8eff1c(_0xff1f44,_0x22c34b){return _0x3d884b(_0x22c34b-0x139,_0xff1f44);}function _0x78af53(_0x105e21,_0x3e0d40){return _0x3d884b(_0x3e0d40- -0x13c,_0x105e21);}const _0x26c850=_0xdeb81c[_0x8eff1c(0x2f2,0x391)]('/')[_0x78af53(0x1cd,0x182)]()??'';return _0x347636[_0x8eff1c(0x322,0x322)](_0x53f4a=>{function _0x3a20bf(_0x227fde,_0x469323){return _0x78af53(_0x227fde,_0x469323-0x38);}function _0x2c4e9e(_0x544671,_0x46fadd){return _0x78af53(_0x46fadd,_0x544671- -0xb7);}if(_0x3a20bf(0x15d,0x149)===_0x2c4e9e(0x5a,-0x5e)){if(_0x53f4a[_0x2c4e9e(0x45,0xdc)]('*'))return _0x26c850[_0x3a20bf(0x136,0xe4)](_0x53f4a[_0x3a20bf(0x0,0x96)](0x1));if(_0x53f4a[_0x2c4e9e(-0xb,-0xab)]('*'))return _0x26c850[_0x2c4e9e(0x45,-0xd)](_0x53f4a[_0x3a20bf(0x27,0x96)](0x0,-0x1));return _0x26c850===_0x53f4a;}else _0x4ba936[_0x2c4e9e(0xa,-0x4f)]();});}function isConfigFile(_0x29fd24){function _0x5a6525(_0x56d4a0,_0x459d06){return _0x3d884b(_0x56d4a0- -0x291,_0x459d06);}function _0x2105fc(_0x103dfd,_0x176b63){return _0x3d884b(_0x176b63-0x2c5,_0x103dfd);}const _0x2cc237=[_0x2105fc(0x5a3,0x554),'.yaml','.yml',_0x2105fc(0x41c,0x4ca),_0x2105fc(0x3e1,0x450),'.ini',_0x5a6525(-0xce,-0x74)];return _0x2cc237['some'](_0x11e923=>_0x29fd24['endsWith'](_0x11e923));}function detectActualError(_0x3cc2d8,_0x13930d){function _0x528417(_0x92d58a,_0x43ca0d){return _0x380352(_0x43ca0d- -0x124,_0x92d58a);}if(_0x3cc2d8[_0x528417(-0x129,-0x1b3)]<0xc8)return![];const _0x388af=_0x13930d?.[_0x528417(-0xba,-0x103)];if(_0x388af===_0x528417(-0x18d,-0x228))return![];const _0x4afbf4=_0x3cc2d8[_0x528417(-0x1e2,-0x155)+'e'](),_0x43f46e=[_0x528417(-0x1bd,-0x1ca),_0x528417(-0x23e,-0x1dd),'ERROR:',_0x172430(0x42b,0x3ca),_0x528417(-0x1bb,-0x208),_0x172430(0x3c5,0x336),_0x528417(-0xb5,-0x152),_0x528417(-0xd0,-0x101),_0x172430(0x3cc,0x40d),_0x528417(-0x148,-0x11a)],_0x3805d2=_0x43f46e[_0x528417(-0x26e,-0x1f2)](_0x21acda=>_0x3cc2d8[_0x172430(0x3b3,0x3f2)](_0x21acda)||_0x4afbf4['includes'](_0x21acda[_0x172430(0x3e2,0x392)+'e']()));if(!_0x3805d2)return![];const _0x11237b=_0x13930d?.['file_path']||_0x13930d?.[_0x172430(0x3ca,0x354)]||'';if(_0x11237b[_0x172430(0x3e2,0x407)+'e']()['includes'](_0x528417(-0x28e,-0x21e))&&!_0x43f46e['slice'](0x2)['some'](_0x49340e=>_0x4afbf4[_0x172430(0x3b3,0x423)](_0x49340e[_0x528417(-0x191,-0x155)+'e']())))return![];function _0x172430(_0x568aa8,_0x1aa1c4){return _0x380352(_0x568aa8-0x413,_0x1aa1c4);}return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x4de3ae,_0x141612){if(_0x141612)return'error_solu'+_0x391b14(0x338,0x34d);const _0xa8c39e=_0x4de3ae[_0x333471(-0x1c1,-0x249)]['toLowerCas'+'e'](),_0x4a5ee1=_0x4de3ae[_0x333471(-0x1c1,-0x1b1)];if(_0x4de3ae['toolName']===_0x391b14(0x38e,0x3ec)){if(_0x391b14(0x34d,0x302)!==_0x333471(-0x238,-0x1f7)){const _0x2dfbc5=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x333471(-0x1d1,-0x1a8)](_0x4de3ae['toolResult']);if(_0x2dfbc5)return _0x391b14(0x390,0x363);const _0x954161=[_0x333471(-0x151,-0x1c6),_0x391b14(0x308,0x257),'opted\x20for',_0x333471(-0x120,-0x107),'picked','went\x20with'];if(_0x954161[_0x333471(-0x1d7,-0x26a)](_0x5bf20a=>_0xa8c39e[_0x333471(-0x169,-0x14c)](_0x5bf20a)))return _0x391b14(0x3b9,0x3b5);const _0x332fcf=[_0x391b14(0x30a,0x334),_0x391b14(0x3cc,0x459),_0x333471(-0xdb,-0x138),_0x333471(-0x1fc,-0x2a2),'guideline',_0x333471(-0x1d2,-0x271)+_0x391b14(0x2e6,0x2e0)];if(_0x332fcf[_0x333471(-0x1d7,-0x15b)](_0x31646d=>_0xa8c39e[_0x391b14(0x382,0x43a)](_0x31646d)))return _0x333471(-0x1e1,-0x1ba);if(LEARNING_KEYWORDS_RE[_0x391b14(0x31a,0x3b8)](_0x4a5ee1))return _0x391b14(0x307,0x37a);}else{const _0x40756a=_0x4b3125[_0x10c99e],_0x4b44df=typeof _0x40756a===_0x391b14(0x3d6,0x3a8)?_0x40756a['slice'](0x0,0x50):_0x2d4561[_0x333471(-0x154,-0x138)](_0x40756a)[_0x333471(-0x226,-0x24e)](0x0,0x50);return _0x1b9dba+':\x20'+_0x4b44df;}}function _0x333471(_0x3f9784,_0xaff4e1){return _0x3d884b(_0x3f9784- -0x3c0,_0xaff4e1);}if(_0x4de3ae[_0x333471(-0xe8,-0x66)]===_0x391b14(0x2de,0x2ec)||_0x4de3ae[_0x333471(-0xe8,-0x61)]===_0x391b14(0x2c4,0x336)||_0x4de3ae[_0x391b14(0x403,0x46b)]===_0x391b14(0x312,0x3a8))return _0x333471(-0x15b,-0x132);function _0x391b14(_0x38a313,_0x12ebde){return _0x3d884b(_0x38a313-0x12b,_0x12ebde);}if(_0x4de3ae[_0x333471(-0xe8,-0xf7)]===_0x333471(-0x19d,-0x22a)||_0x4de3ae[_0x333471(-0xe8,-0xec)]==='Edit'){const _0x56b190=extractFilePath(_0x4de3ae[_0x333471(-0x18c,-0xfb)]),_0x4c1c40=_0x4de3ae[_0x333471(-0x1c1,-0x205)];if(_0x56b190&&(_0x56b190[_0x333471(-0x169,-0x1f1)](_0x333471(-0x166,-0x20c))||_0x56b190[_0x333471(-0x169,-0x174)](_0x333471(-0x140,-0x17f))))return _0x333471(-0x15b,-0xfb);if(_0x4c1c40[_0x391b14(0x353,0x3fb)]<0x32||_0x4c1c40[_0x391b14(0x3b1,0x3c0)+'e']()[_0x391b14(0x382,0x3b5)](_0x333471(-0xd9,-0x17f)+_0x333471(-0x1cb,-0x256)+_0x333471(-0x1c4,-0x16e))||_0x4c1c40[_0x391b14(0x3b1,0x468)+'e']()[_0x333471(-0x169,-0x1a8)](_0x391b14(0x3f3,0x40d)+'ed')||_0x4c1c40['toLowerCas'+'e']()[_0x333471(-0x169,-0x19e)](_0x391b14(0x371,0x3f9)+_0x333471(-0xed,-0x93)))return _0x333471(-0x15b,-0x157);if(LEARNING_KEYWORDS_RE['test'](_0x4c1c40))return'learning';return'code_patte'+'rn';}return _0x391b14(0x390,0x3b4);}export function buildContent(_0x51bd39){function _0x3075d8(_0x57f94f,_0x4ffd27){return _0x380352(_0x57f94f- -0x12f,_0x4ffd27);}const _0x5a9b8a=extractFilePath(_0x51bd39['toolInput']);let _0x2535eb=_0x51bd39['toolResult'][_0x3075d8(-0x24c,-0x2e5)](0x0,0x5dc)[_0x2f2234(0x615,0x56f)]();function _0x2f2234(_0x3cb100,_0x2aaf17){return _0x380352(_0x3cb100-0x5e8,_0x2aaf17);}if(TOOL_LOG_JSON_TOOLS['has'](_0x51bd39[_0x2f2234(0x609,0x6bf)])&&_0x2535eb[_0x2f2234(0x569,0x52c)]('{')){if(_0x2f2234(0x58d,0x56a)!==_0x2f2234(0x58d,0x63a)){const _0x5c3bcc=_0x138504['toLowerCas'+'e']();if(!/^\d+$/['test'](_0x48a6a0)&&_0x168473['length']>0x2&&!_0x47a352['has'](_0x5c3bcc)){const _0x1ae254=['md','txt','json','yml',_0x2f2234(0x61d,0x616),'xml','html',_0x3075d8(-0x174,-0x117)];!_0x1ae254[_0x2f2234(0x588,0x579)](_0x5c3bcc)&&_0xd32228[_0x3075d8(-0x22f,-0x2d8)](_0x3feb20);}}else _0x2535eb=stripDiffContent(_0x2535eb);}_0x51bd39[_0x3075d8(-0x10e,-0x1b1)]===_0x2f2234(0x594,0x556)&&_0x2535eb['startsWith']('{')&&(_0x2535eb=extractBashContent(_0x2535eb));_0x2535eb[_0x2f2234(0x559,0x562)]>0x1f4&&(_0x2535eb[_0x3075d8(-0x1ae,-0x24f)]('{')||_0x2535eb['startsWith']('['))&&(_0x2535eb=summarizeJsonResult(_0x2535eb));_0x2535eb=_0x2535eb[_0x2f2234(0x4cb,0x46a)](0x0,0x3e8)[_0x3075d8(-0x102,-0x163)]();if(!_0x2535eb||isNoiseResult(_0x2535eb))return'';const _0x52fb45=[];if(_0x5a9b8a)_0x52fb45['push']('File:\x20'+_0x5a9b8a);_0x52fb45['push'](_0x2535eb);const _0x2e1180=_0x52fb45[_0x2f2234(0x611,0x613)]('\x0a');if(_0x2e1180[_0x3075d8(-0x1be,-0x113)]<0x14)return'';return _0x2e1180;}const TOOL_LOG_JSON_TOOLS=new Set([_0x3d884b(0x20f,0x178),'Write',_0x380352(-0x104,-0xa8),_0x3d884b(0x199,0x1d3)]);function stripDiffContent(_0xd6ed74){function _0x1264fa(_0x231d13,_0x3f3039){return _0x380352(_0x231d13-0x18a,_0x3f3039);}function _0x105d2d(_0x4131d3,_0x1ce7be){return _0x380352(_0x4131d3-0x17e,_0x1ce7be);}try{const _0x2de2a3=JSON[_0x1264fa(0xf2,0x10c)](_0xd6ed74),_0x526e15=_0x2de2a3?.[_0x105d2d(0x14e,0x204)];if(_0x2de2a3[_0x105d2d(0x6b,0xdc)]||_0x2de2a3[_0x1264fa(0xb6,0x69)]||_0x2de2a3[_0x105d2d(0x19e,0xff)+'Patch']||_0x2de2a3['type']&&_0x2de2a3[_0x1264fa(0x19e,0xea)]&&typeof _0x2de2a3[_0x105d2d(0x4e,0x46)]===_0x1264fa(0x17e,0x12b)||_0x526e15&&_0x526e15[_0x105d2d(0x192,0xfd)]&&typeof _0x526e15[_0x1264fa(0x5a,0x36)]==='string'||_0x2de2a3[_0x105d2d(0x106,0xd6)]===_0x1264fa(0x5a,0xa)&&typeof _0x2de2a3['content']==='string')return'';return _0xd6ed74;}catch{if(_0xd6ed74[_0x105d2d(0x11e,0x11a)](_0x1264fa(0x71,0xc0)+'\x22')||_0xd6ed74['includes'](_0x1264fa(0x75,-0x24)+'\x22')||_0xd6ed74[_0x1264fa(0x12a,0x165)](_0x1264fa(0xb1,0x12)+_0x1264fa(0x109,0x15c))||_0xd6ed74[_0x1264fa(0x12a,0x18f)]('\x22type\x22')&&_0xd6ed74['includes'](_0x105d2d(0x7b,-0x23))&&_0xd6ed74['includes'](_0x105d2d(0x98,-0x8))||_0xd6ed74[_0x105d2d(0x11e,0xfa)](_0x105d2d(0x159,0x1b2)+_0x105d2d(0xc1,0x120))&&_0xd6ed74[_0x105d2d(0x11e,0x1a1)]('\x22content\x22'))return'';return _0xd6ed74;}}function _0x13bc(){const _0x4129f5=['yxrLzcaOBwvYzW','sg9VAYbJB21WBa','De5UwLC','v3jPDgu','DgvYBNm','nZjStND2zey','ywXPzgf0Aw9Uia','zw50CMLLCW','BgvUz3rO','zMv3','yMvMB3jL','AhrTBa','Bg9JywW','zw5HyMXLza','zZOG','C3vJAa','zwTpqLu','zxbPC29KAwm','zhvYAw5N','D2vIC2vHCMnO','Dg9VBeLUChv0','ChjVDMLKzxi','zfbHDgnOiG','y29Uy2f0','C3rHCNrZv2L0Aa','C3rKzxjY','y291Bgq','AgvHBhrOEsi','Axnnyxa','vvbeqvrf','DgHHBG','Bw9Kzq','ofLluMjVEq','t3ftuNO','zxHPDa','z2XVyG','lcbZEw5JoIa','C2vYDMvY','y3jLyxrLzcbZDq','lxn5BMnLzca','u3LUyZOG','ignVBNrLBNq','ChjVAMvJDf9RBG','BwvYz2vdB250zq','BgLZDe1LBw9YAq','D0X0Afe','ihnRAwXS','DxDYC2W','zxrLza','mtbABvPrDvu','yxrPB24GzMfPBa','z2v0tgf0zxn0sq','DhvZ','DMfSDwu','Bwf0y2G','Aw5JBhvKzxm','C3bSAxq','B3j5ihn5BMmGzG','l3rLC3qV','wNzvCwm','we52D2e','zxHJBhvKzvbHDa','BgXT','ywjZB3jIzwq','BNvSBa','D2fYBG','B3jIzwqGAw50BW','qMfZAa','zMLSzv9WyxrO','y29UDgv4Da','t2XKig1LBw9YEq','zwqP','Bg9Nz2LUzW','zMfPBgvKoG','BwL0xq','BxmSignSyxvKzq','C3rYAw5NAwz5','BwvHBMLUz2z1Ba','Cgf0Aa','y2HVC2u','DhjHy2vIywnR','B25SEq','y3nZ','C2HVDa','yMvLBG','rgvKDxaGzgvJAq','DgHLAxi','l3zHCI9MB2XKzq','q09xDgm','C2vTyw50Awm','mtiXnZKZnfrPvffMqW','cLTpDxrWDxrDia','CMvZB2X2zq','zMLSDgvY','yxjNDG','wLn1D0S','l3rTCc8','CM9YoG','zMLYC3rFDxb0Aq','D3jPDgu','zwrPDa','zM9Y','Dg9mB3DLCKnHCW','zMLSzq','B3vY','rMfPBgvKoG','BgLZDa','C2TPChbLzcaOCa','Ew91','vgfZAW','zgvJAxnPB24','lMPZB24','zw1VCNK6ig5Via','BMfTzq','iM1VzguIoIjJBW','Aw5Qzwn0zwrlzq','zMfJDa','CNnPB24','CNmV','z2v0ugvUzgLUzW','C2v0','yw5K','BMCVAw5KzxGUAG','AgfK','z3rO','twvTB3j5ihvWza','zNjVEMvUu25HCa','y1LyEKS','C2vSzwn0zwq','C3rHBMrHCMq','qxv0B1n5BMm','CgvUzgLUzW','BwvZC2fNzq','sg9VAYbZDgfYDa','B2jQzwn0','mtb6y0Hjs1a','z3jLCa','AK1fzKm','z3vPzgvSAw5L','C3rYAw5N','zMLUzenHBMrPza','ChvZAgvK','zxbPC29Kzq','Bw9Yzq','qure','yxv0B0nHChr1CG','zw1IzwrKAw5N','rw1IzwrKAw5Nia','zxjYB3jFC29SDq','DgHPCW','C3nLDcK','D2vYzq','ihnVzNqTAw52yq','C2TPBgXjza','A2v5D29Yzhm','C2TPBgW','DMvYEq','igL0zw1Zxsa','Cg9W','DxbKyxrLtwvTBW','y2f0zwDVCNK','vhjHy2vIywnR','yMfZAa','iNn0yxr1CYi6iG','D291BgrczuXLBG','D2fZ','DgHYB3vNAa','C2f2zuvTyMvKza','zMLSzsbJCMvHDa','BxmSihnPz25PzG','DgHLEq','zMLSzvbHDgG','BxmGFcbJB25MAq','w2eYyv0Gug9ZDa','CM91BMq','zxHJzxb0Aw9U','Ew91CG','vg9VBfvZzsbJBW','C2TPBgXdB252zq','y2nLC3nMDwXSEq','v2vIrMv0y2G','DgHHDa','BM9Uzq','C3rYDwn0DxjLza','Dg9VBe5HBwu','zMfPBgvK','rKfjteve','u2vUC2L0AxzLia','ywn0Aw9U','BxmPcG','Dg9tDhjPBMC','mta5nZK2nfHrA01iwq','AM9PBG','Ahr0CdOYmda','CMvHza','BxmSigrLzhvWoG','DhjPBq','Cgf0DgvYBG','B2PqBu8','zMLSzsb3CML0Da','q2XHDwrLig1LBq','lI4Vy2XHDwrLlW','Dg9V','y29UzhmI','EwfTBa','Bw9ZDa','zxzLCNK','twvTB3j5igfICW','BxbSzxrLzcaODa','ywLSzwq','B25fBMq','BM93','BwfW','DgfYz2v0twvTBW','yxrLza','y29UDgvUDa','z2DMqMK','revmrvrfigLUDG','B3DU','lMvUDG','ExDVCMrZ','u3LUy0nVDw50','qxv0BY1ZEw5Jia','DhjPz2DLCNm','BNznAK0','zMLSzsbLEgnSDq','z1j5quu','EYjZDgrVDxqIoG','ywrK','mZe0mdHcyuvYCLO','zMLSDgvYzwq','qxngs3u','B3rYuNO','r3jLCa','C2XPy2u','C2vZC2LVBKLK','Ahvsvei','mtuYmZe4nK1ZBMXoBa','iM9Szfn0CMLUzW','Durguwm','EYjMAwXLugf0Aa','z2v0','iM5LD1n0CMLUzW','mJi0nJi4ntHPD3fRv1y','B2XKu3rYAw5N','zxiGzgvSzxrLkq','Dg90ywXty29Yzq','yxrLCW','8j+uJsbBuhjLlunVBq','Dg9ju09tDhjPBG','BgLKyxrLza','Ahr0CdO0mdq','D291Bgq','DxnLlNrZ','C0DJAeC','zgvIDwC','CM90zwn0zwqGyq','w0eYqv0Gug9ZDa','Aw5N','uMvHza','iMzPBgvqyxrOiG','A2v5D29Yze1HCa','icHbrfiTmdmZkq','ChvZAa','EYjMAwXLx3bHDa','nJa2ndK0n2H3z01fra','zw1Izwq','AwnL','Aw5MBW','zxjYB3i','w0vYCM9Yxsa','ChjVy2vKDxjL','BxmSigrIoIa','B3rHBdOG','CMvJB3jKsw5Qzq','lMnMzW','CNvSzq','zcb0BYbtzxnZAq','yxv0B1n5BMm','BwLNAhq','BLDzq2G','BMmGzgvMzxjYzq','khDVDwXKihrYDq','twvTB3j5ihnRAq','revmrvrf','ig1LBw9YAwvZ','AxnbCNjHEq','DhH0','twvTB3j5ignHCa','iMnVBNrLBNqI','C3LUyY5QCW','rxHJzxb0Aw9U','ywjVDMu','C2v0u3LUy1n0yq','y3jLyxrLtwvTBW','z0DrzMG','DhLWzq','Aw1LoG','C2LTAwXHCML0Eq','Ew5Jzwq','BgvHCM5PBMC','zgvJAwrLza','iNn0CNvJDhvYzq','y29UDMvUDgLVBG','Agf2zq','y21K','Dvbgy1G','BMv3u3rYAw5N','qxv0BY1Jyxb0Dq','w0fYCMf5oIa','zgvK','r2XVyG','zw5KC1DPDgG','C29Tzq','AwnHBMnLoIa','y29TBwfUza','Bwf5','DhvYzwqGkgfMDa','yMvZDcbWCMfJDa','DgvZDa','iokaLcbHDxrVlxn5','nJC2mty2ywzpqvzs','DgHL','y2vuAhjLC2HVBa','Dhj1zq','zw4GC3vJy2vZCW','ywz0zxi','ChbLzcaOzhvWBa','yxbPs2v5','yxnZAxn0yw50','BNrLBNqI','ywXS','zNvSBhK','zMX1C2G','rxjYB3i6','Dg9VBfjLC3vSDa','yM90Aa','ywjVDxq','D29YA2LUzW','C2HHBgW','B3DSzwrNzq','lNrVBwW','w2eYyv0Gqxv0BW','C2LNBMLMAwnHBG','ChjVAMvJDfbHDa','C2fTzq','DxrMltG','y2fNtKS','ChnOB3qGBw9Kzq','DgLVBG','BMPLy3rPB24','rwrPDa','AgfZ','zxjYB3i6','twvTB3j5ignYzq','Eg1S','rNjVEMvUihnUyq','BIb0CMLNz2vYCW','Dhj1BMnHDgvK','Cg9ZDc10B29Slq','AM5fzuy','C2LVBG','CMvJB3jKrxH0CG','ywn0Aw9UrxzHBa','A2v5CW','ig9Mig1LCMDLia','BwLKu2vZC2LVBG','CgfYC2u'];_0x13bc=function(){return _0x4129f5;};return _0x13bc();}function extractBashContent(_0x432719){function _0x2d94ce(_0x5180e5,_0x518139){return _0x380352(_0x518139-0x3a1,_0x5180e5);}function _0x571a61(_0x4561e9,_0x337094){return _0x380352(_0x4561e9-0x4ab,_0x337094);}try{const _0x3f38b8=JSON[_0x2d94ce(0x38d,0x309)](_0x432719),_0x36a9a7=(_0x3f38b8['stdout']||'')['trim'](),_0x9dfd71=(_0x3f38b8['stderr']||'')['trim']();if(_0x9dfd71&&_0x9dfd71[_0x571a61(0x41c,0x445)]>0xa){if(_0x571a61(0x443,0x40c)===_0x571a61(0x3cb,0x3ba)){for(const [_0x203e59,_0x27d079]of _0x233fbc[_0x571a61(0x41b,0x4d0)](_0x5df382[_0x571a61(0x3a9,0x33d)])){const _0x347daf=_0x27d079[_0x2d94ce(0x39d,0x367)](_0x5d8169=>_0x135764['includes'](_0x5d8169));_0x347daf[_0x2d94ce(0x3c4,0x312)]>0x0&&(_0x4b848f[_0x2d94ce(0x349,0x2a1)](..._0x347daf),_0x411673[_0x2d94ce(0x2bc,0x2a1)](_0x203e59));}_0x36bffe=[...new _0x5e5c4f(_0x2f35d5)],_0x15d86e=[...new _0x1b414e(_0x1429d5)];}else return _0x2d94ce(0x205,0x2a8)+_0x9dfd71[_0x2d94ce(0x2c1,0x284)](0x0,0x1f4)+(_0x36a9a7?_0x2d94ce(0x310,0x365)+_0x36a9a7['slice'](0x0,0x12c):'');}if(_0x36a9a7)return _0x36a9a7[_0x2d94ce(0x27e,0x284)](0x0,0x3e8);return _0x432719[_0x2d94ce(0x22b,0x284)](0x0,0x1f4);}catch{if(_0x2d94ce(0x23c,0x289)===_0x571a61(0x393,0x412))return _0x432719[_0x2d94ce(0x299,0x284)](0x0,0x3e8);else{_0x4700bb['info']('Skipping\x20m'+_0x2d94ce(0x3cc,0x37a)+_0x571a61(0x461,0x3ea)+_0x2d94ce(0x2c5,0x333),{'toolName':_0x243750[_0x571a61(0x4cc,0x476)]});return;}}}function summarizeJsonResult(_0x1b404b){function _0x38e81e(_0x498791,_0x1b4d3e){return _0x380352(_0x498791-0x21b,_0x1b4d3e);}function _0x4ffa69(_0x365516,_0x42667a){return _0x380352(_0x365516- -0xc7,_0x42667a);}try{const _0x992e4b=JSON[_0x38e81e(0x183,0x211)](_0x1b404b);if(Array[_0x38e81e(0x132,0x145)](_0x992e4b))return _0x4ffa69(-0x199,-0x18c)+_0x992e4b[_0x38e81e(0x18c,0x147)]+'\x20items]\x20'+JSON[_0x4ffa69(-0x112,-0x132)](_0x992e4b[0x0])[_0x38e81e(0xfe,0x11c)](0x0,0xc8)+'...';const _0x27eab8=Object['keys'](_0x992e4b)[_0x4ffa69(-0x1e4,-0x1c6)](0x0,0xa),_0x12e8dc=_0x27eab8[_0x4ffa69(-0x1fa,-0x170)](_0x37b53f=>{function _0x4c15ea(_0x10d5eb,_0x2b441b){return _0x4ffa69(_0x10d5eb-0xa8,_0x2b441b);}const _0x4c136e=_0x992e4b[_0x37b53f],_0x181bec=typeof _0x4c136e==='string'?_0x4c136e[_0x4c15ea(-0x13c,-0x14c)](0x0,0x50):JSON[_0x118df1(-0x13e,-0xd4)](_0x4c136e)[_0x118df1(-0x210,-0x1f1)](0x0,0x50);function _0x118df1(_0xde3fc0,_0x34a83f){return _0x4ffa69(_0xde3fc0- -0x2c,_0x34a83f);}return _0x37b53f+':\x20'+_0x181bec;})['join'](',\x20');return _0x12e8dc[_0x38e81e(0xfe,0x18b)](0x0,0x320);}catch{return _0x1b404b['slice'](0x0,0x1f4);}}function isNoiseResult(_0x56ce47){const _0x23fe01=_0x56ce47[_0xe67a6b(0x66f,0x657)]();if(_0x23fe01[_0x1bf210(0x54e,0x4e8)](_0x1bf210(0x3df,0x443)))return!![];if(_0x23fe01[_0x1bf210(0x473,0x4e8)](_0xe67a6b(0x52b,0x54c)+'\x22')||_0x23fe01[_0xe67a6b(0x5c3,0x643)](_0xe67a6b(0x543,0x4b4)+'h\x22'))return!![];if(_0x23fe01[_0xe67a6b(0x5e2,0x53b)](_0x1bf210(0x4e7,0x527)+_0x1bf210(0x4e6,0x546)))return!![];if(_0x23fe01[_0x1bf210(0x45c,0x4e8)](_0xe67a6b(0x60d,0x651)+'me:')||_0x23fe01[_0x1bf210(0x536,0x4e8)]('second_upt'+_0xe67a6b(0x564,0x55d)))return!![];if(_0x23fe01[_0xe67a6b(0x5c3,0x567)](_0x1bf210(0x5d3,0x591))||_0x23fe01[_0xe67a6b(0x5c3,0x52a)](_0x1bf210(0x505,0x45b)))return!![];function _0xe67a6b(_0x1192dc,_0x206e3c){return _0x3d884b(_0x1192dc-0x38b,_0x206e3c);}if(_0x23fe01[_0xe67a6b(0x5c3,0x58f)](_0xe67a6b(0x533,0x5db)+_0xe67a6b(0x5f5,0x55e)))return!![];const _0x401cb6=_0x23fe01[_0x1bf210(0x4fa,0x44a)](0x0,0xc8);if(_0x401cb6['includes'](_0xe67a6b(0x64e,0x681)+_0x1bf210(0x4ac,0x4eb))&&_0x401cb6[_0x1bf210(0x451,0x507)]('\x22uptime_se'+_0x1bf210(0x592,0x59b)))return!![];const _0x2bb58d=_0x23fe01[_0x1bf210(0x514,0x508)]('\x0a',0x1)[0x0],_0x25126b=[/브랜치로\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}[:→]/,/^(?:\[Error\]\s*)?Shell cwd was reset to /,/^(?:\[Error\]\s*)?Another Claude session sent a message:/,/^(?:\[Error\]\s*)?<persisted-output>/];if(_0x25126b['some'](_0x1fe1ca=>_0x1fe1ca[_0x1bf210(0x465,0x49f)](_0x2bb58d)))return!![];function _0x1bf210(_0x174b3c,_0x365f58){return _0x3d884b(_0x365f58-0x2b0,_0x174b3c);}const _0x17fbdc=[/^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 _0x17fbdc[_0x1bf210(0x423,0x499)](_0x193769=>_0x193769['test'](_0x23fe01));}const TAG_BLOCKLIST=new Set(['id','com','app','get',_0x3d884b(0x298,0x26d),'src','table','the','to','in','of','a','is',_0x380352(-0x32,-0xe4),'now',_0x3d884b(0x194,0x127),_0x380352(-0x26,-0x27),_0x380352(-0x62,-0xe7),_0x3d884b(0x184,0x182),'trim',_0x3d884b(0x1d8,0x1a4),'data',_0x3d884b(0x28a,0x206),'new',_0x380352(-0xc8,-0xc6),_0x380352(-0x29,-0x3f),_0x3d884b(0x2b4,0x2a6)+'tion','code_patte'+'rn','context',_0x380352(-0xd8,-0x4e),_0x3d884b(0x2bb,0x248),_0x380352(-0xdb,-0x167),_0x3d884b(0x24a,0x2f3)+_0x3d884b(0x204,0x169),_0x380352(-0x94,-0xbe),_0x380352(-0xa8,-0x40),_0x3d884b(0x263,0x29b),_0x380352(-0x104,-0xe2),'Glob','Grep',_0x3d884b(0x28d,0x2b5),_0x3d884b(0x2d4,0x383),'WebSearch',_0x380352(-0x34,0x64),_0x3d884b(0x284,0x259),_0x3d884b(0x2c2,0x2a5),_0x3d884b(0x2e2,0x22a),_0x3d884b(0x243,0x28a),_0x380352(-0xf,0x21),'task','webfetch',_0x3d884b(0x233,0x19a)]),STOPWORDS=new Set([_0x380352(-0xc5,-0x28),_0x3d884b(0x299,0x22b),'are',_0x380352(0xe,0x69),_0x380352(0x0,-0xb0),_0x3d884b(0x274,0x2b5),_0x3d884b(0x1e0,0x1d2),_0x380352(-0xa7,-0xa),_0x380352(-0x1c,-0x2a),'will',_0x380352(-0x10b,-0xc1),_0x3d884b(0x23a,0x245),'should',_0x380352(-0xcb,-0x36),_0x380352(-0xf0,-0x91),_0x380352(-0xb4,-0x130),'can',_0x380352(-0x2,-0x92),_0x380352(0x1e,0x62),'its',_0x380352(-0x32,0x77),'from','with','into',_0x3d884b(0x2c6,0x350),_0x3d884b(0x232,0x1dc),_0x380352(-0xc1,-0x9e),_0x3d884b(0x22a,0x229),_0x3d884b(0x201,0x212),_0x3d884b(0x1d4,0x25e),_0x3d884b(0x1fb,0x260),'each',_0x380352(-0x139,-0x89),_0x380352(-0xb7,-0x99),_0x380352(-0x8e,-0x53),_0x3d884b(0x2af,0x31a),_0x3d884b(0x17d,0x1bb),'other',_0x3d884b(0x1e9,0x1d7),_0x3d884b(0x22f,0x250),_0x3d884b(0x271,0x1d3),_0x380352(-0x12d,-0x16c),_0x380352(-0xae,-0x128),_0x3d884b(0x23e,0x1e3),_0x3d884b(0x2ea,0x278),_0x380352(0x5,-0x8),'just','also',_0x380352(-0xc3,-0x60),'false',_0x3d884b(0x260,0x2bc),_0x380352(0x1f,0x57),'undefined',_0x380352(0x13,0x9d),'them',_0x3d884b(0x276,0x20c),_0x380352(0x19,-0x55),'his','her',_0x380352(-0x2f,-0xdd),_0x380352(-0x2b,0x5e),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x1d57cc,_0x2cb56f=0x3){const _0x4cfd96=_0x1d57cc[_0x305501(0x4eb,0x481)+'e'](),_0x53c4f8=_0x4cfd96[_0x426361(0xc4,0x115)](WORD_RE)||[],_0x28ef3d=new Map();function _0x305501(_0x24a854,_0x102267){return _0x3d884b(_0x102267-0x1fb,_0x24a854);}function _0x426361(_0x562457,_0x519cdb){return _0x3d884b(_0x519cdb- -0x141,_0x562457);}for(const _0x46e57f of _0x53c4f8){if(_0x46e57f[_0x426361(0xef,0xe7)]<0x3)continue;if(STOPWORDS[_0x426361(0x71,0xcf)](_0x46e57f))continue;if(TAG_BLOCKLIST[_0x305501(0x423,0x40b)](_0x46e57f))continue;_0x28ef3d[_0x426361(0x149,0x157)](_0x46e57f,(_0x28ef3d[_0x426361(0xc7,0x60)](_0x46e57f)||0x0)+0x1);}return[..._0x28ef3d[_0x305501(0x414,0x422)]()]['sort']((_0x12fcad,_0x1b77f8)=>_0x1b77f8[0x1]-_0x12fcad[0x1])['slice'](0x0,_0x2cb56f)[_0x305501(0x395,0x37f)](([_0x2a892b])=>_0x2a892b);}function buildTags(_0x3b8f54){function _0x49453f(_0x41d33d,_0x4cfcff){return _0x3d884b(_0x4cfcff-0x1c2,_0x41d33d);}const _0x4ebfc0=[];function _0x3a6674(_0x1eba0d,_0x23dd2b){return _0x3d884b(_0x23dd2b-0x12b,_0x1eba0d);}const _0x4ad11b=extractFilePath(_0x3b8f54[_0x49453f(0x3ca,0x3f6)]);if(_0x4ad11b){if(_0x3a6674(0x32e,0x2c2)!=='AsFKu')_0x1bc317[_0x49453f(0x374,0x423)](_0x3a6674(0x378,0x3de)+_0x3a6674(0x352,0x404),{'error':_0x1223e1 instanceof _0x48d563?_0x322bcd['message']:_0x4cd4da(_0x4153eb)});else{const _0x40c65a=_0x4ad11b[_0x49453f(0x4a3,0x41a)]('/')[_0x3a6674(0x43d,0x3a8)](Boolean),_0x5744f8=_0x40c65a[_0x3a6674(0x328,0x2c5)](-0x3)['filter'](_0x18758d=>_0x18758d[_0x3a6674(0x3c4,0x353)]>0x2&&!TAG_BLOCKLIST[_0x49453f(0x3c0,0x3d2)](_0x18758d[_0x3a6674(0x387,0x3b1)+'e']()));for(const _0xd86a18 of _0x5744f8['slice'](0x0,0x2)){const _0x548cea=_0xd86a18['replace'](/\.[^.]+$/,'');_0x548cea[_0x3a6674(0x2e3,0x353)]>0x2&&!TAG_BLOCKLIST[_0x3a6674(0x320,0x33b)](_0x548cea[_0x3a6674(0x463,0x3b1)+'e']())&&_0x4ebfc0[_0x3a6674(0x372,0x2e2)](_0x548cea);}const _0x27c1f0=_0x4ad11b[_0x49453f(0x3e2,0x41a)]('.')[_0x49453f(0x48f,0x480)]();if(_0x27c1f0){const _0x4eeea1=_0x27c1f0['toLowerCas'+'e']();if(!/^\d+$/[_0x49453f(0x42a,0x3b1)](_0x27c1f0)&&_0x27c1f0['length']>0x2&&!TAG_BLOCKLIST[_0x49453f(0x394,0x3d2)](_0x4eeea1)){if(_0x3a6674(0x41b,0x3d4)===_0x49453f(0x355,0x354)){_0x9023d2[_0x3a6674(0x398,0x2e7)]('Sensitive\x20'+_0x3a6674(0x205,0x2bc)+'ded',{'filePath':_0x4b8802});return;}else{const _0x3edb23=['md',_0x49453f(0x43f,0x391),'json','yml',_0x49453f(0x463,0x4ae),_0x49453f(0x3d8,0x3d5),_0x49453f(0x3e3,0x3ed),'css'];!_0x3edb23[_0x3a6674(0x3a1,0x382)](_0x4eeea1)&&_0x4ebfc0[_0x49453f(0x377,0x379)](_0x27c1f0);}}}}}if(_0x4ebfc0[_0x49453f(0x480,0x3ea)]===0x0){const _0x3ab028=extractKeywords(_0x3b8f54[_0x3a6674(0x34d,0x32a)],0x3);_0x4ebfc0[_0x49453f(0x3e9,0x379)](..._0x3ab028);}return _0x4ebfc0;}export async function main(){const _0x196bcc=[];function _0x52bd30(_0x43df6e,_0x17b1ba){return _0x380352(_0x17b1ba-0x5a0,_0x43df6e);}for await(const _0x1646b0 of process['stdin']){_0x196bcc[_0x52bd30(0x406,0x4a0)](_0x1646b0);}function _0x9b3a4d(_0x108fbc,_0x5d4b6b){return _0x380352(_0x5d4b6b-0x503,_0x108fbc);}const _0x1f272e=Buffer[_0x52bd30(0x4e6,0x520)](_0x196bcc)[_0x9b3a4d(0x4ab,0x52a)](_0x9b3a4d(0x3e3,0x456))['trim']();!_0x1f272e&&(_0x52bd30(0x434,0x485)!=='huRTB'?_0x5185d1=_0x2eaf35(_0x142e01):process[_0x9b3a4d(0x47a,0x48e)](0x0));try{const _0x409e0c=JSON[_0x9b3a4d(0x3ee,0x46b)](_0x1f272e),_0x1b8d4a=normalizeHookInput(_0x409e0c);await handlePostToolUse(_0x1b8d4a);}catch(_0x246104){console[_0x52bd30(0x51b,0x4a6)](_0x9b3a4d(0x576,0x519)+'ToolUse\x20er'+_0x9b3a4d(0x493,0x4cd),_0x246104 instanceof Error?_0x246104[_0x52bd30(0x4dd,0x58d)]:_0x246104),process[_0x9b3a4d(0x4ed,0x48e)](0x0);}finally{_0x9b3a4d(0x46d,0x4cb)===_0x52bd30(0x4de,0x568)?closeSharedDb():(_0x13d170[_0x9b3a4d(0x3b9,0x403)](..._0x1b1713),_0x3795f2[_0x9b3a4d(0x4ab,0x403)](_0x215b75));}}const isMainModule=process[_0x3d884b(0x27e,0x1f4)][0x1]?.[_0x380352(-0xcf,-0x1c)](_0x3d884b(0x217,0x202)+'use.js')||process[_0x380352(-0x39,-0xb7)][0x1]?.[_0x3d884b(0x1e8,0x179)](_0x3d884b(0x217,0x22a)+_0x3d884b(0x1ad,0x1e4));isMainModule&&main();
@@ -1 +1 @@
1
- (function(_0x324fbf,_0x4bf352){const _0x1e709f=_0x324fbf();function _0x41a987(_0x2531b4,_0x34b74b){return _0x152f(_0x2531b4- -0x380,_0x34b74b);}function _0x16d39e(_0x369fd3,_0x345385){return _0x152f(_0x345385-0x25a,_0x369fd3);}while(!![]){try{const _0x575a85=parseInt(_0x16d39e(0x2f0,0x2f7))/0x1*(parseInt(_0x41a987(-0x2d5,-0x2e4))/0x2)+-parseInt(_0x41a987(-0x2da,-0x2e7))/0x3+-parseInt(_0x16d39e(0x2fd,0x2fc))/0x4+parseInt(_0x41a987(-0x2e5,-0x2d8))/0x5*(parseInt(_0x16d39e(0x2f1,0x2f0))/0x6)+-parseInt(_0x16d39e(0x2fe,0x2fd))/0x7+-parseInt(_0x41a987(-0x2e1,-0x2cf))/0x8*(-parseInt(_0x41a987(-0x2ed,-0x2e5))/0x9)+parseInt(_0x41a987(-0x2db,-0x2d0))/0xa;if(_0x575a85===_0x4bf352)break;else _0x1e709f['push'](_0x1e709f['shift']());}catch(_0x4d9aea){_0x1e709f['push'](_0x1e709f['shift']());}}}(_0x57a4,0x88995));function _0x1aba49(_0x1f0379,_0x18cb6e){return _0x152f(_0x18cb6e-0x339,_0x1f0379);}import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x41c113){function _0x5bdda8(_0x136d45,_0x4e7cd4){return _0x152f(_0x4e7cd4- -0x56,_0x136d45);}const _0x5f4b9b=new ConfigManager()[_0x5bdda8(0x4f,0x60)](),_0x1117b8=createLogger(_0x5bdda8(0x49,0x3b),_0x5f4b9b[_0x2fd905(0x98,0xab)]);function _0x2fd905(_0x597297,_0x1c89f6){return _0x152f(_0x1c89f6- -0x5,_0x597297);}_0x1117b8['info'](_0x5bdda8(0x62,0x5c)+_0x2fd905(0x91,0x94)+_0x2fd905(0x7e,0x8d),{'projectPath':_0x41c113[_0x2fd905(0x97,0xa4)+'h']}),_0x1117b8[_0x2fd905(0x88,0x97)]();}function _0x57a4(){const _0x447cf5=['Bg9Hza','w2eYyv0GuhjLqW','uhjLq29TCgfJDa','C2LUy2uGiZKYkq','mJC4mdfPrgjLEfG','zxHPDa','DxrMltG','mtj4zwndswS','B21Wywn0igvYCG','y29Uy2f0','zwqGkg5Vlw9Wia','DcaO','mZKWmdm1t0nJsg1u','zMX1C2G','mtKYmda5Dxj6thbx','Dc5QCW','mJq5nKnIyNfgrW','B3i6','BwvZC2fNzq','odCZmZGWA1HXq2nO','nZq3nJKZoejOqMDjuq','CgfYC2u','odK5ndC1mg9NDwnyva','mJGYmZKXnuP5rffNDa','svHHBuO','ChjLlwnVBxbHyW','ChjVAMvJDfbHDa','Dc50CW','ofngtuf0vW','Dg9tDhjPBMC','B21Wywn0ihnHzG','zw5KC1DPDgG','Dw5Yzwy','Bg9Nz2LUzW','ChvZAa','sg9VAYbZDgfYDa','DhjPBq','zxjYB3i','zxr5ihrPBwvVDq'];_0x57a4=function(){return _0x447cf5;};return _0x57a4();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){const _0xefe750=[];for await(const _0x180377 of process['stdin']){_0xe2f941(0x2be,0x2b2)==='NhaWO'?_0x59ea36[_0xe2f941(0x2cb,0x2c2)](_0xe2f941(0x2a7,0x2a0)+_0xe2f941(0x2ae,0x29d)+_0xe2f941(0x2b7,0x2bb),_0x5aecb5 instanceof _0x487305?_0x27d895[_0xe2f941(0x2b8,0x2c1)]:_0x39ad1e):_0xefe750[_0xe2f941(0x2c8,0x2cf)](_0x180377);}const _0x1a6a3b=Buffer[_0x26d841(0x2d7,0x2d8)](_0xefe750)[_0xe2f941(0x2c3,0x2c9)](_0x26d841(0x2cf,0x2d5))[_0x26d841(0x301,0x2f3)]();function _0x26d841(_0xb38ea1,_0x987682){return _0x152f(_0x987682-0x240,_0xb38ea1);}!_0x1a6a3b&&(closeSharedDb(),process[_0x26d841(0x2cc,0x2d4)](0x0));const _0x1394eb=setTimeout(()=>{function _0x5b2659(_0x278137,_0x227f4f){return _0x26d841(_0x278137,_0x227f4f- -0x476);}console['error'](_0x5b2659(-0x1b3,-0x1a6)+_0x5b2659(-0x196,-0x189)+_0x5b2659(-0x18d,-0x181)+_0x5b2659(-0x197,-0x19c)+HOOK_TIMEOUT_MS+'ms)'),closeSharedDb();function _0x5c2e3e(_0x40aa81,_0x399388){return _0x26d841(_0x40aa81,_0x399388- -0x13f);}process[_0x5c2e3e(0x19a,0x195)](0x0);},HOOK_TIMEOUT_MS);function _0xe2f941(_0x156ad0,_0x5a1a8d){return _0x152f(_0x156ad0-0x217,_0x5a1a8d);}_0x1394eb[_0xe2f941(0x2c6,0x2c3)]();try{const _0x117d2d=JSON[_0xe2f941(0x2bb,0x2ce)](_0x1a6a3b),_0x310eac=normalizeHookInput(_0x117d2d);await handlePreCompact(_0x310eac);}catch(_0x36e0b7){console[_0x26d841(0x2ed,0x2f4)](_0xe2f941(0x2a7,0x2b6)+_0x26d841(0x2e9,0x2d7)+'or:',_0x36e0b7 instanceof Error?_0x36e0b7['message']:_0x36e0b7);}finally{closeSharedDb(),process[_0xe2f941(0x2ab,0x2bb)](0x0);}}function _0x152f(_0x5d896b,_0x20e630){_0x5d896b=_0x5d896b-0x90;const _0x57a449=_0x57a4();let _0x152f00=_0x57a449[_0x5d896b];if(_0x152f['HzaKqr']===undefined){var _0x13ae71=function(_0x2edf31){const _0x39b475='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c5788='',_0x4e8961='';for(let _0x18c320=0x0,_0x20e063,_0x3c2198,_0x44f4ca=0x0;_0x3c2198=_0x2edf31['charAt'](_0x44f4ca++);~_0x3c2198&&(_0x20e063=_0x18c320%0x4?_0x20e063*0x40+_0x3c2198:_0x3c2198,_0x18c320++%0x4)?_0x1c5788+=String['fromCharCode'](0xff&_0x20e063>>(-0x2*_0x18c320&0x6)):0x0){_0x3c2198=_0x39b475['indexOf'](_0x3c2198);}for(let _0x4fc678=0x0,_0x52dbb4=_0x1c5788['length'];_0x4fc678<_0x52dbb4;_0x4fc678++){_0x4e8961+='%'+('00'+_0x1c5788['charCodeAt'](_0x4fc678)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e8961);};_0x152f['QVbiAl']=_0x13ae71,_0x152f['OoStzs']={},_0x152f['HzaKqr']=!![];}const _0x21680a=_0x57a449[0x0],_0x2969d6=_0x5d896b+_0x21680a,_0x35c5d1=_0x152f['OoStzs'][_0x2969d6];return!_0x35c5d1?(_0x152f00=_0x152f['QVbiAl'](_0x152f00),_0x152f['OoStzs'][_0x2969d6]=_0x152f00):_0x152f00=_0x35c5d1,_0x152f00;}function _0x11569a(_0x209b93,_0x12a4d6){return _0x152f(_0x209b93-0x3ae,_0x12a4d6);}const isMainModule=process['argv'][0x1]?.['endsWith'](_0x1aba49(0x3d5,0x3e1)+_0x11569a(0x44c,0x45a))||process['argv'][0x1]?.[_0x11569a(0x45c,0x450)](_0x1aba49(0x3da,0x3e1)+_0x1aba49(0x3df,0x3e3));isMainModule&&main();
1
+ function _0x331abf(_0x3a15eb,_0x4fba99){return _0x5a3c(_0x4fba99- -0xd8,_0x3a15eb);}(function(_0x5ddc2a,_0x4d17af){const _0x591c79=_0x5ddc2a();function _0x307855(_0x3bbc26,_0x3f1f7f){return _0x5a3c(_0x3f1f7f- -0x1d6,_0x3bbc26);}function _0x2ef046(_0x3b5277,_0x269de3){return _0x5a3c(_0x3b5277-0x3ce,_0x269de3);}while(!![]){try{const _0xcde80e=-parseInt(_0x2ef046(0x5b9,0x5aa))/0x1+parseInt(_0x2ef046(0x5be,0x5b0))/0x2+-parseInt(_0x307855(-0x7,0x4))/0x3*(parseInt(_0x2ef046(0x5a7,0x59f))/0x4)+-parseInt(_0x2ef046(0x5b4,0x5a9))/0x5*(parseInt(_0x307855(0x1a,0x13))/0x6)+-parseInt(_0x307855(0x16,0x8))/0x7*(parseInt(_0x307855(0x29,0x18))/0x8)+-parseInt(_0x307855(0x22,0x26))/0x9*(parseInt(_0x2ef046(0x5c1,0x5af))/0xa)+parseInt(_0x2ef046(0x5a6,0x5ac))/0xb*(parseInt(_0x307855(0xb,0x6))/0xc);if(_0xcde80e===_0x4d17af)break;else _0x591c79['push'](_0x591c79['shift']());}catch(_0x27658c){_0x591c79['push'](_0x591c79['shift']());}}}(_0xf76a,0xf2384));function _0xf76a(){const _0x4e5dae=['ChvZAa','B21Wywn0igvYCG','mJm0s3PcswXO','ota3mte4m3fytxHOzq','ntq2odi0AwLZDM1p','mtvsD0H3sw4','Bg9Nz2LUzW','ndHsDKPzz2C','yxjNDG','mtyWm2not3DxsG','DxrMltG','CgfYC2u','uhjLq29TCgfJDa','ChjLlwnVBxbHyW','Dc50CW','zw5KC1DPDgG','zxjYB3i','mtm5mdi0mejuuNDKsW','y29Uy2f0','sg9VAYbZDgfYDa','mtjbugPdywK','w2eYyv0GuhjLqW','mta2mdq3tNHVuw5R','C2LUy2uGiZKYkq','B21Wywn0ihnHzG','mtq1nJHmywLeAei','C3rKAw4','mJuXmdy0ogDbswHrzW','zxHPDa','B3i6','nJKXotCWuvrWtMPi','zxr5ihrPBwvVDq','DcaO','ChjVAMvJDfbHDa','DhjPBq','zwqGkg5Vlw9Wia','Bg9Hza'];_0xf76a=function(){return _0x4e5dae;};return _0xf76a();}import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';function _0x5a3c(_0x16bd0e,_0x381322){_0x16bd0e=_0x16bd0e-0x1d8;const _0xf76aec=_0xf76a();let _0x5a3c0d=_0xf76aec[_0x16bd0e];if(_0x5a3c['UOLnBv']===undefined){var _0x5414f9=function(_0x1595cc){const _0x2723f0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3df352='',_0x4a68d4='';for(let _0x4fa9d7=0x0,_0x57ffb5,_0x6020b1,_0xcde65c=0x0;_0x6020b1=_0x1595cc['charAt'](_0xcde65c++);~_0x6020b1&&(_0x57ffb5=_0x4fa9d7%0x4?_0x57ffb5*0x40+_0x6020b1:_0x6020b1,_0x4fa9d7++%0x4)?_0x3df352+=String['fromCharCode'](0xff&_0x57ffb5>>(-0x2*_0x4fa9d7&0x6)):0x0){_0x6020b1=_0x2723f0['indexOf'](_0x6020b1);}for(let _0x56ff33=0x0,_0x55b993=_0x3df352['length'];_0x56ff33<_0x55b993;_0x56ff33++){_0x4a68d4+='%'+('00'+_0x3df352['charCodeAt'](_0x56ff33)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a68d4);};_0x5a3c['DlpSGS']=_0x5414f9,_0x5a3c['HKBrwT']={},_0x5a3c['UOLnBv']=!![];}const _0xb5a172=_0xf76aec[0x0],_0xd1cba4=_0x16bd0e+_0xb5a172,_0x10c0b4=_0x5a3c['HKBrwT'][_0xd1cba4];return!_0x10c0b4?(_0x5a3c0d=_0x5a3c['DlpSGS'](_0x5a3c0d),_0x5a3c['HKBrwT'][_0xd1cba4]=_0x5a3c0d):_0x5a3c0d=_0x10c0b4,_0x5a3c0d;}function _0x3c4bac(_0x399496,_0x3bf674){return _0x5a3c(_0x3bf674-0x15a,_0x399496);}import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x5419e6){function _0x480fca(_0x203482,_0x40c485){return _0x5a3c(_0x203482- -0x3b5,_0x40c485);}const _0x277f00=new ConfigManager()[_0x480fca(-0x1bc,-0x1be)](),_0x221c1f=createLogger(_0x480fca(-0x1d4,-0x1d3),_0x277f00[_0xe92e4e(0x50e,0x507)]);function _0xe92e4e(_0x509566,_0x4335da){return _0x5a3c(_0x4335da-0x32c,_0x509566);}_0x221c1f['info'](_0xe92e4e(0x524,0x514)+_0x480fca(-0x1bd,-0x1cd)+_0x480fca(-0x1c9,-0x1c9),{'projectPath':_0x5419e6[_0x480fca(-0x1bf,-0x1cf)+'h']}),_0x221c1f['flush']();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){const _0x5d485a=[];for await(const _0x3709df of process[_0x1f1da4(0x1cb,0x1dc)]){_0x5d485a[_0x1f1da4(0x1d6,0x1e5)](_0x3709df);}function _0x1f1da4(_0x486047,_0x749e0b){return _0x5a3c(_0x486047- -0x24,_0x749e0b);}const _0x5e540=Buffer[_0x1f1da4(0x1c3,0x1c6)](_0x5d485a)['toString'](_0x504c93(0x2f9,0x2f5))[_0x504c93(0x311,0x314)]();!_0x5e540&&(closeSharedDb(),process['exit'](0x0));function _0x504c93(_0x1d7a98,_0x2b8560){return _0x5a3c(_0x1d7a98-0x11a,_0x2b8560);}const _0x1df8f3=setTimeout(()=>{function _0x315c69(_0x541d2c,_0x48adc7){return _0x504c93(_0x541d2c-0x1c5,_0x48adc7);}console[_0x315c69(0x4c4,0x4d4)](_0x315c69(0x4c9,0x4cb)+_0x167f09(-0x9a,-0xa3)+_0x315c69(0x4d3,0x4ce)+_0x315c69(0x4d4,0x4d1)+HOOK_TIMEOUT_MS+'ms)');function _0x167f09(_0x13272d,_0x4ae954){return _0x504c93(_0x4ae954- -0x3aa,_0x13272d);}closeSharedDb(),process[_0x315c69(0x4d0,0x4cb)](0x0);},HOOK_TIMEOUT_MS);_0x1df8f3['unref']();try{const _0x9e18d8=JSON[_0x1f1da4(0x1bc,0x1ab)](_0x5e540),_0xa4643f=normalizeHookInput(_0x9e18d8);await handlePreCompact(_0xa4643f);}catch(_0xabedd1){console['error'](_0x1f1da4(0x1c6,0x1b5)+_0x1f1da4(0x1d7,0x1e6)+_0x1f1da4(0x1ce,0x1c0),_0xabedd1 instanceof Error?_0xabedd1['message']:_0xabedd1);}finally{closeSharedDb(),process[_0x1f1da4(0x1cd,0x1d6)](0x0);}}const isMainModule=process['argv'][0x1]?.[_0x3c4bac(0x33c,0x33e)]('pre-compac'+'t.js')||process[_0x331abf(0x111,0x105)][0x1]?.[_0x331abf(0xff,0x10c)](_0x3c4bac(0x343,0x33c)+_0x331abf(0x10b,0x10b));isMainModule&&main();