@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/db/analyze-cancel.js +1 -1
  52. package/lib/commands/db/analyze-start.js +1 -1
  53. package/lib/commands/db/analyze-status.js +1 -1
  54. package/lib/commands/db/create.js +1 -1
  55. package/lib/commands/db/delete.js +1 -1
  56. package/lib/commands/db/detail.js +1 -1
  57. package/lib/commands/db/diff.js +1 -1
  58. package/lib/commands/db/index.js +1 -1
  59. package/lib/commands/db/list.js +1 -1
  60. package/lib/commands/db/shared.js +1 -1
  61. package/lib/commands/db/tables.js +1 -1
  62. package/lib/commands/db/test.js +1 -1
  63. package/lib/commands/db/update.js +1 -1
  64. package/lib/commands/doctor.js +1 -1
  65. package/lib/commands/init/index.js +1 -1
  66. package/lib/commands/logs/index.js +1 -1
  67. package/lib/commands/menu/index.js +1 -1
  68. package/lib/commands/menu/shared/compare-table.js +1 -1
  69. package/lib/commands/menu/shared/index.js +1 -1
  70. package/lib/commands/menu/shared/inquirer.js +1 -1
  71. package/lib/commands/menu/shared/local-pages.js +1 -1
  72. package/lib/commands/menu/shared/logic.js +1 -1
  73. package/lib/commands/menu/shared/service.js +1 -1
  74. package/lib/commands/menu/shared/sync-core.js +1 -1
  75. package/lib/commands/menu/shared/update-core.js +1 -1
  76. package/lib/commands/menu/shared/valid-url.js +1 -1
  77. package/lib/commands/menu/sync.js +1 -1
  78. package/lib/commands/menu/update.js +1 -1
  79. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  80. package/lib/commands/project/create/format-elapsed.js +1 -1
  81. package/lib/commands/project/create/main.js +1 -1
  82. package/lib/commands/project/create/non-interactive.js +1 -1
  83. package/lib/commands/project/create/project-template-path.js +1 -1
  84. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  85. package/lib/commands/project/create/use-format-code.js +1 -1
  86. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  87. package/lib/commands/project/index.js +1 -1
  88. package/lib/commands/project/init.js +1 -1
  89. package/lib/commands/project/upgrade.js +1 -1
  90. package/lib/commands/registry.js +1 -1
  91. package/lib/commands/run/index.js +1 -1
  92. package/lib/commands/schema.js +1 -1
  93. package/lib/commands/skill/index.js +1 -1
  94. package/lib/commands/sql/detail.js +1 -1
  95. package/lib/commands/sql/exec.js +1 -1
  96. package/lib/commands/sql/index.js +1 -1
  97. package/lib/commands/sql/list.js +1 -1
  98. package/lib/commands/sql/pull.js +1 -1
  99. package/lib/commands/sql/save.js +1 -1
  100. package/lib/commands/sql/shared.js +1 -1
  101. package/lib/commands/sql/validate.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/paths.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/alias-resolver.js +1 -1
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/bff/config.js +1 -1
  110. package/lib/core/bff/file-system.js +1 -1
  111. package/lib/core/bff/hash.js +1 -1
  112. package/lib/core/bff/lock.js +1 -1
  113. package/lib/core/bff/utils.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sql-validator.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner.js +1 -1
  124. package/lib/framework/schema-export.js +1 -1
  125. package/lib/framework/types.js +1 -1
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/help.js +1 -1
  128. package/lib/skills/main.js +1 -1
  129. package/lib/skills/npx-skills-add.js +1 -1
  130. package/lib/telemetry/cli-command-trace.js +1 -1
  131. package/lib/telemetry/cli-help-trace.js +1 -1
  132. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  133. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  134. package/lib/telemetry/send-cli-trace-log.js +1 -1
  135. package/lib/utils/ai_config.js +1 -1
  136. package/lib/utils/apply-jq-filter.js +1 -1
  137. package/lib/utils/cdn-config.js +1 -1
  138. package/lib/utils/check-sdk-version.js +1 -1
  139. package/lib/utils/cli-version-check.js +1 -1
  140. package/lib/utils/config.js +1 -1
  141. package/lib/utils/copy-directory.js +1 -1
  142. package/lib/utils/file-utils.js +1 -1
  143. package/lib/utils/guides-cdn.js +1 -1
  144. package/lib/utils/http-client.js +1 -1
  145. package/lib/utils/is-non-interactive.js +1 -1
  146. package/lib/utils/logger.js +1 -1
  147. package/lib/utils/platform.js +1 -1
  148. package/lib/utils/rules-cdn.js +1 -1
  149. package/lib/utils/sleep.js +1 -1
  150. package/lib/utils/template-replacer.js +1 -1
  151. package/lib/utils/version.js +1 -1
  152. package/lib/utils/with-active-cookie.js +1 -1
  153. package/lib/utils/write-cli-side-channel.js +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- const a32_0x55f3ea=a32_0x1dd9;function a32_0x2df8(){const _0x894f60=['length','8zgMEtL','1102064zptDqY','lockKey','814877jYGHdT','read','10rSECWA','all','4842345WMefzu','datasetCode','2150648YTmyMJ','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','appCode','38386898MrDoHQ','12wPnMtD','\x20remote-only','24195NIHqjF','map','has','All\x20BFF\x20scripts\x20are\x20in\x20sync.','push','filePath','functions','lockFilePath','bool','\x20unchanged','status','apiDir','2311893ROOowo','92XCCzAm','\x20modified,\x20','scriptsRoot'];a32_0x2df8=function(){return _0x894f60;};return a32_0x2df8();}(function(_0x28c98d,_0x42402c){const _0x35748f=a32_0x1dd9,_0x8451aa=_0x28c98d();while(!![]){try{const _0x873062=-parseInt(_0x35748f(0x157))/0x1+-parseInt(_0x35748f(0x15f))/0x2+parseInt(_0x35748f(0x165))/0x3*(parseInt(_0x35748f(0x152))/0x4)+-parseInt(_0x35748f(0x15d))/0x5+-parseInt(_0x35748f(0x163))/0x6*(parseInt(_0x35748f(0x159))/0x7)+parseInt(_0x35748f(0x156))/0x8*(parseInt(_0x35748f(0x151))/0x9)+-parseInt(_0x35748f(0x15b))/0xa*(-parseInt(_0x35748f(0x162))/0xb);if(_0x873062===_0x42402c)break;else _0x8451aa['push'](_0x8451aa['shift']());}catch(_0x42f23e){_0x8451aa['push'](_0x8451aa['shift']());}}}(a32_0x2df8,0x871c3));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a32_0x1dd9(_0x478c10,_0x442a74){_0x478c10=_0x478c10-0x146;const _0x2df887=a32_0x2df8();let _0x1dd9f3=_0x2df887[_0x478c10];return _0x1dd9f3;}import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':a32_0x55f3ea(0x14f),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a32_0x55f3ea(0x15a),'flags':[{'name':'remote','type':'boolean','description':a32_0x55f3ea(0x160)}],async 'execute'(_0x3eabd1){const _0x117a1a=a32_0x55f3ea,_0x2ba5b7=loadBffProjectConfig(_0x3eabd1['appCode']),_0x2f8e09=await readBffLockFile(_0x2ba5b7[_0x117a1a(0x14c)]),{appLock:_0x2dd7c7}=ensureLockScope(_0x2f8e09??createEmptyBffLock(),_0x3eabd1['appCode'],_0x2ba5b7[_0x117a1a(0x154)],_0x117a1a(0x14f)),_0x2682ad=await scanLocalBffFunctions(_0x2ba5b7),_0x5ba7f8=[],_0x5d6705=[],_0x4f091f=[];for(const _0x485b5a of _0x2682ad){const _0x27b7aa=await computeFileHash(_0x485b5a[_0x117a1a(0x14a)]),_0x299f86=_0x2dd7c7[_0x117a1a(0x14b)][_0x485b5a[_0x117a1a(0x158)]];if(!_0x299f86)_0x5ba7f8[_0x117a1a(0x149)](_0x485b5a['lockKey']);else _0x299f86['hash']!==_0x27b7aa?_0x5d6705[_0x117a1a(0x149)](_0x485b5a['lockKey']):_0x4f091f['push'](_0x485b5a[_0x117a1a(0x158)]);}const _0x5da9e4=[];if(_0x3eabd1[_0x117a1a(0x14d)]('remote')){const _0xdbe8c1=loadAliasMap(_0x3eabd1['apiDir'],undefined,resolveApiFilePath(_0x3eabd1[_0x117a1a(0x150)],_0x3eabd1['appCode'])),_0x2f3933=new Map(_0xdbe8c1[_0x117a1a(0x146)](_0x4186b3=>[_0x4186b3[_0x117a1a(0x15e)],_0x4186b3['alias']])),[_0x4bf9fb,_0x4fd0c5]=await Promise[_0x117a1a(0x15c)]([listBffScripts(_0x3eabd1[_0x117a1a(0x161)]),getBffScriptStatistics(_0x3eabd1[_0x117a1a(0x161)])]),_0x1a065f=createHookLocationMap(_0x4fd0c5),_0x2e1406=new Set(_0x2682ad[_0x117a1a(0x146)](_0x453368=>_0x453368[_0x117a1a(0x158)]));for(const _0xe00a51 of _0x4bf9fb){const _0x33b3fb=resolveRemoteScriptTarget(_0x2ba5b7,_0xe00a51,_0x1a065f,_0x2dd7c7[_0x117a1a(0x14b)],_0x2f3933);_0x33b3fb&&!_0x2e1406[_0x117a1a(0x147)](_0x33b3fb['lockKey'])&&_0x5da9e4[_0x117a1a(0x149)](_0x33b3fb[_0x117a1a(0x158)]);}}const _0x23c173=_0x5ba7f8['length']===0x0&&_0x5d6705[_0x117a1a(0x155)]===0x0&&_0x5da9e4['length']===0x0;return{'ok':!![],'data':{'added':_0x5ba7f8,'modified':_0x5d6705,'unchanged':_0x4f091f,'remoteOnly':_0x5da9e4},'message':_0x23c173?_0x117a1a(0x148):_0x5ba7f8[_0x117a1a(0x155)]+'\x20added,\x20'+_0x5d6705['length']+_0x117a1a(0x153)+_0x4f091f[_0x117a1a(0x155)]+_0x117a1a(0x14e)+(_0x5da9e4[_0x117a1a(0x155)]>0x0?',\x20'+_0x5da9e4[_0x117a1a(0x155)]+_0x117a1a(0x164):'')};}};
1
+ const a32_0x31212c=a32_0xa125;(function(_0x1d69a3,_0x17ade6){const _0x1e2801=a32_0xa125,_0x130786=_0x1d69a3();while(!![]){try{const _0x53ba49=-parseInt(_0x1e2801(0x19a))/0x1*(parseInt(_0x1e2801(0x196))/0x2)+parseInt(_0x1e2801(0x1ad))/0x3*(parseInt(_0x1e2801(0x1aa))/0x4)+-parseInt(_0x1e2801(0x1b1))/0x5*(-parseInt(_0x1e2801(0x195))/0x6)+parseInt(_0x1e2801(0x1a7))/0x7*(parseInt(_0x1e2801(0x199))/0x8)+-parseInt(_0x1e2801(0x1a9))/0x9*(-parseInt(_0x1e2801(0x1ae))/0xa)+-parseInt(_0x1e2801(0x1a4))/0xb*(-parseInt(_0x1e2801(0x1a1))/0xc)+-parseInt(_0x1e2801(0x193))/0xd;if(_0x53ba49===_0x17ade6)break;else _0x130786['push'](_0x130786['shift']());}catch(_0x25b45f){_0x130786['push'](_0x130786['shift']());}}}(a32_0x4195,0x857c9));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a32_0xa125(_0x32db1d,_0x14dfaf){_0x32db1d=_0x32db1d-0x191;const _0x4195aa=a32_0x4195();let _0xa125e7=_0x4195aa[_0x32db1d];return _0xa125e7;}import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a32_0x4195(){const _0x575223=['remote','810444HaAUAu','204178SCZbky','functions','\x20added,\x20','4285160DwKoWa','3MWbmgd','all','lockFilePath','length','read','filePath','datasetCode','12bvzJuu','appCode','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','7681861XeiNST','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','push','7JuPDXZ','\x20remote-only','60579UGWLAd','52dOlNUy','status','\x20unchanged','145395vvCVHT','240HrNUVe','map','scriptsRoot','35rjGeiL','lockKey','apiDir','bff','hash','boolean','27534975GsVRmK'];a32_0x4195=function(){return _0x575223;};return a32_0x4195();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a32_0x31212c(0x1b4),'command':a32_0x31212c(0x1ab),'description':a32_0x31212c(0x1a3),'risk':a32_0x31212c(0x19e),'flags':[{'name':a32_0x31212c(0x194),'type':a32_0x31212c(0x192),'description':a32_0x31212c(0x1a5)}],async 'execute'(_0x2f6acb){const _0x1c5a79=a32_0x31212c,_0x3b032=loadBffProjectConfig(_0x2f6acb[_0x1c5a79(0x1a2)]),_0x42c9e2=await readBffLockFile(_0x3b032[_0x1c5a79(0x19c)]),{appLock:_0x1b8e14}=ensureLockScope(_0x42c9e2??createEmptyBffLock(),_0x2f6acb[_0x1c5a79(0x1a2)],_0x3b032[_0x1c5a79(0x1b0)],'status'),_0x3cd71f=await scanLocalBffFunctions(_0x3b032),_0x2b971a=[],_0x21b601=[],_0x454b96=[];for(const _0x55a676 of _0x3cd71f){const _0x209082=await computeFileHash(_0x55a676[_0x1c5a79(0x19f)]),_0x4a03ab=_0x1b8e14['functions'][_0x55a676[_0x1c5a79(0x1b2)]];if(!_0x4a03ab)_0x2b971a['push'](_0x55a676[_0x1c5a79(0x1b2)]);else _0x4a03ab[_0x1c5a79(0x191)]!==_0x209082?_0x21b601[_0x1c5a79(0x1a6)](_0x55a676[_0x1c5a79(0x1b2)]):_0x454b96['push'](_0x55a676[_0x1c5a79(0x1b2)]);}const _0x57c8c0=[];if(_0x2f6acb['bool'](_0x1c5a79(0x194))){const _0x7c4733=loadAliasMap(_0x2f6acb[_0x1c5a79(0x1b3)],undefined,resolveApiFilePath(_0x2f6acb[_0x1c5a79(0x1b3)],_0x2f6acb[_0x1c5a79(0x1a2)])),_0x1b4ea8=new Map(_0x7c4733[_0x1c5a79(0x1af)](_0x187588=>[_0x187588[_0x1c5a79(0x1a0)],_0x187588['alias']])),[_0x341c7e,_0x13843f]=await Promise[_0x1c5a79(0x19b)]([listBffScripts(_0x2f6acb[_0x1c5a79(0x1a2)]),getBffScriptStatistics(_0x2f6acb[_0x1c5a79(0x1a2)])]),_0x5c5b56=createHookLocationMap(_0x13843f),_0x3ad886=new Set(_0x3cd71f[_0x1c5a79(0x1af)](_0xcdeeec=>_0xcdeeec[_0x1c5a79(0x1b2)]));for(const _0x2fa409 of _0x341c7e){const _0x530db6=resolveRemoteScriptTarget(_0x3b032,_0x2fa409,_0x5c5b56,_0x1b8e14[_0x1c5a79(0x197)],_0x1b4ea8);_0x530db6&&!_0x3ad886['has'](_0x530db6[_0x1c5a79(0x1b2)])&&_0x57c8c0[_0x1c5a79(0x1a6)](_0x530db6[_0x1c5a79(0x1b2)]);}}const _0x49e8ac=_0x2b971a['length']===0x0&&_0x21b601['length']===0x0&&_0x57c8c0[_0x1c5a79(0x19d)]===0x0;return{'ok':!![],'data':{'added':_0x2b971a,'modified':_0x21b601,'unchanged':_0x454b96,'remoteOnly':_0x57c8c0},'message':_0x49e8ac?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x2b971a['length']+_0x1c5a79(0x198)+_0x21b601['length']+'\x20modified,\x20'+_0x454b96[_0x1c5a79(0x19d)]+_0x1c5a79(0x1ac)+(_0x57c8c0['length']>0x0?',\x20'+_0x57c8c0[_0x1c5a79(0x19d)]+_0x1c5a79(0x1a8):'')};}};
@@ -1 +1 @@
1
- const a33_0x95a8cb=a33_0x23be;(function(_0x29bc2d,_0xc5d2ae){const _0x5cc8ad=a33_0x23be,_0x63af9=_0x29bc2d();while(!![]){try{const _0x74ac31=-parseInt(_0x5cc8ad(0x1be))/0x1+-parseInt(_0x5cc8ad(0x1b4))/0x2+-parseInt(_0x5cc8ad(0x1c2))/0x3*(parseInt(_0x5cc8ad(0x1d0))/0x4)+parseInt(_0x5cc8ad(0x1b5))/0x5+-parseInt(_0x5cc8ad(0x1c8))/0x6+parseInt(_0x5cc8ad(0x1c3))/0x7*(-parseInt(_0x5cc8ad(0x1cd))/0x8)+-parseInt(_0x5cc8ad(0x1b8))/0x9*(-parseInt(_0x5cc8ad(0x1ca))/0xa);if(_0x74ac31===_0xc5d2ae)break;else _0x63af9['push'](_0x63af9['shift']());}catch(_0x3047d5){_0x63af9['push'](_0x63af9['shift']());}}}(a33_0xfae7,0xbf966));import a33_0x34af23 from'chalk';function a33_0x23be(_0x14403f,_0xbb3461){_0x14403f=_0x14403f-0x1b4;const _0xfae72c=a33_0xfae7();let _0x23be9e=_0xfae72c[_0x14403f];return _0x23be9e;}import a33_0x333631 from'ora';import a33_0x230c2b from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x227e19=a33_0x23be,_0x2e4ee9=process['execPath'][_0x227e19(0x1bb)]();if(_0x2e4ee9[_0x227e19(0x1c5)]('bun'))return _0x227e19(0x1b7);return _0x227e19(0x1c0);}function a33_0xfae7(){const _0x40d21a=['coerce','\x20\x20Try\x20manually:\x20','info','Checking\x20for\x20updates...','version','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','start','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','908156nNfATN','4451250YKQTyW','json','bun','34000326ATiHHu','fail','install','toLowerCase','stableVersion','yellow','104541oRrOac','Unable\x20to\x20check\x20for\x20updates','npm','Update\x20failed','12StelBD','14371RYNeYz','log','includes','Version\x20comparison\x20failed','Updated\x20to\x20v','6334230SrGiHh','@latest','10LsTwzY','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','write','3536BGLCNg','gray','https://registry.npmjs.org/','1361572HNUGAn','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','...'];a33_0xfae7=function(){return _0x40d21a;};return a33_0xfae7();}async function fetchLatestNpmVersion(){const _0x31803d=a33_0x23be;try{const _0x39c240=await fetch(_0x31803d(0x1cf)+NPM_PACKAGE_NAME+'/latest',{'signal':AbortSignal['timeout'](0x2710)});if(!_0x39c240['ok'])return null;const _0x57053a=await _0x39c240[_0x31803d(0x1b6)]();return _0x57053a[_0x31803d(0x1d7)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x2954e9=a33_0x23be,_0x4ec58c=await fetchLatestNpmVersion();if(_0x4ec58c)return _0x4ec58c;const _0xd17d82=await getCdnConfig();return _0xd17d82?.['cli']?.[_0x2954e9(0x1bc)]??null;}async function execute(_0x9067ce){const _0x763833=a33_0x23be,_0x57524c=getCurrentVersion();console[_0x763833(0x1c4)]('Current\x20version:\x20'+_0x57524c);const _0x5bd6dd=a33_0x333631(_0x763833(0x1d6))[_0x763833(0x1d9)](),_0x177974=await fetchLatestVersion();if(!_0x177974)return _0x5bd6dd['fail'](_0x763833(0x1cb)),console['log'](a33_0x34af23[_0x763833(0x1ce)](_0x763833(0x1da)+NPM_PACKAGE_NAME+_0x763833(0x1c9))),{'ok':![],'message':_0x763833(0x1bf)};const _0x2b3580=a33_0x230c2b[_0x763833(0x1d3)](_0x57524c),_0x531d7f=a33_0x230c2b[_0x763833(0x1d3)](_0x177974);if(!_0x2b3580||!_0x531d7f)return _0x5bd6dd['fail'](_0x763833(0x1c6)),{'ok':![],'message':_0x763833(0x1c6)};if(!a33_0x230c2b['lt'](_0x2b3580,_0x531d7f))return _0x5bd6dd['succeed']('Already\x20up\x20to\x20date\x20(v'+_0x177974+')'),{'ok':!![]};_0x5bd6dd[_0x763833(0x1d5)]('Update\x20available:\x20'+a33_0x34af23[_0x763833(0x1bd)](_0x57524c)+'\x20→\x20'+a33_0x34af23['green'](_0x177974));const _0x519a23=detectPackageManager(),_0x2ffaf6=_0x519a23===_0x763833(0x1c0)?resolveNpmBin(_0x763833(0x1c0)):_0x519a23,_0x3cd613=a33_0x333631('Updating\x20via\x20'+_0x519a23+_0x763833(0x1d2))['start']();try{return await execa(_0x2ffaf6,[_0x763833(0x1ba),'-g',NPM_PACKAGE_NAME+_0x763833(0x1c9)],{'stdio':'pipe'}),_0x3cd613['succeed'](_0x763833(0x1c7)+_0x177974),console[_0x763833(0x1c4)](a33_0x34af23['gray'](_0x763833(0x1d8))),{'ok':!![]};}catch(_0x7ae99d){return _0x3cd613[_0x763833(0x1b9)](_0x763833(0x1c1)),console['error'](a33_0x34af23['red']('\x20\x20'+_0x7ae99d['message'])),console[_0x763833(0x1c4)](a33_0x34af23[_0x763833(0x1ce)](_0x763833(0x1d4)+_0x519a23+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x763833(0x1c9))),{'ok':![],'message':_0x7ae99d['message']};}}export const updateDefinition={'service':'update','command':'run','description':a33_0x95a8cb(0x1d1),'risk':a33_0x95a8cb(0x1cc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a33_0xaa1589=a33_0x31aa;(function(_0x43e5dd,_0xd496cb){const _0x25f89=a33_0x31aa,_0x1a04b6=_0x43e5dd();while(!![]){try{const _0x481a6c=-parseInt(_0x25f89(0xa6))/0x1*(parseInt(_0x25f89(0xbf))/0x2)+parseInt(_0x25f89(0x9c))/0x3+parseInt(_0x25f89(0xa1))/0x4*(-parseInt(_0x25f89(0xb1))/0x5)+-parseInt(_0x25f89(0xa7))/0x6*(parseInt(_0x25f89(0xb6))/0x7)+-parseInt(_0x25f89(0xa3))/0x8+parseInt(_0x25f89(0xa2))/0x9+parseInt(_0x25f89(0xb0))/0xa*(parseInt(_0x25f89(0xa0))/0xb);if(_0x481a6c===_0xd496cb)break;else _0x1a04b6['push'](_0x1a04b6['shift']());}catch(_0x8354bc){_0x1a04b6['push'](_0x1a04b6['shift']());}}}(a33_0x5c59,0xdd55f));import a33_0x5ed8d7 from'chalk';import a33_0x1e06dc from'ora';import a33_0x2f17e8 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a33_0x31aa(_0x2dd1cd,_0x5deaec){_0x2dd1cd=_0x2dd1cd-0x95;const _0x5c5908=a33_0x5c59();let _0x31aa1d=_0x5c5908[_0x2dd1cd];return _0x31aa1d;}import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x3fd0b8=a33_0x31aa;return GIT_COMMIT!==_0x3fd0b8(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2e86ac=a33_0x31aa,_0x38792e=process['execPath'][_0x2e86ac(0xa8)]();if(_0x38792e[_0x2e86ac(0x9a)]('bun'))return _0x2e86ac(0xad);return'npm';}function a33_0x5c59(){const _0x51567c=['/latest','158522EOmSGl','Current\x20version:\x20','\x20\x20Try\x20manually:\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Unable\x20to\x20check\x20for\x20updates','log','yellow','coerce','stableVersion','12178hRaEyY','gray','write','start','fail','Already\x20up\x20to\x20date\x20(v','\x20install\x20-g\x20','json','Checking\x20for\x20updates...','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','info','includes','Version\x20comparison\x20failed','3130452usiLIS','install','npm','@latest','5823323hAgGbp','192VaWHNu','16101756Ybebff','20944gPwsYB','Update\x20available:\x20','unknown','14wJemJg','402qhBVDi','toLowerCase','Updating\x20via\x20','version','Updated\x20to\x20v','red','bun','green','timeout','10oNUutZ','88565ujddDU','message','error','update'];a33_0x5c59=function(){return _0x51567c;};return a33_0x5c59();}async function fetchLatestNpmVersion(){const _0x45d7a4=a33_0x31aa;try{const _0x2dd537=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x45d7a4(0xb5),{'signal':AbortSignal[_0x45d7a4(0xaf)](0x2710)});if(!_0x2dd537['ok'])return null;const _0x30cffc=await _0x2dd537[_0x45d7a4(0x96)]();return _0x30cffc[_0x45d7a4(0xaa)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x1af810=a33_0x31aa,_0x2acadb=await fetchLatestNpmVersion();if(_0x2acadb)return _0x2acadb;const _0x25afb2=await getCdnConfig();return _0x25afb2?.['cli']?.[_0x1af810(0xbe)]??null;}async function execute(_0x150f8f){const _0x26ca65=a33_0x31aa,_0x244709=getCurrentVersion();console[_0x26ca65(0xbb)](_0x26ca65(0xb7)+_0x244709);const _0x22141a=a33_0x1e06dc(_0x26ca65(0x97))[_0x26ca65(0xc2)](),_0x2b2ec0=await fetchLatestVersion();if(!_0x2b2ec0)return _0x22141a[_0x26ca65(0xc3)](_0x26ca65(0xb9)),console[_0x26ca65(0xbb)](a33_0x5ed8d7[_0x26ca65(0xc0)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x26ca65(0x9f))),{'ok':![],'message':_0x26ca65(0xba)};const _0x251596=a33_0x2f17e8['coerce'](_0x244709),_0x4d9bff=a33_0x2f17e8[_0x26ca65(0xbd)](_0x2b2ec0);if(!_0x251596||!_0x4d9bff)return _0x22141a['fail'](_0x26ca65(0x9b)),{'ok':![],'message':_0x26ca65(0x9b)};if(!a33_0x2f17e8['lt'](_0x251596,_0x4d9bff))return _0x22141a['succeed'](_0x26ca65(0xc4)+_0x2b2ec0+')'),{'ok':!![]};_0x22141a[_0x26ca65(0x99)](_0x26ca65(0xa4)+a33_0x5ed8d7[_0x26ca65(0xbc)](_0x244709)+'\x20→\x20'+a33_0x5ed8d7[_0x26ca65(0xae)](_0x2b2ec0));const _0x3c2309=detectPackageManager(),_0x42e886=_0x3c2309==='npm'?resolveNpmBin(_0x26ca65(0x9e)):_0x3c2309,_0x15a4c5=a33_0x1e06dc(_0x26ca65(0xa9)+_0x3c2309+'...')['start']();try{return await execa(_0x42e886,[_0x26ca65(0x9d),'-g',NPM_PACKAGE_NAME+'@latest'],{'stdio':'pipe'}),_0x15a4c5['succeed'](_0x26ca65(0xab)+_0x2b2ec0),console[_0x26ca65(0xbb)](a33_0x5ed8d7['gray'](_0x26ca65(0x98))),{'ok':!![]};}catch(_0x353075){return _0x15a4c5[_0x26ca65(0xc3)]('Update\x20failed'),console[_0x26ca65(0xb3)](a33_0x5ed8d7[_0x26ca65(0xac)]('\x20\x20'+_0x353075[_0x26ca65(0xb2)])),console[_0x26ca65(0xbb)](a33_0x5ed8d7[_0x26ca65(0xc0)](_0x26ca65(0xb8)+_0x3c2309+_0x26ca65(0x95)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x353075[_0x26ca65(0xb2)]};}}export const updateDefinition={'service':a33_0xaa1589(0xb4),'command':'run','description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a33_0xaa1589(0xc1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x563f08,_0x425f6f){const _0x16a0ac=a34_0x1f65,_0x5022a2=_0x563f08();while(!![]){try{const _0x2706c4=-parseInt(_0x16a0ac(0x141))/0x1+parseInt(_0x16a0ac(0x13d))/0x2+parseInt(_0x16a0ac(0x144))/0x3+parseInt(_0x16a0ac(0x142))/0x4+-parseInt(_0x16a0ac(0x140))/0x5*(-parseInt(_0x16a0ac(0x13e))/0x6)+-parseInt(_0x16a0ac(0x13f))/0x7+-parseInt(_0x16a0ac(0x143))/0x8*(parseInt(_0x16a0ac(0x145))/0x9);if(_0x2706c4===_0x425f6f)break;else _0x5022a2['push'](_0x5022a2['shift']());}catch(_0x4cc67f){_0x5022a2['push'](_0x5022a2['shift']());}}}(a34_0x2aa5,0xe7642));function a34_0x1f65(_0x1b7f2d,_0x2d4fb8){_0x1b7f2d=_0x1b7f2d-0x13d;const _0x2aa5bb=a34_0x2aa5();let _0x1f65d2=_0x2aa5bb[_0x1b7f2d];return _0x1f65d2;}import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2aa5(){const _0xfd553f=['1879405PtOkav','598430TRWIvP','5842676WKiqpP','18976SyHLzC','3189414JvnNFo','12591hKUgwc','2583280TBmqgV','24RhVqhp','3180345ZaKBab'];a34_0x2aa5=function(){return _0xfd553f;};return a34_0x2aa5();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x2d69b5,_0x19facf){const _0x2a1542=a34_0x2599,_0x1a1204=_0x2d69b5();while(!![]){try{const _0x1cdb61=parseInt(_0x2a1542(0x8d))/0x1*(parseInt(_0x2a1542(0x97))/0x2)+-parseInt(_0x2a1542(0x8e))/0x3*(-parseInt(_0x2a1542(0x95))/0x4)+parseInt(_0x2a1542(0x8f))/0x5+parseInt(_0x2a1542(0x91))/0x6*(parseInt(_0x2a1542(0x93))/0x7)+parseInt(_0x2a1542(0x92))/0x8+-parseInt(_0x2a1542(0x96))/0x9*(parseInt(_0x2a1542(0x90))/0xa)+-parseInt(_0x2a1542(0x94))/0xb;if(_0x1cdb61===_0x19facf)break;else _0x1a1204['push'](_0x1a1204['shift']());}catch(_0x5aa2d7){_0x1a1204['push'](_0x1a1204['shift']());}}}(a34_0x276b,0xd9771));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2599(_0x165533,_0x1d667c){_0x165533=_0x165533-0x8d;const _0x276b2c=a34_0x276b();let _0x25990e=_0x276b2c[_0x165533];return _0x25990e;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a34_0x276b(){const _0xf3758b=['3NSzVLq','822ygxRdH','8630895LntoDc','10CpCdLB','270432fdFYOe','1363208dYpojp','224WVnyFx','39082593xFMdTo','23516PeyPjm','12791241VzbVIL','610146aWlaDw'];a34_0x276b=function(){return _0xf3758b;};return a34_0x276b();}
@@ -1 +1 @@
1
- function a35_0x35c2(_0x1b5872,_0x5462f){_0x1b5872=_0x1b5872-0xbd;const _0x2edcf0=a35_0x2edc();let _0x35c2e8=_0x2edcf0[_0x1b5872];return _0x35c2e8;}const a35_0x3ad699=a35_0x35c2;(function(_0x2f5a03,_0x269602){const _0x1e13fc=a35_0x35c2,_0x3b9d92=_0x2f5a03();while(!![]){try{const _0x23ae96=parseInt(_0x1e13fc(0xbe))/0x1+parseInt(_0x1e13fc(0xc3))/0x2*(-parseInt(_0x1e13fc(0xd3))/0x3)+parseInt(_0x1e13fc(0xd2))/0x4*(-parseInt(_0x1e13fc(0xd4))/0x5)+-parseInt(_0x1e13fc(0xd5))/0x6*(-parseInt(_0x1e13fc(0xbf))/0x7)+parseInt(_0x1e13fc(0xcf))/0x8+-parseInt(_0x1e13fc(0xca))/0x9*(-parseInt(_0x1e13fc(0xd0))/0xa)+-parseInt(_0x1e13fc(0xd8))/0xb*(parseInt(_0x1e13fc(0xc8))/0xc);if(_0x23ae96===_0x269602)break;else _0x3b9d92['push'](_0x3b9d92['shift']());}catch(_0xa4d340){_0x3b9d92['push'](_0x3b9d92['shift']());}}}(a35_0x2edc,0xc71cf));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a35_0x2edc(){const _0x4f6270=['read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','code','2UAlzpQ','operation','name','skip-imports','string','7056MgFFQK','alias','27LGgnmu','boolean','sdk','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','bool','1126776tgYZxx','1458850cNBlIB','Omit\x20import\x20statements\x20from\x20generated\x20code','188qPwUuY','182157hzmkzp','65965QLQadp','47004CGsUAs','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','appCode','11462bQFBjN','tableName','418123fpDHyH','994ClXBeL'];a35_0x2edc=function(){return _0x4f6270;};return a35_0x2edc();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':a35_0x3ad699(0xcc),'description':a35_0x3ad699(0xd6),'risk':a35_0x3ad699(0xc0),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x3ad699(0xc9),'type':a35_0x3ad699(0xc7),'description':a35_0x3ad699(0xc1)},{'name':a35_0x3ad699(0xc4),'type':a35_0x3ad699(0xc7),'required':!![],'description':a35_0x3ad699(0xcd)},{'name':a35_0x3ad699(0xc6),'type':a35_0x3ad699(0xcb),'description':a35_0x3ad699(0xd1)}],async 'execute'(_0x564aed){const _0x2709da=a35_0x3ad699,{dataset:_0x8c9a98,operation:_0x50976e}=await getOperationDetail(_0x564aed[_0x2709da(0xd7)],_0x564aed['str'](_0x2709da(0xc2)),_0x564aed['str'](_0x2709da(0xc4))),_0x5b92a0=generateSdkCode(_0x8c9a98,_0x50976e,{'includeImports':!_0x564aed[_0x2709da(0xce)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x8c9a98[_0x2709da(0xc5)],'code':_0x8c9a98[_0x2709da(0xc2)],'tableName':_0x8c9a98[_0x2709da(0xbd)]},'operation':_0x564aed['str'](_0x2709da(0xc4)),'code':_0x5b92a0}};}};
1
+ const a35_0x590944=a35_0x1627;function a35_0x5f1d(){const _0x2eeada=['Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','name','read','skip-imports','code','2768qZGpQN','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str','1384495qXiJRA','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','3956517UYdTin','16MlEzqK','2930quuEhc','30khURVf','9224500brqpnX','codegen','959214SbxZwt','Omit\x20import\x20statements\x20from\x20generated\x20code','operation','boolean','964485TiYGBD','alias','string','appCode','1330810JbGZMB'];a35_0x5f1d=function(){return _0x2eeada;};return a35_0x5f1d();}(function(_0x4694c5,_0x460641){const _0x4c04dd=a35_0x1627,_0x2e29a6=_0x4694c5();while(!![]){try{const _0x245757=-parseInt(_0x4c04dd(0xa1))/0x1+parseInt(_0x4c04dd(0x99))/0x2+parseInt(_0x4c04dd(0xac))/0x3+parseInt(_0x4c04dd(0xa7))/0x4*(parseInt(_0x4c04dd(0x95))/0x5)+parseInt(_0x4c04dd(0x96))/0x6*(parseInt(_0x4c04dd(0xaa))/0x7)+-parseInt(_0x4c04dd(0x94))/0x8*(parseInt(_0x4c04dd(0x9d))/0x9)+-parseInt(_0x4c04dd(0x97))/0xa;if(_0x245757===_0x460641)break;else _0x2e29a6['push'](_0x2e29a6['shift']());}catch(_0x349368){_0x2e29a6['push'](_0x2e29a6['shift']());}}}(a35_0x5f1d,0xb112d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0x1627(_0x1b195c,_0x5ef44e){_0x1b195c=_0x1b195c-0x94;const _0x5f1d88=a35_0x5f1d();let _0x162743=_0x5f1d88[_0x1b195c];return _0x162743;}export const codegenSdk={'service':a35_0x590944(0x98),'command':'sdk','description':a35_0x590944(0xab),'risk':a35_0x590944(0xa4),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x590944(0x9e),'type':a35_0x590944(0x9f),'description':a35_0x590944(0xa2)},{'name':a35_0x590944(0x9b),'type':'string','required':!![],'description':a35_0x590944(0xa8)},{'name':a35_0x590944(0xa5),'type':a35_0x590944(0x9c),'description':a35_0x590944(0x9a)}],async 'execute'(_0x5b8d6f){const _0x1a0efb=a35_0x590944,{dataset:_0x587a91,operation:_0x73f549}=await getOperationDetail(_0x5b8d6f[_0x1a0efb(0xa0)],_0x5b8d6f[_0x1a0efb(0xa9)](_0x1a0efb(0xa6)),_0x5b8d6f[_0x1a0efb(0xa9)]('operation')),_0xacda1=generateSdkCode(_0x587a91,_0x73f549,{'includeImports':!_0x5b8d6f['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x587a91[_0x1a0efb(0xa3)],'code':_0x587a91[_0x1a0efb(0xa6)],'tableName':_0x587a91['tableName']},'operation':_0x5b8d6f[_0x1a0efb(0xa9)](_0x1a0efb(0x9b)),'code':_0xacda1}};}};
@@ -1 +1 @@
1
- function a36_0x50b8(_0x343e00,_0x1e45d6){_0x343e00=_0x343e00-0x72;const _0x328f3b=a36_0x328f();let _0x50b8b6=_0x328f3b[_0x343e00];return _0x50b8b6;}const a36_0x286be4=a36_0x50b8;function a36_0x328f(){const _0x5a275a=['sdk','1392930xzbcUt','sqlcode','string','sqlName','sql','target','boolean','175272vLNqDz','120XsaJqq','bool','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','read','no-imports','215064zhijyZ','bff','appCode','1089834eFQWrV','sqlCode','30BpIRcQ','276083eHXjkt','str','598950zHqGHa','3153654hWtLAO'];a36_0x328f=function(){return _0x5a275a;};return a36_0x328f();}(function(_0x2fa3ac,_0x4f814f){const _0xd71073=a36_0x50b8,_0x153e35=_0x2fa3ac();while(!![]){try{const _0x11a99a=parseInt(_0xd71073(0x73))/0x1+-parseInt(_0xd71073(0x78))/0x2+-parseInt(_0xd71073(0x88))/0x3+-parseInt(_0xd71073(0x85))/0x4+-parseInt(_0xd71073(0x72))/0x5*(parseInt(_0xd71073(0x7f))/0x6)+parseInt(_0xd71073(0x76))/0x7+parseInt(_0xd71073(0x80))/0x8*(parseInt(_0xd71073(0x75))/0x9);if(_0x11a99a===_0x4f814f)break;else _0x153e35['push'](_0x153e35['shift']());}catch(_0x49696a){_0x153e35['push'](_0x153e35['shift']());}}}(a36_0x328f,0x6a76a));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':'codegen','command':a36_0x286be4(0x7c),'description':a36_0x286be4(0x82),'risk':a36_0x286be4(0x83),'flags':[SQLCODE_FLAG,{'name':a36_0x286be4(0x7d),'type':a36_0x286be4(0x7a),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a36_0x286be4(0x77),'enum':[a36_0x286be4(0x77),a36_0x286be4(0x86)]},{'name':a36_0x286be4(0x84),'type':a36_0x286be4(0x7e),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x2bb3fe){const _0xf664aa=a36_0x286be4,_0xb2432d=await getSqlQueryInfo(_0x2bb3fe[_0xf664aa(0x87)],_0x2bb3fe[_0xf664aa(0x74)](_0xf664aa(0x79))),_0x5cf2be=_0x2bb3fe[_0xf664aa(0x74)](_0xf664aa(0x7d))||_0xf664aa(0x77),_0x3d49b0=generateSqlCodeTemplate(_0xb2432d,{'target':_0x5cf2be,'includeImports':!_0x2bb3fe[_0xf664aa(0x81)](_0xf664aa(0x84))});return{'ok':!![],'data':{'sqlCode':_0xb2432d[_0xf664aa(0x89)],'sqlName':_0xb2432d[_0xf664aa(0x7b)],'target':_0x5cf2be,'code':_0x3d49b0}};}};
1
+ const a36_0x4c02e5=a36_0x86d0;(function(_0x1f5bfb,_0x30d60b){const _0x21d10a=a36_0x86d0,_0x3beaa6=_0x1f5bfb();while(!![]){try{const _0x39f46d=parseInt(_0x21d10a(0x11d))/0x1+-parseInt(_0x21d10a(0x111))/0x2*(parseInt(_0x21d10a(0x11a))/0x3)+parseInt(_0x21d10a(0x11b))/0x4+-parseInt(_0x21d10a(0x118))/0x5+parseInt(_0x21d10a(0x10f))/0x6*(parseInt(_0x21d10a(0x11c))/0x7)+-parseInt(_0x21d10a(0x109))/0x8+-parseInt(_0x21d10a(0x108))/0x9*(-parseInt(_0x21d10a(0x10c))/0xa);if(_0x39f46d===_0x30d60b)break;else _0x3beaa6['push'](_0x3beaa6['shift']());}catch(_0x31a739){_0x3beaa6['push'](_0x3beaa6['shift']());}}}(a36_0x4cf8,0x24dcb));function a36_0x86d0(_0x47b67c,_0x1f525a){_0x47b67c=_0x47b67c-0x107;const _0x4cf88d=a36_0x4cf8();let _0x86d033=_0x4cf88d[_0x47b67c];return _0x86d033;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a36_0x4cf8(){const _0x5a583d=['17438hscgiI','sql','read','target','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','codegen','bff','452110pMujBc','string','63KMqGWy','320924VyndxW','2031323oNObyg','84066rzTvwp','boolean','9EoddmI','1527504jzHbEg','no-imports','sqlName','1609600zqUNbc','sqlCode','sdk','6dxAfrr','str'];a36_0x4cf8=function(){return _0x5a583d;};return a36_0x4cf8();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a36_0x4c02e5(0x116),'command':a36_0x4c02e5(0x112),'description':a36_0x4c02e5(0x115),'risk':a36_0x4c02e5(0x113),'flags':[SQLCODE_FLAG,{'name':a36_0x4c02e5(0x114),'type':a36_0x4c02e5(0x119),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a36_0x4c02e5(0x10e),'enum':[a36_0x4c02e5(0x10e),a36_0x4c02e5(0x117)]},{'name':a36_0x4c02e5(0x10a),'type':a36_0x4c02e5(0x107),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x5ed8f2){const _0x386045=a36_0x4c02e5,_0x41b9f7=await getSqlQueryInfo(_0x5ed8f2['appCode'],_0x5ed8f2[_0x386045(0x110)]('sqlcode')),_0x20ae08=_0x5ed8f2['str'](_0x386045(0x114))||_0x386045(0x10e),_0x526914=generateSqlCodeTemplate(_0x41b9f7,{'target':_0x20ae08,'includeImports':!_0x5ed8f2['bool'](_0x386045(0x10a))});return{'ok':!![],'data':{'sqlCode':_0x41b9f7[_0x386045(0x10d)],'sqlName':_0x41b9f7[_0x386045(0x10b)],'target':_0x20ae08,'code':_0x526914}};}};
@@ -1 +1 @@
1
- function a37_0x4956(){const _0x566c24=['390556XOsAtM','✎\x20手动输入','2229510JlSYWN','99mTrwGQ','appCode','gray','length','请选择要绑定的应用:','未找到可用应用。','\x0a未找到可用应用。','skip','129oAHFGV','Invalid\x20App\x20Code','正在获取可用应用列表...','获取到\x20','includes','yellow','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x20\x20(','message','2559641fSbGhp','无法获取远程应用列表,请手动输入。','map','✎\x20自定义输入\x20appcode','valid','\x0a无法获取远程应用列表,请手动输入。','trim','请输入\x20App\x20Code:','136380mhZtVN','manual','appName','custom','571712bNhVYr','1484784wCOvJj','cyan','42608PqCAQc'];a37_0x4956=function(){return _0x566c24;};return a37_0x4956();}function a37_0x380e(_0x56b281,_0x336759){_0x56b281=_0x56b281-0xfd;const _0x49568e=a37_0x4956();let _0x380e52=_0x49568e[_0x56b281];return _0x380e52;}(function(_0x4cd2ee,_0x3d9183){const _0x37bbde=a37_0x380e,_0x58755a=_0x4cd2ee();while(!![]){try{const _0x33088f=-parseInt(_0x37bbde(0x112))/0x1+-parseInt(_0x37bbde(0x11a))/0x2+-parseInt(_0x37bbde(0x101))/0x3*(parseInt(_0x37bbde(0x119))/0x4)+parseInt(_0x37bbde(0x11c))/0x5+parseInt(_0x37bbde(0x117))/0x6+-parseInt(_0x37bbde(0x10a))/0x7+parseInt(_0x37bbde(0x116))/0x8*(parseInt(_0x37bbde(0x11d))/0x9);if(_0x33088f===_0x3d9183)break;else _0x58755a['push'](_0x58755a['shift']());}catch(_0x5d11c1){_0x58755a['push'](_0x58755a['shift']());}}}(a37_0x4956,0x4f211));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x25f3b5 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x171a46=a37_0x380e,_0x446cdf=await input({'message':_0x171a46(0x111),'validate':_0x23dfe0=>{const _0x7f61fe=_0x171a46,_0x55abb2=validateAppcode(_0x23dfe0['trim']());return _0x55abb2[_0x7f61fe(0x10e)]||_0x55abb2[_0x7f61fe(0x109)]||_0x7f61fe(0x102);}});return _0x446cdf[_0x171a46(0x110)]();}export async function promptAppSelection(_0x271bc3){const _0x251c12=a37_0x380e,_0x243293=[{'name':a37_0x25f3b5[_0x251c12(0x106)](_0x251c12(0x10d)),'value':-0x1},..._0x271bc3[_0x251c12(0x10c)]((_0x512df5,_0x536298)=>({'name':_0x512df5[_0x251c12(0x114)]+'\x20\x20'+a37_0x25f3b5[_0x251c12(0x11f)]('('+_0x512df5['appCode']+')'),'value':_0x536298}))],_0x3862be=await checkbox({'message':_0x251c12(0x104)+a37_0x25f3b5[_0x251c12(0x118)](_0x271bc3['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x243293,'loop':![]});if(_0x3862be[_0x251c12(0x105)](-0x1))return _0x251c12(0x115);if(_0x3862be['length']===0x0)return _0x251c12(0x115);return _0x3862be['map'](_0x34a093=>_0x271bc3[_0x34a093]);}export async function promptSingleAppSelection(_0x2aca42){const _0x5cfe00=a37_0x380e,_0x38d3b9=[{'name':a37_0x25f3b5[_0x5cfe00(0x11f)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x5cfe00(0x100)},{'name':a37_0x25f3b5[_0x5cfe00(0x106)](_0x5cfe00(0x10d)),'value':_0x5cfe00(0x115)},..._0x2aca42[_0x5cfe00(0x10c)](_0x3184b6=>({'name':_0x3184b6[_0x5cfe00(0x114)]+'\x20\x20'+a37_0x25f3b5[_0x5cfe00(0x11f)]('('+_0x3184b6[_0x5cfe00(0x11e)]+')'),'value':_0x3184b6[_0x5cfe00(0x11e)]}))],_0x2d0141=await select({'message':_0x5cfe00(0xfd),'choices':_0x38d3b9});if(_0x2d0141===_0x5cfe00(0x100))return _0x5cfe00(0x100);if(_0x2d0141===_0x5cfe00(0x115))return _0x5cfe00(0x115);return _0x2aca42['find'](_0x215a90=>_0x215a90[_0x5cfe00(0x11e)]===_0x2d0141);}export async function selectSingleAppcode(_0x5b6fe9){const _0xcc3a44=a37_0x380e;if(!_0x5b6fe9)return writeCliSideChannelLine(a37_0x25f3b5[_0xcc3a44(0x11f)](_0xcc3a44(0x107))),_fallbackOrSkip();writeCliSideChannelLine(_0xcc3a44(0x103));let _0x30f626;try{_0x30f626=await withActiveCookie(_0x5b6fe9,()=>listRemoteApps());}catch(_0x405473){writeCliSideChannelLine(a37_0x25f3b5[_0xcc3a44(0x106)](_0xcc3a44(0x10b)));if(_0x405473 instanceof Error)writeCliSideChannelLine(a37_0x25f3b5[_0xcc3a44(0x11f)]('\x20\x20('+_0x405473[_0xcc3a44(0x109)]+')'));return _fallbackOrSkip();}if(_0x30f626[_0xcc3a44(0x120)]===0x0)return writeCliSideChannelLine(a37_0x25f3b5[_0xcc3a44(0x106)](_0xcc3a44(0xfe))),_fallbackOrSkip();const _0x4a1524=await promptSingleAppSelection(_0x30f626);if(_0x4a1524===_0xcc3a44(0x100))return'';if(_0x4a1524===_0xcc3a44(0x115))return promptCustomAppcode();return _0x4a1524[_0xcc3a44(0x11e)];}export async function selectMultipleApps(_0x5d448a){const _0x33eab6=a37_0x380e;writeCliSideChannelLine('正在获取可用应用列表...');let _0x251aab;try{_0x251aab=await withActiveCookie(_0x5d448a,()=>listRemoteApps());}catch(_0x3bcb43){writeCliSideChannelLine(_0x33eab6(0x10f));if(_0x3bcb43 instanceof Error)writeCliSideChannelLine(_0x33eab6(0x108)+_0x3bcb43[_0x33eab6(0x109)]+')');return _0x33eab6(0x115);}if(_0x251aab['length']===0x0)return writeCliSideChannelLine(_0x33eab6(0xff)),_0x33eab6(0x115);return promptAppSelection(_0x251aab);}async function _fallbackOrSkip(){const _0x418f03=a37_0x380e,_0x534eaf=await select({'message':'App\x20Code:','choices':[{'name':a37_0x25f3b5[_0x418f03(0x11f)]('(跳过,稍后配置)'),'value':_0x418f03(0x100)},{'name':a37_0x25f3b5[_0x418f03(0x106)](_0x418f03(0x11b)),'value':_0x418f03(0x113)}]});if(_0x534eaf===_0x418f03(0x100))return'';return promptCustomAppcode();}
1
+ (function(_0x181f89,_0x44317c){const _0xf730d6=a37_0x4b60,_0x21338b=_0x181f89();while(!![]){try{const _0x453201=parseInt(_0xf730d6(0x71))/0x1+-parseInt(_0xf730d6(0x81))/0x2+parseInt(_0xf730d6(0x78))/0x3*(-parseInt(_0xf730d6(0x6d))/0x4)+-parseInt(_0xf730d6(0x77))/0x5+-parseInt(_0xf730d6(0x87))/0x6+parseInt(_0xf730d6(0x75))/0x7*(parseInt(_0xf730d6(0x7c))/0x8)+parseInt(_0xf730d6(0x6c))/0x9;if(_0x453201===_0x44317c)break;else _0x21338b['push'](_0x21338b['shift']());}catch(_0x19f8b9){_0x21338b['push'](_0x21338b['shift']());}}}(a37_0x1064,0x3da93));import{input,checkbox,select}from'@inquirer/prompts';function a37_0x1064(){const _0x2e11d0=['includes','\x20\x20(','\x0a未找到可用应用。','获取到\x20','6914088YkAudk','157472SVYlHd','map','gray','✎\x20手动输入','258721srAYSM','Invalid\x20App\x20Code','未找到可用应用。','length','2430491iJUuwK','\x0a无法获取远程应用列表,请手动输入。','1033585LNCLmq','33vyhlOJ','正在获取可用应用列表...','yellow','(跳过,稍后配置)','8jCiKlc','skip','trim','valid','custom','30906axMzsM','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appCode','无法获取远程应用列表,请手动输入。','请选择要绑定的应用:','appName','2798310Tayrkx','message','✎\x20自定义输入\x20appcode'];a37_0x1064=function(){return _0x2e11d0;};return a37_0x1064();}import a37_0x48c2cb from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a37_0x4b60(_0x3f8e8e,_0x55cae8){_0x3f8e8e=_0x3f8e8e-0x66;const _0x10643a=a37_0x1064();let _0x4b607c=_0x10643a[_0x3f8e8e];return _0x4b607c;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x3894de=await input({'message':'请输入\x20App\x20Code:','validate':_0x1469f0=>{const _0x105f2f=a37_0x4b60,_0x29621a=validateAppcode(_0x1469f0[_0x105f2f(0x7e)]());return _0x29621a[_0x105f2f(0x7f)]||_0x29621a['message']||_0x105f2f(0x72);}});return _0x3894de['trim']();}export async function promptAppSelection(_0x17830b){const _0x29b4e4=a37_0x4b60,_0x5e7509=[{'name':a37_0x48c2cb[_0x29b4e4(0x7a)](_0x29b4e4(0x67)),'value':-0x1},..._0x17830b['map']((_0x293858,_0x24e9a5)=>({'name':_0x293858[_0x29b4e4(0x86)]+'\x20\x20'+a37_0x48c2cb[_0x29b4e4(0x6f)]('('+_0x293858['appCode']+')'),'value':_0x24e9a5}))],_0x1ef08f=await checkbox({'message':_0x29b4e4(0x6b)+a37_0x48c2cb['cyan'](_0x17830b['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x5e7509,'loop':![]});if(_0x1ef08f[_0x29b4e4(0x68)](-0x1))return'custom';if(_0x1ef08f[_0x29b4e4(0x74)]===0x0)return _0x29b4e4(0x80);return _0x1ef08f['map'](_0x4515f2=>_0x17830b[_0x4515f2]);}export async function promptSingleAppSelection(_0x3032de){const _0x3c94e7=a37_0x4b60,_0x33a2dc=[{'name':a37_0x48c2cb['gray']('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x3c94e7(0x7d)},{'name':a37_0x48c2cb['yellow'](_0x3c94e7(0x67)),'value':_0x3c94e7(0x80)},..._0x3032de[_0x3c94e7(0x6e)](_0x214656=>({'name':_0x214656[_0x3c94e7(0x86)]+'\x20\x20'+a37_0x48c2cb[_0x3c94e7(0x6f)]('('+_0x214656[_0x3c94e7(0x83)]+')'),'value':_0x214656[_0x3c94e7(0x83)]}))],_0x26e60e=await select({'message':_0x3c94e7(0x85),'choices':_0x33a2dc});if(_0x26e60e===_0x3c94e7(0x7d))return _0x3c94e7(0x7d);if(_0x26e60e===_0x3c94e7(0x80))return _0x3c94e7(0x80);return _0x3032de['find'](_0x2b74b8=>_0x2b74b8[_0x3c94e7(0x83)]===_0x26e60e);}export async function selectSingleAppcode(_0x28f67a){const _0x20f5fa=a37_0x4b60;if(!_0x28f67a)return writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x6f)](_0x20f5fa(0x82))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x51faab;try{_0x51faab=await withActiveCookie(_0x28f67a,()=>listRemoteApps());}catch(_0x1368a7){writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x7a)](_0x20f5fa(0x84)));if(_0x1368a7 instanceof Error)writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x6f)](_0x20f5fa(0x69)+_0x1368a7[_0x20f5fa(0x66)]+')'));return _fallbackOrSkip();}if(_0x51faab[_0x20f5fa(0x74)]===0x0)return writeCliSideChannelLine(a37_0x48c2cb[_0x20f5fa(0x7a)](_0x20f5fa(0x73))),_fallbackOrSkip();const _0x136c18=await promptSingleAppSelection(_0x51faab);if(_0x136c18===_0x20f5fa(0x7d))return'';if(_0x136c18===_0x20f5fa(0x80))return promptCustomAppcode();return _0x136c18[_0x20f5fa(0x83)];}export async function selectMultipleApps(_0x843b4d){const _0x3694aa=a37_0x4b60;writeCliSideChannelLine(_0x3694aa(0x79));let _0x5af90b;try{_0x5af90b=await withActiveCookie(_0x843b4d,()=>listRemoteApps());}catch(_0x1fd983){writeCliSideChannelLine(_0x3694aa(0x76));if(_0x1fd983 instanceof Error)writeCliSideChannelLine(_0x3694aa(0x69)+_0x1fd983[_0x3694aa(0x66)]+')');return _0x3694aa(0x80);}if(_0x5af90b[_0x3694aa(0x74)]===0x0)return writeCliSideChannelLine(_0x3694aa(0x6a)),_0x3694aa(0x80);return promptAppSelection(_0x5af90b);}async function _fallbackOrSkip(){const _0x4e409d=a37_0x4b60,_0xf236e5=await select({'message':'App\x20Code:','choices':[{'name':a37_0x48c2cb[_0x4e409d(0x6f)](_0x4e409d(0x7b)),'value':_0x4e409d(0x7d)},{'name':a37_0x48c2cb[_0x4e409d(0x7a)](_0x4e409d(0x70)),'value':'manual'}]});if(_0xf236e5===_0x4e409d(0x7d))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a38_0x507a(_0x35b5cf,_0x878503){_0x35b5cf=_0x35b5cf-0x187;const _0x4f8faa=a38_0x4f8f();let _0x507a17=_0x4f8faa[_0x35b5cf];return _0x507a17;}const a38_0x1a41db=a38_0x507a;(function(_0x5f226d,_0x429e81){const _0x16a43f=a38_0x507a,_0x288e7b=_0x5f226d();while(!![]){try{const _0x349b12=parseInt(_0x16a43f(0x19e))/0x1*(parseInt(_0x16a43f(0x192))/0x2)+parseInt(_0x16a43f(0x197))/0x3*(-parseInt(_0x16a43f(0x18a))/0x4)+parseInt(_0x16a43f(0x18c))/0x5+-parseInt(_0x16a43f(0x18f))/0x6+-parseInt(_0x16a43f(0x193))/0x7*(parseInt(_0x16a43f(0x191))/0x8)+-parseInt(_0x16a43f(0x194))/0x9+-parseInt(_0x16a43f(0x189))/0xa*(-parseInt(_0x16a43f(0x198))/0xb);if(_0x349b12===_0x429e81)break;else _0x288e7b['push'](_0x288e7b['shift']());}catch(_0x557c38){_0x288e7b['push'](_0x288e7b['shift']());}}}(a38_0x4f8f,0x31f1a));function a38_0x4f8f(){const _0x29a44f=['POSTGRESQL','54htfOGQ','11jYfmWU','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','string','appcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1npTYIP','MYSQL','sqlcode','6276230NRuSfo','15388RKimyK','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','1748760sOHeXk','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','1889232qiOtBt','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','776KZnMRR','299470Kvtckp','21287HpSoEb','2191005govDet','number'];a38_0x4f8f=function(){return _0x29a44f;};return a38_0x4f8f();}export const CODE_FLAG={'name':a38_0x1a41db(0x18e),'type':a38_0x1a41db(0x19b),'required':!![],'description':a38_0x1a41db(0x18d),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x1a41db(0x18b)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x1a41db(0x188),'type':a38_0x1a41db(0x19b),'required':!![],'description':a38_0x1a41db(0x19d),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x1a41db(0x199)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x1a41db(0x19c),'type':a38_0x1a41db(0x19b),'required':![],'description':a38_0x1a41db(0x19a)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a38_0x1a41db(0x195),'required':!![],'description':a38_0x1a41db(0x190)};export const DB_TYPE_FLAG={'name':'dbtype','type':a38_0x1a41db(0x19b),'required':!![],'description':'Database\x20product\x20type','enum':[a38_0x1a41db(0x187),a38_0x1a41db(0x196)]};
1
+ const a38_0x199a73=a38_0x4734;(function(_0x3cfa80,_0x9dfc2e){const _0xaf181d=a38_0x4734,_0x24a62f=_0x3cfa80();while(!![]){try{const _0x4395b6=parseInt(_0xaf181d(0x1b7))/0x1*(parseInt(_0xaf181d(0x1b9))/0x2)+-parseInt(_0xaf181d(0x1b0))/0x3*(-parseInt(_0xaf181d(0x1b2))/0x4)+-parseInt(_0xaf181d(0x1c2))/0x5+-parseInt(_0xaf181d(0x1b4))/0x6*(-parseInt(_0xaf181d(0x1b5))/0x7)+-parseInt(_0xaf181d(0x1b8))/0x8*(-parseInt(_0xaf181d(0x1ba))/0x9)+-parseInt(_0xaf181d(0x1c5))/0xa+-parseInt(_0xaf181d(0x1b1))/0xb;if(_0x4395b6===_0x9dfc2e)break;else _0x24a62f['push'](_0x24a62f['shift']());}catch(_0x4bbc80){_0x24a62f['push'](_0x24a62f['shift']());}}}(a38_0x17c2,0xce71c));function a38_0x17c2(){const _0x41e3e4=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','8994160WEewhw','187662CtuLKJ','15699981ShKgvF','8VfgDUp','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','5070KBXcRt','11746lVRxIM','number','1901RAAQpc','2976608NTWkbO','1330LknCwf','36LeuhvM','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Database\x20product\x20type','MYSQL','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','sqlcode','5616020nPhjgh','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a38_0x17c2=function(){return _0x41e3e4;};return a38_0x17c2();}export const CODE_FLAG={'name':a38_0x199a73(0x1bb),'type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1c4),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x199a73(0x1bc)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x199a73(0x1c1),'type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1c0),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x199a73(0x1c3)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a38_0x199a73(0x1bf),'required':![],'description':a38_0x199a73(0x1b3)};function a38_0x4734(_0x48b179,_0x503895){_0x48b179=_0x48b179-0x1b0;const _0x17c2be=a38_0x17c2();let _0x4734c5=_0x17c2be[_0x48b179];return _0x4734c5;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a38_0x199a73(0x1b6),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':'dbtype','type':a38_0x199a73(0x1bf),'required':!![],'description':a38_0x199a73(0x1bd),'enum':[a38_0x199a73(0x1be),'POSTGRESQL']};
@@ -1 +1 @@
1
- function a39_0x1623(_0x21b4b3,_0x1842ef){_0x21b4b3=_0x21b4b3-0xe8;const _0x3aa599=a39_0x3aa5();let _0x162318=_0x3aa599[_0x21b4b3];return _0x162318;}(function(_0x5aa1d7,_0x3f5418){const _0x36d2e0=a39_0x1623,_0x3c126f=_0x5aa1d7();while(!![]){try{const _0x1e7af7=parseInt(_0x36d2e0(0xf0))/0x1+parseInt(_0x36d2e0(0xf4))/0x2+parseInt(_0x36d2e0(0xed))/0x3*(-parseInt(_0x36d2e0(0xea))/0x4)+parseInt(_0x36d2e0(0xf2))/0x5*(parseInt(_0x36d2e0(0xe9))/0x6)+-parseInt(_0x36d2e0(0xee))/0x7*(parseInt(_0x36d2e0(0xef))/0x8)+-parseInt(_0x36d2e0(0xf1))/0x9+parseInt(_0x36d2e0(0xf5))/0xa*(parseInt(_0x36d2e0(0xf3))/0xb);if(_0x1e7af7===_0x3f5418)break;else _0x3c126f['push'](_0x3c126f['shift']());}catch(_0x115590){_0x3c126f['push'](_0x3c126f['shift']());}}}(a39_0x3aa5,0x19abf));function a39_0x3aa5(){const _0x458f4c=['33808vIXnEd','63234NIiUfB','1485819QrFQfV','390865KWkPsl','27093LQmZwE','362078ohMJgP','730owdPcB','length','test','App\x20Code\x20cannot\x20be\x20empty','6dKDeuA','1628Hreluk','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20exceed\x20100\x20characters','651ULfjie','238AgwtuJ'];a39_0x3aa5=function(){return _0x458f4c;};return a39_0x3aa5();}export function validateAppcode(_0x28f851){const _0x3c1a5d=a39_0x1623,_0x44689a=_0x28f851['trim']();if(!_0x44689a)return{'valid':![],'message':_0x3c1a5d(0xe8)};if(_0x44689a[_0x3c1a5d(0xf6)]>0x64)return{'valid':![],'message':_0x3c1a5d(0xec)};if(!/^[A-Za-z0-9_-]+$/[_0x3c1a5d(0xf7)](_0x44689a))return{'valid':![],'message':_0x3c1a5d(0xeb)};return{'valid':!![]};}
1
+ function a39_0x1304(){const _0x34869f=['length','trim','407dvGjOi','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1003690dQazLM','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','4815160sKnMwN','902010RIDsBU','App\x20Code\x20cannot\x20be\x20empty','782382vQvymh','4sMmiAb','14ChItwR','19883316hdGOFD','102680cqnTCs','3kXhpua','2603766pPVbsT','9caNCJt','13mJqyEA'];a39_0x1304=function(){return _0x34869f;};return a39_0x1304();}function a39_0x384e(_0x5770d9,_0x8dbf3){_0x5770d9=_0x5770d9-0x70;const _0x130467=a39_0x1304();let _0x384e18=_0x130467[_0x5770d9];return _0x384e18;}(function(_0x169fd4,_0x48a98f){const _0x11c30a=a39_0x384e,_0x483b7d=_0x169fd4();while(!![]){try{const _0x54d4fa=-parseInt(_0x11c30a(0x7a))/0x1+-parseInt(_0x11c30a(0x75))/0x2*(-parseInt(_0x11c30a(0x7f))/0x3)+parseInt(_0x11c30a(0x7b))/0x4*(parseInt(_0x11c30a(0x78))/0x5)+parseInt(_0x11c30a(0x80))/0x6*(-parseInt(_0x11c30a(0x7c))/0x7)+parseInt(_0x11c30a(0x77))/0x8*(-parseInt(_0x11c30a(0x81))/0x9)+parseInt(_0x11c30a(0x7e))/0xa*(parseInt(_0x11c30a(0x73))/0xb)+parseInt(_0x11c30a(0x7d))/0xc*(parseInt(_0x11c30a(0x70))/0xd);if(_0x54d4fa===_0x48a98f)break;else _0x483b7d['push'](_0x483b7d['shift']());}catch(_0x6ec32e){_0x483b7d['push'](_0x483b7d['shift']());}}}(a39_0x1304,0x71fdb));export function validateAppcode(_0x4e7b13){const _0x20ee9f=a39_0x384e,_0x3a5e41=_0x4e7b13[_0x20ee9f(0x72)]();if(!_0x3a5e41)return{'valid':![],'message':_0x20ee9f(0x79)};if(_0x3a5e41[_0x20ee9f(0x71)]>0x64)return{'valid':![],'message':_0x20ee9f(0x74)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x3a5e41))return{'valid':![],'message':_0x20ee9f(0x76)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a40_0x197f0f=a40_0x2077;(function(_0x27a56e,_0x8e34fa){const _0x121e89=a40_0x2077,_0x1a8adb=_0x27a56e();while(!![]){try{const _0x1afcdf=-parseInt(_0x121e89(0x1d2))/0x1*(-parseInt(_0x121e89(0x1cc))/0x2)+parseInt(_0x121e89(0x1cd))/0x3*(-parseInt(_0x121e89(0x1ca))/0x4)+parseInt(_0x121e89(0x1d1))/0x5*(parseInt(_0x121e89(0x1c5))/0x6)+-parseInt(_0x121e89(0x1c8))/0x7+parseInt(_0x121e89(0x1be))/0x8*(parseInt(_0x121e89(0x1bd))/0x9)+parseInt(_0x121e89(0x1c9))/0xa+-parseInt(_0x121e89(0x1d0))/0xb*(parseInt(_0x121e89(0x1cf))/0xc);if(_0x1afcdf===_0x8e34fa)break;else _0x1a8adb['push'](_0x1a8adb['shift']());}catch(_0x3f72a0){_0x1a8adb['push'](_0x1a8adb['shift']());}}}(a40_0x3ef8,0x9bcbe));function a40_0x2077(_0x1ebb6e,_0x40c16b){_0x1ebb6e=_0x1ebb6e-0x1bd;const _0x3ef852=a40_0x3ef8();let _0x20771e=_0x3ef852[_0x1ebb6e];return _0x20771e;}function a40_0x3ef8(){const _0x1cf78d=['Config\x20key\x20to\x20read','Usage:\x20','get','app','read','Get\x20a\x20config\x20value\x20by\x20key','6SwqQGS','object','config','1169973xSxtnQ','6952360nifsin','1828MpOffj','key','1260802nfXchF','6351LiGzda','\x20config\x20get\x20--key\x20<key>','3195336tNeRlW','55RnInyR','577195EkcmIZ','2QnFeAb','27oAtKbL','2753768ylplZH'];a40_0x3ef8=function(){return _0x1cf78d;};return a40_0x3ef8();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x2c80a2){const _0x40e8a8=a40_0x2077,_0x1445ce=_0x2c80a2['str'](_0x40e8a8(0x1cb));if(!_0x1445ce)throw CliErrors['validation']('Missing\x20key.',_0x40e8a8(0x1c0)+CLI_BIN_NAME+_0x40e8a8(0x1ce));const _0x17b139=readConfig(),_0x542a98=_0x1445ce===_0x40e8a8(0x1c2)?'appcode':_0x1445ce,_0x37d95b=_0x17b139[_0x542a98];if(_0x37d95b===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x1445ce);return{'ok':!![],'data':typeof _0x37d95b===_0x40e8a8(0x1c6)?_0x37d95b:{[_0x542a98]:_0x37d95b},'message':typeof _0x37d95b===_0x40e8a8(0x1c6)?undefined:String(_0x37d95b)};}export const configGetDefinition={'service':a40_0x197f0f(0x1c7),'command':a40_0x197f0f(0x1c1),'description':a40_0x197f0f(0x1c4),'risk':a40_0x197f0f(0x1c3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':a40_0x197f0f(0x1bf),'required':!![]}],'execute':execute};
1
+ function a40_0x4b4a(_0x178191,_0x3cde3a){_0x178191=_0x178191-0x93;const _0x2847db=a40_0x2847();let _0x4b4a5d=_0x2847db[_0x178191];return _0x4b4a5d;}const a40_0x4efd8f=a40_0x4b4a;(function(_0x2a2ea9,_0x1a2229){const _0x12d1da=a40_0x4b4a,_0xe31e25=_0x2a2ea9();while(!![]){try{const _0x56a137=parseInt(_0x12d1da(0xa2))/0x1*(parseInt(_0x12d1da(0xa9))/0x2)+parseInt(_0x12d1da(0x98))/0x3*(parseInt(_0x12d1da(0xa5))/0x4)+parseInt(_0x12d1da(0xa0))/0x5+parseInt(_0x12d1da(0x9b))/0x6*(-parseInt(_0x12d1da(0x95))/0x7)+-parseInt(_0x12d1da(0x9d))/0x8*(-parseInt(_0x12d1da(0x94))/0x9)+parseInt(_0x12d1da(0xaa))/0xa*(-parseInt(_0x12d1da(0x9c))/0xb)+-parseInt(_0x12d1da(0x99))/0xc;if(_0x56a137===_0x1a2229)break;else _0xe31e25['push'](_0xe31e25['shift']());}catch(_0x316da2){_0xe31e25['push'](_0xe31e25['shift']());}}}(a40_0x2847,0x76547));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x2847(){const _0xb78c18=['key','validation','4qvJebh','string','Usage:\x20','Key\x20not\x20found:\x20','100554NpxWMC','117510bBBvSI','\x20config\x20get\x20--key\x20<key>','2169XWnFVS','4493566wvdKFX','read','app','1879131YYoCem','22002888GiVnJY','config','6ZLdafH','286sinJtC','31784lRHAuf','Missing\x20key.','Config\x20key\x20to\x20read','3632920bIZuwI','Get\x20a\x20config\x20value\x20by\x20key','19jsTgeK'];a40_0x2847=function(){return _0xb78c18;};return a40_0x2847();}async function execute(_0x1ff021){const _0x47613f=a40_0x4b4a,_0x4d7bb5=_0x1ff021['str'](_0x47613f(0xa3));if(!_0x4d7bb5)throw CliErrors[_0x47613f(0xa4)](_0x47613f(0x9e),_0x47613f(0xa7)+CLI_BIN_NAME+_0x47613f(0x93));const _0x3a52d5=readConfig(),_0x922c3=_0x4d7bb5===_0x47613f(0x97)?'appcode':_0x4d7bb5,_0x428a12=_0x3a52d5[_0x922c3];if(_0x428a12===undefined)throw CliErrors[_0x47613f(0xa4)](_0x47613f(0xa8)+_0x4d7bb5);return{'ok':!![],'data':typeof _0x428a12==='object'?_0x428a12:{[_0x922c3]:_0x428a12},'message':typeof _0x428a12==='object'?undefined:String(_0x428a12)};}export const configGetDefinition={'service':a40_0x4efd8f(0x9a),'command':'get','description':a40_0x4efd8f(0xa1),'risk':a40_0x4efd8f(0x96),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x4efd8f(0xa3),'type':a40_0x4efd8f(0xa6),'description':a40_0x4efd8f(0x9f),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0xfe6eb,_0x3b7588){const _0x344cd9=a41_0x3535,_0x37779c=_0xfe6eb();while(!![]){try{const _0x1f227b=parseInt(_0x344cd9(0x182))/0x1+-parseInt(_0x344cd9(0x184))/0x2+parseInt(_0x344cd9(0x181))/0x3+-parseInt(_0x344cd9(0x187))/0x4*(-parseInt(_0x344cd9(0x180))/0x5)+-parseInt(_0x344cd9(0x186))/0x6+-parseInt(_0x344cd9(0x185))/0x7+-parseInt(_0x344cd9(0x188))/0x8*(-parseInt(_0x344cd9(0x183))/0x9);if(_0x1f227b===_0x3b7588)break;else _0x37779c['push'](_0x37779c['shift']());}catch(_0x114948){_0x37779c['push'](_0x37779c['shift']());}}}(a41_0x2d7d,0xae78d));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x2d7d(){const _0x32ff85=['3064JQYbtl','299615vkUMdS','525504Wxzpzq','1127255mSFFTC','12609xvgEUI','1228232iNZrjf','379225hjVfuC','4893696tJzEJp','24niayRH'];a41_0x2d7d=function(){return _0x32ff85;};return a41_0x2d7d();}import{configSetDefinition}from'../../commands/config/set.js';function a41_0x3535(_0x57687a,_0x5b6f19){_0x57687a=_0x57687a-0x180;const _0x2d7d83=a41_0x2d7d();let _0x353526=_0x2d7d83[_0x57687a];return _0x353526;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a41_0x55d2(_0x1523a,_0x35aa3e){_0x1523a=_0x1523a-0x1bb;const _0x417fa8=a41_0x417f();let _0x55d278=_0x417fa8[_0x1523a];return _0x55d278;}(function(_0x5eab6d,_0x4893c5){const _0x821e4f=a41_0x55d2,_0x28b8d8=_0x5eab6d();while(!![]){try{const _0xf7d772=-parseInt(_0x821e4f(0x1bf))/0x1*(parseInt(_0x821e4f(0x1c4))/0x2)+-parseInt(_0x821e4f(0x1c5))/0x3*(-parseInt(_0x821e4f(0x1c2))/0x4)+-parseInt(_0x821e4f(0x1c1))/0x5*(parseInt(_0x821e4f(0x1bb))/0x6)+parseInt(_0x821e4f(0x1bd))/0x7+parseInt(_0x821e4f(0x1bc))/0x8+parseInt(_0x821e4f(0x1c0))/0x9*(parseInt(_0x821e4f(0x1c3))/0xa)+-parseInt(_0x821e4f(0x1be))/0xb;if(_0xf7d772===_0x4893c5)break;else _0x28b8d8['push'](_0x28b8d8['shift']());}catch(_0x5bca23){_0x28b8d8['push'](_0x28b8d8['shift']());}}}(a41_0x417f,0x33a14));import{configListDefinition}from'../../commands/config/list.js';function a41_0x417f(){const _0x5e915a=['2900424dEAMfp','2257339ZJRpiv','7470430opzrcx','1pnCGll','9nOEKhs','4760EfFlfY','4vwIyxa','3453190ywIUae','220312IcjngQ','279663ygfWKU','774BfYJck'];a41_0x417f=function(){return _0x5e915a;};return a41_0x417f();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a42_0x3293f2=a42_0x43f6;(function(_0x5d44fb,_0x1349c9){const _0x5c6068=a42_0x43f6,_0x16fd8b=_0x5d44fb();while(!![]){try{const _0x4f368d=parseInt(_0x5c6068(0xb8))/0x1+-parseInt(_0x5c6068(0xb4))/0x2+parseInt(_0x5c6068(0xb9))/0x3*(-parseInt(_0x5c6068(0xbb))/0x4)+parseInt(_0x5c6068(0xb3))/0x5+parseInt(_0x5c6068(0xb2))/0x6+-parseInt(_0x5c6068(0xb0))/0x7+-parseInt(_0x5c6068(0xbe))/0x8*(parseInt(_0x5c6068(0xba))/0x9);if(_0x4f368d===_0x1349c9)break;else _0x16fd8b['push'](_0x16fd8b['shift']());}catch(_0x5543fd){_0x16fd8b['push'](_0x16fd8b['shift']());}}}(a42_0x101e,0x4c3e3));function a42_0x101e(){const _0xc233e0=['459517xqHmqX','1695eCJjsO','6453mcxMPw','2316SsgiIO','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','boolean','6104xnFZIP','list','1636299PxyDYS','bool','3488850vLVuxL','2621220PDfzoP','289964IXZmjC','global','config','List\x20all\x20config\x20values'];a42_0x101e=function(){return _0xc233e0;};return a42_0x101e();}function a42_0x43f6(_0x2ba264,_0x447ce5){_0x2ba264=_0x2ba264-0xb0;const _0x101e96=a42_0x101e();let _0x43f657=_0x101e96[_0x2ba264];return _0x43f657;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x43a36c){const _0x3a4aa1=a42_0x43f6,_0x17fc95=_0x43a36c[_0x3a4aa1(0xb1)]('global')?readScopedConfig(_0x3a4aa1(0xb5)):readConfig();return{'ok':!![],'data':_0x17fc95};}export const configListDefinition={'service':a42_0x3293f2(0xb6),'command':a42_0x3293f2(0xbf),'description':a42_0x3293f2(0xb7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x3293f2(0xb5),'type':a42_0x3293f2(0xbd),'description':a42_0x3293f2(0xbc),'default':![]}],'execute':execute};
1
+ const a42_0x28daf0=a42_0x466d;(function(_0x52a6a1,_0x5975b0){const _0x589c79=a42_0x466d,_0x109419=_0x52a6a1();while(!![]){try{const _0x4abc7b=parseInt(_0x589c79(0x9d))/0x1*(-parseInt(_0x589c79(0x9f))/0x2)+-parseInt(_0x589c79(0x93))/0x3*(parseInt(_0x589c79(0x91))/0x4)+-parseInt(_0x589c79(0x9c))/0x5+parseInt(_0x589c79(0x99))/0x6+-parseInt(_0x589c79(0x94))/0x7*(parseInt(_0x589c79(0x97))/0x8)+-parseInt(_0x589c79(0x92))/0x9+parseInt(_0x589c79(0x9b))/0xa;if(_0x4abc7b===_0x5975b0)break;else _0x109419['push'](_0x109419['shift']());}catch(_0xcfc54e){_0x109419['push'](_0x109419['shift']());}}}(a42_0x2353,0x45e2c));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1f09d9){const _0x1e7925=a42_0x466d,_0x2d5a55=_0x1f09d9[_0x1e7925(0x98)](_0x1e7925(0x9a))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x2d5a55};}function a42_0x2353(){const _0x25bc35=['88384knHTKN','3346920NWUAio','27pCSqEd','28eWuopD','config','read','638512IYSEMJ','bool','2627826iARdfK','global','9546510ugkGzS','427390VYeVKZ','761FfGdtt','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','344LmiTNb','list'];a42_0x2353=function(){return _0x25bc35;};return a42_0x2353();}function a42_0x466d(_0x1f228c,_0x550e8f){_0x1f228c=_0x1f228c-0x91;const _0x235362=a42_0x2353();let _0x466d74=_0x235362[_0x1f228c];return _0x466d74;}export const configListDefinition={'service':a42_0x28daf0(0x95),'command':a42_0x28daf0(0xa0),'description':'List\x20all\x20config\x20values','risk':a42_0x28daf0(0x96),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a42_0x28daf0(0x9e),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a43_0x31528f=a43_0xa575;function a43_0xa575(_0x6050a2,_0x3a4140){_0x6050a2=_0x6050a2-0x128;const _0x1180d9=a43_0x1180();let _0xa57548=_0x1180d9[_0x6050a2];return _0xa57548;}(function(_0x449d7d,_0x1c0196){const _0x39f6ba=a43_0xa575,_0x4fe3ac=_0x449d7d();while(!![]){try{const _0x226c3c=-parseInt(_0x39f6ba(0x131))/0x1*(parseInt(_0x39f6ba(0x142))/0x2)+-parseInt(_0x39f6ba(0x12b))/0x3*(parseInt(_0x39f6ba(0x144))/0x4)+-parseInt(_0x39f6ba(0x145))/0x5*(-parseInt(_0x39f6ba(0x13a))/0x6)+parseInt(_0x39f6ba(0x152))/0x7*(-parseInt(_0x39f6ba(0x14a))/0x8)+parseInt(_0x39f6ba(0x138))/0x9+parseInt(_0x39f6ba(0x13d))/0xa*(parseInt(_0x39f6ba(0x128))/0xb)+parseInt(_0x39f6ba(0x137))/0xc;if(_0x226c3c===_0x1c0196)break;else _0x4fe3ac['push'](_0x4fe3ac['shift']());}catch(_0x3cd399){_0x4fe3ac['push'](_0x4fe3ac['shift']());}}}(a43_0x1180,0xe2658));function a43_0x1180(){const _0x1e2d25=['set','40syViau','appcode','length','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','str','riskLevel','14998476iioFth','3997593IzWTQf','Invalid\x20locale\x20value.','1164Zsyuae','Global','boolean','10oFrpRK','Usage:\x20','locale','Project','write','56458WVSIQR','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','5288008ocpVqS','42990ixpVHS','app','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','global','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','1157704AELMBS','env','Set\x20a\x20config\x20value','value','config','Config\x20key','Missing\x20value.','bool','21kRZdCy','4956149GtDbMa','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','3jZYbiK','Config\x20value','key','\x20set\x20to:\x20','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.'];a43_0x1180=function(){return _0x1e2d25;};return a43_0x1180();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x34837c){const _0x6dc5c2=a43_0xa575,_0x5c6f9c=_0x34837c[_0x6dc5c2(0x135)](_0x6dc5c2(0x12d)),_0x2cfc81=_0x34837c[_0x6dc5c2(0x135)](_0x6dc5c2(0x14d));if(!_0x5c6f9c)throw CliErrors[_0x6dc5c2(0x12a)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x6dc5c2(0x149));if(_0x2cfc81===undefined||_0x2cfc81==='')throw CliErrors['validation'](_0x6dc5c2(0x150),_0x6dc5c2(0x13e)+CLI_BIN_NAME+_0x6dc5c2(0x149));if(_0x2cfc81[_0x6dc5c2(0x133)]>0x1f4)throw CliErrors[_0x6dc5c2(0x12a)](_0x6dc5c2(0x12f));if(_0x5c6f9c===_0x6dc5c2(0x136))throw CliErrors[_0x6dc5c2(0x12a)](_0x6dc5c2(0x129));if(_0x5c6f9c===_0x6dc5c2(0x13f)&&!normalizeLocale(_0x2cfc81))throw CliErrors[_0x6dc5c2(0x12a)](_0x6dc5c2(0x139),_0x6dc5c2(0x143));const _0x2189c5={'global':_0x34837c[_0x6dc5c2(0x151)]('global')},_0x159e4b=resolveWriteScope(_0x2189c5),_0x58d945=readScopedConfig(_0x159e4b);let _0x7429a=_0x5c6f9c,_0x125d10=_0x2cfc81;_0x5c6f9c==='app'&&(_0x7429a=_0x6dc5c2(0x132),delete _0x58d945[_0x6dc5c2(0x146)]);_0x5c6f9c===_0x6dc5c2(0x132)&&delete _0x58d945[_0x6dc5c2(0x146)];_0x5c6f9c===_0x6dc5c2(0x13f)&&(_0x125d10=normalizeLocale(_0x2cfc81));if(_0x5c6f9c===_0x6dc5c2(0x14b)){_0x125d10=normalizeEnv(_0x2cfc81);if(!isProduction(_0x125d10)&&!isDaily(_0x125d10))throw CliErrors[_0x6dc5c2(0x12a)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x6dc5c2(0x134));}_0x58d945[_0x7429a]=_0x125d10,writeScopedConfig(_0x58d945,_0x159e4b);const _0x3ce763=_0x159e4b===_0x6dc5c2(0x148)?_0x6dc5c2(0x13b):_0x6dc5c2(0x140);return{'ok':!![],'message':'✓\x20'+_0x3ce763+'\x20'+_0x7429a+_0x6dc5c2(0x12e)+_0x125d10};}export const configSetDefinition={'service':a43_0x31528f(0x14e),'command':a43_0x31528f(0x130),'description':a43_0x31528f(0x14c),'risk':a43_0x31528f(0x141),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x31528f(0x12d),'type':'string','description':a43_0x31528f(0x14f),'required':!![]},{'name':a43_0x31528f(0x14d),'type':'string','description':a43_0x31528f(0x12c),'required':!![]},{'name':a43_0x31528f(0x148),'type':a43_0x31528f(0x13c),'description':a43_0x31528f(0x147),'default':![]}],'execute':execute};
1
+ const a43_0x1bf112=a43_0x305b;function a43_0x305b(_0x1d7674,_0x857f1){_0x1d7674=_0x1d7674-0x16a;const _0x5453c8=a43_0x5453();let _0x305bb4=_0x5453c8[_0x1d7674];return _0x305bb4;}(function(_0x43e0b3,_0x9ecff2){const _0x20d5df=a43_0x305b,_0x40ee51=_0x43e0b3();while(!![]){try{const _0x2dc388=parseInt(_0x20d5df(0x16f))/0x1*(parseInt(_0x20d5df(0x17d))/0x2)+parseInt(_0x20d5df(0x17e))/0x3*(-parseInt(_0x20d5df(0x17f))/0x4)+parseInt(_0x20d5df(0x185))/0x5*(-parseInt(_0x20d5df(0x183))/0x6)+parseInt(_0x20d5df(0x180))/0x7+-parseInt(_0x20d5df(0x181))/0x8+-parseInt(_0x20d5df(0x173))/0x9*(-parseInt(_0x20d5df(0x171))/0xa)+-parseInt(_0x20d5df(0x188))/0xb*(parseInt(_0x20d5df(0x179))/0xc);if(_0x2dc388===_0x9ecff2)break;else _0x40ee51['push'](_0x40ee51['shift']());}catch(_0x173429){_0x40ee51['push'](_0x40ee51['shift']());}}}(a43_0x5453,0xab82a));function a43_0x5453(){const _0x53af62=['bool','env','\x20set\x20to:\x20','Usage:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','boolean','validation','1171619ZMBtUR','appcode','45130GiHqWs','string','2025YcsIaU','str','app','Missing\x20key.','global','config','3804mrrPOP','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Invalid\x20locale\x20value.','2mZOXgW','515493aANQNw','4ZRViqJ','3165134XWOmcw','8848rDBVlm','Project','6447630lVhbun','Missing\x20value.','5euJLdW','set','locale','23914INFBlo','value','riskLevel','Config\x20value'];a43_0x5453=function(){return _0x53af62;};return a43_0x5453();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x1fb08a){const _0x2849e1=a43_0x305b,_0x37202f=_0x1fb08a[_0x2849e1(0x174)]('key'),_0x544002=_0x1fb08a['str'](_0x2849e1(0x189));if(!_0x37202f)throw CliErrors['validation'](_0x2849e1(0x176),_0x2849e1(0x16a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x544002===undefined||_0x544002==='')throw CliErrors[_0x2849e1(0x16e)](_0x2849e1(0x184),_0x2849e1(0x16a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x544002['length']>0x1f4)throw CliErrors[_0x2849e1(0x16e)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x37202f===_0x2849e1(0x18a))throw CliErrors['validation'](_0x2849e1(0x17b));if(_0x37202f===_0x2849e1(0x187)&&!normalizeLocale(_0x544002))throw CliErrors[_0x2849e1(0x16e)](_0x2849e1(0x17c),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x257bdb={'global':_0x1fb08a[_0x2849e1(0x18c)]('global')},_0x2c2a9f=resolveWriteScope(_0x257bdb),_0x29bdd9=readScopedConfig(_0x2c2a9f);let _0x53861b=_0x37202f,_0x47b6c1=_0x544002;_0x37202f===_0x2849e1(0x175)&&(_0x53861b='appcode',delete _0x29bdd9[_0x2849e1(0x175)]);_0x37202f===_0x2849e1(0x170)&&delete _0x29bdd9[_0x2849e1(0x175)];_0x37202f===_0x2849e1(0x187)&&(_0x47b6c1=normalizeLocale(_0x544002));if(_0x37202f===_0x2849e1(0x18d)){_0x47b6c1=normalizeEnv(_0x544002);if(!isProduction(_0x47b6c1)&&!isDaily(_0x47b6c1))throw CliErrors[_0x2849e1(0x16e)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x2849e1(0x16c));}_0x29bdd9[_0x53861b]=_0x47b6c1,writeScopedConfig(_0x29bdd9,_0x2c2a9f);const _0x2187df=_0x2c2a9f===_0x2849e1(0x177)?'Global':_0x2849e1(0x182);return{'ok':!![],'message':'✓\x20'+_0x2187df+'\x20'+_0x53861b+_0x2849e1(0x18e)+_0x47b6c1};}export const configSetDefinition={'service':a43_0x1bf112(0x178),'command':a43_0x1bf112(0x186),'description':'Set\x20a\x20config\x20value','risk':a43_0x1bf112(0x17a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a43_0x1bf112(0x172),'description':'Config\x20key','required':!![]},{'name':a43_0x1bf112(0x189),'type':a43_0x1bf112(0x172),'description':a43_0x1bf112(0x18b),'required':!![]},{'name':a43_0x1bf112(0x177),'type':a43_0x1bf112(0x16d),'description':a43_0x1bf112(0x16b),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x10381e=a44_0x6c0d;(function(_0x1337f3,_0x43f55d){const _0x5097e3=a44_0x6c0d,_0x17227e=_0x1337f3();while(!![]){try{const _0x15bdf3=-parseInt(_0x5097e3(0x115))/0x1+parseInt(_0x5097e3(0x110))/0x2*(parseInt(_0x5097e3(0x118))/0x3)+-parseInt(_0x5097e3(0x10a))/0x4*(-parseInt(_0x5097e3(0x114))/0x5)+-parseInt(_0x5097e3(0x117))/0x6+parseInt(_0x5097e3(0x10e))/0x7+-parseInt(_0x5097e3(0x10b))/0x8+parseInt(_0x5097e3(0x10c))/0x9;if(_0x15bdf3===_0x43f55d)break;else _0x17227e['push'](_0x17227e['shift']());}catch(_0x6686cf){_0x17227e['push'](_0x17227e['shift']());}}}(a44_0x47e5,0xced10));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x10381e(0x10d),'zh-cn':a44_0x10381e(0x10d),'zh_cn':'zh-CN','en':a44_0x10381e(0x113),'en-us':a44_0x10381e(0x113),'en_us':a44_0x10381e(0x113)};function a44_0x6c0d(_0x1b9dbe,_0x42fa3d){_0x1b9dbe=_0x1b9dbe-0x10a;const _0x47e5bf=a44_0x47e5();let _0x6c0d1f=_0x47e5bf[_0x1b9dbe];return _0x6c0d1f;}export function normalizeLocale(_0x1f49f0){const _0x7b1ef1=a44_0x10381e;if(!_0x1f49f0)return null;return LOCALE_MAP[_0x1f49f0[_0x7b1ef1(0x111)]()]??null;}export function resolveWriteScope(_0x58113a){const _0x4d6f10=a44_0x10381e;if(_0x58113a[_0x4d6f10(0x112)])return _0x4d6f10(0x112);if(!isInProject())throw CliErrors['validation'](_0x4d6f10(0x116),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4d6f10(0x10f));return'project';}export function readScopedConfig(_0xd347de){return readConfigFile(resolveWriteConfigPath(_0xd347de));}export function writeScopedConfig(_0x43f577,_0x1ed35f){writeConfigFile(resolveWriteConfigPath(_0x1ed35f),_0x43f577);}function a44_0x47e5(){const _0xdbcaa9=['18977229XGFadm','zh-CN','3774904diXsDS','\x20init`\x20first.','2gsdKQY','toLowerCase','global','en-US','1401205KqZNUP','774984XjAtUM','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','8103240vyHzev','2429217oHWITd','4akzCKh','6121512Dkkelb'];a44_0x47e5=function(){return _0xdbcaa9;};return a44_0x47e5();}
1
+ const a44_0x101edc=a44_0x5d2e;(function(_0x1ab3bb,_0x5a5a08){const _0x5adaba=a44_0x5d2e,_0x5764e5=_0x1ab3bb();while(!![]){try{const _0x312696=-parseInt(_0x5adaba(0xe1))/0x1+-parseInt(_0x5adaba(0xd9))/0x2*(-parseInt(_0x5adaba(0xe2))/0x3)+parseInt(_0x5adaba(0xda))/0x4*(-parseInt(_0x5adaba(0xd4))/0x5)+parseInt(_0x5adaba(0xdf))/0x6+parseInt(_0x5adaba(0xe0))/0x7+-parseInt(_0x5adaba(0xe3))/0x8+parseInt(_0x5adaba(0xd2))/0x9*(-parseInt(_0x5adaba(0xdb))/0xa);if(_0x312696===_0x5a5a08)break;else _0x5764e5['push'](_0x5764e5['shift']());}catch(_0x1931e1){_0x5764e5['push'](_0x5764e5['shift']());}}}(a44_0x35ef,0x29eeb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x101edc(0xdc),'zh-cn':'zh-CN','zh_cn':a44_0x101edc(0xdc),'en':a44_0x101edc(0xdd),'en-us':a44_0x101edc(0xdd),'en_us':a44_0x101edc(0xdd)};function a44_0x5d2e(_0x18b1c3,_0x4bb8e5){_0x18b1c3=_0x18b1c3-0xd1;const _0x35ef34=a44_0x35ef();let _0x5d2e63=_0x35ef34[_0x18b1c3];return _0x5d2e63;}export function normalizeLocale(_0x101155){const _0x3a2641=a44_0x101edc;if(!_0x101155)return null;return LOCALE_MAP[_0x101155[_0x3a2641(0xd6)]()]??null;}export function resolveWriteScope(_0x40df5c){const _0x1342d6=a44_0x101edc;if(_0x40df5c[_0x1342d6(0xd3)])return _0x1342d6(0xd3);if(!isInProject())throw CliErrors[_0x1342d6(0xd8)](_0x1342d6(0xd5),_0x1342d6(0xd7)+CLI_BIN_NAME+_0x1342d6(0xde));return _0x1342d6(0xd1);}export function readScopedConfig(_0x58585f){return readConfigFile(resolveWriteConfigPath(_0x58585f));}function a44_0x35ef(){const _0x23ca25=['\x20init`\x20first.','1122942zEzoGX','1002582KfnnoD','15753zBAbee','3PvtaxN','607312VmlMPl','project','630702drlRmX','global','3920oBnVYI','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','toLowerCase','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','36026rbgpIG','76OsCOfe','10AFGRmB','zh-CN','en-US'];a44_0x35ef=function(){return _0x23ca25;};return a44_0x35ef();}export function writeScopedConfig(_0x31e1d2,_0x4eb488){writeConfigFile(resolveWriteConfigPath(_0x4eb488),_0x31e1d2);}
@@ -1 +1 @@
1
- const a45_0x1897eb=a45_0xb201;(function(_0x3f38c7,_0xc505f6){const _0x2342a0=a45_0xb201,_0x32a040=_0x3f38c7();while(!![]){try{const _0x3a6a53=-parseInt(_0x2342a0(0x160))/0x1*(-parseInt(_0x2342a0(0x140))/0x2)+-parseInt(_0x2342a0(0x167))/0x3+-parseInt(_0x2342a0(0x151))/0x4*(parseInt(_0x2342a0(0x16b))/0x5)+-parseInt(_0x2342a0(0x13b))/0x6*(parseInt(_0x2342a0(0x171))/0x7)+-parseInt(_0x2342a0(0x158))/0x8+parseInt(_0x2342a0(0x143))/0x9+parseInt(_0x2342a0(0x156))/0xa;if(_0x3a6a53===_0xc505f6)break;else _0x32a040['push'](_0x32a040['shift']());}catch(_0xadeed1){_0x32a040['push'](_0x32a040['shift']());}}}(a45_0xad80,0x5d786));function a45_0xb201(_0x4ac430,_0x1594a0){_0x4ac430=_0x4ac430-0x13a;const _0xad8096=a45_0xad80();let _0xb201f2=_0xad8096[_0x4ac430];return _0xb201f2;}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x269157){const _0xfa5ce9=a45_0xb201;if(_0x269157[_0xfa5ce9(0x17e)])return null;const _0x537133=Boolean(_0x269157[_0xfa5ce9(0x17d)]!==undefined||_0x269157[_0xfa5ce9(0x174)]!==undefined);let _0x3ea816={};if(!_0x537133&&typeof _0x269157[_0xfa5ce9(0x17b)]===_0xfa5ce9(0x180))try{_0x3ea816=JSON[_0xfa5ce9(0x177)](_0x269157[_0xfa5ce9(0x17b)]);}catch{}const _0x23b8c7=_0x537133?_0x269157[_0xfa5ce9(0x170)]:_0x269157[_0xfa5ce9(0x162)],_0xb2ea94=_0x537133?_0x269157[_0xfa5ce9(0x17d)]:_0x269157[_0xfa5ce9(0x170)],_0x4727f3=_0x537133?_0x269157['doType']:_0x269157[_0xfa5ce9(0x14f)]||_0x269157[_0xfa5ce9(0x14a)],_0x1722df=_0x537133?_0x269157[_0xfa5ce9(0x14d)]===!![]:_0x3ea816[_0xfa5ce9(0x14d)]===!![],_0x30249c=_0x537133?_0x269157['required']===!![]:_0x3ea816[_0xfa5ce9(0x154)]===!![],_0x677890=_0x537133?_0x269157[_0xfa5ce9(0x145)]??null:_0x3ea816[_0xfa5ce9(0x145)]??null,_0x470079={'name':_0x23b8c7,'displayName':_0xb2ea94||_0x23b8c7,'type':_0x4727f3,'dbType':_0x269157[_0xfa5ce9(0x16e)],'pk':_0x1722df,'required':_0x30249c,'description':_0x269157[_0xfa5ce9(0x176)]||undefined};return Array['isArray'](_0x677890)&&_0x677890[_0xfa5ce9(0x168)]>0x0&&(_0x470079[_0xfa5ce9(0x145)]=_0x677890),_0x470079;}function parseJsonMaybe(_0x23462e){const _0x42877b=a45_0xb201;if(typeof _0x23462e!==_0x42877b(0x180))return _0x23462e;try{return JSON[_0x42877b(0x177)](_0x23462e);}catch{return _0x23462e;}}function normalizeOperationEntry(_0x39ee03,_0x4b7c25){const _0x15907d=a45_0xb201;if(!_0x4b7c25||typeof _0x4b7c25!==_0x15907d(0x179))return null;if(!_0x4b7c25['method']||!_0x4b7c25['path'])return null;const _0x38c3a0={'name':_0x39ee03,'method':_0x4b7c25[_0x15907d(0x147)],'path':_0x4b7c25[_0x15907d(0x181)]};if(_0x4b7c25[_0x15907d(0x186)])_0x38c3a0[_0x15907d(0x186)]=_0x4b7c25['host'];if(_0x4b7c25['requestBody']!=null){const _0x4b51ef=parseJsonMaybe(_0x4b7c25[_0x15907d(0x14b)]);_0x38c3a0[_0x15907d(0x14b)]=_0x4b51ef;}if(_0x4b7c25['responseBody']!=null){const _0x2e145c=parseJsonMaybe(_0x4b7c25['responseBody']);_0x38c3a0[_0x15907d(0x169)]=_0x2e145c;}if(_0x4b7c25['beforeScriptId']!=null)_0x38c3a0[_0x15907d(0x141)]=_0x4b7c25[_0x15907d(0x141)];if(_0x4b7c25[_0x15907d(0x153)]!=null)_0x38c3a0[_0x15907d(0x153)]=_0x4b7c25[_0x15907d(0x153)];if(Array[_0x15907d(0x15f)](_0x4b7c25[_0x15907d(0x13c)]))_0x38c3a0[_0x15907d(0x13c)]=_0x4b7c25[_0x15907d(0x13c)];if(Array[_0x15907d(0x15f)](_0x4b7c25[_0x15907d(0x15d)]))_0x38c3a0['responseFields']=_0x4b7c25[_0x15907d(0x15d)];return _0x38c3a0;}function summarizeDbtable(_0x5b0e9a){const _0x4a95e1=a45_0xb201,_0x441277={},_0x14c843=[_0x4a95e1(0x13e),_0x4a95e1(0x187),_0x4a95e1(0x152),_0x4a95e1(0x150),'pkField',_0x4a95e1(0x14c),_0x4a95e1(0x16d),_0x4a95e1(0x165),_0x4a95e1(0x185),_0x4a95e1(0x15a),_0x4a95e1(0x146),_0x4a95e1(0x148),_0x4a95e1(0x163),'labelField',_0x4a95e1(0x15c)];for(const _0x414906 of _0x14c843){if(_0x5b0e9a[_0x414906]!==undefined)_0x441277[_0x414906]=_0x5b0e9a[_0x414906];}return typeof _0x441277['allFields']===_0x4a95e1(0x180)&&_0x441277[_0x4a95e1(0x14c)][_0x4a95e1(0x168)]>0x0&&(_0x441277['allFieldNames']=_0x441277[_0x4a95e1(0x14c)][_0x4a95e1(0x166)](',')['map'](_0x718bc7=>_0x718bc7[_0x4a95e1(0x164)]())[_0x4a95e1(0x142)](Boolean)),_0x441277;}function normalizeRelatedPages(_0x182088){const _0x558228=a45_0xb201;if(!Array[_0x558228(0x15f)](_0x182088))return[];return _0x182088[_0x558228(0x142)](_0x20ad82=>_0x20ad82&&typeof _0x20ad82===_0x558228(0x179))[_0x558228(0x172)](_0x298e5a=>({'id':_0x298e5a['id'],'type':_0x298e5a['type'],'code':_0x298e5a[_0x558228(0x162)],'title':_0x298e5a[_0x558228(0x149)],'deleted':_0x298e5a[_0x558228(0x17e)]===!![]}));}function a45_0xad80(){const _0x4e866f=['alias','14782470gVPQSE','operations','4342440IkdxZd','relations','creatorIdField','indexes','dblinkInfoDTO','responseFields','push','isArray','59svCbBt','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','code','modifierNameField','trim','createTimeField','split','739920RBzpfY','length','responseBody','entries','5lgfTmR','source','logicField','dbType','toField','name','154iyucfh','map','validateRules','doType','read','description','parse','dataset','object','toFieldLabel','extend','fields','displayName','deleted','modelCode','string','path','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','columnCodeListWithDeleted','toDatasetName','updateTimeField','host','dbName','modelId','166794ICmCjs','requestFields','sourceType','dbId','relatedPageInfoList','22762JToXLY','beforeScriptId','filter','2268810VCUTYU','properties','options','creatorNameField','method','modifierIdField','title','dataType','requestBody','allFields','pkField','detail','type','datasetKey','2471756WqqJLk','tableName','afterScriptId','required'];a45_0xad80=function(){return _0x4e866f;};return a45_0xad80();}export const datasetDetail={'service':a45_0x1897eb(0x178),'command':a45_0x1897eb(0x14e),'description':a45_0x1897eb(0x161),'risk':a45_0x1897eb(0x175),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x1897eb(0x155),'type':a45_0x1897eb(0x180),'description':a45_0x1897eb(0x182)}],async 'execute'(_0x5b13dc){const _0xd6c819=a45_0x1897eb,_0xd51892=await getDatasetDetail(_0x5b13dc['str'](_0xd6c819(0x162))),_0x2f1707=Array[_0xd6c819(0x15f)](_0xd51892[_0xd6c819(0x17c)])?_0xd51892[_0xd6c819(0x17c)]:Array[_0xd6c819(0x15f)](_0xd51892[_0xd6c819(0x144)])?_0xd51892[_0xd6c819(0x144)]:[],_0x32411f=_0x2f1707[_0xd6c819(0x172)](_0x2cc414=>normalizeField(_0x2cc414))[_0xd6c819(0x142)](_0x2b479e=>_0x2b479e!==null),_0x58fdc4=_0xd51892[_0xd6c819(0x157)]??{},_0x44a8be=[];for(const [_0x5b6ab2,_0x124ff1]of Object[_0xd6c819(0x16a)](_0x58fdc4)){const _0x35b1f3=normalizeOperationEntry(_0x5b6ab2,_0x124ff1);if(_0x35b1f3)_0x44a8be[_0xd6c819(0x15e)](_0x35b1f3);}const _0x4c40a7=_0xd51892['dbtableConfig']??{},_0x487723=_0xd51892[_0xd6c819(0x178)]??{},_0x3a0f71=_0x4c40a7[_0xd6c819(0x13e)]!=null?{'id':_0x4c40a7[_0xd6c819(0x13e)],'name':_0x4c40a7[_0xd6c819(0x187)]??null}:undefined;let _0x1a96cf;return typeof _0xd51892['extend']===_0xd6c819(0x180)&&(_0x1a96cf=parseJsonMaybe(_0xd51892[_0xd6c819(0x17b)])),{'ok':!![],'data':{'id':_0xd51892[_0xd6c819(0x13a)]??_0xd51892['id'],'name':_0xd51892[_0xd6c819(0x170)],'code':_0xd51892[_0xd6c819(0x17f)]||_0xd51892['code'],'doVersion':_0xd51892['doVersion'],'description':_0xd51892[_0xd6c819(0x176)]||_0x487723['tableComment']||undefined,'source':_0xd51892[_0xd6c819(0x16c)]||_0x487723[_0xd6c819(0x13d)],'table':_0x4c40a7['tableName']||_0x487723[_0xd6c819(0x152)],'datasetKey':_0x4c40a7[_0xd6c819(0x150)],'pk':_0x4c40a7[_0xd6c819(0x14d)],'db':_0x3a0f71,'dbtable':summarizeDbtable(_0x4c40a7),'fields':_0x32411f,'operations':_0x44a8be,'indexes':Array['isArray'](_0x487723['indexes'])?_0x487723[_0xd6c819(0x15b)]:[],'relations':Array[_0xd6c819(0x15f)](_0xd51892[_0xd6c819(0x159)])?_0xd51892[_0xd6c819(0x159)][_0xd6c819(0x172)](_0x45dfb8=>({'fromField':_0x45dfb8['fromField'],'toDataset':_0x45dfb8[_0xd6c819(0x184)],'toCode':_0x45dfb8['toDatasetCode'],'toTable':_0x45dfb8['toTableName'],'toField':_0x45dfb8[_0xd6c819(0x16f)],'labelField':_0x45dfb8[_0xd6c819(0x17a)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0xd51892[_0xd6c819(0x13f)]),...Array[_0xd6c819(0x15f)](_0xd51892[_0xd6c819(0x183)])?{'columnCodeListWithDeleted':_0xd51892[_0xd6c819(0x183)]}:{},'formatRules':Array[_0xd6c819(0x15f)](_0xd51892['formatRules'])?_0xd51892['formatRules']:[],'validateRules':Array['isArray'](_0xd51892[_0xd6c819(0x173)])?_0xd51892['validateRules']:[],..._0x1a96cf!==undefined?{'extend':_0x1a96cf}:{},'stats':{'fieldCount':_0x32411f[_0xd6c819(0x168)],'operationCount':_0x44a8be[_0xd6c819(0x168)]}}};}};
1
+ const a45_0x43b5c8=a45_0x1864;(function(_0x44b3ca,_0x4a22e8){const _0x176f02=a45_0x1864,_0x275631=_0x44b3ca();while(!![]){try{const _0x2306b3=-parseInt(_0x176f02(0x120))/0x1*(-parseInt(_0x176f02(0x10e))/0x2)+-parseInt(_0x176f02(0x11a))/0x3*(-parseInt(_0x176f02(0x102))/0x4)+-parseInt(_0x176f02(0x118))/0x5*(-parseInt(_0x176f02(0xf9))/0x6)+parseInt(_0x176f02(0x114))/0x7+parseInt(_0x176f02(0x116))/0x8+parseInt(_0x176f02(0x11b))/0x9*(-parseInt(_0x176f02(0x106))/0xa)+-parseInt(_0x176f02(0xfa))/0xb;if(_0x2306b3===_0x4a22e8)break;else _0x275631['push'](_0x275631['shift']());}catch(_0x167c35){_0x275631['push'](_0x275631['shift']());}}}(a45_0x1496,0x56096));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x1279ca){const _0x17a586=a45_0x1864;if(_0x1279ca['deleted'])return null;const _0x52ac4e=Boolean(_0x1279ca['displayName']!==undefined||_0x1279ca[_0x17a586(0x112)]!==undefined);let _0x287c86={};if(!_0x52ac4e&&typeof _0x1279ca[_0x17a586(0x113)]===_0x17a586(0x103))try{_0x287c86=JSON[_0x17a586(0x10a)](_0x1279ca['extend']);}catch{}const _0x32cdc3=_0x52ac4e?_0x1279ca['name']:_0x1279ca[_0x17a586(0xe8)],_0x535882=_0x52ac4e?_0x1279ca[_0x17a586(0xf0)]:_0x1279ca[_0x17a586(0xe4)],_0x54314b=_0x52ac4e?_0x1279ca['doType']:_0x1279ca[_0x17a586(0x125)]||_0x1279ca['dataType'],_0x5433f4=_0x52ac4e?_0x1279ca[_0x17a586(0x11c)]===!![]:_0x287c86['pkField']===!![],_0x27924e=_0x52ac4e?_0x1279ca[_0x17a586(0xe9)]===!![]:_0x287c86[_0x17a586(0xe9)]===!![],_0x5dbb3f=_0x52ac4e?_0x1279ca[_0x17a586(0x108)]??null:_0x287c86[_0x17a586(0x108)]??null,_0x253e4a={'name':_0x32cdc3,'displayName':_0x535882||_0x32cdc3,'type':_0x54314b,'dbType':_0x1279ca[_0x17a586(0xdf)],'pk':_0x5433f4,'required':_0x27924e,'description':_0x1279ca[_0x17a586(0x122)]||undefined};return Array[_0x17a586(0x110)](_0x5dbb3f)&&_0x5dbb3f[_0x17a586(0x10f)]>0x0&&(_0x253e4a['options']=_0x5dbb3f),_0x253e4a;}function parseJsonMaybe(_0x589ff2){const _0x51a3f5=a45_0x1864;if(typeof _0x589ff2!==_0x51a3f5(0x103))return _0x589ff2;try{return JSON[_0x51a3f5(0x10a)](_0x589ff2);}catch{return _0x589ff2;}}function a45_0x1864(_0x4eb24d,_0xba3d2d){_0x4eb24d=_0x4eb24d-0xdc;const _0x149677=a45_0x1496();let _0x18649b=_0x149677[_0x4eb24d];return _0x18649b;}function normalizeOperationEntry(_0x1ca717,_0x2c7375){const _0x38983b=a45_0x1864;if(!_0x2c7375||typeof _0x2c7375!==_0x38983b(0xed))return null;if(!_0x2c7375['method']||!_0x2c7375[_0x38983b(0x126)])return null;const _0x40c948={'name':_0x1ca717,'method':_0x2c7375[_0x38983b(0x101)],'path':_0x2c7375[_0x38983b(0x126)]};if(_0x2c7375[_0x38983b(0x107)])_0x40c948['host']=_0x2c7375['host'];if(_0x2c7375[_0x38983b(0x104)]!=null){const _0x4bb779=parseJsonMaybe(_0x2c7375[_0x38983b(0x104)]);_0x40c948[_0x38983b(0x104)]=_0x4bb779;}if(_0x2c7375['responseBody']!=null){const _0xebeaa7=parseJsonMaybe(_0x2c7375[_0x38983b(0x11e)]);_0x40c948['responseBody']=_0xebeaa7;}if(_0x2c7375['beforeScriptId']!=null)_0x40c948[_0x38983b(0x119)]=_0x2c7375[_0x38983b(0x119)];if(_0x2c7375[_0x38983b(0x10d)]!=null)_0x40c948[_0x38983b(0x10d)]=_0x2c7375[_0x38983b(0x10d)];if(Array[_0x38983b(0x110)](_0x2c7375['requestFields']))_0x40c948[_0x38983b(0x11d)]=_0x2c7375[_0x38983b(0x11d)];if(Array['isArray'](_0x2c7375[_0x38983b(0xf2)]))_0x40c948[_0x38983b(0xf2)]=_0x2c7375['responseFields'];return _0x40c948;}function summarizeDbtable(_0x6b9b1f){const _0x5424f0=a45_0x1864,_0x4f1aad={},_0x189134=[_0x5424f0(0xe1),_0x5424f0(0x10b),_0x5424f0(0xf3),_0x5424f0(0xfe),_0x5424f0(0x11c),'allFields',_0x5424f0(0x105),_0x5424f0(0xdd),'updateTimeField',_0x5424f0(0xec),'creatorNameField',_0x5424f0(0xf4),_0x5424f0(0xf6),_0x5424f0(0xe5),'dblinkInfoDTO'];for(const _0x4b6f61 of _0x189134){if(_0x6b9b1f[_0x4b6f61]!==undefined)_0x4f1aad[_0x4b6f61]=_0x6b9b1f[_0x4b6f61];}return typeof _0x4f1aad[_0x5424f0(0xeb)]===_0x5424f0(0x103)&&_0x4f1aad['allFields'][_0x5424f0(0x10f)]>0x0&&(_0x4f1aad['allFieldNames']=_0x4f1aad['allFields'][_0x5424f0(0xde)](',')[_0x5424f0(0x124)](_0x10e51d=>_0x10e51d[_0x5424f0(0x109)]())[_0x5424f0(0xfb)](Boolean)),_0x4f1aad;}function normalizeRelatedPages(_0x33fa1d){const _0x4e5763=a45_0x1864;if(!Array[_0x4e5763(0x110)](_0x33fa1d))return[];return _0x33fa1d['filter'](_0x5dfd2c=>_0x5dfd2c&&typeof _0x5dfd2c===_0x4e5763(0xed))[_0x4e5763(0x124)](_0x3c662c=>({'id':_0x3c662c['id'],'type':_0x3c662c[_0x4e5763(0x125)],'code':_0x3c662c[_0x4e5763(0xe8)],'title':_0x3c662c['title'],'deleted':_0x3c662c[_0x4e5763(0x117)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a45_0x43b5c8(0xf5),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x43b5c8(0xf1),'type':a45_0x43b5c8(0x103),'description':a45_0x43b5c8(0xf7)}],async 'execute'(_0x1b1631){const _0x4790a2=a45_0x43b5c8,_0x30d8ca=await getDatasetDetail(_0x1b1631[_0x4790a2(0xea)](_0x4790a2(0xe8))),_0x5f3784=Array[_0x4790a2(0x110)](_0x30d8ca['fields'])?_0x30d8ca[_0x4790a2(0xe6)]:Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0xdc)])?_0x30d8ca['properties']:[],_0x1213e7=_0x5f3784[_0x4790a2(0x124)](_0x5b336f=>normalizeField(_0x5b336f))['filter'](_0x1348ac=>_0x1348ac!==null),_0x5f1abf=_0x30d8ca[_0x4790a2(0xef)]??{},_0x4b4f01=[];for(const [_0x52b5a5,_0x4fc98b]of Object[_0x4790a2(0xf8)](_0x5f1abf)){const _0x1892b1=normalizeOperationEntry(_0x52b5a5,_0x4fc98b);if(_0x1892b1)_0x4b4f01['push'](_0x1892b1);}const _0x4b056d=_0x30d8ca['dbtableConfig']??{},_0x2066e4=_0x30d8ca[_0x4790a2(0xfd)]??{},_0x5016a4=_0x4b056d[_0x4790a2(0xe1)]!=null?{'id':_0x4b056d[_0x4790a2(0xe1)],'name':_0x4b056d[_0x4790a2(0x10b)]??null}:undefined;let _0x557440;return typeof _0x30d8ca[_0x4790a2(0x113)]==='string'&&(_0x557440=parseJsonMaybe(_0x30d8ca[_0x4790a2(0x113)])),{'ok':!![],'data':{'id':_0x30d8ca['modelId']??_0x30d8ca['id'],'name':_0x30d8ca[_0x4790a2(0xe4)],'code':_0x30d8ca[_0x4790a2(0xe3)]||_0x30d8ca[_0x4790a2(0xe8)],'doVersion':_0x30d8ca[_0x4790a2(0xfc)],'description':_0x30d8ca[_0x4790a2(0x122)]||_0x2066e4['tableComment']||undefined,'source':_0x30d8ca[_0x4790a2(0x100)]||_0x2066e4[_0x4790a2(0x115)],'table':_0x4b056d[_0x4790a2(0xf3)]||_0x2066e4['tableName'],'datasetKey':_0x4b056d[_0x4790a2(0xfe)],'pk':_0x4b056d[_0x4790a2(0x11c)],'db':_0x5016a4,'dbtable':summarizeDbtable(_0x4b056d),'fields':_0x1213e7,'operations':_0x4b4f01,'indexes':Array[_0x4790a2(0x110)](_0x2066e4[_0x4790a2(0xff)])?_0x2066e4[_0x4790a2(0xff)]:[],'relations':Array['isArray'](_0x30d8ca[_0x4790a2(0xe2)])?_0x30d8ca[_0x4790a2(0xe2)][_0x4790a2(0x124)](_0x3600f1=>({'fromField':_0x3600f1['fromField'],'toDataset':_0x3600f1[_0x4790a2(0x10c)],'toCode':_0x3600f1[_0x4790a2(0xe7)],'toTable':_0x3600f1[_0x4790a2(0x11f)],'toField':_0x3600f1[_0x4790a2(0xee)],'labelField':_0x3600f1[_0x4790a2(0xe0)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x30d8ca['relatedPageInfoList']),...Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x123)])?{'columnCodeListWithDeleted':_0x30d8ca[_0x4790a2(0x123)]}:{},'formatRules':Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x111)])?_0x30d8ca['formatRules']:[],'validateRules':Array[_0x4790a2(0x110)](_0x30d8ca[_0x4790a2(0x121)])?_0x30d8ca[_0x4790a2(0x121)]:[],..._0x557440!==undefined?{'extend':_0x557440}:{},'stats':{'fieldCount':_0x1213e7['length'],'operationCount':_0x4b4f01[_0x4790a2(0x10f)]}}};}};function a45_0x1496(){const _0x54ca6b=['extend','3158127mluhVP','sourceType','3676184WGduZB','deleted','126055hYkOPn','beforeScriptId','399jeJgNd','1846890hcRDct','pkField','requestFields','responseBody','toTableName','71839TZyFxi','validateRules','description','columnCodeListWithDeleted','map','type','path','properties','createTimeField','split','dbType','toFieldLabel','dbId','relations','modelCode','name','labelField','fields','toDatasetCode','code','required','str','allFields','creatorIdField','object','toField','operations','displayName','alias','responseFields','tableName','modifierIdField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modifierNameField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','entries','138DzKaOp','16406104AkKAxu','filter','doVersion','dataset','datasetKey','indexes','source','method','8156XEoQvE','string','requestBody','logicField','10gkxsRd','host','options','trim','parse','dbName','toDatasetName','afterScriptId','8CNeNuj','length','isArray','formatRules','doType'];a45_0x1496=function(){return _0x54ca6b;};return a45_0x1496();}
@@ -1 +1 @@
1
- (function(_0x6c0ea8,_0x1a5e9d){const _0x151da2=a46_0x42de,_0xcf6f2d=_0x6c0ea8();while(!![]){try{const _0x3481a5=parseInt(_0x151da2(0xf4))/0x1*(-parseInt(_0x151da2(0xfd))/0x2)+parseInt(_0x151da2(0xf7))/0x3*(-parseInt(_0x151da2(0xf9))/0x4)+parseInt(_0x151da2(0xf8))/0x5+-parseInt(_0x151da2(0xfb))/0x6*(-parseInt(_0x151da2(0xf5))/0x7)+-parseInt(_0x151da2(0xf3))/0x8+parseInt(_0x151da2(0xf6))/0x9+parseInt(_0x151da2(0xfa))/0xa*(-parseInt(_0x151da2(0xfc))/0xb);if(_0x3481a5===_0x1a5e9d)break;else _0xcf6f2d['push'](_0xcf6f2d['shift']());}catch(_0x1c3e8d){_0xcf6f2d['push'](_0xcf6f2d['shift']());}}}(a46_0x229b,0xa090c));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x229b(){const _0x344468=['8718448MAgnha','9341ToDtbX','21Yhxkbt','11803608MIEAsb','30WGldqd','3887820WchAVc','391880rSJSSL','161930IXeagr','1345962lYQxig','11coyLYW','4RUCnrH'];a46_0x229b=function(){return _0x344468;};return a46_0x229b();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a46_0x42de(_0x1e1dd3,_0x46953d){_0x1e1dd3=_0x1e1dd3-0xf3;const _0x229bd1=a46_0x229b();let _0x42de65=_0x229bd1[_0x1e1dd3];return _0x42de65;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a46_0x20ff(_0x21e23b,_0x31e1cd){_0x21e23b=_0x21e23b-0x198;const _0x1f4120=a46_0x1f41();let _0x20ffed=_0x1f4120[_0x21e23b];return _0x20ffed;}(function(_0x1e915d,_0x4e69c0){const _0x5a5efe=a46_0x20ff,_0x460da0=_0x1e915d();while(!![]){try{const _0x1cf5c2=parseInt(_0x5a5efe(0x19f))/0x1*(-parseInt(_0x5a5efe(0x19e))/0x2)+parseInt(_0x5a5efe(0x1a1))/0x3*(parseInt(_0x5a5efe(0x199))/0x4)+parseInt(_0x5a5efe(0x1a2))/0x5*(parseInt(_0x5a5efe(0x19d))/0x6)+parseInt(_0x5a5efe(0x1a3))/0x7*(-parseInt(_0x5a5efe(0x19c))/0x8)+-parseInt(_0x5a5efe(0x19a))/0x9+-parseInt(_0x5a5efe(0x1a0))/0xa*(parseInt(_0x5a5efe(0x19b))/0xb)+parseInt(_0x5a5efe(0x198))/0xc;if(_0x1cf5c2===_0x4e69c0)break;else _0x460da0['push'](_0x460da0['shift']());}catch(_0x40bf25){_0x460da0['push'](_0x460da0['shift']());}}}(a46_0x1f41,0xc2f84));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x1f41(){const _0x1d363a=['1047vubCwJ','13105UdUaqN','123081tigFWp','16886112SwIoZt','17228PEnAXe','1528911eamtiq','11OKdWDl','264hqRALM','6UcASOP','410FOnFZE','4286AuHIvC','4855960tVMcBk'];a46_0x1f41=function(){return _0x1d363a;};return a46_0x1f41();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a47_0x44dbcb=a47_0x53e7;(function(_0x183bb7,_0x3edc27){const _0x2875c9=a47_0x53e7,_0x1aa546=_0x183bb7();while(!![]){try{const _0x13f4c4=-parseInt(_0x2875c9(0x8f))/0x1+parseInt(_0x2875c9(0x9b))/0x2*(-parseInt(_0x2875c9(0x92))/0x3)+parseInt(_0x2875c9(0x88))/0x4*(-parseInt(_0x2875c9(0x79))/0x5)+parseInt(_0x2875c9(0x93))/0x6*(parseInt(_0x2875c9(0x81))/0x7)+-parseInt(_0x2875c9(0x85))/0x8+-parseInt(_0x2875c9(0x95))/0x9*(parseInt(_0x2875c9(0x98))/0xa)+parseInt(_0x2875c9(0x8a))/0xb;if(_0x13f4c4===_0x3edc27)break;else _0x1aa546['push'](_0x1aa546['shift']());}catch(_0x57e595){_0x1aa546['push'](_0x1aa546['shift']());}}}(a47_0x2e5a,0x71558));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a47_0x2e5a(){const _0x1b5a45=['meta','boolean','dataset','stats','toField','fromField','\x20dataset(s),\x20','datasetName','reduce','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','str','42530rNeYSt','appCode','map','\x20database(s),\x20','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','length','dbType','Fetched\x20link\x20graph\x20for\x20','581791JMprCY','verbose','name','string','1253864SGMyMm','toDatasetName','tableComment','372phqxth','relations','24357773dBJXvS','tableName','LEFT','\x20relation(s)','datasets','695445VgZAUR','toDataset','links','1134GSneOX','48zEonvh','datasetCode','10791AokLZK','\x20database(s)','Link\x20graph:\x20','6210gQYgwV','filter','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','144HUMbLL','all','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','displayName','dbName','joinType','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','isPrimaryKey','datasetCount','bool','relationCount','isForeignKey','dbId','fields'];a47_0x2e5a=function(){return _0x1b5a45;};return a47_0x2e5a();}function a47_0x53e7(_0x4cfe2,_0x390f9c){_0x4cfe2=_0x4cfe2-0x71;const _0x2e5aeb=a47_0x2e5a();let _0x53e71e=_0x2e5aeb[_0x4cfe2];return _0x53e71e;}export const datasetLinks={'service':a47_0x44dbcb(0xac),'command':a47_0x44dbcb(0x91),'description':a47_0x44dbcb(0x9e)+a47_0x44dbcb(0x77)+a47_0x44dbcb(0x7d),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x44dbcb(0x84),'description':a47_0x44dbcb(0x9a)+a47_0x44dbcb(0x9d)},{'name':a47_0x44dbcb(0x82),'type':a47_0x44dbcb(0xab),'description':a47_0x44dbcb(0xa2)}],async 'execute'(_0x477fea){const _0x75b370=a47_0x44dbcb,_0x57bdcf=_0x477fea[_0x75b370(0xa5)]('verbose'),{resolved:_0x43952f,error:_0x4fbf31}=await resolveDb(_0x477fea[_0x75b370(0x7a)],_0x477fea[_0x75b370(0x78)]('db')||undefined);if(_0x4fbf31)return{'ok':![],'message':_0x4fbf31};const _0x36acbc=_0x43952f[_0x75b370(0x7b)](_0x40db9e=>_0x40db9e['dbId']),_0x2e6d76=await Promise[_0x75b370(0x9c)](_0x36acbc[_0x75b370(0x7b)](_0x21c917=>getErConfig(_0x477fea[_0x75b370(0x7a)],_0x21c917)));if(_0x57bdcf)return{'ok':!![],'data':_0x2e6d76[_0x75b370(0x7e)]===0x1?_0x2e6d76[0x0]:_0x2e6d76,'message':_0x75b370(0x80)+_0x36acbc['length']+_0x75b370(0x96)};const _0x5061f0=_0x2e6d76[_0x75b370(0x7b)](_0x3ef58e=>{const _0x4aa13b=_0x75b370,_0x590a29=(_0x3ef58e[_0x4aa13b(0x8e)]??[])['map'](_0x5870d1=>{const _0x15dce7=_0x4aa13b,_0x53cd9f=_0x5870d1[_0x15dce7(0xa9)]?.[_0x15dce7(0x99)](_0x4ae40c=>_0x4ae40c['isPrimaryKey'])[_0x15dce7(0x7b)](_0x49b692=>_0x49b692[_0x15dce7(0x83)])??[],_0x24a17f=_0x5870d1[_0x15dce7(0xa9)]?.[_0x15dce7(0x99)](_0x4c9a5f=>_0x4c9a5f[_0x15dce7(0xa7)])['map'](_0x56855b=>_0x56855b[_0x15dce7(0x83)])??[];return{'id':_0x5870d1['datasetId'],'name':_0x5870d1[_0x15dce7(0x75)],'code':_0x5870d1[_0x15dce7(0x94)],'table':_0x5870d1[_0x15dce7(0x8b)],'comment':_0x5870d1[_0x15dce7(0x87)]||undefined,'fields':(_0x5870d1[_0x15dce7(0xa9)]??[])['map'](_0x28c999=>({'name':_0x28c999[_0x15dce7(0x83)],'displayName':_0x28c999[_0x15dce7(0x9f)],'type':_0x28c999[_0x15dce7(0x7f)],'pk':_0x28c999[_0x15dce7(0xa3)],'fk':_0x28c999[_0x15dce7(0xa7)]})),'relations':(_0x5870d1[_0x15dce7(0x89)]??[])[_0x15dce7(0x99)](_0x8682af=>_0x8682af['fromField']&&_0x8682af[_0x15dce7(0x90)])[_0x15dce7(0x7b)](_0x51499a=>({'from':_0x51499a[_0x15dce7(0x73)],'toDataset':_0x51499a[_0x15dce7(0x86)],'toCode':_0x51499a[_0x15dce7(0x90)],'toField':_0x51499a[_0x15dce7(0x72)],'joinType':_0x51499a[_0x15dce7(0xa1)]||_0x15dce7(0x8c)})),'stats':{'fieldCount':_0x5870d1[_0x15dce7(0xa9)]?.[_0x15dce7(0x7e)]??0x0,'pkCount':_0x53cd9f[_0x15dce7(0x7e)],'fkCount':_0x24a17f[_0x15dce7(0x7e)],'relationCount':_0x5870d1[_0x15dce7(0x89)]?.['length']??0x0}};}),_0x3322f8=_0x590a29[_0x4aa13b(0x99)](_0x275ff1=>_0x275ff1[_0x4aa13b(0x71)][_0x4aa13b(0xa6)]>0x0)[_0x4aa13b(0x7b)](_0x525152=>_0x525152[_0x4aa13b(0x83)]);return{'db':_0x3ef58e[_0x4aa13b(0xaa)]?.[_0x4aa13b(0xa0)],'dbId':_0x3ef58e[_0x4aa13b(0xaa)]?.[_0x4aa13b(0xa8)],'appCode':_0x3ef58e[_0x4aa13b(0xaa)]?.[_0x4aa13b(0x7a)],'datasetCount':_0x590a29[_0x4aa13b(0x7e)],'connectedDatasets':_0x3322f8,'datasets':_0x590a29};}),_0x523c0d=_0x5061f0[_0x75b370(0x76)]((_0x23c3fe,_0x4c8daa)=>_0x23c3fe+_0x4c8daa[_0x75b370(0xa4)],0x0),_0x120027=_0x5061f0[_0x75b370(0x76)]((_0x51ead0,_0x822e03)=>_0x51ead0+_0x822e03[_0x75b370(0x8e)][_0x75b370(0x76)]((_0x1619ab,_0x2f89d6)=>_0x1619ab+_0x2f89d6[_0x75b370(0x71)][_0x75b370(0xa6)],0x0),0x0);return{'ok':!![],'data':_0x5061f0['length']===0x1?_0x5061f0[0x0]:{'databases':_0x5061f0},'message':_0x75b370(0x97)+_0x5061f0[_0x75b370(0x7e)]+_0x75b370(0x7c)+_0x523c0d+_0x75b370(0x74)+_0x120027+_0x75b370(0x8d)};}};
1
+ function a47_0x3835(){const _0x33eceb=['appCode','Link\x20graph:\x20','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','dbName','all','read','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','4487931LZxeHn','dataset','\x20dataset(s),\x20','reduce','3945368LTJwIH','toField','datasetId','boolean','\x20database(s),\x20','bool','90wYqTkL','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','2468799IPzmbC','\x20database(s)','tableName','map','436162sDvlhJ','6883476zmWXSz','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','isForeignKey','meta','name','displayName','8zqcujB','4XEVyUS','dbType','1530140aeDyQK','toDataset','datasets','stats','filter','isPrimaryKey','str','relations','260300yNNsnb','LEFT','fromField','length','fields','dbId','tableComment','verbose'];a47_0x3835=function(){return _0x33eceb;};return a47_0x3835();}function a47_0x3c7f(_0x5c175a,_0x25b497){_0x5c175a=_0x5c175a-0x1f4;const _0x383582=a47_0x3835();let _0x3c7feb=_0x383582[_0x5c175a];return _0x3c7feb;}const a47_0x1956c4=a47_0x3c7f;(function(_0x2efbde,_0x3e45a5){const _0x20fe02=a47_0x3c7f,_0x1c97f6=_0x2efbde();while(!![]){try{const _0x3ac819=-parseInt(_0x20fe02(0x207))/0x1*(-parseInt(_0x20fe02(0x20f))/0x2)+-parseInt(_0x20fe02(0x203))/0x3+parseInt(_0x20fe02(0x20e))/0x4*(parseInt(_0x20fe02(0x219))/0x5)+-parseInt(_0x20fe02(0x208))/0x6+parseInt(_0x20fe02(0x1f7))/0x7+-parseInt(_0x20fe02(0x1fb))/0x8+-parseInt(_0x20fe02(0x201))/0x9*(-parseInt(_0x20fe02(0x211))/0xa);if(_0x3ac819===_0x3e45a5)break;else _0x1c97f6['push'](_0x1c97f6['shift']());}catch(_0x147690){_0x1c97f6['push'](_0x1c97f6['shift']());}}}(a47_0x3835,0xa714f));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x1956c4(0x1f8),'command':'links','description':a47_0x1956c4(0x1f6)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a47_0x1956c4(0x223),'risk':a47_0x1956c4(0x1f5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a47_0x1956c4(0x209)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a47_0x1956c4(0x220),'type':a47_0x1956c4(0x1fe),'description':a47_0x1956c4(0x202)}],async 'execute'(_0x4cbb37){const _0x2c6a64=a47_0x1956c4,_0x3f8936=_0x4cbb37[_0x2c6a64(0x200)](_0x2c6a64(0x220)),{resolved:_0x2ded15,error:_0x379b0e}=await resolveDb(_0x4cbb37['appCode'],_0x4cbb37[_0x2c6a64(0x217)]('db')||undefined);if(_0x379b0e)return{'ok':![],'message':_0x379b0e};const _0x394e0c=_0x2ded15[_0x2c6a64(0x206)](_0x3b9823=>_0x3b9823[_0x2c6a64(0x21e)]),_0xf36dc7=await Promise[_0x2c6a64(0x1f4)](_0x394e0c[_0x2c6a64(0x206)](_0xcd3a52=>getErConfig(_0x4cbb37[_0x2c6a64(0x221)],_0xcd3a52)));if(_0x3f8936)return{'ok':!![],'data':_0xf36dc7[_0x2c6a64(0x21c)]===0x1?_0xf36dc7[0x0]:_0xf36dc7,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x394e0c[_0x2c6a64(0x21c)]+_0x2c6a64(0x204)};const _0x5de76e=_0xf36dc7[_0x2c6a64(0x206)](_0x4f9db0=>{const _0x188f0a=_0x2c6a64,_0x362aa8=(_0x4f9db0[_0x188f0a(0x213)]??[])['map'](_0x2d97e3=>{const _0x117bc1=_0x188f0a,_0x489178=_0x2d97e3[_0x117bc1(0x21d)]?.['filter'](_0x4f2d52=>_0x4f2d52[_0x117bc1(0x216)])[_0x117bc1(0x206)](_0xc617ca=>_0xc617ca[_0x117bc1(0x20c)])??[],_0x140f9c=_0x2d97e3['fields']?.[_0x117bc1(0x215)](_0x1b555b=>_0x1b555b[_0x117bc1(0x20a)])[_0x117bc1(0x206)](_0x5e1375=>_0x5e1375['name'])??[];return{'id':_0x2d97e3[_0x117bc1(0x1fd)],'name':_0x2d97e3['datasetName'],'code':_0x2d97e3['datasetCode'],'table':_0x2d97e3[_0x117bc1(0x205)],'comment':_0x2d97e3[_0x117bc1(0x21f)]||undefined,'fields':(_0x2d97e3[_0x117bc1(0x21d)]??[])[_0x117bc1(0x206)](_0x706e37=>({'name':_0x706e37[_0x117bc1(0x20c)],'displayName':_0x706e37[_0x117bc1(0x20d)],'type':_0x706e37[_0x117bc1(0x210)],'pk':_0x706e37[_0x117bc1(0x216)],'fk':_0x706e37['isForeignKey']})),'relations':(_0x2d97e3['relations']??[])['filter'](_0x26c831=>_0x26c831[_0x117bc1(0x21b)]&&_0x26c831[_0x117bc1(0x212)])[_0x117bc1(0x206)](_0x49e78b=>({'from':_0x49e78b[_0x117bc1(0x21b)],'toDataset':_0x49e78b['toDatasetName'],'toCode':_0x49e78b[_0x117bc1(0x212)],'toField':_0x49e78b[_0x117bc1(0x1fc)],'joinType':_0x49e78b['joinType']||_0x117bc1(0x21a)})),'stats':{'fieldCount':_0x2d97e3[_0x117bc1(0x21d)]?.['length']??0x0,'pkCount':_0x489178[_0x117bc1(0x21c)],'fkCount':_0x140f9c[_0x117bc1(0x21c)],'relationCount':_0x2d97e3[_0x117bc1(0x218)]?.[_0x117bc1(0x21c)]??0x0}};}),_0x4d2e59=_0x362aa8[_0x188f0a(0x215)](_0x4c6abe=>_0x4c6abe['stats']['relationCount']>0x0)['map'](_0x1df95e=>_0x1df95e[_0x188f0a(0x20c)]);return{'db':_0x4f9db0['meta']?.[_0x188f0a(0x224)],'dbId':_0x4f9db0[_0x188f0a(0x20b)]?.['dbId'],'appCode':_0x4f9db0[_0x188f0a(0x20b)]?.['appCode'],'datasetCount':_0x362aa8[_0x188f0a(0x21c)],'connectedDatasets':_0x4d2e59,'datasets':_0x362aa8};}),_0x5c6cc1=_0x5de76e[_0x2c6a64(0x1fa)]((_0x35fa05,_0x67e1dd)=>_0x35fa05+_0x67e1dd['datasetCount'],0x0),_0x244b49=_0x5de76e[_0x2c6a64(0x1fa)]((_0xb4f835,_0x5be677)=>_0xb4f835+_0x5be677[_0x2c6a64(0x213)][_0x2c6a64(0x1fa)]((_0x134fea,_0xfd5bbe)=>_0x134fea+_0xfd5bbe[_0x2c6a64(0x214)]['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x5de76e['length']===0x1?_0x5de76e[0x0]:{'databases':_0x5de76e},'message':_0x2c6a64(0x222)+_0x5de76e[_0x2c6a64(0x21c)]+_0x2c6a64(0x1ff)+_0x5c6cc1+_0x2c6a64(0x1f9)+_0x244b49+'\x20relation(s)'};}};
@@ -1 +1 @@
1
- const a48_0x320ca4=a48_0x4105;function a48_0x4105(_0x15108b,_0x3456b5){_0x15108b=_0x15108b-0xe2;const _0x549309=a48_0x5493();let _0x4105a9=_0x549309[_0x15108b];return _0x4105a9;}function a48_0x5493(){const _0x3cee58=['read','trim','361589ouXgVY','source','str','string','tableName','1311010LwIgLZ','dbtableConfig','List\x20all\x20datasets\x20with\x20metadata','474168Swyozl','datasetKey','3pMnSsa','code','Found\x20','3883495GWbKZj','4371408nNujCB','length','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','717712zPiIzy','name','allFields','2457666uDKBxp','appCode','split','map'];a48_0x5493=function(){return _0x3cee58;};return a48_0x5493();}(function(_0x26fa98,_0x3866b4){const _0x5bf968=a48_0x4105,_0x4fc34f=_0x26fa98();while(!![]){try{const _0x576dcf=-parseInt(_0x5bf968(0xf8))/0x1+parseInt(_0x5bf968(0xe6))/0x2+-parseInt(_0x5bf968(0xe8))/0x3*(parseInt(_0x5bf968(0xef))/0x4)+parseInt(_0x5bf968(0xe3))/0x5+parseInt(_0x5bf968(0xf2))/0x6+parseInt(_0x5bf968(0xeb))/0x7+-parseInt(_0x5bf968(0xec))/0x8;if(_0x576dcf===_0x3866b4)break;else _0x4fc34f['push'](_0x4fc34f['shift']());}catch(_0x41e756){_0x4fc34f['push'](_0x4fc34f['shift']());}}}(a48_0x5493,0x5bdaf));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a48_0x320ca4(0xe5),'risk':a48_0x320ca4(0xf6),'flags':[{'name':a48_0x320ca4(0xf0),'type':a48_0x320ca4(0xfb),'description':a48_0x320ca4(0xee)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x11b54b){const _0x5886b9=a48_0x320ca4,_0x1f0dc0=_0x11b54b['str'](_0x5886b9(0xf0)),_0x5f53a5=_0x11b54b[_0x5886b9(0xfa)](_0x5886b9(0xe9)),_0x5b1a28=await listDatasets(_0x11b54b[_0x5886b9(0xf3)],{..._0x1f0dc0&&{'name':_0x1f0dc0},..._0x5f53a5&&{'code':_0x5f53a5}}),_0x3398b3=_0x5b1a28[_0x5886b9(0xf5)](_0x39d555=>{const _0x513da2=_0x5886b9,_0x3b59a5=_0x39d555[_0x513da2(0xe4)]??{};return{'id':_0x39d555['id'],'name':_0x39d555[_0x513da2(0xf0)],'code':_0x39d555[_0x513da2(0xe9)],'description':_0x39d555['description'],'source':_0x39d555[_0x513da2(0xf9)],'db':_0x3b59a5['dbName'],'table':_0x3b59a5[_0x513da2(0xe2)],'datasetKey':_0x3b59a5[_0x513da2(0xe7)],'pk':_0x3b59a5['pkField'],'fields':_0x3b59a5[_0x513da2(0xf1)]?_0x3b59a5[_0x513da2(0xf1)][_0x513da2(0xf4)](',')['map'](_0x45322f=>_0x45322f[_0x513da2(0xf7)]()):[]};});return{'ok':!![],'data':{'total':_0x3398b3[_0x5886b9(0xed)],'datasets':_0x3398b3},'message':_0x5886b9(0xea)+_0x3398b3[_0x5886b9(0xed)]+'\x20dataset(s)'};}};
1
+ const a48_0x3e6b92=a48_0x5982;(function(_0x1b2fbb,_0x14fe0f){const _0x31eb73=a48_0x5982,_0x49e963=_0x1b2fbb();while(!![]){try{const _0x221676=-parseInt(_0x31eb73(0xb9))/0x1*(-parseInt(_0x31eb73(0xb2))/0x2)+-parseInt(_0x31eb73(0xaf))/0x3*(parseInt(_0x31eb73(0xbc))/0x4)+-parseInt(_0x31eb73(0xad))/0x5*(-parseInt(_0x31eb73(0xb0))/0x6)+parseInt(_0x31eb73(0xba))/0x7+-parseInt(_0x31eb73(0xb5))/0x8*(parseInt(_0x31eb73(0xc2))/0x9)+parseInt(_0x31eb73(0xb7))/0xa*(-parseInt(_0x31eb73(0xbf))/0xb)+-parseInt(_0x31eb73(0xaa))/0xc;if(_0x221676===_0x14fe0f)break;else _0x49e963['push'](_0x49e963['shift']());}catch(_0xab4956){_0x49e963['push'](_0x49e963['shift']());}}}(a48_0x2fcf,0x3c7fe));function a48_0x5982(_0x42de0e,_0x47f68d){_0x42de0e=_0x42de0e-0xa9;const _0x2fcf51=a48_0x2fcf();let _0x5982d9=_0x2fcf51[_0x42de0e];return _0x5982d9;}function a48_0x2fcf(){const _0x5f2829=['11870wJoxrI','name','633tNIfRm','666jSiXpx','length','46moCbxm','Found\x20','map','32tOrjpL','dbName','184590VdPEdH','description','20913bxEsKM','1454040axODdq','List\x20all\x20datasets\x20with\x20metadata','1548tSHdAe','split','allFields','11lpckjj','pkField','source','1081611cQIxZV','code','1483140tngzru','str','datasetKey'];a48_0x2fcf=function(){return _0x5f2829;};return a48_0x2fcf();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a48_0x3e6b92(0xbb),'risk':'read','flags':[{'name':a48_0x3e6b92(0xae),'type':'string','description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x24fa97){const _0x19398f=a48_0x3e6b92,_0x4f0acc=_0x24fa97['str'](_0x19398f(0xae)),_0x345d41=_0x24fa97[_0x19398f(0xab)](_0x19398f(0xa9)),_0x2976b1=await listDatasets(_0x24fa97['appCode'],{..._0x4f0acc&&{'name':_0x4f0acc},..._0x345d41&&{'code':_0x345d41}}),_0x2ca88d=_0x2976b1['map'](_0x50ae37=>{const _0x2aa4f1=_0x19398f,_0x1ee1dd=_0x50ae37['dbtableConfig']??{};return{'id':_0x50ae37['id'],'name':_0x50ae37[_0x2aa4f1(0xae)],'code':_0x50ae37[_0x2aa4f1(0xa9)],'description':_0x50ae37[_0x2aa4f1(0xb8)],'source':_0x50ae37[_0x2aa4f1(0xc1)],'db':_0x1ee1dd[_0x2aa4f1(0xb6)],'table':_0x1ee1dd['tableName'],'datasetKey':_0x1ee1dd[_0x2aa4f1(0xac)],'pk':_0x1ee1dd[_0x2aa4f1(0xc0)],'fields':_0x1ee1dd[_0x2aa4f1(0xbe)]?_0x1ee1dd[_0x2aa4f1(0xbe)][_0x2aa4f1(0xbd)](',')[_0x2aa4f1(0xb4)](_0x4e8f9a=>_0x4e8f9a['trim']()):[]};});return{'ok':!![],'data':{'total':_0x2ca88d[_0x19398f(0xb1)],'datasets':_0x2ca88d},'message':_0x19398f(0xb3)+_0x2ca88d[_0x19398f(0xb1)]+'\x20dataset(s)'};}};
@@ -1 +1 @@
1
- const a49_0xe1698f=a49_0x54e4;(function(_0x378ae7,_0x2c700c){const _0x3f0b18=a49_0x54e4,_0x46bd19=_0x378ae7();while(!![]){try{const _0x48bba3=-parseInt(_0x3f0b18(0x100))/0x1*(parseInt(_0x3f0b18(0x104))/0x2)+-parseInt(_0x3f0b18(0x116))/0x3+-parseInt(_0x3f0b18(0x11a))/0x4*(parseInt(_0x3f0b18(0x103))/0x5)+parseInt(_0x3f0b18(0x106))/0x6+parseInt(_0x3f0b18(0x119))/0x7*(parseInt(_0x3f0b18(0xfe))/0x8)+-parseInt(_0x3f0b18(0x10d))/0x9*(parseInt(_0x3f0b18(0x110))/0xa)+parseInt(_0x3f0b18(0xfc))/0xb*(parseInt(_0x3f0b18(0x10c))/0xc);if(_0x48bba3===_0x2c700c)break;else _0x46bd19['push'](_0x46bd19['shift']());}catch(_0x29c989){_0x46bd19['push'](_0x46bd19['shift']());}}}(a49_0x3ac9,0x44b98));function a49_0x3ac9(){const _0x6d59fc=['map','bool','code','5834484pBbXqe','112932ErpPqZ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','method','290fUzNwL','string','boolean','length','str','operation','1412001OxebwL','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','type','211624RCtoXk','92172bKAORw','22DnMELF','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','56mKrBUA','alias','41SjphzM','appCode','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','10ImETgR','22142ggVTfL','dataset','2592084elVtLb','enabled','verbose'];a49_0x3ac9=function(){return _0x6d59fc;};return a49_0x3ac9();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a49_0x54e4(_0x57535d,_0x2f27b1){_0x57535d=_0x57535d-0xfc;const _0x3ac9d9=a49_0x3ac9();let _0x54e4ca=_0x3ac9d9[_0x57535d];return _0x54e4ca;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a49_0xe1698f(0x105),'command':'operations','description':a49_0xe1698f(0x117),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0xe1698f(0xff),'type':a49_0xe1698f(0x111),'description':a49_0xe1698f(0x10e)},{'name':a49_0xe1698f(0x115),'type':a49_0xe1698f(0x111),'description':a49_0xe1698f(0x102)},{'name':a49_0xe1698f(0x108),'type':a49_0xe1698f(0x112),'description':a49_0xe1698f(0xfd)}],async 'execute'(_0x244f02){const _0x384a5b=a49_0xe1698f,_0x301a14=_0x244f02[_0x384a5b(0x114)](_0x384a5b(0x10b)),_0x3d4586=_0x244f02[_0x384a5b(0x114)](_0x384a5b(0x115)),_0x5d7a7=_0x244f02[_0x384a5b(0x10a)]('verbose');if(_0x3d4586){const {dataset:_0x1827b0,operation:_0x56b021}=await getOperationDetail(_0x244f02[_0x384a5b(0x101)],_0x301a14,_0x3d4586);return{'ok':!![],'data':{'dataset':_0x1827b0,'operation':_0x56b021}};}const {dataset:_0x10dd5e,operations:_0x45d4d5}=await getDatasetOperations(_0x301a14);return{'ok':!![],'data':{'dataset':_0x10dd5e,'total':_0x45d4d5[_0x384a5b(0x113)],'operations':_0x5d7a7?_0x45d4d5:_0x45d4d5[_0x384a5b(0x109)](_0x1090f3=>({'name':_0x1090f3['name'],'displayName':_0x1090f3['displayName'],'type':_0x1090f3[_0x384a5b(0x118)],'method':_0x1090f3[_0x384a5b(0x10f)],'enabled':_0x1090f3[_0x384a5b(0x107)]}))}};}};
1
+ const a49_0x351077=a49_0x1295;function a49_0x1295(_0xb30547,_0xbf7f33){_0xb30547=_0xb30547-0x192;const _0x4beb9d=a49_0x4beb();let _0x129564=_0x4beb9d[_0xb30547];return _0x129564;}function a49_0x4beb(){const _0x2deca6=['dataset','displayName','code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','type','operation','bool','3951241hvewPe','str','9wDhqKs','verbose','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','1429712EYSCIY','6TCYpZt','alias','map','2724579BkFSIv','1280200aUAyRj','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','appCode','operations','length','62741QCSisH','1916918NhLRSY','1145530YnvhJD','string','method'];a49_0x4beb=function(){return _0x2deca6;};return a49_0x4beb();}(function(_0x17942e,_0x22a588){const _0x49a61c=a49_0x1295,_0x3496f7=_0x17942e();while(!![]){try{const _0x88219d=-parseInt(_0x49a61c(0x195))/0x1+parseInt(_0x49a61c(0x196))/0x2+-parseInt(_0x49a61c(0x1aa))/0x3+parseInt(_0x49a61c(0x1a6))/0x4+-parseInt(_0x49a61c(0x197))/0x5+parseInt(_0x49a61c(0x1a7))/0x6*(parseInt(_0x49a61c(0x1a1))/0x7)+parseInt(_0x49a61c(0x1ab))/0x8*(-parseInt(_0x49a61c(0x1a3))/0x9);if(_0x88219d===_0x22a588)break;else _0x3496f7['push'](_0x3496f7['shift']());}catch(_0xd64eb9){_0x3496f7['push'](_0x3496f7['shift']());}}}(a49_0x4beb,0x7f05d));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a49_0x351077(0x19a),'command':a49_0x351077(0x193),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x351077(0x1a8),'type':'string','description':a49_0x351077(0x19d)},{'name':a49_0x351077(0x19f),'type':a49_0x351077(0x198),'description':a49_0x351077(0x1a5)},{'name':a49_0x351077(0x1a4),'type':'boolean','description':a49_0x351077(0x1ac)}],async 'execute'(_0x36a0af){const _0x4fc40b=a49_0x351077,_0x2da1a0=_0x36a0af[_0x4fc40b(0x1a2)](_0x4fc40b(0x19c)),_0x5a20e4=_0x36a0af[_0x4fc40b(0x1a2)]('operation'),_0x4bccc4=_0x36a0af[_0x4fc40b(0x1a0)]('verbose');if(_0x5a20e4){const {dataset:_0x27b685,operation:_0x3a3754}=await getOperationDetail(_0x36a0af[_0x4fc40b(0x192)],_0x2da1a0,_0x5a20e4);return{'ok':!![],'data':{'dataset':_0x27b685,'operation':_0x3a3754}};}const {dataset:_0x1a8903,operations:_0x1e662c}=await getDatasetOperations(_0x2da1a0);return{'ok':!![],'data':{'dataset':_0x1a8903,'total':_0x1e662c[_0x4fc40b(0x194)],'operations':_0x4bccc4?_0x1e662c:_0x1e662c[_0x4fc40b(0x1a9)](_0x41b790=>({'name':_0x41b790['name'],'displayName':_0x41b790[_0x4fc40b(0x19b)],'type':_0x41b790[_0x4fc40b(0x19e)],'method':_0x41b790[_0x4fc40b(0x199)],'enabled':_0x41b790['enabled']}))}};}};
@@ -1 +1 @@
1
- const a50_0x2cb5f4=a50_0x2f43;(function(_0x3230cd,_0x55fdf9){const _0x437d66=a50_0x2f43,_0x574394=_0x3230cd();while(!![]){try{const _0x330074=parseInt(_0x437d66(0x1a5))/0x1+-parseInt(_0x437d66(0x1a8))/0x2*(-parseInt(_0x437d66(0x19d))/0x3)+-parseInt(_0x437d66(0x1a6))/0x4+parseInt(_0x437d66(0x19b))/0x5+parseInt(_0x437d66(0x1a7))/0x6*(-parseInt(_0x437d66(0x1a0))/0x7)+-parseInt(_0x437d66(0x1a3))/0x8*(-parseInt(_0x437d66(0x199))/0x9)+-parseInt(_0x437d66(0x196))/0xa*(-parseInt(_0x437d66(0x19e))/0xb);if(_0x330074===_0x55fdf9)break;else _0x574394['push'](_0x574394['shift']());}catch(_0xe16d2c){_0x574394['push'](_0x574394['shift']());}}}(a50_0x11e7,0x5503f));function a50_0x2f43(_0x4d2245,_0x2511d0){_0x4d2245=_0x4d2245-0x193;const _0x11e745=a50_0x11e7();let _0x2f4306=_0x11e745[_0x4d2245];return _0x2f4306;}import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a50_0x11e7(){const _0x38b128=['30249vKmXkR','analyze-cancel','1555970ViGVRg','write','3jnKyKA','66oLtfyL','latestAnalysisTraceId','301alSwGu','string','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','1080miWRcA','Cancel\x20requested\x20for\x20plan\x20','39104LMdcMd','1212656IeWBtc','66450SpdOqs','566734FmYLDN','validation','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','67020orqkHm','plan','str'];a50_0x11e7=function(){return _0x38b128;};return a50_0x11e7();}export const dbAnalyzeCancel={'service':'db','command':a50_0x2cb5f4(0x19a),'description':a50_0x2cb5f4(0x195),'risk':a50_0x2cb5f4(0x19c),'defaultOutputFormat':'compress','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a50_0x2cb5f4(0x197),'type':a50_0x2cb5f4(0x1a1),'description':a50_0x2cb5f4(0x1a2)}],async 'execute'(_0x18998f){const _0x2fab94=a50_0x2cb5f4,_0x29f1af=_0x18998f['num']('id');let _0x149314=_0x18998f[_0x2fab94(0x198)](_0x2fab94(0x197))||undefined;if(!_0x149314){const _0x30f5a3=await getDbLinkInfo(_0x29f1af);_0x149314=_0x30f5a3[_0x2fab94(0x19f)]??undefined;if(!_0x149314)throw CliErrors[_0x2fab94(0x193)]('No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.',_0x2fab94(0x194));}return await cancelDbAnalysis(_0x149314),{'ok':!![],'data':{'dbLinkId':_0x29f1af,'planId':_0x149314},'message':_0x2fab94(0x1a4)+_0x149314};}};
1
+ function a50_0x42fd(_0x503400,_0x3b025c){_0x503400=_0x503400-0x16c;const _0x1cfa5c=a50_0x1cfa();let _0x42fd79=_0x1cfa5c[_0x503400];return _0x42fd79;}const a50_0x5ca472=a50_0x42fd;(function(_0xb73422,_0x1c1abd){const _0xeac309=a50_0x42fd,_0x38433c=_0xb73422();while(!![]){try{const _0x3c3242=-parseInt(_0xeac309(0x16d))/0x1*(parseInt(_0xeac309(0x16f))/0x2)+-parseInt(_0xeac309(0x172))/0x3+-parseInt(_0xeac309(0x16e))/0x4+parseInt(_0xeac309(0x170))/0x5+parseInt(_0xeac309(0x17a))/0x6+parseInt(_0xeac309(0x16c))/0x7+-parseInt(_0xeac309(0x177))/0x8;if(_0x3c3242===_0x1c1abd)break;else _0x38433c['push'](_0x38433c['shift']());}catch(_0x7d810c){_0x38433c['push'](_0x38433c['shift']());}}}(a50_0x1cfa,0x93886));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a50_0x5ca472(0x17d),'risk':a50_0x5ca472(0x17e),'defaultOutputFormat':a50_0x5ca472(0x178),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a50_0x5ca472(0x17b),'type':'string','description':a50_0x5ca472(0x176)}],async 'execute'(_0x2eb283){const _0xf061a3=a50_0x5ca472,_0x410689=_0x2eb283[_0xf061a3(0x173)]('id');let _0x49098=_0x2eb283[_0xf061a3(0x175)]('plan')||undefined;if(!_0x49098){const _0xd3dc26=await getDbLinkInfo(_0x410689);_0x49098=_0xd3dc26[_0xf061a3(0x171)]??undefined;if(!_0x49098)throw CliErrors['validation'](_0xf061a3(0x179),_0xf061a3(0x174));}return await cancelDbAnalysis(_0x49098),{'ok':!![],'data':{'dbLinkId':_0x410689,'planId':_0x49098},'message':_0xf061a3(0x17c)+_0x49098};}};function a50_0x1cfa(){const _0x23d899=['latestAnalysisTraceId','418734KsNXlp','num','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','str','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','2093472IrCDID','compress','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','2902836yatsxK','plan','Cancel\x20requested\x20for\x20plan\x20','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','write','1458569SQkytA','1BexdWr','964544bPZGPy','472634IbBgwS','3954180zJqubW'];a50_0x1cfa=function(){return _0x23d899;};return a50_0x1cfa();}
@@ -1 +1 @@
1
- const a51_0x398394=a51_0x36f2;(function(_0x3a4827,_0x566c5f){const _0x444836=a51_0x36f2,_0x1f0005=_0x3a4827();while(!![]){try{const _0x12be94=-parseInt(_0x444836(0x18e))/0x1*(-parseInt(_0x444836(0x190))/0x2)+parseInt(_0x444836(0x196))/0x3*(-parseInt(_0x444836(0x19b))/0x4)+-parseInt(_0x444836(0x19e))/0x5*(-parseInt(_0x444836(0x18f))/0x6)+parseInt(_0x444836(0x192))/0x7*(-parseInt(_0x444836(0x19d))/0x8)+-parseInt(_0x444836(0x197))/0x9*(parseInt(_0x444836(0x18d))/0xa)+parseInt(_0x444836(0x18c))/0xb*(-parseInt(_0x444836(0x195))/0xc)+parseInt(_0x444836(0x18b))/0xd;if(_0x12be94===_0x566c5f)break;else _0x1f0005['push'](_0x1f0005['shift']());}catch(_0x502d3a){_0x1f0005['push'](_0x1f0005['shift']());}}}(a51_0x4aba,0x3ea2e));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a51_0x36f2(_0x32f44a,_0x504646){_0x32f44a=_0x32f44a-0x18b;const _0x4aba71=a51_0x4aba();let _0x36f2ed=_0x4aba71[_0x32f44a];return _0x36f2ed;}function a51_0x4aba(){const _0x33f16c=['65pWShcz','map','tables','str','filter','7364591wJEQNM','146707BZHTyK','220DYPpSM','1474aafDAg','49710heQIFP','470UoIqDy','write','1463wJdYQi','split','num','36cciybD','9BbwXtF','181422wNxkMw','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','trim','255364FWXYDh','string','3408AZXpsC'];a51_0x4aba=function(){return _0x33f16c;};return a51_0x4aba();}export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a51_0x398394(0x198),'risk':a51_0x398394(0x191),'defaultOutputFormat':'compress','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x398394(0x1a0),'type':a51_0x398394(0x19c),'description':a51_0x398394(0x199)}],async 'execute'(_0x437c91){const _0xfeab0b=a51_0x398394,_0x538dad=_0x437c91[_0xfeab0b(0x194)]('id'),_0x367865=_0x437c91[_0xfeab0b(0x1a1)](_0xfeab0b(0x1a0)),_0x3ddc35=_0x367865?_0x367865[_0xfeab0b(0x193)](',')[_0xfeab0b(0x19f)](_0x56be51=>_0x56be51[_0xfeab0b(0x19a)]())[_0xfeab0b(0x1a2)](Boolean):undefined,_0x3a411b=await startDbAnalysis(_0x538dad,_0x3ddc35);return{'ok':!![],'data':{'dbLinkId':_0x538dad,'planId':_0x3a411b,'tableNames':_0x3ddc35??[]},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0x538dad};}};
1
+ const a51_0x47aa28=a51_0x1c2d;(function(_0x20d9b4,_0x156243){const _0x2d6b40=a51_0x1c2d,_0x43c525=_0x20d9b4();while(!![]){try{const _0xced73f=-parseInt(_0x2d6b40(0x1c7))/0x1+parseInt(_0x2d6b40(0x1c1))/0x2*(parseInt(_0x2d6b40(0x1bc))/0x3)+parseInt(_0x2d6b40(0x1b8))/0x4+parseInt(_0x2d6b40(0x1c6))/0x5*(-parseInt(_0x2d6b40(0x1b6))/0x6)+parseInt(_0x2d6b40(0x1c2))/0x7+parseInt(_0x2d6b40(0x1b9))/0x8*(-parseInt(_0x2d6b40(0x1bf))/0x9)+-parseInt(_0x2d6b40(0x1bd))/0xa;if(_0xced73f===_0x156243)break;else _0x43c525['push'](_0x43c525['shift']());}catch(_0x1e81a7){_0x43c525['push'](_0x43c525['shift']());}}}(a51_0x429f,0x34142));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeStart={'service':'db','command':a51_0x47aa28(0x1ba),'description':a51_0x47aa28(0x1be),'risk':a51_0x47aa28(0x1c3),'defaultOutputFormat':a51_0x47aa28(0x1c4),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x47aa28(0x1c0),'type':a51_0x47aa28(0x1bb),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x2f8c7a){const _0x3b8bb3=a51_0x47aa28,_0x181005=_0x2f8c7a['num']('id'),_0x531454=_0x2f8c7a[_0x3b8bb3(0x1c5)](_0x3b8bb3(0x1c0)),_0x8fae87=_0x531454?_0x531454[_0x3b8bb3(0x1b5)](',')['map'](_0x255b38=>_0x255b38[_0x3b8bb3(0x1c8)]())[_0x3b8bb3(0x1b7)](Boolean):undefined,_0x123244=await startDbAnalysis(_0x181005,_0x8fae87);return{'ok':!![],'data':{'dbLinkId':_0x181005,'planId':_0x123244,'tableNames':_0x8fae87??[]},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0x181005};}};function a51_0x1c2d(_0x52b9de,_0x5c15f0){_0x52b9de=_0x52b9de-0x1b5;const _0x429fd5=a51_0x429f();let _0x1c2d66=_0x429fd5[_0x52b9de];return _0x1c2d66;}function a51_0x429f(){const _0x4ff786=['2379410LNWvWQ','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','9elRoyD','tables','36rSPkhP','1139012qOpcXV','write','compress','str','5330WRVovQ','12891VXdtEo','trim','split','624AwTJuO','filter','1621668asaAyS','2639656Lseshm','analyze-start','string','56139Hwedzy'];a51_0x429f=function(){return _0x4ff786;};return a51_0x429f();}