@lovrabet/lovrabet-cli 2.1.7-beta.3 → 2.1.7-beta.5

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 (112) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -0
  10. package/lib/commands/app-config/index.js +1 -0
  11. package/lib/commands/app-config/shared.js +1 -0
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -1
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/service-order.js +1 -0
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- const a14_0x30d361=a14_0x4df6;function a14_0x4df6(_0x32c299,_0x136911){_0x32c299=_0x32c299-0x197;const _0x3c339a=a14_0x3c33();let _0x4df6b3=_0x3c339a[_0x32c299];return _0x4df6b3;}(function(_0x206882,_0x192c49){const _0x46ac45=a14_0x4df6,_0x3c385f=_0x206882();while(!![]){try{const _0x35f1ab=parseInt(_0x46ac45(0x19c))/0x1+-parseInt(_0x46ac45(0x1a2))/0x2+parseInt(_0x46ac45(0x198))/0x3+parseInt(_0x46ac45(0x1ae))/0x4*(parseInt(_0x46ac45(0x1a9))/0x5)+parseInt(_0x46ac45(0x1aa))/0x6*(parseInt(_0x46ac45(0x19d))/0x7)+parseInt(_0x46ac45(0x19e))/0x8*(-parseInt(_0x46ac45(0x197))/0x9)+-parseInt(_0x46ac45(0x19f))/0xa;if(_0x35f1ab===_0x192c49)break;else _0x3c385f['push'](_0x3c385f['shift']());}catch(_0x40e828){_0x3c385f['push'](_0x3c385f['shift']());}}}(a14_0x3c33,0x281f7));import{CliErrors}from'../../errors.js';function a14_0x3c33(){const _0x36b5bf=['5873760lfAwqF','unknown','cli-skill-install','349396MdTtck','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','nonInteractive','cwd','inherit','CLI\x20Built-in\x20Skill\x20installed','npx\x20skills\x20add\x20failed:\x20','25pcLrap','1101306ObmqaJ','cli-skill','log','write','225068CVSWPV','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','skipped','Skipped\x20npx\x20(','\x20-g\x20-y','184644VPGqbr','796110uzySAU','install','\x20-g\x20-y)...','info','237193FIjYrC','7HXZujR','16jkPpAt'];a14_0x3c33=function(){return _0x36b5bf;};return a14_0x3c33();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x30d361(0x1ab),'command':a14_0x30d361(0x199),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a14_0x30d361(0x1ad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x296d10){const _0x21af1b=a14_0x30d361;logger['setLogPath'](process['cwd']()),logger[_0x21af1b(0x19b)](_0x21af1b(0x1a1),_0x21af1b(0x1af));const {LOVRABET_SKILL_SOURCE:_0x1eb46b,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1eb3e3,runNpxSkillsAddGlobal:_0x41b1df}=await import('../../skills/npx-skills-add.js'),_0x284d6f=_0x296d10[_0x21af1b(0x1a4)]?'pipe':_0x21af1b(0x1a6);console[_0x21af1b(0x1ac)](_0x21af1b(0x1b0)+_0x1eb46b+_0x21af1b(0x19a));const _0x55f7fb=_0x41b1df(process[_0x21af1b(0x1a5)](),_0x1eb46b,{'stdio':_0x284d6f});if(_0x55f7fb[_0x21af1b(0x1b1)])console[_0x21af1b(0x1ac)](_0x21af1b(0x1b2)+_0x1eb3e3+_0x21af1b(0x1a3));else{if(_0x55f7fb['ok'])console[_0x21af1b(0x1ac)](_0x21af1b(0x1a7));else throw CliErrors['apiError'](_0x21af1b(0x1a8)+(_0x55f7fb['error']||_0x21af1b(0x1a0)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x1eb46b+_0x21af1b(0x1b3));}return{'ok':!![]};}}];
1
+ const a17_0x4e1615=a17_0x3669;(function(_0x39f845,_0x45b5fc){const _0x3b25df=a17_0x3669,_0x4e5f63=_0x39f845();while(!![]){try{const _0x55e372=parseInt(_0x3b25df(0x8b))/0x1+-parseInt(_0x3b25df(0x9e))/0x2+-parseInt(_0x3b25df(0x94))/0x3+parseInt(_0x3b25df(0xa0))/0x4+-parseInt(_0x3b25df(0x89))/0x5+-parseInt(_0x3b25df(0x98))/0x6*(parseInt(_0x3b25df(0x9b))/0x7)+parseInt(_0x3b25df(0x92))/0x8;if(_0x55e372===_0x45b5fc)break;else _0x4e5f63['push'](_0x4e5f63['shift']());}catch(_0x1f8e0b){_0x4e5f63['push'](_0x4e5f63['shift']());}}}(a17_0x192e,0x5595f));function a17_0x3669(_0x508612,_0x1bb334){_0x508612=_0x508612-0x89;const _0x192ee6=a17_0x192e();let _0x366900=_0x192ee6[_0x508612];return _0x366900;}function a17_0x192e(){const _0x496d50=['nonInteractive','507944IflQgU','cli-skill','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','../../skills/npx-skills-add.js','CLI\x20Built-in\x20Skill\x20installed','cwd','pipe','12074664funIRS','\x20-g\x20-y','210675iojFkw','npx\x20skills\x20add\x20failed:\x20','apiError','skipped','18tFnbBx','error','unknown','799736hNLZUb','setLogPath','cli-skill-install','1204820ZKptSO','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','177448xFwqpq','Skipped\x20npx\x20(','inherit','log','info','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','write','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','3478505RagiSf'];a17_0x192e=function(){return _0x496d50;};return a17_0x192e();}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x4e1615(0x8c),'command':'install','description':a17_0x4e1615(0xa7),'risk':a17_0x4e1615(0xa6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x40bf1a){const _0x23c0ce=a17_0x4e1615;logger[_0x23c0ce(0x9c)](process[_0x23c0ce(0x90)]()),logger[_0x23c0ce(0xa4)](_0x23c0ce(0x9d),_0x23c0ce(0x8d));const {LOVRABET_SKILL_SOURCE:_0x5b0f55,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2397bf,runNpxSkillsAddGlobal:_0x38f4fb}=await import(_0x23c0ce(0x8e)),_0xe67ec=_0x40bf1a[_0x23c0ce(0x8a)]?_0x23c0ce(0x91):_0x23c0ce(0xa2);console[_0x23c0ce(0xa3)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x5b0f55+'\x20-g\x20-y)...');const _0x1514c5=_0x38f4fb(process[_0x23c0ce(0x90)](),_0x5b0f55,{'stdio':_0xe67ec});if(_0x1514c5[_0x23c0ce(0x97)])console[_0x23c0ce(0xa3)](_0x23c0ce(0xa1)+_0x2397bf+_0x23c0ce(0xa5));else{if(_0x1514c5['ok'])console[_0x23c0ce(0xa3)](_0x23c0ce(0x8f));else throw CliErrors[_0x23c0ce(0x96)](_0x23c0ce(0x95)+(_0x1514c5[_0x23c0ce(0x99)]||_0x23c0ce(0x9a)),_0x23c0ce(0x9f)+_0x5b0f55+_0x23c0ce(0x93));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0xa62d65,_0x2fef0a){const _0x5af387=a15_0x2613,_0x41ec95=_0xa62d65();while(!![]){try{const _0x2626ce=-parseInt(_0x5af387(0x164))/0x1*(parseInt(_0x5af387(0x165))/0x2)+-parseInt(_0x5af387(0x172))/0x3*(parseInt(_0x5af387(0x17a))/0x4)+-parseInt(_0x5af387(0x16a))/0x5*(-parseInt(_0x5af387(0x16b))/0x6)+-parseInt(_0x5af387(0x177))/0x7*(-parseInt(_0x5af387(0x173))/0x8)+-parseInt(_0x5af387(0x17b))/0x9*(parseInt(_0x5af387(0x16d))/0xa)+-parseInt(_0x5af387(0x17c))/0xb*(-parseInt(_0x5af387(0x176))/0xc)+parseInt(_0x5af387(0x16c))/0xd;if(_0x2626ce===_0x2fef0a)break;else _0x41ec95['push'](_0x41ec95['shift']());}catch(_0x596699){_0x41ec95['push'](_0x41ec95['shift']());}}}(a15_0x412c,0x5eae3));function a15_0x2613(_0x3c45f3,_0x1c8477){_0x3c45f3=_0x3c45f3-0x164;const _0x412cb6=a15_0x412c();let _0x261346=_0x412cb6[_0x3c45f3];return _0x261346;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x1b9816){const _0xbe2062=a15_0x2613,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x32cdee}=_0x1b9816;if(explicitGlobal&&explicitProject)throw CliErrors[_0xbe2062(0x16e)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0xbe2062(0x167));if(explicitGlobal)return _0xbe2062(0x175);if(explicitProject)return _0xbe2062(0x16f);switch(_0x32cdee){case _0xbe2062(0x166):return _0xbe2062(0x175);case _0xbe2062(0x168):return _0x1b9816[_0xbe2062(0x170)]??isInProject()?'project':_0xbe2062(0x175);case'project-or-global-explicit':if(!(_0x1b9816[_0xbe2062(0x170)]??isInProject()))throw CliErrors['validation'](_0xbe2062(0x174)+PRODUCT_CONFIG[_0xbe2062(0x178)]+_0xbe2062(0x179),_0xbe2062(0x169)+PRODUCT_CONFIG[_0xbe2062(0x178)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0xbe2062(0x171));return _0xbe2062(0x16f);}}export function toScopeFlags(_0x3a6b3c){return{'global':_0x3a6b3c==='global'};}function a15_0x412c(){const _0x1bd2a8=['1884cKISJK','30216AgMMkV','Not\x20inside\x20a\x20project\x20(no\x20','global','24BQBSLa','7lFZPKI','newConfigFileName','\x20found).','2164tFZhbX','9PsOXfJ','601986wLpaMZ','8aCzikp','147538TKTAfn','global-default','Use\x20only\x20one\x20config\x20scope\x20flag.','project-default','Add\x20--global\x20to\x20write\x20to\x20~/','2097780OuRYCO','6dOVdbP','16611023LCkjti','4928450GiaFYI','validation','project','inProject','\x20init`\x20first.'];a15_0x412c=function(){return _0x1bd2a8;};return a15_0x412c();}export function formatScopeLabel(_0xa3cfd6){const _0x1aa1c9=a15_0x2613;return _0xa3cfd6===_0x1aa1c9(0x175)?'\x20(global)':'';}
1
+ (function(_0x18afbb,_0x3ce312){const _0x2f4c0e=a18_0x357c,_0x8d18ce=_0x18afbb();while(!![]){try{const _0x599e01=-parseInt(_0x2f4c0e(0x1eb))/0x1*(parseInt(_0x2f4c0e(0x201))/0x2)+parseInt(_0x2f4c0e(0x1fd))/0x3+-parseInt(_0x2f4c0e(0x1fe))/0x4*(parseInt(_0x2f4c0e(0x1fa))/0x5)+parseInt(_0x2f4c0e(0x1fc))/0x6*(-parseInt(_0x2f4c0e(0x1f6))/0x7)+parseInt(_0x2f4c0e(0x1f8))/0x8*(parseInt(_0x2f4c0e(0x200))/0x9)+parseInt(_0x2f4c0e(0x1f9))/0xa+parseInt(_0x2f4c0e(0x1f0))/0xb*(parseInt(_0x2f4c0e(0x1fb))/0xc);if(_0x599e01===_0x3ce312)break;else _0x8d18ce['push'](_0x8d18ce['shift']());}catch(_0x59e9b6){_0x8d18ce['push'](_0x8d18ce['shift']());}}}(a18_0x1d09,0x9ca89));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x1d09(){const _0x4453db=['global','\x20found).','55yZuDOb','validation','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Not\x20inside\x20a\x20project\x20(no\x20',',\x20or\x20run\x20`','global-default','630oYVPXP','\x20init`\x20first.','40xUShuK','8502320ZyMoyo','23460xjppTh','1988940ItGdpM','73398dUHawj','1000971CVGfem','324aCAEnp','newConfigFileName','1224927jVTxBw','5116RzheMm','Add\x20--global\x20to\x20write\x20to\x20~/','project','inProject','223vlZmUH','Use\x20only\x20one\x20config\x20scope\x20flag.','project-default'];a18_0x1d09=function(){return _0x4453db;};return a18_0x1d09();}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x357c(_0x15f000,_0x2c2491){_0x15f000=_0x15f000-0x1e9;const _0x1d0965=a18_0x1d09();let _0x357c9c=_0x1d0965[_0x15f000];return _0x357c9c;}export function resolveConfigScope(_0x3df660){const _0x2b946a=a18_0x357c,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x147cf8}=_0x3df660;if(explicitGlobal&&explicitProject)throw CliErrors[_0x2b946a(0x1f1)](_0x2b946a(0x1f2),_0x2b946a(0x1ec));if(explicitGlobal)return _0x2b946a(0x1ee);if(explicitProject)return'project';switch(_0x147cf8){case _0x2b946a(0x1f5):return _0x2b946a(0x1ee);case _0x2b946a(0x1ed):return _0x3df660[_0x2b946a(0x1ea)]??isInProject()?_0x2b946a(0x1e9):_0x2b946a(0x1ee);case'project-or-global-explicit':if(!(_0x3df660[_0x2b946a(0x1ea)]??isInProject()))throw CliErrors[_0x2b946a(0x1f1)](_0x2b946a(0x1f3)+PRODUCT_CONFIG[_0x2b946a(0x1ff)]+_0x2b946a(0x1ef),_0x2b946a(0x202)+PRODUCT_CONFIG[_0x2b946a(0x1ff)]+_0x2b946a(0x1f4)+CLI_BIN_NAME+_0x2b946a(0x1f7));return'project';}}export function toScopeFlags(_0x43c926){const _0x14f181=a18_0x357c;return{'global':_0x43c926===_0x14f181(0x1ee)};}export function formatScopeLabel(_0x1a25b6){const _0x441872=a18_0x357c;return _0x1a25b6===_0x441872(0x1ee)?'\x20(global)':'';}
@@ -1 +1 @@
1
- function a16_0x68d5(){const _0x1bc36c=['51800sTFqev','267942ERaCEZ','\x20are\x20mutually\x20exclusive\x20for\x20`','508279NAbfNa','\x20is\x20allowed,\x20found:\x20','\x20is\x20required\x20for\x20`','Invalid\x20--','118ZcLrRm','9474lPTQyz','441FWrpxr','146512lFAlSa','validation','Provide\x20one\x20of:\x20','join',':\x20expected\x20','Remove\x20all\x20but\x20one.','743446tCqkPv',',\x20got\x20\x22','Flags\x20','3157NzoiBC','4264VTbIuR','str','At\x20least\x20one\x20of\x20','some','5AmEbiz','length','Exactly\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','test'];a16_0x68d5=function(){return _0x1bc36c;};return a16_0x68d5();}(function(_0x186b9b,_0x3b36a8){const _0x3f35f6=a16_0x431f,_0x4a01c9=_0x186b9b();while(!![]){try{const _0x17e087=parseInt(_0x3f35f6(0xf8))/0x1+parseInt(_0x3f35f6(0xfc))/0x2*(-parseInt(_0x3f35f6(0xfd))/0x3)+parseInt(_0x3f35f6(0xff))/0x4+parseInt(_0x3f35f6(0xf0))/0x5*(-parseInt(_0x3f35f6(0xf6))/0x6)+-parseInt(_0x3f35f6(0x108))/0x7*(-parseInt(_0x3f35f6(0x109))/0x8)+-parseInt(_0x3f35f6(0xfe))/0x9*(parseInt(_0x3f35f6(0xf5))/0xa)+parseInt(_0x3f35f6(0x105))/0xb;if(_0x17e087===_0x3b36a8)break;else _0x4a01c9['push'](_0x4a01c9['shift']());}catch(_0xdc9d55){_0x4a01c9['push'](_0x4a01c9['shift']());}}}(a16_0x68d5,0x59dcd));import{CliErrors}from'../../errors.js';function a16_0x431f(_0x381831,_0x3673a5){_0x381831=_0x381831-0xee;const _0x68d5c9=a16_0x68d5();let _0x431f82=_0x68d5c9[_0x381831];return _0x431f82;}function isSet(_0x5d8177,_0x26bc8e){const _0x5b65a3=_0x5d8177['flag'](_0x26bc8e);return _0x5b65a3!==undefined&&_0x5b65a3!==''&&_0x5b65a3!==![]&&_0x5b65a3!==0x0;}function fmtNames(_0x5c35ef){const _0x350c3e=a16_0x431f;return _0x5c35ef['map'](_0x614a07=>'--'+_0x614a07)[_0x350c3e(0x102)](',\x20');}export function requireOneOf(_0x873809,_0x2eadc4,_0xb19de3){const _0x526c1b=a16_0x431f,_0x39c2d0=_0x2eadc4['filter'](_0x2ccfa5=>isSet(_0x873809,_0x2ccfa5));if(_0x39c2d0['length']!==0x1)throw CliErrors['validation'](_0x39c2d0[_0x526c1b(0xf1)]===0x0?_0x526c1b(0xf2)+fmtNames(_0x2eadc4)+_0x526c1b(0xfa)+_0xb19de3+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x2eadc4)+_0x526c1b(0xf9)+fmtNames(_0x39c2d0)+'.',_0x39c2d0[_0x526c1b(0xf1)]===0x0?_0x526c1b(0x101)+fmtNames(_0x2eadc4):_0x526c1b(0x104));}export function requireAnyOf(_0x306697,_0x13e076,_0x338dee){const _0x4ef7c3=a16_0x431f;if(!_0x13e076[_0x4ef7c3(0xef)](_0x3be9a1=>isSet(_0x306697,_0x3be9a1)))throw CliErrors[_0x4ef7c3(0x100)](_0x4ef7c3(0xee)+fmtNames(_0x13e076)+_0x4ef7c3(0xfa)+_0x338dee+'`.',_0x4ef7c3(0x101)+fmtNames(_0x13e076));}export function mutuallyExclusive(_0x10fd38,_0xa79180,_0x29bfe5){const _0x2fadb2=a16_0x431f,_0x95b64b=_0xa79180['filter'](_0x2e577e=>isSet(_0x10fd38,_0x2e577e));if(_0x95b64b[_0x2fadb2(0xf1)]>0x1)throw CliErrors[_0x2fadb2(0x100)](_0x2fadb2(0x107)+fmtNames(_0x95b64b)+_0x2fadb2(0xf7)+_0x29bfe5+'`.',_0x2fadb2(0xf3)+fmtNames(_0xa79180));}export function validatePattern(_0x3a8b0b,_0x393351,_0x11c33c,_0x1c17d2){const _0x51a2f6=a16_0x431f,_0x283a16=_0x3a8b0b[_0x51a2f6(0x10a)](_0x393351);if(_0x283a16&&!_0x11c33c[_0x51a2f6(0xf4)](_0x283a16))throw CliErrors[_0x51a2f6(0x100)](_0x51a2f6(0xfb)+_0x393351+_0x51a2f6(0x103)+_0x1c17d2+_0x51a2f6(0x106)+_0x283a16+'\x22.');}
1
+ (function(_0x3674ef,_0x44fe04){const _0x2c22d4=a19_0x4f9c,_0x5653c7=_0x3674ef();while(!![]){try{const _0x492765=parseInt(_0x2c22d4(0x13c))/0x1*(-parseInt(_0x2c22d4(0x12b))/0x2)+parseInt(_0x2c22d4(0x136))/0x3+-parseInt(_0x2c22d4(0x13a))/0x4*(parseInt(_0x2c22d4(0x12d))/0x5)+-parseInt(_0x2c22d4(0x130))/0x6+-parseInt(_0x2c22d4(0x137))/0x7+-parseInt(_0x2c22d4(0x146))/0x8+-parseInt(_0x2c22d4(0x13b))/0x9*(-parseInt(_0x2c22d4(0x140))/0xa);if(_0x492765===_0x44fe04)break;else _0x5653c7['push'](_0x5653c7['shift']());}catch(_0xad5ef9){_0x5653c7['push'](_0x5653c7['shift']());}}}(a19_0x7cbc,0xd0a03));function a19_0x7cbc(){const _0x19c874=['2499771niJaIE','7222089HGHFfZ','\x20is\x20allowed,\x20found:\x20','Exactly\x20one\x20of\x20','20mvcJrY','10541547GqQswA','1BPPeSw','test','map','flag','40OEeRCY','length','join','some','Flags\x20','Only\x20one\x20of\x20','9799864KmXAZX',':\x20expected\x20','2239000wiwbHC','\x20are\x20mutually\x20exclusive\x20for\x20`','552785suMIgU','\x20is\x20required\x20for\x20`','str','4409178tGIFWO','Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20','validation','Invalid\x20--',',\x20got\x20\x22'];a19_0x7cbc=function(){return _0x19c874;};return a19_0x7cbc();}import{CliErrors}from'../../errors.js';function isSet(_0x2ab17f,_0x527245){const _0x34f77c=a19_0x4f9c,_0x1b7b44=_0x2ab17f[_0x34f77c(0x13f)](_0x527245);return _0x1b7b44!==undefined&&_0x1b7b44!==''&&_0x1b7b44!==![]&&_0x1b7b44!==0x0;}function fmtNames(_0x10c9ae){const _0x54c36b=a19_0x4f9c;return _0x10c9ae[_0x54c36b(0x13e)](_0x28e162=>'--'+_0x28e162)[_0x54c36b(0x142)](',\x20');}export function requireOneOf(_0x404d46,_0x2c8c64,_0x3dbe08){const _0x5ea914=a19_0x4f9c,_0x406dbf=_0x2c8c64['filter'](_0x169463=>isSet(_0x404d46,_0x169463));if(_0x406dbf[_0x5ea914(0x141)]!==0x1)throw CliErrors[_0x5ea914(0x133)](_0x406dbf['length']===0x0?_0x5ea914(0x139)+fmtNames(_0x2c8c64)+_0x5ea914(0x12e)+_0x3dbe08+'`.':_0x5ea914(0x145)+fmtNames(_0x2c8c64)+_0x5ea914(0x138)+fmtNames(_0x406dbf)+'.',_0x406dbf[_0x5ea914(0x141)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x2c8c64):_0x5ea914(0x131));}export function requireAnyOf(_0x520999,_0x2c3612,_0x185c11){const _0x2bb6cc=a19_0x4f9c;if(!_0x2c3612[_0x2bb6cc(0x143)](_0x509569=>isSet(_0x520999,_0x509569)))throw CliErrors['validation']('At\x20least\x20one\x20of\x20'+fmtNames(_0x2c3612)+_0x2bb6cc(0x12e)+_0x185c11+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x2c3612));}function a19_0x4f9c(_0x4640cc,_0x414576){_0x4640cc=_0x4640cc-0x12a;const _0x7cbc4=a19_0x7cbc();let _0x4f9c2d=_0x7cbc4[_0x4640cc];return _0x4f9c2d;}export function mutuallyExclusive(_0x42991c,_0x1401a6,_0x1c7d40){const _0x478005=a19_0x4f9c,_0x373f4f=_0x1401a6['filter'](_0x25c57b=>isSet(_0x42991c,_0x25c57b));if(_0x373f4f[_0x478005(0x141)]>0x1)throw CliErrors['validation'](_0x478005(0x144)+fmtNames(_0x373f4f)+_0x478005(0x12c)+_0x1c7d40+'`.',_0x478005(0x132)+fmtNames(_0x1401a6));}export function validatePattern(_0x4686fd,_0x400aa8,_0x1f6740,_0x4f12d7){const _0x178596=a19_0x4f9c,_0x4a291c=_0x4686fd[_0x178596(0x12f)](_0x400aa8);if(_0x4a291c&&!_0x1f6740[_0x178596(0x13d)](_0x4a291c))throw CliErrors[_0x178596(0x133)](_0x178596(0x134)+_0x400aa8+_0x178596(0x12a)+_0x4f12d7+_0x178596(0x135)+_0x4a291c+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x3848df=a17_0x43d1;(function(_0x2c89d6,_0x480052){const _0x1ecd13=a17_0x43d1,_0x28c6ca=_0x2c89d6();while(!![]){try{const _0x2690fa=-parseInt(_0x1ecd13(0x82))/0x1+-parseInt(_0x1ecd13(0x90))/0x2*(-parseInt(_0x1ecd13(0x84))/0x3)+-parseInt(_0x1ecd13(0x89))/0x4*(-parseInt(_0x1ecd13(0x8f))/0x5)+parseInt(_0x1ecd13(0x8d))/0x6+parseInt(_0x1ecd13(0x8e))/0x7+parseInt(_0x1ecd13(0x7b))/0x8*(parseInt(_0x1ecd13(0x91))/0x9)+-parseInt(_0x1ecd13(0x7f))/0xa;if(_0x2690fa===_0x480052)break;else _0x28c6ca['push'](_0x28c6ca['shift']());}catch(_0x22be90){_0x28c6ca['push'](_0x28c6ca['shift']());}}}(a17_0x2ec0,0xb2ccb));export const CODE_FLAG={'name':'code','type':a17_0x3848df(0x8a),'required':!![],'description':a17_0x3848df(0x83),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x3848df(0x85)}};function a17_0x43d1(_0x50ef6e,_0x2ad8e4){_0x50ef6e=_0x50ef6e-0x7a;const _0x2ec0d9=a17_0x2ec0();let _0x43d162=_0x2ec0d9[_0x50ef6e];return _0x43d162;}export const SQLCODE_FLAG={'name':a17_0x3848df(0x87),'type':a17_0x3848df(0x8a),'required':!![],'description':a17_0x3848df(0x80),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x3848df(0x88)}};function a17_0x2ec0(){const _0x133999=['Return\x20full\x20raw\x20response\x20object','208NjMYSY','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','number','params','22176570QVFUau','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','verbose','1104223PkgdxU','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2654076hIdNil','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','boolean','sqlcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','40ouoHqZ','string','Resource\x20name\x20for\x20lookup','name','8088630ehEFST','4024888aYegfT','145910oeLekz','2mANBiO','330453llaHeI'];a17_0x2ec0=function(){return _0x133999;};return a17_0x2ec0();}export const VERBOSE_FLAG={'name':a17_0x3848df(0x81),'type':a17_0x3848df(0x86),'description':a17_0x3848df(0x7a)};export const PARAMS_FLAG={'name':a17_0x3848df(0x7e),'type':a17_0x3848df(0x8a),'description':a17_0x3848df(0x7c)};export const NAME_FLAG={'name':a17_0x3848df(0x8c),'type':a17_0x3848df(0x8a),'description':a17_0x3848df(0x8b)};export const ID_FLAG={'name':'id','type':a17_0x3848df(0x7d),'required':!![],'description':'Resource\x20ID'};
1
+ const a20_0x1eebd6=a20_0x419e;(function(_0x18a833,_0x3d6bfa){const _0x3159e8=a20_0x419e,_0x46d573=_0x18a833();while(!![]){try{const _0x2b6f61=-parseInt(_0x3159e8(0x1c7))/0x1*(-parseInt(_0x3159e8(0x1b8))/0x2)+-parseInt(_0x3159e8(0x1c4))/0x3+parseInt(_0x3159e8(0x1c2))/0x4+-parseInt(_0x3159e8(0x1c3))/0x5*(-parseInt(_0x3159e8(0x1c8))/0x6)+-parseInt(_0x3159e8(0x1bd))/0x7+parseInt(_0x3159e8(0x1c6))/0x8*(parseInt(_0x3159e8(0x1cb))/0x9)+-parseInt(_0x3159e8(0x1ce))/0xa*(-parseInt(_0x3159e8(0x1c1))/0xb);if(_0x2b6f61===_0x3d6bfa)break;else _0x46d573['push'](_0x46d573['shift']());}catch(_0x23ce3f){_0x46d573['push'](_0x46d573['shift']());}}}(a20_0x4f27,0x82c3e));export const CODE_FLAG={'name':a20_0x1eebd6(0x1c9),'type':'string','required':!![],'description':a20_0x1eebd6(0x1ca),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1eebd6(0x1b9)}};export const SQLCODE_FLAG={'name':a20_0x1eebd6(0x1cd),'type':a20_0x1eebd6(0x1be),'required':!![],'description':a20_0x1eebd6(0x1bb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x1eebd6(0x1bf)}};export const VERBOSE_FLAG={'name':a20_0x1eebd6(0x1c0),'type':a20_0x1eebd6(0x1d0),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':'params','type':a20_0x1eebd6(0x1be),'description':a20_0x1eebd6(0x1cf)};export const NAME_FLAG={'name':a20_0x1eebd6(0x1bc),'type':a20_0x1eebd6(0x1be),'description':a20_0x1eebd6(0x1cc)};function a20_0x4f27(){const _0x3b1dc2=['340644xmbLMw','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','592776QihoQt','Resource\x20name\x20for\x20lookup','sqlcode','90YOqzsN','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','boolean','6rwjQqy','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','name','4017930TwOlAC','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','verbose','108735UCRLBm','281260XkxjAB','25boKOlT','1085961YfBplx','number','104bOgObB','57403dUgvHV'];a20_0x4f27=function(){return _0x3b1dc2;};return a20_0x4f27();}function a20_0x419e(_0x52f995,_0x27e487){_0x52f995=_0x52f995-0x1b8;const _0x4f273f=a20_0x4f27();let _0x419e04=_0x4f273f[_0x52f995];return _0x419e04;}export const ID_FLAG={'name':'id','type':a20_0x1eebd6(0x1c5),'required':!![],'description':a20_0x1eebd6(0x1ba)};
@@ -1 +1 @@
1
- const a18_0x5c36d0=a18_0x502c;(function(_0x43c82f,_0x594f31){const _0xc92d8a=a18_0x502c,_0x2f07b4=_0x43c82f();while(!![]){try{const _0x33db1a=parseInt(_0xc92d8a(0x13e))/0x1*(parseInt(_0xc92d8a(0x164))/0x2)+-parseInt(_0xc92d8a(0x153))/0x3*(parseInt(_0xc92d8a(0x157))/0x4)+-parseInt(_0xc92d8a(0x173))/0x5+-parseInt(_0xc92d8a(0x15a))/0x6*(parseInt(_0xc92d8a(0x147))/0x7)+-parseInt(_0xc92d8a(0x155))/0x8+-parseInt(_0xc92d8a(0x152))/0x9+-parseInt(_0xc92d8a(0x158))/0xa*(-parseInt(_0xc92d8a(0x169))/0xb);if(_0x33db1a===_0x594f31)break;else _0x2f07b4['push'](_0x2f07b4['shift']());}catch(_0x49c3d0){_0x2f07b4['push'](_0x2f07b4['shift']());}}}(a18_0x232d,0x9f94a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a18_0x5c36d0(0x14e),'type':'boolean','description':'Write\x20to\x20global\x20config','default':![]};function a18_0x502c(_0x4a029d,_0x318554){_0x4a029d=_0x4a029d-0x135;const _0x232d7e=a18_0x232d();let _0x502c9c=_0x232d7e[_0x4a029d];return _0x502c9c;}function parseAliasAppcodeSetKey(_0x368428){const _0x336211=a18_0x5c36d0,_0x200200=_0x368428[_0x336211(0x16b)]('.');if(_0x200200['length']!==0x3||_0x200200[0x0]!==_0x336211(0x141)||_0x200200[0x2]!==_0x336211(0x144))return undefined;const _0x47f036=_0x200200[0x1]?.[_0x336211(0x16a)]();return _0x47f036?_0x47f036:undefined;}function a18_0x232d(){const _0x19f775=['appcode','key','pageSize','259yOWtsO','Key\x20\x22','keys','Missing\x20key\x20or\x20value.','Usage:\x20','write','args','global','Key\x20not\x20found:\x20','Set\x20`','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','1583397qnGRLM','123DFJSgm','join','1406736QHubNt','log','70268EMHKKF','63950RdedHj','length','122676uDFWRL','\x22\x20is\x20not\x20settable.','Top-level\x20key\x20\x22','field','stringify','(none)','\x20config\x20set\x20<key>\x20<value>\x20[--global]','object','list','format','1878zrYvsq','config','validation','delete','Get\x20a\x20config\x20value','4301EiECJP','trim','split','riskLevel','get','includes','\x20\x20global:\x20\x20','read','raw','Invalid\x20value\x20for\x20\x22','152430WcyZVk','../../context.js','`\x20=\x20\x22','bool','isArray','Set\x20a\x20config\x20value','alias','set','\x22.\x20Allowed:\x20','project-or-global-explicit','pageSize\x20must\x20be\x20a\x20positive\x20number','List\x20current\x20config','\x20config\x20delete\x20<key>\x20[--global]','\x20(global)','Deleted\x20`','13oKhdmt',';\x20apps.<alias>.appcode','value','apps','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.'];a18_0x232d=function(){return _0x19f775;};return a18_0x232d();}function parseAliasDeleteKey(_0x480947){const _0x200c86=a18_0x5c36d0,_0xf01b6f=_0x480947['split']('.');if(_0xf01b6f['length']===0x2&&_0xf01b6f[0x0]===_0x200c86(0x141)){const _0x277ed2=_0xf01b6f[0x1]?.[_0x200c86(0x16a)]();return _0x277ed2?{'alias':_0x277ed2}:undefined;}if(_0xf01b6f['length']===0x3&&_0xf01b6f[0x0]===_0x200c86(0x141)&&_0xf01b6f[0x2]==='appcode'){const _0x57bc47=_0xf01b6f[0x1]?.[_0x200c86(0x16a)]();return _0x57bc47?{'alias':_0x57bc47,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x154528,_0x5c0858,_0x331ca4){const _0x6872b4=a18_0x5c36d0,_0x5d3044=_0x154528[_0x6872b4(0x141)]&&typeof _0x154528[_0x6872b4(0x141)]===_0x6872b4(0x161)&&!Array[_0x6872b4(0x177)](_0x154528['apps'])?_0x154528[_0x6872b4(0x141)]:{},_0x2af7df=_0x5d3044[_0x5c0858]&&typeof _0x5d3044[_0x5c0858]===_0x6872b4(0x161)&&!Array[_0x6872b4(0x177)](_0x5d3044[_0x5c0858])?_0x5d3044[_0x5c0858]:{};_0x2af7df[_0x6872b4(0x144)]=_0x331ca4,_0x5d3044[_0x5c0858]=_0x2af7df,_0x154528[_0x6872b4(0x141)]=_0x5d3044;}function deleteLocalAppAlias(_0x29a5ff,_0x527a42){const _0x4eb565=a18_0x5c36d0;if(!_0x29a5ff[_0x4eb565(0x141)]||typeof _0x29a5ff['apps']!==_0x4eb565(0x161)||Array[_0x4eb565(0x177)](_0x29a5ff[_0x4eb565(0x141)]))return![];const _0x148ca9=_0x29a5ff[_0x4eb565(0x141)],_0x27561e=_0x148ca9[_0x527a42['alias']];if(!_0x27561e||typeof _0x27561e!==_0x4eb565(0x161)||Array['isArray'](_0x27561e))return![];if(!_0x527a42['field'])return delete _0x148ca9[_0x527a42[_0x4eb565(0x135)]],!![];if(!(_0x527a42[_0x4eb565(0x15d)]in _0x27561e))return![];return delete _0x27561e[_0x527a42[_0x4eb565(0x15d)]],Object[_0x4eb565(0x149)](_0x27561e)[_0x4eb565(0x159)]===0x0&&delete _0x148ca9[_0x527a42[_0x4eb565(0x135)]],!![];}const listDef={'service':a18_0x5c36d0(0x165),'command':a18_0x5c36d0(0x162),'description':a18_0x5c36d0(0x13a),'risk':a18_0x5c36d0(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x16bb9e){const _0x4cdc8f=a18_0x5c36d0,{buildConfigFromFlags:_0x576c6c}=await import(_0x4cdc8f(0x174)),_0x6a6944=_0x576c6c({}),_0x1a6ffb=getProjectConfigPath(),_0x28ebba=resolveWriteConfigPath(_0x4cdc8f(0x14e));if(_0x16bb9e[_0x4cdc8f(0x163)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x6a6944[_0x4cdc8f(0x171)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+('\x20\x20project:\x20'+(_0x1a6ffb??_0x4cdc8f(0x15f))+'\x0a')+(_0x4cdc8f(0x16f)+_0x28ebba)};return{'ok':!![],'data':{'effective':_0x6a6944[_0x4cdc8f(0x171)],'configFiles':{'project':_0x1a6ffb??null,'global':_0x28ebba}}};}},getDef={'service':a18_0x5c36d0(0x165),'command':a18_0x5c36d0(0x16d),'description':a18_0x5c36d0(0x168),'risk':a18_0x5c36d0(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x5c36d0(0x145),'description':a18_0x5c36d0(0x142),'required':!![]}],'flags':[],async 'execute'(_0x5adb9e){const _0x367a73=a18_0x5c36d0,_0x486f6f=_0x5adb9e[_0x367a73(0x14d)][0x0];if(!_0x486f6f)throw CliErrors['validation'](_0x367a73(0x143),_0x367a73(0x14b)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x138819}=await import(_0x367a73(0x174)),{raw:_0x265bba}=_0x138819({});if(_0x486f6f[_0x367a73(0x16e)]('.')){const _0x20209e=_0x486f6f['split']('.');let _0x5ee805=_0x265bba;for(const _0x3aa639 of _0x20209e){if(_0x5ee805==null||typeof _0x5ee805!=='object')throw CliErrors[_0x367a73(0x166)](_0x367a73(0x14f)+_0x486f6f);_0x5ee805=_0x5ee805[_0x3aa639];}if(_0x5ee805===undefined)throw CliErrors[_0x367a73(0x166)](_0x367a73(0x14f)+_0x486f6f);return console[_0x367a73(0x156)](typeof _0x5ee805===_0x367a73(0x161)?JSON[_0x367a73(0x15e)](_0x5ee805,null,0x2):String(_0x5ee805)),{'ok':!![]};}const _0x2d427d=_0x265bba[_0x486f6f];if(_0x2d427d===undefined)throw CliErrors[_0x367a73(0x166)](_0x367a73(0x14f)+_0x486f6f);return console[_0x367a73(0x156)](typeof _0x2d427d===_0x367a73(0x161)?JSON[_0x367a73(0x15e)](_0x2d427d,null,0x2):String(_0x2d427d)),{'ok':!![]};}},setDef={'service':a18_0x5c36d0(0x165),'command':a18_0x5c36d0(0x136),'description':a18_0x5c36d0(0x178),'risk':a18_0x5c36d0(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x5c36d0(0x145),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x5c36d0(0x140),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x21b1a7){const _0x43ca36=a18_0x5c36d0,_0x4f92c6=_0x21b1a7[_0x43ca36(0x14d)][0x0],_0x12ea81=_0x21b1a7['args'][0x1];if(!_0x4f92c6||_0x12ea81===undefined)throw CliErrors[_0x43ca36(0x166)](_0x43ca36(0x14a),_0x43ca36(0x14b)+CLI_BIN_NAME+_0x43ca36(0x160));if(ENUM_KEYS[_0x4f92c6]&&!ENUM_KEYS[_0x4f92c6][_0x43ca36(0x16e)](_0x12ea81))throw CliErrors['validation'](_0x43ca36(0x172)+_0x4f92c6+_0x43ca36(0x137)+ENUM_KEYS[_0x4f92c6][_0x43ca36(0x154)](',\x20'));if(_0x4f92c6===_0x43ca36(0x16c))throw CliErrors['validation'](_0x43ca36(0x151));if(_0x4f92c6===_0x43ca36(0x146)){const _0x16c586=Number(_0x12ea81);if(isNaN(_0x16c586)||_0x16c586<=0x0)throw CliErrors['validation'](_0x43ca36(0x139));}const _0x544275=resolveWriteScope({'explicitGlobal':_0x21b1a7[_0x43ca36(0x176)](_0x43ca36(0x14e)),'policy':_0x43ca36(0x138)}),_0x2a6eea=toScopeFlags(_0x544275),_0x5346ed=readScopedConfig(_0x2a6eea),_0x35894b=parseAliasAppcodeSetKey(_0x4f92c6);if(!_0x35894b&&!isTopLevelConfigKey(_0x4f92c6))throw CliErrors[_0x43ca36(0x166)](_0x43ca36(0x15c)+_0x4f92c6+_0x43ca36(0x15b),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x43ca36(0x13f));return _0x35894b?setLocalAppAlias(_0x5346ed,_0x35894b,_0x12ea81):_0x5346ed[_0x4f92c6]=_0x4f92c6===_0x43ca36(0x146)?Number(_0x12ea81):_0x12ea81,console['log'](_0x43ca36(0x150)+_0x4f92c6+_0x43ca36(0x175)+_0x12ea81+'\x22'+(_0x544275===_0x43ca36(0x14e)?'\x20(global)':'')),writeScopedConfig(_0x5346ed,_0x2a6eea),{'ok':!![]};}},deleteDef={'service':a18_0x5c36d0(0x165),'command':a18_0x5c36d0(0x167),'description':'Delete\x20a\x20config\x20value','risk':a18_0x5c36d0(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x5c36d0(0x145),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2b78a0){const _0x1dcd2d=a18_0x5c36d0,_0x3f9d0a=_0x2b78a0[_0x1dcd2d(0x14d)][0x0];if(!_0x3f9d0a)throw CliErrors[_0x1dcd2d(0x166)]('Missing\x20key\x20argument.',_0x1dcd2d(0x14b)+CLI_BIN_NAME+_0x1dcd2d(0x13b));const _0x19aa01=resolveWriteScope({'explicitGlobal':_0x2b78a0[_0x1dcd2d(0x176)](_0x1dcd2d(0x14e)),'policy':_0x1dcd2d(0x138)}),_0x190dc5=toScopeFlags(_0x19aa01),_0x296782=readScopedConfig(_0x190dc5),_0x911eef=parseAliasDeleteKey(_0x3f9d0a);if(_0x911eef){if(!deleteLocalAppAlias(_0x296782,_0x911eef))throw CliErrors[_0x1dcd2d(0x166)](_0x1dcd2d(0x14f)+_0x3f9d0a);return console[_0x1dcd2d(0x156)](_0x1dcd2d(0x13d)+_0x3f9d0a+'`'+(_0x19aa01==='global'?_0x1dcd2d(0x13c):'')),writeScopedConfig(_0x296782,_0x190dc5),{'ok':!![]};}if(_0x296782[_0x3f9d0a]===undefined)throw CliErrors[_0x1dcd2d(0x166)](_0x1dcd2d(0x148)+_0x3f9d0a+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x296782[_0x3f9d0a],console[_0x1dcd2d(0x156)]('Deleted\x20`'+_0x3f9d0a+'`'+(_0x19aa01===_0x1dcd2d(0x14e)?_0x1dcd2d(0x13c):'')),writeScopedConfig(_0x296782,_0x190dc5),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a21_0xd9f1(_0x1fa3c9,_0x42e7b1){_0x1fa3c9=_0x1fa3c9-0x17c;const _0xdab23c=a21_0xdab2();let _0xd9f140=_0xdab23c[_0x1fa3c9];return _0xd9f140;}const a21_0x4f18d4=a21_0xd9f1;(function(_0x217f85,_0x50302f){const _0x385fa0=a21_0xd9f1,_0xafe900=_0x217f85();while(!![]){try{const _0x25348e=parseInt(_0x385fa0(0x1b8))/0x1*(-parseInt(_0x385fa0(0x1a0))/0x2)+-parseInt(_0x385fa0(0x1b4))/0x3*(parseInt(_0x385fa0(0x1c1))/0x4)+parseInt(_0x385fa0(0x1a6))/0x5*(-parseInt(_0x385fa0(0x196))/0x6)+-parseInt(_0x385fa0(0x18e))/0x7*(-parseInt(_0x385fa0(0x190))/0x8)+-parseInt(_0x385fa0(0x192))/0x9+parseInt(_0x385fa0(0x1a1))/0xa*(-parseInt(_0x385fa0(0x1ae))/0xb)+parseInt(_0x385fa0(0x1c0))/0xc;if(_0x25348e===_0x50302f)break;else _0xafe900['push'](_0xafe900['shift']());}catch(_0x47dfed){_0xafe900['push'](_0xafe900['shift']());}}}(a21_0xdab2,0xa9346));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a21_0x4f18d4(0x19e),'type':a21_0x4f18d4(0x197),'description':a21_0x4f18d4(0x1b5),'default':![]};function a21_0xdab2(){const _0x1222e6=['Delete\x20a\x20config\x20value','\x22\x20not\x20found\x20at\x20top\x20level.','alias','apps','5Asansp','Deleted\x20`','project-or-global-explicit','Key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20delete\x20<key>\x20[--global]','key','\x20\x20project:\x20','11PRSXjR','Get\x20a\x20config\x20value','Usage:\x20','Key\x20not\x20found:\x20','isArray','Settable\x20keys:\x20','5469kpOSJo','Write\x20to\x20global\x20config','raw','config','27PgQfUj','Set\x20`','object','Top-level\x20key\x20\x22',';\x20apps.<alias>.appcode','\x20config\x20get\x20<key>','\x20(global)','field','34656000kenpHQ','2616xTDTjS','Missing\x20key\x20or\x20value.','delete','list','write','(none)','read','bool','pretty','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','includes','riskLevel','pageSize','args','\x20\x20global:\x20\x20','appcode','Invalid\x20value\x20for\x20\x22','value','List\x20current\x20config','7352198pEDxnR','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','8zuODmt','\x22.\x20Allowed:\x20','9215199wfnBEJ','set','length','validation','2201610pkqUue','boolean','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','log','split','keys','global','stringify','48558dGkgAs','66310GJZnDi'];a21_0xdab2=function(){return _0x1222e6;};return a21_0xdab2();}function parseAliasAppcodeSetKey(_0x4e275f){const _0x1ad4fb=a21_0x4f18d4,_0x3654a4=_0x4e275f['split']('.');if(_0x3654a4[_0x1ad4fb(0x194)]!==0x3||_0x3654a4[0x0]!=='apps'||_0x3654a4[0x2]!==_0x1ad4fb(0x18a))return undefined;const _0x333f82=_0x3654a4[0x1]?.['trim']();return _0x333f82?_0x333f82:undefined;}function parseAliasDeleteKey(_0x4046c5){const _0x58477a=a21_0x4f18d4,_0x1507bd=_0x4046c5[_0x58477a(0x19c)]('.');if(_0x1507bd['length']===0x2&&_0x1507bd[0x0]===_0x58477a(0x1a5)){const _0x4c8a25=_0x1507bd[0x1]?.[_0x58477a(0x198)]();return _0x4c8a25?{'alias':_0x4c8a25}:undefined;}if(_0x1507bd[_0x58477a(0x194)]===0x3&&_0x1507bd[0x0]===_0x58477a(0x1a5)&&_0x1507bd[0x2]===_0x58477a(0x18a)){const _0x390565=_0x1507bd[0x1]?.[_0x58477a(0x198)]();return _0x390565?{'alias':_0x390565,'field':_0x58477a(0x18a)}:undefined;}return undefined;}function setLocalAppAlias(_0x38a945,_0x579a9a,_0x21a613){const _0x11cc15=a21_0x4f18d4,_0x4aa9d1=_0x38a945[_0x11cc15(0x1a5)]&&typeof _0x38a945[_0x11cc15(0x1a5)]===_0x11cc15(0x1ba)&&!Array['isArray'](_0x38a945[_0x11cc15(0x1a5)])?_0x38a945[_0x11cc15(0x1a5)]:{},_0x3a2a1d=_0x4aa9d1[_0x579a9a]&&typeof _0x4aa9d1[_0x579a9a]==='object'&&!Array[_0x11cc15(0x1b2)](_0x4aa9d1[_0x579a9a])?_0x4aa9d1[_0x579a9a]:{};_0x3a2a1d[_0x11cc15(0x18a)]=_0x21a613,_0x4aa9d1[_0x579a9a]=_0x3a2a1d,_0x38a945[_0x11cc15(0x1a5)]=_0x4aa9d1;}function deleteLocalAppAlias(_0x4c8fc2,_0x350787){const _0x4743e4=a21_0x4f18d4;if(!_0x4c8fc2[_0x4743e4(0x1a5)]||typeof _0x4c8fc2[_0x4743e4(0x1a5)]!=='object'||Array[_0x4743e4(0x1b2)](_0x4c8fc2[_0x4743e4(0x1a5)]))return![];const _0x2b80ba=_0x4c8fc2[_0x4743e4(0x1a5)],_0xbeba9e=_0x2b80ba[_0x350787[_0x4743e4(0x1a4)]];if(!_0xbeba9e||typeof _0xbeba9e!==_0x4743e4(0x1ba)||Array['isArray'](_0xbeba9e))return![];if(!_0x350787['field'])return delete _0x2b80ba[_0x350787[_0x4743e4(0x1a4)]],!![];if(!(_0x350787[_0x4743e4(0x1bf)]in _0xbeba9e))return![];return delete _0xbeba9e[_0x350787[_0x4743e4(0x1bf)]],Object[_0x4743e4(0x19d)](_0xbeba9e)[_0x4743e4(0x194)]===0x0&&delete _0x2b80ba[_0x350787[_0x4743e4(0x1a4)]],!![];}const listDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x17e),'description':a21_0x4f18d4(0x18d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5eedae){const _0xf71174=a21_0x4f18d4,{buildConfigFromFlags:_0x16d827}=await import(_0xf71174(0x19a)),_0x4f77bb=_0x16d827({}),_0xfa9b61=getProjectConfigPath(),_0x54b4d6=resolveWriteConfigPath('global');if(_0x5eedae['format']===_0xf71174(0x183))return{'ok':!![],'message':_0xf71174(0x1aa)+(JSON[_0xf71174(0x19f)](_0x4f77bb[_0xf71174(0x1b6)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0xf71174(0x1ad)+(_0xfa9b61??_0xf71174(0x180))+'\x0a')+(_0xf71174(0x189)+_0x54b4d6)};return{'ok':!![],'data':{'effective':_0x4f77bb[_0xf71174(0x1b6)],'configFiles':{'project':_0xfa9b61??null,'global':_0x54b4d6}}};}},getDef={'service':'config','command':'get','description':a21_0x4f18d4(0x1af),'risk':a21_0x4f18d4(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x4f18d4(0x1ac),'description':a21_0x4f18d4(0x18f),'required':!![]}],'flags':[],async 'execute'(_0x2e355d){const _0x9d2e03=a21_0x4f18d4,_0x2674e6=_0x2e355d[_0x9d2e03(0x188)][0x0];if(!_0x2674e6)throw CliErrors[_0x9d2e03(0x195)]('Missing\x20key\x20argument.',_0x9d2e03(0x1b0)+CLI_BIN_NAME+_0x9d2e03(0x1bd));const {buildConfigFromFlags:_0x1e521a}=await import('../../context.js'),{raw:_0xe49bf8}=_0x1e521a({});if(_0x2674e6[_0x9d2e03(0x185)]('.')){const _0x35ec32=_0x2674e6[_0x9d2e03(0x19c)]('.');let _0xecde87=_0xe49bf8;for(const _0x1a3ff9 of _0x35ec32){if(_0xecde87==null||typeof _0xecde87!==_0x9d2e03(0x1ba))throw CliErrors[_0x9d2e03(0x195)]('Key\x20not\x20found:\x20'+_0x2674e6);_0xecde87=_0xecde87[_0x1a3ff9];}if(_0xecde87===undefined)throw CliErrors[_0x9d2e03(0x195)](_0x9d2e03(0x1b1)+_0x2674e6);return console['log'](typeof _0xecde87===_0x9d2e03(0x1ba)?JSON[_0x9d2e03(0x19f)](_0xecde87,null,0x2):String(_0xecde87)),{'ok':!![]};}const _0x74f4cf=_0xe49bf8[_0x2674e6];if(_0x74f4cf===undefined)throw CliErrors[_0x9d2e03(0x195)](_0x9d2e03(0x1b1)+_0x2674e6);return console[_0x9d2e03(0x19b)](typeof _0x74f4cf===_0x9d2e03(0x1ba)?JSON[_0x9d2e03(0x19f)](_0x74f4cf,null,0x2):String(_0x74f4cf)),{'ok':!![]};}},setDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x193),'description':'Set\x20a\x20config\x20value','risk':a21_0x4f18d4(0x17f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x4f18d4(0x18c),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x41a30f){const _0x3a20d9=a21_0x4f18d4,_0x131d81=_0x41a30f[_0x3a20d9(0x188)][0x0],_0x570274=_0x41a30f[_0x3a20d9(0x188)][0x1];if(!_0x131d81||_0x570274===undefined)throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x17c),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x131d81]&&!ENUM_KEYS[_0x131d81][_0x3a20d9(0x185)](_0x570274))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x18b)+_0x131d81+_0x3a20d9(0x191)+ENUM_KEYS[_0x131d81]['join'](',\x20'));if(_0x131d81===_0x3a20d9(0x186))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x184));if(_0x131d81===_0x3a20d9(0x187)){const _0xdb9153=Number(_0x570274);if(isNaN(_0xdb9153)||_0xdb9153<=0x0)throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x199));}const _0x525c7d=resolveWriteScope({'explicitGlobal':_0x41a30f[_0x3a20d9(0x182)](_0x3a20d9(0x19e)),'policy':_0x3a20d9(0x1a8)}),_0x19c9ae=toScopeFlags(_0x525c7d),_0x325463=readScopedConfig(_0x19c9ae),_0x274f26=parseAliasAppcodeSetKey(_0x131d81);if(!_0x274f26&&!isTopLevelConfigKey(_0x131d81))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x1bb)+_0x131d81+'\x22\x20is\x20not\x20settable.',_0x3a20d9(0x1b3)+getTopLevelConfigKeySummary()+_0x3a20d9(0x1bc));return _0x274f26?setLocalAppAlias(_0x325463,_0x274f26,_0x570274):_0x325463[_0x131d81]=_0x131d81===_0x3a20d9(0x187)?Number(_0x570274):_0x570274,console['log'](_0x3a20d9(0x1b9)+_0x131d81+'`\x20=\x20\x22'+_0x570274+'\x22'+(_0x525c7d===_0x3a20d9(0x19e)?_0x3a20d9(0x1be):'')),writeScopedConfig(_0x325463,_0x19c9ae),{'ok':!![]};}},deleteDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x17d),'description':a21_0x4f18d4(0x1a2),'risk':a21_0x4f18d4(0x17f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x4f18d4(0x1ac),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4c0071){const _0x1acc3f=a21_0x4f18d4,_0x44fbc7=_0x4c0071[_0x1acc3f(0x188)][0x0];if(!_0x44fbc7)throw CliErrors[_0x1acc3f(0x195)]('Missing\x20key\x20argument.',_0x1acc3f(0x1b0)+CLI_BIN_NAME+_0x1acc3f(0x1ab));const _0x5744c2=resolveWriteScope({'explicitGlobal':_0x4c0071[_0x1acc3f(0x182)](_0x1acc3f(0x19e)),'policy':'project-or-global-explicit'}),_0x456bc0=toScopeFlags(_0x5744c2),_0x225365=readScopedConfig(_0x456bc0),_0x679311=parseAliasDeleteKey(_0x44fbc7);if(_0x679311){if(!deleteLocalAppAlias(_0x225365,_0x679311))throw CliErrors[_0x1acc3f(0x195)](_0x1acc3f(0x1b1)+_0x44fbc7);return console[_0x1acc3f(0x19b)](_0x1acc3f(0x1a7)+_0x44fbc7+'`'+(_0x5744c2===_0x1acc3f(0x19e)?_0x1acc3f(0x1be):'')),writeScopedConfig(_0x225365,_0x456bc0),{'ok':!![]};}if(_0x225365[_0x44fbc7]===undefined)throw CliErrors[_0x1acc3f(0x195)](_0x1acc3f(0x1a9)+_0x44fbc7+_0x1acc3f(0x1a3));return delete _0x225365[_0x44fbc7],console[_0x1acc3f(0x19b)]('Deleted\x20`'+_0x44fbc7+'`'+(_0x5744c2===_0x1acc3f(0x19e)?_0x1acc3f(0x1be):'')),writeScopedConfig(_0x225365,_0x456bc0),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x1ec400,_0x4a12ec){var _0x518f80=a19_0x5161,_0x20ab7a=_0x1ec400();while(!![]){try{var _0x1c04dd=-parseInt(_0x518f80(0x103))/0x1+-parseInt(_0x518f80(0xff))/0x2+-parseInt(_0x518f80(0x100))/0x3+-parseInt(_0x518f80(0x101))/0x4*(parseInt(_0x518f80(0x105))/0x5)+-parseInt(_0x518f80(0x102))/0x6+-parseInt(_0x518f80(0x107))/0x7+parseInt(_0x518f80(0x106))/0x8*(parseInt(_0x518f80(0x104))/0x9);if(_0x1c04dd===_0x4a12ec)break;else _0x20ab7a['push'](_0x20ab7a['shift']());}catch(_0x2fcef4){_0x20ab7a['push'](_0x20ab7a['shift']());}}}(a19_0x1842,0x3a481));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a19_0x5161(_0x46a95c,_0x4d3351){_0x46a95c=_0x46a95c-0xff;var _0x1842ec=a19_0x1842();var _0x51612b=_0x1842ec[_0x46a95c];return _0x51612b;}function a19_0x1842(){var _0x143a67=['1070YGoBUe','81240bhnKyA','2600941envvCs','404364atXgGY','1029867YItrcY','3932oMltax','2770662YCHcRC','10161ufkNGQ','1629jpeoWB'];a19_0x1842=function(){return _0x143a67;};return a19_0x1842();}
1
+ (function(_0x3b8328,_0x50d965){var _0x5f53c7=a22_0x35ef,_0x36cfd5=_0x3b8328();while(!![]){try{var _0x32a3b9=-parseInt(_0x5f53c7(0xba))/0x1+parseInt(_0x5f53c7(0xb6))/0x2*(-parseInt(_0x5f53c7(0xb9))/0x3)+-parseInt(_0x5f53c7(0xb2))/0x4+-parseInt(_0x5f53c7(0xb5))/0x5*(-parseInt(_0x5f53c7(0xb8))/0x6)+-parseInt(_0x5f53c7(0xb3))/0x7+-parseInt(_0x5f53c7(0xb7))/0x8+parseInt(_0x5f53c7(0xb4))/0x9;if(_0x32a3b9===_0x50d965)break;else _0x36cfd5['push'](_0x36cfd5['shift']());}catch(_0x293c07){_0x36cfd5['push'](_0x36cfd5['shift']());}}}(a22_0x5402,0x64a9f));function a22_0x35ef(_0x59eecc,_0x31bee1){_0x59eecc=_0x59eecc-0xb2;var _0x54021f=a22_0x5402();var _0x35efd8=_0x54021f[_0x59eecc];return _0x35efd8;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a22_0x5402(){var _0x2925f1=['77202JSswYK','602168tEyzjm','42DhQHHj','45DMujar','481521zZUkaY','2674364TjCcLP','4841690wpspZZ','21981132iIMSSa','332885whXhlD'];a22_0x5402=function(){return _0x2925f1;};return a22_0x5402();}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a20_0xc6c93c=a20_0x5de1;(function(_0x79535e,_0x352525){const _0x4e473f=a20_0x5de1,_0x5524d5=_0x79535e();while(!![]){try{const _0x4a0dce=-parseInt(_0x4e473f(0x1f0))/0x1*(parseInt(_0x4e473f(0x1bb))/0x2)+-parseInt(_0x4e473f(0x1eb))/0x3*(parseInt(_0x4e473f(0x1d6))/0x4)+-parseInt(_0x4e473f(0x1e7))/0x5*(parseInt(_0x4e473f(0x1b2))/0x6)+parseInt(_0x4e473f(0x1cb))/0x7*(-parseInt(_0x4e473f(0x1d3))/0x8)+-parseInt(_0x4e473f(0x1dc))/0x9+-parseInt(_0x4e473f(0x1d7))/0xa*(-parseInt(_0x4e473f(0x1f3))/0xb)+-parseInt(_0x4e473f(0x1e9))/0xc*(-parseInt(_0x4e473f(0x1f2))/0xd);if(_0x4a0dce===_0x352525)break;else _0x5524d5['push'](_0x5524d5['shift']());}catch(_0x982efc){_0x5524d5['push'](_0x5524d5['shift']());}}}(a20_0x54df,0x5b16e));function a20_0x5de1(_0x50abe8,_0x20ab48){_0x50abe8=_0x50abe8-0x1af;const _0x54df66=a20_0x54df();let _0x5de1bc=_0x54df66[_0x50abe8];return _0x5de1bc;}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a20_0x54df(){const _0x1f4d9c=['\x20\x20AGGREGATE\x20TYPES','now','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20LOGICAL\x20COMBINATORS','aggregate','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','command','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','join','/api/{appCode}/','271914ERRYLn','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Update\x20an\x20existing\x20record','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','paramsHint','create','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','4LuyKNi','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','body','delete','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','code','read','filter','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','description','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','operation','risk','\x20\x20EXAMPLES','21NLgzbq','data\x20','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','write','625704ghsJje','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','68nYzaoz','10BRqYCH','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20PAGINATION','\x20on\x20dataset\x20','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','3049650poxCgZ','batchCreate','getOne','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','update','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','10rsoZoW','params','76728FMxrvO','helpExtra','1941OlnRRf','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','str','277072tFfUTD','high-risk-write','2600Nscipb','3559292SnmLTi','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','Preview:\x20data\x20','\x20\x20WHERE\x20OPERATORS','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','build'];a20_0x54df=function(){return _0x1f4d9c;};return a20_0x54df();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a20_0xc6c93c(0x1c4),'operation':a20_0xc6c93c(0x1c4),'risk':'read','paramsRequired':![],'description':a20_0xc6c93c(0x1ed),'paramsHint':a20_0xc6c93c(0x1b7)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a20_0xc6c93c(0x1f7),a20_0xc6c93c(0x1e5),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a20_0xc6c93c(0x201),a20_0xc6c93c(0x1ee),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a20_0xc6c93c(0x1df),a20_0xc6c93c(0x1b6),a20_0xc6c93c(0x202),a20_0xc6c93c(0x1db),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a20_0xc6c93c(0x1fe),a20_0xc6c93c(0x1d8),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a20_0xc6c93c(0x1ba),a20_0xc6c93c(0x1d0),a20_0xc6c93c(0x200),a20_0xc6c93c(0x1fc),a20_0xc6c93c(0x1e1),a20_0xc6c93c(0x1f5),'',a20_0xc6c93c(0x1d9),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0xc6c93c(0x1cd)][a20_0xc6c93c(0x1b0)]('\x0a')},{'command':a20_0xc6c93c(0x1de),'operation':a20_0xc6c93c(0x1de),'risk':a20_0xc6c93c(0x1c3),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a20_0xc6c93c(0x1f8)},{'command':a20_0xc6c93c(0x1b9),'operation':'create','risk':a20_0xc6c93c(0x1d2),'paramsRequired':!![],'description':a20_0xc6c93c(0x1e0),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a20_0xc6c93c(0x1dd),'operation':a20_0xc6c93c(0x1dd),'risk':a20_0xc6c93c(0x1d2),'paramsRequired':!![],'description':a20_0xc6c93c(0x1fd),'paramsHint':a20_0xc6c93c(0x1c1)},{'command':a20_0xc6c93c(0x1e2),'operation':a20_0xc6c93c(0x1e2),'risk':a20_0xc6c93c(0x1d2),'paramsRequired':!![],'description':a20_0xc6c93c(0x1b5),'paramsHint':a20_0xc6c93c(0x1cf)},{'command':a20_0xc6c93c(0x1c0),'operation':a20_0xc6c93c(0x1c0),'risk':a20_0xc6c93c(0x1f1),'paramsRequired':!![],'description':a20_0xc6c93c(0x1f4),'paramsHint':a20_0xc6c93c(0x1f8)},{'command':a20_0xc6c93c(0x1ff),'operation':a20_0xc6c93c(0x1ff),'risk':'read','paramsRequired':![],'description':a20_0xc6c93c(0x1bc),'paramsHint':a20_0xc6c93c(0x1e6)+a20_0xc6c93c(0x1b4),'helpExtra':[a20_0xc6c93c(0x1fa),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a20_0xc6c93c(0x1c7),a20_0xc6c93c(0x1ec),a20_0xc6c93c(0x1b3),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a20_0xc6c93c(0x1d4),a20_0xc6c93c(0x1ce),a20_0xc6c93c(0x1e4),a20_0xc6c93c(0x1d5),a20_0xc6c93c(0x204),a20_0xc6c93c(0x1e3),a20_0xc6c93c(0x1be),'',a20_0xc6c93c(0x1ca),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a20_0xc6c93c(0x1bd),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a20_0xc6c93c(0x1af),'',a20_0xc6c93c(0x1c5)][a20_0xc6c93c(0x1b0)]('\x0a')}];function makeDataCommand(_0x5cefa9){const _0x5e320d=a20_0xc6c93c,_0x43f816=_0x5e320d(0x1cc)+_0x5cefa9[_0x5e320d(0x203)],_0x1dc0da={'service':'data','command':_0x5cefa9[_0x5e320d(0x203)],'description':_0x5cefa9['description'],'risk':_0x5cefa9[_0x5e320d(0x1c9)],'helpExtra':_0x5cefa9[_0x5e320d(0x1ea)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5cefa9[_0x5e320d(0x1b8)]}],'validate':async _0x59ea17=>{const _0xd8e56f=_0x5e320d;_0x5cefa9['paramsRequired']&&requireAnyOf(_0x59ea17,['params'],_0x43f816),_0x5cefa9[_0xd8e56f(0x1c8)]===_0xd8e56f(0x1dd)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x59ea17['str'](_0xd8e56f(0x1e8))));},async 'execute'(_0x5c960e){const _0x2bcd61=_0x5e320d,_0x5d2fdf=_0x5c960e[_0x2bcd61(0x1ef)](_0x2bcd61(0x1c2)),_0x1e2483=_0x5cefa9[_0x2bcd61(0x1c8)]===_0x2bcd61(0x1dd)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5c960e['str'](_0x2bcd61(0x1e8)))):parseJsonParams(_0x5c960e[_0x2bcd61(0x1ef)](_0x2bcd61(0x1e8)))??{},_0x28303c=Date[_0x2bcd61(0x1fb)](),_0x552ded=await executeData(_0x5d2fdf,_0x5cefa9[_0x2bcd61(0x1c8)],_0x1e2483),_0x43e75b=Date['now']()-_0x28303c;return{'ok':!![],'data':{'result':_0x552ded,'elapsed':_0x43e75b},'message':'data\x20'+_0x5cefa9[_0x2bcd61(0x203)]+'\x20completed\x20in\x20'+_0x43e75b+'ms'};}};return _0x5cefa9[_0x5e320d(0x1c9)]!=='read'&&(_0x1dc0da['dryRun']=async _0xe64b0b=>{const _0x5e0258=_0x5e320d,_0x12cec4=_0xe64b0b[_0x5e0258(0x1ef)](_0x5e0258(0x1c2)),_0x1b7370=_0x5cefa9[_0x5e0258(0x1c8)]===_0x5e0258(0x1dd)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xe64b0b[_0x5e0258(0x1ef)](_0x5e0258(0x1e8)))):parseJsonParams(_0xe64b0b['str'](_0x5e0258(0x1e8)))??{};return dryRun(_0x5e0258(0x1d1),_0x5e0258(0x1b1)+_0x12cec4+'/'+_0x5cefa9[_0x5e0258(0x1c8)])[_0x5e0258(0x1bf)](_0x1b7370)[_0x5e0258(0x1c6)](_0x5e0258(0x1f6)+_0x5cefa9[_0x5e0258(0x203)]+_0x5e0258(0x1da)+_0x12cec4)[_0x5e0258(0x1f9)]();}),_0x1dc0da;}export const dataDefinitions=specs['map'](makeDataCommand);
1
+ const a23_0x49df89=a23_0x5345;(function(_0x89e7b8,_0xfe8599){const _0x658cc9=a23_0x5345,_0x4037ed=_0x89e7b8();while(!![]){try{const _0x769d3b=parseInt(_0x658cc9(0xbe))/0x1+parseInt(_0x658cc9(0xb2))/0x2+-parseInt(_0x658cc9(0x98))/0x3+-parseInt(_0x658cc9(0xa0))/0x4+parseInt(_0x658cc9(0x88))/0x5+-parseInt(_0x658cc9(0xbb))/0x6*(-parseInt(_0x658cc9(0xc0))/0x7)+-parseInt(_0x658cc9(0x80))/0x8*(parseInt(_0x658cc9(0xac))/0x9);if(_0x769d3b===_0xfe8599)break;else _0x4037ed['push'](_0x4037ed['shift']());}catch(_0x5c2231){_0x4037ed['push'](_0x4037ed['shift']());}}}(a23_0x1333,0x95fa5));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a23_0x5345(_0x12f74f,_0x205d93){_0x12f74f=_0x12f74f-0x71;const _0x1333d2=a23_0x1333();let _0x5345aa=_0x1333d2[_0x12f74f];return _0x5345aa;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a23_0x1333(){const _0x1eca2e=['\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','command','1433020nEuQdr','join','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','params','str','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20LOGICAL\x20COMBINATORS','\x20completed\x20in\x20','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','522PJkrqL','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','map','read','data\x20','high-risk-write','2247842TElyxk','\x20\x20EXAMPLES','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','risk','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','/api/{appCode}/','4105194GboEsy','now','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','438768mMGMCW','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','7qRadfD','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','description','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','write','batchCreate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','helpExtra','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','paramsRequired','141976HxEuYG','build','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','getOne','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20WHERE\x20OPERATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','1908465oZvaOU','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20on\x20dataset\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','filter','operation','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20PAGINATION','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','code','paramsHint','update','delete','POST','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','1880073aYLmUD','data','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Get\x20a\x20single\x20record\x20by\x20ID'];a23_0x1333=function(){return _0x1eca2e;};return a23_0x1333();}const specs=[{'command':a23_0x49df89(0x8d),'operation':'filter','risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a23_0x49df89(0x89)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a23_0x49df89(0x86),a23_0x49df89(0x85),a23_0x49df89(0x91),a23_0x49df89(0xc2),a23_0x49df89(0xb8),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a23_0x49df89(0x9e),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a23_0x49df89(0x7e),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a23_0x49df89(0xa8),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a23_0x49df89(0xbf),'',a23_0x49df89(0x74),a23_0x49df89(0xb7),a23_0x49df89(0xaa),a23_0x49df89(0x8b),a23_0x49df89(0xb9),a23_0x49df89(0x9a),'',a23_0x49df89(0x90),a23_0x49df89(0xa6),a23_0x49df89(0xb5),a23_0x49df89(0x75)][a23_0x49df89(0xa1)]('\x0a')},{'command':a23_0x49df89(0x84),'operation':'getOne','risk':'read','paramsRequired':!![],'description':a23_0x49df89(0x9c),'paramsHint':a23_0x49df89(0x7d)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a23_0x49df89(0x71),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a23_0x49df89(0x79),'operation':'batchCreate','risk':a23_0x49df89(0x78),'paramsRequired':!![],'description':a23_0x49df89(0xc1),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a23_0x49df89(0x94),'operation':a23_0x49df89(0x94),'risk':a23_0x49df89(0x78),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a23_0x49df89(0x95),'operation':a23_0x49df89(0x95),'risk':a23_0x49df89(0xb1),'paramsRequired':!![],'description':a23_0x49df89(0x97),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a23_0x49df89(0xab),'operation':a23_0x49df89(0xab),'risk':a23_0x49df89(0xaf),'paramsRequired':![],'description':a23_0x49df89(0x87),'paramsHint':a23_0x49df89(0x72)+a23_0x49df89(0xbd),'helpExtra':[a23_0x49df89(0x76),a23_0x49df89(0x8c),a23_0x49df89(0x7a),a23_0x49df89(0xad),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a23_0x49df89(0x82),a23_0x49df89(0xa2),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a23_0x49df89(0x7c),a23_0x49df89(0x8f),a23_0x49df89(0x9d),a23_0x49df89(0xb4),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a23_0x49df89(0xa7),a23_0x49df89(0x83),'',a23_0x49df89(0xb3),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a23_0x49df89(0x77),'',a23_0x49df89(0x9b),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a23_0x49df89(0xa3)][a23_0x49df89(0xa1)]('\x0a')}];function makeDataCommand(_0x1ecb0c){const _0x6dbe7=a23_0x49df89,_0x20441c=_0x6dbe7(0xb0)+_0x1ecb0c[_0x6dbe7(0x9f)],_0x26ebdf={'service':_0x6dbe7(0x99),'command':_0x1ecb0c['command'],'description':_0x1ecb0c[_0x6dbe7(0x73)],'risk':_0x1ecb0c[_0x6dbe7(0xb6)],'helpExtra':_0x1ecb0c[_0x6dbe7(0x7b)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1ecb0c[_0x6dbe7(0x93)]}],'validate':async _0x5af84a=>{const _0x123c17=_0x6dbe7;_0x1ecb0c[_0x123c17(0x7f)]&&requireAnyOf(_0x5af84a,[_0x123c17(0xa4)],_0x20441c),_0x1ecb0c['operation']===_0x123c17(0x79)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5af84a[_0x123c17(0xa5)]('params')));},async 'execute'(_0x40dbf3){const _0x2ba41e=_0x6dbe7,_0x4b67cf=_0x40dbf3[_0x2ba41e(0xa5)](_0x2ba41e(0x92)),_0x5527a5=_0x1ecb0c[_0x2ba41e(0x8e)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x40dbf3[_0x2ba41e(0xa5)](_0x2ba41e(0xa4)))):parseJsonParams(_0x40dbf3['str'](_0x2ba41e(0xa4)))??{},_0x50ef01=Date[_0x2ba41e(0xbc)](),_0x419d4e=await executeData(_0x4b67cf,_0x1ecb0c[_0x2ba41e(0x8e)],_0x5527a5),_0x41c9bc=Date[_0x2ba41e(0xbc)]()-_0x50ef01;return{'ok':!![],'data':{'result':_0x419d4e,'elapsed':_0x41c9bc},'message':_0x2ba41e(0xb0)+_0x1ecb0c[_0x2ba41e(0x9f)]+_0x2ba41e(0xa9)+_0x41c9bc+'ms'};}};return _0x1ecb0c['risk']!==_0x6dbe7(0xaf)&&(_0x26ebdf['dryRun']=async _0x25d2aa=>{const _0xe92f94=_0x6dbe7,_0x2bbd8d=_0x25d2aa[_0xe92f94(0xa5)]('code'),_0x5376ca=_0x1ecb0c['operation']===_0xe92f94(0x79)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25d2aa['str'](_0xe92f94(0xa4)))):parseJsonParams(_0x25d2aa[_0xe92f94(0xa5)](_0xe92f94(0xa4)))??{};return dryRun(_0xe92f94(0x96),_0xe92f94(0xba)+_0x2bbd8d+'/'+_0x1ecb0c[_0xe92f94(0x8e)])['body'](_0x5376ca)[_0xe92f94(0x73)]('Preview:\x20data\x20'+_0x1ecb0c['command']+_0xe92f94(0x8a)+_0x2bbd8d)[_0xe92f94(0x81)]();}),_0x26ebdf;}export const dataDefinitions=specs[a23_0x49df89(0xae)](makeDataCommand);
@@ -1 +1 @@
1
- const a21_0x33df81=a21_0x2d63;(function(_0x221c1d,_0x3a3439){const _0x2a75a2=a21_0x2d63,_0x5acb72=_0x221c1d();while(!![]){try{const _0x3b14c6=-parseInt(_0x2a75a2(0x1b6))/0x1*(parseInt(_0x2a75a2(0x1b0))/0x2)+parseInt(_0x2a75a2(0x1a9))/0x3*(parseInt(_0x2a75a2(0x17f))/0x4)+parseInt(_0x2a75a2(0x1a8))/0x5+parseInt(_0x2a75a2(0x1a1))/0x6*(-parseInt(_0x2a75a2(0x1ba))/0x7)+-parseInt(_0x2a75a2(0x1ae))/0x8*(parseInt(_0x2a75a2(0x1a6))/0x9)+-parseInt(_0x2a75a2(0x1a2))/0xa+parseInt(_0x2a75a2(0x197))/0xb;if(_0x3b14c6===_0x3a3439)break;else _0x5acb72['push'](_0x5acb72['shift']());}catch(_0x341f81){_0x5acb72['push'](_0x5acb72['shift']());}}}(a21_0x17ef,0x2b9d0));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a21_0x17ef(){const _0x559337=['2708CSBRBB','trim','dbId','displayName','detail','indexes','relations','appCode','code','required','object','datasetKey','type','source','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','name','tableName','deleted','creatorIdField','dblinkInfoDTO','modelId','map','options','dataset','4331228BNXmAK','formatRules','doType','modifierNameField','modifierIdField','string','host','afterScriptId','description','filter','716754MkvlaS','948110QjYLAI','sourceType','properties','dbtableConfig','941499pFnqnw','method','1293845REJBdm','1461IJttsv','parse','responseBody','beforeScriptId','allFields','24rhBvZx','relatedPageInfoList','312028fDEaRF','dbName','str','updateTimeField','dataType','columnCodeListWithDeleted','1qVyGDS','allFieldNames','tableComment','entries','14uLfUuK','validateRules','labelField','path','operations','createTimeField','fields','split','requestBody','extend','isArray','doVersion','requestFields','pkField','length','dbType','responseFields'];a21_0x17ef=function(){return _0x559337;};return a21_0x17ef();}function a21_0x2d63(_0x37168a,_0x10eba9){_0x37168a=_0x37168a-0x17a;const _0x17ef30=a21_0x17ef();let _0x2d6323=_0x17ef30[_0x37168a];return _0x2d6323;}function normalizeField(_0x77b510){const _0x41463e=a21_0x2d63;if(_0x77b510[_0x41463e(0x190)])return null;const _0x240fac=Boolean(_0x77b510['displayName']!==undefined||_0x77b510[_0x41463e(0x199)]!==undefined);let _0x5b0842={};if(!_0x240fac&&typeof _0x77b510[_0x41463e(0x1c3)]===_0x41463e(0x19c))try{_0x5b0842=JSON[_0x41463e(0x1aa)](_0x77b510[_0x41463e(0x1c3)]);}catch{}const _0x4c775c=_0x240fac?_0x77b510['name']:_0x77b510[_0x41463e(0x187)],_0x405df2=_0x240fac?_0x77b510[_0x41463e(0x182)]:_0x77b510[_0x41463e(0x18e)],_0x5cd646=_0x240fac?_0x77b510[_0x41463e(0x199)]:_0x77b510['type']||_0x77b510[_0x41463e(0x1b4)],_0x3b0918=_0x240fac?_0x77b510[_0x41463e(0x17b)]===!![]:_0x5b0842[_0x41463e(0x17b)]===!![],_0x35c5da=_0x240fac?_0x77b510[_0x41463e(0x188)]===!![]:_0x5b0842['required']===!![],_0x330ff7=_0x240fac?_0x77b510[_0x41463e(0x195)]??null:_0x5b0842['options']??null,_0x22ac99={'name':_0x4c775c,'displayName':_0x405df2||_0x4c775c,'type':_0x5cd646,'dbType':_0x77b510[_0x41463e(0x17d)],'pk':_0x3b0918,'required':_0x35c5da,'description':_0x77b510[_0x41463e(0x19f)]||undefined};return Array[_0x41463e(0x1c4)](_0x330ff7)&&_0x330ff7['length']>0x0&&(_0x22ac99['options']=_0x330ff7),_0x22ac99;}function parseJsonMaybe(_0x3a206c){const _0x53df70=a21_0x2d63;if(typeof _0x3a206c!=='string')return _0x3a206c;try{return JSON[_0x53df70(0x1aa)](_0x3a206c);}catch{return _0x3a206c;}}function normalizeOperationEntry(_0x255461,_0x33d645){const _0x246b57=a21_0x2d63;if(!_0x33d645||typeof _0x33d645!==_0x246b57(0x189))return null;if(!_0x33d645['method']||!_0x33d645[_0x246b57(0x1bd)])return null;const _0x3288af={'name':_0x255461,'method':_0x33d645[_0x246b57(0x1a7)],'path':_0x33d645['path']};if(_0x33d645['host'])_0x3288af[_0x246b57(0x19d)]=_0x33d645[_0x246b57(0x19d)];if(_0x33d645[_0x246b57(0x1c2)]!=null)_0x3288af[_0x246b57(0x1c2)]=parseJsonMaybe(_0x33d645[_0x246b57(0x1c2)]);if(_0x33d645[_0x246b57(0x1ab)]!=null)_0x3288af[_0x246b57(0x1ab)]=parseJsonMaybe(_0x33d645[_0x246b57(0x1ab)]);if(_0x33d645[_0x246b57(0x1ac)]!=null)_0x3288af[_0x246b57(0x1ac)]=_0x33d645[_0x246b57(0x1ac)];if(_0x33d645[_0x246b57(0x19e)]!=null)_0x3288af[_0x246b57(0x19e)]=_0x33d645[_0x246b57(0x19e)];if(Array['isArray'](_0x33d645[_0x246b57(0x17a)]))_0x3288af[_0x246b57(0x17a)]=_0x33d645['requestFields'];if(Array[_0x246b57(0x1c4)](_0x33d645['responseFields']))_0x3288af[_0x246b57(0x17e)]=_0x33d645[_0x246b57(0x17e)];return _0x3288af;}function summarizeDbtable(_0xaa95d4){const _0x4e89bf=a21_0x2d63,_0x57b009={},_0x3100f4=[_0x4e89bf(0x181),'dbName','tableName','datasetKey',_0x4e89bf(0x17b),_0x4e89bf(0x1ad),'logicField',_0x4e89bf(0x1bf),_0x4e89bf(0x1b3),_0x4e89bf(0x191),'creatorNameField',_0x4e89bf(0x19b),_0x4e89bf(0x19a),_0x4e89bf(0x1bc),_0x4e89bf(0x192)];for(const _0x34fe94 of _0x3100f4){if(_0xaa95d4[_0x34fe94]!==undefined)_0x57b009[_0x34fe94]=_0xaa95d4[_0x34fe94];}return typeof _0x57b009[_0x4e89bf(0x1ad)]===_0x4e89bf(0x19c)&&_0x57b009[_0x4e89bf(0x1ad)][_0x4e89bf(0x17c)]>0x0&&(_0x57b009[_0x4e89bf(0x1b7)]=_0x57b009[_0x4e89bf(0x1ad)][_0x4e89bf(0x1c1)](',')['map'](_0x1c19f2=>_0x1c19f2['trim']())[_0x4e89bf(0x1a0)](Boolean)),_0x57b009;}function normalizeRelatedPages(_0x16fc8d){const _0x57e7a3=a21_0x2d63;if(!Array['isArray'](_0x16fc8d))return[];return _0x16fc8d[_0x57e7a3(0x1a0)](_0x4fa58e=>_0x4fa58e&&typeof _0x4fa58e===_0x57e7a3(0x189))['map'](_0x208471=>({'id':_0x208471['id'],'type':_0x208471[_0x57e7a3(0x18b)],'code':_0x208471[_0x57e7a3(0x187)],'title':_0x208471['title'],'deleted':_0x208471['deleted']===!![]}));}function normalizeFallbackFieldName(_0x5db48b,_0x785553){const _0xc78b44=a21_0x2d63,_0x2c3b63=_0x5db48b[_0xc78b44(0x180)]();if(!_0x2c3b63)return null;return{'name':_0x2c3b63,'displayName':_0x2c3b63,'type':undefined,'dbType':undefined,'pk':_0x2c3b63===_0x785553,'required':![],'description':undefined};}async function loadListFieldFallback(_0x317ff6,_0x58722f){const _0x28854a=a21_0x2d63;if(!_0x317ff6||!_0x58722f)return[];try{const _0x40d510=await listDatasets(_0x317ff6,{'code':_0x58722f}),_0x3d80c1=_0x40d510['find'](_0x5c7349=>_0x5c7349[_0x28854a(0x187)]===_0x58722f)??_0x40d510[0x0],_0x4f4681=_0x3d80c1?.[_0x28854a(0x1a5)]??{},_0x301d74=typeof _0x4f4681[_0x28854a(0x1ad)]===_0x28854a(0x19c)?_0x4f4681[_0x28854a(0x1ad)][_0x28854a(0x1c1)](','):[];return _0x301d74[_0x28854a(0x194)](_0x510382=>normalizeFallbackFieldName(_0x510382,_0x4f4681[_0x28854a(0x17b)]))['filter'](_0xb6fcd6=>_0xb6fcd6!==null);}catch{return[];}}export const datasetDetail={'service':a21_0x33df81(0x196),'command':a21_0x33df81(0x183),'description':a21_0x33df81(0x18d),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x974d5){const _0x567533=a21_0x33df81,_0x146a9d=await getDatasetDetail(_0x974d5[_0x567533(0x1b2)](_0x567533(0x187))),_0xa0d485=Array[_0x567533(0x1c4)](_0x146a9d[_0x567533(0x1c0)])?_0x146a9d[_0x567533(0x1c0)]:Array[_0x567533(0x1c4)](_0x146a9d[_0x567533(0x1a4)])?_0x146a9d[_0x567533(0x1a4)]:[];let _0x2ffda2=_0xa0d485[_0x567533(0x194)](_0x434dc1=>normalizeField(_0x434dc1))[_0x567533(0x1a0)](_0x4a5195=>_0x4a5195!==null);_0x2ffda2[_0x567533(0x17c)]===0x0&&(_0x2ffda2=await loadListFieldFallback(_0x974d5[_0x567533(0x186)],_0x974d5[_0x567533(0x1b2)](_0x567533(0x187))));const _0x2ba5b2=_0x146a9d[_0x567533(0x1be)]??{},_0x18d26f=[];for(const [_0xfa820d,_0x5ca71d]of Object[_0x567533(0x1b9)](_0x2ba5b2)){const _0x364b36=normalizeOperationEntry(_0xfa820d,_0x5ca71d);if(_0x364b36)_0x18d26f['push'](_0x364b36);}const _0x1d21fd=_0x146a9d['dbtableConfig']??{},_0x3329ed=_0x146a9d[_0x567533(0x196)]??{},_0x40bc6c=_0x1d21fd['dbId']!=null?{'id':_0x1d21fd[_0x567533(0x181)],'name':_0x1d21fd[_0x567533(0x1b1)]??null}:undefined;let _0x29a219;return typeof _0x146a9d[_0x567533(0x1c3)]===_0x567533(0x19c)&&(_0x29a219=parseJsonMaybe(_0x146a9d[_0x567533(0x1c3)])),{'ok':!![],'data':{'id':_0x146a9d[_0x567533(0x193)]??_0x146a9d['id'],'name':_0x146a9d[_0x567533(0x18e)],'code':_0x146a9d['modelCode']||_0x146a9d[_0x567533(0x187)],'doVersion':_0x146a9d[_0x567533(0x1c5)],'description':_0x146a9d['description']||_0x3329ed[_0x567533(0x1b8)]||undefined,'source':_0x146a9d[_0x567533(0x18c)]||_0x3329ed[_0x567533(0x1a3)],'table':_0x1d21fd[_0x567533(0x18f)]||_0x3329ed[_0x567533(0x18f)],'datasetKey':_0x1d21fd[_0x567533(0x18a)],'pk':_0x1d21fd[_0x567533(0x17b)],'db':_0x40bc6c,'dbtable':summarizeDbtable(_0x1d21fd),'fields':_0x2ffda2,'operations':_0x18d26f,'indexes':Array[_0x567533(0x1c4)](_0x3329ed[_0x567533(0x184)])?_0x3329ed[_0x567533(0x184)]:[],'relations':_0x146a9d[_0x567533(0x185)]??null,'relatedPages':normalizeRelatedPages(_0x146a9d[_0x567533(0x1af)]),...Array[_0x567533(0x1c4)](_0x146a9d['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x146a9d[_0x567533(0x1b5)]}:{},'formatRules':Array['isArray'](_0x146a9d[_0x567533(0x198)])?_0x146a9d[_0x567533(0x198)]:[],'validateRules':Array[_0x567533(0x1c4)](_0x146a9d[_0x567533(0x1bb)])?_0x146a9d[_0x567533(0x1bb)]:[],..._0x29a219!==undefined?{'extend':_0x29a219}:{},'stats':{'fieldCount':_0x2ffda2[_0x567533(0x17c)],'operationCount':_0x18d26f[_0x567533(0x17c)]}}};}};
1
+ const a24_0x447313=a24_0x5e5b;(function(_0x38fb2e,_0x32afdd){const _0x5cbc7c=a24_0x5e5b,_0x16c509=_0x38fb2e();while(!![]){try{const _0x504e35=parseInt(_0x5cbc7c(0xd3))/0x1+parseInt(_0x5cbc7c(0xc4))/0x2+-parseInt(_0x5cbc7c(0xe2))/0x3+parseInt(_0x5cbc7c(0xb6))/0x4+-parseInt(_0x5cbc7c(0xda))/0x5+parseInt(_0x5cbc7c(0xcc))/0x6*(parseInt(_0x5cbc7c(0xd9))/0x7)+parseInt(_0x5cbc7c(0xbd))/0x8*(-parseInt(_0x5cbc7c(0xb7))/0x9);if(_0x504e35===_0x32afdd)break;else _0x16c509['push'](_0x16c509['shift']());}catch(_0x521cf3){_0x16c509['push'](_0x16c509['shift']());}}}(a24_0x33b9,0x62da7));function a24_0x5e5b(_0x2c7f89,_0x108f66){_0x2c7f89=_0x2c7f89-0xb6;const _0x33b97a=a24_0x33b9();let _0x5e5b15=_0x33b97a[_0x2c7f89];return _0x5e5b15;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x946fd2){const _0x38dad0=a24_0x5e5b;if(_0x946fd2[_0x38dad0(0x102)])return null;const _0x50cdab=Boolean(_0x946fd2[_0x38dad0(0xfa)]!==undefined||_0x946fd2[_0x38dad0(0xdc)]!==undefined);let _0x274953={};if(!_0x50cdab&&typeof _0x946fd2['extend']===_0x38dad0(0xff))try{_0x274953=JSON[_0x38dad0(0xd8)](_0x946fd2[_0x38dad0(0xe9)]);}catch{}const _0x64ab28=_0x50cdab?_0x946fd2[_0x38dad0(0xe4)]:_0x946fd2[_0x38dad0(0xca)],_0x30c7bb=_0x50cdab?_0x946fd2[_0x38dad0(0xfa)]:_0x946fd2['name'],_0x1af273=_0x50cdab?_0x946fd2['doType']:_0x946fd2[_0x38dad0(0xba)]||_0x946fd2['dataType'],_0x3c3db5=_0x50cdab?_0x946fd2['pkField']===!![]:_0x274953[_0x38dad0(0xce)]===!![],_0x6980f0=_0x50cdab?_0x946fd2[_0x38dad0(0xe0)]===!![]:_0x274953[_0x38dad0(0xe0)]===!![],_0x2f2ae8=_0x50cdab?_0x946fd2['options']??null:_0x274953['options']??null,_0x385a67={'name':_0x64ab28,'displayName':_0x30c7bb||_0x64ab28,'type':_0x1af273,'dbType':_0x946fd2[_0x38dad0(0xc0)],'pk':_0x3c3db5,'required':_0x6980f0,'description':_0x946fd2[_0x38dad0(0xfd)]||undefined};return Array['isArray'](_0x2f2ae8)&&_0x2f2ae8[_0x38dad0(0xcd)]>0x0&&(_0x385a67[_0x38dad0(0xb8)]=_0x2f2ae8),_0x385a67;}function parseJsonMaybe(_0x521e2a){const _0x32b148=a24_0x5e5b;if(typeof _0x521e2a!==_0x32b148(0xff))return _0x521e2a;try{return JSON[_0x32b148(0xd8)](_0x521e2a);}catch{return _0x521e2a;}}function normalizeOperationEntry(_0x51c2f0,_0x24f126){const _0x49a055=a24_0x5e5b;if(!_0x24f126||typeof _0x24f126!=='object')return null;if(!_0x24f126[_0x49a055(0xd5)]||!_0x24f126[_0x49a055(0xd2)])return null;const _0x412bce={'name':_0x51c2f0,'method':_0x24f126[_0x49a055(0xd5)],'path':_0x24f126['path']};if(_0x24f126['host'])_0x412bce[_0x49a055(0xe7)]=_0x24f126['host'];if(_0x24f126['requestBody']!=null)_0x412bce['requestBody']=parseJsonMaybe(_0x24f126[_0x49a055(0xd7)]);if(_0x24f126[_0x49a055(0xef)]!=null)_0x412bce[_0x49a055(0xef)]=parseJsonMaybe(_0x24f126[_0x49a055(0xef)]);if(_0x24f126[_0x49a055(0x100)]!=null)_0x412bce['beforeScriptId']=_0x24f126['beforeScriptId'];if(_0x24f126[_0x49a055(0xdd)]!=null)_0x412bce[_0x49a055(0xdd)]=_0x24f126['afterScriptId'];if(Array[_0x49a055(0xc6)](_0x24f126[_0x49a055(0xe6)]))_0x412bce[_0x49a055(0xe6)]=_0x24f126[_0x49a055(0xe6)];if(Array[_0x49a055(0xc6)](_0x24f126[_0x49a055(0xd1)]))_0x412bce[_0x49a055(0xd1)]=_0x24f126[_0x49a055(0xd1)];return _0x412bce;}function summarizeDbtable(_0x160cc7){const _0x43bd01=a24_0x5e5b,_0x7902d6={},_0x11f0a0=['dbId',_0x43bd01(0xdf),'tableName','datasetKey',_0x43bd01(0xce),_0x43bd01(0xe3),_0x43bd01(0xd0),_0x43bd01(0xbf),_0x43bd01(0xd6),_0x43bd01(0xc5),_0x43bd01(0xf0),_0x43bd01(0xf7),_0x43bd01(0xf6),_0x43bd01(0xf2),_0x43bd01(0xfb)];for(const _0x13664c of _0x11f0a0){if(_0x160cc7[_0x13664c]!==undefined)_0x7902d6[_0x13664c]=_0x160cc7[_0x13664c];}return typeof _0x7902d6[_0x43bd01(0xe3)]==='string'&&_0x7902d6[_0x43bd01(0xe3)][_0x43bd01(0xcd)]>0x0&&(_0x7902d6['allFieldNames']=_0x7902d6[_0x43bd01(0xe3)][_0x43bd01(0xed)](',')[_0x43bd01(0xbc)](_0x3a72f0=>_0x3a72f0[_0x43bd01(0xcb)]())[_0x43bd01(0xbe)](Boolean)),_0x7902d6;}function a24_0x33b9(){const _0xad8cd4=['length','pkField','detail','logicField','responseFields','path','805406vbRFFH','sourceType','method','updateTimeField','requestBody','parse','385NmHigq','2309650eGObqb','title','doType','afterScriptId','dbtableConfig','dbName','required','read','2925tduwnq','allFields','name','operations','requestFields','host','push','extend','formatRules','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','relatedPageInfoList','split','relations','responseBody','creatorNameField','properties','labelField','modelCode','modelId','entries','modifierNameField','modifierIdField','indexes','find','displayName','dblinkInfoDTO','appCode','description','fields','string','beforeScriptId','tableComment','deleted','2207664uCiJIm','16776cvWpPZ','options','dbId','type','dataset','map','8488xZzjJU','filter','createTimeField','dbType','columnCodeListWithDeleted','str','validateRules','1562000YEjvoV','creatorIdField','isArray','object','doVersion','tableName','code','trim','77148aRWUzd'];a24_0x33b9=function(){return _0xad8cd4;};return a24_0x33b9();}function normalizeRelatedPages(_0x27e71a){const _0x273569=a24_0x5e5b;if(!Array[_0x273569(0xc6)](_0x27e71a))return[];return _0x27e71a[_0x273569(0xbe)](_0x2b31d1=>_0x2b31d1&&typeof _0x2b31d1===_0x273569(0xc7))[_0x273569(0xbc)](_0x37d9a6=>({'id':_0x37d9a6['id'],'type':_0x37d9a6[_0x273569(0xba)],'code':_0x37d9a6[_0x273569(0xca)],'title':_0x37d9a6[_0x273569(0xdb)],'deleted':_0x37d9a6['deleted']===!![]}));}function normalizeFallbackFieldName(_0x5ce4f2,_0x5ddef0){const _0x187107=a24_0x5e5b,_0x362e57=_0x5ce4f2[_0x187107(0xcb)]();if(!_0x362e57)return null;return{'name':_0x362e57,'displayName':_0x362e57,'type':undefined,'dbType':undefined,'pk':_0x362e57===_0x5ddef0,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1689f8,_0x2dcf95){const _0x5da466=a24_0x5e5b;if(!_0x1689f8||!_0x2dcf95)return[];try{const _0x162624=await listDatasets(_0x1689f8,{'code':_0x2dcf95}),_0x44bc6d=_0x162624[_0x5da466(0xf9)](_0xa53d6a=>_0xa53d6a['code']===_0x2dcf95)??_0x162624[0x0],_0x5239d8=_0x44bc6d?.['dbtableConfig']??{},_0x3bfc88=typeof _0x5239d8['allFields']==='string'?_0x5239d8[_0x5da466(0xe3)][_0x5da466(0xed)](','):[];return _0x3bfc88[_0x5da466(0xbc)](_0x2ac38f=>normalizeFallbackFieldName(_0x2ac38f,_0x5239d8['pkField']))['filter'](_0x4357a8=>_0x4357a8!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a24_0x447313(0xcf),'description':a24_0x447313(0xeb),'risk':a24_0x447313(0xe1),'flags':[CODE_FLAG],async 'execute'(_0x2d9e7f){const _0x2dd7a7=a24_0x447313,_0x5a5f75=await getDatasetDetail(_0x2d9e7f[_0x2dd7a7(0xc2)](_0x2dd7a7(0xca))),_0x846a4d=Array[_0x2dd7a7(0xc6)](_0x5a5f75[_0x2dd7a7(0xfe)])?_0x5a5f75[_0x2dd7a7(0xfe)]:Array['isArray'](_0x5a5f75[_0x2dd7a7(0xf1)])?_0x5a5f75[_0x2dd7a7(0xf1)]:[];let _0x1e6ff8=_0x846a4d['map'](_0x519273=>normalizeField(_0x519273))['filter'](_0x3cc302=>_0x3cc302!==null);_0x1e6ff8[_0x2dd7a7(0xcd)]===0x0&&(_0x1e6ff8=await loadListFieldFallback(_0x2d9e7f[_0x2dd7a7(0xfc)],_0x2d9e7f[_0x2dd7a7(0xc2)](_0x2dd7a7(0xca))));const _0x314959=_0x5a5f75[_0x2dd7a7(0xe5)]??{},_0x2d7270=[];for(const [_0x5cd46e,_0x3bada5]of Object[_0x2dd7a7(0xf5)](_0x314959)){const _0x584660=normalizeOperationEntry(_0x5cd46e,_0x3bada5);if(_0x584660)_0x2d7270[_0x2dd7a7(0xe8)](_0x584660);}const _0x3bd920=_0x5a5f75[_0x2dd7a7(0xde)]??{},_0xf48e73=_0x5a5f75[_0x2dd7a7(0xbb)]??{},_0x5a651f=_0x3bd920[_0x2dd7a7(0xb9)]!=null?{'id':_0x3bd920[_0x2dd7a7(0xb9)],'name':_0x3bd920[_0x2dd7a7(0xdf)]??null}:undefined;let _0x3ee5e5;return typeof _0x5a5f75[_0x2dd7a7(0xe9)]==='string'&&(_0x3ee5e5=parseJsonMaybe(_0x5a5f75['extend'])),{'ok':!![],'data':{'id':_0x5a5f75[_0x2dd7a7(0xf4)]??_0x5a5f75['id'],'name':_0x5a5f75[_0x2dd7a7(0xe4)],'code':_0x5a5f75[_0x2dd7a7(0xf3)]||_0x5a5f75[_0x2dd7a7(0xca)],'doVersion':_0x5a5f75[_0x2dd7a7(0xc8)],'description':_0x5a5f75['description']||_0xf48e73[_0x2dd7a7(0x101)]||undefined,'source':_0x5a5f75['source']||_0xf48e73[_0x2dd7a7(0xd4)],'table':_0x3bd920[_0x2dd7a7(0xc9)]||_0xf48e73[_0x2dd7a7(0xc9)],'datasetKey':_0x3bd920['datasetKey'],'pk':_0x3bd920[_0x2dd7a7(0xce)],'db':_0x5a651f,'dbtable':summarizeDbtable(_0x3bd920),'fields':_0x1e6ff8,'operations':_0x2d7270,'indexes':Array[_0x2dd7a7(0xc6)](_0xf48e73[_0x2dd7a7(0xf8)])?_0xf48e73['indexes']:[],'relations':_0x5a5f75[_0x2dd7a7(0xee)]??null,'relatedPages':normalizeRelatedPages(_0x5a5f75[_0x2dd7a7(0xec)]),...Array[_0x2dd7a7(0xc6)](_0x5a5f75[_0x2dd7a7(0xc1)])?{'columnCodeListWithDeleted':_0x5a5f75[_0x2dd7a7(0xc1)]}:{},'formatRules':Array['isArray'](_0x5a5f75[_0x2dd7a7(0xea)])?_0x5a5f75[_0x2dd7a7(0xea)]:[],'validateRules':Array['isArray'](_0x5a5f75[_0x2dd7a7(0xc3)])?_0x5a5f75[_0x2dd7a7(0xc3)]:[],..._0x3ee5e5!==undefined?{'extend':_0x3ee5e5}:{},'stats':{'fieldCount':_0x1e6ff8[_0x2dd7a7(0xcd)],'operationCount':_0x2d7270[_0x2dd7a7(0xcd)]}}};}};
@@ -1 +1 @@
1
- (function(_0x46251c,_0x2e05cb){const _0x62a0d0=a22_0x24d2,_0x2eb561=_0x46251c();while(!![]){try{const _0x111e84=parseInt(_0x62a0d0(0x1a2))/0x1+-parseInt(_0x62a0d0(0x19f))/0x2+-parseInt(_0x62a0d0(0x19c))/0x3*(parseInt(_0x62a0d0(0x1a1))/0x4)+parseInt(_0x62a0d0(0x1a0))/0x5+-parseInt(_0x62a0d0(0x19b))/0x6+parseInt(_0x62a0d0(0x19d))/0x7+-parseInt(_0x62a0d0(0x19e))/0x8;if(_0x111e84===_0x2e05cb)break;else _0x2eb561['push'](_0x2eb561['shift']());}catch(_0x460881){_0x2eb561['push'](_0x2eb561['shift']());}}}(a22_0x16d7,0x6a06d));import{datasetList}from'../../commands/dataset/list.js';function a22_0x24d2(_0x135f13,_0xf77c8f){_0x135f13=_0x135f13-0x19b;const _0x16d718=a22_0x16d7();let _0x24d293=_0x16d718[_0x135f13];return _0x24d293;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a22_0x16d7(){const _0x59e6c5=['306979Eukufs','989058YAdoPr','3lfRIYp','3787924dveoqJ','5193512LuXjGH','63268nQBoAG','2981330BfqdFJ','657704Tghphu'];a22_0x16d7=function(){return _0x59e6c5;};return a22_0x16d7();}
1
+ function a25_0x4d92(_0x44978d,_0x136cc8){_0x44978d=_0x44978d-0x182;const _0x8f1bea=a25_0x8f1b();let _0x4d9254=_0x8f1bea[_0x44978d];return _0x4d9254;}function a25_0x8f1b(){const _0x509f3c=['4674TVDiqh','4364068PbhUez','3195216trIjFN','10bPxfZC','9BpBaeO','670fnHgkn','1370757BISVYj','101296UNjZtf','23319720DmCVYV','971026CWypEw'];a25_0x8f1b=function(){return _0x509f3c;};return a25_0x8f1b();}(function(_0x3a1b17,_0x3de77e){const _0x2880e0=a25_0x4d92,_0x378127=_0x3a1b17();while(!![]){try{const _0x9decf0=-parseInt(_0x2880e0(0x189))/0x1*(parseInt(_0x2880e0(0x185))/0x2)+parseInt(_0x2880e0(0x188))/0x3+-parseInt(_0x2880e0(0x183))/0x4+-parseInt(_0x2880e0(0x187))/0x5*(parseInt(_0x2880e0(0x182))/0x6)+-parseInt(_0x2880e0(0x18b))/0x7+-parseInt(_0x2880e0(0x184))/0x8*(parseInt(_0x2880e0(0x186))/0x9)+parseInt(_0x2880e0(0x18a))/0xa;if(_0x9decf0===_0x3de77e)break;else _0x378127['push'](_0x378127['shift']());}catch(_0x901436){_0x378127['push'](_0x378127['shift']());}}}(a25_0x8f1b,0x86018));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a23_0x3210(_0x28d830,_0x566f57){_0x28d830=_0x28d830-0x8a;const _0x4f46f0=a23_0x4f46();let _0x3210c9=_0x4f46f0[_0x28d830];return _0x3210c9;}const a23_0x277e3a=a23_0x3210;(function(_0x4aa171,_0x54b55b){const _0x3858ff=a23_0x3210,_0x31521b=_0x4aa171();while(!![]){try{const _0x7affd1=parseInt(_0x3858ff(0x8a))/0x1+parseInt(_0x3858ff(0x8e))/0x2*(parseInt(_0x3858ff(0x91))/0x3)+parseInt(_0x3858ff(0x9a))/0x4*(-parseInt(_0x3858ff(0x9c))/0x5)+parseInt(_0x3858ff(0x9b))/0x6+-parseInt(_0x3858ff(0x94))/0x7*(-parseInt(_0x3858ff(0x9f))/0x8)+parseInt(_0x3858ff(0x9d))/0x9*(parseInt(_0x3858ff(0x95))/0xa)+-parseInt(_0x3858ff(0xa0))/0xb;if(_0x7affd1===_0x54b55b)break;else _0x31521b['push'](_0x31521b['shift']());}catch(_0x25f777){_0x31521b['push'](_0x31521b['shift']());}}}(a23_0x4f46,0xf236a));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a23_0x4f46(){const _0x103e04=['name','11632ACeWhM','8389278kBObdY','2005YPUHHK','9695772rbgYvI','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','78664PmOBzD','12235883icleeF','source','trim','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','length','25766TMQZxM','pkField','description','list','142274kotYTj','string','map','3xBZFYs','code','read','497pvWkqV','10tzDHxl','str','split','allFields'];a23_0x4f46=function(){return _0x103e04;};return a23_0x4f46();}export const datasetList={'service':'dataset','command':a23_0x277e3a(0x8d),'description':a23_0x277e3a(0x9e),'risk':a23_0x277e3a(0x93),'flags':[{'name':a23_0x277e3a(0x99),'type':a23_0x277e3a(0x8f),'description':a23_0x277e3a(0xa4)},{...CODE_FLAG,'required':![],'description':a23_0x277e3a(0xa3)}],async 'execute'(_0x40e45d){const _0x1d9ebf=a23_0x277e3a,_0x4b1c05=_0x40e45d[_0x1d9ebf(0x96)](_0x1d9ebf(0x99)),_0x24adfd=_0x40e45d['str'](_0x1d9ebf(0x92)),_0x5476d4=await listDatasets(_0x40e45d['appCode'],{..._0x4b1c05&&{'name':_0x4b1c05},..._0x24adfd&&{'code':_0x24adfd}});return{'ok':!![],'data':{'total':_0x5476d4[_0x1d9ebf(0xa5)],'datasets':_0x5476d4[_0x1d9ebf(0x90)](_0x523c93=>{const _0x3e8798=_0x1d9ebf,_0x510412=_0x523c93['dbtableConfig']??{};return{'id':_0x523c93['id'],'code':_0x523c93[_0x3e8798(0x92)],'name':_0x523c93[_0x3e8798(0x99)],'source':_0x523c93[_0x3e8798(0xa1)],'description':_0x523c93[_0x3e8798(0x8c)],'table':_0x510412['tableName'],'datasetKey':_0x510412['datasetKey'],'pk':_0x510412[_0x3e8798(0x8b)],'fields':_0x510412[_0x3e8798(0x98)]?_0x510412[_0x3e8798(0x98)][_0x3e8798(0x97)](',')[_0x3e8798(0x90)](_0x19f113=>_0x19f113[_0x3e8798(0xa2)]()):[]};})}};}};
1
+ function a26_0x59f8(_0xe38254,_0x584c0f){_0xe38254=_0xe38254-0x1cb;const _0x4417d4=a26_0x4417();let _0x59f8e6=_0x4417d4[_0xe38254];return _0x59f8e6;}const a26_0x133da0=a26_0x59f8;function a26_0x4417(){const _0x27da28=['8208998NjZLvu','str','description','code','map','4798TTSNil','list','string','20GyhBGD','5dtYzia','read','10024300xQAUHo','split','allFields','1960WRDlyZ','appCode','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','pkField','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','source','name','478LWzmOG','677601lfwxZj','dbtableConfig','trim','43776EIBGnW','length','226020nXiROs','datasetKey','1667964ZEJykb'];a26_0x4417=function(){return _0x27da28;};return a26_0x4417();}(function(_0x3e1c93,_0x39891e){const _0x37d374=a26_0x59f8,_0x94e1ce=_0x3e1c93();while(!![]){try{const _0x43d38f=-parseInt(_0x37d374(0x1de))/0x1*(parseInt(_0x37d374(0x1ce))/0x2)+-parseInt(_0x37d374(0x1df))/0x3*(-parseInt(_0x37d374(0x1d1))/0x4)+-parseInt(_0x37d374(0x1d2))/0x5*(parseInt(_0x37d374(0x1e6))/0x6)+-parseInt(_0x37d374(0x1e7))/0x7+-parseInt(_0x37d374(0x1d7))/0x8*(-parseInt(_0x37d374(0x1e2))/0x9)+-parseInt(_0x37d374(0x1e4))/0xa+parseInt(_0x37d374(0x1d4))/0xb;if(_0x43d38f===_0x39891e)break;else _0x94e1ce['push'](_0x94e1ce['shift']());}catch(_0x5bb70e){_0x94e1ce['push'](_0x94e1ce['shift']());}}}(a26_0x4417,0x957bb));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a26_0x133da0(0x1cf),'description':a26_0x133da0(0x1db),'risk':a26_0x133da0(0x1d3),'flags':[{'name':a26_0x133da0(0x1dd),'type':a26_0x133da0(0x1d0),'description':a26_0x133da0(0x1d9)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x23a95b){const _0x6258ac=a26_0x133da0,_0x3be0ea=_0x23a95b[_0x6258ac(0x1e8)](_0x6258ac(0x1dd)),_0x4cddee=_0x23a95b[_0x6258ac(0x1e8)]('code'),_0x505b40=await listDatasets(_0x23a95b[_0x6258ac(0x1d8)],{..._0x3be0ea&&{'name':_0x3be0ea},..._0x4cddee&&{'code':_0x4cddee}});return{'ok':!![],'data':{'total':_0x505b40[_0x6258ac(0x1e3)],'datasets':_0x505b40[_0x6258ac(0x1cd)](_0x3526bc=>{const _0x5d4329=_0x6258ac,_0x3372fc=_0x3526bc[_0x5d4329(0x1e0)]??{};return{'id':_0x3526bc['id'],'code':_0x3526bc[_0x5d4329(0x1cc)],'name':_0x3526bc[_0x5d4329(0x1dd)],'source':_0x3526bc[_0x5d4329(0x1dc)],'description':_0x3526bc[_0x5d4329(0x1cb)],'table':_0x3372fc['tableName'],'datasetKey':_0x3372fc[_0x5d4329(0x1e5)],'pk':_0x3372fc[_0x5d4329(0x1da)],'fields':_0x3372fc['allFields']?_0x3372fc[_0x5d4329(0x1d6)][_0x5d4329(0x1d5)](',')[_0x5d4329(0x1cd)](_0x1db052=>_0x1db052[_0x5d4329(0x1e1)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a24_0x118639=a24_0x5854;function a24_0xfe7c(){const _0x1eaa70=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','14cePFxB','11613960pJdkNk','119998UMdMYc','appCode','1397XYsBZH','dataset','528Twcsfo','2358BRHmBY','code','9374670nodjlu','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','3268713OcBcfb','read','27HJEZNC','39470wJpUTm','31690mcMemM','str'];a24_0xfe7c=function(){return _0x1eaa70;};return a24_0xfe7c();}(function(_0x5d4a05,_0x205bbf){const _0x32ea93=a24_0x5854,_0x224b06=_0x5d4a05();while(!![]){try{const _0x5f3175=-parseInt(_0x32ea93(0x99))/0x1*(-parseInt(_0x32ea93(0xa0))/0x2)+parseInt(_0x32ea93(0x97))/0x3+parseInt(_0x32ea93(0xa4))/0x4*(-parseInt(_0x32ea93(0x9a))/0x5)+parseInt(_0x32ea93(0xa5))/0x6*(parseInt(_0x32ea93(0x9e))/0x7)+-parseInt(_0x32ea93(0x9f))/0x8+parseInt(_0x32ea93(0xa7))/0x9+parseInt(_0x32ea93(0x9b))/0xa*(-parseInt(_0x32ea93(0xa2))/0xb);if(_0x5f3175===_0x205bbf)break;else _0x224b06['push'](_0x224b06['shift']());}catch(_0x2091ec){_0x224b06['push'](_0x224b06['shift']());}}}(a24_0xfe7c,0xd0ec0));function a24_0x5854(_0x3c9189,_0x30f428){_0x3c9189=_0x3c9189-0x96;const _0xfe7ccf=a24_0xfe7c();let _0x5854de=_0xfe7ccf[_0x3c9189];return _0x5854de;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x118639(0x96);export function formatDatasetSdkMarkdown(_0x58c39d){const _0x3d5504=typeof _0x58c39d==='string'?_0x58c39d['trim']():'';return _0x3d5504||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x118639(0xa3),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a24_0x118639(0x98),'flags':[{...CODE_FLAG,'description':a24_0x118639(0x9d)}],async 'execute'(_0x4236de){const _0xf664bd=a24_0x118639,_0x23e193=_0x4236de[_0xf664bd(0x9c)](_0xf664bd(0xa6)),_0x2a140a=await getDatasetSdkUsageDoc(_0x23e193,_0x4236de[_0xf664bd(0xa1)]);return{'ok':!![],'data':{'code':_0x23e193,'appCode':_0x4236de[_0xf664bd(0xa1)],'markdown':formatDatasetSdkMarkdown(_0x2a140a)}};}};
1
+ const a27_0x4f0fa0=a27_0x5138;(function(_0x2d453f,_0x273101){const _0x334a7e=a27_0x5138,_0x3794ae=_0x2d453f();while(!![]){try{const _0x5d4b2a=parseInt(_0x334a7e(0x1cc))/0x1+parseInt(_0x334a7e(0x1cb))/0x2+parseInt(_0x334a7e(0x1d7))/0x3*(parseInt(_0x334a7e(0x1c6))/0x4)+-parseInt(_0x334a7e(0x1d6))/0x5+parseInt(_0x334a7e(0x1cd))/0x6+parseInt(_0x334a7e(0x1d1))/0x7*(parseInt(_0x334a7e(0x1d2))/0x8)+-parseInt(_0x334a7e(0x1d5))/0x9*(parseInt(_0x334a7e(0x1c9))/0xa);if(_0x5d4b2a===_0x273101)break;else _0x3794ae['push'](_0x3794ae['shift']());}catch(_0x5c82b8){_0x3794ae['push'](_0x3794ae['shift']());}}}(a27_0x1951,0xaf5de));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a27_0x4f0fa0(0x1d3);function a27_0x1951(){const _0x283e9d=['code','65252VvmBSx','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','173890QxxhhQ','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','1016118llyyQN','339069emmPTf','1534512TJUKKm','trim','sdk-doc','string','56LLTKgA','1086320FCixdm','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','str','1314bMcNsA','1104155YLdZhY','237DxXIHv'];a27_0x1951=function(){return _0x283e9d;};return a27_0x1951();}export function formatDatasetSdkMarkdown(_0x3ca8f9){const _0x1f9406=a27_0x4f0fa0,_0x3e81ab=typeof _0x3ca8f9===_0x1f9406(0x1d0)?_0x3ca8f9[_0x1f9406(0x1ce)]():'';return _0x3e81ab||DEFAULT_MARKDOWN;}function a27_0x5138(_0x335c09,_0x57731a){_0x335c09=_0x335c09-0x1c6;const _0x195138=a27_0x1951();let _0x5138c2=_0x195138[_0x335c09];return _0x5138c2;}export const datasetSdkDoc={'service':'dataset','command':a27_0x4f0fa0(0x1cf),'description':a27_0x4f0fa0(0x1c8),'risk':'read','flags':[{...CODE_FLAG,'description':a27_0x4f0fa0(0x1ca)}],async 'execute'(_0x3afcd7){const _0x29398f=a27_0x4f0fa0,_0x453135=_0x3afcd7[_0x29398f(0x1d4)](_0x29398f(0x1d8)),_0x3bfea7=await getDatasetSdkUsageDoc(_0x453135,_0x3afcd7[_0x29398f(0x1c7)]);return{'ok':!![],'data':{'code':_0x453135,'appCode':_0x3afcd7[_0x29398f(0x1c7)],'markdown':formatDatasetSdkMarkdown(_0x3bfea7)}};}};
@@ -1 +1 @@
1
- const a25_0x19c3ea=a25_0x2cda;(function(_0x5c253c,_0x5a9a9e){const _0x59cf68=a25_0x2cda,_0x4eb315=_0x5c253c();while(!![]){try{const _0x26eb12=-parseInt(_0x59cf68(0x126))/0x1*(-parseInt(_0x59cf68(0x113))/0x2)+-parseInt(_0x59cf68(0xee))/0x3*(-parseInt(_0x59cf68(0xf2))/0x4)+parseInt(_0x59cf68(0xdb))/0x5+-parseInt(_0x59cf68(0xe0))/0x6*(-parseInt(_0x59cf68(0x112))/0x7)+-parseInt(_0x59cf68(0x120))/0x8*(-parseInt(_0x59cf68(0x11c))/0x9)+-parseInt(_0x59cf68(0xf9))/0xa+parseInt(_0x59cf68(0xf4))/0xb*(-parseInt(_0x59cf68(0x104))/0xc);if(_0x26eb12===_0x5a9a9e)break;else _0x4eb315['push'](_0x4eb315['shift']());}catch(_0x3bda0d){_0x4eb315['push'](_0x4eb315['shift']());}}}(a25_0x581a,0xc2696));import a25_0x178265 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a25_0x581a(){const _0x52162a=['bold','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','arch','1641514wWjJnG','4808FPQQcO','(none)','accessKey','✗\x20Invalid\x20JSON','\x20\x20Service\x20Tree','padEnd','empty','✓\x20Loaded','doctor','42867RlPPRM','gray','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','2584MvCZuP','⚠\x20Empty','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(not\x20found)','message','repeat','1TuhEGh','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','log','platform','\x20doctor','(missing)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20(accessKey)','144010rowwsK','env','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20commands)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','6oHllJg','status','serviceCount','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','(unnamed)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','format','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','1497PVdnpu','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','version','4376TNWCeT','\x20\x20Session\x20check:\x20\x20\x20','15191dSnGFQ','check','\x20\x20runtimeDomain:\x20\x20\x20','missing','source','677970lsGFbO','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','defaultApp','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','\x20Imported\x20from:\x20','name','\x20\x20─','(no\x20file)','12912PvvUte','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','serviceCode','✗\x20Invalid','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','(default:\x20','Project'];a25_0x581a=function(){return _0x52162a;};return a25_0x581a();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x5d378c){const _0x581247=a25_0x2cda,_0xeb2940=getCliVersion(),_0x828de3=buildConfigFromFlags({});await initGlobalEnvironment(_0x828de3),console[_0x581247(0x129)](),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x10d)](CLI_BIN_NAME+_0x581247(0x12b))),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x11d)]('─'['repeat'](0x32))),console[_0x581247(0x129)](_0x581247(0x122)+_0xeb2940),console['log'](_0x581247(0xe7)+process[_0x581247(0xf1)]),console[_0x581247(0x129)](_0x581247(0xe3)+process[_0x581247(0x12a)]+'\x20'+process[_0x581247(0x111)]),console[_0x581247(0x129)](),console[_0x581247(0x129)](a25_0x178265['bold']('\x20\x20Config\x20Files')),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x11d)](_0x581247(0x102)[_0x581247(0x125)](0x1e)));const _0x185d9a=getGlobalConfigPath(),_0x2b0c02=getProjectConfigPath();console[_0x581247(0x129)](_0x581247(0x12d)+(_0x185d9a||a25_0x178265[_0x581247(0x11d)](_0x581247(0x123)))),console[_0x581247(0x129)](_0x581247(0xfb)+(_0x2b0c02||a25_0x178265[_0x581247(0x11d)](_0x581247(0x123)))),console[_0x581247(0x129)](),console['log'](a25_0x178265['bold']('\x20\x20Config\x20JSON')),console['log'](a25_0x178265['gray'](_0x581247(0x102)[_0x581247(0x125)](0x1e)));const _0x5d06b1=(_0x36a19e,_0x53212f)=>{const _0x588f3=_0x581247;if(!_0x53212f){console['log']('\x20\x20'+_0x36a19e['padEnd'](0x11)+'\x20'+a25_0x178265[_0x588f3(0x11d)](_0x588f3(0x103)));return;}const _0x53fd59=inspectCliConfigJsonFile(_0x53212f);if(_0x53fd59[_0x588f3(0xe1)]==='ok')console['log']('\x20\x20'+_0x36a19e[_0x588f3(0x118)](0x11)+'\x20'+a25_0x178265[_0x588f3(0x12e)]('✓\x20Valid\x20JSON'));else{if(_0x53fd59['status']===_0x588f3(0x119))console[_0x588f3(0x129)]('\x20\x20'+_0x36a19e['padEnd'](0x11)+'\x20'+a25_0x178265['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x53fd59[_0x588f3(0xe1)]===_0x588f3(0xf7)?console[_0x588f3(0x129)]('\x20\x20'+_0x36a19e['padEnd'](0x11)+'\x20'+a25_0x178265['gray'](_0x588f3(0x12c))):(console[_0x588f3(0x129)]('\x20\x20'+_0x36a19e[_0x588f3(0x118)](0x11)+'\x20'+a25_0x178265[_0x588f3(0xeb)](_0x588f3(0x116))),console[_0x588f3(0x129)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a25_0x178265['red'](_0x53fd59['message'])));}};_0x5d06b1('Global',_0x185d9a),_0x5d06b1(_0x581247(0x10c),_0x2b0c02),console[_0x581247(0x129)](),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x10d)](_0x581247(0xed))),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x11d)](_0x581247(0x102)[_0x581247(0x125)](0x1e))),console[_0x581247(0x129)](_0x581247(0xef)+(_0x828de3[_0x581247(0x128)]||a25_0x178265[_0x581247(0xeb)]('(not\x20set)'))),console[_0x581247(0x129)](_0x581247(0x127)+_0x828de3[_0x581247(0xdc)]);const _0x2957d4=isLegacyCompatConfigKey(_0x581247(0xf0))?a25_0x178265[_0x581247(0x11d)](_0x828de3[_0x581247(0xf0)]+'\x20(legacy/compat\x20only)'):_0x828de3['locale'];console[_0x581247(0x129)](_0x581247(0x109)+_0x2957d4),console[_0x581247(0x129)](_0x581247(0xdd)+(_0x828de3[_0x581247(0xfd)]||a25_0x178265[_0x581247(0x11d)](_0x581247(0x114)))),console['log'](_0x581247(0xdf)+(_0x828de3[_0x581247(0x106)]||a25_0x178265[_0x581247(0x11d)](_0x581247(0x114)))),console['log'](_0x581247(0xfe)+(_0x828de3[_0x581247(0xe9)]||a25_0x178265[_0x581247(0x11d)](_0x581247(0x10b)+DEFAULT_CONFIG_VALUES[_0x581247(0xe9)]+')'))),console['log'](_0x581247(0xfa)+(_0x828de3[_0x581247(0xe8)]??a25_0x178265[_0x581247(0x11d)]('(default)'))),console['log'](_0x581247(0xec)+_0x828de3['riskLevel']),console[_0x581247(0x129)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x828de3['verbose']),console['log']('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x581247(0x10f)]),console[_0x581247(0x129)](_0x581247(0xea)+(_0x828de3['accessKey']?a25_0x178265[_0x581247(0x12e)]('(set,\x20length='+_0x828de3[_0x581247(0x115)][_0x581247(0x10a)]+')'):a25_0x178265[_0x581247(0x11d)](_0x581247(0x114)))),console['log'](),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x10d)]('\x20\x20API\x20Endpoints')),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x11d)]('\x20\x20─'[_0x581247(0x125)](0x1e))),console['log'](_0x581247(0x110)+getApiDomain()),console[_0x581247(0x129)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x581247(0xf6)+getRuntimeDomain()),console[_0x581247(0x129)](),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x10d)](_0x581247(0x117))),console[_0x581247(0x129)](a25_0x178265[_0x581247(0x11d)](_0x581247(0x102)[_0x581247(0x125)](0x1e)));const _0x267d15=inspectServiceRegistry();console[_0x581247(0x129)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x267d15[_0x581247(0x11f)]),console[_0x581247(0x129)](_0x581247(0x105)+formatServiceRegistryStatus(_0x267d15)),console[_0x581247(0x129)](_0x581247(0x11e)+_0x267d15[_0x581247(0xe2)]),console[_0x581247(0x129)](_0x581247(0xe6)+_0x267d15[_0x581247(0xff)]);for(const _0x4c6e53 of _0x267d15['services']){console[_0x581247(0x129)]('\x20\x20'+(_0x4c6e53[_0x581247(0x107)]+':')[_0x581247(0x118)](0x11)+'\x20'+(_0x4c6e53[_0x581247(0x101)]||a25_0x178265[_0x581247(0x11d)](_0x581247(0xe5)))+'\x20('+_0x4c6e53[_0x581247(0xff)]+_0x581247(0xde)),console[_0x581247(0x129)]('\x20\x20'+''[_0x581247(0x118)](0x11)+_0x581247(0x100)+_0x4c6e53[_0x581247(0xf8)]['path']);}return console[_0x581247(0x129)](),console['log'](a25_0x178265[_0x581247(0x10d)]('\x20\x20Auth')),console['log'](a25_0x178265[_0x581247(0x11d)](_0x581247(0x102)[_0x581247(0x125)](0x1e))),console[_0x581247(0x129)](_0x581247(0x10e)+a25_0x178265[_0x581247(0x12e)](AUTH_MODE[_0x581247(0x10f)]+_0x581247(0x12f))),console[_0x581247(0x129)](_0x581247(0xf3)+a25_0x178265[_0x581247(0x11d)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x581247(0x129)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1e124c){const _0x333bcf=a25_0x2cda;if(_0x1e124c[_0x333bcf(0xe1)]==='ok')return a25_0x178265[_0x333bcf(0x12e)](_0x333bcf(0x11a));if(_0x1e124c[_0x333bcf(0xe1)]===_0x333bcf(0xf7))return a25_0x178265[_0x333bcf(0x11d)](_0x333bcf(0x123));if(_0x1e124c[_0x333bcf(0xe1)]===_0x333bcf(0x119))return a25_0x178265[_0x333bcf(0xfc)](_0x333bcf(0x121));return a25_0x178265[_0x333bcf(0xeb)](_0x333bcf(0x108)+(_0x1e124c[_0x333bcf(0x124)]?':\x20'+_0x1e124c[_0x333bcf(0x124)]:''));}function a25_0x2cda(_0x91c073,_0x29ee03){_0x91c073=_0x91c073-0xdb;const _0x581a07=a25_0x581a();let _0x2cda15=_0x581a07[_0x91c073];return _0x2cda15;}export const doctorDefinition={'service':a25_0x19c3ea(0x11b),'command':a25_0x19c3ea(0xf5),'description':a25_0x19c3ea(0xe4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a28_0x41d2(){const _0x1e5c18=['\x20\x20Session\x20check:\x20\x20\x20','6498aVdwbw','defaultApp','1045nLHGIL','repeat','(default)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','501flACdp','verbose','serviceCount','2cuDURk','\x20\x20Auth','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20─','bold','\x20\x20Service\x20Tree','log','5847612TCtVfe','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','4076VHQFsv','registryPath','✓\x20Valid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','7XFcrtw','3318416YxOFFo','pageSize','(no\x20file)','yellow','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','✗\x20Invalid\x20JSON','\x20\x20auth\x20(effective):\x20','109416PRNkoL','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','format','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','riskLevel','(not\x20found)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20API\x20Endpoints','red','appCode','(default:\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','read','gray','ClientAk','version','green','locale','(set,\x20length=','arch','Project','✗\x20Invalid','services','accessKey','platform','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','missing','empty','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','(missing)','padEnd','(not\x20set)','✓\x20Loaded','commandCount','\x20(accessKey)','2685850ZduznQ','status','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','9530jEiJBO','1000604UCUAbi','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','message'];a28_0x41d2=function(){return _0x1e5c18;};return a28_0x41d2();}const a28_0x24c35b=a28_0x40ec;(function(_0x4b61ec,_0x231116){const _0x591ac7=a28_0x40ec,_0x5ca7c7=_0x4b61ec();while(!![]){try{const _0x5ba716=parseInt(_0x591ac7(0x20e))/0x1*(-parseInt(_0x591ac7(0x21e))/0x2)+-parseInt(_0x591ac7(0x21b))/0x3*(parseInt(_0x591ac7(0x229))/0x4)+parseInt(_0x591ac7(0x209))/0x5+parseInt(_0x591ac7(0x225))/0x6+-parseInt(_0x591ac7(0x22d))/0x7*(-parseInt(_0x591ac7(0x1d4))/0x8)+-parseInt(_0x591ac7(0x213))/0x9*(-parseInt(_0x591ac7(0x20d))/0xa)+parseInt(_0x591ac7(0x215))/0xb*(-parseInt(_0x591ac7(0x1dd))/0xc);if(_0x5ba716===_0x231116)break;else _0x5ca7c7['push'](_0x5ca7c7['shift']());}catch(_0x320a18){_0x5ca7c7['push'](_0x5ca7c7['shift']());}}}(a28_0x41d2,0x8d075));import a28_0x15f2ca from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x146b68){const _0x2866ee=a28_0x40ec,_0x5ab31b=getCliVersion(),_0x39e88c=buildConfigFromFlags({});await initGlobalEnvironment(_0x39e88c),console['log'](),console['log'](a28_0x15f2ca[_0x2866ee(0x222)](CLI_BIN_NAME+_0x2866ee(0x1e7))),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)]('─'[_0x2866ee(0x216)](0x32))),console[_0x2866ee(0x224)](_0x2866ee(0x210)+_0x5ab31b),console[_0x2866ee(0x224)](_0x2866ee(0x1de)+process[_0x2866ee(0x1f1)]),console[_0x2866ee(0x224)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2866ee(0x1fa)]+'\x20'+process[_0x2866ee(0x1f5)]),console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x222)](_0x2866ee(0x21a))),console['log'](a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x221)['repeat'](0x1e)));const _0x2347ae=getGlobalConfigPath(),_0x180e9b=getProjectConfigPath();console['log'](_0x2866ee(0x227)+(_0x2347ae||a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x1e3)))),console[_0x2866ee(0x224)](_0x2866ee(0x1e4)+(_0x180e9b||a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x1e3)))),console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca['bold']('\x20\x20Config\x20JSON')),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)]('\x20\x20─'['repeat'](0x1e)));const _0x592163=(_0x2f1fb0,_0x4ba040)=>{const _0x38f793=_0x2866ee;if(!_0x4ba040){console[_0x38f793(0x224)]('\x20\x20'+_0x2f1fb0[_0x38f793(0x204)](0x11)+'\x20'+a28_0x15f2ca[_0x38f793(0x1ef)](_0x38f793(0x1d6)));return;}const _0x1e87c2=inspectCliConfigJsonFile(_0x4ba040);if(_0x1e87c2['status']==='ok')console[_0x38f793(0x224)]('\x20\x20'+_0x2f1fb0[_0x38f793(0x204)](0x11)+'\x20'+a28_0x15f2ca['green'](_0x38f793(0x22b)));else{if(_0x1e87c2[_0x38f793(0x20a)]===_0x38f793(0x1fe))console[_0x38f793(0x224)]('\x20\x20'+_0x2f1fb0[_0x38f793(0x204)](0x11)+'\x20'+a28_0x15f2ca['yellow'](_0x38f793(0x202)));else _0x1e87c2[_0x38f793(0x20a)]===_0x38f793(0x1fd)?console[_0x38f793(0x224)]('\x20\x20'+_0x2f1fb0[_0x38f793(0x204)](0x11)+'\x20'+a28_0x15f2ca[_0x38f793(0x1ef)](_0x38f793(0x203))):(console['log']('\x20\x20'+_0x2f1fb0[_0x38f793(0x204)](0x11)+'\x20'+a28_0x15f2ca['red'](_0x38f793(0x1db))),console[_0x38f793(0x224)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a28_0x15f2ca[_0x38f793(0x1e9)](_0x1e87c2[_0x38f793(0x211)])));}};_0x592163('Global',_0x2347ae),_0x592163(_0x2866ee(0x1f6),_0x180e9b),console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca['bold'](_0x2866ee(0x1da))),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x221)['repeat'](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x39e88c[_0x2866ee(0x1ea)]||a28_0x15f2ca['red'](_0x2866ee(0x205)))),console[_0x2866ee(0x224)](_0x2866ee(0x1d8)+_0x39e88c['env']);const _0x10c952=isLegacyCompatConfigKey(_0x2866ee(0x1f3))?a28_0x15f2ca['gray'](_0x39e88c[_0x2866ee(0x1f3)]+'\x20(legacy/compat\x20only)'):_0x39e88c[_0x2866ee(0x1f3)];console[_0x2866ee(0x224)](_0x2866ee(0x219)+_0x10c952),console[_0x2866ee(0x224)](_0x2866ee(0x201)+(_0x39e88c[_0x2866ee(0x214)]||a28_0x15f2ca['gray']('(none)'))),console[_0x2866ee(0x224)](_0x2866ee(0x1d9)+(_0x39e88c['currentApp']||a28_0x15f2ca['gray'](_0x2866ee(0x20f)))),console[_0x2866ee(0x224)](_0x2866ee(0x20b)+(_0x39e88c[_0x2866ee(0x1e0)]||a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x1eb)+DEFAULT_CONFIG_VALUES[_0x2866ee(0x1e0)]+')'))),console[_0x2866ee(0x224)](_0x2866ee(0x22c)+(_0x39e88c[_0x2866ee(0x1d5)]??a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x217)))),console[_0x2866ee(0x224)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x39e88c[_0x2866ee(0x1e2)]),console[_0x2866ee(0x224)](_0x2866ee(0x1fb)+_0x39e88c[_0x2866ee(0x21c)]),console[_0x2866ee(0x224)](_0x2866ee(0x1dc)+AUTH_MODE[_0x2866ee(0x1f0)]),console[_0x2866ee(0x224)](_0x2866ee(0x1fc)+(_0x39e88c[_0x2866ee(0x1f9)]?a28_0x15f2ca['green'](_0x2866ee(0x1f4)+_0x39e88c[_0x2866ee(0x1f9)][_0x2866ee(0x200)]+')'):a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x20f)))),console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca['bold'](_0x2866ee(0x1e8))),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x221)['repeat'](0x1e))),console[_0x2866ee(0x224)](_0x2866ee(0x1e1)+getApiDomain()),console['log'](_0x2866ee(0x1e5)+getUserDomain()),console['log'](_0x2866ee(0x1ff)+getRuntimeDomain()),console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca['bold'](_0x2866ee(0x223))),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x221)[_0x2866ee(0x216)](0x1e)));const _0x566d64=inspectServiceRegistry();console[_0x2866ee(0x224)](_0x2866ee(0x1ec)+_0x566d64[_0x2866ee(0x22a)]),console[_0x2866ee(0x224)](_0x2866ee(0x226)+formatServiceRegistryStatus(_0x566d64)),console[_0x2866ee(0x224)](_0x2866ee(0x218)+_0x566d64[_0x2866ee(0x21d)]),console['log'](_0x2866ee(0x1e6)+_0x566d64[_0x2866ee(0x207)]);for(const _0x42359e of _0x566d64[_0x2866ee(0x1f8)]){console['log']('\x20\x20'+(_0x42359e['serviceCode']+':')[_0x2866ee(0x204)](0x11)+'\x20'+(_0x42359e['name']||a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x1ed)))+'\x20('+_0x42359e['commandCount']+_0x2866ee(0x228)),console[_0x2866ee(0x224)]('\x20\x20'+''[_0x2866ee(0x204)](0x11)+'\x20Imported\x20from:\x20'+_0x42359e['source']['path']);}return console[_0x2866ee(0x224)](),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x222)](_0x2866ee(0x21f))),console[_0x2866ee(0x224)](a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x221)[_0x2866ee(0x216)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a28_0x15f2ca[_0x2866ee(0x1f2)](AUTH_MODE[_0x2866ee(0x1f0)]+_0x2866ee(0x208))),console[_0x2866ee(0x224)](_0x2866ee(0x212)+a28_0x15f2ca[_0x2866ee(0x1ef)](_0x2866ee(0x220))),console[_0x2866ee(0x224)](),{'ok':!![]};}function a28_0x40ec(_0xf846fd,_0x111fc0){_0xf846fd=_0xf846fd-0x1d4;const _0x41d2e2=a28_0x41d2();let _0x40eca6=_0x41d2e2[_0xf846fd];return _0x40eca6;}function formatServiceRegistryStatus(_0x150713){const _0x4c4592=a28_0x40ec;if(_0x150713['status']==='ok')return a28_0x15f2ca['green'](_0x4c4592(0x206));if(_0x150713[_0x4c4592(0x20a)]===_0x4c4592(0x1fd))return a28_0x15f2ca['gray'](_0x4c4592(0x1e3));if(_0x150713[_0x4c4592(0x20a)]===_0x4c4592(0x1fe))return a28_0x15f2ca[_0x4c4592(0x1d7)]('⚠\x20Empty');return a28_0x15f2ca['red'](_0x4c4592(0x1f7)+(_0x150713[_0x4c4592(0x211)]?':\x20'+_0x150713[_0x4c4592(0x211)]:''));}export const doctorDefinition={'service':a28_0x24c35b(0x20c),'command':'check','description':a28_0x24c35b(0x1df),'risk':a28_0x24c35b(0x1ee),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x14cc2d=a26_0x10b2;function a26_0x5567(){const _0x10e7b0=[')\x20instead\x20of\x20project','Source\x20file\x20not\x20found:\x20','trim','File\x20','App\x20code','once','stdout','209691ybhmpn','close','Override\x20imported\x20default\x20env','3031zmRWIs','App\x20code\x20cannot\x20be\x20empty.','string','env','defaultApp','yes','file','430ackzRU','\x20\x20config:\x20\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','cancelled','validation','1373411aMXPFK','newConfigFileName','name','riskLevel','[y/N]','\x20\x20default:\x20','\x20init\x20—\x20Create\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','toLowerCase','flagMissing','appcode','2986148SBzNkG','808570iVXxFD','AbortPrompt','6ZndAYg','utf8','Usage:\x20','\x20\x20appcode:\x20','app','\x22.\x20Allowed:\x20','boolean','SIGINT','apps','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','97308unUAbL','3iyphpZ','question','\x20already\x20exists.\x20Overwrite?','21032avKROa','Aborted.','\x20\x20env:\x20\x20\x20\x20\x20','\x0aInitialized\x20','Skip\x20confirmation\x20when\x20overwriting','race','Target\x20environment\x20(default\x20','Imported\x20from\x20','User\x20aborted\x20prompt','includes','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','2706cVlpNN','global','[Y/n]','5475435jGtWHp','log','project','removeListener','stdin'];a26_0x5567=function(){return _0x10e7b0;};return a26_0x5567();}(function(_0x316172,_0x362ec7){const _0x2ee231=a26_0x10b2,_0x18795d=_0x316172();while(!![]){try{const _0x1073f6=parseInt(_0x2ee231(0xac))/0x1+-parseInt(_0x2ee231(0xb8))/0x2+parseInt(_0x2ee231(0xc5))/0x3*(parseInt(_0x2ee231(0xb7))/0x4)+parseInt(_0x2ee231(0x91))/0x5*(-parseInt(_0x2ee231(0xba))/0x6)+parseInt(_0x2ee231(0xa0))/0x7*(parseInt(_0x2ee231(0xc8))/0x8)+-parseInt(_0x2ee231(0x9d))/0x9*(-parseInt(_0x2ee231(0xa7))/0xa)+parseInt(_0x2ee231(0x8e))/0xb*(-parseInt(_0x2ee231(0xc4))/0xc);if(_0x1073f6===_0x362ec7)break;else _0x18795d['push'](_0x18795d['shift']());}catch(_0x177368){_0x18795d['push'](_0x18795d['shift']());}}}(a26_0x5567,0xbb018));function a26_0x10b2(_0x34c13f,_0x149bb2){_0x34c13f=_0x34c13f-0x8a;const _0x556707=a26_0x5567();let _0x10b2bd=_0x556707[_0x34c13f];return _0x10b2bd;}import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x14cc2d(0xb6),'type':'string','description':'App\x20code\x20for\x20the\x20project'},{'name':a26_0x14cc2d(0xa3),'type':a26_0x14cc2d(0xa2),'description':a26_0x14cc2d(0xce)+DEFAULT_CONFIG_VALUES[a26_0x14cc2d(0xa3)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x14cc2d(0x8f),'type':a26_0x14cc2d(0xc0),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a26_0x14cc2d(0xad)]+a26_0x14cc2d(0x96),'default':![]},{'name':a26_0x14cc2d(0xa5),'type':a26_0x14cc2d(0xc0),'description':a26_0x14cc2d(0xcc),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x14cc2d(0xa6),'type':a26_0x14cc2d(0xa2),'description':a26_0x14cc2d(0xa9),'required':!![]},{'name':'appcode','type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':a26_0x14cc2d(0xa3),'type':'string','description':a26_0x14cc2d(0x9f),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a26_0x14cc2d(0xc0),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+a26_0x14cc2d(0x96),'default':![]},{'name':a26_0x14cc2d(0xa5),'type':a26_0x14cc2d(0xc0),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x5c65aa){const _0x4885b1=a26_0x14cc2d,_0x523be3=isNonInteractiveMode(_0x5c65aa),_0x1de86e=_0x5c65aa[_0x4885b1(0x8f)]?_0x4885b1(0x8f):'project',_0x4eabef=resolveWriteConfigPath(_0x1de86e);try{_0x523be3?await runNonInteractive(_0x5c65aa,_0x4eabef):await runInteractive(_0x5c65aa,_0x4eabef);}catch(_0x58540e){if(_0x58540e instanceof AbortPrompt)throw CliErrors[_0x4885b1(0xaa)]();throw _0x58540e;}}export async function runInitImport(_0x57e5d4){const _0x44855b=a26_0x14cc2d,_0x1f6b35=_0x57e5d4[_0x44855b(0x8f)]?_0x44855b(0x8f):_0x44855b(0x93),_0x1f8eae=resolveWriteConfigPath(_0x1f6b35);await runFromImport(_0x57e5d4,_0x1f8eae);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x5a5031,_0x2a4829){const _0x49d5db=a26_0x14cc2d,_0x2a477a=resolveFilePath(_0x5a5031[_0x49d5db(0xa6)]);if(!existsSync(_0x2a477a))throw CliErrors[_0x49d5db(0xab)](_0x49d5db(0x97)+_0x2a477a);const _0xc2850d=readSourceFile(_0x2a477a),_0x4ca310=convertToRuntimeConfig(_0xc2850d);_0x5a5031[_0x49d5db(0xb6)]&&(_0x4ca310[_0x49d5db(0xb6)]=String(_0x5a5031[_0x49d5db(0xb6)]));_0x5a5031[_0x49d5db(0xa3)]&&(_0x4ca310[_0x49d5db(0xa3)]=resolveInitEnv(_0x5a5031));if(!_0x4ca310[_0x49d5db(0xb6)])throw CliErrors[_0x49d5db(0xab)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x49d5db(0xc3));await writeInitConfig(_0x2a4829,_0x4ca310,_0x5a5031),console[_0x49d5db(0x92)](_0x49d5db(0x8a)+_0x2a477a),console['log'](_0x49d5db(0xa8)+_0x2a4829),console[_0x49d5db(0x92)](_0x49d5db(0xbd)+_0x4ca310[_0x49d5db(0xb6)]);if(_0x4ca310['defaultApp'])console[_0x49d5db(0x92)](_0x49d5db(0xb1)+_0x4ca310[_0x49d5db(0xa4)]);}function convertToRuntimeConfig(_0x671bf9){const _0xe83362=a26_0x14cc2d;if(_0x671bf9[_0xe83362(0xc2)]&&typeof _0x671bf9['apps']==='object')throw CliErrors[_0xe83362(0xab)](_0xe83362(0xb3),_0xe83362(0x8d));const _0x2b1c74={};for(const _0x2190ee of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x671bf9[_0x2190ee]!==undefined&&(_0x2b1c74[_0x2190ee]=_0x671bf9[_0x2190ee]);}return!_0x2b1c74['riskLevel']&&(_0x2b1c74[_0xe83362(0xaf)]=DEFAULT_CONFIG_VALUES[_0xe83362(0xaf)]),_0x2b1c74;}async function runNonInteractive(_0x409483,_0x2d9db0){const _0x5752ee=a26_0x14cc2d,_0x459513=_0x409483[_0x5752ee(0xb6)];if(!_0x459513)throw CliErrors[_0x5752ee(0xb5)]('appcode',_0x5752ee(0xbc)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x420089=resolveInitEnv(_0x409483);await writeInitConfig(_0x2d9db0,{'appcode':_0x459513,'env':_0x420089},_0x409483),console['log']('Initialized\x20'+_0x2d9db0),console[_0x5752ee(0x92)](_0x5752ee(0xbd)+_0x459513),console['log']('\x20\x20env:\x20\x20\x20\x20\x20'+_0x420089);}async function runInteractive(_0x5b4aa2,_0x10ac25){const _0x4273a1=a26_0x14cc2d,_0x30e06d=loadExisting(_0x10ac25),_0xb961a=typeof _0x30e06d?.[_0x4273a1(0xb6)]===_0x4273a1(0xa2)?_0x30e06d['appcode']:'',_0x4385bc=resolveInitEnv(_0x5b4aa2);console[_0x4273a1(0x92)](CLI_BIN_NAME+_0x4273a1(0xb2)+PRODUCT_CONFIG[_0x4273a1(0xad)]+'\x0a');if(existsSync(_0x10ac25)&&!_0x5b4aa2[_0x4273a1(0xa5)]){const _0x18ec2a=await promptYesNo(_0x4273a1(0x99)+_0x10ac25+_0x4273a1(0xc7),![]);if(!_0x18ec2a){console[_0x4273a1(0x92)](_0x4273a1(0xc9));return;}}const _0x23e29e=typeof _0x5b4aa2['appcode']===_0x4273a1(0xa2)?_0x5b4aa2['appcode'][_0x4273a1(0x98)]():'';let _0x249ec0=_0x23e29e;!_0x249ec0&&(_0x249ec0=await promptInput(_0x4273a1(0x9a),_0xb961a));if(!_0x249ec0[_0x4273a1(0x98)]())throw CliErrors[_0x4273a1(0xab)](_0x4273a1(0xa1));await writeInitConfig(_0x10ac25,{'appcode':_0x249ec0[_0x4273a1(0x98)](),'env':_0x4385bc},_0x5b4aa2),console[_0x4273a1(0x92)](_0x4273a1(0xcb)+_0x10ac25),console[_0x4273a1(0x92)](_0x4273a1(0xbd)+_0x249ec0['trim']()),console['log'](_0x4273a1(0xca)+_0x4385bc);}async function writeInitConfig(_0x569f29,_0x21d507,_0x67dd8a){const _0x5434ba=a26_0x14cc2d;let _0x439a64={};existsSync(_0x569f29)&&!_0x67dd8a[_0x5434ba(0xa5)]&&(_0x439a64=readConfigFile(_0x569f29));for(const [_0x269d35,_0x39ae18]of Object['entries'](_0x21d507)){_0x39ae18!==undefined&&(_0x439a64[_0x269d35]=_0x39ae18);}if(_0x439a64[_0x5434ba(0xbe)])delete _0x439a64[_0x5434ba(0xbe)];writeConfigFile(_0x569f29,_0x439a64);}class AbortPrompt extends Error{constructor(){const _0x178ee5=a26_0x14cc2d;super(_0x178ee5(0x8b)),this[_0x178ee5(0xae)]=_0x178ee5(0xb9);}}function createSafeRl(){const _0x1b946b=a26_0x14cc2d,_0x59a2f3=createInterface({'input':process[_0x1b946b(0x95)],'output':process[_0x1b946b(0x9c)]});let _0x490565;const _0x2f084b=new Promise((_0x51f88a,_0x442ae1)=>{const _0x14acc0=_0x1b946b;_0x490565=()=>{const _0x2fc5ec=a26_0x10b2;_0x490565&&(_0x59a2f3[_0x2fc5ec(0x94)](_0x2fc5ec(0xc1),_0x490565),_0x490565=undefined);try{_0x59a2f3['close']();}catch{}_0x442ae1(new AbortPrompt());},_0x59a2f3[_0x14acc0(0x9b)](_0x14acc0(0xc1),_0x490565);}),_0x2c269a=()=>{const _0x1de2a6=_0x1b946b;_0x490565&&(_0x59a2f3[_0x1de2a6(0x94)](_0x1de2a6(0xc1),_0x490565),_0x490565=undefined);try{_0x59a2f3[_0x1de2a6(0x9e)]();}catch{}};return{'rl':_0x59a2f3,'abortPromise':_0x2f084b,'disposeSuccess':_0x2c269a};}async function promptInput(_0x3f67bd,_0x1ce805){const {rl:_0x2e9e6f,abortPromise:_0x572a53,disposeSuccess:_0x11ed51}=createSafeRl(),_0x4e8e90=new Promise(_0x5399df=>{const _0x19c35b=a26_0x10b2,_0x56fd5f=_0x1ce805?'\x20\x20'+_0x3f67bd+'\x20('+_0x1ce805+'):\x20':'\x20\x20'+_0x3f67bd+':\x20';_0x2e9e6f[_0x19c35b(0xc6)](_0x56fd5f,_0xd1ac8e=>{const _0x43df86=_0x19c35b;_0x11ed51(),_0x5399df(_0xd1ac8e[_0x43df86(0x98)]()||_0x1ce805);});});return Promise['race']([_0x4e8e90,_0x572a53]);}async function promptYesNo(_0x2ad354,_0x4eb483){const _0x4d1239=a26_0x14cc2d,{rl:_0x1b6403,abortPromise:_0x28c852,disposeSuccess:_0x44fc26}=createSafeRl(),_0x9e315a=new Promise(_0x36e9d9=>{const _0x2f1c00=a26_0x10b2,_0x4ee6a3=_0x4eb483?_0x2f1c00(0x90):_0x2f1c00(0xb0);_0x1b6403[_0x2f1c00(0xc6)]('\x20\x20'+_0x2ad354+'\x20'+_0x4ee6a3+':\x20',_0x4dee11=>{const _0x3e4a64=_0x2f1c00;_0x44fc26();const _0x16eb49=_0x4dee11['trim']()[_0x3e4a64(0xb4)]();if(_0x16eb49==='y'||_0x16eb49===_0x3e4a64(0xa5))_0x36e9d9(!![]);else{if(_0x16eb49==='n'||_0x16eb49==='no')_0x36e9d9(![]);else _0x36e9d9(_0x4eb483);}});});return Promise[_0x4d1239(0xcd)]([_0x9e315a,_0x28c852]);}function loadExisting(_0x34881d){if(!existsSync(_0x34881d))return null;return readConfigFile(_0x34881d);}function resolveFilePath(_0x159902){return isAbsolute(_0x159902)?_0x159902:resolve(process['cwd'](),_0x159902);}function readSourceFile(_0x5c30eb){const _0x2f3d1d=a26_0x14cc2d;try{const _0x4ad051=readFileSync(_0x5c30eb,{'encoding':_0x2f3d1d(0xbb)});return JSON['parse'](_0x4ad051);}catch(_0x3098c9){throw CliErrors[_0x2f3d1d(0xab)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x3098c9['message']);}}function resolveInitEnv(_0x34de24){const _0x2ca6c6=a26_0x14cc2d,_0x240e5b=_0x34de24['env'];if(_0x240e5b===undefined||_0x240e5b==='')return DEFAULT_CONFIG_VALUES[_0x2ca6c6(0xa3)];if(!RUNTIME_ENV_VALUES[_0x2ca6c6(0x8c)](_0x240e5b))throw CliErrors[_0x2ca6c6(0xab)]('Invalid\x20env\x20\x22'+_0x240e5b+_0x2ca6c6(0xbf)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x240e5b;}
1
+ const a29_0x3bbb2b=a29_0x1be5;(function(_0x50629c,_0x4e6587){const _0x308943=a29_0x1be5,_0x50592c=_0x50629c();while(!![]){try{const _0xb4f69a=parseInt(_0x308943(0xd0))/0x1*(parseInt(_0x308943(0xda))/0x2)+parseInt(_0x308943(0x100))/0x3*(parseInt(_0x308943(0xca))/0x4)+parseInt(_0x308943(0xdc))/0x5+parseInt(_0x308943(0xd9))/0x6+-parseInt(_0x308943(0xfe))/0x7+parseInt(_0x308943(0xd5))/0x8+-parseInt(_0x308943(0xe6))/0x9*(parseInt(_0x308943(0xe8))/0xa);if(_0xb4f69a===_0x4e6587)break;else _0x50592c['push'](_0x50592c['shift']());}catch(_0x3047f5){_0x50592c['push'](_0x50592c['shift']());}}}(a29_0x3703,0x7b7b5));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a29_0x3703(){const _0x493dc3=['removeListener','AbortPrompt','Initialized\x20','riskLevel','3176888eKzYMu','entries','apps','stdout','2757624LHhOyQ','2BtaMqG','log','3107525QYbGsL','Override\x20imported\x20default\x20appcode','\x20\x20env:\x20\x20\x20\x20\x20','trim','Write\x20to\x20global\x20(~/','project','utf8','Aborted.','toLowerCase','app','87903SpBhnq','\x20already\x20exists.\x20Overwrite?','2390tNKzum','object','string','question','defaultApp','\x20\x20appcode:\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','Invalid\x20env\x20\x22','cwd','Imported\x20from\x20','newConfigFileName','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','stdin','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','close','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','App\x20code','[y/N]','Failed\x20to\x20parse\x20source\x20file:\x20','User\x20aborted\x20prompt','join','Usage:\x20','3711953LrvfSI','file','9rWzsqi','\x0aInitialized\x20',')\x20instead\x20of\x20project','appcode','\x20\x20config:\x20\x20','validation','\x20init\x20—\x20Create\x20','Skip\x20confirmation\x20when\x20overwriting','yes','env','boolean','1213096vdvTeg','SIGINT','flagMissing','):\x20','App\x20code\x20for\x20the\x20project','global','982331HYhRyl'];a29_0x3703=function(){return _0x493dc3;};return a29_0x3703();}import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':'appcode','type':a29_0x3bbb2b(0xea),'description':a29_0x3bbb2b(0xce)},{'name':a29_0x3bbb2b(0xc8),'type':a29_0x3bbb2b(0xea),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a29_0x3bbb2b(0xc8)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a29_0x3bbb2b(0xcf),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xe0)+PRODUCT_CONFIG[a29_0x3bbb2b(0xf2)]+a29_0x3bbb2b(0xc1),'default':![]},{'name':'yes','type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xc6),'default':![]}];export const initImportFlagDefs=[{'name':a29_0x3bbb2b(0xff),'type':'string','description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a29_0x3bbb2b(0xc2),'type':a29_0x3bbb2b(0xea),'description':a29_0x3bbb2b(0xdd)},{'name':a29_0x3bbb2b(0xc8),'type':a29_0x3bbb2b(0xea),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a29_0x3bbb2b(0xcf),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xe0)+PRODUCT_CONFIG[a29_0x3bbb2b(0xf2)]+')\x20instead\x20of\x20project','default':![]},{'name':a29_0x3bbb2b(0xc7),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xc6),'default':![]}];export async function runInit(_0x231f7d){const _0x3ce7e3=a29_0x3bbb2b,_0x49920c=isNonInteractiveMode(_0x231f7d),_0x123f3f=_0x231f7d[_0x3ce7e3(0xcf)]?_0x3ce7e3(0xcf):'project',_0x2c7075=resolveWriteConfigPath(_0x123f3f);try{_0x49920c?await runNonInteractive(_0x231f7d,_0x2c7075):await runInteractive(_0x231f7d,_0x2c7075);}catch(_0x50d3d6){if(_0x50d3d6 instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x50d3d6;}}export async function runInitImport(_0x4d1327){const _0x1f40b1=a29_0x3bbb2b,_0x152135=_0x4d1327[_0x1f40b1(0xcf)]?_0x1f40b1(0xcf):_0x1f40b1(0xe1),_0x23ea69=resolveWriteConfigPath(_0x152135);await runFromImport(_0x4d1327,_0x23ea69);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x228360,_0x38f575){const _0x2e0452=a29_0x3bbb2b,_0x1785cd=resolveFilePath(_0x228360['file']);if(!existsSync(_0x1785cd))throw CliErrors['validation']('Source\x20file\x20not\x20found:\x20'+_0x1785cd);const _0x1c8176=readSourceFile(_0x1785cd),_0x39e238=convertToRuntimeConfig(_0x1c8176);_0x228360[_0x2e0452(0xc2)]&&(_0x39e238[_0x2e0452(0xc2)]=String(_0x228360[_0x2e0452(0xc2)]));_0x228360[_0x2e0452(0xc8)]&&(_0x39e238[_0x2e0452(0xc8)]=resolveInitEnv(_0x228360));if(!_0x39e238[_0x2e0452(0xc2)])throw CliErrors[_0x2e0452(0xc4)](_0x2e0452(0xf5),_0x2e0452(0xee));await writeInitConfig(_0x38f575,_0x39e238,_0x228360),console[_0x2e0452(0xdb)](_0x2e0452(0xf1)+_0x1785cd),console[_0x2e0452(0xdb)](_0x2e0452(0xc3)+_0x38f575),console['log'](_0x2e0452(0xed)+_0x39e238['appcode']);if(_0x39e238[_0x2e0452(0xec)])console[_0x2e0452(0xdb)]('\x20\x20default:\x20'+_0x39e238['defaultApp']);}function convertToRuntimeConfig(_0x3d9cc8){const _0x213ebd=a29_0x3bbb2b;if(_0x3d9cc8[_0x213ebd(0xd7)]&&typeof _0x3d9cc8['apps']===_0x213ebd(0xe9))throw CliErrors[_0x213ebd(0xc4)](_0x213ebd(0xf3),_0x213ebd(0xf7));const _0x345531={};for(const _0x124040 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3d9cc8[_0x124040]!==undefined&&(_0x345531[_0x124040]=_0x3d9cc8[_0x124040]);}return!_0x345531[_0x213ebd(0xd4)]&&(_0x345531[_0x213ebd(0xd4)]=DEFAULT_CONFIG_VALUES[_0x213ebd(0xd4)]),_0x345531;}async function runNonInteractive(_0x4ab873,_0x590b09){const _0x59069a=a29_0x3bbb2b,_0x50fa9b=_0x4ab873[_0x59069a(0xc2)];if(!_0x50fa9b)throw CliErrors[_0x59069a(0xcc)](_0x59069a(0xc2),_0x59069a(0xfd)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x37d669=resolveInitEnv(_0x4ab873);await writeInitConfig(_0x590b09,{'appcode':_0x50fa9b,'env':_0x37d669},_0x4ab873),console[_0x59069a(0xdb)](_0x59069a(0xd3)+_0x590b09),console[_0x59069a(0xdb)](_0x59069a(0xed)+_0x50fa9b),console[_0x59069a(0xdb)](_0x59069a(0xde)+_0x37d669);}async function runInteractive(_0x2159e7,_0x4b6041){const _0x26d2fe=a29_0x3bbb2b,_0x1b0ea1=loadExisting(_0x4b6041),_0x128734=typeof _0x1b0ea1?.[_0x26d2fe(0xc2)]===_0x26d2fe(0xea)?_0x1b0ea1[_0x26d2fe(0xc2)]:'',_0x54a728=resolveInitEnv(_0x2159e7);console['log'](CLI_BIN_NAME+_0x26d2fe(0xc5)+PRODUCT_CONFIG['newConfigFileName']+'\x0a');if(existsSync(_0x4b6041)&&!_0x2159e7[_0x26d2fe(0xc7)]){const _0x36b05d=await promptYesNo('File\x20'+_0x4b6041+_0x26d2fe(0xe7),![]);if(!_0x36b05d){console[_0x26d2fe(0xdb)](_0x26d2fe(0xe3));return;}}const _0x1b72f8=typeof _0x2159e7[_0x26d2fe(0xc2)]===_0x26d2fe(0xea)?_0x2159e7[_0x26d2fe(0xc2)][_0x26d2fe(0xdf)]():'';let _0x1b0b3f=_0x1b72f8;!_0x1b0b3f&&(_0x1b0b3f=await promptInput(_0x26d2fe(0xf8),_0x128734));if(!_0x1b0b3f['trim']())throw CliErrors['validation']('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x4b6041,{'appcode':_0x1b0b3f[_0x26d2fe(0xdf)](),'env':_0x54a728},_0x2159e7),console[_0x26d2fe(0xdb)](_0x26d2fe(0xc0)+_0x4b6041),console[_0x26d2fe(0xdb)]('\x20\x20appcode:\x20'+_0x1b0b3f[_0x26d2fe(0xdf)]()),console[_0x26d2fe(0xdb)](_0x26d2fe(0xde)+_0x54a728);}async function writeInitConfig(_0x25ca5c,_0x2e0c65,_0x8bd759){const _0xfc5041=a29_0x3bbb2b;let _0x1fd70c={};existsSync(_0x25ca5c)&&!_0x8bd759['yes']&&(_0x1fd70c=readConfigFile(_0x25ca5c));for(const [_0x1bcfcf,_0x2d7494]of Object[_0xfc5041(0xd6)](_0x2e0c65)){_0x2d7494!==undefined&&(_0x1fd70c[_0x1bcfcf]=_0x2d7494);}if(_0x1fd70c[_0xfc5041(0xe5)])delete _0x1fd70c[_0xfc5041(0xe5)];writeConfigFile(_0x25ca5c,_0x1fd70c);}class AbortPrompt extends Error{constructor(){const _0x5e948f=a29_0x3bbb2b;super(_0x5e948f(0xfb)),this['name']=_0x5e948f(0xd2);}}function createSafeRl(){const _0x537538=a29_0x3bbb2b,_0x1980c4=createInterface({'input':process[_0x537538(0xf4)],'output':process[_0x537538(0xd8)]});let _0x1d87f6;const _0x61df22=new Promise((_0x383d13,_0x42c426)=>{const _0x122876=_0x537538;_0x1d87f6=()=>{const _0x3392c6=a29_0x1be5;_0x1d87f6&&(_0x1980c4[_0x3392c6(0xd1)](_0x3392c6(0xcb),_0x1d87f6),_0x1d87f6=undefined);try{_0x1980c4[_0x3392c6(0xf6)]();}catch{}_0x42c426(new AbortPrompt());},_0x1980c4['once'](_0x122876(0xcb),_0x1d87f6);}),_0x1ae7de=()=>{const _0xb79fc0=_0x537538;_0x1d87f6&&(_0x1980c4['removeListener'](_0xb79fc0(0xcb),_0x1d87f6),_0x1d87f6=undefined);try{_0x1980c4[_0xb79fc0(0xf6)]();}catch{}};return{'rl':_0x1980c4,'abortPromise':_0x61df22,'disposeSuccess':_0x1ae7de};}function a29_0x1be5(_0x15b73b,_0x519d96){_0x15b73b=_0x15b73b-0xc0;const _0x370347=a29_0x3703();let _0x1be530=_0x370347[_0x15b73b];return _0x1be530;}async function promptInput(_0x4c67ba,_0x24be66){const {rl:_0x44435d,abortPromise:_0x39f3c1,disposeSuccess:_0x55ad21}=createSafeRl(),_0x3bd1bf=new Promise(_0x5415b4=>{const _0x6a65dd=a29_0x1be5,_0x4552c7=_0x24be66?'\x20\x20'+_0x4c67ba+'\x20('+_0x24be66+_0x6a65dd(0xcd):'\x20\x20'+_0x4c67ba+':\x20';_0x44435d[_0x6a65dd(0xeb)](_0x4552c7,_0x5a71a7=>{const _0x362bee=_0x6a65dd;_0x55ad21(),_0x5415b4(_0x5a71a7[_0x362bee(0xdf)]()||_0x24be66);});});return Promise['race']([_0x3bd1bf,_0x39f3c1]);}async function promptYesNo(_0x58c972,_0x159af2){const {rl:_0x4778de,abortPromise:_0xd16067,disposeSuccess:_0x345580}=createSafeRl(),_0x5b9503=new Promise(_0x195551=>{const _0x2eca36=a29_0x1be5,_0x470de3=_0x159af2?'[Y/n]':_0x2eca36(0xf9);_0x4778de[_0x2eca36(0xeb)]('\x20\x20'+_0x58c972+'\x20'+_0x470de3+':\x20',_0x2d2835=>{const _0x207fe4=_0x2eca36;_0x345580();const _0x3662b3=_0x2d2835[_0x207fe4(0xdf)]()[_0x207fe4(0xe4)]();if(_0x3662b3==='y'||_0x3662b3===_0x207fe4(0xc7))_0x195551(!![]);else{if(_0x3662b3==='n'||_0x3662b3==='no')_0x195551(![]);else _0x195551(_0x159af2);}});});return Promise['race']([_0x5b9503,_0xd16067]);}function loadExisting(_0xe600f0){if(!existsSync(_0xe600f0))return null;return readConfigFile(_0xe600f0);}function resolveFilePath(_0x5572d4){const _0x83a8ad=a29_0x3bbb2b;return isAbsolute(_0x5572d4)?_0x5572d4:resolve(process[_0x83a8ad(0xf0)](),_0x5572d4);}function readSourceFile(_0x1bb673){const _0x16b4e7=a29_0x3bbb2b;try{const _0x3a2e0d=readFileSync(_0x1bb673,{'encoding':_0x16b4e7(0xe2)});return JSON['parse'](_0x3a2e0d);}catch(_0xc40aec){throw CliErrors['validation'](_0x16b4e7(0xfa)+_0xc40aec['message']);}}function resolveInitEnv(_0x56a4fb){const _0x3db49a=a29_0x3bbb2b,_0x462c16=_0x56a4fb[_0x3db49a(0xc8)];if(_0x462c16===undefined||_0x462c16==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES['includes'](_0x462c16))throw CliErrors['validation'](_0x3db49a(0xef)+_0x462c16+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x3db49a(0xfc)](',\x20'));return _0x462c16;}