@lovrabet/rabetbase-cli 2.3.16-beta.1 → 2.3.16-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 (289) hide show
  1. package/README.md +2 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.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/members-list.js +1 -0
  23. package/lib/commands/app/remote-directory.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 -1
  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/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.js +1 -0
  142. package/lib/commands/page/react/detail.js +1 -0
  143. package/lib/commands/page/react/list.js +1 -0
  144. package/lib/commands/page/react/publish.js +1 -0
  145. package/lib/commands/page/react/shared.js +1 -0
  146. package/lib/commands/page/react/syntax.js +1 -0
  147. package/lib/commands/page/react/template.js +1 -0
  148. package/lib/commands/page/react/update.js +1 -0
  149. package/lib/commands/page/relation-audit.js +1 -1
  150. package/lib/commands/page/restore.js +1 -1
  151. package/lib/commands/page/shared.js +1 -1
  152. package/lib/commands/page/standard-page-status.js +1 -1
  153. package/lib/commands/page/sync.js +1 -1
  154. package/lib/commands/permit/index.js +1 -1
  155. package/lib/commands/permit/page-get.js +1 -1
  156. package/lib/commands/permit/page-set.js +1 -1
  157. package/lib/commands/permit/role-apis-set.js +1 -1
  158. package/lib/commands/permit/role-menus-set.js +1 -1
  159. package/lib/commands/permit/role-menus.js +1 -1
  160. package/lib/commands/permit/shared.js +1 -1
  161. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  162. package/lib/commands/project/create/format-elapsed.js +1 -1
  163. package/lib/commands/project/create/main.js +1 -1
  164. package/lib/commands/project/create/non-interactive.js +1 -1
  165. package/lib/commands/project/create/project-template-path.js +1 -1
  166. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  167. package/lib/commands/project/create/use-format-code.js +1 -1
  168. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  169. package/lib/commands/project/index.js +1 -1
  170. package/lib/commands/project/upgrade.js +1 -1
  171. package/lib/commands/registry.js +1 -1
  172. package/lib/commands/role/create.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -0
  198. package/lib/commands/tenant/members-list.js +1 -0
  199. package/lib/commands/tenant/shared.js +1 -0
  200. package/lib/commands/workspace/add.js +1 -1
  201. package/lib/commands/workspace/index.js +1 -1
  202. package/lib/commands/workspace/remove.js +1 -1
  203. package/lib/config/schema.js +1 -1
  204. package/lib/constant/cdn.js +1 -1
  205. package/lib/constant/cli.js +1 -1
  206. package/lib/constant/defaults.js +1 -1
  207. package/lib/constant/domain.js +1 -1
  208. package/lib/constant/env.js +1 -1
  209. package/lib/constant/output.js +1 -1
  210. package/lib/constant/paths.js +1 -1
  211. package/lib/constant/risk.js +1 -1
  212. package/lib/context/app-resolver.js +1 -1
  213. package/lib/context/auth-resolver.js +1 -1
  214. package/lib/context/config-loader.js +1 -1
  215. package/lib/context.js +1 -1
  216. package/lib/core/alias-resolver.js +1 -1
  217. package/lib/core/api-client.js +1 -1
  218. package/lib/core/bff/config.js +1 -1
  219. package/lib/core/bff/file-system.js +1 -1
  220. package/lib/core/bff/hash.js +1 -1
  221. package/lib/core/bff/lock.js +1 -1
  222. package/lib/core/bff/utils.js +1 -1
  223. package/lib/core/db-resolver.js +1 -1
  224. package/lib/core/page/file-system.js +1 -1
  225. package/lib/core/page/hash.js +1 -1
  226. package/lib/core/page/lock.js +1 -1
  227. package/lib/core/sql-index-auditor.js +1 -1
  228. package/lib/core/sql-sync/config.js +1 -1
  229. package/lib/core/sql-sync/file-system.js +1 -1
  230. package/lib/core/sql-sync/hash.js +1 -1
  231. package/lib/core/sql-sync/lock.js +1 -1
  232. package/lib/core/sql-sync/utils.js +1 -1
  233. package/lib/core/sql-validator.js +1 -1
  234. package/lib/errors.js +1 -1
  235. package/lib/framework/build-all-flags.js +1 -1
  236. package/lib/framework/error-output.js +1 -1
  237. package/lib/framework/explicit-yes.js +1 -1
  238. package/lib/framework/flags.js +1 -1
  239. package/lib/framework/help.js +1 -1
  240. package/lib/framework/index.js +1 -1
  241. package/lib/framework/output.js +1 -1
  242. package/lib/framework/response.js +1 -1
  243. package/lib/framework/runner-alias.js +1 -1
  244. package/lib/framework/runner.js +1 -1
  245. package/lib/framework/schema-export.js +1 -1
  246. package/lib/framework/types.js +1 -1
  247. package/lib/generated/build-info.js +1 -1
  248. package/lib/help.js +1 -1
  249. package/lib/skills/main.js +1 -1
  250. package/lib/skills/npx-skills-add.js +1 -1
  251. package/lib/skills/skill-presence.js +1 -1
  252. package/lib/telemetry/cli-command-trace.js +1 -1
  253. package/lib/telemetry/cli-help-trace.js +1 -1
  254. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  255. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  256. package/lib/telemetry/send-cli-trace-log.js +1 -1
  257. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  258. package/lib/utils/ai_config.js +1 -1
  259. package/lib/utils/apply-jq-filter.js +1 -1
  260. package/lib/utils/cdn-config.js +1 -1
  261. package/lib/utils/check-sdk-version.js +1 -1
  262. package/lib/utils/cli-version-check.js +1 -1
  263. package/lib/utils/cli-version-policy.js +1 -1
  264. package/lib/utils/config.js +1 -1
  265. package/lib/utils/copy-directory.js +1 -1
  266. package/lib/utils/entity-with-id.js +1 -1
  267. package/lib/utils/file-utils.js +1 -1
  268. package/lib/utils/guides-cdn.js +1 -1
  269. package/lib/utils/http-client.js +1 -1
  270. package/lib/utils/is-non-interactive.js +1 -1
  271. package/lib/utils/logger.js +1 -1
  272. package/lib/utils/params.js +1 -1
  273. package/lib/utils/platform.js +1 -1
  274. package/lib/utils/rules-cdn.js +1 -1
  275. package/lib/utils/sleep.js +1 -1
  276. package/lib/utils/template-replacer.js +1 -1
  277. package/lib/utils/update-notice.js +1 -1
  278. package/lib/utils/version.js +1 -1
  279. package/lib/utils/with-active-cookie.js +1 -1
  280. package/lib/utils/write-cli-side-channel.js +1 -1
  281. package/package.json +2 -2
  282. package/templates/projects/sub-app-react-demo/CHANGELOG.md +1 -1
  283. package/templates/projects/sub-app-react-demo/README.md +1 -1
  284. package/templates/projects/sub-app-react-demo/docs/quick-start.md +1 -1
  285. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +1 -1
  286. package/lib/commands/app/add.js +0 -1
  287. package/lib/commands/app/remove.js +0 -1
  288. package/lib/commands/project/init.js +0 -1
  289. package/lib/commands/sql/save.js +0 -1
@@ -1 +1 @@
1
- const a187_0x1ced66=a187_0x1d44;(function(_0x17683e,_0x1c63c5){const _0x41b231=a187_0x1d44,_0x4dc5e3=_0x17683e();while(!![]){try{const _0x181eb5=-parseInt(_0x41b231(0xc8))/0x1*(parseInt(_0x41b231(0xcf))/0x2)+-parseInt(_0x41b231(0xcd))/0x3*(-parseInt(_0x41b231(0xe1))/0x4)+-parseInt(_0x41b231(0xde))/0x5*(-parseInt(_0x41b231(0xc6))/0x6)+-parseInt(_0x41b231(0xe3))/0x7*(-parseInt(_0x41b231(0xd1))/0x8)+parseInt(_0x41b231(0xca))/0x9+parseInt(_0x41b231(0xd0))/0xa*(parseInt(_0x41b231(0xc4))/0xb)+parseInt(_0x41b231(0xc5))/0xc*(-parseInt(_0x41b231(0xd2))/0xd);if(_0x181eb5===_0x1c63c5)break;else _0x4dc5e3['push'](_0x4dc5e3['shift']());}catch(_0x291e0d){_0x4dc5e3['push'](_0x4dc5e3['shift']());}}}(a187_0x7085,0x4c011));function a187_0x7085(){const _0x549a99=['sqlCode','has','sqls','sqlRoot','2887247Rhxyjx','2568Mhhkzq','6iBPnkz','lockFilePath','1mehFyw','appCode','2772135xwgZyO','length','paging','1770621BTDfTU','\x20missing,\x20','58468uQgPev','10TyXFOg','156888CaHjUY','79066XjhOjj','read','tableData','keys','relativePath','push','sqlName','boolean','status','path','lockKey','map','1524485ZukQTw','sql','\x20unchanged','4xyLpma','remote','63ZHernA','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','filePath'];a187_0x7085=function(){return _0x549a99;};return a187_0x7085();}import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a187_0x1d44(_0x11258a,_0x562db0){_0x11258a=_0x11258a-0xbe;const _0x70857c=a187_0x7085();let _0x1d4474=_0x70857c[_0x11258a];return _0x1d4474;}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(_0x3ae2a6){const _0x2b755e=a187_0x1d44,_0xd24479=[];let _0x5d2579=0x1;while(!![]){const _0x2233da=await listSqlQueries(_0x3ae2a6,{'currentPage':_0x5d2579,'pageSize':PAGE_SIZE}),_0x3d5bc0=_0x2233da[_0x2b755e(0xd4)]??[];_0xd24479[_0x2b755e(0xd7)](..._0x3d5bc0['map'](_0x32867f=>_0x32867f[_0x2b755e(0xc0)]));if(_0x3d5bc0['length']===0x0)break;const _0x10ee35=_0x2233da[_0x2b755e(0xcc)]?.['totalCount'];if(_0x10ee35!=null?_0xd24479['length']>=_0x10ee35:_0x3d5bc0[_0x2b755e(0xcb)]<PAGE_SIZE)break;_0x5d2579++;}return _0xd24479;}export const sqlStatus={'service':a187_0x1ced66(0xdf),'command':a187_0x1ced66(0xda),'description':a187_0x1ced66(0xbe),'risk':a187_0x1ced66(0xd3),'flags':[{'name':'remote','type':a187_0x1ced66(0xd9),'description':'Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally'}],async 'execute'(_0x57e1db){const _0x2e8a51=a187_0x1ced66,_0x2166e9=loadSqlProjectConfig(_0x57e1db[_0x2e8a51(0xc9)]),_0x6224ef=await readSqlLockFile(_0x2166e9[_0x2e8a51(0xc7)]),{appLock:_0x163125}=ensureSqlLockScope(_0x6224ef??createEmptySqlLock(),_0x2166e9[_0x2e8a51(0xc9)],_0x2166e9[_0x2e8a51(0xc3)],_0x2e8a51(0xda)),_0x35c279=await scanLocalSqlQueries(_0x2166e9),_0x337f47=[],_0x3c3fb7=[],_0x1637bf=[],_0x58c5a6=[],_0x35cda8=new Set(_0x35c279[_0x2e8a51(0xdd)](_0x333f1d=>_0x333f1d[_0x2e8a51(0xdc)]));for(const _0x453cbc of _0x35c279){const _0x1378ec=await computeSqlFileHash(_0x453cbc[_0x2e8a51(0xbf)]),_0x44a5e8=_0x163125[_0x2e8a51(0xc2)][_0x453cbc['lockKey']],_0x2b12a9=!!_0x44a5e8&&_0x44a5e8[_0x2e8a51(0xdb)]!==_0x453cbc[_0x2e8a51(0xd6)],_0x59ad79=!!_0x44a5e8&&!!_0x453cbc[_0x2e8a51(0xd8)]&&_0x44a5e8['sqlName']!==_0x453cbc[_0x2e8a51(0xd8)];if(!_0x44a5e8)_0x337f47['push'](_0x453cbc[_0x2e8a51(0xdc)]);else _0x44a5e8['hash']!==_0x1378ec||_0x2b12a9||_0x59ad79?_0x3c3fb7[_0x2e8a51(0xd7)](_0x453cbc['lockKey']):_0x1637bf[_0x2e8a51(0xd7)](_0x453cbc[_0x2e8a51(0xdc)]);}for(const _0x5f3295 of Object[_0x2e8a51(0xd5)](_0x163125[_0x2e8a51(0xc2)])){!_0x35cda8['has'](_0x5f3295)&&_0x58c5a6[_0x2e8a51(0xd7)](_0x5f3295);}const _0x22e8b3=[];if(_0x57e1db['bool'](_0x2e8a51(0xe2))){const _0x4642ac=await fetchAllSqlCodes(_0x57e1db[_0x2e8a51(0xc9)]);for(const _0x241d45 of _0x4642ac){!_0x35cda8[_0x2e8a51(0xc1)](_0x241d45)&&!_0x163125['sqls'][_0x241d45]&&_0x22e8b3[_0x2e8a51(0xd7)](_0x241d45);}}const _0xf049e=_0x337f47['length']===0x0&&_0x3c3fb7['length']===0x0&&_0x58c5a6[_0x2e8a51(0xcb)]===0x0&&_0x22e8b3[_0x2e8a51(0xcb)]===0x0;return{'ok':!![],'data':{'added':_0x337f47,'modified':_0x3c3fb7,'missing':_0x58c5a6,'unchanged':_0x1637bf,'remoteOnly':_0x22e8b3},'message':_0xf049e?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x337f47[_0x2e8a51(0xcb)]+'\x20added,\x20'+_0x3c3fb7['length']+'\x20modified,\x20'+_0x58c5a6['length']+_0x2e8a51(0xce)+_0x1637bf['length']+_0x2e8a51(0xe0)+(_0x22e8b3[_0x2e8a51(0xcb)]>0x0?',\x20'+_0x22e8b3[_0x2e8a51(0xcb)]+'\x20remote-only':'')};}};
1
+ const a192_0x465ecf=a192_0x3420;(function(_0x5b547c,_0x101a1b){const _0x5b634f=a192_0x3420,_0x400124=_0x5b547c();while(!![]){try{const _0x142487=parseInt(_0x5b634f(0x13e))/0x1+parseInt(_0x5b634f(0x129))/0x2+parseInt(_0x5b634f(0x130))/0x3*(parseInt(_0x5b634f(0x140))/0x4)+parseInt(_0x5b634f(0x13c))/0x5+parseInt(_0x5b634f(0x123))/0x6+-parseInt(_0x5b634f(0x136))/0x7+parseInt(_0x5b634f(0x133))/0x8*(-parseInt(_0x5b634f(0x128))/0x9);if(_0x142487===_0x101a1b)break;else _0x400124['push'](_0x400124['shift']());}catch(_0x2767d0){_0x400124['push'](_0x400124['shift']());}}}(a192_0x3ae2,0x6bfef));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';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a192_0x3420(_0x27e45c,_0x3852ac){_0x27e45c=_0x27e45c-0x11f;const _0x3ae21e=a192_0x3ae2();let _0x34203e=_0x3ae21e[_0x27e45c];return _0x34203e;}function a192_0x3ae2(){const _0xb1faec=['sqlName','2459232fBRPMB','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','lockKey','2919693MunBZS','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','push','sql','bool','sqlCode','3393085etsLZm','boolean','494852FILzRY','\x20unchanged','3254044NhEdDi','hash','\x20added,\x20','read','sqls','1935036zDTEZB','lockFilePath','tableData','path','remote','54oqxLDe','788776wjlxEN','paging','length','has','appCode','All\x20SQL\x20queries\x20are\x20in\x20sync.','status','3XUhZqr','\x20missing,\x20'];a192_0x3ae2=function(){return _0xb1faec;};return a192_0x3ae2();}async function fetchAllSqlCodes(_0x5735e5){const _0x33369a=a192_0x3420,_0x5544c4=[];let _0x534c19=0x1;while(!![]){const _0x54323b=await listSqlQueries(_0x5735e5,{'currentPage':_0x534c19,'pageSize':PAGE_SIZE}),_0x1c3a7c=_0x54323b[_0x33369a(0x125)]??[];_0x5544c4[_0x33369a(0x138)](..._0x1c3a7c['map'](_0x3bacb2=>_0x3bacb2[_0x33369a(0x13b)]));if(_0x1c3a7c[_0x33369a(0x12b)]===0x0)break;const _0xdd8da2=_0x54323b[_0x33369a(0x12a)]?.['totalCount'];if(_0xdd8da2!=null?_0x5544c4[_0x33369a(0x12b)]>=_0xdd8da2:_0x1c3a7c['length']<PAGE_SIZE)break;_0x534c19++;}return _0x5544c4;}export const sqlStatus={'service':a192_0x465ecf(0x139),'command':'status','description':a192_0x465ecf(0x134),'risk':a192_0x465ecf(0x121),'flags':[{'name':a192_0x465ecf(0x127),'type':a192_0x465ecf(0x13d),'description':a192_0x465ecf(0x137)}],async 'execute'(_0x187f90){const _0xf69b01=a192_0x465ecf,_0xb25414=loadSqlProjectConfig(_0x187f90[_0xf69b01(0x12d)]),_0x537bb4=await readSqlLockFile(_0xb25414[_0xf69b01(0x124)]),{appLock:_0x3d0f0b}=ensureSqlLockScope(_0x537bb4??createEmptySqlLock(),_0xb25414[_0xf69b01(0x12d)],_0xb25414['sqlRoot'],_0xf69b01(0x12f)),_0x5a060f=await scanLocalSqlQueries(_0xb25414),_0x314264=[],_0xeccaae=[],_0x3baab=[],_0xf47676=[],_0x2fc045=new Set(_0x5a060f['map'](_0x57502e=>_0x57502e['lockKey']));for(const _0x2498c4 of _0x5a060f){const _0x5570eb=await computeSqlFileHash(_0x2498c4['filePath']),_0x6b8b5d=_0x3d0f0b[_0xf69b01(0x122)][_0x2498c4[_0xf69b01(0x135)]],_0x2e2e38=!!_0x6b8b5d&&_0x6b8b5d[_0xf69b01(0x126)]!==_0x2498c4['relativePath'],_0x25d087=!!_0x6b8b5d&&!!_0x2498c4[_0xf69b01(0x132)]&&_0x6b8b5d['sqlName']!==_0x2498c4[_0xf69b01(0x132)];if(!_0x6b8b5d)_0x314264[_0xf69b01(0x138)](_0x2498c4['lockKey']);else _0x6b8b5d[_0xf69b01(0x11f)]!==_0x5570eb||_0x2e2e38||_0x25d087?_0xeccaae[_0xf69b01(0x138)](_0x2498c4['lockKey']):_0x3baab[_0xf69b01(0x138)](_0x2498c4[_0xf69b01(0x135)]);}for(const _0x1327e5 of Object['keys'](_0x3d0f0b[_0xf69b01(0x122)])){!_0x2fc045[_0xf69b01(0x12c)](_0x1327e5)&&_0xf47676[_0xf69b01(0x138)](_0x1327e5);}const _0xbae0a1=[];if(_0x187f90[_0xf69b01(0x13a)](_0xf69b01(0x127))){const _0x430db2=await fetchAllSqlCodes(_0x187f90[_0xf69b01(0x12d)]);for(const _0x5d0650 of _0x430db2){!_0x2fc045[_0xf69b01(0x12c)](_0x5d0650)&&!_0x3d0f0b['sqls'][_0x5d0650]&&_0xbae0a1[_0xf69b01(0x138)](_0x5d0650);}}const _0x1c53fc=_0x314264[_0xf69b01(0x12b)]===0x0&&_0xeccaae['length']===0x0&&_0xf47676[_0xf69b01(0x12b)]===0x0&&_0xbae0a1[_0xf69b01(0x12b)]===0x0;return{'ok':!![],'data':{'added':_0x314264,'modified':_0xeccaae,'missing':_0xf47676,'unchanged':_0x3baab,'remoteOnly':_0xbae0a1},'message':_0x1c53fc?_0xf69b01(0x12e):_0x314264[_0xf69b01(0x12b)]+_0xf69b01(0x120)+_0xeccaae[_0xf69b01(0x12b)]+'\x20modified,\x20'+_0xf47676[_0xf69b01(0x12b)]+_0xf69b01(0x131)+_0x3baab[_0xf69b01(0x12b)]+_0xf69b01(0x13f)+(_0xbae0a1[_0xf69b01(0x12b)]>0x0?',\x20'+_0xbae0a1[_0xf69b01(0x12b)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a188_0x14ede3=a188_0x3066;(function(_0x243b9d,_0x189d1f){const _0x3b8ae9=a188_0x3066,_0x4e55f2=_0x243b9d();while(!![]){try{const _0xbcbd67=-parseInt(_0x3b8ae9(0xff))/0x1*(-parseInt(_0x3b8ae9(0x135))/0x2)+parseInt(_0x3b8ae9(0x112))/0x3+parseInt(_0x3b8ae9(0x126))/0x4+-parseInt(_0x3b8ae9(0x11b))/0x5+-parseInt(_0x3b8ae9(0x137))/0x6*(-parseInt(_0x3b8ae9(0x11a))/0x7)+parseInt(_0x3b8ae9(0x134))/0x8*(parseInt(_0x3b8ae9(0x101))/0x9)+-parseInt(_0x3b8ae9(0x10b))/0xa;if(_0xbcbd67===_0x189d1f)break;else _0x4e55f2['push'](_0x4e55f2['shift']());}catch(_0x26c969){_0x4e55f2['push'](_0x4e55f2['shift']());}}}(a188_0x2fdd,0x25dee));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a188_0x2fdd(){const _0x3a10=['2549799zkUghX','columns','schema:','flagMissing','pkField','Dataset\x20\x22','split','dbtableConfig','map','name','4851730aurUUe','Provide\x20--file\x20or\x20--sql','primary','schemaWarnings','push','unshift','toLowerCase','793488OoKRDV','find','type','str','length','check-indexes','sql','get','7klhBci','1372935baYCdz','fields','appCode','bool','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','valid','filter','Table\x20\x22','indexName','utf-8','message','1111492aizQWW','trim','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','file','index_columns','string','cwd','columnNames','parameters','schemas','read','isArray','reason','File\x20not\x20found:\x20','8ERMrWY','2mCXmoY','validate','327282YySrOa','flatMap','--check-indexes\x20requires\x20--schemas.','tables','validation','sqlType','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','index_type','tableName','indexes','isDangerous','34651VvLeQD','SQL\x20schema\x20validation'];a188_0x2fdd=function(){return _0x3a10;};return a188_0x2fdd();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a188_0x3066(_0x28dd54,_0x33458d){_0x28dd54=_0x28dd54-0xfe;const _0x2fdd84=a188_0x2fdd();let _0x3066f5=_0x2fdd84[_0x28dd54];return _0x3066f5;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a188_0x14ede3(0x118),'command':a188_0x14ede3(0x136),'description':a188_0x14ede3(0x13d),'risk':a188_0x14ede3(0x130),'flags':[{'name':a188_0x14ede3(0x129),'type':a188_0x14ede3(0x12b),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a188_0x14ede3(0x118),'type':a188_0x14ede3(0x12b),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a188_0x14ede3(0x12f),'type':'string','description':a188_0x14ede3(0x11f)},{'name':a188_0x14ede3(0x117),'type':'boolean','description':a188_0x14ede3(0x128)}],async 'execute'(_0x299795){const _0x29d3fc=a188_0x14ede3,_0x1bbb1d=_0x299795['str'](_0x29d3fc(0x129)),_0x3fe9b0=_0x299795[_0x29d3fc(0x115)](_0x29d3fc(0x118)),_0x57771b=_0x299795[_0x29d3fc(0x115)]('schemas'),_0x4c61b3=_0x299795[_0x29d3fc(0x11e)]('check-indexes');if(!_0x1bbb1d&&!_0x3fe9b0)throw CliErrors[_0x29d3fc(0x104)](_0x29d3fc(0x129),_0x29d3fc(0x10c));if(_0x4c61b3&&!_0x57771b)throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x139));let _0x43a001;if(_0x1bbb1d){const _0x4e0fa5=resolve(process[_0x29d3fc(0x12c)](),_0x1bbb1d);if(!existsSync(_0x4e0fa5))throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x133)+_0x4e0fa5);_0x43a001=readFileSync(_0x4e0fa5,_0x29d3fc(0x124));}else _0x43a001=_0x3fe9b0;const _0x3024da=validateSql(_0x43a001),_0x13968e={'valid':_0x3024da[_0x29d3fc(0x120)],'sqlType':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x114)],'isSelectOnly':_0x3024da[_0x29d3fc(0x13c)]['isSelectOnly'],'isDangerous':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0xfe)],'tables':_0x3024da[_0x29d3fc(0x13a)],'parameters':_0x3024da[_0x29d3fc(0x12e)],'message':_0x3024da[_0x29d3fc(0x125)]};_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]&&(_0x13968e[_0x29d3fc(0x132)]=_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]);if(_0x57771b&&_0x3024da[_0x29d3fc(0x120)]){const _0x4f1a7a=_0x57771b[_0x29d3fc(0x107)](',')['map'](_0x5b4ad5=>_0x5b4ad5[_0x29d3fc(0x127)]())[_0x29d3fc(0x121)](Boolean),_0x1359d2=[],_0x1a832d=[],_0x2957bd=filterDbTableBackedDatasets(await listDatasets(_0x299795[_0x29d3fc(0x11d)])),_0x23f218=new Map(_0x2957bd[_0x29d3fc(0x109)](_0x32969a=>[_0x32969a['dbtableConfig']?.[_0x29d3fc(0x13f)]?.[_0x29d3fc(0x111)](),_0x32969a]));for(const _0x19b117 of _0x3024da[_0x29d3fc(0x13a)]){const _0x34eca4=_0x23f218[_0x29d3fc(0x119)](_0x19b117[_0x29d3fc(0x111)]());!_0x34eca4&&_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x122)+_0x19b117+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0xcef791 of _0x4f1a7a){let _0x392acf;try{_0x392acf=await getDatasetDetail(_0xcef791);}catch{_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x106)+_0xcef791+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x392acf,_0x29d3fc(0x100));const _0x587d9d=Array[_0x29d3fc(0x131)](_0x392acf[_0x29d3fc(0x11c)])?_0x392acf[_0x29d3fc(0x11c)]:[],_0xadf58=new Set(_0x587d9d[_0x29d3fc(0x109)](_0x362c97=>_0x362c97[_0x29d3fc(0x10a)]?.[_0x29d3fc(0x111)]())),_0x1f92a5=_0x392acf[_0x29d3fc(0x108)]?.['tableName']||_0x392acf[_0x29d3fc(0x13f)]||_0xcef791;_0x13968e[_0x29d3fc(0x103)+_0x1f92a5]={'code':_0xcef791,'tableName':_0x1f92a5,'fieldCount':_0xadf58['size'],'fields':Array['from'](_0xadf58)};if(_0x4c61b3){const _0xcd14a3=normalizeDatasetIndexes(_0x392acf);_0x1a832d['push']({'tableName':_0x1f92a5,..._0xcd14a3});}}_0x1359d2[_0x29d3fc(0x116)]>0x0&&(_0x13968e[_0x29d3fc(0x10e)]=_0x1359d2),_0x4c61b3&&(_0x13968e['joinAudit']=auditSqlJoinIndexes(_0x43a001,_0x1a832d));}return{'ok':_0x3024da[_0x29d3fc(0x120)],'data':_0x13968e,'message':_0x3024da[_0x29d3fc(0x125)]};}};function normalizeDatasetIndexes(_0x2309c8){const _0x50b2af=a188_0x14ede3,_0x52b4ea=Array[_0x50b2af(0x131)](_0x2309c8?.['dataset']?.[_0x50b2af(0x140)])?_0x2309c8['dataset'][_0x50b2af(0x140)]:Array[_0x50b2af(0x131)](_0x2309c8?.[_0x50b2af(0x140)])?_0x2309c8[_0x50b2af(0x140)]:[],_0x29d177=_0x52b4ea[_0x50b2af(0x138)](_0x2abd33=>{const _0x1b59ce=_0x50b2af,_0xf59929=Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x12a)])?_0x2abd33['index_columns']:Array[_0x1b59ce(0x131)](_0x2abd33?.['columnNames'])?_0x2abd33[_0x1b59ce(0x12d)]:Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x102)])?_0x2abd33[_0x1b59ce(0x102)]:[],_0x1ce4cf=_0xf59929['filter'](_0x592024=>typeof _0x592024===_0x1b59ce(0x12b))['map'](_0x2bd65a=>_0x2bd65a[_0x1b59ce(0x127)]())[_0x1b59ce(0x121)](Boolean);if(_0x1ce4cf['length']===0x0)return[];const _0x5d0bf9=[_0x2abd33?.[_0x1b59ce(0x123)],_0x2abd33?.['index_name'],_0x2abd33?.[_0x1b59ce(0x10a)]][_0x1b59ce(0x113)](_0x34b9c4=>typeof _0x34b9c4===_0x1b59ce(0x12b)&&_0x34b9c4[_0x1b59ce(0x127)]()),_0x47420b=[_0x2abd33?.[_0x1b59ce(0x13e)],_0x2abd33?.[_0x1b59ce(0x114)]]['find'](_0x3f9efb=>typeof _0x3f9efb===_0x1b59ce(0x12b)&&_0x3f9efb[_0x1b59ce(0x127)]());return[{..._0x5d0bf9?{'name':_0x5d0bf9['trim']()}:{},..._0x47420b?{'type':_0x47420b[_0x1b59ce(0x127)]()}:{},'columns':_0x1ce4cf}];}),_0x5db000=[..._0x29d177],_0x39e547=typeof _0x2309c8?.[_0x50b2af(0x108)]?.[_0x50b2af(0x105)]===_0x50b2af(0x12b)?_0x2309c8[_0x50b2af(0x108)]['pkField'][_0x50b2af(0x107)](',')[_0x50b2af(0x109)](_0x1d6258=>_0x1d6258['trim']())[_0x50b2af(0x121)](Boolean):[];return _0x39e547[_0x50b2af(0x116)]>0x0&&_0x5db000[_0x50b2af(0x110)]({'type':_0x50b2af(0x10d),'columns':_0x39e547}),{'indexes':_0x5db000,'metadataAvailable':_0x29d177[_0x50b2af(0x116)]>0x0};}
1
+ function a193_0x8929(){const _0x581914=['boolean','28IzENxQ','columns','tables','126LIpIsa','str','4HTYKBb','name','sql','SQL\x20schema\x20validation','pkField','validation','toLowerCase','reason','1377622CPewYj','joinAudit','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','schemas','\x22\x20not\x20found\x20or\x20not\x20accessible','indexes','file','2042612AfzQHL','File\x20not\x20found:\x20','index_name','unshift','Provide\x20--file\x20or\x20--sql','size','check-indexes','3105321RqSFDc','dataset','map','flagMissing','fields','parameters','tableName','--check-indexes\x20requires\x20--schemas.','sqlType','indexName','type','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','push','valid','read','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','find','1048408qSQEci','columnNames','isDangerous','trim','7875345qERKbC','1897374eUeiCN','string','schemaWarnings','flatMap','length','utf-8','split','primary','schema:','index_columns','dbtableConfig','Table\x20\x22','isArray','get','1743760OZjoep','filter'];a193_0x8929=function(){return _0x581914;};return a193_0x8929();}const a193_0x4c651e=a193_0x26df;(function(_0x22457f,_0x5e527a){const _0xae350f=a193_0x26df,_0x4f30ac=_0x22457f();while(!![]){try{const _0x501e90=-parseInt(_0xae350f(0x131))/0x1+parseInt(_0xae350f(0x138))/0x2+-parseInt(_0xae350f(0x13f))/0x3*(parseInt(_0xae350f(0x16c))/0x4)+parseInt(_0xae350f(0x155))/0x5+parseInt(_0xae350f(0x156))/0x6*(-parseInt(_0xae350f(0x167))/0x7)+parseInt(_0xae350f(0x151))/0x8*(parseInt(_0xae350f(0x16a))/0x9)+parseInt(_0xae350f(0x164))/0xa;if(_0x501e90===_0x5e527a)break;else _0x4f30ac['push'](_0x4f30ac['shift']());}catch(_0x449fbb){_0x4f30ac['push'](_0x4f30ac['shift']());}}}(a193_0x8929,0xe284c));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a193_0x26df(_0x560060,_0x2ba0cd){_0x560060=_0x560060-0x12c;const _0x8929a5=a193_0x8929();let _0x26df58=_0x8929a5[_0x560060];return _0x26df58;}import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a193_0x4c651e(0x16e),'command':'validate','description':a193_0x4c651e(0x14a),'risk':a193_0x4c651e(0x14e),'flags':[{'name':a193_0x4c651e(0x137),'type':'string','description':a193_0x4c651e(0x133)},{'name':'sql','type':a193_0x4c651e(0x157),'description':a193_0x4c651e(0x14f)},{'name':a193_0x4c651e(0x134),'type':a193_0x4c651e(0x157),'description':a193_0x4c651e(0x14b)},{'name':'check-indexes','type':a193_0x4c651e(0x166),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x5ae1f8){const _0x5567f6=a193_0x4c651e,_0x2ebf29=_0x5ae1f8[_0x5567f6(0x16b)](_0x5567f6(0x137)),_0x356ed4=_0x5ae1f8['str'](_0x5567f6(0x16e)),_0x2d802e=_0x5ae1f8[_0x5567f6(0x16b)](_0x5567f6(0x134)),_0x4184f6=_0x5ae1f8['bool'](_0x5567f6(0x13e));if(!_0x2ebf29&&!_0x356ed4)throw CliErrors[_0x5567f6(0x142)](_0x5567f6(0x137),_0x5567f6(0x13c));if(_0x4184f6&&!_0x2d802e)throw CliErrors[_0x5567f6(0x12e)](_0x5567f6(0x146));let _0x1d412c;if(_0x2ebf29){const _0x4b989c=resolve(process['cwd'](),_0x2ebf29);if(!existsSync(_0x4b989c))throw CliErrors['validation'](_0x5567f6(0x139)+_0x4b989c);_0x1d412c=readFileSync(_0x4b989c,_0x5567f6(0x15b));}else _0x1d412c=_0x356ed4;const _0x9b273f=validateSql(_0x1d412c),_0xab29e8={'valid':_0x9b273f[_0x5567f6(0x14d)],'sqlType':_0x9b273f['sqlType'][_0x5567f6(0x149)],'isSelectOnly':_0x9b273f['sqlType']['isSelectOnly'],'isDangerous':_0x9b273f['sqlType'][_0x5567f6(0x153)],'tables':_0x9b273f['tables'],'parameters':_0x9b273f[_0x5567f6(0x144)],'message':_0x9b273f['message']};_0x9b273f[_0x5567f6(0x147)][_0x5567f6(0x130)]&&(_0xab29e8['reason']=_0x9b273f[_0x5567f6(0x147)][_0x5567f6(0x130)]);if(_0x2d802e&&_0x9b273f[_0x5567f6(0x14d)]){const _0x4dbd04=_0x2d802e['split'](',')[_0x5567f6(0x141)](_0x443423=>_0x443423['trim']())[_0x5567f6(0x165)](Boolean),_0x498527=[],_0x532b8c=[],_0x307e8b=filterDbTableBackedDatasets(await listDatasets(_0x5ae1f8['appCode'])),_0x25c46a=new Map(_0x307e8b[_0x5567f6(0x141)](_0x5a7f5f=>[_0x5a7f5f['dbtableConfig']?.[_0x5567f6(0x145)]?.[_0x5567f6(0x12f)](),_0x5a7f5f]));for(const _0x1048fe of _0x9b273f[_0x5567f6(0x169)]){const _0x3d58ee=_0x25c46a[_0x5567f6(0x163)](_0x1048fe[_0x5567f6(0x12f)]());!_0x3d58ee&&_0x498527[_0x5567f6(0x14c)](_0x5567f6(0x161)+_0x1048fe+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x598793 of _0x4dbd04){let _0x5420cc;try{_0x5420cc=await getDatasetDetail(_0x598793);}catch{_0x498527['push']('Dataset\x20\x22'+_0x598793+_0x5567f6(0x135));continue;}assertDatasetIsDbTableBacked(_0x5420cc,_0x5567f6(0x12c));const _0x3fdb02=Array[_0x5567f6(0x162)](_0x5420cc[_0x5567f6(0x143)])?_0x5420cc[_0x5567f6(0x143)]:[],_0x2eb122=new Set(_0x3fdb02[_0x5567f6(0x141)](_0x33ffff=>_0x33ffff[_0x5567f6(0x16d)]?.[_0x5567f6(0x12f)]())),_0x401c87=_0x5420cc['dbtableConfig']?.[_0x5567f6(0x145)]||_0x5420cc[_0x5567f6(0x145)]||_0x598793;_0xab29e8[_0x5567f6(0x15e)+_0x401c87]={'code':_0x598793,'tableName':_0x401c87,'fieldCount':_0x2eb122[_0x5567f6(0x13d)],'fields':Array['from'](_0x2eb122)};if(_0x4184f6){const _0x58396e=normalizeDatasetIndexes(_0x5420cc);_0x532b8c['push']({'tableName':_0x401c87,..._0x58396e});}}_0x498527[_0x5567f6(0x15a)]>0x0&&(_0xab29e8[_0x5567f6(0x158)]=_0x498527),_0x4184f6&&(_0xab29e8[_0x5567f6(0x132)]=auditSqlJoinIndexes(_0x1d412c,_0x532b8c));}return{'ok':_0x9b273f[_0x5567f6(0x14d)],'data':_0xab29e8,'message':_0x9b273f['message']};}};function normalizeDatasetIndexes(_0x4760d4){const _0x13a23b=a193_0x4c651e,_0x2a6a3b=Array[_0x13a23b(0x162)](_0x4760d4?.[_0x13a23b(0x140)]?.[_0x13a23b(0x136)])?_0x4760d4['dataset'][_0x13a23b(0x136)]:Array[_0x13a23b(0x162)](_0x4760d4?.[_0x13a23b(0x136)])?_0x4760d4['indexes']:[],_0xc3f90=_0x2a6a3b[_0x13a23b(0x159)](_0x587345=>{const _0x433f3d=_0x13a23b,_0x37b52c=Array[_0x433f3d(0x162)](_0x587345?.[_0x433f3d(0x15f)])?_0x587345[_0x433f3d(0x15f)]:Array[_0x433f3d(0x162)](_0x587345?.[_0x433f3d(0x152)])?_0x587345[_0x433f3d(0x152)]:Array[_0x433f3d(0x162)](_0x587345?.[_0x433f3d(0x168)])?_0x587345[_0x433f3d(0x168)]:[],_0x33bc89=_0x37b52c[_0x433f3d(0x165)](_0x504fda=>typeof _0x504fda===_0x433f3d(0x157))[_0x433f3d(0x141)](_0x549df8=>_0x549df8[_0x433f3d(0x154)]())[_0x433f3d(0x165)](Boolean);if(_0x33bc89[_0x433f3d(0x15a)]===0x0)return[];const _0x4f5f58=[_0x587345?.[_0x433f3d(0x148)],_0x587345?.[_0x433f3d(0x13a)],_0x587345?.[_0x433f3d(0x16d)]][_0x433f3d(0x150)](_0x32c2bd=>typeof _0x32c2bd===_0x433f3d(0x157)&&_0x32c2bd['trim']()),_0x49009b=[_0x587345?.['index_type'],_0x587345?.['type']][_0x433f3d(0x150)](_0x332c2f=>typeof _0x332c2f===_0x433f3d(0x157)&&_0x332c2f[_0x433f3d(0x154)]());return[{..._0x4f5f58?{'name':_0x4f5f58[_0x433f3d(0x154)]()}:{},..._0x49009b?{'type':_0x49009b[_0x433f3d(0x154)]()}:{},'columns':_0x33bc89}];}),_0x45d059=[..._0xc3f90],_0x5e1a80=typeof _0x4760d4?.[_0x13a23b(0x160)]?.[_0x13a23b(0x12d)]===_0x13a23b(0x157)?_0x4760d4[_0x13a23b(0x160)][_0x13a23b(0x12d)][_0x13a23b(0x15c)](',')[_0x13a23b(0x141)](_0x587e50=>_0x587e50['trim']())[_0x13a23b(0x165)](Boolean):[];return _0x5e1a80['length']>0x0&&_0x45d059[_0x13a23b(0x13b)]({'type':_0x13a23b(0x15d),'columns':_0x5e1a80}),{'indexes':_0x45d059,'metadataAvailable':_0xc3f90[_0x13a23b(0x15a)]>0x0};}
@@ -1 +1 @@
1
- function a189_0xe3b8(_0x2d2921,_0x2eeff1){_0x2d2921=_0x2d2921-0x144;const _0x36cdf9=a189_0x36cd();let _0xe3b8cc=_0x36cdf9[_0x2d2921];return _0xe3b8cc;}(function(_0x391a3c,_0x4990bb){const _0x3d22f4=a189_0xe3b8,_0x15f131=_0x391a3c();while(!![]){try{const _0x1cdf6e=parseInt(_0x3d22f4(0x14b))/0x1*(parseInt(_0x3d22f4(0x149))/0x2)+-parseInt(_0x3d22f4(0x144))/0x3+-parseInt(_0x3d22f4(0x14e))/0x4*(parseInt(_0x3d22f4(0x14c))/0x5)+-parseInt(_0x3d22f4(0x14d))/0x6*(parseInt(_0x3d22f4(0x145))/0x7)+-parseInt(_0x3d22f4(0x14a))/0x8+-parseInt(_0x3d22f4(0x147))/0x9+parseInt(_0x3d22f4(0x146))/0xa*(parseInt(_0x3d22f4(0x148))/0xb);if(_0x1cdf6e===_0x4990bb)break;else _0x15f131['push'](_0x15f131['shift']());}catch(_0x4766d9){_0x15f131['push'](_0x15f131['shift']());}}}(a189_0x36cd,0x4f500));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a189_0x36cd(){const _0x3e95b7=['436068WeXglS','11QpHveL','768VpkBVq','4884776HiRuon','1453MhGjpQ','14215JfLCLO','18JaJLyN','808VyTqwP','1176588hcuYrU','1111299zvuwAc','18687140dIsbNO'];a189_0x36cd=function(){return _0x3e95b7;};return a189_0x36cd();}
1
+ function a194_0x5af3(_0x3cb683,_0x67f2a1){_0x3cb683=_0x3cb683-0x77;const _0x25578b=a194_0x2557();let _0x5af364=_0x25578b[_0x3cb683];return _0x5af364;}(function(_0x1b5ea9,_0x3a98e0){const _0x5cd19e=a194_0x5af3,_0x471eed=_0x1b5ea9();while(!![]){try{const _0x4317a9=parseInt(_0x5cd19e(0x78))/0x1*(parseInt(_0x5cd19e(0x80))/0x2)+-parseInt(_0x5cd19e(0x7d))/0x3+-parseInt(_0x5cd19e(0x77))/0x4+-parseInt(_0x5cd19e(0x7f))/0x5+parseInt(_0x5cd19e(0x7b))/0x6*(parseInt(_0x5cd19e(0x7a))/0x7)+-parseInt(_0x5cd19e(0x7e))/0x8*(parseInt(_0x5cd19e(0x7c))/0x9)+-parseInt(_0x5cd19e(0x81))/0xa*(-parseInt(_0x5cd19e(0x79))/0xb);if(_0x4317a9===_0x3a98e0)break;else _0x471eed['push'](_0x471eed['shift']());}catch(_0x4a0a0b){_0x471eed['push'](_0x471eed['shift']());}}}(a194_0x2557,0xccb3d));import{taskStatus}from'../../commands/task/status.js';function a194_0x2557(){const _0x404890=['8FEXeAN','5578790LIzXZO','290xmcqzb','100lJKbXP','5594988hpCguk','10283jkQIkt','4580323iTxemn','4269251rkFaQs','6YizuvX','13548069TevYtp','4219653ofyRgG'];a194_0x2557=function(){return _0x404890;};return a194_0x2557();}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a190_0x53dffc=a190_0x35bc;(function(_0xe9bc93,_0xa038f8){const _0x42e137=a190_0x35bc,_0xa2943d=_0xe9bc93();while(!![]){try{const _0x2e8bb1=parseInt(_0x42e137(0x193))/0x1+parseInt(_0x42e137(0x190))/0x2+parseInt(_0x42e137(0x194))/0x3+parseInt(_0x42e137(0x1a0))/0x4*(parseInt(_0x42e137(0x19d))/0x5)+-parseInt(_0x42e137(0x199))/0x6*(parseInt(_0x42e137(0x192))/0x7)+parseInt(_0x42e137(0x1a1))/0x8*(-parseInt(_0x42e137(0x18e))/0x9)+-parseInt(_0x42e137(0x19e))/0xa;if(_0x2e8bb1===_0xa038f8)break;else _0xa2943d['push'](_0xa2943d['shift']());}catch(_0x44dbc8){_0xa2943d['push'](_0xa2943d['shift']());}}}(a190_0xa8b0,0x62e04));function a190_0xa8b0(){const _0x17ccf7=['read','str','isTerminal','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','266499DiMmLH','cookie','442370oCGnCI','apiError','2993207oGEGNy','670205bwiSyT','2134359hQQOnA','trim','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','status',',\x20received\x20','6MypXbj','flagMissing','taskId','appCode','4965PgiLZS','6136120xlriEI','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','204sVHYAI','56jWtoJK'];a190_0xa8b0=function(){return _0x17ccf7;};return a190_0xa8b0();}function a190_0x35bc(_0x1ac37e,_0x4187bd){_0x1ac37e=_0x1ac37e-0x18a;const _0xa8b0fe=a190_0xa8b0();let _0x35bcb7=_0xa8b0fe[_0x1ac37e];return _0x35bcb7;}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';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':a190_0x53dffc(0x197),'description':a190_0x53dffc(0x196),'risk':a190_0x53dffc(0x1a2),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a190_0x53dffc(0x18c),'type':'string','required':!![],'description':a190_0x53dffc(0x19f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d8419){const _0x137faa=a190_0x53dffc;if(!_0x1d8419[_0x137faa(0x18a)](_0x137faa(0x18c))['trim']())throw CliErrors[_0x137faa(0x19a)](_0x137faa(0x18c));},async 'execute'(_0x12f1ab){const _0x43047a=a190_0x53dffc,_0x4aa98d=_0x12f1ab[_0x43047a(0x18a)](_0x43047a(0x18c))[_0x43047a(0x195)](),_0x337c50=normalizeAsyncTask(await getAsyncTaskStatus(_0x4aa98d,_0x12f1ab['appCode'],_0x12f1ab[_0x43047a(0x18f)]));if(_0x337c50[_0x43047a(0x19b)]!==_0x4aa98d)throw CliErrors[_0x43047a(0x191)](_0x43047a(0x18d)+_0x4aa98d+_0x43047a(0x198)+_0x337c50['taskId']+'.');const _0x1185c2=buildAsyncTaskStatusCommand(_0x337c50[_0x43047a(0x19b)],_0x12f1ab[_0x43047a(0x19c)]);return{'ok':!![],'message':asyncTaskMessage(_0x337c50),'data':{'appCode':_0x12f1ab[_0x43047a(0x19c)],..._0x337c50,'query':_0x337c50[_0x43047a(0x18b)]?null:{'command':_0x1185c2}}};}};
1
+ const a195_0x2b6a9e=a195_0x5d0d;function a195_0x5d0d(_0x45839c,_0x569b71){_0x45839c=_0x45839c-0x11a;const _0x8dcb3c=a195_0x8dcb();let _0x5d0dda=_0x8dcb3c[_0x45839c];return _0x5d0dda;}(function(_0x43a05b,_0x3346bd){const _0x2a1d4d=a195_0x5d0d,_0x5a487b=_0x43a05b();while(!![]){try{const _0x52f3e5=parseInt(_0x2a1d4d(0x12e))/0x1*(-parseInt(_0x2a1d4d(0x129))/0x2)+-parseInt(_0x2a1d4d(0x124))/0x3*(-parseInt(_0x2a1d4d(0x12a))/0x4)+-parseInt(_0x2a1d4d(0x135))/0x5*(parseInt(_0x2a1d4d(0x12c))/0x6)+parseInt(_0x2a1d4d(0x131))/0x7*(parseInt(_0x2a1d4d(0x11a))/0x8)+parseInt(_0x2a1d4d(0x11f))/0x9*(parseInt(_0x2a1d4d(0x126))/0xa)+parseInt(_0x2a1d4d(0x128))/0xb+-parseInt(_0x2a1d4d(0x125))/0xc*(parseInt(_0x2a1d4d(0x134))/0xd);if(_0x52f3e5===_0x3346bd)break;else _0x5a487b['push'](_0x5a487b['shift']());}catch(_0x1ac6f2){_0x5a487b['push'](_0x5a487b['shift']());}}}(a195_0x8dcb,0xba5fc));function a195_0x8dcb(){const _0x1e2740=['isTerminal','90VHVxYV','compress','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','read',',\x20received\x20','4566bvxrMJ','25828884ceFeXT','1237780BuiXTK','string','14089427BnWoyj','2tDuajp','3684ERSGto','taskId','210HbEPje','trim','723709VtRdKa','apiError','status','639569gCKzyF','flagMissing','task','13LxHvLi','105390BnkRQr','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','40ZVISme','task-id','appCode','str'];a195_0x8dcb=function(){return _0x1e2740;};return a195_0x8dcb();}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';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a195_0x2b6a9e(0x133),'command':a195_0x2b6a9e(0x130),'description':a195_0x2b6a9e(0x136),'risk':a195_0x2b6a9e(0x122),'defaultOutputFormat':a195_0x2b6a9e(0x120),'structuredErrors':!![],'flags':[{'name':a195_0x2b6a9e(0x11b),'type':a195_0x2b6a9e(0x127),'required':!![],'description':a195_0x2b6a9e(0x121)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5e4065){const _0x1b6f58=a195_0x2b6a9e;if(!_0x5e4065[_0x1b6f58(0x11d)](_0x1b6f58(0x11b))[_0x1b6f58(0x12d)]())throw CliErrors[_0x1b6f58(0x132)](_0x1b6f58(0x11b));},async 'execute'(_0x24c3ab){const _0x387aea=a195_0x2b6a9e,_0x4c3629=_0x24c3ab[_0x387aea(0x11d)](_0x387aea(0x11b))[_0x387aea(0x12d)](),_0x475ddb=normalizeAsyncTask(await getAsyncTaskStatus(_0x4c3629,_0x24c3ab['appCode'],_0x24c3ab['cookie']));if(_0x475ddb[_0x387aea(0x12b)]!==_0x4c3629)throw CliErrors[_0x387aea(0x12f)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x4c3629+_0x387aea(0x123)+_0x475ddb[_0x387aea(0x12b)]+'.');const _0x14202b=buildAsyncTaskStatusCommand(_0x475ddb['taskId'],_0x24c3ab['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x475ddb),'data':{'appCode':_0x24c3ab[_0x387aea(0x11c)],..._0x475ddb,'query':_0x475ddb[_0x387aea(0x11e)]?null:{'command':_0x14202b}}};}};
@@ -0,0 +1 @@
1
+ function a196_0x57e2(_0x2b8c30,_0x4d95f6){_0x2b8c30=_0x2b8c30-0xa1;const _0x1e5249=a196_0x1e52();let _0x57e2e6=_0x1e5249[_0x2b8c30];return _0x57e2e6;}(function(_0xd8029b,_0x1a7d4e){const _0x49129f=a196_0x57e2,_0x38cde2=_0xd8029b();while(!![]){try{const _0xe3bb5c=-parseInt(_0x49129f(0xa8))/0x1+-parseInt(_0x49129f(0xa3))/0x2*(-parseInt(_0x49129f(0xa4))/0x3)+-parseInt(_0x49129f(0xa7))/0x4+parseInt(_0x49129f(0xaa))/0x5*(-parseInt(_0x49129f(0xa9))/0x6)+parseInt(_0x49129f(0xa1))/0x7+-parseInt(_0x49129f(0xa5))/0x8+parseInt(_0x49129f(0xa2))/0x9*(parseInt(_0x49129f(0xa6))/0xa);if(_0xe3bb5c===_0x1a7d4e)break;else _0x38cde2['push'](_0x38cde2['shift']());}catch(_0x35bfe2){_0x38cde2['push'](_0x38cde2['shift']());}}}(a196_0x1e52,0x9f0f2));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a196_0x1e52(){const _0x3020a2=['10dGUFLW','4670616znVIDp','1093517NMAnmh','1463034ywaQmr','5FnxVgv','649173zdCYyM','27503748WEcCGJ','138634mfXZMV','30rxWWij','5482920cVDIuW'];a196_0x1e52=function(){return _0x3020a2;};return a196_0x1e52();}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -0,0 +1 @@
1
+ const a197_0x4134f8=a197_0x1f5c;(function(_0x8a06e3,_0x28773e){const _0x1c47c4=a197_0x1f5c,_0x5bae0e=_0x8a06e3();while(!![]){try{const _0x114fb7=parseInt(_0x1c47c4(0xad))/0x1+-parseInt(_0x1c47c4(0xb5))/0x2*(-parseInt(_0x1c47c4(0xa8))/0x3)+-parseInt(_0x1c47c4(0xbb))/0x4+-parseInt(_0x1c47c4(0xb4))/0x5*(-parseInt(_0x1c47c4(0xae))/0x6)+-parseInt(_0x1c47c4(0xb7))/0x7*(-parseInt(_0x1c47c4(0xb1))/0x8)+parseInt(_0x1c47c4(0xb3))/0x9+-parseInt(_0x1c47c4(0xa9))/0xa*(parseInt(_0x1c47c4(0xaa))/0xb);if(_0x114fb7===_0x28773e)break;else _0x5bae0e['push'](_0x5bae0e['shift']());}catch(_0x53d029){_0x5bae0e['push'](_0x5bae0e['shift']());}}}(a197_0x2dab,0x53d90));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a197_0x2dab(){const _0x5ef485=['4CGrpwF','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','714812VjrgTg','string','flagMissing','length','2122892fZiQDr','tenant','tenant-code','44643QUdpLF','656390idTXfi','187xCYLNN','members-list','trim','333571InlsOy','3976638EpbkZa','str','read','48Uxxluw','Exact\x20tenant\x20code','3161016IYIkCd','5rGnEMr'];a197_0x2dab=function(){return _0x5ef485;};return a197_0x2dab();}import{CliErrors}from'../../errors.js';function a197_0x1f5c(_0x15ae70,_0x168788){_0x15ae70=_0x15ae70-0xa6;const _0x2dabf8=a197_0x2dab();let _0x1f5c17=_0x2dabf8[_0x15ae70];return _0x1f5c17;}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a197_0x4134f8(0xa6),'command':a197_0x4134f8(0xab),'description':a197_0x4134f8(0xb6),'risk':a197_0x4134f8(0xb0),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a197_0x4134f8(0xb8),'required':!![],'description':a197_0x4134f8(0xb2)}],async 'validate'(_0x1bd5d3){const _0x1ea078=a197_0x4134f8;if(!_0x1bd5d3['str'](_0x1ea078(0xa7))[_0x1ea078(0xac)]())throw CliErrors[_0x1ea078(0xb9)](_0x1ea078(0xa7),'Pass\x20--tenant-code\x20<code>.');},async 'execute'(_0x5eb8e9){const _0x2bfe60=a197_0x4134f8,_0x281305=_0x5eb8e9[_0x2bfe60(0xaf)]('tenant-code')[_0x2bfe60(0xac)](),_0x380dbf=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x281305,_0x380dbf);const _0x4a0081=projectTenantMembers(await listTenantDirectoryMembers(_0x281305));return{'ok':!![],'data':{'tenantCode':_0x281305,'items':_0x4a0081,'totalCount':_0x4a0081[_0x2bfe60(0xba)]},'message':'Found\x20'+_0x4a0081[_0x2bfe60(0xba)]+'\x20tenant\x20member(s)'};}};
@@ -0,0 +1 @@
1
+ (function(_0x4ea42e,_0x52cd93){const _0x24f62b=a198_0x446b,_0x54295b=_0x4ea42e();while(!![]){try{const _0x25abc6=parseInt(_0x24f62b(0x1bb))/0x1*(parseInt(_0x24f62b(0x1cd))/0x2)+-parseInt(_0x24f62b(0x1cb))/0x3+-parseInt(_0x24f62b(0x1c3))/0x4+-parseInt(_0x24f62b(0x1d1))/0x5+parseInt(_0x24f62b(0x1d2))/0x6+-parseInt(_0x24f62b(0x1ca))/0x7+parseInt(_0x24f62b(0x1c2))/0x8;if(_0x25abc6===_0x52cd93)break;else _0x54295b['push'](_0x54295b['shift']());}catch(_0x215184){_0x54295b['push'](_0x54295b['shift']());}}}(a198_0x1440,0x19d90));import{CliErrors}from'../../errors.js';function a198_0x446b(_0xddc231,_0x2b050e){_0xddc231=_0xddc231-0x1bb;const _0x1440e9=a198_0x1440();let _0x446b96=_0x1440e9[_0xddc231];return _0x446b96;}function textOrNull(_0x146c47){const _0x444c77=a198_0x446b,_0x158ffb=_0x146c47?.[_0x444c77(0x1c1)]();return _0x158ffb?_0x158ffb:null;}export function projectTenantMembers(_0x4a99ca){const _0x3add01=a198_0x446b,_0x147136=new Map();for(const _0x3aaa27 of _0x4a99ca){const _0x32c977=Number(_0x3aaa27[_0x3add01(0x1d3)]);if(!Number['isFinite'](_0x32c977)||_0x32c977<=0x0)continue;const _0x56de7f={'userId':_0x32c977,'username':textOrNull(_0x3aaa27[_0x3add01(0x1ce)]),'displayName':textOrNull(_0x3aaa27[_0x3add01(0x1bd)]),'role':_0x3aaa27[_0x3add01(0x1c9)]===!![]?_0x3add01(0x1c7):_0x3add01(0x1c5),'status':textOrNull(_0x3aaa27[_0x3add01(0x1bc)])},_0x5cf8be=_0x147136[_0x3add01(0x1c0)](_0x32c977);if(!_0x5cf8be){_0x147136[_0x3add01(0x1cf)](_0x32c977,_0x56de7f);continue;}_0x5cf8be[_0x3add01(0x1ce)]??=_0x56de7f[_0x3add01(0x1ce)],_0x5cf8be[_0x3add01(0x1c6)]??=_0x56de7f['displayName'],_0x5cf8be[_0x3add01(0x1bc)]??=_0x56de7f[_0x3add01(0x1bc)];if(_0x56de7f[_0x3add01(0x1be)]===_0x3add01(0x1c7))_0x5cf8be[_0x3add01(0x1be)]=_0x3add01(0x1c7);}return[..._0x147136[_0x3add01(0x1c4)]()]['sort']((_0x273444,_0x357fcd)=>_0x273444[_0x3add01(0x1d3)]-_0x357fcd[_0x3add01(0x1d3)]);}export function assertTenantAccessible(_0x4eb11b,_0x333f34){const _0x448f30=a198_0x446b;if(_0x333f34[_0x448f30(0x1c8)](_0x2c29a6=>_0x2c29a6[_0x448f30(0x1cc)]===_0x4eb11b))return;throw CliErrors[_0x448f30(0x1bf)](_0x448f30(0x1d0)+_0x4eb11b+_0x448f30(0x1d4),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}function a198_0x1440(){const _0x46ef1f=['302000nreZSo','180612YURoId','values','MEMBER','displayName','ADMIN','some','adminFlag','161602ESGyaL','43305YZLmyd','tenantCode','54EoHItX','username','set','Tenant\x20\x22','915340dTKYZR','954558fowZcj','userId','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','6473GXXtMb','status','nickname','role','validation','get','trim'];a198_0x1440=function(){return _0x46ef1f;};return a198_0x1440();}
@@ -1 +1 @@
1
- const a191_0x202a0e=a191_0x3a58;function a191_0x1e78(){const _0x3dc8bc=['12bUVYea','1577562kXwEYe','40772720MZjmSE','1039287lMHOim','workspace\x20add','4430232xVrPvr','name','write','6420540gbxIeL','579186sOjawB','1456530lyzWCk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','9XeUprq'];a191_0x1e78=function(){return _0x3dc8bc;};return a191_0x1e78();}function a191_0x3a58(_0x52d96b,_0x3547d7){_0x52d96b=_0x52d96b-0x158;const _0x1e78a6=a191_0x1e78();let _0x3a584a=_0x1e78a6[_0x52d96b];return _0x3a584a;}(function(_0x5137f8,_0x510467){const _0x3456b4=a191_0x3a58,_0x15e6af=_0x5137f8();while(!![]){try{const _0x4df1b8=-parseInt(_0x3456b4(0x15d))/0x1+parseInt(_0x3456b4(0x158))/0x2+-parseInt(_0x3456b4(0x15f))/0x3*(parseInt(_0x3456b4(0x15c))/0x4)+-parseInt(_0x3456b4(0x159))/0x5+-parseInt(_0x3456b4(0x161))/0x6+-parseInt(_0x3456b4(0x164))/0x7+parseInt(_0x3456b4(0x15e))/0x8*(parseInt(_0x3456b4(0x15b))/0x9);if(_0x4df1b8===_0x510467)break;else _0x15e6af['push'](_0x15e6af['shift']());}catch(_0x715bf){_0x15e6af['push'](_0x15e6af['shift']());}}}(a191_0x1e78,0xc8ca4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a191_0x202a0e(0x15a),'risk':a191_0x202a0e(0x163),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a191_0x202a0e(0x162),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x735d7c=>validateAppName(_0x735d7c,'workspace\x20add'),'execute':_0x26ba25=>runAppAdd(_0x26ba25,a191_0x202a0e(0x160))};
1
+ const a199_0x5158a8=a199_0x3315;(function(_0x210d43,_0x3b52ad){const _0x153769=a199_0x3315,_0x4ec16a=_0x210d43();while(!![]){try{const _0x200219=-parseInt(_0x153769(0x1b0))/0x1+parseInt(_0x153769(0x1a8))/0x2*(parseInt(_0x153769(0x1b1))/0x3)+-parseInt(_0x153769(0x1b3))/0x4+-parseInt(_0x153769(0x1aa))/0x5*(parseInt(_0x153769(0x1ab))/0x6)+parseInt(_0x153769(0x1ae))/0x7*(-parseInt(_0x153769(0x1a7))/0x8)+parseInt(_0x153769(0x1b6))/0x9+-parseInt(_0x153769(0x1b5))/0xa*(-parseInt(_0x153769(0x1b2))/0xb);if(_0x200219===_0x3b52ad)break;else _0x4ec16a['push'](_0x4ec16a['shift']());}catch(_0x3451dd){_0x4ec16a['push'](_0x4ec16a['shift']());}}}(a199_0x4109,0x3cf7c));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a199_0x5158a8(0x1af),'description':a199_0x5158a8(0x1a9),'risk':a199_0x5158a8(0x1ad),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a199_0x5158a8(0x1b4),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x354328=>validateAppName(_0x354328,a199_0x5158a8(0x1ac)),'execute':_0x3b2337=>runAppAdd(_0x3b2337,a199_0x5158a8(0x1ac))};function a199_0x3315(_0x226f50,_0x27c0ee){_0x226f50=_0x226f50-0x1a7;const _0x4109c6=a199_0x4109();let _0x3315bd=_0x4109c6[_0x226f50];return _0x3315bd;}function a199_0x4109(){const _0xc46976=['App\x20profile\x20name','3513590BIrSOX','2123487cSFnMr','4296PIZiQZ','118382yyCnVw','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','5PbUnJK','1192614WoFeFR','workspace\x20add','write','406GCcrnC','add','487439IFwGYJ','3CyvqWU','22bdkOVf','123096UEouGu'];a199_0x4109=function(){return _0xc46976;};return a199_0x4109();}
@@ -1 +1 @@
1
- const a192_0x4a19db=a192_0x24f2;(function(_0x984031,_0x5734db){const _0x25c2e6=a192_0x24f2,_0x30c445=_0x984031();while(!![]){try{const _0x41e7e8=parseInt(_0x25c2e6(0xbc))/0x1*(parseInt(_0x25c2e6(0x98))/0x2)+-parseInt(_0x25c2e6(0x9d))/0x3+parseInt(_0x25c2e6(0xa3))/0x4*(-parseInt(_0x25c2e6(0x96))/0x5)+parseInt(_0x25c2e6(0xb4))/0x6*(parseInt(_0x25c2e6(0xa2))/0x7)+parseInt(_0x25c2e6(0x93))/0x8+parseInt(_0x25c2e6(0xaf))/0x9*(-parseInt(_0x25c2e6(0xbd))/0xa)+parseInt(_0x25c2e6(0xba))/0xb;if(_0x41e7e8===_0x5734db)break;else _0x30c445['push'](_0x30c445['shift']());}catch(_0x2ca798){_0x30c445['push'](_0x30c445['shift']());}}}(a192_0xc2bd,0xe4b7b));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';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a192_0x4a19db(0xb1),a192_0x4a19db(0xa5),a192_0x4a19db(0x95),a192_0x4a19db(0x8e),a192_0x4a19db(0xae),a192_0x4a19db(0x9f),a192_0x4a19db(0xb5)],workspaceFlags=[{'name':a192_0x4a19db(0xa6),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xa7)},{'name':a192_0x4a19db(0xb1),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x97)},{'name':a192_0x4a19db(0xa5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x94),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xc6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x4a19db(0xae),'type':a192_0x4a19db(0xa0),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a192_0x4a19db(0xb7),'enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x4a19db(0xb5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x90)}];function isRecord(_0x3847c0){const _0x69bfbe=a192_0x4a19db;return!!_0x3847c0&&typeof _0x3847c0==='object'&&!Array[_0x69bfbe(0x9e)](_0x3847c0);}function a192_0x24f2(_0x5e451c,_0x2e1abf){_0x5e451c=_0x5e451c-0x8e;const _0xc2bdb=a192_0xc2bd();let _0x24f243=_0xc2bdb[_0x5e451c];return _0x24f243;}function assertValidAppcode(_0x2e2247){const _0x54333b=a192_0x4a19db,{valid:_0x1133a9,message:_0x5927d3}=validateAppcode(_0x2e2247);if(!_0x1133a9)throw CliErrors[_0x54333b(0xac)]('Invalid\x20appcode:\x20'+_0x2e2247,_0x5927d3);}function sanitizeProfile(_0x44de46){if(!isRecord(_0x44de46))return{};const _0x51e0d4={};for(const _0x87120a of SAFE_PROFILE_KEYS){if(_0x44de46[_0x87120a]!==undefined)_0x51e0d4[_0x87120a]=_0x44de46[_0x87120a];}return _0x51e0d4;}function cloneProfile(_0x49db0a){return isRecord(_0x49db0a)?{..._0x49db0a}:{};}function collectWorkspaceProfileOverrides(_0x2b2fe6){const _0x3e8390=a192_0x4a19db,_0x2ecc2a={},_0x32a75a=_0x2b2fe6[_0x3e8390(0xbe)]('env'),_0x230640=_0x2b2fe6['str'](_0x3e8390(0x95)),_0x10227e=_0x2b2fe6[_0x3e8390(0xbe)](_0x3e8390(0xbf)),_0x38b5b8=_0x2b2fe6[_0x3e8390(0x91)]('pageSize'),_0xc93a1b=_0x2b2fe6['str'](_0x3e8390(0x9f)),_0x3435e9=_0x2b2fe6[_0x3e8390(0xbe)]('locale');if(_0x32a75a)_0x2ecc2a[_0x3e8390(0xa5)]=_0x32a75a;if(_0x230640)_0x2ecc2a['apiDir']=_0x230640;if(_0x10227e)_0x2ecc2a['format']=_0x10227e;if(_0x38b5b8!==undefined&&_0x38b5b8!=='')_0x2ecc2a[_0x3e8390(0xae)]=Number(_0x38b5b8);if(_0xc93a1b)_0x2ecc2a[_0x3e8390(0x9f)]=_0xc93a1b;if(_0x3435e9)_0x2ecc2a[_0x3e8390(0xb5)]=_0x3435e9;return _0x2ecc2a;}async function validateWorkspaceArgs(_0x4bb04b){const _0x123883=a192_0x4a19db,_0x169d84=_0x4bb04b[_0x123883(0xbe)]('app')[_0x123883(0xc5)](),_0x12fa11=_0x4bb04b[_0x123883(0xbe)](_0x123883(0xb1))['trim']();if(!_0x169d84&&!_0x12fa11)throw CliErrors[_0x123883(0xac)](_0x123883(0x9b),'Use\x20`'+CLI_BIN_NAME+_0x123883(0x9c)+CLI_BIN_NAME+_0x123883(0xa4));if(_0x12fa11)assertValidAppcode(_0x12fa11);}function a192_0xc2bd(){const _0x25fa8f=['keys','\x20--appcode\x20<code>`.','use','trim','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','format','write','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','\x20workspace\x20','11953728IbPwAt','Target\x20environment','apiDir','7008740IjjzBA','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4076PITmJo','string',').\x20Config:\x20','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','3252219SJEwrc','isArray','riskLevel','number','updated','33572yABQih','4JGVsVg','\x20workspace\x20use\x20--app\x20<name>`.','env','app','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace','\x22\x20not\x20found.','apps','length','validation','Use\x20`','pageSize','432yPOJfq','workspace.','appcode','globalConfig','\x20(appcode:\x20','726wzsJhf','locale','App\x20\x22','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Switch\x20the\x20current\x20workspace\x20app\x20binding','init','5225594kZcpYa','defaultApp','881lkDGtK','192170cVWzKi','str','defaultFormat','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Workspace\x20'];a192_0xc2bd=function(){return _0x25fa8f;};return a192_0xc2bd();}function resolveKnownApps(){const _0x5e3165=a192_0x4a19db,{config:_0x36196c,layers:_0x514dd3}=readRawConfigWithLayers(),_0x450df7=isRecord(_0x36196c[_0x5e3165(0xaa)])?_0x36196c[_0x5e3165(0xaa)]:{},_0x1fc2f4=isRecord(_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)])?_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)]:{};return{..._0x1fc2f4,..._0x450df7};}async function configureWorkspace(_0x11ee0b,_0x17cc5b){const _0x311587=a192_0x4a19db,_0x783a99=_0x11ee0b[_0x311587(0xbe)]('app')[_0x311587(0xc5)](),_0x5eafa7=_0x11ee0b[_0x311587(0xbe)](_0x311587(0xb1))['trim'](),_0x14aec4=_0x783a99||_0x5eafa7;if(!_0x14aec4)throw CliErrors[_0x311587(0xac)]('Missing\x20workspace\x20app\x20selector.',_0x311587(0xad)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5eafa7)assertValidAppcode(_0x5eafa7);const _0x3c6fcd=resolveWriteConfigPath('project'),_0x277b2c=readConfigFile(_0x3c6fcd),_0x327ada=resolveKnownApps(),_0x585e73=isRecord(_0x277b2c[_0x311587(0xaa)])?{..._0x277b2c[_0x311587(0xaa)]}:{},_0x84c149=cloneProfile(_0x585e73[_0x14aec4]),_0x7dda47=sanitizeProfile(_0x327ada[_0x14aec4]),_0x3d69b5=_0x5eafa7?{}:_0x7dda47,_0x43c050=_0x5eafa7||_0x3d69b5[_0x311587(0xb1)];if(!_0x43c050){const _0xc364ca=Object[_0x311587(0xc2)](_0x327ada),_0x3db5ab=_0xc364ca[_0x311587(0xab)]===0x0?_0x311587(0xad)+CLI_BIN_NAME+_0x311587(0x92)+_0x17cc5b+'\x20--app\x20'+_0x14aec4+_0x311587(0xc3):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0xc364ca['join'](',\x20');throw CliErrors[_0x311587(0xac)](_0x311587(0xb6)+_0x14aec4+_0x311587(0xa9),_0x3db5ab);}assertValidAppcode(String(_0x43c050));const _0x5597de={..._0x3d69b5,..._0x84c149,'appcode':String(_0x43c050),...collectWorkspaceProfileOverrides(_0x11ee0b)};return _0x585e73[_0x14aec4]=_0x5597de,_0x277b2c[_0x311587(0xaa)]=_0x585e73,_0x277b2c[_0x311587(0xbb)]=_0x14aec4,delete _0x277b2c[_0x311587(0xb1)],delete _0x277b2c[_0x311587(0xa6)],_0x5597de[_0x311587(0xa5)]&&(_0x277b2c[_0x311587(0xa5)]=_0x5597de['env']),writeConfigFile(_0x3c6fcd,_0x277b2c),{'ok':!![],'message':_0x311587(0xc1)+(_0x17cc5b==='init'?'initialized':_0x311587(0xa1))+':\x20'+_0x14aec4+_0x311587(0xb3)+_0x5597de[_0x311587(0xb1)]+_0x311587(0x9a)+_0x3c6fcd+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x311587(0xb0)+_0x17cc5b,'configPath':_0x3c6fcd,'app':_0x14aec4,'appcode':_0x5597de[_0x311587(0xb1)],'env':_0x5597de[_0x311587(0xa5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x4a19db(0xa8),'command':a192_0x4a19db(0xb9),'description':a192_0x4a19db(0xc0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb2c100=>configureWorkspace(_0xb2c100,'init')},workspaceUseDefinition={'service':a192_0x4a19db(0xa8),'command':'use','description':a192_0x4a19db(0xb8),'risk':a192_0x4a19db(0x8f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5bb683=>configureWorkspace(_0x5bb683,a192_0x4a19db(0xc4))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a200_0x280284=a200_0x4afb;function a200_0x4afb(_0x1aa62b,_0x3a7f03){_0x1aa62b=_0x1aa62b-0x18c;const _0x414397=a200_0x4143();let _0x4afb9d=_0x414397[_0x1aa62b];return _0x4afb9d;}(function(_0x4e2101,_0x161dcb){const _0x2951d5=a200_0x4afb,_0x34c3dc=_0x4e2101();while(!![]){try{const _0xb2cdd9=-parseInt(_0x2951d5(0x1b9))/0x1+parseInt(_0x2951d5(0x1b0))/0x2*(parseInt(_0x2951d5(0x1a1))/0x3)+-parseInt(_0x2951d5(0x191))/0x4*(parseInt(_0x2951d5(0x193))/0x5)+-parseInt(_0x2951d5(0x1ba))/0x6*(-parseInt(_0x2951d5(0x1c2))/0x7)+-parseInt(_0x2951d5(0x1bc))/0x8+parseInt(_0x2951d5(0x196))/0x9+parseInt(_0x2951d5(0x1bd))/0xa*(parseInt(_0x2951d5(0x1ac))/0xb);if(_0xb2cdd9===_0x161dcb)break;else _0x34c3dc['push'](_0x34c3dc['shift']());}catch(_0x1d890a){_0x34c3dc['push'](_0x34c3dc['shift']());}}}(a200_0x4143,0x23c9e));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';function a200_0x4143(){const _0x5a4fec=['204106avAWnW','187662VQSTUn','object','2179744xUBPaS','20JnLrVd','\x22\x20not\x20found.','workspace','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','35QpJFRt','write','apiDir','globalConfig','appcode','locale','riskLevel','isArray','initialized','str','init','273344UKWuwO','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','5MYLkQw','validation','Missing\x20workspace\x20app\x20selector.','638919OSmcLC','trim','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20--app\x20','number','Invalid\x20appcode:\x20','App\x20\x22','string','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile',').\x20Config:\x20','apps','18489QJzZoW','keys','workspace.','\x20(appcode:\x20','updated','join','Use\x20`','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','format','2417096FLQFaU','length','\x20workspace\x20use\x20--app\x20<name>`.','.\x20Credentials:\x20not\x20written.','8WCftQn','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','env','use','defaultApp','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','app','\x20workspace\x20','pageSize'];a200_0x4143=function(){return _0x5a4fec;};return a200_0x4143();}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+a200_0x280284(0x1a8),SAFE_PROFILE_KEYS=[a200_0x280284(0x1c6),a200_0x280284(0x1b2),a200_0x280284(0x1c4),a200_0x280284(0x1ab),a200_0x280284(0x1b8),a200_0x280284(0x18c),'locale'],workspaceFlags=[{'name':a200_0x280284(0x1b6),'type':a200_0x280284(0x19d),'description':a200_0x280284(0x1c1)},{'name':a200_0x280284(0x1c6),'type':a200_0x280284(0x19d),'description':a200_0x280284(0x1b1)},{'name':a200_0x280284(0x1b2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a200_0x280284(0x1c4),'type':a200_0x280284(0x19d),'description':a200_0x280284(0x192)},{'name':'defaultFormat','type':a200_0x280284(0x19d),'description':a200_0x280284(0x1b5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a200_0x280284(0x1b8),'type':a200_0x280284(0x19a),'description':a200_0x280284(0x1aa)},{'name':a200_0x280284(0x18c),'type':a200_0x280284(0x19d),'description':a200_0x280284(0x19e),'enum':[...RISK_LEVEL_VALUES]},{'name':a200_0x280284(0x1c7),'type':'string','description':a200_0x280284(0x198)}];function isRecord(_0x412934){const _0x2ef62e=a200_0x280284;return!!_0x412934&&typeof _0x412934===_0x2ef62e(0x1bb)&&!Array[_0x2ef62e(0x18d)](_0x412934);}function assertValidAppcode(_0x587252){const _0x3b5359=a200_0x280284,{valid:_0x15a52a,message:_0xeebfc0}=validateAppcode(_0x587252);if(!_0x15a52a)throw CliErrors['validation'](_0x3b5359(0x19b)+_0x587252,_0xeebfc0);}function sanitizeProfile(_0x281551){if(!isRecord(_0x281551))return{};const _0x448145={};for(const _0x2a3be6 of SAFE_PROFILE_KEYS){if(_0x281551[_0x2a3be6]!==undefined)_0x448145[_0x2a3be6]=_0x281551[_0x2a3be6];}return _0x448145;}function cloneProfile(_0x34c8e6){return isRecord(_0x34c8e6)?{..._0x34c8e6}:{};}function collectWorkspaceProfileOverrides(_0x211375){const _0x298f5c=a200_0x280284,_0x3e2449={},_0x294d82=_0x211375['str'](_0x298f5c(0x1b2)),_0x5bedcc=_0x211375['str'](_0x298f5c(0x1c4)),_0x22b620=_0x211375[_0x298f5c(0x18f)]('defaultFormat'),_0x1bd7a5=_0x211375['flag']('pageSize'),_0x3f96b6=_0x211375['str']('riskLevel'),_0x7349fb=_0x211375[_0x298f5c(0x18f)](_0x298f5c(0x1c7));if(_0x294d82)_0x3e2449[_0x298f5c(0x1b2)]=_0x294d82;if(_0x5bedcc)_0x3e2449[_0x298f5c(0x1c4)]=_0x5bedcc;if(_0x22b620)_0x3e2449[_0x298f5c(0x1ab)]=_0x22b620;if(_0x1bd7a5!==undefined&&_0x1bd7a5!=='')_0x3e2449[_0x298f5c(0x1b8)]=Number(_0x1bd7a5);if(_0x3f96b6)_0x3e2449[_0x298f5c(0x18c)]=_0x3f96b6;if(_0x7349fb)_0x3e2449[_0x298f5c(0x1c7)]=_0x7349fb;return _0x3e2449;}async function validateWorkspaceArgs(_0x45a5b8){const _0xe5bc17=a200_0x280284,_0x4d6112=_0x45a5b8[_0xe5bc17(0x18f)](_0xe5bc17(0x1b6))['trim'](),_0x28d0f0=_0x45a5b8[_0xe5bc17(0x18f)](_0xe5bc17(0x1c6))[_0xe5bc17(0x197)]();if(!_0x4d6112&&!_0x28d0f0)throw CliErrors['validation'](_0xe5bc17(0x195),_0xe5bc17(0x1a7)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0xe5bc17(0x1ae));if(_0x28d0f0)assertValidAppcode(_0x28d0f0);}function resolveKnownApps(){const _0x493928=a200_0x280284,{config:_0x37ac59,layers:_0x54d855}=readRawConfigWithLayers(),_0x63adf8=isRecord(_0x37ac59[_0x493928(0x1a0)])?_0x37ac59['apps']:{},_0x876047=isRecord(_0x54d855[_0x493928(0x1c5)][_0x493928(0x1a0)])?_0x54d855[_0x493928(0x1c5)]['apps']:{};return{..._0x876047,..._0x63adf8};}async function configureWorkspace(_0x249c12,_0x6ec509){const _0x26963a=a200_0x280284,_0x2c36ee=_0x249c12[_0x26963a(0x18f)](_0x26963a(0x1b6))[_0x26963a(0x197)](),_0x299786=_0x249c12[_0x26963a(0x18f)](_0x26963a(0x1c6))['trim'](),_0x5ecafd=_0x2c36ee||_0x299786;if(!_0x5ecafd)throw CliErrors[_0x26963a(0x194)](_0x26963a(0x195),'Use\x20`'+CLI_BIN_NAME+_0x26963a(0x1c0)+CLI_BIN_NAME+_0x26963a(0x1ae));if(_0x299786)assertValidAppcode(_0x299786);const _0x5a7035=resolveWriteConfigPath('project'),_0x371b65=readConfigFile(_0x5a7035),_0x4dabe6=resolveKnownApps(),_0x244ceb=isRecord(_0x371b65[_0x26963a(0x1a0)])?{..._0x371b65[_0x26963a(0x1a0)]}:{},_0x5e9585=cloneProfile(_0x244ceb[_0x5ecafd]),_0x5a5c09=sanitizeProfile(_0x4dabe6[_0x5ecafd]),_0x156df1=_0x299786?{}:_0x5a5c09,_0x55112e=_0x299786||_0x156df1[_0x26963a(0x1c6)];if(!_0x55112e){const _0x2010ae=Object[_0x26963a(0x1a2)](_0x4dabe6),_0x1211aa=_0x2010ae[_0x26963a(0x1ad)]===0x0?_0x26963a(0x1a7)+CLI_BIN_NAME+_0x26963a(0x1b7)+_0x6ec509+_0x26963a(0x199)+_0x5ecafd+'\x20--appcode\x20<code>`.':'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x2010ae[_0x26963a(0x1a6)](',\x20');throw CliErrors[_0x26963a(0x194)](_0x26963a(0x19c)+_0x5ecafd+_0x26963a(0x1be),_0x1211aa);}assertValidAppcode(String(_0x55112e));const _0x3a48f2={..._0x156df1,..._0x5e9585,'appcode':String(_0x55112e),...collectWorkspaceProfileOverrides(_0x249c12)};return _0x244ceb[_0x5ecafd]=_0x3a48f2,_0x371b65[_0x26963a(0x1a0)]=_0x244ceb,_0x371b65[_0x26963a(0x1b4)]=_0x5ecafd,delete _0x371b65['appcode'],delete _0x371b65[_0x26963a(0x1b6)],_0x3a48f2[_0x26963a(0x1b2)]&&(_0x371b65['env']=_0x3a48f2['env']),writeConfigFile(_0x5a7035,_0x371b65),{'ok':!![],'message':'Workspace\x20'+(_0x6ec509===_0x26963a(0x190)?_0x26963a(0x18e):_0x26963a(0x1a5))+':\x20'+_0x5ecafd+_0x26963a(0x1a4)+_0x3a48f2['appcode']+_0x26963a(0x19f)+_0x5a7035+_0x26963a(0x1af),'data':{'operation':_0x26963a(0x1a3)+_0x6ec509,'configPath':_0x5a7035,'app':_0x5ecafd,'appcode':_0x3a48f2[_0x26963a(0x1c6)],'env':_0x3a48f2['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a200_0x280284(0x1bf),'command':a200_0x280284(0x190),'description':a200_0x280284(0x1a9),'risk':a200_0x280284(0x1c3),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2bef3c=>configureWorkspace(_0x2bef3c,a200_0x280284(0x190))},workspaceUseDefinition={'service':a200_0x280284(0x1bf),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a200_0x280284(0x1c3),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xc35662=>configureWorkspace(_0xc35662,a200_0x280284(0x1b3))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a193_0x35d15d=a193_0x1fe8;function a193_0x209b(){const _0x44860b=['305418tQGOhk','208019dFIRQl','280FqwKUO','name','301108OzBCFa','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','3EZiIhV','1363150IllQjv','2876292QKkdVq','workspace','11742039ifeSPr','remove','145OvogLH','43755950ZVoghF'];a193_0x209b=function(){return _0x44860b;};return a193_0x209b();}(function(_0x1b7ffa,_0x1bd61b){const _0x67ca70=a193_0x1fe8,_0x21a3ed=_0x1b7ffa();while(!![]){try{const _0x3b26f1=-parseInt(_0x67ca70(0x14a))/0x1+-parseInt(_0x67ca70(0x14b))/0x2+-parseInt(_0x67ca70(0x149))/0x3*(-parseInt(_0x67ca70(0x146))/0x4)+-parseInt(_0x67ca70(0x14f))/0x5*(-parseInt(_0x67ca70(0x151))/0x6)+-parseInt(_0x67ca70(0x143))/0x7*(parseInt(_0x67ca70(0x144))/0x8)+-parseInt(_0x67ca70(0x14d))/0x9+parseInt(_0x67ca70(0x150))/0xa;if(_0x3b26f1===_0x1bd61b)break;else _0x21a3ed['push'](_0x21a3ed['shift']());}catch(_0x314a38){_0x21a3ed['push'](_0x21a3ed['shift']());}}}(a193_0x209b,0xbeac5));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x1fe8(_0x41d6d1,_0x5c26fd){_0x41d6d1=_0x41d6d1-0x143;const _0x209b14=a193_0x209b();let _0x1fe8e5=_0x209b14[_0x41d6d1];return _0x1fe8e5;}export const workspaceRemoveDefinition={'service':a193_0x35d15d(0x14c),'command':a193_0x35d15d(0x14e),'description':a193_0x35d15d(0x147),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x35d15d(0x145),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x393af3=>validateAppName(_0x393af3,'workspace\x20remove'),'execute':_0x2ca895=>runAppRemove(_0x2ca895,a193_0x35d15d(0x148))};
1
+ const a201_0x2ed992=a201_0x3b30;(function(_0x19df16,_0x1eabd1){const _0x360e58=a201_0x3b30,_0x6591f=_0x19df16();while(!![]){try{const _0x5a346f=-parseInt(_0x360e58(0x1da))/0x1*(parseInt(_0x360e58(0x1d5))/0x2)+-parseInt(_0x360e58(0x1de))/0x3+-parseInt(_0x360e58(0x1d2))/0x4+parseInt(_0x360e58(0x1db))/0x5*(parseInt(_0x360e58(0x1cf))/0x6)+parseInt(_0x360e58(0x1d3))/0x7*(-parseInt(_0x360e58(0x1d4))/0x8)+-parseInt(_0x360e58(0x1dc))/0x9+parseInt(_0x360e58(0x1dd))/0xa;if(_0x5a346f===_0x1eabd1)break;else _0x6591f['push'](_0x6591f['shift']());}catch(_0x19ed7b){_0x6591f['push'](_0x6591f['shift']());}}}(a201_0x400e,0x9c1db));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a201_0x3b30(_0x3e689e,_0x1db819){_0x3e689e=_0x3e689e-0x1cf;const _0x400e69=a201_0x400e();let _0x3b30f4=_0x400e69[_0x3e689e];return _0x3b30f4;}function a201_0x400e(){const _0x102b5a=['high-risk-write','6NYVkZK','App\x20profile\x20name\x20to\x20remove','workspace','4065872BgdcDd','105LHQvyv','114648owwIMD','2iEAmzz','name','remove','workspace\x20remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','7822CeNLTA','4971155HjVVrX','9850707lvPljI','21626910yXRTaQ','551079YOboAp'];a201_0x400e=function(){return _0x102b5a;};return a201_0x400e();}export const workspaceRemoveDefinition={'service':a201_0x2ed992(0x1d1),'command':a201_0x2ed992(0x1d7),'description':a201_0x2ed992(0x1d9),'risk':a201_0x2ed992(0x1df),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a201_0x2ed992(0x1d6),'description':a201_0x2ed992(0x1d0),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4f2641=>validateAppName(_0x4f2641,a201_0x2ed992(0x1d8)),'execute':_0x35c8be=>runAppRemove(_0x35c8be,'workspace\x20remove')};
@@ -1 +1 @@
1
- const a194_0x5db17b=a194_0x37ab;(function(_0x2b4c2b,_0x390623){const _0x73ecac=a194_0x37ab,_0x40119d=_0x2b4c2b();while(!![]){try{const _0x328014=parseInt(_0x73ecac(0x1d6))/0x1*(parseInt(_0x73ecac(0x1e5))/0x2)+-parseInt(_0x73ecac(0x1f0))/0x3*(-parseInt(_0x73ecac(0x1d5))/0x4)+parseInt(_0x73ecac(0x1ef))/0x5*(parseInt(_0x73ecac(0x1c9))/0x6)+parseInt(_0x73ecac(0x1ea))/0x7+parseInt(_0x73ecac(0x1d8))/0x8*(parseInt(_0x73ecac(0x1e3))/0x9)+parseInt(_0x73ecac(0x1de))/0xa+parseInt(_0x73ecac(0x1e1))/0xb*(-parseInt(_0x73ecac(0x1ed))/0xc);if(_0x328014===_0x390623)break;else _0x40119d['push'](_0x40119d['shift']());}catch(_0x493c65){_0x40119d['push'](_0x40119d['shift']());}}}(a194_0x522b,0x35f2f));function a194_0x522b(){const _0x409b0d=['entries','9rgPsVV','filter','346YdRfgk','join','defaultFormat','inherit','apps','885374aMxElH','Auth\x20cookie','accessKey','2064pydcgx','locale','15cWZlpE','396PlRQdP','Default\x20page\x20size','env','cookie','660798GdRaaA','number','trim','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','keys','apiDir','Access\x20key','riskLevel','app','pageSize','defaultApp','1464uFVrpd','1322wOXfxd','zh-CN','481672nHaDBF','has','toLowerCase','appcode','length','API\x20directory\x20path','2361270ptEFrt','en-US','string','51755hFAJVm'];a194_0x522b=function(){return _0x409b0d;};return a194_0x522b();}function a194_0x37ab(_0x4cd520,_0x244a53){_0x4cd520=_0x4cd520-0x1c9;const _0x522bed=a194_0x522b();let _0x37ab8e=_0x522bed[_0x4cd520];return _0x37ab8e;}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=['cookie',a194_0x5db17b(0x1ec),a194_0x5db17b(0x1ee),a194_0x5db17b(0x1cc),a194_0x5db17b(0x1d1)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a194_0x5db17b(0x1f2),a194_0x5db17b(0x1ee),'format',a194_0x5db17b(0x1f3),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x37e051){const _0x396197=a194_0x5db17b;return[..._0x37e051][_0x396197(0x1e6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xaade22){const _0x5bf3cc=a194_0x5db17b;return TOP_LEVEL_CONFIG_KEYS[_0x5bf3cc(0x1d9)](_0xaade22);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5db17b(0x1f2),'apiDir':a194_0x5db17b(0x1cf),'cookie':a194_0x5db17b(0x1f3),'accessKey':a194_0x5db17b(0x1ec),'defaultFormat':a194_0x5db17b(0x1cc),'pageSize':a194_0x5db17b(0x1d3),'riskLevel':a194_0x5db17b(0x1d1),'locale':a194_0x5db17b(0x1ee)};export function getAppProfileFlagDefs(){const _0x134194=a194_0x5db17b;return[{'name':_0x134194(0x1f2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x134194(0x1e0),'description':_0x134194(0x1dd)},{'name':_0x134194(0x1f3),'type':'string','description':_0x134194(0x1eb),'hidden':!![]},{'name':_0x134194(0x1ec),'type':_0x134194(0x1e0),'description':_0x134194(0x1d0),'hidden':!![]},{'name':_0x134194(0x1e7),'type':_0x134194(0x1e0),'description':_0x134194(0x1cd),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x134194(0x1d3),'type':_0x134194(0x1ca),'description':_0x134194(0x1f1)},{'name':_0x134194(0x1d1),'type':_0x134194(0x1e0),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x134194(0x1ee),'type':_0x134194(0x1e0),'description':'Locale'}];}export function collectAppProfileOverrides(_0x194664){const _0x7c9b84=a194_0x5db17b,_0x4a804b={};for(const [_0x1aad82,_0x2052b4]of Object[_0x7c9b84(0x1e2)](APP_PROFILE_FLAG_KEY_MAP)){const _0x520f27=_0x194664(_0x1aad82);if(!_0x520f27)continue;_0x4a804b[_0x2052b4]=_0x2052b4==='pageSize'?Number(_0x520f27):_0x520f27;}return _0x4a804b;}export function buildAppProfileListFields(_0x473178){const _0x52d05d=a194_0x5db17b;return{'env':_0x473178['env']??null,'apiDir':_0x473178[_0x52d05d(0x1cf)]??null,'hasCookie':!!_0x473178[_0x52d05d(0x1f3)],'hasAccessKey':!!_0x473178['accessKey'],'format':_0x473178[_0x52d05d(0x1cc)]??null,'pageSize':_0x473178['pageSize']??null,'riskLevel':_0x473178[_0x52d05d(0x1d1)]??null,'locale':_0x473178[_0x52d05d(0x1ee)]??null};}export function buildAppDoctorFields(_0x55dd45,_0x861df5){const _0x4d2016=a194_0x5db17b;return{'env':{'value':_0x55dd45[_0x4d2016(0x1f2)]||_0x861df5[_0x4d2016(0x1f2)],'source':_0x55dd45[_0x4d2016(0x1f2)]?'app':_0x4d2016(0x1e8)},'apiDir':{'value':_0x55dd45[_0x4d2016(0x1cf)]||_0x861df5[_0x4d2016(0x1cf)],'source':_0x55dd45[_0x4d2016(0x1cf)]?'app':_0x4d2016(0x1e8)},'cookie':{'value':_0x55dd45['cookie']||_0x861df5[_0x4d2016(0x1f3)],'source':_0x55dd45[_0x4d2016(0x1f3)]?_0x4d2016(0x1d2):_0x4d2016(0x1e8)},'accessKey':{'value':_0x55dd45[_0x4d2016(0x1ec)]||_0x861df5[_0x4d2016(0x1ec)],'source':_0x55dd45['accessKey']?_0x4d2016(0x1d2):_0x4d2016(0x1e8)}};}export function buildCanonicalAppConfig(_0x43bbd2,_0x449131){const _0x450e61=a194_0x5db17b,_0x36316c=_0x43bbd2['map'](_0x5d3b19=>String(_0x5d3b19||'')[_0x450e61(0x1cb)]())[_0x450e61(0x1e4)](Boolean);if(_0x36316c['length']===0x0)return{};const _0x21e3a6={};for(const _0x3ba578 of _0x36316c){_0x21e3a6[_0x3ba578]=_0x449131?{'appcode':_0x3ba578,'env':_0x449131}:{'appcode':_0x3ba578};}return{'apps':_0x21e3a6,'defaultApp':_0x36316c[0x0]};}export function buildCanonicalProjectConfig(_0x39f85f,_0x58b975){const _0x55d4e1=a194_0x5db17b,{appCodes:appCodes=[],env:_0xf7b8e7,metadata:_0xa9b2a2}=_0x58b975,_0x340f20={..._0x39f85f,..._0xa9b2a2||{}};delete _0x340f20[_0x55d4e1(0x1db)],delete _0x340f20[_0x55d4e1(0x1d2)];if(_0xf7b8e7)_0x340f20[_0x55d4e1(0x1f2)]=_0xf7b8e7;else!_0x340f20['env']&&(_0x340f20[_0x55d4e1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x55d4e1(0x1f2)]);const _0x1f9f93=buildCanonicalAppConfig(appCodes,_0x340f20[_0x55d4e1(0x1f2)]);return Object[_0x55d4e1(0x1ce)](_0x1f9f93)[_0x55d4e1(0x1dc)]>0x0&&(_0x340f20[_0x55d4e1(0x1e9)]=_0x1f9f93['apps'],_0x340f20[_0x55d4e1(0x1d4)]=_0x1f9f93[_0x55d4e1(0x1d4)]),_0x340f20;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a194_0x5db17b(0x1d7),'en':'en-US','en-us':a194_0x5db17b(0x1df),'en_us':a194_0x5db17b(0x1df)};export function normalizeLocale(_0x13bf9f){const _0x4dedac=a194_0x5db17b;if(!_0x13bf9f)return null;return LOCALE_MAP[_0x13bf9f[_0x4dedac(0x1da)]()]??null;}
1
+ const a202_0x301fd0=a202_0x3803;(function(_0x420b60,_0x2ca28f){const _0x3272f4=a202_0x3803,_0x3a15e0=_0x420b60();while(!![]){try{const _0x34ff90=parseInt(_0x3272f4(0xdd))/0x1*(parseInt(_0x3272f4(0xd0))/0x2)+parseInt(_0x3272f4(0xe4))/0x3*(-parseInt(_0x3272f4(0xcc))/0x4)+-parseInt(_0x3272f4(0xe5))/0x5+parseInt(_0x3272f4(0xe0))/0x6*(parseInt(_0x3272f4(0xd3))/0x7)+parseInt(_0x3272f4(0xdf))/0x8*(-parseInt(_0x3272f4(0xd2))/0x9)+-parseInt(_0x3272f4(0xc9))/0xa+parseInt(_0x3272f4(0xc3))/0xb*(parseInt(_0x3272f4(0xd5))/0xc);if(_0x34ff90===_0x2ca28f)break;else _0x3a15e0['push'](_0x3a15e0['shift']());}catch(_0x3328c3){_0x3a15e0['push'](_0x3a15e0['shift']());}}}(a202_0x1465,0x8d8ff));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=[a202_0x301fd0(0xee),a202_0x301fd0(0xc8),a202_0x301fd0(0xe6),a202_0x301fd0(0xda),'riskLevel'];function a202_0x3803(_0x25da88,_0x923f6f){_0x25da88=_0x25da88-0xc3;const _0x1465b4=a202_0x1465();let _0x3803b2=_0x1465b4[_0x25da88];return _0x3803b2;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a202_0x301fd0(0xe8),a202_0x301fd0(0xdb),a202_0x301fd0(0xe6),'format',a202_0x301fd0(0xee),a202_0x301fd0(0xc8),'apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x3ba017){const _0x481118=a202_0x301fd0;return[..._0x3ba017][_0x481118(0xcf)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x34daf4){const _0x4100c8=a202_0x301fd0;return TOP_LEVEL_CONFIG_KEYS[_0x4100c8(0xc5)](_0x34daf4);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4dcb40=a202_0x301fd0;return _0x4dcb40(0xcb)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':'cookie','accessKey':a202_0x301fd0(0xc8),'defaultFormat':a202_0x301fd0(0xda),'pageSize':a202_0x301fd0(0xd8),'riskLevel':a202_0x301fd0(0xd4),'locale':a202_0x301fd0(0xe6)};export function getAppProfileFlagDefs(){const _0x151eaa=a202_0x301fd0;return[{'name':_0x151eaa(0xdb),'type':_0x151eaa(0xea),'description':_0x151eaa(0xd6),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x151eaa(0xe3),'type':_0x151eaa(0xea),'description':_0x151eaa(0xca)},{'name':'cookie','type':_0x151eaa(0xea),'description':_0x151eaa(0xeb),'hidden':!![]},{'name':_0x151eaa(0xc8),'type':_0x151eaa(0xea),'description':_0x151eaa(0xed),'hidden':!![]},{'name':'defaultFormat','type':_0x151eaa(0xea),'description':_0x151eaa(0xe1),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x151eaa(0xc4),'description':_0x151eaa(0xe2)},{'name':_0x151eaa(0xd4),'type':_0x151eaa(0xea),'description':_0x151eaa(0xec),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x151eaa(0xe6),'type':'string','description':_0x151eaa(0xc6)}];}export function collectAppProfileOverrides(_0x13c626){const _0x1eda8e=a202_0x301fd0,_0x545297={};for(const [_0x4747b4,_0x559e74]of Object[_0x1eda8e(0xdc)](APP_PROFILE_FLAG_KEY_MAP)){const _0xef22e9=_0x13c626(_0x4747b4);if(!_0xef22e9)continue;_0x545297[_0x559e74]=_0x559e74===_0x1eda8e(0xd8)?Number(_0xef22e9):_0xef22e9;}return _0x545297;}export function buildAppProfileListFields(_0x5c05a0){const _0x83f6bd=a202_0x301fd0;return{'env':_0x5c05a0[_0x83f6bd(0xdb)]??null,'apiDir':_0x5c05a0[_0x83f6bd(0xe3)]??null,'hasCookie':!!_0x5c05a0[_0x83f6bd(0xee)],'hasAccessKey':!!_0x5c05a0[_0x83f6bd(0xc8)],'format':_0x5c05a0['format']??null,'pageSize':_0x5c05a0['pageSize']??null,'riskLevel':_0x5c05a0[_0x83f6bd(0xd4)]??null,'locale':_0x5c05a0[_0x83f6bd(0xe6)]??null};}export function buildAppDoctorFields(_0x4a9ba6,_0x345b42){const _0x287919=a202_0x301fd0;return{'env':{'value':_0x4a9ba6[_0x287919(0xdb)]||_0x345b42[_0x287919(0xdb)],'source':_0x4a9ba6['env']?_0x287919(0xe7):_0x287919(0xde)},'apiDir':{'value':_0x4a9ba6[_0x287919(0xe3)]||_0x345b42[_0x287919(0xe3)],'source':_0x4a9ba6['apiDir']?'app':_0x287919(0xde)},'cookie':{'value':_0x4a9ba6[_0x287919(0xee)]||_0x345b42['cookie'],'source':_0x4a9ba6[_0x287919(0xee)]?_0x287919(0xe7):_0x287919(0xde)},'accessKey':{'value':_0x4a9ba6[_0x287919(0xc8)]||_0x345b42[_0x287919(0xc8)],'source':_0x4a9ba6['accessKey']?'app':_0x287919(0xde)}};}export function buildCanonicalAppConfig(_0x227ead,_0x12a6d4){const _0x1c8bab=a202_0x301fd0,_0xd84654=_0x227ead[_0x1c8bab(0xd7)](_0x46f9d9=>String(_0x46f9d9||'')['trim']())['filter'](Boolean);if(_0xd84654['length']===0x0)return{};const _0x5196e6={};for(const _0x59344a of _0xd84654){_0x5196e6[_0x59344a]=_0x12a6d4?{'appcode':_0x59344a,'env':_0x12a6d4}:{'appcode':_0x59344a};}return{'apps':_0x5196e6,'defaultApp':_0xd84654[0x0]};}export function buildCanonicalProjectConfig(_0x114bd7,_0x4aab6c){const _0x3d1aae=a202_0x301fd0,{appCodes:appCodes=[],env:_0x1254a1,metadata:_0x2e1204}=_0x4aab6c,_0x5bfa14={..._0x114bd7,..._0x2e1204||{}};delete _0x5bfa14[_0x3d1aae(0xe8)],delete _0x5bfa14[_0x3d1aae(0xe7)];if(_0x1254a1)_0x5bfa14[_0x3d1aae(0xdb)]=_0x1254a1;else!_0x5bfa14[_0x3d1aae(0xdb)]&&(_0x5bfa14[_0x3d1aae(0xdb)]=DEFAULT_CONFIG_VALUES[_0x3d1aae(0xdb)]);const _0x379cef=buildCanonicalAppConfig(appCodes,_0x5bfa14[_0x3d1aae(0xdb)]);return Object[_0x3d1aae(0xc7)](_0x379cef)[_0x3d1aae(0xcd)]>0x0&&(_0x5bfa14[_0x3d1aae(0xd1)]=_0x379cef[_0x3d1aae(0xd1)],_0x5bfa14[_0x3d1aae(0xe9)]=_0x379cef[_0x3d1aae(0xe9)]),_0x5bfa14;}function a202_0x1465(){const _0x5276c4=['251948AxWLaF','length','zh-CN','join','6042gXONpA','apps','75942aFUSyP','200312lQrtMu','riskLevel','804kpjmev','Target\x20environment','map','pageSize','en-US','format','env','entries','89IrvITC','inherit','416MGjtqe','12KObVkc','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Default\x20page\x20size','apiDir','3FQCTjs','5505675bQHavB','locale','app','appcode','defaultApp','string','Auth\x20cookie','Risk\x20level','Access\x20key','cookie','358204WWHssh','number','has','Locale','keys','accessKey','3251520gOzcyL','API\x20directory\x20path','Config\x20key\x20('];a202_0x1465=function(){return _0x5276c4;};return a202_0x1465();}const LOCALE_MAP={'zh':a202_0x301fd0(0xce),'zh-cn':a202_0x301fd0(0xce),'zh_cn':a202_0x301fd0(0xce),'en':a202_0x301fd0(0xd9),'en-us':a202_0x301fd0(0xd9),'en_us':a202_0x301fd0(0xd9)};export function normalizeLocale(_0x1f3371){if(!_0x1f3371)return null;return LOCALE_MAP[_0x1f3371['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a195_0x1af3(_0x5b8288,_0x1c9d38){_0x5b8288=_0x5b8288-0x1cd;const _0x2cde33=a195_0x2cde();let _0x1af3d0=_0x2cde33[_0x5b8288];return _0x1af3d0;}const a195_0x57ffc5=a195_0x1af3;(function(_0x4e177c,_0x3bf3a4){const _0x194e3e=a195_0x1af3,_0x28a4ca=_0x4e177c();while(!![]){try{const _0x2d3315=-parseInt(_0x194e3e(0x1d2))/0x1+-parseInt(_0x194e3e(0x1d6))/0x2+parseInt(_0x194e3e(0x1cf))/0x3*(-parseInt(_0x194e3e(0x1d3))/0x4)+parseInt(_0x194e3e(0x1d0))/0x5*(parseInt(_0x194e3e(0x1d1))/0x6)+parseInt(_0x194e3e(0x1d5))/0x7+parseInt(_0x194e3e(0x1d4))/0x8+parseInt(_0x194e3e(0x1cd))/0x9;if(_0x2d3315===_0x3bf3a4)break;else _0x28a4ca['push'](_0x28a4ca['shift']());}catch(_0x4b43b4){_0x28a4ca['push'](_0x28a4ca['shift']());}}}(a195_0x2cde,0x57c61));function a195_0x2cde(){const _0x56e421=['1184192xAHMvZ','4944544OGNuCl','834127UcOnfv','57554NfSZKY','488781LVzCZy','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3MmBCuC','25yOionI','125286ZBIBgm','211597iAXEgI'];a195_0x2cde=function(){return _0x56e421;};return a195_0x2cde();}export const CLI_VERSION_POLICY_URL=a195_0x57ffc5(0x1ce);
1
+ (function(_0x2b4c3,_0x3312e0){const _0xc631bb=a203_0x3bf6,_0x56993b=_0x2b4c3();while(!![]){try{const _0x2b6e77=parseInt(_0xc631bb(0x199))/0x1+-parseInt(_0xc631bb(0x19a))/0x2*(parseInt(_0xc631bb(0x198))/0x3)+-parseInt(_0xc631bb(0x196))/0x4*(-parseInt(_0xc631bb(0x193))/0x5)+parseInt(_0xc631bb(0x197))/0x6+parseInt(_0xc631bb(0x194))/0x7+parseInt(_0xc631bb(0x19b))/0x8*(-parseInt(_0xc631bb(0x195))/0x9)+parseInt(_0xc631bb(0x192))/0xa*(parseInt(_0xc631bb(0x191))/0xb);if(_0x2b6e77===_0x3312e0)break;else _0x56993b['push'](_0x56993b['shift']());}catch(_0x27bd32){_0x56993b['push'](_0x56993b['shift']());}}}(a203_0x5380,0x1bfe1));function a203_0x3bf6(_0x2c44aa,_0x6a6e8a){_0x2c44aa=_0x2c44aa-0x191;const _0x5380ed=a203_0x5380();let _0x3bf68d=_0x5380ed[_0x2c44aa];return _0x3bf68d;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';function a203_0x5380(){const _0xb7e0a0=['564cvtYlJ','16bPBnka','79706oyTRss','90RfHmQt','1715RXeTiE','89621yKTxsx','1031553EijBBg','532wwZjsR','1209894fOUCkz','1236abiMcV','134790jCyDwy'];a203_0x5380=function(){return _0xb7e0a0;};return a203_0x5380();}
@@ -1 +1 @@
1
- const a196_0xf951fb=a196_0x3af9;(function(_0x26bf8d,_0x52d35e){const _0x2aad5e=a196_0x3af9,_0x102dd3=_0x26bf8d();while(!![]){try{const _0x565c72=-parseInt(_0x2aad5e(0x125))/0x1+-parseInt(_0x2aad5e(0xfd))/0x2+parseInt(_0x2aad5e(0xe3))/0x3+-parseInt(_0x2aad5e(0xdb))/0x4*(parseInt(_0x2aad5e(0xf0))/0x5)+parseInt(_0x2aad5e(0xc8))/0x6+-parseInt(_0x2aad5e(0x101))/0x7+-parseInt(_0x2aad5e(0x10a))/0x8*(-parseInt(_0x2aad5e(0x114))/0x9);if(_0x565c72===_0x52d35e)break;else _0x102dd3['push'](_0x102dd3['shift']());}catch(_0x594628){_0x102dd3['push'](_0x102dd3['shift']());}}}(a196_0x5573,0x64faf));function a196_0x3af9(_0x372d9c,_0x2cb1e7){_0x372d9c=_0x372d9c-0xc8;const _0x557354=a196_0x5573();let _0x3af92a=_0x557354[_0x372d9c];return _0x3af92a;}export const CLI_BIN_NAME=a196_0xf951fb(0x115);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a196_0xf951fb(0xfb);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0xf951fb(0x12d),'type':a196_0xf951fb(0xf9),'description':'Override\x20appcode','hint':a196_0xf951fb(0xd7)},{'name':a196_0xf951fb(0x118),'meowKey':'app','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcd),'hint':a196_0xf951fb(0xf7)},{'name':a196_0xf951fb(0x117),'meowKey':'env','type':a196_0xf951fb(0xf9),'description':'Environment','hint':a196_0xf951fb(0x123)},{'name':'format','meowKey':a196_0xf951fb(0x105),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a196_0xf951fb(0xcf),'hint':a196_0xf951fb(0x119)},{'name':a196_0xf951fb(0xd0),'meowKey':'dryRun','type':a196_0xf951fb(0x139),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a196_0xf951fb(0x128),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xd4)},{'name':a196_0xf951fb(0xcb),'meowKey':'nonInteractive','type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x10f)},{'name':a196_0xf951fb(0x129),'meowKey':a196_0xf951fb(0x129),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xdc)},{'name':a196_0xf951fb(0x100),'meowKey':a196_0xf951fb(0x100),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x13e)},{'name':'ci','meowKey':'ci','type':a196_0xf951fb(0x139),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a196_0xf951fb(0xf1),'meowKey':'help','type':a196_0xf951fb(0x139),'description':'Show\x20help'},{'name':a196_0xf951fb(0x134),'meowKey':'name','type':a196_0xf951fb(0xf9),'description':'Name','hidden':!![]},{'name':a196_0xf951fb(0xc9),'meowKey':a196_0xf951fb(0xc9),'type':'string','description':a196_0xf951fb(0xf2),'hidden':!![]},{'name':a196_0xf951fb(0x13c),'meowKey':a196_0xf951fb(0x13c),'type':a196_0xf951fb(0x139),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a196_0xf951fb(0x104),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x12c),'hidden':!![]},{'name':'output','meowKey':a196_0xf951fb(0xe7),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe1),'hidden':!![]},{'name':a196_0xf951fb(0x121),'meowKey':a196_0xf951fb(0x121),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xff),'hidden':!![]},{'name':a196_0xf951fb(0xda),'meowKey':'datasetcode','type':'string','description':a196_0xf951fb(0xf5),'hidden':!![]},{'name':a196_0xf951fb(0xdd),'meowKey':a196_0xf951fb(0xdd),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x138),'hidden':!![]},{'name':a196_0xf951fb(0xd1),'meowKey':a196_0xf951fb(0x11d),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x108),'hidden':!![]},{'name':a196_0xf951fb(0x106),'meowKey':'type','type':a196_0xf951fb(0xf9),'description':'Type\x20filter','hidden':!![]},{'name':a196_0xf951fb(0xe8),'meowKey':a196_0xf951fb(0xe8),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x136),'hidden':!![]},{'name':a196_0xf951fb(0x111),'meowKey':a196_0xf951fb(0x111),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xd2),'hidden':!![]},{'name':a196_0xf951fb(0xe6),'meowKey':'sqlName','type':a196_0xf951fb(0xf9),'description':'SQL\x20name','hidden':!![]},{'name':a196_0xf951fb(0x13d),'meowKey':a196_0xf951fb(0x13d),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x110),'hidden':!![]},{'name':a196_0xf951fb(0xed),'meowKey':'dbId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0xde),'meowKey':'dbid','type':'string','description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0x135),'meowKey':'description','type':'string','description':a196_0xf951fb(0x124),'hidden':!![]},{'name':a196_0xf951fb(0xf6),'meowKey':'descriptionFile','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10b),'hidden':!![]},{'name':a196_0xf951fb(0xd6),'meowKey':'page','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10c),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a196_0xf951fb(0xf9),'description':'Page\x20size','hidden':!![]},{'name':a196_0xf951fb(0x10d),'meowKey':a196_0xf951fb(0x10d),'type':'string','description':a196_0xf951fb(0xf8),'hidden':!![]},{'name':a196_0xf951fb(0xe0),'meowKey':'code','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x113),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x131),'hidden':!![]},{'name':a196_0xf951fb(0x12e),'meowKey':a196_0xf951fb(0x12e),'type':a196_0xf951fb(0xf9),'description':'Schemas','hidden':!![]},{'name':a196_0xf951fb(0xd3),'meowKey':'operation','type':'string','description':a196_0xf951fb(0x12f),'hidden':!![]},{'name':a196_0xf951fb(0xd9),'meowKey':a196_0xf951fb(0xd9),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xfe),'hidden':!![]},{'name':'skip-imports','meowKey':a196_0xf951fb(0xec),'type':a196_0xf951fb(0x139),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0xf951fb(0x102),'meowKey':a196_0xf951fb(0x102),'type':a196_0xf951fb(0xf9),'description':'Config\x20key','hidden':!![]},{'name':a196_0xf951fb(0xd8),'meowKey':'value','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcc),'hidden':!![]},{'name':a196_0xf951fb(0xdf),'meowKey':a196_0xf951fb(0xdf),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x109),'hidden':!![]},{'name':a196_0xf951fb(0x13b),'meowKey':a196_0xf951fb(0x13b),'type':a196_0xf951fb(0x139),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a196_0xf951fb(0x11e),'meowKey':a196_0xf951fb(0xce),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11c),'hidden':!![]},{'name':'reveal','meowKey':a196_0xf951fb(0x12a),'type':a196_0xf951fb(0x139),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a196_0xf951fb(0xd5),'meowKey':a196_0xf951fb(0xd5),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xfa),'hidden':!![]},{'name':a196_0xf951fb(0xe4),'meowKey':a196_0xf951fb(0xe4),'type':a196_0xf951fb(0x139),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0xf951fb(0x107),'meowKey':'remote','type':'boolean','description':a196_0xf951fb(0x120),'hidden':!![]},{'name':a196_0xf951fb(0x10e),'meowKey':a196_0xf951fb(0x10e),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xe5),'hidden':!![]},{'name':a196_0xf951fb(0xee),'meowKey':a196_0xf951fb(0x13a),'type':'string','description':a196_0xf951fb(0xf4),'hidden':!![]},{'name':a196_0xf951fb(0x126),'meowKey':a196_0xf951fb(0x126),'type':a196_0xf951fb(0xf9),'description':'Menu\x20label','hidden':!![]},{'name':a196_0xf951fb(0x116),'meowKey':a196_0xf951fb(0xea),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11a),'hidden':!![]},{'name':'sort','meowKey':a196_0xf951fb(0x132),'type':a196_0xf951fb(0xf9),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a196_0xf951fb(0x133),'meowKey':'expectParentId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xf3),'hidden':!![]},{'name':a196_0xf951fb(0x122),'meowKey':'expectPath','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xef),'hidden':!![]},{'name':'expected-children-count','meowKey':a196_0xf951fb(0x11f),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x13f),'hidden':!![]},{'name':a196_0xf951fb(0x112),'meowKey':a196_0xf951fb(0x130),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe2),'hidden':!![]},{'name':'task-id','meowKey':a196_0xf951fb(0x11b),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xeb),'hidden':!![]},{'name':a196_0xf951fb(0x137),'meowKey':a196_0xf951fb(0x103),'type':a196_0xf951fb(0xf9),'description':'Operation\x20type','hidden':!![]},{'name':a196_0xf951fb(0xfc),'meowKey':'functionNode','type':'string','description':a196_0xf951fb(0xe9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0xf951fb(0x12d),a196_0xf951fb(0x118),a196_0xf951fb(0x117),a196_0xf951fb(0x105),'jq','dry-run','yes',a196_0xf951fb(0xcb),'ci']);export function buildMeowFlags(){const _0x32f589=a196_0xf951fb;return Object[_0x32f589(0x12b)](GLOBAL_FLAGS[_0x32f589(0xca)](_0x38bc41=>[_0x38bc41['meowKey'],{'type':_0x38bc41[_0x32f589(0x106)]}]));}function a196_0x5573(){const _0x8da5ac=['Use\x20global\x20config\x20scope','all','dbid','tags','code','Output\x20path','Comma-separated\x20menu\x20IDs','809091CnEGjP','confirm','Verbose\x20output','sql-name','output','file','Function\x20node','parentId','Asynchronous\x20task\x20ID','skipImports','db-id','expected-count','Expected\x20current\x20menu\x20path','690155jaJGXM','help','Title','Expected\x20current\x20parent\x20menu\x20id','Expected\x20affected\x20count','Dataset\x20code','description-file','<name>','Keyword\x20filter','string','Force\x20overwrite','@lovrabet/rabetbase-cli','function-node','1623650DSHDbk','Target\x20path','JSON\x20params','project','5535803bUAGWG','key','operationType','watch','format','type','remote','Record\x20ID','Tags','200yRnqzs','Description\x20file','Page\x20number','keyword','verbose','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20name','sqlcode','menu-ids','Code\x20filter','645876BUIeoT','rabetbase','parent-id','env','app','<expr>','Parent\x20menu\x20id','taskId','Read\x20value\x20from\x20environment\x20variable','enableBffSave','from-env','expectedChildrenCount','Use\x20remote','params','expect-path','production\x20|\x20daily','Description','409960VisVBT','label','DB\x20ID','yes','global','reveal','fromEntries','Watch\x20mode','appcode','schemas','Operation\x20type','menuIds','SQL\x20string','sort','expect-parent-id','name','description','File\x20path','operation-type','Apply\x20to\x20all','boolean','expectedCount','stdin','clear','sqlname','Use\x20project\x20config\x20scope','Expected\x20current\x20child\x20count','3002778wAJCqa','title','map','non-interactive','Config\x20value','Select\x20app\x20profile\x20by\x20name','fromEnv','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','dry-run','enable-bff-save','SQL\x20code','operation','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','page','<code>','value','target','datasetcode','4PymzfP'];a196_0x5573=function(){return _0x8da5ac;};return a196_0x5573();}
1
+ function a204_0x4f15(){const _0x2f2e51=['name','string','sqlName','target','Record\x20ID','Function\x20node','dryRun','Show\x20help','taskId','schemas','keyword','sql','dry-run','528077tTJFnc','7BMxYjv','yes','expectParentId','Tags','description-file','json\x20|\x20pretty\x20|\x20compress','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','remote','Override\x20appcode','41795qJnzdN','parentId','Force\x20overwrite','format','datasetcode','Menu\x20label','Read\x20value\x20from\x20environment\x20variable','global','Config\x20value','output','expectPath','4189112cIZWva','Read\x20value\x20from\x20stdin','boolean','File\x20path','app','Use\x20global\x20config\x20scope','env','menuIds','fromEnv','rabetbase','enable-bff-save','Keyword\x20filter','Watch\x20mode','Operation\x20type','dbid','Config\x20key','20TiiyBZ','Title','meowKey','type','skipImports','Menu\x20sort\x20value','fromEntries','stdin','watch','sort','functionNode','<expr>','non-interactive','sqlname','expect-parent-id','462itYBFY','dbId','Parent\x20menu\x20id','Description','Select\x20app\x20profile\x20by\x20name','skip-imports','help','Comma-separated\x20menu\x20IDs','production\x20|\x20daily','146919TiXsle','params','all','label','force','Skip\x20confirmation\x20for\x20high-risk\x20writes','menu-ids','JSON\x20params','expected-children-count','5587374uLatMa','clear','Target\x20path','<name>','92sNScCy','Environment','operation','parent-id','Skip\x20import\x20generation','Expected\x20current\x20child\x20count','@lovrabet/rabetbase-cli','Verbose\x20output','tags','DB\x20ID','expect-path','file','Rabetbase\x20CLI','reveal','Enable\x20BFF\x20save','from-env','task-id','Description\x20file','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','4894983FbAXKM','Expected\x20current\x20menu\x20path','8492ghuTGd','pagesize','key','Page\x20number','Clear','map','title','sql-name','10FiIKep','code','Output\x20format','Confirm\x20destructive\x20action','sqlcode','SQL\x20name','132ZwCpeZ','Apply\x20to\x20all','function-node','Expected\x20affected\x20count','description','Reveal\x20sensitive\x20value','Page\x20size'];a204_0x4f15=function(){return _0x2f2e51;};return a204_0x4f15();}function a204_0x3442(_0x32e969,_0x5aa8f0){_0x32e969=_0x32e969-0x119;const _0x4f1514=a204_0x4f15();let _0x344244=_0x4f1514[_0x32e969];return _0x344244;}const a204_0x96d80b=a204_0x3442;(function(_0x138991,_0x3500f9){const _0x2e318c=a204_0x3442,_0x3cbd90=_0x138991();while(!![]){try{const _0x3d2d5c=-parseInt(_0x2e318c(0x158))/0x1*(-parseInt(_0x2e318c(0x142))/0x2)+parseInt(_0x2e318c(0x135))/0x3*(parseInt(_0x2e318c(0x11d))/0x4)+-parseInt(_0x2e318c(0x184))/0x5*(-parseInt(_0x2e318c(0x12c))/0x6)+-parseInt(_0x2e318c(0x17b))/0x7*(parseInt(_0x2e318c(0x18f))/0x8)+parseInt(_0x2e318c(0x156))/0x9*(parseInt(_0x2e318c(0x160))/0xa)+parseInt(_0x2e318c(0x17a))/0xb*(-parseInt(_0x2e318c(0x166))/0xc)+-parseInt(_0x2e318c(0x13e))/0xd;if(_0x3d2d5c===_0x3500f9)break;else _0x3cbd90['push'](_0x3cbd90['shift']());}catch(_0x54e870){_0x3cbd90['push'](_0x3cbd90['shift']());}}}(a204_0x4f15,0x53609));export const CLI_BIN_NAME=a204_0x96d80b(0x198);export const CLI_DISPLAY_NAME=a204_0x96d80b(0x14e);export const NPM_PACKAGE_NAME=a204_0x96d80b(0x148);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':'string','description':a204_0x96d80b(0x183),'hint':'<code>'},{'name':'app','meowKey':a204_0x96d80b(0x193),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x130),'hint':a204_0x96d80b(0x141)},{'name':a204_0x96d80b(0x195),'meowKey':'env','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x143),'hint':a204_0x96d80b(0x134)},{'name':a204_0x96d80b(0x187),'meowKey':a204_0x96d80b(0x187),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x162),'hint':a204_0x96d80b(0x180)},{'name':'jq','meowKey':'jq','type':'string','description':a204_0x96d80b(0x181),'hint':a204_0x96d80b(0x128)},{'name':a204_0x96d80b(0x179),'meowKey':a204_0x96d80b(0x173),'type':a204_0x96d80b(0x191),'description':'Preview\x20operation\x20without\x20executing'},{'name':a204_0x96d80b(0x17c),'meowKey':a204_0x96d80b(0x17c),'type':'boolean','description':a204_0x96d80b(0x13a)},{'name':a204_0x96d80b(0x129),'meowKey':'nonInteractive','type':'boolean','description':a204_0x96d80b(0x155)},{'name':'global','meowKey':a204_0x96d80b(0x18b),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x194)},{'name':'project','meowKey':'project','type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a204_0x96d80b(0x154),'hidden':!![]},{'name':a204_0x96d80b(0x132),'meowKey':a204_0x96d80b(0x132),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x174)},{'name':a204_0x96d80b(0x16d),'meowKey':'name','type':a204_0x96d80b(0x16e),'description':'Name','hidden':!![]},{'name':a204_0x96d80b(0x15e),'meowKey':'title','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x11e),'hidden':!![]},{'name':a204_0x96d80b(0x13f),'meowKey':a204_0x96d80b(0x13f),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x15c),'hidden':!![]},{'name':'watch','meowKey':a204_0x96d80b(0x125),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x119),'hidden':!![]},{'name':a204_0x96d80b(0x18d),'meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':'params','meowKey':a204_0x96d80b(0x136),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x13c),'hidden':!![]},{'name':a204_0x96d80b(0x188),'meowKey':'datasetcode','type':a204_0x96d80b(0x16e),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a204_0x96d80b(0x137),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x167),'hidden':!![]},{'name':a204_0x96d80b(0x199),'meowKey':'enableBffSave','type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x150),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a204_0x96d80b(0x171),'hidden':!![]},{'name':a204_0x96d80b(0x120),'meowKey':a204_0x96d80b(0x120),'type':a204_0x96d80b(0x16e),'description':'Type\x20filter','hidden':!![]},{'name':a204_0x96d80b(0x14d),'meowKey':a204_0x96d80b(0x14d),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x192),'hidden':!![]},{'name':a204_0x96d80b(0x164),'meowKey':'sqlcode','type':a204_0x96d80b(0x16e),'description':'SQL\x20code','hidden':!![]},{'name':a204_0x96d80b(0x15f),'meowKey':a204_0x96d80b(0x16f),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x165),'hidden':!![]},{'name':a204_0x96d80b(0x12a),'meowKey':a204_0x96d80b(0x12a),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x165),'hidden':!![]},{'name':'db-id','meowKey':a204_0x96d80b(0x12d),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x14b),'hidden':!![]},{'name':a204_0x96d80b(0x11b),'meowKey':a204_0x96d80b(0x11b),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x14b),'hidden':!![]},{'name':a204_0x96d80b(0x16a),'meowKey':'description','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x12f),'hidden':!![]},{'name':a204_0x96d80b(0x17f),'meowKey':'descriptionFile','type':'string','description':a204_0x96d80b(0x153),'hidden':!![]},{'name':'page','meowKey':'page','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x15b),'hidden':!![]},{'name':a204_0x96d80b(0x159),'meowKey':a204_0x96d80b(0x159),'type':'string','description':a204_0x96d80b(0x16c),'hidden':!![]},{'name':a204_0x96d80b(0x177),'meowKey':a204_0x96d80b(0x177),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x19a),'hidden':!![]},{'name':a204_0x96d80b(0x161),'meowKey':a204_0x96d80b(0x161),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':a204_0x96d80b(0x178),'meowKey':a204_0x96d80b(0x178),'type':a204_0x96d80b(0x16e),'description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a204_0x96d80b(0x176),'type':a204_0x96d80b(0x16e),'description':'Schemas','hidden':!![]},{'name':a204_0x96d80b(0x144),'meowKey':a204_0x96d80b(0x144),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x11a),'hidden':!![]},{'name':a204_0x96d80b(0x170),'meowKey':a204_0x96d80b(0x170),'type':'string','description':a204_0x96d80b(0x140),'hidden':!![]},{'name':a204_0x96d80b(0x131),'meowKey':a204_0x96d80b(0x121),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x146),'hidden':!![]},{'name':a204_0x96d80b(0x15a),'meowKey':'key','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x11c),'hidden':!![]},{'name':'value','meowKey':'value','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x18c),'hidden':!![]},{'name':a204_0x96d80b(0x14a),'meowKey':a204_0x96d80b(0x14a),'type':'string','description':a204_0x96d80b(0x17e),'hidden':!![]},{'name':'stdin','meowKey':a204_0x96d80b(0x124),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x190),'hidden':!![]},{'name':a204_0x96d80b(0x151),'meowKey':a204_0x96d80b(0x197),'type':'string','description':a204_0x96d80b(0x18a),'hidden':!![]},{'name':a204_0x96d80b(0x14f),'meowKey':a204_0x96d80b(0x14f),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x16b),'hidden':!![]},{'name':a204_0x96d80b(0x139),'meowKey':a204_0x96d80b(0x139),'type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x186),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a204_0x96d80b(0x191),'description':a204_0x96d80b(0x163),'hidden':!![]},{'name':'remote','meowKey':a204_0x96d80b(0x182),'type':a204_0x96d80b(0x191),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':'verbose','type':'boolean','description':a204_0x96d80b(0x149),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x169),'hidden':!![]},{'name':'label','meowKey':a204_0x96d80b(0x138),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x189),'hidden':!![]},{'name':a204_0x96d80b(0x145),'meowKey':a204_0x96d80b(0x185),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x12e),'hidden':!![]},{'name':a204_0x96d80b(0x126),'meowKey':'sort','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x122),'hidden':!![]},{'name':a204_0x96d80b(0x12b),'meowKey':a204_0x96d80b(0x17d),'type':a204_0x96d80b(0x16e),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a204_0x96d80b(0x14c),'meowKey':a204_0x96d80b(0x18e),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x157),'hidden':!![]},{'name':a204_0x96d80b(0x13d),'meowKey':'expectedChildrenCount','type':'string','description':a204_0x96d80b(0x147),'hidden':!![]},{'name':a204_0x96d80b(0x13b),'meowKey':a204_0x96d80b(0x196),'type':'string','description':a204_0x96d80b(0x133),'hidden':!![]},{'name':a204_0x96d80b(0x152),'meowKey':a204_0x96d80b(0x175),'type':a204_0x96d80b(0x16e),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x11a),'hidden':!![]},{'name':a204_0x96d80b(0x168),'meowKey':a204_0x96d80b(0x127),'type':a204_0x96d80b(0x16e),'description':a204_0x96d80b(0x172),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a204_0x96d80b(0x195),'format','jq',a204_0x96d80b(0x179),'yes',a204_0x96d80b(0x129),'ci']);export function buildMeowFlags(){const _0x3fe56d=a204_0x96d80b;return Object[_0x3fe56d(0x123)](GLOBAL_FLAGS[_0x3fe56d(0x15d)](_0x1dc2fe=>[_0x1dc2fe[_0x3fe56d(0x11f)],{'type':_0x1dc2fe[_0x3fe56d(0x120)]}]));}
@@ -1 +1 @@
1
- function a197_0x250a(_0x24df64,_0x2579a6){_0x24df64=_0x24df64-0xfb;const _0x262d26=a197_0x262d();let _0x250adc=_0x262d26[_0x24df64];return _0x250adc;}const a197_0x167446=a197_0x250a;function a197_0x262d(){const _0x1163a8=['3EeFsMu','5829936EdyjcY','high-risk-write','3563034xiFqni','5615015sqMLUJ','production','5XvLKsi','123496FJByvy','137196FBivWV','en-US','compress','21677859ZkKobX','993798HnqPhF'];a197_0x262d=function(){return _0x1163a8;};return a197_0x262d();}(function(_0x9ab36c,_0x306c30){const _0x2d5ab3=a197_0x250a,_0x1b4899=_0x9ab36c();while(!![]){try{const _0x308040=-parseInt(_0x2d5ab3(0x101))/0x1*(parseInt(_0x2d5ab3(0xfc))/0x2)+parseInt(_0x2d5ab3(0x100))/0x3+-parseInt(_0x2d5ab3(0xfb))/0x4*(-parseInt(_0x2d5ab3(0x107))/0x5)+-parseInt(_0x2d5ab3(0x104))/0x6+-parseInt(_0x2d5ab3(0x105))/0x7+-parseInt(_0x2d5ab3(0x102))/0x8+parseInt(_0x2d5ab3(0xff))/0x9;if(_0x308040===_0x306c30)break;else _0x1b4899['push'](_0x1b4899['shift']());}catch(_0x50ac5c){_0x1b4899['push'](_0x1b4899['shift']());}}}(a197_0x262d,0x6b7cf));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x167446(0x106),'format':a197_0x167446(0xfe),'locale':a197_0x167446(0xfd),'riskLevel':a197_0x167446(0x103),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x167446(0xfe);
1
+ const a205_0x1066bf=a205_0x5ed0;(function(_0x3fd875,_0xac5e40){const _0x972c14=a205_0x5ed0,_0x23a4df=_0x3fd875();while(!![]){try{const _0x461992=parseInt(_0x972c14(0x167))/0x1*(parseInt(_0x972c14(0x170))/0x2)+-parseInt(_0x972c14(0x164))/0x3*(-parseInt(_0x972c14(0x169))/0x4)+-parseInt(_0x972c14(0x172))/0x5*(parseInt(_0x972c14(0x16c))/0x6)+-parseInt(_0x972c14(0x171))/0x7+parseInt(_0x972c14(0x16f))/0x8+-parseInt(_0x972c14(0x16b))/0x9*(-parseInt(_0x972c14(0x165))/0xa)+parseInt(_0x972c14(0x166))/0xb;if(_0x461992===_0xac5e40)break;else _0x23a4df['push'](_0x23a4df['shift']());}catch(_0x356682){_0x23a4df['push'](_0x23a4df['shift']());}}}(a205_0x2bca,0x35d13));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a205_0x1066bf(0x168),'format':a205_0x1066bf(0x16d),'locale':a205_0x1066bf(0x16e),'riskLevel':a205_0x1066bf(0x16a),'apiDir':DEFAULT_API_DIR};function a205_0x2bca(){const _0x539b6f=['80328tgfFkq','compress','en-US','358152zfMMsx','208406VlrdjT','2739681douJSG','120PsUzvE','135kHhQYI','3524260MqmHpq','305998dIPjEh','4nBUkhR','production','8116QXMkgv','high-risk-write','9wRQRWs'];a205_0x2bca=function(){return _0x539b6f;};return a205_0x2bca();}function a205_0x5ed0(_0xcd2541,_0x177807){_0xcd2541=_0xcd2541-0x164;const _0x2bcafd=a205_0x2bca();let _0x5ed059=_0x2bcafd[_0xcd2541];return _0x5ed059;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a198_0x323bd6=a198_0xa54c;(function(_0x4506f8,_0x3c9fe9){const _0x1bd918=a198_0xa54c,_0x1d4b57=_0x4506f8();while(!![]){try{const _0x3eb4ec=-parseInt(_0x1bd918(0x1ef))/0x1+-parseInt(_0x1bd918(0x1fe))/0x2*(-parseInt(_0x1bd918(0x1f0))/0x3)+parseInt(_0x1bd918(0x1f6))/0x4*(-parseInt(_0x1bd918(0x1ed))/0x5)+parseInt(_0x1bd918(0x1fa))/0x6+parseInt(_0x1bd918(0x1f3))/0x7+parseInt(_0x1bd918(0x1f5))/0x8+-parseInt(_0x1bd918(0x1fd))/0x9;if(_0x3eb4ec===_0x3c9fe9)break;else _0x1d4b57['push'](_0x1d4b57['shift']());}catch(_0x493404){_0x1d4b57['push'](_0x1d4b57['shift']());}}}(a198_0x519c,0x20b97));import{getEnv,isProduction}from'../constant/env.js';function a198_0x519c(){const _0x3da033=['902484RnZwgf','runtimeDomain','https://daily.lovrabet.com','https://user-daily.lovrabet.com','1351896Fvqyyr','userDomain','/web-app/app/','387909prElAm','302oryOXh','trim','5pBEBWr','https://user.lovrabet.com','58123ekYjjf','3561aUSIVE','https://api.lovrabet.com','https://daily-api.lovrabet.com','128093oqxNMn','/app/','304256Tauaki'];a198_0x519c=function(){return _0x3da033;};return a198_0x519c();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4c679e){const _0x5a8604=a198_0xa54c;customApiDomain=_0x4c679e?.['apiDomain'],customUserDomain=_0x4c679e?.[_0x5a8604(0x1fb)],customRuntimeDomain=_0x4c679e?.[_0x5a8604(0x1f7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x323bd6(0x1ee):a198_0x323bd6(0x1f9));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x323bd6(0x1f1):a198_0x323bd6(0x1f2));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a198_0x323bd6(0x1f8);function a198_0xa54c(_0x2a318c,_0x127af9){_0x2a318c=_0x2a318c-0x1ec;const _0x519c93=a198_0x519c();let _0xa54cc0=_0x519c93[_0x2a318c];return _0xa54cc0;}export const getAppBaseUrl=_0x20eb52=>{const _0x529b2f=a198_0x323bd6,_0x54ac0c=encodeURIComponent(_0x20eb52[_0x529b2f(0x1ec)]());return isProduction(getEnv())?getAppDomain()+_0x529b2f(0x1f4)+_0x54ac0c:getAppDomain()+_0x529b2f(0x1fc)+_0x54ac0c;};
1
+ const a206_0x24a513=a206_0xbf6c;(function(_0x47e6ec,_0x2bb0b2){const _0x9b1a40=a206_0xbf6c,_0x43b5c4=_0x47e6ec();while(!![]){try{const _0x5e5a88=-parseInt(_0x9b1a40(0x179))/0x1*(-parseInt(_0x9b1a40(0x180))/0x2)+parseInt(_0x9b1a40(0x186))/0x3*(-parseInt(_0x9b1a40(0x176))/0x4)+-parseInt(_0x9b1a40(0x181))/0x5+-parseInt(_0x9b1a40(0x173))/0x6+parseInt(_0x9b1a40(0x17a))/0x7*(-parseInt(_0x9b1a40(0x185))/0x8)+-parseInt(_0x9b1a40(0x188))/0x9*(parseInt(_0x9b1a40(0x187))/0xa)+parseInt(_0x9b1a40(0x182))/0xb*(parseInt(_0x9b1a40(0x17d))/0xc);if(_0x5e5a88===_0x2bb0b2)break;else _0x43b5c4['push'](_0x43b5c4['shift']());}catch(_0x5427b3){_0x43b5c4['push'](_0x43b5c4['shift']());}}}(a206_0x2390,0x7f973));import{getEnv,isProduction}from'../constant/env.js';function a206_0x2390(){const _0x2c3746=['220kISwRm','403551mAOHgW','https://app.lovrabet.com','5919954YIysUj','https://daily-api.lovrabet.com','https://api.lovrabet.com','32RnpaEr','https://runtime.lovrabet.com','runtimeDomain','251347pObpvs','918029MNbDcS','apiDomain','/app/','11564508nhdPxy','https://user-daily.lovrabet.com','userDomain','2jqblwf','1006740tvqUqy','33NxzjVG','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','16vEdyNr','68664PCbLux'];a206_0x2390=function(){return _0x2c3746;};return a206_0x2390();}function a206_0xbf6c(_0x214c1a,_0x4b4c42){_0x214c1a=_0x214c1a-0x172;const _0x239081=a206_0x2390();let _0xbf6c23=_0x239081[_0x214c1a];return _0xbf6c23;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x46a626){const _0x18506b=a206_0xbf6c;customApiDomain=_0x46a626?.[_0x18506b(0x17b)],customUserDomain=_0x46a626?.[_0x18506b(0x17f)],customRuntimeDomain=_0x46a626?.[_0x18506b(0x178)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a206_0x24a513(0x184):a206_0x24a513(0x17e));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a206_0x24a513(0x175):a206_0x24a513(0x174));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a206_0x24a513(0x177):a206_0x24a513(0x183));export const getAppDomain=()=>isProduction(getEnv())?a206_0x24a513(0x172):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x37358e=>{const _0x14ba2c=a206_0x24a513,_0x200ce2=encodeURIComponent(_0x37358e['trim']());return isProduction(getEnv())?getAppDomain()+_0x14ba2c(0x17c)+_0x200ce2:getAppDomain()+'/web-app/app/'+_0x200ce2;};
@@ -1 +1 @@
1
- const a199_0x586b79=a199_0x38f6;function a199_0x38f6(_0x5cc1a4,_0x21c8b1){_0x5cc1a4=_0x5cc1a4-0x16b;const _0xcd32eb=a199_0xcd32();let _0x38f6e1=_0xcd32eb[_0x5cc1a4];return _0x38f6e1;}(function(_0x707905,_0x3f160b){const _0x29be73=a199_0x38f6,_0x5cccec=_0x707905();while(!![]){try{const _0x1de34e=parseInt(_0x29be73(0x16e))/0x1+-parseInt(_0x29be73(0x16c))/0x2*(-parseInt(_0x29be73(0x177))/0x3)+parseInt(_0x29be73(0x16b))/0x4*(parseInt(_0x29be73(0x170))/0x5)+-parseInt(_0x29be73(0x16d))/0x6+-parseInt(_0x29be73(0x172))/0x7*(parseInt(_0x29be73(0x16f))/0x8)+parseInt(_0x29be73(0x174))/0x9+-parseInt(_0x29be73(0x176))/0xa;if(_0x1de34e===_0x3f160b)break;else _0x5cccec['push'](_0x5cccec['shift']());}catch(_0x15f764){_0x5cccec['push'](_0x5cccec['shift']());}}}(a199_0xcd32,0xab18d));export const RABETBASE_ENV_VALUES=[a199_0x586b79(0x179),a199_0x586b79(0x171)];export function normalizeEnv(_0x15e9af){const _0x5b58be=a199_0x586b79;return _0x15e9af===_0x5b58be(0x175)?_0x5b58be(0x179):_0x15e9af;}export function isProduction(_0x1a5243){const _0x237448=a199_0x586b79;return normalizeEnv(_0x1a5243)===_0x237448(0x179);}export function isDaily(_0x308112){const _0x4852d8=a199_0x586b79;return normalizeEnv(_0x308112)===_0x4852d8(0x171);}export function isDev(_0x40b989){const _0x416f55=a199_0x586b79,_0x4f86b7=normalizeEnv(_0x40b989);return _0x4f86b7===_0x416f55(0x178)||_0x4f86b7===_0x416f55(0x173);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x586b79(0x179));function a199_0xcd32(){const _0x17b7d5=['1219752aWINox','1060djbOuc','daily','42SZIcsF','dev','11238993YWYmIC','online','7933350gcwTTM','1638108EXoEYV','development','production','17852zKwUeO','2gJRPIW','4502682CgpTYL','418440WilFGz'];a199_0xcd32=function(){return _0x17b7d5;};return a199_0xcd32();}export function getEnv(){return env;}export function initEnv(_0x2b7472){env=normalizeEnv(_0x2b7472);}
1
+ const a207_0x3aab12=a207_0x2be0;(function(_0x237077,_0x2ea571){const _0x94dc3=a207_0x2be0,_0x473729=_0x237077();while(!![]){try{const _0x26d683=parseInt(_0x94dc3(0x1d9))/0x1+parseInt(_0x94dc3(0x1d6))/0x2+parseInt(_0x94dc3(0x1da))/0x3+-parseInt(_0x94dc3(0x1e0))/0x4*(-parseInt(_0x94dc3(0x1d8))/0x5)+-parseInt(_0x94dc3(0x1de))/0x6*(-parseInt(_0x94dc3(0x1db))/0x7)+-parseInt(_0x94dc3(0x1dc))/0x8+parseInt(_0x94dc3(0x1df))/0x9*(-parseInt(_0x94dc3(0x1dd))/0xa);if(_0x26d683===_0x2ea571)break;else _0x473729['push'](_0x473729['shift']());}catch(_0x3e2513){_0x473729['push'](_0x473729['shift']());}}}(a207_0xa47c,0x7ecfb));export const RABETBASE_ENV_VALUES=[a207_0x3aab12(0x1d7),a207_0x3aab12(0x1e2)];export function normalizeEnv(_0x22b76a){const _0x202c8c=a207_0x3aab12;return _0x22b76a===_0x202c8c(0x1e3)?_0x202c8c(0x1d7):_0x22b76a;}export function isProduction(_0x238e29){const _0x6d8aa9=a207_0x3aab12;return normalizeEnv(_0x238e29)===_0x6d8aa9(0x1d7);}function a207_0x2be0(_0x4103a2,_0x1b1e27){_0x4103a2=_0x4103a2-0x1d6;const _0xa47cdf=a207_0xa47c();let _0x2be0ba=_0xa47cdf[_0x4103a2];return _0x2be0ba;}function a207_0xa47c(){const _0x8aff41=['127897IvJfjR','2699808UjWREo','3507623PFDGyw','2747480xeDNRf','1190210aYkWoo','6DIjPZe','117HtoaUr','292pwSfCK','development','daily','online','1084240bDzcPf','production','23225IGjliz'];a207_0xa47c=function(){return _0x8aff41;};return a207_0xa47c();}export function isDaily(_0x12efdc){const _0x92f438=a207_0x3aab12;return normalizeEnv(_0x12efdc)===_0x92f438(0x1e2);}export function isDev(_0x6423f9){const _0x4cb41a=a207_0x3aab12,_0x183b8e=normalizeEnv(_0x6423f9);return _0x183b8e===_0x4cb41a(0x1e1)||_0x183b8e==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a207_0x3aab12(0x1d7));export function getEnv(){return env;}export function initEnv(_0xaae0fb){env=normalizeEnv(_0xaae0fb);}
@@ -1 +1 @@
1
- const a200_0x2fa73d=a200_0x41df;(function(_0x7eb5fb,_0x16d5fe){const _0x47283b=a200_0x41df,_0x376c0d=_0x7eb5fb();while(!![]){try{const _0x34cac5=-parseInt(_0x47283b(0x1e8))/0x1*(parseInt(_0x47283b(0x1ea))/0x2)+-parseInt(_0x47283b(0x1e9))/0x3+parseInt(_0x47283b(0x1e6))/0x4+parseInt(_0x47283b(0x1e7))/0x5+-parseInt(_0x47283b(0x1ef))/0x6*(parseInt(_0x47283b(0x1eb))/0x7)+-parseInt(_0x47283b(0x1ee))/0x8+parseInt(_0x47283b(0x1ec))/0x9*(parseInt(_0x47283b(0x1e4))/0xa);if(_0x34cac5===_0x16d5fe)break;else _0x376c0d['push'](_0x376c0d['shift']());}catch(_0x4e348d){_0x376c0d['push'](_0x376c0d['shift']());}}}(a200_0x2f40,0x96764));function a200_0x41df(_0x37b1ba,_0x3cc587){_0x37b1ba=_0x37b1ba-0x1e4;const _0x2f4028=a200_0x2f40();let _0x41dff4=_0x2f4028[_0x37b1ba];return _0x41dff4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x2fa73d(0x1e5),a200_0x2fa73d(0x1ed),a200_0x2fa73d(0x1f0)];function a200_0x2f40(){const _0x56735d=['4396000Qggpsf','2OOgxqf','3662460CnqGgO','267532pvlZJX','2598239INITQI','9sQPtMQ','pretty','7366928DDLJto','18YZuKYj','compress','22879910DDZbch','json','3887400LliFHm'];a200_0x2f40=function(){return _0x56735d;};return a200_0x2f40();}
1
+ function a208_0x36ca(_0x13e842,_0x421f79){_0x13e842=_0x13e842-0xb4;const _0x12ba1b=a208_0x12ba();let _0x36ca58=_0x12ba1b[_0x13e842];return _0x36ca58;}const a208_0x1b6e12=a208_0x36ca;(function(_0x3c7cf3,_0x1de95c){const _0xa2e9fb=a208_0x36ca,_0x583868=_0x3c7cf3();while(!![]){try{const _0x1ed641=-parseInt(_0xa2e9fb(0xb8))/0x1*(parseInt(_0xa2e9fb(0xb6))/0x2)+parseInt(_0xa2e9fb(0xbf))/0x3+parseInt(_0xa2e9fb(0xb9))/0x4*(-parseInt(_0xa2e9fb(0xbc))/0x5)+parseInt(_0xa2e9fb(0xb5))/0x6+-parseInt(_0xa2e9fb(0xbd))/0x7*(-parseInt(_0xa2e9fb(0xba))/0x8)+-parseInt(_0xa2e9fb(0xb4))/0x9+parseInt(_0xa2e9fb(0xc0))/0xa;if(_0x1ed641===_0x1de95c)break;else _0x583868['push'](_0x583868['shift']());}catch(_0x1eeb2d){_0x583868['push'](_0x583868['shift']());}}}(a208_0x12ba,0x98164));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a208_0x1b6e12(0xbb),a208_0x1b6e12(0xb7),a208_0x1b6e12(0xbe)];function a208_0x12ba(){const _0x4f6fe6=['7xgsYNi','compress','1129803QFMffF','17223480bteIUU','10782072cffFMF','366726FFQybV','372730nBQDaU','pretty','5XHhEsS','88ErufcQ','8690248MXisDw','json','112175woTrlz'];a208_0x12ba=function(){return _0x4f6fe6;};return a208_0x12ba();}
@@ -1 +1 @@
1
- const a201_0x450e74=a201_0x4baa;function a201_0x4baa(_0x322094,_0x46f088){_0x322094=_0x322094-0xa6;const _0xfe1d0c=a201_0xfe1d();let _0x4baa4b=_0xfe1d0c[_0x322094];return _0x4baa4b;}(function(_0x3bac98,_0x23e580){const _0x189ec7=a201_0x4baa,_0x5526bc=_0x3bac98();while(!![]){try{const _0x4a0efa=-parseInt(_0x189ec7(0xae))/0x1+-parseInt(_0x189ec7(0xaa))/0x2*(-parseInt(_0x189ec7(0xaf))/0x3)+parseInt(_0x189ec7(0xa7))/0x4+parseInt(_0x189ec7(0xa9))/0x5+parseInt(_0x189ec7(0xad))/0x6+parseInt(_0x189ec7(0xab))/0x7+parseInt(_0x189ec7(0xa8))/0x8*(-parseInt(_0x189ec7(0xac))/0x9);if(_0x4a0efa===_0x23e580)break;else _0x5526bc['push'](_0x5526bc['shift']());}catch(_0x342e8f){_0x5526bc['push'](_0x5526bc['shift']());}}}(a201_0xfe1d,0xea4a1));export const DEFAULT_API_DIR=a201_0x450e74(0xa6);function a201_0xfe1d(){const _0x5f587e=['6148276qTORui','2792oLmmai','8926005PHVnyZ','285582OXNOtP','260393YbRvWB','76185GVscTg','2969388OagUUg','511597ufybJV','12OkJMCG','./src/api'];a201_0xfe1d=function(){return _0x5f587e;};return a201_0xfe1d();}
1
+ function a209_0x25bd(){const _0x5585f3=['173078YewmoB','4772716erLbMa','6819218HvrYfT','9271680nLFBkg','175290ByyHYM','7294655oaIVhQ','45MENeeI','728093DpCvfj','6HMkJiv','1341HWsfAp'];a209_0x25bd=function(){return _0x5585f3;};return a209_0x25bd();}(function(_0x23bb74,_0x27b07b){const _0x26372a=a209_0x7471,_0x4282cb=_0x23bb74();while(!![]){try{const _0x339ec5=-parseInt(_0x26372a(0x1f2))/0x1+parseInt(_0x26372a(0x1f5))/0x2*(parseInt(_0x26372a(0x1fb))/0x3)+parseInt(_0x26372a(0x1f6))/0x4+parseInt(_0x26372a(0x1fa))/0x5*(parseInt(_0x26372a(0x1f3))/0x6)+-parseInt(_0x26372a(0x1f7))/0x7+parseInt(_0x26372a(0x1f8))/0x8+parseInt(_0x26372a(0x1f4))/0x9*(-parseInt(_0x26372a(0x1f9))/0xa);if(_0x339ec5===_0x27b07b)break;else _0x4282cb['push'](_0x4282cb['shift']());}catch(_0xe9a25d){_0x4282cb['push'](_0x4282cb['shift']());}}}(a209_0x25bd,0xc21bb));function a209_0x7471(_0x110d44,_0x3ba590){_0x110d44=_0x110d44-0x1f2;const _0x25bd8b=a209_0x25bd();let _0x74717f=_0x25bd8b[_0x110d44];return _0x74717f;}export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a202_0x740c(){const _0x31cefa=['21qUHmwq','611086lnqiiO','1010mkWlBg','high-risk-write','13542FrckkZ','6773388WDdmYD','write','40WYCtNR','read','81788TzPYHO','510nrzGae','89881ICXmtT','211848jZFywK','2zNsGDK','938943maAthI'];a202_0x740c=function(){return _0x31cefa;};return a202_0x740c();}function a202_0xb7bb(_0x3ab825,_0x416c12){_0x3ab825=_0x3ab825-0x114;const _0x740cf1=a202_0x740c();let _0xb7bb2=_0x740cf1[_0x3ab825];return _0xb7bb2;}const a202_0x185160=a202_0xb7bb;(function(_0x24d41b,_0x2b2831){const _0x28d2de=a202_0xb7bb,_0xd2d7c3=_0x24d41b();while(!![]){try{const _0x272458=parseInt(_0x28d2de(0x11c))/0x1*(parseInt(_0x28d2de(0x11f))/0x2)+parseInt(_0x28d2de(0x11e))/0x3*(parseInt(_0x28d2de(0x11b))/0x4)+parseInt(_0x28d2de(0x119))/0x5*(-parseInt(_0x28d2de(0x122))/0x6)+-parseInt(_0x28d2de(0x118))/0x7+-parseInt(_0x28d2de(0x116))/0x8*(parseInt(_0x28d2de(0x11d))/0x9)+parseInt(_0x28d2de(0x120))/0xa*(parseInt(_0x28d2de(0x11a))/0xb)+-parseInt(_0x28d2de(0x114))/0xc;if(_0x272458===_0x2b2831)break;else _0xd2d7c3['push'](_0xd2d7c3['shift']());}catch(_0x429d0f){_0xd2d7c3['push'](_0xd2d7c3['shift']());}}}(a202_0x740c,0x74f85));export const RISK_LEVEL_VALUES=[a202_0x185160(0x117),a202_0x185160(0x115),a202_0x185160(0x121)];
1
+ function a210_0x56bf(){const _0x293d97=['3339320JyIZjd','2521916ifwhqS','2GVIPtJ','554822DPXMJQ','high-risk-write','1630uhIUuL','427LtBiiV','3BmiNsY','30462WrQXEd','3909024cpBGwg','18729pWWxmb','22302797BqdOFk'];a210_0x56bf=function(){return _0x293d97;};return a210_0x56bf();}function a210_0x193f(_0x152199,_0x58b912){_0x152199=_0x152199-0x12f;const _0x56bf07=a210_0x56bf();let _0x193f5b=_0x56bf07[_0x152199];return _0x193f5b;}const a210_0xcfedb3=a210_0x193f;(function(_0x213e29,_0x5273ab){const _0x1a552c=a210_0x193f,_0x55b315=_0x213e29();while(!![]){try{const _0x2c7dcf=parseInt(_0x1a552c(0x135))/0x1*(-parseInt(_0x1a552c(0x136))/0x2)+parseInt(_0x1a552c(0x13a))/0x3*(-parseInt(_0x1a552c(0x134))/0x4)+parseInt(_0x1a552c(0x133))/0x5+-parseInt(_0x1a552c(0x12f))/0x6*(parseInt(_0x1a552c(0x139))/0x7)+-parseInt(_0x1a552c(0x130))/0x8+-parseInt(_0x1a552c(0x131))/0x9*(parseInt(_0x1a552c(0x138))/0xa)+parseInt(_0x1a552c(0x132))/0xb;if(_0x2c7dcf===_0x5273ab)break;else _0x55b315['push'](_0x55b315['shift']());}catch(_0x48265a){_0x55b315['push'](_0x55b315['shift']());}}}(a210_0x56bf,0x5af52));export const RISK_LEVEL_VALUES=['read','write',a210_0xcfedb3(0x137)];