a2a-memory 0.12.65 → 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 (113) hide show
  1. package/README.md +8 -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.d.ts +10 -0
  17. package/dist/cli/commands/measure.js +1 -0
  18. package/dist/cli/commands/migrate-chunks.js +1 -1
  19. package/dist/cli/commands/migrate-file-refs.js +1 -1
  20. package/dist/cli/commands/proficiency.js +1 -1
  21. package/dist/cli/commands/review.js +1 -1
  22. package/dist/cli/commands/rm.js +1 -1
  23. package/dist/cli/commands/search.js +1 -1
  24. package/dist/cli/commands/session-extract.js +1 -1
  25. package/dist/cli/commands/setup-wizard.d.ts +4 -1
  26. package/dist/cli/commands/setup-wizard.js +1 -1
  27. package/dist/cli/commands/setup.d.ts +1 -0
  28. package/dist/cli/commands/setup.js +1 -1
  29. package/dist/cli/commands/skill.js +1 -1
  30. package/dist/cli/commands/status.js +1 -1
  31. package/dist/cli/commands/sync.js +1 -1
  32. package/dist/cli/commands/team.js +1 -1
  33. package/dist/cli/commands/usage.js +1 -1
  34. package/dist/cli/index.js +1 -1
  35. package/dist/config/manager.d.ts +49 -0
  36. package/dist/config/manager.js +1 -1
  37. package/dist/config/prompt-hook.d.ts +52 -0
  38. package/dist/config/prompt-hook.js +1 -0
  39. package/dist/contextrank/ac-matcher.js +1 -1
  40. package/dist/contextrank/edge-builder.js +1 -1
  41. package/dist/contextrank/rank-builder.js +1 -1
  42. package/dist/contextrank/signal-builder.js +1 -1
  43. package/dist/contextrank/since-store.js +1 -1
  44. package/dist/db/database.d.ts +51 -0
  45. package/dist/db/database.js +1 -1
  46. package/dist/db/integrity-marker.js +1 -1
  47. package/dist/db/usage-spool.js +1 -1
  48. package/dist/embedding/e5-provider.js +1 -1
  49. package/dist/embedding/index.js +1 -1
  50. package/dist/embedding/local-provider.js +1 -1
  51. package/dist/embedding/openai-provider.js +1 -1
  52. package/dist/embedding/quantization.js +1 -1
  53. package/dist/extraction/dedup-manager.js +1 -1
  54. package/dist/extraction/emotion-filter.js +1 -1
  55. package/dist/extraction/extractor.js +1 -1
  56. package/dist/extraction/file-reference.js +1 -1
  57. package/dist/extraction/filter.js +1 -1
  58. package/dist/extraction/scorer.js +1 -1
  59. package/dist/extraction/similarity.js +1 -1
  60. package/dist/hooks/client-factory.js +1 -1
  61. package/dist/hooks/post-tool-use.js +1 -1
  62. package/dist/hooks/pre-compact.js +1 -1
  63. package/dist/hooks/session-end.js +1 -1
  64. package/dist/hooks/session-start.js +1 -1
  65. package/dist/hooks/shared.js +1 -1
  66. package/dist/hooks/stop.js +1 -1
  67. package/dist/hooks/user-prompt-submit.js +1 -1
  68. package/dist/i18n/index.js +1 -1
  69. package/dist/i18n/messages.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/lifecycle/channel-metrics.d.ts +146 -0
  72. package/dist/lifecycle/channel-metrics.js +1 -0
  73. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  74. package/dist/lifecycle/cleanup.js +1 -1
  75. package/dist/lifecycle/consolidation.js +1 -1
  76. package/dist/lifecycle/contradiction.js +1 -1
  77. package/dist/lifecycle/embedding-backfill.js +1 -1
  78. package/dist/lifecycle/index.js +1 -1
  79. package/dist/lifecycle/injection-flush.js +1 -1
  80. package/dist/lifecycle/quality-scorer.js +1 -1
  81. package/dist/lifecycle/session-extract.js +1 -1
  82. package/dist/lifecycle/shadow-rebuild.js +1 -1
  83. package/dist/lifecycle/tiering.js +1 -1
  84. package/dist/llm/client.js +1 -1
  85. package/dist/llm/index.js +1 -1
  86. package/dist/proficiency/actr-engine.js +1 -1
  87. package/dist/proficiency/detection.js +1 -1
  88. package/dist/proficiency/index.js +1 -1
  89. package/dist/proficiency/tracker.js +1 -1
  90. package/dist/search/adaptive-router.js +1 -1
  91. package/dist/search/index.js +1 -1
  92. package/dist/search/injection-filter.js +1 -1
  93. package/dist/search/memoryrank-rerank.js +1 -1
  94. package/dist/search/ranker.js +1 -1
  95. package/dist/search/reranker.js +1 -1
  96. package/dist/session/parser.js +1 -1
  97. package/dist/skill/evaluator.js +1 -1
  98. package/dist/skill/index.js +1 -1
  99. package/dist/sync/client.js +1 -1
  100. package/dist/sync/encryption.js +1 -1
  101. package/dist/sync/index.js +1 -1
  102. package/dist/sync/queue.js +1 -1
  103. package/dist/sync/scheduler.js +1 -1
  104. package/dist/sync/synchronizer.js +1 -1
  105. package/dist/sync/team-synchronizer.js +1 -1
  106. package/dist/sync/vector-clock.js +1 -1
  107. package/dist/types/index.d.ts +9 -0
  108. package/dist/types/index.js +1 -1
  109. package/dist/utils/file-mode.js +1 -1
  110. package/dist/utils/keychain.js +1 -1
  111. package/dist/utils/logger.js +1 -1
  112. package/dist/utils/test-isolation.js +1 -1
  113. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5c0d63,_0x296703){function _0x15994a(_0x3373f0,_0x4d827e){return _0x504c(_0x3373f0-0x3b4,_0x4d827e);}const _0x769231=_0x5c0d63();function _0x5ef01e(_0x4f8636,_0x45339e){return _0x504c(_0x45339e-0x2a,_0x4f8636);}while(!![]){try{const _0x3872d7=-parseInt(_0x5ef01e(0x1fb,0x274))/0x1*(parseInt(_0x5ef01e(0x271,0x2eb))/0x2)+parseInt(_0x15994a(0x593,0x4e1))/0x3*(-parseInt(_0x15994a(0x5b1,0x669))/0x4)+-parseInt(_0x15994a(0x51c,0x530))/0x5+-parseInt(_0x5ef01e(0x262,0x2ea))/0x6*(parseInt(_0x15994a(0x565,0x4e3))/0x7)+-parseInt(_0x15994a(0x5c4,0x57e))/0x8+-parseInt(_0x5ef01e(0x263,0x1ea))/0x9+parseInt(_0x5ef01e(0x1b3,0x23e))/0xa;if(_0x3872d7===_0x296703)break;else _0x769231['push'](_0x769231['shift']());}catch(_0x4dc12b){_0x769231['push'](_0x769231['shift']());}}}(_0x3b85,0xa91aa));import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{scoreSignificance}from'../extraction/scorer.js';import{filterSensitiveInfo}from'../extraction/filter.js';import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';import{createLogger}from'../utils/logger.js';import{isClaudeMemoryFile}from'../claude/sync.js';import{createHookClient}from'./client-factory.js';import{SyncQueue}from'../sync/queue.js';const CATEGORY_TYPE_MAP={'error_solution':_0x4fe3c7(-0x96,-0x40),'code_pattern':_0x24296a(0x340,0x2c5),'decision':_0x4fe3c7(0xb8,0xd3),'context':'episode','project_knowledge':_0x4fe3c7(-0x44,-0x88),'convention':_0x4fe3c7(-0x58,-0xe),'learning':_0x4fe3c7(-0xf0,-0x40),'skill':_0x24296a(0x3ba,0x470),'rule':'procedure'},AUTO_SYNC_THRESHOLD=0x14;function _0x24296a(_0x36a00d,_0x3bab67){return _0x504c(_0x36a00d-0x1e3,_0x3bab67);}const AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x2a7709){const _0x2f94bb=performance[_0x4c1c55(0x309,0x2ca)]();function _0x4c1c55(_0x19f051,_0x412c31){return _0x4fe3c7(_0x19f051,_0x412c31-0x2a3);}function _0x3492f2(_0x25586c,_0x3ff28b){return _0x4fe3c7(_0x3ff28b,_0x25586c-0x20e);}const _0x35203d=new ConfigManager()[_0x3492f2(0x1f2,0x24d)](),_0x26b267=performance[_0x3492f2(0x235,0x266)](),_0x8518a1=createLogger('PostToolUs'+'e',_0x35203d[_0x4c1c55(0x302,0x350)]);try{_0x8518a1['info'](_0x4c1c55(0x302,0x2cc)+'ed',{'toolName':_0x2a7709[_0x4c1c55(0x1ee,0x215)]});if(!_0x35203d[_0x4c1c55(0x399,0x327)+'e']['enabled']){_0x8518a1[_0x4c1c55(0x2cd,0x262)]('Auto-captu'+'re\x20disable'+'d');return;}if(!_0x35203d[_0x3492f2(0x292,0x33a)+'e'][_0x4c1c55(0x28f,0x224)][_0x4c1c55(0x31a,0x2c0)](_0x2a7709[_0x3492f2(0x180,0x1cc)])){_0x8518a1[_0x3492f2(0x2a0,0x1ea)](_0x3492f2(0x1a9,0x1d4)+_0x3492f2(0x1ba,0x23e),{'toolName':_0x2a7709[_0x3492f2(0x180,0xf4)]});return;}const _0x4e2330=extractFilePath(_0x2a7709[_0x4c1c55(0x2b1,0x239)]);if(_0x4e2330&&isSensitiveFile(_0x4e2330,_0x35203d[_0x4c1c55(0x26f,0x327)+'e'][_0x4c1c55(0x236,0x240)+_0x4c1c55(0x308,0x359)])){if(_0x3492f2(0x1b7,0x108)!==_0x3492f2(0x1b7,0x250))_0x4b77c7=_0x3492f2(0x2b5,0x35c);else{_0x8518a1[_0x4c1c55(0x245,0x262)]('Sensitive\x20'+'file\x20exclu'+_0x3492f2(0x2da,0x2f1),{'filePath':_0x4e2330});return;}}if(_0x4e2330&&isClaudeMemoryFile(_0x4e2330)&&(_0x2a7709[_0x3492f2(0x180,0x153)]==='Write'||_0x2a7709[_0x4c1c55(0x1b3,0x215)]===_0x3492f2(0x22a,0x249))){const _0x4046e3=performance[_0x3492f2(0x235,0x238)]();try{const _0x294a4a=getSharedDb(_0x35203d['db']['path']),{syncClaudeMd:_0x13ab00}=await import('../claude/'+_0x4c1c55(0x25f,0x2f4));await _0x13ab00(_0x294a4a,{'claudeMdPath':_0x4e2330,'projectPath':_0x2a7709[_0x4c1c55(0x2e9,0x2cd)+'h']});const _0x21ded5=performance[_0x4c1c55(0x376,0x2ca)](),_0x23da9e=Math[_0x4c1c55(0x2b4,0x303)](_0x21ded5-_0x2f94bb),_0x13bc0c=Math['round'](_0x21ded5-_0x4046e3),_0x4fd735=Math[_0x4c1c55(0x360,0x303)](_0x26b267-_0x2f94bb);process[_0x4c1c55(0x306,0x2c2)][_0x4c1c55(0x286,0x2b9)]('[A2A]\x20Post'+'ToolUse\x20co'+_0x3492f2(0x268,0x2ae)+_0x4c1c55(0x34f,0x2b8)+_0x23da9e+('ms\x20|\x20confi'+_0x3492f2(0x220,0x27d))+_0x4fd735+(_0x3492f2(0x1ea,0x1c8)+_0x3492f2(0x1c7,0x1be))+_0x13bc0c+_0x3492f2(0x281,0x271)),_0x8518a1[_0x4c1c55(0x1e4,0x262)]('Claude\x20mem'+_0x3492f2(0x1b9,0x13a)+'ynced',{'filePath':_0x4e2330});}catch(_0x59dea3){_0x8518a1[_0x4c1c55(0x3cc,0x360)]('Claude\x20mem'+'ory\x20sync\x20f'+_0x3492f2(0x25c,0x264),{'error':_0x59dea3 instanceof Error?_0x59dea3[_0x3492f2(0x1ae,0x150)]:String(_0x59dea3)});}return;}const _0x44498e=performance['now'](),_0x165de5={'uuid':_0x2a7709[_0x4c1c55(0x2b9,0x238)],'type':'assistant','message':{'role':_0x4c1c55(0x2f0,0x323),'content':_0x2a7709[_0x3492f2(0x1d3,0x265)]},'timestamp':new Date()[_0x3492f2(0x251,0x246)+'g']()},_0x3b87b2=_0x2a7709[_0x4c1c55(0x2a3,0x215)]==='Write',_0x3d922b=_0x4e2330?isConfigFile(_0x4e2330):![],_0xd49dd1=detectActualError(_0x2a7709[_0x4c1c55(0x1bc,0x268)],_0x2a7709['toolInput']);let _0x1aa9a9;if(_0x2a7709[_0x3492f2(0x180,0x217)]===_0x4c1c55(0x235,0x2be)&&_0x2a7709[_0x3492f2(0x1a4,0x1c0)])try{if(_0x4c1c55(0x204,0x2a3)==='MrPux'){const _0x266a1b=typeof _0x2a7709[_0x3492f2(0x1a4,0x166)]===_0x3492f2(0x272,0x27e)?JSON[_0x3492f2(0x21d,0x26d)](_0x2a7709['toolInput']):_0x2a7709[_0x3492f2(0x1a4,0x1bf)];_0x1aa9a9=_0x266a1b?.[_0x4c1c55(0x24c,0x273)]??_0x266a1b?.[_0x4c1c55(0x347,0x375)]??(typeof _0x266a1b==='string'?_0x266a1b:undefined);}else _0x202be6[_0x3492f2(0x2cb,0x2e1)](_0x4c1c55(0x2f0,0x377)+_0x4c1c55(0x2be,0x21a),{'error':_0x267ec7 instanceof _0x15cf63?_0x4acb62['message']:_0x5457cd(_0x5d0e88)});}catch{_0x1aa9a9=typeof _0x2a7709[_0x4c1c55(0x285,0x239)]===_0x3492f2(0x272,0x281)?_0x2a7709[_0x3492f2(0x1a4,0x236)]:undefined;}const _0x3d2643=scoreSignificance(_0x165de5,{'toolName':_0x2a7709[_0x4c1c55(0x26e,0x215)],'isNewFile':_0x3b87b2,'isConfigChange':_0x3d922b,'hasError':_0xd49dd1,'bashCommand':_0x1aa9a9},_0x35203d[_0x4c1c55(0x340,0x327)+'e'][_0x4c1c55(0x34a,0x342)+_0x4c1c55(0x1b3,0x260)+'d']),_0x50e129=performance[_0x4c1c55(0x278,0x2ca)](),_0xcdabe3=_0x35203d[_0x4c1c55(0x318,0x327)+'e']['significan'+_0x4c1c55(0x1e4,0x260)+'d']*0.5;_0x8518a1[_0x3492f2(0x1cd,0x14b)](_0x3492f2(0x270,0x1c6)+_0x3492f2(0x246,0x2d4),{'toolName':_0x2a7709['toolName'],'score':_0x3d2643[_0x4c1c55(0x3c0,0x321)],'shouldCapture':_0x3d2643['totalScore']>=_0xcdabe3});if(_0x3d2643[_0x3492f2(0x28c,0x2ae)]<_0xcdabe3)return;const _0x2cdb16=determineCategory(_0x2a7709,_0xd49dd1),_0x2e3d40=buildContent(_0x2a7709);if(!_0x2e3d40){_0x8518a1['info'](_0x4c1c55(0x1ae,0x233)+'emory:\x20no\x20'+_0x4c1c55(0x35b,0x2c5)+_0x3492f2(0x1f3,0x197),{'toolName':_0x2a7709[_0x3492f2(0x180,0x20d)]});return;}const _0x56bb68=filterSensitiveInfo(_0x2e3d40);let _0x4addf7;if(_0xd49dd1)_0x4addf7='episodic';else _0x3d2643['totalScore']<_0x35203d[_0x4c1c55(0x2a2,0x327)+'e'][_0x4c1c55(0x2e7,0x342)+'ceThreshol'+'d']?_0x4addf7=_0x3492f2(0x29e,0x2bc):_0x4addf7=_0x4c1c55(0x335,0x34a);const _0x37aa02={'content':_0x56bb68['filtered'],'category':_0x2cdb16,'tier':_0x4addf7,'tags':buildTags(_0x2a7709),'projectPath':_0x2a7709[_0x4c1c55(0x22c,0x2cd)+'h'],'sessionId':_0x2a7709[_0x3492f2(0x1a3,0x1cd)],'memoryType':CATEGORY_TYPE_MAP[_0x2cdb16]??_0x3492f2(0x186,0x233)},_0x520f38=getSharedDb(_0x35203d['db']['path']),_0x19f736=performance[_0x4c1c55(0x360,0x2ca)](),_0x26b747=new DedupManager(),_0x4b588f=_0x26b747[_0x3492f2(0x2e5,0x2cc)+_0x4c1c55(0x26a,0x228)](_0x520f38[_0x4c1c55(0x417,0x374)+'es']({'projectPath':_0x2a7709[_0x3492f2(0x238,0x258)+'h'],'limit':0x32,'excludeParents':!![]}),_0x2cdb16,_0x2a7709['projectPat'+'h']),_0x2257b9=_0x26b747['decide'](_0x56bb68[_0x4c1c55(0x3c3,0x366)],_0x4b588f),_0x2a6b40=performance[_0x3492f2(0x235,0x233)]();_0x8518a1[_0x4c1c55(0x1cb,0x262)](_0x4c1c55(0x372,0x2c3)+_0x3492f2(0x2d8,0x269),{'action':_0x2257b9[_0x3492f2(0x22c,0x219)],'similarity':_0x2257b9[_0x4c1c55(0x202,0x253)]});const _0x1e47a2=performance['now']();let _0x2f0572;try{if(_0x4c1c55(0x28f,0x254)==='WWHCc')switch(_0x2257b9[_0x4c1c55(0x355,0x2c1)]){case'NOOP':_0x8518a1['info'](_0x3492f2(0x1af,0x122)+_0x4c1c55(0x330,0x2a5)+_0x4c1c55(0x224,0x2a7),{'similarity':_0x2257b9['similarity']});return;case _0x4c1c55(0x376,0x32c):if(_0x2257b9[_0x4c1c55(0x290,0x329)+'ry']){const _0x1b4ff8=_0x26b747[_0x3492f2(0x258,0x1ab)+'nt'](_0x2257b9['targetMemo'+'ry'][_0x4c1c55(0x379,0x34b)],_0x56bb68[_0x4c1c55(0x41c,0x366)]);if(_0x1b4ff8['truncated']){_0x2f0572=_0x520f38[_0x3492f2(0x24d,0x2cc)+'ry'](_0x37aa02);if(_0x4addf7!==_0x4c1c55(0x3a1,0x333)){if('NOcXw'===_0x3492f2(0x25d,0x24f))_0x520f38[_0x3492f2(0x21e,0x268)+_0x3492f2(0x23c,0x2df)](_0x2f0572['id'],null,_0x4c1c55(0x33f,0x32f));else return null;}_0x8518a1[_0x4c1c55(0x24a,0x262)](_0x3492f2(0x23b,0x1c4)+_0x3492f2(0x227,0x239)+'\x20of\x20merge\x20'+'(would\x20tru'+_0x4c1c55(0x22e,0x2a6),{'targetId':_0x2257b9[_0x3492f2(0x294,0x323)+'ry']['id'],'newId':_0x2f0572['id'],'targetLength':_0x2257b9[_0x3492f2(0x294,0x2ef)+'ry'][_0x4c1c55(0x371,0x34b)][_0x4c1c55(0x346,0x2b7)],'wouldBeLength':_0x1b4ff8[_0x3492f2(0x214,0x1df)+_0x4c1c55(0x32e,0x279)]});break;}_0x520f38['updateMemo'+'ry'](_0x2257b9['targetMemo'+'ry']['id'],{'content':_0x1b4ff8['content'],'tags':[...new Set([..._0x2257b9[_0x4c1c55(0x393,0x329)+'ry'][_0x3492f2(0x1c5,0x185)]||[],...buildTags(_0x2a7709)])]}),_0x8518a1[_0x3492f2(0x1cd,0x158)](_0x3492f2(0x2b8,0x29d)+'ated\x20(merg'+_0x4c1c55(0x37b,0x2ff),{'memoryId':_0x2257b9['targetMemo'+'ry']['id']});}return;case _0x4c1c55(0x377,0x30a):{if(_0x2257b9[_0x4c1c55(0x3b8,0x329)+'ry']){if(isProtectedFromCleanup(_0x2257b9[_0x4c1c55(0x35a,0x329)+'ry']))_0x8518a1[_0x3492f2(0x1cd,0x1c5)](_0x4c1c55(0x2da,0x2a4)+_0x3492f2(0x24e,0x202)+_0x4c1c55(0x2e5,0x371)+_0x4c1c55(0x33e,0x2ef)+_0x4c1c55(0x3cf,0x353),{'memoryId':_0x2257b9['targetMemo'+'ry']['id'],'category':_0x2257b9[_0x4c1c55(0x27e,0x329)+'ry'][_0x4c1c55(0x218,0x28c)]});else{if(_0x3492f2(0x2e3,0x2b5)===_0x3492f2(0x21b,0x229)){if(typeof _0x116453[_0x4c1c55(0x3fd,0x352)]===_0x4c1c55(0x2bf,0x307))return _0x455628[_0x3492f2(0x2bd,0x261)];if(typeof _0x46c718[_0x4c1c55(0x2d3,0x256)]===_0x4c1c55(0x259,0x307))return _0x1a16f7['path'];}else _0x520f38[_0x3492f2(0x1a8,0x133)+'ry'](_0x2257b9[_0x3492f2(0x294,0x2f0)+'ry']['id'],{'invalidAt':new Date()[_0x4c1c55(0x283,0x2e6)+'g']()}),_0x8518a1[_0x3492f2(0x1cd,0x283)]('Old\x20memory'+_0x4c1c55(0x274,0x272)+_0x4c1c55(0x35c,0x2e8),{'memoryId':_0x2257b9[_0x3492f2(0x294,0x30e)+'ry']['id']});}}_0x2f0572=_0x520f38[_0x4c1c55(0x2bb,0x2e2)+'ry'](_0x37aa02);_0x4addf7!==_0x4c1c55(0x38a,0x333)&&_0x520f38[_0x4c1c55(0x2dd,0x2b3)+'tus'](_0x2f0572['id'],null,'pending');_0x8518a1['info'](_0x3492f2(0x287,0x2ef)+_0x3492f2(0x1b1,0x1a7)+_0x3492f2(0x20b,0x232),{'category':_0x2cdb16,'memoryId':_0x2f0572['id']});break;}case _0x4c1c55(0x2c6,0x29a):default:_0x2f0572=_0x520f38[_0x4c1c55(0x295,0x2e2)+'ry'](_0x37aa02);if(_0x4addf7!==_0x4c1c55(0x3ad,0x333)){if('lRcbj'==='LiIRS'){const _0x39aef3=['md','txt',_0x3492f2(0x283,0x20e),_0x4c1c55(0x2d7,0x2ae),'yaml',_0x3492f2(0x21a,0x1fa),_0x3492f2(0x255,0x2d1),_0x3492f2(0x195,0x139)];!_0x39aef3[_0x3492f2(0x22b,0x2c7)](_0x23d863)&&_0x50c504[_0x4c1c55(0x32b,0x299)](_0x265606);}else _0x520f38['setSyncSta'+'tus'](_0x2f0572['id'],null,_0x4c1c55(0x2f0,0x32f));}_0x8518a1[_0x3492f2(0x1cd,0x272)](_0x3492f2(0x287,0x1d7)+_0x4c1c55(0x276,0x2e7),{'category':_0x2cdb16,'memoryId':_0x2f0572['id']});break;}else{_0x59e270[_0x3492f2(0x2a0,0x2f3)](_0x3492f2(0x1a9,0x208)+_0x4c1c55(0x26b,0x24f),{'toolName':_0x21d661[_0x3492f2(0x180,0x210)]});return;}}catch(_0x50dca2){if(_0x3492f2(0x19b,0x15e)==='qDivd'){const _0x527090=_0x50dca2 instanceof Error?_0x50dca2:new Error(String(_0x50dca2));_0x8518a1['error'](_0x3492f2(0x221,0x2a6)+'ation\x20fail'+'ed',_0x527090,{'category':_0x2cdb16});}else _0x3220ef['recordInje'+_0x3492f2(0x241,0x196)](_0x32c428['id'],_0x599d2d,_0x53169a[_0x4c1c55(0x25c,0x215)],_0x44fa0f);}const _0x384602=performance[_0x4c1c55(0x31d,0x2ca)]();if(_0x2f0572&&_0x35203d['embedding']?.['enabled']&&_0x35203d[_0x3492f2(0x248,0x217)][_0x3492f2(0x233,0x2a5)]===_0x3492f2(0x2d3,0x310)){if(_0x3492f2(0x2d7,0x33e)===_0x4c1c55(0x284,0x290))try{const _0x2e63cc=typeof _0x2b295a[_0x4c1c55(0x283,0x239)]===_0x3492f2(0x272,0x25a)?_0x3a2a79[_0x3492f2(0x21d,0x216)](_0x39be62[_0x3492f2(0x1a4,0x23e)]):_0x28ef03['toolInput'];_0x1d08d0=_0x2e63cc?.[_0x4c1c55(0x24b,0x273)]??_0x2e63cc?.[_0x3492f2(0x2e0,0x2bc)]??(typeof _0x2e63cc===_0x3492f2(0x272,0x25c)?_0x2e63cc:_0x47a2e8);}catch{_0x515c1c=typeof _0x3df3f0['toolInput']==='string'?_0x490d5f[_0x4c1c55(0x238,0x239)]:_0x17c614;}else try{const {createEmbeddingProvider:_0x17f35f}=await import(_0x4c1c55(0x3c6,0x381)+_0x3492f2(0x1f4,0x1ed)+'s'),_0x1518c9=_0x17f35f(_0x35203d[_0x4c1c55(0x331,0x2dd)],_0x35203d['llm']),_0x4b76bf=await Promise['resolve'](_0x1518c9['embed'](_0x2f0572[_0x3492f2(0x2b6,0x287)]));Array[_0x3492f2(0x260,0x2b0)](_0x4b76bf)&&_0x520f38['saveEmbedd'+'ing'](_0x2f0572['id'],_0x4b76bf);}catch(_0x5efc71){_0x8518a1['warn']('Embedding\x20'+_0x4c1c55(0x1b6,0x21a),{'error':_0x5efc71 instanceof Error?_0x5efc71[_0x3492f2(0x1ae,0x1e9)]:String(_0x5efc71)});}}try{const _0x1be58e=_0x520f38[_0x3492f2(0x1e6,0x25a)+_0x4c1c55(0x2e0,0x35a)](_0x2a7709['sessionId']);if(_0x1be58e&&_0x1be58e[_0x4c1c55(0x36a,0x2d7)+_0x3492f2(0x1e7,0x250)]){const _0x1b911f=(_0x2a7709[_0x3492f2(0x180,0x13c)]+'\x20'+JSON['stringify'](_0x2a7709[_0x3492f2(0x1a4,0x191)])+'\x20'+String(_0x2a7709[_0x4c1c55(0x1d5,0x268)]))[_0x3492f2(0x1b6,0x224)+'e'](),{parseInjectedKeywords:_0x7ea5f2}=await import('./shared.j'+'s'),_0x4769b2=_0x7ea5f2(_0x1be58e['injectedKe'+'ywords']);let _0x2539c5=[],_0x3e1f4b=[];if(_0x4769b2[_0x3492f2(0x2cd,0x2b9)]){if('LOyGb'===_0x4c1c55(0x24d,0x22f))_0x5e3661[_0x4c1c55(0x32a,0x335)](_0x3492f2(0x1cf,0x24f)+'pshot\x20mode'+'\x20(ADR-033)'+_0x4c1c55(0x36a,0x31f)+'nc\x20deferre'+'d\x20to\x20Sessi'+'onEnd');else{for(const [_0x18d78e,_0x8292d1]of Object[_0x3492f2(0x1b4,0x20b)](_0x4769b2[_0x4c1c55(0x2f8,0x25d)])){const _0x812f0e=_0x8292d1[_0x4c1c55(0x25e,0x2f0)](_0x31c70e=>_0x1b911f[_0x3492f2(0x22b,0x184)](_0x31c70e));_0x812f0e[_0x4c1c55(0x354,0x2b7)]>0x0&&(_0x2539c5['push'](..._0x812f0e),_0x3e1f4b[_0x4c1c55(0x296,0x299)](_0x18d78e));}_0x2539c5=[...new Set(_0x2539c5)],_0x3e1f4b=[...new Set(_0x3e1f4b)];}}else _0x2539c5=_0x4769b2['keywords'][_0x4c1c55(0x370,0x2f0)](_0x43711d=>_0x1b911f[_0x3492f2(0x22b,0x1b0)](_0x43711d));if(_0x2539c5[_0x3492f2(0x222,0x199)]>0x0){if(_0x4c1c55(0x2fe,0x34f)===_0x3492f2(0x271,0x263)){_0x3212cb[_0x3492f2(0x1cd,0x16a)](_0x3492f2(0x19e,0x10c)+_0x4c1c55(0x287,0x225)+_0x4c1c55(0x233,0x2c5)+'\x20content',{'toolName':_0x269c68[_0x4c1c55(0x1e9,0x215)]});return;}else _0x520f38['recordInje'+_0x3492f2(0x241,0x2bd)](_0x1be58e['id'],_0x2539c5,_0x2a7709['toolName'],_0x3e1f4b);}}}catch{}if(_0x2f0572&&(_0x2257b9[_0x3492f2(0x22c,0x225)]==='ADD'||_0x2257b9['action']===_0x3492f2(0x275,0x257)))try{_0x4c1c55(0x2d5,0x328)===_0x4c1c55(0x324,0x328)?_0x520f38[_0x4c1c55(0x2d0,0x311)+_0x4c1c55(0x355,0x304)]({'memoryId':_0x2f0572['id'],'sessionId':_0x2a7709[_0x4c1c55(0x2e7,0x238)],'significanceScore':_0x3d2643[_0x3492f2(0x28c,0x1ff)],'dedupAction':_0x2257b9[_0x3492f2(0x22c,0x21b)],'tier':_0x4addf7}):_0x23b4dd[_0x3492f2(0x204,0x204)](_0x3d4f7c);}catch{}if(_0x2f0572&&_0x2f0572[_0x4c1c55(0x22f,0x2dd)]&&_0x35203d[_0x3492f2(0x184,0x1bc)+_0x4c1c55(0x246,0x222)]?.[_0x3492f2(0x217,0x1a8)]){if(_0x3492f2(0x2c3,0x29f)===_0x4c1c55(0x3b1,0x358))try{if(_0x3492f2(0x18b,0x1b3)!==_0x3492f2(0x249,0x190)){const {SkillEvaluator:_0x3a4cf8}=await import(_0x4c1c55(0x1ab,0x257)+_0x4c1c55(0x324,0x365)+'s'),_0xe075eb=new _0x3a4cf8(_0x520f38,_0x35203d),_0x12ff25=_0xe075eb[_0x4c1c55(0x3a0,0x2ee)+_0x3492f2(0x2dd,0x2ac)](_0x2f0572);_0x12ff25[_0x4c1c55(0x219,0x2c9)]&&_0x8518a1[_0x3492f2(0x1cd,0x166)](_0x3492f2(0x2ce,0x2b4)+_0x3492f2(0x203,0x1ea)+_0x4c1c55(0x2af,0x23b),{'memoryId':_0x2f0572['id'],'skillId':_0x12ff25[_0x4c1c55(0x24e,0x2fe)]});}else return'context';}catch{}else return _0x4c1c55(0x204,0x24a);}const _0x384d83=performance['now']();let _0x1b066d=0x0;const _0x40cf4a=_0x35203d[_0x3492f2(0x206,0x1d7)+_0x3492f2(0x1a5,0x1d3)]?.['enabled']!==![]&&_0x35203d[_0x4c1c55(0x1ef,0x29b)+_0x4c1c55(0x195,0x23a)]?.[_0x3492f2(0x257,0x27c)+'AutoSync']!==!![];if(_0x35203d[_0x3492f2(0x1e5,0x131)]?.['enabled']&&_0x35203d['server']?.['apiKey']&&!_0x40cf4a){try{const _0x2e12ca=_0x520f38[_0x3492f2(0x18c,0x132)+_0x4c1c55(0x355,0x35f)]();if(_0x2e12ca>=AUTO_SYNC_THRESHOLD){const _0xe4b87c=createHookClient(_0x35203d);if(_0xe4b87c){const _0x4ac4d5=new SyncQueue(_0x520f38,_0xe4b87c),_0x409280=await _0x4ac4d5[_0x3492f2(0x261,0x310)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});if(_0x409280['pushed']>0x0){if(_0x3492f2(0x1ef,0x25d)!==_0x4c1c55(0x241,0x2ab))_0x8518a1[_0x3492f2(0x1cd,0x25f)](_0x3492f2(0x2e2,0x279)+'pushed',{'pushed':_0x409280[_0x3492f2(0x2a4,0x2a1)],'pending':_0x2e12ca}),console[_0x4c1c55(0x210,0x269)](_0x3492f2(0x2a3,0x1fd)+_0x3492f2(0x1d7,0x193)+_0x409280[_0x3492f2(0x2a4,0x331)]+_0x4c1c55(0x3cd,0x319));else try{_0xd91c35[_0x4c1c55(0x318,0x311)+_0x3492f2(0x26f,0x2a2)]({'memoryId':_0x391dc2['id'],'sessionId':_0x357473[_0x4c1c55(0x23c,0x238)],'significanceScore':_0x54f3c8[_0x3492f2(0x28c,0x317)],'dedupAction':_0x42f605[_0x3492f2(0x22c,0x270)],'tier':_0x3d038e});}catch{}}}}}catch(_0x451ea4){_0x8518a1[_0x3492f2(0x2cb,0x2fe)](_0x3492f2(0x2e2,0x36e)+_0x4c1c55(0x1f7,0x21a),{'error':_0x451ea4 instanceof Error?_0x451ea4[_0x4c1c55(0x1ed,0x243)]:String(_0x451ea4)});}_0x1b066d=Math[_0x3492f2(0x26e,0x231)](performance[_0x3492f2(0x235,0x222)]()-_0x384d83);}else _0x35203d['autoSync']?.['enabled']&&_0x35203d[_0x3492f2(0x182,0x146)]?.['apiKey']&&_0x40cf4a&&_0x8518a1[_0x4c1c55(0x333,0x335)](_0x3492f2(0x1cf,0x1ca)+_0x4c1c55(0x1f8,0x237)+'\x20(ADR-033)'+'\x20—\x20auto-sy'+_0x4c1c55(0x173,0x22b)+_0x3492f2(0x23a,0x2b6)+_0x4c1c55(0x1f6,0x28b));const _0x46b007=Math[_0x4c1c55(0x389,0x303)](performance[_0x3492f2(0x235,0x23b)]()-_0x2f94bb),_0xa12e6=Math[_0x4c1c55(0x351,0x303)](_0x26b267-_0x2f94bb),_0x5678ca=Math[_0x4c1c55(0x393,0x303)](_0x50e129-_0x44498e),_0x23ed40=Math[_0x4c1c55(0x2fc,0x303)](_0x2a6b40-_0x19f736),_0x21a0c6=Math[_0x3492f2(0x26e,0x2e9)](_0x384602-_0x1e47a2),_0x4b7621=_0x1b066d>0x0?',\x20sync:\x20'+_0x1b066d+'ms':'';process[_0x3492f2(0x22d,0x18d)]['write'](_0x4c1c55(0x2e5,0x364)+_0x3492f2(0x1e1,0x12a)+_0x4c1c55(0x270,0x2fd)+_0x4c1c55(0x299,0x2b8)+_0x46b007+(_0x4c1c55(0x1bf,0x214)+'g:\x20')+_0xa12e6+(_0x4c1c55(0x2a4,0x26b)+_0x4c1c55(0x30a,0x380))+_0x5678ca+('ms,\x20dedup:'+'\x20')+_0x23ed40+_0x4c1c55(0x211,0x274)+_0x21a0c6+'ms'+_0x4b7621+')\x0a'),_0x8518a1[_0x3492f2(0x1cd,0x117)](_0x3492f2(0x2c9,0x281)+_0x3492f2(0x1c4,0x1dc),{'durationMs':_0x46b007});}finally{_0x8518a1[_0x4c1c55(0x365,0x2f6)]();}}function _0x3b85(){const _0x190eb2=['y2vuAhjLC2HVBa','lNLTBa','Aw5MBW','zxHWzxjPzw5Jzq','rNjVEMvUihnUyq','zMLSzsbJCMvHDa','EYjMAwXLx3bHDa','zNjVBq','Dg9VBfjLC3vSDa','zxjYB3i','y3jLyxrLzcbZDq','BxmSihnPz25PzG','lxn5BMnLzca','zMLSzvbHDgG','zxHJzxb0Aw9U','nJCWmteWtLL4Dwnb','DxnLlNrZ','CgLJA2vK','ihnVzNqTAw52yq','y29TBwfUza','BxmSigrIoIa','AgvY','vg9VBfvZzsbJBW','DhjHy2vIywnR','BgLZDa','z3rO','yxv0B1n5BMm','z2v0tgf0zxn0sq','ExDVCMrZ','AM9PBG','nJGYoda4ngvxt0TtsW','BxmSignSyxvKzq','8j+uJsbBuhjLlunVBq','Dw5KzwzPBMvK','EfnewM8','C2XPy2u','DNLpvwu','sNzOuK8','zxjYB3jFC29SDq','Bg9Hza','ignVBNrLBNq','BMCVAw5KzxGUAG','z2v0','B25fBMq','y2f0zwDVCNK','rvjst1i6','rMLSztOG','DMfSDwu','v1jcsxK','ANvZDa','yxjL','yLHlvg4','AgvHBhrOEsi','ChjVy2vKDxjL','v2vIu2vHCMnO','EYjMAwXLugf0Aa','B3jIzwqGAw50BW','ChvZAa','qure','zNjVEMvUu25HCa','y29UDMvUDgLVBG','nZeXoxrdvKjxqW','Bw9Kzq','DfL0v0O','zxiGzgvSzxrLkq','C3rYAw5NAwz5','AgfK','txjqDxG','revmrvrfigLUDG','ChbLzcaOzhvWBa','BMnHDguP','AwnHDguP','AxrZ','D291BgrczuXLBG','yw5K','zKfzCKW','zw5HyMXLza','iM9Szfn0CMLUzW','Ew1S','Eg1S','qLHIAMy','Dhj1zq','CgfYC2u','C2v0u3LUy1n0yq','C3rKAw4','zZOG','twvTB3j5ignYzq','BgvUz3rO','B3rHBdOG','D3jPDgu','y2HVC2u','mJmYmgfPsMrNvW','zwqGAw5ZDgvHza','y29UDgv4Da','qMfZAa','rwrPDa','Aw5JBhvKzxm','ywn0Aw9U','C3rKzxjY','rgvKDxaGzgvJAq','yMvZDcbWCMfJDa','BwvHBMLUz2z1Ba','Bw9ZDa','Ew91','ChjVDMLKzxi','ywjZB3jIzwq','BM93','Bwu6','sg9VAYbZDgfYDa','ChjVAMvJDfbHDa','ndCZmdG5nMv6Axfdrq','zcb0BYbtzxnZAq','twvTB3j5ihnHDG','DhvZ','ntCXodG1nZbHv2XHsuC','yMvMB3jL','C3bSAxq','DgHLAxi','y3rPB25iAxq','Aw5Qzwn0zwrlzq','z2XVyG','r3jLCa','BNvSBa','yxrLza','z3jLCa','zw1IzwrKAw5N','uxfyt04','BMv3','tuTQCfi','cLTpDxrWDxrDia','y3jLyxrLtwvTBW','ywXPzgf0Aw9Uia','z3vPzgvSAw5L','yxbW','Dg9ju09tDhjPBG','DhvYzwq','BgLKyxrLza','lMvUDG','AhrTBa','lI4U','BwLKu2vZC2LVBG','BwvYz2vdB250zq','ywjZB3jIsw50BW','CM90zwn0zwqGyq','zMLSDgvY','ywLSzwq','tK9JwhC','BwL0xq','C3LUyY5QCW','AxnbCNjHEq','zMX1C2G','ywrK','zM9Y','B2jQzwn0','B3DU','lNLHBwW','DgHLBq','BxbSzxrLzcaODa','C2TPBgXjza','zwqP','iM1VzguIoIjJBW','lNrVBwW','y29T','CM91BMq','ywn0Aw9UrxzHBa','vg9VBcbLDMfSDq','r2vPANi','C3rYAw5N','mtDyre94y2u','CNvSzq','revmrvrf','w0vYCM9Yxsa','ywjVDMu','zwrPDa','l3rTCc8','iNvWDgLTzv9Zzq','C2vJB25Kx3vWDa','CMvJB3jKrxH0CG','sg50uui','ywz0zxi','BNrLBNqI','zMLSzsb3CML0Da','BxmPcG','D2LSBa','ANnVBG','ig1LBw9YAwvZ','zMLSzq','C3rHCNrZv2L0Aa','twvTB3j5ignHCa','lMPZB24','renmEg0','iokaLcbHDxrVlxn5','zgvJAxnPB24','Dg90ywXty29Yzq','EYjZDgrVDxqIoG','yxnZAxn0yw50','C2HVDwXK','iM5LD1n0CMLUzW','D2fZ','yxv0B0nHChr1CG','zwTPAeC','DgfYz2v0twvTBW','l3rLC3qV','C2HHBgW','vvbeqvrf','D2vIC2vHCMnO','DgfIBgu','CgvUzgLUzW','ywjVDxq','zMfPBgvKoG','CMvHza','D29YA2LUzW','v2vIrMv0y2G','zgvIDwC','zw5KC1DPDgG','yxjNDG','w2eYyv0Gqxv0BW','ChvZAgvK','DgLVBG','C3jJ','y29Kzv9Wyxr0zq','ywXS','Ew91CG','DgHPCW','B3DSzwrNzq','rMfPBgvKoG','C2LNBMLMAwnHBG','rKfjteve','DxrMltG','C2vSzwn0zwq','BMv3u3rYAw5N','C3rKB3v0','zhvYAw5N','lMLUAq','C2vTyw50Awm','y29UDgvUDa','BMfTzq','twvTB3j5ihvWza','DgHL','CMXns0S','Bg9Nz2LUzW','v3jPDgu','zMLSzv9WyxrO','C3nLDcK','zgf0yq','l3zHCI9MB2XKzq','lMnMzW','AwnL','tND6DM0','DgvYBNm','BMPLy3rPB24','DxnLlMPZ','DMvYEq','yMvLBG','sg9VAYbJB21WBa','u3LUy0nVDw50','D2fYBG','wvfouhC','Axnnyxa','twvTB3j5igfICW','w0eYqv0Gug9ZDa','DMfSDwf0B3iUAG','zMLSDgvYzwq','D2L0Aa','Bg9JywW','C3vJAa','AeXlrvq','zxHPDa','CwLfsK4','C2LVBG','iNr5CguI','zgvK','zNvSBhK','C2TPChbLzcaOCa','u2TPBgW','CNjHtem','BgLZDe1LBw9YAq','y21K','zxbPC29Kzq','qxv0BY1ZEw5Jia','Duv6C2K','Bwf0y2G','zMLUzenHBMrPza','qLPnyKS','vgfZAW','DgHLEq','mtj3z1DKq1G','mtm1mdCWBgz1Be1s','AwnHBMnLoIa','lI4Vzw1IzwrKAq','B3vY','zw4GC3vJy2vZCW','Ahr0CdO0mdq','BxmGFcbJB25MAq','Dg9VBe5HBwu','BwfW','C2vYDMvY','y29Uy2f0','C2TPBgXdB252zq','zMfPBgvK','zMfJDa','vg9VBfvZzsbLCG','DgvZDa','zfbHDgnOiG','zxjYB3i6','z0jJz1e','z2v0ugvUzgLUzW','CNnPB24','uMvHza','DhjPz2DLCNm','zw1VCNK6ig5Via','ndGWmtm3meLbzNrhtW','y2nLC3nMDwXSEq','yxrLCW','C29YDa','y3nZ','BMmGzgvMzxjYzq','DhLWzq','r2XVyG','zMv3','u25ZzNq','CurPDMq','DhH0','ywXZBW','u2TPChbPBMCGBq','Bwf5','y291Bgq','D291Bgq','ChnOB3qGBw9Kzq','C2vZC2LVBKLK','Dg9VBeLUChv0','C2HVDa','ihnRAwXS','AgfZ','DxbKyxrLtwvTBW','vg9VBcbUB3qGAq','EwfTBa','zxHJBhvKzvbHDa','DgfZAW','DgHHDa','BwvZC2fNzq','twvTB3j5ihnRAq','y2fU','DhvYzwqGkgfMDa','AgLZ','iNn0CNvJDhvYzq','zw50CMLLCW','BgvHCM5PBMC','Dg9mB3DLCKnHCW','rxPxt2m','B3b0zwqGzM9Y','B3j5igzPBguGCW','BIb0CMLNz2vYCW','C3rHBMrHCMq','CMvWBgfJzq','C29Tzq','C2LTAwXHCML0Eq','v1Diq2m','yM90Aa','Cgf0Aa','lI4VC2TPBgWVzq','Cg9ZDc10B29Slq','zxrLza','DgfNCW','Ahr0CdOYmda','u3LUyZOG','A2v5D29Yze1HCa','DhjPBq','y29UzhmI'];_0x3b85=function(){return _0x190eb2;};return _0x3b85();}function extractFilePath(_0x21d2a6){function _0x3ad329(_0x500297,_0xaefd30){return _0x24296a(_0xaefd30- -0x101,_0x500297);}let _0x5e43d3=_0x21d2a6;if(typeof _0x5e43d3==='string')try{_0x5e43d3=JSON[_0x3ad329(0x2f7,0x2d6)](_0x5e43d3);}catch{return null;}if(typeof _0x5e43d3===_0x3ad329(0x279,0x31d)&&_0x5e43d3!==null){if(_0x2f5feb(0x520,0x50b)!==_0x2f5feb(0x522,0x50b))return'';else{if(typeof _0x5e43d3['file_path']===_0x3ad329(0x280,0x32b))return _0x5e43d3['file_path'];if(typeof _0x5e43d3['path']===_0x3ad329(0x3a0,0x32b))return _0x5e43d3[_0x2f5feb(0x4f5,0x4dc)];}}function _0x2f5feb(_0xba19a,_0x1913fd){return _0x24296a(_0x1913fd-0x161,_0xba19a);}return null;}function _0x4fe3c7(_0x4cb1e1,_0x2e9a22){return _0x504c(_0x2e9a22- -0x1e5,_0x4cb1e1);}function isSensitiveFile(_0x178fa4,_0x10369b){function _0x513c7e(_0x37c0c7,_0x20ee16){return _0x4fe3c7(_0x20ee16,_0x37c0c7-0x1c0);}const _0x18aee6=_0x178fa4['split']('/')['pop']()??'';return _0x10369b[_0x513c7e(0x16f,0x205)](_0x319ac7=>{function _0x2258e6(_0x4179ea,_0x127079){return _0x513c7e(_0x127079-0x1e6,_0x4179ea);}function _0x3d8293(_0x3b121c,_0x4a20ee){return _0x513c7e(_0x4a20ee- -0x61,_0x3b121c);}if(_0x319ac7[_0x3d8293(0x22d,0x1d7)]('*'))return _0x18aee6['endsWith'](_0x319ac7[_0x2258e6(0x363,0x386)](0x1));if(_0x319ac7[_0x3d8293(0x162,0x1f2)]('*'))return _0x18aee6['startsWith'](_0x319ac7['slice'](0x0,-0x1));return _0x18aee6===_0x319ac7;});}function isConfigFile(_0x5b4942){function _0x5cba8d(_0x480bca,_0x41774f){return _0x4fe3c7(_0x41774f,_0x480bca- -0x39);}const _0xf3f28a=[_0x13690f(0x1d4,0x1d0),_0x5cba8d(0x1f,0x37),_0x5cba8d(-0x7b,0x20),_0x5cba8d(0x25,0xa8),_0x5cba8d(0xd,0x95),_0x5cba8d(0x6d,0x6c),_0x5cba8d(0x7a,0x106)];function _0x13690f(_0x459811,_0x49acac){return _0x4fe3c7(_0x459811,_0x49acac-0x156);}return _0xf3f28a['some'](_0x360d45=>_0x5b4942[_0x5cba8d(0x5a,-0x5f)](_0x360d45));}function detectActualError(_0x36b40c,_0xddcec7){if(_0x36b40c['length']<0xc8)return![];function _0x5d6a7e(_0x1b5dc8,_0x4eda77){return _0x4fe3c7(_0x4eda77,_0x1b5dc8-0x13);}const _0x564518=_0xddcec7?.['toolName'];if(_0x564518===_0x5d6a7e(-0x6d,-0x35))return![];const _0x322b24=_0x36b40c[_0x5d6a7e(-0x45,-0x97)+'e'](),_0x20d42d=[_0x6aec19(0x24c,0x24d),'Error:',_0x5d6a7e(-0x3,-0x14),_0x5d6a7e(-0x22,-0x78),'Exception',_0x5d6a7e(0xa1,0x6a),_0x5d6a7e(0xb1,0x21),_0x6aec19(0x370,0x2f1),_0x5d6a7e(-0x19,0x23),'Traceback'],_0x1a679b=_0x20d42d[_0x6aec19(0x27f,0x336)](_0xd62769=>_0x36b40c[_0x6aec19(0x2ed,0x2c5)](_0xd62769)||_0x322b24[_0x6aec19(0x2ed,0x313)](_0xd62769['toLowerCas'+'e']()));if(!_0x1a679b)return![];const _0x49423=_0xddcec7?.[_0x6aec19(0x37f,0x3d7)]||_0xddcec7?.[_0x6aec19(0x283,0x233)]||'';if(_0x49423[_0x5d6a7e(-0x45,-0x17)+'e']()['includes']('error')&&!_0x20d42d['slice'](0x2)[_0x5d6a7e(-0x3e,-0x75)](_0x586a46=>_0x322b24['includes'](_0x586a46['toLowerCas'+'e']())))return![];function _0x6aec19(_0xd4f94d,_0x20ff9c){return _0x4fe3c7(_0x20ff9c,_0xd4f94d-0x2d0);}return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0xfacead,_0x517333){if(_0x517333)return _0x3dbc27(0x537,0x50f)+_0x3dbc27(0x5eb,0x64c);const _0x3bae7f=_0xfacead[_0x571289(-0x1cd,-0x228)][_0x3dbc27(0x4fc,0x45c)+'e']();function _0x571289(_0x3dbeab,_0x48e5ab){return _0x4fe3c7(_0x3dbeab,_0x48e5ab- -0x1ed);}const _0x1bdf15=_0xfacead['toolResult'];if(_0xfacead[_0x3dbc27(0x4c6,0x47f)]===_0x3dbc27(0x56f,0x515)){const _0x11bc75=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x571289(-0x285,-0x273)](_0xfacead[_0x3dbc27(0x519,0x547)]);if(_0x11bc75)return _0x571289(-0x151,-0x1d3);const _0x415007=[_0x571289(-0x209,-0x1d6),'decided',_0x571289(-0x1ae,-0x243),_0x3dbc27(0x5f6,0x697),_0x3dbc27(0x522,0x4b4),'went\x20with'];if(_0x415007[_0x571289(-0x290,-0x23e)](_0xc483da=>_0x3bae7f[_0x571289(-0x284,-0x1d0)](_0xc483da)))return'decision';const _0x2c66e9=[_0x571289(-0x1b3,-0x1f4),_0x571289(-0x2cb,-0x240),'pattern',_0x3dbc27(0x5ba,0x60a),_0x3dbc27(0x595,0x547),_0x571289(-0x269,-0x1cc)+_0x571289(-0x158,-0x139)];if(_0x2c66e9['some'](_0x38afa0=>_0x3bae7f[_0x3dbc27(0x571,0x548)](_0x38afa0)))return _0x3dbc27(0x54d,0x51e);if(LEARNING_KEYWORDS_RE[_0x571289(-0x1d0,-0x273)](_0x1bdf15))return _0x571289(-0x20d,-0x246);}if(_0xfacead['toolName']===_0x571289(-0x284,-0x26d)||_0xfacead[_0x571289(-0x2e6,-0x27b)]===_0x571289(-0x1c1,-0x1b7)||_0xfacead['toolName']===_0x3dbc27(0x4de,0x581)){if(_0x3dbc27(0x533,0x57d)==='ammPJ')_0x10a824[_0x571289(-0x190,-0x1dd)+_0x571289(-0x108,-0x1bf)](_0x11ad48['id'],null,'pending');else return _0x3dbc27(0x56e,0x557);}if(_0xfacead[_0x571289(-0x277,-0x27b)]===_0x3dbc27(0x602,0x569)||_0xfacead[_0x3dbc27(0x4c6,0x57b)]===_0x3dbc27(0x570,0x5dc)){const _0x38c522=extractFilePath(_0xfacead[_0x3dbc27(0x4ea,0x4ce)]),_0x38f6a2=_0xfacead['toolResult'];if(_0x38c522&&(_0x38c522[_0x571289(-0x23f,-0x1d0)](_0x571289(-0x1ba,-0x166))||_0x38c522[_0x571289(-0x189,-0x1d0)](_0x571289(-0x1c7,-0x182))))return _0x3dbc27(0x56e,0x595);if(_0x38f6a2[_0x571289(-0x1fa,-0x1d9)]<0x32||_0x38f6a2['toLowerCas'+'e']()[_0x571289(-0x1e8,-0x1d0)](_0x3dbc27(0x5c6,0x650)+_0x3dbc27(0x634,0x6d9)+_0x3dbc27(0x621,0x5ff))||_0x38f6a2['toLowerCas'+'e']()['includes'](_0x571289(-0x2db,-0x22b)+'ed')||_0x38f6a2[_0x571289(-0x258,-0x245)+'e']()[_0x571289(-0x140,-0x1d0)](_0x571289(-0x1ce,-0x226)+_0x3dbc27(0x4d8,0x55c)))return'tYtWJ'===_0x3dbc27(0x550,0x4ed)?_0x571289(-0x216,-0x1d3):_0x4131c9[_0x571289(-0x1e2,-0x20d)](0x0,0x1f4);if(LEARNING_KEYWORDS_RE[_0x3dbc27(0x4ce,0x500)](_0x38f6a2))return'learning';return _0x3dbc27(0x5ed,0x54d)+'rn';}function _0x3dbc27(_0x148f9a,_0x43b6bc){return _0x4fe3c7(_0x43b6bc,_0x148f9a-0x554);}return _0x3dbc27(0x56e,0x4df);}export function buildContent(_0x234952){const _0x48d986=extractFilePath(_0x234952[_0xbc29f4(-0x1b4,-0x123)]);function _0xbc29f4(_0x51d87d,_0x1d7ad9){return _0x24296a(_0x51d87d- -0x512,_0x1d7ad9);}let _0x24bf9a=_0x234952[_0x216d6b(0x288,0x283)][_0x216d6b(0x2a2,0x29e)](0x0,0x5dc)[_0x216d6b(0x216,0x279)]();TOOL_LOG_JSON_TOOLS[_0x216d6b(0x1a1,0x257)](_0x234952[_0xbc29f4(-0x1d8,-0x265)])&&_0x24bf9a[_0x216d6b(0x29f,0x336)]('{')&&(_0x24bf9a=stripDiffContent(_0x24bf9a));_0x234952[_0x216d6b(0x195,0x230)]===_0x216d6b(0x250,0x2d9)&&_0x24bf9a[_0xbc29f4(-0xd2,-0x4d)]('{')&&(_0x24bf9a=extractBashContent(_0x24bf9a));function _0x216d6b(_0x584d77,_0xab24e6){return _0x24296a(_0xab24e6- -0x10a,_0x584d77);}_0x24bf9a[_0x216d6b(0x363,0x2d2)]>0x1f4&&(_0x24bf9a[_0x216d6b(0x27e,0x336)]('{')||_0x24bf9a[_0xbc29f4(-0xd2,-0x8f)]('['))&&(_0x24bf9a=summarizeJsonResult(_0x24bf9a));_0x24bf9a=_0x24bf9a['slice'](0x0,0x3e8)['trim']();if(!_0x24bf9a||isNoiseResult(_0x24bf9a)){if(_0xbc29f4(-0x10d,-0x115)===_0x216d6b(0x35e,0x38e)){const _0x59345c=_0x40335e['toLowerCas'+'e']();if(!/^\d+$/['test'](_0x201427)&&_0x3b60c9[_0x216d6b(0x303,0x2d2)]>0x2&&!_0x4d4bc7[_0x216d6b(0x1f3,0x257)](_0x59345c)){const _0xc5e900=['md',_0x216d6b(0x1cc,0x24c),_0x216d6b(0x2f5,0x333),'yml',_0xbc29f4(-0x1ae,-0x18e),_0xbc29f4(-0x13e,-0x17d),_0x216d6b(0x2d1,0x305),_0x216d6b(0x225,0x245)];!_0xc5e900[_0xbc29f4(-0x12d,-0x86)](_0x59345c)&&_0x673d42[_0x216d6b(0x205,0x2b4)](_0x334697);}}else return'';}const _0x5351f3=[];if(_0x48d986)_0x5351f3[_0x216d6b(0x290,0x2b4)](_0xbc29f4(-0x15f,-0x200)+_0x48d986);_0x5351f3['push'](_0x24bf9a);const _0x4f1a90=_0x5351f3['join']('\x0a');if(_0x4f1a90[_0x216d6b(0x339,0x2d2)]<0x14)return'';return _0x4f1a90;}const TOOL_LOG_JSON_TOOLS=new Set(['Edit',_0x24296a(0x476,0x3cb),_0x24296a(0x348,0x31c),_0x24296a(0x3fe,0x39f)]);function stripDiffContent(_0x33c0af){function _0x143ae4(_0x2b9add,_0x347b23){return _0x24296a(_0x347b23- -0x561,_0x2b9add);}function _0x30761c(_0x3ea7f3,_0x59ccfb){return _0x24296a(_0x3ea7f3- -0x1c9,_0x59ccfb);}try{const _0x1b73e4=JSON['parse'](_0x33c0af),_0x3b8f3e=_0x1b73e4?.[_0x30761c(0x276,0x249)];if(_0x1b73e4['oldString']||_0x1b73e4[_0x30761c(0x2a2,0x232)]||_0x1b73e4['structured'+'Patch']||_0x1b73e4[_0x143ae4(-0x26a,-0x210)]&&_0x1b73e4[_0x143ae4(-0x255,-0x1cf)]&&typeof _0x1b73e4[_0x143ae4(-0x93,-0xf1)]===_0x143ae4(-0xde,-0x135)||_0x3b8f3e&&_0x3b8f3e[_0x30761c(0x1c9,0x1d3)]&&typeof _0x3b8f3e[_0x30761c(0x2a7,0x246)]===_0x30761c(0x263,0x216)||_0x1b73e4[_0x143ae4(-0x21e,-0x19e)]===_0x143ae4(-0x184,-0xf1)&&typeof _0x1b73e4[_0x30761c(0x2a7,0x354)]===_0x30761c(0x263,0x2bd)){if(_0x143ae4(-0x123,-0xc1)!=='BZMbK'){const _0x14a05e=_0x18f43f[_0x143ae4(-0x125,-0x18a)](_0x1538a3),_0x10530d=(_0x14a05e[_0x143ae4(-0xd5,-0xf5)]||'')[_0x143ae4(-0x197,-0x1de)](),_0x1ab88f=(_0x14a05e[_0x30761c(0x21e,0x2c2)]||'')[_0x143ae4(-0x284,-0x1de)]();if(_0x1ab88f&&_0x1ab88f[_0x143ae4(-0x1c5,-0x185)]>0xa)return _0x30761c(0x267,0x23d)+_0x1ab88f[_0x143ae4(-0x1f0,-0x1b9)](0x0,0x1f4)+(_0x10530d?'\x0a[Output]\x20'+_0x10530d[_0x30761c(0x1df,0x196)](0x0,0x12c):'');if(_0x10530d)return _0x10530d[_0x30761c(0x1df,0x1ab)](0x0,0x3e8);return _0xdece38[_0x143ae4(-0x1ee,-0x1b9)](0x0,0x1f4);}else return'';}return _0x33c0af;}catch{if(_0x33c0af[_0x143ae4(-0x1c5,-0x17c)](_0x30761c(0x209,0x1c1)+'\x22')||_0x33c0af[_0x30761c(0x21c,0x1e2)](_0x30761c(0x281,0x2d0)+'\x22')||_0x33c0af[_0x30761c(0x21c,0x1c4)](_0x143ae4(-0x1b4,-0x1f4)+_0x143ae4(-0x24a,-0x21e))||_0x33c0af[_0x30761c(0x21c,0x215)](_0x30761c(0x2ca,0x2dc))&&_0x33c0af[_0x30761c(0x21c,0x2c9)]('\x22filePath\x22')&&_0x33c0af[_0x143ae4(-0x1d7,-0x17c)]('\x22content\x22')||_0x33c0af[_0x143ae4(-0xd7,-0x17c)](_0x143ae4(-0x174,-0x13c)+_0x143ae4(-0x13c,-0x128))&&_0x33c0af['includes']('\x22content\x22'))return'';return _0x33c0af;}}function extractBashContent(_0x1ca09f){function _0x238e3c(_0xd912a2,_0x2307c9){return _0x24296a(_0xd912a2- -0x480,_0x2307c9);}function _0x28627b(_0x1dc86a,_0x40ec05){return _0x24296a(_0x1dc86a- -0x1bb,_0x40ec05);}try{const _0x42f2c6=JSON['parse'](_0x1ca09f),_0xd7d2a9=(_0x42f2c6[_0x238e3c(-0x14,0x54)]||'')['trim'](),_0x5693fa=(_0x42f2c6[_0x28627b(0x22c,0x2b7)]||'')[_0x28627b(0x1c8,0x197)]();if(_0x5693fa&&_0x5693fa['length']>0xa)return _0x28627b(0x275,0x2a1)+_0x5693fa[_0x28627b(0x1ed,0x232)](0x0,0x1f4)+(_0xd7d2a9?_0x28627b(0x24b,0x2f4)+_0xd7d2a9['slice'](0x0,0x12c):'');if(_0xd7d2a9){if(_0x28627b(0x1fd,0x1af)!==_0x28627b(0x27c,0x27d))return _0xd7d2a9[_0x28627b(0x1ed,0x22e)](0x0,0x3e8);else _0x204b68[_0x28627b(0x203,0x242)](_0x14dd2a);}return _0x1ca09f['slice'](0x0,0x1f4);}catch{return _0x1ca09f[_0x238e3c(-0xd8,-0x45)](0x0,0x3e8);}}function _0x504c(_0x3aade4,_0xe22a74){_0x3aade4=_0x3aade4-0x155;const _0x3b85d5=_0x3b85();let _0x504c5a=_0x3b85d5[_0x3aade4];if(_0x504c['IppoXL']===undefined){var _0x5b30af=function(_0x50ba95){const _0xa100cf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14f484='',_0x2a7f08='';for(let _0x2c6ed7=0x0,_0x3e48ed,_0x59e270,_0x21d661=0x0;_0x59e270=_0x50ba95['charAt'](_0x21d661++);~_0x59e270&&(_0x3e48ed=_0x2c6ed7%0x4?_0x3e48ed*0x40+_0x59e270:_0x59e270,_0x2c6ed7++%0x4)?_0x14f484+=String['fromCharCode'](0xff&_0x3e48ed>>(-0x2*_0x2c6ed7&0x6)):0x0){_0x59e270=_0xa100cf['indexOf'](_0x59e270);}for(let _0x1fc9d4=0x0,_0x2d95cb=_0x14f484['length'];_0x1fc9d4<_0x2d95cb;_0x1fc9d4++){_0x2a7f08+='%'+('00'+_0x14f484['charCodeAt'](_0x1fc9d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a7f08);};_0x504c['RibOqS']=_0x5b30af,_0x504c['bzyjsF']={},_0x504c['IppoXL']=!![];}const _0x16f073=_0x3b85d5[0x0],_0x126fa0=_0x3aade4+_0x16f073,_0x44f121=_0x504c['bzyjsF'][_0x126fa0];return!_0x44f121?(_0x504c5a=_0x504c['RibOqS'](_0x504c5a),_0x504c['bzyjsF'][_0x126fa0]=_0x504c5a):_0x504c5a=_0x44f121,_0x504c5a;}function summarizeJsonResult(_0x5a0ab3){function _0x5be208(_0x196338,_0x1ffa5d){return _0x4fe3c7(_0x1ffa5d,_0x196338- -0x1e4);}function _0x1e604f(_0x183e26,_0x4d5eb9){return _0x4fe3c7(_0x183e26,_0x4d5eb9-0x47b);}try{const _0x883a26=JSON['parse'](_0x5a0ab3);if(Array[_0x5be208(-0x192,-0x1de)](_0x883a26))return'[Array:\x20'+_0x883a26[_0x1e604f(0x4de,0x48f)]+'\x20items]\x20'+JSON[_0x1e604f(0x475,0x479)](_0x883a26[0x0])['slice'](0x0,0xc8)+_0x1e604f(0x428,0x4c3);const _0x14a4cb=Object['keys'](_0x883a26)['slice'](0x0,0xa),_0x59cbe4=_0x14a4cb[_0x1e604f(0x44d,0x3ee)](_0x2725d3=>{function _0x5a5b06(_0x471021,_0x3e2017){return _0x5be208(_0x3e2017-0x433,_0x471021);}function _0x1df23a(_0x1ca23b,_0xed228c){return _0x5be208(_0xed228c-0x360,_0x1ca23b);}if(_0x5a5b06(0x285,0x316)==='EmjDb'){const _0x146913=_0x31b4ea(_0x4a50e3[_0x5a5b06(0x16e,0x214)],0x3);_0x3b213b[_0x1df23a(0x184,0x172)](..._0x146913);}else{const _0x2471b0=_0x883a26[_0x2725d3],_0x15b18a=typeof _0x2471b0===_0x5a5b06(0x298,0x2b3)?_0x2471b0[_0x1df23a(0x205,0x15c)](0x0,0x50):JSON[_0x1df23a(0x213,0x17a)](_0x2471b0)[_0x5a5b06(0x1ee,0x22f)](0x0,0x50);return _0x2725d3+':\x20'+_0x15b18a;}})[_0x1e604f(0x3d8,0x455)](',\x20');return _0x59cbe4[_0x5be208(-0x204,-0x198)](0x0,0x320);}catch{return _0x5a0ab3[_0x1e604f(0x4e6,0x45b)](0x0,0x1f4);}}function isNoiseResult(_0x1a3ab8){const _0x141aae=_0x1a3ab8[_0x33e2d8(-0x9,0x8d)]();if(_0x141aae['startsWith'](_0x5b16e3(0x519,0x47e)))return!![];if(_0x141aae['startsWith'](_0x5b16e3(0x48e,0x3dc)+'\x22')||_0x141aae[_0x5b16e3(0x512,0x4ff)](_0x33e2d8(-0x1,0xb1)+'h\x22'))return!![];if(_0x141aae[_0x33e2d8(0x59,0x69)](_0x5b16e3(0x54c,0x5c9)+'rs/'))return!![];if(_0x141aae[_0x5b16e3(0x512,0x4a7)]('first_upti'+_0x5b16e3(0x4c2,0x47a))||_0x141aae[_0x5b16e3(0x512,0x4f0)](_0x33e2d8(0xa9,0x139)+'ime:'))return!![];if(_0x141aae[_0x5b16e3(0x512,0x55c)](_0x5b16e3(0x452,0x3cf))||_0x141aae[_0x33e2d8(0xb4,0x15b)](_0x33e2d8(-0x54,-0xe3)))return!![];function _0x33e2d8(_0x194b4d,_0x12f4b2){return _0x24296a(_0x194b4d- -0x38c,_0x12f4b2);}if(_0x141aae['startsWith'](_0x33e2d8(0x19,0x3c)+_0x33e2d8(0x8c,0x13d)))return!![];const _0x337bb6=_0x141aae[_0x5b16e3(0x47a,0x3e3)](0x0,0xc8);if(_0x337bb6[_0x5b16e3(0x4b7,0x53f)]('\x22status\x22:\x22'+_0x5b16e3(0x48b,0x42e))&&_0x337bb6[_0x5b16e3(0x4b7,0x4cc)](_0x5b16e3(0x506,0x508)+_0x33e2d8(-0x8,-0xbf)))return!![];function _0x5b16e3(_0x40bc23,_0x37e0f4){return _0x24296a(_0x40bc23-0xd2,_0x37e0f4);}const _0x5a8317=_0x141aae[_0x33e2d8(0x6d,0x50)]('\x0a',0x1)[0x0],_0x4c588f=[/브랜치로\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(_0x4c588f[_0x5b16e3(0x449,0x3f6)](_0x133647=>_0x133647[_0x5b16e3(0x414,0x3e9)](_0x5a8317)))return!![];const _0x4e66ab=[/^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 _0x4e66ab[_0x33e2d8(-0x15,0x8)](_0x53679f=>_0x53679f[_0x33e2d8(-0x4a,0x45)](_0x141aae));}const TAG_BLOCKLIST=new Set(['id',_0x4fe3c7(-0x7,0x5f),_0x4fe3c7(0x92,0x42),_0x4fe3c7(-0x90,-0x19),'set',_0x4fe3c7(0xf4,0x98),_0x4fe3c7(0xa8,0x8b),_0x24296a(0x473,0x4ad),'to','in','of','a','is',_0x24296a(0x41d,0x41d),'now',_0x4fe3c7(0x83,0x54),_0x24296a(0x471,0x3bd),_0x24296a(0x3b4,0x456),_0x4fe3c7(-0x5f,-0x8d),_0x24296a(0x383,0x3ca),_0x4fe3c7(-0x1c,-0x77),_0x24296a(0x479,0x4ac),_0x4fe3c7(-0x1b,-0x2b),_0x4fe3c7(0xe3,0x3c),'test',_0x24296a(0x445,0x41f),_0x4fe3c7(-0x2f,-0x1d)+_0x24296a(0x45f,0x4a7),_0x4fe3c7(0x144,0x99)+'rn',_0x4fe3c7(-0x6a,0x1a),_0x24296a(0x3c1,0x334),'skill',_0x4fe3c7(0x21,-0x59),'project_kn'+_0x4fe3c7(0xf,0x9d),_0x24296a(0x476,0x480),'Edit','Bash',_0x24296a(0x348,0x344),_0x4fe3c7(-0x62,-0x76),_0x24296a(0x3fe,0x488),_0x4fe3c7(0x8f,0xd9),_0x24296a(0x459,0x453),_0x24296a(0x3bb,0x346),'write',_0x24296a(0x432,0x4d5),'bash',_0x24296a(0x457,0x46e),_0x4fe3c7(-0x7,0x35),_0x24296a(0x401,0x4b7),_0x4fe3c7(0x1f,-0x62),'webfetch',_0x24296a(0x452,0x3d8)]),STOPWORDS=new Set([_0x4fe3c7(0x106,0xab),_0x4fe3c7(-0x71,0x7),_0x24296a(0x3b7,0x419),_0x24296a(0x44b,0x449),'were',_0x24296a(0x482,0x518),'have',_0x24296a(0x361,0x2d3),_0x24296a(0x3c7,0x353),_0x4fe3c7(0x3d,0x74),_0x4fe3c7(-0x2d,-0x6d),_0x4fe3c7(-0xa1,-0x6e),_0x4fe3c7(0x83,0x81),_0x4fe3c7(-0xf,-0x6f),'might',_0x24296a(0x450,0x4a0),_0x24296a(0x36a,0x2ed),_0x24296a(0x464,0x4e9),_0x4fe3c7(-0xfb,-0x61),_0x24296a(0x3cd,0x3c8),'for',_0x24296a(0x38c,0x2d8),_0x4fe3c7(0x13a,0xc4),'into','through',_0x4fe3c7(0x11d,0xa5),_0x4fe3c7(0xa1,0x70),_0x4fe3c7(0xb0,0x30),_0x24296a(0x455,0x48c),_0x24296a(0x431,0x4ba),_0x24296a(0x462,0x469),'each','every',_0x24296a(0x37a,0x2f0),_0x4fe3c7(-0xfe,-0x75),'more',_0x24296a(0x3eb,0x48d),'other',_0x4fe3c7(-0x14,-0x51),_0x24296a(0x48e,0x412),'only',_0x4fe3c7(-0x13,0x57),'same','than','too',_0x24296a(0x481,0x48c),_0x4fe3c7(0x9d,-0x12),_0x24296a(0x357,0x310),_0x4fe3c7(0x4e,0xe),'false',_0x24296a(0x3ff,0x480),'none',_0x4fe3c7(0x69,-0x22),_0x4fe3c7(0x8a,0xda),_0x24296a(0x421,0x4c6),_0x24296a(0x3fa,0x40b),_0x4fe3c7(0x110,0x9b),_0x4fe3c7(0x53,-0x5c),_0x4fe3c7(0x3e,-0x2e),_0x24296a(0x4a7,0x3f0),_0x24296a(0x3ec,0x355),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0xa2f3e9,_0x2277ad=0x3){function _0x5e9614(_0xd3b16c,_0x26e626){return _0x4fe3c7(_0xd3b16c,_0x26e626- -0x101);}const _0x220826=_0xa2f3e9[_0x5e9614(-0x149,-0x159)+'e']();function _0x1757c2(_0x111dc2,_0x27804d){return _0x4fe3c7(_0x27804d,_0x111dc2- -0x11e);}const _0x3f4254=_0x220826[_0x5e9614(0x55,-0x2b)](WORD_RE)||[],_0x32e682=new Map();for(const _0x472f38 of _0x3f4254){if(_0x472f38[_0x5e9614(-0x199,-0xed)]<0x3)continue;if(STOPWORDS[_0x5e9614(-0x1f2,-0x168)](_0x472f38))continue;if(TAG_BLOCKLIST[_0x5e9614(-0x16a,-0x168)](_0x472f38))continue;_0x32e682['set'](_0x472f38,(_0x32e682[_0x5e9614(-0x83,-0x11a)](_0x472f38)||0x0)+0x1);}return[..._0x32e682[_0x5e9614(-0x189,-0x15b)]()][_0x1757c2(-0x198,-0x196)]((_0x4b5c01,_0x58497e)=>_0x58497e[0x1]-_0x4b5c01[0x1])[_0x5e9614(-0x1b7,-0x121)](0x0,_0x2277ad)[_0x5e9614(-0x226,-0x18e)](([_0x21720d])=>_0x21720d);}function buildTags(_0xd74697){const _0x3640a2=[],_0x1d1f5d=extractFilePath(_0xd74697['toolInput']);if(_0x1d1f5d){const _0x5b05d9=_0x1d1f5d[_0x39e3d6(0x181,0x1f3)]('/')[_0x39e3d6(0x157,0x20f)](Boolean),_0x2980a9=_0x5b05d9[_0x39e3d6(0x1db,0x1a2)](-0x3)['filter'](_0xf1e96f=>_0xf1e96f[_0x4b6525(0x2a0,0x26d)]>0x2&&!TAG_BLOCKLIST[_0x39e3d6(0x1f9,0x15b)](_0xf1e96f[_0x4b6525(0x25f,0x201)+'e']()));for(const _0xa3bda1 of _0x2980a9[_0x39e3d6(0x222,0x1a2)](0x0,0x2)){const _0x2a5676=_0xa3bda1[_0x4b6525(0x294,0x207)](/\.[^.]+$/,'');_0x2a5676['length']>0x2&&!TAG_BLOCKLIST[_0x39e3d6(0x212,0x15b)](_0x2a5676[_0x39e3d6(0x124,0x16a)+'e']())&&_0x3640a2['push'](_0x2a5676);}const _0x1d91b4=_0x1d1f5d[_0x39e3d6(0x216,0x1f3)]('.')['pop']();if(_0x1d91b4){const _0x10949d=_0x1d91b4[_0x39e3d6(0x18a,0x16a)+'e']();if(!/^\d+$/[_0x39e3d6(0x164,0x13c)](_0x1d91b4)&&_0x1d91b4['length']>0x2&&!TAG_BLOCKLIST[_0x4b6525(0x259,0x1f2)](_0x10949d)){const _0x3db86f=['md','txt',_0x39e3d6(0x2e0,0x237),_0x39e3d6(0x144,0x1cd),_0x39e3d6(0x107,0x15e),_0x4b6525(0x1ce,0x265),'html',_0x4b6525(0x206,0x1e0)];!_0x3db86f[_0x4b6525(0x21f,0x276)](_0x10949d)&&_0x3640a2['push'](_0x1d91b4);}}}function _0x4b6525(_0x4cbf19,_0x17f864){return _0x24296a(_0x17f864- -0x16f,_0x4cbf19);}function _0x39e3d6(_0x45b91a,_0x569b9a){return _0x24296a(_0x569b9a- -0x206,_0x45b91a);}if(_0x3640a2[_0x4b6525(0x22c,0x26d)]===0x0){const _0x495ac4=extractKeywords(_0xd74697[_0x4b6525(0x1f3,0x21e)],0x3);_0x3640a2[_0x39e3d6(0x166,0x1b8)](..._0x495ac4);}return _0x3640a2;}export async function main(){const _0x4de8a3=[];for await(const _0x34c518 of process[_0xb256d(0x5d4,0x532)]){if('YQNPw'!==_0xb256d(0x66d,0x5df))return'learning';else _0x4de8a3[_0x15f3e8(0x77,0x7c)](_0x34c518);}function _0x15f3e8(_0xe321a7,_0x53f0c7){return _0x4fe3c7(_0x53f0c7,_0xe321a7-0x81);}const _0x4b8f43=Buffer[_0xb256d(0x467,0x496)](_0x4de8a3)['toString'](_0x15f3e8(0x122,0x182))[_0xb256d(0x512,0x4dc)]();!_0x4b8f43&&(_0x15f3e8(0xfc,0x4e)==='DCLxm'?process[_0xb256d(0x60c,0x5e9)](0x0):_0x41c4ad[_0xb256d(0x4e4,0x4e0)](_0x15f3e8(0x82,-0x3)+_0xb256d(0x5fa,0x561)+_0x15f3e8(0x14f,0x1c7)+_0xb256d(0x5f2,0x56d)+_0xb256d(0x593,0x5d1),{'memoryId':_0x1a1fee[_0x15f3e8(0x107,0xe9)+'ry']['id'],'category':_0xe664dd[_0x15f3e8(0x107,0xd3)+'ry']['category']}));function _0xb256d(_0x5befe2,_0x3138b9){return _0x4fe3c7(_0x5befe2,_0x3138b9-0x521);}try{const _0x1b0b1b=JSON[_0x15f3e8(0x90,0x3d)](_0x4b8f43),_0x28b6ec=normalizeHookInput(_0x1b0b1b);await handlePostToolUse(_0x28b6ec);}catch(_0x30cbce){console[_0x15f3e8(0x47,0xe0)]('[a2a]\x20Post'+_0x15f3e8(-0x6,-0xaf)+'ror:',_0x30cbce instanceof Error?_0x30cbce['message']:_0x30cbce),process[_0xb256d(0x53e,0x5e9)](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0x24296a(0x45c,0x408)][0x1]?.[_0x24296a(0x45b,0x4bf)]('post-tool-'+_0x4fe3c7(0x24,0xb8))||process[_0x4fe3c7(0x21,0x94)][0x1]?.[_0x4fe3c7(-0x23,0x93)](_0x24296a(0x37d,0x3e7)+_0x4fe3c7(-0x80,-0x33));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(_0x43d42d,_0x5a94b6){function _0x2bbd09(_0x474820,_0x21407a){return _0x417a(_0x21407a- -0x3dd,_0x474820);}const _0x5b7c4a=_0x43d42d();function _0x4fc835(_0x1cd96f,_0x5f2718){return _0x417a(_0x1cd96f- -0xf,_0x5f2718);}while(!![]){try{const _0xdb216b=-parseInt(_0x4fc835(0x92,0x8c))/0x1+parseInt(_0x4fc835(0x9b,0xa0))/0x2*(-parseInt(_0x4fc835(0x89,0x88))/0x3)+parseInt(_0x2bbd09(-0x336,-0x344))/0x4+parseInt(_0x2bbd09(-0x321,-0x332))/0x5+-parseInt(_0x4fc835(0x88,0x81))/0x6+parseInt(_0x4fc835(0x86,0x8a))/0x7*(-parseInt(_0x4fc835(0xa2,0xa7))/0x8)+parseInt(_0x4fc835(0xa3,0xac))/0x9*(parseInt(_0x2bbd09(-0x342,-0x334))/0xa);if(_0xdb216b===_0x5a94b6)break;else _0x5b7c4a['push'](_0x5b7c4a['shift']());}catch(_0x411fe5){_0x5b7c4a['push'](_0x5b7c4a['shift']());}}}(_0x5b8b,0xccc25));function _0x5b8b(){const _0xcd1a4f=['otncChfmA3C','mtaYnJG1mNzvEfLVDq','Bg9Nz2LUzW','zxHPDa','Dc50CW','B3i6','Bg9Hza','sg9VAYbZDgfYDa','ChvZAa','mti2ntu1m2HmDLfhsq','y29Uy2f0','Dg9tDhjPBMC','B21Wywn0igvYCG','zxr5ihrPBwvVDq','w2eYyv0GuhjLqW','zMX1C2G','C2LUy2uGiZKYkq','mJb4zxHouKW','mtGWrK1ou2jK','mZqYnZq5nunpAuLbBG','yxjNDG','uhjLq29TCgfJDa','zxjYB3i','C3rKAw4','ChjLlwnVBxbHyW','mZu2ogDgDNbiAG','nZi5ntqYn2HhyvLqzq','B21Wywn0ihnHzG','zw5KC1DPDgG','DhjPBq','Dc5QCW','nde4nMTWuMnOEa','qMjuDgu','mteZoda0nfnwwxryra'];_0x5b8b=function(){return _0xcd1a4f;};return _0x5b8b();}import{closeSharedDb,normalizeHookInput}from'./shared.js';function _0xd1d3c0(_0x4f698e,_0x90e67b){return _0x417a(_0x90e67b- -0x36e,_0x4f698e);}function _0x417a(_0xbb7ac5,_0x5d553c){_0xbb7ac5=_0xbb7ac5-0x92;const _0x5b8b59=_0x5b8b();let _0x417a09=_0x5b8b59[_0xbb7ac5];if(_0x417a['yiznyZ']===undefined){var _0x4c841e=function(_0x388ee3){const _0x3bb01a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a80fb='',_0x92abfd='';for(let _0xfe908=0x0,_0x124bd1,_0x5ec1a2,_0x35236b=0x0;_0x5ec1a2=_0x388ee3['charAt'](_0x35236b++);~_0x5ec1a2&&(_0x124bd1=_0xfe908%0x4?_0x124bd1*0x40+_0x5ec1a2:_0x5ec1a2,_0xfe908++%0x4)?_0x2a80fb+=String['fromCharCode'](0xff&_0x124bd1>>(-0x2*_0xfe908&0x6)):0x0){_0x5ec1a2=_0x3bb01a['indexOf'](_0x5ec1a2);}for(let _0x2b996d=0x0,_0x6cb02b=_0x2a80fb['length'];_0x2b996d<_0x6cb02b;_0x2b996d++){_0x92abfd+='%'+('00'+_0x2a80fb['charCodeAt'](_0x2b996d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x92abfd);};_0x417a['HCttut']=_0x4c841e,_0x417a['BaOtbe']={},_0x417a['yiznyZ']=!![];}const _0x368d22=_0x5b8b59[0x0],_0x493244=_0xbb7ac5+_0x368d22,_0x5a70d4=_0x417a['BaOtbe'][_0x493244];return!_0x5a70d4?(_0x417a09=_0x417a['HCttut'](_0x417a09),_0x417a['BaOtbe'][_0x493244]=_0x417a09):_0x417a09=_0x5a70d4,_0x417a09;}function _0x34099b(_0x40698e,_0x5bb449){return _0x417a(_0x5bb449-0x5f,_0x40698e);}import{ConfigManager}from'../config/manager.js';import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x4fb347){const _0x32e7e5=new ConfigManager()[_0x129004(0xb8,0xb5)](),_0x4510f8=createLogger(_0x11abc7(0x2fb,0x2fc),_0x32e7e5[_0x11abc7(0x2dd,0x2e9)]);function _0x11abc7(_0x24098f,_0x19d2e5){return _0x417a(_0x19d2e5-0x24f,_0x24098f);}function _0x129004(_0x3e7c5b,_0x1c09cf){return _0x417a(_0x1c09cf-0x17,_0x3e7c5b);}_0x4510f8['info'](_0x11abc7(0x2f4,0x2ee)+'ed\x20(no-op\x20'+_0x129004(0xc3,0xbf),{'projectPath':_0x4fb347['projectPat'+'h']}),_0x4510f8[_0x129004(0xc0,0xbe)]();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){const _0x3af894=[];for await(const _0x55cfde of process[_0x36b5b6(0x3fc,0x3fb)]){_0x3af894[_0x36b5b6(0x3ed,0x3e7)](_0x55cfde);}const _0x2d88ed=Buffer[_0x35f114(0x8f,0x7e)](_0x3af894)[_0x35f114(0x86,0x7f)]('utf-8')[_0x35f114(0x78,0x6f)]();function _0x36b5b6(_0x1ea35e,_0x37b977){return _0x417a(_0x1ea35e-0x34d,_0x37b977);}function _0x35f114(_0x2d8a0b,_0x5878bb){return _0x417a(_0x5878bb- -0x24,_0x2d8a0b);}!_0x2d88ed&&(closeSharedDb(),process[_0x36b5b6(0x3e8,0x3ec)](0x0));const _0x250786=setTimeout(()=>{console[_0x1e18ce(0xdd,0xdb)](_0x1e18ce(0xd5,0xce)+_0x1e18ce(0xe2,0xef)+_0x141354(0x314,0x318)+'t\x20('+HOOK_TIMEOUT_MS+'ms)'),closeSharedDb();function _0x1e18ce(_0x229447,_0x562464){return _0x36b5b6(_0x229447- -0x31e,_0x562464);}function _0x141354(_0x38c00a,_0x83fca7){return _0x36b5b6(_0x83fca7- -0xda,_0x38c00a);}process['exit'](0x0);},HOOK_TIMEOUT_MS);_0x250786['unref']();try{const _0x44f256=JSON['parse'](_0x2d88ed),_0x1376aa=normalizeHookInput(_0x44f256);await handlePreCompact(_0x1376aa);}catch(_0x3f2e6b){console[_0x35f114(0x8a,0x8a)](_0x35f114(0x90,0x82)+_0x36b5b6(0x3f1,0x3ec)+_0x35f114(0x6e,0x79),_0x3f2e6b instanceof Error?_0x3f2e6b['message']:_0x3f2e6b);}finally{_0x36b5b6(0x3e3,0x3d5)==='BbTte'?(closeSharedDb(),process[_0x36b5b6(0x3e8,0x3da)](0x0)):_0x35134b[_0x35f114(0x77,0x7c)](_0x2f3e4e);}}const isMainModule=process['argv'][0x1]?.[_0xd1d3c0(-0x2cb,-0x2dc)](_0xd1d3c0(-0x2af,-0x2be)+_0x34099b(0xe7,0xf3))||process[_0xd1d3c0(-0x2b1,-0x2c2)][0x1]?.[_0xd1d3c0(-0x2d9,-0x2dc)](_0xd1d3c0(-0x2b6,-0x2be)+_0x34099b(0xfc,0xfb));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();