@lovrabet/rabetbase-cli 2.2.2-beta.1 → 2.2.3-beta.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 (205) 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/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -0
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x517738,_0x52da66){const _0x29f81c=a157_0x385e,_0x213d41=_0x517738();while(!![]){try{const _0x38283b=parseInt(_0x29f81c(0x1dd))/0x1+parseInt(_0x29f81c(0x1bf))/0x2*(-parseInt(_0x29f81c(0x1d2))/0x3)+parseInt(_0x29f81c(0x1ce))/0x4*(parseInt(_0x29f81c(0x1dc))/0x5)+-parseInt(_0x29f81c(0x1da))/0x6+parseInt(_0x29f81c(0x1c1))/0x7*(parseInt(_0x29f81c(0x1d4))/0x8)+-parseInt(_0x29f81c(0x1d8))/0x9*(-parseInt(_0x29f81c(0x1cf))/0xa)+-parseInt(_0x29f81c(0x1cd))/0xb;if(_0x38283b===_0x52da66)break;else _0x213d41['push'](_0x213d41['shift']());}catch(_0x2d6c54){_0x213d41['push'](_0x213d41['shift']());}}}(a157_0x4a85,0x53613));function a157_0x4a85(){const _0x265334=['145818BsBpqZ','filter','3774912NGfzdC','length','5WcDeTM','664308tPVQQS','indexOf','name','10AvEeag','code','35Bstgrd','mybatisXml','isFile','sqlCode','path','.sql','sqlName','mode','isDirectory','push','dbName','replace','3604062BkmHxr','1301268bJLqbd','10OEucmy','ENOENT','toLowerCase','10830HcAIGR','dbId','496864nYIYca','sql','test','slice'];a157_0x4a85=function(){return _0x265334;};return a157_0x4a85();}import{readdir,stat}from'node:fs/promises';function a157_0x385e(_0x355fc8,_0x45bb61){_0x355fc8=_0x355fc8-0x1bd;const _0x4a8526=a157_0x4a85();let _0x385ef0=_0x4a8526[_0x355fc8];return _0x385ef0;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1f1a42){const _0x5866af=a157_0x385e;if(_0x1f1a42===_0x5866af(0x1c6))return'sql';if(_0x1f1a42==='.xml')return _0x5866af(0x1c2);return undefined;}async function scanSqlFilesRecursively(_0x43a443,_0x536c01){const _0x3ec197=a157_0x385e,_0x166beb=[];try{const _0x6720f6=await readdir(_0x43a443,{'withFileTypes':!![]});for(const _0x517e11 of _0x6720f6){const _0x547f54=join(_0x43a443,_0x517e11[_0x3ec197(0x1be)]);if(_0x517e11[_0x3ec197(0x1c9)]()){_0x166beb['push'](...await scanSqlFilesRecursively(_0x547f54,_0x536c01));continue;}if(!_0x517e11[_0x3ec197(0x1c3)]())continue;const _0x3c3e71=extname(_0x517e11[_0x3ec197(0x1be)])[_0x3ec197(0x1d1)](),_0x2bf61f=extensionToMode(_0x3c3e71);if(!_0x2bf61f)continue;const _0x2425a4=relative(_0x536c01,_0x547f54)[_0x3ec197(0x1cc)](/\\/g,'/'),_0x444f42=_0x2425a4['split']('/')[_0x3ec197(0x1d9)](Boolean),_0x458409=parseSqlPath(_0x444f42,_0x517e11[_0x3ec197(0x1be)],_0x3c3e71);if(!_0x458409)continue;_0x166beb[_0x3ec197(0x1ca)]({'sqlCode':_0x458409[_0x3ec197(0x1c4)],'sqlName':_0x458409[_0x3ec197(0x1c7)],'dbDirectory':_0x444f42[0x0],'filePath':_0x547f54,'relativePath':_0x2425a4,'lockKey':_0x458409[_0x3ec197(0x1c4)],'mode':_0x2bf61f});}}catch(_0x4f4fb4){if(_0x4f4fb4[_0x3ec197(0x1c0)]!==_0x3ec197(0x1d0))throw _0x4f4fb4;}return _0x166beb;}export async function scanLocalSqlQueries(_0x233efc){return scanSqlFilesRecursively(_0x233efc['sqlRootDir'],_0x233efc['sqlRootDir']);}export function resolveLocalSqlFilePath(_0xc62ade,_0x554823,_0x136d75){const _0x318b32=a157_0x385e,_0x339489=_0x136d75?.[_0x318b32(0x1c5)]||(_0x136d75?.['sqlName']||_0x136d75?.[_0x318b32(0x1cb)]?buildSqlRelativePath(_0x554823,_0x136d75?.[_0x318b32(0x1c7)],_0x136d75?.[_0x318b32(0x1cb)],_0x136d75?.[_0x318b32(0x1c8)]||_0x318b32(0x1d5),_0x136d75?.[_0x318b32(0x1d3)]):buildDefaultSqlFileName(_0x554823,_0x136d75?.['mode']||'sql'));return join(_0xc62ade['sqlRootDir'],_0x339489);}export async function directoryExists(_0x149619){const _0x2ac370=a157_0x385e;try{const _0x4819a0=await stat(_0x149619);return _0x4819a0[_0x2ac370(0x1c9)]();}catch{return![];}}function parseSqlPath(_0x58548b,_0x395d7a,_0x49fbdc){const _0x533017=a157_0x385e,_0x6e1ffd=_0x395d7a[_0x533017(0x1d7)](0x0,-_0x49fbdc[_0x533017(0x1db)]);if(_0x58548b[_0x533017(0x1db)]<0x2)return null;const _0x49b351=_0x6e1ffd[_0x533017(0x1bd)]('_');if(_0x49b351<=0x0||_0x49b351>=_0x6e1ffd[_0x533017(0x1db)]-0x1)return null;const _0x114d84=_0x6e1ffd[_0x533017(0x1d7)](0x0,_0x49b351);if(!isLikelySqlCode(_0x114d84))return null;return{'sqlCode':_0x114d84,'sqlName':_0x6e1ffd[_0x533017(0x1d7)](_0x49b351+0x1)};}function isLikelySqlCode(_0x4906a7){const _0x5a2e93=a157_0x385e;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x5a2e93(0x1d6)](_0x4906a7);}
1
+ function a158_0x67a7(_0x59ec42,_0x4b7731){_0x59ec42=_0x59ec42-0xce;const _0x1b544f=a158_0x1b54();let _0x67a721=_0x1b544f[_0x59ec42];return _0x67a721;}(function(_0x575eb2,_0x408e7a){const _0x47d493=a158_0x67a7,_0xf606e9=_0x575eb2();while(!![]){try{const _0x2299fc=parseInt(_0x47d493(0xe9))/0x1*(parseInt(_0x47d493(0xdc))/0x2)+parseInt(_0x47d493(0xde))/0x3*(-parseInt(_0x47d493(0xd9))/0x4)+-parseInt(_0x47d493(0xeb))/0x5+parseInt(_0x47d493(0xda))/0x6*(parseInt(_0x47d493(0xef))/0x7)+parseInt(_0x47d493(0xd7))/0x8*(-parseInt(_0x47d493(0xd4))/0x9)+-parseInt(_0x47d493(0xea))/0xa+parseInt(_0x47d493(0xe3))/0xb;if(_0x2299fc===_0x408e7a)break;else _0xf606e9['push'](_0xf606e9['shift']());}catch(_0x30d651){_0xf606e9['push'](_0xf606e9['shift']());}}}(a158_0x1b54,0xc4c21));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a158_0x1b54(){const _0x5d551e=['sql','sqlCode','35053359UFznjH','.sql','mybatisXml','.xml','dbName','name','186157bRkdim','12531250krOkUX','926925fPPIKQ','indexOf','split','sqlRootDir','371QHgmnI','path','code','mode','dbId','slice','length','1935xvcnGm','isDirectory','replace','22296SBlrFA','sqlName','116EsBPCI','81228fxbobd','filter','4pixWDF','push','148227hLnqpL','ENOENT','isFile'];a158_0x1b54=function(){return _0x5d551e;};return a158_0x1b54();}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xf3f866){const _0x5cc6c6=a158_0x67a7;if(_0xf3f866===_0x5cc6c6(0xe4))return _0x5cc6c6(0xe1);if(_0xf3f866===_0x5cc6c6(0xe6))return _0x5cc6c6(0xe5);return undefined;}async function scanSqlFilesRecursively(_0x7b5bad,_0x3e1e3c){const _0x64f2f2=a158_0x67a7,_0x14aae8=[];try{const _0x4817ac=await readdir(_0x7b5bad,{'withFileTypes':!![]});for(const _0x163241 of _0x4817ac){const _0x3d7898=join(_0x7b5bad,_0x163241[_0x64f2f2(0xe8)]);if(_0x163241[_0x64f2f2(0xd5)]()){_0x14aae8['push'](...await scanSqlFilesRecursively(_0x3d7898,_0x3e1e3c));continue;}if(!_0x163241[_0x64f2f2(0xe0)]())continue;const _0x2b1e47=extname(_0x163241['name'])['toLowerCase'](),_0x3c1719=extensionToMode(_0x2b1e47);if(!_0x3c1719)continue;const _0x482394=relative(_0x3e1e3c,_0x3d7898)[_0x64f2f2(0xd6)](/\\/g,'/'),_0x1e1c9b=_0x482394[_0x64f2f2(0xed)]('/')[_0x64f2f2(0xdb)](Boolean),_0x476c22=parseSqlPath(_0x1e1c9b,_0x163241[_0x64f2f2(0xe8)],_0x2b1e47);if(!_0x476c22)continue;_0x14aae8[_0x64f2f2(0xdd)]({'sqlCode':_0x476c22[_0x64f2f2(0xe2)],'sqlName':_0x476c22[_0x64f2f2(0xd8)],'dbDirectory':_0x1e1c9b[0x0],'filePath':_0x3d7898,'relativePath':_0x482394,'lockKey':_0x476c22[_0x64f2f2(0xe2)],'mode':_0x3c1719});}}catch(_0x1e8632){if(_0x1e8632[_0x64f2f2(0xcf)]!==_0x64f2f2(0xdf))throw _0x1e8632;}return _0x14aae8;}export async function scanLocalSqlQueries(_0x37cdee){const _0x2a73cf=a158_0x67a7;return scanSqlFilesRecursively(_0x37cdee[_0x2a73cf(0xee)],_0x37cdee['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x5b00b5,_0x5ca2df,_0x1b0a54){const _0x3148f8=a158_0x67a7,_0x57b51c=_0x1b0a54?.[_0x3148f8(0xce)]||(_0x1b0a54?.[_0x3148f8(0xd8)]||_0x1b0a54?.[_0x3148f8(0xe7)]?buildSqlRelativePath(_0x5ca2df,_0x1b0a54?.['sqlName'],_0x1b0a54?.[_0x3148f8(0xe7)],_0x1b0a54?.[_0x3148f8(0xd0)]||_0x3148f8(0xe1),_0x1b0a54?.[_0x3148f8(0xd1)]):buildDefaultSqlFileName(_0x5ca2df,_0x1b0a54?.['mode']||'sql'));return join(_0x5b00b5[_0x3148f8(0xee)],_0x57b51c);}export async function directoryExists(_0x45d172){try{const _0x44ed83=await stat(_0x45d172);return _0x44ed83['isDirectory']();}catch{return![];}}function parseSqlPath(_0x15f78d,_0x26a822,_0x2a7f1a){const _0x43a372=a158_0x67a7,_0x23cb46=_0x26a822[_0x43a372(0xd2)](0x0,-_0x2a7f1a[_0x43a372(0xd3)]);if(_0x15f78d[_0x43a372(0xd3)]<0x2)return null;const _0x5ab1f7=_0x23cb46[_0x43a372(0xec)]('_');if(_0x5ab1f7<=0x0||_0x5ab1f7>=_0x23cb46[_0x43a372(0xd3)]-0x1)return null;const _0x1cf485=_0x23cb46[_0x43a372(0xd2)](0x0,_0x5ab1f7);if(!isLikelySqlCode(_0x1cf485))return null;return{'sqlCode':_0x1cf485,'sqlName':_0x23cb46[_0x43a372(0xd2)](_0x5ab1f7+0x1)};}function isLikelySqlCode(_0x407147){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x407147);}
@@ -1 +1 @@
1
- function a158_0x2521(){const _0x1c1b4a=['72608YbrIuB','utf8','5936470iPOjQy','3907434KPGWrp','32HUXtKr','205731JEfeVp','1600PEabBK','createHash','hex','4RiXJTE','digest','1789116JkgmMS','6524182vLEgOc','11016576Hsbdyk'];a158_0x2521=function(){return _0x1c1b4a;};return a158_0x2521();}(function(_0x4dbb86,_0x5f5139){const _0x13b631=a158_0x1739,_0x2e0966=_0x4dbb86();while(!![]){try{const _0x49e72a=-parseInt(_0x13b631(0x12a))/0x1*(-parseInt(_0x13b631(0x126))/0x2)+parseInt(_0x13b631(0x129))/0x3+parseInt(_0x13b631(0x12f))/0x4*(parseInt(_0x13b631(0x128))/0x5)+parseInt(_0x13b631(0x131))/0x6+-parseInt(_0x13b631(0x132))/0x7+parseInt(_0x13b631(0x133))/0x8+parseInt(_0x13b631(0x12b))/0x9*(-parseInt(_0x13b631(0x12c))/0xa);if(_0x49e72a===_0x5f5139)break;else _0x2e0966['push'](_0x2e0966['shift']());}catch(_0x9085e8){_0x2e0966['push'](_0x2e0966['shift']());}}}(a158_0x2521,0xb400c));import{readFile}from'node:fs/promises';import a158_0x155be6 from'node:crypto';function a158_0x1739(_0x20cec7,_0x354685){_0x20cec7=_0x20cec7-0x126;const _0x252167=a158_0x2521();let _0x17397e=_0x252167[_0x20cec7];return _0x17397e;}export function computeSqlContentHash(_0x11a573){const _0x3241e6=a158_0x1739;return a158_0x155be6[_0x3241e6(0x12d)]('md5')['update'](_0x11a573)[_0x3241e6(0x130)](_0x3241e6(0x12e));}export async function computeSqlFileHash(_0x69c0c6){const _0x1544db=a158_0x1739,_0x153e9a=await readFile(_0x69c0c6,_0x1544db(0x127));return computeSqlContentHash(_0x153e9a);}
1
+ (function(_0xb93c8,_0x1a2220){const _0x4178e6=a159_0x44a8,_0x5b9551=_0xb93c8();while(!![]){try{const _0x35876f=parseInt(_0x4178e6(0xb6))/0x1*(parseInt(_0x4178e6(0xb1))/0x2)+parseInt(_0x4178e6(0xb5))/0x3*(parseInt(_0x4178e6(0xad))/0x4)+parseInt(_0x4178e6(0xab))/0x5*(-parseInt(_0x4178e6(0xb7))/0x6)+parseInt(_0x4178e6(0xa9))/0x7*(parseInt(_0x4178e6(0xb2))/0x8)+parseInt(_0x4178e6(0xa6))/0x9*(-parseInt(_0x4178e6(0xb4))/0xa)+-parseInt(_0x4178e6(0xae))/0xb+-parseInt(_0x4178e6(0xb8))/0xc*(parseInt(_0x4178e6(0xaa))/0xd);if(_0x35876f===_0x1a2220)break;else _0x5b9551['push'](_0x5b9551['shift']());}catch(_0x554145){_0x5b9551['push'](_0x5b9551['shift']());}}}(a159_0x46e2,0xbe0cc));function a159_0x44a8(_0x9e435d,_0x241d61){_0x9e435d=_0x9e435d-0xa6;const _0x46e2dc=a159_0x46e2();let _0x44a8df=_0x46e2dc[_0x9e435d];return _0x44a8df;}import{readFile}from'node:fs/promises';import a159_0x5c2bf7 from'node:crypto';export function computeSqlContentHash(_0xc29490){const _0x3fe220=a159_0x44a8;return a159_0x5c2bf7[_0x3fe220(0xac)](_0x3fe220(0xaf))[_0x3fe220(0xb0)](_0xc29490)[_0x3fe220(0xa8)](_0x3fe220(0xb3));}function a159_0x46e2(){const _0x20f3e1=['2737900JDKVvp','md5','update','69766dGZNXA','32socnqt','hex','570FiqRsF','2475OulEmr','29QdBEYJ','272202UmLnyk','252WIPJbD','46980YdveKv','utf8','digest','418614JIbpLJ','489411uLylXs','35BFvNtE','createHash','5732HyYYKQ'];a159_0x46e2=function(){return _0x20f3e1;};return a159_0x46e2();}export async function computeSqlFileHash(_0x2b260c){const _0x5ba6ce=a159_0x44a8,_0x248570=await readFile(_0x2b260c,_0x5ba6ce(0xa7));return computeSqlContentHash(_0x248570);}
@@ -1 +1 @@
1
- (function(_0x3fefd7,_0x30bc8c){const _0x58c7b4=a159_0x1362,_0x20f943=_0x3fefd7();while(!![]){try{const _0x203dbc=-parseInt(_0x58c7b4(0x17c))/0x1*(parseInt(_0x58c7b4(0x177))/0x2)+parseInt(_0x58c7b4(0x175))/0x3*(parseInt(_0x58c7b4(0x17e))/0x4)+parseInt(_0x58c7b4(0x179))/0x5*(parseInt(_0x58c7b4(0x176))/0x6)+parseInt(_0x58c7b4(0x178))/0x7+parseInt(_0x58c7b4(0x17d))/0x8+parseInt(_0x58c7b4(0x180))/0x9+-parseInt(_0x58c7b4(0x17f))/0xa;if(_0x203dbc===_0x30bc8c)break;else _0x20f943['push'](_0x20f943['shift']());}catch(_0x40ae74){_0x20f943['push'](_0x20f943['shift']());}}}(a159_0x1d65,0x63d26));function a159_0x1362(_0x49d3eb,_0x5228d0){_0x49d3eb=_0x49d3eb-0x172;const _0x1d6542=a159_0x1d65();let _0x136293=_0x1d6542[_0x49d3eb];return _0x136293;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x154c1f,_0xbf37e9,_0x450db3,_0x40069d){const _0x7eac2c=a159_0x1362,_0x224ff8=_0x154c1f??createEmptySqlLock();let _0x12ac81=_0x224ff8['apps'][_0xbf37e9];if(!_0x12ac81)return _0x12ac81={'sqlRoot':_0x450db3,'lastSync':'','sqls':{}},_0x224ff8[_0x7eac2c(0x173)][_0xbf37e9]=_0x12ac81,{'lockData':_0x224ff8,'appLock':_0x12ac81};if(!_0x12ac81[_0x7eac2c(0x184)])_0x12ac81[_0x7eac2c(0x184)]=_0x450db3;else{if(_0x12ac81['sqlRoot']!==_0x450db3)throw new Error(_0x40069d+_0x7eac2c(0x17a)+_0x450db3+'\x22\x20vs\x20lock\x20\x22'+_0x12ac81[_0x7eac2c(0x184)]+_0x7eac2c(0x182)+_0x7eac2c(0x183));}return!_0x12ac81[_0x7eac2c(0x172)]&&(_0x12ac81[_0x7eac2c(0x172)]={}),!_0x12ac81['lastSync']&&(_0x12ac81['lastSync']=''),{'lockData':_0x224ff8,'appLock':_0x12ac81};}export async function readSqlLockFile(_0x31bcee){const _0x34dd7e=a159_0x1362;try{const _0x579c11=await readFile(_0x31bcee,'utf8');return JSON[_0x34dd7e(0x174)](_0x579c11);}catch(_0x306669){if(_0x306669[_0x34dd7e(0x17b)]==='ENOENT')return null;throw new Error(_0x34dd7e(0x181)+String(_0x306669));}}export async function writeSqlLockFile(_0x1de185,_0x14f1ca){await mkdir(dirname(_0x1de185),{'recursive':!![]}),await writeFile(_0x1de185,JSON['stringify'](_0x14f1ca,null,0x2),'utf8');}function a159_0x1d65(){const _0x4328fe=['\x22.\x20','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','sqlRoot','sqls','apps','parse','21WPJNjB','193356CbsFzC','22EVTeWd','5496414woyZLw','110clHRYq',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','code','53077GJnULX','5279144VbNbNb','40964bwtRmB','13369990pDRNUq','935658dKYZJe','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'];a159_0x1d65=function(){return _0x4328fe;};return a159_0x1d65();}
1
+ function a160_0x4a04(){const _0x121d17=['parse','6vurDFJ','478318suMmvk','230ScECGp','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','2310ejrSOf','utf8','ENOENT','sqls','apps','sqlRoot','81460epQVnE','\x22\x20vs\x20lock\x20\x22','1704IItLbA','1134394nCWght','33RMmqlc','2367EQOlie','\x22.\x20','3649812dDYnqi','34076AxAjVM','code','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10880024sOMDzu','stringify'];a160_0x4a04=function(){return _0x121d17;};return a160_0x4a04();}(function(_0x29dcdb,_0x24b4d3){const _0x410d3f=a160_0x5866,_0x504997=_0x29dcdb();while(!![]){try{const _0xb52c4d=parseInt(_0x410d3f(0x14d))/0x1+-parseInt(_0x410d3f(0x159))/0x2*(parseInt(_0x410d3f(0x158))/0x3)+-parseInt(_0x410d3f(0x14a))/0x4*(parseInt(_0x410d3f(0x15a))/0x5)+parseInt(_0x410d3f(0x14c))/0x6*(parseInt(_0x410d3f(0x152))/0x7)+-parseInt(_0x410d3f(0x155))/0x8+parseInt(_0x410d3f(0x14f))/0x9*(parseInt(_0x410d3f(0x15d))/0xa)+-parseInt(_0x410d3f(0x14e))/0xb*(-parseInt(_0x410d3f(0x151))/0xc);if(_0xb52c4d===_0x24b4d3)break;else _0x504997['push'](_0x504997['shift']());}catch(_0x322903){_0x504997['push'](_0x504997['shift']());}}}(a160_0x4a04,0xae8f9));import{mkdir,readFile,writeFile}from'node:fs/promises';function a160_0x5866(_0x2d7a13,_0x378901){_0x2d7a13=_0x2d7a13-0x145;const _0x4a0436=a160_0x4a04();let _0x586692=_0x4a0436[_0x2d7a13];return _0x586692;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x2a559e,_0x17233b,_0x198fd7,_0x3faa5c){const _0x2ee500=a160_0x5866,_0x5e9abc=_0x2a559e??createEmptySqlLock();let _0x354122=_0x5e9abc[_0x2ee500(0x148)][_0x17233b];if(!_0x354122)return _0x354122={'sqlRoot':_0x198fd7,'lastSync':'','sqls':{}},_0x5e9abc[_0x2ee500(0x148)][_0x17233b]=_0x354122,{'lockData':_0x5e9abc,'appLock':_0x354122};if(!_0x354122[_0x2ee500(0x149)])_0x354122[_0x2ee500(0x149)]=_0x198fd7;else{if(_0x354122[_0x2ee500(0x149)]!==_0x198fd7)throw new Error(_0x3faa5c+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x198fd7+_0x2ee500(0x14b)+_0x354122['sqlRoot']+_0x2ee500(0x150)+_0x2ee500(0x154));}return!_0x354122[_0x2ee500(0x147)]&&(_0x354122[_0x2ee500(0x147)]={}),!_0x354122[_0x2ee500(0x15b)]&&(_0x354122[_0x2ee500(0x15b)]=''),{'lockData':_0x5e9abc,'appLock':_0x354122};}export async function readSqlLockFile(_0x1a3808){const _0x37d02d=a160_0x5866;try{const _0x3b1b55=await readFile(_0x1a3808,_0x37d02d(0x145));return JSON[_0x37d02d(0x157)](_0x3b1b55);}catch(_0x13dd5e){if(_0x13dd5e[_0x37d02d(0x153)]===_0x37d02d(0x146))return null;throw new Error(_0x37d02d(0x15c)+String(_0x13dd5e));}}export async function writeSqlLockFile(_0x2e942f,_0x297b41){const _0x1e8ff9=a160_0x5866;await mkdir(dirname(_0x2e942f),{'recursive':!![]}),await writeFile(_0x2e942f,JSON[_0x1e8ff9(0x156)](_0x297b41,null,0x2),_0x1e8ff9(0x145));}
@@ -1 +1 @@
1
- (function(_0x251a96,_0x4b3917){const _0xd3090a=a161_0x9385,_0x1aea39=_0x251a96();while(!![]){try{const _0x1d6191=-parseInt(_0xd3090a(0x11a))/0x1+-parseInt(_0xd3090a(0x111))/0x2+-parseInt(_0xd3090a(0x122))/0x3*(-parseInt(_0xd3090a(0x110))/0x4)+-parseInt(_0xd3090a(0x120))/0x5*(-parseInt(_0xd3090a(0x11f))/0x6)+parseInt(_0xd3090a(0x117))/0x7+parseInt(_0xd3090a(0x11b))/0x8+parseInt(_0xd3090a(0x116))/0x9*(-parseInt(_0xd3090a(0x11d))/0xa);if(_0x1d6191===_0x4b3917)break;else _0x1aea39['push'](_0x1aea39['shift']());}catch(_0x142603){_0x1aea39['push'](_0x1aea39['shift']());}}}(a161_0x2aa7,0x8a82d));function a161_0x2aa7(){const _0x102bab=['2939482hbsztv','sql','trimStart','279655YMQJGn','8827480BwCcVQ','test','2407660SiawhD','unknown-db','1086EeGYfh','9290dHUskA','trim','14607Zffzzg','448XquEII','708322FDiYER','unknown-sql','.sql','replace','mybatisXml','45hpgTjm'];a161_0x2aa7=function(){return _0x102bab;};return a161_0x2aa7();}export function detectSqlMode(_0xfb9223){const _0x47e436=a161_0x9385,_0x26e6c8=_0xfb9223[_0x47e436(0x119)]();if(/^<(select|insert|update|delete)\b/i[_0x47e436(0x11c)](_0x26e6c8))return _0x47e436(0x115);return _0x47e436(0x118);}function a161_0x9385(_0x248993,_0x212bdb){_0x248993=_0x248993-0x110;const _0x2aa758=a161_0x2aa7();let _0x9385ca=_0x2aa758[_0x248993];return _0x9385ca;}export function getSqlFileExtension(_0x1159bf){const _0x14c7f4=a161_0x9385;return _0x1159bf===_0x14c7f4(0x115)?'.xml':_0x14c7f4(0x113);}export function buildDefaultSqlFileName(_0x63f2fd,_0x2c800c){return''+_0x63f2fd+getSqlFileExtension(_0x2c800c);}export function sanitizeSqlPathSegment(_0x2207d6,_0x427ccf){const _0xdbd2c6=a161_0x9385,_0x580af5=String(_0x2207d6??'')[_0xdbd2c6(0x121)](),_0xbe88d3=_0x580af5['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0xdbd2c6(0x114)](/\s+/g,'-')[_0xdbd2c6(0x114)](/-+/g,'-')['replace'](/^\.+/,'')[_0xdbd2c6(0x114)](/\.+$/,'')[_0xdbd2c6(0x114)](/^-+/,'')[_0xdbd2c6(0x114)](/-+$/,'');return _0xbe88d3||_0x427ccf;}export function buildDbDirectoryName(_0x393e75,_0x1c4323){const _0x15fbec=a161_0x9385;return sanitizeSqlPathSegment(_0x393e75,_0x1c4323!=null?'db-'+_0x1c4323:_0x15fbec(0x11e));}export function buildSqlRelativePath(_0x37c18a,_0xbaf22f,_0x190bab,_0x4a125f,_0x1f09a4){const _0xef8ba4=a161_0x9385,_0x5d5343=buildDbDirectoryName(_0x190bab,_0x1f09a4),_0x38aaa8=sanitizeSqlPathSegment(_0x37c18a,_0xef8ba4(0x112)),_0x4d67e1=sanitizeSqlPathSegment(_0xbaf22f,_0x38aaa8);return _0x5d5343+'/'+_0x38aaa8+'_'+_0x4d67e1+getSqlFileExtension(_0x4a125f);}
1
+ (function(_0x3877d0,_0x2673f8){const _0x400bc0=a162_0x9aee,_0x124a5d=_0x3877d0();while(!![]){try{const _0x16438e=parseInt(_0x400bc0(0x147))/0x1+-parseInt(_0x400bc0(0x142))/0x2+parseInt(_0x400bc0(0x14b))/0x3+-parseInt(_0x400bc0(0x140))/0x4+parseInt(_0x400bc0(0x145))/0x5+parseInt(_0x400bc0(0x144))/0x6+-parseInt(_0x400bc0(0x148))/0x7;if(_0x16438e===_0x2673f8)break;else _0x124a5d['push'](_0x124a5d['shift']());}catch(_0x55bad4){_0x124a5d['push'](_0x124a5d['shift']());}}}(a162_0x27f8,0x27eb1));export function detectSqlMode(_0x1ec223){const _0x3ac37a=a162_0x9aee,_0x45443a=_0x1ec223[_0x3ac37a(0x149)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x45443a))return _0x3ac37a(0x13f);return _0x3ac37a(0x143);}function a162_0x9aee(_0x2da86a,_0x118d02){_0x2da86a=_0x2da86a-0x13f;const _0x27f8d8=a162_0x27f8();let _0x9aeef5=_0x27f8d8[_0x2da86a];return _0x9aeef5;}export function getSqlFileExtension(_0x22b462){const _0x49931b=a162_0x9aee;return _0x22b462==='mybatisXml'?'.xml':_0x49931b(0x146);}function a162_0x27f8(){const _0x43fc9b=['trimStart','db-','458238iyOFNS','unknown-db','mybatisXml','835756dFFWlj','replace','209448CbPKVe','sql','480546ZxjAxu','1379765zkhdGF','.sql','92162hhePBj','866488kKrwGe'];a162_0x27f8=function(){return _0x43fc9b;};return a162_0x27f8();}export function buildDefaultSqlFileName(_0x15897c,_0x2bdd8b){return''+_0x15897c+getSqlFileExtension(_0x2bdd8b);}export function sanitizeSqlPathSegment(_0x55b23d,_0x56f389){const _0x2e86ce=a162_0x9aee,_0x4a1656=String(_0x55b23d??'')['trim'](),_0x28cef8=_0x4a1656[_0x2e86ce(0x141)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x2e86ce(0x141)](/\.+$/,'')[_0x2e86ce(0x141)](/^-+/,'')[_0x2e86ce(0x141)](/-+$/,'');return _0x28cef8||_0x56f389;}export function buildDbDirectoryName(_0x250bb9,_0x546bd3){const _0x45b7c1=a162_0x9aee;return sanitizeSqlPathSegment(_0x250bb9,_0x546bd3!=null?_0x45b7c1(0x14a)+_0x546bd3:_0x45b7c1(0x14c));}export function buildSqlRelativePath(_0x173a8b,_0x301636,_0x2859a7,_0xb7645b,_0x8a6f9f){const _0x462f2c=buildDbDirectoryName(_0x2859a7,_0x8a6f9f),_0x4e972a=sanitizeSqlPathSegment(_0x173a8b,'unknown-sql'),_0x2eb89a=sanitizeSqlPathSegment(_0x301636,_0x4e972a);return _0x462f2c+'/'+_0x4e972a+'_'+_0x2eb89a+getSqlFileExtension(_0xb7645b);}
@@ -1 +1 @@
1
- (function(_0x3b5906,_0x5cc186){const _0x57e812=a162_0x2c77,_0x383aeb=_0x3b5906();while(!![]){try{const _0x5b1d30=parseInt(_0x57e812(0xab))/0x1*(-parseInt(_0x57e812(0x96))/0x2)+parseInt(_0x57e812(0x89))/0x3*(parseInt(_0x57e812(0xa8))/0x4)+-parseInt(_0x57e812(0x86))/0x5*(parseInt(_0x57e812(0x95))/0x6)+-parseInt(_0x57e812(0x82))/0x7+-parseInt(_0x57e812(0xaa))/0x8*(-parseInt(_0x57e812(0x83))/0x9)+parseInt(_0x57e812(0x85))/0xa+parseInt(_0x57e812(0xa1))/0xb*(parseInt(_0x57e812(0xad))/0xc);if(_0x5b1d30===_0x5cc186)break;else _0x383aeb['push'](_0x383aeb['shift']());}catch(_0x255104){_0x383aeb['push'](_0x383aeb['shift']());}}}(a162_0x27eb,0xad0d1));export function detectSqlType(_0x288402){const _0x1ca117=a162_0x2c77;if(!_0x288402?.[_0x1ca117(0xa0)]())return{'type':_0x1ca117(0x94),'isSelectOnly':![],'isDangerous':![],'reason':_0x1ca117(0x8c)};const _0x3eceef=_0x288402[_0x1ca117(0x9f)](/#\{[^}]*\}/g,'?')[_0x1ca117(0x9f)](/\$\{[^}]*\}/g,'?')[_0x1ca117(0x9f)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x1ca117(0x9f)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x3fd8d9=_0x3eceef[_0x1ca117(0x8f)]('\x0a');let _0x4f090b='';for(const _0x5a0613 of _0x3fd8d9){const _0x34940e=_0x5a0613[_0x1ca117(0xa0)]();if(!_0x34940e||_0x34940e['startsWith']('--')||_0x34940e[_0x1ca117(0x97)]('/*'))continue;_0x4f090b=_0x34940e;break;}const _0x17703d=_0x4f090b[_0x1ca117(0x8d)]();if(_0x17703d['startsWith']('SELECT')||_0x17703d[_0x1ca117(0x97)](_0x1ca117(0x9d))){const _0x793c95=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1ca117(0xa3)](_0x3eceef);return{'type':_0x1ca117(0xa7),'isSelectOnly':!_0x793c95,'isDangerous':_0x793c95,'reason':_0x793c95?_0x1ca117(0x8a):undefined};}if(_0x17703d[_0x1ca117(0x97)](_0x1ca117(0xac)))return{'type':_0x1ca117(0xac),'isSelectOnly':![],'isDangerous':![]};if(_0x17703d[_0x1ca117(0x97)]('UPDATE'))return{'type':_0x1ca117(0x91),'isSelectOnly':![],'isDangerous':![]};if(_0x17703d[_0x1ca117(0x97)](_0x1ca117(0x8b)))return{'type':_0x1ca117(0x8b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1ca117(0x93)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x1ca117(0xa3)](_0x17703d))return{'type':_0x1ca117(0x84),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1ca117(0x88)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a162_0x27eb(){const _0x35d676=['8178vfUnvc','2kWjRJe','startsWith','from','match','type','isDangerous','unknown\x20table(s)','WITH','\x20query\x20targeting\x20','replace','trim','19063REDDwg','\x20with\x20parameters:\x20','test','length','add','join','SELECT','43984UGLSZG','reason','8efMlRT','941527oHfyhx','INSERT','5844XuWjDP','2364138vULmvP','1461015CyredH','DDL','8666190bojXgc','465wSzjQn','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','66ZWDrFN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE','SQL\x20content\x20is\x20empty','toUpperCase','matchAll','split','push','UPDATE','includes','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','UNKNOWN'];a162_0x27eb=function(){return _0x35d676;};return a162_0x27eb();}function extractTables(_0x432250){const _0x25bae4=a162_0x2c77,_0x95b562=_0x432250[_0x25bae4(0x9f)](/#\{[^}]*\}/g,'?')[_0x25bae4(0x9f)](/\$\{[^}]*\}/g,'?')[_0x25bae4(0x9f)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0xe4cdf3=[],_0x240a18=_0x95b562['match'](/FROM\s+([^\s,)(]+)/i);if(_0x240a18?.[0x1])_0xe4cdf3[_0x25bae4(0x90)](_0x240a18[0x1]['replace'](/[`"]/g,''));for(const _0x7dd907 of _0x95b562['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4d1036=_0x7dd907[0x1]?.[_0x25bae4(0x9f)](/[`"]/g,'');if(_0x4d1036&&!_0xe4cdf3[_0x25bae4(0x92)](_0x4d1036))_0xe4cdf3['push'](_0x4d1036);}const _0x54d32d=_0x95b562[_0x25bae4(0x99)](/INTO\s+([^\s(]+)/i);if(_0x54d32d?.[0x1]){const _0x506bdb=_0x54d32d[0x1][_0x25bae4(0x9f)](/[`"]/g,'');if(!_0xe4cdf3[_0x25bae4(0x92)](_0x506bdb))_0xe4cdf3[_0x25bae4(0x90)](_0x506bdb);}const _0x4c43e9=_0x95b562[_0x25bae4(0x99)](/UPDATE\s+([^\s,)(]+)/i);if(_0x4c43e9?.[0x1]){const _0x497822=_0x4c43e9[0x1][_0x25bae4(0x9f)](/[`"]/g,'');if(!_0xe4cdf3[_0x25bae4(0x92)](_0x497822))_0xe4cdf3['push'](_0x497822);}return _0xe4cdf3;}function a162_0x2c77(_0x4f51fd,_0xa5514f){_0x4f51fd=_0x4f51fd-0x82;const _0x27ebdd=a162_0x27eb();let _0x2c77e3=_0x27ebdd[_0x4f51fd];return _0x2c77e3;}function extractParameters(_0x58e2f7){const _0x224041=a162_0x2c77,_0x54c39=new Set();for(const _0x136361 of _0x58e2f7[_0x224041(0x8e)](/#\{(\w+)\}/g))if(_0x136361[0x1])_0x54c39[_0x224041(0xa5)](_0x136361[0x1]);for(const _0x128fa7 of _0x58e2f7[_0x224041(0x8e)](/\$\{(\w+)\}/g))if(_0x128fa7[0x1])_0x54c39[_0x224041(0xa5)](_0x128fa7[0x1]);return Array[_0x224041(0x98)](_0x54c39);}export function validateSql(_0x2c624a){const _0x1a4910=a162_0x2c77,_0x45c76d=detectSqlType(_0x2c624a),_0x505bbc=extractTables(_0x2c624a),_0x376208=extractParameters(_0x2c624a);if(_0x45c76d[_0x1a4910(0x9b)])return{'valid':![],'sqlType':_0x45c76d,'tables':_0x505bbc,'parameters':_0x376208,'message':_0x45c76d[_0x1a4910(0xa9)]||_0x45c76d[_0x1a4910(0x9a)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x45c76d[_0x1a4910(0x9a)]===_0x1a4910(0x94))return{'valid':![],'sqlType':_0x45c76d,'tables':_0x505bbc,'parameters':_0x376208,'message':_0x1a4910(0x87)};return{'valid':!![],'sqlType':_0x45c76d,'tables':_0x505bbc,'parameters':_0x376208,'message':_0x45c76d['type']+_0x1a4910(0x9e)+(_0x505bbc[_0x1a4910(0xa4)]?_0x505bbc['join'](',\x20'):_0x1a4910(0x9c))+(_0x376208[_0x1a4910(0xa4)]?_0x1a4910(0xa2)+_0x376208[_0x1a4910(0xa6)](',\x20'):'')};}
1
+ function a163_0x3ba9(){const _0x156616=['startsWith','27110YcViRB','2991916inbcIg','push','WITH','2041506tkIWYp','5674935JejpRa','test','add','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','trim','23939xUpvuN','DDL','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','length','type','SQL\x20content\x20is\x20empty','split','replace','636enuHbv','9312eYHPgL','join','\x20query\x20targeting\x20','matchAll','369rbHoSM','7716250azYbcC','2lfSBTs','unknown\x20table(s)','SELECT','reason','\x20with\x20parameters:\x20','match','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UNKNOWN','includes'];a163_0x3ba9=function(){return _0x156616;};return a163_0x3ba9();}(function(_0x4f8c0c,_0x20c9c8){const _0x520ff2=a163_0x312f,_0x3ee94b=_0x4f8c0c();while(!![]){try{const _0x1c5efa=parseInt(_0x520ff2(0x1fd))/0x1+parseInt(_0x520ff2(0x20c))/0x2*(-parseInt(_0x520ff2(0x1f7))/0x3)+parseInt(_0x520ff2(0x1f4))/0x4+parseInt(_0x520ff2(0x1f3))/0x5*(parseInt(_0x520ff2(0x205))/0x6)+-parseInt(_0x520ff2(0x1f8))/0x7+-parseInt(_0x520ff2(0x206))/0x8*(-parseInt(_0x520ff2(0x20a))/0x9)+parseInt(_0x520ff2(0x20b))/0xa;if(_0x1c5efa===_0x20c9c8)break;else _0x3ee94b['push'](_0x3ee94b['shift']());}catch(_0x3896ca){_0x3ee94b['push'](_0x3ee94b['shift']());}}}(a163_0x3ba9,0xa4be8));export function detectSqlType(_0x5542c2){const _0xacd4ec=a163_0x312f;if(!_0x5542c2?.[_0xacd4ec(0x1fc)]())return{'type':_0xacd4ec(0x1f0),'isSelectOnly':![],'isDangerous':![],'reason':_0xacd4ec(0x202)};const _0x22e864=_0x5542c2[_0xacd4ec(0x204)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0xacd4ec(0x204)](/@[^(\s]+(\([^)]*\))?/g,'')[_0xacd4ec(0x204)](/\/\*[\s\S]*?\*\//g,'')[_0xacd4ec(0x1fc)](),_0x298ed4=_0x22e864[_0xacd4ec(0x203)]('\x0a');let _0x35e45d='';for(const _0x252e44 of _0x298ed4){const _0x2b178d=_0x252e44['trim']();if(!_0x2b178d||_0x2b178d[_0xacd4ec(0x1f2)]('--')||_0x2b178d[_0xacd4ec(0x1f2)]('/*'))continue;_0x35e45d=_0x2b178d;break;}const _0x457cca=_0x35e45d['toUpperCase']();if(_0x457cca['startsWith']('SELECT')||_0x457cca[_0xacd4ec(0x1f2)](_0xacd4ec(0x1f6))){const _0x31f0f5=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0xacd4ec(0x1f9)](_0x22e864);return{'type':_0xacd4ec(0x20e),'isSelectOnly':!_0x31f0f5,'isDangerous':_0x31f0f5,'reason':_0x31f0f5?_0xacd4ec(0x1ee):undefined};}if(_0x457cca[_0xacd4ec(0x1f2)]('INSERT'))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x457cca['startsWith']('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x457cca[_0xacd4ec(0x1f2)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0xacd4ec(0x1ff)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0xacd4ec(0x1f9)](_0x457cca))return{'type':_0xacd4ec(0x1fe),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0xacd4ec(0x1f0),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5676da){const _0x59b087=a163_0x312f,_0x32d857=_0x5676da[_0x59b087(0x204)](/#\{[^}]*\}/g,'?')[_0x59b087(0x204)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x59b087(0x204)](/--.*$/gm,'')[_0x59b087(0x204)](/\/\*[\s\S]*?\*\//g,''),_0x410c25=[],_0x2a1a28=_0x32d857[_0x59b087(0x1ed)](/FROM\s+([^\s,)(]+)/i);if(_0x2a1a28?.[0x1])_0x410c25['push'](_0x2a1a28[0x1][_0x59b087(0x204)](/[`"]/g,''));for(const _0x282455 of _0x32d857[_0x59b087(0x209)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x10aed8=_0x282455[0x1]?.['replace'](/[`"]/g,'');if(_0x10aed8&&!_0x410c25['includes'](_0x10aed8))_0x410c25[_0x59b087(0x1f5)](_0x10aed8);}const _0x3fb0f9=_0x32d857[_0x59b087(0x1ed)](/INTO\s+([^\s(]+)/i);if(_0x3fb0f9?.[0x1]){const _0x12631=_0x3fb0f9[0x1][_0x59b087(0x204)](/[`"]/g,'');if(!_0x410c25[_0x59b087(0x1f1)](_0x12631))_0x410c25['push'](_0x12631);}const _0x4c34de=_0x32d857[_0x59b087(0x1ed)](/UPDATE\s+([^\s,)(]+)/i);if(_0x4c34de?.[0x1]){const _0xf36906=_0x4c34de[0x1][_0x59b087(0x204)](/[`"]/g,'');if(!_0x410c25[_0x59b087(0x1f1)](_0xf36906))_0x410c25['push'](_0xf36906);}return _0x410c25;}function a163_0x312f(_0x41e331,_0x177a17){_0x41e331=_0x41e331-0x1ec;const _0x3ba993=a163_0x3ba9();let _0x312fad=_0x3ba993[_0x41e331];return _0x312fad;}function extractParameters(_0x3b78d9){const _0x206df1=a163_0x312f,_0x421f1f=new Set();for(const _0x39edca of _0x3b78d9['matchAll'](/#\{(\w+)\}/g))if(_0x39edca[0x1])_0x421f1f[_0x206df1(0x1fa)](_0x39edca[0x1]);for(const _0x324a87 of _0x3b78d9[_0x206df1(0x209)](/\$\{(\w+)\}/g))if(_0x324a87[0x1])_0x421f1f['add'](_0x324a87[0x1]);return Array['from'](_0x421f1f);}export function validateSql(_0x2ba98c){const _0x4ccc2b=a163_0x312f,_0x54e728=detectSqlType(_0x2ba98c),_0xb9dbec=extractTables(_0x2ba98c),_0x454b24=extractParameters(_0x2ba98c);if(_0x54e728['isDangerous'])return{'valid':![],'sqlType':_0x54e728,'tables':_0xb9dbec,'parameters':_0x454b24,'message':_0x54e728[_0x4ccc2b(0x20f)]||_0x54e728[_0x4ccc2b(0x201)]+_0x4ccc2b(0x1ef)};if(_0x54e728['type']===_0x4ccc2b(0x1f0))return{'valid':![],'sqlType':_0x54e728,'tables':_0xb9dbec,'parameters':_0x454b24,'message':_0x4ccc2b(0x1fb)};return{'valid':!![],'sqlType':_0x54e728,'tables':_0xb9dbec,'parameters':_0x454b24,'message':_0x54e728[_0x4ccc2b(0x201)]+_0x4ccc2b(0x208)+(_0xb9dbec[_0x4ccc2b(0x200)]?_0xb9dbec['join'](',\x20'):_0x4ccc2b(0x20d))+(_0x454b24[_0x4ccc2b(0x200)]?_0x4ccc2b(0x1ec)+_0x454b24[_0x4ccc2b(0x207)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a163_0x469f3e=a163_0x3502;function a163_0x3502(_0x2f0956,_0x265604){_0x2f0956=_0x2f0956-0x11b;const _0xb89477=a163_0xb894();let _0x350292=_0xb89477[_0x2f0956];return _0x350292;}(function(_0x19a4c8,_0x308f43){const _0x3b944e=a163_0x3502,_0x559a9c=_0x19a4c8();while(!![]){try{const _0x5f447a=parseInt(_0x3b944e(0x125))/0x1+-parseInt(_0x3b944e(0x122))/0x2+parseInt(_0x3b944e(0x11d))/0x3+parseInt(_0x3b944e(0x11c))/0x4*(-parseInt(_0x3b944e(0x129))/0x5)+parseInt(_0x3b944e(0x127))/0x6*(parseInt(_0x3b944e(0x120))/0x7)+parseInt(_0x3b944e(0x128))/0x8+-parseInt(_0x3b944e(0x126))/0x9*(parseInt(_0x3b944e(0x124))/0xa);if(_0x5f447a===_0x308f43)break;else _0x559a9c['push'](_0x559a9c['shift']());}catch(_0x33e24f){_0x559a9c['push'](_0x559a9c['shift']());}}}(a163_0xb894,0xa12a6));function a163_0xb894(){const _0xa5f9cb=['10145xSrWbp','\x0a\x20\x20\x20\x20\x20\x20\x20','2056XquxvL','3311487BOlCGz','Tip:\x20`','Run\x20`','24773dUiYRK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','407474SCZTgY','join','10VuEdFq','879295LUyYZB','13967379cgJfLd','1758KAQqHG','3509256anxMdt'];a163_0xb894=function(){return _0xa5f9cb;};return a163_0xb894();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x469f3e(0x11f)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a163_0x469f3e(0x11e)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a163_0x469f3e(0x123)](a163_0x469f3e(0x11b)),'notInProjectHint':a163_0x469f3e(0x121)});
1
+ const a164_0x338c21=a164_0x83c0;(function(_0x41873d,_0x347b59){const _0x1eda90=a164_0x83c0,_0x4a6f46=_0x41873d();while(!![]){try{const _0xfed98e=parseInt(_0x1eda90(0x147))/0x1+-parseInt(_0x1eda90(0x140))/0x2+parseInt(_0x1eda90(0x141))/0x3+-parseInt(_0x1eda90(0x13d))/0x4+parseInt(_0x1eda90(0x138))/0x5+-parseInt(_0x1eda90(0x144))/0x6*(-parseInt(_0x1eda90(0x145))/0x7)+parseInt(_0x1eda90(0x143))/0x8;if(_0xfed98e===_0x347b59)break;else _0x4a6f46['push'](_0x4a6f46['shift']());}catch(_0x4af6e3){_0x4a6f46['push'](_0x4a6f46['shift']());}}}(a164_0x472c,0xa8674));function a164_0x472c(){const _0x2a3a57=['31818fRyHzZ','791XarDfG','\x0a\x20\x20\x20\x20\x20\x20\x20','253916EnFPUB','4715225gpHGOJ','Tip:\x20`','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`','4926900USHPXF','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2408446OtKuDp','1751775QMzZAT','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','5964824phAUDV'];a164_0x472c=function(){return _0x2a3a57;};return a164_0x472c();}function a164_0x83c0(_0x318197,_0x5194dd){_0x318197=_0x318197-0x138;const _0x472cf8=a164_0x472c();let _0x83c0e9=_0x472cf8[_0x318197];return _0x83c0e9;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a164_0x338c21(0x13c)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x338c21(0x13e)+CLI_BIN_NAME+a164_0x338c21(0x142),a164_0x338c21(0x139)+CLI_BIN_NAME+a164_0x338c21(0x13f)][a164_0x338c21(0x13a)](a164_0x338c21(0x146)),'notInProjectHint':a164_0x338c21(0x13b)});
@@ -1 +1 @@
1
- (function(_0x1cd945,_0x297c0a){var _0x35ed45=a164_0x2563,_0x1e6f6a=_0x1cd945();while(!![]){try{var _0x9f02a9=-parseInt(_0x35ed45(0xce))/0x1*(-parseInt(_0x35ed45(0xd2))/0x2)+-parseInt(_0x35ed45(0xcf))/0x3+-parseInt(_0x35ed45(0xcb))/0x4+-parseInt(_0x35ed45(0xcc))/0x5+-parseInt(_0x35ed45(0xcd))/0x6+-parseInt(_0x35ed45(0xd0))/0x7+parseInt(_0x35ed45(0xd1))/0x8;if(_0x9f02a9===_0x297c0a)break;else _0x1e6f6a['push'](_0x1e6f6a['shift']());}catch(_0x2d009e){_0x1e6f6a['push'](_0x1e6f6a['shift']());}}}(a164_0x3630,0xe351a));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a164_0x2563(_0x53e30f,_0x4ee828){_0x53e30f=_0x53e30f-0xcb;var _0x3630e0=a164_0x3630();var _0x256370=_0x3630e0[_0x53e30f];return _0x256370;}function a164_0x3630(){var _0x482a47=['809fvVEbp','2505987pgXPlS','4250106lBcjJZ','23448568Yluuxr','3370FVfVVf','1491888TXBXmX','1701115nlpHoD','7244736OEQzzq'];a164_0x3630=function(){return _0x482a47;};return a164_0x3630();}import{buildAllFlags as a164_0x42ccb1}from'@lovrabet/cli-framework';export function buildAllFlags(_0x84df07){return a164_0x42ccb1(_0x84df07,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a165_0xf6a1(_0xe16539,_0x219d9){_0xe16539=_0xe16539-0xae;var _0x5e1d10=a165_0x5e1d();var _0xf6a18c=_0x5e1d10[_0xe16539];return _0xf6a18c;}function a165_0x5e1d(){var _0x12db1a=['963513IlTHkF','7NXimTN','695641FoAdOo','25DXBqjv','3399080cxSshM','351964qNoxPL','159840HleWLY','654549QlQLNy','308392rXbFJb','70yPUclx'];a165_0x5e1d=function(){return _0x12db1a;};return a165_0x5e1d();}(function(_0x7bde5c,_0x1f0806){var _0x2f4d81=a165_0xf6a1,_0x5e38bd=_0x7bde5c();while(!![]){try{var _0x30e9a1=-parseInt(_0x2f4d81(0xb1))/0x1+parseInt(_0x2f4d81(0xb7))/0x2+parseInt(_0x2f4d81(0xb6))/0x3+parseInt(_0x2f4d81(0xb4))/0x4*(parseInt(_0x2f4d81(0xb2))/0x5)+parseInt(_0x2f4d81(0xb5))/0x6+parseInt(_0x2f4d81(0xb0))/0x7*(-parseInt(_0x2f4d81(0xb3))/0x8)+parseInt(_0x2f4d81(0xaf))/0x9*(parseInt(_0x2f4d81(0xae))/0xa);if(_0x30e9a1===_0x1f0806)break;else _0x5e38bd['push'](_0x5e38bd['shift']());}catch(_0x1e2ac9){_0x5e38bd['push'](_0x5e38bd['shift']());}}}(a165_0x5e1d,0x72387));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x47a8f5}from'@lovrabet/cli-framework';export function buildAllFlags(_0x144027){return a165_0x47a8f5(_0x144027,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a165_0x242c17=a165_0x525d;(function(_0x29f091,_0x4b341a){const _0x1fab2f=a165_0x525d,_0x51a777=_0x29f091();while(!![]){try{const _0x5ad371=parseInt(_0x1fab2f(0x1a8))/0x1*(parseInt(_0x1fab2f(0x1a6))/0x2)+parseInt(_0x1fab2f(0x1aa))/0x3+parseInt(_0x1fab2f(0x1a4))/0x4*(-parseInt(_0x1fab2f(0x1a3))/0x5)+-parseInt(_0x1fab2f(0x1a1))/0x6+-parseInt(_0x1fab2f(0x1a5))/0x7+parseInt(_0x1fab2f(0x1a7))/0x8+-parseInt(_0x1fab2f(0x1a9))/0x9;if(_0x5ad371===_0x4b341a)break;else _0x51a777['push'](_0x51a777['shift']());}catch(_0x25241b){_0x51a777['push'](_0x51a777['shift']());}}}(a165_0x18a4,0x97e78));import{createFlagHelpers}from'@lovrabet/cli-framework';function a165_0x18a4(){const _0x569e31=['1085145WgYtGv','1431288dbucQU','parseFlags','2305yoYIBp','1524nIvXJz','3026926xDyqRR','1259684ekZjSA','9871360bJsWGr','1pBFkdW','6810030dlTxfx'];a165_0x18a4=function(){return _0x569e31;};return a165_0x18a4();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a165_0x525d(_0x169e67,_0x9a313d){_0x169e67=_0x169e67-0x1a1;const _0x18a418=a165_0x18a4();let _0x525d38=_0x18a418[_0x169e67];return _0x525d38;}export const parseFlags=helpers[a165_0x242c17(0x1a2)];export const validateFlags=helpers['validateFlags'];
1
+ function a166_0x2bfe(){const _0xf5c0a3=['4472648BWbdMK','1940544kfpTxI','350766xYruvp','14dbXqft','417657SHAWIM','709410PhJpqK','validateFlags','1108925LtoJVT','3218526UZcYZa'];a166_0x2bfe=function(){return _0xf5c0a3;};return a166_0x2bfe();}const a166_0x14838d=a166_0x5d0a;(function(_0x17811a,_0x41c8f3){const _0x4cc344=a166_0x5d0a,_0x45f055=_0x17811a();while(!![]){try{const _0x21e47a=-parseInt(_0x4cc344(0x197))/0x1+parseInt(_0x4cc344(0x195))/0x2+parseInt(_0x4cc344(0x198))/0x3+-parseInt(_0x4cc344(0x194))/0x4+parseInt(_0x4cc344(0x191))/0x5+-parseInt(_0x4cc344(0x192))/0x6+-parseInt(_0x4cc344(0x196))/0x7*(-parseInt(_0x4cc344(0x193))/0x8);if(_0x21e47a===_0x41c8f3)break;else _0x45f055['push'](_0x45f055['shift']());}catch(_0x5c8d7b){_0x45f055['push'](_0x45f055['shift']());}}}(a166_0x2bfe,0x4c50a));import{createFlagHelpers}from'@lovrabet/cli-framework';function a166_0x5d0a(_0x33d256,_0x5dfcda){_0x33d256=_0x33d256-0x191;const _0x2bfe0e=a166_0x2bfe();let _0x5d0a7a=_0x2bfe0e[_0x33d256];return _0x5d0a7a;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a166_0x14838d(0x199)];
@@ -1 +1 @@
1
- const a166_0x4b486e=a166_0x208a;(function(_0x1d8812,_0x36a588){const _0x40e6d5=a166_0x208a,_0x46eddb=_0x1d8812();while(!![]){try{const _0xbb2a8d=-parseInt(_0x40e6d5(0xce))/0x1*(parseInt(_0x40e6d5(0xca))/0x2)+-parseInt(_0x40e6d5(0xc8))/0x3+parseInt(_0x40e6d5(0xcc))/0x4+-parseInt(_0x40e6d5(0xd0))/0x5+parseInt(_0x40e6d5(0xd1))/0x6+parseInt(_0x40e6d5(0xcb))/0x7+parseInt(_0x40e6d5(0xc9))/0x8;if(_0xbb2a8d===_0x36a588)break;else _0x46eddb['push'](_0x46eddb['shift']());}catch(_0x3188c4){_0x46eddb['push'](_0x46eddb['shift']());}}}(a166_0x9f9c,0x63291));import{createHelpGenerators}from'@lovrabet/cli-framework';function a166_0x9f9c(){const _0x501f0d=['Requires\x20appcode\x20(set\x20via\x20`','2180124bdRPqZ','8560320JQgbhn','38890nPLPAr','198905njbUlu','64700kSFERQ','\x20project\x20init`\x20or\x20--appcode).','1lqXRGW','generateServiceHelp','1604615SBMxEy','2151642jTzvxX','get'];a166_0x9f9c=function(){return _0x501f0d;};return a166_0x9f9c();}function a166_0x208a(_0x9f946c,_0x31901e){_0x9f946c=_0x9f946c-0xc8;const _0x9f9c66=a166_0x9f9c();let _0x208a99=_0x9f9c66[_0x9f946c];return _0x208a99;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x30b6b7=>serviceGroups[a166_0x4b486e(0xd2)](_0x30b6b7),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x4b486e(0xd3)+CLI_BIN_NAME+a166_0x4b486e(0xcd),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x336636){return generators['generateCommandHelp'](_0x336636);}export const generateServiceHelp=generators[a166_0x4b486e(0xcf)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a167_0x1983f3=a167_0x49ab;(function(_0x40464f,_0x2ebcde){const _0x5f6dff=a167_0x49ab,_0x2057a1=_0x40464f();while(!![]){try{const _0x4974fb=-parseInt(_0x5f6dff(0x91))/0x1*(parseInt(_0x5f6dff(0x9f))/0x2)+parseInt(_0x5f6dff(0x96))/0x3*(-parseInt(_0x5f6dff(0x99))/0x4)+parseInt(_0x5f6dff(0x98))/0x5*(-parseInt(_0x5f6dff(0x93))/0x6)+-parseInt(_0x5f6dff(0x9d))/0x7*(parseInt(_0x5f6dff(0x9a))/0x8)+-parseInt(_0x5f6dff(0x9c))/0x9*(-parseInt(_0x5f6dff(0x92))/0xa)+parseInt(_0x5f6dff(0x9e))/0xb+parseInt(_0x5f6dff(0x94))/0xc;if(_0x4974fb===_0x2ebcde)break;else _0x2057a1['push'](_0x2057a1['shift']());}catch(_0x3b4739){_0x2057a1['push'](_0x2057a1['shift']());}}}(a167_0x1e82,0x9de36));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x394e45=>serviceGroups[a167_0x1983f3(0x97)](_0x394e45),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a167_0x1983f3(0xa0)+CLI_BIN_NAME+a167_0x1983f3(0x95),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x41c21d){const _0x312a4d=a167_0x1983f3;return generators[_0x312a4d(0x9b)](_0x41c21d);}function a167_0x49ab(_0x79482a,_0x326872){_0x79482a=_0x79482a-0x90;const _0x1e8263=a167_0x1e82();let _0x49ab34=_0x1e8263[_0x79482a];return _0x49ab34;}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a167_0x1983f3(0x90)];function a167_0x1e82(){const _0x1b7cc2=['261vrULLX','get','10Cvzpkh','24892OrmLdV','759592hwSzWR','generateCommandHelp','860850FWnfIq','7aYUSDY','11028083oIjATe','8pCijiw','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','122917AFRxLm','20CmjXvt','753888srIeJV','9986052YqBsQP','\x20project\x20init`\x20or\x20--appcode).'];a167_0x1e82=function(){return _0x1b7cc2;};return a167_0x1e82();}
@@ -1 +1 @@
1
- (function(_0x65e699,_0x580f01){var _0x230e1a=a167_0x1b7a,_0x57baec=_0x65e699();while(!![]){try{var _0x3cf107=parseInt(_0x230e1a(0x1ee))/0x1+parseInt(_0x230e1a(0x1f6))/0x2*(-parseInt(_0x230e1a(0x1f0))/0x3)+parseInt(_0x230e1a(0x1f3))/0x4+parseInt(_0x230e1a(0x1f5))/0x5+parseInt(_0x230e1a(0x1f1))/0x6*(-parseInt(_0x230e1a(0x1ef))/0x7)+parseInt(_0x230e1a(0x1f4))/0x8*(-parseInt(_0x230e1a(0x1f2))/0x9)+parseInt(_0x230e1a(0x1ed))/0xa;if(_0x3cf107===_0x580f01)break;else _0x57baec['push'](_0x57baec['shift']());}catch(_0x36c043){_0x57baec['push'](_0x57baec['shift']());}}}(a167_0x1c88,0x750af));export{runCommand}from'../framework/runner.js';function a167_0x1c88(){var _0x23dd40=['39513JONgfN','6slaSIb','618642asBQDZ','3223872XMikgg','104QEtmSp','4150300hGONKK','38fXPYcT','4789640gpcLFL','95729DcGRli','4112297VJRjbo'];a167_0x1c88=function(){return _0x23dd40;};return a167_0x1c88();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a167_0x1b7a(_0x42a43a,_0x4f8954){_0x42a43a=_0x42a43a-0x1ed;var _0x1c881d=a167_0x1c88();var _0x1b7aca=_0x1c881d[_0x42a43a];return _0x1b7aca;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x59d34f,_0x20abd2){var _0x4cbad5=a168_0x2454,_0x176727=_0x59d34f();while(!![]){try{var _0x263f8c=parseInt(_0x4cbad5(0xf9))/0x1+-parseInt(_0x4cbad5(0xfb))/0x2*(-parseInt(_0x4cbad5(0xfd))/0x3)+-parseInt(_0x4cbad5(0xfe))/0x4*(-parseInt(_0x4cbad5(0xfc))/0x5)+-parseInt(_0x4cbad5(0x100))/0x6+-parseInt(_0x4cbad5(0x102))/0x7+-parseInt(_0x4cbad5(0x101))/0x8+-parseInt(_0x4cbad5(0xfa))/0x9*(parseInt(_0x4cbad5(0xff))/0xa);if(_0x263f8c===_0x20abd2)break;else _0x176727['push'](_0x176727['shift']());}catch(_0x174793){_0x176727['push'](_0x176727['shift']());}}}(a168_0x2b7c,0x8b70c));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a168_0x2b7c(){var _0x5babc1=['8ypIYqV','26540HrJZMY','3659214nZEGGx','746720iWnmzG','3910277jSLJnA','843367izOuMw','189PGVwek','875762IbnIFj','1518635SAVBMP','3FZRvVC'];a168_0x2b7c=function(){return _0x5babc1;};return a168_0x2b7c();}export{formatOutput}from'../framework/output.js';function a168_0x2454(_0x2fb5e6,_0x5db262){_0x2fb5e6=_0x2fb5e6-0xf9;var _0x2b7ca5=a168_0x2b7c();var _0x245452=_0x2b7ca5[_0x2fb5e6];return _0x245452;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x5da733,_0x1b0be1){const _0x34157d=a168_0x519d,_0x38c921=_0x5da733();while(!![]){try{const _0x28c297=-parseInt(_0x34157d(0xc4))/0x1*(-parseInt(_0x34157d(0xbe))/0x2)+parseInt(_0x34157d(0xbd))/0x3*(-parseInt(_0x34157d(0xc5))/0x4)+parseInt(_0x34157d(0xc3))/0x5+-parseInt(_0x34157d(0xcb))/0x6+-parseInt(_0x34157d(0xc2))/0x7*(-parseInt(_0x34157d(0xca))/0x8)+-parseInt(_0x34157d(0xbf))/0x9*(parseInt(_0x34157d(0xc0))/0xa)+-parseInt(_0x34157d(0xcd))/0xb*(-parseInt(_0x34157d(0xcc))/0xc);if(_0x28c297===_0x1b0be1)break;else _0x38c921['push'](_0x38c921['shift']());}catch(_0x4120f4){_0x38c921['push'](_0x38c921['shift']());}}}(a168_0x5c3e,0x6574a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a168_0x5c3e(){const _0x4d0342=['390cLGPDZ','_notice','205135oxmiIv','1901365lRKslt','78mSIlYk','4AtQrdO','pretty','update','url','format','152pBTMGl','3259794mtIawz','1992ZBWxjR','2145utRWpl','message','971358xQNFGK','13046nFdaMx','45135bvHBKk'];a168_0x5c3e=function(){return _0x4d0342;};return a168_0x5c3e();}export function formatOutput(_0x3b137f,_0x27f4b3){const _0x54c6d7=a168_0x519d,_0x3fa247=_0x3b137f[_0x54c6d7(0xc1)],{_notice:_0x2ef38c,..._0x87b1ac}=_0x3b137f;void _0x2ef38c,baseFormatOutput(_0x87b1ac,_0x27f4b3),_0x27f4b3[_0x54c6d7(0xc9)]===_0x54c6d7(0xc6)&&printPrettyNotice(_0x3fa247);}function a168_0x519d(_0x32cbeb,_0x568fed){_0x32cbeb=_0x32cbeb-0xbc;const _0x5c3ec8=a168_0x5c3e();let _0x519ded=_0x5c3ec8[_0x32cbeb];return _0x519ded;}function printPrettyNotice(_0x3e152e){const _0x515c35=a168_0x519d;if(!_0x3e152e?.[_0x515c35(0xc7)])return;console['error'](_0x3e152e[_0x515c35(0xc7)][_0x515c35(0xbc)]+'\x20('+_0x3e152e[_0x515c35(0xc7)][_0x515c35(0xc8)]+')');}
1
+ (function(_0x13d0de,_0x4f4e01){const _0x9e210d=a169_0x3387,_0xef42aa=_0x13d0de();while(!![]){try{const _0x2d463a=parseInt(_0x9e210d(0x95))/0x1*(-parseInt(_0x9e210d(0x8d))/0x2)+parseInt(_0x9e210d(0x92))/0x3+parseInt(_0x9e210d(0x99))/0x4+-parseInt(_0x9e210d(0x97))/0x5+parseInt(_0x9e210d(0x93))/0x6+-parseInt(_0x9e210d(0x98))/0x7+-parseInt(_0x9e210d(0x94))/0x8*(parseInt(_0x9e210d(0x91))/0x9);if(_0x2d463a===_0x4f4e01)break;else _0xef42aa['push'](_0xef42aa['shift']());}catch(_0x38e181){_0xef42aa['push'](_0xef42aa['shift']());}}}(a169_0x3b22,0xf2764));function a169_0x3387(_0xe79f06,_0x5c65a1){_0xe79f06=_0xe79f06-0x8d;const _0x3b22f3=a169_0x3b22();let _0x338716=_0x3b22f3[_0xe79f06];return _0x338716;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a169_0x3b22(){const _0x16e740=['url','27rNLtqV','5555724xwPhBq','1023774QOFCVD','2359576dKkgJS','32203kWEdez','pretty','1274820ShtxKa','9092188WFuFHf','5765916dsRZVm','2xMFvRg','format','update'];a169_0x3b22=function(){return _0x16e740;};return a169_0x3b22();}export function formatOutput(_0x2f55e7,_0x4510d8){const _0x278c11=a169_0x3387,_0x41dfcf=_0x2f55e7['_notice'],{_notice:_0x24cfd6,..._0x9eebcf}=_0x2f55e7;void _0x24cfd6,baseFormatOutput(_0x9eebcf,_0x4510d8),_0x4510d8[_0x278c11(0x8e)]===_0x278c11(0x96)&&printPrettyNotice(_0x41dfcf);}function printPrettyNotice(_0x18f498){const _0x2320eb=a169_0x3387;if(!_0x18f498?.[_0x2320eb(0x8f)])return;console['error'](_0x18f498[_0x2320eb(0x8f)]['message']+'\x20('+_0x18f498[_0x2320eb(0x8f)][_0x2320eb(0x90)]+')');}
@@ -1 +1 @@
1
- (function(_0x1a06ad,_0x5c8750){var _0x17bfd5=a169_0x11ca,_0xe2d356=_0x1a06ad();while(!![]){try{var _0x3d8558=parseInt(_0x17bfd5(0x111))/0x1+parseInt(_0x17bfd5(0x10c))/0x2+-parseInt(_0x17bfd5(0x10d))/0x3+-parseInt(_0x17bfd5(0x10b))/0x4*(-parseInt(_0x17bfd5(0x10e))/0x5)+parseInt(_0x17bfd5(0x10a))/0x6*(parseInt(_0x17bfd5(0x109))/0x7)+parseInt(_0x17bfd5(0x10f))/0x8+-parseInt(_0x17bfd5(0x110))/0x9;if(_0x3d8558===_0x5c8750)break;else _0xe2d356['push'](_0xe2d356['shift']());}catch(_0x2db163){_0xe2d356['push'](_0xe2d356['shift']());}}}(a169_0x4222,0x1b1f0));function a169_0x4222(){var _0x3fa8b0=['2163xgmIDO','156uheMGZ','68NywDPT','344714Pdvmed','621894tgAuhw','19370mwOOTc','778312iscEIv','1293066dixoYr','118522KPTwfR'];a169_0x4222=function(){return _0x3fa8b0;};return a169_0x4222();}function a169_0x11ca(_0x3c6056,_0x3765c4){_0x3c6056=_0x3c6056-0x109;var _0x422261=a169_0x4222();var _0x11ca0a=_0x422261[_0x3c6056];return _0x11ca0a;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a170_0x1115(_0x2a2cda,_0x1c5b94){_0x2a2cda=_0x2a2cda-0x15c;var _0x1daf49=a170_0x1daf();var _0x1115ae=_0x1daf49[_0x2a2cda];return _0x1115ae;}(function(_0x45301b,_0x2986a4){var _0x38acaf=a170_0x1115,_0x480100=_0x45301b();while(!![]){try{var _0x249a52=parseInt(_0x38acaf(0x164))/0x1*(parseInt(_0x38acaf(0x15e))/0x2)+parseInt(_0x38acaf(0x163))/0x3+parseInt(_0x38acaf(0x160))/0x4*(-parseInt(_0x38acaf(0x165))/0x5)+parseInt(_0x38acaf(0x15c))/0x6+parseInt(_0x38acaf(0x15d))/0x7*(parseInt(_0x38acaf(0x166))/0x8)+-parseInt(_0x38acaf(0x15f))/0x9*(parseInt(_0x38acaf(0x161))/0xa)+-parseInt(_0x38acaf(0x162))/0xb;if(_0x249a52===_0x2986a4)break;else _0x480100['push'](_0x480100['shift']());}catch(_0x52d609){_0x480100['push'](_0x480100['shift']());}}}(a170_0x1daf,0x35a7b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0x1daf(){var _0x3dd44c=['20xQffJJ','9NWwMUQ','204OZmhgO','2196290OsCINp','1002683uqGSip','831783gYxtxe','7215mMBdkk','11365wzCYzc','360152lwUwat','701934xBVeoH','28gzGaoO'];a170_0x1daf=function(){return _0x3dd44c;};return a170_0x1daf();}
@@ -1 +1 @@
1
- (function(_0xa02142,_0x578747){const _0xd11fd=a170_0x36b4,_0x484bfb=_0xa02142();while(!![]){try{const _0x229e56=parseInt(_0xd11fd(0xbe))/0x1*(parseInt(_0xd11fd(0xbc))/0x2)+-parseInt(_0xd11fd(0xba))/0x3*(parseInt(_0xd11fd(0xbb))/0x4)+-parseInt(_0xd11fd(0xb7))/0x5*(-parseInt(_0xd11fd(0xcc))/0x6)+-parseInt(_0xd11fd(0xcd))/0x7+-parseInt(_0xd11fd(0xb9))/0x8+-parseInt(_0xd11fd(0xc9))/0x9+parseInt(_0xd11fd(0xcb))/0xa;if(_0x229e56===_0x578747)break;else _0x484bfb['push'](_0x484bfb['shift']());}catch(_0x1e0866){_0x484bfb['push'](_0x484bfb['shift']());}}}(a170_0x1543,0x4bc98));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x36b4(_0x299692,_0x43dd27){_0x299692=_0x299692-0xb7;const _0x154399=a170_0x1543();let _0x36b4e4=_0x154399[_0x299692];return _0x36b4e4;}function a170_0x1543(){const _0x5066d2=['.\x20Run\x20`','flags','alias','code','432270vyWenk','type','7614500KFTujK','354wGOwjU','1690591UFfPcR','validation','46975HnhklX','name','3704272LkwyFx','18AKCxRf','207708LumRbV','29404xBTqfA','string','4BhCMfi','No\x20api.ts\x20found\x20in\x20','some','join','length','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a170_0x1543=function(){return _0x5066d2;};return a170_0x1543();}export function resolveAliasToCode(_0x53a068,_0x2855ca,_0x1031fe,_0x3f67fb){const _0xd62011=a170_0x36b4,_0xa664fe=_0x53a068['flags'][_0xd62011(0xc0)](_0x4eb5b8=>_0x4eb5b8['name']===_0xd62011(0xc8)&&_0x4eb5b8[_0xd62011(0xca)]===_0xd62011(0xbd)),_0xe8fac9=_0x53a068[_0xd62011(0xc6)][_0xd62011(0xc0)](_0x4c057a=>_0x4c057a[_0xd62011(0xb8)]===_0xd62011(0xc7)&&_0x4c057a[_0xd62011(0xca)]===_0xd62011(0xbd));if(!_0xa664fe||!_0xe8fac9)return;const _0x15e1fd=_0x2855ca[_0xd62011(0xc8)]?String(_0x2855ca['code']):'',_0xc758af=_0x2855ca['alias']?String(_0x2855ca['alias']):'';if(!_0x15e1fd&&!_0xc758af)throw CliErrors[_0xd62011(0xce)]('`'+_0x3f67fb+_0xd62011(0xc4));if(_0xc758af&&!_0x15e1fd){const _0x3c0150=resolveAlias(_0x1031fe,_0xc758af);if(!_0x3c0150){const _0x4c5eef=listAliases(_0x1031fe)['map'](_0x28c76f=>_0x28c76f[_0xd62011(0xc7)]),_0x2178e5=_0x4c5eef[_0xd62011(0xc2)]?'Available\x20aliases:\x20'+_0x4c5eef[_0xd62011(0xc1)](',\x20'):_0xd62011(0xbf)+_0x1031fe+_0xd62011(0xc5)+CLI_BIN_NAME+_0xd62011(0xc3);throw CliErrors[_0xd62011(0xce)]('Unknown\x20alias\x20\x22'+_0xc758af+'\x22.\x20'+_0x2178e5);}_0x2855ca[_0xd62011(0xc8)]=_0x3c0150;}}
1
+ (function(_0x357b7c,_0x57a4bc){const _0x27d297=a171_0x1319,_0xe3b678=_0x357b7c();while(!![]){try{const _0x2164dc=-parseInt(_0x27d297(0x89))/0x1*(-parseInt(_0x27d297(0x87))/0x2)+parseInt(_0x27d297(0x93))/0x3+-parseInt(_0x27d297(0x86))/0x4+-parseInt(_0x27d297(0x80))/0x5+parseInt(_0x27d297(0x8a))/0x6+parseInt(_0x27d297(0x91))/0x7+parseInt(_0x27d297(0x85))/0x8*(parseInt(_0x27d297(0x8d))/0x9);if(_0x2164dc===_0x57a4bc)break;else _0xe3b678['push'](_0xe3b678['shift']());}catch(_0x96be02){_0xe3b678['push'](_0xe3b678['shift']());}}}(a171_0x359e,0xd73c4));function a171_0x359e(){const _0x2ed0fc=['\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','8hCnEjj','5057892DEyEwS','1427254odcEOL','alias','2azOxPO','1525194LmjjIP','\x22.\x20','Available\x20aliases:\x20','5249466lzBvXx','flags','validation','name','7052255QftMwa','string','758238QaUDgn','code','some','type','.\x20Run\x20`','6894305lRdrCh','length','join'];a171_0x359e=function(){return _0x2ed0fc;};return a171_0x359e();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a171_0x1319(_0x33b7fc,_0x4a0ca1){_0x33b7fc=_0x33b7fc-0x7e;const _0x359e13=a171_0x359e();let _0x131912=_0x359e13[_0x33b7fc];return _0x131912;}export function resolveAliasToCode(_0x3142df,_0x20beea,_0x22612c,_0x485de0){const _0x4d2cb5=a171_0x1319,_0x49713b=_0x3142df['flags']['some'](_0x2937c8=>_0x2937c8['name']==='code'&&_0x2937c8[_0x4d2cb5(0x7e)]===_0x4d2cb5(0x92)),_0x443bc9=_0x3142df[_0x4d2cb5(0x8e)][_0x4d2cb5(0x95)](_0x141d78=>_0x141d78[_0x4d2cb5(0x90)]===_0x4d2cb5(0x88)&&_0x141d78[_0x4d2cb5(0x7e)]==='string');if(!_0x49713b||!_0x443bc9)return;const _0x3f943f=_0x20beea[_0x4d2cb5(0x94)]?String(_0x20beea[_0x4d2cb5(0x94)]):'',_0x57065c=_0x20beea[_0x4d2cb5(0x88)]?String(_0x20beea['alias']):'';if(!_0x3f943f&&!_0x57065c)throw CliErrors[_0x4d2cb5(0x8f)]('`'+_0x485de0+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x57065c&&!_0x3f943f){const _0x3b9375=resolveAlias(_0x22612c,_0x57065c);if(!_0x3b9375){const _0x1db676=listAliases(_0x22612c)['map'](_0x391589=>_0x391589[_0x4d2cb5(0x88)]),_0xae5c1c=_0x1db676[_0x4d2cb5(0x81)]?_0x4d2cb5(0x8c)+_0x1db676[_0x4d2cb5(0x82)](',\x20'):_0x4d2cb5(0x84)+_0x22612c+_0x4d2cb5(0x7f)+CLI_BIN_NAME+_0x4d2cb5(0x83);throw CliErrors['validation']('Unknown\x20alias\x20\x22'+_0x57065c+_0x4d2cb5(0x8b)+_0xae5c1c);}_0x20beea['code']=_0x3b9375;}}
@@ -1 +1 @@
1
- const a171_0x5e4f62=a171_0x5b74;(function(_0x230acd,_0x480ab0){const _0x131f13=a171_0x5b74,_0x487d9c=_0x230acd();while(!![]){try{const _0x52b51f=-parseInt(_0x131f13(0x18b))/0x1*(parseInt(_0x131f13(0x1b3))/0x2)+-parseInt(_0x131f13(0x187))/0x3+-parseInt(_0x131f13(0x185))/0x4+parseInt(_0x131f13(0x19d))/0x5*(parseInt(_0x131f13(0x19e))/0x6)+-parseInt(_0x131f13(0x1ac))/0x7+-parseInt(_0x131f13(0x1a8))/0x8*(parseInt(_0x131f13(0x193))/0x9)+parseInt(_0x131f13(0x1b4))/0xa;if(_0x52b51f===_0x480ab0)break;else _0x487d9c['push'](_0x487d9c['shift']());}catch(_0x541f68){_0x487d9c['push'](_0x487d9c['shift']());}}}(a171_0x5d3c,0x94031));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a171_0x528b5d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1cfd6b){const _0x3a1d4f=a171_0x5b74;return typeof _0x1cfd6b===_0x3a1d4f(0x1af)&&_0x1cfd6b['trim']()?_0x1cfd6b[_0x3a1d4f(0x191)]():undefined;}function resolveEnvAppCode(){const _0x5996e8=a171_0x5b74,_0x1f5dc2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1f5dc2)return{'name':_0x5996e8(0x199),'value':_0x1f5dc2};const _0x1ad32a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1ad32a)return{'name':_0x5996e8(0x1a7),'value':_0x1ad32a};return undefined;}function hasExplicitAppCode(_0x286c67,_0x3cc602){const _0x404dac=a171_0x5b74;return!!(stringFlag(_0x286c67[_0x404dac(0x1a9)])||stringFlag(_0x3cc602['appcode']));}function a171_0x5b74(_0x30993a,_0x50991e){_0x30993a=_0x30993a-0x180;const _0x5d3c52=a171_0x5d3c();let _0x5b740e=_0x5d3c52[_0x30993a];return _0x5b740e;}function assertEnvAppCodeNotIgnored(_0x1a07a0,_0x52a6da,_0x27bde5){const _0x2f32e8=a171_0x5b74;if(!_0x52a6da||_0x27bde5||_0x1a07a0===_0x52a6da[_0x2f32e8(0x19f)])return;const _0x2cec42=_0x1a07a0?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x1a07a0+'\x22.':_0x2f32e8(0x198);throw CliErrors['validation'](_0x52a6da[_0x2f32e8(0x18a)]+'='+_0x52a6da[_0x2f32e8(0x19f)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x2cec42+'\x20'+(_0x2f32e8(0x1a4)+_0x52a6da[_0x2f32e8(0x18a)]+'\x22.'));}export function createPipelineEnv(_0x313da9,_0x3d27c6,_0x1a1e88=[]){const _0x37bd5c=a171_0x5b74;return{'rawFlags':_0x3d27c6,'args':_0x1a1e88,'resolveAppCode':()=>_0x313da9[_0x37bd5c(0x195)],'resolveCookie':()=>_0x313da9[_0x37bd5c(0x18d)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x528b5d(_0x3d27c6),'defaultFormat':_0x313da9['format'],'defaultPageSize':_0x313da9[_0x37bd5c(0x1b7)],'defaultVerbose':_0x313da9[_0x37bd5c(0x1aa)],'apiDir':_0x313da9[_0x37bd5c(0x1b0)],'riskLevel':_0x313da9['riskLevel'],'selectedAppName':_0x313da9['explicitAppName'],'mergedCli':{'defaultApp':_0x313da9[_0x37bd5c(0x1bb)],'currentApp':_0x313da9[_0x37bd5c(0x1a5)],'appCode':_0x313da9[_0x37bd5c(0x195)],'apps':_0x313da9[_0x37bd5c(0x194)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x5e4f62(0x1a2)](_0x46a6cd=>PIPELINE_FLAG_NAMES[a171_0x5e4f62(0x1a0)](_0x46a6cd[a171_0x5e4f62(0x18a)]))[a171_0x5e4f62(0x184)](({name:_0x272683,type:_0x35325e,description:_0x5ebd0a})=>({'name':_0x272683,'type':_0x35325e,'description':_0x5ebd0a})),'formatOutput':formatOutput,'getCommandLabel'(_0x33b2d7){const _0x3231fb=a171_0x5e4f62;return CLI_BIN_NAME+'\x20'+_0x33b2d7[_0x3231fb(0x192)]+'\x20'+_0x33b2d7[_0x3231fb(0x1ae)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5dace0){return CliErrors['validation'](_0x5dace0);}},async 'prepare'(_0x115b67,_0x9cb69,_0x5d3785,_0x42a8e8){const _0x1c63fb=a171_0x5e4f62,_0x4401db=_0x9cb69['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x115b67,_0x5d3785,_0x4401db,_0x42a8e8);let _0x83d685='';if(_0x115b67[_0x1c63fb(0x1b1)]!==![]){_0x83d685=_0x9cb69[_0x1c63fb(0x188)]();if(!_0x83d685)throw CliErrors[_0x1c63fb(0x19b)]();const {setActiveCookie:_0x59aa28}=await import(_0x1c63fb(0x19a));_0x59aa28(_0x83d685);}const _0xc78e0f=_0x9cb69['resolveAppCode']()??'';if(_0x115b67[_0x1c63fb(0x1a1)]!==![]){assertEnvAppCodeNotIgnored(_0xc78e0f,resolveEnvAppCode(),hasExplicitAppCode(_0x5d3785,_0x9cb69[_0x1c63fb(0x1b5)]));if(!_0xc78e0f)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x1c63fb(0x1a3));}return{'defaults':{'booleans':{'verbose':_0x9cb69[_0x1c63fb(0x182)]},'numbers':{'pagesize':_0x9cb69[_0x1c63fb(0x1ad)]}},'extras':{'appCode':_0xc78e0f,'cookie':_0x83d685,'apiDomain':_0x9cb69['resolveApiDomain'](),'apiDir':_0x4401db,'selectedAppName':_0x9cb69[_0x1c63fb(0x190)],'mergedCli':_0x9cb69[_0x1c63fb(0x18e)]}};},async 'confirmHighRisk'({env:_0x46e568,commandLabel:_0x5c53bb}){const _0x4cac22=a171_0x5e4f62;if(_0x46e568[_0x4cac22(0x181)])throw CliErrors[_0x4cac22(0x1a6)](_0x4cac22(0x186)+_0x5c53bb+_0x4cac22(0x18f));await requireConfirmationPrompt({'lines':[_0x4cac22(0x1ab)+_0x5c53bb,_0x4cac22(0x1b2)],'createCancelledError':_0x163460=>CliErrors[_0x4cac22(0x183)](_0x163460)});},async 'finalize'(){const _0x21e451=a171_0x5e4f62,{clearActiveCookie:_0xc6c296}=await import(_0x21e451(0x19a));_0xc6c296();}};export async function runCommand(_0x3e9a96,_0x124814){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3e9a96)?withUpdateNotice(_0x3e9a96):_0x3e9a96,_0x124814,runnerAdapter);}function a171_0x5d3c(){const _0x46304c=['update','format','defaultApp','includes','isNonInteractive','defaultVerbose','cancelled','map','3169904DYjuUo','High-risk\x20operation\x20`','3085395OXmEcv','resolveCookie','execute','name','213jisbXT','doctor','cookie','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','selectedAppName','trim','service','23049FTTbAs','apps','appCode','schema','resolve','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','RABETBASE_APPCODE','../core/api-client.js','authRequired','nonInteractive','5blCXXM','1059054vCsMGn','value','has','requiresAppCode','filter','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','currentApp','validation','LOVRABET_APPCODE','1464ggTpVc','appcode','verbose','⚠\x20\x20High-risk\x20operation:\x20','8093617aYEnnr','defaultPageSize','command','string','apiDir','requiresAuth','\x20\x20\x20Continue?\x20[y/N]\x20','4692kIZTEd','43752810KFtAKF','rawFlags','object','pageSize','_notice'];a171_0x5d3c=function(){return _0x46304c;};return a171_0x5d3c();}function shouldAttachUpdateNotice(_0x51fde3){const _0x4d1d46=a171_0x5e4f62;if(_0x51fde3['hasFormat']===![])return![];return![_0x4d1d46(0x1b9),_0x4d1d46(0x196),_0x4d1d46(0x18c)][_0x4d1d46(0x180)](_0x51fde3['service']);}function withUpdateNotice(_0x18ccd8){return{..._0x18ccd8,async 'execute'(_0x385af1){const _0x5c5bc3=a171_0x5b74,_0x15ceb2=shouldResolveUpdateNotice(_0x385af1)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x5c5bc3(0x197)](null),_0x593ecb=await _0x18ccd8[_0x5c5bc3(0x189)](_0x385af1);return attachUpdateNotice(_0x593ecb,await _0x15ceb2);}};}function shouldResolveUpdateNotice(_0x151f81){const _0x45194f=a171_0x5e4f62;return _0x151f81[_0x45194f(0x1ba)]==='pretty'&&!_0x151f81[_0x45194f(0x19c)];}function attachUpdateNotice(_0x4835e9,_0x5c5e14){const _0x4585b9=a171_0x5e4f62;if(!_0x5c5e14||!_0x4835e9||typeof _0x4835e9!==_0x4585b9(0x1b6))return _0x4835e9;const _0x328125=_0x4835e9,_0x5fb10c=typeof _0x328125['_notice']===_0x4585b9(0x1b6)&&_0x328125[_0x4585b9(0x1b8)]!==null?_0x328125[_0x4585b9(0x1b8)]:{};return{..._0x328125,'_notice':{..._0x5fb10c,'update':_0x5c5e14}};}
1
+ const a172_0x4b0d30=a172_0x10d2;(function(_0x35e643,_0x4f1a56){const _0x5621ad=a172_0x10d2,_0x4a9a16=_0x35e643();while(!![]){try{const _0x22c405=parseInt(_0x5621ad(0x105))/0x1*(parseInt(_0x5621ad(0x121))/0x2)+parseInt(_0x5621ad(0x11a))/0x3*(parseInt(_0x5621ad(0x101))/0x4)+parseInt(_0x5621ad(0x11e))/0x5*(-parseInt(_0x5621ad(0xfb))/0x6)+parseInt(_0x5621ad(0x125))/0x7+parseInt(_0x5621ad(0x12c))/0x8+parseInt(_0x5621ad(0x117))/0x9*(-parseInt(_0x5621ad(0x12b))/0xa)+-parseInt(_0x5621ad(0x100))/0xb*(-parseInt(_0x5621ad(0x10b))/0xc);if(_0x22c405===_0x4f1a56)break;else _0x4a9a16['push'](_0x4a9a16['shift']());}catch(_0x5434f4){_0x4a9a16['push'](_0x4a9a16['shift']());}}}(a172_0x33ce,0xa920f));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a172_0x10d2(_0x255ef4,_0x7e155e){_0x255ef4=_0x255ef4-0xf0;const _0x33ce2a=a172_0x33ce();let _0x10d2f0=_0x33ce2a[_0x255ef4];return _0x10d2f0;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0x541802}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4bf3a7){const _0x314bd6=a172_0x10d2;return typeof _0x4bf3a7===_0x314bd6(0x10f)&&_0x4bf3a7[_0x314bd6(0x11f)]()?_0x4bf3a7[_0x314bd6(0x11f)]():undefined;}function resolveEnvAppCode(){const _0x549ef3=a172_0x10d2,_0x5edc10=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5edc10)return{'name':_0x549ef3(0x108),'value':_0x5edc10};const _0x3a4af5=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3a4af5)return{'name':_0x549ef3(0xf4),'value':_0x3a4af5};return undefined;}function hasExplicitAppCode(_0x192499,_0x51d303){const _0x5f3efe=a172_0x10d2;return!!(stringFlag(_0x192499['appcode'])||stringFlag(_0x51d303[_0x5f3efe(0x120)]));}function assertEnvAppCodeNotIgnored(_0x35a2d1,_0x57dc89,_0x2315ea){const _0x3e454f=a172_0x10d2;if(!_0x57dc89||_0x2315ea||_0x35a2d1===_0x57dc89['value'])return;const _0x2144f8=_0x35a2d1?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x35a2d1+'\x22.':_0x3e454f(0x112);throw CliErrors['validation'](_0x57dc89['name']+'='+_0x57dc89[_0x3e454f(0x12e)]+_0x3e454f(0x12a)+_0x2144f8+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x57dc89['name']+'\x22.'));}export function createPipelineEnv(_0x4b3123,_0x34e932,_0x2ebe28=[]){const _0x40210a=a172_0x10d2;return{'rawFlags':_0x34e932,'args':_0x2ebe28,'resolveAppCode':()=>_0x4b3123[_0x40210a(0x104)],'resolveCookie':()=>_0x4b3123['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x541802(_0x34e932),'defaultFormat':_0x4b3123[_0x40210a(0x114)],'defaultPageSize':_0x4b3123[_0x40210a(0x10d)],'defaultVerbose':_0x4b3123[_0x40210a(0x106)],'apiDir':_0x4b3123['apiDir'],'riskLevel':_0x4b3123[_0x40210a(0xf7)],'selectedAppName':_0x4b3123[_0x40210a(0x111)],'mergedCli':{'defaultApp':_0x4b3123[_0x40210a(0x10c)],'currentApp':_0x4b3123[_0x40210a(0xf8)],'appCode':_0x4b3123[_0x40210a(0x104)],'apps':_0x4b3123[_0x40210a(0x11d)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x4b0d30(0x102)](_0x1f6cef=>PIPELINE_FLAG_NAMES[a172_0x4b0d30(0x10e)](_0x1f6cef['name']))[a172_0x4b0d30(0x119)](({name:_0x488a9b,type:_0x5aa659,description:_0x31ef1b})=>({'name':_0x488a9b,'type':_0x5aa659,'description':_0x31ef1b})),'formatOutput':formatOutput,'getCommandLabel'(_0x21e3c6){const _0x3d76d8=a172_0x4b0d30;return CLI_BIN_NAME+'\x20'+_0x21e3c6['service']+'\x20'+_0x21e3c6[_0x3d76d8(0x109)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x5f53c4){return CliErrors['validation'](_0x5f53c4);}},async 'prepare'(_0x3459a2,_0x46e83e,_0x9fd99c,_0x19824d){const _0x25393b=a172_0x4b0d30,_0x5a3c18=_0x46e83e[_0x25393b(0x10a)]||DEFAULT_API_DIR;resolveAliasToCode(_0x3459a2,_0x9fd99c,_0x5a3c18,_0x19824d);let _0x4be754='';if(_0x3459a2[_0x25393b(0x113)]!==![]){_0x4be754=_0x46e83e['resolveCookie']();if(!_0x4be754)throw CliErrors[_0x25393b(0x129)]();const {setActiveCookie:_0x1cad4a}=await import('../core/api-client.js');_0x1cad4a(_0x4be754);}const _0xc0bfb6=_0x46e83e[_0x25393b(0xff)]()??'';if(_0x3459a2[_0x25393b(0xf2)]!==![]){assertEnvAppCodeNotIgnored(_0xc0bfb6,resolveEnvAppCode(),hasExplicitAppCode(_0x9fd99c,_0x46e83e[_0x25393b(0xfd)]));if(!_0xc0bfb6)throw CliErrors[_0x25393b(0xf6)](_0x25393b(0x116)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x46e83e['defaultVerbose']},'numbers':{'pagesize':_0x46e83e[_0x25393b(0x110)]}},'extras':{'appCode':_0xc0bfb6,'cookie':_0x4be754,'apiDomain':_0x46e83e[_0x25393b(0x122)](),'apiDir':_0x5a3c18,'selectedAppName':_0x46e83e[_0x25393b(0xfa)],'mergedCli':_0x46e83e[_0x25393b(0x124)]}};},async 'confirmHighRisk'({env:_0x3ed5f1,commandLabel:_0x1cbc71}){const _0x89b703=a172_0x4b0d30;if(_0x3ed5f1[_0x89b703(0xf3)])throw CliErrors['validation'](_0x89b703(0x115)+_0x1cbc71+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x89b703(0x12d)+_0x1cbc71,_0x89b703(0xfe)],'createCancelledError':_0x3efb98=>CliErrors[_0x89b703(0x11b)](_0x3efb98)});},async 'finalize'(){const _0x514fe6=a172_0x4b0d30,{clearActiveCookie:_0x1e4c35}=await import(_0x514fe6(0xf9));_0x1e4c35();}};export async function runCommand(_0x5d15ee,_0x6bfcfc){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5d15ee)?withUpdateNotice(_0x5d15ee):_0x5d15ee,_0x6bfcfc,runnerAdapter);}function shouldAttachUpdateNotice(_0x14a906){const _0x3a3119=a172_0x4b0d30;if(_0x14a906['hasFormat']===![])return![];return![_0x3a3119(0xfc),_0x3a3119(0x107),_0x3a3119(0xf0)][_0x3a3119(0x118)](_0x14a906[_0x3a3119(0x126)]);}function withUpdateNotice(_0x62481){return{..._0x62481,async 'execute'(_0x577144){const _0x5f0c26=a172_0x10d2,_0x4580e9=shouldResolveUpdateNotice(_0x577144)?resolveLatestUpdateNotice()[_0x5f0c26(0xf5)](()=>null):Promise[_0x5f0c26(0xf1)](null),_0x43d9ad=await _0x62481[_0x5f0c26(0x123)](_0x577144);return attachUpdateNotice(_0x43d9ad,await _0x4580e9);}};}function shouldResolveUpdateNotice(_0x427762){const _0x4eaef5=a172_0x4b0d30;return _0x427762['format']===_0x4eaef5(0x103)&&!_0x427762[_0x4eaef5(0x128)];}function attachUpdateNotice(_0x440547,_0x212be3){const _0x6d2ab1=a172_0x4b0d30;if(!_0x212be3||!_0x440547||typeof _0x440547!==_0x6d2ab1(0x11c))return _0x440547;const _0x3c54a4=_0x440547,_0x2ff2f0=typeof _0x3c54a4[_0x6d2ab1(0x127)]===_0x6d2ab1(0x11c)&&_0x3c54a4[_0x6d2ab1(0x127)]!==null?_0x3c54a4[_0x6d2ab1(0x127)]:{};return{..._0x3c54a4,'_notice':{..._0x2ff2f0,'update':_0x212be3}};}function a172_0x33ce(){const _0x2f560c=['map','20778fHoIkI','cancelled','object','apps','1990yzvSxZ','trim','appcode','1142aREBGu','resolveApiDomain','execute','mergedCli','2838108ZbiVDM','service','_notice','nonInteractive','authRequired','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','1412630CTCwIs','8670024lwHYxW','⚠\x20\x20High-risk\x20operation:\x20','value','doctor','resolve','requiresAppCode','isNonInteractive','LOVRABET_APPCODE','catch','configMissing','riskLevel','currentApp','../core/api-client.js','selectedAppName','18378tkswTk','update','rawFlags','\x20\x20\x20Continue?\x20[y/N]\x20','resolveAppCode','1496759euRBRZ','356aiByRH','filter','pretty','appCode','421ATrzHs','verbose','schema','RABETBASE_APPCODE','command','apiDir','24iKyxIY','defaultApp','pageSize','has','string','defaultPageSize','explicitAppName','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','requiresAuth','format','High-risk\x20operation\x20`','Set\x20appcode\x20via\x20`','45OgJQLf','includes'];a172_0x33ce=function(){return _0x2f560c;};return a172_0x33ce();}
@@ -1 +1 @@
1
- (function(_0x4ff368,_0xb0bbb0){const _0x3626ab=a172_0x5811,_0x31ce7d=_0x4ff368();while(!![]){try{const _0xe086a5=-parseInt(_0x3626ab(0x183))/0x1*(parseInt(_0x3626ab(0x185))/0x2)+parseInt(_0x3626ab(0x189))/0x3+parseInt(_0x3626ab(0x184))/0x4+parseInt(_0x3626ab(0x18b))/0x5*(parseInt(_0x3626ab(0x18a))/0x6)+-parseInt(_0x3626ab(0x186))/0x7+parseInt(_0x3626ab(0x188))/0x8+parseInt(_0x3626ab(0x187))/0x9;if(_0xe086a5===_0xb0bbb0)break;else _0x31ce7d['push'](_0x31ce7d['shift']());}catch(_0x149d06){_0x31ce7d['push'](_0x31ce7d['shift']());}}}(a172_0x5677,0xaa934));import{buildSchemaPayload as a172_0x45c3c1}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1c8204=a172_0x5811,{serviceRegistry:_0x1606a3,findDefinition:_0x1acac5}=await import(_0x1c8204(0x182));return a172_0x45c3c1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1606a3,'buildAllFlags':buildAllFlags,'findDefinition':_0x1acac5});}function a172_0x5811(_0x19948f,_0x1e2663){_0x19948f=_0x19948f-0x182;const _0x567743=a172_0x5677();let _0x58110f=_0x567743[_0x19948f];return _0x58110f;}function a172_0x5677(){const _0x22b467=['5952919zNJMHY','5564556hIeYRx','7035920vdbGdS','205572QsQiPC','136062oZFtiR','30VuJJAp','../commands/registry.js','8759rgbncC','1629236eZaTPO','128fKVZYa'];a172_0x5677=function(){return _0x22b467;};return a172_0x5677();}
1
+ function a173_0x259c(_0x4e79fc,_0x5511bb){_0x4e79fc=_0x4e79fc-0xbe;const _0x267dc4=a173_0x267d();let _0x259c39=_0x267dc4[_0x4e79fc];return _0x259c39;}function a173_0x267d(){const _0x4b6a05=['866750NrqlrA','2996184foORVV','40KrpUDe','4CAVWKO','15083559tBZYVy','465261IcWCpa','../commands/registry.js','361531BSNugv','1754792qchdWL','593131THTiQD'];a173_0x267d=function(){return _0x4b6a05;};return a173_0x267d();}(function(_0x2f7209,_0x174d4d){const _0x283f68=a173_0x259c,_0x34ec28=_0x2f7209();while(!![]){try{const _0x29e220=parseInt(_0x283f68(0xc6))/0x1*(-parseInt(_0x283f68(0xc2))/0x2)+-parseInt(_0x283f68(0xc4))/0x3+-parseInt(_0x283f68(0xc7))/0x4+parseInt(_0x283f68(0xbf))/0x5+-parseInt(_0x283f68(0xc0))/0x6+-parseInt(_0x283f68(0xbe))/0x7*(-parseInt(_0x283f68(0xc1))/0x8)+parseInt(_0x283f68(0xc3))/0x9;if(_0x29e220===_0x174d4d)break;else _0x34ec28['push'](_0x34ec28['shift']());}catch(_0x2d449a){_0x34ec28['push'](_0x34ec28['shift']());}}}(a173_0x267d,0x6f833));import{buildSchemaPayload as a173_0x2d8f5e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1c5b48=a173_0x259c,{serviceRegistry:_0x2876b9,findDefinition:_0x2b5b5e}=await import(_0x1c5b48(0xc5));return a173_0x2d8f5e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2876b9,'buildAllFlags':buildAllFlags,'findDefinition':_0x2b5b5e});}
@@ -1 +1 @@
1
- (function(_0x3d69b6,_0x10eadc){var _0x18f241=a173_0x215f,_0xeec452=_0x3d69b6();while(!![]){try{var _0x4d3917=parseInt(_0x18f241(0x12c))/0x1*(parseInt(_0x18f241(0x135))/0x2)+-parseInt(_0x18f241(0x12b))/0x3+parseInt(_0x18f241(0x131))/0x4*(-parseInt(_0x18f241(0x133))/0x5)+-parseInt(_0x18f241(0x130))/0x6*(-parseInt(_0x18f241(0x132))/0x7)+parseInt(_0x18f241(0x12f))/0x8*(parseInt(_0x18f241(0x12d))/0x9)+parseInt(_0x18f241(0x12e))/0xa*(-parseInt(_0x18f241(0x134))/0xb)+parseInt(_0x18f241(0x136))/0xc;if(_0x4d3917===_0x10eadc)break;else _0xeec452['push'](_0xeec452['shift']());}catch(_0x1d2120){_0xeec452['push'](_0xeec452['shift']());}}}(a173_0x2b1f,0x40edf));function a173_0x215f(_0x57200d,_0x3101a3){_0x57200d=_0x57200d-0x12b;var _0x2b1ff5=a173_0x2b1f();var _0x215fbc=_0x2b1ff5[_0x57200d];return _0x215fbc;}function a173_0x2b1f(){var _0x3aec43=['40XXjvJf','59688fcLMev','894678EyMDxM','1348148yDCuit','21kxifcf','5PoYoZr','572759brlITP','74ceEJFz','820680HaMdfB','639768PSzCTa','39LiojUs','612SFPdxW'];a173_0x2b1f=function(){return _0x3aec43;};return a173_0x2b1f();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a174_0x1aeb(){var _0x2abfdf=['5019645jPXhVm','1786320KtMaCW','1861825yPmQAb','920706hpotFT','225DxmlMN','30OiXRSI','8FjtpgL','321976uTMkrX','669511SxqsxW','8678700zZsSar'];a174_0x1aeb=function(){return _0x2abfdf;};return a174_0x1aeb();}(function(_0x505d07,_0x5d2e21){var _0x3bfd07=a174_0xf9b7,_0x7700d4=_0x505d07();while(!![]){try{var _0x32bd9e=-parseInt(_0x3bfd07(0x181))/0x1+parseInt(_0x3bfd07(0x17c))/0x2+parseInt(_0x3bfd07(0x184))/0x3*(-parseInt(_0x3bfd07(0x17f))/0x4)+parseInt(_0x3bfd07(0x183))/0x5+parseInt(_0x3bfd07(0x17e))/0x6*(parseInt(_0x3bfd07(0x185))/0x7)+-parseInt(_0x3bfd07(0x180))/0x8*(parseInt(_0x3bfd07(0x17d))/0x9)+parseInt(_0x3bfd07(0x182))/0xa;if(_0x32bd9e===_0x5d2e21)break;else _0x7700d4['push'](_0x7700d4['shift']());}catch(_0x5ae348){_0x7700d4['push'](_0x7700d4['shift']());}}}(a174_0x1aeb,0xc2345));function a174_0xf9b7(_0x476392,_0x41aa54){_0x476392=_0x476392-0x17c;var _0x1aeb0a=a174_0x1aeb();var _0xf9b7d9=_0x1aeb0a[_0x476392];return _0xf9b7d9;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a174_0x583220=a174_0x4d54;(function(_0x5a67a6,_0x2bc2fb){const _0x49f81d=a174_0x4d54,_0x53b587=_0x5a67a6();while(!![]){try{const _0x5c1b87=parseInt(_0x49f81d(0x134))/0x1*(-parseInt(_0x49f81d(0x138))/0x2)+parseInt(_0x49f81d(0x12e))/0x3*(parseInt(_0x49f81d(0x12f))/0x4)+parseInt(_0x49f81d(0x136))/0x5+parseInt(_0x49f81d(0x130))/0x6*(-parseInt(_0x49f81d(0x132))/0x7)+parseInt(_0x49f81d(0x12a))/0x8*(-parseInt(_0x49f81d(0x12c))/0x9)+-parseInt(_0x49f81d(0x131))/0xa*(-parseInt(_0x49f81d(0x137))/0xb)+parseInt(_0x49f81d(0x12b))/0xc;if(_0x5c1b87===_0x2bc2fb)break;else _0x53b587['push'](_0x53b587['shift']());}catch(_0x515dc4){_0x53b587['push'](_0x53b587['shift']());}}}(a174_0x4b2f,0x6cfc1));function a174_0x4b2f(){const _0x44f930=['v2.2.1','3iwFDQZ','3381860vkKtYN','1986132bcKYrI','51630bxUVEe','7KnGJJh','62a5db2','1XVFUOV','2.2.2-beta.1','1083640KjgYWf','220VxnTTB','725254sRnJRD','1712168QxyVSC','2263416CiNjmr','9mBrIdI'];a174_0x4b2f=function(){return _0x44f930;};return a174_0x4b2f();}function a174_0x4d54(_0xf9d0e6,_0x4b6afe){_0xf9d0e6=_0xf9d0e6-0x12a;const _0x4b2fcc=a174_0x4b2f();let _0x4d5415=_0x4b2fcc[_0xf9d0e6];return _0x4d5415;}export const VERSION=a174_0x583220(0x135);export const GIT_TAG=a174_0x583220(0x12d);export const GIT_COMMIT=a174_0x583220(0x133);export const BUILD_TIME='2026-06-13T03:55:55.102Z';
1
+ const a175_0x32f377=a175_0x3de5;function a175_0x3de5(_0x621b75,_0x39689c){_0x621b75=_0x621b75-0x1ab;const _0x2d5f83=a175_0x2d5f();let _0x3de510=_0x2d5f83[_0x621b75];return _0x3de510;}(function(_0x5be354,_0x2dbe7d){const _0x585ac9=a175_0x3de5,_0x285efe=_0x5be354();while(!![]){try{const _0x3cf034=-parseInt(_0x585ac9(0x1b2))/0x1+parseInt(_0x585ac9(0x1af))/0x2+-parseInt(_0x585ac9(0x1b6))/0x3+parseInt(_0x585ac9(0x1b4))/0x4*(-parseInt(_0x585ac9(0x1b0))/0x5)+parseInt(_0x585ac9(0x1b5))/0x6*(-parseInt(_0x585ac9(0x1ac))/0x7)+-parseInt(_0x585ac9(0x1ab))/0x8*(-parseInt(_0x585ac9(0x1ad))/0x9)+-parseInt(_0x585ac9(0x1b9))/0xa*(-parseInt(_0x585ac9(0x1b1))/0xb);if(_0x3cf034===_0x2dbe7d)break;else _0x285efe['push'](_0x285efe['shift']());}catch(_0x24a9f0){_0x285efe['push'](_0x285efe['shift']());}}}(a175_0x2d5f,0x44666));export const VERSION=a175_0x32f377(0x1ae);export const GIT_TAG=a175_0x32f377(0x1b3);export const GIT_COMMIT=a175_0x32f377(0x1b8);function a175_0x2d5f(){const _0x310cac=['2026-06-15T15:54:55.419Z','b79466f','10orXNCL','156304BryyMn','91scztVz','117LWTAEJ','2.2.3-beta.1','27346aejkUC','35UhXcPR','4535641NxUFiC','30644GaJVMu','v2.2.2','36188eFNLZD','11034KmxtXc','845856wbeVLX'];a175_0x2d5f=function(){return _0x310cac;};return a175_0x2d5f();}export const BUILD_TIME=a175_0x32f377(0x1b7);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x51ea34,_0x23c857){var _0x13d453=a175_0xd219,_0x30e012=_0x51ea34();while(!![]){try{var _0x104df3=-parseInt(_0x13d453(0x1d3))/0x1*(-parseInt(_0x13d453(0x1cb))/0x2)+parseInt(_0x13d453(0x1c9))/0x3*(-parseInt(_0x13d453(0x1d1))/0x4)+parseInt(_0x13d453(0x1ce))/0x5+parseInt(_0x13d453(0x1cc))/0x6+parseInt(_0x13d453(0x1d0))/0x7+parseInt(_0x13d453(0x1cf))/0x8+-parseInt(_0x13d453(0x1cd))/0x9;if(_0x104df3===_0x23c857)break;else _0x30e012['push'](_0x30e012['shift']());}catch(_0x12a92d){_0x30e012['push'](_0x30e012['shift']());}}}(a175_0x1451,0xa8b2f));function a175_0xd219(_0x46ba8c,_0x25a34b){_0x46ba8c=_0x46ba8c-0x1c7;var _0x14513a=a175_0x1451();var _0xd219f7=_0x14513a[_0x46ba8c];return _0xd219f7;}import a175_0x2ee3ca from'chalk';function a175_0x1451(){var _0x49a9ed=['bold','\x20to\x20view\x20available\x20commands.','85659qDNRCu','log','12ZWrylB','7365834czkcKO','29207340ZwyHnB','1038705kpfkzX','8759640iTCbdw','5651037FqNPmm','20acKvxm','\x20\x20Use\x20','123565JFcGXT'];a175_0x1451=function(){return _0x49a9ed;};return a175_0x1451();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x46a971=a175_0xd219;console[_0x46a971(0x1ca)](),console['log'](a175_0x2ee3ca['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x46a971(0x1ca)](),console['log'](_0x46a971(0x1d2)+a175_0x2ee3ca['green'][_0x46a971(0x1c7)](CLI_BIN_NAME+'\x20--help')+_0x46a971(0x1c8)),console[_0x46a971(0x1ca)]();}
1
+ (function(_0x53a1b6,_0x9f8795){var _0x37cd60=a176_0x2a4d,_0x3167a3=_0x53a1b6();while(!![]){try{var _0x307794=-parseInt(_0x37cd60(0x1d3))/0x1+parseInt(_0x37cd60(0x1d7))/0x2*(parseInt(_0x37cd60(0x1d0))/0x3)+-parseInt(_0x37cd60(0x1cc))/0x4+parseInt(_0x37cd60(0x1cd))/0x5*(parseInt(_0x37cd60(0x1d1))/0x6)+parseInt(_0x37cd60(0x1da))/0x7+-parseInt(_0x37cd60(0x1d5))/0x8*(-parseInt(_0x37cd60(0x1ca))/0x9)+-parseInt(_0x37cd60(0x1d4))/0xa*(parseInt(_0x37cd60(0x1cb))/0xb);if(_0x307794===_0x9f8795)break;else _0x3167a3['push'](_0x3167a3['shift']());}catch(_0x534c82){_0x3167a3['push'](_0x3167a3['shift']());}}}(a176_0xbcc4,0x904df));import a176_0x1c7267 from'chalk';function a176_0x2a4d(_0x1e61ea,_0x23b3b0){_0x1e61ea=_0x1e61ea-0x1ca;var _0xbcc4dd=a176_0xbcc4();var _0x2a4df6=_0xbcc4dd[_0x1e61ea];return _0x2a4df6;}function a176_0xbcc4(){var _0x596008=['3730myDXPO','892480PcRTVH','bold','2pVCjrs','log','green','7059038TurmQw','18CaHRJy','12441OgiKMo','1441768igOsTM','85QEWiOw','\x20to\x20view\x20available\x20commands.','\x20--help','442191kamgvT','345378LkCwlq','\x20\x20Use\x20','984146QqLYpS'];a176_0xbcc4=function(){return _0x596008;};return a176_0xbcc4();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1149af=a176_0x2a4d;console['log'](),console['log'](a176_0x1c7267[_0x1149af(0x1d9)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1149af(0x1d8)](),console[_0x1149af(0x1d8)](_0x1149af(0x1d2)+a176_0x1c7267[_0x1149af(0x1d9)][_0x1149af(0x1d6)](CLI_BIN_NAME+_0x1149af(0x1cf))+_0x1149af(0x1ce)),console['log']();}
@@ -1 +1 @@
1
- function a176_0x4ff0(){const _0x6a2618=['exit','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','help','1060362ckaacN','error','entries','add','646yxoOZD','--help','from','toLowerCase','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','2770bxlbor','不支持的命令:\x20','20hBWyoN','211413KFSNTh','cwd','72GQcnTr','Error:\x20Unsupported\x20command:\x20','7266395shInfP','log','28473049rwECNL','dangerously-bff-save','8703590XrgiaO','4248216JEzAAZ','setLogPath','Equivalent\x20command:\x20','push','argv','startsWith','\x0aAvailable\x20commands:','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','52MWsQDu'];a176_0x4ff0=function(){return _0x6a2618;};return a176_0x4ff0();}(function(_0x10a3e1,_0x4a3037){const _0x21b4a1=a176_0x1ec5,_0x3e7943=_0x10a3e1();while(!![]){try{const _0x35fbbf=parseInt(_0x21b4a1(0xe1))/0x1*(-parseInt(_0x21b4a1(0xdc))/0x2)+parseInt(_0x21b4a1(0xe4))/0x3*(parseInt(_0x21b4a1(0xd3))/0x4)+-parseInt(_0x21b4a1(0xe8))/0x5+-parseInt(_0x21b4a1(0xed))/0x6+-parseInt(_0x21b4a1(0xec))/0x7+-parseInt(_0x21b4a1(0xe6))/0x8*(parseInt(_0x21b4a1(0xd8))/0x9)+parseInt(_0x21b4a1(0xe3))/0xa*(parseInt(_0x21b4a1(0xea))/0xb);if(_0x35fbbf===_0x4a3037)break;else _0x3e7943['push'](_0x3e7943['shift']());}catch(_0x476f2a){_0x3e7943['push'](_0x3e7943['shift']());}}}(a176_0x4ff0,0xb3064));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a176_0x1ec5(_0x356763,_0x5db7f7){_0x356763=_0x356763-0xcc;const _0x4ff0d9=a176_0x4ff0();let _0x1ec575=_0x4ff0d9[_0x356763];return _0x1ec575;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x47c09b){const _0x5bc755=a176_0x1ec5,_0x44780b=[];for(const [_0x4715ad,_0x267573]of Object[_0x5bc755(0xda)](_0x47c09b)){if(_0x267573===!![]){const _0x1bb68d=_0x4715ad['replace'](/([A-Z])/g,'-$1')[_0x5bc755(0xdf)]();_0x44780b[_0x5bc755(0xce)](_0x1bb68d);}}return _0x44780b;}export function parseDynamicFlags(){const _0x415127=a176_0x1ec5,_0x4469fc=[];for(let _0x58f2f6=0x3;_0x58f2f6<process[_0x415127(0xcf)]['length'];_0x58f2f6++){const _0x2cb048=process[_0x415127(0xcf)][_0x58f2f6];if(_0x2cb048&&_0x2cb048[_0x415127(0xd0)]('--')){const _0x9b628c=_0x2cb048['slice'](0x2);_0x9b628c&&!_0x9b628c['includes']('=')&&_0x4469fc[_0x415127(0xce)](_0x9b628c);}}return _0x4469fc;}export function getAllProvidedFlags(_0x217e11){const _0x4ae31e=camelCaseFlagsToKebab(_0x217e11),_0x14d207=parseDynamicFlags(),_0x1a42cb=new Set([..._0x4ae31e,..._0x14d207]);return Array['from'](_0x1a42cb);}export function normalizeLegacyBffSaveFlags(_0x2a22be){const _0x5ec541=a176_0x1ec5,_0x44cdc6=new Set(_0x2a22be);return _0x44cdc6['has'](_0x5ec541(0xeb))&&_0x44cdc6[_0x5ec541(0xdb)]('enable-bff-save'),Array[_0x5ec541(0xde)](_0x44cdc6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5e7d17,_0x177b8c,_0x4b04de){const _0x51c3df=a176_0x1ec5;logger[_0x51c3df(0xcc)](process[_0x51c3df(0xe5)]());if(_0x4b04de?.[_0x51c3df(0xd7)]||_0x5e7d17===_0x51c3df(0xdd)){showHelp();return;}console[_0x51c3df(0xd9)](_0x51c3df(0xe7)+(_0x5e7d17||'(empty)')),console['log'](_0x51c3df(0xd1)),console[_0x51c3df(0xe9)]('\x20\x20'+CLI_BIN_NAME+_0x51c3df(0xd2)),console[_0x51c3df(0xe9)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x51c3df(0xe9)](''),console[_0x51c3df(0xe9)](_0x51c3df(0xcd)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x51c3df(0xd9)]('skill',_0x51c3df(0xe2)+_0x5e7d17),process[_0x51c3df(0xd4)](0x1);}function showHelp(){const _0x51a0e8=a176_0x1ec5;console[_0x51a0e8(0xe9)](_0x51a0e8(0xd5)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x51a0e8(0xd6)+SKILLS_INSTALL_COMMAND_LINE+_0x51a0e8(0xe0));}
1
+ (function(_0x1a09a3,_0x1fcbdb){const _0x1ac44e=a177_0xb3d3,_0xaac9f5=_0x1a09a3();while(!![]){try{const _0x51a97a=parseInt(_0x1ac44e(0xed))/0x1+parseInt(_0x1ac44e(0xd7))/0x2*(parseInt(_0x1ac44e(0xee))/0x3)+parseInt(_0x1ac44e(0xea))/0x4*(-parseInt(_0x1ac44e(0xeb))/0x5)+-parseInt(_0x1ac44e(0xcb))/0x6*(-parseInt(_0x1ac44e(0xd5))/0x7)+-parseInt(_0x1ac44e(0xdb))/0x8+-parseInt(_0x1ac44e(0xe0))/0x9+-parseInt(_0x1ac44e(0xe3))/0xa*(-parseInt(_0x1ac44e(0xd2))/0xb);if(_0x51a97a===_0x1fcbdb)break;else _0xaac9f5['push'](_0xaac9f5['shift']());}catch(_0x2b833b){_0xaac9f5['push'](_0xaac9f5['shift']());}}}(a177_0x18bf,0x7ab24));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3074d1){const _0x4d3d81=a177_0xb3d3,_0x1995c9=[];for(const [_0x4630a7,_0x141e01]of Object['entries'](_0x3074d1)){if(_0x141e01===!![]){const _0x424f50=_0x4630a7['replace'](/([A-Z])/g,_0x4d3d81(0xe5))[_0x4d3d81(0xd8)]();_0x1995c9[_0x4d3d81(0xe7)](_0x424f50);}}return _0x1995c9;}export function parseDynamicFlags(){const _0x33e718=a177_0xb3d3,_0x5d85a6=[];for(let _0x1863b8=0x3;_0x1863b8<process['argv'][_0x33e718(0xd0)];_0x1863b8++){const _0x5a4e7f=process[_0x33e718(0xe6)][_0x1863b8];if(_0x5a4e7f&&_0x5a4e7f[_0x33e718(0xcc)]('--')){const _0x108e36=_0x5a4e7f[_0x33e718(0xd9)](0x2);_0x108e36&&!_0x108e36[_0x33e718(0xcd)]('=')&&_0x5d85a6[_0x33e718(0xe7)](_0x108e36);}}return _0x5d85a6;}export function getAllProvidedFlags(_0x5b9191){const _0x9f1e5f=a177_0xb3d3,_0x56d920=camelCaseFlagsToKebab(_0x5b9191),_0x3c55db=parseDynamicFlags(),_0x2be421=new Set([..._0x56d920,..._0x3c55db]);return Array[_0x9f1e5f(0xd6)](_0x2be421);}export function normalizeLegacyBffSaveFlags(_0xc39b0b){const _0x48df84=a177_0xb3d3,_0x20dfec=new Set(_0xc39b0b);return _0x20dfec[_0x48df84(0xda)](_0x48df84(0xd3))&&_0x20dfec[_0x48df84(0xdc)](_0x48df84(0xdf)),Array[_0x48df84(0xd6)](_0x20dfec);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2a118d,_0x51ef3e,_0x3cb680){const _0x29994f=a177_0xb3d3;logger['setLogPath'](process['cwd']());if(_0x3cb680?.[_0x29994f(0xd1)]||_0x2a118d===_0x29994f(0xde)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x2a118d||_0x29994f(0xcf))),console[_0x29994f(0xd4)](_0x29994f(0xce)),console[_0x29994f(0xd4)]('\x20\x20'+CLI_BIN_NAME+_0x29994f(0xe4)),console[_0x29994f(0xd4)]('\x20\x20'+CLI_BIN_NAME+_0x29994f(0xe1)),console[_0x29994f(0xd4)](''),console[_0x29994f(0xd4)](_0x29994f(0xe2)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x29994f(0xec)](_0x29994f(0xef),'不支持的命令:\x20'+_0x2a118d),process[_0x29994f(0xe8)](0x1);}function a177_0x18bf(){const _0x12dbb5=['\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','-$1','argv','push','exit','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','2232QYwUoe','5155FbgmRq','error','849844NLIewR','5907XVQAGj','skill','21864cXyeKi','startsWith','includes','\x0aAvailable\x20commands:','(empty)','length','help','2308548SZPNeL','dangerously-bff-save','log','42bnsSTz','from','430brbubu','toLowerCase','slice','has','2974592kCpswm','add','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','--help','enable-bff-save','497025dyYtFA','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','Equivalent\x20command:\x20','10vNLZYb'];a177_0x18bf=function(){return _0x12dbb5;};return a177_0x18bf();}function a177_0xb3d3(_0x17cd93,_0x4efe37){_0x17cd93=_0x17cd93-0xcb;const _0x18bf32=a177_0x18bf();let _0xb3d3b0=_0x18bf32[_0x17cd93];return _0xb3d3b0;}function showHelp(){const _0x5442d8=a177_0xb3d3;console[_0x5442d8(0xd4)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x5442d8(0xdd)+SKILLS_INSTALL_COMMAND_LINE+_0x5442d8(0xe9));}
@@ -1 +1 @@
1
- const a177_0x3af4f0=a177_0x255b;function a177_0x255b(_0xca90fc,_0x366019){_0xca90fc=_0xca90fc-0xf6;const _0x46aa72=a177_0x46aa();let _0x255b15=_0x46aa72[_0xca90fc];return _0x255b15;}(function(_0x3699da,_0x203e07){const _0x392d45=a177_0x255b,_0x1c8d49=_0x3699da();while(!![]){try{const _0x4865d1=parseInt(_0x392d45(0xf9))/0x1+parseInt(_0x392d45(0xfe))/0x2*(-parseInt(_0x392d45(0xf7))/0x3)+-parseInt(_0x392d45(0x10f))/0x4+parseInt(_0x392d45(0x109))/0x5*(parseInt(_0x392d45(0x10c))/0x6)+parseInt(_0x392d45(0xfa))/0x7+parseInt(_0x392d45(0x110))/0x8+-parseInt(_0x392d45(0xfc))/0x9*(-parseInt(_0x392d45(0x10e))/0xa);if(_0x4865d1===_0x203e07)break;else _0x1c8d49['push'](_0x1c8d49['shift']());}catch(_0x92235a){_0x1c8d49['push'](_0x1c8d49['shift']());}}}(a177_0x46aa,0xd94c7));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a177_0x3af4f0(0x10b);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a177_0x3af4f0(0x107);function a177_0x46aa(){const _0x4441c9=['unknown','lovrabet/rabetbase','lovrabet/lovrabet-skill','558970uvsHNz','Lovrabet','skills','6PLcPVf','trim','177860VdhQQf','4123152QinCvs','8160288jGitNp','stdio','yes','inherit','31503SBXNzm','log','205086wTFhjp','11802980yjoTVk','stderr','234sNnjPI','toString','298uxHbMY','skill','status','exit\x20','join','stdout','pipe','npx'];a177_0x46aa=function(){return _0x4441c9;};return a177_0x46aa();}export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x3af4f0(0x108);export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x3af4f0(0x10a);export function buildNpxSkillsAddArgv(_0x1254f2){const _0x41038c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1254f2&&_0x41038c['push'](NPX_SKILLS_FLAG_SKILL,_0x1254f2),_0x41038c;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x3af4f0(0x105),...buildNpxSkillsAddArgv()][a177_0x3af4f0(0x102)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x3af4f0(0x105),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x389a20,_0x14335d){const _0x10612a=a177_0x3af4f0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2c4992=_0x14335d?.[_0x10612a(0x111)]??_0x10612a(0xf6),_0x284731=resolveNpmBin(_0x10612a(0x105)),_0x5206b6=buildNpxSkillsAddArgv(_0x14335d?.[_0x10612a(0xff)]),_0x595fd1=[_0x10612a(0x105),..._0x5206b6]['join']('\x20');console[_0x10612a(0xf8)]('*\x20'+_0x595fd1);const _0x33e82b=spawnSync(_0x284731,_0x5206b6,{'cwd':_0x389a20,'stdio':_0x2c4992,'env':process.env,'shell':![]}),_0x1070f7=_0x33e82b[_0x10612a(0x100)];if(_0x1070f7===0x0)return{'ok':!![],'status':0x0};let _0xe50819=_0x10612a(0x101)+(_0x1070f7??'unknown');if(_0x2c4992==='pipe'){const _0x572c4b=_0x33e82b[_0x10612a(0xfb)]?_0x33e82b[_0x10612a(0xfb)][_0x10612a(0xfd)]()['trim']():'',_0x1264ba=_0x33e82b['stdout']?_0x33e82b[_0x10612a(0x103)][_0x10612a(0xfd)]()[_0x10612a(0x10d)]():'';if(_0x572c4b)_0xe50819=_0x572c4b;else{if(_0x1264ba)_0xe50819=_0x1264ba;}}return{'ok':![],'status':_0x1070f7??null,'error':_0xe50819};}export function runNpxSkillsRemove(_0x5133ae,_0x29e005,_0x4b9495=LEGACY_RABETBASE_SKILL_SOURCE){const _0x36016f=a177_0x3af4f0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa7d392=_0x29e005?.[_0x36016f(0x111)]??_0x36016f(0xf6),_0x8222d0=resolveNpmBin(_0x36016f(0x105)),_0x4e07d6=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x4b9495,NPX_SKILLS_FLAG_SKILL,_0x29e005?.[_0x36016f(0xff)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x29e005?.[_0x36016f(0x112)]?['-y']:[]],_0x5a8e5f=[_0x8222d0,..._0x4e07d6][_0x36016f(0x102)]('\x20');console[_0x36016f(0xf8)]('*\x20'+_0x5a8e5f);const _0x1eaa60=spawnSync(_0x8222d0,_0x4e07d6,{'cwd':_0x5133ae,'stdio':_0xa7d392,'env':process.env,'shell':![]}),_0x4008ad=_0x1eaa60[_0x36016f(0x100)];if(_0x4008ad===0x0)return{'ok':!![],'status':0x0};let _0x126564=_0x36016f(0x101)+(_0x4008ad??_0x36016f(0x106));if(_0xa7d392===_0x36016f(0x104)){const _0x1cc705=_0x1eaa60[_0x36016f(0xfb)]?_0x1eaa60['stderr'][_0x36016f(0xfd)]()[_0x36016f(0x10d)]():'',_0x454b19=_0x1eaa60['stdout']?_0x1eaa60['stdout'][_0x36016f(0xfd)]()[_0x36016f(0x10d)]():'';if(_0x1cc705)_0x126564=_0x1cc705;else{if(_0x454b19)_0x126564=_0x454b19;}}return{'ok':![],'status':_0x4008ad??null,'error':_0x126564};}export function runNpxSkillsAddGlobal(_0x1d28ca,_0x3f63a7,_0x362e34){const _0x502c2e=a177_0x3af4f0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3023c6=_0x362e34?.['stdio']??_0x502c2e(0xf6),_0x5acfdd=resolveNpmBin('npx'),_0xabc987=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3f63a7,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1544fb=[_0x502c2e(0x105),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3f63a7,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x502c2e(0xf8)]('*\x20'+_0x1544fb);const _0xb1b428=spawnSync(_0x5acfdd,_0xabc987,{'cwd':_0x1d28ca,'stdio':_0x3023c6,'env':process.env,'shell':![]}),_0x484e9c=_0xb1b428['status'];if(_0x484e9c===0x0)return{'ok':!![],'status':0x0};let _0x200904=_0x502c2e(0x101)+(_0x484e9c??_0x502c2e(0x106));if(_0x3023c6===_0x502c2e(0x104)){const _0x1c16f1=_0xb1b428[_0x502c2e(0xfb)]?_0xb1b428[_0x502c2e(0xfb)][_0x502c2e(0xfd)]()[_0x502c2e(0x10d)]():'',_0x55de28=_0xb1b428[_0x502c2e(0x103)]?_0xb1b428['stdout'][_0x502c2e(0xfd)]()['trim']():'';if(_0x1c16f1)_0x200904=_0x1c16f1;else{if(_0x55de28)_0x200904=_0x55de28;}}return{'ok':![],'status':_0x484e9c??null,'error':_0x200904};}
1
+ const a178_0x29c295=a178_0x35e8;(function(_0x1933d1,_0x7b41fc){const _0x43d523=a178_0x35e8,_0x491c35=_0x1933d1();while(!![]){try{const _0x667dbd=-parseInt(_0x43d523(0x17f))/0x1+-parseInt(_0x43d523(0x15f))/0x2*(parseInt(_0x43d523(0x16a))/0x3)+-parseInt(_0x43d523(0x180))/0x4*(parseInt(_0x43d523(0x167))/0x5)+-parseInt(_0x43d523(0x175))/0x6*(-parseInt(_0x43d523(0x169))/0x7)+parseInt(_0x43d523(0x161))/0x8*(parseInt(_0x43d523(0x173))/0x9)+parseInt(_0x43d523(0x16c))/0xa*(-parseInt(_0x43d523(0x17e))/0xb)+parseInt(_0x43d523(0x17c))/0xc*(parseInt(_0x43d523(0x16d))/0xd);if(_0x667dbd===_0x7b41fc)break;else _0x491c35['push'](_0x491c35['shift']());}catch(_0x58abc1){_0x491c35['push'](_0x491c35['shift']());}}}(a178_0x5cc7,0x54d85));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a178_0x29c295(0x170);export const NPX_SKILLS_SUBCOMMAND_ADD=a178_0x29c295(0x164);export const NPX_SKILLS_FLAG_SKILL=a178_0x29c295(0x16e);export const RABETBASE_SKILL_SOURCE=a178_0x29c295(0x15e);export const LEGACY_RABETBASE_SKILL_SOURCE=a178_0x29c295(0x17b);export const DEFAULT_RABETBASE_SKILL_NAME=a178_0x29c295(0x15d);export function buildNpxSkillsAddArgv(_0x2ae43b){const _0x34bf03=a178_0x29c295,_0x5d08d4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2ae43b&&_0x5d08d4[_0x34bf03(0x172)](NPX_SKILLS_FLAG_SKILL,_0x2ae43b),_0x5d08d4;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a178_0x29c295(0x162),...buildNpxSkillsAddArgv()][a178_0x29c295(0x17a)]('\x20');function a178_0x5cc7(){const _0x2cc14d=['log','join','lovrabet/lovrabet-skill','12588864FbZfBW','remove','21263wzPKcX','97050QLDthN','1264OvFJHq','Lovrabet','lovrabet/rabetbase','64574omYxcV','stdout','120abDwhK','npx','stderr','add','inherit','unknown','5725TqhlsK','exit\x20','227122rfQEpb','39ixsvkF','status','2590VbuWuY','13lVmakZ','--skill','stdio','skills','pipe','push','387153vhtxce','skill','6IhtGCN','trim','toString','yes'];a178_0x5cc7=function(){return _0x2cc14d;};return a178_0x5cc7();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a178_0x29c295(0x162),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a178_0x29c295(0x17a)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x520310,_0x238346){const _0x509298=a178_0x29c295;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a6512=_0x238346?.['stdio']??_0x509298(0x165),_0x16f043=resolveNpmBin(_0x509298(0x162)),_0x50cd04=buildNpxSkillsAddArgv(_0x238346?.[_0x509298(0x174)]),_0x1af5a9=[_0x509298(0x162),..._0x50cd04]['join']('\x20');console['log']('*\x20'+_0x1af5a9);const _0x1c6e79=spawnSync(_0x16f043,_0x50cd04,{'cwd':_0x520310,'stdio':_0x4a6512,'env':process.env,'shell':![]}),_0x36a1f3=_0x1c6e79[_0x509298(0x16b)];if(_0x36a1f3===0x0)return{'ok':!![],'status':0x0};let _0x2e7536='exit\x20'+(_0x36a1f3??'unknown');if(_0x4a6512==='pipe'){const _0x1ee587=_0x1c6e79[_0x509298(0x163)]?_0x1c6e79['stderr'][_0x509298(0x177)]()[_0x509298(0x176)]():'',_0x547500=_0x1c6e79[_0x509298(0x160)]?_0x1c6e79['stdout'][_0x509298(0x177)]()[_0x509298(0x176)]():'';if(_0x1ee587)_0x2e7536=_0x1ee587;else{if(_0x547500)_0x2e7536=_0x547500;}}return{'ok':![],'status':_0x36a1f3??null,'error':_0x2e7536};}export function runNpxSkillsRemove(_0x210f25,_0x1af07,_0x4b3a71=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4d966b=a178_0x29c295;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x56436d=_0x1af07?.[_0x4d966b(0x16f)]??'inherit',_0x4a1790=resolveNpmBin('npx'),_0x4f491d=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4d966b(0x17d),_0x4b3a71,NPX_SKILLS_FLAG_SKILL,_0x1af07?.[_0x4d966b(0x174)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1af07?.[_0x4d966b(0x178)]?['-y']:[]],_0x13f14d=[_0x4a1790,..._0x4f491d]['join']('\x20');console[_0x4d966b(0x179)]('*\x20'+_0x13f14d);const _0x203a4b=spawnSync(_0x4a1790,_0x4f491d,{'cwd':_0x210f25,'stdio':_0x56436d,'env':process.env,'shell':![]}),_0x1fee98=_0x203a4b['status'];if(_0x1fee98===0x0)return{'ok':!![],'status':0x0};let _0x176a2b=_0x4d966b(0x168)+(_0x1fee98??_0x4d966b(0x166));if(_0x56436d===_0x4d966b(0x171)){const _0x22c3f4=_0x203a4b[_0x4d966b(0x163)]?_0x203a4b['stderr']['toString']()[_0x4d966b(0x176)]():'',_0x56fbee=_0x203a4b[_0x4d966b(0x160)]?_0x203a4b['stdout'][_0x4d966b(0x177)]()[_0x4d966b(0x176)]():'';if(_0x22c3f4)_0x176a2b=_0x22c3f4;else{if(_0x56fbee)_0x176a2b=_0x56fbee;}}return{'ok':![],'status':_0x1fee98??null,'error':_0x176a2b};}function a178_0x35e8(_0x191828,_0x324c61){_0x191828=_0x191828-0x15d;const _0x5cc719=a178_0x5cc7();let _0x35e83c=_0x5cc719[_0x191828];return _0x35e83c;}export function runNpxSkillsAddGlobal(_0x5728fc,_0x33f835,_0x333aa6){const _0x1fef3a=a178_0x29c295;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x11c25b=_0x333aa6?.[_0x1fef3a(0x16f)]??_0x1fef3a(0x165),_0x4e37f7=resolveNpmBin(_0x1fef3a(0x162)),_0x4d804d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x33f835,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3a5903=[_0x1fef3a(0x162),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x33f835,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1fef3a(0x17a)]('\x20');console['log']('*\x20'+_0x3a5903);const _0x3840e0=spawnSync(_0x4e37f7,_0x4d804d,{'cwd':_0x5728fc,'stdio':_0x11c25b,'env':process.env,'shell':![]}),_0x1909c1=_0x3840e0[_0x1fef3a(0x16b)];if(_0x1909c1===0x0)return{'ok':!![],'status':0x0};let _0x523c3b='exit\x20'+(_0x1909c1??_0x1fef3a(0x166));if(_0x11c25b===_0x1fef3a(0x171)){const _0x1e8925=_0x3840e0[_0x1fef3a(0x163)]?_0x3840e0[_0x1fef3a(0x163)]['toString']()[_0x1fef3a(0x176)]():'',_0x419f66=_0x3840e0[_0x1fef3a(0x160)]?_0x3840e0['stdout'][_0x1fef3a(0x177)]()[_0x1fef3a(0x176)]():'';if(_0x1e8925)_0x523c3b=_0x1e8925;else{if(_0x419f66)_0x523c3b=_0x419f66;}}return{'ok':![],'status':_0x1909c1??null,'error':_0x523c3b};}
@@ -1 +1 @@
1
- (function(_0x21672e,_0x1194b9){const _0x3c770d=a178_0x29e7,_0x27cf0c=_0x21672e();while(!![]){try{const _0x300d05=-parseInt(_0x3c770d(0xc8))/0x1*(parseInt(_0x3c770d(0xd1))/0x2)+-parseInt(_0x3c770d(0xcb))/0x3*(-parseInt(_0x3c770d(0xc5))/0x4)+-parseInt(_0x3c770d(0xd8))/0x5+parseInt(_0x3c770d(0xd2))/0x6*(parseInt(_0x3c770d(0xd4))/0x7)+-parseInt(_0x3c770d(0xc9))/0x8*(-parseInt(_0x3c770d(0xd0))/0x9)+parseInt(_0x3c770d(0xcc))/0xa+parseInt(_0x3c770d(0xc7))/0xb*(-parseInt(_0x3c770d(0xc6))/0xc);if(_0x300d05===_0x1194b9)break;else _0x27cf0c['push'](_0x27cf0c['shift']());}catch(_0x3b1d9f){_0x27cf0c['push'](_0x27cf0c['shift']());}}}(a178_0xa36f,0x42afd));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a178_0x29e7(_0x40a35d,_0x2dcf6b){_0x40a35d=_0x40a35d-0xc5;const _0xa36f4a=a178_0xa36f();let _0x29e704=_0xa36f4a[_0x40a35d];return _0x29e704;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x50ce1a){const _0x47e11a=a178_0x29e7;return SENSITIVE_PATTERNS[_0x47e11a(0xcd)](_0x3c6479=>_0x3c6479['test'](_0x50ce1a));}function sanitizeFlags(_0x235d45){const _0x591d1a={};for(const [_0x51b61d,_0x296b40]of Object['entries'](_0x235d45)){isSensitiveKey(_0x51b61d)?_0x591d1a[_0x51b61d]=_0x296b40!=null&&_0x296b40!==''?'[REDACTED]':_0x296b40:_0x591d1a[_0x51b61d]=_0x296b40;}return _0x591d1a;}function a178_0xa36f(){const _0x43e810=['service','2884851FDwSPT','70ZjDjga','894486TxlNHI','stringify','21AuIFit','flags','command','error','1092160pAPWbS','rabetbase.command','1445820wlTwQU','8704764QHhsOl','11qzWMwX','3159QCXjph','8HepxSR','durationMs','3rdCDCF','1983060RGGiYY','some','message'];a178_0xa36f=function(){return _0x43e810;};return a178_0xa36f();}export async function reportCommandTrace(_0x2f449c){const _0x5a82a2=a178_0x29e7;try{const _0x1c9f35=sanitizeFlags(_0x2f449c[_0x5a82a2(0xd5)]);await sendCliTraceLog({'spanName':_0x5a82a2(0xd9),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2f449c[_0x5a82a2(0xcf)],'command.name':_0x2f449c[_0x5a82a2(0xd6)],'command.flags':JSON[_0x5a82a2(0xd3)](_0x1c9f35),..._0x2f449c[_0x5a82a2(0xca)]!=null?{'command.duration_ms':_0x2f449c['durationMs']}:{},..._0x2f449c['error']?{'command.error':_0x2f449c[_0x5a82a2(0xd7)]instanceof Error?_0x2f449c[_0x5a82a2(0xd7)][_0x5a82a2(0xce)]:String(_0x2f449c[_0x5a82a2(0xd7)])}:{}}});}catch{}}
1
+ (function(_0x45c697,_0x515686){const _0x43ab1d=a179_0x4995,_0x51a536=_0x45c697();while(!![]){try{const _0x55aae9=parseInt(_0x43ab1d(0x102))/0x1+-parseInt(_0x43ab1d(0x10a))/0x2+parseInt(_0x43ab1d(0x10e))/0x3+-parseInt(_0x43ab1d(0x111))/0x4+parseInt(_0x43ab1d(0x10f))/0x5*(-parseInt(_0x43ab1d(0x109))/0x6)+-parseInt(_0x43ab1d(0x107))/0x7*(parseInt(_0x43ab1d(0x114))/0x8)+parseInt(_0x43ab1d(0x10c))/0x9*(parseInt(_0x43ab1d(0x110))/0xa);if(_0x55aae9===_0x515686)break;else _0x51a536['push'](_0x51a536['shift']());}catch(_0x4a195d){_0x51a536['push'](_0x51a536['shift']());}}}(a179_0x322d,0x252b0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a179_0x322d(){const _0x366e72=['21nnIUBJ','test','6JHYFtq','579038RjvPBc','message','6384186ODNPOS','flags','295176BSfINI','1146335zbUnyB','10OHsIMX','647292qfvzRt','entries','some','307192RMlsCY','stringify','[REDACTED]','140300Bpcrex','command','rabetbase.command','durationMs','error'];a179_0x322d=function(){return _0x366e72;};return a179_0x322d();}function a179_0x4995(_0x1311df,_0x155252){_0x1311df=_0x1311df-0x100;const _0x322dde=a179_0x322d();let _0x499552=_0x322dde[_0x1311df];return _0x499552;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3f2c8a){const _0x283d1d=a179_0x4995;return SENSITIVE_PATTERNS[_0x283d1d(0x113)](_0x2c1802=>_0x2c1802[_0x283d1d(0x108)](_0x3f2c8a));}function sanitizeFlags(_0x4d9ab1){const _0x4d2a53=a179_0x4995,_0x575755={};for(const [_0x487441,_0x2c9bfd]of Object[_0x4d2a53(0x112)](_0x4d9ab1)){isSensitiveKey(_0x487441)?_0x575755[_0x487441]=_0x2c9bfd!=null&&_0x2c9bfd!==''?_0x4d2a53(0x101):_0x2c9bfd:_0x575755[_0x487441]=_0x2c9bfd;}return _0x575755;}export async function reportCommandTrace(_0x15f588){const _0x57896e=a179_0x4995;try{const _0x2bde24=sanitizeFlags(_0x15f588[_0x57896e(0x10d)]);await sendCliTraceLog({'spanName':_0x57896e(0x104),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x15f588['service'],'command.name':_0x15f588[_0x57896e(0x103)],'command.flags':JSON[_0x57896e(0x100)](_0x2bde24),..._0x15f588[_0x57896e(0x105)]!=null?{'command.duration_ms':_0x15f588['durationMs']}:{},..._0x15f588[_0x57896e(0x106)]?{'command.error':_0x15f588[_0x57896e(0x106)]instanceof Error?_0x15f588[_0x57896e(0x106)][_0x57896e(0x10b)]:String(_0x15f588['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x305e29,_0x148dab){var _0x5e4ff1=a179_0x5a5d,_0x417461=_0x305e29();while(!![]){try{var _0x3027ea=parseInt(_0x5e4ff1(0xa9))/0x1*(parseInt(_0x5e4ff1(0xa6))/0x2)+parseInt(_0x5e4ff1(0xad))/0x3*(parseInt(_0x5e4ff1(0xaf))/0x4)+parseInt(_0x5e4ff1(0xb1))/0x5*(parseInt(_0x5e4ff1(0xb0))/0x6)+parseInt(_0x5e4ff1(0xab))/0x7+parseInt(_0x5e4ff1(0xaa))/0x8+-parseInt(_0x5e4ff1(0xa7))/0x9+-parseInt(_0x5e4ff1(0xac))/0xa;if(_0x3027ea===_0x148dab)break;else _0x417461['push'](_0x417461['shift']());}catch(_0x570bc2){_0x417461['push'](_0x417461['shift']());}}}(a179_0x312b,0x507ee));function a179_0x312b(){var _0x272872=['cli.help','service','39430uwtrFG','5861718TnAyQi','error','25kCCPbi','4924152OqTSXE','2964325xeNXUa','11153990mSVbop','4167jvfHMh','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1376dTGEOs','12uHKwgX','216815EqzBXZ'];a179_0x312b=function(){return _0x272872;};return a179_0x312b();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a179_0x5a5d(_0x5cce3c,_0x746233){_0x5cce3c=_0x5cce3c-0xa5;var _0x312b23=a179_0x312b();var _0x5a5d21=_0x312b23[_0x5cce3c];return _0x5a5d21;}export async function reportCliHelpTrace(_0x37dad9,_0x4435f5){var _0x22ce17=a179_0x5a5d;try{await sendCliTraceLog({'spanName':_0x22ce17(0xb2),'logData':{'rabetbase.help.kind':_0x37dad9,..._0x4435f5?.[_0x22ce17(0xa5)]&&{'rabetbase.help.service':_0x4435f5[_0x22ce17(0xa5)]}}});}catch(_0x921546){console[_0x22ce17(0xa8)](_0x22ce17(0xae),_0x921546);}}
1
+ (function(_0x355805,_0x58b0d8){var _0x1d5a0b=a180_0x537d,_0x44e9c9=_0x355805();while(!![]){try{var _0x5df907=-parseInt(_0x1d5a0b(0x15c))/0x1*(-parseInt(_0x1d5a0b(0x155))/0x2)+-parseInt(_0x1d5a0b(0x157))/0x3*(parseInt(_0x1d5a0b(0x162))/0x4)+parseInt(_0x1d5a0b(0x15a))/0x5*(-parseInt(_0x1d5a0b(0x161))/0x6)+-parseInt(_0x1d5a0b(0x164))/0x7*(-parseInt(_0x1d5a0b(0x15d))/0x8)+-parseInt(_0x1d5a0b(0x160))/0x9*(parseInt(_0x1d5a0b(0x15b))/0xa)+parseInt(_0x1d5a0b(0x156))/0xb+parseInt(_0x1d5a0b(0x158))/0xc;if(_0x5df907===_0x58b0d8)break;else _0x44e9c9['push'](_0x44e9c9['shift']());}catch(_0x5398e8){_0x44e9c9['push'](_0x44e9c9['shift']());}}}(a180_0x2f1c,0x7fa8c));function a180_0x537d(_0x1f8a54,_0x2c9017){_0x1f8a54=_0x1f8a54-0x155;var _0x2f1cb0=a180_0x2f1c();var _0x537dda=_0x2f1cb0[_0x1f8a54];return _0x537dda;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2fd944,_0x32f6d0){var _0x23414b=a180_0x537d;try{await sendCliTraceLog({'spanName':_0x23414b(0x159),'logData':{'rabetbase.help.kind':_0x2fd944,..._0x32f6d0?.['service']&&{'rabetbase.help.service':_0x32f6d0[_0x23414b(0x15e)]}}});}catch(_0x4e6903){console[_0x23414b(0x15f)](_0x23414b(0x163),_0x4e6903);}}function a180_0x2f1c(){var _0x460e6d=['8rvSFrO','240ZkbLYj','service','error','126018hTIjED','57702oWybUn','4GrLyEY','Failed\x20to\x20report\x20CLI\x20help\x20trace:','80101oSlnJP','88070lypouG','6965464MYXLhb','2468817ahJiiV','8077644dxPENq','cli.help','130jjXrwF','290patIzR'];a180_0x2f1c=function(){return _0x460e6d;};return a180_0x2f1c();}
@@ -1 +1 @@
1
- (function(_0x19ec56,_0x5d5a07){const _0x1947ba=a180_0x3e89,_0x1dc529=_0x19ec56();while(!![]){try{const _0x2e9ca9=-parseInt(_0x1947ba(0x1df))/0x1+-parseInt(_0x1947ba(0x1e3))/0x2+-parseInt(_0x1947ba(0x1d9))/0x3+-parseInt(_0x1947ba(0x1d6))/0x4+-parseInt(_0x1947ba(0x1e2))/0x5+parseInt(_0x1947ba(0x1de))/0x6*(-parseInt(_0x1947ba(0x1db))/0x7)+parseInt(_0x1947ba(0x1dc))/0x8;if(_0x2e9ca9===_0x5d5a07)break;else _0x1dc529['push'](_0x1dc529['shift']());}catch(_0x1b2114){_0x1dc529['push'](_0x1dc529['shift']());}}}(a180_0x4fdf,0x9f2b5));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a180_0x4fdf(){const _0x268cd2=['875724AgSjta','daily','1706957OJGeEL','35562144OQHfyU','tenant_code','6ngkzCu','1148379XlFToy','user','production','4694500iUYJCt','2113460ulTWNF','tenant','454172gfHqEh','username','email'];a180_0x4fdf=function(){return _0x268cd2;};return a180_0x4fdf();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a180_0x3e89(_0x4747c3,_0x4cd5a8){_0x4747c3=_0x4747c3-0x1d5;const _0x4fdf1d=a180_0x4fdf();let _0x3e8919=_0x4fdf1d[_0x4747c3];return _0x3e8919;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3ac1fd=a180_0x3e89,_0x4f80b9=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xf25d69=_0x4f80b9?.[_0x3ac1fd(0x1e0)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3ac1fd(0x1da):_0x3ac1fd(0x1e1))}),setUserContext({'id':_0xf25d69?.['id'],'username':_0xf25d69?.[_0x3ac1fd(0x1d7)],'nickname':_0xf25d69?.['nickname'],'email':_0xf25d69?.[_0x3ac1fd(0x1d8)],'tenantCode':_0xf25d69?.[_0x3ac1fd(0x1d5)][_0x3ac1fd(0x1dd)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4f80b9;}
1
+ (function(_0x32b6b5,_0x3e5ffb){const _0x47f6b8=a181_0x472d,_0x320e1a=_0x32b6b5();while(!![]){try{const _0x40df0e=-parseInt(_0x47f6b8(0x127))/0x1*(-parseInt(_0x47f6b8(0x129))/0x2)+-parseInt(_0x47f6b8(0x132))/0x3+-parseInt(_0x47f6b8(0x134))/0x4+-parseInt(_0x47f6b8(0x12d))/0x5*(parseInt(_0x47f6b8(0x12e))/0x6)+-parseInt(_0x47f6b8(0x12a))/0x7+parseInt(_0x47f6b8(0x131))/0x8*(-parseInt(_0x47f6b8(0x125))/0x9)+parseInt(_0x47f6b8(0x133))/0xa*(parseInt(_0x47f6b8(0x12c))/0xb);if(_0x40df0e===_0x3e5ffb)break;else _0x320e1a['push'](_0x320e1a['shift']());}catch(_0x565bfc){_0x320e1a['push'](_0x320e1a['shift']());}}}(a181_0x4a23,0x85e2f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a181_0x472d(_0xc535a2,_0x31d2eb){_0xc535a2=_0xc535a2-0x125;const _0x4a2347=a181_0x4a23();let _0x472dbb=_0x4a2347[_0xc535a2];return _0x472dbb;}import{getSessionUserInfo}from'../auth/get-session-user.js';function a181_0x4a23(){const _0x2e2655=['3576sqOKMJ','340530occVWp','2170YWpqkX','3982548XQHczq','81BhDVOx','email','1linJJW','nickname','736982vHyRZW','3761562RjYIat','tenant','95612xwZtut','200fiMvem','8358QYyBSn','unknown','daily'];a181_0x4a23=function(){return _0x2e2655;};return a181_0x4a23();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x547f86=a181_0x472d,_0x4b0ce0=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3af6a5=_0x4b0ce0?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x547f86(0x12f)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x547f86(0x130):'production')}),setUserContext({'id':_0x3af6a5?.['id'],'username':_0x3af6a5?.['username'],'nickname':_0x3af6a5?.[_0x547f86(0x128)],'email':_0x3af6a5?.[_0x547f86(0x126)],'tenantCode':_0x3af6a5?.[_0x547f86(0x12b)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4b0ce0;}
@@ -1 +1 @@
1
- (function(_0x105e8c,_0x21d807){const _0x404874=a181_0x2dcd,_0x4cf46b=_0x105e8c();while(!![]){try{const _0xf1f6e5=parseInt(_0x404874(0x100))/0x1*(-parseInt(_0x404874(0x101))/0x2)+parseInt(_0x404874(0x104))/0x3*(-parseInt(_0x404874(0xf7))/0x4)+parseInt(_0x404874(0xf9))/0x5*(-parseInt(_0x404874(0xfc))/0x6)+-parseInt(_0x404874(0xfb))/0x7+parseInt(_0x404874(0x106))/0x8*(-parseInt(_0x404874(0x103))/0x9)+parseInt(_0x404874(0xff))/0xa+parseInt(_0x404874(0x102))/0xb*(parseInt(_0x404874(0xfd))/0xc);if(_0xf1f6e5===_0x21d807)break;else _0x4cf46b['push'](_0x4cf46b['shift']());}catch(_0x47ecf5){_0x4cf46b['push'](_0x4cf46b['shift']());}}}(a181_0x1d87,0x6e584));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0x1d87(){const _0x218485=['8OrGBlL','exit','104zcaELE','SIGTERM','497845RpMBPT','SIGINT','5461113TgImAH','6KQVELm','104460mKCKlu','then','8446940gXghET','260339DmrnWm','2iqLnDt','1727Hmncyf','4931964ADGSTG','8232mVnRsp','once'];a181_0x1d87=function(){return _0x218485;};return a181_0x1d87();}function a181_0x2dcd(_0x5ba989,_0x4a50b8){_0x5ba989=_0x5ba989-0xf6;const _0x1d87a2=a181_0x1d87();let _0x2dcd8e=_0x1d87a2[_0x5ba989];return _0x2dcd8e;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2ef399=a181_0x2dcd;process[_0x2ef399(0x105)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x39ec25=()=>{const _0x3fb492=_0x2ef399;void flushOtelNodeIfUsed()[_0x3fb492(0xfe)](()=>process[_0x3fb492(0xf6)](0x0));};process[_0x2ef399(0x105)](_0x2ef399(0xfa),_0x39ec25),process[_0x2ef399(0x105)](_0x2ef399(0xf8),_0x39ec25);}export async function exitWithOtelShutdown(_0x36f387){const _0xcfe979=a181_0x2dcd;await flushOtelNodeIfUsed(),process[_0xcfe979(0xf6)](_0x36f387);}
1
+ (function(_0x723b83,_0x9ec06a){const _0x2a4184=a182_0x5360,_0x490362=_0x723b83();while(!![]){try{const _0x546635=parseInt(_0x2a4184(0x199))/0x1+parseInt(_0x2a4184(0x19b))/0x2*(-parseInt(_0x2a4184(0x1a1))/0x3)+parseInt(_0x2a4184(0x195))/0x4*(-parseInt(_0x2a4184(0x196))/0x5)+parseInt(_0x2a4184(0x19c))/0x6+-parseInt(_0x2a4184(0x19f))/0x7*(-parseInt(_0x2a4184(0x198))/0x8)+-parseInt(_0x2a4184(0x19e))/0x9*(-parseInt(_0x2a4184(0x19a))/0xa)+-parseInt(_0x2a4184(0x19d))/0xb;if(_0x546635===_0x9ec06a)break;else _0x490362['push'](_0x490362['shift']());}catch(_0x173d05){_0x490362['push'](_0x490362['shift']());}}}(a182_0x445e,0x83463));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a182_0x445e(){const _0x2a5bab=['10FMSxHQ','1002494bbubEn','829794drAkLx','9686039cusdve','5064435EpwLiY','105ILVNsj','SIGINT','3yuKRQO','beforeExit','once','exit','2776204iTOKrF','5oUfEYT','SIGTERM','545008WRIjsU','890642KMHncg'];a182_0x445e=function(){return _0x2a5bab;};return a182_0x445e();}export function registerOtelShutdownOnExit(){const _0x33ea35=a182_0x5360;process[_0x33ea35(0x1a3)](_0x33ea35(0x1a2),()=>{void flushOtelNodeIfUsed();});const _0x46406b=()=>{const _0x2693b2=_0x33ea35;void flushOtelNodeIfUsed()['then'](()=>process[_0x2693b2(0x1a4)](0x0));};process[_0x33ea35(0x1a3)](_0x33ea35(0x1a0),_0x46406b),process[_0x33ea35(0x1a3)](_0x33ea35(0x197),_0x46406b);}function a182_0x5360(_0x4480b2,_0x517752){_0x4480b2=_0x4480b2-0x195;const _0x445e63=a182_0x445e();let _0x5360b9=_0x445e63[_0x4480b2];return _0x5360b9;}export async function exitWithOtelShutdown(_0x38d82c){await flushOtelNodeIfUsed(),process['exit'](_0x38d82c);}