@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4

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 (135) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app/add.js +1 -1
  18. package/lib/commands/app/index.js +1 -1
  19. package/lib/commands/app/list.js +1 -1
  20. package/lib/commands/app/remote.js +1 -1
  21. package/lib/commands/app/remove.js +1 -1
  22. package/lib/commands/app/shared.js +1 -1
  23. package/lib/commands/app/use.js +1 -1
  24. package/lib/commands/auth.js +1 -1
  25. package/lib/commands/bff/delete.js +1 -1
  26. package/lib/commands/bff/detail.js +1 -1
  27. package/lib/commands/bff/index.js +1 -1
  28. package/lib/commands/bff/list.js +1 -1
  29. package/lib/commands/bff/new.js +1 -1
  30. package/lib/commands/bff/pull.js +1 -1
  31. package/lib/commands/bff/push.js +1 -1
  32. package/lib/commands/bff/status.js +1 -1
  33. package/lib/commands/build.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/create.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/doctor.js +1 -1
  53. package/lib/commands/init.js +1 -1
  54. package/lib/commands/logout.js +1 -1
  55. package/lib/commands/logs.js +1 -1
  56. package/lib/commands/menu/index.js +1 -1
  57. package/lib/commands/menu/shared/compare-table.js +1 -1
  58. package/lib/commands/menu/shared/index.js +1 -1
  59. package/lib/commands/menu/shared/inquirer.js +1 -1
  60. package/lib/commands/menu/shared/local-pages.js +1 -1
  61. package/lib/commands/menu/shared/logic.js +1 -1
  62. package/lib/commands/menu/shared/service.js +1 -1
  63. package/lib/commands/menu/shared/sync-core.js +1 -1
  64. package/lib/commands/menu/shared/update-core.js +1 -1
  65. package/lib/commands/menu/shared/valid-url.js +1 -1
  66. package/lib/commands/menu/sync.js +1 -1
  67. package/lib/commands/menu/update.js +1 -1
  68. package/lib/commands/preview.js +1 -1
  69. package/lib/commands/project-upgrade.js +1 -1
  70. package/lib/commands/registry.js +1 -1
  71. package/lib/commands/run.js +1 -1
  72. package/lib/commands/skill.js +1 -1
  73. package/lib/commands/smart-init.js +1 -1
  74. package/lib/commands/sql/detail.js +1 -1
  75. package/lib/commands/sql/exec.js +1 -1
  76. package/lib/commands/sql/index.js +1 -1
  77. package/lib/commands/sql/list.js +1 -1
  78. package/lib/commands/sql/save.js +1 -1
  79. package/lib/commands/sql/validate.js +1 -1
  80. package/lib/commands/start.js +1 -1
  81. package/lib/constant/cli.js +1 -1
  82. package/lib/constant/domain.js +1 -1
  83. package/lib/constant/env.js +1 -1
  84. package/lib/context.js +1 -1
  85. package/lib/core/alias-resolver.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/bff/config.js +1 -1
  88. package/lib/core/bff/file-system.js +1 -1
  89. package/lib/core/bff/hash.js +1 -1
  90. package/lib/core/bff/lock.js +1 -1
  91. package/lib/core/bff/utils.js +1 -1
  92. package/lib/core/db-resolver.js +1 -1
  93. package/lib/core/sql-validator.js +1 -1
  94. package/lib/create-app/enhanced-guided-create.js +1 -1
  95. package/lib/create-app/format-elapsed.js +1 -1
  96. package/lib/create-app/main.js +1 -1
  97. package/lib/create-app/non-interactive.js +1 -1
  98. package/lib/create-app/use-copy-project-template.js +1 -1
  99. package/lib/create-app/use-format-code.js +1 -1
  100. package/lib/create-app/use-install-dependencies.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/types.js +1 -1
  109. package/lib/generated/build-info.js +1 -1
  110. package/lib/help.js +1 -1
  111. package/lib/init/main.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/telemetry/send-cli-trace-log.js +1 -1
  118. package/lib/utils/ai_config.js +1 -1
  119. package/lib/utils/cdn-config.js +1 -1
  120. package/lib/utils/check-sdk-version.js +1 -1
  121. package/lib/utils/cli-version-check.js +1 -1
  122. package/lib/utils/config.js +1 -1
  123. package/lib/utils/copy-directory.js +1 -1
  124. package/lib/utils/file-utils.js +1 -1
  125. package/lib/utils/guides-cdn.js +1 -1
  126. package/lib/utils/http-client.js +1 -1
  127. package/lib/utils/is-non-interactive.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/rules-cdn.js +1 -1
  131. package/lib/utils/sleep.js +1 -1
  132. package/lib/utils/template-replacer.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/with-active-cookie.js +1 -1
  135. package/package.json +3 -3
@@ -1 +1 @@
1
- const a69_0x114652=a69_0x55bd;(function(_0x356397,_0x230a49){const _0x59256a=a69_0x55bd,_0x3e4eec=_0x356397();while(!![]){try{const _0xe9ac8c=parseInt(_0x59256a(0xcc))/0x1*(parseInt(_0x59256a(0xcb))/0x2)+parseInt(_0x59256a(0x8a))/0x3+-parseInt(_0x59256a(0xbb))/0x4*(parseInt(_0x59256a(0xa6))/0x5)+-parseInt(_0x59256a(0xa9))/0x6+-parseInt(_0x59256a(0xa2))/0x7+parseInt(_0x59256a(0x9d))/0x8+-parseInt(_0x59256a(0x7e))/0x9;if(_0xe9ac8c===_0x230a49)break;else _0x3e4eec['push'](_0x3e4eec['shift']());}catch(_0x514a86){_0x3e4eec['push'](_0x3e4eec['shift']());}}}(a69_0x53ad,0x2ea79));import a69_0x5e60a8 from'chalk';import a69_0x451755 from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../context.js';import{CORE_IDE_CONFIGS}from'../utils/ai_config.js';import{runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../skills/npx-skills-add.js';import{askConfirm}from'./menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a69_0x114652(0xcd)](_0x414cdd=>_0x414cdd!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0xdb976a){const _0x52f672=a69_0x114652,_0x4c438=[];for(const _0x804fe4 of Object[_0x52f672(0xca)](CORE_IDE_CONFIGS)){if(_0x804fe4[_0x52f672(0xb7)])for(const _0x110536 of _0x804fe4[_0x52f672(0xb7)]){_0x4c438[_0x52f672(0xb4)](resolve(_0xdb976a,_0x110536[_0x52f672(0x9f)]));}}return _0x4c438;}function a69_0x53ad(){const _0x129b92=['Step\x202/6:\x20.lovrabet/\x20directory\x20removed','succeed','boolean','detail','entries','failed','object','message','lovrabet/rabetbase','\x20\x20New\x20config\x20(.rabetbase.json):\x20','string','990447PdBkUh','removed\x20','stringify','Step\x206/6:\x20Installing\x20new\x20skill...','Install\x20new\x20skill','hasNewConfig','Step\x203/6:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','\x20\x20\x20\x20\x20\x20\x20','args','yes','===\x20Upgrade\x20Analysis\x20===','oldPath','Remove\x20.lovrabet/','\x20removed','Step\x202/6:\x20.lovrabet/\x20not\x20found,\x20skipped','MCP\x20config:','.lovrabet','some','Step\x201/6:\x20Config\x20migration\x20—\x20','73472MDuyqK','no\x20legacy\x20config\x20found','path','done','Step\x204/6:\x20MCP\x20config\x20—\x20','81347VjLWuh','start','\x20removed\x20(','not\x20needed','150065zHerSX','Step\x204/6:\x20Cleaning\x20MCP\x20config...','Step\x206/6:\x20Install\x20new\x20skill\x20—\x20','2211930fsppEa','Remove\x20legacy\x20artifacts','===\x20Upgrade\x20Summary\x20===','step','.cursor/rules/lovrabet_rules.mdc','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','not\x20found\x20(will\x20create)','CANCEL','Config\x20migration','.cursor/mcp.json','.bak','push','Legacy\x20artifacts:','.claude/skills/lovrabet','files','Clean\x20MCP\x20config','gray','includes','16EvJBlA','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','skipped\x20(no\x20legacy\x20config)','fields','Step\x203/6:\x20Legacy\x20artifacts\x20—\x20','Config\x20file:','green','\x20→\x20','configMigration','fail','Proceed\x20with\x20upgrade?','join','red','\x20→\x20keys:\x20','yellow','values','709690FJVcWJ','1ZvmEJI','filter','skipped','log','info','Remove\x20old\x20skill','lovrabet/lovrabet-skill\x20removed','oldMcpConfig','no\x20matching\x20entry\x20found','bold','cwd','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','error','needed','parse','upgrade','Upgrade\x20completed\x20successfully!','exit\x20','cyan','\x20\x20Step\x20','oldArtifacts','Upgrade\x20cancelled.','Step\x202/6:\x20Removing\x20.lovrabet/\x20directory...','keys','isArray','FAIL','Skill\x20swap:','\x20\x20Action:\x20delete','Step\x205/6:\x20Remove\x20old\x20skill\x20—\x20','utf8','mcpServers','length','lovrabet/rabetbase\x20installed\x20globally','Skip\x20confirmation\x20prompt','24777Euuknb'];a69_0x53ad=function(){return _0x129b92;};return a69_0x53ad();}function analyse(_0x5c48ed){const _0x46020a=a69_0x114652;let _0x28308a=null;const _0x5c76eb=resolve(_0x5c48ed,NEW_CONFIG_NAME),_0x5aa75b=existsSync(_0x5c76eb);for(const _0x4857fd of LEGACY_CONFIG_NAMES){const _0x567cc0=resolve(_0x5c48ed,_0x4857fd);if(existsSync(_0x567cc0)){const _0x41ed4a=readConfigFile(_0x567cc0),_0x256cb9=Object[_0x46020a(0x73)](_0x41ed4a)[_0x46020a(0xcd)](_0x48bc58=>typeof _0x41ed4a[_0x48bc58]!=='undefined');_0x28308a={'oldPath':_0x567cc0,'hasNewConfig':_0x5aa75b,'fields':_0x256cb9};break;}}const _0x3ebf6a=[],_0xd0ed71=resolve(_0x5c48ed,_0x46020a(0x9a));if(existsSync(_0xd0ed71))_0x3ebf6a[_0x46020a(0xb4)](_0xd0ed71);const _0x185856=resolve(_0x5c48ed,_0x46020a(0xad));if(existsSync(_0x185856))_0x3ebf6a[_0x46020a(0xb4)](_0x185856);const _0x5271e4=resolve(_0x5c48ed,_0x46020a(0xb6));if(existsSync(_0x5271e4))_0x3ebf6a[_0x46020a(0xb4)](_0x5271e4);for(const _0x1e1355 of collectIdeSkillFiles(_0x5c48ed)){if(existsSync(_0x1e1355))_0x3ebf6a['push'](_0x1e1355);}let _0x4b8dde=null;const _0x1a4edb=resolve(_0x5c48ed,_0x46020a(0xb2));if(existsSync(_0x1a4edb))try{const _0x482468=JSON[_0x46020a(0x6a)](readFileSync(_0x1a4edb,_0x46020a(0x79)));if(_0x482468?.['mcpServers']&&typeof _0x482468['mcpServers']==='object'){const _0x4be86a=[];for(const [_0x44a536,_0x52e46d]of Object[_0x46020a(0x83)](_0x482468['mcpServers'])){const _0x2d4660=_0x52e46d;_0x2d4660?.[_0x46020a(0x92)]&&Array[_0x46020a(0x74)](_0x2d4660[_0x46020a(0x92)])&&_0x2d4660[_0x46020a(0x92)][_0x46020a(0x9b)](_0x14b1d1=>typeof _0x14b1d1===_0x46020a(0x89)&&_0x14b1d1[_0x46020a(0xba)]('@lovrabet/dataset-mcp-server'))&&_0x4be86a[_0x46020a(0xb4)](_0x44a536);}_0x4be86a[_0x46020a(0x7b)]>0x0&&(_0x4b8dde={'path':_0x1a4edb,'keys':_0x4be86a});}}catch{}const _0x23b9d0=_0x3ebf6a[_0x46020a(0x7b)]>0x0||_0x28308a!==null;return{'configMigration':_0x28308a,'oldArtifacts':_0x3ebf6a,'oldMcpConfig':_0x4b8dde,'needsSkillSwap':_0x23b9d0};}function printReport(_0x1f305d){const _0x5efe4d=a69_0x114652,{configMigration:_0x17098a,oldArtifacts:_0x4bf7fa,oldMcpConfig:_0x24d040,needsSkillSwap:_0x2e1ecc}=_0x1f305d;console[_0x5efe4d(0xcf)](''),console[_0x5efe4d(0xcf)](a69_0x5e60a8[_0x5efe4d(0xd5)](_0x5efe4d(0x94))),console['log']('');_0x17098a?(console[_0x5efe4d(0xcf)](a69_0x5e60a8['cyan']('Config\x20file:')+('\x20\x20'+a69_0x5e60a8[_0x5efe4d(0xc9)](_0x17098a[_0x5efe4d(0x95)]))),console[_0x5efe4d(0xcf)](_0x5efe4d(0x88)+(_0x17098a['hasNewConfig']?a69_0x5e60a8[_0x5efe4d(0xc1)]('already\x20exists\x20(will\x20merge)'):a69_0x5e60a8['gray'](_0x5efe4d(0xaf)))),console[_0x5efe4d(0xcf)]('\x20\x20Fields\x20to\x20migrate:\x20'+_0x17098a[_0x5efe4d(0xbe)][_0x5efe4d(0xc6)](',\x20')),console[_0x5efe4d(0xcf)](_0x5efe4d(0xd7))):console[_0x5efe4d(0xcf)](a69_0x5e60a8['cyan'](_0x5efe4d(0xc0))+'\x20\x20'+a69_0x5e60a8['gray'](_0x5efe4d(0x9e)));console[_0x5efe4d(0xcf)]('');if(_0x4bf7fa[_0x5efe4d(0x7b)]>0x0){console[_0x5efe4d(0xcf)](a69_0x5e60a8['cyan'](_0x5efe4d(0xb5)));for(const _0x707bb7 of _0x4bf7fa){console['log']('\x20\x20'+a69_0x5e60a8['red']('FOUND')+'\x20\x20'+_0x707bb7);}console[_0x5efe4d(0xcf)](_0x5efe4d(0x77));}else console[_0x5efe4d(0xcf)](a69_0x5e60a8['cyan'](_0x5efe4d(0xb5))+'\x20\x20'+a69_0x5e60a8['gray']('none\x20found'));console['log'](''),_0x24d040?(console[_0x5efe4d(0xcf)](a69_0x5e60a8[_0x5efe4d(0x6e)](_0x5efe4d(0x99))+('\x20\x20'+a69_0x5e60a8[_0x5efe4d(0xc9)](_0x24d040[_0x5efe4d(0x9f)])+_0x5efe4d(0xc8)+_0x24d040[_0x5efe4d(0x73)][_0x5efe4d(0xc6)](',\x20'))),console[_0x5efe4d(0xcf)](_0x5efe4d(0xae))):console[_0x5efe4d(0xcf)](a69_0x5e60a8['cyan'](_0x5efe4d(0x99))+'\x20\x20'+a69_0x5e60a8[_0x5efe4d(0xb9)]('no\x20legacy\x20entry')),console[_0x5efe4d(0xcf)](''),console[_0x5efe4d(0xcf)](a69_0x5e60a8[_0x5efe4d(0x6e)](_0x5efe4d(0x76))+('\x20\x20'+(_0x2e1ecc?a69_0x5e60a8[_0x5efe4d(0xc9)](_0x5efe4d(0x69)):a69_0x5e60a8['green'](_0x5efe4d(0xa5))))),_0x2e1ecc&&console[_0x5efe4d(0xcf)]('\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20lovrabet/rabetbase\x20--global'),console['log']('');}function execConfigMigration(_0x20155a,_0x16ef77){const _0x2b16bb=a69_0x114652,{configMigration:_0x1b8169}=_0x20155a;if(!_0x1b8169?.[_0x2b16bb(0x95)])return{'step':0x1,'label':_0x2b16bb(0xb1),'ok':!![],'detail':_0x2b16bb(0xbd)};const _0x3062a4=readConfigFile(_0x1b8169['oldPath']),_0x5bf09d=resolve(_0x16ef77,NEW_CONFIG_NAME),_0x502950=_0x1b8169[_0x2b16bb(0x8f)]?readConfigFile(_0x5bf09d):{};for(const [_0x302f72,_0x1fc1ff]of Object[_0x2b16bb(0x83)](_0x3062a4)){!(_0x302f72 in _0x502950)&&(_0x502950[_0x302f72]=_0x1fc1ff);}writeConfigFile(_0x5bf09d,_0x502950);const _0x1e1213=_0x1b8169[_0x2b16bb(0x95)]+_0x2b16bb(0xb3);return renameSync(_0x1b8169[_0x2b16bb(0x95)],_0x1e1213),{'step':0x1,'label':'Config\x20migration','ok':!![],'detail':_0x1b8169[_0x2b16bb(0x95)]+_0x2b16bb(0xc2)+_0x5bf09d+'\x20(backup:\x20'+_0x1e1213+')'};}function execRemoveOldArtifacts(_0x54201c){const _0x51edac=a69_0x114652,_0x2875c5=[];for(const _0x4746d8 of _0x54201c){try{if(!existsSync(_0x4746d8))continue;const _0x363fb1=tryStat(_0x4746d8);_0x363fb1?.['isDirectory']()?rmSync(_0x4746d8,{'recursive':!![],'force':!![]}):unlinkSync(_0x4746d8);}catch(_0x3abc23){_0x2875c5[_0x51edac(0xb4)](_0x4746d8+':\x20'+_0x3abc23['message']);}}return{'step':0x3,'label':_0x51edac(0xaa),'ok':_0x2875c5[_0x51edac(0x7b)]===0x0,'detail':_0x2875c5[_0x51edac(0x7b)]>0x0?_0x54201c['length']-_0x2875c5[_0x51edac(0x7b)]+'/'+_0x54201c[_0x51edac(0x7b)]+_0x51edac(0xa4)+_0x2875c5[_0x51edac(0xc6)](';\x20')+')':_0x54201c['length']+_0x51edac(0x97)};}function execCleanMcp(_0xcd198c){const _0x2b3fcf=a69_0x114652;if(!_0xcd198c[_0x2b3fcf(0xd3)])return{'step':0x4,'label':_0x2b3fcf(0xb8),'ok':!![],'detail':_0x2b3fcf(0xce)};try{const _0x5ba290=readFileSync(_0xcd198c['oldMcpConfig'][_0x2b3fcf(0x9f)],'utf8'),_0x5aef56=JSON[_0x2b3fcf(0x6a)](_0x5ba290);if(_0x5aef56?.[_0x2b3fcf(0x7a)]&&typeof _0x5aef56[_0x2b3fcf(0x7a)]===_0x2b3fcf(0x85)){const _0x570009=[];for(const [_0x4b39ac,_0x539f74]of Object[_0x2b3fcf(0x83)](_0x5aef56[_0x2b3fcf(0x7a)])){_0x539f74?.[_0x2b3fcf(0x92)]&&Array['isArray'](_0x539f74[_0x2b3fcf(0x92)])&&_0x539f74[_0x2b3fcf(0x92)][_0x2b3fcf(0x9b)](_0x2f7e0a=>typeof _0x2f7e0a===_0x2b3fcf(0x89)&&_0x2f7e0a[_0x2b3fcf(0xba)]('@lovrabet/dataset-mcp-server'))&&_0x570009[_0x2b3fcf(0xb4)](_0x4b39ac);}for(const _0x451a83 of _0x570009){delete _0x5aef56[_0x2b3fcf(0x7a)][_0x451a83];}return _0x570009[_0x2b3fcf(0x7b)]>0x0&&writeFileSync(_0xcd198c['oldMcpConfig'][_0x2b3fcf(0x9f)],JSON[_0x2b3fcf(0x8c)](_0x5aef56,null,0x2)+'\x0a',_0x2b3fcf(0x79)),{'step':0x4,'label':_0x2b3fcf(0xb8),'ok':!![],'detail':_0x2b3fcf(0x8b)+_0x570009[_0x2b3fcf(0xc6)](',\x20')+'\x20from\x20'+_0xcd198c['oldMcpConfig'][_0x2b3fcf(0x9f)]};}return{'step':0x4,'label':_0x2b3fcf(0xb8),'ok':!![],'detail':_0x2b3fcf(0xd4)};}catch(_0x444888){return{'step':0x4,'label':_0x2b3fcf(0xb8),'ok':![],'detail':_0x444888['message']};}}function a69_0x55bd(_0x33e5fa,_0x2ee305){_0x33e5fa=_0x33e5fa-0x68;const _0x53adf4=a69_0x53ad();let _0x55bd31=_0x53adf4[_0x33e5fa];return _0x55bd31;}function execSkillsRemove(_0x400499){const _0x20f788=a69_0x114652,_0x297433=runNpxSkillsRemove(_0x400499,{'stdio':'inherit'});return{'step':0x5,'label':_0x20f788(0xd1),'ok':_0x297433['ok'],'detail':_0x297433['ok']?_0x20f788(0xd2):_0x297433[_0x20f788(0x68)]??_0x20f788(0x6d)+_0x297433['status']};}function execSkillsAdd(_0x2ad322){const _0x492a89=a69_0x114652,_0x3e7aa5=runNpxSkillsAddGlobal(_0x2ad322,_0x492a89(0x87),{'stdio':'inherit'});return{'step':0x6,'label':_0x492a89(0x8e),'ok':_0x3e7aa5['ok'],'detail':_0x3e7aa5['ok']?_0x492a89(0x7c):_0x3e7aa5[_0x492a89(0x68)]??'exit\x20'+_0x3e7aa5['status']};}function tryStat(_0x199c1c){try{return statSync(_0x199c1c);}catch{return undefined;}}function printSummary(_0x4b0932){const _0x277855=a69_0x114652;console[_0x277855(0xcf)](''),console[_0x277855(0xcf)](a69_0x5e60a8[_0x277855(0xd5)](_0x277855(0xab))),console['log']('');for(const _0x6e77f6 of _0x4b0932){const _0x2ccd95=_0x6e77f6['ok']?a69_0x5e60a8['green']('OK'):a69_0x5e60a8[_0x277855(0xc7)](_0x277855(0x75));console['log']('\x20\x20'+_0x2ccd95+_0x277855(0x6f)+_0x6e77f6[_0x277855(0xac)]+':\x20'+_0x6e77f6['label']);if(_0x6e77f6['detail'])console[_0x277855(0xcf)](_0x277855(0x91)+a69_0x5e60a8[_0x277855(0xb9)](_0x6e77f6[_0x277855(0x82)]));}console[_0x277855(0xcf)]('');}export async function upgradeApp(_0x572435,_0x49e9cf){const _0xd09cae=a69_0x114652,_0x26e365=process[_0xd09cae(0xd6)](),_0x3916c6=analyse(_0x26e365),_0x13c5b9=!_0x3916c6[_0xd09cae(0xc3)]&&_0x3916c6[_0xd09cae(0x70)][_0xd09cae(0x7b)]===0x0&&!_0x3916c6[_0xd09cae(0xd3)]&&!_0x3916c6['needsSkillSwap'];if(_0x13c5b9){console[_0xd09cae(0xcf)](a69_0x5e60a8[_0xd09cae(0xc1)]('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x3916c6);const _0x184979=_0x49e9cf[_0xd09cae(0x93)]||_0x49e9cf['Y']||_0x572435['nonInteractive'];if(!_0x184979)try{const _0x589ff8=await askConfirm(_0xd09cae(0xc5));if(!_0x589ff8){console[_0xd09cae(0xcf)](a69_0x5e60a8[_0xd09cae(0xb9)](_0xd09cae(0x71)));return;}}catch(_0x65c42){if(_0x65c42?.[_0xd09cae(0x86)]===_0xd09cae(0xb0)){console[_0xd09cae(0xcf)](a69_0x5e60a8[_0xd09cae(0xb9)](_0xd09cae(0x71)));return;}throw _0x65c42;}const _0x1a0f49=[],_0x5ad3db=a69_0x451755({'text':'Step\x201/6:\x20Migrating\x20config...','color':_0xd09cae(0x6e)})[_0xd09cae(0xa3)](),_0x15e195=execConfigMigration(_0x3916c6,_0x26e365);_0x1a0f49[_0xd09cae(0xb4)](_0x15e195),_0x5ad3db[_0x15e195['ok']?'succeed':_0xd09cae(0xc4)](_0xd09cae(0x9c)+(_0x15e195[_0xd09cae(0x82)]??(_0x15e195['ok']?_0xd09cae(0xa0):_0xd09cae(0x84))));const _0x1a47e4=resolve(_0x26e365,_0xd09cae(0x9a)),_0x9caad8=a69_0x451755({'text':_0xd09cae(0x72),'color':_0xd09cae(0x6e)})[_0xd09cae(0xa3)]();if(existsSync(_0x1a47e4))try{rmSync(_0x1a47e4,{'recursive':!![],'force':!![]}),_0x9caad8[_0xd09cae(0x80)](_0xd09cae(0x7f)),_0x1a0f49[_0xd09cae(0xb4)]({'step':0x2,'label':_0xd09cae(0x96),'ok':!![]});}catch(_0x332e93){_0x9caad8[_0xd09cae(0xc4)]('Step\x202/6:\x20.lovrabet/\x20removal\x20failed\x20—\x20'+_0x332e93[_0xd09cae(0x86)]),_0x1a0f49[_0xd09cae(0xb4)]({'step':0x2,'label':_0xd09cae(0x96),'ok':![],'detail':_0x332e93['message']});}else _0x9caad8[_0xd09cae(0xd0)](_0xd09cae(0x98)),_0x1a0f49[_0xd09cae(0xb4)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':'skipped'});const _0x58a030=a69_0x451755({'text':_0xd09cae(0x90),'color':'cyan'})[_0xd09cae(0xa3)](),_0x30f305=execRemoveOldArtifacts(_0x3916c6['oldArtifacts']);_0x1a0f49[_0xd09cae(0xb4)](_0x30f305),_0x58a030[_0x30f305['ok']?_0xd09cae(0x80):'fail'](_0xd09cae(0xbf)+(_0x30f305[_0xd09cae(0x82)]??(_0x30f305['ok']?_0xd09cae(0xa0):_0xd09cae(0x84))));const _0x95f77c=a69_0x451755({'text':_0xd09cae(0xa7),'color':'cyan'})[_0xd09cae(0xa3)](),_0x24890d=execCleanMcp(_0x3916c6);_0x1a0f49[_0xd09cae(0xb4)](_0x24890d),_0x95f77c[_0x24890d['ok']?_0xd09cae(0x80):'fail'](_0xd09cae(0xa1)+(_0x24890d[_0xd09cae(0x82)]??(_0x24890d['ok']?_0xd09cae(0xa0):_0xd09cae(0x84))));const _0x41cdef=a69_0x451755({'text':'Step\x205/6:\x20Removing\x20old\x20skill...','color':'cyan'})['start'](),_0x247868=execSkillsRemove(_0x26e365);_0x1a0f49[_0xd09cae(0xb4)](_0x247868),_0x41cdef[_0x247868['ok']?_0xd09cae(0x80):_0xd09cae(0xc4)](_0xd09cae(0x78)+(_0x247868[_0xd09cae(0x82)]??(_0x247868['ok']?_0xd09cae(0xa0):_0xd09cae(0x84))));const _0x84d7c=a69_0x451755({'text':_0xd09cae(0x8d),'color':_0xd09cae(0x6e)})['start'](),_0x2681d1=execSkillsAdd(_0x26e365);_0x1a0f49[_0xd09cae(0xb4)](_0x2681d1),_0x84d7c[_0x2681d1['ok']?_0xd09cae(0x80):'fail'](_0xd09cae(0xa8)+(_0x2681d1[_0xd09cae(0x82)]??(_0x2681d1['ok']?_0xd09cae(0xa0):_0xd09cae(0x84)))),printSummary(_0x1a0f49);const _0x194056=_0x1a0f49[_0xd09cae(0x9b)](_0x2f90af=>!_0x2f90af['ok']);_0x194056?console['log'](a69_0x5e60a8[_0xd09cae(0xc9)]('Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.')):console[_0xd09cae(0xcf)](a69_0x5e60a8[_0xd09cae(0xc1)](_0xd09cae(0x6c)));}const flagDefs=[{'name':a69_0x114652(0x93),'type':a69_0x114652(0x81),'description':a69_0x114652(0x7d),'default':![]}];export const upgradeCommand={'name':a69_0x114652(0x6b),'description':a69_0x114652(0xbc),'flags':flagDefs,async 'run'(_0x1e3c28,_0x1aec2d,_0x56100b){await upgradeApp(_0x1e3c28,_0x56100b);}};
1
+ const a69_0x145ed7=a69_0x20bc;(function(_0x55f8b6,_0x28120c){const _0x215ee4=a69_0x20bc,_0x245091=_0x55f8b6();while(!![]){try{const _0x124ae2=parseInt(_0x215ee4(0x1b3))/0x1*(-parseInt(_0x215ee4(0x1ac))/0x2)+-parseInt(_0x215ee4(0x1cf))/0x3+parseInt(_0x215ee4(0x1d7))/0x4*(parseInt(_0x215ee4(0x1d4))/0x5)+parseInt(_0x215ee4(0x1fa))/0x6+parseInt(_0x215ee4(0x208))/0x7*(-parseInt(_0x215ee4(0x1fd))/0x8)+-parseInt(_0x215ee4(0x213))/0x9+parseInt(_0x215ee4(0x201))/0xa*(parseInt(_0x215ee4(0x20b))/0xb);if(_0x124ae2===_0x28120c)break;else _0x245091['push'](_0x245091['shift']());}catch(_0x109d7c){_0x245091['push'](_0x245091['shift']());}}}(a69_0x218a,0xe78bd));import a69_0xd9a38e from'chalk';import a69_0x378261 from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../context.js';import{CORE_IDE_CONFIGS}from'../utils/ai_config.js';import{runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../skills/npx-skills-add.js';import{askConfirm}from'./menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a69_0x145ed7(0x1d0)](_0x2ee58e=>_0x2ee58e!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x5b3ca8){const _0x3588fb=a69_0x145ed7,_0x4aa9eb=[];for(const _0x4baecd of Object[_0x3588fb(0x1f0)](CORE_IDE_CONFIGS)){if(_0x4baecd[_0x3588fb(0x1c1)])for(const _0x1babad of _0x4baecd[_0x3588fb(0x1c1)]){_0x4aa9eb['push'](resolve(_0x5b3ca8,_0x1babad[_0x3588fb(0x1a7)]));}}return _0x4aa9eb;}function analyse(_0x3351f0){const _0x33b741=a69_0x145ed7;let _0x247479=null;const _0x2c0716=resolve(_0x3351f0,NEW_CONFIG_NAME),_0xbfb788=existsSync(_0x2c0716);for(const _0x56c229 of LEGACY_CONFIG_NAMES){const _0x5889c4=resolve(_0x3351f0,_0x56c229);if(existsSync(_0x5889c4)){const _0x47eb10=readConfigFile(_0x5889c4),_0x5c9699=Object[_0x33b741(0x200)](_0x47eb10)['filter'](_0x37a1b6=>typeof _0x47eb10[_0x37a1b6]!==_0x33b741(0x1fe));_0x247479={'oldPath':_0x5889c4,'hasNewConfig':_0xbfb788,'fields':_0x5c9699};break;}}const _0x2199cb=[],_0x3ae5e9=resolve(_0x3351f0,_0x33b741(0x209));if(existsSync(_0x3ae5e9))_0x2199cb[_0x33b741(0x1a3)](_0x3ae5e9);const _0x21261a=resolve(_0x3351f0,_0x33b741(0x1ae));if(existsSync(_0x21261a))_0x2199cb[_0x33b741(0x1a3)](_0x21261a);const _0x4b389d=resolve(_0x3351f0,'.claude/skills/lovrabet');if(existsSync(_0x4b389d))_0x2199cb[_0x33b741(0x1a3)](_0x4b389d);for(const _0x4174a0 of collectIdeSkillFiles(_0x3351f0)){if(existsSync(_0x4174a0))_0x2199cb[_0x33b741(0x1a3)](_0x4174a0);}let _0x51bf3d=null;const _0x464bd8=resolve(_0x3351f0,_0x33b741(0x1d3));if(existsSync(_0x464bd8))try{const _0x273ca1=JSON[_0x33b741(0x1e3)](readFileSync(_0x464bd8,_0x33b741(0x1a8)));if(_0x273ca1?.[_0x33b741(0x1d1)]&&typeof _0x273ca1[_0x33b741(0x1d1)]===_0x33b741(0x1cb)){const _0x3860ec=[];for(const [_0x1cff9d,_0x2b1bae]of Object[_0x33b741(0x1f7)](_0x273ca1[_0x33b741(0x1d1)])){const _0x2d0860=_0x2b1bae;_0x2d0860?.['args']&&Array[_0x33b741(0x20a)](_0x2d0860['args'])&&_0x2d0860['args'][_0x33b741(0x1f3)](_0x593e20=>typeof _0x593e20===_0x33b741(0x1d9)&&_0x593e20[_0x33b741(0x1e4)](_0x33b741(0x20d)))&&_0x3860ec[_0x33b741(0x1a3)](_0x1cff9d);}_0x3860ec['length']>0x0&&(_0x51bf3d={'path':_0x464bd8,'keys':_0x3860ec});}}catch{}const _0x4a5bf5=_0x2199cb[_0x33b741(0x1dd)]>0x0||_0x247479!==null;return{'configMigration':_0x247479,'oldArtifacts':_0x2199cb,'oldMcpConfig':_0x51bf3d,'needsSkillSwap':_0x4a5bf5};}function printReport(_0x7b6c97){const _0x1c0565=a69_0x145ed7,{configMigration:_0xd1a8a0,oldArtifacts:_0x108855,oldMcpConfig:_0x4e3960,needsSkillSwap:_0x4ed85a}=_0x7b6c97;console[_0x1c0565(0x1de)](''),console[_0x1c0565(0x1de)](a69_0xd9a38e[_0x1c0565(0x1e2)](_0x1c0565(0x1bb))),console[_0x1c0565(0x1de)]('');_0xd1a8a0?(console[_0x1c0565(0x1de)](a69_0xd9a38e['cyan'](_0x1c0565(0x1ba))+('\x20\x20'+a69_0xd9a38e[_0x1c0565(0x1a6)](_0xd1a8a0[_0x1c0565(0x1c5)]))),console[_0x1c0565(0x1de)](_0x1c0565(0x1ef)+(_0xd1a8a0['hasNewConfig']?a69_0xd9a38e[_0x1c0565(0x1d6)](_0x1c0565(0x1b4)):a69_0xd9a38e['gray'](_0x1c0565(0x1e1)))),console[_0x1c0565(0x1de)](_0x1c0565(0x1da)+_0xd1a8a0[_0x1c0565(0x1aa)]['join'](',\x20')),console[_0x1c0565(0x1de)]('\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak')):console[_0x1c0565(0x1de)](a69_0xd9a38e[_0x1c0565(0x20c)](_0x1c0565(0x1ba))+'\x20\x20'+a69_0xd9a38e[_0x1c0565(0x1b2)](_0x1c0565(0x1b8)));console[_0x1c0565(0x1de)]('');if(_0x108855[_0x1c0565(0x1dd)]>0x0){console[_0x1c0565(0x1de)](a69_0xd9a38e[_0x1c0565(0x20c)]('Legacy\x20artifacts:'));for(const _0x36a836 of _0x108855){console[_0x1c0565(0x1de)]('\x20\x20'+a69_0xd9a38e['red'](_0x1c0565(0x1e0))+'\x20\x20'+_0x36a836);}console[_0x1c0565(0x1de)]('\x20\x20Action:\x20delete');}else console['log'](a69_0xd9a38e[_0x1c0565(0x20c)](_0x1c0565(0x1f9))+'\x20\x20'+a69_0xd9a38e[_0x1c0565(0x1b2)](_0x1c0565(0x203)));console[_0x1c0565(0x1de)](''),_0x4e3960?(console[_0x1c0565(0x1de)](a69_0xd9a38e['cyan'](_0x1c0565(0x1ea))+('\x20\x20'+a69_0xd9a38e[_0x1c0565(0x1a6)](_0x4e3960[_0x1c0565(0x1a7)])+'\x20→\x20keys:\x20'+_0x4e3960[_0x1c0565(0x200)][_0x1c0565(0x205)](',\x20'))),console[_0x1c0565(0x1de)]('\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server')):console[_0x1c0565(0x1de)](a69_0xd9a38e[_0x1c0565(0x20c)](_0x1c0565(0x1ea))+'\x20\x20'+a69_0xd9a38e[_0x1c0565(0x1b2)](_0x1c0565(0x1f8))),console[_0x1c0565(0x1de)](''),console['log'](a69_0xd9a38e[_0x1c0565(0x20c)](_0x1c0565(0x1e6))+('\x20\x20'+(_0x4ed85a?a69_0xd9a38e['yellow']('needed'):a69_0xd9a38e[_0x1c0565(0x1d6)]('not\x20needed')))),_0x4ed85a&&console['log']('\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20lovrabet/rabetbase\x20--global'),console[_0x1c0565(0x1de)]('');}function execConfigMigration(_0x3801d2,_0x3296d6){const _0x4bede2=a69_0x145ed7,{configMigration:_0x8c00c1}=_0x3801d2;if(!_0x8c00c1?.[_0x4bede2(0x1c5)])return{'step':0x1,'label':'Config\x20migration','ok':!![],'detail':'skipped\x20(no\x20legacy\x20config)'};const _0x253e2a=readConfigFile(_0x8c00c1['oldPath']),_0x5817a1=resolve(_0x3296d6,NEW_CONFIG_NAME),_0x3265fd=_0x8c00c1[_0x4bede2(0x206)]?readConfigFile(_0x5817a1):{};for(const [_0x175b7f,_0x5c6465]of Object[_0x4bede2(0x1f7)](_0x253e2a)){!(_0x175b7f in _0x3265fd)&&(_0x3265fd[_0x175b7f]=_0x5c6465);}writeConfigFile(_0x5817a1,_0x3265fd);const _0x3ed263=_0x8c00c1['oldPath']+_0x4bede2(0x1f1);return renameSync(_0x8c00c1['oldPath'],_0x3ed263),{'step':0x1,'label':_0x4bede2(0x1e9),'ok':!![],'detail':_0x8c00c1['oldPath']+_0x4bede2(0x1a5)+_0x5817a1+_0x4bede2(0x1f6)+_0x3ed263+')'};}function execRemoveOldArtifacts(_0x156a94){const _0x4fd309=a69_0x145ed7,_0x3190d1=[];for(const _0x1560b4 of _0x156a94){try{if(!existsSync(_0x1560b4))continue;const _0x3aca4c=tryStat(_0x1560b4);_0x3aca4c?.[_0x4fd309(0x1cd)]()?rmSync(_0x1560b4,{'recursive':!![],'force':!![]}):unlinkSync(_0x1560b4);}catch(_0x48ae73){_0x3190d1[_0x4fd309(0x1a3)](_0x1560b4+':\x20'+_0x48ae73[_0x4fd309(0x20f)]);}}return{'step':0x3,'label':_0x4fd309(0x1f2),'ok':_0x3190d1[_0x4fd309(0x1dd)]===0x0,'detail':_0x3190d1[_0x4fd309(0x1dd)]>0x0?_0x156a94[_0x4fd309(0x1dd)]-_0x3190d1[_0x4fd309(0x1dd)]+'/'+_0x156a94[_0x4fd309(0x1dd)]+_0x4fd309(0x1b7)+_0x3190d1[_0x4fd309(0x205)](';\x20')+')':_0x156a94[_0x4fd309(0x1dd)]+_0x4fd309(0x1ed)};}function execCleanMcp(_0x403761){const _0xc405b7=a69_0x145ed7;if(!_0x403761['oldMcpConfig'])return{'step':0x4,'label':_0xc405b7(0x1d2),'ok':!![],'detail':_0xc405b7(0x1db)};try{const _0x3376a2=readFileSync(_0x403761['oldMcpConfig'][_0xc405b7(0x1a7)],'utf8'),_0x2cb092=JSON['parse'](_0x3376a2);if(_0x2cb092?.[_0xc405b7(0x1d1)]&&typeof _0x2cb092[_0xc405b7(0x1d1)]===_0xc405b7(0x1cb)){const _0x181dd8=[];for(const [_0x532196,_0x6e09f0]of Object[_0xc405b7(0x1f7)](_0x2cb092[_0xc405b7(0x1d1)])){_0x6e09f0?.[_0xc405b7(0x1f5)]&&Array[_0xc405b7(0x20a)](_0x6e09f0['args'])&&_0x6e09f0[_0xc405b7(0x1f5)]['some'](_0x647eb4=>typeof _0x647eb4===_0xc405b7(0x1d9)&&_0x647eb4['includes'](_0xc405b7(0x20d)))&&_0x181dd8[_0xc405b7(0x1a3)](_0x532196);}for(const _0x53efa4 of _0x181dd8){delete _0x2cb092['mcpServers'][_0x53efa4];}return _0x181dd8['length']>0x0&&writeFileSync(_0x403761[_0xc405b7(0x1c2)]['path'],JSON[_0xc405b7(0x212)](_0x2cb092,null,0x2)+'\x0a',_0xc405b7(0x1a8)),{'step':0x4,'label':_0xc405b7(0x1d2),'ok':!![],'detail':_0xc405b7(0x1ec)+_0x181dd8[_0xc405b7(0x205)](',\x20')+_0xc405b7(0x1a9)+_0x403761[_0xc405b7(0x1c2)][_0xc405b7(0x1a7)]};}return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':'no\x20matching\x20entry\x20found'};}catch(_0xa5647){return{'step':0x4,'label':_0xc405b7(0x1d2),'ok':![],'detail':_0xa5647[_0xc405b7(0x20f)]};}}function execSkillsRemove(_0x4e3268){const _0x32dfe6=a69_0x145ed7,_0x892ac2=runNpxSkillsRemove(_0x4e3268,{'stdio':_0x32dfe6(0x1c0)});return{'step':0x5,'label':'Remove\x20old\x20skill','ok':_0x892ac2['ok'],'detail':_0x892ac2['ok']?_0x32dfe6(0x20e):_0x892ac2['error']??_0x32dfe6(0x202)+_0x892ac2[_0x32dfe6(0x1b0)]};}function execSkillsAdd(_0x3d71d9){const _0x50d2cd=a69_0x145ed7,_0x242840=runNpxSkillsAddGlobal(_0x3d71d9,_0x50d2cd(0x1e5),{'stdio':_0x50d2cd(0x1c0)});return{'step':0x6,'label':_0x50d2cd(0x1f4),'ok':_0x242840['ok'],'detail':_0x242840['ok']?_0x50d2cd(0x1be):_0x242840[_0x50d2cd(0x1e7)]??_0x50d2cd(0x202)+_0x242840[_0x50d2cd(0x1b0)]};}function a69_0x20bc(_0x3a0865,_0x412408){_0x3a0865=_0x3a0865-0x1a1;const _0x218a92=a69_0x218a();let _0x20bc28=_0x218a92[_0x3a0865];return _0x20bc28;}function tryStat(_0x150c8d){try{return statSync(_0x150c8d);}catch{return undefined;}}function printSummary(_0x50b2b1){const _0x18c7da=a69_0x145ed7;console[_0x18c7da(0x1de)](''),console[_0x18c7da(0x1de)](a69_0xd9a38e[_0x18c7da(0x1e2)](_0x18c7da(0x1a1))),console[_0x18c7da(0x1de)]('');for(const _0x495f31 of _0x50b2b1){const _0x48f466=_0x495f31['ok']?a69_0xd9a38e['green']('OK'):a69_0xd9a38e[_0x18c7da(0x1c4)](_0x18c7da(0x204));console[_0x18c7da(0x1de)]('\x20\x20'+_0x48f466+'\x20\x20Step\x20'+_0x495f31['step']+':\x20'+_0x495f31['label']);if(_0x495f31[_0x18c7da(0x1d5)])console[_0x18c7da(0x1de)](_0x18c7da(0x1c8)+a69_0xd9a38e[_0x18c7da(0x1b2)](_0x495f31[_0x18c7da(0x1d5)]));}console[_0x18c7da(0x1de)]('');}export async function upgradeApp(_0x55f828,_0x18cf89){const _0x14a761=a69_0x145ed7,_0x3714b8=process[_0x14a761(0x1dc)](),_0x4dd5a0=analyse(_0x3714b8),_0x23525c=!_0x4dd5a0[_0x14a761(0x1bc)]&&_0x4dd5a0['oldArtifacts'][_0x14a761(0x1dd)]===0x0&&!_0x4dd5a0[_0x14a761(0x1c2)]&&!_0x4dd5a0[_0x14a761(0x1a4)];if(_0x23525c){console[_0x14a761(0x1de)](a69_0xd9a38e['green'](_0x14a761(0x210)));return;}printReport(_0x4dd5a0);const _0x622eca=_0x18cf89[_0x14a761(0x211)]||_0x18cf89['Y']||_0x55f828[_0x14a761(0x1b5)];if(!_0x622eca)try{const _0x15a767=await askConfirm(_0x14a761(0x1c3));if(!_0x15a767){console[_0x14a761(0x1de)](a69_0xd9a38e[_0x14a761(0x1b2)](_0x14a761(0x1c9)));return;}}catch(_0x5f3594){if(_0x5f3594?.['message']===_0x14a761(0x1df)){console[_0x14a761(0x1de)](a69_0xd9a38e[_0x14a761(0x1b2)](_0x14a761(0x1c9)));return;}throw _0x5f3594;}const _0xfedd89=[],_0x1ce8f0=a69_0x378261({'text':_0x14a761(0x1af),'color':_0x14a761(0x20c)})['start'](),_0x919a0b=execConfigMigration(_0x4dd5a0,_0x3714b8);_0xfedd89['push'](_0x919a0b),_0x1ce8f0[_0x919a0b['ok']?_0x14a761(0x1cc):_0x14a761(0x1b1)](_0x14a761(0x1c7)+(_0x919a0b[_0x14a761(0x1d5)]??(_0x919a0b['ok']?_0x14a761(0x1ca):_0x14a761(0x1b9))));const _0xadae65=resolve(_0x3714b8,_0x14a761(0x209)),_0x483154=a69_0x378261({'text':_0x14a761(0x1fc),'color':_0x14a761(0x20c)})['start']();if(existsSync(_0xadae65))try{rmSync(_0xadae65,{'recursive':!![],'force':!![]}),_0x483154[_0x14a761(0x1cc)]('Step\x202/6:\x20.lovrabet/\x20directory\x20removed'),_0xfedd89[_0x14a761(0x1a3)]({'step':0x2,'label':_0x14a761(0x1fb),'ok':!![]});}catch(_0x33e560){_0x483154[_0x14a761(0x1b1)](_0x14a761(0x1bd)+_0x33e560[_0x14a761(0x20f)]),_0xfedd89[_0x14a761(0x1a3)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x33e560[_0x14a761(0x20f)]});}else _0x483154[_0x14a761(0x1b6)]('Step\x202/6:\x20.lovrabet/\x20not\x20found,\x20skipped'),_0xfedd89['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':_0x14a761(0x1db)});const _0x157b4f=a69_0x378261({'text':_0x14a761(0x1e8),'color':_0x14a761(0x20c)})[_0x14a761(0x1ce)](),_0x552480=execRemoveOldArtifacts(_0x4dd5a0[_0x14a761(0x1c6)]);_0xfedd89['push'](_0x552480),_0x157b4f[_0x552480['ok']?_0x14a761(0x1cc):_0x14a761(0x1b1)](_0x14a761(0x1ee)+(_0x552480[_0x14a761(0x1d5)]??(_0x552480['ok']?_0x14a761(0x1ca):_0x14a761(0x1b9))));const _0x25f7a1=a69_0x378261({'text':_0x14a761(0x1eb),'color':_0x14a761(0x20c)})[_0x14a761(0x1ce)](),_0x148ae0=execCleanMcp(_0x4dd5a0);_0xfedd89[_0x14a761(0x1a3)](_0x148ae0),_0x25f7a1[_0x148ae0['ok']?_0x14a761(0x1cc):_0x14a761(0x1b1)]('Step\x204/6:\x20MCP\x20config\x20—\x20'+(_0x148ae0['detail']??(_0x148ae0['ok']?_0x14a761(0x1ca):'failed')));const _0x33c850=a69_0x378261({'text':_0x14a761(0x1bf),'color':_0x14a761(0x20c)})[_0x14a761(0x1ce)](),_0x3973bc=execSkillsRemove(_0x3714b8);_0xfedd89[_0x14a761(0x1a3)](_0x3973bc),_0x33c850[_0x3973bc['ok']?'succeed':'fail'](_0x14a761(0x1ad)+(_0x3973bc[_0x14a761(0x1d5)]??(_0x3973bc['ok']?_0x14a761(0x1ca):_0x14a761(0x1b9))));const _0xf50a89=a69_0x378261({'text':_0x14a761(0x1ab),'color':_0x14a761(0x20c)})[_0x14a761(0x1ce)](),_0x5b80de=execSkillsAdd(_0x3714b8);_0xfedd89[_0x14a761(0x1a3)](_0x5b80de),_0xf50a89[_0x5b80de['ok']?_0x14a761(0x1cc):_0x14a761(0x1b1)](_0x14a761(0x1a2)+(_0x5b80de[_0x14a761(0x1d5)]??(_0x5b80de['ok']?_0x14a761(0x1ca):'failed'))),printSummary(_0xfedd89);const _0x5a9ddd=_0xfedd89[_0x14a761(0x1f3)](_0xf64c4e=>!_0xf64c4e['ok']);_0x5a9ddd?console[_0x14a761(0x1de)](a69_0xd9a38e[_0x14a761(0x1a6)](_0x14a761(0x1ff))):console[_0x14a761(0x1de)](a69_0xd9a38e[_0x14a761(0x1d6)]('Upgrade\x20completed\x20successfully!'));}const flagDefs=[{'name':a69_0x145ed7(0x211),'type':a69_0x145ed7(0x207),'description':'Skip\x20confirmation\x20prompt','default':![]}];export const upgradeCommand={'name':'upgrade','description':a69_0x145ed7(0x1d8),'flags':flagDefs,async 'run'(_0x26b950,_0x5e4dd2,_0x1ef7a9){await upgradeApp(_0x26b950,_0x1ef7a9);}};function a69_0x218a(){const _0x31a5ec=['oldPath','oldArtifacts','Step\x201/6:\x20Config\x20migration\x20—\x20','\x20\x20\x20\x20\x20\x20\x20','Upgrade\x20cancelled.','done','object','succeed','isDirectory','start','2692110dQgWGz','filter','mcpServers','Clean\x20MCP\x20config','.cursor/mcp.json','5905epZrzM','detail','green','396VDKzge','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','string','\x20\x20Fields\x20to\x20migrate:\x20','skipped','cwd','length','log','CANCEL','FOUND','not\x20found\x20(will\x20create)','bold','parse','includes','lovrabet/rabetbase','Skill\x20swap:','error','Step\x203/6:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','Config\x20migration','MCP\x20config:','Step\x204/6:\x20Cleaning\x20MCP\x20config...','removed\x20','\x20removed','Step\x203/6:\x20Legacy\x20artifacts\x20—\x20','\x20\x20New\x20config\x20(.rabetbase.json):\x20','values','.bak','Remove\x20legacy\x20artifacts','some','Install\x20new\x20skill','args','\x20(backup:\x20','entries','no\x20legacy\x20entry','Legacy\x20artifacts:','7018206uBTzhd','Remove\x20.lovrabet/','Step\x202/6:\x20Removing\x20.lovrabet/\x20directory...','8nhHDys','undefined','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','keys','60sRsYyX','exit\x20','none\x20found','FAIL','join','hasNewConfig','boolean','3422867GQkKXe','.lovrabet','isArray','4802138CmtMwh','cyan','@lovrabet/dataset-mcp-server','lovrabet/lovrabet-skill\x20removed','message','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','yes','stringify','2520657fPYtoX','===\x20Upgrade\x20Summary\x20===','Step\x206/6:\x20Install\x20new\x20skill\x20—\x20','push','needsSkillSwap','\x20→\x20','yellow','path','utf8','\x20from\x20','fields','Step\x206/6:\x20Installing\x20new\x20skill...','246psvCWJ','Step\x205/6:\x20Remove\x20old\x20skill\x20—\x20','.cursor/rules/lovrabet_rules.mdc','Step\x201/6:\x20Migrating\x20config...','status','fail','gray','10497qaUxOQ','already\x20exists\x20(will\x20merge)','nonInteractive','info','\x20removed\x20(','no\x20legacy\x20config\x20found','failed','Config\x20file:','===\x20Upgrade\x20Analysis\x20===','configMigration','Step\x202/6:\x20.lovrabet/\x20removal\x20failed\x20—\x20','lovrabet/rabetbase\x20installed\x20globally','Step\x205/6:\x20Removing\x20old\x20skill...','inherit','files','oldMcpConfig','Proceed\x20with\x20upgrade?','red'];a69_0x218a=function(){return _0x31a5ec;};return a69_0x218a();}
@@ -1 +1 @@
1
- function a70_0x264b(){const _0x17bbf3=['has','Diagnostics','15259800Xvrcgj','show','clear','1785624tZcUwW','App\x20Management','Skills','<script>','run','module','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','push','isSingleCommand','Authentication','7249335roXIoI','skill','Code\x20Generation','BFF\x20Scripts','init','API','start','View\x20command\x20history\x20logs','Menu','upgrade','Dataset\x20&\x20Operations','3iQFnlz','create','risk','wildcardModule','read','SQL\x20Queries','login','Self\x20Update','Login\x20via\x20browser','Logs','command','values','Run\x20Scripts','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','28CFDafg','Quick\x20Start','Install\x20developer\x20skill\x20package','set','Project','description','logout','36iYRZKL','1630422kZqBAd','Create\x20a\x20new\x20project','Run\x20any\x20package.json\x20script','405438Jestuh','install','map','37398XPtEyS','service','build','get','project','17398304NnzAPH','172rNSqye','from','write'];a70_0x264b=function(){return _0x17bbf3;};return a70_0x264b();}const a70_0x1feeb0=a70_0x5f3a;(function(_0x37c4b0,_0x2ec5f5){const _0x4292ed=a70_0x5f3a,_0x41e05a=_0x37c4b0();while(!![]){try{const _0x2b9c6f=parseInt(_0x4292ed(0x19b))/0x1*(parseInt(_0x4292ed(0x1b4))/0x2)+parseInt(_0x4292ed(0x1b7))/0x3*(parseInt(_0x4292ed(0x1bd))/0x4)+-parseInt(_0x4292ed(0x190))/0x5+-parseInt(_0x4292ed(0x1b1))/0x6*(parseInt(_0x4292ed(0x1a9))/0x7)+parseInt(_0x4292ed(0x186))/0x8*(-parseInt(_0x4292ed(0x1b0))/0x9)+parseInt(_0x4292ed(0x1c2))/0xa+parseInt(_0x4292ed(0x1bc))/0xb;if(_0x2b9c6f===_0x2ec5f5)break;else _0x41e05a['push'](_0x41e05a['shift']());}catch(_0x122277){_0x41e05a['push'](_0x41e05a['shift']());}}}(a70_0x264b,0xc8bc4));import{initCommand}from'./init.js';import{createCommand}from'./create.js';import{smartInitCommand}from'./smart-init.js';import{upgradeCommand}from'./project-upgrade.js';import{runCommand}from'./run.js';import{authCommand}from'./auth.js';import{logoutCommand}from'./logout.js';import{skillCommand}from'./skill.js';import{logsCommand}from'./logs.js';import{apiDefinitions}from'./api/index.js';import{bffDefinitions}from'./bff/index.js';import{sqlDefinitions}from'./sql/index.js';import{datasetDefinitions}from'./dataset/index.js';import{codegenDefinitions}from'./codegen/index.js';import{menuDefinitions}from'./menu/index.js';import{appDefinitions}from'./app/index.js';import{configDefinitions}from'./config/index.js';import{doctorDefinition}from'./doctor.js';import{updateDefinition}from'./cli-update.js';export const serviceRegistry=[];const serviceByName=new Map(),legacyHandlers=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x2cbeae){const _0x47e50c=a70_0x5f3a;for(const _0x37f50d of _0x2cbeae){definitions[_0x47e50c(0x1ac)](_0x37f50d[_0x47e50c(0x1b8)]+':'+_0x37f50d[_0x47e50c(0x1a5)],_0x37f50d);let _0x1e334c=serviceGroups[_0x47e50c(0x1ba)](_0x37f50d[_0x47e50c(0x1b8)]);!_0x1e334c&&(_0x1e334c=[],serviceGroups[_0x47e50c(0x1ac)](_0x37f50d[_0x47e50c(0x1b8)],_0x1e334c)),_0x1e334c['push'](_0x37f50d);}}function registerDeclarativeService(_0x401b47,_0xed776,_0x45e3bb){const _0x429697=a70_0x5f3a;registerDefinitions(_0xed776);const _0x34b85a=_0x5100c1=>_0x5100c1===_0x429697(0x19f)?'':_0x5100c1===_0x429697(0x1bf)?'\x20\x20[write]':'\x20\x20[high-risk-write]',_0x299eac={'service':_0xed776[0x0]['service'],'label':_0x401b47,'commands':_0xed776[_0x429697(0x1b6)](_0x3052e8=>({'command':_0x3052e8[_0x429697(0x1a5)],'description':_0x3052e8[_0x429697(0x1ae)],'tag':_0x34b85a(_0x3052e8[_0x429697(0x19d)])})),'declarative':!![],'isSingleCommand':_0x45e3bb?.[_0x429697(0x18e)]};serviceRegistry[_0x429697(0x18d)](_0x299eac),serviceByName['set'](_0x299eac[_0x429697(0x1b8)],_0x299eac);}function registerLegacyService(_0x10cf6e,_0x58ae64,_0x2daa45,_0x4ca001){const _0x5d373d=a70_0x5f3a,_0x2f0a6a={'service':_0x10cf6e,'label':_0x58ae64,'commands':_0x2daa45['map'](_0x397f06=>({'command':_0x397f06[_0x5d373d(0x1a5)],'description':_0x397f06[_0x5d373d(0x1ae)],'tag':''})),'declarative':![],'defaultCommand':_0x4ca001?.['defaultCommand'],'wildcardModule':_0x4ca001?.[_0x5d373d(0x19e)],'isSingleCommand':_0x4ca001?.[_0x5d373d(0x18e)]};serviceRegistry['push'](_0x2f0a6a),serviceByName['set'](_0x10cf6e,_0x2f0a6a);for(const _0x1e3811 of _0x2daa45){legacyHandlers[_0x5d373d(0x1ac)](_0x10cf6e+':'+_0x1e3811[_0x5d373d(0x1a5)],{'module':_0x1e3811[_0x5d373d(0x18b)]});}}registerLegacyService(a70_0x1feeb0(0x194),a70_0x1feeb0(0x1aa),[{'command':a70_0x1feeb0(0x18a),'description':a70_0x1feeb0(0x1a8),'module':smartInitCommand}],{'defaultCommand':a70_0x1feeb0(0x18a),'isSingleCommand':!![]}),registerLegacyService(a70_0x1feeb0(0x1bb),a70_0x1feeb0(0x1ad),[{'command':a70_0x1feeb0(0x194),'description':'Initialize\x20.rabetbase.json\x20config','module':initCommand},{'command':a70_0x1feeb0(0x19c),'description':a70_0x1feeb0(0x1b2),'module':createCommand},{'command':a70_0x1feeb0(0x199),'description':a70_0x1feeb0(0x18c),'module':upgradeCommand}]),registerDeclarativeService(a70_0x1feeb0(0x187),appDefinitions),registerLegacyService(a70_0x1feeb0(0x18a),a70_0x1feeb0(0x1a7),[{'command':a70_0x1feeb0(0x189),'description':a70_0x1feeb0(0x1b3),'module':runCommand}],{'wildcardModule':runCommand}),registerLegacyService('auth',a70_0x1feeb0(0x18f),[{'command':'login','description':a70_0x1feeb0(0x1a3),'module':authCommand},{'command':'logout','description':'Clear\x20login\x20session','module':logoutCommand}],{'defaultCommand':a70_0x1feeb0(0x1a1)}),registerDeclarativeService(a70_0x1feeb0(0x1a2),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a70_0x1feeb0(0x1c1),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('Configuration',configDefinitions),registerDeclarativeService(a70_0x1feeb0(0x195),apiDefinitions),registerDeclarativeService(a70_0x1feeb0(0x198),menuDefinitions),registerDeclarativeService(a70_0x1feeb0(0x19a),datasetDefinitions),registerDeclarativeService(a70_0x1feeb0(0x193),bffDefinitions),registerDeclarativeService(a70_0x1feeb0(0x1a0),sqlDefinitions),registerDeclarativeService(a70_0x1feeb0(0x192),codegenDefinitions),registerLegacyService(a70_0x1feeb0(0x191),a70_0x1feeb0(0x188),[{'command':a70_0x1feeb0(0x1b5),'description':a70_0x1feeb0(0x1ab),'module':skillCommand}]),registerLegacyService('logs',a70_0x1feeb0(0x1a4),[{'command':a70_0x1feeb0(0x1c3),'description':a70_0x1feeb0(0x197),'module':logsCommand},{'command':a70_0x1feeb0(0x185),'description':'Clear\x20command\x20history\x20logs','module':logsCommand}],{'defaultCommand':a70_0x1feeb0(0x1c3)});export const deprecatedAliases={'create':{'service':a70_0x1feeb0(0x1bb),'command':a70_0x1feeb0(0x19c)},'start':{'service':a70_0x1feeb0(0x18a),'command':a70_0x1feeb0(0x196)},'build':{'service':a70_0x1feeb0(0x18a),'command':a70_0x1feeb0(0x1b9)},'preview':{'service':a70_0x1feeb0(0x18a),'command':'preview'},'logout':{'service':'auth','command':a70_0x1feeb0(0x1af)},'skills':{'service':a70_0x1feeb0(0x191),'command':a70_0x1feeb0(0x1b5)}};export function findDefinition(_0x3e0afa,_0xd5eb86){const _0xe42d00=a70_0x1feeb0;return definitions[_0xe42d00(0x1ba)](_0x3e0afa+':'+_0xd5eb86);}export function isKnownService(_0x441889){const _0xc9e1d9=a70_0x1feeb0;return serviceByName[_0xc9e1d9(0x1c0)](_0x441889);}export function isDeclarativeService(_0x566664){const _0xe5d43c=a70_0x1feeb0;return serviceGroups[_0xe5d43c(0x1c0)](_0x566664);}function a70_0x5f3a(_0x3800cd,_0x833d94){_0x3800cd=_0x3800cd-0x185;const _0x264ba6=a70_0x264b();let _0x5f3aaa=_0x264ba6[_0x3800cd];return _0x5f3aaa;}export function getServiceEntry(_0x31d823){const _0x2e67fd=a70_0x1feeb0;return serviceByName[_0x2e67fd(0x1ba)](_0x31d823);}export function getLegacyHandler(_0x26e74a,_0x1e4fd2){const _0x22abaf=a70_0x1feeb0;return legacyHandlers[_0x22abaf(0x1ba)](_0x26e74a+':'+_0x1e4fd2);}export function getAllDefinitions(){const _0x1e726b=a70_0x1feeb0;return Array[_0x1e726b(0x1be)](definitions[_0x1e726b(0x1a6)]());}
1
+ const a70_0x4323e0=a70_0xb9c0;(function(_0x1abbb6,_0x4015ef){const _0x1b7a49=a70_0xb9c0,_0x9f65ed=_0x1abbb6();while(!![]){try{const _0x10fbb7=parseInt(_0x1b7a49(0x113))/0x1+parseInt(_0x1b7a49(0x101))/0x2+-parseInt(_0x1b7a49(0x111))/0x3+-parseInt(_0x1b7a49(0xfc))/0x4+-parseInt(_0x1b7a49(0xe9))/0x5*(-parseInt(_0x1b7a49(0xf1))/0x6)+parseInt(_0x1b7a49(0xe5))/0x7+-parseInt(_0x1b7a49(0x118))/0x8;if(_0x10fbb7===_0x4015ef)break;else _0x9f65ed['push'](_0x9f65ed['shift']());}catch(_0xf40e42){_0x9f65ed['push'](_0x9f65ed['shift']());}}}(a70_0x50f6,0xb36b9));import{initCommand}from'./init.js';import{createCommand}from'./create.js';import{smartInitCommand}from'./smart-init.js';import{upgradeCommand}from'./project-upgrade.js';import{runCommand}from'./run.js';import{authCommand}from'./auth.js';import{logoutCommand}from'./logout.js';import{skillCommand}from'./skill.js';import{logsCommand}from'./logs.js';import{apiDefinitions}from'./api/index.js';import{bffDefinitions}from'./bff/index.js';import{sqlDefinitions}from'./sql/index.js';import{datasetDefinitions}from'./dataset/index.js';import{codegenDefinitions}from'./codegen/index.js';import{menuDefinitions}from'./menu/index.js';import{appDefinitions}from'./app/index.js';import{configDefinitions}from'./config/index.js';import{doctorDefinition}from'./doctor.js';function a70_0x50f6(){const _0x5d805c=['module','Run\x20Scripts','Install\x20developer\x20skill\x20package','logs','App\x20Management','get','command','preview','Create\x20a\x20new\x20project','5582464lliSAX','clear','login','Dataset\x20&\x20Operations','Clear\x20command\x20history\x20logs','603808NLezfc','Logs','start','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','run','View\x20command\x20history\x20logs','BFF\x20Scripts','Clear\x20login\x20session','Skills','init','Initialize\x20.rabetbase.json\x20config','show','service','auth','defaultCommand','skill','358332JdBsDx','has','445905BZADxN','write','Run\x20any\x20package.json\x20script','risk','install','367912vyiywO','Code\x20Generation','values','\x20\x20[high-risk-write]','Self\x20Update','6639983laXpEF','description','set','Authentication','10eCXwMR','API','Project','logout','project','Menu','isSingleCommand','Login\x20via\x20browser','1798728ChQNLo','push'];a70_0x50f6=function(){return _0x5d805c;};return a70_0x50f6();}function a70_0xb9c0(_0x4f1997,_0x16b815){_0x4f1997=_0x4f1997-0xe1;const _0x50f6a2=a70_0x50f6();let _0xb9c06=_0x50f6a2[_0x4f1997];return _0xb9c06;}import{updateDefinition}from'./cli-update.js';export const serviceRegistry=[];const serviceByName=new Map(),legacyHandlers=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x492d73){const _0x59ad1e=a70_0xb9c0;for(const _0x201d84 of _0x492d73){definitions[_0x59ad1e(0xe7)](_0x201d84[_0x59ad1e(0x10d)]+':'+_0x201d84[_0x59ad1e(0xf9)],_0x201d84);let _0x5bf1f3=serviceGroups[_0x59ad1e(0xf8)](_0x201d84[_0x59ad1e(0x10d)]);!_0x5bf1f3&&(_0x5bf1f3=[],serviceGroups['set'](_0x201d84[_0x59ad1e(0x10d)],_0x5bf1f3)),_0x5bf1f3[_0x59ad1e(0xf2)](_0x201d84);}}function registerDeclarativeService(_0x4e93e3,_0x714334,_0x2d987b){const _0x3fabea=a70_0xb9c0;registerDefinitions(_0x714334);const _0x2b4346=_0x5cc31b=>_0x5cc31b==='read'?'':_0x5cc31b===_0x3fabea(0x114)?'\x20\x20[write]':_0x3fabea(0xe3),_0x4385c8={'service':_0x714334[0x0]['service'],'label':_0x4e93e3,'commands':_0x714334['map'](_0x5137c2=>({'command':_0x5137c2['command'],'description':_0x5137c2[_0x3fabea(0xe6)],'tag':_0x2b4346(_0x5137c2[_0x3fabea(0x116)])})),'declarative':!![],'isSingleCommand':_0x2d987b?.[_0x3fabea(0xef)]};serviceRegistry[_0x3fabea(0xf2)](_0x4385c8),serviceByName[_0x3fabea(0xe7)](_0x4385c8['service'],_0x4385c8);}function registerLegacyService(_0x977641,_0x24a683,_0x2acb14,_0x73ef8){const _0x3f1648=a70_0xb9c0,_0x201244={'service':_0x977641,'label':_0x24a683,'commands':_0x2acb14['map'](_0x3dd9a4=>({'command':_0x3dd9a4[_0x3f1648(0xf9)],'description':_0x3dd9a4[_0x3f1648(0xe6)],'tag':''})),'declarative':![],'defaultCommand':_0x73ef8?.[_0x3f1648(0x10f)],'wildcardModule':_0x73ef8?.['wildcardModule'],'isSingleCommand':_0x73ef8?.[_0x3f1648(0xef)]};serviceRegistry[_0x3f1648(0xf2)](_0x201244),serviceByName['set'](_0x977641,_0x201244);for(const _0x31f64e of _0x2acb14){legacyHandlers[_0x3f1648(0xe7)](_0x977641+':'+_0x31f64e['command'],{'module':_0x31f64e[_0x3f1648(0xf3)]});}}registerLegacyService(a70_0x4323e0(0x10a),'Quick\x20Start',[{'command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','module':smartInitCommand}],{'defaultCommand':a70_0x4323e0(0x105),'isSingleCommand':!![]}),registerLegacyService(a70_0x4323e0(0xed),a70_0x4323e0(0xeb),[{'command':a70_0x4323e0(0x10a),'description':a70_0x4323e0(0x10b),'module':initCommand},{'command':'create','description':a70_0x4323e0(0xfb),'module':createCommand},{'command':'upgrade','description':a70_0x4323e0(0x104),'module':upgradeCommand}]),registerDeclarativeService(a70_0x4323e0(0xf7),appDefinitions),registerLegacyService('run',a70_0x4323e0(0xf4),[{'command':'<script>','description':a70_0x4323e0(0x115),'module':runCommand}],{'wildcardModule':runCommand}),registerLegacyService(a70_0x4323e0(0x10e),a70_0x4323e0(0xe8),[{'command':a70_0x4323e0(0xfe),'description':a70_0x4323e0(0xf0),'module':authCommand},{'command':a70_0x4323e0(0xec),'description':a70_0x4323e0(0x108),'module':logoutCommand}],{'defaultCommand':a70_0x4323e0(0xfe)}),registerDeclarativeService(a70_0x4323e0(0xe4),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('Diagnostics',[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('Configuration',configDefinitions),registerDeclarativeService(a70_0x4323e0(0xea),apiDefinitions),registerDeclarativeService(a70_0x4323e0(0xee),menuDefinitions),registerDeclarativeService(a70_0x4323e0(0xff),datasetDefinitions),registerDeclarativeService(a70_0x4323e0(0x107),bffDefinitions),registerDeclarativeService('SQL\x20Queries',sqlDefinitions),registerDeclarativeService(a70_0x4323e0(0xe1),codegenDefinitions),registerLegacyService('skill',a70_0x4323e0(0x109),[{'command':'install','description':a70_0x4323e0(0xf5),'module':skillCommand}]),registerLegacyService(a70_0x4323e0(0xf6),a70_0x4323e0(0x102),[{'command':a70_0x4323e0(0x10c),'description':a70_0x4323e0(0x106),'module':logsCommand},{'command':a70_0x4323e0(0xfd),'description':a70_0x4323e0(0x100),'module':logsCommand}],{'defaultCommand':a70_0x4323e0(0x10c)});export const deprecatedAliases={'create':{'service':a70_0x4323e0(0xed),'command':'create'},'start':{'service':a70_0x4323e0(0x105),'command':a70_0x4323e0(0x103)},'build':{'service':a70_0x4323e0(0x105),'command':'build'},'preview':{'service':'run','command':a70_0x4323e0(0xfa)},'logout':{'service':a70_0x4323e0(0x10e),'command':a70_0x4323e0(0xec)},'skills':{'service':a70_0x4323e0(0x110),'command':a70_0x4323e0(0x117)}};export function findDefinition(_0x436942,_0x1ed58b){return definitions['get'](_0x436942+':'+_0x1ed58b);}export function isKnownService(_0x5343bf){return serviceByName['has'](_0x5343bf);}export function isDeclarativeService(_0x3d8370){const _0x211ee5=a70_0x4323e0;return serviceGroups[_0x211ee5(0x112)](_0x3d8370);}export function getServiceEntry(_0x57b513){const _0x42157d=a70_0x4323e0;return serviceByName[_0x42157d(0xf8)](_0x57b513);}export function getLegacyHandler(_0x50dc9d,_0x1855e2){const _0x5412b3=a70_0x4323e0;return legacyHandlers[_0x5412b3(0xf8)](_0x50dc9d+':'+_0x1855e2);}export function getAllDefinitions(){const _0xeae7e3=a70_0x4323e0;return Array['from'](definitions[_0xeae7e3(0xe2)]());}
@@ -1 +1 @@
1
- const a71_0x52fd8e=a71_0x29ab;(function(_0x4291b3,_0x3dce44){const _0x5406e1=a71_0x29ab,_0x350274=_0x4291b3();while(!![]){try{const _0x3b3677=-parseInt(_0x5406e1(0x1a4))/0x1+parseInt(_0x5406e1(0x185))/0x2*(parseInt(_0x5406e1(0x182))/0x3)+-parseInt(_0x5406e1(0x1b0))/0x4*(parseInt(_0x5406e1(0x186))/0x5)+parseInt(_0x5406e1(0x183))/0x6+parseInt(_0x5406e1(0x1a7))/0x7+-parseInt(_0x5406e1(0x17e))/0x8*(-parseInt(_0x5406e1(0x1a3))/0x9)+parseInt(_0x5406e1(0x19e))/0xa;if(_0x3b3677===_0x3dce44)break;else _0x350274['push'](_0x350274['shift']());}catch(_0x1d683a){_0x350274['push'](_0x350274['shift']());}}}(a71_0x3234,0x8eed5));import{readFileSync,existsSync}from'node:fs';import{resolve,delimiter,join}from'node:path';import{spawn}from'node:child_process';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{CliErrors}from'../errors.js';const VERSION_CHECK_SCRIPTS=new Set([a71_0x52fd8e(0x191),a71_0x52fd8e(0x1ac)]);function readPackageScripts(_0x313aeb){const _0xf15d82=a71_0x52fd8e,_0x3da97d=resolve(_0x313aeb,'package.json');if(!existsSync(_0x3da97d))return null;try{const _0x2607d3=JSON['parse'](readFileSync(_0x3da97d,'utf-8'));return _0x2607d3[_0xf15d82(0x17d)]??{};}catch{return null;}}function detectPackageManager(_0x45fe26){const _0x457e48=a71_0x52fd8e;if(existsSync(resolve(_0x45fe26,_0x457e48(0x18b)))||existsSync(resolve(_0x45fe26,_0x457e48(0x1a6))))return _0x457e48(0x19d);if(existsSync(resolve(_0x45fe26,'pnpm-lock.yaml')))return _0x457e48(0x1a8);if(existsSync(resolve(_0x45fe26,_0x457e48(0x198))))return _0x457e48(0x17b);return _0x457e48(0x188);}async function versionCheck(_0x714167){const _0x4d5746=a71_0x52fd8e,_0x473d9c=await checkCliVersion();if(_0x473d9c[_0x4d5746(0x17f)])printCliUpgradeWarning(_0x473d9c);const _0x246623=await checkSdkVersion(_0x714167);if(_0x246623[_0x4d5746(0x17f)])printSdkUpgradeWarning(_0x246623);}function a71_0x29ab(_0x446f59,_0x8f81c4){_0x446f59=_0x446f59-0x17b;const _0x3234fe=a71_0x3234();let _0x29aba6=_0x3234fe[_0x446f59];return _0x29aba6;}function spawnScript(_0x2078a5,_0x5257bb,_0xe150e,_0x859e26){return new Promise((_0x4cdac1,_0x47c983)=>{const _0x99833f=a71_0x29ab,_0x459756=['run',_0x5257bb,..._0xe150e],_0x4059be=spawn(_0x2078a5,_0x459756,{'cwd':_0x859e26,'stdio':_0x99833f(0x17c),'shell':!![],'env':{...process.env,'PATH':''+join(_0x859e26,_0x99833f(0x184),'.bin')+delimiter+process.env.PATH}});_0x4059be['on'](_0x99833f(0x1a0),_0x4e76ed=>{if(_0x4e76ed===0x0||_0x4e76ed===null)_0x4cdac1();else _0x47c983(new Error(_0x2078a5+'\x20run\x20'+_0x5257bb+'\x20exited\x20with\x20code\x20'+_0x4e76ed));}),_0x4059be['on'](_0x99833f(0x1a9),_0x47c983);});}function spawnViteBuildWatch(_0x73ffb1){return new Promise((_0x1355c7,_0x500be7)=>{const _0x5a2bc8=a71_0x29ab,_0x138a08=spawn(_0x5a2bc8(0x194),[_0x5a2bc8(0x19f),_0x5a2bc8(0x192)],{'cwd':_0x73ffb1,'stdio':_0x5a2bc8(0x17c),'shell':!![],'env':{...process.env,'PATH':''+join(_0x73ffb1,'node_modules','.bin')+delimiter+process.env.PATH}});_0x138a08['on'](_0x5a2bc8(0x1a0),_0x406090=>{const _0x550be7=_0x5a2bc8;if(_0x406090===0x0||_0x406090===null)_0x1355c7();else _0x500be7(new Error(_0x550be7(0x195)+_0x406090));}),_0x138a08['on']('error',_0x500be7);});}function spawnVitePreview(_0x3ea9cb){return new Promise((_0x2af304,_0x418a26)=>{const _0x1d838a=a71_0x29ab,_0x2f4803=spawn(_0x1d838a(0x194),[_0x1d838a(0x193)],{'cwd':_0x3ea9cb,'stdio':_0x1d838a(0x17c),'shell':!![],'env':{...process.env,'PATH':''+join(_0x3ea9cb,_0x1d838a(0x184),_0x1d838a(0x1a1))+delimiter+process.env.PATH}});_0x2f4803['on'](_0x1d838a(0x1a0),_0x1b8590=>{const _0x3f9006=_0x1d838a;if(_0x1b8590===0x0||_0x1b8590===null)_0x2af304();else _0x418a26(new Error(_0x3f9006(0x18c)+_0x1b8590));}),_0x2f4803['on'](_0x1d838a(0x1a9),_0x418a26);});}const flagDefs=[{'name':a71_0x52fd8e(0x18a),'type':a71_0x52fd8e(0x19a),'description':a71_0x52fd8e(0x18f),'default':![]}];function a71_0x3234(){const _0x3ed498=['\x20\x20\x20\x20','660735ethyvf','436471LxdsxV','(none)','bun.lock','966525ARsceu','pnpm','error','No\x20scripts\x20defined\x20in\x20package.json.','padEnd','dev','preview\x20--watch\x20mode:\x20vite\x20build\x20--watch\x20+\x20vite\x20preview','\x20run\x20','has','20684WOJWjw','\x22\x20not\x20found\x20in\x20package.json.','keys','yarn','inherit','scripts','8sdhsEa','needsUpgrade','validation','run','27vKjqZa','1750374CmWkAF','node_modules','93766vXHiCF','415ltZBhX','logger','npm','Run\x20a\x20package.json\x20script','watch','bun.lockb','vite\x20preview\x20exited\x20with\x20code\x20','info','join','Enable\x20watch\x20mode\x20for\x20preview','slice','start','--watch','preview','vite','vite\x20build\x20--watch\x20exited\x20with\x20code\x20','log','max','yarn.lock','all','boolean','length','Available:\x20','bun','5259270bTSJUV','build','close','.bin'];a71_0x3234=function(){return _0x3ed498;};return a71_0x3234();}export const runCommand={'name':a71_0x52fd8e(0x181),'description':a71_0x52fd8e(0x189),'flags':flagDefs,async 'run'(_0x377003,_0x171de3,_0x42eec0){const _0x12d8bd=a71_0x52fd8e,_0x24d241=process['cwd'](),_0x2c04a9=_0x171de3[0x0],_0x8d5851=_0x171de3[_0x12d8bd(0x190)](0x1),_0x36d82a=readPackageScripts(_0x24d241);if(!_0x36d82a)throw CliErrors[_0x12d8bd(0x180)]('No\x20package.json\x20found\x20in\x20current\x20directory.');if(!_0x2c04a9){const _0x52185d=Object[_0x12d8bd(0x1b2)](_0x36d82a);if(_0x52185d[_0x12d8bd(0x19b)]===0x0)console[_0x12d8bd(0x196)](_0x12d8bd(0x1aa));else{console[_0x12d8bd(0x196)]('\x0a\x20\x20Available\x20scripts:\x0a');const _0x12570e=Math[_0x12d8bd(0x197)](..._0x52185d['map'](_0x431da1=>_0x431da1[_0x12d8bd(0x19b)]));for(const [_0x27ed05,_0x2fa357]of Object['entries'](_0x36d82a)){console[_0x12d8bd(0x196)](_0x12d8bd(0x1a2)+_0x27ed05[_0x12d8bd(0x1ab)](_0x12570e+0x2)+_0x2fa357);}console[_0x12d8bd(0x196)]('\x0a\x20\x20Usage:\x20rabetbase\x20run\x20<script>\x0a');}return;}if(!_0x36d82a[_0x2c04a9])throw CliErrors['validation']('Script\x20\x22'+_0x2c04a9+_0x12d8bd(0x1b1),_0x12d8bd(0x19c)+(Object[_0x12d8bd(0x1b2)](_0x36d82a)['join'](',\x20')||_0x12d8bd(0x1a5)));const _0x432a4b=detectPackageManager(_0x24d241);VERSION_CHECK_SCRIPTS[_0x12d8bd(0x1af)](_0x2c04a9)&&await versionCheck(_0x24d241);if(_0x2c04a9===_0x12d8bd(0x193)&&_0x42eec0['watch']){_0x377003[_0x12d8bd(0x187)]['info'](_0x12d8bd(0x181),_0x12d8bd(0x1ad)),await Promise[_0x12d8bd(0x199)]([spawnViteBuildWatch(_0x24d241),spawnVitePreview(_0x24d241)]);return;}_0x377003[_0x12d8bd(0x187)][_0x12d8bd(0x18d)](_0x12d8bd(0x181),_0x432a4b+_0x12d8bd(0x1ae)+_0x2c04a9+(_0x8d5851[_0x12d8bd(0x19b)]?'\x20'+_0x8d5851[_0x12d8bd(0x18e)]('\x20'):'')),await spawnScript(_0x432a4b,_0x2c04a9,_0x8d5851,_0x24d241);}};
1
+ const a71_0x105e44=a71_0x531e;(function(_0x208236,_0x284626){const _0x17d7ea=a71_0x531e,_0x89af7e=_0x208236();while(!![]){try{const _0x355eef=-parseInt(_0x17d7ea(0x12d))/0x1*(-parseInt(_0x17d7ea(0x11d))/0x2)+parseInt(_0x17d7ea(0x139))/0x3+parseInt(_0x17d7ea(0x144))/0x4*(-parseInt(_0x17d7ea(0x134))/0x5)+-parseInt(_0x17d7ea(0x118))/0x6+parseInt(_0x17d7ea(0x14b))/0x7*(parseInt(_0x17d7ea(0x147))/0x8)+-parseInt(_0x17d7ea(0x114))/0x9*(-parseInt(_0x17d7ea(0x131))/0xa)+-parseInt(_0x17d7ea(0x117))/0xb;if(_0x355eef===_0x284626)break;else _0x89af7e['push'](_0x89af7e['shift']());}catch(_0x27fce7){_0x89af7e['push'](_0x89af7e['shift']());}}}(a71_0x53ca,0x644ff));import{readFileSync,existsSync}from'node:fs';import{resolve,delimiter,join}from'node:path';import{spawn}from'node:child_process';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{CliErrors}from'../errors.js';const VERSION_CHECK_SCRIPTS=new Set(['start',a71_0x105e44(0x143)]);function readPackageScripts(_0xadea43){const _0x35d137=a71_0x105e44,_0x1cc61b=resolve(_0xadea43,_0x35d137(0x135));if(!existsSync(_0x1cc61b))return null;try{const _0x3c684d=JSON[_0x35d137(0x12f)](readFileSync(_0x1cc61b,_0x35d137(0x13a)));return _0x3c684d[_0x35d137(0x12b)]??{};}catch{return null;}}function detectPackageManager(_0x4133ed){const _0x149562=a71_0x105e44;if(existsSync(resolve(_0x4133ed,'bun.lockb'))||existsSync(resolve(_0x4133ed,'bun.lock')))return'bun';if(existsSync(resolve(_0x4133ed,_0x149562(0x120))))return _0x149562(0x145);if(existsSync(resolve(_0x4133ed,_0x149562(0x129))))return _0x149562(0x12e);return _0x149562(0x133);}async function versionCheck(_0x2b499a){const _0x46289d=a71_0x105e44,_0x4f8564=await checkCliVersion();if(_0x4f8564['needsUpgrade'])printCliUpgradeWarning(_0x4f8564);const _0x240fae=await checkSdkVersion(_0x2b499a);if(_0x240fae[_0x46289d(0x148)])printSdkUpgradeWarning(_0x240fae);}function a71_0x53ca(){const _0x45240f=['scripts','keys','43723QPNCLE','yarn','parse','Enable\x20watch\x20mode\x20for\x20preview','4289180YOqpjK','Available:\x20','npm','95ycaBbe','package.json','log','error','\x20run\x20','1340841JPRxqX','utf-8','preview','max','No\x20scripts\x20defined\x20in\x20package.json.','vite','close','node_modules','all','watch','dev','26656PqMhsA','pnpm','entries','8RjNnim','needsUpgrade','build','vite\x20preview\x20exited\x20with\x20code\x20','2264913DUjevz','length','info','9TjKmjd','(none)','validation','7103019RdPOWq','1933566UPGhbE','\x22\x20not\x20found\x20in\x20package.json.','run','join','logger','14NwVQks','\x0a\x20\x20Usage:\x20rabetbase\x20run\x20<script>\x0a','--watch','pnpm-lock.yaml','Script\x20\x22','\x20\x20\x20\x20','preview\x20--watch\x20mode:\x20vite\x20build\x20--watch\x20+\x20vite\x20preview','vite\x20build\x20--watch\x20exited\x20with\x20code\x20','No\x20package.json\x20found\x20in\x20current\x20directory.','padEnd','.bin','boolean','yarn.lock','has'];a71_0x53ca=function(){return _0x45240f;};return a71_0x53ca();}function spawnScript(_0x31aa07,_0x5e895b,_0x19e2e5,_0x5b5702){return new Promise((_0x4ba18f,_0x10dc31)=>{const _0x512ee2=a71_0x531e,_0x4540c5=['run',_0x5e895b,..._0x19e2e5],_0x2eb07b=spawn(_0x31aa07,_0x4540c5,{'cwd':_0x5b5702,'stdio':'inherit','shell':!![],'env':{...process.env,'PATH':''+join(_0x5b5702,_0x512ee2(0x140),_0x512ee2(0x127))+delimiter+process.env.PATH}});_0x2eb07b['on']('close',_0x53a49b=>{const _0x24a12b=_0x512ee2;if(_0x53a49b===0x0||_0x53a49b===null)_0x4ba18f();else _0x10dc31(new Error(_0x31aa07+_0x24a12b(0x138)+_0x5e895b+'\x20exited\x20with\x20code\x20'+_0x53a49b));}),_0x2eb07b['on'](_0x512ee2(0x137),_0x10dc31);});}function spawnViteBuildWatch(_0x3e128f){return new Promise((_0x432f22,_0x14c072)=>{const _0x19cfad=a71_0x531e,_0x3621d5=spawn(_0x19cfad(0x13e),[_0x19cfad(0x149),_0x19cfad(0x11f)],{'cwd':_0x3e128f,'stdio':'inherit','shell':!![],'env':{...process.env,'PATH':''+join(_0x3e128f,'node_modules','.bin')+delimiter+process.env.PATH}});_0x3621d5['on'](_0x19cfad(0x13f),_0x17210b=>{const _0x417b88=_0x19cfad;if(_0x17210b===0x0||_0x17210b===null)_0x432f22();else _0x14c072(new Error(_0x417b88(0x124)+_0x17210b));}),_0x3621d5['on']('error',_0x14c072);});}function spawnVitePreview(_0x119f4e){return new Promise((_0x237398,_0x2965d8)=>{const _0x402855=a71_0x531e,_0x1fa0f9=spawn(_0x402855(0x13e),[_0x402855(0x13b)],{'cwd':_0x119f4e,'stdio':'inherit','shell':!![],'env':{...process.env,'PATH':''+join(_0x119f4e,_0x402855(0x140),_0x402855(0x127))+delimiter+process.env.PATH}});_0x1fa0f9['on']('close',_0x2e27ab=>{const _0x43d101=_0x402855;if(_0x2e27ab===0x0||_0x2e27ab===null)_0x237398();else _0x2965d8(new Error(_0x43d101(0x14a)+_0x2e27ab));}),_0x1fa0f9['on'](_0x402855(0x137),_0x2965d8);});}const flagDefs=[{'name':a71_0x105e44(0x142),'type':a71_0x105e44(0x128),'description':a71_0x105e44(0x130),'default':![]}];function a71_0x531e(_0x38c3dd,_0x269a55){_0x38c3dd=_0x38c3dd-0x113;const _0x53ca87=a71_0x53ca();let _0x531ede=_0x53ca87[_0x38c3dd];return _0x531ede;}export const runCommand={'name':'run','description':'Run\x20a\x20package.json\x20script','flags':flagDefs,async 'run'(_0x5a54b1,_0x540a12,_0x53d157){const _0x400669=a71_0x105e44,_0x176ad0=process['cwd'](),_0x5851f8=_0x540a12[0x0],_0x3dc05d=_0x540a12['slice'](0x1),_0x4b1fbb=readPackageScripts(_0x176ad0);if(!_0x4b1fbb)throw CliErrors[_0x400669(0x116)](_0x400669(0x125));if(!_0x5851f8){const _0x4031f1=Object[_0x400669(0x12c)](_0x4b1fbb);if(_0x4031f1[_0x400669(0x14c)]===0x0)console[_0x400669(0x136)](_0x400669(0x13d));else{console['log']('\x0a\x20\x20Available\x20scripts:\x0a');const _0x3f863a=Math[_0x400669(0x13c)](..._0x4031f1['map'](_0x5b0de6=>_0x5b0de6[_0x400669(0x14c)]));for(const [_0xdd869c,_0x122691]of Object[_0x400669(0x146)](_0x4b1fbb)){console['log'](_0x400669(0x122)+_0xdd869c[_0x400669(0x126)](_0x3f863a+0x2)+_0x122691);}console[_0x400669(0x136)](_0x400669(0x11e));}return;}if(!_0x4b1fbb[_0x5851f8])throw CliErrors[_0x400669(0x116)](_0x400669(0x121)+_0x5851f8+_0x400669(0x119),_0x400669(0x132)+(Object[_0x400669(0x12c)](_0x4b1fbb)['join'](',\x20')||_0x400669(0x115)));const _0x1f2600=detectPackageManager(_0x176ad0);VERSION_CHECK_SCRIPTS[_0x400669(0x12a)](_0x5851f8)&&await versionCheck(_0x176ad0);if(_0x5851f8===_0x400669(0x13b)&&_0x53d157[_0x400669(0x142)]){_0x5a54b1[_0x400669(0x11c)][_0x400669(0x113)](_0x400669(0x11a),_0x400669(0x123)),await Promise[_0x400669(0x141)]([spawnViteBuildWatch(_0x176ad0),spawnVitePreview(_0x176ad0)]);return;}_0x5a54b1[_0x400669(0x11c)]['info'](_0x400669(0x11a),_0x1f2600+_0x400669(0x138)+_0x5851f8+(_0x3dc05d['length']?'\x20'+_0x3dc05d[_0x400669(0x11b)]('\x20'):'')),await spawnScript(_0x1f2600,_0x5851f8,_0x3dc05d,_0x176ad0);}};
@@ -1 +1 @@
1
- const a72_0x1776bb=a72_0x2f94;(function(_0xb231d2,_0x2c4b1e){const _0x1db67a=a72_0x2f94,_0x3c5b4c=_0xb231d2();while(!![]){try{const _0x365ab3=-parseInt(_0x1db67a(0x13b))/0x1*(parseInt(_0x1db67a(0x14a))/0x2)+-parseInt(_0x1db67a(0x13a))/0x3*(-parseInt(_0x1db67a(0x13d))/0x4)+-parseInt(_0x1db67a(0x144))/0x5+parseInt(_0x1db67a(0x14b))/0x6+parseInt(_0x1db67a(0x13f))/0x7+parseInt(_0x1db67a(0x145))/0x8*(-parseInt(_0x1db67a(0x137))/0x9)+parseInt(_0x1db67a(0x14c))/0xa;if(_0x365ab3===_0x2c4b1e)break;else _0x3c5b4c['push'](_0x3c5b4c['shift']());}catch(_0x1dcde2){_0x3c5b4c['push'](_0x3c5b4c['shift']());}}}(a72_0x493b,0x3444e));import{CliErrors}from'../errors.js';function a72_0x2f94(_0x4b0292,_0x551a8d){_0x4b0292=_0x4b0292-0x133;const _0x493b7e=a72_0x493b();let _0x2f9451=_0x493b7e[_0x4b0292];return _0x2f9451;}export const skillCommand={'name':'skill','description':a72_0x1776bb(0x141),async 'run'(_0x4d31d4,_0x1cdcb8,_0xfc4674){const _0x3cabc2=a72_0x1776bb;_0x4d31d4['logger']['setLogPath'](process[_0x3cabc2(0x146)]()),_0x4d31d4[_0x3cabc2(0x134)]['info'](_0x3cabc2(0x147),_0x3cabc2(0x148));const {runNpxSkillsAddGlobal:_0x102476}=await import(_0x3cabc2(0x133)),_0x3a1c96=_0x4d31d4[_0x3cabc2(0x13e)]?_0x3cabc2(0x149):'inherit';console[_0x3cabc2(0x143)](_0x3cabc2(0x135));const _0x235526=_0x102476(process['cwd'](),'lovrabet/rabetbase',{'stdio':_0x3a1c96});if(_0x235526['skipped'])console[_0x3cabc2(0x143)](_0x3cabc2(0x139));else{if(_0x235526['ok'])console[_0x3cabc2(0x143)](_0x3cabc2(0x140));else throw CliErrors[_0x3cabc2(0x136)](_0x3cabc2(0x142)+(_0x235526[_0x3cabc2(0x138)]||'unknown'),_0x3cabc2(0x13c));}}};function a72_0x493b(){const _0x401a3b=['pipe','93698RhfIkW','699312REaGjX','5965780oFvLqO','../skills/npx-skills-add.js','logger','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global)...','apiError','126XBSCPP','error','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','789795sQsShw','7FBhGIB','Check\x20network\x20connectivity\x20and\x20try\x20again.','4jhDRnG','nonInteractive','295547MSBpFA','rabetbase\x20skill\x20installed','Install\x20skill\x20packages','npx\x20skills\x20add\x20failed:\x20','log','1527845PvqZJT','97720VsaJxj','cwd','skill-install','执行安装技能包命令(委托给\x20npx\x20skills\x20--global)'];a72_0x493b=function(){return _0x401a3b;};return a72_0x493b();}
1
+ const a72_0x2428d3=a72_0x1bc1;(function(_0x189f69,_0x2dd607){const _0x199038=a72_0x1bc1,_0x49f8a8=_0x189f69();while(!![]){try{const _0x1bf675=parseInt(_0x199038(0x15b))/0x1*(parseInt(_0x199038(0x163))/0x2)+parseInt(_0x199038(0x153))/0x3+-parseInt(_0x199038(0x166))/0x4+-parseInt(_0x199038(0x161))/0x5*(parseInt(_0x199038(0x157))/0x6)+parseInt(_0x199038(0x156))/0x7+parseInt(_0x199038(0x155))/0x8*(parseInt(_0x199038(0x160))/0x9)+-parseInt(_0x199038(0x154))/0xa*(parseInt(_0x199038(0x14d))/0xb);if(_0x1bf675===_0x2dd607)break;else _0x49f8a8['push'](_0x49f8a8['shift']());}catch(_0x17d89a){_0x49f8a8['push'](_0x49f8a8['shift']());}}}(a72_0x3ac0,0xeb5aa));import{CliErrors}from'../errors.js';export const skillCommand={'name':a72_0x2428d3(0x14e),'description':'Install\x20skill\x20packages',async 'run'(_0x158481,_0x5c9a2a,_0x19fe83){const _0x590280=a72_0x2428d3;_0x158481[_0x590280(0x159)]['setLogPath'](process[_0x590280(0x15d)]()),_0x158481[_0x590280(0x159)]['info'](_0x590280(0x158),'执行安装技能包命令(委托给\x20npx\x20skills\x20--global)');const {runNpxSkillsAddGlobal:_0x281bda}=await import('../skills/npx-skills-add.js'),_0x46faf2=_0x158481[_0x590280(0x14f)]?'pipe':_0x590280(0x151);console[_0x590280(0x15a)]('Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global)...');const _0x1ee610=_0x281bda(process['cwd'](),_0x590280(0x15c),{'stdio':_0x46faf2});if(_0x1ee610[_0x590280(0x162)])console[_0x590280(0x15a)](_0x590280(0x152));else{if(_0x1ee610['ok'])console[_0x590280(0x15a)](_0x590280(0x15e));else throw CliErrors['apiError'](_0x590280(0x164)+(_0x1ee610[_0x590280(0x15f)]||_0x590280(0x150)),_0x590280(0x165));}}};function a72_0x1bc1(_0x5c9f1c,_0x55e7ce){_0x5c9f1c=_0x5c9f1c-0x14d;const _0x3ac039=a72_0x3ac0();let _0x1bc14f=_0x3ac039[_0x5c9f1c];return _0x1bc14f;}function a72_0x3ac0(){const _0x517706=['570CPExei','skipped','32ZqLFWO','npx\x20skills\x20add\x20failed:\x20','Check\x20network\x20connectivity\x20and\x20try\x20again.','4074612bnIUYW','22IpiIuA','skill','nonInteractive','unknown','inherit','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','4445565ELHckg','3297170RgdyqO','51784PBoEmM','5626852hNmJbW','43062ZqIsQm','skill-install','logger','log','50756FDBqsP','lovrabet/rabetbase','cwd','rabetbase\x20skill\x20installed','error','504mUDyZV'];a72_0x3ac0=function(){return _0x517706;};return a72_0x3ac0();}
@@ -1 +1 @@
1
- const a73_0x242ab7=a73_0xb0d9;(function(_0x1eebc5,_0x33b21c){const _0x5d2ac2=a73_0xb0d9,_0x5bfd0a=_0x1eebc5();while(!![]){try{const _0x355817=parseInt(_0x5d2ac2(0x1c0))/0x1*(parseInt(_0x5d2ac2(0x1e1))/0x2)+-parseInt(_0x5d2ac2(0x1b6))/0x3*(parseInt(_0x5d2ac2(0x1b8))/0x4)+parseInt(_0x5d2ac2(0x1d8))/0x5+-parseInt(_0x5d2ac2(0x1cb))/0x6*(-parseInt(_0x5d2ac2(0x1dc))/0x7)+parseInt(_0x5d2ac2(0x1ca))/0x8+parseInt(_0x5d2ac2(0x1c3))/0x9+-parseInt(_0x5d2ac2(0x1bc))/0xa;if(_0x355817===_0x33b21c)break;else _0x5bfd0a['push'](_0x5bfd0a['shift']());}catch(_0x5bc99c){_0x5bfd0a['push'](_0x5bfd0a['shift']());}}}(a73_0x256b,0x849a1));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../context.js';import{upgradeCommand}from'./project-upgrade.js';import{getCliVersion}from'../utils/version.js';import{CliErrors}from'../errors.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'./common/validate.js';function a73_0x256b(){const _0x20867a=['13566740aIAKvC','\x20\x20Default:\x20','custom','Use\x20`rabetbase\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','326qbTbcx','valid','appCode','2930364olYScm','log','cwd','./init.js','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','length','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','6201280KTlCkg','8778hRAKag','cookie','Write\x20to\x20global\x20config\x20instead\x20of\x20project','validation','daily','\x20config','检测到旧配置文件,正在自动升级...\x0a','\x20\x20Apps:\x20','some','appcode','env','global','\x0a✓\x20Successfully\x20initialized\x20','494245nZlxlz','App\x20code\x20to\x20initialize\x20with','auth','\x20\x20Config:\x20','574hIoYUq','string','project','boolean','Usage:\x20rabetbase\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','5298AzLpAe','defaultApp','map','apps','message','Target\x20environment','6IVMeSz','flagMissing','566668ozpYct','production','\x20\x20Env:\x20','join'];a73_0x256b=function(){return _0x20867a;};return a73_0x256b();}import{promptCustomAppcode,selectMultipleApps}from'./common/app-selector.js';function a73_0xb0d9(_0x1f4cca,_0x241c42){_0x1f4cca=_0x1f4cca-0x1b2;const _0x256b53=a73_0x256b();let _0xb0d996=_0x256b53[_0x1f4cca];return _0xb0d996;}function syntheticApp(_0x17d911){return{'appCode':_0x17d911,'appName':_0x17d911};}function writeInitConfig(_0x2f4fcf,_0x333aa7,_0x37fa5d){const _0x2ff4e0=a73_0xb0d9,_0x3269b1=resolveWriteConfigPath(_0x2f4fcf),_0x2fcdfd={'version':getCliVersion(),'createdAt':new Date()['toLocaleString'](),'env':_0x37fa5d};if(_0x333aa7[_0x2ff4e0(0x1c8)]===0x1)_0x2fcdfd[_0x2ff4e0(0x1d4)]=_0x333aa7[0x0][_0x2ff4e0(0x1c2)];else{_0x2fcdfd['apps']={};for(const _0x27a4d7 of _0x333aa7){_0x2fcdfd[_0x2ff4e0(0x1b3)][_0x27a4d7[_0x2ff4e0(0x1c2)]]={'appcode':_0x27a4d7['appCode'],'env':_0x37fa5d};}_0x2fcdfd[_0x2ff4e0(0x1e2)]=_0x333aa7[0x0][_0x2ff4e0(0x1c2)];}writeConfigFile(_0x3269b1,_0x2fcdfd);const _0x3093cf=_0x2f4fcf===_0x2ff4e0(0x1d6)?'global':_0x2ff4e0(0x1de);console[_0x2ff4e0(0x1c4)](_0x2ff4e0(0x1d7)+_0x3093cf+_0x2ff4e0(0x1d0)),_0x333aa7[_0x2ff4e0(0x1c8)]===0x1?console[_0x2ff4e0(0x1c4)]('\x20\x20AppCode:\x20'+_0x333aa7[0x0][_0x2ff4e0(0x1c2)]):(console['log'](_0x2ff4e0(0x1d2)+_0x333aa7[_0x2ff4e0(0x1b2)](_0x3be0b7=>_0x3be0b7['appCode'])[_0x2ff4e0(0x1bb)](',\x20')),console[_0x2ff4e0(0x1c4)](_0x2ff4e0(0x1bd)+_0x2fcdfd[_0x2ff4e0(0x1e2)])),console['log'](_0x2ff4e0(0x1ba)+_0x2fcdfd[_0x2ff4e0(0x1d5)]),console[_0x2ff4e0(0x1c4)](_0x2ff4e0(0x1db)+_0x3269b1);}async function runSmartInit(_0x2b4883,_0xdd64e7,_0x367d1c){const _0x383a98=a73_0xb0d9,_0x5c82b8=process[_0x383a98(0x1c5)](),_0x5eae79=_0x367d1c[_0x383a98(0x1d6)]?'global':_0x383a98(0x1de),_0x54170e=_0x367d1c[_0x383a98(0x1d5)]||_0x383a98(0x1b9),_0x10a1f6=_0x367d1c['appcode'],_0x23115a=!!_0x367d1c[_0x383a98(0x1de)],_0x5421dd=_0x2b4883['nonInteractive'];if(_0x23115a){const {initCommand:_0x1dd655}=await import(_0x383a98(0x1c6));return _0x1dd655['run'](_0x2b4883,_0xdd64e7,_0x367d1c);}if(_0x5eae79==='project'){const _0x16b5f7=existsSync(resolve(_0x5c82b8,NEW_CONFIG_NAME)),_0x1888e2=LEGACY_CONFIG_NAMES[_0x383a98(0x1d3)](_0x3a124c=>existsSync(resolve(_0x5c82b8,_0x3a124c)));if(_0x1888e2&&!_0x16b5f7)return console[_0x383a98(0x1c4)](_0x383a98(0x1d1)),upgradeCommand['run'](_0x2b4883,_0xdd64e7,_0x367d1c);if(_0x16b5f7)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x383a98(0x1bf));}if(_0x10a1f6){const _0x20ab25=validateAppcode(_0x10a1f6);if(!_0x20ab25[_0x383a98(0x1c1)])throw CliErrors[_0x383a98(0x1ce)](_0x20ab25[_0x383a98(0x1b4)]);writeInitConfig(_0x5eae79,[syntheticApp(_0x10a1f6)],_0x54170e);return;}if(_0x5421dd)throw CliErrors[_0x383a98(0x1b7)](_0x383a98(0x1d4),_0x383a98(0x1e0));const _0x3a16d7=await selectMultipleApps(_0x2b4883[_0x383a98(0x1da)][_0x383a98(0x1cc)]),_0x149a78=_0x3a16d7===_0x383a98(0x1be)?[syntheticApp(await promptCustomAppcode())]:_0x3a16d7;writeInitConfig(_0x5eae79,_0x149a78,_0x54170e);}const flagDefs=[{'name':a73_0x242ab7(0x1d6),'type':a73_0x242ab7(0x1df),'description':a73_0x242ab7(0x1cd),'default':![]},{'name':a73_0x242ab7(0x1d5),'type':a73_0x242ab7(0x1dd),'description':a73_0x242ab7(0x1b5),'default':a73_0x242ab7(0x1b9),'enum':[a73_0x242ab7(0x1b9),a73_0x242ab7(0x1cf)]},{'name':a73_0x242ab7(0x1d4),'type':a73_0x242ab7(0x1dd),'description':a73_0x242ab7(0x1d9)},{'name':a73_0x242ab7(0x1de),'type':a73_0x242ab7(0x1df),'description':a73_0x242ab7(0x1c9),'default':![]}];export const smartInitCommand={'name':'init','description':a73_0x242ab7(0x1c7),'flags':flagDefs,'run':runSmartInit};
1
+ const a73_0x56249d=a73_0x31bf;(function(_0x186838,_0x3b80eb){const _0x547c24=a73_0x31bf,_0x58e482=_0x186838();while(!![]){try{const _0x10a12f=-parseInt(_0x547c24(0x1ce))/0x1+parseInt(_0x547c24(0x1d3))/0x2+parseInt(_0x547c24(0x1d9))/0x3+parseInt(_0x547c24(0x1e7))/0x4+-parseInt(_0x547c24(0x1e6))/0x5*(parseInt(_0x547c24(0x1cb))/0x6)+parseInt(_0x547c24(0x1d1))/0x7+-parseInt(_0x547c24(0x1c4))/0x8*(parseInt(_0x547c24(0x1dc))/0x9);if(_0x10a12f===_0x3b80eb)break;else _0x58e482['push'](_0x58e482['shift']());}catch(_0x39b73f){_0x58e482['push'](_0x58e482['shift']());}}}(a73_0x3640,0xc1c32));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../context.js';import{upgradeCommand}from'./project-upgrade.js';import{getCliVersion}from'../utils/version.js';import{CliErrors}from'../errors.js';function a73_0x3640(){const _0x341103=['Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20\x20Default:\x20','validation','\x20\x20AppCode:\x20','\x20config','appCode','run','env','map','475624gbPgvI','valid','\x0a✓\x20Successfully\x20initialized\x20','App\x20code\x20to\x20initialize\x20with','message','join','\x20\x20Env:\x20','720198pxmIvW','./init.js','\x20\x20Apps:\x20','676717HBvJST','init','project','7549430CmneiM','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','1938326UhecFv','length','string','apps','cwd','检测到旧配置文件,正在自动升级...\x0a','4666449ZFuJra','defaultApp','log','288utLCdY','flagMissing','boolean','custom','toLocaleString','nonInteractive','appcode','global','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Usage:\x20rabetbase\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','20RdYbSF','999436BOWWXF','production'];a73_0x3640=function(){return _0x341103;};return a73_0x3640();}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'./common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'./common/app-selector.js';function syntheticApp(_0x183998){return{'appCode':_0x183998,'appName':_0x183998};}function a73_0x31bf(_0xf6be7e,_0xe08a18){_0xf6be7e=_0xf6be7e-0x1bd;const _0x364079=a73_0x3640();let _0x31bfd0=_0x364079[_0xf6be7e];return _0x31bfd0;}function writeInitConfig(_0x10b55f,_0x15cf17,_0x1c0778){const _0x23d511=a73_0x31bf,_0x526b27=resolveWriteConfigPath(_0x10b55f),_0x3bb85a={'version':getCliVersion(),'createdAt':new Date()[_0x23d511(0x1e0)](),'env':_0x1c0778};if(_0x15cf17['length']===0x1)_0x3bb85a[_0x23d511(0x1e2)]=_0x15cf17[0x0]['appCode'];else{_0x3bb85a[_0x23d511(0x1d6)]={};for(const _0x22de06 of _0x15cf17){_0x3bb85a[_0x23d511(0x1d6)][_0x22de06[_0x23d511(0x1c0)]]={'appcode':_0x22de06[_0x23d511(0x1c0)],'env':_0x1c0778};}_0x3bb85a['defaultApp']=_0x15cf17[0x0][_0x23d511(0x1c0)];}writeConfigFile(_0x526b27,_0x3bb85a);const _0x11adbf=_0x10b55f===_0x23d511(0x1e3)?_0x23d511(0x1e3):'project';console[_0x23d511(0x1db)](_0x23d511(0x1c6)+_0x11adbf+_0x23d511(0x1bf)),_0x15cf17[_0x23d511(0x1d4)]===0x1?console[_0x23d511(0x1db)](_0x23d511(0x1be)+_0x15cf17[0x0][_0x23d511(0x1c0)]):(console[_0x23d511(0x1db)](_0x23d511(0x1cd)+_0x15cf17[_0x23d511(0x1c3)](_0x4cd77b=>_0x4cd77b[_0x23d511(0x1c0)])[_0x23d511(0x1c9)](',\x20')),console[_0x23d511(0x1db)](_0x23d511(0x1ea)+_0x3bb85a[_0x23d511(0x1da)])),console[_0x23d511(0x1db)](_0x23d511(0x1ca)+_0x3bb85a[_0x23d511(0x1c2)]),console[_0x23d511(0x1db)]('\x20\x20Config:\x20'+_0x526b27);}async function runSmartInit(_0x20c3dc,_0x56a814,_0x14b5fe){const _0x294ae5=a73_0x31bf,_0x2baaa2=process[_0x294ae5(0x1d7)](),_0x48221a=_0x14b5fe['global']?_0x294ae5(0x1e3):'project',_0x1dd07=_0x14b5fe[_0x294ae5(0x1c2)]||_0x294ae5(0x1e8),_0x567205=_0x14b5fe[_0x294ae5(0x1e2)],_0x289273=!!_0x14b5fe['project'],_0x10b62f=_0x20c3dc[_0x294ae5(0x1e1)];if(_0x289273){const {initCommand:_0x13a7f2}=await import(_0x294ae5(0x1cc));return _0x13a7f2[_0x294ae5(0x1c1)](_0x20c3dc,_0x56a814,_0x14b5fe);}if(_0x48221a===_0x294ae5(0x1d0)){const _0x3d8e77=existsSync(resolve(_0x2baaa2,NEW_CONFIG_NAME)),_0x4505c0=LEGACY_CONFIG_NAMES['some'](_0x9e44d9=>existsSync(resolve(_0x2baaa2,_0x9e44d9)));if(_0x4505c0&&!_0x3d8e77)return console['log'](_0x294ae5(0x1d8)),upgradeCommand[_0x294ae5(0x1c1)](_0x20c3dc,_0x56a814,_0x14b5fe);if(_0x3d8e77)throw CliErrors[_0x294ae5(0x1bd)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`rabetbase\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x567205){const _0x5e851a=validateAppcode(_0x567205);if(!_0x5e851a[_0x294ae5(0x1c5)])throw CliErrors[_0x294ae5(0x1bd)](_0x5e851a[_0x294ae5(0x1c8)]);writeInitConfig(_0x48221a,[syntheticApp(_0x567205)],_0x1dd07);return;}if(_0x10b62f)throw CliErrors[_0x294ae5(0x1dd)](_0x294ae5(0x1e2),_0x294ae5(0x1e5));const _0x41520b=await selectMultipleApps(_0x20c3dc['auth']['cookie']),_0x318fa8=_0x41520b===_0x294ae5(0x1df)?[syntheticApp(await promptCustomAppcode())]:_0x41520b;writeInitConfig(_0x48221a,_0x318fa8,_0x1dd07);}const flagDefs=[{'name':'global','type':a73_0x56249d(0x1de),'description':a73_0x56249d(0x1e9),'default':![]},{'name':a73_0x56249d(0x1c2),'type':a73_0x56249d(0x1d5),'description':'Target\x20environment','default':a73_0x56249d(0x1e8),'enum':[a73_0x56249d(0x1e8),'daily']},{'name':a73_0x56249d(0x1e2),'type':a73_0x56249d(0x1d5),'description':a73_0x56249d(0x1c7)},{'name':a73_0x56249d(0x1d0),'type':'boolean','description':a73_0x56249d(0x1e4),'default':![]}];export const smartInitCommand={'name':a73_0x56249d(0x1cf),'description':a73_0x56249d(0x1d2),'flags':flagDefs,'run':runSmartInit};
@@ -1 +1 @@
1
- const a74_0x585c41=a74_0x20f1;function a74_0x179e(){const _0x440289=['read','157746irOWDl','bool','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','31135KcNxhd','sqlCode','2548667DpHWfP','Return\x20full\x20raw\x20SQL\x20query\x20object','4064LTympb','sqlcode','boolean','312WxqhLO','10lStdJI','12ZIwEvc','description','appCode','470724SfyWQI','10KRfxjI','detail','626105bePjQQ','str','4248ckiDND','verbose','7PhuRAB','sqlContent','6010qSubOM','sql','dbId'];a74_0x179e=function(){return _0x440289;};return a74_0x179e();}(function(_0x44ba9f,_0x149087){const _0x27a240=a74_0x20f1,_0x239b47=_0x44ba9f();while(!![]){try{const _0x11fc5a=parseInt(_0x27a240(0x1c0))/0x1*(parseInt(_0x27a240(0x1b1))/0x2)+-parseInt(_0x27a240(0x1c4))/0x3+parseInt(_0x27a240(0x1c1))/0x4*(parseInt(_0x27a240(0x1c7))/0x5)+-parseInt(_0x27a240(0x1b5))/0x6*(parseInt(_0x27a240(0x1af))/0x7)+parseInt(_0x27a240(0x1bc))/0x8*(parseInt(_0x27a240(0x1c9))/0x9)+parseInt(_0x27a240(0x1c5))/0xa*(-parseInt(_0x27a240(0x1ba))/0xb)+parseInt(_0x27a240(0x1bf))/0xc*(parseInt(_0x27a240(0x1b8))/0xd);if(_0x11fc5a===_0x149087)break;else _0x239b47['push'](_0x239b47['shift']());}catch(_0x34c288){_0x239b47['push'](_0x239b47['shift']());}}}(a74_0x179e,0x477ff));function a74_0x20f1(_0x23558e,_0x5b14b3){_0x23558e=_0x23558e-0x1ae;const _0x179e4c=a74_0x179e();let _0x20f1c9=_0x179e4c[_0x23558e];return _0x20f1c9;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG}from'../common/flags.js';export const sqlDetail={'service':a74_0x585c41(0x1b2),'command':a74_0x585c41(0x1c6),'description':a74_0x585c41(0x1b7),'risk':a74_0x585c41(0x1b4),'flags':[SQLCODE_FLAG,{'name':a74_0x585c41(0x1ae),'type':a74_0x585c41(0x1be),'description':a74_0x585c41(0x1bb)}],async 'execute'(_0x2eedc5){const _0x37a3e1=a74_0x585c41,_0x66787d=await getSqlQueryInfo(_0x2eedc5[_0x37a3e1(0x1c3)],_0x2eedc5[_0x37a3e1(0x1c8)](_0x37a3e1(0x1bd))),_0x3e400d=_0x2eedc5[_0x37a3e1(0x1b6)](_0x37a3e1(0x1ae));if(_0x3e400d)return{'ok':!![],'data':_0x66787d};const _0x5284f3=_0x66787d[_0x37a3e1(0x1b3)]?await getDbName(_0x2eedc5['appCode'],_0x66787d[_0x37a3e1(0x1b3)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x66787d[_0x37a3e1(0x1b9)],'sqlName':_0x66787d['sqlName'],'db':_0x5284f3?_0x5284f3+'\x20('+_0x66787d[_0x37a3e1(0x1b3)]+')':_0x66787d[_0x37a3e1(0x1b3)]??'','description':_0x66787d[_0x37a3e1(0x1c2)]??'','sqlContent':_0x66787d[_0x37a3e1(0x1b0)]??''}};}};
1
+ const a74_0x531db7=a74_0x2412;function a74_0x11b9(){const _0x4ea94b=['dbId','7848AwPFBT','sql','detail','1950GioPEh','112TILdPK','sqlContent','boolean','str','description','46mbPDFz','verbose','86360epaRzF','97962pNEdVg','bool','196420vKnczm','2168TRvEPU','appCode','1224mETTJN','2459699cemngZ','14163NsWOtU','Return\x20full\x20raw\x20SQL\x20query\x20object','sqlCode','read'];a74_0x11b9=function(){return _0x4ea94b;};return a74_0x11b9();}(function(_0x2b4e9f,_0xd39741){const _0x5828b0=a74_0x2412,_0xc7945e=_0x2b4e9f();while(!![]){try{const _0xbaa829=-parseInt(_0x5828b0(0x173))/0x1+-parseInt(_0x5828b0(0x171))/0x2*(parseInt(_0x5828b0(0x163))/0x3)+-parseInt(_0x5828b0(0x179))/0x4*(-parseInt(_0x5828b0(0x16b))/0x5)+parseInt(_0x5828b0(0x174))/0x6*(parseInt(_0x5828b0(0x16c))/0x7)+-parseInt(_0x5828b0(0x177))/0x8*(parseInt(_0x5828b0(0x168))/0x9)+-parseInt(_0x5828b0(0x176))/0xa+parseInt(_0x5828b0(0x17a))/0xb;if(_0xbaa829===_0xd39741)break;else _0xc7945e['push'](_0xc7945e['shift']());}catch(_0x4a4cd8){_0xc7945e['push'](_0xc7945e['shift']());}}}(a74_0x11b9,0x256c4));import{getSqlQueryInfo}from'../../core/api-client.js';function a74_0x2412(_0x423d60,_0x35b576){_0x423d60=_0x423d60-0x163;const _0x11b94e=a74_0x11b9();let _0x24126a=_0x11b94e[_0x423d60];return _0x24126a;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG}from'../common/flags.js';export const sqlDetail={'service':a74_0x531db7(0x169),'command':a74_0x531db7(0x16a),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a74_0x531db7(0x166),'flags':[SQLCODE_FLAG,{'name':a74_0x531db7(0x172),'type':a74_0x531db7(0x16e),'description':a74_0x531db7(0x164)}],async 'execute'(_0x153d78){const _0x4a34c6=a74_0x531db7,_0x50211c=await getSqlQueryInfo(_0x153d78[_0x4a34c6(0x178)],_0x153d78[_0x4a34c6(0x16f)]('sqlcode')),_0x2277d8=_0x153d78[_0x4a34c6(0x175)](_0x4a34c6(0x172));if(_0x2277d8)return{'ok':!![],'data':_0x50211c};const _0x2e57e6=_0x50211c['dbId']?await getDbName(_0x153d78[_0x4a34c6(0x178)],_0x50211c[_0x4a34c6(0x167)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x50211c[_0x4a34c6(0x165)],'sqlName':_0x50211c['sqlName'],'db':_0x2e57e6?_0x2e57e6+'\x20('+_0x50211c[_0x4a34c6(0x167)]+')':_0x50211c['dbId']??'','description':_0x50211c[_0x4a34c6(0x170)]??'','sqlContent':_0x50211c[_0x4a34c6(0x16d)]??''}};}};
@@ -1 +1 @@
1
- function a75_0x1c21(){const _0x3824c5=['71088lrbfRX','12MAQaEU','sqlcode','SQL\x20execution\x20failed','execSuccess','Returned\x20','6499086FAWIFG','378aDscsl','5080pvoCDv','params','\x20row(s)\x20in\x20','1634710SiVbQl','validation','exec','sql','string','appCode','now','39834dIlkey','191944dkCKYX','str','990802UeTSpF','execError','SQL\x20parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','read','5605030naTiRW','length','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode'];a75_0x1c21=function(){return _0x3824c5;};return a75_0x1c21();}const a75_0x21bc46=a75_0x1f0e;(function(_0x5ccb9e,_0x11e49f){const _0x1d52b0=a75_0x1f0e,_0x5ce913=_0x5ccb9e();while(!![]){try{const _0x105991=-parseInt(_0x1d52b0(0x1e2))/0x1+parseInt(_0x1d52b0(0x1d8))/0x2+parseInt(_0x1d52b0(0x1ea))/0x3*(-parseInt(_0x1d52b0(0x1e9))/0x4)+-parseInt(_0x1d52b0(0x1e6))/0x5+parseInt(_0x1d52b0(0x1ef))/0x6+parseInt(_0x1d52b0(0x1f0))/0x7*(-parseInt(_0x1d52b0(0x1e0))/0x8)+-parseInt(_0x1d52b0(0x1df))/0x9*(-parseInt(_0x1d52b0(0x1f1))/0xa);if(_0x105991===_0x11e49f)break;else _0x5ce913['push'](_0x5ce913['shift']());}catch(_0xdd7f38){_0x5ce913['push'](_0x5ce913['shift']());}}}(a75_0x1c21,0xa3ada));import{executeSql}from'../../core/api-client.js';function a75_0x1f0e(_0x2e445a,_0x5a4d49){_0x2e445a=_0x2e445a-0x1d6;const _0x1c2168=a75_0x1c21();let _0x1f0e5f=_0x1c2168[_0x2e445a];return _0x1f0e5f;}import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG}from'../common/flags.js';export const sqlExec={'service':a75_0x21bc46(0x1db),'command':a75_0x21bc46(0x1da),'description':a75_0x21bc46(0x1e8),'risk':a75_0x21bc46(0x1e5),'flags':[SQLCODE_FLAG,{'name':a75_0x21bc46(0x1d6),'type':a75_0x21bc46(0x1dc),'description':a75_0x21bc46(0x1e4)}],async 'execute'(_0x53fef1){const _0x56e229=a75_0x21bc46;let _0x130432;const _0x4b9928=_0x53fef1[_0x56e229(0x1e1)]('params');if(_0x4b9928)try{_0x130432=JSON['parse'](_0x4b9928);}catch{throw CliErrors[_0x56e229(0x1d9)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4b9928);}const _0x5508da=Date[_0x56e229(0x1de)](),_0x24f1bb=await executeSql(_0x53fef1[_0x56e229(0x1dd)],_0x53fef1['str'](_0x56e229(0x1eb)),_0x130432),_0x1da358=Date[_0x56e229(0x1de)]()-_0x5508da,_0x4a6fa2=_0x24f1bb?.['execResult']??_0x24f1bb,_0x32e2c8=_0x24f1bb?.[_0x56e229(0x1ed)]??!![];if(!_0x32e2c8)return{'ok':![],'data':{'error':_0x24f1bb?.[_0x56e229(0x1e3)]||'SQL\x20execution\x20failed','elapsed':_0x1da358},'message':_0x56e229(0x1ec)};const _0x3c9570=Array['isArray'](_0x4a6fa2)?_0x4a6fa2:[];return{'ok':!![],'data':{'rows':_0x3c9570,'rowCount':_0x3c9570[_0x56e229(0x1e7)],'elapsed':_0x1da358},'message':_0x56e229(0x1ee)+_0x3c9570[_0x56e229(0x1e7)]+_0x56e229(0x1d7)+_0x1da358+'ms'};}};
1
+ const a75_0x535212=a75_0x3b6c;function a75_0x1ff5(){const _0x12b869=['str','622912RscoWz','5715400JkIEea','55134NFrsoM','32870wrUczK','appCode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','SQL\x20parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','now','sqlcode','7726744XJaHHA','sql','read','194084dovSDu','7416IJDIWy','isArray','SQL\x20execution\x20failed','exec','params','759030XlqSsK','execSuccess','execError','4qDGANG','567BgCNzD'];a75_0x1ff5=function(){return _0x12b869;};return a75_0x1ff5();}(function(_0x25be9e,_0x10f97b){const _0x498e83=a75_0x3b6c,_0x4fdca9=_0x25be9e();while(!![]){try{const _0x5b0e50=-parseInt(_0x498e83(0x19a))/0x1*(parseInt(_0x498e83(0x19d))/0x2)+parseInt(_0x498e83(0x197))/0x3+-parseInt(_0x498e83(0x1a9))/0x4+-parseInt(_0x498e83(0x19e))/0x5+-parseInt(_0x498e83(0x19f))/0x6*(parseInt(_0x498e83(0x19b))/0x7)+parseInt(_0x498e83(0x1a6))/0x8+parseInt(_0x498e83(0x1aa))/0x9*(parseInt(_0x498e83(0x1a0))/0xa);if(_0x5b0e50===_0x10f97b)break;else _0x4fdca9['push'](_0x4fdca9['shift']());}catch(_0x265681){_0x4fdca9['push'](_0x4fdca9['shift']());}}}(a75_0x1ff5,0xb6087));import{executeSql}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a75_0x3b6c(_0x20ba95,_0x58d7b5){_0x20ba95=_0x20ba95-0x194;const _0x1ff581=a75_0x1ff5();let _0x3b6cd5=_0x1ff581[_0x20ba95];return _0x3b6cd5;}import{SQLCODE_FLAG}from'../common/flags.js';export const sqlExec={'service':a75_0x535212(0x1a7),'command':a75_0x535212(0x195),'description':a75_0x535212(0x1a2),'risk':a75_0x535212(0x1a8),'flags':[SQLCODE_FLAG,{'name':a75_0x535212(0x196),'type':'string','description':a75_0x535212(0x1a3)}],async 'execute'(_0x1d526f){const _0x1b4ce8=a75_0x535212;let _0x314f79;const _0x1cbc5f=_0x1d526f[_0x1b4ce8(0x19c)](_0x1b4ce8(0x196));if(_0x1cbc5f)try{_0x314f79=JSON['parse'](_0x1cbc5f);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1cbc5f);}const _0x1e493e=Date[_0x1b4ce8(0x1a4)](),_0x31f74c=await executeSql(_0x1d526f[_0x1b4ce8(0x1a1)],_0x1d526f[_0x1b4ce8(0x19c)](_0x1b4ce8(0x1a5)),_0x314f79),_0x9703fd=Date[_0x1b4ce8(0x1a4)]()-_0x1e493e,_0x43a6ab=_0x31f74c?.['execResult']??_0x31f74c,_0x242d3e=_0x31f74c?.[_0x1b4ce8(0x198)]??!![];if(!_0x242d3e)return{'ok':![],'data':{'error':_0x31f74c?.[_0x1b4ce8(0x199)]||_0x1b4ce8(0x194),'elapsed':_0x9703fd},'message':_0x1b4ce8(0x194)};const _0x2a4dcd=Array[_0x1b4ce8(0x1ab)](_0x43a6ab)?_0x43a6ab:[];return{'ok':!![],'data':{'rows':_0x2a4dcd,'rowCount':_0x2a4dcd['length'],'elapsed':_0x9703fd},'message':'Returned\x20'+_0x2a4dcd['length']+'\x20row(s)\x20in\x20'+_0x9703fd+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x31958f,_0x1c8ccd){const _0x15690d=a76_0x439e,_0x152497=_0x31958f();while(!![]){try{const _0x553c82=parseInt(_0x15690d(0x1b7))/0x1+-parseInt(_0x15690d(0x1bd))/0x2*(-parseInt(_0x15690d(0x1be))/0x3)+-parseInt(_0x15690d(0x1c1))/0x4*(parseInt(_0x15690d(0x1bc))/0x5)+parseInt(_0x15690d(0x1ba))/0x6*(parseInt(_0x15690d(0x1bb))/0x7)+-parseInt(_0x15690d(0x1c0))/0x8+parseInt(_0x15690d(0x1bf))/0x9+-parseInt(_0x15690d(0x1b9))/0xa*(parseInt(_0x15690d(0x1b8))/0xb);if(_0x553c82===_0x1c8ccd)break;else _0x152497['push'](_0x152497['shift']());}catch(_0x30ff9e){_0x152497['push'](_0x152497['shift']());}}}(a76_0x587b,0x4c837));function a76_0x587b(){const _0x52dfd8=['10XdKoMn','186942HhljHW','7qkqBlv','280195mEBRNx','30cjDNXI','90066WqltVt','4926942eipltF','4943336xaPbmP','20MnihPf','372899LoapVP','2093443FWPXkV'];a76_0x587b=function(){return _0x52dfd8;};return a76_0x587b();}import{sqlList}from'./list.js';import{sqlDetail}from'./detail.js';import{sqlValidate}from'./validate.js';import{sqlSave}from'./save.js';import{sqlExec}from'./exec.js';function a76_0x439e(_0x4e870e,_0x40c09a){_0x4e870e=_0x4e870e-0x1b7;const _0x587bfe=a76_0x587b();let _0x439e0e=_0x587bfe[_0x4e870e];return _0x439e0e;}export const sqlDefinitions=[sqlList,sqlDetail,sqlValidate,sqlSave,sqlExec];
1
+ (function(_0x2444a4,_0x3661d5){const _0x55563f=a76_0x3736,_0x28d8a7=_0x2444a4();while(!![]){try{const _0x59c125=-parseInt(_0x55563f(0x1bd))/0x1*(-parseInt(_0x55563f(0x1c3))/0x2)+-parseInt(_0x55563f(0x1bc))/0x3*(-parseInt(_0x55563f(0x1bf))/0x4)+parseInt(_0x55563f(0x1b9))/0x5*(parseInt(_0x55563f(0x1c2))/0x6)+parseInt(_0x55563f(0x1be))/0x7*(parseInt(_0x55563f(0x1bb))/0x8)+-parseInt(_0x55563f(0x1c0))/0x9+-parseInt(_0x55563f(0x1c4))/0xa*(parseInt(_0x55563f(0x1ba))/0xb)+parseInt(_0x55563f(0x1c1))/0xc;if(_0x59c125===_0x3661d5)break;else _0x28d8a7['push'](_0x28d8a7['shift']());}catch(_0x15bef9){_0x28d8a7['push'](_0x28d8a7['shift']());}}}(a76_0x4650,0x36362));function a76_0x3736(_0x22aadb,_0xba0e5c){_0x22aadb=_0x22aadb-0x1b9;const _0x4650fa=a76_0x4650();let _0x37369c=_0x4650fa[_0x22aadb];return _0x37369c;}import{sqlList}from'./list.js';import{sqlDetail}from'./detail.js';import{sqlValidate}from'./validate.js';import{sqlSave}from'./save.js';import{sqlExec}from'./exec.js';export const sqlDefinitions=[sqlList,sqlDetail,sqlValidate,sqlSave,sqlExec];function a76_0x4650(){const _0x61e556=['9448GMBXvI','3XTmNsV','50xjkiFL','273QPOjKU','1286948UzBAUk','2432961gNtRqd','825216qhGMuf','42xIUEXm','5080aWtQIQ','370RWYixU','217060XYPOcI','111507rgivVw'];a76_0x4650=function(){return _0x61e556;};return a76_0x4650();}
@@ -1 +1 @@
1
- function a77_0x5679(_0x2c225c,_0x44e4bf){_0x2c225c=_0x2c225c-0x12d;const _0x5ea2fe=a77_0x5ea2();let _0x5679e7=_0x5ea2fe[_0x2c225c];return _0x5679e7;}const a77_0xf4bf95=a77_0x5679;(function(_0x4ac7cd,_0xa3fe46){const _0x3cb615=a77_0x5679,_0x1dd6d1=_0x4ac7cd();while(!![]){try{const _0x34757b=-parseInt(_0x3cb615(0x14c))/0x1*(parseInt(_0x3cb615(0x151))/0x2)+-parseInt(_0x3cb615(0x13f))/0x3+-parseInt(_0x3cb615(0x13c))/0x4+parseInt(_0x3cb615(0x14a))/0x5+parseInt(_0x3cb615(0x140))/0x6+-parseInt(_0x3cb615(0x133))/0x7+parseInt(_0x3cb615(0x14e))/0x8;if(_0x34757b===_0xa3fe46)break;else _0x1dd6d1['push'](_0x1dd6d1['shift']());}catch(_0x42bb42){_0x1dd6d1['push'](_0x1dd6d1['shift']());}}}(a77_0x5ea2,0x974fb));import{listSqlQueries}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG_OPTIONAL}from'../common/flags.js';function a77_0x5ea2(){const _0x901dba=['map','appCode','Filter\x20by\x20SQL\x20name','sqlcode','Found\x20','tableData','name','page','bool','3001725jZknfU','all','3NlhmVq','description','25092112BJrfwm','string','Page\x20size','592994EMETHG','\x20SQL\x20queries\x20(total:\x20','boolean','verbose','str','length','list','4788147baetDh','sqlName','dbId','number','sqlCode','pagesize','totalCount','num','Page\x20number','4637732qdWqrJ','read','List\x20custom\x20SQL\x20queries','1243224lJyWJA','181590ujFMAh'];a77_0x5ea2=function(){return _0x901dba;};return a77_0x5ea2();}export const sqlList={'service':'sql','command':a77_0xf4bf95(0x132),'description':a77_0xf4bf95(0x13e),'risk':a77_0xf4bf95(0x13d),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':'name','type':a77_0xf4bf95(0x14f),'description':a77_0xf4bf95(0x143)},{'name':'page','type':a77_0xf4bf95(0x136),'description':a77_0xf4bf95(0x13b),'default':0x1},{'name':'pagesize','type':a77_0xf4bf95(0x136),'description':a77_0xf4bf95(0x150)},{'name':'verbose','type':a77_0xf4bf95(0x12e),'description':'Return\x20full\x20SQL\x20query\x20objects\x20including\x20parameters\x20and\x20SQL\x20content'}],async 'execute'(_0x168fd1){const _0x4b65f3=a77_0xf4bf95,_0x5010fe=await listSqlQueries(_0x168fd1[_0x4b65f3(0x142)],{'sqlCode':_0x168fd1['str'](_0x4b65f3(0x144))||undefined,'sqlName':_0x168fd1[_0x4b65f3(0x130)](_0x4b65f3(0x147))||undefined,'currentPage':_0x168fd1[_0x4b65f3(0x13a)](_0x4b65f3(0x148)),'pageSize':_0x168fd1[_0x4b65f3(0x13a)](_0x4b65f3(0x138),0x32)}),_0x46539f=_0x168fd1[_0x4b65f3(0x149)](_0x4b65f3(0x12f)),_0x430a0d=_0x5010fe[_0x4b65f3(0x146)]??[],_0x2781d3=_0x5010fe['paging']?.[_0x4b65f3(0x139)]??_0x430a0d[_0x4b65f3(0x131)];let _0x585757;return _0x46539f?_0x585757=_0x430a0d:_0x585757=await Promise[_0x4b65f3(0x14b)](_0x430a0d[_0x4b65f3(0x141)](async _0x37d017=>{const _0x4672e4=_0x4b65f3,_0x591286=_0x37d017[_0x4672e4(0x135)]?await getDbName(_0x168fd1[_0x4672e4(0x142)],_0x37d017[_0x4672e4(0x135)]):undefined;return{'sqlCode':_0x37d017[_0x4672e4(0x137)],'sqlName':_0x37d017[_0x4672e4(0x134)],'description':_0x37d017[_0x4672e4(0x14d)]??'','db':_0x591286?_0x591286+'\x20('+_0x37d017[_0x4672e4(0x135)]+')':_0x37d017[_0x4672e4(0x135)]??''};})),{'ok':!![],'data':_0x585757,'message':_0x430a0d['length']===0x0?'No\x20custom\x20SQL\x20queries\x20found.':_0x4b65f3(0x145)+_0x430a0d[_0x4b65f3(0x131)]+_0x4b65f3(0x12d)+_0x2781d3+').'};}};
1
+ const a77_0x2c7d6d=a77_0x2005;function a77_0x80c5(){const _0x31bfa5=['5695810rgTONZ','2339IPgvjp','Filter\x20by\x20SQL\x20name','2348696ynoaIL','boolean','str','sql','description','12471448pRhNGq','15360dvxuYN','pagesize','num','totalCount','31509fIhnxw','1435TNRMUe','verbose','sqlCode','appCode','No\x20custom\x20SQL\x20queries\x20found.','398SsPipW','Found\x20','Page\x20number','paging','136rAmpNo','list','string','all','sqlName','page','dbId','tableData','Return\x20full\x20SQL\x20query\x20objects\x20including\x20parameters\x20and\x20SQL\x20content','Page\x20size','length','number','9BRedMM','13218hZnAQS','map'];a77_0x80c5=function(){return _0x31bfa5;};return a77_0x80c5();}(function(_0x4d05eb,_0x5000a4){const _0x549d9a=a77_0x2005,_0xb6afa2=_0x4d05eb();while(!![]){try{const _0x58ff27=-parseInt(_0x549d9a(0x1c7))/0x1*(-parseInt(_0x549d9a(0x1d9))/0x2)+-parseInt(_0x549d9a(0x1d3))/0x3*(-parseInt(_0x549d9a(0x1dd))/0x4)+parseInt(_0x549d9a(0x1d4))/0x5*(-parseInt(_0x549d9a(0x1c4))/0x6)+-parseInt(_0x549d9a(0x1c9))/0x7+-parseInt(_0x549d9a(0x1cf))/0x8+parseInt(_0x549d9a(0x1c3))/0x9*(-parseInt(_0x549d9a(0x1c6))/0xa)+parseInt(_0x549d9a(0x1ce))/0xb;if(_0x58ff27===_0x5000a4)break;else _0xb6afa2['push'](_0xb6afa2['shift']());}catch(_0x59a53b){_0xb6afa2['push'](_0xb6afa2['shift']());}}}(a77_0x80c5,0x65d11));import{listSqlQueries}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a77_0x2005(_0x1a31e1,_0x438410){_0x1a31e1=_0x1a31e1-0x1b9;const _0x80c5f4=a77_0x80c5();let _0x2005fd=_0x80c5f4[_0x1a31e1];return _0x2005fd;}import{SQLCODE_FLAG_OPTIONAL}from'../common/flags.js';export const sqlList={'service':a77_0x2c7d6d(0x1cc),'command':a77_0x2c7d6d(0x1de),'description':'List\x20custom\x20SQL\x20queries','risk':'read','flags':[SQLCODE_FLAG_OPTIONAL,{'name':'name','type':a77_0x2c7d6d(0x1b9),'description':a77_0x2c7d6d(0x1c8)},{'name':a77_0x2c7d6d(0x1bc),'type':a77_0x2c7d6d(0x1c2),'description':a77_0x2c7d6d(0x1db),'default':0x1},{'name':a77_0x2c7d6d(0x1d0),'type':a77_0x2c7d6d(0x1c2),'description':a77_0x2c7d6d(0x1c0)},{'name':a77_0x2c7d6d(0x1d5),'type':a77_0x2c7d6d(0x1ca),'description':a77_0x2c7d6d(0x1bf)}],async 'execute'(_0x3ad118){const _0x4ccf17=a77_0x2c7d6d,_0x5cae57=await listSqlQueries(_0x3ad118[_0x4ccf17(0x1d7)],{'sqlCode':_0x3ad118['str']('sqlcode')||undefined,'sqlName':_0x3ad118[_0x4ccf17(0x1cb)]('name')||undefined,'currentPage':_0x3ad118[_0x4ccf17(0x1d1)](_0x4ccf17(0x1bc)),'pageSize':_0x3ad118[_0x4ccf17(0x1d1)](_0x4ccf17(0x1d0),0x32)}),_0x970aa3=_0x3ad118['bool'](_0x4ccf17(0x1d5)),_0x5640a0=_0x5cae57[_0x4ccf17(0x1be)]??[],_0x8bcc28=_0x5cae57[_0x4ccf17(0x1dc)]?.[_0x4ccf17(0x1d2)]??_0x5640a0['length'];let _0x139a54;return _0x970aa3?_0x139a54=_0x5640a0:_0x139a54=await Promise[_0x4ccf17(0x1ba)](_0x5640a0[_0x4ccf17(0x1c5)](async _0x16a39c=>{const _0x23036c=_0x4ccf17,_0x285c4c=_0x16a39c['dbId']?await getDbName(_0x3ad118[_0x23036c(0x1d7)],_0x16a39c[_0x23036c(0x1bd)]):undefined;return{'sqlCode':_0x16a39c[_0x23036c(0x1d6)],'sqlName':_0x16a39c[_0x23036c(0x1bb)],'description':_0x16a39c[_0x23036c(0x1cd)]??'','db':_0x285c4c?_0x285c4c+'\x20('+_0x16a39c[_0x23036c(0x1bd)]+')':_0x16a39c[_0x23036c(0x1bd)]??''};})),{'ok':!![],'data':_0x139a54,'message':_0x5640a0[_0x4ccf17(0x1c1)]===0x0?_0x4ccf17(0x1d8):_0x4ccf17(0x1da)+_0x5640a0[_0x4ccf17(0x1c1)]+'\x20SQL\x20queries\x20(total:\x20'+_0x8bcc28+').'};}};
@@ -1 +1 @@
1
- const a78_0x2b5c8b=a78_0x1b88;(function(_0x585dc0,_0x201977){const _0x4b61c1=a78_0x1b88,_0x34ce58=_0x585dc0();while(!![]){try{const _0xf2d289=parseInt(_0x4b61c1(0xcb))/0x1*(parseInt(_0x4b61c1(0xb9))/0x2)+-parseInt(_0x4b61c1(0xcc))/0x3+parseInt(_0x4b61c1(0xd7))/0x4+-parseInt(_0x4b61c1(0xb6))/0x5+-parseInt(_0x4b61c1(0xc1))/0x6*(parseInt(_0x4b61c1(0xb3))/0x7)+-parseInt(_0x4b61c1(0xd5))/0x8+parseInt(_0x4b61c1(0xcd))/0x9;if(_0xf2d289===_0x201977)break;else _0x34ce58['push'](_0x34ce58['shift']());}catch(_0xf0ee98){_0x34ce58['push'](_0x34ce58['shift']());}}}(a78_0x2162,0xb2af9));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{saveSqlQuery}from'../../core/api-client.js';import{resolveOneDb}from'../../core/db-resolver.js';import{validateSql}from'../../core/sql-validator.js';function a78_0x2162(){const _0x27bee7=['26jnnmkX','action','valid','Path\x20to\x20the\x20SQL\x20file','message','description','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','\x20|\x20Params:\x20','8275164Fixuky','dbName','sqlName','sqlcode','blocked','Save\x20SQL\x20query\x20from\x20','sqlCode','write','/api/node-toolbox/sql/save','cwd','23495dBLMSI','3374697HOGvAF','29384073YzXFpp','validation','appCode','Type:\x20','Validation:\x20','string','sqlname','length','2597256rvpRwR','N/A','2149968XQEWKP','File\x20not\x20found:\x20','sqlType','utf-8','sql','Updated','str','parameters','created','\x20successfully','file','Created','7RdYTmO','join','SQL\x20query\x20description','2735885sderfE','Save\x20or\x20update\x20a\x20custom\x20SQL\x20query\x20(validates\x20before\x20saving)','dbId'];a78_0x2162=function(){return _0x27bee7;};return a78_0x2162();}function a78_0x1b88(_0x2ca3d8,_0x46a69a){_0x2ca3d8=_0x2ca3d8-0xaa;const _0x216294=a78_0x2162();let _0x1b887f=_0x216294[_0x2ca3d8];return _0x1b887f;}import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../common/flags.js';export const sqlSave={'service':a78_0x2b5c8b(0xab),'command':'save','description':a78_0x2b5c8b(0xb7),'risk':a78_0x2b5c8b(0xc8),'flags':[{'name':a78_0x2b5c8b(0xb1),'type':a78_0x2b5c8b(0xd2),'required':!![],'description':a78_0x2b5c8b(0xbc)},SQLCODE_FLAG_OPTIONAL,{'name':a78_0x2b5c8b(0xd3),'type':a78_0x2b5c8b(0xd2),'description':'SQL\x20query\x20display\x20name'},{'name':'db','type':a78_0x2b5c8b(0xd2),'description':a78_0x2b5c8b(0xbf)},{'name':a78_0x2b5c8b(0xbe),'type':a78_0x2b5c8b(0xd2),'description':a78_0x2b5c8b(0xb5)}],async 'validate'(_0x3d7458){const _0x4a36d2=a78_0x2b5c8b,_0x1aeb97=resolve(process['cwd'](),_0x3d7458[_0x4a36d2(0xad)]('file'));if(!existsSync(_0x1aeb97))throw CliErrors[_0x4a36d2(0xce)](_0x4a36d2(0xd8)+_0x1aeb97);const _0x15363a=readFileSync(_0x1aeb97,_0x4a36d2(0xaa)),_0x338ecc=validateSql(_0x15363a);if(!_0x338ecc[_0x4a36d2(0xbb)])throw CliErrors[_0x4a36d2(0xce)]('SQL\x20validation\x20failed:\x20'+_0x338ecc[_0x4a36d2(0xbd)]);},async 'dryRun'(_0xcb3e17){const _0x4c569a=a78_0x2b5c8b,_0x559ed2=resolve(process[_0x4c569a(0xca)](),_0xcb3e17['str'](_0x4c569a(0xb1))),_0x4dc941=readFileSync(_0x559ed2,_0x4c569a(0xaa)),_0x1fdf08=validateSql(_0x4dc941),_0x2b0b4f=_0xcb3e17['str']('db')||undefined,{db:_0xe0684f,error:_0x10a250}=await resolveOneDb(_0xcb3e17[_0x4c569a(0xcf)],_0x2b0b4f);return{'method':'POST','url':_0x4c569a(0xc9),'body':{'appCode':_0xcb3e17[_0x4c569a(0xcf)],'sqlContent':'('+_0x4dc941[_0x4c569a(0xd4)]+'\x20chars)','sqlCode':_0xcb3e17[_0x4c569a(0xad)](_0x4c569a(0xc4))||undefined,'sqlName':_0xcb3e17['str'](_0x4c569a(0xd3))||undefined,'db':_0xe0684f?_0xe0684f[_0x4c569a(0xc2)]+'\x20('+_0xe0684f[_0x4c569a(0xb8)]+')':_0x10a250},'description':[_0x4c569a(0xc6)+_0xcb3e17[_0x4c569a(0xad)]('file'),_0x4c569a(0xd1)+_0x1fdf08[_0x4c569a(0xbd)],_0x4c569a(0xd0)+_0x1fdf08[_0x4c569a(0xd9)]['type']+'\x20|\x20Tables:\x20'+(_0x1fdf08['tables'][_0x4c569a(0xb4)](',\x20')||_0x4c569a(0xd6))+_0x4c569a(0xc0)+(_0x1fdf08[_0x4c569a(0xae)][_0x4c569a(0xb4)](',\x20')||'none')][_0x4c569a(0xb4)]('\x0a')};},async 'execute'(_0x2ddeb2){const _0x576f5a=a78_0x2b5c8b,_0x33fd71=resolve(process[_0x576f5a(0xca)](),_0x2ddeb2[_0x576f5a(0xad)](_0x576f5a(0xb1))),_0x44b873=readFileSync(_0x33fd71,'utf-8'),_0x5aa5cc=_0x2ddeb2[_0x576f5a(0xad)]('db')||undefined,{db:_0x39a2d7,error:_0x16cb10}=await resolveOneDb(_0x2ddeb2[_0x576f5a(0xcf)],_0x5aa5cc);if(_0x16cb10)throw CliErrors[_0x576f5a(0xce)](_0x16cb10);const _0x2f5d84=await saveSqlQuery({'appCode':_0x2ddeb2['appCode'],'sqlContent':_0x44b873,'sqlCode':_0x2ddeb2[_0x576f5a(0xad)]('sqlcode')||undefined,'sqlName':_0x2ddeb2['str'](_0x576f5a(0xd3))||undefined,'dbId':_0x39a2d7[_0x576f5a(0xb8)],'description':_0x2ddeb2['str'](_0x576f5a(0xbe))||undefined});if(_0x2f5d84[_0x576f5a(0xc5)])return{'ok':![],'data':_0x2f5d84,'message':_0x2f5d84[_0x576f5a(0xbd)]||'Conflict\x20detected'};return{'ok':!![],'data':{'sqlCode':_0x2f5d84[_0x576f5a(0xc7)],'sqlName':_0x2f5d84[_0x576f5a(0xc3)],'action':_0x2f5d84[_0x576f5a(0xba)]},'message':(_0x2f5d84['action']===_0x576f5a(0xaf)?_0x576f5a(0xb2):_0x576f5a(0xac))+_0x576f5a(0xb0)+(_0x2f5d84[_0x576f5a(0xc7)]?'\x20('+_0x2f5d84[_0x576f5a(0xc7)]+')':'')};}};
1
+ const a78_0x9edc62=a78_0x5997;function a78_0x5997(_0x1b9fb7,_0x147c97){_0x1b9fb7=_0x1b9fb7-0xd0;const _0x54e9d0=a78_0x54e9();let _0x599798=_0x54e9d0[_0x1b9fb7];return _0x599798;}(function(_0xd2bcdf,_0x54d130){const _0x3d0452=a78_0x5997,_0x5b295b=_0xd2bcdf();while(!![]){try{const _0x5cbba6=-parseInt(_0x3d0452(0xf0))/0x1+parseInt(_0x3d0452(0x101))/0x2+-parseInt(_0x3d0452(0xf6))/0x3+parseInt(_0x3d0452(0x100))/0x4+parseInt(_0x3d0452(0xda))/0x5*(-parseInt(_0x3d0452(0xe6))/0x6)+parseInt(_0x3d0452(0xfc))/0x7+parseInt(_0x3d0452(0xe0))/0x8*(parseInt(_0x3d0452(0xd4))/0x9);if(_0x5cbba6===_0x54d130)break;else _0x5b295b['push'](_0x5b295b['shift']());}catch(_0x150293){_0x5b295b['push'](_0x5b295b['shift']());}}}(a78_0x54e9,0x995d5));import{readFileSync,existsSync}from'node:fs';function a78_0x54e9(){const _0x2d5931=['sqlcode','action','utf-8','appCode','2361666qmaNKt','Created','sql','Validation:\x20','SQL\x20query\x20description','none','2435566bNgyQD','POST','description','sqlCode','4562864AEApZm','55002nvVKfw','created','save','str','N/A','\x20successfully','File\x20not\x20found:\x20','sqlname','18429597MlwcDH','Updated','SQL\x20validation\x20failed:\x20','\x20|\x20Params:\x20','dbId','Conflict\x20detected','9635imrVoB','length','/api/node-toolbox/sql/save','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','\x20|\x20Tables:\x20','write','8SVTdCd','validation','\x20chars)','join','valid','message','3786QAtuLH','parameters','Path\x20to\x20the\x20SQL\x20file','string','cwd','file','sqlType','tables','Type:\x20','type','932548TKcKvd','dbName'];a78_0x54e9=function(){return _0x2d5931;};return a78_0x54e9();}import{resolve}from'node:path';import{saveSqlQuery}from'../../core/api-client.js';import{resolveOneDb}from'../../core/db-resolver.js';import{validateSql}from'../../core/sql-validator.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../common/flags.js';export const sqlSave={'service':a78_0x9edc62(0xf8),'command':a78_0x9edc62(0x103),'description':'Save\x20or\x20update\x20a\x20custom\x20SQL\x20query\x20(validates\x20before\x20saving)','risk':a78_0x9edc62(0xdf),'flags':[{'name':'file','type':a78_0x9edc62(0xe9),'required':!![],'description':a78_0x9edc62(0xe8)},SQLCODE_FLAG_OPTIONAL,{'name':a78_0x9edc62(0xd3),'type':a78_0x9edc62(0xe9),'description':'SQL\x20query\x20display\x20name'},{'name':'db','type':'string','description':a78_0x9edc62(0xdd)},{'name':a78_0x9edc62(0xfe),'type':a78_0x9edc62(0xe9),'description':a78_0x9edc62(0xfa)}],async 'validate'(_0x419f60){const _0xa2fdfd=a78_0x9edc62,_0x4a4e0c=resolve(process[_0xa2fdfd(0xea)](),_0x419f60[_0xa2fdfd(0x104)](_0xa2fdfd(0xeb)));if(!existsSync(_0x4a4e0c))throw CliErrors[_0xa2fdfd(0xe1)](_0xa2fdfd(0xd2)+_0x4a4e0c);const _0x5248d7=readFileSync(_0x4a4e0c,'utf-8'),_0x2693da=validateSql(_0x5248d7);if(!_0x2693da[_0xa2fdfd(0xe4)])throw CliErrors['validation'](_0xa2fdfd(0xd6)+_0x2693da[_0xa2fdfd(0xe5)]);},async 'dryRun'(_0x3714b3){const _0x237922=a78_0x9edc62,_0x451ed6=resolve(process[_0x237922(0xea)](),_0x3714b3[_0x237922(0x104)](_0x237922(0xeb))),_0x9121dd=readFileSync(_0x451ed6,_0x237922(0xf4)),_0x547a7a=validateSql(_0x9121dd),_0x4ede49=_0x3714b3[_0x237922(0x104)]('db')||undefined,{db:_0x435de1,error:_0x192d6b}=await resolveOneDb(_0x3714b3[_0x237922(0xf5)],_0x4ede49);return{'method':_0x237922(0xfd),'url':_0x237922(0xdc),'body':{'appCode':_0x3714b3[_0x237922(0xf5)],'sqlContent':'('+_0x9121dd[_0x237922(0xdb)]+_0x237922(0xe2),'sqlCode':_0x3714b3[_0x237922(0x104)]('sqlcode')||undefined,'sqlName':_0x3714b3[_0x237922(0x104)](_0x237922(0xd3))||undefined,'db':_0x435de1?_0x435de1[_0x237922(0xf1)]+'\x20('+_0x435de1[_0x237922(0xd8)]+')':_0x192d6b},'description':['Save\x20SQL\x20query\x20from\x20'+_0x3714b3['str'](_0x237922(0xeb)),_0x237922(0xf9)+_0x547a7a[_0x237922(0xe5)],_0x237922(0xee)+_0x547a7a[_0x237922(0xec)][_0x237922(0xef)]+_0x237922(0xde)+(_0x547a7a[_0x237922(0xed)][_0x237922(0xe3)](',\x20')||_0x237922(0xd0))+_0x237922(0xd7)+(_0x547a7a[_0x237922(0xe7)][_0x237922(0xe3)](',\x20')||_0x237922(0xfb))][_0x237922(0xe3)]('\x0a')};},async 'execute'(_0x32194d){const _0x59dbc3=a78_0x9edc62,_0x1612fe=resolve(process['cwd'](),_0x32194d[_0x59dbc3(0x104)](_0x59dbc3(0xeb))),_0x3fe114=readFileSync(_0x1612fe,_0x59dbc3(0xf4)),_0x22cbb3=_0x32194d[_0x59dbc3(0x104)]('db')||undefined,{db:_0x4eac34,error:_0x463b3c}=await resolveOneDb(_0x32194d[_0x59dbc3(0xf5)],_0x22cbb3);if(_0x463b3c)throw CliErrors[_0x59dbc3(0xe1)](_0x463b3c);const _0x11d99c=await saveSqlQuery({'appCode':_0x32194d[_0x59dbc3(0xf5)],'sqlContent':_0x3fe114,'sqlCode':_0x32194d['str'](_0x59dbc3(0xf2))||undefined,'sqlName':_0x32194d[_0x59dbc3(0x104)](_0x59dbc3(0xd3))||undefined,'dbId':_0x4eac34['dbId'],'description':_0x32194d[_0x59dbc3(0x104)](_0x59dbc3(0xfe))||undefined});if(_0x11d99c['blocked'])return{'ok':![],'data':_0x11d99c,'message':_0x11d99c[_0x59dbc3(0xe5)]||_0x59dbc3(0xd9)};return{'ok':!![],'data':{'sqlCode':_0x11d99c[_0x59dbc3(0xff)],'sqlName':_0x11d99c['sqlName'],'action':_0x11d99c[_0x59dbc3(0xf3)]},'message':(_0x11d99c[_0x59dbc3(0xf3)]===_0x59dbc3(0x102)?_0x59dbc3(0xf7):_0x59dbc3(0xd5))+_0x59dbc3(0xd1)+(_0x11d99c[_0x59dbc3(0xff)]?'\x20('+_0x11d99c[_0x59dbc3(0xff)]+')':'')};}};
@@ -1 +1 @@
1
- const a79_0x17847b=a79_0x5364;(function(_0x398b8a,_0x4d72b6){const _0x5dec96=a79_0x5364,_0x21b42c=_0x398b8a();while(!![]){try{const _0x4b77c0=parseInt(_0x5dec96(0x1ed))/0x1+parseInt(_0x5dec96(0x1d4))/0x2*(-parseInt(_0x5dec96(0x1c4))/0x3)+-parseInt(_0x5dec96(0x1e5))/0x4*(-parseInt(_0x5dec96(0x1ee))/0x5)+parseInt(_0x5dec96(0x1cb))/0x6+parseInt(_0x5dec96(0x1ce))/0x7+-parseInt(_0x5dec96(0x1c9))/0x8+parseInt(_0x5dec96(0x1f3))/0x9*(-parseInt(_0x5dec96(0x1e4))/0xa);if(_0x4b77c0===_0x4d72b6)break;else _0x21b42c['push'](_0x21b42c['shift']());}catch(_0x1810ab){_0x21b42c['push'](_0x21b42c['shift']());}}}(a79_0x4e4f,0x2d4c1));import{readFileSync,existsSync}from'node:fs';function a79_0x4e4f(){const _0x58d79c=['size','read','isDangerous','10lrPijF','484228OeqYAX','validation','length','sqlType','File\x20not\x20found:\x20','tables','reason','\x22\x20not\x20found\x20or\x20not\x20accessible','3159VOhypf','5fgZnJG','split','flagMissing','sql','type','1112409xlQgyh','isArray','toLowerCase','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','209211KRTFFT','utf-8','name','fields','dbtableConfig','379560wMpYRD','\x22\x20not\x20found\x20in\x20any\x20dataset','269820FEwcyT','Provide\x20--file\x20or\x20--sql','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','1799938BhImez','isSelectOnly','get','validate','push','str','2WpTYpH','message','appCode','valid','Table\x20\x22','schemaWarnings','string','Dataset\x20\x22','schemas','trim','map','file','tableName'];a79_0x4e4f=function(){return _0x58d79c;};return a79_0x4e4f();}import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a79_0x5364(_0x1db1b1,_0xa6923a){_0x1db1b1=_0x1db1b1-0x1c1;const _0x4e4f47=a79_0x4e4f();let _0x536459=_0x4e4f47[_0x1db1b1];return _0x536459;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const sqlValidate={'service':a79_0x17847b(0x1f1),'command':a79_0x17847b(0x1d1),'description':a79_0x17847b(0x1c3),'risk':a79_0x17847b(0x1e2),'flags':[{'name':a79_0x17847b(0x1df),'type':a79_0x17847b(0x1da),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':'string','description':a79_0x17847b(0x1cd)},{'name':a79_0x17847b(0x1dc),'type':a79_0x17847b(0x1da),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'}],async 'execute'(_0x1a5888){const _0x4f7003=a79_0x17847b,_0x59706e=_0x1a5888[_0x4f7003(0x1d3)]('file'),_0x251953=_0x1a5888[_0x4f7003(0x1d3)]('sql');if(!_0x59706e&&!_0x251953)throw CliErrors[_0x4f7003(0x1f0)](_0x4f7003(0x1df),_0x4f7003(0x1cc));let _0x1abc92;if(_0x59706e){const _0x136e2a=resolve(process['cwd'](),_0x59706e);if(!existsSync(_0x136e2a))throw CliErrors[_0x4f7003(0x1e6)](_0x4f7003(0x1e9)+_0x136e2a);_0x1abc92=readFileSync(_0x136e2a,_0x4f7003(0x1c5));}else _0x1abc92=_0x251953;const _0x1712af=validateSql(_0x1abc92),_0x5899d4={'valid':_0x1712af[_0x4f7003(0x1d7)],'sqlType':_0x1712af['sqlType'][_0x4f7003(0x1f2)],'isSelectOnly':_0x1712af[_0x4f7003(0x1e8)][_0x4f7003(0x1cf)],'isDangerous':_0x1712af[_0x4f7003(0x1e8)][_0x4f7003(0x1e3)],'tables':_0x1712af[_0x4f7003(0x1ea)],'parameters':_0x1712af['parameters'],'message':_0x1712af[_0x4f7003(0x1d5)]};_0x1712af[_0x4f7003(0x1e8)][_0x4f7003(0x1eb)]&&(_0x5899d4[_0x4f7003(0x1eb)]=_0x1712af[_0x4f7003(0x1e8)][_0x4f7003(0x1eb)]);const _0x3eb596=_0x1a5888[_0x4f7003(0x1d3)](_0x4f7003(0x1dc));if(_0x3eb596&&_0x1712af[_0x4f7003(0x1d7)]){const _0x5bdb99=_0x3eb596[_0x4f7003(0x1ef)](',')[_0x4f7003(0x1de)](_0x1c8fde=>_0x1c8fde[_0x4f7003(0x1dd)]())['filter'](Boolean),_0x53530d=[],_0x5ce004=await listDatasets(_0x1a5888[_0x4f7003(0x1d6)]),_0x519245=new Map(_0x5ce004[_0x4f7003(0x1de)](_0x42f8a4=>[_0x42f8a4['dbtableConfig']?.[_0x4f7003(0x1e0)]?.[_0x4f7003(0x1c2)](),_0x42f8a4]));for(const _0x3ad8e0 of _0x1712af[_0x4f7003(0x1ea)]){const _0x109139=_0x519245[_0x4f7003(0x1d0)](_0x3ad8e0[_0x4f7003(0x1c2)]());!_0x109139&&_0x53530d[_0x4f7003(0x1d2)](_0x4f7003(0x1d8)+_0x3ad8e0+_0x4f7003(0x1ca));}for(const _0x5cd2c5 of _0x5bdb99){try{const _0x4cdb17=await getDatasetDetail(_0x5cd2c5),_0x440d0f=Array[_0x4f7003(0x1c1)](_0x4cdb17[_0x4f7003(0x1c7)])?_0x4cdb17['fields']:[],_0x45adfb=new Set(_0x440d0f[_0x4f7003(0x1de)](_0x321c95=>_0x321c95[_0x4f7003(0x1c6)]?.[_0x4f7003(0x1c2)]())),_0x20bce4=_0x4cdb17[_0x4f7003(0x1c8)]?.[_0x4f7003(0x1e0)]||_0x4cdb17['tableName']||_0x5cd2c5;_0x5899d4['schema:'+_0x20bce4]={'code':_0x5cd2c5,'tableName':_0x20bce4,'fieldCount':_0x45adfb[_0x4f7003(0x1e1)],'fields':Array['from'](_0x45adfb)};}catch{_0x53530d[_0x4f7003(0x1d2)](_0x4f7003(0x1db)+_0x5cd2c5+_0x4f7003(0x1ec));}}_0x53530d[_0x4f7003(0x1e7)]>0x0&&(_0x5899d4[_0x4f7003(0x1d9)]=_0x53530d);}return{'ok':_0x1712af[_0x4f7003(0x1d7)],'data':_0x5899d4,'message':_0x1712af['message']};}};
1
+ const a79_0x127f92=a79_0x1029;(function(_0x32bb3c,_0x1421d7){const _0x268ecc=a79_0x1029,_0xde1eaa=_0x32bb3c();while(!![]){try{const _0x40772a=parseInt(_0x268ecc(0x112))/0x1*(-parseInt(_0x268ecc(0x119))/0x2)+-parseInt(_0x268ecc(0xec))/0x3+parseInt(_0x268ecc(0x117))/0x4+-parseInt(_0x268ecc(0x10b))/0x5+parseInt(_0x268ecc(0x115))/0x6+parseInt(_0x268ecc(0x10c))/0x7*(-parseInt(_0x268ecc(0x106))/0x8)+parseInt(_0x268ecc(0xf3))/0x9*(parseInt(_0x268ecc(0xff))/0xa);if(_0x40772a===_0x1421d7)break;else _0xde1eaa['push'](_0xde1eaa['shift']());}catch(_0x3832ee){_0xde1eaa['push'](_0xde1eaa['shift']());}}}(a79_0x12ac,0xb9822));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a79_0x12ac(){const _0x5563a0=['485667JALGqZ','file','string','parameters','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','get','fields','utf-8','tables','message','sql','cwd','310fWQUzn','isArray','sqlType','push','reason','filter','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','8xvMjVp','isSelectOnly','appCode','name','str','4899025HZltlV','415863cMQRtl','trim','\x22\x20not\x20found\x20in\x20any\x20dataset','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','schemaWarnings','Provide\x20--file\x20or\x20--sql','10326UAwyya','\x22\x20not\x20found\x20or\x20not\x20accessible','validation','8902986RmWZys','valid','2689608MPfodq','map','124DgJPwg','split','schemas','toLowerCase','Table\x20\x22','tableName','Dataset\x20\x22','size','4169454xSXwtF','dbtableConfig','isDangerous','length','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','validate','schema:'];a79_0x12ac=function(){return _0x5563a0;};return a79_0x12ac();}import{CliErrors}from'../../errors.js';function a79_0x1029(_0x207f2c,_0x195c0d){_0x207f2c=_0x207f2c-0xe9;const _0x12aced=a79_0x12ac();let _0x102910=_0x12aced[_0x207f2c];return _0x102910;}export const sqlValidate={'service':'sql','command':a79_0x127f92(0xf1),'description':a79_0x127f92(0x105),'risk':'read','flags':[{'name':a79_0x127f92(0xf4),'type':a79_0x127f92(0xf5),'description':a79_0x127f92(0xf0)},{'name':a79_0x127f92(0xfd),'type':a79_0x127f92(0xf5),'description':a79_0x127f92(0x10f)},{'name':a79_0x127f92(0x11b),'type':a79_0x127f92(0xf5),'description':a79_0x127f92(0xf7)}],async 'execute'(_0xd3fa91){const _0x204dfe=a79_0x127f92,_0x156490=_0xd3fa91[_0x204dfe(0x10a)]('file'),_0x5b7e6e=_0xd3fa91['str'](_0x204dfe(0xfd));if(!_0x156490&&!_0x5b7e6e)throw CliErrors['flagMissing']('file',_0x204dfe(0x111));let _0x25a644;if(_0x156490){const _0x30ca05=resolve(process[_0x204dfe(0xfe)](),_0x156490);if(!existsSync(_0x30ca05))throw CliErrors[_0x204dfe(0x114)]('File\x20not\x20found:\x20'+_0x30ca05);_0x25a644=readFileSync(_0x30ca05,_0x204dfe(0xfa));}else _0x25a644=_0x5b7e6e;const _0x4d7a34=validateSql(_0x25a644),_0xc5b53e={'valid':_0x4d7a34['valid'],'sqlType':_0x4d7a34['sqlType']['type'],'isSelectOnly':_0x4d7a34[_0x204dfe(0x101)][_0x204dfe(0x107)],'isDangerous':_0x4d7a34[_0x204dfe(0x101)][_0x204dfe(0xee)],'tables':_0x4d7a34[_0x204dfe(0xfb)],'parameters':_0x4d7a34[_0x204dfe(0xf6)],'message':_0x4d7a34['message']};_0x4d7a34[_0x204dfe(0x101)][_0x204dfe(0x103)]&&(_0xc5b53e[_0x204dfe(0x103)]=_0x4d7a34['sqlType'][_0x204dfe(0x103)]);const _0x2e7b05=_0xd3fa91[_0x204dfe(0x10a)](_0x204dfe(0x11b));if(_0x2e7b05&&_0x4d7a34[_0x204dfe(0x116)]){const _0x5ec648=_0x2e7b05[_0x204dfe(0x11a)](',')['map'](_0x4bfbb5=>_0x4bfbb5[_0x204dfe(0x10d)]())[_0x204dfe(0x104)](Boolean),_0x3b91a6=[],_0x3e77f3=await listDatasets(_0xd3fa91[_0x204dfe(0x108)]),_0x1d0af0=new Map(_0x3e77f3[_0x204dfe(0x118)](_0xc018a4=>[_0xc018a4[_0x204dfe(0xed)]?.[_0x204dfe(0xe9)]?.[_0x204dfe(0x11c)](),_0xc018a4]));for(const _0x1135c5 of _0x4d7a34[_0x204dfe(0xfb)]){const _0x18b9f1=_0x1d0af0[_0x204dfe(0xf8)](_0x1135c5['toLowerCase']());!_0x18b9f1&&_0x3b91a6[_0x204dfe(0x102)](_0x204dfe(0x11d)+_0x1135c5+_0x204dfe(0x10e));}for(const _0x49263a of _0x5ec648){try{const _0x20828f=await getDatasetDetail(_0x49263a),_0x127d99=Array[_0x204dfe(0x100)](_0x20828f[_0x204dfe(0xf9)])?_0x20828f[_0x204dfe(0xf9)]:[],_0x50d4a0=new Set(_0x127d99[_0x204dfe(0x118)](_0x2a695f=>_0x2a695f[_0x204dfe(0x109)]?.[_0x204dfe(0x11c)]())),_0x29b098=_0x20828f[_0x204dfe(0xed)]?.['tableName']||_0x20828f[_0x204dfe(0xe9)]||_0x49263a;_0xc5b53e[_0x204dfe(0xf2)+_0x29b098]={'code':_0x49263a,'tableName':_0x29b098,'fieldCount':_0x50d4a0[_0x204dfe(0xeb)],'fields':Array['from'](_0x50d4a0)};}catch{_0x3b91a6['push'](_0x204dfe(0xea)+_0x49263a+_0x204dfe(0x113));}}_0x3b91a6[_0x204dfe(0xef)]>0x0&&(_0xc5b53e[_0x204dfe(0x110)]=_0x3b91a6);}return{'ok':_0x4d7a34['valid'],'data':_0xc5b53e,'message':_0x4d7a34[_0x204dfe(0xfc)]};}};
@@ -1 +1 @@
1
- function a80_0x4b32(){const _0xbf7550=['328iKhVPX','now','404499PVjyry','2542113niPDMO','6955584cFIQqi','info','inherit','408243oXsGdW','启动开发服务器','logger','1514706vqBVqy','start','5174664cPqEMY','865oOptpd','vite','needsUpgrade'];a80_0x4b32=function(){return _0xbf7550;};return a80_0x4b32();}const a80_0x52891e=a80_0x4767;(function(_0x5451fd,_0x18142d){const _0x329c3b=a80_0x4767,_0x8f1b56=_0x5451fd();while(!![]){try{const _0x1ee046=parseInt(_0x329c3b(0x17b))/0x1+parseInt(_0x329c3b(0x183))/0x2+-parseInt(_0x329c3b(0x180))/0x3+-parseInt(_0x329c3b(0x179))/0x4*(parseInt(_0x329c3b(0x186))/0x5)+-parseInt(_0x329c3b(0x185))/0x6+-parseInt(_0x329c3b(0x17c))/0x7+parseInt(_0x329c3b(0x17d))/0x8;if(_0x1ee046===_0x18142d)break;else _0x8f1b56['push'](_0x8f1b56['shift']());}catch(_0x5de171){_0x8f1b56['push'](_0x8f1b56['shift']());}}}(a80_0x4b32,0xa0046));function a80_0x4767(_0x211a4c,_0x382709){_0x211a4c=_0x211a4c-0x178;const _0x4b32ac=a80_0x4b32();let _0x47671e=_0x4b32ac[_0x211a4c];return _0x47671e;}import{execa}from'execa';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';export async function runStart(_0x285b73){const _0x468bf5=a80_0x4767,_0x7fb6c5=Date[_0x468bf5(0x17a)](),_0x316fc7=_0x285b73||process['cwd'](),_0x2ab5d3=await checkCliVersion();_0x2ab5d3[_0x468bf5(0x178)]&&printCliUpgradeWarning(_0x2ab5d3);const _0x84e7c4=await checkSdkVersion(_0x316fc7);_0x84e7c4[_0x468bf5(0x178)]&&printSdkUpgradeWarning(_0x84e7c4);try{await execa(_0x468bf5(0x187),[],{'cwd':_0x316fc7,'stdio':_0x468bf5(0x17f),'preferLocal':!![],'localDir':_0x316fc7,'env':{...process.env}});const _0x57706a=Date['now']()-_0x7fb6c5;void _0x57706a;}catch(_0xe630f){throw _0xe630f;}}export const startCommand={'name':a80_0x52891e(0x184),'description':'Start\x20development\x20server',async 'run'(_0x391a3f,_0x579a64,_0x57f6f2){const _0x38d7dd=a80_0x52891e;_0x391a3f[_0x38d7dd(0x182)][_0x38d7dd(0x17e)](_0x38d7dd(0x184),_0x38d7dd(0x181)),await runStart();}};
1
+ const a80_0x3a308c=a80_0x46d9;(function(_0x4f7e90,_0x236d89){const _0xb05749=a80_0x46d9,_0x294d9a=_0x4f7e90();while(!![]){try{const _0x3d0b9b=parseInt(_0xb05749(0x164))/0x1*(parseInt(_0xb05749(0x165))/0x2)+-parseInt(_0xb05749(0x160))/0x3*(-parseInt(_0xb05749(0x16c))/0x4)+parseInt(_0xb05749(0x16f))/0x5*(parseInt(_0xb05749(0x15f))/0x6)+-parseInt(_0xb05749(0x15e))/0x7+-parseInt(_0xb05749(0x16d))/0x8*(-parseInt(_0xb05749(0x16b))/0x9)+parseInt(_0xb05749(0x167))/0xa+parseInt(_0xb05749(0x161))/0xb;if(_0x3d0b9b===_0x236d89)break;else _0x294d9a['push'](_0x294d9a['shift']());}catch(_0x1ba0e6){_0x294d9a['push'](_0x294d9a['shift']());}}}(a80_0x25c8,0x6695b));function a80_0x46d9(_0xaf844d,_0x5795df){_0xaf844d=_0xaf844d-0x15d;const _0x25c83d=a80_0x25c8();let _0x46d91e=_0x25c83d[_0xaf844d];return _0x46d91e;}function a80_0x25c8(){const _0x120e15=['524358eEuGDi','1761364TXFgQT','now','启动开发服务器','1838yaZhgX','64rTpYLN','start','924620lXlvKg','info','needsUpgrade','inherit','9xvUiVN','4xCQZWG','303224koUzAl','Start\x20development\x20server','10iuDRfS','cwd','5227054SyEDzF','1928454paBJHJ'];a80_0x25c8=function(){return _0x120e15;};return a80_0x25c8();}import{execa}from'execa';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';export async function runStart(_0x3dd156){const _0x145bb5=a80_0x46d9,_0xe606a3=Date['now'](),_0x38da9b=_0x3dd156||process[_0x145bb5(0x15d)](),_0x464f44=await checkCliVersion();_0x464f44[_0x145bb5(0x169)]&&printCliUpgradeWarning(_0x464f44);const _0xe59ef7=await checkSdkVersion(_0x38da9b);_0xe59ef7[_0x145bb5(0x169)]&&printSdkUpgradeWarning(_0xe59ef7);try{await execa('vite',[],{'cwd':_0x38da9b,'stdio':_0x145bb5(0x16a),'preferLocal':!![],'localDir':_0x38da9b,'env':{...process.env}});const _0x10a8a9=Date[_0x145bb5(0x162)]()-_0xe606a3;void _0x10a8a9;}catch(_0x5c6a44){throw _0x5c6a44;}}export const startCommand={'name':a80_0x3a308c(0x166),'description':a80_0x3a308c(0x16e),async 'run'(_0x499530,_0x1ad3c2,_0x3d0399){const _0x4c5fb9=a80_0x3a308c;_0x499530['logger'][_0x4c5fb9(0x168)]('start',_0x4c5fb9(0x163)),await runStart();}};
@@ -1 +1 @@
1
- const a81_0x2f0985=a81_0x3d63;(function(_0x7e4b13,_0x52bb07){const _0x532459=a81_0x3d63,_0x5d6988=_0x7e4b13();while(!![]){try{const _0x4a2d68=parseInt(_0x532459(0x18b))/0x1*(-parseInt(_0x532459(0x186))/0x2)+parseInt(_0x532459(0x185))/0x3+parseInt(_0x532459(0x18f))/0x4+-parseInt(_0x532459(0x18c))/0x5+parseInt(_0x532459(0x188))/0x6*(parseInt(_0x532459(0x190))/0x7)+-parseInt(_0x532459(0x18e))/0x8*(-parseInt(_0x532459(0x191))/0x9)+-parseInt(_0x532459(0x18a))/0xa*(parseInt(_0x532459(0x18d))/0xb);if(_0x4a2d68===_0x52bb07)break;else _0x5d6988['push'](_0x5d6988['shift']());}catch(_0xa96930){_0x5d6988['push'](_0x5d6988['shift']());}}}(a81_0x24e5,0x6ccbd));function a81_0x3d63(_0xefcb9e,_0x13c8f6){_0xefcb9e=_0xefcb9e-0x185;const _0x24e5b0=a81_0x24e5();let _0x3d6353=_0x24e5b0[_0xefcb9e];return _0x3d6353;}export const CLI_BIN_NAME=a81_0x2f0985(0x187);function a81_0x24e5(){const _0x455693=['2314080AepbIj','6119575ZakraS','4483432tnPYeq','2186316kXxSkY','1767703IjxICH','9lvbcAK','1999431XwCZhp','2jyrLeq','rabetbase','6YGzwdH','@lovrabet/rabetbase-cli','10fmxHOR','561244CbXSzy'];a81_0x24e5=function(){return _0x455693;};return a81_0x24e5();}export const NPM_PACKAGE_NAME=a81_0x2f0985(0x189);
1
+ function a81_0x434b(_0x2a464d,_0x26a30){_0x2a464d=_0x2a464d-0x1b6;const _0x46b317=a81_0x46b3();let _0x434b0e=_0x46b317[_0x2a464d];return _0x434b0e;}function a81_0x46b3(){const _0x5c2e38=['rabetbase','3403989tHOIpQ','1873312Ggizbz','28469551PaLnCd','30410Tbrtyg','10pKRygL','@lovrabet/rabetbase-cli','480389ifdnAi','13446279WozxzL','40SCROkc','53GQqpyj','49968UWzxsR','10xLbvdm'];a81_0x46b3=function(){return _0x5c2e38;};return a81_0x46b3();}const a81_0x4fdf94=a81_0x434b;(function(_0x185d95,_0x29856a){const _0x2f5c4b=a81_0x434b,_0x55716d=_0x185d95();while(!![]){try{const _0x8eacaa=parseInt(_0x2f5c4b(0x1c2))/0x1*(-parseInt(_0x2f5c4b(0x1bc))/0x2)+parseInt(_0x2f5c4b(0x1b9))/0x3+parseInt(_0x2f5c4b(0x1ba))/0x4*(-parseInt(_0x2f5c4b(0x1bd))/0x5)+parseInt(_0x2f5c4b(0x1b6))/0x6+-parseInt(_0x2f5c4b(0x1bf))/0x7*(-parseInt(_0x2f5c4b(0x1c1))/0x8)+parseInt(_0x2f5c4b(0x1c0))/0x9*(-parseInt(_0x2f5c4b(0x1b7))/0xa)+parseInt(_0x2f5c4b(0x1bb))/0xb;if(_0x8eacaa===_0x29856a)break;else _0x55716d['push'](_0x55716d['shift']());}catch(_0xa1afdd){_0x55716d['push'](_0x55716d['shift']());}}}(a81_0x46b3,0xcc853));export const CLI_BIN_NAME=a81_0x4fdf94(0x1b8);export const NPM_PACKAGE_NAME=a81_0x4fdf94(0x1be);
@@ -1 +1 @@
1
- const a82_0x2731c7=a82_0x2de1;(function(_0x5a1352,_0x336450){const _0x56c454=a82_0x2de1,_0x39b06a=_0x5a1352();while(!![]){try{const _0x216bb3=parseInt(_0x56c454(0xaa))/0x1*(-parseInt(_0x56c454(0xb7))/0x2)+-parseInt(_0x56c454(0xb9))/0x3+parseInt(_0x56c454(0xb4))/0x4+parseInt(_0x56c454(0xb3))/0x5+parseInt(_0x56c454(0xb1))/0x6+-parseInt(_0x56c454(0xae))/0x7+parseInt(_0x56c454(0xb0))/0x8;if(_0x216bb3===_0x336450)break;else _0x39b06a['push'](_0x39b06a['shift']());}catch(_0x52e35a){_0x39b06a['push'](_0x39b06a['shift']());}}}(a82_0x2118,0x1d3a1));import{getEnv}from'./env.js';function a82_0x2de1(_0x3fdd13,_0x5eeced){_0x3fdd13=_0x3fdd13-0xaa;const _0x2118bb=a82_0x2118();let _0x2de1fb=_0x2118bb[_0x3fdd13];return _0x2de1fb;}function a82_0x2118(){const _0x38aa3c=['436008DlFfwo','apiDomain','713675hVFBRZ','142308IibXFy','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','4uxeiBG','userDomain','704142Zbajfo','100739GoTOwz','https://api.lovrabet.com','https://runtime.lovrabet.com','production','885045lpExRS','https://user-daily.lovrabet.com','3450880PApTft'];a82_0x2118=function(){return _0x38aa3c;};return a82_0x2118();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4d8e11){const _0x5b84f5=a82_0x2de1;customApiDomain=_0x4d8e11?.[_0x5b84f5(0xb2)],customUserDomain=_0x4d8e11?.[_0x5b84f5(0xb8)],customRuntimeDomain=_0x4d8e11?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(getEnv()===a82_0x2731c7(0xad)?a82_0x2731c7(0xb5):a82_0x2731c7(0xaf));export const getApiDomain=()=>customApiDomain||(getEnv()===a82_0x2731c7(0xad)?a82_0x2731c7(0xab):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(getEnv()===a82_0x2731c7(0xad)?a82_0x2731c7(0xac):a82_0x2731c7(0xb6));
1
+ const a82_0x594365=a82_0x37c0;(function(_0x4e1218,_0x37bfbf){const _0x168cab=a82_0x37c0,_0x5bab7f=_0x4e1218();while(!![]){try{const _0x42c726=-parseInt(_0x168cab(0x120))/0x1+parseInt(_0x168cab(0x116))/0x2+-parseInt(_0x168cab(0x112))/0x3+parseInt(_0x168cab(0x11d))/0x4*(-parseInt(_0x168cab(0x11a))/0x5)+-parseInt(_0x168cab(0x11e))/0x6*(-parseInt(_0x168cab(0x121))/0x7)+parseInt(_0x168cab(0x117))/0x8*(-parseInt(_0x168cab(0x119))/0x9)+parseInt(_0x168cab(0x11f))/0xa*(parseInt(_0x168cab(0x115))/0xb);if(_0x42c726===_0x37bfbf)break;else _0x5bab7f['push'](_0x5bab7f['shift']());}catch(_0x3d8072){_0x5bab7f['push'](_0x5bab7f['shift']());}}}(a82_0x2e82,0xa11e7));import{getEnv}from'./env.js';function a82_0x37c0(_0x3b2786,_0xfef2c){_0x3b2786=_0x3b2786-0x112;const _0x2e825c=a82_0x2e82();let _0x37c004=_0x2e825c[_0x3b2786];return _0x37c004;}function a82_0x2e82(){const _0x5089b6=['1023SvGkCw','1869272NWtQoY','7343984LwaPxb','production','9TjgJwX','10jtgtoI','https://user.lovrabet.com','runtimeDomain','2346980ZefNTf','30hhbpnN','358130hfMoyK','309823zDIXtz','18949wEnYri','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','3652578yrFemL','https://daily-api.lovrabet.com','https://api.lovrabet.com'];a82_0x2e82=function(){return _0x5089b6;};return a82_0x2e82();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x5dc62d){const _0x597d00=a82_0x37c0;customApiDomain=_0x5dc62d?.['apiDomain'],customUserDomain=_0x5dc62d?.['userDomain'],customRuntimeDomain=_0x5dc62d?.[_0x597d00(0x11c)];}export const getUserDomain=()=>customUserDomain||(getEnv()==='production'?a82_0x594365(0x11b):a82_0x594365(0x122));export const getApiDomain=()=>customApiDomain||(getEnv()===a82_0x594365(0x118)?a82_0x594365(0x114):a82_0x594365(0x113));export const getRuntimeDomain=()=>customRuntimeDomain||(getEnv()===a82_0x594365(0x118)?a82_0x594365(0x123):'https://daily-runtime.lovrabet.com');
@@ -1 +1 @@
1
- const a83_0x41b638=a83_0x430c;(function(_0x5daab7,_0x25d034){const _0x11c631=a83_0x430c,_0x3f784c=_0x5daab7();while(!![]){try{const _0xc7082=-parseInt(_0x11c631(0x17a))/0x1+parseInt(_0x11c631(0x171))/0x2*(-parseInt(_0x11c631(0x174))/0x3)+-parseInt(_0x11c631(0x177))/0x4+parseInt(_0x11c631(0x17c))/0x5+parseInt(_0x11c631(0x176))/0x6*(-parseInt(_0x11c631(0x178))/0x7)+parseInt(_0x11c631(0x172))/0x8*(parseInt(_0x11c631(0x175))/0x9)+parseInt(_0x11c631(0x17b))/0xa*(parseInt(_0x11c631(0x173))/0xb);if(_0xc7082===_0x25d034)break;else _0x3f784c['push'](_0x3f784c['shift']());}catch(_0x25835f){_0x3f784c['push'](_0x3f784c['shift']());}}}(a83_0x1cbf,0x5842f));export function normalizeEnv(_0x529dcd){const _0x1af71e=a83_0x430c;return _0x529dcd==='online'?_0x1af71e(0x179):_0x529dcd;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a83_0x41b638(0x179));export function getEnv(){return env;}function a83_0x1cbf(){const _0x5ce149=['138NHftOL','8AqFqtr','7889123xpnngd','22593DuYtOn','5871303QAidOy','337812sKmZsx','716844NMTmmy','49McWYcL','production','205033Lwldnw','10LJWaeX','1449780gvTNLb'];a83_0x1cbf=function(){return _0x5ce149;};return a83_0x1cbf();}function a83_0x430c(_0xbe170d,_0x44bff5){_0xbe170d=_0xbe170d-0x171;const _0x1cbffa=a83_0x1cbf();let _0x430ce8=_0x1cbffa[_0xbe170d];return _0x430ce8;}export function initEnv(_0x51f726){env=normalizeEnv(_0x51f726);}
1
+ const a83_0xa51cbe=a83_0x5b40;(function(_0x405717,_0x29f490){const _0x325a0a=a83_0x5b40,_0x3ae42e=_0x405717();while(!![]){try{const _0x6918ee=parseInt(_0x325a0a(0x1e5))/0x1+-parseInt(_0x325a0a(0x1e3))/0x2+-parseInt(_0x325a0a(0x1e7))/0x3+-parseInt(_0x325a0a(0x1e6))/0x4+-parseInt(_0x325a0a(0x1e2))/0x5+parseInt(_0x325a0a(0x1eb))/0x6*(-parseInt(_0x325a0a(0x1ea))/0x7)+parseInt(_0x325a0a(0x1e9))/0x8;if(_0x6918ee===_0x29f490)break;else _0x3ae42e['push'](_0x3ae42e['shift']());}catch(_0x1be21d){_0x3ae42e['push'](_0x3ae42e['shift']());}}}(a83_0x1cde,0x56703));export function normalizeEnv(_0x1df828){const _0x595f22=a83_0x5b40;return _0x1df828===_0x595f22(0x1e4)?_0x595f22(0x1e8):_0x1df828;}function a83_0x5b40(_0x352fd7,_0x4e455e){_0x352fd7=_0x352fd7-0x1e2;const _0x1cde76=a83_0x1cde();let _0x5b40c7=_0x1cde76[_0x352fd7];return _0x5b40c7;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a83_0xa51cbe(0x1e8));export function getEnv(){return env;}export function initEnv(_0xbd1eb2){env=normalizeEnv(_0xbd1eb2);}function a83_0x1cde(){const _0x337bf3=['production','14348984oCTXXh','217fJNJEi','109476eaoBDM','2422100naBMqB','2034AdylZu','online','316224oJmLiZ','1005748EsFwzE','1359888QKEqbh'];a83_0x1cde=function(){return _0x337bf3;};return a83_0x1cde();}