@lovrabet/rabetbase-cli 2.2.0-beta.2 → 2.2.1-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 (204) 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/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a158_0x4be6(){const _0x5e0246=['1350316gmuUbk','createHash','294777dfQbAP','hex','3dphpqm','3450448MmYtgO','748939dEWlvz','update','md5','640tYCqkx','3803424OVCzAY','8esJnaa','digest','utf8','375930dSmziP','5813752KLXOiN'];a158_0x4be6=function(){return _0x5e0246;};return a158_0x4be6();}(function(_0x247033,_0x2ec57a){const _0x2ffa42=a158_0x559e,_0x5f1c87=_0x247033();while(!![]){try{const _0xedc2b4=parseInt(_0x2ffa42(0x16a))/0x1+parseInt(_0x2ffa42(0x164))/0x2*(parseInt(_0x2ffa42(0x168))/0x3)+parseInt(_0x2ffa42(0x169))/0x4+parseInt(_0x2ffa42(0x162))/0x5+-parseInt(_0x2ffa42(0x16e))/0x6+parseInt(_0x2ffa42(0x163))/0x7*(parseInt(_0x2ffa42(0x16f))/0x8)+parseInt(_0x2ffa42(0x166))/0x9*(-parseInt(_0x2ffa42(0x16d))/0xa);if(_0xedc2b4===_0x2ec57a)break;else _0x5f1c87['push'](_0x5f1c87['shift']());}catch(_0x52b04c){_0x5f1c87['push'](_0x5f1c87['shift']());}}}(a158_0x4be6,0x70dff));function a158_0x559e(_0x2e508a,_0x17fca1){_0x2e508a=_0x2e508a-0x161;const _0x4be6c4=a158_0x4be6();let _0x559e7a=_0x4be6c4[_0x2e508a];return _0x559e7a;}import{readFile}from'node:fs/promises';import a158_0x3224cf from'node:crypto';export function computeSqlContentHash(_0x45c66a){const _0x4d0e84=a158_0x559e;return a158_0x3224cf[_0x4d0e84(0x165)](_0x4d0e84(0x16c))[_0x4d0e84(0x16b)](_0x45c66a)[_0x4d0e84(0x170)](_0x4d0e84(0x167));}export async function computeSqlFileHash(_0x165d2d){const _0x5814a0=a158_0x559e,_0x4e1787=await readFile(_0x165d2d,_0x5814a0(0x161));return computeSqlContentHash(_0x4e1787);}
1
+ (function(_0x2ff078,_0x3dc2f9){const _0x4f050b=a158_0x4792,_0x112383=_0x2ff078();while(!![]){try{const _0x2722ef=-parseInt(_0x4f050b(0x173))/0x1+-parseInt(_0x4f050b(0x174))/0x2+-parseInt(_0x4f050b(0x179))/0x3*(parseInt(_0x4f050b(0x177))/0x4)+-parseInt(_0x4f050b(0x172))/0x5*(parseInt(_0x4f050b(0x178))/0x6)+-parseInt(_0x4f050b(0x170))/0x7+parseInt(_0x4f050b(0x176))/0x8+parseInt(_0x4f050b(0x175))/0x9;if(_0x2722ef===_0x3dc2f9)break;else _0x112383['push'](_0x112383['shift']());}catch(_0x367121){_0x112383['push'](_0x112383['shift']());}}}(a158_0x2de7,0x6592f));function a158_0x4792(_0x206d9c,_0x2eed16){_0x206d9c=_0x206d9c-0x16e;const _0x2de739=a158_0x2de7();let _0x4792a6=_0x2de739[_0x206d9c];return _0x4792a6;}import{readFile}from'node:fs/promises';import a158_0x27d0be from'node:crypto';export function computeSqlContentHash(_0x1e8fd9){const _0x4232af=a158_0x4792;return a158_0x27d0be[_0x4232af(0x16f)](_0x4232af(0x17b))[_0x4232af(0x16e)](_0x1e8fd9)['digest'](_0x4232af(0x171));}export async function computeSqlFileHash(_0x577be5){const _0x235441=a158_0x4792,_0x122653=await readFile(_0x577be5,_0x235441(0x17a));return computeSqlContentHash(_0x122653);}function a158_0x2de7(){const _0x4a910b=['410872fOgOJe','hex','361585EFblyw','633836gekRDF','1016822SYQipA','12432564vokaDm','4553024SZdSqw','4uwmvuZ','6xuzazi','783651jiEPJA','utf8','md5','update','createHash'];a158_0x2de7=function(){return _0x4a910b;};return a158_0x2de7();}
@@ -1 +1 @@
1
- function a159_0x2458(){const _0xf94b9d=['ENOENT','sqlRoot','apps','code','3502260EJByQK','utf8','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','8UPTbPE','sqls','9317312PQkGUd','4419976hqTmRp','3615144JAzcYT','\x22.\x20','\x22\x20vs\x20lock\x20\x22','48rjwPaB','27tdxadf','4915628imJVAW','parse','lastSync','380706PTBAcl','5axWDcK','236541DysJay','7QbEXso'];a159_0x2458=function(){return _0xf94b9d;};return a159_0x2458();}(function(_0x2a1c56,_0x1e4181){const _0x49dbdf=a159_0x18e4,_0x14c4c6=_0x2a1c56();while(!![]){try{const _0x24bed7=parseInt(_0x49dbdf(0xe5))/0x1+parseInt(_0x49dbdf(0xee))/0x2*(parseInt(_0x49dbdf(0xe3))/0x3)+parseInt(_0x49dbdf(0xe0))/0x4+-parseInt(_0x49dbdf(0xe4))/0x5*(-parseInt(_0x49dbdf(0xf2))/0x6)+-parseInt(_0x49dbdf(0xe6))/0x7*(parseInt(_0x49dbdf(0xf0))/0x8)+-parseInt(_0x49dbdf(0xdf))/0x9*(-parseInt(_0x49dbdf(0xeb))/0xa)+parseInt(_0x49dbdf(0xf1))/0xb*(-parseInt(_0x49dbdf(0xde))/0xc);if(_0x24bed7===_0x1e4181)break;else _0x14c4c6['push'](_0x14c4c6['shift']());}catch(_0x16b0b5){_0x14c4c6['push'](_0x14c4c6['shift']());}}}(a159_0x2458,0xd093a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x18e4(_0xacc0cc,_0x2648e0){_0xacc0cc=_0xacc0cc-0xdd;const _0x245864=a159_0x2458();let _0x18e4bf=_0x245864[_0xacc0cc];return _0x18e4bf;}export function ensureSqlLockScope(_0x13fd13,_0x4d43e6,_0xd4aa7b,_0x1e8189){const _0x237f7a=a159_0x18e4,_0x1dc08d=_0x13fd13??createEmptySqlLock();let _0x1b9586=_0x1dc08d[_0x237f7a(0xe9)][_0x4d43e6];if(!_0x1b9586)return _0x1b9586={'sqlRoot':_0xd4aa7b,'lastSync':'','sqls':{}},_0x1dc08d['apps'][_0x4d43e6]=_0x1b9586,{'lockData':_0x1dc08d,'appLock':_0x1b9586};if(!_0x1b9586[_0x237f7a(0xe8)])_0x1b9586[_0x237f7a(0xe8)]=_0xd4aa7b;else{if(_0x1b9586[_0x237f7a(0xe8)]!==_0xd4aa7b)throw new Error(_0x1e8189+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0xd4aa7b+_0x237f7a(0xdd)+_0x1b9586['sqlRoot']+_0x237f7a(0xf3)+_0x237f7a(0xed));}return!_0x1b9586[_0x237f7a(0xef)]&&(_0x1b9586[_0x237f7a(0xef)]={}),!_0x1b9586[_0x237f7a(0xe2)]&&(_0x1b9586['lastSync']=''),{'lockData':_0x1dc08d,'appLock':_0x1b9586};}export async function readSqlLockFile(_0x455640){const _0x4b86aa=a159_0x18e4;try{const _0x213d42=await readFile(_0x455640,'utf8');return JSON[_0x4b86aa(0xe1)](_0x213d42);}catch(_0x5f2d15){if(_0x5f2d15[_0x4b86aa(0xea)]===_0x4b86aa(0xe7))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x5f2d15));}}export async function writeSqlLockFile(_0xe850f7,_0x1b13e8){const _0x4321a6=a159_0x18e4;await mkdir(dirname(_0xe850f7),{'recursive':!![]}),await writeFile(_0xe850f7,JSON['stringify'](_0x1b13e8,null,0x2),_0x4321a6(0xec));}
1
+ (function(_0x1c058d,_0x1001fe){const _0x1d83ab=a159_0x33fd,_0x38e2d9=_0x1c058d();while(!![]){try{const _0x1144cd=parseInt(_0x1d83ab(0x1e1))/0x1+-parseInt(_0x1d83ab(0x1d4))/0x2*(-parseInt(_0x1d83ab(0x1db))/0x3)+-parseInt(_0x1d83ab(0x1dc))/0x4*(parseInt(_0x1d83ab(0x1d7))/0x5)+parseInt(_0x1d83ab(0x1d2))/0x6+parseInt(_0x1d83ab(0x1de))/0x7*(-parseInt(_0x1d83ab(0x1d5))/0x8)+parseInt(_0x1d83ab(0x1d3))/0x9+-parseInt(_0x1d83ab(0x1da))/0xa*(parseInt(_0x1d83ab(0x1d9))/0xb);if(_0x1144cd===_0x1001fe)break;else _0x38e2d9['push'](_0x38e2d9['shift']());}catch(_0x1c572c){_0x38e2d9['push'](_0x38e2d9['shift']());}}}(a159_0xbf2a,0xe2ef1));import{mkdir,readFile,writeFile}from'node:fs/promises';function a159_0x33fd(_0x2086e0,_0x183d97){_0x2086e0=_0x2086e0-0x1cd;const _0xbf2a17=a159_0xbf2a();let _0x33fd89=_0xbf2a17[_0x2086e0];return _0x33fd89;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0xbf2a(){const _0x4faa89=['3318932bSMMTf','apps','42UAvbyJ','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync','1609419LQTfgx','\x22.\x20','code','stringify','sqls','utf8','7175394ciwmhA','1635750AODMKg','347034dPoJlF','1992712dgnlSa','\x22\x20vs\x20lock\x20\x22','5qtuaYa','sqlRoot','1661DCbOAL','16810duyHSF','9ipxbgN'];a159_0xbf2a=function(){return _0x4faa89;};return a159_0xbf2a();}export function ensureSqlLockScope(_0x6e3ee7,_0x14495a,_0x74370a,_0x5c37f2){const _0x25b37e=a159_0x33fd,_0x591674=_0x6e3ee7??createEmptySqlLock();let _0x8e7dae=_0x591674[_0x25b37e(0x1dd)][_0x14495a];if(!_0x8e7dae)return _0x8e7dae={'sqlRoot':_0x74370a,'lastSync':'','sqls':{}},_0x591674[_0x25b37e(0x1dd)][_0x14495a]=_0x8e7dae,{'lockData':_0x591674,'appLock':_0x8e7dae};if(!_0x8e7dae[_0x25b37e(0x1d8)])_0x8e7dae[_0x25b37e(0x1d8)]=_0x74370a;else{if(_0x8e7dae[_0x25b37e(0x1d8)]!==_0x74370a)throw new Error(_0x5c37f2+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x74370a+_0x25b37e(0x1d6)+_0x8e7dae['sqlRoot']+_0x25b37e(0x1cd)+_0x25b37e(0x1df));}return!_0x8e7dae[_0x25b37e(0x1d0)]&&(_0x8e7dae['sqls']={}),!_0x8e7dae[_0x25b37e(0x1e0)]&&(_0x8e7dae[_0x25b37e(0x1e0)]=''),{'lockData':_0x591674,'appLock':_0x8e7dae};}export async function readSqlLockFile(_0x16870c){const _0x4043b1=a159_0x33fd;try{const _0x214685=await readFile(_0x16870c,_0x4043b1(0x1d1));return JSON['parse'](_0x214685);}catch(_0x22b93a){if(_0x22b93a[_0x4043b1(0x1ce)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x22b93a));}}export async function writeSqlLockFile(_0x30996a,_0x3aa429){const _0x285d93=a159_0x33fd;await mkdir(dirname(_0x30996a),{'recursive':!![]}),await writeFile(_0x30996a,JSON[_0x285d93(0x1cf)](_0x3aa429,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0xdbf713,_0x2076a3){const _0x416291=a161_0x3cd5,_0x17f253=_0xdbf713();while(!![]){try{const _0x55f921=parseInt(_0x416291(0x1d4))/0x1+parseInt(_0x416291(0x1e8))/0x2+parseInt(_0x416291(0x1e6))/0x3*(-parseInt(_0x416291(0x1d6))/0x4)+parseInt(_0x416291(0x1dc))/0x5*(-parseInt(_0x416291(0x1e7))/0x6)+parseInt(_0x416291(0x1df))/0x7+-parseInt(_0x416291(0x1db))/0x8+-parseInt(_0x416291(0x1d5))/0x9*(-parseInt(_0x416291(0x1de))/0xa);if(_0x55f921===_0x2076a3)break;else _0x17f253['push'](_0x17f253['shift']());}catch(_0x889f6e){_0x17f253['push'](_0x17f253['shift']());}}}(a161_0x1198,0x92d10));export function detectSqlMode(_0x273cb5){const _0x52f180=a161_0x3cd5,_0x553064=_0x273cb5[_0x52f180(0x1e0)]();if(/^<(select|insert|update|delete)\b/i[_0x52f180(0x1d9)](_0x553064))return _0x52f180(0x1e2);return _0x52f180(0x1e3);}export function getSqlFileExtension(_0x17657e){const _0x576773=a161_0x3cd5;return _0x17657e==='mybatisXml'?_0x576773(0x1e1):_0x576773(0x1e5);}function a161_0x1198(){const _0x448e2a=['unknown-db','20pAoeNG','3161746RDUiQB','trimStart','.xml','mybatisXml','sql','db-','.sql','4101UskXnI','18lgEUfB','417090jZWZEf','803834lcSDFA','5921091TVSTTl','132TyhEBE','unknown-sql','replace','test','trim','7893000XGbazH','1911265iVslvd'];a161_0x1198=function(){return _0x448e2a;};return a161_0x1198();}export function buildDefaultSqlFileName(_0x5514ae,_0xfee91d){return''+_0x5514ae+getSqlFileExtension(_0xfee91d);}export function sanitizeSqlPathSegment(_0x487dcb,_0x45c12f){const _0x6ca19=a161_0x3cd5,_0x38c1df=String(_0x487dcb??'')[_0x6ca19(0x1da)](),_0x5405c5=_0x38c1df[_0x6ca19(0x1d8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x6ca19(0x1d8)](/-+/g,'-')[_0x6ca19(0x1d8)](/^\.+/,'')[_0x6ca19(0x1d8)](/\.+$/,'')['replace'](/^-+/,'')[_0x6ca19(0x1d8)](/-+$/,'');return _0x5405c5||_0x45c12f;}function a161_0x3cd5(_0xd64812,_0x27c40e){_0xd64812=_0xd64812-0x1d4;const _0x1198a7=a161_0x1198();let _0x3cd52f=_0x1198a7[_0xd64812];return _0x3cd52f;}export function buildDbDirectoryName(_0x48c281,_0x2192ce){const _0x186a4b=a161_0x3cd5;return sanitizeSqlPathSegment(_0x48c281,_0x2192ce!=null?_0x186a4b(0x1e4)+_0x2192ce:_0x186a4b(0x1dd));}export function buildSqlRelativePath(_0x5af89d,_0x27801d,_0x449fbb,_0x59d5b4,_0x4b9e4c){const _0x59e00d=a161_0x3cd5,_0x49b0e4=buildDbDirectoryName(_0x449fbb,_0x4b9e4c),_0x3872cf=sanitizeSqlPathSegment(_0x5af89d,_0x59e00d(0x1d7)),_0x2dc3c6=sanitizeSqlPathSegment(_0x27801d,_0x3872cf);return _0x49b0e4+'/'+_0x3872cf+'_'+_0x2dc3c6+getSqlFileExtension(_0x59d5b4);}
1
+ function a161_0x36c3(_0x3fb171,_0x39e3b6){_0x3fb171=_0x3fb171-0x1e9;const _0x3ae392=a161_0x3ae3();let _0x36c3bd=_0x3ae392[_0x3fb171];return _0x36c3bd;}(function(_0x39f649,_0x53cd36){const _0x1f2cd4=a161_0x36c3,_0x23095a=_0x39f649();while(!![]){try{const _0x5e23ab=parseInt(_0x1f2cd4(0x1fe))/0x1+parseInt(_0x1f2cd4(0x1fc))/0x2*(-parseInt(_0x1f2cd4(0x1eb))/0x3)+-parseInt(_0x1f2cd4(0x1ec))/0x4*(parseInt(_0x1f2cd4(0x1f1))/0x5)+parseInt(_0x1f2cd4(0x1e9))/0x6*(-parseInt(_0x1f2cd4(0x1f3))/0x7)+-parseInt(_0x1f2cd4(0x1fa))/0x8*(parseInt(_0x1f2cd4(0x1f9))/0x9)+parseInt(_0x1f2cd4(0x1ef))/0xa*(parseInt(_0x1f2cd4(0x1f7))/0xb)+-parseInt(_0x1f2cd4(0x1ea))/0xc*(-parseInt(_0x1f2cd4(0x1fb))/0xd);if(_0x5e23ab===_0x53cd36)break;else _0x23095a['push'](_0x23095a['shift']());}catch(_0x45711f){_0x23095a['push'](_0x23095a['shift']());}}}(a161_0x3ae3,0x27de7));export function detectSqlMode(_0x1f1b67){const _0x236226=a161_0x36c3,_0x4fc0a6=_0x1f1b67[_0x236226(0x1f0)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x4fc0a6))return _0x236226(0x1f5);return _0x236226(0x1ee);}export function getSqlFileExtension(_0x1801c4){const _0x5a004a=a161_0x36c3;return _0x1801c4==='mybatisXml'?_0x5a004a(0x1f6):'.sql';}function a161_0x3ae3(){const _0x3f8fca=['65821gazLaP','trim','mybatisXml','.xml','383317JqVDlD','replace','27OzSkqP','817136yRiJdl','273TQoNqG','136pnqqeV','unknown-sql','291448qGAdTd','96hxBGWO','171732SoyPGk','3309GiXOox','1132aPnjrC','unknown-db','sql','50lTdlow','trimStart','1255HgKnRU','db-'];a161_0x3ae3=function(){return _0x3f8fca;};return a161_0x3ae3();}export function buildDefaultSqlFileName(_0x24b818,_0x169364){return''+_0x24b818+getSqlFileExtension(_0x169364);}export function sanitizeSqlPathSegment(_0x33e223,_0x33a021){const _0x332f16=a161_0x36c3,_0x47ca0=String(_0x33e223??'')[_0x332f16(0x1f4)](),_0x365f98=_0x47ca0[_0x332f16(0x1f8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x332f16(0x1f8)](/\s+/g,'-')[_0x332f16(0x1f8)](/-+/g,'-')['replace'](/^\.+/,'')[_0x332f16(0x1f8)](/\.+$/,'')[_0x332f16(0x1f8)](/^-+/,'')['replace'](/-+$/,'');return _0x365f98||_0x33a021;}export function buildDbDirectoryName(_0xcb54eb,_0x38b3fd){const _0x1de335=a161_0x36c3;return sanitizeSqlPathSegment(_0xcb54eb,_0x38b3fd!=null?_0x1de335(0x1f2)+_0x38b3fd:_0x1de335(0x1ed));}export function buildSqlRelativePath(_0x705c7e,_0xe5bd36,_0x2ee871,_0x3f1b6f,_0x434ce5){const _0x3ee7db=a161_0x36c3,_0x2bf7b9=buildDbDirectoryName(_0x2ee871,_0x434ce5),_0x3c1b9b=sanitizeSqlPathSegment(_0x705c7e,_0x3ee7db(0x1fd)),_0x19a0a9=sanitizeSqlPathSegment(_0xe5bd36,_0x3c1b9b);return _0x2bf7b9+'/'+_0x3c1b9b+'_'+_0x19a0a9+getSqlFileExtension(_0x3f1b6f);}
@@ -1 +1 @@
1
- (function(_0x42bdd1,_0x3c0cc4){const _0x5666b5=a162_0x1426,_0x309d56=_0x42bdd1();while(!![]){try{const _0x4ec458=-parseInt(_0x5666b5(0x179))/0x1*(parseInt(_0x5666b5(0x18d))/0x2)+-parseInt(_0x5666b5(0x18e))/0x3+-parseInt(_0x5666b5(0x174))/0x4+-parseInt(_0x5666b5(0x176))/0x5+parseInt(_0x5666b5(0x18f))/0x6+-parseInt(_0x5666b5(0x192))/0x7+parseInt(_0x5666b5(0x188))/0x8;if(_0x4ec458===_0x3c0cc4)break;else _0x309d56['push'](_0x309d56['shift']());}catch(_0x1027c1){_0x309d56['push'](_0x309d56['shift']());}}}(a162_0x47ab,0x64b8e));export function detectSqlType(_0x2b4d10){const _0x536a65=a162_0x1426;if(!_0x2b4d10?.[_0x536a65(0x178)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x536a65(0x187)};const _0x48ffa2=_0x2b4d10[_0x536a65(0x196)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x536a65(0x196)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x536a65(0x196)](/\/\*[\s\S]*?\*\//g,'')[_0x536a65(0x178)](),_0x42586d=_0x48ffa2[_0x536a65(0x194)]('\x0a');let _0x407ef4='';for(const _0x5a9008 of _0x42586d){const _0xb3a74=_0x5a9008[_0x536a65(0x178)]();if(!_0xb3a74||_0xb3a74[_0x536a65(0x189)]('--')||_0xb3a74[_0x536a65(0x189)]('/*'))continue;_0x407ef4=_0xb3a74;break;}const _0x14f332=_0x407ef4[_0x536a65(0x18b)]();if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x177))||_0x14f332[_0x536a65(0x189)]('WITH')){const _0x49953a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x536a65(0x173)](_0x48ffa2);return{'type':_0x536a65(0x177),'isSelectOnly':!_0x49953a,'isDangerous':_0x49953a,'reason':_0x49953a?_0x536a65(0x195):undefined};}if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x193)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x18c)))return{'type':_0x536a65(0x18c),'isSelectOnly':![],'isDangerous':![]};if(_0x14f332[_0x536a65(0x189)]('DELETE'))return{'type':_0x536a65(0x183),'isSelectOnly':![],'isDangerous':!![],'reason':_0x536a65(0x17e)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x14f332))return{'type':_0x536a65(0x186),'isSelectOnly':![],'isDangerous':!![],'reason':_0x536a65(0x199)};return{'type':_0x536a65(0x190),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x299edd){const _0x5238d1=a162_0x1426,_0x2805fa=_0x299edd['replace'](/#\{[^}]*\}/g,'?')[_0x5238d1(0x196)](/\$\{[^}]*\}/g,'?')[_0x5238d1(0x196)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x533656=[],_0x503dae=_0x2805fa[_0x5238d1(0x198)](/FROM\s+([^\s,)(]+)/i);if(_0x503dae?.[0x1])_0x533656[_0x5238d1(0x185)](_0x503dae[0x1][_0x5238d1(0x196)](/[`"]/g,''));for(const _0x7d4795 of _0x2805fa[_0x5238d1(0x18a)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x15b256=_0x7d4795[0x1]?.['replace'](/[`"]/g,'');if(_0x15b256&&!_0x533656['includes'](_0x15b256))_0x533656[_0x5238d1(0x185)](_0x15b256);}const _0x1aee4d=_0x2805fa[_0x5238d1(0x198)](/INTO\s+([^\s(]+)/i);if(_0x1aee4d?.[0x1]){const _0x1c2d9b=_0x1aee4d[0x1]['replace'](/[`"]/g,'');if(!_0x533656['includes'](_0x1c2d9b))_0x533656[_0x5238d1(0x185)](_0x1c2d9b);}const _0x3652e3=_0x2805fa[_0x5238d1(0x198)](/UPDATE\s+([^\s,)(]+)/i);if(_0x3652e3?.[0x1]){const _0x16e191=_0x3652e3[0x1][_0x5238d1(0x196)](/[`"]/g,'');if(!_0x533656[_0x5238d1(0x17d)](_0x16e191))_0x533656[_0x5238d1(0x185)](_0x16e191);}return _0x533656;}function a162_0x1426(_0x372763,_0x4b2f97){_0x372763=_0x372763-0x173;const _0x47abff=a162_0x47ab();let _0x1426ff=_0x47abff[_0x372763];return _0x1426ff;}function extractParameters(_0x107110){const _0x557fa8=a162_0x1426,_0x5f4be8=new Set();for(const _0x260691 of _0x107110[_0x557fa8(0x18a)](/#\{(\w+)\}/g))if(_0x260691[0x1])_0x5f4be8[_0x557fa8(0x182)](_0x260691[0x1]);for(const _0x400c33 of _0x107110[_0x557fa8(0x18a)](/\$\{(\w+)\}/g))if(_0x400c33[0x1])_0x5f4be8[_0x557fa8(0x182)](_0x400c33[0x1]);return Array[_0x557fa8(0x197)](_0x5f4be8);}function a162_0x47ab(){const _0x437e72=['matchAll','toUpperCase','UPDATE','7110cGckTz','2251281vuNGCt','4587408NSXNPh','UNKNOWN','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4106501PNifPv','INSERT','split','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','replace','from','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','1466620mbrHZX','join','3503380qaDDXU','SELECT','trim','79EwrgJW','length','unknown\x20table(s)','type','includes','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','reason','\x20with\x20parameters:\x20','\x20query\x20targeting\x20','add','DELETE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','push','DDL','SQL\x20content\x20is\x20empty','18665888KquLzZ','startsWith'];a162_0x47ab=function(){return _0x437e72;};return a162_0x47ab();}export function validateSql(_0x5d4b8a){const _0x48ce26=a162_0x1426,_0xcd58e7=detectSqlType(_0x5d4b8a),_0x2d9767=extractTables(_0x5d4b8a),_0x57ced4=extractParameters(_0x5d4b8a);if(_0xcd58e7['isDangerous'])return{'valid':![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0xcd58e7[_0x48ce26(0x17f)]||_0xcd58e7[_0x48ce26(0x17c)]+_0x48ce26(0x184)};if(_0xcd58e7[_0x48ce26(0x17c)]===_0x48ce26(0x190))return{'valid':![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0x48ce26(0x191)};return{'valid':!![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0xcd58e7['type']+_0x48ce26(0x181)+(_0x2d9767[_0x48ce26(0x17a)]?_0x2d9767[_0x48ce26(0x175)](',\x20'):_0x48ce26(0x17b))+(_0x57ced4[_0x48ce26(0x17a)]?_0x48ce26(0x180)+_0x57ced4['join'](',\x20'):'')};}
1
+ function a162_0x58f0(){const _0x11a5bb=['push','\x20query\x20targeting\x20','type','UPDATE','add','SELECT','263300ukrHfa','758544XCEoNH','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','from','trim','781jrYrQa','3247384cTdTRd','3846024rNWphM','matchAll','DELETE','DDL','9iZzPGt','INSERT','7muTFHT','153618CszmAt','unknown\x20table(s)','split','join','10YuaMqF','includes','isDangerous','WITH','84WYCumI','850842VmpRUq','match','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','replace','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','length','test','toUpperCase','UNKNOWN','13028190BFKpYN','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'];a162_0x58f0=function(){return _0x11a5bb;};return a162_0x58f0();}(function(_0x3f550e,_0x243bae){const _0x399d23=a162_0x2280,_0x3ef44e=_0x3f550e();while(!![]){try{const _0x370b05=-parseInt(_0x399d23(0xc8))/0x1+-parseInt(_0x399d23(0xc3))/0x2*(parseInt(_0x399d23(0xe8))/0x3)+-parseInt(_0x399d23(0xe1))/0x4+parseInt(_0x399d23(0xda))/0x5*(-parseInt(_0x399d23(0xc7))/0x6)+-parseInt(_0x399d23(0xe7))/0x7*(-parseInt(_0x399d23(0xe0))/0x8)+parseInt(_0x399d23(0xe5))/0x9*(-parseInt(_0x399d23(0xd2))/0xa)+-parseInt(_0x399d23(0xdf))/0xb*(-parseInt(_0x399d23(0xdb))/0xc);if(_0x370b05===_0x243bae)break;else _0x3ef44e['push'](_0x3ef44e['shift']());}catch(_0x10d386){_0x3ef44e['push'](_0x3ef44e['shift']());}}}(a162_0x58f0,0xbfc82));export function detectSqlType(_0x2488a3){const _0x58e36b=a162_0x2280;if(!_0x2488a3?.[_0x58e36b(0xde)]())return{'type':_0x58e36b(0xd1),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x597d45=_0x2488a3[_0x58e36b(0xcb)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x58e36b(0xcb)](/\/\*[\s\S]*?\*\//g,'')[_0x58e36b(0xde)](),_0x34281b=_0x597d45[_0x58e36b(0xc1)]('\x0a');let _0x33c3d2='';for(const _0x4a57a0 of _0x34281b){const _0x24dfb9=_0x4a57a0['trim']();if(!_0x24dfb9||_0x24dfb9[_0x58e36b(0xcd)]('--')||_0x24dfb9[_0x58e36b(0xcd)]('/*'))continue;_0x33c3d2=_0x24dfb9;break;}const _0x141659=_0x33c3d2[_0x58e36b(0xd0)]();if(_0x141659[_0x58e36b(0xcd)](_0x58e36b(0xd9))||_0x141659[_0x58e36b(0xcd)](_0x58e36b(0xc6))){const _0x4549b3=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x58e36b(0xcf)](_0x597d45);return{'type':_0x58e36b(0xd9),'isSelectOnly':!_0x4549b3,'isDangerous':_0x4549b3,'reason':_0x4549b3?_0x58e36b(0xca):undefined};}if(_0x141659[_0x58e36b(0xcd)](_0x58e36b(0xe6)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x141659[_0x58e36b(0xcd)]('UPDATE'))return{'type':_0x58e36b(0xd7),'isSelectOnly':![],'isDangerous':![]};if(_0x141659[_0x58e36b(0xcd)]('DELETE'))return{'type':_0x58e36b(0xe3),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x58e36b(0xcf)](_0x141659))return{'type':_0x58e36b(0xe4),'isSelectOnly':![],'isDangerous':!![],'reason':_0x58e36b(0xcc)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x4bab05){const _0x573dcb=a162_0x2280,_0x1a368b=_0x4bab05[_0x573dcb(0xcb)](/#\{[^}]*\}/g,'?')[_0x573dcb(0xcb)](/\$\{[^}]*\}/g,'?')[_0x573dcb(0xcb)](/'[^']*'/g,'\x27\x27')[_0x573dcb(0xcb)](/--.*$/gm,'')[_0x573dcb(0xcb)](/\/\*[\s\S]*?\*\//g,''),_0x323f10=[],_0x1b5928=_0x1a368b[_0x573dcb(0xc9)](/FROM\s+([^\s,)(]+)/i);if(_0x1b5928?.[0x1])_0x323f10[_0x573dcb(0xd4)](_0x1b5928[0x1][_0x573dcb(0xcb)](/[`"]/g,''));for(const _0x35abe6 of _0x1a368b[_0x573dcb(0xe2)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1b8529=_0x35abe6[0x1]?.[_0x573dcb(0xcb)](/[`"]/g,'');if(_0x1b8529&&!_0x323f10[_0x573dcb(0xc4)](_0x1b8529))_0x323f10['push'](_0x1b8529);}const _0x49c70e=_0x1a368b[_0x573dcb(0xc9)](/INTO\s+([^\s(]+)/i);if(_0x49c70e?.[0x1]){const _0x402e43=_0x49c70e[0x1]['replace'](/[`"]/g,'');if(!_0x323f10[_0x573dcb(0xc4)](_0x402e43))_0x323f10[_0x573dcb(0xd4)](_0x402e43);}const _0x3d37f0=_0x1a368b[_0x573dcb(0xc9)](/UPDATE\s+([^\s,)(]+)/i);if(_0x3d37f0?.[0x1]){const _0x374b67=_0x3d37f0[0x1][_0x573dcb(0xcb)](/[`"]/g,'');if(!_0x323f10[_0x573dcb(0xc4)](_0x374b67))_0x323f10[_0x573dcb(0xd4)](_0x374b67);}return _0x323f10;}function extractParameters(_0x49a654){const _0x8f12d4=a162_0x2280,_0x5be2b3=new Set();for(const _0x52e8a7 of _0x49a654[_0x8f12d4(0xe2)](/#\{(\w+)\}/g))if(_0x52e8a7[0x1])_0x5be2b3['add'](_0x52e8a7[0x1]);for(const _0x265130 of _0x49a654[_0x8f12d4(0xe2)](/\$\{(\w+)\}/g))if(_0x265130[0x1])_0x5be2b3[_0x8f12d4(0xd8)](_0x265130[0x1]);return Array[_0x8f12d4(0xdd)](_0x5be2b3);}function a162_0x2280(_0x2f1966,_0x5066af){_0x2f1966=_0x2f1966-0xc1;const _0x58f03d=a162_0x58f0();let _0x228085=_0x58f03d[_0x2f1966];return _0x228085;}export function validateSql(_0x2db170){const _0x3aa2c3=a162_0x2280,_0x2de5bd=detectSqlType(_0x2db170),_0xdf96fd=extractTables(_0x2db170),_0x1df096=extractParameters(_0x2db170);if(_0x2de5bd[_0x3aa2c3(0xc5)])return{'valid':![],'sqlType':_0x2de5bd,'tables':_0xdf96fd,'parameters':_0x1df096,'message':_0x2de5bd['reason']||_0x2de5bd[_0x3aa2c3(0xd6)]+_0x3aa2c3(0xd3)};if(_0x2de5bd[_0x3aa2c3(0xd6)]==='UNKNOWN')return{'valid':![],'sqlType':_0x2de5bd,'tables':_0xdf96fd,'parameters':_0x1df096,'message':_0x3aa2c3(0xdc)};return{'valid':!![],'sqlType':_0x2de5bd,'tables':_0xdf96fd,'parameters':_0x1df096,'message':_0x2de5bd[_0x3aa2c3(0xd6)]+_0x3aa2c3(0xd5)+(_0xdf96fd[_0x3aa2c3(0xce)]?_0xdf96fd[_0x3aa2c3(0xc2)](',\x20'):_0x3aa2c3(0xe9))+(_0x1df096[_0x3aa2c3(0xce)]?'\x20with\x20parameters:\x20'+_0x1df096[_0x3aa2c3(0xc2)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a163_0xbff6(_0x313f20,_0x248e16){_0x313f20=_0x313f20-0x99;const _0x77e01a=a163_0x77e0();let _0xbff653=_0x77e01a[_0x313f20];return _0xbff653;}const a163_0x15dcc1=a163_0xbff6;(function(_0x2a0559,_0x40f191){const _0x44e40f=a163_0xbff6,_0x44907c=_0x2a0559();while(!![]){try{const _0x2f6003=parseInt(_0x44e40f(0xa6))/0x1*(parseInt(_0x44e40f(0x9a))/0x2)+parseInt(_0x44e40f(0xa7))/0x3*(-parseInt(_0x44e40f(0x9f))/0x4)+-parseInt(_0x44e40f(0xa8))/0x5+-parseInt(_0x44e40f(0xa5))/0x6*(-parseInt(_0x44e40f(0xa9))/0x7)+-parseInt(_0x44e40f(0x99))/0x8+parseInt(_0x44e40f(0xa4))/0x9*(-parseInt(_0x44e40f(0x9c))/0xa)+-parseInt(_0x44e40f(0xa0))/0xb*(-parseInt(_0x44e40f(0xab))/0xc);if(_0x2f6003===_0x40f191)break;else _0x44907c['push'](_0x44907c['shift']());}catch(_0x621fac){_0x44907c['push'](_0x44907c['shift']());}}}(a163_0x77e0,0x44478));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0x77e0(){const _0x188276=['2464005VmmLdW','14245hLfYgM','Tip:\x20`','72TQgJId','1369200znnFuJ','9702lAtSuB','Run\x20`','1150yfFvtG','\x20auth`\x20to\x20login\x20first.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','35324jIHRnH','1698224GqdXiF','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','31365hyPETX','138yDYCGa','82ahyzYE','9BRilMZ'];a163_0x77e0=function(){return _0x188276;};return a163_0x77e0();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x15dcc1(0x9b)+CLI_BIN_NAME+a163_0x15dcc1(0x9d),'configMissingHint':[a163_0x15dcc1(0xa3)+CLI_BIN_NAME+a163_0x15dcc1(0xa2),a163_0x15dcc1(0xaa)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a163_0x15dcc1(0xa1)),'notInProjectHint':a163_0x15dcc1(0x9e)});
1
+ const a163_0x1fed56=a163_0x4b94;(function(_0x4a0b95,_0x3d635a){const _0x827c48=a163_0x4b94,_0x3167fc=_0x4a0b95();while(!![]){try{const _0x3d2fbe=-parseInt(_0x827c48(0x1ad))/0x1+parseInt(_0x827c48(0x1ac))/0x2*(-parseInt(_0x827c48(0x1b4))/0x3)+-parseInt(_0x827c48(0x1aa))/0x4*(-parseInt(_0x827c48(0x1ae))/0x5)+parseInt(_0x827c48(0x1b5))/0x6+parseInt(_0x827c48(0x1b0))/0x7+parseInt(_0x827c48(0x1b3))/0x8+parseInt(_0x827c48(0x1b1))/0x9;if(_0x3d2fbe===_0x3d635a)break;else _0x3167fc['push'](_0x3167fc['shift']());}catch(_0x3ccb56){_0x3167fc['push'](_0x3167fc['shift']());}}}(a163_0x515f,0x72799));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a163_0x4b94(_0x385d7f,_0x59f794){_0x385d7f=_0x385d7f-0x1aa;const _0x515f73=a163_0x515f();let _0x4b9411=_0x515f73[_0x385d7f];return _0x4b9411;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a163_0x515f(){const _0x500a87=['Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','18VPOPPG','659677sfzgmu','510745QzvkIM','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','491267fXJhMa','5665752YGmYsd','join','4436776DaNoIZ','155679YsEqxx','209100nmFcFz','Set\x20appcode\x20via\x20`','12FZbCPt'];a163_0x515f=function(){return _0x500a87;};return a163_0x515f();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a163_0x1fed56(0x1b6)+CLI_BIN_NAME+a163_0x1fed56(0x1af),'Tip:\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a163_0x1fed56(0x1b2)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a163_0x1fed56(0x1ab)});
@@ -1 +1 @@
1
- (function(_0x45f0a1,_0x3a7c5a){var _0x21735b=a164_0x2d68,_0x41cd79=_0x45f0a1();while(!![]){try{var _0x3ee2ee=-parseInt(_0x21735b(0xc7))/0x1+parseInt(_0x21735b(0xc9))/0x2*(-parseInt(_0x21735b(0xc8))/0x3)+-parseInt(_0x21735b(0xc2))/0x4+-parseInt(_0x21735b(0xc4))/0x5*(parseInt(_0x21735b(0xc3))/0x6)+parseInt(_0x21735b(0xc5))/0x7+parseInt(_0x21735b(0xc6))/0x8*(parseInt(_0x21735b(0xcb))/0x9)+-parseInt(_0x21735b(0xca))/0xa;if(_0x3ee2ee===_0x3a7c5a)break;else _0x41cd79['push'](_0x41cd79['shift']());}catch(_0x4ef94c){_0x41cd79['push'](_0x41cd79['shift']());}}}(a164_0x1e30,0x7cefd));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a164_0x1e30(){var _0x483402=['39194pXexJh','1528650epndJl','7884360suJktq','72240cuasVw','12SwqWIt','325605dwefvn','2381589QLeKiE','8RgSMGS','324971raWNWq','12IlregE'];a164_0x1e30=function(){return _0x483402;};return a164_0x1e30();}import{buildAllFlags as a164_0x2c1d62}from'@lovrabet/cli-framework';function a164_0x2d68(_0x1e6cd9,_0x13d88d){_0x1e6cd9=_0x1e6cd9-0xc2;var _0x1e30c5=a164_0x1e30();var _0x2d6816=_0x1e30c5[_0x1e6cd9];return _0x2d6816;}export function buildAllFlags(_0x1ed4cb){return a164_0x2c1d62(_0x1ed4cb,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a164_0xd795(_0x5ecbdf,_0x433911){_0x5ecbdf=_0x5ecbdf-0x115;var _0x3b865c=a164_0x3b86();var _0xd795fe=_0x3b865c[_0x5ecbdf];return _0xd795fe;}(function(_0x18a026,_0x2dd053){var _0x37ff71=a164_0xd795,_0x4522ea=_0x18a026();while(!![]){try{var _0x1021ea=-parseInt(_0x37ff71(0x120))/0x1*(parseInt(_0x37ff71(0x11c))/0x2)+-parseInt(_0x37ff71(0x11e))/0x3+-parseInt(_0x37ff71(0x119))/0x4*(-parseInt(_0x37ff71(0x11b))/0x5)+-parseInt(_0x37ff71(0x11a))/0x6+-parseInt(_0x37ff71(0x117))/0x7*(-parseInt(_0x37ff71(0x116))/0x8)+parseInt(_0x37ff71(0x115))/0x9*(-parseInt(_0x37ff71(0x11d))/0xa)+-parseInt(_0x37ff71(0x118))/0xb*(-parseInt(_0x37ff71(0x11f))/0xc);if(_0x1021ea===_0x2dd053)break;else _0x4522ea['push'](_0x4522ea['shift']());}catch(_0x36f4fa){_0x4522ea['push'](_0x4522ea['shift']());}}}(a164_0x3b86,0xb3567));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x9a322d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x10d3c0){return a164_0x9a322d(_0x10d3c0,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a164_0x3b86(){var _0x18ac84=['155HorThQ','4SOfPdP','950awZgoC','2993289SffSCr','24ZfCjGy','219671KtMApt','134721xNHbMj','164872GrcKjp','56fFxOKu','17231467NmoLhl','139356wqRFvi','4704888GDpuTV'];a164_0x3b86=function(){return _0x18ac84;};return a164_0x3b86();}
@@ -1 +1 @@
1
- (function(_0x4bcbfd,_0x4fac7d){const _0x3c64a7=a165_0x505e,_0x321dbd=_0x4bcbfd();while(!![]){try{const _0x3bcf32=-parseInt(_0x3c64a7(0x14b))/0x1*(-parseInt(_0x3c64a7(0x14c))/0x2)+-parseInt(_0x3c64a7(0x148))/0x3+-parseInt(_0x3c64a7(0x147))/0x4+-parseInt(_0x3c64a7(0x146))/0x5+parseInt(_0x3c64a7(0x145))/0x6+parseInt(_0x3c64a7(0x149))/0x7*(parseInt(_0x3c64a7(0x14d))/0x8)+parseInt(_0x3c64a7(0x14a))/0x9;if(_0x3bcf32===_0x4fac7d)break;else _0x321dbd['push'](_0x321dbd['shift']());}catch(_0x2f5ea3){_0x321dbd['push'](_0x321dbd['shift']());}}}(a165_0x3def,0x771af));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a165_0x505e(_0x39afbf,_0x2b6f67){_0x39afbf=_0x39afbf-0x145;const _0x3def49=a165_0x3def();let _0x505eea=_0x3def49[_0x39afbf];return _0x505eea;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a165_0x3def(){const _0x5c4ef9=['3GkQDJU','304518CZOFWd','2680WzRuxW','5116230SHWaGi','3221725zGcLMr','2039512wXIgVi','267399FPcwyR','4655VBIjgK','1790586kUBHvR'];a165_0x3def=function(){return _0x5c4ef9;};return a165_0x3def();}export const validateFlags=helpers['validateFlags'];
1
+ const a165_0x28be1b=a165_0x2d0c;(function(_0x53eee6,_0x5974ac){const _0x5693f7=a165_0x2d0c,_0x7e623d=_0x53eee6();while(!![]){try{const _0x5e5587=-parseInt(_0x5693f7(0x18f))/0x1*(parseInt(_0x5693f7(0x18c))/0x2)+parseInt(_0x5693f7(0x18d))/0x3+-parseInt(_0x5693f7(0x194))/0x4*(parseInt(_0x5693f7(0x190))/0x5)+parseInt(_0x5693f7(0x191))/0x6+-parseInt(_0x5693f7(0x193))/0x7*(parseInt(_0x5693f7(0x192))/0x8)+parseInt(_0x5693f7(0x195))/0x9+parseInt(_0x5693f7(0x18e))/0xa;if(_0x5e5587===_0x5974ac)break;else _0x7e623d['push'](_0x7e623d['shift']());}catch(_0x2f9d64){_0x7e623d['push'](_0x7e623d['shift']());}}}(a165_0x22ec,0x3fc81));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a165_0x2d0c(_0x44174d,_0x20ad90){_0x44174d=_0x44174d-0x18b;const _0x22eced=a165_0x22ec();let _0x2d0cde=_0x22eced[_0x44174d];return _0x2d0cde;}function a165_0x22ec(){const _0x42516d=['491223dkcHbG','9451920GbJhqm','76582xmDhlc','576610NWvFNw','856110sXjrUn','1271384NzLEGq','14LhTuXV','8MbknSQ','158517ObEipy','parseFlags','12Gcjipt'];a165_0x22ec=function(){return _0x42516d;};return a165_0x22ec();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a165_0x28be1b(0x18b)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a166_0x211910=a166_0xeee7;(function(_0x414507,_0x12ee99){const _0x3556d0=a166_0xeee7,_0x123f0e=_0x414507();while(!![]){try{const _0x33040c=parseInt(_0x3556d0(0x84))/0x1*(-parseInt(_0x3556d0(0x8a))/0x2)+-parseInt(_0x3556d0(0x88))/0x3+parseInt(_0x3556d0(0x89))/0x4*(parseInt(_0x3556d0(0x82))/0x5)+parseInt(_0x3556d0(0x87))/0x6+-parseInt(_0x3556d0(0x85))/0x7+parseInt(_0x3556d0(0x86))/0x8+parseInt(_0x3556d0(0x80))/0x9*(parseInt(_0x3556d0(0x8e))/0xa);if(_0x33040c===_0x12ee99)break;else _0x123f0e['push'](_0x123f0e['shift']());}catch(_0x416329){_0x123f0e['push'](_0x123f0e['shift']());}}}(a166_0x263f,0x7bf33));function a166_0xeee7(_0x574526,_0x56d38e){_0x574526=_0x574526-0x7e;const _0x263f6f=a166_0x263f();let _0xeee7ab=_0x263f6f[_0x574526];return _0xeee7ab;}function a166_0x263f(){const _0x2141a4=['2630160QdkhER','885756iqkPnW','92SnuOUz','178102pMsFKO','get','\x20project\x20init`\x20or\x20--appcode).','generateFullHelp','90XpZbQH','\x20[args]\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','64566MaMJyU','generateCommandHelp','181385agcqcn','generateServiceHelp','3erzqAr','5642259nqYuqS','4310752DOmIXr'];a166_0x263f=function(){return _0x2141a4;};return a166_0x263f();}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':_0x4fb31d=>serviceGroups[a166_0x211910(0x8b)](_0x4fb31d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x211910(0x7f)+CLI_BIN_NAME+a166_0x211910(0x8c),'serviceUsageSuffix':a166_0x211910(0x7e),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2a4b31){const _0x48bcbe=a166_0x211910;return generators[_0x48bcbe(0x81)](_0x2a4b31);}export const generateServiceHelp=generators[a166_0x211910(0x83)];export const generateFullHelp=generators[a166_0x211910(0x8d)];
1
+ const a166_0x2b28d7=a166_0x25f5;(function(_0x1f1802,_0xb5d250){const _0x3baa0d=a166_0x25f5,_0x53c15c=_0x1f1802();while(!![]){try{const _0x35d5c1=parseInt(_0x3baa0d(0x167))/0x1+-parseInt(_0x3baa0d(0x16d))/0x2*(parseInt(_0x3baa0d(0x176))/0x3)+-parseInt(_0x3baa0d(0x16e))/0x4+-parseInt(_0x3baa0d(0x170))/0x5*(parseInt(_0x3baa0d(0x174))/0x6)+parseInt(_0x3baa0d(0x16a))/0x7+parseInt(_0x3baa0d(0x16c))/0x8*(parseInt(_0x3baa0d(0x168))/0x9)+parseInt(_0x3baa0d(0x169))/0xa;if(_0x35d5c1===_0xb5d250)break;else _0x53c15c['push'](_0x53c15c['shift']());}catch(_0x4a1519){_0x53c15c['push'](_0x53c15c['shift']());}}}(a166_0x35c5,0x6711c));function a166_0x25f5(_0x57bd5f,_0x582662){_0x57bd5f=_0x57bd5f-0x167;const _0x35c558=a166_0x35c5();let _0x25f589=_0x35c558[_0x57bd5f];return _0x25f589;}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':_0x22adfb=>serviceGroups[a166_0x2b28d7(0x16b)](_0x22adfb),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x2b28d7(0x175)+CLI_BIN_NAME+a166_0x2b28d7(0x172),'serviceUsageSuffix':a166_0x2b28d7(0x16f),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x158600){const _0x2ca1d4=a166_0x2b28d7;return generators[_0x2ca1d4(0x171)](_0x158600);}function a166_0x35c5(){const _0x13aa62=['10786870JraqiS','809130RqiTXN','get','706744geGPtz','2YAjYDA','2177776dXANfD','\x20[args]\x20[flags]','3626095DLuYas','generateCommandHelp','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','6HVeLKa','Requires\x20appcode\x20(set\x20via\x20`','243765HwLDAS','402127FZZvUl','18SetCKA'];a166_0x35c5=function(){return _0x13aa62;};return a166_0x35c5();}export const generateServiceHelp=generators[a166_0x2b28d7(0x173)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x35ca6a,_0x421243){var _0x1dace2=a167_0x4970,_0x2cd175=_0x35ca6a();while(!![]){try{var _0x5ed049=parseInt(_0x1dace2(0x84))/0x1*(-parseInt(_0x1dace2(0x86))/0x2)+-parseInt(_0x1dace2(0x83))/0x3+parseInt(_0x1dace2(0x8c))/0x4*(parseInt(_0x1dace2(0x8d))/0x5)+parseInt(_0x1dace2(0x88))/0x6+-parseInt(_0x1dace2(0x87))/0x7+-parseInt(_0x1dace2(0x8a))/0x8*(parseInt(_0x1dace2(0x85))/0x9)+parseInt(_0x1dace2(0x89))/0xa*(parseInt(_0x1dace2(0x8b))/0xb);if(_0x5ed049===_0x421243)break;else _0x2cd175['push'](_0x2cd175['shift']());}catch(_0x50d010){_0x2cd175['push'](_0x2cd175['shift']());}}}(a167_0x5289,0xa70f8));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a167_0x5289(){var _0x23f56c=['46183ZzuAyM','2791899XnKcbf','46DFmhPa','6793787PLtLSU','3767532gasEDS','10imEhSf','24fflJba','42597049eHxBtZ','119188pvUanU','5DgOMqd','2647545CEyYNQ'];a167_0x5289=function(){return _0x23f56c;};return a167_0x5289();}export{extractList,extractPaging}from'../framework/response.js';function a167_0x4970(_0x18fb0b,_0x137f17){_0x18fb0b=_0x18fb0b-0x83;var _0x528934=a167_0x5289();var _0x497051=_0x528934[_0x18fb0b];return _0x497051;}export{riskLevelOrder}from'../framework/types.js';
1
+ function a167_0x9cb4(){var _0x15ef3b=['5302060Cjnaox','165805QjKzJF','6154713HIEwNw','39ThBpur','21IeShsF','411268PfNMZs','2254glizTr','222eqKCpo','3Tyrari','356078gURlex','7640dblvJP','22AYWyrq','10674600pacLkm'];a167_0x9cb4=function(){return _0x15ef3b;};return a167_0x9cb4();}(function(_0x5b2a95,_0x57a664){var _0x500594=a167_0x2b66,_0x3c2953=_0x5b2a95();while(!![]){try{var _0x2a319e=-parseInt(_0x500594(0x1d4))/0x1*(-parseInt(_0x500594(0x1d5))/0x2)+-parseInt(_0x500594(0x1d0))/0x3*(-parseInt(_0x500594(0x1d1))/0x4)+parseInt(_0x500594(0x1cd))/0x5*(-parseInt(_0x500594(0x1d3))/0x6)+-parseInt(_0x500594(0x1d2))/0x7*(parseInt(_0x500594(0x1d6))/0x8)+-parseInt(_0x500594(0x1ce))/0x9+-parseInt(_0x500594(0x1d9))/0xa*(parseInt(_0x500594(0x1d7))/0xb)+parseInt(_0x500594(0x1d8))/0xc*(parseInt(_0x500594(0x1cf))/0xd);if(_0x2a319e===_0x57a664)break;else _0x3c2953['push'](_0x3c2953['shift']());}catch(_0x4a2978){_0x3c2953['push'](_0x3c2953['shift']());}}}(a167_0x9cb4,0x9d2a6));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a167_0x2b66(_0xee8df8,_0x32d303){_0xee8df8=_0xee8df8-0x1cd;var _0x9cb44b=a167_0x9cb4();var _0x2b66b1=_0x9cb44b[_0xee8df8];return _0x2b66b1;}export{formatOutput}from'../framework/output.js';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(_0x20683a,_0x5c416a){const _0x3472f9=a168_0xdb8e,_0x1579da=_0x20683a();while(!![]){try{const _0x333837=parseInt(_0x3472f9(0x1e2))/0x1*(-parseInt(_0x3472f9(0x1e6))/0x2)+parseInt(_0x3472f9(0x1e1))/0x3+parseInt(_0x3472f9(0x1e5))/0x4+-parseInt(_0x3472f9(0x1dd))/0x5+parseInt(_0x3472f9(0x1e3))/0x6*(parseInt(_0x3472f9(0x1e8))/0x7)+parseInt(_0x3472f9(0x1e7))/0x8+parseInt(_0x3472f9(0x1e4))/0x9*(-parseInt(_0x3472f9(0x1de))/0xa);if(_0x333837===_0x5c416a)break;else _0x1579da['push'](_0x1579da['shift']());}catch(_0x1b6785){_0x1579da['push'](_0x1579da['shift']());}}}(a168_0x5ea0,0x7c5f8));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x5ea0(){const _0x26ddf6=['_notice','343800oggiGW','601210JIyeqi','pretty','update','1098444OygWNn','5WRbwrY','115680sRmuGU','117Pakeci','1514052XGbUaC','29758ITyMJP','4282072epEXFK','56yBaUCg'];a168_0x5ea0=function(){return _0x26ddf6;};return a168_0x5ea0();}function a168_0xdb8e(_0x108d8d,_0x43dda1){_0x108d8d=_0x108d8d-0x1dd;const _0x5ea0b4=a168_0x5ea0();let _0xdb8e35=_0x5ea0b4[_0x108d8d];return _0xdb8e35;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x22a74a,_0x511f9c){const _0x42d81f=a168_0xdb8e,_0x3f9031=_0x22a74a[_0x42d81f(0x1e9)],{_notice:_0x14a244,..._0x9129f2}=_0x22a74a;void _0x14a244,baseFormatOutput(_0x9129f2,_0x511f9c),_0x511f9c['format']===_0x42d81f(0x1df)&&printPrettyNotice(_0x3f9031);}function printPrettyNotice(_0x39ad85){const _0x3f5b61=a168_0xdb8e;if(!_0x39ad85?.['update'])return;console['error'](_0x39ad85[_0x3f5b61(0x1e0)]['message']+'\x20('+_0x39ad85[_0x3f5b61(0x1e0)]['url']+')');}
1
+ (function(_0x5091c0,_0xf15e02){const _0x15bfc2=a168_0xd59b,_0xc80ca6=_0x5091c0();while(!![]){try{const _0x1cf120=parseInt(_0x15bfc2(0x1b2))/0x1+-parseInt(_0x15bfc2(0x1a7))/0x2+-parseInt(_0x15bfc2(0x1ad))/0x3+-parseInt(_0x15bfc2(0x1b5))/0x4+parseInt(_0x15bfc2(0x1b4))/0x5*(parseInt(_0x15bfc2(0x1b1))/0x6)+-parseInt(_0x15bfc2(0x1a8))/0x7+parseInt(_0x15bfc2(0x1b3))/0x8*(parseInt(_0x15bfc2(0x1af))/0x9);if(_0x1cf120===_0xf15e02)break;else _0xc80ca6['push'](_0xc80ca6['shift']());}catch(_0x3ca6d4){_0xc80ca6['push'](_0xc80ca6['shift']());}}}(a168_0x1000,0x9b93f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a168_0x1000(){const _0x5bca43=['format','message','640899nKJzcF','error','413163RVLgdw','pretty','169908bPXeFV','879444YvMjix','64AwHJTg','170PovtXn','1729784MEovQm','_notice','114074ExCLlO','6084043UERxZb','update','url'];a168_0x1000=function(){return _0x5bca43;};return a168_0x1000();}function a168_0xd59b(_0x128c34,_0x175eef){_0x128c34=_0x128c34-0x1a6;const _0x100019=a168_0x1000();let _0xd59b09=_0x100019[_0x128c34];return _0xd59b09;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x21a2e4,_0x4e02f1){const _0x5cac9d=a168_0xd59b,_0x7fdd90=_0x21a2e4[_0x5cac9d(0x1a6)],{_notice:_0x54400e,..._0x360a51}=_0x21a2e4;void _0x54400e,baseFormatOutput(_0x360a51,_0x4e02f1),_0x4e02f1[_0x5cac9d(0x1ab)]===_0x5cac9d(0x1b0)&&printPrettyNotice(_0x7fdd90);}function printPrettyNotice(_0x2b9247){const _0x11fbed=a168_0xd59b;if(!_0x2b9247?.['update'])return;console[_0x11fbed(0x1ae)](_0x2b9247[_0x11fbed(0x1a9)][_0x11fbed(0x1ac)]+'\x20('+_0x2b9247[_0x11fbed(0x1a9)][_0x11fbed(0x1aa)]+')');}
@@ -1 +1 @@
1
- (function(_0x404a95,_0x33af9b){var _0x57ecea=a169_0x1520,_0x465614=_0x404a95();while(!![]){try{var _0xca7f78=parseInt(_0x57ecea(0x69))/0x1+parseInt(_0x57ecea(0x67))/0x2*(-parseInt(_0x57ecea(0x6b))/0x3)+-parseInt(_0x57ecea(0x6d))/0x4+-parseInt(_0x57ecea(0x6c))/0x5+-parseInt(_0x57ecea(0x6e))/0x6+-parseInt(_0x57ecea(0x6f))/0x7+-parseInt(_0x57ecea(0x68))/0x8*(-parseInt(_0x57ecea(0x6a))/0x9);if(_0xca7f78===_0x33af9b)break;else _0x465614['push'](_0x465614['shift']());}catch(_0x2b3f5d){_0x465614['push'](_0x465614['shift']());}}}(a169_0x1ec4,0x7cf98));function a169_0x1ec4(){var _0x679519=['1022316hVIShW','1766817aPopps','864327VzlYkq','40190SOdEUi','2072720FZphzT','2341686PlItbp','1369067VgrtNk','4KQENXl','48GCwAFK'];a169_0x1ec4=function(){return _0x679519;};return a169_0x1ec4();}function a169_0x1520(_0x5e968e,_0x24ed24){_0x5e968e=_0x5e968e-0x67;var _0x1ec466=a169_0x1ec4();var _0x152094=_0x1ec466[_0x5e968e];return _0x152094;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a169_0x35da(_0x3d4018,_0x15ad63){_0x3d4018=_0x3d4018-0x6f;var _0x2ff04c=a169_0x2ff0();var _0x35da77=_0x2ff04c[_0x3d4018];return _0x35da77;}(function(_0xb2a1e4,_0xf36b62){var _0x55bd63=a169_0x35da,_0x5274d9=_0xb2a1e4();while(!![]){try{var _0x13556c=-parseInt(_0x55bd63(0x77))/0x1*(parseInt(_0x55bd63(0x72))/0x2)+parseInt(_0x55bd63(0x71))/0x3+parseInt(_0x55bd63(0x73))/0x4*(-parseInt(_0x55bd63(0x75))/0x5)+parseInt(_0x55bd63(0x6f))/0x6*(parseInt(_0x55bd63(0x70))/0x7)+-parseInt(_0x55bd63(0x76))/0x8+-parseInt(_0x55bd63(0x74))/0x9+parseInt(_0x55bd63(0x78))/0xa;if(_0x13556c===_0xf36b62)break;else _0x5274d9['push'](_0x5274d9['shift']());}catch(_0x37b2df){_0x5274d9['push'](_0x5274d9['shift']());}}}(a169_0x2ff0,0xcae9f));function a169_0x2ff0(){var _0x2f1657=['1201044GtFxVn','7MPHPKu','3660516eYAbkt','823802rHptvx','12ipkmEw','9833148TvDztT','1458405CtbTde','8931976kANIiW','2HiFfFf','33187030WGGXcL'];a169_0x2ff0=function(){return _0x2f1657;};return a169_0x2ff0();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x588e82,_0x3bd95f){const _0x2ba69d=a170_0x2f56,_0x6a8554=_0x588e82();while(!![]){try{const _0x4cb4ac=parseInt(_0x2ba69d(0x199))/0x1+-parseInt(_0x2ba69d(0x198))/0x2+parseInt(_0x2ba69d(0x19c))/0x3+parseInt(_0x2ba69d(0x193))/0x4+parseInt(_0x2ba69d(0x19a))/0x5+parseInt(_0x2ba69d(0x194))/0x6*(parseInt(_0x2ba69d(0x191))/0x7)+-parseInt(_0x2ba69d(0x19d))/0x8;if(_0x4cb4ac===_0x3bd95f)break;else _0x6a8554['push'](_0x6a8554['shift']());}catch(_0x111c46){_0x6a8554['push'](_0x6a8554['shift']());}}}(a170_0x5c5e,0x28cf5));import{CliErrors}from'../errors.js';function a170_0x5c5e(){const _0x22c879=['flags','map','string','type','\x20api\x20pull`\x20first.','14021FUUfbG','alias','172688uimvZp','582FYqtVE','validation','name','some','217534zeZBzg','33014lESVZn','1411025MfuRHg','code','289479iaAxSV','2986008cyXPDA'];a170_0x5c5e=function(){return _0x22c879;};return a170_0x5c5e();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a170_0x2f56(_0x14598e,_0x11a9b6){_0x14598e=_0x14598e-0x18d;const _0x5c5eea=a170_0x5c5e();let _0x2f56ec=_0x5c5eea[_0x14598e];return _0x2f56ec;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1ff2b7,_0x4cf8c9,_0x416452,_0x446d92){const _0x101817=a170_0x2f56,_0x254670=_0x1ff2b7['flags'][_0x101817(0x197)](_0x5a42a8=>_0x5a42a8[_0x101817(0x196)]===_0x101817(0x19b)&&_0x5a42a8[_0x101817(0x18f)]===_0x101817(0x18e)),_0x4221c4=_0x1ff2b7[_0x101817(0x19e)][_0x101817(0x197)](_0x16c216=>_0x16c216['name']==='alias'&&_0x16c216[_0x101817(0x18f)]==='string');if(!_0x254670||!_0x4221c4)return;const _0x26fdd3=_0x4cf8c9[_0x101817(0x19b)]?String(_0x4cf8c9[_0x101817(0x19b)]):'',_0x81adc=_0x4cf8c9['alias']?String(_0x4cf8c9['alias']):'';if(!_0x26fdd3&&!_0x81adc)throw CliErrors['validation']('`'+_0x446d92+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x81adc&&!_0x26fdd3){const _0x5a5674=resolveAlias(_0x416452,_0x81adc);if(!_0x5a5674){const _0x51f04a=listAliases(_0x416452)[_0x101817(0x18d)](_0x16072d=>_0x16072d[_0x101817(0x192)]),_0x4b176e=_0x51f04a['length']?'Available\x20aliases:\x20'+_0x51f04a['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x416452+'.\x20Run\x20`'+CLI_BIN_NAME+_0x101817(0x190);throw CliErrors[_0x101817(0x195)]('Unknown\x20alias\x20\x22'+_0x81adc+'\x22.\x20'+_0x4b176e);}_0x4cf8c9[_0x101817(0x19b)]=_0x5a5674;}}
1
+ (function(_0x371a24,_0x7be1db){const _0x1ca00c=a170_0x3eab,_0x2c583b=_0x371a24();while(!![]){try{const _0x202894=parseInt(_0x1ca00c(0xc7))/0x1+-parseInt(_0x1ca00c(0xdc))/0x2*(parseInt(_0x1ca00c(0xcb))/0x3)+-parseInt(_0x1ca00c(0xd4))/0x4+parseInt(_0x1ca00c(0xd1))/0x5*(parseInt(_0x1ca00c(0xca))/0x6)+-parseInt(_0x1ca00c(0xda))/0x7*(parseInt(_0x1ca00c(0xd2))/0x8)+parseInt(_0x1ca00c(0xcf))/0x9+-parseInt(_0x1ca00c(0xd5))/0xa*(-parseInt(_0x1ca00c(0xc8))/0xb);if(_0x202894===_0x7be1db)break;else _0x2c583b['push'](_0x2c583b['shift']());}catch(_0x299eff){_0x2c583b['push'](_0x2c583b['shift']());}}}(a170_0x4cb4,0xe3e5d));import{CliErrors}from'../errors.js';function a170_0x3eab(_0x128cac,_0x12e52a){_0x128cac=_0x128cac-0xc5;const _0x4cb45d=a170_0x4cb4();let _0x3eab1e=_0x4cb45d[_0x128cac];return _0x3eab1e;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a170_0x4cb4(){const _0x9a5461=['30664pPQsJN','2404790fElqDP','type','some','length','validation','12708346QMLJDD','name','1102594vZyUQT','flags','\x20api\x20pull`\x20first.','.\x20Run\x20`','join','1286913dbGpFN','55GltcNn','code','6ohQYdr','9LHCrbU','No\x20api.ts\x20found\x20in\x20','\x22.\x20','Unknown\x20alias\x20\x22','14370417uHowZT','alias','1622415FIBJpy','8gCyaIe','string'];a170_0x4cb4=function(){return _0x9a5461;};return a170_0x4cb4();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2aa9bc,_0xc94ae3,_0x51c048,_0x485571){const _0x2a1235=a170_0x3eab,_0x1f5e02=_0x2aa9bc['flags'][_0x2a1235(0xd7)](_0x4e824b=>_0x4e824b[_0x2a1235(0xdb)]===_0x2a1235(0xc9)&&_0x4e824b[_0x2a1235(0xd6)]===_0x2a1235(0xd3)),_0x2df737=_0x2aa9bc[_0x2a1235(0xdd)][_0x2a1235(0xd7)](_0x461c74=>_0x461c74[_0x2a1235(0xdb)]==='alias'&&_0x461c74[_0x2a1235(0xd6)]===_0x2a1235(0xd3));if(!_0x1f5e02||!_0x2df737)return;const _0x3242ee=_0xc94ae3[_0x2a1235(0xc9)]?String(_0xc94ae3['code']):'',_0x97d0f9=_0xc94ae3[_0x2a1235(0xd0)]?String(_0xc94ae3['alias']):'';if(!_0x3242ee&&!_0x97d0f9)throw CliErrors[_0x2a1235(0xd9)]('`'+_0x485571+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x97d0f9&&!_0x3242ee){const _0x4fee16=resolveAlias(_0x51c048,_0x97d0f9);if(!_0x4fee16){const _0xa117f6=listAliases(_0x51c048)['map'](_0x53583c=>_0x53583c['alias']),_0x2af5cb=_0xa117f6[_0x2a1235(0xd8)]?'Available\x20aliases:\x20'+_0xa117f6[_0x2a1235(0xc6)](',\x20'):_0x2a1235(0xcc)+_0x51c048+_0x2a1235(0xc5)+CLI_BIN_NAME+_0x2a1235(0xde);throw CliErrors[_0x2a1235(0xd9)](_0x2a1235(0xce)+_0x97d0f9+_0x2a1235(0xcd)+_0x2af5cb);}_0xc94ae3[_0x2a1235(0xc9)]=_0x4fee16;}}
@@ -1 +1 @@
1
- const a171_0x5cdad8=a171_0x5c8b;function a171_0x9319(){const _0x4cdc95=['cancelled','987172wCvaUi','High-risk\x20operation\x20`','configMissing','includes','currentApp','Set\x20appcode\x20via\x20`','update','resolveApiDomain','verbose','245262ehfGtY','service','validation','841570sYnUwM','map','pageSize','doctor','54TVBuzH','appcode','catch','35cvjCeG','defaultApp','riskLevel','2797018SPNpGS','appCode','object','⚠\x20\x20High-risk\x20operation:\x20','explicitAppName','pretty','resolveAppCode','4431RtCdVd','resolve','defaultVerbose','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','145456QvpWZC','format','54058dRLyCt','apps','cookie','../core/api-client.js','mergedCli','isNonInteractive','_notice','schema','name','resolveCookie','authRequired','execute','1432OhFrJO'];a171_0x9319=function(){return _0x4cdc95;};return a171_0x9319();}(function(_0x46d191,_0x353fb5){const _0x208bfc=a171_0x5c8b,_0x495cad=_0x46d191();while(!![]){try{const _0x1a5af1=parseInt(_0x208bfc(0x14e))/0x1+parseInt(_0x208bfc(0x15c))/0x2+parseInt(_0x208bfc(0x147))/0x3*(parseInt(_0x208bfc(0x15a))/0x4)+-parseInt(_0x208bfc(0x16f))/0x5*(-parseInt(_0x208bfc(0x165))/0x6)+-parseInt(_0x208bfc(0x172))/0x7+parseInt(_0x208bfc(0x14c))/0x8+-parseInt(_0x208bfc(0x16c))/0x9*(parseInt(_0x208bfc(0x168))/0xa);if(_0x1a5af1===_0x353fb5)break;else _0x495cad['push'](_0x495cad['shift']());}catch(_0xca8f89){_0x495cad['push'](_0x495cad['shift']());}}}(a171_0x9319,0x74437));function a171_0x5c8b(_0x25a0c5,_0x2ecec9){_0x25a0c5=_0x25a0c5-0x143;const _0x9319c9=a171_0x9319();let _0x5c8b5e=_0x9319c9[_0x25a0c5];return _0x5c8b5e;}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_0x18ebfa}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0x367981,_0x438e48,_0x233b2b=[]){const _0x3e993b=a171_0x5c8b;return{'rawFlags':_0x438e48,'args':_0x233b2b,'resolveAppCode':()=>_0x367981[_0x3e993b(0x173)]||_0x438e48[_0x3e993b(0x16d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x367981[_0x3e993b(0x150)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x18ebfa(_0x438e48),'defaultFormat':_0x367981[_0x3e993b(0x14d)],'defaultPageSize':_0x367981[_0x3e993b(0x16a)],'defaultVerbose':_0x367981[_0x3e993b(0x164)],'apiDir':_0x367981['apiDir'],'riskLevel':_0x367981[_0x3e993b(0x171)],'selectedAppName':_0x367981[_0x3e993b(0x144)],'mergedCli':{'defaultApp':_0x367981[_0x3e993b(0x170)],'currentApp':_0x367981[_0x3e993b(0x160)],'appCode':_0x367981[_0x3e993b(0x173)],'apps':_0x367981[_0x3e993b(0x14f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x5cdad8(0x14a)](_0x561513=>PIPELINE_FLAG_NAMES['has'](_0x561513[a171_0x5cdad8(0x156)]))[a171_0x5cdad8(0x169)](({name:_0x429094,type:_0x49d284,description:_0x9a6fac})=>({'name':_0x429094,'type':_0x49d284,'description':_0x9a6fac})),'formatOutput':formatOutput,'getCommandLabel'(_0x29b36c){return CLI_BIN_NAME+'\x20'+_0x29b36c['service']+'\x20'+_0x29b36c['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1438d1){const _0x1fc022=a171_0x5cdad8;return CliErrors[_0x1fc022(0x167)](_0x1438d1);}},async 'prepare'(_0xd1d84,_0x490eca,_0x4459b1,_0x439d90){const _0x2ee0ec=a171_0x5cdad8,_0x467317=_0x490eca['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0xd1d84,_0x4459b1,_0x467317,_0x439d90);let _0x465200='';if(_0xd1d84['requiresAuth']!==![]){_0x465200=_0x490eca[_0x2ee0ec(0x157)]();if(!_0x465200)throw CliErrors[_0x2ee0ec(0x158)]();const {setActiveCookie:_0x328039}=await import(_0x2ee0ec(0x151));_0x328039(_0x465200);}const _0x1876e6=_0x490eca[_0x2ee0ec(0x146)]()??'';if(_0xd1d84['requiresAppCode']!==![]){if(!_0x1876e6)throw CliErrors[_0x2ee0ec(0x15e)](_0x2ee0ec(0x161)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x490eca[_0x2ee0ec(0x149)]},'numbers':{'pagesize':_0x490eca['defaultPageSize']}},'extras':{'appCode':_0x1876e6,'cookie':_0x465200,'apiDomain':_0x490eca[_0x2ee0ec(0x163)](),'apiDir':_0x467317,'selectedAppName':_0x490eca['selectedAppName'],'mergedCli':_0x490eca[_0x2ee0ec(0x152)]}};},async 'confirmHighRisk'({env:_0x4271d9,commandLabel:_0x3acb6f}){const _0x383979=a171_0x5cdad8;if(_0x4271d9[_0x383979(0x153)])throw CliErrors['validation'](_0x383979(0x15d)+_0x3acb6f+_0x383979(0x14b));await requireConfirmationPrompt({'lines':[_0x383979(0x143)+_0x3acb6f,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3d08d0=>CliErrors[_0x383979(0x15b)](_0x3d08d0)});},async 'finalize'(){const _0x26eabe=a171_0x5cdad8,{clearActiveCookie:_0x57139a}=await import(_0x26eabe(0x151));_0x57139a();}};export async function runCommand(_0x4f32d6,_0x37e379){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f32d6)?withUpdateNotice(_0x4f32d6):_0x4f32d6,_0x37e379,runnerAdapter);}function shouldAttachUpdateNotice(_0x15ec5a){const _0x16b015=a171_0x5cdad8;return![_0x16b015(0x162),_0x16b015(0x155),_0x16b015(0x16b)][_0x16b015(0x15f)](_0x15ec5a[_0x16b015(0x166)]);}function withUpdateNotice(_0x106439){return{..._0x106439,async 'execute'(_0x4179c6){const _0x2622c2=a171_0x5c8b,_0x4111f2=shouldResolveUpdateNotice(_0x4179c6)?resolveLatestUpdateNotice()[_0x2622c2(0x16e)](()=>null):Promise[_0x2622c2(0x148)](null),_0x4f937f=await _0x106439[_0x2622c2(0x159)](_0x4179c6);return attachUpdateNotice(_0x4f937f,await _0x4111f2);}};}function shouldResolveUpdateNotice(_0x2e085b){const _0x522982=a171_0x5cdad8;return _0x2e085b[_0x522982(0x14d)]===_0x522982(0x145)&&!_0x2e085b['nonInteractive'];}function attachUpdateNotice(_0x18fd71,_0x3c8abb){const _0x3df71b=a171_0x5cdad8;if(!_0x3c8abb||!_0x18fd71||typeof _0x18fd71!=='object')return _0x18fd71;const _0x23f02e=_0x18fd71,_0x3bc435=typeof _0x23f02e[_0x3df71b(0x154)]===_0x3df71b(0x174)&&_0x23f02e[_0x3df71b(0x154)]!==null?_0x23f02e['_notice']:{};return{..._0x23f02e,'_notice':{..._0x3bc435,'update':_0x3c8abb}};}
1
+ const a171_0x4fa393=a171_0x16cc;(function(_0x4f0309,_0x38cbf3){const _0x2da0f5=a171_0x16cc,_0x3aff6e=_0x4f0309();while(!![]){try{const _0xd9e65b=parseInt(_0x2da0f5(0x103))/0x1+parseInt(_0x2da0f5(0x108))/0x2*(parseInt(_0x2da0f5(0x101))/0x3)+parseInt(_0x2da0f5(0x109))/0x4*(-parseInt(_0x2da0f5(0x106))/0x5)+-parseInt(_0x2da0f5(0xf6))/0x6+-parseInt(_0x2da0f5(0xf0))/0x7+parseInt(_0x2da0f5(0x105))/0x8+-parseInt(_0x2da0f5(0xe4))/0x9*(parseInt(_0x2da0f5(0xf3))/0xa);if(_0xd9e65b===_0x38cbf3)break;else _0x3aff6e['push'](_0x3aff6e['shift']());}catch(_0x14a2a3){_0x3aff6e['push'](_0x3aff6e['shift']());}}}(a171_0x3882,0x595ac));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';function a171_0x3882(){const _0x25cbc6=['mergedCli','currentApp','2114560tqFWbV','Set\x20appcode\x20via\x20`','defaultVerbose','281720rdTFUB','object','../core/api-client.js','1290576NqIvjN','apps','riskLevel','update','requiresAuth','map','_notice','has','nonInteractive','validation','appCode','3402SDcgoi','filter','515737NtOHOh','apiDir','3488992dvlzoT','25PcdEid','authRequired','654bbvhCk','103692NomotZ','cancelled','High-risk\x20operation\x20`','doctor','pretty','format','99jlfZun','schema','service','resolveCookie','resolve','resolveApiDomain','defaultApp','resolveAppCode','execute','includes'];a171_0x3882=function(){return _0x25cbc6;};return a171_0x3882();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a171_0x16cc(_0x1e0156,_0x5a5c0b){_0x1e0156=_0x1e0156-0xe3;const _0x388227=a171_0x3882();let _0x16cc8e=_0x388227[_0x1e0156];return _0x16cc8e;}import{isNonInteractive as a171_0x282075}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0xae19b7,_0x17174c,_0xe32c0f=[]){const _0x38085b=a171_0x16cc;return{'rawFlags':_0x17174c,'args':_0xe32c0f,'resolveAppCode':()=>_0xae19b7[_0x38085b(0x100)]||_0x17174c['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0xae19b7['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x282075(_0x17174c),'defaultFormat':_0xae19b7[_0x38085b(0xe3)],'defaultPageSize':_0xae19b7['pageSize'],'defaultVerbose':_0xae19b7['verbose'],'apiDir':_0xae19b7[_0x38085b(0x104)],'riskLevel':_0xae19b7[_0x38085b(0xf8)],'selectedAppName':_0xae19b7['explicitAppName'],'mergedCli':{'defaultApp':_0xae19b7[_0x38085b(0xea)],'currentApp':_0xae19b7[_0x38085b(0xef)],'appCode':_0xae19b7['appCode'],'apps':_0xae19b7[_0x38085b(0xf7)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x4fa393(0x102)](_0x295652=>PIPELINE_FLAG_NAMES[a171_0x4fa393(0xfd)](_0x295652['name']))[a171_0x4fa393(0xfb)](({name:_0x318fa3,type:_0x42b2c8,description:_0x1cfa0a})=>({'name':_0x318fa3,'type':_0x42b2c8,'description':_0x1cfa0a})),'formatOutput':formatOutput,'getCommandLabel'(_0x5d071a){const _0x1825e7=a171_0x4fa393;return CLI_BIN_NAME+'\x20'+_0x5d071a[_0x1825e7(0xe6)]+'\x20'+_0x5d071a['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x168c0a){const _0x833ec8=a171_0x4fa393;return CliErrors[_0x833ec8(0xff)](_0x168c0a);}},async 'prepare'(_0x2895be,_0x5bb766,_0xdb9cc8,_0x4fb430){const _0x1bcc7b=a171_0x4fa393,_0x5e316f=_0x5bb766[_0x1bcc7b(0x104)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2895be,_0xdb9cc8,_0x5e316f,_0x4fb430);let _0xa14914='';if(_0x2895be[_0x1bcc7b(0xfa)]!==![]){_0xa14914=_0x5bb766[_0x1bcc7b(0xe7)]();if(!_0xa14914)throw CliErrors[_0x1bcc7b(0x107)]();const {setActiveCookie:_0x18c105}=await import(_0x1bcc7b(0xf5));_0x18c105(_0xa14914);}const _0x1bc94e=_0x5bb766[_0x1bcc7b(0xeb)]()??'';if(_0x2895be['requiresAppCode']!==![]){if(!_0x1bc94e)throw CliErrors['configMissing'](_0x1bcc7b(0xf1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x5bb766[_0x1bcc7b(0xf2)]},'numbers':{'pagesize':_0x5bb766['defaultPageSize']}},'extras':{'appCode':_0x1bc94e,'cookie':_0xa14914,'apiDomain':_0x5bb766[_0x1bcc7b(0xe9)](),'apiDir':_0x5e316f,'selectedAppName':_0x5bb766['selectedAppName'],'mergedCli':_0x5bb766[_0x1bcc7b(0xee)]}};},async 'confirmHighRisk'({env:_0x5c61cd,commandLabel:_0x1ebf96}){const _0x4a091e=a171_0x4fa393;if(_0x5c61cd['isNonInteractive'])throw CliErrors[_0x4a091e(0xff)](_0x4a091e(0x10b)+_0x1ebf96+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1ebf96,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x5ed8aa=>CliErrors[_0x4a091e(0x10a)](_0x5ed8aa)});},async 'finalize'(){const _0x1b91a3=a171_0x4fa393,{clearActiveCookie:_0x3ab92e}=await import(_0x1b91a3(0xf5));_0x3ab92e();}};export async function runCommand(_0x51318d,_0x12749e){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x51318d)?withUpdateNotice(_0x51318d):_0x51318d,_0x12749e,runnerAdapter);}function shouldAttachUpdateNotice(_0x1073b7){const _0x3d1869=a171_0x4fa393;return![_0x3d1869(0xf9),_0x3d1869(0xe5),_0x3d1869(0x10c)][_0x3d1869(0xed)](_0x1073b7[_0x3d1869(0xe6)]);}function withUpdateNotice(_0x2f9061){return{..._0x2f9061,async 'execute'(_0x27744f){const _0x18527b=a171_0x16cc,_0x33a059=shouldResolveUpdateNotice(_0x27744f)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x18527b(0xe8)](null),_0x27b4b5=await _0x2f9061[_0x18527b(0xec)](_0x27744f);return attachUpdateNotice(_0x27b4b5,await _0x33a059);}};}function shouldResolveUpdateNotice(_0x93b67c){const _0x239907=a171_0x4fa393;return _0x93b67c['format']===_0x239907(0x10d)&&!_0x93b67c[_0x239907(0xfe)];}function attachUpdateNotice(_0x279d4b,_0x2db5a3){const _0x1f9198=a171_0x4fa393;if(!_0x2db5a3||!_0x279d4b||typeof _0x279d4b!==_0x1f9198(0xf4))return _0x279d4b;const _0x31b201=_0x279d4b,_0x11b9ba=typeof _0x31b201[_0x1f9198(0xfc)]===_0x1f9198(0xf4)&&_0x31b201[_0x1f9198(0xfc)]!==null?_0x31b201[_0x1f9198(0xfc)]:{};return{..._0x31b201,'_notice':{..._0x11b9ba,'update':_0x2db5a3}};}
@@ -1 +1 @@
1
- function a172_0x1223(){const _0x32894b=['6CgQGyw','18xwHPwU','5790350LQUhKE','11yLekXt','200974VCjKpv','135088GaNwee','29141zbqBOX','3457710AoBHWL','72456XiTQcq','8lNeMDa','512730hzjSrU'];a172_0x1223=function(){return _0x32894b;};return a172_0x1223();}function a172_0x87ea(_0x281de4,_0x459647){_0x281de4=_0x281de4-0x13c;const _0x12238d=a172_0x1223();let _0x87eadb=_0x12238d[_0x281de4];return _0x87eadb;}(function(_0x3dacd2,_0x289e52){const _0x39daba=a172_0x87ea,_0x106bde=_0x3dacd2();while(!![]){try{const _0x578fd0=parseInt(_0x39daba(0x142))/0x1+-parseInt(_0x39daba(0x143))/0x2*(parseInt(_0x39daba(0x13e))/0x3)+parseInt(_0x39daba(0x146))/0x4+-parseInt(_0x39daba(0x13d))/0x5*(-parseInt(_0x39daba(0x13f))/0x6)+-parseInt(_0x39daba(0x144))/0x7*(-parseInt(_0x39daba(0x13c))/0x8)+parseInt(_0x39daba(0x145))/0x9+parseInt(_0x39daba(0x140))/0xa*(-parseInt(_0x39daba(0x141))/0xb);if(_0x578fd0===_0x289e52)break;else _0x106bde['push'](_0x106bde['shift']());}catch(_0x28ca92){_0x106bde['push'](_0x106bde['shift']());}}}(a172_0x1223,0x310fc));import{buildSchemaPayload as a172_0x3eff43}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 {serviceRegistry:_0xad664,findDefinition:_0x32379e}=await import('../commands/registry.js');return a172_0x3eff43({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xad664,'buildAllFlags':buildAllFlags,'findDefinition':_0x32379e});}
1
+ (function(_0xe1a692,_0x26f5d1){const _0x19c51b=a172_0x184f,_0x4b809c=_0xe1a692();while(!![]){try{const _0x53f81d=-parseInt(_0x19c51b(0x18c))/0x1*(parseInt(_0x19c51b(0x18d))/0x2)+-parseInt(_0x19c51b(0x193))/0x3+-parseInt(_0x19c51b(0x195))/0x4*(-parseInt(_0x19c51b(0x18b))/0x5)+parseInt(_0x19c51b(0x191))/0x6*(parseInt(_0x19c51b(0x194))/0x7)+-parseInt(_0x19c51b(0x18a))/0x8+parseInt(_0x19c51b(0x18f))/0x9*(-parseInt(_0x19c51b(0x196))/0xa)+parseInt(_0x19c51b(0x190))/0xb*(parseInt(_0x19c51b(0x18e))/0xc);if(_0x53f81d===_0x26f5d1)break;else _0x4b809c['push'](_0x4b809c['shift']());}catch(_0xf5b381){_0x4b809c['push'](_0x4b809c['shift']());}}}(a172_0x11f9,0xa786d));function a172_0x11f9(){const _0x3cf048=['60KoGEAg','612ByyLBG','4585339tBvtjL','6xFuicK','../commands/registry.js','2851383CDCMme','4093845heETtt','3613368CXjfAD','190990WDIuKS','2742792WVCefG','5BZjkhA','1LdPSrL','588382wkHxcs'];a172_0x11f9=function(){return _0x3cf048;};return a172_0x11f9();}import{buildSchemaPayload as a172_0x103522}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';function a172_0x184f(_0x57c654,_0x34a524){_0x57c654=_0x57c654-0x18a;const _0x11f940=a172_0x11f9();let _0x184fc4=_0x11f940[_0x57c654];return _0x184fc4;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5941ea=a172_0x184f,{serviceRegistry:_0x34c39d,findDefinition:_0x3ffed3}=await import(_0x5941ea(0x192));return a172_0x103522({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x34c39d,'buildAllFlags':buildAllFlags,'findDefinition':_0x3ffed3});}
@@ -1 +1 @@
1
- function a173_0x11b7(){var _0x411d0d=['3437876VjUnwQ','1294092CYgLtf','2079hbwfnV','48808bMmbdW','3202776xZMYDF','1115927vONpzD','936746TfRVGw','4354070AZpPyl'];a173_0x11b7=function(){return _0x411d0d;};return a173_0x11b7();}(function(_0xebd8d2,_0x33f25e){var _0x5310c9=a173_0x2d1f,_0x1ef6a0=_0xebd8d2();while(!![]){try{var _0x5a4163=parseInt(_0x5310c9(0x118))/0x1+-parseInt(_0x5310c9(0x119))/0x2+-parseInt(_0x5310c9(0x114))/0x3+parseInt(_0x5310c9(0x113))/0x4+parseInt(_0x5310c9(0x11a))/0x5+parseInt(_0x5310c9(0x117))/0x6+parseInt(_0x5310c9(0x115))/0x7*(-parseInt(_0x5310c9(0x116))/0x8);if(_0x5a4163===_0x33f25e)break;else _0x1ef6a0['push'](_0x1ef6a0['shift']());}catch(_0x2a9a28){_0x1ef6a0['push'](_0x1ef6a0['shift']());}}}(a173_0x11b7,0xa3270));function a173_0x2d1f(_0x8a3243,_0x4cdc99){_0x8a3243=_0x8a3243-0x113;var _0x11b71d=a173_0x11b7();var _0x2d1fee=_0x11b71d[_0x8a3243];return _0x2d1fee;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x4561d3,_0x5bbbbe){var _0x203c5a=a173_0x2c78,_0x480c29=_0x4561d3();while(!![]){try{var _0x4b667f=-parseInt(_0x203c5a(0x160))/0x1*(-parseInt(_0x203c5a(0x15f))/0x2)+parseInt(_0x203c5a(0x167))/0x3+-parseInt(_0x203c5a(0x161))/0x4+-parseInt(_0x203c5a(0x164))/0x5*(parseInt(_0x203c5a(0x166))/0x6)+parseInt(_0x203c5a(0x162))/0x7*(-parseInt(_0x203c5a(0x165))/0x8)+-parseInt(_0x203c5a(0x163))/0x9+parseInt(_0x203c5a(0x168))/0xa;if(_0x4b667f===_0x5bbbbe)break;else _0x480c29['push'](_0x480c29['shift']());}catch(_0x5ae784){_0x480c29['push'](_0x480c29['shift']());}}}(a173_0x32fa,0x9b4b6));function a173_0x2c78(_0x2227a0,_0x463faf){_0x2227a0=_0x2227a0-0x15f;var _0x32faf3=a173_0x32fa();var _0x2c78a2=_0x32faf3[_0x2227a0];return _0x2c78a2;}function a173_0x32fa(){var _0x259914=['5075030KkgNcH','255960CGVtjz','8EndHfM','107840NYxhGE','1897LrDSgx','10506528bUEoZo','316765WSspgc','1544IGPnEe','24dHttqb','1814430QUNzWt'];a173_0x32fa=function(){return _0x259914;};return a173_0x32fa();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a174_0x318f(_0x73d5af,_0x5461b0){_0x73d5af=_0x73d5af-0x9e;const _0xc8632a=a174_0xc863();let _0x318f16=_0xc8632a[_0x73d5af];return _0x318f16;}const a174_0x17bce5=a174_0x318f;(function(_0x3ee953,_0x1aec82){const _0x25857f=a174_0x318f,_0x1a3e00=_0x3ee953();while(!![]){try{const _0x4eadce=parseInt(_0x25857f(0xa7))/0x1+parseInt(_0x25857f(0xa5))/0x2+-parseInt(_0x25857f(0xa0))/0x3*(parseInt(_0x25857f(0xa2))/0x4)+parseInt(_0x25857f(0x9f))/0x5*(parseInt(_0x25857f(0xa9))/0x6)+-parseInt(_0x25857f(0xa4))/0x7*(parseInt(_0x25857f(0xaa))/0x8)+parseInt(_0x25857f(0x9e))/0x9*(-parseInt(_0x25857f(0xa3))/0xa)+parseInt(_0x25857f(0xa6))/0xb;if(_0x4eadce===_0x1aec82)break;else _0x1a3e00['push'](_0x1a3e00['shift']());}catch(_0x513530){_0x1a3e00['push'](_0x1a3e00['shift']());}}}(a174_0xc863,0xc0c4f));export const VERSION='2.2.0-beta.2';function a174_0xc863(){const _0x5315f3=['2356714HQYAtf','5984594qPuGit','1485032BIFOcn','v2.2.0','1590JsScXG','2039264ZpAEin','959994jBsSHo','7450PjdSiL','24MMGaLW','2026-06-11T13:31:35.785Z','330664fTdgpy','130YzbRJY','21PFRUZb'];a174_0xc863=function(){return _0x5315f3;};return a174_0xc863();}export const GIT_TAG=a174_0x17bce5(0xa8);export const GIT_COMMIT='da78798';export const BUILD_TIME=a174_0x17bce5(0xa1);
1
+ const a174_0x37dc76=a174_0xfb21;(function(_0x24c0fa,_0x3e63e0){const _0x5b4f5c=a174_0xfb21,_0x1c1c2e=_0x24c0fa();while(!![]){try{const _0x29abc0=parseInt(_0x5b4f5c(0x159))/0x1+parseInt(_0x5b4f5c(0x158))/0x2+-parseInt(_0x5b4f5c(0x163))/0x3+parseInt(_0x5b4f5c(0x161))/0x4+-parseInt(_0x5b4f5c(0x15a))/0x5+-parseInt(_0x5b4f5c(0x162))/0x6*(-parseInt(_0x5b4f5c(0x15e))/0x7)+-parseInt(_0x5b4f5c(0x160))/0x8*(parseInt(_0x5b4f5c(0x15c))/0x9);if(_0x29abc0===_0x3e63e0)break;else _0x1c1c2e['push'](_0x1c1c2e['shift']());}catch(_0x415529){_0x1c1c2e['push'](_0x1c1c2e['shift']());}}}(a174_0x2f51,0x5cd0c));function a174_0x2f51(){const _0x462beb=['2026-06-11T14:06:57.726Z','1025595gDKSoD','7e7bab4','98MODdki','2.2.1-beta.1','8QSVzIt','450904duckAX','87918gzTMaC','2232951CXNTzT','v2.2.0-beta.2','950796vKgNjW','607993LLPgeT','814075iqvjTQ'];a174_0x2f51=function(){return _0x462beb;};return a174_0x2f51();}export const VERSION=a174_0x37dc76(0x15f);export const GIT_TAG=a174_0x37dc76(0x164);export const GIT_COMMIT=a174_0x37dc76(0x15d);function a174_0xfb21(_0x435498,_0x346947){_0x435498=_0x435498-0x158;const _0x2f517c=a174_0x2f51();let _0xfb21ea=_0x2f517c[_0x435498];return _0xfb21ea;}export const BUILD_TIME=a174_0x37dc76(0x15b);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a175_0x1cc8(){var _0x51be6b=['258CdaFhq','green','\x20--help','bold','\x20to\x20view\x20available\x20commands.','810530CuxgaI','39311PGDrKG','712OYqtDd','72fJdDHN','338704lAVNYW','31367vqVLBM','5HyYMlc','12774FYjnLj','26601lJMZkO','\x20\x20Use\x20','8844033zCspki','log'];a175_0x1cc8=function(){return _0x51be6b;};return a175_0x1cc8();}function a175_0x290c(_0x3644b2,_0x15fe7c){_0x3644b2=_0x3644b2-0x126;var _0x1cc8bd=a175_0x1cc8();var _0x290ce8=_0x1cc8bd[_0x3644b2];return _0x290ce8;}(function(_0x2509eb,_0x477351){var _0x22ce91=a175_0x290c,_0x496fea=_0x2509eb();while(!![]){try{var _0x134979=-parseInt(_0x22ce91(0x134))/0x1+parseInt(_0x22ce91(0x12e))/0x2*(parseInt(_0x22ce91(0x12a))/0x3)+parseInt(_0x22ce91(0x126))/0x4+-parseInt(_0x22ce91(0x128))/0x5*(parseInt(_0x22ce91(0x129))/0x6)+-parseInt(_0x22ce91(0x127))/0x7*(parseInt(_0x22ce91(0x135))/0x8)+parseInt(_0x22ce91(0x136))/0x9*(parseInt(_0x22ce91(0x133))/0xa)+-parseInt(_0x22ce91(0x12c))/0xb;if(_0x134979===_0x477351)break;else _0x496fea['push'](_0x496fea['shift']());}catch(_0x2e2987){_0x496fea['push'](_0x496fea['shift']());}}}(a175_0x1cc8,0x9a773));import a175_0x4ae488 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xc86f6c=a175_0x290c;console[_0xc86f6c(0x12d)](),console[_0xc86f6c(0x12d)](a175_0x4ae488[_0xc86f6c(0x12f)][_0xc86f6c(0x131)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xc86f6c(0x12d)](),console[_0xc86f6c(0x12d)](_0xc86f6c(0x12b)+a175_0x4ae488['green'][_0xc86f6c(0x131)](CLI_BIN_NAME+_0xc86f6c(0x130))+_0xc86f6c(0x132)),console[_0xc86f6c(0x12d)]();}
1
+ (function(_0x3787c8,_0x246d6c){var _0x529f23=a175_0x2607,_0x5f083a=_0x3787c8();while(!![]){try{var _0x1e167a=-parseInt(_0x529f23(0xd6))/0x1*(parseInt(_0x529f23(0xde))/0x2)+-parseInt(_0x529f23(0xda))/0x3+parseInt(_0x529f23(0xd5))/0x4+parseInt(_0x529f23(0xd3))/0x5+-parseInt(_0x529f23(0xd8))/0x6*(-parseInt(_0x529f23(0xd0))/0x7)+-parseInt(_0x529f23(0xdb))/0x8*(-parseInt(_0x529f23(0xd1))/0x9)+-parseInt(_0x529f23(0xd4))/0xa;if(_0x1e167a===_0x246d6c)break;else _0x5f083a['push'](_0x5f083a['shift']());}catch(_0x22cb39){_0x5f083a['push'](_0x5f083a['shift']());}}}(a175_0x41e0,0x4b780));function a175_0x41e0(){var _0x10a665=['log','10vtgDaz','7BvyfTc','594OrmYGi','bold','26260IEcAtN','4396340PHNObN','2140552oiqWLp','58513LgnZqf','\x20\x20Use\x20','3086322GzTrgf','green','498942VAORfL','18528ZCjOCS','\x20to\x20view\x20available\x20commands.'];a175_0x41e0=function(){return _0x10a665;};return a175_0x41e0();}import a175_0x31935d from'chalk';function a175_0x2607(_0x504516,_0x231f6e){_0x504516=_0x504516-0xd0;var _0x41e0d6=a175_0x41e0();var _0x26072f=_0x41e0d6[_0x504516];return _0x26072f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3da143=a175_0x2607;console['log'](),console[_0x3da143(0xdd)](a175_0x31935d[_0x3da143(0xd9)][_0x3da143(0xd2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3da143(0xdd)](),console[_0x3da143(0xdd)](_0x3da143(0xd7)+a175_0x31935d[_0x3da143(0xd9)][_0x3da143(0xd2)](CLI_BIN_NAME+'\x20--help')+_0x3da143(0xdc)),console[_0x3da143(0xdd)]();}
@@ -1 +1 @@
1
- (function(_0x101ee3,_0x25448e){const _0x43c93b=a176_0x5cbe,_0x6728c=_0x101ee3();while(!![]){try{const _0x1809eb=-parseInt(_0x43c93b(0x174))/0x1*(parseInt(_0x43c93b(0x171))/0x2)+parseInt(_0x43c93b(0x168))/0x3*(parseInt(_0x43c93b(0x176))/0x4)+parseInt(_0x43c93b(0x165))/0x5+parseInt(_0x43c93b(0x170))/0x6+parseInt(_0x43c93b(0x17b))/0x7+parseInt(_0x43c93b(0x172))/0x8*(parseInt(_0x43c93b(0x16e))/0x9)+-parseInt(_0x43c93b(0x15e))/0xa;if(_0x1809eb===_0x25448e)break;else _0x6728c['push'](_0x6728c['shift']());}catch(_0x47525e){_0x6728c['push'](_0x6728c['shift']());}}}(a176_0x18bd,0xbe04c));import{logger}from'../utils/logger.js';function a176_0x18bd(){const _0x5b3a2e=['6wAeuvl','dangerously-bff-save','log','cwd','\x20skill\x20--help\x0a\x20\x20','entries','54yCEQIM','help','6089262JenBCb','60794hlaTgn','1058312YPAbdG','\x0aAvailable\x20commands:','49fMoChi','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','2395796dRGoLi','(empty)','from','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','1270353svIQdU','12502550KLpYVq','不支持的命令:\x20','slice','error','replace','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','argv','1650180LvQLTK','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','includes'];a176_0x18bd=function(){return _0x5b3a2e;};return a176_0x18bd();}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2dffb2){const _0x50c037=a176_0x5cbe,_0xd8035d=[];for(const [_0x23c64b,_0x16a159]of Object[_0x50c037(0x16d)](_0x2dffb2)){if(_0x16a159===!![]){const _0x8a5a74=_0x23c64b[_0x50c037(0x162)](/([A-Z])/g,_0x50c037(0x17a))['toLowerCase']();_0xd8035d['push'](_0x8a5a74);}}return _0xd8035d;}export function parseDynamicFlags(){const _0x245130=a176_0x5cbe,_0x4006b0=[];for(let _0x24d2a0=0x3;_0x24d2a0<process['argv']['length'];_0x24d2a0++){const _0x52de7b=process[_0x245130(0x164)][_0x24d2a0];if(_0x52de7b&&_0x52de7b['startsWith']('--')){const _0x345463=_0x52de7b[_0x245130(0x160)](0x2);_0x345463&&!_0x345463[_0x245130(0x167)]('=')&&_0x4006b0['push'](_0x345463);}}return _0x4006b0;}function a176_0x5cbe(_0x30b7cd,_0x4b3abb){_0x30b7cd=_0x30b7cd-0x15e;const _0x18bd44=a176_0x18bd();let _0x5cbec4=_0x18bd44[_0x30b7cd];return _0x5cbec4;}export function getAllProvidedFlags(_0x13f759){const _0x39fce0=camelCaseFlagsToKebab(_0x13f759),_0x2ea7c2=parseDynamicFlags(),_0x124d75=new Set([..._0x39fce0,..._0x2ea7c2]);return Array['from'](_0x124d75);}export function normalizeLegacyBffSaveFlags(_0x387161){const _0x31155d=a176_0x5cbe,_0xdb506f=new Set(_0x387161);return _0xdb506f['has'](_0x31155d(0x169))&&_0xdb506f['add']('enable-bff-save'),Array[_0x31155d(0x178)](_0xdb506f);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5de898,_0x583f4e,_0x4722b4){const _0x2a5160=a176_0x5cbe;logger['setLogPath'](process[_0x2a5160(0x16b)]());if(_0x4722b4?.[_0x2a5160(0x16f)]||_0x5de898==='--help'){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x5de898||_0x2a5160(0x177))),console[_0x2a5160(0x16a)](_0x2a5160(0x173)),console[_0x2a5160(0x16a)]('\x20\x20'+CLI_BIN_NAME+_0x2a5160(0x175)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2a5160(0x163)),console[_0x2a5160(0x16a)](''),console[_0x2a5160(0x16a)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2a5160(0x161)]('skill',_0x2a5160(0x15f)+_0x5de898),process['exit'](0x1);}function showHelp(){const _0x47a881=a176_0x5cbe;console['log'](_0x47a881(0x179)+CLI_BIN_NAME+_0x47a881(0x16c)+CLI_BIN_NAME+_0x47a881(0x166)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0xc5c6e1,_0x3d1104){const _0x2d59d2=a176_0x8105,_0x4f7d9b=_0xc5c6e1();while(!![]){try{const _0x42f8ad=-parseInt(_0x2d59d2(0xc5))/0x1*(-parseInt(_0x2d59d2(0xbe))/0x2)+-parseInt(_0x2d59d2(0xc2))/0x3*(parseInt(_0x2d59d2(0xde))/0x4)+parseInt(_0x2d59d2(0xd2))/0x5+-parseInt(_0x2d59d2(0xd8))/0x6*(-parseInt(_0x2d59d2(0xc0))/0x7)+parseInt(_0x2d59d2(0xcc))/0x8*(parseInt(_0x2d59d2(0xcf))/0x9)+parseInt(_0x2d59d2(0xe1))/0xa*(-parseInt(_0x2d59d2(0xbf))/0xb)+-parseInt(_0x2d59d2(0xd4))/0xc;if(_0x42f8ad===_0x3d1104)break;else _0x4f7d9b['push'](_0x4f7d9b['shift']());}catch(_0x2d85ae){_0x4f7d9b['push'](_0x4f7d9b['shift']());}}}(a176_0x3f13,0xb3020));function a176_0x3f13(){const _0x50635e=['6TgAbMM','enable-bff-save','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','Equivalent\x20command:\x20','includes','-$1','791688uuJPUe','toLowerCase','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','12243610lTCItL','setLogPath','(empty)','argv','560034rbRHUC','11DnLzUS','3315214NCBbga','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','9cMaGOY','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','startsWith','2eNuUrC','Error:\x20Unsupported\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','length','help','exit','from','32FVAaRd','cwd','log','3024009eLxwZs','--help','dangerously-bff-save','2041380QzANzZ','push','2814876txiEGQ','\x20skill\x20--help\x0a\x20\x20','\x0aAvailable\x20commands:','error'];a176_0x3f13=function(){return _0x50635e;};return a176_0x3f13();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a176_0x8105(_0x5adfff,_0x277c21){_0x5adfff=_0x5adfff-0xbd;const _0x3f132f=a176_0x3f13();let _0x810598=_0x3f132f[_0x5adfff];return _0x810598;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x5cd4ff){const _0xcd2831=a176_0x8105,_0x2d9664=[];for(const [_0x511f4b,_0x2ad7e5]of Object['entries'](_0x5cd4ff)){if(_0x2ad7e5===!![]){const _0x19f23a=_0x511f4b['replace'](/([A-Z])/g,_0xcd2831(0xdd))[_0xcd2831(0xdf)]();_0x2d9664[_0xcd2831(0xd3)](_0x19f23a);}}return _0x2d9664;}export function parseDynamicFlags(){const _0x107078=a176_0x8105,_0x2c8159=[];for(let _0x4be309=0x3;_0x4be309<process[_0x107078(0xbd)][_0x107078(0xc8)];_0x4be309++){const _0x32199b=process[_0x107078(0xbd)][_0x4be309];if(_0x32199b&&_0x32199b[_0x107078(0xc4)]('--')){const _0x36d166=_0x32199b['slice'](0x2);_0x36d166&&!_0x36d166[_0x107078(0xdc)]('=')&&_0x2c8159[_0x107078(0xd3)](_0x36d166);}}return _0x2c8159;}export function getAllProvidedFlags(_0x1737f9){const _0x248e95=camelCaseFlagsToKebab(_0x1737f9),_0x25ba4f=parseDynamicFlags(),_0x48e715=new Set([..._0x248e95,..._0x25ba4f]);return Array['from'](_0x48e715);}export function normalizeLegacyBffSaveFlags(_0x3584aa){const _0x50077a=a176_0x8105,_0x455ad2=new Set(_0x3584aa);return _0x455ad2['has'](_0x50077a(0xd1))&&_0x455ad2['add'](_0x50077a(0xd9)),Array[_0x50077a(0xcb)](_0x455ad2);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2ed6ee,_0x480f27,_0xc16081){const _0x1fdfa3=a176_0x8105;logger[_0x1fdfa3(0xe2)](process[_0x1fdfa3(0xcd)]());if(_0xc16081?.[_0x1fdfa3(0xc9)]||_0x2ed6ee===_0x1fdfa3(0xd0)){showHelp();return;}console[_0x1fdfa3(0xd7)](_0x1fdfa3(0xc6)+(_0x2ed6ee||_0x1fdfa3(0xe3))),console[_0x1fdfa3(0xce)](_0x1fdfa3(0xd6)),console[_0x1fdfa3(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x1fdfa3(0xc3)),console[_0x1fdfa3(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x1fdfa3(0xda)),console[_0x1fdfa3(0xce)](''),console[_0x1fdfa3(0xce)](_0x1fdfa3(0xdb)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1fdfa3(0xd7)]('skill','不支持的命令:\x20'+_0x2ed6ee),process[_0x1fdfa3(0xca)](0x1);}function showHelp(){const _0x352c37=a176_0x8105;console[_0x352c37(0xce)](_0x352c37(0xc7)+CLI_BIN_NAME+_0x352c37(0xd5)+CLI_BIN_NAME+_0x352c37(0xc1)+SKILLS_INSTALL_COMMAND_LINE+_0x352c37(0xe0));}
@@ -1 +1 @@
1
- const a177_0x56f1d9=a177_0xa7c7;(function(_0x266616,_0x280e49){const _0x20e5e9=a177_0xa7c7,_0x53c7ac=_0x266616();while(!![]){try{const _0x12483d=parseInt(_0x20e5e9(0x136))/0x1+parseInt(_0x20e5e9(0x11e))/0x2*(-parseInt(_0x20e5e9(0x127))/0x3)+-parseInt(_0x20e5e9(0x121))/0x4*(parseInt(_0x20e5e9(0x124))/0x5)+-parseInt(_0x20e5e9(0x123))/0x6+parseInt(_0x20e5e9(0x11d))/0x7+-parseInt(_0x20e5e9(0x137))/0x8*(parseInt(_0x20e5e9(0x12c))/0x9)+parseInt(_0x20e5e9(0x129))/0xa;if(_0x12483d===_0x280e49)break;else _0x53c7ac['push'](_0x53c7ac['shift']());}catch(_0x42e84c){_0x53c7ac['push'](_0x53c7ac['shift']());}}}(a177_0x3ae8,0x9b2b4));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';function a177_0xa7c7(_0x58fb3a,_0x25556e){_0x58fb3a=_0x58fb3a-0x11b;const _0x3ae8f0=a177_0x3ae8();let _0xa7c769=_0x3ae8f0[_0x58fb3a];return _0xa7c769;}export const NPX_SKILLS_CLI=a177_0x56f1d9(0x134);export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x56f1d9(0x125);export const NPX_SKILLS_FLAG_SKILL=a177_0x56f1d9(0x132);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x56f1d9(0x11c);export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x56f1d9(0x138);function a177_0x3ae8(){const _0x20cefb=['8vzTbHz','Lovrabet','status','yes','lovrabet/lovrabet-skill','5530042RXviiu','4eEqujs','skill','npx','4Rdholc','trim','7240590plwnOo','547420IXBebK','add','join','1783167uhedFa','pipe','35176090lMBEHr','stdio','remove','11343042Eoenbj','inherit','stdout','unknown','exit\x20','log','--skill','stderr','skills','toString','93322BlDeAL'];a177_0x3ae8=function(){return _0x20cefb;};return a177_0x3ae8();}export function buildNpxSkillsAddArgv(_0x5c8a5f){const _0x38c3e6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x5c8a5f&&_0x38c3e6['push'](NPX_SKILLS_FLAG_SKILL,_0x5c8a5f),_0x38c3e6;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x56f1d9(0x120),...buildNpxSkillsAddArgv()][a177_0x56f1d9(0x126)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x56f1d9(0x120),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x56f1d9(0x126)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x29dac7,_0x28a0c7){const _0xc23542=a177_0x56f1d9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e55e9=_0x28a0c7?.[_0xc23542(0x12a)]??_0xc23542(0x12d),_0x51a2e4=resolveNpmBin(_0xc23542(0x120)),_0xe1fdd1=buildNpxSkillsAddArgv(_0x28a0c7?.[_0xc23542(0x11f)]),_0x1d6134=[_0xc23542(0x120),..._0xe1fdd1][_0xc23542(0x126)]('\x20');console[_0xc23542(0x131)]('*\x20'+_0x1d6134);const _0x51133d=spawnSync(_0x51a2e4,_0xe1fdd1,{'cwd':_0x29dac7,'stdio':_0x1e55e9,'env':process.env,'shell':![]}),_0x5c275a=_0x51133d[_0xc23542(0x139)];if(_0x5c275a===0x0)return{'ok':!![],'status':0x0};let _0x42eb2f='exit\x20'+(_0x5c275a??_0xc23542(0x12f));if(_0x1e55e9===_0xc23542(0x128)){const _0x153689=_0x51133d['stderr']?_0x51133d['stderr'][_0xc23542(0x135)]()['trim']():'',_0x4a62d0=_0x51133d[_0xc23542(0x12e)]?_0x51133d[_0xc23542(0x12e)][_0xc23542(0x135)]()[_0xc23542(0x122)]():'';if(_0x153689)_0x42eb2f=_0x153689;else{if(_0x4a62d0)_0x42eb2f=_0x4a62d0;}}return{'ok':![],'status':_0x5c275a??null,'error':_0x42eb2f};}export function runNpxSkillsRemove(_0x162381,_0x45fd95,_0x1fcabd=LEGACY_RABETBASE_SKILL_SOURCE){const _0x581036=a177_0x56f1d9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1492a3=_0x45fd95?.['stdio']??_0x581036(0x12d),_0x2120fb=resolveNpmBin(_0x581036(0x120)),_0x3aa744=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x581036(0x12b),_0x1fcabd,NPX_SKILLS_FLAG_SKILL,_0x45fd95?.[_0x581036(0x11f)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x45fd95?.[_0x581036(0x11b)]?['-y']:[]],_0x167df2=[_0x2120fb,..._0x3aa744][_0x581036(0x126)]('\x20');console[_0x581036(0x131)]('*\x20'+_0x167df2);const _0x4434f0=spawnSync(_0x2120fb,_0x3aa744,{'cwd':_0x162381,'stdio':_0x1492a3,'env':process.env,'shell':![]}),_0x32d3b4=_0x4434f0[_0x581036(0x139)];if(_0x32d3b4===0x0)return{'ok':!![],'status':0x0};let _0x5ade2b=_0x581036(0x130)+(_0x32d3b4??_0x581036(0x12f));if(_0x1492a3==='pipe'){const _0x1906e2=_0x4434f0[_0x581036(0x133)]?_0x4434f0[_0x581036(0x133)][_0x581036(0x135)]()['trim']():'',_0x1438e7=_0x4434f0[_0x581036(0x12e)]?_0x4434f0[_0x581036(0x12e)][_0x581036(0x135)]()[_0x581036(0x122)]():'';if(_0x1906e2)_0x5ade2b=_0x1906e2;else{if(_0x1438e7)_0x5ade2b=_0x1438e7;}}return{'ok':![],'status':_0x32d3b4??null,'error':_0x5ade2b};}export function runNpxSkillsAddGlobal(_0x3c8ce8,_0x47b874,_0x463cc1){const _0x2fda09=a177_0x56f1d9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x49dca6=_0x463cc1?.['stdio']??_0x2fda09(0x12d),_0x1f2e53=resolveNpmBin(_0x2fda09(0x120)),_0x3f458d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x47b874,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4a4252=[_0x2fda09(0x120),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x47b874,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2fda09(0x126)]('\x20');console['log']('*\x20'+_0x4a4252);const _0xd85d39=spawnSync(_0x1f2e53,_0x3f458d,{'cwd':_0x3c8ce8,'stdio':_0x49dca6,'env':process.env,'shell':![]}),_0xf82b4c=_0xd85d39[_0x2fda09(0x139)];if(_0xf82b4c===0x0)return{'ok':!![],'status':0x0};let _0x1d297b=_0x2fda09(0x130)+(_0xf82b4c??_0x2fda09(0x12f));if(_0x49dca6===_0x2fda09(0x128)){const _0x5bf1e5=_0xd85d39[_0x2fda09(0x133)]?_0xd85d39[_0x2fda09(0x133)][_0x2fda09(0x135)]()['trim']():'',_0x557e03=_0xd85d39[_0x2fda09(0x12e)]?_0xd85d39[_0x2fda09(0x12e)][_0x2fda09(0x135)]()['trim']():'';if(_0x5bf1e5)_0x1d297b=_0x5bf1e5;else{if(_0x557e03)_0x1d297b=_0x557e03;}}return{'ok':![],'status':_0xf82b4c??null,'error':_0x1d297b};}
1
+ const a177_0x3fde99=a177_0x4d61;(function(_0x52480d,_0x163b46){const _0x11235c=a177_0x4d61,_0x490bb8=_0x52480d();while(!![]){try{const _0x1e3c50=-parseInt(_0x11235c(0x193))/0x1*(-parseInt(_0x11235c(0x197))/0x2)+-parseInt(_0x11235c(0x19b))/0x3+parseInt(_0x11235c(0x18a))/0x4+-parseInt(_0x11235c(0x18b))/0x5+parseInt(_0x11235c(0x199))/0x6*(-parseInt(_0x11235c(0x18d))/0x7)+parseInt(_0x11235c(0x19f))/0x8*(parseInt(_0x11235c(0x188))/0x9)+parseInt(_0x11235c(0x1a0))/0xa;if(_0x1e3c50===_0x163b46)break;else _0x490bb8['push'](_0x490bb8['shift']());}catch(_0x526c3d){_0x490bb8['push'](_0x490bb8['shift']());}}}(a177_0xd932,0x43f77));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='skills';function a177_0x4d61(_0x3aa4af,_0x1cfc69){_0x3aa4af=_0x3aa4af-0x186;const _0xd932d2=a177_0xd932();let _0x4d6189=_0xd932d2[_0x3aa4af];return _0x4d6189;}export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a177_0x3fde99(0x194);export const RABETBASE_SKILL_SOURCE=a177_0x3fde99(0x19c);export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x3fde99(0x187);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x531fdd){const _0x54f7bd=a177_0x3fde99,_0x53d92c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x531fdd&&_0x53d92c[_0x54f7bd(0x18c)](NPX_SKILLS_FLAG_SKILL,_0x531fdd),_0x53d92c;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a177_0x3fde99(0x192),...buildNpxSkillsAddArgv()][a177_0x3fde99(0x186)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x3fde99(0x192),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a177_0x3fde99(0x186)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a177_0xd932(){const _0x7abb4a=['status','1845964rTDMOp','1426730KCywfg','push','35BgGFVH','exit\x20','remove','unknown','stderr','npx','205797IsbNfb','--skill','trim','log','2ZClnmJ','toString','528414eHywUz','skill','566454IPiDgY','lovrabet/rabetbase','stdout','inherit','3557128hVwPWJ','809710IMkajC','join','lovrabet/lovrabet-skill','9DweGUl'];a177_0xd932=function(){return _0x7abb4a;};return a177_0xd932();}export function runNpxSkillsAdd(_0x3a3cb6,_0x42638d){const _0x20c474=a177_0x3fde99;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5002c8=_0x42638d?.['stdio']??_0x20c474(0x19e),_0x26a360=resolveNpmBin(_0x20c474(0x192)),_0x231620=buildNpxSkillsAddArgv(_0x42638d?.[_0x20c474(0x19a)]),_0x4ad375=[_0x20c474(0x192),..._0x231620][_0x20c474(0x186)]('\x20');console['log']('*\x20'+_0x4ad375);const _0x215e58=spawnSync(_0x26a360,_0x231620,{'cwd':_0x3a3cb6,'stdio':_0x5002c8,'env':process.env,'shell':![]}),_0x1e153a=_0x215e58[_0x20c474(0x189)];if(_0x1e153a===0x0)return{'ok':!![],'status':0x0};let _0x1c5f01='exit\x20'+(_0x1e153a??_0x20c474(0x190));if(_0x5002c8==='pipe'){const _0x16275c=_0x215e58['stderr']?_0x215e58['stderr']['toString']()[_0x20c474(0x195)]():'',_0x1fc6f4=_0x215e58[_0x20c474(0x19d)]?_0x215e58[_0x20c474(0x19d)][_0x20c474(0x198)]()[_0x20c474(0x195)]():'';if(_0x16275c)_0x1c5f01=_0x16275c;else{if(_0x1fc6f4)_0x1c5f01=_0x1fc6f4;}}return{'ok':![],'status':_0x1e153a??null,'error':_0x1c5f01};}export function runNpxSkillsRemove(_0x3f2a29,_0x5e9815,_0x2c776f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1dcc97=a177_0x3fde99;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14bb14=_0x5e9815?.['stdio']??_0x1dcc97(0x19e),_0x197bf4=resolveNpmBin(_0x1dcc97(0x192)),_0x260202=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1dcc97(0x18f),_0x2c776f,NPX_SKILLS_FLAG_SKILL,_0x5e9815?.[_0x1dcc97(0x19a)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5e9815?.['yes']?['-y']:[]],_0xbac05d=[_0x197bf4,..._0x260202][_0x1dcc97(0x186)]('\x20');console['log']('*\x20'+_0xbac05d);const _0x504234=spawnSync(_0x197bf4,_0x260202,{'cwd':_0x3f2a29,'stdio':_0x14bb14,'env':process.env,'shell':![]}),_0x4ac44a=_0x504234[_0x1dcc97(0x189)];if(_0x4ac44a===0x0)return{'ok':!![],'status':0x0};let _0x3d8ce6=_0x1dcc97(0x18e)+(_0x4ac44a??_0x1dcc97(0x190));if(_0x14bb14==='pipe'){const _0x5b0be8=_0x504234[_0x1dcc97(0x191)]?_0x504234[_0x1dcc97(0x191)]['toString']()[_0x1dcc97(0x195)]():'',_0x32d238=_0x504234['stdout']?_0x504234['stdout'][_0x1dcc97(0x198)]()[_0x1dcc97(0x195)]():'';if(_0x5b0be8)_0x3d8ce6=_0x5b0be8;else{if(_0x32d238)_0x3d8ce6=_0x32d238;}}return{'ok':![],'status':_0x4ac44a??null,'error':_0x3d8ce6};}export function runNpxSkillsAddGlobal(_0x2e1240,_0x4709d2,_0x373880){const _0xe5a4aa=a177_0x3fde99;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x415d89=_0x373880?.['stdio']??_0xe5a4aa(0x19e),_0x298c51=resolveNpmBin('npx'),_0x379414=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4709d2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x58fe6c=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4709d2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xe5a4aa(0x186)]('\x20');console[_0xe5a4aa(0x196)]('*\x20'+_0x58fe6c);const _0x262bcd=spawnSync(_0x298c51,_0x379414,{'cwd':_0x2e1240,'stdio':_0x415d89,'env':process.env,'shell':![]}),_0x2f465d=_0x262bcd[_0xe5a4aa(0x189)];if(_0x2f465d===0x0)return{'ok':!![],'status':0x0};let _0x581e7b=_0xe5a4aa(0x18e)+(_0x2f465d??_0xe5a4aa(0x190));if(_0x415d89==='pipe'){const _0x383d46=_0x262bcd[_0xe5a4aa(0x191)]?_0x262bcd[_0xe5a4aa(0x191)][_0xe5a4aa(0x198)]()[_0xe5a4aa(0x195)]():'',_0x10581b=_0x262bcd[_0xe5a4aa(0x19d)]?_0x262bcd[_0xe5a4aa(0x19d)][_0xe5a4aa(0x198)]()['trim']():'';if(_0x383d46)_0x581e7b=_0x383d46;else{if(_0x10581b)_0x581e7b=_0x10581b;}}return{'ok':![],'status':_0x2f465d??null,'error':_0x581e7b};}
@@ -1 +1 @@
1
- function a178_0x1744(_0x760fce,_0xde0f8f){_0x760fce=_0x760fce-0x144;const _0x5f0c33=a178_0x5f0c();let _0x1744a2=_0x5f0c33[_0x760fce];return _0x1744a2;}(function(_0x2fda36,_0x42fac1){const _0x3cf8d1=a178_0x1744,_0x2bd506=_0x2fda36();while(!![]){try{const _0x1cf906=parseInt(_0x3cf8d1(0x144))/0x1*(-parseInt(_0x3cf8d1(0x146))/0x2)+-parseInt(_0x3cf8d1(0x14b))/0x3*(-parseInt(_0x3cf8d1(0x14e))/0x4)+parseInt(_0x3cf8d1(0x152))/0x5*(-parseInt(_0x3cf8d1(0x156))/0x6)+parseInt(_0x3cf8d1(0x157))/0x7*(parseInt(_0x3cf8d1(0x147))/0x8)+parseInt(_0x3cf8d1(0x14c))/0x9+parseInt(_0x3cf8d1(0x154))/0xa+-parseInt(_0x3cf8d1(0x148))/0xb;if(_0x1cf906===_0x42fac1)break;else _0x2bd506['push'](_0x2bd506['shift']());}catch(_0x4e8a28){_0x2bd506['push'](_0x2bd506['shift']());}}}(a178_0x5f0c,0xab8ee));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3e80ea){const _0x51f6dc=a178_0x1744;return SENSITIVE_PATTERNS[_0x51f6dc(0x150)](_0x5228d7=>_0x5228d7[_0x51f6dc(0x151)](_0x3e80ea));}function sanitizeFlags(_0x39c3c2){const _0x5ece9f=a178_0x1744,_0x5e18ce={};for(const [_0x367391,_0x1e86ea]of Object['entries'](_0x39c3c2)){isSensitiveKey(_0x367391)?_0x5e18ce[_0x367391]=_0x1e86ea!=null&&_0x1e86ea!==''?_0x5ece9f(0x14d):_0x1e86ea:_0x5e18ce[_0x367391]=_0x1e86ea;}return _0x5e18ce;}export async function reportCommandTrace(_0x97876b){const _0x336a63=a178_0x1744;try{const _0x51609d=sanitizeFlags(_0x97876b['flags']);await sendCliTraceLog({'spanName':_0x336a63(0x155),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x97876b[_0x336a63(0x149)],'command.name':_0x97876b[_0x336a63(0x153)],'command.flags':JSON[_0x336a63(0x145)](_0x51609d),..._0x97876b[_0x336a63(0x14a)]!=null?{'command.duration_ms':_0x97876b['durationMs']}:{},..._0x97876b['error']?{'command.error':_0x97876b[_0x336a63(0x14f)]instanceof Error?_0x97876b[_0x336a63(0x14f)]['message']:String(_0x97876b['error'])}:{}}});}catch{}}function a178_0x5f0c(){const _0xe5425e=['12349630mtRTeY','rabetbase.command','3742242gNARZZ','2527462dWqrkr','138916BnVReK','stringify','4csOFWz','8qbxRoN','3805032szLytG','service','durationMs','3kZZkFY','424332grGYsW','[REDACTED]','3722732RZldTG','error','some','test','10eeQSVB','command'];a178_0x5f0c=function(){return _0xe5425e;};return a178_0x5f0c();}
1
+ function a178_0x2e1f(){const _0x15fe1b=['[REDACTED]','entries','durationMs','service','1428320gqXQtQ','12110600uduySA','test','rabetbase.command','1201895tweNfX','error','flags','some','2567643vzlHgx','stringify','227832JPcYMu','9091495oTRreh','message','24wRCRQa','command','1831540AdASIF'];a178_0x2e1f=function(){return _0x15fe1b;};return a178_0x2e1f();}(function(_0x297004,_0x3cf2a7){const _0x9b0c0d=a178_0x26be,_0x37447f=_0x297004();while(!![]){try{const _0x80b4c8=parseInt(_0x9b0c0d(0x1ec))/0x1+-parseInt(_0x9b0c0d(0x1f1))/0x2+-parseInt(_0x9b0c0d(0x1fe))/0x3+parseInt(_0x9b0c0d(0x1f6))/0x4+-parseInt(_0x9b0c0d(0x1fa))/0x5*(parseInt(_0x9b0c0d(0x1ef))/0x6)+parseInt(_0x9b0c0d(0x1ed))/0x7+parseInt(_0x9b0c0d(0x1f7))/0x8;if(_0x80b4c8===_0x3cf2a7)break;else _0x37447f['push'](_0x37447f['shift']());}catch(_0x4d37eb){_0x37447f['push'](_0x37447f['shift']());}}}(a178_0x2e1f,0xa2323));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x206a2d){const _0x48edf7=a178_0x26be;return SENSITIVE_PATTERNS[_0x48edf7(0x1fd)](_0x48ebc4=>_0x48ebc4[_0x48edf7(0x1f8)](_0x206a2d));}function a178_0x26be(_0x43a916,_0x400e36){_0x43a916=_0x43a916-0x1ec;const _0x2e1fc6=a178_0x2e1f();let _0x26be7c=_0x2e1fc6[_0x43a916];return _0x26be7c;}function sanitizeFlags(_0xab3daa){const _0x209554=a178_0x26be,_0x2726c3={};for(const [_0x4cbb20,_0x3bc181]of Object[_0x209554(0x1f3)](_0xab3daa)){isSensitiveKey(_0x4cbb20)?_0x2726c3[_0x4cbb20]=_0x3bc181!=null&&_0x3bc181!==''?_0x209554(0x1f2):_0x3bc181:_0x2726c3[_0x4cbb20]=_0x3bc181;}return _0x2726c3;}export async function reportCommandTrace(_0x368dd1){const _0x1ec536=a178_0x26be;try{const _0x12899d=sanitizeFlags(_0x368dd1[_0x1ec536(0x1fc)]);await sendCliTraceLog({'spanName':_0x1ec536(0x1f9),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x368dd1[_0x1ec536(0x1f5)],'command.name':_0x368dd1[_0x1ec536(0x1f0)],'command.flags':JSON[_0x1ec536(0x1ff)](_0x12899d),..._0x368dd1[_0x1ec536(0x1f4)]!=null?{'command.duration_ms':_0x368dd1[_0x1ec536(0x1f4)]}:{},..._0x368dd1[_0x1ec536(0x1fb)]?{'command.error':_0x368dd1[_0x1ec536(0x1fb)]instanceof Error?_0x368dd1[_0x1ec536(0x1fb)][_0x1ec536(0x1ee)]:String(_0x368dd1['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a179_0x45cf(_0x22b9f7,_0x41fdbc){_0x22b9f7=_0x22b9f7-0x16e;var _0x5bdca9=a179_0x5bdc();var _0x45cf7e=_0x5bdca9[_0x22b9f7];return _0x45cf7e;}function a179_0x5bdc(){var _0x59e08b=['4275CaAfDA','error','12553256rUCkfs','410355gpmqEE','cli.help','66591bdDLXX','2928723jFMaHf','service','24hMyIzI','582748vMcVvQ','2756yJJuSq','1290tCPQnL','5744352cPHpPK'];a179_0x5bdc=function(){return _0x59e08b;};return a179_0x5bdc();}(function(_0xf2795e,_0x3962df){var _0x20730f=a179_0x45cf,_0x1fb8ab=_0xf2795e();while(!![]){try{var _0x53c3bf=-parseInt(_0x20730f(0x179))/0x1+-parseInt(_0x20730f(0x172))/0x2+-parseInt(_0x20730f(0x175))/0x3+-parseInt(_0x20730f(0x173))/0x4*(parseInt(_0x20730f(0x176))/0x5)+-parseInt(_0x20730f(0x171))/0x6*(-parseInt(_0x20730f(0x16f))/0x7)+parseInt(_0x20730f(0x178))/0x8+-parseInt(_0x20730f(0x16e))/0x9*(-parseInt(_0x20730f(0x174))/0xa);if(_0x53c3bf===_0x3962df)break;else _0x1fb8ab['push'](_0x1fb8ab['shift']());}catch(_0x166f8a){_0x1fb8ab['push'](_0x1fb8ab['shift']());}}}(a179_0x5bdc,0xf2158));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5ddda8,_0x15e3ca){var _0x1bde3a=a179_0x45cf;try{await sendCliTraceLog({'spanName':_0x1bde3a(0x17a),'logData':{'rabetbase.help.kind':_0x5ddda8,..._0x15e3ca?.[_0x1bde3a(0x170)]&&{'rabetbase.help.service':_0x15e3ca[_0x1bde3a(0x170)]}}});}catch(_0x1369e8){console[_0x1bde3a(0x177)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x1369e8);}}
1
+ (function(_0x29e9fd,_0x1f6f55){var _0x2f2e8a=a179_0x33dd,_0x3a8bba=_0x29e9fd();while(!![]){try{var _0x3459b2=parseInt(_0x2f2e8a(0x178))/0x1+parseInt(_0x2f2e8a(0x17f))/0x2+-parseInt(_0x2f2e8a(0x17c))/0x3+parseInt(_0x2f2e8a(0x179))/0x4*(parseInt(_0x2f2e8a(0x180))/0x5)+-parseInt(_0x2f2e8a(0x17d))/0x6+-parseInt(_0x2f2e8a(0x17b))/0x7+parseInt(_0x2f2e8a(0x177))/0x8*(parseInt(_0x2f2e8a(0x181))/0x9);if(_0x3459b2===_0x1f6f55)break;else _0x3a8bba['push'](_0x3a8bba['shift']());}catch(_0x27bbdf){_0x3a8bba['push'](_0x3a8bba['shift']());}}}(a179_0x9af1,0x7c5db));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2f3789,_0x2ae1bc){var _0x88ecf2=a179_0x33dd;try{await sendCliTraceLog({'spanName':_0x88ecf2(0x17a),'logData':{'rabetbase.help.kind':_0x2f3789,..._0x2ae1bc?.['service']&&{'rabetbase.help.service':_0x2ae1bc[_0x88ecf2(0x175)]}}});}catch(_0x679781){console[_0x88ecf2(0x17e)](_0x88ecf2(0x176),_0x679781);}}function a179_0x33dd(_0x4110ab,_0x144d87){_0x4110ab=_0x4110ab-0x175;var _0x9af19=a179_0x9af1();var _0x33dd3e=_0x9af19[_0x4110ab];return _0x33dd3e;}function a179_0x9af1(){var _0x50365f=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','6126560BCCtiV','373894kcjFmw','5932gvCLwn','cli.help','1799238BEERKd','2955363QXzUgY','2693112FXKCEz','error','614664PlTiDW','2540YUJaMX','9qpFbhh','service'];a179_0x9af1=function(){return _0x50365f;};return a179_0x9af1();}
@@ -1 +1 @@
1
- function a180_0x39d2(){const _0x5b79b0=['daily','290gqJgNj','111386cESUZU','76499dgCusX','username','93756UofJrh','73557oLTtXK','user','20376imxjFm','tenant','35fsIkdZ','29997bzgBtv','17311aMiHQH','production','776DyqrRM','email','tenant_code'];a180_0x39d2=function(){return _0x5b79b0;};return a180_0x39d2();}(function(_0x27c058,_0xbe44dd){const _0x2713ea=a180_0x37e1,_0x337875=_0x27c058();while(!![]){try{const _0x167350=-parseInt(_0x2713ea(0x1b2))/0x1+parseInt(_0x2713ea(0x1b1))/0x2+parseInt(_0x2713ea(0x1a9))/0x3+parseInt(_0x2713ea(0x1b4))/0x4*(parseInt(_0x2713ea(0x1a8))/0x5)+-parseInt(_0x2713ea(0x1a6))/0x6+parseInt(_0x2713ea(0x1aa))/0x7*(-parseInt(_0x2713ea(0x1ac))/0x8)+parseInt(_0x2713ea(0x1b5))/0x9*(parseInt(_0x2713ea(0x1b0))/0xa);if(_0x167350===_0xbe44dd)break;else _0x337875['push'](_0x337875['shift']());}catch(_0x3d5801){_0x337875['push'](_0x337875['shift']());}}}(a180_0x39d2,0x23e3e));function a180_0x37e1(_0x5aaae4,_0x4163e7){_0x5aaae4=_0x5aaae4-0x1a6;const _0x39d235=a180_0x39d2();let _0x37e102=_0x39d235[_0x5aaae4];return _0x37e102;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';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 _0x4bc551=a180_0x37e1,_0x1c7205=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x284d02=_0x1c7205?.[_0x4bc551(0x1b6)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4bc551(0x1af):_0x4bc551(0x1ab))}),setUserContext({'id':_0x284d02?.['id'],'username':_0x284d02?.[_0x4bc551(0x1b3)],'nickname':_0x284d02?.['nickname'],'email':_0x284d02?.[_0x4bc551(0x1ad)],'tenantCode':_0x284d02?.[_0x4bc551(0x1a7)][_0x4bc551(0x1ae)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1c7205;}
1
+ (function(_0x25e417,_0x5dfcef){const _0x40ab12=a180_0x2643,_0x50aa72=_0x25e417();while(!![]){try{const _0x49144a=-parseInt(_0x40ab12(0x19c))/0x1+-parseInt(_0x40ab12(0x1a4))/0x2*(parseInt(_0x40ab12(0x1a1))/0x3)+-parseInt(_0x40ab12(0x19e))/0x4*(parseInt(_0x40ab12(0x19f))/0x5)+parseInt(_0x40ab12(0x19d))/0x6*(-parseInt(_0x40ab12(0x198))/0x7)+-parseInt(_0x40ab12(0x19a))/0x8*(-parseInt(_0x40ab12(0x1a0))/0x9)+-parseInt(_0x40ab12(0x199))/0xa+-parseInt(_0x40ab12(0x1a6))/0xb*(-parseInt(_0x40ab12(0x1a3))/0xc);if(_0x49144a===_0x5dfcef)break;else _0x50aa72['push'](_0x50aa72['shift']());}catch(_0x456e26){_0x50aa72['push'](_0x50aa72['shift']());}}}(a180_0x2999,0x87d26));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a180_0x2999(){const _0x2ba169=['8390580xzkFoU','118664pDgmDz','tenant_code','523266CjkSVx','1302522sBJoKY','27124RHVLtj','500CfLUKt','117wcRbnD','35007skoPkP','daily','24XdhUeC','124iCSBSZ','nickname','18394673DOBAgA','user','tenant','production','7kAoLwz'];a180_0x2999=function(){return _0x2ba169;};return a180_0x2999();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a180_0x2643(_0x4529b4,_0x11c91a){_0x4529b4=_0x4529b4-0x196;const _0x2999d1=a180_0x2999();let _0x26432e=_0x2999d1[_0x4529b4];return _0x26432e;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1e4242=a180_0x2643,_0x11f319=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3b4b41=_0x11f319?.[_0x1e4242(0x1a7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1e4242(0x1a2):_0x1e4242(0x197))}),setUserContext({'id':_0x3b4b41?.['id'],'username':_0x3b4b41?.['username'],'nickname':_0x3b4b41?.[_0x1e4242(0x1a5)],'email':_0x3b4b41?.['email'],'tenantCode':_0x3b4b41?.[_0x1e4242(0x196)][_0x1e4242(0x19b)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x11f319;}
@@ -1 +1 @@
1
- function a181_0x3d6d(){const _0x3d4443=['1319670ntBDNY','once','SIGTERM','36609jhYwDj','SIGINT','55msMdXz','3378774OjXmwH','exit','beforeExit','8TuaxCa','9280PGGjkp','then','12088573yEpDNx','376Kfzajp','450sBlTlk','42060IztqPZ','6589BZXQeT','81081QOFfyg'];a181_0x3d6d=function(){return _0x3d4443;};return a181_0x3d6d();}(function(_0x64a6e8,_0x3b5ad9){const _0xd1bc63=a181_0x4910,_0x25130d=_0x64a6e8();while(!![]){try{const _0x5371ac=parseInt(_0xd1bc63(0x11a))/0x1*(-parseInt(_0xd1bc63(0x11f))/0x2)+parseInt(_0xd1bc63(0x118))/0x3*(parseInt(_0xd1bc63(0x122))/0x4)+parseInt(_0xd1bc63(0x127))/0x5+parseInt(_0xd1bc63(0x11b))/0x6+parseInt(_0xd1bc63(0x121))/0x7*(parseInt(_0xd1bc63(0x11e))/0x8)+parseInt(_0xd1bc63(0x126))/0x9*(-parseInt(_0xd1bc63(0x123))/0xa)+-parseInt(_0xd1bc63(0x125))/0xb*(parseInt(_0xd1bc63(0x124))/0xc);if(_0x5371ac===_0x3b5ad9)break;else _0x25130d['push'](_0x25130d['shift']());}catch(_0x1f7390){_0x25130d['push'](_0x25130d['shift']());}}}(a181_0x3d6d,0xe5bb8));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0x4910(_0x144ff7,_0x14c28c){_0x144ff7=_0x144ff7-0x116;const _0x3d6d37=a181_0x3d6d();let _0x491017=_0x3d6d37[_0x144ff7];return _0x491017;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x23978c=a181_0x4910;process[_0x23978c(0x116)](_0x23978c(0x11d),()=>{void flushOtelNodeIfUsed();});const _0x1821bd=()=>{const _0x380cd9=_0x23978c;void flushOtelNodeIfUsed()[_0x380cd9(0x120)](()=>process[_0x380cd9(0x11c)](0x0));};process[_0x23978c(0x116)](_0x23978c(0x119),_0x1821bd),process[_0x23978c(0x116)](_0x23978c(0x117),_0x1821bd);}export async function exitWithOtelShutdown(_0x183e1b){const _0x355b8d=a181_0x4910;await flushOtelNodeIfUsed(),process[_0x355b8d(0x11c)](_0x183e1b);}
1
+ function a181_0x4a41(){const _0x1177dd=['2815184zwWDbg','once','then','4851UHiwCb','327913ofOxbl','23065yrAMOJ','25460WHuBik','378iKNkZf','492cggyYU','SIGTERM','SIGINT','exit','7AvmbpV','6195756OhawMT','2349378aTTWvz','15558QiiNRB'];a181_0x4a41=function(){return _0x1177dd;};return a181_0x4a41();}(function(_0x50fd94,_0x3bc4da){const _0x133a03=a181_0x7f94,_0x2d5573=_0x50fd94();while(!![]){try{const _0x197a07=parseInt(_0x133a03(0x1eb))/0x1+parseInt(_0x133a03(0x1e6))/0x2*(parseInt(_0x133a03(0x1de))/0x3)+parseInt(_0x133a03(0x1df))/0x4*(-parseInt(_0x133a03(0x1ec))/0x5)+-parseInt(_0x133a03(0x1e4))/0x6+-parseInt(_0x133a03(0x1e3))/0x7*(parseInt(_0x133a03(0x1e7))/0x8)+parseInt(_0x133a03(0x1e5))/0x9+parseInt(_0x133a03(0x1ed))/0xa*(parseInt(_0x133a03(0x1ea))/0xb);if(_0x197a07===_0x3bc4da)break;else _0x2d5573['push'](_0x2d5573['shift']());}catch(_0x1f4eb4){_0x2d5573['push'](_0x2d5573['shift']());}}}(a181_0x4a41,0xb4a84));import{shutdownTraces}from'@lovrabet/otel-logger';function a181_0x7f94(_0x410f51,_0x30740c){_0x410f51=_0x410f51-0x1de;const _0x4a41b0=a181_0x4a41();let _0x7f9460=_0x4a41b0[_0x410f51];return _0x7f9460;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x12a80d=a181_0x7f94;process[_0x12a80d(0x1e8)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x28c990=()=>{const _0x131f70=_0x12a80d;void flushOtelNodeIfUsed()[_0x131f70(0x1e9)](()=>process['exit'](0x0));};process[_0x12a80d(0x1e8)](_0x12a80d(0x1e1),_0x28c990),process['once'](_0x12a80d(0x1e0),_0x28c990);}export async function exitWithOtelShutdown(_0x4c00db){const _0x3faf05=a181_0x7f94;await flushOtelNodeIfUsed(),process[_0x3faf05(0x1e2)](_0x4c00db);}
@@ -1 +1 @@
1
- const a182_0x18f605=a182_0x157b;(function(_0x5dee13,_0x5560c0){const _0x3a51c=a182_0x157b,_0x4c44b3=_0x5dee13();while(!![]){try{const _0x321a56=parseInt(_0x3a51c(0x1a7))/0x1+-parseInt(_0x3a51c(0x1ae))/0x2*(-parseInt(_0x3a51c(0x1a2))/0x3)+parseInt(_0x3a51c(0x1a9))/0x4*(-parseInt(_0x3a51c(0x1a5))/0x5)+-parseInt(_0x3a51c(0x1ab))/0x6+-parseInt(_0x3a51c(0x1a4))/0x7*(-parseInt(_0x3a51c(0x19f))/0x8)+-parseInt(_0x3a51c(0x1af))/0x9+-parseInt(_0x3a51c(0x1a1))/0xa;if(_0x321a56===_0x5560c0)break;else _0x4c44b3['push'](_0x4c44b3['shift']());}catch(_0x38a2bb){_0x4c44b3['push'](_0x4c44b3['shift']());}}}(a182_0xf3e2,0xac994));function a182_0x157b(_0x3f239e,_0x4e4c0e){_0x3f239e=_0x3f239e-0x19f;const _0xf3e201=a182_0xf3e2();let _0x157bb9=_0xf3e201[_0x3f239e];return _0x157bb9;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a182_0xf3e2(){const _0x39db8d=['3065160brMPln','8154OFiLnb','manual','2716eqjszi','5mNqSNE','rabetbase-cli','1394070XDzktL','version','195656Emgvdr','traceparent','3778104KxPSpW','logData','spanName','58LgWrFm','9847746oCbJvG','27080yGDPzv','traceName'];a182_0xf3e2=function(){return _0x39db8d;};return a182_0xf3e2();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a182_0x18f605(0x1a6);export async function sendCliTraceLog(_0x2a1a9a){const _0x4a8b37=a182_0x18f605;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2a1a9a[_0x4a8b37(0x1a0)]??DEFAULT_TRACE_NAME,'version':_0x2a1a9a[_0x4a8b37(0x1a8)]??getCliVersion(),'spanName':_0x2a1a9a[_0x4a8b37(0x1ad)],'eventType':_0x4a8b37(0x1a3),'logData':_0x2a1a9a[_0x4a8b37(0x1ac)],..._0x2a1a9a[_0x4a8b37(0x1aa)]&&{'traceparent':_0x2a1a9a[_0x4a8b37(0x1aa)]}});}
1
+ (function(_0x1fa545,_0x3b3c6e){const _0x101688=a182_0x4f9c,_0x1cd20e=_0x1fa545();while(!![]){try{const _0x57adce=parseInt(_0x101688(0x101))/0x1+-parseInt(_0x101688(0xfb))/0x2*(parseInt(_0x101688(0xfc))/0x3)+-parseInt(_0x101688(0xf8))/0x4+-parseInt(_0x101688(0xf9))/0x5+-parseInt(_0x101688(0x105))/0x6*(parseInt(_0x101688(0xf6))/0x7)+parseInt(_0x101688(0x102))/0x8*(-parseInt(_0x101688(0xfe))/0x9)+parseInt(_0x101688(0xf7))/0xa;if(_0x57adce===_0x3b3c6e)break;else _0x1cd20e['push'](_0x1cd20e['shift']());}catch(_0x438024){_0x1cd20e['push'](_0x1cd20e['shift']());}}}(a182_0x3f57,0x8fc8f));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a182_0x3f57(){const _0x14697b=['spanName','manual','1226508duCwQr','21YieIPg','23017820JbKcLc','516388gUDtoh','2152415EkUglX','traceparent','232674JStTRB','30dhEKOU','version','451908PysCha','logData','traceName','723789SvtorY','16bvAmzf'];a182_0x3f57=function(){return _0x14697b;};return a182_0x3f57();}function a182_0x4f9c(_0x321016,_0x3b4ce9){_0x321016=_0x321016-0xf6;const _0x3f576e=a182_0x3f57();let _0x4f9cce=_0x3f576e[_0x321016];return _0x4f9cce;}export async function sendCliTraceLog(_0x1b9036){const _0x30eabd=a182_0x4f9c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1b9036[_0x30eabd(0x100)]??DEFAULT_TRACE_NAME,'version':_0x1b9036[_0x30eabd(0xfd)]??getCliVersion(),'spanName':_0x1b9036[_0x30eabd(0x103)],'eventType':_0x30eabd(0x104),'logData':_0x1b9036[_0x30eabd(0xff)],..._0x1b9036[_0x30eabd(0xfa)]&&{'traceparent':_0x1b9036['traceparent']}});}
@@ -1 +1 @@
1
- const a183_0x228da3=a183_0xe567;(function(_0x4398cf,_0x5155af){const _0x3314ee=a183_0xe567,_0xca33c6=_0x4398cf();while(!![]){try{const _0x21437e=-parseInt(_0x3314ee(0x95))/0x1*(-parseInt(_0x3314ee(0x90))/0x2)+parseInt(_0x3314ee(0x92))/0x3*(-parseInt(_0x3314ee(0x9c))/0x4)+-parseInt(_0x3314ee(0x9a))/0x5+parseInt(_0x3314ee(0x96))/0x6+parseInt(_0x3314ee(0x9e))/0x7+parseInt(_0x3314ee(0x94))/0x8*(parseInt(_0x3314ee(0x98))/0x9)+-parseInt(_0x3314ee(0x97))/0xa;if(_0x21437e===_0x5155af)break;else _0xca33c6['push'](_0xca33c6['shift']());}catch(_0xae0fc9){_0xca33c6['push'](_0xca33c6['shift']());}}}(a183_0x57e4,0xaa41b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0x57e4(){const _0x383268=['sanitize','5975571kQKDFH','description','issue.log.collect','join','34iGiBGd','redactionCount','19053EXkQht','truncated','6056chDERq','26774KnPhcT','5262090rtJcgn','8955930KBBwdZ','576ZKLrHh','originalBytes','1999860DDkuMB','platform-issue-log-collect','152vGGhSH'];a183_0x57e4=function(){return _0x383268;};return a183_0x57e4();}export const PLATFORM_ISSUE_TRACE_NAME=a183_0x228da3(0x9b);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x228da3(0x8e);function a183_0xe567(_0x466719,_0x2404ab){_0x466719=_0x466719-0x8e;const _0x57e4ea=a183_0x57e4();let _0xe56748=_0x57e4ea[_0x466719];return _0xe56748;}export async function sendPlatformIssueCollectLog(_0x37d322){const _0x1cba27=a183_0x228da3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37d322['title'],'issue.description':_0x37d322[_0x1cba27(0x9f)],..._0x37d322[_0x1cba27(0x9d)]?{'issue.description_original_bytes':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x99)],'issue.description_truncated':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x93)],'issue.description_redactions':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x91)],'issue.description_redaction_kinds':_0x37d322[_0x1cba27(0x9d)]['redactionKinds'][_0x1cba27(0x8f)](',')}:{}}});}
1
+ function a183_0x13f3(){const _0x331348=['title','originalBytes','truncated','4035042ZddrKq','127693NirchS','5DXSktK','4692404MEPbio','5722600lQrqdx','7443107mNQvXy','sanitize','redactionKinds','1632264xMiGDK','issue.log.collect','redactionCount','join','2419546NOYtRC','platform-issue-log-collect','description'];a183_0x13f3=function(){return _0x331348;};return a183_0x13f3();}const a183_0x3fa4bd=a183_0x23f4;(function(_0x5e9d5e,_0x320604){const _0x4c1174=a183_0x23f4,_0x5703c5=_0x5e9d5e();while(!![]){try{const _0x179a6f=parseInt(_0x4c1174(0x1dd))/0x1+parseInt(_0x4c1174(0x1d6))/0x2+-parseInt(_0x4c1174(0x1d2))/0x3+parseInt(_0x4c1174(0x1df))/0x4*(parseInt(_0x4c1174(0x1de))/0x5)+parseInt(_0x4c1174(0x1dc))/0x6+-parseInt(_0x4c1174(0x1cf))/0x7+-parseInt(_0x4c1174(0x1e0))/0x8;if(_0x179a6f===_0x320604)break;else _0x5703c5['push'](_0x5703c5['shift']());}catch(_0xf963cb){_0x5703c5['push'](_0x5703c5['shift']());}}}(a183_0x13f3,0xd20c8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a183_0x3fa4bd(0x1d7);function a183_0x23f4(_0x10ccca,_0x586e07){_0x10ccca=_0x10ccca-0x1cf;const _0x13f3f4=a183_0x13f3();let _0x23f4f0=_0x13f3f4[_0x10ccca];return _0x23f4f0;}export const PLATFORM_ISSUE_SPAN_NAME=a183_0x3fa4bd(0x1d3);export async function sendPlatformIssueCollectLog(_0x2e58e6){const _0x520d41=a183_0x3fa4bd;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2e58e6[_0x520d41(0x1d9)],'issue.description':_0x2e58e6[_0x520d41(0x1d8)],..._0x2e58e6[_0x520d41(0x1d0)]?{'issue.description_original_bytes':_0x2e58e6['sanitize'][_0x520d41(0x1da)],'issue.description_truncated':_0x2e58e6[_0x520d41(0x1d0)][_0x520d41(0x1db)],'issue.description_redactions':_0x2e58e6[_0x520d41(0x1d0)][_0x520d41(0x1d4)],'issue.description_redaction_kinds':_0x2e58e6[_0x520d41(0x1d0)][_0x520d41(0x1d1)][_0x520d41(0x1d5)](',')}:{}}});}