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

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(_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
+ (function(_0x288565,_0x9ad928){const _0x10d244=a15_0x30fa,_0x51669d=_0x288565();while(!![]){try{const _0x51ab34=-parseInt(_0x10d244(0xaa))/0x1*(-parseInt(_0x10d244(0xb1))/0x2)+-parseInt(_0x10d244(0xac))/0x3*(parseInt(_0x10d244(0xab))/0x4)+-parseInt(_0x10d244(0xa1))/0x5*(-parseInt(_0x10d244(0xa6))/0x6)+parseInt(_0x10d244(0xa4))/0x7*(parseInt(_0x10d244(0xaf))/0x8)+-parseInt(_0x10d244(0xb7))/0x9*(-parseInt(_0x10d244(0xb5))/0xa)+-parseInt(_0x10d244(0xae))/0xb+-parseInt(_0x10d244(0xa5))/0xc;if(_0x51ab34===_0x9ad928)break;else _0x51669d['push'](_0x51669d['shift']());}catch(_0x20e545){_0x51669d['push'](_0x51669d['shift']());}}}(a15_0x5985,0xee958));function a15_0x30fa(_0x34ccd3,_0x5c784e){_0x34ccd3=_0x34ccd3-0xa0;const _0x598506=a15_0x5985();let _0x30fa05=_0x598506[_0x34ccd3];return _0x30fa05;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a15_0x5985(){const _0x40a22e=['global-default','\x20init`\x20first.','64700sGNczJ','newConfigFileName','2529yjFxZg','project-or-global-explicit','8796180pnNuUD','project','inProject','84tsOBNt','41418252xAgSDC','6BvNfSd','\x20(global)','validation','project-default','794938zTgZwG','353868uxyUko','6sXAbFs','global','14590169OrnFkK','509928CvJyZE','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','4GueWod','Not\x20inside\x20a\x20project\x20(no\x20'];a15_0x5985=function(){return _0x40a22e;};return a15_0x5985();}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(_0x1128d2){const _0x5d2115=a15_0x30fa,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x4eb718}=_0x1128d2;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x5d2115(0xb0),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x5d2115(0xad);if(explicitProject)return'project';switch(_0x4eb718){case _0x5d2115(0xb3):return'global';case _0x5d2115(0xa9):return _0x1128d2[_0x5d2115(0xa3)]??isInProject()?'project':_0x5d2115(0xad);case _0x5d2115(0xa0):if(!(_0x1128d2['inProject']??isInProject()))throw CliErrors[_0x5d2115(0xa8)](_0x5d2115(0xb2)+PRODUCT_CONFIG[_0x5d2115(0xb6)]+'\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x5d2115(0xb6)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5d2115(0xb4));return _0x5d2115(0xa2);}}export function toScopeFlags(_0x1b81ad){return{'global':_0x1b81ad==='global'};}export function formatScopeLabel(_0x534a55){const _0x362240=a15_0x30fa;return _0x534a55==='global'?_0x362240(0xa7):'';}
@@ -1 +1 @@
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
+ function a16_0x150f(_0x4bc30c,_0x1650e2){_0x4bc30c=_0x4bc30c-0x195;const _0x45baa4=a16_0x45ba();let _0x150f4f=_0x45baa4[_0x4bc30c];return _0x150f4f;}(function(_0x130b5b,_0x194d8f){const _0x4f8daf=a16_0x150f,_0x53daf0=_0x130b5b();while(!![]){try{const _0x100311=-parseInt(_0x4f8daf(0x1a9))/0x1+-parseInt(_0x4f8daf(0x19f))/0x2+parseInt(_0x4f8daf(0x19a))/0x3*(-parseInt(_0x4f8daf(0x198))/0x4)+parseInt(_0x4f8daf(0x199))/0x5*(parseInt(_0x4f8daf(0x19e))/0x6)+parseInt(_0x4f8daf(0x1ab))/0x7+-parseInt(_0x4f8daf(0x1a3))/0x8*(-parseInt(_0x4f8daf(0x1a4))/0x9)+-parseInt(_0x4f8daf(0x1ac))/0xa*(parseInt(_0x4f8daf(0x1a8))/0xb);if(_0x100311===_0x194d8f)break;else _0x53daf0['push'](_0x53daf0['shift']());}catch(_0x4b7d33){_0x53daf0['push'](_0x53daf0['shift']());}}}(a16_0x45ba,0x66905));import{CliErrors}from'../../errors.js';function isSet(_0x396215,_0x42b4de){const _0x14473b=a16_0x150f,_0x4396b8=_0x396215[_0x14473b(0x1af)](_0x42b4de);return _0x4396b8!==undefined&&_0x4396b8!==''&&_0x4396b8!==![]&&_0x4396b8!==0x0;}function fmtNames(_0x452f1f){const _0x4796d7=a16_0x150f;return _0x452f1f['map'](_0x4d4b20=>'--'+_0x4d4b20)[_0x4796d7(0x1ad)](',\x20');}export function requireOneOf(_0x2869b6,_0x10b4bd,_0x134ab9){const _0x18aa75=a16_0x150f,_0x4f08c8=_0x10b4bd['filter'](_0x5d8297=>isSet(_0x2869b6,_0x5d8297));if(_0x4f08c8[_0x18aa75(0x1ae)]!==0x1)throw CliErrors[_0x18aa75(0x197)](_0x4f08c8[_0x18aa75(0x1ae)]===0x0?_0x18aa75(0x1b0)+fmtNames(_0x10b4bd)+_0x18aa75(0x195)+_0x134ab9+'`.':_0x18aa75(0x1b1)+fmtNames(_0x10b4bd)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x4f08c8)+'.',_0x4f08c8[_0x18aa75(0x1ae)]===0x0?_0x18aa75(0x196)+fmtNames(_0x10b4bd):_0x18aa75(0x1a2));}export function requireAnyOf(_0x4c4c38,_0x24e885,_0x4f6b6f){const _0x440061=a16_0x150f;if(!_0x24e885[_0x440061(0x1a5)](_0x51a35f=>isSet(_0x4c4c38,_0x51a35f)))throw CliErrors['validation'](_0x440061(0x19c)+fmtNames(_0x24e885)+'\x20is\x20required\x20for\x20`'+_0x4f6b6f+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x24e885));}function a16_0x45ba(){const _0x1dcdf8=['Flags\x20','At\x20least\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','798AyVvtO','378888CMoSCp','Invalid\x20--','test','Remove\x20all\x20but\x20one.','8ThJTws','4786983VJvWCv','some',',\x20got\x20\x22','filter','33xGesgO','265344AfwsOv','str','4240754EHMISe','2551790HUAyMv','join','length','flag','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','\x20is\x20required\x20for\x20`','Provide\x20one\x20of:\x20','validation','373024fAaRyN','22405KXGVmo','3JUOuJl'];a16_0x45ba=function(){return _0x1dcdf8;};return a16_0x45ba();}export function mutuallyExclusive(_0xb1a8a2,_0x3e208b,_0x5da459){const _0x199e0e=a16_0x150f,_0x5829b3=_0x3e208b[_0x199e0e(0x1a7)](_0x373fca=>isSet(_0xb1a8a2,_0x373fca));if(_0x5829b3['length']>0x1)throw CliErrors[_0x199e0e(0x197)](_0x199e0e(0x19b)+fmtNames(_0x5829b3)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x5da459+'`.',_0x199e0e(0x19d)+fmtNames(_0x3e208b));}export function validatePattern(_0x2ac85b,_0x15509e,_0x4f6e0e,_0xd17261){const _0x11f5eb=a16_0x150f,_0x2752f4=_0x2ac85b[_0x11f5eb(0x1aa)](_0x15509e);if(_0x2752f4&&!_0x4f6e0e[_0x11f5eb(0x1a1)](_0x2752f4))throw CliErrors[_0x11f5eb(0x197)](_0x11f5eb(0x1a0)+_0x15509e+':\x20expected\x20'+_0xd17261+_0x11f5eb(0x1a6)+_0x2752f4+'\x22.');}
@@ -1 +1 @@
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
+ const a17_0x5e7247=a17_0xeb12;function a17_0x45d8(){const _0x1cb905=['string','Resource\x20name\x20for\x20lookup','644244ascCnL','Return\x20full\x20raw\x20response\x20object','sqlcode','315ifVrvq','3442152PIsfdL','35608hxNqaJ','36iXspsP','38272nWCZuX','number','1988392BixIlW','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','8084844tCEeWH','3590ftgjde','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','verbose','params'];a17_0x45d8=function(){return _0x1cb905;};return a17_0x45d8();}(function(_0x26e0dc,_0x4fe114){const _0x42cd08=a17_0xeb12,_0x4aaa48=_0x26e0dc();while(!![]){try{const _0x50ccb5=parseInt(_0x42cd08(0x18c))/0x1+-parseInt(_0x42cd08(0x199))/0x2*(-parseInt(_0x42cd08(0x192))/0x3)+parseInt(_0x42cd08(0x193))/0x4*(-parseInt(_0x42cd08(0x18f))/0x5)+-parseInt(_0x42cd08(0x190))/0x6+parseInt(_0x42cd08(0x195))/0x7+-parseInt(_0x42cd08(0x191))/0x8+parseInt(_0x42cd08(0x198))/0x9;if(_0x50ccb5===_0x4fe114)break;else _0x4aaa48['push'](_0x4aaa48['shift']());}catch(_0x4e4c79){_0x4aaa48['push'](_0x4aaa48['shift']());}}}(a17_0x45d8,0xa2e5d));export const CODE_FLAG={'name':'code','type':a17_0x5e7247(0x18a),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x5e7247(0x196)}};export const SQLCODE_FLAG={'name':a17_0x5e7247(0x18e),'type':a17_0x5e7247(0x18a),'required':!![],'description':a17_0x5e7247(0x19a),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a17_0x5e7247(0x188),'type':'boolean','description':a17_0x5e7247(0x18d)};export const PARAMS_FLAG={'name':a17_0x5e7247(0x189),'type':a17_0x5e7247(0x18a),'description':a17_0x5e7247(0x197)};function a17_0xeb12(_0x1698a7,_0x38343d){_0x1698a7=_0x1698a7-0x188;const _0x45d8e6=a17_0x45d8();let _0xeb12fc=_0x45d8e6[_0x1698a7];return _0xeb12fc;}export const NAME_FLAG={'name':'name','type':a17_0x5e7247(0x18a),'description':a17_0x5e7247(0x18b)};export const ID_FLAG={'name':'id','type':a17_0x5e7247(0x194),'required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
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
+ const a18_0x1101c0=a18_0x1273;(function(_0x4db409,_0x41e953){const _0x56584b=a18_0x1273,_0x46a1c6=_0x4db409();while(!![]){try{const _0x2e92cd=parseInt(_0x56584b(0xce))/0x1*(-parseInt(_0x56584b(0xac))/0x2)+-parseInt(_0x56584b(0x9d))/0x3*(-parseInt(_0x56584b(0xa9))/0x4)+parseInt(_0x56584b(0xbf))/0x5*(parseInt(_0x56584b(0x93))/0x6)+parseInt(_0x56584b(0xb8))/0x7+-parseInt(_0x56584b(0xc1))/0x8*(parseInt(_0x56584b(0xa1))/0x9)+-parseInt(_0x56584b(0xd2))/0xa+parseInt(_0x56584b(0xc7))/0xb*(parseInt(_0x56584b(0xd6))/0xc);if(_0x2e92cd===_0x41e953)break;else _0x46a1c6['push'](_0x46a1c6['shift']());}catch(_0x37c29a){_0x46a1c6['push'](_0x46a1c6['shift']());}}}(a18_0x3d93,0xdb5ef));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_0x1101c0(0xa5),'type':'boolean','description':a18_0x1101c0(0xb0),'default':![]};function parseAliasAppcodeSetKey(_0x21c4e9){const _0x1b3201=a18_0x1101c0,_0x5cd4b9=_0x21c4e9['split']('.');if(_0x5cd4b9[_0x1b3201(0x97)]!==0x3||_0x5cd4b9[0x0]!==_0x1b3201(0xb4)||_0x5cd4b9[0x2]!==_0x1b3201(0xaf))return undefined;const _0x1649f1=_0x5cd4b9[0x1]?.[_0x1b3201(0xbb)]();return _0x1649f1?_0x1649f1:undefined;}function a18_0x3d93(){const _0x3c65d3=['format','validation','Deleted\x20`','1EKjtVh','\x20config\x20set\x20<key>\x20<value>\x20[--global]',';\x20apps.<alias>.appcode','`\x20=\x20\x22','10576340iAXQKq','args','isArray','write','24zPOlSS','\x20config\x20delete\x20<key>\x20[--global]','1007982oFoIqC','bool','join','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','length','riskLevel','Usage:\x20','field','(none)','Set\x20`','41919cQyXyE','pageSize\x20must\x20be\x20a\x20positive\x20number','Delete\x20a\x20config\x20value','object','1079928LUQedL','pretty','Set\x20a\x20config\x20value','Key\x20not\x20found:\x20','global','pageSize','keys','\x20config\x20get\x20<key>','356ztrfIi','Missing\x20key\x20or\x20value.','Missing\x20key\x20argument.','2333630hbvgwx','list','config','appcode','Write\x20to\x20global\x20config','Key\x20\x22','\x20(global)','\x22.\x20Allowed:\x20','apps','Top-level\x20key\x20\x22','List\x20current\x20config','alias','8215067BVHWBD','Invalid\x20value\x20for\x20\x22','Config\x20files:\x0a','trim','log','raw','includes','10STeWmP','read','32lSLMFZ','project-or-global-explicit','../../context.js','stringify','set','get','4673834wDvZwD','split','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','key'];a18_0x3d93=function(){return _0x3c65d3;};return a18_0x3d93();}function a18_0x1273(_0x57719f,_0x38935b){_0x57719f=_0x57719f-0x93;const _0x3d93d3=a18_0x3d93();let _0x127308=_0x3d93d3[_0x57719f];return _0x127308;}function parseAliasDeleteKey(_0xc29ed4){const _0x4d5ddf=a18_0x1101c0,_0x348125=_0xc29ed4['split']('.');if(_0x348125[_0x4d5ddf(0x97)]===0x2&&_0x348125[0x0]===_0x4d5ddf(0xb4)){const _0x408683=_0x348125[0x1]?.[_0x4d5ddf(0xbb)]();return _0x408683?{'alias':_0x408683}:undefined;}if(_0x348125[_0x4d5ddf(0x97)]===0x3&&_0x348125[0x0]===_0x4d5ddf(0xb4)&&_0x348125[0x2]===_0x4d5ddf(0xaf)){const _0x45bce3=_0x348125[0x1]?.['trim']();return _0x45bce3?{'alias':_0x45bce3,'field':_0x4d5ddf(0xaf)}:undefined;}return undefined;}function setLocalAppAlias(_0x4fbc8a,_0x2f922b,_0x160967){const _0x1b47e0=a18_0x1101c0,_0x346a2a=_0x4fbc8a[_0x1b47e0(0xb4)]&&typeof _0x4fbc8a[_0x1b47e0(0xb4)]==='object'&&!Array[_0x1b47e0(0xd4)](_0x4fbc8a['apps'])?_0x4fbc8a['apps']:{},_0x176298=_0x346a2a[_0x2f922b]&&typeof _0x346a2a[_0x2f922b]===_0x1b47e0(0xa0)&&!Array['isArray'](_0x346a2a[_0x2f922b])?_0x346a2a[_0x2f922b]:{};_0x176298[_0x1b47e0(0xaf)]=_0x160967,_0x346a2a[_0x2f922b]=_0x176298,_0x4fbc8a[_0x1b47e0(0xb4)]=_0x346a2a;}function deleteLocalAppAlias(_0x4ff234,_0x2b4e74){const _0x385470=a18_0x1101c0;if(!_0x4ff234[_0x385470(0xb4)]||typeof _0x4ff234[_0x385470(0xb4)]!==_0x385470(0xa0)||Array[_0x385470(0xd4)](_0x4ff234[_0x385470(0xb4)]))return![];const _0x16cd95=_0x4ff234[_0x385470(0xb4)],_0x548468=_0x16cd95[_0x2b4e74[_0x385470(0xb7)]];if(!_0x548468||typeof _0x548468!=='object'||Array[_0x385470(0xd4)](_0x548468))return![];if(!_0x2b4e74[_0x385470(0x9a)])return delete _0x16cd95[_0x2b4e74[_0x385470(0xb7)]],!![];if(!(_0x2b4e74[_0x385470(0x9a)]in _0x548468))return![];return delete _0x548468[_0x2b4e74[_0x385470(0x9a)]],Object[_0x385470(0xa7)](_0x548468)[_0x385470(0x97)]===0x0&&delete _0x16cd95[_0x2b4e74[_0x385470(0xb7)]],!![];}const listDef={'service':a18_0x1101c0(0xae),'command':a18_0x1101c0(0xad),'description':a18_0x1101c0(0xb6),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x32c93b){const _0x40f53c=a18_0x1101c0,{buildConfigFromFlags:_0x2d4cbf}=await import(_0x40f53c(0xc3)),_0x2a88a2=_0x2d4cbf({}),_0x37d978=getProjectConfigPath(),_0x1bbc41=resolveWriteConfigPath('global');if(_0x32c93b[_0x40f53c(0xcb)]===_0x40f53c(0xa2))return{'ok':!![],'message':_0x40f53c(0xc9)+(JSON[_0x40f53c(0xc4)](_0x2a88a2[_0x40f53c(0xbd)],null,0x2)+'\x0a\x0a')+_0x40f53c(0xba)+('\x20\x20project:\x20'+(_0x37d978??_0x40f53c(0x9b))+'\x0a')+('\x20\x20global:\x20\x20'+_0x1bbc41)};return{'ok':!![],'data':{'effective':_0x2a88a2[_0x40f53c(0xbd)],'configFiles':{'project':_0x37d978??null,'global':_0x1bbc41}}};}},getDef={'service':a18_0x1101c0(0xae),'command':a18_0x1101c0(0xc6),'description':'Get\x20a\x20config\x20value','risk':a18_0x1101c0(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x1101c0(0xca),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0xf578ff){const _0xe968d9=a18_0x1101c0,_0x4bc5b8=_0xf578ff['args'][0x0];if(!_0x4bc5b8)throw CliErrors['validation'](_0xe968d9(0xab),_0xe968d9(0x99)+CLI_BIN_NAME+_0xe968d9(0xa8));const {buildConfigFromFlags:_0x318aff}=await import(_0xe968d9(0xc3)),{raw:_0x526744}=_0x318aff({});if(_0x4bc5b8[_0xe968d9(0xbe)]('.')){const _0xdc31b4=_0x4bc5b8[_0xe968d9(0xc8)]('.');let _0xf9be0a=_0x526744;for(const _0x4ed37a of _0xdc31b4){if(_0xf9be0a==null||typeof _0xf9be0a!==_0xe968d9(0xa0))throw CliErrors[_0xe968d9(0xcc)](_0xe968d9(0xa4)+_0x4bc5b8);_0xf9be0a=_0xf9be0a[_0x4ed37a];}if(_0xf9be0a===undefined)throw CliErrors[_0xe968d9(0xcc)](_0xe968d9(0xa4)+_0x4bc5b8);return console['log'](typeof _0xf9be0a===_0xe968d9(0xa0)?JSON['stringify'](_0xf9be0a,null,0x2):String(_0xf9be0a)),{'ok':!![]};}const _0x5f05cf=_0x526744[_0x4bc5b8];if(_0x5f05cf===undefined)throw CliErrors['validation'](_0xe968d9(0xa4)+_0x4bc5b8);return console[_0xe968d9(0xbc)](typeof _0x5f05cf===_0xe968d9(0xa0)?JSON['stringify'](_0x5f05cf,null,0x2):String(_0x5f05cf)),{'ok':!![]};}},setDef={'service':'config','command':a18_0x1101c0(0xc5),'description':a18_0x1101c0(0xa3),'risk':a18_0x1101c0(0xd5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x1101c0(0xca),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1c8818){const _0x2e8561=a18_0x1101c0,_0x3be588=_0x1c8818[_0x2e8561(0xd3)][0x0],_0x24e172=_0x1c8818[_0x2e8561(0xd3)][0x1];if(!_0x3be588||_0x24e172===undefined)throw CliErrors['validation'](_0x2e8561(0xaa),_0x2e8561(0x99)+CLI_BIN_NAME+_0x2e8561(0xcf));if(ENUM_KEYS[_0x3be588]&&!ENUM_KEYS[_0x3be588][_0x2e8561(0xbe)](_0x24e172))throw CliErrors['validation'](_0x2e8561(0xb9)+_0x3be588+_0x2e8561(0xb3)+ENUM_KEYS[_0x3be588][_0x2e8561(0x95)](',\x20'));if(_0x3be588===_0x2e8561(0x98))throw CliErrors[_0x2e8561(0xcc)](_0x2e8561(0x96));if(_0x3be588===_0x2e8561(0xa6)){const _0x27b2cd=Number(_0x24e172);if(isNaN(_0x27b2cd)||_0x27b2cd<=0x0)throw CliErrors[_0x2e8561(0xcc)](_0x2e8561(0x9e));}const _0x44a457=resolveWriteScope({'explicitGlobal':_0x1c8818[_0x2e8561(0x94)]('global'),'policy':_0x2e8561(0xc2)}),_0x22f4b0=toScopeFlags(_0x44a457),_0x1f1c95=readScopedConfig(_0x22f4b0),_0x4698ea=parseAliasAppcodeSetKey(_0x3be588);if(!_0x4698ea&&!isTopLevelConfigKey(_0x3be588))throw CliErrors[_0x2e8561(0xcc)](_0x2e8561(0xb5)+_0x3be588+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x2e8561(0xd0));return _0x4698ea?setLocalAppAlias(_0x1f1c95,_0x4698ea,_0x24e172):_0x1f1c95[_0x3be588]=_0x3be588==='pageSize'?Number(_0x24e172):_0x24e172,console['log'](_0x2e8561(0x9c)+_0x3be588+_0x2e8561(0xd1)+_0x24e172+'\x22'+(_0x44a457===_0x2e8561(0xa5)?_0x2e8561(0xb2):'')),writeScopedConfig(_0x1f1c95,_0x22f4b0),{'ok':!![]};}},deleteDef={'service':a18_0x1101c0(0xae),'command':'delete','description':a18_0x1101c0(0x9f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x1101c0(0xca),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3296eb){const _0x15f7f4=a18_0x1101c0,_0x4fdde6=_0x3296eb[_0x15f7f4(0xd3)][0x0];if(!_0x4fdde6)throw CliErrors['validation'](_0x15f7f4(0xab),_0x15f7f4(0x99)+CLI_BIN_NAME+_0x15f7f4(0xd7));const _0x1a0ecd=resolveWriteScope({'explicitGlobal':_0x3296eb['bool']('global'),'policy':_0x15f7f4(0xc2)}),_0x5d196f=toScopeFlags(_0x1a0ecd),_0x5c79c4=readScopedConfig(_0x5d196f),_0x2c3a2e=parseAliasDeleteKey(_0x4fdde6);if(_0x2c3a2e){if(!deleteLocalAppAlias(_0x5c79c4,_0x2c3a2e))throw CliErrors['validation'](_0x15f7f4(0xa4)+_0x4fdde6);return console[_0x15f7f4(0xbc)](_0x15f7f4(0xcd)+_0x4fdde6+'`'+(_0x1a0ecd==='global'?'\x20(global)':'')),writeScopedConfig(_0x5c79c4,_0x5d196f),{'ok':!![]};}if(_0x5c79c4[_0x4fdde6]===undefined)throw CliErrors[_0x15f7f4(0xcc)](_0x15f7f4(0xb1)+_0x4fdde6+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x5c79c4[_0x4fdde6],console[_0x15f7f4(0xbc)](_0x15f7f4(0xcd)+_0x4fdde6+'`'+(_0x1a0ecd===_0x15f7f4(0xa5)?_0x15f7f4(0xb2):'')),writeScopedConfig(_0x5c79c4,_0x5d196f),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
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
+ (function(_0x264185,_0x55a1ac){var _0x4b1fc1=a19_0x586f,_0x15f9f1=_0x264185();while(!![]){try{var _0x1ba699=parseInt(_0x4b1fc1(0x9f))/0x1+parseInt(_0x4b1fc1(0xa4))/0x2*(-parseInt(_0x4b1fc1(0xa1))/0x3)+parseInt(_0x4b1fc1(0xa3))/0x4+parseInt(_0x4b1fc1(0xa8))/0x5+parseInt(_0x4b1fc1(0xa2))/0x6*(-parseInt(_0x4b1fc1(0xa7))/0x7)+parseInt(_0x4b1fc1(0xa5))/0x8+-parseInt(_0x4b1fc1(0xa6))/0x9*(-parseInt(_0x4b1fc1(0xa0))/0xa);if(_0x1ba699===_0x55a1ac)break;else _0x15f9f1['push'](_0x15f9f1['shift']());}catch(_0x13c441){_0x15f9f1['push'](_0x15f9f1['shift']());}}}(a19_0x2ff3,0xe78d3));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a19_0x586f(_0x1ec10b,_0xf42a45){_0x1ec10b=_0x1ec10b-0x9f;var _0x2ff3aa=a19_0x2ff3();var _0x586f9f=_0x2ff3aa[_0x1ec10b];return _0x586f9f;}function a19_0x2ff3(){var _0x35cd74=['302925wiIsDW','616066ZzCJDd','10ughKsE','105hPJZHE','7759716RYXiFq','6323796MHUxiH','75456VrEnYf','9734552tBhfEu','790038sjUYry','7zVYeGc'];a19_0x2ff3=function(){return _0x35cd74;};return a19_0x2ff3();}
@@ -1 +1 @@
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
+ const a20_0x245263=a20_0x4d7c;(function(_0x3deab1,_0x5cf86e){const _0xbfa976=a20_0x4d7c,_0x278958=_0x3deab1();while(!![]){try{const _0x5db09b=parseInt(_0xbfa976(0x190))/0x1*(parseInt(_0xbfa976(0x16f))/0x2)+parseInt(_0xbfa976(0x178))/0x3+-parseInt(_0xbfa976(0x183))/0x4*(-parseInt(_0xbfa976(0x193))/0x5)+parseInt(_0xbfa976(0x164))/0x6*(-parseInt(_0xbfa976(0x18b))/0x7)+parseInt(_0xbfa976(0x191))/0x8+parseInt(_0xbfa976(0x198))/0x9+parseInt(_0xbfa976(0x1ae))/0xa*(-parseInt(_0xbfa976(0x17e))/0xb);if(_0x5db09b===_0x5cf86e)break;else _0x278958['push'](_0x278958['shift']());}catch(_0x3c262d){_0x278958['push'](_0x278958['shift']());}}}(a20_0x4cf1,0x46a73));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a20_0x4cf1(){const _0x3fb011=['\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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','55GLmFtk','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','risk','290064zuDnTh','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','join','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','create','7zabdee','write','Preview:\x20data\x20','\x20\x20PARAMS\x20STRUCTURE','filter','3ESkFLs','4183800FUqszD','Get\x20a\x20single\x20record\x20by\x20ID','15hQiGbr','build','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','getOne','3488544giChhk','operation','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','dryRun','params','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20WHERE\x20OPERATORS','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','command','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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}','POST','\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\x20AGGREGATE\x20TYPES','data\x20','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\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}}]','paramsHint','Filter\x20dataset\x20records\x20with\x20query\x20conditions','2494230PFSPdZ','read','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','aggregate','\x20\x20LOGICAL\x20COMBINATORS','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','1855926qtpDPN','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','delete','data','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20$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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}}','100186DHxuor','\x20completed\x20in\x20','description','/api/{appCode}/','paramsRequired','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','update','str','Update\x20an\x20existing\x20record','1702239rTgJYR','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','batchCreate'];a20_0x4cf1=function(){return _0x3fb011;};return a20_0x4cf1();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a20_0x245263(0x18f),'operation':a20_0x245263(0x18f),'risk':a20_0x245263(0x1af),'paramsRequired':![],'description':a20_0x245263(0x1ad),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a20_0x245263(0x1a0),'helpExtra':[a20_0x245263(0x19f),'\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_0x245263(0x180),a20_0x245263(0x16b),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a20_0x245263(0x17c),a20_0x245263(0x162),a20_0x245263(0x184),a20_0x245263(0x16e),a20_0x245263(0x185),a20_0x245263(0x17f),'',a20_0x245263(0x161),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a20_0x245263(0x195),'',a20_0x245263(0x167),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a20_0x245263(0x181),'\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}]',a20_0x245263(0x16c),a20_0x245263(0x19a),'','\x20\x20PAGINATION','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a20_0x245263(0x196),a20_0x245263(0x179)][a20_0x245263(0x186)]('\x0a')},{'command':'getOne','operation':a20_0x245263(0x197),'risk':a20_0x245263(0x1af),'paramsRequired':!![],'description':a20_0x245263(0x192),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a20_0x245263(0x18a),'operation':'create','risk':a20_0x245263(0x18c),'paramsRequired':!![],'description':a20_0x245263(0x16d),'paramsHint':a20_0x245263(0x174)},{'command':a20_0x245263(0x17a),'operation':a20_0x245263(0x17a),'risk':a20_0x245263(0x18c),'paramsRequired':!![],'description':a20_0x245263(0x187),'paramsHint':a20_0x245263(0x188)},{'command':a20_0x245263(0x175),'operation':a20_0x245263(0x175),'risk':a20_0x245263(0x18c),'paramsRequired':!![],'description':a20_0x245263(0x177),'paramsHint':a20_0x245263(0x19b)},{'command':a20_0x245263(0x168),'operation':a20_0x245263(0x168),'risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0x245263(0x19e)},{'command':'aggregate','operation':a20_0x245263(0x1b1),'risk':a20_0x245263(0x1af),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a20_0x245263(0x189)+a20_0x245263(0x1a9),'helpExtra':[a20_0x245263(0x1a7),'\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}',a20_0x245263(0x1a4),a20_0x245263(0x1a6),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\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_0x245263(0x1a2),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a20_0x245263(0x18e),'\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]',a20_0x245263(0x17b),a20_0x245263(0x163),a20_0x245263(0x1aa),a20_0x245263(0x1ab),a20_0x245263(0x16a),'','\x20\x20EXAMPLES',a20_0x245263(0x165),a20_0x245263(0x166),'',a20_0x245263(0x1a3),'\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_0x245263(0x1b0)]['join']('\x0a')}];function makeDataCommand(_0x281ad4){const _0x53db2e=a20_0x245263,_0x4209d6=_0x53db2e(0x1a8)+_0x281ad4[_0x53db2e(0x1a1)],_0x35780c={'service':_0x53db2e(0x169),'command':_0x281ad4[_0x53db2e(0x1a1)],'description':_0x281ad4[_0x53db2e(0x171)],'risk':_0x281ad4[_0x53db2e(0x182)],'helpExtra':_0x281ad4['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x281ad4[_0x53db2e(0x1ac)]}],'validate':async _0x5634f5=>{const _0x5d1cc5=_0x53db2e;_0x281ad4[_0x5d1cc5(0x173)]&&requireAnyOf(_0x5634f5,[_0x5d1cc5(0x19d)],_0x4209d6),_0x281ad4['operation']===_0x5d1cc5(0x17a)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5634f5[_0x5d1cc5(0x176)](_0x5d1cc5(0x19d))));},async 'execute'(_0x4ca9ba){const _0x4484d4=_0x53db2e,_0x537f03=_0x4ca9ba['str'](_0x4484d4(0x17d)),_0x29b53d=_0x281ad4[_0x4484d4(0x199)]===_0x4484d4(0x17a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4ca9ba[_0x4484d4(0x176)](_0x4484d4(0x19d)))):parseJsonParams(_0x4ca9ba[_0x4484d4(0x176)]('params'))??{},_0x169cfc=Date['now'](),_0x3fefd4=await executeData(_0x537f03,_0x281ad4['operation'],_0x29b53d),_0x490fae=Date['now']()-_0x169cfc;return{'ok':!![],'data':{'result':_0x3fefd4,'elapsed':_0x490fae},'message':_0x4484d4(0x1a8)+_0x281ad4[_0x4484d4(0x1a1)]+_0x4484d4(0x170)+_0x490fae+'ms'};}};return _0x281ad4['risk']!==_0x53db2e(0x1af)&&(_0x35780c[_0x53db2e(0x19c)]=async _0x241883=>{const _0x1179da=_0x53db2e,_0x33e8f2=_0x241883[_0x1179da(0x176)](_0x1179da(0x17d)),_0x322369=_0x281ad4[_0x1179da(0x199)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x241883[_0x1179da(0x176)]('params'))):parseJsonParams(_0x241883['str'](_0x1179da(0x19d)))??{};return dryRun(_0x1179da(0x1a5),_0x1179da(0x172)+_0x33e8f2+'/'+_0x281ad4['operation'])['body'](_0x322369)['description'](_0x1179da(0x18d)+_0x281ad4[_0x1179da(0x1a1)]+'\x20on\x20dataset\x20'+_0x33e8f2)[_0x1179da(0x194)]();}),_0x35780c;}function a20_0x4d7c(_0x1c603e,_0x4d438c){_0x1c603e=_0x1c603e-0x161;const _0x4cf1f0=a20_0x4cf1();let _0x4d7c9f=_0x4cf1f0[_0x1c603e];return _0x4d7c9f;}export const dataDefinitions=specs['map'](makeDataCommand);
@@ -1 +1 @@
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
+ const a21_0x4d61c5=a21_0x3531;(function(_0xcbc3b9,_0x7b94a6){const _0x17600d=a21_0x3531,_0x101d2c=_0xcbc3b9();while(!![]){try{const _0x22dfcc=parseInt(_0x17600d(0x1a3))/0x1+-parseInt(_0x17600d(0x181))/0x2+-parseInt(_0x17600d(0x195))/0x3+parseInt(_0x17600d(0x1c5))/0x4+parseInt(_0x17600d(0x1bc))/0x5+-parseInt(_0x17600d(0x188))/0x6*(-parseInt(_0x17600d(0x1a2))/0x7)+-parseInt(_0x17600d(0x1a6))/0x8*(parseInt(_0x17600d(0x1a0))/0x9);if(_0x22dfcc===_0x7b94a6)break;else _0x101d2c['push'](_0x101d2c['shift']());}catch(_0x3afb66){_0x101d2c['push'](_0x101d2c['shift']());}}}(a21_0x3abd,0x267e1));function a21_0x3abd(){const _0x3d7dcc=['creatorIdField','appCode','source','afterScriptId','read','doVersion','224277QoJwka','path','responseBody','split','type','map','operations','required','fields','isArray','str','9SPWylS','description','7sogPFv','178219YRKNLg','deleted','entries','2538552Sddakj','responseFields','pkField','labelField','filter','extend','requestFields','properties','displayName','object','modifierNameField','formatRules','toField','name','requestBody','relatedPageInfoList','logicField','dbName','detail','validateRules','indexes','allFields','1222955xXIWOH','allFieldNames','tableComment','method','updateTimeField','toTableName','push','dataset','host','1055912bKjSPl','modelId','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelCode','tableName','datasetKey','dbtableConfig','442448uCqypO','options','modifierIdField','createTimeField','dbId','doType','beforeScriptId','505074fcaEhw','toFieldLabel','columnCodeListWithDeleted','trim','code','creatorNameField','length'];a21_0x3abd=function(){return _0x3d7dcc;};return a21_0x3abd();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x293860){const _0x290c82=a21_0x3531;if(_0x293860[_0x290c82(0x1a4)])return null;const _0x412bef=Boolean(_0x293860['displayName']!==undefined||_0x293860[_0x290c82(0x186)]!==undefined);let _0x1bcff0={};if(!_0x412bef&&typeof _0x293860[_0x290c82(0x1ab)]==='string')try{_0x1bcff0=JSON['parse'](_0x293860[_0x290c82(0x1ab)]);}catch{}const _0x18026d=_0x412bef?_0x293860[_0x290c82(0x1b3)]:_0x293860[_0x290c82(0x18c)],_0x51ef39=_0x412bef?_0x293860[_0x290c82(0x1ae)]:_0x293860['name'],_0x137415=_0x412bef?_0x293860[_0x290c82(0x186)]:_0x293860[_0x290c82(0x199)]||_0x293860['dataType'],_0x13f7e5=_0x412bef?_0x293860[_0x290c82(0x1a8)]===!![]:_0x1bcff0['pkField']===!![],_0x10d66b=_0x412bef?_0x293860[_0x290c82(0x19c)]===!![]:_0x1bcff0[_0x290c82(0x19c)]===!![],_0xc896b3=_0x412bef?_0x293860['options']??null:_0x1bcff0[_0x290c82(0x182)]??null,_0x5df400={'name':_0x18026d,'displayName':_0x51ef39||_0x18026d,'type':_0x137415,'dbType':_0x293860['dbType'],'pk':_0x13f7e5,'required':_0x10d66b,'description':_0x293860['description']||undefined};return Array[_0x290c82(0x19e)](_0xc896b3)&&_0xc896b3[_0x290c82(0x18e)]>0x0&&(_0x5df400[_0x290c82(0x182)]=_0xc896b3),_0x5df400;}function parseJsonMaybe(_0x523b27){if(typeof _0x523b27!=='string')return _0x523b27;try{return JSON['parse'](_0x523b27);}catch{return _0x523b27;}}function normalizeOperationEntry(_0x50e7c8,_0x3f6be5){const _0xb4d849=a21_0x3531;if(!_0x3f6be5||typeof _0x3f6be5!==_0xb4d849(0x1af))return null;if(!_0x3f6be5[_0xb4d849(0x1bf)]||!_0x3f6be5[_0xb4d849(0x196)])return null;const _0x4bba78={'name':_0x50e7c8,'method':_0x3f6be5[_0xb4d849(0x1bf)],'path':_0x3f6be5['path']};if(_0x3f6be5['host'])_0x4bba78[_0xb4d849(0x1c4)]=_0x3f6be5[_0xb4d849(0x1c4)];if(_0x3f6be5['requestBody']!=null)_0x4bba78[_0xb4d849(0x1b4)]=parseJsonMaybe(_0x3f6be5['requestBody']);if(_0x3f6be5[_0xb4d849(0x197)]!=null)_0x4bba78[_0xb4d849(0x197)]=parseJsonMaybe(_0x3f6be5[_0xb4d849(0x197)]);if(_0x3f6be5[_0xb4d849(0x187)]!=null)_0x4bba78[_0xb4d849(0x187)]=_0x3f6be5[_0xb4d849(0x187)];if(_0x3f6be5[_0xb4d849(0x192)]!=null)_0x4bba78[_0xb4d849(0x192)]=_0x3f6be5['afterScriptId'];if(Array[_0xb4d849(0x19e)](_0x3f6be5[_0xb4d849(0x1ac)]))_0x4bba78[_0xb4d849(0x1ac)]=_0x3f6be5[_0xb4d849(0x1ac)];if(Array[_0xb4d849(0x19e)](_0x3f6be5[_0xb4d849(0x1a7)]))_0x4bba78['responseFields']=_0x3f6be5[_0xb4d849(0x1a7)];return _0x4bba78;}function a21_0x3531(_0x22abf4,_0x2fbea3){_0x22abf4=_0x22abf4-0x180;const _0x3abd86=a21_0x3abd();let _0x3531d1=_0x3abd86[_0x22abf4];return _0x3531d1;}function summarizeDbtable(_0x4a9d45){const _0x1e2feb=a21_0x3531,_0x52ba45={},_0x4c4104=[_0x1e2feb(0x185),_0x1e2feb(0x1b7),_0x1e2feb(0x1c9),_0x1e2feb(0x1ca),_0x1e2feb(0x1a8),_0x1e2feb(0x1bb),_0x1e2feb(0x1b6),_0x1e2feb(0x184),_0x1e2feb(0x1c0),_0x1e2feb(0x18f),_0x1e2feb(0x18d),_0x1e2feb(0x183),_0x1e2feb(0x1b0),_0x1e2feb(0x1a9),'dblinkInfoDTO'];for(const _0x964e83 of _0x4c4104){if(_0x4a9d45[_0x964e83]!==undefined)_0x52ba45[_0x964e83]=_0x4a9d45[_0x964e83];}return typeof _0x52ba45[_0x1e2feb(0x1bb)]==='string'&&_0x52ba45['allFields'][_0x1e2feb(0x18e)]>0x0&&(_0x52ba45[_0x1e2feb(0x1bd)]=_0x52ba45[_0x1e2feb(0x1bb)][_0x1e2feb(0x198)](',')[_0x1e2feb(0x19a)](_0x2a5645=>_0x2a5645[_0x1e2feb(0x18b)]())['filter'](Boolean)),_0x52ba45;}function normalizeRelatedPages(_0x211460){const _0xca388e=a21_0x3531;if(!Array['isArray'](_0x211460))return[];return _0x211460[_0xca388e(0x1aa)](_0x440076=>_0x440076&&typeof _0x440076===_0xca388e(0x1af))[_0xca388e(0x19a)](_0x28c9fc=>({'id':_0x28c9fc['id'],'type':_0x28c9fc[_0xca388e(0x199)],'code':_0x28c9fc['code'],'title':_0x28c9fc['title'],'deleted':_0x28c9fc[_0xca388e(0x1a4)]===!![]}));}function normalizeFallbackFieldName(_0x242706,_0x5ee59e){const _0x36fe9f=_0x242706['trim']();if(!_0x36fe9f)return null;return{'name':_0x36fe9f,'displayName':_0x36fe9f,'type':undefined,'dbType':undefined,'pk':_0x36fe9f===_0x5ee59e,'required':![],'description':undefined};}async function loadListFieldFallback(_0x53bc79,_0x1009b6){const _0x5c1fa5=a21_0x3531;if(!_0x53bc79||!_0x1009b6)return[];try{const _0x596a42=await listDatasets(_0x53bc79,{'code':_0x1009b6}),_0x207332=_0x596a42['find'](_0x4521a7=>_0x4521a7[_0x5c1fa5(0x18c)]===_0x1009b6)??_0x596a42[0x0],_0x2dbfcc=_0x207332?.[_0x5c1fa5(0x180)]??{},_0x27ccd9=typeof _0x2dbfcc[_0x5c1fa5(0x1bb)]==='string'?_0x2dbfcc[_0x5c1fa5(0x1bb)][_0x5c1fa5(0x198)](','):[];return _0x27ccd9['map'](_0x3a6518=>normalizeFallbackFieldName(_0x3a6518,_0x2dbfcc[_0x5c1fa5(0x1a8)]))['filter'](_0x416030=>_0x416030!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a21_0x4d61c5(0x1b8),'description':a21_0x4d61c5(0x1c7),'risk':a21_0x4d61c5(0x193),'flags':[CODE_FLAG],async 'execute'(_0x552658){const _0x2cd7bd=a21_0x4d61c5,_0x2aee26=await getDatasetDetail(_0x552658[_0x2cd7bd(0x19f)](_0x2cd7bd(0x18c))),_0xa3d5aa=Array['isArray'](_0x2aee26[_0x2cd7bd(0x19d)])?_0x2aee26[_0x2cd7bd(0x19d)]:Array[_0x2cd7bd(0x19e)](_0x2aee26[_0x2cd7bd(0x1ad)])?_0x2aee26['properties']:[];let _0x2a8c50=_0xa3d5aa[_0x2cd7bd(0x19a)](_0x254923=>normalizeField(_0x254923))[_0x2cd7bd(0x1aa)](_0x2fe636=>_0x2fe636!==null);_0x2a8c50[_0x2cd7bd(0x18e)]===0x0&&(_0x2a8c50=await loadListFieldFallback(_0x552658[_0x2cd7bd(0x190)],_0x552658[_0x2cd7bd(0x19f)](_0x2cd7bd(0x18c))));const _0x12de67=_0x2aee26[_0x2cd7bd(0x19b)]??{},_0x33e79d=[];for(const [_0x322d9b,_0x3d801d]of Object[_0x2cd7bd(0x1a5)](_0x12de67)){const _0x2c6fa5=normalizeOperationEntry(_0x322d9b,_0x3d801d);if(_0x2c6fa5)_0x33e79d[_0x2cd7bd(0x1c2)](_0x2c6fa5);}const _0x30737c=_0x2aee26[_0x2cd7bd(0x180)]??{},_0x8be14=_0x2aee26[_0x2cd7bd(0x1c3)]??{},_0x2b6174=_0x30737c['dbId']!=null?{'id':_0x30737c[_0x2cd7bd(0x185)],'name':_0x30737c[_0x2cd7bd(0x1b7)]??null}:undefined;let _0x3cb541;return typeof _0x2aee26[_0x2cd7bd(0x1ab)]==='string'&&(_0x3cb541=parseJsonMaybe(_0x2aee26[_0x2cd7bd(0x1ab)])),{'ok':!![],'data':{'id':_0x2aee26[_0x2cd7bd(0x1c6)]??_0x2aee26['id'],'name':_0x2aee26['name'],'code':_0x2aee26[_0x2cd7bd(0x1c8)]||_0x2aee26[_0x2cd7bd(0x18c)],'doVersion':_0x2aee26[_0x2cd7bd(0x194)],'description':_0x2aee26[_0x2cd7bd(0x1a1)]||_0x8be14[_0x2cd7bd(0x1be)]||undefined,'source':_0x2aee26[_0x2cd7bd(0x191)]||_0x8be14['sourceType'],'table':_0x30737c[_0x2cd7bd(0x1c9)]||_0x8be14[_0x2cd7bd(0x1c9)],'datasetKey':_0x30737c[_0x2cd7bd(0x1ca)],'pk':_0x30737c['pkField'],'db':_0x2b6174,'dbtable':summarizeDbtable(_0x30737c),'fields':_0x2a8c50,'operations':_0x33e79d,'indexes':Array['isArray'](_0x8be14['indexes'])?_0x8be14[_0x2cd7bd(0x1ba)]:[],'relations':Array[_0x2cd7bd(0x19e)](_0x2aee26['relations'])?_0x2aee26['relations'][_0x2cd7bd(0x19a)](_0x364a39=>({'fromField':_0x364a39['fromField'],'toDataset':_0x364a39['toDatasetName'],'toCode':_0x364a39['toDatasetCode'],'toTable':_0x364a39[_0x2cd7bd(0x1c1)],'toField':_0x364a39[_0x2cd7bd(0x1b2)],'labelField':_0x364a39[_0x2cd7bd(0x189)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x2aee26[_0x2cd7bd(0x1b5)]),...Array[_0x2cd7bd(0x19e)](_0x2aee26['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x2aee26[_0x2cd7bd(0x18a)]}:{},'formatRules':Array[_0x2cd7bd(0x19e)](_0x2aee26[_0x2cd7bd(0x1b1)])?_0x2aee26[_0x2cd7bd(0x1b1)]:[],'validateRules':Array[_0x2cd7bd(0x19e)](_0x2aee26[_0x2cd7bd(0x1b9)])?_0x2aee26['validateRules']:[],..._0x3cb541!==undefined?{'extend':_0x3cb541}:{},'stats':{'fieldCount':_0x2a8c50[_0x2cd7bd(0x18e)],'operationCount':_0x33e79d[_0x2cd7bd(0x18e)]}}};}};
@@ -1 +1 @@
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
+ function a22_0x1c0d(){const _0x334602=['7757610YFkURY','2124230PDDvmI','3371811qKvNFe','130506StvVoo','287qqiFGc','8315055vVzfTZ','8CXTGDp','2337536XlLWQC','8jslhxC','40649VmwRKi'];a22_0x1c0d=function(){return _0x334602;};return a22_0x1c0d();}(function(_0x4e6263,_0x5b5086){const _0x26919d=a22_0x5c43,_0xbdad75=_0x4e6263();while(!![]){try{const _0x5e0639=parseInt(_0x26919d(0x1bc))/0x1+parseInt(_0x26919d(0x1ba))/0x2+parseInt(_0x26919d(0x1b5))/0x3+-parseInt(_0x26919d(0x1bb))/0x4*(-parseInt(_0x26919d(0x1b4))/0x5)+parseInt(_0x26919d(0x1b6))/0x6*(-parseInt(_0x26919d(0x1b7))/0x7)+-parseInt(_0x26919d(0x1b9))/0x8*(parseInt(_0x26919d(0x1b8))/0x9)+-parseInt(_0x26919d(0x1b3))/0xa;if(_0x5e0639===_0x5b5086)break;else _0xbdad75['push'](_0xbdad75['shift']());}catch(_0x553323){_0xbdad75['push'](_0xbdad75['shift']());}}}(a22_0x1c0d,0x906ef));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a22_0x5c43(_0x2b1ebe,_0x6733b9){_0x2b1ebe=_0x2b1ebe-0x1b3;const _0x1c0d57=a22_0x1c0d();let _0x5c4355=_0x1c0d57[_0x2b1ebe];return _0x5c4355;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
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
+ function a23_0x1ae7(_0x4ea279,_0x31b231){_0x4ea279=_0x4ea279-0xde;const _0x206515=a23_0x2065();let _0x1ae75f=_0x206515[_0x4ea279];return _0x1ae75f;}const a23_0x3ee1c9=a23_0x1ae7;(function(_0x125fb8,_0x539d0a){const _0x402e58=a23_0x1ae7,_0x54cd62=_0x125fb8();while(!![]){try{const _0x55a55e=-parseInt(_0x402e58(0xfa))/0x1+parseInt(_0x402e58(0xfb))/0x2*(parseInt(_0x402e58(0xea))/0x3)+parseInt(_0x402e58(0xec))/0x4*(-parseInt(_0x402e58(0xe8))/0x5)+-parseInt(_0x402e58(0xf5))/0x6*(-parseInt(_0x402e58(0xeb))/0x7)+parseInt(_0x402e58(0xdf))/0x8*(parseInt(_0x402e58(0xee))/0x9)+-parseInt(_0x402e58(0xe6))/0xa*(parseInt(_0x402e58(0xde))/0xb)+parseInt(_0x402e58(0xf8))/0xc;if(_0x55a55e===_0x539d0a)break;else _0x54cd62['push'](_0x54cd62['shift']());}catch(_0x44c559){_0x54cd62['push'](_0x54cd62['shift']());}}}(a23_0x2065,0x5040d));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a23_0x3ee1c9(0xf2),'description':a23_0x3ee1c9(0xe5),'risk':a23_0x3ee1c9(0xf3),'flags':[{'name':a23_0x3ee1c9(0xef),'type':a23_0x3ee1c9(0xe9),'description':a23_0x3ee1c9(0xf0)},{...CODE_FLAG,'required':![],'description':a23_0x3ee1c9(0xe2)}],async 'execute'(_0x187dab){const _0x4195dc=a23_0x3ee1c9,_0x501d3d=_0x187dab['str']('name'),_0x6801b5=_0x187dab[_0x4195dc(0xe0)](_0x4195dc(0xf7)),_0x2f018d=await listDatasets(_0x187dab[_0x4195dc(0xe4)],{..._0x501d3d&&{'name':_0x501d3d},..._0x6801b5&&{'code':_0x6801b5}});return{'ok':!![],'data':{'total':_0x2f018d[_0x4195dc(0xed)],'datasets':_0x2f018d['map'](_0x155429=>{const _0x186f51=_0x4195dc,_0x3e272e=_0x155429[_0x186f51(0xf9)]??{};return{'id':_0x155429['id'],'code':_0x155429['code'],'name':_0x155429[_0x186f51(0xef)],'source':_0x155429[_0x186f51(0xf6)],'description':_0x155429[_0x186f51(0xf1)],'table':_0x3e272e[_0x186f51(0xf4)],'datasetKey':_0x3e272e['datasetKey'],'pk':_0x3e272e['pkField'],'fields':_0x3e272e[_0x186f51(0xe3)]?_0x3e272e[_0x186f51(0xe3)][_0x186f51(0xe7)](',')[_0x186f51(0xe1)](_0x149e9d=>_0x149e9d['trim']()):[]};})}};}};function a23_0x2065(){const _0x50e981=['6348ypiwlh','2289034HPsMvh','179560KAGZQw','str','map','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','allFields','appCode','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','20aMvuAc','split','5mRCSEB','string','66bEFsOj','1131319kzxdww','432436ddoJQj','length','45iUFZMK','name','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','description','list','read','tableName','24iUqsCI','source','code','7268520JMWmag','dbtableConfig','581217sTwPZG'];a23_0x2065=function(){return _0x50e981;};return a23_0x2065();}
@@ -1 +1 @@
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
+ const a24_0x328792=a24_0x2310;(function(_0xc1242f,_0x2fbf83){const _0x4ff4d6=a24_0x2310,_0x2165a8=_0xc1242f();while(!![]){try{const _0x56f6d1=-parseInt(_0x4ff4d6(0x1bd))/0x1*(-parseInt(_0x4ff4d6(0x1cc))/0x2)+parseInt(_0x4ff4d6(0x1c5))/0x3+parseInt(_0x4ff4d6(0x1c4))/0x4+-parseInt(_0x4ff4d6(0x1be))/0x5*(-parseInt(_0x4ff4d6(0x1c6))/0x6)+parseInt(_0x4ff4d6(0x1c3))/0x7+parseInt(_0x4ff4d6(0x1cd))/0x8+parseInt(_0x4ff4d6(0x1c8))/0x9*(-parseInt(_0x4ff4d6(0x1cb))/0xa);if(_0x56f6d1===_0x2fbf83)break;else _0x2165a8['push'](_0x2165a8['shift']());}catch(_0x3193bf){_0x2165a8['push'](_0x2165a8['shift']());}}}(a24_0x5983,0x82206));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a24_0x2310(_0x128fd5,_0x34df64){_0x128fd5=_0x128fd5-0x1bd;const _0x59837b=a24_0x5983();let _0x2310fd=_0x59837b[_0x128fd5];return _0x2310fd;}const DEFAULT_MARKDOWN=a24_0x328792(0x1c7);function a24_0x5983(){const _0x1d1ec0=['trim','dataset','appCode','3726030QlEIZB','963488nHcfYB','3083700lyDGff','18EUgiBE','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','8072613UdFffM','string','sdk-doc','40oWFZyg','2jxmiOC','5691248NNPNBT','1027423QOoATx','968225XoqycW','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'];a24_0x5983=function(){return _0x1d1ec0;};return a24_0x5983();}export function formatDatasetSdkMarkdown(_0x2ac28d){const _0x3b8533=a24_0x328792,_0x148d5d=typeof _0x2ac28d===_0x3b8533(0x1c9)?_0x2ac28d[_0x3b8533(0x1c0)]():'';return _0x148d5d||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a24_0x328792(0x1c1),'command':a24_0x328792(0x1ca),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a24_0x328792(0x1bf)}],async 'execute'(_0x103956){const _0x263420=a24_0x328792,_0x4d1b4f=_0x103956['str']('code'),_0x263d09=await getDatasetSdkUsageDoc(_0x4d1b4f,_0x103956[_0x263420(0x1c2)]);return{'ok':!![],'data':{'code':_0x4d1b4f,'appCode':_0x103956['appCode'],'markdown':formatDatasetSdkMarkdown(_0x263d09)}};}};
@@ -1 +1 @@
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
+ const a25_0x554f6d=a25_0x5db8;(function(_0x3e04f2,_0xf312c0){const _0x24d5d5=a25_0x5db8,_0x1de30d=_0x3e04f2();while(!![]){try{const _0x761423=-parseInt(_0x24d5d5(0x21d))/0x1+-parseInt(_0x24d5d5(0x23c))/0x2+parseInt(_0x24d5d5(0x239))/0x3+-parseInt(_0x24d5d5(0x22e))/0x4+parseInt(_0x24d5d5(0x211))/0x5*(-parseInt(_0x24d5d5(0x1fd))/0x6)+-parseInt(_0x24d5d5(0x1f9))/0x7*(-parseInt(_0x24d5d5(0x217))/0x8)+parseInt(_0x24d5d5(0x232))/0x9;if(_0x761423===_0xf312c0)break;else _0x1de30d['push'](_0x1de30d['shift']());}catch(_0x4b563a){_0x1de30d['push'](_0x1de30d['shift']());}}}(a25_0x40e6,0xd2b0b));function a25_0x5db8(_0x2f041a,_0x53c4fa){_0x2f041a=_0x2f041a-0x1ed;const _0x40e605=a25_0x40e6();let _0x5db8f7=_0x40e605[_0x2f041a];return _0x5db8f7;}import a25_0x223c67 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(_0x3f26f3){const _0x356f73=a25_0x5db8,_0x191463=getCliVersion(),_0x2d9b73=buildConfigFromFlags({});await initGlobalEnvironment(_0x2d9b73),console[_0x356f73(0x214)](),console['log'](a25_0x223c67[_0x356f73(0x218)](CLI_BIN_NAME+_0x356f73(0x1fc))),console[_0x356f73(0x214)](a25_0x223c67['gray']('─'[_0x356f73(0x1f2)](0x32))),console[_0x356f73(0x214)](_0x356f73(0x227)+_0x191463),console['log'](_0x356f73(0x225)+process[_0x356f73(0x21e)]),console[_0x356f73(0x214)](_0x356f73(0x207)+process[_0x356f73(0x1fe)]+'\x20'+process[_0x356f73(0x21a)]),console[_0x356f73(0x214)](),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x218)]('\x20\x20Config\x20Files')),console['log'](a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x1ed)[_0x356f73(0x1f2)](0x1e)));const _0x5bf0f8=getGlobalConfigPath(),_0x4dfaa8=getProjectConfigPath();console[_0x356f73(0x214)](_0x356f73(0x202)+(_0x5bf0f8||a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x215)))),console['log'](_0x356f73(0x216)+(_0x4dfaa8||a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x215)))),console[_0x356f73(0x214)](),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x218)](_0x356f73(0x21c))),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x1ed)[_0x356f73(0x1f2)](0x1e)));const _0x477bdf=(_0x4515d7,_0x1a65be)=>{const _0x4e2765=_0x356f73;if(!_0x1a65be){console['log']('\x20\x20'+_0x4515d7[_0x4e2765(0x234)](0x11)+'\x20'+a25_0x223c67[_0x4e2765(0x1f0)]('(no\x20file)'));return;}const _0x563de1=inspectCliConfigJsonFile(_0x1a65be);if(_0x563de1[_0x4e2765(0x204)]==='ok')console[_0x4e2765(0x214)]('\x20\x20'+_0x4515d7[_0x4e2765(0x234)](0x11)+'\x20'+a25_0x223c67[_0x4e2765(0x201)]('✓\x20Valid\x20JSON'));else{if(_0x563de1[_0x4e2765(0x204)]===_0x4e2765(0x208))console[_0x4e2765(0x214)]('\x20\x20'+_0x4515d7[_0x4e2765(0x234)](0x11)+'\x20'+a25_0x223c67[_0x4e2765(0x212)](_0x4e2765(0x226)));else _0x563de1['status']==='missing'?console['log']('\x20\x20'+_0x4515d7[_0x4e2765(0x234)](0x11)+'\x20'+a25_0x223c67[_0x4e2765(0x1f0)]('(missing)')):(console[_0x4e2765(0x214)]('\x20\x20'+_0x4515d7['padEnd'](0x11)+'\x20'+a25_0x223c67['red'](_0x4e2765(0x20e))),console[_0x4e2765(0x214)]('\x20\x20'+''[_0x4e2765(0x234)](0x11)+'\x20'+a25_0x223c67[_0x4e2765(0x238)](_0x563de1[_0x4e2765(0x20c)])));}};_0x477bdf(_0x356f73(0x219),_0x5bf0f8),_0x477bdf('Project',_0x4dfaa8),console['log'](),console['log'](a25_0x223c67[_0x356f73(0x218)](_0x356f73(0x20b))),console['log'](a25_0x223c67[_0x356f73(0x1f0)]('\x20\x20─'['repeat'](0x1e))),console[_0x356f73(0x214)](_0x356f73(0x222)+(_0x2d9b73[_0x356f73(0x1ff)]||a25_0x223c67['red'](_0x356f73(0x1f4)))),console[_0x356f73(0x214)](_0x356f73(0x22d)+_0x2d9b73[_0x356f73(0x224)]);const _0x50b4d7=isLegacyCompatConfigKey(_0x356f73(0x22b))?a25_0x223c67[_0x356f73(0x1f0)](_0x2d9b73[_0x356f73(0x22b)]+'\x20(legacy/compat\x20only)'):_0x2d9b73['locale'];console[_0x356f73(0x214)](_0x356f73(0x1fa)+_0x50b4d7),console[_0x356f73(0x214)](_0x356f73(0x22a)+(_0x2d9b73[_0x356f73(0x242)]||a25_0x223c67['gray'](_0x356f73(0x1f7)))),console['log'](_0x356f73(0x200)+(_0x2d9b73['currentApp']||a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x1f7)))),console[_0x356f73(0x214)](_0x356f73(0x240)+(_0x2d9b73[_0x356f73(0x228)]||a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x203)+DEFAULT_CONFIG_VALUES[_0x356f73(0x228)]+')'))),console[_0x356f73(0x214)](_0x356f73(0x241)+(_0x2d9b73[_0x356f73(0x209)]??a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x21b)))),console[_0x356f73(0x214)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x2d9b73[_0x356f73(0x23d)]),console[_0x356f73(0x214)](_0x356f73(0x1ef)+_0x2d9b73[_0x356f73(0x1f1)]),console['log'](_0x356f73(0x1fb)+AUTH_MODE['ClientAk']),console['log'](_0x356f73(0x233)+(_0x2d9b73[_0x356f73(0x23a)]?a25_0x223c67[_0x356f73(0x201)](_0x356f73(0x1f8)+_0x2d9b73[_0x356f73(0x23a)][_0x356f73(0x223)]+')'):a25_0x223c67['gray']('(none)'))),console['log'](),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x218)](_0x356f73(0x21f))),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x1f0)]('\x20\x20─'[_0x356f73(0x1f2)](0x1e))),console[_0x356f73(0x214)](_0x356f73(0x1f5)+getApiDomain()),console[_0x356f73(0x214)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x356f73(0x214)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x356f73(0x214)](),console[_0x356f73(0x214)](a25_0x223c67['bold'](_0x356f73(0x22c))),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x1ed)['repeat'](0x1e)));const _0x1dcf1d=inspectServiceRegistry();console[_0x356f73(0x214)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1dcf1d['registryPath']),console[_0x356f73(0x214)](_0x356f73(0x205)+formatServiceRegistryStatus(_0x1dcf1d)),console[_0x356f73(0x214)](_0x356f73(0x1f6)+_0x1dcf1d[_0x356f73(0x237)]),console[_0x356f73(0x214)](_0x356f73(0x236)+_0x1dcf1d[_0x356f73(0x1ee)]);for(const _0x305e0a of _0x1dcf1d[_0x356f73(0x20f)]){console[_0x356f73(0x214)]('\x20\x20'+(_0x305e0a[_0x356f73(0x20d)]+':')[_0x356f73(0x234)](0x11)+'\x20'+(_0x305e0a['name']||a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x229)))+'\x20('+_0x305e0a['commandCount']+'\x20commands)'),console[_0x356f73(0x214)]('\x20\x20'+''[_0x356f73(0x234)](0x11)+_0x356f73(0x221)+_0x305e0a[_0x356f73(0x206)][_0x356f73(0x230)]);}return console[_0x356f73(0x214)](),console['log'](a25_0x223c67[_0x356f73(0x218)](_0x356f73(0x23e))),console[_0x356f73(0x214)](a25_0x223c67[_0x356f73(0x1f0)]('\x20\x20─'['repeat'](0x1e))),console[_0x356f73(0x214)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a25_0x223c67[_0x356f73(0x201)](AUTH_MODE[_0x356f73(0x23b)]+_0x356f73(0x1f3))),console[_0x356f73(0x214)](_0x356f73(0x220)+a25_0x223c67[_0x356f73(0x1f0)](_0x356f73(0x210))),console[_0x356f73(0x214)](),{'ok':!![]};}function a25_0x40e6(){const _0x37e843=['18415tqMQeW','yellow','⚠\x20Empty','log','(not\x20found)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','276416JqVEwa','bold','Global','arch','(default)','\x20\x20Config\x20JSON','13096UwanYx','version','\x20\x20API\x20Endpoints','\x20\x20Session\x20check:\x20\x20\x20','\x20Imported\x20from:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','env','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','format','(unnamed)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','locale','\x20\x20Service\x20Tree','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1924624MAUfHx','✗\x20Invalid','path','Diagnose\x20CLI\x20configuration\x20and\x20environment','5556735RYmFxE','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','padEnd','read','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','red','2479065jWJgYU','accessKey','ClientAk','324256pYweQf','riskLevel','\x20\x20Auth','doctor','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20─','commandCount','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','verbose','repeat','\x20(accessKey)','(not\x20set)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','(set,\x20length=','28LYGdMm','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20doctor','102zRLkdT','platform','appCode','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','green','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','status','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','empty','pageSize','missing','\x20\x20Merged\x20Config','message','serviceCode','✗\x20Invalid\x20JSON','services','(removed\x20—\x20cookie\x20auth\x20disabled)'];a25_0x40e6=function(){return _0x37e843;};return a25_0x40e6();}function formatServiceRegistryStatus(_0x46134f){const _0x23fabc=a25_0x5db8;if(_0x46134f['status']==='ok')return a25_0x223c67[_0x23fabc(0x201)]('✓\x20Loaded');if(_0x46134f[_0x23fabc(0x204)]===_0x23fabc(0x20a))return a25_0x223c67[_0x23fabc(0x1f0)](_0x23fabc(0x215));if(_0x46134f[_0x23fabc(0x204)]==='empty')return a25_0x223c67['yellow'](_0x23fabc(0x213));return a25_0x223c67[_0x23fabc(0x238)](_0x23fabc(0x22f)+(_0x46134f[_0x23fabc(0x20c)]?':\x20'+_0x46134f[_0x23fabc(0x20c)]:''));}export const doctorDefinition={'service':a25_0x554f6d(0x23f),'command':'check','description':a25_0x554f6d(0x231),'risk':a25_0x554f6d(0x235),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
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;}
1
+ function a26_0x1d08(){const _0x57250f=['validation','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','stdin','project','riskLevel','env','defaultApp','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','name','stdout','removeListener','utf8','parse','Override\x20imported\x20default\x20env','once','cancelled','boolean','\x20\x20env:\x20\x20\x20\x20\x20','newConfigFileName','entries','appcode','85024DgGiWi','trim',')\x20instead\x20of\x20project','includes','apiDir','Override\x20imported\x20default\x20appcode','join','close','111qXxHFg','1438899RBUkZO','Initialized\x20','\x20init\x20—\x20Create\x20','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','Failed\x20to\x20parse\x20source\x20file:\x20','Skip\x20confirmation\x20when\x20overwriting','\x22.\x20Allowed:\x20','Imported\x20from\x20','apps','App\x20code\x20cannot\x20be\x20empty.','global','Invalid\x20env\x20\x22','[y/N]','Target\x20environment\x20(default\x20','\x0aInitialized\x20','SIGINT','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','yes','toLowerCase','string','303126rkthVg','app','log','question','860064ldSPXO','960875ytexGK','\x20\x20config:\x20\x20','User\x20aborted\x20prompt','race','):\x20','AbortPrompt','Write\x20to\x20global\x20(~/','\x20\x20appcode:\x20','423672PLViuO','File\x20','\x20\x20default:\x20','file','14164hNPJIy'];a26_0x1d08=function(){return _0x57250f;};return a26_0x1d08();}const a26_0x39e593=a26_0x8510;function a26_0x8510(_0x173703,_0x3757cd){_0x173703=_0x173703-0x75;const _0x1d08d5=a26_0x1d08();let _0x851078=_0x1d08d5[_0x173703];return _0x851078;}(function(_0xecf066,_0x337b08){const _0x9406d7=a26_0x8510,_0x3c61a9=_0xecf066();while(!![]){try{const _0x143cb3=-parseInt(_0x9406d7(0xb6))/0x1+parseInt(_0x9406d7(0x7f))/0x2+-parseInt(_0x9406d7(0xa1))/0x3*(-parseInt(_0x9406d7(0x83))/0x4)+parseInt(_0x9406d7(0x77))/0x5+parseInt(_0x9406d7(0x76))/0x6+-parseInt(_0x9406d7(0xa2))/0x7+-parseInt(_0x9406d7(0x99))/0x8;if(_0x143cb3===_0x337b08)break;else _0x3c61a9['push'](_0x3c61a9['shift']());}catch(_0xc4b8e){_0x3c61a9['push'](_0x3c61a9['shift']());}}}(a26_0x1d08,0x26d55));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x39e593(0x98),'type':a26_0x39e593(0xb5),'description':'App\x20code\x20for\x20the\x20project'},{'name':a26_0x39e593(0x89),'type':'string','description':a26_0x39e593(0xaf)+DEFAULT_CONFIG_VALUES[a26_0x39e593(0x89)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x39e593(0xac),'type':'boolean','description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a26_0x39e593(0x96)]+a26_0x39e593(0x9b),'default':![]},{'name':a26_0x39e593(0xb3),'type':a26_0x39e593(0x94),'description':a26_0x39e593(0xa7),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x39e593(0x82),'type':a26_0x39e593(0xb5),'description':a26_0x39e593(0xb2),'required':!![]},{'name':a26_0x39e593(0x98),'type':a26_0x39e593(0xb5),'description':a26_0x39e593(0x9e)},{'name':a26_0x39e593(0x89),'type':a26_0x39e593(0xb5),'description':a26_0x39e593(0x91),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x39e593(0xac),'type':a26_0x39e593(0x94),'description':a26_0x39e593(0x7d)+PRODUCT_CONFIG[a26_0x39e593(0x96)]+')\x20instead\x20of\x20project','default':![]},{'name':'yes','type':a26_0x39e593(0x94),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x2b989d){const _0x4e8b41=a26_0x39e593,_0x45529a=isNonInteractiveMode(_0x2b989d),_0x372e3c=_0x2b989d['global']?'global':_0x4e8b41(0x87),_0x2afd61=resolveWriteConfigPath(_0x372e3c);try{_0x45529a?await runNonInteractive(_0x2b989d,_0x2afd61):await runInteractive(_0x2b989d,_0x2afd61);}catch(_0x1bb8e2){if(_0x1bb8e2 instanceof AbortPrompt)throw CliErrors[_0x4e8b41(0x93)]();throw _0x1bb8e2;}}export async function runInitImport(_0x13bd6a){const _0x233930=a26_0x39e593,_0x31b08b=_0x13bd6a[_0x233930(0xac)]?_0x233930(0xac):_0x233930(0x87),_0x16ee3e=resolveWriteConfigPath(_0x31b08b);await runFromImport(_0x13bd6a,_0x16ee3e);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x39e593(0x9d)]);async function runFromImport(_0xc2bc6,_0x4c5a2c){const _0x31b287=a26_0x39e593,_0x99cd41=resolveFilePath(_0xc2bc6[_0x31b287(0x82)]);if(!existsSync(_0x99cd41))throw CliErrors['validation']('Source\x20file\x20not\x20found:\x20'+_0x99cd41);const _0x2e23fd=readSourceFile(_0x99cd41),_0x51a6a1=convertToRuntimeConfig(_0x2e23fd);_0xc2bc6[_0x31b287(0x98)]&&(_0x51a6a1[_0x31b287(0x98)]=String(_0xc2bc6[_0x31b287(0x98)]));_0xc2bc6[_0x31b287(0x89)]&&(_0x51a6a1[_0x31b287(0x89)]=resolveInitEnv(_0xc2bc6));if(!_0x51a6a1['appcode'])throw CliErrors['validation']('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeInitConfig(_0x4c5a2c,_0x51a6a1,_0xc2bc6),console[_0x31b287(0xb8)](_0x31b287(0xa9)+_0x99cd41),console[_0x31b287(0xb8)](_0x31b287(0x78)+_0x4c5a2c),console[_0x31b287(0xb8)](_0x31b287(0x7e)+_0x51a6a1[_0x31b287(0x98)]);if(_0x51a6a1[_0x31b287(0x8a)])console[_0x31b287(0xb8)](_0x31b287(0x81)+_0x51a6a1[_0x31b287(0x8a)]);}function convertToRuntimeConfig(_0x28bece){const _0x1a6b13=a26_0x39e593;if(_0x28bece['apps']&&typeof _0x28bece[_0x1a6b13(0xaa)]==='object')throw CliErrors[_0x1a6b13(0x84)](_0x1a6b13(0x85),_0x1a6b13(0x8b));const _0x1a088a={};for(const _0x358ffa of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x28bece[_0x358ffa]!==undefined&&(_0x1a088a[_0x358ffa]=_0x28bece[_0x358ffa]);}return!_0x1a088a['riskLevel']&&(_0x1a088a[_0x1a6b13(0x88)]=DEFAULT_CONFIG_VALUES[_0x1a6b13(0x88)]),_0x1a088a;}async function runNonInteractive(_0x5ce5db,_0x22d447){const _0x22722b=a26_0x39e593,_0xd8892a=_0x5ce5db[_0x22722b(0x98)];if(!_0xd8892a)throw CliErrors['flagMissing'](_0x22722b(0x98),'Usage:\x20'+CLI_BIN_NAME+_0x22722b(0xa5));const _0x8cf9b8=resolveInitEnv(_0x5ce5db);await writeInitConfig(_0x22d447,{'appcode':_0xd8892a,'env':_0x8cf9b8},_0x5ce5db),console['log'](_0x22722b(0xa3)+_0x22d447),console[_0x22722b(0xb8)](_0x22722b(0x7e)+_0xd8892a),console[_0x22722b(0xb8)](_0x22722b(0x95)+_0x8cf9b8);}async function runInteractive(_0x15f269,_0x4fd9e8){const _0x27c84f=a26_0x39e593,_0x5550a4=loadExisting(_0x4fd9e8),_0x11bf92=typeof _0x5550a4?.[_0x27c84f(0x98)]===_0x27c84f(0xb5)?_0x5550a4[_0x27c84f(0x98)]:'',_0xa8c4b9=resolveInitEnv(_0x15f269);console[_0x27c84f(0xb8)](CLI_BIN_NAME+_0x27c84f(0xa4)+PRODUCT_CONFIG[_0x27c84f(0x96)]+'\x0a');if(existsSync(_0x4fd9e8)&&!_0x15f269[_0x27c84f(0xb3)]){const _0x2a064e=await promptYesNo(_0x27c84f(0x80)+_0x4fd9e8+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x2a064e){console[_0x27c84f(0xb8)]('Aborted.');return;}}const _0x1b34b0=typeof _0x15f269['appcode']===_0x27c84f(0xb5)?_0x15f269[_0x27c84f(0x98)][_0x27c84f(0x9a)]():'';let _0x30b7ed=_0x1b34b0;!_0x30b7ed&&(_0x30b7ed=await promptInput('App\x20code',_0x11bf92));if(!_0x30b7ed[_0x27c84f(0x9a)]())throw CliErrors[_0x27c84f(0x84)](_0x27c84f(0xab));await writeInitConfig(_0x4fd9e8,{'appcode':_0x30b7ed[_0x27c84f(0x9a)](),'env':_0xa8c4b9},_0x15f269),console['log'](_0x27c84f(0xb0)+_0x4fd9e8),console['log'](_0x27c84f(0x7e)+_0x30b7ed[_0x27c84f(0x9a)]()),console['log']('\x20\x20env:\x20\x20\x20\x20\x20'+_0xa8c4b9);}async function writeInitConfig(_0x4d10bd,_0x17650e,_0x4e88b8){const _0x2b9c5e=a26_0x39e593;let _0x32b0e8={};existsSync(_0x4d10bd)&&!_0x4e88b8['yes']&&(_0x32b0e8=readConfigFile(_0x4d10bd));for(const [_0x1eb63b,_0x3c4c38]of Object[_0x2b9c5e(0x97)](_0x17650e)){_0x3c4c38!==undefined&&(_0x32b0e8[_0x1eb63b]=_0x3c4c38);}if(_0x32b0e8[_0x2b9c5e(0xb7)])delete _0x32b0e8['app'];writeConfigFile(_0x4d10bd,_0x32b0e8);}class AbortPrompt extends Error{constructor(){const _0x52560c=a26_0x39e593;super(_0x52560c(0x79)),this[_0x52560c(0x8c)]=_0x52560c(0x7c);}}function createSafeRl(){const _0xb67040=a26_0x39e593,_0x29e729=createInterface({'input':process[_0xb67040(0x86)],'output':process[_0xb67040(0x8d)]});let _0x2ad39e;const _0x470967=new Promise((_0x58a333,_0x4eec4d)=>{const _0x96a652=_0xb67040;_0x2ad39e=()=>{const _0x3b92d9=a26_0x8510;_0x2ad39e&&(_0x29e729[_0x3b92d9(0x8e)]('SIGINT',_0x2ad39e),_0x2ad39e=undefined);try{_0x29e729[_0x3b92d9(0xa0)]();}catch{}_0x4eec4d(new AbortPrompt());},_0x29e729[_0x96a652(0x92)](_0x96a652(0xb1),_0x2ad39e);}),_0x47c37e=()=>{const _0x280df6=_0xb67040;_0x2ad39e&&(_0x29e729[_0x280df6(0x8e)](_0x280df6(0xb1),_0x2ad39e),_0x2ad39e=undefined);try{_0x29e729[_0x280df6(0xa0)]();}catch{}};return{'rl':_0x29e729,'abortPromise':_0x470967,'disposeSuccess':_0x47c37e};}async function promptInput(_0x482558,_0x216ecb){const _0x392517=a26_0x39e593,{rl:_0x1cc6ee,abortPromise:_0x1dabcf,disposeSuccess:_0x2cd116}=createSafeRl(),_0x2b28c7=new Promise(_0x5b4311=>{const _0x32e24e=a26_0x8510,_0x5340f8=_0x216ecb?'\x20\x20'+_0x482558+'\x20('+_0x216ecb+_0x32e24e(0x7b):'\x20\x20'+_0x482558+':\x20';_0x1cc6ee[_0x32e24e(0x75)](_0x5340f8,_0x2d9699=>{const _0x5c82e2=_0x32e24e;_0x2cd116(),_0x5b4311(_0x2d9699[_0x5c82e2(0x9a)]()||_0x216ecb);});});return Promise[_0x392517(0x7a)]([_0x2b28c7,_0x1dabcf]);}async function promptYesNo(_0xa2257,_0x316f10){const _0x8a0a92=a26_0x39e593,{rl:_0x523f91,abortPromise:_0x2e3173,disposeSuccess:_0x3133d6}=createSafeRl(),_0x69e496=new Promise(_0x4412dc=>{const _0x150771=a26_0x8510,_0x505030=_0x316f10?'[Y/n]':_0x150771(0xae);_0x523f91['question']('\x20\x20'+_0xa2257+'\x20'+_0x505030+':\x20',_0x28bc81=>{const _0x5e7d8f=_0x150771;_0x3133d6();const _0x2367c7=_0x28bc81['trim']()[_0x5e7d8f(0xb4)]();if(_0x2367c7==='y'||_0x2367c7===_0x5e7d8f(0xb3))_0x4412dc(!![]);else{if(_0x2367c7==='n'||_0x2367c7==='no')_0x4412dc(![]);else _0x4412dc(_0x316f10);}});});return Promise[_0x8a0a92(0x7a)]([_0x69e496,_0x2e3173]);}function loadExisting(_0x4c18e9){if(!existsSync(_0x4c18e9))return null;return readConfigFile(_0x4c18e9);}function resolveFilePath(_0xa43011){return isAbsolute(_0xa43011)?_0xa43011:resolve(process['cwd'](),_0xa43011);}function readSourceFile(_0x529b9d){const _0x2851d5=a26_0x39e593;try{const _0x4d8225=readFileSync(_0x529b9d,{'encoding':_0x2851d5(0x8f)});return JSON[_0x2851d5(0x90)](_0x4d8225);}catch(_0x52bf99){throw CliErrors[_0x2851d5(0x84)](_0x2851d5(0xa6)+_0x52bf99['message']);}}function resolveInitEnv(_0x516795){const _0x33a7c6=a26_0x39e593,_0x4532a2=_0x516795[_0x33a7c6(0x89)];if(_0x4532a2===undefined||_0x4532a2==='')return DEFAULT_CONFIG_VALUES[_0x33a7c6(0x89)];if(!RUNTIME_ENV_VALUES[_0x33a7c6(0x9c)](_0x4532a2))throw CliErrors[_0x33a7c6(0x84)](_0x33a7c6(0xad)+_0x4532a2+_0x33a7c6(0xa8)+RUNTIME_ENV_VALUES[_0x33a7c6(0x9f)](',\x20'));return _0x4532a2;}