a2a-memory 0.12.62 → 0.12.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/contextrank/since-store.js +1 -1
- package/dist/db/database.d.ts +55 -1
- package/dist/db/database.js +1 -1
- package/dist/db/integrity-marker.d.ts +40 -0
- package/dist/db/integrity-marker.js +1 -0
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/file-mode.d.ts +5 -0
- package/dist/utils/file-mode.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3e8803,_0x3b5f9b){function _0x3a2982(_0x4d3424,_0x2626ea){return _0x3631(_0x2626ea-0x1e5,_0x4d3424);}function _0x526f1b(_0x3088a6,_0x2a32df){return _0x3631(_0x2a32df-0x239,_0x3088a6);}const _0x16904b=_0x3e8803();while(!![]){try{const _0xaea6d6=-parseInt(_0x526f1b(0x4ea,0x43a))/0x1*(-parseInt(_0x526f1b(0x47b,0x434))/0x2)+-parseInt(_0x526f1b(0x47a,0x3ff))/0x3*(parseInt(_0x3a2982(0x357,0x31a))/0x4)+parseInt(_0x526f1b(0x457,0x3a2))/0x5+-parseInt(_0x3a2982(0x32f,0x398))/0x6+-parseInt(_0x526f1b(0x334,0x399))/0x7*(parseInt(_0x526f1b(0x341,0x3be))/0x8)+parseInt(_0x526f1b(0x56f,0x4c9))/0x9*(-parseInt(_0x3a2982(0x3b1,0x3a3))/0xa)+parseInt(_0x3a2982(0x38a,0x3f8))/0xb*(parseInt(_0x3a2982(0x3e5,0x351))/0xc);if(_0xaea6d6===_0x3b5f9b)break;else _0x16904b['push'](_0x16904b['shift']());}catch(_0x2c5e60){_0x16904b['push'](_0x16904b['shift']());}}}(_0x22ad,0x8a7fe));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';function _0x3631(_0x30c3f0,_0x57e871){_0x30c3f0=_0x30c3f0-0x12f;const _0x22ad2f=_0x22ad();let _0x3631a1=_0x22ad2f[_0x30c3f0];if(_0x3631['FETCOi']===undefined){var _0x39da2c=function(_0x1089b5){const _0x118c2f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x523ffa='',_0xbc14c1='';for(let _0x46aaa3=0x0,_0x18b8e4,_0x2555f4,_0x4c8c13=0x0;_0x2555f4=_0x1089b5['charAt'](_0x4c8c13++);~_0x2555f4&&(_0x18b8e4=_0x46aaa3%0x4?_0x18b8e4*0x40+_0x2555f4:_0x2555f4,_0x46aaa3++%0x4)?_0x523ffa+=String['fromCharCode'](0xff&_0x18b8e4>>(-0x2*_0x46aaa3&0x6)):0x0){_0x2555f4=_0x118c2f['indexOf'](_0x2555f4);}for(let _0x2b5714=0x0,_0x388a39=_0x523ffa['length'];_0x2b5714<_0x388a39;_0x2b5714++){_0xbc14c1+='%'+('00'+_0x523ffa['charCodeAt'](_0x2b5714)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xbc14c1);};_0x3631['kqGkiM']=_0x39da2c,_0x3631['ifKufC']={},_0x3631['FETCOi']=!![];}const _0x1d0628=_0x22ad2f[0x0],_0x4ff3f2=_0x30c3f0+_0x1d0628,_0x590f07=_0x3631['ifKufC'][_0x4ff3f2];return!_0x590f07?(_0x3631a1=_0x3631['kqGkiM'](_0x3631a1),_0x3631['ifKufC'][_0x4ff3f2]=_0x3631a1):_0x3631a1=_0x590f07,_0x3631a1;}const CATEGORY_TYPE_MAP={'error_solution':'experience','code_pattern':'fact','decision':_0xf1ce0c(0x22d,0x2df),'context':_0x419a88(0x426,0x445),'project_knowledge':'fact','convention':_0x419a88(0x49f,0x4b6),'learning':'experience','skill':_0x419a88(0x4cc,0x4b6),'rule':_0xf1ce0c(0x3ed,0x350)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;function _0x419a88(_0x268e62,_0x3b4a06){return _0x3631(_0x3b4a06-0x24b,_0x268e62);}export async function handlePostToolUse(_0x1cde57){const _0xd89c07=performance['now'](),_0x44794b=new ConfigManager()[_0x2c271f(-0x10c,-0xa7)]();function _0x2c271f(_0x40f133,_0x4def2e){return _0x419a88(_0x40f133,_0x4def2e- -0x4c0);}const _0xbbe9f3=performance[_0x2c271f(0x42,0x21)](),_0x39f043=createLogger(_0x20d14e(0x21c,0x280)+'e',_0x44794b['logging']);function _0x20d14e(_0x13f84e,_0x1e56e2){return _0x419a88(_0x13f84e,_0x1e56e2- -0x1f1);}try{if(_0x20d14e(0x286,0x26c)!==_0x2c271f(-0x16c,-0x13f)){_0x39f043[_0x20d14e(0x319,0x294)](_0x20d14e(0x2d8,0x2e9)+'ed',{'toolName':_0x1cde57[_0x2c271f(-0xc8,-0x136)]});if(!_0x44794b[_0x2c271f(-0x7a,-0x11e)+'e'][_0x20d14e(0x36b,0x2e2)]){if(_0x2c271f(0x6b,-0x12)===_0x20d14e(0x1cd,0x26e))return'learning';else{_0x39f043['info'](_0x20d14e(0x250,0x2e8)+_0x20d14e(0x181,0x1b2)+'d');return;}}if(!_0x44794b[_0x2c271f(-0xaf,-0x11e)+'e'][_0x20d14e(0x215,0x2c6)][_0x20d14e(0x355,0x2b7)](_0x1cde57[_0x20d14e(0x1ea,0x199)])){_0x39f043[_0x2c271f(-0xd,-0xc6)](_0x2c271f(-0xc9,-0x10a)+_0x20d14e(0x24b,0x267),{'toolName':_0x1cde57[_0x20d14e(0x1d5,0x199)]});return;}const _0x28a654=extractFilePath(_0x1cde57[_0x20d14e(0x185,0x20a)]);if(_0x28a654&&isSensitiveFile(_0x28a654,_0x44794b['autoCaptur'+'e'][_0x20d14e(0x2dc,0x274)+'terns'])){_0x39f043[_0x20d14e(0x200,0x294)](_0x20d14e(0x18a,0x1be)+_0x2c271f(-0xf5,-0xf1)+_0x20d14e(0x18b,0x225),{'filePath':_0x28a654});return;}if(_0x28a654&&isClaudeMemoryFile(_0x28a654)&&(_0x1cde57[_0x2c271f(-0x174,-0x136)]===_0x2c271f(-0x71,-0x87)||_0x1cde57[_0x2c271f(-0x1e6,-0x136)]===_0x20d14e(0x196,0x216))){if(_0x20d14e(0x2ec,0x24c)===_0x2c271f(-0xd2,-0xe2))_0x55bfc9[_0x2c271f(-0x73,-0xf9)](_0x20d14e(0x1ff,0x2ac)+_0x20d14e(0x19f,0x1d2),{'error':_0x42dfc3 instanceof _0x2d0622?_0x1e5b56[_0x2c271f(-0xdf,-0x11b)]:_0x1955ec(_0x401b6d)});else{const _0x5c2e4f=performance[_0x2c271f(-0x6b,0x21)]();try{const _0x4bf3b4=getSharedDb(_0x44794b['db'][_0x20d14e(0x373,0x2d9)]),{syncClaudeMd:_0x1c85f1}=await import(_0x2c271f(-0xe8,-0xcc)+_0x20d14e(0x210,0x2aa));await _0x1c85f1(_0x4bf3b4,{'claudeMdPath':_0x28a654,'projectPath':_0x1cde57['projectPat'+'h']});const _0x295271=performance['now'](),_0x5d1743=Math[_0x2c271f(-0x74,-0x6)](_0x295271-_0xd89c07),_0x4cc680=Math[_0x2c271f(-0x18,-0x6)](_0x295271-_0x5c2e4f),_0xd1775f=Math[_0x20d14e(0x271,0x2c9)](_0xbbe9f3-_0xd89c07);process[_0x20d14e(0x19e,0x1ab)][_0x20d14e(0x262,0x29e)]('[A2A]\x20Post'+_0x2c271f(0x57,-0x2c)+_0x20d14e(0x338,0x2df)+_0x20d14e(0x314,0x277)+_0x5d1743+(_0x2c271f(-0x9,-0x71)+'g:\x20')+_0xd1775f+('ms,\x20claude'+'Sync:\x20')+_0x4cc680+_0x20d14e(0x220,0x28f)),_0x39f043[_0x20d14e(0x23a,0x294)](_0x20d14e(0x20a,0x1f9)+'ory\x20file\x20s'+_0x2c271f(-0xe,-0x86),{'filePath':_0x28a654});}catch(_0x1a2627){_0x20d14e(0x140,0x1cc)===_0x2c271f(-0x160,-0x103)?_0x39f043[_0x20d14e(0x1b4,0x1d6)](_0x2c271f(-0xc6,-0xd6)+_0x20d14e(0x15e,0x195)+_0x20d14e(0x221,0x28c),{'error':_0x1a2627 instanceof Error?_0x1a2627[_0x2c271f(-0x160,-0x11b)]:String(_0x1a2627)}):_0x19ab39=typeof _0x2f579f[_0x2c271f(-0xa5,-0xc5)]===_0x20d14e(0x346,0x2ba)?_0xd1dbf2[_0x20d14e(0x216,0x20a)]:_0x3256c5;}return;}}const _0x2bb94f=performance[_0x20d14e(0x25b,0x2f0)](),_0x24e92e={'uuid':_0x1cde57[_0x2c271f(0xb9,0x11)],'type':_0x20d14e(0x1ac,0x1dc),'message':{'role':_0x2c271f(-0x164,-0xf3),'content':_0x1cde57['toolResult']},'timestamp':new Date()[_0x2c271f(-0x6,-0xa4)+'g']()},_0x236307=_0x1cde57['toolName']==='Write',_0x300222=_0x28a654?isConfigFile(_0x28a654):![],_0x26eaee=detectActualError(_0x1cde57[_0x2c271f(-0x145,-0xa2)],_0x1cde57[_0x2c271f(-0x155,-0xc5)]);let _0x1fc2cd;if(_0x1cde57[_0x20d14e(0x1af,0x199)]===_0x2c271f(0x13,-0x14)&&_0x1cde57[_0x2c271f(-0x9b,-0xc5)])try{const _0x40f5e7=typeof _0x1cde57['toolInput']===_0x20d14e(0x366,0x2ba)?JSON[_0x2c271f(-0xdc,-0xd8)](_0x1cde57[_0x2c271f(-0x113,-0xc5)]):_0x1cde57[_0x20d14e(0x22c,0x20a)];_0x1fc2cd=_0x40f5e7?.[_0x2c271f(-0xc,-0x93)]??_0x40f5e7?.['cmd']??(typeof _0x40f5e7==='string'?_0x40f5e7:undefined);}catch{_0x1fc2cd=typeof _0x1cde57[_0x2c271f(-0x121,-0xc5)]===_0x2c271f(-0xd,-0x15)?_0x1cde57[_0x20d14e(0x16d,0x20a)]:undefined;}const _0x5e7332=scoreSignificance(_0x24e92e,{'toolName':_0x1cde57[_0x2c271f(-0x1e7,-0x136)],'isNewFile':_0x236307,'isConfigChange':_0x300222,'hasError':_0x26eaee,'bashCommand':_0x1fc2cd},_0x44794b[_0x20d14e(0x127,0x1b1)+'e'][_0x2c271f(-0x113,-0x12a)+_0x2c271f(0x42,-0x41)+'d']),_0x1888a5=performance[_0x2c271f(0x8d,0x21)](),_0x4fa0b0=_0x44794b[_0x2c271f(-0x17e,-0x11e)+'e'][_0x20d14e(0x200,0x1a5)+_0x2c271f(-0x17,-0x41)+'d']*0.5;_0x39f043[_0x20d14e(0x278,0x294)](_0x2c271f(-0xf1,-0x138)+_0x20d14e(0x333,0x285),{'toolName':_0x1cde57[_0x20d14e(0x17f,0x199)],'score':_0x5e7332[_0x2c271f(-0x160,-0x112)],'shouldCapture':_0x5e7332[_0x2c271f(-0x18d,-0x112)]>=_0x4fa0b0});if(_0x5e7332[_0x2c271f(-0xca,-0x112)]<_0x4fa0b0)return;const _0xa3afa7=determineCategory(_0x1cde57,_0x26eaee),_0x44d0c0=buildContent(_0x1cde57);if(!_0x44d0c0){if(_0x20d14e(0x32f,0x29d)===_0x20d14e(0x314,0x29d)){_0x39f043[_0x2c271f(0x20,-0x3b)](_0x2c271f(-0x76,-0xcf)+_0x2c271f(-0x23,0x25)+_0x2c271f(-0x12a,-0x106)+_0x2c271f(-0x93,0x1f),{'toolName':_0x1cde57[_0x20d14e(0x1c6,0x199)]});return;}else _0x50976f=_0x20d14e(0x2c9,0x235);}const _0x255324=filterSensitiveInfo(_0x44d0c0);let _0x33ec63;if(_0x26eaee)_0x33ec63='episodic';else _0x5e7332[_0x20d14e(0x239,0x1bd)]<_0x44794b['autoCaptur'+'e'][_0x20d14e(0x144,0x1a5)+_0x20d14e(0x2b5,0x28e)+'d']?_0x33ec63=_0x2c271f(-0x7c,-0xe1):_0x33ec63=_0x20d14e(0x1c2,0x235);const _0x5f22ce={'content':_0x255324[_0x2c271f(-0x178,-0x118)],'category':_0xa3afa7,'tier':_0x33ec63,'tags':buildTags(_0x1cde57),'projectPath':_0x1cde57[_0x20d14e(0x1ea,0x2a0)+'h'],'sessionId':_0x1cde57[_0x2c271f(-0x85,0x11)],'memoryType':CATEGORY_TYPE_MAP[_0xa3afa7]??'fact'},_0x48ba31=getSharedDb(_0x44794b['db'][_0x20d14e(0x25e,0x2d9)]),_0x430514=performance[_0x20d14e(0x383,0x2f0)](),_0x33507a=new DedupManager(),_0x2f2d4a=_0x33507a[_0x20d14e(0x2c4,0x2f5)+_0x2c271f(0x7e,-0x11)](_0x48ba31[_0x2c271f(-0x102,-0x9f)+'es']({'projectPath':_0x1cde57['projectPat'+'h'],'limit':0x32,'excludeParents':!![]}),_0xa3afa7,_0x1cde57[_0x20d14e(0x229,0x2a0)+'h']),_0x1e7494=_0x33507a['decide'](_0x255324['filtered'],_0x2f2d4a),_0x31bc55=performance['now']();_0x39f043[_0x20d14e(0x2be,0x294)]('Dedup\x20deci'+'sion',{'action':_0x1e7494[_0x20d14e(0x2ab,0x23f)],'similarity':_0x1e7494[_0x20d14e(0x295,0x1e4)]});const _0x318ab5=performance[_0x2c271f(-0x95,0x21)]();let _0x5268d5;try{if('gSYRB'!==_0x20d14e(0x1c2,0x24b))switch(_0x1e7494[_0x2c271f(-0x64,-0x90)]){case _0x20d14e(0x130,0x1ae):_0x39f043[_0x2c271f(-0x6b,-0x3b)]('Memory\x20ski'+_0x2c271f(-0x40,-0xbf)+'icate)',{'similarity':_0x1e7494['similarity']});return;case _0x2c271f(-0x19d,-0xe8):if(_0x1e7494['targetMemo'+'ry']){if(_0x2c271f(-0x3e,-0x10)===_0x2c271f(0x9,-0x10)){const _0x1eb17e=_0x33507a[_0x2c271f(-0x87,-0x10d)+'nt'](_0x1e7494['targetMemo'+'ry'][_0x2c271f(-0x40,-0x73)],_0x255324[_0x20d14e(0x144,0x1b7)]);if(_0x1eb17e['truncated']){_0x5268d5=_0x48ba31[_0x2c271f(-0x23,-0xd)+'ry'](_0x5f22ce);_0x33ec63!==_0x20d14e(0x28c,0x1ee)&&_0x48ba31[_0x2c271f(0x99,0x0)+_0x2c271f(-0x163,-0xb1)](_0x5268d5['id'],null,_0x20d14e(0x25e,0x226));_0x39f043['info'](_0x2c271f(0xb,-0x6d)+_0x2c271f(-0x1c,-0x53)+_0x2c271f(0x51,-0x54)+'(would\x20tru'+_0x2c271f(-0x17f,-0xc7),{'targetId':_0x1e7494['targetMemo'+'ry']['id'],'newId':_0x5268d5['id'],'targetLength':_0x1e7494[_0x2c271f(-0x198,-0xfc)+'ry'][_0x2c271f(-0xef,-0x73)][_0x2c271f(-0xe5,-0xf6)],'wouldBeLength':_0x1eb17e['wouldBeLen'+_0x2c271f(-0x47,-0x80)]});break;}_0x48ba31[_0x20d14e(0x191,0x1cf)+'ry'](_0x1e7494[_0x20d14e(0x23f,0x1d3)+'ry']['id'],{'content':_0x1eb17e[_0x20d14e(0x1c2,0x25c)],'tags':[...new Set([..._0x1e7494[_0x20d14e(0x1e5,0x1d3)+'ry'][_0x2c271f(-0xea,-0x13d)]||[],...buildTags(_0x1cde57)])]}),_0x39f043[_0x20d14e(0x33b,0x294)](_0x20d14e(0x310,0x2b9)+_0x2c271f(-0x107,-0x6b)+_0x2c271f(-0x19,-0x5a),{'memoryId':_0x1e7494[_0x20d14e(0x19f,0x1d3)+'ry']['id']});}else _0x37f14b[_0x2c271f(-0xe8,-0xce)](_0x425135);}return;case _0x20d14e(0x336,0x296):{if(_0x1e7494['targetMemo'+'ry']){if(isProtectedFromCleanup(_0x1e7494[_0x2c271f(-0x50,-0xfc)+'ry'])){if(_0x20d14e(0x1ca,0x25f)!=='EIUjn'){const _0x5b77f4=_0x319856(_0x193ef1[_0x2c271f(-0xd,-0xc5)]),_0x5bdd98=_0x30da82[_0x20d14e(0x21d,0x22d)];if(_0x5b77f4&&(_0x5b77f4[_0x2c271f(-0x38,-0x18)](_0x2c271f(-0x28,-0x1a))||_0x5b77f4['includes'](_0x20d14e(0x29c,0x293))))return _0x2c271f(-0x193,-0x146);if(_0x5bdd98['length']<0x32||_0x5bdd98['toLowerCas'+'e']()[_0x20d14e(0x2ff,0x2b7)](_0x20d14e(0x1a1,0x1e3)+_0x20d14e(0x29b,0x221)+_0x20d14e(0x16e,0x1f0))||_0x5bdd98[_0x20d14e(0x277,0x269)+'e']()[_0x20d14e(0x2a8,0x2b7)](_0x2c271f(0x25,-0x88)+'ed')||_0x5bdd98[_0x20d14e(0x21e,0x269)+'e']()[_0x20d14e(0x2f0,0x2b7)](_0x2c271f(-0x128,-0xa1)+_0x2c271f(-0x13e,-0x12f)))return _0x2c271f(-0x14a,-0x146);if(_0x3d6db3['test'](_0x5bdd98))return _0x2c271f(0x4e,-0x13);return'code_patte'+'rn';}else _0x39f043[_0x2c271f(-0xc,-0x3b)](_0x20d14e(0x1ec,0x265)+_0x2c271f(-0xaa,-0x113)+_0x2c271f(-0xf6,-0x60)+_0x2c271f(-0x79,-0x5e)+_0x20d14e(0x143,0x1b3),{'memoryId':_0x1e7494['targetMemo'+'ry']['id'],'category':_0x1e7494['targetMemo'+'ry'][_0x20d14e(0x351,0x2e5)]});}else _0x48ba31[_0x20d14e(0x118,0x1cf)+'ry'](_0x1e7494[_0x2c271f(-0xb7,-0xfc)+'ry']['id'],{'invalidAt':new Date()[_0x20d14e(0x1f2,0x22b)+'g']()}),_0x39f043[_0x20d14e(0x2b9,0x294)](_0x2c271f(-0x1d8,-0x12d)+_0x2c271f(-0x12,-0x2b)+_0x20d14e(0x1ea,0x22f),{'memoryId':_0x1e7494[_0x20d14e(0x20b,0x1d3)+'ry']['id']});}_0x5268d5=_0x48ba31['createMemo'+'ry'](_0x5f22ce);if(_0x33ec63!==_0x20d14e(0x171,0x1ee)){if('DXqhg'!==_0x20d14e(0x1df,0x1aa)){const _0xa9fc6b=['md','txt','json',_0x2c271f(-0x130,-0xe4),'yaml',_0x2c271f(-0x165,-0xc3),_0x2c271f(-0x119,-0x110),_0x2c271f(-0x163,-0x129)];!_0xa9fc6b['includes'](_0x22ff32)&&_0x5cfdc7[_0x2c271f(-0x114,-0xce)](_0x5dc3e0);}else _0x48ba31[_0x20d14e(0x304,0x2cf)+_0x2c271f(-0x130,-0xb1)](_0x5268d5['id'],null,'pending');}_0x39f043['info'](_0x2c271f(-0xcc,-0x13b)+_0x20d14e(0x346,0x2d6)+_0x20d14e(0x204,0x295),{'category':_0xa3afa7,'memoryId':_0x5268d5['id']});break;}case _0x2c271f(-0xa1,-0x120):default:_0x5268d5=_0x48ba31[_0x20d14e(0x211,0x2c2)+'ry'](_0x5f22ce);_0x33ec63!==_0x20d14e(0x1f1,0x1ee)&&_0x48ba31[_0x20d14e(0x277,0x2cf)+_0x2c271f(-0xd4,-0xb1)](_0x5268d5['id'],null,_0x20d14e(0x207,0x226));_0x39f043[_0x2c271f(-0x27,-0x3b)](_0x20d14e(0x21b,0x194)+_0x20d14e(0x274,0x251),{'category':_0xa3afa7,'memoryId':_0x5268d5['id']});break;}else{const _0x3ddae6=_0x2eee12['replace'](/\.[^.]+$/,'');_0x3ddae6[_0x2c271f(-0x146,-0xf6)]>0x2&&!_0x5e10f7[_0x20d14e(0x31d,0x2dd)](_0x3ddae6[_0x20d14e(0x1ca,0x269)+'e']())&&_0x4c2ce7['push'](_0x3ddae6);}}catch(_0x45c3f3){const _0x4b04a1=_0x45c3f3 instanceof Error?_0x45c3f3:new Error(String(_0x45c3f3));_0x39f043[_0x2c271f(-0x3e,-0x3e)]('Memory\x20cre'+_0x2c271f(-0x8,-0xe)+'ed',_0x4b04a1,{'category':_0xa3afa7});}const _0x2815dc=performance[_0x20d14e(0x276,0x2f0)]();if(_0x5268d5&&_0x44794b[_0x2c271f(0x2,-0x33)]?.[_0x2c271f(-0x5,0x13)]&&_0x44794b[_0x2c271f(-0x65,-0x33)][_0x2c271f(-0x8b,-0x137)]==='local'){if('fWGRc'!==_0x2c271f(-0xad,-0xba))try{const {createEmbeddingProvider:_0x5ef64b}=await import(_0x2c271f(0x3,0x27)+_0x20d14e(0x28f,0x245)+'s'),_0x1d9756=_0x5ef64b(_0x44794b[_0x20d14e(0x2d8,0x29c)],_0x44794b['llm']),_0x1d41f0=await Promise[_0x2c271f(-0x156,-0x145)](_0x1d9756[_0x2c271f(-0x135,-0xc1)](_0x5268d5[_0x2c271f(-0xc2,-0x73)]));Array[_0x2c271f(-0xa3,-0xb0)](_0x1d41f0)&&_0x48ba31[_0x2c271f(-0x15,-0xc)+'ing'](_0x5268d5['id'],_0x1d41f0);}catch(_0x880607){_0x20d14e(0x25d,0x1e0)==='EtIhW'?_0x39f043[_0x20d14e(0x249,0x1d6)](_0x20d14e(0x1ed,0x23d)+'failed',{'error':_0x880607 instanceof Error?_0x880607['message']:String(_0x880607)}):_0x1589bb[_0x2c271f(0x4c,-0xc)+_0x20d14e(0x183,0x238)](_0x1e597a['id'],_0x3fc8de);}else return;}try{const _0x543c6e=_0x48ba31['getLatestI'+_0x20d14e(0x29d,0x2ef)](_0x1cde57[_0x20d14e(0x2c2,0x2e0)]);if(_0x543c6e&&_0x543c6e[_0x2c271f(-0x159,-0xe0)+_0x2c271f(0x63,-0x19)]){const _0x1aea67=(_0x1cde57['toolName']+'\x20'+JSON[_0x2c271f(-0x9c,-0x10e)](_0x1cde57[_0x20d14e(0x2ae,0x20a)])+'\x20'+String(_0x1cde57['toolResult']))[_0x20d14e(0x225,0x269)+'e'](),{parseInjectedKeywords:_0x871276}=await import(_0x20d14e(0x2c9,0x278)+'s'),_0x10ad37=_0x871276(_0x543c6e['injectedKe'+_0x20d14e(0x23e,0x2b6)]);let _0x1ccbe5=[],_0x10c0bb=[];if(_0x10ad37[_0x20d14e(0x245,0x261)]){for(const [_0x228a90,_0x284842]of Object['entries'](_0x10ad37[_0x2c271f(-0x38,0x4)])){const _0x60a9e1=_0x284842[_0x2c271f(-0x164,-0xca)](_0x2a8bb7=>_0x1aea67['includes'](_0x2a8bb7));_0x60a9e1['length']>0x0&&(_0x1ccbe5[_0x20d14e(0x219,0x201)](..._0x60a9e1),_0x10c0bb[_0x20d14e(0x1b3,0x201)](_0x228a90));}_0x1ccbe5=[...new Set(_0x1ccbe5)],_0x10c0bb=[...new Set(_0x10c0bb)];}else{if(_0x20d14e(0x312,0x2ed)!==_0x2c271f(0x78,0x1e)){if(_0x1fde50['includes']('\x22oldString'+'\x22')||_0x22eaf4[_0x20d14e(0x2ec,0x2b7)](_0x2c271f(-0x74,-0x1c)+'\x22')||_0x2ff5bd[_0x2c271f(0x5b,-0x18)]('\x22structure'+_0x2c271f(-0xfb,-0xdc))||_0x48c026[_0x20d14e(0x230,0x2b7)]('\x22type\x22')&&_0x4ccdc2['includes'](_0x20d14e(0x254,0x222))&&_0x5b0f67['includes'](_0x2c271f(-0x30,-0x44))||_0xaa4892[_0x2c271f(-0x97,-0x18)](_0x20d14e(0x180,0x1c0)+_0x2c271f(-0x11a,-0x144))&&_0x56a0ae['includes'](_0x20d14e(0x2e1,0x28b)))return'';return _0x30a30a;}else _0x1ccbe5=_0x10ad37[_0x20d14e(0x17d,0x21d)][_0x20d14e(0x288,0x205)](_0x359019=>_0x1aea67[_0x20d14e(0x343,0x2b7)](_0x359019));}_0x1ccbe5['length']>0x0&&_0x48ba31[_0x20d14e(0x251,0x223)+'ctionHit'](_0x543c6e['id'],_0x1ccbe5,_0x1cde57['toolName'],_0x10c0bb);}}catch{}if(_0x5268d5&&(_0x1e7494[_0x2c271f(-0x60,-0x90)]===_0x20d14e(0x103,0x1af)||_0x1e7494[_0x20d14e(0x1df,0x23f)]===_0x2c271f(0x38,-0x39)))try{_0x48ba31[_0x2c271f(-0xc9,-0x42)+'actionEval']({'memoryId':_0x5268d5['id'],'sessionId':_0x1cde57[_0x2c271f(-0x77,0x11)],'significanceScore':_0x5e7332['totalScore'],'dedupAction':_0x1e7494['action'],'tier':_0x33ec63});}catch{}if(_0x5268d5&&_0x5268d5[_0x2c271f(0x50,-0x33)]&&_0x44794b[_0x20d14e(0x219,0x1c7)+_0x20d14e(0x2e4,0x2a8)]?.[_0x20d14e(0x2e1,0x2e2)])try{if(_0x2c271f(-0x1f4,-0x141)!==_0x20d14e(0x2e1,0x284)){const {SkillEvaluator:_0xfa650a}=await import(_0x2c271f(0x33,-0x52)+'valuator.j'+'s'),_0x58155f=new _0xfa650a(_0x48ba31,_0x44794b),_0x33c67b=_0x58155f[_0x2c271f(-0x9a,-0x7c)+_0x20d14e(0x239,0x1f2)](_0x5268d5);_0x33c67b[_0x20d14e(0x20a,0x21a)]&&_0x39f043[_0x2c271f(-0xc3,-0x3b)]('Memory\x20abs'+_0x2c271f(-0x14e,-0xa6)+'\x20skill',{'memoryId':_0x5268d5['id'],'skillId':_0x33c67b[_0x20d14e(0x2dd,0x256)]});}else{if(typeof _0x5d1265[_0x2c271f(-0x4f,0x18)]===_0x2c271f(0x8b,-0x15))return _0x483a79[_0x20d14e(0x31d,0x2e7)];if(typeof _0x3d8a1b['path']===_0x2c271f(-0x6b,-0x15))return _0x5d6106['path'];}}catch{}const _0x168199=performance['now']();let _0x2d5678=0x0;const _0x1b30f7=_0x44794b[_0x2c271f(0x57,-0x4)+'shot']?.['enabled']!==![]&&_0x44794b[_0x20d14e(0x271,0x2cb)+_0x20d14e(0x19d,0x20f)]?.[_0x2c271f(0x2e,-0x7d)+'AutoSync']!==!![];if(_0x44794b['autoSync']?.[_0x2c271f(0x56,0x13)]&&_0x44794b[_0x2c271f(-0x6,-0x9d)]?.['apiKey']&&!_0x1b30f7){try{const _0xc9ddef=_0x48ba31[_0x20d14e(0x2e0,0x2d5)+'SyncCount']();if(_0xc9ddef>=AUTO_SYNC_THRESHOLD){const _0x509424=createHookClient(_0x44794b);if(_0x509424){if(_0x2c271f(0x41,0x2)===_0x2c271f(-0xf,-0x2d))_0x4195a1[_0x2c271f(-0xd8,-0xf9)](_0x20d14e(0x251,0x23d)+_0x2c271f(-0x18a,-0xfd),{'error':_0x1b498a instanceof _0x45b6b7?_0x1f06a0[_0x20d14e(0x177,0x1b4)]:_0x37005a(_0x5b8748)});else{const _0x232ec0=new SyncQueue(_0x48ba31,_0x509424),_0x1bb79c=await _0x232ec0[_0x2c271f(0xaf,0x14)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x1bb79c[_0x20d14e(0x30e,0x25a)]>0x0&&(_0x39f043[_0x2c271f(-0x21,-0x3b)]('Auto-sync\x20'+'pushed',{'pushed':_0x1bb79c[_0x2c271f(-0x8f,-0x75)],'pending':_0xc9ddef}),console[_0x2c271f(-0xa8,-0x3e)]('[a2a]\x20Auto'+_0x20d14e(0x1f6,0x27e)+_0x1bb79c[_0x20d14e(0x1c9,0x25a)]+_0x20d14e(0x219,0x20b)));}}}}catch(_0x11c1a8){_0x39f043['warn'](_0x20d14e(0x2f8,0x2ac)+'failed',{'error':_0x11c1a8 instanceof Error?_0x11c1a8[_0x2c271f(-0x1b5,-0x11b)]:String(_0x11c1a8)});}_0x2d5678=Math[_0x2c271f(0x64,-0x6)](performance[_0x2c271f(-0x6c,0x21)]()-_0x168199);}else _0x44794b[_0x2c271f(0x52,-0x24)]?.['enabled']&&_0x44794b[_0x2c271f(-0x95,-0x9d)]?.[_0x20d14e(0x215,0x1ce)]&&_0x1b30f7&&_0x39f043[_0x2c271f(-0xd8,-0xc6)](_0x2c271f(-0x8c,-0x55)+_0x20d14e(0x2ee,0x2c0)+_0x20d14e(0x259,0x224)+'\x20—\x20auto-sy'+'nc\x20deferre'+_0x2c271f(-0x31,-0x99)+_0x20d14e(0x1e8,0x1c4));const _0x41e0c7=Math[_0x20d14e(0x233,0x2c9)](performance[_0x20d14e(0x2ce,0x2f0)]()-_0xd89c07),_0x211300=Math['round'](_0xbbe9f3-_0xd89c07),_0x51695a=Math[_0x2c271f(-0xb1,-0x6)](_0x1888a5-_0x2bb94f),_0x2b8341=Math['round'](_0x31bc55-_0x430514),_0x5ce6f5=Math[_0x20d14e(0x2f2,0x2c9)](_0x2815dc-_0x318ab5),_0x56edf6=_0x2d5678>0x0?_0x20d14e(0x1a2,0x1db)+_0x2d5678+'ms':'';process['stderr'][_0x20d14e(0x269,0x29e)](_0x2c271f(-0x86,-0x77)+_0x2c271f(-0x70,-0x2c)+_0x2c271f(-0x13,0x10)+_0x20d14e(0x251,0x277)+_0x41e0c7+(_0x20d14e(0x1ea,0x25e)+_0x2c271f(-0x79,-0x64))+_0x211300+(_0x2c271f(-0x12a,-0x95)+'icance:\x20')+_0x51695a+(_0x20d14e(0x2e8,0x260)+'\x20')+_0x2b8341+_0x20d14e(0x243,0x2ec)+_0x5ce6f5+'ms'+_0x56edf6+')\x0a'),_0x39f043['info']('Hook\x20compl'+'eted',{'durationMs':_0x41e0c7});}else _0x316c39=_0x2c271f(-0xb7,-0xe1);}finally{_0x39f043[_0x20d14e(0x38d,0x2e3)]();}}function extractFilePath(_0x53b2ea){let _0x38518e=_0x53b2ea;if(typeof _0x38518e===_0x2555ab(0x1b4,0x149))try{if('igdVj'==='igdVj')_0x38518e=JSON[_0x2555ab(0xd4,0x86)](_0x38518e);else try{const _0x31d180=typeof _0x323221['toolInput']===_0x8e59a4(0x109,0x79)?_0x158869[_0x2555ab(0xb4,0x86)](_0x3dc2d9[_0x2555ab(0xa,0x99)]):_0x57b5e4['toolInput'];_0xbd7968=_0x31d180?.['command']??_0x31d180?.[_0x2555ab(0x73,0x11f)]??(typeof _0x31d180===_0x2555ab(0x16a,0x149)?_0x31d180:_0xefaffe);}catch{_0x2d4c60=typeof _0x46ceec[_0x8e59a4(0x59,0x43)]==='string'?_0x586a65['toolInput']:_0x158d68;}}catch{return null;}if(typeof _0x38518e===_0x2555ab(0x15,0x91)&&_0x38518e!==null){if(_0x8e59a4(0xb5,0x153)===_0x2555ab(0x80,0x79)){const _0x5582da=_0x2b3a1b instanceof _0x1e44ca?_0x18a691:new _0x46b186(_0x46d31f(_0x482d3c));_0x3a03ea['error'](_0x8e59a4(0xa8,0x12e)+_0x2555ab(0xe6,0x150)+'ed',_0x5582da,{'category':_0x35ef04});}else{if(typeof _0x38518e[_0x8e59a4(0x136,0xd0)]==='string')return _0x38518e[_0x8e59a4(0x136,0xbc)];if(typeof _0x38518e[_0x8e59a4(0x128,0xf4)]==='string')return _0x38518e[_0x2555ab(0x133,0x168)];}}function _0x2555ab(_0x189a7c,_0x24f04c){return _0x419a88(_0x189a7c,_0x24f04c- -0x362);}function _0x8e59a4(_0x48f360,_0x23e794){return _0x419a88(_0x23e794,_0x48f360- -0x3a2);}return null;}function _0xf1ce0c(_0x10f596,_0x5c3843){return _0x3631(_0x5c3843-0xe5,_0x10f596);}function isSensitiveFile(_0x167e45,_0x444e01){function _0x3b508c(_0x3a4f06,_0x44610c){return _0xf1ce0c(_0x44610c,_0x3a4f06- -0x2aa);}const _0x148051=_0x167e45[_0x3b508c(-0x4f,-0x3c)]('/')[_0x328089(0x48a,0x4f3)]()??'';function _0x328089(_0x16c95b,_0x533132){return _0xf1ce0c(_0x16c95b,_0x533132-0x1f5);}return _0x444e01['some'](_0x56d3b4=>{function _0x59cd49(_0x3026b9,_0x338942){return _0x328089(_0x3026b9,_0x338942- -0x5c3);}if(_0x56d3b4['startsWith']('*'))return _0x148051[_0x589a61(0x397,0x40e)](_0x56d3b4['slice'](0x1));function _0x589a61(_0xdee1e1,_0x5277f1){return _0x328089(_0x5277f1,_0xdee1e1- -0x1a1);}if(_0x56d3b4['endsWith']('*'))return _0x148051['startsWith'](_0x56d3b4[_0x589a61(0x2ac,0x30b)](0x0,-0x1));return _0x148051===_0x56d3b4;});}function isConfigFile(_0x5c7d88){const _0x2c2e15=[_0x4e888f(-0x215,-0x1b7),_0x46be2f(-0xc6,-0x146),_0x46be2f(-0x19c,-0x12f),_0x46be2f(-0xb0,-0xf8),_0x46be2f(-0x1c5,-0x1b6),_0x46be2f(-0x148,-0x104),_0x4e888f(-0x198,-0x1bf)];function _0x4e888f(_0x482c39,_0x1ef7c1){return _0x419a88(_0x482c39,_0x1ef7c1- -0x5af);}function _0x46be2f(_0xa9b6ab,_0x29b9c6){return _0x419a88(_0xa9b6ab,_0x29b9c6- -0x5b9);}return _0x2c2e15[_0x46be2f(-0x172,-0xd1)](_0x5e1cc1=>_0x5c7d88[_0x46be2f(-0xbe,-0x110)](_0x5e1cc1));}function detectActualError(_0x5df26d,_0x3fb61b){function _0x469e74(_0x4a59d4,_0x545c75){return _0x419a88(_0x545c75,_0x4a59d4-0x9d);}if(_0x5df26d[_0x31b214(0x105,0x130)]<0xc8)return![];const _0x57d7fe=_0x3fb61b?.[_0x31b214(0x11b,0xf0)];function _0x31b214(_0x360a4d,_0x12b548){return _0x419a88(_0x360a4d,_0x12b548- -0x29a);}if(_0x57d7fe===_0x31b214(0x19a,0xf2))return![];const _0x2c7cc5=_0x5df26d[_0x469e74(0x4f7,0x4de)+'e'](),_0x4598ca=['error:',_0x31b214(0x1a3,0x1de),'ERROR:',_0x469e74(0x488,0x4b3),_0x31b214(0x8e,0x110),_0x469e74(0x50d,0x553),_0x31b214(0x1ad,0x1c7),'FAILED',_0x469e74(0x465,0x507),'Traceback'],_0x7ae74b=_0x4598ca['some'](_0x4b6114=>_0x5df26d[_0x469e74(0x545,0x491)](_0x4b6114)||_0x2c7cc5[_0x31b214(0x1d3,0x20e)](_0x4b6114['toLowerCas'+'e']()));if(!_0x7ae74b)return![];const _0x1a60a4=_0x3fb61b?.[_0x31b214(0x1cc,0x23e)]||_0x3fb61b?.['path']||'';if(_0x1a60a4[_0x469e74(0x4f7,0x588)+'e']()[_0x469e74(0x545,0x5ae)](_0x31b214(0x13d,0x1e8))&&!_0x4598ca[_0x469e74(0x45b,0x3e1)](0x2)[_0x469e74(0x585,0x4f1)](_0x18f764=>_0x2c7cc5[_0x31b214(0x21a,0x20e)](_0x18f764[_0x469e74(0x4f7,0x45d)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x184669,_0x2b65d0){if(_0x2b65d0)return _0x771e1d(-0x43,-0x98)+_0x29e53d(0x1f1,0x267);const _0xa02893=_0x184669[_0x29e53d(0x24d,0x1f4)][_0x29e53d(0x289,0x26a)+'e'](),_0x3dad4f=_0x184669[_0x29e53d(0x24d,0x269)];if(_0x184669[_0x29e53d(0x1b9,0x14e)]===_0x29e53d(0x2db,0x261)){if(_0x771e1d(-0x100,-0xd0)===_0x771e1d(-0x11e,-0xd0)){const _0x1b0e01=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x771e1d(-0x144,-0x147)](_0x184669['toolResult']);if(_0x1b0e01)return _0x771e1d(-0x153,-0x1d9);const _0x108d34=[_0x771e1d(-0x15b,-0x1bf),_0x771e1d(-0x247,-0x1c1),'opted\x20for',_0x771e1d(-0x1a0,-0x14f),'picked',_0x771e1d(-0x13b,-0x136)];if(_0x108d34['some'](_0x1beffa=>_0xa02893[_0x771e1d(-0x65,-0xab)](_0x1beffa)))return _0x771e1d(-0x1e5,-0x1ad);const _0x4eaa2b=[_0x771e1d(-0x114,-0x166),_0x771e1d(-0x226,-0x18a),_0x29e53d(0x24a,0x21a),_0x771e1d(-0x52,-0xc7),_0x29e53d(0x1d0,0x134),_0x29e53d(0x2ee,0x25d)+_0x29e53d(0x211,0x1cb)];if(_0x4eaa2b[_0x29e53d(0x317,0x2c5)](_0x25f4c4=>_0xa02893[_0x29e53d(0x2d7,0x295)](_0x25f4c4))){if(_0x771e1d(-0x26e,-0x1c4)!==_0x771e1d(-0x1a8,-0x1c4)){const _0xe39c80=_0x1bc905['trim']();if(_0xe39c80[_0x29e53d(0x251,0x281)](_0x29e53d(0x1c4,0x1ba)))return!![];if(_0xe39c80[_0x771e1d(-0xa8,-0x131)](_0x771e1d(-0xc5,-0xe1)+'\x22')||_0xe39c80[_0x29e53d(0x251,0x2e3)]('{\x22file_pat'+'h\x22'))return!![];if(_0xe39c80[_0x771e1d(-0x15e,-0xab)](_0x29e53d(0x23c,0x1b8)+_0x771e1d(-0xe8,-0x149)))return!![];if(_0xe39c80['startsWith'](_0x29e53d(0x215,0x20d)+'me:')||_0xe39c80['startsWith'](_0x771e1d(-0x127,-0x10b)+_0x29e53d(0x201,0x16c)))return!![];if(_0xe39c80[_0x29e53d(0x251,0x24f)]('http:200')||_0xe39c80['startsWith'](_0x29e53d(0x318,0x3af)))return!![];if(_0xe39c80['startsWith'](_0x29e53d(0x1e8,0x289)+_0x29e53d(0x1fa,0x216)))return!![];const _0x2ae634=_0xe39c80[_0x771e1d(-0xff,-0x195)](0x0,0xc8);if(_0x2ae634[_0x29e53d(0x2d7,0x257)]('\x22status\x22:\x22'+'healthy\x22')&&_0x2ae634['includes'](_0x771e1d(-0x257,-0x1ba)+_0x29e53d(0x2ba,0x269)))return!![];const _0xcd0f64=_0xe39c80['split']('\x0a',0x1)[0x0],_0x476bda=[/브랜치로\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(_0x476bda['some'](_0x51decd=>_0x51decd[_0x29e53d(0x23b,0x1b4)](_0xcd0f64)))return!![];const _0x4f036a=[/^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 _0x4f036a[_0x29e53d(0x317,0x35c)](_0x4aea86=>_0x4aea86[_0x29e53d(0x23b,0x2f3)](_0xe39c80));}else return _0x29e53d(0x21c,0x1c6);}if(LEARNING_KEYWORDS_RE[_0x771e1d(-0xaf,-0x147)](_0x3dad4f))return _0x771e1d(-0x9c,-0xa6);}else return'';}function _0x771e1d(_0x2ef670,_0x3ec17a){return _0x419a88(_0x2ef670,_0x3ec17a- -0x553);}if(_0x184669['toolName']===_0x771e1d(-0x128,-0x1c7)||_0x184669[_0x771e1d(-0x214,-0x1c9)]==='Grep'||_0x184669['toolName']===_0x29e53d(0x206,0x20d))return _0x771e1d(-0x255,-0x1d9);function _0x29e53d(_0x558de5,_0x200dd0){return _0x419a88(_0x200dd0,_0x558de5- -0x1d1);}if(_0x184669[_0x29e53d(0x1b9,0x252)]===_0x771e1d(-0xa4,-0x11a)||_0x184669[_0x29e53d(0x1b9,0x159)]==='Edit'){const _0x597b30=extractFilePath(_0x184669[_0x771e1d(-0xba,-0x158)]),_0x56c595=_0x184669['toolResult'];if(_0x597b30&&(_0x597b30['includes']('/test/')||_0x597b30[_0x771e1d(-0xf9,-0xab)](_0x771e1d(-0xd3,-0xcf)))){if(_0x29e53d(0x2b8,0x2ed)===_0x771e1d(-0x156,-0xca))return _0x29e53d(0x1a9,0x166);else _0x34b548[_0x29e53d(0x221,0x1ad)](_0x249d4a);}if(_0x56c595[_0x771e1d(-0xef,-0x189)]<0x32||_0x56c595[_0x29e53d(0x289,0x1f6)+'e']()[_0x771e1d(0xc,-0xab)](_0x29e53d(0x203,0x1c9)+_0x29e53d(0x241,0x1c8)+'fully')||_0x56c595['toLowerCas'+'e']()['includes'](_0x29e53d(0x267,0x280)+'ed')||_0x56c595[_0x29e53d(0x289,0x214)+'e']()[_0x29e53d(0x2d7,0x347)](_0x771e1d(-0xdd,-0x134)+_0x771e1d(-0x207,-0x1c2)))return _0x29e53d(0x1a9,0x19f);if(LEARNING_KEYWORDS_RE[_0x771e1d(-0x16c,-0x147)](_0x56c595))return'learning';return _0x29e53d(0x2c5,0x272)+'rn';}return _0x771e1d(-0x185,-0x1d9);}export function buildContent(_0x56756d){const _0x351901=extractFilePath(_0x56756d[_0x2418c9(0x41e,0x36b)]);let _0x3199b9=_0x56756d[_0x2418c9(0x39b,0x38e)]['slice'](0x0,0x5dc)[_0x2418c9(0x38a,0x3eb)]();function _0x120b35(_0x512977,_0x2cf9e0){return _0x419a88(_0x2cf9e0,_0x512977-0x163);}function _0x2418c9(_0x35b4da,_0x24f1b4){return _0x419a88(_0x35b4da,_0x24f1b4- -0x90);}TOOL_LOG_JSON_TOOLS['has'](_0x56756d[_0x120b35(0x4ed,0x495)])&&_0x3199b9[_0x2418c9(0x3bf,0x392)]('{')&&(_0x3199b9=stripDiffContent(_0x3199b9));_0x56756d[_0x120b35(0x4ed,0x513)]==='Bash'&&_0x3199b9[_0x2418c9(0x30f,0x392)]('{')&&(_0x120b35(0x61c,0x589)==='viQJu'?_0x195962='episodic':_0x3199b9=extractBashContent(_0x3199b9));_0x3199b9[_0x2418c9(0x3a9,0x33a)]>0x1f4&&(_0x3199b9[_0x120b35(0x585,0x500)]('{')||_0x3199b9['startsWith']('['))&&(_0x3199b9=summarizeJsonResult(_0x3199b9));_0x3199b9=_0x3199b9[_0x120b35(0x521,0x4da)](0x0,0x3e8)[_0x120b35(0x5de,0x5d0)]();if(!_0x3199b9||isNoiseResult(_0x3199b9))return'';const _0x40f0d0=[];if(_0x351901)_0x40f0d0[_0x2418c9(0x408,0x362)](_0x120b35(0x603,0x5a7)+_0x351901);_0x40f0d0['push'](_0x3199b9);const _0x591f2a=_0x40f0d0['join']('\x0a');if(_0x591f2a[_0x120b35(0x52d,0x5e2)]<0x14)return'';return _0x591f2a;}const TOOL_LOG_JSON_TOOLS=new Set(['Edit',_0xf1ce0c(0x2cd,0x2d3),_0xf1ce0c(0x213,0x226),'Grep']);function stripDiffContent(_0x54d094){function _0x1d3169(_0x2e0ebf,_0x473b95){return _0x419a88(_0x2e0ebf,_0x473b95- -0x371);}function _0x40b2e4(_0x213007,_0x43c8f7){return _0x419a88(_0x43c8f7,_0x213007- -0x40e);}try{const _0x2a1be2=JSON['parse'](_0x54d094),_0x588c58=_0x2a1be2?.[_0x40b2e4(-0x49,-0x3f)];if(_0x2a1be2[_0x1d3169(0x1a1,0xf6)]||_0x2a1be2[_0x40b2e4(-0x22,-0x16)]||_0x2a1be2[_0x40b2e4(0x30,-0x89)+_0x40b2e4(-0x34,0x4d)]||_0x2a1be2[_0x40b2e4(0xb7,0xcb)]&&_0x2a1be2['filePath']&&typeof _0x2a1be2[_0x40b2e4(0x3f,0xbd)]===_0x1d3169(0x8a,0x13a)||_0x588c58&&_0x588c58[_0x40b2e4(0xd5,0x119)]&&typeof _0x588c58['content']==='string'||_0x2a1be2['mode']===_0x1d3169(0x13c,0xdc)&&typeof _0x2a1be2[_0x40b2e4(0x3f,0x6a)]===_0x40b2e4(0x9d,0x116))return'';return _0x54d094;}catch{if(_0x54d094[_0x40b2e4(0x9a,0x1e)]('\x22oldString'+'\x22')||_0x54d094['includes']('\x22newString'+'\x22')||_0x54d094['includes']('\x22structure'+_0x40b2e4(-0x2a,-0x9b))||_0x54d094['includes'](_0x1d3169(0x185,0x171))&&_0x54d094[_0x1d3169(0x171,0x137)](_0x1d3169(0x14d,0xa2))&&_0x54d094[_0x1d3169(0x1d6,0x137)]('\x22content\x22')||_0x54d094[_0x1d3169(0x172,0x137)](_0x40b2e4(-0x5d,-0xc8)+'ntent\x22')&&_0x54d094[_0x1d3169(0x1d3,0x137)](_0x1d3169(0xfe,0x10b)))return'';return _0x54d094;}}function _0x22ad(){const _0x42700a=['ywjZB3jIzwq','DgvZDa','l3zHCI9MB2XKzq','A2v5D29Yzhm','DhvZ','AxnbCNjHEq','mtyXnJK1mNPvufHNAW','zw4GC3vJy2vZCW','iMzPBgvqyxrOiG','CMvJB3jKsw5Qzq','icHbrfiTmdmZkq','zgvK','CgvUzgLUzW','AgfK','Bg9Hza','B3jIzwqGAw50BW','Cgf0DgvYBG','Dg9ju09tDhjPBG','D2vUDcb3AxrO','Dg9VBfjLC3vSDa','y3jLyxrLzcbZDq','BgLKyxrLza','BgLZDe1LBw9YAq','C3rHCNrZv2L0Aa','C2vYDMvY','zxzLCNK','C2v0','C2vTyw50Awm','zcb0BYbtzxnZAq','yxjL','Aw5N','DgHHDa','BxmSihnPz25PzG','BwfW','y29TBwfUza','rw1IzwrKAw5Nia','cLTpDxrWDxrDia','ywn0Aw9U','B3DU','ywXZBW','DMfSDwu','D2vIzMv0y2G','vg9VBfvZzsbLCG','BMCVAw5KzxGUAG','zM9Y','zMLSzsbJCMvHDa','v3jPDgu','Ew5Jzwq','EwfTBa','q05VBha','wKnKEgS','C3rYDwn0DxjLza','BMv3','z3rO','z2v0','DhvYzwq','BwLKu2vZC2LVBG','ywjZB3jIsw50BW','zxbPC29Kzq','mZu1ntiYA3DpvfbW','C2TPBgXjza','C2vJB25Kx3vWDa','w0eYqv0Gug9ZDa','twvTB3j5ignYzq','ChvZAgvK','ngftB0D1tq','y29UDgvUDa','DgHL','BxmGFcbJB25MAq','ruLvAM4','BxmSigrLzhvWoG','Axnnyxa','twvTB3j5ihnHDG','zhvYAw5N','yxrLzcaOBwvYzW','revmrvrfigLUDG','wuHjzfK','BIb0CMLNz2vYCW','v2vIu2vHCMnO','Dg9mB3DLCKnHCW','z3jLCa','zZOG','tKTcuhC','mtf1shryzfG','rgz6Axu','C2TPChbLzcaOCa','rMfPBgvKoG','CM90zwn0zwqGyq','DgHLAxi','Cg9W','zxHJBhvKzvbHDa','zwqP','B2XKu3rYAw5N','B3rHBdOG','lI9ZAgfYzwqUAG','D2vYzq','rNjVEMvUihnUyq','ig9Mig1LCMDLia','zwqGAw5ZDgvHza','lI4VC2TPBgWVzq','lxn5BMnLzca','zMfPBgvKoG','ug9ZDfrVB2XvCW','EYjMAwXLugf0Aa','lNLHBwW','AgvY','C0HxseG','yxrLza','B3rOzxi','rxjYB3i6','w0fYCMf5oIa','zwfJAa','DhjPBq','iMnVBNrLBNqI','ywLSzwq','CMvJB3jKrxH0CG','y2vuAhjLC2HVBa','BxmPcG','y21K','zxjYB3i','vvjryMe','l3rTCc8','Aw5MBW','zxiGzgvSzxrLkq','revmrvrf','B25SEq','uNvjsuW','lNLTBa','y29UzhmI','CNvSzq','zw1IzwrKAw5N','ru5pBMC','D3jPDgu','B3vY','ChjVAMvJDfbHDa','AM9PBG','EMzqqxm','vg9VBfvZzsbJBW','ihnVzNqTAw52yq','y29Kzv9Wyxr0zq','C2HHBgW','DMvYEq','CNnPB24','y291Bgq','C3LUyY5QCW','yxv0B1n5BMm','qxv0BY1ZEw5Jia','yxjNDG','DxnLlMPZ','rMLSztOG','Cg9ZDc10B29Slq','BwLNAhq','C3rKAw4','iM5LD1n0CMLUzW','qvfrDwG','l3rLC3qV','ExDVCMrZ','Aw5JBhvKzxm','zw5KC1DPDgG','twvTB3j5ihvWza','C3rYAw5N','qMfZAa','BgvHCM5PBMC','rgTzveS','yxrLCW','BwLSC24','ChnOB3qGBw9Kzq','yxrPB24GzMfPBa','y3jLyxrLtwvTBW','C2f2zuvTyMvKza','lMLUAq','ChjVy2vKDxjL','DhjPz2DLCNm','yw5K','DKTnq3G','CM91BMq','zxjYB3jFC29SDq','zNjVEMvUu25HCa','AgLZ','yxbW','yMvZDcbWCMfJDa','C2v0u3LUy1n0yq','lNrVBwW','BKfvsgW','y29T','A2v5D29Yze1HCa','DhLWzq','z2v0ugvUzgLUzW','DhvYzwqGkgfMDa','DxnLlNrZ','zxHPDa','Cgf0Aa','zwrPDa','CM9YoG','BM9Uzq','AgfZ','r3jLCa','BxbSzxrLzcaODa','C2vZC2LVBKLK','AxrZ','zw5HyMXLza','zMX1C2G','DKTxAeC','y2f0zwDVCNK','zMfSC2u','zMLSzv9WyxrO','qxv0BY1Jyxb0Dq','sg9VAYbZDgfYDa','mZCYmtvNAeT3se4','vgfZAW','BxmSigrIoIa','AMjTAui','ignVBNrLBNq','BMPLy3rPB24','BM93','iNr5CguI','zMLSzvbHDgG','y2fU','zw1VCNK6ig5Via','zMLUzenHBMrPza','lI4Vzw1IzwrKAq','C29Tzq','Ahr0CdO0mdq','v2vIrMv0y2G','y29UDgv4Da','CMvZB2X2zq','BNrLBNqI','C3rKB3v0','ywjVDMu','B2PIv2m','nfPIt0TVCW','v2D5tMm','yMvLBG','DgfNCW','Agf2zq','twvTB3j5ignHCa','B3j5ihn5BMmGzG','DgHPCW','vg9VBcbLDMfSDq','ChjVDMLKzxi','Dg9VBe5HBwu','lI4U','uMvHza','Ew91','A2v5CW','rLvwqMG','ANnVBG','y2nLC3nMDwXSEq','zgvJAwrLza','t2XKig1LBw9YEq','y2HVC2u','EYjZDgrVDxqIoG','C2LNBMLMAwnHBG','y3nZ','zNjVBq','iNvWDgLTzv9Zzq','BNvSBa','rfHXAgC','C3rKzxjY','zMv3','Ahr0CdOYmda','tK9pua','qure','z3vPzgvSAw5L','yxv0B0nHChr1CG','CMuGzgLZywjSzq','C3nLDcK','BwvZC2fNzq','zgvJAxnPB24','Bwf0y2G','zMLSDgvYzwq','Bw9Yzq','rxHJzxb0Aw9U','mZa4otu3nKTLExHmDW','EYjMAwXLx3bHDa','ywXPzgf0Aw9Uia','Dg90ywXty29Yzq','u2vUC2L0AxzLia','AhrTBa','iM1VzguIoIjJBW','C3rYAw5NAwz5','BwvYz2vdB250zq','nZqZmtCWAhbRqLnM','B25fBMq','vg9VBcbUB3qGAq','mty3otm5nZzUrK96sLq','C2TPBgXdB252zq','8j+uJsbBuhjLlunVBq','BwvHBMLUz2z1Ba','D2fZ','re9Mz0q','wffWDgm','C2XPy2u','yxbPs2v5','DxbKyxrLtwvTBW','C3bSAxq','DgLVBG','zMfPBgvK','DgfYz2v0twvTBW','zMLSzq','BMfTzq','D2fYBG','DhjHy2vIywnR','C3rHBMrHCMq','BgvUz3rO','BwL0xq','lcbZEw5JoIa','yxnZAxn0yw50','DgHHBG','zMLSzsbLEgnSDq','oefqsMvAta','rxrjAfC','Aw1LoG','igL0zw1Zxsa','zMLSzsb3CML0Da','C2LTAwXHCML0Eq','C2fTzq','r2XVyG','vvbeqvrf','ywjVDxq','ugf0y2G','tfvVD0W','Ew1S','ANvZDa','weLbqvK','D29YA2LUzW','Aw5Qzwn0zwrlzq','zNvSBhK','AwnL','u2TPBgW','zfbHDgnOiG','DgHLBq','zMLYC3rFDxb0Aq','y29Uy2f0','CgfYC2u','zw50CMLLCW','q2XHDwrLig1LBq','zxHJzxb0Aw9U','BMv3u3rYAw5N','y29UDMvUDgLVBG','yMfZAa','C3jJ','lMnMzW','u2TPChbPBMCGBq','ChvZAa','B2jQzwn0','lI4Vy2XHDwrLlW','Ew91CG','zMLSDgvY','DhH0','lMPZB24','BMnHDguP','zgvIDwC','Dg9VBeLUChv0','ig1LBw9YAwvZ','Eg1S','mZuWmda3me9LCxjtDW','zw1Izwq','C2HVDa','ChbLzcaOzhvWBa','Bwf5','lMvUDG','C2vSzwn0zwq','D291Bgq','r0nXCMK','rwrPDa','w0vYCM9Yxsa','mZeWBu5JEg1s','CNmV'];_0x22ad=function(){return _0x42700a;};return _0x22ad();}function extractBashContent(_0x8ec804){function _0x8e98cb(_0x50ff5d,_0x4fcd4b){return _0xf1ce0c(_0x50ff5d,_0x4fcd4b- -0x383);}function _0x3ad32f(_0x448128,_0x3f01f5){return _0xf1ce0c(_0x448128,_0x3f01f5- -0x4e);}try{const _0x425099=JSON['parse'](_0x8ec804),_0x4c6ddd=(_0x425099[_0x8e98cb(-0x171,-0x16c)]||'')[_0x3ad32f(0x36b,0x2c7)](),_0x4e1678=(_0x425099['stderr']||'')[_0x3ad32f(0x292,0x2c7)]();if(_0x4e1678&&_0x4e1678['length']>0xa)return _0x3ad32f(0x1f5,0x254)+_0x4e1678[_0x8e98cb(-0x16e,-0x12b)](0x0,0x1f4)+(_0x4c6ddd?_0x3ad32f(0x232,0x27b)+_0x4c6ddd[_0x3ad32f(0x24b,0x20a)](0x0,0x12c):'');if(_0x4c6ddd)return _0x4c6ddd[_0x8e98cb(-0x122,-0x12b)](0x0,0x3e8);return _0x8ec804[_0x3ad32f(0x243,0x20a)](0x0,0x1f4);}catch{return _0x8ec804['slice'](0x0,0x3e8);}}function summarizeJsonResult(_0x463384){function _0x2b1647(_0x4c6568,_0x26e227){return _0x419a88(_0x26e227,_0x4c6568- -0x477);}function _0x3a9d3d(_0x3231f0,_0x65fc35){return _0x419a88(_0x65fc35,_0x3231f0-0x113);}try{const _0x5aab8a=JSON[_0x2b1647(-0x8f,-0x116)](_0x463384);if(Array[_0x3a9d3d(0x523,0x4b2)](_0x5aab8a)){if(_0x3a9d3d(0x5b8,0x596)!==_0x2b1647(0x5e,-0x2a))return _0x2b1647(0x2,0x28)+_0x5aab8a['length']+_0x2b1647(-0xa4,-0xc9)+JSON[_0x3a9d3d(0x4c5,0x55d)](_0x5aab8a[0x0])[_0x3a9d3d(0x4d1,0x4e1)](0x0,0xc8)+_0x3a9d3d(0x49e,0x473);else _0x7b5e69[_0x3a9d3d(0x5e7,0x5d7)]();}const _0x565aff=Object[_0x3a9d3d(0x4a1,0x465)](_0x5aab8a)['slice'](0x0,0xa),_0x2e0634=_0x565aff[_0x3a9d3d(0x53f,0x4f5)](_0x40235f=>{const _0x3b2721=_0x5aab8a[_0x40235f];function _0x3b4f60(_0x5e8580,_0x53065e){return _0x2b1647(_0x53065e-0x4f9,_0x5e8580);}function _0x5cc7e5(_0x2e5c1b,_0x50dcb7){return _0x2b1647(_0x2e5c1b- -0x15c,_0x50dcb7);}const _0x50e2dc=typeof _0x3b2721===_0x3b4f60(0x5b1,0x52d)?_0x3b2721[_0x5cc7e5(-0x215,-0x1df)](0x0,0x50):JSON[_0x3b4f60(0x42e,0x434)](_0x3b2721)[_0x5cc7e5(-0x215,-0x284)](0x0,0x50);return _0x40235f+':\x20'+_0x50e2dc;})[_0x2b1647(0x1b,0x9c)](',\x20');return _0x2e0634[_0x2b1647(-0xb9,-0x5d)](0x0,0x320);}catch{if('CqeBU'===_0x2b1647(-0xbb,-0xe2))_0x5bcd66['setSyncSta'+_0x2b1647(-0x68,-0x5a)](_0x3b77b0['id'],null,'pending');else return _0x463384[_0x2b1647(-0xb9,-0x146)](0x0,0x1f4);}}function isNoiseResult(_0x551dc0){const _0x17e0da=_0x551dc0[_0x5e81cb(0x13a,0x109)]();function _0x2f5715(_0x4310e3,_0x8be793){return _0x419a88(_0x4310e3,_0x8be793- -0x59f);}if(_0x17e0da['startsWith'](_0x2f5715(-0x1ac,-0x20a)))return!![];if(_0x17e0da[_0x5e81cb(-0x1,0xb0)](_0x5e81cb(0xb7,0x100)+'\x22')||_0x17e0da[_0x5e81cb(0x114,0xb0)](_0x2f5715(-0x1b9,-0x1f3)+'h\x22'))return!![];if(_0x17e0da[_0x5e81cb(0x158,0x136)](_0x5e81cb(0x7b,0x9b)+_0x2f5715(-0x164,-0x195)))return!![];function _0x5e81cb(_0x9d5269,_0x52c708){return _0x419a88(_0x9d5269,_0x52c708- -0x372);}if(_0x17e0da[_0x5e81cb(0x9,0xb0)](_0x5e81cb(0xf9,0x74)+'me:')||_0x17e0da[_0x5e81cb(0x77,0xb0)](_0x5e81cb(0x1f,0xd6)+_0x5e81cb(0x19,0x60)))return!![];if(_0x17e0da[_0x5e81cb(0x118,0xb0)](_0x2f5715(-0x295,-0x201))||_0x17e0da[_0x5e81cb(0x91,0xb0)](_0x2f5715(-0xb9,-0xb6)))return!![];if(_0x17e0da[_0x2f5715(-0x1ae,-0x17d)](_0x2f5715(-0x188,-0x1e6)+'mit]'))return!![];const _0x563bfd=_0x17e0da[_0x5e81cb(0x10,0x4c)](0x0,0xc8);if(_0x563bfd['includes']('\x22status\x22:\x22'+'healthy\x22')&&_0x563bfd[_0x2f5715(-0xef,-0xf7)](_0x5e81cb(0x12,0x27)+_0x2f5715(-0x67,-0x114)))return!![];const _0x539fe3=_0x17e0da[_0x2f5715(-0x248,-0x1de)]('\x0a',0x1)[0x0],_0x2eda06=[/브랜치로\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(_0x2eda06[_0x2f5715(-0x110,-0xb7)](_0x258340=>_0x258340[_0x5e81cb(0x62,0x9a)](_0x539fe3)))return!![];const _0x4fc132=[/^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 _0x4fc132['some'](_0x541cdb=>_0x541cdb['test'](_0x17e0da));}const TAG_BLOCKLIST=new Set(['id',_0xf1ce0c(0x372,0x35d),_0xf1ce0c(0x35d,0x358),_0xf1ce0c(0x2e6,0x2db),'set',_0x419a88(0x39d,0x3ef),'table','the','to','in','of','a','is',_0x419a88(0x47d,0x437),_0xf1ce0c(0x335,0x37b),'add',_0x419a88(0x323,0x3c6),_0x419a88(0x3b7,0x433),_0xf1ce0c(0x247,0x2c6),'trim','type','data','list',_0x419a88(0x479,0x43f),_0xf1ce0c(0x343,0x2a6),'decision',_0xf1ce0c(0x3b8,0x355)+_0xf1ce0c(0x21c,0x25c),_0xf1ce0c(0x39b,0x330)+'rn',_0x419a88(0x34d,0x37a),_0xf1ce0c(0x276,0x287),'skill',_0xf1ce0c(0x3bd,0x347),'project_kn'+'owledge',_0x419a88(0x39f,0x439),_0x419a88(0x3ff,0x407),_0x419a88(0x434,0x4ac),_0xf1ce0c(0x1bf,0x226),_0xf1ce0c(0x292,0x271),_0xf1ce0c(0x348,0x369),_0x419a88(0x48c,0x4dc),_0x419a88(0x4f3,0x4ea),_0x419a88(0x40a,0x459),_0xf1ce0c(0x2de,0x329),_0xf1ce0c(0x2ad,0x365),_0xf1ce0c(0x266,0x288),'read','glob',_0x419a88(0x498,0x45b),'task',_0x419a88(0x38b,0x434),'websearch']),STOPWORDS=new Set([_0xf1ce0c(0x31f,0x2e8),_0x419a88(0x455,0x4b8),_0xf1ce0c(0x2cb,0x2c2),_0x419a88(0x318,0x3bb),_0x419a88(0x3d6,0x46a),_0x419a88(0x3d1,0x382),_0x419a88(0x3a2,0x384),_0x419a88(0x52f,0x4ce),_0x419a88(0x444,0x418),'will',_0xf1ce0c(0x22b,0x29f),_0xf1ce0c(0x3a5,0x334),'should',_0x419a88(0x4b5,0x402),_0xf1ce0c(0x336,0x33c),_0x419a88(0x3f2,0x497),_0x419a88(0x4d7,0x4e4),_0xf1ce0c(0x26e,0x221),_0xf1ce0c(0x2ac,0x2c4),_0xf1ce0c(0x3ab,0x36c),_0xf1ce0c(0x2fa,0x2d1),_0x419a88(0x398,0x398),'with','into','through',_0xf1ce0c(0x245,0x2ee),'after','before',_0x419a88(0x489,0x3d9),_0xf1ce0c(0x166,0x218),'all',_0x419a88(0x513,0x47a),_0x419a88(0x4da,0x424),'both',_0xf1ce0c(0x1ce,0x237),_0xf1ce0c(0x271,0x243),'most',_0x419a88(0x468,0x477),'some','such',_0x419a88(0x51f,0x488),_0x419a88(0x3ae,0x431),_0xf1ce0c(0x23f,0x270),_0x419a88(0x40e,0x3ce),'too',_0x419a88(0x3f2,0x498),_0x419a88(0x38d,0x3dd),_0xf1ce0c(0x2c5,0x2cc),'true',_0xf1ce0c(0x39f,0x371),_0xf1ce0c(0x2b9,0x234),_0x419a88(0x550,0x4cd),'undefined','they',_0x419a88(0x338,0x3e5),_0x419a88(0x4fb,0x463),_0xf1ce0c(0x30e,0x28f),_0xf1ce0c(0x2f7,0x357),_0x419a88(0x4d5,0x474),_0x419a88(0x3f7,0x490),_0x419a88(0x344,0x38d),'we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x45cee4,_0x3a5e05=0x3){function _0x581067(_0x34027e,_0x3965bd){return _0xf1ce0c(_0x34027e,_0x3965bd-0x61);}const _0xbd9f44=_0x45cee4[_0x581067(0x3a2,0x355)+'e'](),_0x599775=_0xbd9f44[_0x581067(0x1f3,0x2a2)](WORD_RE)||[];function _0x5d124e(_0x42ce11,_0x5669ea){return _0xf1ce0c(_0x5669ea,_0x42ce11- -0x3b2);}const _0x114bbf=new Map();for(const _0x2a4a8e of _0x599775){if(_0x2a4a8e[_0x581067(0x365,0x2c5)]<0x3)continue;if(STOPWORDS[_0x581067(0x40c,0x3c9)](_0x2a4a8e))continue;if(TAG_BLOCKLIST['has'](_0x2a4a8e))continue;_0x114bbf[_0x581067(0x3b8,0x320)](_0x2a4a8e,(_0x114bbf[_0x581067(0x303,0x33c)](_0x2a4a8e)||0x0)+0x1);}return[..._0x114bbf[_0x5d124e(-0x12f,-0xc8)]()]['sort']((_0x42f020,_0x25fb11)=>_0x25fb11[0x1]-_0x42f020[0x1])[_0x581067(0x295,0x2b9)](0x0,_0x3a5e05)[_0x5d124e(-0xec,-0xf2)](([_0xc9bb1e])=>_0xc9bb1e);}function buildTags(_0x465e36){const _0x4b5a59=[];function _0x2b4b97(_0x75183a,_0x4f644d){return _0x419a88(_0x75183a,_0x4f644d- -0x23);}const _0xf630d5=extractFilePath(_0x465e36[_0x2b4b97(0x3dd,0x3d8)]);if(_0xf630d5){const _0x2dd11e=_0xf630d5[_0x36dcd8(0x58,-0x2c)]('/')[_0x2b4b97(0x44e,0x3d3)](Boolean),_0x172070=_0x2dd11e[_0x2b4b97(0x419,0x39b)](-0x3)[_0x36dcd8(0x8d,0x53)](_0x41ce68=>_0x41ce68['length']>0x2&&!TAG_BLOCKLIST[_0x36dcd8(0x165,0x1d5)](_0x41ce68['toLowerCas'+'e']()));for(const _0x5c55f6 of _0x172070[_0x2b4b97(0x35d,0x39b)](0x0,0x2)){const _0x52848a=_0x5c55f6['replace'](/\.[^.]+$/,'');_0x52848a[_0x2b4b97(0x34f,0x3a7)]>0x2&&!TAG_BLOCKLIST['has'](_0x52848a['toLowerCas'+'e']())&&_0x4b5a59[_0x2b4b97(0x36e,0x3cf)](_0x52848a);}const _0x5131c4=_0xf630d5[_0x36dcd8(0x58,0x107)]('.')[_0x36dcd8(0xfb,0xc0)]();if(_0x5131c4){const _0x2688fb=_0x5131c4[_0x36dcd8(0xf1,0x13e)+'e']();if(!/^\d+$/[_0x2b4b97(0x410,0x3e9)](_0x5131c4)&&_0x5131c4[_0x36dcd8(0x61,0xb8)]>0x2&&!TAG_BLOCKLIST[_0x36dcd8(0x165,0x169)](_0x2688fb)){const _0x591d14=['md',_0x36dcd8(0x8e,0x34),_0x2b4b97(0x385,0x36d),_0x36dcd8(0x73,0x0),_0x36dcd8(0xd2,0x156),'xml',_0x2b4b97(0x400,0x38d),'css'];!_0x591d14[_0x36dcd8(0x13f,0x16f)](_0x2688fb)&&_0x4b5a59[_0x2b4b97(0x382,0x3cf)](_0x5131c4);}}}if(_0x4b5a59['length']===0x0){const _0x3831f3=extractKeywords(_0x465e36[_0x36dcd8(0xb5,0x80)],0x3);_0x4b5a59[_0x36dcd8(0x89,0xe4)](..._0x3831f3);}function _0x36dcd8(_0x2f16e2,_0x3d474d){return _0x419a88(_0x3d474d,_0x2f16e2- -0x369);}return _0x4b5a59;}export async function main(){const _0x28b37a=[];for await(const _0x22363e of process[_0x212d9a(0x180,0x129)]){_0x28b37a[_0x212d9a(0xcf,0x163)](_0x22363e);}const _0x5343ea=Buffer[_0x37cdc5(-0xd8,-0x110)](_0x28b37a)['toString']('utf-8')[_0x212d9a(0x158,0x1d3)]();function _0x37cdc5(_0x1aefec,_0x44fd58){return _0x419a88(_0x1aefec,_0x44fd58- -0x4f7);}function _0x212d9a(_0x1a0e6f,_0xe7a1d6){return _0x419a88(_0xe7a1d6,_0x1a0e6f- -0x323);}!_0x5343ea&&process[_0x212d9a(0x1a6,0x1d4)](0x0);try{const _0x4ef59a=JSON['parse'](_0x5343ea),_0x26083c=normalizeHookInput(_0x4ef59a);await handlePostToolUse(_0x26083c);}catch(_0x418e68){console[_0x212d9a(0x15f,0x196)]('[a2a]\x20Post'+_0x37cdc5(-0x54,-0xc2)+_0x212d9a(0x1a9,0x115),_0x418e68 instanceof Error?_0x418e68['message']:_0x418e68),process[_0x212d9a(0x1a6,0x204)](0x0);}finally{closeSharedDb();}}const isMainModule=process[_0xf1ce0c(0x322,0x338)][0x1]?.[_0xf1ce0c(0x2fe,0x343)](_0xf1ce0c(0x3c1,0x33b)+_0xf1ce0c(0x399,0x339))||process[_0xf1ce0c(0x33d,0x338)][0x1]?.['endsWith'](_0xf1ce0c(0x339,0x33b)+_0x419a88(0x501,0x4c8));isMainModule&&main();
|
|
1
|
+
(function(_0x18d609,_0x475c4c){function _0x3e9bc5(_0x36e523,_0x1c0f34){return _0xc51a(_0x36e523-0x317,_0x1c0f34);}const _0x2c677c=_0x18d609();function _0x5aa06b(_0x52e31f,_0x3bfdc7){return _0xc51a(_0x3bfdc7- -0x313,_0x52e31f);}while(!![]){try{const _0x280132=-parseInt(_0x3e9bc5(0x487,0x4c3))/0x1*(parseInt(_0x3e9bc5(0x3ba,0x37c))/0x2)+-parseInt(_0x3e9bc5(0x4c0,0x53b))/0x3+-parseInt(_0x3e9bc5(0x518,0x55e))/0x4*(parseInt(_0x3e9bc5(0x43c,0x42e))/0x5)+-parseInt(_0x5aa06b(-0x241,-0x1a8))/0x6+-parseInt(_0x5aa06b(-0x10b,-0x18a))/0x7*(parseInt(_0x5aa06b(-0x245,-0x1ab))/0x8)+-parseInt(_0x5aa06b(-0x195,-0x1c0))/0x9+parseInt(_0x3e9bc5(0x441,0x406))/0xa*(parseInt(_0x3e9bc5(0x492,0x4ff))/0xb);if(_0x280132===_0x475c4c)break;else _0x2c677c['push'](_0x2c677c['shift']());}catch(_0x4f305f){_0x2c677c['push'](_0x2c677c['shift']());}}}(_0x42d1,0xc3316));function _0x1e8f95(_0x4d0ea9,_0x5e3bf){return _0xc51a(_0x4d0ea9-0x1ec,_0x5e3bf);}import{getSharedDb,closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';import{scoreSignificance}from'../extraction/scorer.js';function _0xc51a(_0x3a15fb,_0x1c7e86){_0x3a15fb=_0x3a15fb-0x98;const _0x42d14d=_0x42d1();let _0xc51a67=_0x42d14d[_0x3a15fb];if(_0xc51a['kDxCvw']===undefined){var _0x340de1=function(_0x24cb7b){const _0x31f49d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53d41e='',_0x5b5608='';for(let _0x5733a5=0x0,_0x1edc11,_0x578dfb,_0x185bc6=0x0;_0x578dfb=_0x24cb7b['charAt'](_0x185bc6++);~_0x578dfb&&(_0x1edc11=_0x5733a5%0x4?_0x1edc11*0x40+_0x578dfb:_0x578dfb,_0x5733a5++%0x4)?_0x53d41e+=String['fromCharCode'](0xff&_0x1edc11>>(-0x2*_0x5733a5&0x6)):0x0){_0x578dfb=_0x31f49d['indexOf'](_0x578dfb);}for(let _0x24b11c=0x0,_0x149d7b=_0x53d41e['length'];_0x24b11c<_0x149d7b;_0x24b11c++){_0x5b5608+='%'+('00'+_0x53d41e['charCodeAt'](_0x24b11c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b5608);};_0xc51a['wcJyuM']=_0x340de1,_0xc51a['GLTFsN']={},_0xc51a['kDxCvw']=!![];}const _0x240700=_0x42d14d[0x0],_0x2b6c98=_0x3a15fb+_0x240700,_0xc26926=_0xc51a['GLTFsN'][_0x2b6c98];return!_0xc26926?(_0xc51a67=_0xc51a['wcJyuM'](_0xc51a67),_0xc51a['GLTFsN'][_0x2b6c98]=_0xc51a67):_0xc51a67=_0xc26926,_0xc51a67;}import{filterSensitiveInfo}from'../extraction/filter.js';import{DedupManager}from'../extraction/dedup-manager.js';import{isProtectedFromCleanup}from'../lifecycle/cleanup.js';function _0x42d1(){const _0x42c003=['CgfYC2u','Bg9JywW','CwjNuM0','AgfK','8j+uJsbBuhjLlunVBq','C29Tzq','yMvZDcbWCMfJDa','BNvSBa','AgvHBhrOEsi','BMfTzq','C2TPBgXjza','D2vUDcb3AxrO','BxmGFcbJB25MAq','yxjNDG','lI4VC2TPBgWVzq','iNr5CguI','ihnVzNqTAw52yq','z2v0','zxjYB3i6','yxv0B1n5BMm','zxbPC29KAwm','zxHPDa','C2vSzwn0zwq','igL0zw1Zxsa','ywrK','DMfSDwf0B3iUAG','ChvZAa','zxjYB3i','BxmSigrLzhvWoG','zgvJAwrLza','DhvZ','Dhj1zq','qxv0BY1ZEw5Jia','AKn0B0i','BIb0CMLNz2vYCW','BgLZDe1LBw9YAq','mtiYofDNDu9XtW','zMX1C2G','zMfJDa','qure','zMLSzv9WyxrO','zMLSDgvYzwq','u2TPBgW','y29Uy2f0','vg9VBfvZzsbLCG','iMzPBgvqyxrOiG','Axnnyxa','khDVDwXKihrYDq','CM90zwn0zwqGyq','ywzSA1O','y29T','vg9VBfvZzsbJBW','B2jQzwn0','BwfW','icHbrfiTmdmZkq','mMD5CKP0ta','iNvWDgLTzv9Zzq','zxjYB3jFC29SDq','zZOG','zgvJAxnPB24','BMCVAw5KzxGUAG','yxrPB24GzMfPBa','BwLKu2vZC2LVBG','B3rOzxi','C2LTAwXHCML0Eq','B3j5ihn5BMmGzG','ChjVy2vKDxjL','yxv0B0nHChr1CG','C3rKAw4','Bw9Yzq','B25SEq','y29UDgv4Da','iokaLcbHDxrVlxn5','AxnbCNjHEq','y29UDgvUDa','B3btruO','C2f2zuvTyMvKza','BwvZC2fNzq','u29gvLC','Aw5MBW','C3rHCNrZv2L0Aa','qNHoAwq','BMnHDguP','zMLSDgvY','rNjVEMvUihnUyq','zNjVEMvUu25HCa','Aw5JBhvKzxm','C2vTyw50Awm','C2HVDa','Ahr0CdOYmda','qxv0BY1Jyxb0Dq','Bw9Kzq','Dg9VBe5HBwu','u3LUy0nVDw50','iM9Szfn0CMLUzW','C3rHBMrHCMq','EYjZDgrVDxqIoG','B25fBMq','C2v0u3LUy1n0yq','C3nLDcK','z3vPzgvSAw5L','twvTB3j5ignHCa','twvTB3j5ihnRAq','sg9VAYbJB21WBa','y2HVC2u','ignVBNrLBNq','C3rYAw5N','C2fYr0y','D2fYBG','BNrLBNqI','rMLSztOG','C2vZC2LVBKLK','v3jPDgu','iM1VzguIoIjJBW','CgvUzgLUzW','rgvKDxaGzgvJAq','ChjVAMvJDfbHDa','rw1IzwrKAw5Nia','BgXT','C2TPChbLzcaOCa','C0jqC3e','zLrMs0C','ywXS','ve9PEfy','C2HHBgW','Dg9V','zxHJBhvKzvbHDa','Ew91CG','DMvYEq','svrpz0e','BgLZDa','zfbHDgnOiG','CMuGzgLZywjSzq','DgfYz2v0twvTBW','C3rYDwn0DxjLza','C3rKB3v0','zMLSzvbHDgG','l3rTCc8','C2vJB25Kx3vWDa','lI9ZAgfYzwqUAG','zMLUzenHBMrPza','Dhjswhi','r2XVyG','D2vIC2vHCMnO','uuXqywy','lI4Vy2XHDwrLlW','C3jJ','C2LNBMLMAwnHBG','AwnHBMnLoIa','ywXPzgf0Aw9Uia','A2v5D29Yzhm','BxmSihnPz25PzG','zw1Izwq','BwvHBMLUz2z1Ba','DhjHy2vIywnR','ChnOB3qGBw9Kzq','EYjMAwXLugf0Aa','BxmSigrIoIa','CMvJB3jKsw5Qzq','r3jLCa','DxbKyxrLtwvTBW','u3LUyZOG','yw5K','A2v5CW','twvTB3j5ignYzq','BgvHCM5PBMC','rNb6q0m','iMnVBNrLBNqI','Aw5N','ChjVAMvJDf9RBG','l3zHCI9MB2XKzq','CKnuAgi','CgLJA2vK','revmrvrfigLUDG','D2L0Aa','zhvYAw5N','w0eYqv0Gug9ZDa','sg9VAYbZDgfYDa','y29UzhmI','tK9pua','AgvY','A2v5D29Yze1HCa','yxjL','C2LVBG','vg9VBcbUB3qGAq','mZa0nvnizMjmCa','Bwf5','v2vIu2vHCMnO','BxmPcG','y2vuAhjLC2HVBa','mtiZndmWmZbNre10rM0','lMLUAq','CM91BMq','DgvZDa','ywjZB3jIsw50BW','Dg9VBeLUChv0','DhjPBq','l3rLC3qV','DgHLEq','Bg9Hza','q2zzC0u','DhLWzq','DgHHBG','qxv0B1n5BMm','B3rHBdOG','ywjVDxq','BurpCvO','D2vYzq','ChjVDMLKzxi','rKfjteve','C2XPy2u','Aw1LoG','lMPZB24','zw1IzwrKAw5N','zxbPC29Kzq','lI4U','zMLSzq','Dg9tDhjPBMC','Dw5KzwzPBMvK','y291Bgq','z2XVyG','rwrPDa','Dg90ywXty29Yzq','cLTpDxrWDxrDia','D29YA2LUzW','Bwu6','AM9PBG','C3rYAw5NAwz5','rwPVv1C','u0XPBue','twvTB3j5igfICW','mJiYmZG1nw1ZB2DiBG','vhjHy2vIywnR','yxbPs2v5','y3jLyxrLtwvTBW','CMvJB3jKrxH0CG','ChvZAgvK','w0vYCM9Yxsa','zM9Y','zgvIDwC','B2XKu3rYAw5N','BgLKyxrLza','r2XssuS','ihnRAwXS','zMfPBgvK','lxn5BMnLzca','Aw50BW','C3LUyY5QCW','DgHPCW','v2vIrMv0y2G','B3b0zwqGzM9Y','DNvpq2m','mta4mZjAvxfSAgq','ExDVCMrZ','Agf2zq','mZe5nZqXmMnNs25Hyq','ig9Mig1LCMDLia','yMfZAa','zw50CMLLCW','Dg9ju09tDhjPBG','ntu2mZqZDgnsvMPg','DgHLAxi','zMfSC2u','BMPLy3rPB24','D2LSBa','lcbZEw5JoIa','zgvJAwrL','rxjYB3i6','ug9VChq','y21K','EYjMAwXLx3bHDa','mZnttuDIrKm','D3jPDgu','zw5KC1DPDgG','Bwf0y2G','BxmSignSyxvKzq','y3jLyxrLzcbZDq','uKzAugi','iNn0CNvJDhvYzq','iM5LD1n0CMLUzW','ugf0y2G','zMLSzsb3CML0Da','AgfZ','rxHJzxb0Aw9U','zMfPBgvKoG','nty2m2fsvw12yq','ChbLzcaOzhvWBa','zMLSzsbLEgnSDq','C3bSAxq','BMv3u3rYAw5N','BwLNAhq','ywXZBW','Cg9W','lNLTBa','qMfZAa','Dg9mB3DLCKnHCW','zw5HyMXLza','ANvZDa','yxrLzcaOBwvYzW','Cg9ZDc10B29Slq','v1LhvKG','zw1VCNK6ig5Via','BxbSzxrLzcaODa','zxrLza','rgzbqNa','z2v0tgf0zxn0sq','ywn0Aw9U','DhH0','sNvSBKW','zwfJAa','EwfTBa','B3vY','CNvSzq','CMvWBgfJzq','vvbeqvrf','ywjVDMu','zcb0BYbtzxnZAq','odu0mtmWzfLTyuPi','C2vYDMvY','Dg9VBfjLC3vSDa','BM93','rvjst1i6','BwL0xq','t2XKig1LBw9YEq','lI4Vzw1IzwrKAq','w0fYCMf5oIa','y29UDMvUDgLVBG','DhjPz2DLCNm','zxiGzgvSzxrLkq','yxrLCW','DhvYzwq','C3rKzxjY','u2TPChbPBMCGBq','zxHWzxjPzw5Jzq','yMvLBG','zgvK','C2v0','tMHOwNu','wxDPtNC','y29Kzv9Wyxr0zq','Aw5Qzwn0zwrlzq','DgHL','vu14D2K','BgvUz3rO','DerdAxe','vgfZAW','DgHYB3vNAa','B3DU','Cgf0Aa','C2HVDwXK','u2vUC2L0AxzLia','t3HHr3i','y3nZ','BMv3','revmrvrf','B3jIzwqGAw50BW','AwnHDguP','BMmGzgvMzxjYzq','yxnZAxn0yw50','AxrZ','EhHNyLy','q2XHDwrLig1LBq','uMvHza','DgLVBG','D2fZ','AhrTBa','ywn0Aw9UrxzHBa','lNrVBwW','D291Bgq'];_0x42d1=function(){return _0x42c003;};return _0x42d1();}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':_0x2ec267(-0xe,0x4c),'code_pattern':_0x1e8f95(0x3ef,0x414),'decision':_0x1e8f95(0x32e,0x351),'context':_0x1e8f95(0x32e,0x297),'project_knowledge':_0x2ec267(0xa9,0x96),'convention':_0x1e8f95(0x29a,0x2dd),'learning':_0x2ec267(-0x55,0x4c),'skill':_0x2ec267(-0x15a,-0xbf),'rule':_0x2ec267(-0xd0,-0xbf)},AUTO_SYNC_THRESHOLD=0x14,AUTO_SYNC_TIMEOUT_MS=0x2710;export async function handlePostToolUse(_0x3a2771){const _0x1c3f5b=performance[_0x42aa2b(0x94,-0x3)]();function _0x476ea4(_0x370f0f,_0x91c7ca){return _0x2ec267(_0x370f0f,_0x91c7ca-0x46f);}const _0x5b7c13=new ConfigManager()[_0x42aa2b(-0x6b,-0x7c)]();function _0x42aa2b(_0x5d7bb9,_0x30680f){return _0x2ec267(_0x5d7bb9,_0x30680f- -0x42);}const _0x2f2ada=performance[_0x42aa2b(-0xa9,-0x3)](),_0x41d08f=createLogger('PostToolUs'+'e',_0x5b7c13['logging']);try{if(_0x476ea4(0x44e,0x4bf)===_0x476ea4(0x473,0x4bf)){_0x41d08f[_0x42aa2b(-0x101,-0xf4)](_0x42aa2b(-0x12a,-0x92)+'ed',{'toolName':_0x3a2771[_0x476ea4(0x3e5,0x3ca)]});if(!_0x5b7c13[_0x476ea4(0x437,0x3b1)+'e']['enabled']){if('FgQGz'!=='apiRq'){_0x41d08f[_0x42aa2b(-0x7d,-0xf4)](_0x42aa2b(-0xd1,-0xe9)+_0x42aa2b(-0x109,-0xbf)+'d');return;}else{const _0x4a6864=_0x1a6640['replace'](/\.[^.]+$/,'');_0x4a6864[_0x476ea4(0x527,0x4c5)]>0x2&&!_0x2cf3d1[_0x42aa2b(0x26,-0x29)](_0x4a6864[_0x42aa2b(-0xa,-0x1c)+'e']())&&_0x5ee0bf['push'](_0x4a6864);}}if(!_0x5b7c13[_0x42aa2b(-0x169,-0x100)+'e'][_0x476ea4(0x4c7,0x4b5)][_0x476ea4(0x3a3,0x3c4)](_0x3a2771['toolName'])){if(_0x476ea4(0x3fd,0x49e)!=='MOPbo'){_0x41d08f[_0x476ea4(0x49d,0x45d)](_0x476ea4(0x495,0x426)+_0x42aa2b(0x47,0x50),{'toolName':_0x3a2771[_0x42aa2b(-0x159,-0xe7)]});return;}else{const _0x47f072=_0x38aca0['split']('/')[_0x42aa2b(-0x1,-0x1f)]()??'';return _0x234fd7[_0x42aa2b(0x3d,0x33)](_0x117a55=>{if(_0x117a55[_0x2eae2f(-0x23a,-0x238)]('*'))return _0x47f072[_0x2eae2f(-0x179,-0xc7)](_0x117a55['slice'](0x1));function _0xebaaa0(_0x3bfa0f,_0x54f290){return _0x476ea4(_0x3bfa0f,_0x54f290- -0x2e1);}function _0x2eae2f(_0x31eb1f,_0x4db476){return _0x476ea4(_0x4db476,_0x31eb1f- -0x5f8);}if(_0x117a55['endsWith']('*'))return _0x47f072['startsWith'](_0x117a55[_0xebaaa0(0x1ed,0x15f)](0x0,-0x1));return _0x47f072===_0x117a55;});}}const _0x594119=extractFilePath(_0x3a2771[_0x476ea4(0x3c7,0x431)]);if(_0x594119&&isSensitiveFile(_0x594119,_0x5b7c13[_0x476ea4(0x339,0x3b1)+'e'][_0x42aa2b(-0x3f,-0xc5)+'terns'])){_0x41d08f[_0x476ea4(0x386,0x3bd)](_0x476ea4(0x557,0x4cc)+_0x476ea4(0x446,0x48d)+_0x476ea4(0x508,0x4bd),{'filePath':_0x594119});return;}if(_0x594119&&isClaudeMemoryFile(_0x594119)&&(_0x3a2771[_0x476ea4(0x47e,0x3ca)]===_0x476ea4(0x436,0x3de)||_0x3a2771[_0x476ea4(0x37d,0x3ca)]===_0x42aa2b(-0xe3,-0x66))){const _0x15e43e=performance['now']();try{if(_0x42aa2b(0xb3,0x13)!==_0x476ea4(0x56d,0x4c0)){const _0xb42b2c=getSharedDb(_0x5b7c13['db']['path']),{syncClaudeMd:_0x3aed03}=await import(_0x476ea4(0x498,0x3ff)+_0x476ea4(0x40f,0x465));await _0x3aed03(_0xb42b2c,{'claudeMdPath':_0x594119,'projectPath':_0x3a2771[_0x42aa2b(-0x142,-0xcf)+'h']});const _0xa7ece8=performance[_0x42aa2b(0x26,-0x3)](),_0x27b631=Math[_0x476ea4(0x46d,0x42e)](_0xa7ece8-_0x1c3f5b),_0x5ecc2c=Math[_0x42aa2b(-0x91,-0x83)](_0xa7ece8-_0x15e43e),_0xb9e577=Math[_0x42aa2b(-0xf5,-0x83)](_0x2f2ada-_0x1c3f5b);process[_0x42aa2b(-0x43,0x8)][_0x42aa2b(0x33,-0x33)]('[A2A]\x20Post'+_0x476ea4(0x329,0x3a1)+'mpleted\x20(t'+_0x476ea4(0x464,0x43a)+_0x27b631+(_0x42aa2b(0xb8,0x3a)+_0x42aa2b(-0x110,-0x109))+_0xb9e577+(_0x42aa2b(-0x75,-0x30)+_0x476ea4(0x394,0x40f))+_0x5ecc2c+_0x476ea4(0x3f0,0x42a)),_0x41d08f[_0x42aa2b(-0x1a6,-0xf4)](_0x42aa2b(-0x61,0x26)+'ory\x20file\x20s'+'ynced',{'filePath':_0x594119});}else{const _0x2fac67=_0x39e35f[_0x17f8e2],_0x3b1846=typeof _0x2fac67===_0x42aa2b(-0x176,-0xd9)?_0x2fac67[_0x42aa2b(-0x34,-0x71)](0x0,0x50):_0x437abb[_0x42aa2b(-0xa5,-0x60)](_0x2fac67)[_0x42aa2b(0x9,-0x71)](0x0,0x50);return _0x2789c1+':\x20'+_0x3b1846;}}catch(_0x52c095){_0x41d08f['warn'](_0x42aa2b(-0x5,0x26)+_0x42aa2b(-0x96,-0x102)+'ailed',{'error':_0x52c095 instanceof Error?_0x52c095[_0x476ea4(0x467,0x3bb)]:String(_0x52c095)});}return;}const _0x4e84c0=performance['now'](),_0x407b89={'uuid':_0x3a2771['sessionId'],'type':_0x476ea4(0x492,0x4d4),'message':{'role':_0x42aa2b(0x2e,0x23),'content':_0x3a2771['toolResult']},'timestamp':new Date()['toISOStrin'+'g']()},_0x26cd42=_0x3a2771[_0x476ea4(0x3f3,0x3ca)]===_0x42aa2b(-0x69,-0xd3),_0x106032=_0x594119?isConfigFile(_0x594119):![],_0x21e39a=detectActualError(_0x3a2771[_0x476ea4(0x401,0x4ad)],_0x3a2771[_0x42aa2b(-0x10b,-0x80)]);let _0x5f83eb;if(_0x3a2771[_0x42aa2b(-0x44,-0xe7)]==='Bash'&&_0x3a2771[_0x42aa2b(0x34,-0x80)])try{const _0x5f2479=typeof _0x3a2771[_0x476ea4(0x436,0x431)]===_0x42aa2b(-0x11f,-0xd9)?JSON['parse'](_0x3a2771[_0x476ea4(0x4d8,0x431)]):_0x3a2771[_0x42aa2b(-0x3b,-0x80)];_0x5f83eb=_0x5f2479?.['command']??_0x5f2479?.[_0x42aa2b(-0x10,-0x36)]??(typeof _0x5f2479===_0x476ea4(0x456,0x3d8)?_0x5f2479:undefined);}catch{_0x5f83eb=typeof _0x3a2771[_0x42aa2b(-0x21,-0x80)]===_0x476ea4(0x40b,0x3d8)?_0x3a2771[_0x476ea4(0x39f,0x431)]:undefined;}const _0x4f254a=scoreSignificance(_0x407b89,{'toolName':_0x3a2771[_0x476ea4(0x47b,0x3ca)],'isNewFile':_0x26cd42,'isConfigChange':_0x106032,'hasError':_0x21e39a,'bashCommand':_0x5f83eb},_0x5b7c13['autoCaptur'+'e'][_0x42aa2b(-0x15d,-0xb0)+_0x42aa2b(-0x31,-0x86)+'d']),_0x1ca616=performance[_0x476ea4(0x522,0x4ae)](),_0xf64980=_0x5b7c13[_0x42aa2b(-0xa9,-0x100)+'e'][_0x42aa2b(-0x20,-0xb0)+_0x476ea4(0x445,0x42b)+'d']*0.5;_0x41d08f[_0x42aa2b(-0xa9,-0xf4)]('Tool\x20evalu'+'ated',{'toolName':_0x3a2771[_0x476ea4(0x324,0x3ca)],'score':_0x4f254a['totalScore'],'shouldCapture':_0x4f254a['totalScore']>=_0xf64980});if(_0x4f254a[_0x476ea4(0x486,0x44c)]<_0xf64980)return;const _0x3f1647=determineCategory(_0x3a2771,_0x21e39a),_0x34f1d2=buildContent(_0x3a2771);if(!_0x34f1d2){_0x41d08f[_0x42aa2b(-0x9f,-0xf4)](_0x42aa2b(0xb8,0x9)+_0x476ea4(0x511,0x49b)+_0x476ea4(0x414,0x407)+_0x42aa2b(-0x81,-0xda),{'toolName':_0x3a2771['toolName']});return;}const _0x3d5f00=filterSensitiveInfo(_0x34f1d2);let _0x20d509;if(_0x21e39a)'WYGVH'!==_0x476ea4(0x47d,0x49a)?_0x4a6bc2[_0x476ea4(0x53b,0x4f9)](_0x35db32):_0x20d509=_0x476ea4(0x55f,0x4f3);else _0x4f254a[_0x476ea4(0x39d,0x44c)]<_0x5b7c13[_0x42aa2b(-0xb2,-0x100)+'e']['significan'+_0x476ea4(0x4d2,0x42b)+'d']?_0x20d509='working':_0x476ea4(0x319,0x3b9)==='opSEJ'?_0x20d509=_0x42aa2b(-0x5e,-0xec):_0xd4f419(_0x1ee432[_0x42aa2b(-0x16,-0xbe)+'ry'])?_0x14743a[_0x476ea4(0x374,0x3bd)](_0x42aa2b(-0x81,-0x96)+_0x476ea4(0x3ef,0x403)+_0x42aa2b(-0x14,-0xcc)+_0x476ea4(0x345,0x39e)+_0x476ea4(0x369,0x3d1),{'memoryId':_0x1d545d[_0x476ea4(0x41e,0x3f3)+'ry']['id'],'category':_0x5093fa[_0x42aa2b(-0x9e,-0xbe)+'ry']['category']}):(_0x59b594[_0x42aa2b(-0x138,-0xa3)+'ry'](_0x5c263d['targetMemo'+'ry']['id'],{'invalidAt':new _0x1a7b5b()[_0x476ea4(0x3d1,0x471)+'g']()}),_0x1a0849[_0x42aa2b(-0x120,-0xf4)](_0x476ea4(0x461,0x4b1)+_0x476ea4(0x459,0x4ef)+_0x476ea4(0x432,0x45f),{'memoryId':_0x1c306d[_0x42aa2b(-0x111,-0xbe)+'ry']['id']}));const _0x50db10={'content':_0x3d5f00[_0x476ea4(0x471,0x508)],'category':_0x3f1647,'tier':_0x20d509,'tags':buildTags(_0x3a2771),'projectPath':_0x3a2771[_0x42aa2b(-0x141,-0xcf)+'h'],'sessionId':_0x3a2771['sessionId'],'memoryType':CATEGORY_TYPE_MAP[_0x3f1647]??_0x476ea4(0x547,0x505)},_0x3852c6=getSharedDb(_0x5b7c13['db'][_0x476ea4(0x494,0x4ca)]),_0x1fee5c=performance[_0x42aa2b(0xa3,-0x3)](),_0x583619=new DedupManager(),_0x2d90a6=_0x583619[_0x42aa2b(-0x8e,-0xb7)+_0x42aa2b(0x5a,0x6)](_0x3852c6[_0x476ea4(0x521,0x502)+'es']({'projectPath':_0x3a2771[_0x476ea4(0x458,0x3e2)+'h'],'limit':0x32,'excludeParents':!![]}),_0x3f1647,_0x3a2771[_0x42aa2b(-0xa7,-0xcf)+'h']),_0x43b0ed=_0x583619[_0x42aa2b(-0xab,-0x39)](_0x3d5f00[_0x476ea4(0x559,0x508)],_0x2d90a6),_0x12ddf0=performance[_0x42aa2b(0x33,-0x3)]();_0x41d08f[_0x476ea4(0x3f2,0x3bd)](_0x476ea4(0x33e,0x3e1)+_0x42aa2b(-0x8b,-0x8c),{'action':_0x43b0ed['action'],'similarity':_0x43b0ed['similarity']});const _0x261adf=performance['now']();let _0x2d7348;try{switch(_0x43b0ed['action']){case _0x476ea4(0x45d,0x421):_0x41d08f[_0x476ea4(0x398,0x3bd)](_0x42aa2b(-0x12f,-0xdd)+_0x42aa2b(-0xa2,-0x25)+_0x476ea4(0x47f,0x4d2),{'similarity':_0x43b0ed[_0x42aa2b(-0x18b,-0x103)]});return;case _0x42aa2b(-0x17,-0x9):if(_0x43b0ed['targetMemo'+'ry']){if(_0x42aa2b(-0x80,-0x9d)===_0x42aa2b(-0x102,-0x75))return _0x476ea4(0x402,0x3b5);else{const _0x8b7602=_0x583619['mergeConte'+'nt'](_0x43b0ed[_0x476ea4(0x33f,0x3f3)+'ry'][_0x476ea4(0x3b6,0x3b8)],_0x3d5f00[_0x476ea4(0x5ae,0x508)]);if(_0x8b7602['truncated']){_0x2d7348=_0x3852c6[_0x476ea4(0x3bd,0x458)+'ry'](_0x50db10);_0x20d509!=='working'&&_0x3852c6[_0x476ea4(0x434,0x3d0)+_0x42aa2b(-0x5f,0x4c)](_0x2d7348['id'],null,_0x42aa2b(-0xa9,-0xd1));_0x41d08f['info']('Memory\x20sav'+'ed\x20instead'+_0x42aa2b(-0xc8,-0x43)+_0x42aa2b(-0x11d,-0x114)+_0x42aa2b(-0x121,-0xf1),{'targetId':_0x43b0ed[_0x476ea4(0x462,0x3f3)+'ry']['id'],'newId':_0x2d7348['id'],'targetLength':_0x43b0ed[_0x42aa2b(-0xd9,-0xbe)+'ry'][_0x476ea4(0x438,0x3b8)][_0x42aa2b(-0x15,0x14)],'wouldBeLength':_0x8b7602['wouldBeLen'+'gth']});break;}_0x3852c6['updateMemo'+'ry'](_0x43b0ed[_0x476ea4(0x47c,0x3f3)+'ry']['id'],{'content':_0x8b7602[_0x476ea4(0x345,0x3b8)],'tags':[...new Set([..._0x43b0ed[_0x42aa2b(-0x15a,-0xbe)+'ry']['tags']||[],...buildTags(_0x3a2771)])]}),_0x41d08f[_0x476ea4(0x33f,0x3bd)]('Memory\x20upd'+_0x476ea4(0x3f7,0x498)+'ed)',{'memoryId':_0x43b0ed[_0x476ea4(0x35d,0x3f3)+'ry']['id']});}}return;case _0x476ea4(0x56e,0x4d0):{if(_0x42aa2b(0x97,0x1c)!==_0x476ea4(0x45b,0x419)){_0x43b0ed[_0x42aa2b(-0xc0,-0xbe)+'ry']&&(isProtectedFromCleanup(_0x43b0ed[_0x42aa2b(-0x77,-0xbe)+'ry'])?_0x41d08f[_0x42aa2b(-0xc4,-0xf4)](_0x42aa2b(-0xf9,-0x96)+_0x42aa2b(-0x62,-0xae)+_0x476ea4(0x42a,0x3e5)+_0x42aa2b(-0x186,-0x113)+'sset)',{'memoryId':_0x43b0ed[_0x476ea4(0x437,0x3f3)+'ry']['id'],'category':_0x43b0ed[_0x476ea4(0x465,0x3f3)+'ry']['category']}):_0x476ea4(0x31e,0x3bc)!==_0x42aa2b(-0xf3,-0x7b)?(_0x3852c6[_0x476ea4(0x364,0x40e)+'ry'](_0x43b0ed[_0x42aa2b(-0x53,-0xbe)+'ry']['id'],{'invalidAt':new Date()[_0x42aa2b(-0xd5,-0x40)+'g']()}),_0x41d08f['info']('Old\x20memory'+_0x42aa2b(0x18,0x3e)+_0x42aa2b(-0xf,-0x52),{'memoryId':_0x43b0ed['targetMemo'+'ry']['id']})):_0xa9765d[_0x42aa2b(-0x69,-0x54)](_0x476ea4(0x407,0x3c2)+_0x42aa2b(-0x3,-0xa8)+_0x476ea4(0x3a5,0x3a4)+_0x42aa2b(-0x122,-0xfb)+_0x42aa2b(0xc2,0x22)+'d\x20to\x20Sessi'+'onEnd'));_0x2d7348=_0x3852c6[_0x42aa2b(0x26,-0x59)+'ry'](_0x50db10);if(_0x20d509!==_0x476ea4(0x3a9,0x44e)){if('tDCiq'!==_0x476ea4(0x41b,0x4c6)){if(_0x43e855[_0x42aa2b(-0xd2,-0xed)]('\x22oldString'+'\x22')||_0x507bc5['includes'](_0x476ea4(0x451,0x485)+'\x22')||_0x9f48c1['includes'](_0x42aa2b(-0x9e,-0x2d)+_0x476ea4(0x3ec,0x3f1))||_0x4c85da[_0x476ea4(0x466,0x3c4)](_0x476ea4(0x4a2,0x4ee))&&_0xa0a682[_0x476ea4(0x328,0x3c4)]('\x22filePath\x22')&&_0x244d52[_0x476ea4(0x374,0x3c4)](_0x476ea4(0x389,0x415))||_0x2df86e[_0x42aa2b(-0xe8,-0xed)](_0x42aa2b(-0x97,-0xd2)+_0x42aa2b(-0x15d,-0xd6))&&_0x398e0c[_0x476ea4(0x47d,0x3c4)]('\x22content\x22'))return'';return _0x4516d1;}else _0x3852c6[_0x476ea4(0x44f,0x3d0)+_0x476ea4(0x53d,0x4fd)](_0x2d7348['id'],null,_0x42aa2b(-0x146,-0xd1));}_0x41d08f[_0x476ea4(0x43f,0x3bd)](_0x42aa2b(-0x91,-0xde)+'tured\x20(aft'+_0x42aa2b(-0x2d,0x5),{'category':_0x3f1647,'memoryId':_0x2d7348['id']});break;}else return'';}case _0x476ea4(0x52f,0x506):default:_0x2d7348=_0x3852c6[_0x476ea4(0x4fd,0x458)+'ry'](_0x50db10);_0x20d509!==_0x42aa2b(-0x81,-0x63)&&_0x3852c6[_0x42aa2b(-0x122,-0xe1)+_0x476ea4(0x507,0x4fd)](_0x2d7348['id'],null,_0x42aa2b(-0xd5,-0xd1));_0x41d08f[_0x476ea4(0x450,0x3bd)](_0x476ea4(0x34b,0x3d3)+_0x476ea4(0x40a,0x4b8),{'category':_0x3f1647,'memoryId':_0x2d7348['id']});break;}}catch(_0x36c12a){if(_0x476ea4(0x3ee,0x3ef)!==_0x42aa2b(-0x62,-0xca)){const _0x562c1c=_0x36c12a instanceof Error?_0x36c12a:new Error(String(_0x36c12a));_0x41d08f[_0x476ea4(0x492,0x4fa)](_0x42aa2b(-0xfd,-0x9f)+_0x42aa2b(-0x1bb,-0x106)+'ed',_0x562c1c,{'category':_0x3f1647});}else return _0x42aa2b(-0x14a,-0x108);}const _0x2b6eca=performance[_0x42aa2b(0x11,-0x3)]();if(_0x2d7348&&_0x5b7c13[_0x42aa2b(0x19,-0x6e)]?.[_0x42aa2b(-0x62,-0x1b)]&&_0x5b7c13[_0x476ea4(0x48a,0x443)][_0x476ea4(0x420,0x43e)]===_0x476ea4(0x4bf,0x4e0))try{const {createEmbeddingProvider:_0x16bd5d}=await import(_0x42aa2b(-0x6a,0x1)+_0x42aa2b(-0x103,-0x107)+'s'),_0x30d355=_0x16bd5d(_0x5b7c13['embedding'],_0x5b7c13[_0x476ea4(0x43d,0x3e4)]),_0x37122d=await Promise['resolve'](_0x30d355[_0x42aa2b(-0x53,-0xab)](_0x2d7348[_0x42aa2b(-0x94,-0xf9)]));Array[_0x476ea4(0x383,0x3b7)](_0x37122d)&&_0x3852c6[_0x476ea4(0x3ac,0x3ba)+'ing'](_0x2d7348['id'],_0x37122d);}catch(_0x4346d7){_0x41d08f['warn'](_0x476ea4(0x36b,0x3e3)+_0x476ea4(0x400,0x462),{'error':_0x4346d7 instanceof Error?_0x4346d7[_0x476ea4(0x3ba,0x3bb)]:String(_0x4346d7)});}try{const _0xaa0c22=_0x3852c6[_0x42aa2b(0x1b,-0x12)+_0x42aa2b(-0xd1,-0x3c)](_0x3a2771['sessionId']);if(_0xaa0c22&&_0xaa0c22[_0x476ea4(0x45e,0x4c2)+_0x42aa2b(-0x7f,-0x46)]){const _0x395579=(_0x3a2771[_0x476ea4(0x3f0,0x3ca)]+'\x20'+JSON['stringify'](_0x3a2771[_0x476ea4(0x4d5,0x431)])+'\x20'+String(_0x3a2771[_0x42aa2b(-0x20,-0x4)]))[_0x42aa2b(0x61,-0x1c)+'e'](),{parseInjectedKeywords:_0x5888cf}=await import(_0x476ea4(0x34d,0x3f9)+'s'),_0xddfe1=_0x5888cf(_0xaa0c22['injectedKe'+_0x476ea4(0x3bd,0x46b)]);let _0x3999d7=[],_0x42ef67=[];if(_0xddfe1[_0x476ea4(0x42a,0x39c)]){for(const [_0x300027,_0x2aaf07]of Object[_0x476ea4(0x3b7,0x470)](_0xddfe1[_0x42aa2b(-0x135,-0x8e)])){if('iaYhL'===_0x476ea4(0x413,0x3bf))_0x36a51f[_0x42aa2b(-0x5c,0x43)](0x0);else{const _0x61db70=_0x2aaf07[_0x476ea4(0x37a,0x3c1)](_0x520a7a=>_0x395579[_0x42aa2b(-0x6f,-0xed)](_0x520a7a));_0x61db70[_0x42aa2b(0x56,0x14)]>0x0&&(_0x3999d7['push'](..._0x61db70),_0x42ef67['push'](_0x300027));}}_0x3999d7=[...new Set(_0x3999d7)],_0x42ef67=[...new Set(_0x42ef67)];}else _0x3999d7=_0xddfe1['keywords'][_0x476ea4(0x35d,0x3c1)](_0x25195f=>_0x395579['includes'](_0x25195f));_0x3999d7[_0x476ea4(0x51d,0x4c5)]>0x0&&_0x3852c6[_0x476ea4(0x43e,0x40c)+'ctionHit'](_0xaa0c22['id'],_0x3999d7,_0x3a2771[_0x476ea4(0x3a6,0x3ca)],_0x42ef67);}}catch{}if(_0x2d7348&&(_0x43b0ed[_0x42aa2b(0x92,-0x11)]===_0x42aa2b(-0x60,0x55)||_0x43b0ed[_0x476ea4(0x495,0x4a0)]===_0x42aa2b(0xa4,0x1f))){if(_0x476ea4(0x4c6,0x4e1)===_0x476ea4(0x567,0x4e1))try{_0x476ea4(0x49d,0x4a2)!=='JulnL'?(_0xe4bd45['error']('[a2a]\x20Post'+_0x42aa2b(-0x137,-0x117)+'ror:',_0x41d7fa instanceof _0x21777b?_0x307579[_0x42aa2b(-0xce,-0xf6)]:_0x4495e2),_0x213198[_0x42aa2b(-0x69,0x43)](0x0)):_0x3852c6[_0x42aa2b(-0xf4,-0x58)+_0x476ea4(0x457,0x4dc)]({'memoryId':_0x2d7348['id'],'sessionId':_0x3a2771[_0x476ea4(0x387,0x3dd)],'significanceScore':_0x4f254a[_0x476ea4(0x486,0x44c)],'dedupAction':_0x43b0ed[_0x42aa2b(-0x6d,-0x11)],'tier':_0x20d509});}catch{}else return _0x5677d['slice'](0x0,0x3e8);}if(_0x2d7348&&_0x2d7348[_0x42aa2b(-0xd0,-0x6e)]&&_0x5b7c13['skillConve'+'rsion']?.[_0x476ea4(0x415,0x496)])try{if(_0x476ea4(0x45b,0x3fb)==='trRXr'){const {SkillEvaluator:_0x15142e}=await import(_0x42aa2b(0x26,0x3c)+_0x42aa2b(0xc4,0x47)+'s'),_0x53d041=new _0x15142e(_0x3852c6,_0x5b7c13),_0x5ab730=_0x53d041[_0x476ea4(0x49f,0x430)+_0x476ea4(0x4b2,0x509)](_0x2d7348);_0x5ab730['absorbed']&&_0x41d08f[_0x42aa2b(-0x16b,-0xf4)](_0x476ea4(0x4fe,0x454)+_0x476ea4(0x48c,0x4d1)+_0x42aa2b(-0x65,-0x50),{'memoryId':_0x2d7348['id'],'skillId':_0x5ab730[_0x42aa2b(-0x7b,0x38)]});}else return _0x42aa2b(-0x4c,-0x9e);}catch{}const _0x35863e=performance[_0x42aa2b(-0x48,-0x3)]();let _0x43b5e1=0x0;const _0x570c83=_0x5b7c13['frozenSnap'+_0x476ea4(0x322,0x3c6)]?.[_0x42aa2b(-0x2c,-0x1b)]!==![]&&_0x5b7c13[_0x42aa2b(-0x99,-0xee)+_0x476ea4(0x326,0x3c6)]?.[_0x42aa2b(-0x1b0,-0x105)+_0x42aa2b(-0x8d,-0x78)]!==!![];if(_0x5b7c13[_0x42aa2b(0xa3,0x41)]?.[_0x476ea4(0x4a9,0x496)]&&_0x5b7c13['server']?.[_0x476ea4(0x4e5,0x457)]&&!_0x570c83){try{const _0x50740e=_0x3852c6['getPending'+_0x42aa2b(-0x18d,-0xe6)]();if(_0x50740e>=AUTO_SYNC_THRESHOLD){const _0x5e9c7d=createHookClient(_0x5b7c13);if(_0x5e9c7d){if(_0x476ea4(0x49f,0x500)===_0x476ea4(0x49f,0x47a))return _0x476ea4(0x3d5,0x45b)+_0x5d7677['slice'](0x0,0x1f4)+(_0x2f3437?_0x42aa2b(-0x5d,-0x64)+_0x378068['slice'](0x0,0x12c):'');else{const _0x2172f9=new SyncQueue(_0x3852c6,_0x5e9c7d),_0x2ef705=await _0x2172f9[_0x476ea4(0x55b,0x504)]({'timeoutMs':AUTO_SYNC_TIMEOUT_MS});_0x2ef705[_0x476ea4(0x3a4,0x45a)]>0x0&&(_0x41d08f[_0x476ea4(0x40a,0x3bd)](_0x476ea4(0x54c,0x4ff)+_0x476ea4(0x48a,0x45a),{'pushed':_0x2ef705[_0x476ea4(0x3f8,0x45a)],'pending':_0x50740e}),console[_0x42aa2b(0xa8,0x49)]('[a2a]\x20Auto'+_0x476ea4(0x3eb,0x463)+_0x2ef705[_0x42aa2b(-0x83,-0x57)]+'\x20memories'));}}}}catch(_0x2564e3){_0x41d08f['warn']('Auto-sync\x20'+_0x476ea4(0x49d,0x462),{'error':_0x2564e3 instanceof Error?_0x2564e3[_0x42aa2b(-0x11b,-0xf6)]:String(_0x2564e3)});}_0x43b5e1=Math[_0x42aa2b(-0x4f,-0x83)](performance[_0x42aa2b(0xb3,-0x3)]()-_0x35863e);}else _0x5b7c13[_0x42aa2b(0xed,0x41)]?.[_0x42aa2b(0x93,-0x1b)]&&_0x5b7c13[_0x476ea4(0x525,0x4ac)]?.[_0x476ea4(0x4a2,0x457)]&&_0x570c83&&_0x41d08f['debug'](_0x476ea4(0x456,0x3c2)+_0x476ea4(0x464,0x409)+_0x42aa2b(-0xe3,-0x10d)+_0x42aa2b(-0xec,-0xfb)+_0x42aa2b(0x12,0x22)+_0x42aa2b(-0x71,-0x7)+_0x42aa2b(-0x119,-0xe2));const _0x2fac63=Math['round'](performance[_0x476ea4(0x51d,0x4ae)]()-_0x1c3f5b),_0x24a4b1=Math[_0x42aa2b(0x20,-0x83)](_0x2f2ada-_0x1c3f5b),_0xfed02c=Math['round'](_0x1ca616-_0x4e84c0),_0x520fa3=Math[_0x42aa2b(-0xdc,-0x83)](_0x12ddf0-_0x1fee5c),_0x1f298c=Math['round'](_0x2b6eca-_0x261adf),_0x2646fe=_0x43b5e1>0x0?_0x42aa2b(-0xc4,-0x3a)+_0x43b5e1+'ms':'';process[_0x42aa2b(0x65,0x8)]['write'](_0x476ea4(0x453,0x41e)+'ToolUse\x20co'+_0x476ea4(0x46d,0x49c)+_0x476ea4(0x476,0x43a)+_0x2fac63+('ms\x20|\x20confi'+'g:\x20')+_0x24a4b1+(_0x42aa2b(-0x74,-0xac)+_0x42aa2b(-0x126,-0xaf))+_0xfed02c+(_0x42aa2b(0x23,0x4a)+'\x20')+_0x520fa3+_0x476ea4(0x3de,0x40b)+_0x1f298c+'ms'+_0x2646fe+')\x0a'),_0x41d08f[_0x42aa2b(-0x184,-0xf4)](_0x42aa2b(-0x93,-0xdc)+_0x476ea4(0x499,0x49d),{'durationMs':_0x2fac63});}else return null;}finally{_0x41d08f[_0x476ea4(0x552,0x504)]();}}function extractFilePath(_0x729a40){let _0x239f89=_0x729a40;function _0x3c28a6(_0x5f48fb,_0x4653be){return _0x1e8f95(_0x5f48fb-0x43,_0x4653be);}function _0x319c63(_0x57903a,_0x2d504b){return _0x1e8f95(_0x57903a- -0x1ea,_0x2d504b);}if(typeof _0x239f89==='string')try{_0x239f89=JSON[_0x3c28a6(0x40c,0x49f)](_0x239f89);}catch{return null;}if(typeof _0x239f89===_0x319c63(0xa2,0x21)&&_0x239f89!==null){if(typeof _0x239f89['file_path']==='string')return _0x239f89[_0x319c63(0x207,0x23f)];if(typeof _0x239f89[_0x319c63(0x1ca,0x130)]===_0x3c28a6(0x305,0x262))return _0x239f89['path'];}return null;}function isSensitiveFile(_0x370fbf,_0x3629e3){function _0xb2268c(_0xebd094,_0x1d38d9){return _0x1e8f95(_0xebd094- -0x106,_0x1d38d9);}const _0x500169=_0x370fbf['split']('/')[_0xb2268c(0x276,0x2f6)]()??'';function _0x52bfb2(_0x16fe19,_0x22740e){return _0x1e8f95(_0x16fe19- -0x4d2,_0x22740e);}return _0x3629e3[_0x52bfb2(-0x104,-0x143)](_0x5948b5=>{function _0x55b08b(_0x3dc98a,_0x3eb944){return _0xb2268c(_0x3eb944- -0x4c7,_0x3dc98a);}if(_0x5948b5[_0x55b08b(-0x2f9,-0x325)]('*'))return _0x500169[_0x55b08b(-0x27b,-0x264)](_0x5948b5[_0x55b08b(-0x2fe,-0x2a3)](0x1));function _0x27319d(_0x3c504c,_0x413a25){return _0xb2268c(_0x3c504c-0x107,_0x413a25);}if(_0x5948b5[_0x55b08b(-0x247,-0x264)]('*'))return _0x500169['startsWith'](_0x5948b5[_0x55b08b(-0x233,-0x2a3)](0x0,-0x1));return _0x500169===_0x5948b5;});}function isConfigFile(_0x32a464){function _0x2fd0c6(_0x5f3fb7,_0x3bd3c0){return _0x1e8f95(_0x5f3fb7- -0x3b4,_0x3bd3c0);}const _0x143777=[_0x2fd0c6(-0x88,0x1),'.yaml',_0x1f2e53(0x44d,0x3e5),_0x1f2e53(0x3dd,0x42f),'.env',_0x2fd0c6(-0x9d,-0x71),'.cfg'];function _0x1f2e53(_0x286fdb,_0x4250fe){return _0x1e8f95(_0x4250fe-0x68,_0x286fdb);}return _0x143777['some'](_0x3116aa=>_0x32a464[_0x1f2e53(0x3b3,0x3d1)](_0x3116aa));}function detectActualError(_0x4290a3,_0x216504){if(_0x4290a3['length']<0xc8)return![];function _0x545857(_0x8c31b0,_0x146151){return _0x1e8f95(_0x8c31b0- -0x3b0,_0x146151);}const _0x415c17=_0x216504?.[_0x545857(-0xfc,-0x171)];function _0xb94a47(_0x4f24b9,_0x327fd9){return _0x1e8f95(_0x327fd9- -0x560,_0x4f24b9);}if(_0x415c17===_0x545857(0x12,0x85))return![];const _0x4289a8=_0x4290a3[_0x545857(-0x31,-0x45)+'e'](),_0x4cbd1d=[_0x545857(0x2b,0x6),_0x545857(-0x4d,-0x15),_0xb94a47(-0x149,-0x1c7),'exception',_0xb94a47(-0x1b2,-0x1ed),_0xb94a47(-0x243,-0x1ec),'Failed:',_0xb94a47(-0x227,-0x237),_0xb94a47(-0x324,-0x26e),_0x545857(-0x70,-0x8d)],_0x5c47e9=_0x4cbd1d['some'](_0x217f0c=>_0x4290a3[_0x545857(-0x102,-0x13e)](_0x217f0c)||_0x4289a8['includes'](_0x217f0c['toLowerCas'+'e']()));if(!_0x5c47e9)return![];const _0x2f0fcb=_0x216504?.[_0xb94a47(-0x19f,-0x16f)]||_0x216504?.[_0xb94a47(-0xf6,-0x1ac)]||'';if(_0x2f0fcb[_0x545857(-0x31,-0x99)+'e']()['includes'](_0xb94a47(-0xfe,-0x17c))&&!_0x4cbd1d[_0x545857(-0x86,-0x63)](0x2)[_0x545857(0x1e,0xa0)](_0x506735=>_0x4289a8[_0xb94a47(-0x2d6,-0x2b2)](_0x506735[_0xb94a47(-0x238,-0x1e1)+'e']())))return![];return!![];}const LEARNING_KEYWORDS_RE=/(?:learned|배웠|깨달|교훈|실수.*통해|TIL|today I learned|새로.*알게|이해.*됐|이해하게|발견.*했|mistake.*from|lesson|시행착오|주의사항|함정|pitfall|gotcha|삽질|해결.*방법|원인.*파악|root cause|workaround|우회|다음번|앞으로|기억해|remember)/i;function determineCategory(_0x117ad4,_0x30e7b1){function _0x4f5aeb(_0x3041d7,_0x2939b8){return _0x2ec267(_0x2939b8,_0x3041d7-0x14b);}if(_0x30e7b1)return _0x2703df(-0x2df,-0x361)+_0x4f5aeb(0x1b5,0x20c);const _0x45d59e=_0x117ad4[_0x4f5aeb(0x189,0x10f)][_0x2703df(-0x1f1,-0x273)+'e'](),_0x17607e=_0x117ad4[_0x4f5aeb(0x189,0xef)];if(_0x117ad4[_0x2703df(-0x2bc,-0x34b)]===_0x4f5aeb(0x170,0x1c8)){const _0x3d6b35=/^\[master |^\[main |^{"stdout":|^=== \d+\.|^\s*\d+ files? changed/m[_0x4f5aeb(0x10b,0x8b)](_0x117ad4['toolResult']);if(_0x3d6b35)return'context';const _0x115a8e=[_0x2703df(-0x2b0,-0x24b),_0x4f5aeb(0x1d8,0x16f),_0x2703df(-0x21e,-0x1ce),_0x2703df(-0x191,-0x12e),_0x2703df(-0x26c,-0x2b4),_0x4f5aeb(0x1c6,0x12f)];if(_0x115a8e[_0x4f5aeb(0x1c0,0x1c4)](_0x8b95ed=>_0x45d59e[_0x4f5aeb(0xa0,0x8d)](_0x8b95ed)))return'decision';const _0xb427fd=[_0x2703df(-0x1d2,-0x1d2),_0x2703df(-0x2b9,-0x310),'pattern',_0x2703df(-0x1e0,-0x1d9),_0x2703df(-0x2b4,-0x275),_0x2703df(-0x1a1,-0x120)+'ice'];if(_0xb427fd[_0x4f5aeb(0x1c0,0x169)](_0x68cee6=>_0x45d59e[_0x2703df(-0x2c2,-0x2a6)](_0x68cee6))){if(_0x2703df(-0x233,-0x22b)===_0x4f5aeb(0x12f,0x18f))return _0x2703df(-0x1d2,-0x1ab);else _0x4fbc49=_0x2279f2[_0x2703df(-0x282,-0x2d3)]['filter'](_0xf04674=>_0x10acb9[_0x4f5aeb(0xa0,0x2e)](_0xf04674));}if(LEARNING_KEYWORDS_RE[_0x2703df(-0x257,-0x219)](_0x17607e)){if(_0x2703df(-0x1b0,-0x24f)===_0x2703df(-0x1b0,-0x21d))return _0x4f5aeb(0xef,0xef);else _0x177dfd();}}function _0x2703df(_0x4ac532,_0x2f4d85){return _0x2ec267(_0x2f4d85,_0x4ac532- -0x217);}if(_0x117ad4[_0x4f5aeb(0xa6,0x1f)]===_0x4f5aeb(0x1b4,0x232)||_0x117ad4[_0x4f5aeb(0xa6,0x10d)]==='Grep'||_0x117ad4['toolName']===_0x2703df(-0x28a,-0x21f)){if(_0x2703df(-0x203,-0x229)!=='xdGEE')return _0x4f5aeb(0x91,-0x26);else _0x29bc0c[_0x4f5aeb(0xb6,0xca)](_0x4f5aeb(0xbf,0x6f)+_0x2703df(-0x224,-0x178),{'error':_0x4ad66e instanceof _0x542268?_0x255bac['message']:_0x342abe(_0x203976)});}if(_0x117ad4[_0x4f5aeb(0xa6,0xfd)]==='Write'||_0x117ad4['toolName']===_0x4f5aeb(0x127,0x15c)){const _0x1b6b16=extractFilePath(_0x117ad4[_0x2703df(-0x255,-0x1c6)]),_0x1606d3=_0x117ad4[_0x4f5aeb(0x189,0x1fd)];if(_0x1b6b16&&(_0x1b6b16[_0x2703df(-0x2c2,-0x2fd)](_0x4f5aeb(0x10f,0xda))||_0x1b6b16[_0x4f5aeb(0xa0,0x3e)](_0x4f5aeb(0xd3,0x168)))){if(_0x2703df(-0x29d,-0x1ef)!==_0x2703df(-0x234,-0x2be))return _0x4f5aeb(0x91,0x23);else _0x4fdb53['warn'](_0x4f5aeb(0x1b3,0x13d)+_0x4f5aeb(0x8b,0x46)+'ailed',{'error':_0x588593 instanceof _0x53da79?_0x46c68c[_0x4f5aeb(0x97,0xd4)]:_0x185bef(_0x384f30)});}if(_0x1606d3[_0x4f5aeb(0x1a1,0x156)]<0x32||_0x1606d3['toLowerCas'+'e']()[_0x2703df(-0x2c2,-0x309)](_0x2703df(-0x1ff,-0x237)+'en\x20success'+'fully')||_0x1606d3[_0x2703df(-0x1f1,-0x176)+'e']()[_0x2703df(-0x2c2,-0x275)]('file\x20creat'+'ed')||_0x1606d3[_0x4f5aeb(0x171,0x151)+'e']()[_0x4f5aeb(0xa0,0x98)](_0x4f5aeb(0x15e,0xfe)+'ccessfully')){if('fwjJz'!==_0x4f5aeb(0x13c,0xc7))return _0x4f5aeb(0x91,0x11e);else _0x2a1a92[_0x4f5aeb(0x96,0x4d)+_0x2703df(-0x270,-0x285)](_0x284be7['id'],_0x5173c1);}if(LEARNING_KEYWORDS_RE[_0x2703df(-0x257,-0x30d)](_0x1606d3))return _0x2703df(-0x273,-0x252);return _0x2703df(-0x1c5,-0x24c)+'rn';}return _0x2703df(-0x2d1,-0x330);}export function buildContent(_0x54e84b){const _0x47aea7=extractFilePath(_0x54e84b[_0x33a4ad(0x454,0x4b6)]);function _0x29c74c(_0x1144ab,_0x1251fe){return _0x2ec267(_0x1251fe,_0x1144ab-0x3ce);}let _0x19df00=_0x54e84b[_0x29c74c(0x40c,0x442)][_0x29c74c(0x39f,0x314)](0x0,0x5dc)[_0x29c74c(0x391,0x3ba)]();TOOL_LOG_JSON_TOOLS[_0x33a4ad(0x4ab,0x51b)](_0x54e84b['toolName'])&&_0x19df00[_0x33a4ad(0x3e1,0x35d)]('{')&&(_0x19df00=stripDiffContent(_0x19df00));_0x54e84b[_0x33a4ad(0x3ed,0x3ee)]===_0x33a4ad(0x4b7,0x4f6)&&_0x19df00[_0x29c74c(0x31d,0x387)]('{')&&(_0x19df00=extractBashContent(_0x19df00));function _0x33a4ad(_0x3084b3,_0x34d496){return _0x2ec267(_0x34d496,_0x3084b3-0x492);}_0x19df00[_0x29c74c(0x424,0x3be)]>0x1f4&&(_0x19df00[_0x33a4ad(0x3e1,0x3df)]('{')||_0x19df00[_0x29c74c(0x31d,0x277)]('['))&&(_0x33a4ad(0x3fc,0x499)===_0x29c74c(0x35d,0x35a)?(_0x5bb6b0[_0x33a4ad(0x51c,0x4d8)](..._0xc69e53),_0x2c611b['push'](_0x2beec9)):_0x19df00=summarizeJsonResult(_0x19df00));_0x19df00=_0x19df00[_0x33a4ad(0x463,0x43d)](0x0,0x3e8)[_0x33a4ad(0x455,0x401)]();if(!_0x19df00||isNoiseResult(_0x19df00))return'';const _0x29e74d=[];if(_0x47aea7)_0x29e74d[_0x29c74c(0x458,0x40d)](_0x29c74c(0x33b,0x3e8)+_0x47aea7);_0x29e74d[_0x33a4ad(0x51c,0x5c7)](_0x19df00);const _0x176635=_0x29e74d[_0x33a4ad(0x473,0x489)]('\x0a');if(_0x176635[_0x33a4ad(0x4e8,0x54f)]<0x14)return'';return _0x176635;}const TOOL_LOG_JSON_TOOLS=new Set(['Edit','Write',_0x2ec267(0x94,0x69),_0x1e8f95(0x2f7,0x2c2)]);function stripDiffContent(_0x4601d8){function _0x49afe8(_0x55b9b2,_0x1b9a04){return _0x2ec267(_0x55b9b2,_0x1b9a04-0x1b7);}function _0x2d555b(_0x541efb,_0x493e16){return _0x2ec267(_0x541efb,_0x493e16-0x126);}try{const _0x2bce28=JSON[_0x49afe8(0x2ce,0x227)](_0x4601d8),_0x1e9296=_0x2bce28?.['file'];if(_0x2bce28[_0x49afe8(0x1af,0x1a6)]||_0x2bce28[_0x2d555b(0x171,0x146)]||_0x2bce28[_0x49afe8(0xd1,0x13c)+'Patch']||_0x2bce28[_0x2d555b(0xcd,0xee)]&&_0x2bce28[_0x49afe8(0x18f,0x13e)]&&typeof _0x2bce28[_0x49afe8(0x5b,0x100)]===_0x2d555b(0x77,0x8f)||_0x1e9296&&_0x1e9296[_0x2d555b(0x13a,0xad)]&&typeof _0x1e9296[_0x2d555b(0x62,0x6f)]===_0x49afe8(0xc1,0x120)||_0x2bce28[_0x49afe8(0x153,0x111)]==='content'&&typeof _0x2bce28['content']===_0x2d555b(0x65,0x8f))return'';return _0x4601d8;}catch{if(_0x4601d8[_0x49afe8(0x19b,0x10c)](_0x49afe8(0xdf,0x114)+'\x22')||_0x4601d8[_0x2d555b(0x37,0x7b)](_0x49afe8(0x278,0x1cd)+'\x22')||_0x4601d8[_0x49afe8(0xa3,0x10c)]('\x22structure'+_0x49afe8(0x16e,0x139))||_0x4601d8['includes']('\x22type\x22')&&_0x4601d8['includes'](_0x2d555b(0x64,0x52))&&_0x4601d8['includes'](_0x49afe8(0x11b,0x15d))||_0x4601d8['includes'](_0x2d555b(0x42,0x96)+_0x49afe8(0x8f,0x123))&&_0x4601d8[_0x49afe8(0x1a5,0x10c)](_0x49afe8(0x147,0x15d)))return'';return _0x4601d8;}}function extractBashContent(_0xd3fa40){function _0x2d599c(_0x45de73,_0xa4c755){return _0x1e8f95(_0x45de73- -0x4c9,_0xa4c755);}function _0x606427(_0x3c6da7,_0x16d276){return _0x1e8f95(_0x16d276-0x12,_0x3c6da7);}try{const _0x34e302=JSON[_0x606427(0x404,0x3db)](_0xd3fa40),_0x8b44d5=(_0x34e302[_0x606427(0x239,0x2f1)]||'')[_0x606427(0x3c0,0x32e)](),_0x379097=(_0x34e302['stderr']||'')[_0x2d599c(-0x1ad,-0x109)]();if(_0x379097&&_0x379097[_0x2d599c(-0x11a,-0x8a)]>0xa)return _0x2d599c(-0x184,-0x14b)+_0x379097['slice'](0x0,0x1f4)+(_0x8b44d5?'\x0a[Output]\x20'+_0x8b44d5['slice'](0x0,0x12c):'');if(_0x8b44d5)return _0x8b44d5[_0x2d599c(-0x19f,-0x246)](0x0,0x3e8);return _0xd3fa40['slice'](0x0,0x1f4);}catch{return _0xd3fa40[_0x2d599c(-0x19f,-0x15f)](0x0,0x3e8);}}function summarizeJsonResult(_0x561c18){function _0x33331d(_0x1d9067,_0x20a385){return _0x2ec267(_0x20a385,_0x1d9067- -0x279);}function _0x156f21(_0x56b4b8,_0x453086){return _0x2ec267(_0x453086,_0x56b4b8-0x469);}try{const _0x387cf0=JSON[_0x156f21(0x4d9,0x498)](_0x561c18);if(Array[_0x156f21(0x3b1,0x353)](_0x387cf0))return _0x156f21(0x4ad,0x476)+_0x387cf0[_0x156f21(0x4bf,0x576)]+_0x33331d(-0x1f2,-0x27b)+JSON[_0x33331d(-0x297,-0x2b1)](_0x387cf0[0x0])[_0x156f21(0x43a,0x4d8)](0x0,0xc8)+_0x33331d(-0x2a3,-0x357);const _0x4fe199=Object[_0x156f21(0x40b,0x484)](_0x387cf0)[_0x33331d(-0x2a8,-0x1ef)](0x0,0xa),_0x2e0577=_0x4fe199[_0x156f21(0x39d,0x348)](_0x2ec419=>{function _0x22e4fa(_0x5614e9,_0x2e7d48){return _0x156f21(_0x5614e9- -0x217,_0x2e7d48);}function _0x2dc104(_0x159a90,_0x105e4a){return _0x156f21(_0x105e4a- -0xaa,_0x159a90);}const _0x5d4531=_0x387cf0[_0x2ec419],_0x42464e=typeof _0x5d4531===_0x2dc104(0x333,0x328)?_0x5d4531[_0x2dc104(0x369,0x390)](0x0,0x50):JSON[_0x22e4fa(0x234,0x298)](_0x5d4531)['slice'](0x0,0x50);return _0x2ec419+':\x20'+_0x42464e;})[_0x156f21(0x44a,0x4b3)](',\x20');return _0x2e0577[_0x156f21(0x43a,0x4c7)](0x0,0x320);}catch{return _0x561c18[_0x156f21(0x43a,0x3e7)](0x0,0x1f4);}}function _0x2ec267(_0x36355f,_0xd22dc6){return _0xc51a(_0xd22dc6- -0x16d,_0x36355f);}function isNoiseResult(_0xcd152e){const _0xb9c6aa=_0xcd152e[_0x57c36b(0x17c,0x1c7)]();function _0x49d414(_0x18e994,_0x2a7de5){return _0x1e8f95(_0x2a7de5- -0x38,_0x18e994);}if(_0xb9c6aa['startsWith'](_0x49d414(0x2e0,0x280)))return!![];if(_0xb9c6aa[_0x49d414(0x2c3,0x270)](_0x57c36b(0x154,0x1cb)+'\x22')||_0xb9c6aa[_0x57c36b(0x108,0x1b7)](_0x49d414(0x3db,0x32e)+'h\x22'))return!![];if(_0xb9c6aa[_0x49d414(0x2a4,0x276)](_0x49d414(0x2c1,0x2ca)+'rs/'))return!![];if(_0xb9c6aa[_0x57c36b(0x108,0x8a)]('first_upti'+_0x49d414(0x2f6,0x301))||_0xb9c6aa[_0x49d414(0x1e1,0x270)](_0x49d414(0x27e,0x2aa)+_0x49d414(0x35e,0x2f3)))return!![];if(_0xb9c6aa[_0x49d414(0x21c,0x270)](_0x57c36b(0x111,0x1b0))||_0xb9c6aa[_0x49d414(0x287,0x270)]('http:404'))return!![];function _0x57c36b(_0x20728e,_0x37d3fb){return _0x1e8f95(_0x20728e- -0x1a0,_0x37d3fb);}if(_0xb9c6aa[_0x57c36b(0x108,0xb0)](_0x49d414(0x378,0x395)+_0x49d414(0x313,0x362)))return!![];const _0x8fe855=_0xb9c6aa[_0x49d414(0x37c,0x2f2)](0x0,0xc8);if(_0x8fe855['includes']('\x22status\x22:\x22'+_0x57c36b(0x231,0x238))&&_0x8fe855[_0x49d414(0x23f,0x276)](_0x49d414(0x218,0x258)+_0x57c36b(0x16a,0x1b6)))return!![];const _0x3fedb7=_0xb9c6aa[_0x49d414(0x323,0x340)]('\x0a',0x1)[0x0],_0x48fc7c=[/브랜치로\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(_0x48fc7c[_0x49d414(0x2f7,0x396)](_0x523411=>_0x523411[_0x49d414(0x22a,0x2e1)](_0x3fedb7)))return!![];const _0x156a5a=[/^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 _0x156a5a[_0x57c36b(0x22e,0x250)](_0x23995c=>_0x23995c[_0x57c36b(0x179,0xf1)](_0xb9c6aa));}const TAG_BLOCKLIST=new Set(['id',_0x2ec267(-0x9a,-0xcf),'app','get',_0x1e8f95(0x3a8,0x322),_0x1e8f95(0x2ea,0x308),'table','the','to','in','of','a','is',_0x1e8f95(0x346,0x393),_0x2ec267(0x8b,0x3f),_0x1e8f95(0x3e1,0x411),_0x2ec267(0x5b,0x79),'value',_0x2ec267(-0x85,-0xcc),'trim','type','data',_0x1e8f95(0x2da,0x328),_0x1e8f95(0x3b9,0x3be),_0x2ec267(0x15,-0x40),_0x1e8f95(0x293,0x325),_0x2ec267(-0xc9,-0xc8)+_0x2ec267(-0x1e,0x6a),'code_patte'+'rn',_0x2ec267(-0x8c,-0xba),_0x2ec267(0xee,0x45),'skill','learning',_0x2ec267(0x2,-0x58)+'owledge','Write','Edit',_0x2ec267(-0x4f,0x25),_0x1e8f95(0x3c2,0x3bc),_0x2ec267(-0x11e,-0x73),'Grep',_0x2ec267(0xfa,0x58),_0x1e8f95(0x351,0x349),_0x2ec267(0x4d,-0x46),'write','edit',_0x1e8f95(0x359,0x2c7),'read',_0x2ec267(-0x78,-0x25),'grep','task','webfetch',_0x2ec267(0xe,-0x72)]),STOPWORDS=new Set([_0x2ec267(0x18,0x54),_0x2ec267(-0x70,-0x5f),_0x2ec267(-0x51,-0x4b),_0x1e8f95(0x3c4,0x3ac),_0x1e8f95(0x327,0x303),_0x2ec267(0xee,0x4d),_0x2ec267(0x27,-0x3),_0x2ec267(0x91,0x19),_0x2ec267(0x7d,0x73),_0x1e8f95(0x360,0x386),_0x1e8f95(0x3c8,0x42f),_0x2ec267(-0xbe,-0x26),_0x2ec267(0x99,0x5c),_0x2ec267(0x19,-0x47),_0x2ec267(-0x20,0x21),_0x1e8f95(0x2d4,0x221),'can',_0x2ec267(-0x73,-0x9),'that',_0x1e8f95(0x3bf,0x397),_0x2ec267(0x36,-0x13),'from',_0x2ec267(0x13,-0x53),_0x2ec267(0x6d,-0xb),_0x1e8f95(0x3b2,0x30b),_0x1e8f95(0x307,0x39b),'after','before',_0x2ec267(-0xea,-0x34),_0x1e8f95(0x393,0x3c3),_0x2ec267(0x8,-0x87),_0x1e8f95(0x38d,0x3f3),'every','both','few',_0x1e8f95(0x29d,0x2e6),'most',_0x1e8f95(0x297,0x2af),_0x2ec267(0x81,0x75),'such',_0x1e8f95(0x29e,0x292),_0x2ec267(0x6,0x5a),'same',_0x1e8f95(0x322,0x3da),_0x2ec267(-0x44,-0x84),_0x2ec267(-0x9c,-0x81),_0x1e8f95(0x381,0x30a),_0x2ec267(0xb8,0x22),_0x1e8f95(0x3e8,0x440),_0x2ec267(0x40,0x5),_0x1e8f95(0x3d0,0x3de),'none',_0x2ec267(-0xd7,-0x27),_0x1e8f95(0x31e,0x29c),'them',_0x1e8f95(0x35d,0x360),_0x1e8f95(0x2d7,0x291),'his',_0x2ec267(0x2a,-0x4d),_0x2ec267(-0xf,0x36),'you','we']),WORD_RE=/[A-Za-z가-힣][A-Za-z가-힣0-9_]{2,30}/g;function extractKeywords(_0x329624,_0x591bfb=0x3){function _0x4977a8(_0xe6a97d,_0x8b028c){return _0x2ec267(_0x8b028c,_0xe6a97d-0x1c1);}const _0x2feb6d=_0x329624[_0x438b71(0x51,0xb)+'e'](),_0x52c4f9=_0x2feb6d[_0x438b71(-0x3d,-0xa)](WORD_RE)||[],_0x2c4aeb=new Map();function _0x438b71(_0x5ad20f,_0x52a969){return _0x2ec267(_0x5ad20f,_0x52a969- -0x1b);}for(const _0x2eb52c of _0x52c4f9){if(_0x2eb52c[_0x438b71(0x15,0x3b)]<0x3)continue;if(STOPWORDS['has'](_0x2eb52c))continue;if(TAG_BLOCKLIST['has'](_0x2eb52c))continue;_0x2c4aeb[_0x438b71(-0x45,0x34)](_0x2eb52c,(_0x2c4aeb[_0x4977a8(0x242,0x19e)](_0x2eb52c)||0x0)+0x1);}return[..._0x2c4aeb[_0x438b71(0x1a,-0x1a)]()]['sort']((_0x421fd6,_0x1aecfe)=>_0x1aecfe[0x1]-_0x421fd6[0x1])[_0x4977a8(0x192,0x1bd)](0x0,_0x591bfb)[_0x438b71(-0x184,-0xe7)](([_0x34eb78])=>_0x34eb78);}function buildTags(_0xd9b7fd){const _0x5c8376=[],_0x535359=extractFilePath(_0xd9b7fd['toolInput']);if(_0x535359){const _0x2d82f5=_0x535359['split']('/')['filter'](Boolean),_0x29aa1d=_0x2d82f5[_0x22b69c(0x131,0xfe)](-0x3)[_0x29c04b(0x1a3,0x16f)](_0x3d9c29=>_0x3d9c29[_0x29c04b(0x29f,0x273)]>0x2&&!TAG_BLOCKLIST[_0x22b69c(0x1cc,0x146)](_0x3d9c29['toLowerCas'+'e']()));for(const _0x958a6c of _0x29aa1d[_0x29c04b(0x16a,0x1ee)](0x0,0x2)){const _0x168e41=_0x958a6c[_0x22b69c(0x1de,0x165)](/\.[^.]+$/,'');_0x168e41['length']>0x2&&!TAG_BLOCKLIST['has'](_0x168e41[_0x22b69c(0x117,0x153)+'e']())&&_0x5c8376[_0x29c04b(0x323,0x2a7)](_0x168e41);}const _0x45d04e=_0x535359[_0x22b69c(0x170,0x14c)]('.')[_0x22b69c(0x19c,0x150)]();if(_0x45d04e){const _0x7a7ee1=_0x45d04e[_0x29c04b(0x1c8,0x243)+'e']();if(!/^\d+$/[_0x22b69c(0x62,0xed)](_0x45d04e)&&_0x45d04e['length']>0x2&&!TAG_BLOCKLIST[_0x22b69c(0xdd,0x146)](_0x7a7ee1)){if('aflkZ'===_0x29c04b(0x19a,0x14d)){const _0x290e5f=['md',_0x29c04b(0x248,0x24f),'json','yml',_0x22b69c(0xf5,0x162),'xml',_0x22b69c(0x19a,0x199),_0x29c04b(0x333,0x27c)];!_0x290e5f['includes'](_0x7a7ee1)&&_0x5c8376[_0x22b69c(0x139,0x1b7)](_0x45d04e);}else return _0x22b69c(0x129,0x73);}}}function _0x29c04b(_0x528381,_0x43144a){return _0x1e8f95(_0x43144a- -0x13c,_0x528381);}function _0x22b69c(_0x571b1d,_0x14060b){return _0x1e8f95(_0x14060b- -0x22c,_0x571b1d);}if(_0x5c8376[_0x29c04b(0x30d,0x273)]===0x0){const _0x152f13=extractKeywords(_0xd9b7fd[_0x29c04b(0x226,0x25b)],0x3);_0x5c8376[_0x22b69c(0x1ae,0x1b7)](..._0x152f13);}return _0x5c8376;}export async function main(){function _0x142d06(_0x399934,_0x67a73a){return _0x1e8f95(_0x67a73a- -0x1c2,_0x399934);}const _0xc38d05=[];function _0x12832c(_0x3f632e,_0x51f9e8){return _0x1e8f95(_0x3f632e- -0xaf,_0x51f9e8);}for await(const _0x243846 of process[_0x12832c(0x1ed,0x1ac)]){if(_0x12832c(0x2a4,0x25e)!=='vuOCc'){const _0xdfd4e7=_0x4a4468[_0x142d06(0x2a2,0x207)](_0x4b5168),_0x98bb05=_0xdfd4e7?.[_0x12832c(0x281,0x330)];if(_0xdfd4e7[_0x12832c(0x299,0x345)]||_0xdfd4e7[_0x12832c(0x2ca,0x229)]||_0xdfd4e7[_0x142d06(0x181,0x11c)+_0x142d06(0x257,0x1ae)]||_0xdfd4e7[_0x12832c(0x272,0x1cb)]&&_0xdfd4e7['filePath']&&typeof _0xdfd4e7[_0x12832c(0x1f3,0x1e0)]===_0x142d06(0x168,0x100)||_0x98bb05&&_0x98bb05[_0x12832c(0x231,0x2b4)]&&typeof _0x98bb05['content']===_0x142d06(0x160,0x100)||_0xdfd4e7['mode']===_0x142d06(0x64,0xe0)&&typeof _0xdfd4e7[_0x142d06(0xbb,0xe0)]===_0x142d06(0x1b1,0x100))return'';return _0x329279;}else _0xc38d05['push'](_0x243846);}const _0x9d4b31=Buffer[_0x142d06(0x1a3,0x232)](_0xc38d05)[_0x142d06(0x1ca,0x16f)]('utf-8')[_0x12832c(0x26d,0x2cc)]();!_0x9d4b31&&process['exit'](0x0);try{const _0x45efd3=JSON[_0x142d06(0x28e,0x207)](_0x9d4b31),_0x3ef816=normalizeHookInput(_0x45efd3);await handlePostToolUse(_0x3ef816);}catch(_0x507b86){console[_0x12832c(0x335,0x3b0)]('[a2a]\x20Post'+_0x12832c(0x1d5,0x170)+'ror:',_0x507b86 instanceof Error?_0x507b86['message']:_0x507b86),process[_0x12832c(0x32f,0x367)](0x0);}finally{_0x12832c(0x221,0x25d)!=='sBPsq'?_0x148158=typeof _0x27c0c3[_0x12832c(0x26c,0x1b4)]===_0x142d06(0x49,0x100)?_0x16d136[_0x12832c(0x26c,0x22b)]:_0x58baf8:closeSharedDb();}}const isMainModule=process[_0x1e8f95(0x3d6,0x38f)][0x1]?.[_0x1e8f95(0x369,0x3a5)](_0x1e8f95(0x383,0x41e)+'use.js')||process[_0x2ec267(0x9b,0x7d)][0x1]?.[_0x1e8f95(0x369,0x3b8)](_0x1e8f95(0x383,0x3ef)+'use.ts');isMainModule&&main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5c63(_0x34e2d1,_0x73feb2){_0x34e2d1=_0x34e2d1-0x14a;const _0x188765=_0x1887();let _0x5c632a=_0x188765[_0x34e2d1];if(_0x5c63['Ptmuuh']===undefined){var _0x14936d=function(_0x3262d0){const _0x241a22='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1913f6='',_0x3c20e4='';for(let _0x4f514b=0x0,_0x1ab89c,_0x28dcf3,_0x31907a=0x0;_0x28dcf3=_0x3262d0['charAt'](_0x31907a++);~_0x28dcf3&&(_0x1ab89c=_0x4f514b%0x4?_0x1ab89c*0x40+_0x28dcf3:_0x28dcf3,_0x4f514b++%0x4)?_0x1913f6+=String['fromCharCode'](0xff&_0x1ab89c>>(-0x2*_0x4f514b&0x6)):0x0){_0x28dcf3=_0x241a22['indexOf'](_0x28dcf3);}for(let _0x5c717c=0x0,_0x5e11ab=_0x1913f6['length'];_0x5c717c<_0x5e11ab;_0x5c717c++){_0x3c20e4+='%'+('00'+_0x1913f6['charCodeAt'](_0x5c717c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c20e4);};_0x5c63['nQFOTO']=_0x14936d,_0x5c63['wArOSH']={},_0x5c63['Ptmuuh']=!![];}const _0x5659d4=_0x188765[0x0],_0x5f286c=_0x34e2d1+_0x5659d4,_0x3b8480=_0x5c63['wArOSH'][_0x5f286c];return!_0x3b8480?(_0x5c632a=_0x5c63['nQFOTO'](_0x5c632a),_0x5c63['wArOSH'][_0x5f286c]=_0x5c632a):_0x5c632a=_0x3b8480,_0x5c632a;}(function(_0x17d891,_0x31cadd){const _0x1b92ce=_0x17d891();function _0x36a776(_0x5d3d8b,_0x364c07){return _0x5c63(_0x5d3d8b- -0x2c3,_0x364c07);}function _0x2977d7(_0x11adae,_0x4b4b6c){return _0x5c63(_0x11adae- -0x14d,_0x4b4b6c);}while(!![]){try{const _0x13ec3c=parseInt(_0x36a776(-0x158,-0x15c))/0x1*(parseInt(_0x36a776(-0x178,-0x175))/0x2)+-parseInt(_0x2977d7(0x3,-0x7))/0x3*(-parseInt(_0x2977d7(0x17,0x10))/0x4)+-parseInt(_0x2977d7(0x22,0x11))/0x5*(-parseInt(_0x2977d7(0xe,-0x1))/0x6)+parseInt(_0x2977d7(0xa,0x1d))/0x7*(-parseInt(_0x2977d7(0x2,-0x6))/0x8)+parseInt(_0x36a776(-0x15d,-0x168))/0x9+-parseInt(_0x36a776(-0x162,-0x16b))/0xa*(-parseInt(_0x2977d7(0x13,0x20))/0xb)+-parseInt(_0x2977d7(0x1a,0x2a))/0xc;if(_0x13ec3c===_0x31cadd)break;else _0x1b92ce['push'](_0x1b92ce['shift']());}catch(_0x227cd5){_0x1b92ce['push'](_0x1b92ce['shift']());}}}(_0x1887,0x47817));function _0x1887(){const _0x2f611a=['B21Wywn0ihnHzG','B29zswm','mtq2ndC4nK95Effcyq','Dc5QCW','zMX1C2G','Dc50CW','Dw5Yzwy','nZuZmZLMtNLhAvC','nJGWywH2D3Dl','DcaO','y29Uy2f0','neLbB2zTCa','ChjVAMvJDfbHDa','mteXotG0m29nA21Tqq','mtm3mtm4nJrirufoqMq','zxHPDa','sg9VAYbZDgfYDa','BwvZC2fNzq','neP0BgzAuG','Dg9tDhjPBMC','zwqGkg5Vlw9Wia','zxjYB3i','mtbhrLL2uM8','A2rdBNC','mJu4mZK0tKnmBvru','w2eYyv0GuhjLqW','DxrMltG','yxjNDG','ndeZnZm2oePJz2LQAa','mta3mZaXm3fQquPSua','CgfYC2u','zw5KC1DPDgG','ChvZAa','uhjLq29TCgfJDa','zxr5ihrPBwvVDq','C2LUy2uGiZKYkq','n2ztr2vYta','ChjLlwnVBxbHyW'];_0x1887=function(){return _0x2f611a;};return _0x1887();}function _0x48ae70(_0x5c70bd,_0x8105d8){return _0x5c63(_0x5c70bd- -0x368,_0x8105d8);}import{closeSharedDb,normalizeHookInput}from'./shared.js';import{ConfigManager}from'../config/manager.js';function _0x8d46bd(_0x26ab77,_0x36e599){return _0x5c63(_0x36e599- -0x11d,_0x26ab77);}import{createLogger}from'../utils/logger.js';export async function handlePreCompact(_0x2c6a19){const _0x23cc85=new ConfigManager()['load'](),_0x2cca9c=createLogger(_0x400c57(-0x13d,-0x14b),_0x23cc85['logging']);_0x2cca9c['info'](_0x10db63(0x1d2,0x1e4)+_0x400c57(-0x123,-0x132)+_0x10db63(0x1bf,0x1c0),{'projectPath':_0x2c6a19[_0x10db63(0x1ce,0x1d4)+'h']});function _0x400c57(_0x592b17,_0x944b2){return _0x5c63(_0x944b2- -0x29f,_0x592b17);}function _0x10db63(_0x204506,_0x20d7e3){return _0x5c63(_0x204506-0x69,_0x20d7e3);}_0x2cca9c[_0x10db63(0x1c6,0x1c0)]();}const HOOK_TIMEOUT_MS=0x1388;export async function main(){const _0x52ba93=[];for await(const _0x478d19 of process['stdin']){_0x52ba93[_0x4b3bc1(0x9c,0x95)](_0x478d19);}const _0x22cb65=Buffer[_0x4b3bc1(0xac,0xa5)](_0x52ba93)[_0x104505(0x426,0x419)](_0x4b3bc1(0x89,0x8f))['trim']();!_0x22cb65&&(closeSharedDb(),process[_0x104505(0x422,0x428)](0x0));const _0x5011eb=setTimeout(()=>{function _0x28bb8e(_0x571d6e,_0x361adf){return _0x104505(_0x361adf- -0x24a,_0x571d6e);}console[_0xd14f38(-0xee,-0xe1)]('[a2a]\x20PreC'+_0x28bb8e(0x1d5,0x1c9)+_0xd14f38(-0x101,-0xfa)+_0x28bb8e(0x1d1,0x1d2)+HOOK_TIMEOUT_MS+'ms)');function _0xd14f38(_0x9351ef,_0x87f0bf){return _0x104505(_0x87f0bf- -0x509,_0x9351ef);}closeSharedDb(),process[_0xd14f38(-0xe1,-0xe7)](0x0);},HOOK_TIMEOUT_MS);_0x5011eb[_0x104505(0x419,0x411)]();function _0x104505(_0x24f66d,_0x43b34d){return _0x5c63(_0x24f66d-0x2ba,_0x43b34d);}function _0x4b3bc1(_0x5b7710,_0x1cdd9a){return _0x5c63(_0x1cdd9a- -0xbe,_0x5b7710);}try{const _0x5170a7=JSON[_0x104505(0x40b,0x401)](_0x22cb65),_0x1253e8=normalizeHookInput(_0x5170a7);await handlePreCompact(_0x1253e8);}catch(_0x5b4b7e){console[_0x4b3bc1(0xa6,0xb0)](_0x4b3bc1(0x8c,0x8e)+'ompact\x20err'+'or:',_0x5b4b7e instanceof Error?_0x5b4b7e[_0x104505(0x424,0x411)]:_0x5b4b7e);}finally{_0x4b3bc1(0xa1,0x9c)!==_0x4b3bc1(0x84,0x8c)?(closeSharedDb(),process['exit'](0x0)):_0x39911d();}}const isMainModule=process['argv'][0x1]?.[_0x48ae70(-0x216,-0x21d)](_0x8d46bd(0x4a,0x3b)+_0x48ae70(-0x20c,-0x20f))||process[_0x8d46bd(0x3e,0x31)][0x1]?.['endsWith'](_0x8d46bd(0x2e,0x3b)+_0x48ae70(-0x20a,-0x1fd));isMainModule&&main();
|