@lovrabet/lovrabet-cli 2.1.2 → 2.1.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) 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 -0
  37. package/lib/commands/skill/commands/install.js +1 -0
  38. package/lib/commands/skill/commands/list.js +1 -0
  39. package/lib/commands/skill/commands/push.js +1 -0
  40. package/lib/commands/skill/commands/validate.js +1 -0
  41. package/lib/commands/skill/flags.js +1 -0
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -0
  44. package/lib/commands/skill/scopes.js +1 -0
  45. package/lib/commands/skill/summary.js +1 -0
  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 -0
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -0
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -0
  89. package/lib/skills/runtime-skill-sync/links.js +1 -0
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -0
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -0
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -0
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -0
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -0
  95. package/lib/skills/runtime-skill-sync/push.js +1 -0
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -0
  97. package/lib/skills/runtime-skill-sync/types.js +1 -0
  98. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -0
  99. package/lib/skills/runtime-skill-sync/zip-package.js +1 -0
  100. package/lib/skills/runtime-skill-sync.js +1 -1
  101. package/lib/utils/apply-jq-filter.js +1 -1
  102. package/lib/utils/logger.js +1 -1
  103. package/lib/utils/params.js +1 -1
  104. package/lib/utils/platform.js +1 -1
  105. package/lib/utils/update-notice.js +1 -1
  106. package/lib/utils/version.js +1 -1
  107. package/lib/utils/write-cli-side-channel.js +1 -1
  108. package/package.json +4 -1
@@ -1 +1 @@
1
- (function(_0x333d3d,_0x21f72e){const _0x26b56d=a15_0x42a8,_0x43e588=_0x333d3d();while(!![]){try{const _0x51ec8d=-parseInt(_0x26b56d(0x16a))/0x1*(parseInt(_0x26b56d(0x162))/0x2)+-parseInt(_0x26b56d(0x16d))/0x3*(-parseInt(_0x26b56d(0x167))/0x4)+parseInt(_0x26b56d(0x170))/0x5+-parseInt(_0x26b56d(0x16e))/0x6+-parseInt(_0x26b56d(0x163))/0x7*(-parseInt(_0x26b56d(0x16b))/0x8)+-parseInt(_0x26b56d(0x174))/0x9*(-parseInt(_0x26b56d(0x171))/0xa)+-parseInt(_0x26b56d(0x160))/0xb;if(_0x51ec8d===_0x21f72e)break;else _0x43e588['push'](_0x43e588['shift']());}catch(_0x1f7d93){_0x43e588['push'](_0x43e588['shift']());}}}(a15_0x40c9,0x7120b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x3a8d4c){const _0x40b665=a15_0x42a8,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x980772}=_0x3a8d4c;if(explicitGlobal&&explicitProject)throw CliErrors[_0x40b665(0x164)](_0x40b665(0x176),_0x40b665(0x169));if(explicitGlobal)return'global';if(explicitProject)return _0x40b665(0x173);switch(_0x980772){case'global-default':return _0x40b665(0x165);case _0x40b665(0x16c):return _0x3a8d4c[_0x40b665(0x175)]??isInProject()?'project':_0x40b665(0x165);case'project-or-global-explicit':if(!(_0x3a8d4c[_0x40b665(0x175)]??isInProject()))throw CliErrors['validation'](_0x40b665(0x172)+PRODUCT_CONFIG[_0x40b665(0x15f)]+'\x20found).',_0x40b665(0x168)+PRODUCT_CONFIG[_0x40b665(0x15f)]+_0x40b665(0x16f)+CLI_BIN_NAME+_0x40b665(0x161));return'project';}}function a15_0x42a8(_0x546068,_0xb28562){_0x546068=_0x546068-0x15f;const _0x40c903=a15_0x40c9();let _0x42a82c=_0x40c903[_0x546068];return _0x42a82c;}export function toScopeFlags(_0x3388b3){const _0x5f4126=a15_0x42a8;return{'global':_0x3388b3===_0x5f4126(0x165)};}export function formatScopeLabel(_0x579080){const _0x1affa7=a15_0x42a8;return _0x579080===_0x1affa7(0x165)?_0x1affa7(0x166):'';}function a15_0x40c9(){const _0x58c42d=['24EEYchm','project-default','27tsvXWN','2140374VQRDDk',',\x20or\x20run\x20`','3895105UddEhd','20WkQMTF','Not\x20inside\x20a\x20project\x20(no\x20','project','774162GaDQMG','inProject','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','newConfigFileName','2530726yfyWcR','\x20init`\x20first.','1322lRtpDR','2092293ZtCAoh','validation','global','\x20(global)','45348TgsYmE','Add\x20--global\x20to\x20write\x20to\x20~/','Use\x20only\x20one\x20config\x20scope\x20flag.','1361yuMRQy'];a15_0x40c9=function(){return _0x58c42d;};return a15_0x40c9();}
1
+ (function(_0xa4c66a,_0x40a70a){const _0x65a0e5=a15_0x5d7c,_0x329517=_0xa4c66a();while(!![]){try{const _0x545f4b=-parseInt(_0x65a0e5(0x17e))/0x1+-parseInt(_0x65a0e5(0x16e))/0x2+parseInt(_0x65a0e5(0x17b))/0x3+parseInt(_0x65a0e5(0x180))/0x4*(-parseInt(_0x65a0e5(0x17d))/0x5)+parseInt(_0x65a0e5(0x170))/0x6+parseInt(_0x65a0e5(0x171))/0x7+parseInt(_0x65a0e5(0x179))/0x8;if(_0x545f4b===_0x40a70a)break;else _0x329517['push'](_0x329517['shift']());}catch(_0x4e4fbd){_0x329517['push'](_0x329517['shift']());}}}(a15_0x3d1b,0x63f88));function a15_0x5d7c(_0x34933c,_0x33bb23){_0x34933c=_0x34933c-0x16e;const _0x3d1ba1=a15_0x3d1b();let _0x5d7c39=_0x3d1ba1[_0x34933c];return _0x5d7c39;}function a15_0x3d1b(){const _0x14c033=['561022ZfGLpR','\x20found).','22136JpDKKx','589978qBnKCx','global-default','1769652DeMAzF','2887927LnKpVe','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20','newConfigFileName','project-or-global-explicit','project','validation','2277464ihOURq','inProject','1102149YGjYqq','global','85hNmeBM'];a15_0x3d1b=function(){return _0x14c033;};return a15_0x3d1b();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x294b4a){const _0x173fd3=a15_0x5d7c,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xcce587}=_0x294b4a;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x173fd3(0x172),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x173fd3(0x17c);if(explicitProject)return _0x173fd3(0x177);switch(_0xcce587){case _0x173fd3(0x16f):return _0x173fd3(0x17c);case'project-default':return _0x294b4a[_0x173fd3(0x17a)]??isInProject()?_0x173fd3(0x177):'global';case _0x173fd3(0x176):if(!(_0x294b4a[_0x173fd3(0x17a)]??isInProject()))throw CliErrors[_0x173fd3(0x178)](_0x173fd3(0x174)+PRODUCT_CONFIG[_0x173fd3(0x175)]+_0x173fd3(0x17f),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x173fd3(0x175)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x173fd3(0x173));return _0x173fd3(0x177);}}export function toScopeFlags(_0x612323){const _0x25f720=a15_0x5d7c;return{'global':_0x612323===_0x25f720(0x17c)};}export function formatScopeLabel(_0xfbcf7f){return _0xfbcf7f==='global'?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x56a32a,_0x4f1f6a){const _0x4908ff=a16_0x479a,_0x29068b=_0x56a32a();while(!![]){try{const _0x1270f6=parseInt(_0x4908ff(0x137))/0x1*(-parseInt(_0x4908ff(0x13f))/0x2)+-parseInt(_0x4908ff(0x143))/0x3*(parseInt(_0x4908ff(0x142))/0x4)+parseInt(_0x4908ff(0x147))/0x5*(-parseInt(_0x4908ff(0x144))/0x6)+-parseInt(_0x4908ff(0x149))/0x7+-parseInt(_0x4908ff(0x14a))/0x8+-parseInt(_0x4908ff(0x13c))/0x9*(parseInt(_0x4908ff(0x133))/0xa)+parseInt(_0x4908ff(0x134))/0xb*(parseInt(_0x4908ff(0x136))/0xc);if(_0x1270f6===_0x4f1f6a)break;else _0x29068b['push'](_0x29068b['shift']());}catch(_0x5dd832){_0x29068b['push'](_0x29068b['shift']());}}}(a16_0x10f6,0xa3b73));function a16_0x479a(_0x4edb1e,_0x5efe71){_0x4edb1e=_0x4edb1e-0x132;const _0x10f6eb=a16_0x10f6();let _0x479a70=_0x10f6eb[_0x4edb1e];return _0x479a70;}import{CliErrors}from'../../errors.js';function isSet(_0x40508c,_0x3d288b){const _0x1a6842=a16_0x479a,_0x28ca9e=_0x40508c[_0x1a6842(0x13e)](_0x3d288b);return _0x28ca9e!==undefined&&_0x28ca9e!==''&&_0x28ca9e!==![]&&_0x28ca9e!==0x0;}function fmtNames(_0x3fd448){const _0x11c607=a16_0x479a;return _0x3fd448[_0x11c607(0x138)](_0x23f4f0=>'--'+_0x23f4f0)[_0x11c607(0x135)](',\x20');}export function requireOneOf(_0x253519,_0x44e9ea,_0x1b893d){const _0x5d51e6=a16_0x479a,_0x37925e=_0x44e9ea[_0x5d51e6(0x146)](_0x6d7a4d=>isSet(_0x253519,_0x6d7a4d));if(_0x37925e[_0x5d51e6(0x132)]!==0x1)throw CliErrors[_0x5d51e6(0x14b)](_0x37925e[_0x5d51e6(0x132)]===0x0?_0x5d51e6(0x145)+fmtNames(_0x44e9ea)+_0x5d51e6(0x13a)+_0x1b893d+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x44e9ea)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x37925e)+'.',_0x37925e['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x44e9ea):_0x5d51e6(0x13d));}export function requireAnyOf(_0x3a0ce8,_0x4f6692,_0x249581){const _0x5c9faf=a16_0x479a;if(!_0x4f6692['some'](_0x2c8661=>isSet(_0x3a0ce8,_0x2c8661)))throw CliErrors[_0x5c9faf(0x14b)](_0x5c9faf(0x140)+fmtNames(_0x4f6692)+_0x5c9faf(0x13a)+_0x249581+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x4f6692));}function a16_0x10f6(){const _0x2d770d=['3604NdvjRl','87Ljfqnq','873426GfuEWl','Exactly\x20one\x20of\x20','filter','30KlNYXJ','str','1398901iJOgus','3647672ErCtBo','validation','length','30UjMHMi','12181389UMiRUn','join','48dWLVBp','4547QImXzY','map','Flags\x20','\x20is\x20required\x20for\x20`',',\x20got\x20\x22','2614167dXugOD','Remove\x20all\x20but\x20one.','flag','586IlCnmP','At\x20least\x20one\x20of\x20','test'];a16_0x10f6=function(){return _0x2d770d;};return a16_0x10f6();}export function mutuallyExclusive(_0x53b3fc,_0x3658c0,_0x4b152e){const _0x1ebe27=a16_0x479a,_0x19964e=_0x3658c0['filter'](_0x37117b=>isSet(_0x53b3fc,_0x37117b));if(_0x19964e['length']>0x1)throw CliErrors[_0x1ebe27(0x14b)](_0x1ebe27(0x139)+fmtNames(_0x19964e)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x4b152e+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x3658c0));}export function validatePattern(_0x3d77d2,_0x480fe6,_0x4058f8,_0x4fcebb){const _0x9274c7=a16_0x479a,_0x1b6ffd=_0x3d77d2[_0x9274c7(0x148)](_0x480fe6);if(_0x1b6ffd&&!_0x4058f8[_0x9274c7(0x141)](_0x1b6ffd))throw CliErrors[_0x9274c7(0x14b)]('Invalid\x20--'+_0x480fe6+':\x20expected\x20'+_0x4fcebb+_0x9274c7(0x13b)+_0x1b6ffd+'\x22.');}
1
+ function a16_0x2db0(){const _0x42ca40=['filter','validation','At\x20least\x20one\x20of\x20','length','Invalid\x20--','516VuMGXf','\x20are\x20mutually\x20exclusive\x20for\x20`','12FrCtvE','str','7609CAaZla','11095330XLSEkJ','Only\x20one\x20of\x20','8744yShjSa','\x20is\x20required\x20for\x20`','Remove\x20all\x20but\x20one.','Provide\x20one\x20of:\x20','4agSTqi','19745DFGBXK','2709311CAzsUy','map','48987QjvObR','Exactly\x20one\x20of\x20','9vpobcG','join','\x20is\x20allowed,\x20found:\x20',':\x20expected\x20','1064448BvzpPl','963638YyoaXW',',\x20got\x20\x22'];a16_0x2db0=function(){return _0x42ca40;};return a16_0x2db0();}function a16_0x5500(_0xcb10dd,_0x1e8b1d){_0xcb10dd=_0xcb10dd-0xdd;const _0x2db0f4=a16_0x2db0();let _0x550083=_0x2db0f4[_0xcb10dd];return _0x550083;}(function(_0x1af6e7,_0x3661a6){const _0x1a34de=a16_0x5500,_0x54e40f=_0x1af6e7();while(!![]){try{const _0x5967b7=parseInt(_0x1a34de(0xe3))/0x1+parseInt(_0x1a34de(0xf5))/0x2*(-parseInt(_0x1a34de(0xf9))/0x3)+parseInt(_0x1a34de(0xe2))/0x4+parseInt(_0x1a34de(0xf6))/0x5*(-parseInt(_0x1a34de(0xea))/0x6)+-parseInt(_0x1a34de(0xee))/0x7*(-parseInt(_0x1a34de(0xf1))/0x8)+parseInt(_0x1a34de(0xde))/0x9*(-parseInt(_0x1a34de(0xef))/0xa)+-parseInt(_0x1a34de(0xf7))/0xb*(parseInt(_0x1a34de(0xec))/0xc);if(_0x5967b7===_0x3661a6)break;else _0x54e40f['push'](_0x54e40f['shift']());}catch(_0x4dbd01){_0x54e40f['push'](_0x54e40f['shift']());}}}(a16_0x2db0,0xa8647));import{CliErrors}from'../../errors.js';function isSet(_0x47121d,_0x32b5f5){const _0x2ecbe2=_0x47121d['flag'](_0x32b5f5);return _0x2ecbe2!==undefined&&_0x2ecbe2!==''&&_0x2ecbe2!==![]&&_0x2ecbe2!==0x0;}function fmtNames(_0x9b22d6){const _0x2cb729=a16_0x5500;return _0x9b22d6[_0x2cb729(0xf8)](_0x4ed146=>'--'+_0x4ed146)[_0x2cb729(0xdf)](',\x20');}export function requireOneOf(_0x34ec81,_0x1c6e9b,_0xea3f89){const _0x32bb8e=a16_0x5500,_0x4b7dde=_0x1c6e9b[_0x32bb8e(0xe5)](_0x590f15=>isSet(_0x34ec81,_0x590f15));if(_0x4b7dde['length']!==0x1)throw CliErrors[_0x32bb8e(0xe6)](_0x4b7dde['length']===0x0?_0x32bb8e(0xdd)+fmtNames(_0x1c6e9b)+_0x32bb8e(0xf2)+_0xea3f89+'`.':_0x32bb8e(0xf0)+fmtNames(_0x1c6e9b)+_0x32bb8e(0xe0)+fmtNames(_0x4b7dde)+'.',_0x4b7dde[_0x32bb8e(0xe8)]===0x0?_0x32bb8e(0xf4)+fmtNames(_0x1c6e9b):_0x32bb8e(0xf3));}export function requireAnyOf(_0x373d9f,_0x5dff34,_0x4c9fb7){const _0x48bf24=a16_0x5500;if(!_0x5dff34['some'](_0x32cdfe=>isSet(_0x373d9f,_0x32cdfe)))throw CliErrors[_0x48bf24(0xe6)](_0x48bf24(0xe7)+fmtNames(_0x5dff34)+'\x20is\x20required\x20for\x20`'+_0x4c9fb7+'`.',_0x48bf24(0xf4)+fmtNames(_0x5dff34));}export function mutuallyExclusive(_0x16e772,_0x57c383,_0xdd38f8){const _0x37f4a9=a16_0x5500,_0x2794f4=_0x57c383[_0x37f4a9(0xe5)](_0x2b3f43=>isSet(_0x16e772,_0x2b3f43));if(_0x2794f4[_0x37f4a9(0xe8)]>0x1)throw CliErrors[_0x37f4a9(0xe6)]('Flags\x20'+fmtNames(_0x2794f4)+_0x37f4a9(0xeb)+_0xdd38f8+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x57c383));}export function validatePattern(_0x5c05dd,_0x4cd4ae,_0x2a305a,_0x2ca089){const _0x3956d5=a16_0x5500,_0x20d283=_0x5c05dd[_0x3956d5(0xed)](_0x4cd4ae);if(_0x20d283&&!_0x2a305a['test'](_0x20d283))throw CliErrors['validation'](_0x3956d5(0xe9)+_0x4cd4ae+_0x3956d5(0xe1)+_0x2ca089+_0x3956d5(0xe4)+_0x20d283+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x21a764=a17_0x3ea2;function a17_0x3ea2(_0x33954a,_0x507f92){_0x33954a=_0x33954a-0xac;const _0x15df73=a17_0x15df();let _0x3ea259=_0x15df73[_0x33954a];return _0x3ea259;}(function(_0x3b9e89,_0x46396b){const _0x3d73e1=a17_0x3ea2,_0xa1128a=_0x3b9e89();while(!![]){try{const _0x1355a1=-parseInt(_0x3d73e1(0xb7))/0x1+-parseInt(_0x3d73e1(0xb1))/0x2+-parseInt(_0x3d73e1(0xaf))/0x3+-parseInt(_0x3d73e1(0xb4))/0x4+-parseInt(_0x3d73e1(0xb5))/0x5*(-parseInt(_0x3d73e1(0xbf))/0x6)+parseInt(_0x3d73e1(0xbd))/0x7+parseInt(_0x3d73e1(0xba))/0x8*(parseInt(_0x3d73e1(0xbe))/0x9);if(_0x1355a1===_0x46396b)break;else _0xa1128a['push'](_0xa1128a['shift']());}catch(_0x2858f9){_0xa1128a['push'](_0xa1128a['shift']());}}}(a17_0x15df,0xb0ea4));export const CODE_FLAG={'name':a17_0x21a764(0xc0),'type':a17_0x21a764(0xb6),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x21a764(0xb0)}};export const SQLCODE_FLAG={'name':a17_0x21a764(0xb2),'type':a17_0x21a764(0xb6),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a17_0x21a764(0xbb),'description':a17_0x21a764(0xb8)};export const PARAMS_FLAG={'name':a17_0x21a764(0xbc),'type':a17_0x21a764(0xb6),'description':a17_0x21a764(0xae)};function a17_0x15df(){const _0x315558=['16UAJQSj','boolean','params','272657OvSLnQ','17131311uBzkkz','67998LkHaBO','code','name','Resource\x20name\x20for\x20lookup','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2838552KPbQCI','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','1643886wmxkWi','sqlcode','Resource\x20ID','3940168NZdQFQ','90QsHHAb','string','572090vQzNpk','Return\x20full\x20raw\x20response\x20object','number'];a17_0x15df=function(){return _0x315558;};return a17_0x15df();}export const NAME_FLAG={'name':a17_0x21a764(0xac),'type':a17_0x21a764(0xb6),'description':a17_0x21a764(0xad)};export const ID_FLAG={'name':'id','type':a17_0x21a764(0xb9),'required':!![],'description':a17_0x21a764(0xb3)};
1
+ const a17_0x6e5d56=a17_0x42cd;(function(_0x132506,_0x5a9908){const _0x28ef1=a17_0x42cd,_0x3e454f=_0x132506();while(!![]){try{const _0x3a020d=-parseInt(_0x28ef1(0x77))/0x1*(-parseInt(_0x28ef1(0x84))/0x2)+parseInt(_0x28ef1(0x7d))/0x3*(-parseInt(_0x28ef1(0x83))/0x4)+parseInt(_0x28ef1(0x85))/0x5*(parseInt(_0x28ef1(0x7a))/0x6)+-parseInt(_0x28ef1(0x78))/0x7+parseInt(_0x28ef1(0x81))/0x8+parseInt(_0x28ef1(0x7e))/0x9*(-parseInt(_0x28ef1(0x7b))/0xa)+parseInt(_0x28ef1(0x86))/0xb*(parseInt(_0x28ef1(0x72))/0xc);if(_0x3a020d===_0x5a9908)break;else _0x3e454f['push'](_0x3e454f['shift']());}catch(_0x194910){_0x3e454f['push'](_0x3e454f['shift']());}}}(a17_0xf367,0x887d6));function a17_0x42cd(_0x1c95ae,_0x144f9d){_0x1c95ae=_0x1c95ae-0x6d;const _0xf367f7=a17_0xf367();let _0x42cda8=_0xf367f7[_0x1c95ae];return _0x42cda8;}export const CODE_FLAG={'name':a17_0x6e5d56(0x73),'type':a17_0x6e5d56(0x6e),'required':!![],'description':a17_0x6e5d56(0x71),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x6e5d56(0x74)}};export const SQLCODE_FLAG={'name':a17_0x6e5d56(0x76),'type':a17_0x6e5d56(0x6e),'required':!![],'description':a17_0x6e5d56(0x79),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x6e5d56(0x7c)}};export const VERBOSE_FLAG={'name':'verbose','type':a17_0x6e5d56(0x70),'description':a17_0x6e5d56(0x80)};export const PARAMS_FLAG={'name':a17_0x6e5d56(0x6d),'type':a17_0x6e5d56(0x6e),'description':a17_0x6e5d56(0x7f)};export const NAME_FLAG={'name':a17_0x6e5d56(0x6f),'type':a17_0x6e5d56(0x6e),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a17_0x6e5d56(0x75),'required':!![],'description':a17_0x6e5d56(0x82)};function a17_0xf367(){const _0x1e38de=['number','sqlcode','2457NKVvrr','635796qRXlAq','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','6xtZaSy','10wxYSAf','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3cDnNge','6277167BcKzdp','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Return\x20full\x20raw\x20response\x20object','4822656IAvaZb','Resource\x20ID','4378524RFSwjQ','492RcveJS','1850435CvWofF','3223eJdXLR','params','string','name','boolean','Dataset\x20code\x20(32-char\x20hex\x20UUID)','35412YnoPso','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'];a17_0xf367=function(){return _0x1e38de;};return a17_0xf367();}
@@ -1 +1 @@
1
- const a18_0xb923a7=a18_0x4958;(function(_0x5b3ba0,_0x4f74ec){const _0x50fd21=a18_0x4958,_0x2385b7=_0x5b3ba0();while(!![]){try{const _0x42f62c=parseInt(_0x50fd21(0x13b))/0x1+parseInt(_0x50fd21(0x111))/0x2*(-parseInt(_0x50fd21(0x12c))/0x3)+parseInt(_0x50fd21(0x126))/0x4*(parseInt(_0x50fd21(0x112))/0x5)+parseInt(_0x50fd21(0x127))/0x6+parseInt(_0x50fd21(0x14b))/0x7*(-parseInt(_0x50fd21(0x11e))/0x8)+parseInt(_0x50fd21(0x140))/0x9*(parseInt(_0x50fd21(0x117))/0xa)+parseInt(_0x50fd21(0x133))/0xb*(parseInt(_0x50fd21(0x151))/0xc);if(_0x42f62c===_0x4f74ec)break;else _0x2385b7['push'](_0x2385b7['shift']());}catch(_0x1c9d5e){_0x2385b7['push'](_0x2385b7['shift']());}}}(a18_0x436a,0x38a23));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_0xb923a7(0x11f),'type':a18_0xb923a7(0x12a),'description':a18_0xb923a7(0x10f),'default':![]};function parseAliasAppcodeSetKey(_0x32b0ba){const _0x4a6e67=a18_0xb923a7,_0x56c129=_0x32b0ba[_0x4a6e67(0x125)]('.');if(_0x56c129[_0x4a6e67(0x136)]!==0x3||_0x56c129[0x0]!=='apps'||_0x56c129[0x2]!=='appcode')return undefined;const _0x2357d9=_0x56c129[0x1]?.[_0x4a6e67(0x12b)]();return _0x2357d9?_0x2357d9:undefined;}function parseAliasDeleteKey(_0x597356){const _0xdfa3b=a18_0xb923a7,_0x3ab2f1=_0x597356[_0xdfa3b(0x125)]('.');if(_0x3ab2f1[_0xdfa3b(0x136)]===0x2&&_0x3ab2f1[0x0]===_0xdfa3b(0x110)){const _0x28f531=_0x3ab2f1[0x1]?.[_0xdfa3b(0x12b)]();return _0x28f531?{'alias':_0x28f531}:undefined;}if(_0x3ab2f1[_0xdfa3b(0x136)]===0x3&&_0x3ab2f1[0x0]===_0xdfa3b(0x110)&&_0x3ab2f1[0x2]===_0xdfa3b(0x13f)){const _0x1c27b5=_0x3ab2f1[0x1]?.['trim']();return _0x1c27b5?{'alias':_0x1c27b5,'field':_0xdfa3b(0x13f)}:undefined;}return undefined;}function a18_0x4958(_0x1814c2,_0x46ea90){_0x1814c2=_0x1814c2-0x10f;const _0x436afd=a18_0x436a();let _0x49585b=_0x436afd[_0x1814c2];return _0x49585b;}function setLocalAppAlias(_0x3c6fe4,_0x965807,_0x734fa8){const _0x5bb4f4=a18_0xb923a7,_0x2fee73=_0x3c6fe4['apps']&&typeof _0x3c6fe4[_0x5bb4f4(0x110)]===_0x5bb4f4(0x131)&&!Array['isArray'](_0x3c6fe4[_0x5bb4f4(0x110)])?_0x3c6fe4[_0x5bb4f4(0x110)]:{},_0x538a1c=_0x2fee73[_0x965807]&&typeof _0x2fee73[_0x965807]===_0x5bb4f4(0x131)&&!Array[_0x5bb4f4(0x123)](_0x2fee73[_0x965807])?_0x2fee73[_0x965807]:{};_0x538a1c[_0x5bb4f4(0x13f)]=_0x734fa8,_0x2fee73[_0x965807]=_0x538a1c,_0x3c6fe4[_0x5bb4f4(0x110)]=_0x2fee73;}function a18_0x436a(){const _0x371b44=['set','format','key','160xWuESD','global','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)',';\x20apps.<alias>.appcode','Invalid\x20value\x20for\x20\x22','isArray','write','split','2568vVxdAl','164766SwzhZQ','Config\x20files:\x0a','Missing\x20key\x20or\x20value.','boolean','trim','21EMfbPM','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x22.\x20Allowed:\x20','`\x20=\x20\x22','field','object','pretty','6028WQcYUv','Key\x20\x22','project-or-global-explicit','length','Settable\x20keys:\x20','\x20config\x20delete\x20<key>\x20[--global]','stringify','riskLevel','295183ewOOso','\x22\x20not\x20found\x20at\x20top\x20level.','raw','value','appcode','1746vfeNfB','pageSize','\x20config\x20get\x20<key>','\x22\x20is\x20not\x20settable.','bool','Set\x20a\x20config\x20value','(none)','args','pageSize\x20must\x20be\x20a\x20positive\x20number','log','Missing\x20key\x20argument.','148239iTldUY','Usage:\x20','alias','Deleted\x20`','config','Delete\x20a\x20config\x20value','2352bBIFcf','get','read','Write\x20to\x20global\x20config','apps','52534wPWOrD','2715miNjyU','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Key\x20not\x20found:\x20','validation','Set\x20`','3130ttDRcm','../../context.js','list','\x20(global)'];a18_0x436a=function(){return _0x371b44;};return a18_0x436a();}function deleteLocalAppAlias(_0x1bea98,_0x2ff2ae){const _0x15880b=a18_0xb923a7;if(!_0x1bea98[_0x15880b(0x110)]||typeof _0x1bea98[_0x15880b(0x110)]!==_0x15880b(0x131)||Array['isArray'](_0x1bea98[_0x15880b(0x110)]))return![];const _0x509e91=_0x1bea98[_0x15880b(0x110)],_0x2aea8e=_0x509e91[_0x2ff2ae['alias']];if(!_0x2aea8e||typeof _0x2aea8e!==_0x15880b(0x131)||Array[_0x15880b(0x123)](_0x2aea8e))return![];if(!_0x2ff2ae['field'])return delete _0x509e91[_0x2ff2ae['alias']],!![];if(!(_0x2ff2ae['field']in _0x2aea8e))return![];return delete _0x2aea8e[_0x2ff2ae[_0x15880b(0x130)]],Object['keys'](_0x2aea8e)['length']===0x0&&delete _0x509e91[_0x2ff2ae[_0x15880b(0x14d)]],!![];}const listDef={'service':a18_0xb923a7(0x14f),'command':a18_0xb923a7(0x119),'description':'List\x20current\x20config','risk':a18_0xb923a7(0x153),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x43a163){const _0x324cb9=a18_0xb923a7,{buildConfigFromFlags:_0x39004c}=await import(_0x324cb9(0x118)),_0x4f3288=_0x39004c({}),_0x41e38e=getProjectConfigPath(),_0x156931=resolveWriteConfigPath(_0x324cb9(0x11f));if(_0x43a163[_0x324cb9(0x11c)]===_0x324cb9(0x132))return{'ok':!![],'message':_0x324cb9(0x12d)+(JSON[_0x324cb9(0x139)](_0x4f3288[_0x324cb9(0x13d)],null,0x2)+'\x0a\x0a')+_0x324cb9(0x128)+('\x20\x20project:\x20'+(_0x41e38e??_0x324cb9(0x146))+'\x0a')+('\x20\x20global:\x20\x20'+_0x156931)};return{'ok':!![],'data':{'effective':_0x4f3288[_0x324cb9(0x13d)],'configFiles':{'project':_0x41e38e??null,'global':_0x156931}}};}},getDef={'service':'config','command':a18_0xb923a7(0x152),'description':'Get\x20a\x20config\x20value','risk':a18_0xb923a7(0x153),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0xb923a7(0x11d),'description':a18_0xb923a7(0x120),'required':!![]}],'flags':[],async 'execute'(_0x57b6b2){const _0x3bdc60=a18_0xb923a7,_0x5b3c1c=_0x57b6b2['args'][0x0];if(!_0x5b3c1c)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x3bdc60(0x14c)+CLI_BIN_NAME+_0x3bdc60(0x142));const {buildConfigFromFlags:_0x538f5b}=await import(_0x3bdc60(0x118)),{raw:_0x1841b6}=_0x538f5b({});if(_0x5b3c1c['includes']('.')){const _0x5c80c6=_0x5b3c1c[_0x3bdc60(0x125)]('.');let _0x5d3f41=_0x1841b6;for(const _0x2c962d of _0x5c80c6){if(_0x5d3f41==null||typeof _0x5d3f41!=='object')throw CliErrors['validation'](_0x3bdc60(0x114)+_0x5b3c1c);_0x5d3f41=_0x5d3f41[_0x2c962d];}if(_0x5d3f41===undefined)throw CliErrors[_0x3bdc60(0x115)](_0x3bdc60(0x114)+_0x5b3c1c);return console['log'](typeof _0x5d3f41===_0x3bdc60(0x131)?JSON[_0x3bdc60(0x139)](_0x5d3f41,null,0x2):String(_0x5d3f41)),{'ok':!![]};}const _0x1fbacc=_0x1841b6[_0x5b3c1c];if(_0x1fbacc===undefined)throw CliErrors['validation'](_0x3bdc60(0x114)+_0x5b3c1c);return console[_0x3bdc60(0x149)](typeof _0x1fbacc==='object'?JSON[_0x3bdc60(0x139)](_0x1fbacc,null,0x2):String(_0x1fbacc)),{'ok':!![]};}},setDef={'service':a18_0xb923a7(0x14f),'command':a18_0xb923a7(0x11b),'description':a18_0xb923a7(0x145),'risk':a18_0xb923a7(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0xb923a7(0x11d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0xb923a7(0x13e),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2b5ca6){const _0x1ce0ad=a18_0xb923a7,_0x43e70b=_0x2b5ca6['args'][0x0],_0x4cd8b2=_0x2b5ca6[_0x1ce0ad(0x147)][0x1];if(!_0x43e70b||_0x4cd8b2===undefined)throw CliErrors[_0x1ce0ad(0x115)](_0x1ce0ad(0x129),'Usage:\x20'+CLI_BIN_NAME+_0x1ce0ad(0x113));if(ENUM_KEYS[_0x43e70b]&&!ENUM_KEYS[_0x43e70b]['includes'](_0x4cd8b2))throw CliErrors['validation'](_0x1ce0ad(0x122)+_0x43e70b+_0x1ce0ad(0x12e)+ENUM_KEYS[_0x43e70b]['join'](',\x20'));if(_0x43e70b===_0x1ce0ad(0x13a))throw CliErrors[_0x1ce0ad(0x115)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x43e70b===_0x1ce0ad(0x141)){const _0x4de278=Number(_0x4cd8b2);if(isNaN(_0x4de278)||_0x4de278<=0x0)throw CliErrors[_0x1ce0ad(0x115)](_0x1ce0ad(0x148));}const _0x1f8ad7=resolveWriteScope({'explicitGlobal':_0x2b5ca6['bool']('global'),'policy':_0x1ce0ad(0x135)}),_0x18512c=toScopeFlags(_0x1f8ad7),_0x50ae58=readScopedConfig(_0x18512c),_0x2a3e42=parseAliasAppcodeSetKey(_0x43e70b);if(!_0x2a3e42&&!isTopLevelConfigKey(_0x43e70b))throw CliErrors[_0x1ce0ad(0x115)]('Top-level\x20key\x20\x22'+_0x43e70b+_0x1ce0ad(0x143),_0x1ce0ad(0x137)+getTopLevelConfigKeySummary()+_0x1ce0ad(0x121));return _0x2a3e42?setLocalAppAlias(_0x50ae58,_0x2a3e42,_0x4cd8b2):_0x50ae58[_0x43e70b]=_0x43e70b===_0x1ce0ad(0x141)?Number(_0x4cd8b2):_0x4cd8b2,console['log'](_0x1ce0ad(0x116)+_0x43e70b+_0x1ce0ad(0x12f)+_0x4cd8b2+'\x22'+(_0x1f8ad7==='global'?_0x1ce0ad(0x11a):'')),writeScopedConfig(_0x50ae58,_0x18512c),{'ok':!![]};}},deleteDef={'service':a18_0xb923a7(0x14f),'command':'delete','description':a18_0xb923a7(0x150),'risk':a18_0xb923a7(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2862d8){const _0x48a700=a18_0xb923a7,_0x1432a4=_0x2862d8[_0x48a700(0x147)][0x0];if(!_0x1432a4)throw CliErrors[_0x48a700(0x115)](_0x48a700(0x14a),_0x48a700(0x14c)+CLI_BIN_NAME+_0x48a700(0x138));const _0x4c2cc5=resolveWriteScope({'explicitGlobal':_0x2862d8[_0x48a700(0x144)](_0x48a700(0x11f)),'policy':_0x48a700(0x135)}),_0x5a4eaa=toScopeFlags(_0x4c2cc5),_0x1a77d7=readScopedConfig(_0x5a4eaa),_0x981263=parseAliasDeleteKey(_0x1432a4);if(_0x981263){if(!deleteLocalAppAlias(_0x1a77d7,_0x981263))throw CliErrors[_0x48a700(0x115)]('Key\x20not\x20found:\x20'+_0x1432a4);return console['log'](_0x48a700(0x14e)+_0x1432a4+'`'+(_0x4c2cc5===_0x48a700(0x11f)?'\x20(global)':'')),writeScopedConfig(_0x1a77d7,_0x5a4eaa),{'ok':!![]};}if(_0x1a77d7[_0x1432a4]===undefined)throw CliErrors['validation'](_0x48a700(0x134)+_0x1432a4+_0x48a700(0x13c));return delete _0x1a77d7[_0x1432a4],console[_0x48a700(0x149)](_0x48a700(0x14e)+_0x1432a4+'`'+(_0x4c2cc5===_0x48a700(0x11f)?_0x48a700(0x11a):'')),writeScopedConfig(_0x1a77d7,_0x5a4eaa),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a18_0x2ab2b3=a18_0x4938;(function(_0x21fde1,_0x5d4874){const _0x42bb67=a18_0x4938,_0x1513b6=_0x21fde1();while(!![]){try{const _0x579d7d=-parseInt(_0x42bb67(0x112))/0x1+parseInt(_0x42bb67(0x14d))/0x2+-parseInt(_0x42bb67(0x10e))/0x3+parseInt(_0x42bb67(0x14e))/0x4*(-parseInt(_0x42bb67(0x111))/0x5)+-parseInt(_0x42bb67(0x140))/0x6+parseInt(_0x42bb67(0x147))/0x7*(parseInt(_0x42bb67(0x144))/0x8)+-parseInt(_0x42bb67(0x125))/0x9*(-parseInt(_0x42bb67(0x113))/0xa);if(_0x579d7d===_0x5d4874)break;else _0x1513b6['push'](_0x1513b6['shift']());}catch(_0x46b0cc){_0x1513b6['push'](_0x1513b6['shift']());}}}(a18_0x2571,0x3d654));function a18_0x2571(){const _0x281136=['appcode','Get\x20a\x20config\x20value','\x20config\x20delete\x20<key>\x20[--global]','Usage:\x20','457046YilCTy','903852gpYoTU','boolean','pageSize','config','936693sJTrKT','args','\x20(global)','5zhCwqX','32105oITOoU','16590aGzkEh','\x20\x20global:\x20\x20','Missing\x20key\x20or\x20value.','Set\x20`','Config\x20files:\x0a','format','isArray','Delete\x20a\x20config\x20value','get','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20get\x20<key>','Value\x20to\x20assign','global','log','length','stringify','List\x20current\x20config','validation','1413epsdgF','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Set\x20a\x20config\x20value','project-or-global-explicit','Invalid\x20value\x20for\x20\x22','pretty','Top-level\x20key\x20\x22','Write\x20to\x20global\x20config','trim','write','field','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Missing\x20key\x20argument.','Key\x20not\x20found:\x20','\x22.\x20Allowed:\x20','read','Settable\x20keys:\x20','bool','apps','../../context.js','set','object','split','\x20config\x20set\x20<key>\x20<value>\x20[--global]','list','key','alias','39054snNcNX','\x22\x20is\x20not\x20settable.','Key\x20\x22','Deleted\x20`','8UytIbr','(none)','raw','2375086xiZKCU',';\x20apps.<alias>.appcode'];a18_0x2571=function(){return _0x281136;};return a18_0x2571();}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_0x2ab2b3(0x11f),'type':a18_0x2ab2b3(0x14f),'description':a18_0x2ab2b3(0x12c),'default':![]};function parseAliasAppcodeSetKey(_0x211bea){const _0x42e9de=a18_0x2ab2b3,_0x1eafee=_0x211bea[_0x42e9de(0x13b)]('.');if(_0x1eafee[_0x42e9de(0x121)]!==0x3||_0x1eafee[0x0]!==_0x42e9de(0x137)||_0x1eafee[0x2]!==_0x42e9de(0x149))return undefined;const _0x459054=_0x1eafee[0x1]?.[_0x42e9de(0x12d)]();return _0x459054?_0x459054:undefined;}function parseAliasDeleteKey(_0x51105f){const _0x4d0ce6=a18_0x2ab2b3,_0x1c3c28=_0x51105f[_0x4d0ce6(0x13b)]('.');if(_0x1c3c28[_0x4d0ce6(0x121)]===0x2&&_0x1c3c28[0x0]===_0x4d0ce6(0x137)){const _0xe156c4=_0x1c3c28[0x1]?.[_0x4d0ce6(0x12d)]();return _0xe156c4?{'alias':_0xe156c4}:undefined;}if(_0x1c3c28[_0x4d0ce6(0x121)]===0x3&&_0x1c3c28[0x0]===_0x4d0ce6(0x137)&&_0x1c3c28[0x2]===_0x4d0ce6(0x149)){const _0x911d5f=_0x1c3c28[0x1]?.[_0x4d0ce6(0x12d)]();return _0x911d5f?{'alias':_0x911d5f,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x5df8b5,_0x249e9a,_0x41f1ea){const _0x9dd290=a18_0x2ab2b3,_0x5f2fb8=_0x5df8b5[_0x9dd290(0x137)]&&typeof _0x5df8b5[_0x9dd290(0x137)]===_0x9dd290(0x13a)&&!Array['isArray'](_0x5df8b5[_0x9dd290(0x137)])?_0x5df8b5[_0x9dd290(0x137)]:{},_0x3ccd03=_0x5f2fb8[_0x249e9a]&&typeof _0x5f2fb8[_0x249e9a]===_0x9dd290(0x13a)&&!Array[_0x9dd290(0x119)](_0x5f2fb8[_0x249e9a])?_0x5f2fb8[_0x249e9a]:{};_0x3ccd03[_0x9dd290(0x149)]=_0x41f1ea,_0x5f2fb8[_0x249e9a]=_0x3ccd03,_0x5df8b5[_0x9dd290(0x137)]=_0x5f2fb8;}function a18_0x4938(_0x549cdd,_0x2195fe){_0x549cdd=_0x549cdd-0x10d;const _0x2571ba=a18_0x2571();let _0x493874=_0x2571ba[_0x549cdd];return _0x493874;}function deleteLocalAppAlias(_0x3c8319,_0x5c9af4){const _0x159918=a18_0x2ab2b3;if(!_0x3c8319[_0x159918(0x137)]||typeof _0x3c8319['apps']!=='object'||Array[_0x159918(0x119)](_0x3c8319['apps']))return![];const _0x1fb722=_0x3c8319[_0x159918(0x137)],_0x2dcf0f=_0x1fb722[_0x5c9af4[_0x159918(0x13f)]];if(!_0x2dcf0f||typeof _0x2dcf0f!==_0x159918(0x13a)||Array[_0x159918(0x119)](_0x2dcf0f))return![];if(!_0x5c9af4['field'])return delete _0x1fb722[_0x5c9af4[_0x159918(0x13f)]],!![];if(!(_0x5c9af4[_0x159918(0x12f)]in _0x2dcf0f))return![];return delete _0x2dcf0f[_0x5c9af4['field']],Object['keys'](_0x2dcf0f)[_0x159918(0x121)]===0x0&&delete _0x1fb722[_0x5c9af4[_0x159918(0x13f)]],!![];}const listDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x13d),'description':a18_0x2ab2b3(0x123),'risk':a18_0x2ab2b3(0x134),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x266bf9){const _0x23e07d=a18_0x2ab2b3,{buildConfigFromFlags:_0x5adf8f}=await import(_0x23e07d(0x138)),_0x5a246a=_0x5adf8f({}),_0x27f5cf=getProjectConfigPath(),_0x4f068a=resolveWriteConfigPath(_0x23e07d(0x11f));if(_0x266bf9[_0x23e07d(0x118)]===_0x23e07d(0x12a))return{'ok':!![],'message':_0x23e07d(0x130)+(JSON['stringify'](_0x5a246a[_0x23e07d(0x146)],null,0x2)+'\x0a\x0a')+_0x23e07d(0x117)+('\x20\x20project:\x20'+(_0x27f5cf??_0x23e07d(0x145))+'\x0a')+(_0x23e07d(0x114)+_0x4f068a)};return{'ok':!![],'data':{'effective':_0x5a246a[_0x23e07d(0x146)],'configFiles':{'project':_0x27f5cf??null,'global':_0x4f068a}}};}},getDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x11b),'description':a18_0x2ab2b3(0x14a),'risk':a18_0x2ab2b3(0x134),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x2ab2b3(0x13e),'description':a18_0x2ab2b3(0x126),'required':!![]}],'flags':[],async 'execute'(_0x288b64){const _0x23451d=a18_0x2ab2b3,_0x1cc2e8=_0x288b64[_0x23451d(0x10f)][0x0];if(!_0x1cc2e8)throw CliErrors['validation'](_0x23451d(0x131),'Usage:\x20'+CLI_BIN_NAME+_0x23451d(0x11d));const {buildConfigFromFlags:_0x14884a}=await import(_0x23451d(0x138)),{raw:_0x491cd6}=_0x14884a({});if(_0x1cc2e8['includes']('.')){const _0x55620a=_0x1cc2e8['split']('.');let _0x325421=_0x491cd6;for(const _0x570aa7 of _0x55620a){if(_0x325421==null||typeof _0x325421!==_0x23451d(0x13a))throw CliErrors[_0x23451d(0x124)](_0x23451d(0x132)+_0x1cc2e8);_0x325421=_0x325421[_0x570aa7];}if(_0x325421===undefined)throw CliErrors[_0x23451d(0x124)](_0x23451d(0x132)+_0x1cc2e8);return console[_0x23451d(0x120)](typeof _0x325421===_0x23451d(0x13a)?JSON[_0x23451d(0x122)](_0x325421,null,0x2):String(_0x325421)),{'ok':!![]};}const _0x57b70e=_0x491cd6[_0x1cc2e8];if(_0x57b70e===undefined)throw CliErrors[_0x23451d(0x124)]('Key\x20not\x20found:\x20'+_0x1cc2e8);return console[_0x23451d(0x120)](typeof _0x57b70e===_0x23451d(0x13a)?JSON['stringify'](_0x57b70e,null,0x2):String(_0x57b70e)),{'ok':!![]};}},setDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x139),'description':a18_0x2ab2b3(0x127),'risk':a18_0x2ab2b3(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a18_0x2ab2b3(0x11e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xd01e4){const _0x9513e0=a18_0x2ab2b3,_0x24431a=_0xd01e4['args'][0x0],_0xc08f1a=_0xd01e4[_0x9513e0(0x10f)][0x1];if(!_0x24431a||_0xc08f1a===undefined)throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x115),_0x9513e0(0x14c)+CLI_BIN_NAME+_0x9513e0(0x13c));if(ENUM_KEYS[_0x24431a]&&!ENUM_KEYS[_0x24431a]['includes'](_0xc08f1a))throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x129)+_0x24431a+_0x9513e0(0x133)+ENUM_KEYS[_0x24431a]['join'](',\x20'));if(_0x24431a==='riskLevel')throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x24431a===_0x9513e0(0x150)){const _0x2f9590=Number(_0xc08f1a);if(isNaN(_0x2f9590)||_0x2f9590<=0x0)throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x11c));}const _0x4bb1d9=resolveWriteScope({'explicitGlobal':_0xd01e4[_0x9513e0(0x136)](_0x9513e0(0x11f)),'policy':_0x9513e0(0x128)}),_0x17e182=toScopeFlags(_0x4bb1d9),_0x42d367=readScopedConfig(_0x17e182),_0x2db052=parseAliasAppcodeSetKey(_0x24431a);if(!_0x2db052&&!isTopLevelConfigKey(_0x24431a))throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x12b)+_0x24431a+_0x9513e0(0x141),_0x9513e0(0x135)+getTopLevelConfigKeySummary()+_0x9513e0(0x148));return _0x2db052?setLocalAppAlias(_0x42d367,_0x2db052,_0xc08f1a):_0x42d367[_0x24431a]=_0x24431a===_0x9513e0(0x150)?Number(_0xc08f1a):_0xc08f1a,console[_0x9513e0(0x120)](_0x9513e0(0x116)+_0x24431a+'`\x20=\x20\x22'+_0xc08f1a+'\x22'+(_0x4bb1d9===_0x9513e0(0x11f)?_0x9513e0(0x110):'')),writeScopedConfig(_0x42d367,_0x17e182),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a18_0x2ab2b3(0x11a),'risk':a18_0x2ab2b3(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5a8fe8){const _0xb15ed6=a18_0x2ab2b3,_0x11ff5c=_0x5a8fe8[_0xb15ed6(0x10f)][0x0];if(!_0x11ff5c)throw CliErrors[_0xb15ed6(0x124)](_0xb15ed6(0x131),_0xb15ed6(0x14c)+CLI_BIN_NAME+_0xb15ed6(0x14b));const _0xd13524=resolveWriteScope({'explicitGlobal':_0x5a8fe8[_0xb15ed6(0x136)]('global'),'policy':'project-or-global-explicit'}),_0x25101a=toScopeFlags(_0xd13524),_0x27c121=readScopedConfig(_0x25101a),_0x54de85=parseAliasDeleteKey(_0x11ff5c);if(_0x54de85){if(!deleteLocalAppAlias(_0x27c121,_0x54de85))throw CliErrors[_0xb15ed6(0x124)](_0xb15ed6(0x132)+_0x11ff5c);return console[_0xb15ed6(0x120)](_0xb15ed6(0x143)+_0x11ff5c+'`'+(_0xd13524===_0xb15ed6(0x11f)?_0xb15ed6(0x110):'')),writeScopedConfig(_0x27c121,_0x25101a),{'ok':!![]};}if(_0x27c121[_0x11ff5c]===undefined)throw CliErrors['validation'](_0xb15ed6(0x142)+_0x11ff5c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x27c121[_0x11ff5c],console[_0xb15ed6(0x120)](_0xb15ed6(0x143)+_0x11ff5c+'`'+(_0xd13524===_0xb15ed6(0x11f)?_0xb15ed6(0x110):'')),writeScopedConfig(_0x27c121,_0x25101a),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a19_0x2183(_0x46508d,_0x10f06d){_0x46508d=_0x46508d-0xb3;var _0x3bfbbe=a19_0x3bfb();var _0x218395=_0x3bfbbe[_0x46508d];return _0x218395;}(function(_0xafdc3b,_0x18aec0){var _0x423bd5=a19_0x2183,_0x3ccd0c=_0xafdc3b();while(!![]){try{var _0x4bd136=parseInt(_0x423bd5(0xb7))/0x1+parseInt(_0x423bd5(0xba))/0x2*(-parseInt(_0x423bd5(0xb9))/0x3)+-parseInt(_0x423bd5(0xb8))/0x4*(parseInt(_0x423bd5(0xb6))/0x5)+parseInt(_0x423bd5(0xbb))/0x6+parseInt(_0x423bd5(0xbc))/0x7*(parseInt(_0x423bd5(0xb3))/0x8)+-parseInt(_0x423bd5(0xb5))/0x9+parseInt(_0x423bd5(0xb4))/0xa;if(_0x4bd136===_0x18aec0)break;else _0x3ccd0c['push'](_0x3ccd0c['shift']());}catch(_0x1a558f){_0x3ccd0c['push'](_0x3ccd0c['shift']());}}}(a19_0x3bfb,0x1f4e1));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_0x3bfb(){var _0x46c655=['36218gKMGgO','312yniIlJ','1785340fGRKoB','962982bzDRRm','5EmpHLo','18915CxKxwg','521336qcivNv','141153JPrPIa','10NkXKps','1209462yCZfqL'];a19_0x3bfb=function(){return _0x46c655;};return a19_0x3bfb();}
1
+ (function(_0x3ec97f,_0x4a22a6){var _0x3c839c=a19_0x36bb,_0x105b42=_0x3ec97f();while(!![]){try{var _0x1b2c13=-parseInt(_0x3c839c(0x1cc))/0x1+-parseInt(_0x3c839c(0x1ca))/0x2*(-parseInt(_0x3c839c(0x1d0))/0x3)+parseInt(_0x3c839c(0x1d1))/0x4+-parseInt(_0x3c839c(0x1ce))/0x5+parseInt(_0x3c839c(0x1cb))/0x6+parseInt(_0x3c839c(0x1c9))/0x7*(parseInt(_0x3c839c(0x1cf))/0x8)+-parseInt(_0x3c839c(0x1cd))/0x9;if(_0x1b2c13===_0x4a22a6)break;else _0x105b42['push'](_0x105b42['shift']());}catch(_0x4f87f3){_0x105b42['push'](_0x105b42['shift']());}}}(a19_0x37f4,0xcae74));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_0x36bb(_0x2149b1,_0x450d0b){_0x2149b1=_0x2149b1-0x1c9;var _0x37f4e0=a19_0x37f4();var _0x36bbe9=_0x37f4e0[_0x2149b1];return _0x36bbe9;}function a19_0x37f4(){var _0x12b534=['8gkKohI','1849980aIdHee','5475428fHKFVQ','6022261VAVPRO','2YByUyS','1028112jQRVcW','786131EJUgpw','1376730ZjiWOC','6234995AJdkEX'];a19_0x37f4=function(){return _0x12b534;};return a19_0x37f4();}
@@ -1 +1 @@
1
- const a20_0x2bc218=a20_0x2d3a;(function(_0x2cf233,_0x5d3c6a){const _0x1a238a=a20_0x2d3a,_0x30e9cf=_0x2cf233();while(!![]){try{const _0x316ca3=parseInt(_0x1a238a(0x1b6))/0x1*(parseInt(_0x1a238a(0x1a4))/0x2)+parseInt(_0x1a238a(0x1bb))/0x3+-parseInt(_0x1a238a(0x1a6))/0x4+parseInt(_0x1a238a(0x1be))/0x5+-parseInt(_0x1a238a(0x1d7))/0x6+parseInt(_0x1a238a(0x1cc))/0x7*(-parseInt(_0x1a238a(0x19d))/0x8)+parseInt(_0x1a238a(0x186))/0x9*(parseInt(_0x1a238a(0x1a9))/0xa);if(_0x316ca3===_0x5d3c6a)break;else _0x30e9cf['push'](_0x30e9cf['shift']());}catch(_0x1e2d18){_0x30e9cf['push'](_0x30e9cf['shift']());}}}(a20_0x221e,0x58b63));function a20_0x2d3a(_0x926b92,_0x49befb){_0x926b92=_0x926b92-0x185;const _0x221e10=a20_0x221e();let _0x2d3a75=_0x221e10[_0x926b92];return _0x2d3a75;}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a20_0x221e(){const _0x5bb2fa=['POST','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','528738bBynDU','command','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','373428tEgaLy','\x20\x20AGGREGATE\x20TYPES','code','\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}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\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}}','body','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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\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}}]}','build','update','params','filter','operation','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20PAGINATION','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','str','\x20\x20LOGICAL\x20COMBINATORS','\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}}]','Get\x20a\x20single\x20record\x20by\x20ID','8VheZPk','data\x20','helpExtra','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\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}}','delete','\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]','2rBVRTQ','read','626792BDmOjg','\x20\x20EXAMPLES','dryRun','20ClxdyO','\x20\x20WHERE\x20OPERATORS','paramsRequired','join','risk','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','write','aggregate','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','262763sKIeez','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','high-risk-write','create','231915KpEKZz','\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}}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','2145195dAujqW','\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]}}','getOne','\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}','\x20completed\x20in\x20','Filter\x20dataset\x20records\x20with\x20query\x20conditions','map','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','now','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$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}}','1707349paRTfL','/api/{appCode}/','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Preview:\x20data\x20','\x20\x20PARAMS\x20STRUCTURE','Update\x20an\x20existing\x20record'];a20_0x221e=function(){return _0x5bb2fa;};return a20_0x221e();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a20_0x2bc218(0x194),'operation':'filter','risk':a20_0x2bc218(0x1a5),'paramsRequired':![],'description':a20_0x2bc218(0x1c3),'paramsHint':a20_0x2bc218(0x1cf)+a20_0x2bc218(0x185),'helpExtra':[a20_0x2bc218(0x1aa),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a20_0x2bc218(0x1a1),a20_0x2bc218(0x1cb),a20_0x2bc218(0x1bc),'\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_0x2bc218(0x18c),a20_0x2bc218(0x1bf),'\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}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a20_0x2bc218(0x19a),a20_0x2bc218(0x190),a20_0x2bc218(0x1b7),'',a20_0x2bc218(0x1c9),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a20_0x2bc218(0x1a3),a20_0x2bc218(0x1b8),a20_0x2bc218(0x1b3),a20_0x2bc218(0x198),'',a20_0x2bc218(0x197),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0x2bc218(0x196)]['join']('\x0a')},{'command':a20_0x2bc218(0x1c0),'operation':a20_0x2bc218(0x1c0),'risk':a20_0x2bc218(0x1a5),'paramsRequired':!![],'description':a20_0x2bc218(0x19c),'paramsHint':a20_0x2bc218(0x1d4)},{'command':a20_0x2bc218(0x1ba),'operation':a20_0x2bc218(0x1ba),'risk':a20_0x2bc218(0x1af),'paramsRequired':!![],'description':a20_0x2bc218(0x18a),'paramsHint':a20_0x2bc218(0x1d6)},{'command':a20_0x2bc218(0x1b4),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a20_0x2bc218(0x1b2),'paramsHint':a20_0x2bc218(0x1b1)},{'command':a20_0x2bc218(0x192),'operation':a20_0x2bc218(0x192),'risk':a20_0x2bc218(0x1af),'paramsRequired':!![],'description':a20_0x2bc218(0x1d2),'paramsHint':a20_0x2bc218(0x1bd)},{'command':a20_0x2bc218(0x1a2),'operation':a20_0x2bc218(0x1a2),'risk':a20_0x2bc218(0x1b9),'paramsRequired':!![],'description':a20_0x2bc218(0x1c6),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a20_0x2bc218(0x1b0),'risk':a20_0x2bc218(0x1a5),'paramsRequired':![],'description':a20_0x2bc218(0x18e),'paramsHint':a20_0x2bc218(0x1c5)+a20_0x2bc218(0x1b5),'helpExtra':[a20_0x2bc218(0x187),a20_0x2bc218(0x18f),a20_0x2bc218(0x1a0),'\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_0x2bc218(0x1c8),a20_0x2bc218(0x189),'\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}',a20_0x2bc218(0x1c1),'',a20_0x2bc218(0x1d1),a20_0x2bc218(0x1ce),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a20_0x2bc218(0x18b),a20_0x2bc218(0x1ca),a20_0x2bc218(0x19b),a20_0x2bc218(0x1ae),'',a20_0x2bc218(0x1a7),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a20_0x2bc218(0x1d5),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a20_0x2bc218(0x1ac)]('\x0a')}];function makeDataCommand(_0x2d8ccc){const _0x2c2425=a20_0x2bc218,_0x207752=_0x2c2425(0x19e)+_0x2d8ccc[_0x2c2425(0x1d8)],_0x509960={'service':'data','command':_0x2d8ccc[_0x2c2425(0x1d8)],'description':_0x2d8ccc['description'],'risk':_0x2d8ccc['risk'],'helpExtra':_0x2d8ccc[_0x2c2425(0x19f)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2d8ccc['paramsHint']}],'validate':async _0x198ec3=>{const _0x525619=_0x2c2425;_0x2d8ccc[_0x525619(0x1ab)]&&requireAnyOf(_0x198ec3,[_0x525619(0x193)],_0x207752),_0x2d8ccc['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x198ec3['str'](_0x525619(0x193))));},async 'execute'(_0x11b2dc){const _0x55326d=_0x2c2425,_0x5e5a73=_0x11b2dc['str'](_0x55326d(0x188)),_0x5005d6=_0x2d8ccc[_0x55326d(0x195)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x11b2dc[_0x55326d(0x199)](_0x55326d(0x193)))):parseJsonParams(_0x11b2dc[_0x55326d(0x199)](_0x55326d(0x193)))??{},_0x44c8aa=Date[_0x55326d(0x1c7)](),_0x29ce18=await executeData(_0x5e5a73,_0x2d8ccc[_0x55326d(0x195)],_0x5005d6),_0x506ca5=Date[_0x55326d(0x1c7)]()-_0x44c8aa;return{'ok':!![],'data':{'result':_0x29ce18,'elapsed':_0x506ca5},'message':_0x55326d(0x19e)+_0x2d8ccc['command']+_0x55326d(0x1c2)+_0x506ca5+'ms'};}};return _0x2d8ccc[_0x2c2425(0x1ad)]!==_0x2c2425(0x1a5)&&(_0x509960[_0x2c2425(0x1a8)]=async _0x487d52=>{const _0x46d0d7=_0x2c2425,_0x82faf8=_0x487d52[_0x46d0d7(0x199)](_0x46d0d7(0x188)),_0x4649af=_0x2d8ccc['operation']===_0x46d0d7(0x1b4)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x487d52[_0x46d0d7(0x199)](_0x46d0d7(0x193)))):parseJsonParams(_0x487d52[_0x46d0d7(0x199)](_0x46d0d7(0x193)))??{};return dryRun(_0x46d0d7(0x1d3),_0x46d0d7(0x1cd)+_0x82faf8+'/'+_0x2d8ccc[_0x46d0d7(0x195)])[_0x46d0d7(0x18d)](_0x4649af)['description'](_0x46d0d7(0x1d0)+_0x2d8ccc[_0x46d0d7(0x1d8)]+'\x20on\x20dataset\x20'+_0x82faf8)[_0x46d0d7(0x191)]();}),_0x509960;}export const dataDefinitions=specs[a20_0x2bc218(0x1c4)](makeDataCommand);
1
+ const a20_0x56c4db=a20_0xb051;function a20_0xb051(_0x5ee92f,_0x2dd6b0){_0x5ee92f=_0x5ee92f-0x6b;const _0x141c47=a20_0x141c();let _0xb051bf=_0x141c47[_0x5ee92f];return _0xb051bf;}(function(_0x25eab3,_0x2badd6){const _0x1b7839=a20_0xb051,_0x16c5eb=_0x25eab3();while(!![]){try{const _0x4fb90e=parseInt(_0x1b7839(0x83))/0x1*(-parseInt(_0x1b7839(0x6c))/0x2)+-parseInt(_0x1b7839(0x86))/0x3*(-parseInt(_0x1b7839(0xb1))/0x4)+parseInt(_0x1b7839(0xa5))/0x5+-parseInt(_0x1b7839(0x9c))/0x6*(parseInt(_0x1b7839(0x7a))/0x7)+-parseInt(_0x1b7839(0xb9))/0x8+parseInt(_0x1b7839(0xb5))/0x9*(-parseInt(_0x1b7839(0x7d))/0xa)+-parseInt(_0x1b7839(0xb3))/0xb*(-parseInt(_0x1b7839(0x94))/0xc);if(_0x4fb90e===_0x2badd6)break;else _0x16c5eb['push'](_0x16c5eb['shift']());}catch(_0x3500eb){_0x16c5eb['push'](_0x16c5eb['shift']());}}}(a20_0x141c,0x5c362));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a20_0x56c4db(0x76),'operation':a20_0x56c4db(0x76),'risk':a20_0x56c4db(0x99),'paramsRequired':![],'description':a20_0x56c4db(0xae),'paramsHint':a20_0x56c4db(0x80)+a20_0x56c4db(0x6b),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a20_0x56c4db(0x7b),'\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}}',a20_0x56c4db(0x9d),a20_0x56c4db(0x70),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a20_0x56c4db(0xb6),a20_0x56c4db(0x87),'\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}}',a20_0x56c4db(0xb8),'',a20_0x56c4db(0xa4),a20_0x56c4db(0x7f),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a20_0x56c4db(0xa1),a20_0x56c4db(0x9e),a20_0x56c4db(0xad),'\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_0x56c4db(0x90),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a20_0x56c4db(0x6f),a20_0x56c4db(0x75)][a20_0x56c4db(0x97)]('\x0a')},{'command':a20_0x56c4db(0x6e),'operation':a20_0x56c4db(0x6e),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a20_0x56c4db(0xbb)},{'command':a20_0x56c4db(0x8f),'operation':a20_0x56c4db(0x8f),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a20_0x56c4db(0xaf)},{'command':a20_0x56c4db(0x92),'operation':a20_0x56c4db(0x92),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':a20_0x56c4db(0x8c),'paramsHint':a20_0x56c4db(0x77)},{'command':'update','operation':a20_0x56c4db(0xa7),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a20_0x56c4db(0x91)},{'command':a20_0x56c4db(0x93),'operation':a20_0x56c4db(0x93),'risk':a20_0x56c4db(0xb2),'paramsRequired':!![],'description':a20_0x56c4db(0x85),'paramsHint':a20_0x56c4db(0xbb)},{'command':'aggregate','operation':'aggregate','risk':a20_0x56c4db(0x99),'paramsRequired':![],'description':a20_0x56c4db(0xa8),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a20_0x56c4db(0xba),'helpExtra':[a20_0x56c4db(0xa6),a20_0x56c4db(0xb0),'\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}',a20_0x56c4db(0x81),a20_0x56c4db(0x74),a20_0x56c4db(0x9b),a20_0x56c4db(0x96),a20_0x56c4db(0xb7),'',a20_0x56c4db(0x98),a20_0x56c4db(0x73),a20_0x56c4db(0xaa),a20_0x56c4db(0x7e),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a20_0x56c4db(0x7c),a20_0x56c4db(0x8d),a20_0x56c4db(0xa9),'',a20_0x56c4db(0x79),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a20_0x56c4db(0x72)][a20_0x56c4db(0x97)]('\x0a')}];function makeDataCommand(_0x3cc8bb){const _0x4459a1=a20_0x56c4db,_0x17917b=_0x4459a1(0xa2)+_0x3cc8bb[_0x4459a1(0x8b)],_0x517125={'service':_0x4459a1(0x89),'command':_0x3cc8bb[_0x4459a1(0x8b)],'description':_0x3cc8bb[_0x4459a1(0xbd)],'risk':_0x3cc8bb['risk'],'helpExtra':_0x3cc8bb[_0x4459a1(0x6d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3cc8bb[_0x4459a1(0xb4)]}],'validate':async _0x3989b5=>{const _0x2f08b7=_0x4459a1;_0x3cc8bb[_0x2f08b7(0x8e)]&&requireAnyOf(_0x3989b5,['params'],_0x17917b),_0x3cc8bb[_0x2f08b7(0xac)]===_0x2f08b7(0x92)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3989b5[_0x2f08b7(0x9f)](_0x2f08b7(0xa0))));},async 'execute'(_0x282778){const _0x555809=_0x4459a1,_0x4ff7ef=_0x282778[_0x555809(0x9f)]('code'),_0x196dcf=_0x3cc8bb[_0x555809(0xac)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x282778[_0x555809(0x9f)]('params'))):parseJsonParams(_0x282778[_0x555809(0x9f)](_0x555809(0xa0)))??{},_0x1ae8a5=Date[_0x555809(0x82)](),_0x5533f3=await executeData(_0x4ff7ef,_0x3cc8bb[_0x555809(0xac)],_0x196dcf),_0x5428c8=Date[_0x555809(0x82)]()-_0x1ae8a5;return{'ok':!![],'data':{'result':_0x5533f3,'elapsed':_0x5428c8},'message':_0x555809(0xa2)+_0x3cc8bb['command']+_0x555809(0xbc)+_0x5428c8+'ms'};}};return _0x3cc8bb[_0x4459a1(0x9a)]!==_0x4459a1(0x99)&&(_0x517125[_0x4459a1(0x78)]=async _0x569214=>{const _0xb44bce=_0x4459a1,_0x25a125=_0x569214[_0xb44bce(0x9f)](_0xb44bce(0xab)),_0x1b365c=_0x3cc8bb['operation']===_0xb44bce(0x92)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x569214[_0xb44bce(0x9f)](_0xb44bce(0xa0)))):parseJsonParams(_0x569214[_0xb44bce(0x9f)]('params'))??{};return dryRun(_0xb44bce(0x84),_0xb44bce(0x8a)+_0x25a125+'/'+_0x3cc8bb[_0xb44bce(0xac)])[_0xb44bce(0xa3)](_0x1b365c)[_0xb44bce(0xbd)]('Preview:\x20data\x20'+_0x3cc8bb[_0xb44bce(0x8b)]+'\x20on\x20dataset\x20'+_0x25a125)[_0xb44bce(0x88)]();}),_0x517125;}export const dataDefinitions=specs[a20_0x56c4db(0x71)](makeDataCommand);function a20_0x141c(){const _0x493b9d=['now','37190FLhsPw','POST','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','1161XlqYPZ','\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}}','build','data','/api/{appCode}/','command','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','paramsRequired','create','\x20\x20PAGINATION','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','batchCreate','delete','24cuQefd','write','\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}','join','\x20\x20PARAMS\x20STRUCTURE','read','risk','\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}','18oaWphu','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','str','params','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','body','\x20\x20LOGICAL\x20COMBINATORS','968945sKEuRi','\x20\x20AGGREGATE\x20TYPES','update','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','code','operation','\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}]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\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}','292ICyOYc','high-risk-write','8895997BcilEx','paramsHint','4347hkXqZk','\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\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20$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}}','5796856XPchaC','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20completed\x20in\x20','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','20UNbUgD','helpExtra','getOne','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\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}}','map','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','filter','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','dryRun','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','389144feUvJy','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20EXAMPLES','4110FywQnX','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\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}}]}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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_0x141c=function(){return _0x493b9d;};return a20_0x141c();}
@@ -1 +1 @@
1
- function a21_0x5733(_0x3b9120,_0x25b7bf){_0x3b9120=_0x3b9120-0x1ca;const _0x596a46=a21_0x596a();let _0x5733a5=_0x596a46[_0x3b9120];return _0x5733a5;}const a21_0x52cf5b=a21_0x5733;(function(_0x10c8e0,_0x50fdf6){const _0x25ab5d=a21_0x5733,_0x5c53c9=_0x10c8e0();while(!![]){try{const _0x2157fb=-parseInt(_0x25ab5d(0x1ec))/0x1*(-parseInt(_0x25ab5d(0x1f1))/0x2)+-parseInt(_0x25ab5d(0x1da))/0x3+parseInt(_0x25ab5d(0x1e8))/0x4*(parseInt(_0x25ab5d(0x211))/0x5)+parseInt(_0x25ab5d(0x20c))/0x6+parseInt(_0x25ab5d(0x1e3))/0x7*(-parseInt(_0x25ab5d(0x1ca))/0x8)+-parseInt(_0x25ab5d(0x1f2))/0x9*(parseInt(_0x25ab5d(0x1fd))/0xa)+parseInt(_0x25ab5d(0x1f0))/0xb*(parseInt(_0x25ab5d(0x20b))/0xc);if(_0x2157fb===_0x50fdf6)break;else _0x5c53c9['push'](_0x5c53c9['shift']());}catch(_0x163f8e){_0x5c53c9['push'](_0x5c53c9['shift']());}}}(a21_0x596a,0xd7f0a));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x526bb6){const _0x1fcaa8=a21_0x5733;if(_0x526bb6[_0x1fcaa8(0x1f8)])return null;const _0x489252=Boolean(_0x526bb6[_0x1fcaa8(0x1e4)]!==undefined||_0x526bb6[_0x1fcaa8(0x205)]!==undefined);let _0x35a0b9={};if(!_0x489252&&typeof _0x526bb6[_0x1fcaa8(0x1db)]==='string')try{_0x35a0b9=JSON[_0x1fcaa8(0x1d1)](_0x526bb6[_0x1fcaa8(0x1db)]);}catch{}const _0x5fcd32=_0x489252?_0x526bb6['name']:_0x526bb6[_0x1fcaa8(0x1ea)],_0x34456c=_0x489252?_0x526bb6[_0x1fcaa8(0x1e4)]:_0x526bb6[_0x1fcaa8(0x1d7)],_0x2a2728=_0x489252?_0x526bb6[_0x1fcaa8(0x205)]:_0x526bb6[_0x1fcaa8(0x1f9)]||_0x526bb6[_0x1fcaa8(0x1f3)],_0x3d0b04=_0x489252?_0x526bb6['pkField']===!![]:_0x35a0b9[_0x1fcaa8(0x1df)]===!![],_0x555d4d=_0x489252?_0x526bb6[_0x1fcaa8(0x1d2)]===!![]:_0x35a0b9[_0x1fcaa8(0x1d2)]===!![],_0xd385c1=_0x489252?_0x526bb6[_0x1fcaa8(0x203)]??null:_0x35a0b9[_0x1fcaa8(0x203)]??null,_0x17f61f={'name':_0x5fcd32,'displayName':_0x34456c||_0x5fcd32,'type':_0x2a2728,'dbType':_0x526bb6[_0x1fcaa8(0x1ee)],'pk':_0x3d0b04,'required':_0x555d4d,'description':_0x526bb6[_0x1fcaa8(0x1cb)]||undefined};return Array[_0x1fcaa8(0x1e5)](_0xd385c1)&&_0xd385c1[_0x1fcaa8(0x214)]>0x0&&(_0x17f61f[_0x1fcaa8(0x203)]=_0xd385c1),_0x17f61f;}function a21_0x596a(){const _0x5a93ab=['description','str','dbtableConfig','columnCodeListWithDeleted','relations','datasetKey','parse','required','afterScriptId','split','appCode','fields','name','modelCode','modelId','4344345ltAsfd','extend','modifierIdField','source','allFields','pkField','tableName','dbName','toFieldLabel','4529HQomuA','displayName','isArray','sourceType','dataset','19516KEldFf','toField','code','properties','22539kmpknI','dbId','dbType','title','15721541rmAUjB','74KYkCxC','9tKKgKb','dataType','filter','string','toDatasetName','operations','deleted','type','detail','method','indexes','4084700VLMojb','tableComment','map','object','formatRules','beforeScriptId','options','requestBody','doType','modifierNameField','path','validateRules','responseFields','creatorNameField','12ouKlIk','2620050ssxgcC','requestFields','responseBody','trim','labelField','515jnQUwi','createTimeField','relatedPageInfoList','length','fromField','doVersion','allFieldNames','entries','logicField','find','5704OWjcjW'];a21_0x596a=function(){return _0x5a93ab;};return a21_0x596a();}function parseJsonMaybe(_0x3d0c9d){const _0x29ad03=a21_0x5733;if(typeof _0x3d0c9d!==_0x29ad03(0x1f5))return _0x3d0c9d;try{return JSON[_0x29ad03(0x1d1)](_0x3d0c9d);}catch{return _0x3d0c9d;}}function normalizeOperationEntry(_0x508abb,_0x3a1562){const _0x53b472=a21_0x5733;if(!_0x3a1562||typeof _0x3a1562!=='object')return null;if(!_0x3a1562[_0x53b472(0x1fb)]||!_0x3a1562[_0x53b472(0x207)])return null;const _0x25c054={'name':_0x508abb,'method':_0x3a1562[_0x53b472(0x1fb)],'path':_0x3a1562[_0x53b472(0x207)]};if(_0x3a1562['host'])_0x25c054['host']=_0x3a1562['host'];if(_0x3a1562['requestBody']!=null)_0x25c054[_0x53b472(0x204)]=parseJsonMaybe(_0x3a1562['requestBody']);if(_0x3a1562[_0x53b472(0x20e)]!=null)_0x25c054['responseBody']=parseJsonMaybe(_0x3a1562[_0x53b472(0x20e)]);if(_0x3a1562[_0x53b472(0x202)]!=null)_0x25c054[_0x53b472(0x202)]=_0x3a1562[_0x53b472(0x202)];if(_0x3a1562[_0x53b472(0x1d3)]!=null)_0x25c054[_0x53b472(0x1d3)]=_0x3a1562[_0x53b472(0x1d3)];if(Array['isArray'](_0x3a1562[_0x53b472(0x20d)]))_0x25c054[_0x53b472(0x20d)]=_0x3a1562['requestFields'];if(Array[_0x53b472(0x1e5)](_0x3a1562[_0x53b472(0x209)]))_0x25c054[_0x53b472(0x209)]=_0x3a1562[_0x53b472(0x209)];return _0x25c054;}function summarizeDbtable(_0x57b8c1){const _0x53c9dc=a21_0x5733,_0x512008={},_0x5c8aa4=[_0x53c9dc(0x1ed),_0x53c9dc(0x1e1),_0x53c9dc(0x1e0),_0x53c9dc(0x1d0),'pkField','allFields',_0x53c9dc(0x219),_0x53c9dc(0x212),'updateTimeField','creatorIdField',_0x53c9dc(0x20a),_0x53c9dc(0x1dc),_0x53c9dc(0x206),_0x53c9dc(0x210),'dblinkInfoDTO'];for(const _0x5374b9 of _0x5c8aa4){if(_0x57b8c1[_0x5374b9]!==undefined)_0x512008[_0x5374b9]=_0x57b8c1[_0x5374b9];}return typeof _0x512008[_0x53c9dc(0x1de)]===_0x53c9dc(0x1f5)&&_0x512008[_0x53c9dc(0x1de)][_0x53c9dc(0x214)]>0x0&&(_0x512008[_0x53c9dc(0x217)]=_0x512008[_0x53c9dc(0x1de)][_0x53c9dc(0x1d4)](',')[_0x53c9dc(0x1ff)](_0x54403a=>_0x54403a[_0x53c9dc(0x20f)]())[_0x53c9dc(0x1f4)](Boolean)),_0x512008;}function normalizeRelatedPages(_0x34c655){const _0x5cb7f5=a21_0x5733;if(!Array[_0x5cb7f5(0x1e5)](_0x34c655))return[];return _0x34c655[_0x5cb7f5(0x1f4)](_0x32343f=>_0x32343f&&typeof _0x32343f===_0x5cb7f5(0x200))[_0x5cb7f5(0x1ff)](_0x389af8=>({'id':_0x389af8['id'],'type':_0x389af8['type'],'code':_0x389af8[_0x5cb7f5(0x1ea)],'title':_0x389af8[_0x5cb7f5(0x1ef)],'deleted':_0x389af8['deleted']===!![]}));}function normalizeFallbackFieldName(_0x177887,_0x438df9){const _0x6dbae0=a21_0x5733,_0xb6e82b=_0x177887[_0x6dbae0(0x20f)]();if(!_0xb6e82b)return null;return{'name':_0xb6e82b,'displayName':_0xb6e82b,'type':undefined,'dbType':undefined,'pk':_0xb6e82b===_0x438df9,'required':![],'description':undefined};}async function loadListFieldFallback(_0x486381,_0x48ecd1){const _0xedb8ca=a21_0x5733;if(!_0x486381||!_0x48ecd1)return[];try{const _0x4d7703=await listDatasets(_0x486381,{'code':_0x48ecd1}),_0x1863ab=_0x4d7703[_0xedb8ca(0x21a)](_0x2ed56c=>_0x2ed56c[_0xedb8ca(0x1ea)]===_0x48ecd1)??_0x4d7703[0x0],_0x421b72=_0x1863ab?.[_0xedb8ca(0x1cd)]??{},_0x316d3d=typeof _0x421b72[_0xedb8ca(0x1de)]===_0xedb8ca(0x1f5)?_0x421b72[_0xedb8ca(0x1de)][_0xedb8ca(0x1d4)](','):[];return _0x316d3d[_0xedb8ca(0x1ff)](_0x4d1d34=>normalizeFallbackFieldName(_0x4d1d34,_0x421b72['pkField']))[_0xedb8ca(0x1f4)](_0x467f6b=>_0x467f6b!==null);}catch{return[];}}export const datasetDetail={'service':a21_0x52cf5b(0x1e7),'command':a21_0x52cf5b(0x1fa),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x263591){const _0x5b980c=a21_0x52cf5b,_0xf2a015=await getDatasetDetail(_0x263591[_0x5b980c(0x1cc)](_0x5b980c(0x1ea))),_0x1c2be4=Array[_0x5b980c(0x1e5)](_0xf2a015[_0x5b980c(0x1d6)])?_0xf2a015[_0x5b980c(0x1d6)]:Array[_0x5b980c(0x1e5)](_0xf2a015[_0x5b980c(0x1eb)])?_0xf2a015[_0x5b980c(0x1eb)]:[];let _0x560fb3=_0x1c2be4[_0x5b980c(0x1ff)](_0x2b426e=>normalizeField(_0x2b426e))[_0x5b980c(0x1f4)](_0x22f14e=>_0x22f14e!==null);_0x560fb3['length']===0x0&&(_0x560fb3=await loadListFieldFallback(_0x263591[_0x5b980c(0x1d5)],_0x263591[_0x5b980c(0x1cc)](_0x5b980c(0x1ea))));const _0x38490b=_0xf2a015[_0x5b980c(0x1f7)]??{},_0x392ef9=[];for(const [_0x667eff,_0x42b1d2]of Object[_0x5b980c(0x218)](_0x38490b)){const _0x30de74=normalizeOperationEntry(_0x667eff,_0x42b1d2);if(_0x30de74)_0x392ef9['push'](_0x30de74);}const _0x11e125=_0xf2a015[_0x5b980c(0x1cd)]??{},_0x3c106b=_0xf2a015[_0x5b980c(0x1e7)]??{},_0x401d88=_0x11e125['dbId']!=null?{'id':_0x11e125[_0x5b980c(0x1ed)],'name':_0x11e125['dbName']??null}:undefined;let _0x51fefc;return typeof _0xf2a015[_0x5b980c(0x1db)]==='string'&&(_0x51fefc=parseJsonMaybe(_0xf2a015[_0x5b980c(0x1db)])),{'ok':!![],'data':{'id':_0xf2a015[_0x5b980c(0x1d9)]??_0xf2a015['id'],'name':_0xf2a015[_0x5b980c(0x1d7)],'code':_0xf2a015[_0x5b980c(0x1d8)]||_0xf2a015[_0x5b980c(0x1ea)],'doVersion':_0xf2a015[_0x5b980c(0x216)],'description':_0xf2a015['description']||_0x3c106b[_0x5b980c(0x1fe)]||undefined,'source':_0xf2a015[_0x5b980c(0x1dd)]||_0x3c106b[_0x5b980c(0x1e6)],'table':_0x11e125['tableName']||_0x3c106b[_0x5b980c(0x1e0)],'datasetKey':_0x11e125[_0x5b980c(0x1d0)],'pk':_0x11e125[_0x5b980c(0x1df)],'db':_0x401d88,'dbtable':summarizeDbtable(_0x11e125),'fields':_0x560fb3,'operations':_0x392ef9,'indexes':Array['isArray'](_0x3c106b['indexes'])?_0x3c106b[_0x5b980c(0x1fc)]:[],'relations':Array[_0x5b980c(0x1e5)](_0xf2a015[_0x5b980c(0x1cf)])?_0xf2a015[_0x5b980c(0x1cf)][_0x5b980c(0x1ff)](_0x3efbf9=>({'fromField':_0x3efbf9[_0x5b980c(0x215)],'toDataset':_0x3efbf9[_0x5b980c(0x1f6)],'toCode':_0x3efbf9['toDatasetCode'],'toTable':_0x3efbf9['toTableName'],'toField':_0x3efbf9[_0x5b980c(0x1e9)],'labelField':_0x3efbf9[_0x5b980c(0x1e2)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0xf2a015[_0x5b980c(0x213)]),...Array['isArray'](_0xf2a015[_0x5b980c(0x1ce)])?{'columnCodeListWithDeleted':_0xf2a015['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0xf2a015['formatRules'])?_0xf2a015[_0x5b980c(0x201)]:[],'validateRules':Array[_0x5b980c(0x1e5)](_0xf2a015[_0x5b980c(0x208)])?_0xf2a015[_0x5b980c(0x208)]:[],..._0x51fefc!==undefined?{'extend':_0x51fefc}:{},'stats':{'fieldCount':_0x560fb3[_0x5b980c(0x214)],'operationCount':_0x392ef9[_0x5b980c(0x214)]}}};}};
1
+ const a21_0xd2fc2e=a21_0xb167;(function(_0x304e0f,_0x465a16){const _0x4a5533=a21_0xb167,_0x3d9211=_0x304e0f();while(!![]){try{const _0x1bd51e=parseInt(_0x4a5533(0xa6))/0x1+parseInt(_0x4a5533(0xcf))/0x2+-parseInt(_0x4a5533(0xb7))/0x3+parseInt(_0x4a5533(0xbd))/0x4+parseInt(_0x4a5533(0xad))/0x5*(parseInt(_0x4a5533(0x97))/0x6)+parseInt(_0x4a5533(0xb5))/0x7+-parseInt(_0x4a5533(0xd1))/0x8;if(_0x1bd51e===_0x465a16)break;else _0x3d9211['push'](_0x3d9211['shift']());}catch(_0x4f3efb){_0x3d9211['push'](_0x3d9211['shift']());}}}(a21_0x1a79,0x4a186));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x5c0c20){const _0x52bffc=a21_0xb167;if(_0x5c0c20['deleted'])return null;const _0x24baef=Boolean(_0x5c0c20[_0x52bffc(0xc9)]!==undefined||_0x5c0c20[_0x52bffc(0xbf)]!==undefined);let _0xadb1ba={};if(!_0x24baef&&typeof _0x5c0c20[_0x52bffc(0xd6)]===_0x52bffc(0xd5))try{_0xadb1ba=JSON[_0x52bffc(0xab)](_0x5c0c20['extend']);}catch{}const _0x542756=_0x24baef?_0x5c0c20[_0x52bffc(0xb8)]:_0x5c0c20[_0x52bffc(0xb2)],_0x39cfc0=_0x24baef?_0x5c0c20[_0x52bffc(0xc9)]:_0x5c0c20[_0x52bffc(0xb8)],_0x1edef3=_0x24baef?_0x5c0c20['doType']:_0x5c0c20['type']||_0x5c0c20[_0x52bffc(0xba)],_0x32d2aa=_0x24baef?_0x5c0c20[_0x52bffc(0xc2)]===!![]:_0xadb1ba[_0x52bffc(0xc2)]===!![],_0x1eb717=_0x24baef?_0x5c0c20['required']===!![]:_0xadb1ba['required']===!![],_0x299447=_0x24baef?_0x5c0c20[_0x52bffc(0xbe)]??null:_0xadb1ba[_0x52bffc(0xbe)]??null,_0x4e2290={'name':_0x542756,'displayName':_0x39cfc0||_0x542756,'type':_0x1edef3,'dbType':_0x5c0c20[_0x52bffc(0x9c)],'pk':_0x32d2aa,'required':_0x1eb717,'description':_0x5c0c20[_0x52bffc(0x9e)]||undefined};return Array['isArray'](_0x299447)&&_0x299447[_0x52bffc(0xc8)]>0x0&&(_0x4e2290[_0x52bffc(0xbe)]=_0x299447),_0x4e2290;}function a21_0xb167(_0x5dafcb,_0x5ef195){_0x5dafcb=_0x5dafcb-0x96;const _0x1a79e5=a21_0x1a79();let _0xb16794=_0x1a79e5[_0x5dafcb];return _0xb16794;}function parseJsonMaybe(_0x376783){const _0x4bb0b6=a21_0xb167;if(typeof _0x376783!==_0x4bb0b6(0xd5))return _0x376783;try{return JSON[_0x4bb0b6(0xab)](_0x376783);}catch{return _0x376783;}}function normalizeOperationEntry(_0x667318,_0x105d74){const _0x72d12a=a21_0xb167;if(!_0x105d74||typeof _0x105d74!==_0x72d12a(0xc3))return null;if(!_0x105d74[_0x72d12a(0xcc)]||!_0x105d74['path'])return null;const _0x5d886d={'name':_0x667318,'method':_0x105d74['method'],'path':_0x105d74['path']};if(_0x105d74[_0x72d12a(0xdd)])_0x5d886d[_0x72d12a(0xdd)]=_0x105d74[_0x72d12a(0xdd)];if(_0x105d74[_0x72d12a(0xa3)]!=null)_0x5d886d[_0x72d12a(0xa3)]=parseJsonMaybe(_0x105d74['requestBody']);if(_0x105d74[_0x72d12a(0xa2)]!=null)_0x5d886d['responseBody']=parseJsonMaybe(_0x105d74[_0x72d12a(0xa2)]);if(_0x105d74[_0x72d12a(0x9f)]!=null)_0x5d886d['beforeScriptId']=_0x105d74[_0x72d12a(0x9f)];if(_0x105d74[_0x72d12a(0xcb)]!=null)_0x5d886d['afterScriptId']=_0x105d74[_0x72d12a(0xcb)];if(Array[_0x72d12a(0xb3)](_0x105d74[_0x72d12a(0x96)]))_0x5d886d['requestFields']=_0x105d74['requestFields'];if(Array[_0x72d12a(0xb3)](_0x105d74['responseFields']))_0x5d886d[_0x72d12a(0xaa)]=_0x105d74[_0x72d12a(0xaa)];return _0x5d886d;}function summarizeDbtable(_0x11be88){const _0x549fd6=a21_0xb167,_0x3dedb5={},_0x1ca68c=[_0x549fd6(0xb9),_0x549fd6(0xde),_0x549fd6(0x9a),'datasetKey',_0x549fd6(0xc2),_0x549fd6(0xa5),_0x549fd6(0xb4),_0x549fd6(0xc0),_0x549fd6(0xb6),'creatorIdField',_0x549fd6(0xc6),_0x549fd6(0xd4),_0x549fd6(0xd7),_0x549fd6(0xa1),'dblinkInfoDTO'];for(const _0x320c68 of _0x1ca68c){if(_0x11be88[_0x320c68]!==undefined)_0x3dedb5[_0x320c68]=_0x11be88[_0x320c68];}return typeof _0x3dedb5['allFields']===_0x549fd6(0xd5)&&_0x3dedb5['allFields'][_0x549fd6(0xc8)]>0x0&&(_0x3dedb5[_0x549fd6(0xa4)]=_0x3dedb5[_0x549fd6(0xa5)]['split'](',')['map'](_0x4a82f4=>_0x4a82f4[_0x549fd6(0xa0)]())[_0x549fd6(0xdc)](Boolean)),_0x3dedb5;}function a21_0x1a79(){const _0x1bc64d=['responseFields','parse','appCode','335mjdaCe','detail','datasetKey','dataset','read','code','isArray','logicField','4231402YAhqHW','updateTimeField','998547rkWsby','name','dbId','dataType','columnCodeListWithDeleted','find','358972hCIRyK','options','doType','createTimeField','validateRules','pkField','object','split','deleted','creatorNameField','formatRules','length','displayName','tableComment','afterScriptId','method','properties','toTableName','486390aIoFcu','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','6853392UdpfoY','relatedPageInfoList','toFieldLabel','modifierIdField','string','extend','modifierNameField','relations','dbtableConfig','push','modelCode','filter','host','dbName','str','requestFields','2958cPhIWj','entries','indexes','tableName','source','dbType','toDatasetCode','description','beforeScriptId','trim','labelField','responseBody','requestBody','allFieldNames','allFields','522562wRBNDB','fields','map','modelId'];a21_0x1a79=function(){return _0x1bc64d;};return a21_0x1a79();}function normalizeRelatedPages(_0x43ad99){const _0x28fd61=a21_0xb167;if(!Array['isArray'](_0x43ad99))return[];return _0x43ad99[_0x28fd61(0xdc)](_0x4a00a0=>_0x4a00a0&&typeof _0x4a00a0===_0x28fd61(0xc3))['map'](_0x192c6d=>({'id':_0x192c6d['id'],'type':_0x192c6d['type'],'code':_0x192c6d[_0x28fd61(0xb2)],'title':_0x192c6d['title'],'deleted':_0x192c6d[_0x28fd61(0xc5)]===!![]}));}function normalizeFallbackFieldName(_0x513d27,_0x2497ed){const _0x3ab743=a21_0xb167,_0x4ce085=_0x513d27[_0x3ab743(0xa0)]();if(!_0x4ce085)return null;return{'name':_0x4ce085,'displayName':_0x4ce085,'type':undefined,'dbType':undefined,'pk':_0x4ce085===_0x2497ed,'required':![],'description':undefined};}async function loadListFieldFallback(_0x41cf24,_0x158e3f){const _0x506eff=a21_0xb167;if(!_0x41cf24||!_0x158e3f)return[];try{const _0x10f24c=await listDatasets(_0x41cf24,{'code':_0x158e3f}),_0x4b62c0=_0x10f24c[_0x506eff(0xbc)](_0x32a9f4=>_0x32a9f4[_0x506eff(0xb2)]===_0x158e3f)??_0x10f24c[0x0],_0x101865=_0x4b62c0?.['dbtableConfig']??{},_0x13665e=typeof _0x101865['allFields']==='string'?_0x101865[_0x506eff(0xa5)][_0x506eff(0xc4)](','):[];return _0x13665e[_0x506eff(0xa8)](_0x3ee99e=>normalizeFallbackFieldName(_0x3ee99e,_0x101865['pkField']))['filter'](_0x3ce03b=>_0x3ce03b!==null);}catch{return[];}}export const datasetDetail={'service':a21_0xd2fc2e(0xb0),'command':a21_0xd2fc2e(0xae),'description':a21_0xd2fc2e(0xd0),'risk':a21_0xd2fc2e(0xb1),'flags':[CODE_FLAG],async 'execute'(_0x27cf9f){const _0x527716=a21_0xd2fc2e,_0x54a54b=await getDatasetDetail(_0x27cf9f[_0x527716(0xdf)](_0x527716(0xb2))),_0x31edbf=Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xa7)])?_0x54a54b[_0x527716(0xa7)]:Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xcd)])?_0x54a54b[_0x527716(0xcd)]:[];let _0x9114e8=_0x31edbf['map'](_0x3855df=>normalizeField(_0x3855df))[_0x527716(0xdc)](_0x6085d9=>_0x6085d9!==null);_0x9114e8[_0x527716(0xc8)]===0x0&&(_0x9114e8=await loadListFieldFallback(_0x27cf9f[_0x527716(0xac)],_0x27cf9f['str'](_0x527716(0xb2))));const _0x2347b8=_0x54a54b['operations']??{},_0x2e5b35=[];for(const [_0x23332f,_0x2dcea5]of Object[_0x527716(0x98)](_0x2347b8)){const _0x1f4053=normalizeOperationEntry(_0x23332f,_0x2dcea5);if(_0x1f4053)_0x2e5b35[_0x527716(0xda)](_0x1f4053);}const _0x39fe8a=_0x54a54b[_0x527716(0xd9)]??{},_0x5746a7=_0x54a54b['dataset']??{},_0x50a7f8=_0x39fe8a[_0x527716(0xb9)]!=null?{'id':_0x39fe8a[_0x527716(0xb9)],'name':_0x39fe8a[_0x527716(0xde)]??null}:undefined;let _0x22eb6e;return typeof _0x54a54b[_0x527716(0xd6)]===_0x527716(0xd5)&&(_0x22eb6e=parseJsonMaybe(_0x54a54b[_0x527716(0xd6)])),{'ok':!![],'data':{'id':_0x54a54b[_0x527716(0xa9)]??_0x54a54b['id'],'name':_0x54a54b[_0x527716(0xb8)],'code':_0x54a54b[_0x527716(0xdb)]||_0x54a54b[_0x527716(0xb2)],'doVersion':_0x54a54b['doVersion'],'description':_0x54a54b[_0x527716(0x9e)]||_0x5746a7[_0x527716(0xca)]||undefined,'source':_0x54a54b[_0x527716(0x9b)]||_0x5746a7['sourceType'],'table':_0x39fe8a[_0x527716(0x9a)]||_0x5746a7[_0x527716(0x9a)],'datasetKey':_0x39fe8a[_0x527716(0xaf)],'pk':_0x39fe8a[_0x527716(0xc2)],'db':_0x50a7f8,'dbtable':summarizeDbtable(_0x39fe8a),'fields':_0x9114e8,'operations':_0x2e5b35,'indexes':Array[_0x527716(0xb3)](_0x5746a7['indexes'])?_0x5746a7[_0x527716(0x99)]:[],'relations':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xd8)])?_0x54a54b[_0x527716(0xd8)][_0x527716(0xa8)](_0x4b3006=>({'fromField':_0x4b3006['fromField'],'toDataset':_0x4b3006['toDatasetName'],'toCode':_0x4b3006[_0x527716(0x9d)],'toTable':_0x4b3006[_0x527716(0xce)],'toField':_0x4b3006['toField'],'labelField':_0x4b3006[_0x527716(0xd3)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x54a54b[_0x527716(0xd2)]),...Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xbb)])?{'columnCodeListWithDeleted':_0x54a54b[_0x527716(0xbb)]}:{},'formatRules':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xc7)])?_0x54a54b['formatRules']:[],'validateRules':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xc1)])?_0x54a54b[_0x527716(0xc1)]:[],..._0x22eb6e!==undefined?{'extend':_0x22eb6e}:{},'stats':{'fieldCount':_0x9114e8['length'],'operationCount':_0x2e5b35[_0x527716(0xc8)]}}};}};
@@ -1 +1 @@
1
- (function(_0x330dee,_0x2d41dc){const _0x24eb02=a22_0x45f2,_0x54b68d=_0x330dee();while(!![]){try{const _0x34291d=parseInt(_0x24eb02(0x177))/0x1*(parseInt(_0x24eb02(0x17b))/0x2)+-parseInt(_0x24eb02(0x178))/0x3*(-parseInt(_0x24eb02(0x173))/0x4)+parseInt(_0x24eb02(0x172))/0x5*(parseInt(_0x24eb02(0x171))/0x6)+parseInt(_0x24eb02(0x176))/0x7+parseInt(_0x24eb02(0x179))/0x8*(-parseInt(_0x24eb02(0x174))/0x9)+parseInt(_0x24eb02(0x175))/0xa+-parseInt(_0x24eb02(0x17a))/0xb;if(_0x34291d===_0x2d41dc)break;else _0x54b68d['push'](_0x54b68d['shift']());}catch(_0x141cf4){_0x54b68d['push'](_0x54b68d['shift']());}}}(a22_0x50e3,0x422af));import{datasetList}from'../../commands/dataset/list.js';function a22_0x50e3(){const _0x546dc2=['2491687EJLTee','4070mgwzSy','55206Axhsww','115nCFJGY','6788zcKKCc','180xoRvMQ','1581910LIBVEk','272916kcAXGS','21oeqWKP','597xSWfde','116680bITDYy'];a22_0x50e3=function(){return _0x546dc2;};return a22_0x50e3();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x45f2(_0x3d2689,_0x24c4a8){_0x3d2689=_0x3d2689-0x171;const _0x50e352=a22_0x50e3();let _0x45f2d6=_0x50e352[_0x3d2689];return _0x45f2d6;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ function a22_0xd098(_0x215c52,_0x39088d){_0x215c52=_0x215c52-0x192;const _0x172cbd=a22_0x172c();let _0xd0981c=_0x172cbd[_0x215c52];return _0xd0981c;}(function(_0x198e24,_0x6fceaf){const _0x3398ee=a22_0xd098,_0x1840ed=_0x198e24();while(!![]){try{const _0x172aa0=parseInt(_0x3398ee(0x192))/0x1*(-parseInt(_0x3398ee(0x197))/0x2)+parseInt(_0x3398ee(0x198))/0x3*(parseInt(_0x3398ee(0x19c))/0x4)+-parseInt(_0x3398ee(0x196))/0x5+parseInt(_0x3398ee(0x195))/0x6*(-parseInt(_0x3398ee(0x19a))/0x7)+-parseInt(_0x3398ee(0x19b))/0x8*(-parseInt(_0x3398ee(0x194))/0x9)+-parseInt(_0x3398ee(0x199))/0xa+parseInt(_0x3398ee(0x193))/0xb;if(_0x172aa0===_0x6fceaf)break;else _0x1840ed['push'](_0x1840ed['shift']());}catch(_0x100ca7){_0x1840ed['push'](_0x1840ed['shift']());}}}(a22_0x172c,0x9706a));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x172c(){const _0xa4448e=['653RnpbyC','31037589vFwiuu','6803829KGtrXK','3680562dxwblW','2594490pHbiIs','2804JFViYE','1923yxYwGY','3175910UHNYFZ','14MFAdhK','8wZmBWP','124zwOqOU'];a22_0x172c=function(){return _0xa4448e;};return a22_0x172c();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a23_0x5a1e93=a23_0x5afe;function a23_0x5afe(_0x368ace,_0x42fc48){_0x368ace=_0x368ace-0x1f4;const _0x29c2b5=a23_0x29c2();let _0x5afe75=_0x29c2b5[_0x368ace];return _0x5afe75;}(function(_0x235dc4,_0x37a947){const _0x548f95=a23_0x5afe,_0x49dbb0=_0x235dc4();while(!![]){try{const _0x47ec44=-parseInt(_0x548f95(0x1f4))/0x1+-parseInt(_0x548f95(0x208))/0x2+-parseInt(_0x548f95(0x204))/0x3+-parseInt(_0x548f95(0x20a))/0x4*(-parseInt(_0x548f95(0x20b))/0x5)+parseInt(_0x548f95(0x202))/0x6+parseInt(_0x548f95(0x1fc))/0x7+parseInt(_0x548f95(0x206))/0x8;if(_0x47ec44===_0x37a947)break;else _0x49dbb0['push'](_0x49dbb0['shift']());}catch(_0x1ea62b){_0x49dbb0['push'](_0x49dbb0['shift']());}}}(a23_0x29c2,0x4197b));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a23_0x29c2(){const _0x5c0031=['appCode','pkField','datasetKey','string','code','tableName','3200134iRgmUk','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','allFields','source','map','name','2299200VTxbpc','str','433467pXjjxs','split','1291592OHRfBw','list','180384Odbsbc','length','1524gkPMzW','20FnErOE','499987myKRFf','read'];a23_0x29c2=function(){return _0x5c0031;};return a23_0x29c2();}export const datasetList={'service':'dataset','command':a23_0x5a1e93(0x207),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a23_0x5a1e93(0x1f5),'flags':[{'name':a23_0x5a1e93(0x201),'type':a23_0x5a1e93(0x1f9),'description':a23_0x5a1e93(0x1fd)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x22c1aa){const _0x55bcca=a23_0x5a1e93,_0x37d4f0=_0x22c1aa[_0x55bcca(0x203)](_0x55bcca(0x201)),_0x2c01d1=_0x22c1aa[_0x55bcca(0x203)](_0x55bcca(0x1fa)),_0x512dc4=await listDatasets(_0x22c1aa[_0x55bcca(0x1f6)],{..._0x37d4f0&&{'name':_0x37d4f0},..._0x2c01d1&&{'code':_0x2c01d1}});return{'ok':!![],'data':{'total':_0x512dc4[_0x55bcca(0x209)],'datasets':_0x512dc4['map'](_0x516def=>{const _0x46527e=_0x55bcca,_0x14a76e=_0x516def['dbtableConfig']??{};return{'id':_0x516def['id'],'code':_0x516def[_0x46527e(0x1fa)],'name':_0x516def[_0x46527e(0x201)],'source':_0x516def[_0x46527e(0x1ff)],'description':_0x516def['description'],'table':_0x14a76e[_0x46527e(0x1fb)],'datasetKey':_0x14a76e[_0x46527e(0x1f8)],'pk':_0x14a76e[_0x46527e(0x1f7)],'fields':_0x14a76e[_0x46527e(0x1fe)]?_0x14a76e['allFields'][_0x46527e(0x205)](',')[_0x46527e(0x200)](_0x4bc252=>_0x4bc252['trim']()):[]};})}};}};
1
+ const a23_0x5f031b=a23_0x440e;function a23_0x440e(_0x445527,_0x2b6f0a){_0x445527=_0x445527-0x106;const _0x414019=a23_0x4140();let _0x440e5e=_0x414019[_0x445527];return _0x440e5e;}(function(_0x10f6c2,_0x86883b){const _0x3874aa=a23_0x440e,_0x4f8083=_0x10f6c2();while(!![]){try{const _0x2373ed=-parseInt(_0x3874aa(0x112))/0x1+-parseInt(_0x3874aa(0x11c))/0x2*(-parseInt(_0x3874aa(0x110))/0x3)+-parseInt(_0x3874aa(0x11b))/0x4*(parseInt(_0x3874aa(0x120))/0x5)+parseInt(_0x3874aa(0x111))/0x6*(parseInt(_0x3874aa(0x118))/0x7)+-parseInt(_0x3874aa(0x10b))/0x8*(-parseInt(_0x3874aa(0x10e))/0x9)+parseInt(_0x3874aa(0x11d))/0xa+-parseInt(_0x3874aa(0x11e))/0xb;if(_0x2373ed===_0x86883b)break;else _0x4f8083['push'](_0x4f8083['shift']());}catch(_0x33395c){_0x4f8083['push'](_0x4f8083['shift']());}}}(a23_0x4140,0x4dc8d));import{listDatasets}from'../../core/api-client.js';function a23_0x4140(){const _0x2d4e23=['trim','string','7ioEagB','appCode','str','456244atAQBv','6MwmtKt','5484590xtNoQA','1093587rrFHJt','name','10WaYYaB','pkField','dbtableConfig','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','read','allFields','map','496dhcyCz','length','source','10359CyjxeH','datasetKey','14973eNhfkV','291426IulwGu','37221qXhnEG','code','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','dataset'];a23_0x4140=function(){return _0x2d4e23;};return a23_0x4140();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a23_0x5f031b(0x115),'command':'list','description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a23_0x5f031b(0x108),'flags':[{'name':'name','type':a23_0x5f031b(0x117),'description':a23_0x5f031b(0x107)},{...CODE_FLAG,'required':![],'description':a23_0x5f031b(0x114)}],async 'execute'(_0x4b6131){const _0x43aff6=a23_0x5f031b,_0x1de194=_0x4b6131['str'](_0x43aff6(0x11f)),_0x5b37c2=_0x4b6131[_0x43aff6(0x11a)](_0x43aff6(0x113)),_0x5e6d84=await listDatasets(_0x4b6131[_0x43aff6(0x119)],{..._0x1de194&&{'name':_0x1de194},..._0x5b37c2&&{'code':_0x5b37c2}});return{'ok':!![],'data':{'total':_0x5e6d84[_0x43aff6(0x10c)],'datasets':_0x5e6d84[_0x43aff6(0x10a)](_0x128280=>{const _0x564d85=_0x43aff6,_0x1ae00f=_0x128280[_0x564d85(0x106)]??{};return{'id':_0x128280['id'],'code':_0x128280[_0x564d85(0x113)],'name':_0x128280[_0x564d85(0x11f)],'source':_0x128280[_0x564d85(0x10d)],'description':_0x128280['description'],'table':_0x1ae00f['tableName'],'datasetKey':_0x1ae00f[_0x564d85(0x10f)],'pk':_0x1ae00f[_0x564d85(0x121)],'fields':_0x1ae00f[_0x564d85(0x109)]?_0x1ae00f['allFields']['split'](',')[_0x564d85(0x10a)](_0xb1fac1=>_0xb1fac1[_0x564d85(0x116)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a24_0x3379e4=a24_0x7350;(function(_0x238480,_0x2dc391){const _0x21cb41=a24_0x7350,_0x27325c=_0x238480();while(!![]){try{const _0xb48c72=-parseInt(_0x21cb41(0xdc))/0x1+parseInt(_0x21cb41(0xd7))/0x2*(parseInt(_0x21cb41(0xd1))/0x3)+-parseInt(_0x21cb41(0xce))/0x4*(-parseInt(_0x21cb41(0xd8))/0x5)+-parseInt(_0x21cb41(0xde))/0x6*(-parseInt(_0x21cb41(0xcc))/0x7)+parseInt(_0x21cb41(0xd2))/0x8+-parseInt(_0x21cb41(0xdd))/0x9+parseInt(_0x21cb41(0xcf))/0xa*(-parseInt(_0x21cb41(0xda))/0xb);if(_0xb48c72===_0x2dc391)break;else _0x27325c['push'](_0x27325c['shift']());}catch(_0x382c97){_0x27325c['push'](_0x27325c['shift']());}}}(a24_0x1074,0xdd80f));function a24_0x1074(){const _0x2b164b=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2464504XfOagb','appCode','118484Yhbong','220fNznXR','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','3ipljvU','6666176qbHBHV','str','dataset','trim','string','2688892GTrceo','205LxjcZo','read','903870GLyKPc','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','1194755QUJeCj','1678941ikfhOI','12IpCRdq','sdk-doc'];a24_0x1074=function(){return _0x2b164b;};return a24_0x1074();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a24_0x7350(_0x3fbdfa,_0x75ea96){_0x3fbdfa=_0x3fbdfa-0xcb;const _0x107447=a24_0x1074();let _0x735070=_0x107447[_0x3fbdfa];return _0x735070;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x3379e4(0xdb);export function formatDatasetSdkMarkdown(_0x4d63b8){const _0x5e5a79=a24_0x3379e4,_0x8d9dc3=typeof _0x4d63b8===_0x5e5a79(0xd6)?_0x4d63b8[_0x5e5a79(0xd5)]():'';return _0x8d9dc3||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x3379e4(0xd4),'command':a24_0x3379e4(0xdf),'description':a24_0x3379e4(0xd0),'risk':a24_0x3379e4(0xd9),'flags':[{...CODE_FLAG,'description':a24_0x3379e4(0xcb)}],async 'execute'(_0x3dd844){const _0x4370fb=a24_0x3379e4,_0x40c443=_0x3dd844[_0x4370fb(0xd3)]('code'),_0x56167c=await getDatasetSdkUsageDoc(_0x40c443,_0x3dd844['appCode']);return{'ok':!![],'data':{'code':_0x40c443,'appCode':_0x3dd844[_0x4370fb(0xcd)],'markdown':formatDatasetSdkMarkdown(_0x56167c)}};}};
1
+ function a24_0x1100(){const _0x67cd83=['381412MvrEMQ','192720OgJnck','read','674807SfmETy','375336CFCmdi','12CxHeGt','535045mGbTcI','trim','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','code','appCode','str','1803svDWMr','2015480jazqib','1172nVQjBa','32DGNibM','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a24_0x1100=function(){return _0x67cd83;};return a24_0x1100();}const a24_0x2697ea=a24_0x131e;(function(_0x5e6cca,_0x8e0a7e){const _0xfa377b=a24_0x131e,_0x138c8a=_0x5e6cca();while(!![]){try{const _0x4b156e=parseInt(_0xfa377b(0x13a))/0x1+-parseInt(_0xfa377b(0x139))/0x2+-parseInt(_0xfa377b(0x134))/0x3*(parseInt(_0xfa377b(0x136))/0x4)+parseInt(_0xfa377b(0x12e))/0x5+-parseInt(_0xfa377b(0x12d))/0x6*(parseInt(_0xfa377b(0x12b))/0x7)+-parseInt(_0xfa377b(0x137))/0x8*(-parseInt(_0xfa377b(0x12c))/0x9)+parseInt(_0xfa377b(0x135))/0xa;if(_0x4b156e===_0x8e0a7e)break;else _0x138c8a['push'](_0x138c8a['shift']());}catch(_0xfda178){_0x138c8a['push'](_0x138c8a['shift']());}}}(a24_0x1100,0x1a7cc));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使用文档';export function formatDatasetSdkMarkdown(_0x3b04d1){const _0x676401=a24_0x131e,_0x3dcd91=typeof _0x3b04d1==='string'?_0x3b04d1[_0x676401(0x12f)]():'';return _0x3dcd91||DEFAULT_MARKDOWN;}function a24_0x131e(_0x25b6e5,_0x1970f7){_0x25b6e5=_0x25b6e5-0x12a;const _0x110080=a24_0x1100();let _0x131eee=_0x110080[_0x25b6e5];return _0x131eee;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a24_0x2697ea(0x138),'risk':a24_0x2697ea(0x12a),'flags':[{...CODE_FLAG,'description':a24_0x2697ea(0x130)}],async 'execute'(_0x11d7a3){const _0x1ff80e=a24_0x2697ea,_0x52d3d0=_0x11d7a3[_0x1ff80e(0x133)](_0x1ff80e(0x131)),_0x15b762=await getDatasetSdkUsageDoc(_0x52d3d0,_0x11d7a3[_0x1ff80e(0x132)]);return{'ok':!![],'data':{'code':_0x52d3d0,'appCode':_0x11d7a3[_0x1ff80e(0x132)],'markdown':formatDatasetSdkMarkdown(_0x15b762)}};}};
@@ -1 +1 @@
1
- const a25_0x456455=a25_0x2b6b;(function(_0x5a16ed,_0x299cdf){const _0x35ccb9=a25_0x2b6b,_0x1ac69e=_0x5a16ed();while(!![]){try{const _0x145a0c=-parseInt(_0x35ccb9(0x1b0))/0x1*(parseInt(_0x35ccb9(0x182))/0x2)+-parseInt(_0x35ccb9(0x1c6))/0x3+parseInt(_0x35ccb9(0x192))/0x4+-parseInt(_0x35ccb9(0x1ba))/0x5*(parseInt(_0x35ccb9(0x1a2))/0x6)+-parseInt(_0x35ccb9(0x1c4))/0x7+parseInt(_0x35ccb9(0x1af))/0x8*(parseInt(_0x35ccb9(0x1a8))/0x9)+parseInt(_0x35ccb9(0x1b6))/0xa;if(_0x145a0c===_0x299cdf)break;else _0x1ac69e['push'](_0x1ac69e['shift']());}catch(_0x24941c){_0x1ac69e['push'](_0x1ac69e['shift']());}}}(a25_0x37ed,0xf29c0));import a25_0x40454b 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_0x37ed(){const _0x2bc74c=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','empty','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','1393522gGZTzF','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','(unnamed)','env','status','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','⚠\x20Empty','ClientAk','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','riskLevel','name','5272600qqTRoL','currentApp','serviceCode','message','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Session\x20check:\x20\x20\x20','commandCount','\x20doctor','padEnd','doctor','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','red','read','155124TdiAyT','✓\x20Loaded','source','Diagnose\x20CLI\x20configuration\x20and\x20environment','✗\x20Invalid','\x20commands)','9AJEKLX','\x20\x20API\x20Endpoints','pageSize','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default)','version','\x20\x20Auth','7929288ZTsUuy','2edQgWr','(none)','verbose','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20','(missing)','43636340jjsDxS','appCode','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','format','380GsbRFt','locale','log','\x20Imported\x20from:\x20','yellow','\x20\x20auth\x20(effective):\x20','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Service\x20Tree','(default:\x20','4912817MgPWWo','(set,\x20length=','4856880ZXGwcS','\x20\x20Config\x20JSON','(not\x20found)','path','\x20\x20Config\x20Files','registryPath','missing','\x20(accessKey)','\x20\x20Merged\x20Config','bold','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'];a25_0x37ed=function(){return _0x2bc74c;};return a25_0x37ed();}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(_0x3df7be){const _0xbdda56=a25_0x2b6b,_0x2db9eb=getCliVersion(),_0x2fa160=buildConfigFromFlags({});await initGlobalEnvironment(_0x2fa160),console[_0xbdda56(0x1bc)](),console[_0xbdda56(0x1bc)](a25_0x40454b['bold'](CLI_BIN_NAME+_0xbdda56(0x19c))),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x18a)]('─'[_0xbdda56(0x181)](0x32))),console[_0xbdda56(0x1bc)](_0xbdda56(0x1b8)+_0x2db9eb),console[_0xbdda56(0x1bc)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xbdda56(0x1ad)]),console['log'](_0xbdda56(0x19f)+process['platform']+'\x20'+process['arch']),console[_0xbdda56(0x1bc)](),console[_0xbdda56(0x1bc)](a25_0x40454b['bold'](_0xbdda56(0x1ca))),console['log'](a25_0x40454b['gray']('\x20\x20─'[_0xbdda56(0x181)](0x1e)));const _0x10698b=getGlobalConfigPath(),_0x59735c=getProjectConfigPath();console['log'](_0xbdda56(0x18d)+(_0x10698b||a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1c8)))),console[_0xbdda56(0x1bc)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59735c||a25_0x40454b[_0xbdda56(0x18a)]('(not\x20found)'))),console[_0xbdda56(0x1bc)](),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x1cf)](_0xbdda56(0x1c7))),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x18a)]('\x20\x20─'[_0xbdda56(0x181)](0x1e)));const _0x5adec8=(_0x3d6cb6,_0x2e86b4)=>{const _0x1f1ba5=_0xbdda56;if(!_0x2e86b4){console[_0x1f1ba5(0x1bc)]('\x20\x20'+_0x3d6cb6[_0x1f1ba5(0x19d)](0x11)+'\x20'+a25_0x40454b[_0x1f1ba5(0x18a)](_0x1f1ba5(0x1d7)));return;}const _0x45c5a1=inspectCliConfigJsonFile(_0x2e86b4);if(_0x45c5a1['status']==='ok')console[_0x1f1ba5(0x1bc)]('\x20\x20'+_0x3d6cb6[_0x1f1ba5(0x19d)](0x11)+'\x20'+a25_0x40454b['green'](_0x1f1ba5(0x199)));else{if(_0x45c5a1['status']===_0x1f1ba5(0x1d4))console[_0x1f1ba5(0x1bc)]('\x20\x20'+_0x3d6cb6[_0x1f1ba5(0x19d)](0x11)+'\x20'+a25_0x40454b[_0x1f1ba5(0x1be)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x45c5a1[_0x1f1ba5(0x188)]===_0x1f1ba5(0x1cc)?console[_0x1f1ba5(0x1bc)]('\x20\x20'+_0x3d6cb6[_0x1f1ba5(0x19d)](0x11)+'\x20'+a25_0x40454b[_0x1f1ba5(0x18a)](_0x1f1ba5(0x1b5))):(console[_0x1f1ba5(0x1bc)]('\x20\x20'+_0x3d6cb6[_0x1f1ba5(0x19d)](0x11)+'\x20'+a25_0x40454b[_0x1f1ba5(0x1a0)](_0x1f1ba5(0x1c1))),console[_0x1f1ba5(0x1bc)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a25_0x40454b[_0x1f1ba5(0x1a0)](_0x45c5a1['message'])));}};_0x5adec8('Global',_0x10698b),_0x5adec8('Project',_0x59735c),console[_0xbdda56(0x1bc)](),console['log'](a25_0x40454b['bold'](_0xbdda56(0x1ce))),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1b4)[_0xbdda56(0x181)](0x1e))),console[_0xbdda56(0x1bc)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2fa160[_0xbdda56(0x1b7)]||a25_0x40454b[_0xbdda56(0x1a0)](_0xbdda56(0x185)))),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d8)+_0x2fa160[_0xbdda56(0x187)]);const _0x2eb837=isLegacyCompatConfigKey(_0xbdda56(0x1bb))?a25_0x40454b[_0xbdda56(0x18a)](_0x2fa160['locale']+'\x20(legacy/compat\x20only)'):_0x2fa160[_0xbdda56(0x1bb)];console[_0xbdda56(0x1bc)](_0xbdda56(0x189)+_0x2eb837),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d3)+(_0x2fa160['defaultApp']||a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1b1)))),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d2)+(_0x2fa160[_0xbdda56(0x193)]||a25_0x40454b[_0xbdda56(0x18a)]('(none)'))),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d5)+(_0x2fa160[_0xbdda56(0x1b9)]||a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1c3)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xbdda56(0x1bc)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2fa160[_0xbdda56(0x1aa)]??a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1ac)))),console[_0xbdda56(0x1bc)](_0xbdda56(0x197)+_0x2fa160[_0xbdda56(0x190)]),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d6)+_0x2fa160[_0xbdda56(0x1b2)]),console[_0xbdda56(0x1bc)](_0xbdda56(0x1bf)+AUTH_MODE[_0xbdda56(0x18c)]),console[_0xbdda56(0x1bc)](_0xbdda56(0x1d0)+(_0x2fa160['accessKey']?a25_0x40454b[_0xbdda56(0x196)](_0xbdda56(0x1c5)+_0x2fa160['accessKey'][_0xbdda56(0x18f)]+')'):a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1b1)))),console[_0xbdda56(0x1bc)](),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x1cf)](_0xbdda56(0x1a9))),console[_0xbdda56(0x1bc)](a25_0x40454b['gray'](_0xbdda56(0x1b4)[_0xbdda56(0x181)](0x1e))),console[_0xbdda56(0x1bc)](_0xbdda56(0x183)+getApiDomain()),console[_0xbdda56(0x1bc)](_0xbdda56(0x1ab)+getUserDomain()),console[_0xbdda56(0x1bc)](_0xbdda56(0x1c0)+getRuntimeDomain()),console[_0xbdda56(0x1bc)](),console[_0xbdda56(0x1bc)](a25_0x40454b['bold'](_0xbdda56(0x1c2))),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1b4)[_0xbdda56(0x181)](0x1e)));const _0x41d8b3=inspectServiceRegistry();console[_0xbdda56(0x1bc)](_0xbdda56(0x1b3)+_0x41d8b3[_0xbdda56(0x1cb)]),console[_0xbdda56(0x1bc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x41d8b3)),console['log'](_0xbdda56(0x184)+_0x41d8b3['serviceCount']),console[_0xbdda56(0x1bc)](_0xbdda56(0x198)+_0x41d8b3[_0xbdda56(0x19b)]);for(const _0x14c5e7 of _0x41d8b3['services']){console[_0xbdda56(0x1bc)]('\x20\x20'+(_0x14c5e7[_0xbdda56(0x194)]+':')[_0xbdda56(0x19d)](0x11)+'\x20'+(_0x14c5e7[_0xbdda56(0x191)]||a25_0x40454b['gray'](_0xbdda56(0x186)))+'\x20('+_0x14c5e7[_0xbdda56(0x19b)]+_0xbdda56(0x1a7)),console[_0xbdda56(0x1bc)]('\x20\x20'+''[_0xbdda56(0x19d)](0x11)+_0xbdda56(0x1bd)+_0x14c5e7[_0xbdda56(0x1a4)][_0xbdda56(0x1c9)]);}return console['log'](),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x1cf)](_0xbdda56(0x1ae))),console[_0xbdda56(0x1bc)](a25_0x40454b[_0xbdda56(0x18a)](_0xbdda56(0x1b4)[_0xbdda56(0x181)](0x1e))),console[_0xbdda56(0x1bc)](_0xbdda56(0x18e)+a25_0x40454b[_0xbdda56(0x196)](AUTH_MODE['ClientAk']+_0xbdda56(0x1cd))),console[_0xbdda56(0x1bc)](_0xbdda56(0x19a)+a25_0x40454b['gray'](_0xbdda56(0x1d1))),console[_0xbdda56(0x1bc)](),{'ok':!![]};}function a25_0x2b6b(_0x46c1ad,_0x2873aa){_0x46c1ad=_0x46c1ad-0x181;const _0x37ed08=a25_0x37ed();let _0x2b6b5c=_0x37ed08[_0x46c1ad];return _0x2b6b5c;}function formatServiceRegistryStatus(_0x5ab9b1){const _0x1632e5=a25_0x2b6b;if(_0x5ab9b1['status']==='ok')return a25_0x40454b[_0x1632e5(0x196)](_0x1632e5(0x1a3));if(_0x5ab9b1[_0x1632e5(0x188)]==='missing')return a25_0x40454b[_0x1632e5(0x18a)]('(not\x20found)');if(_0x5ab9b1['status']===_0x1632e5(0x1d4))return a25_0x40454b[_0x1632e5(0x1be)](_0x1632e5(0x18b));return a25_0x40454b['red'](_0x1632e5(0x1a6)+(_0x5ab9b1[_0x1632e5(0x195)]?':\x20'+_0x5ab9b1[_0x1632e5(0x195)]:''));}export const doctorDefinition={'service':a25_0x456455(0x19e),'command':'check','description':a25_0x456455(0x1a5),'risk':a25_0x456455(0x1a1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a25_0xb6b899=a25_0x5b20;(function(_0x12b3c4,_0x2a4cda){const _0xa598b9=a25_0x5b20,_0x56b399=_0x12b3c4();while(!![]){try{const _0x5d71e2=-parseInt(_0xa598b9(0x220))/0x1+parseInt(_0xa598b9(0x221))/0x2*(-parseInt(_0xa598b9(0x203))/0x3)+-parseInt(_0xa598b9(0x22e))/0x4*(-parseInt(_0xa598b9(0x23e))/0x5)+parseInt(_0xa598b9(0x23d))/0x6*(-parseInt(_0xa598b9(0x214))/0x7)+-parseInt(_0xa598b9(0x234))/0x8+parseInt(_0xa598b9(0x21a))/0x9+parseInt(_0xa598b9(0x231))/0xa;if(_0x5d71e2===_0x2a4cda)break;else _0x56b399['push'](_0x56b399['shift']());}catch(_0x20c99f){_0x56b399['push'](_0x56b399['shift']());}}}(a25_0x127e,0x1df2a));import a25_0x492383 from'chalk';function a25_0x127e(){const _0x259964=['30DzTloz','981920ENkSmj','(unnamed)','name','status','✗\x20Invalid','\x20\x20─','Project','(not\x20found)','\x20\x20Service\x20Tree','appCode','✓\x20Loaded','\x20(accessKey)','empty','length','gray','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(none)','format','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','Diagnose\x20CLI\x20configuration\x20and\x20environment','599139NzgbVO','verbose','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','Global','commandCount','check','\x20(legacy/compat\x20only)','accessKey','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','serviceCode','green','log','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','331590aHwaTg','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','source','1586943gRInLY','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','yellow','(default)','(default:\x20','235814neCuem','2yJsoBd','\x20\x20Config\x20JSON','platform','ClientAk','missing','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20doctor','version','\x20\x20auth\x20(effective):\x20','(not\x20set)','padEnd','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4DySFsE','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','4913190GUmAAk','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','551896JkJAOx','\x20commands)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','message','defaultApp','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold'];a25_0x127e=function(){return _0x259964;};return a25_0x127e();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';function a25_0x5b20(_0x3cc244,_0x12b2fc){_0x3cc244=_0x3cc244-0x1f0;const _0x127e4f=a25_0x127e();let _0x5b205f=_0x127e4f[_0x3cc244];return _0x5b205f;}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(_0x35dd23){const _0x29af54=a25_0x5b20,_0x39a6ad=getCliVersion(),_0x492bdc=buildConfigFromFlags({});await initGlobalEnvironment(_0x492bdc),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](CLI_BIN_NAME+_0x29af54(0x228))),console[_0x29af54(0x211)](a25_0x492383['gray']('─'[_0x29af54(0x201)](0x32))),console['log'](_0x29af54(0x21c)+_0x39a6ad),console[_0x29af54(0x211)](_0x29af54(0x236)+process[_0x29af54(0x229)]),console['log'](_0x29af54(0x20d)+process[_0x29af54(0x223)]+'\x20'+process['arch']),console[_0x29af54(0x211)](),console['log'](a25_0x492383[_0x29af54(0x23c)]('\x20\x20Config\x20Files')),console['log'](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x11a695=getGlobalConfigPath(),_0x4272b8=getProjectConfigPath();console['log'](_0x29af54(0x205)+(_0x11a695||a25_0x492383[_0x29af54(0x1f9)]('(not\x20found)'))),console[_0x29af54(0x211)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4272b8||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f2)))),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x222))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x4aa519=(_0x587227,_0x27456d)=>{const _0x14452b=_0x29af54;if(!_0x27456d){console[_0x14452b(0x211)]('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x1f9)]('(no\x20file)'));return;}const _0x1e4b24=inspectCliConfigJsonFile(_0x27456d);if(_0x1e4b24['status']==='ok')console[_0x14452b(0x211)]('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x210)]('✓\x20Valid\x20JSON'));else{if(_0x1e4b24[_0x14452b(0x241)]===_0x14452b(0x1f7))console[_0x14452b(0x211)]('\x20\x20'+_0x587227[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21d)](_0x14452b(0x233)));else _0x1e4b24[_0x14452b(0x241)]==='missing'?console['log']('\x20\x20'+_0x587227[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x1f9)]('(missing)')):(console['log']('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21b)]('✗\x20Invalid\x20JSON')),console[_0x14452b(0x211)]('\x20\x20'+''[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21b)](_0x1e4b24[_0x14452b(0x239)])));}};_0x4aa519(_0x29af54(0x207),_0x11a695),_0x4aa519(_0x29af54(0x1f1),_0x4272b8),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x206))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f0)[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)](_0x29af54(0x217)+(_0x492bdc[_0x29af54(0x1f4)]||a25_0x492383[_0x29af54(0x21b)](_0x29af54(0x22b)))),console[_0x29af54(0x211)](_0x29af54(0x200)+_0x492bdc['env']);const _0x66caf=isLegacyCompatConfigKey('locale')?a25_0x492383[_0x29af54(0x1f9)](_0x492bdc['locale']+_0x29af54(0x20a)):_0x492bdc['locale'];console[_0x29af54(0x211)](_0x29af54(0x22d)+_0x66caf),console[_0x29af54(0x211)](_0x29af54(0x215)+(_0x492bdc[_0x29af54(0x23a)]||a25_0x492383[_0x29af54(0x1f9)]('(none)'))),console['log'](_0x29af54(0x212)+(_0x492bdc[_0x29af54(0x232)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1fc)))),console[_0x29af54(0x211)](_0x29af54(0x20c)+(_0x492bdc[_0x29af54(0x1fd)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x21f)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x29af54(0x211)](_0x29af54(0x1fe)+(_0x492bdc['pageSize']??a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x21e)))),console[_0x29af54(0x211)](_0x29af54(0x1fb)+_0x492bdc['riskLevel']),console[_0x29af54(0x211)](_0x29af54(0x22f)+_0x492bdc[_0x29af54(0x204)]),console[_0x29af54(0x211)](_0x29af54(0x22a)+AUTH_MODE[_0x29af54(0x224)]),console[_0x29af54(0x211)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x492bdc['accessKey']?a25_0x492383[_0x29af54(0x210)]('(set,\x20length='+_0x492bdc[_0x29af54(0x20b)][_0x29af54(0x1f8)]+')'):a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1fc)))),console[_0x29af54(0x211)](),console['log'](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x227))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f0)[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x29af54(0x1fa)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x1f3))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x3b4787=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b4787[_0x29af54(0x20e)]),console['log'](_0x29af54(0x237)+formatServiceRegistryStatus(_0x3b4787)),console['log'](_0x29af54(0x23b)+_0x3b4787['serviceCount']),console[_0x29af54(0x211)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b4787['commandCount']);for(const _0x33d6d5 of _0x3b4787['services']){console[_0x29af54(0x211)]('\x20\x20'+(_0x33d6d5[_0x29af54(0x20f)]+':')[_0x29af54(0x22c)](0x11)+'\x20'+(_0x33d6d5[_0x29af54(0x240)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x23f)))+'\x20('+_0x33d6d5[_0x29af54(0x208)]+_0x29af54(0x235)),console[_0x29af54(0x211)]('\x20\x20'+''[_0x29af54(0x22c)](0x11)+_0x29af54(0x218)+_0x33d6d5[_0x29af54(0x219)][_0x29af54(0x238)]);}return console['log'](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x213))),console[_0x29af54(0x211)](a25_0x492383['gray']('\x20\x20─'[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)](_0x29af54(0x226)+a25_0x492383[_0x29af54(0x210)](AUTH_MODE[_0x29af54(0x224)]+_0x29af54(0x1f6))),console[_0x29af54(0x211)](_0x29af54(0x230)+a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1ff))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x26d13d){const _0x5d79ed=a25_0x5b20;if(_0x26d13d[_0x5d79ed(0x241)]==='ok')return a25_0x492383[_0x5d79ed(0x210)](_0x5d79ed(0x1f5));if(_0x26d13d[_0x5d79ed(0x241)]===_0x5d79ed(0x225))return a25_0x492383['gray'](_0x5d79ed(0x1f2));if(_0x26d13d[_0x5d79ed(0x241)]===_0x5d79ed(0x1f7))return a25_0x492383[_0x5d79ed(0x21d)](_0x5d79ed(0x216));return a25_0x492383[_0x5d79ed(0x21b)](_0x5d79ed(0x242)+(_0x26d13d[_0x5d79ed(0x239)]?':\x20'+_0x26d13d[_0x5d79ed(0x239)]:''));}export const doctorDefinition={'service':'doctor','command':a25_0xb6b899(0x209),'description':a25_0xb6b899(0x202),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x43a296=a26_0x4c82;(function(_0x31641f,_0x5c60b3){const _0x2247dd=a26_0x4c82,_0x2a9024=_0x31641f();while(!![]){try{const _0x160613=parseInt(_0x2247dd(0x154))/0x1*(-parseInt(_0x2247dd(0x146))/0x2)+-parseInt(_0x2247dd(0x14f))/0x3+parseInt(_0x2247dd(0x16e))/0x4*(parseInt(_0x2247dd(0x16f))/0x5)+parseInt(_0x2247dd(0x161))/0x6*(parseInt(_0x2247dd(0x16c))/0x7)+parseInt(_0x2247dd(0x160))/0x8+-parseInt(_0x2247dd(0x13d))/0x9*(parseInt(_0x2247dd(0x15a))/0xa)+parseInt(_0x2247dd(0x176))/0xb;if(_0x160613===_0x5c60b3)break;else _0x2a9024['push'](_0x2a9024['shift']());}catch(_0x315bb3){_0x2a9024['push'](_0x2a9024['shift']());}}}(a26_0xf2e0,0x34571));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a26_0x4c82(_0x12a733,_0x166448){_0x12a733=_0x12a733-0x135;const _0xf2e014=a26_0xf2e0();let _0x4c824e=_0xf2e014[_0x12a733];return _0x4c824e;}export const initCreateFlagDefs=[{'name':'appcode','type':'string','description':a26_0x43a296(0x17a)},{'name':'env','type':a26_0x43a296(0x151),'description':a26_0x43a296(0x172)+DEFAULT_CONFIG_VALUES['env']+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x43a296(0x167),'type':a26_0x43a296(0x173),'description':a26_0x43a296(0x155)+PRODUCT_CONFIG[a26_0x43a296(0x157)]+a26_0x43a296(0x140),'default':![]},{'name':a26_0x43a296(0x149),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a26_0x43a296(0x179),'type':a26_0x43a296(0x151),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a26_0x43a296(0x177),'type':a26_0x43a296(0x151),'description':a26_0x43a296(0x14b)},{'name':a26_0x43a296(0x15c),'type':a26_0x43a296(0x151),'description':a26_0x43a296(0x163),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a26_0x43a296(0x155)+PRODUCT_CONFIG[a26_0x43a296(0x157)]+a26_0x43a296(0x140),'default':![]},{'name':a26_0x43a296(0x149),'type':a26_0x43a296(0x173),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x4c006b){const _0xb001d4=a26_0x43a296,_0x129c36=isNonInteractiveMode(_0x4c006b),_0x5642d8=_0x4c006b['global']?_0xb001d4(0x167):_0xb001d4(0x174),_0x523ff0=resolveWriteConfigPath(_0x5642d8);try{_0x129c36?await runNonInteractive(_0x4c006b,_0x523ff0):await runInteractive(_0x4c006b,_0x523ff0);}catch(_0xf8da70){if(_0xf8da70 instanceof AbortPrompt)throw CliErrors[_0xb001d4(0x139)]();throw _0xf8da70;}}export async function runInitImport(_0x47dcab){const _0x53927f=a26_0x43a296,_0x241425=_0x47dcab[_0x53927f(0x167)]?'global':_0x53927f(0x174),_0x230883=resolveWriteConfigPath(_0x241425);await runFromImport(_0x47dcab,_0x230883);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x14f806,_0x208f5d){const _0x35bfce=a26_0x43a296,_0x434990=resolveFilePath(_0x14f806[_0x35bfce(0x179)]);if(!existsSync(_0x434990))throw CliErrors[_0x35bfce(0x144)](_0x35bfce(0x14c)+_0x434990);const _0x13919b=readSourceFile(_0x434990),_0x3cee63=convertToRuntimeConfig(_0x13919b);_0x14f806['appcode']&&(_0x3cee63[_0x35bfce(0x177)]=String(_0x14f806['appcode']));_0x14f806[_0x35bfce(0x15c)]&&(_0x3cee63[_0x35bfce(0x15c)]=resolveInitEnv(_0x14f806));if(!_0x3cee63[_0x35bfce(0x177)])throw CliErrors['validation'](_0x35bfce(0x156),'Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeInitConfig(_0x208f5d,_0x3cee63,_0x14f806),console[_0x35bfce(0x137)](_0x35bfce(0x145)+_0x434990),console[_0x35bfce(0x137)]('\x20\x20config:\x20\x20'+_0x208f5d),console[_0x35bfce(0x137)](_0x35bfce(0x16b)+_0x3cee63[_0x35bfce(0x177)]);if(_0x3cee63[_0x35bfce(0x178)])console['log'](_0x35bfce(0x158)+_0x3cee63[_0x35bfce(0x178)]);}function convertToRuntimeConfig(_0x45d78a){const _0x114c06=a26_0x43a296;if(_0x45d78a['apps']&&typeof _0x45d78a[_0x114c06(0x150)]===_0x114c06(0x152))throw CliErrors['validation'](_0x114c06(0x170),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x1c8365={};for(const _0x192c71 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x45d78a[_0x192c71]!==undefined&&(_0x1c8365[_0x192c71]=_0x45d78a[_0x192c71]);}return!_0x1c8365[_0x114c06(0x153)]&&(_0x1c8365[_0x114c06(0x153)]=DEFAULT_CONFIG_VALUES[_0x114c06(0x153)]),_0x1c8365;}function a26_0xf2e0(){const _0xbab4e8=['utf8','log','name','cancelled','flagMissing','close','toLowerCase','433206DBwMiu','join','stdin',')\x20instead\x20of\x20project','removeListener','[y/N]','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','validation','Imported\x20from\x20','213448vPiQfG','stdout','Aborted.','yes','SIGINT','Override\x20imported\x20default\x20appcode','Source\x20file\x20not\x20found:\x20','AbortPrompt','Initialized\x20','672771zIFrTB','apps','string','object','riskLevel','4weziXY','Write\x20to\x20global\x20(~/','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','newConfigFileName','\x20\x20default:\x20','app','60GPUZLz','trim','env','\x0aInitialized\x20','[Y/n]','once','3144104zDPMiA','1875990PFZtqd','\x20already\x20exists.\x20Overwrite?','Override\x20imported\x20default\x20env','App\x20code','includes','\x22.\x20Allowed:\x20','global','User\x20aborted\x20prompt','\x20init\x20—\x20Create\x20','App\x20code\x20cannot\x20be\x20empty.','\x20\x20appcode:\x20','7JjEOhd','):\x20','4JBDzZQ','206270rhTUhv','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','question','Target\x20environment\x20(default\x20','boolean','project','message','4481510qkGlbl','appcode','defaultApp','file','App\x20code\x20for\x20the\x20project','\x20\x20env:\x20\x20\x20\x20\x20'];a26_0xf2e0=function(){return _0xbab4e8;};return a26_0xf2e0();}async function runNonInteractive(_0x311a5c,_0x149002){const _0x36821c=a26_0x43a296,_0x430f87=_0x311a5c[_0x36821c(0x177)];if(!_0x430f87)throw CliErrors[_0x36821c(0x13a)]('appcode','Usage:\x20'+CLI_BIN_NAME+_0x36821c(0x143));const _0x3233df=resolveInitEnv(_0x311a5c);await writeInitConfig(_0x149002,{'appcode':_0x430f87,'env':_0x3233df},_0x311a5c),console['log'](_0x36821c(0x14e)+_0x149002),console[_0x36821c(0x137)]('\x20\x20appcode:\x20'+_0x430f87),console[_0x36821c(0x137)](_0x36821c(0x135)+_0x3233df);}async function runInteractive(_0x2bb3dd,_0x40a5e1){const _0x4dfc8b=a26_0x43a296,_0x2e6a4f=loadExisting(_0x40a5e1),_0x5c9fc3=typeof _0x2e6a4f?.['appcode']===_0x4dfc8b(0x151)?_0x2e6a4f['appcode']:'',_0x388acf=resolveInitEnv(_0x2bb3dd);console[_0x4dfc8b(0x137)](CLI_BIN_NAME+_0x4dfc8b(0x169)+PRODUCT_CONFIG[_0x4dfc8b(0x157)]+'\x0a');if(existsSync(_0x40a5e1)&&!_0x2bb3dd[_0x4dfc8b(0x149)]){const _0x5d91e2=await promptYesNo('File\x20'+_0x40a5e1+_0x4dfc8b(0x162),![]);if(!_0x5d91e2){console[_0x4dfc8b(0x137)](_0x4dfc8b(0x148));return;}}const _0x468571=typeof _0x2bb3dd['appcode']===_0x4dfc8b(0x151)?_0x2bb3dd[_0x4dfc8b(0x177)][_0x4dfc8b(0x15b)]():'';let _0x45f90a=_0x468571;!_0x45f90a&&(_0x45f90a=await promptInput(_0x4dfc8b(0x164),_0x5c9fc3));if(!_0x45f90a['trim']())throw CliErrors[_0x4dfc8b(0x144)](_0x4dfc8b(0x16a));await writeInitConfig(_0x40a5e1,{'appcode':_0x45f90a[_0x4dfc8b(0x15b)](),'env':_0x388acf},_0x2bb3dd),console[_0x4dfc8b(0x137)](_0x4dfc8b(0x15d)+_0x40a5e1),console[_0x4dfc8b(0x137)](_0x4dfc8b(0x16b)+_0x45f90a[_0x4dfc8b(0x15b)]()),console['log'](_0x4dfc8b(0x135)+_0x388acf);}async function writeInitConfig(_0x402ffa,_0x2f1a43,_0x12eea7){const _0x32bca9=a26_0x43a296;let _0x113822={};existsSync(_0x402ffa)&&!_0x12eea7[_0x32bca9(0x149)]&&(_0x113822=readConfigFile(_0x402ffa));for(const [_0x7b43ba,_0x4eb578]of Object['entries'](_0x2f1a43)){_0x4eb578!==undefined&&(_0x113822[_0x7b43ba]=_0x4eb578);}if(_0x113822[_0x32bca9(0x159)])delete _0x113822[_0x32bca9(0x159)];writeConfigFile(_0x402ffa,_0x113822);}class AbortPrompt extends Error{constructor(){const _0x4ebed7=a26_0x43a296;super(_0x4ebed7(0x168)),this[_0x4ebed7(0x138)]=_0x4ebed7(0x14d);}}function createSafeRl(){const _0xd17b5=a26_0x43a296,_0xbaa729=createInterface({'input':process[_0xd17b5(0x13f)],'output':process[_0xd17b5(0x147)]});let _0x543f60;const _0x12513f=new Promise((_0x480600,_0x4e2a9d)=>{const _0x22ce1e=_0xd17b5;_0x543f60=()=>{const _0x1afcb2=a26_0x4c82;_0x543f60&&(_0xbaa729[_0x1afcb2(0x141)](_0x1afcb2(0x14a),_0x543f60),_0x543f60=undefined);try{_0xbaa729[_0x1afcb2(0x13b)]();}catch{}_0x4e2a9d(new AbortPrompt());},_0xbaa729[_0x22ce1e(0x15f)](_0x22ce1e(0x14a),_0x543f60);}),_0x492ab0=()=>{const _0x37d480=_0xd17b5;_0x543f60&&(_0xbaa729[_0x37d480(0x141)](_0x37d480(0x14a),_0x543f60),_0x543f60=undefined);try{_0xbaa729[_0x37d480(0x13b)]();}catch{}};return{'rl':_0xbaa729,'abortPromise':_0x12513f,'disposeSuccess':_0x492ab0};}async function promptInput(_0x4aa81a,_0x273c6a){const {rl:_0x4957e2,abortPromise:_0x4145aa,disposeSuccess:_0x3cb49f}=createSafeRl(),_0xf38b7a=new Promise(_0x44964f=>{const _0x247ae5=a26_0x4c82,_0x4e304e=_0x273c6a?'\x20\x20'+_0x4aa81a+'\x20('+_0x273c6a+_0x247ae5(0x16d):'\x20\x20'+_0x4aa81a+':\x20';_0x4957e2[_0x247ae5(0x171)](_0x4e304e,_0x33bf5c=>{const _0x25e919=_0x247ae5;_0x3cb49f(),_0x44964f(_0x33bf5c[_0x25e919(0x15b)]()||_0x273c6a);});});return Promise['race']([_0xf38b7a,_0x4145aa]);}async function promptYesNo(_0xdb99df,_0x38efdf){const {rl:_0x2771f4,abortPromise:_0x5f0c9c,disposeSuccess:_0x542ff4}=createSafeRl(),_0x4be9fe=new Promise(_0x3001ba=>{const _0x459376=a26_0x4c82,_0x55cf89=_0x38efdf?_0x459376(0x15e):_0x459376(0x142);_0x2771f4[_0x459376(0x171)]('\x20\x20'+_0xdb99df+'\x20'+_0x55cf89+':\x20',_0x40067b=>{const _0x4e58bf=_0x459376;_0x542ff4();const _0x73ae4c=_0x40067b['trim']()[_0x4e58bf(0x13c)]();if(_0x73ae4c==='y'||_0x73ae4c==='yes')_0x3001ba(!![]);else{if(_0x73ae4c==='n'||_0x73ae4c==='no')_0x3001ba(![]);else _0x3001ba(_0x38efdf);}});});return Promise['race']([_0x4be9fe,_0x5f0c9c]);}function loadExisting(_0x35fae4){if(!existsSync(_0x35fae4))return null;return readConfigFile(_0x35fae4);}function resolveFilePath(_0x519bbf){return isAbsolute(_0x519bbf)?_0x519bbf:resolve(process['cwd'](),_0x519bbf);}function readSourceFile(_0x1d33b4){const _0xbdce3d=a26_0x43a296;try{const _0x33cc38=readFileSync(_0x1d33b4,{'encoding':_0xbdce3d(0x136)});return JSON['parse'](_0x33cc38);}catch(_0x383c5a){throw CliErrors[_0xbdce3d(0x144)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x383c5a[_0xbdce3d(0x175)]);}}function resolveInitEnv(_0x3428a4){const _0x4886c2=a26_0x43a296,_0xf60bc2=_0x3428a4['env'];if(_0xf60bc2===undefined||_0xf60bc2==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x4886c2(0x165)](_0xf60bc2))throw CliErrors[_0x4886c2(0x144)]('Invalid\x20env\x20\x22'+_0xf60bc2+_0x4886c2(0x166)+RUNTIME_ENV_VALUES[_0x4886c2(0x13e)](',\x20'));return _0xf60bc2;}
1
+ const a26_0x434244=a26_0x250f;(function(_0x1fba93,_0x505999){const _0x28c72a=a26_0x250f,_0x409d5b=_0x1fba93();while(!![]){try{const _0x237f9d=parseInt(_0x28c72a(0x1ba))/0x1*(parseInt(_0x28c72a(0x1e5))/0x2)+parseInt(_0x28c72a(0x1c2))/0x3*(parseInt(_0x28c72a(0x1c9))/0x4)+parseInt(_0x28c72a(0x1ca))/0x5+parseInt(_0x28c72a(0x1c1))/0x6*(parseInt(_0x28c72a(0x1c4))/0x7)+-parseInt(_0x28c72a(0x1d0))/0x8*(parseInt(_0x28c72a(0x1cc))/0x9)+parseInt(_0x28c72a(0x1d9))/0xa+-parseInt(_0x28c72a(0x1cd))/0xb*(parseInt(_0x28c72a(0x1e4))/0xc);if(_0x237f9d===_0x505999)break;else _0x409d5b['push'](_0x409d5b['shift']());}catch(_0x3f3ef8){_0x409d5b['push'](_0x409d5b['shift']());}}}(a26_0x2cc0,0x2ec7c));function a26_0x250f(_0x4079cf,_0x56a429){_0x4079cf=_0x4079cf-0x1b7;const _0x2cc0b6=a26_0x2cc0();let _0x250f6e=_0x2cc0b6[_0x4079cf];return _0x250f6e;}import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x434244(0x1fc),'type':a26_0x434244(0x1bd),'description':a26_0x434244(0x1d8)},{'name':a26_0x434244(0x1da),'type':'string','description':a26_0x434244(0x1cb)+DEFAULT_CONFIG_VALUES[a26_0x434244(0x1da)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x434244(0x1c6),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1f8)+PRODUCT_CONFIG[a26_0x434244(0x1bf)]+a26_0x434244(0x1d5),'default':![]},{'name':a26_0x434244(0x1e3),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1e8),'default':![]}];function a26_0x2cc0(){const _0x37d9e0=['\x20already\x20exists.\x20Overwrite?','File\x20','\x20init\x20—\x20Create\x20','join','cwd','boolean','Override\x20imported\x20default\x20appcode','message','yes','108lSHtWt','22yaZpMF','App\x20code\x20cannot\x20be\x20empty.','Initialized\x20','Skip\x20confirmation\x20when\x20overwriting','\x20\x20default:\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`.','Failed\x20to\x20parse\x20source\x20file:\x20','log','Usage:\x20','validation','Override\x20imported\x20default\x20env','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','question','Source\x20file\x20not\x20found:\x20','race','stdout','parse','includes','name','Write\x20to\x20global\x20(~/','Invalid\x20env\x20\x22','\x20\x20env:\x20\x20\x20\x20\x20','AbortPrompt','appcode','apiDir','file','\x20\x20config:\x20\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','riskLevel','29909omXIdG','cancelled','object','string','defaultApp','newConfigFileName','[y/N]','228qaEHWW','747339ghdGpV','once','11151tDIqMV','\x20\x20appcode:\x20','global','entries','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','4onNYsC','1092450GAzecx','Target\x20environment\x20(default\x20','308628BXhVYq','680471OcdvKR','Aborted.','close','56XPExGt','SIGINT','utf8','trim','apps',')\x20instead\x20of\x20project','[Y/n]','):\x20','App\x20code\x20for\x20the\x20project','1312690fPNgYl','env'];a26_0x2cc0=function(){return _0x37d9e0;};return a26_0x2cc0();}export const initImportFlagDefs=[{'name':a26_0x434244(0x1fe),'type':'string','description':a26_0x434244(0x1c8),'required':!![]},{'name':a26_0x434244(0x1fc),'type':a26_0x434244(0x1bd),'description':a26_0x434244(0x1e1)},{'name':a26_0x434244(0x1da),'type':'string','description':a26_0x434244(0x1ef),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x434244(0x1c6),'type':a26_0x434244(0x1e0),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+a26_0x434244(0x1d5),'default':![]},{'name':a26_0x434244(0x1e3),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1e8),'default':![]}];export async function runInit(_0x2529a9){const _0x1ba7bf=a26_0x434244,_0x3ea784=isNonInteractiveMode(_0x2529a9),_0x53ae2c=_0x2529a9[_0x1ba7bf(0x1c6)]?'global':'project',_0x3517b7=resolveWriteConfigPath(_0x53ae2c);try{_0x3ea784?await runNonInteractive(_0x2529a9,_0x3517b7):await runInteractive(_0x2529a9,_0x3517b7);}catch(_0x118b5f){if(_0x118b5f instanceof AbortPrompt)throw CliErrors[_0x1ba7bf(0x1bb)]();throw _0x118b5f;}}export async function runInitImport(_0x2acbe6){const _0x232a54=a26_0x434244,_0x342138=_0x2acbe6[_0x232a54(0x1c6)]?_0x232a54(0x1c6):'project',_0x3cec53=resolveWriteConfigPath(_0x342138);await runFromImport(_0x2acbe6,_0x3cec53);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x434244(0x1fd)]);async function runFromImport(_0xe6552c,_0x3bf93d){const _0x57968e=a26_0x434244,_0x299a8d=resolveFilePath(_0xe6552c[_0x57968e(0x1fe)]);if(!existsSync(_0x299a8d))throw CliErrors[_0x57968e(0x1ee)](_0x57968e(0x1f2)+_0x299a8d);const _0x309624=readSourceFile(_0x299a8d),_0x5d5bc1=convertToRuntimeConfig(_0x309624);_0xe6552c[_0x57968e(0x1fc)]&&(_0x5d5bc1[_0x57968e(0x1fc)]=String(_0xe6552c[_0x57968e(0x1fc)]));_0xe6552c[_0x57968e(0x1da)]&&(_0x5d5bc1[_0x57968e(0x1da)]=resolveInitEnv(_0xe6552c));if(!_0x5d5bc1[_0x57968e(0x1fc)])throw CliErrors['validation'](_0x57968e(0x1f0),_0x57968e(0x1ea));await writeInitConfig(_0x3bf93d,_0x5d5bc1,_0xe6552c),console[_0x57968e(0x1ec)]('Imported\x20from\x20'+_0x299a8d),console['log'](_0x57968e(0x1b7)+_0x3bf93d),console['log']('\x20\x20appcode:\x20'+_0x5d5bc1[_0x57968e(0x1fc)]);if(_0x5d5bc1[_0x57968e(0x1be)])console[_0x57968e(0x1ec)](_0x57968e(0x1e9)+_0x5d5bc1[_0x57968e(0x1be)]);}function convertToRuntimeConfig(_0x9fc52f){const _0x253ca5=a26_0x434244;if(_0x9fc52f[_0x253ca5(0x1d4)]&&typeof _0x9fc52f[_0x253ca5(0x1d4)]===_0x253ca5(0x1bc))throw CliErrors[_0x253ca5(0x1ee)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x253ca5(0x1b8));const _0x5abacc={};for(const _0x15d660 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x9fc52f[_0x15d660]!==undefined&&(_0x5abacc[_0x15d660]=_0x9fc52f[_0x15d660]);}return!_0x5abacc[_0x253ca5(0x1b9)]&&(_0x5abacc['riskLevel']=DEFAULT_CONFIG_VALUES[_0x253ca5(0x1b9)]),_0x5abacc;}async function runNonInteractive(_0x16ff86,_0x4b0243){const _0xcc27c6=a26_0x434244,_0x1e8e23=_0x16ff86[_0xcc27c6(0x1fc)];if(!_0x1e8e23)throw CliErrors['flagMissing'](_0xcc27c6(0x1fc),_0xcc27c6(0x1ed)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x10f132=resolveInitEnv(_0x16ff86);await writeInitConfig(_0x4b0243,{'appcode':_0x1e8e23,'env':_0x10f132},_0x16ff86),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1e7)+_0x4b0243),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1c5)+_0x1e8e23),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1fa)+_0x10f132);}async function runInteractive(_0x368827,_0x1e44af){const _0x5a13f6=a26_0x434244,_0x30a3ea=loadExisting(_0x1e44af),_0x592b96=typeof _0x30a3ea?.['appcode']==='string'?_0x30a3ea[_0x5a13f6(0x1fc)]:'',_0x36aa65=resolveInitEnv(_0x368827);console['log'](CLI_BIN_NAME+_0x5a13f6(0x1dd)+PRODUCT_CONFIG[_0x5a13f6(0x1bf)]+'\x0a');if(existsSync(_0x1e44af)&&!_0x368827[_0x5a13f6(0x1e3)]){const _0x1a016f=await promptYesNo(_0x5a13f6(0x1dc)+_0x1e44af+_0x5a13f6(0x1db),![]);if(!_0x1a016f){console[_0x5a13f6(0x1ec)](_0x5a13f6(0x1ce));return;}}const _0x4ecb7c=typeof _0x368827[_0x5a13f6(0x1fc)]===_0x5a13f6(0x1bd)?_0x368827[_0x5a13f6(0x1fc)][_0x5a13f6(0x1d3)]():'';let _0x3592dd=_0x4ecb7c;!_0x3592dd&&(_0x3592dd=await promptInput('App\x20code',_0x592b96));if(!_0x3592dd['trim']())throw CliErrors[_0x5a13f6(0x1ee)](_0x5a13f6(0x1e6));await writeInitConfig(_0x1e44af,{'appcode':_0x3592dd['trim'](),'env':_0x36aa65},_0x368827),console[_0x5a13f6(0x1ec)]('\x0aInitialized\x20'+_0x1e44af),console[_0x5a13f6(0x1ec)]('\x20\x20appcode:\x20'+_0x3592dd[_0x5a13f6(0x1d3)]()),console['log'](_0x5a13f6(0x1fa)+_0x36aa65);}async function writeInitConfig(_0x3c5c8d,_0x4e84e2,_0x54ee3e){const _0x4a1df0=a26_0x434244;let _0x1b3a7a={};existsSync(_0x3c5c8d)&&!_0x54ee3e[_0x4a1df0(0x1e3)]&&(_0x1b3a7a=readConfigFile(_0x3c5c8d));for(const [_0x43384c,_0x136064]of Object[_0x4a1df0(0x1c7)](_0x4e84e2)){_0x136064!==undefined&&(_0x1b3a7a[_0x43384c]=_0x136064);}if(_0x1b3a7a['app'])delete _0x1b3a7a['app'];writeConfigFile(_0x3c5c8d,_0x1b3a7a);}class AbortPrompt extends Error{constructor(){const _0x2c5026=a26_0x434244;super('User\x20aborted\x20prompt'),this[_0x2c5026(0x1f7)]=_0x2c5026(0x1fb);}}function createSafeRl(){const _0x37bb91=a26_0x434244,_0x25bb6c=createInterface({'input':process['stdin'],'output':process[_0x37bb91(0x1f4)]});let _0x27f7e4;const _0x4f7280=new Promise((_0x524362,_0x30b15c)=>{const _0x431ce5=_0x37bb91;_0x27f7e4=()=>{const _0x445488=a26_0x250f;_0x27f7e4&&(_0x25bb6c['removeListener']('SIGINT',_0x27f7e4),_0x27f7e4=undefined);try{_0x25bb6c[_0x445488(0x1cf)]();}catch{}_0x30b15c(new AbortPrompt());},_0x25bb6c[_0x431ce5(0x1c3)](_0x431ce5(0x1d1),_0x27f7e4);}),_0x14b2ae=()=>{const _0x7be3e9=_0x37bb91;_0x27f7e4&&(_0x25bb6c['removeListener'](_0x7be3e9(0x1d1),_0x27f7e4),_0x27f7e4=undefined);try{_0x25bb6c[_0x7be3e9(0x1cf)]();}catch{}};return{'rl':_0x25bb6c,'abortPromise':_0x4f7280,'disposeSuccess':_0x14b2ae};}async function promptInput(_0x4c7e33,_0x28a1d2){const _0x4f14b2=a26_0x434244,{rl:_0x202b23,abortPromise:_0x4a77f6,disposeSuccess:_0x2ca4c7}=createSafeRl(),_0x46ae7b=new Promise(_0x36b3bb=>{const _0x46e622=a26_0x250f,_0xe093c8=_0x28a1d2?'\x20\x20'+_0x4c7e33+'\x20('+_0x28a1d2+_0x46e622(0x1d7):'\x20\x20'+_0x4c7e33+':\x20';_0x202b23[_0x46e622(0x1f1)](_0xe093c8,_0x2d0bb6=>{const _0x591f45=_0x46e622;_0x2ca4c7(),_0x36b3bb(_0x2d0bb6[_0x591f45(0x1d3)]()||_0x28a1d2);});});return Promise[_0x4f14b2(0x1f3)]([_0x46ae7b,_0x4a77f6]);}async function promptYesNo(_0x3d51ac,_0x4dfb65){const _0x472f4e=a26_0x434244,{rl:_0x827326,abortPromise:_0xc1b246,disposeSuccess:_0x46fdf1}=createSafeRl(),_0x27e8d9=new Promise(_0xf7acab=>{const _0x574058=a26_0x250f,_0x4c3220=_0x4dfb65?_0x574058(0x1d6):_0x574058(0x1c0);_0x827326[_0x574058(0x1f1)]('\x20\x20'+_0x3d51ac+'\x20'+_0x4c3220+':\x20',_0x503822=>{const _0x44689a=_0x574058;_0x46fdf1();const _0x32cf4a=_0x503822[_0x44689a(0x1d3)]()['toLowerCase']();if(_0x32cf4a==='y'||_0x32cf4a===_0x44689a(0x1e3))_0xf7acab(!![]);else{if(_0x32cf4a==='n'||_0x32cf4a==='no')_0xf7acab(![]);else _0xf7acab(_0x4dfb65);}});});return Promise[_0x472f4e(0x1f3)]([_0x27e8d9,_0xc1b246]);}function loadExisting(_0x32c189){if(!existsSync(_0x32c189))return null;return readConfigFile(_0x32c189);}function resolveFilePath(_0x1baff1){const _0x28c38e=a26_0x434244;return isAbsolute(_0x1baff1)?_0x1baff1:resolve(process[_0x28c38e(0x1df)](),_0x1baff1);}function readSourceFile(_0x4be4a0){const _0x30a488=a26_0x434244;try{const _0xa98500=readFileSync(_0x4be4a0,{'encoding':_0x30a488(0x1d2)});return JSON[_0x30a488(0x1f5)](_0xa98500);}catch(_0x20db68){throw CliErrors[_0x30a488(0x1ee)](_0x30a488(0x1eb)+_0x20db68[_0x30a488(0x1e2)]);}}function resolveInitEnv(_0x1000a7){const _0x9f264a=a26_0x434244,_0x1cf177=_0x1000a7[_0x9f264a(0x1da)];if(_0x1cf177===undefined||_0x1cf177==='')return DEFAULT_CONFIG_VALUES[_0x9f264a(0x1da)];if(!RUNTIME_ENV_VALUES[_0x9f264a(0x1f6)](_0x1cf177))throw CliErrors[_0x9f264a(0x1ee)](_0x9f264a(0x1f9)+_0x1cf177+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x9f264a(0x1de)](',\x20'));return _0x1cf177;}