@lovrabet/rabetbase-cli 2.3.9-beta.1 → 2.3.9-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 (258) 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/async-task.js +1 -0
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a166_0x24d0f6=a166_0x2c5d;(function(_0x7441c2,_0x38bf69){const _0x2a007e=a166_0x2c5d,_0x11d06a=_0x7441c2();while(!![]){try{const _0x28face=parseInt(_0x2a007e(0x128))/0x1*(-parseInt(_0x2a007e(0x11e))/0x2)+parseInt(_0x2a007e(0x13b))/0x3+-parseInt(_0x2a007e(0x12e))/0x4+parseInt(_0x2a007e(0x129))/0x5+-parseInt(_0x2a007e(0x141))/0x6+-parseInt(_0x2a007e(0x136))/0x7*(parseInt(_0x2a007e(0x120))/0x8)+parseInt(_0x2a007e(0x134))/0x9*(parseInt(_0x2a007e(0x13d))/0xa);if(_0x28face===_0x38bf69)break;else _0x11d06a['push'](_0x11d06a['shift']());}catch(_0x2b8f0d){_0x11d06a['push'](_0x11d06a['shift']());}}}(a166_0x2690,0x8101b));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';function a166_0x2690(){const _0xba8742=['\x20missing,\x20','lockFilePath','2244300BfeYoX','lockKey','20noKdln','\x20remote-only','tableData','length','5329140laFooE','path','has','status','read','45482tQCFpB','\x20unchanged','31288wXfUsE','sqls','All\x20SQL\x20queries\x20are\x20in\x20sync.','\x20modified,\x20','totalCount','paging','hash','remote','15mXsYbf','1368405QTjDnp','sql','boolean','push','sqlRoot','2313916PZtesF','sqlName','relativePath','appCode','bool','map','9047574kAXmZD','\x20added,\x20','1246rrronq','keys','sqlCode'];a166_0x2690=function(){return _0xba8742;};return a166_0x2690();}function a166_0x2c5d(_0x4565d1,_0xc5614b){_0x4565d1=_0x4565d1-0x11a;const _0x2690f5=a166_0x2690();let _0x2c5d71=_0x2690f5[_0x4565d1];return _0x2c5d71;}import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x5ae6a1){const _0x16da59=a166_0x2c5d,_0x1c2df6=[];let _0x2c45b6=0x1;while(!![]){const _0x5c87ca=await listSqlQueries(_0x5ae6a1,{'currentPage':_0x2c45b6,'pageSize':PAGE_SIZE}),_0x58feaa=_0x5c87ca[_0x16da59(0x13f)]??[];_0x1c2df6[_0x16da59(0x12c)](..._0x58feaa[_0x16da59(0x133)](_0x5c2eeb=>_0x5c2eeb[_0x16da59(0x138)]));if(_0x58feaa[_0x16da59(0x140)]===0x0)break;const _0x382aa5=_0x5c87ca[_0x16da59(0x125)]?.[_0x16da59(0x124)];if(_0x382aa5!=null?_0x1c2df6['length']>=_0x382aa5:_0x58feaa[_0x16da59(0x140)]<PAGE_SIZE)break;_0x2c45b6++;}return _0x1c2df6;}export const sqlStatus={'service':a166_0x24d0f6(0x12a),'command':'status','description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a166_0x24d0f6(0x11d),'flags':[{'name':a166_0x24d0f6(0x127),'type':a166_0x24d0f6(0x12b),'description':'Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'}],async 'execute'(_0x3cdaba){const _0x340ece=a166_0x24d0f6,_0x46189a=loadSqlProjectConfig(_0x3cdaba[_0x340ece(0x131)]),_0x3d7c58=await readSqlLockFile(_0x46189a[_0x340ece(0x13a)]),{appLock:_0x1ae63d}=ensureSqlLockScope(_0x3d7c58??createEmptySqlLock(),_0x46189a[_0x340ece(0x131)],_0x46189a[_0x340ece(0x12d)],_0x340ece(0x11c)),_0x42a849=await scanLocalSqlQueries(_0x46189a),_0x5268c4=[],_0xc9f0e4=[],_0xf000=[],_0x4f7f42=[],_0x1af070=new Set(_0x42a849['map'](_0x3bdb3f=>_0x3bdb3f[_0x340ece(0x13c)]));for(const _0x5e76fb of _0x42a849){const _0x2cfb32=await computeSqlFileHash(_0x5e76fb['filePath']),_0x2a9632=_0x1ae63d[_0x340ece(0x121)][_0x5e76fb['lockKey']],_0xc176de=!!_0x2a9632&&_0x2a9632[_0x340ece(0x11a)]!==_0x5e76fb[_0x340ece(0x130)],_0x3dc14a=!!_0x2a9632&&!!_0x5e76fb[_0x340ece(0x12f)]&&_0x2a9632[_0x340ece(0x12f)]!==_0x5e76fb[_0x340ece(0x12f)];if(!_0x2a9632)_0x5268c4['push'](_0x5e76fb[_0x340ece(0x13c)]);else _0x2a9632[_0x340ece(0x126)]!==_0x2cfb32||_0xc176de||_0x3dc14a?_0xc9f0e4[_0x340ece(0x12c)](_0x5e76fb['lockKey']):_0xf000[_0x340ece(0x12c)](_0x5e76fb['lockKey']);}for(const _0x16874c of Object[_0x340ece(0x137)](_0x1ae63d['sqls'])){!_0x1af070[_0x340ece(0x11b)](_0x16874c)&&_0x4f7f42[_0x340ece(0x12c)](_0x16874c);}const _0x47f55d=[];if(_0x3cdaba[_0x340ece(0x132)](_0x340ece(0x127))){const _0x300f64=await fetchAllSqlCodes(_0x3cdaba[_0x340ece(0x131)]);for(const _0x4e2b85 of _0x300f64){!_0x1af070[_0x340ece(0x11b)](_0x4e2b85)&&!_0x1ae63d[_0x340ece(0x121)][_0x4e2b85]&&_0x47f55d[_0x340ece(0x12c)](_0x4e2b85);}}const _0x367578=_0x5268c4[_0x340ece(0x140)]===0x0&&_0xc9f0e4[_0x340ece(0x140)]===0x0&&_0x4f7f42[_0x340ece(0x140)]===0x0&&_0x47f55d[_0x340ece(0x140)]===0x0;return{'ok':!![],'data':{'added':_0x5268c4,'modified':_0xc9f0e4,'missing':_0x4f7f42,'unchanged':_0xf000,'remoteOnly':_0x47f55d},'message':_0x367578?_0x340ece(0x122):_0x5268c4['length']+_0x340ece(0x135)+_0xc9f0e4[_0x340ece(0x140)]+_0x340ece(0x123)+_0x4f7f42[_0x340ece(0x140)]+_0x340ece(0x139)+_0xf000[_0x340ece(0x140)]+_0x340ece(0x11f)+(_0x47f55d['length']>0x0?',\x20'+_0x47f55d[_0x340ece(0x140)]+_0x340ece(0x13e):'')};}};
1
+ const a174_0x1a0452=a174_0x19b5;(function(_0x4a7689,_0x3c27bc){const _0x141f9b=a174_0x19b5,_0x29caf6=_0x4a7689();while(!![]){try{const _0x9a3702=parseInt(_0x141f9b(0xb9))/0x1*(parseInt(_0x141f9b(0xb4))/0x2)+-parseInt(_0x141f9b(0xae))/0x3*(-parseInt(_0x141f9b(0xb3))/0x4)+parseInt(_0x141f9b(0xad))/0x5*(parseInt(_0x141f9b(0xb0))/0x6)+parseInt(_0x141f9b(0xb8))/0x7+parseInt(_0x141f9b(0xb7))/0x8*(parseInt(_0x141f9b(0xb6))/0x9)+-parseInt(_0x141f9b(0x95))/0xa+-parseInt(_0x141f9b(0xa2))/0xb;if(_0x9a3702===_0x3c27bc)break;else _0x29caf6['push'](_0x29caf6['shift']());}catch(_0x406109){_0x29caf6['push'](_0x29caf6['shift']());}}}(a174_0x34e1,0x432cf));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a174_0x19b5(_0x359cbe,_0x31f4a1){_0x359cbe=_0x359cbe-0x94;const _0x34e18c=a174_0x34e1();let _0x19b563=_0x34e18c[_0x359cbe];return _0x19b563;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x14b0a5){const _0x1100d3=a174_0x19b5,_0xaa07b7=[];let _0x417c50=0x1;while(!![]){const _0x16d9f1=await listSqlQueries(_0x14b0a5,{'currentPage':_0x417c50,'pageSize':PAGE_SIZE}),_0x21086c=_0x16d9f1[_0x1100d3(0x9f)]??[];_0xaa07b7['push'](..._0x21086c['map'](_0x24b095=>_0x24b095['sqlCode']));if(_0x21086c[_0x1100d3(0x9a)]===0x0)break;const _0x39e37e=_0x16d9f1[_0x1100d3(0xb5)]?.[_0x1100d3(0xa8)];if(_0x39e37e!=null?_0xaa07b7[_0x1100d3(0x9a)]>=_0x39e37e:_0x21086c[_0x1100d3(0x9a)]<PAGE_SIZE)break;_0x417c50++;}return _0xaa07b7;}function a174_0x34e1(){const _0x3073d7=['boolean','bool','length','appCode','\x20modified,\x20','status','read','tableData','lockFilePath','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','11404602UDUdCm','has','relativePath','remote','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','totalCount','sqls','sqlRoot','All\x20SQL\x20queries\x20are\x20in\x20sync.','keys','14225uKVOmQ','99VttrPK','push','978cQGHnr','sql','\x20missing,\x20','62728QEBQme','2308CEAViO','paging','153324dEBHnv','8DtnzaG','316687zwzuTX','392iKWdCP','\x20remote-only','1839530fBFERw','sqlName','path'];a174_0x34e1=function(){return _0x3073d7;};return a174_0x34e1();}export const sqlStatus={'service':a174_0x1a0452(0xb1),'command':'status','description':a174_0x1a0452(0xa1),'risk':a174_0x1a0452(0x9e),'flags':[{'name':a174_0x1a0452(0xa5),'type':a174_0x1a0452(0x98),'description':a174_0x1a0452(0xa7)}],async 'execute'(_0x4e5934){const _0x1d759a=a174_0x1a0452,_0x55ab6e=loadSqlProjectConfig(_0x4e5934['appCode']),_0x46d2ce=await readSqlLockFile(_0x55ab6e[_0x1d759a(0xa0)]),{appLock:_0x303ef5}=ensureSqlLockScope(_0x46d2ce??createEmptySqlLock(),_0x55ab6e['appCode'],_0x55ab6e[_0x1d759a(0xaa)],_0x1d759a(0x9d)),_0x7d22e8=await scanLocalSqlQueries(_0x55ab6e),_0x445a50=[],_0x1df85f=[],_0x33e07d=[],_0x34cea0=[],_0x38927c=new Set(_0x7d22e8['map'](_0x522d91=>_0x522d91['lockKey']));for(const _0x567f12 of _0x7d22e8){const _0x29ccef=await computeSqlFileHash(_0x567f12['filePath']),_0x24bc7b=_0x303ef5[_0x1d759a(0xa9)][_0x567f12[_0x1d759a(0xa6)]],_0x32fd72=!!_0x24bc7b&&_0x24bc7b[_0x1d759a(0x97)]!==_0x567f12[_0x1d759a(0xa4)],_0x2e66c5=!!_0x24bc7b&&!!_0x567f12[_0x1d759a(0x96)]&&_0x24bc7b['sqlName']!==_0x567f12[_0x1d759a(0x96)];if(!_0x24bc7b)_0x445a50[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]);else _0x24bc7b['hash']!==_0x29ccef||_0x32fd72||_0x2e66c5?_0x1df85f[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]):_0x33e07d[_0x1d759a(0xaf)](_0x567f12['lockKey']);}for(const _0x4847a8 of Object[_0x1d759a(0xac)](_0x303ef5[_0x1d759a(0xa9)])){!_0x38927c[_0x1d759a(0xa3)](_0x4847a8)&&_0x34cea0['push'](_0x4847a8);}const _0x128982=[];if(_0x4e5934[_0x1d759a(0x99)]('remote')){const _0x29d390=await fetchAllSqlCodes(_0x4e5934[_0x1d759a(0x9b)]);for(const _0x1fb91c of _0x29d390){!_0x38927c[_0x1d759a(0xa3)](_0x1fb91c)&&!_0x303ef5[_0x1d759a(0xa9)][_0x1fb91c]&&_0x128982[_0x1d759a(0xaf)](_0x1fb91c);}}const _0x1dd46d=_0x445a50[_0x1d759a(0x9a)]===0x0&&_0x1df85f['length']===0x0&&_0x34cea0[_0x1d759a(0x9a)]===0x0&&_0x128982['length']===0x0;return{'ok':!![],'data':{'added':_0x445a50,'modified':_0x1df85f,'missing':_0x34cea0,'unchanged':_0x33e07d,'remoteOnly':_0x128982},'message':_0x1dd46d?_0x1d759a(0xab):_0x445a50[_0x1d759a(0x9a)]+'\x20added,\x20'+_0x1df85f[_0x1d759a(0x9a)]+_0x1d759a(0x9c)+_0x34cea0['length']+_0x1d759a(0xb2)+_0x33e07d[_0x1d759a(0x9a)]+'\x20unchanged'+(_0x128982[_0x1d759a(0x9a)]>0x0?',\x20'+_0x128982[_0x1d759a(0x9a)]+_0x1d759a(0x94):'')};}};
@@ -1 +1 @@
1
- const a167_0x52fad9=a167_0x2b09;(function(_0x3206a9,_0x1c7135){const _0x3c0ac7=a167_0x2b09,_0x228c83=_0x3206a9();while(!![]){try{const _0x3ab25a=parseInt(_0x3c0ac7(0x1f8))/0x1*(parseInt(_0x3c0ac7(0x205))/0x2)+-parseInt(_0x3c0ac7(0x211))/0x3+parseInt(_0x3c0ac7(0x1f0))/0x4+parseInt(_0x3c0ac7(0x1fe))/0x5*(parseInt(_0x3c0ac7(0x215))/0x6)+-parseInt(_0x3c0ac7(0x213))/0x7+parseInt(_0x3c0ac7(0x1fb))/0x8+-parseInt(_0x3c0ac7(0x1fc))/0x9;if(_0x3ab25a===_0x1c7135)break;else _0x228c83['push'](_0x228c83['shift']());}catch(_0x40f37c){_0x228c83['push'](_0x228c83['shift']());}}}(a167_0x3537,0xbe555));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a167_0x2b09(_0x44380e,_0xcd6e18){_0x44380e=_0x44380e-0x1ea;const _0x353768=a167_0x3537();let _0x2b09aa=_0x353768[_0x44380e];return _0x2b09aa;}function a167_0x3537(){const _0x5a54fb=['size','schemas','Table\x20\x22','tableName','fields','message','string','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','\x22\x20not\x20found\x20in\x20any\x20dataset','isSelectOnly','3219260Chcvzb','\x22\x20not\x20found\x20or\x20not\x20accessible','SQL\x20schema\x20validation','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','split','tables','name','toLowerCase','89242SrZOkg','schemaWarnings','validate','5247704HuzxYQ','554877wlAFIj','sqlType','2016110NOiKUn','schema:','validation','str','type','file','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','18OgGpwv','parameters','filter','push','File\x20not\x20found:\x20','cwd','Provide\x20--file\x20or\x20--sql','utf-8','read','trim','get','appCode','4610595UUfMFW','valid','2023385SpMeIm','reason','6ozzIbg'];a167_0x3537=function(){return _0x5a54fb;};return a167_0x3537();}export const sqlValidate={'service':'sql','command':a167_0x52fad9(0x1fa),'description':a167_0x52fad9(0x1f3),'risk':a167_0x52fad9(0x20d),'flags':[{'name':a167_0x52fad9(0x203),'type':'string','description':a167_0x52fad9(0x204)},{'name':'sql','type':'string','description':a167_0x52fad9(0x1ed)},{'name':'schemas','type':a167_0x52fad9(0x1ec),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'}],async 'execute'(_0x51bc31){const _0x55029e=a167_0x52fad9,_0xde0bf2=_0x51bc31[_0x55029e(0x201)](_0x55029e(0x203)),_0x43e67e=_0x51bc31['str']('sql');if(!_0xde0bf2&&!_0x43e67e)throw CliErrors['flagMissing'](_0x55029e(0x203),_0x55029e(0x20b));let _0xc55c1e;if(_0xde0bf2){const _0x557b99=resolve(process[_0x55029e(0x20a)](),_0xde0bf2);if(!existsSync(_0x557b99))throw CliErrors[_0x55029e(0x200)](_0x55029e(0x209)+_0x557b99);_0xc55c1e=readFileSync(_0x557b99,_0x55029e(0x20c));}else _0xc55c1e=_0x43e67e;const _0x48a947=validateSql(_0xc55c1e),_0x1d626b={'valid':_0x48a947[_0x55029e(0x212)],'sqlType':_0x48a947[_0x55029e(0x1fd)][_0x55029e(0x202)],'isSelectOnly':_0x48a947[_0x55029e(0x1fd)][_0x55029e(0x1ef)],'isDangerous':_0x48a947[_0x55029e(0x1fd)]['isDangerous'],'tables':_0x48a947['tables'],'parameters':_0x48a947[_0x55029e(0x206)],'message':_0x48a947['message']};_0x48a947[_0x55029e(0x1fd)][_0x55029e(0x214)]&&(_0x1d626b[_0x55029e(0x214)]=_0x48a947[_0x55029e(0x1fd)][_0x55029e(0x214)]);const _0x5327ac=_0x51bc31[_0x55029e(0x201)](_0x55029e(0x217));if(_0x5327ac&&_0x48a947[_0x55029e(0x212)]){const _0x2cbb72=_0x5327ac[_0x55029e(0x1f4)](',')['map'](_0x39057c=>_0x39057c[_0x55029e(0x20e)]())[_0x55029e(0x207)](Boolean),_0x416014=[],_0x22cb97=filterDbTableBackedDatasets(await listDatasets(_0x51bc31[_0x55029e(0x210)])),_0x3ac9f4=new Map(_0x22cb97['map'](_0x5aff73=>[_0x5aff73['dbtableConfig']?.[_0x55029e(0x219)]?.[_0x55029e(0x1f7)](),_0x5aff73]));for(const _0x3d5913 of _0x48a947[_0x55029e(0x1f5)]){const _0x554547=_0x3ac9f4[_0x55029e(0x20f)](_0x3d5913[_0x55029e(0x1f7)]());!_0x554547&&_0x416014['push'](_0x55029e(0x218)+_0x3d5913+_0x55029e(0x1ee));}for(const _0xb2a64e of _0x2cbb72){let _0x3f1512;try{_0x3f1512=await getDatasetDetail(_0xb2a64e);}catch{_0x416014[_0x55029e(0x208)]('Dataset\x20\x22'+_0xb2a64e+_0x55029e(0x1f1));continue;}assertDatasetIsDbTableBacked(_0x3f1512,_0x55029e(0x1f2));const _0x417bdf=Array['isArray'](_0x3f1512[_0x55029e(0x1ea)])?_0x3f1512[_0x55029e(0x1ea)]:[],_0x963223=new Set(_0x417bdf['map'](_0x2763ca=>_0x2763ca[_0x55029e(0x1f6)]?.[_0x55029e(0x1f7)]())),_0x27d795=_0x3f1512['dbtableConfig']?.[_0x55029e(0x219)]||_0x3f1512['tableName']||_0xb2a64e;_0x1d626b[_0x55029e(0x1ff)+_0x27d795]={'code':_0xb2a64e,'tableName':_0x27d795,'fieldCount':_0x963223[_0x55029e(0x216)],'fields':Array['from'](_0x963223)};}_0x416014['length']>0x0&&(_0x1d626b[_0x55029e(0x1f9)]=_0x416014);}return{'ok':_0x48a947[_0x55029e(0x212)],'data':_0x1d626b,'message':_0x48a947[_0x55029e(0x1eb)]};}};
1
+ const a175_0x2b9a68=a175_0x56a2;(function(_0xe3c1a2,_0x4a1c21){const _0x59a658=a175_0x56a2,_0x1cf283=_0xe3c1a2();while(!![]){try{const _0x1f13c2=parseInt(_0x59a658(0x9f))/0x1+parseInt(_0x59a658(0x96))/0x2*(-parseInt(_0x59a658(0x95))/0x3)+parseInt(_0x59a658(0x88))/0x4+-parseInt(_0x59a658(0x81))/0x5+parseInt(_0x59a658(0x7e))/0x6*(-parseInt(_0x59a658(0x9c))/0x7)+-parseInt(_0x59a658(0x8c))/0x8+parseInt(_0x59a658(0xac))/0x9*(parseInt(_0x59a658(0x94))/0xa);if(_0x1f13c2===_0x4a1c21)break;else _0x1cf283['push'](_0x1cf283['shift']());}catch(_0x42d431){_0x1cf283['push'](_0x1cf283['shift']());}}}(a175_0x26b7,0x2079a));function a175_0x26b7(){const _0x44d6f0=['parameters','str','index_columns','Provide\x20--file\x20or\x20--sql','fields','string','451204RfHkzo','pkField','toLowerCase','length','798584qUIRhK','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','push','File\x20not\x20found:\x20','dbtableConfig','isArray','reason','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','5295660HSPTwC','14865kNOiQK','76jvxKOO','check-indexes','\x22\x20not\x20found\x20or\x20not\x20accessible','Dataset\x20\x22','appCode','schemaWarnings','91FmrwAL','primary','filter','13649OQYiqQ','indexes','file','flatMap','cwd','from','type','utf-8','message','split','columns','valid','bool','9XEgYLT','tables','sql','map','indexName','--check-indexes\x20requires\x20--schemas.','\x22\x20not\x20found\x20in\x20any\x20dataset','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','trim','validation','get','tableName','find','columnNames','schemas','index_type','unshift','isSelectOnly','dataset','sqlType','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','77844aRJYGT','read','isDangerous','331115pyuGeN'];a175_0x26b7=function(){return _0x44d6f0;};return a175_0x26b7();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a175_0x56a2(_0x8fc920,_0x2d13c0){_0x8fc920=_0x8fc920-0x76;const _0x26b7c6=a175_0x26b7();let _0x56a258=_0x26b7c6[_0x8fc920];return _0x56a258;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a175_0x2b9a68(0xae),'command':'validate','description':a175_0x2b9a68(0x8d),'risk':a175_0x2b9a68(0x7f),'flags':[{'name':'file','type':a175_0x2b9a68(0x87),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a175_0x2b9a68(0xae),'type':a175_0x2b9a68(0x87),'description':a175_0x2b9a68(0x7d)},{'name':a175_0x2b9a68(0x77),'type':'string','description':a175_0x2b9a68(0xb3)},{'name':a175_0x2b9a68(0x97),'type':'boolean','description':a175_0x2b9a68(0x93)}],async 'execute'(_0x24f578){const _0x4bd617=a175_0x2b9a68,_0x44666c=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xa1)),_0x561b3a=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xae)),_0x58970a=_0x24f578['str'](_0x4bd617(0x77)),_0x5db4c2=_0x24f578[_0x4bd617(0xab)](_0x4bd617(0x97));if(!_0x44666c&&!_0x561b3a)throw CliErrors['flagMissing'](_0x4bd617(0xa1),_0x4bd617(0x85));if(_0x5db4c2&&!_0x58970a)throw CliErrors['validation'](_0x4bd617(0xb1));let _0x50d860;if(_0x44666c){const _0xafdd8=resolve(process[_0x4bd617(0xa3)](),_0x44666c);if(!existsSync(_0xafdd8))throw CliErrors[_0x4bd617(0xb5)](_0x4bd617(0x8f)+_0xafdd8);_0x50d860=readFileSync(_0xafdd8,_0x4bd617(0xa6));}else _0x50d860=_0x561b3a;const _0x44cf22=validateSql(_0x50d860),_0xf2d7bf={'valid':_0x44cf22['valid'],'sqlType':_0x44cf22['sqlType'][_0x4bd617(0xa5)],'isSelectOnly':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x7a)],'isDangerous':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x80)],'tables':_0x44cf22[_0x4bd617(0xad)],'parameters':_0x44cf22[_0x4bd617(0x82)],'message':_0x44cf22['message']};_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]&&(_0xf2d7bf[_0x4bd617(0x92)]=_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]);if(_0x58970a&&_0x44cf22[_0x4bd617(0xaa)]){const _0x5c0edf=_0x58970a[_0x4bd617(0xa8)](',')[_0x4bd617(0xaf)](_0x22087b=>_0x22087b[_0x4bd617(0xb4)]())[_0x4bd617(0x9e)](Boolean),_0x3a6aaf=[],_0x4a77e8=[],_0x1e1d33=filterDbTableBackedDatasets(await listDatasets(_0x24f578[_0x4bd617(0x9a)])),_0x1edfa3=new Map(_0x1e1d33[_0x4bd617(0xaf)](_0x2d7986=>[_0x2d7986[_0x4bd617(0x90)]?.['tableName']?.[_0x4bd617(0x8a)](),_0x2d7986]));for(const _0x3a6202 of _0x44cf22['tables']){const _0x2caa6f=_0x1edfa3[_0x4bd617(0xb6)](_0x3a6202[_0x4bd617(0x8a)]());!_0x2caa6f&&_0x3a6aaf[_0x4bd617(0x8e)]('Table\x20\x22'+_0x3a6202+_0x4bd617(0xb2));}for(const _0x15363e of _0x5c0edf){let _0xe657ef;try{_0xe657ef=await getDatasetDetail(_0x15363e);}catch{_0x3a6aaf[_0x4bd617(0x8e)](_0x4bd617(0x99)+_0x15363e+_0x4bd617(0x98));continue;}assertDatasetIsDbTableBacked(_0xe657ef,'SQL\x20schema\x20validation');const _0x583e07=Array[_0x4bd617(0x91)](_0xe657ef[_0x4bd617(0x86)])?_0xe657ef[_0x4bd617(0x86)]:[],_0x3725b6=new Set(_0x583e07[_0x4bd617(0xaf)](_0x677cfa=>_0x677cfa['name']?.[_0x4bd617(0x8a)]())),_0x253e0a=_0xe657ef[_0x4bd617(0x90)]?.['tableName']||_0xe657ef[_0x4bd617(0xb7)]||_0x15363e;_0xf2d7bf['schema:'+_0x253e0a]={'code':_0x15363e,'tableName':_0x253e0a,'fieldCount':_0x3725b6['size'],'fields':Array[_0x4bd617(0xa4)](_0x3725b6)};if(_0x5db4c2){const _0x10a3e1=normalizeDatasetIndexes(_0xe657ef);_0x4a77e8[_0x4bd617(0x8e)]({'tableName':_0x253e0a,..._0x10a3e1});}}_0x3a6aaf[_0x4bd617(0x8b)]>0x0&&(_0xf2d7bf[_0x4bd617(0x9b)]=_0x3a6aaf),_0x5db4c2&&(_0xf2d7bf['joinAudit']=auditSqlJoinIndexes(_0x50d860,_0x4a77e8));}return{'ok':_0x44cf22[_0x4bd617(0xaa)],'data':_0xf2d7bf,'message':_0x44cf22[_0x4bd617(0xa7)]};}};function normalizeDatasetIndexes(_0x307604){const _0x1b5d93=a175_0x2b9a68,_0x5d2229=Array[_0x1b5d93(0x91)](_0x307604?.['dataset']?.['indexes'])?_0x307604[_0x1b5d93(0x7b)][_0x1b5d93(0xa0)]:Array['isArray'](_0x307604?.[_0x1b5d93(0xa0)])?_0x307604[_0x1b5d93(0xa0)]:[],_0x5ac51b=_0x5d2229[_0x1b5d93(0xa2)](_0x4be4ef=>{const _0x56ded7=_0x1b5d93,_0x68dacd=Array['isArray'](_0x4be4ef?.['index_columns'])?_0x4be4ef[_0x56ded7(0x84)]:Array[_0x56ded7(0x91)](_0x4be4ef?.[_0x56ded7(0x76)])?_0x4be4ef[_0x56ded7(0x76)]:Array['isArray'](_0x4be4ef?.[_0x56ded7(0xa9)])?_0x4be4ef['columns']:[],_0x1e5b05=_0x68dacd[_0x56ded7(0x9e)](_0x4369ae=>typeof _0x4369ae==='string')[_0x56ded7(0xaf)](_0x297e47=>_0x297e47[_0x56ded7(0xb4)]())[_0x56ded7(0x9e)](Boolean);if(_0x1e5b05['length']===0x0)return[];const _0x4c505a=[_0x4be4ef?.[_0x56ded7(0xb0)],_0x4be4ef?.['index_name'],_0x4be4ef?.['name']]['find'](_0x5890e5=>typeof _0x5890e5===_0x56ded7(0x87)&&_0x5890e5[_0x56ded7(0xb4)]()),_0x4bd902=[_0x4be4ef?.[_0x56ded7(0x78)],_0x4be4ef?.[_0x56ded7(0xa5)]][_0x56ded7(0xb8)](_0x41dc27=>typeof _0x41dc27===_0x56ded7(0x87)&&_0x41dc27['trim']());return[{..._0x4c505a?{'name':_0x4c505a['trim']()}:{},..._0x4bd902?{'type':_0x4bd902[_0x56ded7(0xb4)]()}:{},'columns':_0x1e5b05}];}),_0x3789de=[..._0x5ac51b],_0x4bb526=typeof _0x307604?.['dbtableConfig']?.[_0x1b5d93(0x89)]===_0x1b5d93(0x87)?_0x307604[_0x1b5d93(0x90)]['pkField'][_0x1b5d93(0xa8)](',')[_0x1b5d93(0xaf)](_0x52e433=>_0x52e433[_0x1b5d93(0xb4)]())[_0x1b5d93(0x9e)](Boolean):[];return _0x4bb526['length']>0x0&&_0x3789de[_0x1b5d93(0x79)]({'type':_0x1b5d93(0x9d),'columns':_0x4bb526}),{'indexes':_0x3789de,'metadataAvailable':_0x5ac51b[_0x1b5d93(0x8b)]>0x0};}
@@ -0,0 +1 @@
1
+ function a176_0x293f(_0x36214e,_0x414f13){_0x36214e=_0x36214e-0x18b;const _0x4c27e2=a176_0x4c27();let _0x293f16=_0x4c27e2[_0x36214e];return _0x293f16;}(function(_0x2558f1,_0x38a689){const _0xecd40=a176_0x293f,_0x29be2d=_0x2558f1();while(!![]){try{const _0x214bb8=-parseInt(_0xecd40(0x18d))/0x1+parseInt(_0xecd40(0x18f))/0x2+-parseInt(_0xecd40(0x190))/0x3+-parseInt(_0xecd40(0x18e))/0x4*(parseInt(_0xecd40(0x191))/0x5)+-parseInt(_0xecd40(0x18b))/0x6+parseInt(_0xecd40(0x18c))/0x7+parseInt(_0xecd40(0x192))/0x8;if(_0x214bb8===_0x38a689)break;else _0x29be2d['push'](_0x29be2d['shift']());}catch(_0x4aae07){_0x29be2d['push'](_0x29be2d['shift']());}}}(a176_0x4c27,0xa4ec2));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a176_0x4c27(){const _0x1d60f2=['1106734pFmkFG','297728xXuxEh','2388628tXGJxg','145146GgvdzO','25UaueKG','9696392WaAutw','7440024QnZYJa','7255073WSViwH'];a176_0x4c27=function(){return _0x1d60f2;};return a176_0x4c27();}
@@ -0,0 +1 @@
1
+ const a177_0x1c468c=a177_0x13a3;function a177_0x1834(){const _0x321c3e=['appCode','cookie','task','status','flagMissing','apiError','13905yAYplB','trim','1bIrvit','3yoaJjo','str','2898552SywYoV','7563507WMxxML','2401895nFoGsW','667742hOucDp','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id','16310wMIabQ','3928fNEIgu','8624XGUYTl','taskId','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','string','3136376GyqIhd','isTerminal'];a177_0x1834=function(){return _0x321c3e;};return a177_0x1834();}(function(_0x54ff53,_0x189c8e){const _0x2f6a85=a177_0x13a3,_0x5be21a=_0x54ff53();while(!![]){try{const _0x40bd31=-parseInt(_0x2f6a85(0x1ee))/0x1*(-parseInt(_0x2f6a85(0x1f4))/0x2)+-parseInt(_0x2f6a85(0x1ef))/0x3*(-parseInt(_0x2f6a85(0x1e4))/0x4)+-parseInt(_0x2f6a85(0x1f3))/0x5+parseInt(_0x2f6a85(0x1f1))/0x6+-parseInt(_0x2f6a85(0x1f2))/0x7+-parseInt(_0x2f6a85(0x1df))/0x8*(parseInt(_0x2f6a85(0x1ec))/0x9)+-parseInt(_0x2f6a85(0x1de))/0xa*(-parseInt(_0x2f6a85(0x1e0))/0xb);if(_0x40bd31===_0x189c8e)break;else _0x5be21a['push'](_0x5be21a['shift']());}catch(_0x29c295){_0x5be21a['push'](_0x5be21a['shift']());}}}(a177_0x1834,0x88c9e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';function a177_0x13a3(_0x5ab5b3,_0x20a669){_0x5ab5b3=_0x5ab5b3-0x1de;const _0x18346a=a177_0x1834();let _0x13a3e9=_0x18346a[_0x5ab5b3];return _0x13a3e9;}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a177_0x1c468c(0x1e8),'command':a177_0x1c468c(0x1e9),'description':a177_0x1c468c(0x1f6),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a177_0x1c468c(0x1f7),'type':a177_0x1c468c(0x1e3),'required':!![],'description':a177_0x1c468c(0x1f5)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x391a90){const _0x1cbd0e=a177_0x1c468c;if(!_0x391a90['str']('task-id')[_0x1cbd0e(0x1ed)]())throw CliErrors[_0x1cbd0e(0x1ea)](_0x1cbd0e(0x1f7));},async 'execute'(_0xdd8f66){const _0x3415d2=a177_0x1c468c,_0x1a93a7=_0xdd8f66[_0x3415d2(0x1f0)]('task-id')[_0x3415d2(0x1ed)](),_0x23eace=normalizeAsyncTask(await getAsyncTaskStatus(_0x1a93a7,_0xdd8f66[_0x3415d2(0x1e6)],_0xdd8f66[_0x3415d2(0x1e7)]));if(_0x23eace[_0x3415d2(0x1e1)]!==_0x1a93a7)throw CliErrors[_0x3415d2(0x1eb)](_0x3415d2(0x1e2)+_0x1a93a7+',\x20received\x20'+_0x23eace['taskId']+'.');const _0x4d6582=buildAsyncTaskStatusCommand(_0x23eace[_0x3415d2(0x1e1)],_0xdd8f66[_0x3415d2(0x1e6)]);return{'ok':!![],'message':asyncTaskMessage(_0x23eace),'data':{'appCode':_0xdd8f66[_0x3415d2(0x1e6)],..._0x23eace,'query':_0x23eace[_0x3415d2(0x1e5)]?null:{'command':_0x4d6582}}};}};
@@ -1 +1 @@
1
- const a168_0x26e5c0=a168_0x555d;function a168_0x1277(){const _0x479547=['217920gfodIi','3088224EDaJcv','name','add','6448022XDsjWA','1493652hviFpw','172ZmYlRy','App\x20profile\x20name','126aZxlri','1667505CcRrSp','workspace','48XsHGzL','2812ReIwUO','2517nggMwC'];a168_0x1277=function(){return _0x479547;};return a168_0x1277();}(function(_0xd6f9a4,_0x1cf186){const _0x38b5ac=a168_0x555d,_0x4b8ea7=_0xd6f9a4();while(!![]){try{const _0xbf1395=-parseInt(_0x38b5ac(0x7a))/0x1*(-parseInt(_0x38b5ac(0x72))/0x2)+-parseInt(_0x38b5ac(0x73))/0x3*(-parseInt(_0x38b5ac(0x71))/0x4)+-parseInt(_0x38b5ac(0x6f))/0x5+-parseInt(_0x38b5ac(0x79))/0x6+parseInt(_0x38b5ac(0x78))/0x7+-parseInt(_0x38b5ac(0x75))/0x8+-parseInt(_0x38b5ac(0x6e))/0x9*(-parseInt(_0x38b5ac(0x74))/0xa);if(_0xbf1395===_0x1cf186)break;else _0x4b8ea7['push'](_0x4b8ea7['shift']());}catch(_0x54b76f){_0x4b8ea7['push'](_0x4b8ea7['shift']());}}}(a168_0x1277,0x7c6df));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a168_0x555d(_0x2853e3,_0x18cd40){_0x2853e3=_0x2853e3-0x6e;const _0x1277f1=a168_0x1277();let _0x555d79=_0x1277f1[_0x2853e3];return _0x555d79;}export const workspaceAddDefinition={'service':a168_0x26e5c0(0x70),'command':a168_0x26e5c0(0x77),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a168_0x26e5c0(0x76),'description':a168_0x26e5c0(0x7b),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x500a51=>validateAppName(_0x500a51,'workspace\x20add'),'execute':_0x1d5375=>runAppAdd(_0x1d5375,'workspace\x20add')};
1
+ const a178_0x3aff6d=a178_0x37fa;(function(_0x1bc236,_0x150947){const _0x546e38=a178_0x37fa,_0x5652ee=_0x1bc236();while(!![]){try{const _0x55abb7=-parseInt(_0x546e38(0x200))/0x1*(-parseInt(_0x546e38(0x1f4))/0x2)+parseInt(_0x546e38(0x1f3))/0x3*(-parseInt(_0x546e38(0x1fc))/0x4)+-parseInt(_0x546e38(0x1f8))/0x5+-parseInt(_0x546e38(0x1f7))/0x6+parseInt(_0x546e38(0x1f5))/0x7+-parseInt(_0x546e38(0x1fd))/0x8+parseInt(_0x546e38(0x1ff))/0x9*(parseInt(_0x546e38(0x1fe))/0xa);if(_0x55abb7===_0x150947)break;else _0x5652ee['push'](_0x5652ee['shift']());}catch(_0x8ce78d){_0x5652ee['push'](_0x5652ee['shift']());}}}(a178_0x6e9a,0xdfc60));function a178_0x37fa(_0x1de460,_0x229560){_0x1de460=_0x1de460-0x1f3;const _0x6e9af1=a178_0x6e9a();let _0x37fa53=_0x6e9af1[_0x1de460];return _0x37fa53;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a178_0x6e9a(){const _0x1147a9=['630HCaZhi','497439UBBHvu','2zlTrwN','name','2930763sOfFps','1196156hMBWdw','2599149DfwTwr','write','8428890FTuIul','5428220ALUHTk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20add','add','4ItzvGY','5324640mzqTgK'];a178_0x6e9a=function(){return _0x1147a9;};return a178_0x6e9a();}export const workspaceAddDefinition={'service':'workspace','command':a178_0x3aff6d(0x1fb),'description':a178_0x3aff6d(0x1f9),'risk':a178_0x3aff6d(0x1f6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a178_0x3aff6d(0x201),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0xc562a6=>validateAppName(_0xc562a6,a178_0x3aff6d(0x1fa)),'execute':_0x2da0f0=>runAppAdd(_0x2da0f0,a178_0x3aff6d(0x1fa))};
@@ -1 +1 @@
1
- const a169_0x438b67=a169_0x4577;(function(_0x525f91,_0x38f1d4){const _0x2591c7=a169_0x4577,_0x2c89a9=_0x525f91();while(!![]){try{const _0x3db81d=parseInt(_0x2591c7(0x1e1))/0x1+parseInt(_0x2591c7(0x1fe))/0x2*(-parseInt(_0x2591c7(0x1ec))/0x3)+-parseInt(_0x2591c7(0x204))/0x4+parseInt(_0x2591c7(0x1e4))/0x5+-parseInt(_0x2591c7(0x1f6))/0x6*(-parseInt(_0x2591c7(0x1db))/0x7)+parseInt(_0x2591c7(0x205))/0x8+-parseInt(_0x2591c7(0x1da))/0x9*(parseInt(_0x2591c7(0x1e5))/0xa);if(_0x3db81d===_0x38f1d4)break;else _0x2c89a9['push'](_0x2c89a9['shift']());}catch(_0x2461e6){_0x2c89a9['push'](_0x2c89a9['shift']());}}}(a169_0x2a6e,0x8b053));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a169_0x4577(_0x3876b1,_0x59b34e){_0x3876b1=_0x3876b1-0x1d2;const _0x2a6ef1=a169_0x2a6e();let _0x45772a=_0x2a6ef1[_0x3876b1];return _0x45772a;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a169_0x438b67(0x1ee),SAFE_PROFILE_KEYS=[a169_0x438b67(0x1ed),'env',a169_0x438b67(0x1d7),'format','pageSize',a169_0x438b67(0x1f4),a169_0x438b67(0x1fb)],workspaceFlags=[{'name':a169_0x438b67(0x1d9),'type':a169_0x438b67(0x1d3),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a169_0x438b67(0x1ed),'type':a169_0x438b67(0x1d3),'description':a169_0x438b67(0x1eb)},{'name':a169_0x438b67(0x1d2),'type':a169_0x438b67(0x1d3),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a169_0x438b67(0x1d7),'type':a169_0x438b67(0x1d3),'description':a169_0x438b67(0x1e2)},{'name':a169_0x438b67(0x1d8),'type':a169_0x438b67(0x1d3),'description':a169_0x438b67(0x1f9),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a169_0x438b67(0x200),'type':a169_0x438b67(0x1f3),'description':a169_0x438b67(0x1e7)},{'name':a169_0x438b67(0x1f4),'type':a169_0x438b67(0x1d3),'description':a169_0x438b67(0x1fc),'enum':[...RISK_LEVEL_VALUES]},{'name':a169_0x438b67(0x1fb),'type':'string','description':a169_0x438b67(0x1e0)}];function a169_0x2a6e(){const _0x69e28e=['apiDir','defaultFormat','app','9EfJQbJ','674009HvEfCo','\x20workspace\x20','apps','workspace','join','Locale\x20for\x20this\x20workspace\x20app\x20profile','648043yWdmEG','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','\x20--app\x20','3466595xkUFHB','9707230mqjgwv','\x20--appcode\x20<code>`.','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','trim','use','project','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','57GfUxIL','appcode','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','length','Invalid\x20appcode:\x20','Use\x20`','\x22\x20not\x20found.','number','riskLevel','validation','42lMikgj','flag','workspace.','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','defaultApp','locale','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','initialized','30362ShFmrv','object','pageSize','updated','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20',').\x20Config:\x20','1058548UDjupS','622840SLmkNe','Workspace\x20','isArray','write','init','App\x20\x22','env','string','globalConfig','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','str'];a169_0x2a6e=function(){return _0x69e28e;};return a169_0x2a6e();}function isRecord(_0xdf634a){const _0xe44b79=a169_0x438b67;return!!_0xdf634a&&typeof _0xdf634a===_0xe44b79(0x1ff)&&!Array[_0xe44b79(0x207)](_0xdf634a);}function assertValidAppcode(_0x1e5304){const _0x291ae6=a169_0x438b67,{valid:_0x1aa9aa,message:_0x4ecc02}=validateAppcode(_0x1e5304);if(!_0x1aa9aa)throw CliErrors[_0x291ae6(0x1f5)](_0x291ae6(0x1f0)+_0x1e5304,_0x4ecc02);}function sanitizeProfile(_0x2b340d){if(!isRecord(_0x2b340d))return{};const _0x4a6a37={};for(const _0x49ee77 of SAFE_PROFILE_KEYS){if(_0x2b340d[_0x49ee77]!==undefined)_0x4a6a37[_0x49ee77]=_0x2b340d[_0x49ee77];}return _0x4a6a37;}function cloneProfile(_0x32f4ac){return isRecord(_0x32f4ac)?{..._0x32f4ac}:{};}function collectWorkspaceProfileOverrides(_0x58307){const _0x2cc8da=a169_0x438b67,_0x17fd95={},_0x585d2e=_0x58307[_0x2cc8da(0x1d6)](_0x2cc8da(0x1d2)),_0x480c0f=_0x58307['str'](_0x2cc8da(0x1d7)),_0x4e5f0c=_0x58307[_0x2cc8da(0x1d6)]('defaultFormat'),_0x1cff13=_0x58307[_0x2cc8da(0x1f7)](_0x2cc8da(0x200)),_0x5c7e4c=_0x58307[_0x2cc8da(0x1d6)](_0x2cc8da(0x1f4)),_0xdd69b5=_0x58307[_0x2cc8da(0x1d6)]('locale');if(_0x585d2e)_0x17fd95[_0x2cc8da(0x1d2)]=_0x585d2e;if(_0x480c0f)_0x17fd95[_0x2cc8da(0x1d7)]=_0x480c0f;if(_0x4e5f0c)_0x17fd95['format']=_0x4e5f0c;if(_0x1cff13!==undefined&&_0x1cff13!=='')_0x17fd95[_0x2cc8da(0x200)]=Number(_0x1cff13);if(_0x5c7e4c)_0x17fd95[_0x2cc8da(0x1f4)]=_0x5c7e4c;if(_0xdd69b5)_0x17fd95[_0x2cc8da(0x1fb)]=_0xdd69b5;return _0x17fd95;}async function validateWorkspaceArgs(_0x58e0c8){const _0x2732b2=a169_0x438b67,_0x181f15=_0x58e0c8[_0x2732b2(0x1d6)](_0x2732b2(0x1d9))[_0x2732b2(0x1e8)](),_0x279852=_0x58e0c8['str'](_0x2732b2(0x1ed))[_0x2732b2(0x1e8)]();if(!_0x181f15&&!_0x279852)throw CliErrors[_0x2732b2(0x1f5)]('Missing\x20workspace\x20app\x20selector.',_0x2732b2(0x1f1)+CLI_BIN_NAME+_0x2732b2(0x1d5)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x279852)assertValidAppcode(_0x279852);}function resolveKnownApps(){const _0x836fd3=a169_0x438b67,{config:_0x2bf8c1,layers:_0x2cfe67}=readRawConfigWithLayers(),_0x19b24b=isRecord(_0x2bf8c1[_0x836fd3(0x1dd)])?_0x2bf8c1['apps']:{},_0x5b2465=isRecord(_0x2cfe67[_0x836fd3(0x1d4)][_0x836fd3(0x1dd)])?_0x2cfe67[_0x836fd3(0x1d4)][_0x836fd3(0x1dd)]:{};return{..._0x5b2465,..._0x19b24b};}async function configureWorkspace(_0x5d6d03,_0x4cc542){const _0x20c26d=a169_0x438b67,_0x1bd776=_0x5d6d03[_0x20c26d(0x1d6)](_0x20c26d(0x1d9))[_0x20c26d(0x1e8)](),_0xf5a014=_0x5d6d03['str']('appcode')['trim'](),_0x3b44e9=_0x1bd776||_0xf5a014;if(!_0x3b44e9)throw CliErrors[_0x20c26d(0x1f5)]('Missing\x20workspace\x20app\x20selector.',_0x20c26d(0x1f1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0xf5a014)assertValidAppcode(_0xf5a014);const _0x5dffeb=resolveWriteConfigPath(_0x20c26d(0x1ea)),_0x29ad86=readConfigFile(_0x5dffeb),_0x1a5cc6=resolveKnownApps(),_0x29f37d=isRecord(_0x29ad86['apps'])?{..._0x29ad86[_0x20c26d(0x1dd)]}:{},_0x15d2c1=cloneProfile(_0x29f37d[_0x3b44e9]),_0xf34397=sanitizeProfile(_0x1a5cc6[_0x3b44e9]),_0x20bc4c=_0xf5a014?{}:_0xf34397,_0x20cb16=_0xf5a014||_0x20bc4c['appcode'];if(!_0x20cb16){const _0x582870=Object['keys'](_0x1a5cc6),_0x1237a9=_0x582870[_0x20c26d(0x1ef)]===0x0?_0x20c26d(0x1f1)+CLI_BIN_NAME+_0x20c26d(0x1dc)+_0x4cc542+_0x20c26d(0x1e3)+_0x3b44e9+_0x20c26d(0x1e6):_0x20c26d(0x202)+_0x582870[_0x20c26d(0x1df)](',\x20');throw CliErrors[_0x20c26d(0x1f5)](_0x20c26d(0x20a)+_0x3b44e9+_0x20c26d(0x1f2),_0x1237a9);}assertValidAppcode(String(_0x20cb16));const _0x2a9a89={..._0x20bc4c,..._0x15d2c1,'appcode':String(_0x20cb16),...collectWorkspaceProfileOverrides(_0x5d6d03)};return _0x29f37d[_0x3b44e9]=_0x2a9a89,_0x29ad86[_0x20c26d(0x1dd)]=_0x29f37d,_0x29ad86[_0x20c26d(0x1fa)]=_0x3b44e9,delete _0x29ad86[_0x20c26d(0x1ed)],delete _0x29ad86['app'],_0x2a9a89[_0x20c26d(0x1d2)]&&(_0x29ad86['env']=_0x2a9a89[_0x20c26d(0x1d2)]),writeConfigFile(_0x5dffeb,_0x29ad86),{'ok':!![],'message':_0x20c26d(0x206)+(_0x4cc542==='init'?_0x20c26d(0x1fd):_0x20c26d(0x201))+':\x20'+_0x3b44e9+'\x20(appcode:\x20'+_0x2a9a89[_0x20c26d(0x1ed)]+_0x20c26d(0x203)+_0x5dffeb+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x20c26d(0x1f8)+_0x4cc542,'configPath':_0x5dffeb,'app':_0x3b44e9,'appcode':_0x2a9a89[_0x20c26d(0x1ed)],'env':_0x2a9a89['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a169_0x438b67(0x1de),'command':a169_0x438b67(0x209),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a169_0x438b67(0x208),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x367a8e=>configureWorkspace(_0x367a8e,'init')},workspaceUseDefinition={'service':a169_0x438b67(0x1de),'command':a169_0x438b67(0x1e9),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a169_0x438b67(0x208),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3a60a4=>configureWorkspace(_0x3a60a4,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a179_0x1409e7=a179_0x2450;function a179_0x2450(_0x4a3f47,_0xfdc825){_0x4a3f47=_0x4a3f47-0x1aa;const _0x41be72=a179_0x41be();let _0x24501a=_0x41be72[_0x4a3f47];return _0x24501a;}(function(_0xed35f5,_0x5ee148){const _0x28a7d7=a179_0x2450,_0x296fb5=_0xed35f5();while(!![]){try{const _0x485a44=-parseInt(_0x28a7d7(0x1b6))/0x1*(-parseInt(_0x28a7d7(0x1da))/0x2)+parseInt(_0x28a7d7(0x1e0))/0x3*(-parseInt(_0x28a7d7(0x1aa))/0x4)+-parseInt(_0x28a7d7(0x1c1))/0x5+parseInt(_0x28a7d7(0x1ae))/0x6*(-parseInt(_0x28a7d7(0x1e7))/0x7)+parseInt(_0x28a7d7(0x1b7))/0x8+parseInt(_0x28a7d7(0x1e2))/0x9*(parseInt(_0x28a7d7(0x1db))/0xa)+parseInt(_0x28a7d7(0x1bc))/0xb*(parseInt(_0x28a7d7(0x1d7))/0xc);if(_0x485a44===_0x5ee148)break;else _0x296fb5['push'](_0x296fb5['shift']());}catch(_0x23713b){_0x296fb5['push'](_0x296fb5['shift']());}}}(a179_0x41be,0xec878));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';function a179_0x41be(){const _0x2fa4f7=['use','App\x20\x22','Missing\x20workspace\x20app\x20selector.','workspace','str','join','env','501453bCIevk','146432dmppNz','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--app\x20','\x20workspace\x20','locale','44Twbqmm','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','app','globalConfig','2800595BBoRUs','Use\x20`','workspace.','apiDir','pageSize','Locale\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','number','updated',').\x20Config:\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','trim','format','Switch\x20the\x20current\x20workspace\x20app\x20binding','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','Invalid\x20appcode:\x20','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','\x20--appcode\x20<code>`.','defaultApp','4568856qzegcS','apps','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6HVxRja','46780XiGyym','object','write','\x22\x20not\x20found.','appcode','3974862UPxrbY','length','1602EFlKOo','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','string','27902LkOUcx','4KcwcaU','init','\x20workspace\x20use\x20--app\x20<name>`.','project','1542xpHsna'];a179_0x41be=function(){return _0x2fa4f7;};return a179_0x41be();}import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a179_0x1409e7(0x1cc),SAFE_PROFILE_KEYS=[a179_0x1409e7(0x1df),a179_0x1409e7(0x1b5),a179_0x1409e7(0x1c4),'format','pageSize',a179_0x1409e7(0x1e5),a179_0x1409e7(0x1bb)],workspaceFlags=[{'name':a179_0x1409e7(0x1bf),'type':'string','description':a179_0x1409e7(0x1d3)},{'name':a179_0x1409e7(0x1df),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1b8)},{'name':a179_0x1409e7(0x1b5),'type':a179_0x1409e7(0x1e6),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e3),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1cb),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a179_0x1409e7(0x1c8),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e5),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1e4),'enum':[...RISK_LEVEL_VALUES]},{'name':a179_0x1409e7(0x1bb),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1c6)}];function isRecord(_0x43122a){const _0x5ddc77=a179_0x1409e7;return!!_0x43122a&&typeof _0x43122a===_0x5ddc77(0x1dc)&&!Array[_0x5ddc77(0x1d1)](_0x43122a);}function assertValidAppcode(_0x8c233f){const _0x46cca7=a179_0x1409e7,{valid:_0x1fe1ab,message:_0x1de9aa}=validateAppcode(_0x8c233f);if(!_0x1fe1ab)throw CliErrors[_0x46cca7(0x1bd)](_0x46cca7(0x1d2)+_0x8c233f,_0x1de9aa);}function sanitizeProfile(_0x504632){if(!isRecord(_0x504632))return{};const _0xc4fdd1={};for(const _0x4cb0ac of SAFE_PROFILE_KEYS){if(_0x504632[_0x4cb0ac]!==undefined)_0xc4fdd1[_0x4cb0ac]=_0x504632[_0x4cb0ac];}return _0xc4fdd1;}function cloneProfile(_0x192046){return isRecord(_0x192046)?{..._0x192046}:{};}function collectWorkspaceProfileOverrides(_0x23fce8){const _0x298707=a179_0x1409e7,_0x3fe2fb={},_0x387867=_0x23fce8[_0x298707(0x1b3)]('env'),_0x501312=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1c4)),_0x1135b3=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1e3)),_0x3c1547=_0x23fce8['flag'](_0x298707(0x1c5)),_0x13bfaf=_0x23fce8[_0x298707(0x1b3)]('riskLevel'),_0x5345b3=_0x23fce8[_0x298707(0x1b3)]('locale');if(_0x387867)_0x3fe2fb[_0x298707(0x1b5)]=_0x387867;if(_0x501312)_0x3fe2fb['apiDir']=_0x501312;if(_0x1135b3)_0x3fe2fb[_0x298707(0x1ce)]=_0x1135b3;if(_0x3c1547!==undefined&&_0x3c1547!=='')_0x3fe2fb[_0x298707(0x1c5)]=Number(_0x3c1547);if(_0x13bfaf)_0x3fe2fb[_0x298707(0x1e5)]=_0x13bfaf;if(_0x5345b3)_0x3fe2fb[_0x298707(0x1bb)]=_0x5345b3;return _0x3fe2fb;}async function validateWorkspaceArgs(_0x475c61){const _0x4cc98f=a179_0x1409e7,_0x3b685c=_0x475c61[_0x4cc98f(0x1b3)](_0x4cc98f(0x1bf))['trim'](),_0x43263a=_0x475c61['str']('appcode')[_0x4cc98f(0x1cd)]();if(!_0x3b685c&&!_0x43263a)throw CliErrors[_0x4cc98f(0x1bd)](_0x4cc98f(0x1b1),'Use\x20`'+CLI_BIN_NAME+_0x4cc98f(0x1be)+CLI_BIN_NAME+_0x4cc98f(0x1ac));if(_0x43263a)assertValidAppcode(_0x43263a);}function resolveKnownApps(){const _0x39fc39=a179_0x1409e7,{config:_0x2046d8,layers:_0x8f81ee}=readRawConfigWithLayers(),_0x5cdd76=isRecord(_0x2046d8[_0x39fc39(0x1d8)])?_0x2046d8[_0x39fc39(0x1d8)]:{},_0x46740d=isRecord(_0x8f81ee['globalConfig'][_0x39fc39(0x1d8)])?_0x8f81ee[_0x39fc39(0x1c0)][_0x39fc39(0x1d8)]:{};return{..._0x46740d,..._0x5cdd76};}async function configureWorkspace(_0x3c64bb,_0x1dd61e){const _0x3ef7d1=a179_0x1409e7,_0x4ca6b8=_0x3c64bb['str'](_0x3ef7d1(0x1bf))[_0x3ef7d1(0x1cd)](),_0x5c8003=_0x3c64bb[_0x3ef7d1(0x1b3)](_0x3ef7d1(0x1df))[_0x3ef7d1(0x1cd)](),_0x174706=_0x4ca6b8||_0x5c8003;if(!_0x174706)throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b1),_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1be)+CLI_BIN_NAME+_0x3ef7d1(0x1ac));if(_0x5c8003)assertValidAppcode(_0x5c8003);const _0x393af6=resolveWriteConfigPath(_0x3ef7d1(0x1ad)),_0x5a3f98=readConfigFile(_0x393af6),_0x5eab12=resolveKnownApps(),_0x3d2311=isRecord(_0x5a3f98[_0x3ef7d1(0x1d8)])?{..._0x5a3f98[_0x3ef7d1(0x1d8)]}:{},_0x8f2415=cloneProfile(_0x3d2311[_0x174706]),_0xfd7b99=sanitizeProfile(_0x5eab12[_0x174706]),_0x57c697=_0x5c8003?{}:_0xfd7b99,_0x1a1dc8=_0x5c8003||_0x57c697[_0x3ef7d1(0x1df)];if(!_0x1a1dc8){const _0x170528=Object['keys'](_0x5eab12),_0x40d55f=_0x170528[_0x3ef7d1(0x1e1)]===0x0?_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1ba)+_0x1dd61e+_0x3ef7d1(0x1b9)+_0x174706+_0x3ef7d1(0x1d5):_0x3ef7d1(0x1d9)+_0x170528[_0x3ef7d1(0x1b4)](',\x20');throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b0)+_0x174706+_0x3ef7d1(0x1de),_0x40d55f);}assertValidAppcode(String(_0x1a1dc8));const _0x10f12d={..._0x57c697,..._0x8f2415,'appcode':String(_0x1a1dc8),...collectWorkspaceProfileOverrides(_0x3c64bb)};return _0x3d2311[_0x174706]=_0x10f12d,_0x5a3f98[_0x3ef7d1(0x1d8)]=_0x3d2311,_0x5a3f98[_0x3ef7d1(0x1d6)]=_0x174706,delete _0x5a3f98['appcode'],delete _0x5a3f98[_0x3ef7d1(0x1bf)],_0x10f12d['env']&&(_0x5a3f98[_0x3ef7d1(0x1b5)]=_0x10f12d[_0x3ef7d1(0x1b5)]),writeConfigFile(_0x393af6,_0x5a3f98),{'ok':!![],'message':_0x3ef7d1(0x1c7)+(_0x1dd61e===_0x3ef7d1(0x1ab)?_0x3ef7d1(0x1d4):_0x3ef7d1(0x1c9))+':\x20'+_0x174706+'\x20(appcode:\x20'+_0x10f12d[_0x3ef7d1(0x1df)]+_0x3ef7d1(0x1ca)+_0x393af6+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3ef7d1(0x1c3)+_0x1dd61e,'configPath':_0x393af6,'app':_0x174706,'appcode':_0x10f12d[_0x3ef7d1(0x1df)],'env':_0x10f12d[_0x3ef7d1(0x1b5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a179_0x1409e7(0x1b2),'command':'init','description':a179_0x1409e7(0x1d0),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4a37a2=>configureWorkspace(_0x4a37a2,a179_0x1409e7(0x1ab))},workspaceUseDefinition={'service':a179_0x1409e7(0x1b2),'command':a179_0x1409e7(0x1af),'description':a179_0x1409e7(0x1cf),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3a05bb=>configureWorkspace(_0x3a05bb,a179_0x1409e7(0x1af))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a170_0x6b0fac=a170_0x3810;(function(_0x2e8cb6,_0xcd9539){const _0x363447=a170_0x3810,_0x58b3ec=_0x2e8cb6();while(!![]){try{const _0x378efe=parseInt(_0x363447(0x1c5))/0x1*(parseInt(_0x363447(0x1c2))/0x2)+-parseInt(_0x363447(0x1c9))/0x3+-parseInt(_0x363447(0x1bd))/0x4*(-parseInt(_0x363447(0x1c8))/0x5)+parseInt(_0x363447(0x1bf))/0x6*(parseInt(_0x363447(0x1cb))/0x7)+parseInt(_0x363447(0x1cc))/0x8*(-parseInt(_0x363447(0x1c0))/0x9)+parseInt(_0x363447(0x1c6))/0xa+-parseInt(_0x363447(0x1c1))/0xb*(parseInt(_0x363447(0x1ca))/0xc);if(_0x378efe===_0xcd9539)break;else _0x58b3ec['push'](_0x58b3ec['shift']());}catch(_0x314f5a){_0x58b3ec['push'](_0x58b3ec['shift']());}}}(a170_0x4ba2,0x56060));function a170_0x3810(_0x28cd89,_0x32a8eb){_0x28cd89=_0x28cd89-0x1bd;const _0x4ba2ba=a170_0x4ba2();let _0x38101f=_0x4ba2ba[_0x28cd89];return _0x38101f;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a170_0x6b0fac(0x1c3),'description':a170_0x6b0fac(0x1cd),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a170_0x6b0fac(0x1c7),'description':a170_0x6b0fac(0x1c4),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xe9b651=>validateAppName(_0xe9b651,a170_0x6b0fac(0x1be)),'execute':_0x591a4d=>runAppRemove(_0x591a4d,'workspace\x20remove')};function a170_0x4ba2(){const _0xa85481=['90752ZjUyja','workspace\x20remove','120702gVxcEj','9YfaUXZ','46079QbMLro','3788zMcask','remove','App\x20profile\x20name\x20to\x20remove','277gGyveE','3376860VQowUg','name','5slLzfj','128961IfxFXM','1104OUirwz','154JknHhf','4374872iUMrci','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)'];a170_0x4ba2=function(){return _0xa85481;};return a170_0x4ba2();}
1
+ const a180_0x5f074=a180_0x566e;(function(_0x5521bd,_0x1f89a9){const _0x5a044b=a180_0x566e,_0x112f74=_0x5521bd();while(!![]){try{const _0x3f42c1=parseInt(_0x5a044b(0x97))/0x1+parseInt(_0x5a044b(0x9a))/0x2*(parseInt(_0x5a044b(0x95))/0x3)+parseInt(_0x5a044b(0x98))/0x4+-parseInt(_0x5a044b(0x9f))/0x5+-parseInt(_0x5a044b(0x96))/0x6+-parseInt(_0x5a044b(0x9c))/0x7+parseInt(_0x5a044b(0xa1))/0x8;if(_0x3f42c1===_0x1f89a9)break;else _0x112f74['push'](_0x112f74['shift']());}catch(_0x1e7842){_0x112f74['push'](_0x112f74['shift']());}}}(a180_0x5070,0x8bffe));function a180_0x566e(_0x97a0e6,_0x3c16bb){_0x97a0e6=_0x97a0e6-0x94;const _0x5070f2=a180_0x5070();let _0x566ee7=_0x5070f2[_0x97a0e6];return _0x566ee7;}function a180_0x5070(){const _0x9429e2=['remove','9712080sqCBti','high-risk-write','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','3MDbVmt','5011074aNtuXo','301702MIYoQJ','37228Zixrgr','name','617402SybjoW','workspace\x20remove','730877jycsiq','workspace','App\x20profile\x20name\x20to\x20remove','1603460ESCIVL'];a180_0x5070=function(){return _0x9429e2;};return a180_0x5070();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a180_0x5f074(0x9d),'command':a180_0x5f074(0xa0),'description':a180_0x5f074(0x94),'risk':a180_0x5f074(0xa2),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x5f074(0x99),'description':a180_0x5f074(0x9e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4489e4=>validateAppName(_0x4489e4,a180_0x5f074(0x9b)),'execute':_0xa492a4=>runAppRemove(_0xa492a4,a180_0x5f074(0x9b))};
@@ -1 +1 @@
1
- function a171_0x504a(){const _0x1a5728=['apps','pageSize','defaultApp','zh-CN','620340vIRcHn','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','join','3413259vJiAqH','10jLpYYP','keys','110atQnlP','en-US','accessKey','locale','Target\x20environment','env','API\x20directory\x20path','appcode','6315fpNYMi','813700xhCajS','number','format','410080lfACoX','12WVeYKg','length','apiDir','string','riskLevel','Access\x20key','Risk\x20level','cookie','Default\x20page\x20size','app','Config\x20key\x20(','entries','44101OyKFPT','toLowerCase','772USjDRd','1069265pODKBk','inherit','trim','has'];a171_0x504a=function(){return _0x1a5728;};return a171_0x504a();}const a171_0x5291a8=a171_0xb38e;(function(_0x2e88d8,_0x5a8f8c){const _0x3f42c5=a171_0xb38e,_0x4c7342=_0x2e88d8();while(!![]){try{const _0x4a3224=parseInt(_0x3f42c5(0x1eb))/0x1*(parseInt(_0x3f42c5(0x1d0))/0x2)+-parseInt(_0x3f42c5(0x1da))/0x3*(parseInt(_0x3f42c5(0x1ed))/0x4)+-parseInt(_0x3f42c5(0x1ee))/0x5+parseInt(_0x3f42c5(0x1df))/0x6*(parseInt(_0x3f42c5(0x1cc))/0x7)+parseInt(_0x3f42c5(0x1de))/0x8+-parseInt(_0x3f42c5(0x1cf))/0x9+-parseInt(_0x3f42c5(0x1db))/0xa*(-parseInt(_0x3f42c5(0x1d2))/0xb);if(_0x4a3224===_0x5a8f8c)break;else _0x4c7342['push'](_0x4c7342['shift']());}catch(_0x289133){_0x4c7342['push'](_0x4c7342['shift']());}}}(a171_0x504a,0x404a8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a171_0x5291a8(0x1e6),a171_0x5291a8(0x1d4),a171_0x5291a8(0x1d5),a171_0x5291a8(0x1dd),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a171_0x5291a8(0x1d9),a171_0x5291a8(0x1d7),a171_0x5291a8(0x1d5),'format',a171_0x5291a8(0x1e6),a171_0x5291a8(0x1d4),a171_0x5291a8(0x1e1)]);function a171_0xb38e(_0x57d89f,_0x38056f){_0x57d89f=_0x57d89f-0x1c5;const _0x504aa7=a171_0x504a();let _0xb38ed9=_0x504aa7[_0x57d89f];return _0xb38ed9;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5d324c){const _0x18a0ff=a171_0x5291a8;return[..._0x5d324c][_0x18a0ff(0x1ce)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x51a0c5){const _0x2a3970=a171_0x5291a8;return TOP_LEVEL_CONFIG_KEYS[_0x2a3970(0x1c7)](_0x51a0c5);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x311014=a171_0x5291a8;return _0x311014(0x1e9)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a171_0x5291a8(0x1e1),'cookie':a171_0x5291a8(0x1e6),'accessKey':a171_0x5291a8(0x1d4),'defaultFormat':'format','pageSize':a171_0x5291a8(0x1c9),'riskLevel':'riskLevel','locale':a171_0x5291a8(0x1d5)};export function getAppProfileFlagDefs(){const _0x1a1ce9=a171_0x5291a8;return[{'name':_0x1a1ce9(0x1d7),'type':_0x1a1ce9(0x1e2),'description':_0x1a1ce9(0x1d6),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1a1ce9(0x1e1),'type':_0x1a1ce9(0x1e2),'description':_0x1a1ce9(0x1d8)},{'name':_0x1a1ce9(0x1e6),'type':_0x1a1ce9(0x1e2),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x1a1ce9(0x1d4),'type':_0x1a1ce9(0x1e2),'description':_0x1a1ce9(0x1e4),'hidden':!![]},{'name':'defaultFormat','type':_0x1a1ce9(0x1e2),'description':_0x1a1ce9(0x1cd),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1a1ce9(0x1c9),'type':_0x1a1ce9(0x1dc),'description':_0x1a1ce9(0x1e7)},{'name':_0x1a1ce9(0x1e3),'type':_0x1a1ce9(0x1e2),'description':_0x1a1ce9(0x1e5),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1a1ce9(0x1d5),'type':'string','description':'Locale'}];}export function collectAppProfileOverrides(_0x2b2e53){const _0x142ce0=a171_0x5291a8,_0x171c2b={};for(const [_0x1fd998,_0x435944]of Object[_0x142ce0(0x1ea)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1ecfc6=_0x2b2e53(_0x1fd998);if(!_0x1ecfc6)continue;_0x171c2b[_0x435944]=_0x435944===_0x142ce0(0x1c9)?Number(_0x1ecfc6):_0x1ecfc6;}return _0x171c2b;}export function buildAppProfileListFields(_0x777901){const _0x324f1b=a171_0x5291a8;return{'env':_0x777901[_0x324f1b(0x1d7)]??null,'apiDir':_0x777901[_0x324f1b(0x1e1)]??null,'hasCookie':!!_0x777901['cookie'],'hasAccessKey':!!_0x777901[_0x324f1b(0x1d4)],'format':_0x777901[_0x324f1b(0x1dd)]??null,'pageSize':_0x777901[_0x324f1b(0x1c9)]??null,'riskLevel':_0x777901['riskLevel']??null,'locale':_0x777901[_0x324f1b(0x1d5)]??null};}export function buildAppDoctorFields(_0x32882f,_0xcee1a){const _0x346149=a171_0x5291a8;return{'env':{'value':_0x32882f[_0x346149(0x1d7)]||_0xcee1a['env'],'source':_0x32882f[_0x346149(0x1d7)]?_0x346149(0x1e8):'inherit'},'apiDir':{'value':_0x32882f[_0x346149(0x1e1)]||_0xcee1a['apiDir'],'source':_0x32882f[_0x346149(0x1e1)]?_0x346149(0x1e8):_0x346149(0x1c5)},'cookie':{'value':_0x32882f[_0x346149(0x1e6)]||_0xcee1a[_0x346149(0x1e6)],'source':_0x32882f[_0x346149(0x1e6)]?_0x346149(0x1e8):_0x346149(0x1c5)},'accessKey':{'value':_0x32882f[_0x346149(0x1d4)]||_0xcee1a[_0x346149(0x1d4)],'source':_0x32882f[_0x346149(0x1d4)]?_0x346149(0x1e8):_0x346149(0x1c5)}};}export function buildCanonicalAppConfig(_0x4c33ab,_0xdd7c31){const _0x1ea51b=a171_0x5291a8,_0x3b1dae=_0x4c33ab['map'](_0x34bb39=>String(_0x34bb39||'')[_0x1ea51b(0x1c6)]())['filter'](Boolean);if(_0x3b1dae['length']===0x0)return{};const _0x5722db={};for(const _0xed4c8e of _0x3b1dae){_0x5722db[_0xed4c8e]=_0xdd7c31?{'appcode':_0xed4c8e,'env':_0xdd7c31}:{'appcode':_0xed4c8e};}return{'apps':_0x5722db,'defaultApp':_0x3b1dae[0x0]};}export function buildCanonicalProjectConfig(_0x396299,_0x59b338){const _0x4d1d75=a171_0x5291a8,{appCodes:appCodes=[],env:_0x56b6c0,metadata:_0x4b9003}=_0x59b338,_0x4e6b15={..._0x396299,..._0x4b9003||{}};delete _0x4e6b15[_0x4d1d75(0x1d9)],delete _0x4e6b15[_0x4d1d75(0x1e8)];if(_0x56b6c0)_0x4e6b15[_0x4d1d75(0x1d7)]=_0x56b6c0;else!_0x4e6b15[_0x4d1d75(0x1d7)]&&(_0x4e6b15[_0x4d1d75(0x1d7)]=DEFAULT_CONFIG_VALUES[_0x4d1d75(0x1d7)]);const _0x5388ff=buildCanonicalAppConfig(appCodes,_0x4e6b15[_0x4d1d75(0x1d7)]);return Object[_0x4d1d75(0x1d1)](_0x5388ff)[_0x4d1d75(0x1e0)]>0x0&&(_0x4e6b15[_0x4d1d75(0x1c8)]=_0x5388ff['apps'],_0x4e6b15[_0x4d1d75(0x1ca)]=_0x5388ff['defaultApp']),_0x4e6b15;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a171_0x5291a8(0x1cb),'zh_cn':'zh-CN','en':a171_0x5291a8(0x1d3),'en-us':a171_0x5291a8(0x1d3),'en_us':a171_0x5291a8(0x1d3)};export function normalizeLocale(_0x5d96eb){const _0x530a1a=a171_0x5291a8;if(!_0x5d96eb)return null;return LOCALE_MAP[_0x5d96eb[_0x530a1a(0x1ec)]()]??null;}
1
+ const a181_0x2e18a6=a181_0x397d;(function(_0x25a918,_0x103b15){const _0x2e7823=a181_0x397d,_0x2995a1=_0x25a918();while(!![]){try{const _0xb11d60=parseInt(_0x2e7823(0x156))/0x1*(-parseInt(_0x2e7823(0x132))/0x2)+parseInt(_0x2e7823(0x13c))/0x3*(parseInt(_0x2e7823(0x150))/0x4)+-parseInt(_0x2e7823(0x154))/0x5+parseInt(_0x2e7823(0x14c))/0x6+-parseInt(_0x2e7823(0x137))/0x7+parseInt(_0x2e7823(0x155))/0x8*(-parseInt(_0x2e7823(0x130))/0x9)+parseInt(_0x2e7823(0x15a))/0xa*(parseInt(_0x2e7823(0x141))/0xb);if(_0xb11d60===_0x103b15)break;else _0x2995a1['push'](_0x2995a1['shift']());}catch(_0x2d000e){_0x2995a1['push'](_0x2995a1['shift']());}}}(a181_0x2c52,0x83e0b));function a181_0x397d(_0x5a50f4,_0x571f87){_0x5a50f4=_0x5a50f4-0x12f;const _0x2c5205=a181_0x2c52();let _0x397dbe=_0x2c5205[_0x5a50f4];return _0x397dbe;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),'locale','format',a181_0x2e18a6(0x14d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a181_0x2e18a6(0x135),a181_0x2e18a6(0x143),'locale',a181_0x2e18a6(0x142),a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),a181_0x2e18a6(0x14f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2b4108){const _0x737b1f=a181_0x2e18a6;return[..._0x2b4108][_0x737b1f(0x134)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x54e4b2){const _0x171891=a181_0x2e18a6;return TOP_LEVEL_CONFIG_KEYS[_0x171891(0x14b)](_0x54e4b2);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3ab037=a181_0x2e18a6;return _0x3ab037(0x151)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a181_0x2e18a6(0x143),'apiDir':a181_0x2e18a6(0x14f),'cookie':a181_0x2e18a6(0x158),'accessKey':a181_0x2e18a6(0x138),'defaultFormat':a181_0x2e18a6(0x142),'pageSize':a181_0x2e18a6(0x12f),'riskLevel':a181_0x2e18a6(0x14d),'locale':a181_0x2e18a6(0x148)};export function getAppProfileFlagDefs(){const _0x322c58=a181_0x2e18a6;return[{'name':_0x322c58(0x143),'type':_0x322c58(0x14a),'description':_0x322c58(0x13f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x322c58(0x14f),'type':'string','description':_0x322c58(0x136)},{'name':_0x322c58(0x158),'type':_0x322c58(0x14a),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x322c58(0x14a),'description':_0x322c58(0x13b),'hidden':!![]},{'name':_0x322c58(0x144),'type':_0x322c58(0x14a),'description':_0x322c58(0x147),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x322c58(0x12f),'type':_0x322c58(0x145),'description':_0x322c58(0x133)},{'name':_0x322c58(0x14d),'type':_0x322c58(0x14a),'description':_0x322c58(0x139),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x322c58(0x14a),'description':'Locale'}];}export function collectAppProfileOverrides(_0x2490c7){const _0x3a1575=a181_0x2e18a6,_0x308307={};for(const [_0x5d384b,_0x304e8d]of Object[_0x3a1575(0x13e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21f2a8=_0x2490c7(_0x5d384b);if(!_0x21f2a8)continue;_0x308307[_0x304e8d]=_0x304e8d===_0x3a1575(0x12f)?Number(_0x21f2a8):_0x21f2a8;}return _0x308307;}export function buildAppProfileListFields(_0x42952a){const _0x14cce1=a181_0x2e18a6;return{'env':_0x42952a[_0x14cce1(0x143)]??null,'apiDir':_0x42952a['apiDir']??null,'hasCookie':!!_0x42952a[_0x14cce1(0x158)],'hasAccessKey':!!_0x42952a[_0x14cce1(0x138)],'format':_0x42952a[_0x14cce1(0x142)]??null,'pageSize':_0x42952a[_0x14cce1(0x12f)]??null,'riskLevel':_0x42952a[_0x14cce1(0x14d)]??null,'locale':_0x42952a[_0x14cce1(0x148)]??null};}export function buildAppDoctorFields(_0x1e0919,_0x10347d){const _0x139251=a181_0x2e18a6;return{'env':{'value':_0x1e0919[_0x139251(0x143)]||_0x10347d[_0x139251(0x143)],'source':_0x1e0919['env']?_0x139251(0x140):_0x139251(0x159)},'apiDir':{'value':_0x1e0919[_0x139251(0x14f)]||_0x10347d[_0x139251(0x14f)],'source':_0x1e0919[_0x139251(0x14f)]?_0x139251(0x140):_0x139251(0x159)},'cookie':{'value':_0x1e0919[_0x139251(0x158)]||_0x10347d[_0x139251(0x158)],'source':_0x1e0919[_0x139251(0x158)]?_0x139251(0x140):_0x139251(0x159)},'accessKey':{'value':_0x1e0919[_0x139251(0x138)]||_0x10347d[_0x139251(0x138)],'source':_0x1e0919[_0x139251(0x138)]?_0x139251(0x140):_0x139251(0x159)}};}export function buildCanonicalAppConfig(_0x2f1ce7,_0xa2f38e){const _0x57e95c=a181_0x2e18a6,_0x2d9f13=_0x2f1ce7['map'](_0x19ffc3=>String(_0x19ffc3||'')[_0x57e95c(0x157)]())[_0x57e95c(0x13a)](Boolean);if(_0x2d9f13[_0x57e95c(0x149)]===0x0)return{};const _0x39887e={};for(const _0x166842 of _0x2d9f13){_0x39887e[_0x166842]=_0xa2f38e?{'appcode':_0x166842,'env':_0xa2f38e}:{'appcode':_0x166842};}return{'apps':_0x39887e,'defaultApp':_0x2d9f13[0x0]};}function a181_0x2c52(){const _0x2a126e=['11eiOsZs','format','env','defaultFormat','number','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','locale','length','string','has','5107848CPMMKN','riskLevel','zh-CN','apiDir','140332BEqmnW','Config\x20key\x20(','apps','en-US','4870420xaUAwX','24gCfKBP','375915OgLbgT','trim','cookie','inherit','17840530xXOcDn','pageSize','3192363SfMyFd','toLowerCase','2TgVITy','Default\x20page\x20size','join','appcode','API\x20directory\x20path','1205624SrHApZ','accessKey','Risk\x20level','filter','Access\x20key','42FpMOkk','keys','entries','Target\x20environment','app'];a181_0x2c52=function(){return _0x2a126e;};return a181_0x2c52();}export function buildCanonicalProjectConfig(_0x4d2570,_0x32031d){const _0x1b254c=a181_0x2e18a6,{appCodes:appCodes=[],env:_0x570d0f,metadata:_0x57124e}=_0x32031d,_0x48fe47={..._0x4d2570,..._0x57124e||{}};delete _0x48fe47['appcode'],delete _0x48fe47['app'];if(_0x570d0f)_0x48fe47[_0x1b254c(0x143)]=_0x570d0f;else!_0x48fe47[_0x1b254c(0x143)]&&(_0x48fe47[_0x1b254c(0x143)]=DEFAULT_CONFIG_VALUES['env']);const _0x353a4d=buildCanonicalAppConfig(appCodes,_0x48fe47[_0x1b254c(0x143)]);return Object[_0x1b254c(0x13d)](_0x353a4d)[_0x1b254c(0x149)]>0x0&&(_0x48fe47[_0x1b254c(0x152)]=_0x353a4d[_0x1b254c(0x152)],_0x48fe47[_0x1b254c(0x146)]=_0x353a4d[_0x1b254c(0x146)]),_0x48fe47;}const LOCALE_MAP={'zh':a181_0x2e18a6(0x14e),'zh-cn':a181_0x2e18a6(0x14e),'zh_cn':'zh-CN','en':a181_0x2e18a6(0x153),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x246710){const _0x41c5f8=a181_0x2e18a6;if(!_0x246710)return null;return LOCALE_MAP[_0x246710[_0x41c5f8(0x131)]()]??null;}
@@ -1 +1 @@
1
- const a172_0x5dd23c=a172_0x7964;(function(_0x5b07f4,_0x35611f){const _0x2ed1b3=a172_0x7964,_0x2441ab=_0x5b07f4();while(!![]){try{const _0x1622f7=-parseInt(_0x2ed1b3(0x14e))/0x1+-parseInt(_0x2ed1b3(0x150))/0x2*(-parseInt(_0x2ed1b3(0x14a))/0x3)+-parseInt(_0x2ed1b3(0x14f))/0x4*(parseInt(_0x2ed1b3(0x152))/0x5)+-parseInt(_0x2ed1b3(0x14c))/0x6+-parseInt(_0x2ed1b3(0x14b))/0x7*(parseInt(_0x2ed1b3(0x148))/0x8)+-parseInt(_0x2ed1b3(0x14d))/0x9*(-parseInt(_0x2ed1b3(0x149))/0xa)+parseInt(_0x2ed1b3(0x153))/0xb;if(_0x1622f7===_0x35611f)break;else _0x2441ab['push'](_0x2441ab['shift']());}catch(_0x2eb1d8){_0x2441ab['push'](_0x2441ab['shift']());}}}(a172_0x2c99,0x943fb));export const CLI_VERSION_POLICY_URL=a172_0x5dd23c(0x151);function a172_0x7964(_0x14fa1b,_0x540984){_0x14fa1b=_0x14fa1b-0x148;const _0x2c9959=a172_0x2c99();let _0x79646d=_0x2c9959[_0x14fa1b];return _0x79646d;}function a172_0x2c99(){const _0x4cc3a1=['280ukufZC','3JbphAX','7cBjiUT','2814978bXIVyv','68454lBbede','688894BKXHVd','140872yjviXc','1133548SvcbIL','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','95YTgbTb','30565557kZDuKl','8992024TBhqhI'];a172_0x2c99=function(){return _0x4cc3a1;};return a172_0x2c99();}
1
+ const a182_0x78385c=a182_0x280f;function a182_0x280f(_0x11d503,_0x3cb8dc){_0x11d503=_0x11d503-0x126;const _0x225022=a182_0x2250();let _0x280f6d=_0x225022[_0x11d503];return _0x280f6d;}function a182_0x2250(){const _0x595c37=['54GOulWx','5501144MwDmRC','5121110tYGdmp','3xqRgFz','528196VpgIcU','2640750TNWRfI','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1935856BOtEmP','495044qqmEbH','15uWOZPR','3063046xHPFTO'];a182_0x2250=function(){return _0x595c37;};return a182_0x2250();}(function(_0x307ce7,_0x39c9a1){const _0x4b7c39=a182_0x280f,_0x198c2e=_0x307ce7();while(!![]){try{const _0x3d1d8d=parseInt(_0x4b7c39(0x129))/0x1+parseInt(_0x4b7c39(0x12d))/0x2+parseInt(_0x4b7c39(0x128))/0x3*(-parseInt(_0x4b7c39(0x126))/0x4)+parseInt(_0x4b7c39(0x12e))/0x5*(-parseInt(_0x4b7c39(0x12a))/0x6)+-parseInt(_0x4b7c39(0x12f))/0x7+parseInt(_0x4b7c39(0x12c))/0x8+parseInt(_0x4b7c39(0x130))/0x9*(parseInt(_0x4b7c39(0x127))/0xa);if(_0x3d1d8d===_0x39c9a1)break;else _0x198c2e['push'](_0x198c2e['shift']());}catch(_0x15908e){_0x198c2e['push'](_0x198c2e['shift']());}}}(a182_0x2250,0xe9ac7));export const CLI_VERSION_POLICY_URL=a182_0x78385c(0x12b);
@@ -1 +1 @@
1
- const a173_0xd81623=a173_0x2c4f;(function(_0x2301a4,_0x27c40b){const _0x5c8b7a=a173_0x2c4f,_0x144f44=_0x2301a4();while(!![]){try{const _0x554d45=-parseInt(_0x5c8b7a(0x14d))/0x1*(-parseInt(_0x5c8b7a(0x162))/0x2)+-parseInt(_0x5c8b7a(0x15c))/0x3+parseInt(_0x5c8b7a(0x15f))/0x4+parseInt(_0x5c8b7a(0x15e))/0x5+parseInt(_0x5c8b7a(0x175))/0x6+-parseInt(_0x5c8b7a(0x159))/0x7+-parseInt(_0x5c8b7a(0x128))/0x8;if(_0x554d45===_0x27c40b)break;else _0x144f44['push'](_0x144f44['shift']());}catch(_0xdb43a7){_0x144f44['push'](_0x144f44['shift']());}}}(a173_0x679a,0xeb75b));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a173_0xd81623(0x194);export const NPM_PACKAGE_NAME=a173_0xd81623(0x188);function a173_0x2c4f(_0xfaef90,_0x16486e){_0xfaef90=_0xfaef90-0x126;const _0x679a70=a173_0x679a();let _0x2c4f0d=_0x679a70[_0xfaef90];return _0x2c4f0d;}export const GLOBAL_FLAGS=[{'name':a173_0xd81623(0x136),'meowKey':a173_0xd81623(0x136),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x16d),'hint':a173_0xd81623(0x141)},{'name':a173_0xd81623(0x18c),'meowKey':a173_0xd81623(0x18c),'type':'string','description':a173_0xd81623(0x185),'hint':a173_0xd81623(0x127)},{'name':a173_0xd81623(0x155),'meowKey':a173_0xd81623(0x155),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x12b),'hint':a173_0xd81623(0x150)},{'name':'format','meowKey':a173_0xd81623(0x18d),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17b),'hint':a173_0xd81623(0x146)},{'name':'jq','meowKey':'jq','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x133),'hint':a173_0xd81623(0x13f)},{'name':a173_0xd81623(0x170),'meowKey':'dryRun','type':a173_0xd81623(0x151),'description':'Preview\x20operation\x20without\x20executing'},{'name':a173_0xd81623(0x152),'meowKey':'yes','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x157)},{'name':'non-interactive','meowKey':'nonInteractive','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x191)},{'name':'global','meowKey':a173_0xd81623(0x148),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a173_0xd81623(0x15b),'type':'boolean','description':a173_0xd81623(0x16a)},{'name':'ci','meowKey':'ci','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x153),'hidden':!![]},{'name':a173_0xd81623(0x183),'meowKey':'help','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x160)},{'name':a173_0xd81623(0x16c),'meowKey':a173_0xd81623(0x16c),'type':a173_0xd81623(0x192),'description':'Name','hidden':!![]},{'name':a173_0xd81623(0x12c),'meowKey':'title','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x126),'hidden':!![]},{'name':a173_0xd81623(0x163),'meowKey':a173_0xd81623(0x163),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x16b),'hidden':!![]},{'name':a173_0xd81623(0x154),'meowKey':a173_0xd81623(0x154),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x147),'hidden':!![]},{'name':a173_0xd81623(0x179),'meowKey':'output','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x184),'hidden':!![]},{'name':'params','meowKey':a173_0xd81623(0x187),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x181),'hidden':!![]},{'name':a173_0xd81623(0x149),'meowKey':a173_0xd81623(0x149),'type':a173_0xd81623(0x192),'description':'Dataset\x20code','hidden':!![]},{'name':a173_0xd81623(0x172),'meowKey':a173_0xd81623(0x172),'type':'boolean','description':a173_0xd81623(0x189),'hidden':!![]},{'name':a173_0xd81623(0x13d),'meowKey':a173_0xd81623(0x193),'type':'boolean','description':a173_0xd81623(0x12d),'hidden':!![]},{'name':'id','meowKey':'id','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x156),'hidden':!![]},{'name':a173_0xd81623(0x17a),'meowKey':a173_0xd81623(0x17a),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18b),'hidden':!![]},{'name':a173_0xd81623(0x16f),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a173_0xd81623(0x16e),'meowKey':a173_0xd81623(0x16e),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17d),'hidden':!![]},{'name':'sql-name','meowKey':a173_0xd81623(0x134),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14a),'hidden':!![]},{'name':'sqlname','meowKey':a173_0xd81623(0x186),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14a),'hidden':!![]},{'name':a173_0xd81623(0x17f),'meowKey':'dbId','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x12e),'hidden':!![]},{'name':a173_0xd81623(0x135),'meowKey':a173_0xd81623(0x135),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a173_0xd81623(0x167),'meowKey':a173_0xd81623(0x167),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x161),'hidden':!![]},{'name':a173_0xd81623(0x14b),'meowKey':a173_0xd81623(0x14e),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17e),'hidden':!![]},{'name':a173_0xd81623(0x14c),'meowKey':'page','type':a173_0xd81623(0x192),'description':'Page\x20number','hidden':!![]},{'name':a173_0xd81623(0x190),'meowKey':a173_0xd81623(0x190),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14f),'hidden':!![]},{'name':a173_0xd81623(0x15a),'meowKey':a173_0xd81623(0x15a),'type':'string','description':a173_0xd81623(0x13b),'hidden':!![]},{'name':a173_0xd81623(0x139),'meowKey':a173_0xd81623(0x139),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x138),'hidden':!![]},{'name':a173_0xd81623(0x12a),'meowKey':'sql','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x129),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':'string','description':'Schemas','hidden':!![]},{'name':a173_0xd81623(0x180),'meowKey':a173_0xd81623(0x180),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18f),'hidden':!![]},{'name':'target','meowKey':a173_0xd81623(0x13e),'type':'string','description':a173_0xd81623(0x17c),'hidden':!![]},{'name':'skip-imports','meowKey':a173_0xd81623(0x182),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x166),'hidden':!![]},{'name':a173_0xd81623(0x137),'meowKey':a173_0xd81623(0x137),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x132),'hidden':!![]},{'name':a173_0xd81623(0x174),'meowKey':'value','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x144),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18a),'hidden':!![]},{'name':a173_0xd81623(0x169),'meowKey':a173_0xd81623(0x169),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x18e),'hidden':!![]},{'name':a173_0xd81623(0x164),'meowKey':a173_0xd81623(0x143),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x140),'hidden':!![]},{'name':a173_0xd81623(0x173),'meowKey':a173_0xd81623(0x173),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x196),'hidden':!![]},{'name':a173_0xd81623(0x131),'meowKey':a173_0xd81623(0x131),'type':'boolean','description':a173_0xd81623(0x171),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a173_0xd81623(0x151),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a173_0xd81623(0x15d),'meowKey':'remote','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x130),'hidden':!![]},{'name':'verbose','meowKey':a173_0xd81623(0x142),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x178),'hidden':!![]},{'name':a173_0xd81623(0x195),'meowKey':a173_0xd81623(0x158),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x165),'hidden':!![]},{'name':a173_0xd81623(0x12f),'meowKey':'operationType','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18f),'hidden':!![]},{'name':a173_0xd81623(0x13c),'meowKey':'functionNode','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x145),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a173_0xd81623(0x136),a173_0xd81623(0x18c),a173_0xd81623(0x155),'format','jq',a173_0xd81623(0x170),'yes',a173_0xd81623(0x176),'ci']);export function buildMeowFlags(){const _0x594d32=a173_0xd81623;return Object[_0x594d32(0x13a)](GLOBAL_FLAGS[_0x594d32(0x177)](_0x2a4add=>[_0x2a4add[_0x594d32(0x168)],{'type':_0x2a4add[_0x594d32(0x17a)]}]));}function a173_0x679a(){const _0x231963=['SQL\x20string','sql','Environment','title','Enable\x20BFF\x20save','DB\x20ID','operation-type','Use\x20remote','force','Config\x20key','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','sqlName','dbid','appcode','key','Code\x20filter','code','fromEntries','Keyword\x20filter','function-node','enable-bff-save','target','<expr>','Read\x20value\x20from\x20environment\x20variable','<code>','verbose','fromEnv','Config\x20value','Function\x20node','json\x20|\x20pretty\x20|\x20compress','Watch\x20mode','global','datasetcode','SQL\x20name','description-file','page','20407AhYDXy','descriptionFile','Page\x20size','production\x20|\x20daily','boolean','yes','Alias\x20for\x20--non-interactive','watch','env','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedCount','6264111dNsYJc','keyword','project','2808882GgNSdX','remote','1297975DYIkGL','3992404XsGFGY','Show\x20help','Description','26SCZUwd','clear','from-env','Expected\x20affected\x20count','Skip\x20import\x20generation','description','meowKey','stdin','Use\x20project\x20config\x20scope','Clear','name','Override\x20appcode','sqlcode','file','dry-run','Force\x20overwrite','all','reveal','value','9569064wgtNCU','non-interactive','map','Verbose\x20output','output','type','Output\x20format','Target\x20path','SQL\x20code','Description\x20file','db-id','operation','JSON\x20params','skipImports','help','Output\x20path','Select\x20app\x20profile\x20by\x20name','sqlname','params','@lovrabet/rabetbase-cli','Apply\x20to\x20all','Tags','Type\x20filter','app','format','Read\x20value\x20from\x20stdin','Operation\x20type','pagesize','Force\x20non-interactive\x20mode\x20(CI)','string','enableBffSave','Rabetbase\x20CLI','expected-count','Reveal\x20sensitive\x20value','Title','<name>','2577768rHLdEO'];a173_0x679a=function(){return _0x231963;};return a173_0x679a();}
1
+ const a183_0xd42986=a183_0x25a8;(function(_0x4a02b4,_0x245ee5){const _0x1ff4b4=a183_0x25a8,_0x38aebf=_0x4a02b4();while(!![]){try{const _0xb31a06=parseInt(_0x1ff4b4(0x209))/0x1*(parseInt(_0x1ff4b4(0x1d3))/0x2)+-parseInt(_0x1ff4b4(0x1e6))/0x3+-parseInt(_0x1ff4b4(0x1e7))/0x4+parseInt(_0x1ff4b4(0x1d1))/0x5+-parseInt(_0x1ff4b4(0x1bc))/0x6*(parseInt(_0x1ff4b4(0x1c6))/0x7)+parseInt(_0x1ff4b4(0x220))/0x8+-parseInt(_0x1ff4b4(0x1c2))/0x9*(-parseInt(_0x1ff4b4(0x1d2))/0xa);if(_0xb31a06===_0x245ee5)break;else _0x38aebf['push'](_0x38aebf['shift']());}catch(_0x2495a4){_0x38aebf['push'](_0x38aebf['shift']());}}}(a183_0x5dcb,0x9a13e));export const CLI_BIN_NAME=a183_0xd42986(0x21c);export const CLI_DISPLAY_NAME=a183_0xd42986(0x232);export const NPM_PACKAGE_NAME=a183_0xd42986(0x1f1);function a183_0x5dcb(){const _0x37123c=['343727jZPxsc','env','keyword','datasetcode','Menu\x20label','all','Type\x20filter','code','Skip\x20import\x20generation','fromEntries','skip-imports','Function\x20node','sql','page','help','target','key','skipImports','Config\x20key','rabetbase','SQL\x20name','tags','title','2700888RpeZlj','map','Watch\x20mode','operation-type','functionNode','Description','enableBffSave','JSON\x20params','fromEnv','from-env','output','sort','Target\x20path','dryRun','boolean','Expected\x20current\x20child\x20count','Enable\x20BFF\x20save','Clear','Rabetbase\x20CLI','task-id','expected-count','Use\x20global\x20config\x20scope','string','json\x20|\x20pretty\x20|\x20compress','file','dry-run','Menu\x20sort\x20value','expectedCount','appcode','enable-bff-save','114ySPEjX','Parent\x20menu\x20id','sqlcode','Asynchronous\x20task\x20ID','Output\x20path','Expected\x20affected\x20count','2868714ONHlYO','Verbose\x20output','clear','name','105665NiQcFB','pagesize','app','non-interactive','Expected\x20current\x20parent\x20menu\x20id','operationType','Description\x20file','remote','expected-children-count','sql-name','Skip\x20confirmation\x20for\x20high-risk\x20writes','4936805YJzvEw','20oNrtiJ','6ZWxxoY','db-id','yes','File\x20path','Title','verbose','nonInteractive','menu-ids','Read\x20value\x20from\x20stdin','expectPath','global','Output\x20format','Operation\x20type','Alias\x20for\x20--non-interactive','params','value','<expr>','Select\x20app\x20profile\x20by\x20name','operation','3281325hCEjnG','3927852uSkjUd','project','Override\x20appcode','stdin','Name','expect-path','Schemas','Config\x20value','Force\x20non-interactive\x20mode\x20(CI)','Code\x20filter','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','dbId','function-node','confirm','DB\x20ID','Page\x20number','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','sqlname','Confirm\x20destructive\x20action','Apply\x20to\x20all','Force\x20overwrite','sqlName','watch','label','Record\x20ID','meowKey','Dataset\x20code','format','force','Read\x20value\x20from\x20environment\x20variable','type','schemas'];a183_0x5dcb=function(){return _0x37123c;};return a183_0x5dcb();}export const GLOBAL_FLAGS=[{'name':a183_0xd42986(0x23c),'meowKey':'appcode','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1e9),'hint':'<code>'},{'name':a183_0xd42986(0x1c8),'meowKey':a183_0xd42986(0x1c8),'type':'string','description':a183_0xd42986(0x1e4),'hint':'<name>'},{'name':a183_0xd42986(0x20a),'meowKey':a183_0xd42986(0x20a),'type':a183_0xd42986(0x236),'description':'Environment','hint':'production\x20|\x20daily'},{'name':'format','meowKey':a183_0xd42986(0x204),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1de),'hint':a183_0xd42986(0x237)},{'name':'jq','meowKey':'jq','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f8),'hint':a183_0xd42986(0x1e3)},{'name':a183_0xd42986(0x239),'meowKey':a183_0xd42986(0x22d),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1f2)},{'name':'yes','meowKey':a183_0xd42986(0x1d5),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1d0)},{'name':a183_0xd42986(0x1c9),'meowKey':a183_0xd42986(0x1d9),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1ef)},{'name':a183_0xd42986(0x1dd),'meowKey':a183_0xd42986(0x1dd),'type':'boolean','description':a183_0xd42986(0x235)},{'name':a183_0xd42986(0x1e8),'meowKey':a183_0xd42986(0x1e8),'type':a183_0xd42986(0x22e),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a183_0xd42986(0x1e0),'hidden':!![]},{'name':a183_0xd42986(0x217),'meowKey':'help','type':a183_0xd42986(0x22e),'description':'Show\x20help'},{'name':a183_0xd42986(0x1c5),'meowKey':a183_0xd42986(0x1c5),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1eb),'hidden':!![]},{'name':a183_0xd42986(0x21f),'meowKey':a183_0xd42986(0x21f),'type':'string','description':a183_0xd42986(0x1d7),'hidden':!![]},{'name':'clear','meowKey':a183_0xd42986(0x1c4),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x231),'hidden':!![]},{'name':a183_0xd42986(0x1ff),'meowKey':a183_0xd42986(0x1ff),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x222),'hidden':!![]},{'name':'output','meowKey':a183_0xd42986(0x22a),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c0),'hidden':!![]},{'name':a183_0xd42986(0x1e1),'meowKey':a183_0xd42986(0x1e1),'type':'string','description':a183_0xd42986(0x227),'hidden':!![]},{'name':'datasetcode','meowKey':a183_0xd42986(0x20c),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x203),'hidden':!![]},{'name':'all','meowKey':a183_0xd42986(0x20e),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fc),'hidden':!![]},{'name':a183_0xd42986(0x23d),'meowKey':a183_0xd42986(0x226),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x230),'hidden':!![]},{'name':'id','meowKey':'id','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x201),'hidden':!![]},{'name':a183_0xd42986(0x207),'meowKey':a183_0xd42986(0x207),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x20f),'hidden':!![]},{'name':'file','meowKey':a183_0xd42986(0x238),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1d6),'hidden':!![]},{'name':a183_0xd42986(0x1be),'meowKey':a183_0xd42986(0x1be),'type':a183_0xd42986(0x236),'description':'SQL\x20code','hidden':!![]},{'name':a183_0xd42986(0x1cf),'meowKey':a183_0xd42986(0x1fe),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1fa),'meowKey':a183_0xd42986(0x1fa),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1d4),'meowKey':a183_0xd42986(0x1f3),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'description','meowKey':'description','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x225),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1cc),'hidden':!![]},{'name':a183_0xd42986(0x216),'meowKey':a183_0xd42986(0x216),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f7),'hidden':!![]},{'name':a183_0xd42986(0x1c7),'meowKey':a183_0xd42986(0x1c7),'type':a183_0xd42986(0x236),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a183_0xd42986(0x20b),'type':a183_0xd42986(0x236),'description':'Keyword\x20filter','hidden':!![]},{'name':a183_0xd42986(0x210),'meowKey':'code','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f0),'hidden':!![]},{'name':a183_0xd42986(0x215),'meowKey':'sql','type':a183_0xd42986(0x236),'description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a183_0xd42986(0x208),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ed),'hidden':!![]},{'name':a183_0xd42986(0x1e5),'meowKey':a183_0xd42986(0x1e5),'type':'string','description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x218),'meowKey':a183_0xd42986(0x218),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x22c),'hidden':!![]},{'name':a183_0xd42986(0x213),'meowKey':a183_0xd42986(0x21a),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x211),'hidden':!![]},{'name':a183_0xd42986(0x219),'meowKey':a183_0xd42986(0x219),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21b),'hidden':!![]},{'name':'value','meowKey':a183_0xd42986(0x1e2),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ee),'hidden':!![]},{'name':a183_0xd42986(0x21e),'meowKey':a183_0xd42986(0x21e),'type':'string','description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a183_0xd42986(0x1ea),'type':'boolean','description':a183_0xd42986(0x1db),'hidden':!![]},{'name':a183_0xd42986(0x229),'meowKey':a183_0xd42986(0x228),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x206),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a183_0xd42986(0x22e),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a183_0xd42986(0x205),'meowKey':'force','type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fd),'hidden':!![]},{'name':a183_0xd42986(0x1f5),'meowKey':a183_0xd42986(0x1f5),'type':'boolean','description':a183_0xd42986(0x1fb),'hidden':!![]},{'name':a183_0xd42986(0x1cd),'meowKey':a183_0xd42986(0x1cd),'type':a183_0xd42986(0x22e),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a183_0xd42986(0x1d8),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1c3),'hidden':!![]},{'name':a183_0xd42986(0x234),'meowKey':a183_0xd42986(0x23b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c1),'hidden':!![]},{'name':a183_0xd42986(0x200),'meowKey':'label','type':'string','description':a183_0xd42986(0x20d),'hidden':!![]},{'name':'parent-id','meowKey':'parentId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bd),'hidden':!![]},{'name':a183_0xd42986(0x22b),'meowKey':a183_0xd42986(0x22b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x23a),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':a183_0xd42986(0x1ca),'hidden':!![]},{'name':a183_0xd42986(0x1ec),'meowKey':a183_0xd42986(0x1dc),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f9),'hidden':!![]},{'name':a183_0xd42986(0x1ce),'meowKey':'expectedChildrenCount','type':'string','description':a183_0xd42986(0x22f),'hidden':!![]},{'name':a183_0xd42986(0x1da),'meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a183_0xd42986(0x233),'meowKey':'taskId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bf),'hidden':!![]},{'name':a183_0xd42986(0x223),'meowKey':a183_0xd42986(0x1cb),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x1f4),'meowKey':a183_0xd42986(0x224),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x214),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a183_0xd42986(0x23c),a183_0xd42986(0x1c8),'env',a183_0xd42986(0x204),'jq',a183_0xd42986(0x239),a183_0xd42986(0x1d5),a183_0xd42986(0x1c9),'ci']);function a183_0x25a8(_0x3a33dd,_0x323c61){_0x3a33dd=_0x3a33dd-0x1bc;const _0x5dcb89=a183_0x5dcb();let _0x25a863=_0x5dcb89[_0x3a33dd];return _0x25a863;}export function buildMeowFlags(){const _0x144dfc=a183_0xd42986;return Object[_0x144dfc(0x212)](GLOBAL_FLAGS[_0x144dfc(0x221)](_0xcb3933=>[_0xcb3933[_0x144dfc(0x202)],{'type':_0xcb3933[_0x144dfc(0x207)]}]));}
@@ -1 +1 @@
1
- function a174_0x44ae(_0xf04d68,_0x13c566){_0xf04d68=_0xf04d68-0x1ac;const _0xd03120=a174_0xd031();let _0x44ae8f=_0xd03120[_0xf04d68];return _0x44ae8f;}const a174_0x27b3f2=a174_0x44ae;function a174_0xd031(){const _0x5cd746=['3516219lOtDCt','897hERqNj','compress','2664igrdZO','2135590ySCanL','7118160AcEAEA','3552534YHIQlT','en-US','high-risk-write','438682pRJPFv','production','279852YLpEpX'];a174_0xd031=function(){return _0x5cd746;};return a174_0xd031();}(function(_0x14ed86,_0xafca4){const _0x594a4e=a174_0x44ae,_0x594549=_0x14ed86();while(!![]){try{const _0x1ee27a=parseInt(_0x594a4e(0x1b5))/0x1+-parseInt(_0x594a4e(0x1af))/0x2*(-parseInt(_0x594a4e(0x1ad))/0x3)+parseInt(_0x594a4e(0x1b7))/0x4+parseInt(_0x594a4e(0x1b0))/0x5+-parseInt(_0x594a4e(0x1b2))/0x6+parseInt(_0x594a4e(0x1ac))/0x7+-parseInt(_0x594a4e(0x1b1))/0x8;if(_0x1ee27a===_0xafca4)break;else _0x594549['push'](_0x594549['shift']());}catch(_0x451221){_0x594549['push'](_0x594549['shift']());}}}(a174_0xd031,0x568b9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a174_0x27b3f2(0x1b6),'format':a174_0x27b3f2(0x1ae),'locale':a174_0x27b3f2(0x1b3),'riskLevel':a174_0x27b3f2(0x1b4),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a174_0x27b3f2(0x1ae);
1
+ const a184_0x3d20d9=a184_0x402c;(function(_0x2dd113,_0xc01246){const _0x3db24f=a184_0x402c,_0x310167=_0x2dd113();while(!![]){try{const _0x26d3a9=-parseInt(_0x3db24f(0x1b5))/0x1*(-parseInt(_0x3db24f(0x1b1))/0x2)+-parseInt(_0x3db24f(0x1b4))/0x3+parseInt(_0x3db24f(0x1b0))/0x4*(-parseInt(_0x3db24f(0x1ab))/0x5)+-parseInt(_0x3db24f(0x1ac))/0x6*(parseInt(_0x3db24f(0x1b7))/0x7)+parseInt(_0x3db24f(0x1b3))/0x8*(-parseInt(_0x3db24f(0x1aa))/0x9)+-parseInt(_0x3db24f(0x1ae))/0xa+parseInt(_0x3db24f(0x1b6))/0xb;if(_0x26d3a9===_0xc01246)break;else _0x310167['push'](_0x310167['shift']());}catch(_0x2325bb){_0x310167['push'](_0x310167['shift']());}}}(a184_0x351f,0xd9f65));function a184_0x351f(){const _0x5c8ba3=['production','8cStwHn','3847512wfEjIA','18586ujnmsd','62806469nzlfSA','14jfsdHs','en-US','13404987AcmNmk','10uLNMGO','670854Vgeujh','high-risk-write','13275130iLttmr','compress','1433720ghMSpL','24MzgXiV'];a184_0x351f=function(){return _0x5c8ba3;};return a184_0x351f();}function a184_0x402c(_0x290b4c,_0x411b0e){_0x290b4c=_0x290b4c-0x1a9;const _0x351f0b=a184_0x351f();let _0x402cc0=_0x351f0b[_0x290b4c];return _0x402cc0;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a184_0x3d20d9(0x1b2),'format':a184_0x3d20d9(0x1af),'locale':a184_0x3d20d9(0x1a9),'riskLevel':a184_0x3d20d9(0x1ad),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a184_0x3d20d9(0x1af);
@@ -1 +1 @@
1
- const a175_0x1fe7ca=a175_0x2bc0;function a175_0x2bc0(_0x421e96,_0x5140e5){_0x421e96=_0x421e96-0x1ae;const _0xf778a8=a175_0xf778();let _0x2bc0e4=_0xf778a8[_0x421e96];return _0x2bc0e4;}(function(_0x12b9c5,_0x16fbfd){const _0x5d1410=a175_0x2bc0,_0x26522a=_0x12b9c5();while(!![]){try{const _0x1966e8=-parseInt(_0x5d1410(0x1ba))/0x1+-parseInt(_0x5d1410(0x1b7))/0x2*(parseInt(_0x5d1410(0x1b6))/0x3)+-parseInt(_0x5d1410(0x1b0))/0x4*(parseInt(_0x5d1410(0x1bf))/0x5)+parseInt(_0x5d1410(0x1b5))/0x6*(parseInt(_0x5d1410(0x1bb))/0x7)+parseInt(_0x5d1410(0x1bc))/0x8+-parseInt(_0x5d1410(0x1be))/0x9+parseInt(_0x5d1410(0x1b8))/0xa;if(_0x1966e8===_0x16fbfd)break;else _0x26522a['push'](_0x26522a['shift']());}catch(_0x4f9adb){_0x26522a['push'](_0x26522a['shift']());}}}(a175_0xf778,0x5f664));function a175_0xf778(){const _0x1c7e00=['userDomain','6oYlgnF','1179NIlnKI','2706wBjZmM','9434830FiVTpb','https://daily-runtime.lovrabet.com','307729mPldsk','889266ozYzGU','5942048tPvnZo','trim','934020RgwtIv','15ZNcWkX','https://api.lovrabet.com','https://user.lovrabet.com','639044gAdzJS','/web-app/app/','https://runtime.lovrabet.com','https://app.lovrabet.com'];a175_0xf778=function(){return _0x1c7e00;};return a175_0xf778();}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x21d0fb){const _0x6fcb82=a175_0x2bc0;customApiDomain=_0x21d0fb?.['apiDomain'],customUserDomain=_0x21d0fb?.[_0x6fcb82(0x1b4)],customRuntimeDomain=_0x21d0fb?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1af):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1ae):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1b2):a175_0x1fe7ca(0x1b9));export const getAppDomain=()=>isProduction(getEnv())?a175_0x1fe7ca(0x1b3):'https://daily.lovrabet.com';export const getAppBaseUrl=_0xd8b24b=>{const _0xd8c7e6=a175_0x1fe7ca,_0x350588=encodeURIComponent(_0xd8b24b[_0xd8c7e6(0x1bd)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x350588:getAppDomain()+_0xd8c7e6(0x1b1)+_0x350588;};
1
+ const a185_0x1c17f2=a185_0x576c;(function(_0x5d7b16,_0x3f81c3){const _0x3eb6e8=a185_0x576c,_0x12f08e=_0x5d7b16();while(!![]){try{const _0x4cbf82=-parseInt(_0x3eb6e8(0xdb))/0x1+-parseInt(_0x3eb6e8(0xd1))/0x2+parseInt(_0x3eb6e8(0xd5))/0x3+-parseInt(_0x3eb6e8(0xda))/0x4+parseInt(_0x3eb6e8(0xcf))/0x5+parseInt(_0x3eb6e8(0xc9))/0x6+parseInt(_0x3eb6e8(0xce))/0x7;if(_0x4cbf82===_0x3f81c3)break;else _0x12f08e['push'](_0x12f08e['shift']());}catch(_0x35b94c){_0x12f08e['push'](_0x12f08e['shift']());}}}(a185_0x51df,0x7827f));import{getEnv,isProduction}from'../constant/env.js';function a185_0x51df(){const _0x57fa5d=['https://daily-api.lovrabet.com','https://user.lovrabet.com','1160369zzRQil','3435850RIyZdo','/app/','1883400GBKkuf','runtimeDomain','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','2456253QobFCr','https://app.lovrabet.com','https://daily.lovrabet.com','/web-app/app/','userDomain','50656hTvbPg','247633ziZEeC','apiDomain','https://user-daily.lovrabet.com','134808BSznln','https://api.lovrabet.com','trim'];a185_0x51df=function(){return _0x57fa5d;};return a185_0x51df();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x27ed16){const _0x333349=a185_0x576c;customApiDomain=_0x27ed16?.[_0x333349(0xdc)],customUserDomain=_0x27ed16?.[_0x333349(0xd9)],customRuntimeDomain=_0x27ed16?.[_0x333349(0xd2)];}function a185_0x576c(_0x8bf73e,_0x43df77){_0x8bf73e=_0x8bf73e-0xc9;const _0x51df2e=a185_0x51df();let _0x576c5f=_0x51df2e[_0x8bf73e];return _0x576c5f;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a185_0x1c17f2(0xcd):a185_0x1c17f2(0xdd));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a185_0x1c17f2(0xca):a185_0x1c17f2(0xcc));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a185_0x1c17f2(0xd4):a185_0x1c17f2(0xd3));export const getAppDomain=()=>isProduction(getEnv())?a185_0x1c17f2(0xd6):a185_0x1c17f2(0xd7);export const getAppBaseUrl=_0x44c16d=>{const _0x2fa3be=a185_0x1c17f2,_0x7ecd60=encodeURIComponent(_0x44c16d[_0x2fa3be(0xcb)]());return isProduction(getEnv())?getAppDomain()+_0x2fa3be(0xd0)+_0x7ecd60:getAppDomain()+_0x2fa3be(0xd8)+_0x7ecd60;};
@@ -1 +1 @@
1
- const a176_0x52785b=a176_0x3f0c;(function(_0x5932f0,_0x429c50){const _0x364c21=a176_0x3f0c,_0x4a5289=_0x5932f0();while(!![]){try{const _0x32366e=-parseInt(_0x364c21(0x16b))/0x1*(-parseInt(_0x364c21(0x166))/0x2)+parseInt(_0x364c21(0x16a))/0x3+parseInt(_0x364c21(0x168))/0x4+-parseInt(_0x364c21(0x161))/0x5*(-parseInt(_0x364c21(0x163))/0x6)+-parseInt(_0x364c21(0x16c))/0x7*(-parseInt(_0x364c21(0x170))/0x8)+-parseInt(_0x364c21(0x164))/0x9*(parseInt(_0x364c21(0x16d))/0xa)+parseInt(_0x364c21(0x16e))/0xb*(-parseInt(_0x364c21(0x167))/0xc);if(_0x32366e===_0x429c50)break;else _0x4a5289['push'](_0x4a5289['shift']());}catch(_0x5b3385){_0x4a5289['push'](_0x4a5289['shift']());}}}(a176_0x7d70,0x59e87));export const RABETBASE_ENV_VALUES=[a176_0x52785b(0x162),'daily'];export function normalizeEnv(_0x276b14){const _0x5a2eee=a176_0x52785b;return _0x276b14===_0x5a2eee(0x165)?'production':_0x276b14;}export function isProduction(_0x451f85){return normalizeEnv(_0x451f85)==='production';}function a176_0x3f0c(_0x1e65ea,_0x49be51){_0x1e65ea=_0x1e65ea-0x161;const _0x7d70bd=a176_0x7d70();let _0x3f0c8e=_0x7d70bd[_0x1e65ea];return _0x3f0c8e;}function a176_0x7d70(){const _0x2d3d9b=['49921qaIniy','477127jXigjp','1890uuNlig','2222xxUOAH','dev','72LLqimd','5zeiMnL','production','4294074iGslzm','18756IvKbNJ','online','4kSXvpr','47928DvrUuQ','541508FtOJwU','development','13740mzFBqQ'];a176_0x7d70=function(){return _0x2d3d9b;};return a176_0x7d70();}export function isDaily(_0x508f4c){return normalizeEnv(_0x508f4c)==='daily';}export function isDev(_0x267120){const _0x3f4d2e=a176_0x52785b,_0x5bec97=normalizeEnv(_0x267120);return _0x5bec97===_0x3f4d2e(0x169)||_0x5bec97===_0x3f4d2e(0x16f);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a176_0x52785b(0x162));export function getEnv(){return env;}export function initEnv(_0x1ff4c8){env=normalizeEnv(_0x1ff4c8);}
1
+ const a186_0x303a8d=a186_0x2361;(function(_0x2d0ac9,_0x24a6b6){const _0xace009=a186_0x2361,_0x5546ad=_0x2d0ac9();while(!![]){try{const _0x3d89d2=parseInt(_0xace009(0x13a))/0x1+-parseInt(_0xace009(0x134))/0x2+-parseInt(_0xace009(0x138))/0x3+-parseInt(_0xace009(0x132))/0x4*(-parseInt(_0xace009(0x12e))/0x5)+parseInt(_0xace009(0x131))/0x6*(-parseInt(_0xace009(0x135))/0x7)+parseInt(_0xace009(0x12f))/0x8+parseInt(_0xace009(0x133))/0x9;if(_0x3d89d2===_0x24a6b6)break;else _0x5546ad['push'](_0x5546ad['shift']());}catch(_0x44e753){_0x5546ad['push'](_0x5546ad['shift']());}}}(a186_0x58f1,0x47550));export const RABETBASE_ENV_VALUES=[a186_0x303a8d(0x139),a186_0x303a8d(0x137)];export function normalizeEnv(_0x5f1c64){const _0x48e8af=a186_0x303a8d;return _0x5f1c64===_0x48e8af(0x136)?_0x48e8af(0x139):_0x5f1c64;}export function isProduction(_0x5159f2){const _0x1ed232=a186_0x303a8d;return normalizeEnv(_0x5159f2)===_0x1ed232(0x139);}export function isDaily(_0x19afe4){const _0x5d7059=a186_0x303a8d;return normalizeEnv(_0x19afe4)===_0x5d7059(0x137);}export function isDev(_0x1b659c){const _0x30b493=a186_0x303a8d,_0x4e2b12=normalizeEnv(_0x1b659c);return _0x4e2b12==='development'||_0x4e2b12===_0x30b493(0x130);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a186_0x303a8d(0x139));function a186_0x2361(_0x597c60,_0x1e6e8c){_0x597c60=_0x597c60-0x12e;const _0x58f138=a186_0x58f1();let _0x236182=_0x58f138[_0x597c60];return _0x236182;}function a186_0x58f1(){const _0x3a479d=['1095242fpTVfn','6678kFiypj','online','daily','706200ATyoPo','production','146778sayWQO','1292435EfuLlY','4237776WBnBpS','dev','2064wyfbOl','4usclbQ','4215474PYgXJu'];a186_0x58f1=function(){return _0x3a479d;};return a186_0x58f1();}export function getEnv(){return env;}export function initEnv(_0xf7368b){env=normalizeEnv(_0xf7368b);}
@@ -1 +1 @@
1
- function a177_0x515a(){const _0x4e60c1=['6770670zShDuw','152662kQlahZ','45353tQgSiR','20elehZM','10925001LEVqmx','pretty','75147SWjfjo','11574607MHoEMM','6806768EjnQoD','172DQPoVC','10IxDkCG','json','228eSCkHj'];a177_0x515a=function(){return _0x4e60c1;};return a177_0x515a();}const a177_0x4aa837=a177_0x1c62;function a177_0x1c62(_0x1d8807,_0x1409fe){_0x1d8807=_0x1d8807-0x18d;const _0x515ac5=a177_0x515a();let _0x1c62ff=_0x515ac5[_0x1d8807];return _0x1c62ff;}(function(_0x257470,_0x533ac1){const _0x1e5e4a=a177_0x1c62,_0x144307=_0x257470();while(!![]){try{const _0x4cb9a1=parseInt(_0x1e5e4a(0x198))/0x1*(parseInt(_0x1e5e4a(0x18f))/0x2)+parseInt(_0x1e5e4a(0x194))/0x3*(-parseInt(_0x1e5e4a(0x197))/0x4)+parseInt(_0x1e5e4a(0x18e))/0x5+parseInt(_0x1e5e4a(0x18d))/0x6*(-parseInt(_0x1e5e4a(0x190))/0x7)+parseInt(_0x1e5e4a(0x196))/0x8+parseInt(_0x1e5e4a(0x192))/0x9+-parseInt(_0x1e5e4a(0x191))/0xa*(parseInt(_0x1e5e4a(0x195))/0xb);if(_0x4cb9a1===_0x533ac1)break;else _0x144307['push'](_0x144307['shift']());}catch(_0x4d59ff){_0x144307['push'](_0x144307['shift']());}}}(a177_0x515a,0xb82dc));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a177_0x4aa837(0x199),a177_0x4aa837(0x193),'compress'];
1
+ const a187_0x4ddedb=a187_0x6c53;(function(_0x4a5cf0,_0x5ea7a8){const _0x593376=a187_0x6c53,_0x47615a=_0x4a5cf0();while(!![]){try{const _0x466f6d=parseInt(_0x593376(0x97))/0x1+-parseInt(_0x593376(0x9f))/0x2+parseInt(_0x593376(0x94))/0x3*(parseInt(_0x593376(0x9e))/0x4)+parseInt(_0x593376(0x9b))/0x5*(-parseInt(_0x593376(0x96))/0x6)+-parseInt(_0x593376(0x93))/0x7+parseInt(_0x593376(0x9d))/0x8+parseInt(_0x593376(0x9a))/0x9*(-parseInt(_0x593376(0x98))/0xa);if(_0x466f6d===_0x5ea7a8)break;else _0x47615a['push'](_0x47615a['shift']());}catch(_0xb5ffa4){_0x47615a['push'](_0x47615a['shift']());}}}(a187_0x5bf9,0x64adc));function a187_0x6c53(_0x32bbf8,_0x253d57){_0x32bbf8=_0x32bbf8-0x93;const _0x5bf92c=a187_0x5bf9();let _0x6c530b=_0x5bf92c[_0x32bbf8];return _0x6c530b;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a187_0x4ddedb(0x95),a187_0x4ddedb(0x9c),a187_0x4ddedb(0x99)];function a187_0x5bf9(){const _0x240a4f=['817375aMpnQq','10SoRyrk','compress','5139999JQyHor','5LszVoC','pretty','4926136yIWfwW','252DNRxqz','315896AWdlgO','4181653NTQBRg','36417xpxrIL','json','2754486GCLFRD'];a187_0x5bf9=function(){return _0x240a4f;};return a187_0x5bf9();}
@@ -1 +1 @@
1
- (function(_0x266388,_0x484737){const _0x2b639b=a178_0x2cdd,_0x199024=_0x266388();while(!![]){try{const _0x104aa1=parseInt(_0x2b639b(0x1e6))/0x1+-parseInt(_0x2b639b(0x1e8))/0x2+-parseInt(_0x2b639b(0x1e7))/0x3*(parseInt(_0x2b639b(0x1ea))/0x4)+parseInt(_0x2b639b(0x1eb))/0x5+parseInt(_0x2b639b(0x1ec))/0x6+-parseInt(_0x2b639b(0x1e5))/0x7+parseInt(_0x2b639b(0x1e9))/0x8;if(_0x104aa1===_0x484737)break;else _0x199024['push'](_0x199024['shift']());}catch(_0x46461a){_0x199024['push'](_0x199024['shift']());}}}(a178_0x2ee3,0x496da));function a178_0x2cdd(_0x6dfc17,_0x19bcd2){_0x6dfc17=_0x6dfc17-0x1e5;const _0x2ee3b5=a178_0x2ee3();let _0x2cddca=_0x2ee3b5[_0x6dfc17];return _0x2cddca;}function a178_0x2ee3(){const _0x55e64d=['699220BaTqAJ','2514828QhmRGv','3562300apyrCB','465847lnxCmc','76482WyItUH','945144ExZECu','2263192wtpfeP','4wsnrSE'];a178_0x2ee3=function(){return _0x55e64d;};return a178_0x2ee3();}export const DEFAULT_API_DIR='./src/api';
1
+ const a188_0x15bafb=a188_0x28e5;(function(_0x2f04f6,_0x14e763){const _0x5cf622=a188_0x28e5,_0x97ca13=_0x2f04f6();while(!![]){try{const _0x436b5e=-parseInt(_0x5cf622(0x76))/0x1+parseInt(_0x5cf622(0x78))/0x2*(parseInt(_0x5cf622(0x7a))/0x3)+-parseInt(_0x5cf622(0x71))/0x4*(-parseInt(_0x5cf622(0x7b))/0x5)+-parseInt(_0x5cf622(0x74))/0x6*(parseInt(_0x5cf622(0x73))/0x7)+parseInt(_0x5cf622(0x72))/0x8*(parseInt(_0x5cf622(0x7c))/0x9)+-parseInt(_0x5cf622(0x77))/0xa*(-parseInt(_0x5cf622(0x7d))/0xb)+parseInt(_0x5cf622(0x79))/0xc*(parseInt(_0x5cf622(0x70))/0xd);if(_0x436b5e===_0x14e763)break;else _0x97ca13['push'](_0x97ca13['shift']());}catch(_0x243c0e){_0x97ca13['push'](_0x97ca13['shift']());}}}(a188_0x1260,0xa145f));function a188_0x28e5(_0x56ff1e,_0x542b1c){_0x56ff1e=_0x56ff1e-0x70;const _0x1260c6=a188_0x1260();let _0x28e5f9=_0x1260c6[_0x56ff1e];return _0x28e5f9;}function a188_0x1260(){const _0x389642=['28GZPUBI','1007328InmtAa','./src/api','656284EINGhj','10ngaKNZ','1025762OxMkpO','1004544PBABcT','3Qkipgq','55uejXyk','171423LkzJmn','6465195POljDR','13kFySWr','285464oTnAdO','8HiLEJq'];a188_0x1260=function(){return _0x389642;};return a188_0x1260();}export const DEFAULT_API_DIR=a188_0x15bafb(0x75);
@@ -1 +1 @@
1
- const a179_0x1b09db=a179_0x2ae7;function a179_0x28f1(){const _0x2f67e6=['1ztAmNF','5694350DORHbt','835428BOnrFc','4aowtrj','5618504nVjYpF','4124118KCleZF','9FArzXS','22514xzOfbr','5187826DhsHsK','5093755vTUjAB','write','read'];a179_0x28f1=function(){return _0x2f67e6;};return a179_0x28f1();}(function(_0x3e1d5d,_0x2df916){const _0x1865e6=a179_0x2ae7,_0x447efc=_0x3e1d5d();while(!![]){try{const _0xd18e65=-parseInt(_0x1865e6(0x173))/0x1*(-parseInt(_0x1865e6(0x16e))/0x2)+-parseInt(_0x1865e6(0x169))/0x3+-parseInt(_0x1865e6(0x16a))/0x4*(-parseInt(_0x1865e6(0x170))/0x5)+-parseInt(_0x1865e6(0x16c))/0x6+-parseInt(_0x1865e6(0x16f))/0x7+parseInt(_0x1865e6(0x16b))/0x8*(parseInt(_0x1865e6(0x16d))/0x9)+parseInt(_0x1865e6(0x174))/0xa;if(_0xd18e65===_0x2df916)break;else _0x447efc['push'](_0x447efc['shift']());}catch(_0x474c8e){_0x447efc['push'](_0x447efc['shift']());}}}(a179_0x28f1,0x91379));function a179_0x2ae7(_0x190f50,_0x3d6f03){_0x190f50=_0x190f50-0x169;const _0x28f1a0=a179_0x28f1();let _0x2ae753=_0x28f1a0[_0x190f50];return _0x2ae753;}export const RISK_LEVEL_VALUES=[a179_0x1b09db(0x172),a179_0x1b09db(0x171),'high-risk-write'];
1
+ function a189_0x2466(_0x3b039b,_0x5a038d){_0x3b039b=_0x3b039b-0x119;const _0x36d8ed=a189_0x36d8();let _0x24664a=_0x36d8ed[_0x3b039b];return _0x24664a;}function a189_0x36d8(){const _0x1d6634=['621162xbZmaX','1344928VCoyPg','72984lpvHmU','273EtsVMo','762242cUwlzN','4813179EKsuqm','read','7226160lkhdyI','2586730qDnHMm'];a189_0x36d8=function(){return _0x1d6634;};return a189_0x36d8();}const a189_0x3cff38=a189_0x2466;(function(_0x425cb1,_0x9de8ae){const _0x2fe11f=a189_0x2466,_0x7e9841=_0x425cb1();while(!![]){try{const _0x214bd7=parseInt(_0x2fe11f(0x11f))/0x1+parseInt(_0x2fe11f(0x11b))/0x2+parseInt(_0x2fe11f(0x120))/0x3+parseInt(_0x2fe11f(0x11c))/0x4+-parseInt(_0x2fe11f(0x11a))/0x5+-parseInt(_0x2fe11f(0x119))/0x6+parseInt(_0x2fe11f(0x11e))/0x7*(-parseInt(_0x2fe11f(0x11d))/0x8);if(_0x214bd7===_0x9de8ae)break;else _0x7e9841['push'](_0x7e9841['shift']());}catch(_0x377c92){_0x7e9841['push'](_0x7e9841['shift']());}}}(a189_0x36d8,0xe4809));export const RISK_LEVEL_VALUES=[a189_0x3cff38(0x121),'write','high-risk-write'];
@@ -1 +1 @@
1
- (function(_0x525cba,_0x68d032){const _0x3241b0=a180_0x5344,_0x1fa405=_0x525cba();while(!![]){try{const _0x21fa80=-parseInt(_0x3241b0(0x85))/0x1+-parseInt(_0x3241b0(0x90))/0x2+parseInt(_0x3241b0(0x77))/0x3+-parseInt(_0x3241b0(0x82))/0x4*(-parseInt(_0x3241b0(0x8c))/0x5)+parseInt(_0x3241b0(0x7d))/0x6+-parseInt(_0x3241b0(0x94))/0x7+parseInt(_0x3241b0(0x7f))/0x8;if(_0x21fa80===_0x68d032)break;else _0x1fa405['push'](_0x1fa405['shift']());}catch(_0x47d5f7){_0x1fa405['push'](_0x1fa405['shift']());}}}(a180_0x1ea1,0x634b3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0xdedb8f){const _0x50415e=a180_0x5344;return typeof _0xdedb8f===_0x50415e(0x78)&&_0xdedb8f[_0x50415e(0x6f)]()?_0xdedb8f['trim']():undefined;}function appProfiles(_0x1d5aff){const _0x3652e4=a180_0x5344;return _0x1d5aff[_0x3652e4(0x71)]&&typeof _0x1d5aff[_0x3652e4(0x71)]===_0x3652e4(0x70)?_0x1d5aff[_0x3652e4(0x71)]:{};}function resolveDefaultAppName(_0x55920f){const _0x3bf2e0=a180_0x5344,_0x5b3796=stringConfigValue(_0x55920f[_0x3bf2e0(0x8a)]);if(_0x5b3796)return _0x5b3796;return Object[_0x3bf2e0(0x7a)](appProfiles(_0x55920f))[0x0];}function a180_0x1ea1(){const _0x222426=['APP','1153364KRkLHO','apiDir','env','write','3013535tqNPMz','globalConfig','ACCESS_KEY','VERBOSE','read','trim','object','apps','production','locale','format','ENV','riskLevel','778947mwTJPU','string','daily','keys','entries','PAGE_SIZE','633186aSSZFS','true','12378384LkrXKe','maxRisk','RISK_LEVEL','146840LfBgUa','COOKIE','find','718844XgkVje','MAX_RISK','length','inherit','cookie','defaultApp','appcode','30BWcpoA','app','pageSize'];a180_0x1ea1=function(){return _0x222426;};return a180_0x1ea1();}function a180_0x5344(_0x2ee04a,_0x349edd){_0x2ee04a=_0x2ee04a-0x6c;const _0x1ea146=a180_0x1ea1();let _0x534484=_0x1ea146[_0x2ee04a];return _0x534484;}function resolveTopLevelAppCode(_0x58768a){return stringConfigValue(_0x58768a['appcode'])||stringConfigValue(_0x58768a['app']);}export function resolveAppConfig({raw:_0x1fb7b0,flags:_0x5769c0,layers:_0x5de872,readEnv:_0x4aecb0}){const _0x268a8d=a180_0x5344,_0x4436b0=_0x5de872?.['projectConfig']??{},_0x53db04=_0x5de872?.[_0x268a8d(0x95)]??{},_0x2f46c7=Object['keys'](_0x4436b0)['length']>0x0,_0x1082f0=!_0x2f46c7||_0x4436b0[_0x268a8d(0x88)]===!![],_0x5c6071=_0x2f46c7?resolveDefaultAppName(_0x4436b0):undefined,_0x202468=_0x1082f0?resolveDefaultAppName(_0x53db04):undefined,_0x58bcce=stringConfigValue(_0x5769c0[_0x268a8d(0x8d)]),_0x347f6a=_0x4aecb0(_0x268a8d(0x8f)),_0x3dcde6={};if(_0x1fb7b0[_0x268a8d(0x71)]&&typeof _0x1fb7b0[_0x268a8d(0x71)]===_0x268a8d(0x70))for(const [_0x10bbed,_0x4715cf]of Object[_0x268a8d(0x7b)](_0x1fb7b0[_0x268a8d(0x71)])){_0x4715cf&&typeof _0x4715cf===_0x268a8d(0x70)&&_0x4715cf[_0x268a8d(0x8b)]&&(_0x3dcde6[_0x10bbed]=_0x4715cf);}const _0x4164c3=_0x1fb7b0[_0x268a8d(0x8a)]||undefined,_0x3b2f2d=Object['keys'](_0x3dcde6)[_0x268a8d(0x87)]>0x0,_0x1eed5a=_0x58bcce||_0x5c6071||_0x347f6a||_0x202468||_0x4164c3||undefined,_0x124f6b=stringConfigValue(_0x5769c0[_0x268a8d(0x8b)]),_0x67aa42=_0x124f6b?Object[_0x268a8d(0x7b)](_0x3dcde6)[_0x268a8d(0x84)](([,_0x3ee0d5])=>_0x3ee0d5?.[_0x268a8d(0x8b)]===_0x124f6b):undefined,_0x2446d1=_0x67aa42?.[0x0],_0x16b2fd=_0x67aa42?.[0x1],_0x2f83c9=_0x124f6b?_0x2446d1:_0x1eed5a;let _0x139e13=_0x2f83c9&&_0x3dcde6[_0x2f83c9]?_0x3dcde6[_0x2f83c9]:undefined;_0x124f6b&&_0x16b2fd&&(_0x139e13=_0x16b2fd);const _0x35c54d=_0x124f6b?_0x16b2fd??_0x139e13:_0x139e13,_0x23978b=!_0x58bcce&&!_0x5c6071&&_0x347f6a&&_0x2f83c9===_0x347f6a,_0x4873a9=_0x58bcce||(_0x23978b?_0x347f6a:undefined)||(_0x124f6b?_0x2446d1:undefined),_0x135629=_0x35c54d?.['appcode'],_0x2aa0fe=_0x2f46c7?resolveTopLevelAppCode(_0x4436b0):undefined,_0x52bc9f=_0x1082f0?resolveTopLevelAppCode(_0x53db04):undefined,_0x4f86e0=_0x58bcce||_0x5c6071?_0x135629:undefined,_0x4f134c=!_0x58bcce&&!_0x5c6071?_0x135629:undefined,_0x519dff=_0x124f6b||_0x4f86e0||_0x2aa0fe||_0x4f134c||_0x52bc9f||undefined,_0x3c500e=_0x2f46c7?stringConfigValue(_0x4436b0[_0x268a8d(0x92)]):undefined,_0x19672e=_0x1082f0?stringConfigValue(_0x53db04[_0x268a8d(0x92)]):undefined,_0x37f493=_0x5769c0['env']||_0x35c54d?.[_0x268a8d(0x92)]||_0x3c500e||_0x4aecb0(_0x268a8d(0x75))||_0x19672e||_0x1fb7b0[_0x268a8d(0x92)]||DEFAULT_CONFIG_VALUES[_0x268a8d(0x92)],_0x590d49=_0x35c54d?.['locale']||_0x1fb7b0[_0x268a8d(0x73)]||DEFAULT_CONFIG_VALUES[_0x268a8d(0x73)],_0x3d8cf8=_0x4aecb0(_0x268a8d(0x83))||_0x35c54d?.[_0x268a8d(0x89)]||_0x1fb7b0['cookie']||undefined,_0x320511=_0x4aecb0(_0x268a8d(0x6c))||_0x35c54d?.['accessKey']||_0x1fb7b0['accessKey']||undefined,_0x6d9655=_0x5769c0[_0x268a8d(0x74)]||_0x4aecb0('FORMAT')||_0x35c54d?.['format']||_0x1fb7b0['format'],_0x4e79e6=normalizeLegacyOutputFormat(_0x6d9655),_0x1d7e9b=_0x4aecb0(_0x268a8d(0x7c))||_0x35c54d?.[_0x268a8d(0x8e)]||_0x1fb7b0[_0x268a8d(0x8e)],_0xbc777f=_0x1d7e9b?Number(_0x1d7e9b)||undefined:undefined,_0x5120f5=_0x4aecb0(_0x268a8d(0x81))||_0x4aecb0(_0x268a8d(0x86))||_0x35c54d?.[_0x268a8d(0x76)]||_0x1fb7b0[_0x268a8d(0x76)]||_0x1fb7b0[_0x268a8d(0x80)],_0x428200=_0x5120f5===_0x268a8d(0x6e)||_0x5120f5===_0x268a8d(0x93)?_0x5120f5:DEFAULT_CONFIG_VALUES[_0x268a8d(0x76)],_0x5c0d07=_0x4aecb0(_0x268a8d(0x6d)),_0x50cc69=_0x5c0d07==='1'||_0x5c0d07===_0x268a8d(0x7e),_0x209dea=_0x35c54d?.['apiDir']||_0x1fb7b0[_0x268a8d(0x91)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x26d2f3=isDaily(normalizeEnv(String(_0x37f493)))?_0x268a8d(0x79):_0x268a8d(0x72);return{'appCode':typeof _0x519dff===_0x268a8d(0x78)&&_0x519dff[_0x268a8d(0x6f)]()?_0x519dff[_0x268a8d(0x6f)]():undefined,'env':_0x26d2f3,'locale':_0x590d49,'cookie':_0x3d8cf8,'accessKey':_0x320511,'format':_0x4e79e6,'pageSize':_0xbc777f,'riskLevel':_0x428200,'verbose':_0x50cc69,'apiDir':_0x209dea,'apps':_0x3dcde6,'defaultApp':_0x4164c3,'currentApp':_0x3b2f2d?_0x2f83c9:undefined,'explicitAppName':_0x4873a9};}
1
+ (function(_0x286058,_0x23380c){const _0x1fef22=a190_0x4dd8,_0x70988d=_0x286058();while(!![]){try{const _0x20a5c2=-parseInt(_0x1fef22(0x139))/0x1+parseInt(_0x1fef22(0x15e))/0x2+-parseInt(_0x1fef22(0x145))/0x3*(parseInt(_0x1fef22(0x152))/0x4)+parseInt(_0x1fef22(0x15b))/0x5+-parseInt(_0x1fef22(0x157))/0x6*(-parseInt(_0x1fef22(0x147))/0x7)+-parseInt(_0x1fef22(0x15d))/0x8*(parseInt(_0x1fef22(0x13e))/0x9)+-parseInt(_0x1fef22(0x153))/0xa;if(_0x20a5c2===_0x23380c)break;else _0x70988d['push'](_0x70988d['shift']());}catch(_0x50ba0d){_0x70988d['push'](_0x70988d['shift']());}}}(a190_0x1992,0x9d4dc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function a190_0x4dd8(_0x3eaef4,_0x341137){_0x3eaef4=_0x3eaef4-0x139;const _0x199287=a190_0x1992();let _0x4dd880=_0x199287[_0x3eaef4];return _0x4dd880;}function a190_0x1992(){const _0x7e84d5=['riskLevel','pageSize','apiDir','globalConfig','201KbKNHi','FORMAT','136430OkwsJR','VERBOSE','app','appcode','apps','string','env','PAGE_SIZE','defaultApp','cookie','accessKey','31672DNkEuv','682060uelUgT','keys','format','entries','168sZCBub','locale','object','length','4128280GdDYtT','COOKIE','8nKbWjc','2032650lXUybc','701117saaJqI','find','maxRisk','production','daily','3992004ujCmBB','trim','MAX_RISK'];a190_0x1992=function(){return _0x7e84d5;};return a190_0x1992();}function stringConfigValue(_0x2b01b9){const _0x100921=a190_0x4dd8;return typeof _0x2b01b9===_0x100921(0x14c)&&_0x2b01b9[_0x100921(0x13f)]()?_0x2b01b9[_0x100921(0x13f)]():undefined;}function appProfiles(_0x662e60){const _0x2fdfd3=a190_0x4dd8;return _0x662e60[_0x2fdfd3(0x14b)]&&typeof _0x662e60[_0x2fdfd3(0x14b)]===_0x2fdfd3(0x159)?_0x662e60[_0x2fdfd3(0x14b)]:{};}function resolveDefaultAppName(_0x393568){const _0x2c5c4c=a190_0x4dd8,_0x5ec269=stringConfigValue(_0x393568[_0x2c5c4c(0x14f)]);if(_0x5ec269)return _0x5ec269;return Object[_0x2c5c4c(0x154)](appProfiles(_0x393568))[0x0];}function resolveTopLevelAppCode(_0x179a51){const _0x1fb653=a190_0x4dd8;return stringConfigValue(_0x179a51[_0x1fb653(0x14a)])||stringConfigValue(_0x179a51[_0x1fb653(0x149)]);}export function resolveAppConfig({raw:_0x4ec418,flags:_0x48a810,layers:_0x25ad27,readEnv:_0x32a61d}){const _0x5d72e1=a190_0x4dd8,_0x39cbdf=_0x25ad27?.['projectConfig']??{},_0x587cda=_0x25ad27?.[_0x5d72e1(0x144)]??{},_0x3c02f9=Object[_0x5d72e1(0x154)](_0x39cbdf)[_0x5d72e1(0x15a)]>0x0,_0x386b58=!_0x3c02f9||_0x39cbdf['inherit']===!![],_0x348662=_0x3c02f9?resolveDefaultAppName(_0x39cbdf):undefined,_0x5a1001=_0x386b58?resolveDefaultAppName(_0x587cda):undefined,_0x130a20=stringConfigValue(_0x48a810[_0x5d72e1(0x149)]),_0x2d61da=_0x32a61d('APP'),_0x197e83={};if(_0x4ec418[_0x5d72e1(0x14b)]&&typeof _0x4ec418[_0x5d72e1(0x14b)]===_0x5d72e1(0x159))for(const [_0x84996b,_0x3f3656]of Object[_0x5d72e1(0x156)](_0x4ec418[_0x5d72e1(0x14b)])){_0x3f3656&&typeof _0x3f3656==='object'&&_0x3f3656['appcode']&&(_0x197e83[_0x84996b]=_0x3f3656);}const _0x3ad647=_0x4ec418['defaultApp']||undefined,_0x84fe1=Object['keys'](_0x197e83)[_0x5d72e1(0x15a)]>0x0,_0x5f1ed0=_0x130a20||_0x348662||_0x2d61da||_0x5a1001||_0x3ad647||undefined,_0x1a7b53=stringConfigValue(_0x48a810[_0x5d72e1(0x14a)]),_0x398819=_0x1a7b53?Object[_0x5d72e1(0x156)](_0x197e83)[_0x5d72e1(0x13a)](([,_0x5baa14])=>_0x5baa14?.[_0x5d72e1(0x14a)]===_0x1a7b53):undefined,_0x46a0a8=_0x398819?.[0x0],_0x4971eb=_0x398819?.[0x1],_0x1d2f12=_0x1a7b53?_0x46a0a8:_0x5f1ed0;let _0x5d501c=_0x1d2f12&&_0x197e83[_0x1d2f12]?_0x197e83[_0x1d2f12]:undefined;_0x1a7b53&&_0x4971eb&&(_0x5d501c=_0x4971eb);const _0x279d6b=_0x1a7b53?_0x4971eb??_0x5d501c:_0x5d501c,_0x2fd64a=!_0x130a20&&!_0x348662&&_0x2d61da&&_0x1d2f12===_0x2d61da,_0x4cf930=_0x130a20||(_0x2fd64a?_0x2d61da:undefined)||(_0x1a7b53?_0x46a0a8:undefined),_0x59902e=_0x279d6b?.['appcode'],_0x106f46=_0x3c02f9?resolveTopLevelAppCode(_0x39cbdf):undefined,_0x4f4dca=_0x386b58?resolveTopLevelAppCode(_0x587cda):undefined,_0x492e38=_0x130a20||_0x348662?_0x59902e:undefined,_0x111c82=!_0x130a20&&!_0x348662?_0x59902e:undefined,_0x201476=_0x1a7b53||_0x492e38||_0x106f46||_0x111c82||_0x4f4dca||undefined,_0x16a4b7=_0x3c02f9?stringConfigValue(_0x39cbdf[_0x5d72e1(0x14d)]):undefined,_0x17b91f=_0x386b58?stringConfigValue(_0x587cda['env']):undefined,_0x3630a8=_0x48a810[_0x5d72e1(0x14d)]||_0x279d6b?.[_0x5d72e1(0x14d)]||_0x16a4b7||_0x32a61d('ENV')||_0x17b91f||_0x4ec418['env']||DEFAULT_CONFIG_VALUES[_0x5d72e1(0x14d)],_0x43389b=_0x279d6b?.[_0x5d72e1(0x158)]||_0x4ec418[_0x5d72e1(0x158)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e1af6=_0x32a61d(_0x5d72e1(0x15c))||_0x279d6b?.[_0x5d72e1(0x150)]||_0x4ec418[_0x5d72e1(0x150)]||undefined,_0x2e6faf=_0x32a61d('ACCESS_KEY')||_0x279d6b?.['accessKey']||_0x4ec418[_0x5d72e1(0x151)]||undefined,_0x2a72c1=_0x48a810['format']||_0x32a61d(_0x5d72e1(0x146))||_0x279d6b?.[_0x5d72e1(0x155)]||_0x4ec418[_0x5d72e1(0x155)],_0x57d15c=normalizeLegacyOutputFormat(_0x2a72c1),_0x121a06=_0x32a61d(_0x5d72e1(0x14e))||_0x279d6b?.[_0x5d72e1(0x142)]||_0x4ec418[_0x5d72e1(0x142)],_0x5e92f1=_0x121a06?Number(_0x121a06)||undefined:undefined,_0xbef37c=_0x32a61d('RISK_LEVEL')||_0x32a61d(_0x5d72e1(0x140))||_0x279d6b?.[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x13b)],_0x4df1ae=_0xbef37c==='read'||_0xbef37c==='write'?_0xbef37c:DEFAULT_CONFIG_VALUES[_0x5d72e1(0x141)],_0x46ee5e=_0x32a61d(_0x5d72e1(0x148)),_0x29d0a8=_0x46ee5e==='1'||_0x46ee5e==='true',_0x4cf5e7=_0x279d6b?.[_0x5d72e1(0x143)]||_0x4ec418[_0x5d72e1(0x143)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4819fd=isDaily(normalizeEnv(String(_0x3630a8)))?_0x5d72e1(0x13d):_0x5d72e1(0x13c);return{'appCode':typeof _0x201476===_0x5d72e1(0x14c)&&_0x201476[_0x5d72e1(0x13f)]()?_0x201476[_0x5d72e1(0x13f)]():undefined,'env':_0x4819fd,'locale':_0x43389b,'cookie':_0x4e1af6,'accessKey':_0x2e6faf,'format':_0x57d15c,'pageSize':_0x5e92f1,'riskLevel':_0x4df1ae,'verbose':_0x29d0a8,'apiDir':_0x4cf5e7,'apps':_0x197e83,'defaultApp':_0x3ad647,'currentApp':_0x84fe1?_0x1d2f12:undefined,'explicitAppName':_0x4cf930};}
@@ -1 +1 @@
1
- function a181_0x3365(_0x1003a9,_0x529717){_0x1003a9=_0x1003a9-0xfc;const _0x13e547=a181_0x13e5();let _0x336585=_0x13e547[_0x1003a9];return _0x336585;}(function(_0x3cc039,_0x46db70){const _0x469a5f=a181_0x3365,_0x157656=_0x3cc039();while(!![]){try{const _0x372e62=parseInt(_0x469a5f(0xff))/0x1*(parseInt(_0x469a5f(0x102))/0x2)+-parseInt(_0x469a5f(0xfe))/0x3+parseInt(_0x469a5f(0x107))/0x4*(-parseInt(_0x469a5f(0x101))/0x5)+parseInt(_0x469a5f(0x105))/0x6+parseInt(_0x469a5f(0xfd))/0x7*(parseInt(_0x469a5f(0x100))/0x8)+-parseInt(_0x469a5f(0xfc))/0x9+parseInt(_0x469a5f(0x103))/0xa;if(_0x372e62===_0x46db70)break;else _0x157656['push'](_0x157656['shift']());}catch(_0xcfe5f8){_0x157656['push'](_0x157656['shift']());}}}(a181_0x13e5,0x66198));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a181_0x13e5(){const _0x43905d=['51129AiZICh','217ueMjWH','954327yZsTUe','1jyDgba','48016DfBGWc','15llRipU','351692iqmFyg','10040470YoOcdV','authRequired','325056HZTWZs','cookie','904188AJtrHk','../auth/get-cookie.js'];a181_0x13e5=function(){return _0x43905d;};return a181_0x13e5();}export async function buildAuth(_0x2db8ce){const _0x5a6641=a181_0x3365,{getCookie:_0xd372af}=await import(_0x5a6641(0x108)),_0x27e429=_0x2db8ce[_0x5a6641(0x106)]||_0xd372af(),_0xf5dbd0=_0x27e429?await getIsSessionValid():![];return{'cookie':_0x27e429,'isLoggedIn':_0xf5dbd0,async 'getOrLogin'(){const _0x2305ba=_0x5a6641;if(_0x27e429&&_0xf5dbd0)return _0x27e429;throw CliErrors[_0x2305ba(0x104)]();}};}
1
+ (function(_0x114f6f,_0xc6dae0){const _0x4324e2=a191_0xb65d,_0x11a538=_0x114f6f();while(!![]){try{const _0xa6a1fa=parseInt(_0x4324e2(0x1b2))/0x1+parseInt(_0x4324e2(0x1ae))/0x2*(parseInt(_0x4324e2(0x1b0))/0x3)+-parseInt(_0x4324e2(0x1ad))/0x4+-parseInt(_0x4324e2(0x1b7))/0x5+parseInt(_0x4324e2(0x1b5))/0x6+-parseInt(_0x4324e2(0x1b3))/0x7*(parseInt(_0x4324e2(0x1af))/0x8)+-parseInt(_0x4324e2(0x1b1))/0x9;if(_0xa6a1fa===_0xc6dae0)break;else _0x11a538['push'](_0x11a538['shift']());}catch(_0xfa9633){_0x11a538['push'](_0x11a538['shift']());}}}(a191_0x4778,0x2e5e9));import{getIsSessionValid}from'../auth/is-session-valid.js';function a191_0xb65d(_0x21fd47,_0x1e726c){_0x21fd47=_0x21fd47-0x1ac;const _0x47788e=a191_0x4778();let _0xb65d9a=_0x47788e[_0x21fd47];return _0xb65d9a;}import{CliErrors}from'../errors.js';function a191_0x4778(){const _0x2c84d4=['490096lQiNil','114XJsmjV','13232NxvmdV','16314EbLmfU','2029464dAjfXj','271475ZNaskt','1267QvGWgc','../auth/get-cookie.js','1693632vZunMb','cookie','131950AHmUtG','authRequired'];a191_0x4778=function(){return _0x2c84d4;};return a191_0x4778();}export async function buildAuth(_0x5b184b){const _0x2706e1=a191_0xb65d,{getCookie:_0xeba6e2}=await import(_0x2706e1(0x1b4)),_0x443fe4=_0x5b184b[_0x2706e1(0x1b6)]||_0xeba6e2(),_0x1b2d5e=_0x443fe4?await getIsSessionValid():![];return{'cookie':_0x443fe4,'isLoggedIn':_0x1b2d5e,async 'getOrLogin'(){const _0x50cfdf=_0x2706e1;if(_0x443fe4&&_0x1b2d5e)return _0x443fe4;throw CliErrors[_0x50cfdf(0x1ac)]();}};}