@lovrabet/lovrabet-cli 2.1.6-beta.3 → 2.1.6-beta.4

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 (107) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a14_0x2beceb=a14_0x2369;(function(_0x5ca911,_0x2cfe6b){const _0xa2c1bd=a14_0x2369,_0x4489fc=_0x5ca911();while(!![]){try{const _0x131ee5=parseInt(_0xa2c1bd(0x1c2))/0x1*(-parseInt(_0xa2c1bd(0x1c5))/0x2)+-parseInt(_0xa2c1bd(0x1b6))/0x3*(-parseInt(_0xa2c1bd(0x1b7))/0x4)+-parseInt(_0xa2c1bd(0x1ba))/0x5+parseInt(_0xa2c1bd(0x1b1))/0x6*(-parseInt(_0xa2c1bd(0x1b0))/0x7)+-parseInt(_0xa2c1bd(0x1c7))/0x8*(parseInt(_0xa2c1bd(0x1c6))/0x9)+parseInt(_0xa2c1bd(0x1cc))/0xa*(-parseInt(_0xa2c1bd(0x1bc))/0xb)+parseInt(_0xa2c1bd(0x1c8))/0xc;if(_0x131ee5===_0x2cfe6b)break;else _0x4489fc['push'](_0x4489fc['shift']());}catch(_0x21e8af){_0x4489fc['push'](_0x4489fc['shift']());}}}(a14_0x2884,0xdd7e2));import{CliErrors}from'../../errors.js';function a14_0x2369(_0x4bde22,_0x2d4ecf){_0x4bde22=_0x4bde22-0x1ae;const _0x2884ae=a14_0x2884();let _0x236905=_0x2884ae[_0x4bde22];return _0x236905;}function a14_0x2884(){const _0x1c176a=['log','write','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','203234ZKVrqD','apiError','npx\x20skills\x20add\x20failed:\x20','4FECmvh','12615219peAPce','8BeKNOk','59836188tWOiWZ','cli-skill-install','CLI\x20Built-in\x20Skill\x20installed','install','13030HZWSYQ','cwd','error','Skipped\x20npx\x20(','7231jezoDs','8004OoYpVh','\x20-g\x20-y','unknown','pipe','cli-skill','5619yFjxbS','2384PHEpLH','setLogPath','inherit','8886540JMHKou','\x20-g\x20-y)...','1958PpvWJV','../../skills/npx-skills-add.js'];a14_0x2884=function(){return _0x1c176a;};return a14_0x2884();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x2beceb(0x1b5),'command':a14_0x2beceb(0x1cb),'description':a14_0x2beceb(0x1c0),'risk':a14_0x2beceb(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xdb8ba5){const _0x349ca6=a14_0x2beceb;logger[_0x349ca6(0x1b8)](process[_0x349ca6(0x1cd)]()),logger['info'](_0x349ca6(0x1c9),_0x349ca6(0x1c1));const {LOVRABET_SKILL_SOURCE:_0x2ab301,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x574cf8,runNpxSkillsAddGlobal:_0x5d54dd}=await import(_0x349ca6(0x1bd)),_0x1fd4a1=_0xdb8ba5['nonInteractive']?_0x349ca6(0x1b4):_0x349ca6(0x1b9);console[_0x349ca6(0x1be)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x2ab301+_0x349ca6(0x1bb));const _0x17e954=_0x5d54dd(process[_0x349ca6(0x1cd)](),_0x2ab301,{'stdio':_0x1fd4a1});if(_0x17e954['skipped'])console['log'](_0x349ca6(0x1af)+_0x574cf8+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x17e954['ok'])console[_0x349ca6(0x1be)](_0x349ca6(0x1ca));else throw CliErrors[_0x349ca6(0x1c3)](_0x349ca6(0x1c4)+(_0x17e954[_0x349ca6(0x1ae)]||_0x349ca6(0x1b3)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x2ab301+_0x349ca6(0x1b2));}return{'ok':!![]};}}];
1
+ const a14_0x2a58be=a14_0x48d2;(function(_0x555589,_0x181944){const _0x126a4d=a14_0x48d2,_0x115283=_0x555589();while(!![]){try{const _0x2fce89=-parseInt(_0x126a4d(0x172))/0x1*(parseInt(_0x126a4d(0x16a))/0x2)+-parseInt(_0x126a4d(0x17e))/0x3+parseInt(_0x126a4d(0x183))/0x4*(parseInt(_0x126a4d(0x16f))/0x5)+-parseInt(_0x126a4d(0x179))/0x6+-parseInt(_0x126a4d(0x173))/0x7+-parseInt(_0x126a4d(0x17c))/0x8*(-parseInt(_0x126a4d(0x174))/0x9)+parseInt(_0x126a4d(0x17f))/0xa;if(_0x2fce89===_0x181944)break;else _0x115283['push'](_0x115283['shift']());}catch(_0x5d9bd1){_0x115283['push'](_0x115283['shift']());}}}(a14_0x2a41,0x72ec0));function a14_0x48d2(_0x1131ad,_0x22298a){_0x1131ad=_0x1131ad-0x16a;const _0x2a41bd=a14_0x2a41();let _0x48d2f4=_0x2a41bd[_0x1131ad];return _0x48d2f4;}import{CliErrors}from'../../errors.js';function a14_0x2a41(){const _0x43c78f=['45UxbvEv','unknown','cli-skill','\x20-g\x20-y)...','cwd','3538440zqShFg','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','\x20-g\x20-y','309536XNKIUF','../../skills/npx-skills-add.js','1940037XvAshK','21275940PUnKdH','error','write','Skipped\x20npx\x20(','8vvURJq','cli-skill-install','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','312194GHOlVD','log','apiError','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','pipe','2000935gJYdbF','nonInteractive','install','5FGhsQG','4436628EFlmnD'];a14_0x2a41=function(){return _0x43c78f;};return a14_0x2a41();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x2a58be(0x176),'command':a14_0x2a58be(0x171),'description':a14_0x2a58be(0x185),'risk':a14_0x2a58be(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4fb8c1){const _0xae42b2=a14_0x2a58be;logger['setLogPath'](process[_0xae42b2(0x178)]()),logger['info'](_0xae42b2(0x184),_0xae42b2(0x16d));const {LOVRABET_SKILL_SOURCE:_0x472f25,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2fdce9,runNpxSkillsAddGlobal:_0x3ae1f1}=await import(_0xae42b2(0x17d)),_0x856cf7=_0x4fb8c1[_0xae42b2(0x170)]?_0xae42b2(0x16e):'inherit';console[_0xae42b2(0x16b)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x472f25+_0xae42b2(0x177));const _0x4d2eb2=_0x3ae1f1(process[_0xae42b2(0x178)](),_0x472f25,{'stdio':_0x856cf7});if(_0x4d2eb2['skipped'])console[_0xae42b2(0x16b)](_0xae42b2(0x182)+_0x2fdce9+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x4d2eb2['ok'])console[_0xae42b2(0x16b)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0xae42b2(0x16c)]('npx\x20skills\x20add\x20failed:\x20'+(_0x4d2eb2[_0xae42b2(0x180)]||_0xae42b2(0x175)),_0xae42b2(0x17a)+_0x472f25+_0xae42b2(0x17b));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x1a7ed1,_0x5c9a8e){const _0x2217cd=a15_0x2469,_0x19d5c8=_0x1a7ed1();while(!![]){try{const _0xb3744d=-parseInt(_0x2217cd(0x138))/0x1*(-parseInt(_0x2217cd(0x13a))/0x2)+-parseInt(_0x2217cd(0x13e))/0x3+-parseInt(_0x2217cd(0x137))/0x4+-parseInt(_0x2217cd(0x13d))/0x5+-parseInt(_0x2217cd(0x12d))/0x6*(parseInt(_0x2217cd(0x131))/0x7)+parseInt(_0x2217cd(0x130))/0x8+parseInt(_0x2217cd(0x132))/0x9*(parseInt(_0x2217cd(0x12c))/0xa);if(_0xb3744d===_0x5c9a8e)break;else _0x19d5c8['push'](_0x19d5c8['shift']());}catch(_0x1ff214){_0x19d5c8['push'](_0x19d5c8['shift']());}}}(a15_0x4ba7,0x47873));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x2469(_0x5c7ac5,_0x251e6c){_0x5c7ac5=_0x5c7ac5-0x12b;const _0x4ba74e=a15_0x4ba7();let _0x2469b6=_0x4ba74e[_0x5c7ac5];return _0x2469b6;}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 a15_0x4ba7(){const _0x10295c=['project-default','\x20init`\x20first.','newConfigFileName','2199076lxyLXR','44855VqHTfQ','project','18gzYSfF','global',',\x20or\x20run\x20`','784985WljPqt','852516DZwSfs','Not\x20inside\x20a\x20project\x20(no\x20','110lMHqsr','3508314yAgkYq','validation','inProject','2488592jJMOVA','7oFEDDh','944073edNhtF','\x20found).'];a15_0x4ba7=function(){return _0x10295c;};return a15_0x4ba7();}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(_0x44560d){const _0x2226f4=a15_0x2469,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3e870c}=_0x44560d;if(explicitGlobal&&explicitProject)throw CliErrors['validation']('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x3e870c){case'global-default':return'global';case _0x2226f4(0x134):return _0x44560d[_0x2226f4(0x12f)]??isInProject()?_0x2226f4(0x139):_0x2226f4(0x13b);case'project-or-global-explicit':if(!(_0x44560d[_0x2226f4(0x12f)]??isInProject()))throw CliErrors[_0x2226f4(0x12e)](_0x2226f4(0x12b)+PRODUCT_CONFIG[_0x2226f4(0x136)]+_0x2226f4(0x133),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x2226f4(0x136)]+_0x2226f4(0x13c)+CLI_BIN_NAME+_0x2226f4(0x135));return'project';}}export function toScopeFlags(_0x37590d){return{'global':_0x37590d==='global'};}export function formatScopeLabel(_0x21d3d2){const _0x2b18ee=a15_0x2469;return _0x21d3d2===_0x2b18ee(0x13b)?'\x20(global)':'';}
1
+ (function(_0x522ea6,_0x3d06d2){const _0x16ec4d=a15_0x2c79,_0x1ecdec=_0x522ea6();while(!![]){try{const _0x1ca41a=-parseInt(_0x16ec4d(0x11b))/0x1+-parseInt(_0x16ec4d(0x129))/0x2*(parseInt(_0x16ec4d(0x121))/0x3)+parseInt(_0x16ec4d(0x125))/0x4*(-parseInt(_0x16ec4d(0x124))/0x5)+-parseInt(_0x16ec4d(0x11d))/0x6+parseInt(_0x16ec4d(0x115))/0x7*(parseInt(_0x16ec4d(0x113))/0x8)+parseInt(_0x16ec4d(0x123))/0x9+-parseInt(_0x16ec4d(0x117))/0xa*(-parseInt(_0x16ec4d(0x11c))/0xb);if(_0x1ca41a===_0x3d06d2)break;else _0x1ecdec['push'](_0x1ecdec['shift']());}catch(_0x190240){_0x1ecdec['push'](_0x1ecdec['shift']());}}}(a15_0x5eac,0xded25));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';function a15_0x5eac(){const _0x29b04f=['2268603FBCteu','96765NjIlZg','168iKoLaI','Add\x20--global\x20to\x20write\x20to\x20~/','global','validation','54382idWohz','project','global-default','141448GXUMZF','Not\x20inside\x20a\x20project\x20(no\x20','392NDvvgK','newConfigFileName','34013610DyARwi','inProject','project-default','\x20(global)','884742uJCMqY','11kSyXQn','3553176xSVsGq','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',',\x20or\x20run\x20`','\x20found).','159ivWCBZ','Use\x20only\x20one\x20config\x20scope\x20flag.'];a15_0x5eac=function(){return _0x29b04f;};return a15_0x5eac();}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';function a15_0x2c79(_0x3a6451,_0x252aea){_0x3a6451=_0x3a6451-0x112;const _0x5eaccc=a15_0x5eac();let _0x2c791c=_0x5eaccc[_0x3a6451];return _0x2c791c;}export function resolveConfigScope(_0x5af90c){const _0x4a42de=a15_0x2c79,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xad2e41}=_0x5af90c;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4a42de(0x128)](_0x4a42de(0x11e),_0x4a42de(0x122));if(explicitGlobal)return _0x4a42de(0x127);if(explicitProject)return _0x4a42de(0x12a);switch(_0xad2e41){case _0x4a42de(0x112):return'global';case _0x4a42de(0x119):return _0x5af90c[_0x4a42de(0x118)]??isInProject()?_0x4a42de(0x12a):_0x4a42de(0x127);case'project-or-global-explicit':if(!(_0x5af90c[_0x4a42de(0x118)]??isInProject()))throw CliErrors[_0x4a42de(0x128)](_0x4a42de(0x114)+PRODUCT_CONFIG[_0x4a42de(0x116)]+_0x4a42de(0x120),_0x4a42de(0x126)+PRODUCT_CONFIG[_0x4a42de(0x116)]+_0x4a42de(0x11f)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}}export function toScopeFlags(_0x1eefc0){const _0x1f9aa3=a15_0x2c79;return{'global':_0x1eefc0===_0x1f9aa3(0x127)};}export function formatScopeLabel(_0x2aea72){const _0x1423f3=a15_0x2c79;return _0x2aea72===_0x1423f3(0x127)?_0x1423f3(0x11a):'';}
@@ -1 +1 @@
1
- (function(_0x298afe,_0x226f7f){const _0x2ed91d=a16_0x3048,_0x21a587=_0x298afe();while(!![]){try{const _0x46fc9f=-parseInt(_0x2ed91d(0x1ea))/0x1+-parseInt(_0x2ed91d(0x1f6))/0x2*(parseInt(_0x2ed91d(0x1f2))/0x3)+parseInt(_0x2ed91d(0x1f4))/0x4*(-parseInt(_0x2ed91d(0x1fb))/0x5)+-parseInt(_0x2ed91d(0x1e9))/0x6*(-parseInt(_0x2ed91d(0x1f5))/0x7)+parseInt(_0x2ed91d(0x202))/0x8*(-parseInt(_0x2ed91d(0x1f7))/0x9)+parseInt(_0x2ed91d(0x1ee))/0xa*(-parseInt(_0x2ed91d(0x1f8))/0xb)+-parseInt(_0x2ed91d(0x1fe))/0xc*(-parseInt(_0x2ed91d(0x200))/0xd);if(_0x46fc9f===_0x226f7f)break;else _0x21a587['push'](_0x21a587['shift']());}catch(_0x32b253){_0x21a587['push'](_0x21a587['shift']());}}}(a16_0x2ef5,0x9dc37));import{CliErrors}from'../../errors.js';function a16_0x2ef5(){const _0x3165af=['flag','4540jWPYjm','Invalid\x20--','At\x20least\x20one\x20of\x20','1129980dHqKEb',':\x20expected\x20','637ndTaPB','Remove\x20all\x20but\x20one.','38888BfYMlv','Provide\x20one\x20of:\x20','Exactly\x20one\x20of\x20','filter','map','\x20is\x20required\x20for\x20`','12MNyiCX','679301xxiUgR','test','Flags\x20','length','70vkgbAz','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20',',\x20got\x20\x22','39iiTpni','join','4456rfUCVM','2030294dVtBQU','111886hnxVBl','2313oiYdMF','1383833CvuWez','validation'];a16_0x2ef5=function(){return _0x3165af;};return a16_0x2ef5();}function isSet(_0x14c7cb,_0x27865c){const _0xff5ac3=a16_0x3048,_0x2d1e18=_0x14c7cb[_0xff5ac3(0x1fa)](_0x27865c);return _0x2d1e18!==undefined&&_0x2d1e18!==''&&_0x2d1e18!==![]&&_0x2d1e18!==0x0;}function a16_0x3048(_0x1a12e9,_0xa90130){_0x1a12e9=_0x1a12e9-0x1e9;const _0x2ef5c2=a16_0x2ef5();let _0x304893=_0x2ef5c2[_0x1a12e9];return _0x304893;}function fmtNames(_0xc8e14e){const _0x42c381=a16_0x3048;return _0xc8e14e[_0x42c381(0x206)](_0x20d553=>'--'+_0x20d553)[_0x42c381(0x1f3)](',\x20');}export function requireOneOf(_0xe62ddf,_0x251457,_0x37e10e){const _0x62743a=a16_0x3048,_0x332ef6=_0x251457[_0x62743a(0x205)](_0x5736b0=>isSet(_0xe62ddf,_0x5736b0));if(_0x332ef6[_0x62743a(0x1ed)]!==0x1)throw CliErrors['validation'](_0x332ef6[_0x62743a(0x1ed)]===0x0?_0x62743a(0x204)+fmtNames(_0x251457)+'\x20is\x20required\x20for\x20`'+_0x37e10e+'`.':_0x62743a(0x1ef)+fmtNames(_0x251457)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x332ef6)+'.',_0x332ef6[_0x62743a(0x1ed)]===0x0?_0x62743a(0x203)+fmtNames(_0x251457):_0x62743a(0x201));}export function requireAnyOf(_0x220347,_0x33cad2,_0x475932){const _0x201e29=a16_0x3048;if(!_0x33cad2['some'](_0x1d2fe5=>isSet(_0x220347,_0x1d2fe5)))throw CliErrors[_0x201e29(0x1f9)](_0x201e29(0x1fd)+fmtNames(_0x33cad2)+_0x201e29(0x207)+_0x475932+'`.',_0x201e29(0x203)+fmtNames(_0x33cad2));}export function mutuallyExclusive(_0x1199a6,_0x469561,_0x401ee5){const _0x102510=a16_0x3048,_0x1cbce7=_0x469561[_0x102510(0x205)](_0x270155=>isSet(_0x1199a6,_0x270155));if(_0x1cbce7[_0x102510(0x1ed)]>0x1)throw CliErrors[_0x102510(0x1f9)](_0x102510(0x1ec)+fmtNames(_0x1cbce7)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x401ee5+'`.',_0x102510(0x1f0)+fmtNames(_0x469561));}export function validatePattern(_0x22018f,_0x3c8a30,_0x129e1e,_0x1a1f3a){const _0x2ac797=a16_0x3048,_0x4605b9=_0x22018f['str'](_0x3c8a30);if(_0x4605b9&&!_0x129e1e[_0x2ac797(0x1eb)](_0x4605b9))throw CliErrors[_0x2ac797(0x1f9)](_0x2ac797(0x1fc)+_0x3c8a30+_0x2ac797(0x1ff)+_0x1a1f3a+_0x2ac797(0x1f1)+_0x4605b9+'\x22.');}
1
+ (function(_0x546b65,_0x4f8489){const _0x1672e7=a16_0x545e,_0x5314dc=_0x546b65();while(!![]){try{const _0x700256=parseInt(_0x1672e7(0x190))/0x1*(parseInt(_0x1672e7(0x1a3))/0x2)+parseInt(_0x1672e7(0x194))/0x3+parseInt(_0x1672e7(0x19a))/0x4*(parseInt(_0x1672e7(0x196))/0x5)+parseInt(_0x1672e7(0x18b))/0x6+parseInt(_0x1672e7(0x19e))/0x7+parseInt(_0x1672e7(0x1a0))/0x8*(-parseInt(_0x1672e7(0x19f))/0x9)+parseInt(_0x1672e7(0x19d))/0xa;if(_0x700256===_0x4f8489)break;else _0x5314dc['push'](_0x5314dc['shift']());}catch(_0x47aa5c){_0x5314dc['push'](_0x5314dc['shift']());}}}(a16_0x439a,0x1a1c8));import{CliErrors}from'../../errors.js';function isSet(_0xbcd2fd,_0x48c0b6){const _0x2049ca=a16_0x545e,_0x3704df=_0xbcd2fd[_0x2049ca(0x198)](_0x48c0b6);return _0x3704df!==undefined&&_0x3704df!==''&&_0x3704df!==![]&&_0x3704df!==0x0;}function fmtNames(_0x2f939e){const _0x53f087=a16_0x545e;return _0x2f939e['map'](_0x474bf6=>'--'+_0x474bf6)[_0x53f087(0x1a1)](',\x20');}function a16_0x545e(_0x5ab7a1,_0x147d50){_0x5ab7a1=_0x5ab7a1-0x189;const _0x439ad4=a16_0x439a();let _0x545e75=_0x439ad4[_0x5ab7a1];return _0x545e75;}function a16_0x439a(){const _0xd9040d=['10FLIbUz','some','flag','Remove\x20all\x20but\x20one.','39548OBgHeE','At\x20least\x20one\x20of\x20','length','117580MhMiWi','138201wGvULk','297szBTtQ','50136MBnwXt','join','\x20are\x20mutually\x20exclusive\x20for\x20`','46pAGlKe','filter','Use\x20only\x20one\x20of:\x20','333582rCtZOf','validation','Only\x20one\x20of\x20','Provide\x20one\x20of:\x20','test','6476SjYohW','Invalid\x20--','Exactly\x20one\x20of\x20','\x20is\x20required\x20for\x20`','173829qGvymm',',\x20got\x20\x22'];a16_0x439a=function(){return _0xd9040d;};return a16_0x439a();}export function requireOneOf(_0x11e689,_0x39c35e,_0xe2b507){const _0x1ac2d2=a16_0x545e,_0xc8365f=_0x39c35e[_0x1ac2d2(0x189)](_0x4aa86e=>isSet(_0x11e689,_0x4aa86e));if(_0xc8365f[_0x1ac2d2(0x19c)]!==0x1)throw CliErrors[_0x1ac2d2(0x18c)](_0xc8365f[_0x1ac2d2(0x19c)]===0x0?_0x1ac2d2(0x192)+fmtNames(_0x39c35e)+_0x1ac2d2(0x193)+_0xe2b507+'`.':_0x1ac2d2(0x18d)+fmtNames(_0x39c35e)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0xc8365f)+'.',_0xc8365f[_0x1ac2d2(0x19c)]===0x0?_0x1ac2d2(0x18e)+fmtNames(_0x39c35e):_0x1ac2d2(0x199));}export function requireAnyOf(_0x122d14,_0x52ad13,_0x4521e7){const _0x2eff47=a16_0x545e;if(!_0x52ad13[_0x2eff47(0x197)](_0x51e92d=>isSet(_0x122d14,_0x51e92d)))throw CliErrors[_0x2eff47(0x18c)](_0x2eff47(0x19b)+fmtNames(_0x52ad13)+'\x20is\x20required\x20for\x20`'+_0x4521e7+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x52ad13));}export function mutuallyExclusive(_0x7600bc,_0x485309,_0x5111c7){const _0x3f39c4=a16_0x545e,_0x13bc0a=_0x485309[_0x3f39c4(0x189)](_0x38724d=>isSet(_0x7600bc,_0x38724d));if(_0x13bc0a[_0x3f39c4(0x19c)]>0x1)throw CliErrors[_0x3f39c4(0x18c)]('Flags\x20'+fmtNames(_0x13bc0a)+_0x3f39c4(0x1a2)+_0x5111c7+'`.',_0x3f39c4(0x18a)+fmtNames(_0x485309));}export function validatePattern(_0x1dfd74,_0x253241,_0x567b7e,_0x514b84){const _0x1b9d54=a16_0x545e,_0x54a4b1=_0x1dfd74['str'](_0x253241);if(_0x54a4b1&&!_0x567b7e[_0x1b9d54(0x18f)](_0x54a4b1))throw CliErrors[_0x1b9d54(0x18c)](_0x1b9d54(0x191)+_0x253241+':\x20expected\x20'+_0x514b84+_0x1b9d54(0x195)+_0x54a4b1+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x2abbbd=a17_0x46d8;(function(_0x276cfb,_0x28fdf8){const _0x206cd7=a17_0x46d8,_0x25d081=_0x276cfb();while(!![]){try{const _0x3a5ce5=-parseInt(_0x206cd7(0xa8))/0x1*(parseInt(_0x206cd7(0x96))/0x2)+parseInt(_0x206cd7(0x99))/0x3*(-parseInt(_0x206cd7(0x9a))/0x4)+-parseInt(_0x206cd7(0xa0))/0x5*(-parseInt(_0x206cd7(0x9f))/0x6)+parseInt(_0x206cd7(0xa3))/0x7+parseInt(_0x206cd7(0xa5))/0x8*(parseInt(_0x206cd7(0xab))/0x9)+parseInt(_0x206cd7(0xaa))/0xa*(parseInt(_0x206cd7(0x9e))/0xb)+parseInt(_0x206cd7(0x97))/0xc*(-parseInt(_0x206cd7(0x9c))/0xd);if(_0x3a5ce5===_0x28fdf8)break;else _0x25d081['push'](_0x25d081['shift']());}catch(_0x846f50){_0x25d081['push'](_0x25d081['shift']());}}}(a17_0x266c,0x8a304));export const CODE_FLAG={'name':a17_0x2abbbd(0x94),'type':'string','required':!![],'description':a17_0x2abbbd(0xa9),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a17_0x2abbbd(0xa7),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x2abbbd(0x93)}};function a17_0x46d8(_0x29e139,_0x308413){_0x29e139=_0x29e139-0x93;const _0x266cbf=a17_0x266c();let _0x46d8a5=_0x266cbf[_0x29e139];return _0x46d8a5;}export const VERBOSE_FLAG={'name':a17_0x2abbbd(0x9d),'type':'boolean','description':a17_0x2abbbd(0x95)};export const PARAMS_FLAG={'name':a17_0x2abbbd(0xa2),'type':a17_0x2abbbd(0xa6),'description':a17_0x2abbbd(0x9b)};export const NAME_FLAG={'name':a17_0x2abbbd(0xa4),'type':a17_0x2abbbd(0xa6),'description':a17_0x2abbbd(0xa1)};function a17_0x266c(){const _0x317f96=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','100CBCbdA','344457CXwRwa','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','Return\x20full\x20raw\x20response\x20object','943346JsquEh','36hwDCHT','Resource\x20ID','3GUKsyE','3676744cjItZu','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2514707crMZSf','verbose','1192312SHUkYy','3666QblQcG','2560fweOWn','Resource\x20name\x20for\x20lookup','params','3515400UGihVd','name','232aiqnzn','string','sqlcode','2nMepsZ'];a17_0x266c=function(){return _0x317f96;};return a17_0x266c();}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a17_0x2abbbd(0x98)};
1
+ const a17_0x5deed9=a17_0x299b;(function(_0x20489d,_0x4d4a4f){const _0x30573a=a17_0x299b,_0x6fcf1=_0x20489d();while(!![]){try{const _0x54ab04=parseInt(_0x30573a(0xf2))/0x1*(parseInt(_0x30573a(0xe0))/0x2)+-parseInt(_0x30573a(0xdd))/0x3*(parseInt(_0x30573a(0xe3))/0x4)+-parseInt(_0x30573a(0xef))/0x5*(parseInt(_0x30573a(0xec))/0x6)+parseInt(_0x30573a(0xf1))/0x7*(-parseInt(_0x30573a(0xe4))/0x8)+-parseInt(_0x30573a(0xed))/0x9+parseInt(_0x30573a(0xee))/0xa+parseInt(_0x30573a(0xde))/0xb;if(_0x54ab04===_0x4d4a4f)break;else _0x6fcf1['push'](_0x6fcf1['shift']());}catch(_0x838abe){_0x6fcf1['push'](_0x6fcf1['shift']());}}}(a17_0x4389,0xb7dc0));export const CODE_FLAG={'name':'code','type':a17_0x5deed9(0xe6),'required':!![],'description':a17_0x5deed9(0xe2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a17_0x5deed9(0xdc),'type':a17_0x5deed9(0xe6),'required':!![],'description':a17_0x5deed9(0xe5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x5deed9(0xe1)}};function a17_0x4389(){const _0x398d32=['4463ByFyAq','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','sqlcode','1598349eTWAlO','6625850SdAyxu','number','610SuDUdh','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','4OHlspG','408720pMSwFd','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','string','params','name','Return\x20full\x20raw\x20response\x20object','Resource\x20ID','boolean','6lABkpL','598356EkbiIO','6949590EOOQSh','1166395qIGFgj','Resource\x20name\x20for\x20lookup','147ppCZaE'];a17_0x4389=function(){return _0x398d32;};return a17_0x4389();}export const VERBOSE_FLAG={'name':'verbose','type':a17_0x5deed9(0xeb),'description':a17_0x5deed9(0xe9)};export const PARAMS_FLAG={'name':a17_0x5deed9(0xe7),'type':'string','description':a17_0x5deed9(0xdb)};function a17_0x299b(_0x266c1d,_0x1ca1d5){_0x266c1d=_0x266c1d-0xdb;const _0x43893e=a17_0x4389();let _0x299b23=_0x43893e[_0x266c1d];return _0x299b23;}export const NAME_FLAG={'name':a17_0x5deed9(0xe8),'type':a17_0x5deed9(0xe6),'description':a17_0x5deed9(0xf0)};export const ID_FLAG={'name':'id','type':a17_0x5deed9(0xdf),'required':!![],'description':a17_0x5deed9(0xea)};
@@ -1 +1 @@
1
- function a18_0x2adf(_0x4c53d2,_0x350860){_0x4c53d2=_0x4c53d2-0x106;const _0x57caed=a18_0x57ca();let _0x2adf59=_0x57caed[_0x4c53d2];return _0x2adf59;}const a18_0x357805=a18_0x2adf;(function(_0x181951,_0x57a130){const _0x348179=a18_0x2adf,_0x3dbd7f=_0x181951();while(!![]){try{const _0x4dca5d=parseInt(_0x348179(0x122))/0x1*(-parseInt(_0x348179(0x129))/0x2)+parseInt(_0x348179(0x119))/0x3*(parseInt(_0x348179(0x114))/0x4)+-parseInt(_0x348179(0x112))/0x5+-parseInt(_0x348179(0x107))/0x6*(-parseInt(_0x348179(0x11a))/0x7)+-parseInt(_0x348179(0x130))/0x8*(-parseInt(_0x348179(0x146))/0x9)+-parseInt(_0x348179(0x10d))/0xa*(parseInt(_0x348179(0x13d))/0xb)+parseInt(_0x348179(0x139))/0xc;if(_0x4dca5d===_0x57a130)break;else _0x3dbd7f['push'](_0x3dbd7f['shift']());}catch(_0x501f36){_0x3dbd7f['push'](_0x3dbd7f['shift']());}}}(a18_0x57ca,0x72140));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_0x357805(0x131),'type':'boolean','description':a18_0x357805(0x127),'default':![]};function parseAliasAppcodeSetKey(_0x46705c){const _0x4d909c=a18_0x357805,_0x2d05c6=_0x46705c[_0x4d909c(0x106)]('.');if(_0x2d05c6['length']!==0x3||_0x2d05c6[0x0]!==_0x4d909c(0x115)||_0x2d05c6[0x2]!==_0x4d909c(0x136))return undefined;const _0x30d531=_0x2d05c6[0x1]?.[_0x4d909c(0x125)]();return _0x30d531?_0x30d531:undefined;}function parseAliasDeleteKey(_0xb4a4ce){const _0x2c6965=a18_0x357805,_0x5cc4f1=_0xb4a4ce['split']('.');if(_0x5cc4f1['length']===0x2&&_0x5cc4f1[0x0]===_0x2c6965(0x115)){const _0x582fe6=_0x5cc4f1[0x1]?.[_0x2c6965(0x125)]();return _0x582fe6?{'alias':_0x582fe6}:undefined;}if(_0x5cc4f1['length']===0x3&&_0x5cc4f1[0x0]===_0x2c6965(0x115)&&_0x5cc4f1[0x2]===_0x2c6965(0x136)){const _0x2cb63a=_0x5cc4f1[0x1]?.['trim']();return _0x2cb63a?{'alias':_0x2cb63a,'field':_0x2c6965(0x136)}:undefined;}return undefined;}function a18_0x57ca(){const _0x1b70e1=['pageSize','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Missing\x20key\x20or\x20value.','object','raw','split','474rXSfhc','Set\x20a\x20config\x20value','\x22.\x20Allowed:\x20','keys','log','validation','620xxXWhv','`\x20=\x20\x22','value','pretty','alias','219105XGNvoP','Top-level\x20key\x20\x22','4aePJPt','apps','\x22\x20not\x20found\x20at\x20top\x20level.','project-or-global-explicit','list','2089641fEQwBv','11354SppllP','Invalid\x20value\x20for\x20\x22','Key\x20not\x20found:\x20','\x20config\x20delete\x20<key>\x20[--global]','join','../../context.js','length',';\x20apps.<alias>.appcode','2300XKdbXl','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x20\x20project:\x20','trim','Deleted\x20`','Write\x20to\x20global\x20config','riskLevel','428xvLAcY','\x20(global)','Set\x20`','Settable\x20keys:\x20','Missing\x20key\x20argument.','Config\x20files:\x0a','\x22\x20is\x20not\x20settable.','2385576vmwefG','global','Get\x20a\x20config\x20value','List\x20current\x20config','Value\x20to\x20assign','config','appcode','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','stringify','2420244SXjLiJ','key','write','field','57002xIhXZc','set','(none)','get','includes','read','Usage:\x20','args','bool','9jdNdEV','\x20\x20global:\x20\x20','Delete\x20a\x20config\x20value','isArray'];a18_0x57ca=function(){return _0x1b70e1;};return a18_0x57ca();}function setLocalAppAlias(_0x52950d,_0x4bbcae,_0x3183a9){const _0x760b2d=a18_0x357805,_0x5da964=_0x52950d['apps']&&typeof _0x52950d[_0x760b2d(0x115)]===_0x760b2d(0x14d)&&!Array[_0x760b2d(0x149)](_0x52950d[_0x760b2d(0x115)])?_0x52950d['apps']:{},_0x272e07=_0x5da964[_0x4bbcae]&&typeof _0x5da964[_0x4bbcae]===_0x760b2d(0x14d)&&!Array[_0x760b2d(0x149)](_0x5da964[_0x4bbcae])?_0x5da964[_0x4bbcae]:{};_0x272e07[_0x760b2d(0x136)]=_0x3183a9,_0x5da964[_0x4bbcae]=_0x272e07,_0x52950d['apps']=_0x5da964;}function deleteLocalAppAlias(_0x3d022f,_0x4d95be){const _0x1eb170=a18_0x357805;if(!_0x3d022f[_0x1eb170(0x115)]||typeof _0x3d022f['apps']!==_0x1eb170(0x14d)||Array[_0x1eb170(0x149)](_0x3d022f[_0x1eb170(0x115)]))return![];const _0x445179=_0x3d022f[_0x1eb170(0x115)],_0x40e317=_0x445179[_0x4d95be[_0x1eb170(0x111)]];if(!_0x40e317||typeof _0x40e317!==_0x1eb170(0x14d)||Array[_0x1eb170(0x149)](_0x40e317))return![];if(!_0x4d95be['field'])return delete _0x445179[_0x4d95be[_0x1eb170(0x111)]],!![];if(!(_0x4d95be[_0x1eb170(0x13c)]in _0x40e317))return![];return delete _0x40e317[_0x4d95be[_0x1eb170(0x13c)]],Object[_0x1eb170(0x10a)](_0x40e317)[_0x1eb170(0x120)]===0x0&&delete _0x445179[_0x4d95be['alias']],!![];}const listDef={'service':a18_0x357805(0x135),'command':a18_0x357805(0x118),'description':a18_0x357805(0x133),'risk':a18_0x357805(0x142),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x55c99e){const _0x136b99=a18_0x357805,{buildConfigFromFlags:_0x419fda}=await import(_0x136b99(0x11f)),_0x310092=_0x419fda({}),_0x4c0ea3=getProjectConfigPath(),_0x4900f3=resolveWriteConfigPath(_0x136b99(0x131));if(_0x55c99e['format']===_0x136b99(0x110))return{'ok':!![],'message':_0x136b99(0x14b)+(JSON[_0x136b99(0x138)](_0x310092['raw'],null,0x2)+'\x0a\x0a')+_0x136b99(0x12e)+(_0x136b99(0x124)+(_0x4c0ea3??_0x136b99(0x13f))+'\x0a')+(_0x136b99(0x147)+_0x4900f3)};return{'ok':!![],'data':{'effective':_0x310092[_0x136b99(0x14e)],'configFiles':{'project':_0x4c0ea3??null,'global':_0x4900f3}}};}},getDef={'service':'config','command':a18_0x357805(0x140),'description':a18_0x357805(0x132),'risk':a18_0x357805(0x142),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a18_0x357805(0x137),'required':!![]}],'flags':[],async 'execute'(_0x59a698){const _0xd14c97=a18_0x357805,_0xfdec8a=_0x59a698[_0xd14c97(0x144)][0x0];if(!_0xfdec8a)throw CliErrors[_0xd14c97(0x10c)]('Missing\x20key\x20argument.',_0xd14c97(0x143)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x5e8553}=await import(_0xd14c97(0x11f)),{raw:_0x48a885}=_0x5e8553({});if(_0xfdec8a['includes']('.')){const _0x267e28=_0xfdec8a[_0xd14c97(0x106)]('.');let _0x34f983=_0x48a885;for(const _0x3dcd2e of _0x267e28){if(_0x34f983==null||typeof _0x34f983!=='object')throw CliErrors[_0xd14c97(0x10c)](_0xd14c97(0x11c)+_0xfdec8a);_0x34f983=_0x34f983[_0x3dcd2e];}if(_0x34f983===undefined)throw CliErrors[_0xd14c97(0x10c)](_0xd14c97(0x11c)+_0xfdec8a);return console[_0xd14c97(0x10b)](typeof _0x34f983==='object'?JSON[_0xd14c97(0x138)](_0x34f983,null,0x2):String(_0x34f983)),{'ok':!![]};}const _0x4b830e=_0x48a885[_0xfdec8a];if(_0x4b830e===undefined)throw CliErrors['validation'](_0xd14c97(0x11c)+_0xfdec8a);return console['log'](typeof _0x4b830e===_0xd14c97(0x14d)?JSON[_0xd14c97(0x138)](_0x4b830e,null,0x2):String(_0x4b830e)),{'ok':!![]};}},setDef={'service':a18_0x357805(0x135),'command':a18_0x357805(0x13e),'description':a18_0x357805(0x108),'risk':a18_0x357805(0x13b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x357805(0x13a),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x357805(0x10f),'description':a18_0x357805(0x134),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2f8058){const _0x400b1b=a18_0x357805,_0x561663=_0x2f8058[_0x400b1b(0x144)][0x0],_0x428132=_0x2f8058[_0x400b1b(0x144)][0x1];if(!_0x561663||_0x428132===undefined)throw CliErrors[_0x400b1b(0x10c)](_0x400b1b(0x14c),_0x400b1b(0x143)+CLI_BIN_NAME+_0x400b1b(0x123));if(ENUM_KEYS[_0x561663]&&!ENUM_KEYS[_0x561663][_0x400b1b(0x141)](_0x428132))throw CliErrors[_0x400b1b(0x10c)](_0x400b1b(0x11b)+_0x561663+_0x400b1b(0x109)+ENUM_KEYS[_0x561663][_0x400b1b(0x11e)](',\x20'));if(_0x561663===_0x400b1b(0x128))throw CliErrors[_0x400b1b(0x10c)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x561663===_0x400b1b(0x14a)){const _0x1240cd=Number(_0x428132);if(isNaN(_0x1240cd)||_0x1240cd<=0x0)throw CliErrors[_0x400b1b(0x10c)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x4953f3=resolveWriteScope({'explicitGlobal':_0x2f8058[_0x400b1b(0x145)]('global'),'policy':_0x400b1b(0x117)}),_0x2c138c=toScopeFlags(_0x4953f3),_0x3c5e9e=readScopedConfig(_0x2c138c),_0x50de0d=parseAliasAppcodeSetKey(_0x561663);if(!_0x50de0d&&!isTopLevelConfigKey(_0x561663))throw CliErrors[_0x400b1b(0x10c)](_0x400b1b(0x113)+_0x561663+_0x400b1b(0x12f),_0x400b1b(0x12c)+getTopLevelConfigKeySummary()+_0x400b1b(0x121));return _0x50de0d?setLocalAppAlias(_0x3c5e9e,_0x50de0d,_0x428132):_0x3c5e9e[_0x561663]=_0x561663===_0x400b1b(0x14a)?Number(_0x428132):_0x428132,console[_0x400b1b(0x10b)](_0x400b1b(0x12b)+_0x561663+_0x400b1b(0x10e)+_0x428132+'\x22'+(_0x4953f3===_0x400b1b(0x131)?'\x20(global)':'')),writeScopedConfig(_0x3c5e9e,_0x2c138c),{'ok':!![]};}},deleteDef={'service':a18_0x357805(0x135),'command':'delete','description':a18_0x357805(0x148),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2c18d8){const _0x57fd12=a18_0x357805,_0x17b1dd=_0x2c18d8['args'][0x0];if(!_0x17b1dd)throw CliErrors[_0x57fd12(0x10c)](_0x57fd12(0x12d),_0x57fd12(0x143)+CLI_BIN_NAME+_0x57fd12(0x11d));const _0xb1f55b=resolveWriteScope({'explicitGlobal':_0x2c18d8['bool']('global'),'policy':_0x57fd12(0x117)}),_0x327fde=toScopeFlags(_0xb1f55b),_0x34fad1=readScopedConfig(_0x327fde),_0x313741=parseAliasDeleteKey(_0x17b1dd);if(_0x313741){if(!deleteLocalAppAlias(_0x34fad1,_0x313741))throw CliErrors[_0x57fd12(0x10c)](_0x57fd12(0x11c)+_0x17b1dd);return console[_0x57fd12(0x10b)](_0x57fd12(0x126)+_0x17b1dd+'`'+(_0xb1f55b==='global'?_0x57fd12(0x12a):'')),writeScopedConfig(_0x34fad1,_0x327fde),{'ok':!![]};}if(_0x34fad1[_0x17b1dd]===undefined)throw CliErrors[_0x57fd12(0x10c)]('Key\x20\x22'+_0x17b1dd+_0x57fd12(0x116));return delete _0x34fad1[_0x17b1dd],console['log']('Deleted\x20`'+_0x17b1dd+'`'+(_0xb1f55b===_0x57fd12(0x131)?'\x20(global)':'')),writeScopedConfig(_0x34fad1,_0x327fde),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a18_0x97340d=a18_0xda9e;(function(_0x17aba0,_0x21254b){const _0x321bdd=a18_0xda9e,_0x1c28c1=_0x17aba0();while(!![]){try{const _0x445b40=-parseInt(_0x321bdd(0x210))/0x1+parseInt(_0x321bdd(0x225))/0x2*(-parseInt(_0x321bdd(0x1e8))/0x3)+-parseInt(_0x321bdd(0x200))/0x4+parseInt(_0x321bdd(0x219))/0x5+-parseInt(_0x321bdd(0x1f3))/0x6*(-parseInt(_0x321bdd(0x218))/0x7)+-parseInt(_0x321bdd(0x20a))/0x8+parseInt(_0x321bdd(0x1ee))/0x9*(parseInt(_0x321bdd(0x206))/0xa);if(_0x445b40===_0x21254b)break;else _0x1c28c1['push'](_0x1c28c1['shift']());}catch(_0x2671d8){_0x1c28c1['push'](_0x1c28c1['shift']());}}}(a18_0x3cd6,0x779bf));import{CliErrors}from'../../errors.js';function a18_0xda9e(_0x38daf5,_0x40feea){_0x38daf5=_0x38daf5-0x1e6;const _0x3cd628=a18_0x3cd6();let _0xda9e75=_0x3cd628[_0x38daf5];return _0xda9e75;}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_0x97340d(0x1f2),'type':a18_0x97340d(0x1e7),'description':a18_0x97340d(0x216),'default':![]};function parseAliasAppcodeSetKey(_0x5da583){const _0x3de57e=a18_0x97340d,_0x610367=_0x5da583['split']('.');if(_0x610367[_0x3de57e(0x208)]!==0x3||_0x610367[0x0]!==_0x3de57e(0x212)||_0x610367[0x2]!==_0x3de57e(0x1f4))return undefined;const _0x3c4c6d=_0x610367[0x1]?.[_0x3de57e(0x1f1)]();return _0x3c4c6d?_0x3c4c6d:undefined;}function parseAliasDeleteKey(_0x1c4d95){const _0x1627ea=a18_0x97340d,_0x29c83f=_0x1c4d95[_0x1627ea(0x1f9)]('.');if(_0x29c83f['length']===0x2&&_0x29c83f[0x0]===_0x1627ea(0x212)){const _0xd5a03c=_0x29c83f[0x1]?.[_0x1627ea(0x1f1)]();return _0xd5a03c?{'alias':_0xd5a03c}:undefined;}if(_0x29c83f['length']===0x3&&_0x29c83f[0x0]===_0x1627ea(0x212)&&_0x29c83f[0x2]==='appcode'){const _0x1927f1=_0x29c83f[0x1]?.[_0x1627ea(0x1f1)]();return _0x1927f1?{'alias':_0x1927f1,'field':_0x1627ea(0x1f4)}:undefined;}return undefined;}function a18_0x3cd6(){const _0x4f5b44=['bool','Deleted\x20`','stringify','Missing\x20key\x20argument.','Set\x20`','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','3851848lQxSww','\x20(global)','\x20config\x20delete\x20<key>\x20[--global]','Set\x20a\x20config\x20value','pageSize\x20must\x20be\x20a\x20positive\x20number','raw','10feIHCz','riskLevel','length','join','6906120kfvBwt','Usage:\x20','get','List\x20current\x20config','set','\x22\x20is\x20not\x20settable.','796649gmqdWY','write','apps','Settable\x20keys:\x20','Config\x20files:\x0a','validation','Write\x20to\x20global\x20config','format','679YraLNI','3566865tOaeUo','delete','object','keys','key','alias','log','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','read','pageSize','args','value','987074DntmLD','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Get\x20a\x20config\x20value','boolean','3huqSAn','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','isArray',';\x20apps.<alias>.appcode','(none)','19431513aSvTHU','Top-level\x20key\x20\x22','includes','trim','global','45396EXfTpE','appcode','config','Key\x20not\x20found:\x20','field','Delete\x20a\x20config\x20value','split'];a18_0x3cd6=function(){return _0x4f5b44;};return a18_0x3cd6();}function setLocalAppAlias(_0xfeb6b5,_0x4b044f,_0x449ed2){const _0x1f119b=a18_0x97340d,_0x811fb4=_0xfeb6b5['apps']&&typeof _0xfeb6b5[_0x1f119b(0x212)]==='object'&&!Array['isArray'](_0xfeb6b5['apps'])?_0xfeb6b5[_0x1f119b(0x212)]:{},_0xbafa86=_0x811fb4[_0x4b044f]&&typeof _0x811fb4[_0x4b044f]==='object'&&!Array[_0x1f119b(0x1eb)](_0x811fb4[_0x4b044f])?_0x811fb4[_0x4b044f]:{};_0xbafa86['appcode']=_0x449ed2,_0x811fb4[_0x4b044f]=_0xbafa86,_0xfeb6b5[_0x1f119b(0x212)]=_0x811fb4;}function deleteLocalAppAlias(_0x258350,_0x3cc506){const _0x4dc04a=a18_0x97340d;if(!_0x258350[_0x4dc04a(0x212)]||typeof _0x258350[_0x4dc04a(0x212)]!=='object'||Array[_0x4dc04a(0x1eb)](_0x258350['apps']))return![];const _0x4ab834=_0x258350[_0x4dc04a(0x212)],_0x373c4f=_0x4ab834[_0x3cc506[_0x4dc04a(0x21e)]];if(!_0x373c4f||typeof _0x373c4f!==_0x4dc04a(0x21b)||Array[_0x4dc04a(0x1eb)](_0x373c4f))return![];if(!_0x3cc506[_0x4dc04a(0x1f7)])return delete _0x4ab834[_0x3cc506[_0x4dc04a(0x21e)]],!![];if(!(_0x3cc506[_0x4dc04a(0x1f7)]in _0x373c4f))return![];return delete _0x373c4f[_0x3cc506[_0x4dc04a(0x1f7)]],Object[_0x4dc04a(0x21c)](_0x373c4f)[_0x4dc04a(0x208)]===0x0&&delete _0x4ab834[_0x3cc506['alias']],!![];}const listDef={'service':a18_0x97340d(0x1f5),'command':'list','description':a18_0x97340d(0x20d),'risk':a18_0x97340d(0x221),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x52f28f){const _0x58efa3=a18_0x97340d,{buildConfigFromFlags:_0x2fe011}=await import('../../context.js'),_0x473e64=_0x2fe011({}),_0x1c0052=getProjectConfigPath(),_0x2a7f3b=resolveWriteConfigPath(_0x58efa3(0x1f2));if(_0x52f28f[_0x58efa3(0x217)]==='pretty')return{'ok':!![],'message':_0x58efa3(0x220)+(JSON[_0x58efa3(0x1fc)](_0x473e64[_0x58efa3(0x205)],null,0x2)+'\x0a\x0a')+_0x58efa3(0x214)+('\x20\x20project:\x20'+(_0x1c0052??_0x58efa3(0x1ed))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2a7f3b)};return{'ok':!![],'data':{'effective':_0x473e64[_0x58efa3(0x205)],'configFiles':{'project':_0x1c0052??null,'global':_0x2a7f3b}}};}},getDef={'service':a18_0x97340d(0x1f5),'command':a18_0x97340d(0x20c),'description':a18_0x97340d(0x1e6),'risk':a18_0x97340d(0x221),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x97340d(0x21d),'description':a18_0x97340d(0x1ff),'required':!![]}],'flags':[],async 'execute'(_0x4add76){const _0x22016c=a18_0x97340d,_0x27cbe7=_0x4add76[_0x22016c(0x223)][0x0];if(!_0x27cbe7)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x22016c(0x20b)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x1158df}=await import('../../context.js'),{raw:_0x6fc41a}=_0x1158df({});if(_0x27cbe7[_0x22016c(0x1f0)]('.')){const _0x1bb384=_0x27cbe7[_0x22016c(0x1f9)]('.');let _0x4e11ff=_0x6fc41a;for(const _0x5417c4 of _0x1bb384){if(_0x4e11ff==null||typeof _0x4e11ff!==_0x22016c(0x21b))throw CliErrors['validation'](_0x22016c(0x1f6)+_0x27cbe7);_0x4e11ff=_0x4e11ff[_0x5417c4];}if(_0x4e11ff===undefined)throw CliErrors[_0x22016c(0x215)](_0x22016c(0x1f6)+_0x27cbe7);return console['log'](typeof _0x4e11ff===_0x22016c(0x21b)?JSON[_0x22016c(0x1fc)](_0x4e11ff,null,0x2):String(_0x4e11ff)),{'ok':!![]};}const _0x58ea3a=_0x6fc41a[_0x27cbe7];if(_0x58ea3a===undefined)throw CliErrors[_0x22016c(0x215)](_0x22016c(0x1f6)+_0x27cbe7);return console[_0x22016c(0x21f)](typeof _0x58ea3a===_0x22016c(0x21b)?JSON['stringify'](_0x58ea3a,null,0x2):String(_0x58ea3a)),{'ok':!![]};}},setDef={'service':a18_0x97340d(0x1f5),'command':a18_0x97340d(0x20e),'description':a18_0x97340d(0x203),'risk':a18_0x97340d(0x211),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x97340d(0x21d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x97340d(0x224),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5466c7){const _0xa76842=a18_0x97340d,_0x30f147=_0x5466c7['args'][0x0],_0x196dc7=_0x5466c7[_0xa76842(0x223)][0x1];if(!_0x30f147||_0x196dc7===undefined)throw CliErrors[_0xa76842(0x215)]('Missing\x20key\x20or\x20value.',_0xa76842(0x20b)+CLI_BIN_NAME+_0xa76842(0x226));if(ENUM_KEYS[_0x30f147]&&!ENUM_KEYS[_0x30f147][_0xa76842(0x1f0)](_0x196dc7))throw CliErrors[_0xa76842(0x215)](_0xa76842(0x1ea)+_0x30f147+_0xa76842(0x1e9)+ENUM_KEYS[_0x30f147][_0xa76842(0x209)](',\x20'));if(_0x30f147===_0xa76842(0x207))throw CliErrors[_0xa76842(0x215)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x30f147===_0xa76842(0x222)){const _0x8674e9=Number(_0x196dc7);if(isNaN(_0x8674e9)||_0x8674e9<=0x0)throw CliErrors[_0xa76842(0x215)](_0xa76842(0x204));}const _0x3b3ccb=resolveWriteScope({'explicitGlobal':_0x5466c7[_0xa76842(0x1fa)](_0xa76842(0x1f2)),'policy':'project-or-global-explicit'}),_0x306e46=toScopeFlags(_0x3b3ccb),_0x104b78=readScopedConfig(_0x306e46),_0x106082=parseAliasAppcodeSetKey(_0x30f147);if(!_0x106082&&!isTopLevelConfigKey(_0x30f147))throw CliErrors[_0xa76842(0x215)](_0xa76842(0x1ef)+_0x30f147+_0xa76842(0x20f),_0xa76842(0x213)+getTopLevelConfigKeySummary()+_0xa76842(0x1ec));return _0x106082?setLocalAppAlias(_0x104b78,_0x106082,_0x196dc7):_0x104b78[_0x30f147]=_0x30f147===_0xa76842(0x222)?Number(_0x196dc7):_0x196dc7,console['log'](_0xa76842(0x1fe)+_0x30f147+'`\x20=\x20\x22'+_0x196dc7+'\x22'+(_0x3b3ccb===_0xa76842(0x1f2)?_0xa76842(0x201):'')),writeScopedConfig(_0x104b78,_0x306e46),{'ok':!![]};}},deleteDef={'service':a18_0x97340d(0x1f5),'command':a18_0x97340d(0x21a),'description':a18_0x97340d(0x1f8),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x97340d(0x21d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x389278){const _0xead404=a18_0x97340d,_0x3fa432=_0x389278[_0xead404(0x223)][0x0];if(!_0x3fa432)throw CliErrors[_0xead404(0x215)](_0xead404(0x1fd),'Usage:\x20'+CLI_BIN_NAME+_0xead404(0x202));const _0x138afb=resolveWriteScope({'explicitGlobal':_0x389278[_0xead404(0x1fa)](_0xead404(0x1f2)),'policy':'project-or-global-explicit'}),_0x27bccd=toScopeFlags(_0x138afb),_0xaa9a7f=readScopedConfig(_0x27bccd),_0x49e0de=parseAliasDeleteKey(_0x3fa432);if(_0x49e0de){if(!deleteLocalAppAlias(_0xaa9a7f,_0x49e0de))throw CliErrors[_0xead404(0x215)](_0xead404(0x1f6)+_0x3fa432);return console[_0xead404(0x21f)](_0xead404(0x1fb)+_0x3fa432+'`'+(_0x138afb===_0xead404(0x1f2)?_0xead404(0x201):'')),writeScopedConfig(_0xaa9a7f,_0x27bccd),{'ok':!![]};}if(_0xaa9a7f[_0x3fa432]===undefined)throw CliErrors[_0xead404(0x215)]('Key\x20\x22'+_0x3fa432+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xaa9a7f[_0x3fa432],console[_0xead404(0x21f)]('Deleted\x20`'+_0x3fa432+'`'+(_0x138afb==='global'?'\x20(global)':'')),writeScopedConfig(_0xaa9a7f,_0x27bccd),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x3fcf8d,_0x209afa){var _0x7c5b18=a19_0x1b6c,_0x12a366=_0x3fcf8d();while(!![]){try{var _0xe3a635=parseInt(_0x7c5b18(0x16a))/0x1*(-parseInt(_0x7c5b18(0x171))/0x2)+-parseInt(_0x7c5b18(0x16d))/0x3*(parseInt(_0x7c5b18(0x16e))/0x4)+-parseInt(_0x7c5b18(0x173))/0x5*(-parseInt(_0x7c5b18(0x169))/0x6)+-parseInt(_0x7c5b18(0x16f))/0x7*(-parseInt(_0x7c5b18(0x168))/0x8)+parseInt(_0x7c5b18(0x174))/0x9*(-parseInt(_0x7c5b18(0x16c))/0xa)+-parseInt(_0x7c5b18(0x16b))/0xb+-parseInt(_0x7c5b18(0x172))/0xc*(-parseInt(_0x7c5b18(0x170))/0xd);if(_0xe3a635===_0x209afa)break;else _0x12a366['push'](_0x12a366['shift']());}catch(_0x13f40d){_0x12a366['push'](_0x12a366['shift']());}}}(a19_0x2e8b,0x85b89));import{CLI_BIN_NAME}from'../../constant/cli.js';function a19_0x2e8b(){var _0x4d19d4=['2fCSuhF','142992tVRxoX','5cLrPLt','5462514epKFjL','2075064vlcSnT','2012574CacQXC','635656SxGaaB','3866170rBwOAr','10SdWwZN','2687397ifjAlu','4KFoEBv','7YAHmMi','2665VNUyXQ'];a19_0x2e8b=function(){return _0x4d19d4;};return a19_0x2e8b();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a19_0x1b6c(_0x12314e,_0x599887){_0x12314e=_0x12314e-0x168;var _0x2e8b20=a19_0x2e8b();var _0x1b6c0f=_0x2e8b20[_0x12314e];return _0x1b6c0f;}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
+ (function(_0x4977b6,_0x2e2d51){var _0x448655=a19_0x2ed2,_0x2a7b0c=_0x4977b6();while(!![]){try{var _0x3425a8=parseInt(_0x448655(0xe1))/0x1+parseInt(_0x448655(0xe4))/0x2*(-parseInt(_0x448655(0xe0))/0x3)+-parseInt(_0x448655(0xe3))/0x4+-parseInt(_0x448655(0xdf))/0x5*(parseInt(_0x448655(0xe5))/0x6)+parseInt(_0x448655(0xe2))/0x7+parseInt(_0x448655(0xde))/0x8+-parseInt(_0x448655(0xdd))/0x9*(-parseInt(_0x448655(0xdc))/0xa);if(_0x3425a8===_0x2e2d51)break;else _0x2a7b0c['push'](_0x2a7b0c['shift']());}catch(_0x1db234){_0x2a7b0c['push'](_0x2a7b0c['shift']());}}}(a19_0x37d1,0x48a13));function a19_0x2ed2(_0x1d6500,_0x30cda8){_0x1d6500=_0x1d6500-0xdc;var _0x37d142=a19_0x37d1();var _0x2ed2bb=_0x37d142[_0x1d6500];return _0x2ed2bb;}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_0x37d1(){var _0x34cf76=['3949988zhwAkn','1242928SQmJAO','503754WGlYpb','1761534RbUOrq','30duaXfu','883593NRXetm','1698376PLjIUq','5TKSFQx','3ArQJEQ','82577eABnoP'];a19_0x37d1=function(){return _0x34cf76;};return a19_0x37d1();}
@@ -1 +1 @@
1
- function a20_0x2f9f(){const _0x4bb54e=['\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\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}}','3489180kKYtjT','build','\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}}]}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','risk','\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}','create','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','str','join','\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}}','write','\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}}','\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}','getOne','\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','16290HkRPuU','data\x20','\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\x20PAGINATION','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','map','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','filter','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','update','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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}','delete','operation','body','aggregate','now','\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}}','1385352ptsQYW','64TCEZsX','batchCreate','read','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','3898803XauuAh','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20PARAMS\x20STRUCTURE','2vHSuqf','\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]','params','9834zCAOoj','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20completed\x20in\x20','command','1223287HHasRX','\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}','paramsRequired','code','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','42hMbAgf','data','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','Update\x20an\x20existing\x20record','\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}}]','description','\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]','111985kLWNyx','\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}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}','\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]}}','1897588MBWMgz','\x20\x20EXAMPLES','Preview:\x20data\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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'];a20_0x2f9f=function(){return _0x4bb54e;};return a20_0x2f9f();}const a20_0x3f4feb=a20_0x3d66;(function(_0x253eaa,_0x3485c8){const _0x5e2260=a20_0x3d66,_0x300171=_0x253eaa();while(!![]){try{const _0x5ca31a=parseInt(_0x5e2260(0x16d))/0x1*(parseInt(_0x5e2260(0x165))/0x2)+-parseInt(_0x5e2260(0x15f))/0x3+parseInt(_0x5e2260(0x186))/0x4+parseInt(_0x5e2260(0x17a))/0x5*(-parseInt(_0x5e2260(0x173))/0x6)+parseInt(_0x5e2260(0x17f))/0x7+parseInt(_0x5e2260(0x15b))/0x8*(parseInt(_0x5e2260(0x15a))/0x9)+-parseInt(_0x5e2260(0x198))/0xa*(parseInt(_0x5e2260(0x168))/0xb);if(_0x5ca31a===_0x3485c8)break;else _0x300171['push'](_0x300171['shift']());}catch(_0x1a9966){_0x300171['push'](_0x300171['shift']());}}}(a20_0x2f9f,0xa7548));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a20_0x3d66(_0x4fe6f2,_0x19ccf5){_0x4fe6f2=_0x4fe6f2-0x148;const _0x2f9f84=a20_0x2f9f();let _0x3d6604=_0x2f9f84[_0x4fe6f2];return _0x3d6604;}const specs=[{'command':a20_0x3f4feb(0x14d),'operation':a20_0x3f4feb(0x14d),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a20_0x3f4feb(0x152)+a20_0x3f4feb(0x18f),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\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}}',a20_0x3f4feb(0x192),'\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}}',a20_0x3f4feb(0x19a),a20_0x3f4feb(0x185),'\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}}',a20_0x3f4feb(0x17e),a20_0x3f4feb(0x159),a20_0x3f4feb(0x194),a20_0x3f4feb(0x17b),'','\x20\x20LOGICAL\x20COMBINATORS','\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}}]}',a20_0x3f4feb(0x188),'',a20_0x3f4feb(0x14f),a20_0x3f4feb(0x189),a20_0x3f4feb(0x166),a20_0x3f4feb(0x184),a20_0x3f4feb(0x150),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a20_0x3f4feb(0x148),a20_0x3f4feb(0x175),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0x3f4feb(0x163)][a20_0x3f4feb(0x191)]('\x0a')},{'command':a20_0x3f4feb(0x196),'operation':a20_0x3f4feb(0x196),'risk':a20_0x3f4feb(0x15d),'paramsRequired':!![],'description':a20_0x3f4feb(0x18a),'paramsHint':a20_0x3f4feb(0x172)},{'command':a20_0x3f4feb(0x18e),'operation':a20_0x3f4feb(0x18e),'risk':a20_0x3f4feb(0x193),'paramsRequired':!![],'description':a20_0x3f4feb(0x14c),'paramsHint':a20_0x3f4feb(0x14b)},{'command':a20_0x3f4feb(0x15c),'operation':a20_0x3f4feb(0x15c),'risk':a20_0x3f4feb(0x193),'paramsRequired':!![],'description':a20_0x3f4feb(0x162),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a20_0x3f4feb(0x151),'risk':'write','paramsRequired':!![],'description':a20_0x3f4feb(0x176),'paramsHint':a20_0x3f4feb(0x171)},{'command':a20_0x3f4feb(0x154),'operation':a20_0x3f4feb(0x154),'risk':'high-risk-write','paramsRequired':!![],'description':a20_0x3f4feb(0x17c),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a20_0x3f4feb(0x157),'operation':a20_0x3f4feb(0x157),'risk':a20_0x3f4feb(0x15d),'paramsRequired':![],'description':a20_0x3f4feb(0x15e),'paramsHint':a20_0x3f4feb(0x160)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':['\x20\x20AGGREGATE\x20TYPES',a20_0x3f4feb(0x18d),a20_0x3f4feb(0x195),'\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}','\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}',a20_0x3f4feb(0x16e),a20_0x3f4feb(0x153),a20_0x3f4feb(0x17d),'',a20_0x3f4feb(0x164),a20_0x3f4feb(0x179),a20_0x3f4feb(0x161),a20_0x3f4feb(0x18b),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a20_0x3f4feb(0x177),a20_0x3f4feb(0x149),'',a20_0x3f4feb(0x180),a20_0x3f4feb(0x14e),a20_0x3f4feb(0x197),'',a20_0x3f4feb(0x16a),a20_0x3f4feb(0x183),'',a20_0x3f4feb(0x182)][a20_0x3f4feb(0x191)]('\x0a')}];function makeDataCommand(_0x521794){const _0x3181f5=a20_0x3f4feb,_0x46e646=_0x3181f5(0x199)+_0x521794[_0x3181f5(0x16c)],_0x4c0ab8={'service':_0x3181f5(0x174),'command':_0x521794['command'],'description':_0x521794[_0x3181f5(0x178)],'risk':_0x521794[_0x3181f5(0x18c)],'helpExtra':_0x521794['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x521794['paramsHint']}],'validate':async _0x7e5af8=>{const _0x483c37=_0x3181f5;_0x521794[_0x483c37(0x16f)]&&requireAnyOf(_0x7e5af8,[_0x483c37(0x167)],_0x46e646),_0x521794[_0x483c37(0x155)]===_0x483c37(0x15c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x7e5af8[_0x483c37(0x190)](_0x483c37(0x167))));},async 'execute'(_0x1c7fdb){const _0x2a4f5a=_0x3181f5,_0x112204=_0x1c7fdb[_0x2a4f5a(0x190)](_0x2a4f5a(0x170)),_0x471edd=_0x521794[_0x2a4f5a(0x155)]===_0x2a4f5a(0x15c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1c7fdb[_0x2a4f5a(0x190)](_0x2a4f5a(0x167)))):parseJsonParams(_0x1c7fdb[_0x2a4f5a(0x190)]('params'))??{},_0x41867d=Date[_0x2a4f5a(0x158)](),_0x2dcb11=await executeData(_0x112204,_0x521794[_0x2a4f5a(0x155)],_0x471edd),_0x247f47=Date[_0x2a4f5a(0x158)]()-_0x41867d;return{'ok':!![],'data':{'result':_0x2dcb11,'elapsed':_0x247f47},'message':'data\x20'+_0x521794[_0x2a4f5a(0x16c)]+_0x2a4f5a(0x16b)+_0x247f47+'ms'};}};return _0x521794[_0x3181f5(0x18c)]!=='read'&&(_0x4c0ab8['dryRun']=async _0x5b9c01=>{const _0x26edb1=_0x3181f5,_0x40ad1c=_0x5b9c01[_0x26edb1(0x190)](_0x26edb1(0x170)),_0x50eca4=_0x521794['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5b9c01[_0x26edb1(0x190)](_0x26edb1(0x167)))):parseJsonParams(_0x5b9c01[_0x26edb1(0x190)](_0x26edb1(0x167)))??{};return dryRun('POST','/api/{appCode}/'+_0x40ad1c+'/'+_0x521794[_0x26edb1(0x155)])[_0x26edb1(0x156)](_0x50eca4)[_0x26edb1(0x178)](_0x26edb1(0x181)+_0x521794[_0x26edb1(0x16c)]+_0x26edb1(0x169)+_0x40ad1c)[_0x26edb1(0x187)]();}),_0x4c0ab8;}export const dataDefinitions=specs[a20_0x3f4feb(0x14a)](makeDataCommand);
1
+ function a20_0x56ba(_0x3a20b3,_0x54dde1){_0x3a20b3=_0x3a20b3-0xef;const _0x3b441d=a20_0x3b44();let _0x56bab7=_0x3b441d[_0x3a20b3];return _0x56bab7;}const a20_0x4ee814=a20_0x56ba;(function(_0x4bb255,_0xa09890){const _0x21d76b=a20_0x56ba,_0x4a37ba=_0x4bb255();while(!![]){try{const _0x4a5dc1=-parseInt(_0x21d76b(0x122))/0x1+-parseInt(_0x21d76b(0x107))/0x2+parseInt(_0x21d76b(0x123))/0x3+parseInt(_0x21d76b(0x127))/0x4*(-parseInt(_0x21d76b(0xf3))/0x5)+-parseInt(_0x21d76b(0xf2))/0x6*(parseInt(_0x21d76b(0x126))/0x7)+parseInt(_0x21d76b(0x133))/0x8+parseInt(_0x21d76b(0x13b))/0x9;if(_0x4a5dc1===_0xa09890)break;else _0x4a37ba['push'](_0x4a37ba['shift']());}catch(_0x1031d6){_0x4a37ba['push'](_0x4a37ba['shift']());}}}(a20_0x3b44,0xcb618));import{executeData}from'../../core/sdk-client.js';function a20_0x3b44(){const _0x3d6f0c=['description','\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}','aggregate','\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}}','paramsHint','\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}}','/api/{appCode}/','now','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','12901168UXqbqU','Preview:\x20data\x20','map','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','command','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','12855654wMQCoT','\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}','Update\x20an\x20existing\x20record','risk','write','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','188196fptsMX','1309190QCTrip','\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\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','params','build','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','code','\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','\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\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','body','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','372650ctDzub','filter','\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}','\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}','join','\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}}]}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','str','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\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}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20AGGREGATE\x20TYPES','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','delete','operation','\x20\x20EXAMPLES','\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\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','data\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\x20PAGINATION','\x20\x20PARAMS\x20STRUCTURE','read','\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]','Get\x20a\x20single\x20record\x20by\x20ID','POST','856434BtsAYW','2751555CqgWwR','\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}}','getOne','231wevLKn','16oKnCOl','\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}','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'];a20_0x3b44=function(){return _0x3d6f0c;};return a20_0x3b44();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a20_0x4ee814(0x108),'risk':a20_0x4ee814(0x11e),'paramsRequired':![],'description':a20_0x4ee814(0x10d),'paramsHint':a20_0x4ee814(0x114)+a20_0x4ee814(0xfb),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\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}}',a20_0x4ee814(0x12f),a20_0x4ee814(0x124),'\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}}',a20_0x4ee814(0x12d),a20_0x4ee814(0xfe),'\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]}}','\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}}',a20_0x4ee814(0x110),'\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_0x4ee814(0x102),a20_0x4ee814(0x10c),'\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}}]}','','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a20_0x4ee814(0x138),a20_0x4ee814(0x11f),a20_0x4ee814(0x11b),a20_0x4ee814(0x101),a20_0x4ee814(0x132),'',a20_0x4ee814(0x11c),a20_0x4ee814(0x119),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0x4ee814(0x129)][a20_0x4ee814(0x10b)]('\x0a')},{'command':a20_0x4ee814(0x125),'operation':a20_0x4ee814(0x125),'risk':a20_0x4ee814(0x11e),'paramsRequired':!![],'description':a20_0x4ee814(0x120),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a20_0x4ee814(0xff),'operation':a20_0x4ee814(0xff),'risk':a20_0x4ee814(0xf0),'paramsRequired':!![],'description':a20_0x4ee814(0xf1),'paramsHint':a20_0x4ee814(0x136)},{'command':'batchCreate','operation':'batchCreate','risk':a20_0x4ee814(0xf0),'paramsRequired':!![],'description':a20_0x4ee814(0x112),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':'update','risk':'write','paramsRequired':!![],'description':a20_0x4ee814(0x13d),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a20_0x4ee814(0x115),'operation':a20_0x4ee814(0x115),'risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0x4ee814(0x13a)},{'command':a20_0x4ee814(0x12c),'operation':'aggregate','risk':a20_0x4ee814(0x11e),'paramsRequired':![],'description':a20_0x4ee814(0x104),'paramsHint':a20_0x4ee814(0x10f)+a20_0x4ee814(0xfa),'helpExtra':[a20_0x4ee814(0x113),a20_0x4ee814(0x13c),a20_0x4ee814(0x10a),a20_0x4ee814(0x128),a20_0x4ee814(0x137),a20_0x4ee814(0xf4),a20_0x4ee814(0x12b),a20_0x4ee814(0x109),'',a20_0x4ee814(0x11d),a20_0x4ee814(0x100),a20_0x4ee814(0xf6),a20_0x4ee814(0x103),a20_0x4ee814(0x106),a20_0x4ee814(0x118),a20_0x4ee814(0x111),'',a20_0x4ee814(0x117),a20_0x4ee814(0xfc),a20_0x4ee814(0xf5),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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','','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a20_0x4ee814(0x10b)]('\x0a')}];function makeDataCommand(_0x5a213a){const _0x3de4f2=a20_0x4ee814,_0x25168c=_0x3de4f2(0x11a)+_0x5a213a['command'],_0x530fd9={'service':'data','command':_0x5a213a[_0x3de4f2(0x139)],'description':_0x5a213a[_0x3de4f2(0x12a)],'risk':_0x5a213a[_0x3de4f2(0xef)],'helpExtra':_0x5a213a['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5a213a[_0x3de4f2(0x12e)]}],'validate':async _0x3f93e7=>{const _0x33d57e=_0x3de4f2;_0x5a213a['paramsRequired']&&requireAnyOf(_0x3f93e7,[_0x33d57e(0xf7)],_0x25168c),_0x5a213a[_0x33d57e(0x116)]===_0x33d57e(0xf9)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3f93e7[_0x33d57e(0x10e)](_0x33d57e(0xf7))));},async 'execute'(_0x557354){const _0x442c59=_0x3de4f2,_0x29140c=_0x557354[_0x442c59(0x10e)](_0x442c59(0xfd)),_0x4aec96=_0x5a213a[_0x442c59(0x116)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x557354[_0x442c59(0x10e)](_0x442c59(0xf7)))):parseJsonParams(_0x557354[_0x442c59(0x10e)](_0x442c59(0xf7)))??{},_0x326ea6=Date[_0x442c59(0x131)](),_0x1959c3=await executeData(_0x29140c,_0x5a213a[_0x442c59(0x116)],_0x4aec96),_0x12fe7b=Date[_0x442c59(0x131)]()-_0x326ea6;return{'ok':!![],'data':{'result':_0x1959c3,'elapsed':_0x12fe7b},'message':_0x442c59(0x11a)+_0x5a213a[_0x442c59(0x139)]+'\x20completed\x20in\x20'+_0x12fe7b+'ms'};}};return _0x5a213a[_0x3de4f2(0xef)]!==_0x3de4f2(0x11e)&&(_0x530fd9['dryRun']=async _0x333ed5=>{const _0x56af5a=_0x3de4f2,_0x354024=_0x333ed5[_0x56af5a(0x10e)]('code'),_0x25c250=_0x5a213a[_0x56af5a(0x116)]===_0x56af5a(0xf9)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x333ed5[_0x56af5a(0x10e)](_0x56af5a(0xf7)))):parseJsonParams(_0x333ed5[_0x56af5a(0x10e)](_0x56af5a(0xf7)))??{};return dryRun(_0x56af5a(0x121),_0x56af5a(0x130)+_0x354024+'/'+_0x5a213a[_0x56af5a(0x116)])[_0x56af5a(0x105)](_0x25c250)[_0x56af5a(0x12a)](_0x56af5a(0x134)+_0x5a213a[_0x56af5a(0x139)]+'\x20on\x20dataset\x20'+_0x354024)[_0x56af5a(0xf8)]();}),_0x530fd9;}export const dataDefinitions=specs[a20_0x4ee814(0x135)](makeDataCommand);
@@ -1 +1 @@
1
- const a21_0x464731=a21_0x5d87;(function(_0x1be871,_0x1f8f1d){const _0x3460e7=a21_0x5d87,_0x59a471=_0x1be871();while(!![]){try{const _0x484f80=-parseInt(_0x3460e7(0x10c))/0x1+parseInt(_0x3460e7(0x13d))/0x2+-parseInt(_0x3460e7(0x107))/0x3+parseInt(_0x3460e7(0x103))/0x4*(parseInt(_0x3460e7(0x102))/0x5)+-parseInt(_0x3460e7(0x12b))/0x6+parseInt(_0x3460e7(0x11f))/0x7*(-parseInt(_0x3460e7(0x104))/0x8)+-parseInt(_0x3460e7(0x117))/0x9*(-parseInt(_0x3460e7(0x11d))/0xa);if(_0x484f80===_0x1f8f1d)break;else _0x59a471['push'](_0x59a471['shift']());}catch(_0x216e3a){_0x59a471['push'](_0x59a471['shift']());}}}(a21_0x4ec9,0x98a02));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x537821){const _0x4c7203=a21_0x5d87;if(_0x537821[_0x4c7203(0x111)])return null;const _0x5c5704=Boolean(_0x537821[_0x4c7203(0x11e)]!==undefined||_0x537821[_0x4c7203(0x128)]!==undefined);let _0x32bd33={};if(!_0x5c5704&&typeof _0x537821['extend']===_0x4c7203(0x14b))try{_0x32bd33=JSON['parse'](_0x537821['extend']);}catch{}const _0x3c8468=_0x5c5704?_0x537821[_0x4c7203(0x123)]:_0x537821[_0x4c7203(0x12a)],_0x4a5bf9=_0x5c5704?_0x537821[_0x4c7203(0x11e)]:_0x537821[_0x4c7203(0x123)],_0x3e7b9f=_0x5c5704?_0x537821[_0x4c7203(0x128)]:_0x537821[_0x4c7203(0x14d)]||_0x537821[_0x4c7203(0x12c)],_0x30765c=_0x5c5704?_0x537821[_0x4c7203(0x146)]===!![]:_0x32bd33[_0x4c7203(0x146)]===!![],_0x1caf35=_0x5c5704?_0x537821[_0x4c7203(0x10b)]===!![]:_0x32bd33[_0x4c7203(0x10b)]===!![],_0x597eb6=_0x5c5704?_0x537821[_0x4c7203(0x115)]??null:_0x32bd33[_0x4c7203(0x115)]??null,_0x3a6f85={'name':_0x3c8468,'displayName':_0x4a5bf9||_0x3c8468,'type':_0x3e7b9f,'dbType':_0x537821[_0x4c7203(0x148)],'pk':_0x30765c,'required':_0x1caf35,'description':_0x537821[_0x4c7203(0x133)]||undefined};return Array[_0x4c7203(0x132)](_0x597eb6)&&_0x597eb6[_0x4c7203(0x134)]>0x0&&(_0x3a6f85[_0x4c7203(0x115)]=_0x597eb6),_0x3a6f85;}function parseJsonMaybe(_0x53b47c){const _0x2b2925=a21_0x5d87;if(typeof _0x53b47c!==_0x2b2925(0x14b))return _0x53b47c;try{return JSON[_0x2b2925(0x10f)](_0x53b47c);}catch{return _0x53b47c;}}function normalizeOperationEntry(_0x4584ba,_0x184335){const _0x8dcf57=a21_0x5d87;if(!_0x184335||typeof _0x184335!==_0x8dcf57(0x10a))return null;if(!_0x184335[_0x8dcf57(0x147)]||!_0x184335[_0x8dcf57(0x11c)])return null;const _0x42fe97={'name':_0x4584ba,'method':_0x184335['method'],'path':_0x184335['path']};if(_0x184335['host'])_0x42fe97[_0x8dcf57(0x144)]=_0x184335[_0x8dcf57(0x144)];if(_0x184335[_0x8dcf57(0x135)]!=null)_0x42fe97[_0x8dcf57(0x135)]=parseJsonMaybe(_0x184335[_0x8dcf57(0x135)]);if(_0x184335[_0x8dcf57(0x13a)]!=null)_0x42fe97[_0x8dcf57(0x13a)]=parseJsonMaybe(_0x184335['responseBody']);if(_0x184335[_0x8dcf57(0x138)]!=null)_0x42fe97[_0x8dcf57(0x138)]=_0x184335[_0x8dcf57(0x138)];if(_0x184335[_0x8dcf57(0x125)]!=null)_0x42fe97[_0x8dcf57(0x125)]=_0x184335[_0x8dcf57(0x125)];if(Array['isArray'](_0x184335[_0x8dcf57(0x110)]))_0x42fe97[_0x8dcf57(0x110)]=_0x184335['requestFields'];if(Array['isArray'](_0x184335['responseFields']))_0x42fe97[_0x8dcf57(0x105)]=_0x184335[_0x8dcf57(0x105)];return _0x42fe97;}function summarizeDbtable(_0x2eece7){const _0xd7c72d=a21_0x5d87,_0x39f0fd={},_0x150222=['dbId',_0xd7c72d(0x127),_0xd7c72d(0x140),_0xd7c72d(0x143),'pkField',_0xd7c72d(0x13c),_0xd7c72d(0x114),_0xd7c72d(0x11b),_0xd7c72d(0x13b),_0xd7c72d(0x14e),_0xd7c72d(0x14a),_0xd7c72d(0x131),_0xd7c72d(0x136),_0xd7c72d(0x129),_0xd7c72d(0x120)];for(const _0x346a54 of _0x150222){if(_0x2eece7[_0x346a54]!==undefined)_0x39f0fd[_0x346a54]=_0x2eece7[_0x346a54];}return typeof _0x39f0fd['allFields']===_0xd7c72d(0x14b)&&_0x39f0fd['allFields'][_0xd7c72d(0x134)]>0x0&&(_0x39f0fd[_0xd7c72d(0x11a)]=_0x39f0fd[_0xd7c72d(0x13c)][_0xd7c72d(0x14c)](',')['map'](_0x239762=>_0x239762[_0xd7c72d(0x14f)]())[_0xd7c72d(0x13f)](Boolean)),_0x39f0fd;}function normalizeRelatedPages(_0x43cbc2){const _0x6b637=a21_0x5d87;if(!Array['isArray'](_0x43cbc2))return[];return _0x43cbc2[_0x6b637(0x13f)](_0x31d1ba=>_0x31d1ba&&typeof _0x31d1ba===_0x6b637(0x10a))[_0x6b637(0x10d)](_0x3ad92e=>({'id':_0x3ad92e['id'],'type':_0x3ad92e[_0x6b637(0x14d)],'code':_0x3ad92e[_0x6b637(0x12a)],'title':_0x3ad92e[_0x6b637(0x137)],'deleted':_0x3ad92e[_0x6b637(0x111)]===!![]}));}function normalizeFallbackFieldName(_0x16c2fb,_0x30c9db){const _0x2156c7=a21_0x5d87,_0x92d194=_0x16c2fb[_0x2156c7(0x14f)]();if(!_0x92d194)return null;return{'name':_0x92d194,'displayName':_0x92d194,'type':undefined,'dbType':undefined,'pk':_0x92d194===_0x30c9db,'required':![],'description':undefined};}async function loadListFieldFallback(_0x3ae2f5,_0x214486){const _0x16d4c0=a21_0x5d87;if(!_0x3ae2f5||!_0x214486)return[];try{const _0x488c4f=await listDatasets(_0x3ae2f5,{'code':_0x214486}),_0x1f39c5=_0x488c4f[_0x16d4c0(0x121)](_0xdd38a6=>_0xdd38a6['code']===_0x214486)??_0x488c4f[0x0],_0x757502=_0x1f39c5?.[_0x16d4c0(0x101)]??{},_0x5bf7ab=typeof _0x757502[_0x16d4c0(0x13c)]===_0x16d4c0(0x14b)?_0x757502[_0x16d4c0(0x13c)][_0x16d4c0(0x14c)](','):[];return _0x5bf7ab[_0x16d4c0(0x10d)](_0x479d26=>normalizeFallbackFieldName(_0x479d26,_0x757502[_0x16d4c0(0x146)]))['filter'](_0x44e985=>_0x44e985!==null);}catch{return[];}}export const datasetDetail={'service':a21_0x464731(0x124),'command':a21_0x464731(0x112),'description':a21_0x464731(0x13e),'risk':a21_0x464731(0x12d),'flags':[CODE_FLAG],async 'execute'(_0x5d8d65){const _0x50ac15=a21_0x464731,_0x1f397e=await getDatasetDetail(_0x5d8d65['str'](_0x50ac15(0x12a))),_0x124ea3=Array['isArray'](_0x1f397e[_0x50ac15(0x12f)])?_0x1f397e[_0x50ac15(0x12f)]:Array['isArray'](_0x1f397e[_0x50ac15(0x108)])?_0x1f397e[_0x50ac15(0x108)]:[];let _0x36b032=_0x124ea3[_0x50ac15(0x10d)](_0x4b1248=>normalizeField(_0x4b1248))[_0x50ac15(0x13f)](_0x472ca7=>_0x472ca7!==null);_0x36b032[_0x50ac15(0x134)]===0x0&&(_0x36b032=await loadListFieldFallback(_0x5d8d65[_0x50ac15(0x149)],_0x5d8d65[_0x50ac15(0x126)]('code')));const _0x124fd8=_0x1f397e['operations']??{},_0x43acb2=[];for(const [_0x2a7bf2,_0x14052a]of Object['entries'](_0x124fd8)){const _0x50d199=normalizeOperationEntry(_0x2a7bf2,_0x14052a);if(_0x50d199)_0x43acb2[_0x50ac15(0x122)](_0x50d199);}const _0x17e977=_0x1f397e[_0x50ac15(0x101)]??{},_0x4464db=_0x1f397e[_0x50ac15(0x124)]??{},_0x43bd24=_0x17e977[_0x50ac15(0x119)]!=null?{'id':_0x17e977[_0x50ac15(0x119)],'name':_0x17e977[_0x50ac15(0x127)]??null}:undefined;let _0x2ddf3f;return typeof _0x1f397e[_0x50ac15(0x142)]===_0x50ac15(0x14b)&&(_0x2ddf3f=parseJsonMaybe(_0x1f397e[_0x50ac15(0x142)])),{'ok':!![],'data':{'id':_0x1f397e[_0x50ac15(0x130)]??_0x1f397e['id'],'name':_0x1f397e[_0x50ac15(0x123)],'code':_0x1f397e[_0x50ac15(0x106)]||_0x1f397e[_0x50ac15(0x12a)],'doVersion':_0x1f397e[_0x50ac15(0x109)],'description':_0x1f397e[_0x50ac15(0x133)]||_0x4464db[_0x50ac15(0x113)]||undefined,'source':_0x1f397e['source']||_0x4464db[_0x50ac15(0x118)],'table':_0x17e977[_0x50ac15(0x140)]||_0x4464db['tableName'],'datasetKey':_0x17e977[_0x50ac15(0x143)],'pk':_0x17e977[_0x50ac15(0x146)],'db':_0x43bd24,'dbtable':summarizeDbtable(_0x17e977),'fields':_0x36b032,'operations':_0x43acb2,'indexes':Array['isArray'](_0x4464db[_0x50ac15(0x139)])?_0x4464db['indexes']:[],'relations':_0x1f397e[_0x50ac15(0x12e)]??null,'relatedPages':normalizeRelatedPages(_0x1f397e[_0x50ac15(0x141)]),...Array[_0x50ac15(0x132)](_0x1f397e[_0x50ac15(0x145)])?{'columnCodeListWithDeleted':_0x1f397e['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x50ac15(0x132)](_0x1f397e[_0x50ac15(0x10e)])?_0x1f397e[_0x50ac15(0x10e)]:[],'validateRules':Array[_0x50ac15(0x132)](_0x1f397e[_0x50ac15(0x116)])?_0x1f397e[_0x50ac15(0x116)]:[],..._0x2ddf3f!==undefined?{'extend':_0x2ddf3f}:{},'stats':{'fieldCount':_0x36b032[_0x50ac15(0x134)],'operationCount':_0x43acb2[_0x50ac15(0x134)]}}};}};function a21_0x5d87(_0x3a0ec2,_0x43f718){_0x3a0ec2=_0x3a0ec2-0x101;const _0x4ec96a=a21_0x4ec9();let _0x5d87a0=_0x4ec96a[_0x3a0ec2];return _0x5d87a0;}function a21_0x4ec9(){const _0x18e92b=['logicField','options','validateRules','26597502qarCEF','sourceType','dbId','allFieldNames','createTimeField','path','10ZbBULi','displayName','2035383CXiDtR','dblinkInfoDTO','find','push','name','dataset','afterScriptId','str','dbName','doType','labelField','code','4252380IGgmVj','dataType','read','relations','fields','modelId','modifierIdField','isArray','description','length','requestBody','modifierNameField','title','beforeScriptId','indexes','responseBody','updateTimeField','allFields','643656hRhNUD','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','filter','tableName','relatedPageInfoList','extend','datasetKey','host','columnCodeListWithDeleted','pkField','method','dbType','appCode','creatorNameField','string','split','type','creatorIdField','trim','dbtableConfig','65fgHcbB','236636hkrlDz','24IQFYwS','responseFields','modelCode','3252420hUOnRv','properties','doVersion','object','required','755842rHoblK','map','formatRules','parse','requestFields','deleted','detail','tableComment'];a21_0x4ec9=function(){return _0x18e92b;};return a21_0x4ec9();}
1
+ const a21_0x47c5ee=a21_0x4d53;(function(_0x5e68e6,_0x442ffd){const _0xe78b58=a21_0x4d53,_0x151abe=_0x5e68e6();while(!![]){try{const _0x237b7c=-parseInt(_0xe78b58(0x1c5))/0x1+-parseInt(_0xe78b58(0x1c0))/0x2+-parseInt(_0xe78b58(0x1df))/0x3+parseInt(_0xe78b58(0x1e8))/0x4+-parseInt(_0xe78b58(0x1bc))/0x5*(-parseInt(_0xe78b58(0x1c6))/0x6)+parseInt(_0xe78b58(0x1e6))/0x7*(-parseInt(_0xe78b58(0x19f))/0x8)+parseInt(_0xe78b58(0x1c3))/0x9*(parseInt(_0xe78b58(0x1a7))/0xa);if(_0x237b7c===_0x442ffd)break;else _0x151abe['push'](_0x151abe['shift']());}catch(_0x2e6e96){_0x151abe['push'](_0x151abe['shift']());}}}(a21_0x3b5f,0x6b2e8));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x43ef86){const _0x42ce3b=a21_0x4d53;if(_0x43ef86[_0x42ce3b(0x1c1)])return null;const _0x43d016=Boolean(_0x43ef86[_0x42ce3b(0x1c8)]!==undefined||_0x43ef86[_0x42ce3b(0x1a9)]!==undefined);let _0x582cf4={};if(!_0x43d016&&typeof _0x43ef86[_0x42ce3b(0x1a1)]==='string')try{_0x582cf4=JSON[_0x42ce3b(0x1d1)](_0x43ef86['extend']);}catch{}const _0x94d78=_0x43d016?_0x43ef86[_0x42ce3b(0x1a2)]:_0x43ef86[_0x42ce3b(0x1dc)],_0x1b01f3=_0x43d016?_0x43ef86[_0x42ce3b(0x1c8)]:_0x43ef86[_0x42ce3b(0x1a2)],_0x159c01=_0x43d016?_0x43ef86[_0x42ce3b(0x1a9)]:_0x43ef86[_0x42ce3b(0x1be)]||_0x43ef86[_0x42ce3b(0x1b4)],_0xccb50f=_0x43d016?_0x43ef86[_0x42ce3b(0x1e7)]===!![]:_0x582cf4[_0x42ce3b(0x1e7)]===!![],_0x4ac920=_0x43d016?_0x43ef86[_0x42ce3b(0x1ce)]===!![]:_0x582cf4[_0x42ce3b(0x1ce)]===!![],_0x5aac7b=_0x43d016?_0x43ef86[_0x42ce3b(0x1e5)]??null:_0x582cf4[_0x42ce3b(0x1e5)]??null,_0x311221={'name':_0x94d78,'displayName':_0x1b01f3||_0x94d78,'type':_0x159c01,'dbType':_0x43ef86[_0x42ce3b(0x1b3)],'pk':_0xccb50f,'required':_0x4ac920,'description':_0x43ef86[_0x42ce3b(0x1c2)]||undefined};return Array['isArray'](_0x5aac7b)&&_0x5aac7b[_0x42ce3b(0x1ae)]>0x0&&(_0x311221[_0x42ce3b(0x1e5)]=_0x5aac7b),_0x311221;}function parseJsonMaybe(_0x5831b3){const _0x2b2a08=a21_0x4d53;if(typeof _0x5831b3!==_0x2b2a08(0x1aa))return _0x5831b3;try{return JSON[_0x2b2a08(0x1d1)](_0x5831b3);}catch{return _0x5831b3;}}function normalizeOperationEntry(_0x5b5c2e,_0x257b20){const _0x6cae41=a21_0x4d53;if(!_0x257b20||typeof _0x257b20!==_0x6cae41(0x1d4))return null;if(!_0x257b20[_0x6cae41(0x1d6)]||!_0x257b20[_0x6cae41(0x1dd)])return null;const _0x4c6ee3={'name':_0x5b5c2e,'method':_0x257b20[_0x6cae41(0x1d6)],'path':_0x257b20['path']};if(_0x257b20[_0x6cae41(0x1b2)])_0x4c6ee3[_0x6cae41(0x1b2)]=_0x257b20[_0x6cae41(0x1b2)];if(_0x257b20['requestBody']!=null)_0x4c6ee3['requestBody']=parseJsonMaybe(_0x257b20[_0x6cae41(0x1d0)]);if(_0x257b20[_0x6cae41(0x1d5)]!=null)_0x4c6ee3[_0x6cae41(0x1d5)]=parseJsonMaybe(_0x257b20[_0x6cae41(0x1d5)]);if(_0x257b20['beforeScriptId']!=null)_0x4c6ee3['beforeScriptId']=_0x257b20[_0x6cae41(0x1b6)];if(_0x257b20[_0x6cae41(0x1e9)]!=null)_0x4c6ee3[_0x6cae41(0x1e9)]=_0x257b20[_0x6cae41(0x1e9)];if(Array[_0x6cae41(0x1cf)](_0x257b20[_0x6cae41(0x1a3)]))_0x4c6ee3[_0x6cae41(0x1a3)]=_0x257b20['requestFields'];if(Array[_0x6cae41(0x1cf)](_0x257b20[_0x6cae41(0x1cd)]))_0x4c6ee3[_0x6cae41(0x1cd)]=_0x257b20[_0x6cae41(0x1cd)];return _0x4c6ee3;}function summarizeDbtable(_0x526457){const _0x1a0476=a21_0x4d53,_0x4da4b0={},_0x5ea909=[_0x1a0476(0x1af),'dbName','tableName',_0x1a0476(0x1c4),_0x1a0476(0x1e7),'allFields',_0x1a0476(0x1ad),_0x1a0476(0x1da),_0x1a0476(0x1b0),_0x1a0476(0x1e4),_0x1a0476(0x1a4),_0x1a0476(0x1bf),_0x1a0476(0x1c9),_0x1a0476(0x1cb),_0x1a0476(0x1b9)];for(const _0x3515a3 of _0x5ea909){if(_0x526457[_0x3515a3]!==undefined)_0x4da4b0[_0x3515a3]=_0x526457[_0x3515a3];}return typeof _0x4da4b0['allFields']==='string'&&_0x4da4b0['allFields'][_0x1a0476(0x1ae)]>0x0&&(_0x4da4b0['allFieldNames']=_0x4da4b0[_0x1a0476(0x1a5)]['split'](',')[_0x1a0476(0x1cc)](_0x5d81ca=>_0x5d81ca['trim']())[_0x1a0476(0x1e1)](Boolean)),_0x4da4b0;}function normalizeRelatedPages(_0x1954d5){const _0x451ff1=a21_0x4d53;if(!Array[_0x451ff1(0x1cf)](_0x1954d5))return[];return _0x1954d5['filter'](_0x4ff093=>_0x4ff093&&typeof _0x4ff093===_0x451ff1(0x1d4))[_0x451ff1(0x1cc)](_0x16f808=>({'id':_0x16f808['id'],'type':_0x16f808[_0x451ff1(0x1be)],'code':_0x16f808[_0x451ff1(0x1dc)],'title':_0x16f808[_0x451ff1(0x1ab)],'deleted':_0x16f808[_0x451ff1(0x1c1)]===!![]}));}function normalizeFallbackFieldName(_0x2105d7,_0x575af0){const _0x1c41d9=a21_0x4d53,_0x518ce8=_0x2105d7[_0x1c41d9(0x1d9)]();if(!_0x518ce8)return null;return{'name':_0x518ce8,'displayName':_0x518ce8,'type':undefined,'dbType':undefined,'pk':_0x518ce8===_0x575af0,'required':![],'description':undefined};}async function loadListFieldFallback(_0x27d32f,_0x19e46f){const _0x10415e=a21_0x4d53;if(!_0x27d32f||!_0x19e46f)return[];try{const _0x3ec54b=await listDatasets(_0x27d32f,{'code':_0x19e46f}),_0x8c7e21=_0x3ec54b[_0x10415e(0x1d2)](_0x1e040f=>_0x1e040f[_0x10415e(0x1dc)]===_0x19e46f)??_0x3ec54b[0x0],_0x126e3f=_0x8c7e21?.['dbtableConfig']??{},_0x501f60=typeof _0x126e3f[_0x10415e(0x1a5)]===_0x10415e(0x1aa)?_0x126e3f['allFields'][_0x10415e(0x1de)](','):[];return _0x501f60['map'](_0x4c91b6=>normalizeFallbackFieldName(_0x4c91b6,_0x126e3f[_0x10415e(0x1e7)]))[_0x10415e(0x1e1)](_0x3632fb=>_0x3632fb!==null);}catch{return[];}}function a21_0x4d53(_0x4c0197,_0x4923df){_0x4c0197=_0x4c0197-0x19d;const _0x3b5fdc=a21_0x3b5f();let _0x4d536b=_0x3b5fdc[_0x4c0197];return _0x4d536b;}export const datasetDetail={'service':a21_0x47c5ee(0x1a0),'command':a21_0x47c5ee(0x1bb),'description':a21_0x47c5ee(0x1ca),'risk':a21_0x47c5ee(0x1b8),'flags':[CODE_FLAG],async 'execute'(_0x561e38){const _0x1f015f=a21_0x47c5ee,_0x1e7b8a=await getDatasetDetail(_0x561e38[_0x1f015f(0x1b7)]('code')),_0xe10292=Array['isArray'](_0x1e7b8a[_0x1f015f(0x1e3)])?_0x1e7b8a[_0x1f015f(0x1e3)]:Array[_0x1f015f(0x1cf)](_0x1e7b8a[_0x1f015f(0x1a8)])?_0x1e7b8a[_0x1f015f(0x1a8)]:[];let _0x1303a8=_0xe10292['map'](_0xd9c8db=>normalizeField(_0xd9c8db))[_0x1f015f(0x1e1)](_0x3cc700=>_0x3cc700!==null);_0x1303a8[_0x1f015f(0x1ae)]===0x0&&(_0x1303a8=await loadListFieldFallback(_0x561e38[_0x1f015f(0x1d7)],_0x561e38[_0x1f015f(0x1b7)](_0x1f015f(0x1dc))));const _0x35eff2=_0x1e7b8a[_0x1f015f(0x1b5)]??{},_0x4d67bf=[];for(const [_0x45762a,_0x2200a8]of Object[_0x1f015f(0x1b1)](_0x35eff2)){const _0x21cca0=normalizeOperationEntry(_0x45762a,_0x2200a8);if(_0x21cca0)_0x4d67bf[_0x1f015f(0x1a6)](_0x21cca0);}const _0x4e8f42=_0x1e7b8a['dbtableConfig']??{},_0x4de845=_0x1e7b8a[_0x1f015f(0x1a0)]??{},_0x31d7b1=_0x4e8f42[_0x1f015f(0x1af)]!=null?{'id':_0x4e8f42[_0x1f015f(0x1af)],'name':_0x4e8f42[_0x1f015f(0x1ac)]??null}:undefined;let _0x469fed;return typeof _0x1e7b8a[_0x1f015f(0x1a1)]==='string'&&(_0x469fed=parseJsonMaybe(_0x1e7b8a[_0x1f015f(0x1a1)])),{'ok':!![],'data':{'id':_0x1e7b8a[_0x1f015f(0x19e)]??_0x1e7b8a['id'],'name':_0x1e7b8a[_0x1f015f(0x1a2)],'code':_0x1e7b8a[_0x1f015f(0x1db)]||_0x1e7b8a[_0x1f015f(0x1dc)],'doVersion':_0x1e7b8a[_0x1f015f(0x19d)],'description':_0x1e7b8a[_0x1f015f(0x1c2)]||_0x4de845['tableComment']||undefined,'source':_0x1e7b8a[_0x1f015f(0x1d8)]||_0x4de845['sourceType'],'table':_0x4e8f42['tableName']||_0x4de845[_0x1f015f(0x1e2)],'datasetKey':_0x4e8f42[_0x1f015f(0x1c4)],'pk':_0x4e8f42[_0x1f015f(0x1e7)],'db':_0x31d7b1,'dbtable':summarizeDbtable(_0x4e8f42),'fields':_0x1303a8,'operations':_0x4d67bf,'indexes':Array[_0x1f015f(0x1cf)](_0x4de845[_0x1f015f(0x1bd)])?_0x4de845[_0x1f015f(0x1bd)]:[],'relations':_0x1e7b8a['relations']??null,'relatedPages':normalizeRelatedPages(_0x1e7b8a[_0x1f015f(0x1d3)]),...Array[_0x1f015f(0x1cf)](_0x1e7b8a[_0x1f015f(0x1ba)])?{'columnCodeListWithDeleted':_0x1e7b8a[_0x1f015f(0x1ba)]}:{},'formatRules':Array[_0x1f015f(0x1cf)](_0x1e7b8a['formatRules'])?_0x1e7b8a[_0x1f015f(0x1e0)]:[],'validateRules':Array[_0x1f015f(0x1cf)](_0x1e7b8a['validateRules'])?_0x1e7b8a[_0x1f015f(0x1c7)]:[],..._0x469fed!==undefined?{'extend':_0x469fed}:{},'stats':{'fieldCount':_0x1303a8['length'],'operationCount':_0x4d67bf['length']}}};}};function a21_0x3b5f(){const _0x4e42c7=['map','responseFields','required','isArray','requestBody','parse','find','relatedPageInfoList','object','responseBody','method','appCode','source','trim','createTimeField','modelCode','code','path','split','2294337EaYoZd','formatRules','filter','tableName','fields','creatorIdField','options','7cAIQlg','pkField','3481460MXbebT','afterScriptId','doVersion','modelId','5318744UuwSPn','dataset','extend','name','requestFields','creatorNameField','allFields','push','3516990hJWDLg','properties','doType','string','title','dbName','logicField','length','dbId','updateTimeField','entries','host','dbType','dataType','operations','beforeScriptId','str','read','dblinkInfoDTO','columnCodeListWithDeleted','detail','32815lFEzhP','indexes','type','modifierIdField','1685460rXYVhR','deleted','description','45UHDCME','datasetKey','258768UezCRG','312VMPvrG','validateRules','displayName','modifierNameField','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','labelField'];a21_0x3b5f=function(){return _0x4e42c7;};return a21_0x3b5f();}
@@ -1 +1 @@
1
- function a22_0x5529(){const _0x379a0e=['3687966ijeylN','2067693cWgEaG','1180496ZjuNHH','10AmmPOG','244YPSZKJ','19078578kBXPCq','77855pqzbDT','8779688yQNfqq','1170582GYgOMH','7ntOQiw'];a22_0x5529=function(){return _0x379a0e;};return a22_0x5529();}(function(_0x1ca222,_0x463fe0){const _0x3ecddb=a22_0x35af,_0x35a1da=_0x1ca222();while(!![]){try{const _0x174b11=parseInt(_0x3ecddb(0x158))/0x1+-parseInt(_0x3ecddb(0x154))/0x2+-parseInt(_0x3ecddb(0x157))/0x3+-parseInt(_0x3ecddb(0x150))/0x4*(parseInt(_0x3ecddb(0x152))/0x5)+parseInt(_0x3ecddb(0x156))/0x6*(parseInt(_0x3ecddb(0x155))/0x7)+-parseInt(_0x3ecddb(0x153))/0x8+parseInt(_0x3ecddb(0x151))/0x9*(parseInt(_0x3ecddb(0x14f))/0xa);if(_0x174b11===_0x463fe0)break;else _0x35a1da['push'](_0x35a1da['shift']());}catch(_0x36962a){_0x35a1da['push'](_0x35a1da['shift']());}}}(a22_0x5529,0x90d21));function a22_0x35af(_0x5a7cc7,_0x436b21){_0x5a7cc7=_0x5a7cc7-0x14f;const _0x552997=a22_0x5529();let _0x35afdf=_0x552997[_0x5a7cc7];return _0x35afdf;}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
+ function a22_0x1c51(_0x2a747e,_0x5be023){_0x2a747e=_0x2a747e-0x15e;const _0x4d85b3=a22_0x4d85();let _0x1c5143=_0x4d85b3[_0x2a747e];return _0x1c5143;}(function(_0x11feff,_0x3a210c){const _0x3d4ea3=a22_0x1c51,_0xcfca67=_0x11feff();while(!![]){try{const _0x25a07f=-parseInt(_0x3d4ea3(0x160))/0x1*(-parseInt(_0x3d4ea3(0x15f))/0x2)+parseInt(_0x3d4ea3(0x166))/0x3+parseInt(_0x3d4ea3(0x164))/0x4*(-parseInt(_0x3d4ea3(0x15e))/0x5)+parseInt(_0x3d4ea3(0x163))/0x6+parseInt(_0x3d4ea3(0x165))/0x7*(-parseInt(_0x3d4ea3(0x167))/0x8)+parseInt(_0x3d4ea3(0x162))/0x9+parseInt(_0x3d4ea3(0x161))/0xa;if(_0x25a07f===_0x3a210c)break;else _0xcfca67['push'](_0xcfca67['shift']());}catch(_0x3f22d2){_0xcfca67['push'](_0xcfca67['shift']());}}}(a22_0x4d85,0x4a118));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a22_0x4d85(){const _0x1ffb14=['27933QrEwdl','1382070tOfGEr','3096666YZkQtT','311022dcFEwz','144sMlgNL','28ncTtnw','1309467dcHyQo','897448KvwNlA','49745dExeAK','10MtkahL'];a22_0x4d85=function(){return _0x1ffb14;};return a22_0x4d85();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a23_0x2b50cb=a23_0x3fbc;(function(_0x5249df,_0x107b6a){const _0x1f2b85=a23_0x3fbc,_0x366bb9=_0x5249df();while(!![]){try{const _0x39c2a1=parseInt(_0x1f2b85(0x157))/0x1*(parseInt(_0x1f2b85(0x15a))/0x2)+parseInt(_0x1f2b85(0x16c))/0x3*(parseInt(_0x1f2b85(0x16f))/0x4)+parseInt(_0x1f2b85(0x156))/0x5*(parseInt(_0x1f2b85(0x15d))/0x6)+parseInt(_0x1f2b85(0x150))/0x7+-parseInt(_0x1f2b85(0x168))/0x8*(-parseInt(_0x1f2b85(0x165))/0x9)+-parseInt(_0x1f2b85(0x16b))/0xa+parseInt(_0x1f2b85(0x158))/0xb*(-parseInt(_0x1f2b85(0x151))/0xc);if(_0x39c2a1===_0x107b6a)break;else _0x366bb9['push'](_0x366bb9['shift']());}catch(_0x5e4f89){_0x366bb9['push'](_0x366bb9['shift']());}}}(a23_0x4c7f,0x87acc));function a23_0x3fbc(_0x1a8ccf,_0x889b57){_0x1a8ccf=_0x1a8ccf-0x150;const _0x4c7f61=a23_0x4c7f();let _0x3fbce4=_0x4c7f61[_0x1a8ccf];return _0x3fbce4;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a23_0x2b50cb(0x164),'command':a23_0x2b50cb(0x160),'description':a23_0x2b50cb(0x152),'risk':a23_0x2b50cb(0x166),'flags':[{'name':a23_0x2b50cb(0x154),'type':a23_0x2b50cb(0x161),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a23_0x2b50cb(0x15e)}],async 'execute'(_0x4a9a3c){const _0x33bc74=a23_0x2b50cb,_0x559e3d=_0x4a9a3c[_0x33bc74(0x16e)](_0x33bc74(0x154)),_0x35a513=_0x4a9a3c[_0x33bc74(0x16e)](_0x33bc74(0x15b)),_0x1f20de=await listDatasets(_0x4a9a3c['appCode'],{..._0x559e3d&&{'name':_0x559e3d},..._0x35a513&&{'code':_0x35a513}});return{'ok':!![],'data':{'total':_0x1f20de[_0x33bc74(0x153)],'datasets':_0x1f20de[_0x33bc74(0x16a)](_0x3d6f16=>{const _0x5d0e72=_0x33bc74,_0x522409=_0x3d6f16[_0x5d0e72(0x163)]??{};return{'id':_0x3d6f16['id'],'code':_0x3d6f16[_0x5d0e72(0x15b)],'name':_0x3d6f16['name'],'source':_0x3d6f16[_0x5d0e72(0x167)],'description':_0x3d6f16[_0x5d0e72(0x159)],'table':_0x522409[_0x5d0e72(0x155)],'datasetKey':_0x522409[_0x5d0e72(0x16d)],'pk':_0x522409[_0x5d0e72(0x15c)],'fields':_0x522409[_0x5d0e72(0x162)]?_0x522409[_0x5d0e72(0x162)][_0x5d0e72(0x15f)](',')['map'](_0x24ad98=>_0x24ad98[_0x5d0e72(0x169)]()):[]};})}};}};function a23_0x4c7f(){const _0x2602a9=['tableName','3345azMzFy','120047KfVdvN','7590671rQrhqK','description','2iMOrYg','code','pkField','4842OXXfGX','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','split','list','string','allFields','dbtableConfig','dataset','3177JIZkRu','read','source','12784xbOaZj','trim','map','8687200nhVUvx','178575Srrenc','datasetKey','str','52VMmjOO','816592yUqoSl','12oAzbhR','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','length','name'];a23_0x4c7f=function(){return _0x2602a9;};return a23_0x4c7f();}
1
+ const a23_0xabadd8=a23_0x5159;function a23_0x4184(){const _0x15a03d=['name','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','24uwCTsR','599697wOhxDi','trim','2QwcEoW','code','334658ohKrdb','10DmEZik','162210fNYlAP','pkField','description','read','map','1820790ZbAwBH','855892KwkkoE','datasetKey','source','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','6kVTnFr','tableName','dbtableConfig','str','8326846SUoEqv','list','appCode','2087268MZSuNF'];a23_0x4184=function(){return _0x15a03d;};return a23_0x4184();}(function(_0x516c4d,_0x336258){const _0x2813ad=a23_0x5159,_0x224600=_0x516c4d();while(!![]){try{const _0x5b71f4=-parseInt(_0x2813ad(0x149))/0x1*(parseInt(_0x2813ad(0x147))/0x2)+-parseInt(_0x2813ad(0x155))/0x3*(parseInt(_0x2813ad(0x151))/0x4)+-parseInt(_0x2813ad(0x14b))/0x5+parseInt(_0x2813ad(0x15c))/0x6+-parseInt(_0x2813ad(0x160))/0x7*(parseInt(_0x2813ad(0x15f))/0x8)+-parseInt(_0x2813ad(0x150))/0x9*(-parseInt(_0x2813ad(0x14a))/0xa)+parseInt(_0x2813ad(0x159))/0xb;if(_0x5b71f4===_0x336258)break;else _0x224600['push'](_0x224600['shift']());}catch(_0x404ba4){_0x224600['push'](_0x224600['shift']());}}}(a23_0x4184,0x3e48b));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a23_0x5159(_0x31491a,_0x42ea01){_0x31491a=_0x31491a-0x146;const _0x4184dc=a23_0x4184();let _0x515911=_0x4184dc[_0x31491a];return _0x515911;}export const datasetList={'service':'dataset','command':a23_0xabadd8(0x15a),'description':a23_0xabadd8(0x15e),'risk':a23_0xabadd8(0x14e),'flags':[{'name':'name','type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a23_0xabadd8(0x154)}],async 'execute'(_0x14238e){const _0x13aba1=a23_0xabadd8,_0x359d90=_0x14238e[_0x13aba1(0x158)](_0x13aba1(0x15d)),_0x2189e8=_0x14238e[_0x13aba1(0x158)](_0x13aba1(0x148)),_0x423d11=await listDatasets(_0x14238e[_0x13aba1(0x15b)],{..._0x359d90&&{'name':_0x359d90},..._0x2189e8&&{'code':_0x2189e8}});return{'ok':!![],'data':{'total':_0x423d11['length'],'datasets':_0x423d11[_0x13aba1(0x14f)](_0x27899c=>{const _0x4a9406=_0x13aba1,_0x4eb193=_0x27899c[_0x4a9406(0x157)]??{};return{'id':_0x27899c['id'],'code':_0x27899c[_0x4a9406(0x148)],'name':_0x27899c['name'],'source':_0x27899c[_0x4a9406(0x153)],'description':_0x27899c[_0x4a9406(0x14d)],'table':_0x4eb193[_0x4a9406(0x156)],'datasetKey':_0x4eb193[_0x4a9406(0x152)],'pk':_0x4eb193[_0x4a9406(0x14c)],'fields':_0x4eb193['allFields']?_0x4eb193['allFields']['split'](',')['map'](_0x29dc9d=>_0x29dc9d[_0x4a9406(0x146)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a24_0x1a3d4e=a24_0x532a;(function(_0x23f686,_0x520426){const _0x4f2c88=a24_0x532a,_0x35b80f=_0x23f686();while(!![]){try{const _0xce6b65=parseInt(_0x4f2c88(0xde))/0x1+-parseInt(_0x4f2c88(0xe6))/0x2+parseInt(_0x4f2c88(0xe3))/0x3*(-parseInt(_0x4f2c88(0xe8))/0x4)+parseInt(_0x4f2c88(0xe2))/0x5+parseInt(_0x4f2c88(0xea))/0x6+parseInt(_0x4f2c88(0xed))/0x7*(-parseInt(_0x4f2c88(0xec))/0x8)+parseInt(_0x4f2c88(0xe1))/0x9;if(_0xce6b65===_0x520426)break;else _0x35b80f['push'](_0x35b80f['shift']());}catch(_0x1a480f){_0x35b80f['push'](_0x35b80f['shift']());}}}(a24_0x1cd4,0x5705f));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x1a3d4e(0xee);function a24_0x1cd4(){const _0x47a89a=['505660WLEpWN','176892PVbGqs','trim','sdk-doc','1305156yPbiWL','dataset','8uUsOcU','string','2221770shpUpg','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','926056LjHGFI','14zSgRFy','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','code','62523YJSlAZ','str','appCode','7420653NBdJDe'];a24_0x1cd4=function(){return _0x47a89a;};return a24_0x1cd4();}export function formatDatasetSdkMarkdown(_0x5e51b4){const _0x275d16=a24_0x1a3d4e,_0x4e6f60=typeof _0x5e51b4===_0x275d16(0xe9)?_0x5e51b4[_0x275d16(0xe4)]():'';return _0x4e6f60||DEFAULT_MARKDOWN;}function a24_0x532a(_0x1b3ffc,_0x46d665){_0x1b3ffc=_0x1b3ffc-0xdd;const _0x1cd4db=a24_0x1cd4();let _0x532a7d=_0x1cd4db[_0x1b3ffc];return _0x532a7d;}export const datasetSdkDoc={'service':a24_0x1a3d4e(0xe7),'command':a24_0x1a3d4e(0xe5),'description':a24_0x1a3d4e(0xeb),'risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x897975){const _0x549180=a24_0x1a3d4e,_0x292289=_0x897975[_0x549180(0xdf)](_0x549180(0xdd)),_0x584b7c=await getDatasetSdkUsageDoc(_0x292289,_0x897975[_0x549180(0xe0)]);return{'ok':!![],'data':{'code':_0x292289,'appCode':_0x897975[_0x549180(0xe0)],'markdown':formatDatasetSdkMarkdown(_0x584b7c)}};}};
1
+ const a24_0x16e9ee=a24_0x504f;(function(_0x454c5a,_0x2cb30c){const _0x22018b=a24_0x504f,_0x909dee=_0x454c5a();while(!![]){try{const _0x2c14c3=-parseInt(_0x22018b(0xa3))/0x1*(parseInt(_0x22018b(0x94))/0x2)+-parseInt(_0x22018b(0x9d))/0x3*(-parseInt(_0x22018b(0x99))/0x4)+parseInt(_0x22018b(0x9b))/0x5+parseInt(_0x22018b(0x9e))/0x6*(-parseInt(_0x22018b(0xa2))/0x7)+-parseInt(_0x22018b(0xa4))/0x8*(-parseInt(_0x22018b(0x92))/0x9)+-parseInt(_0x22018b(0x9f))/0xa+parseInt(_0x22018b(0x95))/0xb*(parseInt(_0x22018b(0xa6))/0xc);if(_0x2c14c3===_0x2cb30c)break;else _0x909dee['push'](_0x909dee['shift']());}catch(_0x143346){_0x909dee['push'](_0x909dee['shift']());}}}(a24_0x1dd8,0x73e45));function a24_0x1dd8(){const _0x4b2943=['appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','244230BRRrFR','178OHeusE','8crWvEs','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','552QCKQaJ','4950054ZGGMWq','dataset','8248PlRCAj','89133SlRPyg','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','trim','read','2085748CnNNKu','str','2593045FtMSlb','sdk-doc','3hXkcMl','42vvftjc','5097950ZUFvpE'];a24_0x1dd8=function(){return _0x4b2943;};return a24_0x1dd8();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a24_0x504f(_0x59e090,_0x25df7e){_0x59e090=_0x59e090-0x92;const _0x1dd870=a24_0x1dd8();let _0x504f83=_0x1dd870[_0x59e090];return _0x504f83;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x16e9ee(0xa1);export function formatDatasetSdkMarkdown(_0x53cad1){const _0x240bf2=a24_0x16e9ee,_0x4036e4=typeof _0x53cad1==='string'?_0x53cad1[_0x240bf2(0x97)]():'';return _0x4036e4||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x16e9ee(0x93),'command':a24_0x16e9ee(0x9c),'description':a24_0x16e9ee(0xa5),'risk':a24_0x16e9ee(0x98),'flags':[{...CODE_FLAG,'description':a24_0x16e9ee(0x96)}],async 'execute'(_0x10350c){const _0x179885=a24_0x16e9ee,_0x44c997=_0x10350c[_0x179885(0x9a)]('code'),_0x2528da=await getDatasetSdkUsageDoc(_0x44c997,_0x10350c[_0x179885(0xa0)]);return{'ok':!![],'data':{'code':_0x44c997,'appCode':_0x10350c[_0x179885(0xa0)],'markdown':formatDatasetSdkMarkdown(_0x2528da)}};}};
@@ -1 +1 @@
1
- const a25_0x5e0663=a25_0x52ce;function a25_0x52ce(_0x5501f8,_0x20c936){_0x5501f8=_0x5501f8-0x1cb;const _0x2e2e16=a25_0x2e2e();let _0x52cef7=_0x2e2e16[_0x5501f8];return _0x52cef7;}(function(_0x441e7f,_0x22f384){const _0x81a06b=a25_0x52ce,_0x19446c=_0x441e7f();while(!![]){try{const _0x9e546=-parseInt(_0x81a06b(0x204))/0x1*(parseInt(_0x81a06b(0x1cc))/0x2)+parseInt(_0x81a06b(0x1de))/0x3*(parseInt(_0x81a06b(0x1e8))/0x4)+-parseInt(_0x81a06b(0x216))/0x5+parseInt(_0x81a06b(0x215))/0x6*(parseInt(_0x81a06b(0x209))/0x7)+parseInt(_0x81a06b(0x20d))/0x8+parseInt(_0x81a06b(0x1eb))/0x9+-parseInt(_0x81a06b(0x1d8))/0xa*(parseInt(_0x81a06b(0x220))/0xb);if(_0x9e546===_0x22f384)break;else _0x19446c['push'](_0x19446c['shift']());}catch(_0x19a742){_0x19446c['push'](_0x19446c['shift']());}}}(a25_0x2e2e,0xd9e65));import a25_0x14e59f 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';function a25_0x2e2e(){const _0x465865=['(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','211wIQnDg','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','(not\x20found)','\x20doctor','1137423anaKMT','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','status','8487640KMQpYi','platform','\x20\x20Config\x20JSON','padEnd','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','(removed\x20—\x20cookie\x20auth\x20disabled)','source','12hmauVy','4269825hdrDzl','\x20\x20runtimeDomain:\x20\x20\x20','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(no\x20file)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','name','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','2775751mVstGL','services','684qTKRkY','serviceCode','bold','✓\x20Valid\x20JSON','\x20\x20Config\x20Files','doctor','✗\x20Invalid\x20JSON','empty','appCode','✗\x20Invalid','pageSize','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','70sriutp','log','version','\x20\x20Session\x20check:\x20\x20\x20','length','gray','1104GEuPkc','\x20\x20Service\x20Tree','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','green','currentApp','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','commandCount','verbose','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','10328tbBOlD','(missing)','locale','11240298zDdpkp','Project','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','arch','message','\x20\x20auth\x20(effective):\x20','\x20Imported\x20from:\x20','format','✓\x20Loaded','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20─','⚠\x20Empty','path','missing','Global','(none)','ClientAk','check','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'];a25_0x2e2e=function(){return _0x465865;};return a25_0x2e2e();}async function execute(_0x3db84c){const _0x350e54=a25_0x52ce,_0x15fbfa=getCliVersion(),_0x3f268d=buildConfigFromFlags({});await initGlobalEnvironment(_0x3f268d),console[_0x350e54(0x1d9)](),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1ce)](CLI_BIN_NAME+_0x350e54(0x208))),console['log'](a25_0x14e59f[_0x350e54(0x1dd)]('─'[_0x350e54(0x218)](0x32))),console['log'](_0x350e54(0x1ee)+_0x15fbfa),console[_0x350e54(0x1d9)](_0x350e54(0x1f7)+process[_0x350e54(0x1da)]),console[_0x350e54(0x1d9)](_0x350e54(0x1e0)+process[_0x350e54(0x20e)]+'\x20'+process[_0x350e54(0x1ef)]),console[_0x350e54(0x1d9)](),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1ce)](_0x350e54(0x1d0))),console['log'](a25_0x14e59f['gray']('\x20\x20─'[_0x350e54(0x218)](0x1e)));const _0x489c88=getGlobalConfigPath(),_0x1d050f=getProjectConfigPath();console['log'](_0x350e54(0x1f5)+(_0x489c88||a25_0x14e59f['gray']('(not\x20found)'))),console[_0x350e54(0x1d9)](_0x350e54(0x203)+(_0x1d050f||a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x207)))),console[_0x350e54(0x1d9)](),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1ce)](_0x350e54(0x20f))),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1f9)[_0x350e54(0x218)](0x1e)));const _0x39b92a=(_0x42981a,_0x263a93)=>{const _0x4d47c6=_0x350e54;if(!_0x263a93){console[_0x4d47c6(0x1d9)]('\x20\x20'+_0x42981a[_0x4d47c6(0x210)](0x11)+'\x20'+a25_0x14e59f[_0x4d47c6(0x1dd)](_0x4d47c6(0x21b)));return;}const _0x533d94=inspectCliConfigJsonFile(_0x263a93);if(_0x533d94[_0x4d47c6(0x20c)]==='ok')console[_0x4d47c6(0x1d9)]('\x20\x20'+_0x42981a[_0x4d47c6(0x210)](0x11)+'\x20'+a25_0x14e59f['green'](_0x4d47c6(0x1cf)));else{if(_0x533d94[_0x4d47c6(0x20c)]===_0x4d47c6(0x1d3))console[_0x4d47c6(0x1d9)]('\x20\x20'+_0x42981a[_0x4d47c6(0x210)](0x11)+'\x20'+a25_0x14e59f[_0x4d47c6(0x20b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x533d94[_0x4d47c6(0x20c)]===_0x4d47c6(0x1fc)?console[_0x4d47c6(0x1d9)]('\x20\x20'+_0x42981a[_0x4d47c6(0x210)](0x11)+'\x20'+a25_0x14e59f[_0x4d47c6(0x1dd)](_0x4d47c6(0x1e9))):(console[_0x4d47c6(0x1d9)]('\x20\x20'+_0x42981a['padEnd'](0x11)+'\x20'+a25_0x14e59f[_0x4d47c6(0x1f8)](_0x4d47c6(0x1d2))),console[_0x4d47c6(0x1d9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a25_0x14e59f[_0x4d47c6(0x1f8)](_0x533d94['message'])));}};_0x39b92a(_0x350e54(0x1fd),_0x489c88),_0x39b92a(_0x350e54(0x1ec),_0x1d050f),console[_0x350e54(0x1d9)](),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1ce)]('\x20\x20Merged\x20Config')),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1f9)[_0x350e54(0x218)](0x1e))),console[_0x350e54(0x1d9)](_0x350e54(0x211)+(_0x3f268d[_0x350e54(0x1d4)]||a25_0x14e59f[_0x350e54(0x1f8)](_0x350e54(0x202)))),console[_0x350e54(0x1d9)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3f268d['env']);const _0x1ce535=isLegacyCompatConfigKey('locale')?a25_0x14e59f[_0x350e54(0x1dd)](_0x3f268d[_0x350e54(0x1ea)]+'\x20(legacy/compat\x20only)'):_0x3f268d['locale'];console['log'](_0x350e54(0x20a)+_0x1ce535),console[_0x350e54(0x1d9)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3f268d[_0x350e54(0x21a)]||a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1fe)))),console[_0x350e54(0x1d9)](_0x350e54(0x1ed)+(_0x3f268d[_0x350e54(0x1e2)]||a25_0x14e59f[_0x350e54(0x1dd)]('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3f268d[_0x350e54(0x1f3)]||a25_0x14e59f[_0x350e54(0x1dd)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x350e54(0x1f3)]+')'))),console[_0x350e54(0x1d9)](_0x350e54(0x219)+(_0x3f268d[_0x350e54(0x1d6)]??a25_0x14e59f[_0x350e54(0x1dd)]('(default)'))),console[_0x350e54(0x1d9)](_0x350e54(0x1e7)+_0x3f268d['riskLevel']),console[_0x350e54(0x1d9)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3f268d[_0x350e54(0x1e6)]),console['log'](_0x350e54(0x1f1)+AUTH_MODE[_0x350e54(0x1ff)]),console[_0x350e54(0x1d9)](_0x350e54(0x201)+(_0x3f268d[_0x350e54(0x1e4)]?a25_0x14e59f[_0x350e54(0x1e1)](_0x350e54(0x206)+_0x3f268d['accessKey'][_0x350e54(0x1dc)]+')'):a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1fe)))),console[_0x350e54(0x1d9)](),console['log'](a25_0x14e59f[_0x350e54(0x1ce)]('\x20\x20API\x20Endpoints')),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1f9)[_0x350e54(0x218)](0x1e))),console[_0x350e54(0x1d9)](_0x350e54(0x205)+getApiDomain()),console['log'](_0x350e54(0x21d)+getUserDomain()),console[_0x350e54(0x1d9)](_0x350e54(0x217)+getRuntimeDomain()),console[_0x350e54(0x1d9)](),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1ce)](_0x350e54(0x1df))),console['log'](a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1f9)[_0x350e54(0x218)](0x1e)));const _0x54c735=inspectServiceRegistry();console[_0x350e54(0x1d9)](_0x350e54(0x21f)+_0x54c735['registryPath']),console[_0x350e54(0x1d9)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x54c735)),console[_0x350e54(0x1d9)](_0x350e54(0x1d7)+_0x54c735['serviceCount']),console[_0x350e54(0x1d9)](_0x350e54(0x1e3)+_0x54c735[_0x350e54(0x1e5)]);for(const _0x138d99 of _0x54c735[_0x350e54(0x1cb)]){console['log']('\x20\x20'+(_0x138d99[_0x350e54(0x1cd)]+':')[_0x350e54(0x210)](0x11)+'\x20'+(_0x138d99[_0x350e54(0x21e)]||a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x212)))+'\x20('+_0x138d99[_0x350e54(0x1e5)]+'\x20commands)'),console['log']('\x20\x20'+''['padEnd'](0x11)+_0x350e54(0x1f2)+_0x138d99[_0x350e54(0x214)][_0x350e54(0x1fb)]);}return console['log'](),console[_0x350e54(0x1d9)](a25_0x14e59f['bold']('\x20\x20Auth')),console[_0x350e54(0x1d9)](a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x1f9)['repeat'](0x1e))),console[_0x350e54(0x1d9)](_0x350e54(0x21c)+a25_0x14e59f['green'](AUTH_MODE[_0x350e54(0x1ff)]+'\x20(accessKey)')),console[_0x350e54(0x1d9)](_0x350e54(0x1db)+a25_0x14e59f[_0x350e54(0x1dd)](_0x350e54(0x213))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x371c96){const _0x564d7e=a25_0x52ce;if(_0x371c96[_0x564d7e(0x20c)]==='ok')return a25_0x14e59f[_0x564d7e(0x1e1)](_0x564d7e(0x1f4));if(_0x371c96[_0x564d7e(0x20c)]===_0x564d7e(0x1fc))return a25_0x14e59f[_0x564d7e(0x1dd)](_0x564d7e(0x207));if(_0x371c96['status']===_0x564d7e(0x1d3))return a25_0x14e59f[_0x564d7e(0x20b)](_0x564d7e(0x1fa));return a25_0x14e59f[_0x564d7e(0x1f8)](_0x564d7e(0x1d5)+(_0x371c96[_0x564d7e(0x1f0)]?':\x20'+_0x371c96[_0x564d7e(0x1f0)]:''));}export const doctorDefinition={'service':a25_0x5e0663(0x1d1),'command':a25_0x5e0663(0x200),'description':a25_0x5e0663(0x1f6),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a25_0x58086d=a25_0x20b6;function a25_0x20b6(_0x94bec6,_0x404dcf){_0x94bec6=_0x94bec6-0x77;const _0x550ccb=a25_0x550c();let _0x20b62f=_0x550ccb[_0x94bec6];return _0x20b62f;}(function(_0xd74120,_0x1a6dba){const _0xbcc19f=a25_0x20b6,_0x5e9dbb=_0xd74120();while(!![]){try{const _0x251dc8=parseInt(_0xbcc19f(0x98))/0x1*(-parseInt(_0xbcc19f(0xa6))/0x2)+parseInt(_0xbcc19f(0x82))/0x3+-parseInt(_0xbcc19f(0x97))/0x4*(parseInt(_0xbcc19f(0x9b))/0x5)+parseInt(_0xbcc19f(0x9e))/0x6+-parseInt(_0xbcc19f(0xa8))/0x7+-parseInt(_0xbcc19f(0xa5))/0x8+-parseInt(_0xbcc19f(0x9d))/0x9*(-parseInt(_0xbcc19f(0xa7))/0xa);if(_0x251dc8===_0x1a6dba)break;else _0x5e9dbb['push'](_0x5e9dbb['shift']());}catch(_0x165918){_0x5e9dbb['push'](_0x5e9dbb['shift']());}}}(a25_0x550c,0x842d7));import a25_0x16e9a6 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';function a25_0x550c(){const _0x5d0799=['version','serviceCode','\x20\x20runtimeDomain:\x20\x20\x20','green','\x20commands)','\x20(accessKey)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(default:\x20','message','riskLevel','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','services','(missing)','currentApp','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','yellow','format','1247283ZCJKRV','appCode','serviceCount','name','\x20Imported\x20from:\x20','arch','accessKey','status','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','Global','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','read','commandCount','env','\x20\x20Merged\x20Config','verbose','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20environment','⚠\x20Empty','locale','✗\x20Invalid\x20JSON','333016QuppUl','25658FopgOB','padEnd','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','50afDmzW','(removed\x20—\x20cookie\x20auth\x20disabled)','54OCROUQ','4526550mCvlNk','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20Auth','\x20\x20auth\x20(effective):\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','6095616fxYPFc','42vWJjMS','4095890CmlhDy','6671077stVHoL','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','missing','bold','(not\x20found)','defaultApp','Project','(none)','doctor','red','source','\x20\x20API\x20Endpoints','repeat','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','(set,\x20length=','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','gray','(unnamed)','\x20\x20Config\x20Files'];a25_0x550c=function(){return _0x5d0799;};return a25_0x550c();}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(_0x45dee8){const _0x14e1e7=a25_0x20b6,_0x2af26d=getCliVersion(),_0x2d4573=buildConfigFromFlags({});await initGlobalEnvironment(_0x2d4573),console['log'](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)](CLI_BIN_NAME+'\x20doctor')),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xbc)]('─'['repeat'](0x32))),console[_0x14e1e7(0x79)](_0x14e1e7(0xb7)+_0x2af26d),console[_0x14e1e7(0x79)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x14e1e7(0xbf)]),console[_0x14e1e7(0x79)](_0x14e1e7(0x7f)+process['platform']+'\x20'+process[_0x14e1e7(0x87)]),console[_0x14e1e7(0x79)](),console['log'](a25_0x16e9a6[_0x14e1e7(0xac)](_0x14e1e7(0xbe))),console['log'](a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xc7)[_0x14e1e7(0xb5)](0x1e)));const _0x81dbf3=getGlobalConfigPath(),_0x3968f1=getProjectConfigPath();console['log'](_0x14e1e7(0x78)+(_0x81dbf3||a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xad)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3968f1||a25_0x16e9a6['gray'](_0x14e1e7(0xad)))),console[_0x14e1e7(0x79)](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)]('\x20\x20Config\x20JSON')),console['log'](a25_0x16e9a6[_0x14e1e7(0xbc)]('\x20\x20─'[_0x14e1e7(0xb5)](0x1e)));const _0xe0c7f2=(_0x20ffc4,_0x3a16fc)=>{const _0x156abc=_0x14e1e7;if(!_0x3a16fc){console['log']('\x20\x20'+_0x20ffc4[_0x156abc(0x99)](0x11)+'\x20'+a25_0x16e9a6[_0x156abc(0xbc)](_0x156abc(0xa1)));return;}const _0x587166=inspectCliConfigJsonFile(_0x3a16fc);if(_0x587166['status']==='ok')console[_0x156abc(0x79)]('\x20\x20'+_0x20ffc4[_0x156abc(0x99)](0x11)+'\x20'+a25_0x16e9a6['green'](_0x156abc(0x92)));else{if(_0x587166['status']==='empty')console['log']('\x20\x20'+_0x20ffc4['padEnd'](0x11)+'\x20'+a25_0x16e9a6[_0x156abc(0x80)](_0x156abc(0xb6)));else _0x587166['status']===_0x156abc(0xab)?console[_0x156abc(0x79)]('\x20\x20'+_0x20ffc4[_0x156abc(0x99)](0x11)+'\x20'+a25_0x16e9a6[_0x156abc(0xbc)](_0x156abc(0x7b))):(console[_0x156abc(0x79)]('\x20\x20'+_0x20ffc4[_0x156abc(0x99)](0x11)+'\x20'+a25_0x16e9a6['red'](_0x156abc(0x96))),console[_0x156abc(0x79)]('\x20\x20'+''[_0x156abc(0x99)](0x11)+'\x20'+a25_0x16e9a6[_0x156abc(0xb2)](_0x587166['message'])));}};_0xe0c7f2(_0x14e1e7(0x8b),_0x81dbf3),_0xe0c7f2(_0x14e1e7(0xaf),_0x3968f1),console[_0x14e1e7(0x79)](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)](_0x14e1e7(0x90))),console[_0x14e1e7(0x79)](a25_0x16e9a6['gray'](_0x14e1e7(0xc7)[_0x14e1e7(0xb5)](0x1e))),console[_0x14e1e7(0x79)](_0x14e1e7(0x9f)+(_0x2d4573[_0x14e1e7(0x83)]||a25_0x16e9a6[_0x14e1e7(0xb2)]('(not\x20set)'))),console[_0x14e1e7(0x79)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2d4573[_0x14e1e7(0x8f)]);const _0x1ef265=isLegacyCompatConfigKey(_0x14e1e7(0x95))?a25_0x16e9a6[_0x14e1e7(0xbc)](_0x2d4573[_0x14e1e7(0x95)]+'\x20(legacy/compat\x20only)'):_0x2d4573[_0x14e1e7(0x95)];console['log'](_0x14e1e7(0x7e)+_0x1ef265),console[_0x14e1e7(0x79)](_0x14e1e7(0xc5)+(_0x2d4573[_0x14e1e7(0xae)]||a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xb0)))),console[_0x14e1e7(0x79)](_0x14e1e7(0x8c)+(_0x2d4573[_0x14e1e7(0x7c)]||a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xb0)))),console[_0x14e1e7(0x79)](_0x14e1e7(0xa0)+(_0x2d4573[_0x14e1e7(0x81)]||a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xc9)+DEFAULT_CONFIG_VALUES[_0x14e1e7(0x81)]+')'))),console[_0x14e1e7(0x79)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d4573[_0x14e1e7(0xaa)]??a25_0x16e9a6[_0x14e1e7(0xbc)]('(default)'))),console[_0x14e1e7(0x79)](_0x14e1e7(0xc8)+_0x2d4573[_0x14e1e7(0x77)]),console[_0x14e1e7(0x79)](_0x14e1e7(0xa9)+_0x2d4573[_0x14e1e7(0x91)]),console['log'](_0x14e1e7(0xa3)+AUTH_MODE['ClientAk']),console['log'](_0x14e1e7(0xc6)+(_0x2d4573[_0x14e1e7(0x88)]?a25_0x16e9a6[_0x14e1e7(0xc2)](_0x14e1e7(0xb9)+_0x2d4573[_0x14e1e7(0x88)][_0x14e1e7(0xbb)]+')'):a25_0x16e9a6['gray'](_0x14e1e7(0xb0)))),console[_0x14e1e7(0x79)](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)](_0x14e1e7(0xb4))),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xbc)]('\x20\x20─'[_0x14e1e7(0xb5)](0x1e))),console[_0x14e1e7(0x79)](_0x14e1e7(0xa4)+getApiDomain()),console[_0x14e1e7(0x79)](_0x14e1e7(0x8a)+getUserDomain()),console[_0x14e1e7(0x79)](_0x14e1e7(0xc1)+getRuntimeDomain()),console[_0x14e1e7(0x79)](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)](_0x14e1e7(0xb8))),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0xc7)[_0x14e1e7(0xb5)](0x1e)));const _0x16ee14=inspectServiceRegistry();console[_0x14e1e7(0x79)](_0x14e1e7(0x7d)+_0x16ee14['registryPath']),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x16ee14)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16ee14[_0x14e1e7(0x84)]),console[_0x14e1e7(0x79)](_0x14e1e7(0x9a)+_0x16ee14['commandCount']);for(const _0x20b449 of _0x16ee14[_0x14e1e7(0x7a)]){console[_0x14e1e7(0x79)]('\x20\x20'+(_0x20b449[_0x14e1e7(0xc0)]+':')[_0x14e1e7(0x99)](0x11)+'\x20'+(_0x20b449[_0x14e1e7(0x85)]||a25_0x16e9a6['gray'](_0x14e1e7(0xbd)))+'\x20('+_0x20b449[_0x14e1e7(0x8e)]+_0x14e1e7(0xc3)),console[_0x14e1e7(0x79)]('\x20\x20'+''[_0x14e1e7(0x99)](0x11)+_0x14e1e7(0x86)+_0x20b449[_0x14e1e7(0xb3)]['path']);}return console[_0x14e1e7(0x79)](),console[_0x14e1e7(0x79)](a25_0x16e9a6[_0x14e1e7(0xac)](_0x14e1e7(0xa2))),console[_0x14e1e7(0x79)](a25_0x16e9a6['gray'](_0x14e1e7(0xc7)[_0x14e1e7(0xb5)](0x1e))),console[_0x14e1e7(0x79)](_0x14e1e7(0xba)+a25_0x16e9a6[_0x14e1e7(0xc2)](AUTH_MODE['ClientAk']+_0x14e1e7(0xc4))),console[_0x14e1e7(0x79)]('\x20\x20Session\x20check:\x20\x20\x20'+a25_0x16e9a6[_0x14e1e7(0xbc)](_0x14e1e7(0x9c))),console[_0x14e1e7(0x79)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4b28c9){const _0x245704=a25_0x20b6;if(_0x4b28c9[_0x245704(0x89)]==='ok')return a25_0x16e9a6[_0x245704(0xc2)]('✓\x20Loaded');if(_0x4b28c9[_0x245704(0x89)]===_0x245704(0xab))return a25_0x16e9a6['gray'](_0x245704(0xad));if(_0x4b28c9[_0x245704(0x89)]==='empty')return a25_0x16e9a6[_0x245704(0x80)](_0x245704(0x94));return a25_0x16e9a6[_0x245704(0xb2)]('✗\x20Invalid'+(_0x4b28c9[_0x245704(0xca)]?':\x20'+_0x4b28c9[_0x245704(0xca)]:''));}export const doctorDefinition={'service':a25_0x58086d(0xb1),'command':'check','description':a25_0x58086d(0x93),'risk':a25_0x58086d(0x8d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x8ae425=a26_0x1df7;(function(_0x2860d0,_0x381ca7){const _0x14cfcc=a26_0x1df7,_0xc31e84=_0x2860d0();while(!![]){try{const _0x530e5d=parseInt(_0x14cfcc(0x108))/0x1+-parseInt(_0x14cfcc(0xfe))/0x2+-parseInt(_0x14cfcc(0x10c))/0x3+-parseInt(_0x14cfcc(0x120))/0x4+parseInt(_0x14cfcc(0xf7))/0x5+parseInt(_0x14cfcc(0x106))/0x6+parseInt(_0x14cfcc(0x118))/0x7;if(_0x530e5d===_0x381ca7)break;else _0xc31e84['push'](_0xc31e84['shift']());}catch(_0x5e04b9){_0xc31e84['push'](_0xc31e84['shift']());}}}(a26_0x8229,0x6ef99));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';function a26_0x1df7(_0x490775,_0x1af116){_0x490775=_0x490775-0xed;const _0x82296c=a26_0x8229();let _0x1df7d2=_0x82296c[_0x490775];return _0x1df7d2;}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';function a26_0x8229(){const _0xe530bc=['File\x20','validation','SIGINT','removeListener','once','Initialized\x20','includes','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x22.\x20Allowed:\x20','App\x20code\x20cannot\x20be\x20empty.','App\x20code\x20for\x20the\x20project','[Y/n]','apps','env','Target\x20environment\x20(default\x20','name','\x20\x20env:\x20\x20\x20\x20\x20','appcode','Skip\x20confirmation\x20when\x20overwriting','1646285EgHNXi','object','):\x20','trim','log','string','Write\x20to\x20global\x20(~/','1005028EilThI','race','yes','flagMissing','defaultApp','stdout','newConfigFileName','Usage:\x20','5249778YujGCC','global','344978teYjxw','Override\x20imported\x20default\x20env','utf8','Override\x20imported\x20default\x20appcode','1192476mjhTCk','project','[y/N]','cancelled','entries','question','app','Failed\x20to\x20parse\x20source\x20file:\x20','boolean','\x20\x20appcode:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','428603CkaSBN','Aborted.','Source\x20file\x20not\x20found:\x20','message',')\x20instead\x20of\x20project','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','file','Imported\x20from\x20','1023472YQGalM','close','parse'];a26_0x8229=function(){return _0xe530bc;};return a26_0x8229();}import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x8ae425(0xf5),'type':a26_0x8ae425(0xfc),'description':a26_0x8ae425(0xee)},{'name':a26_0x8ae425(0xf1),'type':a26_0x8ae425(0xfc),'description':a26_0x8ae425(0xf2)+DEFAULT_CONFIG_VALUES[a26_0x8ae425(0xf1)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x8ae425(0x107),'type':a26_0x8ae425(0x114),'description':a26_0x8ae425(0xfd)+PRODUCT_CONFIG['newConfigFileName']+a26_0x8ae425(0x11c),'default':![]},{'name':a26_0x8ae425(0x100),'type':a26_0x8ae425(0x114),'description':a26_0x8ae425(0xf6),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x8ae425(0x11e),'type':'string','description':a26_0x8ae425(0x12a),'required':!![]},{'name':'appcode','type':a26_0x8ae425(0xfc),'description':a26_0x8ae425(0x10b)},{'name':a26_0x8ae425(0xf1),'type':a26_0x8ae425(0xfc),'description':a26_0x8ae425(0x109),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x8ae425(0x107),'type':a26_0x8ae425(0x114),'description':a26_0x8ae425(0xfd)+PRODUCT_CONFIG[a26_0x8ae425(0x104)]+')\x20instead\x20of\x20project','default':![]},{'name':a26_0x8ae425(0x100),'type':a26_0x8ae425(0x114),'description':a26_0x8ae425(0xf6),'default':![]}];export async function runInit(_0x2d394d){const _0x5b5a0d=a26_0x8ae425,_0x228a5d=isNonInteractiveMode(_0x2d394d),_0x5e6885=_0x2d394d[_0x5b5a0d(0x107)]?_0x5b5a0d(0x107):_0x5b5a0d(0x10d),_0x572965=resolveWriteConfigPath(_0x5e6885);try{_0x228a5d?await runNonInteractive(_0x2d394d,_0x572965):await runInteractive(_0x2d394d,_0x572965);}catch(_0x5cd3f7){if(_0x5cd3f7 instanceof AbortPrompt)throw CliErrors[_0x5b5a0d(0x10f)]();throw _0x5cd3f7;}}export async function runInitImport(_0x35a6fa){const _0x4768e8=a26_0x8ae425,_0x38c76c=_0x35a6fa[_0x4768e8(0x107)]?'global':_0x4768e8(0x10d),_0x28a838=resolveWriteConfigPath(_0x38c76c);await runFromImport(_0x35a6fa,_0x28a838);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x53e62b,_0xa27f58){const _0x47399d=a26_0x8ae425,_0x425781=resolveFilePath(_0x53e62b[_0x47399d(0x11e)]);if(!existsSync(_0x425781))throw CliErrors[_0x47399d(0x124)](_0x47399d(0x11a)+_0x425781);const _0x53481c=readSourceFile(_0x425781),_0x3692b4=convertToRuntimeConfig(_0x53481c);_0x53e62b[_0x47399d(0xf5)]&&(_0x3692b4[_0x47399d(0xf5)]=String(_0x53e62b[_0x47399d(0xf5)]));_0x53e62b[_0x47399d(0xf1)]&&(_0x3692b4['env']=resolveInitEnv(_0x53e62b));if(!_0x3692b4[_0x47399d(0xf5)])throw CliErrors[_0x47399d(0x124)](_0x47399d(0x117),'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`.');await writeInitConfig(_0xa27f58,_0x3692b4,_0x53e62b),console['log'](_0x47399d(0x11f)+_0x425781),console['log']('\x20\x20config:\x20\x20'+_0xa27f58),console['log'](_0x47399d(0x115)+_0x3692b4[_0x47399d(0xf5)]);if(_0x3692b4[_0x47399d(0x102)])console['log']('\x20\x20default:\x20'+_0x3692b4[_0x47399d(0x102)]);}function convertToRuntimeConfig(_0x4a9068){const _0x19879a=a26_0x8ae425;if(_0x4a9068[_0x19879a(0xf0)]&&typeof _0x4a9068[_0x19879a(0xf0)]===_0x19879a(0xf8))throw CliErrors[_0x19879a(0x124)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x19879a(0x116));const _0x365148={};for(const _0x567ba6 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x4a9068[_0x567ba6]!==undefined&&(_0x365148[_0x567ba6]=_0x4a9068[_0x567ba6]);}return!_0x365148['riskLevel']&&(_0x365148['riskLevel']=DEFAULT_CONFIG_VALUES['riskLevel']),_0x365148;}async function runNonInteractive(_0xa46b21,_0x33176d){const _0x4fa8e1=a26_0x8ae425,_0x1e3a17=_0xa46b21[_0x4fa8e1(0xf5)];if(!_0x1e3a17)throw CliErrors[_0x4fa8e1(0x101)]('appcode',_0x4fa8e1(0x105)+CLI_BIN_NAME+_0x4fa8e1(0x11d));const _0x3ddc1e=resolveInitEnv(_0xa46b21);await writeInitConfig(_0x33176d,{'appcode':_0x1e3a17,'env':_0x3ddc1e},_0xa46b21),console[_0x4fa8e1(0xfb)](_0x4fa8e1(0x128)+_0x33176d),console[_0x4fa8e1(0xfb)](_0x4fa8e1(0x115)+_0x1e3a17),console[_0x4fa8e1(0xfb)](_0x4fa8e1(0xf4)+_0x3ddc1e);}async function runInteractive(_0x4d04c1,_0x57bf87){const _0x40eef6=a26_0x8ae425,_0x4444ce=loadExisting(_0x57bf87),_0x42e9e4=typeof _0x4444ce?.[_0x40eef6(0xf5)]==='string'?_0x4444ce[_0x40eef6(0xf5)]:'',_0x2f526f=resolveInitEnv(_0x4d04c1);console[_0x40eef6(0xfb)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x0a');if(existsSync(_0x57bf87)&&!_0x4d04c1[_0x40eef6(0x100)]){const _0x38ceac=await promptYesNo(_0x40eef6(0x123)+_0x57bf87+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x38ceac){console[_0x40eef6(0xfb)](_0x40eef6(0x119));return;}}const _0x372f1e=typeof _0x4d04c1['appcode']===_0x40eef6(0xfc)?_0x4d04c1[_0x40eef6(0xf5)]['trim']():'';let _0x21ad31=_0x372f1e;!_0x21ad31&&(_0x21ad31=await promptInput('App\x20code',_0x42e9e4));if(!_0x21ad31['trim']())throw CliErrors[_0x40eef6(0x124)](_0x40eef6(0xed));await writeInitConfig(_0x57bf87,{'appcode':_0x21ad31[_0x40eef6(0xfa)](),'env':_0x2f526f},_0x4d04c1),console[_0x40eef6(0xfb)]('\x0aInitialized\x20'+_0x57bf87),console['log'](_0x40eef6(0x115)+_0x21ad31[_0x40eef6(0xfa)]()),console[_0x40eef6(0xfb)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x2f526f);}async function writeInitConfig(_0x1df5fb,_0x137e80,_0x3607e4){const _0x5a04be=a26_0x8ae425;let _0x2bfaeb={};existsSync(_0x1df5fb)&&!_0x3607e4['yes']&&(_0x2bfaeb=readConfigFile(_0x1df5fb));for(const [_0x236e87,_0x581423]of Object[_0x5a04be(0x110)](_0x137e80)){_0x581423!==undefined&&(_0x2bfaeb[_0x236e87]=_0x581423);}if(_0x2bfaeb[_0x5a04be(0x112)])delete _0x2bfaeb[_0x5a04be(0x112)];writeConfigFile(_0x1df5fb,_0x2bfaeb);}class AbortPrompt extends Error{constructor(){const _0x5bf0b4=a26_0x8ae425;super('User\x20aborted\x20prompt'),this[_0x5bf0b4(0xf3)]='AbortPrompt';}}function createSafeRl(){const _0x51f465=a26_0x8ae425,_0x4a0c2f=createInterface({'input':process['stdin'],'output':process[_0x51f465(0x103)]});let _0x386ddc;const _0x3a741f=new Promise((_0x324954,_0x12c7e6)=>{const _0x3a2eeb=_0x51f465;_0x386ddc=()=>{const _0x3d5501=a26_0x1df7;_0x386ddc&&(_0x4a0c2f[_0x3d5501(0x126)](_0x3d5501(0x125),_0x386ddc),_0x386ddc=undefined);try{_0x4a0c2f[_0x3d5501(0x121)]();}catch{}_0x12c7e6(new AbortPrompt());},_0x4a0c2f[_0x3a2eeb(0x127)](_0x3a2eeb(0x125),_0x386ddc);}),_0x562a62=()=>{const _0x3372a7=_0x51f465;_0x386ddc&&(_0x4a0c2f[_0x3372a7(0x126)](_0x3372a7(0x125),_0x386ddc),_0x386ddc=undefined);try{_0x4a0c2f[_0x3372a7(0x121)]();}catch{}};return{'rl':_0x4a0c2f,'abortPromise':_0x3a741f,'disposeSuccess':_0x562a62};}async function promptInput(_0x1926de,_0x3ea976){const _0x245c2c=a26_0x8ae425,{rl:_0x2e6d68,abortPromise:_0x4c849e,disposeSuccess:_0x5e0257}=createSafeRl(),_0xb2000b=new Promise(_0xe85218=>{const _0x5ebf27=a26_0x1df7,_0x3f87b7=_0x3ea976?'\x20\x20'+_0x1926de+'\x20('+_0x3ea976+_0x5ebf27(0xf9):'\x20\x20'+_0x1926de+':\x20';_0x2e6d68[_0x5ebf27(0x111)](_0x3f87b7,_0x481603=>{const _0x5a0c5d=_0x5ebf27;_0x5e0257(),_0xe85218(_0x481603[_0x5a0c5d(0xfa)]()||_0x3ea976);});});return Promise[_0x245c2c(0xff)]([_0xb2000b,_0x4c849e]);}async function promptYesNo(_0x1a8b8f,_0x1ac754){const {rl:_0x1fffac,abortPromise:_0x30f773,disposeSuccess:_0x5e4990}=createSafeRl(),_0x2a1e3b=new Promise(_0x22a053=>{const _0x6d1b77=a26_0x1df7,_0x583f5c=_0x1ac754?_0x6d1b77(0xef):_0x6d1b77(0x10e);_0x1fffac[_0x6d1b77(0x111)]('\x20\x20'+_0x1a8b8f+'\x20'+_0x583f5c+':\x20',_0x135a07=>{_0x5e4990();const _0x1ca350=_0x135a07['trim']()['toLowerCase']();if(_0x1ca350==='y'||_0x1ca350==='yes')_0x22a053(!![]);else{if(_0x1ca350==='n'||_0x1ca350==='no')_0x22a053(![]);else _0x22a053(_0x1ac754);}});});return Promise['race']([_0x2a1e3b,_0x30f773]);}function loadExisting(_0x3b22ea){if(!existsSync(_0x3b22ea))return null;return readConfigFile(_0x3b22ea);}function resolveFilePath(_0x47b432){return isAbsolute(_0x47b432)?_0x47b432:resolve(process['cwd'](),_0x47b432);}function readSourceFile(_0x4c478c){const _0x429843=a26_0x8ae425;try{const _0x20698b=readFileSync(_0x4c478c,{'encoding':_0x429843(0x10a)});return JSON[_0x429843(0x122)](_0x20698b);}catch(_0x5a1461){throw CliErrors[_0x429843(0x124)](_0x429843(0x113)+_0x5a1461[_0x429843(0x11b)]);}}function resolveInitEnv(_0x4763aa){const _0x3a0be1=a26_0x8ae425,_0x4fbdce=_0x4763aa['env'];if(_0x4fbdce===undefined||_0x4fbdce==='')return DEFAULT_CONFIG_VALUES[_0x3a0be1(0xf1)];if(!RUNTIME_ENV_VALUES[_0x3a0be1(0x129)](_0x4fbdce))throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x4fbdce+_0x3a0be1(0x12b)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x4fbdce;}
1
+ const a26_0x52387f=a26_0xd43e;(function(_0x443ea3,_0x14c22c){const _0x32e276=a26_0xd43e,_0x4d8881=_0x443ea3();while(!![]){try{const _0x46a24c=parseInt(_0x32e276(0x19a))/0x1+-parseInt(_0x32e276(0x19d))/0x2*(parseInt(_0x32e276(0x1c3))/0x3)+-parseInt(_0x32e276(0x1de))/0x4*(parseInt(_0x32e276(0x1d4))/0x5)+-parseInt(_0x32e276(0x19f))/0x6*(parseInt(_0x32e276(0x1dd))/0x7)+parseInt(_0x32e276(0x198))/0x8+parseInt(_0x32e276(0x1cd))/0x9*(-parseInt(_0x32e276(0x1d5))/0xa)+parseInt(_0x32e276(0x1a1))/0xb;if(_0x46a24c===_0x14c22c)break;else _0x4d8881['push'](_0x4d8881['shift']());}catch(_0x16f16e){_0x4d8881['push'](_0x4d8881['shift']());}}}(a26_0x5233,0xa68e7));import{existsSync,readFileSync}from'node:fs';function a26_0x5233(){const _0x3ff866=['appcode','boolean','newConfigFileName','1014xwJAnr','Initialized\x20','flagMissing','\x20\x20appcode:\x20','\x22.\x20Allowed:\x20','Override\x20imported\x20default\x20env','utf8','\x20already\x20exists.\x20Overwrite?','Imported\x20from\x20','\x20\x20default:\x20','819zKNImn','Invalid\x20env\x20\x22','Write\x20to\x20global\x20(~/','SIGINT','Source\x20file\x20not\x20found:\x20','validation','Aborted.','20HXECCY','10IZASvi','removeListener','[y/N]','race','User\x20aborted\x20prompt','once','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','file','683823PNTjvz','733316kIoqUx','cancelled','yes','2614152MYAiWA','global','1128813WznCzI','entries','close','2932ZJBufA','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','72GzhVcY','defaultApp','17905976YgFZBV','trim','):\x20','apps','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','string','apiDir','env','stdin','\x20\x20env:\x20\x20\x20\x20\x20','AbortPrompt','app','riskLevel','Skip\x20confirmation\x20when\x20overwriting','File\x20','name','toLowerCase','join','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.',')\x20instead\x20of\x20project','includes','cwd','\x20\x20config:\x20\x20','App\x20code','message','project','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`.','log','question','Usage:\x20','App\x20code\x20cannot\x20be\x20empty.'];a26_0x5233=function(){return _0x3ff866;};return a26_0x5233();}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_0x52387f(0x1c0),'type':'string','description':'App\x20code\x20for\x20the\x20project'},{'name':a26_0x52387f(0x1a8),'type':a26_0x52387f(0x1a6),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a26_0x52387f(0x1a8)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x52387f(0x199),'type':'boolean','description':a26_0x52387f(0x1cf)+PRODUCT_CONFIG['newConfigFileName']+a26_0x52387f(0x1b4),'default':![]},{'name':a26_0x52387f(0x197),'type':a26_0x52387f(0x1c1),'description':a26_0x52387f(0x1ae),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x52387f(0x1dc),'type':'string','description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a26_0x52387f(0x1c0),'type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':a26_0x52387f(0x1a8),'type':'string','description':a26_0x52387f(0x1c8),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a26_0x52387f(0x1c1),'description':a26_0x52387f(0x1cf)+PRODUCT_CONFIG[a26_0x52387f(0x1c2)]+a26_0x52387f(0x1b4),'default':![]},{'name':'yes','type':a26_0x52387f(0x1c1),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x3820ad){const _0x80331e=a26_0x52387f,_0x146d14=isNonInteractiveMode(_0x3820ad),_0xc43dc1=_0x3820ad[_0x80331e(0x199)]?_0x80331e(0x199):_0x80331e(0x1ba),_0x594a8b=resolveWriteConfigPath(_0xc43dc1);try{_0x146d14?await runNonInteractive(_0x3820ad,_0x594a8b):await runInteractive(_0x3820ad,_0x594a8b);}catch(_0x283e47){if(_0x283e47 instanceof AbortPrompt)throw CliErrors[_0x80331e(0x1df)]();throw _0x283e47;}}export async function runInitImport(_0x5dd445){const _0x56640=a26_0x52387f,_0x47babc=_0x5dd445[_0x56640(0x199)]?_0x56640(0x199):'project',_0x38bba2=resolveWriteConfigPath(_0x47babc);await runFromImport(_0x5dd445,_0x38bba2);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x52387f(0x1a7)]);async function runFromImport(_0x58e0d0,_0x4b715e){const _0x54a25a=a26_0x52387f,_0x57ad3f=resolveFilePath(_0x58e0d0[_0x54a25a(0x1dc)]);if(!existsSync(_0x57ad3f))throw CliErrors[_0x54a25a(0x1d2)](_0x54a25a(0x1d1)+_0x57ad3f);const _0x48227b=readSourceFile(_0x57ad3f),_0x564f14=convertToRuntimeConfig(_0x48227b);_0x58e0d0[_0x54a25a(0x1c0)]&&(_0x564f14['appcode']=String(_0x58e0d0[_0x54a25a(0x1c0)]));_0x58e0d0[_0x54a25a(0x1a8)]&&(_0x564f14[_0x54a25a(0x1a8)]=resolveInitEnv(_0x58e0d0));if(!_0x564f14[_0x54a25a(0x1c0)])throw CliErrors[_0x54a25a(0x1d2)](_0x54a25a(0x1db),_0x54a25a(0x1bb));await writeInitConfig(_0x4b715e,_0x564f14,_0x58e0d0),console['log'](_0x54a25a(0x1cb)+_0x57ad3f),console['log'](_0x54a25a(0x1b7)+_0x4b715e),console[_0x54a25a(0x1bc)](_0x54a25a(0x1c6)+_0x564f14[_0x54a25a(0x1c0)]);if(_0x564f14['defaultApp'])console[_0x54a25a(0x1bc)](_0x54a25a(0x1cc)+_0x564f14[_0x54a25a(0x1a0)]);}function convertToRuntimeConfig(_0x1eb013){const _0x354535=a26_0x52387f;if(_0x1eb013[_0x354535(0x1a4)]&&typeof _0x1eb013['apps']==='object')throw CliErrors[_0x354535(0x1d2)](_0x354535(0x19e),_0x354535(0x1b3));const _0x1a554b={};for(const _0x4b4034 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1eb013[_0x4b4034]!==undefined&&(_0x1a554b[_0x4b4034]=_0x1eb013[_0x4b4034]);}return!_0x1a554b['riskLevel']&&(_0x1a554b[_0x354535(0x1ad)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x1a554b;}async function runNonInteractive(_0x5d7efc,_0x3a7749){const _0x4ea8b5=a26_0x52387f,_0x2f3442=_0x5d7efc['appcode'];if(!_0x2f3442)throw CliErrors[_0x4ea8b5(0x1c5)](_0x4ea8b5(0x1c0),_0x4ea8b5(0x1be)+CLI_BIN_NAME+_0x4ea8b5(0x1a5));const _0x347b85=resolveInitEnv(_0x5d7efc);await writeInitConfig(_0x3a7749,{'appcode':_0x2f3442,'env':_0x347b85},_0x5d7efc),console[_0x4ea8b5(0x1bc)](_0x4ea8b5(0x1c4)+_0x3a7749),console['log'](_0x4ea8b5(0x1c6)+_0x2f3442),console[_0x4ea8b5(0x1bc)](_0x4ea8b5(0x1aa)+_0x347b85);}function a26_0xd43e(_0x897a35,_0x370a2e){_0x897a35=_0x897a35-0x197;const _0x523348=a26_0x5233();let _0xd43e23=_0x523348[_0x897a35];return _0xd43e23;}async function runInteractive(_0x4fc80c,_0x1009ec){const _0x14569d=a26_0x52387f,_0x1941dc=loadExisting(_0x1009ec),_0x46ef23=typeof _0x1941dc?.[_0x14569d(0x1c0)]===_0x14569d(0x1a6)?_0x1941dc['appcode']:'',_0x4b0859=resolveInitEnv(_0x4fc80c);console[_0x14569d(0x1bc)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x0a');if(existsSync(_0x1009ec)&&!_0x4fc80c[_0x14569d(0x197)]){const _0x4fcb31=await promptYesNo(_0x14569d(0x1af)+_0x1009ec+_0x14569d(0x1ca),![]);if(!_0x4fcb31){console['log'](_0x14569d(0x1d3));return;}}const _0x1a19f3=typeof _0x4fc80c[_0x14569d(0x1c0)]===_0x14569d(0x1a6)?_0x4fc80c[_0x14569d(0x1c0)]['trim']():'';let _0xaf0f5a=_0x1a19f3;!_0xaf0f5a&&(_0xaf0f5a=await promptInput(_0x14569d(0x1b8),_0x46ef23));if(!_0xaf0f5a['trim']())throw CliErrors['validation'](_0x14569d(0x1bf));await writeInitConfig(_0x1009ec,{'appcode':_0xaf0f5a[_0x14569d(0x1a2)](),'env':_0x4b0859},_0x4fc80c),console['log']('\x0aInitialized\x20'+_0x1009ec),console[_0x14569d(0x1bc)]('\x20\x20appcode:\x20'+_0xaf0f5a[_0x14569d(0x1a2)]()),console[_0x14569d(0x1bc)](_0x14569d(0x1aa)+_0x4b0859);}async function writeInitConfig(_0x187e82,_0x1920d3,_0x381710){const _0x203496=a26_0x52387f;let _0x58ee98={};existsSync(_0x187e82)&&!_0x381710[_0x203496(0x197)]&&(_0x58ee98=readConfigFile(_0x187e82));for(const [_0x1ea87f,_0x357089]of Object[_0x203496(0x19b)](_0x1920d3)){_0x357089!==undefined&&(_0x58ee98[_0x1ea87f]=_0x357089);}if(_0x58ee98[_0x203496(0x1ac)])delete _0x58ee98[_0x203496(0x1ac)];writeConfigFile(_0x187e82,_0x58ee98);}class AbortPrompt extends Error{constructor(){const _0x5bd5c8=a26_0x52387f;super(_0x5bd5c8(0x1d9)),this[_0x5bd5c8(0x1b0)]=_0x5bd5c8(0x1ab);}}function createSafeRl(){const _0x1ba67d=a26_0x52387f,_0x302cc0=createInterface({'input':process[_0x1ba67d(0x1a9)],'output':process['stdout']});let _0x5f548c;const _0x17e764=new Promise((_0xc9e851,_0x1f528d)=>{const _0x4373aa=_0x1ba67d;_0x5f548c=()=>{const _0x543572=a26_0xd43e;_0x5f548c&&(_0x302cc0[_0x543572(0x1d6)](_0x543572(0x1d0),_0x5f548c),_0x5f548c=undefined);try{_0x302cc0[_0x543572(0x19c)]();}catch{}_0x1f528d(new AbortPrompt());},_0x302cc0[_0x4373aa(0x1da)](_0x4373aa(0x1d0),_0x5f548c);}),_0xcd0687=()=>{const _0x5d0985=_0x1ba67d;_0x5f548c&&(_0x302cc0[_0x5d0985(0x1d6)](_0x5d0985(0x1d0),_0x5f548c),_0x5f548c=undefined);try{_0x302cc0[_0x5d0985(0x19c)]();}catch{}};return{'rl':_0x302cc0,'abortPromise':_0x17e764,'disposeSuccess':_0xcd0687};}async function promptInput(_0x31059d,_0x23a49a){const {rl:_0x2b8dc3,abortPromise:_0x44517e,disposeSuccess:_0x4e941f}=createSafeRl(),_0x511e59=new Promise(_0x4879ff=>{const _0x3bd396=a26_0xd43e,_0x513d39=_0x23a49a?'\x20\x20'+_0x31059d+'\x20('+_0x23a49a+_0x3bd396(0x1a3):'\x20\x20'+_0x31059d+':\x20';_0x2b8dc3[_0x3bd396(0x1bd)](_0x513d39,_0x2ade1e=>{_0x4e941f(),_0x4879ff(_0x2ade1e['trim']()||_0x23a49a);});});return Promise['race']([_0x511e59,_0x44517e]);}async function promptYesNo(_0x9f06b,_0x271ffc){const _0x5dd090=a26_0x52387f,{rl:_0x52a47c,abortPromise:_0x1aefa1,disposeSuccess:_0x1e735a}=createSafeRl(),_0x599e7d=new Promise(_0x3d26f8=>{const _0x523e1d=a26_0xd43e,_0x1db67d=_0x271ffc?'[Y/n]':_0x523e1d(0x1d7);_0x52a47c['question']('\x20\x20'+_0x9f06b+'\x20'+_0x1db67d+':\x20',_0xfdd26e=>{const _0xb119c8=_0x523e1d;_0x1e735a();const _0x37d190=_0xfdd26e[_0xb119c8(0x1a2)]()[_0xb119c8(0x1b1)]();if(_0x37d190==='y'||_0x37d190===_0xb119c8(0x197))_0x3d26f8(!![]);else{if(_0x37d190==='n'||_0x37d190==='no')_0x3d26f8(![]);else _0x3d26f8(_0x271ffc);}});});return Promise[_0x5dd090(0x1d8)]([_0x599e7d,_0x1aefa1]);}function loadExisting(_0x45b4a1){if(!existsSync(_0x45b4a1))return null;return readConfigFile(_0x45b4a1);}function resolveFilePath(_0x48fc34){const _0xf2f813=a26_0x52387f;return isAbsolute(_0x48fc34)?_0x48fc34:resolve(process[_0xf2f813(0x1b6)](),_0x48fc34);}function readSourceFile(_0x1cb35d){const _0x2a215b=a26_0x52387f;try{const _0x179d29=readFileSync(_0x1cb35d,{'encoding':_0x2a215b(0x1c9)});return JSON['parse'](_0x179d29);}catch(_0x39323e){throw CliErrors[_0x2a215b(0x1d2)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x39323e[_0x2a215b(0x1b9)]);}}function resolveInitEnv(_0x3aefca){const _0x533ef3=a26_0x52387f,_0x528e27=_0x3aefca[_0x533ef3(0x1a8)];if(_0x528e27===undefined||_0x528e27==='')return DEFAULT_CONFIG_VALUES[_0x533ef3(0x1a8)];if(!RUNTIME_ENV_VALUES[_0x533ef3(0x1b5)](_0x528e27))throw CliErrors['validation'](_0x533ef3(0x1ce)+_0x528e27+_0x533ef3(0x1c7)+RUNTIME_ENV_VALUES[_0x533ef3(0x1b2)](',\x20'));return _0x528e27;}