a2a-memory 0.12.50 → 0.12.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/anthropic.js +1 -1
  3. package/dist/chunking/chunker.js +1 -1
  4. package/dist/claude/sync.js +1 -1
  5. package/dist/cli/commands/add.js +1 -1
  6. package/dist/cli/commands/claude-sync.js +1 -1
  7. package/dist/cli/commands/cleanup.js +1 -1
  8. package/dist/cli/commands/config.js +1 -1
  9. package/dist/cli/commands/contextrank.js +1 -1
  10. package/dist/cli/commands/edit.js +1 -1
  11. package/dist/cli/commands/embed.js +1 -1
  12. package/dist/cli/commands/export.js +1 -1
  13. package/dist/cli/commands/extract.js +1 -1
  14. package/dist/cli/commands/health.js +1 -1
  15. package/dist/cli/commands/list.js +1 -1
  16. package/dist/cli/commands/migrate-chunks.js +1 -1
  17. package/dist/cli/commands/migrate-file-refs.js +1 -1
  18. package/dist/cli/commands/proficiency.js +1 -1
  19. package/dist/cli/commands/review.js +1 -1
  20. package/dist/cli/commands/rm.js +1 -1
  21. package/dist/cli/commands/search.js +1 -1
  22. package/dist/cli/commands/session-extract.js +1 -1
  23. package/dist/cli/commands/setup-wizard.js +1 -1
  24. package/dist/cli/commands/setup.js +1 -1
  25. package/dist/cli/commands/skill.js +1 -1
  26. package/dist/cli/commands/status.js +1 -1
  27. package/dist/cli/commands/sync.js +1 -1
  28. package/dist/cli/commands/team.js +1 -1
  29. package/dist/cli/commands/usage.js +1 -1
  30. package/dist/cli/index.js +1 -1
  31. package/dist/config/manager.d.ts +1 -0
  32. package/dist/config/manager.js +1 -1
  33. package/dist/contextrank/edge-builder.js +1 -1
  34. package/dist/contextrank/rank-builder.js +1 -1
  35. package/dist/contextrank/signal-builder.js +1 -1
  36. package/dist/db/database.js +1 -1
  37. package/dist/db/usage-spool.js +1 -1
  38. package/dist/embedding/e5-provider.js +1 -1
  39. package/dist/embedding/index.js +1 -1
  40. package/dist/embedding/local-provider.js +1 -1
  41. package/dist/embedding/openai-provider.js +1 -1
  42. package/dist/embedding/quantization.js +1 -1
  43. package/dist/extraction/dedup-manager.js +1 -1
  44. package/dist/extraction/emotion-filter.js +1 -1
  45. package/dist/extraction/extractor.js +1 -1
  46. package/dist/extraction/file-reference.js +1 -1
  47. package/dist/extraction/filter.d.ts +1 -0
  48. package/dist/extraction/filter.js +1 -1
  49. package/dist/extraction/scorer.js +1 -1
  50. package/dist/extraction/similarity.js +1 -1
  51. package/dist/hooks/client-factory.js +1 -1
  52. package/dist/hooks/post-tool-use.js +1 -1
  53. package/dist/hooks/pre-compact.js +1 -1
  54. package/dist/hooks/session-end.js +1 -1
  55. package/dist/hooks/session-start.js +1 -1
  56. package/dist/hooks/shared.js +1 -1
  57. package/dist/hooks/stop.js +1 -1
  58. package/dist/hooks/user-prompt-submit.js +1 -1
  59. package/dist/i18n/index.js +1 -1
  60. package/dist/i18n/messages.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  63. package/dist/lifecycle/cleanup.js +1 -1
  64. package/dist/lifecycle/consolidation.js +1 -1
  65. package/dist/lifecycle/contradiction.js +1 -1
  66. package/dist/lifecycle/embedding-backfill.js +1 -1
  67. package/dist/lifecycle/index.js +1 -1
  68. package/dist/lifecycle/injection-flush.js +1 -1
  69. package/dist/lifecycle/quality-scorer.js +1 -1
  70. package/dist/lifecycle/session-extract.js +1 -1
  71. package/dist/lifecycle/shadow-rebuild.js +1 -1
  72. package/dist/lifecycle/tiering.js +1 -1
  73. package/dist/llm/client.js +1 -1
  74. package/dist/llm/index.js +1 -1
  75. package/dist/proficiency/actr-engine.js +1 -1
  76. package/dist/proficiency/detection.js +1 -1
  77. package/dist/proficiency/index.js +1 -1
  78. package/dist/proficiency/tracker.js +1 -1
  79. package/dist/search/adaptive-router.js +1 -1
  80. package/dist/search/index.js +1 -1
  81. package/dist/search/injection-filter.js +1 -1
  82. package/dist/search/memoryrank-rerank.js +1 -1
  83. package/dist/search/ranker.js +1 -1
  84. package/dist/search/reranker.js +1 -1
  85. package/dist/session/parser.js +1 -1
  86. package/dist/skill/evaluator.js +1 -1
  87. package/dist/skill/index.js +1 -1
  88. package/dist/sync/client.js +1 -1
  89. package/dist/sync/encryption.js +1 -1
  90. package/dist/sync/index.js +1 -1
  91. package/dist/sync/queue.js +1 -1
  92. package/dist/sync/scheduler.js +1 -1
  93. package/dist/sync/synchronizer.js +1 -1
  94. package/dist/sync/team-synchronizer.js +1 -1
  95. package/dist/sync/vector-clock.js +1 -1
  96. package/dist/types/index.js +1 -1
  97. package/dist/utils/keychain.js +1 -1
  98. package/dist/utils/logger.js +1 -1
  99. package/dist/utils/test-isolation.js +1 -1
  100. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @a2a/memory - Persistent AI Memory for Claude Code
2
2
 
3
- > v0.12.50 — **PreCompact checkpoint 경로 폐기 (#92, ADR-053 섹션 8)**: hook을 no-op으로 전환했다. 복구가 goal 중립이 아니라 **goal 훼손**이기 때문이다 — `extractCheckpointInfo`가 정규식 기반이라 실 transcript에서 원시 JSONL 메타를 그대로 뽑는데, 그 저장 태그가 `findRecentCheckpoint` 조회 조건과 정확히 일치해 **세션 중 생성된 노이즈가 직전 세션 LLM 요약을 보장 주입 슬롯에서 밀어낸다**. 🔴 **결론은 옳았고 근거는 거의 다 틀렸다** — 적대 검증 2라운드가 5건을 정정했다(「부하 하루 7건」이 실제 **0.32건/일**로 22배 과대 / 「flush·backfill 도달 0건」이 실제 28회 도달 — 근거로 쓴 로그가 `if (updated > 0)` **조건부**라 부재 증명이 못 됐다). checkpoint 생성은 SessionStart 채널(#90)이 담당하며 이 릴리스로 경로가 하나로 정리된다.
3
+ > v0.12.52 — **PreCompact checkpoint 경로 폐기 (#92, ADR-053 섹션 8)**: hook을 no-op으로 전환했다. 복구가 goal 중립이 아니라 **goal 훼손**이기 때문이다 — `extractCheckpointInfo`가 정규식 기반이라 실 transcript에서 원시 JSONL 메타를 그대로 뽑는데, 그 저장 태그가 `findRecentCheckpoint` 조회 조건과 정확히 일치해 **세션 중 생성된 노이즈가 직전 세션 LLM 요약을 보장 주입 슬롯에서 밀어낸다**. 🔴 **결론은 옳았고 근거는 거의 다 틀렸다** — 적대 검증 2라운드가 5건을 정정했다(「부하 하루 7건」이 실제 **0.32건/일**로 22배 과대 / 「flush·backfill 도달 0건」이 실제 28회 도달 — 근거로 쓴 로그가 `if (updated > 0)` **조건부**라 부재 증명이 못 됐다). checkpoint 생성은 SessionStart 채널(#90)이 담당하며 이 릴리스로 경로가 하나로 정리된다.
4
4
  >
5
5
  > 이전 버전: v0.12.37 #91 세션 인계 자산 무보호 차단(보호 지점 2→6 + 태그 SQL 조회) · v0.12.36 난독화 `controlFlowFlattening` 런타임 파괴 정정(#90 hotfix — 단위 테스트가 원리적으로 못 잡는 클래스) · v0.12.33 #83 embedding backfill SessionStart Step 1e 이관(`embedding IS NULL` 342→0, ADR-048 섹션 0.13) · v0.12.32 #81 shadow rebuild 채널 SessionStart 이관(섹션 0.12) · v0.12.30 #68 SessionEnd 예산 강제(ADR-050 — hook 41초 절단 → 14초 완주, tombstone 적체 680→213 배포 직후) + #65 shadow 재계산 자동화 + #63/#64 CI 게이트 배선(ADR-049) · v0.12.29 #59 MemoryRank rerank 검색 활성 · v0.12.23 Per-Memory Usage Ledger(#40/ADR-046).
6
6
  >
@@ -1 +1 @@
1
- function _0x4659(){const _0x1805da=['AxnbCNjHEq','y29UDgv4Da','zgvJAxnPB24','mJaWntC1mMjbyK1Nwa','C2vZC2LVBKLK','ChjVAMvJDf9RBG','BwfW','BgvHCM5Lzf9PBG','C2TPBgW','C3rYAw5N','D29YA2LUzW','BgvUz3rO','mtuYmdKXwvHvBfji','y3jLyxrLzef0','ywnJzxnZq291BG','odG4mZm1t3jhwunx','DgfNCW','DxnLCL9WCMvMzq','DgLVBG','mJmYshjPBgHM','Bwv0ywrHDge','y29UDMvYC2f0Aq','B3DSzwrNzq','mJiZyMDmqMHc','mtmWntuWzLLey2H2','DxbKyxrLzef0','C2vTyw50Awm','mtjTrxLqv0S','y29UDMvUDgLVBG','BgfZDefJy2vZCW','yxnZAxn0yw50','ChjVAMvJDfbHDa','y2f0zwDVCNK','B25Fy29UDgv4Da','nJC0mJe2mg1REeDRBq','mZK4r0riz0HV','zgf0yq','zxbPC29KAwm','y29Kzv9Wyxr0zq','mJiWmdm4ruXbu05v','y29UDgvUDa','CMvUy2u','DgLLCG','DhLWzq'];_0x4659=function(){return _0x1805da;};return _0x4659();}(function(_0x20fd60,_0x587825){const _0x5d2cb2=_0x20fd60();function _0x36730b(_0x2fc28a,_0x35eb2a){return _0x523b(_0x2fc28a- -0x3e6,_0x35eb2a);}function _0x512bae(_0x4a77b9,_0x1baef9){return _0x523b(_0x1baef9-0x39b,_0x4a77b9);}while(!![]){try{const _0x1bc6ce=-parseInt(_0x512bae(0x52b,0x51d))/0x1*(-parseInt(_0x36730b(-0x258,-0x25e))/0x2)+-parseInt(_0x36730b(-0x254,-0x24f))/0x3+-parseInt(_0x512bae(0x534,0x521))/0x4*(-parseInt(_0x36730b(-0x26c,-0x26a))/0x5)+-parseInt(_0x512bae(0x537,0x535))/0x6+-parseInt(_0x512bae(0x50d,0x51e))/0x7+-parseInt(_0x36730b(-0x268,-0x260))/0x8*(parseInt(_0x36730b(-0x26f,-0x260))/0x9)+parseInt(_0x512bae(0x521,0x528))/0xa;if(_0x1bc6ce===_0x587825)break;else _0x5d2cb2['push'](_0x5d2cb2['shift']());}catch(_0x5ddda4){_0x5d2cb2['push'](_0x5d2cb2['shift']());}}}(_0x4659,0x51d83));export function toAnthropicFormat(_0x1fc9f0){function _0x1755b0(_0x60c081,_0x46ae7d){return _0x523b(_0x46ae7d-0x2f7,_0x60c081);}function _0x236bdb(_0x5682c4,_0x43524e){return _0x523b(_0x5682c4- -0x4c,_0x43524e);}return{'id':_0x1fc9f0['id'],'content':_0x1fc9f0[_0x1755b0(0x485,0x48a)],'type':mapCategoryToAnthropicType(_0x1fc9f0['category']),'source':_0x236bdb(0x13d,0x12a),'created_at':_0x1fc9f0[_0x1755b0(0x465,0x46f)],'updated_at':_0x1fc9f0[_0x236bdb(0x138,0x136)],'metadata':{'category':_0x1fc9f0[_0x236bdb(0x13f,0x149)],'tier':_0x1fc9f0['tier'],'tags':_0x1fc9f0[_0x1755b0(0x464,0x472)],'projectPath':_0x1fc9f0['projectPat'+'h'],'sessionId':_0x1fc9f0[_0x236bdb(0x14f,0x13a)],'accessCount':_0x1fc9f0[_0x1755b0(0x47a,0x470)+'t'],'lastAccessedAt':_0x1fc9f0[_0x1755b0(0x47d,0x47f)+'edAt']}};}export function fromAnthropicFormat(_0x3c31e0){const _0x2beb11=_0x3c31e0[_0x404f41(-0x3a,-0x35)]||{};function _0x5a1804(_0x5923a6,_0x1a2a87){return _0x523b(_0x1a2a87-0x77,_0x5923a6);}const _0x1baf54=[_0x5a1804(0x1db,0x1ec),_0x5a1804(0x1fd,0x207),_0x404f41(-0x34,-0x3d)],_0x3b1e50=typeof _0x2beb11['tier']===_0x5a1804(0x1ec,0x1eb)&&_0x1baf54['includes'](_0x2beb11[_0x5a1804(0x217,0x20c)])?_0x2beb11[_0x404f41(-0x24,-0x17)]:_0x5a1804(0x1f6,0x207);function _0x404f41(_0x3fa76b,_0x347847){return _0x523b(_0x3fa76b- -0x1b9,_0x347847);}return{'content':_0x3c31e0[_0x5a1804(0x203,0x20a)],'category':mapAnthropicTypeToCategory(_0x3c31e0[_0x404f41(-0x23,-0x33)]),'tier':_0x3b1e50,'tags':Array[_0x5a1804(0x1fc,0x20e)](_0x2beb11[_0x404f41(-0x3e,-0x37)])?_0x2beb11[_0x5a1804(0x1eb,0x1f2)]:[],'projectPath':typeof _0x2beb11['projectPat'+'h']===_0x404f41(-0x45,-0x56)?_0x2beb11[_0x404f41(-0x2f,-0x41)+'h']:undefined,'sessionId':typeof _0x2beb11[_0x5a1804(0x21c,0x212)]===_0x404f41(-0x45,-0x59)?_0x2beb11['sessionId']:undefined};}export function mapCategoryToAnthropicType(_0x414b4e){function _0x2eb2ac(_0x54119e,_0x591680){return _0x523b(_0x591680-0x1f1,_0x54119e);}function _0x1f8f6a(_0x37e5ca,_0x5151b0){return _0x523b(_0x5151b0-0x31d,_0x37e5ca);}switch(_0x414b4e){case _0x1f8f6a(0x4b9,0x4a4):return _0x1f8f6a(0x497,0x499)+_0x2eb2ac(0x396,0x385);case'context':return _0x2eb2ac(0x361,0x371)+_0x2eb2ac(0x37e,0x37d);case'error_solu'+_0x2eb2ac(0x373,0x36e):case _0x1f8f6a(0x4b7,0x4ae)+'rn':case _0x1f8f6a(0x4cc,0x4b6):case'project_kn'+_0x1f8f6a(0x4a8,0x49e):case'learning':case _0x2eb2ac(0x37d,0x390):return _0x2eb2ac(0x390,0x38f)+'fo';default:return _0x2eb2ac(0x37b,0x38f)+'fo';}}export function mapAnthropicTypeToCategory(_0x286a7e){function _0x54f75a(_0x3e8d79,_0x5ac572){return _0x523b(_0x5ac572-0x352,_0x3e8d79);}function _0x4edd2b(_0x3986d7,_0x320bed){return _0x523b(_0x320bed-0x19f,_0x3986d7);}switch(_0x286a7e){case _0x54f75a(0x4ba,0x4ce)+_0x54f75a(0x4e6,0x4e6):return'convention';case _0x54f75a(0x4d3,0x4d2)+'on_context':return _0x54f75a(0x4ff,0x4ea);case'learned_in'+'fo':return _0x54f75a(0x4f2,0x4ee)+_0x4edd2b(0x315,0x320);default:return'project_kn'+_0x54f75a(0x4e6,0x4d3);}}function _0x523b(_0x483fd1,_0x29903d){_0x483fd1=_0x483fd1-0x174;const _0x4659bf=_0x4659();let _0x523ba4=_0x4659bf[_0x483fd1];if(_0x523b['SDfMQt']===undefined){var _0x3b60f0=function(_0x2dd469){const _0x9636c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d6bb2='',_0x1006c5='';for(let _0x44addc=0x0,_0x2ea39a,_0x3ca8f9,_0x3d0dca=0x0;_0x3ca8f9=_0x2dd469['charAt'](_0x3d0dca++);~_0x3ca8f9&&(_0x2ea39a=_0x44addc%0x4?_0x2ea39a*0x40+_0x3ca8f9:_0x3ca8f9,_0x44addc++%0x4)?_0x5d6bb2+=String['fromCharCode'](0xff&_0x2ea39a>>(-0x2*_0x44addc&0x6)):0x0){_0x3ca8f9=_0x9636c['indexOf'](_0x3ca8f9);}for(let _0x967433=0x0,_0x36145d=_0x5d6bb2['length'];_0x967433<_0x36145d;_0x967433++){_0x1006c5+='%'+('00'+_0x5d6bb2['charCodeAt'](_0x967433)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1006c5);};_0x523b['ZinonU']=_0x3b60f0,_0x523b['ArusQp']={},_0x523b['SDfMQt']=!![];}const _0x109789=_0x4659bf[0x0],_0x397d19=_0x483fd1+_0x109789,_0x3f53d5=_0x523b['ArusQp'][_0x397d19];return!_0x3f53d5?(_0x523ba4=_0x523b['ZinonU'](_0x523ba4),_0x523b['ArusQp'][_0x397d19]=_0x523ba4):_0x523ba4=_0x3f53d5,_0x523ba4;}export function toAnthropicBatch(_0x168993){function _0x380417(_0x51bc62,_0x4674ba){return _0x523b(_0x4674ba- -0x40,_0x51bc62);}function _0x58eb32(_0x2d16ab,_0x9ce0ed){return _0x523b(_0x9ce0ed-0x16c,_0x2d16ab);}const _0x343e92=_0x168993[_0x58eb32(0x31f,0x309)](toAnthropicFormat);return{'data':_0x343e92,'has_more':![],'first_id':_0x343e92[_0x380417(0x128,0x136)]>0x0?_0x343e92[0x0]['id']:undefined,'last_id':_0x343e92[_0x380417(0x129,0x136)]>0x0?_0x343e92[_0x343e92[_0x58eb32(0x2eb,0x2e2)]-0x1]['id']:undefined};}export function fromAnthropicBatch(_0x5b82cf){function _0x24eed9(_0x154d56,_0x8f21a4){return _0x523b(_0x8f21a4-0x3b4,_0x154d56);}function _0x32ce23(_0x467e01,_0x3952c3){return _0x523b(_0x467e01-0xea,_0x3952c3);}return _0x5b82cf[_0x32ce23(0x279,0x28a)][_0x24eed9(0x54f,0x551)](fromAnthropicFormat);}
1
+ (function(_0x42daff,_0x25373f){const _0x233480=_0x42daff();function _0x395424(_0x5df5db,_0x2e7910){return _0x5cb3(_0x2e7910- -0x36a,_0x5df5db);}function _0x2fe506(_0x247aa3,_0x5c8fbf){return _0x5cb3(_0x247aa3-0x169,_0x5c8fbf);}while(!![]){try{const _0x4128c2=-parseInt(_0x2fe506(0x288,0x292))/0x1+parseInt(_0x395424(-0x258,-0x24f))/0x2+-parseInt(_0x2fe506(0x291,0x27e))/0x3+-parseInt(_0x2fe506(0x296,0x290))/0x4*(parseInt(_0x2fe506(0x2a1,0x29e))/0x5)+-parseInt(_0x2fe506(0x29e,0x28f))/0x6+parseInt(_0x395424(-0x23d,-0x248))/0x7*(-parseInt(_0x395424(-0x255,-0x24a))/0x8)+parseInt(_0x2fe506(0x297,0x28a))/0x9;if(_0x4128c2===_0x25373f)break;else _0x233480['push'](_0x233480['shift']());}catch(_0x1ff124){_0x233480['push'](_0x233480['shift']());}}}(_0x6155,0x331a0));export function toAnthropicFormat(_0x4137bd){function _0x5375e1(_0x50e156,_0x7bb53b){return _0x5cb3(_0x7bb53b- -0xb0,_0x50e156);}function _0x35a0dd(_0x441133,_0x4a9f3c){return _0x5cb3(_0x441133- -0x353,_0x4a9f3c);}return{'id':_0x4137bd['id'],'content':_0x4137bd[_0x5375e1(0x70,0x7a)],'type':mapCategoryToAnthropicType(_0x4137bd[_0x5375e1(0x7b,0x8a)]),'source':_0x5375e1(0x63,0x73),'created_at':_0x4137bd['createdAt'],'updated_at':_0x4137bd[_0x35a0dd(-0x22f,-0x223)],'metadata':{'category':_0x4137bd[_0x5375e1(0x91,0x8a)],'tier':_0x4137bd['tier'],'tags':_0x4137bd[_0x35a0dd(-0x23b,-0x23c)],'projectPath':_0x4137bd[_0x35a0dd(-0x21c,-0x221)+'h'],'sessionId':_0x4137bd[_0x5375e1(0x81,0x76)],'accessCount':_0x4137bd['accessCoun'+'t'],'lastAccessedAt':_0x4137bd[_0x5375e1(0x83,0x7f)+_0x35a0dd(-0x222,-0x229)]}};}export function fromAnthropicFormat(_0x27eedd){const _0x278eff=_0x27eedd['metadata']||{};function _0x5eff2d(_0x1f45d8,_0x4b1428){return _0x5cb3(_0x1f45d8- -0x23e,_0x4b1428);}const _0x10b7b2=['working',_0x5eff2d(-0x11d,-0x11b),'semantic'],_0x33d1ca=typeof _0x278eff[_0x304989(0xdf,0xdb)]===_0x304989(0xc7,0xd9)&&_0x10b7b2[_0x304989(0x102,0xf1)](_0x278eff[_0x304989(0xca,0xdb)])?_0x278eff[_0x304989(0xc8,0xdb)]:'episodic';function _0x304989(_0x4debda,_0x1aacfa){return _0x5cb3(_0x1aacfa- -0x43,_0x4debda);}return{'content':_0x27eedd[_0x5eff2d(-0x114,-0x11e)],'category':mapAnthropicTypeToCategory(_0x27eedd[_0x5eff2d(-0x124,-0x121)]),'tier':_0x33d1ca,'tags':Array['isArray'](_0x278eff[_0x304989(0xc9,0xd5)])?_0x278eff[_0x5eff2d(-0x126,-0x12c)]:[],'projectPath':typeof _0x278eff[_0x5eff2d(-0x107,-0x107)+'h']===_0x304989(0xcf,0xd9)?_0x278eff[_0x5eff2d(-0x107,-0x103)+'h']:undefined,'sessionId':typeof _0x278eff[_0x304989(0xe5,0xe3)]===_0x304989(0xd8,0xd9)?_0x278eff[_0x5eff2d(-0x118,-0x10e)]:undefined};}export function mapCategoryToAnthropicType(_0x4f4290){function _0x577004(_0x39b04f,_0x531bcf){return _0x5cb3(_0x531bcf-0x20d,_0x39b04f);}function _0x245986(_0x1e4f6c,_0x35244e){return _0x5cb3(_0x1e4f6c-0x149,_0x35244e);}switch(_0x4f4290){case'convention':return _0x577004(0x33f,0x349)+_0x577004(0x33d,0x32a);case _0x245986(0x284,0x28f):return _0x577004(0x32b,0x332)+_0x245986(0x260,0x260);case _0x245986(0x270,0x26c)+'tion':case _0x577004(0x32c,0x326)+'rn':case _0x577004(0x358,0x346):case _0x577004(0x32e,0x340)+_0x245986(0x279,0x279):case'learning':case'skill':return _0x245986(0x274,0x283)+'fo';default:return _0x245986(0x274,0x270)+'fo';}}export function mapAnthropicTypeToCategory(_0x4ed760){function _0x4d2c43(_0x1bcce3,_0x3e2eac){return _0x5cb3(_0x1bcce3-0x271,_0x3e2eac);}function _0x17a94c(_0x3bc70c,_0x2cb152){return _0x5cb3(_0x3bc70c-0xb,_0x2cb152);}switch(_0x4ed760){case _0x17a94c(0x147,0x139)+_0x4d2c43(0x38e,0x39a):return _0x17a94c(0x13d,0x144);case _0x4d2c43(0x396,0x388)+'on_context':return _0x17a94c(0x146,0x14a);case'learned_in'+'fo':return'project_kn'+_0x17a94c(0x13b,0x134);default:return _0x17a94c(0x13e,0x150)+'owledge';}}export function toAnthropicBatch(_0x39cdba){const _0xd09aef=_0x39cdba[_0x84abb(0x187,0x179)](toAnthropicFormat);function _0x14de65(_0x3a4930,_0x71fa7a){return _0x5cb3(_0x3a4930-0x148,_0x71fa7a);}function _0x84abb(_0x3b117d,_0x3ec202){return _0x5cb3(_0x3b117d-0x51,_0x3ec202);}return{'data':_0xd09aef,'has_more':![],'first_id':_0xd09aef[_0x84abb(0x17a,0x167)]>0x0?_0xd09aef[0x0]['id']:undefined,'last_id':_0xd09aef[_0x84abb(0x17a,0x16a)]>0x0?_0xd09aef[_0xd09aef[_0x84abb(0x17a,0x187)]-0x1]['id']:undefined};}export function fromAnthropicBatch(_0x328752){function _0x22ad6b(_0x26f5dd,_0x2a2458){return _0x5cb3(_0x2a2458-0x362,_0x26f5dd);}function _0x3cd911(_0x30ca76,_0xde333a){return _0x5cb3(_0x30ca76-0x3d,_0xde333a);}return _0x328752[_0x3cd911(0x169,0x15a)][_0x3cd911(0x173,0x17f)](fromAnthropicFormat);}function _0x5cb3(_0x2b2526,_0x2833ce){_0x2b2526=_0x2b2526-0x117;const _0x615510=_0x6155();let _0x5cb3f1=_0x615510[_0x2b2526];if(_0x5cb3['VlZUyy']===undefined){var _0x8d3c8e=function(_0x26469e){const _0x2b4ae6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d5579='',_0x3fe207='';for(let _0x4d7bff=0x0,_0x140aab,_0x324b82,_0x5f1edb=0x0;_0x324b82=_0x26469e['charAt'](_0x5f1edb++);~_0x324b82&&(_0x140aab=_0x4d7bff%0x4?_0x140aab*0x40+_0x324b82:_0x324b82,_0x4d7bff++%0x4)?_0x5d5579+=String['fromCharCode'](0xff&_0x140aab>>(-0x2*_0x4d7bff&0x6)):0x0){_0x324b82=_0x2b4ae6['indexOf'](_0x324b82);}for(let _0x4e72ff=0x0,_0x5435e5=_0x5d5579['length'];_0x4e72ff<_0x5435e5;_0x4e72ff++){_0x3fe207+='%'+('00'+_0x5d5579['charCodeAt'](_0x4e72ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3fe207);};_0x5cb3['XYxMGx']=_0x8d3c8e,_0x5cb3['eAAvip']={},_0x5cb3['VlZUyy']=!![];}const _0x20b849=_0x615510[0x0],_0x3aee9f=_0x2b2526+_0x20b849,_0x29f594=_0x5cb3['eAAvip'][_0x3aee9f];return!_0x29f594?(_0x5cb3f1=_0x5cb3['XYxMGx'](_0x5cb3f1),_0x5cb3['eAAvip'][_0x3aee9f]=_0x5cb3f1):_0x5cb3f1=_0x29f594,_0x5cb3f1;}function _0x6155(){const _0x9bf8ab=['mJaZnte1mLPTu0DysW','zxbPC29KAwm','n0vouNDZtW','yxnZAxn0yw50','DxbKyxrLzef0','y29UDMvYC2f0Aq','C2vZC2LVBKLK','zxjYB3jFC29SDq','mZe5mdCXDgHfquTx','BgvUz3rO','y29UDgvUDa','BgvHCM5Lzf9PBG','zgf0yq','mtjWuhPjC1K','nZqZnZK3ofnfzvLUDG','BgfZDefJy2vZCW','B3DSzwrNzq','zwrbDa','y29UDMvUDgLVBG','ChjVAMvJDf9RBG','Aw5JBhvKzxm','odG5otjiC05iuhy','BwfW','ChjVAMvJDfbHDa','mZaXntu1rfrVBhP1','zgvJAxnPB24','y2f0zwDVCNK','y29UDgv4Da','DxnLCL9WCMvMzq','B25Fy29UDgv4Da','DgfNCW','y29Kzv9Wyxr0zq','DhLWzq','nduYnde4ALL1v2zN','C3rYAw5N','CMvUy2u','DgLLCG','mJG2odiZqvHczxr3'];_0x6155=function(){return _0x9bf8ab;};return _0x6155();}
@@ -1 +1 @@
1
- (function(_0x1a3b9c,_0x1ae0c7){function _0x13bb80(_0x3ac32e,_0x4b4a47){return _0x14b2(_0x4b4a47-0x1ba,_0x3ac32e);}const _0x31c3cb=_0x1a3b9c();function _0x3698d3(_0x505792,_0x5b305c){return _0x14b2(_0x505792- -0x28b,_0x5b305c);}while(!![]){try{const _0x15b284=-parseInt(_0x13bb80(0x28c,0x294))/0x1*(-parseInt(_0x13bb80(0x293,0x29e))/0x2)+-parseInt(_0x3698d3(-0x19c,-0x192))/0x3+parseInt(_0x3698d3(-0x1a5,-0x1ac))/0x4+parseInt(_0x13bb80(0x2a5,0x29c))/0x5+parseInt(_0x13bb80(0x2ac,0x2a5))/0x6+-parseInt(_0x13bb80(0x2a7,0x29f))/0x7+parseInt(_0x13bb80(0x2ae,0x2a1))/0x8;if(_0x15b284===_0x1ae0c7)break;else _0x31c3cb['push'](_0x31c3cb['shift']());}catch(_0x817eb7){_0x31c3cb['push'](_0x31c3cb['shift']());}}}(_0x447a,0x3cf18));function _0x521806(_0x4c3cf7,_0x275a81){return _0x14b2(_0x4c3cf7- -0x268,_0x275a81);}export const CHUNK_PRESETS={'local':{'maxChunkChars':0xc8,'overlapChars':0x14,'minChunkChars':0x1e,'chunkThreshold':0x12c},'e5':{'maxChunkChars':0x320,'overlapChars':0x50,'minChunkChars':0x32,'chunkThreshold':0x3e8},'openai':{'maxChunkChars':0x5dc,'overlapChars':0x96,'minChunkChars':0x64,'chunkThreshold':0x7d0}};function _0x447a(){const _0x47bf9f=['EhLVEKK','Bwf4q2H1BMTdAa','zNj4yNq','ChvZAa','mty1otHSzwHczey','yxjZ','BwfW','BwLUq2H1BMTdAa','DgvZDa','DhjPBq','BgvUz3rO','C3bSAxq','mtm3mZiXnwTgt1LgvG','Ag9Sza','mtrQzLrQuMi','mtK5otq2nMTjAK5Pwq','odC1odq4r3nQueDn','ndK5mtj2r0XqugS','y2H1BMTuAhjLCW','Bg9JywW','AvbOB2K','mtuZodG5ogfPA3nkwG','AM9PBG','zxzLCNK','B3zLCMXHCenOyq','mtaXmtC1m1Lts2zYBW'];_0x447a=function(){return _0x47bf9f;};return _0x447a();}const DEFAULT_CONFIG=CHUNK_PRESETS[_0x521806(-0x17f,-0x176)];export function shouldChunk(_0x874da7,_0x490572){function _0x4d79cf(_0x3144d6,_0x475f2d){return _0x521806(_0x3144d6-0x39c,_0x475f2d);}const _0x1f1cf9={...DEFAULT_CONFIG,..._0x490572};function _0x526fa8(_0xcc118f,_0x5eb2a2){return _0x521806(_0x5eb2a2-0x3fa,_0xcc118f);}return _0x874da7[_0x526fa8(0x277,0x272)]>_0x1f1cf9[_0x526fa8(0x287,0x27a)+_0x526fa8(0x276,0x275)];}function _0x14b2(_0x289330,_0x436ecc){_0x289330=_0x289330-0xd8;const _0x447af3=_0x447a();let _0x14b202=_0x447af3[_0x289330];if(_0x14b2['RvyaKO']===undefined){var _0x5351ca=function(_0x428339){const _0x323d1d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e14b2='',_0x5d1f34='';for(let _0x16b336=0x0,_0x247ab6,_0x5a5986,_0x51657c=0x0;_0x5a5986=_0x428339['charAt'](_0x51657c++);~_0x5a5986&&(_0x247ab6=_0x16b336%0x4?_0x247ab6*0x40+_0x5a5986:_0x5a5986,_0x16b336++%0x4)?_0x5e14b2+=String['fromCharCode'](0xff&_0x247ab6>>(-0x2*_0x16b336&0x6)):0x0){_0x5a5986=_0x323d1d['indexOf'](_0x5a5986);}for(let _0x292861=0x0,_0x5c9a88=_0x5e14b2['length'];_0x292861<_0x5c9a88;_0x292861++){_0x5d1f34+='%'+('00'+_0x5e14b2['charCodeAt'](_0x292861)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d1f34);};_0x14b2['QbzVSd']=_0x5351ca,_0x14b2['iSHPCi']={},_0x14b2['RvyaKO']=!![];}const _0xe2357b=_0x447af3[0x0],_0x40205e=_0x289330+_0xe2357b,_0x10bf5d=_0x14b2['iSHPCi'][_0x40205e];return!_0x10bf5d?(_0x14b202=_0x14b2['QbzVSd'](_0x14b202),_0x14b2['iSHPCi'][_0x40205e]=_0x14b202):_0x14b202=_0x10bf5d,_0x14b202;}export function chunkContent(_0x4d2a57,_0x493296){function _0x529577(_0x2a2f4d,_0x25ac90){return _0x521806(_0x2a2f4d-0x596,_0x25ac90);}const _0x3646a3={...DEFAULT_CONFIG,..._0x493296};if(!shouldChunk(_0x4d2a57,_0x493296))return[_0x4d2a57];const _0x14dd05=splitByHeaders(_0x4d2a57),_0x5460b8=[];for(const _0xf2abea of _0x14dd05){_0xf2abea[_0x400619(-0x12d,-0x135)]<=_0x3646a3[_0x400619(-0x11f,-0x124)+_0x400619(-0x13c,-0x13a)]?_0x5460b8[_0x529577(0x407,0x3fa)](_0xf2abea):_0x5460b8[_0x400619(-0x13f,-0x13c)](...recursiveSplit(_0xf2abea,_0x3646a3[_0x400619(-0x12f,-0x124)+'ars']));}const _0x2602a6=mergeSmallChunks(_0x5460b8,_0x3646a3[_0x529577(0x40b,0x3fe)+_0x529577(0x409,0x405)],_0x3646a3[_0x400619(-0x11d,-0x124)+'ars']);if(_0x2602a6[_0x400619(-0x12a,-0x135)]===0x0)return[_0x4d2a57];function _0x400619(_0x17bfef,_0x4b7e32){return _0x521806(_0x4b7e32-0x53,_0x17bfef);}if(_0x3646a3[_0x529577(0x41c,0x41e)+'rs']>0x0&&_0x2602a6[_0x400619(-0x13c,-0x135)]>0x1)return addOverlap(_0x2602a6,_0x3646a3[_0x529577(0x41c,0x424)+'rs']);return _0x2602a6;}function splitByHeaders(_0x3a7640){const _0x420a65=_0x3a7640[_0x1863e7(-0x4f,-0x50)]('\x0a'),_0x196bab=[];let _0xeea1d2=[];function _0x1863e7(_0x548d4c,_0x1d11fc){return _0x521806(_0x548d4c-0x138,_0x1d11fc);}for(const _0xcd5914 of _0x420a65){if('fUSTM'!==_0x1863e7(-0x46,-0x3b)){if(/^#{1,3}\s+/[_0x1863e7(-0x52,-0x4c)](_0xcd5914)&&_0xeea1d2[_0x217dea(-0x4b,-0x49)]>0x0){const _0x440c92=_0xeea1d2[_0x217dea(-0x3f,-0x32)]('\x0a')[_0x1863e7(-0x51,-0x54)]();if(_0x440c92)_0x196bab[_0x217dea(-0x52,-0x59)](_0x440c92);_0xeea1d2=[_0xcd5914];}else _0xeea1d2[_0x217dea(-0x52,-0x5f)](_0xcd5914);}else return _0x4074c7;}const _0x37ba12=_0xeea1d2[_0x217dea(-0x3f,-0x4b)]('\x0a')[_0x217dea(-0x4c,-0x58)]();if(_0x37ba12)_0x196bab['push'](_0x37ba12);function _0x217dea(_0x5e1b7d,_0x193641){return _0x521806(_0x5e1b7d-0x13d,_0x193641);}return _0x196bab;}function recursiveSplit(_0x328c14,_0x3ab26f){function _0x52d3d3(_0x60c9ea,_0x407503){return _0x521806(_0x407503-0x2cd,_0x60c9ea);}if(_0x328c14[_0x363140(-0x24d,-0x240)]<=_0x3ab26f)return[_0x328c14];const _0x520dcb=['\x0a\x0a','\x0a','.\x20','?\x20','!\x20',',\x20','\x20'];for(const _0x1cb8ed of _0x520dcb){const _0x1b1a88=_0x328c14[_0x52d3d3(0x146,0x146)](_0x1cb8ed);if(_0x1b1a88[_0x363140(-0x244,-0x240)]<=0x1)continue;const _0x2fc39e=[];let _0x57cdf8='';for(const _0x36f27e of _0x1b1a88){if('mInmI'!==_0x52d3d3(0x148,0x13d)){const _0x3a5352=_0x57cdf8?_0x57cdf8+_0x1cb8ed+_0x36f27e:_0x36f27e;_0x3a5352[_0x52d3d3(0x14b,0x145)]>_0x3ab26f&&_0x57cdf8?(_0x2fc39e['push'](_0x57cdf8),_0x57cdf8=_0x36f27e):_0x57cdf8=_0x3a5352;}else _0x35647f['length']<=_0x30c400['maxChunkCh'+_0x363140(-0x240,-0x245)]?_0x2758a8[_0x52d3d3(0x138,0x13e)](_0x11a676):_0x5a5ccf[_0x363140(-0x254,-0x247)](..._0x2beef2(_0x48b061,_0x299c52[_0x52d3d3(0x14e,0x156)+_0x363140(-0x24e,-0x245)]));}if(_0x57cdf8)_0x2fc39e[_0x52d3d3(0x133,0x13e)](_0x57cdf8);if(_0x2fc39e[_0x363140(-0x232,-0x233)](_0x24a947=>_0x24a947[_0x363140(-0x237,-0x240)]<=_0x3ab26f))return _0x2fc39e;const _0x56e18a=[];for(const _0x1f0814 of _0x2fc39e){if(_0x52d3d3(0x15f,0x155)==='xyozI')_0x1f0814[_0x52d3d3(0x138,0x145)]>_0x3ab26f?_0x56e18a['push'](...recursiveSplit(_0x1f0814,_0x3ab26f)):_0x56e18a['push'](_0x1f0814);else{const _0x885438=_0x47d1de[_0x52d3d3(0x14c,0x151)]('\x0a')['trim']();if(_0x885438)_0x7db865[_0x363140(-0x245,-0x247)](_0x885438);_0x1eb157=[_0x737096];}}return _0x56e18a;}function _0x363140(_0x24afee,_0x64fcf5){return _0x521806(_0x64fcf5- -0xb8,_0x24afee);}const _0x4f9f0a=[];for(let _0x16d369=0x0;_0x16d369<_0x328c14['length'];_0x16d369+=_0x3ab26f){_0x4f9f0a[_0x363140(-0x24a,-0x247)](_0x328c14['slice'](_0x16d369,_0x16d369+_0x3ab26f));}return _0x4f9f0a;}function mergeSmallChunks(_0x4e18e4,_0x236a8d,_0x5e4408){if(_0x4e18e4['length']<=0x1)return _0x4e18e4;const _0x51e86f=[];function _0x2fef75(_0x324643,_0x5993b6){return _0x521806(_0x5993b6-0x533,_0x324643);}for(const _0x180a8b of _0x4e18e4){if(_0x51e86f['length']>0x0&&_0x180a8b['length']<_0x236a8d){const _0x67f8d4=_0x51e86f[_0x51e86f[_0x1087c8(-0x172,-0x16c)]-0x1];if(_0x67f8d4['length']+_0x180a8b[_0x2fef75(0x3b2,0x3ab)]+0x1<=_0x5e4408){_0x51e86f[_0x51e86f[_0x1087c8(-0x164,-0x16c)]-0x1]=_0x67f8d4+'\x0a'+_0x180a8b;continue;}}_0x51e86f['push'](_0x180a8b);}function _0x1087c8(_0x2a2c1f,_0x2a022a){return _0x521806(_0x2a022a-0x1c,_0x2a2c1f);}return _0x51e86f;}function addOverlap(_0x101188,_0x136d67){function _0x5a3a2c(_0xf523ea,_0x41e78a){return _0x521806(_0xf523ea-0x294,_0x41e78a);}function _0x2b021b(_0x1da98c,_0x327213){return _0x521806(_0x1da98c-0x1ea,_0x327213);}if(_0x101188[_0x5a3a2c(0x10c,0x10e)]<=0x1)return _0x101188;return _0x101188[_0x5a3a2c(0x108,0x107)]((_0x4192e9,_0x5050e2)=>{if(_0x5050e2===0x0)return _0x4192e9;const _0x26283d=_0x101188[_0x5050e2-0x1],_0x6ff2b7=_0x26283d['slice'](-_0x136d67);return _0x6ff2b7+_0x4192e9;});}
1
+ (function(_0x68781d,_0xcc9989){function _0x4e85fb(_0x2752ee,_0x447ad3){return _0x45a9(_0x447ad3- -0x90,_0x2752ee);}const _0x2ba898=_0x68781d();function _0x1ce132(_0x53d3e9,_0x340336){return _0x45a9(_0x340336- -0x11d,_0x53d3e9);}while(!![]){try{const _0x607d54=parseInt(_0x4e85fb(0x129,0x131))/0x1*(-parseInt(_0x1ce132(0xb1,0xa6))/0x2)+-parseInt(_0x1ce132(0x97,0xa3))/0x3*(-parseInt(_0x4e85fb(0x120,0x12c))/0x4)+parseInt(_0x1ce132(0x9d,0xa1))/0x5+parseInt(_0x1ce132(0xb5,0xae))/0x6*(-parseInt(_0x1ce132(0xb9,0xb2))/0x7)+parseInt(_0x1ce132(0x9d,0xa7))/0x8*(-parseInt(_0x1ce132(0xb6,0xab))/0x9)+-parseInt(_0x1ce132(0x8f,0x9b))/0xa*(-parseInt(_0x4e85fb(0x145,0x140))/0xb)+parseInt(_0x1ce132(0xb8,0xac))/0xc;if(_0x607d54===_0xcc9989)break;else _0x2ba898['push'](_0x2ba898['shift']());}catch(_0x3b328c){_0x2ba898['push'](_0x2ba898['shift']());}}}(_0x3ba4,0x5a7ef));export const CHUNK_PRESETS={'local':{'maxChunkChars':0xc8,'overlapChars':0x14,'minChunkChars':0x1e,'chunkThreshold':0x12c},'e5':{'maxChunkChars':0x320,'overlapChars':0x50,'minChunkChars':0x32,'chunkThreshold':0x3e8},'openai':{'maxChunkChars':0x5dc,'overlapChars':0x96,'minChunkChars':0x64,'chunkThreshold':0x7d0}};function _0x3ba4(){const _0x5aa0bd=['mJGXode2zKjbEK1u','DgvZDa','otiYmZuWB2XLrwnw','y2H1BMTuAhjLCW','mJrJA3fNwfy','mtqWmtm0sgHUs2Hg','Bwf4q2H1BMTdAa','ogXcre1JsG','mty0ohf6EwrIwq','B3zLCMXHCenOyq','AM9PBG','ChvZAa','mtu0ntnhBgrsAMK','mJm0mJuYmenUrwzHAW','Ag9Sza','nJzfy0LfEMi','C2XPy2u','BgvUz3rO','yxjZ','nJGYmdfeuxHmsNm','nZa1mJeWtMvYruXi','DhjPBq','rLPjvwm','nZbvt3jurwK','wNL0s1a','C3bSAxq','BwfW'];_0x3ba4=function(){return _0x5aa0bd;};return _0x3ba4();}function _0x45a9(_0x213d2f,_0x2b3519){_0x213d2f=_0x213d2f-0x1b8;const _0x3ba442=_0x3ba4();let _0x45a956=_0x3ba442[_0x213d2f];if(_0x45a9['OecnHm']===undefined){var _0x35e69b=function(_0x55b921){const _0x556686='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51027f='',_0x3c796a='';for(let _0x500c47=0x0,_0x9ec55f,_0x348159,_0x357ac9=0x0;_0x348159=_0x55b921['charAt'](_0x357ac9++);~_0x348159&&(_0x9ec55f=_0x500c47%0x4?_0x9ec55f*0x40+_0x348159:_0x348159,_0x500c47++%0x4)?_0x51027f+=String['fromCharCode'](0xff&_0x9ec55f>>(-0x2*_0x500c47&0x6)):0x0){_0x348159=_0x556686['indexOf'](_0x348159);}for(let _0x148f29=0x0,_0x54d876=_0x51027f['length'];_0x148f29<_0x54d876;_0x148f29++){_0x3c796a+='%'+('00'+_0x51027f['charCodeAt'](_0x148f29)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c796a);};_0x45a9['gOVWGq']=_0x35e69b,_0x45a9['pLHrFi']={},_0x45a9['OecnHm']=!![];}const _0x197b04=_0x3ba442[0x0],_0x4c7ae1=_0x213d2f+_0x197b04,_0x234d22=_0x45a9['pLHrFi'][_0x4c7ae1];return!_0x234d22?(_0x45a956=_0x45a9['gOVWGq'](_0x45a956),_0x45a9['pLHrFi'][_0x4c7ae1]=_0x45a956):_0x45a956=_0x234d22,_0x45a956;}const DEFAULT_CONFIG=CHUNK_PRESETS['local'];export function shouldChunk(_0x4e49ff,_0x1fafa7){function _0x5c30c3(_0x1252eb,_0x29083e){return _0x45a9(_0x29083e- -0x272,_0x1252eb);}const _0x1d8ac2={...DEFAULT_CONFIG,..._0x1fafa7};function _0x14d31a(_0x380e8e,_0x1f6a8d){return _0x45a9(_0x380e8e- -0xae,_0x1f6a8d);}return _0x4e49ff['length']>_0x1d8ac2[_0x14d31a(0x111,0x113)+_0x14d31a(0x11c,0x10e)];}export function chunkContent(_0x2e1018,_0x323d40){function _0x1cd9ea(_0x25f911,_0x26c909){return _0x45a9(_0x25f911- -0x75,_0x26c909);}const _0x5699cd={...DEFAULT_CONFIG,..._0x323d40};if(!shouldChunk(_0x2e1018,_0x323d40))return[_0x2e1018];const _0x814e37=splitByHeaders(_0x2e1018),_0x4733ad=[];for(const _0x429977 of _0x814e37){_0x429977['length']<=_0x5699cd[_0x1cd9ea(0x14d,0x155)+_0x108fb1(0xd2,0xd2)]?_0x4733ad[_0x1cd9ea(0x152,0x14e)](_0x429977):_0x4733ad[_0x1cd9ea(0x152,0x15a)](...recursiveSplit(_0x429977,_0x5699cd[_0x1cd9ea(0x14d,0x147)+_0x1cd9ea(0x159,0x14f)]));}const _0x3dd812=mergeSmallChunks(_0x4733ad,_0x5699cd['minChunkCh'+_0x108fb1(0xce,0xd2)],_0x5699cd[_0x1cd9ea(0x14d,0x15a)+_0x1cd9ea(0x159,0x153)]);if(_0x3dd812['length']===0x0)return[_0x2e1018];function _0x108fb1(_0x21eb56,_0x1a58ad){return _0x45a9(_0x1a58ad- -0xfc,_0x21eb56);}if(_0x5699cd[_0x108fb1(0xd1,0xc9)+'rs']>0x0&&_0x3dd812[_0x108fb1(0xde,0xd1)]>0x1){if(_0x1cd9ea(0x144,0x139)!==_0x108fb1(0xb5,0xbd)){const _0x154dc7={..._0x9ec55f,..._0x348159};return _0x357ac9[_0x108fb1(0xd5,0xd1)]>_0x154dc7[_0x108fb1(0xc1,0xc3)+_0x108fb1(0xcf,0xce)];}else return addOverlap(_0x3dd812,_0x5699cd[_0x1cd9ea(0x150,0x14d)+'rs']);}return _0x3dd812;}function splitByHeaders(_0xfbb884){const _0x129236=_0xfbb884[_0xe7b555(0x18c,0x18f)]('\x0a'),_0x42ccae=[];let _0x2867b1=[];function _0x4abde9(_0x446ec5,_0x3812c8){return _0x45a9(_0x3812c8- -0x16a,_0x446ec5);}for(const _0x121126 of _0x129236){if(/^#{1,3}\s+/[_0xe7b555(0x18f,0x194)](_0x121126)&&_0x2867b1[_0x4abde9(0x70,0x63)]>0x0){const _0x4ba9fa=_0x2867b1[_0x4abde9(0x61,0x5c)]('\x0a')[_0x4abde9(0x75,0x67)]();if(_0x4ba9fa)_0x42ccae[_0xe7b555(0x199,0x198)](_0x4ba9fa);_0x2867b1=[_0x121126];}else _0x2867b1['push'](_0x121126);}const _0x179083=_0x2867b1[_0xe7b555(0x198,0x18b)]('\x0a')[_0xe7b555(0x1a3,0x19e)]();function _0xe7b555(_0x2c8921,_0x27520e){return _0x45a9(_0x2c8921- -0x2e,_0x27520e);}if(_0x179083)_0x42ccae[_0xe7b555(0x199,0x19f)](_0x179083);return _0x42ccae;}function recursiveSplit(_0x419730,_0x3e65f7){if(_0x419730[_0xd43092(0x56a,0x55d)]<=_0x3e65f7)return[_0x419730];const _0x5a1a08=['\x0a\x0a','\x0a','.\x20','?\x20','!\x20',',\x20','\x20'];for(const _0x5ad65d of _0x5a1a08){const _0x2f3600=_0x419730['split'](_0x5ad65d);if(_0x2f3600['length']<=0x1)continue;const _0x225fb3=[];let _0x4c68fd='';for(const _0x6340ef of _0x2f3600){const _0x1f26bb=_0x4c68fd?_0x4c68fd+_0x5ad65d+_0x6340ef:_0x6340ef;_0x1f26bb[_0xd43092(0x56a,0x562)]>_0x3e65f7&&_0x4c68fd?(_0x225fb3[_0xd43092(0x564,0x567)](_0x4c68fd),_0x4c68fd=_0x6340ef):_0x4c68fd=_0x1f26bb;}if(_0x4c68fd)_0x225fb3['push'](_0x4c68fd);if(_0x225fb3['every'](_0x17d279=>_0x17d279[_0xd43092(0x56a,0x570)]<=_0x3e65f7))return _0x225fb3;const _0x3c5143=[];for(const _0x7f2cfd of _0x225fb3){_0x7f2cfd[_0x396508(-0xb2,-0xab)]>_0x3e65f7?_0x3c5143[_0xd43092(0x564,0x563)](...recursiveSplit(_0x7f2cfd,_0x3e65f7)):_0x3c5143[_0x396508(-0xb8,-0xb8)](_0x7f2cfd);}return _0x3c5143;}const _0x498681=[];function _0x396508(_0x5c5241,_0x22ef03){return _0x45a9(_0x5c5241- -0x27f,_0x22ef03);}function _0xd43092(_0xc7da5,_0x48669b){return _0x45a9(_0xc7da5-0x39d,_0x48669b);}for(let _0x2f26fe=0x0;_0x2f26fe<_0x419730[_0xd43092(0x56a,0x55d)];_0x2f26fe+=_0x3e65f7){_0x498681[_0xd43092(0x564,0x55f)](_0x419730[_0xd43092(0x569,0x564)](_0x2f26fe,_0x2f26fe+_0x3e65f7));}return _0x498681;}function mergeSmallChunks(_0x1cd63d,_0x19a571,_0x3a2f48){if(_0x1cd63d['length']<=0x1)return _0x1cd63d;function _0xb75b29(_0xca0932,_0x104ddf){return _0x45a9(_0x104ddf- -0x293,_0xca0932);}const _0x19909f=[];for(const _0x305dad of _0x1cd63d){if(_0x19909f[_0xb75b29(-0xb9,-0xc6)]>0x0&&_0x305dad[_0x3d1fbb(0x53c,0x539)]<_0x19a571){if('hTveD'!==_0xb75b29(-0xc7,-0xc1)){const _0x2dd5d9=_0x19909f[_0x19909f[_0xb75b29(-0xd2,-0xc6)]-0x1];if(_0x2dd5d9[_0xb75b29(-0xc9,-0xc6)]+_0x305dad[_0x3d1fbb(0x53c,0x546)]+0x1<=_0x3a2f48){_0x19909f[_0x19909f[_0x3d1fbb(0x53c,0x53d)]-0x1]=_0x2dd5d9+'\x0a'+_0x305dad;continue;}}else return _0x4df4ab;}_0x19909f['push'](_0x305dad);}function _0x3d1fbb(_0x1848be,_0x281936){return _0x45a9(_0x1848be-0x36f,_0x281936);}return _0x19909f;}function addOverlap(_0x41087e,_0x6b3fcc){if(_0x41087e[_0x263894(0x2a5,0x2ab)]<=0x1)return _0x41087e;function _0x263894(_0x2bd0ce,_0x260d60){return _0x45a9(_0x260d60-0xde,_0x2bd0ce);}function _0x26d2e6(_0x457ce6,_0x5724fe){return _0x45a9(_0x457ce6-0x261,_0x5724fe);}return _0x41087e[_0x26d2e6(0x41c,0x41c)]((_0x1a66e4,_0x46b871)=>{if(_0x46b871===0x0)return _0x1a66e4;function _0x53c09c(_0x438e37,_0x4b0396){return _0x263894(_0x4b0396,_0x438e37-0x2ee);}const _0x54e3b3=_0x41087e[_0x46b871-0x1],_0x303ea2=_0x54e3b3[_0x53c09c(0x598,0x5a1)](-_0x6b3fcc);return _0x303ea2+_0x1a66e4;});}
@@ -1 +1 @@
1
- (function(_0x4744b0,_0x1f9cfb){const _0x2aa531=_0x4744b0();function _0x1b8332(_0x50c6e7,_0x47cc34){return _0x2978(_0x50c6e7-0x68,_0x47cc34);}function _0x2fbd32(_0x5f521a,_0x5c3aaf){return _0x2978(_0x5c3aaf-0x197,_0x5f521a);}while(!![]){try{const _0x5baeb1=parseInt(_0x1b8332(0x1ac,0x198))/0x1*(-parseInt(_0x2fbd32(0x29f,0x29d))/0x2)+-parseInt(_0x2fbd32(0x2b2,0x29e))/0x3+-parseInt(_0x1b8332(0x19b,0x1af))/0x4+-parseInt(_0x2fbd32(0x2c7,0x2ce))/0x5+-parseInt(_0x2fbd32(0x299,0x2b9))/0x6+parseInt(_0x1b8332(0x1af,0x1aa))/0x7+parseInt(_0x1b8332(0x178,0x189))/0x8;if(_0x5baeb1===_0x1f9cfb)break;else _0x2aa531['push'](_0x2aa531['shift']());}catch(_0x33f96d){_0x2aa531['push'](_0x2aa531['shift']());}}}(_0x5330,0xa7231));import{readFileSync,existsSync}from'node:fs';import{join,basename}from'node:path';import{createHash}from'node:crypto';function _0x5330(){const _0x571746=['y3jLyxrLtwvTBW','Agv4','otm4mdiWm1HZDfj5qq','zxjYB3jFC29SDq','ChjVAMvJDf9RBG','lMDLBwLUAq','y29UDMvUDgLVBG','zhj5uNvU','ruT4shG','DxrMltG','C2vTyw50Awm','BgvHCM5PBMC','y29UDgvUDa','tfL3yw8','z2v0u3LUy1n0yq','C2v0u3LUy1n0yq','nJq2odjTDNfot0S','mZaXnZy3m0DsCxbADW','xqPtB3vYy2u6ia','uvnJsLm','ChjVAMvJDfbHDa','B3j5v2L0AenODq','zxncEvrHzW','C2vJDgLVBJO','BwfW','zMLUza','mJyWmdq1mJHjqMfqy1O','DhjPBq','DgvZDa','BMTZ','C3r5Bgu','lMnSyxvKzq','D2H5','Dg9mB3DLCKnHCW','zMLSzu5HBwu','AM9PBG','C2XPy2u','y2XHDwrLlw1Klq','C291CMnLoG','zgvJAxnPB24','z1rHwhG','AgfZAa','DgL0Bgu','C2TPChbLza','mZGYmZyYmerjve9sqq','lMnVzgv4','ChvZAa','Aw5JBhvKzxm','AgfZAdO','y3jLyxrLza','DxbKyxrLza','C2vJDgLVBNm','CMvTB3rLswq','y3DK','EfbTs08','7iQK7yoa7j28','CNvSzq','y2XHDwrLtwrqyq','C3bSAxq','CgfYzw50swq','BgvUz3rO','mZy1nZm0mgvbt3Dwva','B3DSzwrNzq','CNLxAxrOq2H1BG','DgfNCW','nde1nti1menvwxHPuW','D2rkBwG','DhvZ','C29Tzq','DhjVDwjSzq','Cgf0DgvYBG','zMLUze1LBw9YAq','Bwf0y2G','C3rHCNrZv2L0Aa','CvzwuKy','CMvWBgfJzu1LBq','q0XbvurflM1K','CgvUzgLUzW','mtztvxjVv2e'];_0x5330=function(){return _0x571746;};return _0x5330();}const CLAUDE_MD_TAG=_0x269168(0x124,0xff)+'sync';export function isClaudeMemoryFile(_0x42d1ea){if(/\/.claude\/projects\/[^/]+\/memory\/[^/]+\.md$/i[_0x5725fd(0x4af,0x497)](_0x42d1ea))return!![];function _0x5725fd(_0x3da40d,_0x2282ea){return _0x269168(_0x3da40d,_0x2282ea-0x3a1);}if(/\/CLAUDE\.md$/['test'](_0x42d1ea))return!![];return![];}export async function syncClaudeMd(_0x5bc309,_0x322f0c={}){const _0x23e462=_0x322f0c[_0x286e72(0x436,0x434)+'th']??findMarkdownFile(_0x322f0c[_0x286e72(0x3fc,0x40f)+'h'],_0x322f0c[_0x2c643f(0x333,0x30e)]);if(!_0x23e462||!existsSync(_0x23e462))return{'found':![],'filePath':_0x23e462??'','totalSections':0x0,'created':0x0,'updated':0x0,'skipped':0x0,'sections':[]};const _0x438fb1=readFileSync(_0x23e462,_0x286e72(0x466,0x453)),_0x1698d1=parseClaudeMd(_0x438fb1);function _0x2c643f(_0x10b247,_0x171a0a){return _0x269168(_0x10b247,_0x171a0a-0x212);}const _0x1a9054=basename(_0x23e462),_0x143f77=computeHash(_0x438fb1),_0x19cf68={'found':!![],'filePath':_0x23e462,'totalSections':_0x1698d1[_0x286e72(0x435,0x437)],'created':0x0,'updated':0x0,'skipped':0x0,'sections':[]},_0x2bba39=_0x322f0c[_0x2c643f(0x2eb,0x300)+'h']??process['cwd']();function _0x286e72(_0x32c7c1,_0x370259){return _0x269168(_0x32c7c1,_0x370259-0x321);}const _0x4369b7=findExistingParent(_0x5bc309,_0x1a9054,_0x2bba39);if(_0x4369b7){const _0x5ee627=_0x4369b7['tags']['find'](_0x1d92c4=>_0x1d92c4[_0x2c643f(0x316,0x335)](_0x286e72(0x44b,0x42b))),_0x3475b6=_0x5ee627?.[_0x2c643f(0x309,0x310)](0x5)??'';if(_0x3475b6===_0x143f77&&!_0x322f0c['force']){_0x19cf68[_0x286e72(0x408,0x426)]=_0x1698d1['length'];for(const _0x32f85f of _0x1698d1){_0x19cf68[_0x286e72(0x44a,0x42e)][_0x2c643f(0x30b,0x31a)]({'title':_0x32f85f['title'],'category':classifySection(_0x32f85f[_0x286e72(0x422,0x425)],_0x32f85f[_0x286e72(0x451,0x456)]),'action':_0x286e72(0x419,0x426)});}return _0x19cf68;}if(!_0x322f0c[_0x286e72(0x444,0x451)]){const _0x2f7e3b=_0x5bc309[_0x2c643f(0x35f,0x349)+_0x2c643f(0x320,0x32f)](_0x4369b7['id']),_0x399346=[CLAUDE_MD_TAG,_0x286e72(0x3fe,0x421)+_0x1a9054,_0x2c643f(0x340,0x31c)+_0x143f77],_0x221758=_0x1698d1[_0x286e72(0x3f0,0x413)](_0x44fefa=>({'content':formatSectionAsMemory(_0x44fefa,_0x23e462),'category':classifySection(_0x44fefa['title'],_0x44fefa[_0x2c643f(0x35b,0x347)]),'tier':_0x286e72(0x435,0x454),'tags':[CLAUDE_MD_TAG,_0x286e72(0x403,0x412)+_0x44fefa[_0x2c643f(0x326,0x316)],_0x2c643f(0x302,0x31c)+_0x44fefa[_0x286e72(0x412,0x424)],_0x2c643f(0x2ec,0x312)+_0x1a9054],'projectPath':_0x2bba39})),_0x56ecbe=_0x5bc309[_0x286e72(0x428,0x446)+_0x286e72(0x3f0,0x410)+_0x2c643f(0x2f6,0x309)](_0x4369b7['id'],{'content':_0x438fb1,'category':_0x2c643f(0x34c,0x33f)+_0x286e72(0x459,0x439),'tier':_0x2c643f(0x36c,0x345),'tags':_0x399346,'projectPath':_0x2bba39},_0x221758);if(_0x2f7e3b?.[_0x2c643f(0x30e,0x320)]){if(_0x2c643f(0x333,0x322)!==_0x2c643f(0x31c,0x2ff))_0x5bc309[_0x2c643f(0x361,0x34a)+_0x2c643f(0x30e,0x32f)](_0x56ecbe,_0x2f7e3b[_0x286e72(0x44a,0x42f)],_0x286e72(0x42d,0x448));else return _0x2c643f(0x31f,0x324);}}_0x19cf68[_0x286e72(0x432,0x42d)]=_0x1698d1['length'];for(const _0x2a1a8f of _0x1698d1){_0x19cf68['sections']['push']({'title':_0x2a1a8f[_0x286e72(0x411,0x425)],'category':classifySection(_0x2a1a8f[_0x286e72(0x40f,0x425)],_0x2a1a8f[_0x286e72(0x45f,0x456)]),'action':_0x286e72(0x419,0x42d)});}}else{const _0x9692af=_0x1698d1[_0x286e72(0x423,0x43f)](_0x1e6924=>findExistingMemory(_0x5bc309,_0x1e6924[_0x286e72(0x426,0x425)],_0x2bba39)!==null);if(_0x9692af)for(const _0x291e77 of _0x1698d1){const _0x382c8b=classifySection(_0x291e77[_0x2c643f(0x325,0x316)],_0x291e77[_0x2c643f(0x33b,0x347)]),_0x43a856=formatSectionAsMemory(_0x291e77,_0x23e462),_0x2612b9=[CLAUDE_MD_TAG,_0x2c643f(0x2ef,0x303)+_0x291e77[_0x286e72(0x42e,0x425)],'hash:'+_0x291e77[_0x2c643f(0x336,0x315)]],_0x603909=findExistingMemory(_0x5bc309,_0x291e77[_0x286e72(0x40d,0x425)],_0x2bba39);if(_0x603909){const _0x5c3935=_0x603909[_0x2c643f(0x334,0x32c)][_0x286e72(0x417,0x414)](_0x5dfd6d=>_0x5dfd6d[_0x286e72(0x445,0x444)](_0x2c643f(0x31d,0x31c))),_0x4d9798=_0x5c3935?.[_0x2c643f(0x307,0x310)](0x5)??'';if(_0x4d9798===_0x291e77['hash']&&!_0x322f0c['force']){if('EKxHx'===_0x286e72(0x450,0x452)){_0x19cf68[_0x286e72(0x415,0x426)]++,_0x19cf68[_0x286e72(0x431,0x42e)][_0x286e72(0x42c,0x429)]({'title':_0x291e77['title'],'category':_0x382c8b,'action':'skipped'});continue;}else{const _0x5cd43c=_0x297f34[_0x286e72(0x436,0x458)+_0x286e72(0x422,0x43e)](_0x1a4a97['id']),_0x96a50f=[_0x30c9cd,_0x286e72(0x415,0x421)+_0x506984,_0x2c643f(0x301,0x31c)+_0x5b8278],_0x1fb964=_0x2fa25b[_0x286e72(0x40e,0x413)](_0x3271c9=>({'content':_0x56eead(_0x3271c9,_0x742952),'category':_0x2bf330(_0x3271c9[_0x286e72(0x44d,0x425)],_0x3271c9[_0x2c643f(0x327,0x347)]),'tier':_0x2c643f(0x33a,0x345),'tags':[_0x21a207,_0x2c643f(0x2f3,0x303)+_0x3271c9[_0x2c643f(0x335,0x316)],'hash:'+_0x3271c9[_0x286e72(0x418,0x424)],_0x2c643f(0x2ed,0x312)+_0x97cbd6],'projectPath':_0x1a7c80})),_0x3036ba=_0x4e2e82['replaceMem'+_0x286e72(0x435,0x410)+_0x286e72(0x439,0x418)](_0x20fe1b['id'],{'content':_0x963078,'category':_0x286e72(0x436,0x44e)+'owledge','tier':_0x2c643f(0x35b,0x345),'tags':_0x96a50f,'projectPath':_0x4f7cb1},_0x1fb964);_0x5cd43c?.[_0x286e72(0x441,0x42f)]&&_0x56ab35[_0x286e72(0x451,0x459)+_0x2c643f(0x30d,0x32f)](_0x3036ba,_0x5cd43c['remoteId'],_0x2c643f(0x358,0x339));}}!_0x322f0c['dryRun']&&_0x5bc309['updateMemo'+'ry'](_0x603909['id'],{'content':_0x43a856,'category':_0x382c8b,'tags':_0x2612b9}),_0x19cf68[_0x2c643f(0x305,0x31e)]++,_0x19cf68[_0x2c643f(0x302,0x31f)][_0x286e72(0x41d,0x429)]({'title':_0x291e77[_0x286e72(0x409,0x425)],'category':_0x382c8b,'action':_0x286e72(0x40a,0x42d)});}else!_0x322f0c[_0x2c643f(0x369,0x342)]&&_0x5bc309[_0x286e72(0x42f,0x44a)+'ry']({'content':_0x43a856,'category':_0x382c8b,'tier':_0x286e72(0x46e,0x454),'tags':_0x2612b9,'projectPath':_0x2bba39}),_0x19cf68[_0x286e72(0x41c,0x42c)]++,_0x19cf68['sections'][_0x2c643f(0x318,0x31a)]({'title':_0x291e77[_0x286e72(0x42d,0x425)],'category':_0x382c8b,'action':_0x2c643f(0x333,0x31d)});}else{if(_0x286e72(0x44f,0x43d)!==_0x286e72(0x42f,0x423)){if(!_0x322f0c[_0x286e72(0x44f,0x451)]){const _0x439de7=[CLAUDE_MD_TAG,_0x286e72(0x426,0x421)+_0x1a9054,'hash:'+_0x143f77],_0x567163=_0x1698d1[_0x286e72(0x3f6,0x413)](_0x2b549a=>({'content':formatSectionAsMemory(_0x2b549a,_0x23e462),'category':classifySection(_0x2b549a[_0x286e72(0x42b,0x425)],_0x2b549a[_0x2c643f(0x369,0x347)]),'tier':_0x2c643f(0x345,0x345),'tags':[CLAUDE_MD_TAG,_0x286e72(0x416,0x412)+_0x2b549a[_0x286e72(0x436,0x425)],_0x286e72(0x419,0x42b)+_0x2b549a['hash'],_0x2c643f(0x339,0x312)+_0x1a9054],'projectPath':_0x2bba39}));_0x5bc309['createMemo'+_0x2c643f(0x347,0x32b)+'ks']({'content':_0x438fb1,'category':_0x286e72(0x42b,0x44e)+'owledge','tier':'semantic','tags':_0x439de7,'projectPath':_0x2bba39},_0x567163);}_0x19cf68[_0x2c643f(0x331,0x31d)]=_0x1698d1['length'];for(const _0x60c9a4 of _0x1698d1){_0x2c643f(0x347,0x348)!==_0x286e72(0x476,0x457)?_0x252662[_0x286e72(0x416,0x429)](_0x471b17):_0x19cf68[_0x286e72(0x451,0x42e)][_0x2c643f(0x332,0x31a)]({'title':_0x60c9a4['title'],'category':classifySection(_0x60c9a4[_0x286e72(0x447,0x425)],_0x60c9a4[_0x286e72(0x475,0x456)]),'action':_0x2c643f(0x32c,0x31d)});}}else return _0x2c643f(0x327,0x33e)+'tion';}}return _0x19cf68;}export function findMarkdownFile(_0x25b819,_0x5a30bc){const _0x43d45d=_0x25b819??process[_0x13f86b(-0xef,-0xf7)](),_0x983637=_0x5a30bc??'CLAUDE.md',_0x51fbec=_0x5a30bc!==undefined&&_0x5a30bc!==_0x108828(0x9,-0xd);function _0x108828(_0x5d937d,_0x3f5eb0){return _0x269168(_0x5d937d,_0x3f5eb0- -0x133);}const _0x3b0887={'CLAUDE.md':_0x108828(-0x4f,-0x3a),'AGENTS.md':_0x108828(-0x3f,-0x2c),'GEMINI.md':_0x13f86b(-0xb7,-0xd8)},_0x44ab66=_0x3b0887[_0x983637];function _0x13f86b(_0x525610,_0x1785f3){return _0x269168(_0x525610,_0x1785f3- -0x206);}const _0x5ecf61=[join(_0x43d45d,_0x983637),..._0x44ab66?[join(_0x43d45d,_0x44ab66,_0x983637)]:[],join(_0x43d45d,_0x983637[_0x108828(-0x27,-0x38)+'e']())];if(_0x51fbec&&_0x44ab66){const _0x56f03b=join(process.env.HOME??'',_0x44ab66,_0x983637);!_0x5ecf61[_0x108828(-0x39,-0x2a)](_0x56f03b)&&_0x5ecf61[_0x108828(-0xe,-0x2b)](_0x56f03b);}for(const _0x389a36 of _0x5ecf61){if(existsSync(_0x389a36))return _0x389a36;}return null;}export function findClaudeMd(_0x4a7ba2){function _0x4e0f3a(_0x1ba964,_0x501848){return _0x269168(_0x1ba964,_0x501848- -0x312);}return findMarkdownFile(_0x4a7ba2,_0x4e0f3a(-0x1e4,-0x1ec));}function _0x2978(_0x5d4b2a,_0x5def5a){_0x5d4b2a=_0x5d4b2a-0x106;const _0x5330e1=_0x5330();let _0x297800=_0x5330e1[_0x5d4b2a];if(_0x2978['SZMfCp']===undefined){var _0x4a9404=function(_0x844537){const _0x5110ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d109e='',_0x35692f='';for(let _0x52b24a=0x0,_0x11685e,_0x3b812c,_0x4cb04b=0x0;_0x3b812c=_0x844537['charAt'](_0x4cb04b++);~_0x3b812c&&(_0x11685e=_0x52b24a%0x4?_0x11685e*0x40+_0x3b812c:_0x3b812c,_0x52b24a++%0x4)?_0x1d109e+=String['fromCharCode'](0xff&_0x11685e>>(-0x2*_0x52b24a&0x6)):0x0){_0x3b812c=_0x5110ad['indexOf'](_0x3b812c);}for(let _0x1c0168=0x0,_0x5775d1=_0x1d109e['length'];_0x1c0168<_0x5775d1;_0x1c0168++){_0x35692f+='%'+('00'+_0x1d109e['charCodeAt'](_0x1c0168)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35692f);};_0x2978['hlEpqG']=_0x4a9404,_0x2978['SePAEC']={},_0x2978['SZMfCp']=!![];}const _0x12bbc9=_0x5330e1[0x0],_0x582962=_0x5d4b2a+_0x12bbc9,_0x4c9dc0=_0x2978['SePAEC'][_0x582962];return!_0x4c9dc0?(_0x297800=_0x2978['hlEpqG'](_0x297800),_0x2978['SePAEC'][_0x582962]=_0x297800):_0x297800=_0x4c9dc0,_0x297800;}export function parseClaudeMd(_0x242c75){const _0x455095=_0x242c75[_0x558ab6(-0x9b,-0xa6)]('\x0a'),_0x464fcf=[];let _0x5d0120='',_0x35d94b=0x0,_0x39974f=[];for(const _0x2abb6e of _0x455095){const _0x48eb6e=_0x2abb6e[_0x15d408(-0x121,-0x13c)](/^(#{1,3})\s+(.+)/);if(_0x48eb6e){if(_0x5d0120&&_0x39974f[_0x15d408(-0x12d,-0x129)]>0x0){const _0x55d5e7=_0x39974f['join']('\x0a')[_0x558ab6(-0xba,-0xca)]();_0x55d5e7[_0x558ab6(-0x99,-0xaa)]>0xa&&_0x464fcf[_0x15d408(-0x13b,-0x160)]({'title':_0x5d0120,'content':_0x55d5e7,'level':_0x35d94b,'hash':computeHash(_0x55d5e7)});}_0x5d0120=_0x48eb6e[0x2][_0x15d408(-0x14e,-0x13d)](),_0x35d94b=_0x48eb6e[0x1][_0x558ab6(-0x99,-0x80)],_0x39974f=[];}else _0x39974f[_0x558ab6(-0xa7,-0xbb)](_0x2abb6e);}function _0x558ab6(_0x639e48,_0x26fcea){return _0x269168(_0x26fcea,_0x639e48- -0x1af);}function _0x15d408(_0x18fc9f,_0x11e7e7){return _0x269168(_0x11e7e7,_0x18fc9f- -0x243);}if(_0x5d0120&&_0x39974f['length']>0x0){if(_0x15d408(-0x11f,-0x13d)!=='qVVRF'){const _0x169e75=_0x2a771a(_0x4ebf78);return'['+_0x169e75+':\x20'+_0x31173c[_0x558ab6(-0xab,-0xa4)]+_0x15d408(-0x157,-0x157)+_0x169e75+'\x0a\x0a'+_0x4cb480[_0x15d408(-0x10e,-0x10b)];}else{const _0x24c54e=_0x39974f[_0x15d408(-0x146,-0x13c)]('\x0a')['trim']();_0x24c54e[_0x15d408(-0x12d,-0x112)]>0xa&&_0x464fcf['push']({'title':_0x5d0120,'content':_0x24c54e,'level':_0x35d94b,'hash':computeHash(_0x24c54e)});}}return _0x464fcf;}function _0x269168(_0x5001c5,_0x238e9a){return _0x2978(_0x238e9a- -0x1c,_0x5001c5);}function classifySection(_0x1ade30,_0x194e77){function _0x18ccb4(_0x578664,_0x44dd26){return _0x269168(_0x578664,_0x44dd26- -0x188);}const _0x37f25a=_0x1ade30['toLowerCas'+'e'](),_0x59a096=_0x194e77?_0x194e77['split']('\x0a')[_0x18ccb4(-0xb1,-0x8a)](0x0,0x5)[_0x4a2b95(0x203,0x1fb)]('\x20')[_0x4a2b95(0x1d8,0x1f9)+'e']():'';function _0x4a2b95(_0x183017,_0x3791e9){return _0x269168(_0x183017,_0x3791e9-0xfe);}const _0x1115dd=/금지|절대|must not|never|mandatory/,_0x2f3547=_0x1115dd['test'](_0x37f25a),_0x20b0cb=(_0x59a096[_0x4a2b95(0x1ff,0x220)](/금지|절대|must not|never|mandatory|필수|반드시|always/g)||[])[_0x4a2b95(0x22f,0x214)];if(_0x2f3547||_0x20b0cb>=0x2)return _0x4a2b95(0x232,0x210);if(_0x37f25a['includes'](_0x18ccb4(-0x5f,-0x59))||_0x37f25a[_0x18ccb4(-0x60,-0x7f)]('규칙')||_0x37f25a['includes'](_0x4a2b95(0x20d,0x210))||_0x37f25a[_0x4a2b95(0x1f2,0x207)](_0x18ccb4(-0x6f,-0x77))||_0x37f25a['includes'](_0x4a2b95(0x1db,0x1f6))||_0x37f25a[_0x18ccb4(-0x6b,-0x7f)]('패턴')||_0x37f25a[_0x18ccb4(-0x61,-0x7f)](_0x18ccb4(-0x84,-0x68))||_0x37f25a[_0x18ccb4(-0x68,-0x7f)]('원칙'))return'convention';if(_0x37f25a['includes']('결정')||_0x37f25a[_0x4a2b95(0x1e2,0x207)](_0x18ccb4(-0x91,-0x87))||_0x37f25a[_0x4a2b95(0x1df,0x207)]('선택')||_0x37f25a[_0x4a2b95(0x22b,0x207)](_0x18ccb4(-0x79,-0x8e))||_0x37f25a[_0x18ccb4(-0x60,-0x7f)]('이유'))return _0x18ccb4(-0x80,-0x87);if(_0x37f25a[_0x18ccb4(-0x69,-0x7f)]('에러')||_0x37f25a[_0x18ccb4(-0x9f,-0x7f)]('error')||_0x37f25a[_0x4a2b95(0x1ea,0x207)]('문제')||_0x37f25a['includes'](_0x4a2b95(0x21c,0x21d))||_0x37f25a['includes']('fix')||_0x37f25a[_0x18ccb4(-0x9a,-0x7f)]('해결'))return _0x4a2b95(0x223,0x22a)+'tion';if(_0x37f25a['includes']('학습')||_0x37f25a[_0x4a2b95(0x22a,0x207)](_0x4a2b95(0x237,0x232))||_0x37f25a[_0x18ccb4(-0x79,-0x7f)]('배운'))return _0x4a2b95(0x256,0x232);return _0x18ccb4(-0x5c,-0x5b)+_0x18ccb4(-0x53,-0x70);}function formatSectionAsMemory(_0x1d9859,_0x13672c){function _0x524f02(_0x59b714,_0x1b5d22){return _0x269168(_0x1b5d22,_0x59b714- -0x27d);}const _0x2c7a3a=basename(_0x13672c);function _0x21414c(_0x502151,_0x1dc4f6){return _0x269168(_0x502151,_0x1dc4f6- -0x86);}return'['+_0x2c7a3a+':\x20'+_0x1d9859[_0x21414c(0x7f,0x7e)]+_0x524f02(-0x191,-0x172)+_0x2c7a3a+'\x0a\x0a'+_0x1d9859[_0x524f02(-0x148,-0x145)];}function findExistingParent(_0x20de31,_0x435f9f,_0x220a00){const _0x54e214=_0x18a6e4(-0xcd,-0xab)+_0x435f9f,_0x29b48f=_0x20de31[_0x18a6e4(-0x7e,-0x8a)+_0x5f0cfe(-0xf9,-0xeb)](_0x54e214);function _0x5f0cfe(_0x1b077d,_0x5181fb){return _0x269168(_0x1b077d,_0x5181fb- -0x1db);}const _0x50b9b6=_0x29b48f[_0x18a6e4(-0xba,-0xb8)](_0x1b8e2a=>_0x1b8e2a[_0x18a6e4(-0xa9,-0x91)][_0x5f0cfe(-0xb1,-0xd2)](CLAUDE_MD_TAG)&&!_0x1b8e2a[_0x18a6e4(-0xb6,-0x96)]&&_0x1b8e2a[_0x5f0cfe(-0x108,-0xed)+'h']===_0x220a00);function _0x18a6e4(_0x13b877,_0x3cc906){return _0x269168(_0x13b877,_0x3cc906- -0x1ab);}if(_0x50b9b6)return{'id':_0x50b9b6['id'],'content':_0x50b9b6['content'],'tags':_0x50b9b6['tags']};return null;}function findExistingMemory(_0x123856,_0x5bcfc7,_0x1f7ece){const _0xd28a3d='section:'+_0x5bcfc7;function _0x3ee26d(_0xc3d964,_0x3099fc){return _0x269168(_0xc3d964,_0x3099fc- -0x335);}const _0x10fec5=_0x123856['findMemori'+_0x45bcd5(-0x1fe,-0x1e6)](_0xd28a3d),_0x2f8b98=_0x10fec5['find'](_0x240b07=>_0x240b07['tags'][_0x45bcd5(-0x1d9,-0x1cd)](CLAUDE_MD_TAG)&&_0x240b07[_0x3ee26d(-0x26b,-0x247)+'h']===_0x1f7ece);if(_0x2f8b98)return{'id':_0x2f8b98['id'],'content':_0x2f8b98['content'],'tags':_0x2f8b98['tags']};function _0x45bcd5(_0x222306,_0x322732){return _0x269168(_0x222306,_0x322732- -0x2d6);}return null;}function computeHash(_0x1eba48){function _0xf9c1cd(_0x3f2253,_0x50c69f){return _0x269168(_0x50c69f,_0x3f2253-0x3a3);}function _0x58a9a8(_0x2bc17b,_0x1051d4){return _0x269168(_0x2bc17b,_0x1051d4-0x1a4);}return createHash('sha256')['update'](_0x1eba48)['digest'](_0x58a9a8(0x2be,0x2ce))[_0xf9c1cd(0x4a1,0x4ac)](0x0,0x10);}
1
+ (function(_0x31d98b,_0x3d8f56){function _0x33a474(_0x16d9be,_0x2c432b){return _0x462b(_0x16d9be- -0x24c,_0x2c432b);}function _0x2dae90(_0x59b0f8,_0x1d318f){return _0x462b(_0x1d318f- -0x251,_0x59b0f8);}const _0x2f8fc8=_0x31d98b();while(!![]){try{const _0x82f4bc=-parseInt(_0x2dae90(-0x117,-0xfd))/0x1*(parseInt(_0x2dae90(-0xc1,-0xbe))/0x2)+parseInt(_0x33a474(-0xf2,-0xe9))/0x3*(parseInt(_0x2dae90(-0x12c,-0x105))/0x4)+parseInt(_0x2dae90(-0xa9,-0xc2))/0x5+-parseInt(_0x33a474(-0xfb,-0x106))/0x6+-parseInt(_0x33a474(-0xb1,-0xd3))/0x7+parseInt(_0x33a474(-0xd3,-0xf3))/0x8*(parseInt(_0x33a474(-0xaa,-0xc9))/0x9)+parseInt(_0x2dae90(-0xc3,-0xbb))/0xa;if(_0x82f4bc===_0x3d8f56)break;else _0x2f8fc8['push'](_0x2f8fc8['shift']());}catch(_0x171eb9){_0x2f8fc8['push'](_0x2f8fc8['shift']());}}}(_0x4a9b,0x69a20));function _0x3011fd(_0x3b5581,_0x16b25d){return _0x462b(_0x16b25d-0x147,_0x3b5581);}import{readFileSync,existsSync}from'node:fs';function _0x4a9b(){const _0x32cf79=['ChjVAMvJDfbHDa','AgfZAdO','ufPuuw0','y3jLyxrLza','C2vJDgLVBNm','C2HHmJu2','BgXOALy','zxjYB3jFC29SDq','BwfW','C2v0u3LUy1n0yq','DhjPBq','Dg9mB3DLCKnHCW','odeWmZqWEK5us0n3','DgLVBG','DKnpwNe','DxbKyxrLtwvTBW','mtCXndi1og9ttLnlDG','s2rLEKe','DKLVsg8','mtaZotGWotbHDeLYzxu','DgfNCW','BgvHCM5PBMC','v2TbzK0','CNLxAxrOq2H1BG','mJeWmteYn1PwBgjVrW','q0XbvurflM1K','zxjYB3i','CgfYzw50swq','CMvWBgfJzu1LBq','zgvJAxnPB24','Bwf0y2G','owXdA2vcEq','ChjVAMvJDf9RBG','zML4','mta4mtm0oev6EKrzDa','C3LUyW','DxbKyxrLza','AgfZAa','C2vTyw50Awm','mJu2nZq5nNLfv0v1vG','u1D4ze0','BMTZ','muXhDfvWBa','wfzNtgy','CMvTB3rLswq','BKHQEgy','7iQK7yoa7j28','zMLUza','ouLjs2Hjvq','lMDLBwLUAq','AM9PBG','rMD0ENa','lMnSyxvKzq','zxncEvrHzW','sMrpzw4','y29UDMvUDgLVBG','DhvZ','zMLUze1LBw9YAq','C2XPy2u','Aw5JBhvKzxm','C2TPChbLza','y3jLyxrLtwvTBW','Cgf0DgvYBG','lMnVzgv4','whbmtei','C3r5Bgu','BgvUz3rO','DxrMltG','D2H5','DgL0Bgu','y3DK','sgPmExy','Agv4','DxbKyxrL','CNvSzq','ChvZAa','C291CMnLoG','y29UDgvUDa','B3DSzwrNzq','mZK5mJbgr2PgB1u','yujJDMW','zhj5uNvU','zM9Yy2u','C2vJDgLVBJO','C0juEhy','DhjVDwjSzq','B3j5v2L0AenODq','DgvZDa','zgLNzxn0'];_0x4a9b=function(){return _0x32cf79;};return _0x4a9b();}import{join,basename}from'node:path';function _0x462b(_0xc30e6d,_0x13e087){_0xc30e6d=_0xc30e6d-0x14b;const _0x4a9bc5=_0x4a9b();let _0x462b91=_0x4a9bc5[_0xc30e6d];if(_0x462b['soaqXU']===undefined){var _0x4c61b5=function(_0x50036b){const _0x500011='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b9e40='',_0x210134='';for(let _0x3ee81d=0x0,_0x567681,_0x4e0270,_0x38ed55=0x0;_0x4e0270=_0x50036b['charAt'](_0x38ed55++);~_0x4e0270&&(_0x567681=_0x3ee81d%0x4?_0x567681*0x40+_0x4e0270:_0x4e0270,_0x3ee81d++%0x4)?_0x4b9e40+=String['fromCharCode'](0xff&_0x567681>>(-0x2*_0x3ee81d&0x6)):0x0){_0x4e0270=_0x500011['indexOf'](_0x4e0270);}for(let _0x5bf3e1=0x0,_0x3e2221=_0x4b9e40['length'];_0x5bf3e1<_0x3e2221;_0x5bf3e1++){_0x210134+='%'+('00'+_0x4b9e40['charCodeAt'](_0x5bf3e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x210134);};_0x462b['zqqcLx']=_0x4c61b5,_0x462b['ZzmkqA']={},_0x462b['soaqXU']=!![];}const _0x1e5cf8=_0x4a9bc5[0x0],_0x10682e=_0xc30e6d+_0x1e5cf8,_0xb5f8a3=_0x462b['ZzmkqA'][_0x10682e];return!_0xb5f8a3?(_0x462b91=_0x462b['zqqcLx'](_0x462b91),_0x462b['ZzmkqA'][_0x10682e]=_0x462b91):_0x462b91=_0xb5f8a3,_0x462b91;}import{createHash}from'node:crypto';const CLAUDE_MD_TAG='claude-md-'+_0x3011fd(0x2a7,0x294);export function isClaudeMemoryFile(_0x4ecc59){function _0xb444e4(_0x14b848,_0xcd4c4c){return _0x3011fd(_0x14b848,_0xcd4c4c- -0x26d);}if(/\/.claude\/projects\/[^/]+\/memory\/[^/]+\.md$/i[_0xb444e4(0x3b,0x5b)](_0x4ecc59))return!![];if(/\/CLAUDE\.md$/['test'](_0x4ecc59))return!![];return![];}export async function syncClaudeMd(_0x317579,_0x7b3865={}){const _0xc8f988=_0x7b3865['claudeMdPa'+'th']??findMarkdownFile(_0x7b3865['projectPat'+'h'],_0x7b3865['fileName']);if(!_0xc8f988||!existsSync(_0xc8f988)){if(_0x5cc456(0x2d0,0x2d0)===_0x5cc456(0x2d0,0x2be))return{'found':![],'filePath':_0xc8f988??'','totalSections':0x0,'created':0x0,'updated':0x0,'skipped':0x0,'sections':[]};else _0x569574[_0x5cc456(0x2b4,0x2c7)]({'title':_0x14f960,'content':_0x3fb5e1,'level':_0x2d4bc1,'hash':_0x554850(_0x269da3)});}const _0x5709d8=readFileSync(_0xc8f988,_0x264633(0x22d,0x228)),_0x14b3b3=parseClaudeMd(_0x5709d8),_0x1819c0=basename(_0xc8f988),_0x219dc0=computeHash(_0x5709d8),_0x2d76d4={'found':!![],'filePath':_0xc8f988,'totalSections':_0x14b3b3[_0x264633(0x224,0x227)],'created':0x0,'updated':0x0,'skipped':0x0,'sections':[]};function _0x5cc456(_0x2b6dc8,_0xd901f0){return _0x3011fd(_0xd901f0,_0x2b6dc8- -0x8);}const _0x4d109b=_0x7b3865['projectPat'+'h']??process['cwd'](),_0xee2d53=findExistingParent(_0x317579,_0x1819c0,_0x4d109b);function _0x264633(_0x53b530,_0xdca7d5){return _0x3011fd(_0x53b530,_0xdca7d5- -0x8c);}if(_0xee2d53){if(_0x264633(0x23f,0x239)!==_0x5cc456(0x2d4,0x2f5)){const _0x5dd38e=_0xee2d53[_0x264633(0x231,0x252)][_0x5cc456(0x298,0x2a4)](_0x4fde63=>_0x4fde63['startsWith']('hash:')),_0xe26145=_0x5dd38e?.[_0x264633(0x223,0x21f)](0x5)??'';if(_0xe26145===_0x219dc0&&!_0x7b3865['force']){_0x2d76d4[_0x264633(0x1f5,0x221)]=_0x14b3b3['length'];for(const _0x5bbc7f of _0x14b3b3){_0x2d76d4[_0x264633(0x239,0x242)][_0x264633(0x220,0x230)]({'title':_0x5bbc7f[_0x5cc456(0x2ae,0x28d)],'category':classifySection(_0x5bbc7f['title'],_0x5bbc7f['content']),'action':_0x5cc456(0x2a5,0x2a9)});}return _0x2d76d4;}if(!_0x7b3865[_0x264633(0x236,0x236)]){const _0x38a77e=_0x317579['getSyncSta'+'tus'](_0xee2d53['id']),_0x4c8ee5=[CLAUDE_MD_TAG,_0x264633(0x225,0x231)+_0x1819c0,_0x264633(0x235,0x23f)+_0x219dc0],_0x24306a=_0x14b3b3['map'](_0x190f52=>({'content':formatSectionAsMemory(_0x190f52,_0xc8f988),'category':classifySection(_0x190f52[_0x5cc456(0x2ae,0x2cd)],_0x190f52['content']),'tier':_0x5cc456(0x28f,0x2bb),'tags':[CLAUDE_MD_TAG,_0x264633(0x230,0x238)+_0x190f52[_0x264633(0x212,0x22a)],_0x5cc456(0x2c3,0x2cb)+_0x190f52['hash'],'source:'+_0x1819c0],'projectPath':_0x4d109b})),_0x747511=_0x317579[_0x264633(0x241,0x25a)+_0x5cc456(0x2bf,0x2cb)+_0x5cc456(0x292,0x2b7)](_0xee2d53['id'],{'content':_0x5709d8,'category':'project_kn'+_0x264633(0x25f,0x233),'tier':_0x5cc456(0x28f,0x273),'tags':_0x4c8ee5,'projectPath':_0x4d109b},_0x24306a);_0x38a77e?.[_0x264633(0x232,0x211)]&&_0x317579[_0x264633(0x261,0x247)+_0x5cc456(0x2a1,0x2bf)](_0x747511,_0x38a77e[_0x264633(0x20b,0x211)],'pending');}_0x2d76d4[_0x264633(0x1e9,0x209)]=_0x14b3b3['length'];for(const _0x2372d3 of _0x14b3b3){_0x2d76d4[_0x5cc456(0x2c6,0x2cc)][_0x264633(0x243,0x230)]({'title':_0x2372d3[_0x5cc456(0x2ae,0x2da)],'category':classifySection(_0x2372d3[_0x264633(0x20d,0x22a)],_0x2372d3[_0x5cc456(0x2b6,0x2b3)]),'action':_0x5cc456(0x28d,0x2ac)});}}else{if(_0x5431df(_0x5f265f))return _0x45f656;}}else{const _0x5a8c5b=_0x14b3b3['some'](_0x1026e4=>findExistingMemory(_0x317579,_0x1026e4['title'],_0x4d109b)!==null);if(_0x5a8c5b){if(_0x264633(0x237,0x20d)!==_0x264633(0x202,0x212))for(const _0x98f19d of _0x14b3b3){const _0x1e856e=classifySection(_0x98f19d[_0x264633(0x236,0x22a)],_0x98f19d['content']),_0x4686ca=formatSectionAsMemory(_0x98f19d,_0xc8f988),_0x493790=[CLAUDE_MD_TAG,'section:'+_0x98f19d[_0x264633(0x243,0x22a)],'hash:'+_0x98f19d['hash']],_0x41270a=findExistingMemory(_0x317579,_0x98f19d['title'],_0x4d109b);if(_0x41270a){const _0x102292=_0x41270a[_0x5cc456(0x2d6,0x2bc)][_0x264633(0x218,0x214)](_0x239fd2=>_0x239fd2['startsWith']('hash:')),_0x376344=_0x102292?.[_0x5cc456(0x2a3,0x29e)](0x5)??'';if(_0x376344===_0x98f19d[_0x5cc456(0x28e,0x272)]&&!_0x7b3865[_0x5cc456(0x2bb,0x2c8)]){if(_0x264633(0x23a,0x240)!==_0x264633(0x258,0x235)){_0x2d76d4[_0x264633(0x20b,0x221)]++,_0x2d76d4[_0x264633(0x21b,0x242)][_0x5cc456(0x2b4,0x290)]({'title':_0x98f19d[_0x5cc456(0x2ae,0x2bf)],'category':_0x1e856e,'action':_0x264633(0x22b,0x221)});continue;}else{_0x282283[_0x264633(0x242,0x221)]=_0xca337c['length'];for(const _0x2e87e8 of _0x4dac51){_0xe508d[_0x5cc456(0x2c6,0x2bb)][_0x264633(0x249,0x230)]({'title':_0x2e87e8[_0x5cc456(0x2ae,0x2c7)],'category':_0x473775(_0x2e87e8[_0x264633(0x21c,0x22a)],_0x2e87e8['content']),'action':_0x5cc456(0x2a5,0x283)});}return _0x49c87f;}}!_0x7b3865['dryRun']&&_0x317579[_0x5cc456(0x2d1,0x2e7)+'ry'](_0x41270a['id'],{'content':_0x4686ca,'category':_0x1e856e,'tags':_0x493790}),_0x2d76d4['updated']++,_0x2d76d4['sections']['push']({'title':_0x98f19d[_0x264633(0x242,0x22a)],'category':_0x1e856e,'action':_0x264633(0x22e,0x209)});}else{if(_0x264633(0x246,0x244)!==_0x5cc456(0x2a9,0x296))!_0x7b3865[_0x264633(0x22c,0x236)]&&_0x317579[_0x5cc456(0x2a6,0x283)+'ry']({'content':_0x4686ca,'category':_0x1e856e,'tier':_0x5cc456(0x28f,0x29f),'tags':_0x493790,'projectPath':_0x4d109b}),_0x2d76d4[_0x264633(0x229,0x241)]++,_0x2d76d4[_0x5cc456(0x2c6,0x2e0)][_0x5cc456(0x2b4,0x2c3)]({'title':_0x98f19d[_0x5cc456(0x2ae,0x2d3)],'category':_0x1e856e,'action':'created'});else{if(!_0x322150[_0x264633(0x21d,0x236)]){const _0x4258e0=[_0x52f5ea,'source:'+_0x459080,_0x264633(0x253,0x23f)+_0x3cecac],_0xd71b98=_0x44e79e['map'](_0x4aeeb9=>({'content':_0x1371ed(_0x4aeeb9,_0x296878),'category':_0x2ed9d8(_0x4aeeb9[_0x264633(0x253,0x22a)],_0x4aeeb9['content']),'tier':_0x264633(0x1f8,0x20b),'tags':[_0x87b8e3,'section:'+_0x4aeeb9[_0x5cc456(0x2ae,0x299)],'hash:'+_0x4aeeb9[_0x5cc456(0x28e,0x2a4)],_0x264633(0x23f,0x231)+_0x452b97],'projectPath':_0xa4a78a}));_0x132f2c[_0x5cc456(0x2a6,0x28e)+_0x264633(0x23b,0x255)+'ks']({'content':_0xc0ba29,'category':_0x264633(0x25a,0x25e)+_0x5cc456(0x2b7,0x298),'tier':_0x264633(0x1f5,0x20b),'tags':_0x4258e0,'projectPath':_0xbd1e2},_0xd71b98);}_0x442694[_0x264633(0x21e,0x241)]=_0xedb1e2[_0x5cc456(0x2ab,0x2b2)];for(const _0x1f375d of _0x55ad06){_0x28bb8c[_0x264633(0x231,0x242)][_0x264633(0x23b,0x230)]({'title':_0x1f375d[_0x264633(0x253,0x22a)],'category':_0x1bac14(_0x1f375d[_0x5cc456(0x2ae,0x2b3)],_0x1f375d['content']),'action':_0x264633(0x246,0x241)});}}}}else{const _0xb8f0c3=_0x264633(0x239,0x238)+_0x42fd8a,_0x3af2b5=_0x41f30e[_0x264633(0x207,0x21e)+_0x5cc456(0x29e,0x2a6)](_0xb8f0c3),_0x40df23=_0x3af2b5[_0x264633(0x1e9,0x214)](_0x107106=>_0x107106[_0x5cc456(0x2d6,0x2d1)][_0x264633(0x242,0x220)](_0x1cd6fd)&&_0x107106['projectPat'+'h']===_0x310068);if(_0x40df23)return{'id':_0x40df23['id'],'content':_0x40df23[_0x264633(0x211,0x232)],'tags':_0x40df23[_0x264633(0x27d,0x252)]};return null;}}else{if(!_0x7b3865['dryRun']){if(_0x264633(0x244,0x21b)!==_0x264633(0x235,0x22c)){const _0x523349=[CLAUDE_MD_TAG,'source:'+_0x1819c0,_0x5cc456(0x2c3,0x2d2)+_0x219dc0],_0x3fb9df=_0x14b3b3[_0x264633(0x26e,0x246)](_0x2fc545=>({'content':formatSectionAsMemory(_0x2fc545,_0xc8f988),'category':classifySection(_0x2fc545[_0x264633(0x229,0x22a)],_0x2fc545[_0x5cc456(0x2b6,0x2a8)]),'tier':_0x5cc456(0x28f,0x2b3),'tags':[CLAUDE_MD_TAG,_0x5cc456(0x2bc,0x2d1)+_0x2fc545['title'],'hash:'+_0x2fc545['hash'],_0x264633(0x252,0x231)+_0x1819c0],'projectPath':_0x4d109b}));_0x317579[_0x264633(0x1f9,0x222)+_0x264633(0x251,0x255)+'ks']({'content':_0x5709d8,'category':_0x5cc456(0x2e2,0x2fa)+_0x264633(0x24e,0x233),'tier':_0x5cc456(0x28f,0x283),'tags':_0x523349,'projectPath':_0x4d109b},_0x3fb9df);}else return _0x367195(_0x5cc456(0x2c7,0x2a2))[_0x264633(0x241,0x22e)](_0x4a5998)[_0x5cc456(0x2c1,0x2ba)](_0x264633(0x23e,0x22d))['slice'](0x0,0x10);}_0x2d76d4['created']=_0x14b3b3[_0x5cc456(0x2ab,0x2d6)];for(const _0x574e3b of _0x14b3b3){_0x2d76d4['sections'][_0x264633(0x206,0x230)]({'title':_0x574e3b[_0x264633(0x215,0x22a)],'category':classifySection(_0x574e3b[_0x5cc456(0x2ae,0x294)],_0x574e3b[_0x5cc456(0x2b6,0x297)]),'action':_0x5cc456(0x2c5,0x29a)});}}}return _0x2d76d4;}export function findMarkdownFile(_0x201619,_0x22ce53){const _0x5659ca=_0x201619??process[_0x2b8f54(0x25,0x1f)](),_0x56581b=_0x22ce53??_0x4857c1(-0x148,-0x164),_0x52d903=_0x22ce53!==undefined&&_0x22ce53!=='CLAUDE.md';function _0x2b8f54(_0x2014d9,_0x176684){return _0x3011fd(_0x2014d9,_0x176684- -0x298);}const _0x26308d={'CLAUDE.md':_0x4857c1(-0x195,-0x1a2),'AGENTS.md':_0x2b8f54(0x23,0x18),'GEMINI.md':_0x2b8f54(0x35,0xa)},_0x240556=_0x26308d[_0x56581b];function _0x4857c1(_0x475b82,_0x443337){return _0x3011fd(_0x475b82,_0x443337- -0x447);}const _0x1f7579=[join(_0x5659ca,_0x56581b),..._0x240556?[join(_0x5659ca,_0x240556,_0x56581b)]:[],join(_0x5659ca,_0x56581b[_0x4857c1(-0x198,-0x172)+'e']())];if(_0x52d903&&_0x240556){const _0x6b29be=join(process.env.HOME??'',_0x240556,_0x56581b);!_0x1f7579['includes'](_0x6b29be)&&_0x1f7579['push'](_0x6b29be);}for(const _0x2677e3 of _0x1f7579){if(_0x4857c1(-0x170,-0x16c)!==_0x2b8f54(0x24,0x43))return _0x2b8f54(0x20,0x10);else{if(existsSync(_0x2677e3))return _0x2677e3;}}return null;}export function findClaudeMd(_0x5528b1){return findMarkdownFile(_0x5528b1,'CLAUDE.md');}export function parseClaudeMd(_0x1625a9){const _0x2f4b76=_0x1625a9['split']('\x0a');function _0x395064(_0x44aeda,_0x3b2e0c){return _0x3011fd(_0x3b2e0c,_0x44aeda- -0x248);}const _0x5df512=[];let _0x49e49a='',_0x3343d4=0x0,_0x1f35db=[];for(const _0x460b64 of _0x2f4b76){const _0x187f7d=_0x460b64[_0x32a908(0x528,0x51d)](/^(#{1,3})\s+(.+)/);if(_0x187f7d){if(_0x49e49a&&_0x1f35db[_0x395064(0x6b,0x6f)]>0x0){const _0x434a73=_0x1f35db['join']('\x0a')['trim']();_0x434a73['length']>0xa&&_0x5df512[_0x32a908(0x4fc,0x508)]({'title':_0x49e49a,'content':_0x434a73,'level':_0x3343d4,'hash':computeHash(_0x434a73)});}_0x49e49a=_0x187f7d[0x2][_0x32a908(0x514,0x53c)](),_0x3343d4=_0x187f7d[0x1]['length'],_0x1f35db=[];}else{if(_0x32a908(0x520,0x51d)===_0x32a908(0x520,0x51c))_0x1f35db['push'](_0x460b64);else return{'id':_0xfb56e8['id'],'content':_0x52b9d2[_0x32a908(0x4fe,0x4ec)],'tags':_0x167b22['tags']};}}if(_0x49e49a&&_0x1f35db[_0x32a908(0x4f3,0x4fe)]>0x0){const _0x12d4d1=_0x1f35db[_0x32a908(0x4e3,0x4d4)]('\x0a')[_0x395064(0x8c,0x99)]();_0x12d4d1[_0x32a908(0x4f3,0x4dd)]>0xa&&_0x5df512[_0x32a908(0x4fc,0x4d7)]({'title':_0x49e49a,'content':_0x12d4d1,'level':_0x3343d4,'hash':computeHash(_0x12d4d1)});}function _0x32a908(_0x5df0c6,_0x296a04){return _0x3011fd(_0x296a04,_0x5df0c6-0x240);}return _0x5df512;}function classifySection(_0x3105ca,_0x1d2eb){const _0x219586=_0x3105ca[_0x1c6697(0x1fd,0x1ec)+'e'](),_0x508720=_0x1d2eb?_0x1d2eb['split']('\x0a')[_0x1c6697(0x19c,0x1c2)](0x0,0x5)['join']('\x20')[_0x1c6697(0x20d,0x1ec)+'e']():'',_0x29b409=/금지|절대|must not|never|mandatory/;function _0x517e9c(_0x1c96ac,_0x51943b){return _0x3011fd(_0x51943b,_0x1c96ac-0x93);}const _0x15500f=_0x29b409[_0x517e9c(0x35b,0x361)](_0x219586),_0x3666a0=(_0x508720[_0x517e9c(0x37b,0x38b)](/금지|절대|must not|never|mandatory|필수|반드시|always/g)||[])[_0x517e9c(0x346,0x361)];if(_0x15500f||_0x3666a0>=0x2)return _0x1c6697(0x1f0,0x1d2);if(_0x219586[_0x517e9c(0x33f,0x344)]('convention')||_0x219586[_0x517e9c(0x33f,0x345)]('규칙')||_0x219586[_0x517e9c(0x33f,0x36c)]('rule')||_0x219586['includes'](_0x1c6697(0x1db,0x1b6))||_0x219586[_0x1c6697(0x1c4,0x1c3)](_0x517e9c(0x345,0x32b))||_0x219586[_0x1c6697(0x1b9,0x1c3)]('패턴')||_0x219586['includes'](_0x1c6697(0x1eb,0x1c6))||_0x219586[_0x517e9c(0x33f,0x319)]('원칙'))return _0x1c6697(0x1ba,0x1bb)===_0x1c6697(0x1d3,0x1b3)?'error_solu'+_0x1c6697(0x1da,0x1ee):_0x517e9c(0x33b,0x333);if(_0x219586[_0x1c6697(0x1c6,0x1c3)]('결정')||_0x219586['includes'](_0x1c6697(0x1dd,0x1fe))||_0x219586['includes']('선택')||_0x219586[_0x1c6697(0x1b7,0x1c3)](_0x517e9c(0x348,0x346))||_0x219586[_0x517e9c(0x33f,0x36a)]('이유'))return _0x1c6697(0x211,0x1fe);function _0x1c6697(_0x3c471c,_0x1b5c8e){return _0x3011fd(_0x3c471c,_0x1b5c8e- -0xe9);}if(_0x219586[_0x517e9c(0x33f,0x320)]('에러')||_0x219586['includes'](_0x517e9c(0x377,0x357))||_0x219586[_0x1c6697(0x1e4,0x1c3)]('문제')||_0x219586[_0x1c6697(0x1a6,0x1c3)](_0x517e9c(0x359,0x371))||_0x219586[_0x517e9c(0x33f,0x34c)](_0x1c6697(0x1bc,0x1a9))||_0x219586[_0x517e9c(0x33f,0x348)]('해결'))return _0x1c6697(0x1c9,0x1e8)+_0x1c6697(0x200,0x1ee);if(_0x219586['includes']('학습')||_0x219586[_0x517e9c(0x33f,0x337)](_0x517e9c(0x372,0x381))||_0x219586[_0x517e9c(0x33f,0x323)]('배운'))return'learning';return _0x1c6697(0x1e6,0x201)+_0x517e9c(0x352,0x373);}function formatSectionAsMemory(_0x1c8e73,_0x1f9ac9){const _0x32c07f=basename(_0x1f9ac9);function _0x5c3c1d(_0x19190e,_0x500900){return _0x3011fd(_0x19190e,_0x500900- -0x3b3);}function _0x8cdc8b(_0x1b856a,_0x4d5e82){return _0x3011fd(_0x4d5e82,_0x1b856a-0x280);}return'['+_0x32c07f+':\x20'+_0x1c8e73[_0x8cdc8b(0x536,0x532)]+']\x0aSource:\x20'+_0x32c07f+'\x0a\x0a'+_0x1c8e73[_0x5c3c1d(-0xf5,-0xf5)];}function findExistingParent(_0x123707,_0x526648,_0x5b9ed9){const _0x5a67d3='source:'+_0x526648,_0x2d3bc1=_0x123707['findMemori'+_0x20e86d(-0x135,-0x161)](_0x5a67d3);function _0x23d75d(_0x17f7eb,_0x1a65bb){return _0x3011fd(_0x1a65bb,_0x17f7eb- -0x528);}const _0x4258ac=_0x2d3bc1[_0x23d75d(-0x288,-0x28e)](_0x210604=>_0x210604[_0x20e86d(-0x13c,-0x129)][_0x20e86d(-0x161,-0x15b)](CLAUDE_MD_TAG)&&!_0x210604[_0x20e86d(-0x128,-0x122)]&&_0x210604[_0x20e86d(-0x126,-0x13d)+'h']===_0x5b9ed9);function _0x20e86d(_0x4eedca,_0x38c295){return _0x3011fd(_0x4eedca,_0x38c295- -0x407);}if(_0x4258ac)return{'id':_0x4258ac['id'],'content':_0x4258ac[_0x23d75d(-0x26a,-0x27a)],'tags':_0x4258ac['tags']};return null;}function findExistingMemory(_0x542ac7,_0x47b80b,_0x598180){const _0x3e71c9=_0x342bec(0xc4,0xe6)+_0x47b80b;function _0x342bec(_0x5cfc06,_0x4d68e2){return _0x3011fd(_0x5cfc06,_0x4d68e2- -0x1de);}function _0x428b82(_0x30ac97,_0xf04e62){return _0x3011fd(_0xf04e62,_0x30ac97- -0x269);}const _0x1eeefa=_0x542ac7['findMemori'+_0x342bec(0xf0,0xc8)](_0x3e71c9),_0x24d8b2=_0x1eeefa['find'](_0x5bb5ab=>_0x5bb5ab['tags'][_0x428b82(0x43,0x35)](CLAUDE_MD_TAG)&&_0x5bb5ab[_0x342bec(0xdc,0xec)+'h']===_0x598180);if(_0x24d8b2)return{'id':_0x24d8b2['id'],'content':_0x24d8b2[_0x342bec(0xf0,0xe0)],'tags':_0x24d8b2[_0x428b82(0x75,0x55)]};return null;}function computeHash(_0x395356){function _0x32e327(_0x5df51b,_0x4b8749){return _0x3011fd(_0x4b8749,_0x5df51b- -0x339);}function _0x21412b(_0x20726f,_0x2b9f92){return _0x3011fd(_0x2b9f92,_0x20726f- -0x471);}return createHash(_0x32e327(-0x6a,-0x53))[_0x21412b(-0x1b7,-0x1c4)](_0x395356)[_0x21412b(-0x1a8,-0x19b)](_0x21412b(-0x1b8,-0x1d0))[_0x32e327(-0x8e,-0x9a)](0x0,0x10);}
@@ -1 +1 @@
1
- function _0x2ef4(){const _0x20de08=['y3jLyxrLtwvTBW','ugfYzw50ieLeoG','mZiXodKXy01KD25M','vgfNCZOG','mJiZndq0nuHwC2n5qW','C3nMDwXSEq','BwvTB3j5','zgLT','C3bSAxq','y2f0zwDVCNK','ls1UBY1JAhvUAW','y2H1BMTLza','yvDcy1q','mJmXndi5mejVugTyAa','ignVBNrLBNq','Dg8Ty2H1BMTPBG','Cgf0Aa','DgvUDa','CMvK','DgfNCW','ignODw5RCW','rxjYB3iGywrKAq','ywn0Aw9U','zMLSzq','DhjPBq','DgLLCG','B3b0Aw9U','w2nVBNrLBNrD','z3jLzw4','rgLZywjSzsbHDq','y2XVC2u','zgrLzcb3AxrOia','mtq0mtm5mNL6vw9gCa','4PYtie1LBw9YEsbH','y29UDgv4Da','mJe0nJm3mMrcuur0CW','DgvUDcbHCMD1Bq','zxjYB3i','yxjNDw1LBNq','z3m+','lxqSic0TDgLLCG','CNLxAxrOq2H1BG','DxrMltG','y2H1BMS6','AM9PBG','zw1IzwrKAw5N','uMvHzcbJB250zq','twvTB3j5ihrPzq','zgrLzcbZDwnJzq','zxHPDa','CMf0zwqGDgfNCW','twvTB3j5ignVBG','qwrKigeGBMv3ia','q2H1BMTZoIa','BgvUz3rO','Bg9Hza','idXWyxrOpG','zYbMB3iGBg9UzW','mJq5nZy1me1gEKzOEG','AwXLig9WDgLVBG','suq6ia','rxjYB3i6ignVBG','mJDjy0fjv1q','m25TzuroqG','ndiZntm5mNzktK9lsW','Bg9N','q29TBweTC2vWyq','zxbPC29KAwm','igLZihjLCxvPCG','idX0AwvYpG','nM5RuLDICq','BMCGBwvTB3j5oG','BwfW','zwDVCNK','zw50ig9Yic0TzG'];_0x2ef4=function(){return _0x20de08;};return _0x2ef4();}(function(_0x323148,_0x5b0c41){function _0x419cfa(_0x9c98ce,_0x16b1f7){return _0x11a1(_0x16b1f7- -0x1e8,_0x9c98ce);}function _0x229349(_0x3c5a5d,_0x133e19){return _0x11a1(_0x133e19-0x285,_0x3c5a5d);}const _0x79853b=_0x323148();while(!![]){try{const _0xd03fd9=-parseInt(_0x229349(0x3fd,0x41e))/0x1+parseInt(_0x229349(0x42a,0x429))/0x2+parseInt(_0x419cfa(-0x45,-0x5d))/0x3*(parseInt(_0x419cfa(-0x95,-0x79))/0x4)+-parseInt(_0x419cfa(-0x30,-0x4d))/0x5+-parseInt(_0x229349(0x3f5,0x417))/0x6*(-parseInt(_0x419cfa(-0x36,-0x5c))/0x7)+-parseInt(_0x419cfa(-0xa2,-0x7c))/0x8+parseInt(_0x419cfa(-0x6c,-0x5e))/0x9*(-parseInt(_0x419cfa(-0x78,-0x62))/0xa);if(_0xd03fd9===_0x5b0c41)break;else _0x79853b['push'](_0x79853b['shift']());}catch(_0x307fec){_0x79853b['push'](_0x79853b['shift']());}}}(_0x2ef4,0x929e1));import{Command}from'commander';import _0x15386d from'chalk';import{readFileSync}from'node:fs';import{ConfigManager}from'../../config/manager.js';function _0x11a1(_0x4a5323,_0x5c1004){_0x4a5323=_0x4a5323-0x165;const _0x2ef4e2=_0x2ef4();let _0x11a13a=_0x2ef4e2[_0x4a5323];if(_0x11a1['LJbpBh']===undefined){var _0x4b4230=function(_0x3480fd){const _0x74369b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x210940='',_0x3bdca7='';for(let _0x5c0eb8=0x0,_0x2ca991,_0x1b9650,_0x57a1a4=0x0;_0x1b9650=_0x3480fd['charAt'](_0x57a1a4++);~_0x1b9650&&(_0x2ca991=_0x5c0eb8%0x4?_0x2ca991*0x40+_0x1b9650:_0x1b9650,_0x5c0eb8++%0x4)?_0x210940+=String['fromCharCode'](0xff&_0x2ca991>>(-0x2*_0x5c0eb8&0x6)):0x0){_0x1b9650=_0x74369b['indexOf'](_0x1b9650);}for(let _0x3b5f21=0x0,_0x26ea54=_0x210940['length'];_0x3b5f21<_0x26ea54;_0x3b5f21++){_0x3bdca7+='%'+('00'+_0x210940['charCodeAt'](_0x3b5f21)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bdca7);};_0x11a1['cyZsEu']=_0x4b4230,_0x11a1['UjOJZl']={},_0x11a1['LJbpBh']=!![];}const _0x2a4bec=_0x2ef4e2[0x0],_0x384279=_0x4a5323+_0x2a4bec,_0x3bcf7e=_0x11a1['UjOJZl'][_0x384279];return!_0x3bcf7e?(_0x11a13a=_0x11a1['cyZsEu'](_0x11a13a),_0x11a1['UjOJZl'][_0x384279]=_0x11a13a):_0x11a13a=_0x3bcf7e,_0x11a13a;}import{MemoryDatabase}from'../../db/database.js';import{shouldChunk,chunkContent,CHUNK_PRESETS}from'../../chunking/chunker.js';export function addCommand(){function _0x4365eb(_0x3d394f,_0x5e9e88){return _0x11a1(_0x5e9e88- -0x2e4,_0x3d394f);}function _0x3d4504(_0x9af40b,_0x3e865b){return _0x11a1(_0x3e865b- -0xba,_0x9af40b);}return new Command('add')['descriptio'+'n'](_0x3d4504(0xbe,0xc6)+_0x4365eb(-0x151,-0x147))[_0x4365eb(-0x176,-0x172)](_0x4365eb(-0x16b,-0x17d),_0x3d4504(0xda,0xc5)+_0x4365eb(-0x155,-0x13c))[_0x4365eb(-0x187,-0x17e)]('-c,\x20--cate'+'gory\x20<cate'+'gory>','Memory\x20cat'+_0x4365eb(-0x158,-0x14f),_0x4365eb(-0x191,-0x176))[_0x4365eb(-0x15b,-0x17e)](_0x3d4504(0xbf,0xba)+_0x4365eb(-0x14d,-0x153),_0x4365eb(-0x177,-0x169)+'r',_0x4365eb(-0x16a,-0x155))[_0x4365eb(-0x183,-0x17e)]('--tags\x20<ta'+_0x4365eb(-0x15a,-0x171),_0x3d4504(0xdc,0xd4)+_0x4365eb(-0x18a,-0x166))[_0x4365eb(-0x179,-0x17e)]('-f,\x20--file'+_0x3d4504(0xf0,0xca),_0x4365eb(-0x14d,-0x16a)+'nt\x20from\x20fi'+'le')['option'](_0x3d4504(0xfb,0xe7),_0x4365eb(-0x19e,-0x17b)+_0x3d4504(0xe4,0xec)+_0x3d4504(0xba,0xcb)+_0x4365eb(-0x140,-0x13f))[_0x4365eb(-0x149,-0x137)]((_0x55efed,_0x34a893)=>{function _0x2f7b67(_0x3f7e34,_0x5542fa){return _0x3d4504(_0x3f7e34,_0x5542fa-0x9b);}const _0x409573=new ConfigManager()[_0x2f7b67(0x14e,0x164)](),_0x556123=new MemoryDatabase(_0x409573['db'][_0x2f7b67(0x16c,0x188)]);function _0x29d410(_0x530678,_0xe8455a){return _0x3d4504(_0x530678,_0xe8455a- -0x32b);}try{_0x556123['initialize']();let _0x462fa2;if(_0x34a893['file'])_0x462fa2=readFileSync(_0x34a893[_0x2f7b67(0x175,0x18f)],_0x2f7b67(0x15d,0x157));else _0x55efed?_0x462fa2=_0x55efed:(console[_0x29d410(-0x267,-0x274)](_0x15386d['red'](_0x29d410(-0x272,-0x25c)+_0x2f7b67(0x162,0x151)+_0x29d410(-0x268,-0x24f)+_0x29d410(-0x283,-0x25e)+_0x2f7b67(0x17f,0x171)+'ed')),process[_0x2f7b67(0x149,0x15e)](0x1));const _0x570185=_0x34a893[_0x29d410(-0x23f,-0x23b)]?_0x34a893[_0x29d410(-0x216,-0x23b)][_0x29d410(-0x23f,-0x246)](',')[_0x29d410(-0x25b,-0x251)](_0x4d5205=>_0x4d5205[_0x29d410(-0x24d,-0x236)]())['filter'](Boolean):[],_0x357722=_0x34a893[_0x29d410(-0x23f,-0x245)],_0xfff02=_0x34a893[_0x2f7b67(0x124,0x146)],_0x33fdf4=_0x409573[_0x2f7b67(0x137,0x15a)]?.['provider']??'local',_0xc303c=CHUNK_PRESETS[_0x33fdf4]??CHUNK_PRESETS['local'];if(_0x34a893['chunk']!==![]&&shouldChunk(_0x462fa2,_0xc303c)){if(_0x2f7b67(0x186,0x184)==='aWBcT'){const _0x2977ee=chunkContent(_0x462fa2,_0xc303c),_0x45b242=_0x2977ee['map']((_0x48a26d,_0x401642)=>({'content':_0x48a26d,'category':_0x357722,'tier':_0xfff02,'tags':[..._0x570185,_0x29d410(-0x270,-0x26e)+_0x401642]})),_0xcdec52=_0x556123[_0x2f7b67(0x185,0x178)+_0x2f7b67(0x14f,0x156)+'ks']({'content':_0x462fa2,'category':_0x357722,'tier':_0xfff02,'tags':[..._0x570185,_0x2f7b67(0x161,0x183)]},_0x45b242);console[_0x2f7b67(0x169,0x16e)](_0x15386d['green'](_0x29d410(-0x278,-0x278)+_0x2f7b67(0x15c,0x14c)+_0x2977ee[_0x29d410(-0x277,-0x263)]+_0x2f7b67(0x1a2,0x18c))),console['log'](_0x15386d['dim'](_0x2f7b67(0x188,0x179)+'\x20'+_0xcdec52)),console[_0x29d410(-0x24f,-0x258)](_0x15386d[_0x2f7b67(0x18a,0x17f)](_0x2f7b67(0x142,0x162)+_0x2977ee[_0x2f7b67(0x17a,0x163)])),console[_0x2f7b67(0x14f,0x16e)](_0x15386d['dim']('Category:\x20'+_0x357722));}else _0x1abebb[_0x2f7b67(0x15e,0x152)](_0x3e4575['red'](_0x29d410(-0x255,-0x239)+_0x29d410(-0x26a,-0x252)),_0x5eb702),_0x1d641c[_0x2f7b67(0x148,0x15e)](0x1);}else{const _0x5b8a7f=_0x556123[_0x29d410(-0x267,-0x24e)+'ry']({'content':_0x462fa2,'category':_0x357722,'tier':_0xfff02,'tags':_0x570185});console[_0x29d410(-0x232,-0x258)](_0x15386d[_0x29d410(-0x274,-0x27d)]('✓\x20Memory\x20a'+_0x29d410(-0x268,-0x269)+_0x29d410(-0x238,-0x249))),console[_0x29d410(-0x245,-0x258)](_0x15386d['dim'](_0x29d410(-0x273,-0x25d)+_0x5b8a7f['id'])),console[_0x2f7b67(0x151,0x16e)](_0x15386d[_0x29d410(-0x22a,-0x247)]('Category:\x20'+_0x5b8a7f['category'])),console[_0x29d410(-0x241,-0x258)](_0x15386d[_0x2f7b67(0x168,0x17f)](_0x2f7b67(0x162,0x17b)+(_0x5b8a7f['tags'][_0x29d410(-0x27e,-0x26d)](',\x20')||'(none)')));}}catch(_0x318576){console[_0x29d410(-0x254,-0x274)](_0x15386d[_0x29d410(-0x247,-0x23c)]('Error\x20addi'+_0x2f7b67(0x158,0x174)),_0x318576),process[_0x2f7b67(0x14b,0x15e)](0x1);}finally{_0x556123[_0x29d410(-0x25f,-0x27b)]();}});}
1
+ (function(_0x4c6189,_0x22c949){const _0x176933=_0x4c6189();function _0x1dde57(_0x25d517,_0x78279){return _0x1baa(_0x25d517- -0x246,_0x78279);}function _0x290a9d(_0xb9e6f1,_0x2d7852){return _0x1baa(_0x2d7852-0x37a,_0xb9e6f1);}while(!![]){try{const _0x3397af=-parseInt(_0x290a9d(0x520,0x539))/0x1+parseInt(_0x1dde57(-0xb4,-0xb8))/0x2+parseInt(_0x1dde57(-0x80,-0x86))/0x3+parseInt(_0x1dde57(-0xa5,-0x84))/0x4+parseInt(_0x1dde57(-0x95,-0x9e))/0x5+parseInt(_0x290a9d(0x52a,0x515))/0x6*(parseInt(_0x290a9d(0x514,0x536))/0x7)+-parseInt(_0x1dde57(-0xa3,-0x98))/0x8*(parseInt(_0x290a9d(0x54f,0x53e))/0x9);if(_0x3397af===_0x22c949)break;else _0x176933['push'](_0x176933['shift']());}catch(_0x396764){_0x176933['push'](_0x176933['shift']());}}}(_0x2979,0xaa2e8));import{Command}from'commander';import _0x39cb96 from'chalk';import{readFileSync}from'node:fs';import{ConfigManager}from'../../config/manager.js';function _0x1baa(_0x280787,_0x390a10){_0x280787=_0x280787-0x190;const _0x2979f8=_0x2979();let _0x1baa1f=_0x2979f8[_0x280787];if(_0x1baa['Dnpqeu']===undefined){var _0x4ecf1b=function(_0x2a3253){const _0xeea7b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x433266='',_0x4d3ecc='';for(let _0x1ecc08=0x0,_0x38cf43,_0x319857,_0x4f6958=0x0;_0x319857=_0x2a3253['charAt'](_0x4f6958++);~_0x319857&&(_0x38cf43=_0x1ecc08%0x4?_0x38cf43*0x40+_0x319857:_0x319857,_0x1ecc08++%0x4)?_0x433266+=String['fromCharCode'](0xff&_0x38cf43>>(-0x2*_0x1ecc08&0x6)):0x0){_0x319857=_0xeea7b4['indexOf'](_0x319857);}for(let _0x4a15cf=0x0,_0x458deb=_0x433266['length'];_0x4a15cf<_0x458deb;_0x4a15cf++){_0x4d3ecc+='%'+('00'+_0x433266['charCodeAt'](_0x4a15cf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d3ecc);};_0x1baa['iNMstJ']=_0x4ecf1b,_0x1baa['GLiNuY']={},_0x1baa['Dnpqeu']=!![];}const _0x17f6ba=_0x2979f8[0x0],_0x5d5019=_0x280787+_0x17f6ba,_0x53da91=_0x1baa['GLiNuY'][_0x5d5019];return!_0x53da91?(_0x1baa1f=_0x1baa['iNMstJ'](_0x1baa1f),_0x1baa['GLiNuY'][_0x5d5019]=_0x1baa1f):_0x1baa1f=_0x53da91,_0x1baa1f;}import{MemoryDatabase}from'../../db/database.js';function _0x2979(){const _0x566a4e=['z29YEt4','mtH0ELD1Due','Cgf0Aa','DgLLCG','z29YEsa8y2f0zq','Bg9N','lxqSic0TDgLLCG','mtu2ndGZnK54venUva','igLZihjLCxvPCG','mJGWodK5mJH2thvssMO','lwmSic0Ty2f0zq','Bg9JywW','DxrMltG','y2H1BMS','yNjOAMy','zgLT','BgvUz3rO','y2XVC2u','twvTB3j5ignVBG','B3b0Aw9U','DgvUDa','zgrLzcb3AxrOia','w2nVBNrLBNrD','ntm2otGZmgfrz0zRrG','Dg8Ty2H1BMTPBG','suq6ia','q29TBweTC2vWyq','y2H1BMTLza','CMvK','idX0AwvYpG','zw1IzwrKAw5N','ignVBNrLBNq','ywn0Aw9U','z3m+','mJG2odeWm2HRv0vwCW','DvvWt1q','uMvHzcbJB250zq','ntq3mtyXB1n4C1fH','q2H1BMTZoIa','zxjYB3i','twvTB3j5ihrPzq','zMLSzq','ovfpzgTXsq','rgLZywjSzsbHDq','mJy5nde1ouH5yw50tG','zwDVCNK','ywrK','ls10ywDZidX0yq','BMCGBwvTB3j5oG','y3jLyxrLtwvTBW','C3nMDwXSEq','vgfNCZOG','BwfW','ChjVDMLKzxi','BwvTB3j5','4PYtie1LBw9YEsbH','y2H1BMS6','zxHPDa','AwXLig9WDgLVBG','DgfNCW','idXWyxrOpG','yxjNDw1LBNq','AM9PBG','lwySic0TzMLSzq','q2f0zwDVCNK6ia','ugfYzw50ieLeoG','DhjPBq','mJmYnJeWmLPSBfDTEq','zMLSDgvY','y2f0zwDVCNK','CMf0zwqGDgfNCW','rxjYB3i6ignVBG','EMP0r3u','z3jLzw4','Bg9Hza'];_0x2979=function(){return _0x566a4e;};return _0x2979();}import{shouldChunk,chunkContent,CHUNK_PRESETS}from'../../chunking/chunker.js';export function addCommand(){function _0x188ac7(_0x598426,_0x53a2af){return _0x1baa(_0x53a2af-0x1d0,_0x598426);}function _0x31ed3c(_0x2deb7e,_0x4e4c07){return _0x1baa(_0x2deb7e-0x83,_0x4e4c07);}return new Command(_0x188ac7(0x3a9,0x398))['descriptio'+'n']('Add\x20a\x20new\x20'+_0x188ac7(0x3a7,0x3a0))[_0x31ed3c(0x25a,0x25c)](_0x31ed3c(0x233,0x21d),_0x188ac7(0x36d,0x37c)+_0x188ac7(0x38c,0x37e))[_0x31ed3c(0x230,0x24c)](_0x188ac7(0x359,0x374)+_0x31ed3c(0x221,0x20a)+_0x188ac7(0x38d,0x36a),'Memory\x20cat'+_0x31ed3c(0x24a,0x245),'context')['option'](_0x188ac7(0x38a,0x370)+_0x188ac7(0x37d,0x387),_0x188ac7(0x37c,0x392)+'r','episodic')[_0x188ac7(0x367,0x37d)](_0x31ed3c(0x24c,0x239)+_0x188ac7(0x393,0x38b),_0x188ac7(0x38c,0x384)+_0x31ed3c(0x218,0x23b))[_0x31ed3c(0x230,0x23e)](_0x31ed3c(0x25c,0x252)+_0x31ed3c(0x259,0x268),_0x188ac7(0x384,0x38e)+'nt\x20from\x20fi'+'le')['option']('--no-chunk',_0x188ac7(0x383,0x395)+_0x188ac7(0x371,0x382)+'g\x20for\x20long'+_0x31ed3c(0x23c,0x261))[_0x188ac7(0x373,0x38a)]((_0x60c42,_0x16d71b)=>{const _0x59af0b=new ConfigManager()[_0x47ca39(-0x8d,-0xaf)](),_0x3a8b5d=new MemoryDatabase(_0x59af0b['db'][_0x47ca39(-0x8a,-0x71)]);function _0x47ca39(_0x281aaf,_0x24f4f9){return _0x31ed3c(_0x281aaf- -0x2a9,_0x24f4f9);}function _0x4939c6(_0x412fb0,_0x4ae54f){return _0x31ed3c(_0x4ae54f-0x242,_0x412fb0);}try{if(_0x4939c6(0x485,0x482)==='nTJJS')_0x38cf43=_0x319857(_0x4f6958[_0x4939c6(0x48c,0x488)],_0x47ca39(-0x80,-0xa6));else{_0x3a8b5d['initialize']();let _0x7b3dfa;if(_0x16d71b[_0x47ca39(-0x63,-0x7d)])_0x7b3dfa=readFileSync(_0x16d71b[_0x4939c6(0x47c,0x488)],_0x47ca39(-0x80,-0x7c));else _0x60c42?_0x7b3dfa=_0x60c42:(console[_0x47ca39(-0x65,-0x5e)](_0x39cb96[_0x4939c6(0x482,0x47b)](_0x47ca39(-0x90,-0xac)+'tent\x20argum'+'ent\x20or\x20--f'+_0x47ca39(-0x52,-0x33)+_0x4939c6(0x47a,0x467)+'ed')),process[_0x47ca39(-0x53,-0x32)](0x1));const _0x53a94e=_0x16d71b['tags']?_0x16d71b[_0x4939c6(0x478,0x49a)]['split'](',')[_0x4939c6(0x471,0x493)](_0x3e933e=>_0x3e933e[_0x4939c6(0x44d,0x456)]())[_0x4939c6(0x454,0x458)](Boolean):[],_0xb7d3d0=_0x16d71b[_0x47ca39(-0x92,-0x75)],_0x1643bc=_0x16d71b[_0x47ca39(-0x89,-0x97)],_0x5b11ac=_0x59af0b[_0x47ca39(-0x6e,-0x69)]?.[_0x47ca39(-0x57,-0x50)]??_0x47ca39(-0x81,-0x89),_0x4690a2=CHUNK_PRESETS[_0x5b11ac]??CHUNK_PRESETS[_0x47ca39(-0x81,-0x6a)];if(_0x16d71b[_0x47ca39(-0x7f,-0x5d)]!==![]&&shouldChunk(_0x7b3dfa,_0x4690a2)){const _0x40290a=chunkContent(_0x7b3dfa,_0x4690a2),_0x12c53d=_0x40290a['map']((_0x586ba4,_0x56eb5c)=>({'content':_0x586ba4,'category':_0xb7d3d0,'tier':_0x1643bc,'tags':[..._0x53a94e,_0x47ca39(-0x54,-0x56)+_0x56eb5c]})),_0x11e306=_0x3a8b5d[_0x47ca39(-0x5b,-0x6e)+'ryWithChun'+'ks']({'content':_0x7b3dfa,'category':_0xb7d3d0,'tier':_0x1643bc,'tags':[..._0x53a94e,_0x4939c6(0x478,0x47a)]},_0x12c53d);console[_0x4939c6(0x449,0x464)](_0x39cb96[_0x4939c6(0x480,0x45d)](_0x4939c6(0x478,0x496)+_0x4939c6(0x473,0x474)+_0x40290a[_0x47ca39(-0x7c,-0x78)]+'\x20chunks')),console[_0x47ca39(-0x87,-0xa1)](_0x39cb96['dim'](_0x47ca39(-0x96,-0x86)+'\x20'+_0x11e306)),console[_0x4939c6(0x453,0x464)](_0x39cb96[_0x47ca39(-0x7d,-0x7a)](_0x47ca39(-0x66,-0x86)+_0x40290a[_0x47ca39(-0x7c,-0x99)])),console[_0x47ca39(-0x87,-0x86)](_0x39cb96[_0x47ca39(-0x7d,-0x95)](_0x47ca39(-0x4c,-0x48)+_0xb7d3d0));}else{if(_0x4939c6(0x448,0x46d)===_0x47ca39(-0x8f,-0x99))_0x5cb4ae=_0x30f765;else{const _0x5dde37=_0x3a8b5d[_0x47ca39(-0x5b,-0x3b)+'ry']({'content':_0x7b3dfa,'category':_0xb7d3d0,'tier':_0x1643bc,'tags':_0x53a94e});console[_0x4939c6(0x46f,0x464)](_0x39cb96['green']('✓\x20Memory\x20a'+'dded\x20succe'+_0x47ca39(-0x5a,-0x42))),console[_0x4939c6(0x44d,0x464)](_0x39cb96[_0x47ca39(-0x7d,-0x78)](_0x4939c6(0x498,0x478)+_0x5dde37['id'])),console[_0x4939c6(0x45d,0x464)](_0x39cb96[_0x47ca39(-0x7d,-0x80)](_0x47ca39(-0x4c,-0x26)+_0x5dde37['category'])),console[_0x47ca39(-0x87,-0x90)](_0x39cb96[_0x4939c6(0x462,0x46e)](_0x4939c6(0x4b3,0x492)+(_0x5dde37[_0x47ca39(-0x51,-0x70)][_0x47ca39(-0x4e,-0x42)](',\x20')||'(none)')));}}}}catch(_0x129c96){console[_0x47ca39(-0x65,-0x6d)](_0x39cb96[_0x47ca39(-0x70,-0x85)]('Error\x20addi'+_0x4939c6(0x4a3,0x48f)),_0x129c96),process['exit'](0x1);}finally{_0x3a8b5d[_0x4939c6(0x45e,0x470)]();}});}
@@ -1 +1 @@
1
- (function(_0x2c6ded,_0x139856){const _0x21394e=_0x2c6ded();function _0x566c3d(_0x589442,_0x43ef4b){return _0x54d9(_0x589442- -0x298,_0x43ef4b);}function _0x3f5d12(_0x7d5d13,_0x362ff6){return _0x54d9(_0x7d5d13-0x2c,_0x362ff6);}while(!![]){try{const _0x25d39a=parseInt(_0x3f5d12(0x115,0x13a))/0x1+-parseInt(_0x3f5d12(0x136,0x114))/0x2*(-parseInt(_0x566c3d(-0x1bd,-0x19a))/0x3)+-parseInt(_0x3f5d12(0x145,0x15d))/0x4*(-parseInt(_0x566c3d(-0x191,-0x172))/0x5)+-parseInt(_0x566c3d(-0x181,-0x17c))/0x6*(-parseInt(_0x566c3d(-0x19d,-0x1b1))/0x7)+-parseInt(_0x3f5d12(0x112,0x10f))/0x8*(-parseInt(_0x566c3d(-0x1a7,-0x1b2))/0x9)+-parseInt(_0x3f5d12(0x12f,0x127))/0xa*(-parseInt(_0x566c3d(-0x1b7,-0x1b4))/0xb)+-parseInt(_0x566c3d(-0x1bc,-0x1b2))/0xc;if(_0x25d39a===_0x139856)break;else _0x21394e['push'](_0x21394e['shift']());}catch(_0x3ca6c4){_0x21394e['push'](_0x21394e['shift']());}}}(_0x1927,0x9138c));import{Command}from'commander';import _0x368d0b from'chalk';function _0x54d9(_0x311811,_0x360ecd){_0x311811=_0x311811-0xd9;const _0x1927d6=_0x1927();let _0x54d979=_0x1927d6[_0x311811];if(_0x54d9['emyUnM']===undefined){var _0xc4b559=function(_0x547f6b){const _0x59d6dd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b2513='',_0x5f3326='';for(let _0x3002b7=0x0,_0x405299,_0x3854d4,_0x1cd225=0x0;_0x3854d4=_0x547f6b['charAt'](_0x1cd225++);~_0x3854d4&&(_0x405299=_0x3002b7%0x4?_0x405299*0x40+_0x3854d4:_0x3854d4,_0x3002b7++%0x4)?_0x3b2513+=String['fromCharCode'](0xff&_0x405299>>(-0x2*_0x3002b7&0x6)):0x0){_0x3854d4=_0x59d6dd['indexOf'](_0x3854d4);}for(let _0x1f5ba8=0x0,_0x4069d4=_0x3b2513['length'];_0x1f5ba8<_0x4069d4;_0x1f5ba8++){_0x5f3326+='%'+('00'+_0x3b2513['charCodeAt'](_0x1f5ba8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f3326);};_0x54d9['woTbET']=_0xc4b559,_0x54d9['ELpXUF']={},_0x54d9['emyUnM']=!![];}const _0x4c2c5c=_0x1927d6[0x0],_0x257bcd=_0x311811+_0x4c2c5c,_0x229a69=_0x54d9['ELpXUF'][_0x257bcd];return!_0x229a69?(_0x54d979=_0x54d9['woTbET'](_0x54d979),_0x54d9['ELpXUF'][_0x257bcd]=_0x54d979):_0x54d979=_0x229a69,_0x54d979;}import{ConfigManager}from'../../config/manager.js';function _0x1be550(_0x26307c,_0xe5f877){return _0x54d9(_0x26307c-0x6c,_0xe5f877);}import{MemoryDatabase}from'../../db/database.js';function _0x1927(){const _0x5423a3=['BgvUz3rO','idXWyxrOpG','ywXS','7iQK7yk1icJRS4dQSR3SL4BSNyWPoG','BwvTB3j5ierc','mJeZmJCWyNboquHi','cUYeUEYfMcdSG4hSHlG6','DgvJDcbPzIbVBq','Cgf0Aa','mJuYmde3mgncALzYzW','y2XVC2u','icdTLBtRI7KG7yYm7j287j20ioYHTa','mZC0mJq2DhvTsNzk','Ew5JzwqGD2L0Aa','C2vJDgLVBNm','ru1jtKKUBwqGyW','7yYm7j28oG','ieDftuLoss5Tza','y3jLyxrLza','DxbKyxrLza','ioUpMEQ4So2zLcdQSRdQS7Wk','rs5TzcaViefhrq','zhj5uNvU','w0rswsbsvu5Dia','B25Z','ndjJq1PSveS','uwj2zfG','nfvHy0zzBq','Ae5ODgm','7j6S7zwy64Qu7kEaio2zLEYDUo2vMoYeUoYALa','zMLSzq','ywn0Aw9U','zM9Yy2u','z3jLzw4','Dg8GC3LUyYaOqW','rM9Yy2uGCMuTCW','ls1KCNKTCNvU','lxaSic0TCgf0Aa','tefvreuUBwqSia','zgvZy3jPChrPBW','7jEg7iQ164Ui64UKlGO','rMLSzsbUyw1Lia','Axr0zwqP','B3v0ihDYAxrPBG','ls1MB3jJzq','tLrtlM1Kic8GrW','m0LjweHPAq','mJa4mJi0mdbWzxvyB1G','zgLT','7jEf642W7j207yQ4oG','Dg9tDhjPBMC','cUkAOo+4JYaG','nduXuK5Ur2fN','C2TPChbLza','Aw5PDgLHBgL6zq','lwySic0TzMLSzq','u2HVDYb3Agf0ia','mJa0mdu2A0XOu2fs','Bg9N','8j+tIYa','mtC1otHfBwvTwem','y2f0zwDVCNK','idXUyw1LpG','q0XbvurflM1K','DgL0Bgu','zIbMAwXLihvUyW','icaTlxbHDgGG7jI1','EwvSBg93','mJqZyvvuBKDp','7zwy6RgW64ky','7is57iwyioYiMdO','7iwy7jY866gCioQYVEUHNoULVcdSP4dSOju','u3LUyYbdtefvra','yM9Sza','r0vnsu5jlM1K','Bg9Hza','B3b0Aw9U','zxjYB3i','ntGXnZD1s3nIALu','io2mJoYDVoYDHcdSSl7SNyqG7iIyia','zMLSzvbHDgG'];_0x1927=function(){return _0x5423a3;};return _0x1927();}import{syncClaudeMd}from'../../claude/sync.js';const SUPPORTED_FILES=[_0x1be550(0x158,0x16e),'AGENTS.md',_0x1be550(0x163,0x151)];function _0x281587(_0x1aab7a,_0x45f07d){return _0x54d9(_0x1aab7a- -0x100,_0x45f07d);}export function claudeSyncCommand(){function _0x2b4bd5(_0x43eb55,_0x291697){return _0x281587(_0x43eb55- -0x258,_0x291697);}function _0x57e359(_0x36e3ab,_0x134a69){return _0x281587(_0x36e3ab-0xa8,_0x134a69);}const _0x15dbd0=new Command('claude-syn'+'c');return _0x15dbd0[_0x2b4bd5(-0x233,-0x215)+'n'](_0x57e359(0x9d,0x8a)+_0x57e359(0xbb,0xc1)+_0x57e359(0x82,0x76)+_0x57e359(0xb5,0xdc)+'ontent\x20to\x20'+_0x2b4bd5(-0x256,-0x26a))[_0x57e359(0xa1,0xb9)](_0x2b4bd5(-0x235,-0x232)+_0x57e359(0xa7,0xcd),'Path\x20to\x20ma'+'rkdown\x20fil'+'e\x20(auto-de'+_0x57e359(0xad,0xc0)+_0x2b4bd5(-0x230,-0x217))[_0x2b4bd5(-0x25f,-0x283)](_0x2b4bd5(-0x274,-0x297)+_0x57e359(0x93,0x9a),_0x2b4bd5(-0x231,-0x23b)+_0x2b4bd5(-0x238,-0x23c)+_0x2b4bd5(-0x234,-0x21b)+'AGENTS.md,'+_0x2b4bd5(-0x249,-0x267)+',\x20or\x20\x22all\x22'+')')[_0x2b4bd5(-0x25f,-0x244)](_0x57e359(0xca,0xee),_0x2b4bd5(-0x273,-0x28c)+'would\x20be\x20s'+_0x57e359(0xb3,0xba)+_0x2b4bd5(-0x22f,-0x233)+'g')['option'](_0x57e359(0x81,0x6e),_0x57e359(0xc9,0xd5)+'ync\x20even\x20i'+_0x2b4bd5(-0x26a,-0x287)+'hanged')['action'](async _0x43b7a2=>{function _0x43bdaa(_0x42d968,_0x4c2a56){return _0x2b4bd5(_0x42d968-0x4a3,_0x4c2a56);}function _0x223cc2(_0x48aa45,_0x98e2e7){return _0x2b4bd5(_0x48aa45-0x227,_0x98e2e7);}if('xEbRP'!==_0x223cc2(-0x19,0x0)){const _0x3f8bf4=new ConfigManager()[_0x43bdaa(0x243,0x21f)](),_0x13e201=new MemoryDatabase(_0x3f8bf4['db'][_0x223cc2(-0x2b,-0x2c)]);try{_0x13e201[_0x43bdaa(0x22e,0x213)]();const _0x7c8d9b=_0x43b7a2[_0x223cc2(-0x15,-0x36)]===_0x223cc2(-0x31,-0x2b)?[...SUPPORTED_FILES]:[_0x43b7a2[_0x223cc2(-0x15,-0x13)]??_0x43bdaa(0x237,0x25f)];for(const _0x54af46 of _0x7c8d9b){const _0x5ed066=await syncClaudeMd(_0x13e201,{'claudeMdPath':_0x43b7a2[_0x223cc2(-0x2b,-0x1e)],'fileName':_0x54af46,'dryRun':_0x43b7a2['dryRun']??![],'force':_0x43b7a2[_0x43bdaa(0x269,0x25d)]??![]});printResult(_0x5ed066,_0x43b7a2[_0x223cc2(-0x1d,-0x9)],_0x54af46);}}catch(_0x4f065c){_0x4f065c instanceof Error&&console[_0x43bdaa(0x245,0x239)](_0x368d0b['red']('\x0a❌\x20오류:\x20'+_0x4f065c['message']+'\x0a')),process['exit'](0x1);}finally{_0x13e201[_0x43bdaa(0x253,0x256)]();}}else{_0x45a089[_0x223cc2(-0x4a,-0x72)](_0x2fe01f[_0x223cc2(-0x54,-0x5f)](_0x43bdaa(0x24f,0x266)));for(const _0x30ea68 of _0x4761bb[_0x223cc2(-0x25,-0xa)]){const _0x5bf36f=_0x30ea68[_0x223cc2(-0x14,-0x2)]==='created'?'✅':_0x30ea68['action']===_0x43bdaa(0x25c,0x278)?'🔄':'⏭️';_0x2edcc1[_0x223cc2(-0x4a,-0x28)]('\x20\x20'+_0x5bf36f+'\x20'+_0x37bdc4[_0x223cc2(-0x54,-0x76)]('['+_0x30ea68[_0x223cc2(-0x47,-0x45)]+']')+'\x20'+_0x30ea68[_0x43bdaa(0x238,0x241)]);}}}),_0x15dbd0;}function printResult(_0x4b1a28,_0xd96132,_0x5b28b4){const _0xc79877=_0x5b28b4??_0x43a552(-0x2d1,-0x2f0);function _0x2492a1(_0x449148,_0x18933b){return _0x281587(_0x449148-0x482,_0x18933b);}if(!_0x4b1a28['found']){console[_0x43a552(-0x2d6,-0x2c4)](_0x368d0b['yellow'](_0x43a552(-0x2dd,-0x2c3)+_0xc79877+(_0x43a552(-0x2c1,-0x2df)+_0x2492a1(0x4a8,0x48f)))),console[_0x2492a1(0x469,0x44d)](_0x368d0b[_0x43a552(-0x2e0,-0x2b8)](_0x2492a1(0x471,0x491)+_0x43a552(-0x2c9,-0x2a6)+_0x43a552(-0x2cb,-0x2bb))),console[_0x2492a1(0x469,0x448)](_0x368d0b['dim'](_0x43a552(-0x2b4,-0x28e)+_0x43a552(-0x2a2,-0x299)+'.\x0a'));return;}const _0x20b878=_0xd96132?_0x368d0b['cyan'](_0x43a552(-0x2a8,-0x2c5)):'';console[_0x43a552(-0x2d6,-0x2d6)](_0x368d0b[_0x43a552(-0x2c7,-0x2b1)]('\x0a'+_0x20b878+_0x43a552(-0x2d5,-0x2af)+_0xc79877+_0x2492a1(0x494,0x4bc))),console[_0x2492a1(0x469,0x47d)](_0x368d0b['dim'](_0x43a552(-0x2af,-0x2ce))+'\x20'+_0x4b1a28[_0x43a552(-0x2c0,-0x2c7)]),console['log'](_0x368d0b['dim'](_0x43a552(-0x2ca,-0x2bd))+'\x20'+_0x4b1a28['totalSecti'+_0x2492a1(0x498,0x48d)]),console['log'](_0x368d0b[_0x2492a1(0x45f,0x43c)]('새로\x20추가:')+'\x20'+_0x368d0b[_0x2492a1(0x4a1,0x4b7)](_0x4b1a28['created'][_0x2492a1(0x461,0x44a)]())+'개'),console['log'](_0x368d0b['dim'](_0x2492a1(0x460,0x43b))+'\x20'+_0x368d0b[_0x43a552(-0x2cd,-0x2f0)](_0x4b1a28[_0x43a552(-0x2ac,-0x2b3)][_0x2492a1(0x461,0x46b)]())+'개');function _0x43a552(_0x5e5df8,_0x3e06c3){return _0x281587(_0x5e5df8- -0x2bd,_0x3e06c3);}console['log'](_0x368d0b[_0x2492a1(0x45f,0x43a)](_0x2492a1(0x483,0x47a))+'\x20'+_0x368d0b[_0x2492a1(0x45f,0x44f)](_0x4b1a28[_0x43a552(-0x2db,-0x2c9)][_0x43a552(-0x2de,-0x2ba)]())+'개');if(_0x4b1a28['sections'][_0x2492a1(0x480,0x45d)]>0x0){console[_0x43a552(-0x2d6,-0x2e2)](_0x368d0b['dim'](_0x43a552(-0x2b9,-0x2af)));for(const _0x4a340f of _0x4b1a28[_0x43a552(-0x2b1,-0x2b5)]){if(_0x43a552(-0x2a3,-0x2a7)===_0x43a552(-0x2a3,-0x281)){const _0x83db33=_0x4a340f[_0x43a552(-0x2a0,-0x2b1)]===_0x2492a1(0x492,0x47c)?'✅':_0x4a340f['action']===_0x43a552(-0x2ac,-0x2be)?'🔄':'⏭️';console[_0x2492a1(0x469,0x447)]('\x20\x20'+_0x83db33+'\x20'+_0x368d0b['dim']('['+_0x4a340f[_0x43a552(-0x2d3,-0x2eb)]+']')+'\x20'+_0x4a340f['title']);}else{_0x30a7f2[_0x2492a1(0x469,0x443)](_0x5a9ef9[_0x43a552(-0x2cd,-0x2f3)](_0x43a552(-0x2dd,-0x2ee)+_0x14f78+(_0x2492a1(0x47e,0x49f)+_0x2492a1(0x4a8,0x4c7)))),_0x560c33[_0x43a552(-0x2d6,-0x2e6)](_0x4845e5[_0x2492a1(0x45f,0x46f)](_0x2492a1(0x471,0x453)+_0x2492a1(0x476,0x459)+_0x2492a1(0x474,0x48c))),_0x429cb0[_0x43a552(-0x2d6,-0x2f2)](_0x50cb04['dim'](_0x2492a1(0x48b,0x4ab)+'재하는지\x20확인하세요'+'.\x0a'));return;}}}console[_0x43a552(-0x2d6,-0x2dc)]();}
1
+ (function(_0x4c8c6e,_0x20e59c){const _0xac0d2e=_0x4c8c6e();function _0x5f3fba(_0x4de227,_0x4d8601){return _0x3b0f(_0x4d8601- -0xfe,_0x4de227);}function _0x122058(_0x687ee4,_0xe31008){return _0x3b0f(_0x687ee4- -0x2de,_0xe31008);}while(!![]){try{const _0x1691c3=parseInt(_0x5f3fba(0x110,0xed))/0x1+-parseInt(_0x122058(-0x114,-0xf9))/0x2+parseInt(_0x5f3fba(0xbd,0xe0))/0x3*(parseInt(_0x5f3fba(0x107,0xe5))/0x4)+parseInt(_0x5f3fba(0xc0,0xdf))/0x5+-parseInt(_0x5f3fba(0xaf,0xb0))/0x6*(-parseInt(_0x5f3fba(0xc2,0xba))/0x7)+parseInt(_0x5f3fba(0xfd,0xd6))/0x8+-parseInt(_0x5f3fba(0xd5,0xe6))/0x9;if(_0x1691c3===_0x20e59c)break;else _0xac0d2e['push'](_0xac0d2e['shift']());}catch(_0x333690){_0xac0d2e['push'](_0xac0d2e['shift']());}}}(_0x3002,0xa5437));import{Command}from'commander';import _0x2aa93d from'chalk';function _0x3b0f(_0xe24645,_0x5266d6){_0xe24645=_0xe24645-0x1a3;const _0x3002da=_0x3002();let _0x3b0f97=_0x3002da[_0xe24645];if(_0x3b0f['LdeMQR']===undefined){var _0x4982fb=function(_0x48cf53){const _0x5a0ed6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x437feb='',_0x1278d1='';for(let _0x20d877=0x0,_0x15017c,_0x488d40,_0x35ce6d=0x0;_0x488d40=_0x48cf53['charAt'](_0x35ce6d++);~_0x488d40&&(_0x15017c=_0x20d877%0x4?_0x15017c*0x40+_0x488d40:_0x488d40,_0x20d877++%0x4)?_0x437feb+=String['fromCharCode'](0xff&_0x15017c>>(-0x2*_0x20d877&0x6)):0x0){_0x488d40=_0x5a0ed6['indexOf'](_0x488d40);}for(let _0x351f8=0x0,_0x59b8b4=_0x437feb['length'];_0x351f8<_0x59b8b4;_0x351f8++){_0x1278d1+='%'+('00'+_0x437feb['charCodeAt'](_0x351f8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1278d1);};_0x3b0f['DmuutP']=_0x4982fb,_0x3b0f['IJwsVN']={},_0x3b0f['LdeMQR']=!![];}const _0x1a58ac=_0x3002da[0x0],_0x2df59d=_0xe24645+_0x1a58ac,_0x7dd8f1=_0x3b0f['IJwsVN'][_0x2df59d];return!_0x7dd8f1?(_0x3b0f97=_0x3b0f['DmuutP'](_0x3b0f97),_0x3b0f['IJwsVN'][_0x2df59d]=_0x3b0f97):_0x3b0f97=_0x7dd8f1,_0x3b0f97;}import{ConfigManager}from'../../config/manager.js';function _0x43556c(_0x2b2007,_0x375311){return _0x3b0f(_0x2b2007-0xf9,_0x375311);}function _0x3002(){const _0x5f3b7b=['io2mJoYDVoYDHcdSSl7SNyqG7iIyia','Ew5JzwqGD2L0Aa','nfjoAgftyq','mtGYotqWmZLTCvzMExq','icdTLBtRI7KG7yYm7j287j20ioYHTa','7ioi66gCioY2LoQWGdO','EwvSBg93','y3LHBG','zMLSzvbHDgG','7iQK7yk1icJRS4dQSR3SL4BSNyWPoG','mte4nZqZoenUqvHOuW','C2vJDgLVBNm','ywn0Aw9U','lxaSic0TCgf0Aa','Dg90ywXtzwn0Aq','7zwy6RgW64ky','cUkAOo+4JYaG','B3b0Aw9U','y2f0zwDVCNK','lcbVCIaIywXSiG','Cgf0Aa','yM9Sza','BwvTB3j5ierc','tefvreuUBwqSia','7j6S7zwy64Qu7kEaio2zLEYDUo2vMoYeUoYALa','cUYeUEYfMcdSG4hSHlG6','BwvZC2fNzq','mty4mZCZmMPmEKzRCa','rs5TzcaViefhrq','y2XHDwrLlxn5BG','r0vnsu5jlM1K','AgfUz2vK','7jEg7iQ164Ui64UKlGO','Dg9tDhjPBMC','Dg8GC3LUyYaOqW','B3v0ihDYAxrPBG','Bg9N','mtrmqLLMthy','zM91BMq','7iwy7jY866gCioQYVEUHNoULVcdSP4dSOju','q0XbvurflM1K','DxbKyxrLza','rM9Yy2uGCMuTCW','zMLSzq','B250zw50ihrVia','ieDftuLoss5Tza','BgvUz3rO','CMTKB3DUigzPBa','zxHPDa','DgvJDcbPzIbVBq','Ew5Jigv2zw4GAq','z3jLzw4','7yYm7j28oG','idXWyxrOpG','ioUpMEQ4So2zLcdQSRdQS7Wk','nJm4mty2sLngA0vi','zgvZy3jPChrPBW','quDftLrtlM1K','cUkDJcdSMktRPzG6ia','ywXS','y3jLyxrLza','u3LUyYbdtefvra','Aw5PDgLHBgL6zq','zgLT','u2HVDYb3Agf0ia','mZuXmdaWmfHcse96tG','ls1MB3jJzq','ru1jtKKUBwqGyW','zIbMAwXLihvUyW','7jEf642W7j207yQ4oG','ugf0Acb0BYbTyq','zhj5uNvU','7is57iwyioYiMdO','ls1KCNKTCNvU','mZq2nZeWBNnAvK5S','mJmXnty5n2nKs3fzyW','y2XVC2u','Axr0zwqP'];_0x3002=function(){return _0x5f3b7b;};return _0x3002();}import{MemoryDatabase}from'../../db/database.js';function _0x2f25fe(_0x2137d8,_0x191087){return _0x3b0f(_0x2137d8-0x26f,_0x191087);}import{syncClaudeMd}from'../../claude/sync.js';const SUPPORTED_FILES=[_0x2f25fe(0x42a,0x403),_0x2f25fe(0x43b,0x45d),_0x43556c(0x2aa,0x2a4)];export function claudeSyncCommand(){const _0x2edfcf=new Command(_0x6b95fe(0x329,0x32b)+'c');_0x2edfcf[_0x6b95fe(0x344,0x362)+'n'](_0x59c73f(-0x22f,-0x20a)+_0x6b95fe(0x328,0x33b)+'NTS.md\x20/\x20G'+_0x6b95fe(0x34f,0x329)+_0x6b95fe(0x338,0x348)+_0x6b95fe(0x322,0x335))[_0x6b95fe(0x31d,0x336)](_0x59c73f(-0x1d2,-0x1ec)+_0x59c73f(-0x210,-0x212),_0x6b95fe(0x352,0x362)+_0x59c73f(-0x223,-0x218)+'e\x20(auto-de'+_0x6b95fe(0x33d,0x32c)+_0x6b95fe(0x359,0x352))['option']('-f,\x20--file'+'\x20<name>','File\x20name\x20'+_0x59c73f(-0x230,-0x225)+_0x59c73f(-0x242,-0x230)+'AGENTS.md,'+_0x6b95fe(0x339,0x355)+_0x6b95fe(0x31f,0x325)+')')[_0x59c73f(-0x21e,-0x236)](_0x59c73f(-0x20a,-0x1fe),_0x6b95fe(0x34c,0x373)+'would\x20be\x20s'+_0x59c73f(-0x203,-0x1f8)+_0x6b95fe(0x32f,0x343)+'g')[_0x6b95fe(0x31d,0x32f)](_0x59c73f(-0x205,-0x205),_0x59c73f(-0x1ff,-0x21d)+_0x6b95fe(0x33e,0x31c)+_0x59c73f(-0x203,-0x203)+_0x59c73f(-0x209,-0x228))[_0x59c73f(-0x1fc,-0x1ed)](async _0x188a12=>{function _0x503f88(_0x975ca9,_0x3c3e36){return _0x59c73f(_0x3c3e36,_0x975ca9-0x60e);}function _0x10f617(_0x2ebbcf,_0x10c632){return _0x59c73f(_0x2ebbcf,_0x10c632-0x2a1);}const _0x14c641=new ConfigManager()['load'](),_0x414ef4=new MemoryDatabase(_0x14c641['db']['path']);try{_0x414ef4[_0x503f88(0x405,0x41b)]();const _0x5e3e81=_0x188a12[_0x503f88(0x3f2,0x3fc)]===_0x503f88(0x402,0x3fe)?[...SUPPORTED_FILES]:[_0x188a12['file']??_0x10f617(0x6a,0x82)];for(const _0x565a53 of _0x5e3e81){const _0x33792f=await syncClaudeMd(_0x414ef4,{'claudeMdPath':_0x188a12[_0x10f617(0x5f,0x6e)],'fileName':_0x565a53,'dryRun':_0x188a12[_0x10f617(0xb3,0xa1)]??![],'force':_0x188a12['force']??![]});printResult(_0x33792f,_0x188a12[_0x503f88(0x40e,0x428)],_0x565a53);}}catch(_0x24ac07){_0x24ac07 instanceof Error&&console['error'](_0x2aa93d['red'](_0x10f617(0x7d,0x94)+_0x24ac07[_0x503f88(0x3e1,0x3cb)]+'\x0a')),process[_0x10f617(0x7d,0x8a)](0x1);}finally{_0x414ef4[_0x503f88(0x413,0x408)]();}});function _0x6b95fe(_0x283eef,_0x333e4d){return _0x43556c(_0x283eef-0x80,_0x333e4d);}function _0x59c73f(_0x5c19a4,_0x3532ec){return _0x43556c(_0x3532ec- -0x4d3,_0x5c19a4);}return _0x2edfcf;}function printResult(_0x23e4e5,_0x33d3ac,_0x4dfe41){const _0x4c4b0b=_0x4dfe41??_0x5163e5(0x3a4,0x3ab);if(!_0x23e4e5[_0x5163e5(0x3ad,0x3a9)]){console[_0x5163e5(0x3c5,0x3a7)](_0x2aa93d[_0x5163e5(0x3ee,0x3d7)](_0x5163e5(0x3a7,0x393)+_0x4c4b0b+(_0x1a431c(-0x4b,-0x4a)+_0x5163e5(0x3c7,0x3a3)))),console[_0x1a431c(-0x75,-0x94)](_0x2aa93d[_0x1a431c(-0x5a,-0x73)]('\x20\x20--path\x20옵'+_0x5163e5(0x3ce,0x3aa)+_0x5163e5(0x3f1,0x3e0))),console[_0x1a431c(-0x75,-0x6e)](_0x2aa93d[_0x1a431c(-0x5a,-0x57)](_0x1a431c(-0x47,-0x6b)+_0x1a431c(-0x81,-0x78)+'.\x0a'));return;}function _0x1a431c(_0x3951ec,_0x1115d3){return _0x43556c(_0x3951ec- -0x325,_0x1115d3);}const _0x1246ab=_0x33d3ac?_0x2aa93d[_0x5163e5(0x3fa,0x3d8)]('[DRY\x20RUN]\x20'):'';console[_0x5163e5(0x38b,0x3a7)](_0x2aa93d[_0x5163e5(0x3b5,0x398)]('\x0a'+_0x1246ab+'📋\x20'+_0x4c4b0b+_0x5163e5(0x3a9,0x3b9))),console[_0x5163e5(0x3ba,0x3a7)](_0x2aa93d[_0x1a431c(-0x5a,-0x68)](_0x5163e5(0x397,0x3b7))+'\x20'+_0x23e4e5[_0x5163e5(0x3ba,0x3d9)]),console[_0x1a431c(-0x75,-0x78)](_0x2aa93d[_0x1a431c(-0x5a,-0x72)](_0x5163e5(0x3b1,0x3cb))+'\x20'+_0x23e4e5[_0x1a431c(-0x3d,-0x60)+'ons']),console[_0x1a431c(-0x75,-0x65)](_0x2aa93d[_0x5163e5(0x3cc,0x3c2)](_0x1a431c(-0x46,-0x1f))+'\x20'+_0x2aa93d[_0x5163e5(0x3b1,0x3b6)](_0x23e4e5[_0x5163e5(0x3e1,0x3bf)][_0x5163e5(0x3b4,0x3a4)]())+'개');function _0x5163e5(_0x1fa862,_0x34ef2d){return _0x43556c(_0x34ef2d-0xf7,_0x1fa862);}console['log'](_0x2aa93d['dim'](_0x5163e5(0x3c1,0x3c8))+'\x20'+_0x2aa93d[_0x5163e5(0x3e2,0x3d7)](_0x23e4e5[_0x1a431c(-0x70,-0x97)][_0x1a431c(-0x78,-0x8e)]())+'개'),console[_0x5163e5(0x3ca,0x3a7)](_0x2aa93d['dim'](_0x1a431c(-0x42,-0x5a))+'\x20'+_0x2aa93d[_0x5163e5(0x39d,0x3c2)](_0x23e4e5['skipped']['toString']())+'개');if(_0x23e4e5[_0x5163e5(0x3c9,0x3dc)][_0x1a431c(-0x6b,-0x45)]>0x0){console[_0x5163e5(0x3b9,0x3a7)](_0x2aa93d[_0x1a431c(-0x5a,-0x5f)](_0x5163e5(0x3b7,0x39c)));for(const _0x325b78 of _0x23e4e5[_0x5163e5(0x3d8,0x3dc)]){const _0x2fa9c7=_0x325b78[_0x5163e5(0x3e7,0x3dd)]===_0x1a431c(-0x5d,-0x55)?'✅':_0x325b78['action']===_0x5163e5(0x3a0,0x3ac)?'🔄':'⏭️';console[_0x1a431c(-0x75,-0x85)]('\x20\x20'+_0x2fa9c7+'\x20'+_0x2aa93d[_0x1a431c(-0x5a,-0x59)]('['+_0x325b78[_0x5163e5(0x3a2,0x395)]+']')+'\x20'+_0x325b78['title']);}}console[_0x1a431c(-0x75,-0x5e)]();}
@@ -1 +1 @@
1
- (function(_0x185120,_0x491590){const _0x5448c0=_0x185120();function _0x1ca587(_0x58f3c7,_0x32e982){return _0x2436(_0x32e982-0x175,_0x58f3c7);}function _0x3be192(_0x33f23d,_0x2c1dde){return _0x2436(_0x2c1dde-0x2ed,_0x33f23d);}while(!![]){try{const _0x5d628d=parseInt(_0x3be192(0x37a,0x3a1))/0x1+-parseInt(_0x3be192(0x36a,0x387))/0x2*(parseInt(_0x1ca587(0x1ff,0x23f))/0x3)+parseInt(_0x3be192(0x3d5,0x3e8))/0x4*(-parseInt(_0x1ca587(0x210,0x231))/0x5)+-parseInt(_0x1ca587(0x278,0x24c))/0x6*(-parseInt(_0x3be192(0x370,0x3a6))/0x7)+-parseInt(_0x1ca587(0x1cd,0x201))/0x8*(parseInt(_0x3be192(0x38b,0x391))/0x9)+parseInt(_0x1ca587(0x1fd,0x234))/0xa+parseInt(_0x1ca587(0x294,0x25e))/0xb*(parseInt(_0x1ca587(0x1df,0x20c))/0xc);if(_0x5d628d===_0x491590)break;else _0x5448c0['push'](_0x5448c0['shift']());}catch(_0x428ce3){_0x5448c0['push'](_0x5448c0['shift']());}}}(_0x486c,0xe466f));import{Command}from'commander';import _0xd34b6 from'chalk';import _0x5e0daa from'ora';function _0x2436(_0x2bcd04,_0x1fb237){_0x2bcd04=_0x2bcd04-0x7c;const _0x486c6d=_0x486c();let _0x2436ff=_0x486c6d[_0x2bcd04];if(_0x2436['kVSZvM']===undefined){var _0x2eedf8=function(_0x74d3e1){const _0x104579='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5389e9='',_0x3bfff5='';for(let _0x244388=0x0,_0x5206f,_0x36ba6d,_0x11f61b=0x0;_0x36ba6d=_0x74d3e1['charAt'](_0x11f61b++);~_0x36ba6d&&(_0x5206f=_0x244388%0x4?_0x5206f*0x40+_0x36ba6d:_0x36ba6d,_0x244388++%0x4)?_0x5389e9+=String['fromCharCode'](0xff&_0x5206f>>(-0x2*_0x244388&0x6)):0x0){_0x36ba6d=_0x104579['indexOf'](_0x36ba6d);}for(let _0x554ff5=0x0,_0x15d59f=_0x5389e9['length'];_0x554ff5<_0x15d59f;_0x554ff5++){_0x3bfff5+='%'+('00'+_0x5389e9['charCodeAt'](_0x554ff5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bfff5);};_0x2436['uIOZVL']=_0x2eedf8,_0x2436['jwzAdK']={},_0x2436['kVSZvM']=!![];}const _0x1f0d52=_0x486c6d[0x0],_0xf42734=_0x2bcd04+_0x1f0d52,_0x209ddf=_0x2436['jwzAdK'][_0xf42734];return!_0x209ddf?(_0x2436ff=_0x2436['uIOZVL'](_0x2436ff),_0x2436['jwzAdK'][_0xf42734]=_0x2436ff):_0x2436ff=_0x209ddf,_0x2436ff;}import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';function _0x486c(){const _0x5124ed=['BxbSzxrL','zw7QUyZSP4aG7zwO6RUyioYcREYGNa','ig1LBw9YAwvZia','z3jLzw4','mte2rNv4wwD5','io2AJoYiMoUqQEUlIoUlPc4','CM1HDgLVBIbWCG','Bgv0zwq6ia','64QuioUnLcdRP47SIRxRI4JRI6qP','CMvK','Axr5oIa','y2XVC2u','igr1CgXPy2f0zq','zM9Yy2u','zsbNCM91Chm6ia','y2fUzgLKyxrLCW','u2HVDYb3Agf0ia','CNvUihrVihbYzq','zgvZy3jPChrPBW','icJTMzZSHleGCgfYzw4','rgvKDxbSAwnHDa','zhj5uNvU','BgvUz3rO','6Rg07j2aioUlPoYDJcdSI6tTLONSL5dSHjW','rLjoCeC','BwfW','6Rg07j2eioUlPcdSJBZSIRxRI4JRI6qG','mZjStMHUEfG','A2LWihrOAxmGBq','B21WDa','CMLLCY4UlGO','Bw9YAwvZ','D291BgqGyMuGza','icbuB3rHBcbKzq','Bg93uxvHBgL0Eq','B3vUDa','CcbTzw1VCMLLCW','y3LHBG','ndm3mJH5vuzIB3y','Bgv0ztOG','tg93ihf1ywXPDa','mtu3mdzPzMvfBvK','DMLLDYbVCIaTlq','CMLLCYb0BYbJBa','C3vJy2vLza','zgLT','y3qTy29UDgvUDa','ExPPBMCGBwvTBW','z2v0qwn0AxzLua','z3jVDxbZ','Aw5PDgLHBgL6zq','nZK2mJKZCvDwC1HQ','ls1MB3jJzq','u2TPCcbJB25MAq','zwfUihvW','lI4U','BMCGy2XLyw51Ca','zxnOB2XK','zxjYB3i','icbeDxbSAwnHDa','zM9Yy2uGDg8GCW','Bg9Hza','Aw5Nigv4ywn0lq','C3rHCNq','65cy66+a66gCioYlPoYGNcdTLOKG7iIy','igrHExmPoIa','yxjLBNrdB3vUDa','mJGXnZK1EKDoq0HN','B2XKigfUzcbSBW','4OcuioYELoYxRca','cUkCKYboBYbTzw1V','AgLSzhjLBIdTJ6ZTLAG','nZiZmdC5q3jSwuvN','4PYtierLzhvWignV','8j+uJsbeCNKTCNvUia','mJqZmdeWr1DeAwPO','kfrutcK6ia','CxvHBgL0EvrOCG','ndiWotGWuKnxvMDX','y29TCgXLDgu','BgX5igrLBgv0Aq','Dg90ywW','icbezwXLDgvKoG','CMTYvu4','DcbJB3b5ihbLCG','rM9Yy2vKicJSG4hTLzW','icbfEhbPCMvKia','uMvTB3zLigv4yq','igDYB3vWkq','mtm1rKfJsKv4','zgvKDxa','ktOG','icaOy2H1BMSGyW','zwXLDgvKihDPDa','ls1KCNKTCNvU','icbxB3vSzcbKzq','6RIW7ksalIbJAhvUAYa','AgfZ','t1jTrgS','Bg9N','DhrSrgf5CW','rKvuq2O','mZb2sfn3ELu','Bw9YAwvZlI4U','BwvTB3jPzxmU','icbmB3CGCxvHBa','7j2aihbHCMvUDcdQUla','vxnLic0Tzhj5lq','rxjYB3iGzhvYAq','4PYtienSzwfUDxaG','z2v0u3LUy1bYBW','iokaLcbKCNKTCNvU','66Y47isC64QuignOAwXKCG','CgfYzw50swq','y29UDgvUDcbTzq','ywn0Aw9U','q2XLyw5PBMCGDq','DY1XDwfSAxr5ia','Bwf4twvTB3jPzq','zgvSzxrLza','nJy3n3rjCLPUuq','Bw9KztOGyw5HBa','BgWGzgvSzxrLia','kgTLzxbZigjLCW','EsaOpa','zMLSDgvY','CgLJA2vK','EwvSBg93','4PQG77Ipio2AJoYWQcdSMiJSGRaG','Es1YDw46','zxnZywDLlGO','8j+uJsbezwr1CcbKCG','DgvJDgvKswrZ','4PQG77IpicbuAgLZihDP'];_0x486c=function(){return _0x5124ed;};return _0x486c();}import{cleanupMemories,computeThrottleCap,dedupExactDuplicates,isSyncActive,selectDeletionTargets,selectExpiredTargets}from'../../lifecycle/cleanup.js';export function cleanupCommand(){function _0x5bda32(_0x3a065b,_0x268c23){return _0x2436(_0x3a065b-0x256,_0x268c23);}function _0x22a513(_0x53992e,_0x59a467){return _0x2436(_0x53992e- -0x36f,_0x59a467);}return new Command('cleanup')[_0x5bda32(0x2d9,0x2d3)+'n']('Cleanup\x20ol'+'d\x20and\x20low-'+'quality\x20me'+_0x5bda32(0x2e6,0x2d6))['option'](_0x5bda32(0x325,0x2f6),_0x5bda32(0x2d7,0x2da)+_0x5bda32(0x2e7,0x2e9)+_0x22a513(-0x2a1,-0x2b1)+'hout\x20actua'+_0x22a513(-0x2ae,-0x28c)+'ng')['option'](_0x22a513(-0x2ca,-0x2ba),_0x5bda32(0x2fc,0x2be)+_0x5bda32(0x353,0x391)+_0x22a513(-0x2e1,-0x2bb))['option']('--dedup',_0x5bda32(0x31e,0x2ef)+_0x5bda32(0x2f5,0x2c2)+_0x5bda32(0x2d3,0x2d1)+_0x5bda32(0x34f,0x390)+_0x5bda32(0x342,0x309)+_0x22a513(-0x2aa,-0x293)+_0x22a513(-0x2a6,-0x2bd))[_0x22a513(-0x28b,-0x24a)](_0x57be86=>{function _0x33677e(_0x42ee2c,_0x3ce084){return _0x5bda32(_0x42ee2c- -0x628,_0x3ce084);}function _0x4edbbb(_0x537d4d,_0x3909cf){return _0x5bda32(_0x3909cf- -0x30e,_0x537d4d);}if(_0x33677e(-0x30e,-0x2fe)!==_0x4edbbb(0x1b,0xc))_0xfe2c2b[_0x4edbbb(-0x14,0x1c)](_0x5c6b90['yellow'](_0x33677e(-0x2dc,-0x2f1)+_0x4edbbb(0x60,0x33)+_0x33677e(-0x31d,-0x350)+'w-quality\x20'+_0x33677e(-0x2f9,-0x325))),_0x118293[_0x33677e(-0x2fe,-0x2de)](_0x549441[_0x33677e(-0x2e2,-0x2e4)](_0x4edbbb(0x33,0x24)+_0x33677e(-0x350,-0x38d)+_0x4edbbb(-0x30,-0x1d)+'force\x20to\x20s'+_0x4edbbb(0x12,-0x2b)+_0x33677e(-0x2df,-0x2d8)));else{const _0x27607b=new ConfigManager(),_0x23b6d1=_0x27607b[_0x4edbbb(-0x15,-0xa)](),_0xf75b8b=new MemoryDatabase(_0x23b6d1['db']['path']);try{_0xf75b8b[_0x4edbbb(-0x45,-0x15)]();const _0x45cb9e=_0x23b6d1['lifecycle']??{'ttlDays':0x5a,'maxMemories':0x3e8,'cleanupOnSessionEnd':![],'qualityThreshold':0.3};if(_0x57be86[_0x33677e(-0x307,-0x2d9)]){if(_0x57be86[_0x4edbbb(-0x42,-0x32)]){const _0x3b2d58=dedupExactDuplicates(_0xf75b8b,{'dryRun':!![],'protectUnsynced':isSyncActive(_0x23b6d1)});console['log'](_0xd34b6[_0x4edbbb(-0x57,-0x22)](_0x33677e(-0x2de,-0x2d4)+_0x4edbbb(0x30,0x3a))),console['log'](_0xd34b6[_0x4edbbb(0x8,0x38)]('\x20\x20Duplicat'+_0x33677e(-0x353,-0x34a)+_0x3b2d58[_0x33677e(-0x330,-0x324)])),console[_0x4edbbb(0x3d,0x1c)](_0xd34b6[_0x33677e(-0x2e2,-0x2d5)](_0x33677e(-0x302,-0x31b)+_0x33677e(-0x33a,-0x36b)+_0x3b2d58[_0x33677e(-0x352,-0x380)][_0x33677e(-0x34b,-0x37f)]));return;}const _0x469c73=_0x5e0daa(_0x4edbbb(-0x57,-0x33)+_0x4edbbb(-0x20,-0x9)+'content\x20me'+'mories...')[_0x4edbbb(-0x43,-0x8)](),_0x398cf0=dedupExactDuplicates(_0xf75b8b,{'protectUnsynced':isSyncActive(_0x23b6d1)});_0x469c73['succeed'](_0xd34b6['green'](_0x33677e(-0x318,-0x2ec)+_0x4edbbb(0x27,0x3f))),console[_0x33677e(-0x2fe,-0x2d4)](_0xd34b6[_0x4edbbb(0x18,-0x1a)](_0x33677e(-0x326,-0x2f2)+_0x4edbbb(-0x50,-0x39)+_0x398cf0[_0x4edbbb(-0x35,-0x16)])),console[_0x4edbbb(0x50,0x1c)](_0xd34b6[_0x4edbbb(-0x2f,-0x1a)]('\x20\x20Deleted:'+'\x20'+_0x398cf0[_0x4edbbb(0x3e,0x30)]));return;}if(_0x57be86[_0x4edbbb(-0x1e,-0x32)]){console['log'](_0xd34b6[_0x4edbbb(0xa,-0x22)](_0x4edbbb(-0x2e,0x3)+_0x33677e(-0x2e8,-0x2c8)+_0x4edbbb(-0x2d,-0x18)+_0x33677e(-0x343,-0x307)));const _0x33abf9=isSyncActive(_0x23b6d1)?_0xf75b8b[_0x4edbbb(0x2,0x27)+_0x4edbbb(0x46,0x3d)]():new Set(),_0x9c7cc6=selectExpiredTargets(_0xf75b8b,_0x45cb9e,_0x33abf9),_0x5cbb9b=new Set(_0x9c7cc6[_0x4edbbb(0x14,-0x2e)](_0x3d97ee=>_0x3d97ee['id'])),_0x470659=_0xf75b8b['listMemori'+'es']({'limit':_0xf75b8b['getMemoryC'+_0x4edbbb(0x9,-0x24)]()}),_0x78158a=new Set(_0x470659['filter'](_0x24e547=>!_0x24e547[_0x4edbbb(-0x6,0x2a)])[_0x4edbbb(0x10,-0x2e)](_0x3f69f4=>_0x3f69f4['id'])),_0x15dc78=_0x9c7cc6[_0x33677e(-0x2e4,-0x2f6)](_0x22ed30=>_0x78158a[_0x4edbbb(-0x4,0x1a)](_0x22ed30['id']))[_0x33677e(-0x34b,-0x327)],_0x468d35=_0xf75b8b[_0x33677e(-0x331,-0x34d)+_0x33677e(-0x31f,-0x2ea)]()-_0x15dc78,_0x41f7e6=computeThrottleCap(_0x468d35);let _0x439c33=_0x41f7e6;const _0x2d926e=_0x470659[_0x4edbbb(0x1c,0x36)](_0xeef440=>!_0x5cbb9b['has'](_0xeef440['id']));let _0x5ca8a3=[],_0x32aed5=[];if(_0x468d35>_0x45cb9e[_0x4edbbb(0x6f,0x2f)+'s']){const _0x1b91c5=selectDeletionTargets({'candidates':_0x2d926e,'config':_0x45cb9e,'protectedIds':_0x33abf9,'excess':_0x468d35-_0x45cb9e[_0x33677e(-0x2eb,-0x2f3)+'s'],'budget':_0x439c33,'qualityThreshold':_0x45cb9e[_0x33677e(-0x314,-0x335)+_0x33677e(-0x328,-0x362)]});_0x5ca8a3=_0x1b91c5[_0x4edbbb(0x61,0x37)]['map'](_0xfaccb3=>_0xfaccb3['id']),_0x439c33-=_0x5ca8a3[_0x33677e(-0x34b,-0x32d)];const _0x22d3b0=_0x468d35-_0x5ca8a3['length'];if(_0x22d3b0>_0x45cb9e[_0x4edbbb(0xf,0x2f)+'s']&&_0x439c33>0x0){const _0x24e93c=new Set(_0x5ca8a3),_0x1cf736=selectDeletionTargets({'candidates':_0x2d926e['filter'](_0x5db92f=>!_0x24e93c[_0x33677e(-0x300,-0x2d4)](_0x5db92f['id'])),'config':_0x45cb9e,'protectedIds':_0x33abf9,'excess':_0x22d3b0-_0x45cb9e[_0x33677e(-0x2eb,-0x32b)+'s'],'budget':_0x439c33});_0x32aed5=_0x1cf736[_0x33677e(-0x2e3,-0x302)][_0x4edbbb(0x13,-0x2e)](_0x13fce6=>_0x13fce6['id']),_0x439c33-=_0x32aed5[_0x4edbbb(-0x51,-0x31)];}}const _0x10a783=_0x9c7cc6[_0x33677e(-0x2e4,-0x30e)](_0x1f5104=>_0x78158a[_0x33677e(-0x300,-0x2e4)](_0x1f5104['id']))[_0x4edbbb(-0x44,-0x31)],_0x30d946=_0x468d35-_0x5ca8a3[_0x4edbbb(-0x3a,-0x31)]-_0x32aed5[_0x33677e(-0x34b,-0x337)],_0x4cfa91=_0x9c7cc6[_0x33677e(-0x34b,-0x35a)]+_0x5ca8a3[_0x33677e(-0x34b,-0x376)]+_0x32aed5['length'];console[_0x4edbbb(0x1a,0x1c)](_0xd34b6[_0x33677e(-0x334,-0x36c)]('\x20\x20활성\x20paren'+'t\x20'+_0xf75b8b[_0x4edbbb(-0x1f,-0x17)+'arentCount']()+'\x20→\x20'+_0x30d946+'\x20(상한\x20'+_0x45cb9e['maxMemorie'+'s']+')')),console[_0x33677e(-0x2fe,-0x30c)](_0xd34b6[_0x4edbbb(0x48,0x38)]('TTL\x20expire'+'d\x20(>'+_0x45cb9e[_0x33677e(-0x2fd,-0x328)]+_0x33677e(-0x320,-0x341)+_0x9c7cc6[_0x4edbbb(-0x3d,-0x31)]+(_0x9c7cc6['length']!==_0x10a783?_0xd34b6[_0x4edbbb(-0x25,-0x1a)](_0x33677e(-0x34e,-0x33e)+'t\x20'+_0x10a783+')'):''))),console[_0x33677e(-0x2fe,-0x2c3)](_0xd34b6[_0x33677e(-0x2e2,-0x2f4)](_0x33677e(-0x339,-0x31e)+_0x33677e(-0x2e5,-0x319)+_0x45cb9e['qualityThr'+_0x33677e(-0x328,-0x329)]+_0x33677e(-0x306,-0x322)+_0x5ca8a3[_0x33677e(-0x34b,-0x33c)])),console[_0x33677e(-0x2fe,-0x2c5)](_0xd34b6[_0x33677e(-0x2e2,-0x2f7)](_0x33677e(-0x30c,-0x346)+'\x20초과):\x20'+_0x32aed5[_0x4edbbb(0x7,-0x31)])),console[_0x33677e(-0x2fe,-0x331)](_0xd34b6[_0x33677e(-0x2e2,-0x2d0)]('Total\x20to\x20d'+'elete:\x20'+_0x4cfa91));_0x30d946>_0x45cb9e['maxMemorie'+'s']&&console['log'](_0xd34b6[_0x4edbbb(0x0,0x38)](_0x33677e(-0x2e1,-0x302)+_0x41f7e6+(_0x4edbbb(0x4,-0x2d)+_0x33677e(-0x31c,-0x306))+(_0x30d946-_0x45cb9e[_0x33677e(-0x2eb,-0x305)+'s'])+(_0x33677e(-0x34a,-0x342)+_0x4edbbb(0xe,0x44))));console[_0x33677e(-0x2fe,-0x2ef)](_0xd34b6['dim']('\x20\x20(parent\x20'+_0x33677e(-0x301,-0x2e8)+_0x4edbbb(0x4d,0x29)+_0x33677e(-0x2da,-0x2e1)+_0x4edbbb(0x29,-0x7)+_0x33677e(-0x2d3,-0x2cf)));_0x4cfa91===0x0&&console[_0x4edbbb(-0xa,0x1c)](_0xd34b6[_0x33677e(-0x2d8,-0x317)](_0x33677e(-0x31b,-0x316)+_0x4edbbb(0x1a,-0x1c)+_0x4edbbb(0x7,-0x11)));return;}if(!_0x57be86[_0x33677e(-0x354,-0x355)]){if(_0x33677e(-0x2ff,-0x2c4)!==_0x4edbbb(0x1f,0x1e))console['log'](_0xd34b6[_0x33677e(-0x2e2,-0x2ae)]('⚠️\x20\x20This\x20wi'+'ll\x20delete\x20'+'old\x20and\x20lo'+_0x33677e(-0x2ec,-0x328)+'memories.')),console[_0x4edbbb(0x29,0x1c)](_0xd34b6[_0x4edbbb(0x48,0x38)](_0x4edbbb(0x2f,0x24)+_0x4edbbb(-0x44,-0x36)+_0x4edbbb(-0x5f,-0x1d)+_0x4edbbb(-0x43,-0xb)+_0x4edbbb(-0xd,-0x2b)+_0x33677e(-0x2df,-0x31a)));else{if(_0x4b25f8[_0x33677e(-0x34c,-0x337)]){const _0x4302df=_0x3900d6(_0x2810d9,{'dryRun':!![],'protectUnsynced':_0xa46c67(_0x33388a)});_0x275eb0[_0x4edbbb(0x46,0x1c)](_0x4b00c4['cyan']('🔍\x20Dedup\x20dr'+'y-run:')),_0x54c9b3[_0x4edbbb(0x34,0x1c)](_0x55092f[_0x4edbbb(0x3e,0x38)]('\x20\x20Duplicat'+_0x33677e(-0x353,-0x37d)+_0x4302df['groups'])),_0x52cbb4[_0x33677e(-0x2fe,-0x2d7)](_0x492bdd[_0x33677e(-0x2e2,-0x2e6)](_0x4edbbb(0x3d,0x18)+_0x4edbbb(-0x9,-0x20)+_0x4302df[_0x33677e(-0x352,-0x357)][_0x33677e(-0x34b,-0x36e)]));return;}const _0x3552e6=_0x5b01b2(_0x4edbbb(-0x35,-0x33)+_0x33677e(-0x323,-0x316)+_0x33677e(-0x2ef,-0x2d3)+_0x33677e(-0x2fa,-0x2d1))[_0x33677e(-0x322,-0x2fd)](),_0x58e2ab=_0x1ffe33(_0x12abdb,{'protectUnsynced':_0x383e83(_0x1172a5)});_0x3552e6[_0x4edbbb(-0xa,-0x1b)](_0x56b26b['green']('✓\x20Dedup\x20co'+_0x4edbbb(0x54,0x3f))),_0x891050[_0x33677e(-0x2fe,-0x310)](_0x442c8c['dim'](_0x33677e(-0x326,-0x368)+_0x4edbbb(-0x10,-0x39)+_0x58e2ab['groups'])),_0x5cb7fd[_0x33677e(-0x2fe,-0x313)](_0x1f7149[_0x4edbbb(-0x11,-0x1a)](_0x4edbbb(-0x33,0xb)+'\x20'+_0x58e2ab['deleted']));return;}}const _0x4a3a0e=_0x5e0daa(_0x33677e(-0x2ed,-0x300)+_0x4edbbb(-0x52,-0x23)+_0x33677e(-0x32a,-0x2f5))[_0x33677e(-0x322,-0x30b)](),_0x29923b=cleanupMemories(_0xf75b8b,_0x45cb9e,undefined,{'protectUnsynced':isSyncActive(_0x23b6d1)});_0x4a3a0e[_0x33677e(-0x335,-0x369)](_0xd34b6[_0x33677e(-0x2d8,-0x2f1)](_0x4edbbb(0x16,0x26)+_0x4edbbb(-0x16,0x8))),console[_0x33677e(-0x2fe,-0x2ef)](_0xd34b6[_0x4edbbb(0x27,-0x1a)](_0x4edbbb(0x9,0xf)+_0x4edbbb(0x19,0x5)+_0x29923b['expired'])),console[_0x33677e(-0x2fe,-0x2d4)](_0xd34b6[_0x4edbbb(-0x27,-0x1a)](_0x4edbbb(0x1b,0x22)+_0x4edbbb(0x2e,0x49)+_0x29923b[_0x4edbbb(0x7,-0x25)])),console[_0x33677e(-0x2fe,-0x2bc)](_0xd34b6[_0x4edbbb(0x15,-0x1a)](_0x4edbbb(0x5,-0x26)+_0x33677e(-0x2d4,-0x2d7)+_0x29923b[_0x4edbbb(-0x34,0xa)]+(_0x4edbbb(-0x2b,0x15)+_0x4edbbb(0x43,0x0)+_0x4edbbb(0x34,0x28)+_0x33677e(-0x2f7,-0x313)+'준)')));}catch(_0x2f9679){'Caanx'!==_0x33677e(-0x349,-0x38a)?(console['error'](_0xd34b6[_0x4edbbb(0x56,0x48)]('Error\x20duri'+'ng\x20cleanup'+':'),_0x2f9679),process['exit'](0x1)):(_0x2f66f3[_0x33677e(-0x327,-0x338)](_0x51d111[_0x33677e(-0x2d2,-0x2ea)](_0x33677e(-0x2f5,-0x305)+_0x4edbbb(-0x39,-0xf)+':'),_0x2c6a13),_0x318bf1['exit'](0x1));}finally{_0xf75b8b[_0x4edbbb(-0x13,-0x3c)]();}}});}
1
+ (function(_0x593438,_0x3bbb44){function _0x474688(_0x24b386,_0x79d16a){return _0x5090(_0x79d16a-0x306,_0x24b386);}function _0x28931b(_0x4dff46,_0x579312){return _0x5090(_0x4dff46- -0x1f9,_0x579312);}const _0x2f556d=_0x593438();while(!![]){try{const _0x445815=-parseInt(_0x28931b(-0x108,-0x100))/0x1*(parseInt(_0x474688(0x419,0x44d))/0x2)+parseInt(_0x28931b(-0xf6,-0x112))/0x3+-parseInt(_0x474688(0x44a,0x423))/0x4*(parseInt(_0x28931b(-0xe6,-0xba))/0x5)+parseInt(_0x474688(0x405,0x441))/0x6+-parseInt(_0x28931b(-0xe2,-0xf3))/0x7+parseInt(_0x474688(0x410,0x43f))/0x8*(-parseInt(_0x474688(0x43b,0x468))/0x9)+-parseInt(_0x28931b(-0xf8,-0x106))/0xa*(-parseInt(_0x474688(0x438,0x429))/0xb);if(_0x445815===_0x3bbb44)break;else _0x2f556d['push'](_0x2f556d['shift']());}catch(_0x11ea7c){_0x2f556d['push'](_0x2f556d['shift']());}}}(_0x4106,0x7552e));import{Command}from'commander';function _0x5090(_0x29eeca,_0x2fc107){_0x29eeca=_0x29eeca-0xe9;const _0x4106d6=_0x4106();let _0x5090f2=_0x4106d6[_0x29eeca];if(_0x5090['cTUySm']===undefined){var _0x5150b9=function(_0x384be9){const _0x7fad5c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x304392='',_0x4433da='';for(let _0x391f4e=0x0,_0x134fc9,_0x2d2490,_0x2f86eb=0x0;_0x2d2490=_0x384be9['charAt'](_0x2f86eb++);~_0x2d2490&&(_0x134fc9=_0x391f4e%0x4?_0x134fc9*0x40+_0x2d2490:_0x2d2490,_0x391f4e++%0x4)?_0x304392+=String['fromCharCode'](0xff&_0x134fc9>>(-0x2*_0x391f4e&0x6)):0x0){_0x2d2490=_0x7fad5c['indexOf'](_0x2d2490);}for(let _0x5a8b75=0x0,_0x524a10=_0x304392['length'];_0x5a8b75<_0x524a10;_0x5a8b75++){_0x4433da+='%'+('00'+_0x304392['charCodeAt'](_0x5a8b75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4433da);};_0x5090['kSbnRG']=_0x5150b9,_0x5090['xGbYUD']={},_0x5090['cTUySm']=!![];}const _0x134461=_0x4106d6[0x0],_0x391733=_0x29eeca+_0x134461,_0x1f6cc9=_0x5090['xGbYUD'][_0x391733];return!_0x1f6cc9?(_0x5090f2=_0x5090['kSbnRG'](_0x5090f2),_0x5090['xGbYUD'][_0x391733]=_0x5090f2):_0x5090f2=_0x1f6cc9,_0x5090f2;}import _0x4c6061 from'chalk';import _0x1a5c59 from'ora';import{ConfigManager}from'../../config/manager.js';import{MemoryDatabase}from'../../db/database.js';import{cleanupMemories,computeThrottleCap,dedupExactDuplicates,isSyncActive,selectDeletionTargets,selectExpiredTargets}from'../../lifecycle/cleanup.js';function _0x4106(){const _0x3af507=['z2v0twvTB3j5qW','CxvHBgL0EsbTzq','mJaXndKWwM1mC2jM','6Rg07j2eioUlPcdSJBZSIRxRI4JRI6qG','mtmYoty1mvHkALzQrq','ywn0Aw9U','z3jVDxbZ','y29UDgvUDcbTzq','rM9Yy2vKicJSG4hTLzW','rgvKDxbSAwnHDa','Bw9YAwvZ','zsbNCM91Chm6ia','C3rHCNq','zxnOB2XK','uhHYuhO','zxjYB3i','64QuioUnLcdRP47SIRxRI4JRI6qP','ufb6AfO','B2XKigfUzcbSBW','B21WDa','nda2nJbosM5jEw4','4OcuioYELoYxRca','kfrutcK6ia','cUkCKYboBYbTzw1V','ntq5mJaXogThAgP6sW','igr1CgXPy2f0zq','zgLT','u2TPCcbJB25MAq','66Y47isC64QuignOAwXKCG','y2XVC2u','mti0uLPcs2Ti','zxHPDa','Bg9Hza','ls1Kzwr1Ca','z2v0qwn0AxzLua','y29TCgXLDgu','ody5qwHyt0T5','CMfPz0y','zw7QUyZSP4aG7zwO6RUyioYcREYGNa','uMvTB3zLigv4yq','A2LWihrOAxmGBq','6RIW7ksalIbJAhvUAYa','zxnZywDLlGO','zM9Yy2uGDg8GCW','6Rg07j2aioUlPoYDJcdSI6tTLONSL5dSHjW','zwfUihvW','8j+uJsbeCNKTCNvUia','AxPSsM4','zxHYz3C','CNvUihrVihbYzq','BgLMzwn5y2XL','Ag91DcbHy3r1yq','qMfMEg8','B3b0Aw9U','BwvTB3jPzxmU','Cgf0Aa','CMLLCYb0BYbJBa','Dg90ywW','oeHnwhreva','Bw9YAwvZlI4U','mtmWmteXmKvWzxn0qG','icJSG4hTLzWG','Bwf4twvTB3jPzq','DMLLDYbVCIaTlq','q2XLyw5PBMCGDq','Bg9N','z3jLzw4','AgfZ','rxjYB3iGzhvYAq','zgvKDxa','BgvUz3rO','icJTMzZSHleGCgfYzw4','odyXnff2wMn1sa','CMvK','B1fmvMi','tg93ihf1ywXPDa','qxjTAgi','zhj5uNvU','4PQG77Ipio2AJoYWQcdSMiJSGRaG','Axr5oIa','BgLZDe1LBw9YAq','4PQG77IpicbuAgLZihDP','Bgv0ztOG','ktOG','8j+uJsbezwr1CcbKCG','icbfEhbPCMvKia','AgLSzhjLBIdTJ6ZTLAG','ExPPBMCGBwvTBW','icbxB3vSzcbKzq','Es1YDw46','yxjLBNrdB3vUDa','DgvJDgvKswrZ','io2AJoYiMoUqQEUlIoUlPc4','vxnLic0Tzhj5lq','zgvZy3jPChrPBW','kgTLzxbZigjLCW','DcbJB3b5ihbLCG','C3vJy2vLza','zM9Yy2u','mJm4nJm3n1rPt1jHzW','q2XLyw51CcbVBa','y3LHBG','CgfYzw50swq','igDYB3vWkq','igrHExmPoIa','u2HVDYb3Agf0ia','Aw5Nigv4ywn0lq','EwvSBg93','icdTMzZSHleGCgfYzw4','icbeDxbSAwnHDa','zcaOpG','CcbTzw1VCMLLCW','65cy66+a66gCioYlPoYGNcdTLOKG7iIy','BxbSzxrL','ls1MB3jJzq','DgzrEvm','BwfW','y3qTy29UDgvUDa','iokgKIa','zwXLDgu6ia','mta5q0fUELzd','DhrSrgf5CW','CxvHBgL0EvrOCG','vfrmigv4CgLYzq','zMLSDgvY','EsaOpa','zwXLDgvKihDPDa','ioY0IoQZVcK6ia','BMCGy2XLyw51Ca','icbuB3rHBcbKzq','ig1LBw9YAwvZia','iokaLcbKCNKTCNvU','CgLJA2vK','CM1HDgLVBIbWCG'];_0x4106=function(){return _0x3af507;};return _0x4106();}export function cleanupCommand(){function _0x19c081(_0x3b9af0,_0x1791d9){return _0x5090(_0x3b9af0-0x2ff,_0x1791d9);}function _0x3a8e43(_0x135023,_0x2a6d1d){return _0x5090(_0x135023-0x136,_0x2a6d1d);}return new Command('cleanup')[_0x19c081(0x45c,0x474)+'n'](_0x3a8e43(0x299,0x2b0)+'d\x20and\x20low-'+_0x19c081(0x3ff,0x3e7)+_0x3a8e43(0x23f,0x228))[_0x3a8e43(0x26a,0x22d)]('--dry-run',_0x3a8e43(0x29e,0x272)+'would\x20be\x20d'+_0x3a8e43(0x22d,0x249)+_0x19c081(0x431,0x43e)+'lly\x20deleti'+'ng')[_0x3a8e43(0x26a,0x29a)](_0x19c081(0x3ea,0x3bf),_0x19c081(0x419,0x42b)+_0x19c081(0x3fd,0x435)+_0x19c081(0x411,0x3ea))['option'](_0x19c081(0x41f,0x434),_0x19c081(0x425,0x449)+_0x19c081(0x3ed,0x40b)+_0x3a8e43(0x24e,0x27b)+_0x3a8e43(0x231,0x206)+_0x3a8e43(0x294,0x27d)+_0x3a8e43(0x295,0x2a8)+_0x19c081(0x465,0x436))[_0x3a8e43(0x23a,0x247)](_0x10d7d3=>{function _0xa9c5e5(_0x2890d2,_0x1695aa){return _0x3a8e43(_0x2890d2- -0x154,_0x1695aa);}function _0x3095de(_0x5a9df3,_0x1e8895){return _0x3a8e43(_0x5a9df3- -0x413,_0x1e8895);}if(_0xa9c5e5(0x115,0x137)===_0x3095de(-0x1d0,-0x1c3)){const _0x243714=_0x2983c4({'candidates':_0x5490da,'config':_0x1e3434,'protectedIds':_0xb3578f,'excess':_0xf7b1b-_0x45f9fb[_0xa9c5e5(0x11f,0xfe)+'s'],'budget':_0x437e81,'qualityThreshold':_0x2bf1b5['qualityThr'+_0x3095de(-0x1d1,-0x205)]});_0x1c1be6=_0x243714[_0xa9c5e5(0xdf,0xbf)]['map'](_0x48d7e6=>_0x48d7e6['id']),_0x3c3e84-=_0x4d7d5a[_0xa9c5e5(0x127,0xe9)];const _0x4c5c4a=_0x3115b9-_0x45ecb1['length'];if(_0x4c5c4a>_0x32dfec[_0xa9c5e5(0x11f,0x134)+'s']&&_0x5af36a>0x0){const _0x1f3edf=new _0x1a9b52(_0x55911a),_0x58fdf8=_0x51654c({'candidates':_0x3355e2[_0x3095de(-0x1e8,-0x1e1)](_0x232df3=>!_0x1f3edf[_0xa9c5e5(0x124,0x125)](_0x232df3['id'])),'config':_0x2ad3c0,'protectedIds':_0x45f2c2,'excess':_0x4c5c4a-_0x50403a['maxMemorie'+'s'],'budget':_0x2f6dfa});_0x59b50b=_0x58fdf8[_0xa9c5e5(0xdf,0x11e)][_0x3095de(-0x1f0,-0x200)](_0x555218=>_0x555218['id']),_0x291433-=_0x40427f['length'];}}else{const _0x39c17a=new ConfigManager(),_0x4be444=_0x39c17a[_0x3095de(-0x1be,-0x194)](),_0x4730ed=new MemoryDatabase(_0x4be444['db'][_0xa9c5e5(0x118,0xd5)]);try{_0x4730ed['initialize']();const _0xef2033=_0x4be444[_0x3095de(-0x1ac,-0x1a4)]??{'ttlDays':0x5a,'maxMemories':0x3e8,'cleanupOnSessionEnd':![],'qualityThreshold':0.3};if(_0x10d7d3[_0x3095de(-0x199,-0x164)]){if(_0x10d7d3['dryRun']){const _0x2ad6e5=dedupExactDuplicates(_0x4730ed,{'dryRun':!![],'protectUnsynced':isSyncActive(_0x4be444)});console[_0xa9c5e5(0x122,0x117)](_0x4c6061[_0x3095de(-0x179,-0x1af)](_0x3095de(-0x18a,-0x185)+_0x3095de(-0x185,-0x188))),console[_0xa9c5e5(0x122,0x104)](_0x4c6061[_0x3095de(-0x173,-0x1a3)](_0x3095de(-0x171,-0x187)+'e\x20groups:\x20'+_0x2ad6e5[_0xa9c5e5(0xe7,0xe8)])),console[_0x3095de(-0x19d,-0x15e)](_0x4c6061[_0x3095de(-0x173,-0x14d)](_0x3095de(-0x186,-0x182)+_0xa9c5e5(0x133,0x121)+_0x2ad6e5['candidates'][_0xa9c5e5(0x127,0xfb)]));return;}const _0x348aff=_0x1a5c59(_0xa9c5e5(0xea,0xb3)+_0xa9c5e5(0x14b,0x129)+_0xa9c5e5(0xe8,0xaf)+_0x3095de(-0x1a3,-0x1c1))[_0x3095de(-0x1d2,-0x205)](),_0x761362=dedupExactDuplicates(_0x4730ed,{'protectUnsynced':isSyncActive(_0x4be444)});_0x348aff[_0xa9c5e5(0x142,0x182)](_0x4c6061[_0x3095de(-0x19c,-0x192)]('✓\x20Dedup\x20co'+_0xa9c5e5(0xcc,0xe1))),console[_0xa9c5e5(0x122,0xff)](_0x4c6061[_0xa9c5e5(0xfb,0xba)](_0x3095de(-0x171,-0x170)+'e\x20groups:\x20'+_0x761362[_0xa9c5e5(0xe7,0xfa)])),console[_0xa9c5e5(0x122,0xe1)](_0x4c6061[_0xa9c5e5(0xfb,0x111)]('\x20\x20Deleted:'+'\x20'+_0x761362['deleted']));return;}if(_0x10d7d3[_0x3095de(-0x191,-0x198)]){console[_0xa9c5e5(0x122,0x125)](_0x4c6061['cyan'](_0xa9c5e5(0x10f,0xf4)+'mode:\x20anal'+_0x3095de(-0x187,-0x14f)+'ries...\x0a'));const _0x203b5e=isSyncActive(_0x4be444)?_0x4730ed['getSyncPro'+_0x3095de(-0x183,-0x18f)]():new Set(),_0x2de70f=selectExpiredTargets(_0x4730ed,_0xef2033,_0x203b5e),_0x41bb44=new Set(_0x2de70f[_0x3095de(-0x1f0,-0x1f3)](_0x8839d2=>_0x8839d2['id'])),_0xde45a=_0x4730ed[_0x3095de(-0x18e,-0x19f)+'es']({'limit':_0x4730ed[_0xa9c5e5(0xe1,0x119)+'ount']()}),_0x4a82e8=new Set(_0xde45a[_0x3095de(-0x1e8,-0x1a7)](_0x42ff68=>!_0x42ff68[_0xa9c5e5(0x147,0x146)])['map'](_0x20ebd4=>_0x20ebd4['id'])),_0x34baed=_0x2de70f['filter'](_0x4394fb=>_0x4a82e8[_0xa9c5e5(0x124,0xe6)](_0x4394fb['id']))[_0xa9c5e5(0x127,0x12b)],_0x21bc4c=_0x4730ed['getActiveP'+_0x3095de(-0x184,-0x16f)]()-_0x34baed,_0x12b527=computeThrottleCap(_0x21bc4c);let _0x3ba50d=_0x12b527;const _0x58dd17=_0xde45a[_0x3095de(-0x1e8,-0x22b)](_0x2ed54a=>!_0x41bb44[_0xa9c5e5(0x124,0x126)](_0x2ed54a['id']));let _0x26158a=[],_0x2608bb=[];if(_0x21bc4c>_0xef2033[_0xa9c5e5(0x11f,0x107)+'s']){if('ZaxEj'===_0xa9c5e5(0x12d,0x16d))_0x1a42bf[_0x3095de(-0x19d,-0x170)](_0x562324[_0x3095de(-0x19c,-0x15e)](_0xa9c5e5(0xf8,0xbe)+_0xa9c5e5(0x119,0x113)+'ean\x20up'));else{const _0x4124f0=selectDeletionTargets({'candidates':_0x58dd17,'config':_0xef2033,'protectedIds':_0x203b5e,'excess':_0x21bc4c-_0xef2033['maxMemorie'+'s'],'budget':_0x3ba50d,'qualityThreshold':_0xef2033['qualityThr'+_0x3095de(-0x1d1,-0x1fc)]});_0x26158a=_0x4124f0['picked'][_0x3095de(-0x1f0,-0x1ae)](_0x4ccbb7=>_0x4ccbb7['id']),_0x3ba50d-=_0x26158a[_0x3095de(-0x198,-0x1c2)];const _0xee9080=_0x21bc4c-_0x26158a[_0x3095de(-0x198,-0x1ac)];if(_0xee9080>_0xef2033[_0x3095de(-0x1a0,-0x16e)+'s']&&_0x3ba50d>0x0){const _0x4e7639=new Set(_0x26158a),_0x3fcc89=selectDeletionTargets({'candidates':_0x58dd17['filter'](_0x2b8119=>!_0x4e7639[_0x3095de(-0x19b,-0x181)](_0x2b8119['id'])),'config':_0xef2033,'protectedIds':_0x203b5e,'excess':_0xee9080-_0xef2033['maxMemorie'+'s'],'budget':_0x3ba50d});_0x2608bb=_0x3fcc89[_0xa9c5e5(0xdf,0xf9)]['map'](_0xeef823=>_0xeef823['id']),_0x3ba50d-=_0x2608bb[_0xa9c5e5(0x127,0x161)];}}}const _0x1bbcd4=_0x2de70f[_0x3095de(-0x1e8,-0x222)](_0x477cd3=>_0x4a82e8[_0xa9c5e5(0x124,0x10c)](_0x477cd3['id']))[_0xa9c5e5(0x127,0x140)],_0x429e4d=_0x21bc4c-_0x26158a['length']-_0x2608bb[_0xa9c5e5(0x127,0x15c)],_0x26c525=_0x2de70f[_0x3095de(-0x198,-0x194)]+_0x26158a[_0x3095de(-0x198,-0x176)]+_0x2608bb[_0xa9c5e5(0x127,0xf0)];console[_0xa9c5e5(0x122,0x137)](_0x4c6061[_0x3095de(-0x1c4,-0x1d0)](_0xa9c5e5(0x14d,0x11b)+'t\x20'+_0x4730ed[_0xa9c5e5(0x103,0x115)+_0xa9c5e5(0x13b,0x109)]()+_0x3095de(-0x1ee,-0x225)+_0x429e4d+_0xa9c5e5(0x11e,0x14f)+_0xef2033['maxMemorie'+'s']+')')),console[_0x3095de(-0x19d,-0x190)](_0x4c6061[_0x3095de(-0x173,-0x15c)](_0xa9c5e5(0xd6,0xc9)+_0x3095de(-0x170,-0x1b2)+_0xef2033[_0xa9c5e5(0xd4,0xb7)]+_0xa9c5e5(0x149,0x132)+_0x2de70f['length']+(_0x2de70f[_0x3095de(-0x198,-0x193)]!==_0x1bbcd4?_0x4c6061[_0xa9c5e5(0xfb,0x136)](_0x3095de(-0x197,-0x1af)+'t\x20'+_0x1bbcd4+')'):''))),console['log'](_0x4c6061[_0x3095de(-0x173,-0x15d)](_0x3095de(-0x193,-0x198)+_0x3095de(-0x1e7,-0x1c6)+_0xef2033[_0x3095de(-0x1ea,-0x20f)+'eshold']+_0x3095de(-0x18b,-0x18a)+_0x26158a[_0xa9c5e5(0x127,0x134)])),console['log'](_0x4c6061[_0x3095de(-0x173,-0x17d)](_0xa9c5e5(0xe9,0xb8)+_0xa9c5e5(0xda,0x9f)+_0x2608bb[_0x3095de(-0x198,-0x1b1)])),console['log'](_0x4c6061[_0xa9c5e5(0x14c,0x14f)]('Total\x20to\x20d'+_0xa9c5e5(0xd2,0xd9)+_0x26c525));_0x429e4d>_0xef2033[_0xa9c5e5(0x11f,0x140)+'s']&&console['log'](_0x4c6061[_0x3095de(-0x173,-0x1ab)](_0x3095de(-0x190,-0x16f)+_0x12b527+(_0x3095de(-0x1db,-0x1b1)+_0x3095de(-0x1c9,-0x19d))+(_0x429e4d-_0xef2033[_0x3095de(-0x1a0,-0x184)+'s'])+(_0x3095de(-0x1b2,-0x1eb)+'\x20회수됩니다.')));console[_0xa9c5e5(0x122,0x150)](_0x4c6061[_0xa9c5e5(0xfb,0x113)]('\x20\x20(parent\x20'+_0x3095de(-0x1b5,-0x1a7)+_0x3095de(-0x1c2,-0x190)+_0x3095de(-0x1b8,-0x1e1)+_0x3095de(-0x1f4,-0x1ed)+_0xa9c5e5(0xf1,0xbf)));_0x26c525===0x0&&(_0xa9c5e5(0x110,0x118)!==_0xa9c5e5(0xf2,0xdb)?console['log'](_0x4c6061[_0x3095de(-0x19c,-0x1d2)](_0xa9c5e5(0xf8,0x10a)+_0x3095de(-0x1a6,-0x179)+_0xa9c5e5(0x10e,0xfa))):_0x24a238[_0x3095de(-0x19d,-0x197)](_0x92cb7e[_0x3095de(-0x173,-0x13c)](_0xa9c5e5(0x12f,0xec)+_0x3276ea+(_0xa9c5e5(0xe4,0x120)+_0x3095de(-0x1c9,-0x1f2))+(_0x15fcc1-_0x23762f[_0xa9c5e5(0x11f,0x131)+'s'])+(_0x3095de(-0x1b2,-0x171)+_0xa9c5e5(0x13d,0x170)))));return;}!_0x10d7d3[_0xa9c5e5(0x143,0x104)]&&(_0xa9c5e5(0xce,0xf3)!=='qvAFL'?(console[_0xa9c5e5(0x122,0x135)](_0x4c6061[_0x3095de(-0x173,-0x1a3)](_0x3095de(-0x18d,-0x179)+'ll\x20delete\x20'+_0x3095de(-0x1cc,-0x1b1)+'w-quality\x20'+_0x3095de(-0x1a8,-0x1c0))),console[_0xa9c5e5(0x122,0x13c)](_0x4c6061[_0x3095de(-0x173,-0x137)](_0x3095de(-0x181,-0x17b)+_0x3095de(-0x1ad,-0x176)+_0xa9c5e5(0x120,0x15c)+_0x3095de(-0x1b3,-0x1d1)+_0x3095de(-0x1b6,-0x17a)+_0x3095de(-0x1b4,-0x17e)))):(_0xc8fba4[_0x3095de(-0x1cf,-0x1dc)](_0x3d3ff0[_0x3095de(-0x195,-0x163)](_0xa9c5e5(0x125,0xe6)+_0xa9c5e5(0xdb,0x115)+':'),_0x357ce5),_0x403433[_0x3095de(-0x1bf,-0x1a4)](0x1)));const _0x4a6161=_0x1a5c59(_0x3095de(-0x19e,-0x1a6)+_0xa9c5e5(0x150,0x13a)+'...')[_0x3095de(-0x1d2,-0x191)](),_0x875783=cleanupMemories(_0x4730ed,_0xef2033,undefined,{'protectUnsynced':isSyncActive(_0x4be444)});_0x4a6161['succeed'](_0x4c6061['green']('✓\x20Cleanup\x20'+_0x3095de(-0x1bb,-0x1de))),console[_0xa9c5e5(0x122,0x12b)](_0x4c6061[_0x3095de(-0x1c4,-0x1bb)](_0xa9c5e5(0x136,0x106)+_0xa9c5e5(0xf7,0xd7)+_0x875783['expired'])),console[_0x3095de(-0x19d,-0x168)](_0x4c6061['dim']('\x20\x20Low\x20qual'+_0xa9c5e5(0x130,0x131)+_0x875783['lowQuality'])),console[_0xa9c5e5(0x122,0x130)](_0x4c6061[_0x3095de(-0x1c4,-0x1b4)](_0x3095de(-0x1e3,-0x1a9)+'leted:\x20'+_0x875783[_0x3095de(-0x1a5,-0x1db)]+('\x20\x20(chunk\x20c'+_0x3095de(-0x188,-0x153)+_0xa9c5e5(0xde,0xe2)+'은\x20parent\x20기'+'준)')));}catch(_0x166e05){_0xa9c5e5(0x111,0x111)==='iUNPA'?_0x3899f6[_0x3095de(-0x1c1,-0x1ba)]():(console[_0xa9c5e5(0xf0,0xc8)](_0x4c6061[_0x3095de(-0x195,-0x193)](_0x3095de(-0x19a,-0x16b)+_0x3095de(-0x1e4,-0x222)+':'),_0x166e05),process[_0xa9c5e5(0x100,0x112)](0x1));}finally{if(_0xa9c5e5(0x12b,0x169)!==_0x3095de(-0x1b9,-0x1ed))_0x4730ed[_0x3095de(-0x1c1,-0x181)]();else{const _0x546271=_0x23c328(_0x22d8f9,{'dryRun':!![],'protectUnsynced':_0x54d327(_0x50144a)});_0x35021d['log'](_0x59e659[_0x3095de(-0x179,-0x184)](_0x3095de(-0x18a,-0x1bd)+_0x3095de(-0x185,-0x182))),_0x16d70['log'](_0x3e1c63['yellow'](_0xa9c5e5(0x14e,0x134)+_0xa9c5e5(0xec,0x112)+_0x546271[_0xa9c5e5(0xe7,0xc3)])),_0x304bcf[_0xa9c5e5(0x122,0x153)](_0x28aa24[_0x3095de(-0x173,-0x167)](_0xa9c5e5(0x139,0x169)+'lete:\x20'+_0x546271['candidates'][_0x3095de(-0x198,-0x18b)]));return;}}}});}
@@ -1 +1 @@
1
- (function(_0x5737ae,_0x2036f8){function _0x3c7c94(_0x29196b,_0x1844e4){return _0x6078(_0x1844e4- -0x3c6,_0x29196b);}function _0x1ddbf2(_0x2a9c0d,_0x5a1a3a){return _0x6078(_0x5a1a3a- -0x14f,_0x2a9c0d);}const _0x1abfec=_0x5737ae();while(!![]){try{const _0xf5bc9c=-parseInt(_0x1ddbf2(0x8b,0xa6))/0x1*(parseInt(_0x3c7c94(-0x198,-0x1b3))/0x2)+-parseInt(_0x1ddbf2(0xb8,0xd5))/0x3*(parseInt(_0x3c7c94(-0x1b1,-0x1a7))/0x4)+parseInt(_0x1ddbf2(0xcb,0xcc))/0x5+parseInt(_0x1ddbf2(0xd8,0xba))/0x6+parseInt(_0x3c7c94(-0x1c1,-0x1b0))/0x7+-parseInt(_0x1ddbf2(0xa0,0xa3))/0x8+parseInt(_0x1ddbf2(0xb3,0xbc))/0x9*(parseInt(_0x3c7c94(-0x1c0,-0x1a5))/0xa);if(_0xf5bc9c===_0x2036f8)break;else _0x1abfec['push'](_0x1abfec['shift']());}catch(_0x23ff3b){_0x1abfec['push'](_0x1abfec['shift']());}}}(_0x4ca2,0xc0def));import{Command}from'commander';import{z}from'zod';function _0x6078(_0x1fc601,_0x2e24ee){_0x1fc601=_0x1fc601-0x1f2;const _0x4ca2f1=_0x4ca2();let _0x607896=_0x4ca2f1[_0x1fc601];if(_0x6078['FbMnGC']===undefined){var _0xe63b3d=function(_0x5d498c){const _0x7f0578='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfbc834='',_0x2adc4e='';for(let _0x4f3f4f=0x0,_0x9f6252,_0x263560,_0x6399dd=0x0;_0x263560=_0x5d498c['charAt'](_0x6399dd++);~_0x263560&&(_0x9f6252=_0x4f3f4f%0x4?_0x9f6252*0x40+_0x263560:_0x263560,_0x4f3f4f++%0x4)?_0xfbc834+=String['fromCharCode'](0xff&_0x9f6252>>(-0x2*_0x4f3f4f&0x6)):0x0){_0x263560=_0x7f0578['indexOf'](_0x263560);}for(let _0x31f71c=0x0,_0x471959=_0xfbc834['length'];_0x31f71c<_0x471959;_0x31f71c++){_0x2adc4e+='%'+('00'+_0xfbc834['charCodeAt'](_0x31f71c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2adc4e);};_0x6078['uYsgaB']=_0xe63b3d,_0x6078['LRItjj']={},_0x6078['FbMnGC']=!![];}const _0x583353=_0x4ca2f1[0x0],_0x586bd7=_0x1fc601+_0x583353,_0x211afb=_0x6078['LRItjj'][_0x586bd7];return!_0x211afb?(_0x607896=_0x6078['uYsgaB'](_0x607896),_0x6078['LRItjj'][_0x586bd7]=_0x607896):_0x607896=_0x211afb,_0x607896;}function _0x4ca2(){const _0x36a98d=['uMvZzxqGDg8Gza','BgvUz3rO','AwCGC2HVDYiGDa','mta5nJyXmJHrzePQsxe','sw52ywXPzcbJBW','phzHBhvLpG','mwDIDM1NwG','zwzHDwX0ignVBG','C2XPy2u','vw5RBM93BIbJBW','q29UzMLNDxjHDa','wM9KrxjYB3i','AxnZDwvZ','CgfYC2u','CvLPs2O','sw52ywXPzcb2yq','AwD1CMf0Aw9Uia','u2v0ia','zwqGDhj1zsK','zgvZy3jPChrPBW','BgfIBguGA2v5CW','twfUywDLignVBG','zw1VCNKGy29UzG','BhvLigzVCIaI','Aw9UihjLC2v0ia','y29TBwfUza','mtyWndK1ogjxzvDpCq','C3rYAw5NAwz5','ouPdseDICG','BgXT','u2HVDYbJDxjYzq','zMLNDxjHDgLVBG','zxjYB3i','Bg9N','C2f2zq','zxHPDa','mte5mJC0mhDoCgH4tW','yM9VBgvHBG','Cgf0Aa','otm3mtG4Be5UsxfH','ywn0Aw9U','BMzPzYbWyxrOoG','B2jQzwn0','tvbKyxq','mJe5otC2menREhj5uW','BNvTyMvY','Bg9Hza','C3bSAxq','ohbfvKLZAG','C2vYDMvY','mZi0otu0odbiquTOBLK','BMzPzYbRzxK6ia','BwvZC2fNzq','mJaWmdyXm29iEfflva','id0G','u2v0igeGy29UzG','C2v0idXRzxK+ia','yxbPs2v5','Dg8GzgvMyxvSDa','AM9PBG','DhvYzs5LBMfIBa','vez1tgi','kIOQ','CMf0Aw9U'];_0x4ca2=function(){return _0x36a98d;};return _0x4ca2();}import{ConfigManager,ConfigSchema}from'../../config/manager.js';function maskSecrets(_0x5adafa){const _0x174581=JSON['parse'](JSON[_0x50fc66(0x275,0x270)](_0x5adafa)),_0x11fede=_0x49af28=>!_0x49af28?_0x49af28:_0x49af28[_0x3b7d19(0x33,0x26)]<=0x8?'***':_0x49af28[_0x3b7d19(-0x24,-0x13)](0x0,0x8)+_0x3b7d19(0x1b,0x23);if(_0x174581[_0x50fc66(0x27d,0x286)]?.[_0x3b7d19(0xb,0x1e)])_0x174581[_0x3b7d19(0x25,0x16)][_0x50fc66(0x292,0x28e)]=_0x11fede(_0x174581[_0x50fc66(0x28c,0x286)]['apiKey']);if(_0x174581[_0x3b7d19(-0x1d,0x2)]?.[_0x3b7d19(0xe,0x1e)])_0x174581[_0x3b7d19(0x1f,0x2)][_0x50fc66(0x28d,0x28e)]=_0x11fede(_0x174581[_0x50fc66(0x286,0x272)][_0x50fc66(0x280,0x28e)]);function _0x3b7d19(_0xb60901,_0x4d47ef){return _0x6078(_0x4d47ef- -0x20a,_0xb60901);}function _0x50fc66(_0x47055d,_0xcd8d8){return _0x6078(_0xcd8d8-0x66,_0x47055d);}return _0x174581;}export function configCommand(){const _0x2e5872=new Command('config')['descriptio'+'n'](_0x1a85d2(-0x150,-0x153)+_0x4ddbc0(0x526,0x51f));_0x2e5872[_0x4ddbc0(0x520,0x520)]('show')[_0x1a85d2(-0x152,-0x157)+'n'](_0x4ddbc0(0x525,0x53e)+'nt\x20configu'+_0x4ddbc0(0x546,0x547))[_0x1a85d2(-0x13d,-0x121)](()=>{const _0x2dd016=new ConfigManager()[_0x2719fb(0x551,0x53f)]();function _0x2719fb(_0x5ccf1f,_0x1b3538){return _0x1a85d2(_0x1b3538-0x676,_0x5ccf1f);}function _0x4402c8(_0x192a76,_0x17bcb3){return _0x1a85d2(_0x192a76-0xeb,_0x17bcb3);}console[_0x2719fb(0x528,0x532)](JSON['stringify'](maskSecrets(_0x2dd016),null,0x2));}),_0x2e5872[_0x4ddbc0(0x520,0x521)](_0x1a85d2(-0x12d,-0x131)+_0x4ddbc0(0x50c,0x4f8))[_0x1a85d2(-0x152,-0x15a)+'n'](_0x1a85d2(-0x12e,-0x121)+_0x4ddbc0(0x517,0x532)+'value\x20(e.g'+'.,\x20autoCap'+_0x4ddbc0(0x543,0x554)+_0x4ddbc0(0x519,0x514))['action']((_0xa68ffc,_0x7b8804)=>{function _0x7e41d3(_0x14a9e6,_0x3117ad){return _0x1a85d2(_0x14a9e6- -0x7f,_0x3117ad);}function _0x1bbabe(_0x49063d,_0x539371){return _0x1a85d2(_0x539371-0x2a1,_0x49063d);}if(_0x7e41d3(-0x1a7,-0x197)!==_0x1bbabe(0x16c,0x179))_0x5cfc0f[_0x7e41d3(-0x1d7,-0x1ec)](_0x4f090c);else{const _0x270b5e=new ConfigManager(),_0x561147=_0x270b5e[_0x1bbabe(0x183,0x16a)](),_0xcf064a=_0xa68ffc[_0x1bbabe(0x173,0x16b)]('.');let _0x2deedd=_0x561147;for(let _0x42f081=0x0;_0x42f081<_0xcf064a[_0x1bbabe(0x188,0x17d)]-0x1;_0x42f081++){(typeof _0x2deedd[_0xcf064a[_0x42f081]]!==_0x1bbabe(0x15f,0x166)||_0x2deedd[_0xcf064a[_0x42f081]]===null)&&(console[_0x7e41d3(-0x1c4,-0x1bf)](_0x1bbabe(0x14e,0x140)+_0x1bbabe(0x152,0x165)+'\x20'+_0xa68ffc),process[_0x7e41d3(-0x1c1,-0x1cc)](0x1)),_0x2deedd=_0x2deedd[_0xcf064a[_0x42f081]];}const _0x4dfb51=_0xcf064a[_0xcf064a[_0x1bbabe(0x174,0x17d)]-0x1],_0x3128da=_0x2deedd[_0x4dfb51];if(_0x3128da===undefined){if(_0x7e41d3(-0x1b9,-0x1a2)!==_0x1bbabe(0x17b,0x167)){if(_0x3c540e instanceof _0x39a5e1[_0x7e41d3(-0x1d9,-0x1e4)]){_0x108d2c[_0x7e41d3(-0x1c4,-0x1e3)](_0x7e41d3(-0x1d5,-0x1ea)+_0x7e41d3(-0x1cd,-0x1df)+_0x46bba3+'\x22:');for(const _0x565d77 of _0x17390d[_0x7e41d3(-0x1d8,-0x1cf)]){_0x239296['error']('\x20\x20'+_0x565d77[_0x7e41d3(-0x1be,-0x1cc)][_0x7e41d3(-0x1a9,-0x1c7)]('.')+':\x20'+_0x565d77[_0x1bbabe(0x182,0x170)]);}_0x47adcc[_0x7e41d3(-0x1c1,-0x1a5)](0x1);}throw _0x459529;}else console['error'](_0x7e41d3(-0x1db,-0x1f0)+_0x1bbabe(0x18f,0x16f)+_0xa68ffc),console[_0x7e41d3(-0x1c4,-0x1c2)]('Use\x20\x22a2a-m'+_0x1bbabe(0x144,0x152)+_0x1bbabe(0x19b,0x17e)+'o\x20see\x20avai'+_0x1bbabe(0x14f,0x150)+'.'),process[_0x1bbabe(0x144,0x15f)](0x1);}if(typeof _0x3128da===_0x1bbabe(0x170,0x161))_0x2deedd[_0x4dfb51]=_0x7b8804==='true';else typeof _0x3128da===_0x7e41d3(-0x1b7,-0x1a3)?_0x2deedd[_0x4dfb51]=Number(_0x7b8804):_0x2deedd[_0x4dfb51]=_0x7b8804;try{_0x1bbabe(0x164,0x14a)!==_0x1bbabe(0x14d,0x14a)?_0x5435e7[_0x1643c5]=_0x1bdd20==='true':ConfigSchema[_0x7e41d3(-0x1d7,-0x1cb)](_0x561147);}catch(_0x472704){if(_0x472704 instanceof z[_0x7e41d3(-0x1d9,-0x1c0)]){console[_0x1bbabe(0x154,0x15c)](_0x1bbabe(0x136,0x14b)+'lue\x20for\x20\x22'+_0xa68ffc+'\x22:');for(const _0x45713f of _0x472704[_0x1bbabe(0x161,0x148)]){'fKjWG'!=='fKjWG'?_0xdb93d9[_0x1bbabe(0x142,0x15c)]('\x20\x20'+_0x45ffea[_0x7e41d3(-0x1be,-0x1d8)]['join']('.')+':\x20'+_0x140481[_0x7e41d3(-0x1b0,-0x1b8)]):console['error']('\x20\x20'+_0x45713f[_0x7e41d3(-0x1be,-0x1d8)]['join']('.')+':\x20'+_0x45713f['message']);}process[_0x7e41d3(-0x1c1,-0x1e1)](0x1);}throw _0x472704;}_0x270b5e[_0x7e41d3(-0x1c2,-0x1d9)](_0x561147),console[_0x1bbabe(0x16e,0x15d)](_0x7e41d3(-0x1d3,-0x1d2)+_0xa68ffc+_0x7e41d3(-0x1ae,-0x196)+_0x2deedd[_0x4dfb51]);}});function _0x4ddbc0(_0x50e88e,_0x4bd44a){return _0x6078(_0x50e88e-0x318,_0x4bd44a);}_0x2e5872[_0x1a85d2(-0x14c,-0x169)]('reset')['descriptio'+'n'](_0x1a85d2(-0x125,-0x110)+_0x1a85d2(-0x15e,-0x141)+'figuration')[_0x4ddbc0(0x52f,0x52f)](()=>{function _0x3cdcca(_0x40b610,_0x103e9d){return _0x4ddbc0(_0x40b610- -0x6d6,_0x103e9d);}function _0x558e4c(_0x17f385,_0x123f62){return _0x4ddbc0(_0x17f385-0x23,_0x123f62);}const _0x2a484a=new ConfigManager();_0x2a484a['reset'](),console[_0x3cdcca(-0x1ae,-0x1a7)](_0x3cdcca(-0x1c5,-0x1ce)+_0x558e4c(0x542,0x54f)+_0x558e4c(0x564,0x571)+'s.');});function _0x1a85d2(_0x2570fe,_0x462d09){return _0x6078(_0x2570fe- -0x354,_0x462d09);}return _0x2e5872;}
1
+ (function(_0xfaa794,_0x2bb229){const _0x561713=_0xfaa794();function _0x2828d6(_0x40d5a0,_0x544d67){return _0xfcf1(_0x544d67-0x3c5,_0x40d5a0);}function _0xf4f2a8(_0x19c462,_0x367f26){return _0xfcf1(_0x19c462- -0x96,_0x367f26);}while(!![]){try{const _0x1098a9=parseInt(_0x2828d6(0x56e,0x56b))/0x1*(parseInt(_0xf4f2a8(0x10e,0xfd))/0x2)+parseInt(_0xf4f2a8(0x11a,0x117))/0x3*(parseInt(_0xf4f2a8(0xe1,0xd6))/0x4)+-parseInt(_0xf4f2a8(0x10d,0x126))/0x5*(parseInt(_0xf4f2a8(0xeb,0xd7))/0x6)+-parseInt(_0xf4f2a8(0xf8,0xeb))/0x7+-parseInt(_0x2828d6(0x51d,0x53b))/0x8*(parseInt(_0x2828d6(0x567,0x54c))/0x9)+parseInt(_0xf4f2a8(0xe9,0x103))/0xa*(parseInt(_0xf4f2a8(0x111,0xf6))/0xb)+parseInt(_0x2828d6(0x553,0x559))/0xc*(parseInt(_0xf4f2a8(0xf9,0xf8))/0xd);if(_0x1098a9===_0x2bb229)break;else _0x561713['push'](_0x561713['shift']());}catch(_0x4eae79){_0x561713['push'](_0x561713['shift']());}}}(_0x5a86,0xa2e8f));import{Command}from'commander';import{z}from'zod';import{ConfigManager,ConfigSchema}from'../../config/manager.js';function maskSecrets(_0x5b640c){const _0x144040=JSON['parse'](JSON[_0x4c11a5(0x232,0x245)](_0x5b640c)),_0x5b8833=_0xb1b74f=>!_0xb1b74f?_0xb1b74f:_0xb1b74f[_0x4c11a5(0x241,0x224)]<=0x8?_0x2b1f95(-0x10,0xe):_0xb1b74f['slice'](0x0,0x8)+_0x4c11a5(0x22e,0x217);function _0x2b1f95(_0x1e3714,_0x52804e){return _0xfcf1(_0x52804e- -0x18d,_0x1e3714);}if(_0x144040[_0x4c11a5(0x21c,0x22a)]?.[_0x2b1f95(-0x5,0x10)])_0x144040[_0x2b1f95(-0x1a,-0x4)][_0x2b1f95(-0x4,0x10)]=_0x5b8833(_0x144040['server'][_0x2b1f95(0x21,0x10)]);function _0x4c11a5(_0x12d1fe,_0x2e227d){return _0xfcf1(_0x12d1fe-0x93,_0x2e227d);}if(_0x144040['llm']?.['apiKey'])_0x144040[_0x4c11a5(0x211,0x1f8)][_0x2b1f95(0xe,0x10)]=_0x5b8833(_0x144040[_0x2b1f95(-0x22,-0xf)][_0x4c11a5(0x230,0x23e)]);return _0x144040;}function _0xfcf1(_0x1fc712,_0x221f3f){_0x1fc712=_0x1fc712-0x176;const _0x5a8654=_0x5a86();let _0xfcf11=_0x5a8654[_0x1fc712];if(_0xfcf1['qQpIdD']===undefined){var _0x55b4fc=function(_0x472b72){const _0x41cbad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49eabd='',_0x302c42='';for(let _0x5b601f=0x0,_0x56a369,_0x398c8f,_0x3c6380=0x0;_0x398c8f=_0x472b72['charAt'](_0x3c6380++);~_0x398c8f&&(_0x56a369=_0x5b601f%0x4?_0x56a369*0x40+_0x398c8f:_0x398c8f,_0x5b601f++%0x4)?_0x49eabd+=String['fromCharCode'](0xff&_0x56a369>>(-0x2*_0x5b601f&0x6)):0x0){_0x398c8f=_0x41cbad['indexOf'](_0x398c8f);}for(let _0x38b19f=0x0,_0x2c2d04=_0x49eabd['length'];_0x38b19f<_0x2c2d04;_0x38b19f++){_0x302c42+='%'+('00'+_0x49eabd['charCodeAt'](_0x38b19f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x302c42);};_0xfcf1['OzmuRo']=_0x55b4fc,_0xfcf1['kDpsop']={},_0xfcf1['qQpIdD']=!![];}const _0x2aba1a=_0x5a8654[0x0],_0x180f5c=_0x1fc712+_0x2aba1a,_0x353fa3=_0xfcf1['kDpsop'][_0x180f5c];return!_0x353fa3?(_0xfcf11=_0xfcf1['OzmuRo'](_0xfcf11),_0xfcf1['kDpsop'][_0x180f5c]=_0xfcf11):_0xfcf11=_0x353fa3,_0xfcf11;}function _0x5a86(){const _0x2dd115=['nteXnufZAMLuAW','C3bSAxq','Bg9N','lIWGyxv0B0nHCa','y29TBwfUza','phzHBhvLpG','zwqGDhj1zsK','BgvUz3rO','q29UzMLNDxjHDa','ntGZmZi5seLSEKjo','sw52ywXPzcbJBW','mtKYmtmZnKffyKvgsq','ofjjrwvesa','zwzHDwX0ignVBG','CgfYC2u','Dhj1zq','BNqGy29UzMLNDq','wM9KrxjYB3i','Cgf0Aa','BgXT','mJy1ndbMBerTyKm','Aw9UihjLC2v0ia','mZa2uxrsDw5j','BNvTyMvY','AxnZDwvZ','CMf0Aw9U','zxHPDa','u2HVDYbJDxjYzq','oufnv21iEq','ywn0Aw9U','C2vYDMvY','sw52ywXPzcb2yq','zMLNDxjHDgLVBG','uMvZzxqGDg8Gza','BMzPzYbWyxrOoG','odqWmJuZnhvdz0vbEq','odmYmZLMvNvOEhO','C0vSuMG','u2v0ia','twfUywDLignVBG','u2v0igeGy29UzG','mJeYngXREfnwzq','zxjYB3i','C2f2zq','BgfIBguGA2v5CW','zw1VCNKGy29UzG','zgvZy3jPChrPBW','B2jQzwn0','kIOQ','Bg9Hza','yxbPs2v5','vxnLicjHmMeTBq','C3rYAw5NAwz5','DxvYA2C','id0G','CMvZzxq','nJuWntvbtKzuvhK','ngLIEgXQCW','ru5wtKK','nZuYmwDIDxL4Ba'];_0x5a86=function(){return _0x2dd115;};return _0x5a86();}export function configCommand(){function _0x4b016c(_0x437937,_0x4d9695){return _0xfcf1(_0x437937-0x138,_0x4d9695);}const _0x53d974=new Command('config')[_0x3cf930(0x2e6,0x2de)+'n'](_0x4b016c(0x2ca,0x2d4)+'figuration');_0x53d974[_0x3cf930(0x2e6,0x2f0)]('show')[_0x3cf930(0x2fb,0x2de)+'n'](_0x3cf930(0x2e9,0x2cb)+_0x4b016c(0x2b3,0x2a5)+_0x3cf930(0x2b9,0x2c9))[_0x4b016c(0x2c0,0x2cc)](()=>{function _0x137662(_0xa280ac,_0x2531e6){return _0x4b016c(_0x2531e6- -0xdb,_0xa280ac);}function _0x27a1ed(_0x5a0704,_0x31fb66){return _0x4b016c(_0x31fb66- -0x384,_0x5a0704);}if('uurkg'===_0x137662(0x1f1,0x1fd)){const _0xaf48b0=new ConfigManager()[_0x27a1ed(-0xba,-0xb0)]();console[_0x137662(0x223,0x206)](JSON['stringify'](maskSecrets(_0xaf48b0),null,0x2));}else{const _0x154bf5=new _0x413e2c()[_0x137662(0x1f1,0x1f9)]();_0x3be5c8['log'](_0x3f7762[_0x137662(0x1fb,0x1fc)](_0x52e861(_0x154bf5),null,0x2));}}),_0x53d974[_0x4b016c(0x2e3,0x2fe)]('set\x20<key>\x20'+_0x3cf930(0x2fe,0x2f1))[_0x3cf930(0x2cc,0x2de)+'n'](_0x4b016c(0x2cb,0x2b2)+'iguration\x20'+'value\x20(e.g'+_0x4b016c(0x2e2,0x2ca)+'ture.enabl'+_0x4b016c(0x2e5,0x2fa))[_0x3cf930(0x2b1,0x2cd)]((_0x47310e,_0x2c7637)=>{function _0x497881(_0xac8688,_0x4afd3a){return _0x4b016c(_0x4afd3a-0x80,_0xac8688);}function _0x54ecd2(_0x4489cd,_0x5af78b){return _0x4b016c(_0x4489cd- -0x1b2,_0x5af78b);}if(_0x54ecd2(0x116,0xfd)!==_0x497881(0x370,0x35d)){const _0x2a2d24=new ConfigManager(),_0x410ec9=_0x2a2d24[_0x497881(0x34e,0x354)](),_0x5acd62=_0x47310e[_0x54ecd2(0x12e,0x138)]('.');let _0x1ea3d7=_0x410ec9;for(let _0x25fc2a=0x0;_0x25fc2a<_0x5acd62['length']-0x1;_0x25fc2a++){(typeof _0x1ea3d7[_0x5acd62[_0x25fc2a]]!==_0x497881(0x36c,0x352)||_0x1ea3d7[_0x5acd62[_0x25fc2a]]===null)&&(console[_0x497881(0x33e,0x34d)](_0x54ecd2(0x137,0x151)+_0x497881(0x353,0x345)+'\x20'+_0x47310e),process['exit'](0x1)),_0x1ea3d7=_0x1ea3d7[_0x5acd62[_0x25fc2a]];}const _0x11d5c2=_0x5acd62[_0x5acd62['length']-0x1],_0x135cec=_0x1ea3d7[_0x11d5c2];_0x135cec===undefined&&(console[_0x54ecd2(0x11b,0x102)]('Unknown\x20co'+'nfig\x20key:\x20'+_0x47310e),console[_0x54ecd2(0x11b,0x124)](_0x54ecd2(0x124,0x10b)+_0x54ecd2(0x11e,0x117)+'ig\x20show\x22\x20t'+'o\x20see\x20avai'+_0x54ecd2(0x11d,0x106)+'.'),process[_0x497881(0x329,0x33d)](0x1));if(typeof _0x135cec==='boolean')_0x1ea3d7[_0x11d5c2]=_0x2c7637===_0x497881(0x317,0x332);else typeof _0x135cec===_0x54ecd2(0x108,0x11a)?_0x1ea3d7[_0x11d5c2]=Number(_0x2c7637):_0x1ea3d7[_0x11d5c2]=_0x2c7637;try{ConfigSchema[_0x497881(0x346,0x331)](_0x410ec9);}catch(_0x2f5eb3){if(_0x2f5eb3 instanceof z[_0x54ecd2(0x102,0xf5)]){console[_0x54ecd2(0x11b,0x124)](_0x497881(0x356,0x342)+'lue\x20for\x20\x22'+_0x47310e+'\x22:');for(const _0x303d18 of _0x2f5eb3[_0x54ecd2(0x109,0x106)]){console['error']('\x20\x20'+_0x303d18[_0x497881(0x322,0x335)]['join']('.')+':\x20'+_0x303d18['message']);}process[_0x54ecd2(0x10b,0x104)](0x1);}throw _0x2f5eb3;}_0x2a2d24[_0x54ecd2(0x11c,0x106)](_0x410ec9),console['log'](_0x54ecd2(0x117,0x11a)+_0x47310e+_0x497881(0x350,0x359)+_0x1ea3d7[_0x11d5c2]);}else _0x105eea[_0x54ecd2(0x11b,0x11d)](_0x497881(0x34b,0x369)+_0x54ecd2(0x113,0x119)+'\x20'+_0x2ffe0d),_0x205f8a[_0x54ecd2(0x10b,0x11b)](0x1);}),_0x53d974[_0x3cf930(0x2d5,0x2f0)](_0x3cf930(0x2d5,0x2e7))[_0x4b016c(0x2d1,0x2cb)+'n'](_0x4b016c(0x2c4,0x2aa)+_0x4b016c(0x2b0,0x2a5)+_0x3cf930(0x2ea,0x2d0))[_0x4b016c(0x2c0,0x2c8)](()=>{const _0x42064d=new ConfigManager();_0x42064d[_0x31adf0(0x288,0x284)]();function _0x31adf0(_0xdf14fc,_0x56808e){return _0x4b016c(_0x56808e- -0x56,_0xdf14fc);}function _0x165b0c(_0x1945e0,_0x578aa4){return _0x4b016c(_0x578aa4- -0x47a,_0x1945e0);}console['log'](_0x165b0c(-0x186,-0x193)+_0x31adf0(0x255,0x262)+'to\x20default'+'s.');});function _0x3cf930(_0x110ff5,_0x28a345){return _0xfcf1(_0x28a345-0x145,_0x110ff5);}return _0x53d974;}