@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.1

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 (154) 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/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.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/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/db/analyze-cancel.js +1 -1
  52. package/lib/commands/db/analyze-start.js +1 -1
  53. package/lib/commands/db/analyze-status.js +1 -1
  54. package/lib/commands/db/create.js +1 -1
  55. package/lib/commands/db/delete.js +1 -1
  56. package/lib/commands/db/detail.js +1 -1
  57. package/lib/commands/db/diff.js +1 -1
  58. package/lib/commands/db/index.js +1 -1
  59. package/lib/commands/db/list.js +1 -1
  60. package/lib/commands/db/shared.js +1 -1
  61. package/lib/commands/db/tables.js +1 -1
  62. package/lib/commands/db/test.js +1 -1
  63. package/lib/commands/db/update.js +1 -1
  64. package/lib/commands/doctor.js +1 -1
  65. package/lib/commands/init/index.js +1 -1
  66. package/lib/commands/logs/index.js +1 -1
  67. package/lib/commands/menu/index.js +1 -1
  68. package/lib/commands/menu/shared/compare-table.js +1 -1
  69. package/lib/commands/menu/shared/index.js +1 -1
  70. package/lib/commands/menu/shared/inquirer.js +1 -1
  71. package/lib/commands/menu/shared/local-pages.js +1 -1
  72. package/lib/commands/menu/shared/logic.js +1 -1
  73. package/lib/commands/menu/shared/service.js +1 -1
  74. package/lib/commands/menu/shared/sync-core.js +1 -1
  75. package/lib/commands/menu/shared/update-core.js +1 -1
  76. package/lib/commands/menu/shared/valid-url.js +1 -1
  77. package/lib/commands/menu/sync.js +1 -1
  78. package/lib/commands/menu/update.js +1 -1
  79. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  80. package/lib/commands/project/create/format-elapsed.js +1 -1
  81. package/lib/commands/project/create/main.js +1 -1
  82. package/lib/commands/project/create/non-interactive.js +1 -1
  83. package/lib/commands/project/create/project-template-path.js +1 -1
  84. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  85. package/lib/commands/project/create/use-format-code.js +1 -1
  86. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  87. package/lib/commands/project/index.js +1 -1
  88. package/lib/commands/project/init.js +1 -1
  89. package/lib/commands/project/upgrade.js +1 -1
  90. package/lib/commands/registry.js +1 -1
  91. package/lib/commands/run/index.js +1 -1
  92. package/lib/commands/schema.js +1 -1
  93. package/lib/commands/skill/index.js +1 -1
  94. package/lib/commands/sql/detail.js +1 -1
  95. package/lib/commands/sql/exec.js +1 -1
  96. package/lib/commands/sql/index.js +1 -1
  97. package/lib/commands/sql/list.js +1 -1
  98. package/lib/commands/sql/pull.js +1 -1
  99. package/lib/commands/sql/save.js +1 -1
  100. package/lib/commands/sql/shared.js +1 -1
  101. package/lib/commands/sql/validate.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/paths.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/alias-resolver.js +1 -1
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/bff/config.js +1 -1
  110. package/lib/core/bff/file-system.js +1 -1
  111. package/lib/core/bff/hash.js +1 -1
  112. package/lib/core/bff/lock.js +1 -1
  113. package/lib/core/bff/utils.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sql-validator.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner.js +1 -1
  124. package/lib/framework/schema-export.js +1 -1
  125. package/lib/framework/types.js +1 -1
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/help.js +1 -1
  128. package/lib/skills/main.js +1 -1
  129. package/lib/skills/npx-skills-add.js +1 -1
  130. package/lib/telemetry/cli-command-trace.js +1 -1
  131. package/lib/telemetry/cli-help-trace.js +1 -1
  132. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  133. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  134. package/lib/telemetry/send-cli-trace-log.js +1 -1
  135. package/lib/utils/ai_config.js +1 -1
  136. package/lib/utils/apply-jq-filter.js +1 -1
  137. package/lib/utils/cdn-config.js +1 -1
  138. package/lib/utils/check-sdk-version.js +1 -1
  139. package/lib/utils/cli-version-check.js +1 -1
  140. package/lib/utils/config.js +1 -1
  141. package/lib/utils/copy-directory.js +1 -1
  142. package/lib/utils/file-utils.js +1 -1
  143. package/lib/utils/guides-cdn.js +1 -1
  144. package/lib/utils/http-client.js +1 -1
  145. package/lib/utils/is-non-interactive.js +1 -1
  146. package/lib/utils/logger.js +1 -1
  147. package/lib/utils/platform.js +1 -1
  148. package/lib/utils/rules-cdn.js +1 -1
  149. package/lib/utils/sleep.js +1 -1
  150. package/lib/utils/template-replacer.js +1 -1
  151. package/lib/utils/version.js +1 -1
  152. package/lib/utils/with-active-cookie.js +1 -1
  153. package/lib/utils/write-cli-side-channel.js +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- function a85_0xd1ce(){const _0x2d2e7f=['npx','133680PedjTA','2339032EEZlhb','success','1281POFgDV','808kEWLZv','112lLQWhG','1318460nkELsD','resolve','代码格式化失败','now','--write','15343140GZBBTI','284IGTJuv','代码格式化完成','2017gCtkKL','error','message','prettier','format','5941152tVDnba','cwd'];a85_0xd1ce=function(){return _0x2d2e7f;};return a85_0xd1ce();}(function(_0x767df6,_0x8c6f59){const _0x456dbe=a85_0x6930,_0x2a1799=_0x767df6();while(!![]){try{const _0x2895b0=-parseInt(_0x456dbe(0x1e8))/0x1*(-parseInt(_0x456dbe(0x1e6))/0x2)+parseInt(_0x456dbe(0x1f3))/0x3*(parseInt(_0x456dbe(0x1f4))/0x4)+-parseInt(_0x456dbe(0x1f6))/0x5+parseInt(_0x456dbe(0x1f0))/0x6*(-parseInt(_0x456dbe(0x1f5))/0x7)+-parseInt(_0x456dbe(0x1f1))/0x8+-parseInt(_0x456dbe(0x1ed))/0x9+parseInt(_0x456dbe(0x1e5))/0xa;if(_0x2895b0===_0x8c6f59)break;else _0x2a1799['push'](_0x2a1799['shift']());}catch(_0x29c526){_0x2a1799['push'](_0x2a1799['shift']());}}}(a85_0xd1ce,0x519df));import a85_0x35e7a7 from'node:path';import{execa}from'execa';function a85_0x6930(_0xf5b9b1,_0x9a583d){_0xf5b9b1=_0xf5b9b1-0x1e1;const _0xd1ce2f=a85_0xd1ce();let _0x693080=_0xd1ce2f[_0xf5b9b1];return _0x693080;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function formatProjectCode(_0x58e5cc){const _0x13c15c=a85_0x6930,_0x1e32bd=Date[_0x13c15c(0x1e3)](),_0x4f9e93=a85_0x35e7a7[_0x13c15c(0x1e1)](process[_0x13c15c(0x1ee)](),_0x58e5cc);try{logger['info'](_0x13c15c(0x1ec),'开始格式化代码',{'projectCode':_0x58e5cc}),await execa(resolveNpmBin(_0x13c15c(0x1ef)),[_0x13c15c(0x1eb),_0x13c15c(0x1e4),'.'],{'cwd':_0x4f9e93});const _0x1125c6=Date[_0x13c15c(0x1e3)]()-_0x1e32bd;logger[_0x13c15c(0x1f2)](_0x13c15c(0x1ec),_0x13c15c(0x1e7),_0x1125c6,{'projectCode':_0x58e5cc});}catch(_0x3e9b3a){const _0x839b9d=Date[_0x13c15c(0x1e3)]()-_0x1e32bd;logger[_0x13c15c(0x1e9)](_0x13c15c(0x1ec),_0x13c15c(0x1e2),{'projectCode':_0x58e5cc,'error':_0x3e9b3a instanceof Error?_0x3e9b3a[_0x13c15c(0x1ea)]:String(_0x3e9b3a),'duration':_0x839b9d});throw _0x3e9b3a;}return formatElapsed(_0x1e32bd);}
1
+ (function(_0x451d44,_0x3a8508){const _0x3e85cc=a85_0x1c15,_0x91b2a1=_0x451d44();while(!![]){try{const _0x5f2100=parseInt(_0x3e85cc(0xf4))/0x1+-parseInt(_0x3e85cc(0xf3))/0x2*(parseInt(_0x3e85cc(0xe7))/0x3)+parseInt(_0x3e85cc(0xdf))/0x4*(-parseInt(_0x3e85cc(0xf0))/0x5)+parseInt(_0x3e85cc(0xeb))/0x6+-parseInt(_0x3e85cc(0xe1))/0x7*(-parseInt(_0x3e85cc(0xf1))/0x8)+parseInt(_0x3e85cc(0xe5))/0x9*(-parseInt(_0x3e85cc(0xe4))/0xa)+-parseInt(_0x3e85cc(0xee))/0xb;if(_0x5f2100===_0x3a8508)break;else _0x91b2a1['push'](_0x91b2a1['shift']());}catch(_0x44b84a){_0x91b2a1['push'](_0x91b2a1['shift']());}}}(a85_0x9a42,0x67597));import a85_0x34b290 from'node:path';function a85_0x1c15(_0x36bc4f,_0x257d1f){_0x36bc4f=_0x36bc4f-0xde;const _0x9a428f=a85_0x9a42();let _0x1c154b=_0x9a428f[_0x36bc4f];return _0x1c154b;}import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a85_0x9a42(){const _0x1ecde3=['代码格式化失败','开始格式化代码','info','3894756nKjcTw','npx','error','214313RUWYpH','message','10WCUSZc','197688MzREkp','now','1322Fsrpkg','559030UEFKWr','format','--write','948496DRedgZ','prettier','168vDWljO','resolve','代码格式化完成','10VdSzYB','4560651vAyxno','success','1713EGGhDS'];a85_0x9a42=function(){return _0x1ecde3;};return a85_0x9a42();}export async function formatProjectCode(_0x2fd1fb){const _0x240451=a85_0x1c15,_0x18bd40=Date[_0x240451(0xf2)](),_0x558302=a85_0x34b290[_0x240451(0xe2)](process['cwd'](),_0x2fd1fb);try{logger[_0x240451(0xea)](_0x240451(0xf5),_0x240451(0xe9),{'projectCode':_0x2fd1fb}),await execa(resolveNpmBin(_0x240451(0xec)),[_0x240451(0xe0),_0x240451(0xde),'.'],{'cwd':_0x558302});const _0x34aabe=Date[_0x240451(0xf2)]()-_0x18bd40;logger[_0x240451(0xe6)](_0x240451(0xf5),_0x240451(0xe3),_0x34aabe,{'projectCode':_0x2fd1fb});}catch(_0x24fd64){const _0x4f04c7=Date[_0x240451(0xf2)]()-_0x18bd40;logger[_0x240451(0xed)](_0x240451(0xf5),_0x240451(0xe8),{'projectCode':_0x2fd1fb,'error':_0x24fd64 instanceof Error?_0x24fd64[_0x240451(0xef)]:String(_0x24fd64),'duration':_0x4f04c7});throw _0x24fd64;}return formatElapsed(_0x18bd40);}
@@ -1 +1 @@
1
- (function(_0xaafef8,_0x54145f){const _0x141723=a86_0x2f60,_0x594914=_0xaafef8();while(!![]){try{const _0x576e2d=parseInt(_0x141723(0x121))/0x1*(-parseInt(_0x141723(0x119))/0x2)+parseInt(_0x141723(0x118))/0x3+parseInt(_0x141723(0x11f))/0x4+-parseInt(_0x141723(0x116))/0x5+-parseInt(_0x141723(0x117))/0x6*(-parseInt(_0x141723(0x129))/0x7)+-parseInt(_0x141723(0x124))/0x8*(-parseInt(_0x141723(0x12a))/0x9)+parseInt(_0x141723(0x11d))/0xa*(-parseInt(_0x141723(0x11a))/0xb);if(_0x576e2d===_0x54145f)break;else _0x594914['push'](_0x594914['shift']());}catch(_0x1c08d1){_0x594914['push'](_0x594914['shift']());}}}(a86_0xd94b,0xecef0));function a86_0xd94b(){const _0x595953=['86340LYrWtj','https://registry.npmmirror.com','now','24zqjKZV','--registry','install','message','resolve','6752732SwVwmT','3123891kLSlgl','success','3079055BBjqnY','6IzvOip','5539164VnmAdA','4sAYQPp','1043009yNIAjg','cwd','error','290eQaBGa','依赖安装失败','2625444ixsxCD','info'];a86_0xd94b=function(){return _0x595953;};return a86_0xd94b();}import a86_0x25db60 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a86_0x2f60(_0x53bc92,_0x3e4f6){_0x53bc92=_0x53bc92-0x115;const _0xd94b72=a86_0xd94b();let _0x2f6074=_0xd94b72[_0x53bc92];return _0x2f6074;}import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x317701){const _0xab3496=a86_0x2f60,_0x5f3caf=Date[_0xab3496(0x123)](),_0x281a30=a86_0x25db60[_0xab3496(0x128)](process[_0xab3496(0x11b)](),_0x317701);try{logger[_0xab3496(0x120)](_0xab3496(0x126),'开始安装依赖',{'projectCode':_0x317701,'registry':_0xab3496(0x122)}),await execa(resolveNpmBin('npm'),['install',_0xab3496(0x125),_0xab3496(0x122)],{'cwd':_0x281a30});const _0xf610d0=Date[_0xab3496(0x123)]()-_0x5f3caf;logger[_0xab3496(0x115)]('install','依赖安装完成',_0xf610d0,{'projectCode':_0x317701});}catch(_0x4d984c){const _0x1afc92=Date[_0xab3496(0x123)]()-_0x5f3caf;logger[_0xab3496(0x11c)](_0xab3496(0x126),_0xab3496(0x11e),{'projectCode':_0x317701,'error':_0x4d984c instanceof Error?_0x4d984c[_0xab3496(0x127)]:String(_0x4d984c),'duration':_0x1afc92});throw _0x4d984c;}return formatElapsed(_0x5f3caf);}
1
+ (function(_0x459f37,_0x3ed389){const _0x4a9989=a86_0xafad,_0x4fa077=_0x459f37();while(!![]){try{const _0x3acec5=parseInt(_0x4a9989(0x7e))/0x1+parseInt(_0x4a9989(0x7d))/0x2+parseInt(_0x4a9989(0x75))/0x3+parseInt(_0x4a9989(0x74))/0x4*(-parseInt(_0x4a9989(0x7b))/0x5)+-parseInt(_0x4a9989(0x7a))/0x6+-parseInt(_0x4a9989(0x77))/0x7*(parseInt(_0x4a9989(0x80))/0x8)+-parseInt(_0x4a9989(0x7c))/0x9;if(_0x3acec5===_0x3ed389)break;else _0x4fa077['push'](_0x4fa077['shift']());}catch(_0x3b0134){_0x4fa077['push'](_0x4fa077['shift']());}}}(a86_0x3f49,0x60072));function a86_0x3f49(){const _0x40d15d=['now','依赖安装完成','开始安装依赖','15364sEajpL','2356023yCwwpo','https://registry.npmmirror.com','1091986lYhHms','install','info','1030668UNrZrG','245yzLnWG','2148264NlRMEU','159136zOwWhA','283102mCCKzI','npm','8SSNmeE','resolve','error'];a86_0x3f49=function(){return _0x40d15d;};return a86_0x3f49();}function a86_0xafad(_0x35e123,_0x2faec3){_0x35e123=_0x35e123-0x70;const _0x3f497a=a86_0x3f49();let _0xafad53=_0x3f497a[_0x35e123];return _0xafad53;}import a86_0x571f65 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x10b3cc){const _0x3799a0=a86_0xafad,_0x260cb6=Date[_0x3799a0(0x71)](),_0xdbfafc=a86_0x571f65[_0x3799a0(0x81)](process['cwd'](),_0x10b3cc);try{logger[_0x3799a0(0x79)](_0x3799a0(0x78),_0x3799a0(0x73),{'projectCode':_0x10b3cc,'registry':_0x3799a0(0x76)}),await execa(resolveNpmBin(_0x3799a0(0x7f)),[_0x3799a0(0x78),'--registry',_0x3799a0(0x76)],{'cwd':_0xdbfafc});const _0x4734ef=Date[_0x3799a0(0x71)]()-_0x260cb6;logger['success']('install',_0x3799a0(0x72),_0x4734ef,{'projectCode':_0x10b3cc});}catch(_0x4bf812){const _0x185130=Date[_0x3799a0(0x71)]()-_0x260cb6;logger[_0x3799a0(0x70)](_0x3799a0(0x78),'依赖安装失败',{'projectCode':_0x10b3cc,'error':_0x4bf812 instanceof Error?_0x4bf812['message']:String(_0x4bf812),'duration':_0x185130});throw _0x4bf812;}return formatElapsed(_0x260cb6);}
@@ -1 +1 @@
1
- function a87_0x2017(){const _0x9b941d=['1939630VUjzzL','nonInteractive','App\x20code\x20to\x20initialize','validation','2VyAfVB','write','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','../../commands/project/create/main.js','args','1076784mgrXYR','Auto-confirm\x20prompts','str','Usage:\x20','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','8944416wiEEZs','env','upgrade','Create\x20a\x20new\x20project','project','yes','init','../../commands/project/create/non-interactive.js','bool','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','Skip\x20confirmation\x20prompt','trim','appcode','12624000AjFaFt','project-name','56CHMwae','590365hSIQBE','20730lAIXzS','2051JDrbdO','159327RgEDZb','create','string','name','boolean','cookie'];a87_0x2017=function(){return _0x9b941d;};return a87_0x2017();}const a87_0x287936=a87_0x4025;(function(_0x1fdb20,_0x517ce3){const _0x48fd13=a87_0x4025,_0x4db875=_0x1fdb20();while(!![]){try{const _0x277768=parseInt(_0x48fd13(0xde))/0x1+parseInt(_0x48fd13(0xd9))/0x2*(-parseInt(_0x48fd13(0xcf))/0x3)+parseInt(_0x48fd13(0xcb))/0x4*(parseInt(_0x48fd13(0xcc))/0x5)+-parseInt(_0x48fd13(0xcd))/0x6*(parseInt(_0x48fd13(0xce))/0x7)+-parseInt(_0x48fd13(0xc9))/0x8+parseInt(_0x48fd13(0xe4))/0x9+-parseInt(_0x48fd13(0xd5))/0xa;if(_0x277768===_0x517ce3)break;else _0x4db875['push'](_0x4db875['shift']());}catch(_0x1b2252){_0x4db875['push'](_0x4db875['shift']());}}}(a87_0x2017,0xd85e3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';import{upgradeApp}from'../../commands/project/upgrade.js';const initFlags=[{'name':a87_0x287936(0xc8),'type':a87_0x287936(0xd1),'description':a87_0x287936(0xd7)},{'name':'env','type':a87_0x287936(0xd1),'description':'Target\x20environment'},{'name':a87_0x287936(0xe9),'type':a87_0x287936(0xd3),'description':a87_0x287936(0xdf),'default':![]}],createFlags=[{'name':a87_0x287936(0xd2),'type':a87_0x287936(0xd1),'description':'Project\x20name'},{'name':a87_0x287936(0xe5),'type':a87_0x287936(0xd1),'description':'Target\x20environment'},{'name':'appcode','type':a87_0x287936(0xd1),'description':'App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)'}],upgradeFlags=[{'name':'yes','type':a87_0x287936(0xd3),'description':a87_0x287936(0xee),'default':![]}];function a87_0x4025(_0x38d10c,_0x5d0a50){_0x38d10c=_0x38d10c-0xc7;const _0x201797=a87_0x2017();let _0x402550=_0x201797[_0x38d10c];return _0x402550;}export const projectDefinitions=[{'service':a87_0x287936(0xe8),'command':a87_0x287936(0xea),'description':a87_0x287936(0xdb),'risk':a87_0x287936(0xda),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x629cd0){const _0x2b58a8=a87_0x287936;return await initConfig({'appcode':_0x629cd0[_0x2b58a8(0xe0)](_0x2b58a8(0xc8))||undefined,'env':_0x629cd0['str'](_0x2b58a8(0xe5))||undefined,'autoYes':_0x629cd0[_0x2b58a8(0xec)](_0x2b58a8(0xe9))}),{'ok':!![]};}},{'service':a87_0x287936(0xe8),'command':a87_0x287936(0xd0),'description':a87_0x287936(0xe7),'risk':a87_0x287936(0xda),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a87_0x287936(0xca),'description':a87_0x287936(0xe3),'required':![]}],'flags':createFlags,async 'execute'(_0x1afc73){const _0x197f09=a87_0x287936,{createApp:_0x5094e3}=await import(_0x197f09(0xdc)),{createProjectNonInteractive:_0x35fb7e}=await import(_0x197f09(0xeb)),_0x20ed25=_0x1afc73[_0x197f09(0xe0)](_0x197f09(0xd2))[_0x197f09(0xc7)]()||_0x1afc73[_0x197f09(0xdd)][0x0]?.[_0x197f09(0xc7)](),_0x328467=_0x1afc73[_0x197f09(0xe0)]('env')||undefined,_0x16d6de=_0x1afc73[_0x197f09(0xe0)](_0x197f09(0xc8))||undefined;if(_0x1afc73[_0x197f09(0xd6)]){if(!_0x20ed25)throw CliErrors[_0x197f09(0xd8)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0x197f09(0xe1)+CLI_BIN_NAME+_0x197f09(0xe2));await _0x35fb7e(_0x20ed25,_0x328467,_0x16d6de,_0x1afc73[_0x197f09(0xd4)]);}else await _0x5094e3({'projectCode':_0x20ed25,'appCode':_0x16d6de,'env':_0x328467,'cookie':_0x1afc73[_0x197f09(0xd4)]});return{'ok':!![]};}},{'service':a87_0x287936(0xe8),'command':a87_0x287936(0xe6),'description':a87_0x287936(0xed),'risk':a87_0x287936(0xda),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x32b013){const _0x361d88=a87_0x287936;return await upgradeApp(_0x32b013[_0x361d88(0xd6)],{'yes':_0x32b013[_0x361d88(0xec)](_0x361d88(0xe9))}),{'ok':!![]};}}];
1
+ const a87_0x2b2bd5=a87_0x55e1;(function(_0x6be44f,_0x2b60ec){const _0xbc2ef2=a87_0x55e1,_0x3360fc=_0x6be44f();while(!![]){try{const _0x5b7f9d=parseInt(_0xbc2ef2(0x216))/0x1*(-parseInt(_0xbc2ef2(0x1f9))/0x2)+parseInt(_0xbc2ef2(0x1f4))/0x3*(parseInt(_0xbc2ef2(0x1fa))/0x4)+parseInt(_0xbc2ef2(0x204))/0x5+-parseInt(_0xbc2ef2(0x202))/0x6*(-parseInt(_0xbc2ef2(0x206))/0x7)+parseInt(_0xbc2ef2(0x20c))/0x8+parseInt(_0xbc2ef2(0x207))/0x9+-parseInt(_0xbc2ef2(0x20e))/0xa;if(_0x5b7f9d===_0x2b60ec)break;else _0x3360fc['push'](_0x3360fc['shift']());}catch(_0x49e7a3){_0x3360fc['push'](_0x3360fc['shift']());}}}(a87_0x4202,0xc5966));function a87_0x55e1(_0x241b68,_0x556c7c){_0x241b68=_0x241b68-0x1f3;const _0x42020c=a87_0x4202();let _0x55e14e=_0x42020c[_0x241b68];return _0x55e14e;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a87_0x4202(){const _0x246684=['Target\x20environment','project-name','Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','Usage:\x20','bool','yes','trim','2235456DZhRoP','env','6683945xrLmId','appcode','28RuSKCf','12848949XncqEs','str','init','name','Auto-confirm\x20prompts','8986920JOaUWY','nonInteractive','48542350aYIjfL','Project\x20name','Skip\x20confirmation\x20prompt','upgrade','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','../../commands/project/create/non-interactive.js','App\x20code\x20to\x20initialize','boolean','478823ujEDVg','write','string','Create\x20a\x20new\x20project','validation','176367SVmFUQ','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','project','cookie','2WSjflk','52GihWpz'];a87_0x4202=function(){return _0x246684;};return a87_0x4202();}const initFlags=[{'name':a87_0x2b2bd5(0x205),'type':a87_0x2b2bd5(0x218),'description':a87_0x2b2bd5(0x214)},{'name':a87_0x2b2bd5(0x203),'type':a87_0x2b2bd5(0x218),'description':a87_0x2b2bd5(0x1fb)},{'name':a87_0x2b2bd5(0x200),'type':a87_0x2b2bd5(0x215),'description':a87_0x2b2bd5(0x20b),'default':![]}],createFlags=[{'name':a87_0x2b2bd5(0x20a),'type':'string','description':a87_0x2b2bd5(0x20f)},{'name':'env','type':a87_0x2b2bd5(0x218),'description':a87_0x2b2bd5(0x1fb)},{'name':a87_0x2b2bd5(0x205),'type':'string','description':a87_0x2b2bd5(0x1f6)}],upgradeFlags=[{'name':a87_0x2b2bd5(0x200),'type':a87_0x2b2bd5(0x215),'description':a87_0x2b2bd5(0x210),'default':![]}];export const projectDefinitions=[{'service':a87_0x2b2bd5(0x1f7),'command':a87_0x2b2bd5(0x209),'description':a87_0x2b2bd5(0x1f5),'risk':a87_0x2b2bd5(0x217),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x29f4d){const _0x7881c7=a87_0x2b2bd5;return await initConfig({'appcode':_0x29f4d[_0x7881c7(0x208)](_0x7881c7(0x205))||undefined,'env':_0x29f4d[_0x7881c7(0x208)]('env')||undefined,'autoYes':_0x29f4d['bool']('yes')}),{'ok':!![]};}},{'service':a87_0x2b2bd5(0x1f7),'command':'create','description':a87_0x2b2bd5(0x219),'risk':a87_0x2b2bd5(0x217),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a87_0x2b2bd5(0x1fc),'description':a87_0x2b2bd5(0x1fd),'required':![]}],'flags':createFlags,async 'execute'(_0xa8ae13){const _0x112e83=a87_0x2b2bd5,{createApp:_0x135dc2}=await import('../../commands/project/create/main.js'),{createProjectNonInteractive:_0x37725a}=await import(_0x112e83(0x213)),_0x3a8b32=_0xa8ae13[_0x112e83(0x208)](_0x112e83(0x20a))[_0x112e83(0x201)]()||_0xa8ae13['args'][0x0]?.[_0x112e83(0x201)](),_0x217ab9=_0xa8ae13[_0x112e83(0x208)]('env')||undefined,_0x1ce53e=_0xa8ae13['str']('appcode')||undefined;if(_0xa8ae13[_0x112e83(0x20d)]){if(!_0x3a8b32)throw CliErrors[_0x112e83(0x1f3)](_0x112e83(0x212),_0x112e83(0x1fe)+CLI_BIN_NAME+'\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]');await _0x37725a(_0x3a8b32,_0x217ab9,_0x1ce53e,_0xa8ae13[_0x112e83(0x1f8)]);}else await _0x135dc2({'projectCode':_0x3a8b32,'appCode':_0x1ce53e,'env':_0x217ab9,'cookie':_0xa8ae13[_0x112e83(0x1f8)]});return{'ok':!![]};}},{'service':a87_0x2b2bd5(0x1f7),'command':a87_0x2b2bd5(0x211),'description':'Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','risk':a87_0x2b2bd5(0x217),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x36e7c5){const _0x3ee257=a87_0x2b2bd5;return await upgradeApp(_0x36e7c5[_0x3ee257(0x20d)],{'yes':_0x36e7c5[_0x3ee257(0x1ff)]('yes')}),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x55fae3,_0x4f314e){const _0x105a61=a88_0x2043,_0x5c789f=_0x55fae3();while(!![]){try{const _0x35a2d4=-parseInt(_0x105a61(0x191))/0x1+-parseInt(_0x105a61(0x19d))/0x2*(-parseInt(_0x105a61(0x197))/0x3)+parseInt(_0x105a61(0x189))/0x4+parseInt(_0x105a61(0x177))/0x5*(-parseInt(_0x105a61(0x16c))/0x6)+parseInt(_0x105a61(0x17c))/0x7*(parseInt(_0x105a61(0x18e))/0x8)+parseInt(_0x105a61(0x17a))/0x9*(-parseInt(_0x105a61(0x184))/0xa)+-parseInt(_0x105a61(0x198))/0xb;if(_0x35a2d4===_0x4f314e)break;else _0x5c789f['push'](_0x5c789f['shift']());}catch(_0x5e03be){_0x5c789f['push'](_0x5c789f['shift']());}}}(a88_0x5c2e,0x57ec1));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';function a88_0x5c2e(){const _0x461679=['package.json','production','yellow','parse','1301260ZTXslM','info','log','cwd','\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27','40tBBGvs','\x20project\x20init`\x20to\x20start\x20fresh.','\x20→\x20.rabetbase.json','233020IWwovY','version','Upgrade\x20it\x20to\x20','setLogPath','?\x20(Old\x20file\x20→\x20*.bak)','string','117318IhthVs','5031180HXLYmU','appcode','从旧配置文件升级成功','1.0.0','\x20\x20AppCode:\x20','28atbiQu','init','1398AciNxR','Migration\x20cancelled.\x20Run\x20`','Invalid\x20App\x20Code','\x20api\x20pull\x27','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','toLocaleString','green','\x20\x20appcode:\x20','../..','.bak','\x20api\x20doc\x27\x20and\x20\x27','1625OLQLrI','env','bold','4149rslriG','gray','464555mhVdJq','utf8','.rabetbase.json','\x20\x20Old\x20file\x20backed\x20up\x20as\x20','cyan','app','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','✓\x20Upgraded\x20','1700dIatSB'];a88_0x5c2e=function(){return _0x461679;};return a88_0x5c2e();}import{fileURLToPath}from'node:url';import a88_0xb63eb7 from'chalk';import{input,confirm}from'@inquirer/prompts';function a88_0x2043(_0x58aec6,_0x3a09f4){_0x58aec6=_0x58aec6-0x16b;const _0x5c2e40=a88_0x5c2e();let _0x20430c=_0x5c2e40[_0x58aec6];return _0x20430c;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';import{validateAppcode}from'../../commands/common/validate.js';export async function initConfig(_0x5998ff){const _0x13845c=a88_0x2043,{appcode:_0x17150,env:_0x197744,autoYes:_0x2e025f}=_0x5998ff,_0x1d47cf=process[_0x13845c(0x18c)]();if(getProjectConfigPath())throw new Error(_0x13845c(0x170));let _0x5bc4de;for(const _0x1d9058 of LEGACY_CONFIG_NAMES){const _0x41d7db=resolve(_0x1d47cf,_0x1d9058);if(existsSync(_0x41d7db)){_0x5bc4de=_0x41d7db;break;}}if(_0x5bc4de){let _0x1f2cb9={};try{_0x1f2cb9=JSON[_0x13845c(0x188)](readFileSync(_0x5bc4de,_0x13845c(0x17d)));}catch{}const _0x356d91=basename(_0x5bc4de),_0xde4d2=_0x1f2cb9?.[_0x13845c(0x199)]||_0x1f2cb9?.[_0x13845c(0x181)];let _0x5e1a5c=_0x2e025f;!_0x2e025f&&(console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x187)]('⚠\x20Found\x20legacy\x20configuration\x20file:\x20'+a88_0xb63eb7[_0x13845c(0x179)](_0x356d91))),_0xde4d2&&console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x180)](_0x13845c(0x173)+_0xde4d2)),_0x5e1a5c=await confirm({'message':_0x13845c(0x193)+a88_0xb63eb7['bold'](_0x13845c(0x17e))+_0x13845c(0x195),'default':!![]}));if(!_0x5e1a5c){console[_0x13845c(0x18b)](_0x13845c(0x16d)+CLI_BIN_NAME+_0x13845c(0x18f));return;}const _0x55ec26=resolve(_0x1d47cf,NEW_CONFIG_NAME),_0x261996=getCliVersionFromPkg(),_0x1e53b5=readRawConfig(),_0x1ba5a1={..._0x1e53b5,..._0x1f2cb9,'version':_0x261996,'migratedAt':new Date()[_0x13845c(0x171)](),'migratedFrom':_0x5bc4de};if(!_0x1ba5a1[_0x13845c(0x199)]&&!_0x1ba5a1['app']){if(!_0x17150){const _0x260a63=await askAppcode();_0x1ba5a1[_0x13845c(0x199)]=_0x260a63;}else _0x1ba5a1[_0x13845c(0x199)]=_0x17150;}if(_0x1ba5a1[_0x13845c(0x178)]&&typeof _0x1ba5a1['env']!==_0x13845c(0x196))delete _0x1ba5a1[_0x13845c(0x178)];else!_0x1ba5a1[_0x13845c(0x178)]&&(_0x1ba5a1['env']=_0x1e53b5[_0x13845c(0x178)]||_0x13845c(0x186));writeConfigFile(_0x55ec26,_0x1ba5a1);const _0x4f9092=_0x5bc4de+'.bak';renameSync(_0x5bc4de,_0x4f9092),logger[_0x13845c(0x194)](_0x1d47cf),logger[_0x13845c(0x18a)]('init',_0x13845c(0x19a),{'from':_0x5bc4de,'to':_0x55ec26,'appcode':_0x1ba5a1[_0x13845c(0x199)]||_0x1ba5a1['app'],'env':_0x1ba5a1[_0x13845c(0x178)]}),console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x172)](_0x13845c(0x183)+_0x356d91+_0x13845c(0x190))),console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x180)](_0x13845c(0x19c)+(_0x1ba5a1['appcode']||_0x1ba5a1[_0x13845c(0x181)]))),console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x17b)](_0x13845c(0x17f)+_0x356d91+_0x13845c(0x175)));return;}const _0x5d024e=_0x17150||await askAppcode(),_0x3d400d=resolve(_0x1d47cf,NEW_CONFIG_NAME),_0x564453=getCliVersionFromPkg(),_0x1e1354=readRawConfig(),_0x24e5db=typeof _0x1e1354[_0x13845c(0x178)]===_0x13845c(0x196)?_0x1e1354[_0x13845c(0x178)]:undefined,_0x1ecefe={'version':_0x564453,'createdAt':new Date()['toLocaleString'](),'appcode':_0x5d024e,'env':_0x197744||_0x24e5db||'production'};writeConfigFile(_0x3d400d,_0x1ecefe),logger[_0x13845c(0x194)](_0x1d47cf),logger[_0x13845c(0x18a)](_0x13845c(0x16b),'初始化项目配置文件成功',{'appcode':_0x1ecefe[_0x13845c(0x199)],'env':_0x1ecefe['env'],'version':_0x1ecefe[_0x13845c(0x192)],'configPath':_0x3d400d}),console['log'](a88_0xb63eb7['green'](_0x13845c(0x182))),console[_0x13845c(0x18b)](a88_0xb63eb7[_0x13845c(0x180)](_0x13845c(0x19c)+_0x5d024e)),console['log'](_0x13845c(0x18d)+CLI_BIN_NAME+_0x13845c(0x176)+CLI_BIN_NAME+_0x13845c(0x16f));}function askAppcode(){return input({'message':'Please\x20enter\x20App\x20Code:','validate':_0x59ce80=>{const _0x429d0b=a88_0x2043;if(!_0x59ce80['trim']())return'App\x20Code\x20cannot\x20be\x20empty';const {valid:_0x541ceb,message:_0x307e07}=validateAppcode(_0x59ce80['trim']());return _0x541ceb||_0x307e07||_0x429d0b(0x16e);}});}function getCliVersionFromPkg(){const _0xf15a8f=a88_0x2043;try{const _0x526c67=fileURLToPath(import.meta.url),_0xd9f746=resolve(dirname(_0x526c67),_0xf15a8f(0x174)),_0x1458d0=JSON[_0xf15a8f(0x188)](readFileSync(resolve(_0xd9f746,_0xf15a8f(0x185)),'utf8'));return _0x1458d0[_0xf15a8f(0x192)]||_0xf15a8f(0x19b);}catch{return'1.0.0';}}
1
+ (function(_0xdd6991,_0x5b9958){const _0x5a3280=a88_0x6128,_0x1ee2e9=_0xdd6991();while(!![]){try{const _0xab0d4f=parseInt(_0x5a3280(0x13f))/0x1+-parseInt(_0x5a3280(0x156))/0x2*(parseInt(_0x5a3280(0x15e))/0x3)+parseInt(_0x5a3280(0x136))/0x4+-parseInt(_0x5a3280(0x15a))/0x5*(parseInt(_0x5a3280(0x14d))/0x6)+parseInt(_0x5a3280(0x13a))/0x7*(parseInt(_0x5a3280(0x133))/0x8)+parseInt(_0x5a3280(0x13d))/0x9+parseInt(_0x5a3280(0x139))/0xa*(parseInt(_0x5a3280(0x15c))/0xb);if(_0xab0d4f===_0x5b9958)break;else _0x1ee2e9['push'](_0x1ee2e9['shift']());}catch(_0x1bc21d){_0x1ee2e9['push'](_0x1ee2e9['shift']());}}}(a88_0x426e,0x3d85a));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';function a88_0x6128(_0x2a8bec,_0x6ed2ac){_0x2a8bec=_0x2a8bec-0x132;const _0x426ee8=a88_0x426e();let _0x6128b5=_0x426ee8[_0x2a8bec];return _0x6128b5;}import a88_0x41df03 from'chalk';import{input,confirm}from'@inquirer/prompts';import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';import{validateAppcode}from'../../commands/common/validate.js';export async function initConfig(_0x254297){const _0x38c78a=a88_0x6128,{appcode:_0x4c2a52,env:_0x5d4f50,autoYes:_0x2325bc}=_0x254297,_0x85ed9=process[_0x38c78a(0x147)]();if(getProjectConfigPath())throw new Error('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.');let _0x162767;for(const _0xdadac5 of LEGACY_CONFIG_NAMES){const _0x32be33=resolve(_0x85ed9,_0xdadac5);if(existsSync(_0x32be33)){_0x162767=_0x32be33;break;}}if(_0x162767){let _0x32edae={};try{_0x32edae=JSON[_0x38c78a(0x13b)](readFileSync(_0x162767,_0x38c78a(0x135)));}catch{}const _0x5d4a61=basename(_0x162767),_0x2c3cbc=_0x32edae?.[_0x38c78a(0x159)]||_0x32edae?.['app'];let _0xa1c87e=_0x2325bc;!_0x2325bc&&(console[_0x38c78a(0x144)](a88_0x41df03[_0x38c78a(0x158)](_0x38c78a(0x157)+a88_0x41df03[_0x38c78a(0x14b)](_0x5d4a61))),_0x2c3cbc&&console[_0x38c78a(0x144)](a88_0x41df03[_0x38c78a(0x15b)]('\x20\x20appcode:\x20'+_0x2c3cbc)),_0xa1c87e=await confirm({'message':_0x38c78a(0x145)+a88_0x41df03[_0x38c78a(0x14b)](_0x38c78a(0x15d))+'?\x20(Old\x20file\x20→\x20*.bak)','default':!![]}));if(!_0xa1c87e){console[_0x38c78a(0x144)]('Migration\x20cancelled.\x20Run\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20to\x20start\x20fresh.');return;}const _0x3b596d=resolve(_0x85ed9,NEW_CONFIG_NAME),_0x15acea=getCliVersionFromPkg(),_0x4960ea=readRawConfig(),_0x24e9a1={..._0x4960ea,..._0x32edae,'version':_0x15acea,'migratedAt':new Date()['toLocaleString'](),'migratedFrom':_0x162767};if(!_0x24e9a1[_0x38c78a(0x159)]&&!_0x24e9a1[_0x38c78a(0x149)]){if(!_0x4c2a52){const _0x57866c=await askAppcode();_0x24e9a1[_0x38c78a(0x159)]=_0x57866c;}else _0x24e9a1['appcode']=_0x4c2a52;}if(_0x24e9a1['env']&&typeof _0x24e9a1[_0x38c78a(0x142)]!=='string')delete _0x24e9a1[_0x38c78a(0x142)];else!_0x24e9a1[_0x38c78a(0x142)]&&(_0x24e9a1[_0x38c78a(0x142)]=_0x4960ea[_0x38c78a(0x142)]||_0x38c78a(0x148));writeConfigFile(_0x3b596d,_0x24e9a1);const _0x451ff3=_0x162767+_0x38c78a(0x14a);renameSync(_0x162767,_0x451ff3),logger['setLogPath'](_0x85ed9),logger['info'](_0x38c78a(0x13c),'从旧配置文件升级成功',{'from':_0x162767,'to':_0x3b596d,'appcode':_0x24e9a1[_0x38c78a(0x159)]||_0x24e9a1[_0x38c78a(0x149)],'env':_0x24e9a1[_0x38c78a(0x142)]}),console[_0x38c78a(0x144)](a88_0x41df03[_0x38c78a(0x137)](_0x38c78a(0x13e)+_0x5d4a61+'\x20→\x20.rabetbase.json')),console[_0x38c78a(0x144)](a88_0x41df03['cyan'](_0x38c78a(0x134)+(_0x24e9a1[_0x38c78a(0x159)]||_0x24e9a1[_0x38c78a(0x149)]))),console[_0x38c78a(0x144)](a88_0x41df03['gray'](_0x38c78a(0x146)+_0x5d4a61+'.bak'));return;}const _0x2bae0c=_0x4c2a52||await askAppcode(),_0x285b75=resolve(_0x85ed9,NEW_CONFIG_NAME),_0x240a41=getCliVersionFromPkg(),_0x358c4e=readRawConfig(),_0x2061a0=typeof _0x358c4e[_0x38c78a(0x142)]===_0x38c78a(0x160)?_0x358c4e[_0x38c78a(0x142)]:undefined,_0x3429bc={'version':_0x240a41,'createdAt':new Date()[_0x38c78a(0x152)](),'appcode':_0x2bae0c,'env':_0x5d4f50||_0x2061a0||_0x38c78a(0x148)};writeConfigFile(_0x285b75,_0x3429bc),logger['setLogPath'](_0x85ed9),logger[_0x38c78a(0x143)](_0x38c78a(0x13c),_0x38c78a(0x14e),{'appcode':_0x3429bc[_0x38c78a(0x159)],'env':_0x3429bc[_0x38c78a(0x142)],'version':_0x3429bc[_0x38c78a(0x151)],'configPath':_0x285b75}),console[_0x38c78a(0x144)](a88_0x41df03[_0x38c78a(0x137)](_0x38c78a(0x140))),console['log'](a88_0x41df03['cyan']('\x20\x20AppCode:\x20'+_0x2bae0c)),console[_0x38c78a(0x144)](_0x38c78a(0x132)+CLI_BIN_NAME+_0x38c78a(0x14f)+CLI_BIN_NAME+_0x38c78a(0x14c));}function askAppcode(){const _0x3f4555=a88_0x6128;return input({'message':_0x3f4555(0x153),'validate':_0xfd11d5=>{const _0x5781b5=_0x3f4555;if(!_0xfd11d5[_0x5781b5(0x15f)]())return _0x5781b5(0x141);const {valid:_0x57c942,message:_0x233b23}=validateAppcode(_0xfd11d5[_0x5781b5(0x15f)]());return _0x57c942||_0x233b23||_0x5781b5(0x138);}});}function getCliVersionFromPkg(){const _0x3e8c77=a88_0x6128;try{const _0x4fa1a2=fileURLToPath(import.meta.url),_0x48f704=resolve(dirname(_0x4fa1a2),_0x3e8c77(0x154)),_0x112488=JSON[_0x3e8c77(0x13b)](readFileSync(resolve(_0x48f704,_0x3e8c77(0x150)),'utf8'));return _0x112488[_0x3e8c77(0x151)]||_0x3e8c77(0x155);}catch{return'1.0.0';}}function a88_0x426e(){const _0x147577=['Upgrade\x20it\x20to\x20','\x20\x20Old\x20file\x20backed\x20up\x20as\x20','cwd','production','app','.bak','bold','\x20api\x20pull\x27','29844XYleNk','初始化项目配置文件成功','\x20api\x20doc\x27\x20and\x20\x27','package.json','version','toLocaleString','Please\x20enter\x20App\x20Code:','../..','1.0.0','1620SYdKOE','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','yellow','appcode','215UDVNGa','cyan','11aAmWQm','.rabetbase.json','1359wkIngA','trim','string','\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27','632BTIHnG','\x20\x20AppCode:\x20','utf8','143752uBodxO','green','Invalid\x20App\x20Code','600410LhyoIx','22148GFtizF','parse','init','90576DzCIbb','✓\x20Upgraded\x20','476807zPJSmW','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','App\x20Code\x20cannot\x20be\x20empty','env','info','log'];a88_0x426e=function(){return _0x147577;};return a88_0x426e();}
@@ -1 +1 @@
1
- const a89_0x405555=a89_0x4afc;function a89_0xb673(){const _0x5814bc=['@lovrabet/sdk','done','oldArtifacts','needed','.claude/skills/lovrabet','object','configMigration','.cursor/mcp.json','3692433cbqHpA','sdkUpgrade','isArray','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','.cursor/rules/lovrabet_rules.mdc','\x20→\x20','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','bold','103812fIDQzs','Install\x20new\x20skill','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','hasNewConfig','no\x20legacy\x20entry','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','\x20\x20#\x20or','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','needsSkillSwap','log','Remove\x20.lovrabet/','54GawUXy','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','no\x20matching\x20entry\x20found','succeed','args','@lovrabet/dataset-mcp-server','Upgrade\x20@lovrabet/sdk','1138694ZFXbai','info','none\x20found','removed\x20','Legacy\x20artifacts:','2srIHHZ','filter','start','\x20removed','yellow','mcpServers','step','inherit','some','Clean\x20MCP\x20config','49EGRVOW','===\x20Upgrade\x20Analysis\x20===','package.json','oldMcpConfig','Config\x20file:','oldPath','no\x20legacy\x20config\x20found','dependencies','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','length','devDependencies','string','failed','.lovrabet','status','red','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','\x20\x20New\x20config\x20(.rabetbase.json):\x20','Skill\x20swap:','skipped','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','lovrabet/rabetbase\x20installed\x20globally','953415WpoYrm','message','115730psgUoh','files','stringify','1352048lMmshz','===\x20Upgrade\x20Summary\x20===','white','FAIL','Step\x201/7:\x20Config\x20migration\x20—\x20','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','3679HnuxZg','fail','parse','FOUND','\x20from\x20','\x20→\x20latest','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','cyan','20aYxuBV','error','detail','Remove\x20legacy\x20artifacts','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20lovrabet/rabetbase\x20--global','undefined','label','913kNsQWK','\x20→\x20keys:\x20','not\x20found\x20(will\x20create)','green','Remove\x20old\x20skill','values','isDirectory','Upgrade\x20cancelled.','\x20\x20Current\x20version\x20in\x20','join','includes','gray','path','\x20\x20Step\x20','\x20\x20Fields\x20to\x20migrate:\x20','push','Config\x20migration','71562VOTGMo','already\x20exists\x20(will\x20merge)','Proceed\x20with\x20upgrade?','.bak','exit\x20','Step\x201/7:\x20Migrating\x20config...','lovrabet/lovrabet-skill\x20removed','fields','latest','MCP\x20config:','@lovrabet/sdk:','keys','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','Step\x204/7:\x20MCP\x20config\x20—\x20','utf8','Step\x204/7:\x20Cleaning\x20MCP\x20config...'];a89_0xb673=function(){return _0x5814bc;};return a89_0xb673();}(function(_0x377f55,_0x5e2a4b){const _0x3362ae=a89_0x4afc,_0x76ca88=_0x377f55();while(!![]){try{const _0x12b30=-parseInt(_0x3362ae(0x116))/0x1+-parseInt(_0x3362ae(0x11b))/0x2*(-parseInt(_0x3362ae(0xfc))/0x3)+-parseInt(_0x3362ae(0xcb))/0x4*(-parseInt(_0x3362ae(0xb7))/0x5)+-parseInt(_0x3362ae(0xe4))/0x6*(-parseInt(_0x3362ae(0x125))/0x7)+parseInt(_0x3362ae(0xbc))/0x8*(parseInt(_0x3362ae(0x10f))/0x9)+-parseInt(_0x3362ae(0xb9))/0xa*(-parseInt(_0x3362ae(0xd3))/0xb)+parseInt(_0x3362ae(0x104))/0xc*(-parseInt(_0x3362ae(0xc3))/0xd);if(_0x12b30===_0x5e2a4b)break;else _0x76ca88['push'](_0x76ca88['shift']());}catch(_0x31f7b2){_0x76ca88['push'](_0x76ca88['shift']());}}}(a89_0xb673,0xa0017));import a89_0x14aceb from'chalk';import a89_0x3b7c78 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'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a89_0x405555(0x11c)](_0x4e892f=>_0x4e892f!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x1f50e8){const _0x52d0fb=a89_0x405555,_0x5b5c0f=[];for(const _0x14ffa9 of Object[_0x52d0fb(0xd8)](CORE_IDE_CONFIGS)){if(_0x14ffa9[_0x52d0fb(0xba)])for(const _0x2cb299 of _0x14ffa9[_0x52d0fb(0xba)]){_0x5b5c0f[_0x52d0fb(0xe2)](resolve(_0x1f50e8,_0x2cb299[_0x52d0fb(0xdf)]));}}return _0x5b5c0f;}function analyse(_0x2bbfd0){const _0x70df11=a89_0x405555;let _0x4d93a0=null;const _0x3247f6=resolve(_0x2bbfd0,NEW_CONFIG_NAME),_0x2135f1=existsSync(_0x3247f6);for(const _0x240697 of LEGACY_CONFIG_NAMES){const _0x15ff63=resolve(_0x2bbfd0,_0x240697);if(existsSync(_0x15ff63)){const _0xdea422=readConfigFile(_0x15ff63),_0x607dd3=Object[_0x70df11(0xef)](_0xdea422)[_0x70df11(0x11c)](_0x245281=>typeof _0xdea422[_0x245281]!==_0x70df11(0xd1));_0x4d93a0={'oldPath':_0x15ff63,'hasNewConfig':_0x2135f1,'fields':_0x607dd3};break;}}const _0x237767=[],_0x21f5b0=resolve(_0x2bbfd0,_0x70df11(0xae));if(existsSync(_0x21f5b0))_0x237767['push'](_0x21f5b0);const _0x64e658=resolve(_0x2bbfd0,_0x70df11(0x100));if(existsSync(_0x64e658))_0x237767[_0x70df11(0xe2)](_0x64e658);const _0x123fbf=resolve(_0x2bbfd0,_0x70df11(0xf8));if(existsSync(_0x123fbf))_0x237767['push'](_0x123fbf);for(const _0xdec108 of collectIdeSkillFiles(_0x2bbfd0)){if(existsSync(_0xdec108))_0x237767[_0x70df11(0xe2)](_0xdec108);}let _0x27156c=null;const _0x44cd67=resolve(_0x2bbfd0,_0x70df11(0xfb));if(existsSync(_0x44cd67))try{const _0xaa44e1=JSON[_0x70df11(0xc5)](readFileSync(_0x44cd67,_0x70df11(0xf2)));if(_0xaa44e1?.[_0x70df11(0x120)]&&typeof _0xaa44e1['mcpServers']===_0x70df11(0xf9)){const _0x502378=[];for(const [_0x7a0444,_0x41c697]of Object['entries'](_0xaa44e1['mcpServers'])){const _0x57b225=_0x41c697;_0x57b225?.['args']&&Array[_0x70df11(0xfe)](_0x57b225[_0x70df11(0x113)])&&_0x57b225[_0x70df11(0x113)][_0x70df11(0x123)](_0x4ae155=>typeof _0x4ae155===_0x70df11(0xac)&&_0x4ae155[_0x70df11(0xdd)](_0x70df11(0x114)))&&_0x502378[_0x70df11(0xe2)](_0x7a0444);}_0x502378[_0x70df11(0xaa)]>0x0&&(_0x27156c={'path':_0x44cd67,'keys':_0x502378});}}catch{}const _0x2155ee=_0x237767[_0x70df11(0xaa)]>0x0||_0x4d93a0!==null;let _0x3a2502=null;const _0x4e6609=resolve(_0x2bbfd0,_0x70df11(0x127));if(existsSync(_0x4e6609))try{const _0x2e44cb=JSON['parse'](readFileSync(_0x4e6609,_0x70df11(0xf2)));for(const _0x5a34c0 of[_0x70df11(0xa8),_0x70df11(0xab)]){const _0x2a3757=_0x2e44cb?.[_0x5a34c0]?.[_0x70df11(0xf4)];if(typeof _0x2a3757==='string'){_0x2a3757!==_0x70df11(0xec)&&(_0x3a2502={'pkgPath':_0x4e6609,'currentVersion':_0x2a3757,'field':_0x5a34c0});break;}}}catch{}return{'configMigration':_0x4d93a0,'oldArtifacts':_0x237767,'oldMcpConfig':_0x27156c,'needsSkillSwap':_0x2155ee,'sdkUpgrade':_0x3a2502};}function printReport(_0x3a9fa9){const _0x5e1680=a89_0x405555,{configMigration:_0x3c2391,oldArtifacts:_0x9b0013,oldMcpConfig:_0x5cb16a,needsSkillSwap:_0x410b83}=_0x3a9fa9;console[_0x5e1680(0x10d)](''),console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0x103)](_0x5e1680(0x126))),console[_0x5e1680(0x10d)]('');_0x3c2391?(console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0x129))+('\x20\x20'+a89_0x14aceb[_0x5e1680(0x11f)](_0x3c2391[_0x5e1680(0x12a)]))),console[_0x5e1680(0x10d)](_0x5e1680(0xb2)+(_0x3c2391[_0x5e1680(0x107)]?a89_0x14aceb[_0x5e1680(0xd6)](_0x5e1680(0xe5)):a89_0x14aceb[_0x5e1680(0xde)](_0x5e1680(0xd5)))),console[_0x5e1680(0x10d)](_0x5e1680(0xe1)+_0x3c2391[_0x5e1680(0xeb)]['join'](',\x20')),console[_0x5e1680(0x10d)]('\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak')):console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0x129))+'\x20\x20'+a89_0x14aceb['gray'](_0x5e1680(0xa7)));console['log']('');if(_0x9b0013[_0x5e1680(0xaa)]>0x0){console[_0x5e1680(0x10d)](a89_0x14aceb['cyan'](_0x5e1680(0x11a)));for(const _0x2dfee7 of _0x9b0013){console[_0x5e1680(0x10d)]('\x20\x20'+a89_0x14aceb[_0x5e1680(0xb0)](_0x5e1680(0xc6))+'\x20\x20'+_0x2dfee7);}console['log']('\x20\x20Action:\x20delete');}else console['log'](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0x11a))+'\x20\x20'+a89_0x14aceb[_0x5e1680(0xde)](_0x5e1680(0x118)));console['log']('');_0x5cb16a?(console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0xed))+('\x20\x20'+a89_0x14aceb[_0x5e1680(0x11f)](_0x5cb16a[_0x5e1680(0xdf)])+_0x5e1680(0xd4)+_0x5cb16a[_0x5e1680(0xef)][_0x5e1680(0xdc)](',\x20'))),console[_0x5e1680(0x10d)](_0x5e1680(0xc1))):console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)]('MCP\x20config:')+'\x20\x20'+a89_0x14aceb[_0x5e1680(0xde)](_0x5e1680(0x108)));console[_0x5e1680(0x10d)](''),console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0xb3))+('\x20\x20'+(_0x410b83?a89_0x14aceb[_0x5e1680(0x11f)](_0x5e1680(0xf7)):a89_0x14aceb[_0x5e1680(0xd6)]('not\x20needed'))));_0x410b83&&console['log'](_0x5e1680(0xd0));console[_0x5e1680(0x10d)]('');if(_0x3a9fa9[_0x5e1680(0xfd)]){const {currentVersion:_0x296686,field:_0x2de348,pkgPath:_0x590a92}=_0x3a9fa9[_0x5e1680(0xfd)];console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0xee))+('\x20\x20'+a89_0x14aceb[_0x5e1680(0x11f)](_0x590a92))),console['log'](_0x5e1680(0xdb)+_0x2de348+':\x20'+a89_0x14aceb[_0x5e1680(0x11f)](_0x296686)+_0x5e1680(0x101)+a89_0x14aceb[_0x5e1680(0xd6)](_0x5e1680(0xec))),console[_0x5e1680(0x10d)](_0x5e1680(0x110));}else console[_0x5e1680(0x10d)](a89_0x14aceb[_0x5e1680(0xca)](_0x5e1680(0xee))+'\x20\x20'+a89_0x14aceb[_0x5e1680(0xde)]('not\x20found\x20or\x20already\x20at\x20latest'));console['log']('');}function a89_0x4afc(_0x4236f8,_0x562614){_0x4236f8=_0x4236f8-0xa7;const _0xb67303=a89_0xb673();let _0x4afc36=_0xb67303[_0x4236f8];return _0x4afc36;}function execConfigMigration(_0x5f45a4,_0x4b9c79){const _0x22c6b0=a89_0x405555,{configMigration:_0x2b79e2}=_0x5f45a4;if(!_0x2b79e2?.['oldPath'])return{'step':0x1,'label':_0x22c6b0(0xe3),'ok':!![],'detail':'skipped\x20(no\x20legacy\x20config)'};const _0xee121e=readConfigFile(_0x2b79e2[_0x22c6b0(0x12a)]),_0x196dd5=resolve(_0x4b9c79,NEW_CONFIG_NAME),_0x460c86=_0x2b79e2['hasNewConfig']?readConfigFile(_0x196dd5):{};for(const [_0x59d76a,_0x5d3115]of Object['entries'](_0xee121e)){!(_0x59d76a in _0x460c86)&&(_0x460c86[_0x59d76a]=_0x5d3115);}writeConfigFile(_0x196dd5,_0x460c86);const _0x397112=_0x2b79e2[_0x22c6b0(0x12a)]+_0x22c6b0(0xe7);return renameSync(_0x2b79e2[_0x22c6b0(0x12a)],_0x397112),{'step':0x1,'label':_0x22c6b0(0xe3),'ok':!![],'detail':_0x2b79e2['oldPath']+_0x22c6b0(0x101)+_0x196dd5+'\x20(backup:\x20'+_0x397112+')'};}function execRemoveOldArtifacts(_0x29e78e){const _0x4cdd80=a89_0x405555,_0x4d7c62=[];for(const _0x3129c6 of _0x29e78e){try{if(!existsSync(_0x3129c6))continue;const _0x21da36=tryStat(_0x3129c6);_0x21da36?.[_0x4cdd80(0xd9)]()?rmSync(_0x3129c6,{'recursive':!![],'force':!![]}):unlinkSync(_0x3129c6);}catch(_0x415e41){_0x4d7c62[_0x4cdd80(0xe2)](_0x3129c6+':\x20'+_0x415e41[_0x4cdd80(0xb8)]);}}return{'step':0x3,'label':_0x4cdd80(0xce),'ok':_0x4d7c62['length']===0x0,'detail':_0x4d7c62[_0x4cdd80(0xaa)]>0x0?_0x29e78e['length']-_0x4d7c62['length']+'/'+_0x29e78e[_0x4cdd80(0xaa)]+'\x20removed\x20('+_0x4d7c62[_0x4cdd80(0xdc)](';\x20')+')':_0x29e78e['length']+_0x4cdd80(0x11e)};}function execCleanMcp(_0x154987){const _0x4b5a4f=a89_0x405555;if(!_0x154987['oldMcpConfig'])return{'step':0x4,'label':_0x4b5a4f(0x124),'ok':!![],'detail':_0x4b5a4f(0xb4)};try{const _0x51713d=readFileSync(_0x154987[_0x4b5a4f(0x128)]['path'],_0x4b5a4f(0xf2)),_0x267491=JSON[_0x4b5a4f(0xc5)](_0x51713d);if(_0x267491?.[_0x4b5a4f(0x120)]&&typeof _0x267491[_0x4b5a4f(0x120)]===_0x4b5a4f(0xf9)){const _0x5cdb9f=[];for(const [_0x22e24d,_0x5c9e7d]of Object['entries'](_0x267491[_0x4b5a4f(0x120)])){_0x5c9e7d?.['args']&&Array[_0x4b5a4f(0xfe)](_0x5c9e7d[_0x4b5a4f(0x113)])&&_0x5c9e7d[_0x4b5a4f(0x113)][_0x4b5a4f(0x123)](_0xe03d03=>typeof _0xe03d03===_0x4b5a4f(0xac)&&_0xe03d03['includes'](_0x4b5a4f(0x114)))&&_0x5cdb9f['push'](_0x22e24d);}for(const _0x6d533f of _0x5cdb9f){delete _0x267491[_0x4b5a4f(0x120)][_0x6d533f];}return _0x5cdb9f['length']>0x0&&writeFileSync(_0x154987['oldMcpConfig'][_0x4b5a4f(0xdf)],JSON[_0x4b5a4f(0xbb)](_0x267491,null,0x2)+'\x0a',_0x4b5a4f(0xf2)),{'step':0x4,'label':_0x4b5a4f(0x124),'ok':!![],'detail':_0x4b5a4f(0x119)+_0x5cdb9f[_0x4b5a4f(0xdc)](',\x20')+_0x4b5a4f(0xc7)+_0x154987[_0x4b5a4f(0x128)][_0x4b5a4f(0xdf)]};}return{'step':0x4,'label':_0x4b5a4f(0x124),'ok':!![],'detail':_0x4b5a4f(0x111)};}catch(_0x438bf2){return{'step':0x4,'label':_0x4b5a4f(0x124),'ok':![],'detail':_0x438bf2[_0x4b5a4f(0xb8)]};}}function execSkillsRemove(_0x1593e4,_0x1b430e){const _0x485c6b=a89_0x405555,_0x1c9243=runNpxSkillsRemove(_0x1593e4,{'stdio':_0x485c6b(0x122),'yes':_0x1b430e});return{'step':0x5,'label':_0x485c6b(0xd7),'ok':_0x1c9243['ok'],'detail':_0x1c9243['ok']?_0x485c6b(0xea):_0x1c9243[_0x485c6b(0xcc)]??'exit\x20'+_0x1c9243[_0x485c6b(0xaf)]};}function execSkillsAdd(_0x3d7082,_0x39b03b){const _0x54d418=a89_0x405555,_0x4805dd=runNpxSkillsAddGlobal(_0x3d7082,'lovrabet/rabetbase',{'stdio':_0x54d418(0x122),'yes':_0x39b03b});return{'step':0x6,'label':_0x54d418(0x105),'ok':_0x4805dd['ok'],'detail':_0x4805dd['ok']?_0x54d418(0xb6):_0x4805dd[_0x54d418(0xcc)]??_0x54d418(0xe8)+_0x4805dd[_0x54d418(0xaf)]};}function execUpgradeSdk(_0x452acf){const _0x30f3ff=a89_0x405555;if(!_0x452acf[_0x30f3ff(0xfd)])return{'step':0x7,'label':_0x30f3ff(0x115),'ok':!![],'detail':_0x30f3ff(0xa9)};const {pkgPath:_0x5495e6,currentVersion:_0x3d19d3,field:_0x2e5be6}=_0x452acf[_0x30f3ff(0xfd)];try{const _0xdbf00f=readFileSync(_0x5495e6,_0x30f3ff(0xf2)),_0x4b489b=JSON[_0x30f3ff(0xc5)](_0xdbf00f);return _0x4b489b[_0x2e5be6][_0x30f3ff(0xf4)]=_0x30f3ff(0xec),writeFileSync(_0x5495e6,JSON[_0x30f3ff(0xbb)](_0x4b489b,null,0x2)+'\x0a','utf8'),{'step':0x7,'label':_0x30f3ff(0x115),'ok':!![],'detail':_0x2e5be6+'[\x22@lovrabet/sdk\x22]:\x20'+_0x3d19d3+_0x30f3ff(0xc8)};}catch(_0x41250e){return{'step':0x7,'label':_0x30f3ff(0x115),'ok':![],'detail':_0x41250e[_0x30f3ff(0xb8)]};}}function tryStat(_0x4f4dda){try{return statSync(_0x4f4dda);}catch{return undefined;}}function printSummary(_0x1b26e6){const _0x1ab3f7=a89_0x405555;console[_0x1ab3f7(0x10d)](''),console['log'](a89_0x14aceb[_0x1ab3f7(0x103)](_0x1ab3f7(0xbd))),console[_0x1ab3f7(0x10d)]('');for(const _0x44bb94 of _0x1b26e6){const _0x303758=_0x44bb94['ok']?a89_0x14aceb['green']('OK'):a89_0x14aceb[_0x1ab3f7(0xb0)](_0x1ab3f7(0xbf));console['log']('\x20\x20'+_0x303758+_0x1ab3f7(0xe0)+_0x44bb94[_0x1ab3f7(0x121)]+':\x20'+_0x44bb94[_0x1ab3f7(0xd2)]);if(_0x44bb94[_0x1ab3f7(0xcd)])console[_0x1ab3f7(0x10d)]('\x20\x20\x20\x20\x20\x20\x20'+a89_0x14aceb[_0x1ab3f7(0xde)](_0x44bb94[_0x1ab3f7(0xcd)]));}console['log']('');}export async function upgradeApp(_0x117384,_0x26c17d){const _0xa64231=a89_0x405555,_0x36c5b8=process['cwd'](),_0xccfb0f=analyse(_0x36c5b8),_0x2644b9=!_0xccfb0f[_0xa64231(0xfa)]&&_0xccfb0f[_0xa64231(0xf6)][_0xa64231(0xaa)]===0x0&&!_0xccfb0f[_0xa64231(0x128)]&&!_0xccfb0f[_0xa64231(0x10c)]&&!_0xccfb0f[_0xa64231(0xfd)];if(_0x2644b9){console[_0xa64231(0x10d)](a89_0x14aceb[_0xa64231(0xd6)](_0xa64231(0xc2)));return;}printReport(_0xccfb0f);const _0x3d39b8=!!(_0x26c17d['yes']||_0x26c17d['Y']||_0x117384);if(!_0x3d39b8)try{const _0x170b21=await askConfirm(_0xa64231(0xe6));if(!_0x170b21){console['log'](a89_0x14aceb[_0xa64231(0xde)](_0xa64231(0xda)));return;}}catch(_0x1ecff1){if(_0x1ecff1?.['message']==='CANCEL'){console[_0xa64231(0x10d)](a89_0x14aceb[_0xa64231(0xde)](_0xa64231(0xda)));return;}throw _0x1ecff1;}const _0x6be507=[],_0x3f3302=a89_0x3b7c78({'text':_0xa64231(0xe9),'color':_0xa64231(0xca)})['start'](),_0x16cc4d=execConfigMigration(_0xccfb0f,_0x36c5b8);_0x6be507[_0xa64231(0xe2)](_0x16cc4d),_0x3f3302[_0x16cc4d['ok']?_0xa64231(0x112):_0xa64231(0xc4)](_0xa64231(0xc0)+(_0x16cc4d[_0xa64231(0xcd)]??(_0x16cc4d['ok']?_0xa64231(0xf5):_0xa64231(0xad))));const _0x20e3a4=resolve(_0x36c5b8,_0xa64231(0xae)),_0x266b6c=a89_0x3b7c78({'text':_0xa64231(0xff),'color':_0xa64231(0xca)})[_0xa64231(0x11d)]();if(existsSync(_0x20e3a4))try{rmSync(_0x20e3a4,{'recursive':!![],'force':!![]}),_0x266b6c[_0xa64231(0x112)](_0xa64231(0xb1)),_0x6be507[_0xa64231(0xe2)]({'step':0x2,'label':_0xa64231(0x10e),'ok':!![]});}catch(_0x5c8f02){_0x266b6c[_0xa64231(0xc4)](_0xa64231(0xcf)+_0x5c8f02['message']),_0x6be507[_0xa64231(0xe2)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x5c8f02[_0xa64231(0xb8)]});}else _0x266b6c[_0xa64231(0x117)](_0xa64231(0x106)),_0x6be507[_0xa64231(0xe2)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':_0xa64231(0xb4)});const _0x53176a=a89_0x3b7c78({'text':_0xa64231(0xb5),'color':_0xa64231(0xca)})[_0xa64231(0x11d)](),_0x30c2a9=execRemoveOldArtifacts(_0xccfb0f['oldArtifacts']);_0x6be507[_0xa64231(0xe2)](_0x30c2a9),_0x53176a[_0x30c2a9['ok']?_0xa64231(0x112):_0xa64231(0xc4)]('Step\x203/7:\x20Legacy\x20artifacts\x20—\x20'+(_0x30c2a9[_0xa64231(0xcd)]??(_0x30c2a9['ok']?_0xa64231(0xf5):'failed')));const _0x3eee4d=a89_0x3b7c78({'text':_0xa64231(0xf3),'color':'cyan'})[_0xa64231(0x11d)](),_0x223000=execCleanMcp(_0xccfb0f);_0x6be507['push'](_0x223000),_0x3eee4d[_0x223000['ok']?_0xa64231(0x112):_0xa64231(0xc4)](_0xa64231(0xf1)+(_0x223000[_0xa64231(0xcd)]??(_0x223000['ok']?_0xa64231(0xf5):_0xa64231(0xad))));const _0x460ecd=a89_0x3b7c78({'text':'Step\x205/7:\x20Removing\x20old\x20skill...','color':_0xa64231(0xca)})[_0xa64231(0x11d)](),_0x3dd8f9=execSkillsRemove(_0x36c5b8,_0x3d39b8);_0x6be507[_0xa64231(0xe2)](_0x3dd8f9),_0x460ecd[_0x3dd8f9['ok']?'succeed':_0xa64231(0xc4)](_0xa64231(0xf0)+(_0x3dd8f9[_0xa64231(0xcd)]??(_0x3dd8f9['ok']?'done':'failed')));const _0x3d3e2f=a89_0x3b7c78({'text':'Step\x206/7:\x20Installing\x20new\x20skill...','color':_0xa64231(0xca)})['start'](),_0x11b12f=execSkillsAdd(_0x36c5b8,_0x3d39b8);_0x6be507[_0xa64231(0xe2)](_0x11b12f),_0x3d3e2f[_0x11b12f['ok']?_0xa64231(0x112):_0xa64231(0xc4)](_0xa64231(0x102)+(_0x11b12f[_0xa64231(0xcd)]??(_0x11b12f['ok']?'done':_0xa64231(0xad))));const _0x249685=a89_0x3b7c78({'text':_0xa64231(0x10b),'color':'cyan'})['start'](),_0x1ce3f2=execUpgradeSdk(_0xccfb0f);_0x6be507[_0xa64231(0xe2)](_0x1ce3f2),_0x249685[_0x1ce3f2['ok']?_0xa64231(0x112):_0xa64231(0xc4)]('Step\x207/7:\x20@lovrabet/sdk\x20—\x20'+(_0x1ce3f2['detail']??(_0x1ce3f2['ok']?_0xa64231(0xf5):_0xa64231(0xad)))),printSummary(_0x6be507);const _0x394f2b=_0x6be507[_0xa64231(0x123)](_0x53bd40=>!_0x53bd40['ok']);_0x394f2b?console[_0xa64231(0x10d)](a89_0x14aceb['yellow'](_0xa64231(0xc9))):console['log'](a89_0x14aceb[_0xa64231(0xd6)]('Upgrade\x20completed\x20successfully!')),_0x1ce3f2['ok']&&_0xccfb0f['sdkUpgrade']&&(console[_0xa64231(0x10d)](''),console['log'](a89_0x14aceb[_0xa64231(0x103)][_0xa64231(0xca)](_0xa64231(0x109))),console['log'](a89_0x14aceb[_0xa64231(0xca)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console['log'](''),console[_0xa64231(0x10d)](a89_0x14aceb[_0xa64231(0xbe)]('\x20\x20npm\x20install')),console[_0xa64231(0x10d)](a89_0x14aceb[_0xa64231(0xbe)](_0xa64231(0x10a))),console[_0xa64231(0x10d)](a89_0x14aceb['white']('\x20\x20bun\x20install')),console[_0xa64231(0x10d)](''));}
1
+ const a89_0x4e1fd9=a89_0x5b99;(function(_0x1c836a,_0x29a001){const _0x40a754=a89_0x5b99,_0x15781a=_0x1c836a();while(!![]){try{const _0x2237eb=parseInt(_0x40a754(0x178))/0x1+-parseInt(_0x40a754(0x1f3))/0x2+parseInt(_0x40a754(0x1c0))/0x3+-parseInt(_0x40a754(0x186))/0x4+-parseInt(_0x40a754(0x190))/0x5*(parseInt(_0x40a754(0x1eb))/0x6)+-parseInt(_0x40a754(0x197))/0x7+parseInt(_0x40a754(0x19b))/0x8;if(_0x2237eb===_0x29a001)break;else _0x15781a['push'](_0x15781a['shift']());}catch(_0x3c7f44){_0x15781a['push'](_0x15781a['shift']());}}}(a89_0x1450,0x5b6ed));import a89_0x1486b8 from'chalk';import a89_0x353349 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';function a89_0x5b99(_0x21e371,_0x28302a){_0x21e371=_0x21e371-0x175;const _0x14505e=a89_0x1450();let _0x5b9917=_0x14505e[_0x21e371];return _0x5b9917;}import{runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a89_0x4e1fd9(0x1cc)](_0x566993=>_0x566993!==NEW_CONFIG_NAME);function a89_0x1450(){const _0x34c4f7=['Proceed\x20with\x20upgrade?','some','FAIL','detail','\x20\x20bun\x20install','none\x20found','.cursor/mcp.json','no\x20legacy\x20config\x20found','\x20→\x20latest','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','\x20(backup:\x20','CANCEL','@lovrabet/sdk','sdkUpgrade','dependencies','Step\x205/7:\x20Removing\x20old\x20skill...','utf8','Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:','\x20removed\x20(','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','bold','entries','fail','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','FOUND','status','Config\x20file:','\x20→\x20keys:\x20','log','exit\x20','cwd','1542822KCrlmL','white','info','@lovrabet/dataset-mcp-server','not\x20found\x20(will\x20create)','isDirectory','[\x22@lovrabet/sdk\x22]:\x20','lovrabet/rabetbase\x20installed\x20globally','.cursor/rules/lovrabet_rules.mdc','hasNewConfig','undefined','cyan','filter','devDependencies','succeed','\x20from\x20','parse','string','===\x20Upgrade\x20Analysis\x20===','gray','message','step','join','Upgrade\x20cancelled.','\x20\x20New\x20config\x20(.rabetbase.json):\x20','path','isArray','.lovrabet','\x20\x20Current\x20version\x20in\x20','Skill\x20swap:','done','green','includes','\x20\x20Fields\x20to\x20migrate:\x20','Step\x206/7:\x20Installing\x20new\x20skill...','Remove\x20legacy\x20artifacts','error','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','yellow','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','===\x20Upgrade\x20Summary\x20===','Step\x204/7:\x20MCP\x20config\x20—\x20','removed\x20','636ShchhY','Legacy\x20artifacts:','.bak','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','\x20→\x20','oldPath','files','1045628aVvGWy','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','lovrabet/rabetbase','red','658723iRsiLb','Config\x20migration','push','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20lovrabet/rabetbase\x20--global','\x20removed','length','Clean\x20MCP\x20config','keys','stringify','configMigration','mcpServers','oldMcpConfig','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','skipped\x20(no\x20legacy\x20config)','1601084IixBmN','latest','package.json','object','Remove\x20old\x20skill','Step\x201/7:\x20Config\x20migration\x20—\x20','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','args','\x20\x20#\x20or','oldArtifacts','21860Sysvvr','no\x20legacy\x20entry','Remove\x20.lovrabet/','already\x20exists\x20(will\x20merge)','failed','Upgrade\x20@lovrabet/sdk','start','3591693mGjXlf','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','lovrabet/lovrabet-skill\x20removed','Step\x204/7:\x20Cleaning\x20MCP\x20config...','8809024XRiydD','\x20\x20Step\x20','MCP\x20config:','Install\x20new\x20skill','values','@lovrabet/sdk:'];a89_0x1450=function(){return _0x34c4f7;};return a89_0x1450();}function collectIdeSkillFiles(_0x132862){const _0x340dd8=a89_0x4e1fd9,_0x13c7b8=[];for(const _0x3f659a of Object[_0x340dd8(0x19f)](CORE_IDE_CONFIGS)){if(_0x3f659a[_0x340dd8(0x1f2)])for(const _0x56ae59 of _0x3f659a[_0x340dd8(0x1f2)]){_0x13c7b8[_0x340dd8(0x17a)](resolve(_0x132862,_0x56ae59['path']));}}return _0x13c7b8;}function analyse(_0x3f0b37){const _0x892751=a89_0x4e1fd9;let _0x41b72f=null;const _0x2176dc=resolve(_0x3f0b37,NEW_CONFIG_NAME),_0xa35320=existsSync(_0x2176dc);for(const _0x34fd7f of LEGACY_CONFIG_NAMES){const _0x59c345=resolve(_0x3f0b37,_0x34fd7f);if(existsSync(_0x59c345)){const _0x3d56b2=readConfigFile(_0x59c345),_0x5b9cd7=Object[_0x892751(0x17f)](_0x3d56b2)[_0x892751(0x1cc)](_0x42f151=>typeof _0x3d56b2[_0x42f151]!==_0x892751(0x1ca));_0x41b72f={'oldPath':_0x59c345,'hasNewConfig':_0xa35320,'fields':_0x5b9cd7};break;}}const _0x29dee7=[],_0x2faacc=resolve(_0x3f0b37,_0x892751(0x1db));if(existsSync(_0x2faacc))_0x29dee7[_0x892751(0x17a)](_0x2faacc);const _0xfcd013=resolve(_0x3f0b37,_0x892751(0x1c8));if(existsSync(_0xfcd013))_0x29dee7['push'](_0xfcd013);const _0x4023bb=resolve(_0x3f0b37,'.claude/skills/lovrabet');if(existsSync(_0x4023bb))_0x29dee7[_0x892751(0x17a)](_0x4023bb);for(const _0x27f34b of collectIdeSkillFiles(_0x3f0b37)){if(existsSync(_0x27f34b))_0x29dee7[_0x892751(0x17a)](_0x27f34b);}let _0x5d9780=null;const _0x27c962=resolve(_0x3f0b37,_0x892751(0x1a7));if(existsSync(_0x27c962))try{const _0x305c98=JSON[_0x892751(0x1d0)](readFileSync(_0x27c962,'utf8'));if(_0x305c98?.[_0x892751(0x182)]&&typeof _0x305c98[_0x892751(0x182)]===_0x892751(0x189)){const _0x374bb3=[];for(const [_0x32298a,_0xa83eb6]of Object[_0x892751(0x1b6)](_0x305c98[_0x892751(0x182)])){const _0x245de8=_0xa83eb6;_0x245de8?.[_0x892751(0x18d)]&&Array['isArray'](_0x245de8[_0x892751(0x18d)])&&_0x245de8[_0x892751(0x18d)][_0x892751(0x1a2)](_0x542416=>typeof _0x542416==='string'&&_0x542416[_0x892751(0x1e0)](_0x892751(0x1c3)))&&_0x374bb3[_0x892751(0x17a)](_0x32298a);}_0x374bb3[_0x892751(0x17d)]>0x0&&(_0x5d9780={'path':_0x27c962,'keys':_0x374bb3});}}catch{}const _0x5c73be=_0x29dee7[_0x892751(0x17d)]>0x0||_0x41b72f!==null;let _0x3f104f=null;const _0x2c8207=resolve(_0x3f0b37,_0x892751(0x188));if(existsSync(_0x2c8207))try{const _0x19b79d=JSON[_0x892751(0x1d0)](readFileSync(_0x2c8207,_0x892751(0x1b1)));for(const _0xbec2e1 of[_0x892751(0x1af),_0x892751(0x1cd)]){const _0x47f088=_0x19b79d?.[_0xbec2e1]?.[_0x892751(0x1ad)];if(typeof _0x47f088===_0x892751(0x1d1)){_0x47f088!==_0x892751(0x187)&&(_0x3f104f={'pkgPath':_0x2c8207,'currentVersion':_0x47f088,'field':_0xbec2e1});break;}}}catch{}return{'configMigration':_0x41b72f,'oldArtifacts':_0x29dee7,'oldMcpConfig':_0x5d9780,'needsSkillSwap':_0x5c73be,'sdkUpgrade':_0x3f104f};}function printReport(_0x18786c){const _0x170932=a89_0x4e1fd9,{configMigration:_0x10e9c8,oldArtifacts:_0x3cfee1,oldMcpConfig:_0x2c96c1,needsSkillSwap:_0x3d3938}=_0x18786c;console[_0x170932(0x1bd)](''),console['log'](a89_0x1486b8[_0x170932(0x1b5)](_0x170932(0x1d2))),console[_0x170932(0x1bd)]('');_0x10e9c8?(console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x1bb))+('\x20\x20'+a89_0x1486b8[_0x170932(0x1e6)](_0x10e9c8[_0x170932(0x1f1)]))),console[_0x170932(0x1bd)](_0x170932(0x1d8)+(_0x10e9c8[_0x170932(0x1c9)]?a89_0x1486b8[_0x170932(0x1df)](_0x170932(0x193)):a89_0x1486b8[_0x170932(0x1d3)](_0x170932(0x1c4)))),console[_0x170932(0x1bd)](_0x170932(0x1e1)+_0x10e9c8['fields'][_0x170932(0x1d6)](',\x20')),console['log'](_0x170932(0x1e7))):console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x1bb))+'\x20\x20'+a89_0x1486b8['gray'](_0x170932(0x1a8)));console[_0x170932(0x1bd)]('');if(_0x3cfee1['length']>0x0){console['log'](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x1ec)));for(const _0x1b355c of _0x3cfee1){console['log']('\x20\x20'+a89_0x1486b8[_0x170932(0x177)](_0x170932(0x1b9))+'\x20\x20'+_0x1b355c);}console[_0x170932(0x1bd)]('\x20\x20Action:\x20delete');}else console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x1ec))+'\x20\x20'+a89_0x1486b8['gray'](_0x170932(0x1a6)));console[_0x170932(0x1bd)]('');_0x2c96c1?(console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x19d))+('\x20\x20'+a89_0x1486b8[_0x170932(0x1e6)](_0x2c96c1['path'])+_0x170932(0x1bc)+_0x2c96c1[_0x170932(0x17f)][_0x170932(0x1d6)](',\x20'))),console[_0x170932(0x1bd)](_0x170932(0x1e5))):console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)](_0x170932(0x19d))+'\x20\x20'+a89_0x1486b8[_0x170932(0x1d3)](_0x170932(0x191)));console[_0x170932(0x1bd)](''),console[_0x170932(0x1bd)](a89_0x1486b8['cyan'](_0x170932(0x1dd))+('\x20\x20'+(_0x3d3938?a89_0x1486b8[_0x170932(0x1e6)]('needed'):a89_0x1486b8[_0x170932(0x1df)]('not\x20needed'))));_0x3d3938&&console[_0x170932(0x1bd)](_0x170932(0x17b));console[_0x170932(0x1bd)]('');if(_0x18786c[_0x170932(0x1ae)]){const {currentVersion:_0xc58510,field:_0x1d13da,pkgPath:_0x2155f7}=_0x18786c[_0x170932(0x1ae)];console[_0x170932(0x1bd)](a89_0x1486b8['cyan'](_0x170932(0x1a0))+('\x20\x20'+a89_0x1486b8[_0x170932(0x1e6)](_0x2155f7))),console[_0x170932(0x1bd)](_0x170932(0x1dc)+_0x1d13da+':\x20'+a89_0x1486b8[_0x170932(0x1e6)](_0xc58510)+_0x170932(0x1f0)+a89_0x1486b8['green']('latest')),console[_0x170932(0x1bd)]('\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)');}else console[_0x170932(0x1bd)](a89_0x1486b8[_0x170932(0x1cb)]('@lovrabet/sdk:')+'\x20\x20'+a89_0x1486b8[_0x170932(0x1d3)]('not\x20found\x20or\x20already\x20at\x20latest'));console[_0x170932(0x1bd)]('');}function execConfigMigration(_0x3f664a,_0x10cba4){const _0x437883=a89_0x4e1fd9,{configMigration:_0x103b23}=_0x3f664a;if(!_0x103b23?.['oldPath'])return{'step':0x1,'label':_0x437883(0x179),'ok':!![],'detail':_0x437883(0x185)};const _0x141248=readConfigFile(_0x103b23[_0x437883(0x1f1)]),_0x3d3656=resolve(_0x10cba4,NEW_CONFIG_NAME),_0xd4b20f=_0x103b23[_0x437883(0x1c9)]?readConfigFile(_0x3d3656):{};for(const [_0x3fb7d0,_0x1c269b]of Object[_0x437883(0x1b6)](_0x141248)){!(_0x3fb7d0 in _0xd4b20f)&&(_0xd4b20f[_0x3fb7d0]=_0x1c269b);}writeConfigFile(_0x3d3656,_0xd4b20f);const _0x55bfc9=_0x103b23[_0x437883(0x1f1)]+_0x437883(0x1ed);return renameSync(_0x103b23[_0x437883(0x1f1)],_0x55bfc9),{'step':0x1,'label':_0x437883(0x179),'ok':!![],'detail':_0x103b23[_0x437883(0x1f1)]+_0x437883(0x1f0)+_0x3d3656+_0x437883(0x1ab)+_0x55bfc9+')'};}function execRemoveOldArtifacts(_0xd0ca7e){const _0xe1e3a1=a89_0x4e1fd9,_0x11354d=[];for(const _0x29568b of _0xd0ca7e){try{if(!existsSync(_0x29568b))continue;const _0x39c02a=tryStat(_0x29568b);_0x39c02a?.[_0xe1e3a1(0x1c5)]()?rmSync(_0x29568b,{'recursive':!![],'force':!![]}):unlinkSync(_0x29568b);}catch(_0x25c6ff){_0x11354d['push'](_0x29568b+':\x20'+_0x25c6ff[_0xe1e3a1(0x1d4)]);}}return{'step':0x3,'label':_0xe1e3a1(0x1e3),'ok':_0x11354d['length']===0x0,'detail':_0x11354d[_0xe1e3a1(0x17d)]>0x0?_0xd0ca7e[_0xe1e3a1(0x17d)]-_0x11354d[_0xe1e3a1(0x17d)]+'/'+_0xd0ca7e['length']+_0xe1e3a1(0x1b3)+_0x11354d['join'](';\x20')+')':_0xd0ca7e[_0xe1e3a1(0x17d)]+_0xe1e3a1(0x17c)};}function execCleanMcp(_0x1a179c){const _0x25aa64=a89_0x4e1fd9;if(!_0x1a179c[_0x25aa64(0x183)])return{'step':0x4,'label':_0x25aa64(0x17e),'ok':!![],'detail':'skipped'};try{const _0x1a32fb=readFileSync(_0x1a179c[_0x25aa64(0x183)]['path'],_0x25aa64(0x1b1)),_0x40472b=JSON[_0x25aa64(0x1d0)](_0x1a32fb);if(_0x40472b?.[_0x25aa64(0x182)]&&typeof _0x40472b['mcpServers']===_0x25aa64(0x189)){const _0x5988a8=[];for(const [_0x17f10b,_0x26362d]of Object[_0x25aa64(0x1b6)](_0x40472b[_0x25aa64(0x182)])){_0x26362d?.[_0x25aa64(0x18d)]&&Array[_0x25aa64(0x1da)](_0x26362d[_0x25aa64(0x18d)])&&_0x26362d[_0x25aa64(0x18d)]['some'](_0x2fef6b=>typeof _0x2fef6b===_0x25aa64(0x1d1)&&_0x2fef6b[_0x25aa64(0x1e0)](_0x25aa64(0x1c3)))&&_0x5988a8[_0x25aa64(0x17a)](_0x17f10b);}for(const _0x5a9937 of _0x5988a8){delete _0x40472b[_0x25aa64(0x182)][_0x5a9937];}return _0x5988a8[_0x25aa64(0x17d)]>0x0&&writeFileSync(_0x1a179c['oldMcpConfig'][_0x25aa64(0x1d9)],JSON[_0x25aa64(0x180)](_0x40472b,null,0x2)+'\x0a',_0x25aa64(0x1b1)),{'step':0x4,'label':'Clean\x20MCP\x20config','ok':!![],'detail':_0x25aa64(0x1ea)+_0x5988a8[_0x25aa64(0x1d6)](',\x20')+_0x25aa64(0x1cf)+_0x1a179c[_0x25aa64(0x183)]['path']};}return{'step':0x4,'label':_0x25aa64(0x17e),'ok':!![],'detail':'no\x20matching\x20entry\x20found'};}catch(_0x519ad3){return{'step':0x4,'label':_0x25aa64(0x17e),'ok':![],'detail':_0x519ad3['message']};}}function execSkillsRemove(_0x377843,_0x231916){const _0x2a5843=a89_0x4e1fd9,_0xc8caef=runNpxSkillsRemove(_0x377843,{'stdio':'inherit','yes':_0x231916});return{'step':0x5,'label':_0x2a5843(0x18a),'ok':_0xc8caef['ok'],'detail':_0xc8caef['ok']?_0x2a5843(0x199):_0xc8caef['error']??'exit\x20'+_0xc8caef[_0x2a5843(0x1ba)]};}function execSkillsAdd(_0x46d7df,_0x5ab8ea){const _0x47155f=a89_0x4e1fd9,_0x39989a=runNpxSkillsAddGlobal(_0x46d7df,_0x47155f(0x176),{'stdio':'inherit','yes':_0x5ab8ea});return{'step':0x6,'label':_0x47155f(0x19e),'ok':_0x39989a['ok'],'detail':_0x39989a['ok']?_0x47155f(0x1c7):_0x39989a[_0x47155f(0x1e4)]??_0x47155f(0x1be)+_0x39989a[_0x47155f(0x1ba)]};}function execUpgradeSdk(_0x557bee){const _0x59fba6=a89_0x4e1fd9;if(!_0x557bee['sdkUpgrade'])return{'step':0x7,'label':_0x59fba6(0x195),'ok':!![],'detail':_0x59fba6(0x1b4)};const {pkgPath:_0x55f078,currentVersion:_0x47cdf6,field:_0x57a1af}=_0x557bee[_0x59fba6(0x1ae)];try{const _0x36896b=readFileSync(_0x55f078,_0x59fba6(0x1b1)),_0x5b489f=JSON[_0x59fba6(0x1d0)](_0x36896b);return _0x5b489f[_0x57a1af]['@lovrabet/sdk']=_0x59fba6(0x187),writeFileSync(_0x55f078,JSON[_0x59fba6(0x180)](_0x5b489f,null,0x2)+'\x0a','utf8'),{'step':0x7,'label':_0x59fba6(0x195),'ok':!![],'detail':_0x57a1af+_0x59fba6(0x1c6)+_0x47cdf6+_0x59fba6(0x1a9)};}catch(_0x5282e4){return{'step':0x7,'label':_0x59fba6(0x195),'ok':![],'detail':_0x5282e4[_0x59fba6(0x1d4)]};}}function tryStat(_0x21d726){try{return statSync(_0x21d726);}catch{return undefined;}}function printSummary(_0x1e0617){const _0x10d9b9=a89_0x4e1fd9;console[_0x10d9b9(0x1bd)](''),console[_0x10d9b9(0x1bd)](a89_0x1486b8[_0x10d9b9(0x1b5)](_0x10d9b9(0x1e8))),console['log']('');for(const _0x38455b of _0x1e0617){const _0x262067=_0x38455b['ok']?a89_0x1486b8['green']('OK'):a89_0x1486b8['red'](_0x10d9b9(0x1a3));console['log']('\x20\x20'+_0x262067+_0x10d9b9(0x19c)+_0x38455b[_0x10d9b9(0x1d5)]+':\x20'+_0x38455b['label']);if(_0x38455b[_0x10d9b9(0x1a4)])console[_0x10d9b9(0x1bd)]('\x20\x20\x20\x20\x20\x20\x20'+a89_0x1486b8[_0x10d9b9(0x1d3)](_0x38455b['detail']));}console[_0x10d9b9(0x1bd)]('');}export async function upgradeApp(_0x5aa5d4,_0x4a840f){const _0x2773d7=a89_0x4e1fd9,_0x379505=process[_0x2773d7(0x1bf)](),_0x34e2df=analyse(_0x379505),_0x343f6e=!_0x34e2df[_0x2773d7(0x181)]&&_0x34e2df[_0x2773d7(0x18f)][_0x2773d7(0x17d)]===0x0&&!_0x34e2df[_0x2773d7(0x183)]&&!_0x34e2df['needsSkillSwap']&&!_0x34e2df['sdkUpgrade'];if(_0x343f6e){console[_0x2773d7(0x1bd)](a89_0x1486b8['green'](_0x2773d7(0x1ee)));return;}printReport(_0x34e2df);const _0x3a08c3=!!(_0x4a840f['yes']||_0x4a840f['Y']||_0x5aa5d4);if(!_0x3a08c3)try{const _0x153c45=await askConfirm(_0x2773d7(0x1a1));if(!_0x153c45){console[_0x2773d7(0x1bd)](a89_0x1486b8['gray'](_0x2773d7(0x1d7)));return;}}catch(_0x2f6f9a){if(_0x2f6f9a?.[_0x2773d7(0x1d4)]===_0x2773d7(0x1ac)){console['log'](a89_0x1486b8['gray'](_0x2773d7(0x1d7)));return;}throw _0x2f6f9a;}const _0x6a19a3=[],_0x509704=a89_0x353349({'text':'Step\x201/7:\x20Migrating\x20config...','color':'cyan'})[_0x2773d7(0x196)](),_0x5ea09e=execConfigMigration(_0x34e2df,_0x379505);_0x6a19a3[_0x2773d7(0x17a)](_0x5ea09e),_0x509704[_0x5ea09e['ok']?_0x2773d7(0x1ce):_0x2773d7(0x1b7)](_0x2773d7(0x18b)+(_0x5ea09e[_0x2773d7(0x1a4)]??(_0x5ea09e['ok']?_0x2773d7(0x1de):_0x2773d7(0x194))));const _0x547c1e=resolve(_0x379505,'.lovrabet'),_0x536597=a89_0x353349({'text':_0x2773d7(0x18c),'color':'cyan'})[_0x2773d7(0x196)]();if(existsSync(_0x547c1e))try{rmSync(_0x547c1e,{'recursive':!![],'force':!![]}),_0x536597['succeed']('Step\x202/7:\x20.lovrabet/\x20directory\x20removed'),_0x6a19a3[_0x2773d7(0x17a)]({'step':0x2,'label':_0x2773d7(0x192),'ok':!![]});}catch(_0x1362ec){_0x536597[_0x2773d7(0x1b7)](_0x2773d7(0x1aa)+_0x1362ec[_0x2773d7(0x1d4)]),_0x6a19a3['push']({'step':0x2,'label':_0x2773d7(0x192),'ok':![],'detail':_0x1362ec['message']});}else _0x536597[_0x2773d7(0x1c2)](_0x2773d7(0x1b8)),_0x6a19a3[_0x2773d7(0x17a)]({'step':0x2,'label':_0x2773d7(0x192),'ok':!![],'detail':'skipped'});const _0x1dffc5=a89_0x353349({'text':'Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','color':_0x2773d7(0x1cb)})[_0x2773d7(0x196)](),_0x32b73e=execRemoveOldArtifacts(_0x34e2df[_0x2773d7(0x18f)]);_0x6a19a3[_0x2773d7(0x17a)](_0x32b73e),_0x1dffc5[_0x32b73e['ok']?_0x2773d7(0x1ce):_0x2773d7(0x1b7)](_0x2773d7(0x175)+(_0x32b73e[_0x2773d7(0x1a4)]??(_0x32b73e['ok']?_0x2773d7(0x1de):_0x2773d7(0x194))));const _0x3ef243=a89_0x353349({'text':_0x2773d7(0x19a),'color':_0x2773d7(0x1cb)})[_0x2773d7(0x196)](),_0x3aa26e=execCleanMcp(_0x34e2df);_0x6a19a3[_0x2773d7(0x17a)](_0x3aa26e),_0x3ef243[_0x3aa26e['ok']?_0x2773d7(0x1ce):'fail'](_0x2773d7(0x1e9)+(_0x3aa26e[_0x2773d7(0x1a4)]??(_0x3aa26e['ok']?_0x2773d7(0x1de):_0x2773d7(0x194))));const _0x50582b=a89_0x353349({'text':_0x2773d7(0x1b0),'color':'cyan'})[_0x2773d7(0x196)](),_0x3c40d7=execSkillsRemove(_0x379505,_0x3a08c3);_0x6a19a3[_0x2773d7(0x17a)](_0x3c40d7),_0x50582b[_0x3c40d7['ok']?_0x2773d7(0x1ce):_0x2773d7(0x1b7)](_0x2773d7(0x1ef)+(_0x3c40d7[_0x2773d7(0x1a4)]??(_0x3c40d7['ok']?_0x2773d7(0x1de):_0x2773d7(0x194))));const _0xf51cdb=a89_0x353349({'text':_0x2773d7(0x1e2),'color':_0x2773d7(0x1cb)})[_0x2773d7(0x196)](),_0x35d0d4=execSkillsAdd(_0x379505,_0x3a08c3);_0x6a19a3[_0x2773d7(0x17a)](_0x35d0d4),_0xf51cdb[_0x35d0d4['ok']?'succeed':_0x2773d7(0x1b7)]('Step\x206/7:\x20Install\x20new\x20skill\x20—\x20'+(_0x35d0d4[_0x2773d7(0x1a4)]??(_0x35d0d4['ok']?_0x2773d7(0x1de):_0x2773d7(0x194))));const _0x38264f=a89_0x353349({'text':'Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','color':_0x2773d7(0x1cb)})[_0x2773d7(0x196)](),_0x559ee4=execUpgradeSdk(_0x34e2df);_0x6a19a3[_0x2773d7(0x17a)](_0x559ee4),_0x38264f[_0x559ee4['ok']?'succeed':_0x2773d7(0x1b7)](_0x2773d7(0x184)+(_0x559ee4[_0x2773d7(0x1a4)]??(_0x559ee4['ok']?_0x2773d7(0x1de):_0x2773d7(0x194)))),printSummary(_0x6a19a3);const _0x4f52ee=_0x6a19a3['some'](_0x21b2eb=>!_0x21b2eb['ok']);_0x4f52ee?console[_0x2773d7(0x1bd)](a89_0x1486b8['yellow'](_0x2773d7(0x198))):console[_0x2773d7(0x1bd)](a89_0x1486b8['green']('Upgrade\x20completed\x20successfully!')),_0x559ee4['ok']&&_0x34e2df[_0x2773d7(0x1ae)]&&(console[_0x2773d7(0x1bd)](''),console[_0x2773d7(0x1bd)](a89_0x1486b8[_0x2773d7(0x1b5)]['cyan']('@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.')),console[_0x2773d7(0x1bd)](a89_0x1486b8['cyan'](_0x2773d7(0x1b2))),console[_0x2773d7(0x1bd)](''),console['log'](a89_0x1486b8['white']('\x20\x20npm\x20install')),console['log'](a89_0x1486b8[_0x2773d7(0x1c1)](_0x2773d7(0x18e))),console[_0x2773d7(0x1bd)](a89_0x1486b8['white'](_0x2773d7(0x1a5))),console[_0x2773d7(0x1bd)](''));}
@@ -1 +1 @@
1
- const a90_0x4b1ab2=a90_0x35b4;(function(_0x4d9a82,_0x264ee2){const _0x5d20af=a90_0x35b4,_0x1cc8a4=_0x4d9a82();while(!![]){try{const _0xc6f197=parseInt(_0x5d20af(0x1d3))/0x1+-parseInt(_0x5d20af(0x1d1))/0x2*(-parseInt(_0x5d20af(0x1de))/0x3)+parseInt(_0x5d20af(0x1cf))/0x4*(parseInt(_0x5d20af(0x1d4))/0x5)+-parseInt(_0x5d20af(0x1c7))/0x6*(parseInt(_0x5d20af(0x1ca))/0x7)+-parseInt(_0x5d20af(0x1e5))/0x8+-parseInt(_0x5d20af(0x1ec))/0x9+parseInt(_0x5d20af(0x1d9))/0xa;if(_0xc6f197===_0x264ee2)break;else _0x1cc8a4['push'](_0x1cc8a4['shift']());}catch(_0x573fc1){_0x1cc8a4['push'](_0x1cc8a4['shift']());}}}(a90_0x3734,0x8bd71));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dbDefinitions}from'../commands/db/index.js';function a90_0x3734(){const _0x527799=['logout','Configuration','\x20\x20[high-risk-write]','5238162dYojhG','command','Skills','defaultCommand','Menu','length','login','Run\x20any\x20package.json\x20script','project','show','map','preview','Project','isSingleCommand','commands','4271742LHuQrk','start','run','7ykpOPx','API','skill','values','Authentication','1913636GSRQhB','push','7114oItwLC','wildcardDef','31673UpyrXD','10HVNWzZ','Diagnostics','Logs','install','BFF\x20Scripts','7800780RLoLmT','has','description','build','Database\x20Connections','381NIcPwc','get','create','Self\x20Update','Schema','SQL\x20Queries','service','2828384HknlqL','write','set','Quick\x20Start'];a90_0x3734=function(){return _0x527799;};return a90_0x3734();}import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';import{appDefinitions}from'../commands/app/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';import{schemaDefinition}from'../commands/schema.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';function a90_0x35b4(_0x3b81bb,_0x10e6ee){_0x3b81bb=_0x3b81bb-0x1c7;const _0x373454=a90_0x3734();let _0x35b478=_0x373454[_0x3b81bb];return _0x35b478;}export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x59964f){const _0x1d1858=a90_0x35b4;for(const _0x155129 of _0x59964f){definitions[_0x1d1858(0x1e7)](_0x155129[_0x1d1858(0x1e4)]+':'+_0x155129[_0x1d1858(0x1ed)],_0x155129);let _0xdf4eca=serviceGroups[_0x1d1858(0x1df)](_0x155129[_0x1d1858(0x1e4)]);!_0xdf4eca&&(_0xdf4eca=[],serviceGroups[_0x1d1858(0x1e7)](_0x155129[_0x1d1858(0x1e4)],_0xdf4eca)),_0xdf4eca[_0x1d1858(0x1d0)](_0x155129);}}function registerDeclarativeService(_0x406915,_0x21fc46,_0x3535e3){const _0x8f190f=a90_0x35b4;registerDefinitions(_0x21fc46);_0x3535e3?.[_0x8f190f(0x1d2)]&&registerDefinitions([_0x3535e3[_0x8f190f(0x1d2)]]);const _0x25015c=_0x14580a=>_0x14580a==='read'?'':_0x14580a===_0x8f190f(0x1e6)?'\x20\x20[write]':_0x8f190f(0x1eb),_0xf9e56={'service':_0x21fc46[0x0][_0x8f190f(0x1e4)],'label':_0x406915,'commands':_0x21fc46[_0x8f190f(0x1f6)](_0x5b86bc=>({'command':_0x5b86bc['command'],'description':_0x5b86bc[_0x8f190f(0x1db)],'tag':_0x25015c(_0x5b86bc['risk'])})),'declarative':!![],'defaultCommand':_0x3535e3?.[_0x8f190f(0x1ef)]??(_0x3535e3?.[_0x8f190f(0x1f9)]?_0x21fc46[0x0]['command']:undefined),'wildcardDef':_0x3535e3?.['wildcardDef'],'isSingleCommand':_0x3535e3?.[_0x8f190f(0x1f9)]};serviceRegistry[_0x8f190f(0x1d0)](_0xf9e56),serviceByName[_0x8f190f(0x1e7)](_0xf9e56[_0x8f190f(0x1e4)],_0xf9e56);}registerDeclarativeService(a90_0x4b1ab2(0x1e8),initDefinitions,{'defaultCommand':a90_0x4b1ab2(0x1c9),'isSingleCommand':!![]}),registerDeclarativeService(a90_0x4b1ab2(0x1f8),projectDefinitions),registerDeclarativeService('App\x20Management',appDefinitions),registerDeclarativeService('Run\x20Scripts',[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a90_0x4b1ab2(0x1f1)]-0x1];last[a90_0x4b1ab2(0x1fa)]=[{'command':'<script>','description':a90_0x4b1ab2(0x1f3),'tag':''}];}registerDeclarativeService(a90_0x4b1ab2(0x1ce),authDefinitions,{'defaultCommand':a90_0x4b1ab2(0x1f2)}),registerDeclarativeService(a90_0x4b1ab2(0x1e1),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x4b1ab2(0x1d5),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x4b1ab2(0x1e2),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x4b1ab2(0x1ea),configDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1cb),apiDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1f0),menuDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1dd),dbDefinitions),registerDeclarativeService('Dataset\x20&\x20Operations',datasetDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1d8),bffDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1e3),sqlDefinitions),registerDeclarativeService('Code\x20Generation',codegenDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1ee),skillDefinitions),registerDeclarativeService(a90_0x4b1ab2(0x1d6),logsDefinitions,{'defaultCommand':a90_0x4b1ab2(0x1f5)});export const deprecatedAliases={'create':{'service':a90_0x4b1ab2(0x1f4),'command':a90_0x4b1ab2(0x1e0)},'start':{'service':a90_0x4b1ab2(0x1c9),'command':a90_0x4b1ab2(0x1c8)},'build':{'service':a90_0x4b1ab2(0x1c9),'command':a90_0x4b1ab2(0x1dc)},'preview':{'service':'run','command':a90_0x4b1ab2(0x1f7)},'logout':{'service':'auth','command':a90_0x4b1ab2(0x1e9)},'skills':{'service':a90_0x4b1ab2(0x1cc),'command':a90_0x4b1ab2(0x1d7)}};export function findDefinition(_0x56594c,_0x41947d){const _0x31b47b=a90_0x4b1ab2;return definitions[_0x31b47b(0x1df)](_0x56594c+':'+_0x41947d);}export function isKnownService(_0x32ce03){const _0x156a0c=a90_0x4b1ab2;return serviceByName[_0x156a0c(0x1da)](_0x32ce03);}export function isDeclarativeService(_0x436bae){const _0x59b70b=a90_0x4b1ab2;return serviceGroups[_0x59b70b(0x1da)](_0x436bae)||serviceByName[_0x59b70b(0x1df)](_0x436bae)?.[_0x59b70b(0x1d2)]!==undefined;}export function getServiceEntry(_0x268eef){const _0x467e9b=a90_0x4b1ab2;return serviceByName[_0x467e9b(0x1df)](_0x268eef);}export function getLegacyHandler(_0x45ef7b,_0x50ec9b){return undefined;}export function getAllDefinitions(){const _0x141e89=a90_0x4b1ab2;return Array['from'](definitions[_0x141e89(0x1cd)]());}
1
+ const a90_0x8d63fe=a90_0x5e96;(function(_0x130cc5,_0x1a01b9){const _0x4232ad=a90_0x5e96,_0x40ba80=_0x130cc5();while(!![]){try{const _0x1ae2f8=-parseInt(_0x4232ad(0x1da))/0x1+-parseInt(_0x4232ad(0x1db))/0x2*(parseInt(_0x4232ad(0x1eb))/0x3)+parseInt(_0x4232ad(0x1d2))/0x4+-parseInt(_0x4232ad(0x1e9))/0x5+parseInt(_0x4232ad(0x1e4))/0x6+-parseInt(_0x4232ad(0x1c2))/0x7*(-parseInt(_0x4232ad(0x1d7))/0x8)+parseInt(_0x4232ad(0x1e2))/0x9;if(_0x1ae2f8===_0x1a01b9)break;else _0x40ba80['push'](_0x40ba80['shift']());}catch(_0x1de360){_0x40ba80['push'](_0x40ba80['shift']());}}}(a90_0xdee6,0x9e737));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dbDefinitions}from'../commands/db/index.js';import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';import{appDefinitions}from'../commands/app/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';function a90_0xdee6(){const _0xa6c000=['<script>','write','description','Menu','build','Dataset\x20&\x20Operations','Skills','defaultCommand','Authentication','Code\x20Generation','Schema','Configuration','3698356OSowhf','Run\x20Scripts','\x20\x20[high-risk-write]','BFF\x20Scripts','Database\x20Connections','888oRsLmr','\x20\x20[write]','API','370861tFtxgM','970czUwLD','create','SQL\x20Queries','from','Diagnostics','length','risk','3205953MUTHrJ','install','6358416AWGLOd','get','wildcardDef','service','Project','4163290BJIkRA','command','4479GEJypH','login','values','project','logout','has','preview','show','run','14889TRxKtk','set','App\x20Management','push'];a90_0xdee6=function(){return _0xa6c000;};return a90_0xdee6();}import{schemaDefinition}from'../commands/schema.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x4645ee){const _0x10e5b2=a90_0x5e96;for(const _0x2c3710 of _0x4645ee){definitions['set'](_0x2c3710[_0x10e5b2(0x1e7)]+':'+_0x2c3710[_0x10e5b2(0x1ea)],_0x2c3710);let _0x290bab=serviceGroups[_0x10e5b2(0x1e5)](_0x2c3710[_0x10e5b2(0x1e7)]);!_0x290bab&&(_0x290bab=[],serviceGroups['set'](_0x2c3710[_0x10e5b2(0x1e7)],_0x290bab)),_0x290bab[_0x10e5b2(0x1c5)](_0x2c3710);}}function registerDeclarativeService(_0xdfe335,_0x556e12,_0x3840e6){const _0x9e0f95=a90_0x5e96;registerDefinitions(_0x556e12);_0x3840e6?.[_0x9e0f95(0x1e6)]&&registerDefinitions([_0x3840e6[_0x9e0f95(0x1e6)]]);const _0x4f4e9d=_0x427ce0=>_0x427ce0==='read'?'':_0x427ce0===_0x9e0f95(0x1c7)?_0x9e0f95(0x1d8):_0x9e0f95(0x1d4),_0x6e128c={'service':_0x556e12[0x0][_0x9e0f95(0x1e7)],'label':_0xdfe335,'commands':_0x556e12['map'](_0x392078=>({'command':_0x392078[_0x9e0f95(0x1ea)],'description':_0x392078[_0x9e0f95(0x1c8)],'tag':_0x4f4e9d(_0x392078[_0x9e0f95(0x1e1)])})),'declarative':!![],'defaultCommand':_0x3840e6?.[_0x9e0f95(0x1cd)]??(_0x3840e6?.['isSingleCommand']?_0x556e12[0x0][_0x9e0f95(0x1ea)]:undefined),'wildcardDef':_0x3840e6?.[_0x9e0f95(0x1e6)],'isSingleCommand':_0x3840e6?.['isSingleCommand']};serviceRegistry[_0x9e0f95(0x1c5)](_0x6e128c),serviceByName[_0x9e0f95(0x1c3)](_0x6e128c['service'],_0x6e128c);}registerDeclarativeService('Quick\x20Start',initDefinitions,{'defaultCommand':a90_0x8d63fe(0x1c1),'isSingleCommand':!![]}),registerDeclarativeService(a90_0x8d63fe(0x1e8),projectDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1c4),appDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1d3),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a90_0x8d63fe(0x1e0)]-0x1];last['commands']=[{'command':a90_0x8d63fe(0x1c6),'description':'Run\x20any\x20package.json\x20script','tag':''}];}registerDeclarativeService(a90_0x8d63fe(0x1ce),authDefinitions,{'defaultCommand':a90_0x8d63fe(0x1ec)}),registerDeclarativeService('Self\x20Update',[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x8d63fe(0x1df),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x8d63fe(0x1d0),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a90_0x8d63fe(0x1d1),configDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1d9),apiDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1c9),menuDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1d6),dbDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1cb),datasetDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1d5),bffDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1dd),sqlDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1cf),codegenDefinitions),registerDeclarativeService(a90_0x8d63fe(0x1cc),skillDefinitions),registerDeclarativeService('Logs',logsDefinitions,{'defaultCommand':a90_0x8d63fe(0x1c0)});export const deprecatedAliases={'create':{'service':a90_0x8d63fe(0x1bc),'command':a90_0x8d63fe(0x1dc)},'start':{'service':'run','command':'start'},'build':{'service':a90_0x8d63fe(0x1c1),'command':a90_0x8d63fe(0x1ca)},'preview':{'service':a90_0x8d63fe(0x1c1),'command':a90_0x8d63fe(0x1bf)},'logout':{'service':'auth','command':a90_0x8d63fe(0x1bd)},'skills':{'service':'skill','command':a90_0x8d63fe(0x1e3)}};function a90_0x5e96(_0x496f68,_0x5ee3d7){_0x496f68=_0x496f68-0x1bb;const _0xdee6c6=a90_0xdee6();let _0x5e9673=_0xdee6c6[_0x496f68];return _0x5e9673;}export function findDefinition(_0x3518e5,_0x26ca35){const _0x33cd94=a90_0x8d63fe;return definitions[_0x33cd94(0x1e5)](_0x3518e5+':'+_0x26ca35);}export function isKnownService(_0x59464e){const _0x1b023d=a90_0x8d63fe;return serviceByName[_0x1b023d(0x1be)](_0x59464e);}export function isDeclarativeService(_0x544634){const _0x51083c=a90_0x8d63fe;return serviceGroups[_0x51083c(0x1be)](_0x544634)||serviceByName['get'](_0x544634)?.[_0x51083c(0x1e6)]!==undefined;}export function getServiceEntry(_0x534d0e){return serviceByName['get'](_0x534d0e);}export function getLegacyHandler(_0x9c008c,_0x2a6133){return undefined;}export function getAllDefinitions(){const _0x483929=a90_0x8d63fe;return Array[_0x483929(0x1de)](definitions[_0x483929(0x1bb)]());}
@@ -1 +1 @@
1
- const a91_0xa1cd89=a91_0x2fe5;(function(_0x3ba1d7,_0x33ebc1){const _0x22e7ba=a91_0x2fe5,_0x850661=_0x3ba1d7();while(!![]){try{const _0x24df20=parseInt(_0x22e7ba(0x1a6))/0x1+-parseInt(_0x22e7ba(0x1b2))/0x2+parseInt(_0x22e7ba(0x1b1))/0x3+-parseInt(_0x22e7ba(0x193))/0x4+parseInt(_0x22e7ba(0x19b))/0x5*(-parseInt(_0x22e7ba(0x1a4))/0x6)+parseInt(_0x22e7ba(0x1b0))/0x7*(parseInt(_0x22e7ba(0x1c2))/0x8)+parseInt(_0x22e7ba(0x1a9))/0x9;if(_0x24df20===_0x33ebc1)break;else _0x850661['push'](_0x850661['shift']());}catch(_0x5a0a99){_0x850661['push'](_0x850661['shift']());}}}(a91_0x5168,0x70d0b));import{readFileSync,existsSync}from'node:fs';import{CLI_BIN_NAME}from'../../constant/cli.js';import{resolve,delimiter,join}from'node:path';import{spawn}from'node:child_process';import{CliErrors}from'../../errors.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../../utils/check-sdk-version.js';function a91_0x5168(){const _0x5a3b4b=['\x22\x20not\x20found\x20in\x20package.json.','Script\x20\x22','inherit','\x20\x20AVAILABLE\x20SCRIPTS\x20\x20(current\x20project)','padEnd','error','push','vite\x20build\x20--watch\x20exited\x20with\x20code\x20','cwd','40OpBODe','utf-8','Script\x20name\x20defined\x20in\x20package.json','run','\x20\x20\x20\x20','\x20run\x20start','needsUpgrade','Available:\x20','\x20run\x20<script>\x0a','yarn','\x20\x20EXAMPLES','No\x20scripts\x20defined\x20in\x20package.json.','scripts','yarn.lock','\x20run\x20preview\x20--watch\x20\x20\x20#\x20parallel\x20build\x20--watch\x20+\x20preview','script','bun.lock','1167500KIjXkd','npm','\x20run\x20build','start','vite','read','.bin','args','19455SKfbab','node_modules','\x0a\x20\x20Available\x20scripts:\x0a','\x20run\x20','has','keys','boolean','entries','(none)','1266REdzNI','pnpm-lock.yaml','722698NfnDIu','close','validation','4390272RVIfuS','vite\x20preview\x20exited\x20with\x20code\x20','bun','build','bool','join','log','938581zTSmXO','324441RjCGwM','828202kfKkDm','\x20exited\x20with\x20code\x20','watch','length','all','parse','map'];a91_0x5168=function(){return _0x5a3b4b;};return a91_0x5168();}import{checkCliVersion,printCliUpgradeWarning}from'../../utils/cli-version-check.js';const VERSION_CHECK_SCRIPTS=new Set([a91_0xa1cd89(0x196),'dev']);function readPackageScripts(_0x3359fa){const _0x15b6b4=a91_0xa1cd89,_0x1925d6=resolve(_0x3359fa,'package.json');if(!existsSync(_0x1925d6))return null;try{const _0x58cd33=JSON[_0x15b6b4(0x1b7)](readFileSync(_0x1925d6,_0x15b6b4(0x1c3)));return _0x58cd33[_0x15b6b4(0x1ce)]??{};}catch{return null;}}function detectPackageManager(_0x482a77){const _0x17b352=a91_0xa1cd89;if(existsSync(resolve(_0x482a77,'bun.lockb'))||existsSync(resolve(_0x482a77,_0x17b352(0x192))))return _0x17b352(0x1ab);if(existsSync(resolve(_0x482a77,_0x17b352(0x1a5))))return'pnpm';if(existsSync(resolve(_0x482a77,_0x17b352(0x1cf))))return _0x17b352(0x1cb);return _0x17b352(0x194);}async function versionCheck(_0x397b97){const _0x578700=a91_0xa1cd89,_0x1a6024=await checkCliVersion();if(_0x1a6024['needsUpgrade'])printCliUpgradeWarning(_0x1a6024);const _0x9f4067=await checkSdkVersion(_0x397b97);if(_0x9f4067[_0x578700(0x1c8)])printSdkUpgradeWarning(_0x9f4067);}function spawnScript(_0xb44cca,_0x4bc794,_0x578524,_0xe60223){return new Promise((_0x292a28,_0xc83dc)=>{const _0x481f58=a91_0x2fe5,_0x596d6f=[_0x481f58(0x1c5),_0x4bc794,..._0x578524],_0x2ae2da=spawn(_0xb44cca,_0x596d6f,{'cwd':_0xe60223,'stdio':_0x481f58(0x1bb),'shell':!![],'env':{...process.env,'PATH':''+join(_0xe60223,_0x481f58(0x19c),'.bin')+delimiter+process.env.PATH}});_0x2ae2da['on'](_0x481f58(0x1a7),_0x142521=>{const _0x43ecf4=_0x481f58;if(_0x142521===0x0||_0x142521===null)_0x292a28();else _0xc83dc(new Error(_0xb44cca+_0x43ecf4(0x19e)+_0x4bc794+_0x43ecf4(0x1b3)+_0x142521));}),_0x2ae2da['on'](_0x481f58(0x1be),_0xc83dc);});}function a91_0x2fe5(_0x1b876f,_0x469c74){_0x1b876f=_0x1b876f-0x191;const _0x516858=a91_0x5168();let _0x2fe59c=_0x516858[_0x1b876f];return _0x2fe59c;}function spawnViteBuildWatch(_0x411b2e){return new Promise((_0x3e556b,_0x15b5ed)=>{const _0x3b3575=a91_0x2fe5,_0x1c753f=spawn(_0x3b3575(0x197),[_0x3b3575(0x1ac),'--watch'],{'cwd':_0x411b2e,'stdio':_0x3b3575(0x1bb),'shell':!![],'env':{...process.env,'PATH':''+join(_0x411b2e,_0x3b3575(0x19c),_0x3b3575(0x199))+delimiter+process.env.PATH}});_0x1c753f['on']('close',_0xd459dd=>{const _0x44263d=_0x3b3575;if(_0xd459dd===0x0||_0xd459dd===null)_0x3e556b();else _0x15b5ed(new Error(_0x44263d(0x1c0)+_0xd459dd));}),_0x1c753f['on'](_0x3b3575(0x1be),_0x15b5ed);});}function spawnVitePreview(_0x1e1c05){return new Promise((_0x37f737,_0x5b7d2d)=>{const _0xd4877f=a91_0x2fe5,_0x20dd6c=spawn(_0xd4877f(0x197),['preview'],{'cwd':_0x1e1c05,'stdio':_0xd4877f(0x1bb),'shell':!![],'env':{...process.env,'PATH':''+join(_0x1e1c05,_0xd4877f(0x19c),_0xd4877f(0x199))+delimiter+process.env.PATH}});_0x20dd6c['on']('close',_0x5ddc07=>{const _0x5d2346=_0xd4877f;if(_0x5ddc07===0x0||_0x5ddc07===null)_0x37f737();else _0x5b7d2d(new Error(_0x5d2346(0x1aa)+_0x5ddc07));}),_0x20dd6c['on'](_0xd4877f(0x1be),_0x5b7d2d);});}const runFlags=[{'name':a91_0xa1cd89(0x1b4),'type':a91_0xa1cd89(0x1a1),'description':'Enable\x20watch\x20mode\x20for\x20preview','default':![]}];export const runDefinition={'service':'run','command':a91_0xa1cd89(0x1c5),'description':'Run\x20a\x20package.json\x20script','risk':a91_0xa1cd89(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a91_0xa1cd89(0x191),'description':a91_0xa1cd89(0x1c4),'required':![]}],'flags':runFlags,'helpExtra':()=>{const _0x3f0723=a91_0xa1cd89,_0x52c50d=readPackageScripts(process[_0x3f0723(0x1c1)]()),_0x57295e=[];if(_0x52c50d&&Object[_0x3f0723(0x1a0)](_0x52c50d)[_0x3f0723(0x1b5)]>0x0){const _0x2eefae=Object[_0x3f0723(0x1a0)](_0x52c50d),_0x3d93b6=Math['max'](..._0x2eefae[_0x3f0723(0x1b8)](_0x122c2a=>_0x122c2a[_0x3f0723(0x1b5)]));_0x57295e[_0x3f0723(0x1bf)](_0x3f0723(0x1bc));for(const [_0x15885d,_0x1e9ec2]of Object[_0x3f0723(0x1a2)](_0x52c50d)){_0x57295e['push'](_0x3f0723(0x1c6)+CLI_BIN_NAME+_0x3f0723(0x19e)+_0x15885d[_0x3f0723(0x1bd)](_0x3d93b6+0x2)+'#\x20'+_0x1e9ec2);}}else _0x57295e[_0x3f0723(0x1bf)](_0x3f0723(0x1cc)),_0x57295e[_0x3f0723(0x1bf)](_0x3f0723(0x1c6)+CLI_BIN_NAME+_0x3f0723(0x1c7)),_0x57295e['push'](_0x3f0723(0x1c6)+CLI_BIN_NAME+_0x3f0723(0x195)),_0x57295e['push'](_0x3f0723(0x1c6)+CLI_BIN_NAME+'\x20run\x20preview'),_0x57295e['push'](_0x3f0723(0x1c6)+CLI_BIN_NAME+_0x3f0723(0x1d0));return _0x57295e[_0x3f0723(0x1ae)]('\x0a');},async 'execute'(_0x590f49){const _0xa62464=a91_0xa1cd89,_0x35dff6=process[_0xa62464(0x1c1)](),_0xcc7dc8=_0x590f49['args'][0x0],_0x1584cf=_0x590f49[_0xa62464(0x19a)]['slice'](0x1),_0x3fef4a=readPackageScripts(_0x35dff6);if(!_0x3fef4a)throw CliErrors[_0xa62464(0x1a8)]('No\x20package.json\x20found\x20in\x20current\x20directory.');if(!_0xcc7dc8){const _0xd3811d=Object[_0xa62464(0x1a0)](_0x3fef4a);if(_0xd3811d[_0xa62464(0x1b5)]===0x0)console[_0xa62464(0x1af)](_0xa62464(0x1cd));else{console[_0xa62464(0x1af)](_0xa62464(0x19d));const _0x1c2fc6=Math['max'](..._0xd3811d[_0xa62464(0x1b8)](_0x5847c8=>_0x5847c8[_0xa62464(0x1b5)]));for(const [_0x249604,_0x2ba7fa]of Object[_0xa62464(0x1a2)](_0x3fef4a)){console['log']('\x20\x20\x20\x20'+_0x249604[_0xa62464(0x1bd)](_0x1c2fc6+0x2)+_0x2ba7fa);}console[_0xa62464(0x1af)]('\x0a\x20\x20Usage:\x20'+CLI_BIN_NAME+_0xa62464(0x1ca));}return{'ok':!![]};}if(!_0x3fef4a[_0xcc7dc8])throw CliErrors[_0xa62464(0x1a8)](_0xa62464(0x1ba)+_0xcc7dc8+_0xa62464(0x1b9),_0xa62464(0x1c9)+(Object[_0xa62464(0x1a0)](_0x3fef4a)[_0xa62464(0x1ae)](',\x20')||_0xa62464(0x1a3)));const _0x20c07=detectPackageManager(_0x35dff6);VERSION_CHECK_SCRIPTS[_0xa62464(0x19f)](_0xcc7dc8)&&await versionCheck(_0x35dff6);if(_0xcc7dc8==='preview'&&_0x590f49[_0xa62464(0x1ad)](_0xa62464(0x1b4)))return await Promise[_0xa62464(0x1b6)]([spawnViteBuildWatch(_0x35dff6),spawnVitePreview(_0x35dff6)]),{'ok':!![]};return await spawnScript(_0x20c07,_0xcc7dc8,_0x1584cf,_0x35dff6),{'ok':!![]};}};
1
+ const a91_0x3d1933=a91_0x8f53;function a91_0x8f53(_0x379e6a,_0x1fc777){_0x379e6a=_0x379e6a-0x159;const _0x5575b9=a91_0x5575();let _0x8f5358=_0x5575b9[_0x379e6a];return _0x8f5358;}(function(_0x34860b,_0x502fa8){const _0x495caa=a91_0x8f53,_0x4f1d31=_0x34860b();while(!![]){try{const _0xcf7d18=parseInt(_0x495caa(0x172))/0x1*(-parseInt(_0x495caa(0x16b))/0x2)+parseInt(_0x495caa(0x15f))/0x3+parseInt(_0x495caa(0x175))/0x4+-parseInt(_0x495caa(0x162))/0x5*(-parseInt(_0x495caa(0x177))/0x6)+-parseInt(_0x495caa(0x17c))/0x7+-parseInt(_0x495caa(0x196))/0x8+parseInt(_0x495caa(0x178))/0x9;if(_0xcf7d18===_0x502fa8)break;else _0x4f1d31['push'](_0x4f1d31['shift']());}catch(_0x5b6b57){_0x4f1d31['push'](_0x4f1d31['shift']());}}}(a91_0x5575,0xdc8b8));import{readFileSync,existsSync}from'node:fs';import{CLI_BIN_NAME}from'../../constant/cli.js';import{resolve,delimiter,join}from'node:path';import{spawn}from'node:child_process';import{CliErrors}from'../../errors.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../../utils/cli-version-check.js';const VERSION_CHECK_SCRIPTS=new Set(['start','dev']);function readPackageScripts(_0x117067){const _0x1e840d=a91_0x8f53,_0x3f9ffe=resolve(_0x117067,'package.json');if(!existsSync(_0x3f9ffe))return null;try{const _0x27d425=JSON[_0x1e840d(0x182)](readFileSync(_0x3f9ffe,_0x1e840d(0x181)));return _0x27d425[_0x1e840d(0x191)]??{};}catch{return null;}}function detectPackageManager(_0x4c5658){const _0x340f6d=a91_0x8f53;if(existsSync(resolve(_0x4c5658,_0x340f6d(0x176)))||existsSync(resolve(_0x4c5658,'bun.lock')))return _0x340f6d(0x190);if(existsSync(resolve(_0x4c5658,_0x340f6d(0x184))))return _0x340f6d(0x17f);if(existsSync(resolve(_0x4c5658,_0x340f6d(0x17d))))return _0x340f6d(0x18d);return _0x340f6d(0x194);}async function versionCheck(_0x3673f2){const _0x5b344a=a91_0x8f53,_0x43844d=await checkCliVersion();if(_0x43844d[_0x5b344a(0x186)])printCliUpgradeWarning(_0x43844d);const _0x5082fa=await checkSdkVersion(_0x3673f2);if(_0x5082fa[_0x5b344a(0x186)])printSdkUpgradeWarning(_0x5082fa);}function spawnScript(_0x101033,_0xe8621f,_0x30c78f,_0x3854f1){return new Promise((_0x36ff30,_0x78b810)=>{const _0x43de3a=a91_0x8f53,_0x4e4e8c=[_0x43de3a(0x174),_0xe8621f,..._0x30c78f],_0x550118=spawn(_0x101033,_0x4e4e8c,{'cwd':_0x3854f1,'stdio':_0x43de3a(0x16a),'shell':!![],'env':{...process.env,'PATH':''+join(_0x3854f1,_0x43de3a(0x165),_0x43de3a(0x167))+delimiter+process.env.PATH}});_0x550118['on'](_0x43de3a(0x163),_0xde6937=>{const _0x3c65b7=_0x43de3a;if(_0xde6937===0x0||_0xde6937===null)_0x36ff30();else _0x78b810(new Error(_0x101033+_0x3c65b7(0x183)+_0xe8621f+_0x3c65b7(0x15c)+_0xde6937));}),_0x550118['on'](_0x43de3a(0x171),_0x78b810);});}function a91_0x5575(){const _0x148383=['watch','4117551nEQVxr','entries','push','20WAyKmR','close','validation','node_modules','length','.bin','No\x20package.json\x20found\x20in\x20current\x20directory.','args','inherit','1644494ZLZhIP','slice','keys','log','Run\x20a\x20package.json\x20script','preview','error','1QrujSV','Enable\x20watch\x20mode\x20for\x20preview','run','1313844UyakHF','bun.lockb','2123622oayJNf','10306611XnDVlg','script','max','map','5198263scjCkw','yarn.lock','Script\x20name\x20defined\x20in\x20package.json','pnpm','boolean','utf-8','parse','\x20run\x20','pnpm-lock.yaml','\x0a\x20\x20Available\x20scripts:\x0a','needsUpgrade','(none)','\x20\x20\x20\x20','padEnd','bool','Available:\x20','\x20run\x20preview','yarn','\x0a\x20\x20Usage:\x20','join','bun','scripts','vite','\x20\x20AVAILABLE\x20SCRIPTS\x20\x20(current\x20project)','npm','Script\x20\x22','14349576IxUJqN','No\x20scripts\x20defined\x20in\x20package.json.','all','vite\x20build\x20--watch\x20exited\x20with\x20code\x20','--watch','\x20exited\x20with\x20code\x20','\x20\x20EXAMPLES'];a91_0x5575=function(){return _0x148383;};return a91_0x5575();}function spawnViteBuildWatch(_0x24476a){return new Promise((_0x27b903,_0x2c5d0a)=>{const _0x474705=a91_0x8f53,_0x20ecb5=spawn(_0x474705(0x192),['build',_0x474705(0x15b)],{'cwd':_0x24476a,'stdio':_0x474705(0x16a),'shell':!![],'env':{...process.env,'PATH':''+join(_0x24476a,_0x474705(0x165),_0x474705(0x167))+delimiter+process.env.PATH}});_0x20ecb5['on'](_0x474705(0x163),_0x423c26=>{const _0x6f6387=_0x474705;if(_0x423c26===0x0||_0x423c26===null)_0x27b903();else _0x2c5d0a(new Error(_0x6f6387(0x15a)+_0x423c26));}),_0x20ecb5['on'](_0x474705(0x171),_0x2c5d0a);});}function spawnVitePreview(_0x17e9ac){return new Promise((_0x28565c,_0x24c8fc)=>{const _0x204e05=a91_0x8f53,_0x18bb4b=spawn('vite',[_0x204e05(0x170)],{'cwd':_0x17e9ac,'stdio':_0x204e05(0x16a),'shell':!![],'env':{...process.env,'PATH':''+join(_0x17e9ac,'node_modules','.bin')+delimiter+process.env.PATH}});_0x18bb4b['on'](_0x204e05(0x163),_0x4f0a7c=>{if(_0x4f0a7c===0x0||_0x4f0a7c===null)_0x28565c();else _0x24c8fc(new Error('vite\x20preview\x20exited\x20with\x20code\x20'+_0x4f0a7c));}),_0x18bb4b['on'](_0x204e05(0x171),_0x24c8fc);});}const runFlags=[{'name':a91_0x3d1933(0x15e),'type':a91_0x3d1933(0x180),'description':a91_0x3d1933(0x173),'default':![]}];export const runDefinition={'service':a91_0x3d1933(0x174),'command':'run','description':a91_0x3d1933(0x16f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a91_0x3d1933(0x179),'description':a91_0x3d1933(0x17e),'required':![]}],'flags':runFlags,'helpExtra':()=>{const _0x1461b2=a91_0x3d1933,_0x4e1479=readPackageScripts(process['cwd']()),_0x1d2fa2=[];if(_0x4e1479&&Object[_0x1461b2(0x16d)](_0x4e1479)[_0x1461b2(0x166)]>0x0){const _0x3fa3ba=Object['keys'](_0x4e1479),_0x5f20be=Math['max'](..._0x3fa3ba[_0x1461b2(0x17b)](_0x59ecac=>_0x59ecac[_0x1461b2(0x166)]));_0x1d2fa2['push'](_0x1461b2(0x193));for(const [_0x1c91d9,_0x5c085e]of Object[_0x1461b2(0x160)](_0x4e1479)){_0x1d2fa2['push']('\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20run\x20'+_0x1c91d9[_0x1461b2(0x189)](_0x5f20be+0x2)+'#\x20'+_0x5c085e);}}else _0x1d2fa2['push'](_0x1461b2(0x15d)),_0x1d2fa2['push'](_0x1461b2(0x188)+CLI_BIN_NAME+'\x20run\x20start'),_0x1d2fa2[_0x1461b2(0x161)](_0x1461b2(0x188)+CLI_BIN_NAME+'\x20run\x20build'),_0x1d2fa2['push']('\x20\x20\x20\x20'+CLI_BIN_NAME+_0x1461b2(0x18c)),_0x1d2fa2['push'](_0x1461b2(0x188)+CLI_BIN_NAME+'\x20run\x20preview\x20--watch\x20\x20\x20#\x20parallel\x20build\x20--watch\x20+\x20preview');return _0x1d2fa2['join']('\x0a');},async 'execute'(_0x8d0143){const _0x1b735e=a91_0x3d1933,_0x50b587=process['cwd'](),_0x1a47e4=_0x8d0143[_0x1b735e(0x169)][0x0],_0x206383=_0x8d0143[_0x1b735e(0x169)][_0x1b735e(0x16c)](0x1),_0x31a86b=readPackageScripts(_0x50b587);if(!_0x31a86b)throw CliErrors[_0x1b735e(0x164)](_0x1b735e(0x168));if(!_0x1a47e4){const _0x411f4a=Object[_0x1b735e(0x16d)](_0x31a86b);if(_0x411f4a[_0x1b735e(0x166)]===0x0)console[_0x1b735e(0x16e)](_0x1b735e(0x197));else{console[_0x1b735e(0x16e)](_0x1b735e(0x185));const _0x428931=Math[_0x1b735e(0x17a)](..._0x411f4a[_0x1b735e(0x17b)](_0x58ef38=>_0x58ef38[_0x1b735e(0x166)]));for(const [_0x2da530,_0x5ebb23]of Object[_0x1b735e(0x160)](_0x31a86b)){console[_0x1b735e(0x16e)](_0x1b735e(0x188)+_0x2da530['padEnd'](_0x428931+0x2)+_0x5ebb23);}console[_0x1b735e(0x16e)](_0x1b735e(0x18e)+CLI_BIN_NAME+'\x20run\x20<script>\x0a');}return{'ok':!![]};}if(!_0x31a86b[_0x1a47e4])throw CliErrors[_0x1b735e(0x164)](_0x1b735e(0x195)+_0x1a47e4+'\x22\x20not\x20found\x20in\x20package.json.',_0x1b735e(0x18b)+(Object['keys'](_0x31a86b)[_0x1b735e(0x18f)](',\x20')||_0x1b735e(0x187)));const _0xe7c224=detectPackageManager(_0x50b587);VERSION_CHECK_SCRIPTS['has'](_0x1a47e4)&&await versionCheck(_0x50b587);if(_0x1a47e4==='preview'&&_0x8d0143[_0x1b735e(0x18a)](_0x1b735e(0x15e)))return await Promise[_0x1b735e(0x159)]([spawnViteBuildWatch(_0x50b587),spawnVitePreview(_0x50b587)]),{'ok':!![]};return await spawnScript(_0xe7c224,_0x1a47e4,_0x206383,_0x50b587),{'ok':!![]};}};
@@ -1 +1 @@
1
- function a92_0x39f6(_0x38cc16,_0x5dd1cc){_0x38cc16=_0x38cc16-0xfc;const _0x2dbee6=a92_0x2dbe();let _0x39f6c5=_0x2dbee6[_0x38cc16];return _0x39f6c5;}function a92_0x2dbe(){const _0x340c33=['14018TvjuQL','39942amAvjk','read','Export\x20machine-readable\x20command\x20schema\x20(JSON)','schema','4033854QUAjtI','24515vpKuVJ','654789lfDWCI','309594nXmCQq','378eqEEKy','896008ZZrjzM','180TWsNxd'];a92_0x2dbe=function(){return _0x340c33;};return a92_0x2dbe();}const a92_0x515f5e=a92_0x39f6;(function(_0x14af31,_0x100cff){const _0x3a186b=a92_0x39f6,_0x248b8a=_0x14af31();while(!![]){try{const _0x31e0b6=-parseInt(_0x3a186b(0x103))/0x1+parseInt(_0x3a186b(0xfc))/0x2+parseInt(_0x3a186b(0x104))/0x3+-parseInt(_0x3a186b(0x107))/0x4*(-parseInt(_0x3a186b(0x102))/0x5)+parseInt(_0x3a186b(0xfd))/0x6*(parseInt(_0x3a186b(0x105))/0x7)+parseInt(_0x3a186b(0x106))/0x8+parseInt(_0x3a186b(0x101))/0x9;if(_0x31e0b6===_0x100cff)break;else _0x248b8a['push'](_0x248b8a['shift']());}catch(_0x762b47){_0x248b8a['push'](_0x248b8a['shift']());}}}(a92_0x2dbe,0x9171a));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x3096a9){const _0x10b882=await buildSchemaPayload();return{'ok':!![],'data':_0x10b882};}export const schemaDefinition={'service':a92_0x515f5e(0x100),'command':'export','description':a92_0x515f5e(0xff),'risk':a92_0x515f5e(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'defaultOutputFormat':'json','flags':[],'execute':execute};
1
+ function a92_0x3aa3(){const _0x56bfd0=['12945slVADz','2625912hAZDGr','588JtVyMA','62MAhzXq','read','6577109MXRBLF','27bdaqkV','export','857115jYQRQe','2017224hZoAkW','24020100XNotZq','2280DYPAdW','Export\x20machine-readable\x20command\x20schema\x20(JSON)'];a92_0x3aa3=function(){return _0x56bfd0;};return a92_0x3aa3();}function a92_0x516e(_0x4f302b,_0x4e851b){_0x4f302b=_0x4f302b-0xd1;const _0x3aa36f=a92_0x3aa3();let _0x516e84=_0x3aa36f[_0x4f302b];return _0x516e84;}const a92_0xacebdf=a92_0x516e;(function(_0x58317a,_0x49154b){const _0x4ed44e=a92_0x516e,_0x2f72e2=_0x58317a();while(!![]){try{const _0x467804=-parseInt(_0x4ed44e(0xd6))/0x1*(-parseInt(_0x4ed44e(0xd9))/0x2)+parseInt(_0x4ed44e(0xd1))/0x3+-parseInt(_0x4ed44e(0xd2))/0x4+parseInt(_0x4ed44e(0xd4))/0x5*(-parseInt(_0x4ed44e(0xd8))/0x6)+-parseInt(_0x4ed44e(0xdb))/0x7+-parseInt(_0x4ed44e(0xd7))/0x8*(parseInt(_0x4ed44e(0xdc))/0x9)+parseInt(_0x4ed44e(0xd3))/0xa;if(_0x467804===_0x49154b)break;else _0x2f72e2['push'](_0x2f72e2['shift']());}catch(_0x59c525){_0x2f72e2['push'](_0x2f72e2['shift']());}}}(a92_0x3aa3,0x96520));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x32b646){const _0x113cb3=await buildSchemaPayload();return{'ok':!![],'data':_0x113cb3};}export const schemaDefinition={'service':'schema','command':a92_0xacebdf(0xdd),'description':a92_0xacebdf(0xd5),'risk':a92_0xacebdf(0xda),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'defaultOutputFormat':'json','flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a93_0x4c75(_0x572d6d,_0xb54fd8){_0x572d6d=_0x572d6d-0x10d;const _0x35d8b2=a93_0x35d8();let _0x4c75ef=_0x35d8b2[_0x572d6d];return _0x4c75ef;}const a93_0x301098=a93_0x4c75;(function(_0x4714ed,_0x2a969b){const _0x3e8c66=a93_0x4c75,_0x35a87b=_0x4714ed();while(!![]){try{const _0x50ecd8=parseInt(_0x3e8c66(0x11c))/0x1*(-parseInt(_0x3e8c66(0x119))/0x2)+parseInt(_0x3e8c66(0x115))/0x3*(-parseInt(_0x3e8c66(0x126))/0x4)+-parseInt(_0x3e8c66(0x117))/0x5*(parseInt(_0x3e8c66(0x10e))/0x6)+parseInt(_0x3e8c66(0x123))/0x7*(-parseInt(_0x3e8c66(0x111))/0x8)+parseInt(_0x3e8c66(0x122))/0x9*(parseInt(_0x3e8c66(0x10f))/0xa)+parseInt(_0x3e8c66(0x11a))/0xb+parseInt(_0x3e8c66(0x11e))/0xc;if(_0x50ecd8===_0x2a969b)break;else _0x35a87b['push'](_0x35a87b['shift']());}catch(_0x56ca32){_0x35a87b['push'](_0x35a87b['shift']());}}}(a93_0x35d8,0xb49ed));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a93_0x35d8(){const _0x177c0c=['unknown','19724184tYQYUU','lovrabet/rabetbase','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','Install\x20developer\x20skill\x20package','737946YnsyZp','2996lupjvd','skill','Check\x20network\x20connectivity\x20and\x20try\x20again.','3412kXNFth','\x20skill\x20installed','log','5579448LgHuWB','30LvPevA','install','17904FqkLEB','cwd','error','pipe','9WHMGee','skill-install','5uqdtQn','skipped','6bfSecX','13260731nsfnCn','../../skills/npx-skills-add.js','155011zBirUx'];a93_0x35d8=function(){return _0x177c0c;};return a93_0x35d8();}import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':a93_0x301098(0x124),'command':a93_0x301098(0x110),'description':a93_0x301098(0x121),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49c5c9){const _0x2d2a97=a93_0x301098;logger['setLogPath'](process[_0x2d2a97(0x112)]()),logger['info'](_0x2d2a97(0x116),'执行安装技能包命令(委托给\x20npx\x20skills\x20--global)');const {runNpxSkillsAddGlobal:_0x5cd1a3}=await import(_0x2d2a97(0x11b)),_0x255eb5=_0x49c5c9['nonInteractive']?_0x2d2a97(0x114):'inherit';console[_0x2d2a97(0x10d)]('Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global)...');const _0x553810=_0x5cd1a3(process['cwd'](),_0x2d2a97(0x11f),{'stdio':_0x255eb5});if(_0x553810[_0x2d2a97(0x118)])console[_0x2d2a97(0x10d)](_0x2d2a97(0x120));else{if(_0x553810['ok'])console[_0x2d2a97(0x10d)](CLI_BIN_NAME+_0x2d2a97(0x127));else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x553810[_0x2d2a97(0x113)]||_0x2d2a97(0x11d)),_0x2d2a97(0x125));}return{'ok':!![]};}}];
1
+ function a93_0x2d13(_0x4d3372,_0x5856e){_0x4d3372=_0x4d3372-0x1ab;const _0x34d974=a93_0x34d9();let _0x2d13f5=_0x34d974[_0x4d3372];return _0x2d13f5;}const a93_0x5129e3=a93_0x2d13;(function(_0x1ae2c1,_0x3086ee){const _0x2e0584=a93_0x2d13,_0x2498a4=_0x1ae2c1();while(!![]){try{const _0x2e560f=-parseInt(_0x2e0584(0x1b0))/0x1+parseInt(_0x2e0584(0x1bc))/0x2*(-parseInt(_0x2e0584(0x1b5))/0x3)+-parseInt(_0x2e0584(0x1c4))/0x4*(-parseInt(_0x2e0584(0x1be))/0x5)+-parseInt(_0x2e0584(0x1b8))/0x6+parseInt(_0x2e0584(0x1c1))/0x7*(-parseInt(_0x2e0584(0x1b4))/0x8)+parseInt(_0x2e0584(0x1b9))/0x9*(-parseInt(_0x2e0584(0x1ba))/0xa)+-parseInt(_0x2e0584(0x1bb))/0xb*(-parseInt(_0x2e0584(0x1c0))/0xc);if(_0x2e560f===_0x3086ee)break;else _0x2498a4['push'](_0x2498a4['shift']());}catch(_0xbe82b6){_0x2498a4['push'](_0x2498a4['shift']());}}}(a93_0x34d9,0xbcc8a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':'skill','command':a93_0x5129e3(0x1b3),'description':'Install\x20developer\x20skill\x20package','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2728a6){const _0x1aa973=a93_0x5129e3;logger[_0x1aa973(0x1b6)](process[_0x1aa973(0x1c5)]()),logger[_0x1aa973(0x1ab)](_0x1aa973(0x1b2),_0x1aa973(0x1ae));const {runNpxSkillsAddGlobal:_0x51d811}=await import(_0x1aa973(0x1c2)),_0x39469e=_0x2728a6[_0x1aa973(0x1ac)]?'pipe':'inherit';console[_0x1aa973(0x1c3)]('Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global)...');const _0x578e8a=_0x51d811(process[_0x1aa973(0x1c5)](),'lovrabet/rabetbase',{'stdio':_0x39469e});if(_0x578e8a[_0x1aa973(0x1bd)])console[_0x1aa973(0x1c3)](_0x1aa973(0x1bf));else{if(_0x578e8a['ok'])console[_0x1aa973(0x1c3)](CLI_BIN_NAME+_0x1aa973(0x1b7));else throw CliErrors[_0x1aa973(0x1b1)]('npx\x20skills\x20add\x20failed:\x20'+(_0x578e8a['error']||_0x1aa973(0x1ad)),_0x1aa973(0x1af));}return{'ok':!![]};}}];function a93_0x34d9(){const _0x464265=['install','1522336znhLEA','1470FlSPBJ','setLogPath','\x20skill\x20installed','6218250wFhqrT','13746141ryszce','10iHjggd','11IYGUer','5382KKgWME','skipped','411695MIKidy','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','75053868RaSIWp','28YElYqi','../../skills/npx-skills-add.js','log','4zNKiIA','cwd','info','nonInteractive','unknown','执行安装技能包命令(委托给\x20npx\x20skills\x20--global)','Check\x20network\x20connectivity\x20and\x20try\x20again.','920088vpqYAh','apiError','skill-install'];a93_0x34d9=function(){return _0x464265;};return a93_0x34d9();}
@@ -1 +1 @@
1
- function a94_0x26bd(_0x936f7f,_0x3d9de8){_0x936f7f=_0x936f7f-0x1e1;const _0x227846=a94_0x2278();let _0x26bd48=_0x227846[_0x936f7f];return _0x26bd48;}const a94_0x1da972=a94_0x26bd;(function(_0x176ca8,_0x1f3f4b){const _0x1b43f1=a94_0x26bd,_0xab966=_0x176ca8();while(!![]){try{const _0x49676d=-parseInt(_0x1b43f1(0x1ec))/0x1*(parseInt(_0x1b43f1(0x1e9))/0x2)+parseInt(_0x1b43f1(0x1f1))/0x3+parseInt(_0x1b43f1(0x1f2))/0x4*(parseInt(_0x1b43f1(0x1f4))/0x5)+-parseInt(_0x1b43f1(0x1e7))/0x6*(parseInt(_0x1b43f1(0x1f5))/0x7)+parseInt(_0x1b43f1(0x1e3))/0x8+-parseInt(_0x1b43f1(0x1e5))/0x9*(-parseInt(_0x1b43f1(0x1e6))/0xa)+parseInt(_0x1b43f1(0x1f7))/0xb;if(_0x49676d===_0x1f3f4b)break;else _0xab966['push'](_0xab966['shift']());}catch(_0x4e36ee){_0xab966['push'](_0xab966['shift']());}}}(a94_0x2278,0xd135b));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a94_0x2278(){const _0x1d7dac=['read','bool','659BOYGOA','sqlName','boolean','verbose','str','2514162XPJSaS','1916hugNvs','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','1115KfUYAq','202916LptLeW','dbId','135432TbRfda','sqlContent','appCode','sql','5881304uyoBFe','description','5783634LBiQHJ','10YJUxvs','66JwHqII','sqlCode','3518KHyWMo'];a94_0x2278=function(){return _0x1d7dac;};return a94_0x2278();}export const sqlDetail={'service':a94_0x1da972(0x1e2),'command':'detail','description':a94_0x1da972(0x1f3),'risk':a94_0x1da972(0x1ea),'flags':[SQLCODE_FLAG,{'name':a94_0x1da972(0x1ef),'type':a94_0x1da972(0x1ee),'description':'Return\x20full\x20raw\x20SQL\x20query\x20object'}],async 'execute'(_0x1f441b){const _0x4bcd95=a94_0x1da972,_0x43eb54=await getSqlQueryInfo(_0x1f441b[_0x4bcd95(0x1e1)],_0x1f441b[_0x4bcd95(0x1f0)]('sqlcode')),_0x22328d=_0x1f441b[_0x4bcd95(0x1eb)]('verbose');if(_0x22328d)return{'ok':!![],'data':_0x43eb54};const _0x396ba1=_0x43eb54['dbId']?await getDbName(_0x1f441b[_0x4bcd95(0x1e1)],_0x43eb54[_0x4bcd95(0x1f6)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x43eb54[_0x4bcd95(0x1e8)],'sqlName':_0x43eb54[_0x4bcd95(0x1ed)],'db':_0x396ba1?_0x396ba1+'\x20('+_0x43eb54[_0x4bcd95(0x1f6)]+')':_0x43eb54['dbId']??'','description':_0x43eb54[_0x4bcd95(0x1e4)]??'','sqlContent':_0x43eb54[_0x4bcd95(0x1f8)]??''}};}};
1
+ const a94_0x256bfb=a94_0x2e1b;(function(_0x3a6ce7,_0x3bb31d){const _0xa59d7f=a94_0x2e1b,_0x3184bf=_0x3a6ce7();while(!![]){try{const _0x3f3170=-parseInt(_0xa59d7f(0x68))/0x1*(-parseInt(_0xa59d7f(0x67))/0x2)+parseInt(_0xa59d7f(0x75))/0x3*(parseInt(_0xa59d7f(0x77))/0x4)+-parseInt(_0xa59d7f(0x7b))/0x5*(-parseInt(_0xa59d7f(0x74))/0x6)+parseInt(_0xa59d7f(0x78))/0x7+parseInt(_0xa59d7f(0x7a))/0x8+-parseInt(_0xa59d7f(0x6d))/0x9*(-parseInt(_0xa59d7f(0x79))/0xa)+-parseInt(_0xa59d7f(0x71))/0xb;if(_0x3f3170===_0x3bb31d)break;else _0x3184bf['push'](_0x3184bf['shift']());}catch(_0x4b5d64){_0x3184bf['push'](_0x3184bf['shift']());}}}(a94_0x455a,0x70a3c));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a94_0x2e1b(_0x49e072,_0x50669d){_0x49e072=_0x49e072-0x67;const _0x455ad5=a94_0x455a();let _0x2e1b28=_0x455ad5[_0x49e072];return _0x2e1b28;}function a94_0x455a(){const _0x31f314=['4AdqAoW','5201028XGrpGb','573470LiidmD','1302568PLvdEg','35FLMJbv','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','detail','10cUJUAr','120473mvMxxE','verbose','sqlContent','dbId','description','9NhvVOi','sqlcode','appCode','Return\x20full\x20raw\x20SQL\x20query\x20object','23062490NybRnn','sql','str','109062vhZaza','2595558eXUJgf','sqlCode'];a94_0x455a=function(){return _0x31f314;};return a94_0x455a();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a94_0x256bfb(0x72),'command':a94_0x256bfb(0x7d),'description':a94_0x256bfb(0x7c),'risk':'read','flags':[SQLCODE_FLAG,{'name':'verbose','type':'boolean','description':a94_0x256bfb(0x70)}],async 'execute'(_0x6a97bc){const _0x54245c=a94_0x256bfb,_0x521cf4=await getSqlQueryInfo(_0x6a97bc[_0x54245c(0x6f)],_0x6a97bc[_0x54245c(0x73)](_0x54245c(0x6e))),_0xf75e50=_0x6a97bc['bool'](_0x54245c(0x69));if(_0xf75e50)return{'ok':!![],'data':_0x521cf4};const _0x30e4f4=_0x521cf4[_0x54245c(0x6b)]?await getDbName(_0x6a97bc[_0x54245c(0x6f)],_0x521cf4[_0x54245c(0x6b)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x521cf4[_0x54245c(0x76)],'sqlName':_0x521cf4['sqlName'],'db':_0x30e4f4?_0x30e4f4+'\x20('+_0x521cf4[_0x54245c(0x6b)]+')':_0x521cf4[_0x54245c(0x6b)]??'','description':_0x521cf4[_0x54245c(0x6c)]??'','sqlContent':_0x521cf4[_0x54245c(0x6a)]??''}};}};
@@ -1 +1 @@
1
- function a95_0x1104(){const _0x30e98a=['\x20row(s)\x20in\x20','12323707fMfXat','4111390gLiiqu','validation','str','params','sqlcode','execResult','9cRkILZ','SQL\x20parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1853675RJryoJ','66XiJpxE','read','Returned\x20','3725634sfPcAk','14184WJxrIO','now','execSuccess','1472360YCUocG','1TNkJLb','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','length','SQL\x20execution\x20failed','1897rqBkpq','exec','Invalid\x20JSON\x20for\x20--params:\x20','string','118004LUWwiW','isArray'];a95_0x1104=function(){return _0x30e98a;};return a95_0x1104();}const a95_0x3fc7f5=a95_0x258d;(function(_0x478fd4,_0x32c3ed){const _0xcfb78b=a95_0x258d,_0x3e37b=_0x478fd4();while(!![]){try{const _0xd863c8=-parseInt(_0xcfb78b(0xa0))/0x1*(-parseInt(_0xcfb78b(0x9f))/0x2)+parseInt(_0xcfb78b(0xb5))/0x3*(parseInt(_0xcfb78b(0xa8))/0x4)+-parseInt(_0xcfb78b(0xb4))/0x5+parseInt(_0xcfb78b(0x9b))/0x6+-parseInt(_0xcfb78b(0xa4))/0x7*(parseInt(_0xcfb78b(0x9c))/0x8)+parseInt(_0xcfb78b(0xb2))/0x9*(parseInt(_0xcfb78b(0xac))/0xa)+-parseInt(_0xcfb78b(0xab))/0xb;if(_0xd863c8===_0x32c3ed)break;else _0x3e37b['push'](_0x3e37b['shift']());}catch(_0x5d6aad){_0x3e37b['push'](_0x3e37b['shift']());}}}(a95_0x1104,0x6cd1d));import{executeSql}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a95_0x258d(_0x121351,_0x215f20){_0x121351=_0x121351-0x99;const _0x110418=a95_0x1104();let _0x258d0a=_0x110418[_0x121351];return _0x258d0a;}export const sqlExec={'service':'sql','command':a95_0x3fc7f5(0xa5),'description':a95_0x3fc7f5(0xa1),'risk':a95_0x3fc7f5(0x99),'flags':[SQLCODE_FLAG,{'name':'params','type':a95_0x3fc7f5(0xa7),'description':a95_0x3fc7f5(0xb3)}],async 'execute'(_0x2bab28){const _0x5701b2=a95_0x3fc7f5;let _0x4417c2;const _0xed554d=_0x2bab28[_0x5701b2(0xae)](_0x5701b2(0xaf));if(_0xed554d)try{_0x4417c2=JSON['parse'](_0xed554d);}catch{throw CliErrors[_0x5701b2(0xad)](_0x5701b2(0xa6)+_0xed554d);}const _0x245f38=Date[_0x5701b2(0x9d)](),_0xaa5d8=await executeSql(_0x2bab28['appCode'],_0x2bab28['str'](_0x5701b2(0xb0)),_0x4417c2),_0x2574d3=Date['now']()-_0x245f38,_0x21af17=_0xaa5d8?.[_0x5701b2(0xb1)]??_0xaa5d8,_0x3f6a81=_0xaa5d8?.[_0x5701b2(0x9e)]??!![];if(!_0x3f6a81)return{'ok':![],'data':{'error':_0xaa5d8?.['execError']||_0x5701b2(0xa3),'elapsed':_0x2574d3},'message':_0x5701b2(0xa3)};const _0x2ec914=Array[_0x5701b2(0xa9)](_0x21af17)?_0x21af17:[];return{'ok':!![],'data':{'rows':_0x2ec914,'rowCount':_0x2ec914[_0x5701b2(0xa2)],'elapsed':_0x2574d3},'message':_0x5701b2(0x9a)+_0x2ec914[_0x5701b2(0xa2)]+_0x5701b2(0xaa)+_0x2574d3+'ms'};}};
1
+ function a95_0x2d74(_0x21d865,_0x4372a2){_0x21d865=_0x21d865-0x76;const _0x23bdaa=a95_0x23bd();let _0x2d747b=_0x23bdaa[_0x21d865];return _0x2d747b;}const a95_0x2f19e5=a95_0x2d74;(function(_0x5acac0,_0x4d6dc9){const _0xd8e9df=a95_0x2d74,_0x301275=_0x5acac0();while(!![]){try{const _0x916bb3=-parseInt(_0xd8e9df(0x92))/0x1*(parseInt(_0xd8e9df(0x76))/0x2)+parseInt(_0xd8e9df(0x7a))/0x3+-parseInt(_0xd8e9df(0x84))/0x4*(parseInt(_0xd8e9df(0x82))/0x5)+-parseInt(_0xd8e9df(0x85))/0x6*(-parseInt(_0xd8e9df(0x94))/0x7)+-parseInt(_0xd8e9df(0x8c))/0x8+parseInt(_0xd8e9df(0x7b))/0x9*(parseInt(_0xd8e9df(0x81))/0xa)+parseInt(_0xd8e9df(0x8e))/0xb*(parseInt(_0xd8e9df(0x87))/0xc);if(_0x916bb3===_0x4d6dc9)break;else _0x301275['push'](_0x301275['shift']());}catch(_0x2168bb){_0x301275['push'](_0x301275['shift']());}}}(a95_0x23bd,0x5274b));function a95_0x23bd(){const _0x580d3c=['178077cAnjnO','1425555vHDhhH','SQL\x20execution\x20failed','isArray','string','sqlcode','now','30nSvdxG','6985RhFgPE','params','1036bzjrzE','24Bpdcyj','sql','12tdKGJP','execResult','execSuccess','parse','\x20row(s)\x20in\x20','3202552FaoMxR','validation','2575639UxCMlF','Returned\x20','execError','str','56976pVYMGf','SQL\x20parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','878703pnVJof','6wwbCeJ','exec','Invalid\x20JSON\x20for\x20--params:\x20','length'];a95_0x23bd=function(){return _0x580d3c;};return a95_0x23bd();}import{executeSql}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const sqlExec={'service':a95_0x2f19e5(0x86),'command':a95_0x2f19e5(0x77),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,{'name':a95_0x2f19e5(0x83),'type':a95_0x2f19e5(0x7e),'description':a95_0x2f19e5(0x93)}],async 'execute'(_0x117105){const _0x7fc9fd=a95_0x2f19e5;let _0x356a6d;const _0x177b93=_0x117105['str'](_0x7fc9fd(0x83));if(_0x177b93)try{_0x356a6d=JSON[_0x7fc9fd(0x8a)](_0x177b93);}catch{throw CliErrors[_0x7fc9fd(0x8d)](_0x7fc9fd(0x78)+_0x177b93);}const _0x57c32f=Date[_0x7fc9fd(0x80)](),_0x4645a6=await executeSql(_0x117105['appCode'],_0x117105[_0x7fc9fd(0x91)](_0x7fc9fd(0x7f)),_0x356a6d),_0x16c5e1=Date[_0x7fc9fd(0x80)]()-_0x57c32f,_0x1c2097=_0x4645a6?.[_0x7fc9fd(0x88)]??_0x4645a6,_0x1b7e28=_0x4645a6?.[_0x7fc9fd(0x89)]??!![];if(!_0x1b7e28)return{'ok':![],'data':{'error':_0x4645a6?.[_0x7fc9fd(0x90)]||_0x7fc9fd(0x7c),'elapsed':_0x16c5e1},'message':'SQL\x20execution\x20failed'};const _0x160e81=Array[_0x7fc9fd(0x7d)](_0x1c2097)?_0x1c2097:[];return{'ok':!![],'data':{'rows':_0x160e81,'rowCount':_0x160e81[_0x7fc9fd(0x79)],'elapsed':_0x16c5e1},'message':_0x7fc9fd(0x8f)+_0x160e81['length']+_0x7fc9fd(0x8b)+_0x16c5e1+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x1966ed,_0x27fa14){const _0x15cbdb=a96_0xb6b5,_0x433caf=_0x1966ed();while(!![]){try{const _0x26a9ee=-parseInt(_0x15cbdb(0xc0))/0x1+parseInt(_0x15cbdb(0xbf))/0x2+-parseInt(_0x15cbdb(0xc5))/0x3+parseInt(_0x15cbdb(0xc4))/0x4*(parseInt(_0x15cbdb(0xc1))/0x5)+parseInt(_0x15cbdb(0xc6))/0x6+-parseInt(_0x15cbdb(0xc2))/0x7+parseInt(_0x15cbdb(0xc3))/0x8;if(_0x26a9ee===_0x27fa14)break;else _0x433caf['push'](_0x433caf['shift']());}catch(_0x5b2474){_0x433caf['push'](_0x433caf['shift']());}}}(a96_0x45c8,0x9d313));import{sqlList}from'../../commands/sql/list.js';import{sqlDetail}from'../../commands/sql/detail.js';import{sqlValidate}from'../../commands/sql/validate.js';import{sqlSave}from'../../commands/sql/save.js';import{sqlExec}from'../../commands/sql/exec.js';function a96_0xb6b5(_0x41d2b3,_0x2f89ff){_0x41d2b3=_0x41d2b3-0xbf;const _0x45c88a=a96_0x45c8();let _0xb6b508=_0x45c88a[_0x41d2b3];return _0xb6b508;}import{sqlPull}from'../../commands/sql/pull.js';export const sqlDefinitions=[sqlList,sqlDetail,sqlValidate,sqlSave,sqlExec,sqlPull];function a96_0x45c8(){const _0x17900e=['1792406ULgQzV','573674NAhCeW','195ZdWJti','7997234zLdnhz','2285952niTwer','115084tQNbvu','938220sYwgrl','2212314KXkUog'];a96_0x45c8=function(){return _0x17900e;};return a96_0x45c8();}
1
+ (function(_0x46a909,_0x423be1){const _0x5c6459=a96_0x1dde,_0x3ba518=_0x46a909();while(!![]){try{const _0x277831=-parseInt(_0x5c6459(0x1ee))/0x1*(parseInt(_0x5c6459(0x1ed))/0x2)+parseInt(_0x5c6459(0x1f5))/0x3*(parseInt(_0x5c6459(0x1f8))/0x4)+-parseInt(_0x5c6459(0x1f4))/0x5*(parseInt(_0x5c6459(0x1ec))/0x6)+-parseInt(_0x5c6459(0x1f3))/0x7*(parseInt(_0x5c6459(0x1f1))/0x8)+parseInt(_0x5c6459(0x1ef))/0x9*(parseInt(_0x5c6459(0x1f2))/0xa)+-parseInt(_0x5c6459(0x1f9))/0xb*(parseInt(_0x5c6459(0x1f0))/0xc)+parseInt(_0x5c6459(0x1f6))/0xd*(parseInt(_0x5c6459(0x1f7))/0xe);if(_0x277831===_0x423be1)break;else _0x3ba518['push'](_0x3ba518['shift']());}catch(_0xdac9d0){_0x3ba518['push'](_0x3ba518['shift']());}}}(a96_0x18cd,0xa0676));import{sqlList}from'../../commands/sql/list.js';import{sqlDetail}from'../../commands/sql/detail.js';import{sqlValidate}from'../../commands/sql/validate.js';import{sqlSave}from'../../commands/sql/save.js';import{sqlExec}from'../../commands/sql/exec.js';import{sqlPull}from'../../commands/sql/pull.js';export const sqlDefinitions=[sqlList,sqlDetail,sqlValidate,sqlSave,sqlExec,sqlPull];function a96_0x1dde(_0x51a0e8,_0x456209){_0x51a0e8=_0x51a0e8-0x1ec;const _0x18cdb5=a96_0x18cd();let _0x1dde3a=_0x18cdb5[_0x51a0e8];return _0x1dde3a;}function a96_0x18cd(){const _0x345b1b=['18WdLPMu','2HHZlqP','474711hqWWdD','9GfwfCU','108mmeMlQ','2922968nsOBgR','11918820dlrMCw','7irDksx','1827615tLtRFi','81NbNkJE','3991JEdDOH','62958fQwbQK','153932NvXjXL','1244023KvGQWA'];a96_0x18cd=function(){return _0x345b1b;};return a96_0x18cd();}
@@ -1 +1 @@
1
- function a97_0x1c03(_0x5d72ac,_0x4b1f5c){_0x5d72ac=_0x5d72ac-0x100;const _0x48a05d=a97_0x48a0();let _0x1c0387=_0x48a05d[_0x5d72ac];return _0x1c0387;}const a97_0x809ae6=a97_0x1c03;function a97_0x48a0(){const _0xfc7666=['read','list','all','3342402uVAzBK','108yCpflx','365018IXynoC','Found\x20','appCode','sqlcode','pagesize','map','length','\x20SQL\x20queries\x20(total:\x20','bool','Page\x20number','page','235470cNqHhu','List\x20custom\x20SQL\x20queries','Page\x20size','name','str','num','260748geTWsK','boolean','dbId','216uJeTMX','number','totalCount','sqlCode','string','310891eCOfAq','7erjGbO','4951296HgbfEJ','4012045BlyBkV','No\x20custom\x20SQL\x20queries\x20found.'];a97_0x48a0=function(){return _0xfc7666;};return a97_0x48a0();}(function(_0x282b4c,_0x1e70e4){const _0x42efa3=a97_0x1c03,_0x1dd8dc=_0x282b4c();while(!![]){try{const _0xb88571=parseInt(_0x42efa3(0x102))/0x1*(-parseInt(_0x42efa3(0x10b))/0x2)+parseInt(_0x42efa3(0x103))/0x3+parseInt(_0x42efa3(0x11c))/0x4+parseInt(_0x42efa3(0x104))/0x5+parseInt(_0x42efa3(0x109))/0x6+parseInt(_0x42efa3(0x101))/0x7*(-parseInt(_0x42efa3(0x11f))/0x8)+parseInt(_0x42efa3(0x10a))/0x9*(parseInt(_0x42efa3(0x116))/0xa);if(_0xb88571===_0x1e70e4)break;else _0x1dd8dc['push'](_0x1dd8dc['shift']());}catch(_0x1b710f){_0x1dd8dc['push'](_0x1dd8dc['shift']());}}}(a97_0x48a0,0xd7131));import{listSqlQueries}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const sqlList={'service':'sql','command':a97_0x809ae6(0x107),'description':a97_0x809ae6(0x117),'risk':a97_0x809ae6(0x106),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a97_0x809ae6(0x119),'type':a97_0x809ae6(0x100),'description':'Filter\x20by\x20SQL\x20name'},{'name':a97_0x809ae6(0x115),'type':a97_0x809ae6(0x120),'description':a97_0x809ae6(0x114),'default':0x1},{'name':a97_0x809ae6(0x10f),'type':a97_0x809ae6(0x120),'description':a97_0x809ae6(0x118)},{'name':'verbose','type':a97_0x809ae6(0x11d),'description':'Return\x20full\x20SQL\x20query\x20objects\x20including\x20parameters\x20and\x20SQL\x20content'}],async 'execute'(_0x358662){const _0x1b4e12=a97_0x809ae6,_0x2c0505=await listSqlQueries(_0x358662[_0x1b4e12(0x10d)],{'sqlCode':_0x358662['str'](_0x1b4e12(0x10e))||undefined,'sqlName':_0x358662[_0x1b4e12(0x11a)]('name')||undefined,'currentPage':_0x358662[_0x1b4e12(0x11b)](_0x1b4e12(0x115)),'pageSize':_0x358662[_0x1b4e12(0x11b)](_0x1b4e12(0x10f),0x32)}),_0x325da7=_0x358662[_0x1b4e12(0x113)]('verbose'),_0x2aaa12=_0x2c0505['tableData']??[],_0x17b433=_0x2c0505['paging']?.[_0x1b4e12(0x121)]??_0x2aaa12['length'];let _0x27ab18;return _0x325da7?_0x27ab18=_0x2aaa12:_0x27ab18=await Promise[_0x1b4e12(0x108)](_0x2aaa12[_0x1b4e12(0x110)](async _0x46bfe9=>{const _0x173248=_0x1b4e12;let _0x621853;try{_0x621853=_0x46bfe9[_0x173248(0x11e)]?await getDbName(_0x358662['appCode'],_0x46bfe9[_0x173248(0x11e)]):undefined;}catch{}return{'sqlCode':_0x46bfe9[_0x173248(0x122)],'sqlName':_0x46bfe9['sqlName'],'description':_0x46bfe9['description']??'','db':_0x621853?_0x621853+'\x20('+_0x46bfe9['dbId']+')':_0x46bfe9['dbId']??''};})),{'ok':!![],'data':_0x27ab18,'message':_0x2aaa12[_0x1b4e12(0x111)]===0x0?_0x1b4e12(0x105):_0x1b4e12(0x10c)+_0x2aaa12[_0x1b4e12(0x111)]+_0x1b4e12(0x112)+_0x17b433+').'};}};
1
+ function a97_0x2944(){const _0x478511=['sqlCode','all','5832610NwaMYa','5229190jQOjfs','Found\x20','list','str','154AcPFah','7fHxOKm','read','11vYbcap','map','tableData','6nMsvTl','appCode','num','sqlName','description','boolean','\x20SQL\x20queries\x20(total:\x20','Page\x20size','15wDTSrJ','Return\x20full\x20SQL\x20query\x20objects\x20including\x20parameters\x20and\x20SQL\x20content','Page\x20number','verbose','paging','10374128XfWBva','5003sCMgtJ','totalCount','1810464NMhnCw','page','bool','6758739vbGeWd','number','length','642364UHRHrl','No\x20custom\x20SQL\x20queries\x20found.','sql','name','dbId','pagesize'];a97_0x2944=function(){return _0x478511;};return a97_0x2944();}const a97_0x2a2d89=a97_0xad83;function a97_0xad83(_0x4099fd,_0x3e16bf){_0x4099fd=_0x4099fd-0xe1;const _0x294473=a97_0x2944();let _0xad830=_0x294473[_0x4099fd];return _0xad830;}(function(_0x344a4e,_0x2eb499){const _0x25c269=a97_0xad83,_0x1b2f57=_0x344a4e();while(!![]){try{const _0x4e9c20=parseInt(_0x25c269(0xf6))/0x1*(-parseInt(_0x25c269(0xe2))/0x2)+-parseInt(_0x25c269(0xf0))/0x3*(-parseInt(_0x25c269(0xfe))/0x4)+parseInt(_0x25c269(0x107))/0x5*(-parseInt(_0x25c269(0xe8))/0x6)+parseInt(_0x25c269(0xe3))/0x7*(parseInt(_0x25c269(0xf5))/0x8)+-parseInt(_0x25c269(0xfb))/0x9+parseInt(_0x25c269(0x106))/0xa+-parseInt(_0x25c269(0xe5))/0xb*(-parseInt(_0x25c269(0xf8))/0xc);if(_0x4e9c20===_0x2eb499)break;else _0x1b2f57['push'](_0x1b2f57['shift']());}catch(_0x17381d){_0x1b2f57['push'](_0x1b2f57['shift']());}}}(a97_0x2944,0x9f226));import{listSqlQueries}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const sqlList={'service':a97_0x2a2d89(0x100),'command':a97_0x2a2d89(0x109),'description':'List\x20custom\x20SQL\x20queries','risk':a97_0x2a2d89(0xe4),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a97_0x2a2d89(0x101),'type':'string','description':'Filter\x20by\x20SQL\x20name'},{'name':a97_0x2a2d89(0xf9),'type':a97_0x2a2d89(0xfc),'description':a97_0x2a2d89(0xf2),'default':0x1},{'name':a97_0x2a2d89(0x103),'type':'number','description':a97_0x2a2d89(0xef)},{'name':a97_0x2a2d89(0xf3),'type':a97_0x2a2d89(0xed),'description':a97_0x2a2d89(0xf1)}],async 'execute'(_0x36ea58){const _0x76c60d=a97_0x2a2d89,_0x52e752=await listSqlQueries(_0x36ea58[_0x76c60d(0xe9)],{'sqlCode':_0x36ea58[_0x76c60d(0xe1)]('sqlcode')||undefined,'sqlName':_0x36ea58[_0x76c60d(0xe1)](_0x76c60d(0x101))||undefined,'currentPage':_0x36ea58['num'](_0x76c60d(0xf9)),'pageSize':_0x36ea58[_0x76c60d(0xea)](_0x76c60d(0x103),0x32)}),_0x43f700=_0x36ea58[_0x76c60d(0xfa)](_0x76c60d(0xf3)),_0x275db3=_0x52e752[_0x76c60d(0xe7)]??[],_0x3e0687=_0x52e752[_0x76c60d(0xf4)]?.[_0x76c60d(0xf7)]??_0x275db3[_0x76c60d(0xfd)];let _0x175e9e;return _0x43f700?_0x175e9e=_0x275db3:_0x175e9e=await Promise[_0x76c60d(0x105)](_0x275db3[_0x76c60d(0xe6)](async _0xec32e3=>{const _0x4b3225=_0x76c60d;let _0x48ebac;try{_0x48ebac=_0xec32e3[_0x4b3225(0x102)]?await getDbName(_0x36ea58['appCode'],_0xec32e3[_0x4b3225(0x102)]):undefined;}catch{}return{'sqlCode':_0xec32e3[_0x4b3225(0x104)],'sqlName':_0xec32e3[_0x4b3225(0xeb)],'description':_0xec32e3[_0x4b3225(0xec)]??'','db':_0x48ebac?_0x48ebac+'\x20('+_0xec32e3['dbId']+')':_0xec32e3[_0x4b3225(0x102)]??''};})),{'ok':!![],'data':_0x175e9e,'message':_0x275db3[_0x76c60d(0xfd)]===0x0?_0x76c60d(0xff):_0x76c60d(0x108)+_0x275db3[_0x76c60d(0xfd)]+_0x76c60d(0xee)+_0x3e0687+').'};}};
@@ -1 +1 @@
1
- const a98_0x1e53eb=a98_0x2fe6;(function(_0x2767bf,_0x5a1003){const _0x455bb8=a98_0x2fe6,_0x5125df=_0x2767bf();while(!![]){try{const _0x2f5bbf=parseInt(_0x455bb8(0x94))/0x1*(parseInt(_0x455bb8(0x77))/0x2)+parseInt(_0x455bb8(0xa4))/0x3*(-parseInt(_0x455bb8(0x75))/0x4)+parseInt(_0x455bb8(0x81))/0x5+parseInt(_0x455bb8(0x98))/0x6+-parseInt(_0x455bb8(0x74))/0x7*(-parseInt(_0x455bb8(0x80))/0x8)+parseInt(_0x455bb8(0x79))/0x9+-parseInt(_0x455bb8(0xa3))/0xa;if(_0x2f5bbf===_0x5a1003)break;else _0x5125df['push'](_0x5125df['shift']());}catch(_0x12c344){_0x5125df['push'](_0x5125df['shift']());}}}(a98_0x103c,0x567af));import{createInterface}from'node:readline';import{readFile,writeFile}from'node:fs/promises';function a98_0x103c(){const _0x205480=['stdin','totalCount','3126582WzPSkM','stderr','Force\x20pull\x20will\x20overwrite\x20local\x20SQL\x20that\x20differs\x20from\x20remote.\x20Continue?\x20[y/N]\x20','push','yes','No\x20remote\x20SQL\x20queries\x20matched.','sqlcode','str','Filter\x20by\x20SQL\x20display\x20name\x20(API\x20filter)','sqlContent','tableData','6973380hndsid','3OffxfT','length','unchanged','local\x20differs\x20from\x20remote\x20(use\x20--force\x20to\x20overwrite)','bool','\x20SQL\x20file(s)\x20under\x20','530726srqFNY','2388972MbAUQE','\x20written,\x20','81850TQAajM','name','2637306pQhVoY','pull','\x20error(s)).','message','boolean','utf8','sqlCode','48JviVPA','57200dhYEMy','includes','skipped','string','toLowerCase','cancelled','conflict','Would\x20pull\x20','close','local\x20differs\x20from\x20remote','Pull\x20failed:\x20could\x20not\x20load\x20SQL\x20content\x20(','force','nonInteractive','Pull\x20complete:\x20','would_pull','POST','question','sqlName','appCode','9mptLka','/smartapi/custom/queryUserCustomSqlList'];a98_0x103c=function(){return _0x205480;};return a98_0x103c();}import{join}from'node:path';import{getSqlQueryInfo,listSqlQueries}from'../../core/api-client.js';import{ensureParentDirectory,fileExists}from'../../core/bff/file-system.js';import{findProjectRootDirectory}from'../../context.js';import{assignSqlFileNames,buildPulledSqlFileContent,resolveSqlLocalDir}from'../../commands/sql/shared.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a98_0x2fe6(_0x19e590,_0x57c9d1){_0x19e590=_0x19e590-0x73;const _0x103c0e=a98_0x103c();let _0x2fe6da=_0x103c0e[_0x19e590];return _0x2fe6da;}const PAGE_SIZE=0x64;async function fetchAllSqlQueries(_0x3fcce9,_0x46b035){const _0x1cdd27=a98_0x2fe6,_0x43930c=[];let _0x130cd3=0x1;while(!![]){const _0x501cec=await listSqlQueries(_0x3fcce9,{'currentPage':_0x130cd3,'pageSize':PAGE_SIZE,'sqlCode':_0x46b035[_0x1cdd27(0x7f)],'sqlName':_0x46b035[_0x1cdd27(0x92)]}),_0x474a9c=_0x501cec[_0x1cdd27(0xa2)]??[];_0x43930c['push'](..._0x474a9c);if(_0x474a9c[_0x1cdd27(0xa5)]===0x0)break;const _0x10619c=_0x501cec['paging']?.[_0x1cdd27(0x97)];if(_0x10619c!=null?_0x43930c['length']>=_0x10619c:_0x474a9c['length']<PAGE_SIZE)break;_0x130cd3++;}return _0x43930c;}async function ensureSqlContent(_0x12f517,_0x96f4c7){const _0x4e076e=a98_0x2fe6;if(_0x96f4c7[_0x4e076e(0xa1)]!=null&&String(_0x96f4c7[_0x4e076e(0xa1)])['length']>0x0)return _0x96f4c7;return getSqlQueryInfo(_0x12f517,_0x96f4c7['sqlCode']);}export const sqlPull={'service':'sql','command':a98_0x1e53eb(0x7a),'description':'Pull\x20remote\x20custom\x20SQL\x20queries\x20into\x20.rabetbase/sql/','risk':'write','flags':[SQLCODE_FLAG_OPTIONAL,{'name':'name','type':a98_0x1e53eb(0x84),'description':a98_0x1e53eb(0xa0)},{'name':a98_0x1e53eb(0x8c),'type':a98_0x1e53eb(0x7d),'description':'Overwrite\x20local\x20files\x20that\x20differ\x20from\x20remote'}],async 'dryRun'(_0x384bc4){const _0x3b3abb=a98_0x1e53eb,_0x25a3bd=findProjectRootDirectory(),_0x30f01d=resolveSqlLocalDir(_0x25a3bd),_0x2fd59f=_0x384bc4[_0x3b3abb(0x9f)](_0x3b3abb(0x9e))||undefined,_0x476bbf=_0x384bc4[_0x3b3abb(0x9f)](_0x3b3abb(0x78))||undefined,_0x160f29=await fetchAllSqlQueries(_0x384bc4[_0x3b3abb(0x93)],{'sqlCode':_0x2fd59f,'sqlName':_0x476bbf}),_0x1b2d74=[],_0x57d1ea=[];for(const _0x869770 of _0x160f29){try{_0x1b2d74[_0x3b3abb(0x9b)](await ensureSqlContent(_0x384bc4[_0x3b3abb(0x93)],_0x869770));}catch(_0x1f0072){_0x57d1ea[_0x3b3abb(0x9b)]({'sqlCode':_0x869770[_0x3b3abb(0x7f)],'error':_0x1f0072 instanceof Error?_0x1f0072['message']:String(_0x1f0072)});}}const _0x17ecd8=assignSqlFileNames(_0x1b2d74),_0x88113c=[];for(const [_0x48700d,_0x2f07e7]of _0x17ecd8){const _0x50daf2=join(_0x30f01d,_0x48700d),_0x197be4=buildPulledSqlFileContent(_0x2f07e7);let _0x26e0d2=_0x3b3abb(0x8f),_0x37217d;if(await fileExists(_0x50daf2)){const _0x2a0b1a=await readFile(_0x50daf2,_0x3b3abb(0x7e));_0x2a0b1a===_0x197be4?(_0x26e0d2=_0x3b3abb(0x83),_0x37217d=_0x3b3abb(0xa6)):(_0x26e0d2=_0x3b3abb(0x87),_0x37217d=_0x3b3abb(0xa7));}_0x88113c['push']({'sqlCode':_0x2f07e7[_0x3b3abb(0x7f)],'sqlName':_0x2f07e7['sqlName'],'filePath':_0x50daf2,'status':_0x26e0d2,'reason':_0x37217d});}return{'method':_0x3b3abb(0x90),'url':_0x3b3abb(0x95),'body':{'appCode':_0x384bc4[_0x3b3abb(0x93)],'sqlCode':_0x2fd59f??null,'sqlName':_0x476bbf??null,'loadErrors':_0x57d1ea,'files':_0x88113c},'description':_0x3b3abb(0x88)+_0x88113c[_0x3b3abb(0xa5)]+_0x3b3abb(0x73)+_0x30f01d};},async 'execute'(_0x170821){const _0x1a9520=a98_0x1e53eb,_0x256b51=findProjectRootDirectory(),_0x2f26c5=resolveSqlLocalDir(_0x256b51),_0x1a71cd=_0x170821[_0x1a9520(0x9f)]('sqlcode')||undefined,_0x33dc87=_0x170821[_0x1a9520(0x9f)]('name')||undefined,_0x52a7d3=_0x170821[_0x1a9520(0xa8)](_0x1a9520(0x8c)),_0x590b83=await fetchAllSqlQueries(_0x170821['appCode'],{'sqlCode':_0x1a71cd,'sqlName':_0x33dc87});if(_0x590b83[_0x1a9520(0xa5)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x1a9520(0x9d)};const _0x4e07e4=[],_0x4ef0c2=[];for(const _0x1e2f9f of _0x590b83){try{_0x4e07e4[_0x1a9520(0x9b)](await ensureSqlContent(_0x170821[_0x1a9520(0x93)],_0x1e2f9f));}catch(_0x1a6690){_0x4ef0c2['push']({'sqlCode':_0x1e2f9f[_0x1a9520(0x7f)],'error':_0x1a6690 instanceof Error?_0x1a6690[_0x1a9520(0x7c)]:String(_0x1a6690)});}}if(_0x4e07e4[_0x1a9520(0xa5)]===0x0)return{'ok':![],'data':{'pulled':[],'skipped':[],'failed':_0x4ef0c2},'message':_0x1a9520(0x8b)+_0x4ef0c2[_0x1a9520(0xa5)]+_0x1a9520(0x7b)};const _0x6ae284=assignSqlFileNames(_0x4e07e4);if(_0x52a7d3&&!_0x170821[_0x1a9520(0x8d)]){let _0x4c14e4=![];for(const [_0x595b8b,_0x5a43ca]of _0x6ae284){const _0x3e4055=join(_0x2f26c5,_0x595b8b),_0x35d6c8=buildPulledSqlFileContent(_0x5a43ca);if(await fileExists(_0x3e4055)){const _0x4266f2=await readFile(_0x3e4055,_0x1a9520(0x7e));if(_0x4266f2!==_0x35d6c8){_0x4c14e4=!![];break;}}}if(_0x4c14e4){const _0x489d21=await confirmForce();if(!_0x489d21)throw CliErrors[_0x1a9520(0x86)]('Force\x20pull\x20cancelled.');}}const _0x1ced77=[],_0x26eb8b=[];for(const [_0x50e9d3,_0x283837]of _0x6ae284){const _0x2b6b3e=join(_0x2f26c5,_0x50e9d3),_0x4228a6=buildPulledSqlFileContent(_0x283837);try{if(await fileExists(_0x2b6b3e)){const _0x53fcac=await readFile(_0x2b6b3e,_0x1a9520(0x7e));if(_0x53fcac===_0x4228a6){_0x26eb8b[_0x1a9520(0x9b)]({'sqlCode':_0x283837[_0x1a9520(0x7f)],'reason':_0x1a9520(0xa6)});continue;}if(!_0x52a7d3){_0x26eb8b[_0x1a9520(0x9b)]({'sqlCode':_0x283837['sqlCode'],'reason':_0x1a9520(0x8a)});continue;}}await ensureParentDirectory(_0x2b6b3e),await writeFile(_0x2b6b3e,_0x4228a6,_0x1a9520(0x7e)),_0x1ced77[_0x1a9520(0x9b)]({'sqlCode':_0x283837[_0x1a9520(0x7f)],'filePath':_0x2b6b3e});}catch(_0x492f3d){_0x4ef0c2[_0x1a9520(0x9b)]({'sqlCode':_0x283837[_0x1a9520(0x7f)],'error':_0x492f3d instanceof Error?_0x492f3d[_0x1a9520(0x7c)]:String(_0x492f3d)});}}const _0x5c894c=_0x4ef0c2[_0x1a9520(0xa5)]===0x0;return{'ok':_0x5c894c,'data':{'pulled':_0x1ced77,'skipped':_0x26eb8b,'failed':_0x4ef0c2},'message':_0x1a9520(0x8e)+_0x1ced77[_0x1a9520(0xa5)]+_0x1a9520(0x76)+_0x26eb8b[_0x1a9520(0xa5)]+'\x20skipped,\x20'+_0x4ef0c2[_0x1a9520(0xa5)]+'\x20failed'};}};async function confirmForce(){const _0x13c003=a98_0x1e53eb,_0x58a906=createInterface({'input':process[_0x13c003(0x96)],'output':process[_0x13c003(0x99)]}),_0x1da952=await new Promise(_0x263b94=>{const _0x352d36=_0x13c003;_0x58a906[_0x352d36(0x91)](_0x352d36(0x9a),_0x263b94);});return _0x58a906[_0x13c003(0x89)](),['y',_0x13c003(0x9c)][_0x13c003(0x82)](_0x1da952['trim']()[_0x13c003(0x85)]());}
1
+ const a98_0x4fe761=a98_0xeb5c;(function(_0x497aca,_0xa78ca2){const _0x5849f4=a98_0xeb5c,_0x19e347=_0x497aca();while(!![]){try{const _0x3fc2b8=-parseInt(_0x5849f4(0x149))/0x1*(-parseInt(_0x5849f4(0x13d))/0x2)+parseInt(_0x5849f4(0x12e))/0x3+parseInt(_0x5849f4(0x125))/0x4*(parseInt(_0x5849f4(0x147))/0x5)+-parseInt(_0x5849f4(0x146))/0x6*(-parseInt(_0x5849f4(0x141))/0x7)+-parseInt(_0x5849f4(0x150))/0x8*(parseInt(_0x5849f4(0x142))/0x9)+parseInt(_0x5849f4(0x13a))/0xa+-parseInt(_0x5849f4(0x128))/0xb;if(_0x3fc2b8===_0xa78ca2)break;else _0x19e347['push'](_0x19e347['shift']());}catch(_0x3a1896){_0x19e347['push'](_0x19e347['shift']());}}}(a98_0x18e8,0xcda1c));import{createInterface}from'node:readline';import{readFile,writeFile}from'node:fs/promises';function a98_0x18e8(){const _0x58325a=['includes','Pull\x20remote\x20custom\x20SQL\x20queries\x20into\x20.rabetbase/sql/','boolean','No\x20remote\x20SQL\x20queries\x20matched.','18960XacKXE','length','yes','sqlName','conflict','would_pull','bool','close','sqlContent','2536760TQbvvb','force','\x20skipped,\x20','42463190ETPaEV','utf8','totalCount','name','unchanged','Filter\x20by\x20SQL\x20display\x20name\x20(API\x20filter)','2372169zQKhkq','nonInteractive','sql','paging','sqlCode','appCode','str','\x20failed','string','sqlcode','Pull\x20failed:\x20could\x20not\x20load\x20SQL\x20content\x20(','Force\x20pull\x20will\x20overwrite\x20local\x20SQL\x20that\x20differs\x20from\x20remote.\x20Continue?\x20[y/N]\x20','16527950MuLAdd','write','/smartapi/custom/queryUserCustomSqlList','2740988LvhDlt','stdin','toLowerCase','cancelled','1056503HarviX','3735sialyr','stderr','\x20error(s)).','push','24HKqnmS','10XDghFN','message','1YAfIwc','trim','skipped'];a98_0x18e8=function(){return _0x58325a;};return a98_0x18e8();}import{join}from'node:path';import{getSqlQueryInfo,listSqlQueries}from'../../core/api-client.js';import{ensureParentDirectory,fileExists}from'../../core/bff/file-system.js';import{findProjectRootDirectory}from'../../context.js';import{assignSqlFileNames,buildPulledSqlFileContent,resolveSqlLocalDir}from'../../commands/sql/shared.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const PAGE_SIZE=0x64;async function fetchAllSqlQueries(_0x583b60,_0x571bfa){const _0x1c881c=a98_0xeb5c,_0x290d76=[];let _0xed75ad=0x1;while(!![]){const _0x588d87=await listSqlQueries(_0x583b60,{'currentPage':_0xed75ad,'pageSize':PAGE_SIZE,'sqlCode':_0x571bfa['sqlCode'],'sqlName':_0x571bfa[_0x1c881c(0x153)]}),_0x1b82e1=_0x588d87['tableData']??[];_0x290d76[_0x1c881c(0x145)](..._0x1b82e1);if(_0x1b82e1[_0x1c881c(0x151)]===0x0)break;const _0x537af5=_0x588d87[_0x1c881c(0x131)]?.[_0x1c881c(0x12a)];if(_0x537af5!=null?_0x290d76[_0x1c881c(0x151)]>=_0x537af5:_0x1b82e1[_0x1c881c(0x151)]<PAGE_SIZE)break;_0xed75ad++;}return _0x290d76;}async function ensureSqlContent(_0x44c935,_0x5981ac){const _0x230945=a98_0xeb5c;if(_0x5981ac[_0x230945(0x124)]!=null&&String(_0x5981ac[_0x230945(0x124)])[_0x230945(0x151)]>0x0)return _0x5981ac;return getSqlQueryInfo(_0x44c935,_0x5981ac[_0x230945(0x132)]);}function a98_0xeb5c(_0x48504a,_0x4a7396){_0x48504a=_0x48504a-0x123;const _0x18e8e2=a98_0x18e8();let _0xeb5ced=_0x18e8e2[_0x48504a];return _0xeb5ced;}export const sqlPull={'service':a98_0x4fe761(0x130),'command':'pull','description':a98_0x4fe761(0x14d),'risk':a98_0x4fe761(0x13b),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a98_0x4fe761(0x12b),'type':a98_0x4fe761(0x136),'description':a98_0x4fe761(0x12d)},{'name':a98_0x4fe761(0x126),'type':a98_0x4fe761(0x14e),'description':'Overwrite\x20local\x20files\x20that\x20differ\x20from\x20remote'}],async 'dryRun'(_0x546f2b){const _0xdb96f5=a98_0x4fe761,_0xa58ed9=findProjectRootDirectory(),_0x23eaa5=resolveSqlLocalDir(_0xa58ed9),_0x7824e4=_0x546f2b[_0xdb96f5(0x134)](_0xdb96f5(0x137))||undefined,_0x1a5f9f=_0x546f2b[_0xdb96f5(0x134)]('name')||undefined,_0x5abc31=await fetchAllSqlQueries(_0x546f2b[_0xdb96f5(0x133)],{'sqlCode':_0x7824e4,'sqlName':_0x1a5f9f}),_0x1743eb=[],_0x4df210=[];for(const _0xd419f7 of _0x5abc31){try{_0x1743eb[_0xdb96f5(0x145)](await ensureSqlContent(_0x546f2b[_0xdb96f5(0x133)],_0xd419f7));}catch(_0x3ba109){_0x4df210['push']({'sqlCode':_0xd419f7[_0xdb96f5(0x132)],'error':_0x3ba109 instanceof Error?_0x3ba109[_0xdb96f5(0x148)]:String(_0x3ba109)});}}const _0x252db0=assignSqlFileNames(_0x1743eb),_0x1c3d55=[];for(const [_0x1a46d2,_0x532676]of _0x252db0){const _0xadf02f=join(_0x23eaa5,_0x1a46d2),_0x3457af=buildPulledSqlFileContent(_0x532676);let _0x1f4699=_0xdb96f5(0x155),_0x58223b;if(await fileExists(_0xadf02f)){const _0x1a70ff=await readFile(_0xadf02f,_0xdb96f5(0x129));_0x1a70ff===_0x3457af?(_0x1f4699=_0xdb96f5(0x14b),_0x58223b=_0xdb96f5(0x12c)):(_0x1f4699=_0xdb96f5(0x154),_0x58223b='local\x20differs\x20from\x20remote\x20(use\x20--force\x20to\x20overwrite)');}_0x1c3d55[_0xdb96f5(0x145)]({'sqlCode':_0x532676[_0xdb96f5(0x132)],'sqlName':_0x532676['sqlName'],'filePath':_0xadf02f,'status':_0x1f4699,'reason':_0x58223b});}return{'method':'POST','url':_0xdb96f5(0x13c),'body':{'appCode':_0x546f2b['appCode'],'sqlCode':_0x7824e4??null,'sqlName':_0x1a5f9f??null,'loadErrors':_0x4df210,'files':_0x1c3d55},'description':'Would\x20pull\x20'+_0x1c3d55[_0xdb96f5(0x151)]+'\x20SQL\x20file(s)\x20under\x20'+_0x23eaa5};},async 'execute'(_0x3aebaa){const _0x474ee8=a98_0x4fe761,_0xb1d85a=findProjectRootDirectory(),_0x5fc1f7=resolveSqlLocalDir(_0xb1d85a),_0x2a86f4=_0x3aebaa[_0x474ee8(0x134)]('sqlcode')||undefined,_0x1221cb=_0x3aebaa[_0x474ee8(0x134)](_0x474ee8(0x12b))||undefined,_0x19ebef=_0x3aebaa[_0x474ee8(0x156)](_0x474ee8(0x126)),_0x4919=await fetchAllSqlQueries(_0x3aebaa['appCode'],{'sqlCode':_0x2a86f4,'sqlName':_0x1221cb});if(_0x4919['length']===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x474ee8(0x14f)};const _0xb81af7=[],_0x145b02=[];for(const _0x5a408c of _0x4919){try{_0xb81af7[_0x474ee8(0x145)](await ensureSqlContent(_0x3aebaa[_0x474ee8(0x133)],_0x5a408c));}catch(_0x327ac7){_0x145b02[_0x474ee8(0x145)]({'sqlCode':_0x5a408c[_0x474ee8(0x132)],'error':_0x327ac7 instanceof Error?_0x327ac7['message']:String(_0x327ac7)});}}if(_0xb81af7[_0x474ee8(0x151)]===0x0)return{'ok':![],'data':{'pulled':[],'skipped':[],'failed':_0x145b02},'message':_0x474ee8(0x138)+_0x145b02[_0x474ee8(0x151)]+_0x474ee8(0x144)};const _0x531719=assignSqlFileNames(_0xb81af7);if(_0x19ebef&&!_0x3aebaa[_0x474ee8(0x12f)]){let _0x40e7be=![];for(const [_0x520029,_0x3e5c24]of _0x531719){const _0xc641e=join(_0x5fc1f7,_0x520029),_0x3ac909=buildPulledSqlFileContent(_0x3e5c24);if(await fileExists(_0xc641e)){const _0xe1c70=await readFile(_0xc641e,_0x474ee8(0x129));if(_0xe1c70!==_0x3ac909){_0x40e7be=!![];break;}}}if(_0x40e7be){const _0x277cfc=await confirmForce();if(!_0x277cfc)throw CliErrors[_0x474ee8(0x140)]('Force\x20pull\x20cancelled.');}}const _0x3c54ad=[],_0x1bbd88=[];for(const [_0x7d54f6,_0x64b60e]of _0x531719){const _0x3d38fe=join(_0x5fc1f7,_0x7d54f6),_0x556e54=buildPulledSqlFileContent(_0x64b60e);try{if(await fileExists(_0x3d38fe)){const _0xc30c75=await readFile(_0x3d38fe,_0x474ee8(0x129));if(_0xc30c75===_0x556e54){_0x1bbd88[_0x474ee8(0x145)]({'sqlCode':_0x64b60e[_0x474ee8(0x132)],'reason':_0x474ee8(0x12c)});continue;}if(!_0x19ebef){_0x1bbd88['push']({'sqlCode':_0x64b60e[_0x474ee8(0x132)],'reason':'local\x20differs\x20from\x20remote'});continue;}}await ensureParentDirectory(_0x3d38fe),await writeFile(_0x3d38fe,_0x556e54,_0x474ee8(0x129)),_0x3c54ad[_0x474ee8(0x145)]({'sqlCode':_0x64b60e[_0x474ee8(0x132)],'filePath':_0x3d38fe});}catch(_0x5a6aef){_0x145b02[_0x474ee8(0x145)]({'sqlCode':_0x64b60e[_0x474ee8(0x132)],'error':_0x5a6aef instanceof Error?_0x5a6aef[_0x474ee8(0x148)]:String(_0x5a6aef)});}}const _0x2529fb=_0x145b02[_0x474ee8(0x151)]===0x0;return{'ok':_0x2529fb,'data':{'pulled':_0x3c54ad,'skipped':_0x1bbd88,'failed':_0x145b02},'message':'Pull\x20complete:\x20'+_0x3c54ad[_0x474ee8(0x151)]+'\x20written,\x20'+_0x1bbd88[_0x474ee8(0x151)]+_0x474ee8(0x127)+_0x145b02[_0x474ee8(0x151)]+_0x474ee8(0x135)};}};async function confirmForce(){const _0x1789b9=a98_0x4fe761,_0x1764f8=createInterface({'input':process[_0x1789b9(0x13e)],'output':process[_0x1789b9(0x143)]}),_0x13bdc4=await new Promise(_0x816e5b=>{const _0x38eaed=_0x1789b9;_0x1764f8['question'](_0x38eaed(0x139),_0x816e5b);});return _0x1764f8[_0x1789b9(0x123)](),['y',_0x1789b9(0x152)][_0x1789b9(0x14c)](_0x13bdc4[_0x1789b9(0x14a)]()[_0x1789b9(0x13f)]());}