@lovrabet/lovrabet-cli 2.1.6-beta.6 → 2.1.6

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
- (function(_0x502631,_0x5cedb5){const _0xdd251b=a15_0x5109,_0x1ce50b=_0x502631();while(!![]){try{const _0x200334=parseInt(_0xdd251b(0xe3))/0x1+parseInt(_0xdd251b(0xe6))/0x2+-parseInt(_0xdd251b(0xe4))/0x3*(-parseInt(_0xdd251b(0xed))/0x4)+parseInt(_0xdd251b(0xe8))/0x5+parseInt(_0xdd251b(0xee))/0x6+-parseInt(_0xdd251b(0xec))/0x7*(parseInt(_0xdd251b(0xe7))/0x8)+-parseInt(_0xdd251b(0xf4))/0x9*(parseInt(_0xdd251b(0xeb))/0xa);if(_0x200334===_0x5cedb5)break;else _0x1ce50b['push'](_0x1ce50b['shift']());}catch(_0x5e69c6){_0x1ce50b['push'](_0x1ce50b['shift']());}}}(a15_0x1d67,0x63581));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x5109(_0x4f18e2,_0x59c185){_0x4f18e2=_0x4f18e2-0xe1;const _0x1d6721=a15_0x1d67();let _0x510970=_0x1d6721[_0x4f18e2];return _0x510970;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a15_0x1d67(){const _0x5bba72=['45LSuaKE','validation','global-default','global','\x20found).','Not\x20inside\x20a\x20project\x20(no\x20','11141oTNmsu','6pmbcHf','Add\x20--global\x20to\x20write\x20to\x20~/','1180772HrWxCc','3606392wIlqRm','3859395UmdSzW','project-or-global-explicit',',\x20or\x20run\x20`','1618190pJyxOk','7BqmYAT','460888YkEhZJ','377742dJHWsI','newConfigFileName','project','inProject','Use\x20only\x20one\x20config\x20scope\x20flag.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.'];a15_0x1d67=function(){return _0x5bba72;};return a15_0x1d67();}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(_0x53de47){const _0x1b6908=a15_0x5109,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x10c7d8}=_0x53de47;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1b6908(0xf5)](_0x1b6908(0xf3),_0x1b6908(0xf2));if(explicitGlobal)return _0x1b6908(0xf7);if(explicitProject)return _0x1b6908(0xf0);switch(_0x10c7d8){case _0x1b6908(0xf6):return'global';case'project-default':return _0x53de47[_0x1b6908(0xf1)]??isInProject()?_0x1b6908(0xf0):_0x1b6908(0xf7);case _0x1b6908(0xe9):if(!(_0x53de47[_0x1b6908(0xf1)]??isInProject()))throw CliErrors[_0x1b6908(0xf5)](_0x1b6908(0xe2)+PRODUCT_CONFIG[_0x1b6908(0xef)]+_0x1b6908(0xe1),_0x1b6908(0xe5)+PRODUCT_CONFIG[_0x1b6908(0xef)]+_0x1b6908(0xea)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1b6908(0xf0);}}export function toScopeFlags(_0x423ad4){const _0x13d5f3=a15_0x5109;return{'global':_0x423ad4===_0x13d5f3(0xf7)};}export function formatScopeLabel(_0x32c22a){const _0x309471=a15_0x5109;return _0x32c22a===_0x309471(0xf7)?'\x20(global)':'';}
1
+ (function(_0x24f276,_0x5c3dbf){const _0x32ba66=a15_0x1517,_0x3039bc=_0x24f276();while(!![]){try{const _0x3c562d=-parseInt(_0x32ba66(0x1a4))/0x1+-parseInt(_0x32ba66(0x1a2))/0x2*(parseInt(_0x32ba66(0x1a8))/0x3)+-parseInt(_0x32ba66(0x1a0))/0x4*(-parseInt(_0x32ba66(0x1a9))/0x5)+parseInt(_0x32ba66(0x19e))/0x6*(parseInt(_0x32ba66(0x199))/0x7)+-parseInt(_0x32ba66(0x19a))/0x8*(-parseInt(_0x32ba66(0x19b))/0x9)+-parseInt(_0x32ba66(0x1a6))/0xa*(-parseInt(_0x32ba66(0x1ae))/0xb)+parseInt(_0x32ba66(0x1b1))/0xc*(-parseInt(_0x32ba66(0x1a3))/0xd);if(_0x3c562d===_0x5c3dbf)break;else _0x3039bc['push'](_0x3039bc['shift']());}catch(_0xc61167){_0x3039bc['push'](_0x3039bc['shift']());}}}(a15_0x267a,0x6e069));function a15_0x1517(_0x2ee197,_0x507265){_0x2ee197=_0x2ee197-0x199;const _0x267a4c=a15_0x267a();let _0x15171e=_0x267a4c[_0x2ee197];return _0x15171e;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a15_0x267a(){const _0x238cbd=['project','54006NVMEXi','Add\x20--global\x20to\x20write\x20to\x20~/','4EjdaRm','Use\x20only\x20one\x20config\x20scope\x20flag.','8rTezMc','5122TEXcpr','298024FAOXGz','global-default','50BAaYtz','\x20found).','651762aBeraW','256015qqgMue','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','validation','\x20init`\x20first.','project-or-global-explicit','1922283PYyrpD','project-default','inProject','12072BCEImc','newConfigFileName','global','259xfaCwK','1512128QYiIgw','36RvrNXD','\x20(global)'];a15_0x267a=function(){return _0x238cbd;};return a15_0x267a();}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(_0x2f58c1){const _0x1b2ca2=a15_0x1517,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x261487}=_0x2f58c1;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x1b2ca2(0x1aa),_0x1b2ca2(0x1a1));if(explicitGlobal)return'global';if(explicitProject)return _0x1b2ca2(0x19d);switch(_0x261487){case _0x1b2ca2(0x1a5):return _0x1b2ca2(0x1b3);case _0x1b2ca2(0x1af):return _0x2f58c1[_0x1b2ca2(0x1b0)]??isInProject()?'project':'global';case _0x1b2ca2(0x1ad):if(!(_0x2f58c1[_0x1b2ca2(0x1b0)]??isInProject()))throw CliErrors[_0x1b2ca2(0x1ab)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x1b2ca2(0x1b2)]+_0x1b2ca2(0x1a7),_0x1b2ca2(0x19f)+PRODUCT_CONFIG[_0x1b2ca2(0x1b2)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x1b2ca2(0x1ac));return _0x1b2ca2(0x19d);}}export function toScopeFlags(_0x501056){return{'global':_0x501056==='global'};}export function formatScopeLabel(_0x33ac19){const _0x3ca4a7=a15_0x1517;return _0x33ac19===_0x3ca4a7(0x1b3)?_0x3ca4a7(0x19c):'';}
@@ -1 +1 @@
1
- (function(_0x3dd981,_0x3cdad6){const _0x15951e=a16_0x5786,_0x12deeb=_0x3dd981();while(!![]){try{const _0xbcefd2=-parseInt(_0x15951e(0x1b9))/0x1*(-parseInt(_0x15951e(0x1ba))/0x2)+-parseInt(_0x15951e(0x1b8))/0x3+-parseInt(_0x15951e(0x1b4))/0x4+parseInt(_0x15951e(0x1b5))/0x5+parseInt(_0x15951e(0x1b7))/0x6+-parseInt(_0x15951e(0x1a5))/0x7+parseInt(_0x15951e(0x1b3))/0x8;if(_0xbcefd2===_0x3cdad6)break;else _0x12deeb['push'](_0x12deeb['shift']());}catch(_0x54f41a){_0x12deeb['push'](_0x12deeb['shift']());}}}(a16_0x61c8,0x86216));import{CliErrors}from'../../errors.js';function isSet(_0x390df9,_0x5df24a){const _0x556a95=a16_0x5786,_0x116a47=_0x390df9[_0x556a95(0x1aa)](_0x5df24a);return _0x116a47!==undefined&&_0x116a47!==''&&_0x116a47!==![]&&_0x116a47!==0x0;}function a16_0x61c8(){const _0x2eb26b=['map','str','join','validation','10233096BNoqfi','3717004lzHVVg','3752445usaEJL','Only\x20one\x20of\x20','4266528wPjkTa','1073775ZompHF','1kPPJgz','180558NabuIO','Invalid\x20--','Remove\x20all\x20but\x20one.','length','At\x20least\x20one\x20of\x20','6960933aEyVLp','Exactly\x20one\x20of\x20','test',':\x20expected\x20','\x20is\x20required\x20for\x20`','flag','some','Flags\x20','\x20is\x20allowed,\x20found:\x20','\x20are\x20mutually\x20exclusive\x20for\x20`'];a16_0x61c8=function(){return _0x2eb26b;};return a16_0x61c8();}function fmtNames(_0x2714a5){const _0x4d088d=a16_0x5786;return _0x2714a5[_0x4d088d(0x1af)](_0x326380=>'--'+_0x326380)[_0x4d088d(0x1b1)](',\x20');}export function requireOneOf(_0x49653b,_0x417b59,_0x4b2fed){const _0x48503a=a16_0x5786,_0x93f3f8=_0x417b59['filter'](_0x348b03=>isSet(_0x49653b,_0x348b03));if(_0x93f3f8[_0x48503a(0x1bd)]!==0x1)throw CliErrors[_0x48503a(0x1b2)](_0x93f3f8[_0x48503a(0x1bd)]===0x0?_0x48503a(0x1a6)+fmtNames(_0x417b59)+_0x48503a(0x1a9)+_0x4b2fed+'`.':_0x48503a(0x1b6)+fmtNames(_0x417b59)+_0x48503a(0x1ad)+fmtNames(_0x93f3f8)+'.',_0x93f3f8['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x417b59):_0x48503a(0x1bc));}export function requireAnyOf(_0x1ff173,_0x577894,_0x234fb7){const _0x514bc1=a16_0x5786;if(!_0x577894[_0x514bc1(0x1ab)](_0x222987=>isSet(_0x1ff173,_0x222987)))throw CliErrors[_0x514bc1(0x1b2)](_0x514bc1(0x1a4)+fmtNames(_0x577894)+'\x20is\x20required\x20for\x20`'+_0x234fb7+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x577894));}export function mutuallyExclusive(_0x3c1357,_0xca860e,_0x3492a8){const _0x186b73=a16_0x5786,_0x640e07=_0xca860e['filter'](_0x15c066=>isSet(_0x3c1357,_0x15c066));if(_0x640e07['length']>0x1)throw CliErrors[_0x186b73(0x1b2)](_0x186b73(0x1ac)+fmtNames(_0x640e07)+_0x186b73(0x1ae)+_0x3492a8+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0xca860e));}function a16_0x5786(_0x63a0aa,_0x49b272){_0x63a0aa=_0x63a0aa-0x1a4;const _0x61c873=a16_0x61c8();let _0x5786f1=_0x61c873[_0x63a0aa];return _0x5786f1;}export function validatePattern(_0x143542,_0x561252,_0x409532,_0x1aa973){const _0x44076c=a16_0x5786,_0x5093e5=_0x143542[_0x44076c(0x1b0)](_0x561252);if(_0x5093e5&&!_0x409532[_0x44076c(0x1a7)](_0x5093e5))throw CliErrors[_0x44076c(0x1b2)](_0x44076c(0x1bb)+_0x561252+_0x44076c(0x1a8)+_0x1aa973+',\x20got\x20\x22'+_0x5093e5+'\x22.');}
1
+ function a16_0x5164(_0x3e9bd3,_0xe13071){_0x3e9bd3=_0x3e9bd3-0x1a7;const _0x321071=a16_0x3210();let _0x5164ce=_0x321071[_0x3e9bd3];return _0x5164ce;}(function(_0x38c8aa,_0x2939ee){const _0x5d005e=a16_0x5164,_0x1b79de=_0x38c8aa();while(!![]){try{const _0x468f90=-parseInt(_0x5d005e(0x1bf))/0x1+-parseInt(_0x5d005e(0x1b0))/0x2*(-parseInt(_0x5d005e(0x1ac))/0x3)+parseInt(_0x5d005e(0x1c3))/0x4+-parseInt(_0x5d005e(0x1c0))/0x5+parseInt(_0x5d005e(0x1be))/0x6*(-parseInt(_0x5d005e(0x1b9))/0x7)+parseInt(_0x5d005e(0x1ad))/0x8*(parseInt(_0x5d005e(0x1c2))/0x9)+parseInt(_0x5d005e(0x1b2))/0xa;if(_0x468f90===_0x2939ee)break;else _0x1b79de['push'](_0x1b79de['shift']());}catch(_0xff1e46){_0x1b79de['push'](_0x1b79de['shift']());}}}(a16_0x3210,0x4d2f8));import{CliErrors}from'../../errors.js';function isSet(_0x316ff5,_0x5c9d47){const _0x5979be=_0x316ff5['flag'](_0x5c9d47);return _0x5979be!==undefined&&_0x5979be!==''&&_0x5979be!==![]&&_0x5979be!==0x0;}function fmtNames(_0x5b6ddf){const _0xa84fe4=a16_0x5164;return _0x5b6ddf['map'](_0x155c23=>'--'+_0x155c23)[_0xa84fe4(0x1b3)](',\x20');}export function requireOneOf(_0x1ba7ba,_0x2db93f,_0x52047b){const _0x340790=a16_0x5164,_0x34caa1=_0x2db93f[_0x340790(0x1a8)](_0x33bd30=>isSet(_0x1ba7ba,_0x33bd30));if(_0x34caa1[_0x340790(0x1ae)]!==0x1)throw CliErrors[_0x340790(0x1bd)](_0x34caa1[_0x340790(0x1ae)]===0x0?_0x340790(0x1ab)+fmtNames(_0x2db93f)+_0x340790(0x1ba)+_0x52047b+'`.':_0x340790(0x1aa)+fmtNames(_0x2db93f)+_0x340790(0x1bc)+fmtNames(_0x34caa1)+'.',_0x34caa1[_0x340790(0x1ae)]===0x0?_0x340790(0x1a7)+fmtNames(_0x2db93f):_0x340790(0x1c1));}function a16_0x3210(){const _0x2d60ba=['length','str','2FDETxn','test','10002860JeXrvU','join','\x20are\x20mutually\x20exclusive\x20for\x20`',',\x20got\x20\x22','Use\x20only\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','Invalid\x20--','7mvoJQQ','\x20is\x20required\x20for\x20`',':\x20expected\x20','\x20is\x20allowed,\x20found:\x20','validation','364086RTeCTA','241272PqlayZ','2980640RqhzpG','Remove\x20all\x20but\x20one.','9351EsLgPY','48208gfrYkD','Provide\x20one\x20of:\x20','filter','Flags\x20','Only\x20one\x20of\x20','Exactly\x20one\x20of\x20','262815RLZLrO','880ttlUAA'];a16_0x3210=function(){return _0x2d60ba;};return a16_0x3210();}export function requireAnyOf(_0x2334e8,_0x2756bb,_0x3c4eb3){const _0x5a9a6c=a16_0x5164;if(!_0x2756bb['some'](_0xb9227b=>isSet(_0x2334e8,_0xb9227b)))throw CliErrors[_0x5a9a6c(0x1bd)](_0x5a9a6c(0x1b7)+fmtNames(_0x2756bb)+'\x20is\x20required\x20for\x20`'+_0x3c4eb3+'`.',_0x5a9a6c(0x1a7)+fmtNames(_0x2756bb));}export function mutuallyExclusive(_0x4c4aee,_0x1a8086,_0x17a68e){const _0x36c936=a16_0x5164,_0x37d4b7=_0x1a8086[_0x36c936(0x1a8)](_0x2ec1d2=>isSet(_0x4c4aee,_0x2ec1d2));if(_0x37d4b7['length']>0x1)throw CliErrors[_0x36c936(0x1bd)](_0x36c936(0x1a9)+fmtNames(_0x37d4b7)+_0x36c936(0x1b4)+_0x17a68e+'`.',_0x36c936(0x1b6)+fmtNames(_0x1a8086));}export function validatePattern(_0x236195,_0x57837e,_0x31ea47,_0x3f47ea){const _0x19f320=a16_0x5164,_0x1f8c89=_0x236195[_0x19f320(0x1af)](_0x57837e);if(_0x1f8c89&&!_0x31ea47[_0x19f320(0x1b1)](_0x1f8c89))throw CliErrors['validation'](_0x19f320(0x1b8)+_0x57837e+_0x19f320(0x1bb)+_0x3f47ea+_0x19f320(0x1b5)+_0x1f8c89+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x30009a=a17_0x34e8;(function(_0x8aa9d5,_0x189458){const _0x1a7bef=a17_0x34e8,_0x4a5af4=_0x8aa9d5();while(!![]){try{const _0x55aa11=parseInt(_0x1a7bef(0x13a))/0x1*(-parseInt(_0x1a7bef(0x126))/0x2)+-parseInt(_0x1a7bef(0x12e))/0x3+parseInt(_0x1a7bef(0x133))/0x4*(-parseInt(_0x1a7bef(0x12f))/0x5)+parseInt(_0x1a7bef(0x138))/0x6*(-parseInt(_0x1a7bef(0x137))/0x7)+-parseInt(_0x1a7bef(0x136))/0x8*(parseInt(_0x1a7bef(0x128))/0x9)+-parseInt(_0x1a7bef(0x12c))/0xa*(-parseInt(_0x1a7bef(0x131))/0xb)+parseInt(_0x1a7bef(0x13e))/0xc;if(_0x55aa11===_0x189458)break;else _0x4a5af4['push'](_0x4a5af4['shift']());}catch(_0x3a4f0d){_0x4a5af4['push'](_0x4a5af4['shift']());}}}(a17_0x3b0a,0x62ad4));function a17_0x34e8(_0x3b8c13,_0x16f4b4){_0x3b8c13=_0x3b8c13-0x126;const _0x3b0aa8=a17_0x3b0a();let _0x34e8ee=_0x3b0aa8[_0x3b8c13];return _0x34e8ee;}export const CODE_FLAG={'name':a17_0x30009a(0x135),'type':'string','required':!![],'description':a17_0x30009a(0x12b),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x30009a(0x129)}};function a17_0x3b0a(){const _0x577ee1=['boolean','1504419dpSaHl','1135vfhQew','string','11sTvRwU','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','7868ckSEfE','Return\x20full\x20raw\x20response\x20object','code','120ytxuFn','7aCRKNn','1522206ZkrBHU','verbose','27061cioAds','sqlcode','name','number','25797888YHjrSF','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','58RTAkCK','Resource\x20name\x20for\x20lookup','248013OEVXZD','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20ID','Dataset\x20code\x20(32-char\x20hex\x20UUID)','6541630SUkvck'];a17_0x3b0a=function(){return _0x577ee1;};return a17_0x3b0a();}export const SQLCODE_FLAG={'name':a17_0x30009a(0x13b),'type':a17_0x30009a(0x130),'required':!![],'description':a17_0x30009a(0x13f),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x30009a(0x132)}};export const VERBOSE_FLAG={'name':a17_0x30009a(0x139),'type':a17_0x30009a(0x12d),'description':a17_0x30009a(0x134)};export const PARAMS_FLAG={'name':'params','type':a17_0x30009a(0x130),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a17_0x30009a(0x13c),'type':a17_0x30009a(0x130),'description':a17_0x30009a(0x127)};export const ID_FLAG={'name':'id','type':a17_0x30009a(0x13d),'required':!![],'description':a17_0x30009a(0x12a)};
1
+ const a17_0x57dc3c=a17_0x32b3;(function(_0x136585,_0x930646){const _0x2d233e=a17_0x32b3,_0x37ea04=_0x136585();while(!![]){try{const _0x5e6eff=-parseInt(_0x2d233e(0x120))/0x1+parseInt(_0x2d233e(0x11d))/0x2+-parseInt(_0x2d233e(0x121))/0x3*(-parseInt(_0x2d233e(0x119))/0x4)+-parseInt(_0x2d233e(0x129))/0x5*(parseInt(_0x2d233e(0x117))/0x6)+-parseInt(_0x2d233e(0x11f))/0x7*(-parseInt(_0x2d233e(0x128))/0x8)+parseInt(_0x2d233e(0x116))/0x9+-parseInt(_0x2d233e(0x11b))/0xa;if(_0x5e6eff===_0x930646)break;else _0x37ea04['push'](_0x37ea04['shift']());}catch(_0x283921){_0x37ea04['push'](_0x37ea04['shift']());}}}(a17_0x2b24,0xf2468));export const CODE_FLAG={'name':a17_0x57dc3c(0x126),'type':a17_0x57dc3c(0x115),'required':!![],'description':a17_0x57dc3c(0x127),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x57dc3c(0x123)}};export const SQLCODE_FLAG={'name':a17_0x57dc3c(0x118),'type':a17_0x57dc3c(0x115),'required':!![],'description':a17_0x57dc3c(0x11e),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a17_0x57dc3c(0x12a),'description':a17_0x57dc3c(0x124)};function a17_0x2b24(){const _0x140830=['sqlcode','2744xrvteb','Resource\x20ID','25538470wvmNNe','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2903588wantDf','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','7763dUMHXb','1373143LwhzcQ','5493revLUi','params','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Return\x20full\x20raw\x20response\x20object','number','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','7464rQNEfh','10615tdeGCa','boolean','string','13762899hcVCrG','996NrGvXP'];a17_0x2b24=function(){return _0x140830;};return a17_0x2b24();}export const PARAMS_FLAG={'name':a17_0x57dc3c(0x122),'type':a17_0x57dc3c(0x115),'description':a17_0x57dc3c(0x11c)};function a17_0x32b3(_0x131e96,_0x1ca828){_0x131e96=_0x131e96-0x115;const _0x2b244c=a17_0x2b24();let _0x32b3d1=_0x2b244c[_0x131e96];return _0x32b3d1;}export const NAME_FLAG={'name':'name','type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a17_0x57dc3c(0x125),'required':!![],'description':a17_0x57dc3c(0x11a)};
@@ -1 +1 @@
1
- const a18_0x41a46e=a18_0x1038;(function(_0x38b392,_0xaf9b8d){const _0x9dbd77=a18_0x1038,_0x4753da=_0x38b392();while(!![]){try{const _0x5b1b1c=parseInt(_0x9dbd77(0x12d))/0x1*(parseInt(_0x9dbd77(0x14d))/0x2)+parseInt(_0x9dbd77(0x147))/0x3*(parseInt(_0x9dbd77(0x152))/0x4)+parseInt(_0x9dbd77(0x125))/0x5*(-parseInt(_0x9dbd77(0x127))/0x6)+-parseInt(_0x9dbd77(0x130))/0x7*(parseInt(_0x9dbd77(0x11b))/0x8)+parseInt(_0x9dbd77(0x12a))/0x9+parseInt(_0x9dbd77(0x11f))/0xa*(-parseInt(_0x9dbd77(0x14e))/0xb)+parseInt(_0x9dbd77(0x118))/0xc;if(_0x5b1b1c===_0xaf9b8d)break;else _0x4753da['push'](_0x4753da['shift']());}catch(_0xc8e59e){_0x4753da['push'](_0x4753da['shift']());}}}(a18_0x5404,0x6ad76));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_0x41a46e(0x120),'type':a18_0x41a46e(0x114),'description':a18_0x41a46e(0x138),'default':![]};function a18_0x5404(){const _0xa89fb5=['7phxoYG','\x20\x20project:\x20','Deleted\x20`','project-or-global-explicit','pretty','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20\x22','object','Write\x20to\x20global\x20config','Key\x20\x22','\x20config\x20delete\x20<key>\x20[--global]','Missing\x20key\x20argument.','Missing\x20key\x20or\x20value.','key','Value\x20to\x20assign','value','keys','alias','appcode','join','raw','\x22.\x20Allowed:\x20','length','114tDxEQg','log',';\x20apps.<alias>.appcode','split','Settable\x20keys:\x20','isArray','1479688WZxHsu','3925537oQfkWO','Delete\x20a\x20config\x20value','field','read','42548jDqSqR','args','set','validation','(none)','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','boolean','apps','Usage:\x20','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','6234852WQzyQS','config','\x20config\x20set\x20<key>\x20<value>\x20[--global]','3367016JNEQZe','stringify','format','Key\x20not\x20found:\x20','20GqWFrA','global','\x20config\x20get\x20<key>','bool','pageSize','riskLevel','3485KopSpO','\x22\x20is\x20not\x20settable.','5238TdBmJn','\x20\x20global:\x20\x20','trim','4653837VAbcLT','../../context.js','Get\x20a\x20config\x20value','1jBBQwn','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','includes'];a18_0x5404=function(){return _0xa89fb5;};return a18_0x5404();}function parseAliasAppcodeSetKey(_0x45fe2b){const _0x2fed7d=a18_0x41a46e,_0x4028e2=_0x45fe2b[_0x2fed7d(0x14a)]('.');if(_0x4028e2[_0x2fed7d(0x146)]!==0x3||_0x4028e2[0x0]!==_0x2fed7d(0x115)||_0x4028e2[0x2]!=='appcode')return undefined;const _0x126f7d=_0x4028e2[0x1]?.[_0x2fed7d(0x129)]();return _0x126f7d?_0x126f7d:undefined;}function parseAliasDeleteKey(_0x15f5a3){const _0x3ed7e9=a18_0x41a46e,_0x5e10d5=_0x15f5a3['split']('.');if(_0x5e10d5[_0x3ed7e9(0x146)]===0x2&&_0x5e10d5[0x0]===_0x3ed7e9(0x115)){const _0x112b64=_0x5e10d5[0x1]?.[_0x3ed7e9(0x129)]();return _0x112b64?{'alias':_0x112b64}:undefined;}if(_0x5e10d5['length']===0x3&&_0x5e10d5[0x0]===_0x3ed7e9(0x115)&&_0x5e10d5[0x2]===_0x3ed7e9(0x142)){const _0x35b342=_0x5e10d5[0x1]?.['trim']();return _0x35b342?{'alias':_0x35b342,'field':_0x3ed7e9(0x142)}:undefined;}return undefined;}function a18_0x1038(_0xb3d338,_0x44419e){_0xb3d338=_0xb3d338-0x10f;const _0x540444=a18_0x5404();let _0x103813=_0x540444[_0xb3d338];return _0x103813;}function setLocalAppAlias(_0x2937be,_0x1799e8,_0x555301){const _0x2ca6f7=a18_0x41a46e,_0x44ad5a=_0x2937be[_0x2ca6f7(0x115)]&&typeof _0x2937be[_0x2ca6f7(0x115)]===_0x2ca6f7(0x137)&&!Array[_0x2ca6f7(0x14c)](_0x2937be[_0x2ca6f7(0x115)])?_0x2937be[_0x2ca6f7(0x115)]:{},_0x1e14a7=_0x44ad5a[_0x1799e8]&&typeof _0x44ad5a[_0x1799e8]===_0x2ca6f7(0x137)&&!Array['isArray'](_0x44ad5a[_0x1799e8])?_0x44ad5a[_0x1799e8]:{};_0x1e14a7[_0x2ca6f7(0x142)]=_0x555301,_0x44ad5a[_0x1799e8]=_0x1e14a7,_0x2937be[_0x2ca6f7(0x115)]=_0x44ad5a;}function deleteLocalAppAlias(_0x1009f6,_0x2b7108){const _0x5ec84c=a18_0x41a46e;if(!_0x1009f6[_0x5ec84c(0x115)]||typeof _0x1009f6[_0x5ec84c(0x115)]!==_0x5ec84c(0x137)||Array[_0x5ec84c(0x14c)](_0x1009f6['apps']))return![];const _0x4d009c=_0x1009f6[_0x5ec84c(0x115)],_0x734fd2=_0x4d009c[_0x2b7108['alias']];if(!_0x734fd2||typeof _0x734fd2!=='object'||Array[_0x5ec84c(0x14c)](_0x734fd2))return![];if(!_0x2b7108[_0x5ec84c(0x150)])return delete _0x4d009c[_0x2b7108[_0x5ec84c(0x141)]],!![];if(!(_0x2b7108[_0x5ec84c(0x150)]in _0x734fd2))return![];return delete _0x734fd2[_0x2b7108['field']],Object[_0x5ec84c(0x140)](_0x734fd2)[_0x5ec84c(0x146)]===0x0&&delete _0x4d009c[_0x2b7108['alias']],!![];}const listDef={'service':'config','command':'list','description':'List\x20current\x20config','risk':a18_0x41a46e(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x171a16){const _0x58d243=a18_0x41a46e,{buildConfigFromFlags:_0x417b86}=await import(_0x58d243(0x12b)),_0x27c621=_0x417b86({}),_0x399b13=getProjectConfigPath(),_0x2a851a=resolveWriteConfigPath('global');if(_0x171a16[_0x58d243(0x11d)]===_0x58d243(0x134))return{'ok':!![],'message':_0x58d243(0x12e)+(JSON[_0x58d243(0x11c)](_0x27c621[_0x58d243(0x144)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x58d243(0x131)+(_0x399b13??_0x58d243(0x112))+'\x0a')+(_0x58d243(0x128)+_0x2a851a)};return{'ok':!![],'data':{'effective':_0x27c621['raw'],'configFiles':{'project':_0x399b13??null,'global':_0x2a851a}}};}},getDef={'service':a18_0x41a46e(0x119),'command':'get','description':a18_0x41a46e(0x12c),'risk':a18_0x41a46e(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x41a46e(0x13d),'description':a18_0x41a46e(0x117),'required':!![]}],'flags':[],async 'execute'(_0x4f2dfc){const _0x559fc1=a18_0x41a46e,_0x41e363=_0x4f2dfc['args'][0x0];if(!_0x41e363)throw CliErrors['validation'](_0x559fc1(0x13b),_0x559fc1(0x116)+CLI_BIN_NAME+_0x559fc1(0x121));const {buildConfigFromFlags:_0x25ad9d}=await import(_0x559fc1(0x12b)),{raw:_0xe38fa3}=_0x25ad9d({});if(_0x41e363['includes']('.')){const _0x4106c4=_0x41e363[_0x559fc1(0x14a)]('.');let _0x15cc23=_0xe38fa3;for(const _0x33ce16 of _0x4106c4){if(_0x15cc23==null||typeof _0x15cc23!==_0x559fc1(0x137))throw CliErrors[_0x559fc1(0x111)](_0x559fc1(0x11e)+_0x41e363);_0x15cc23=_0x15cc23[_0x33ce16];}if(_0x15cc23===undefined)throw CliErrors[_0x559fc1(0x111)](_0x559fc1(0x11e)+_0x41e363);return console[_0x559fc1(0x148)](typeof _0x15cc23===_0x559fc1(0x137)?JSON[_0x559fc1(0x11c)](_0x15cc23,null,0x2):String(_0x15cc23)),{'ok':!![]};}const _0x4b062a=_0xe38fa3[_0x41e363];if(_0x4b062a===undefined)throw CliErrors[_0x559fc1(0x111)](_0x559fc1(0x11e)+_0x41e363);return console[_0x559fc1(0x148)](typeof _0x4b062a==='object'?JSON['stringify'](_0x4b062a,null,0x2):String(_0x4b062a)),{'ok':!![]};}},setDef={'service':'config','command':a18_0x41a46e(0x110),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x41a46e(0x13d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x41a46e(0x13f),'description':a18_0x41a46e(0x13e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xb755ea){const _0x409237=a18_0x41a46e,_0x37595b=_0xb755ea[_0x409237(0x10f)][0x0],_0x101fa1=_0xb755ea[_0x409237(0x10f)][0x1];if(!_0x37595b||_0x101fa1===undefined)throw CliErrors[_0x409237(0x111)](_0x409237(0x13c),_0x409237(0x116)+CLI_BIN_NAME+_0x409237(0x11a));if(ENUM_KEYS[_0x37595b]&&!ENUM_KEYS[_0x37595b][_0x409237(0x12f)](_0x101fa1))throw CliErrors['validation'](_0x409237(0x136)+_0x37595b+_0x409237(0x145)+ENUM_KEYS[_0x37595b][_0x409237(0x143)](',\x20'));if(_0x37595b===_0x409237(0x124))throw CliErrors[_0x409237(0x111)](_0x409237(0x113));if(_0x37595b===_0x409237(0x123)){const _0x3a688d=Number(_0x101fa1);if(isNaN(_0x3a688d)||_0x3a688d<=0x0)throw CliErrors[_0x409237(0x111)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x346058=resolveWriteScope({'explicitGlobal':_0xb755ea[_0x409237(0x122)]('global'),'policy':_0x409237(0x133)}),_0x3cb548=toScopeFlags(_0x346058),_0x3e794a=readScopedConfig(_0x3cb548),_0x537954=parseAliasAppcodeSetKey(_0x37595b);if(!_0x537954&&!isTopLevelConfigKey(_0x37595b))throw CliErrors['validation'](_0x409237(0x135)+_0x37595b+_0x409237(0x126),_0x409237(0x14b)+getTopLevelConfigKeySummary()+_0x409237(0x149));return _0x537954?setLocalAppAlias(_0x3e794a,_0x537954,_0x101fa1):_0x3e794a[_0x37595b]=_0x37595b===_0x409237(0x123)?Number(_0x101fa1):_0x101fa1,console[_0x409237(0x148)]('Set\x20`'+_0x37595b+'`\x20=\x20\x22'+_0x101fa1+'\x22'+(_0x346058===_0x409237(0x120)?'\x20(global)':'')),writeScopedConfig(_0x3e794a,_0x3cb548),{'ok':!![]};}},deleteDef={'service':a18_0x41a46e(0x119),'command':'delete','description':a18_0x41a46e(0x14f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x41a46e(0x13d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x17a9e2){const _0xfe049=a18_0x41a46e,_0x3999f6=_0x17a9e2[_0xfe049(0x10f)][0x0];if(!_0x3999f6)throw CliErrors[_0xfe049(0x111)](_0xfe049(0x13b),'Usage:\x20'+CLI_BIN_NAME+_0xfe049(0x13a));const _0x51291f=resolveWriteScope({'explicitGlobal':_0x17a9e2[_0xfe049(0x122)](_0xfe049(0x120)),'policy':'project-or-global-explicit'}),_0x4bdb94=toScopeFlags(_0x51291f),_0x35cd4f=readScopedConfig(_0x4bdb94),_0x42d9b4=parseAliasDeleteKey(_0x3999f6);if(_0x42d9b4){if(!deleteLocalAppAlias(_0x35cd4f,_0x42d9b4))throw CliErrors['validation'](_0xfe049(0x11e)+_0x3999f6);return console[_0xfe049(0x148)](_0xfe049(0x132)+_0x3999f6+'`'+(_0x51291f==='global'?'\x20(global)':'')),writeScopedConfig(_0x35cd4f,_0x4bdb94),{'ok':!![]};}if(_0x35cd4f[_0x3999f6]===undefined)throw CliErrors[_0xfe049(0x111)](_0xfe049(0x139)+_0x3999f6+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x35cd4f[_0x3999f6],console[_0xfe049(0x148)]('Deleted\x20`'+_0x3999f6+'`'+(_0x51291f===_0xfe049(0x120)?'\x20(global)':'')),writeScopedConfig(_0x35cd4f,_0x4bdb94),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a18_0x36548d=a18_0x4f61;function a18_0x4f61(_0x10b5c4,_0x58f415){_0x10b5c4=_0x10b5c4-0x193;const _0x595fc0=a18_0x595f();let _0x4f618f=_0x595fc0[_0x10b5c4];return _0x4f618f;}(function(_0x3e5231,_0x90468b){const _0x4da6e7=a18_0x4f61,_0x4f71d2=_0x3e5231();while(!![]){try{const _0x62f20f=-parseInt(_0x4da6e7(0x1a5))/0x1+parseInt(_0x4da6e7(0x1a0))/0x2*(parseInt(_0x4da6e7(0x1ca))/0x3)+-parseInt(_0x4da6e7(0x1a9))/0x4*(parseInt(_0x4da6e7(0x19e))/0x5)+-parseInt(_0x4da6e7(0x1cb))/0x6+-parseInt(_0x4da6e7(0x1a6))/0x7+parseInt(_0x4da6e7(0x1aa))/0x8+parseInt(_0x4da6e7(0x1bd))/0x9*(parseInt(_0x4da6e7(0x1b1))/0xa);if(_0x62f20f===_0x90468b)break;else _0x4f71d2['push'](_0x4f71d2['shift']());}catch(_0x2deac2){_0x4f71d2['push'](_0x4f71d2['shift']());}}}(a18_0x595f,0xcb62d));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';function a18_0x595f(){const _0x110dab=['90FyeYhR','../../context.js','Missing\x20key\x20or\x20value.','boolean','apps','Set\x20a\x20config\x20value','(none)','\x20config\x20delete\x20<key>\x20[--global]','validation','bool','project-or-global-explicit','trim','4596948vKcSRV','split','read','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Get\x20a\x20config\x20value','Delete\x20a\x20config\x20value','\x20config\x20get\x20<key>','Deleted\x20`','\x20\x20project:\x20','Key\x20\x22','log','format',';\x20apps.<alias>.appcode','3tIymGy','7060332ooYJyR','args','write','key','raw','Top-level\x20key\x20\x22','`\x20=\x20\x22','config','global','delete','List\x20current\x20config','\x22\x20is\x20not\x20settable.','Key\x20not\x20found:\x20','set','Set\x20`','\x20(global)','alias','pretty','\x20\x20global:\x20\x20','value','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','includes','Usage:\x20','Settable\x20keys:\x20','Missing\x20key\x20argument.','Config\x20files:\x0a','5cFlPQQ','join','770378HTuBZp','Value\x20to\x20assign','Write\x20to\x20global\x20config','length','appcode','1420365oPHmUm','9427075cEebyE','stringify','pageSize\x20must\x20be\x20a\x20positive\x20number','4573972qckStY','7505896ZdORGl','riskLevel','isArray','object','pageSize','field','Invalid\x20value\x20for\x20\x22'];a18_0x595f=function(){return _0x110dab;};return a18_0x595f();}const GLOBAL_FLAG={'name':a18_0x36548d(0x1d3),'type':a18_0x36548d(0x1b4),'description':a18_0x36548d(0x1a2),'default':![]};function parseAliasAppcodeSetKey(_0x10e05a){const _0x31ec75=a18_0x36548d,_0x1ebc42=_0x10e05a[_0x31ec75(0x1be)]('.');if(_0x1ebc42[_0x31ec75(0x1a3)]!==0x3||_0x1ebc42[0x0]!==_0x31ec75(0x1b5)||_0x1ebc42[0x2]!==_0x31ec75(0x1a4))return undefined;const _0x3fe7ec=_0x1ebc42[0x1]?.[_0x31ec75(0x1bc)]();return _0x3fe7ec?_0x3fe7ec:undefined;}function parseAliasDeleteKey(_0x2107ac){const _0x106d20=a18_0x36548d,_0x152030=_0x2107ac[_0x106d20(0x1be)]('.');if(_0x152030['length']===0x2&&_0x152030[0x0]==='apps'){const _0x8b153d=_0x152030[0x1]?.[_0x106d20(0x1bc)]();return _0x8b153d?{'alias':_0x8b153d}:undefined;}if(_0x152030[_0x106d20(0x1a3)]===0x3&&_0x152030[0x0]==='apps'&&_0x152030[0x2]===_0x106d20(0x1a4)){const _0x604b8e=_0x152030[0x1]?.[_0x106d20(0x1bc)]();return _0x604b8e?{'alias':_0x604b8e,'field':_0x106d20(0x1a4)}:undefined;}return undefined;}function setLocalAppAlias(_0x774d1e,_0x447565,_0x418919){const _0x51306d=a18_0x36548d,_0x187051=_0x774d1e[_0x51306d(0x1b5)]&&typeof _0x774d1e[_0x51306d(0x1b5)]===_0x51306d(0x1ad)&&!Array[_0x51306d(0x1ac)](_0x774d1e[_0x51306d(0x1b5)])?_0x774d1e['apps']:{},_0x2ad0a9=_0x187051[_0x447565]&&typeof _0x187051[_0x447565]===_0x51306d(0x1ad)&&!Array['isArray'](_0x187051[_0x447565])?_0x187051[_0x447565]:{};_0x2ad0a9[_0x51306d(0x1a4)]=_0x418919,_0x187051[_0x447565]=_0x2ad0a9,_0x774d1e['apps']=_0x187051;}function deleteLocalAppAlias(_0x5b0ff2,_0x5002d4){const _0x1b4179=a18_0x36548d;if(!_0x5b0ff2[_0x1b4179(0x1b5)]||typeof _0x5b0ff2[_0x1b4179(0x1b5)]!==_0x1b4179(0x1ad)||Array[_0x1b4179(0x1ac)](_0x5b0ff2['apps']))return![];const _0x3e1a20=_0x5b0ff2[_0x1b4179(0x1b5)],_0x248f63=_0x3e1a20[_0x5002d4[_0x1b4179(0x194)]];if(!_0x248f63||typeof _0x248f63!==_0x1b4179(0x1ad)||Array[_0x1b4179(0x1ac)](_0x248f63))return![];if(!_0x5002d4[_0x1b4179(0x1af)])return delete _0x3e1a20[_0x5002d4['alias']],!![];if(!(_0x5002d4[_0x1b4179(0x1af)]in _0x248f63))return![];return delete _0x248f63[_0x5002d4['field']],Object['keys'](_0x248f63)[_0x1b4179(0x1a3)]===0x0&&delete _0x3e1a20[_0x5002d4[_0x1b4179(0x194)]],!![];}const listDef={'service':a18_0x36548d(0x1d2),'command':'list','description':a18_0x36548d(0x1d5),'risk':a18_0x36548d(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x562025){const _0x54e06d=a18_0x36548d,{buildConfigFromFlags:_0x30f552}=await import(_0x54e06d(0x1b2)),_0x1470f0=_0x30f552({}),_0x1582fa=getProjectConfigPath(),_0x5b3dd6=resolveWriteConfigPath('global');if(_0x562025[_0x54e06d(0x1c8)]===_0x54e06d(0x195))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x54e06d(0x1a7)](_0x1470f0['raw'],null,0x2)+'\x0a\x0a')+_0x54e06d(0x19d)+(_0x54e06d(0x1c5)+(_0x1582fa??_0x54e06d(0x1b7))+'\x0a')+(_0x54e06d(0x196)+_0x5b3dd6)};return{'ok':!![],'data':{'effective':_0x1470f0[_0x54e06d(0x1cf)],'configFiles':{'project':_0x1582fa??null,'global':_0x5b3dd6}}};}},getDef={'service':a18_0x36548d(0x1d2),'command':'get','description':a18_0x36548d(0x1c1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x36548d(0x1ce),'description':a18_0x36548d(0x198),'required':!![]}],'flags':[],async 'execute'(_0x260214){const _0xa5aeae=a18_0x36548d,_0x8bfe69=_0x260214[_0xa5aeae(0x1cc)][0x0];if(!_0x8bfe69)throw CliErrors[_0xa5aeae(0x1b9)](_0xa5aeae(0x19c),_0xa5aeae(0x19a)+CLI_BIN_NAME+_0xa5aeae(0x1c3));const {buildConfigFromFlags:_0x152adf}=await import(_0xa5aeae(0x1b2)),{raw:_0x2863a2}=_0x152adf({});if(_0x8bfe69['includes']('.')){const _0x15ae87=_0x8bfe69['split']('.');let _0x2ed55e=_0x2863a2;for(const _0x5d5662 of _0x15ae87){if(_0x2ed55e==null||typeof _0x2ed55e!==_0xa5aeae(0x1ad))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x8bfe69);_0x2ed55e=_0x2ed55e[_0x5d5662];}if(_0x2ed55e===undefined)throw CliErrors[_0xa5aeae(0x1b9)](_0xa5aeae(0x1d7)+_0x8bfe69);return console['log'](typeof _0x2ed55e===_0xa5aeae(0x1ad)?JSON[_0xa5aeae(0x1a7)](_0x2ed55e,null,0x2):String(_0x2ed55e)),{'ok':!![]};}const _0x5032f3=_0x2863a2[_0x8bfe69];if(_0x5032f3===undefined)throw CliErrors[_0xa5aeae(0x1b9)](_0xa5aeae(0x1d7)+_0x8bfe69);return console[_0xa5aeae(0x1c7)](typeof _0x5032f3==='object'?JSON[_0xa5aeae(0x1a7)](_0x5032f3,null,0x2):String(_0x5032f3)),{'ok':!![]};}},setDef={'service':a18_0x36548d(0x1d2),'command':a18_0x36548d(0x1d8),'description':a18_0x36548d(0x1b6),'risk':a18_0x36548d(0x1cd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x36548d(0x1ce),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x36548d(0x197),'description':a18_0x36548d(0x1a1),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x111574){const _0x5b2104=a18_0x36548d,_0x861179=_0x111574[_0x5b2104(0x1cc)][0x0],_0x4ce769=_0x111574['args'][0x1];if(!_0x861179||_0x4ce769===undefined)throw CliErrors[_0x5b2104(0x1b9)](_0x5b2104(0x1b3),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x861179]&&!ENUM_KEYS[_0x861179][_0x5b2104(0x199)](_0x4ce769))throw CliErrors[_0x5b2104(0x1b9)](_0x5b2104(0x1b0)+_0x861179+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x861179][_0x5b2104(0x19f)](',\x20'));if(_0x861179===_0x5b2104(0x1ab))throw CliErrors[_0x5b2104(0x1b9)](_0x5b2104(0x1c0));if(_0x861179===_0x5b2104(0x1ae)){const _0x7622e7=Number(_0x4ce769);if(isNaN(_0x7622e7)||_0x7622e7<=0x0)throw CliErrors['validation'](_0x5b2104(0x1a8));}const _0x9d8a82=resolveWriteScope({'explicitGlobal':_0x111574[_0x5b2104(0x1ba)](_0x5b2104(0x1d3)),'policy':_0x5b2104(0x1bb)}),_0x516053=toScopeFlags(_0x9d8a82),_0x53f5e9=readScopedConfig(_0x516053),_0x44dcce=parseAliasAppcodeSetKey(_0x861179);if(!_0x44dcce&&!isTopLevelConfigKey(_0x861179))throw CliErrors[_0x5b2104(0x1b9)](_0x5b2104(0x1d0)+_0x861179+_0x5b2104(0x1d6),_0x5b2104(0x19b)+getTopLevelConfigKeySummary()+_0x5b2104(0x1c9));return _0x44dcce?setLocalAppAlias(_0x53f5e9,_0x44dcce,_0x4ce769):_0x53f5e9[_0x861179]=_0x861179==='pageSize'?Number(_0x4ce769):_0x4ce769,console[_0x5b2104(0x1c7)](_0x5b2104(0x1d9)+_0x861179+_0x5b2104(0x1d1)+_0x4ce769+'\x22'+(_0x9d8a82===_0x5b2104(0x1d3)?_0x5b2104(0x193):'')),writeScopedConfig(_0x53f5e9,_0x516053),{'ok':!![]};}},deleteDef={'service':a18_0x36548d(0x1d2),'command':a18_0x36548d(0x1d4),'description':a18_0x36548d(0x1c2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x36548d(0x1ce),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2470fa){const _0x1fb9fa=a18_0x36548d,_0x31442c=_0x2470fa[_0x1fb9fa(0x1cc)][0x0];if(!_0x31442c)throw CliErrors['validation'](_0x1fb9fa(0x19c),'Usage:\x20'+CLI_BIN_NAME+_0x1fb9fa(0x1b8));const _0x2a83c0=resolveWriteScope({'explicitGlobal':_0x2470fa['bool'](_0x1fb9fa(0x1d3)),'policy':_0x1fb9fa(0x1bb)}),_0x960d0=toScopeFlags(_0x2a83c0),_0x276576=readScopedConfig(_0x960d0),_0x432b0e=parseAliasDeleteKey(_0x31442c);if(_0x432b0e){if(!deleteLocalAppAlias(_0x276576,_0x432b0e))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x31442c);return console[_0x1fb9fa(0x1c7)](_0x1fb9fa(0x1c4)+_0x31442c+'`'+(_0x2a83c0==='global'?'\x20(global)':'')),writeScopedConfig(_0x276576,_0x960d0),{'ok':!![]};}if(_0x276576[_0x31442c]===undefined)throw CliErrors['validation'](_0x1fb9fa(0x1c6)+_0x31442c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x276576[_0x31442c],console[_0x1fb9fa(0x1c7)](_0x1fb9fa(0x1c4)+_0x31442c+'`'+(_0x2a83c0===_0x1fb9fa(0x1d3)?_0x1fb9fa(0x193):'')),writeScopedConfig(_0x276576,_0x960d0),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x58435f,_0x30c825){var _0x42f721=a19_0x1c1e,_0x3fca14=_0x58435f();while(!![]){try{var _0x20bd4d=-parseInt(_0x42f721(0x152))/0x1*(parseInt(_0x42f721(0x14b))/0x2)+-parseInt(_0x42f721(0x150))/0x3+-parseInt(_0x42f721(0x151))/0x4*(parseInt(_0x42f721(0x14d))/0x5)+-parseInt(_0x42f721(0x14c))/0x6*(parseInt(_0x42f721(0x14f))/0x7)+parseInt(_0x42f721(0x14a))/0x8*(-parseInt(_0x42f721(0x148))/0x9)+parseInt(_0x42f721(0x153))/0xa*(-parseInt(_0x42f721(0x14e))/0xb)+parseInt(_0x42f721(0x149))/0xc;if(_0x20bd4d===_0x30c825)break;else _0x3fca14['push'](_0x3fca14['shift']());}catch(_0x87e827){_0x3fca14['push'](_0x3fca14['shift']());}}}(a19_0x50eb,0xe7a45));import{CLI_BIN_NAME}from'../../constant/cli.js';function a19_0x50eb(){var _0x4beb3e=['3654056KkOqce','6028YbotGc','714FKyfZm','10uoHhQI','15433aWwfNR','86716mwlQAb','3161913eslXGa','1739344ifmVMA','337byBhof','1100jnYnEP','18aCOGTI','77162184APSsDC'];a19_0x50eb=function(){return _0x4beb3e;};return a19_0x50eb();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a19_0x1c1e(_0x2e4d7a,_0x4dd176){_0x2e4d7a=_0x2e4d7a-0x148;var _0x50eb20=a19_0x50eb();var _0x1c1eee=_0x50eb20[_0x2e4d7a];return _0x1c1eee;}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(_0x3a8ae4,_0x1a9267){var _0x4c525f=a19_0x4ebf,_0x3a0e6d=_0x3a8ae4();while(!![]){try{var _0x1bd169=parseInt(_0x4c525f(0xef))/0x1*(parseInt(_0x4c525f(0xed))/0x2)+parseInt(_0x4c525f(0xeb))/0x3+parseInt(_0x4c525f(0xea))/0x4+parseInt(_0x4c525f(0xec))/0x5*(-parseInt(_0x4c525f(0xf3))/0x6)+-parseInt(_0x4c525f(0xf1))/0x7+parseInt(_0x4c525f(0xee))/0x8+-parseInt(_0x4c525f(0xf2))/0x9*(parseInt(_0x4c525f(0xf0))/0xa);if(_0x1bd169===_0x1a9267)break;else _0x3a0e6d['push'](_0x3a0e6d['shift']());}catch(_0x4532a5){_0x3a0e6d['push'](_0x3a0e6d['shift']());}}}(a19_0x5c92,0xeddcc));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_0x4ebf(_0x5b6f98,_0x38baa3){_0x5b6f98=_0x5b6f98-0xea;var _0x5c9202=a19_0x5c92();var _0x4ebff9=_0x5c9202[_0x5b6f98];return _0x4ebff9;}function a19_0x5c92(){var _0x58ac16=['13683720nKKAQF','398299tgIqjr','170yHQiNo','1139229GWKlOc','2205999lEgTci','1511166wjoooY','2934408rkzkLA','5750445VZGyJM','5eEmjWC','6QJLAiz'];a19_0x5c92=function(){return _0x58ac16;};return a19_0x5c92();}
@@ -1 +1 @@
1
- const a20_0xd5496d=a20_0x295c;(function(_0x3af099,_0x4d8693){const _0x5756da=a20_0x295c,_0x3dda36=_0x3af099();while(!![]){try{const _0x33657d=-parseInt(_0x5756da(0x1ef))/0x1*(-parseInt(_0x5756da(0x234))/0x2)+parseInt(_0x5756da(0x1f2))/0x3+parseInt(_0x5756da(0x20d))/0x4*(-parseInt(_0x5756da(0x1fc))/0x5)+parseInt(_0x5756da(0x205))/0x6*(parseInt(_0x5756da(0x209))/0x7)+-parseInt(_0x5756da(0x21f))/0x8+parseInt(_0x5756da(0x20a))/0x9+-parseInt(_0x5756da(0x21a))/0xa;if(_0x33657d===_0x4d8693)break;else _0x3dda36['push'](_0x3dda36['shift']());}catch(_0x3eb679){_0x3dda36['push'](_0x3dda36['shift']());}}}(a20_0x46fb,0x8247d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a20_0x295c(_0x35fdc4,_0x5a6fd9){_0x35fdc4=_0x35fdc4-0x1e7;const _0x46fbb7=a20_0x46fb();let _0x295ceb=_0x46fbb7[_0x35fdc4];return _0x295ceb;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':'filter','risk':a20_0xd5496d(0x214),'paramsRequired':![],'description':a20_0xd5496d(0x1f9),'paramsHint':a20_0xd5496d(0x1e8)+a20_0xd5496d(0x227),'helpExtra':[a20_0xd5496d(0x1f5),a20_0xd5496d(0x210),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a20_0xd5496d(0x21d),a20_0xd5496d(0x233),a20_0xd5496d(0x22d),a20_0xd5496d(0x1ff),a20_0xd5496d(0x230),'\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_0xd5496d(0x225),'\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}}','','\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_0xd5496d(0x220),'',a20_0xd5496d(0x229),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a20_0xd5496d(0x1fb),a20_0xd5496d(0x238),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a20_0xd5496d(0x201),a20_0xd5496d(0x235),a20_0xd5496d(0x228),a20_0xd5496d(0x1f0)][a20_0xd5496d(0x208)]('\x0a')},{'command':a20_0xd5496d(0x213),'operation':a20_0xd5496d(0x213),'risk':a20_0xd5496d(0x214),'paramsRequired':!![],'description':a20_0xd5496d(0x22e),'paramsHint':a20_0xd5496d(0x1f4)},{'command':a20_0xd5496d(0x21b),'operation':a20_0xd5496d(0x21b),'risk':a20_0xd5496d(0x204),'paramsRequired':!![],'description':a20_0xd5496d(0x232),'paramsHint':a20_0xd5496d(0x22c)},{'command':a20_0xd5496d(0x226),'operation':a20_0xd5496d(0x226),'risk':a20_0xd5496d(0x204),'paramsRequired':!![],'description':a20_0xd5496d(0x1e7),'paramsHint':a20_0xd5496d(0x207)},{'command':a20_0xd5496d(0x1f7),'operation':a20_0xd5496d(0x1f7),'risk':a20_0xd5496d(0x204),'paramsRequired':!![],'description':a20_0xd5496d(0x212),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a20_0xd5496d(0x22b),'operation':a20_0xd5496d(0x22b),'risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0xd5496d(0x1f4)},{'command':a20_0xd5496d(0x1e9),'operation':a20_0xd5496d(0x1e9),'risk':a20_0xd5496d(0x214),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a20_0xd5496d(0x203)+a20_0xd5496d(0x211),'helpExtra':[a20_0xd5496d(0x1f6),a20_0xd5496d(0x218),a20_0xd5496d(0x1f8),a20_0xd5496d(0x217),'\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_0xd5496d(0x236),a20_0xd5496d(0x216),a20_0xd5496d(0x22a),'',a20_0xd5496d(0x21e),a20_0xd5496d(0x1fe),a20_0xd5496d(0x239),a20_0xd5496d(0x1ee),a20_0xd5496d(0x23a),a20_0xd5496d(0x222),a20_0xd5496d(0x219),'',a20_0xd5496d(0x1f3),a20_0xd5496d(0x20c),a20_0xd5496d(0x231),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a20_0xd5496d(0x200),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a20_0xd5496d(0x208)]('\x0a')}];function a20_0x46fb(){const _0x3c6581=['\x20\x20WHERE\x20OPERATORS','\x20\x20AGGREGATE\x20TYPES','update','\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}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint','\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]','19585NyZPEk','params','\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\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}}','\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\x20PAGINATION','str','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','write','54786oYefVe','code','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','join','21toDgUL','7417035fqcHcC','dryRun','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','48yFzJTq','\x20completed\x20in\x20','\x20on\x20dataset\x20','\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}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Update\x20an\x20existing\x20record','getOne','read','command','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\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\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','6767400qnGOTk','create','description','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20PARAMS\x20STRUCTURE','4133760UfluBN','\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}}]}','/api/{appCode}/','\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}}]','helpExtra','risk','\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}}','batchCreate','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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}','delete','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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}}','Get\x20a\x20single\x20record\x20by\x20ID','data','\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--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}}','2GVepUo','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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}','build','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','aggregate','POST','now','body','operation','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','407343WUBDQE','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Preview:\x20data\x20','1545726iOACUv','\x20\x20EXAMPLES','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'];a20_0x46fb=function(){return _0x3c6581;};return a20_0x46fb();}function makeDataCommand(_0x3be430){const _0x52b7d5=a20_0xd5496d,_0x3ce970='data\x20'+_0x3be430[_0x52b7d5(0x215)],_0x4ae0da={'service':_0x52b7d5(0x22f),'command':_0x3be430[_0x52b7d5(0x215)],'description':_0x3be430[_0x52b7d5(0x21c)],'risk':_0x3be430[_0x52b7d5(0x224)],'helpExtra':_0x3be430[_0x52b7d5(0x223)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3be430[_0x52b7d5(0x1fa)]}],'validate':async _0xb82c2c=>{const _0xd30614=_0x52b7d5;_0x3be430['paramsRequired']&&requireAnyOf(_0xb82c2c,['params'],_0x3ce970),_0x3be430[_0xd30614(0x1ed)]===_0xd30614(0x226)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xb82c2c['str'](_0xd30614(0x1fd))));},async 'execute'(_0x551218){const _0x24030f=_0x52b7d5,_0x19484c=_0x551218[_0x24030f(0x202)](_0x24030f(0x206)),_0x500fcd=_0x3be430[_0x24030f(0x1ed)]===_0x24030f(0x226)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x551218[_0x24030f(0x202)](_0x24030f(0x1fd)))):parseJsonParams(_0x551218[_0x24030f(0x202)]('params'))??{},_0x1d9a1b=Date[_0x24030f(0x1eb)](),_0xe30357=await executeData(_0x19484c,_0x3be430[_0x24030f(0x1ed)],_0x500fcd),_0x5aa0db=Date[_0x24030f(0x1eb)]()-_0x1d9a1b;return{'ok':!![],'data':{'result':_0xe30357,'elapsed':_0x5aa0db},'message':'data\x20'+_0x3be430[_0x24030f(0x215)]+_0x24030f(0x20e)+_0x5aa0db+'ms'};}};return _0x3be430[_0x52b7d5(0x224)]!==_0x52b7d5(0x214)&&(_0x4ae0da[_0x52b7d5(0x20b)]=async _0x2917bd=>{const _0x1a051e=_0x52b7d5,_0x303f8b=_0x2917bd[_0x1a051e(0x202)](_0x1a051e(0x206)),_0x1b9be6=_0x3be430[_0x1a051e(0x1ed)]===_0x1a051e(0x226)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2917bd[_0x1a051e(0x202)](_0x1a051e(0x1fd)))):parseJsonParams(_0x2917bd[_0x1a051e(0x202)]('params'))??{};return dryRun(_0x1a051e(0x1ea),_0x1a051e(0x221)+_0x303f8b+'/'+_0x3be430['operation'])[_0x1a051e(0x1ec)](_0x1b9be6)['description'](_0x1a051e(0x1f1)+_0x3be430['command']+_0x1a051e(0x20f)+_0x303f8b)[_0x1a051e(0x237)]();}),_0x4ae0da;}export const dataDefinitions=specs['map'](makeDataCommand);
1
+ const a20_0x4eb904=a20_0x22bc;(function(_0x2d1df5,_0x490e24){const _0x3a5d6b=a20_0x22bc,_0x566d43=_0x2d1df5();while(!![]){try{const _0x20a70d=-parseInt(_0x3a5d6b(0x1b4))/0x1*(-parseInt(_0x3a5d6b(0x1b6))/0x2)+parseInt(_0x3a5d6b(0x17b))/0x3+parseInt(_0x3a5d6b(0x1aa))/0x4+-parseInt(_0x3a5d6b(0x1a1))/0x5*(parseInt(_0x3a5d6b(0x186))/0x6)+parseInt(_0x3a5d6b(0x1a7))/0x7*(parseInt(_0x3a5d6b(0x1b2))/0x8)+-parseInt(_0x3a5d6b(0x185))/0x9*(-parseInt(_0x3a5d6b(0x184))/0xa)+-parseInt(_0x3a5d6b(0x180))/0xb;if(_0x20a70d===_0x490e24)break;else _0x566d43['push'](_0x566d43['shift']());}catch(_0x16285a){_0x566d43['push'](_0x566d43['shift']());}}}(a20_0x408b,0x8a984));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a20_0x22bc(_0x17111d,_0xd3067d){_0x17111d=_0x17111d-0x173;const _0x408bb0=a20_0x408b();let _0x22bc92=_0x408bb0[_0x17111d];return _0x22bc92;}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_0x4eb904(0x1ae),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a20_0x4eb904(0x1ac)+a20_0x4eb904(0x1c1),'helpExtra':[a20_0x4eb904(0x19a),a20_0x4eb904(0x1a6),a20_0x4eb904(0x1a8),a20_0x4eb904(0x1a9),a20_0x4eb904(0x1a2),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a20_0x4eb904(0x1a3),'\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_0x4eb904(0x177),a20_0x4eb904(0x1b7),'','\x20\x20LOGICAL\x20COMBINATORS',a20_0x4eb904(0x173),a20_0x4eb904(0x18f),'',a20_0x4eb904(0x18a),a20_0x4eb904(0x1b1),a20_0x4eb904(0x190),a20_0x4eb904(0x182),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a20_0x4eb904(0x181),'','\x20\x20PAGINATION',a20_0x4eb904(0x19c),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0x4eb904(0x199)]['join']('\x0a')},{'command':a20_0x4eb904(0x19b),'operation':'getOne','risk':a20_0x4eb904(0x178),'paramsRequired':!![],'description':a20_0x4eb904(0x1a4),'paramsHint':a20_0x4eb904(0x175)},{'command':a20_0x4eb904(0x189),'operation':'create','risk':a20_0x4eb904(0x1a5),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a20_0x4eb904(0x18d),'operation':a20_0x4eb904(0x18d),'risk':a20_0x4eb904(0x1a5),'paramsRequired':!![],'description':a20_0x4eb904(0x1b0),'paramsHint':a20_0x4eb904(0x195)},{'command':'update','operation':a20_0x4eb904(0x1a0),'risk':a20_0x4eb904(0x1a5),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a20_0x4eb904(0x1c2),'operation':'delete','risk':a20_0x4eb904(0x192),'paramsRequired':!![],'description':a20_0x4eb904(0x1bd),'paramsHint':a20_0x4eb904(0x175)},{'command':a20_0x4eb904(0x183),'operation':a20_0x4eb904(0x183),'risk':a20_0x4eb904(0x178),'paramsRequired':![],'description':a20_0x4eb904(0x19d),'paramsHint':a20_0x4eb904(0x1ba)+'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_0x4eb904(0x1bf),a20_0x4eb904(0x174),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a20_0x4eb904(0x18c),'\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\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\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\x20PARAMS\x20STRUCTURE',a20_0x4eb904(0x198),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a20_0x4eb904(0x188),a20_0x4eb904(0x17f),'\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}}]',a20_0x4eb904(0x176),'',a20_0x4eb904(0x1b8),a20_0x4eb904(0x197),a20_0x4eb904(0x1be),'',a20_0x4eb904(0x187),a20_0x4eb904(0x1bc),'',a20_0x4eb904(0x18b)][a20_0x4eb904(0x191)]('\x0a')}];function makeDataCommand(_0x274fa2){const _0x5f1d82=a20_0x4eb904,_0x246ce5=_0x5f1d82(0x1b3)+_0x274fa2['command'],_0x261bee={'service':_0x5f1d82(0x17a),'command':_0x274fa2[_0x5f1d82(0x196)],'description':_0x274fa2[_0x5f1d82(0x1af)],'risk':_0x274fa2[_0x5f1d82(0x19e)],'helpExtra':_0x274fa2[_0x5f1d82(0x194)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x274fa2[_0x5f1d82(0x1c0)]}],'validate':async _0x2e632b=>{const _0x28d0a0=_0x5f1d82;_0x274fa2[_0x28d0a0(0x17c)]&&requireAnyOf(_0x2e632b,[_0x28d0a0(0x1b9)],_0x246ce5),_0x274fa2[_0x28d0a0(0x1bb)]===_0x28d0a0(0x18d)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2e632b['str'](_0x28d0a0(0x1b9))));},async 'execute'(_0x584796){const _0x12e002=_0x5f1d82,_0x2154d=_0x584796['str']('code'),_0x5f08ea=_0x274fa2[_0x12e002(0x1bb)]===_0x12e002(0x18d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x584796[_0x12e002(0x17e)](_0x12e002(0x1b9)))):parseJsonParams(_0x584796[_0x12e002(0x17e)](_0x12e002(0x1b9)))??{},_0x58fe4b=Date['now'](),_0x448c4d=await executeData(_0x2154d,_0x274fa2['operation'],_0x5f08ea),_0x55781d=Date[_0x12e002(0x18e)]()-_0x58fe4b;return{'ok':!![],'data':{'result':_0x448c4d,'elapsed':_0x55781d},'message':_0x12e002(0x1b3)+_0x274fa2[_0x12e002(0x196)]+_0x12e002(0x19f)+_0x55781d+'ms'};}};return _0x274fa2[_0x5f1d82(0x19e)]!==_0x5f1d82(0x178)&&(_0x261bee['dryRun']=async _0x4320c1=>{const _0x103d7e=_0x5f1d82,_0x3a462f=_0x4320c1['str'](_0x103d7e(0x1ab)),_0x57f62f=_0x274fa2[_0x103d7e(0x1bb)]===_0x103d7e(0x18d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4320c1[_0x103d7e(0x17e)](_0x103d7e(0x1b9)))):parseJsonParams(_0x4320c1[_0x103d7e(0x17e)]('params'))??{};return dryRun(_0x103d7e(0x17d),_0x103d7e(0x193)+_0x3a462f+'/'+_0x274fa2[_0x103d7e(0x1bb)])[_0x103d7e(0x179)](_0x57f62f)['description'](_0x103d7e(0x1ad)+_0x274fa2[_0x103d7e(0x196)]+_0x103d7e(0x1b5)+_0x3a462f)['build']();}),_0x261bee;}function a20_0x408b(){const _0x368fff=['params','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','operation','\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','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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\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}','paramsHint','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','delete','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\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}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\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}}','read','body','data','1480806ZytLCC','paramsRequired','POST','str','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','21617684lDyOvV','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}]','aggregate','58280VrHIej','567OnOAJd','220278lcatdO','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','create','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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}','batchCreate','now','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','join','high-risk-write','/api/{appCode}/','helpExtra','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','command','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20WHERE\x20OPERATORS','getOne','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','risk','\x20completed\x20in\x20','update','135ejsApn','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\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}}','Get\x20a\x20single\x20record\x20by\x20ID','write','\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}}','7nBSkiz','\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}}','\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}}','2175440AUSqbF','code','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Preview:\x20data\x20','filter','description','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','8699664lndAzN','data\x20','5sZYLDh','\x20on\x20dataset\x20','412838XAnxAC','\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}}','\x20\x20EXAMPLES'];a20_0x408b=function(){return _0x368fff;};return a20_0x408b();}export const dataDefinitions=specs['map'](makeDataCommand);
@@ -1 +1 @@
1
- const a21_0x3e65a7=a21_0x4fe3;(function(_0x647b48,_0x47e91f){const _0x584ec6=a21_0x4fe3,_0x2861a4=_0x647b48();while(!![]){try{const _0x2f7125=parseInt(_0x584ec6(0x1de))/0x1*(parseInt(_0x584ec6(0x1d8))/0x2)+-parseInt(_0x584ec6(0x1b0))/0x3*(-parseInt(_0x584ec6(0x1dd))/0x4)+-parseInt(_0x584ec6(0x1b3))/0x5*(-parseInt(_0x584ec6(0x1ed))/0x6)+parseInt(_0x584ec6(0x1d4))/0x7+-parseInt(_0x584ec6(0x1e8))/0x8+-parseInt(_0x584ec6(0x1ba))/0x9+-parseInt(_0x584ec6(0x1cb))/0xa;if(_0x2f7125===_0x47e91f)break;else _0x2861a4['push'](_0x2861a4['shift']());}catch(_0x23bb0a){_0x2861a4['push'](_0x2861a4['shift']());}}}(a21_0x219c,0x96bcb));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a21_0x219c(){const _0x42959a=['requestFields','path','modelCode','read','relations','isArray','name','labelField','3902032kALAca','deleted','doType','title','trim','25866VwJSNS','responseBody','options','updateTimeField','modelId','responseFields','requestBody','formatRules','creatorIdField','columnCodeListWithDeleted','29673IonFta','fields','split','1135KmWkZF','string','source','push','filter','allFieldNames','relatedPageInfoList','10325547JKhNvR','dbType','properties','sourceType','tableName','doVersion','str','extend','displayName','method','object','afterScriptId','parse','description','host','appCode','code','3150290aPnYRd','datasetKey','validateRules','dbId','length','allFields','required','beforeScriptId','dbName','4336808WQgnmN','entries','find','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','174446OaFbWR','pkField','map','modifierNameField','indexes','4RptyXP','11NuhCBW','detail'];a21_0x219c=function(){return _0x42959a;};return a21_0x219c();}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3ec6c3){const _0x49870c=a21_0x4fe3;if(_0x3ec6c3[_0x49870c(0x1e9)])return null;const _0x48c577=Boolean(_0x3ec6c3[_0x49870c(0x1c2)]!==undefined||_0x3ec6c3[_0x49870c(0x1ea)]!==undefined);let _0xb41650={};if(!_0x48c577&&typeof _0x3ec6c3['extend']===_0x49870c(0x1b4))try{_0xb41650=JSON[_0x49870c(0x1c6)](_0x3ec6c3[_0x49870c(0x1c1)]);}catch{}const _0x3c3248=_0x48c577?_0x3ec6c3[_0x49870c(0x1e6)]:_0x3ec6c3['code'],_0x57f4b9=_0x48c577?_0x3ec6c3['displayName']:_0x3ec6c3[_0x49870c(0x1e6)],_0x40c29d=_0x48c577?_0x3ec6c3[_0x49870c(0x1ea)]:_0x3ec6c3['type']||_0x3ec6c3['dataType'],_0x57d8e3=_0x48c577?_0x3ec6c3[_0x49870c(0x1d9)]===!![]:_0xb41650[_0x49870c(0x1d9)]===!![],_0x4ecb50=_0x48c577?_0x3ec6c3[_0x49870c(0x1d1)]===!![]:_0xb41650[_0x49870c(0x1d1)]===!![],_0x4ed1d9=_0x48c577?_0x3ec6c3['options']??null:_0xb41650[_0x49870c(0x1ef)]??null,_0xe88d94={'name':_0x3c3248,'displayName':_0x57f4b9||_0x3c3248,'type':_0x40c29d,'dbType':_0x3ec6c3[_0x49870c(0x1bb)],'pk':_0x57d8e3,'required':_0x4ecb50,'description':_0x3ec6c3[_0x49870c(0x1c7)]||undefined};return Array['isArray'](_0x4ed1d9)&&_0x4ed1d9[_0x49870c(0x1cf)]>0x0&&(_0xe88d94[_0x49870c(0x1ef)]=_0x4ed1d9),_0xe88d94;}function parseJsonMaybe(_0x545965){const _0x3169ad=a21_0x4fe3;if(typeof _0x545965!=='string')return _0x545965;try{return JSON[_0x3169ad(0x1c6)](_0x545965);}catch{return _0x545965;}}function normalizeOperationEntry(_0x284294,_0x2f455e){const _0x291d70=a21_0x4fe3;if(!_0x2f455e||typeof _0x2f455e!==_0x291d70(0x1c4))return null;if(!_0x2f455e[_0x291d70(0x1c3)]||!_0x2f455e[_0x291d70(0x1e1)])return null;const _0x87734b={'name':_0x284294,'method':_0x2f455e[_0x291d70(0x1c3)],'path':_0x2f455e['path']};if(_0x2f455e[_0x291d70(0x1c8)])_0x87734b[_0x291d70(0x1c8)]=_0x2f455e[_0x291d70(0x1c8)];if(_0x2f455e[_0x291d70(0x1ac)]!=null)_0x87734b[_0x291d70(0x1ac)]=parseJsonMaybe(_0x2f455e[_0x291d70(0x1ac)]);if(_0x2f455e[_0x291d70(0x1ee)]!=null)_0x87734b[_0x291d70(0x1ee)]=parseJsonMaybe(_0x2f455e[_0x291d70(0x1ee)]);if(_0x2f455e[_0x291d70(0x1d2)]!=null)_0x87734b[_0x291d70(0x1d2)]=_0x2f455e[_0x291d70(0x1d2)];if(_0x2f455e[_0x291d70(0x1c5)]!=null)_0x87734b[_0x291d70(0x1c5)]=_0x2f455e[_0x291d70(0x1c5)];if(Array[_0x291d70(0x1e5)](_0x2f455e[_0x291d70(0x1e0)]))_0x87734b[_0x291d70(0x1e0)]=_0x2f455e['requestFields'];if(Array[_0x291d70(0x1e5)](_0x2f455e[_0x291d70(0x1ab)]))_0x87734b[_0x291d70(0x1ab)]=_0x2f455e['responseFields'];return _0x87734b;}function a21_0x4fe3(_0x161e6b,_0x4b924e){_0x161e6b=_0x161e6b-0x1aa;const _0x219c1f=a21_0x219c();let _0x4fe3bd=_0x219c1f[_0x161e6b];return _0x4fe3bd;}function summarizeDbtable(_0x22917a){const _0x354ccf=a21_0x4fe3,_0x4a2898={},_0x892461=[_0x354ccf(0x1ce),_0x354ccf(0x1d3),'tableName',_0x354ccf(0x1cc),'pkField','allFields','logicField','createTimeField',_0x354ccf(0x1f0),_0x354ccf(0x1ae),'creatorNameField','modifierIdField',_0x354ccf(0x1db),_0x354ccf(0x1e7),'dblinkInfoDTO'];for(const _0x2a3b9b of _0x892461){if(_0x22917a[_0x2a3b9b]!==undefined)_0x4a2898[_0x2a3b9b]=_0x22917a[_0x2a3b9b];}return typeof _0x4a2898['allFields']==='string'&&_0x4a2898[_0x354ccf(0x1d0)][_0x354ccf(0x1cf)]>0x0&&(_0x4a2898[_0x354ccf(0x1b8)]=_0x4a2898[_0x354ccf(0x1d0)][_0x354ccf(0x1b2)](',')[_0x354ccf(0x1da)](_0x405230=>_0x405230[_0x354ccf(0x1ec)]())[_0x354ccf(0x1b7)](Boolean)),_0x4a2898;}function normalizeRelatedPages(_0x55de0d){const _0x190727=a21_0x4fe3;if(!Array[_0x190727(0x1e5)](_0x55de0d))return[];return _0x55de0d['filter'](_0x5229b1=>_0x5229b1&&typeof _0x5229b1===_0x190727(0x1c4))[_0x190727(0x1da)](_0x2f5d49=>({'id':_0x2f5d49['id'],'type':_0x2f5d49['type'],'code':_0x2f5d49[_0x190727(0x1ca)],'title':_0x2f5d49[_0x190727(0x1eb)],'deleted':_0x2f5d49[_0x190727(0x1e9)]===!![]}));}function normalizeFallbackFieldName(_0x375142,_0x31542d){const _0x6cd21a=a21_0x4fe3,_0x200aeb=_0x375142[_0x6cd21a(0x1ec)]();if(!_0x200aeb)return null;return{'name':_0x200aeb,'displayName':_0x200aeb,'type':undefined,'dbType':undefined,'pk':_0x200aeb===_0x31542d,'required':![],'description':undefined};}async function loadListFieldFallback(_0x33356e,_0xc93dca){const _0x1baca7=a21_0x4fe3;if(!_0x33356e||!_0xc93dca)return[];try{const _0x36f7d8=await listDatasets(_0x33356e,{'code':_0xc93dca}),_0xbfb06=_0x36f7d8[_0x1baca7(0x1d6)](_0x4b05f5=>_0x4b05f5['code']===_0xc93dca)??_0x36f7d8[0x0],_0x5bb4d1=_0xbfb06?.['dbtableConfig']??{},_0x15cf76=typeof _0x5bb4d1[_0x1baca7(0x1d0)]==='string'?_0x5bb4d1[_0x1baca7(0x1d0)][_0x1baca7(0x1b2)](','):[];return _0x15cf76[_0x1baca7(0x1da)](_0x1d3bc5=>normalizeFallbackFieldName(_0x1d3bc5,_0x5bb4d1[_0x1baca7(0x1d9)]))[_0x1baca7(0x1b7)](_0x4bc969=>_0x4bc969!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a21_0x3e65a7(0x1df),'description':a21_0x3e65a7(0x1d7),'risk':a21_0x3e65a7(0x1e3),'flags':[CODE_FLAG],async 'execute'(_0x332d2f){const _0x1e1e82=a21_0x3e65a7,_0x18452c=await getDatasetDetail(_0x332d2f['str']('code')),_0x4c75ae=Array['isArray'](_0x18452c[_0x1e1e82(0x1b1)])?_0x18452c[_0x1e1e82(0x1b1)]:Array[_0x1e1e82(0x1e5)](_0x18452c[_0x1e1e82(0x1bc)])?_0x18452c['properties']:[];let _0x2e7b1f=_0x4c75ae[_0x1e1e82(0x1da)](_0x333472=>normalizeField(_0x333472))['filter'](_0x376f43=>_0x376f43!==null);_0x2e7b1f['length']===0x0&&(_0x2e7b1f=await loadListFieldFallback(_0x332d2f[_0x1e1e82(0x1c9)],_0x332d2f[_0x1e1e82(0x1c0)](_0x1e1e82(0x1ca))));const _0x525c2b=_0x18452c['operations']??{},_0x31689d=[];for(const [_0x3dd1c8,_0xdfc4d9]of Object[_0x1e1e82(0x1d5)](_0x525c2b)){const _0x589d17=normalizeOperationEntry(_0x3dd1c8,_0xdfc4d9);if(_0x589d17)_0x31689d[_0x1e1e82(0x1b6)](_0x589d17);}const _0x6b93be=_0x18452c['dbtableConfig']??{},_0x219f25=_0x18452c['dataset']??{},_0x553e59=_0x6b93be[_0x1e1e82(0x1ce)]!=null?{'id':_0x6b93be[_0x1e1e82(0x1ce)],'name':_0x6b93be[_0x1e1e82(0x1d3)]??null}:undefined;let _0x38e8a7;return typeof _0x18452c['extend']===_0x1e1e82(0x1b4)&&(_0x38e8a7=parseJsonMaybe(_0x18452c['extend'])),{'ok':!![],'data':{'id':_0x18452c[_0x1e1e82(0x1aa)]??_0x18452c['id'],'name':_0x18452c[_0x1e1e82(0x1e6)],'code':_0x18452c[_0x1e1e82(0x1e2)]||_0x18452c[_0x1e1e82(0x1ca)],'doVersion':_0x18452c[_0x1e1e82(0x1bf)],'description':_0x18452c[_0x1e1e82(0x1c7)]||_0x219f25['tableComment']||undefined,'source':_0x18452c[_0x1e1e82(0x1b5)]||_0x219f25[_0x1e1e82(0x1bd)],'table':_0x6b93be[_0x1e1e82(0x1be)]||_0x219f25['tableName'],'datasetKey':_0x6b93be[_0x1e1e82(0x1cc)],'pk':_0x6b93be[_0x1e1e82(0x1d9)],'db':_0x553e59,'dbtable':summarizeDbtable(_0x6b93be),'fields':_0x2e7b1f,'operations':_0x31689d,'indexes':Array['isArray'](_0x219f25[_0x1e1e82(0x1dc)])?_0x219f25[_0x1e1e82(0x1dc)]:[],'relations':_0x18452c[_0x1e1e82(0x1e4)]??null,'relatedPages':normalizeRelatedPages(_0x18452c[_0x1e1e82(0x1b9)]),...Array[_0x1e1e82(0x1e5)](_0x18452c[_0x1e1e82(0x1af)])?{'columnCodeListWithDeleted':_0x18452c[_0x1e1e82(0x1af)]}:{},'formatRules':Array[_0x1e1e82(0x1e5)](_0x18452c[_0x1e1e82(0x1ad)])?_0x18452c[_0x1e1e82(0x1ad)]:[],'validateRules':Array['isArray'](_0x18452c[_0x1e1e82(0x1cd)])?_0x18452c[_0x1e1e82(0x1cd)]:[],..._0x38e8a7!==undefined?{'extend':_0x38e8a7}:{},'stats':{'fieldCount':_0x2e7b1f[_0x1e1e82(0x1cf)],'operationCount':_0x31689d['length']}}};}};
1
+ const a21_0x2eaa0a=a21_0xfe30;(function(_0x266e7f,_0x7f111e){const _0xed410b=a21_0xfe30,_0x6c14d=_0x266e7f();while(!![]){try{const _0x703b95=parseInt(_0xed410b(0xcc))/0x1+parseInt(_0xed410b(0xc1))/0x2*(-parseInt(_0xed410b(0x88))/0x3)+-parseInt(_0xed410b(0xb8))/0x4+-parseInt(_0xed410b(0xad))/0x5*(-parseInt(_0xed410b(0xc0))/0x6)+parseInt(_0xed410b(0xa8))/0x7+parseInt(_0xed410b(0xbb))/0x8+parseInt(_0xed410b(0xc9))/0x9*(parseInt(_0xed410b(0x8f))/0xa);if(_0x703b95===_0x7f111e)break;else _0x6c14d['push'](_0x6c14d['shift']());}catch(_0x37f9fd){_0x6c14d['push'](_0x6c14d['shift']());}}}(a21_0x5ea0,0xc1740));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x49156f){const _0x940746=a21_0xfe30;if(_0x49156f[_0x940746(0xc4)])return null;const _0x3515b3=Boolean(_0x49156f[_0x940746(0x8c)]!==undefined||_0x49156f[_0x940746(0xca)]!==undefined);let _0x1e7128={};if(!_0x3515b3&&typeof _0x49156f[_0x940746(0xb3)]===_0x940746(0x8b))try{_0x1e7128=JSON[_0x940746(0x86)](_0x49156f[_0x940746(0xb3)]);}catch{}const _0x40647d=_0x3515b3?_0x49156f['name']:_0x49156f['code'],_0x71039c=_0x3515b3?_0x49156f[_0x940746(0x8c)]:_0x49156f['name'],_0xd4b5bd=_0x3515b3?_0x49156f[_0x940746(0xca)]:_0x49156f['type']||_0x49156f[_0x940746(0xb9)],_0x4de35d=_0x3515b3?_0x49156f[_0x940746(0xa7)]===!![]:_0x1e7128[_0x940746(0xa7)]===!![],_0x59f317=_0x3515b3?_0x49156f['required']===!![]:_0x1e7128[_0x940746(0xa2)]===!![],_0x51f8d7=_0x3515b3?_0x49156f['options']??null:_0x1e7128[_0x940746(0x8e)]??null,_0x4c5d5e={'name':_0x40647d,'displayName':_0x71039c||_0x40647d,'type':_0xd4b5bd,'dbType':_0x49156f[_0x940746(0x90)],'pk':_0x4de35d,'required':_0x59f317,'description':_0x49156f[_0x940746(0x99)]||undefined};return Array[_0x940746(0x8d)](_0x51f8d7)&&_0x51f8d7[_0x940746(0xb5)]>0x0&&(_0x4c5d5e[_0x940746(0x8e)]=_0x51f8d7),_0x4c5d5e;}function parseJsonMaybe(_0x5e682a){const _0x17cfa8=a21_0xfe30;if(typeof _0x5e682a!==_0x17cfa8(0x8b))return _0x5e682a;try{return JSON[_0x17cfa8(0x86)](_0x5e682a);}catch{return _0x5e682a;}}function a21_0xfe30(_0x16199b,_0x1a6c0f){_0x16199b=_0x16199b-0x84;const _0x5ea027=a21_0x5ea0();let _0xfe30e5=_0x5ea027[_0x16199b];return _0xfe30e5;}function normalizeOperationEntry(_0x1a7933,_0x59176a){const _0x444dea=a21_0xfe30;if(!_0x59176a||typeof _0x59176a!=='object')return null;if(!_0x59176a[_0x444dea(0xaf)]||!_0x59176a[_0x444dea(0xb0)])return null;const _0x591ec5={'name':_0x1a7933,'method':_0x59176a[_0x444dea(0xaf)],'path':_0x59176a['path']};if(_0x59176a['host'])_0x591ec5[_0x444dea(0x93)]=_0x59176a[_0x444dea(0x93)];if(_0x59176a['requestBody']!=null)_0x591ec5[_0x444dea(0x85)]=parseJsonMaybe(_0x59176a[_0x444dea(0x85)]);if(_0x59176a[_0x444dea(0x91)]!=null)_0x591ec5[_0x444dea(0x91)]=parseJsonMaybe(_0x59176a['responseBody']);if(_0x59176a[_0x444dea(0xae)]!=null)_0x591ec5[_0x444dea(0xae)]=_0x59176a['beforeScriptId'];if(_0x59176a[_0x444dea(0xc6)]!=null)_0x591ec5[_0x444dea(0xc6)]=_0x59176a[_0x444dea(0xc6)];if(Array['isArray'](_0x59176a[_0x444dea(0x97)]))_0x591ec5['requestFields']=_0x59176a[_0x444dea(0x97)];if(Array[_0x444dea(0x8d)](_0x59176a[_0x444dea(0xbc)]))_0x591ec5[_0x444dea(0xbc)]=_0x59176a[_0x444dea(0xbc)];return _0x591ec5;}function summarizeDbtable(_0x363575){const _0x4875f1=a21_0xfe30,_0x253918={},_0x47cdfc=[_0x4875f1(0x89),_0x4875f1(0xa0),_0x4875f1(0x9f),_0x4875f1(0x9b),'pkField',_0x4875f1(0x8a),_0x4875f1(0xb1),_0x4875f1(0x96),'updateTimeField',_0x4875f1(0x9e),_0x4875f1(0xb6),_0x4875f1(0x87),'modifierNameField',_0x4875f1(0xaa),_0x4875f1(0x98)];for(const _0x28fbf5 of _0x47cdfc){if(_0x363575[_0x28fbf5]!==undefined)_0x253918[_0x28fbf5]=_0x363575[_0x28fbf5];}return typeof _0x253918['allFields']===_0x4875f1(0x8b)&&_0x253918[_0x4875f1(0x8a)][_0x4875f1(0xb5)]>0x0&&(_0x253918['allFieldNames']=_0x253918[_0x4875f1(0x8a)]['split'](',')[_0x4875f1(0xbf)](_0x1535fd=>_0x1535fd['trim']())[_0x4875f1(0xbe)](Boolean)),_0x253918;}function normalizeRelatedPages(_0xeba07d){const _0x3ec06e=a21_0xfe30;if(!Array[_0x3ec06e(0x8d)](_0xeba07d))return[];return _0xeba07d[_0x3ec06e(0xbe)](_0xc43cd1=>_0xc43cd1&&typeof _0xc43cd1===_0x3ec06e(0xc7))['map'](_0x14dab9=>({'id':_0x14dab9['id'],'type':_0x14dab9['type'],'code':_0x14dab9[_0x3ec06e(0xa9)],'title':_0x14dab9[_0x3ec06e(0x95)],'deleted':_0x14dab9[_0x3ec06e(0xc4)]===!![]}));}function a21_0x5ea0(){const _0x4b1400=['entries','358368ImHvUp','str','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','requestBody','parse','modifierIdField','3xpITvm','dbId','allFields','string','displayName','isArray','options','10729010cvAiVd','dbType','responseBody','indexes','host','dbtableConfig','title','createTimeField','requestFields','dblinkInfoDTO','description','read','datasetKey','columnCodeListWithDeleted','doVersion','creatorIdField','tableName','dbName','detail','required','properties','name','split','trim','pkField','6497855nVULxm','code','labelField','modelCode','formatRules','111575rSHoHg','beforeScriptId','method','path','logicField','dataset','extend','operations','length','creatorNameField','find','4847716RrPlHb','dataType','tableComment','3303440vIzzcR','responseFields','appCode','filter','map','186RFmhpC','2919832VRVgnC','source','fields','deleted','relations','afterScriptId','object','relatedPageInfoList','9edngxW','doType'];a21_0x5ea0=function(){return _0x4b1400;};return a21_0x5ea0();}function normalizeFallbackFieldName(_0x53f550,_0x3734ad){const _0x21f89c=a21_0xfe30,_0x706a5=_0x53f550[_0x21f89c(0xa6)]();if(!_0x706a5)return null;return{'name':_0x706a5,'displayName':_0x706a5,'type':undefined,'dbType':undefined,'pk':_0x706a5===_0x3734ad,'required':![],'description':undefined};}async function loadListFieldFallback(_0x186bb1,_0x46318f){const _0x4f794d=a21_0xfe30;if(!_0x186bb1||!_0x46318f)return[];try{const _0x245108=await listDatasets(_0x186bb1,{'code':_0x46318f}),_0x5563eb=_0x245108[_0x4f794d(0xb7)](_0x470ff6=>_0x470ff6[_0x4f794d(0xa9)]===_0x46318f)??_0x245108[0x0],_0x9a4628=_0x5563eb?.[_0x4f794d(0x94)]??{},_0xb08972=typeof _0x9a4628['allFields']===_0x4f794d(0x8b)?_0x9a4628[_0x4f794d(0x8a)][_0x4f794d(0xa5)](','):[];return _0xb08972[_0x4f794d(0xbf)](_0x321c00=>normalizeFallbackFieldName(_0x321c00,_0x9a4628[_0x4f794d(0xa7)]))['filter'](_0x1693a1=>_0x1693a1!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a21_0x2eaa0a(0xa1),'description':a21_0x2eaa0a(0x84),'risk':a21_0x2eaa0a(0x9a),'flags':[CODE_FLAG],async 'execute'(_0x5e9ea1){const _0x382f1a=a21_0x2eaa0a,_0x3138c5=await getDatasetDetail(_0x5e9ea1[_0x382f1a(0xcd)](_0x382f1a(0xa9))),_0x4b2782=Array[_0x382f1a(0x8d)](_0x3138c5[_0x382f1a(0xc3)])?_0x3138c5[_0x382f1a(0xc3)]:Array[_0x382f1a(0x8d)](_0x3138c5[_0x382f1a(0xa3)])?_0x3138c5[_0x382f1a(0xa3)]:[];let _0x51f6b4=_0x4b2782[_0x382f1a(0xbf)](_0x256889=>normalizeField(_0x256889))[_0x382f1a(0xbe)](_0xa8a005=>_0xa8a005!==null);_0x51f6b4[_0x382f1a(0xb5)]===0x0&&(_0x51f6b4=await loadListFieldFallback(_0x5e9ea1[_0x382f1a(0xbd)],_0x5e9ea1[_0x382f1a(0xcd)]('code')));const _0x25ca72=_0x3138c5[_0x382f1a(0xb4)]??{},_0x141b5f=[];for(const [_0x2cd139,_0x1775bc]of Object[_0x382f1a(0xcb)](_0x25ca72)){const _0x3fd077=normalizeOperationEntry(_0x2cd139,_0x1775bc);if(_0x3fd077)_0x141b5f['push'](_0x3fd077);}const _0x4f09a8=_0x3138c5[_0x382f1a(0x94)]??{},_0x11bf0b=_0x3138c5[_0x382f1a(0xb2)]??{},_0x114acc=_0x4f09a8[_0x382f1a(0x89)]!=null?{'id':_0x4f09a8[_0x382f1a(0x89)],'name':_0x4f09a8['dbName']??null}:undefined;let _0x544f49;return typeof _0x3138c5[_0x382f1a(0xb3)]===_0x382f1a(0x8b)&&(_0x544f49=parseJsonMaybe(_0x3138c5['extend'])),{'ok':!![],'data':{'id':_0x3138c5['modelId']??_0x3138c5['id'],'name':_0x3138c5[_0x382f1a(0xa4)],'code':_0x3138c5[_0x382f1a(0xab)]||_0x3138c5['code'],'doVersion':_0x3138c5[_0x382f1a(0x9d)],'description':_0x3138c5['description']||_0x11bf0b[_0x382f1a(0xba)]||undefined,'source':_0x3138c5[_0x382f1a(0xc2)]||_0x11bf0b['sourceType'],'table':_0x4f09a8[_0x382f1a(0x9f)]||_0x11bf0b['tableName'],'datasetKey':_0x4f09a8[_0x382f1a(0x9b)],'pk':_0x4f09a8[_0x382f1a(0xa7)],'db':_0x114acc,'dbtable':summarizeDbtable(_0x4f09a8),'fields':_0x51f6b4,'operations':_0x141b5f,'indexes':Array['isArray'](_0x11bf0b['indexes'])?_0x11bf0b[_0x382f1a(0x92)]:[],'relations':_0x3138c5[_0x382f1a(0xc5)]??null,'relatedPages':normalizeRelatedPages(_0x3138c5[_0x382f1a(0xc8)]),...Array['isArray'](_0x3138c5[_0x382f1a(0x9c)])?{'columnCodeListWithDeleted':_0x3138c5['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x382f1a(0x8d)](_0x3138c5[_0x382f1a(0xac)])?_0x3138c5[_0x382f1a(0xac)]:[],'validateRules':Array[_0x382f1a(0x8d)](_0x3138c5['validateRules'])?_0x3138c5['validateRules']:[],..._0x544f49!==undefined?{'extend':_0x544f49}:{},'stats':{'fieldCount':_0x51f6b4['length'],'operationCount':_0x141b5f[_0x382f1a(0xb5)]}}};}};
@@ -1 +1 @@
1
- function a22_0x2beb(_0x4bb46e,_0x24fdf7){_0x4bb46e=_0x4bb46e-0x1ac;const _0x1de4f9=a22_0x1de4();let _0x2beb7e=_0x1de4f9[_0x4bb46e];return _0x2beb7e;}(function(_0xb03ad2,_0x1628f8){const _0x2d31cc=a22_0x2beb,_0x340908=_0xb03ad2();while(!![]){try{const _0x58c5d9=-parseInt(_0x2d31cc(0x1b0))/0x1+-parseInt(_0x2d31cc(0x1b1))/0x2+-parseInt(_0x2d31cc(0x1ad))/0x3+-parseInt(_0x2d31cc(0x1ac))/0x4*(parseInt(_0x2d31cc(0x1af))/0x5)+parseInt(_0x2d31cc(0x1ae))/0x6+parseInt(_0x2d31cc(0x1b4))/0x7*(parseInt(_0x2d31cc(0x1b3))/0x8)+parseInt(_0x2d31cc(0x1b2))/0x9*(parseInt(_0x2d31cc(0x1b5))/0xa);if(_0x58c5d9===_0x1628f8)break;else _0x340908['push'](_0x340908['shift']());}catch(_0x4ffc70){_0x340908['push'](_0x340908['shift']());}}}(a22_0x1de4,0xaca06));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a22_0x1de4(){const _0x48bd32=['8ebMPSd','2588572NLKQdk','10NvrnxF','8bEPsFw','2808549LfxwHR','4543236nWvOpJ','2155690hjJRsM','643869FVbRpW','1916338WxEstf','26825157iAWrNQ'];a22_0x1de4=function(){return _0x48bd32;};return a22_0x1de4();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x51060e,_0x40c33a){const _0x45d0eb=a22_0x564c,_0x359fc0=_0x51060e();while(!![]){try{const _0x48eca6=-parseInt(_0x45d0eb(0x166))/0x1+parseInt(_0x45d0eb(0x164))/0x2+parseInt(_0x45d0eb(0x15f))/0x3+parseInt(_0x45d0eb(0x161))/0x4*(parseInt(_0x45d0eb(0x15e))/0x5)+-parseInt(_0x45d0eb(0x163))/0x6+-parseInt(_0x45d0eb(0x162))/0x7*(parseInt(_0x45d0eb(0x165))/0x8)+-parseInt(_0x45d0eb(0x167))/0x9*(-parseInt(_0x45d0eb(0x160))/0xa);if(_0x48eca6===_0x40c33a)break;else _0x359fc0['push'](_0x359fc0['shift']());}catch(_0xa1d9aa){_0x359fc0['push'](_0x359fc0['shift']());}}}(a22_0x357a,0x1cb45));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x564c(_0x21ec94,_0x79620){_0x21ec94=_0x21ec94-0x15e;const _0x357a2a=a22_0x357a();let _0x564c52=_0x357a2a[_0x21ec94];return _0x564c52;}function a22_0x357a(){const _0x4c55d2=['27epnGQZ','15QMuNip','39369qnNWsz','783290bAvIHp','13756tXIxSv','10129xjpzny','308718dHAHCq','179452hBNNlL','344PbDtKR','116906cQyyDB'];a22_0x357a=function(){return _0x4c55d2;};return a22_0x357a();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a23_0x1e1a5a=a23_0x257b;(function(_0x5d680d,_0x3c6b63){const _0x2c0485=a23_0x257b,_0x449ffc=_0x5d680d();while(!![]){try{const _0x4a0895=parseInt(_0x2c0485(0x1a5))/0x1+-parseInt(_0x2c0485(0x199))/0x2*(-parseInt(_0x2c0485(0x1ae))/0x3)+-parseInt(_0x2c0485(0x1aa))/0x4*(parseInt(_0x2c0485(0x194))/0x5)+parseInt(_0x2c0485(0x1b0))/0x6+-parseInt(_0x2c0485(0x1af))/0x7*(parseInt(_0x2c0485(0x1a1))/0x8)+-parseInt(_0x2c0485(0x1a3))/0x9*(parseInt(_0x2c0485(0x1a0))/0xa)+-parseInt(_0x2c0485(0x1b2))/0xb*(-parseInt(_0x2c0485(0x1ac))/0xc);if(_0x4a0895===_0x3c6b63)break;else _0x449ffc['push'](_0x449ffc['shift']());}catch(_0x33a09e){_0x449ffc['push'](_0x449ffc['shift']());}}}(a23_0x5bb8,0x4bd80));function a23_0x257b(_0x179417,_0x105a04){_0x179417=_0x179417-0x194;const _0x5bb8d3=a23_0x5bb8();let _0x257b84=_0x5bb8d3[_0x179417];return _0x257b84;}import{listDatasets}from'../../core/api-client.js';function a23_0x5bb8(){const _0x45c591=['226635DTeVBQ','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','read','trim','list','12TeJQbq','length','source','datasetKey','str','pkField','dbtableConfig','930uwvdSX','16GmDhgG','split','41940LruepV','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','485001xIybrc','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','map','name','allFields','4YjnNEF','description','372IuxRqb','dataset','131292LrbEDv','52549EWxfTB','219294JUblXd','string','7183AuDQtc','appCode'];a23_0x5bb8=function(){return _0x45c591;};return a23_0x5bb8();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a23_0x1e1a5a(0x1ad),'command':a23_0x1e1a5a(0x198),'description':a23_0x1e1a5a(0x195),'risk':a23_0x1e1a5a(0x196),'flags':[{'name':a23_0x1e1a5a(0x1a8),'type':a23_0x1e1a5a(0x1b1),'description':a23_0x1e1a5a(0x1a4)},{...CODE_FLAG,'required':![],'description':a23_0x1e1a5a(0x1a6)}],async 'execute'(_0x29d3ef){const _0x3f22b0=a23_0x1e1a5a,_0x3f7749=_0x29d3ef[_0x3f22b0(0x19d)](_0x3f22b0(0x1a8)),_0x5af721=_0x29d3ef[_0x3f22b0(0x19d)]('code'),_0x1b6961=await listDatasets(_0x29d3ef[_0x3f22b0(0x1b3)],{..._0x3f7749&&{'name':_0x3f7749},..._0x5af721&&{'code':_0x5af721}});return{'ok':!![],'data':{'total':_0x1b6961[_0x3f22b0(0x19a)],'datasets':_0x1b6961[_0x3f22b0(0x1a7)](_0x51f480=>{const _0x2e6f94=_0x3f22b0,_0x4afa60=_0x51f480[_0x2e6f94(0x19f)]??{};return{'id':_0x51f480['id'],'code':_0x51f480['code'],'name':_0x51f480[_0x2e6f94(0x1a8)],'source':_0x51f480[_0x2e6f94(0x19b)],'description':_0x51f480[_0x2e6f94(0x1ab)],'table':_0x4afa60['tableName'],'datasetKey':_0x4afa60[_0x2e6f94(0x19c)],'pk':_0x4afa60[_0x2e6f94(0x19e)],'fields':_0x4afa60['allFields']?_0x4afa60[_0x2e6f94(0x1a9)][_0x2e6f94(0x1a2)](',')[_0x2e6f94(0x1a7)](_0x133909=>_0x133909[_0x2e6f94(0x197)]()):[]};})}};}};
1
+ function a23_0x196b(_0x418adc,_0x20ede0){_0x418adc=_0x418adc-0x1f2;const _0x3b0f8f=a23_0x3b0f();let _0x196bd6=_0x3b0f8f[_0x418adc];return _0x196bd6;}const a23_0x43f7cc=a23_0x196b;(function(_0x1456e1,_0x2553c8){const _0x31e929=a23_0x196b,_0x6a0bf1=_0x1456e1();while(!![]){try{const _0x488bc2=parseInt(_0x31e929(0x1fa))/0x1*(parseInt(_0x31e929(0x20a))/0x2)+parseInt(_0x31e929(0x203))/0x3*(-parseInt(_0x31e929(0x1fb))/0x4)+-parseInt(_0x31e929(0x206))/0x5*(-parseInt(_0x31e929(0x1fe))/0x6)+-parseInt(_0x31e929(0x1f6))/0x7+parseInt(_0x31e929(0x1f4))/0x8+-parseInt(_0x31e929(0x204))/0x9*(-parseInt(_0x31e929(0x1ff))/0xa)+parseInt(_0x31e929(0x208))/0xb*(-parseInt(_0x31e929(0x1f9))/0xc);if(_0x488bc2===_0x2553c8)break;else _0x6a0bf1['push'](_0x6a0bf1['shift']());}catch(_0x5182c2){_0x6a0bf1['push'](_0x6a0bf1['shift']());}}}(a23_0x3b0f,0xe651b));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a23_0x43f7cc(0x207),'risk':'read','flags':[{'name':a23_0x43f7cc(0x20c),'type':a23_0x43f7cc(0x205),'description':a23_0x43f7cc(0x1f5)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x4f114b){const _0x4bd1d8=a23_0x43f7cc,_0x8dafb8=_0x4f114b[_0x4bd1d8(0x1fd)]('name'),_0x44336a=_0x4f114b['str'](_0x4bd1d8(0x1f7)),_0x332023=await listDatasets(_0x4f114b[_0x4bd1d8(0x1f3)],{..._0x8dafb8&&{'name':_0x8dafb8},..._0x44336a&&{'code':_0x44336a}});return{'ok':!![],'data':{'total':_0x332023[_0x4bd1d8(0x201)],'datasets':_0x332023[_0x4bd1d8(0x1fc)](_0x293777=>{const _0x2fb7d0=_0x4bd1d8,_0x50b2aa=_0x293777['dbtableConfig']??{};return{'id':_0x293777['id'],'code':_0x293777[_0x2fb7d0(0x1f7)],'name':_0x293777['name'],'source':_0x293777[_0x2fb7d0(0x20d)],'description':_0x293777[_0x2fb7d0(0x20b)],'table':_0x50b2aa[_0x2fb7d0(0x209)],'datasetKey':_0x50b2aa[_0x2fb7d0(0x202)],'pk':_0x50b2aa[_0x2fb7d0(0x200)],'fields':_0x50b2aa[_0x2fb7d0(0x1f2)]?_0x50b2aa[_0x2fb7d0(0x1f2)]['split'](',')['map'](_0x337768=>_0x337768[_0x2fb7d0(0x1f8)]()):[]};})}};}};function a23_0x3b0f(){const _0x3da223=['name','source','allFields','appCode','5683128gcczCS','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','7012348dBhIqB','code','trim','3755940SZATCq','11Fycfjt','256bibGXi','map','str','10038gtVoDB','7290870FWaSEU','pkField','length','datasetKey','29676ihmlFa','9YFZnaO','string','2245WQFzMT','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','11JHlwzR','tableName','127378yxfaGI','description'];a23_0x3b0f=function(){return _0x3da223;};return a23_0x3b0f();}
@@ -1 +1 @@
1
- const a24_0x5d276d=a24_0x47a0;(function(_0x11730a,_0x1e0415){const _0xfc969d=a24_0x47a0,_0x583863=_0x11730a();while(!![]){try{const _0x569602=parseInt(_0xfc969d(0xcc))/0x1*(parseInt(_0xfc969d(0xbf))/0x2)+parseInt(_0xfc969d(0xc0))/0x3*(parseInt(_0xfc969d(0xc2))/0x4)+-parseInt(_0xfc969d(0xce))/0x5+parseInt(_0xfc969d(0xcd))/0x6+-parseInt(_0xfc969d(0xbb))/0x7+-parseInt(_0xfc969d(0xc1))/0x8+parseInt(_0xfc969d(0xbe))/0x9*(parseInt(_0xfc969d(0xbc))/0xa);if(_0x569602===_0x1e0415)break;else _0x583863['push'](_0x583863['shift']());}catch(_0x76b655){_0x583863['push'](_0x583863['shift']());}}}(a24_0x3672,0x5b0a2));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';function a24_0x47a0(_0x3636a0,_0x2de502){_0x3636a0=_0x3636a0-0xbb;const _0x367251=a24_0x3672();let _0x47a04b=_0x367251[_0x3636a0];return _0x47a04b;}function a24_0x3672(){const _0x1490d1=['sdk-doc','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','dataset','142865cKByaQ','439404iMazkh','3217445kksXLs','3415741NFJhwS','5094830JjBBPm','appCode','9afEdYD','10jPNRoS','262407oBSZvv','440792uESpnh','12cAophA','string','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','read','trim','code'];a24_0x3672=function(){return _0x1490d1;};return a24_0x3672();}export function formatDatasetSdkMarkdown(_0x11b77d){const _0x4fc87d=a24_0x47a0,_0x596b0c=typeof _0x11b77d===_0x4fc87d(0xc3)?_0x11b77d[_0x4fc87d(0xc7)]():'';return _0x596b0c||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x5d276d(0xcb),'command':a24_0x5d276d(0xc9),'description':a24_0x5d276d(0xca),'risk':a24_0x5d276d(0xc6),'flags':[{...CODE_FLAG,'description':a24_0x5d276d(0xc4)}],async 'execute'(_0xea0f65){const _0x323320=a24_0x5d276d,_0xb9cd89=_0xea0f65[_0x323320(0xc5)](_0x323320(0xc8)),_0x183a65=await getDatasetSdkUsageDoc(_0xb9cd89,_0xea0f65[_0x323320(0xbd)]);return{'ok':!![],'data':{'code':_0xb9cd89,'appCode':_0xea0f65[_0x323320(0xbd)],'markdown':formatDatasetSdkMarkdown(_0x183a65)}};}};
1
+ const a24_0x10f21b=a24_0x2069;(function(_0x3f2d3c,_0x44153e){const _0x2d27c6=a24_0x2069,_0x18c9a0=_0x3f2d3c();while(!![]){try{const _0x1e53b5=parseInt(_0x2d27c6(0x137))/0x1*(parseInt(_0x2d27c6(0x132))/0x2)+-parseInt(_0x2d27c6(0x135))/0x3+-parseInt(_0x2d27c6(0x133))/0x4+-parseInt(_0x2d27c6(0x136))/0x5+parseInt(_0x2d27c6(0x13b))/0x6+-parseInt(_0x2d27c6(0x138))/0x7+parseInt(_0x2d27c6(0x13c))/0x8;if(_0x1e53b5===_0x44153e)break;else _0x18c9a0['push'](_0x18c9a0['shift']());}catch(_0x5a7a73){_0x18c9a0['push'](_0x18c9a0['shift']());}}}(a24_0x52c0,0x88e56));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a24_0x2069(_0x15a5d7,_0x1171e8){_0x15a5d7=_0x15a5d7-0x132;const _0x52c03e=a24_0x52c0();let _0x2069a6=_0x52c03e[_0x15a5d7];return _0x2069a6;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x57ce82){const _0x1a618f=a24_0x2069,_0x548773=typeof _0x57ce82===_0x1a618f(0x134)?_0x57ce82['trim']():'';return _0x548773||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x10f21b(0x13a),'command':a24_0x10f21b(0x13d),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x2e8055){const _0x16011f=a24_0x10f21b,_0x441867=_0x2e8055[_0x16011f(0x13e)](_0x16011f(0x139)),_0x4acbe4=await getDatasetSdkUsageDoc(_0x441867,_0x2e8055[_0x16011f(0x13f)]);return{'ok':!![],'data':{'code':_0x441867,'appCode':_0x2e8055[_0x16011f(0x13f)],'markdown':formatDatasetSdkMarkdown(_0x4acbe4)}};}};function a24_0x52c0(){const _0x1abfdc=['string','2739633tcDbBm','1291945arAPha','7Picvqv','2844478YTCjjX','code','dataset','5747520jgrUMZ','13708608rkVjBF','sdk-doc','str','appCode','160594aYaoJp','4379580HxcQUh'];a24_0x52c0=function(){return _0x1abfdc;};return a24_0x52c0();}
@@ -1 +1 @@
1
- const a25_0xb0406=a25_0x3fb0;(function(_0x65ef85,_0x50c49d){const _0xc40131=a25_0x3fb0,_0x57eb88=_0x65ef85();while(!![]){try{const _0x5a3123=parseInt(_0xc40131(0xd0))/0x1+parseInt(_0xc40131(0xef))/0x2*(-parseInt(_0xc40131(0xdb))/0x3)+parseInt(_0xc40131(0xd7))/0x4*(parseInt(_0xc40131(0xea))/0x5)+-parseInt(_0xc40131(0xb3))/0x6+parseInt(_0xc40131(0xaa))/0x7*(-parseInt(_0xc40131(0xc1))/0x8)+-parseInt(_0xc40131(0xa7))/0x9+parseInt(_0xc40131(0xd2))/0xa;if(_0x5a3123===_0x50c49d)break;else _0x57eb88['push'](_0x57eb88['shift']());}catch(_0x206ca6){_0x57eb88['push'](_0x57eb88['shift']());}}}(a25_0x126c,0x8d0b9));import a25_0x3f71c7 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a25_0x3fb0(_0x257be1,_0x23e47a){_0x257be1=_0x257be1-0xa0;const _0x126c7a=a25_0x126c();let _0x3fb088=_0x126c7a[_0x257be1];return _0x3fb088;}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';function a25_0x126c(){const _0x62220c=['173957wdVVri','currentApp','green','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20Config\x20JSON','\x20(accessKey)','Project','✓\x20Valid\x20JSON','5702418DfSttc','(not\x20set)','✗\x20Invalid','source','read','empty','(unnamed)','\x20\x20Auth','(no\x20file)','⚠\x20Empty','appCode','message','services','\x20\x20runtimeDomain:\x20\x20\x20','208jLOkUE','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','red','\x20\x20─','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','log','(set,\x20length=','Global','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20(legacy/compat\x20only)','(not\x20found)','998937jUtjLp','locale','10464470IfnFjh','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','length','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3107156GTMBqj','platform','\x20\x20Service\x20Tree','accessKey','479121TUlDXg','ClientAk','arch','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','format','repeat','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','bold','(default:\x20','serviceCount','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','status','\x20Imported\x20from:\x20','✓\x20Loaded','gray','5uiPWdP','\x20commands)','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','2JyrMJm','missing','serviceCode','\x20\x20API\x20Endpoints','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','commandCount','padEnd','pageSize','\x20\x20Config\x20Files','\x20\x20Merged\x20Config','yellow','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','name','verbose','registryPath','4393944WrGInK','\x20\x20auth\x20(effective):\x20','(none)'];a25_0x126c=function(){return _0x62220c;};return a25_0x126c();}import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x1c4b20){const _0x45fb5b=a25_0x3fb0,_0x38520a=getCliVersion(),_0x188d86=buildConfigFromFlags({});await initGlobalEnvironment(_0x188d86),console[_0x45fb5b(0xca)](),console['log'](a25_0x3f71c7[_0x45fb5b(0xe2)](CLI_BIN_NAME+'\x20doctor')),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe9)]('─'[_0x45fb5b(0xe0)](0x32))),console['log'](_0x45fb5b(0xf3)+_0x38520a),console['log'](_0x45fb5b(0xd6)+process['version']),console[_0x45fb5b(0xca)](_0x45fb5b(0xad)+process[_0x45fb5b(0xd8)]+'\x20'+process[_0x45fb5b(0xdd)]),console[_0x45fb5b(0xca)](),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe2)](_0x45fb5b(0xf7))),console['log'](a25_0x3f71c7['gray'](_0x45fb5b(0xc4)['repeat'](0x1e)));const _0x2e3d92=getGlobalConfigPath(),_0x459655=getProjectConfigPath();console['log'](_0x45fb5b(0xa2)+(_0x2e3d92||a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xcf)))),console[_0x45fb5b(0xca)](_0x45fb5b(0xc8)+(_0x459655||a25_0x3f71c7['gray'](_0x45fb5b(0xcf)))),console['log'](),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe2)](_0x45fb5b(0xaf))),console[_0x45fb5b(0xca)](a25_0x3f71c7['gray'](_0x45fb5b(0xc4)[_0x45fb5b(0xe0)](0x1e)));const _0x20d8c7=(_0x30f07a,_0x192024)=>{const _0x59650e=_0x45fb5b;if(!_0x192024){console[_0x59650e(0xca)]('\x20\x20'+_0x30f07a[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xe9)](_0x59650e(0xbb)));return;}const _0x347654=inspectCliConfigJsonFile(_0x192024);if(_0x347654[_0x59650e(0xe6)]==='ok')console[_0x59650e(0xca)]('\x20\x20'+_0x30f07a[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xac)](_0x59650e(0xb2)));else{if(_0x347654[_0x59650e(0xe6)]===_0x59650e(0xb8))console['log']('\x20\x20'+_0x30f07a[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xa1)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x347654['status']===_0x59650e(0xf0)?console[_0x59650e(0xca)]('\x20\x20'+_0x30f07a[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xe9)]('(missing)')):(console[_0x59650e(0xca)]('\x20\x20'+_0x30f07a[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xc3)]('✗\x20Invalid\x20JSON')),console[_0x59650e(0xca)]('\x20\x20'+''[_0x59650e(0xf5)](0x11)+'\x20'+a25_0x3f71c7[_0x59650e(0xc3)](_0x347654[_0x59650e(0xbe)])));}};_0x20d8c7(_0x45fb5b(0xcc),_0x2e3d92),_0x20d8c7(_0x45fb5b(0xb1),_0x459655),console[_0x45fb5b(0xca)](),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe2)](_0x45fb5b(0xa0))),console['log'](a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xc4)['repeat'](0x1e))),console[_0x45fb5b(0xca)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x188d86[_0x45fb5b(0xbd)]||a25_0x3f71c7[_0x45fb5b(0xc3)](_0x45fb5b(0xb4)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x188d86['env']);const _0x4e11c9=isLegacyCompatConfigKey(_0x45fb5b(0xd1))?a25_0x3f71c7[_0x45fb5b(0xe9)](_0x188d86['locale']+_0x45fb5b(0xce)):_0x188d86[_0x45fb5b(0xd1)];console[_0x45fb5b(0xca)](_0x45fb5b(0xec)+_0x4e11c9),console[_0x45fb5b(0xca)](_0x45fb5b(0xc2)+(_0x188d86['defaultApp']||a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xa9)))),console[_0x45fb5b(0xca)](_0x45fb5b(0xa3)+(_0x188d86[_0x45fb5b(0xab)]||a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xa9)))),console[_0x45fb5b(0xca)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x188d86[_0x45fb5b(0xdf)]||a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xe3)+DEFAULT_CONFIG_VALUES[_0x45fb5b(0xdf)]+')'))),console[_0x45fb5b(0xca)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x188d86[_0x45fb5b(0xf6)]??a25_0x3f71c7[_0x45fb5b(0xe9)]('(default)'))),console[_0x45fb5b(0xca)](_0x45fb5b(0xee)+_0x188d86[_0x45fb5b(0xd4)]),console[_0x45fb5b(0xca)](_0x45fb5b(0xd3)+_0x188d86[_0x45fb5b(0xa5)]),console[_0x45fb5b(0xca)](_0x45fb5b(0xa8)+AUTH_MODE[_0x45fb5b(0xdc)]),console[_0x45fb5b(0xca)](_0x45fb5b(0xc9)+(_0x188d86['accessKey']?a25_0x3f71c7[_0x45fb5b(0xac)](_0x45fb5b(0xcb)+_0x188d86[_0x45fb5b(0xda)][_0x45fb5b(0xd5)]+')'):a25_0x3f71c7['gray'](_0x45fb5b(0xa9)))),console[_0x45fb5b(0xca)](),console['log'](a25_0x3f71c7['bold'](_0x45fb5b(0xf2))),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xc4)[_0x45fb5b(0xe0)](0x1e))),console[_0x45fb5b(0xca)](_0x45fb5b(0xc7)+getApiDomain()),console['log'](_0x45fb5b(0xe5)+getUserDomain()),console['log'](_0x45fb5b(0xc0)+getRuntimeDomain()),console[_0x45fb5b(0xca)](),console['log'](a25_0x3f71c7['bold'](_0x45fb5b(0xd9))),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xc4)[_0x45fb5b(0xe0)](0x1e)));const _0x1e5bed=inspectServiceRegistry();console[_0x45fb5b(0xca)](_0x45fb5b(0xe1)+_0x1e5bed[_0x45fb5b(0xa6)]),console[_0x45fb5b(0xca)](_0x45fb5b(0xc6)+formatServiceRegistryStatus(_0x1e5bed)),console[_0x45fb5b(0xca)](_0x45fb5b(0xde)+_0x1e5bed[_0x45fb5b(0xe4)]),console[_0x45fb5b(0xca)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1e5bed[_0x45fb5b(0xf4)]);for(const _0x25d87b of _0x1e5bed[_0x45fb5b(0xbf)]){console[_0x45fb5b(0xca)]('\x20\x20'+(_0x25d87b[_0x45fb5b(0xf1)]+':')['padEnd'](0x11)+'\x20'+(_0x25d87b[_0x45fb5b(0xa4)]||a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xb9)))+'\x20('+_0x25d87b[_0x45fb5b(0xf4)]+_0x45fb5b(0xeb)),console['log']('\x20\x20'+''[_0x45fb5b(0xf5)](0x11)+_0x45fb5b(0xe7)+_0x25d87b[_0x45fb5b(0xb6)]['path']);}return console['log'](),console[_0x45fb5b(0xca)](a25_0x3f71c7['bold'](_0x45fb5b(0xba))),console[_0x45fb5b(0xca)](a25_0x3f71c7[_0x45fb5b(0xe9)](_0x45fb5b(0xc4)[_0x45fb5b(0xe0)](0x1e))),console[_0x45fb5b(0xca)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a25_0x3f71c7[_0x45fb5b(0xac)](AUTH_MODE[_0x45fb5b(0xdc)]+_0x45fb5b(0xb0))),console['log'](_0x45fb5b(0xc5)+a25_0x3f71c7[_0x45fb5b(0xe9)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4e2051){const _0x2e958a=a25_0x3fb0;if(_0x4e2051[_0x2e958a(0xe6)]==='ok')return a25_0x3f71c7[_0x2e958a(0xac)](_0x2e958a(0xe8));if(_0x4e2051[_0x2e958a(0xe6)]===_0x2e958a(0xf0))return a25_0x3f71c7[_0x2e958a(0xe9)](_0x2e958a(0xcf));if(_0x4e2051[_0x2e958a(0xe6)]==='empty')return a25_0x3f71c7[_0x2e958a(0xa1)](_0x2e958a(0xbc));return a25_0x3f71c7[_0x2e958a(0xc3)](_0x2e958a(0xb5)+(_0x4e2051[_0x2e958a(0xbe)]?':\x20'+_0x4e2051[_0x2e958a(0xbe)]:''));}export const doctorDefinition={'service':a25_0xb0406(0xae),'command':a25_0xb0406(0xed),'description':a25_0xb0406(0xcd),'risk':a25_0xb0406(0xb7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a25_0x2649fa=a25_0x1212;(function(_0x1ed6f1,_0xba5f8a){const _0x4baac2=a25_0x1212,_0x451810=_0x1ed6f1();while(!![]){try{const _0x302f7c=-parseInt(_0x4baac2(0x238))/0x1+-parseInt(_0x4baac2(0x239))/0x2+parseInt(_0x4baac2(0x22a))/0x3+parseInt(_0x4baac2(0x1f7))/0x4+parseInt(_0x4baac2(0x211))/0x5+parseInt(_0x4baac2(0x218))/0x6*(parseInt(_0x4baac2(0x206))/0x7)+-parseInt(_0x4baac2(0x221))/0x8;if(_0x302f7c===_0xba5f8a)break;else _0x451810['push'](_0x451810['shift']());}catch(_0x37a42b){_0x451810['push'](_0x451810['shift']());}}}(a25_0x22c1,0xc89c6));function a25_0x22c1(){const _0x2cc948=['\x20\x20─','\x20\x20Config\x20Files','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','status','repeat','\x20Imported\x20from:\x20','services','6081840GilWcY','Project','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','commandCount','read','accessKey','6eiWgJg','padEnd','log','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','verbose','format','10446968cBvqSO','✓\x20Valid\x20JSON','Global','source','✗\x20Invalid','\x20\x20Merged\x20Config','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','gray','1886163jFApcu','ClientAk','\x20commands)','yellow','path','doctor','empty','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','(no\x20file)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1160564mbEQuS','921298kLYNhb','message','pageSize','red','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','(default)','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','version','✓\x20Loaded','serviceCount','appCode','Diagnose\x20CLI\x20configuration\x20and\x20environment','length','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','locale','1343864qXrngF','env','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20auth\x20(effective):\x20','missing','\x20\x20Service\x20Tree','\x20(accessKey)','currentApp','defaultApp','(set,\x20length=','\x20\x20Auth','⚠\x20Empty','\x20\x20API\x20Endpoints','10974117cqpZlv','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','name'];a25_0x22c1=function(){return _0x2cc948;};return a25_0x22c1();}function a25_0x1212(_0x9d94a2,_0x47e269){_0x9d94a2=_0x9d94a2-0x1e4;const _0x22c127=a25_0x22c1();let _0x12125a=_0x22c127[_0x9d94a2];return _0x12125a;}import a25_0x28ba54 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x5c900d){const _0x5c9b6f=a25_0x1212,_0x1305c6=getCliVersion(),_0x28002c=buildConfigFromFlags({});await initGlobalEnvironment(_0x28002c),console['log'](),console['log'](a25_0x28ba54[_0x5c9b6f(0x1fb)](CLI_BIN_NAME+'\x20doctor')),console['log'](a25_0x28ba54[_0x5c9b6f(0x229)]('─'[_0x5c9b6f(0x20e)](0x32))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x237)+_0x1305c6),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x227)+process[_0x5c9b6f(0x1eb)]),console['log'](_0x5c9b6f(0x1fa)+process['platform']+'\x20'+process['arch']),console['log'](),console[_0x5c9b6f(0x21a)](a25_0x28ba54['bold'](_0x5c9b6f(0x20a))),console['log'](a25_0x28ba54[_0x5c9b6f(0x229)]('\x20\x20─'[_0x5c9b6f(0x20e)](0x1e)));const _0x23345e=getGlobalConfigPath(),_0x30b0ff=getProjectConfigPath();console['log'](_0x5c9b6f(0x21d)+(_0x23345e||a25_0x28ba54['gray'](_0x5c9b6f(0x21e)))),console[_0x5c9b6f(0x21a)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x30b0ff||a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x21e)))),console[_0x5c9b6f(0x21a)](),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x1fb)](_0x5c9b6f(0x214))),console['log'](a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x209)[_0x5c9b6f(0x20e)](0x1e)));const _0x510bc5=(_0x46988d,_0x2561e6)=>{const _0x109553=_0x5c9b6f;if(!_0x2561e6){console[_0x109553(0x21a)]('\x20\x20'+_0x46988d[_0x109553(0x219)](0x11)+'\x20'+a25_0x28ba54['gray'](_0x109553(0x233)));return;}const _0x44dd8e=inspectCliConfigJsonFile(_0x2561e6);if(_0x44dd8e[_0x109553(0x20d)]==='ok')console[_0x109553(0x21a)]('\x20\x20'+_0x46988d[_0x109553(0x219)](0x11)+'\x20'+a25_0x28ba54[_0x109553(0x1f3)](_0x109553(0x222)));else{if(_0x44dd8e[_0x109553(0x20d)]===_0x109553(0x230))console['log']('\x20\x20'+_0x46988d['padEnd'](0x11)+'\x20'+a25_0x28ba54['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x44dd8e['status']===_0x109553(0x1fd)?console[_0x109553(0x21a)]('\x20\x20'+_0x46988d[_0x109553(0x219)](0x11)+'\x20'+a25_0x28ba54[_0x109553(0x229)]('(missing)')):(console[_0x109553(0x21a)]('\x20\x20'+_0x46988d[_0x109553(0x219)](0x11)+'\x20'+a25_0x28ba54['red'](_0x109553(0x232))),console['log']('\x20\x20'+''[_0x109553(0x219)](0x11)+'\x20'+a25_0x28ba54[_0x109553(0x1e6)](_0x44dd8e[_0x109553(0x1e4)])));}};_0x510bc5(_0x5c9b6f(0x223),_0x23345e),_0x510bc5(_0x5c9b6f(0x212),_0x30b0ff),console['log'](),console[_0x5c9b6f(0x21a)](a25_0x28ba54['bold'](_0x5c9b6f(0x226))),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x229)]('\x20\x20─'[_0x5c9b6f(0x20e)](0x1e))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x20b)+(_0x28002c[_0x5c9b6f(0x1ee)]||a25_0x28ba54['red']('(not\x20set)'))),console[_0x5c9b6f(0x21a)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28002c[_0x5c9b6f(0x1f8)]);const _0x353274=isLegacyCompatConfigKey(_0x5c9b6f(0x1f6))?a25_0x28ba54[_0x5c9b6f(0x229)](_0x28002c[_0x5c9b6f(0x1f6)]+'\x20(legacy/compat\x20only)'):_0x28002c[_0x5c9b6f(0x1f6)];console['log'](_0x5c9b6f(0x21b)+_0x353274),console[_0x5c9b6f(0x21a)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x28002c[_0x5c9b6f(0x201)]||a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x20c)))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1f1)+(_0x28002c[_0x5c9b6f(0x200)]||a25_0x28ba54['gray']('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28002c[_0x5c9b6f(0x220)]||a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x21c)+DEFAULT_CONFIG_VALUES[_0x5c9b6f(0x220)]+')'))),console['log'](_0x5c9b6f(0x235)+(_0x28002c[_0x5c9b6f(0x1e5)]??a25_0x28ba54['gray'](_0x5c9b6f(0x1e9)))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x231)+_0x28002c['riskLevel']),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x213)+_0x28002c[_0x5c9b6f(0x21f)]),console['log'](_0x5c9b6f(0x1fc)+AUTH_MODE[_0x5c9b6f(0x22b)]),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1ea)+(_0x28002c['accessKey']?a25_0x28ba54[_0x5c9b6f(0x1f3)](_0x5c9b6f(0x202)+_0x28002c[_0x5c9b6f(0x217)][_0x5c9b6f(0x1f0)]+')'):a25_0x28ba54[_0x5c9b6f(0x229)]('(none)'))),console['log'](),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x1fb)](_0x5c9b6f(0x205))),console[_0x5c9b6f(0x21a)](a25_0x28ba54['gray'](_0x5c9b6f(0x209)[_0x5c9b6f(0x20e)](0x1e))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1f9)+getApiDomain()),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1f5)+getUserDomain()),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1f2)+getRuntimeDomain()),console['log'](),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x1fb)](_0x5c9b6f(0x1fe))),console['log'](a25_0x28ba54[_0x5c9b6f(0x229)]('\x20\x20─'[_0x5c9b6f(0x20e)](0x1e)));const _0x54f781=inspectServiceRegistry();console[_0x5c9b6f(0x21a)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x54f781['registryPath']),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x207)+formatServiceRegistryStatus(_0x54f781)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x54f781[_0x5c9b6f(0x1ed)]),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x234)+_0x54f781['commandCount']);for(const _0x419c4c of _0x54f781[_0x5c9b6f(0x210)]){console[_0x5c9b6f(0x21a)]('\x20\x20'+(_0x419c4c[_0x5c9b6f(0x1e8)]+':')[_0x5c9b6f(0x219)](0x11)+'\x20'+(_0x419c4c[_0x5c9b6f(0x208)]||a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x228)))+'\x20('+_0x419c4c[_0x5c9b6f(0x215)]+_0x5c9b6f(0x22c)),console[_0x5c9b6f(0x21a)]('\x20\x20'+''['padEnd'](0x11)+_0x5c9b6f(0x20f)+_0x419c4c[_0x5c9b6f(0x224)][_0x5c9b6f(0x22e)]);}return console[_0x5c9b6f(0x21a)](),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x1fb)](_0x5c9b6f(0x203))),console[_0x5c9b6f(0x21a)](a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x209)[_0x5c9b6f(0x20e)](0x1e))),console[_0x5c9b6f(0x21a)](_0x5c9b6f(0x1e7)+a25_0x28ba54[_0x5c9b6f(0x1f3)](AUTH_MODE[_0x5c9b6f(0x22b)]+_0x5c9b6f(0x1ff))),console[_0x5c9b6f(0x21a)]('\x20\x20Session\x20check:\x20\x20\x20'+a25_0x28ba54[_0x5c9b6f(0x229)](_0x5c9b6f(0x1f4))),console[_0x5c9b6f(0x21a)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x53fb61){const _0x1249f9=a25_0x1212;if(_0x53fb61[_0x1249f9(0x20d)]==='ok')return a25_0x28ba54[_0x1249f9(0x1f3)](_0x1249f9(0x1ec));if(_0x53fb61[_0x1249f9(0x20d)]==='missing')return a25_0x28ba54[_0x1249f9(0x229)](_0x1249f9(0x21e));if(_0x53fb61[_0x1249f9(0x20d)]===_0x1249f9(0x230))return a25_0x28ba54[_0x1249f9(0x22d)](_0x1249f9(0x204));return a25_0x28ba54[_0x1249f9(0x1e6)](_0x1249f9(0x225)+(_0x53fb61['message']?':\x20'+_0x53fb61[_0x1249f9(0x1e4)]:''));}export const doctorDefinition={'service':a25_0x2649fa(0x22f),'command':a25_0x2649fa(0x236),'description':a25_0x2649fa(0x1ef),'risk':a25_0x2649fa(0x216),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x5576d7=a26_0x4333;(function(_0x4e095a,_0x402927){const _0x2f66ed=a26_0x4333,_0x2aea7c=_0x4e095a();while(!![]){try{const _0x22c1a4=parseInt(_0x2f66ed(0xbe))/0x1*(parseInt(_0x2f66ed(0xe0))/0x2)+parseInt(_0x2f66ed(0xda))/0x3+parseInt(_0x2f66ed(0xd8))/0x4*(parseInt(_0x2f66ed(0xd4))/0x5)+parseInt(_0x2f66ed(0xee))/0x6*(parseInt(_0x2f66ed(0xbd))/0x7)+parseInt(_0x2f66ed(0xbc))/0x8*(parseInt(_0x2f66ed(0xc4))/0x9)+-parseInt(_0x2f66ed(0xd6))/0xa+-parseInt(_0x2f66ed(0xef))/0xb;if(_0x22c1a4===_0x402927)break;else _0x2aea7c['push'](_0x2aea7c['shift']());}catch(_0x1e7eaf){_0x2aea7c['push'](_0x2aea7c['shift']());}}}(a26_0x507a,0xa14c3));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';function a26_0x507a(){const _0xd42514=['parse','join','utf8','Skip\x20confirmation\x20when\x20overwriting','477645xRrtKN','log','8965330AhemTH','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`.','32KjjPHg',')\x20instead\x20of\x20project','286824dqDqLy','object','string','project','\x20already\x20exists.\x20Overwrite?','boolean','8WZSZPr','\x20\x20appcode:\x20','\x20\x20config:\x20\x20','):\x20','Write\x20to\x20global\x20(~/','global','riskLevel','race','\x20\x20default:\x20','toLowerCase','app','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Failed\x20to\x20parse\x20source\x20file:\x20','defaultApp','18OSjcVs','26192936ARnjSE','Source\x20file\x20not\x20found:\x20','[y/N]','SIGINT','File\x20','\x22.\x20Allowed:\x20','Override\x20imported\x20default\x20appcode','Invalid\x20env\x20\x22','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','cancelled','file','stdout','env','includes','removeListener','appcode','\x0aInitialized\x20','1032dtctgh','2374141hpxRZL','237430CthTkq','trim','close','flagMissing','[Y/n]','apiDir','77535XCfHQE','Aborted.','\x20\x20env:\x20\x20\x20\x20\x20','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','validation','Initialized\x20','question','Target\x20environment\x20(default\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','yes','Imported\x20from\x20','newConfigFileName'];a26_0x507a=function(){return _0xd42514;};return a26_0x507a();}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_0x5576d7(0xba),'type':a26_0x5576d7(0xdc),'description':'App\x20code\x20for\x20the\x20project'},{'name':a26_0x5576d7(0xb7),'type':a26_0x5576d7(0xdc),'description':a26_0x5576d7(0xcb)+DEFAULT_CONFIG_VALUES['env']+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x5576d7(0xe5),'type':a26_0x5576d7(0xdf),'description':a26_0x5576d7(0xe4)+PRODUCT_CONFIG[a26_0x5576d7(0xcf)]+a26_0x5576d7(0xd9),'default':![]},{'name':a26_0x5576d7(0xcd),'type':a26_0x5576d7(0xdf),'description':a26_0x5576d7(0xd3),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x5576d7(0xb5),'type':a26_0x5576d7(0xdc),'description':a26_0x5576d7(0xcc),'required':!![]},{'name':'appcode','type':a26_0x5576d7(0xdc),'description':a26_0x5576d7(0xb1)},{'name':a26_0x5576d7(0xb7),'type':a26_0x5576d7(0xdc),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x5576d7(0xe5),'type':a26_0x5576d7(0xdf),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a26_0x5576d7(0xcf)]+a26_0x5576d7(0xd9),'default':![]},{'name':'yes','type':a26_0x5576d7(0xdf),'description':a26_0x5576d7(0xd3),'default':![]}];export async function runInit(_0x6d58ac){const _0x54c649=a26_0x5576d7,_0x3ce025=isNonInteractiveMode(_0x6d58ac),_0x375a22=_0x6d58ac[_0x54c649(0xe5)]?_0x54c649(0xe5):_0x54c649(0xdd),_0x510bef=resolveWriteConfigPath(_0x375a22);try{_0x3ce025?await runNonInteractive(_0x6d58ac,_0x510bef):await runInteractive(_0x6d58ac,_0x510bef);}catch(_0xef1efe){if(_0xef1efe instanceof AbortPrompt)throw CliErrors[_0x54c649(0xb4)]();throw _0xef1efe;}}export async function runInitImport(_0x4a2000){const _0x252633=a26_0x5576d7,_0x5455cc=_0x4a2000[_0x252633(0xe5)]?_0x252633(0xe5):'project',_0x118e0f=resolveWriteConfigPath(_0x5455cc);await runFromImport(_0x4a2000,_0x118e0f);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x5576d7(0xc3)]);async function runFromImport(_0xc2137b,_0x17098f){const _0x2163af=a26_0x5576d7,_0x43fdd3=resolveFilePath(_0xc2137b['file']);if(!existsSync(_0x43fdd3))throw CliErrors[_0x2163af(0xc8)](_0x2163af(0xf0)+_0x43fdd3);const _0x11c6c6=readSourceFile(_0x43fdd3),_0x2e45be=convertToRuntimeConfig(_0x11c6c6);_0xc2137b['appcode']&&(_0x2e45be[_0x2163af(0xba)]=String(_0xc2137b[_0x2163af(0xba)]));_0xc2137b['env']&&(_0x2e45be[_0x2163af(0xb7)]=resolveInitEnv(_0xc2137b));if(!_0x2e45be[_0x2163af(0xba)])throw CliErrors[_0x2163af(0xc8)](_0x2163af(0xeb),_0x2163af(0xd7));await writeInitConfig(_0x17098f,_0x2e45be,_0xc2137b),console['log'](_0x2163af(0xce)+_0x43fdd3),console[_0x2163af(0xd5)](_0x2163af(0xe2)+_0x17098f),console[_0x2163af(0xd5)](_0x2163af(0xe1)+_0x2e45be[_0x2163af(0xba)]);if(_0x2e45be[_0x2163af(0xed)])console[_0x2163af(0xd5)](_0x2163af(0xe8)+_0x2e45be[_0x2163af(0xed)]);}function convertToRuntimeConfig(_0xfc347){const _0x266c14=a26_0x5576d7;if(_0xfc347['apps']&&typeof _0xfc347['apps']===_0x266c14(0xdb))throw CliErrors[_0x266c14(0xc8)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x266c14(0xb3));const _0x5c23d6={};for(const _0x3ab7f9 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xfc347[_0x3ab7f9]!==undefined&&(_0x5c23d6[_0x3ab7f9]=_0xfc347[_0x3ab7f9]);}return!_0x5c23d6['riskLevel']&&(_0x5c23d6['riskLevel']=DEFAULT_CONFIG_VALUES[_0x266c14(0xe6)]),_0x5c23d6;}async function runNonInteractive(_0x337da8,_0x3c1172){const _0x2be86e=a26_0x5576d7,_0x21d04a=_0x337da8[_0x2be86e(0xba)];if(!_0x21d04a)throw CliErrors[_0x2be86e(0xc1)](_0x2be86e(0xba),'Usage:\x20'+CLI_BIN_NAME+_0x2be86e(0xc7));const _0x23abab=resolveInitEnv(_0x337da8);await writeInitConfig(_0x3c1172,{'appcode':_0x21d04a,'env':_0x23abab},_0x337da8),console[_0x2be86e(0xd5)](_0x2be86e(0xc9)+_0x3c1172),console[_0x2be86e(0xd5)](_0x2be86e(0xe1)+_0x21d04a),console[_0x2be86e(0xd5)](_0x2be86e(0xc6)+_0x23abab);}async function runInteractive(_0x5e587b,_0x19e6df){const _0x15f8f1=a26_0x5576d7,_0x339fb3=loadExisting(_0x19e6df),_0xbe25b=typeof _0x339fb3?.['appcode']===_0x15f8f1(0xdc)?_0x339fb3[_0x15f8f1(0xba)]:'',_0x2e303b=resolveInitEnv(_0x5e587b);console[_0x15f8f1(0xd5)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG[_0x15f8f1(0xcf)]+'\x0a');if(existsSync(_0x19e6df)&&!_0x5e587b[_0x15f8f1(0xcd)]){const _0x375c57=await promptYesNo(_0x15f8f1(0xaf)+_0x19e6df+_0x15f8f1(0xde),![]);if(!_0x375c57){console[_0x15f8f1(0xd5)](_0x15f8f1(0xc5));return;}}const _0x56dcfc=typeof _0x5e587b[_0x15f8f1(0xba)]==='string'?_0x5e587b[_0x15f8f1(0xba)][_0x15f8f1(0xbf)]():'';let _0x19f305=_0x56dcfc;!_0x19f305&&(_0x19f305=await promptInput('App\x20code',_0xbe25b));if(!_0x19f305[_0x15f8f1(0xbf)]())throw CliErrors[_0x15f8f1(0xc8)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x19e6df,{'appcode':_0x19f305[_0x15f8f1(0xbf)](),'env':_0x2e303b},_0x5e587b),console[_0x15f8f1(0xd5)](_0x15f8f1(0xbb)+_0x19e6df),console['log'](_0x15f8f1(0xe1)+_0x19f305['trim']()),console[_0x15f8f1(0xd5)](_0x15f8f1(0xc6)+_0x2e303b);}async function writeInitConfig(_0x5d2596,_0x1bb67f,_0x17e560){const _0x4d5ffa=a26_0x5576d7;let _0x4a4992={};existsSync(_0x5d2596)&&!_0x17e560['yes']&&(_0x4a4992=readConfigFile(_0x5d2596));for(const [_0x4821bb,_0x59e22a]of Object['entries'](_0x1bb67f)){_0x59e22a!==undefined&&(_0x4a4992[_0x4821bb]=_0x59e22a);}if(_0x4a4992['app'])delete _0x4a4992[_0x4d5ffa(0xea)];writeConfigFile(_0x5d2596,_0x4a4992);}class AbortPrompt extends Error{constructor(){super('User\x20aborted\x20prompt'),this['name']='AbortPrompt';}}function createSafeRl(){const _0x434cba=a26_0x5576d7,_0x3dc0b8=createInterface({'input':process['stdin'],'output':process[_0x434cba(0xb6)]});let _0x35e3ee;const _0xd31ad5=new Promise((_0x4c97fd,_0x4b78d2)=>{const _0x42fe91=_0x434cba;_0x35e3ee=()=>{const _0x150351=a26_0x4333;_0x35e3ee&&(_0x3dc0b8[_0x150351(0xb9)](_0x150351(0xf2),_0x35e3ee),_0x35e3ee=undefined);try{_0x3dc0b8[_0x150351(0xc0)]();}catch{}_0x4b78d2(new AbortPrompt());},_0x3dc0b8['once'](_0x42fe91(0xf2),_0x35e3ee);}),_0x26957f=()=>{const _0x4f2903=_0x434cba;_0x35e3ee&&(_0x3dc0b8[_0x4f2903(0xb9)](_0x4f2903(0xf2),_0x35e3ee),_0x35e3ee=undefined);try{_0x3dc0b8[_0x4f2903(0xc0)]();}catch{}};return{'rl':_0x3dc0b8,'abortPromise':_0xd31ad5,'disposeSuccess':_0x26957f};}async function promptInput(_0x4bbefc,_0x3895e2){const _0x5794cf=a26_0x5576d7,{rl:_0x406cad,abortPromise:_0xcf4c7a,disposeSuccess:_0x39e295}=createSafeRl(),_0x1b5f1a=new Promise(_0x3eb1b3=>{const _0x58773d=a26_0x4333,_0x4c1c65=_0x3895e2?'\x20\x20'+_0x4bbefc+'\x20('+_0x3895e2+_0x58773d(0xe3):'\x20\x20'+_0x4bbefc+':\x20';_0x406cad[_0x58773d(0xca)](_0x4c1c65,_0x3af1a7=>{const _0x1a99a1=_0x58773d;_0x39e295(),_0x3eb1b3(_0x3af1a7[_0x1a99a1(0xbf)]()||_0x3895e2);});});return Promise[_0x5794cf(0xe7)]([_0x1b5f1a,_0xcf4c7a]);}async function promptYesNo(_0x5a8220,_0x216dc4){const {rl:_0x1aa54a,abortPromise:_0x2776c6,disposeSuccess:_0x189bad}=createSafeRl(),_0x1cf0b2=new Promise(_0x262400=>{const _0x581dfe=a26_0x4333,_0x1e4d63=_0x216dc4?_0x581dfe(0xc2):_0x581dfe(0xf1);_0x1aa54a[_0x581dfe(0xca)]('\x20\x20'+_0x5a8220+'\x20'+_0x1e4d63+':\x20',_0x2d205a=>{const _0x55e7be=_0x581dfe;_0x189bad();const _0x47ac40=_0x2d205a[_0x55e7be(0xbf)]()[_0x55e7be(0xe9)]();if(_0x47ac40==='y'||_0x47ac40===_0x55e7be(0xcd))_0x262400(!![]);else{if(_0x47ac40==='n'||_0x47ac40==='no')_0x262400(![]);else _0x262400(_0x216dc4);}});});return Promise['race']([_0x1cf0b2,_0x2776c6]);}function loadExisting(_0x106401){if(!existsSync(_0x106401))return null;return readConfigFile(_0x106401);}function resolveFilePath(_0x2aea5c){return isAbsolute(_0x2aea5c)?_0x2aea5c:resolve(process['cwd'](),_0x2aea5c);}function readSourceFile(_0x33b520){const _0x4c12d8=a26_0x5576d7;try{const _0x255281=readFileSync(_0x33b520,{'encoding':_0x4c12d8(0xd2)});return JSON[_0x4c12d8(0xd0)](_0x255281);}catch(_0x2199ab){throw CliErrors[_0x4c12d8(0xc8)](_0x4c12d8(0xec)+_0x2199ab['message']);}}function a26_0x4333(_0x432bd3,_0x3929b8){_0x432bd3=_0x432bd3-0xaf;const _0x507ab4=a26_0x507a();let _0x433378=_0x507ab4[_0x432bd3];return _0x433378;}function resolveInitEnv(_0x5e172f){const _0x157171=a26_0x5576d7,_0x31b4db=_0x5e172f[_0x157171(0xb7)];if(_0x31b4db===undefined||_0x31b4db==='')return DEFAULT_CONFIG_VALUES[_0x157171(0xb7)];if(!RUNTIME_ENV_VALUES[_0x157171(0xb8)](_0x31b4db))throw CliErrors['validation'](_0x157171(0xb2)+_0x31b4db+_0x157171(0xb0)+RUNTIME_ENV_VALUES[_0x157171(0xd1)](',\x20'));return _0x31b4db;}
1
+ const a26_0x4a6829=a26_0x1c17;(function(_0x2bc4a2,_0x541a1c){const _0x4617fe=a26_0x1c17,_0x3c73a2=_0x2bc4a2();while(!![]){try{const _0x5e30eb=parseInt(_0x4617fe(0x1cc))/0x1+parseInt(_0x4617fe(0x1ad))/0x2*(parseInt(_0x4617fe(0x1a7))/0x3)+parseInt(_0x4617fe(0x1a4))/0x4+-parseInt(_0x4617fe(0x1c0))/0x5+-parseInt(_0x4617fe(0x1a1))/0x6+parseInt(_0x4617fe(0x1d0))/0x7+-parseInt(_0x4617fe(0x19c))/0x8;if(_0x5e30eb===_0x541a1c)break;else _0x3c73a2['push'](_0x3c73a2['shift']());}catch(_0x4deccc){_0x3c73a2['push'](_0x3c73a2['shift']());}}}(a26_0x1dab,0x65e43));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';function a26_0x1dab(){const _0x10cf89=['Usage:\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','Override\x20imported\x20default\x20appcode','name','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','app','validation','\x20\x20config:\x20\x20','boolean','):\x20','env','cwd','1936710QFWLwb','\x20\x20appcode:\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','trim',')\x20instead\x20of\x20project','stdout','race','defaultApp','appcode','yes','log','apps','513297izOMee','object','cancelled','User\x20aborted\x20prompt','4572498sxMIfX','project','newConfigFileName','Write\x20to\x20global\x20(~/','message','file','entries','string','\x0aInitialized\x20','Target\x20environment\x20(default\x20','File\x20','\x20already\x20exists.\x20Overwrite?','4399992kJbnpO','question','\x20\x20default:\x20','parse','toLowerCase','3078840XeJNGM','once','removeListener','869472OqNWXX','riskLevel','App\x20code\x20for\x20the\x20project','1451847yrYFqq','SIGINT','[y/N]','Invalid\x20env\x20\x22','\x20\x20env:\x20\x20\x20\x20\x20','close','2klIpXs','AbortPrompt','Imported\x20from\x20','Skip\x20confirmation\x20when\x20overwriting','global','Override\x20imported\x20default\x20env'];a26_0x1dab=function(){return _0x10cf89;};return a26_0x1dab();}import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x4a6829(0x1c8),'type':a26_0x4a6829(0x197),'description':a26_0x4a6829(0x1a6)},{'name':a26_0x4a6829(0x1be),'type':'string','description':a26_0x4a6829(0x199)+DEFAULT_CONFIG_VALUES[a26_0x4a6829(0x1be)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x4a6829(0x1b1),'type':a26_0x4a6829(0x1bc),'description':a26_0x4a6829(0x193)+PRODUCT_CONFIG[a26_0x4a6829(0x1d2)]+')\x20instead\x20of\x20project','default':![]},{'name':a26_0x4a6829(0x1c9),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a26_0x4a6829(0x195),'type':a26_0x4a6829(0x197),'description':a26_0x4a6829(0x1b4),'required':!![]},{'name':a26_0x4a6829(0x1c8),'type':a26_0x4a6829(0x197),'description':a26_0x4a6829(0x1b6)},{'name':a26_0x4a6829(0x1be),'type':a26_0x4a6829(0x197),'description':a26_0x4a6829(0x1b2),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x4a6829(0x1b1),'type':a26_0x4a6829(0x1bc),'description':a26_0x4a6829(0x193)+PRODUCT_CONFIG[a26_0x4a6829(0x1d2)]+a26_0x4a6829(0x1c4),'default':![]},{'name':'yes','type':a26_0x4a6829(0x1bc),'description':a26_0x4a6829(0x1b0),'default':![]}];export async function runInit(_0x187b3e){const _0x116d4d=a26_0x4a6829,_0xeebb12=isNonInteractiveMode(_0x187b3e),_0x520c09=_0x187b3e[_0x116d4d(0x1b1)]?'global':_0x116d4d(0x1d1),_0x288a1a=resolveWriteConfigPath(_0x520c09);try{_0xeebb12?await runNonInteractive(_0x187b3e,_0x288a1a):await runInteractive(_0x187b3e,_0x288a1a);}catch(_0x344184){if(_0x344184 instanceof AbortPrompt)throw CliErrors[_0x116d4d(0x1ce)]();throw _0x344184;}}export async function runInitImport(_0x5f07b1){const _0x5bdbf0=a26_0x4a6829,_0xe897d3=_0x5f07b1[_0x5bdbf0(0x1b1)]?_0x5bdbf0(0x1b1):'project',_0x3895aa=resolveWriteConfigPath(_0xe897d3);await runFromImport(_0x5f07b1,_0x3895aa);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0xb1aca0,_0x293642){const _0x19fd31=a26_0x4a6829,_0x1958a5=resolveFilePath(_0xb1aca0[_0x19fd31(0x195)]);if(!existsSync(_0x1958a5))throw CliErrors[_0x19fd31(0x1ba)]('Source\x20file\x20not\x20found:\x20'+_0x1958a5);const _0x4e7cb0=readSourceFile(_0x1958a5),_0x1c30c4=convertToRuntimeConfig(_0x4e7cb0);_0xb1aca0['appcode']&&(_0x1c30c4[_0x19fd31(0x1c8)]=String(_0xb1aca0[_0x19fd31(0x1c8)]));_0xb1aca0[_0x19fd31(0x1be)]&&(_0x1c30c4[_0x19fd31(0x1be)]=resolveInitEnv(_0xb1aca0));if(!_0x1c30c4[_0x19fd31(0x1c8)])throw CliErrors[_0x19fd31(0x1ba)](_0x19fd31(0x1b8),_0x19fd31(0x1c2));await writeInitConfig(_0x293642,_0x1c30c4,_0xb1aca0),console[_0x19fd31(0x1ca)](_0x19fd31(0x1af)+_0x1958a5),console[_0x19fd31(0x1ca)](_0x19fd31(0x1bb)+_0x293642),console[_0x19fd31(0x1ca)](_0x19fd31(0x1c1)+_0x1c30c4[_0x19fd31(0x1c8)]);if(_0x1c30c4[_0x19fd31(0x1c7)])console[_0x19fd31(0x1ca)](_0x19fd31(0x19e)+_0x1c30c4[_0x19fd31(0x1c7)]);}function convertToRuntimeConfig(_0x153fd2){const _0x28b8fc=a26_0x4a6829;if(_0x153fd2[_0x28b8fc(0x1cb)]&&typeof _0x153fd2[_0x28b8fc(0x1cb)]===_0x28b8fc(0x1cd))throw CliErrors[_0x28b8fc(0x1ba)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x771ee0={};for(const _0xc163cf of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x153fd2[_0xc163cf]!==undefined&&(_0x771ee0[_0xc163cf]=_0x153fd2[_0xc163cf]);}return!_0x771ee0[_0x28b8fc(0x1a5)]&&(_0x771ee0['riskLevel']=DEFAULT_CONFIG_VALUES[_0x28b8fc(0x1a5)]),_0x771ee0;}async function runNonInteractive(_0x2d1b3d,_0x1506ad){const _0x4106fa=a26_0x4a6829,_0x574ebf=_0x2d1b3d[_0x4106fa(0x1c8)];if(!_0x574ebf)throw CliErrors['flagMissing'](_0x4106fa(0x1c8),_0x4106fa(0x1b3)+CLI_BIN_NAME+_0x4106fa(0x1b5));const _0x20381e=resolveInitEnv(_0x2d1b3d);await writeInitConfig(_0x1506ad,{'appcode':_0x574ebf,'env':_0x20381e},_0x2d1b3d),console[_0x4106fa(0x1ca)]('Initialized\x20'+_0x1506ad),console[_0x4106fa(0x1ca)](_0x4106fa(0x1c1)+_0x574ebf),console[_0x4106fa(0x1ca)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x20381e);}function a26_0x1c17(_0x198d06,_0x230d04){_0x198d06=_0x198d06-0x193;const _0x1dabc7=a26_0x1dab();let _0x1c1713=_0x1dabc7[_0x198d06];return _0x1c1713;}async function runInteractive(_0x5d9e42,_0x207d95){const _0x2cdb4a=a26_0x4a6829,_0x41a7f7=loadExisting(_0x207d95),_0x51c6fe=typeof _0x41a7f7?.[_0x2cdb4a(0x1c8)]===_0x2cdb4a(0x197)?_0x41a7f7['appcode']:'',_0x5f2e61=resolveInitEnv(_0x5d9e42);console['log'](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG[_0x2cdb4a(0x1d2)]+'\x0a');if(existsSync(_0x207d95)&&!_0x5d9e42[_0x2cdb4a(0x1c9)]){const _0x1bf11f=await promptYesNo(_0x2cdb4a(0x19a)+_0x207d95+_0x2cdb4a(0x19b),![]);if(!_0x1bf11f){console[_0x2cdb4a(0x1ca)]('Aborted.');return;}}const _0x1113cf=typeof _0x5d9e42[_0x2cdb4a(0x1c8)]==='string'?_0x5d9e42[_0x2cdb4a(0x1c8)][_0x2cdb4a(0x1c3)]():'';let _0xa0d639=_0x1113cf;!_0xa0d639&&(_0xa0d639=await promptInput('App\x20code',_0x51c6fe));if(!_0xa0d639['trim']())throw CliErrors['validation']('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x207d95,{'appcode':_0xa0d639['trim'](),'env':_0x5f2e61},_0x5d9e42),console[_0x2cdb4a(0x1ca)](_0x2cdb4a(0x198)+_0x207d95),console[_0x2cdb4a(0x1ca)](_0x2cdb4a(0x1c1)+_0xa0d639[_0x2cdb4a(0x1c3)]()),console[_0x2cdb4a(0x1ca)](_0x2cdb4a(0x1ab)+_0x5f2e61);}async function writeInitConfig(_0x5b32d4,_0x5e61f0,_0x5ffcc7){const _0x4b9cb7=a26_0x4a6829;let _0x14c77d={};existsSync(_0x5b32d4)&&!_0x5ffcc7[_0x4b9cb7(0x1c9)]&&(_0x14c77d=readConfigFile(_0x5b32d4));for(const [_0x23a6d5,_0x22220e]of Object[_0x4b9cb7(0x196)](_0x5e61f0)){_0x22220e!==undefined&&(_0x14c77d[_0x23a6d5]=_0x22220e);}if(_0x14c77d['app'])delete _0x14c77d[_0x4b9cb7(0x1b9)];writeConfigFile(_0x5b32d4,_0x14c77d);}class AbortPrompt extends Error{constructor(){const _0x58a4ce=a26_0x4a6829;super(_0x58a4ce(0x1cf)),this[_0x58a4ce(0x1b7)]=_0x58a4ce(0x1ae);}}function createSafeRl(){const _0x3e43d7=a26_0x4a6829,_0x4df7f9=createInterface({'input':process['stdin'],'output':process[_0x3e43d7(0x1c5)]});let _0x20e65a;const _0x43ca2a=new Promise((_0x4aa16e,_0x4079b7)=>{const _0x116921=_0x3e43d7;_0x20e65a=()=>{const _0x229620=a26_0x1c17;_0x20e65a&&(_0x4df7f9[_0x229620(0x1a3)](_0x229620(0x1a8),_0x20e65a),_0x20e65a=undefined);try{_0x4df7f9['close']();}catch{}_0x4079b7(new AbortPrompt());},_0x4df7f9[_0x116921(0x1a2)](_0x116921(0x1a8),_0x20e65a);}),_0x2470d2=()=>{const _0x1163aa=_0x3e43d7;_0x20e65a&&(_0x4df7f9[_0x1163aa(0x1a3)](_0x1163aa(0x1a8),_0x20e65a),_0x20e65a=undefined);try{_0x4df7f9[_0x1163aa(0x1ac)]();}catch{}};return{'rl':_0x4df7f9,'abortPromise':_0x43ca2a,'disposeSuccess':_0x2470d2};}async function promptInput(_0x19527f,_0x1cc9fb){const {rl:_0x16ca14,abortPromise:_0x36e574,disposeSuccess:_0x306b72}=createSafeRl(),_0x84b3b0=new Promise(_0x53edf8=>{const _0x23c73f=a26_0x1c17,_0x3b8ff5=_0x1cc9fb?'\x20\x20'+_0x19527f+'\x20('+_0x1cc9fb+_0x23c73f(0x1bd):'\x20\x20'+_0x19527f+':\x20';_0x16ca14[_0x23c73f(0x19d)](_0x3b8ff5,_0x400bb0=>{const _0x10a321=_0x23c73f;_0x306b72(),_0x53edf8(_0x400bb0[_0x10a321(0x1c3)]()||_0x1cc9fb);});});return Promise['race']([_0x84b3b0,_0x36e574]);}async function promptYesNo(_0xb7f9e4,_0x5812b0){const _0x2e38c2=a26_0x4a6829,{rl:_0x1088e4,abortPromise:_0x24fa17,disposeSuccess:_0x5850ca}=createSafeRl(),_0x3111dd=new Promise(_0x37c5d1=>{const _0x431fd3=a26_0x1c17,_0x343251=_0x5812b0?'[Y/n]':_0x431fd3(0x1a9);_0x1088e4[_0x431fd3(0x19d)]('\x20\x20'+_0xb7f9e4+'\x20'+_0x343251+':\x20',_0x46729f=>{const _0x201209=_0x431fd3;_0x5850ca();const _0x34c1cc=_0x46729f[_0x201209(0x1c3)]()[_0x201209(0x1a0)]();if(_0x34c1cc==='y'||_0x34c1cc==='yes')_0x37c5d1(!![]);else{if(_0x34c1cc==='n'||_0x34c1cc==='no')_0x37c5d1(![]);else _0x37c5d1(_0x5812b0);}});});return Promise[_0x2e38c2(0x1c6)]([_0x3111dd,_0x24fa17]);}function loadExisting(_0x995174){if(!existsSync(_0x995174))return null;return readConfigFile(_0x995174);}function resolveFilePath(_0x3badfb){const _0x54295a=a26_0x4a6829;return isAbsolute(_0x3badfb)?_0x3badfb:resolve(process[_0x54295a(0x1bf)](),_0x3badfb);}function readSourceFile(_0x248a97){const _0x420b35=a26_0x4a6829;try{const _0x3e8992=readFileSync(_0x248a97,{'encoding':'utf8'});return JSON[_0x420b35(0x19f)](_0x3e8992);}catch(_0x35da08){throw CliErrors[_0x420b35(0x1ba)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x35da08[_0x420b35(0x194)]);}}function resolveInitEnv(_0x16a681){const _0x2b02ef=a26_0x4a6829,_0x50068a=_0x16a681[_0x2b02ef(0x1be)];if(_0x50068a===undefined||_0x50068a==='')return DEFAULT_CONFIG_VALUES[_0x2b02ef(0x1be)];if(!RUNTIME_ENV_VALUES['includes'](_0x50068a))throw CliErrors[_0x2b02ef(0x1ba)](_0x2b02ef(0x1aa)+_0x50068a+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x50068a;}