@lovrabet/rabetbase-cli 2.3.7-beta.2 → 2.3.7-beta.3

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 (243) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x564d0b,_0x5ad181){const _0x2deccc=a198_0x552c,_0xdb2832=_0x564d0b();while(!![]){try{const _0x229b8a=parseInt(_0x2deccc(0xeb))/0x1*(parseInt(_0x2deccc(0xec))/0x2)+parseInt(_0x2deccc(0xe3))/0x3+-parseInt(_0x2deccc(0xe1))/0x4+parseInt(_0x2deccc(0xe9))/0x5+parseInt(_0x2deccc(0xde))/0x6+-parseInt(_0x2deccc(0xe8))/0x7*(parseInt(_0x2deccc(0xe0))/0x8)+-parseInt(_0x2deccc(0xe6))/0x9;if(_0x229b8a===_0x5ad181)break;else _0xdb2832['push'](_0xdb2832['shift']());}catch(_0x4cafd7){_0xdb2832['push'](_0xdb2832['shift']());}}}(a198_0x5c36,0xe4c7b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a198_0x552c(_0x126ab6,_0x1469cc){_0x126ab6=_0x126ab6-0xd8;const _0x5c36d9=a198_0x5c36();let _0x552c38=_0x5c36d9[_0x126ab6];return _0x552c38;}export function ensureSqlLockScope(_0x415179,_0x10a95c,_0x36497b,_0x7755a){const _0x2b0563=a198_0x552c,_0x28ed3f=_0x415179??createEmptySqlLock();let _0x355e2b=_0x28ed3f['apps'][_0x10a95c];if(!_0x355e2b)return _0x355e2b={'sqlRoot':_0x36497b,'lastSync':'','sqls':{}},_0x28ed3f[_0x2b0563(0xd9)][_0x10a95c]=_0x355e2b,{'lockData':_0x28ed3f,'appLock':_0x355e2b};if(!_0x355e2b[_0x2b0563(0xdb)])_0x355e2b[_0x2b0563(0xdb)]=_0x36497b;else{if(_0x355e2b[_0x2b0563(0xdb)]!==_0x36497b)throw new Error(_0x7755a+_0x2b0563(0xe2)+_0x36497b+_0x2b0563(0xe7)+_0x355e2b[_0x2b0563(0xdb)]+_0x2b0563(0xe5)+_0x2b0563(0xda));}return!_0x355e2b['sqls']&&(_0x355e2b[_0x2b0563(0xe4)]={}),!_0x355e2b[_0x2b0563(0xed)]&&(_0x355e2b[_0x2b0563(0xed)]=''),{'lockData':_0x28ed3f,'appLock':_0x355e2b};}export async function readSqlLockFile(_0x3d0a6f){const _0xcde3b2=a198_0x552c;try{const _0x69bb23=await readFile(_0x3d0a6f,_0xcde3b2(0xdf));return JSON[_0xcde3b2(0xea)](_0x69bb23);}catch(_0x6abbef){if(_0x6abbef[_0xcde3b2(0xdc)]===_0xcde3b2(0xdd))return null;throw new Error(_0xcde3b2(0xd8)+String(_0x6abbef));}}export async function writeSqlLockFile(_0x3aa84f,_0x563341){const _0x294ce5=a198_0x552c;await mkdir(dirname(_0x3aa84f),{'recursive':!![]}),await writeFile(_0x3aa84f,JSON['stringify'](_0x563341,null,0x2),_0x294ce5(0xdf));}function a198_0x5c36(){const _0x11e1f4=['sqlRoot','code','ENOENT','7115562BbykIR','utf8','88840qhiWJk','2962048FMulni',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','2360607sIOxzE','sqls','\x22.\x20','27416574SShePz','\x22\x20vs\x20lock\x20\x22','413QsxTzL','8288920CfLpMe','parse','48QPqGln','72854dOgwKf','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a198_0x5c36=function(){return _0x11e1f4;};return a198_0x5c36();}
1
+ function a198_0x2d84(_0x192bb1,_0x5ac884){_0x192bb1=_0x192bb1-0x8f;const _0x3d1d58=a198_0x3d1d();let _0x2d8432=_0x3d1d58[_0x192bb1];return _0x2d8432;}(function(_0x40b2d3,_0x5545be){const _0x280328=a198_0x2d84,_0x57e1e6=_0x40b2d3();while(!![]){try{const _0x4f4efe=-parseInt(_0x280328(0x9b))/0x1+-parseInt(_0x280328(0x96))/0x2*(-parseInt(_0x280328(0xa2))/0x3)+parseInt(_0x280328(0x93))/0x4*(-parseInt(_0x280328(0x8f))/0x5)+parseInt(_0x280328(0x91))/0x6+parseInt(_0x280328(0x95))/0x7*(parseInt(_0x280328(0x99))/0x8)+-parseInt(_0x280328(0xa3))/0x9+-parseInt(_0x280328(0x90))/0xa*(-parseInt(_0x280328(0x9f))/0xb);if(_0x4f4efe===_0x5545be)break;else _0x57e1e6['push'](_0x57e1e6['shift']());}catch(_0x526153){_0x57e1e6['push'](_0x57e1e6['shift']());}}}(a198_0x3d1d,0x1a35f));function a198_0x3d1d(){const _0x349ccb=['2mHOeje','code','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','16CwLrQO','sqls','74778xVbkUu','lastSync','sqlRoot','utf8','11AMhyLa','apps','\x22\x20vs\x20lock\x20\x22','346713ZKqJIe','875646HLErEj','25KGgZzi','1413550OKXqgN','836034gSqmOO','\x22.\x20','120464KKJiHY',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','118111yDNSPS'];a198_0x3d1d=function(){return _0x349ccb;};return a198_0x3d1d();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x159b8d,_0x25aca5,_0x40f4ea,_0x323268){const _0x5e7563=a198_0x2d84,_0x33db70=_0x159b8d??createEmptySqlLock();let _0x55d716=_0x33db70['apps'][_0x25aca5];if(!_0x55d716)return _0x55d716={'sqlRoot':_0x40f4ea,'lastSync':'','sqls':{}},_0x33db70[_0x5e7563(0xa0)][_0x25aca5]=_0x55d716,{'lockData':_0x33db70,'appLock':_0x55d716};if(!_0x55d716[_0x5e7563(0x9d)])_0x55d716['sqlRoot']=_0x40f4ea;else{if(_0x55d716[_0x5e7563(0x9d)]!==_0x40f4ea)throw new Error(_0x323268+_0x5e7563(0x94)+_0x40f4ea+_0x5e7563(0xa1)+_0x55d716['sqlRoot']+_0x5e7563(0x92)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x55d716[_0x5e7563(0x9a)]&&(_0x55d716[_0x5e7563(0x9a)]={}),!_0x55d716[_0x5e7563(0x9c)]&&(_0x55d716[_0x5e7563(0x9c)]=''),{'lockData':_0x33db70,'appLock':_0x55d716};}export async function readSqlLockFile(_0x26fcdc){const _0x83adb5=a198_0x2d84;try{const _0x1c1c28=await readFile(_0x26fcdc,'utf8');return JSON['parse'](_0x1c1c28);}catch(_0x312e35){if(_0x312e35[_0x83adb5(0x97)]==='ENOENT')return null;throw new Error(_0x83adb5(0x98)+String(_0x312e35));}}export async function writeSqlLockFile(_0x3158a8,_0x2c594e){const _0xbfd2a0=a198_0x2d84;await mkdir(dirname(_0x3158a8),{'recursive':!![]}),await writeFile(_0x3158a8,JSON['stringify'](_0x2c594e,null,0x2),_0xbfd2a0(0x9e));}
@@ -1 +1 @@
1
- (function(_0x4a9a4d,_0x2c64a5){const _0x1d2c08=a200_0x5cad,_0x1a454c=_0x4a9a4d();while(!![]){try{const _0x36ba3a=parseInt(_0x1d2c08(0xe3))/0x1+-parseInt(_0x1d2c08(0xe0))/0x2+-parseInt(_0x1d2c08(0xe1))/0x3+-parseInt(_0x1d2c08(0xea))/0x4*(-parseInt(_0x1d2c08(0xf2))/0x5)+parseInt(_0x1d2c08(0xef))/0x6*(-parseInt(_0x1d2c08(0xeb))/0x7)+-parseInt(_0x1d2c08(0xe5))/0x8*(parseInt(_0x1d2c08(0xe2))/0x9)+-parseInt(_0x1d2c08(0xed))/0xa*(-parseInt(_0x1d2c08(0xf1))/0xb);if(_0x36ba3a===_0x2c64a5)break;else _0x1a454c['push'](_0x1a454c['shift']());}catch(_0x245899){_0x1a454c['push'](_0x1a454c['shift']());}}}(a200_0x2285,0xd0d70));function a200_0x2285(){const _0x37778c=['9UVZxAg','1493706KAdxSh','unknown-db','10743896xRmEsA','test','mybatisXml','replace','db-','5418664HdiHEe','7pyZunv','unknown-sql','120050NVyqsd','.xml','4182522sGTTQL','.sql','1485bzvmty','5xPQsIf','24yQUPTf','4720659fMBATf'];a200_0x2285=function(){return _0x37778c;};return a200_0x2285();}export function detectSqlMode(_0x435cbc){const _0x55d952=a200_0x5cad,_0x1d631d=_0x435cbc['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x55d952(0xe6)](_0x1d631d))return _0x55d952(0xe7);return'sql';}function a200_0x5cad(_0x550888,_0x4b0c34){_0x550888=_0x550888-0xe0;const _0x228588=a200_0x2285();let _0x5cadd3=_0x228588[_0x550888];return _0x5cadd3;}export function getSqlFileExtension(_0x120b06){const _0x40350c=a200_0x5cad;return _0x120b06===_0x40350c(0xe7)?_0x40350c(0xee):_0x40350c(0xf0);}export function buildDefaultSqlFileName(_0x47396d,_0x34f75e){return''+_0x47396d+getSqlFileExtension(_0x34f75e);}export function sanitizeSqlPathSegment(_0x4cf315,_0x3a0985){const _0x4d3516=a200_0x5cad,_0x16a7e5=String(_0x4cf315??'')['trim'](),_0x15db40=_0x16a7e5[_0x4d3516(0xe8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4d3516(0xe8)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x4d3516(0xe8)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x15db40||_0x3a0985;}export function buildDbDirectoryName(_0x3afed6,_0x2352f0){const _0xa287e3=a200_0x5cad;return sanitizeSqlPathSegment(_0x3afed6,_0x2352f0!=null?_0xa287e3(0xe9)+_0x2352f0:_0xa287e3(0xe4));}export function buildSqlRelativePath(_0x4cb9ea,_0x17eb97,_0x109c15,_0x5bf8ce,_0x25595e){const _0x44fcb3=a200_0x5cad,_0x19a6a5=buildDbDirectoryName(_0x109c15,_0x25595e),_0x1bd9e5=sanitizeSqlPathSegment(_0x4cb9ea,_0x44fcb3(0xec)),_0x2c4851=sanitizeSqlPathSegment(_0x17eb97,_0x1bd9e5);return _0x19a6a5+'/'+_0x1bd9e5+'_'+_0x2c4851+getSqlFileExtension(_0x5bf8ce);}
1
+ (function(_0x2feadc,_0x3cc397){const _0x2b5a39=a200_0xe3dd,_0x1d8f2f=_0x2feadc();while(!![]){try{const _0x4b8b2a=-parseInt(_0x2b5a39(0xcd))/0x1+-parseInt(_0x2b5a39(0xcb))/0x2*(-parseInt(_0x2b5a39(0xce))/0x3)+parseInt(_0x2b5a39(0xd3))/0x4+parseInt(_0x2b5a39(0xca))/0x5*(parseInt(_0x2b5a39(0xcc))/0x6)+-parseInt(_0x2b5a39(0xc6))/0x7+-parseInt(_0x2b5a39(0xc9))/0x8+-parseInt(_0x2b5a39(0xd0))/0x9*(-parseInt(_0x2b5a39(0xd1))/0xa);if(_0x4b8b2a===_0x3cc397)break;else _0x1d8f2f['push'](_0x1d8f2f['shift']());}catch(_0x4438bb){_0x1d8f2f['push'](_0x1d8f2f['shift']());}}}(a200_0x5111,0xc0b89));export function detectSqlMode(_0x44e78d){const _0x17494a=a200_0xe3dd,_0x49a33f=_0x44e78d['trimStart']();if(/^<(select|insert|update|delete)\b/i['test'](_0x49a33f))return _0x17494a(0xd5);return _0x17494a(0xcf);}export function getSqlFileExtension(_0x48c16c){const _0x3739a6=a200_0xe3dd;return _0x48c16c==='mybatisXml'?'.xml':_0x3739a6(0xc7);}export function buildDefaultSqlFileName(_0x3d2832,_0x517fbc){return''+_0x3d2832+getSqlFileExtension(_0x517fbc);}function a200_0xe3dd(_0x5cf866,_0x1d2b29){_0x5cf866=_0x5cf866-0xc6;const _0x511178=a200_0x5111();let _0xe3dd0=_0x511178[_0x5cf866];return _0xe3dd0;}export function sanitizeSqlPathSegment(_0x295801,_0x10d227){const _0x2d2bf6=a200_0xe3dd,_0x41bd00=String(_0x295801??'')[_0x2d2bf6(0xd4)](),_0x2d78da=_0x41bd00[_0x2d2bf6(0xc8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2d2bf6(0xc8)](/\s+/g,'-')[_0x2d2bf6(0xc8)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x2d2bf6(0xc8)](/^-+/,'')[_0x2d2bf6(0xc8)](/-+$/,'');return _0x2d78da||_0x10d227;}function a200_0x5111(){const _0x5e5f75=['1438103armSqp','3699723UmGago','sql','36513WnroBW','2950cecJhg','db-','683376hgsEWS','trim','mybatisXml','unknown-sql','3850000TBHnAz','.sql','replace','3465704WHUzhV','32785vCMhfN','2FJxIHW','558SUuwIQ'];a200_0x5111=function(){return _0x5e5f75;};return a200_0x5111();}export function buildDbDirectoryName(_0x1a7a57,_0x51036a){const _0x3598b1=a200_0xe3dd;return sanitizeSqlPathSegment(_0x1a7a57,_0x51036a!=null?_0x3598b1(0xd2)+_0x51036a:'unknown-db');}export function buildSqlRelativePath(_0x355629,_0x3d8e57,_0x1e9f4e,_0x4e9915,_0x3858e2){const _0x3840ba=a200_0xe3dd,_0x46f2ef=buildDbDirectoryName(_0x1e9f4e,_0x3858e2),_0x2c07cf=sanitizeSqlPathSegment(_0x355629,_0x3840ba(0xd6)),_0x58eb48=sanitizeSqlPathSegment(_0x3d8e57,_0x2c07cf);return _0x46f2ef+'/'+_0x2c07cf+'_'+_0x58eb48+getSqlFileExtension(_0x4e9915);}
@@ -1 +1 @@
1
- function a201_0x215c(){const _0x1996d9=['match','3010ppZphj','matchAll','add','24QeeXwT','458ImSIJL','UPDATE','1272206tAjiKy','INSERT','from','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','11xguHAk','join','length','4zxOJcA','8JQYrEE','596001toESEg','722iASvOh','type','\x20with\x20parameters:\x20','UNKNOWN','replace','1375857nZmPny','SELECT','trim','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','915432IprbSR','2718yGZCDf','DDL','includes','2490000tKzwwV','startsWith','unknown\x20table(s)','reason','WITH','push','SQL\x20content\x20is\x20empty','toUpperCase','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'];a201_0x215c=function(){return _0x1996d9;};return a201_0x215c();}function a201_0x10fc(_0x473dc2,_0x3b937d){_0x473dc2=_0x473dc2-0x103;const _0x215c44=a201_0x215c();let _0x10fca8=_0x215c44[_0x473dc2];return _0x10fca8;}(function(_0x281fea,_0x2bae83){const _0x3a180d=a201_0x10fc,_0xdc6f86=_0x281fea();while(!![]){try{const _0x5cba9c=parseInt(_0x3a180d(0x116))/0x1*(parseInt(_0x3a180d(0x10a))/0x2)+parseInt(_0x3a180d(0x115))/0x3*(-parseInt(_0x3a180d(0x113))/0x4)+parseInt(_0x3a180d(0x106))/0x5*(parseInt(_0x3a180d(0x121))/0x6)+-parseInt(_0x3a180d(0x120))/0x7*(-parseInt(_0x3a180d(0x114))/0x8)+-parseInt(_0x3a180d(0x11b))/0x9+-parseInt(_0x3a180d(0x124))/0xa*(parseInt(_0x3a180d(0x110))/0xb)+parseInt(_0x3a180d(0x109))/0xc*(parseInt(_0x3a180d(0x10c))/0xd);if(_0x5cba9c===_0x2bae83)break;else _0xdc6f86['push'](_0xdc6f86['shift']());}catch(_0x518b0c){_0xdc6f86['push'](_0xdc6f86['shift']());}}}(a201_0x215c,0x280a4));export function detectSqlType(_0x40b0e6){const _0x4d5a32=a201_0x10fc;if(!_0x40b0e6?.[_0x4d5a32(0x11d)]())return{'type':_0x4d5a32(0x119),'isSelectOnly':![],'isDangerous':![],'reason':_0x4d5a32(0x12a)};const _0xa9e93d=_0x40b0e6[_0x4d5a32(0x11a)](/#\{[^}]*\}/g,'?')[_0x4d5a32(0x11a)](/\$\{[^}]*\}/g,'?')[_0x4d5a32(0x11a)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x4d5a32(0x11d)](),_0x465afd=_0xa9e93d['split']('\x0a');let _0x5e7dd4='';for(const _0x377fc1 of _0x465afd){const _0x181071=_0x377fc1['trim']();if(!_0x181071||_0x181071[_0x4d5a32(0x125)]('--')||_0x181071['startsWith']('/*'))continue;_0x5e7dd4=_0x181071;break;}const _0x1df514=_0x5e7dd4[_0x4d5a32(0x103)]();if(_0x1df514[_0x4d5a32(0x125)](_0x4d5a32(0x11c))||_0x1df514[_0x4d5a32(0x125)](_0x4d5a32(0x128))){const _0x82f82e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0xa9e93d);return{'type':_0x4d5a32(0x11c),'isSelectOnly':!_0x82f82e,'isDangerous':_0x82f82e,'reason':_0x82f82e?_0x4d5a32(0x11f):undefined};}if(_0x1df514[_0x4d5a32(0x125)](_0x4d5a32(0x10d)))return{'type':_0x4d5a32(0x10d),'isSelectOnly':![],'isDangerous':![]};if(_0x1df514[_0x4d5a32(0x125)](_0x4d5a32(0x10b)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x1df514[_0x4d5a32(0x125)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x4d5a32(0x10f)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x1df514))return{'type':_0x4d5a32(0x122),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4d5a32(0x11e)};return{'type':_0x4d5a32(0x119),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x528674){const _0x4d371a=a201_0x10fc,_0x409077=_0x528674[_0x4d371a(0x11a)](/#\{[^}]*\}/g,'?')[_0x4d371a(0x11a)](/\$\{[^}]*\}/g,'?')[_0x4d371a(0x11a)](/'[^']*'/g,'\x27\x27')[_0x4d371a(0x11a)](/--.*$/gm,'')[_0x4d371a(0x11a)](/\/\*[\s\S]*?\*\//g,''),_0x2e32a8=[],_0x32653d=_0x409077[_0x4d371a(0x105)](/FROM\s+([^\s,)(]+)/i);if(_0x32653d?.[0x1])_0x2e32a8['push'](_0x32653d[0x1][_0x4d371a(0x11a)](/[`"]/g,''));for(const _0x578a5c of _0x409077['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x137716=_0x578a5c[0x1]?.[_0x4d371a(0x11a)](/[`"]/g,'');if(_0x137716&&!_0x2e32a8[_0x4d371a(0x123)](_0x137716))_0x2e32a8[_0x4d371a(0x129)](_0x137716);}const _0x440a20=_0x409077[_0x4d371a(0x105)](/INTO\s+([^\s(]+)/i);if(_0x440a20?.[0x1]){const _0x13f08b=_0x440a20[0x1]['replace'](/[`"]/g,'');if(!_0x2e32a8[_0x4d371a(0x123)](_0x13f08b))_0x2e32a8[_0x4d371a(0x129)](_0x13f08b);}const _0x1a84b7=_0x409077[_0x4d371a(0x105)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1a84b7?.[0x1]){const _0x5dc8c8=_0x1a84b7[0x1][_0x4d371a(0x11a)](/[`"]/g,'');if(!_0x2e32a8[_0x4d371a(0x123)](_0x5dc8c8))_0x2e32a8[_0x4d371a(0x129)](_0x5dc8c8);}return _0x2e32a8;}function extractParameters(_0x5bcc06){const _0x2901cf=a201_0x10fc,_0x1364f2=new Set();for(const _0x573404 of _0x5bcc06[_0x2901cf(0x107)](/#\{(\w+)\}/g))if(_0x573404[0x1])_0x1364f2[_0x2901cf(0x108)](_0x573404[0x1]);for(const _0x1df8f9 of _0x5bcc06[_0x2901cf(0x107)](/\$\{(\w+)\}/g))if(_0x1df8f9[0x1])_0x1364f2[_0x2901cf(0x108)](_0x1df8f9[0x1]);return Array[_0x2901cf(0x10e)](_0x1364f2);}export function validateSql(_0x2ff17a){const _0x37d2d0=a201_0x10fc,_0x15d2f3=detectSqlType(_0x2ff17a),_0x2aa5a8=extractTables(_0x2ff17a),_0x153632=extractParameters(_0x2ff17a);if(_0x15d2f3['isDangerous'])return{'valid':![],'sqlType':_0x15d2f3,'tables':_0x2aa5a8,'parameters':_0x153632,'message':_0x15d2f3[_0x37d2d0(0x127)]||_0x15d2f3[_0x37d2d0(0x117)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x15d2f3['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x15d2f3,'tables':_0x2aa5a8,'parameters':_0x153632,'message':_0x37d2d0(0x104)};return{'valid':!![],'sqlType':_0x15d2f3,'tables':_0x2aa5a8,'parameters':_0x153632,'message':_0x15d2f3[_0x37d2d0(0x117)]+'\x20query\x20targeting\x20'+(_0x2aa5a8['length']?_0x2aa5a8[_0x37d2d0(0x111)](',\x20'):_0x37d2d0(0x126))+(_0x153632[_0x37d2d0(0x112)]?_0x37d2d0(0x118)+_0x153632[_0x37d2d0(0x111)](',\x20'):'')};}
1
+ (function(_0x12376d,_0x3982e4){const _0x49c304=a201_0xb12e,_0x1a7dd1=_0x12376d();while(!![]){try{const _0x241d2e=parseInt(_0x49c304(0x16c))/0x1+-parseInt(_0x49c304(0x17d))/0x2+-parseInt(_0x49c304(0x171))/0x3*(-parseInt(_0x49c304(0x183))/0x4)+parseInt(_0x49c304(0x16e))/0x5*(-parseInt(_0x49c304(0x17f))/0x6)+-parseInt(_0x49c304(0x187))/0x7+parseInt(_0x49c304(0x185))/0x8+-parseInt(_0x49c304(0x174))/0x9*(-parseInt(_0x49c304(0x16b))/0xa);if(_0x241d2e===_0x3982e4)break;else _0x1a7dd1['push'](_0x1a7dd1['shift']());}catch(_0x471564){_0x1a7dd1['push'](_0x1a7dd1['shift']());}}}(a201_0x1333,0xb76eb));export function detectSqlType(_0x3928a1){const _0x26154b=a201_0xb12e;if(!_0x3928a1?.[_0x26154b(0x168)]())return{'type':_0x26154b(0x16d),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2ea9e4=_0x3928a1[_0x26154b(0x17a)](/#\{[^}]*\}/g,'?')[_0x26154b(0x17a)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x26154b(0x17a)](/\/\*[\s\S]*?\*\//g,'')[_0x26154b(0x168)](),_0x7d6935=_0x2ea9e4[_0x26154b(0x169)]('\x0a');let _0x1454fe='';for(const _0x1bbfb8 of _0x7d6935){const _0xe9dca5=_0x1bbfb8[_0x26154b(0x168)]();if(!_0xe9dca5||_0xe9dca5[_0x26154b(0x179)]('--')||_0xe9dca5[_0x26154b(0x179)]('/*'))continue;_0x1454fe=_0xe9dca5;break;}const _0x26ce38=_0x1454fe[_0x26154b(0x172)]();if(_0x26ce38[_0x26154b(0x179)](_0x26154b(0x180))||_0x26ce38[_0x26154b(0x179)](_0x26154b(0x167))){const _0x599c35=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x26154b(0x181)](_0x2ea9e4);return{'type':_0x26154b(0x180),'isSelectOnly':!_0x599c35,'isDangerous':_0x599c35,'reason':_0x599c35?_0x26154b(0x182):undefined};}if(_0x26ce38[_0x26154b(0x179)](_0x26154b(0x177)))return{'type':_0x26154b(0x177),'isSelectOnly':![],'isDangerous':![]};if(_0x26ce38[_0x26154b(0x179)](_0x26154b(0x173)))return{'type':_0x26154b(0x173),'isSelectOnly':![],'isDangerous':![]};if(_0x26ce38[_0x26154b(0x179)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x26154b(0x181)](_0x26ce38))return{'type':_0x26154b(0x176),'isSelectOnly':![],'isDangerous':!![],'reason':_0x26154b(0x16f)};return{'type':_0x26154b(0x16d),'isSelectOnly':![],'isDangerous':![]};}function a201_0xb12e(_0x3a9309,_0x461d5c){_0x3a9309=_0x3a9309-0x164;const _0x13333d=a201_0x1333();let _0xb12ef6=_0x13333d[_0x3a9309];return _0xb12ef6;}function extractTables(_0x78f178){const _0x2e9433=a201_0xb12e,_0x117b66=_0x78f178['replace'](/#\{[^}]*\}/g,'?')[_0x2e9433(0x17a)](/\$\{[^}]*\}/g,'?')[_0x2e9433(0x17a)](/'[^']*'/g,'\x27\x27')[_0x2e9433(0x17a)](/--.*$/gm,'')[_0x2e9433(0x17a)](/\/\*[\s\S]*?\*\//g,''),_0x21e219=[],_0x3502d1=_0x117b66[_0x2e9433(0x188)](/FROM\s+([^\s,)(]+)/i);if(_0x3502d1?.[0x1])_0x21e219['push'](_0x3502d1[0x1][_0x2e9433(0x17a)](/[`"]/g,''));for(const _0x3d59bf of _0x117b66[_0x2e9433(0x178)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x20c1bc=_0x3d59bf[0x1]?.[_0x2e9433(0x17a)](/[`"]/g,'');if(_0x20c1bc&&!_0x21e219['includes'](_0x20c1bc))_0x21e219[_0x2e9433(0x175)](_0x20c1bc);}const _0x237e88=_0x117b66[_0x2e9433(0x188)](/INTO\s+([^\s(]+)/i);if(_0x237e88?.[0x1]){const _0x5ed9c2=_0x237e88[0x1][_0x2e9433(0x17a)](/[`"]/g,'');if(!_0x21e219[_0x2e9433(0x189)](_0x5ed9c2))_0x21e219['push'](_0x5ed9c2);}const _0x4f2678=_0x117b66[_0x2e9433(0x188)](/UPDATE\s+([^\s,)(]+)/i);if(_0x4f2678?.[0x1]){const _0x2209b7=_0x4f2678[0x1][_0x2e9433(0x17a)](/[`"]/g,'');if(!_0x21e219[_0x2e9433(0x189)](_0x2209b7))_0x21e219[_0x2e9433(0x175)](_0x2209b7);}return _0x21e219;}function a201_0x1333(){const _0x52daf4=['length','10ZhIuwQ','462931thQSXB','UNKNOWN','2804730JnpECY','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','reason','447pxlhgB','toUpperCase','UPDATE','15340536vXYQBM','push','DDL','INSERT','matchAll','startsWith','replace','\x20query\x20targeting\x20','join','1527724HOmsWI','add','12ATUunw','SELECT','test','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','24984niQRos','\x20with\x20parameters:\x20','5867616bDQxmv','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','8361136idBKiO','match','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','type','from','WITH','trim','split'];a201_0x1333=function(){return _0x52daf4;};return a201_0x1333();}function extractParameters(_0x48938f){const _0x6b25de=a201_0xb12e,_0x81803f=new Set();for(const _0x22186e of _0x48938f[_0x6b25de(0x178)](/#\{(\w+)\}/g))if(_0x22186e[0x1])_0x81803f[_0x6b25de(0x17e)](_0x22186e[0x1]);for(const _0x18cd00 of _0x48938f[_0x6b25de(0x178)](/\$\{(\w+)\}/g))if(_0x18cd00[0x1])_0x81803f['add'](_0x18cd00[0x1]);return Array[_0x6b25de(0x166)](_0x81803f);}export function validateSql(_0xcbb568){const _0x13daab=a201_0xb12e,_0x2ab71f=detectSqlType(_0xcbb568),_0x2d3e49=extractTables(_0xcbb568),_0x20d972=extractParameters(_0xcbb568);if(_0x2ab71f['isDangerous'])return{'valid':![],'sqlType':_0x2ab71f,'tables':_0x2d3e49,'parameters':_0x20d972,'message':_0x2ab71f[_0x13daab(0x170)]||_0x2ab71f[_0x13daab(0x165)]+_0x13daab(0x164)};if(_0x2ab71f['type']===_0x13daab(0x16d))return{'valid':![],'sqlType':_0x2ab71f,'tables':_0x2d3e49,'parameters':_0x20d972,'message':_0x13daab(0x186)};return{'valid':!![],'sqlType':_0x2ab71f,'tables':_0x2d3e49,'parameters':_0x20d972,'message':_0x2ab71f[_0x13daab(0x165)]+_0x13daab(0x17b)+(_0x2d3e49[_0x13daab(0x16a)]?_0x2d3e49[_0x13daab(0x17c)](',\x20'):'unknown\x20table(s)')+(_0x20d972[_0x13daab(0x16a)]?_0x13daab(0x184)+_0x20d972['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a202_0x4cfb61=a202_0x19f8;function a202_0x19f8(_0x5285bf,_0x1b3a67){_0x5285bf=_0x5285bf-0x1c7;const _0x88aaeb=a202_0x88aa();let _0x19f8dc=_0x88aaeb[_0x5285bf];return _0x19f8dc;}(function(_0x4a6de6,_0x58d30b){const _0x47a98d=a202_0x19f8,_0x34330d=_0x4a6de6();while(!![]){try{const _0x45d62b=parseInt(_0x47a98d(0x1d2))/0x1+-parseInt(_0x47a98d(0x1d6))/0x2+-parseInt(_0x47a98d(0x1cf))/0x3*(parseInt(_0x47a98d(0x1d7))/0x4)+parseInt(_0x47a98d(0x1cc))/0x5*(parseInt(_0x47a98d(0x1c7))/0x6)+parseInt(_0x47a98d(0x1c9))/0x7*(parseInt(_0x47a98d(0x1d5))/0x8)+-parseInt(_0x47a98d(0x1d4))/0x9+-parseInt(_0x47a98d(0x1d1))/0xa*(-parseInt(_0x47a98d(0x1ce))/0xb);if(_0x45d62b===_0x58d30b)break;else _0x34330d['push'](_0x34330d['shift']());}catch(_0x22b9cf){_0x34330d['push'](_0x34330d['shift']());}}}(a202_0x88aa,0x384f8));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a202_0x4cfb61(0x1d9)+CLI_BIN_NAME+a202_0x4cfb61(0x1d0),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a202_0x4cfb61(0x1cb),a202_0x4cfb61(0x1d3)+CLI_BIN_NAME+a202_0x4cfb61(0x1ca)][a202_0x4cfb61(0x1d8)](a202_0x4cfb61(0x1c8)),'notInProjectHint':a202_0x4cfb61(0x1cd)});function a202_0x88aa(){const _0x4ca0ab=['3tJgCFR','\x20auth`\x20to\x20login\x20first.','650930AoGSpH','200327AbYiCz','Tip:\x20`','2456856elRoqQ','8qBjAgH','897686ReLfwK','7804VPrikL','join','Run\x20`','66642bIgGSE','\x0a\x20\x20\x20\x20\x20\x20\x20','346129SNSfEt','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','200KfbYFq','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','44HPQPLy'];a202_0x88aa=function(){return _0x4ca0ab;};return a202_0x88aa();}
1
+ function a202_0x1e1e(){const _0xa5deee=['395408XNTmxu','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','10082574GVoZJt','\x20auth`\x20to\x20login\x20first.','Set\x20appcode\x20via\x20`','6038JroBPG','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','71KziQGc','409872beTSGJ','Run\x20`','3185330ktylZi','55VHMSbW','31827dQOspn','14AehNPE','2053176UwiEfA'];a202_0x1e1e=function(){return _0xa5deee;};return a202_0x1e1e();}const a202_0x38b1fe=a202_0x31e7;(function(_0x466308,_0x4b237a){const _0x2f2947=a202_0x31e7,_0x592f78=_0x466308();while(!![]){try{const _0xe237dc=-parseInt(_0x2f2947(0x69))/0x1*(parseInt(_0x2f2947(0x67))/0x2)+parseInt(_0x2f2947(0x6e))/0x3+-parseInt(_0x2f2947(0x71))/0x4*(-parseInt(_0x2f2947(0x6d))/0x5)+-parseInt(_0x2f2947(0x70))/0x6*(-parseInt(_0x2f2947(0x6f))/0x7)+-parseInt(_0x2f2947(0x6a))/0x8+-parseInt(_0x2f2947(0x74))/0x9+parseInt(_0x2f2947(0x6c))/0xa;if(_0xe237dc===_0x4b237a)break;else _0x592f78['push'](_0x592f78['shift']());}catch(_0x57ca08){_0x592f78['push'](_0x592f78['shift']());}}}(a202_0x1e1e,0xae91d));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a202_0x31e7(_0x4f86c5,_0x93692b){_0x4f86c5=_0x4f86c5-0x66;const _0x1e1eac=a202_0x1e1e();let _0x31e7a1=_0x1e1eac[_0x4f86c5];return _0x31e7a1;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a202_0x38b1fe(0x6b)+CLI_BIN_NAME+a202_0x38b1fe(0x75),'configMissingHint':[a202_0x38b1fe(0x66)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Tip:\x20`'+CLI_BIN_NAME+a202_0x38b1fe(0x73)][a202_0x38b1fe(0x72)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a202_0x38b1fe(0x68)});
@@ -1 +1 @@
1
- function a203_0x5cbd(_0x546728,_0x3b3e9e){_0x546728=_0x546728-0x6a;var _0x27ec28=a203_0x27ec();var _0x5cbd68=_0x27ec28[_0x546728];return _0x5cbd68;}(function(_0xdb6d78,_0x58bec5){var _0x4a6e2e=a203_0x5cbd,_0x31b341=_0xdb6d78();while(!![]){try{var _0x30a084=parseInt(_0x4a6e2e(0x71))/0x1+-parseInt(_0x4a6e2e(0x6e))/0x2+-parseInt(_0x4a6e2e(0x72))/0x3+parseInt(_0x4a6e2e(0x6f))/0x4*(parseInt(_0x4a6e2e(0x6d))/0x5)+parseInt(_0x4a6e2e(0x6b))/0x6+parseInt(_0x4a6e2e(0x6c))/0x7+-parseInt(_0x4a6e2e(0x70))/0x8*(parseInt(_0x4a6e2e(0x6a))/0x9);if(_0x30a084===_0x58bec5)break;else _0x31b341['push'](_0x31b341['shift']());}catch(_0x4f0b72){_0x31b341['push'](_0x31b341['shift']());}}}(a203_0x27ec,0x9b332));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a203_0x27ec(){var _0x3a86ca=['8YayEfK','18354912TADYNK','1270705PFwfTT','743187ZjtdIQ','9ferpqN','7269006STWrex','2451085fRHxFR','2530660kRGfIo','1333668wylQYP'];a203_0x27ec=function(){return _0x3a86ca;};return a203_0x27ec();}import{buildAllFlags as a203_0x14e97c}from'@lovrabet/cli-framework';export function buildAllFlags(_0x455318){return a203_0x14e97c(_0x455318,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x2f548c,_0x25eeaa){var _0x2253bb=a203_0x27d4,_0x285a25=_0x2f548c();while(!![]){try{var _0x36df42=parseInt(_0x2253bb(0xc2))/0x1+-parseInt(_0x2253bb(0xc5))/0x2+-parseInt(_0x2253bb(0xc1))/0x3+-parseInt(_0x2253bb(0xc6))/0x4*(parseInt(_0x2253bb(0xc9))/0x5)+-parseInt(_0x2253bb(0xc7))/0x6*(parseInt(_0x2253bb(0xc4))/0x7)+parseInt(_0x2253bb(0xc3))/0x8+parseInt(_0x2253bb(0xc8))/0x9;if(_0x36df42===_0x25eeaa)break;else _0x285a25['push'](_0x285a25['shift']());}catch(_0x29186a){_0x285a25['push'](_0x285a25['shift']());}}}(a203_0x351b,0x9077f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a203_0x3e1e5a}from'@lovrabet/cli-framework';function a203_0x27d4(_0x43cc95,_0x5156cf){_0x43cc95=_0x43cc95-0xc1;var _0x351bf6=a203_0x351b();var _0x27d43a=_0x351bf6[_0x43cc95];return _0x27d43a;}export function buildAllFlags(_0xed8090){return a203_0x3e1e5a(_0xed8090,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a203_0x351b(){var _0x2a7565=['4663672mMceLB','4844vTbaSM','1565358kOqFyt','839668fXySuc','7848uCovsa','14409945hWRDcb','25zeyflo','38919qHeiqy','1158052heeYps'];a203_0x351b=function(){return _0x2a7565;};return a203_0x351b();}
@@ -1 +1 @@
1
- (function(_0x258137,_0x5864f7){const _0x3e487a=a204_0x5669,_0x341247=_0x258137();while(!![]){try{const _0x3d21c1=-parseInt(_0x3e487a(0x144))/0x1+-parseInt(_0x3e487a(0x142))/0x2+-parseInt(_0x3e487a(0x146))/0x3*(parseInt(_0x3e487a(0x147))/0x4)+parseInt(_0x3e487a(0x149))/0x5*(parseInt(_0x3e487a(0x145))/0x6)+-parseInt(_0x3e487a(0x14b))/0x7*(-parseInt(_0x3e487a(0x14a))/0x8)+-parseInt(_0x3e487a(0x148))/0x9+parseInt(_0x3e487a(0x143))/0xa;if(_0x3d21c1===_0x5864f7)break;else _0x341247['push'](_0x341247['shift']());}catch(_0x41795b){_0x341247['push'](_0x341247['shift']());}}}(a204_0x2228,0x57d11));function a204_0x5669(_0x2c92ca,_0x204c6b){_0x2c92ca=_0x2c92ca-0x142;const _0x2228af=a204_0x2228();let _0x5669af=_0x2228af[_0x2c92ca];return _0x5669af;}import{createFlagHelpers}from'@lovrabet/cli-framework';function a204_0x2228(){const _0x14693b=['19605QBhOPX','348NhRdQF','2080341nHtjro','1240505EFQwEn','272akuVqi','33873jBQlNa','947280bkzery','19121190nuyfeW','691715AYcarL','6vFBQoX'];a204_0x2228=function(){return _0x14693b;};return a204_0x2228();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers['validateFlags'];
1
+ const a204_0x307b0b=a204_0x2873;(function(_0x441f8e,_0x35fbc2){const _0x56b60c=a204_0x2873,_0x4e22e7=_0x441f8e();while(!![]){try{const _0x5ba236=parseInt(_0x56b60c(0x86))/0x1+-parseInt(_0x56b60c(0x7e))/0x2+-parseInt(_0x56b60c(0x81))/0x3*(parseInt(_0x56b60c(0x7f))/0x4)+-parseInt(_0x56b60c(0x82))/0x5*(parseInt(_0x56b60c(0x8a))/0x6)+parseInt(_0x56b60c(0x89))/0x7*(parseInt(_0x56b60c(0x87))/0x8)+-parseInt(_0x56b60c(0x85))/0x9+parseInt(_0x56b60c(0x84))/0xa*(parseInt(_0x56b60c(0x80))/0xb);if(_0x5ba236===_0x35fbc2)break;else _0x4e22e7['push'](_0x4e22e7['shift']());}catch(_0x398f43){_0x4e22e7['push'](_0x4e22e7['shift']());}}}(a204_0x2f41,0x2e3a6));function a204_0x2873(_0x3b482a,_0x25862f){_0x3b482a=_0x3b482a-0x7e;const _0x2f415e=a204_0x2f41();let _0x287340=_0x2f415e[_0x3b482a];return _0x287340;}import{createFlagHelpers}from'@lovrabet/cli-framework';function a204_0x2f41(){const _0xdd547d=['5MlTclF','parseFlags','3199780fsMTpe','115470cWVWro','358777szoEvw','160WDXNfC','validateFlags','56490dehdGU','1565916aqwLca','240264PxLHEN','342476WSQrEe','11iNvYvC','9YALRoZ'];a204_0x2f41=function(){return _0xdd547d;};return a204_0x2f41();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a204_0x307b0b(0x83)];export const validateFlags=helpers[a204_0x307b0b(0x88)];
@@ -1 +1 @@
1
- const a205_0x3f3890=a205_0x40bc;(function(_0x3efc12,_0xf900fa){const _0x2aac30=a205_0x40bc,_0xec9a0f=_0x3efc12();while(!![]){try{const _0xf0c96e=-parseInt(_0x2aac30(0x9e))/0x1*(-parseInt(_0x2aac30(0x93))/0x2)+-parseInt(_0x2aac30(0x9d))/0x3+parseInt(_0x2aac30(0x96))/0x4*(parseInt(_0x2aac30(0x92))/0x5)+parseInt(_0x2aac30(0x97))/0x6*(-parseInt(_0x2aac30(0x9a))/0x7)+-parseInt(_0x2aac30(0x9b))/0x8+parseInt(_0x2aac30(0x9c))/0x9+-parseInt(_0x2aac30(0x9f))/0xa;if(_0xf0c96e===_0xf900fa)break;else _0xec9a0f['push'](_0xec9a0f['shift']());}catch(_0x5a4040){_0xec9a0f['push'](_0xec9a0f['shift']());}}}(a205_0xa75b,0xc5a35));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a205_0xa75b(){const _0x3146fd=['2ougkLQ','generateCommandHelp','get','98720BkehWE','12hbnMNY','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','1556303OnoHWZ','2016536bZPLdQ','8729946WmJrrp','1819878RaOnnb','1510255kNRWSG','3920530QFyCbr','generateServiceHelp','5hfBdOk'];a205_0xa75b=function(){return _0x3146fd;};return a205_0xa75b();}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':_0xd02b0b=>serviceGroups[a205_0x3f3890(0x95)](_0xd02b0b),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a205_0x3f3890(0x98)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x552ba7){const _0x3d0498=a205_0x3f3890;return generators[_0x3d0498(0x94)](_0x552ba7);}function a205_0x40bc(_0x5e372b,_0x233831){_0x5e372b=_0x5e372b-0x92;const _0xa75bb3=a205_0xa75b();let _0x40bc71=_0xa75bb3[_0x5e372b];return _0x40bc71;}export const generateServiceHelp=generators[a205_0x3f3890(0xa0)];export const generateFullHelp=generators[a205_0x3f3890(0x99)];
1
+ const a205_0x1e3df3=a205_0x5677;(function(_0x57ad82,_0x18da98){const _0xd725c4=a205_0x5677,_0x3e7fc1=_0x57ad82();while(!![]){try{const _0xcbb470=-parseInt(_0xd725c4(0x122))/0x1*(-parseInt(_0xd725c4(0x124))/0x2)+-parseInt(_0xd725c4(0x11d))/0x3*(-parseInt(_0xd725c4(0x127))/0x4)+-parseInt(_0xd725c4(0x129))/0x5+-parseInt(_0xd725c4(0x12b))/0x6+-parseInt(_0xd725c4(0x125))/0x7*(parseInt(_0xd725c4(0x12c))/0x8)+-parseInt(_0xd725c4(0x12a))/0x9*(-parseInt(_0xd725c4(0x121))/0xa)+parseInt(_0xd725c4(0x11f))/0xb;if(_0xcbb470===_0x18da98)break;else _0x3e7fc1['push'](_0x3e7fc1['shift']());}catch(_0x24c6e4){_0x3e7fc1['push'](_0x3e7fc1['shift']());}}}(a205_0x2317,0x6e8f0));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':_0x564dce=>serviceGroups[a205_0x1e3df3(0x12d)](_0x564dce),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a205_0x1e3df3(0x123),'serviceUsageSuffix':a205_0x1e3df3(0x128)});function a205_0x5677(_0x5c35b0,_0xb07616){_0x5c35b0=_0x5c35b0-0x11d;const _0x2317a3=a205_0x2317();let _0x56779a=_0x2317a3[_0x5c35b0];return _0x56779a;}export function generateCommandHelp(_0x3f0e20){const _0x39a549=a205_0x1e3df3;return generators[_0x39a549(0x120)](_0x3f0e20);}export const generateServiceHelp=generators[a205_0x1e3df3(0x126)];function a205_0x2317(){const _0x131888=['77URuwqr','generateServiceHelp','196qLpHlK','\x20[args]\x20[flags]','3274835OsTlzN','40527bGNqqz','253272kxsWUh','575056OoQOmG','get','37803LlOBcZ','generateFullHelp','563321WJasix','generateCommandHelp','1500AQhWxP','9XPQDvb','\x20workspace\x20init`\x20or\x20--appcode).','132582FnLObM'];a205_0x2317=function(){return _0x131888;};return a205_0x2317();}export const generateFullHelp=generators[a205_0x1e3df3(0x11e)];
@@ -1 +1 @@
1
- (function(_0x2b6182,_0x542c8b){var _0x4e2ee3=a206_0x2ed0,_0x4fc13d=_0x2b6182();while(!![]){try{var _0xd31710=parseInt(_0x4e2ee3(0x1c6))/0x1*(parseInt(_0x4e2ee3(0x1c7))/0x2)+-parseInt(_0x4e2ee3(0x1bf))/0x3+-parseInt(_0x4e2ee3(0x1be))/0x4*(-parseInt(_0x4e2ee3(0x1c5))/0x5)+parseInt(_0x4e2ee3(0x1c4))/0x6+parseInt(_0x4e2ee3(0x1c2))/0x7+-parseInt(_0x4e2ee3(0x1c3))/0x8*(parseInt(_0x4e2ee3(0x1c0))/0x9)+-parseInt(_0x4e2ee3(0x1c1))/0xa;if(_0xd31710===_0x542c8b)break;else _0x4fc13d['push'](_0x4fc13d['shift']());}catch(_0x11cdf6){_0x4fc13d['push'](_0x4fc13d['shift']());}}}(a206_0xa1b4,0xeee76));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';export{extractList,extractPaging}from'../framework/response.js';function a206_0x2ed0(_0x1435d5,_0x4dab39){_0x1435d5=_0x1435d5-0x1be;var _0xa1b4f4=a206_0xa1b4();var _0x2ed022=_0xa1b4f4[_0x1435d5];return _0x2ed022;}export{riskLevelOrder}from'../framework/types.js';function a206_0xa1b4(){var _0x13b87f=['2816812tOCrYG','5614772jRvAMp','5089644dgeYsy','20799htJRjM','19543420WtDsQi','4206671XOZBAh','1544KbCpfo','9974466pXbtmd','5uglWvH','1xyOmCY'];a206_0xa1b4=function(){return _0x13b87f;};return a206_0xa1b4();}
1
+ (function(_0x4c694f,_0xde817d){var _0x4a95b9=a206_0x5777,_0x5807fb=_0x4c694f();while(!![]){try{var _0x52343a=-parseInt(_0x4a95b9(0x1e8))/0x1+-parseInt(_0x4a95b9(0x1ea))/0x2+-parseInt(_0x4a95b9(0x1e7))/0x3+parseInt(_0x4a95b9(0x1e3))/0x4*(-parseInt(_0x4a95b9(0x1e6))/0x5)+parseInt(_0x4a95b9(0x1e5))/0x6*(-parseInt(_0x4a95b9(0x1eb))/0x7)+-parseInt(_0x4a95b9(0x1ec))/0x8*(-parseInt(_0x4a95b9(0x1e4))/0x9)+parseInt(_0x4a95b9(0x1e9))/0xa;if(_0x52343a===_0xde817d)break;else _0x5807fb['push'](_0x5807fb['shift']());}catch(_0x15050c){_0x5807fb['push'](_0x5807fb['shift']());}}}(a206_0x544a,0xaccef));export{runCommand}from'../framework/runner.js';function a206_0x544a(){var _0x234ab8=['26433320vvABzq','1568348SahpOr','287QDSlCw','24onWqBh','48RkLlBJ','969633WtTJhU','167202PXZggb','43375KigiGO','511065VLUIaL','57544KIiMwD'];a206_0x544a=function(){return _0x234ab8;};return a206_0x544a();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a206_0x5777(_0x163bd2,_0x3ae7cc){_0x163bd2=_0x163bd2-0x1e3;var _0x544a6c=a206_0x544a();var _0x577770=_0x544a6c[_0x163bd2];return _0x577770;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x25c75a,_0x4a0303){const _0x1829ba=a207_0x59a2,_0x343e3d=_0x25c75a();while(!![]){try{const _0x3d5cb2=parseInt(_0x1829ba(0x1cb))/0x1*(-parseInt(_0x1829ba(0x1c1))/0x2)+-parseInt(_0x1829ba(0x1c7))/0x3*(-parseInt(_0x1829ba(0x1c4))/0x4)+-parseInt(_0x1829ba(0x1c8))/0x5+-parseInt(_0x1829ba(0x1ca))/0x6*(-parseInt(_0x1829ba(0x1c0))/0x7)+-parseInt(_0x1829ba(0x1bf))/0x8+parseInt(_0x1829ba(0x1c9))/0x9*(parseInt(_0x1829ba(0x1c6))/0xa)+parseInt(_0x1829ba(0x1be))/0xb;if(_0x3d5cb2===_0x4a0303)break;else _0x343e3d['push'](_0x343e3d['shift']());}catch(_0x5218f2){_0x343e3d['push'](_0x343e3d['shift']());}}}(a207_0x4f60,0x2d458));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a207_0x59a2(_0x41353a,_0x83fc8e){_0x41353a=_0x41353a-0x1bc;const _0x4f6068=a207_0x4f60();let _0x59a2a3=_0x4f6068[_0x41353a];return _0x59a2a3;}function a207_0x4f60(){const _0x595e9d=['10VCQXdc','976029CimMJh','196845vRrAjk','3220659fLxOLg','3426hUMHpY','321844VyEVlF','message','update','url','222508pcgGAr','1395824HiLbCS','217GoQSXe','2NcszrD','_notice','error','4nsADds','pretty'];a207_0x4f60=function(){return _0x595e9d;};return a207_0x4f60();}export function formatOutput(_0x20b190,_0xb472c6){const _0x216f5d=a207_0x59a2,_0x571032=_0x20b190[_0x216f5d(0x1c2)],{_notice:_0x5a4ebf,..._0x57a85b}=_0x20b190;void _0x5a4ebf,baseFormatOutput(_0x57a85b,_0xb472c6),_0xb472c6['format']===_0x216f5d(0x1c5)&&printPrettyNotice(_0x571032);}function printPrettyNotice(_0x3734c1){const _0x9b9cc0=a207_0x59a2;if(!_0x3734c1?.[_0x9b9cc0(0x1bc)])return;console[_0x9b9cc0(0x1c3)](_0x3734c1[_0x9b9cc0(0x1bc)][_0x9b9cc0(0x1cc)]+'\x20('+_0x3734c1[_0x9b9cc0(0x1bc)][_0x9b9cc0(0x1bd)]+')');}
1
+ (function(_0x365828,_0x1f30a5){const _0x34fe9c=a207_0xadcf,_0x2972ae=_0x365828();while(!![]){try{const _0x19806e=parseInt(_0x34fe9c(0x13e))/0x1*(parseInt(_0x34fe9c(0x13a))/0x2)+parseInt(_0x34fe9c(0x142))/0x3+-parseInt(_0x34fe9c(0x139))/0x4*(-parseInt(_0x34fe9c(0x141))/0x5)+parseInt(_0x34fe9c(0x135))/0x6*(parseInt(_0x34fe9c(0x13b))/0x7)+parseInt(_0x34fe9c(0x134))/0x8+parseInt(_0x34fe9c(0x140))/0x9+-parseInt(_0x34fe9c(0x13c))/0xa;if(_0x19806e===_0x1f30a5)break;else _0x2972ae['push'](_0x2972ae['shift']());}catch(_0x404c4e){_0x2972ae['push'](_0x2972ae['shift']());}}}(a207_0x4e7c,0xbd50f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a207_0xadcf(_0x595880,_0x2205cf){_0x595880=_0x595880-0x134;const _0x4e7cc6=a207_0x4e7c();let _0xadcf4f=_0x4e7cc6[_0x595880];return _0xadcf4f;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a207_0x4e7c(){const _0x15dd5f=['654490GCDtCi','2115987BMfIng','_notice','10181264VWsVhd','917034ChXjFB','url','error','update','44dwdleh','42JeoZov','35akliPw','49665510uiRMQQ','pretty','69313mAMrtx','format','939213XbbJMO'];a207_0x4e7c=function(){return _0x15dd5f;};return a207_0x4e7c();}export function formatOutput(_0x413eeb,_0x46f1c1){const _0x5a961a=a207_0xadcf,_0x2a2efd=_0x413eeb[_0x5a961a(0x143)],{_notice:_0x425816,..._0x3eeab9}=_0x413eeb;void _0x425816,baseFormatOutput(_0x3eeab9,_0x46f1c1),_0x46f1c1[_0x5a961a(0x13f)]===_0x5a961a(0x13d)&&printPrettyNotice(_0x2a2efd);}function printPrettyNotice(_0x1cc87e){const _0x4e65f7=a207_0xadcf;if(!_0x1cc87e?.['update'])return;console[_0x4e65f7(0x137)](_0x1cc87e[_0x4e65f7(0x138)]['message']+'\x20('+_0x1cc87e[_0x4e65f7(0x138)][_0x4e65f7(0x136)]+')');}
@@ -1 +1 @@
1
- (function(_0x18e823,_0x331560){var _0x48795f=a208_0x16ed,_0x1d7a59=_0x18e823();while(!![]){try{var _0x49358d=parseInt(_0x48795f(0x1e2))/0x1*(-parseInt(_0x48795f(0x1e9))/0x2)+-parseInt(_0x48795f(0x1e1))/0x3+parseInt(_0x48795f(0x1e3))/0x4+parseInt(_0x48795f(0x1ea))/0x5+parseInt(_0x48795f(0x1e7))/0x6*(-parseInt(_0x48795f(0x1e5))/0x7)+-parseInt(_0x48795f(0x1e4))/0x8*(-parseInt(_0x48795f(0x1e6))/0x9)+parseInt(_0x48795f(0x1e8))/0xa;if(_0x49358d===_0x331560)break;else _0x1d7a59['push'](_0x1d7a59['shift']());}catch(_0x33957f){_0x1d7a59['push'](_0x1d7a59['shift']());}}}(a208_0xed2f,0xddde5));function a208_0x16ed(_0x268b5c,_0x5e7c96){_0x268b5c=_0x268b5c-0x1e1;var _0xed2f7=a208_0xed2f();var _0x16edc3=_0xed2f7[_0x268b5c];return _0x16edc3;}function a208_0xed2f(){var _0x41078e=['1842992ICUwCh','993464hnaZrL','7FLSIjT','117HrlyND','9829818CcUeMO','3864760SzmEls','557432qQClnu','4098330HSUmbX','1366431ZYGNkz','1GtnYOj'];a208_0xed2f=function(){return _0x41078e;};return a208_0xed2f();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x177112,_0x5ddd7c){var _0x5416cf=a208_0x5231,_0x17c83f=_0x177112();while(!![]){try{var _0x4d4f97=parseInt(_0x5416cf(0x6a))/0x1+-parseInt(_0x5416cf(0x6e))/0x2*(-parseInt(_0x5416cf(0x6b))/0x3)+parseInt(_0x5416cf(0x75))/0x4*(-parseInt(_0x5416cf(0x73))/0x5)+parseInt(_0x5416cf(0x72))/0x6*(parseInt(_0x5416cf(0x6d))/0x7)+-parseInt(_0x5416cf(0x71))/0x8*(-parseInt(_0x5416cf(0x74))/0x9)+-parseInt(_0x5416cf(0x6c))/0xa+parseInt(_0x5416cf(0x70))/0xb*(-parseInt(_0x5416cf(0x6f))/0xc);if(_0x4d4f97===_0x5ddd7c)break;else _0x17c83f['push'](_0x17c83f['shift']());}catch(_0x1c46ff){_0x17c83f['push'](_0x17c83f['shift']());}}}(a208_0x49c3,0xaf1b0));function a208_0x49c3(){var _0x1691ee=['7317018nxXDxW','1541032XzPIpe','1421540CDecIQ','224583zRNEro','3407640YCRsdz','1136541PiNQkr','10roIHWw','1408284bDKPLQ','231aESGmw','8ehmorw','48BGhEvx','5DQfLzN'];a208_0x49c3=function(){return _0x1691ee;};return a208_0x49c3();}function a208_0x5231(_0x1c91ec,_0x233efe){_0x1c91ec=_0x1c91ec-0x6a;var _0x49c3d8=a208_0x49c3();var _0x52310b=_0x49c3d8[_0x1c91ec];return _0x52310b;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x59b4c5,_0x1634cf){const _0x4f3e35=a209_0x4574,_0x1930d9=_0x59b4c5();while(!![]){try{const _0x12577c=-parseInt(_0x4f3e35(0x100))/0x1+-parseInt(_0x4f3e35(0x109))/0x2*(parseInt(_0x4f3e35(0x114))/0x3)+-parseInt(_0x4f3e35(0x119))/0x4*(parseInt(_0x4f3e35(0x10d))/0x5)+-parseInt(_0x4f3e35(0x106))/0x6*(parseInt(_0x4f3e35(0x111))/0x7)+-parseInt(_0x4f3e35(0x110))/0x8*(-parseInt(_0x4f3e35(0x10e))/0x9)+parseInt(_0x4f3e35(0x113))/0xa+parseInt(_0x4f3e35(0xff))/0xb;if(_0x12577c===_0x1634cf)break;else _0x1930d9['push'](_0x1930d9['shift']());}catch(_0x52b4b8){_0x1930d9['push'](_0x1930d9['shift']());}}}(a209_0x27bf,0xdf8a4));function a209_0x4574(_0x19d553,_0x3beb3b){_0x19d553=_0x19d553-0xff;const _0x27bf8e=a209_0x27bf();let _0x45740=_0x27bf8e[_0x19d553];return _0x45740;}function a209_0x27bf(){const _0x9c6341=['join','\x22.\x20','.\x20Run\x20`','map','164908xhuEaX','27078832LusPtB','1709005LiqAyU','Unknown\x20alias\x20\x22','some','string','Available\x20aliases:\x20','alias','72UBkwoM','name','length','59478vQwrQy','validation','code','type','10NXxCTa','1160559seJLSY','No\x20api.ts\x20found\x20in\x20','56MJXMNQ','206983mqgpUv','flags','544060JJNYmd','36ANNLHo'];a209_0x27bf=function(){return _0x9c6341;};return a209_0x27bf();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x85fb42,_0x349e0d,_0x4374af,_0x3c8ac6){const _0x29060d=a209_0x4574,_0x1b534c=_0x85fb42[_0x29060d(0x112)][_0x29060d(0x102)](_0x1fc4a9=>_0x1fc4a9[_0x29060d(0x107)]===_0x29060d(0x10b)&&_0x1fc4a9[_0x29060d(0x10c)]===_0x29060d(0x103)),_0x509b30=_0x85fb42[_0x29060d(0x112)][_0x29060d(0x102)](_0x2d10c3=>_0x2d10c3[_0x29060d(0x107)]===_0x29060d(0x105)&&_0x2d10c3[_0x29060d(0x10c)]==='string');if(!_0x1b534c||!_0x509b30)return;const _0x568193=_0x349e0d['code']?String(_0x349e0d['code']):'',_0x2e34ab=_0x349e0d[_0x29060d(0x105)]?String(_0x349e0d[_0x29060d(0x105)]):'';if(!_0x568193&&!_0x2e34ab)throw CliErrors[_0x29060d(0x10a)]('`'+_0x3c8ac6+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x2e34ab&&!_0x568193){const _0x38495a=resolveAlias(_0x4374af,_0x2e34ab);if(!_0x38495a){const _0x1f06ce=listAliases(_0x4374af)[_0x29060d(0x118)](_0x543559=>_0x543559[_0x29060d(0x105)]),_0x48654c=_0x1f06ce[_0x29060d(0x108)]?_0x29060d(0x104)+_0x1f06ce[_0x29060d(0x115)](',\x20'):_0x29060d(0x10f)+_0x4374af+_0x29060d(0x117)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x29060d(0x101)+_0x2e34ab+_0x29060d(0x116)+_0x48654c);}_0x349e0d[_0x29060d(0x10b)]=_0x38495a;}}
1
+ function a209_0x5630(_0x5ed94b,_0x3226c5){_0x5ed94b=_0x5ed94b-0xbb;const _0x271e21=a209_0x271e();let _0x5630e1=_0x271e21[_0x5ed94b];return _0x5630e1;}(function(_0x1df281,_0x1aac4d){const _0x5bfc6a=a209_0x5630,_0x11cfe9=_0x1df281();while(!![]){try{const _0x3cecd3=parseInt(_0x5bfc6a(0xc4))/0x1+parseInt(_0x5bfc6a(0xc8))/0x2*(parseInt(_0x5bfc6a(0xbc))/0x3)+-parseInt(_0x5bfc6a(0xcc))/0x4*(-parseInt(_0x5bfc6a(0xcf))/0x5)+-parseInt(_0x5bfc6a(0xcb))/0x6+-parseInt(_0x5bfc6a(0xcd))/0x7+-parseInt(_0x5bfc6a(0xc1))/0x8+parseInt(_0x5bfc6a(0xc0))/0x9;if(_0x3cecd3===_0x1aac4d)break;else _0x11cfe9['push'](_0x11cfe9['shift']());}catch(_0x196ee9){_0x11cfe9['push'](_0x11cfe9['shift']());}}}(a209_0x271e,0xebabf));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a209_0x271e(){const _0x861e5c=['code','192201RBcLHy','validation','type','\x22.\x20','4122036RMHraY','2946368nnwqqv','flags','map','746200AImOLI','No\x20api.ts\x20found\x20in\x20','Unknown\x20alias\x20\x22','some','38NsTqST','alias','name','4160124YoCVMN','4YZwmuG','13235285mWldgw','string','7481195eNTlCh','.\x20Run\x20`','join'];a209_0x271e=function(){return _0x861e5c;};return a209_0x271e();}export function resolveAliasToCode(_0x1b3c13,_0x6df87c,_0x55df86,_0x364ece){const _0x213a26=a209_0x5630,_0x395490=_0x1b3c13[_0x213a26(0xc2)][_0x213a26(0xc7)](_0x5d3446=>_0x5d3446[_0x213a26(0xca)]===_0x213a26(0xbb)&&_0x5d3446[_0x213a26(0xbe)]===_0x213a26(0xce)),_0x4f05c3=_0x1b3c13[_0x213a26(0xc2)]['some'](_0xecfb56=>_0xecfb56[_0x213a26(0xca)]===_0x213a26(0xc9)&&_0xecfb56[_0x213a26(0xbe)]==='string');if(!_0x395490||!_0x4f05c3)return;const _0xb2a5e3=_0x6df87c[_0x213a26(0xbb)]?String(_0x6df87c[_0x213a26(0xbb)]):'',_0x4cc781=_0x6df87c['alias']?String(_0x6df87c[_0x213a26(0xc9)]):'';if(!_0xb2a5e3&&!_0x4cc781)throw CliErrors['validation']('`'+_0x364ece+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x4cc781&&!_0xb2a5e3){const _0x145d8c=resolveAlias(_0x55df86,_0x4cc781);if(!_0x145d8c){const _0x1c352a=listAliases(_0x55df86)[_0x213a26(0xc3)](_0x2db166=>_0x2db166[_0x213a26(0xc9)]),_0x59200f=_0x1c352a['length']?'Available\x20aliases:\x20'+_0x1c352a[_0x213a26(0xd1)](',\x20'):_0x213a26(0xc5)+_0x55df86+_0x213a26(0xd0)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x213a26(0xbd)](_0x213a26(0xc6)+_0x4cc781+_0x213a26(0xbf)+_0x59200f);}_0x6df87c[_0x213a26(0xbb)]=_0x145d8c;}}
@@ -1 +1 @@
1
- const a210_0x2e0fb6=a210_0x10ef;(function(_0x34071e,_0x41ce85){const _0x266d83=a210_0x10ef,_0x50b21a=_0x34071e();while(!![]){try{const _0x5397dd=-parseInt(_0x266d83(0x173))/0x1*(-parseInt(_0x266d83(0x152))/0x2)+parseInt(_0x266d83(0x166))/0x3+parseInt(_0x266d83(0x150))/0x4*(parseInt(_0x266d83(0x16d))/0x5)+parseInt(_0x266d83(0x175))/0x6+-parseInt(_0x266d83(0x161))/0x7+parseInt(_0x266d83(0x155))/0x8+parseInt(_0x266d83(0x187))/0x9*(-parseInt(_0x266d83(0x15c))/0xa);if(_0x5397dd===_0x41ce85)break;else _0x50b21a['push'](_0x50b21a['shift']());}catch(_0x19e636){_0x50b21a['push'](_0x50b21a['shift']());}}}(a210_0x2453,0x3d733));import{resolveCommandAuthMode,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 a210_0x52a5a1}from'../utils/is-non-interactive.js';function a210_0x2453(){const _0xad79d6=['pretty','format','object','644454EnkkmG','has','trim','apps','configMissing','defaultVerbose','apiDir','1298090JZIwwY','filter','hasFormat','explicitAppName','verbose','command','1pteoCu','rawFlags','805890utKLBe','defaultPageSize','validation','selectedAppName','service','resolveApiDomain','execute','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','cancelled','name','appCode','_notice','schema','none','⚠\x20\x20High-risk\x20operation:\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','required','pageSize','81wgwXzF','\x20\x20\x20Continue?\x20[y/N]\x20','string','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','4hrkeQd','value','664854lFKqjQ','nonInteractive','riskLevel','88448uMzjiP','Current\x20resolved\x20appcode\x20is\x20\x22','map','RABETBASE_APPCODE','requiresAppCode','cookie','catch','759830vsPdjh','resolveCookie','LOVRABET_APPCODE','isNonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','116816Zfcppi','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'];a210_0x2453=function(){return _0xad79d6;};return a210_0x2453();}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a210_0x10ef(_0x1859bf,_0x10b1b6){_0x1859bf=_0x1859bf-0x14e;const _0x245358=a210_0x2453();let _0x10ef9b=_0x245358[_0x1859bf];return _0x10ef9b;}function stringFlag(_0x39f57b){const _0x1959c4=a210_0x10ef;return typeof _0x39f57b===_0x1959c4(0x14e)&&_0x39f57b['trim']()?_0x39f57b[_0x1959c4(0x168)]():undefined;}function resolveEnvAppCode(){const _0x324549=a210_0x10ef,_0xb150fd=stringFlag(process.env.RABETBASE_APPCODE);if(_0xb150fd)return{'name':_0x324549(0x158),'value':_0xb150fd};const _0x215c61=stringFlag(process.env.LOVRABET_APPCODE);if(_0x215c61)return{'name':_0x324549(0x15e),'value':_0x215c61};return undefined;}function hasExplicitAppCode(_0x5def0a,_0x378ab7){return!!(stringFlag(_0x5def0a['appcode'])||stringFlag(_0x378ab7['appcode']));}function assertEnvAppCodeNotIgnored(_0x4c8112,_0x3d8304,_0x32a5a4){const _0x2c8425=a210_0x10ef;if(!_0x3d8304||_0x32a5a4||_0x4c8112===_0x3d8304[_0x2c8425(0x151)])return;const _0x3f60fe=_0x4c8112?_0x2c8425(0x156)+_0x4c8112+'\x22.':_0x2c8425(0x14f);throw CliErrors['validation'](_0x3d8304['name']+'='+_0x3d8304[_0x2c8425(0x151)]+_0x2c8425(0x162)+_0x3f60fe+'\x20'+(_0x2c8425(0x17c)+_0x3d8304[_0x2c8425(0x17e)]+'\x22.'));}export function createPipelineEnv(_0x533d57,_0x40d5ea,_0x44834c=[]){const _0x10e9d2=a210_0x10ef;return{'rawFlags':_0x40d5ea,'args':_0x44834c,'resolveAppCode':()=>_0x533d57[_0x10e9d2(0x17f)],'resolveCookie':()=>_0x533d57[_0x10e9d2(0x15a)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a210_0x52a5a1(_0x40d5ea),'defaultFormat':_0x533d57[_0x10e9d2(0x164)],'defaultPageSize':_0x533d57[_0x10e9d2(0x186)],'defaultVerbose':_0x533d57[_0x10e9d2(0x171)],'apiDir':_0x533d57[_0x10e9d2(0x16c)],'riskLevel':_0x533d57[_0x10e9d2(0x154)],'selectedAppName':_0x533d57[_0x10e9d2(0x170)],'mergedCli':{'defaultApp':_0x533d57['defaultApp'],'currentApp':_0x533d57['currentApp'],'appCode':_0x533d57[_0x10e9d2(0x17f)],'apps':_0x533d57[_0x10e9d2(0x169)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a210_0x2e0fb6(0x16e)](_0x3076e8=>PIPELINE_FLAG_NAMES[a210_0x2e0fb6(0x167)](_0x3076e8[a210_0x2e0fb6(0x17e)]))[a210_0x2e0fb6(0x157)](({name:_0x2574c8,type:_0x475489,description:_0x127f98})=>({'name':_0x2574c8,'type':_0x475489,'description':_0x127f98})),'formatOutput':formatOutput,'getCommandLabel'(_0x3d795f){const _0x417436=a210_0x2e0fb6;return CLI_BIN_NAME+'\x20'+_0x3d795f[_0x417436(0x179)]+'\x20'+_0x3d795f[_0x417436(0x172)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4bc96c){const _0x5843dc=a210_0x2e0fb6;return CliErrors[_0x5843dc(0x177)](_0x4bc96c);}},async 'prepare'(_0x5c6067,_0x4753e1,_0x3caddd,_0x36c6f8){const _0x1777c4=a210_0x2e0fb6,_0xad74d=_0x4753e1[_0x1777c4(0x16c)]||DEFAULT_API_DIR;resolveAliasToCode(_0x5c6067,_0x3caddd,_0xad74d,_0x36c6f8);const _0x1565f8=resolveCommandAuthMode(_0x5c6067);let _0x42884a='';if(_0x1565f8!==_0x1777c4(0x182)){_0x42884a=_0x4753e1[_0x1777c4(0x15d)]()||'';if(!_0x42884a){if(_0x1565f8===_0x1777c4(0x185))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x46ad41}=await import('../core/api-client.js');_0x46ad41(_0x42884a);}}const _0x40ae3b=_0x4753e1['resolveAppCode']()??'';if(_0x5c6067[_0x1777c4(0x159)]!==![]){assertEnvAppCodeNotIgnored(_0x40ae3b,resolveEnvAppCode(),hasExplicitAppCode(_0x3caddd,_0x4753e1[_0x1777c4(0x174)]));if(!_0x40ae3b)throw CliErrors[_0x1777c4(0x16a)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x1777c4(0x184));}return{'defaults':{'booleans':{'verbose':_0x4753e1[_0x1777c4(0x16b)]},'numbers':{'pagesize':_0x4753e1[_0x1777c4(0x176)]}},'extras':{'appCode':_0x40ae3b,'cookie':_0x42884a,'apiDomain':_0x4753e1[_0x1777c4(0x17a)](),'apiDir':_0xad74d,'selectedAppName':_0x4753e1[_0x1777c4(0x178)],'mergedCli':_0x4753e1['mergedCli']}};},async 'confirmHighRisk'({env:_0xff756,commandLabel:_0x519a69}){const _0x662e86=a210_0x2e0fb6;if(_0xff756[_0x662e86(0x15f)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x519a69+_0x662e86(0x160));await requireConfirmationPrompt({'lines':[_0x662e86(0x183)+_0x519a69,_0x662e86(0x188)],'createCancelledError':_0x5bfa1b=>CliErrors[_0x662e86(0x17d)](_0x5bfa1b)});},async 'finalize'(){const {clearActiveCookie:_0x3705ed}=await import('../core/api-client.js');_0x3705ed();}};export async function runCommand(_0x525dcd,_0x1eb9d6){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x525dcd)?withUpdateNotice(_0x525dcd):_0x525dcd,_0x1eb9d6,runnerAdapter);}function shouldAttachUpdateNotice(_0x18faea){const _0x2df3fa=a210_0x2e0fb6;if(_0x18faea[_0x2df3fa(0x16f)]===![])return![];return!['update',_0x2df3fa(0x181),'doctor']['includes'](_0x18faea[_0x2df3fa(0x179)]);}function withUpdateNotice(_0x4de77c){return{..._0x4de77c,async 'execute'(_0x101afb){const _0x29ed82=a210_0x10ef,_0x587d07=shouldResolveUpdateNotice(_0x101afb)?resolveLatestUpdateNotice()[_0x29ed82(0x15b)](()=>null):Promise['resolve'](null),_0x3ca825=await _0x4de77c[_0x29ed82(0x17b)](_0x101afb);return attachUpdateNotice(_0x3ca825,await _0x587d07);}};}function shouldResolveUpdateNotice(_0x6a6366){const _0x16c389=a210_0x2e0fb6;return _0x6a6366[_0x16c389(0x164)]===_0x16c389(0x163)&&!_0x6a6366[_0x16c389(0x153)];}function attachUpdateNotice(_0x1395a6,_0x55f564){const _0x17f46b=a210_0x2e0fb6;if(!_0x55f564||!_0x1395a6||typeof _0x1395a6!==_0x17f46b(0x165))return _0x1395a6;const _0xf12cc6=_0x1395a6,_0x85d1dd=typeof _0xf12cc6['_notice']===_0x17f46b(0x165)&&_0xf12cc6[_0x17f46b(0x180)]!==null?_0xf12cc6[_0x17f46b(0x180)]:{};return{..._0xf12cc6,'_notice':{..._0x85d1dd,'update':_0x55f564}};}
1
+ function a210_0x51a2(_0x3bb543,_0x5e22a3){_0x3bb543=_0x3bb543-0x17a;const _0x2ef824=a210_0x2ef8();let _0x51a23f=_0x2ef824[_0x3bb543];return _0x51a23f;}const a210_0x538247=a210_0x51a2;(function(_0x1b07f0,_0x902b60){const _0x15955a=a210_0x51a2,_0x53878a=_0x1b07f0();while(!![]){try{const _0x2caf20=parseInt(_0x15955a(0x1a2))/0x1*(-parseInt(_0x15955a(0x1ad))/0x2)+parseInt(_0x15955a(0x1ac))/0x3*(-parseInt(_0x15955a(0x17a))/0x4)+-parseInt(_0x15955a(0x18e))/0x5*(-parseInt(_0x15955a(0x1a1))/0x6)+-parseInt(_0x15955a(0x186))/0x7*(-parseInt(_0x15955a(0x19b))/0x8)+parseInt(_0x15955a(0x19d))/0x9*(parseInt(_0x15955a(0x18b))/0xa)+-parseInt(_0x15955a(0x1a6))/0xb+-parseInt(_0x15955a(0x188))/0xc;if(_0x2caf20===_0x902b60)break;else _0x53878a['push'](_0x53878a['shift']());}catch(_0x5d1bbf){_0x53878a['push'](_0x53878a['shift']());}}}(a210_0x2ef8,0xbe64c));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a210_0x2ef8(){const _0x65f250=['To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','value','string','hasFormat','service','9263737ZYhBJM','riskLevel','1761996rVPUXt','map','pretty','115760CbuzVy','trim','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','1415940XRsnlC','resolveCookie','configMissing','appCode','command','selectedAppName','object','defaultApp','authRequired','verbose','format','../core/api-client.js','schema','8xVfTXx','_notice','603CzyIst','execute','High-risk\x20operation\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','30eDaaCU','122478uRnevP','LOVRABET_APPCODE','appcode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','12570811oPIpui','defaultVerbose','resolveApiDomain','rawFlags','apiDir','required','3jBPoIj','8GDhKFc','none','has','resolve','name','3822100YSXQHt','filter','Current\x20resolved\x20appcode\x20is\x20\x22','Set\x20appcode\x20via\x20`','defaultPageSize','update','currentApp'];a210_0x2ef8=function(){return _0x65f250;};return a210_0x2ef8();}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 a210_0x10f43b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x192c2e){const _0x56ed37=a210_0x51a2;return typeof _0x192c2e===_0x56ed37(0x183)&&_0x192c2e[_0x56ed37(0x18c)]()?_0x192c2e[_0x56ed37(0x18c)]():undefined;}function resolveEnvAppCode(){const _0x5e8bb4=a210_0x51a2,_0x452a52=stringFlag(process.env.RABETBASE_APPCODE);if(_0x452a52)return{'name':'RABETBASE_APPCODE','value':_0x452a52};const _0x1f8db0=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1f8db0)return{'name':_0x5e8bb4(0x1a3),'value':_0x1f8db0};return undefined;}function hasExplicitAppCode(_0x27cbbd,_0x46bbaa){const _0x2e16e6=a210_0x51a2;return!!(stringFlag(_0x27cbbd[_0x2e16e6(0x1a4)])||stringFlag(_0x46bbaa[_0x2e16e6(0x1a4)]));}function assertEnvAppCodeNotIgnored(_0x284ef7,_0x3ac398,_0x1a0c8d){const _0x21b3c6=a210_0x51a2;if(!_0x3ac398||_0x1a0c8d||_0x284ef7===_0x3ac398[_0x21b3c6(0x182)])return;const _0x5a2077=_0x284ef7?_0x21b3c6(0x17c)+_0x284ef7+'\x22.':_0x21b3c6(0x18d);throw CliErrors['validation'](_0x3ac398[_0x21b3c6(0x1b1)]+'='+_0x3ac398[_0x21b3c6(0x182)]+_0x21b3c6(0x1a0)+_0x5a2077+'\x20'+(_0x21b3c6(0x181)+_0x3ac398[_0x21b3c6(0x1b1)]+'\x22.'));}export function createPipelineEnv(_0x20d585,_0x5d295e,_0x5f1b86=[]){const _0x50a235=a210_0x51a2;return{'rawFlags':_0x5d295e,'args':_0x5f1b86,'resolveAppCode':()=>_0x20d585[_0x50a235(0x191)],'resolveCookie':()=>_0x20d585['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a210_0x10f43b(_0x5d295e),'defaultFormat':_0x20d585[_0x50a235(0x198)],'defaultPageSize':_0x20d585['pageSize'],'defaultVerbose':_0x20d585[_0x50a235(0x197)],'apiDir':_0x20d585[_0x50a235(0x1aa)],'riskLevel':_0x20d585[_0x50a235(0x187)],'selectedAppName':_0x20d585['explicitAppName'],'mergedCli':{'defaultApp':_0x20d585[_0x50a235(0x195)],'currentApp':_0x20d585[_0x50a235(0x180)],'appCode':_0x20d585[_0x50a235(0x191)],'apps':_0x20d585['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a210_0x538247(0x17b)](_0x3b8081=>PIPELINE_FLAG_NAMES[a210_0x538247(0x1af)](_0x3b8081[a210_0x538247(0x1b1)]))[a210_0x538247(0x189)](({name:_0x3de9e3,type:_0x23355,description:_0x1ea865})=>({'name':_0x3de9e3,'type':_0x23355,'description':_0x1ea865})),'formatOutput':formatOutput,'getCommandLabel'(_0x29d015){const _0x2e2ad9=a210_0x538247;return CLI_BIN_NAME+'\x20'+_0x29d015[_0x2e2ad9(0x185)]+'\x20'+_0x29d015[_0x2e2ad9(0x192)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4c1983){return CliErrors['validation'](_0x4c1983);}},async 'prepare'(_0x5e7ee4,_0xb7d5f4,_0x562100,_0x328a18){const _0x521aca=a210_0x538247,_0x2a4f79=_0xb7d5f4['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x5e7ee4,_0x562100,_0x2a4f79,_0x328a18);const _0x827e8b=resolveCommandAuthMode(_0x5e7ee4);let _0x32f743='';if(_0x827e8b!==_0x521aca(0x1ae)){_0x32f743=_0xb7d5f4[_0x521aca(0x18f)]()||'';if(!_0x32f743){if(_0x827e8b===_0x521aca(0x1ab))throw CliErrors[_0x521aca(0x196)]();}else{const {setActiveCookie:_0x591eda}=await import(_0x521aca(0x199));_0x591eda(_0x32f743);}}const _0x7f95f2=_0xb7d5f4['resolveAppCode']()??'';if(_0x5e7ee4['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x7f95f2,resolveEnvAppCode(),hasExplicitAppCode(_0x562100,_0xb7d5f4[_0x521aca(0x1a9)]));if(!_0x7f95f2)throw CliErrors[_0x521aca(0x190)](_0x521aca(0x17d)+CLI_BIN_NAME+_0x521aca(0x1a5));}return{'defaults':{'booleans':{'verbose':_0xb7d5f4[_0x521aca(0x1a7)]},'numbers':{'pagesize':_0xb7d5f4[_0x521aca(0x17e)]}},'extras':{'appCode':_0x7f95f2,'cookie':_0x32f743,'apiDomain':_0xb7d5f4[_0x521aca(0x1a8)](),'apiDir':_0x2a4f79,'selectedAppName':_0xb7d5f4[_0x521aca(0x193)],'mergedCli':_0xb7d5f4['mergedCli']}};},async 'confirmHighRisk'({env:_0x146f6a,commandLabel:_0x264ad7}){const _0x55eeed=a210_0x538247;if(_0x146f6a['isNonInteractive'])throw CliErrors['validation'](_0x55eeed(0x19f)+_0x264ad7+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x264ad7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x26a2ac=>CliErrors['cancelled'](_0x26a2ac)});},async 'finalize'(){const _0x2955d7=a210_0x538247,{clearActiveCookie:_0x3aa5e6}=await import(_0x2955d7(0x199));_0x3aa5e6();}};export async function runCommand(_0x1c63db,_0x1ee0c2){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1c63db)?withUpdateNotice(_0x1c63db):_0x1c63db,_0x1ee0c2,runnerAdapter);}function shouldAttachUpdateNotice(_0x39a806){const _0x56ffb5=a210_0x538247;if(_0x39a806[_0x56ffb5(0x184)]===![])return![];return![_0x56ffb5(0x17f),_0x56ffb5(0x19a),'doctor']['includes'](_0x39a806['service']);}function withUpdateNotice(_0x13a03a){return{..._0x13a03a,async 'execute'(_0x56c3b7){const _0x23980e=a210_0x51a2,_0x370a94=shouldResolveUpdateNotice(_0x56c3b7)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x23980e(0x1b0)](null),_0xb92a37=await _0x13a03a[_0x23980e(0x19e)](_0x56c3b7);return attachUpdateNotice(_0xb92a37,await _0x370a94);}};}function shouldResolveUpdateNotice(_0x694abb){const _0xde3e5b=a210_0x538247;return _0x694abb['format']===_0xde3e5b(0x18a)&&!_0x694abb['nonInteractive'];}function attachUpdateNotice(_0x296655,_0x488d4c){const _0x5d4a0b=a210_0x538247;if(!_0x488d4c||!_0x296655||typeof _0x296655!=='object')return _0x296655;const _0x1b5fe9=_0x296655,_0x5e485c=typeof _0x1b5fe9[_0x5d4a0b(0x19c)]===_0x5d4a0b(0x194)&&_0x1b5fe9[_0x5d4a0b(0x19c)]!==null?_0x1b5fe9['_notice']:{};return{..._0x1b5fe9,'_notice':{..._0x5e485c,'update':_0x488d4c}};}
@@ -1 +1 @@
1
- (function(_0x7f729,_0x4ca48a){const _0x2f9349=a211_0x1003,_0x148a0f=_0x7f729();while(!![]){try{const _0x200631=parseInt(_0x2f9349(0xd2))/0x1+parseInt(_0x2f9349(0xd0))/0x2*(parseInt(_0x2f9349(0xd7))/0x3)+parseInt(_0x2f9349(0xd1))/0x4+-parseInt(_0x2f9349(0xd5))/0x5*(-parseInt(_0x2f9349(0xd6))/0x6)+parseInt(_0x2f9349(0xcd))/0x7+-parseInt(_0x2f9349(0xcf))/0x8*(parseInt(_0x2f9349(0xce))/0x9)+-parseInt(_0x2f9349(0xd3))/0xa;if(_0x200631===_0x4ca48a)break;else _0x148a0f['push'](_0x148a0f['shift']());}catch(_0x543579){_0x148a0f['push'](_0x148a0f['shift']());}}}(a211_0x4d86,0xd5bbe));import{buildSchemaPayload as a211_0x33f999}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 a211_0x4d86(){const _0x2a2719=['1191678nhxvhO','3486891eQuGML','9778293YIMDhm','5301gNjOTj','5360trmNeO','2wOsxvw','540412RsWBxT','382453NiYfEr','22038940UdXhId','../commands/registry.js','10OAZNki'];a211_0x4d86=function(){return _0x2a2719;};return a211_0x4d86();}function a211_0x1003(_0x4ce0a8,_0x5e3d9c){_0x4ce0a8=_0x4ce0a8-0xcd;const _0x4d86e0=a211_0x4d86();let _0x1003c0=_0x4d86e0[_0x4ce0a8];return _0x1003c0;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3e67b9=a211_0x1003,{serviceRegistry:_0x36ca47,findDefinition:_0x33c20e}=await import(_0x3e67b9(0xd4));return a211_0x33f999({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x36ca47,'buildAllFlags':buildAllFlags,'findDefinition':_0x33c20e});}
1
+ (function(_0x26c0f1,_0x33176e){const _0x232890=a211_0x25ae,_0x5be91d=_0x26c0f1();while(!![]){try{const _0x453010=parseInt(_0x232890(0x179))/0x1+parseInt(_0x232890(0x173))/0x2+-parseInt(_0x232890(0x174))/0x3+parseInt(_0x232890(0x177))/0x4*(parseInt(_0x232890(0x17b))/0x5)+parseInt(_0x232890(0x175))/0x6+parseInt(_0x232890(0x176))/0x7+-parseInt(_0x232890(0x17a))/0x8;if(_0x453010===_0x33176e)break;else _0x5be91d['push'](_0x5be91d['shift']());}catch(_0x1eb4cc){_0x5be91d['push'](_0x5be91d['shift']());}}}(a211_0x3d3d,0x30153));function a211_0x3d3d(){const _0x50cbe6=['../commands/registry.js','337282exJSSX','6908504ARGXdg','481395Isracu','683076AyUTkE','954021UfJuox','1780698ZQnAFp','1472492TPCSHQ','8AZUXVX'];a211_0x3d3d=function(){return _0x50cbe6;};return a211_0x3d3d();}import{buildSchemaPayload as a211_0x4b03d2}from'@lovrabet/cli-framework';function a211_0x25ae(_0x4e2295,_0x1c2da4){_0x4e2295=_0x4e2295-0x173;const _0x3d3d3a=a211_0x3d3d();let _0x25ae20=_0x3d3d3a[_0x4e2295];return _0x25ae20;}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 _0x53eb57=a211_0x25ae,{serviceRegistry:_0xd48360,findDefinition:_0x6ecaf4}=await import(_0x53eb57(0x178));return a211_0x4b03d2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xd48360,'buildAllFlags':buildAllFlags,'findDefinition':_0x6ecaf4});}
@@ -1 +1 @@
1
- function a212_0x5e05(_0x51473f,_0x2af9bb){_0x51473f=_0x51473f-0x1ce;var _0x327030=a212_0x3270();var _0x5e05ba=_0x327030[_0x51473f];return _0x5e05ba;}function a212_0x3270(){var _0x2102d3=['196749bVopsp','144LNZXsk','322289WScbln','66820tHdUAU','1688036MUUUdX','11623912PQybEI','1857783dBoJTW','177924BeadYJ'];a212_0x3270=function(){return _0x2102d3;};return a212_0x3270();}(function(_0x554399,_0x55da3f){var _0x4e2a36=a212_0x5e05,_0x1d18c2=_0x554399();while(!![]){try{var _0xc99d49=-parseInt(_0x4e2a36(0x1d2))/0x1+-parseInt(_0x4e2a36(0x1cf))/0x2+-parseInt(_0x4e2a36(0x1ce))/0x3+-parseInt(_0x4e2a36(0x1d4))/0x4+parseInt(_0x4e2a36(0x1d3))/0x5*(parseInt(_0x4e2a36(0x1d1))/0x6)+parseInt(_0x4e2a36(0x1d0))/0x7+parseInt(_0x4e2a36(0x1d5))/0x8;if(_0xc99d49===_0x55da3f)break;else _0x1d18c2['push'](_0x1d18c2['shift']());}catch(_0x379260){_0x1d18c2['push'](_0x1d18c2['shift']());}}}(a212_0x3270,0x5547f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x432407,_0x1b4ff3){var _0x1c6030=a212_0x2cb3,_0x5c69b1=_0x432407();while(!![]){try{var _0x1f620c=-parseInt(_0x1c6030(0xc9))/0x1*(parseInt(_0x1c6030(0xc6))/0x2)+parseInt(_0x1c6030(0xc8))/0x3*(parseInt(_0x1c6030(0xc5))/0x4)+parseInt(_0x1c6030(0xc0))/0x5*(-parseInt(_0x1c6030(0xc7))/0x6)+parseInt(_0x1c6030(0xc2))/0x7+parseInt(_0x1c6030(0xc4))/0x8*(parseInt(_0x1c6030(0xca))/0x9)+-parseInt(_0x1c6030(0xc1))/0xa+parseInt(_0x1c6030(0xc3))/0xb;if(_0x1f620c===_0x1b4ff3)break;else _0x5c69b1['push'](_0x5c69b1['shift']());}catch(_0x2894a5){_0x5c69b1['push'](_0x5c69b1['shift']());}}}(a212_0xc8dc,0x9b7c5));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a212_0x2cb3(_0x114b81,_0x44a54e){_0x114b81=_0x114b81-0xc0;var _0xc8dc68=a212_0xc8dc();var _0x2cb39a=_0xc8dc68[_0x114b81];return _0x2cb39a;}function a212_0xc8dc(){var _0x274844=['3wvSCKY','280031QpQcFO','241110HxRWnx','951415boiMnC','9415910Pyxvhz','1484238ocqIxv','30750214DvJjMD','48qcsJIO','1927004ZxixNN','8GIJgBF','30HhWjId'];a212_0xc8dc=function(){return _0x274844;};return a212_0xc8dc();}
@@ -1 +1 @@
1
- const a213_0x440fc7=a213_0x148d;(function(_0x2d3f05,_0x271586){const _0x2dfeb9=a213_0x148d,_0x5f4ced=_0x2d3f05();while(!![]){try{const _0x3c07fc=parseInt(_0x2dfeb9(0x1e3))/0x1*(-parseInt(_0x2dfeb9(0x1d9))/0x2)+-parseInt(_0x2dfeb9(0x1da))/0x3*(-parseInt(_0x2dfeb9(0x1e0))/0x4)+-parseInt(_0x2dfeb9(0x1db))/0x5+-parseInt(_0x2dfeb9(0x1df))/0x6+parseInt(_0x2dfeb9(0x1e2))/0x7*(parseInt(_0x2dfeb9(0x1dd))/0x8)+-parseInt(_0x2dfeb9(0x1d7))/0x9*(parseInt(_0x2dfeb9(0x1d8))/0xa)+parseInt(_0x2dfeb9(0x1de))/0xb;if(_0x3c07fc===_0x271586)break;else _0x5f4ced['push'](_0x5f4ced['shift']());}catch(_0x165114){_0x5f4ced['push'](_0x5f4ced['shift']());}}}(a213_0xd5a0,0xb39d0));export const VERSION='2.3.7-beta.2';export const GIT_TAG=a213_0x440fc7(0x1e1);function a213_0x148d(_0x28cd40,_0x28c3d3){_0x28cd40=_0x28cd40-0x1d6;const _0xd5a0db=a213_0xd5a0();let _0x148d38=_0xd5a0db[_0x28cd40];return _0x148d38;}function a213_0xd5a0(){const _0x4e0aab=['24wGVMTt','44203280GZaSrB','5219742ubKFWc','15220nnTWaO','v2.3.7-beta.2','433923xrsbvh','6558nlPqnS','2026-07-18T08:56:50.915Z','17622MMWpAg','2830LZrvKk','426bGhpNm','15ygWeVu','3334255axuMzH','e04430a'];a213_0xd5a0=function(){return _0x4e0aab;};return a213_0xd5a0();}export const GIT_COMMIT=a213_0x440fc7(0x1dc);export const BUILD_TIME=a213_0x440fc7(0x1d6);
1
+ const a213_0x3096e8=a213_0x413e;(function(_0x3fb5fb,_0x20a082){const _0x565dbb=a213_0x413e,_0xde1e89=_0x3fb5fb();while(!![]){try{const _0x2d6082=parseInt(_0x565dbb(0x1bc))/0x1*(parseInt(_0x565dbb(0x1b6))/0x2)+-parseInt(_0x565dbb(0x1be))/0x3+parseInt(_0x565dbb(0x1b9))/0x4+-parseInt(_0x565dbb(0x1b5))/0x5*(-parseInt(_0x565dbb(0x1bd))/0x6)+-parseInt(_0x565dbb(0x1bb))/0x7*(-parseInt(_0x565dbb(0x1b7))/0x8)+parseInt(_0x565dbb(0x1b4))/0x9+-parseInt(_0x565dbb(0x1b8))/0xa;if(_0x2d6082===_0x20a082)break;else _0xde1e89['push'](_0xde1e89['shift']());}catch(_0x5095ce){_0xde1e89['push'](_0xde1e89['shift']());}}}(a213_0x3882,0x2fadd));export const VERSION='2.3.7-beta.3';function a213_0x3882(){const _0x4a5c08=['v2.3.7-beta.3','371qIeGbC','83mEeSxy','103668GMyvSu','689034yezAiN','2918295bvnzeT','20kSivdg','1490CemImS','27752hJUzrj','2147630lFFNTO','2700EXcPVn'];a213_0x3882=function(){return _0x4a5c08;};return a213_0x3882();}export const GIT_TAG=a213_0x3096e8(0x1ba);function a213_0x413e(_0x4bd0e2,_0x48820f){_0x4bd0e2=_0x4bd0e2-0x1b4;const _0x3882ff=a213_0x3882();let _0x413e09=_0x3882ff[_0x4bd0e2];return _0x413e09;}export const GIT_COMMIT='b566342';export const BUILD_TIME='2026-07-18T09:37:01.009Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4098ef,_0xb084a4){var _0x888587=a214_0x5255,_0x1f08bb=_0x4098ef();while(!![]){try{var _0x36e003=parseInt(_0x888587(0xdc))/0x1*(parseInt(_0x888587(0xe0))/0x2)+-parseInt(_0x888587(0xdb))/0x3+-parseInt(_0x888587(0xe1))/0x4+parseInt(_0x888587(0xd8))/0x5+parseInt(_0x888587(0xdf))/0x6*(-parseInt(_0x888587(0xdd))/0x7)+-parseInt(_0x888587(0xd9))/0x8*(parseInt(_0x888587(0xde))/0x9)+-parseInt(_0x888587(0xda))/0xa*(-parseInt(_0x888587(0xe3))/0xb);if(_0x36e003===_0xb084a4)break;else _0x1f08bb['push'](_0x1f08bb['shift']());}catch(_0x1506e9){_0x1f08bb['push'](_0x1f08bb['shift']());}}}(a214_0x2e37,0x6bc55));import a214_0x5655e7 from'chalk';function a214_0x5255(_0x1c12c6,_0x29ef86){_0x1c12c6=_0x1c12c6-0xd8;var _0x2e37b3=a214_0x2e37();var _0x525579=_0x2e37b3[_0x1c12c6];return _0x525579;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4890ba=a214_0x5255;console[_0x4890ba(0xe7)](),console[_0x4890ba(0xe7)](a214_0x5655e7['green'][_0x4890ba(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4890ba(0xe7)](),console[_0x4890ba(0xe7)]('\x20\x20Use\x20'+a214_0x5655e7[_0x4890ba(0xe2)][_0x4890ba(0xe6)](CLI_BIN_NAME+_0x4890ba(0xe5))+_0x4890ba(0xe4)),console['log']();}function a214_0x2e37(){var _0x16e7d5=['552YbleEw','11930xSnkED','2987976ArnBxL','green','12393117IqXzvE','\x20to\x20view\x20available\x20commands.','\x20--help','bold','log','2121050KVSeUp','56168eEpYzs','10AZgndy','622548TsmAuW','61tcwakQ','37870BWRjlZ','27ziUUCU'];a214_0x2e37=function(){return _0x16e7d5;};return a214_0x2e37();}
1
+ (function(_0x4a246c,_0x1fee89){var _0x27ec00=a214_0x5b1f,_0x1193ea=_0x4a246c();while(!![]){try{var _0x26848d=parseInt(_0x27ec00(0x1b0))/0x1*(-parseInt(_0x27ec00(0x1a9))/0x2)+parseInt(_0x27ec00(0x1a8))/0x3+-parseInt(_0x27ec00(0x1ac))/0x4*(parseInt(_0x27ec00(0x1b3))/0x5)+parseInt(_0x27ec00(0x1a6))/0x6+-parseInt(_0x27ec00(0x1a7))/0x7+parseInt(_0x27ec00(0x1ae))/0x8*(parseInt(_0x27ec00(0x1b4))/0x9)+parseInt(_0x27ec00(0x1ab))/0xa;if(_0x26848d===_0x1fee89)break;else _0x1193ea['push'](_0x1193ea['shift']());}catch(_0x4c07b1){_0x1193ea['push'](_0x1193ea['shift']());}}}(a214_0x4b34,0x5e11c));function a214_0x5b1f(_0x380ec2,_0x265091){_0x380ec2=_0x380ec2-0x1a6;var _0x4b34f7=a214_0x4b34();var _0x5b1fdb=_0x4b34f7[_0x380ec2];return _0x5b1fdb;}import a214_0x40e7e4 from'chalk';function a214_0x4b34(){var _0xe250e9=['\x20to\x20view\x20available\x20commands.','15784btmXvm','log','100047VlADfg','\x20\x20Use\x20','green','55910geztae','1233lpEOyD','bold','3353694zIVEme','2328431rQviSg','511287DAgzKp','10acZnEB','\x20--help','9005990egxrsL','244hAQKPp'];a214_0x4b34=function(){return _0xe250e9;};return a214_0x4b34();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x5e5f83=a214_0x5b1f;console[_0x5e5f83(0x1af)](),console[_0x5e5f83(0x1af)](a214_0x40e7e4[_0x5e5f83(0x1b2)][_0x5e5f83(0x1b5)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5e5f83(0x1af)](),console['log'](_0x5e5f83(0x1b1)+a214_0x40e7e4[_0x5e5f83(0x1b2)]['bold'](CLI_BIN_NAME+_0x5e5f83(0x1aa))+_0x5e5f83(0x1ad)),console[_0x5e5f83(0x1af)]();}
@@ -1 +1 @@
1
- (function(_0x2cee97,_0x7f55d3){const _0x4839ac=a215_0x2e23,_0x4ff212=_0x2cee97();while(!![]){try{const _0x325a71=-parseInt(_0x4839ac(0x1b0))/0x1+parseInt(_0x4839ac(0x1a7))/0x2*(-parseInt(_0x4839ac(0x1ac))/0x3)+parseInt(_0x4839ac(0x1ad))/0x4+-parseInt(_0x4839ac(0x196))/0x5*(parseInt(_0x4839ac(0x19e))/0x6)+parseInt(_0x4839ac(0x197))/0x7+parseInt(_0x4839ac(0x195))/0x8+-parseInt(_0x4839ac(0x1a3))/0x9*(-parseInt(_0x4839ac(0x1ae))/0xa);if(_0x325a71===_0x7f55d3)break;else _0x4ff212['push'](_0x4ff212['shift']());}catch(_0x2affcc){_0x4ff212['push'](_0x4ff212['shift']());}}}(a215_0x1feb,0x7cb09));function a215_0x1feb(){const _0x1c6d2e=['486332SEPfFG','enable-bff-save','length','log','from','7058024gTFPDz','5YseYUk','3901800WCPIGH','--help','argv','setLogPath','Equivalent\x20command:\x20','includes','slice','5442852LCFcrH','startsWith','add','skill','\x0aAvailable\x20commands:','9706014UQrqZB','error','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','dangerously-bff-save','6hRyiHd','entries','Error:\x20Unsupported\x20command:\x20','cwd','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','735603JJsDsh','486828ZGxWDp','10SjwUpF','-$1'];a215_0x1feb=function(){return _0x1c6d2e;};return a215_0x1feb();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x25ad34){const _0x2003d5=a215_0x2e23,_0x588111=[];for(const [_0x365dcc,_0x2ae9a7]of Object[_0x2003d5(0x1a8)](_0x25ad34)){if(_0x2ae9a7===!![]){const _0x41c24e=_0x365dcc['replace'](/([A-Z])/g,_0x2003d5(0x1af))['toLowerCase']();_0x588111['push'](_0x41c24e);}}return _0x588111;}export function parseDynamicFlags(){const _0x28c3c0=a215_0x2e23,_0x598157=[];for(let _0x34a310=0x3;_0x34a310<process[_0x28c3c0(0x199)][_0x28c3c0(0x1b2)];_0x34a310++){const _0x3c23eb=process[_0x28c3c0(0x199)][_0x34a310];if(_0x3c23eb&&_0x3c23eb[_0x28c3c0(0x19f)]('--')){const _0x500c4d=_0x3c23eb[_0x28c3c0(0x19d)](0x2);_0x500c4d&&!_0x500c4d[_0x28c3c0(0x19c)]('=')&&_0x598157['push'](_0x500c4d);}}return _0x598157;}export function getAllProvidedFlags(_0x4005e3){const _0x1544e1=a215_0x2e23,_0x3c9880=camelCaseFlagsToKebab(_0x4005e3),_0x114545=parseDynamicFlags(),_0x3c81c0=new Set([..._0x3c9880,..._0x114545]);return Array[_0x1544e1(0x194)](_0x3c81c0);}export function normalizeLegacyBffSaveFlags(_0x7497d){const _0x354863=a215_0x2e23,_0x203e2c=new Set(_0x7497d);return _0x203e2c['has'](_0x354863(0x1a6))&&_0x203e2c[_0x354863(0x1a0)](_0x354863(0x1b1)),Array['from'](_0x203e2c);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a215_0x2e23(_0x44eb0c,_0x1d22d9){_0x44eb0c=_0x44eb0c-0x193;const _0x1feb17=a215_0x1feb();let _0x2e2318=_0x1feb17[_0x44eb0c];return _0x2e2318;}export async function skillsCommand(_0x1502ea,_0x52ee39,_0x36d3eb){const _0x5e0455=a215_0x2e23;logger[_0x5e0455(0x19a)](process[_0x5e0455(0x1aa)]());if(_0x36d3eb?.['help']||_0x1502ea===_0x5e0455(0x198)){showHelp();return;}console[_0x5e0455(0x1a4)](_0x5e0455(0x1a9)+(_0x1502ea||'(empty)')),console['log'](_0x5e0455(0x1a2)),console[_0x5e0455(0x193)]('\x20\x20'+CLI_BIN_NAME+_0x5e0455(0x1ab)),console['log'](''),console['log'](_0x5e0455(0x19b)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x5e0455(0x1a1),'不支持的命令:\x20'+_0x1502ea),process['exit'](0x1);}function showHelp(){const _0x1d3dd3=a215_0x2e23;console[_0x1d3dd3(0x193)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1d3dd3(0x1a5));}
1
+ function a215_0x2b63(){const _0x1314b4=['147265dcERTk','\x0aAvailable\x20commands:','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','不支持的命令:\x20','push','from','toLowerCase','slice','16jEblbi','2465811qXADyk','18uYEYAv','skill','argv','2251335fWgsRG','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','setLogPath','entries','log','cwd','431924zmJfom','has','1950249kgAPOZ','help','740452mcVYuw','-$1','startsWith','add','674544YHztRa','--help','enable-bff-save'];a215_0x2b63=function(){return _0x1314b4;};return a215_0x2b63();}function a215_0x37c1(_0x57881a,_0x24fca7){_0x57881a=_0x57881a-0xb9;const _0x2b6333=a215_0x2b63();let _0x37c11c=_0x2b6333[_0x57881a];return _0x37c11c;}(function(_0x477e0b,_0x333edd){const _0xe12155=a215_0x37c1,_0x34ea18=_0x477e0b();while(!![]){try{const _0x13d1bb=parseInt(_0xe12155(0xc2))/0x1+parseInt(_0xe12155(0xbb))/0x2+parseInt(_0xe12155(0xcd))/0x3*(-parseInt(_0xe12155(0xd7))/0x4)+-parseInt(_0xe12155(0xd0))/0x5+parseInt(_0xe12155(0xbf))/0x6+-parseInt(_0xe12155(0xb9))/0x7*(-parseInt(_0xe12155(0xcb))/0x8)+parseInt(_0xe12155(0xcc))/0x9;if(_0x13d1bb===_0x333edd)break;else _0x34ea18['push'](_0x34ea18['shift']());}catch(_0x3b3d6b){_0x34ea18['push'](_0x34ea18['shift']());}}}(a215_0x2b63,0x589cb));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x49e562){const _0x45419f=a215_0x37c1,_0x4d14e4=[];for(const [_0x59de55,_0x154844]of Object[_0x45419f(0xd4)](_0x49e562)){if(_0x154844===!![]){const _0x49a5c6=_0x59de55['replace'](/([A-Z])/g,_0x45419f(0xbc))[_0x45419f(0xc9)]();_0x4d14e4[_0x45419f(0xc7)](_0x49a5c6);}}return _0x4d14e4;}export function parseDynamicFlags(){const _0x4d4ba8=a215_0x37c1,_0x370150=[];for(let _0x3ee8cb=0x3;_0x3ee8cb<process[_0x4d4ba8(0xcf)]['length'];_0x3ee8cb++){const _0x42e176=process[_0x4d4ba8(0xcf)][_0x3ee8cb];if(_0x42e176&&_0x42e176[_0x4d4ba8(0xbd)]('--')){const _0x12931a=_0x42e176[_0x4d4ba8(0xca)](0x2);_0x12931a&&!_0x12931a['includes']('=')&&_0x370150[_0x4d4ba8(0xc7)](_0x12931a);}}return _0x370150;}export function getAllProvidedFlags(_0xda3736){const _0x2f8b1e=a215_0x37c1,_0x4452af=camelCaseFlagsToKebab(_0xda3736),_0x270b37=parseDynamicFlags(),_0x17891d=new Set([..._0x4452af,..._0x270b37]);return Array[_0x2f8b1e(0xc8)](_0x17891d);}export function normalizeLegacyBffSaveFlags(_0x2fe35e){const _0x5cee64=a215_0x37c1,_0x54bcf3=new Set(_0x2fe35e);return _0x54bcf3[_0x5cee64(0xd8)]('dangerously-bff-save')&&_0x54bcf3[_0x5cee64(0xbe)](_0x5cee64(0xc1)),Array[_0x5cee64(0xc8)](_0x54bcf3);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4451c6,_0x5d3e9c,_0x4fd4a7){const _0x278b19=a215_0x37c1;logger[_0x278b19(0xd3)](process[_0x278b19(0xd6)]());if(_0x4fd4a7?.[_0x278b19(0xba)]||_0x4451c6===_0x278b19(0xc0)){showHelp();return;}console[_0x278b19(0xd2)]('Error:\x20Unsupported\x20command:\x20'+(_0x4451c6||'(empty)')),console[_0x278b19(0xd5)](_0x278b19(0xc3)),console[_0x278b19(0xd5)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x278b19(0xd5)](''),console[_0x278b19(0xd5)](_0x278b19(0xc5)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x278b19(0xce),_0x278b19(0xc6)+_0x4451c6),process['exit'](0x1);}function showHelp(){const _0xd6dbe7=a215_0x37c1;console[_0xd6dbe7(0xd5)](_0xd6dbe7(0xc4)+CLI_BIN_NAME+_0xd6dbe7(0xd1)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
@@ -1 +1 @@
1
- const a216_0x49b05d=a216_0x4442;(function(_0x122f74,_0x5b843b){const _0x248179=a216_0x4442,_0x481228=_0x122f74();while(!![]){try{const _0x55b133=-parseInt(_0x248179(0x1c2))/0x1+parseInt(_0x248179(0x1c0))/0x2+-parseInt(_0x248179(0x1b3))/0x3*(parseInt(_0x248179(0x1bb))/0x4)+-parseInt(_0x248179(0x1be))/0x5*(-parseInt(_0x248179(0x1b7))/0x6)+parseInt(_0x248179(0x1cf))/0x7*(-parseInt(_0x248179(0x1b5))/0x8)+-parseInt(_0x248179(0x1c3))/0x9*(-parseInt(_0x248179(0x1cd))/0xa)+-parseInt(_0x248179(0x1c4))/0xb*(parseInt(_0x248179(0x1b8))/0xc);if(_0x55b133===_0x5b843b)break;else _0x481228['push'](_0x481228['shift']());}catch(_0x1f869e){_0x481228['push'](_0x481228['shift']());}}}(a216_0x2664,0xc619d));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=a216_0x49b05d(0x1c9);export const NPX_SKILLS_SUBCOMMAND_ADD='add';function a216_0x2664(){const _0x19a62e=['join','4REQLKm','status','unknown','3322090hzpUUl','lovrabet/rabetbase','2080704smgxXK','push','498060XlmWIz','2425455TdyIwy','2119293hIQSHl','stdout','inherit','pipe','npx','skills','stdio','exit\x20','trim','50MRkQnD','lovrabet/lovrabet-skill','797622gqAZzh','remove','156855SRqgqL','toString','24aIkjDe','skill','6sfnbLf','84aAPZBR','stderr'];a216_0x2664=function(){return _0x19a62e;};return a216_0x2664();}export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a216_0x49b05d(0x1bf);export const LEGACY_RABETBASE_SKILL_SOURCE=a216_0x49b05d(0x1ce);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x10d0f8){const _0x527444=a216_0x49b05d,_0x2b2003=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x10d0f8&&_0x2b2003[_0x527444(0x1c1)](NPX_SKILLS_FLAG_SKILL,_0x10d0f8),_0x2b2003;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a216_0x49b05d(0x1c8),...buildNpxSkillsAddArgv()][a216_0x49b05d(0x1ba)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a216_0x49b05d(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a216_0x49b05d(0x1ba)]('\x20');function a216_0x4442(_0x5930dc,_0x20474c){_0x5930dc=_0x5930dc-0x1b3;const _0x2664d7=a216_0x2664();let _0x44424a=_0x2664d7[_0x5930dc];return _0x44424a;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xca5c61,_0x49a7ee){const _0x238494=a216_0x49b05d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d2fe2=_0x49a7ee?.[_0x238494(0x1ca)]??'inherit',_0x160ab6=resolveNpmBin(_0x238494(0x1c8)),_0x52a5a4=buildNpxSkillsAddArgv(_0x49a7ee?.[_0x238494(0x1b6)]),_0x538535=['npx',..._0x52a5a4]['join']('\x20');console['log']('*\x20'+_0x538535);const _0x1ae416=spawnSync(_0x160ab6,_0x52a5a4,{'cwd':_0xca5c61,'stdio':_0x1d2fe2,'env':process.env,'shell':![]}),_0x43036c=_0x1ae416['status'];if(_0x43036c===0x0)return{'ok':!![],'status':0x0};let _0x309517=_0x238494(0x1cb)+(_0x43036c??_0x238494(0x1bd));if(_0x1d2fe2===_0x238494(0x1c7)){const _0x4736b6=_0x1ae416[_0x238494(0x1b9)]?_0x1ae416['stderr'][_0x238494(0x1b4)]()[_0x238494(0x1cc)]():'',_0x45ffdb=_0x1ae416[_0x238494(0x1c5)]?_0x1ae416['stdout'][_0x238494(0x1b4)]()['trim']():'';if(_0x4736b6)_0x309517=_0x4736b6;else{if(_0x45ffdb)_0x309517=_0x45ffdb;}}return{'ok':![],'status':_0x43036c??null,'error':_0x309517};}export function runNpxSkillsRemove(_0x5e78c3,_0x5eb7b9,_0x2286a5=LEGACY_RABETBASE_SKILL_SOURCE){const _0x60818b=a216_0x49b05d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b0b58=_0x5eb7b9?.[_0x60818b(0x1ca)]??_0x60818b(0x1c6),_0x4a01d4=resolveNpmBin(_0x60818b(0x1c8)),_0x4e105f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x60818b(0x1d0),_0x2286a5,NPX_SKILLS_FLAG_SKILL,_0x5eb7b9?.[_0x60818b(0x1b6)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5eb7b9?.['yes']?['-y']:[]],_0x313b1a=[_0x4a01d4,..._0x4e105f]['join']('\x20');console['log']('*\x20'+_0x313b1a);const _0x582119=spawnSync(_0x4a01d4,_0x4e105f,{'cwd':_0x5e78c3,'stdio':_0x1b0b58,'env':process.env,'shell':![]}),_0xbfd445=_0x582119[_0x60818b(0x1bc)];if(_0xbfd445===0x0)return{'ok':!![],'status':0x0};let _0x1c21ba=_0x60818b(0x1cb)+(_0xbfd445??'unknown');if(_0x1b0b58==='pipe'){const _0x2673e8=_0x582119[_0x60818b(0x1b9)]?_0x582119['stderr'][_0x60818b(0x1b4)]()['trim']():'',_0x379bc2=_0x582119[_0x60818b(0x1c5)]?_0x582119[_0x60818b(0x1c5)][_0x60818b(0x1b4)]()[_0x60818b(0x1cc)]():'';if(_0x2673e8)_0x1c21ba=_0x2673e8;else{if(_0x379bc2)_0x1c21ba=_0x379bc2;}}return{'ok':![],'status':_0xbfd445??null,'error':_0x1c21ba};}export function runNpxSkillsAddGlobal(_0x495dcd,_0x114465,_0x4833f1){const _0x52d5af=a216_0x49b05d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1a48c3=_0x4833f1?.[_0x52d5af(0x1ca)]??_0x52d5af(0x1c6),_0x4025c8=resolveNpmBin(_0x52d5af(0x1c8)),_0x449dd9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x114465,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x35e2b8=[_0x52d5af(0x1c8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x114465,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x52d5af(0x1ba)]('\x20');console['log']('*\x20'+_0x35e2b8);const _0x4578fa=spawnSync(_0x4025c8,_0x449dd9,{'cwd':_0x495dcd,'stdio':_0x1a48c3,'env':process.env,'shell':![]}),_0x1596f5=_0x4578fa[_0x52d5af(0x1bc)];if(_0x1596f5===0x0)return{'ok':!![],'status':0x0};let _0xa0f3a3=_0x52d5af(0x1cb)+(_0x1596f5??_0x52d5af(0x1bd));if(_0x1a48c3===_0x52d5af(0x1c7)){const _0x5094bf=_0x4578fa['stderr']?_0x4578fa['stderr'][_0x52d5af(0x1b4)]()[_0x52d5af(0x1cc)]():'',_0x4dccce=_0x4578fa['stdout']?_0x4578fa['stdout']['toString']()[_0x52d5af(0x1cc)]():'';if(_0x5094bf)_0xa0f3a3=_0x5094bf;else{if(_0x4dccce)_0xa0f3a3=_0x4dccce;}}return{'ok':![],'status':_0x1596f5??null,'error':_0xa0f3a3};}
1
+ const a216_0xb3bf56=a216_0x4791;(function(_0x227645,_0x21ba52){const _0x5bd3ba=a216_0x4791,_0x469ed5=_0x227645();while(!![]){try{const _0x15c644=-parseInt(_0x5bd3ba(0xd1))/0x1*(parseInt(_0x5bd3ba(0xcd))/0x2)+-parseInt(_0x5bd3ba(0xd4))/0x3+-parseInt(_0x5bd3ba(0xcc))/0x4*(-parseInt(_0x5bd3ba(0xcf))/0x5)+-parseInt(_0x5bd3ba(0xc5))/0x6+-parseInt(_0x5bd3ba(0xd9))/0x7*(-parseInt(_0x5bd3ba(0xc4))/0x8)+parseInt(_0x5bd3ba(0xd0))/0x9+parseInt(_0x5bd3ba(0xd6))/0xa;if(_0x15c644===_0x21ba52)break;else _0x469ed5['push'](_0x469ed5['shift']());}catch(_0x22ec42){_0x469ed5['push'](_0x469ed5['shift']());}}}(a216_0x29b0,0x33eb1));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 a216_0x29b0(){const _0x51a4d6=['skills','inherit','Lovrabet','143852BMTWng','14vpTZDX','stderr','30vWNxMl','355464efsHMm','43773djRZZa','trim','skill','75825nMnFqJ','exit\x20','4621890YiDvec','stdio','pipe','14utOEjO','unknown','status','toString','log','stdout','708816jlfhnY','2101944qKqqYz','npx','join','remove'];a216_0x29b0=function(){return _0x51a4d6;};return a216_0x29b0();}export const NPX_SKILLS_CLI=a216_0xb3bf56(0xc9);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';function a216_0x4791(_0x132c7b,_0xbc1d4b){_0x132c7b=_0x132c7b-0xc2;const _0x29b0fc=a216_0x29b0();let _0x47917d=_0x29b0fc[_0x132c7b];return _0x47917d;}export const DEFAULT_RABETBASE_SKILL_NAME=a216_0xb3bf56(0xcb);export function buildNpxSkillsAddArgv(_0x1fedac){const _0x365879=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1fedac&&_0x365879['push'](NPX_SKILLS_FLAG_SKILL,_0x1fedac),_0x365879;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a216_0xb3bf56(0xc6),...buildNpxSkillsAddArgv()][a216_0xb3bf56(0xc7)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a216_0xb3bf56(0xc6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4e8b69,_0x57a483){const _0xfa5f94=a216_0xb3bf56;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x19fa84=_0x57a483?.['stdio']??_0xfa5f94(0xca),_0x81f2c8=resolveNpmBin(_0xfa5f94(0xc6)),_0x5cfe64=buildNpxSkillsAddArgv(_0x57a483?.[_0xfa5f94(0xd3)]),_0x53f4be=[_0xfa5f94(0xc6),..._0x5cfe64][_0xfa5f94(0xc7)]('\x20');console['log']('*\x20'+_0x53f4be);const _0xd6dccd=spawnSync(_0x81f2c8,_0x5cfe64,{'cwd':_0x4e8b69,'stdio':_0x19fa84,'env':process.env,'shell':![]}),_0x5b579a=_0xd6dccd[_0xfa5f94(0xdb)];if(_0x5b579a===0x0)return{'ok':!![],'status':0x0};let _0xf83455=_0xfa5f94(0xd5)+(_0x5b579a??_0xfa5f94(0xda));if(_0x19fa84===_0xfa5f94(0xd8)){const _0x3c93ad=_0xd6dccd[_0xfa5f94(0xce)]?_0xd6dccd[_0xfa5f94(0xce)][_0xfa5f94(0xdc)]()[_0xfa5f94(0xd2)]():'',_0xc23d3a=_0xd6dccd[_0xfa5f94(0xc3)]?_0xd6dccd[_0xfa5f94(0xc3)][_0xfa5f94(0xdc)]()[_0xfa5f94(0xd2)]():'';if(_0x3c93ad)_0xf83455=_0x3c93ad;else{if(_0xc23d3a)_0xf83455=_0xc23d3a;}}return{'ok':![],'status':_0x5b579a??null,'error':_0xf83455};}export function runNpxSkillsRemove(_0x29ef2c,_0x39f34f,_0x23d121=LEGACY_RABETBASE_SKILL_SOURCE){const _0x506f63=a216_0xb3bf56;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e2b6a=_0x39f34f?.[_0x506f63(0xd7)]??_0x506f63(0xca),_0x4981a8=resolveNpmBin(_0x506f63(0xc6)),_0x45bb6a=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x506f63(0xc8),_0x23d121,NPX_SKILLS_FLAG_SKILL,_0x39f34f?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x39f34f?.['yes']?['-y']:[]],_0x349a6b=[_0x4981a8,..._0x45bb6a]['join']('\x20');console['log']('*\x20'+_0x349a6b);const _0x2f77c2=spawnSync(_0x4981a8,_0x45bb6a,{'cwd':_0x29ef2c,'stdio':_0x1e2b6a,'env':process.env,'shell':![]}),_0x388c29=_0x2f77c2[_0x506f63(0xdb)];if(_0x388c29===0x0)return{'ok':!![],'status':0x0};let _0x20bd7f=_0x506f63(0xd5)+(_0x388c29??'unknown');if(_0x1e2b6a===_0x506f63(0xd8)){const _0x2f16a4=_0x2f77c2[_0x506f63(0xce)]?_0x2f77c2[_0x506f63(0xce)]['toString']()[_0x506f63(0xd2)]():'',_0xfdd54b=_0x2f77c2['stdout']?_0x2f77c2['stdout']['toString']()['trim']():'';if(_0x2f16a4)_0x20bd7f=_0x2f16a4;else{if(_0xfdd54b)_0x20bd7f=_0xfdd54b;}}return{'ok':![],'status':_0x388c29??null,'error':_0x20bd7f};}export function runNpxSkillsAddGlobal(_0x2e3341,_0x5cf9e2,_0x2873d6){const _0x3474ab=a216_0xb3bf56;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1861fc=_0x2873d6?.[_0x3474ab(0xd7)]??'inherit',_0x479708=resolveNpmBin(_0x3474ab(0xc6)),_0x14bc05=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5cf9e2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3fd35b=[_0x3474ab(0xc6),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5cf9e2,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3474ab(0xc7)]('\x20');console[_0x3474ab(0xc2)]('*\x20'+_0x3fd35b);const _0x28abf4=spawnSync(_0x479708,_0x14bc05,{'cwd':_0x2e3341,'stdio':_0x1861fc,'env':process.env,'shell':![]}),_0x13fdec=_0x28abf4[_0x3474ab(0xdb)];if(_0x13fdec===0x0)return{'ok':!![],'status':0x0};let _0x1e4304='exit\x20'+(_0x13fdec??'unknown');if(_0x1861fc===_0x3474ab(0xd8)){const _0x9a54cb=_0x28abf4['stderr']?_0x28abf4[_0x3474ab(0xce)][_0x3474ab(0xdc)]()[_0x3474ab(0xd2)]():'',_0x40096e=_0x28abf4['stdout']?_0x28abf4[_0x3474ab(0xc3)][_0x3474ab(0xdc)]()['trim']():'';if(_0x9a54cb)_0x1e4304=_0x9a54cb;else{if(_0x40096e)_0x1e4304=_0x40096e;}}return{'ok':![],'status':_0x13fdec??null,'error':_0x1e4304};}
@@ -1 +1 @@
1
- (function(_0x5a38c6,_0xbeb538){const _0x4fdaf9=a217_0x235e,_0x1f7cf3=_0x5a38c6();while(!![]){try{const _0x4d6b54=parseInt(_0x4fdaf9(0x1dc))/0x1*(-parseInt(_0x4fdaf9(0x1d6))/0x2)+-parseInt(_0x4fdaf9(0x1d8))/0x3*(-parseInt(_0x4fdaf9(0x1d5))/0x4)+-parseInt(_0x4fdaf9(0x1cd))/0x5+-parseInt(_0x4fdaf9(0x1d3))/0x6+parseInt(_0x4fdaf9(0x1c7))/0x7*(parseInt(_0x4fdaf9(0x1c8))/0x8)+-parseInt(_0x4fdaf9(0x1cf))/0x9*(parseInt(_0x4fdaf9(0x1d0))/0xa)+-parseInt(_0x4fdaf9(0x1d9))/0xb*(-parseInt(_0x4fdaf9(0x1cc))/0xc);if(_0x4d6b54===_0xbeb538)break;else _0x1f7cf3['push'](_0x1f7cf3['shift']());}catch(_0x1b9c09){_0x1f7cf3['push'](_0x1f7cf3['shift']());}}}(a217_0x10d0,0x8c477));function a217_0x10d0(){const _0x29417b=['service','test','5311422PtxCzc','[REDACTED]','168968EfbtQy','1812lefTuU','rabetbase.command','51NLPcYX','651189ZxcEXa','error','entries','762YfqwGm','durationMs','2582167xSIZhc','8FyZKmL','message','command','stringify','336SxhdmM','2891665EZxVbQ','some','11106HSfupC','130PCjHjF'];a217_0x10d0=function(){return _0x29417b;};return a217_0x10d0();}function a217_0x235e(_0x5e7226,_0x22c670){_0x5e7226=_0x5e7226-0x1c6;const _0x10d0b3=a217_0x10d0();let _0x235e8f=_0x10d0b3[_0x5e7226];return _0x235e8f;}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,/^value$/i];function isSensitiveKey(_0x1703f0){const _0x182f7f=a217_0x235e;return SENSITIVE_PATTERNS[_0x182f7f(0x1ce)](_0x43e434=>_0x43e434[_0x182f7f(0x1d2)](_0x1703f0));}function sanitizeFlags(_0x19746f){const _0x1c7918=a217_0x235e,_0x95e85d={};for(const [_0x23a9ce,_0x2146d8]of Object[_0x1c7918(0x1db)](_0x19746f)){isSensitiveKey(_0x23a9ce)?_0x95e85d[_0x23a9ce]=_0x2146d8!=null&&_0x2146d8!==''?_0x1c7918(0x1d4):_0x2146d8:_0x95e85d[_0x23a9ce]=_0x2146d8;}return _0x95e85d;}export async function reportCommandTrace(_0xd8ba26){const _0xb7244d=a217_0x235e;try{const _0x5de7f8=sanitizeFlags(_0xd8ba26['flags']);await sendCliTraceLog({'spanName':_0xb7244d(0x1d7),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xd8ba26[_0xb7244d(0x1d1)],'command.name':_0xd8ba26[_0xb7244d(0x1ca)],'command.flags':JSON[_0xb7244d(0x1cb)](_0x5de7f8),..._0xd8ba26[_0xb7244d(0x1c6)]!=null?{'command.duration_ms':_0xd8ba26[_0xb7244d(0x1c6)]}:{},..._0xd8ba26['error']?{'command.error':_0xd8ba26['error']instanceof Error?_0xd8ba26[_0xb7244d(0x1da)][_0xb7244d(0x1c9)]:String(_0xd8ba26['error'])}:{}}});}catch{}}
1
+ function a217_0xbef6(){const _0x9a627e=['entries','flags','command','rabetbase.command','some','service','message','durationMs','542364eLmsSD','147720KwcJja','49PMnaRO','2756320uAVoyZ','error','4iBssju','18768420SkiJKT','207csCUSi','test','458076DZCOoy','319350yTLXEs','1199176VbDRWC'];a217_0xbef6=function(){return _0x9a627e;};return a217_0xbef6();}(function(_0x5e6cca,_0x3aa37f){const _0x2fd34e=a217_0x209e,_0x1b5470=_0x5e6cca();while(!![]){try{const _0x1d36a6=-parseInt(_0x2fd34e(0x1e7))/0x1+-parseInt(_0x2fd34e(0x1e8))/0x2+parseInt(_0x2fd34e(0x1f1))/0x3*(-parseInt(_0x2fd34e(0x1f6))/0x4)+parseInt(_0x2fd34e(0x1f4))/0x5+-parseInt(_0x2fd34e(0x1e6))/0x6*(parseInt(_0x2fd34e(0x1f3))/0x7)+-parseInt(_0x2fd34e(0x1f2))/0x8*(parseInt(_0x2fd34e(0x1f8))/0x9)+parseInt(_0x2fd34e(0x1f7))/0xa;if(_0x1d36a6===_0x3aa37f)break;else _0x1b5470['push'](_0x1b5470['shift']());}catch(_0x120e9c){_0x1b5470['push'](_0x1b5470['shift']());}}}(a217_0xbef6,0x5a26f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a217_0x209e(_0x41426c,_0x1b6f84){_0x41426c=_0x41426c-0x1e6;const _0xbef645=a217_0xbef6();let _0x209e3d=_0xbef645[_0x41426c];return _0x209e3d;}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,/^value$/i];function isSensitiveKey(_0x218ce0){const _0x5fc5a8=a217_0x209e;return SENSITIVE_PATTERNS[_0x5fc5a8(0x1ed)](_0x3c631c=>_0x3c631c[_0x5fc5a8(0x1f9)](_0x218ce0));}function sanitizeFlags(_0x19d54c){const _0x5b99b9=a217_0x209e,_0x371df0={};for(const [_0x1a5685,_0x221238]of Object[_0x5b99b9(0x1e9)](_0x19d54c)){isSensitiveKey(_0x1a5685)?_0x371df0[_0x1a5685]=_0x221238!=null&&_0x221238!==''?'[REDACTED]':_0x221238:_0x371df0[_0x1a5685]=_0x221238;}return _0x371df0;}export async function reportCommandTrace(_0x47e4f1){const _0x4ed97b=a217_0x209e;try{const _0x585732=sanitizeFlags(_0x47e4f1[_0x4ed97b(0x1ea)]);await sendCliTraceLog({'spanName':_0x4ed97b(0x1ec),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x47e4f1[_0x4ed97b(0x1ee)],'command.name':_0x47e4f1[_0x4ed97b(0x1eb)],'command.flags':JSON['stringify'](_0x585732),..._0x47e4f1['durationMs']!=null?{'command.duration_ms':_0x47e4f1[_0x4ed97b(0x1f0)]}:{},..._0x47e4f1[_0x4ed97b(0x1f5)]?{'command.error':_0x47e4f1[_0x4ed97b(0x1f5)]instanceof Error?_0x47e4f1[_0x4ed97b(0x1f5)][_0x4ed97b(0x1ef)]:String(_0x47e4f1['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x5d2d56,_0x252be8){var _0x159310=a218_0x2e53,_0xdd88c9=_0x5d2d56();while(!![]){try{var _0x114d3a=parseInt(_0x159310(0x1ab))/0x1*(parseInt(_0x159310(0x1b0))/0x2)+parseInt(_0x159310(0x1b3))/0x3*(parseInt(_0x159310(0x1b2))/0x4)+-parseInt(_0x159310(0x1ae))/0x5*(-parseInt(_0x159310(0x1ac))/0x6)+parseInt(_0x159310(0x1a9))/0x7*(-parseInt(_0x159310(0x1b4))/0x8)+parseInt(_0x159310(0x1a5))/0x9*(parseInt(_0x159310(0x1b1))/0xa)+-parseInt(_0x159310(0x1aa))/0xb*(parseInt(_0x159310(0x1a6))/0xc)+-parseInt(_0x159310(0x1a8))/0xd;if(_0x114d3a===_0x252be8)break;else _0xdd88c9['push'](_0xdd88c9['shift']());}catch(_0x45d77d){_0xdd88c9['push'](_0xdd88c9['shift']());}}}(a218_0x3130,0x5b85a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a218_0x3130(){var _0x49ecd9=['error','41630JcKxxe','Failed\x20to\x20report\x20CLI\x20help\x20trace:','36fQyUNU','611090ucAaCp','4ZVbQET','1902378fwdxDp','539992uteInY','108FcGqIi','220332AIfajZ','service','27047696srieUJ','7tnVorw','99TqUvTU','38685KSyJlD','450EcOkyM'];a218_0x3130=function(){return _0x49ecd9;};return a218_0x3130();}function a218_0x2e53(_0x263ef3,_0x14f19d){_0x263ef3=_0x263ef3-0x1a5;var _0x313040=a218_0x3130();var _0x2e5354=_0x313040[_0x263ef3];return _0x2e5354;}export async function reportCliHelpTrace(_0xcbabdd,_0x53c061){var _0x2566ec=a218_0x2e53;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0xcbabdd,..._0x53c061?.['service']&&{'rabetbase.help.service':_0x53c061[_0x2566ec(0x1a7)]}}});}catch(_0x510272){console[_0x2566ec(0x1ad)](_0x2566ec(0x1af),_0x510272);}}
1
+ function a218_0x4557(_0x280f26,_0x343a56){_0x280f26=_0x280f26-0x13e;var _0x1162cb=a218_0x1162();var _0x4557b5=_0x1162cb[_0x280f26];return _0x4557b5;}(function(_0x2b692f,_0xbfea0){var _0x1d0580=a218_0x4557,_0x18537e=_0x2b692f();while(!![]){try{var _0x59d485=-parseInt(_0x1d0580(0x149))/0x1*(parseInt(_0x1d0580(0x140))/0x2)+-parseInt(_0x1d0580(0x143))/0x3*(-parseInt(_0x1d0580(0x141))/0x4)+-parseInt(_0x1d0580(0x148))/0x5*(parseInt(_0x1d0580(0x147))/0x6)+parseInt(_0x1d0580(0x142))/0x7*(-parseInt(_0x1d0580(0x144))/0x8)+parseInt(_0x1d0580(0x14a))/0x9*(-parseInt(_0x1d0580(0x13e))/0xa)+parseInt(_0x1d0580(0x14c))/0xb*(-parseInt(_0x1d0580(0x14d))/0xc)+parseInt(_0x1d0580(0x14b))/0xd;if(_0x59d485===_0xbfea0)break;else _0x18537e['push'](_0x18537e['shift']());}catch(_0x513f69){_0x18537e['push'](_0x18537e['shift']());}}}(a218_0x1162,0xa574c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a218_0x1162(){var _0x404059=['36sjNwcX','33676474iwVisY','11RVPpug','10840224ftUXZn','877270hZITjb','error','1087432kFtcjt','16OltAkI','8281fOjiyP','374829fUgDKi','3000PUFfBO','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','20934aLwShs','245HQXlkU','1Hositc'];a218_0x1162=function(){return _0x404059;};return a218_0x1162();}export async function reportCliHelpTrace(_0xc3a7fa,_0x23c06c){var _0x3ca58f=a218_0x4557;try{await sendCliTraceLog({'spanName':_0x3ca58f(0x146),'logData':{'rabetbase.help.kind':_0xc3a7fa,..._0x23c06c?.['service']&&{'rabetbase.help.service':_0x23c06c['service']}}});}catch(_0x11054f){console[_0x3ca58f(0x13f)](_0x3ca58f(0x145),_0x11054f);}}
@@ -1 +1 @@
1
- function a219_0x1505(){const _0x165626=['2696vRstVO','815896ejrHUl','unknown','1460634aGmygZ','5500jkkTND','13wPFTJG','178195MTPpRO','2198708OgyMno','840GJEAlq','nickname','3126didcNX','1098zhVWav','daily','production'];a219_0x1505=function(){return _0x165626;};return a219_0x1505();}function a219_0x30f6(_0x58287c,_0x5b28ff){_0x58287c=_0x58287c-0x155;const _0x15051e=a219_0x1505();let _0x30f6e9=_0x15051e[_0x58287c];return _0x30f6e9;}(function(_0x80d0c5,_0x247a66){const _0x596188=a219_0x30f6,_0x299a93=_0x80d0c5();while(!![]){try{const _0x1ec8db=-parseInt(_0x596188(0x15f))/0x1*(parseInt(_0x596188(0x15a))/0x2)+-parseInt(_0x596188(0x15d))/0x3+parseInt(_0x596188(0x161))/0x4+parseInt(_0x596188(0x160))/0x5+parseInt(_0x596188(0x156))/0x6*(parseInt(_0x596188(0x162))/0x7)+parseInt(_0x596188(0x15b))/0x8+parseInt(_0x596188(0x157))/0x9*(parseInt(_0x596188(0x15e))/0xa);if(_0x1ec8db===_0x247a66)break;else _0x299a93['push'](_0x299a93['shift']());}catch(_0xb91aa){_0x299a93['push'](_0x299a93['shift']());}}}(a219_0x1505,0x4c4c9));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 _0xe8322d=a219_0x30f6,_0x39ff59=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4e6e14=_0x39ff59?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xe8322d(0x15c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xe8322d(0x158):_0xe8322d(0x159))}),setUserContext({'id':_0x4e6e14?.['id'],'username':_0x4e6e14?.['username'],'nickname':_0x4e6e14?.[_0xe8322d(0x155)],'email':_0x4e6e14?.['email'],'tenantCode':_0x4e6e14?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x39ff59;}
1
+ (function(_0x2b670d,_0x2ac98f){const _0x4242c9=a219_0x208a,_0x44de36=_0x2b670d();while(!![]){try{const _0x29442e=-parseInt(_0x4242c9(0x140))/0x1+parseInt(_0x4242c9(0x137))/0x2+parseInt(_0x4242c9(0x136))/0x3*(-parseInt(_0x4242c9(0x13a))/0x4)+parseInt(_0x4242c9(0x13c))/0x5+parseInt(_0x4242c9(0x142))/0x6*(parseInt(_0x4242c9(0x138))/0x7)+parseInt(_0x4242c9(0x141))/0x8+-parseInt(_0x4242c9(0x135))/0x9;if(_0x29442e===_0x2ac98f)break;else _0x44de36['push'](_0x44de36['shift']());}catch(_0xbb90cc){_0x44de36['push'](_0x44de36['shift']());}}}(a219_0x487c,0xa90cd));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=![];function a219_0x487c(){const _0x4e49f0=['1612845wfxxPW','unknown','tenant_code','nickname','410280ZOFMrx','4835720ETDSJz','444jYDaDP','user','username','5638986tVPdoV','3lrnOCa','1871122tJKGHO','52843YVRymc','daily','2767832DfZWwG','tenant'];a219_0x487c=function(){return _0x4e49f0;};return a219_0x487c();}function a219_0x208a(_0x162387,_0x2ef168){_0x162387=_0x162387-0x134;const _0x487cf2=a219_0x487c();let _0x208a31=_0x487cf2[_0x162387];return _0x208a31;}export async function ensureCliOtelTraceConfig(){const _0xbf9281=a219_0x208a,_0x4647c4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x47544e=_0x4647c4?.[_0xbf9281(0x143)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xbf9281(0x13d)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xbf9281(0x139):'production')}),setUserContext({'id':_0x47544e?.['id'],'username':_0x47544e?.[_0xbf9281(0x134)],'nickname':_0x47544e?.[_0xbf9281(0x13f)],'email':_0x47544e?.['email'],'tenantCode':_0x47544e?.[_0xbf9281(0x13b)][_0xbf9281(0x13e)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4647c4;}
@@ -1 +1 @@
1
- (function(_0x4d3040,_0x1ab46e){const _0x51801a=a220_0x5309,_0x3ad0f5=_0x4d3040();while(!![]){try{const _0x494a98=-parseInt(_0x51801a(0x121))/0x1+-parseInt(_0x51801a(0x11a))/0x2*(-parseInt(_0x51801a(0x11d))/0x3)+parseInt(_0x51801a(0x117))/0x4+-parseInt(_0x51801a(0x11b))/0x5*(-parseInt(_0x51801a(0x118))/0x6)+-parseInt(_0x51801a(0x119))/0x7*(-parseInt(_0x51801a(0x114))/0x8)+parseInt(_0x51801a(0x123))/0x9+parseInt(_0x51801a(0x11c))/0xa*(-parseInt(_0x51801a(0x11f))/0xb);if(_0x494a98===_0x1ab46e)break;else _0x3ad0f5['push'](_0x3ad0f5['shift']());}catch(_0x84c834){_0x3ad0f5['push'](_0x3ad0f5['shift']());}}}(a220_0x175b,0x2af67));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a220_0x175b(){const _0x5d83e3=['then','1401432DYDaXU','10698tybaLG','1549289XrGhNH','2QeHMxI','65BAYvRt','320nOYMUF','456912yrdjRC','SIGTERM','247489IgxYbh','exit','121721pEHFqh','SIGINT','2434464crxOrv','8sasXGI','once'];a220_0x175b=function(){return _0x5d83e3;};return a220_0x175b();}function a220_0x5309(_0x452f16,_0x5f1ce1){_0x452f16=_0x452f16-0x114;const _0x175b46=a220_0x175b();let _0x5309b7=_0x175b46[_0x452f16];return _0x5309b7;}export function registerOtelShutdownOnExit(){const _0x5a627e=a220_0x5309;process[_0x5a627e(0x115)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xcb5178=()=>{const _0x592f83=_0x5a627e;void flushOtelNodeIfUsed()[_0x592f83(0x116)](()=>process[_0x592f83(0x120)](0x0));};process[_0x5a627e(0x115)](_0x5a627e(0x122),_0xcb5178),process[_0x5a627e(0x115)](_0x5a627e(0x11e),_0xcb5178);}export async function exitWithOtelShutdown(_0x3c61f8){const _0x58a406=a220_0x5309;await flushOtelNodeIfUsed(),process[_0x58a406(0x120)](_0x3c61f8);}
1
+ (function(_0x316b62,_0x558e81){const _0x543fc6=a220_0x31eb,_0x2ae94b=_0x316b62();while(!![]){try{const _0xf8e8d5=parseInt(_0x543fc6(0x15c))/0x1*(-parseInt(_0x543fc6(0x159))/0x2)+-parseInt(_0x543fc6(0x156))/0x3*(-parseInt(_0x543fc6(0x15d))/0x4)+-parseInt(_0x543fc6(0x15e))/0x5+parseInt(_0x543fc6(0x15a))/0x6+-parseInt(_0x543fc6(0x154))/0x7*(-parseInt(_0x543fc6(0x151))/0x8)+-parseInt(_0x543fc6(0x157))/0x9+parseInt(_0x543fc6(0x153))/0xa;if(_0xf8e8d5===_0x558e81)break;else _0x2ae94b['push'](_0x2ae94b['shift']());}catch(_0x238c02){_0x2ae94b['push'](_0x2ae94b['shift']());}}}(a220_0x37c8,0xd5d0a));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a220_0x37c8(){const _0x4061c8=['6812SjcvWP','4286130zamUpw','320gDRXhS','once','12359660EJbpVi','272307NyknjD','beforeExit','276OTpTgu','11876940CvFmcu','exit','292382khxlVu','10272546IHVXoA','SIGTERM','11nyMlWe'];a220_0x37c8=function(){return _0x4061c8;};return a220_0x37c8();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a220_0x31eb(_0x204b97,_0x40d843){_0x204b97=_0x204b97-0x151;const _0x37c860=a220_0x37c8();let _0x31ebba=_0x37c860[_0x204b97];return _0x31ebba;}export function registerOtelShutdownOnExit(){const _0x3ef86e=a220_0x31eb;process['once'](_0x3ef86e(0x155),()=>{void flushOtelNodeIfUsed();});const _0x2bf624=()=>{const _0x1b9f44=_0x3ef86e;void flushOtelNodeIfUsed()['then'](()=>process[_0x1b9f44(0x158)](0x0));};process[_0x3ef86e(0x152)]('SIGINT',_0x2bf624),process[_0x3ef86e(0x152)](_0x3ef86e(0x15b),_0x2bf624);}export async function exitWithOtelShutdown(_0x5286b0){const _0x4cabfa=a220_0x31eb;await flushOtelNodeIfUsed(),process[_0x4cabfa(0x158)](_0x5286b0);}
@@ -1 +1 @@
1
- const a221_0x5b3a91=a221_0x5750;function a221_0xb07c(){const _0x52e9f4=['1133vkLUcK','traceparent','manual','5WKxkCl','spanName','145180FROKsQ','7pQpwIE','134CkEXoY','1127051KtNsYQ','rabetbase-cli','1137304aAykrI','801648wLmBNR','logData','13188xWnNvB','174980KNFTar','version','4834626WkOQmP'];a221_0xb07c=function(){return _0x52e9f4;};return a221_0xb07c();}(function(_0x41ccd4,_0x3bce57){const _0x2f0e46=a221_0x5750,_0x4fd168=_0x41ccd4();while(!![]){try{const _0x569591=parseInt(_0x2f0e46(0x113))/0x1+parseInt(_0x2f0e46(0x112))/0x2*(parseInt(_0x2f0e46(0x107))/0x3)+-parseInt(_0x2f0e46(0x110))/0x4+-parseInt(_0x2f0e46(0x10e))/0x5*(-parseInt(_0x2f0e46(0x10a))/0x6)+parseInt(_0x2f0e46(0x111))/0x7*(parseInt(_0x2f0e46(0x104))/0x8)+parseInt(_0x2f0e46(0x105))/0x9+parseInt(_0x2f0e46(0x108))/0xa*(-parseInt(_0x2f0e46(0x10b))/0xb);if(_0x569591===_0x3bce57)break;else _0x4fd168['push'](_0x4fd168['shift']());}catch(_0x2b555f){_0x4fd168['push'](_0x4fd168['shift']());}}}(a221_0xb07c,0x975e0));import{sendTraceLog}from'@lovrabet/otel-logger';function a221_0x5750(_0x3d1636,_0x16d55e){_0x3d1636=_0x3d1636-0x103;const _0xb07cb4=a221_0xb07c();let _0x57506e=_0xb07cb4[_0x3d1636];return _0x57506e;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a221_0x5b3a91(0x103);export async function sendCliTraceLog(_0x3fcb69){const _0x516598=a221_0x5b3a91;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3fcb69['traceName']??DEFAULT_TRACE_NAME,'version':_0x3fcb69[_0x516598(0x109)]??getCliVersion(),'spanName':_0x3fcb69[_0x516598(0x10f)],'eventType':_0x516598(0x10d),'logData':_0x3fcb69[_0x516598(0x106)],..._0x3fcb69['traceparent']&&{'traceparent':_0x3fcb69[_0x516598(0x10c)]}});}
1
+ const a221_0x59faa6=a221_0xc874;function a221_0x5e28(){const _0x1fc313=['rabetbase-cli','2798sZoMXX','16945522fOIqQt','548lVGhUs','version','1623150ZxSWYV','spanName','manual','307NyCEkq','3327624hoqsAh','traceparent','7FZDlwW','logData','4076820wTXLim','2120390VXcevN','6mPEHrF','11829LOPqGc'];a221_0x5e28=function(){return _0x1fc313;};return a221_0x5e28();}(function(_0x2f641b,_0x346d55){const _0x878934=a221_0xc874,_0x424666=_0x2f641b();while(!![]){try{const _0x1923dc=parseInt(_0x878934(0x13e))/0x1*(-parseInt(_0x878934(0x137))/0x2)+parseInt(_0x878934(0x146))/0x3*(-parseInt(_0x878934(0x139))/0x4)+parseInt(_0x878934(0x144))/0x5*(-parseInt(_0x878934(0x145))/0x6)+parseInt(_0x878934(0x141))/0x7*(-parseInt(_0x878934(0x13f))/0x8)+parseInt(_0x878934(0x13b))/0x9+parseInt(_0x878934(0x143))/0xa+parseInt(_0x878934(0x138))/0xb;if(_0x1923dc===_0x346d55)break;else _0x424666['push'](_0x424666['shift']());}catch(_0x523c40){_0x424666['push'](_0x424666['shift']());}}}(a221_0x5e28,0x4dd63));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=a221_0x59faa6(0x147);function a221_0xc874(_0x41ddff,_0x3d22a7){_0x41ddff=_0x41ddff-0x137;const _0x5e2865=a221_0x5e28();let _0xc87480=_0x5e2865[_0x41ddff];return _0xc87480;}export async function sendCliTraceLog(_0x3931dd){const _0x1e14a8=a221_0x59faa6;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3931dd['traceName']??DEFAULT_TRACE_NAME,'version':_0x3931dd[_0x1e14a8(0x13a)]??getCliVersion(),'spanName':_0x3931dd[_0x1e14a8(0x13c)],'eventType':_0x1e14a8(0x13d),'logData':_0x3931dd[_0x1e14a8(0x142)],..._0x3931dd[_0x1e14a8(0x140)]&&{'traceparent':_0x3931dd[_0x1e14a8(0x140)]}});}
@@ -1 +1 @@
1
- const a222_0x68ad94=a222_0x8b6e;(function(_0x31a807,_0xae8649){const _0x30ab3b=a222_0x8b6e,_0x546df9=_0x31a807();while(!![]){try{const _0x354dcd=parseInt(_0x30ab3b(0x1e4))/0x1*(parseInt(_0x30ab3b(0x1e2))/0x2)+parseInt(_0x30ab3b(0x1df))/0x3+parseInt(_0x30ab3b(0x1e5))/0x4+parseInt(_0x30ab3b(0x1e1))/0x5*(-parseInt(_0x30ab3b(0x1eb))/0x6)+-parseInt(_0x30ab3b(0x1e6))/0x7*(-parseInt(_0x30ab3b(0x1ea))/0x8)+-parseInt(_0x30ab3b(0x1db))/0x9+-parseInt(_0x30ab3b(0x1e9))/0xa;if(_0x354dcd===_0xae8649)break;else _0x546df9['push'](_0x546df9['shift']());}catch(_0x588033){_0x546df9['push'](_0x546df9['shift']());}}}(a222_0x349f,0x1e5c9));function a222_0x349f(){const _0x1b5dc8=['192942eBqQhw','sanitize','5ztWjjS','453150wTUKhJ','join','1BCexzf','154804qVwbwl','277914KCCSsl','truncated','description','1797950nSzjZL','24AtPmHF','258546bDHBmu','redactionKinds','913041IkjIMB','issue.log.collect','redactionCount','originalBytes'];a222_0x349f=function(){return _0x1b5dc8;};return a222_0x349f();}function a222_0x8b6e(_0x252acc,_0x37d703){_0x252acc=_0x252acc-0x1db;const _0x349f8f=a222_0x349f();let _0x8b6e54=_0x349f8f[_0x252acc];return _0x8b6e54;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a222_0x68ad94(0x1dc);export async function sendPlatformIssueCollectLog(_0x14dffc){const _0xe144c5=a222_0x68ad94;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x14dffc['title'],'issue.description':_0x14dffc[_0xe144c5(0x1e8)],..._0x14dffc['sanitize']?{'issue.description_original_bytes':_0x14dffc[_0xe144c5(0x1e0)][_0xe144c5(0x1de)],'issue.description_truncated':_0x14dffc[_0xe144c5(0x1e0)][_0xe144c5(0x1e7)],'issue.description_redactions':_0x14dffc['sanitize'][_0xe144c5(0x1dd)],'issue.description_redaction_kinds':_0x14dffc['sanitize'][_0xe144c5(0x1ec)][_0xe144c5(0x1e3)](',')}:{}}});}
1
+ const a222_0x2a8463=a222_0x5000;(function(_0x4f8368,_0x522acf){const _0x370f23=a222_0x5000,_0xd021e8=_0x4f8368();while(!![]){try{const _0x541e7f=-parseInt(_0x370f23(0x142))/0x1*(-parseInt(_0x370f23(0x13b))/0x2)+parseInt(_0x370f23(0x141))/0x3*(-parseInt(_0x370f23(0x148))/0x4)+parseInt(_0x370f23(0x13c))/0x5*(parseInt(_0x370f23(0x137))/0x6)+parseInt(_0x370f23(0x135))/0x7+-parseInt(_0x370f23(0x140))/0x8*(parseInt(_0x370f23(0x136))/0x9)+-parseInt(_0x370f23(0x146))/0xa*(-parseInt(_0x370f23(0x13e))/0xb)+-parseInt(_0x370f23(0x138))/0xc*(parseInt(_0x370f23(0x139))/0xd);if(_0x541e7f===_0x522acf)break;else _0xd021e8['push'](_0xd021e8['shift']());}catch(_0x4714ee){_0xd021e8['push'](_0xd021e8['shift']());}}}(a222_0x21d2,0x1f43f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a222_0x21d2(){const _0x56b195=['108670mKdcfT','join','90892lsZzlK','sanitize','1278949TCFinZ','9WrcEYA','378054sNnIfS','4342812HZYOwR','13PVicLp','truncated','554xYJwHK','20LqdSSS','platform-issue-log-collect','231GfbftM','originalBytes','1819864UiBpbh','24lKlDbI','853qBShDN','description','title','issue.log.collect'];a222_0x21d2=function(){return _0x56b195;};return a222_0x21d2();}function a222_0x5000(_0x248479,_0x4fbbee){_0x248479=_0x248479-0x135;const _0x21d26a=a222_0x21d2();let _0x50005b=_0x21d26a[_0x248479];return _0x50005b;}export const PLATFORM_ISSUE_TRACE_NAME=a222_0x2a8463(0x13d);export const PLATFORM_ISSUE_SPAN_NAME=a222_0x2a8463(0x145);export async function sendPlatformIssueCollectLog(_0x2e92c6){const _0x358ffd=a222_0x2a8463;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2e92c6[_0x358ffd(0x144)],'issue.description':_0x2e92c6[_0x358ffd(0x143)],..._0x2e92c6[_0x358ffd(0x149)]?{'issue.description_original_bytes':_0x2e92c6[_0x358ffd(0x149)][_0x358ffd(0x13f)],'issue.description_truncated':_0x2e92c6['sanitize'][_0x358ffd(0x13a)],'issue.description_redactions':_0x2e92c6['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x2e92c6[_0x358ffd(0x149)]['redactionKinds'][_0x358ffd(0x147)](',')}:{}}});}