@lovrabet/lovrabet-cli 2.0.13-beta.7 → 2.0.13

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 (76) 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/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/artifact/index.js +1 -1
  9. package/lib/commands/auth/index.js +1 -1
  10. package/lib/commands/auth/prompt.js +1 -1
  11. package/lib/commands/bff/detail.js +1 -1
  12. package/lib/commands/bff/exec.js +1 -1
  13. package/lib/commands/bff/index.js +1 -1
  14. package/lib/commands/common/config-policy.js +1 -1
  15. package/lib/commands/common/constraints.js +1 -1
  16. package/lib/commands/common/flags.js +1 -1
  17. package/lib/commands/config/definitions.js +1 -1
  18. package/lib/commands/config/shared.js +1 -1
  19. package/lib/commands/data/index.js +1 -1
  20. package/lib/commands/dataset/detail.js +1 -1
  21. package/lib/commands/dataset/index.js +1 -1
  22. package/lib/commands/dataset/list.js +1 -1
  23. package/lib/commands/dataset/sdk-doc.js +1 -1
  24. package/lib/commands/doctor.js +1 -1
  25. package/lib/commands/init.js +1 -1
  26. package/lib/commands/kb/index.js +1 -1
  27. package/lib/commands/logs/index.js +1 -1
  28. package/lib/commands/personal-bff/index.js +1 -1
  29. package/lib/commands/registry.js +1 -1
  30. package/lib/commands/schema.js +1 -1
  31. package/lib/commands/skill/index.js +1 -1
  32. package/lib/commands/sql/detail.js +1 -1
  33. package/lib/commands/sql/exec.js +1 -1
  34. package/lib/commands/sql/index.js +1 -1
  35. package/lib/commands/update.js +1 -1
  36. package/lib/config/schema.js +1 -1
  37. package/lib/constant/auth-mode.js +1 -1
  38. package/lib/constant/cli.js +1 -1
  39. package/lib/constant/defaults.js +1 -1
  40. package/lib/constant/distribution.js +1 -1
  41. package/lib/constant/domain.js +1 -1
  42. package/lib/constant/env.js +1 -1
  43. package/lib/constant/output.js +1 -1
  44. package/lib/constant/product.js +1 -1
  45. package/lib/constant/risk.js +1 -1
  46. package/lib/constant/url.js +1 -1
  47. package/lib/context.js +1 -1
  48. package/lib/core/api-client.js +1 -1
  49. package/lib/core/db-resolver.js +1 -1
  50. package/lib/core/sdk-client.js +1 -1
  51. package/lib/errors.js +1 -1
  52. package/lib/framework/build-all-flags.js +1 -1
  53. package/lib/framework/dryrun.js +1 -1
  54. package/lib/framework/flags.js +1 -1
  55. package/lib/framework/help.js +1 -1
  56. package/lib/framework/index.js +1 -1
  57. package/lib/framework/output.js +1 -1
  58. package/lib/framework/preparse.js +1 -1
  59. package/lib/framework/response.js +1 -1
  60. package/lib/framework/runner-confirmation.js +1 -1
  61. package/lib/framework/runner-error.js +1 -1
  62. package/lib/framework/runner.js +1 -1
  63. package/lib/framework/schema-export.js +1 -1
  64. package/lib/framework/types.js +1 -1
  65. package/lib/generated/build-info.js +1 -0
  66. package/lib/help.js +1 -1
  67. package/lib/skills/npx-skills-add.js +1 -1
  68. package/lib/skills/runtime-skill-sync.js +1 -1
  69. package/lib/utils/apply-jq-filter.js +1 -1
  70. package/lib/utils/logger.js +1 -1
  71. package/lib/utils/params.js +1 -1
  72. package/lib/utils/platform.js +1 -1
  73. package/lib/utils/update-notice.js +1 -1
  74. package/lib/utils/version.js +1 -1
  75. package/lib/utils/write-cli-side-channel.js +1 -1
  76. package/package.json +8 -1
@@ -1 +1 @@
1
- const a15_0x51a249=a15_0x49b6;(function(_0x4a9740,_0x355d6e){const _0x5c0efa=a15_0x49b6,_0x3e79fb=_0x4a9740();while(!![]){try{const _0x32dadd=parseInt(_0x5c0efa(0x130))/0x1*(parseInt(_0x5c0efa(0x135))/0x2)+-parseInt(_0x5c0efa(0x13e))/0x3*(-parseInt(_0x5c0efa(0x13c))/0x4)+-parseInt(_0x5c0efa(0x13d))/0x5+parseInt(_0x5c0efa(0x139))/0x6*(-parseInt(_0x5c0efa(0x134))/0x7)+-parseInt(_0x5c0efa(0x143))/0x8+parseInt(_0x5c0efa(0x13f))/0x9*(parseInt(_0x5c0efa(0x132))/0xa)+parseInt(_0x5c0efa(0x12f))/0xb;if(_0x32dadd===_0x355d6e)break;else _0x3e79fb['push'](_0x3e79fb['shift']());}catch(_0x4f1cce){_0x3e79fb['push'](_0x3e79fb['shift']());}}}(a15_0x3d89,0xca963));function a15_0x3d89(){const _0x4b9550=['Resource\x20ID','318880uUpmZJ','name','658707VTVNjW','14VHuMKj','Resource\x20name\x20for\x20lookup','number','Return\x20full\x20raw\x20response\x20object','102LPpGzm','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','17716NJIfHg','7195165CzNFdE','831zkcadb','207tpxwwR','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','sqlcode','boolean','8312992uGUWmt','verbose','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','27078117hjLtqw','69395ASdjdS'];a15_0x3d89=function(){return _0x4b9550;};return a15_0x3d89();}export const CODE_FLAG={'name':'code','type':a15_0x51a249(0x13a),'required':!![],'description':a15_0x51a249(0x145),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};function a15_0x49b6(_0x34266b,_0x16fa7d){_0x34266b=_0x34266b-0x12e;const _0x3d8972=a15_0x3d89();let _0x49b6d9=_0x3d8972[_0x34266b];return _0x49b6d9;}export const SQLCODE_FLAG={'name':a15_0x51a249(0x141),'type':a15_0x51a249(0x13a),'required':!![],'description':a15_0x51a249(0x12e),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a15_0x51a249(0x13b)}};export const VERBOSE_FLAG={'name':a15_0x51a249(0x144),'type':a15_0x51a249(0x142),'description':a15_0x51a249(0x138)};export const PARAMS_FLAG={'name':'params','type':a15_0x51a249(0x13a),'description':a15_0x51a249(0x140)};export const NAME_FLAG={'name':a15_0x51a249(0x133),'type':a15_0x51a249(0x13a),'description':a15_0x51a249(0x136)};export const ID_FLAG={'name':'id','type':a15_0x51a249(0x137),'required':!![],'description':a15_0x51a249(0x131)};
1
+ const a15_0x556df1=a15_0x3389;(function(_0x551ac1,_0x23d24e){const _0xfec585=a15_0x3389,_0x5d9240=_0x551ac1();while(!![]){try{const _0x1de8e0=-parseInt(_0xfec585(0x9a))/0x1*(parseInt(_0xfec585(0xa3))/0x2)+-parseInt(_0xfec585(0xa5))/0x3+-parseInt(_0xfec585(0x98))/0x4*(parseInt(_0xfec585(0x9c))/0x5)+parseInt(_0xfec585(0xa8))/0x6*(parseInt(_0xfec585(0x95))/0x7)+-parseInt(_0xfec585(0xa4))/0x8*(-parseInt(_0xfec585(0x9b))/0x9)+parseInt(_0xfec585(0x99))/0xa+-parseInt(_0xfec585(0x94))/0xb*(-parseInt(_0xfec585(0x92))/0xc);if(_0x1de8e0===_0x23d24e)break;else _0x5d9240['push'](_0x5d9240['shift']());}catch(_0x332005){_0x5d9240['push'](_0x5d9240['shift']());}}}(a15_0x2ea3,0x8bd3d));function a15_0x2ea3(){const _0x15deb8=['204ixFhHo','name','421861DgetGJ','14tIERlU','Resource\x20name\x20for\x20lookup','params','1917908sUDAFI','311100TjowRI','4469AcdnVR','9XvpIvz','10foTfhr','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','string','number','Return\x20full\x20raw\x20response\x20object','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','2JYZUyp','5638104sCQVOo','651138kREZUN','verbose','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1096086FAUGMG','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'];a15_0x2ea3=function(){return _0x15deb8;};return a15_0x2ea3();}export const CODE_FLAG={'name':a15_0x556df1(0xa2),'type':'string','required':!![],'description':a15_0x556df1(0xa7),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a15_0x556df1(0x9d)}};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a15_0x556df1(0xa9),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a15_0x556df1(0xa1)}};function a15_0x3389(_0x5c8fd9,_0x52981e){_0x5c8fd9=_0x5c8fd9-0x92;const _0x2ea380=a15_0x2ea3();let _0x338967=_0x2ea380[_0x5c8fd9];return _0x338967;}export const VERBOSE_FLAG={'name':a15_0x556df1(0xa6),'type':'boolean','description':a15_0x556df1(0xa0)};export const PARAMS_FLAG={'name':a15_0x556df1(0x97),'type':a15_0x556df1(0x9e),'description':a15_0x556df1(0xaa)};export const NAME_FLAG={'name':a15_0x556df1(0x93),'type':'string','description':a15_0x556df1(0x96)};export const ID_FLAG={'name':'id','type':a15_0x556df1(0x9f),'required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- const a16_0x11aa2a=a16_0xa693;function a16_0xe5b2(){const _0x2c8250=['Invalid\x20value\x20for\x20\x22','pageSize\x20must\x20be\x20a\x20positive\x20number','Delete\x20a\x20config\x20value','join','pageSize',';\x20apps.<alias>.appcode','key','format','477982NAfTWf','Config\x20files:\x0a','`\x20=\x20\x22','trim','args','apps','4566552jBMhnl','2310jOjPWR','field','set','\x20(global)','project-or-global-explicit','list','stringify','Set\x20a\x20config\x20value','\x20config\x20set\x20<key>\x20<value>\x20[--global]','length','object','config','Deleted\x20`','pretty','delete','(none)','81fryNbS','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','split','validation','321636ErKCuG','alias','4368331qGFEiv','Set\x20`','Value\x20to\x20assign','isArray','Missing\x20key\x20argument.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20\x20global:\x20\x20','32huFhby','raw','557385Soaakh','Usage:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','Key\x20not\x20found:\x20','get','1FCPtPT','Missing\x20key\x20or\x20value.','bool','value','14266NyodMx','Get\x20a\x20config\x20value','write','appcode','boolean','read','Settable\x20keys:\x20','\x20config\x20get\x20<key>','Top-level\x20key\x20\x22','global','Key\x20\x22','log','994090mkCVuR'];a16_0xe5b2=function(){return _0x2c8250;};return a16_0xe5b2();}(function(_0x3827e4,_0x1f1498){const _0x399f9c=a16_0xa693,_0x1de526=_0x3827e4();while(!![]){try{const _0x52a036=parseInt(_0x399f9c(0xca))/0x1*(-parseInt(_0x399f9c(0xe3))/0x2)+-parseInt(_0x399f9c(0xfe))/0x3+-parseInt(_0x399f9c(0xc3))/0x4*(-parseInt(_0x399f9c(0xc5))/0x5)+parseInt(_0x399f9c(0xea))/0x6*(-parseInt(_0x399f9c(0xce))/0x7)+-parseInt(_0x399f9c(0xe9))/0x8+parseInt(_0x399f9c(0xfa))/0x9*(parseInt(_0x399f9c(0xda))/0xa)+parseInt(_0x399f9c(0x100))/0xb;if(_0x52a036===_0x1f1498)break;else _0x1de526['push'](_0x1de526['shift']());}catch(_0xd2e944){_0x1de526['push'](_0x1de526['shift']());}}}(a16_0xe5b2,0x75aae));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';function a16_0xa693(_0x514c75,_0x36a78b){_0x514c75=_0x514c75-0xbd;const _0xe5b2ae=a16_0xe5b2();let _0xa6932b=_0xe5b2ae[_0x514c75];return _0xa6932b;}const GLOBAL_FLAG={'name':'global','type':a16_0x11aa2a(0xd2),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x567806){const _0x161e99=a16_0x11aa2a,_0x3cf968=_0x567806['split']('.');if(_0x3cf968[_0x161e99(0xf3)]!==0x3||_0x3cf968[0x0]!==_0x161e99(0xe8)||_0x3cf968[0x2]!=='appcode')return undefined;const _0x1611f2=_0x3cf968[0x1]?.[_0x161e99(0xe6)]();return _0x1611f2?_0x1611f2:undefined;}function parseAliasDeleteKey(_0x52ad2f){const _0x4f353e=a16_0x11aa2a,_0x91ee93=_0x52ad2f[_0x4f353e(0xfc)]('.');if(_0x91ee93[_0x4f353e(0xf3)]===0x2&&_0x91ee93[0x0]===_0x4f353e(0xe8)){const _0xf16787=_0x91ee93[0x1]?.['trim']();return _0xf16787?{'alias':_0xf16787}:undefined;}if(_0x91ee93[_0x4f353e(0xf3)]===0x3&&_0x91ee93[0x0]===_0x4f353e(0xe8)&&_0x91ee93[0x2]===_0x4f353e(0xd1)){const _0x53f68f=_0x91ee93[0x1]?.[_0x4f353e(0xe6)]();return _0x53f68f?{'alias':_0x53f68f,'field':_0x4f353e(0xd1)}:undefined;}return undefined;}function setLocalAppAlias(_0x3d1bf2,_0x573cca,_0x2d1f96){const _0x3baf94=a16_0x11aa2a,_0x20b1f8=_0x3d1bf2[_0x3baf94(0xe8)]&&typeof _0x3d1bf2[_0x3baf94(0xe8)]==='object'&&!Array[_0x3baf94(0xbf)](_0x3d1bf2[_0x3baf94(0xe8)])?_0x3d1bf2['apps']:{},_0x3cbaa5=_0x20b1f8[_0x573cca]&&typeof _0x20b1f8[_0x573cca]===_0x3baf94(0xf4)&&!Array['isArray'](_0x20b1f8[_0x573cca])?_0x20b1f8[_0x573cca]:{};_0x3cbaa5[_0x3baf94(0xd1)]=_0x2d1f96,_0x20b1f8[_0x573cca]=_0x3cbaa5,_0x3d1bf2['apps']=_0x20b1f8;}function deleteLocalAppAlias(_0x48d3cc,_0x249bb4){const _0x53bad0=a16_0x11aa2a;if(!_0x48d3cc[_0x53bad0(0xe8)]||typeof _0x48d3cc[_0x53bad0(0xe8)]!=='object'||Array[_0x53bad0(0xbf)](_0x48d3cc['apps']))return![];const _0x4716e3=_0x48d3cc[_0x53bad0(0xe8)],_0x3b883f=_0x4716e3[_0x249bb4[_0x53bad0(0xff)]];if(!_0x3b883f||typeof _0x3b883f!==_0x53bad0(0xf4)||Array['isArray'](_0x3b883f))return![];if(!_0x249bb4[_0x53bad0(0xeb)])return delete _0x4716e3[_0x249bb4[_0x53bad0(0xff)]],!![];if(!(_0x249bb4[_0x53bad0(0xeb)]in _0x3b883f))return![];return delete _0x3b883f[_0x249bb4[_0x53bad0(0xeb)]],Object['keys'](_0x3b883f)['length']===0x0&&delete _0x4716e3[_0x249bb4['alias']],!![];}const listDef={'service':'config','command':a16_0x11aa2a(0xef),'description':'List\x20current\x20config','risk':a16_0x11aa2a(0xd3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x41c638){const _0x3065da=a16_0x11aa2a,{buildConfigFromFlags:_0x3cb373}=await import('../../context.js'),_0x31ecc5=_0x3cb373({}),_0x5d0e11=getProjectConfigPath(),_0x581cec=resolveWriteConfigPath(_0x3065da(0xd7));if(_0x41c638[_0x3065da(0xe2)]===_0x3065da(0xf7))return{'ok':!![],'message':_0x3065da(0xc1)+(JSON['stringify'](_0x31ecc5['raw'],null,0x2)+'\x0a\x0a')+_0x3065da(0xe4)+('\x20\x20project:\x20'+(_0x5d0e11??_0x3065da(0xf9))+'\x0a')+(_0x3065da(0xc2)+_0x581cec)};return{'ok':!![],'data':{'effective':_0x31ecc5[_0x3065da(0xc4)],'configFiles':{'project':_0x5d0e11??null,'global':_0x581cec}}};}},getDef={'service':a16_0x11aa2a(0xf5),'command':a16_0x11aa2a(0xc9),'description':a16_0x11aa2a(0xcf),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x11aa2a(0xe1),'description':a16_0x11aa2a(0xfb),'required':!![]}],'flags':[],async 'execute'(_0x591fb8){const _0x276a8b=a16_0x11aa2a,_0x4e8f59=_0x591fb8['args'][0x0];if(!_0x4e8f59)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x276a8b(0xc6)+CLI_BIN_NAME+_0x276a8b(0xd5));const {buildConfigFromFlags:_0x4b46eb}=await import('../../context.js'),{raw:_0x248453}=_0x4b46eb({});if(_0x4e8f59['includes']('.')){const _0x560844=_0x4e8f59[_0x276a8b(0xfc)]('.');let _0x4baccc=_0x248453;for(const _0xf802d8 of _0x560844){if(_0x4baccc==null||typeof _0x4baccc!=='object')throw CliErrors['validation'](_0x276a8b(0xc8)+_0x4e8f59);_0x4baccc=_0x4baccc[_0xf802d8];}if(_0x4baccc===undefined)throw CliErrors[_0x276a8b(0xfd)](_0x276a8b(0xc8)+_0x4e8f59);return console[_0x276a8b(0xd9)](typeof _0x4baccc===_0x276a8b(0xf4)?JSON['stringify'](_0x4baccc,null,0x2):String(_0x4baccc)),{'ok':!![]};}const _0x23bf2d=_0x248453[_0x4e8f59];if(_0x23bf2d===undefined)throw CliErrors[_0x276a8b(0xfd)](_0x276a8b(0xc8)+_0x4e8f59);return console['log'](typeof _0x23bf2d==='object'?JSON[_0x276a8b(0xf0)](_0x23bf2d,null,0x2):String(_0x23bf2d)),{'ok':!![]};}},setDef={'service':a16_0x11aa2a(0xf5),'command':a16_0x11aa2a(0xec),'description':a16_0x11aa2a(0xf1),'risk':a16_0x11aa2a(0xd0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x11aa2a(0xe1),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a16_0x11aa2a(0xcd),'description':a16_0x11aa2a(0xbe),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x307f29){const _0x1ed34a=a16_0x11aa2a,_0x43febd=_0x307f29[_0x1ed34a(0xe7)][0x0],_0x28b154=_0x307f29[_0x1ed34a(0xe7)][0x1];if(!_0x43febd||_0x28b154===undefined)throw CliErrors['validation'](_0x1ed34a(0xcb),_0x1ed34a(0xc6)+CLI_BIN_NAME+_0x1ed34a(0xf2));if(ENUM_KEYS[_0x43febd]&&!ENUM_KEYS[_0x43febd]['includes'](_0x28b154))throw CliErrors[_0x1ed34a(0xfd)](_0x1ed34a(0xdb)+_0x43febd+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x43febd][_0x1ed34a(0xde)](',\x20'));if(_0x43febd==='riskLevel')throw CliErrors[_0x1ed34a(0xfd)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x43febd==='pageSize'){const _0x4e860e=Number(_0x28b154);if(isNaN(_0x4e860e)||_0x4e860e<=0x0)throw CliErrors[_0x1ed34a(0xfd)](_0x1ed34a(0xdc));}const _0x4eb827=resolveWriteScope({'explicitGlobal':_0x307f29[_0x1ed34a(0xcc)](_0x1ed34a(0xd7)),'policy':_0x1ed34a(0xee)}),_0x4e32fd=toScopeFlags(_0x4eb827),_0x505f3b=readScopedConfig(_0x4e32fd),_0x9fb8a3=parseAliasAppcodeSetKey(_0x43febd);if(!_0x9fb8a3&&!isTopLevelConfigKey(_0x43febd))throw CliErrors[_0x1ed34a(0xfd)](_0x1ed34a(0xd6)+_0x43febd+'\x22\x20is\x20not\x20settable.',_0x1ed34a(0xd4)+getTopLevelConfigKeySummary()+_0x1ed34a(0xe0));return _0x9fb8a3?setLocalAppAlias(_0x505f3b,_0x9fb8a3,_0x28b154):_0x505f3b[_0x43febd]=_0x43febd===_0x1ed34a(0xdf)?Number(_0x28b154):_0x28b154,console[_0x1ed34a(0xd9)](_0x1ed34a(0xbd)+_0x43febd+_0x1ed34a(0xe5)+_0x28b154+'\x22'+(_0x4eb827===_0x1ed34a(0xd7)?_0x1ed34a(0xed):'')),writeScopedConfig(_0x505f3b,_0x4e32fd),{'ok':!![]};}},deleteDef={'service':a16_0x11aa2a(0xf5),'command':a16_0x11aa2a(0xf8),'description':a16_0x11aa2a(0xdd),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x11aa2a(0xe1),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1dee17){const _0x1e56a9=a16_0x11aa2a,_0xfa5c16=_0x1dee17[_0x1e56a9(0xe7)][0x0];if(!_0xfa5c16)throw CliErrors[_0x1e56a9(0xfd)](_0x1e56a9(0xc0),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x135e5b=resolveWriteScope({'explicitGlobal':_0x1dee17[_0x1e56a9(0xcc)](_0x1e56a9(0xd7)),'policy':_0x1e56a9(0xee)}),_0x2da033=toScopeFlags(_0x135e5b),_0x2358b6=readScopedConfig(_0x2da033),_0x27e723=parseAliasDeleteKey(_0xfa5c16);if(_0x27e723){if(!deleteLocalAppAlias(_0x2358b6,_0x27e723))throw CliErrors[_0x1e56a9(0xfd)]('Key\x20not\x20found:\x20'+_0xfa5c16);return console[_0x1e56a9(0xd9)]('Deleted\x20`'+_0xfa5c16+'`'+(_0x135e5b==='global'?_0x1e56a9(0xed):'')),writeScopedConfig(_0x2358b6,_0x2da033),{'ok':!![]};}if(_0x2358b6[_0xfa5c16]===undefined)throw CliErrors[_0x1e56a9(0xfd)](_0x1e56a9(0xd8)+_0xfa5c16+_0x1e56a9(0xc7));return delete _0x2358b6[_0xfa5c16],console[_0x1e56a9(0xd9)](_0x1e56a9(0xf6)+_0xfa5c16+'`'+(_0x135e5b===_0x1e56a9(0xd7)?'\x20(global)':'')),writeScopedConfig(_0x2358b6,_0x2da033),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a16_0x491b58=a16_0x167b;(function(_0x1bca99,_0x119832){const _0x1d1a7f=a16_0x167b,_0x3429d9=_0x1bca99();while(!![]){try{const _0x2105de=-parseInt(_0x1d1a7f(0x18f))/0x1+-parseInt(_0x1d1a7f(0x174))/0x2+-parseInt(_0x1d1a7f(0x166))/0x3+-parseInt(_0x1d1a7f(0x19b))/0x4+-parseInt(_0x1d1a7f(0x170))/0x5*(-parseInt(_0x1d1a7f(0x18b))/0x6)+-parseInt(_0x1d1a7f(0x17c))/0x7+-parseInt(_0x1d1a7f(0x16e))/0x8*(-parseInt(_0x1d1a7f(0x161))/0x9);if(_0x2105de===_0x119832)break;else _0x3429d9['push'](_0x3429d9['shift']());}catch(_0x9a0b1e){_0x3429d9['push'](_0x3429d9['shift']());}}}(a16_0x47a3,0x4cc41));function a16_0x167b(_0x753224,_0x42dd15){_0x753224=_0x753224-0x15e;const _0x47a3bc=a16_0x47a3();let _0x167bd7=_0x47a3bc[_0x753224];return _0x167bd7;}function a16_0x47a3(){const _0x1fafcf=['Config\x20files:\x0a','alias','1576jXxqEh','validation','5qmIpAR','Key\x20\x22','Missing\x20key\x20or\x20value.','get','644506lOrCjC','write','Set\x20`','config','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','length','apps','object','1716722fxALib','`\x20=\x20\x22','raw','../../context.js','pageSize\x20must\x20be\x20a\x20positive\x20number','keys','Missing\x20key\x20argument.','Usage:\x20','includes','stringify','\x22\x20is\x20not\x20settable.','global','bool','\x20\x20global:\x20\x20','pageSize','608376AvXCUa','key','isArray','Set\x20a\x20config\x20value','501400TLYTwN','trim','Key\x20not\x20found:\x20','Write\x20to\x20global\x20config','riskLevel','args','\x20(global)','project-or-global-explicit','split','\x20config\x20delete\x20<key>\x20[--global]','Get\x20a\x20config\x20value','appcode','2274404dnrPAw','delete','\x22\x20not\x20found\x20at\x20top\x20level.','\x20config\x20get\x20<key>','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','85599ipwijt','list','log','Deleted\x20`','format','69390kpBLtZ','join','set','field','read','\x20\x20project:\x20'];a16_0x47a3=function(){return _0x1fafcf;};return a16_0x47a3();}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':a16_0x491b58(0x187),'type':'boolean','description':a16_0x491b58(0x192),'default':![]};function parseAliasAppcodeSetKey(_0x23a4f7){const _0x11ebec=a16_0x491b58,_0xdfc686=_0x23a4f7['split']('.');if(_0xdfc686[_0x11ebec(0x179)]!==0x3||_0xdfc686[0x0]!==_0x11ebec(0x17a)||_0xdfc686[0x2]!=='appcode')return undefined;const _0x117258=_0xdfc686[0x1]?.[_0x11ebec(0x190)]();return _0x117258?_0x117258:undefined;}function parseAliasDeleteKey(_0x354d9f){const _0x152d16=a16_0x491b58,_0x39f726=_0x354d9f['split']('.');if(_0x39f726[_0x152d16(0x179)]===0x2&&_0x39f726[0x0]==='apps'){const _0x136fbf=_0x39f726[0x1]?.['trim']();return _0x136fbf?{'alias':_0x136fbf}:undefined;}if(_0x39f726[_0x152d16(0x179)]===0x3&&_0x39f726[0x0]==='apps'&&_0x39f726[0x2]===_0x152d16(0x19a)){const _0x4479dc=_0x39f726[0x1]?.['trim']();return _0x4479dc?{'alias':_0x4479dc,'field':_0x152d16(0x19a)}:undefined;}return undefined;}function setLocalAppAlias(_0x2b88fd,_0x241344,_0x510564){const _0x5e9ace=a16_0x491b58,_0x22e1dd=_0x2b88fd[_0x5e9ace(0x17a)]&&typeof _0x2b88fd[_0x5e9ace(0x17a)]===_0x5e9ace(0x17b)&&!Array[_0x5e9ace(0x18d)](_0x2b88fd['apps'])?_0x2b88fd[_0x5e9ace(0x17a)]:{},_0x13ad21=_0x22e1dd[_0x241344]&&typeof _0x22e1dd[_0x241344]==='object'&&!Array[_0x5e9ace(0x18d)](_0x22e1dd[_0x241344])?_0x22e1dd[_0x241344]:{};_0x13ad21[_0x5e9ace(0x19a)]=_0x510564,_0x22e1dd[_0x241344]=_0x13ad21,_0x2b88fd[_0x5e9ace(0x17a)]=_0x22e1dd;}function deleteLocalAppAlias(_0x53cdc1,_0x5d4f4f){const _0x4c2e08=a16_0x491b58;if(!_0x53cdc1[_0x4c2e08(0x17a)]||typeof _0x53cdc1[_0x4c2e08(0x17a)]!==_0x4c2e08(0x17b)||Array[_0x4c2e08(0x18d)](_0x53cdc1[_0x4c2e08(0x17a)]))return![];const _0x394e69=_0x53cdc1[_0x4c2e08(0x17a)],_0x2441e6=_0x394e69[_0x5d4f4f[_0x4c2e08(0x16d)]];if(!_0x2441e6||typeof _0x2441e6!==_0x4c2e08(0x17b)||Array[_0x4c2e08(0x18d)](_0x2441e6))return![];if(!_0x5d4f4f[_0x4c2e08(0x169)])return delete _0x394e69[_0x5d4f4f[_0x4c2e08(0x16d)]],!![];if(!(_0x5d4f4f[_0x4c2e08(0x169)]in _0x2441e6))return![];return delete _0x2441e6[_0x5d4f4f[_0x4c2e08(0x169)]],Object[_0x4c2e08(0x181)](_0x2441e6)[_0x4c2e08(0x179)]===0x0&&delete _0x394e69[_0x5d4f4f[_0x4c2e08(0x16d)]],!![];}const listDef={'service':'config','command':a16_0x491b58(0x162),'description':'List\x20current\x20config','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x244ba5){const _0x158029=a16_0x491b58,{buildConfigFromFlags:_0x574372}=await import(_0x158029(0x17f)),_0x436960=_0x574372({}),_0xf24bd7=getProjectConfigPath(),_0x5c6b68=resolveWriteConfigPath(_0x158029(0x187));if(_0x244ba5[_0x158029(0x165)]==='pretty')return{'ok':!![],'message':_0x158029(0x178)+(JSON[_0x158029(0x185)](_0x436960['raw'],null,0x2)+'\x0a\x0a')+_0x158029(0x16c)+(_0x158029(0x16b)+(_0xf24bd7??'(none)')+'\x0a')+(_0x158029(0x189)+_0x5c6b68)};return{'ok':!![],'data':{'effective':_0x436960[_0x158029(0x17e)],'configFiles':{'project':_0xf24bd7??null,'global':_0x5c6b68}}};}},getDef={'service':a16_0x491b58(0x177),'command':a16_0x491b58(0x173),'description':a16_0x491b58(0x199),'risk':a16_0x491b58(0x16a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x491b58(0x18c),'description':a16_0x491b58(0x160),'required':!![]}],'flags':[],async 'execute'(_0x1a7266){const _0x173e03=a16_0x491b58,_0xf380bc=_0x1a7266['args'][0x0];if(!_0xf380bc)throw CliErrors[_0x173e03(0x16f)](_0x173e03(0x182),_0x173e03(0x183)+CLI_BIN_NAME+_0x173e03(0x15f));const {buildConfigFromFlags:_0x18ae92}=await import('../../context.js'),{raw:_0x60a1ac}=_0x18ae92({});if(_0xf380bc['includes']('.')){const _0x501116=_0xf380bc[_0x173e03(0x197)]('.');let _0x1b02ac=_0x60a1ac;for(const _0xe86382 of _0x501116){if(_0x1b02ac==null||typeof _0x1b02ac!=='object')throw CliErrors[_0x173e03(0x16f)](_0x173e03(0x191)+_0xf380bc);_0x1b02ac=_0x1b02ac[_0xe86382];}if(_0x1b02ac===undefined)throw CliErrors['validation'](_0x173e03(0x191)+_0xf380bc);return console['log'](typeof _0x1b02ac===_0x173e03(0x17b)?JSON[_0x173e03(0x185)](_0x1b02ac,null,0x2):String(_0x1b02ac)),{'ok':!![]};}const _0x2d2927=_0x60a1ac[_0xf380bc];if(_0x2d2927===undefined)throw CliErrors[_0x173e03(0x16f)](_0x173e03(0x191)+_0xf380bc);return console[_0x173e03(0x163)](typeof _0x2d2927===_0x173e03(0x17b)?JSON[_0x173e03(0x185)](_0x2d2927,null,0x2):String(_0x2d2927)),{'ok':!![]};}},setDef={'service':a16_0x491b58(0x177),'command':a16_0x491b58(0x168),'description':a16_0x491b58(0x18e),'risk':a16_0x491b58(0x175),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x491b58(0x18c),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x157f87){const _0x1584e3=a16_0x491b58,_0x1d51f7=_0x157f87[_0x1584e3(0x194)][0x0],_0x1370d4=_0x157f87[_0x1584e3(0x194)][0x1];if(!_0x1d51f7||_0x1370d4===undefined)throw CliErrors['validation'](_0x1584e3(0x172),_0x1584e3(0x183)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x1d51f7]&&!ENUM_KEYS[_0x1d51f7][_0x1584e3(0x184)](_0x1370d4))throw CliErrors[_0x1584e3(0x16f)]('Invalid\x20value\x20for\x20\x22'+_0x1d51f7+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1d51f7][_0x1584e3(0x167)](',\x20'));if(_0x1d51f7===_0x1584e3(0x193))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x1d51f7===_0x1584e3(0x18a)){const _0x3d87dd=Number(_0x1370d4);if(isNaN(_0x3d87dd)||_0x3d87dd<=0x0)throw CliErrors['validation'](_0x1584e3(0x180));}const _0x37ee4b=resolveWriteScope({'explicitGlobal':_0x157f87[_0x1584e3(0x188)](_0x1584e3(0x187)),'policy':_0x1584e3(0x196)}),_0x2fd2e7=toScopeFlags(_0x37ee4b),_0x194f85=readScopedConfig(_0x2fd2e7),_0x32e8ff=parseAliasAppcodeSetKey(_0x1d51f7);if(!_0x32e8ff&&!isTopLevelConfigKey(_0x1d51f7))throw CliErrors[_0x1584e3(0x16f)]('Top-level\x20key\x20\x22'+_0x1d51f7+_0x1584e3(0x186),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x32e8ff?setLocalAppAlias(_0x194f85,_0x32e8ff,_0x1370d4):_0x194f85[_0x1d51f7]=_0x1d51f7===_0x1584e3(0x18a)?Number(_0x1370d4):_0x1370d4,console[_0x1584e3(0x163)](_0x1584e3(0x176)+_0x1d51f7+_0x1584e3(0x17d)+_0x1370d4+'\x22'+(_0x37ee4b==='global'?_0x1584e3(0x195):'')),writeScopedConfig(_0x194f85,_0x2fd2e7),{'ok':!![]};}},deleteDef={'service':a16_0x491b58(0x177),'command':a16_0x491b58(0x19c),'description':'Delete\x20a\x20config\x20value','risk':a16_0x491b58(0x175),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5c0f2c){const _0x2425bf=a16_0x491b58,_0x3d8d1b=_0x5c0f2c['args'][0x0];if(!_0x3d8d1b)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x2425bf(0x183)+CLI_BIN_NAME+_0x2425bf(0x198));const _0x2296ba=resolveWriteScope({'explicitGlobal':_0x5c0f2c[_0x2425bf(0x188)](_0x2425bf(0x187)),'policy':_0x2425bf(0x196)}),_0x56bc24=toScopeFlags(_0x2296ba),_0x425afa=readScopedConfig(_0x56bc24),_0x1bc9be=parseAliasDeleteKey(_0x3d8d1b);if(_0x1bc9be){if(!deleteLocalAppAlias(_0x425afa,_0x1bc9be))throw CliErrors[_0x2425bf(0x16f)]('Key\x20not\x20found:\x20'+_0x3d8d1b);return console[_0x2425bf(0x163)](_0x2425bf(0x164)+_0x3d8d1b+'`'+(_0x2296ba==='global'?_0x2425bf(0x195):'')),writeScopedConfig(_0x425afa,_0x56bc24),{'ok':!![]};}if(_0x425afa[_0x3d8d1b]===undefined)throw CliErrors['validation'](_0x2425bf(0x171)+_0x3d8d1b+_0x2425bf(0x15e));return delete _0x425afa[_0x3d8d1b],console['log'](_0x2425bf(0x164)+_0x3d8d1b+'`'+(_0x2296ba===_0x2425bf(0x187)?_0x2425bf(0x195):'')),writeScopedConfig(_0x425afa,_0x56bc24),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x37a481,_0x365419){var _0x2303f4=a17_0x45f5,_0x5582a4=_0x37a481();while(!![]){try{var _0x277079=parseInt(_0x2303f4(0x165))/0x1*(parseInt(_0x2303f4(0x15f))/0x2)+parseInt(_0x2303f4(0x160))/0x3+parseInt(_0x2303f4(0x163))/0x4+parseInt(_0x2303f4(0x15e))/0x5+parseInt(_0x2303f4(0x164))/0x6*(parseInt(_0x2303f4(0x161))/0x7)+parseInt(_0x2303f4(0x162))/0x8+-parseInt(_0x2303f4(0x15d))/0x9;if(_0x277079===_0x365419)break;else _0x5582a4['push'](_0x5582a4['shift']());}catch(_0x292355){_0x5582a4['push'](_0x5582a4['shift']());}}}(a17_0x288e,0x80015));function a17_0x288e(){var _0x2db706=['5053910VjIwet','115586pdOkhz','2497392cAgMJw','1052541bMPote','7215144tmZorn','2090872ngIoGe','36IkecpI','12Eoxjzp','39053178mflqhf'];a17_0x288e=function(){return _0x2db706;};return a17_0x288e();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a17_0x45f5(_0x4c5036,_0x2cd897){_0x4c5036=_0x4c5036-0x15d;var _0x288e4d=a17_0x288e();var _0x45f54b=_0x288e4d[_0x4c5036];return _0x45f54b;}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(_0x2b5062,_0x4fa94a){var _0x47fd3f=a17_0x26b3,_0x3d727c=_0x2b5062();while(!![]){try{var _0x139f88=-parseInt(_0x47fd3f(0x1a3))/0x1*(parseInt(_0x47fd3f(0x1a7))/0x2)+parseInt(_0x47fd3f(0x1a5))/0x3*(-parseInt(_0x47fd3f(0x1a8))/0x4)+-parseInt(_0x47fd3f(0x1a9))/0x5+-parseInt(_0x47fd3f(0x1a0))/0x6+-parseInt(_0x47fd3f(0x1a2))/0x7+parseInt(_0x47fd3f(0x1a4))/0x8*(parseInt(_0x47fd3f(0x1a1))/0x9)+parseInt(_0x47fd3f(0x19f))/0xa*(parseInt(_0x47fd3f(0x1a6))/0xb);if(_0x139f88===_0x4fa94a)break;else _0x3d727c['push'](_0x3d727c['shift']());}catch(_0x2fce3a){_0x3d727c['push'](_0x3d727c['shift']());}}}(a17_0xc527,0x7655e));import{CLI_BIN_NAME}from'../../constant/cli.js';function a17_0x26b3(_0x4628b3,_0x491b05){_0x4628b3=_0x4628b3-0x19f;var _0xc5273d=a17_0xc527();var _0x26b390=_0xc5273d[_0x4628b3];return _0x26b390;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a17_0xc527(){var _0x215137=['5934952lIFfOh','44001HxYIjV','18786977ZLEHcp','182548vjyBXX','12laluwN','2710970eKrdbt','10jxaEKj','2001426vrSdxM','9uWkTQP','2844730tJXJfG','7YcRBQo'];a17_0xc527=function(){return _0x215137;};return a17_0xc527();}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a18_0x6b2538=a18_0x5c3d;(function(_0x11b9c9,_0x1cb31d){const _0x41afa8=a18_0x5c3d,_0x33e132=_0x11b9c9();while(!![]){try{const _0x76dffa=parseInt(_0x41afa8(0xff))/0x1*(-parseInt(_0x41afa8(0x108))/0x2)+-parseInt(_0x41afa8(0x101))/0x3+-parseInt(_0x41afa8(0x10d))/0x4+parseInt(_0x41afa8(0xca))/0x5*(-parseInt(_0x41afa8(0xf2))/0x6)+-parseInt(_0x41afa8(0x10c))/0x7+-parseInt(_0x41afa8(0x109))/0x8+parseInt(_0x41afa8(0xe3))/0x9;if(_0x76dffa===_0x1cb31d)break;else _0x33e132['push'](_0x33e132['shift']());}catch(_0x30a40d){_0x33e132['push'](_0x33e132['shift']());}}}(a18_0x1927,0x981de));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 a18_0x1927(){const _0x1a9af2=['732DxDyGq','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','paramsHint','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','data','write','getOne','data\x20','read','\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}}','4027Tthegm','\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{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','900534rsDhvb','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','command','update','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$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}}','226WPvUsO','1222448xVWoAE','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','description','5055274CaIAQk','981092oUkLlC','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','now','create','str','dryRun','risk','\x20\x20PAGINATION','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','code','build','\x20\x20LOGICAL\x20COMBINATORS','Update\x20an\x20existing\x20record','25485mPmLnH','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20PARAMS\x20STRUCTURE','\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}]','map','join','\x20\x20EXAMPLES','aggregate','\x20on\x20dataset\x20','\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{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','high-risk-write','delete','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}}','params','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Preview:\x20data\x20','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','helpExtra','28083546VCYNVL','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','/api/{appCode}/','POST','operation','\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\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','filter'];a18_0x1927=function(){return _0x1a9af2;};return a18_0x1927();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a18_0x6b2538(0xf1),'operation':'filter','risk':'read','paramsRequired':![],'description':a18_0x6b2538(0xcc),'paramsHint':a18_0x6b2538(0xf0)+a18_0x6b2538(0x10a),'helpExtra':[a18_0x6b2538(0x102),a18_0x6b2538(0x107),'\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}}',a18_0x6b2538(0x106),a18_0x6b2538(0xfe),a18_0x6b2538(0xec),a18_0x6b2538(0xc5),'\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]}}',a18_0x6b2538(0xe6),'\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}}',a18_0x6b2538(0xdb),'',a18_0x6b2538(0xc8),'\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}}]}',a18_0x6b2538(0xeb),'','\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)',a18_0x6b2538(0xd8),a18_0x6b2538(0xce),a18_0x6b2538(0xf7),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a18_0x6b2538(0xc3),a18_0x6b2538(0x112),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a18_0x6b2538(0xd0)]('\x0a')},{'command':'getOne','operation':a18_0x6b2538(0xfb),'risk':a18_0x6b2538(0xfd),'paramsRequired':!![],'description':a18_0x6b2538(0xed),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a18_0x6b2538(0xbf),'operation':a18_0x6b2538(0xbf),'risk':a18_0x6b2538(0xfa),'paramsRequired':!![],'description':a18_0x6b2538(0xf4),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a18_0x6b2538(0xee),'operation':a18_0x6b2538(0xee),'risk':'write','paramsRequired':!![],'description':a18_0x6b2538(0x111),'paramsHint':a18_0x6b2538(0xf3)},{'command':a18_0x6b2538(0x105),'operation':a18_0x6b2538(0x105),'risk':a18_0x6b2538(0xfa),'paramsRequired':!![],'description':a18_0x6b2538(0xc9),'paramsHint':a18_0x6b2538(0xc4)},{'command':a18_0x6b2538(0xd7),'operation':'delete','risk':a18_0x6b2538(0xd6),'paramsRequired':!![],'description':a18_0x6b2538(0xda),'paramsHint':a18_0x6b2538(0xf5)},{'command':a18_0x6b2538(0xd2),'operation':a18_0x6b2538(0xd2),'risk':a18_0x6b2538(0xfd),'paramsRequired':![],'description':a18_0x6b2538(0xd5),'paramsHint':a18_0x6b2538(0xdf)+a18_0x6b2538(0xcb),'helpExtra':[a18_0x6b2538(0xe5),a18_0x6b2538(0xd9),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a18_0x6b2538(0xef),'\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{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a18_0x6b2538(0xd4),a18_0x6b2538(0xf8),a18_0x6b2538(0x100),'',a18_0x6b2538(0xcd),a18_0x6b2538(0x10f),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a18_0x6b2538(0xe1),a18_0x6b2538(0xe0),a18_0x6b2538(0xe4),a18_0x6b2538(0xe7),'',a18_0x6b2538(0xd1),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a18_0x6b2538(0x103),'',a18_0x6b2538(0xdd),a18_0x6b2538(0x10e)]['join']('\x0a')}];function a18_0x5c3d(_0x36c98a,_0x157342){_0x36c98a=_0x36c98a-0xbe;const _0x1927c5=a18_0x1927();let _0x5c3dd4=_0x1927c5[_0x36c98a];return _0x5c3dd4;}function makeDataCommand(_0x39c9f0){const _0x23adca=a18_0x6b2538,_0x42c4da=_0x23adca(0xfc)+_0x39c9f0[_0x23adca(0x104)],_0x47aa3e={'service':_0x23adca(0xf9),'command':_0x39c9f0[_0x23adca(0x104)],'description':_0x39c9f0[_0x23adca(0x10b)],'risk':_0x39c9f0['risk'],'helpExtra':_0x39c9f0[_0x23adca(0xe2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x39c9f0[_0x23adca(0xf6)]}],'validate':async _0xe8bf32=>{const _0x39e3fb=_0x23adca;_0x39c9f0['paramsRequired']&&requireAnyOf(_0xe8bf32,['params'],_0x42c4da),_0x39c9f0[_0x39e3fb(0xea)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xe8bf32[_0x39e3fb(0xc0)]('params')));},async 'execute'(_0x54c5c5){const _0x16798f=_0x23adca,_0x1fe328=_0x54c5c5[_0x16798f(0xc0)](_0x16798f(0xc6)),_0x172ba9=_0x39c9f0[_0x16798f(0xea)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x54c5c5['str'](_0x16798f(0xdc)))):parseJsonParams(_0x54c5c5[_0x16798f(0xc0)](_0x16798f(0xdc)))??{},_0x3960cb=Date['now'](),_0x312a0c=await executeData(_0x1fe328,_0x39c9f0['operation'],_0x172ba9),_0x3869c6=Date[_0x16798f(0xbe)]()-_0x3960cb;return{'ok':!![],'data':{'result':_0x312a0c,'elapsed':_0x3869c6},'message':_0x16798f(0xfc)+_0x39c9f0[_0x16798f(0x104)]+'\x20completed\x20in\x20'+_0x3869c6+'ms'};}};return _0x39c9f0[_0x23adca(0xc2)]!==_0x23adca(0xfd)&&(_0x47aa3e[_0x23adca(0xc1)]=async _0x5b5a25=>{const _0x2555d0=_0x23adca,_0x37a8c9=_0x5b5a25[_0x2555d0(0xc0)]('code'),_0xdee8f6=_0x39c9f0[_0x2555d0(0xea)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5b5a25[_0x2555d0(0xc0)]('params'))):parseJsonParams(_0x5b5a25[_0x2555d0(0xc0)](_0x2555d0(0xdc)))??{};return dryRun(_0x2555d0(0xe9),_0x2555d0(0xe8)+_0x37a8c9+'/'+_0x39c9f0[_0x2555d0(0xea)])[_0x2555d0(0x110)](_0xdee8f6)[_0x2555d0(0x10b)](_0x2555d0(0xde)+_0x39c9f0['command']+_0x2555d0(0xd3)+_0x37a8c9)[_0x2555d0(0xc7)]();}),_0x47aa3e;}export const dataDefinitions=specs[a18_0x6b2538(0xcf)](makeDataCommand);
1
+ function a18_0x84fe(_0x2c0f53,_0x18ecc7){_0x2c0f53=_0x2c0f53-0x179;const _0x268342=a18_0x2683();let _0x84fee0=_0x268342[_0x2c0f53];return _0x84fee0;}const a18_0x2db958=a18_0x84fe;(function(_0x293acc,_0x1a5aea){const _0x4784f6=a18_0x84fe,_0x240410=_0x293acc();while(!![]){try{const _0x3e6efd=-parseInt(_0x4784f6(0x1a7))/0x1*(-parseInt(_0x4784f6(0x1c2))/0x2)+-parseInt(_0x4784f6(0x199))/0x3*(-parseInt(_0x4784f6(0x198))/0x4)+-parseInt(_0x4784f6(0x1ad))/0x5+parseInt(_0x4784f6(0x18e))/0x6*(parseInt(_0x4784f6(0x1cb))/0x7)+parseInt(_0x4784f6(0x17a))/0x8+-parseInt(_0x4784f6(0x19b))/0x9+parseInt(_0x4784f6(0x191))/0xa*(-parseInt(_0x4784f6(0x185))/0xb);if(_0x3e6efd===_0x1a5aea)break;else _0x240410['push'](_0x240410['shift']());}catch(_0x57cf3e){_0x240410['push'](_0x240410['shift']());}}}(a18_0x2683,0xd278e));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a18_0x2db958(0x18b),'operation':a18_0x2db958(0x18b),'risk':a18_0x2db958(0x17b),'paramsRequired':![],'description':a18_0x2db958(0x1a3),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a18_0x2db958(0x17e),'helpExtra':[a18_0x2db958(0x1bc),a18_0x2db958(0x1af),a18_0x2db958(0x1cc),a18_0x2db958(0x193),a18_0x2db958(0x1a0),a18_0x2db958(0x1a1),a18_0x2db958(0x1c3),a18_0x2db958(0x1a5),a18_0x2db958(0x1ba),'\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}}',a18_0x2db958(0x19a),'',a18_0x2db958(0x182),a18_0x2db958(0x1b1),'\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}}]}','',a18_0x2db958(0x1b6),a18_0x2db958(0x19e),a18_0x2db958(0x1c1),a18_0x2db958(0x1aa),a18_0x2db958(0x1bf),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a18_0x2db958(0x1ac),a18_0x2db958(0x1bd),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a18_0x2db958(0x1b3)][a18_0x2db958(0x196)]('\x0a')},{'command':a18_0x2db958(0x1ce),'operation':a18_0x2db958(0x1ce),'risk':a18_0x2db958(0x17b),'paramsRequired':!![],'description':a18_0x2db958(0x1be),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a18_0x2db958(0x1ca),'operation':a18_0x2db958(0x1ca),'risk':'write','paramsRequired':!![],'description':a18_0x2db958(0x195),'paramsHint':a18_0x2db958(0x187)},{'command':a18_0x2db958(0x1a2),'operation':a18_0x2db958(0x1a2),'risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a18_0x2db958(0x17f),'operation':'update','risk':a18_0x2db958(0x1c5),'paramsRequired':!![],'description':a18_0x2db958(0x18a),'paramsHint':a18_0x2db958(0x19d)},{'command':a18_0x2db958(0x183),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a18_0x2db958(0x190),'paramsHint':a18_0x2db958(0x1c6)},{'command':'aggregate','operation':a18_0x2db958(0x1cd),'risk':a18_0x2db958(0x17b),'paramsRequired':![],'description':a18_0x2db958(0x1b4),'paramsHint':a18_0x2db958(0x1bb)+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a18_0x2db958(0x19f),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a18_0x2db958(0x181),a18_0x2db958(0x1c7),a18_0x2db958(0x186),a18_0x2db958(0x1c8),a18_0x2db958(0x179),'\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{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a18_0x2db958(0x1c4),a18_0x2db958(0x192),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a18_0x2db958(0x188),a18_0x2db958(0x1b9),a18_0x2db958(0x1b8),a18_0x2db958(0x1a4),'','\x20\x20EXAMPLES',a18_0x2db958(0x1ae),a18_0x2db958(0x180),'',a18_0x2db958(0x189),a18_0x2db958(0x1a6)][a18_0x2db958(0x196)]('\x0a')}];function makeDataCommand(_0x5a7695){const _0x9b55bf=a18_0x2db958,_0x3cd155=_0x9b55bf(0x1c9)+_0x5a7695['command'],_0x55f3f2={'service':_0x9b55bf(0x18f),'command':_0x5a7695['command'],'description':_0x5a7695[_0x9b55bf(0x1c0)],'risk':_0x5a7695[_0x9b55bf(0x18d)],'helpExtra':_0x5a7695[_0x9b55bf(0x1a8)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5a7695[_0x9b55bf(0x1ab)]}],'validate':async _0x541755=>{const _0x128050=_0x9b55bf;_0x5a7695[_0x128050(0x17c)]&&requireAnyOf(_0x541755,[_0x128050(0x1a9)],_0x3cd155),_0x5a7695['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x541755[_0x128050(0x1b7)](_0x128050(0x1a9))));},async 'execute'(_0x2f63dc){const _0x383560=_0x9b55bf,_0x4949f1=_0x2f63dc['str'](_0x383560(0x1b5)),_0x114832=_0x5a7695[_0x383560(0x194)]===_0x383560(0x1a2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f63dc[_0x383560(0x1b7)]('params'))):parseJsonParams(_0x2f63dc['str']('params'))??{},_0x16165c=Date[_0x383560(0x19c)](),_0x41851e=await executeData(_0x4949f1,_0x5a7695[_0x383560(0x194)],_0x114832),_0x56a8ed=Date[_0x383560(0x19c)]()-_0x16165c;return{'ok':!![],'data':{'result':_0x41851e,'elapsed':_0x56a8ed},'message':_0x383560(0x1c9)+_0x5a7695[_0x383560(0x17d)]+'\x20completed\x20in\x20'+_0x56a8ed+'ms'};}};return _0x5a7695['risk']!=='read'&&(_0x55f3f2[_0x9b55bf(0x184)]=async _0x3fb643=>{const _0x1a8676=_0x9b55bf,_0x3560f9=_0x3fb643['str'](_0x1a8676(0x1b5)),_0x3b0dc3=_0x5a7695['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3fb643[_0x1a8676(0x1b7)](_0x1a8676(0x1a9)))):parseJsonParams(_0x3fb643[_0x1a8676(0x1b7)](_0x1a8676(0x1a9)))??{};return dryRun(_0x1a8676(0x18c),_0x1a8676(0x1b0)+_0x3560f9+'/'+_0x5a7695[_0x1a8676(0x194)])['body'](_0x3b0dc3)['description']('Preview:\x20data\x20'+_0x5a7695[_0x1a8676(0x17d)]+_0x1a8676(0x197)+_0x3560f9)[_0x1a8676(0x1b2)]();}),_0x55f3f2;}function a18_0x2683(){const _0x20bc9b=['data','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','17084810BXVGIT','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$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}}','operation','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','join','\x20on\x20dataset\x20','1868592bSwuah','3EpQkjA','\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}}','634140AkvOWd','now','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','batchCreate','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\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','1662Zboalw','helpExtra','params','\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}]','paramsHint','\x20\x20PAGINATION','1435495QOvCax','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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}}','/api/{appCode}/','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','build','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','code','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','str','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\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$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','description','\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]','1906NkLzQE','\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\x20PARAMS\x20STRUCTURE','write','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','data\x20','create','2999528uqNCvM','\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}}','aggregate','getOne','\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{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','6972520fZiiag','read','paramsRequired','command','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','update','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20LOGICAL\x20COMBINATORS','delete','dryRun','22ssJxTW','\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{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Update\x20an\x20existing\x20record','filter','POST','risk','24JKhyok'];a18_0x2683=function(){return _0x20bc9b;};return a18_0x2683();}export const dataDefinitions=specs['map'](makeDataCommand);
@@ -1 +1 @@
1
- const a19_0x4a5bc3=a19_0x1485;(function(_0x5f323e,_0x537a81){const _0x5da49c=a19_0x1485,_0x239fb2=_0x5f323e();while(!![]){try{const _0x4a70ab=-parseInt(_0x5da49c(0x12b))/0x1+parseInt(_0x5da49c(0x149))/0x2*(parseInt(_0x5da49c(0x135))/0x3)+-parseInt(_0x5da49c(0x128))/0x4*(parseInt(_0x5da49c(0x146))/0x5)+parseInt(_0x5da49c(0x118))/0x6+parseInt(_0x5da49c(0x13a))/0x7*(parseInt(_0x5da49c(0x130))/0x8)+-parseInt(_0x5da49c(0x10d))/0x9+parseInt(_0x5da49c(0x139))/0xa*(parseInt(_0x5da49c(0x103))/0xb);if(_0x4a70ab===_0x537a81)break;else _0x239fb2['push'](_0x239fb2['shift']());}catch(_0x2d40f8){_0x239fb2['push'](_0x239fb2['shift']());}}}(a19_0x5686,0x22700));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a19_0x1485(_0x5e5b61,_0x2d34d9){_0x5e5b61=_0x5e5b61-0x102;const _0x5686dc=a19_0x5686();let _0x148531=_0x5686dc[_0x5e5b61];return _0x148531;}function a19_0x5686(){const _0x21d808=['afterScriptId','deleted','length','70iFIEwq','dataset','dataType','2iBTRxa','options','str','toTableName','indexes','doVersion','requestBody','1409188oTwKpf','read','relatedPageInfoList','filter','toDatasetCode','detail','title','modelCode','properties','requestFields','1923372vSrpZc','host','code','allFieldNames','modifierIdField','dblinkInfoDTO','columnCodeListWithDeleted','relations','creatorIdField','extend','responseBody','1389804IFetwW','map','allFields','sourceType','formatRules','dbType','object','dbName','trim','toFieldLabel','datasetKey','tableName','path','pkField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','logicField','75108SncIeJ','required','entries','260372TQQNvH','validateRules','parse','createTimeField','fields','328MjkohL','name','displayName','isArray','type','172203ROhsRU','responseFields','string','appCode','40rvRWZh','13069SsgUoo','source','beforeScriptId','description','split','dbId','push','toField','dbtableConfig'];a19_0x5686=function(){return _0x21d808;};return a19_0x5686();}function normalizeField(_0x311013){const _0x5c7f25=a19_0x1485;if(_0x311013[_0x5c7f25(0x144)])return null;const _0x805b11=Boolean(_0x311013[_0x5c7f25(0x132)]!==undefined||_0x311013['doType']!==undefined);let _0x457170={};if(!_0x805b11&&typeof _0x311013[_0x5c7f25(0x116)]==='string')try{_0x457170=JSON[_0x5c7f25(0x12d)](_0x311013[_0x5c7f25(0x116)]);}catch{}const _0x456e7d=_0x805b11?_0x311013[_0x5c7f25(0x131)]:_0x311013[_0x5c7f25(0x10f)],_0x483ca4=_0x805b11?_0x311013[_0x5c7f25(0x132)]:_0x311013['name'],_0x1497c6=_0x805b11?_0x311013['doType']:_0x311013[_0x5c7f25(0x134)]||_0x311013[_0x5c7f25(0x148)],_0x519d5a=_0x805b11?_0x311013['pkField']===!![]:_0x457170[_0x5c7f25(0x125)]===!![],_0x4e594d=_0x805b11?_0x311013['required']===!![]:_0x457170[_0x5c7f25(0x129)]===!![],_0x47f54e=_0x805b11?_0x311013[_0x5c7f25(0x14a)]??null:_0x457170[_0x5c7f25(0x14a)]??null,_0x3145cc={'name':_0x456e7d,'displayName':_0x483ca4||_0x456e7d,'type':_0x1497c6,'dbType':_0x311013[_0x5c7f25(0x11d)],'pk':_0x519d5a,'required':_0x4e594d,'description':_0x311013[_0x5c7f25(0x13d)]||undefined};return Array[_0x5c7f25(0x133)](_0x47f54e)&&_0x47f54e[_0x5c7f25(0x145)]>0x0&&(_0x3145cc[_0x5c7f25(0x14a)]=_0x47f54e),_0x3145cc;}function parseJsonMaybe(_0x4797c3){const _0x31d462=a19_0x1485;if(typeof _0x4797c3!==_0x31d462(0x137))return _0x4797c3;try{return JSON[_0x31d462(0x12d)](_0x4797c3);}catch{return _0x4797c3;}}function normalizeOperationEntry(_0x5b7484,_0x4b3a03){const _0x47ae5b=a19_0x1485;if(!_0x4b3a03||typeof _0x4b3a03!==_0x47ae5b(0x11e))return null;if(!_0x4b3a03['method']||!_0x4b3a03[_0x47ae5b(0x124)])return null;const _0x27e7e2={'name':_0x5b7484,'method':_0x4b3a03['method'],'path':_0x4b3a03['path']};if(_0x4b3a03[_0x47ae5b(0x10e)])_0x27e7e2[_0x47ae5b(0x10e)]=_0x4b3a03[_0x47ae5b(0x10e)];if(_0x4b3a03[_0x47ae5b(0x102)]!=null)_0x27e7e2[_0x47ae5b(0x102)]=parseJsonMaybe(_0x4b3a03[_0x47ae5b(0x102)]);if(_0x4b3a03[_0x47ae5b(0x117)]!=null)_0x27e7e2[_0x47ae5b(0x117)]=parseJsonMaybe(_0x4b3a03[_0x47ae5b(0x117)]);if(_0x4b3a03['beforeScriptId']!=null)_0x27e7e2[_0x47ae5b(0x13c)]=_0x4b3a03[_0x47ae5b(0x13c)];if(_0x4b3a03[_0x47ae5b(0x143)]!=null)_0x27e7e2['afterScriptId']=_0x4b3a03['afterScriptId'];if(Array['isArray'](_0x4b3a03[_0x47ae5b(0x10c)]))_0x27e7e2[_0x47ae5b(0x10c)]=_0x4b3a03[_0x47ae5b(0x10c)];if(Array['isArray'](_0x4b3a03[_0x47ae5b(0x136)]))_0x27e7e2[_0x47ae5b(0x136)]=_0x4b3a03[_0x47ae5b(0x136)];return _0x27e7e2;}function summarizeDbtable(_0x7b203c){const _0x1615ef=a19_0x1485,_0x3a176a={},_0xc58f4a=[_0x1615ef(0x13f),_0x1615ef(0x11f),'tableName',_0x1615ef(0x122),'pkField','allFields',_0x1615ef(0x127),_0x1615ef(0x12e),'updateTimeField',_0x1615ef(0x115),'creatorNameField',_0x1615ef(0x111),'modifierNameField','labelField',_0x1615ef(0x112)];for(const _0x45a75c of _0xc58f4a){if(_0x7b203c[_0x45a75c]!==undefined)_0x3a176a[_0x45a75c]=_0x7b203c[_0x45a75c];}return typeof _0x3a176a['allFields']==='string'&&_0x3a176a[_0x1615ef(0x11a)][_0x1615ef(0x145)]>0x0&&(_0x3a176a[_0x1615ef(0x110)]=_0x3a176a[_0x1615ef(0x11a)][_0x1615ef(0x13e)](',')['map'](_0x49c6d6=>_0x49c6d6['trim']())[_0x1615ef(0x106)](Boolean)),_0x3a176a;}function normalizeRelatedPages(_0x27f9af){const _0x5a45e9=a19_0x1485;if(!Array['isArray'](_0x27f9af))return[];return _0x27f9af[_0x5a45e9(0x106)](_0x5974b2=>_0x5974b2&&typeof _0x5974b2==='object')[_0x5a45e9(0x119)](_0x13e809=>({'id':_0x13e809['id'],'type':_0x13e809['type'],'code':_0x13e809['code'],'title':_0x13e809[_0x5a45e9(0x109)],'deleted':_0x13e809[_0x5a45e9(0x144)]===!![]}));}function normalizeFallbackFieldName(_0x35888,_0x552454){const _0x231378=a19_0x1485,_0x973a6f=_0x35888[_0x231378(0x120)]();if(!_0x973a6f)return null;return{'name':_0x973a6f,'displayName':_0x973a6f,'type':undefined,'dbType':undefined,'pk':_0x973a6f===_0x552454,'required':![],'description':undefined};}async function loadListFieldFallback(_0x281e51,_0x5da128){const _0x53a001=a19_0x1485;if(!_0x281e51||!_0x5da128)return[];try{const _0x569f7a=await listDatasets(_0x281e51,{'code':_0x5da128}),_0x3dda9e=_0x569f7a['find'](_0x4190ca=>_0x4190ca['code']===_0x5da128)??_0x569f7a[0x0],_0x30cfe1=_0x3dda9e?.[_0x53a001(0x142)]??{},_0x149d24=typeof _0x30cfe1[_0x53a001(0x11a)]===_0x53a001(0x137)?_0x30cfe1[_0x53a001(0x11a)]['split'](','):[];return _0x149d24[_0x53a001(0x119)](_0x4d5e3d=>normalizeFallbackFieldName(_0x4d5e3d,_0x30cfe1[_0x53a001(0x125)]))[_0x53a001(0x106)](_0x209b7b=>_0x209b7b!==null);}catch{return[];}}export const datasetDetail={'service':a19_0x4a5bc3(0x147),'command':a19_0x4a5bc3(0x108),'description':a19_0x4a5bc3(0x126),'risk':a19_0x4a5bc3(0x104),'flags':[CODE_FLAG],async 'execute'(_0x31531b){const _0x44e9e9=a19_0x4a5bc3,_0x476070=await getDatasetDetail(_0x31531b[_0x44e9e9(0x14b)](_0x44e9e9(0x10f))),_0x2e4ff5=Array[_0x44e9e9(0x133)](_0x476070[_0x44e9e9(0x12f)])?_0x476070[_0x44e9e9(0x12f)]:Array['isArray'](_0x476070['properties'])?_0x476070[_0x44e9e9(0x10b)]:[];let _0xbae68b=_0x2e4ff5[_0x44e9e9(0x119)](_0x6b4e55=>normalizeField(_0x6b4e55))[_0x44e9e9(0x106)](_0x5ea3c6=>_0x5ea3c6!==null);_0xbae68b[_0x44e9e9(0x145)]===0x0&&(_0xbae68b=await loadListFieldFallback(_0x31531b[_0x44e9e9(0x138)],_0x31531b[_0x44e9e9(0x14b)]('code')));const _0x2de0c1=_0x476070['operations']??{},_0xcf2d8d=[];for(const [_0x57c7ea,_0x51c6c4]of Object[_0x44e9e9(0x12a)](_0x2de0c1)){const _0x20568a=normalizeOperationEntry(_0x57c7ea,_0x51c6c4);if(_0x20568a)_0xcf2d8d[_0x44e9e9(0x140)](_0x20568a);}const _0x3040cb=_0x476070[_0x44e9e9(0x142)]??{},_0x4a40bd=_0x476070[_0x44e9e9(0x147)]??{},_0x372fb6=_0x3040cb[_0x44e9e9(0x13f)]!=null?{'id':_0x3040cb[_0x44e9e9(0x13f)],'name':_0x3040cb[_0x44e9e9(0x11f)]??null}:undefined;let _0x256e90;return typeof _0x476070[_0x44e9e9(0x116)]===_0x44e9e9(0x137)&&(_0x256e90=parseJsonMaybe(_0x476070[_0x44e9e9(0x116)])),{'ok':!![],'data':{'id':_0x476070['modelId']??_0x476070['id'],'name':_0x476070['name'],'code':_0x476070[_0x44e9e9(0x10a)]||_0x476070[_0x44e9e9(0x10f)],'doVersion':_0x476070[_0x44e9e9(0x14e)],'description':_0x476070[_0x44e9e9(0x13d)]||_0x4a40bd['tableComment']||undefined,'source':_0x476070[_0x44e9e9(0x13b)]||_0x4a40bd[_0x44e9e9(0x11b)],'table':_0x3040cb['tableName']||_0x4a40bd[_0x44e9e9(0x123)],'datasetKey':_0x3040cb[_0x44e9e9(0x122)],'pk':_0x3040cb[_0x44e9e9(0x125)],'db':_0x372fb6,'dbtable':summarizeDbtable(_0x3040cb),'fields':_0xbae68b,'operations':_0xcf2d8d,'indexes':Array[_0x44e9e9(0x133)](_0x4a40bd[_0x44e9e9(0x14d)])?_0x4a40bd[_0x44e9e9(0x14d)]:[],'relations':Array[_0x44e9e9(0x133)](_0x476070[_0x44e9e9(0x114)])?_0x476070[_0x44e9e9(0x114)][_0x44e9e9(0x119)](_0x49ce39=>({'fromField':_0x49ce39['fromField'],'toDataset':_0x49ce39['toDatasetName'],'toCode':_0x49ce39[_0x44e9e9(0x107)],'toTable':_0x49ce39[_0x44e9e9(0x14c)],'toField':_0x49ce39[_0x44e9e9(0x141)],'labelField':_0x49ce39[_0x44e9e9(0x121)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x476070[_0x44e9e9(0x105)]),...Array[_0x44e9e9(0x133)](_0x476070[_0x44e9e9(0x113)])?{'columnCodeListWithDeleted':_0x476070['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x44e9e9(0x133)](_0x476070[_0x44e9e9(0x11c)])?_0x476070[_0x44e9e9(0x11c)]:[],'validateRules':Array[_0x44e9e9(0x133)](_0x476070['validateRules'])?_0x476070[_0x44e9e9(0x12c)]:[],..._0x256e90!==undefined?{'extend':_0x256e90}:{},'stats':{'fieldCount':_0xbae68b[_0x44e9e9(0x145)],'operationCount':_0xcf2d8d['length']}}};}};
1
+ const a19_0xa6ed2e=a19_0x1b27;(function(_0x37a23c,_0x20c9b4){const _0x252837=a19_0x1b27,_0x3a0abc=_0x37a23c();while(!![]){try{const _0x38deaf=-parseInt(_0x252837(0x160))/0x1+parseInt(_0x252837(0x16b))/0x2+-parseInt(_0x252837(0x148))/0x3+-parseInt(_0x252837(0x16a))/0x4+-parseInt(_0x252837(0x135))/0x5*(-parseInt(_0x252837(0x13c))/0x6)+parseInt(_0x252837(0x163))/0x7*(-parseInt(_0x252837(0x150))/0x8)+parseInt(_0x252837(0x170))/0x9;if(_0x38deaf===_0x20c9b4)break;else _0x3a0abc['push'](_0x3a0abc['shift']());}catch(_0x21a600){_0x3a0abc['push'](_0x3a0abc['shift']());}}}(a19_0x502e,0x7cd31));function a19_0x1b27(_0x366197,_0x2b0696){_0x366197=_0x366197-0x12c;const _0x502e96=a19_0x502e();let _0x1b27c2=_0x502e96[_0x366197];return _0x1b27c2;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3a4579){const _0x49330a=a19_0x1b27;if(_0x3a4579['deleted'])return null;const _0x5ee3f9=Boolean(_0x3a4579[_0x49330a(0x15a)]!==undefined||_0x3a4579[_0x49330a(0x156)]!==undefined);let _0x2b8bbe={};if(!_0x5ee3f9&&typeof _0x3a4579['extend']==='string')try{_0x2b8bbe=JSON['parse'](_0x3a4579['extend']);}catch{}const _0x1dae95=_0x5ee3f9?_0x3a4579[_0x49330a(0x136)]:_0x3a4579[_0x49330a(0x15e)],_0xb4e1b=_0x5ee3f9?_0x3a4579['displayName']:_0x3a4579[_0x49330a(0x136)],_0x1b9b24=_0x5ee3f9?_0x3a4579[_0x49330a(0x156)]:_0x3a4579[_0x49330a(0x158)]||_0x3a4579[_0x49330a(0x159)],_0x33b8b4=_0x5ee3f9?_0x3a4579[_0x49330a(0x12e)]===!![]:_0x2b8bbe[_0x49330a(0x12e)]===!![],_0x4a2819=_0x5ee3f9?_0x3a4579[_0x49330a(0x13f)]===!![]:_0x2b8bbe[_0x49330a(0x13f)]===!![],_0x33a18b=_0x5ee3f9?_0x3a4579[_0x49330a(0x139)]??null:_0x2b8bbe['options']??null,_0x17fcf0={'name':_0x1dae95,'displayName':_0xb4e1b||_0x1dae95,'type':_0x1b9b24,'dbType':_0x3a4579['dbType'],'pk':_0x33b8b4,'required':_0x4a2819,'description':_0x3a4579[_0x49330a(0x15f)]||undefined};return Array['isArray'](_0x33a18b)&&_0x33a18b['length']>0x0&&(_0x17fcf0[_0x49330a(0x139)]=_0x33a18b),_0x17fcf0;}function parseJsonMaybe(_0x1eb517){const _0xb6bde4=a19_0x1b27;if(typeof _0x1eb517!==_0xb6bde4(0x133))return _0x1eb517;try{return JSON[_0xb6bde4(0x145)](_0x1eb517);}catch{return _0x1eb517;}}function normalizeOperationEntry(_0x340b21,_0x582b74){const _0x2896ed=a19_0x1b27;if(!_0x582b74||typeof _0x582b74!==_0x2896ed(0x14e))return null;if(!_0x582b74[_0x2896ed(0x12d)]||!_0x582b74[_0x2896ed(0x146)])return null;const _0x728fe3={'name':_0x340b21,'method':_0x582b74[_0x2896ed(0x12d)],'path':_0x582b74[_0x2896ed(0x146)]};if(_0x582b74[_0x2896ed(0x140)])_0x728fe3[_0x2896ed(0x140)]=_0x582b74[_0x2896ed(0x140)];if(_0x582b74[_0x2896ed(0x14f)]!=null)_0x728fe3[_0x2896ed(0x14f)]=parseJsonMaybe(_0x582b74[_0x2896ed(0x14f)]);if(_0x582b74['responseBody']!=null)_0x728fe3[_0x2896ed(0x14b)]=parseJsonMaybe(_0x582b74[_0x2896ed(0x14b)]);if(_0x582b74[_0x2896ed(0x165)]!=null)_0x728fe3[_0x2896ed(0x165)]=_0x582b74[_0x2896ed(0x165)];if(_0x582b74[_0x2896ed(0x15d)]!=null)_0x728fe3[_0x2896ed(0x15d)]=_0x582b74[_0x2896ed(0x15d)];if(Array[_0x2896ed(0x137)](_0x582b74[_0x2896ed(0x16c)]))_0x728fe3[_0x2896ed(0x16c)]=_0x582b74[_0x2896ed(0x16c)];if(Array['isArray'](_0x582b74[_0x2896ed(0x166)]))_0x728fe3[_0x2896ed(0x166)]=_0x582b74[_0x2896ed(0x166)];return _0x728fe3;}function summarizeDbtable(_0x458d2f){const _0x59037b=a19_0x1b27,_0x1b2b94={},_0x924410=[_0x59037b(0x174),_0x59037b(0x173),_0x59037b(0x13b),'datasetKey','pkField','allFields','logicField',_0x59037b(0x16d),_0x59037b(0x141),_0x59037b(0x14a),_0x59037b(0x134),_0x59037b(0x161),'modifierNameField','labelField',_0x59037b(0x14c)];for(const _0x498930 of _0x924410){if(_0x458d2f[_0x498930]!==undefined)_0x1b2b94[_0x498930]=_0x458d2f[_0x498930];}return typeof _0x1b2b94[_0x59037b(0x171)]===_0x59037b(0x133)&&_0x1b2b94[_0x59037b(0x171)][_0x59037b(0x162)]>0x0&&(_0x1b2b94['allFieldNames']=_0x1b2b94[_0x59037b(0x171)]['split'](',')['map'](_0x4a7135=>_0x4a7135[_0x59037b(0x14d)]())['filter'](Boolean)),_0x1b2b94;}function normalizeRelatedPages(_0x33f24c){const _0x2ff8c7=a19_0x1b27;if(!Array[_0x2ff8c7(0x137)](_0x33f24c))return[];return _0x33f24c[_0x2ff8c7(0x142)](_0x193206=>_0x193206&&typeof _0x193206===_0x2ff8c7(0x14e))[_0x2ff8c7(0x16e)](_0x51e912=>({'id':_0x51e912['id'],'type':_0x51e912[_0x2ff8c7(0x158)],'code':_0x51e912['code'],'title':_0x51e912['title'],'deleted':_0x51e912['deleted']===!![]}));}function normalizeFallbackFieldName(_0x1e3dd7,_0x4b9758){const _0x16bc08=a19_0x1b27,_0x10ac50=_0x1e3dd7[_0x16bc08(0x14d)]();if(!_0x10ac50)return null;return{'name':_0x10ac50,'displayName':_0x10ac50,'type':undefined,'dbType':undefined,'pk':_0x10ac50===_0x4b9758,'required':![],'description':undefined};}async function loadListFieldFallback(_0x17104e,_0x4fc499){const _0x222a7d=a19_0x1b27;if(!_0x17104e||!_0x4fc499)return[];try{const _0x360384=await listDatasets(_0x17104e,{'code':_0x4fc499}),_0x318579=_0x360384[_0x222a7d(0x152)](_0x10d31b=>_0x10d31b[_0x222a7d(0x15e)]===_0x4fc499)??_0x360384[0x0],_0x5d846c=_0x318579?.['dbtableConfig']??{},_0x41dbc5=typeof _0x5d846c['allFields']===_0x222a7d(0x133)?_0x5d846c[_0x222a7d(0x171)][_0x222a7d(0x15c)](','):[];return _0x41dbc5[_0x222a7d(0x16e)](_0x4a0fda=>normalizeFallbackFieldName(_0x4a0fda,_0x5d846c[_0x222a7d(0x12e)]))[_0x222a7d(0x142)](_0x3c3055=>_0x3c3055!==null);}catch{return[];}}function a19_0x502e(){const _0x491ae1=['read','split','afterScriptId','code','description','630456hPZqLJ','modifierIdField','length','231091xCSRxu','str','beforeScriptId','responseFields','relations','formatRules','toDatasetCode','629308uJdSAi','1543710UOgAJB','requestFields','createTimeField','map','sourceType','4490874OrQIhH','allFields','validateRules','dbName','dbId','modelId','method','pkField','datasetKey','doVersion','columnCodeListWithDeleted','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','string','creatorNameField','400515BLTTca','name','isArray','toField','options','operations','tableName','66TIcjqA','indexes','fromField','required','host','updateTimeField','filter','entries','properties','parse','path','tableComment','2459691QtmVLH','dbtableConfig','creatorIdField','responseBody','dblinkInfoDTO','trim','object','requestBody','8nloWbV','extend','find','fields','dataset','toFieldLabel','doType','appCode','type','dataType','displayName'];a19_0x502e=function(){return _0x491ae1;};return a19_0x502e();}export const datasetDetail={'service':a19_0xa6ed2e(0x154),'command':'detail','description':a19_0xa6ed2e(0x132),'risk':a19_0xa6ed2e(0x15b),'flags':[CODE_FLAG],async 'execute'(_0x1b7196){const _0x2fb543=a19_0xa6ed2e,_0x1bf3c9=await getDatasetDetail(_0x1b7196['str'](_0x2fb543(0x15e))),_0x255149=Array[_0x2fb543(0x137)](_0x1bf3c9[_0x2fb543(0x153)])?_0x1bf3c9[_0x2fb543(0x153)]:Array[_0x2fb543(0x137)](_0x1bf3c9[_0x2fb543(0x144)])?_0x1bf3c9[_0x2fb543(0x144)]:[];let _0x5cf4c8=_0x255149['map'](_0x2d56dc=>normalizeField(_0x2d56dc))[_0x2fb543(0x142)](_0x4bd79f=>_0x4bd79f!==null);_0x5cf4c8[_0x2fb543(0x162)]===0x0&&(_0x5cf4c8=await loadListFieldFallback(_0x1b7196[_0x2fb543(0x157)],_0x1b7196[_0x2fb543(0x164)](_0x2fb543(0x15e))));const _0x5e9955=_0x1bf3c9[_0x2fb543(0x13a)]??{},_0x2e6b06=[];for(const [_0xdb8dd1,_0x3022b7]of Object[_0x2fb543(0x143)](_0x5e9955)){const _0x5f2945=normalizeOperationEntry(_0xdb8dd1,_0x3022b7);if(_0x5f2945)_0x2e6b06['push'](_0x5f2945);}const _0x4d146a=_0x1bf3c9[_0x2fb543(0x149)]??{},_0x232c22=_0x1bf3c9[_0x2fb543(0x154)]??{},_0x2cc63f=_0x4d146a[_0x2fb543(0x174)]!=null?{'id':_0x4d146a[_0x2fb543(0x174)],'name':_0x4d146a[_0x2fb543(0x173)]??null}:undefined;let _0x4a0368;return typeof _0x1bf3c9[_0x2fb543(0x151)]===_0x2fb543(0x133)&&(_0x4a0368=parseJsonMaybe(_0x1bf3c9[_0x2fb543(0x151)])),{'ok':!![],'data':{'id':_0x1bf3c9[_0x2fb543(0x12c)]??_0x1bf3c9['id'],'name':_0x1bf3c9[_0x2fb543(0x136)],'code':_0x1bf3c9['modelCode']||_0x1bf3c9[_0x2fb543(0x15e)],'doVersion':_0x1bf3c9[_0x2fb543(0x130)],'description':_0x1bf3c9['description']||_0x232c22[_0x2fb543(0x147)]||undefined,'source':_0x1bf3c9['source']||_0x232c22[_0x2fb543(0x16f)],'table':_0x4d146a[_0x2fb543(0x13b)]||_0x232c22[_0x2fb543(0x13b)],'datasetKey':_0x4d146a[_0x2fb543(0x12f)],'pk':_0x4d146a[_0x2fb543(0x12e)],'db':_0x2cc63f,'dbtable':summarizeDbtable(_0x4d146a),'fields':_0x5cf4c8,'operations':_0x2e6b06,'indexes':Array[_0x2fb543(0x137)](_0x232c22[_0x2fb543(0x13d)])?_0x232c22[_0x2fb543(0x13d)]:[],'relations':Array[_0x2fb543(0x137)](_0x1bf3c9[_0x2fb543(0x167)])?_0x1bf3c9['relations']['map'](_0x4e9ee1=>({'fromField':_0x4e9ee1[_0x2fb543(0x13e)],'toDataset':_0x4e9ee1['toDatasetName'],'toCode':_0x4e9ee1[_0x2fb543(0x169)],'toTable':_0x4e9ee1['toTableName'],'toField':_0x4e9ee1[_0x2fb543(0x138)],'labelField':_0x4e9ee1[_0x2fb543(0x155)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x1bf3c9['relatedPageInfoList']),...Array[_0x2fb543(0x137)](_0x1bf3c9['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x1bf3c9[_0x2fb543(0x131)]}:{},'formatRules':Array[_0x2fb543(0x137)](_0x1bf3c9[_0x2fb543(0x168)])?_0x1bf3c9['formatRules']:[],'validateRules':Array[_0x2fb543(0x137)](_0x1bf3c9[_0x2fb543(0x172)])?_0x1bf3c9[_0x2fb543(0x172)]:[],..._0x4a0368!==undefined?{'extend':_0x4a0368}:{},'stats':{'fieldCount':_0x5cf4c8[_0x2fb543(0x162)],'operationCount':_0x2e6b06['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x16b7d9,_0x42166a){const _0x2155a7=a20_0x1aef,_0x581cf6=_0x16b7d9();while(!![]){try{const _0x526e9a=parseInt(_0x2155a7(0x1c9))/0x1*(-parseInt(_0x2155a7(0x1cf))/0x2)+-parseInt(_0x2155a7(0x1c6))/0x3*(parseInt(_0x2155a7(0x1c8))/0x4)+parseInt(_0x2155a7(0x1cd))/0x5+-parseInt(_0x2155a7(0x1ce))/0x6+-parseInt(_0x2155a7(0x1cb))/0x7*(-parseInt(_0x2155a7(0x1ca))/0x8)+parseInt(_0x2155a7(0x1cc))/0x9+parseInt(_0x2155a7(0x1c7))/0xa;if(_0x526e9a===_0x42166a)break;else _0x581cf6['push'](_0x581cf6['shift']());}catch(_0x187443){_0x581cf6['push'](_0x581cf6['shift']());}}}(a20_0x1fc6,0x21855));function a20_0x1fc6(){const _0x332f42=['7567gdrSDR','1297269lGYqLx','374950jfmybs','1539276QFpSUY','146mxLYlD','3wSqGsQ','2987650Hnzurf','301112oKgryF','1216sEGZVQ','296JZgBDD'];a20_0x1fc6=function(){return _0x332f42;};return a20_0x1fc6();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a20_0x1aef(_0x1d183e,_0x2d8d06){_0x1d183e=_0x1d183e-0x1c6;const _0x1fc6ce=a20_0x1fc6();let _0x1aef86=_0x1fc6ce[_0x1d183e];return _0x1aef86;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x2e711e,_0x40507c){const _0x52cad2=a20_0x22dd,_0x144b18=_0x2e711e();while(!![]){try{const _0x4dc016=-parseInt(_0x52cad2(0xd0))/0x1+-parseInt(_0x52cad2(0xca))/0x2*(parseInt(_0x52cad2(0xcb))/0x3)+parseInt(_0x52cad2(0xcc))/0x4+-parseInt(_0x52cad2(0xd4))/0x5*(-parseInt(_0x52cad2(0xcf))/0x6)+-parseInt(_0x52cad2(0xd2))/0x7+-parseInt(_0x52cad2(0xd1))/0x8*(-parseInt(_0x52cad2(0xd3))/0x9)+-parseInt(_0x52cad2(0xcd))/0xa*(-parseInt(_0x52cad2(0xce))/0xb);if(_0x4dc016===_0x40507c)break;else _0x144b18['push'](_0x144b18['shift']());}catch(_0x3b936e){_0x144b18['push'](_0x144b18['shift']());}}}(a20_0xc530,0x9af0d));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a20_0xc530(){const _0x5abf7c=['14853GUvzZR','330044TdWMxI','10hWvnYq','8682509eRYXsR','18CRWSmn','1054871XspUZM','8SNRNbA','3602347IZzvFA','10089927aHcpGG','607795DMUNmx','62fBwQLe'];a20_0xc530=function(){return _0x5abf7c;};return a20_0xc530();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a20_0x22dd(_0x1afefb,_0x4d2211){_0x1afefb=_0x1afefb-0xca;const _0xc5309c=a20_0xc530();let _0x22dd1f=_0xc5309c[_0x1afefb];return _0x22dd1f;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a21_0x3b0a0a=a21_0x3e7d;function a21_0x3e7d(_0x30d7d6,_0x4d4516){_0x30d7d6=_0x30d7d6-0x166;const _0x1bdd44=a21_0x1bdd();let _0x3e7dbf=_0x1bdd44[_0x30d7d6];return _0x3e7dbf;}(function(_0x4defb3,_0x17c681){const _0xa3a625=a21_0x3e7d,_0x2e72ae=_0x4defb3();while(!![]){try{const _0x108865=parseInt(_0xa3a625(0x179))/0x1*(parseInt(_0xa3a625(0x180))/0x2)+-parseInt(_0xa3a625(0x168))/0x3+-parseInt(_0xa3a625(0x16c))/0x4+parseInt(_0xa3a625(0x17d))/0x5*(parseInt(_0xa3a625(0x171))/0x6)+parseInt(_0xa3a625(0x16a))/0x7*(parseInt(_0xa3a625(0x181))/0x8)+parseInt(_0xa3a625(0x166))/0x9*(parseInt(_0xa3a625(0x172))/0xa)+-parseInt(_0xa3a625(0x16d))/0xb;if(_0x108865===_0x17c681)break;else _0x2e72ae['push'](_0x2e72ae['shift']());}catch(_0x5b42cc){_0x2e72ae['push'](_0x2e72ae['shift']());}}}(a21_0x1bdd,0x9e4c9));function a21_0x1bdd(){const _0x2a8b36=['tableName','description','4426675fbFQKE','dataset','code','211522Evmxqq','1192cDSnXa','string','873QHGTuw','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','2188272vhsyvr','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','55741dobgMC','name','5034636MOzIos','8321896WxlatI','dbtableConfig','split','pkField','6JcWhqv','16270pRTnBI','str','allFields','list','map','length','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','11rdIBhM','trim'];a21_0x1bdd=function(){return _0x2a8b36;};return a21_0x1bdd();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a21_0x3b0a0a(0x17e),'command':a21_0x3b0a0a(0x175),'description':a21_0x3b0a0a(0x169),'risk':'read','flags':[{'name':'name','type':a21_0x3b0a0a(0x182),'description':a21_0x3b0a0a(0x167)},{...CODE_FLAG,'required':![],'description':a21_0x3b0a0a(0x178)}],async 'execute'(_0x11983e){const _0x25cd5d=a21_0x3b0a0a,_0x4f0573=_0x11983e[_0x25cd5d(0x173)](_0x25cd5d(0x16b)),_0x387de3=_0x11983e[_0x25cd5d(0x173)](_0x25cd5d(0x17f)),_0x4a9386=await listDatasets(_0x11983e['appCode'],{..._0x4f0573&&{'name':_0x4f0573},..._0x387de3&&{'code':_0x387de3}});return{'ok':!![],'data':{'total':_0x4a9386[_0x25cd5d(0x177)],'datasets':_0x4a9386[_0x25cd5d(0x176)](_0x3706cc=>{const _0x417554=_0x25cd5d,_0x213366=_0x3706cc[_0x417554(0x16e)]??{};return{'id':_0x3706cc['id'],'code':_0x3706cc[_0x417554(0x17f)],'name':_0x3706cc[_0x417554(0x16b)],'source':_0x3706cc['source'],'description':_0x3706cc[_0x417554(0x17c)],'table':_0x213366[_0x417554(0x17b)],'datasetKey':_0x213366['datasetKey'],'pk':_0x213366[_0x417554(0x170)],'fields':_0x213366[_0x417554(0x174)]?_0x213366['allFields'][_0x417554(0x16f)](',')[_0x417554(0x176)](_0x4fbf58=>_0x4fbf58[_0x417554(0x17a)]()):[]};})}};}};
1
+ const a21_0x170f95=a21_0x3f7b;(function(_0x33cdef,_0x327b8b){const _0x56e1e4=a21_0x3f7b,_0x1af2a2=_0x33cdef();while(!![]){try{const _0x47fe75=-parseInt(_0x56e1e4(0x1a0))/0x1+-parseInt(_0x56e1e4(0x1b1))/0x2*(-parseInt(_0x56e1e4(0x1af))/0x3)+-parseInt(_0x56e1e4(0x197))/0x4*(parseInt(_0x56e1e4(0x1b4))/0x5)+-parseInt(_0x56e1e4(0x19a))/0x6+parseInt(_0x56e1e4(0x1a4))/0x7+-parseInt(_0x56e1e4(0x1ad))/0x8+parseInt(_0x56e1e4(0x1aa))/0x9*(parseInt(_0x56e1e4(0x1a2))/0xa);if(_0x47fe75===_0x327b8b)break;else _0x1af2a2['push'](_0x1af2a2['shift']());}catch(_0x1914f4){_0x1af2a2['push'](_0x1af2a2['shift']());}}}(a21_0x4e47,0x5fca9));function a21_0x4e47(){const _0x4035ef=['string','read','5942792MeqJWK','split','3FAGlBd','tableName','1250614udJlYx','appCode','length','1375sloSET','2420HuKRcl','source','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','2609748VwSgeZ','pkField','code','map','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','name','385625HCowmE','list','450zcdLDk','str','1679762nbwkef','allFields','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','dbtableConfig','trim','description','251379RVwcDY'];a21_0x4e47=function(){return _0x4035ef;};return a21_0x4e47();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a21_0x3f7b(_0x335d38,_0x447f95){_0x335d38=_0x335d38-0x197;const _0x4e4777=a21_0x4e47();let _0x3f7b66=_0x4e4777[_0x335d38];return _0x3f7b66;}export const datasetList={'service':'dataset','command':a21_0x170f95(0x1a1),'description':a21_0x170f95(0x199),'risk':a21_0x170f95(0x1ac),'flags':[{'name':a21_0x170f95(0x19f),'type':a21_0x170f95(0x1ab),'description':a21_0x170f95(0x19e)},{...CODE_FLAG,'required':![],'description':a21_0x170f95(0x1a6)}],async 'execute'(_0x582837){const _0x548940=a21_0x170f95,_0x264282=_0x582837['str'](_0x548940(0x19f)),_0x4e58cf=_0x582837[_0x548940(0x1a3)](_0x548940(0x19c)),_0xbef91a=await listDatasets(_0x582837[_0x548940(0x1b2)],{..._0x264282&&{'name':_0x264282},..._0x4e58cf&&{'code':_0x4e58cf}});return{'ok':!![],'data':{'total':_0xbef91a[_0x548940(0x1b3)],'datasets':_0xbef91a[_0x548940(0x19d)](_0x2315a0=>{const _0x471684=_0x548940,_0x308b25=_0x2315a0[_0x471684(0x1a7)]??{};return{'id':_0x2315a0['id'],'code':_0x2315a0[_0x471684(0x19c)],'name':_0x2315a0[_0x471684(0x19f)],'source':_0x2315a0[_0x471684(0x198)],'description':_0x2315a0[_0x471684(0x1a9)],'table':_0x308b25[_0x471684(0x1b0)],'datasetKey':_0x308b25['datasetKey'],'pk':_0x308b25[_0x471684(0x19b)],'fields':_0x308b25[_0x471684(0x1a5)]?_0x308b25[_0x471684(0x1a5)][_0x471684(0x1ae)](',')[_0x471684(0x19d)](_0x6892a4=>_0x6892a4[_0x471684(0x1a8)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a22_0x3b5461=a22_0x45e9;function a22_0x45e9(_0x1bde3c,_0x59a4e6){_0x1bde3c=_0x1bde3c-0x168;const _0x3bf380=a22_0x3bf3();let _0x45e920=_0x3bf380[_0x1bde3c];return _0x45e920;}(function(_0x3057f2,_0x1e618e){const _0x29104d=a22_0x45e9,_0x54b921=_0x3057f2();while(!![]){try{const _0x43fbcf=parseInt(_0x29104d(0x178))/0x1*(parseInt(_0x29104d(0x168))/0x2)+parseInt(_0x29104d(0x172))/0x3+-parseInt(_0x29104d(0x177))/0x4+-parseInt(_0x29104d(0x170))/0x5+-parseInt(_0x29104d(0x16d))/0x6+-parseInt(_0x29104d(0x16f))/0x7+parseInt(_0x29104d(0x16a))/0x8*(parseInt(_0x29104d(0x173))/0x9);if(_0x43fbcf===_0x1e618e)break;else _0x54b921['push'](_0x54b921['shift']());}catch(_0x84a1b6){_0x54b921['push'](_0x54b921['shift']());}}}(a22_0x3bf3,0x9c62d));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a22_0x3bf3(){const _0xaddbdb=['35037531QHCHEn','trim','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','appCode','4106928YunptV','73gheTYR','str','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','7238XJakMb','sdk-doc','8tFuErZ','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','read','4202982OxhhyW','code','4338964felANF','6125970OSLecB','dataset','166758qpjSwb'];a22_0x3bf3=function(){return _0xaddbdb;};return a22_0x3bf3();}const DEFAULT_MARKDOWN=a22_0x3b5461(0x16b);export function formatDatasetSdkMarkdown(_0x17ef57){const _0x425bcd=a22_0x3b5461,_0x7fb127=typeof _0x17ef57==='string'?_0x17ef57[_0x425bcd(0x174)]():'';return _0x7fb127||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a22_0x3b5461(0x171),'command':a22_0x3b5461(0x169),'description':a22_0x3b5461(0x175),'risk':a22_0x3b5461(0x16c),'flags':[{...CODE_FLAG,'description':a22_0x3b5461(0x17a)}],async 'execute'(_0x4da446){const _0x257a0a=a22_0x3b5461,_0x4aa0fd=_0x4da446[_0x257a0a(0x179)](_0x257a0a(0x16e)),_0x491516=await getDatasetSdkUsageDoc(_0x4aa0fd,_0x4da446[_0x257a0a(0x176)]);return{'ok':!![],'data':{'code':_0x4aa0fd,'appCode':_0x4da446['appCode'],'markdown':formatDatasetSdkMarkdown(_0x491516)}};}};
1
+ function a22_0x563d(){const _0x3d91ff=['string','1327808MFOcYv','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','read','29829555NSnjZt','11212390IFWMQI','1172159pRaQbY','appCode','20tmDIfp','7399512TSvNpE','55806ZKCgxJ','dataset','sdk-doc','code','trim','1330404KMzQrb','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2mzqzIT','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档'];a22_0x563d=function(){return _0x3d91ff;};return a22_0x563d();}const a22_0x325332=a22_0x1bfd;(function(_0x21331e,_0x2a3280){const _0x4dcee7=a22_0x1bfd,_0x29c60e=_0x21331e();while(!![]){try{const _0x47b682=parseInt(_0x4dcee7(0x185))/0x1*(-parseInt(_0x4dcee7(0x190))/0x2)+-parseInt(_0x4dcee7(0x189))/0x3+parseInt(_0x4dcee7(0x193))/0x4+parseInt(_0x4dcee7(0x187))/0x5*(-parseInt(_0x4dcee7(0x18e))/0x6)+-parseInt(_0x4dcee7(0x184))/0x7+parseInt(_0x4dcee7(0x188))/0x8+parseInt(_0x4dcee7(0x183))/0x9;if(_0x47b682===_0x2a3280)break;else _0x29c60e['push'](_0x29c60e['shift']());}catch(_0x5ae76e){_0x29c60e['push'](_0x29c60e['shift']());}}}(a22_0x563d,0xd9bab));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a22_0x1bfd(_0x1ff516,_0x13dcc3){_0x1ff516=_0x1ff516-0x183;const _0x563d8b=a22_0x563d();let _0x1bfdb4=_0x563d8b[_0x1ff516];return _0x1bfdb4;}const DEFAULT_MARKDOWN=a22_0x325332(0x191);export function formatDatasetSdkMarkdown(_0x102440){const _0x441e01=a22_0x325332,_0x422764=typeof _0x102440===_0x441e01(0x192)?_0x102440[_0x441e01(0x18d)]():'';return _0x422764||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a22_0x325332(0x18a),'command':a22_0x325332(0x18b),'description':a22_0x325332(0x18f),'risk':a22_0x325332(0x195),'flags':[{...CODE_FLAG,'description':a22_0x325332(0x194)}],async 'execute'(_0x1697af){const _0x42a083=a22_0x325332,_0x1bf799=_0x1697af['str'](_0x42a083(0x18c)),_0xc6033c=await getDatasetSdkUsageDoc(_0x1bf799,_0x1697af[_0x42a083(0x186)]);return{'ok':!![],'data':{'code':_0x1bf799,'appCode':_0x1697af[_0x42a083(0x186)],'markdown':formatDatasetSdkMarkdown(_0xc6033c)}};}};
@@ -1 +1 @@
1
- const a23_0x377951=a23_0x44dc;(function(_0x344481,_0x511de5){const _0x1b740b=a23_0x44dc,_0xcb1fbc=_0x344481();while(!![]){try{const _0x289694=parseInt(_0x1b740b(0x176))/0x1*(-parseInt(_0x1b740b(0x18c))/0x2)+-parseInt(_0x1b740b(0x1a2))/0x3*(-parseInt(_0x1b740b(0x181))/0x4)+-parseInt(_0x1b740b(0x180))/0x5+-parseInt(_0x1b740b(0x18a))/0x6+-parseInt(_0x1b740b(0x197))/0x7*(parseInt(_0x1b740b(0x1a4))/0x8)+-parseInt(_0x1b740b(0x19f))/0x9+parseInt(_0x1b740b(0x17a))/0xa;if(_0x289694===_0x511de5)break;else _0xcb1fbc['push'](_0xcb1fbc['shift']());}catch(_0x7f47a0){_0xcb1fbc['push'](_0xcb1fbc['shift']());}}}(a23_0x48b5,0xc2a3a));import a23_0x2ce35a from'chalk';function a23_0x48b5(){const _0x1df53c=['green','3753415Zdlzxb','4XktCPh','log','(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','defaultApp','\x20\x20auth\x20(effective):\x20','doctor','24390epLNdN','check','2ZPfkFX','\x20\x20runtimeDomain:\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','accessKey','\x20\x20Config\x20Files','format','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','Project','77756YFaClQ','✗\x20Invalid\x20JSON','red','currentApp','appCode','\x20\x20Auth','\x20\x20Merged\x20Config','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6167853UNLkjs','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','1677777OhGKOP','\x20\x20─','968PhAIMI','locale','⚠\x20Empty\x20(treated\x20as\x20{})','platform','version','repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','riskLevel','status','\x20(accessKey)','(set,\x20length=','padEnd','message','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20doctor','bold','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','arch','(no\x20file)','env','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','678932dsknCR','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','37010480gQbpOw','\x20\x20API\x20Endpoints','pageSize','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)'];a23_0x48b5=function(){return _0x1df53c;};return a23_0x48b5();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a23_0x44dc(_0x1f0744,_0xf6c79d){_0x1f0744=_0x1f0744-0x160;const _0x48b57b=a23_0x48b5();let _0x44dcbe=_0x48b57b[_0x1f0744];return _0x44dcbe;}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';async function execute(_0x53f581){const _0xcd53a3=a23_0x44dc,_0x2ccd21=getCliVersion(),_0x31fb43=buildConfigFromFlags({});await initGlobalEnvironment(_0x31fb43),console['log'](),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x16f)](CLI_BIN_NAME+_0xcd53a3(0x16e))),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x192)]('─'[_0xcd53a3(0x164)](0x32))),console['log'](_0xcd53a3(0x16d)+_0x2ccd21),console[_0xcd53a3(0x182)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xcd53a3(0x163)]),console[_0xcd53a3(0x182)](_0xcd53a3(0x1a0)+process[_0xcd53a3(0x162)]+'\x20'+process[_0xcd53a3(0x172)]),console[_0xcd53a3(0x182)](),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x16f)](_0xcd53a3(0x190))),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x192)]('\x20\x20─'['repeat'](0x1e)));const _0x4a50d7=getGlobalConfigPath(),_0x30f839=getProjectConfigPath();console[_0xcd53a3(0x182)](_0xcd53a3(0x165)+(_0x4a50d7||a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x194)))),console[_0xcd53a3(0x182)](_0xcd53a3(0x193)+(_0x30f839||a23_0x2ce35a[_0xcd53a3(0x192)]('(not\x20found)'))),console[_0xcd53a3(0x182)](),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x16f)]('\x20\x20Config\x20JSON')),console['log'](a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x1a3)['repeat'](0x1e)));const _0x85697a=(_0x5cd9a6,_0x40f8d0)=>{const _0x5a2c5b=_0xcd53a3;if(!_0x40f8d0){console[_0x5a2c5b(0x182)]('\x20\x20'+_0x5cd9a6['padEnd'](0x11)+'\x20'+a23_0x2ce35a['gray'](_0x5a2c5b(0x173)));return;}const _0xde23ae=inspectCliConfigJsonFile(_0x40f8d0);if(_0xde23ae[_0x5a2c5b(0x168)]==='ok')console[_0x5a2c5b(0x182)]('\x20\x20'+_0x5cd9a6[_0x5a2c5b(0x16b)](0x11)+'\x20'+a23_0x2ce35a[_0x5a2c5b(0x17f)](_0x5a2c5b(0x171)));else{if(_0xde23ae[_0x5a2c5b(0x168)]==='empty')console[_0x5a2c5b(0x182)]('\x20\x20'+_0x5cd9a6['padEnd'](0x11)+'\x20'+a23_0x2ce35a['yellow'](_0x5a2c5b(0x161)));else _0xde23ae[_0x5a2c5b(0x168)]==='missing'?console['log']('\x20\x20'+_0x5cd9a6[_0x5a2c5b(0x16b)](0x11)+'\x20'+a23_0x2ce35a[_0x5a2c5b(0x192)](_0x5a2c5b(0x186))):(console['log']('\x20\x20'+_0x5cd9a6[_0x5a2c5b(0x16b)](0x11)+'\x20'+a23_0x2ce35a[_0x5a2c5b(0x199)](_0x5a2c5b(0x198))),console[_0x5a2c5b(0x182)]('\x20\x20'+''[_0x5a2c5b(0x16b)](0x11)+'\x20'+a23_0x2ce35a['red'](_0xde23ae[_0x5a2c5b(0x16c)])));}};_0x85697a('Global',_0x4a50d7),_0x85697a(_0xcd53a3(0x196),_0x30f839),console[_0xcd53a3(0x182)](),console['log'](a23_0x2ce35a[_0xcd53a3(0x16f)](_0xcd53a3(0x19d))),console['log'](a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x1a3)[_0xcd53a3(0x164)](0x1e))),console[_0xcd53a3(0x182)](_0xcd53a3(0x19e)+(_0x31fb43[_0xcd53a3(0x19b)]||a23_0x2ce35a[_0xcd53a3(0x199)]('(not\x20set)'))),console[_0xcd53a3(0x182)](_0xcd53a3(0x170)+_0x31fb43[_0xcd53a3(0x174)]);const _0x46165=isLegacyCompatConfigKey(_0xcd53a3(0x160))?a23_0x2ce35a[_0xcd53a3(0x192)](_0x31fb43[_0xcd53a3(0x160)]+_0xcd53a3(0x17e)):_0x31fb43[_0xcd53a3(0x160)];return console[_0xcd53a3(0x182)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46165),console[_0xcd53a3(0x182)](_0xcd53a3(0x17d)+(_0x31fb43[_0xcd53a3(0x187)]||a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x183)))),console[_0xcd53a3(0x182)](_0xcd53a3(0x184)+(_0x31fb43[_0xcd53a3(0x19a)]||a23_0x2ce35a['gray'](_0xcd53a3(0x183)))),console['log'](_0xcd53a3(0x185)+(_0x31fb43[_0xcd53a3(0x191)]||a23_0x2ce35a['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0xcd53a3(0x191)]+')'))),console[_0xcd53a3(0x182)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31fb43[_0xcd53a3(0x17c)]??a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x1a1)))),console[_0xcd53a3(0x182)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x31fb43[_0xcd53a3(0x167)]),console[_0xcd53a3(0x182)](_0xcd53a3(0x178)+_0x31fb43['verbose']),console['log'](_0xcd53a3(0x188)+AUTH_MODE[_0xcd53a3(0x166)]),console[_0xcd53a3(0x182)](_0xcd53a3(0x195)+(_0x31fb43['accessKey']?a23_0x2ce35a['green'](_0xcd53a3(0x16a)+_0x31fb43[_0xcd53a3(0x18f)]['length']+')'):a23_0x2ce35a[_0xcd53a3(0x192)]('(none)'))),console[_0xcd53a3(0x182)](),console[_0xcd53a3(0x182)](a23_0x2ce35a['bold'](_0xcd53a3(0x17b))),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x1a3)[_0xcd53a3(0x164)](0x1e))),console[_0xcd53a3(0x182)](_0xcd53a3(0x175)+getApiDomain()),console[_0xcd53a3(0x182)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xcd53a3(0x182)](_0xcd53a3(0x18d)+getRuntimeDomain()),console[_0xcd53a3(0x182)](),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x16f)](_0xcd53a3(0x19c))),console[_0xcd53a3(0x182)](a23_0x2ce35a[_0xcd53a3(0x192)](_0xcd53a3(0x1a3)[_0xcd53a3(0x164)](0x1e))),console[_0xcd53a3(0x182)](_0xcd53a3(0x177)+a23_0x2ce35a[_0xcd53a3(0x17f)](AUTH_MODE[_0xcd53a3(0x166)]+_0xcd53a3(0x169))),console['log'](_0xcd53a3(0x179)+a23_0x2ce35a['gray'](_0xcd53a3(0x18e))),console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a23_0x377951(0x189),'command':a23_0x377951(0x18b),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a23_0x5c471d=a23_0x4e9e;(function(_0x41e415,_0x1b2c22){const _0x10be3b=a23_0x4e9e,_0x5dc6ed=_0x41e415();while(!![]){try{const _0x2ddb9f=parseInt(_0x10be3b(0x11c))/0x1*(parseInt(_0x10be3b(0xef))/0x2)+-parseInt(_0x10be3b(0x113))/0x3+-parseInt(_0x10be3b(0xdd))/0x4+parseInt(_0x10be3b(0xde))/0x5+parseInt(_0x10be3b(0x106))/0x6*(parseInt(_0x10be3b(0x100))/0x7)+-parseInt(_0x10be3b(0xf4))/0x8*(-parseInt(_0x10be3b(0xea))/0x9)+-parseInt(_0x10be3b(0xe8))/0xa;if(_0x2ddb9f===_0x1b2c22)break;else _0x5dc6ed['push'](_0x5dc6ed['shift']());}catch(_0x50096f){_0x5dc6ed['push'](_0x5dc6ed['shift']());}}}(a23_0x3567,0x414bd));import a23_0x33679f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a23_0x4e9e(_0x9ba071,_0x35283d){_0x9ba071=_0x9ba071-0xdd;const _0x3567f1=a23_0x3567();let _0x4e9ef2=_0x3567f1[_0x9ba071];return _0x4e9ef2;}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';async function execute(_0x4f2599){const _0x3ef7b8=a23_0x4e9e,_0x17b61d=getCliVersion(),_0x47f486=buildConfigFromFlags({});await initGlobalEnvironment(_0x47f486),console['log'](),console['log'](a23_0x33679f[_0x3ef7b8(0xe6)](CLI_BIN_NAME+_0x3ef7b8(0x108))),console['log'](a23_0x33679f[_0x3ef7b8(0x117)]('─'[_0x3ef7b8(0x10a)](0x32))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x11e)+_0x17b61d),console['log'](_0x3ef7b8(0xf3)+process[_0x3ef7b8(0xdf)]),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x119)+process['platform']+'\x20'+process[_0x3ef7b8(0x112)]),console[_0x3ef7b8(0xfe)](),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0xe6)]('\x20\x20Config\x20Files')),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0x10e)[_0x3ef7b8(0x10a)](0x1e)));const _0x2df0f7=getGlobalConfigPath(),_0x42c2e2=getProjectConfigPath();console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xff)+(_0x2df0f7||a23_0x33679f[_0x3ef7b8(0x117)]('(not\x20found)'))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x10d)+(_0x42c2e2||a23_0x33679f['gray'](_0x3ef7b8(0xe2)))),console[_0x3ef7b8(0xfe)](),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0xe6)](_0x3ef7b8(0x116))),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0x10e)['repeat'](0x1e)));const _0x7afb7a=(_0x12d3e2,_0xfbdbaf)=>{const _0x4986a6=_0x3ef7b8;if(!_0xfbdbaf){console[_0x4986a6(0xfe)]('\x20\x20'+_0x12d3e2[_0x4986a6(0x111)](0x11)+'\x20'+a23_0x33679f[_0x4986a6(0x117)]('(no\x20file)'));return;}const _0x31af25=inspectCliConfigJsonFile(_0xfbdbaf);if(_0x31af25[_0x4986a6(0x105)]==='ok')console[_0x4986a6(0xfe)]('\x20\x20'+_0x12d3e2[_0x4986a6(0x111)](0x11)+'\x20'+a23_0x33679f['green'](_0x4986a6(0xe7)));else{if(_0x31af25[_0x4986a6(0x105)]==='empty')console['log']('\x20\x20'+_0x12d3e2['padEnd'](0x11)+'\x20'+a23_0x33679f['yellow'](_0x4986a6(0xfb)));else _0x31af25[_0x4986a6(0x105)]===_0x4986a6(0xf5)?console[_0x4986a6(0xfe)]('\x20\x20'+_0x12d3e2[_0x4986a6(0x111)](0x11)+'\x20'+a23_0x33679f[_0x4986a6(0x117)](_0x4986a6(0x118))):(console['log']('\x20\x20'+_0x12d3e2[_0x4986a6(0x111)](0x11)+'\x20'+a23_0x33679f[_0x4986a6(0x107)]('✗\x20Invalid\x20JSON')),console[_0x4986a6(0xfe)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a23_0x33679f[_0x4986a6(0x107)](_0x31af25[_0x4986a6(0x102)])));}};_0x7afb7a(_0x3ef7b8(0x10b),_0x2df0f7),_0x7afb7a('Project',_0x42c2e2),console['log'](),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0xe6)](_0x3ef7b8(0xf0))),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0x10e)[_0x3ef7b8(0x10a)](0x1e))),console[_0x3ef7b8(0xfe)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47f486[_0x3ef7b8(0x101)]||a23_0x33679f['red'](_0x3ef7b8(0xf2)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47f486[_0x3ef7b8(0xf8)]);const _0x5c0885=isLegacyCompatConfigKey(_0x3ef7b8(0x104))?a23_0x33679f['gray'](_0x47f486['locale']+_0x3ef7b8(0xe4)):_0x47f486['locale'];return console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xfc)+_0x5c0885),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x110)+(_0x47f486[_0x3ef7b8(0xe1)]||a23_0x33679f['gray'](_0x3ef7b8(0xe3)))),console['log'](_0x3ef7b8(0xe9)+(_0x47f486['currentApp']||a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0xe3)))),console[_0x3ef7b8(0xfe)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47f486[_0x3ef7b8(0x103)]||a23_0x33679f[_0x3ef7b8(0x117)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x3ef7b8(0x103)]+')'))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xe0)+(_0x47f486[_0x3ef7b8(0xeb)]??a23_0x33679f['gray'](_0x3ef7b8(0xfd)))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x114)+_0x47f486['riskLevel']),console[_0x3ef7b8(0xfe)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47f486[_0x3ef7b8(0xf9)]),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0x11a)+AUTH_MODE['ClientAk']),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xee)+(_0x47f486[_0x3ef7b8(0x11b)]?a23_0x33679f[_0x3ef7b8(0x10f)](_0x3ef7b8(0x115)+_0x47f486[_0x3ef7b8(0x11b)][_0x3ef7b8(0xec)]+')'):a23_0x33679f['gray'](_0x3ef7b8(0xe3)))),console['log'](),console[_0x3ef7b8(0xfe)](a23_0x33679f['bold']('\x20\x20API\x20Endpoints')),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0x10e)[_0x3ef7b8(0x10a)](0x1e))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xf6)+getApiDomain()),console[_0x3ef7b8(0xfe)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x3ef7b8(0xfe)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3ef7b8(0xfe)](),console[_0x3ef7b8(0xfe)](a23_0x33679f[_0x3ef7b8(0xe6)](_0x3ef7b8(0xfa))),console['log'](a23_0x33679f[_0x3ef7b8(0x117)]('\x20\x20─'['repeat'](0x1e))),console[_0x3ef7b8(0xfe)](_0x3ef7b8(0xf7)+a23_0x33679f[_0x3ef7b8(0x10f)](AUTH_MODE[_0x3ef7b8(0x109)]+_0x3ef7b8(0xe5))),console['log'](_0x3ef7b8(0xed)+a23_0x33679f[_0x3ef7b8(0x117)](_0x3ef7b8(0x11d))),console['log'](),{'ok':!![]};}function a23_0x3567(){const _0x5b4f0e=['\x20\x20Merged\x20Config','doctor','(not\x20set)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','99120tYLKLH','missing','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','verbose','\x20\x20Auth','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','log','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2774261YhfKwa','appCode','message','format','locale','status','6PROMcL','red','\x20doctor','ClientAk','repeat','Global','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','green','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','padEnd','arch','738699zcInyn','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Config\x20JSON','gray','(missing)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','accessKey','2mIquXV','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1956328zFJEPX','1337310xTuxuU','version','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(not\x20found)','(none)','\x20(legacy/compat\x20only)','\x20(accessKey)','bold','✓\x20Valid\x20JSON','6386350vCWNaI','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','369CovUvb','pageSize','length','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','469628pHjUTH'];a23_0x3567=function(){return _0x5b4f0e;};return a23_0x3567();}export const doctorDefinition={'service':a23_0x5c471d(0xf1),'command':a23_0x5c471d(0x10c),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a24_0xa3bb58=a24_0x1e72;(function(_0x3629b0,_0x1d6bc9){const _0x327137=a24_0x1e72,_0x411146=_0x3629b0();while(!![]){try{const _0x2bd6be=-parseInt(_0x327137(0x195))/0x1+parseInt(_0x327137(0x1a4))/0x2*(-parseInt(_0x327137(0x192))/0x3)+-parseInt(_0x327137(0x196))/0x4*(parseInt(_0x327137(0x182))/0x5)+parseInt(_0x327137(0x174))/0x6+-parseInt(_0x327137(0x183))/0x7+parseInt(_0x327137(0x16b))/0x8+parseInt(_0x327137(0x16a))/0x9;if(_0x2bd6be===_0x1d6bc9)break;else _0x411146['push'](_0x411146['shift']());}catch(_0x41a22e){_0x411146['push'](_0x411146['shift']());}}}(a24_0x36c3,0x60f89));import{existsSync,readFileSync}from'node:fs';function a24_0x1e72(_0x4ae0fb,_0x4ca9e7){_0x4ae0fb=_0x4ae0fb-0x162;const _0x36c344=a24_0x36c3();let _0x1e72e9=_0x36c344[_0x4ae0fb];return _0x1e72e9;}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':a24_0xa3bb58(0x19e),'type':a24_0xa3bb58(0x18c),'description':a24_0xa3bb58(0x185)},{'name':a24_0xa3bb58(0x191),'type':a24_0xa3bb58(0x18c),'description':a24_0xa3bb58(0x19d)+DEFAULT_CONFIG_VALUES[a24_0xa3bb58(0x191)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a24_0xa3bb58(0x193),'type':'boolean','description':a24_0xa3bb58(0x169)+PRODUCT_CONFIG['newConfigFileName']+a24_0xa3bb58(0x181),'default':![]},{'name':a24_0xa3bb58(0x186),'type':a24_0xa3bb58(0x17e),'description':a24_0xa3bb58(0x180),'default':![]}];export const initImportFlagDefs=[{'name':a24_0xa3bb58(0x16f),'type':a24_0xa3bb58(0x18c),'description':a24_0xa3bb58(0x1a2),'required':!![]},{'name':a24_0xa3bb58(0x19e),'type':a24_0xa3bb58(0x18c),'description':a24_0xa3bb58(0x17f)},{'name':a24_0xa3bb58(0x191),'type':a24_0xa3bb58(0x18c),'description':a24_0xa3bb58(0x1a1),'enum':[...RUNTIME_ENV_VALUES]},{'name':a24_0xa3bb58(0x193),'type':a24_0xa3bb58(0x17e),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a24_0xa3bb58(0x17d)]+')\x20instead\x20of\x20project','default':![]},{'name':'yes','type':a24_0xa3bb58(0x17e),'description':a24_0xa3bb58(0x180),'default':![]}];export async function runInit(_0x1ead5a){const _0x369fc3=a24_0xa3bb58,_0x4c4ac9=isNonInteractiveMode(_0x1ead5a),_0x25f498=_0x1ead5a[_0x369fc3(0x193)]?_0x369fc3(0x193):'project',_0x23dec7=resolveWriteConfigPath(_0x25f498);try{_0x4c4ac9?await runNonInteractive(_0x1ead5a,_0x23dec7):await runInteractive(_0x1ead5a,_0x23dec7);}catch(_0x28a439){if(_0x28a439 instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x28a439;}}function a24_0x36c3(){const _0x28da1f=['defaultApp','close','Failed\x20to\x20parse\x20source\x20file:\x20','message','Target\x20environment\x20(default\x20','appcode','Aborted.','validation','Override\x20imported\x20default\x20env','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','log','103798xuGuum','\x20\x20default:\x20','apiDir','join','race','Initialized\x20','object','riskLevel','once','Write\x20to\x20global\x20(~/','13057326UsbNMd','4816920RqUvrY','\x20init\x20—\x20Create\x20','SIGINT','stdin','file','Imported\x20from\x20','[y/N]','User\x20aborted\x20prompt','\x20\x20env:\x20\x20\x20\x20\x20','1537716zZuHVv','project','app','\x20\x20appcode:\x20','trim','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','utf8','name','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`.','newConfigFileName','boolean','Override\x20imported\x20default\x20appcode','Skip\x20confirmation\x20when\x20overwriting',')\x20instead\x20of\x20project','10XceCWT','5003474qfmeQM','\x22.\x20Allowed:\x20','App\x20code\x20for\x20the\x20project','yes','\x0aInitialized\x20','):\x20','question','flagMissing','App\x20code','string','stdout','Invalid\x20env\x20\x22','cwd','removeListener','env','15LRbvSd','global','parse','621423IYHgTD','632644rrkHjf','entries','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.'];a24_0x36c3=function(){return _0x28da1f;};return a24_0x36c3();}export async function runInitImport(_0x47f73a){const _0x6255c8=a24_0xa3bb58,_0x40f957=_0x47f73a[_0x6255c8(0x193)]?'global':_0x6255c8(0x175),_0x4f75b6=resolveWriteConfigPath(_0x40f957);await runFromImport(_0x47f73a,_0x4f75b6);}const RUNTIME_IRRELEVANT_KEYS=new Set([a24_0xa3bb58(0x162)]);async function runFromImport(_0x4686b1,_0x2ae660){const _0x388179=a24_0xa3bb58,_0xc64547=resolveFilePath(_0x4686b1[_0x388179(0x16f)]);if(!existsSync(_0xc64547))throw CliErrors[_0x388179(0x1a0)]('Source\x20file\x20not\x20found:\x20'+_0xc64547);const _0x676d5c=readSourceFile(_0xc64547),_0x280f7c=convertToRuntimeConfig(_0x676d5c);_0x4686b1[_0x388179(0x19e)]&&(_0x280f7c[_0x388179(0x19e)]=String(_0x4686b1[_0x388179(0x19e)]));_0x4686b1['env']&&(_0x280f7c[_0x388179(0x191)]=resolveInitEnv(_0x4686b1));if(!_0x280f7c[_0x388179(0x19e)])throw CliErrors[_0x388179(0x1a0)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x388179(0x17c));await writeInitConfig(_0x2ae660,_0x280f7c,_0x4686b1),console[_0x388179(0x1a3)](_0x388179(0x170)+_0xc64547),console[_0x388179(0x1a3)]('\x20\x20config:\x20\x20'+_0x2ae660),console['log'](_0x388179(0x177)+_0x280f7c[_0x388179(0x19e)]);if(_0x280f7c[_0x388179(0x199)])console[_0x388179(0x1a3)](_0x388179(0x1a5)+_0x280f7c[_0x388179(0x199)]);}function convertToRuntimeConfig(_0xfdf93a){const _0xc4e488=a24_0xa3bb58;if(_0xfdf93a['apps']&&typeof _0xfdf93a['apps']===_0xc4e488(0x166))throw CliErrors[_0xc4e488(0x1a0)](_0xc4e488(0x198),_0xc4e488(0x179));const _0x2e3470={};for(const _0x12265e of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xfdf93a[_0x12265e]!==undefined&&(_0x2e3470[_0x12265e]=_0xfdf93a[_0x12265e]);}return!_0x2e3470[_0xc4e488(0x167)]&&(_0x2e3470[_0xc4e488(0x167)]=DEFAULT_CONFIG_VALUES[_0xc4e488(0x167)]),_0x2e3470;}async function runNonInteractive(_0x2427f8,_0x2eee86){const _0x55cf06=a24_0xa3bb58,_0x32dd6d=_0x2427f8[_0x55cf06(0x19e)];if(!_0x32dd6d)throw CliErrors[_0x55cf06(0x18a)]('appcode','Usage:\x20'+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x5c388e=resolveInitEnv(_0x2427f8);await writeInitConfig(_0x2eee86,{'appcode':_0x32dd6d,'env':_0x5c388e},_0x2427f8),console[_0x55cf06(0x1a3)](_0x55cf06(0x165)+_0x2eee86),console[_0x55cf06(0x1a3)](_0x55cf06(0x177)+_0x32dd6d),console[_0x55cf06(0x1a3)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x5c388e);}async function runInteractive(_0x20c48a,_0x3d1db7){const _0x3ebbd8=a24_0xa3bb58,_0x20f7bc=loadExisting(_0x3d1db7),_0x1554d3=typeof _0x20f7bc?.[_0x3ebbd8(0x19e)]===_0x3ebbd8(0x18c)?_0x20f7bc[_0x3ebbd8(0x19e)]:'',_0xa14766=resolveInitEnv(_0x20c48a);console[_0x3ebbd8(0x1a3)](CLI_BIN_NAME+_0x3ebbd8(0x16c)+PRODUCT_CONFIG[_0x3ebbd8(0x17d)]+'\x0a');if(existsSync(_0x3d1db7)&&!_0x20c48a[_0x3ebbd8(0x186)]){const _0x2599fe=await promptYesNo('File\x20'+_0x3d1db7+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x2599fe){console[_0x3ebbd8(0x1a3)](_0x3ebbd8(0x19f));return;}}const _0x398777=typeof _0x20c48a[_0x3ebbd8(0x19e)]==='string'?_0x20c48a[_0x3ebbd8(0x19e)]['trim']():'';let _0x4fd85c=_0x398777;!_0x4fd85c&&(_0x4fd85c=await promptInput(_0x3ebbd8(0x18b),_0x1554d3));if(!_0x4fd85c[_0x3ebbd8(0x178)]())throw CliErrors[_0x3ebbd8(0x1a0)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x3d1db7,{'appcode':_0x4fd85c[_0x3ebbd8(0x178)](),'env':_0xa14766},_0x20c48a),console['log'](_0x3ebbd8(0x187)+_0x3d1db7),console[_0x3ebbd8(0x1a3)](_0x3ebbd8(0x177)+_0x4fd85c['trim']()),console['log'](_0x3ebbd8(0x173)+_0xa14766);}async function writeInitConfig(_0x12f62c,_0x2f8633,_0x496457){const _0x4b1fbb=a24_0xa3bb58;let _0x14aafb={};existsSync(_0x12f62c)&&!_0x496457['yes']&&(_0x14aafb=readConfigFile(_0x12f62c));for(const [_0x1deef0,_0x4ad518]of Object[_0x4b1fbb(0x197)](_0x2f8633)){_0x4ad518!==undefined&&(_0x14aafb[_0x1deef0]=_0x4ad518);}if(_0x14aafb[_0x4b1fbb(0x176)])delete _0x14aafb['app'];writeConfigFile(_0x12f62c,_0x14aafb);}class AbortPrompt extends Error{constructor(){const _0x56a9a4=a24_0xa3bb58;super(_0x56a9a4(0x172)),this[_0x56a9a4(0x17b)]='AbortPrompt';}}function createSafeRl(){const _0x28a7c9=a24_0xa3bb58,_0x144ac6=createInterface({'input':process[_0x28a7c9(0x16e)],'output':process[_0x28a7c9(0x18d)]});let _0x37de47;const _0x582f73=new Promise((_0xd5e75c,_0x393c5f)=>{const _0x15d633=_0x28a7c9;_0x37de47=()=>{const _0x46f31f=a24_0x1e72;_0x37de47&&(_0x144ac6[_0x46f31f(0x190)]('SIGINT',_0x37de47),_0x37de47=undefined);try{_0x144ac6[_0x46f31f(0x19a)]();}catch{}_0x393c5f(new AbortPrompt());},_0x144ac6[_0x15d633(0x168)](_0x15d633(0x16d),_0x37de47);}),_0x3c1abb=()=>{const _0x523507=_0x28a7c9;_0x37de47&&(_0x144ac6['removeListener'](_0x523507(0x16d),_0x37de47),_0x37de47=undefined);try{_0x144ac6['close']();}catch{}};return{'rl':_0x144ac6,'abortPromise':_0x582f73,'disposeSuccess':_0x3c1abb};}async function promptInput(_0x202d31,_0x1d9925){const _0x2af350=a24_0xa3bb58,{rl:_0x307a27,abortPromise:_0x5739c8,disposeSuccess:_0x5e062c}=createSafeRl(),_0x195412=new Promise(_0x30e66c=>{const _0x5e3311=a24_0x1e72,_0x1d7121=_0x1d9925?'\x20\x20'+_0x202d31+'\x20('+_0x1d9925+_0x5e3311(0x188):'\x20\x20'+_0x202d31+':\x20';_0x307a27[_0x5e3311(0x189)](_0x1d7121,_0x546b22=>{const _0x4c79fc=_0x5e3311;_0x5e062c(),_0x30e66c(_0x546b22[_0x4c79fc(0x178)]()||_0x1d9925);});});return Promise[_0x2af350(0x164)]([_0x195412,_0x5739c8]);}async function promptYesNo(_0x2757e9,_0x1466ec){const _0x123e99=a24_0xa3bb58,{rl:_0x1033e4,abortPromise:_0x1d929f,disposeSuccess:_0x4bd78a}=createSafeRl(),_0x3f2d9a=new Promise(_0x57684a=>{const _0x1a4161=a24_0x1e72,_0x155a8f=_0x1466ec?'[Y/n]':_0x1a4161(0x171);_0x1033e4[_0x1a4161(0x189)]('\x20\x20'+_0x2757e9+'\x20'+_0x155a8f+':\x20',_0x19f4b4=>{const _0x56ca83=_0x1a4161;_0x4bd78a();const _0x4fdf06=_0x19f4b4[_0x56ca83(0x178)]()['toLowerCase']();if(_0x4fdf06==='y'||_0x4fdf06===_0x56ca83(0x186))_0x57684a(!![]);else{if(_0x4fdf06==='n'||_0x4fdf06==='no')_0x57684a(![]);else _0x57684a(_0x1466ec);}});});return Promise[_0x123e99(0x164)]([_0x3f2d9a,_0x1d929f]);}function loadExisting(_0xc8ed5a){if(!existsSync(_0xc8ed5a))return null;return readConfigFile(_0xc8ed5a);}function resolveFilePath(_0x425663){const _0x484dcd=a24_0xa3bb58;return isAbsolute(_0x425663)?_0x425663:resolve(process[_0x484dcd(0x18f)](),_0x425663);}function readSourceFile(_0xc39847){const _0x46e757=a24_0xa3bb58;try{const _0x48542e=readFileSync(_0xc39847,{'encoding':_0x46e757(0x17a)});return JSON[_0x46e757(0x194)](_0x48542e);}catch(_0x2db9c4){throw CliErrors[_0x46e757(0x1a0)](_0x46e757(0x19b)+_0x2db9c4[_0x46e757(0x19c)]);}}function resolveInitEnv(_0x11cca8){const _0xaf83d8=a24_0xa3bb58,_0x5557c8=_0x11cca8['env'];if(_0x5557c8===undefined||_0x5557c8==='')return DEFAULT_CONFIG_VALUES[_0xaf83d8(0x191)];if(!RUNTIME_ENV_VALUES['includes'](_0x5557c8))throw CliErrors[_0xaf83d8(0x1a0)](_0xaf83d8(0x18e)+_0x5557c8+_0xaf83d8(0x184)+RUNTIME_ENV_VALUES[_0xaf83d8(0x163)](',\x20'));return _0x5557c8;}
1
+ const a24_0x18b4ca=a24_0x20b4;(function(_0x18c848,_0x580daf){const _0x217c7e=a24_0x20b4,_0x104f95=_0x18c848();while(!![]){try{const _0x4b42a8=-parseInt(_0x217c7e(0xd7))/0x1+-parseInt(_0x217c7e(0xa0))/0x2*(-parseInt(_0x217c7e(0xbe))/0x3)+parseInt(_0x217c7e(0xcc))/0x4+parseInt(_0x217c7e(0xab))/0x5+parseInt(_0x217c7e(0xda))/0x6+parseInt(_0x217c7e(0xa9))/0x7+-parseInt(_0x217c7e(0xdc))/0x8;if(_0x4b42a8===_0x580daf)break;else _0x104f95['push'](_0x104f95['shift']());}catch(_0x1162eb){_0x104f95['push'](_0x104f95['shift']());}}}(a24_0x3b5c,0xe6059));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':a24_0x18b4ca(0xaf),'type':a24_0x18b4ca(0xb1),'description':'App\x20code\x20for\x20the\x20project'},{'name':a24_0x18b4ca(0xac),'type':a24_0x18b4ca(0xb1),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a24_0x18b4ca(0xac)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a24_0x18b4ca(0xc1),'type':a24_0x18b4ca(0xbf),'description':a24_0x18b4ca(0xb2)+PRODUCT_CONFIG[a24_0x18b4ca(0xde)]+')\x20instead\x20of\x20project','default':![]},{'name':a24_0x18b4ca(0xc3),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a24_0x18b4ca(0xc6),'type':'string','description':a24_0x18b4ca(0xd1),'required':!![]},{'name':'appcode','type':a24_0x18b4ca(0xb1),'description':a24_0x18b4ca(0xb3)},{'name':a24_0x18b4ca(0xac),'type':a24_0x18b4ca(0xb1),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a24_0x18b4ca(0xc1),'type':a24_0x18b4ca(0xbf),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a24_0x18b4ca(0xde)]+a24_0x18b4ca(0xa4),'default':![]},{'name':a24_0x18b4ca(0xc3),'type':a24_0x18b4ca(0xbf),'description':a24_0x18b4ca(0xb7),'default':![]}];export async function runInit(_0x2a21b5){const _0x113032=a24_0x18b4ca,_0x46be61=isNonInteractiveMode(_0x2a21b5),_0x454459=_0x2a21b5[_0x113032(0xc1)]?_0x113032(0xc1):_0x113032(0xb9),_0x58427f=resolveWriteConfigPath(_0x454459);try{_0x46be61?await runNonInteractive(_0x2a21b5,_0x58427f):await runInteractive(_0x2a21b5,_0x58427f);}catch(_0x4c2a3e){if(_0x4c2a3e instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x4c2a3e;}}export async function runInitImport(_0x2fef1b){const _0x8eff76=a24_0x18b4ca,_0x322611=_0x2fef1b['global']?_0x8eff76(0xc1):'project',_0x2e6e87=resolveWriteConfigPath(_0x322611);await runFromImport(_0x2fef1b,_0x2e6e87);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x405f79,_0x480207){const _0x5180d9=a24_0x18b4ca,_0x4739d4=resolveFilePath(_0x405f79[_0x5180d9(0xc6)]);if(!existsSync(_0x4739d4))throw CliErrors[_0x5180d9(0xbd)](_0x5180d9(0xa3)+_0x4739d4);const _0x1873cf=readSourceFile(_0x4739d4),_0x597345=convertToRuntimeConfig(_0x1873cf);_0x405f79[_0x5180d9(0xaf)]&&(_0x597345[_0x5180d9(0xaf)]=String(_0x405f79[_0x5180d9(0xaf)]));_0x405f79[_0x5180d9(0xac)]&&(_0x597345[_0x5180d9(0xac)]=resolveInitEnv(_0x405f79));if(!_0x597345[_0x5180d9(0xaf)])throw CliErrors[_0x5180d9(0xbd)](_0x5180d9(0xcf),_0x5180d9(0xd6));await writeInitConfig(_0x480207,_0x597345,_0x405f79),console[_0x5180d9(0xae)](_0x5180d9(0xd5)+_0x4739d4),console[_0x5180d9(0xae)]('\x20\x20config:\x20\x20'+_0x480207),console['log'](_0x5180d9(0xad)+_0x597345[_0x5180d9(0xaf)]);if(_0x597345[_0x5180d9(0xb4)])console[_0x5180d9(0xae)](_0x5180d9(0xba)+_0x597345[_0x5180d9(0xb4)]);}function convertToRuntimeConfig(_0x496c2a){const _0x28ed6f=a24_0x18b4ca;if(_0x496c2a[_0x28ed6f(0xd3)]&&typeof _0x496c2a[_0x28ed6f(0xd3)]==='object')throw CliErrors[_0x28ed6f(0xbd)](_0x28ed6f(0xdb),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x160c5e={};for(const _0x914184 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x496c2a[_0x914184]!==undefined&&(_0x160c5e[_0x914184]=_0x496c2a[_0x914184]);}return!_0x160c5e['riskLevel']&&(_0x160c5e['riskLevel']=DEFAULT_CONFIG_VALUES['riskLevel']),_0x160c5e;}async function runNonInteractive(_0x43a5fd,_0x129946){const _0x3876cb=a24_0x18b4ca,_0x420db0=_0x43a5fd[_0x3876cb(0xaf)];if(!_0x420db0)throw CliErrors[_0x3876cb(0xbc)](_0x3876cb(0xaf),_0x3876cb(0xbb)+CLI_BIN_NAME+_0x3876cb(0xca));const _0x4437c9=resolveInitEnv(_0x43a5fd);await writeInitConfig(_0x129946,{'appcode':_0x420db0,'env':_0x4437c9},_0x43a5fd),console[_0x3876cb(0xae)](_0x3876cb(0xcb)+_0x129946),console['log'](_0x3876cb(0xad)+_0x420db0),console[_0x3876cb(0xae)](_0x3876cb(0xa7)+_0x4437c9);}async function runInteractive(_0x45e569,_0x3b2182){const _0x55f0d3=a24_0x18b4ca,_0x20cb14=loadExisting(_0x3b2182),_0xa48eba=typeof _0x20cb14?.[_0x55f0d3(0xaf)]==='string'?_0x20cb14[_0x55f0d3(0xaf)]:'',_0x4d8157=resolveInitEnv(_0x45e569);console[_0x55f0d3(0xae)](CLI_BIN_NAME+_0x55f0d3(0xc7)+PRODUCT_CONFIG[_0x55f0d3(0xde)]+'\x0a');if(existsSync(_0x3b2182)&&!_0x45e569[_0x55f0d3(0xc3)]){const _0x907da9=await promptYesNo(_0x55f0d3(0xb5)+_0x3b2182+_0x55f0d3(0xc9),![]);if(!_0x907da9){console[_0x55f0d3(0xae)](_0x55f0d3(0x9f));return;}}const _0x58a2a6=typeof _0x45e569[_0x55f0d3(0xaf)]===_0x55f0d3(0xb1)?_0x45e569['appcode'][_0x55f0d3(0xc5)]():'';let _0x1db2a6=_0x58a2a6;!_0x1db2a6&&(_0x1db2a6=await promptInput(_0x55f0d3(0xc0),_0xa48eba));if(!_0x1db2a6[_0x55f0d3(0xc5)]())throw CliErrors[_0x55f0d3(0xbd)](_0x55f0d3(0xc4));await writeInitConfig(_0x3b2182,{'appcode':_0x1db2a6[_0x55f0d3(0xc5)](),'env':_0x4d8157},_0x45e569),console['log']('\x0aInitialized\x20'+_0x3b2182),console['log'](_0x55f0d3(0xad)+_0x1db2a6[_0x55f0d3(0xc5)]()),console[_0x55f0d3(0xae)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x4d8157);}async function writeInitConfig(_0x4a2bf0,_0x4a1e38,_0x3645e2){const _0x391338=a24_0x18b4ca;let _0x2311ec={};existsSync(_0x4a2bf0)&&!_0x3645e2[_0x391338(0xc3)]&&(_0x2311ec=readConfigFile(_0x4a2bf0));for(const [_0x151447,_0x2f8c42]of Object[_0x391338(0xa2)](_0x4a1e38)){_0x2f8c42!==undefined&&(_0x2311ec[_0x151447]=_0x2f8c42);}if(_0x2311ec['app'])delete _0x2311ec[_0x391338(0xa5)];writeConfigFile(_0x4a2bf0,_0x2311ec);}class AbortPrompt extends Error{constructor(){const _0x27fc52=a24_0x18b4ca;super('User\x20aborted\x20prompt'),this[_0x27fc52(0xb8)]=_0x27fc52(0xdf);}}function createSafeRl(){const _0x3378b1=a24_0x18b4ca,_0x911ee5=createInterface({'input':process['stdin'],'output':process[_0x3378b1(0xd8)]});let _0x24743b;const _0x21f649=new Promise((_0x35388c,_0x3d7f2c)=>{const _0xaa9027=_0x3378b1;_0x24743b=()=>{const _0x556fee=a24_0x20b4;_0x24743b&&(_0x911ee5[_0x556fee(0xb6)](_0x556fee(0xd0),_0x24743b),_0x24743b=undefined);try{_0x911ee5[_0x556fee(0xb0)]();}catch{}_0x3d7f2c(new AbortPrompt());},_0x911ee5[_0xaa9027(0xc8)](_0xaa9027(0xd0),_0x24743b);}),_0x307d2b=()=>{const _0x58444a=_0x3378b1;_0x24743b&&(_0x911ee5[_0x58444a(0xb6)](_0x58444a(0xd0),_0x24743b),_0x24743b=undefined);try{_0x911ee5[_0x58444a(0xb0)]();}catch{}};return{'rl':_0x911ee5,'abortPromise':_0x21f649,'disposeSuccess':_0x307d2b};}async function promptInput(_0x40d98c,_0x224219){const _0x3ab488=a24_0x18b4ca,{rl:_0x3a2809,abortPromise:_0x47e8e8,disposeSuccess:_0x5bfa9c}=createSafeRl(),_0x18ae13=new Promise(_0x551661=>{const _0x3e2e67=a24_0x20b4,_0x3ccf2a=_0x224219?'\x20\x20'+_0x40d98c+'\x20('+_0x224219+'):\x20':'\x20\x20'+_0x40d98c+':\x20';_0x3a2809[_0x3e2e67(0xdd)](_0x3ccf2a,_0x47975a=>{const _0x338fc5=_0x3e2e67;_0x5bfa9c(),_0x551661(_0x47975a[_0x338fc5(0xc5)]()||_0x224219);});});return Promise[_0x3ab488(0xc2)]([_0x18ae13,_0x47e8e8]);}function a24_0x3b5c(){const _0x46d87d=['apps','Invalid\x20env\x20\x22','Imported\x20from\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','998449ARqwJu','stdout','utf8','9303048gCWeAJ','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','34145744kGIkhI','question','newConfigFileName','AbortPrompt','Aborted.','2XFqfID','toLowerCase','entries','Source\x20file\x20not\x20found:\x20',')\x20instead\x20of\x20project','app','[y/N]','\x20\x20env:\x20\x20\x20\x20\x20','includes','10431064iBVCov','parse','6514075ReJMjl','env','\x20\x20appcode:\x20','log','appcode','close','string','Write\x20to\x20global\x20(~/','Override\x20imported\x20default\x20appcode','defaultApp','File\x20','removeListener','Skip\x20confirmation\x20when\x20overwriting','name','project','\x20\x20default:\x20','Usage:\x20','flagMissing','validation','2273073ieiCWE','boolean','App\x20code','global','race','yes','App\x20code\x20cannot\x20be\x20empty.','trim','file','\x20init\x20—\x20Create\x20','once','\x20already\x20exists.\x20Overwrite?','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','Initialized\x20','4430680fbqjaH','message','Failed\x20to\x20parse\x20source\x20file:\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','SIGINT','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x22.\x20Allowed:\x20'];a24_0x3b5c=function(){return _0x46d87d;};return a24_0x3b5c();}async function promptYesNo(_0x22e7d3,_0xa88ac3){const _0x9df08a=a24_0x18b4ca,{rl:_0x2b4f2d,abortPromise:_0x116eb4,disposeSuccess:_0x2fb46c}=createSafeRl(),_0x327888=new Promise(_0x2854be=>{const _0x375e6e=a24_0x20b4,_0xf0dff1=_0xa88ac3?'[Y/n]':_0x375e6e(0xa6);_0x2b4f2d['question']('\x20\x20'+_0x22e7d3+'\x20'+_0xf0dff1+':\x20',_0x23aef9=>{const _0x1b96ba=_0x375e6e;_0x2fb46c();const _0x3afbae=_0x23aef9[_0x1b96ba(0xc5)]()[_0x1b96ba(0xa1)]();if(_0x3afbae==='y'||_0x3afbae===_0x1b96ba(0xc3))_0x2854be(!![]);else{if(_0x3afbae==='n'||_0x3afbae==='no')_0x2854be(![]);else _0x2854be(_0xa88ac3);}});});return Promise[_0x9df08a(0xc2)]([_0x327888,_0x116eb4]);}function loadExisting(_0x5b8567){if(!existsSync(_0x5b8567))return null;return readConfigFile(_0x5b8567);}function resolveFilePath(_0x5a2573){return isAbsolute(_0x5a2573)?_0x5a2573:resolve(process['cwd'](),_0x5a2573);}function a24_0x20b4(_0x4c07db,_0x125c32){_0x4c07db=_0x4c07db-0x9f;const _0x3b5c74=a24_0x3b5c();let _0x20b420=_0x3b5c74[_0x4c07db];return _0x20b420;}function readSourceFile(_0x3d1c5a){const _0x270e20=a24_0x18b4ca;try{const _0x1df1c6=readFileSync(_0x3d1c5a,{'encoding':_0x270e20(0xd9)});return JSON[_0x270e20(0xaa)](_0x1df1c6);}catch(_0xd5fe86){throw CliErrors[_0x270e20(0xbd)](_0x270e20(0xce)+_0xd5fe86[_0x270e20(0xcd)]);}}function resolveInitEnv(_0x21e546){const _0x18a3c3=a24_0x18b4ca,_0x6be098=_0x21e546[_0x18a3c3(0xac)];if(_0x6be098===undefined||_0x6be098==='')return DEFAULT_CONFIG_VALUES[_0x18a3c3(0xac)];if(!RUNTIME_ENV_VALUES[_0x18a3c3(0xa8)](_0x6be098))throw CliErrors[_0x18a3c3(0xbd)](_0x18a3c3(0xd4)+_0x6be098+_0x18a3c3(0xd2)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x6be098;}
@@ -1 +1 @@
1
- const a25_0x200b4a=a25_0x498d;(function(_0x564262,_0x1c8d51){const _0x3aa647=a25_0x498d,_0x4acc70=_0x564262();while(!![]){try{const _0x27df44=parseInt(_0x3aa647(0x201))/0x1*(parseInt(_0x3aa647(0x1f4))/0x2)+parseInt(_0x3aa647(0x211))/0x3+parseInt(_0x3aa647(0x1f2))/0x4*(parseInt(_0x3aa647(0x1f9))/0x5)+parseInt(_0x3aa647(0x217))/0x6+-parseInt(_0x3aa647(0x219))/0x7*(parseInt(_0x3aa647(0x20a))/0x8)+-parseInt(_0x3aa647(0x1e0))/0x9*(parseInt(_0x3aa647(0x21d))/0xa)+-parseInt(_0x3aa647(0x1e8))/0xb;if(_0x27df44===_0x1c8d51)break;else _0x4acc70['push'](_0x4acc70['shift']());}catch(_0x5ea9f4){_0x4acc70['push'](_0x4acc70['shift']());}}}(a25_0x8490,0x78c3d));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':'string','required':!![],'description':a25_0x200b4a(0x212)},FILE_FLAG={'name':a25_0x200b4a(0x1e4),'type':a25_0x200b4a(0x1eb),'required':!![],'description':a25_0x200b4a(0x1f0)},QUERY_FLAG={'name':a25_0x200b4a(0x210),'type':a25_0x200b4a(0x1eb),'required':!![],'description':a25_0x200b4a(0x1fc)},TOPK_FLAG={'name':a25_0x200b4a(0x1ec),'type':a25_0x200b4a(0x1e3),'description':a25_0x200b4a(0x224)};function readKnowledgeFile(_0x4231b2){const _0x5d32c3=a25_0x200b4a;if(!_0x4231b2)throw CliErrors[_0x5d32c3(0x1ef)](_0x5d32c3(0x209));if(!existsSync(_0x4231b2))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x4231b2);if(!statSync(_0x4231b2)[_0x5d32c3(0x1e7)]())throw CliErrors['validation'](_0x5d32c3(0x21c)+_0x4231b2);return readFileSync(_0x4231b2,_0x5d32c3(0x21f));}function a25_0x498d(_0x187b23,_0x5d1bd0){_0x187b23=_0x187b23-0x1e0;const _0x8490ef=a25_0x8490();let _0x498da9=_0x8490ef[_0x187b23];return _0x498da9;}function summarizePersonalItem(_0x1e5774){const _0x2ae40d=a25_0x200b4a;return{'id':_0x1e5774['id'],'title':_0x1e5774[_0x2ae40d(0x204)],'version':_0x1e5774[_0x2ae40d(0x1e1)],'ragStatus':_0x1e5774[_0x2ae40d(0x207)],'ragErrorMessage':_0x1e5774['ragErrorMessage'],'updateTime':_0x1e5774['updateTime']};}function detailPersonalItem(_0x5a4352){const _0x30d109=a25_0x200b4a;return{'id':_0x5a4352['id'],'appCode':_0x5a4352[_0x30d109(0x214)],'scope':_0x5a4352[_0x30d109(0x21a)],'userId':_0x5a4352[_0x30d109(0x206)],'title':_0x5a4352[_0x30d109(0x204)],'content':_0x5a4352[_0x30d109(0x200)]??'','version':_0x5a4352[_0x30d109(0x1e1)],'ragStatus':_0x5a4352[_0x30d109(0x207)],'ragErrorMessage':_0x5a4352['ragErrorMessage'],'createTime':_0x5a4352[_0x30d109(0x1fe)],'updateTime':_0x5a4352['updateTime']};}function summarizeSearchHit(_0x11b269){const _0x5a8555=a25_0x200b4a;return{'scope':_0x11b269['scope'],'docId':_0x11b269[_0x5a8555(0x1ee)],'score':_0x11b269[_0x5a8555(0x1ea)],'weightedScore':_0x11b269[_0x5a8555(0x1fb)],'content':_0x11b269[_0x5a8555(0x200)],'metadata':_0x11b269[_0x5a8555(0x222)]};}function readTopK(_0x4c6895){const _0x4833df=a25_0x200b4a,_0x3b4bee=_0x4c6895[_0x4833df(0x223)](_0x4833df(0x1ec));if(_0x3b4bee===undefined||_0x3b4bee===null||_0x3b4bee==='')return undefined;const _0x230456=_0x4c6895[_0x4833df(0x1f3)]('topk');if(!Number['isFinite'](_0x230456)||_0x230456<0x1)throw CliErrors[_0x4833df(0x1ef)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x230456;}function a25_0x8490(){const _0xc01216=['410KmqeDl','build','utf8','write','Personal\x20knowledge-base\x20entry\x20ID','metadata','flag','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','154863cQvWbW','version','str','number','file','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','search','isFile','11691966NpHdNx','read','score','string','topk','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','docId','validation','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','/client/knowledge-base/personal/create','3880204uUnoYF','num','40uisGZH','/update','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','/client/knowledge-base/personal/','bool','5hEDAjU','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','weightedScore','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','Search\x20query\x20is\x20required.','createTime','trim','content','40168tclhRl','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','verbose','title','map','userId','ragStatus','length','File\x20path\x20is\x20required.','248PkgftU','body','Created\x20KB\x20entry\x20','list','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Updated\x20KB\x20entry\x20','query','1870056atncvz','Personal\x20knowledge-base\x20entry\x20title','description','appCode','create','POST','2458650VzRaqr','detail','122724QwaFrN','scope','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','File\x20is\x20not\x20a\x20regular\x20file:\x20'];a25_0x8490=function(){return _0xc01216;};return a25_0x8490();}const kbList={'service':'kb','command':a25_0x200b4a(0x20d),'description':a25_0x200b4a(0x202),'risk':a25_0x200b4a(0x1e9),'flags':[VERBOSE_FLAG],async 'execute'(_0x2cb5c8){const _0x48dc57=a25_0x200b4a,_0x3707e7=await listPersonalKnowledgeBaseItems(_0x2cb5c8['appCode']);if(_0x2cb5c8[_0x48dc57(0x1f8)](_0x48dc57(0x203)))return{'ok':!![],'data':{'total':_0x3707e7[_0x48dc57(0x208)],'items':_0x3707e7}};return{'ok':!![],'data':{'total':_0x3707e7[_0x48dc57(0x208)],'items':_0x3707e7['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a25_0x200b4a(0x218),'description':a25_0x200b4a(0x1fa),'risk':a25_0x200b4a(0x1e9),'flags':[{...ID_FLAG,'description':a25_0x200b4a(0x221)}],async 'execute'(_0x5f4e5f){const _0x1ce2d8=a25_0x200b4a,_0x468ab6=await getPersonalKnowledgeBaseItem(_0x5f4e5f[_0x1ce2d8(0x1f3)]('id'),_0x5f4e5f[_0x1ce2d8(0x214)]);return{'ok':!![],'data':detailPersonalItem(_0x468ab6)};}},kbCreate={'service':'kb','command':a25_0x200b4a(0x215),'description':a25_0x200b4a(0x20e),'risk':'write','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x131c5f){const _0x444c2b=a25_0x200b4a,_0x540454=_0x131c5f[_0x444c2b(0x1e2)](_0x444c2b(0x204)),_0x554fd2=readKnowledgeFile(_0x131c5f['str'](_0x444c2b(0x1e4))),_0x444077=await createPersonalKnowledgeBaseItem(_0x131c5f['appCode'],{'title':_0x540454,'content':_0x554fd2});return{'ok':!![],'data':summarizePersonalItem(_0x444077),'message':_0x444c2b(0x20c)+_0x444077['id']+'\x20('+_0x444077['title']+')'};},async 'dryRun'(_0x3d51ef){const _0x4e8b12=a25_0x200b4a,_0x4ef0b8=_0x3d51ef[_0x4e8b12(0x1e2)](_0x4e8b12(0x204)),_0xb0788f=readKnowledgeFile(_0x3d51ef[_0x4e8b12(0x1e2)](_0x4e8b12(0x1e4)));return dryRun(_0x4e8b12(0x216),_0x4e8b12(0x1f1))[_0x4e8b12(0x20b)]({'appCode':_0x3d51ef[_0x4e8b12(0x214)],'title':_0x4ef0b8,'content':_0xb0788f})[_0x4e8b12(0x213)](_0x4e8b12(0x1e5)+_0x4ef0b8+'\x22')[_0x4e8b12(0x21e)]();}},kbUpdate={'service':'kb','command':'update','description':a25_0x200b4a(0x1f6),'risk':a25_0x200b4a(0x220),'flags':[{...ID_FLAG,'description':a25_0x200b4a(0x221)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x24e2bc){const _0x273070=a25_0x200b4a,_0x16a0a2=_0x24e2bc[_0x273070(0x1f3)]('id'),_0x31fe8a=readKnowledgeFile(_0x24e2bc[_0x273070(0x1e2)](_0x273070(0x1e4))),_0x2c8f51=_0x24e2bc['str'](_0x273070(0x204))||(await getPersonalKnowledgeBaseItem(_0x16a0a2,_0x24e2bc[_0x273070(0x214)]))[_0x273070(0x204)],_0x664426=await updatePersonalKnowledgeBaseItem(_0x16a0a2,_0x24e2bc[_0x273070(0x214)],{'title':_0x2c8f51,'content':_0x31fe8a});return{'ok':!![],'data':summarizePersonalItem(_0x664426),'message':_0x273070(0x20f)+_0x664426['id']+'\x20('+_0x664426['title']+')'};},async 'dryRun'(_0x142999){const _0x16d9f1=a25_0x200b4a,_0x15d13f=_0x142999[_0x16d9f1(0x1f3)]('id'),_0x24a552=readKnowledgeFile(_0x142999[_0x16d9f1(0x1e2)](_0x16d9f1(0x1e4))),_0x5cb748=_0x142999[_0x16d9f1(0x1e2)]('title')||(await getPersonalKnowledgeBaseItem(_0x15d13f,_0x142999[_0x16d9f1(0x214)]))['title'];return dryRun(_0x16d9f1(0x216),_0x16d9f1(0x1f7)+_0x15d13f+_0x16d9f1(0x1f5))['body']({'appCode':_0x142999[_0x16d9f1(0x214)],'title':_0x5cb748,'content':_0x24a552})[_0x16d9f1(0x213)](_0x16d9f1(0x21b)+_0x15d13f)['build']();}},kbSearch={'service':'kb','command':a25_0x200b4a(0x1e6),'description':a25_0x200b4a(0x1ed),'risk':a25_0x200b4a(0x1e9),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x854e76){const _0x2f6dfd=a25_0x200b4a;if(!_0x854e76[_0x2f6dfd(0x1e2)](_0x2f6dfd(0x210))[_0x2f6dfd(0x1ff)]())throw CliErrors[_0x2f6dfd(0x1ef)](_0x2f6dfd(0x1fd));readTopK(_0x854e76);},async 'execute'(_0xe2c9e2){const _0x48497c=a25_0x200b4a,_0x179294=_0xe2c9e2[_0x48497c(0x1e2)](_0x48497c(0x210))[_0x48497c(0x1ff)](),_0x263028=readTopK(_0xe2c9e2),_0x1ed2b4=await searchKnowledgeBase(_0xe2c9e2['appCode'],{'query':_0x179294,'topK':_0x263028});return{'ok':!![],'data':{'total':_0x1ed2b4[_0x48497c(0x208)],'hits':_0x1ed2b4[_0x48497c(0x205)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a25_0x5a53eb=a25_0x5507;(function(_0x223ac7,_0x5d38f5){const _0x5cc438=a25_0x5507,_0x5304c3=_0x223ac7();while(!![]){try{const _0x133274=-parseInt(_0x5cc438(0x113))/0x1+parseInt(_0x5cc438(0xf1))/0x2*(-parseInt(_0x5cc438(0x11d))/0x3)+parseInt(_0x5cc438(0xf0))/0x4*(-parseInt(_0x5cc438(0xfa))/0x5)+parseInt(_0x5cc438(0xee))/0x6+parseInt(_0x5cc438(0x110))/0x7+-parseInt(_0x5cc438(0x102))/0x8+-parseInt(_0x5cc438(0x118))/0x9*(-parseInt(_0x5cc438(0xe8))/0xa);if(_0x133274===_0x5d38f5)break;else _0x5304c3['push'](_0x5304c3['shift']());}catch(_0xf79ce2){_0x5304c3['push'](_0x5304c3['shift']());}}}(a25_0x31cc,0x6c932));import{existsSync,readFileSync,statSync}from'node:fs';function a25_0x5507(_0x5da177,_0x7bdfea){_0x5da177=_0x5da177-0xe5;const _0x31ccc0=a25_0x31cc();let _0x550730=_0x31ccc0[_0x5da177];return _0x550730;}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a25_0x31cc(){const _0x36828c=['docId','/client/knowledge-base/personal/','write','string','read','5913648xJnxfU','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','title','--topk\x20must\x20be\x20a\x20positive\x20number.','File\x20path\x20is\x20required.','isFinite','appCode','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Personal\x20knowledge-base\x20entry\x20ID','query','list','File\x20not\x20found:\x20','verbose','4931941HLTnrM','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','userId','32047QwlyQK','topk','str','Updated\x20KB\x20entry\x20','create','70542VTRwNI','ragStatus','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','body','scope','9zIwNUl','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','validation','Personal\x20knowledge-base\x20entry\x20title','weightedScore','metadata','ragErrorMessage','version','detail','content','1340lYQGbg','update','Created\x20KB\x20entry\x20','map','POST','number','2230968mwNVcZ','utf8','859756YWKoAI','463846CKuWjB','bool','file','length','/update','num','score','build','description','5zKhLqs','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id'];a25_0x31cc=function(){return _0x36828c;};return a25_0x31cc();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a25_0x5a53eb(0x105),'type':a25_0x5a53eb(0x100),'required':!![],'description':a25_0x5a53eb(0x120)},FILE_FLAG={'name':'file','type':'string','required':!![],'description':a25_0x5a53eb(0x10a)},QUERY_FLAG={'name':a25_0x5a53eb(0x10c),'type':a25_0x5a53eb(0x100),'required':!![],'description':a25_0x5a53eb(0x11a)},TOPK_FLAG={'name':a25_0x5a53eb(0x114),'type':a25_0x5a53eb(0xed),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x39ddec){const _0x5e7296=a25_0x5a53eb;if(!_0x39ddec)throw CliErrors['validation'](_0x5e7296(0x107));if(!existsSync(_0x39ddec))throw CliErrors[_0x5e7296(0x11f)](_0x5e7296(0x10e)+_0x39ddec);if(!statSync(_0x39ddec)['isFile']())throw CliErrors[_0x5e7296(0x11f)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x39ddec);return readFileSync(_0x39ddec,_0x5e7296(0xef));}function summarizePersonalItem(_0x16f058){const _0x341cbd=a25_0x5a53eb;return{'id':_0x16f058['id'],'title':_0x16f058[_0x341cbd(0x105)],'version':_0x16f058[_0x341cbd(0xe5)],'ragStatus':_0x16f058[_0x341cbd(0x119)],'ragErrorMessage':_0x16f058['ragErrorMessage'],'updateTime':_0x16f058['updateTime']};}function detailPersonalItem(_0x1478bc){const _0x3c345d=a25_0x5a53eb;return{'id':_0x1478bc['id'],'appCode':_0x1478bc[_0x3c345d(0x109)],'scope':_0x1478bc[_0x3c345d(0x11c)],'userId':_0x1478bc[_0x3c345d(0x112)],'title':_0x1478bc[_0x3c345d(0x105)],'content':_0x1478bc[_0x3c345d(0xe7)]??'','version':_0x1478bc[_0x3c345d(0xe5)],'ragStatus':_0x1478bc['ragStatus'],'ragErrorMessage':_0x1478bc[_0x3c345d(0x123)],'createTime':_0x1478bc['createTime'],'updateTime':_0x1478bc['updateTime']};}function summarizeSearchHit(_0x434eb6){const _0x15b893=a25_0x5a53eb;return{'scope':_0x434eb6[_0x15b893(0x11c)],'docId':_0x434eb6[_0x15b893(0xfd)],'score':_0x434eb6[_0x15b893(0xf7)],'weightedScore':_0x434eb6[_0x15b893(0x121)],'content':_0x434eb6['content'],'metadata':_0x434eb6[_0x15b893(0x122)]};}function readTopK(_0x32b932){const _0x39c176=a25_0x5a53eb,_0x2da464=_0x32b932['flag']('topk');if(_0x2da464===undefined||_0x2da464===null||_0x2da464==='')return undefined;const _0x334eae=_0x32b932[_0x39c176(0xf6)]('topk');if(!Number[_0x39c176(0x108)](_0x334eae)||_0x334eae<0x1)throw CliErrors['validation'](_0x39c176(0x106));return _0x334eae;}const kbList={'service':'kb','command':a25_0x5a53eb(0x10d),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a25_0x5a53eb(0x101),'flags':[VERBOSE_FLAG],async 'execute'(_0x4a3d72){const _0x221c79=a25_0x5a53eb,_0x3d59aa=await listPersonalKnowledgeBaseItems(_0x4a3d72[_0x221c79(0x109)]);if(_0x4a3d72[_0x221c79(0xf2)](_0x221c79(0x10f)))return{'ok':!![],'data':{'total':_0x3d59aa['length'],'items':_0x3d59aa}};return{'ok':!![],'data':{'total':_0x3d59aa[_0x221c79(0xf4)],'items':_0x3d59aa['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a25_0x5a53eb(0xe6),'description':a25_0x5a53eb(0xfc),'risk':a25_0x5a53eb(0x101),'flags':[{...ID_FLAG,'description':a25_0x5a53eb(0x10b)}],async 'execute'(_0x1325db){const _0x55a9d6=a25_0x5a53eb,_0x219bbc=await getPersonalKnowledgeBaseItem(_0x1325db['num']('id'),_0x1325db[_0x55a9d6(0x109)]);return{'ok':!![],'data':detailPersonalItem(_0x219bbc)};}},kbCreate={'service':'kb','command':a25_0x5a53eb(0x117),'description':a25_0x5a53eb(0x104),'risk':a25_0x5a53eb(0xff),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0xb6f99c){const _0x5a520e=a25_0x5a53eb,_0x3e751b=_0xb6f99c[_0x5a520e(0x115)]('title'),_0x2254d7=readKnowledgeFile(_0xb6f99c['str']('file')),_0x411a0d=await createPersonalKnowledgeBaseItem(_0xb6f99c[_0x5a520e(0x109)],{'title':_0x3e751b,'content':_0x2254d7});return{'ok':!![],'data':summarizePersonalItem(_0x411a0d),'message':_0x5a520e(0xea)+_0x411a0d['id']+'\x20('+_0x411a0d[_0x5a520e(0x105)]+')'};},async 'dryRun'(_0x46ce9b){const _0x2c307f=a25_0x5a53eb,_0x469ea7=_0x46ce9b[_0x2c307f(0x115)](_0x2c307f(0x105)),_0x59789a=readKnowledgeFile(_0x46ce9b[_0x2c307f(0x115)](_0x2c307f(0xf3)));return dryRun('POST','/client/knowledge-base/personal/create')[_0x2c307f(0x11b)]({'appCode':_0x46ce9b[_0x2c307f(0x109)],'title':_0x469ea7,'content':_0x59789a})[_0x2c307f(0xf9)](_0x2c307f(0xfb)+_0x469ea7+'\x22')['build']();}},kbUpdate={'service':'kb','command':a25_0x5a53eb(0xe9),'description':a25_0x5a53eb(0x11e),'risk':a25_0x5a53eb(0xff),'flags':[{...ID_FLAG,'description':a25_0x5a53eb(0x10b)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x2fdfde){const _0x301160=a25_0x5a53eb,_0x19d53c=_0x2fdfde[_0x301160(0xf6)]('id'),_0x14ad9a=readKnowledgeFile(_0x2fdfde['str'](_0x301160(0xf3))),_0x5a3fe1=_0x2fdfde['str'](_0x301160(0x105))||(await getPersonalKnowledgeBaseItem(_0x19d53c,_0x2fdfde[_0x301160(0x109)]))[_0x301160(0x105)],_0x220291=await updatePersonalKnowledgeBaseItem(_0x19d53c,_0x2fdfde['appCode'],{'title':_0x5a3fe1,'content':_0x14ad9a});return{'ok':!![],'data':summarizePersonalItem(_0x220291),'message':_0x301160(0x116)+_0x220291['id']+'\x20('+_0x220291[_0x301160(0x105)]+')'};},async 'dryRun'(_0x48ceef){const _0x11a5c0=a25_0x5a53eb,_0x30b0dd=_0x48ceef[_0x11a5c0(0xf6)]('id'),_0xd42acf=readKnowledgeFile(_0x48ceef['str'](_0x11a5c0(0xf3))),_0x2a198b=_0x48ceef['str'](_0x11a5c0(0x105))||(await getPersonalKnowledgeBaseItem(_0x30b0dd,_0x48ceef[_0x11a5c0(0x109)]))[_0x11a5c0(0x105)];return dryRun(_0x11a5c0(0xec),_0x11a5c0(0xfe)+_0x30b0dd+_0x11a5c0(0xf5))[_0x11a5c0(0x11b)]({'appCode':_0x48ceef[_0x11a5c0(0x109)],'title':_0x2a198b,'content':_0xd42acf})[_0x11a5c0(0xf9)](_0x11a5c0(0x103)+_0x30b0dd)[_0x11a5c0(0xf8)]();}},kbSearch={'service':'kb','command':'search','description':a25_0x5a53eb(0x111),'risk':a25_0x5a53eb(0x101),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x365251){const _0x36e3c3=a25_0x5a53eb;if(!_0x365251[_0x36e3c3(0x115)](_0x36e3c3(0x10c))['trim']())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x365251);},async 'execute'(_0x2ca8d7){const _0x35b8e9=a25_0x5a53eb,_0x3fc417=_0x2ca8d7[_0x35b8e9(0x115)](_0x35b8e9(0x10c))['trim'](),_0x36307c=readTopK(_0x2ca8d7),_0x547003=await searchKnowledgeBase(_0x2ca8d7[_0x35b8e9(0x109)],{'query':_0x3fc417,'topK':_0x36307c});return{'ok':!![],'data':{'total':_0x547003[_0x35b8e9(0xf4)],'hits':_0x547003[_0x35b8e9(0xeb)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a26_0x319718=a26_0x3815;function a26_0x2d14(){const _0x4ab6f0=['6qeBuje','486164nOYDET','read','show','\x20\x20\x20Details:\x20','791920tpnXsE','82932NQbbxM','*\x20Logs\x20cleared','logs','length','duration','clear','toLocaleString','success','timestamp','11722488atCGhO','warn','write','readLogs','\x20logs:\x0a','292922BCoQMR','*\x20No\x20logs\x20found','\x20\x20\x20Duration:\x20','View\x20command\x20history\x20logs','level','2360615ajgLxT','details','message','stringify','log','3413081iYopiz'];a26_0x2d14=function(){return _0x4ab6f0;};return a26_0x2d14();}(function(_0xaa04de,_0x15e256){const _0x2de9e2=a26_0x3815,_0x1dd3f0=_0xaa04de();while(!![]){try{const _0x42caf8=-parseInt(_0x2de9e2(0x120))/0x1+parseInt(_0x2de9e2(0x12c))/0x2+parseInt(_0x2de9e2(0x131))/0x3+-parseInt(_0x2de9e2(0x130))/0x4+-parseInt(_0x2de9e2(0x125))/0x5+-parseInt(_0x2de9e2(0x12b))/0x6*(parseInt(_0x2de9e2(0x12a))/0x7)+parseInt(_0x2de9e2(0x13a))/0x8;if(_0x42caf8===_0x15e256)break;else _0x1dd3f0['push'](_0x1dd3f0['shift']());}catch(_0x3270fe){_0x1dd3f0['push'](_0x1dd3f0['shift']());}}}(a26_0x2d14,0x45af5));function a26_0x3815(_0x42aac8,_0x44c59c){_0x42aac8=_0x42aac8-0x11c;const _0x2d1407=a26_0x2d14();let _0x381580=_0x2d1407[_0x42aac8];return _0x381580;}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x3cf9e1){const _0x6ea105=a26_0x3815;if(_0x3cf9e1[_0x6ea105(0x134)]===0x0){console[_0x6ea105(0x129)](_0x6ea105(0x121));return;}console[_0x6ea105(0x129)]('*\x20'+CLI_DISPLAY_NAME+_0x6ea105(0x11f)),_0x3cf9e1['forEach']((_0x21ffeb,_0x1993fc)=>{const _0x36ff5b=_0x6ea105,_0x7cf8a9=new Date(_0x21ffeb[_0x36ff5b(0x139)])[_0x36ff5b(0x137)]('en-US'),_0x2bf2e0=_0x21ffeb[_0x36ff5b(0x124)]===_0x36ff5b(0x138)?'√':_0x21ffeb['level']==='error'?'×':_0x21ffeb[_0x36ff5b(0x124)]===_0x36ff5b(0x11c)?'!':'i';console['log'](_0x1993fc+0x1+'.\x20'+_0x2bf2e0+'\x20['+_0x21ffeb['command']+']\x20'+_0x21ffeb[_0x36ff5b(0x127)]),console[_0x36ff5b(0x129)]('\x20\x20\x20Time:\x20'+_0x7cf8a9),_0x21ffeb[_0x36ff5b(0x135)]&&console[_0x36ff5b(0x129)](_0x36ff5b(0x122)+_0x21ffeb['duration']+'ms'),_0x21ffeb[_0x36ff5b(0x126)]&&Object['keys'](_0x21ffeb['details'])[_0x36ff5b(0x134)]>0x0&&console[_0x36ff5b(0x129)](_0x36ff5b(0x12f)+JSON[_0x36ff5b(0x128)](_0x21ffeb['details'],null,0x2)),console[_0x36ff5b(0x129)]('');});}export const logsDefinitions=[{'service':a26_0x319718(0x133),'command':a26_0x319718(0x12e),'description':a26_0x319718(0x123),'risk':a26_0x319718(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2a5a1e){const _0x34c1f2=a26_0x319718;return printLogs(logger[_0x34c1f2(0x11e)]()),{'ok':!![]};}},{'service':a26_0x319718(0x133),'command':a26_0x319718(0x136),'description':'Clear\x20command\x20history\x20logs','risk':a26_0x319718(0x11d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1ddea1){const _0x5baecf=a26_0x319718;return logger['clearLogs'](),console[_0x5baecf(0x129)](_0x5baecf(0x132)),{'ok':!![]};}}];
1
+ const a26_0x52f35c=a26_0x5ef9;(function(_0x1afed8,_0x31f330){const _0x510765=a26_0x5ef9,_0x96ecf9=_0x1afed8();while(!![]){try{const _0x494c60=parseInt(_0x510765(0x7b))/0x1+-parseInt(_0x510765(0x8d))/0x2*(parseInt(_0x510765(0x8e))/0x3)+-parseInt(_0x510765(0x75))/0x4+parseInt(_0x510765(0x84))/0x5*(parseInt(_0x510765(0x83))/0x6)+-parseInt(_0x510765(0x8c))/0x7*(-parseInt(_0x510765(0x71))/0x8)+parseInt(_0x510765(0x78))/0x9*(parseInt(_0x510765(0x8f))/0xa)+parseInt(_0x510765(0x73))/0xb;if(_0x494c60===_0x31f330)break;else _0x96ecf9['push'](_0x96ecf9['shift']());}catch(_0x54d6c9){_0x96ecf9['push'](_0x96ecf9['shift']());}}}(a26_0x185d,0xe2af0));function a26_0x185d(){const _0x450601=['594ApGDFY','10PrinXp','forEach','length','\x20\x20\x20Time:\x20','timestamp','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','readLogs','1051792XQzmWJ','warn','6173244PmSpaA','error','7094780rFFJQH','*\x20No\x20logs\x20found','en-US','3598065KmaXzI','details','stringify','405163rMMPeq','clearLogs','Clear\x20command\x20history\x20logs','View\x20command\x20history\x20logs','log','*\x20Logs\x20cleared','clear','show','345174ObNRWc','5sAmIuV','duration','toLocaleString','command','level','success','logs','message','84qbJrrR','3022LwjIrm'];a26_0x185d=function(){return _0x450601;};return a26_0x185d();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a26_0x5ef9(_0x3ee805,_0x25d1fe){_0x3ee805=_0x3ee805-0x6b;const _0x185d6e=a26_0x185d();let _0x5ef91b=_0x185d6e[_0x3ee805];return _0x5ef91b;}function printLogs(_0x2faa67){const _0x4a6650=a26_0x5ef9;if(_0x2faa67['length']===0x0){console[_0x4a6650(0x7f)](_0x4a6650(0x76));return;}console[_0x4a6650(0x7f)]('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x2faa67[_0x4a6650(0x90)]((_0x58e87e,_0xf6638d)=>{const _0x546ddf=_0x4a6650,_0x3e41d7=new Date(_0x58e87e[_0x546ddf(0x6d)])[_0x546ddf(0x86)](_0x546ddf(0x77)),_0x133f26=_0x58e87e['level']===_0x546ddf(0x89)?'√':_0x58e87e[_0x546ddf(0x88)]===_0x546ddf(0x74)?'×':_0x58e87e['level']===_0x546ddf(0x72)?'!':'i';console[_0x546ddf(0x7f)](_0xf6638d+0x1+'.\x20'+_0x133f26+'\x20['+_0x58e87e[_0x546ddf(0x87)]+']\x20'+_0x58e87e[_0x546ddf(0x8b)]),console['log'](_0x546ddf(0x6c)+_0x3e41d7),_0x58e87e[_0x546ddf(0x85)]&&console[_0x546ddf(0x7f)](_0x546ddf(0x6f)+_0x58e87e[_0x546ddf(0x85)]+'ms'),_0x58e87e[_0x546ddf(0x79)]&&Object['keys'](_0x58e87e[_0x546ddf(0x79)])[_0x546ddf(0x6b)]>0x0&&console[_0x546ddf(0x7f)](_0x546ddf(0x6e)+JSON[_0x546ddf(0x7a)](_0x58e87e[_0x546ddf(0x79)],null,0x2)),console[_0x546ddf(0x7f)]('');});}export const logsDefinitions=[{'service':a26_0x52f35c(0x8a),'command':a26_0x52f35c(0x82),'description':a26_0x52f35c(0x7e),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x34ea34){const _0x10de13=a26_0x52f35c;return printLogs(logger[_0x10de13(0x70)]()),{'ok':!![]};}},{'service':'logs','command':a26_0x52f35c(0x81),'description':a26_0x52f35c(0x7d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x12f420){const _0x200ce5=a26_0x52f35c;return logger[_0x200ce5(0x7c)](),console[_0x200ce5(0x7f)](_0x200ce5(0x80)),{'ok':!![]};}}];