@lovrabet/lovrabet-cli 2.1.0-beta.2 → 2.1.0-beta.3

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 (85) 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/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- function a15_0x1934(_0x130d01,_0x59db1c){_0x130d01=_0x130d01-0x99;const _0x2944c9=a15_0x2944();let _0x1934eb=_0x2944c9[_0x130d01];return _0x1934eb;}(function(_0x25cf4f,_0x13be19){const _0x21672c=a15_0x1934,_0x301bdd=_0x25cf4f();while(!![]){try{const _0x265596=parseInt(_0x21672c(0x9e))/0x1*(parseInt(_0x21672c(0xa4))/0x2)+parseInt(_0x21672c(0xa5))/0x3+parseInt(_0x21672c(0xa3))/0x4*(parseInt(_0x21672c(0xa6))/0x5)+parseInt(_0x21672c(0xae))/0x6*(parseInt(_0x21672c(0xa7))/0x7)+parseInt(_0x21672c(0xab))/0x8*(parseInt(_0x21672c(0x9f))/0x9)+-parseInt(_0x21672c(0x99))/0xa+-parseInt(_0x21672c(0xac))/0xb*(parseInt(_0x21672c(0x9b))/0xc);if(_0x265596===_0x13be19)break;else _0x301bdd['push'](_0x301bdd['shift']());}catch(_0x225704){_0x301bdd['push'](_0x301bdd['shift']());}}}(a15_0x2944,0x4afda));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(_0x2f267a){const _0x3db2bc=a15_0x1934,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x4f8727}=_0x2f267a;if(explicitGlobal&&explicitProject)throw CliErrors['validation']('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x3db2bc(0x9c);if(explicitProject)return _0x3db2bc(0xad);switch(_0x4f8727){case _0x3db2bc(0x9a):return _0x3db2bc(0x9c);case _0x3db2bc(0xa9):return _0x2f267a[_0x3db2bc(0xa0)]??isInProject()?_0x3db2bc(0xad):_0x3db2bc(0x9c);case'project-or-global-explicit':if(!(_0x2f267a[_0x3db2bc(0xa0)]??isInProject()))throw CliErrors[_0x3db2bc(0x9d)](_0x3db2bc(0xa8)+PRODUCT_CONFIG[_0x3db2bc(0xa2)]+'\x20found).',_0x3db2bc(0xa1)+PRODUCT_CONFIG[_0x3db2bc(0xa2)]+_0x3db2bc(0xaa)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}}export function toScopeFlags(_0x5aaef5){const _0x359d3a=a15_0x1934;return{'global':_0x5aaef5===_0x359d3a(0x9c)};}function a15_0x2944(){const _0x17eb10=['Not\x20inside\x20a\x20project\x20(no\x20','project-default',',\x20or\x20run\x20`','780824qFHbeQ','25718uoyItX','project','2848722ePDUyo','5803610vsnxKY','global-default','5352dQfEEQ','global','validation','7594jjpbId','27HtnNtH','inProject','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','8hTsGMX','64gtiRpE','1282557CKeqyd','1230370pvrzNi','7VrEWOI'];a15_0x2944=function(){return _0x17eb10;};return a15_0x2944();}export function formatScopeLabel(_0x8807b4){const _0x537298=a15_0x1934;return _0x8807b4===_0x537298(0x9c)?'\x20(global)':'';}
1
+ (function(_0x14fa15,_0x35af70){const _0x1a70d6=a15_0x189b,_0x59f2cc=_0x14fa15();while(!![]){try{const _0x38f21a=-parseInt(_0x1a70d6(0x165))/0x1*(parseInt(_0x1a70d6(0x168))/0x2)+parseInt(_0x1a70d6(0x16c))/0x3+-parseInt(_0x1a70d6(0x15f))/0x4*(parseInt(_0x1a70d6(0x169))/0x5)+parseInt(_0x1a70d6(0x15e))/0x6+-parseInt(_0x1a70d6(0x166))/0x7+parseInt(_0x1a70d6(0x167))/0x8*(parseInt(_0x1a70d6(0x172))/0x9)+parseInt(_0x1a70d6(0x163))/0xa;if(_0x38f21a===_0x35af70)break;else _0x59f2cc['push'](_0x59f2cc['shift']());}catch(_0x25d941){_0x59f2cc['push'](_0x59f2cc['shift']());}}}(a15_0x14eb,0xb0b1e));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x189b(_0x208aee,_0xd271a7){_0x208aee=_0x208aee-0x15e;const _0x14ebd2=a15_0x14eb();let _0x189b3d=_0x14ebd2[_0x208aee];return _0x189b3d;}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';function a15_0x14eb(){const _0xa8e88=['198Helhem','5815VWAVBK','newConfigFileName','global','3944766EQvgVE','\x20init`\x20first.','project-or-global-explicit','inProject','project','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','344889CPLkpY','8623086ahhJwL','1464YRlJTw','validation','\x20(global)','project-default','2654950UAfNQP',',\x20or\x20run\x20`','9757eAYAbi','6852279TUdejq','16KGAszi'];a15_0x14eb=function(){return _0xa8e88;};return a15_0x14eb();}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(_0x13cf20){const _0x3fa127=a15_0x189b,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x25c034}=_0x13cf20;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3fa127(0x160)](_0x3fa127(0x171),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x3fa127(0x16b);if(explicitProject)return'project';switch(_0x25c034){case'global-default':return _0x3fa127(0x16b);case _0x3fa127(0x162):return _0x13cf20[_0x3fa127(0x16f)]??isInProject()?_0x3fa127(0x170):_0x3fa127(0x16b);case _0x3fa127(0x16e):if(!(_0x13cf20[_0x3fa127(0x16f)]??isInProject()))throw CliErrors[_0x3fa127(0x160)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x3fa127(0x16a)]+_0x3fa127(0x164)+CLI_BIN_NAME+_0x3fa127(0x16d));return _0x3fa127(0x170);}}export function toScopeFlags(_0xb25d0a){const _0x49d81d=a15_0x189b;return{'global':_0xb25d0a===_0x49d81d(0x16b)};}export function formatScopeLabel(_0xe71698){const _0x13bb11=a15_0x189b;return _0xe71698==='global'?_0x13bb11(0x161):'';}
@@ -1 +1 @@
1
- (function(_0x41ecb8,_0x56d71a){const _0x30db11=a16_0x2500,_0x405932=_0x41ecb8();while(!![]){try{const _0x27f44c=parseInt(_0x30db11(0x15e))/0x1+-parseInt(_0x30db11(0x15d))/0x2+parseInt(_0x30db11(0x164))/0x3+-parseInt(_0x30db11(0x15a))/0x4*(-parseInt(_0x30db11(0x165))/0x5)+-parseInt(_0x30db11(0x15f))/0x6*(-parseInt(_0x30db11(0x14f))/0x7)+-parseInt(_0x30db11(0x163))/0x8*(parseInt(_0x30db11(0x14c))/0x9)+-parseInt(_0x30db11(0x158))/0xa*(parseInt(_0x30db11(0x157))/0xb);if(_0x27f44c===_0x56d71a)break;else _0x405932['push'](_0x405932['shift']());}catch(_0x1c65e2){_0x405932['push'](_0x405932['shift']());}}}(a16_0x4909,0xb341e));import{CliErrors}from'../../errors.js';function isSet(_0x30f1d6,_0xe07fdb){const _0x484703=a16_0x2500,_0x55a6e3=_0x30f1d6[_0x484703(0x161)](_0xe07fdb);return _0x55a6e3!==undefined&&_0x55a6e3!==''&&_0x55a6e3!==![]&&_0x55a6e3!==0x0;}function fmtNames(_0x112a5a){const _0x2027a5=a16_0x2500;return _0x112a5a[_0x2027a5(0x156)](_0x2a07d1=>'--'+_0x2a07d1)[_0x2027a5(0x151)](',\x20');}function a16_0x4909(){const _0x350449=['890700VtuRmA','\x20is\x20required\x20for\x20`','Provide\x20one\x20of:\x20','2609770kvUBrW','760763MNXVhl','2523396WINMUX','\x20are\x20mutually\x20exclusive\x20for\x20`','flag','Only\x20one\x20of\x20','3580520Sqbfjf','1850703qHBzJu','15AyLGPP','length','Use\x20only\x20one\x20of:\x20','filter','9dzDFbl','str','test','14xQOQVp',':\x20expected\x20','join','Exactly\x20one\x20of\x20',',\x20got\x20\x22','validation','Remove\x20all\x20but\x20one.','map','38951AnHSMl','1130vkFabr','At\x20least\x20one\x20of\x20'];a16_0x4909=function(){return _0x350449;};return a16_0x4909();}export function requireOneOf(_0x316308,_0x55c125,_0x4aaf9f){const _0x1fd76e=a16_0x2500,_0x349f5a=_0x55c125[_0x1fd76e(0x14b)](_0x492475=>isSet(_0x316308,_0x492475));if(_0x349f5a[_0x1fd76e(0x166)]!==0x1)throw CliErrors[_0x1fd76e(0x154)](_0x349f5a['length']===0x0?_0x1fd76e(0x152)+fmtNames(_0x55c125)+_0x1fd76e(0x15b)+_0x4aaf9f+'`.':_0x1fd76e(0x162)+fmtNames(_0x55c125)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x349f5a)+'.',_0x349f5a['length']===0x0?_0x1fd76e(0x15c)+fmtNames(_0x55c125):_0x1fd76e(0x155));}export function requireAnyOf(_0x572051,_0x3f6abd,_0x51cefa){const _0x1db27c=a16_0x2500;if(!_0x3f6abd['some'](_0x50cad4=>isSet(_0x572051,_0x50cad4)))throw CliErrors[_0x1db27c(0x154)](_0x1db27c(0x159)+fmtNames(_0x3f6abd)+'\x20is\x20required\x20for\x20`'+_0x51cefa+'`.',_0x1db27c(0x15c)+fmtNames(_0x3f6abd));}function a16_0x2500(_0x158b01,_0x18d329){_0x158b01=_0x158b01-0x14b;const _0x490954=a16_0x4909();let _0x25007a=_0x490954[_0x158b01];return _0x25007a;}export function mutuallyExclusive(_0x37289d,_0x14f44d,_0x4614bf){const _0x51dffb=a16_0x2500,_0x3e3cba=_0x14f44d[_0x51dffb(0x14b)](_0x42bc7d=>isSet(_0x37289d,_0x42bc7d));if(_0x3e3cba[_0x51dffb(0x166)]>0x1)throw CliErrors[_0x51dffb(0x154)]('Flags\x20'+fmtNames(_0x3e3cba)+_0x51dffb(0x160)+_0x4614bf+'`.',_0x51dffb(0x167)+fmtNames(_0x14f44d));}export function validatePattern(_0x432a3a,_0xf7dc84,_0x3add83,_0x272303){const _0x369fa9=a16_0x2500,_0xe8f0b6=_0x432a3a[_0x369fa9(0x14d)](_0xf7dc84);if(_0xe8f0b6&&!_0x3add83[_0x369fa9(0x14e)](_0xe8f0b6))throw CliErrors['validation']('Invalid\x20--'+_0xf7dc84+_0x369fa9(0x150)+_0x272303+_0x369fa9(0x153)+_0xe8f0b6+'\x22.');}
1
+ function a16_0x387d(_0x435119,_0x33cf4c){_0x435119=_0x435119-0x8c;const _0x1aa760=a16_0x1aa7();let _0x387dd8=_0x1aa760[_0x435119];return _0x387dd8;}(function(_0xddfd05,_0x4904ed){const _0x56b8c7=a16_0x387d,_0xe3d318=_0xddfd05();while(!![]){try{const _0x3becf2=-parseInt(_0x56b8c7(0x98))/0x1*(-parseInt(_0x56b8c7(0x95))/0x2)+-parseInt(_0x56b8c7(0x99))/0x3+-parseInt(_0x56b8c7(0x97))/0x4*(-parseInt(_0x56b8c7(0xa8))/0x5)+parseInt(_0x56b8c7(0xa0))/0x6*(parseInt(_0x56b8c7(0x9f))/0x7)+parseInt(_0x56b8c7(0x8e))/0x8*(-parseInt(_0x56b8c7(0xaa))/0x9)+-parseInt(_0x56b8c7(0x8c))/0xa+parseInt(_0x56b8c7(0x9d))/0xb;if(_0x3becf2===_0x4904ed)break;else _0xe3d318['push'](_0xe3d318['shift']());}catch(_0x10f4ff){_0xe3d318['push'](_0xe3d318['shift']());}}}(a16_0x1aa7,0x23b91));import{CliErrors}from'../../errors.js';function isSet(_0xd55321,_0x155cc5){const _0x268d95=a16_0x387d,_0xde1b7e=_0xd55321[_0x268d95(0x9c)](_0x155cc5);return _0xde1b7e!==undefined&&_0xde1b7e!==''&&_0xde1b7e!==![]&&_0xde1b7e!==0x0;}function a16_0x1aa7(){const _0x5ea31a=['validation','Exactly\x20one\x20of\x20','flag','3189175LeePkb','map','20783zvIQVf','96CUxzSB','At\x20least\x20one\x20of\x20','Remove\x20all\x20but\x20one.','test','Flags\x20','join','length',':\x20expected\x20','47045ogjtLw','Only\x20one\x20of\x20','7569RIgxQL','2589830dMfyPH','some','16iJqads',',\x20got\x20\x22','Provide\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','\x20is\x20required\x20for\x20`','Use\x20only\x20one\x20of:\x20','Invalid\x20--','568382HuhEyj','\x20are\x20mutually\x20exclusive\x20for\x20`','4lRWXWd','1cAPyNS','672129XixETK'];a16_0x1aa7=function(){return _0x5ea31a;};return a16_0x1aa7();}function fmtNames(_0x557bcf){const _0x1e5b53=a16_0x387d;return _0x557bcf[_0x1e5b53(0x9e)](_0x39a1c5=>'--'+_0x39a1c5)[_0x1e5b53(0xa5)](',\x20');}export function requireOneOf(_0xa0085d,_0x3ff1b6,_0x1b4247){const _0x11a6b8=a16_0x387d,_0x301629=_0x3ff1b6['filter'](_0x4a2f52=>isSet(_0xa0085d,_0x4a2f52));if(_0x301629['length']!==0x1)throw CliErrors['validation'](_0x301629['length']===0x0?_0x11a6b8(0x9b)+fmtNames(_0x3ff1b6)+_0x11a6b8(0x92)+_0x1b4247+'`.':_0x11a6b8(0xa9)+fmtNames(_0x3ff1b6)+_0x11a6b8(0x91)+fmtNames(_0x301629)+'.',_0x301629[_0x11a6b8(0xa6)]===0x0?_0x11a6b8(0x90)+fmtNames(_0x3ff1b6):_0x11a6b8(0xa2));}export function requireAnyOf(_0x1ae932,_0x477420,_0x27d258){const _0x38c112=a16_0x387d;if(!_0x477420[_0x38c112(0x8d)](_0x59f6f3=>isSet(_0x1ae932,_0x59f6f3)))throw CliErrors['validation'](_0x38c112(0xa1)+fmtNames(_0x477420)+'\x20is\x20required\x20for\x20`'+_0x27d258+'`.',_0x38c112(0x90)+fmtNames(_0x477420));}export function mutuallyExclusive(_0x4c74c0,_0x45c3e6,_0x15857f){const _0x26b3ce=a16_0x387d,_0x404192=_0x45c3e6['filter'](_0x486b06=>isSet(_0x4c74c0,_0x486b06));if(_0x404192[_0x26b3ce(0xa6)]>0x1)throw CliErrors['validation'](_0x26b3ce(0xa4)+fmtNames(_0x404192)+_0x26b3ce(0x96)+_0x15857f+'`.',_0x26b3ce(0x93)+fmtNames(_0x45c3e6));}export function validatePattern(_0x39d1b3,_0x45fd4e,_0x3c0bcb,_0x159a39){const _0x33e5c6=a16_0x387d,_0x242212=_0x39d1b3['str'](_0x45fd4e);if(_0x242212&&!_0x3c0bcb[_0x33e5c6(0xa3)](_0x242212))throw CliErrors[_0x33e5c6(0x9a)](_0x33e5c6(0x94)+_0x45fd4e+_0x33e5c6(0xa7)+_0x159a39+_0x33e5c6(0x8f)+_0x242212+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x2fcff2=a17_0x14d6;(function(_0x1761e9,_0x204b8f){const _0x2eb18e=a17_0x14d6,_0x1c2edf=_0x1761e9();while(!![]){try{const _0x5c70fe=parseInt(_0x2eb18e(0x1aa))/0x1*(parseInt(_0x2eb18e(0x1a3))/0x2)+-parseInt(_0x2eb18e(0x1a5))/0x3+parseInt(_0x2eb18e(0x1ad))/0x4+-parseInt(_0x2eb18e(0x1b6))/0x5+parseInt(_0x2eb18e(0x1b1))/0x6*(parseInt(_0x2eb18e(0x1a4))/0x7)+-parseInt(_0x2eb18e(0x1a8))/0x8+parseInt(_0x2eb18e(0x1a2))/0x9;if(_0x5c70fe===_0x204b8f)break;else _0x1c2edf['push'](_0x1c2edf['shift']());}catch(_0x405a90){_0x1c2edf['push'](_0x1c2edf['shift']());}}}(a17_0x3d8c,0x77971));export const CODE_FLAG={'name':'code','type':a17_0x2fcff2(0x1b5),'required':!![],'description':a17_0x2fcff2(0x1ac),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x2fcff2(0x1ae)}};export const SQLCODE_FLAG={'name':a17_0x2fcff2(0x1b3),'type':a17_0x2fcff2(0x1b5),'required':!![],'description':a17_0x2fcff2(0x1b4),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x2fcff2(0x1b2)}};function a17_0x14d6(_0x595f26,_0x8e07d6){_0x595f26=_0x595f26-0x1a2;const _0x3d8c72=a17_0x3d8c();let _0x14d6ec=_0x3d8c72[_0x595f26];return _0x14d6ec;}export const VERBOSE_FLAG={'name':a17_0x2fcff2(0x1a7),'type':'boolean','description':a17_0x2fcff2(0x1ab)};export const PARAMS_FLAG={'name':a17_0x2fcff2(0x1a6),'type':a17_0x2fcff2(0x1b5),'description':a17_0x2fcff2(0x1a9)};export const NAME_FLAG={'name':a17_0x2fcff2(0x1b0),'type':a17_0x2fcff2(0x1b5),'description':a17_0x2fcff2(0x1af)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};function a17_0x3d8c(){const _0x11d0b6=['1281004CDWmaH','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20name\x20for\x20lookup','name','6oBVPvR','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','string','3221980lJJjFP','10678347imoKEj','853386ndlatW','2087148UAIpCD','2826432dEwTED','params','verbose','1241680eEdzAg','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1BsGBDK','Return\x20full\x20raw\x20response\x20object','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a17_0x3d8c=function(){return _0x11d0b6;};return a17_0x3d8c();}
1
+ const a17_0x3061aa=a17_0x343a;(function(_0x5b6930,_0x47a53c){const _0x3c0d9c=a17_0x343a,_0x4b93e9=_0x5b6930();while(!![]){try{const _0x4bc48a=parseInt(_0x3c0d9c(0xce))/0x1*(-parseInt(_0x3c0d9c(0xcf))/0x2)+-parseInt(_0x3c0d9c(0xd5))/0x3+parseInt(_0x3c0d9c(0xc4))/0x4*(-parseInt(_0x3c0d9c(0xc5))/0x5)+parseInt(_0x3c0d9c(0xd4))/0x6*(parseInt(_0x3c0d9c(0xc3))/0x7)+-parseInt(_0x3c0d9c(0xc2))/0x8+-parseInt(_0x3c0d9c(0xd2))/0x9*(parseInt(_0x3c0d9c(0xcd))/0xa)+parseInt(_0x3c0d9c(0xc8))/0xb*(parseInt(_0x3c0d9c(0xc6))/0xc);if(_0x4bc48a===_0x47a53c)break;else _0x4b93e9['push'](_0x4b93e9['shift']());}catch(_0x4507b3){_0x4b93e9['push'](_0x4b93e9['shift']());}}}(a17_0xda5e,0xbcdd4));export const CODE_FLAG={'name':a17_0x3061aa(0xc1),'type':a17_0x3061aa(0xd0),'required':!![],'description':a17_0x3061aa(0xbf),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x3061aa(0xcb)}};export const SQLCODE_FLAG={'name':a17_0x3061aa(0xd1),'type':a17_0x3061aa(0xd0),'required':!![],'description':a17_0x3061aa(0xd6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x3061aa(0xc9)}};function a17_0xda5e(){const _0x2c34e1=['Resource\x20ID','730NXoBts','1543987Ccyhrp','2DADXoh','string','sqlcode','186669OIhkXf','boolean','102zPfhFx','2076696VWdfRW','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','name','Dataset\x20code\x20(32-char\x20hex\x20UUID)','verbose','code','7622248AQRgOI','435694XLwugn','20FGCrbh','948170DBlwNN','12emeDjB','Resource\x20name\x20for\x20lookup','59034107iqKtRZ','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Return\x20full\x20raw\x20response\x20object','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'];a17_0xda5e=function(){return _0x2c34e1;};return a17_0xda5e();}function a17_0x343a(_0x62e10c,_0x51e562){_0x62e10c=_0x62e10c-0xbf;const _0xda5e61=a17_0xda5e();let _0x343aba=_0xda5e61[_0x62e10c];return _0x343aba;}export const VERBOSE_FLAG={'name':a17_0x3061aa(0xc0),'type':a17_0x3061aa(0xd3),'description':a17_0x3061aa(0xca)};export const PARAMS_FLAG={'name':'params','type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a17_0x3061aa(0xd7),'type':a17_0x3061aa(0xd0),'description':a17_0x3061aa(0xc7)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a17_0x3061aa(0xcc)};
@@ -1 +1 @@
1
- const a18_0x215860=a18_0x11c0;(function(_0x4b628e,_0x48e339){const _0x6730a1=a18_0x11c0,_0x33c75e=_0x4b628e();while(!![]){try{const _0x59b45d=parseInt(_0x6730a1(0xc2))/0x1+parseInt(_0x6730a1(0xc3))/0x2*(parseInt(_0x6730a1(0xef))/0x3)+parseInt(_0x6730a1(0xdb))/0x4*(parseInt(_0x6730a1(0xd2))/0x5)+-parseInt(_0x6730a1(0xe8))/0x6*(-parseInt(_0x6730a1(0xb5))/0x7)+-parseInt(_0x6730a1(0xea))/0x8*(parseInt(_0x6730a1(0xda))/0x9)+parseInt(_0x6730a1(0xe9))/0xa+-parseInt(_0x6730a1(0xbc))/0xb;if(_0x59b45d===_0x48e339)break;else _0x33c75e['push'](_0x33c75e['shift']());}catch(_0x5ae5d5){_0x33c75e['push'](_0x33c75e['shift']());}}}(a18_0x4dfd,0x78da8));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_0x215860(0xed),'type':a18_0x215860(0xdf),'description':a18_0x215860(0xc6),'default':![]};function parseAliasAppcodeSetKey(_0x44e3a2){const _0x6f52d1=a18_0x215860,_0x614ce5=_0x44e3a2[_0x6f52d1(0xb7)]('.');if(_0x614ce5[_0x6f52d1(0xb6)]!==0x3||_0x614ce5[0x0]!=='apps'||_0x614ce5[0x2]!==_0x6f52d1(0xe4))return undefined;const _0x539b45=_0x614ce5[0x1]?.[_0x6f52d1(0xb8)]();return _0x539b45?_0x539b45:undefined;}function parseAliasDeleteKey(_0x2bce01){const _0xf01e34=a18_0x215860,_0x167292=_0x2bce01[_0xf01e34(0xb7)]('.');if(_0x167292['length']===0x2&&_0x167292[0x0]==='apps'){const _0x528ebe=_0x167292[0x1]?.[_0xf01e34(0xb8)]();return _0x528ebe?{'alias':_0x528ebe}:undefined;}if(_0x167292[_0xf01e34(0xb6)]===0x3&&_0x167292[0x0]===_0xf01e34(0xcd)&&_0x167292[0x2]==='appcode'){const _0x5cf8f3=_0x167292[0x1]?.[_0xf01e34(0xb8)]();return _0x5cf8f3?{'alias':_0x5cf8f3,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x76d7bc,_0x12323d,_0x36d5ab){const _0x5f59ac=a18_0x215860,_0x34963d=_0x76d7bc['apps']&&typeof _0x76d7bc[_0x5f59ac(0xcd)]===_0x5f59ac(0xce)&&!Array[_0x5f59ac(0xb9)](_0x76d7bc['apps'])?_0x76d7bc[_0x5f59ac(0xcd)]:{},_0x273c1b=_0x34963d[_0x12323d]&&typeof _0x34963d[_0x12323d]===_0x5f59ac(0xce)&&!Array[_0x5f59ac(0xb9)](_0x34963d[_0x12323d])?_0x34963d[_0x12323d]:{};_0x273c1b[_0x5f59ac(0xe4)]=_0x36d5ab,_0x34963d[_0x12323d]=_0x273c1b,_0x76d7bc['apps']=_0x34963d;}function deleteLocalAppAlias(_0x1c66d6,_0x3d892c){const _0x367864=a18_0x215860;if(!_0x1c66d6[_0x367864(0xcd)]||typeof _0x1c66d6[_0x367864(0xcd)]!=='object'||Array['isArray'](_0x1c66d6[_0x367864(0xcd)]))return![];const _0x35a7ac=_0x1c66d6['apps'],_0x3133bb=_0x35a7ac[_0x3d892c['alias']];if(!_0x3133bb||typeof _0x3133bb!==_0x367864(0xce)||Array[_0x367864(0xb9)](_0x3133bb))return![];if(!_0x3d892c[_0x367864(0xdd)])return delete _0x35a7ac[_0x3d892c[_0x367864(0xc5)]],!![];if(!(_0x3d892c[_0x367864(0xdd)]in _0x3133bb))return![];return delete _0x3133bb[_0x3d892c[_0x367864(0xdd)]],Object[_0x367864(0xc0)](_0x3133bb)['length']===0x0&&delete _0x35a7ac[_0x3d892c[_0x367864(0xc5)]],!![];}function a18_0x4dfd(){const _0x25096a=['object','read','\x22\x20not\x20found\x20at\x20top\x20level.','set','30fYNCHr','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20project:\x20','write','../../context.js','Delete\x20a\x20config\x20value','Usage:\x20','\x20(global)','3843ZzAdbz','48392eQBBbC','validation','field','pageSize','boolean','project-or-global-explicit','(none)','Settable\x20keys:\x20','list','appcode','stringify','List\x20current\x20config','Set\x20`','29388zJHxvI','3319030aTXEZJ','8488FYrdQo','Value\x20to\x20assign','\x22\x20is\x20not\x20settable.','global','Missing\x20key\x20argument.','24wNWaPc','key','includes','\x20config\x20delete\x20<key>\x20[--global]','\x22.\x20Allowed:\x20','Get\x20a\x20config\x20value','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20\x22','args','riskLevel','1218PlUhWC','length','split','trim','isArray','`\x20=\x20\x22',';\x20apps.<alias>.appcode','11303006xUGJcl','Deleted\x20`','log','bool','keys','value','667922mHUjhy','12736IOZvCK','config','alias','Write\x20to\x20global\x20config','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Key\x20not\x20found:\x20','Config\x20files:\x0a','\x20\x20global:\x20\x20','delete','get','apps'];a18_0x4dfd=function(){return _0x25096a;};return a18_0x4dfd();}function a18_0x11c0(_0x4efd77,_0x48339f){_0x4efd77=_0x4efd77-0xb2;const _0x4dfd39=a18_0x4dfd();let _0x11c0ba=_0x4dfd39[_0x4efd77];return _0x11c0ba;}const listDef={'service':a18_0x215860(0xc4),'command':a18_0x215860(0xe3),'description':a18_0x215860(0xe6),'risk':a18_0x215860(0xcf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xf1cc13){const _0x5f34b7=a18_0x215860,{buildConfigFromFlags:_0x1e1887}=await import(_0x5f34b7(0xd6)),_0x923365=_0x1e1887({}),_0x26ab50=getProjectConfigPath(),_0x2f1c49=resolveWriteConfigPath(_0x5f34b7(0xed));if(_0xf1cc13['format']==='pretty')return{'ok':!![],'message':_0x5f34b7(0xc7)+(JSON['stringify'](_0x923365['raw'],null,0x2)+'\x0a\x0a')+_0x5f34b7(0xc9)+(_0x5f34b7(0xd4)+(_0x26ab50??_0x5f34b7(0xe1))+'\x0a')+(_0x5f34b7(0xca)+_0x2f1c49)};return{'ok':!![],'data':{'effective':_0x923365['raw'],'configFiles':{'project':_0x26ab50??null,'global':_0x2f1c49}}};}},getDef={'service':a18_0x215860(0xc4),'command':a18_0x215860(0xcc),'description':a18_0x215860(0xf4),'risk':a18_0x215860(0xcf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x215860(0xf0),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x318b26){const _0x5aac10=a18_0x215860,_0x588aee=_0x318b26[_0x5aac10(0xb3)][0x0];if(!_0x588aee)throw CliErrors['validation'](_0x5aac10(0xee),_0x5aac10(0xd8)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x39c36b}=await import(_0x5aac10(0xd6)),{raw:_0x4e3396}=_0x39c36b({});if(_0x588aee[_0x5aac10(0xf1)]('.')){const _0x4f0e21=_0x588aee['split']('.');let _0x4bcafb=_0x4e3396;for(const _0x1fb0fa of _0x4f0e21){if(_0x4bcafb==null||typeof _0x4bcafb!==_0x5aac10(0xce))throw CliErrors[_0x5aac10(0xdc)](_0x5aac10(0xc8)+_0x588aee);_0x4bcafb=_0x4bcafb[_0x1fb0fa];}if(_0x4bcafb===undefined)throw CliErrors[_0x5aac10(0xdc)](_0x5aac10(0xc8)+_0x588aee);return console[_0x5aac10(0xbe)](typeof _0x4bcafb===_0x5aac10(0xce)?JSON[_0x5aac10(0xe5)](_0x4bcafb,null,0x2):String(_0x4bcafb)),{'ok':!![]};}const _0x94628a=_0x4e3396[_0x588aee];if(_0x94628a===undefined)throw CliErrors[_0x5aac10(0xdc)](_0x5aac10(0xc8)+_0x588aee);return console['log'](typeof _0x94628a===_0x5aac10(0xce)?JSON['stringify'](_0x94628a,null,0x2):String(_0x94628a)),{'ok':!![]};}},setDef={'service':'config','command':a18_0x215860(0xd1),'description':'Set\x20a\x20config\x20value','risk':a18_0x215860(0xd5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x215860(0xc1),'description':a18_0x215860(0xeb),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x11910c){const _0x57926d=a18_0x215860,_0x22655b=_0x11910c[_0x57926d(0xb3)][0x0],_0x485c84=_0x11910c[_0x57926d(0xb3)][0x1];if(!_0x22655b||_0x485c84===undefined)throw CliErrors[_0x57926d(0xdc)]('Missing\x20key\x20or\x20value.',_0x57926d(0xd8)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x22655b]&&!ENUM_KEYS[_0x22655b]['includes'](_0x485c84))throw CliErrors[_0x57926d(0xdc)](_0x57926d(0xb2)+_0x22655b+_0x57926d(0xf3)+ENUM_KEYS[_0x22655b]['join'](',\x20'));if(_0x22655b===_0x57926d(0xb4))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x22655b===_0x57926d(0xde)){const _0x4ea89d=Number(_0x485c84);if(isNaN(_0x4ea89d)||_0x4ea89d<=0x0)throw CliErrors[_0x57926d(0xdc)](_0x57926d(0xd3));}const _0x1f09e3=resolveWriteScope({'explicitGlobal':_0x11910c[_0x57926d(0xbf)](_0x57926d(0xed)),'policy':'project-or-global-explicit'}),_0x4d88fb=toScopeFlags(_0x1f09e3),_0x4784b4=readScopedConfig(_0x4d88fb),_0x34fc57=parseAliasAppcodeSetKey(_0x22655b);if(!_0x34fc57&&!isTopLevelConfigKey(_0x22655b))throw CliErrors[_0x57926d(0xdc)](_0x57926d(0xf5)+_0x22655b+_0x57926d(0xec),_0x57926d(0xe2)+getTopLevelConfigKeySummary()+_0x57926d(0xbb));return _0x34fc57?setLocalAppAlias(_0x4784b4,_0x34fc57,_0x485c84):_0x4784b4[_0x22655b]=_0x22655b===_0x57926d(0xde)?Number(_0x485c84):_0x485c84,console['log'](_0x57926d(0xe7)+_0x22655b+_0x57926d(0xba)+_0x485c84+'\x22'+(_0x1f09e3==='global'?_0x57926d(0xd9):'')),writeScopedConfig(_0x4784b4,_0x4d88fb),{'ok':!![]};}},deleteDef={'service':a18_0x215860(0xc4),'command':a18_0x215860(0xcb),'description':a18_0x215860(0xd7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x215860(0xf0),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4e6193){const _0x29b810=a18_0x215860,_0x1f7862=_0x4e6193[_0x29b810(0xb3)][0x0];if(!_0x1f7862)throw CliErrors[_0x29b810(0xdc)](_0x29b810(0xee),_0x29b810(0xd8)+CLI_BIN_NAME+_0x29b810(0xf2));const _0x458a6f=resolveWriteScope({'explicitGlobal':_0x4e6193[_0x29b810(0xbf)](_0x29b810(0xed)),'policy':_0x29b810(0xe0)}),_0x227e7c=toScopeFlags(_0x458a6f),_0x1e7e6e=readScopedConfig(_0x227e7c),_0x59a306=parseAliasDeleteKey(_0x1f7862);if(_0x59a306){if(!deleteLocalAppAlias(_0x1e7e6e,_0x59a306))throw CliErrors[_0x29b810(0xdc)]('Key\x20not\x20found:\x20'+_0x1f7862);return console[_0x29b810(0xbe)](_0x29b810(0xbd)+_0x1f7862+'`'+(_0x458a6f==='global'?_0x29b810(0xd9):'')),writeScopedConfig(_0x1e7e6e,_0x227e7c),{'ok':!![]};}if(_0x1e7e6e[_0x1f7862]===undefined)throw CliErrors['validation']('Key\x20\x22'+_0x1f7862+_0x29b810(0xd0));return delete _0x1e7e6e[_0x1f7862],console[_0x29b810(0xbe)](_0x29b810(0xbd)+_0x1f7862+'`'+(_0x458a6f===_0x29b810(0xed)?_0x29b810(0xd9):'')),writeScopedConfig(_0x1e7e6e,_0x227e7c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a18_0x4b23ce=a18_0x509a;(function(_0xe402bb,_0x34e61f){const _0x503409=a18_0x509a,_0x4a83d2=_0xe402bb();while(!![]){try{const _0x1a2e2c=parseInt(_0x503409(0x1ee))/0x1*(parseInt(_0x503409(0x1c1))/0x2)+-parseInt(_0x503409(0x1cf))/0x3+-parseInt(_0x503409(0x1eb))/0x4*(parseInt(_0x503409(0x1f6))/0x5)+parseInt(_0x503409(0x1ed))/0x6*(-parseInt(_0x503409(0x1c0))/0x7)+parseInt(_0x503409(0x1cd))/0x8*(-parseInt(_0x503409(0x1ff))/0x9)+parseInt(_0x503409(0x1c5))/0xa*(-parseInt(_0x503409(0x1d2))/0xb)+parseInt(_0x503409(0x1ef))/0xc;if(_0x1a2e2c===_0x34e61f)break;else _0x4a83d2['push'](_0x4a83d2['shift']());}catch(_0x23a722){_0x4a83d2['push'](_0x4a83d2['shift']());}}}(a18_0x1edd,0xd4d1c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a18_0x509a(_0x9fc2e2,_0x2dc7c1){_0x9fc2e2=_0x9fc2e2-0x1bf;const _0x1edda9=a18_0x1edd();let _0x509add=_0x1edda9[_0x9fc2e2];return _0x509add;}function a18_0x1edd(){const _0x975219=['global','pretty','bool','includes','Deleted\x20`','Top-level\x20key\x20\x22','read','272mWZjLN','\x20\x20project:\x20','2987640bAjtxq','field','join','19008847tElOla','pageSize\x20must\x20be\x20a\x20positive\x20number','config','Get\x20a\x20config\x20value','key','get','riskLevel','\x20config\x20get\x20<key>','`\x20=\x20\x22','(none)','Key\x20\x22','appcode','trim','\x20config\x20set\x20<key>\x20<value>\x20[--global]','keys','../../context.js','Usage:\x20','pageSize','Set\x20a\x20config\x20value','Key\x20not\x20found:\x20','args','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Value\x20to\x20assign','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Settable\x20keys:\x20','6307348Tdyjot','write','168haEDPw','61043ostJex','71052888MrvCKW','project-or-global-explicit','Missing\x20key\x20argument.','\x20\x20global:\x20\x20','alias','stringify','Set\x20`','5jQDdEZ','log','raw','Missing\x20key\x20or\x20value.','boolean','length','split','apps','validation','86301WBuHkq','\x20(global)','\x22.\x20Allowed:\x20','Delete\x20a\x20config\x20value','format','list','258244IerrTg','20wmjDzn','object','isArray',';\x20apps.<alias>.appcode','10FsnOet'];a18_0x1edd=function(){return _0x975219;};return a18_0x1edd();}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a18_0x4b23ce(0x1c6),'type':a18_0x4b23ce(0x1fa),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x10b953){const _0xe49110=a18_0x4b23ce,_0xf3e0a2=_0x10b953[_0xe49110(0x1fc)]('.');if(_0xf3e0a2[_0xe49110(0x1fb)]!==0x3||_0xf3e0a2[0x0]!==_0xe49110(0x1fd)||_0xf3e0a2[0x2]!==_0xe49110(0x1dd))return undefined;const _0x25b0c1=_0xf3e0a2[0x1]?.['trim']();return _0x25b0c1?_0x25b0c1:undefined;}function parseAliasDeleteKey(_0x16ee3c){const _0x2ce38a=a18_0x4b23ce,_0x3f7f49=_0x16ee3c[_0x2ce38a(0x1fc)]('.');if(_0x3f7f49['length']===0x2&&_0x3f7f49[0x0]===_0x2ce38a(0x1fd)){const _0x3f03dd=_0x3f7f49[0x1]?.['trim']();return _0x3f03dd?{'alias':_0x3f03dd}:undefined;}if(_0x3f7f49[_0x2ce38a(0x1fb)]===0x3&&_0x3f7f49[0x0]===_0x2ce38a(0x1fd)&&_0x3f7f49[0x2]===_0x2ce38a(0x1dd)){const _0x22c562=_0x3f7f49[0x1]?.[_0x2ce38a(0x1de)]();return _0x22c562?{'alias':_0x22c562,'field':_0x2ce38a(0x1dd)}:undefined;}return undefined;}function setLocalAppAlias(_0x5edadf,_0x4f8179,_0x4086e4){const _0x3175f9=a18_0x4b23ce,_0x3ddcb5=_0x5edadf[_0x3175f9(0x1fd)]&&typeof _0x5edadf[_0x3175f9(0x1fd)]===_0x3175f9(0x1c2)&&!Array['isArray'](_0x5edadf['apps'])?_0x5edadf[_0x3175f9(0x1fd)]:{},_0xff5a47=_0x3ddcb5[_0x4f8179]&&typeof _0x3ddcb5[_0x4f8179]===_0x3175f9(0x1c2)&&!Array[_0x3175f9(0x1c3)](_0x3ddcb5[_0x4f8179])?_0x3ddcb5[_0x4f8179]:{};_0xff5a47['appcode']=_0x4086e4,_0x3ddcb5[_0x4f8179]=_0xff5a47,_0x5edadf['apps']=_0x3ddcb5;}function deleteLocalAppAlias(_0x2ddc04,_0x5f2cbb){const _0x19bf90=a18_0x4b23ce;if(!_0x2ddc04[_0x19bf90(0x1fd)]||typeof _0x2ddc04[_0x19bf90(0x1fd)]!==_0x19bf90(0x1c2)||Array[_0x19bf90(0x1c3)](_0x2ddc04[_0x19bf90(0x1fd)]))return![];const _0x3877d1=_0x2ddc04[_0x19bf90(0x1fd)],_0x3995eb=_0x3877d1[_0x5f2cbb[_0x19bf90(0x1f3)]];if(!_0x3995eb||typeof _0x3995eb!==_0x19bf90(0x1c2)||Array['isArray'](_0x3995eb))return![];if(!_0x5f2cbb[_0x19bf90(0x1d0)])return delete _0x3877d1[_0x5f2cbb['alias']],!![];if(!(_0x5f2cbb[_0x19bf90(0x1d0)]in _0x3995eb))return![];return delete _0x3995eb[_0x5f2cbb[_0x19bf90(0x1d0)]],Object[_0x19bf90(0x1e0)](_0x3995eb)[_0x19bf90(0x1fb)]===0x0&&delete _0x3877d1[_0x5f2cbb[_0x19bf90(0x1f3)]],!![];}const listDef={'service':a18_0x4b23ce(0x1d4),'command':a18_0x4b23ce(0x1bf),'description':'List\x20current\x20config','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x59fd66){const _0xb0ec49=a18_0x4b23ce,{buildConfigFromFlags:_0x1fd9ea}=await import(_0xb0ec49(0x1e1)),_0x2973eb=_0x1fd9ea({}),_0x93acd0=getProjectConfigPath(),_0x7298d5=resolveWriteConfigPath(_0xb0ec49(0x1c6));if(_0x59fd66[_0xb0ec49(0x203)]===_0xb0ec49(0x1c7))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0xb0ec49(0x1f4)](_0x2973eb[_0xb0ec49(0x1f8)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0xb0ec49(0x1ce)+(_0x93acd0??_0xb0ec49(0x1db))+'\x0a')+(_0xb0ec49(0x1f2)+_0x7298d5)};return{'ok':!![],'data':{'effective':_0x2973eb[_0xb0ec49(0x1f8)],'configFiles':{'project':_0x93acd0??null,'global':_0x7298d5}}};}},getDef={'service':a18_0x4b23ce(0x1d4),'command':a18_0x4b23ce(0x1d7),'description':a18_0x4b23ce(0x1d5),'risk':a18_0x4b23ce(0x1cc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a18_0x4b23ce(0x1e9),'required':!![]}],'flags':[],async 'execute'(_0x2a029c){const _0x27c1e1=a18_0x4b23ce,_0x5cd295=_0x2a029c['args'][0x0];if(!_0x5cd295)throw CliErrors[_0x27c1e1(0x1fe)](_0x27c1e1(0x1f1),_0x27c1e1(0x1e2)+CLI_BIN_NAME+_0x27c1e1(0x1d9));const {buildConfigFromFlags:_0x408204}=await import(_0x27c1e1(0x1e1)),{raw:_0x248d8b}=_0x408204({});if(_0x5cd295[_0x27c1e1(0x1c9)]('.')){const _0x2d423b=_0x5cd295['split']('.');let _0x3fc2bd=_0x248d8b;for(const _0x5a67e8 of _0x2d423b){if(_0x3fc2bd==null||typeof _0x3fc2bd!==_0x27c1e1(0x1c2))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x5cd295);_0x3fc2bd=_0x3fc2bd[_0x5a67e8];}if(_0x3fc2bd===undefined)throw CliErrors['validation'](_0x27c1e1(0x1e5)+_0x5cd295);return console[_0x27c1e1(0x1f7)](typeof _0x3fc2bd===_0x27c1e1(0x1c2)?JSON[_0x27c1e1(0x1f4)](_0x3fc2bd,null,0x2):String(_0x3fc2bd)),{'ok':!![]};}const _0x510b6b=_0x248d8b[_0x5cd295];if(_0x510b6b===undefined)throw CliErrors['validation'](_0x27c1e1(0x1e5)+_0x5cd295);return console[_0x27c1e1(0x1f7)](typeof _0x510b6b===_0x27c1e1(0x1c2)?JSON[_0x27c1e1(0x1f4)](_0x510b6b,null,0x2):String(_0x510b6b)),{'ok':!![]};}},setDef={'service':a18_0x4b23ce(0x1d4),'command':'set','description':a18_0x4b23ce(0x1e4),'risk':a18_0x4b23ce(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x4b23ce(0x1d6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a18_0x4b23ce(0x1e8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x425f78){const _0x3c06d8=a18_0x4b23ce,_0x12f37d=_0x425f78[_0x3c06d8(0x1e6)][0x0],_0x3c3744=_0x425f78[_0x3c06d8(0x1e6)][0x1];if(!_0x12f37d||_0x3c3744===undefined)throw CliErrors[_0x3c06d8(0x1fe)](_0x3c06d8(0x1f9),'Usage:\x20'+CLI_BIN_NAME+_0x3c06d8(0x1df));if(ENUM_KEYS[_0x12f37d]&&!ENUM_KEYS[_0x12f37d]['includes'](_0x3c3744))throw CliErrors[_0x3c06d8(0x1fe)]('Invalid\x20value\x20for\x20\x22'+_0x12f37d+_0x3c06d8(0x201)+ENUM_KEYS[_0x12f37d][_0x3c06d8(0x1d1)](',\x20'));if(_0x12f37d===_0x3c06d8(0x1d8))throw CliErrors[_0x3c06d8(0x1fe)](_0x3c06d8(0x1e7));if(_0x12f37d===_0x3c06d8(0x1e3)){const _0x2d563e=Number(_0x3c3744);if(isNaN(_0x2d563e)||_0x2d563e<=0x0)throw CliErrors[_0x3c06d8(0x1fe)](_0x3c06d8(0x1d3));}const _0x19a4b8=resolveWriteScope({'explicitGlobal':_0x425f78[_0x3c06d8(0x1c8)]('global'),'policy':_0x3c06d8(0x1f0)}),_0x43b066=toScopeFlags(_0x19a4b8),_0x358945=readScopedConfig(_0x43b066),_0x10f665=parseAliasAppcodeSetKey(_0x12f37d);if(!_0x10f665&&!isTopLevelConfigKey(_0x12f37d))throw CliErrors[_0x3c06d8(0x1fe)](_0x3c06d8(0x1cb)+_0x12f37d+'\x22\x20is\x20not\x20settable.',_0x3c06d8(0x1ea)+getTopLevelConfigKeySummary()+_0x3c06d8(0x1c4));return _0x10f665?setLocalAppAlias(_0x358945,_0x10f665,_0x3c3744):_0x358945[_0x12f37d]=_0x12f37d===_0x3c06d8(0x1e3)?Number(_0x3c3744):_0x3c3744,console[_0x3c06d8(0x1f7)](_0x3c06d8(0x1f5)+_0x12f37d+_0x3c06d8(0x1da)+_0x3c3744+'\x22'+(_0x19a4b8===_0x3c06d8(0x1c6)?'\x20(global)':'')),writeScopedConfig(_0x358945,_0x43b066),{'ok':!![]};}},deleteDef={'service':a18_0x4b23ce(0x1d4),'command':'delete','description':a18_0x4b23ce(0x202),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x4b23ce(0x1d6),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x251ad9){const _0x5c4630=a18_0x4b23ce,_0x4dbae3=_0x251ad9[_0x5c4630(0x1e6)][0x0];if(!_0x4dbae3)throw CliErrors[_0x5c4630(0x1fe)]('Missing\x20key\x20argument.',_0x5c4630(0x1e2)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x27782c=resolveWriteScope({'explicitGlobal':_0x251ad9[_0x5c4630(0x1c8)]('global'),'policy':_0x5c4630(0x1f0)}),_0x1ead5f=toScopeFlags(_0x27782c),_0xc59a39=readScopedConfig(_0x1ead5f),_0x36cb56=parseAliasDeleteKey(_0x4dbae3);if(_0x36cb56){if(!deleteLocalAppAlias(_0xc59a39,_0x36cb56))throw CliErrors['validation'](_0x5c4630(0x1e5)+_0x4dbae3);return console['log'](_0x5c4630(0x1ca)+_0x4dbae3+'`'+(_0x27782c===_0x5c4630(0x1c6)?_0x5c4630(0x200):'')),writeScopedConfig(_0xc59a39,_0x1ead5f),{'ok':!![]};}if(_0xc59a39[_0x4dbae3]===undefined)throw CliErrors[_0x5c4630(0x1fe)](_0x5c4630(0x1dc)+_0x4dbae3+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xc59a39[_0x4dbae3],console[_0x5c4630(0x1f7)](_0x5c4630(0x1ca)+_0x4dbae3+'`'+(_0x27782c===_0x5c4630(0x1c6)?_0x5c4630(0x200):'')),writeScopedConfig(_0xc59a39,_0x1ead5f),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a19_0x6f89(){var _0x3f2773=['3133408vrESFS','21426OrJXwo','99673VYIuNX','25471emqlEr','2vDAXyt','430yMVQNq','10004148keXVob','330750HonFeP','937468NSoxiO'];a19_0x6f89=function(){return _0x3f2773;};return a19_0x6f89();}(function(_0x21acf7,_0x2fbbd8){var _0x139199=a19_0x4cb5,_0x232439=_0x21acf7();while(!![]){try{var _0xe2b7d5=parseInt(_0x139199(0xb2))/0x1*(-parseInt(_0x139199(0xaa))/0x2)+parseInt(_0x139199(0xad))/0x3+-parseInt(_0x139199(0xae))/0x4+parseInt(_0x139199(0xab))/0x5*(-parseInt(_0x139199(0xb0))/0x6)+parseInt(_0x139199(0xb1))/0x7+-parseInt(_0x139199(0xaf))/0x8+parseInt(_0x139199(0xac))/0x9;if(_0xe2b7d5===_0x2fbbd8)break;else _0x232439['push'](_0x232439['shift']());}catch(_0xd88fca){_0x232439['push'](_0x232439['shift']());}}}(a19_0x6f89,0x43bc1));import{CLI_BIN_NAME}from'../../constant/cli.js';function a19_0x4cb5(_0x372bcf,_0x351978){_0x372bcf=_0x372bcf-0xaa;var _0x6f897d=a19_0x6f89();var _0x4cb5a1=_0x6f897d[_0x372bcf];return _0x4cb5a1;}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';
1
+ function a19_0x1228(_0x3bf3be,_0x46ae16){_0x3bf3be=_0x3bf3be-0x17f;var _0x51334a=a19_0x5133();var _0x1228c8=_0x51334a[_0x3bf3be];return _0x1228c8;}(function(_0x19562e,_0x2b7645){var _0x51ca9f=a19_0x1228,_0x3f7a9d=_0x19562e();while(!![]){try{var _0xda318f=parseInt(_0x51ca9f(0x182))/0x1*(-parseInt(_0x51ca9f(0x187))/0x2)+-parseInt(_0x51ca9f(0x181))/0x3+parseInt(_0x51ca9f(0x17f))/0x4*(parseInt(_0x51ca9f(0x184))/0x5)+-parseInt(_0x51ca9f(0x185))/0x6+parseInt(_0x51ca9f(0x186))/0x7+-parseInt(_0x51ca9f(0x183))/0x8+parseInt(_0x51ca9f(0x180))/0x9;if(_0xda318f===_0x2b7645)break;else _0x3f7a9d['push'](_0x3f7a9d['shift']());}catch(_0x24382a){_0x3f7a9d['push'](_0x3f7a9d['shift']());}}}(a19_0x5133,0xe6d94));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a19_0x5133(){var _0x57cdd3=['1113204SmHyGJ','3777914HwsMhT','16kylXsd','4NPbWBC','31074039WHCsaE','3217851hCZCXP','136946gJfeDn','9025056ittoCe','2175170JzMxui'];a19_0x5133=function(){return _0x57cdd3;};return a19_0x5133();}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';
@@ -1 +1 @@
1
- const a20_0x4f4649=a20_0x32e0;(function(_0x486ac6,_0x9cfdc2){const _0x173201=a20_0x32e0,_0x443ccd=_0x486ac6();while(!![]){try{const _0x49a41c=-parseInt(_0x173201(0x19e))/0x1+parseInt(_0x173201(0x15b))/0x2+-parseInt(_0x173201(0x170))/0x3*(-parseInt(_0x173201(0x18f))/0x4)+parseInt(_0x173201(0x16d))/0x5*(parseInt(_0x173201(0x1a4))/0x6)+parseInt(_0x173201(0x171))/0x7*(parseInt(_0x173201(0x17a))/0x8)+-parseInt(_0x173201(0x19b))/0x9+-parseInt(_0x173201(0x166))/0xa;if(_0x49a41c===_0x9cfdc2)break;else _0x443ccd['push'](_0x443ccd['shift']());}catch(_0xb71c52){_0x443ccd['push'](_0x443ccd['shift']());}}}(a20_0x1d43,0xb7cc6));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a20_0x1d43(){const _0x4f3b41=['\x20\x20LOGICAL\x20COMBINATORS','command','read','\x20completed\x20in\x20','4159350aNsqUM','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','1437247sfzRlY','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','paramsRequired','build','getOne','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','560598bdiJok','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2685386hnNIyk','POST','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','batchCreate','Preview:\x20data\x20','\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}','risk','dryRun','params','9492490fePxpW','filter','now','helpExtra','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','Get\x20a\x20single\x20record\x20by\x20ID','25eebKsC','map','write','726336fbixwc','2149UCoEFF','aggregate','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20AGGREGATE\x20TYPES','str','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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','27760Gvlszo','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20$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\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','data','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20EXAMPLES','Update\x20an\x20existing\x20record','update','\x20\x20PARAMS\x20STRUCTURE','\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\x20PAGINATION','\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}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','join','create','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','12crsoSo','\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}','/api/{appCode}/','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}]','code','data\x20','delete'];a20_0x1d43=function(){return _0x4f3b41;};return a20_0x1d43();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a20_0x4f4649(0x167),'risk':a20_0x4f4649(0x199),'paramsRequired':![],'description':a20_0x4f4649(0x178),'paramsHint':a20_0x4f4649(0x188)+a20_0x4f4649(0x15d),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a20_0x4f4649(0x18d),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$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_0x4f4649(0x15e),a20_0x4f4649(0x159),a20_0x4f4649(0x187),'\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_0x4f4649(0x197),a20_0x4f4649(0x17d),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a20_0x4f4649(0x189),a20_0x4f4649(0x158),a20_0x4f4649(0x17c),a20_0x4f4649(0x193),a20_0x4f4649(0x18c),a20_0x4f4649(0x15f),'',a20_0x4f4649(0x186),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a20_0x4f4649(0x16b),a20_0x4f4649(0x180)][a20_0x4f4649(0x18a)]('\x0a')},{'command':a20_0x4f4649(0x1a2),'operation':a20_0x4f4649(0x1a2),'risk':a20_0x4f4649(0x199),'paramsRequired':!![],'description':a20_0x4f4649(0x16c),'paramsHint':a20_0x4f4649(0x15a)},{'command':a20_0x4f4649(0x18b),'operation':a20_0x4f4649(0x18b),'risk':a20_0x4f4649(0x16f),'paramsRequired':!![],'description':a20_0x4f4649(0x19d),'paramsHint':a20_0x4f4649(0x18e)},{'command':'batchCreate','operation':'batchCreate','risk':a20_0x4f4649(0x16f),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a20_0x4f4649(0x17b)},{'command':a20_0x4f4649(0x183),'operation':'update','risk':'write','paramsRequired':!![],'description':a20_0x4f4649(0x182),'paramsHint':a20_0x4f4649(0x17e)},{'command':a20_0x4f4649(0x196),'operation':a20_0x4f4649(0x196),'risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0x4f4649(0x15a)},{'command':a20_0x4f4649(0x172),'operation':a20_0x4f4649(0x172),'risk':a20_0x4f4649(0x199),'paramsRequired':![],'description':a20_0x4f4649(0x16a),'paramsHint':a20_0x4f4649(0x173)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a20_0x4f4649(0x176),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a20_0x4f4649(0x162),'\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}',a20_0x4f4649(0x190),a20_0x4f4649(0x185),'',a20_0x4f4649(0x184),'\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a20_0x4f4649(0x19f),'\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_0x4f4649(0x181),a20_0x4f4649(0x175),a20_0x4f4649(0x1a3),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a20_0x4f4649(0x179),'',a20_0x4f4649(0x19c)]['join']('\x0a')}];function makeDataCommand(_0x56c828){const _0xfe8415=a20_0x4f4649,_0x3fe29e=_0xfe8415(0x195)+_0x56c828[_0xfe8415(0x198)],_0x62e7a6={'service':_0xfe8415(0x17f),'command':_0x56c828[_0xfe8415(0x198)],'description':_0x56c828['description'],'risk':_0x56c828[_0xfe8415(0x163)],'helpExtra':_0x56c828[_0xfe8415(0x169)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x56c828['paramsHint']}],'validate':async _0x3929cd=>{const _0x247261=_0xfe8415;_0x56c828[_0x247261(0x1a0)]&&requireAnyOf(_0x3929cd,[_0x247261(0x165)],_0x3fe29e),_0x56c828[_0x247261(0x192)]===_0x247261(0x160)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3929cd['str'](_0x247261(0x165))));},async 'execute'(_0x20164d){const _0xe4cefd=_0xfe8415,_0x3ad8cb=_0x20164d['str']('code'),_0x1e9542=_0x56c828[_0xe4cefd(0x192)]===_0xe4cefd(0x160)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x20164d[_0xe4cefd(0x177)]('params'))):parseJsonParams(_0x20164d['str'](_0xe4cefd(0x165)))??{},_0x4c8cb6=Date[_0xe4cefd(0x168)](),_0x3feeca=await executeData(_0x3ad8cb,_0x56c828['operation'],_0x1e9542),_0x3157d0=Date[_0xe4cefd(0x168)]()-_0x4c8cb6;return{'ok':!![],'data':{'result':_0x3feeca,'elapsed':_0x3157d0},'message':_0xe4cefd(0x195)+_0x56c828[_0xe4cefd(0x198)]+_0xe4cefd(0x19a)+_0x3157d0+'ms'};}};return _0x56c828[_0xfe8415(0x163)]!=='read'&&(_0x62e7a6[_0xfe8415(0x164)]=async _0x34ba3b=>{const _0x1ab82b=_0xfe8415,_0x5e3ecc=_0x34ba3b[_0x1ab82b(0x177)](_0x1ab82b(0x194)),_0x572f4c=_0x56c828[_0x1ab82b(0x192)]===_0x1ab82b(0x160)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x34ba3b[_0x1ab82b(0x177)](_0x1ab82b(0x165)))):parseJsonParams(_0x34ba3b[_0x1ab82b(0x177)](_0x1ab82b(0x165)))??{};return dryRun(_0x1ab82b(0x15c),_0x1ab82b(0x191)+_0x5e3ecc+'/'+_0x56c828[_0x1ab82b(0x192)])['body'](_0x572f4c)['description'](_0x1ab82b(0x161)+_0x56c828['command']+_0x1ab82b(0x174)+_0x5e3ecc)[_0x1ab82b(0x1a1)]();}),_0x62e7a6;}function a20_0x32e0(_0x53eabc,_0x5c2e59){_0x53eabc=_0x53eabc-0x158;const _0x1d4328=a20_0x1d43();let _0x32e0e9=_0x1d4328[_0x53eabc];return _0x32e0e9;}export const dataDefinitions=specs[a20_0x4f4649(0x16e)](makeDataCommand);
1
+ const a20_0x45adbe=a20_0x7dcf;(function(_0x192fe7,_0x289dee){const _0xef2602=a20_0x7dcf,_0x2e0ded=_0x192fe7();while(!![]){try{const _0xf0c64d=parseInt(_0xef2602(0x211))/0x1+parseInt(_0xef2602(0x208))/0x2*(parseInt(_0xef2602(0x216))/0x3)+-parseInt(_0xef2602(0x1d4))/0x4+parseInt(_0xef2602(0x1e2))/0x5+parseInt(_0xef2602(0x20b))/0x6*(parseInt(_0xef2602(0x1db))/0x7)+-parseInt(_0xef2602(0x1f5))/0x8+parseInt(_0xef2602(0x219))/0x9*(-parseInt(_0xef2602(0x1fd))/0xa);if(_0xf0c64d===_0x289dee)break;else _0x2e0ded['push'](_0x2e0ded['shift']());}catch(_0xa61aa5){_0x2e0ded['push'](_0x2e0ded['shift']());}}}(a20_0x3b01,0xa4364));import{executeData}from'../../core/sdk-client.js';function a20_0x3b01(){const _0x35c164=['\x20\x20LOGICAL\x20COMBINATORS','batchCreate','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','now','risk','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20completed\x20in\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','build','write','\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}','2687404YRTHhY','\x20\x20WHERE\x20OPERATORS','paramsHint','data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Get\x20a\x20single\x20record\x20by\x20ID','1190RBTONs','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\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}}]}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20PARAMS\x20STRUCTURE','update','5114100EDvgqT','\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}}','code','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20AGGREGATE\x20TYPES','command','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','join','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','body','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','read','helpExtra','filter','getOne','description','params','10021176sGNGej','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','create','paramsRequired','270zhERja','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20PAGINATION','\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}}','aggregate','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\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}','str','/api/{appCode}/','\x20on\x20dataset\x20','data','16fNzRQQ','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','34926gewDXA','\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\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','1057785xxMipB','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20$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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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}}','137154rPqSzJ','high-risk-write','Update\x20an\x20existing\x20record','279603JBsrJf','operation','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Preview:\x20data\x20','dryRun','delete','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}'];a20_0x3b01=function(){return _0x35c164;};return a20_0x3b01();}function a20_0x7dcf(_0x3422b0,_0x5eacf1){_0x3422b0=_0x3422b0-0x1cb;const _0x3b01d5=a20_0x3b01();let _0x7dcf3f=_0x3b01d5[_0x3422b0];return _0x7dcf3f;}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a20_0x45adbe(0x1f1),'risk':'read','paramsRequired':![],'description':a20_0x45adbe(0x1df),'paramsHint':a20_0x45adbe(0x21f)+a20_0x45adbe(0x1f7),'helpExtra':[a20_0x45adbe(0x1d5),a20_0x45adbe(0x200),a20_0x45adbe(0x215),a20_0x45adbe(0x1dc),a20_0x45adbe(0x227),a20_0x45adbe(0x1e3),a20_0x45adbe(0x1cd),a20_0x45adbe(0x20e),a20_0x45adbe(0x228),a20_0x45adbe(0x1ce),a20_0x45adbe(0x213),'',a20_0x45adbe(0x221),a20_0x45adbe(0x202),a20_0x45adbe(0x1de),'',a20_0x45adbe(0x20f),a20_0x45adbe(0x210),'\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]',a20_0x45adbe(0x1cc),a20_0x45adbe(0x1f6),a20_0x45adbe(0x209),'',a20_0x45adbe(0x1ff),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a20_0x45adbe(0x20a),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a20_0x45adbe(0x1e9)]('\x0a')},{'command':'getOne','operation':a20_0x45adbe(0x1f2),'risk':a20_0x45adbe(0x1ef),'paramsRequired':!![],'description':a20_0x45adbe(0x1da),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a20_0x45adbe(0x1fb),'operation':a20_0x45adbe(0x1fb),'risk':a20_0x45adbe(0x1d2),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a20_0x45adbe(0x21b)},{'command':a20_0x45adbe(0x222),'operation':a20_0x45adbe(0x222),'risk':a20_0x45adbe(0x1d2),'paramsRequired':!![],'description':a20_0x45adbe(0x1e5),'paramsHint':a20_0x45adbe(0x1cf)},{'command':a20_0x45adbe(0x1e1),'operation':'update','risk':'write','paramsRequired':!![],'description':a20_0x45adbe(0x218),'paramsHint':a20_0x45adbe(0x1f9)},{'command':a20_0x45adbe(0x21e),'operation':a20_0x45adbe(0x21e),'risk':a20_0x45adbe(0x217),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0x45adbe(0x1d9)},{'command':a20_0x45adbe(0x201),'operation':a20_0x45adbe(0x201),'risk':a20_0x45adbe(0x1ef),'paramsRequired':![],'description':a20_0x45adbe(0x1ee),'paramsHint':a20_0x45adbe(0x214)+a20_0x45adbe(0x1e8),'helpExtra':[a20_0x45adbe(0x1e6),a20_0x45adbe(0x1d0),a20_0x45adbe(0x1d8),a20_0x45adbe(0x1fe),a20_0x45adbe(0x203),a20_0x45adbe(0x212),a20_0x45adbe(0x220),a20_0x45adbe(0x1d3),'',a20_0x45adbe(0x1e0),a20_0x45adbe(0x223),a20_0x45adbe(0x1ed),a20_0x45adbe(0x224),a20_0x45adbe(0x1dd),a20_0x45adbe(0x20c),a20_0x45adbe(0x1ea),'','\x20\x20EXAMPLES',a20_0x45adbe(0x20d),a20_0x45adbe(0x1fa),'',a20_0x45adbe(0x1f8),'\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_0x45adbe(0x1ec)][a20_0x45adbe(0x1e9)]('\x0a')}];function makeDataCommand(_0x58b800){const _0x3688b1=a20_0x45adbe,_0x3e65cf=_0x3688b1(0x1d7)+_0x58b800['command'],_0x2737bc={'service':_0x3688b1(0x207),'command':_0x58b800[_0x3688b1(0x1e7)],'description':_0x58b800[_0x3688b1(0x1f3)],'risk':_0x58b800['risk'],'helpExtra':_0x58b800[_0x3688b1(0x1f0)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x58b800[_0x3688b1(0x1d6)]}],'validate':async _0x2ddd2b=>{const _0x511686=_0x3688b1;_0x58b800[_0x511686(0x1fc)]&&requireAnyOf(_0x2ddd2b,[_0x511686(0x1f4)],_0x3e65cf),_0x58b800[_0x511686(0x21a)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2ddd2b[_0x511686(0x204)]('params')));},async 'execute'(_0x23aaae){const _0x268d26=_0x3688b1,_0x3570f7=_0x23aaae[_0x268d26(0x204)](_0x268d26(0x1e4)),_0x3051ba=_0x58b800['operation']===_0x268d26(0x222)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x23aaae[_0x268d26(0x204)](_0x268d26(0x1f4)))):parseJsonParams(_0x23aaae[_0x268d26(0x204)](_0x268d26(0x1f4)))??{},_0x8d071f=Date[_0x268d26(0x225)](),_0x2c04a5=await executeData(_0x3570f7,_0x58b800['operation'],_0x3051ba),_0xc2c7b=Date[_0x268d26(0x225)]()-_0x8d071f;return{'ok':!![],'data':{'result':_0x2c04a5,'elapsed':_0xc2c7b},'message':_0x268d26(0x1d7)+_0x58b800[_0x268d26(0x1e7)]+_0x268d26(0x1cb)+_0xc2c7b+'ms'};}};return _0x58b800[_0x3688b1(0x226)]!==_0x3688b1(0x1ef)&&(_0x2737bc[_0x3688b1(0x21d)]=async _0x1fb8b2=>{const _0x33935a=_0x3688b1,_0x3f9140=_0x1fb8b2['str'](_0x33935a(0x1e4)),_0x29c520=_0x58b800[_0x33935a(0x21a)]===_0x33935a(0x222)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1fb8b2[_0x33935a(0x204)](_0x33935a(0x1f4)))):parseJsonParams(_0x1fb8b2[_0x33935a(0x204)](_0x33935a(0x1f4)))??{};return dryRun('POST',_0x33935a(0x205)+_0x3f9140+'/'+_0x58b800[_0x33935a(0x21a)])[_0x33935a(0x1eb)](_0x29c520)[_0x33935a(0x1f3)](_0x33935a(0x21c)+_0x58b800[_0x33935a(0x1e7)]+_0x33935a(0x206)+_0x3f9140)[_0x33935a(0x1d1)]();}),_0x2737bc;}export const dataDefinitions=specs['map'](makeDataCommand);
@@ -1 +1 @@
1
- const a21_0x5e122b=a21_0x6adc;(function(_0x2a4c5a,_0x415197){const _0x484b1e=a21_0x6adc,_0x382715=_0x2a4c5a();while(!![]){try{const _0x309a5d=-parseInt(_0x484b1e(0x1e0))/0x1*(-parseInt(_0x484b1e(0x1ff))/0x2)+parseInt(_0x484b1e(0x1ec))/0x3+-parseInt(_0x484b1e(0x1e9))/0x4*(-parseInt(_0x484b1e(0x1e6))/0x5)+parseInt(_0x484b1e(0x1dd))/0x6*(parseInt(_0x484b1e(0x220))/0x7)+parseInt(_0x484b1e(0x1f0))/0x8+parseInt(_0x484b1e(0x204))/0x9+-parseInt(_0x484b1e(0x216))/0xa*(parseInt(_0x484b1e(0x214))/0xb);if(_0x309a5d===_0x415197)break;else _0x382715['push'](_0x382715['shift']());}catch(_0xe21fa7){_0x382715['push'](_0x382715['shift']());}}}(a21_0x22a0,0x53c4f));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x13960c){const _0x4dc8f6=a21_0x6adc;if(_0x13960c['deleted'])return null;const _0x5a0e06=Boolean(_0x13960c['displayName']!==undefined||_0x13960c[_0x4dc8f6(0x20c)]!==undefined);let _0x12b5de={};if(!_0x5a0e06&&typeof _0x13960c[_0x4dc8f6(0x1eb)]===_0x4dc8f6(0x213))try{_0x12b5de=JSON[_0x4dc8f6(0x1d9)](_0x13960c[_0x4dc8f6(0x1eb)]);}catch{}const _0xfaa526=_0x5a0e06?_0x13960c['name']:_0x13960c[_0x4dc8f6(0x1f3)],_0x4b7e4f=_0x5a0e06?_0x13960c[_0x4dc8f6(0x224)]:_0x13960c['name'],_0xf1d766=_0x5a0e06?_0x13960c['doType']:_0x13960c['type']||_0x13960c[_0x4dc8f6(0x20e)],_0x16bab0=_0x5a0e06?_0x13960c[_0x4dc8f6(0x1f7)]===!![]:_0x12b5de[_0x4dc8f6(0x1f7)]===!![],_0x47e779=_0x5a0e06?_0x13960c[_0x4dc8f6(0x1ef)]===!![]:_0x12b5de['required']===!![],_0x3a8b24=_0x5a0e06?_0x13960c[_0x4dc8f6(0x223)]??null:_0x12b5de[_0x4dc8f6(0x223)]??null,_0x417550={'name':_0xfaa526,'displayName':_0x4b7e4f||_0xfaa526,'type':_0xf1d766,'dbType':_0x13960c[_0x4dc8f6(0x1e4)],'pk':_0x16bab0,'required':_0x47e779,'description':_0x13960c[_0x4dc8f6(0x1e7)]||undefined};return Array[_0x4dc8f6(0x20b)](_0x3a8b24)&&_0x3a8b24[_0x4dc8f6(0x1f1)]>0x0&&(_0x417550[_0x4dc8f6(0x223)]=_0x3a8b24),_0x417550;}function parseJsonMaybe(_0x5de88b){const _0x37ef61=a21_0x6adc;if(typeof _0x5de88b!==_0x37ef61(0x213))return _0x5de88b;try{return JSON[_0x37ef61(0x1d9)](_0x5de88b);}catch{return _0x5de88b;}}function normalizeOperationEntry(_0x397d6e,_0x1877af){const _0x4c6622=a21_0x6adc;if(!_0x1877af||typeof _0x1877af!==_0x4c6622(0x1e2))return null;if(!_0x1877af[_0x4c6622(0x1df)]||!_0x1877af[_0x4c6622(0x1f6)])return null;const _0xa297eb={'name':_0x397d6e,'method':_0x1877af['method'],'path':_0x1877af[_0x4c6622(0x1f6)]};if(_0x1877af['host'])_0xa297eb[_0x4c6622(0x1dc)]=_0x1877af['host'];if(_0x1877af['requestBody']!=null)_0xa297eb['requestBody']=parseJsonMaybe(_0x1877af['requestBody']);if(_0x1877af[_0x4c6622(0x218)]!=null)_0xa297eb[_0x4c6622(0x218)]=parseJsonMaybe(_0x1877af[_0x4c6622(0x218)]);if(_0x1877af[_0x4c6622(0x1e3)]!=null)_0xa297eb[_0x4c6622(0x1e3)]=_0x1877af[_0x4c6622(0x1e3)];if(_0x1877af['afterScriptId']!=null)_0xa297eb[_0x4c6622(0x1fe)]=_0x1877af['afterScriptId'];if(Array['isArray'](_0x1877af[_0x4c6622(0x227)]))_0xa297eb[_0x4c6622(0x227)]=_0x1877af[_0x4c6622(0x227)];if(Array['isArray'](_0x1877af[_0x4c6622(0x226)]))_0xa297eb[_0x4c6622(0x226)]=_0x1877af[_0x4c6622(0x226)];return _0xa297eb;}function summarizeDbtable(_0x20ea06){const _0x400a5d=a21_0x6adc,_0x2f90cc={},_0x4f7f8d=[_0x400a5d(0x207),'dbName',_0x400a5d(0x1e1),_0x400a5d(0x202),_0x400a5d(0x1f7),'allFields',_0x400a5d(0x20a),'createTimeField',_0x400a5d(0x1ea),_0x400a5d(0x219),_0x400a5d(0x222),_0x400a5d(0x200),_0x400a5d(0x208),_0x400a5d(0x210),'dblinkInfoDTO'];for(const _0x2f558e of _0x4f7f8d){if(_0x20ea06[_0x2f558e]!==undefined)_0x2f90cc[_0x2f558e]=_0x20ea06[_0x2f558e];}return typeof _0x2f90cc['allFields']===_0x400a5d(0x213)&&_0x2f90cc[_0x400a5d(0x201)][_0x400a5d(0x1f1)]>0x0&&(_0x2f90cc[_0x400a5d(0x1f4)]=_0x2f90cc[_0x400a5d(0x201)][_0x400a5d(0x20f)](',')[_0x400a5d(0x1f2)](_0x25f56c=>_0x25f56c[_0x400a5d(0x1f5)]())[_0x400a5d(0x20d)](Boolean)),_0x2f90cc;}function normalizeRelatedPages(_0x1705ba){const _0x835896=a21_0x6adc;if(!Array['isArray'](_0x1705ba))return[];return _0x1705ba['filter'](_0x13bd12=>_0x13bd12&&typeof _0x13bd12===_0x835896(0x1e2))[_0x835896(0x1f2)](_0x1d53e9=>({'id':_0x1d53e9['id'],'type':_0x1d53e9[_0x835896(0x215)],'code':_0x1d53e9[_0x835896(0x1f3)],'title':_0x1d53e9[_0x835896(0x1fc)],'deleted':_0x1d53e9[_0x835896(0x1fd)]===!![]}));}function normalizeFallbackFieldName(_0x1d53e7,_0x1ade21){const _0x16b0b8=_0x1d53e7['trim']();if(!_0x16b0b8)return null;return{'name':_0x16b0b8,'displayName':_0x16b0b8,'type':undefined,'dbType':undefined,'pk':_0x16b0b8===_0x1ade21,'required':![],'description':undefined};}function a21_0x6adc(_0x36ebfc,_0x25e10e){_0x36ebfc=_0x36ebfc-0x1d9;const _0x22a04e=a21_0x22a0();let _0x6adc99=_0x22a04e[_0x36ebfc];return _0x6adc99;}async function loadListFieldFallback(_0x5d2a1a,_0x218800){const _0x5e4991=a21_0x6adc;if(!_0x5d2a1a||!_0x218800)return[];try{const _0x3c656f=await listDatasets(_0x5d2a1a,{'code':_0x218800}),_0x3f7b92=_0x3c656f['find'](_0x2e2a6b=>_0x2e2a6b[_0x5e4991(0x1f3)]===_0x218800)??_0x3c656f[0x0],_0x2676eb=_0x3f7b92?.[_0x5e4991(0x1ee)]??{},_0x9ad884=typeof _0x2676eb[_0x5e4991(0x201)]===_0x5e4991(0x213)?_0x2676eb[_0x5e4991(0x201)][_0x5e4991(0x20f)](','):[];return _0x9ad884[_0x5e4991(0x1f2)](_0x4582da=>normalizeFallbackFieldName(_0x4582da,_0x2676eb['pkField']))[_0x5e4991(0x20d)](_0x40adbf=>_0x40adbf!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a21_0x5e122b(0x1f9),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x260288){const _0x7ee4cb=a21_0x5e122b,_0x43a38c=await getDatasetDetail(_0x260288['str']('code')),_0x2f7011=Array[_0x7ee4cb(0x20b)](_0x43a38c[_0x7ee4cb(0x21a)])?_0x43a38c[_0x7ee4cb(0x21a)]:Array[_0x7ee4cb(0x20b)](_0x43a38c[_0x7ee4cb(0x1da)])?_0x43a38c[_0x7ee4cb(0x1da)]:[];let _0x1fdb2e=_0x2f7011[_0x7ee4cb(0x1f2)](_0x4cf355=>normalizeField(_0x4cf355))[_0x7ee4cb(0x20d)](_0xedff9e=>_0xedff9e!==null);_0x1fdb2e['length']===0x0&&(_0x1fdb2e=await loadListFieldFallback(_0x260288['appCode'],_0x260288['str'](_0x7ee4cb(0x1f3))));const _0x113022=_0x43a38c[_0x7ee4cb(0x1ed)]??{},_0xe5d19b=[];for(const [_0x13e083,_0x58e717]of Object[_0x7ee4cb(0x21d)](_0x113022)){const _0x4a49e9=normalizeOperationEntry(_0x13e083,_0x58e717);if(_0x4a49e9)_0xe5d19b[_0x7ee4cb(0x205)](_0x4a49e9);}const _0x8375f1=_0x43a38c[_0x7ee4cb(0x1ee)]??{},_0x1e08d1=_0x43a38c[_0x7ee4cb(0x1fb)]??{},_0x23128e=_0x8375f1['dbId']!=null?{'id':_0x8375f1[_0x7ee4cb(0x207)],'name':_0x8375f1[_0x7ee4cb(0x1e5)]??null}:undefined;let _0x4ffb0e;return typeof _0x43a38c[_0x7ee4cb(0x1eb)]===_0x7ee4cb(0x213)&&(_0x4ffb0e=parseJsonMaybe(_0x43a38c[_0x7ee4cb(0x1eb)])),{'ok':!![],'data':{'id':_0x43a38c[_0x7ee4cb(0x21c)]??_0x43a38c['id'],'name':_0x43a38c[_0x7ee4cb(0x211)],'code':_0x43a38c[_0x7ee4cb(0x1f8)]||_0x43a38c[_0x7ee4cb(0x1f3)],'doVersion':_0x43a38c[_0x7ee4cb(0x21e)],'description':_0x43a38c['description']||_0x1e08d1[_0x7ee4cb(0x221)]||undefined,'source':_0x43a38c[_0x7ee4cb(0x212)]||_0x1e08d1[_0x7ee4cb(0x1db)],'table':_0x8375f1[_0x7ee4cb(0x1e1)]||_0x1e08d1['tableName'],'datasetKey':_0x8375f1[_0x7ee4cb(0x202)],'pk':_0x8375f1[_0x7ee4cb(0x1f7)],'db':_0x23128e,'dbtable':summarizeDbtable(_0x8375f1),'fields':_0x1fdb2e,'operations':_0xe5d19b,'indexes':Array[_0x7ee4cb(0x20b)](_0x1e08d1['indexes'])?_0x1e08d1[_0x7ee4cb(0x21f)]:[],'relations':Array[_0x7ee4cb(0x20b)](_0x43a38c[_0x7ee4cb(0x1e8)])?_0x43a38c[_0x7ee4cb(0x1e8)]['map'](_0x5791bd=>({'fromField':_0x5791bd[_0x7ee4cb(0x217)],'toDataset':_0x5791bd[_0x7ee4cb(0x1de)],'toCode':_0x5791bd[_0x7ee4cb(0x21b)],'toTable':_0x5791bd[_0x7ee4cb(0x203)],'toField':_0x5791bd['toField'],'labelField':_0x5791bd[_0x7ee4cb(0x225)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x43a38c[_0x7ee4cb(0x206)]),...Array[_0x7ee4cb(0x20b)](_0x43a38c[_0x7ee4cb(0x1fa)])?{'columnCodeListWithDeleted':_0x43a38c[_0x7ee4cb(0x1fa)]}:{},'formatRules':Array[_0x7ee4cb(0x20b)](_0x43a38c['formatRules'])?_0x43a38c[_0x7ee4cb(0x228)]:[],'validateRules':Array[_0x7ee4cb(0x20b)](_0x43a38c[_0x7ee4cb(0x209)])?_0x43a38c[_0x7ee4cb(0x209)]:[],..._0x4ffb0e!==undefined?{'extend':_0x4ffb0e}:{},'stats':{'fieldCount':_0x1fdb2e[_0x7ee4cb(0x1f1)],'operationCount':_0xe5d19b[_0x7ee4cb(0x1f1)]}}};}};function a21_0x22a0(){const _0x259b31=['title','deleted','afterScriptId','224554QgLSwT','modifierIdField','allFields','datasetKey','toTableName','478305ivqfcv','push','relatedPageInfoList','dbId','modifierNameField','validateRules','logicField','isArray','doType','filter','dataType','split','labelField','name','source','string','4213eNArfX','type','45260sEKlQq','fromField','responseBody','creatorIdField','fields','toDatasetCode','modelId','entries','doVersion','indexes','171311rjotlz','tableComment','creatorNameField','options','displayName','toFieldLabel','responseFields','requestFields','formatRules','parse','properties','sourceType','host','78YBHhGy','toDatasetName','method','2VllwgD','tableName','object','beforeScriptId','dbType','dbName','248305ZCTpoX','description','relations','40DwtZXW','updateTimeField','extend','1853880cBsdTm','operations','dbtableConfig','required','2929272IqBQlw','length','map','code','allFieldNames','trim','path','pkField','modelCode','detail','columnCodeListWithDeleted','dataset'];a21_0x22a0=function(){return _0x259b31;};return a21_0x22a0();}
1
+ function a21_0x198e(_0xcba385,_0x21d91a){_0xcba385=_0xcba385-0x9b;const _0x13bc0d=a21_0x13bc();let _0x198e58=_0x13bc0d[_0xcba385];return _0x198e58;}const a21_0x1c9cac=a21_0x198e;(function(_0xe0f782,_0x42dabd){const _0x468a30=a21_0x198e,_0x3c9161=_0xe0f782();while(!![]){try{const _0x330d3f=parseInt(_0x468a30(0xc9))/0x1+-parseInt(_0x468a30(0xb4))/0x2+-parseInt(_0x468a30(0xac))/0x3*(-parseInt(_0x468a30(0xb6))/0x4)+-parseInt(_0x468a30(0xb3))/0x5*(parseInt(_0x468a30(0xcd))/0x6)+parseInt(_0x468a30(0xba))/0x7*(parseInt(_0x468a30(0xdc))/0x8)+-parseInt(_0x468a30(0xd4))/0x9*(parseInt(_0x468a30(0xab))/0xa)+parseInt(_0x468a30(0xae))/0xb;if(_0x330d3f===_0x42dabd)break;else _0x3c9161['push'](_0x3c9161['shift']());}catch(_0x25955a){_0x3c9161['push'](_0x3c9161['shift']());}}}(a21_0x13bc,0x750bb));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x51ec1f){const _0x26b5c2=a21_0x198e;if(_0x51ec1f['deleted'])return null;const _0x2ea161=Boolean(_0x51ec1f[_0x26b5c2(0xc8)]!==undefined||_0x51ec1f['doType']!==undefined);let _0x18ee40={};if(!_0x2ea161&&typeof _0x51ec1f[_0x26b5c2(0xc6)]==='string')try{_0x18ee40=JSON['parse'](_0x51ec1f[_0x26b5c2(0xc6)]);}catch{}const _0x175030=_0x2ea161?_0x51ec1f['name']:_0x51ec1f[_0x26b5c2(0x9d)],_0x2ddd1e=_0x2ea161?_0x51ec1f['displayName']:_0x51ec1f['name'],_0x2b64d2=_0x2ea161?_0x51ec1f[_0x26b5c2(0xc2)]:_0x51ec1f[_0x26b5c2(0xad)]||_0x51ec1f[_0x26b5c2(0xc4)],_0x5e9f6b=_0x2ea161?_0x51ec1f[_0x26b5c2(0xa0)]===!![]:_0x18ee40[_0x26b5c2(0xa0)]===!![],_0x7cdf11=_0x2ea161?_0x51ec1f[_0x26b5c2(0xa2)]===!![]:_0x18ee40['required']===!![],_0x12d547=_0x2ea161?_0x51ec1f[_0x26b5c2(0xd6)]??null:_0x18ee40[_0x26b5c2(0xd6)]??null,_0x395dda={'name':_0x175030,'displayName':_0x2ddd1e||_0x175030,'type':_0x2b64d2,'dbType':_0x51ec1f[_0x26b5c2(0xe6)],'pk':_0x5e9f6b,'required':_0x7cdf11,'description':_0x51ec1f[_0x26b5c2(0xd7)]||undefined};return Array[_0x26b5c2(0xcc)](_0x12d547)&&_0x12d547[_0x26b5c2(0xe1)]>0x0&&(_0x395dda[_0x26b5c2(0xd6)]=_0x12d547),_0x395dda;}function parseJsonMaybe(_0x44617c){const _0xe71955=a21_0x198e;if(typeof _0x44617c!==_0xe71955(0xdd))return _0x44617c;try{return JSON[_0xe71955(0xa8)](_0x44617c);}catch{return _0x44617c;}}function normalizeOperationEntry(_0x37ca6a,_0x56ad22){const _0x1bba70=a21_0x198e;if(!_0x56ad22||typeof _0x56ad22!==_0x1bba70(0xca))return null;if(!_0x56ad22['method']||!_0x56ad22['path'])return null;const _0x255d40={'name':_0x37ca6a,'method':_0x56ad22[_0x1bba70(0xcb)],'path':_0x56ad22[_0x1bba70(0xc0)]};if(_0x56ad22[_0x1bba70(0xe0)])_0x255d40[_0x1bba70(0xe0)]=_0x56ad22[_0x1bba70(0xe0)];if(_0x56ad22[_0x1bba70(0xb5)]!=null)_0x255d40[_0x1bba70(0xb5)]=parseJsonMaybe(_0x56ad22[_0x1bba70(0xb5)]);if(_0x56ad22['responseBody']!=null)_0x255d40['responseBody']=parseJsonMaybe(_0x56ad22[_0x1bba70(0xaf)]);if(_0x56ad22[_0x1bba70(0xd1)]!=null)_0x255d40[_0x1bba70(0xd1)]=_0x56ad22[_0x1bba70(0xd1)];if(_0x56ad22[_0x1bba70(0xdf)]!=null)_0x255d40[_0x1bba70(0xdf)]=_0x56ad22[_0x1bba70(0xdf)];if(Array[_0x1bba70(0xcc)](_0x56ad22[_0x1bba70(0xa7)]))_0x255d40['requestFields']=_0x56ad22[_0x1bba70(0xa7)];if(Array['isArray'](_0x56ad22[_0x1bba70(0xce)]))_0x255d40['responseFields']=_0x56ad22['responseFields'];return _0x255d40;}function summarizeDbtable(_0x305115){const _0x3d9cf1=a21_0x198e,_0x11937f={},_0x58b0e5=[_0x3d9cf1(0xb2),'dbName',_0x3d9cf1(0xc5),_0x3d9cf1(0xb1),'pkField',_0x3d9cf1(0xe5),_0x3d9cf1(0xbf),_0x3d9cf1(0xbe),'updateTimeField','creatorIdField',_0x3d9cf1(0xc7),'modifierIdField','modifierNameField',_0x3d9cf1(0xd8),'dblinkInfoDTO'];for(const _0xac55b7 of _0x58b0e5){if(_0x305115[_0xac55b7]!==undefined)_0x11937f[_0xac55b7]=_0x305115[_0xac55b7];}return typeof _0x11937f[_0x3d9cf1(0xe5)]===_0x3d9cf1(0xdd)&&_0x11937f['allFields'][_0x3d9cf1(0xe1)]>0x0&&(_0x11937f[_0x3d9cf1(0xd9)]=_0x11937f[_0x3d9cf1(0xe5)][_0x3d9cf1(0xa1)](',')['map'](_0x4ff700=>_0x4ff700['trim']())['filter'](Boolean)),_0x11937f;}function normalizeRelatedPages(_0x237c65){const _0xff3393=a21_0x198e;if(!Array['isArray'](_0x237c65))return[];return _0x237c65[_0xff3393(0xaa)](_0x5dce1c=>_0x5dce1c&&typeof _0x5dce1c===_0xff3393(0xca))['map'](_0x4c553e=>({'id':_0x4c553e['id'],'type':_0x4c553e[_0xff3393(0xad)],'code':_0x4c553e[_0xff3393(0x9d)],'title':_0x4c553e['title'],'deleted':_0x4c553e[_0xff3393(0xd2)]===!![]}));}function normalizeFallbackFieldName(_0x15b0e4,_0x450de7){const _0x6f073a=a21_0x198e,_0x264200=_0x15b0e4[_0x6f073a(0xe2)]();if(!_0x264200)return null;return{'name':_0x264200,'displayName':_0x264200,'type':undefined,'dbType':undefined,'pk':_0x264200===_0x450de7,'required':![],'description':undefined};}async function loadListFieldFallback(_0xca88a0,_0x10d677){const _0x51415d=a21_0x198e;if(!_0xca88a0||!_0x10d677)return[];try{const _0x44cafc=await listDatasets(_0xca88a0,{'code':_0x10d677}),_0x4673e1=_0x44cafc['find'](_0x42e559=>_0x42e559[_0x51415d(0x9d)]===_0x10d677)??_0x44cafc[0x0],_0x1d8218=_0x4673e1?.[_0x51415d(0xd0)]??{},_0x492313=typeof _0x1d8218['allFields']==='string'?_0x1d8218[_0x51415d(0xe5)][_0x51415d(0xa1)](','):[];return _0x492313[_0x51415d(0x9e)](_0x269c03=>normalizeFallbackFieldName(_0x269c03,_0x1d8218[_0x51415d(0xa0)]))['filter'](_0xb51f1=>_0xb51f1!==null);}catch{return[];}}export const datasetDetail={'service':a21_0x1c9cac(0xc1),'command':a21_0x1c9cac(0xe4),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a21_0x1c9cac(0xd5),'flags':[CODE_FLAG],async 'execute'(_0x3590d9){const _0x3c7691=a21_0x1c9cac,_0xa6fd8=await getDatasetDetail(_0x3590d9[_0x3c7691(0x9b)]('code')),_0x1e0040=Array[_0x3c7691(0xcc)](_0xa6fd8['fields'])?_0xa6fd8[_0x3c7691(0xc3)]:Array[_0x3c7691(0xcc)](_0xa6fd8[_0x3c7691(0xde)])?_0xa6fd8[_0x3c7691(0xde)]:[];let _0x3c9f1a=_0x1e0040['map'](_0x565939=>normalizeField(_0x565939))['filter'](_0x311b92=>_0x311b92!==null);_0x3c9f1a[_0x3c7691(0xe1)]===0x0&&(_0x3c9f1a=await loadListFieldFallback(_0x3590d9[_0x3c7691(0xa9)],_0x3590d9[_0x3c7691(0x9b)](_0x3c7691(0x9d))));const _0x5229bf=_0xa6fd8[_0x3c7691(0xd3)]??{},_0x4100ac=[];for(const [_0x42b7e6,_0x460731]of Object[_0x3c7691(0x9f)](_0x5229bf)){const _0x4b61b3=normalizeOperationEntry(_0x42b7e6,_0x460731);if(_0x4b61b3)_0x4100ac[_0x3c7691(0xbc)](_0x4b61b3);}const _0x2c499d=_0xa6fd8[_0x3c7691(0xd0)]??{},_0x46b485=_0xa6fd8[_0x3c7691(0xc1)]??{},_0x56316a=_0x2c499d[_0x3c7691(0xb2)]!=null?{'id':_0x2c499d['dbId'],'name':_0x2c499d[_0x3c7691(0xb9)]??null}:undefined;let _0x51245b;return typeof _0xa6fd8[_0x3c7691(0xc6)]===_0x3c7691(0xdd)&&(_0x51245b=parseJsonMaybe(_0xa6fd8[_0x3c7691(0xc6)])),{'ok':!![],'data':{'id':_0xa6fd8[_0x3c7691(0xa6)]??_0xa6fd8['id'],'name':_0xa6fd8[_0x3c7691(0x9c)],'code':_0xa6fd8['modelCode']||_0xa6fd8[_0x3c7691(0x9d)],'doVersion':_0xa6fd8[_0x3c7691(0xda)],'description':_0xa6fd8[_0x3c7691(0xd7)]||_0x46b485['tableComment']||undefined,'source':_0xa6fd8[_0x3c7691(0xb0)]||_0x46b485[_0x3c7691(0xb7)],'table':_0x2c499d['tableName']||_0x46b485['tableName'],'datasetKey':_0x2c499d[_0x3c7691(0xb1)],'pk':_0x2c499d[_0x3c7691(0xa0)],'db':_0x56316a,'dbtable':summarizeDbtable(_0x2c499d),'fields':_0x3c9f1a,'operations':_0x4100ac,'indexes':Array['isArray'](_0x46b485[_0x3c7691(0xa4)])?_0x46b485[_0x3c7691(0xa4)]:[],'relations':Array[_0x3c7691(0xcc)](_0xa6fd8['relations'])?_0xa6fd8['relations']['map'](_0x5bad2a=>({'fromField':_0x5bad2a[_0x3c7691(0xcf)],'toDataset':_0x5bad2a[_0x3c7691(0xb8)],'toCode':_0x5bad2a[_0x3c7691(0xe3)],'toTable':_0x5bad2a[_0x3c7691(0xa3)],'toField':_0x5bad2a['toField'],'labelField':_0x5bad2a[_0x3c7691(0xdb)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0xa6fd8['relatedPageInfoList']),...Array[_0x3c7691(0xcc)](_0xa6fd8[_0x3c7691(0xa5)])?{'columnCodeListWithDeleted':_0xa6fd8[_0x3c7691(0xa5)]}:{},'formatRules':Array[_0x3c7691(0xcc)](_0xa6fd8[_0x3c7691(0xbd)])?_0xa6fd8['formatRules']:[],'validateRules':Array[_0x3c7691(0xcc)](_0xa6fd8[_0x3c7691(0xbb)])?_0xa6fd8['validateRules']:[],..._0x51245b!==undefined?{'extend':_0x51245b}:{},'stats':{'fieldCount':_0x3c9f1a['length'],'operationCount':_0x4100ac[_0x3c7691(0xe1)]}}};}};function a21_0x13bc(){const _0x2df16a=['entries','pkField','split','required','toTableName','indexes','columnCodeListWithDeleted','modelId','requestFields','parse','appCode','filter','46910GrHskj','24321OXlCmh','type','9143860HKgoYJ','responseBody','source','datasetKey','dbId','132930UNBLPb','1755270JtMcZs','requestBody','216BNSUlv','sourceType','toDatasetName','dbName','1298423AIRDaA','validateRules','push','formatRules','createTimeField','logicField','path','dataset','doType','fields','dataType','tableName','extend','creatorNameField','displayName','847657PnUhkX','object','method','isArray','144DyYozw','responseFields','fromField','dbtableConfig','beforeScriptId','deleted','operations','945HfsnOS','read','options','description','labelField','allFieldNames','doVersion','toFieldLabel','16FPKfSO','string','properties','afterScriptId','host','length','trim','toDatasetCode','detail','allFields','dbType','str','name','code','map'];a21_0x13bc=function(){return _0x2df16a;};return a21_0x13bc();}
@@ -1 +1 @@
1
- (function(_0x56d7c9,_0x576be3){const _0x412919=a22_0x3f74,_0x334030=_0x56d7c9();while(!![]){try{const _0x526e50=parseInt(_0x412919(0x15a))/0x1*(parseInt(_0x412919(0x14e))/0x2)+parseInt(_0x412919(0x151))/0x3*(-parseInt(_0x412919(0x150))/0x4)+parseInt(_0x412919(0x158))/0x5*(-parseInt(_0x412919(0x156))/0x6)+-parseInt(_0x412919(0x152))/0x7+-parseInt(_0x412919(0x14f))/0x8*(parseInt(_0x412919(0x153))/0x9)+-parseInt(_0x412919(0x157))/0xa*(parseInt(_0x412919(0x159))/0xb)+-parseInt(_0x412919(0x154))/0xc*(-parseInt(_0x412919(0x155))/0xd);if(_0x526e50===_0x576be3)break;else _0x334030['push'](_0x334030['shift']());}catch(_0x58028b){_0x334030['push'](_0x334030['shift']());}}}(a22_0x509a,0xedb06));import{datasetList}from'../../commands/dataset/list.js';function a22_0x3f74(_0x29c2d5,_0x4e935c){_0x29c2d5=_0x29c2d5-0x14e;const _0x509a71=a22_0x509a();let _0x3f748b=_0x509a71[_0x29c2d5];return _0x3f748b;}import{datasetDetail}from'../../commands/dataset/detail.js';function a22_0x509a(){const _0x2918ce=['315620uyCkLz','12419TewWFK','427895rrnyHC','4SyxEAW','14765696FMmvFM','4713836pRxoio','3KFdxVc','219233BJFlle','9tpfzPf','36NSdeCv','15280421dFArem','24xpZlOQ','890wdpFtZ'];a22_0x509a=function(){return _0x2918ce;};return a22_0x509a();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ function a22_0xedfb(_0x2e314c,_0x281691){_0x2e314c=_0x2e314c-0x1b5;const _0x58403b=a22_0x5840();let _0xedfbba=_0x58403b[_0x2e314c];return _0xedfbba;}(function(_0x1130c4,_0x43685f){const _0x59f513=a22_0xedfb,_0x3ef0f2=_0x1130c4();while(!![]){try{const _0x24c22b=-parseInt(_0x59f513(0x1ba))/0x1+parseInt(_0x59f513(0x1b7))/0x2*(parseInt(_0x59f513(0x1bb))/0x3)+parseInt(_0x59f513(0x1b6))/0x4+parseInt(_0x59f513(0x1bd))/0x5+-parseInt(_0x59f513(0x1b8))/0x6+-parseInt(_0x59f513(0x1be))/0x7*(-parseInt(_0x59f513(0x1b9))/0x8)+parseInt(_0x59f513(0x1b5))/0x9*(parseInt(_0x59f513(0x1bc))/0xa);if(_0x24c22b===_0x43685f)break;else _0x3ef0f2['push'](_0x3ef0f2['shift']());}catch(_0x2a3762){_0x3ef0f2['push'](_0x3ef0f2['shift']());}}}(a22_0x5840,0x24fd1));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x5840(){const _0x430e64=['531167FpDzUx','99JRdVxS','534536tKKSRn','72BusGtv','1701942DIyPbk','8Kqzvyw','52662RUPDqI','1032hFbcHV','34980sAFyAa','1137235pWDqiI'];a22_0x5840=function(){return _0x430e64;};return a22_0x5840();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a23_0x45a6e6=a23_0x5979;(function(_0x575952,_0x1c920e){const _0x5d4db2=a23_0x5979,_0x3b1ce1=_0x575952();while(!![]){try{const _0x35e3c7=-parseInt(_0x5d4db2(0x1a0))/0x1+-parseInt(_0x5d4db2(0x1b8))/0x2*(-parseInt(_0x5d4db2(0x1b5))/0x3)+-parseInt(_0x5d4db2(0x1a7))/0x4*(parseInt(_0x5d4db2(0x1a5))/0x5)+parseInt(_0x5d4db2(0x1a6))/0x6+-parseInt(_0x5d4db2(0x1a9))/0x7*(-parseInt(_0x5d4db2(0x1b4))/0x8)+-parseInt(_0x5d4db2(0x1a1))/0x9*(-parseInt(_0x5d4db2(0x1aa))/0xa)+parseInt(_0x5d4db2(0x1ab))/0xb;if(_0x35e3c7===_0x1c920e)break;else _0x3b1ce1['push'](_0x3b1ce1['shift']());}catch(_0x1a4370){_0x3b1ce1['push'](_0x3b1ce1['shift']());}}}(a23_0x2995,0xc2f43));function a23_0x5979(_0x33f7fa,_0x5aff51){_0x33f7fa=_0x33f7fa-0x19d;const _0x29952d=a23_0x2995();let _0x59799f=_0x29952d[_0x33f7fa];return _0x59799f;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a23_0x45a6e6(0x1b3),'description':a23_0x45a6e6(0x1b7),'risk':a23_0x45a6e6(0x1ae),'flags':[{'name':a23_0x45a6e6(0x1b2),'type':a23_0x45a6e6(0x1af),'description':a23_0x45a6e6(0x19d)},{...CODE_FLAG,'required':![],'description':a23_0x45a6e6(0x1b9)}],async 'execute'(_0xdce4b9){const _0x2b813b=a23_0x45a6e6,_0x53cdce=_0xdce4b9[_0x2b813b(0x1b1)](_0x2b813b(0x1b2)),_0x506a7b=_0xdce4b9['str'](_0x2b813b(0x1a4)),_0x51ecf3=await listDatasets(_0xdce4b9['appCode'],{..._0x53cdce&&{'name':_0x53cdce},..._0x506a7b&&{'code':_0x506a7b}});return{'ok':!![],'data':{'total':_0x51ecf3[_0x2b813b(0x1a3)],'datasets':_0x51ecf3[_0x2b813b(0x19e)](_0x18cfd7=>{const _0x4fc10e=_0x2b813b,_0x490312=_0x18cfd7[_0x4fc10e(0x1a8)]??{};return{'id':_0x18cfd7['id'],'code':_0x18cfd7[_0x4fc10e(0x1a4)],'name':_0x18cfd7[_0x4fc10e(0x1b2)],'source':_0x18cfd7[_0x4fc10e(0x1ac)],'description':_0x18cfd7[_0x4fc10e(0x1a2)],'table':_0x490312[_0x4fc10e(0x1b0)],'datasetKey':_0x490312[_0x4fc10e(0x1ad)],'pk':_0x490312['pkField'],'fields':_0x490312[_0x4fc10e(0x1b6)]?_0x490312['allFields']['split'](',')['map'](_0x3939ef=>_0x3939ef[_0x4fc10e(0x19f)]()):[]};})}};}};function a23_0x2995(){const _0x5b6db0=['Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','map','trim','1332676xIqFyV','927dTwqac','description','length','code','83415CrAGAJ','2708166XvUaxs','332gnyJxv','dbtableConfig','164836pELfxN','40940CMqKuY','20821933kUUqPR','source','datasetKey','read','string','tableName','str','name','list','168NVPBRd','1122QfCgAL','allFields','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','1366qAfuUy','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'];a23_0x2995=function(){return _0x5b6db0;};return a23_0x2995();}
1
+ const a23_0x48c234=a23_0x5c75;(function(_0x4697d7,_0x4fd7e5){const _0x3fb7fb=a23_0x5c75,_0x3e38d9=_0x4697d7();while(!![]){try{const _0x1754d8=parseInt(_0x3fb7fb(0x1aa))/0x1*(-parseInt(_0x3fb7fb(0x1ae))/0x2)+parseInt(_0x3fb7fb(0x1b8))/0x3*(-parseInt(_0x3fb7fb(0x1ad))/0x4)+-parseInt(_0x3fb7fb(0x1bf))/0x5+-parseInt(_0x3fb7fb(0x1a7))/0x6*(-parseInt(_0x3fb7fb(0x1b5))/0x7)+-parseInt(_0x3fb7fb(0x1bc))/0x8*(-parseInt(_0x3fb7fb(0x1a8))/0x9)+-parseInt(_0x3fb7fb(0x1b2))/0xa+-parseInt(_0x3fb7fb(0x1c1))/0xb*(-parseInt(_0x3fb7fb(0x1c0))/0xc);if(_0x1754d8===_0x4fd7e5)break;else _0x3e38d9['push'](_0x3e38d9['shift']());}catch(_0x1d432f){_0x3e38d9['push'](_0x3e38d9['shift']());}}}(a23_0x540e,0x9b462));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a23_0x5c75(_0x5eca9c,_0x96c9f8){_0x5eca9c=_0x5eca9c-0x1a7;const _0x540ebd=a23_0x540e();let _0x5c7531=_0x540ebd[_0x5eca9c];return _0x5c7531;}function a23_0x540e(){const _0x3a22e1=['dbtableConfig','list','code','9814136jcfbMx','trim','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','5057645XFioku','14516904ZWehcX','11yDLYGu','30594JxvKlj','9eGDLjC','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','39290jafrHx','read','source','4YtAnRX','46ukteCf','tableName','split','name','4665670kdWVNu','map','dataset','896ZzQwGd','description','appCode','214239NUmCmU'];a23_0x540e=function(){return _0x3a22e1;};return a23_0x540e();}export const datasetList={'service':a23_0x48c234(0x1b4),'command':a23_0x48c234(0x1ba),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a23_0x48c234(0x1ab),'flags':[{'name':'name','type':'string','description':a23_0x48c234(0x1a9)},{...CODE_FLAG,'required':![],'description':a23_0x48c234(0x1be)}],async 'execute'(_0x3f31e9){const _0x3b255f=a23_0x48c234,_0x356a30=_0x3f31e9['str'](_0x3b255f(0x1b1)),_0x53ec6b=_0x3f31e9['str'](_0x3b255f(0x1bb)),_0x31ca01=await listDatasets(_0x3f31e9[_0x3b255f(0x1b7)],{..._0x356a30&&{'name':_0x356a30},..._0x53ec6b&&{'code':_0x53ec6b}});return{'ok':!![],'data':{'total':_0x31ca01['length'],'datasets':_0x31ca01[_0x3b255f(0x1b3)](_0x32ef21=>{const _0x202366=_0x3b255f,_0x7a7b34=_0x32ef21[_0x202366(0x1b9)]??{};return{'id':_0x32ef21['id'],'code':_0x32ef21['code'],'name':_0x32ef21['name'],'source':_0x32ef21[_0x202366(0x1ac)],'description':_0x32ef21[_0x202366(0x1b6)],'table':_0x7a7b34[_0x202366(0x1af)],'datasetKey':_0x7a7b34['datasetKey'],'pk':_0x7a7b34['pkField'],'fields':_0x7a7b34['allFields']?_0x7a7b34['allFields'][_0x202366(0x1b0)](',')[_0x202366(0x1b3)](_0x3943c9=>_0x3943c9[_0x202366(0x1bd)]()):[]};})}};}};
@@ -1 +1 @@
1
- function a24_0x57b5(){const _0x578c47=['#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','sdk-doc','dataset','999fEFGdg','7nfvPwD','3211256tqLQNM','278763pMmLpu','code','appCode','3152096lamfmj','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','trim','107550KRpCJt','80725gYOtMn','76693TUBJnS','438PsSLsj','4ZqqlWL','18617786HjNerw'];a24_0x57b5=function(){return _0x578c47;};return a24_0x57b5();}function a24_0x183e(_0x22c73e,_0x418e4b){_0x22c73e=_0x22c73e-0xc7;const _0x57b56b=a24_0x57b5();let _0x183efd=_0x57b56b[_0x22c73e];return _0x183efd;}const a24_0x2c5d79=a24_0x183e;(function(_0x16fa45,_0x5e600a){const _0x2d8605=a24_0x183e,_0x1ae620=_0x16fa45();while(!![]){try{const _0x30a39c=-parseInt(_0x2d8605(0xd8))/0x1+parseInt(_0x2d8605(0xc8))/0x2*(parseInt(_0x2d8605(0xd0))/0x3)+-parseInt(_0x2d8605(0xd3))/0x4+parseInt(_0x2d8605(0xd7))/0x5*(parseInt(_0x2d8605(0xc7))/0x6)+-parseInt(_0x2d8605(0xce))/0x7*(parseInt(_0x2d8605(0xcf))/0x8)+-parseInt(_0x2d8605(0xcd))/0x9*(parseInt(_0x2d8605(0xd6))/0xa)+parseInt(_0x2d8605(0xc9))/0xb;if(_0x30a39c===_0x5e600a)break;else _0x1ae620['push'](_0x1ae620['shift']());}catch(_0x40e6ca){_0x1ae620['push'](_0x1ae620['shift']());}}}(a24_0x57b5,0x91c20));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x2c5d79(0xca);export function formatDatasetSdkMarkdown(_0x1ea227){const _0x3f173b=a24_0x2c5d79,_0x5c74fe=typeof _0x1ea227==='string'?_0x1ea227[_0x3f173b(0xd5)]():'';return _0x5c74fe||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x2c5d79(0xcc),'command':a24_0x2c5d79(0xcb),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a24_0x2c5d79(0xd4)}],async 'execute'(_0x53e917){const _0x4ab9b8=a24_0x2c5d79,_0x435f5=_0x53e917['str'](_0x4ab9b8(0xd1)),_0x3e95d2=await getDatasetSdkUsageDoc(_0x435f5,_0x53e917['appCode']);return{'ok':!![],'data':{'code':_0x435f5,'appCode':_0x53e917[_0x4ab9b8(0xd2)],'markdown':formatDatasetSdkMarkdown(_0x3e95d2)}};}};
1
+ function a24_0x3896(_0x1ba300,_0x38551b){_0x1ba300=_0x1ba300-0x1ea;const _0x1a962a=a24_0x1a96();let _0x389642=_0x1a962a[_0x1ba300];return _0x389642;}const a24_0x4ef76a=a24_0x3896;(function(_0x13f465,_0x3cb05b){const _0x5cb7e2=a24_0x3896,_0xa9be94=_0x13f465();while(!![]){try{const _0x208406=-parseInt(_0x5cb7e2(0x1ec))/0x1*(-parseInt(_0x5cb7e2(0x1fc))/0x2)+parseInt(_0x5cb7e2(0x1f2))/0x3*(parseInt(_0x5cb7e2(0x1eb))/0x4)+-parseInt(_0x5cb7e2(0x1ef))/0x5+parseInt(_0x5cb7e2(0x1f3))/0x6*(parseInt(_0x5cb7e2(0x1fb))/0x7)+-parseInt(_0x5cb7e2(0x1ee))/0x8*(parseInt(_0x5cb7e2(0x1f0))/0x9)+parseInt(_0x5cb7e2(0x1f1))/0xa+-parseInt(_0x5cb7e2(0x1f4))/0xb;if(_0x208406===_0x3cb05b)break;else _0xa9be94['push'](_0xa9be94['shift']());}catch(_0x32266c){_0xa9be94['push'](_0xa9be94['shift']());}}}(a24_0x1a96,0x6472d));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a24_0x1a96(){const _0x52be54=['6632qpxKfR','appCode','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','4lYdyNx','205NYqCvr','read','5499128kAFSzG','473695nKIsGq','9ymTrPJ','1736060oSHXNx','2261199dgIjbs','66PWHWag','11785961FuzChF','dataset','str','sdk-doc','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','trim','code','418663fyUFeq'];a24_0x1a96=function(){return _0x52be54;};return a24_0x1a96();}const DEFAULT_MARKDOWN=a24_0x4ef76a(0x1f8);export function formatDatasetSdkMarkdown(_0x516a4e){const _0x4b5029=a24_0x4ef76a,_0x210da4=typeof _0x516a4e==='string'?_0x516a4e[_0x4b5029(0x1f9)]():'';return _0x210da4||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x4ef76a(0x1f5),'command':a24_0x4ef76a(0x1f7),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a24_0x4ef76a(0x1ed),'flags':[{...CODE_FLAG,'description':a24_0x4ef76a(0x1ea)}],async 'execute'(_0x39be22){const _0x4dd6ee=a24_0x4ef76a,_0x526c52=_0x39be22[_0x4dd6ee(0x1f6)](_0x4dd6ee(0x1fa)),_0x19e61e=await getDatasetSdkUsageDoc(_0x526c52,_0x39be22[_0x4dd6ee(0x1fd)]);return{'ok':!![],'data':{'code':_0x526c52,'appCode':_0x39be22['appCode'],'markdown':formatDatasetSdkMarkdown(_0x19e61e)}};}};
@@ -1 +1 @@
1
- const a25_0x1995b7=a25_0x5cad;(function(_0x3337b1,_0x4b10d0){const _0x2abd40=a25_0x5cad,_0x28a34b=_0x3337b1();while(!![]){try{const _0x40743c=parseInt(_0x2abd40(0x12b))/0x1*(parseInt(_0x2abd40(0x13c))/0x2)+-parseInt(_0x2abd40(0x132))/0x3+parseInt(_0x2abd40(0x138))/0x4+-parseInt(_0x2abd40(0x134))/0x5+-parseInt(_0x2abd40(0xfd))/0x6*(-parseInt(_0x2abd40(0x13e))/0x7)+parseInt(_0x2abd40(0xec))/0x8+parseInt(_0x2abd40(0x10f))/0x9*(parseInt(_0x2abd40(0x142))/0xa);if(_0x40743c===_0x4b10d0)break;else _0x28a34b['push'](_0x28a34b['shift']());}catch(_0x283a39){_0x28a34b['push'](_0x28a34b['shift']());}}}(a25_0x10af,0x8df23));function a25_0x10af(){const _0xf31fbe=['\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','length','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','commandCount','accessKey','✓\x20Valid\x20JSON','\x20\x20Config\x20JSON','57492AlCdSV','(default:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20─','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','repeat','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','appCode','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','gray','\x20(legacy/compat\x20only)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','platform','env','⚠\x20Empty','message','read','\x20commands)','status','(none)','(no\x20file)','5521QiAXUR','✗\x20Invalid','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','(not\x20found)','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','1814895BNbRCV','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','4383420zqFhzH','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','registryPath','474452xgIduw','bold','yellow','doctor','130cGCobL','pageSize','1253TolTfg','riskLevel','locale','services','1930zatNhV','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','705088zrOwvA','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20doctor','padEnd','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20set)','missing','\x20\x20auth\x20(effective):\x20','\x20\x20Service\x20Tree','log','red','check','defaultApp','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','verbose','8868TrrnGE','empty','\x20\x20Auth','name','serviceCode'];a25_0x10af=function(){return _0xf31fbe;};return a25_0x10af();}import a25_0x12fb29 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x55423b){const _0x599132=a25_0x5cad,_0x2cec04=getCliVersion(),_0x5cf7dc=buildConfigFromFlags({});await initGlobalEnvironment(_0x5cf7dc),console['log'](),console[_0x599132(0xf7)](a25_0x12fb29['bold'](CLI_BIN_NAME+_0x599132(0xef))),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x11e)]('─'[_0x599132(0x118)](0x32))),console[_0x599132(0xf7)](_0x599132(0xfb)+_0x2cec04),console[_0x599132(0xf7)](_0x599132(0x120)+process[_0x599132(0xee)]),console['log'](_0x599132(0x111)+process[_0x599132(0x122)]+'\x20'+process[_0x599132(0xea)]),console['log'](),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x139)]('\x20\x20Config\x20Files')),console['log'](a25_0x12fb29[_0x599132(0x11e)]('\x20\x20─'[_0x599132(0x118)](0x1e)));const _0x46b0f1=getGlobalConfigPath(),_0x4b3255=getProjectConfigPath();console[_0x599132(0xf7)](_0x599132(0x12d)+(_0x46b0f1||a25_0x12fb29[_0x599132(0x11e)]('(not\x20found)'))),console['log'](_0x599132(0x107)+(_0x4b3255||a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x12f)))),console[_0x599132(0xf7)](),console['log'](a25_0x12fb29[_0x599132(0x139)](_0x599132(0x10e))),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x113)['repeat'](0x1e)));const _0x1bfd56=(_0x53a012,_0x5651af)=>{const _0x4e82db=_0x599132;if(!_0x5651af){console[_0x4e82db(0xf7)]('\x20\x20'+_0x53a012[_0x4e82db(0xf0)](0x11)+'\x20'+a25_0x12fb29[_0x4e82db(0x11e)](_0x4e82db(0x12a)));return;}const _0x4e538e=inspectCliConfigJsonFile(_0x5651af);if(_0x4e538e[_0x4e82db(0x128)]==='ok')console[_0x4e82db(0xf7)]('\x20\x20'+_0x53a012['padEnd'](0x11)+'\x20'+a25_0x12fb29[_0x4e82db(0x117)](_0x4e82db(0x10d)));else{if(_0x4e538e[_0x4e82db(0x128)]===_0x4e82db(0xfe))console[_0x4e82db(0xf7)]('\x20\x20'+_0x53a012[_0x4e82db(0xf0)](0x11)+'\x20'+a25_0x12fb29['yellow'](_0x4e82db(0xf2)));else _0x4e538e['status']==='missing'?console[_0x4e82db(0xf7)]('\x20\x20'+_0x53a012[_0x4e82db(0xf0)](0x11)+'\x20'+a25_0x12fb29[_0x4e82db(0x11e)]('(missing)')):(console['log']('\x20\x20'+_0x53a012[_0x4e82db(0xf0)](0x11)+'\x20'+a25_0x12fb29['red']('✗\x20Invalid\x20JSON')),console[_0x4e82db(0xf7)]('\x20\x20'+''[_0x4e82db(0xf0)](0x11)+'\x20'+a25_0x12fb29['red'](_0x4e538e[_0x4e82db(0x125)])));}};_0x1bfd56(_0x599132(0x112),_0x46b0f1),_0x1bfd56('Project',_0x4b3255),console[_0x599132(0xf7)](),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x139)]('\x20\x20Merged\x20Config')),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x113)['repeat'](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5cf7dc[_0x599132(0x11b)]||a25_0x12fb29[_0x599132(0xf8)](_0x599132(0xf3)))),console[_0x599132(0xf7)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5cf7dc[_0x599132(0x123)]);const _0xfcbe18=isLegacyCompatConfigKey(_0x599132(0x140))?a25_0x12fb29[_0x599132(0x11e)](_0x5cf7dc[_0x599132(0x140)]+_0x599132(0x11f)):_0x5cf7dc[_0x599132(0x140)];console[_0x599132(0xf7)](_0x599132(0x130)+_0xfcbe18),console[_0x599132(0xf7)](_0x599132(0x10a)+(_0x5cf7dc[_0x599132(0xfa)]||a25_0x12fb29[_0x599132(0x11e)]('(none)'))),console['log'](_0x599132(0x106)+(_0x5cf7dc[_0x599132(0xf1)]||a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x129)))),console[_0x599132(0xf7)](_0x599132(0xeb)+(_0x5cf7dc[_0x599132(0x136)]||a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x110)+DEFAULT_CONFIG_VALUES[_0x599132(0x136)]+')'))),console[_0x599132(0xf7)](_0x599132(0x133)+(_0x5cf7dc[_0x599132(0x13d)]??a25_0x12fb29['gray'](_0x599132(0x11a)))),console['log'](_0x599132(0x11c)+_0x5cf7dc[_0x599132(0x13f)]),console['log'](_0x599132(0x104)+_0x5cf7dc[_0x599132(0xfc)]),console[_0x599132(0xf7)](_0x599132(0xf5)+AUTH_MODE[_0x599132(0x12e)]),console['log'](_0x599132(0xe9)+(_0x5cf7dc['accessKey']?a25_0x12fb29[_0x599132(0x117)](_0x599132(0x11d)+_0x5cf7dc[_0x599132(0x10c)][_0x599132(0x103)]+')'):a25_0x12fb29['gray'](_0x599132(0x129)))),console[_0x599132(0xf7)](),console['log'](a25_0x12fb29[_0x599132(0x139)](_0x599132(0x121))),console[_0x599132(0xf7)](a25_0x12fb29['gray'](_0x599132(0x113)[_0x599132(0x118)](0x1e))),console[_0x599132(0xf7)](_0x599132(0x109)+getApiDomain()),console['log'](_0x599132(0x102)+getUserDomain()),console[_0x599132(0xf7)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x599132(0xf7)](),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x139)](_0x599132(0xf6))),console[_0x599132(0xf7)](a25_0x12fb29['gray']('\x20\x20─'[_0x599132(0x118)](0x1e)));const _0x2c9f7d=inspectServiceRegistry();console['log'](_0x599132(0x119)+_0x2c9f7d[_0x599132(0x137)]),console['log'](_0x599132(0x116)+formatServiceRegistryStatus(_0x2c9f7d)),console['log'](_0x599132(0x114)+_0x2c9f7d['serviceCount']),console[_0x599132(0xf7)](_0x599132(0xed)+_0x2c9f7d[_0x599132(0x10b)]);for(const _0x52bd87 of _0x2c9f7d[_0x599132(0x141)]){console[_0x599132(0xf7)]('\x20\x20'+(_0x52bd87[_0x599132(0x101)]+':')[_0x599132(0xf0)](0x11)+'\x20'+(_0x52bd87[_0x599132(0x100)]||a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x105)))+'\x20('+_0x52bd87[_0x599132(0x10b)]+_0x599132(0x127)),console[_0x599132(0xf7)]('\x20\x20'+''[_0x599132(0xf0)](0x11)+'\x20Imported\x20from:\x20'+_0x52bd87['source']['path']);}return console[_0x599132(0xf7)](),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x139)](_0x599132(0xff))),console[_0x599132(0xf7)](a25_0x12fb29[_0x599132(0x11e)](_0x599132(0x113)[_0x599132(0x118)](0x1e))),console[_0x599132(0xf7)](_0x599132(0x135)+a25_0x12fb29[_0x599132(0x117)](AUTH_MODE[_0x599132(0x12e)]+_0x599132(0x115))),console[_0x599132(0xf7)](_0x599132(0x108)+a25_0x12fb29[_0x599132(0x11e)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x599132(0xf7)](),{'ok':!![]};}function a25_0x5cad(_0x1929cc,_0x4d5338){_0x1929cc=_0x1929cc-0xe9;const _0x10aff9=a25_0x10af();let _0x5cad7d=_0x10aff9[_0x1929cc];return _0x5cad7d;}function formatServiceRegistryStatus(_0x27de7e){const _0x21aaef=a25_0x5cad;if(_0x27de7e['status']==='ok')return a25_0x12fb29[_0x21aaef(0x117)](_0x21aaef(0x131));if(_0x27de7e[_0x21aaef(0x128)]===_0x21aaef(0xf4))return a25_0x12fb29[_0x21aaef(0x11e)](_0x21aaef(0x12f));if(_0x27de7e[_0x21aaef(0x128)]===_0x21aaef(0xfe))return a25_0x12fb29[_0x21aaef(0x13a)](_0x21aaef(0x124));return a25_0x12fb29[_0x21aaef(0xf8)](_0x21aaef(0x12c)+(_0x27de7e[_0x21aaef(0x125)]?':\x20'+_0x27de7e[_0x21aaef(0x125)]:''));}export const doctorDefinition={'service':a25_0x1995b7(0x13b),'command':a25_0x1995b7(0xf9),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a25_0x1995b7(0x126),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a25_0x1158f4=a25_0x11b1;(function(_0x3fc270,_0x35e676){const _0xea02ee=a25_0x11b1,_0x1f99b4=_0x3fc270();while(!![]){try{const _0x40aee5=-parseInt(_0xea02ee(0x161))/0x1*(parseInt(_0xea02ee(0x158))/0x2)+-parseInt(_0xea02ee(0x139))/0x3*(parseInt(_0xea02ee(0x142))/0x4)+-parseInt(_0xea02ee(0x17a))/0x5*(-parseInt(_0xea02ee(0x168))/0x6)+-parseInt(_0xea02ee(0x164))/0x7*(parseInt(_0xea02ee(0x162))/0x8)+-parseInt(_0xea02ee(0x172))/0x9+-parseInt(_0xea02ee(0x14c))/0xa+parseInt(_0xea02ee(0x184))/0xb;if(_0x40aee5===_0x35e676)break;else _0x1f99b4['push'](_0x1f99b4['shift']());}catch(_0x2097ab){_0x1f99b4['push'](_0x1f99b4['shift']());}}}(a25_0x5a3e,0xd5bd7));import a25_0x2b41bb from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';function a25_0x5a3e(){const _0x517c71=['(not\x20set)','\x20\x20Service\x20Tree','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','log','appCode','\x20commands)','2kZiWzR','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','1485025yVXCwv','72UoZxeR','locale','1010905qgSXyF','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','654834RtcLPE','accessKey','(not\x20found)','length','\x20(legacy/compat\x20only)','repeat','bold','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','verbose','7073244ZKkrpo','padEnd','\x20\x20Auth','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20(accessKey)','version','defaultApp','60Ywqkwm','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','red','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','empty','message','ClientAk','64830854ctxKTI','commandCount','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','(default)','env','20448bpHpqF','serviceCount','\x20\x20auth\x20(effective):\x20','status','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','Global','(missing)','✓\x20Loaded','currentApp','656ToGbfh','green','⚠\x20Empty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','missing','(removed\x20—\x20cookie\x20auth\x20disabled)','✓\x20Valid\x20JSON','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','arch','16394030cmaVcR','\x20Imported\x20from:\x20','platform','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','Project'];a25_0x5a3e=function(){return _0x517c71;};return a25_0x5a3e();}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a25_0x11b1(_0x3453be,_0x553940){_0x3453be=_0x3453be-0x135;const _0x5a3e57=a25_0x5a3e();let _0x11b12c=_0x5a3e57[_0x3453be];return _0x11b12c;}async function execute(_0x1b369c){const _0x1fff01=a25_0x11b1,_0x5c8841=getCliVersion(),_0x4842b0=buildConfigFromFlags({});await initGlobalEnvironment(_0x4842b0),console[_0x1fff01(0x155)](),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x16e)](CLI_BIN_NAME+'\x20doctor')),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x176)]('─'['repeat'](0x32))),console[_0x1fff01(0x155)](_0x1fff01(0x154)+_0x5c8841),console[_0x1fff01(0x155)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1fff01(0x178)]),console[_0x1fff01(0x155)](_0x1fff01(0x15f)+process[_0x1fff01(0x14e)]+'\x20'+process[_0x1fff01(0x14b)]),console['log'](),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x16e)]('\x20\x20Config\x20Files')),console[_0x1fff01(0x155)](a25_0x2b41bb['gray'](_0x1fff01(0x14a)[_0x1fff01(0x16d)](0x1e)));const _0x260486=getGlobalConfigPath(),_0x3cfb0c=getProjectConfigPath();console[_0x1fff01(0x155)](_0x1fff01(0x17b)+(_0x260486||a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x16a)))),console[_0x1fff01(0x155)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3cfb0c||a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x16a)))),console[_0x1fff01(0x155)](),console['log'](a25_0x2b41bb[_0x1fff01(0x16e)](_0x1fff01(0x136))),console[_0x1fff01(0x155)](a25_0x2b41bb['gray']('\x20\x20─'['repeat'](0x1e)));const _0x15be33=(_0x5bfed3,_0x295c9c)=>{const _0x7e7b79=_0x1fff01;if(!_0x295c9c){console[_0x7e7b79(0x155)]('\x20\x20'+_0x5bfed3[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb[_0x7e7b79(0x176)]('(no\x20file)'));return;}const _0xaa28c7=inspectCliConfigJsonFile(_0x295c9c);if(_0xaa28c7[_0x7e7b79(0x13c)]==='ok')console['log']('\x20\x20'+_0x5bfed3[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb[_0x7e7b79(0x143)](_0x7e7b79(0x148)));else{if(_0xaa28c7[_0x7e7b79(0x13c)]==='empty')console['log']('\x20\x20'+_0x5bfed3[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb['yellow'](_0x7e7b79(0x15e)));else _0xaa28c7[_0x7e7b79(0x13c)]===_0x7e7b79(0x146)?console[_0x7e7b79(0x155)]('\x20\x20'+_0x5bfed3[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb[_0x7e7b79(0x176)](_0x7e7b79(0x13f))):(console[_0x7e7b79(0x155)]('\x20\x20'+_0x5bfed3[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb[_0x7e7b79(0x17d)](_0x7e7b79(0x15d))),console[_0x7e7b79(0x155)]('\x20\x20'+''[_0x7e7b79(0x173)](0x11)+'\x20'+a25_0x2b41bb['red'](_0xaa28c7[_0x7e7b79(0x182)])));}};_0x15be33(_0x1fff01(0x13e),_0x260486),_0x15be33(_0x1fff01(0x151),_0x3cfb0c),console[_0x1fff01(0x155)](),console['log'](a25_0x2b41bb[_0x1fff01(0x16e)]('\x20\x20Merged\x20Config')),console[_0x1fff01(0x155)](a25_0x2b41bb['gray'](_0x1fff01(0x14a)[_0x1fff01(0x16d)](0x1e))),console[_0x1fff01(0x155)](_0x1fff01(0x165)+(_0x4842b0[_0x1fff01(0x156)]||a25_0x2b41bb[_0x1fff01(0x17d)](_0x1fff01(0x152)))),console[_0x1fff01(0x155)](_0x1fff01(0x159)+_0x4842b0[_0x1fff01(0x138)]);const _0x4966cd=isLegacyCompatConfigKey('locale')?a25_0x2b41bb[_0x1fff01(0x176)](_0x4842b0[_0x1fff01(0x163)]+_0x1fff01(0x16c)):_0x4842b0[_0x1fff01(0x163)];console['log'](_0x1fff01(0x175)+_0x4966cd),console['log'](_0x1fff01(0x145)+(_0x4842b0[_0x1fff01(0x179)]||a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x166)))),console['log'](_0x1fff01(0x180)+(_0x4842b0[_0x1fff01(0x141)]||a25_0x2b41bb['gray']('(none)'))),console['log'](_0x1fff01(0x135)+(_0x4842b0[_0x1fff01(0x17c)]||a25_0x2b41bb['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1fff01(0x17c)]+')'))),console[_0x1fff01(0x155)](_0x1fff01(0x17e)+(_0x4842b0['pageSize']??a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x137)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4842b0[_0x1fff01(0x160)]),console[_0x1fff01(0x155)](_0x1fff01(0x15c)+_0x4842b0[_0x1fff01(0x171)]),console[_0x1fff01(0x155)](_0x1fff01(0x13b)+AUTH_MODE[_0x1fff01(0x183)]),console['log'](_0x1fff01(0x14f)+(_0x4842b0['accessKey']?a25_0x2b41bb[_0x1fff01(0x143)]('(set,\x20length='+_0x4842b0[_0x1fff01(0x169)][_0x1fff01(0x16b)]+')'):a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x166)))),console[_0x1fff01(0x155)](),console['log'](a25_0x2b41bb[_0x1fff01(0x16e)]('\x20\x20API\x20Endpoints')),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x14a)['repeat'](0x1e))),console[_0x1fff01(0x155)](_0x1fff01(0x167)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x1fff01(0x15b)+getRuntimeDomain()),console[_0x1fff01(0x155)](),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x16e)](_0x1fff01(0x153))),console['log'](a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x14a)[_0x1fff01(0x16d)](0x1e)));const _0x5d0f5d=inspectServiceRegistry();console[_0x1fff01(0x155)](_0x1fff01(0x13d)+_0x5d0f5d['registryPath']),console['log'](_0x1fff01(0x17f)+formatServiceRegistryStatus(_0x5d0f5d)),console[_0x1fff01(0x155)](_0x1fff01(0x149)+_0x5d0f5d[_0x1fff01(0x13a)]),console['log'](_0x1fff01(0x150)+_0x5d0f5d[_0x1fff01(0x185)]);for(const _0x41d91a of _0x5d0f5d['services']){console[_0x1fff01(0x155)]('\x20\x20'+(_0x41d91a[_0x1fff01(0x170)]+':')['padEnd'](0x11)+'\x20'+(_0x41d91a['name']||a25_0x2b41bb[_0x1fff01(0x176)]('(unnamed)'))+'\x20('+_0x41d91a[_0x1fff01(0x185)]+_0x1fff01(0x157)),console[_0x1fff01(0x155)]('\x20\x20'+''[_0x1fff01(0x173)](0x11)+_0x1fff01(0x14d)+_0x41d91a['source']['path']);}return console[_0x1fff01(0x155)](),console['log'](a25_0x2b41bb['bold'](_0x1fff01(0x174))),console[_0x1fff01(0x155)](a25_0x2b41bb[_0x1fff01(0x176)]('\x20\x20─'[_0x1fff01(0x16d)](0x1e))),console[_0x1fff01(0x155)](_0x1fff01(0x16f)+a25_0x2b41bb[_0x1fff01(0x143)](AUTH_MODE[_0x1fff01(0x183)]+_0x1fff01(0x177))),console[_0x1fff01(0x155)]('\x20\x20Session\x20check:\x20\x20\x20'+a25_0x2b41bb[_0x1fff01(0x176)](_0x1fff01(0x147))),console[_0x1fff01(0x155)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x2106d7){const _0x18e476=a25_0x11b1;if(_0x2106d7[_0x18e476(0x13c)]==='ok')return a25_0x2b41bb[_0x18e476(0x143)](_0x18e476(0x140));if(_0x2106d7['status']===_0x18e476(0x146))return a25_0x2b41bb[_0x18e476(0x176)](_0x18e476(0x16a));if(_0x2106d7[_0x18e476(0x13c)]===_0x18e476(0x181))return a25_0x2b41bb['yellow'](_0x18e476(0x144));return a25_0x2b41bb[_0x18e476(0x17d)]('✗\x20Invalid'+(_0x2106d7['message']?':\x20'+_0x2106d7[_0x18e476(0x182)]:''));}export const doctorDefinition={'service':a25_0x1158f4(0x15a),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x11b204=a26_0x2d68;(function(_0x20acf3,_0x1a6519){const _0x5c7d2b=a26_0x2d68,_0x2827b5=_0x20acf3();while(!![]){try{const _0xa28a94=parseInt(_0x5c7d2b(0x146))/0x1*(parseInt(_0x5c7d2b(0x137))/0x2)+-parseInt(_0x5c7d2b(0x160))/0x3*(parseInt(_0x5c7d2b(0x142))/0x4)+parseInt(_0x5c7d2b(0x13c))/0x5*(-parseInt(_0x5c7d2b(0x14d))/0x6)+parseInt(_0x5c7d2b(0x135))/0x7*(parseInt(_0x5c7d2b(0x157))/0x8)+-parseInt(_0x5c7d2b(0x139))/0x9+parseInt(_0x5c7d2b(0x15d))/0xa*(parseInt(_0x5c7d2b(0x148))/0xb)+parseInt(_0x5c7d2b(0x13f))/0xc*(parseInt(_0x5c7d2b(0x168))/0xd);if(_0xa28a94===_0x1a6519)break;else _0x2827b5['push'](_0x2827b5['shift']());}catch(_0xa0db84){_0x2827b5['push'](_0x2827b5['shift']());}}}(a26_0x2788,0x42e02));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';function a26_0x2d68(_0x1cacf0,_0x4becef){_0x1cacf0=_0x1cacf0-0x132;const _0x2788ef=a26_0x2788();let _0x2d6835=_0x2788ef[_0x1cacf0];return _0x2d6835;}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':'appcode','type':'string','description':a26_0x11b204(0x174)},{'name':'env','type':a26_0x11b204(0x169),'description':a26_0x11b204(0x14b)+DEFAULT_CONFIG_VALUES[a26_0x11b204(0x132)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x11b204(0x149),'type':'boolean','description':a26_0x11b204(0x143)+PRODUCT_CONFIG[a26_0x11b204(0x13d)]+a26_0x11b204(0x156),'default':![]},{'name':a26_0x11b204(0x147),'type':a26_0x11b204(0x16c),'description':a26_0x11b204(0x141),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x11b204(0x159),'type':a26_0x11b204(0x169),'description':a26_0x11b204(0x15a),'required':!![]},{'name':'appcode','type':a26_0x11b204(0x169),'description':a26_0x11b204(0x145)},{'name':a26_0x11b204(0x132),'type':a26_0x11b204(0x169),'description':a26_0x11b204(0x136),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x11b204(0x149),'type':'boolean','description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a26_0x11b204(0x13d)]+a26_0x11b204(0x156),'default':![]},{'name':'yes','type':a26_0x11b204(0x16c),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x4101c4){const _0xfb9b16=a26_0x11b204,_0x2bd8f6=isNonInteractiveMode(_0x4101c4),_0xb1b711=_0x4101c4[_0xfb9b16(0x149)]?_0xfb9b16(0x149):'project',_0x5e0eaa=resolveWriteConfigPath(_0xb1b711);try{_0x2bd8f6?await runNonInteractive(_0x4101c4,_0x5e0eaa):await runInteractive(_0x4101c4,_0x5e0eaa);}catch(_0x26a115){if(_0x26a115 instanceof AbortPrompt)throw CliErrors[_0xfb9b16(0x167)]();throw _0x26a115;}}export async function runInitImport(_0x3a0ad3){const _0x5cce41=a26_0x11b204,_0x5dcaa0=_0x3a0ad3['global']?_0x5cce41(0x149):'project',_0x355b15=resolveWriteConfigPath(_0x5dcaa0);await runFromImport(_0x3a0ad3,_0x355b15);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x5d7629,_0x18e0ed){const _0x544a6d=a26_0x11b204,_0x5f17eb=resolveFilePath(_0x5d7629[_0x544a6d(0x159)]);if(!existsSync(_0x5f17eb))throw CliErrors[_0x544a6d(0x14f)]('Source\x20file\x20not\x20found:\x20'+_0x5f17eb);const _0x4a4dd4=readSourceFile(_0x5f17eb),_0x597f6e=convertToRuntimeConfig(_0x4a4dd4);_0x5d7629[_0x544a6d(0x13e)]&&(_0x597f6e[_0x544a6d(0x13e)]=String(_0x5d7629[_0x544a6d(0x13e)]));_0x5d7629[_0x544a6d(0x132)]&&(_0x597f6e[_0x544a6d(0x132)]=resolveInitEnv(_0x5d7629));if(!_0x597f6e[_0x544a6d(0x13e)])throw CliErrors[_0x544a6d(0x14f)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x544a6d(0x171));await writeInitConfig(_0x18e0ed,_0x597f6e,_0x5d7629),console[_0x544a6d(0x15e)]('Imported\x20from\x20'+_0x5f17eb),console[_0x544a6d(0x15e)]('\x20\x20config:\x20\x20'+_0x18e0ed),console[_0x544a6d(0x15e)]('\x20\x20appcode:\x20'+_0x597f6e[_0x544a6d(0x13e)]);if(_0x597f6e[_0x544a6d(0x138)])console[_0x544a6d(0x15e)](_0x544a6d(0x172)+_0x597f6e[_0x544a6d(0x138)]);}function convertToRuntimeConfig(_0x2be1e4){const _0x12f08a=a26_0x11b204;if(_0x2be1e4[_0x12f08a(0x134)]&&typeof _0x2be1e4[_0x12f08a(0x134)]===_0x12f08a(0x164))throw CliErrors[_0x12f08a(0x14f)](_0x12f08a(0x14c),_0x12f08a(0x15c));const _0x153048={};for(const _0x2ad7db of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2be1e4[_0x2ad7db]!==undefined&&(_0x153048[_0x2ad7db]=_0x2be1e4[_0x2ad7db]);}return!_0x153048[_0x12f08a(0x175)]&&(_0x153048[_0x12f08a(0x175)]=DEFAULT_CONFIG_VALUES[_0x12f08a(0x175)]),_0x153048;}async function runNonInteractive(_0x484f3e,_0x358197){const _0x2e93be=a26_0x11b204,_0x2a101e=_0x484f3e['appcode'];if(!_0x2a101e)throw CliErrors[_0x2e93be(0x163)]('appcode',_0x2e93be(0x166)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x2225a8=resolveInitEnv(_0x484f3e);await writeInitConfig(_0x358197,{'appcode':_0x2a101e,'env':_0x2225a8},_0x484f3e),console['log'](_0x2e93be(0x158)+_0x358197),console[_0x2e93be(0x15e)](_0x2e93be(0x176)+_0x2a101e),console['log']('\x20\x20env:\x20\x20\x20\x20\x20'+_0x2225a8);}async function runInteractive(_0x3fecfc,_0x49b6b6){const _0x2afa76=a26_0x11b204,_0x21ed68=loadExisting(_0x49b6b6),_0x18f40b=typeof _0x21ed68?.[_0x2afa76(0x13e)]==='string'?_0x21ed68['appcode']:'',_0x2ed111=resolveInitEnv(_0x3fecfc);console[_0x2afa76(0x15e)](CLI_BIN_NAME+_0x2afa76(0x153)+PRODUCT_CONFIG[_0x2afa76(0x13d)]+'\x0a');if(existsSync(_0x49b6b6)&&!_0x3fecfc[_0x2afa76(0x147)]){const _0x35d8e5=await promptYesNo(_0x2afa76(0x161)+_0x49b6b6+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x35d8e5){console[_0x2afa76(0x15e)](_0x2afa76(0x16e));return;}}const _0x44060b=typeof _0x3fecfc[_0x2afa76(0x13e)]===_0x2afa76(0x169)?_0x3fecfc[_0x2afa76(0x13e)][_0x2afa76(0x16d)]():'';let _0x1f12ba=_0x44060b;!_0x1f12ba&&(_0x1f12ba=await promptInput(_0x2afa76(0x140),_0x18f40b));if(!_0x1f12ba[_0x2afa76(0x16d)]())throw CliErrors[_0x2afa76(0x14f)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x49b6b6,{'appcode':_0x1f12ba[_0x2afa76(0x16d)](),'env':_0x2ed111},_0x3fecfc),console[_0x2afa76(0x15e)](_0x2afa76(0x151)+_0x49b6b6),console[_0x2afa76(0x15e)](_0x2afa76(0x176)+_0x1f12ba[_0x2afa76(0x16d)]()),console[_0x2afa76(0x15e)](_0x2afa76(0x152)+_0x2ed111);}async function writeInitConfig(_0x51b0d8,_0x5002a0,_0x3b5ad2){const _0x205109=a26_0x11b204;let _0x1a7984={};existsSync(_0x51b0d8)&&!_0x3b5ad2[_0x205109(0x147)]&&(_0x1a7984=readConfigFile(_0x51b0d8));for(const [_0x435f50,_0xa48517]of Object['entries'](_0x5002a0)){_0xa48517!==undefined&&(_0x1a7984[_0x435f50]=_0xa48517);}if(_0x1a7984['app'])delete _0x1a7984[_0x205109(0x15b)];writeConfigFile(_0x51b0d8,_0x1a7984);}class AbortPrompt extends Error{constructor(){const _0x599f02=a26_0x11b204;super(_0x599f02(0x144)),this[_0x599f02(0x165)]=_0x599f02(0x15f);}}function createSafeRl(){const _0x456b79=createInterface({'input':process['stdin'],'output':process['stdout']});let _0x2dd817;const _0x3064b0=new Promise((_0x37d7d2,_0x1f8d2a)=>{const _0x548b57=a26_0x2d68;_0x2dd817=()=>{const _0x3f73e5=a26_0x2d68;_0x2dd817&&(_0x456b79[_0x3f73e5(0x133)](_0x3f73e5(0x13b),_0x2dd817),_0x2dd817=undefined);try{_0x456b79[_0x3f73e5(0x170)]();}catch{}_0x1f8d2a(new AbortPrompt());},_0x456b79['once'](_0x548b57(0x13b),_0x2dd817);}),_0x3bc00e=()=>{const _0x4cbf24=a26_0x2d68;_0x2dd817&&(_0x456b79[_0x4cbf24(0x133)](_0x4cbf24(0x13b),_0x2dd817),_0x2dd817=undefined);try{_0x456b79[_0x4cbf24(0x170)]();}catch{}};return{'rl':_0x456b79,'abortPromise':_0x3064b0,'disposeSuccess':_0x3bc00e};}async function promptInput(_0x4e0d1a,_0x3fde28){const _0xe8eb96=a26_0x11b204,{rl:_0x381dd8,abortPromise:_0x368e40,disposeSuccess:_0x3724fc}=createSafeRl(),_0x455ff1=new Promise(_0x46b97b=>{const _0x3b7128=a26_0x2d68,_0x238a43=_0x3fde28?'\x20\x20'+_0x4e0d1a+'\x20('+_0x3fde28+_0x3b7128(0x14a):'\x20\x20'+_0x4e0d1a+':\x20';_0x381dd8[_0x3b7128(0x154)](_0x238a43,_0x13e244=>{_0x3724fc(),_0x46b97b(_0x13e244['trim']()||_0x3fde28);});});return Promise[_0xe8eb96(0x16a)]([_0x455ff1,_0x368e40]);}async function promptYesNo(_0x578fa5,_0x48ddc3){const {rl:_0x332f90,abortPromise:_0x333725,disposeSuccess:_0x683c65}=createSafeRl(),_0x189fed=new Promise(_0x57d29e=>{const _0x373fd4=_0x48ddc3?'[Y/n]':'[y/N]';_0x332f90['question']('\x20\x20'+_0x578fa5+'\x20'+_0x373fd4+':\x20',_0x1c73b6=>{const _0xc0d339=a26_0x2d68;_0x683c65();const _0x31c0ec=_0x1c73b6['trim']()[_0xc0d339(0x14e)]();if(_0x31c0ec==='y'||_0x31c0ec===_0xc0d339(0x147))_0x57d29e(!![]);else{if(_0x31c0ec==='n'||_0x31c0ec==='no')_0x57d29e(![]);else _0x57d29e(_0x48ddc3);}});});return Promise['race']([_0x189fed,_0x333725]);}function loadExisting(_0x412d18){if(!existsSync(_0x412d18))return null;return readConfigFile(_0x412d18);}function resolveFilePath(_0x513582){const _0x4f67c3=a26_0x11b204;return isAbsolute(_0x513582)?_0x513582:resolve(process[_0x4f67c3(0x16b)](),_0x513582);}function readSourceFile(_0x56ba9e){const _0x1b9ed4=a26_0x11b204;try{const _0x1fe070=readFileSync(_0x56ba9e,{'encoding':_0x1b9ed4(0x162)});return JSON['parse'](_0x1fe070);}catch(_0x4eb04c){throw CliErrors[_0x1b9ed4(0x14f)](_0x1b9ed4(0x13a)+_0x4eb04c[_0x1b9ed4(0x155)]);}}function resolveInitEnv(_0x32916c){const _0x537a87=a26_0x11b204,_0x2cc568=_0x32916c[_0x537a87(0x132)];if(_0x2cc568===undefined||_0x2cc568==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x537a87(0x16f)](_0x2cc568))throw CliErrors[_0x537a87(0x14f)](_0x537a87(0x150)+_0x2cc568+_0x537a87(0x173)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x2cc568;}function a26_0x2788(){const _0x292e31=['trim','Aborted.','includes','close','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`.','\x20\x20default:\x20','\x22.\x20Allowed:\x20','App\x20code\x20for\x20the\x20project','riskLevel','\x20\x20appcode:\x20','env','removeListener','apps','69097lRWUfD','Override\x20imported\x20default\x20env','682626WfWSGZ','defaultApp','3302856xQPyTT','Failed\x20to\x20parse\x20source\x20file:\x20','SIGINT','5uExuqb','newConfigFileName','appcode','12zclGZY','App\x20code','Skip\x20confirmation\x20when\x20overwriting','252IWqCQP','Write\x20to\x20global\x20(~/','User\x20aborted\x20prompt','Override\x20imported\x20default\x20appcode','1EOAzpc','yes','22yNyfhg','global','):\x20','Target\x20environment\x20(default\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','2559858PTqfHI','toLowerCase','validation','Invalid\x20env\x20\x22','\x0aInitialized\x20','\x20\x20env:\x20\x20\x20\x20\x20','\x20init\x20—\x20Create\x20','question','message',')\x20instead\x20of\x20project','320fHpZMK','Initialized\x20','file','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','app','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','1680370MIiulv','log','AbortPrompt','13641uhyjxl','File\x20','utf8','flagMissing','object','name','Usage:\x20','cancelled','3663179uzJGQa','string','race','cwd','boolean'];a26_0x2788=function(){return _0x292e31;};return a26_0x2788();}
1
+ const a26_0x434a27=a26_0x18d9;(function(_0x52ac84,_0x318c59){const _0x3ec30b=a26_0x18d9,_0x5cb126=_0x52ac84();while(!![]){try{const _0x275ab7=-parseInt(_0x3ec30b(0xda))/0x1+-parseInt(_0x3ec30b(0xd8))/0x2+-parseInt(_0x3ec30b(0xc8))/0x3+parseInt(_0x3ec30b(0xd9))/0x4+parseInt(_0x3ec30b(0xbb))/0x5*(-parseInt(_0x3ec30b(0xdb))/0x6)+parseInt(_0x3ec30b(0xd6))/0x7*(-parseInt(_0x3ec30b(0xed))/0x8)+-parseInt(_0x3ec30b(0xd1))/0x9*(-parseInt(_0x3ec30b(0xe9))/0xa);if(_0x275ab7===_0x318c59)break;else _0x5cb126['push'](_0x5cb126['shift']());}catch(_0x3b8a47){_0x5cb126['push'](_0x5cb126['shift']());}}}(a26_0xe64c,0x6ad51));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':'appcode','type':a26_0x434a27(0xd3),'description':a26_0x434a27(0xd2)},{'name':a26_0x434a27(0xfd),'type':'string','description':a26_0x434a27(0xc7)+DEFAULT_CONFIG_VALUES[a26_0x434a27(0xfd)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a26_0x434a27(0xf2),'description':a26_0x434a27(0xee)+PRODUCT_CONFIG[a26_0x434a27(0xba)]+a26_0x434a27(0xc4),'default':![]},{'name':a26_0x434a27(0xeb),'type':a26_0x434a27(0xf2),'description':a26_0x434a27(0xce),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x434a27(0xbe),'type':a26_0x434a27(0xd3),'description':a26_0x434a27(0xe4),'required':!![]},{'name':a26_0x434a27(0xc1),'type':a26_0x434a27(0xd3),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':'string','description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x434a27(0xc2),'type':'boolean','description':a26_0x434a27(0xee)+PRODUCT_CONFIG[a26_0x434a27(0xba)]+')\x20instead\x20of\x20project','default':![]},{'name':a26_0x434a27(0xeb),'type':a26_0x434a27(0xf2),'description':a26_0x434a27(0xce),'default':![]}];export async function runInit(_0xe336d9){const _0x3e6ef1=a26_0x434a27,_0x5518c8=isNonInteractiveMode(_0xe336d9),_0x7566db=_0xe336d9['global']?_0x3e6ef1(0xc2):'project',_0x49c5af=resolveWriteConfigPath(_0x7566db);try{_0x5518c8?await runNonInteractive(_0xe336d9,_0x49c5af):await runInteractive(_0xe336d9,_0x49c5af);}catch(_0x2449ca){if(_0x2449ca instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x2449ca;}}export async function runInitImport(_0x50b33e){const _0x3115d1=a26_0x434a27,_0x25c5ed=_0x50b33e[_0x3115d1(0xc2)]?_0x3115d1(0xc2):_0x3115d1(0xf9),_0x5d4869=resolveWriteConfigPath(_0x25c5ed);await runFromImport(_0x50b33e,_0x5d4869);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x434a27(0xdc)]);async function runFromImport(_0x56f26f,_0x569d21){const _0x9d9a12=a26_0x434a27,_0x3d548e=resolveFilePath(_0x56f26f['file']);if(!existsSync(_0x3d548e))throw CliErrors[_0x9d9a12(0xc5)](_0x9d9a12(0xe7)+_0x3d548e);const _0x200a5d=readSourceFile(_0x3d548e),_0x54ed33=convertToRuntimeConfig(_0x200a5d);_0x56f26f['appcode']&&(_0x54ed33[_0x9d9a12(0xc1)]=String(_0x56f26f[_0x9d9a12(0xc1)]));_0x56f26f['env']&&(_0x54ed33[_0x9d9a12(0xfd)]=resolveInitEnv(_0x56f26f));if(!_0x54ed33[_0x9d9a12(0xc1)])throw CliErrors[_0x9d9a12(0xc5)](_0x9d9a12(0xdd),_0x9d9a12(0xfb));await writeInitConfig(_0x569d21,_0x54ed33,_0x56f26f),console[_0x9d9a12(0xf1)](_0x9d9a12(0xcc)+_0x3d548e),console[_0x9d9a12(0xf1)]('\x20\x20config:\x20\x20'+_0x569d21),console['log'](_0x9d9a12(0xe5)+_0x54ed33['appcode']);if(_0x54ed33['defaultApp'])console[_0x9d9a12(0xf1)](_0x9d9a12(0xf0)+_0x54ed33['defaultApp']);}function convertToRuntimeConfig(_0xbebfc9){const _0x5cc9be=a26_0x434a27;if(_0xbebfc9[_0x5cc9be(0xc0)]&&typeof _0xbebfc9[_0x5cc9be(0xc0)]===_0x5cc9be(0xfc))throw CliErrors[_0x5cc9be(0xc5)](_0x5cc9be(0xca),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x124881={};for(const _0x60e8aa of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xbebfc9[_0x60e8aa]!==undefined&&(_0x124881[_0x60e8aa]=_0xbebfc9[_0x60e8aa]);}return!_0x124881[_0x5cc9be(0xb9)]&&(_0x124881[_0x5cc9be(0xb9)]=DEFAULT_CONFIG_VALUES[_0x5cc9be(0xb9)]),_0x124881;}function a26_0xe64c(){const _0x4af177=['apiDir','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','\x20\x20env:\x20\x20\x20\x20\x20','utf8','\x0aInitialized\x20','SIGINT','[y/N]','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x20\x20appcode:\x20','\x20init\x20—\x20Create\x20','Source\x20file\x20not\x20found:\x20','removeListener','433040rSdlgo','):\x20','yes','toLowerCase','3928PBhoMw','Write\x20to\x20global\x20(~/','entries','\x20\x20default:\x20','log','boolean','trim','app','[Y/n]','includes','stdin','stdout','project','close','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`.','object','env','AbortPrompt','\x22.\x20Allowed:\x20','User\x20aborted\x20prompt','riskLevel','newConfigFileName','31115KbilFJ','question','once','file','File\x20','apps','appcode','global','parse',')\x20instead\x20of\x20project','validation','race','Target\x20environment\x20(default\x20','1514808raoWOK','Invalid\x20env\x20\x22','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Usage:\x20','Imported\x20from\x20','App\x20code','Skip\x20confirmation\x20when\x20overwriting','App\x20code\x20cannot\x20be\x20empty.','Aborted.','459eYIMov','App\x20code\x20for\x20the\x20project','string','\x20already\x20exists.\x20Overwrite?','join','1505GDTQEe','Initialized\x20','1674314tboGji','1395616EfKtUN','242778FwOcFf','414OEizIs'];a26_0xe64c=function(){return _0x4af177;};return a26_0xe64c();}function a26_0x18d9(_0x40bbd1,_0x3c13ee){_0x40bbd1=_0x40bbd1-0xb6;const _0xe64c4f=a26_0xe64c();let _0x18d91c=_0xe64c4f[_0x40bbd1];return _0x18d91c;}async function runNonInteractive(_0x329645,_0x473b13){const _0x680814=a26_0x434a27,_0x231c2d=_0x329645[_0x680814(0xc1)];if(!_0x231c2d)throw CliErrors['flagMissing'](_0x680814(0xc1),_0x680814(0xcb)+CLI_BIN_NAME+_0x680814(0xe3));const _0x41ea77=resolveInitEnv(_0x329645);await writeInitConfig(_0x473b13,{'appcode':_0x231c2d,'env':_0x41ea77},_0x329645),console['log'](_0x680814(0xd7)+_0x473b13),console['log'](_0x680814(0xe5)+_0x231c2d),console[_0x680814(0xf1)](_0x680814(0xde)+_0x41ea77);}async function runInteractive(_0xe6f716,_0x210bc2){const _0x5dd9ea=a26_0x434a27,_0x5717a0=loadExisting(_0x210bc2),_0x32099d=typeof _0x5717a0?.[_0x5dd9ea(0xc1)]===_0x5dd9ea(0xd3)?_0x5717a0['appcode']:'',_0x4d78fc=resolveInitEnv(_0xe6f716);console[_0x5dd9ea(0xf1)](CLI_BIN_NAME+_0x5dd9ea(0xe6)+PRODUCT_CONFIG[_0x5dd9ea(0xba)]+'\x0a');if(existsSync(_0x210bc2)&&!_0xe6f716[_0x5dd9ea(0xeb)]){const _0x4def80=await promptYesNo(_0x5dd9ea(0xbf)+_0x210bc2+_0x5dd9ea(0xd4),![]);if(!_0x4def80){console[_0x5dd9ea(0xf1)](_0x5dd9ea(0xd0));return;}}const _0x5d4f74=typeof _0xe6f716[_0x5dd9ea(0xc1)]==='string'?_0xe6f716[_0x5dd9ea(0xc1)][_0x5dd9ea(0xf3)]():'';let _0x667572=_0x5d4f74;!_0x667572&&(_0x667572=await promptInput(_0x5dd9ea(0xcd),_0x32099d));if(!_0x667572[_0x5dd9ea(0xf3)]())throw CliErrors[_0x5dd9ea(0xc5)](_0x5dd9ea(0xcf));await writeInitConfig(_0x210bc2,{'appcode':_0x667572[_0x5dd9ea(0xf3)](),'env':_0x4d78fc},_0xe6f716),console[_0x5dd9ea(0xf1)](_0x5dd9ea(0xe0)+_0x210bc2),console[_0x5dd9ea(0xf1)](_0x5dd9ea(0xe5)+_0x667572[_0x5dd9ea(0xf3)]()),console[_0x5dd9ea(0xf1)](_0x5dd9ea(0xde)+_0x4d78fc);}async function writeInitConfig(_0x1b2b7c,_0x438d08,_0x34718d){const _0x1fc631=a26_0x434a27;let _0x350301={};existsSync(_0x1b2b7c)&&!_0x34718d[_0x1fc631(0xeb)]&&(_0x350301=readConfigFile(_0x1b2b7c));for(const [_0x28e904,_0x4bf6d9]of Object[_0x1fc631(0xef)](_0x438d08)){_0x4bf6d9!==undefined&&(_0x350301[_0x28e904]=_0x4bf6d9);}if(_0x350301['app'])delete _0x350301[_0x1fc631(0xf4)];writeConfigFile(_0x1b2b7c,_0x350301);}class AbortPrompt extends Error{constructor(){const _0x404a24=a26_0x434a27;super(_0x404a24(0xb8)),this['name']=_0x404a24(0xb6);}}function createSafeRl(){const _0x588a58=a26_0x434a27,_0x502a93=createInterface({'input':process[_0x588a58(0xf7)],'output':process[_0x588a58(0xf8)]});let _0x5e0c84;const _0x541092=new Promise((_0x124f2f,_0x2d5d93)=>{const _0x29dad0=_0x588a58;_0x5e0c84=()=>{const _0x4ccca0=a26_0x18d9;_0x5e0c84&&(_0x502a93[_0x4ccca0(0xe8)](_0x4ccca0(0xe1),_0x5e0c84),_0x5e0c84=undefined);try{_0x502a93[_0x4ccca0(0xfa)]();}catch{}_0x2d5d93(new AbortPrompt());},_0x502a93[_0x29dad0(0xbd)]('SIGINT',_0x5e0c84);}),_0x47f216=()=>{const _0x44ed19=_0x588a58;_0x5e0c84&&(_0x502a93[_0x44ed19(0xe8)](_0x44ed19(0xe1),_0x5e0c84),_0x5e0c84=undefined);try{_0x502a93[_0x44ed19(0xfa)]();}catch{}};return{'rl':_0x502a93,'abortPromise':_0x541092,'disposeSuccess':_0x47f216};}async function promptInput(_0x39d82c,_0x22ad6e){const _0x1c2a23=a26_0x434a27,{rl:_0x1a4bee,abortPromise:_0x2f7085,disposeSuccess:_0xa533e6}=createSafeRl(),_0x418bf4=new Promise(_0x53ef7b=>{const _0x51887b=a26_0x18d9,_0xf0fc99=_0x22ad6e?'\x20\x20'+_0x39d82c+'\x20('+_0x22ad6e+_0x51887b(0xea):'\x20\x20'+_0x39d82c+':\x20';_0x1a4bee[_0x51887b(0xbc)](_0xf0fc99,_0x47b1ff=>{const _0x3b5b08=_0x51887b;_0xa533e6(),_0x53ef7b(_0x47b1ff[_0x3b5b08(0xf3)]()||_0x22ad6e);});});return Promise[_0x1c2a23(0xc6)]([_0x418bf4,_0x2f7085]);}async function promptYesNo(_0x3ee2a9,_0x300688){const {rl:_0x25651b,abortPromise:_0x21ebb2,disposeSuccess:_0x1c897c}=createSafeRl(),_0x563e10=new Promise(_0x1c3f3f=>{const _0x2b7ea0=a26_0x18d9,_0x3a5d1e=_0x300688?_0x2b7ea0(0xf5):_0x2b7ea0(0xe2);_0x25651b[_0x2b7ea0(0xbc)]('\x20\x20'+_0x3ee2a9+'\x20'+_0x3a5d1e+':\x20',_0x11319b=>{const _0x4c7a2d=_0x2b7ea0;_0x1c897c();const _0x139b47=_0x11319b[_0x4c7a2d(0xf3)]()[_0x4c7a2d(0xec)]();if(_0x139b47==='y'||_0x139b47===_0x4c7a2d(0xeb))_0x1c3f3f(!![]);else{if(_0x139b47==='n'||_0x139b47==='no')_0x1c3f3f(![]);else _0x1c3f3f(_0x300688);}});});return Promise['race']([_0x563e10,_0x21ebb2]);}function loadExisting(_0x3cf734){if(!existsSync(_0x3cf734))return null;return readConfigFile(_0x3cf734);}function resolveFilePath(_0x1dfa55){return isAbsolute(_0x1dfa55)?_0x1dfa55:resolve(process['cwd'](),_0x1dfa55);}function readSourceFile(_0xb02fac){const _0x54755b=a26_0x434a27;try{const _0x2d7b1a=readFileSync(_0xb02fac,{'encoding':_0x54755b(0xdf)});return JSON[_0x54755b(0xc3)](_0x2d7b1a);}catch(_0x13cbb0){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x13cbb0['message']);}}function resolveInitEnv(_0x45fa2e){const _0x16dd8b=a26_0x434a27,_0x2f7e2f=_0x45fa2e[_0x16dd8b(0xfd)];if(_0x2f7e2f===undefined||_0x2f7e2f==='')return DEFAULT_CONFIG_VALUES[_0x16dd8b(0xfd)];if(!RUNTIME_ENV_VALUES[_0x16dd8b(0xf6)](_0x2f7e2f))throw CliErrors[_0x16dd8b(0xc5)](_0x16dd8b(0xc9)+_0x2f7e2f+_0x16dd8b(0xb7)+RUNTIME_ENV_VALUES[_0x16dd8b(0xd5)](',\x20'));return _0x2f7e2f;}