@lovrabet/lovrabet-cli 2.0.9-beta.1 → 2.0.9-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -1
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -2
@@ -1 +1 @@
1
- const a28_0x3aa973=a28_0x4a02;(function(_0x347550,_0x5d2456){const _0x59444a=a28_0x4a02,_0x5d8a46=_0x347550();while(!![]){try{const _0x4ffbf9=-parseInt(_0x59444a(0x97))/0x1+parseInt(_0x59444a(0x9c))/0x2*(-parseInt(_0x59444a(0x91))/0x3)+parseInt(_0x59444a(0x9b))/0x4*(parseInt(_0x59444a(0x8b))/0x5)+-parseInt(_0x59444a(0x8f))/0x6+parseInt(_0x59444a(0x95))/0x7+-parseInt(_0x59444a(0x90))/0x8*(-parseInt(_0x59444a(0x88))/0x9)+-parseInt(_0x59444a(0x87))/0xa*(-parseInt(_0x59444a(0x99))/0xb);if(_0x4ffbf9===_0x5d2456)break;else _0x5d8a46['push'](_0x5d8a46['shift']());}catch(_0x43e098){_0x5d8a46['push'](_0x5d8a46['shift']());}}}(a28_0x518b,0x8ca69));import{executeSdkSql}from'../../core/sdk-client.js';function a28_0x4a02(_0x23a6bc,_0x1871e6){_0x23a6bc=_0x23a6bc-0x86;const _0x518b1e=a28_0x518b();let _0x4a02d8=_0x518b1e[_0x23a6bc];return _0x4a02d8;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a28_0x3aa973(0x9a),'command':a28_0x3aa973(0x8a),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a28_0x3aa973(0x86),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2c4c31){const _0x4ff3a1=a28_0x3aa973,_0x523a35=parseJsonParams(_0x2c4c31[_0x4ff3a1(0x93)](_0x4ff3a1(0x92))),_0x2ae265=Date['now'](),_0x425018=await executeSdkSql(_0x2c4c31[_0x4ff3a1(0x93)](_0x4ff3a1(0x8c)),_0x523a35),_0x1c8b68=Date[_0x4ff3a1(0x8d)]()-_0x2ae265,_0x57fda3=_0x425018?.[_0x4ff3a1(0x96)]??_0x425018,_0x289224=_0x425018?.[_0x4ff3a1(0x94)]??!![];if(!_0x289224)return{'ok':![],'data':{'error':_0x425018?.['execError']||'SQL\x20execution\x20failed','elapsed':_0x1c8b68},'message':_0x4ff3a1(0x8e)};const _0x292e93=Array[_0x4ff3a1(0x98)](_0x57fda3)?_0x57fda3:[];return{'ok':!![],'data':{'rows':_0x292e93,'rowCount':_0x292e93['length'],'elapsed':_0x1c8b68},'message':_0x4ff3a1(0x9d)+_0x292e93['length']+_0x4ff3a1(0x89)+_0x1c8b68+'ms'};}};function a28_0x518b(){const _0x1adc1a=['sql','135828JEQJSl','774706sCKpsF','Returned\x20','read','40abfLrx','4816953MBFvRV','\x20row(s)\x20in\x20','exec','65uiMCJQ','sqlcode','now','SQL\x20execution\x20failed','6106656rOWAdG','16DosLhM','3QCnhZo','params','str','execSuccess','4276405YlKTzu','execResult','193708XDgYWf','isArray','143418ljuzFH'];a28_0x518b=function(){return _0x1adc1a;};return a28_0x518b();}
1
+ const a28_0x1e83ad=a28_0x32ae;(function(_0x109fc6,_0x3f33f6){const _0x2fdd67=a28_0x32ae,_0xb5579e=_0x109fc6();while(!![]){try{const _0x172d5e=parseInt(_0x2fdd67(0xad))/0x1*(parseInt(_0x2fdd67(0xa1))/0x2)+parseInt(_0x2fdd67(0xa7))/0x3+-parseInt(_0x2fdd67(0x98))/0x4+parseInt(_0x2fdd67(0x9d))/0x5*(-parseInt(_0x2fdd67(0xa0))/0x6)+-parseInt(_0x2fdd67(0x9e))/0x7+-parseInt(_0x2fdd67(0xaa))/0x8+parseInt(_0x2fdd67(0x9b))/0x9*(parseInt(_0x2fdd67(0x9c))/0xa);if(_0x172d5e===_0x3f33f6)break;else _0xb5579e['push'](_0xb5579e['shift']());}catch(_0x5e33ad){_0xb5579e['push'](_0xb5579e['shift']());}}}(a28_0x4f28,0x93ace));import{executeSdkSql}from'../../core/sdk-client.js';function a28_0x4f28(){const _0x27caf4=['SQL\x20execution\x20failed','execResult','18tOrxBE','10807360UirhNC','3621955jAFruM','978012wGhMKV','\x20row(s)\x20in\x20','6mRcVgB','420794BahGOl','str','Returned\x20','read','exec','isArray','1201749XgFeMj','now','length','5873512wMAysc','sql','execError','2tfQXFn','3118700Ukfmtx'];a28_0x4f28=function(){return _0x27caf4;};return a28_0x4f28();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a28_0x32ae(_0x4edd6d,_0x3d9c7e){_0x4edd6d=_0x4edd6d-0x98;const _0x4f2849=a28_0x4f28();let _0x32ae7f=_0x4f2849[_0x4edd6d];return _0x32ae7f;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a28_0x1e83ad(0xab),'command':a28_0x1e83ad(0xa5),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a28_0x1e83ad(0xa4),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5b684c){const _0xdd1e6d=a28_0x1e83ad,_0x544821=parseJsonParams(_0x5b684c[_0xdd1e6d(0xa2)]('params')),_0x579f96=Date['now'](),_0x51348f=await executeSdkSql(_0x5b684c[_0xdd1e6d(0xa2)]('sqlcode'),_0x544821),_0x5d15c3=Date[_0xdd1e6d(0xa8)]()-_0x579f96,_0x700b84=_0x51348f?.[_0xdd1e6d(0x9a)]??_0x51348f,_0x213e4c=_0x51348f?.['execSuccess']??!![];if(!_0x213e4c)return{'ok':![],'data':{'error':_0x51348f?.[_0xdd1e6d(0xac)]||_0xdd1e6d(0x99),'elapsed':_0x5d15c3},'message':_0xdd1e6d(0x99)};const _0x4ab601=Array[_0xdd1e6d(0xa6)](_0x700b84)?_0x700b84:[];return{'ok':!![],'data':{'rows':_0x4ab601,'rowCount':_0x4ab601[_0xdd1e6d(0xa9)],'elapsed':_0x5d15c3},'message':_0xdd1e6d(0xa3)+_0x4ab601[_0xdd1e6d(0xa9)]+_0xdd1e6d(0x9f)+_0x5d15c3+'ms'};}};
@@ -1 +1 @@
1
- function a29_0x3039(){const _0x2a2e4a=['8jPQYJs','5723886xQmkYj','129xhnsce','3185788sHwGrn','113200BdNOrB','5gqWKwL','8625199kHJtSi','10HoaGkC','1mqNIlh','12970809kWFpIf','22786392TmKIHn','39DSymXs','5881212YoFBoC'];a29_0x3039=function(){return _0x2a2e4a;};return a29_0x3039();}(function(_0x5e40c7,_0x1b7c66){const _0xc60590=a29_0x1584,_0x23de41=_0x5e40c7();while(!![]){try{const _0x6ab6bd=parseInt(_0xc60590(0x1d8))/0x1*(-parseInt(_0xc60590(0x1d3))/0x2)+parseInt(_0xc60590(0x1d2))/0x3*(-parseInt(_0xc60590(0x1d4))/0x4)+-parseInt(_0xc60590(0x1d5))/0x5*(-parseInt(_0xc60590(0x1cf))/0x6)+-parseInt(_0xc60590(0x1d1))/0x7+-parseInt(_0xc60590(0x1d0))/0x8*(parseInt(_0xc60590(0x1d9))/0x9)+parseInt(_0xc60590(0x1d7))/0xa*(-parseInt(_0xc60590(0x1d6))/0xb)+-parseInt(_0xc60590(0x1cd))/0xc*(-parseInt(_0xc60590(0x1ce))/0xd);if(_0x6ab6bd===_0x1b7c66)break;else _0x23de41['push'](_0x23de41['shift']());}catch(_0x401c70){_0x23de41['push'](_0x23de41['shift']());}}}(a29_0x3039,0xc92be));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a29_0x1584(_0x530487,_0x135168){_0x530487=_0x530487-0x1cd;const _0x303947=a29_0x3039();let _0x15846a=_0x303947[_0x530487];return _0x15846a;}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0xc60023,_0x5cd2c9){const _0x265582=a29_0x16df,_0x3004d9=_0xc60023();while(!![]){try{const _0x19eb67=parseInt(_0x265582(0xba))/0x1+parseInt(_0x265582(0xb8))/0x2*(parseInt(_0x265582(0xb7))/0x3)+-parseInt(_0x265582(0xbf))/0x4*(parseInt(_0x265582(0xbd))/0x5)+parseInt(_0x265582(0xbc))/0x6*(parseInt(_0x265582(0xb9))/0x7)+-parseInt(_0x265582(0xbe))/0x8+-parseInt(_0x265582(0xb6))/0x9+parseInt(_0x265582(0xbb))/0xa;if(_0x19eb67===_0x5cd2c9)break;else _0x3004d9['push'](_0x3004d9['shift']());}catch(_0x5a949b){_0x3004d9['push'](_0x3004d9['shift']());}}}(a29_0x3de4,0x3a73c));import{sqlDetail}from'../../commands/sql/detail.js';function a29_0x3de4(){const _0x493818=['15lvEbUz','159080FLxLyj','518008wFRcxY','3384027DQUkpV','10671DDDios','194jZVhyH','12306jdShGW','48037ErAoMy','3863860nBLVlK','834YjtfJO'];a29_0x3de4=function(){return _0x493818;};return a29_0x3de4();}function a29_0x16df(_0xe53d46,_0x6f38fc){_0xe53d46=_0xe53d46-0xb6;const _0x3de47d=a29_0x3de4();let _0x16dfd0=_0x3de47d[_0xe53d46];return _0x16dfd0;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a30_0x2b58b0=a30_0x5619;(function(_0x56244f,_0x31f1cd){const _0x51209c=a30_0x5619,_0x5ad9b3=_0x56244f();while(!![]){try{const _0x47e7ce=-parseInt(_0x51209c(0xdc))/0x1+parseInt(_0x51209c(0xf4))/0x2*(parseInt(_0x51209c(0xdd))/0x3)+-parseInt(_0x51209c(0xc3))/0x4*(parseInt(_0x51209c(0xb6))/0x5)+parseInt(_0x51209c(0xe9))/0x6+-parseInt(_0x51209c(0xd6))/0x7*(-parseInt(_0x51209c(0xba))/0x8)+-parseInt(_0x51209c(0xc0))/0x9+parseInt(_0x51209c(0xb4))/0xa*(parseInt(_0x51209c(0xe4))/0xb);if(_0x47e7ce===_0x31f1cd)break;else _0x5ad9b3['push'](_0x5ad9b3['shift']());}catch(_0x38f067){_0x5ad9b3['push'](_0x5ad9b3['shift']());}}}(a30_0x2d85,0xa7642));import{spawnSync}from'node:child_process';function a30_0x2d85(){const _0x293051=['Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20CLI\x20from\x20npm','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','9831978HaKJfW','Checking\x20npm\x20dist-tags...','status','36172yUIxYe','Updated\x20to\x20v','Update\x20','Checking\x20official\x20skill\x20package...','json','bool','string','latest','skipped','boolean','version','stdout','/-/package/','map','\x20\x20Skipped\x20skill\x20install\x20(','\x20-g\x20-y','Invalid\x20version:\x20','timeout','major','2359Xdynfb','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','nonInteractive','message','fromEntries','936926buZiNA','48WNBOTw','toString','flag','args','validation','\x20->\x20','stderr','22AlQtgy','=1).','inherit','object','write','25884KNqORX','install','skills','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','filter','/dist-tags','trim','error','source','Already\x20up\x20to\x20date\x20(v','169714wMwhMi','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','exit\x20','update','no-skills','str','beta','\x20version\x20from\x20npm.','Current\x20version:\x20','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','patch','Refresh\x20official\x20skill\x20package\x20after\x20updating','Unable\x20to\x20resolve\x20','minor','7637450ZsIydZ','cwd','125Nyjzra','Already\x20on\x20requested\x20version\x20(v','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','warn','1224aqlaQu','prerelease','log'];a30_0x2d85=function(){return _0x293051;};return a30_0x2d85();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a30_0x2b58b0(0xca),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xed),'default':![]},{'name':a30_0x2b58b0(0xac),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xd8),'default':![]},{'name':a30_0x2b58b0(0xcd),'type':a30_0x2b58b0(0xc9),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a30_0x2b58b0(0xfa),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xb8),'default':![]},{'name':a30_0x2b58b0(0xeb),'type':a30_0x2b58b0(0xcc),'description':a30_0x2b58b0(0xb1),'default':!![],'hidden':!![]}];function parseSemver(_0xc8d487){const _0x140522=_0xc8d487['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x140522)return null;return{'major':Number(_0x140522[0x1]),'minor':Number(_0x140522[0x2]),'patch':Number(_0x140522[0x3]),'prerelease':_0x140522[0x4]};}function compareSemver(_0x3ba0fb,_0x3ee4aa){const _0x414cb0=a30_0x2b58b0,_0x3f3f99=parseSemver(_0x3ba0fb),_0x3f3bd5=parseSemver(_0x3ee4aa);if(!_0x3f3f99||!_0x3f3bd5)throw CliErrors[_0x414cb0(0xe1)]('Version\x20comparison\x20failed.',_0x414cb0(0xbd));for(const _0x3bd580 of[_0x414cb0(0xd5),_0x414cb0(0xb3),_0x414cb0(0xb0)]){if(_0x3f3f99[_0x3bd580]<_0x3f3bd5[_0x3bd580])return-0x1;if(_0x3f3f99[_0x3bd580]>_0x3f3bd5[_0x3bd580])return 0x1;}if(!_0x3f3f99[_0x414cb0(0xbb)]&&!_0x3f3bd5[_0x414cb0(0xbb)])return 0x0;if(!_0x3f3f99['prerelease'])return 0x1;if(!_0x3f3bd5[_0x414cb0(0xbb)])return-0x1;if(_0x3f3f99[_0x414cb0(0xbb)]===_0x3f3bd5[_0x414cb0(0xbb)])return 0x0;return _0x3f3f99['prerelease']<_0x3f3bd5['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x41a8b4){const _0x50cb5e=a30_0x2b58b0,_0x5d23ce=_0x41a8b4[_0x50cb5e(0xfb)]('version')[_0x50cb5e(0xf0)]();if(_0x5d23ce)return _0x5d23ce;return String(_0x41a8b4[_0x50cb5e(0xe0)]?.[0x0]??'')[_0x50cb5e(0xf0)]();}function shouldSkipOfficialSkill(_0x3bf9d4){const _0x4574d6=a30_0x2b58b0;return _0x3bf9d4[_0x4574d6(0xc8)](_0x4574d6(0xfa))||_0x3bf9d4[_0x4574d6(0xdf)](_0x4574d6(0xeb))===![];}async function validateUpdateFlags(_0x2647ba){const _0x217da2=a30_0x2b58b0,_0x25c2fd=getRequestedVersion(_0x2647ba),_0x35982f=[_0x2647ba['bool'](_0x217da2(0xca))?_0x217da2(0xca):'',_0x2647ba[_0x217da2(0xc8)](_0x217da2(0xac))?_0x217da2(0xac):'',_0x25c2fd?'version':''][_0x217da2(0xee)](Boolean);if(_0x35982f['length']>0x1)throw CliErrors['validation'](_0x217da2(0xd7),_0x217da2(0xbf));if(_0x25c2fd&&!parseSemver(_0x25c2fd))throw CliErrors[_0x217da2(0xe1)](_0x217da2(0xd3)+_0x25c2fd,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x10c6a3=a30_0x2b58b0;try{const _0x2aa464=NPM_REGISTRY_BASE_URL+_0x10c6a3(0xcf)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10c6a3(0xef),_0xd1b068=await fetch(_0x2aa464,{'signal':AbortSignal[_0x10c6a3(0xd4)](0x2710)});if(!_0xd1b068['ok'])return null;const _0x3b1aa4=await _0xd1b068[_0x10c6a3(0xc7)]();if(!_0x3b1aa4||typeof _0x3b1aa4!==_0x10c6a3(0xe7))return null;return Object[_0x10c6a3(0xdb)](Object['entries'](_0x3b1aa4)[_0x10c6a3(0xee)](([,_0x28d475])=>typeof _0x28d475==='string'&&_0x28d475[_0x10c6a3(0xf0)]())[_0x10c6a3(0xd0)](([_0x5e1d51,_0x517fd4])=>[_0x5e1d51,String(_0x517fd4)[_0x10c6a3(0xf0)]()]));}catch{return null;}}async function resolveTargetVersion(_0x243302){const _0x5c8914=a30_0x2b58b0,_0x458568=getRequestedVersion(_0x243302);if(_0x458568)return{'version':_0x458568,'source':_0x5c8914(0xcd)};const _0x44b1c1=_0x243302[_0x5c8914(0xc8)](_0x5c8914(0xac))?'beta':_0x5c8914(0xca),_0x4a1dec=await fetchNpmDistTags(),_0x123e48=_0x4a1dec?.[_0x44b1c1];if(!_0x123e48)return null;return{'version':_0x123e48,'source':_0x44b1c1};}function a30_0x5619(_0x55c3c8,_0x549312){_0x55c3c8=_0x55c3c8-0xac;const _0x2d85db=a30_0x2d85();let _0x5619fe=_0x2d85db[_0x55c3c8];return _0x5619fe;}function shouldInstallTarget(_0x4f7e78,_0x59b5f0){const _0xf47a99=a30_0x2b58b0,_0x3782f8=compareSemver(_0x4f7e78,_0x59b5f0[_0xf47a99(0xcd)]);if(_0x59b5f0[_0xf47a99(0xf2)]==='version')return _0x3782f8!==0x0;return _0x3782f8<0x0;}function installCliPackage(_0x4c1b8d,_0x2b5060){const _0x10f5b0=a30_0x2b58b0,_0x439ec4=resolveNpmBin('npm'),_0x161135=[_0x10f5b0(0xea),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4c1b8d];console['log']('*\x20'+[_0x439ec4,..._0x161135]['join']('\x20'));const _0x3b7714=spawnSync(_0x439ec4,_0x161135,{'cwd':process[_0x10f5b0(0xb5)](),'stdio':_0x2b5060?'pipe':_0x10f5b0(0xe6),'env':process.env,'shell':![]});if(_0x3b7714[_0x10f5b0(0xc2)]===0x0)return{'ok':!![]};let _0x8e01b1=_0x3b7714[_0x10f5b0(0xf1)]?.[_0x10f5b0(0xda)]||_0x10f5b0(0xf8)+(_0x3b7714[_0x10f5b0(0xc2)]??'unknown');if(_0x2b5060){const _0x3fcb6a=_0x3b7714[_0x10f5b0(0xe3)]?_0x3b7714[_0x10f5b0(0xe3)][_0x10f5b0(0xde)]()[_0x10f5b0(0xf0)]():'',_0x1910f0=_0x3b7714[_0x10f5b0(0xce)]?_0x3b7714['stdout']['toString']()['trim']():'';if(_0x3fcb6a)_0x8e01b1=_0x3fcb6a;else{if(_0x1910f0)_0x8e01b1=_0x1910f0;}}return{'ok':![],'error':_0x8e01b1};}async function installOfficialSkill(_0x4441a5){const _0x1fe3a4=a30_0x2b58b0;console['log'](_0x1fe3a4(0xc6));const _0x10d510=runNpxSkillsAddGlobal(process[_0x1fe3a4(0xb5)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4441a5?'pipe':'inherit'});if(_0x10d510[_0x1fe3a4(0xcb)]){console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xd1)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1fe3a4(0xe5));return;}if(_0x10d510['ok']){console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xaf));return;}console['warn']('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x10d510[_0x1fe3a4(0xf1)]||_0x1fe3a4(0xf6))),console[_0x1fe3a4(0xbc)](_0x1fe3a4(0xf7)+LOVRABET_SKILL_SOURCE+_0x1fe3a4(0xd2));}async function execute(_0x2ccdf5){const _0x25fbd1=a30_0x2b58b0;await validateUpdateFlags(_0x2ccdf5);const _0x5e5d84=getCliVersion();console[_0x25fbd1(0xbc)](_0x25fbd1(0xae)+_0x5e5d84),console['log'](_0x25fbd1(0xc1));const _0x3f9535=await resolveTargetVersion(_0x2ccdf5);if(!_0x3f9535){const _0x8658f5=_0x2ccdf5[_0x25fbd1(0xc8)](_0x25fbd1(0xac))?_0x25fbd1(0xac):'latest',_0x15d15b=_0x25fbd1(0xb2)+_0x8658f5+_0x25fbd1(0xad);return console[_0x25fbd1(0xb9)](_0x15d15b),console[_0x25fbd1(0xbc)](_0x25fbd1(0xf5)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x8658f5),{'ok':![]};}if(!shouldInstallTarget(_0x5e5d84,_0x3f9535)){const _0x215ebe=_0x3f9535['source']===_0x25fbd1(0xcd)?_0x25fbd1(0xb7)+_0x3f9535[_0x25fbd1(0xcd)]+').':_0x25fbd1(0xf3)+_0x3f9535[_0x25fbd1(0xcd)]+').';return console[_0x25fbd1(0xbc)](_0x215ebe),shouldSkipOfficialSkill(_0x2ccdf5)?console[_0x25fbd1(0xbc)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x2ccdf5['nonInteractive']),{'ok':!![]};}console[_0x25fbd1(0xbc)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5e5d84+_0x25fbd1(0xe2)+_0x3f9535[_0x25fbd1(0xcd)]);const _0x4b02af=installCliPackage(_0x3f9535['version'],_0x2ccdf5[_0x25fbd1(0xd9)]);if(!_0x4b02af['ok']){const _0x54ece5='Update\x20failed:\x20'+(_0x4b02af[_0x25fbd1(0xf1)]||_0x25fbd1(0xf6));return console['error'](_0x54ece5),console[_0x25fbd1(0xbc)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3f9535[_0x25fbd1(0xcd)]),{'ok':![]};}return console[_0x25fbd1(0xbc)](_0x25fbd1(0xc4)+_0x3f9535[_0x25fbd1(0xcd)]+'.'),console[_0x25fbd1(0xbc)](_0x25fbd1(0xec)),shouldSkipOfficialSkill(_0x2ccdf5)?console[_0x25fbd1(0xbc)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x2ccdf5['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a30_0x2b58b0(0xf9),'command':'run','description':a30_0x2b58b0(0xc5)+CLI_BIN_NAME+a30_0x2b58b0(0xbe),'risk':a30_0x2b58b0(0xe8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a30_0xa2d12d=a30_0x21a6;(function(_0x552b34,_0x50768d){const _0x38ecc8=a30_0x21a6,_0x18db24=_0x552b34();while(!![]){try{const _0x111c8f=parseInt(_0x38ecc8(0x12b))/0x1+-parseInt(_0x38ecc8(0x139))/0x2*(-parseInt(_0x38ecc8(0x13d))/0x3)+-parseInt(_0x38ecc8(0x16c))/0x4+parseInt(_0x38ecc8(0x125))/0x5*(parseInt(_0x38ecc8(0x134))/0x6)+parseInt(_0x38ecc8(0x126))/0x7+parseInt(_0x38ecc8(0x130))/0x8*(-parseInt(_0x38ecc8(0x144))/0x9)+parseInt(_0x38ecc8(0x153))/0xa;if(_0x111c8f===_0x50768d)break;else _0x18db24['push'](_0x18db24['shift']());}catch(_0x266a2f){_0x18db24['push'](_0x18db24['shift']());}}}(a30_0x5961,0x89714));import{spawnSync}from'node:child_process';function a30_0x5961(){const _0x1ed458=['Already\x20up\x20to\x20date\x20(v','object','=1).','Skipping\x20official\x20skill\x20package\x20(--no-skills).','args','json','4305020MSUkVg','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Updating\x20','log','5nBoibb','5562613yyTblY','no-skills','/dist-tags','prerelease','/-/package/','247024XOweTo','Version\x20comparison\x20failed.','major','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','minor','216hFtzax','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','fromEntries','filter','2400066ISjUrN','warn','Update\x20failed:\x20','\x20\x20Skipped\x20skill\x20install\x20(','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','6TFkuDN','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','nonInteractive','\x20\x20Official\x20skill\x20update\x20failed:\x20','195441WckqtU','error','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','version','stderr','message','skills','25614mRMrGF','skipped','Checking\x20official\x20skill\x20package...','beta','validation','latest','Checking\x20npm\x20dist-tags...','write','Already\x20on\x20requested\x20version\x20(v','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','run','Updated\x20to\x20v','boolean','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','Invalid\x20version:\x20','789260DUGvxq','toString','entries','bool','exit\x20','inherit','Current\x20version:\x20','unknown','install','str','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','stdout','update','status','Update\x20','trim','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Unable\x20to\x20resolve\x20','\x20->\x20'];a30_0x5961=function(){return _0x1ed458;};return a30_0x5961();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a30_0x21a6(_0x30669a,_0x5efcec){_0x30669a=_0x30669a-0x123;const _0x596156=a30_0x5961();let _0x21a605=_0x596156[_0x30669a];return _0x21a605;}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':a30_0xa2d12d(0x150),'description':a30_0xa2d12d(0x13f),'default':![]},{'name':a30_0xa2d12d(0x147),'type':a30_0xa2d12d(0x150),'description':a30_0xa2d12d(0x14d),'default':![]},{'name':a30_0xa2d12d(0x140),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a30_0xa2d12d(0x127),'type':'boolean','description':a30_0xa2d12d(0x15d),'default':![]},{'name':a30_0xa2d12d(0x143),'type':a30_0xa2d12d(0x150),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x42537f){const _0x39966d=a30_0xa2d12d,_0xe0b0ce=_0x42537f[_0x39966d(0x162)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xe0b0ce)return null;return{'major':Number(_0xe0b0ce[0x1]),'minor':Number(_0xe0b0ce[0x2]),'patch':Number(_0xe0b0ce[0x3]),'prerelease':_0xe0b0ce[0x4]};}function compareSemver(_0x26046e,_0x220883){const _0xf8803c=a30_0xa2d12d,_0x3edcbf=parseSemver(_0x26046e),_0x4a7ad9=parseSemver(_0x220883);if(!_0x3edcbf||!_0x4a7ad9)throw CliErrors[_0xf8803c(0x148)](_0xf8803c(0x12c),_0xf8803c(0x16d));for(const _0x38488e of[_0xf8803c(0x12d),_0xf8803c(0x12f),'patch']){if(_0x3edcbf[_0x38488e]<_0x4a7ad9[_0x38488e])return-0x1;if(_0x3edcbf[_0x38488e]>_0x4a7ad9[_0x38488e])return 0x1;}if(!_0x3edcbf[_0xf8803c(0x129)]&&!_0x4a7ad9[_0xf8803c(0x129)])return 0x0;if(!_0x3edcbf[_0xf8803c(0x129)])return 0x1;if(!_0x4a7ad9['prerelease'])return-0x1;if(_0x3edcbf[_0xf8803c(0x129)]===_0x4a7ad9[_0xf8803c(0x129)])return 0x0;return _0x3edcbf[_0xf8803c(0x129)]<_0x4a7ad9[_0xf8803c(0x129)]?-0x1:0x1;}function getRequestedVersion(_0x400662){const _0xe666d6=a30_0xa2d12d,_0xc79ec7=_0x400662[_0xe666d6(0x15c)]('version')[_0xe666d6(0x162)]();if(_0xc79ec7)return _0xc79ec7;return String(_0x400662[_0xe666d6(0x16a)]?.[0x0]??'')[_0xe666d6(0x162)]();}function shouldSkipOfficialSkill(_0x4c4ef2){const _0x173a7b=a30_0xa2d12d;return _0x4c4ef2[_0x173a7b(0x156)](_0x173a7b(0x127))||_0x4c4ef2['flag'](_0x173a7b(0x143))===![];}async function validateUpdateFlags(_0x53faf1){const _0x2b9523=a30_0xa2d12d,_0x3b938c=getRequestedVersion(_0x53faf1),_0x540d99=[_0x53faf1[_0x2b9523(0x156)](_0x2b9523(0x149))?'latest':'',_0x53faf1[_0x2b9523(0x156)](_0x2b9523(0x147))?'beta':'',_0x3b938c?_0x2b9523(0x140):''][_0x2b9523(0x133)](Boolean);if(_0x540d99['length']>0x1)throw CliErrors['validation'](_0x2b9523(0x163),_0x2b9523(0x13a));if(_0x3b938c&&!parseSemver(_0x3b938c))throw CliErrors[_0x2b9523(0x148)](_0x2b9523(0x152)+_0x3b938c,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x268447=a30_0xa2d12d;try{const _0x4a7c36=NPM_REGISTRY_BASE_URL+_0x268447(0x12a)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x268447(0x128),_0x3b34be=await fetch(_0x4a7c36,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x3b34be['ok'])return null;const _0x4db178=await _0x3b34be[_0x268447(0x16b)]();if(!_0x4db178||typeof _0x4db178!==_0x268447(0x167))return null;return Object[_0x268447(0x132)](Object[_0x268447(0x155)](_0x4db178)['filter'](([,_0x367ac9])=>typeof _0x367ac9==='string'&&_0x367ac9[_0x268447(0x162)]())['map'](([_0x44fcea,_0x1cfa2e])=>[_0x44fcea,String(_0x1cfa2e)[_0x268447(0x162)]()]));}catch{return null;}}async function resolveTargetVersion(_0x32a744){const _0x339901=a30_0xa2d12d,_0x1769c0=getRequestedVersion(_0x32a744);if(_0x1769c0)return{'version':_0x1769c0,'source':_0x339901(0x140)};const _0x364232=_0x32a744[_0x339901(0x156)](_0x339901(0x147))?_0x339901(0x147):'latest',_0x154bb4=await fetchNpmDistTags(),_0x3e2d78=_0x154bb4?.[_0x364232];if(!_0x3e2d78)return null;return{'version':_0x3e2d78,'source':_0x364232};}function shouldInstallTarget(_0x852d8d,_0xc2bdf9){const _0x3ba9a6=a30_0xa2d12d,_0x2197e0=compareSemver(_0x852d8d,_0xc2bdf9[_0x3ba9a6(0x140)]);if(_0xc2bdf9['source']===_0x3ba9a6(0x140))return _0x2197e0!==0x0;return _0x2197e0<0x0;}function installCliPackage(_0x364d82,_0x933150){const _0x2839f2=a30_0xa2d12d,_0x524b15=resolveNpmBin('npm'),_0x375173=[_0x2839f2(0x15b),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x364d82];console[_0x2839f2(0x124)]('*\x20'+[_0x524b15,..._0x375173]['join']('\x20'));const _0xc9c3df=spawnSync(_0x524b15,_0x375173,{'cwd':process['cwd'](),'stdio':_0x933150?'pipe':_0x2839f2(0x158),'env':process.env,'shell':![]});if(_0xc9c3df[_0x2839f2(0x160)]===0x0)return{'ok':!![]};let _0x254183=_0xc9c3df[_0x2839f2(0x13e)]?.[_0x2839f2(0x142)]||_0x2839f2(0x157)+(_0xc9c3df['status']??_0x2839f2(0x15a));if(_0x933150){const _0x4531cd=_0xc9c3df[_0x2839f2(0x141)]?_0xc9c3df['stderr'][_0x2839f2(0x154)]()[_0x2839f2(0x162)]():'',_0x312b7e=_0xc9c3df[_0x2839f2(0x15e)]?_0xc9c3df[_0x2839f2(0x15e)][_0x2839f2(0x154)]()[_0x2839f2(0x162)]():'';if(_0x4531cd)_0x254183=_0x4531cd;else{if(_0x312b7e)_0x254183=_0x312b7e;}}return{'ok':![],'error':_0x254183};}async function installOfficialSkill(_0x1d995e){const _0x205448=a30_0xa2d12d;console['log'](_0x205448(0x146));const _0x19e8f6=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x1d995e?'pipe':_0x205448(0x158)});if(_0x19e8f6[_0x205448(0x145)]){console['log'](_0x205448(0x137)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x205448(0x168));return;}if(_0x19e8f6['ok']){console['log'](_0x205448(0x131));return;}console['warn'](_0x205448(0x13c)+(_0x19e8f6['error']||'unknown')),console[_0x205448(0x124)](_0x205448(0x151)+LOVRABET_SKILL_SOURCE+'\x20-g\x20-y');}async function execute(_0x20a76b){const _0x4402f7=a30_0xa2d12d;await validateUpdateFlags(_0x20a76b);const _0x8b1297=getCliVersion();console[_0x4402f7(0x124)](_0x4402f7(0x159)+_0x8b1297),console['log'](_0x4402f7(0x14a));const _0x14df9b=await resolveTargetVersion(_0x20a76b);if(!_0x14df9b){const _0x49b512=_0x20a76b[_0x4402f7(0x156)]('beta')?_0x4402f7(0x147):_0x4402f7(0x149),_0x216ef3=_0x4402f7(0x164)+_0x49b512+'\x20version\x20from\x20npm.';return console[_0x4402f7(0x135)](_0x216ef3),console[_0x4402f7(0x124)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x49b512),{'ok':![]};}if(!shouldInstallTarget(_0x8b1297,_0x14df9b)){const _0x5abf96=_0x14df9b['source']===_0x4402f7(0x140)?_0x4402f7(0x14c)+_0x14df9b[_0x4402f7(0x140)]+').':_0x4402f7(0x166)+_0x14df9b[_0x4402f7(0x140)]+').';return console[_0x4402f7(0x124)](_0x5abf96),shouldSkipOfficialSkill(_0x20a76b)?console['log'](_0x4402f7(0x169)):await installOfficialSkill(_0x20a76b['nonInteractive']),{'ok':!![]};}console['log'](_0x4402f7(0x123)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x8b1297+_0x4402f7(0x165)+_0x14df9b['version']);const _0x356520=installCliPackage(_0x14df9b['version'],_0x20a76b[_0x4402f7(0x13b)]);if(!_0x356520['ok']){const _0x42f631=_0x4402f7(0x136)+(_0x356520['error']||_0x4402f7(0x15a));return console[_0x4402f7(0x13e)](_0x42f631),console['log'](_0x4402f7(0x12e)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x14df9b[_0x4402f7(0x140)]),{'ok':![]};}return console[_0x4402f7(0x124)](_0x4402f7(0x14f)+_0x14df9b[_0x4402f7(0x140)]+'.'),console['log'](_0x4402f7(0x138)),shouldSkipOfficialSkill(_0x20a76b)?console[_0x4402f7(0x124)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x20a76b[_0x4402f7(0x13b)]),{'ok':!![]};}export const updateDefinition={'service':a30_0xa2d12d(0x15f),'command':a30_0xa2d12d(0x14e),'description':a30_0xa2d12d(0x161)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a30_0xa2d12d(0x14b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a31_0x57cd84=a31_0x3072;(function(_0xd8c383,_0x193ff4){const _0x3cb75f=a31_0x3072,_0x4b1442=_0xd8c383();while(!![]){try{const _0x66b3c8=-parseInt(_0x3cb75f(0x6c))/0x1+parseInt(_0x3cb75f(0x78))/0x2*(parseInt(_0x3cb75f(0x86))/0x3)+parseInt(_0x3cb75f(0x8c))/0x4+parseInt(_0x3cb75f(0x89))/0x5*(parseInt(_0x3cb75f(0x72))/0x6)+parseInt(_0x3cb75f(0x70))/0x7+parseInt(_0x3cb75f(0x7f))/0x8*(-parseInt(_0x3cb75f(0x73))/0x9)+-parseInt(_0x3cb75f(0x82))/0xa*(parseInt(_0x3cb75f(0x81))/0xb);if(_0x66b3c8===_0x193ff4)break;else _0x4b1442['push'](_0x4b1442['shift']());}catch(_0x191a9b){_0x4b1442['push'](_0x4b1442['shift']());}}}(a31_0x1f2d,0xad365));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a31_0x57cd84(0x7e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x7c)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x7b)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x57cd84(0x74),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x57cd84(0x6e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x57cd84(0x71),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x57cd84(0x76),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x57cd84(0x87),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x77)],'importable':!![]},'locale':{'description':a31_0x57cd84(0x85),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x57cd84(0x88)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x12504f])=>_0x12504f[a31_0x57cd84(0x7a)])[a31_0x57cd84(0x79)](([_0x22fef5])=>_0x22fef5));export const CONFIG_ENUM_VALUES=Object[a31_0x57cd84(0x7d)](Object[a31_0x57cd84(0x8b)](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x2798b8])=>_0x2798b8[a31_0x57cd84(0x80)])[a31_0x57cd84(0x79)](([_0x40d50f,_0x25f5da])=>[_0x40d50f,[..._0x25f5da[a31_0x57cd84(0x80)]||[]]]));function a31_0x3072(_0x348487,_0x4a6428){_0x348487=_0x348487-0x6b;const _0x1f2dcc=a31_0x1f2d();let _0x30724b=_0x1f2dcc[_0x348487];return _0x30724b;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x57cd84(0x8b)](CONFIG_FIELD_SCHEMAS)[a31_0x57cd84(0x6f)](([,_0x35df6e])=>_0x35df6e[a31_0x57cd84(0x6b)])['map'](([_0x5f30e4])=>_0x5f30e4);export function getConfigFieldSchema(_0x37e982){return CONFIG_FIELD_SCHEMAS[_0x37e982];}export function getConfigEnumValues(_0x175be2){const _0x24ba91=a31_0x57cd84;return getConfigFieldSchema(_0x175be2)?.[_0x24ba91(0x80)];}export function getConfigDefaultValue(_0x38047e){const _0x421250=a31_0x57cd84;return getConfigFieldSchema(_0x38047e)?.[_0x421250(0x6d)];}export function isTopLevelConfigKey(_0x4d8926){return TOP_LEVEL_CONFIG_KEYS['has'](_0x4d8926);}function a31_0x1f2d(){const _0x34e60c=['449479mTSXDq','defaultValue','Override\x20user\x20domain','filter','58926yOMUes','Override\x20runtime\x20domain','6hASOlY','1544967WUZULR','Override\x20API\x20domain','join','Access\x20key\x20(client-ak\x20auth)','riskLevel','12OSrBzR','map','cliSettableTopLevel','format','env','fromEntries','Target\x20environment','8RcHogO','enumValues','11121lRnrpV','7790nRBjWa','Config\x20key.\x20Top-level:\x20',';\x20local\x20alias:\x20apps.<alias>.appcode','Locale','556815iQNBBJ','Risk\x20level','locale','1523480psRAqN','legacyCompatOnly','entries','2765776zqvcqU','importable'];a31_0x1f2d=function(){return _0x34e60c;};return a31_0x1f2d();}export function isLegacyCompatConfigKey(_0xf61e65){const _0x7547ee=a31_0x57cd84;return getConfigFieldSchema(_0xf61e65)?.[_0x7547ee(0x8a)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3001ed){const _0x2c1055=a31_0x57cd84;return[..._0x3001ed][_0x2c1055(0x75)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xffede1=a31_0x57cd84;return _0xffede1(0x83)+getTopLevelConfigKeySummary()+_0xffede1(0x84);}export function buildAppProfileListFields(_0x418da1){return{'env':_0x418da1,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a31_0x3a782a=a31_0x4c6d;(function(_0x46dbce,_0x199f88){const _0x3be1f2=a31_0x4c6d,_0x10f5fa=_0x46dbce();while(!![]){try{const _0x27dfba=-parseInt(_0x3be1f2(0x208))/0x1*(-parseInt(_0x3be1f2(0x201))/0x2)+parseInt(_0x3be1f2(0x20e))/0x3*(parseInt(_0x3be1f2(0x205))/0x4)+parseInt(_0x3be1f2(0x1fc))/0x5*(parseInt(_0x3be1f2(0x1f4))/0x6)+-parseInt(_0x3be1f2(0x1fa))/0x7*(-parseInt(_0x3be1f2(0x200))/0x8)+parseInt(_0x3be1f2(0x1ef))/0x9+parseInt(_0x3be1f2(0x1f1))/0xa+-parseInt(_0x3be1f2(0x1f6))/0xb*(parseInt(_0x3be1f2(0x20f))/0xc);if(_0x27dfba===_0x199f88)break;else _0x10f5fa['push'](_0x10f5fa['shift']());}catch(_0x19a0ef){_0x10f5fa['push'](_0x10f5fa['shift']());}}}(a31_0xe255,0xe3006));function a31_0x4c6d(_0x5cf8cb,_0x10a3e2){_0x5cf8cb=_0x5cf8cb-0x1ee;const _0xe25501=a31_0xe255();let _0x4c6db1=_0xe25501[_0x5cf8cb];return _0x4c6db1;}function a31_0xe255(){const _0x404a88=['1266066BcGfEk','legacyCompatOnly','5436040PskwfK','format','filter','60594AfGFNy','riskLevel','34438085hKlGyB','Override\x20user\x20domain','entries','Override\x20API\x20domain','8414ytjSSE','fromEntries','590khxJzw','Default\x20page\x20size','defaultValue','enumValues','664XkQdby','2vtjDzi','cliSettableTopLevel','Access\x20key\x20(client-ak\x20auth)','map','8QejdrM',';\x20local\x20alias:\x20apps.<alias>.appcode','Override\x20runtime\x20domain','1724399iSeMJk','join','Risk\x20level','Config\x20key.\x20Top-level:\x20','env','Locale','540612irjNwe','12jWsfOx','locale'];a31_0xe255=function(){return _0x404a88;};return a31_0xe255();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3a782a(0x20c)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3a782a(0x1f2)],'importable':!![]},'pageSize':{'description':a31_0x3a782a(0x1fd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x3a782a(0x1f9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x3a782a(0x1f7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x3a782a(0x207),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x3a782a(0x203),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x3a782a(0x20a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3a782a(0x1f5)],'importable':!![]},'locale':{'description':a31_0x3a782a(0x20d),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x3a782a(0x1ee)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x3a782a(0x1f3)](([,_0x2fe6ea])=>_0x2fe6ea[a31_0x3a782a(0x202)])[a31_0x3a782a(0x204)](([_0x4a5ffb])=>_0x4a5ffb));export const CONFIG_ENUM_VALUES=Object[a31_0x3a782a(0x1fb)](Object[a31_0x3a782a(0x1f8)](CONFIG_FIELD_SCHEMAS)[a31_0x3a782a(0x1f3)](([,_0x49ce2f])=>_0x49ce2f[a31_0x3a782a(0x1ff)])[a31_0x3a782a(0x204)](([_0x2bfab4,_0x2f41fa])=>[_0x2bfab4,[..._0x2f41fa[a31_0x3a782a(0x1ff)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x3a782a(0x1f8)](CONFIG_FIELD_SCHEMAS)[a31_0x3a782a(0x1f3)](([,_0x2f0200])=>_0x2f0200['importable'])['map'](([_0x4caf87])=>_0x4caf87);export function getConfigFieldSchema(_0x70c9b7){return CONFIG_FIELD_SCHEMAS[_0x70c9b7];}export function getConfigEnumValues(_0x339814){const _0x8a80bc=a31_0x3a782a;return getConfigFieldSchema(_0x339814)?.[_0x8a80bc(0x1ff)];}export function getConfigDefaultValue(_0x183ed4){const _0x394dad=a31_0x3a782a;return getConfigFieldSchema(_0x183ed4)?.[_0x394dad(0x1fe)];}export function isTopLevelConfigKey(_0x414ecc){return TOP_LEVEL_CONFIG_KEYS['has'](_0x414ecc);}export function isLegacyCompatConfigKey(_0xb515c){const _0x2c9554=a31_0x3a782a;return getConfigFieldSchema(_0xb515c)?.[_0x2c9554(0x1f0)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4188f7){const _0x614f3b=a31_0x3a782a;return[..._0x4188f7][_0x614f3b(0x209)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x34eb75=a31_0x3a782a;return _0x34eb75(0x20b)+getTopLevelConfigKeySummary()+_0x34eb75(0x206);}export function buildAppProfileListFields(_0x4a9f13){return{'env':_0x4a9f13,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a32_0x5bc974=a32_0x4c55;function a32_0x4534(){const _0xa5eff9=['client-ak','1872960OTQxsx','9wWATON','44152xSXhcS','873960pzSfCd','168782ezrxkV','1807162nyHGOM','ClientAk','733735iqzoYc','326197FaEOLw'];a32_0x4534=function(){return _0xa5eff9;};return a32_0x4534();}(function(_0x5a6308,_0x382f9e){const _0x8e23f=a32_0x4c55,_0x30152a=_0x5a6308();while(!![]){try{const _0x185778=-parseInt(_0x8e23f(0x1b4))/0x1+-parseInt(_0x8e23f(0x1b0))/0x2+parseInt(_0x8e23f(0x1b7))/0x3*(-parseInt(_0x8e23f(0x1ae))/0x4)+parseInt(_0x8e23f(0x1b3))/0x5+parseInt(_0x8e23f(0x1b6))/0x6+parseInt(_0x8e23f(0x1b1))/0x7+-parseInt(_0x8e23f(0x1af))/0x8;if(_0x185778===_0x382f9e)break;else _0x30152a['push'](_0x30152a['shift']());}catch(_0x44e069){_0x30152a['push'](_0x30152a['shift']());}}}(a32_0x4534,0x2811e));function a32_0x4c55(_0x3fcbbf,_0x49a506){_0x3fcbbf=_0x3fcbbf-0x1ae;const _0x4534d5=a32_0x4534();let _0x4c556a=_0x4534d5[_0x3fcbbf];return _0x4c556a;}export const AUTH_MODE={'ClientAk':a32_0x5bc974(0x1b5)};export function isAuthMode(_0x39f645){const _0x54cb89=a32_0x5bc974;return _0x39f645===AUTH_MODE[_0x54cb89(0x1b2)];}
1
+ const a32_0x45ca55=a32_0x41da;function a32_0x41da(_0x23be41,_0x34fbff){_0x23be41=_0x23be41-0x1f0;const _0x4a2789=a32_0x4a27();let _0x41da1c=_0x4a2789[_0x23be41];return _0x41da1c;}(function(_0x4d814b,_0x50bc58){const _0x3698ec=a32_0x41da,_0x96f269=_0x4d814b();while(!![]){try{const _0x4ce1c2=-parseInt(_0x3698ec(0x1f6))/0x1*(parseInt(_0x3698ec(0x1f2))/0x2)+-parseInt(_0x3698ec(0x1fb))/0x3*(parseInt(_0x3698ec(0x1f4))/0x4)+-parseInt(_0x3698ec(0x1f3))/0x5+parseInt(_0x3698ec(0x1fa))/0x6+parseInt(_0x3698ec(0x1f8))/0x7+parseInt(_0x3698ec(0x1f1))/0x8*(parseInt(_0x3698ec(0x1fc))/0x9)+-parseInt(_0x3698ec(0x1f7))/0xa*(parseInt(_0x3698ec(0x1f0))/0xb);if(_0x4ce1c2===_0x50bc58)break;else _0x96f269['push'](_0x96f269['shift']());}catch(_0x12330c){_0x96f269['push'](_0x96f269['shift']());}}}(a32_0x4a27,0x9467d));export const AUTH_MODE={'ClientAk':a32_0x45ca55(0x1f5)};function a32_0x4a27(){const _0x1804b9=['36301KtlHDi','80sfgvwu','2704989kjifGG','ClientAk','6071250LSgcfD','105ZBrHyE','43803UCqien','697906OwHvCK','568MQTuzq','12jseSeR','1593880nLNGOJ','10496drkVpP','client-ak'];a32_0x4a27=function(){return _0x1804b9;};return a32_0x4a27();}export function isAuthMode(_0x44558b){const _0x1fe71f=a32_0x45ca55;return _0x44558b===AUTH_MODE[_0x1fe71f(0x1f9)];}
@@ -1 +1 @@
1
- const a33_0x12f2bb=a33_0x572b;(function(_0x4387b7,_0x2b8039){const _0x1cdf17=a33_0x572b,_0x2a9be1=_0x4387b7();while(!![]){try{const _0x5328ee=parseInt(_0x1cdf17(0xb0))/0x1*(-parseInt(_0x1cdf17(0xa9))/0x2)+-parseInt(_0x1cdf17(0xc0))/0x3+parseInt(_0x1cdf17(0xbf))/0x4*(parseInt(_0x1cdf17(0xaf))/0x5)+-parseInt(_0x1cdf17(0xcf))/0x6*(-parseInt(_0x1cdf17(0xb5))/0x7)+-parseInt(_0x1cdf17(0xc3))/0x8+-parseInt(_0x1cdf17(0xcd))/0x9+parseInt(_0x1cdf17(0xd8))/0xa;if(_0x5328ee===_0x2b8039)break;else _0x2a9be1['push'](_0x2a9be1['shift']());}catch(_0x446bc0){_0x2a9be1['push'](_0x2a9be1['shift']());}}}(a33_0x51ec,0x29706));import{PRODUCT_CONFIG}from'../constant/product.js';function a33_0x572b(_0x314553,_0x350baa){_0x314553=_0x314553-0xa9;const _0x51ec3a=a33_0x51ec();let _0x572b3d=_0x51ec3a[_0x314553];return _0x572b3d;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x12f2bb(0xda)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x12f2bb(0xd2),'meowKey':a33_0x12f2bb(0xd2),'type':'string','description':'Override\x20appcode','hint':a33_0x12f2bb(0xc7)},{'name':a33_0x12f2bb(0xcc),'meowKey':a33_0x12f2bb(0xcc),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xac),'hint':a33_0x12f2bb(0xab)},{'name':a33_0x12f2bb(0xb3),'meowKey':a33_0x12f2bb(0xb3),'type':'string','description':a33_0x12f2bb(0xba),'hint':a33_0x12f2bb(0xb9)},{'name':a33_0x12f2bb(0xc9),'meowKey':a33_0x12f2bb(0xc9),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xae),'hint':a33_0x12f2bb(0xaa)},{'name':'jq','meowKey':'jq','type':'string','description':a33_0x12f2bb(0xca),'hint':a33_0x12f2bb(0xbc)},{'name':a33_0x12f2bb(0xc6),'meowKey':a33_0x12f2bb(0xb8),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xad)},{'name':a33_0x12f2bb(0xc1),'meowKey':a33_0x12f2bb(0xc1),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xb4)},{'name':a33_0x12f2bb(0xc8),'meowKey':a33_0x12f2bb(0xd4),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd5)},{'name':a33_0x12f2bb(0xb2),'meowKey':a33_0x12f2bb(0xb2),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd6)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a33_0x12f2bb(0xd0),'meowKey':a33_0x12f2bb(0xd0),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xd1)},{'name':'id','meowKey':'id','type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xcb),'hidden':!![]},{'name':a33_0x12f2bb(0xbe),'meowKey':'name','type':a33_0x12f2bb(0xd9),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a33_0x12f2bb(0xbb),'type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xb7),'hidden':!![]},{'name':a33_0x12f2bb(0xbd),'meowKey':'params','type':a33_0x12f2bb(0xd9),'description':a33_0x12f2bb(0xd3),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xb6),'hidden':!![]},{'name':a33_0x12f2bb(0xc5),'meowKey':a33_0x12f2bb(0xc5),'type':a33_0x12f2bb(0xd7),'description':a33_0x12f2bb(0xc4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x12f2bb(0xd2),a33_0x12f2bb(0xcc),a33_0x12f2bb(0xb3),a33_0x12f2bb(0xc9),'jq',a33_0x12f2bb(0xc6),a33_0x12f2bb(0xc1),a33_0x12f2bb(0xc8),'ci']);function a33_0x51ec(){const _0x52fe85=['yes','type','1919176eWEMOG','Clear\x20output','clear','dry-run','<code>','non-interactive','format','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Record\x20ID','app','927990NrKlks','fromEntries','3246DFbJnB','help','Show\x20help','appcode','JSON\x20params\x20for\x20execute\x20commands','nonInteractive','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','boolean','5580620RfXxqh','string','cliDisplayName','980IjAnzx','json\x20|\x20pretty\x20|\x20compress','<name>','Select\x20app\x20profile\x20by\x20name','Preview\x20operation\x20without\x20executing','Output\x20format','96320llYRbp','477ZFvpXG','map','global','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','3605xlSdDg','Verbose\x20output','SQL\x20query\x20code','dryRun','production\x20|\x20development\x20|\x20daily','Environment','sqlcode','<expr>','params','name','44HWiAhS','906330PPmjcZ'];a33_0x51ec=function(){return _0x52fe85;};return a33_0x51ec();}export function buildMeowFlags(){const _0x40c985=a33_0x12f2bb;return Object[_0x40c985(0xce)](GLOBAL_FLAGS[_0x40c985(0xb1)](_0x2aa607=>[_0x2aa607['meowKey'],{'type':_0x2aa607[_0x40c985(0xc2)]}]));}
1
+ const a33_0x50695e=a33_0x1055;function a33_0x1344(){const _0xb2fba5=['10HrDmSR','help','1378772ShXBee','720008vSpDnY','Output\x20format','Environment','appcode','9ILJXZF','<expr>','dry-run','35dckHkX','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Use\x20global\x20config\x20scope','map','Clear\x20output','params','cliBinName','8nOnxyG','non-interactive','meowKey','2210598udnltm','boolean','Preview\x20operation\x20without\x20executing','app','yes','name','sqlcode','nonInteractive','fromEntries','Verbose\x20output','40101RGGtUL','Force\x20non-interactive\x20mode\x20(CI)','595770hfyYwi','verbose','Override\x20appcode','cliDisplayName','format','env','<name>','Record\x20ID','clear','string','2459076mJwfdI','10406506EzZtdt'];a33_0x1344=function(){return _0xb2fba5;};return a33_0x1344();}(function(_0x24e557,_0x33e4fa){const _0x378c64=a33_0x1055,_0x4c1b30=_0x24e557();while(!![]){try{const _0x44b1fd=-parseInt(_0x378c64(0x1f0))/0x1*(-parseInt(_0x378c64(0x1e3))/0x2)+parseInt(_0x378c64(0x1e6))/0x3+parseInt(_0x378c64(0x1d2))/0x4*(parseInt(_0x378c64(0x1d0))/0x5)+parseInt(_0x378c64(0x1ce))/0x6+-parseInt(_0x378c64(0x1da))/0x7*(parseInt(_0x378c64(0x1d3))/0x8)+-parseInt(_0x378c64(0x1d7))/0x9*(-parseInt(_0x378c64(0x1f2))/0xa)+-parseInt(_0x378c64(0x1cf))/0xb;if(_0x44b1fd===_0x33e4fa)break;else _0x4c1b30['push'](_0x4c1b30['shift']());}catch(_0x49e496){_0x4c1b30['push'](_0x4c1b30['shift']());}}}(a33_0x1344,0xa123c));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x50695e(0x1e2)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x50695e(0x1c7)];function a33_0x1055(_0x4fb506,_0x169cdb){_0x4fb506=_0x4fb506-0x1c6;const _0x134495=a33_0x1344();let _0x1055f4=_0x134495[_0x4fb506];return _0x1055f4;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x50695e(0x1d6),'meowKey':a33_0x50695e(0x1d6),'type':a33_0x50695e(0x1cd),'description':a33_0x50695e(0x1c6),'hint':'<code>'},{'name':'app','meowKey':a33_0x50695e(0x1e9),'type':a33_0x50695e(0x1cd),'description':'Select\x20app\x20profile\x20by\x20name','hint':a33_0x50695e(0x1ca)},{'name':a33_0x50695e(0x1c9),'meowKey':a33_0x50695e(0x1c9),'type':'string','description':a33_0x50695e(0x1d5),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a33_0x50695e(0x1c8),'type':a33_0x50695e(0x1cd),'description':a33_0x50695e(0x1d4),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a33_0x50695e(0x1cd),'description':a33_0x50695e(0x1dd),'hint':a33_0x50695e(0x1d8)},{'name':'dry-run','meowKey':'dryRun','type':a33_0x50695e(0x1e7),'description':a33_0x50695e(0x1e8)},{'name':a33_0x50695e(0x1ea),'meowKey':a33_0x50695e(0x1ea),'type':a33_0x50695e(0x1e7),'description':a33_0x50695e(0x1db)},{'name':a33_0x50695e(0x1e4),'meowKey':a33_0x50695e(0x1ed),'type':'boolean','description':a33_0x50695e(0x1f1)},{'name':a33_0x50695e(0x1dc),'meowKey':'global','type':a33_0x50695e(0x1e7),'description':a33_0x50695e(0x1de)},{'name':'ci','meowKey':'ci','type':a33_0x50695e(0x1e7),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a33_0x50695e(0x1d1),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a33_0x50695e(0x1cd),'description':a33_0x50695e(0x1cb),'hidden':!![]},{'name':a33_0x50695e(0x1eb),'meowKey':'name','type':a33_0x50695e(0x1cd),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a33_0x50695e(0x1ec),'type':a33_0x50695e(0x1cd),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a33_0x50695e(0x1e1),'meowKey':a33_0x50695e(0x1e1),'type':a33_0x50695e(0x1cd),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a33_0x50695e(0x1f3),'meowKey':a33_0x50695e(0x1f3),'type':'boolean','description':a33_0x50695e(0x1ef),'hidden':!![]},{'name':'clear','meowKey':a33_0x50695e(0x1cc),'type':'boolean','description':a33_0x50695e(0x1e0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x50695e(0x1d6),a33_0x50695e(0x1e9),a33_0x50695e(0x1c9),a33_0x50695e(0x1c8),'jq',a33_0x50695e(0x1d9),a33_0x50695e(0x1ea),'non-interactive','ci']);export function buildMeowFlags(){const _0x2e71e4=a33_0x50695e;return Object[_0x2e71e4(0x1ee)](GLOBAL_FLAGS[_0x2e71e4(0x1df)](_0x28f153=>[_0x28f153[_0x2e71e4(0x1e5)],{'type':_0x28f153['type']}]));}
@@ -1 +1 @@
1
- function a34_0x1a6c(){const _0x24cdb2=['431436RMZmqO','1593098dkZlsN','11898XsTkIr','21490IAQRey','1554YxPMtz','main','en-US','246278beSlLg','15NTOipq','3663858iGdxjT','17724mRlbTU','production','6635352rtVWDB'];a34_0x1a6c=function(){return _0x24cdb2;};return a34_0x1a6c();}const a34_0x53b35d=a34_0x596b;(function(_0x5e1011,_0x1ff5d8){const _0x2bc330=a34_0x596b,_0x3c25fa=_0x5e1011();while(!![]){try{const _0x175d7e=parseInt(_0x2bc330(0x136))/0x1+-parseInt(_0x2bc330(0x13d))/0x2+-parseInt(_0x2bc330(0x138))/0x3+parseInt(_0x2bc330(0x13c))/0x4*(-parseInt(_0x2bc330(0x137))/0x5)+-parseInt(_0x2bc330(0x133))/0x6*(parseInt(_0x2bc330(0x139))/0x7)+parseInt(_0x2bc330(0x13b))/0x8+-parseInt(_0x2bc330(0x13e))/0x9*(-parseInt(_0x2bc330(0x132))/0xa);if(_0x175d7e===_0x1ff5d8)break;else _0x3c25fa['push'](_0x3c25fa['shift']());}catch(_0x4bc04a){_0x3c25fa['push'](_0x3c25fa['shift']());}}}(a34_0x1a6c,0xe07b3));function a34_0x596b(_0x154648,_0x1a7d7d){_0x154648=_0x154648-0x132;const _0x1a6c71=a34_0x1a6c();let _0x596bca=_0x1a6c71[_0x154648];return _0x596bca;}export const DEFAULT_APP_PROFILE_NAME=a34_0x53b35d(0x134);export const DEFAULT_CONFIG_VALUES={'env':a34_0x53b35d(0x13a),'format':'compress','locale':a34_0x53b35d(0x135),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a34_0xc1c0da=a34_0x51b4;(function(_0x237278,_0x184556){const _0x3817a5=a34_0x51b4,_0x4f78b4=_0x237278();while(!![]){try{const _0x7a3c02=parseInt(_0x3817a5(0x110))/0x1*(parseInt(_0x3817a5(0x114))/0x2)+-parseInt(_0x3817a5(0x10d))/0x3+-parseInt(_0x3817a5(0x112))/0x4+parseInt(_0x3817a5(0x119))/0x5*(-parseInt(_0x3817a5(0x113))/0x6)+-parseInt(_0x3817a5(0x116))/0x7+-parseInt(_0x3817a5(0x10f))/0x8*(parseInt(_0x3817a5(0x118))/0x9)+parseInt(_0x3817a5(0x111))/0xa;if(_0x7a3c02===_0x184556)break;else _0x4f78b4['push'](_0x4f78b4['shift']());}catch(_0x3f73b7){_0x4f78b4['push'](_0x4f78b4['shift']());}}}(a34_0x29e9,0x27882));function a34_0x51b4(_0x324b93,_0x4743e3){_0x324b93=_0x324b93-0x10d;const _0x29e98f=a34_0x29e9();let _0x51b441=_0x29e98f[_0x324b93];return _0x51b441;}export const DEFAULT_APP_PROFILE_NAME=a34_0xc1c0da(0x11a);function a34_0x29e9(){const _0x294b3b=['7026KcygbP','179514nDADqO','write','438606MISjuy','compress','359217eCkDpk','155slgvFJ','main','68901hpwmKG','en-US','16MczMcp','3finygb','1650600MgRvmG','282628AAcELt'];a34_0x29e9=function(){return _0x294b3b;};return a34_0x29e9();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a34_0xc1c0da(0x117),'locale':a34_0xc1c0da(0x10e),'riskLevel':a34_0xc1c0da(0x115)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a34_0xc1c0da(0x117);
@@ -1 +1 @@
1
- function a35_0x3d24(_0x422d4e,_0x427be1){_0x422d4e=_0x422d4e-0x1e2;const _0x313a25=a35_0x313a();let _0x3d2404=_0x313a25[_0x422d4e];return _0x3d2404;}const a35_0x10eaf8=a35_0x3d24;(function(_0x480348,_0x51f845){const _0x4627e3=a35_0x3d24,_0x17e6d4=_0x480348();while(!![]){try{const _0x55b492=parseInt(_0x4627e3(0x1ea))/0x1*(-parseInt(_0x4627e3(0x1e8))/0x2)+-parseInt(_0x4627e3(0x1e3))/0x3*(parseInt(_0x4627e3(0x1ec))/0x4)+parseInt(_0x4627e3(0x1e5))/0x5*(-parseInt(_0x4627e3(0x1ee))/0x6)+parseInt(_0x4627e3(0x1e7))/0x7+parseInt(_0x4627e3(0x1eb))/0x8+parseInt(_0x4627e3(0x1e9))/0x9+parseInt(_0x4627e3(0x1ed))/0xa;if(_0x55b492===_0x51f845)break;else _0x17e6d4['push'](_0x17e6d4['shift']());}catch(_0x1aa3f9){_0x17e6d4['push'](_0x17e6d4['shift']());}}}(a35_0x313a,0x1dc84));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x10eaf8(0x1e2)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x10eaf8(0x1e6)];function a35_0x313a(){const _0x433e4d=['npmPackageName','5616TzvfOa','npmRegistryBaseUrl','5Brkxdd','skillSource','1476741TaSZoE','143454fQzfRE','639999ALYuMu','3BgZVag','1317088vFYLWe','332bvcbYN','986210aRKljV','316716bFSymb'];a35_0x313a=function(){return _0x433e4d;};return a35_0x313a();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x10eaf8(0x1e4)];
1
+ const a35_0xb2eaf2=a35_0x4077;(function(_0x47718f,_0x4ea67f){const _0x232d90=a35_0x4077,_0x11c8b5=_0x47718f();while(!![]){try{const _0x1a034f=-parseInt(_0x232d90(0x9c))/0x1*(-parseInt(_0x232d90(0x97))/0x2)+parseInt(_0x232d90(0xa4))/0x3*(-parseInt(_0x232d90(0x98))/0x4)+parseInt(_0x232d90(0xa7))/0x5*(parseInt(_0x232d90(0x9d))/0x6)+parseInt(_0x232d90(0x99))/0x7*(parseInt(_0x232d90(0xa0))/0x8)+parseInt(_0x232d90(0xa3))/0x9*(-parseInt(_0x232d90(0xa5))/0xa)+parseInt(_0x232d90(0x9f))/0xb*(parseInt(_0x232d90(0x9b))/0xc)+parseInt(_0x232d90(0xa1))/0xd*(-parseInt(_0x232d90(0x9a))/0xe);if(_0x1a034f===_0x4ea67f)break;else _0x11c8b5['push'](_0x11c8b5['shift']());}catch(_0x12baeb){_0x11c8b5['push'](_0x11c8b5['shift']());}}}(a35_0x4ed4,0xd92b2));function a35_0x4ed4(){const _0xc7471=['2474989OcIOvd','8zhutSw','5045521DDEkEG','npmPackageName','9DgBPEF','223842yxnIdJ','8063610yauXJc','npmRegistryBaseUrl','115WgTWKh','2594414aIjbks','72NqWnXB','7589337DpCIdF','70aaJIOA','60IAZhYR','1OqzOBt','384294fsBrkI','skillSource'];a35_0x4ed4=function(){return _0xc7471;};return a35_0x4ed4();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0xb2eaf2(0xa2)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0xb2eaf2(0x9e)];function a35_0x4077(_0x54d777,_0x57877c){_0x54d777=_0x54d777-0x97;const _0x4ed415=a35_0x4ed4();let _0x40779c=_0x4ed415[_0x54d777];return _0x40779c;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0xb2eaf2(0xa6)];
@@ -1 +1 @@
1
- function a36_0x2067(){const _0x4f5f01=['24taWZZR','api','5EzHdhC','20WnQzIf','production','user','runtime','4340800HrqzUR','1641820cCdXBT','7hCKRMR','domains','580631GEUQxc','4226643WJuxFp','nonProduction','2287770byEWMc','243498aaqCAQ','14968822derJQg'];a36_0x2067=function(){return _0x4f5f01;};return a36_0x2067();}const a36_0x3b7b27=a36_0x225b;(function(_0x478962,_0xa3ecbf){const _0x360662=a36_0x225b,_0x45fd24=_0x478962();while(!![]){try{const _0x577488=parseInt(_0x360662(0x13d))/0x1+-parseInt(_0x360662(0x13a))/0x2+parseInt(_0x360662(0x141))/0x3*(-parseInt(_0x360662(0x143))/0x4)+-parseInt(_0x360662(0x134))/0x5*(-parseInt(_0x360662(0x140))/0x6)+parseInt(_0x360662(0x13b))/0x7*(parseInt(_0x360662(0x139))/0x8)+-parseInt(_0x360662(0x13e))/0x9*(parseInt(_0x360662(0x135))/0xa)+parseInt(_0x360662(0x142))/0xb;if(_0x577488===_0xa3ecbf)break;else _0x45fd24['push'](_0x45fd24['shift']());}catch(_0xb926db){_0x45fd24['push'](_0x45fd24['shift']());}}}(a36_0x2067,0x96eb8));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x29aa0b){customApiDomain=_0x29aa0b?.['apiDomain'],customUserDomain=_0x29aa0b?.['userDomain'],customRuntimeDomain=_0x29aa0b?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x136)][a36_0x3b7b27(0x137)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)]['nonProduction'][a36_0x3b7b27(0x137)]);function a36_0x225b(_0x5606c6,_0x14cd94){_0x5606c6=_0x5606c6-0x134;const _0x206779=a36_0x2067();let _0x225be8=_0x206779[_0x5606c6];return _0x225be8;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x136)][a36_0x3b7b27(0x144)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x13f)][a36_0x3b7b27(0x144)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x3b7b27(0x13c)]['production'][a36_0x3b7b27(0x138)]:PRODUCT_CONFIG[a36_0x3b7b27(0x13c)][a36_0x3b7b27(0x13f)]['runtime']);
1
+ const a36_0x111088=a36_0x4663;function a36_0x4663(_0xe562a3,_0x56e7ee){_0xe562a3=_0xe562a3-0x178;const _0x224158=a36_0x2241();let _0x466335=_0x224158[_0xe562a3];return _0x466335;}(function(_0x11d0b6,_0x36e2fc){const _0x3c5dc4=a36_0x4663,_0xeb2790=_0x11d0b6();while(!![]){try{const _0x65106c=parseInt(_0x3c5dc4(0x187))/0x1*(-parseInt(_0x3c5dc4(0x18b))/0x2)+parseInt(_0x3c5dc4(0x180))/0x3*(-parseInt(_0x3c5dc4(0x17d))/0x4)+-parseInt(_0x3c5dc4(0x189))/0x5*(-parseInt(_0x3c5dc4(0x178))/0x6)+-parseInt(_0x3c5dc4(0x18c))/0x7*(-parseInt(_0x3c5dc4(0x18a))/0x8)+-parseInt(_0x3c5dc4(0x18d))/0x9*(-parseInt(_0x3c5dc4(0x17b))/0xa)+parseInt(_0x3c5dc4(0x17f))/0xb+-parseInt(_0x3c5dc4(0x17c))/0xc*(-parseInt(_0x3c5dc4(0x182))/0xd);if(_0x65106c===_0x36e2fc)break;else _0xeb2790['push'](_0xeb2790['shift']());}catch(_0x4763a6){_0xeb2790['push'](_0xeb2790['shift']());}}}(a36_0x2241,0x18fb4));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4a0193){const _0x5dda40=a36_0x4663;customApiDomain=_0x4a0193?.[_0x5dda40(0x179)],customUserDomain=_0x4a0193?.[_0x5dda40(0x181)],customRuntimeDomain=_0x4a0193?.[_0x5dda40(0x184)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x111088(0x183)][a36_0x111088(0x188)][a36_0x111088(0x186)]:PRODUCT_CONFIG[a36_0x111088(0x183)][a36_0x111088(0x17e)][a36_0x111088(0x186)]);function a36_0x2241(){const _0x32b219=['runtimeDomain','runtime','user','1BKducj','production','115AJOjAC','72gVhmuQ','408862uLFFqE','143801hMfjuY','3231DyftIY','9654YmGtly','apiDomain','api','2230iwgKtv','12VnzkQK','4MLQdtB','nonProduction','736802LDbCkG','567165HjdEnB','userDomain','1649401stChHd','domains'];a36_0x2241=function(){return _0x32b219;};return a36_0x2241();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x111088(0x183)][a36_0x111088(0x188)][a36_0x111088(0x17a)]:PRODUCT_CONFIG[a36_0x111088(0x183)]['nonProduction'][a36_0x111088(0x17a)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x111088(0x183)]['production'][a36_0x111088(0x185)]:PRODUCT_CONFIG[a36_0x111088(0x183)][a36_0x111088(0x17e)]['runtime']);
@@ -1 +1 @@
1
- const a37_0x572999=a37_0xafbe;(function(_0x212ff8,_0x2d03e7){const _0x1f4020=a37_0xafbe,_0x302e6f=_0x212ff8();while(!![]){try{const _0x5afe25=-parseInt(_0x1f4020(0xf1))/0x1+-parseInt(_0x1f4020(0xf0))/0x2+-parseInt(_0x1f4020(0xed))/0x3*(parseInt(_0x1f4020(0xf3))/0x4)+parseInt(_0x1f4020(0xeb))/0x5+parseInt(_0x1f4020(0xea))/0x6+parseInt(_0x1f4020(0xec))/0x7+parseInt(_0x1f4020(0xf2))/0x8;if(_0x5afe25===_0x2d03e7)break;else _0x302e6f['push'](_0x302e6f['shift']());}catch(_0xc1ccfe){_0x302e6f['push'](_0x302e6f['shift']());}}}(a37_0x3b5e,0xbc728));function a37_0xafbe(_0x398873,_0x54888b){_0x398873=_0x398873-0xe9;const _0x3b5e93=a37_0x3b5e();let _0xafbef4=_0x3b5e93[_0x398873];return _0xafbef4;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x572999(0xef),a37_0x572999(0xee),a37_0x572999(0xe9)];export function normalizeEnv(_0x37be23){const _0x42d1c9=a37_0x572999;return _0x37be23===_0x42d1c9(0xf5)?'production':_0x37be23;}function a37_0x3b5e(){const _0x21ad0c=['4OKqYOk','dev','online','ENV','daily','7379040PfFjam','6409700hKITWY','1231146RzWfEY','67116zxFSYv','development','production','2518728xEPHxf','1424797OofYww','6326040cKoQvy'];a37_0x3b5e=function(){return _0x21ad0c;};return a37_0x3b5e();}export function isProduction(_0x1d02b5){const _0x3df5e0=a37_0x572999;return normalizeEnv(_0x1d02b5)===_0x3df5e0(0xef);}export function isDaily(_0x43d259){return normalizeEnv(_0x43d259)==='daily';}export function isDev(_0x161db2){const _0x3aa23d=a37_0x572999,_0x5abb91=normalizeEnv(_0x161db2);return _0x5abb91===_0x3aa23d(0xee)||_0x5abb91===_0x3aa23d(0xf4);}let env=normalizeEnv(productEnv(a37_0x572999(0xf6))||a37_0x572999(0xef));export function getEnv(){return env;}export function initEnv(_0x2ddf4a){env=normalizeEnv(_0x2ddf4a);}
1
+ const a37_0x23ea32=a37_0x538a;(function(_0x55ed32,_0x4269a5){const _0x5bcc75=a37_0x538a,_0x33dbca=_0x55ed32();while(!![]){try{const _0x3ab7a5=-parseInt(_0x5bcc75(0x171))/0x1*(-parseInt(_0x5bcc75(0x16c))/0x2)+parseInt(_0x5bcc75(0x163))/0x3+-parseInt(_0x5bcc75(0x166))/0x4+parseInt(_0x5bcc75(0x169))/0x5*(-parseInt(_0x5bcc75(0x16e))/0x6)+parseInt(_0x5bcc75(0x16f))/0x7*(parseInt(_0x5bcc75(0x165))/0x8)+parseInt(_0x5bcc75(0x168))/0x9*(parseInt(_0x5bcc75(0x164))/0xa)+-parseInt(_0x5bcc75(0x167))/0xb;if(_0x3ab7a5===_0x4269a5)break;else _0x33dbca['push'](_0x33dbca['shift']());}catch(_0x2b5f83){_0x33dbca['push'](_0x33dbca['shift']());}}}(a37_0x5cc5,0x34d34));import{productEnv}from'../constant/product.js';function a37_0x5cc5(){const _0x145316=['daily','ENV','208158BfknrY','3452860KRBImY','16392nQjsjP','628868vwFSkL','2515381xyzDqc','9vGVEUu','64805somlNH','online','production','40606iheFqs','dev','30bjVUWH','238qqULXW','development','9bVMcWu'];a37_0x5cc5=function(){return _0x145316;};return a37_0x5cc5();}export const RUNTIME_ENV_VALUES=['production',a37_0x23ea32(0x170),a37_0x23ea32(0x172)];export function normalizeEnv(_0x4696d7){const _0x46fdb9=a37_0x23ea32;return _0x4696d7===_0x46fdb9(0x16a)?_0x46fdb9(0x16b):_0x4696d7;}export function isProduction(_0xbe144e){return normalizeEnv(_0xbe144e)==='production';}export function isDaily(_0x5381ca){const _0x5d6667=a37_0x23ea32;return normalizeEnv(_0x5381ca)===_0x5d6667(0x172);}export function isDev(_0x16a0e2){const _0x2e47e1=a37_0x23ea32,_0x16dd74=normalizeEnv(_0x16a0e2);return _0x16dd74===_0x2e47e1(0x170)||_0x16dd74===_0x2e47e1(0x16d);}let env=normalizeEnv(productEnv(a37_0x23ea32(0x173))||a37_0x23ea32(0x16b));export function getEnv(){return env;}function a37_0x538a(_0x48b1af,_0x101d84){_0x48b1af=_0x48b1af-0x163;const _0x5cc530=a37_0x5cc5();let _0x538ab8=_0x5cc530[_0x48b1af];return _0x538ab8;}export function initEnv(_0x16b5a7){env=normalizeEnv(_0x16b5a7);}
@@ -1 +1 @@
1
- const a38_0x987421=a38_0xf8bf;(function(_0x178f93,_0x140002){const _0x55f63c=a38_0xf8bf,_0x4f3a67=_0x178f93();while(!![]){try{const _0x157456=-parseInt(_0x55f63c(0x70))/0x1+parseInt(_0x55f63c(0x74))/0x2+-parseInt(_0x55f63c(0x69))/0x3+-parseInt(_0x55f63c(0x6f))/0x4*(-parseInt(_0x55f63c(0x6a))/0x5)+parseInt(_0x55f63c(0x6e))/0x6+-parseInt(_0x55f63c(0x6d))/0x7+parseInt(_0x55f63c(0x71))/0x8*(-parseInt(_0x55f63c(0x6b))/0x9);if(_0x157456===_0x140002)break;else _0x4f3a67['push'](_0x4f3a67['shift']());}catch(_0x1bbb1e){_0x4f3a67['push'](_0x4f3a67['shift']());}}}(a38_0x3a37,0x381e0));function a38_0xf8bf(_0x2349d3,_0x5ad99a){_0x2349d3=_0x2349d3-0x69;const _0x3a3763=a38_0x3a37();let _0xf8bff6=_0x3a3763[_0x2349d3];return _0xf8bff6;}function a38_0x3a37(){const _0x1ac53f=['83292cKuKoT','20465QTpalA','16gMFoBf','pretty','json','821714oeAWeU','394089lkcIoJ','105qwMwAm','2394666vjoNTa','compress','2254091AMGREU','2326230snJMMP'];a38_0x3a37=function(){return _0x1ac53f;};return a38_0x3a37();}export const OUTPUT_FORMAT_VALUES=[a38_0x987421(0x73),a38_0x987421(0x72),a38_0x987421(0x6c)];
1
+ const a38_0x483555=a38_0x3a32;(function(_0x3227fd,_0x5c3a75){const _0x1355e8=a38_0x3a32,_0xc06990=_0x3227fd();while(!![]){try{const _0x5ab268=parseInt(_0x1355e8(0x1d4))/0x1*(parseInt(_0x1355e8(0x1d5))/0x2)+parseInt(_0x1355e8(0x1d0))/0x3+parseInt(_0x1355e8(0x1c8))/0x4*(-parseInt(_0x1355e8(0x1d3))/0x5)+parseInt(_0x1355e8(0x1d1))/0x6*(parseInt(_0x1355e8(0x1d2))/0x7)+parseInt(_0x1355e8(0x1c9))/0x8*(parseInt(_0x1355e8(0x1ce))/0x9)+parseInt(_0x1355e8(0x1cb))/0xa+-parseInt(_0x1355e8(0x1cc))/0xb*(parseInt(_0x1355e8(0x1cf))/0xc);if(_0x5ab268===_0x5c3a75)break;else _0xc06990['push'](_0xc06990['shift']());}catch(_0x3d4b4d){_0xc06990['push'](_0xc06990['shift']());}}}(a38_0x5f31,0x5990a));export const OUTPUT_FORMAT_VALUES=[a38_0x483555(0x1c7),a38_0x483555(0x1ca),a38_0x483555(0x1cd)];function a38_0x3a32(_0x9129cf,_0x34e3d4){_0x9129cf=_0x9129cf-0x1c7;const _0x5f31b5=a38_0x5f31();let _0x3a32e3=_0x5f31b5[_0x9129cf];return _0x3a32e3;}function a38_0x5f31(){const _0x1d9f9a=['compress','3150dFzzsK','89448mpuZOG','976308VfpZiK','48YOQxWM','410011evtbSo','1235210oexlPg','5261eFZXei','62hSuJrZ','json','8hKWFXr','3232zjeAPp','pretty','3512970aQKAfq','869bmQNrz'];a38_0x5f31=function(){return _0x1d9f9a;};return a38_0x5f31();}
@@ -1 +1 @@
1
- function a39_0x29ce(){const _0x5a3013=['145jtLYQy','6897380nowFpg','/user/ak','8792sAOWXc','@lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','403773LuPxVZ','287577eKiuMz','lovrabet/lovrabet-cli','https://user-daily.lovrabet.com','1573817NyfEOt','cli:lovrabet-runtime','https://api.lovrabet.com','LOVRABET','envPrefix','.lovrabet.json','https://runtime.lovrabet.com','map','https://user.lovrabet.com','Lovrabet\x20User\x20Center','8YmoSKX','Lovrabet\x20Runtime\x20CLI','1040445wJSZUU','1677666ruTEhg','4edXNoV','legacyEnvPrefixes','https://daily-api.lovrabet.com','RABETBASE','11HuoXhs'];a39_0x29ce=function(){return _0x5a3013;};return a39_0x29ce();}const a39_0x376caa=a39_0x3400;(function(_0x5d7201,_0x255df3){const _0x13c069=a39_0x3400,_0x2bf927=_0x5d7201();while(!![]){try{const _0x16c1fe=parseInt(_0x13c069(0x1b4))/0x1+-parseInt(_0x13c069(0x1c5))/0x2*(parseInt(_0x13c069(0x1b3))/0x3)+-parseInt(_0x13c069(0x1b0))/0x4*(-parseInt(_0x13c069(0x1ad))/0x5)+-parseInt(_0x13c069(0x1c4))/0x6+parseInt(_0x13c069(0x1b7))/0x7*(-parseInt(_0x13c069(0x1c1))/0x8)+-parseInt(_0x13c069(0x1c3))/0x9+-parseInt(_0x13c069(0x1ae))/0xa*(-parseInt(_0x13c069(0x1ac))/0xb);if(_0x16c1fe===_0x255df3)break;else _0x2bf927['push'](_0x2bf927['shift']());}catch(_0x3feda8){_0x2bf927['push'](_0x2bf927['shift']());}}}(a39_0x29ce,0x25114));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a39_0x376caa(0x1c2),'npmPackageName':a39_0x376caa(0x1b1),'skillSource':a39_0x376caa(0x1b5),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a39_0x376caa(0x1ba),'legacyEnvPrefixes':[a39_0x376caa(0x1ab)],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':a39_0x376caa(0x1bc),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a39_0x376caa(0x1b8),'userCenterDisplayName':a39_0x376caa(0x1c0),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a39_0x376caa(0x1bf),'api':a39_0x376caa(0x1b9),'runtime':a39_0x376caa(0x1bd)},'nonProduction':{'user':a39_0x376caa(0x1b6),'api':a39_0x376caa(0x1c7),'runtime':a39_0x376caa(0x1b2)}},'accessKeyCreatePath':a39_0x376caa(0x1af)};export function productEnvName(_0x48cef3){const _0x20f7d1=a39_0x376caa;return PRODUCT_CONFIG[_0x20f7d1(0x1bb)]+'_'+_0x48cef3;}function a39_0x3400(_0xcbc3d,_0x16e46d){_0xcbc3d=_0xcbc3d-0x1ab;const _0x29ce1b=a39_0x29ce();let _0x3400a0=_0x29ce1b[_0xcbc3d];return _0x3400a0;}export function productEnvNames(_0x164d52){const _0x2984a2=a39_0x376caa;return[productEnvName(_0x164d52),...PRODUCT_CONFIG[_0x2984a2(0x1c6)][_0x2984a2(0x1be)](_0x297f7c=>_0x297f7c+'_'+_0x164d52)];}export function productEnv(_0x44fff4){for(const _0x15f69b of productEnvNames(_0x44fff4)){const _0x3c251b=process.env[_0x15f69b];if(_0x3c251b!==undefined)return _0x3c251b;}return undefined;}
1
+ const a39_0x352d30=a39_0x43d6;function a39_0x43d6(_0x3cec1e,_0xc09e4e){_0x3cec1e=_0x3cec1e-0x1d2;const _0x5525a1=a39_0x5525();let _0x43d602=_0x5525a1[_0x3cec1e];return _0x43d602;}function a39_0x5525(){const _0x144ee3=['292384HEBfqU','Lovrabet\x20Runtime\x20CLI','2ZfNPTU','.lovrabetrc','1197564LbhfYE','SKIP_NPX_SKILLS','RABETBASE','Lovrabet\x20User\x20Center','/user/ak','35dWrFbD','https://user.lovrabet.com','cli:lovrabet-runtime','42824240GqKkZh','https://daily-runtime.lovrabet.com','7362195wtUMym','574936ONpvyL','https://runtime.lovrabet.com','.lovrabet.json','envPrefix','lovrabet/lovrabet-cli','@lovrabet/lovrabet-cli','2237964MIIoxN','4308327UwggYQ','.lovrabet','48dlgXGH','https://user-daily.lovrabet.com'];a39_0x5525=function(){return _0x144ee3;};return a39_0x5525();}(function(_0x5ddbef,_0x4639d3){const _0x852c10=a39_0x43d6,_0x3b0d5a=_0x5ddbef();while(!![]){try{const _0x10dee7=parseInt(_0x852c10(0x1da))/0x1*(parseInt(_0x852c10(0x1d8))/0x2)+-parseInt(_0x852c10(0x1d4))/0x3*(-parseInt(_0x852c10(0x1d6))/0x4)+parseInt(_0x852c10(0x1e4))/0x5+parseInt(_0x852c10(0x1eb))/0x6+-parseInt(_0x852c10(0x1df))/0x7*(-parseInt(_0x852c10(0x1e5))/0x8)+parseInt(_0x852c10(0x1d2))/0x9+-parseInt(_0x852c10(0x1e2))/0xa;if(_0x10dee7===_0x4639d3)break;else _0x3b0d5a['push'](_0x3b0d5a['shift']());}catch(_0x3f4f70){_0x3b0d5a['push'](_0x3b0d5a['shift']());}}}(a39_0x5525,0xbb893));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a39_0x352d30(0x1d7),'npmPackageName':a39_0x352d30(0x1ea),'skillSource':a39_0x352d30(0x1e9),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':'LOVRABET','legacyEnvPrefixes':[a39_0x352d30(0x1dc)],'configFileNames':[a39_0x352d30(0x1e7),a39_0x352d30(0x1d9)],'newConfigFileName':a39_0x352d30(0x1e7),'homeDirName':a39_0x352d30(0x1d3),'logFileName':'.lovrabet-runtime.log','invokeSource':a39_0x352d30(0x1e1),'userCenterDisplayName':a39_0x352d30(0x1dd),'skipNpxSkillsEnvSuffix':a39_0x352d30(0x1db),'domains':{'production':{'user':a39_0x352d30(0x1e0),'api':'https://api.lovrabet.com','runtime':a39_0x352d30(0x1e6)},'nonProduction':{'user':a39_0x352d30(0x1d5),'api':'https://daily-api.lovrabet.com','runtime':a39_0x352d30(0x1e3)}},'accessKeyCreatePath':a39_0x352d30(0x1de)};export function productEnvName(_0x3606f1){const _0x4686c5=a39_0x352d30;return PRODUCT_CONFIG[_0x4686c5(0x1e8)]+'_'+_0x3606f1;}export function productEnvNames(_0x4dde6f){return[productEnvName(_0x4dde6f),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x289c5b=>_0x289c5b+'_'+_0x4dde6f)];}export function productEnv(_0x3b78b4){for(const _0x5d82fc of productEnvNames(_0x3b78b4)){const _0x26fc48=process.env[_0x5d82fc];if(_0x26fc48!==undefined)return _0x26fc48;}return undefined;}
@@ -1 +1 @@
1
- const a40_0x5ec544=a40_0x9f72;function a40_0x9f72(_0xcdc127,_0x78a7de){_0xcdc127=_0xcdc127-0xe9;const _0x1982f5=a40_0x1982();let _0x9f72e7=_0x1982f5[_0xcdc127];return _0x9f72e7;}(function(_0x3b69d1,_0x36bac8){const _0x3d8949=a40_0x9f72,_0x4fb567=_0x3b69d1();while(!![]){try{const _0x50e0cd=parseInt(_0x3d8949(0xf4))/0x1+parseInt(_0x3d8949(0xf0))/0x2+parseInt(_0x3d8949(0xea))/0x3*(parseInt(_0x3d8949(0xef))/0x4)+parseInt(_0x3d8949(0xf2))/0x5*(-parseInt(_0x3d8949(0xec))/0x6)+-parseInt(_0x3d8949(0xeb))/0x7*(parseInt(_0x3d8949(0xf3))/0x8)+-parseInt(_0x3d8949(0xf1))/0x9+-parseInt(_0x3d8949(0xee))/0xa*(parseInt(_0x3d8949(0xe9))/0xb);if(_0x50e0cd===_0x36bac8)break;else _0x4fb567['push'](_0x4fb567['shift']());}catch(_0x9e32ce){_0x4fb567['push'](_0x4fb567['shift']());}}}(a40_0x1982,0x9282d));function a40_0x1982(){const _0x126a62=['34868gydwcV','1365232zYofsN','3036915iqpbSF','139085Gwvkuc','693416qaiFDx','99644uadCUi','high-risk-write','read','570955dixqLd','372fgHExm','21wNPGUL','54WrVuBo','write','80CwyXKl'];a40_0x1982=function(){return _0x126a62;};return a40_0x1982();}export const RISK_LEVEL_VALUES=[a40_0x5ec544(0xf6),a40_0x5ec544(0xed),a40_0x5ec544(0xf5)];
1
+ function a40_0x3c2f(_0x581d1e,_0x4e28c9){_0x581d1e=_0x581d1e-0x147;const _0x2217f5=a40_0x2217();let _0x3c2fb2=_0x2217f5[_0x581d1e];return _0x3c2fb2;}const a40_0x5d60a8=a40_0x3c2f;function a40_0x2217(){const _0x4387b1=['write','201804EJkXaP','36bsdhDY','99XffqYW','56272IDInUg','read','767416tRLBOF','843549VTUqtw','3890560VWeqdj','3081268pAEJnI','high-risk-write','698055KxqkeK'];a40_0x2217=function(){return _0x4387b1;};return a40_0x2217();}(function(_0x349b1a,_0x2282ac){const _0x1fa256=a40_0x3c2f,_0x3264ad=_0x349b1a();while(!![]){try{const _0x3779c1=-parseInt(_0x1fa256(0x152))/0x1+parseInt(_0x1fa256(0x14d))/0x2+parseInt(_0x1fa256(0x148))/0x3+-parseInt(_0x1fa256(0x150))/0x4+parseInt(_0x1fa256(0x14f))/0x5+parseInt(_0x1fa256(0x149))/0x6*(parseInt(_0x1fa256(0x14e))/0x7)+parseInt(_0x1fa256(0x14b))/0x8*(-parseInt(_0x1fa256(0x14a))/0x9);if(_0x3779c1===_0x2282ac)break;else _0x3264ad['push'](_0x3264ad['shift']());}catch(_0x2262fc){_0x3264ad['push'](_0x3264ad['shift']());}}}(a40_0x2217,0x63370));export const RISK_LEVEL_VALUES=[a40_0x5d60a8(0x14c),a40_0x5d60a8(0x147),a40_0x5d60a8(0x151)];
@@ -1 +1 @@
1
- const a41_0x36b17f=a41_0x2c75;(function(_0x2c2acd,_0x116b6b){const _0x3450f2=a41_0x2c75,_0xa7640=_0x2c2acd();while(!![]){try{const _0x47ea4=-parseInt(_0x3450f2(0x1c6))/0x1+-parseInt(_0x3450f2(0x1bd))/0x2+parseInt(_0x3450f2(0x1c4))/0x3*(-parseInt(_0x3450f2(0x1bc))/0x4)+-parseInt(_0x3450f2(0x1c7))/0x5+-parseInt(_0x3450f2(0x1c2))/0x6*(parseInt(_0x3450f2(0x1be))/0x7)+-parseInt(_0x3450f2(0x1c3))/0x8+parseInt(_0x3450f2(0x1bf))/0x9;if(_0x47ea4===_0x116b6b)break;else _0xa7640['push'](_0xa7640['shift']());}catch(_0xc6d964){_0xa7640['push'](_0xa7640['shift']());}}}(a41_0x3876,0x77c1a));function a41_0x2c75(_0x2e2b3a,_0x20013e){_0x2e2b3a=_0x2e2b3a-0x1bc;const _0x3876b8=a41_0x3876();let _0x2c7592=_0x3876b8[_0x2e2b3a];return _0x2c7592;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x36b17f(0x1c8)][a41_0x36b17f(0x1c5)][a41_0x36b17f(0x1c1)]+PRODUCT_CONFIG[a41_0x36b17f(0x1c0)];function a41_0x3876(){const _0x5d73c4=['3hshhUs','production','877665xhnUAR','2070600wvJojI','domains','3822456hByWhW','1255256GZErPw','366443cWTBHb','37639179AHaOVL','accessKeyCreatePath','user','30CTVSJT','4438696FbVSpk'];a41_0x3876=function(){return _0x5d73c4;};return a41_0x3876();}
1
+ const a41_0x1f1551=a41_0x5e41;(function(_0x22aea8,_0x2123b2){const _0x403fb9=a41_0x5e41,_0x2b684b=_0x22aea8();while(!![]){try{const _0x4eb794=parseInt(_0x403fb9(0x1c4))/0x1*(parseInt(_0x403fb9(0x1be))/0x2)+-parseInt(_0x403fb9(0x1c2))/0x3+parseInt(_0x403fb9(0x1c1))/0x4+parseInt(_0x403fb9(0x1c8))/0x5*(parseInt(_0x403fb9(0x1bf))/0x6)+-parseInt(_0x403fb9(0x1c7))/0x7*(-parseInt(_0x403fb9(0x1c9))/0x8)+-parseInt(_0x403fb9(0x1c3))/0x9+-parseInt(_0x403fb9(0x1c6))/0xa;if(_0x4eb794===_0x2123b2)break;else _0x2b684b['push'](_0x2b684b['shift']());}catch(_0x32650d){_0x2b684b['push'](_0x2b684b['shift']());}}}(a41_0x3bbd,0xcca6a));function a41_0x5e41(_0x698598,_0x230052){_0x698598=_0x698598-0x1bd;const _0x3bbd6b=a41_0x3bbd();let _0x5e4183=_0x3bbd6b[_0x698598];return _0x5e4183;}function a41_0x3bbd(){const _0x45f7b2=['3668058cjShCK','1289FIYUNR','domains','8148570VfpCOf','129325dlWyXC','747715BjDvYE','552kjGsZr','accessKeyCreatePath','684RBPioQ','42blhxhs','user','1755376gQKoKO','3421767reApny'];a41_0x3bbd=function(){return _0x45f7b2;};return a41_0x3bbd();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a41_0x1f1551(0x1c5)]['production'][a41_0x1f1551(0x1c0)]+PRODUCT_CONFIG[a41_0x1f1551(0x1bd)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a42_0x52fd4b=a42_0x271f;(function(_0x5bf11b,_0x1f4852){const _0x4dcc5f=a42_0x271f,_0x464773=_0x5bf11b();while(!![]){try{const _0x1470b7=-parseInt(_0x4dcc5f(0x16d))/0x1+-parseInt(_0x4dcc5f(0x13b))/0x2*(-parseInt(_0x4dcc5f(0x170))/0x3)+-parseInt(_0x4dcc5f(0x14e))/0x4+-parseInt(_0x4dcc5f(0x145))/0x5*(parseInt(_0x4dcc5f(0x14b))/0x6)+-parseInt(_0x4dcc5f(0x160))/0x7+parseInt(_0x4dcc5f(0x15b))/0x8*(parseInt(_0x4dcc5f(0x15e))/0x9)+parseInt(_0x4dcc5f(0x159))/0xa;if(_0x1470b7===_0x1f4852)break;else _0x464773['push'](_0x464773['shift']());}catch(_0x5a0300){_0x464773['push'](_0x464773['shift']());}}}(a42_0x4b40,0xe61b8));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a42_0x271f(_0x1c4c20,_0x17350d){_0x1c4c20=_0x1c4c20-0x131;const _0x4b40fd=a42_0x4b40();let _0x271f12=_0x4b40fd[_0x1c4c20];return _0x271f12;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x52fd4b(0x135)];function resolveConfigPath(_0x5d8d1b){for(const _0x15b5fd of CONFIG_NAMES){const _0x4763d5=resolve(_0x5d8d1b,_0x15b5fd);if(existsSync(_0x4763d5))return _0x4763d5;}return undefined;}export function resolveWriteConfigPath(_0x465921){const _0x5a309b=a42_0x52fd4b,_0x55e2ba=_0x465921===_0x5a309b(0x16a)?process[_0x5a309b(0x156)]():homedir(),_0x366867=resolveConfigPath(_0x55e2ba);return _0x366867??resolve(_0x55e2ba,NEW_CONFIG_NAME);}export function readConfigFile(_0x97f427){const _0x25e995=a42_0x52fd4b;try{if(existsSync(_0x97f427)){const _0x3b19e7=readFileSync(_0x97f427,{'encoding':_0x25e995(0x15d)});if(_0x3b19e7){const _0x3952b0=JSON[_0x25e995(0x171)](_0x3b19e7);return migrateOnlineEnv(_0x97f427,_0x3952b0),_0x3952b0;}}}catch{}return{};}function migrateOnlineEnv(_0x24b6fa,_0x50fce1){const _0x2a057c=a42_0x52fd4b;let _0x55c43b=![];_0x50fce1['env']==='online'&&(_0x50fce1[_0x2a057c(0x14d)]=_0x2a057c(0x16f),_0x55c43b=!![]);if(_0x50fce1[_0x2a057c(0x16e)]&&typeof _0x50fce1[_0x2a057c(0x16e)]===_0x2a057c(0x139))for(const _0xa81d53 of Object[_0x2a057c(0x15f)](_0x50fce1[_0x2a057c(0x16e)])){_0xa81d53&&_0xa81d53[_0x2a057c(0x14d)]===_0x2a057c(0x169)&&(_0xa81d53['env']=_0x2a057c(0x16f),_0x55c43b=!![]);}if(_0x55c43b)try{writeConfigFile(_0x24b6fa,_0x50fce1);}catch{}}export function writeConfigFile(_0x48a9ce,_0x425619){const _0x20750c=a42_0x52fd4b,_0x1b8976=dirname(_0x48a9ce);!existsSync(_0x1b8976)&&mkdirSync(_0x1b8976,{'recursive':!![]});const _0x51c0cd=_0x48a9ce+_0x20750c(0x140);try{writeFileSync(_0x51c0cd,JSON[_0x20750c(0x177)](_0x425619,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x51c0cd,_0x48a9ce);}catch(_0x22b46e){if(_0x22b46e['code']===_0x20750c(0x175)||_0x22b46e['code']===_0x20750c(0x137)||_0x22b46e[_0x20750c(0x155)]==='EACCES'){writeFileSync(_0x48a9ce,JSON['stringify'](_0x425619,null,0x2)+'\x0a',{'encoding':_0x20750c(0x15d)});try{unlinkSync(_0x51c0cd);}catch{}}else throw _0x22b46e;}}catch(_0x4c2e74){try{unlinkSync(_0x51c0cd);}catch{}throw _0x4c2e74;}}export function isNonInteractiveMode(_0x2b2557){const _0x495e41=a42_0x52fd4b;return!!(_0x2b2557[_0x495e41(0x134)]||_0x2b2557['ci']||productEnvNames('CI')[_0x495e41(0x168)](_0x15d3e7=>process.env[_0x15d3e7]===_0x495e41(0x15c))||process.env.CI==='true'||!process[_0x495e41(0x143)][_0x495e41(0x15a)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x8e1360=a42_0x52fd4b;if(!process['stdin'][_0x8e1360(0x15a)])return![];try{const _0x36f2bc=process[_0x8e1360(0x14c)]['isRaw'];return process[_0x8e1360(0x14c)][_0x8e1360(0x174)](!![]),process[_0x8e1360(0x14c)][_0x8e1360(0x174)](_0x36f2bc??![]),!![];}catch{return![];}}export async function createContext(_0x52214a){const _0x17affd=a42_0x52fd4b,_0x3ea0c7=readRawConfig(),_0x189793=buildConfig(_0x3ea0c7,_0x52214a);await initGlobalEnvironment(_0x189793);const {getUserDomain:_0xdf198d,getApiDomain:_0x2d9085}=await import(_0x17affd(0x164)),_0x535427={'apiDomain':_0x2d9085(),'userDomain':_0xdf198d()},_0x543799=await buildAuth(_0x189793);logger['setLogPath'](process['cwd']());const _0x2afbc0=(CLI_BIN_NAME+'\x20'+process[_0x17affd(0x16b)]['slice'](0x2)[_0x17affd(0x142)]('\x20'))[_0x17affd(0x172)]();logger[_0x17affd(0x150)](_0x2afbc0);const _0x195848=isNonInteractiveMode(_0x52214a);return{'config':_0x189793,'auth':_0x543799,'logger':logger,'env':_0x535427,'nonInteractive':_0x195848};}export function buildConfigFromFlags(_0x4fdda6){return buildConfig(readRawConfig(),_0x4fdda6);}export function getLocalAppAliases(_0x45cb30){const _0x3681e3=a42_0x52fd4b;return _0x45cb30[_0x3681e3(0x16e)]&&typeof _0x45cb30[_0x3681e3(0x16e)]===_0x3681e3(0x139)?_0x45cb30[_0x3681e3(0x16e)]:{};}export function resolveLocalAppAliasCode(_0x1b3bf5,_0x24da5e){const _0x55e91a=a42_0x52fd4b;if(!_0x24da5e)return undefined;const _0x493c65=getLocalAppAliases(_0x1b3bf5)[_0x24da5e],_0x35b3c3=_0x493c65?.[_0x55e91a(0x179)];return typeof _0x35b3c3===_0x55e91a(0x133)&&_0x35b3c3[_0x55e91a(0x172)]()?_0x35b3c3[_0x55e91a(0x172)]():undefined;}export function readAppCodeFromConfig(){const _0x2d228d=a42_0x52fd4b,_0x28019a=readRawConfig(),_0x432000=_0x28019a['appcode']??_0x28019a[_0x2d228d(0x157)];if(typeof _0x432000==='string'&&_0x432000[_0x2d228d(0x172)]())return _0x432000[_0x2d228d(0x172)]();const _0x4956c1=resolveLocalAppAliasCode(_0x28019a,typeof _0x28019a[_0x2d228d(0x16c)]==='string'?_0x28019a['defaultApp']:undefined);if(_0x4956c1)return _0x4956c1;const _0x56c4db=normalizeEnv(String(_0x28019a[_0x2d228d(0x14d)]||'production')),_0x2b1171=isDaily(_0x56c4db)?_0x2d228d(0x149):isDev(_0x56c4db)?_0x2d228d(0x146):'production',_0x3d135a=resolveCachedAppCode(typeof _0x28019a['defaultApp']==='string'?_0x28019a[_0x2d228d(0x16c)]:undefined,_0x2b1171,typeof _0x28019a['accessKey']===_0x2d228d(0x133)?_0x28019a[_0x2d228d(0x147)]:undefined);if(_0x3d135a)return _0x3d135a;const _0x43f29b=Object['values'](getLocalAppAliases(_0x28019a))[_0x2d228d(0x13c)](_0x34d6fd=>_0x34d6fd?.['appcode']);return typeof _0x43f29b?.[_0x2d228d(0x179)]===_0x2d228d(0x133)&&_0x43f29b[_0x2d228d(0x179)][_0x2d228d(0x172)]()?_0x43f29b[_0x2d228d(0x179)][_0x2d228d(0x172)]():undefined;}export function readScopedConfig(_0x3c7262){const _0xb19d3d=a42_0x52fd4b,_0x22162c=_0x3c7262[_0xb19d3d(0x162)]?_0xb19d3d(0x162):'project';return readConfigFile(resolveWriteConfigPath(_0x22162c));}export function writeScopedConfig(_0x344615,_0x13c5ce){const _0x32d091=a42_0x52fd4b,_0x1a8d0c=_0x13c5ce[_0x32d091(0x162)]?_0x32d091(0x162):'project';writeConfigFile(resolveWriteConfigPath(_0x1a8d0c),_0x344615);}export async function initGlobalEnvironment(_0x51b537){const _0x52474c=a42_0x52fd4b,{initEnv:_0x2bc9df}=await import(_0x52474c(0x176));_0x2bc9df(_0x51b537['env']);const {initDomains:_0x252a54}=await import(_0x52474c(0x164));_0x252a54({'apiDomain':_0x51b537[_0x52474c(0x178)][_0x52474c(0x163)]||_0x51b537['raw'][_0x52474c(0x158)]||undefined,'userDomain':_0x51b537[_0x52474c(0x178)][_0x52474c(0x132)]||undefined,'runtimeDomain':_0x51b537[_0x52474c(0x178)]['runtimeDomain']||undefined});}export function getProjectConfigPath(){const _0x50d9a9=a42_0x52fd4b;return resolveConfigPath(process[_0x50d9a9(0x156)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x520ac1){const _0x287d25=a42_0x52fd4b;if(!existsSync(_0x520ac1))return{'status':'missing'};try{const _0x5398d9=readFileSync(_0x520ac1,{'encoding':_0x287d25(0x15d)});if(!_0x5398d9?.[_0x287d25(0x172)]())return{'status':_0x287d25(0x148)};const _0x41a8df=JSON[_0x287d25(0x171)](_0x5398d9);return{'status':'ok','data':_0x41a8df};}catch(_0x2f1a55){return{'status':_0x287d25(0x13d),'message':_0x2f1a55 instanceof Error?_0x2f1a55[_0x287d25(0x13a)]:String(_0x2f1a55)};}}export function loadRawConfigLayers(_0x223ed0){const _0x29446d=a42_0x52fd4b;let _0x5c2fb8={},_0x2c7eab={},_0x3db3d4,_0x317991;try{_0x3db3d4=resolveConfigPath(homedir());if(_0x3db3d4){const _0x1223de=readFileSync(_0x3db3d4,{'encoding':_0x29446d(0x15d)});if(_0x1223de)_0x5c2fb8=JSON[_0x29446d(0x171)](_0x1223de);}}catch{}try{const _0x513559=_0x223ed0||process[_0x29446d(0x156)]();_0x317991=resolveConfigPath(_0x513559);if(_0x317991){const _0x122681=readFileSync(_0x317991,{'encoding':_0x29446d(0x15d)});if(_0x122681)_0x2c7eab=JSON['parse'](_0x122681);}}catch{}return{'globalPath':_0x3db3d4,'projectPath':_0x317991,'globalConfig':_0x5c2fb8,'projectConfig':_0x2c7eab};}function mergeRawConfigLayers(_0x49b521){const _0x149ceb=a42_0x52fd4b,{globalConfig:_0x38b2c1,projectConfig:_0x577d39}=_0x49b521;if(_0x577d39[_0x149ceb(0x166)]===![]){const _0xb4f18c={..._0x577d39};return delete _0xb4f18c[_0x149ceb(0x166)],_0xb4f18c;}const _0x6c4a13={..._0x38b2c1,..._0x577d39};if(_0x149ceb(0x16c)in _0x577d39)_0x6c4a13[_0x149ceb(0x16c)]=_0x577d39['defaultApp'];else _0x38b2c1['defaultApp']&&(_0x6c4a13[_0x149ceb(0x16c)]=_0x38b2c1[_0x149ceb(0x16c)]);return _0x6c4a13;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3b9241){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b9241));}export function readRawConfigWithLayers(_0x31a014){const _0x2220ff=loadRawConfigLayers(_0x31a014);return{'config':mergeRawConfigLayers(_0x2220ff),'layers':_0x2220ff};}export function resolveDefaultAppSource(_0x35f677){const _0x187dfd=a42_0x52fd4b;if(_0x187dfd(0x16c)in _0x35f677[_0x187dfd(0x152)])return _0x187dfd(0x16a);if(_0x35f677[_0x187dfd(0x152)][_0x187dfd(0x166)]===![])return null;if(_0x35f677[_0x187dfd(0x173)][_0x187dfd(0x16c)])return'global';return null;}function buildConfig(_0x2174f5,_0x4e6b97){const _0x44f988=a42_0x52fd4b,_0x1b2288=_0x2174f5[_0x44f988(0x16c)]||undefined,_0x4727b7=_0x4e6b97[_0x44f988(0x157)]||env(_0x44f988(0x153))||undefined,_0x3e7d03=_0x4727b7||_0x1b2288||undefined,_0x47c353=env(_0x44f988(0x154))||_0x2174f5[_0x44f988(0x147)]||undefined,_0x43a55a=_0x4e6b97['env']||env('ENV')||_0x2174f5[_0x44f988(0x14d)]||DEFAULT_CONFIG_VALUES[_0x44f988(0x14d)],_0x5b5c31=normalizeEnv(String(_0x43a55a)),_0x27edc2=isDaily(_0x5b5c31)?_0x44f988(0x149):isDev(_0x5b5c31)?_0x44f988(0x146):_0x44f988(0x16f),_0x128d88=resolveLocalAppAliasCode(_0x2174f5,_0x3e7d03),_0x2f63e3=resolveCachedAppCode(_0x3e7d03,_0x27edc2,_0x47c353),_0x522800=typeof _0x4e6b97[_0x44f988(0x179)]===_0x44f988(0x133)?_0x4e6b97[_0x44f988(0x179)]:undefined,_0x5a915c=env(_0x44f988(0x136)),_0x2777f9=_0x4727b7?undefined:_0x2174f5['appcode']||_0x2174f5[_0x44f988(0x157)]||undefined,_0x3c90a8=_0x522800||_0x5a915c||_0x128d88||_0x2f63e3||_0x2777f9||undefined,_0x415b62=_0x522800?_0x44f988(0x167):_0x5a915c?_0x44f988(0x14d):_0x128d88?'local-alias':_0x2f63e3?_0x44f988(0x161):_0x2777f9?_0x44f988(0x14a):undefined,_0x2cbc6f=_0x2174f5['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x2b1301=undefined,_0x504979=_0x4e6b97[_0x44f988(0x165)]||env(_0x44f988(0x144))||_0x2174f5['format'],_0x6d5f4b=normalizeLegacyOutputFormat(_0x504979),_0x111643=env(_0x44f988(0x151))||_0x2174f5['pageSize'],_0x383c21=_0x111643?Number(_0x111643)||undefined:undefined,_0x417cf4=_0x2174f5[_0x44f988(0x13e)]||_0x2174f5[_0x44f988(0x13f)],_0x2de02b=_0x417cf4===_0x44f988(0x14f)||_0x417cf4===_0x44f988(0x138)||_0x417cf4==='high-risk-write'?_0x417cf4:DEFAULT_CONFIG_VALUES[_0x44f988(0x13e)],_0x1a1043=env(_0x44f988(0x131)),_0x2f7fc1=_0x1a1043==='1'||_0x1a1043===_0x44f988(0x15c);return{'appCode':typeof _0x3c90a8==='string'&&_0x3c90a8[_0x44f988(0x172)]()?_0x3c90a8['trim']():undefined,'appCodeSource':_0x415b62,'env':_0x27edc2,'locale':_0x2cbc6f,'cookie':_0x2b1301,'accessKey':_0x47c353,'format':_0x6d5f4b,'pageSize':_0x383c21,'riskLevel':_0x2de02b,'verbose':_0x2f7fc1,'defaultApp':_0x1b2288,'currentApp':typeof _0x3e7d03==='string'?_0x3e7d03:undefined,'raw':_0x2174f5};}function env(_0x21c7bf){return productEnv(_0x21c7bf);}async function buildAuth(_0x57490a){const _0x46d21e=a42_0x52fd4b,_0x261b7b='',_0x204cc2=!!_0x57490a[_0x46d21e(0x147)];return{'cookie':_0x261b7b,'isLoggedIn':_0x204cc2,async 'getOrLogin'(){const _0x2e20c2=_0x46d21e;if(_0x204cc2)return _0x261b7b;throw CliErrors[_0x2e20c2(0x141)]();}};}function a42_0x4b40(){const _0x3e6f1d=['apiDomain','./constant/domain.js','format','inherit','explicit','some','online','project','argv','defaultApp','1118114CiQQiH','apps','production','2733HVnDKc','parse','trim','globalConfig','setRawMode','EPERM','./constant/env.js','stringify','raw','appcode','VERBOSE','userDomain','string','nonInteractive','newConfigFileName','APPCODE','EXDEV','write','object','message','470IEOOrw','find','error','riskLevel','maxRisk','.tmp','authRequired','join','stdout','FORMAT','281955xTNxgE','development','accessKey','empty','daily','top-level','84cEThCh','stdin','env','5189560ccxLQI','read','setRawCommand','PAGE_SIZE','projectConfig','APP','ACCESS_KEY','code','cwd','app','host','42399150KeNdDx','isTTY','35024sgoPnz','true','utf8','3051FptJVn','values','12534508tyBDgW','cache','global'];a42_0x4b40=function(){return _0x3e6f1d;};return a42_0x4b40();}
1
+ const a42_0x3bac29=a42_0x1243;(function(_0x1fef21,_0x23dcf4){const _0x5948f7=a42_0x1243,_0x53d394=_0x1fef21();while(!![]){try{const _0x205c6f=-parseInt(_0x5948f7(0x119))/0x1*(parseInt(_0x5948f7(0x132))/0x2)+parseInt(_0x5948f7(0x13d))/0x3+parseInt(_0x5948f7(0x11a))/0x4*(-parseInt(_0x5948f7(0x114))/0x5)+parseInt(_0x5948f7(0xfa))/0x6+-parseInt(_0x5948f7(0x13e))/0x7+-parseInt(_0x5948f7(0x128))/0x8+-parseInt(_0x5948f7(0x135))/0x9*(-parseInt(_0x5948f7(0x12d))/0xa);if(_0x205c6f===_0x23dcf4)break;else _0x53d394['push'](_0x53d394['shift']());}catch(_0x438c89){_0x53d394['push'](_0x53d394['shift']());}}}(a42_0x449a,0x377bd));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';function a42_0x1243(_0x196b40,_0x561081){_0x196b40=_0x196b40-0xfa;const _0x449ac3=a42_0x449a();let _0x124390=_0x449ac3[_0x196b40];return _0x124390;}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a42_0x3bac29(0x12a)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x3bac29(0x12f)];function resolveConfigPath(_0x4fdc00){for(const _0x3d8cfc of CONFIG_NAMES){const _0x1fccc0=resolve(_0x4fdc00,_0x3d8cfc);if(existsSync(_0x1fccc0))return _0x1fccc0;}return undefined;}export function resolveWriteConfigPath(_0x32c909){const _0x528e11=_0x32c909==='project'?process['cwd']():homedir(),_0x46705f=resolveConfigPath(_0x528e11);return _0x46705f??resolve(_0x528e11,NEW_CONFIG_NAME);}export function readConfigFile(_0x50563a){const _0x295fc6=a42_0x3bac29;try{if(existsSync(_0x50563a)){const _0x34002b=readFileSync(_0x50563a,{'encoding':_0x295fc6(0x12e)});if(_0x34002b){const _0x23b1eb=JSON[_0x295fc6(0x101)](_0x34002b);return migrateOnlineEnv(_0x50563a,_0x23b1eb),_0x23b1eb;}}}catch{}return{};}function migrateOnlineEnv(_0x3d9fde,_0x577d1b){const _0x21ba53=a42_0x3bac29;let _0x151760=![];_0x577d1b[_0x21ba53(0x106)]===_0x21ba53(0x13f)&&(_0x577d1b[_0x21ba53(0x106)]=_0x21ba53(0xfb),_0x151760=!![]);if(_0x577d1b[_0x21ba53(0x11c)]&&typeof _0x577d1b[_0x21ba53(0x11c)]===_0x21ba53(0x123))for(const _0x20cd96 of Object[_0x21ba53(0x134)](_0x577d1b['apps'])){_0x20cd96&&_0x20cd96[_0x21ba53(0x106)]==='online'&&(_0x20cd96['env']=_0x21ba53(0xfb),_0x151760=!![]);}if(_0x151760)try{writeConfigFile(_0x3d9fde,_0x577d1b);}catch{}}export function writeConfigFile(_0x256642,_0x2b0ac8){const _0xd64774=a42_0x3bac29,_0x4ff382=dirname(_0x256642);!existsSync(_0x4ff382)&&mkdirSync(_0x4ff382,{'recursive':!![]});const _0x699f00=_0x256642+_0xd64774(0x105);try{writeFileSync(_0x699f00,JSON[_0xd64774(0x10e)](_0x2b0ac8,null,0x2)+'\x0a',{'encoding':_0xd64774(0x12e),'mode':0x180});try{renameSync(_0x699f00,_0x256642);}catch(_0x41aaa7){if(_0x41aaa7[_0xd64774(0x116)]==='EPERM'||_0x41aaa7[_0xd64774(0x116)]===_0xd64774(0x122)||_0x41aaa7[_0xd64774(0x116)]==='EACCES'){writeFileSync(_0x256642,JSON['stringify'](_0x2b0ac8,null,0x2)+'\x0a',{'encoding':_0xd64774(0x12e)});try{unlinkSync(_0x699f00);}catch{}}else throw _0x41aaa7;}}catch(_0x1f6051){try{unlinkSync(_0x699f00);}catch{}throw _0x1f6051;}}export function isNonInteractiveMode(_0x2bb8c8){const _0x4bae77=a42_0x3bac29;return!!(_0x2bb8c8[_0x4bae77(0x111)]||_0x2bb8c8['ci']||productEnvNames('CI')['some'](_0x1405eb=>process.env[_0x1405eb]===_0x4bae77(0x13b))||process.env.CI==='true'||!process[_0x4bae77(0x100)][_0x4bae77(0x136)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f2489=a42_0x3bac29;if(!process[_0x3f2489(0xfe)]['isTTY'])return![];try{const _0x32b3a0=process[_0x3f2489(0xfe)][_0x3f2489(0x120)];return process['stdin'][_0x3f2489(0x104)](!![]),process[_0x3f2489(0xfe)][_0x3f2489(0x104)](_0x32b3a0??![]),!![];}catch{return![];}}export async function createContext(_0xc8b976){const _0x501ca0=a42_0x3bac29,_0x2d7a1c=readRawConfig(),_0x4f268a=buildConfig(_0x2d7a1c,_0xc8b976);await initGlobalEnvironment(_0x4f268a);const {getUserDomain:_0x5087f1,getApiDomain:_0x29e1a8}=await import(_0x501ca0(0x113)),_0x34d8f0={'apiDomain':_0x29e1a8(),'userDomain':_0x5087f1()},_0x43b56b=await buildAuth(_0x4f268a);logger[_0x501ca0(0x139)](process['cwd']());const _0x32448a=(CLI_BIN_NAME+'\x20'+process['argv'][_0x501ca0(0x127)](0x2)[_0x501ca0(0xfc)]('\x20'))['trim']();logger[_0x501ca0(0x137)](_0x32448a);const _0x2cf33d=isNonInteractiveMode(_0xc8b976);return{'config':_0x4f268a,'auth':_0x43b56b,'logger':logger,'env':_0x34d8f0,'nonInteractive':_0x2cf33d};}export function buildConfigFromFlags(_0x374518){return buildConfig(readRawConfig(),_0x374518);}export function getLocalAppAliases(_0x879268){const _0x3f6d40=a42_0x3bac29;return _0x879268['apps']&&typeof _0x879268['apps']===_0x3f6d40(0x123)?_0x879268[_0x3f6d40(0x11c)]:{};}export function resolveLocalAppAliasCode(_0x17d809,_0x17692d){const _0x55ed17=a42_0x3bac29;if(!_0x17692d)return undefined;const _0x53f708=getLocalAppAliases(_0x17d809)[_0x17692d],_0x4ab5fd=_0x53f708?.[_0x55ed17(0x107)];return typeof _0x4ab5fd===_0x55ed17(0x133)&&_0x4ab5fd['trim']()?_0x4ab5fd[_0x55ed17(0x10d)]():undefined;}export function readAppCodeFromConfig(){const _0x395093=a42_0x3bac29,_0x9e6b55=readRawConfig(),_0x1bc53=_0x9e6b55[_0x395093(0x107)]??_0x9e6b55['app'];if(typeof _0x1bc53===_0x395093(0x133)&&_0x1bc53[_0x395093(0x10d)]())return _0x1bc53[_0x395093(0x10d)]();const _0x5b0a75=resolveLocalAppAliasCode(_0x9e6b55,typeof _0x9e6b55[_0x395093(0x11d)]==='string'?_0x9e6b55[_0x395093(0x11d)]:undefined);if(_0x5b0a75)return _0x5b0a75;const _0x4cf4b8=normalizeEnv(String(_0x9e6b55[_0x395093(0x106)]||_0x395093(0xfb))),_0x36d7fb=isDaily(_0x4cf4b8)?'daily':isDev(_0x4cf4b8)?_0x395093(0x10b):_0x395093(0xfb),_0x16e403=resolveCachedAppCode(typeof _0x9e6b55[_0x395093(0x11d)]===_0x395093(0x133)?_0x9e6b55[_0x395093(0x11d)]:undefined,_0x36d7fb,typeof _0x9e6b55[_0x395093(0x125)]===_0x395093(0x133)?_0x9e6b55[_0x395093(0x125)]:undefined);if(_0x16e403)return _0x16e403;const _0x2f9de1=Object['values'](getLocalAppAliases(_0x9e6b55))['find'](_0x5c72df=>_0x5c72df?.[_0x395093(0x107)]);return typeof _0x2f9de1?.[_0x395093(0x107)]===_0x395093(0x133)&&_0x2f9de1['appcode'][_0x395093(0x10d)]()?_0x2f9de1[_0x395093(0x107)][_0x395093(0x10d)]():undefined;}export function readScopedConfig(_0x237250){const _0x396622=a42_0x3bac29,_0x4f61f2=_0x237250[_0x396622(0x109)]?_0x396622(0x109):_0x396622(0xff);return readConfigFile(resolveWriteConfigPath(_0x4f61f2));}export function writeScopedConfig(_0xa8dfa9,_0x249ac2){const _0x19f7e2=a42_0x3bac29,_0x5a3201=_0x249ac2[_0x19f7e2(0x109)]?_0x19f7e2(0x109):'project';writeConfigFile(resolveWriteConfigPath(_0x5a3201),_0xa8dfa9);}export async function initGlobalEnvironment(_0x3cbf13){const _0x5b0074=a42_0x3bac29,{initEnv:_0x1e2c30}=await import('./constant/env.js');_0x1e2c30(_0x3cbf13[_0x5b0074(0x106)]);const {initDomains:_0x16010b}=await import('./constant/domain.js');_0x16010b({'apiDomain':_0x3cbf13[_0x5b0074(0x110)][_0x5b0074(0x131)]||_0x3cbf13['raw'][_0x5b0074(0x108)]||undefined,'userDomain':_0x3cbf13[_0x5b0074(0x110)][_0x5b0074(0x124)]||undefined,'runtimeDomain':_0x3cbf13[_0x5b0074(0x110)][_0x5b0074(0x126)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x45254b){const _0x5740b3=a42_0x3bac29;if(!existsSync(_0x45254b))return{'status':_0x5740b3(0x12c)};try{const _0xfe8f54=readFileSync(_0x45254b,{'encoding':_0x5740b3(0x12e)});if(!_0xfe8f54?.[_0x5740b3(0x10d)]())return{'status':_0x5740b3(0x12b)};const _0x3a52b5=JSON[_0x5740b3(0x101)](_0xfe8f54);return{'status':'ok','data':_0x3a52b5};}catch(_0x461afc){return{'status':'error','message':_0x461afc instanceof Error?_0x461afc[_0x5740b3(0x13c)]:String(_0x461afc)};}}export function loadRawConfigLayers(_0x24dc03){const _0x40495c=a42_0x3bac29;let _0x4c3761={},_0x858c53={},_0xb6d600,_0x196eac;try{_0xb6d600=resolveConfigPath(homedir());if(_0xb6d600){const _0x59e698=readFileSync(_0xb6d600,{'encoding':_0x40495c(0x12e)});if(_0x59e698)_0x4c3761=JSON[_0x40495c(0x101)](_0x59e698);}}catch{}try{const _0x892caf=_0x24dc03||process['cwd']();_0x196eac=resolveConfigPath(_0x892caf);if(_0x196eac){const _0x2025b7=readFileSync(_0x196eac,{'encoding':_0x40495c(0x12e)});if(_0x2025b7)_0x858c53=JSON['parse'](_0x2025b7);}}catch{}return{'globalPath':_0xb6d600,'projectPath':_0x196eac,'globalConfig':_0x4c3761,'projectConfig':_0x858c53};}function mergeRawConfigLayers(_0x4de43b){const _0x75f417=a42_0x3bac29,{globalConfig:_0x59e6cc,projectConfig:_0x3690c4}=_0x4de43b;if(_0x3690c4['inherit']===![]){const _0x49a413={..._0x3690c4};return delete _0x49a413[_0x75f417(0x13a)],_0x49a413;}const _0x31b074={..._0x59e6cc,..._0x3690c4};if('defaultApp'in _0x3690c4)_0x31b074[_0x75f417(0x11d)]=_0x3690c4[_0x75f417(0x11d)];else _0x59e6cc[_0x75f417(0x11d)]&&(_0x31b074[_0x75f417(0x11d)]=_0x59e6cc['defaultApp']);return _0x31b074;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3aaa59){return mergeRawConfigLayers(loadRawConfigLayers(_0x3aaa59));}export function readRawConfigWithLayers(_0x4b0a82){const _0x479243=loadRawConfigLayers(_0x4b0a82);return{'config':mergeRawConfigLayers(_0x479243),'layers':_0x479243};}export function resolveDefaultAppSource(_0x289d1c){const _0x4d8cf0=a42_0x3bac29;if(_0x4d8cf0(0x11d)in _0x289d1c['projectConfig'])return _0x4d8cf0(0xff);if(_0x289d1c[_0x4d8cf0(0xfd)][_0x4d8cf0(0x13a)]===![])return null;if(_0x289d1c['globalConfig'][_0x4d8cf0(0x11d)])return _0x4d8cf0(0x109);return null;}function buildConfig(_0xdc98b4,_0x526207){const _0x35686f=a42_0x3bac29,_0x24d21b=_0xdc98b4[_0x35686f(0x11d)]||undefined,_0x21090a=_0x526207[_0x35686f(0x103)]||env('APP')||undefined,_0x49a6db=_0x21090a||_0x24d21b||undefined,_0x59589d=env('ACCESS_KEY')||_0xdc98b4[_0x35686f(0x125)]||undefined,_0x3a7e5e=_0x526207['env']||env(_0x35686f(0x10c))||_0xdc98b4[_0x35686f(0x106)]||DEFAULT_CONFIG_VALUES[_0x35686f(0x106)],_0x10c70b=normalizeEnv(String(_0x3a7e5e)),_0xc73a54=isDaily(_0x10c70b)?_0x35686f(0x11f):isDev(_0x10c70b)?_0x35686f(0x10b):'production',_0x52a2b9=resolveLocalAppAliasCode(_0xdc98b4,_0x49a6db),_0x550a7d=resolveCachedAppCode(_0x49a6db,_0xc73a54,_0x59589d),_0x4dc26a=typeof _0x526207[_0x35686f(0x107)]===_0x35686f(0x133)?_0x526207[_0x35686f(0x107)]:undefined,_0xc392a7=env(_0x35686f(0x115)),_0x50b3ed=_0x21090a?undefined:_0xdc98b4[_0x35686f(0x107)]||_0xdc98b4[_0x35686f(0x103)]||undefined,_0x543432=_0x4dc26a||_0xc392a7||_0x52a2b9||_0x550a7d||_0x50b3ed||undefined,_0x477e1a=_0x4dc26a?_0x35686f(0x118):_0xc392a7?_0x35686f(0x106):_0x52a2b9?_0x35686f(0x121):_0x550a7d?_0x35686f(0x11e):_0x50b3ed?_0x35686f(0x140):undefined,_0x19d2ff=_0xdc98b4[_0x35686f(0x10f)]||DEFAULT_CONFIG_VALUES[_0x35686f(0x10f)],_0x3bf8f6=undefined,_0x23ae77=_0x526207[_0x35686f(0x141)]||env(_0x35686f(0x130))||_0xdc98b4['format'],_0x1e549c=normalizeLegacyOutputFormat(_0x23ae77),_0x4a9094=env('PAGE_SIZE')||_0xdc98b4[_0x35686f(0x129)],_0x4fca56=_0x4a9094?Number(_0x4a9094)||undefined:undefined,_0x161c17=_0xdc98b4[_0x35686f(0x138)]||_0xdc98b4[_0x35686f(0x10a)],_0x14062f=_0x161c17===_0x35686f(0x112)||_0x161c17==='write'||_0x161c17===_0x35686f(0x117)?_0x161c17:DEFAULT_CONFIG_VALUES['riskLevel'],_0x2a86a1=env(_0x35686f(0x11b)),_0x4a73b9=_0x2a86a1==='1'||_0x2a86a1===_0x35686f(0x13b);return{'appCode':typeof _0x543432==='string'&&_0x543432['trim']()?_0x543432[_0x35686f(0x10d)]():undefined,'appCodeSource':_0x477e1a,'env':_0xc73a54,'locale':_0x19d2ff,'cookie':_0x3bf8f6,'accessKey':_0x59589d,'format':_0x1e549c,'pageSize':_0x4fca56,'riskLevel':_0x14062f,'verbose':_0x4a73b9,'defaultApp':_0x24d21b,'currentApp':typeof _0x49a6db===_0x35686f(0x133)?_0x49a6db:undefined,'raw':_0xdc98b4};}function env(_0x2cbe11){return productEnv(_0x2cbe11);}async function buildAuth(_0x15862c){const _0x4ff7a8=a42_0x3bac29,_0x42a096='',_0x437834=!!_0x15862c[_0x4ff7a8(0x125)];return{'cookie':_0x42a096,'isLoggedIn':_0x437834,async 'getOrLogin'(){const _0x4945f6=_0x4ff7a8;if(_0x437834)return _0x42a096;throw CliErrors[_0x4945f6(0x102)]();}};}function a42_0x449a(){const _0x24d74e=['empty','missing','10GxBggL','utf8','newConfigFileName','FORMAT','apiDomain','42AbkJnl','string','values','2973168AKsYDP','isTTY','setRawCommand','riskLevel','setLogPath','inherit','true','message','388911nCkLuc','1459227GAYlht','online','top-level','format','2665794hDpCbZ','production','join','projectConfig','stdin','project','stdout','parse','authRequired','app','setRawMode','.tmp','env','appcode','host','global','maxRisk','development','ENV','trim','stringify','locale','raw','nonInteractive','read','./constant/domain.js','2300oGqSEg','APPCODE','code','high-risk-write','explicit','202iptoSM','1528wzkNDe','VERBOSE','apps','defaultApp','cache','daily','isRaw','local-alias','EXDEV','object','userDomain','accessKey','runtimeDomain','slice','2308832ISbiKJ','pageSize','configFileNames'];a42_0x449a=function(){return _0x24d74e;};return a42_0x449a();}
@@ -1 +1 @@
1
- (function(_0x2734a5,_0x20d088){const _0x6c80aa=a43_0x5887,_0x14c9ea=_0x2734a5();while(!![]){try{const _0x2c8f97=parseInt(_0x6c80aa(0x134))/0x1*(-parseInt(_0x6c80aa(0x11a))/0x2)+-parseInt(_0x6c80aa(0x13a))/0x3+-parseInt(_0x6c80aa(0x136))/0x4+parseInt(_0x6c80aa(0x133))/0x5+-parseInt(_0x6c80aa(0x122))/0x6*(-parseInt(_0x6c80aa(0x127))/0x7)+parseInt(_0x6c80aa(0x13c))/0x8+parseInt(_0x6c80aa(0x149))/0x9;if(_0x2c8f97===_0x20d088)break;else _0x14c9ea['push'](_0x14c9ea['shift']());}catch(_0xcacaba){_0x14c9ea['push'](_0x14c9ea['shift']());}}}(a43_0x5cfb,0xdc8ed));import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';function a43_0x5cfb(){const _0xe33e11=['4610432pnNCzu','SQL\x20query\x20not\x20found:\x20','application/json','errorCode','/client/dataset/query?','POST','errorMsg','topK','test','/client/bff/query/','BFF\x20script\x20not\x20found:\x20id=','abort','tableData','13536639Ygkhzb','filter','stringify','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','message','newConfigFileName','name','/client/knowledge-base/personal/list?appCode=','authRequired','Request\x20timeout:\x20','code','/client/sql/query','string','API\x20error:\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/user/loginUserInfo','?appCode=','invokeSource','3234694BUbUaP','/client/skill/personal/list?appCode=','validation','API\x20error\x20code:\x20','object','isArray','/client/knowledge-base/search','sqlCode','168pxYZgs','apiError','/client/knowledge-base/personal/','/client/knowledge-base/personal/create','appCode','226016WawkcC','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Check\x20your\x20credentials\x20and\x20try\x20again.','AbortError','Configure\x20accessKey\x20in\x20','/client/app/my-apps','signal','/client/skill/personal/create','/client/skill/company/list?appCode=','status','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/update','8307990iIZunX','1pTkJuw','GET','5345544VoPaSj','data','/client/dataset/list','/client/skill/personal/','2366697cqbrXv','json'];a43_0x5cfb=function(){return _0xe33e11;};return a43_0x5cfb();}let _activeAK;export function setActiveAK(_0x29e463){_activeAK=_0x29e463||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x450924,_0x2d2080={}){const _0x5a7f82=a43_0x5887,{method:method=_0x5a7f82(0x135),body:_0x9dd3bf,headers:headers={},timeout:timeout=0x7530}=_0x2d2080,_0xc2288c=_activeAK,_0x5e947c=getRuntimeDomain();if(!_0xc2288c)throw CliErrors[_0x5a7f82(0x151)](_0x5a7f82(0x12b)+PRODUCT_CONFIG[_0x5a7f82(0x14e)]+'.');const _0x38f218=''+_0x5e947c+_0x450924,_0x2efc09={'X-User-AK':_0xc2288c},_0x312b8=new AbortController(),_0x304663=setTimeout(()=>_0x312b8[_0x5a7f82(0x147)](),timeout);try{const _0x4891b2=await fetch(_0x38f218,{'method':method,'headers':{'Content-Type':_0x5a7f82(0x13e),'X-Invoke-Source':PRODUCT_CONFIG[_0x5a7f82(0x119)],..._0x2efc09,...headers},'body':_0x9dd3bf?JSON[_0x5a7f82(0x14b)](_0x9dd3bf):undefined,'signal':_0x312b8[_0x5a7f82(0x12d)]});let _0x191e2a;try{_0x191e2a=await _0x4891b2[_0x5a7f82(0x13b)]();}catch{throw CliErrors[_0x5a7f82(0x123)](_0x5a7f82(0x128)+_0x4891b2[_0x5a7f82(0x130)]+')',_0x4891b2[_0x5a7f82(0x130)]>=0x190?_0x5a7f82(0x129):undefined);}if(!_0x4891b2['ok']||_0x191e2a['success']===![])throw CliErrors[_0x5a7f82(0x123)](_0x191e2a[_0x5a7f82(0x142)]||_0x191e2a[_0x5a7f82(0x14d)]||_0x5a7f82(0x115)+_0x4891b2[_0x5a7f82(0x130)],_0x191e2a[_0x5a7f82(0x13f)]?_0x5a7f82(0x11d)+_0x191e2a[_0x5a7f82(0x13f)]:undefined);return _0x191e2a;}catch(_0x450e60){if(_0x450e60 instanceof Error&&_0x450e60[_0x5a7f82(0x14f)]===_0x5a7f82(0x12a))throw CliErrors[_0x5a7f82(0x123)](_0x5a7f82(0x111)+_0x38f218);throw _0x450e60;}finally{clearTimeout(_0x304663);}}export async function getBffScriptInfo(_0x429a61){const _0x387297=a43_0x5887,_0x297f3b=await apiRequest(_0x387297(0x145)+_0x429a61);if(!_0x297f3b['data'])throw CliErrors['validation'](_0x387297(0x146)+_0x429a61);return _0x297f3b[_0x387297(0x137)];}export async function getSqlQueryInfo(_0x43c91b,_0x3f846b){const _0x1f4b59=a43_0x5887,_0x17f721=await apiRequest(_0x1f4b59(0x113),{'method':'POST','body':{'appCode':_0x43c91b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3f846b}}),_0x123e5c=_0x17f721[_0x1f4b59(0x137)],_0x5542a6=_0x123e5c&&typeof _0x123e5c===_0x1f4b59(0x11e)&&_0x1f4b59(0x148)in _0x123e5c?_0x123e5c['tableData']?.[0x0]:_0x123e5c&&typeof _0x123e5c==='object'&&_0x1f4b59(0x121)in _0x123e5c?_0x123e5c:undefined;if(!_0x5542a6)throw CliErrors[_0x1f4b59(0x11c)](_0x1f4b59(0x13d)+_0x3f846b);return _0x5542a6;}function isRemoteAppItem(_0x4b54fe){const _0x19daa8=a43_0x5887;return!!_0x4b54fe&&typeof _0x4b54fe===_0x19daa8(0x11e)&&typeof _0x4b54fe[_0x19daa8(0x126)]===_0x19daa8(0x114)&&typeof _0x4b54fe['appName']===_0x19daa8(0x114);}function extractRemoteAppItems(_0x5d7ae0){const _0x55496c=a43_0x5887;if(Array[_0x55496c(0x11f)](_0x5d7ae0))return _0x5d7ae0[_0x55496c(0x14a)](isRemoteAppItem);if(!_0x5d7ae0||typeof _0x5d7ae0!==_0x55496c(0x11e))throw CliErrors[_0x55496c(0x123)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x32f773=_0x5d7ae0;if(Array[_0x55496c(0x11f)](_0x32f773[_0x55496c(0x148)]))return _0x32f773[_0x55496c(0x148)][_0x55496c(0x14a)](isRemoteAppItem);if(_0x32f773[_0x55496c(0x137)]&&typeof _0x32f773[_0x55496c(0x137)]==='object'){const _0x10c546=_0x32f773[_0x55496c(0x137)];if(Array[_0x55496c(0x11f)](_0x10c546[_0x55496c(0x148)]))return _0x10c546[_0x55496c(0x148)][_0x55496c(0x14a)](isRemoteAppItem);}throw CliErrors[_0x55496c(0x123)](_0x55496c(0x131));}export async function getMyApps(){const _0x24f600=a43_0x5887,_0x355b06=await apiRequest(_0x24f600(0x12c));return extractRemoteAppItems(_0x355b06[_0x24f600(0x137)]);}export async function getLoginUserInfo(){const _0x4a853c=a43_0x5887,_0x334bdf=await apiRequest(_0x4a853c(0x117));if(!_0x334bdf[_0x4a853c(0x137)]||typeof _0x334bdf[_0x4a853c(0x137)]!==_0x4a853c(0x11e)||Array[_0x4a853c(0x11f)](_0x334bdf['data']))throw CliErrors[_0x4a853c(0x123)](_0x4a853c(0x14c));return _0x334bdf[_0x4a853c(0x137)];}export async function listDatasets(_0x37b1c2,_0x21daf0){const _0x58286b=a43_0x5887,_0x5d4ef7=await apiRequest(_0x58286b(0x138),{'method':_0x58286b(0x141),'body':{'appCode':_0x37b1c2,..._0x21daf0?.[_0x58286b(0x112)]&&{'code':_0x21daf0[_0x58286b(0x112)]},..._0x21daf0?.[_0x58286b(0x14f)]&&{'name':_0x21daf0[_0x58286b(0x14f)]}}});return extractList(_0x5d4ef7[_0x58286b(0x137)]);}export async function getDatasetDetail(_0x3151a4){const _0x4446a8=a43_0x5887,_0x3bd598=/^\d+$/[_0x4446a8(0x144)](_0x3151a4)?'id':'code',_0x2e78ec=await apiRequest(_0x4446a8(0x140)+_0x3bd598+'='+_0x3151a4);return _0x2e78ec[_0x4446a8(0x137)];}export async function listPersonalKnowledgeBaseItems(_0x468edc){const _0x330656=a43_0x5887,_0x1e6eea=await apiRequest(_0x330656(0x150)+encodeURIComponent(_0x468edc));return Array['isArray'](_0x1e6eea[_0x330656(0x137)])?_0x1e6eea['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x483529,_0x108118){const _0x98bd58=a43_0x5887,_0x3d055f=await apiRequest(_0x98bd58(0x124)+_0x483529+_0x98bd58(0x118)+encodeURIComponent(_0x108118));if(!_0x3d055f[_0x98bd58(0x137)])throw CliErrors[_0x98bd58(0x11c)](_0x98bd58(0x116)+_0x483529);return _0x3d055f[_0x98bd58(0x137)];}export async function createPersonalKnowledgeBaseItem(_0x277799,_0x203ff3){const _0x579b86=a43_0x5887,_0xa8ce32=await apiRequest(_0x579b86(0x125),{'method':_0x579b86(0x141),'body':{'appCode':_0x277799,..._0x203ff3}});return _0xa8ce32[_0x579b86(0x137)];}export async function updatePersonalKnowledgeBaseItem(_0x259258,_0x5c73bf,_0x502cd6){const _0x41f0a6=a43_0x5887,_0xe33f20=await apiRequest(_0x41f0a6(0x124)+_0x259258+'/update',{'method':'POST','body':{'appCode':_0x5c73bf,..._0x502cd6}});return _0xe33f20[_0x41f0a6(0x137)];}export async function searchKnowledgeBase(_0x3f66e6,_0x454fa7){const _0x35a65b=a43_0x5887,_0x1b64f9=await apiRequest(_0x35a65b(0x120),{'method':'POST','body':{'appCode':_0x3f66e6,'query':_0x454fa7['query'],..._0x454fa7[_0x35a65b(0x143)]!==undefined?{'topK':_0x454fa7[_0x35a65b(0x143)]}:{}}});return Array[_0x35a65b(0x11f)](_0x1b64f9[_0x35a65b(0x137)])?_0x1b64f9[_0x35a65b(0x137)]:[];}export async function listPersonalRuntimeSkills(_0xe89cf7){const _0x43e408=a43_0x5887,_0xa142e0=await apiRequest(_0x43e408(0x11b)+encodeURIComponent(_0xe89cf7));return Array[_0x43e408(0x11f)](_0xa142e0['data'])?_0xa142e0['data']:[];}export async function listCompanyRuntimeSkills(_0x2479c9){const _0x2449bf=a43_0x5887,_0x10ff17=await apiRequest(_0x2449bf(0x12f)+encodeURIComponent(_0x2479c9));return Array[_0x2449bf(0x11f)](_0x10ff17[_0x2449bf(0x137)])?_0x10ff17['data']:[];}function a43_0x5887(_0x3f7cea,_0xd4cf4b){_0x3f7cea=_0x3f7cea-0x111;const _0x5cfb0a=a43_0x5cfb();let _0x58878a=_0x5cfb0a[_0x3f7cea];return _0x58878a;}export async function createPersonalRuntimeSkill(_0xd22cd3,_0x2889aa){const _0x903967=a43_0x5887,_0x44bd6f=await apiRequest(_0x903967(0x12e),{'method':_0x903967(0x141),'body':{'appCode':_0xd22cd3,..._0x2889aa}});return _0x44bd6f[_0x903967(0x137)];}export async function updatePersonalRuntimeSkill(_0x15cfed,_0x5e8a65,_0x247c46){const _0x49ada4=a43_0x5887,_0x2eed9f=await apiRequest(_0x49ada4(0x139)+encodeURIComponent(_0x15cfed)+_0x49ada4(0x132),{'method':_0x49ada4(0x141),'body':{'appCode':_0x5e8a65,..._0x247c46}});return _0x2eed9f['data'];}
1
+ (function(_0x111a51,_0x574471){const _0x20ed86=a43_0x4a46,_0x407e68=_0x111a51();while(!![]){try{const _0x586da2=-parseInt(_0x20ed86(0x1c5))/0x1*(parseInt(_0x20ed86(0x1d4))/0x2)+parseInt(_0x20ed86(0x1b7))/0x3+-parseInt(_0x20ed86(0x1a4))/0x4+-parseInt(_0x20ed86(0x1c1))/0x5+-parseInt(_0x20ed86(0x1b4))/0x6+-parseInt(_0x20ed86(0x1ce))/0x7+parseInt(_0x20ed86(0x1aa))/0x8*(parseInt(_0x20ed86(0x1bf))/0x9);if(_0x586da2===_0x574471)break;else _0x407e68['push'](_0x407e68['shift']());}catch(_0x14dcff){_0x407e68['push'](_0x407e68['shift']());}}}(a43_0x2de6,0x40132));function a43_0x4a46(_0x3481e3,_0x577de9){_0x3481e3=_0x3481e3-0x19f;const _0x2de6ae=a43_0x2de6();let _0x4a4693=_0x2de6ae[_0x3481e3];return _0x4a4693;}import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a43_0x2de6(){const _0x1f5549=['68965fjCyVP','newConfigFileName','/client/sql/query','SQL\x20query\x20not\x20found:\x20','object','status','?appCode=','Knowledge-base\x20entry\x20not\x20found:\x20id=','message','2799181fJCPMk','code','abort','/client/bff/query/','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','data','10OtUrws','stringify','GET','POST','API\x20error\x20code:\x20','name','/client/dataset/list','242184hORbOY','API\x20error:\x20','query','isArray','topK','/client/knowledge-base/personal/create','448KrMMfY','appCode','/client/knowledge-base/personal/list?appCode=','sqlCode','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','test','errorCode','/client/knowledge-base/personal/','authRequired','BFF\x20script\x20not\x20found:\x20id=','1315140iXQLZJ','/update','signal','514161bQziRK','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','Request\x20timeout:\x20','filter','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tableData','/client/skill/personal/','appName','196623YhjcXA','validation','539625UQtypW','errorMsg','apiError','/client/app/my-apps'];a43_0x2de6=function(){return _0x1f5549;};return a43_0x2de6();}import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x1811b5){_activeAK=_0x1811b5||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0xcfe766,_0x300c4b={}){const _0x5f12fc=a43_0x4a46,{method:method=_0x5f12fc(0x19f),body:_0x360a15,headers:headers={},timeout:timeout=0x7530}=_0x300c4b,_0x1ed1d9=_activeAK,_0x2d1165=getRuntimeDomain();if(!_0x1ed1d9)throw CliErrors[_0x5f12fc(0x1b2)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5f12fc(0x1c6)]+'.');const _0x5619f7=''+_0x2d1165+_0xcfe766,_0x10acfa={'X-User-AK':_0x1ed1d9},_0x59ddcc=new AbortController(),_0xa874cc=setTimeout(()=>_0x59ddcc[_0x5f12fc(0x1d0)](),timeout);try{const _0x5640e6=await fetch(_0x5619f7,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x10acfa,...headers},'body':_0x360a15?JSON[_0x5f12fc(0x1d5)](_0x360a15):undefined,'signal':_0x59ddcc[_0x5f12fc(0x1b6)]});let _0xc602a2;try{_0xc602a2=await _0x5640e6['json']();}catch{throw CliErrors[_0x5f12fc(0x1c3)](_0x5f12fc(0x1bb)+_0x5640e6[_0x5f12fc(0x1ca)]+')',_0x5640e6[_0x5f12fc(0x1ca)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x5640e6['ok']||_0xc602a2['success']===![])throw CliErrors[_0x5f12fc(0x1c3)](_0xc602a2[_0x5f12fc(0x1c2)]||_0xc602a2[_0x5f12fc(0x1cd)]||_0x5f12fc(0x1a5)+_0x5640e6[_0x5f12fc(0x1ca)],_0xc602a2['errorCode']?_0x5f12fc(0x1a1)+_0xc602a2[_0x5f12fc(0x1b0)]:undefined);return _0xc602a2;}catch(_0x119b48){if(_0x119b48 instanceof Error&&_0x119b48[_0x5f12fc(0x1a2)]==='AbortError')throw CliErrors['apiError'](_0x5f12fc(0x1b9)+_0x5619f7);throw _0x119b48;}finally{clearTimeout(_0xa874cc);}}export async function getBffScriptInfo(_0x3244fc){const _0xaf2958=a43_0x4a46,_0x42ee7a=await apiRequest(_0xaf2958(0x1d1)+_0x3244fc);if(!_0x42ee7a[_0xaf2958(0x1d3)])throw CliErrors[_0xaf2958(0x1c0)](_0xaf2958(0x1b3)+_0x3244fc);return _0x42ee7a['data'];}export async function getSqlQueryInfo(_0x4680ee,_0x50e5cb){const _0x10e308=a43_0x4a46,_0x4ed847=await apiRequest(_0x10e308(0x1c7),{'method':'POST','body':{'appCode':_0x4680ee,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x50e5cb}}),_0x3d05ac=_0x4ed847[_0x10e308(0x1d3)],_0x32438f=_0x3d05ac&&typeof _0x3d05ac===_0x10e308(0x1c9)&&_0x10e308(0x1bc)in _0x3d05ac?_0x3d05ac['tableData']?.[0x0]:_0x3d05ac&&typeof _0x3d05ac===_0x10e308(0x1c9)&&_0x10e308(0x1ad)in _0x3d05ac?_0x3d05ac:undefined;if(!_0x32438f)throw CliErrors[_0x10e308(0x1c0)](_0x10e308(0x1c8)+_0x50e5cb);return _0x32438f;}function isRemoteAppItem(_0x38c9e2){const _0x4e403a=a43_0x4a46;return!!_0x38c9e2&&typeof _0x38c9e2===_0x4e403a(0x1c9)&&typeof _0x38c9e2[_0x4e403a(0x1ab)]==='string'&&typeof _0x38c9e2[_0x4e403a(0x1be)]==='string';}function extractRemoteAppItems(_0x5d9ee5){const _0x54facb=a43_0x4a46;if(Array[_0x54facb(0x1a7)](_0x5d9ee5))return _0x5d9ee5['filter'](isRemoteAppItem);if(!_0x5d9ee5||typeof _0x5d9ee5!=='object')throw CliErrors[_0x54facb(0x1c3)](_0x54facb(0x1ae));const _0x130775=_0x5d9ee5;if(Array[_0x54facb(0x1a7)](_0x130775[_0x54facb(0x1bc)]))return _0x130775[_0x54facb(0x1bc)]['filter'](isRemoteAppItem);if(_0x130775[_0x54facb(0x1d3)]&&typeof _0x130775[_0x54facb(0x1d3)]===_0x54facb(0x1c9)){const _0x1d0e5e=_0x130775[_0x54facb(0x1d3)];if(Array[_0x54facb(0x1a7)](_0x1d0e5e['tableData']))return _0x1d0e5e['tableData'][_0x54facb(0x1ba)](isRemoteAppItem);}throw CliErrors[_0x54facb(0x1c3)](_0x54facb(0x1d2));}export async function getMyApps(){const _0x58b992=a43_0x4a46,_0x5d48a8=await apiRequest(_0x58b992(0x1c4));return extractRemoteAppItems(_0x5d48a8['data']);}export async function getLoginUserInfo(){const _0x1e1c82=a43_0x4a46,_0x3499b5=await apiRequest('/client/user/loginUserInfo');if(!_0x3499b5[_0x1e1c82(0x1d3)]||typeof _0x3499b5[_0x1e1c82(0x1d3)]!==_0x1e1c82(0x1c9)||Array[_0x1e1c82(0x1a7)](_0x3499b5['data']))throw CliErrors[_0x1e1c82(0x1c3)](_0x1e1c82(0x1b8));return _0x3499b5['data'];}export async function listDatasets(_0x12ae92,_0x4e8bc2){const _0x2b3f71=a43_0x4a46,_0x23d0ff=await apiRequest(_0x2b3f71(0x1a3),{'method':_0x2b3f71(0x1a0),'body':{'appCode':_0x12ae92,..._0x4e8bc2?.[_0x2b3f71(0x1cf)]&&{'code':_0x4e8bc2[_0x2b3f71(0x1cf)]},..._0x4e8bc2?.['name']&&{'name':_0x4e8bc2[_0x2b3f71(0x1a2)]}}});return extractList(_0x23d0ff[_0x2b3f71(0x1d3)]);}export async function getDatasetDetail(_0x447c16){const _0x276b66=a43_0x4a46,_0x54be77=/^\d+$/[_0x276b66(0x1af)](_0x447c16)?'id':_0x276b66(0x1cf),_0x136f29=await apiRequest('/client/dataset/query?'+_0x54be77+'='+_0x447c16);return _0x136f29[_0x276b66(0x1d3)];}export async function listPersonalKnowledgeBaseItems(_0x40f8da){const _0x4aacc7=a43_0x4a46,_0x3e51e7=await apiRequest(_0x4aacc7(0x1ac)+encodeURIComponent(_0x40f8da));return Array[_0x4aacc7(0x1a7)](_0x3e51e7[_0x4aacc7(0x1d3)])?_0x3e51e7['data']:[];}export async function getPersonalKnowledgeBaseItem(_0xa16b27,_0xd16d16){const _0x315d3a=a43_0x4a46,_0xa0ca73=await apiRequest(_0x315d3a(0x1b1)+_0xa16b27+_0x315d3a(0x1cb)+encodeURIComponent(_0xd16d16));if(!_0xa0ca73['data'])throw CliErrors[_0x315d3a(0x1c0)](_0x315d3a(0x1cc)+_0xa16b27);return _0xa0ca73[_0x315d3a(0x1d3)];}export async function createPersonalKnowledgeBaseItem(_0x5309d0,_0x4d4fc2){const _0x38da89=a43_0x4a46,_0x2bbe40=await apiRequest(_0x38da89(0x1a9),{'method':_0x38da89(0x1a0),'body':{'appCode':_0x5309d0,..._0x4d4fc2}});return _0x2bbe40['data'];}export async function updatePersonalKnowledgeBaseItem(_0x352eb8,_0x1b4278,_0x4a20a7){const _0x3c2547=a43_0x4a46,_0x9ea9d7=await apiRequest(_0x3c2547(0x1b1)+_0x352eb8+_0x3c2547(0x1b5),{'method':_0x3c2547(0x1a0),'body':{'appCode':_0x1b4278,..._0x4a20a7}});return _0x9ea9d7['data'];}export async function searchKnowledgeBase(_0x4d4c32,_0x5038e9){const _0x333b28=a43_0x4a46,_0x2a2e50=await apiRequest('/client/knowledge-base/search',{'method':_0x333b28(0x1a0),'body':{'appCode':_0x4d4c32,'query':_0x5038e9[_0x333b28(0x1a6)],..._0x5038e9[_0x333b28(0x1a8)]!==undefined?{'topK':_0x5038e9[_0x333b28(0x1a8)]}:{}}});return Array['isArray'](_0x2a2e50['data'])?_0x2a2e50[_0x333b28(0x1d3)]:[];}export async function listPersonalRuntimeSkills(_0x10f083){const _0x3755fa=a43_0x4a46,_0x270dec=await apiRequest('/client/skill/personal/list?appCode='+encodeURIComponent(_0x10f083));return Array['isArray'](_0x270dec['data'])?_0x270dec[_0x3755fa(0x1d3)]:[];}export async function listCompanyRuntimeSkills(_0x18b4a9){const _0x115740=a43_0x4a46,_0x524e5e=await apiRequest('/client/skill/company/list?appCode='+encodeURIComponent(_0x18b4a9));return Array['isArray'](_0x524e5e['data'])?_0x524e5e[_0x115740(0x1d3)]:[];}export async function createPersonalRuntimeSkill(_0x2c263d,_0x1bfe40){const _0x332ba0=a43_0x4a46,_0x3d4c51=await apiRequest('/client/skill/personal/create',{'method':_0x332ba0(0x1a0),'body':{'appCode':_0x2c263d,..._0x1bfe40}});return _0x3d4c51['data'];}export async function updatePersonalRuntimeSkill(_0x2fc240,_0xc7e0f1,_0x63423d){const _0x3ae1c4=a43_0x4a46,_0x3fa7af=await apiRequest(_0x3ae1c4(0x1bd)+encodeURIComponent(_0x2fc240)+_0x3ae1c4(0x1b5),{'method':'POST','body':{'appCode':_0xc7e0f1,..._0x63423d}});return _0x3fa7af[_0x3ae1c4(0x1d3)];}
@@ -1 +1 @@
1
- (function(_0x514727,_0x6e4ce9){const _0xe8122e=a44_0x1d1b,_0x5b8a3a=_0x514727();while(!![]){try{const _0x590e02=-parseInt(_0xe8122e(0x155))/0x1*(parseInt(_0xe8122e(0x159))/0x2)+-parseInt(_0xe8122e(0x15c))/0x3*(-parseInt(_0xe8122e(0x157))/0x4)+parseInt(_0xe8122e(0x152))/0x5*(-parseInt(_0xe8122e(0x14c))/0x6)+parseInt(_0xe8122e(0x158))/0x7+parseInt(_0xe8122e(0x15f))/0x8*(-parseInt(_0xe8122e(0x154))/0x9)+parseInt(_0xe8122e(0x14f))/0xa+-parseInt(_0xe8122e(0x15e))/0xb*(-parseInt(_0xe8122e(0x150))/0xc);if(_0x590e02===_0x6e4ce9)break;else _0x5b8a3a['push'](_0x5b8a3a['shift']());}catch(_0x20c0ef){_0x5b8a3a['push'](_0x5b8a3a['shift']());}}}(a44_0x4155,0x63ed5));import{listDatasets}from'../core/api-client.js';function a44_0x4155(){const _0x37e1c8=['18XTQtWN','3AYmaWT','dbtableConfig','524uimTRa','4374251zzqQDX','165622lKHkVU','dbName','dbId','1875MQYsrL','db-','6347ykIgqd','3270192HLWiiO','833574GHYpFE','entries','has','6286240crtKoK','8688mHfwIO','find','10SwxDFE','set'];a44_0x4155=function(){return _0x37e1c8;};return a44_0x4155();}const cache=new Map();function a44_0x1d1b(_0x462c33,_0x5136f1){_0x462c33=_0x462c33-0x14c;const _0x415538=a44_0x4155();let _0x1d1bce=_0x415538[_0x462c33];return _0x1d1bce;}export async function listDatabases(_0x136355){const _0x2728c6=a44_0x1d1b;if(cache[_0x2728c6(0x14e)](_0x136355))return cache['get'](_0x136355);const _0x33900e=await listDatasets(_0x136355),_0x29afd4=new Map();for(const _0x570fea of _0x33900e){const _0xd6a097=_0x570fea[_0x2728c6(0x156)];_0xd6a097?.[_0x2728c6(0x15b)]!=null&&_0x29afd4[_0x2728c6(0x153)](_0xd6a097[_0x2728c6(0x15b)],_0xd6a097[_0x2728c6(0x15a)]??_0x2728c6(0x15d)+_0xd6a097[_0x2728c6(0x15b)]);}const _0x234c16=[..._0x29afd4[_0x2728c6(0x14d)]()]['map'](([_0x226d27,_0x115e83])=>({'dbId':_0x226d27,'dbName':_0x115e83}));return cache[_0x2728c6(0x153)](_0x136355,_0x234c16),_0x234c16;}export async function getDbName(_0xa24e42,_0x32624d){const _0x2a4dd2=a44_0x1d1b;try{const _0x3a6fee=await listDatabases(_0xa24e42);return _0x3a6fee[_0x2a4dd2(0x151)](_0x3a19d4=>_0x3a19d4[_0x2a4dd2(0x15b)]===_0x32624d)?.[_0x2a4dd2(0x15a)];}catch{return undefined;}}
1
+ function a44_0x5882(_0x5e0226,_0x132708){_0x5e0226=_0x5e0226-0x1db;const _0x3fe059=a44_0x3fe0();let _0x588211=_0x3fe059[_0x5e0226];return _0x588211;}(function(_0x479dd2,_0x3dd33f){const _0x55f255=a44_0x5882,_0x109e8b=_0x479dd2();while(!![]){try{const _0x33b921=parseInt(_0x55f255(0x1de))/0x1+-parseInt(_0x55f255(0x1e6))/0x2*(parseInt(_0x55f255(0x1eb))/0x3)+parseInt(_0x55f255(0x1e7))/0x4+-parseInt(_0x55f255(0x1db))/0x5*(-parseInt(_0x55f255(0x1e9))/0x6)+parseInt(_0x55f255(0x1e4))/0x7+parseInt(_0x55f255(0x1dc))/0x8+parseInt(_0x55f255(0x1df))/0x9*(-parseInt(_0x55f255(0x1e3))/0xa);if(_0x33b921===_0x3dd33f)break;else _0x109e8b['push'](_0x109e8b['shift']());}catch(_0x5e676b){_0x109e8b['push'](_0x109e8b['shift']());}}}(a44_0x3fe0,0x4fe02));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a44_0x3fe0(){const _0x359282=['dbId','17924vkBLJb','1866096hTkqhB','set','516ZfvRBb','entries','75CIjuKn','5260dVQIlv','4852048XPfjne','map','22474IfwWVt','81aqwCDP','has','dbtableConfig','get','1256810kBzmKT','3474611ivGwTO'];a44_0x3fe0=function(){return _0x359282;};return a44_0x3fe0();}export async function listDatabases(_0x4493f7){const _0x514bf8=a44_0x5882;if(cache[_0x514bf8(0x1e0)](_0x4493f7))return cache[_0x514bf8(0x1e2)](_0x4493f7);const _0x5bff15=await listDatasets(_0x4493f7),_0x4199ab=new Map();for(const _0x1f127b of _0x5bff15){const _0x356152=_0x1f127b[_0x514bf8(0x1e1)];_0x356152?.['dbId']!=null&&_0x4199ab[_0x514bf8(0x1e8)](_0x356152['dbId'],_0x356152['dbName']??'db-'+_0x356152[_0x514bf8(0x1e5)]);}const _0x55c05a=[..._0x4199ab[_0x514bf8(0x1ea)]()][_0x514bf8(0x1dd)](([_0x2e519d,_0x3d084d])=>({'dbId':_0x2e519d,'dbName':_0x3d084d}));return cache['set'](_0x4493f7,_0x55c05a),_0x55c05a;}export async function getDbName(_0x50967d,_0x1dcd99){const _0x52838a=a44_0x5882;try{const _0x59d60f=await listDatabases(_0x50967d);return _0x59d60f['find'](_0x59257e=>_0x59257e[_0x52838a(0x1e5)]===_0x1dcd99)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- function a45_0x1964(){const _0x1399e4=['update','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','sql','36650zyDbfk','accessKey','58274oBTIWp','dataset_','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','bff','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','365GPaQtg','436167FYHzzr','batchCreate','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','1123479fqKiBE','16wTDRmJ','4KCutSI','execute','275hGxJCn','getOne','delete','function','686247mIJwQB','16806JtpTZU','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','isArray','authMode','models','610604posDoa'];a45_0x1964=function(){return _0x1399e4;};return a45_0x1964();}(function(_0x4ceb75,_0x4c111b){const _0x5ee12f=a45_0x5d94,_0x29809e=_0x4ceb75();while(!![]){try{const _0x537e81=parseInt(_0x5ee12f(0x1a0))/0x1*(parseInt(_0x5ee12f(0x1ab))/0x2)+parseInt(_0x5ee12f(0x194))/0x3+parseInt(_0x5ee12f(0x19a))/0x4+-parseInt(_0x5ee12f(0x1a5))/0x5*(parseInt(_0x5ee12f(0x195))/0x6)+-parseInt(_0x5ee12f(0x1a9))/0x7+parseInt(_0x5ee12f(0x1aa))/0x8*(-parseInt(_0x5ee12f(0x1a6))/0x9)+parseInt(_0x5ee12f(0x19e))/0xa*(parseInt(_0x5ee12f(0x190))/0xb);if(_0x537e81===_0x4c111b)break;else _0x29809e['push'](_0x29809e['shift']());}catch(_0x5c4c9e){_0x29809e['push'](_0x29809e['shift']());}}}(a45_0x1964,0x1f2bd));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x30b731){const _0x196726=a45_0x5d94;_client=createClient({'appCode':_0x30b731['appCode'],'env':_0x30b731['env'],'authMode':_0x30b731[_0x196726(0x198)],..._0x30b731[_0x196726(0x19f)]?{'accessKey':_0x30b731['accessKey']}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0xfcff1f=a45_0x5d94;if(!_client)throw new Error(_0xfcff1f(0x1a2));return _client;}function a45_0x5d94(_0x3f9369,_0x20877a){_0x3f9369=_0x3f9369-0x18f;const _0x196479=a45_0x1964();let _0x5d9400=_0x196479[_0x3f9369];return _0x5d9400;}export async function executeData(_0x4b6e46,_0x5eb2e0,_0x30306d){const _0x50bdb8=a45_0x5d94,_0x27dd88=ensureClient(),_0x5297a8=_0x50bdb8(0x1a1)+_0x4b6e46,_0x351b5a=_0x27dd88[_0x50bdb8(0x199)][_0x5297a8];if(!_0x351b5a||typeof _0x351b5a[_0x5eb2e0]!==_0x50bdb8(0x193))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x5eb2e0+'\x22.\x20'+_0x50bdb8(0x19c));if(_0x5eb2e0===_0x50bdb8(0x1a7))return _0x351b5a[_0x50bdb8(0x1a7)](parseBatchCreateItemsFromParams(_0x30306d));const _0x5ae066=_0x30306d!==undefined&&_0x30306d!==null&&!Array[_0x50bdb8(0x197)](_0x30306d)?_0x30306d:{};switch(_0x5eb2e0){case'getOne':{const _0x5d85e2=_0x5ae066['id'];if(_0x5d85e2===undefined||_0x5d85e2===null)throw new Error(_0x50bdb8(0x1a4));return _0x351b5a[_0x50bdb8(0x191)](_0x5d85e2);}case _0x50bdb8(0x19b):{const {id:_0x1718b0,..._0x2b6182}=_0x5ae066;if(_0x1718b0===undefined||_0x1718b0===null)throw new Error(_0x50bdb8(0x196));return _0x351b5a[_0x50bdb8(0x19b)](_0x1718b0,_0x2b6182);}case _0x50bdb8(0x192):{const _0x1c3657=_0x5ae066['id'];if(_0x1c3657===undefined||_0x1c3657===null)throw new Error(_0x50bdb8(0x1a8));return _0x351b5a['delete'](_0x1c3657);}default:return _0x351b5a[_0x5eb2e0](_0x5ae066);}}export async function executeSdkSql(_0xfa2b1f,_0x2af46e){const _0x4a2d8b=a45_0x5d94,_0x29cc7d=ensureClient();return _0x29cc7d[_0x4a2d8b(0x19d)][_0x4a2d8b(0x18f)]({'sqlCode':_0xfa2b1f,'params':_0x2af46e});}export async function executeSdkBff(_0xe5965a,_0x216873){const _0x1086e2=a45_0x5d94,_0x1deaa0=ensureClient();return _0x1deaa0[_0x1086e2(0x1a3)][_0x1086e2(0x18f)]({'scriptName':_0xe5965a,'params':_0x216873});}
1
+ (function(_0x5e7b5d,_0x50c362){const _0x74b37c=a45_0x16a9,_0x314aae=_0x5e7b5d();while(!![]){try{const _0x52e695=-parseInt(_0x74b37c(0x163))/0x1+-parseInt(_0x74b37c(0x157))/0x2+-parseInt(_0x74b37c(0x153))/0x3*(parseInt(_0x74b37c(0x15d))/0x4)+-parseInt(_0x74b37c(0x15a))/0x5+-parseInt(_0x74b37c(0x15c))/0x6+parseInt(_0x74b37c(0x161))/0x7*(-parseInt(_0x74b37c(0x164))/0x8)+parseInt(_0x74b37c(0x160))/0x9;if(_0x52e695===_0x50c362)break;else _0x314aae['push'](_0x314aae['shift']());}catch(_0x4ea9db){_0x314aae['push'](_0x314aae['shift']());}}}(a45_0x2313,0xa7732));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a45_0x16a9(_0x34ff64,_0x245e0f){_0x34ff64=_0x34ff64-0x14f;const _0x23130d=a45_0x2313();let _0x16a93b=_0x23130d[_0x34ff64];return _0x16a93b;}let _client;export function initSdkClient(_0x59cdc2){const _0x3602f9=a45_0x16a9;_client=createClient({'appCode':_0x59cdc2[_0x3602f9(0x168)],'env':_0x59cdc2['env'],'authMode':_0x59cdc2['authMode'],..._0x59cdc2[_0x3602f9(0x151)]?{'accessKey':_0x59cdc2['accessKey']}:{},'options':{'timeout':0x7530}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}export async function executeData(_0x39b8a3,_0xd7d1b7,_0x4f2f06){const _0x553262=a45_0x16a9,_0x5c9895=ensureClient(),_0x1a7008='dataset_'+_0x39b8a3,_0x28e103=_0x5c9895[_0x553262(0x15b)][_0x1a7008];if(!_0x28e103||typeof _0x28e103[_0xd7d1b7]!==_0x553262(0x156))throw new Error(_0x553262(0x15f)+_0xd7d1b7+'\x22.\x20'+_0x553262(0x155));if(_0xd7d1b7===_0x553262(0x158))return _0x28e103[_0x553262(0x158)](parseBatchCreateItemsFromParams(_0x4f2f06));const _0x2fbd5d=_0x4f2f06!==undefined&&_0x4f2f06!==null&&!Array[_0x553262(0x14f)](_0x4f2f06)?_0x4f2f06:{};switch(_0xd7d1b7){case _0x553262(0x159):{const _0x2b9eba=_0x2fbd5d['id'];if(_0x2b9eba===undefined||_0x2b9eba===null)throw new Error(_0x553262(0x154));return _0x28e103['getOne'](_0x2b9eba);}case'update':{const {id:_0x486d22,..._0x19dd79}=_0x2fbd5d;if(_0x486d22===undefined||_0x486d22===null)throw new Error(_0x553262(0x166));return _0x28e103[_0x553262(0x15e)](_0x486d22,_0x19dd79);}case _0x553262(0x150):{const _0x4078f3=_0x2fbd5d['id'];if(_0x4078f3===undefined||_0x4078f3===null)throw new Error(_0x553262(0x165));return _0x28e103['delete'](_0x4078f3);}default:return _0x28e103[_0xd7d1b7](_0x2fbd5d);}}function a45_0x2313(){const _0x310fb4=['update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','bff','appCode','isArray','delete','accessKey','execute','12KLknnH','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','function','1412622tYEyyy','batchCreate','getOne','4843380ojgSYm','models','7793754yrwSKu','18828LguRcj','update','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','40434147vWzzyf','312305zDRDRQ','sql','367885QuTUOQ','80RmALIW','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27'];a45_0x2313=function(){return _0x310fb4;};return a45_0x2313();}export async function executeSdkSql(_0x8f7514,_0x2f0884){const _0x4f3d8b=a45_0x16a9,_0xc4ab4d=ensureClient();return _0xc4ab4d[_0x4f3d8b(0x162)][_0x4f3d8b(0x152)]({'sqlCode':_0x8f7514,'params':_0x2f0884});}export async function executeSdkBff(_0x43a3db,_0x4dbda8){const _0x3f8512=a45_0x16a9,_0x1e7542=ensureClient();return _0x1e7542[_0x3f8512(0x167)][_0x3f8512(0x152)]({'scriptName':_0x43a3db,'params':_0x4dbda8});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a46_0x2abfc5=a46_0x5f57;(function(_0x55f2d2,_0x5a4100){const _0x313c5c=a46_0x5f57,_0x31c19c=_0x55f2d2();while(!![]){try{const _0x585855=parseInt(_0x313c5c(0x15f))/0x1+parseInt(_0x313c5c(0x161))/0x2*(-parseInt(_0x313c5c(0x153))/0x3)+-parseInt(_0x313c5c(0x162))/0x4*(parseInt(_0x313c5c(0x159))/0x5)+-parseInt(_0x313c5c(0x158))/0x6*(parseInt(_0x313c5c(0x157))/0x7)+-parseInt(_0x313c5c(0x154))/0x8+parseInt(_0x313c5c(0x15d))/0x9*(parseInt(_0x313c5c(0x156))/0xa)+parseInt(_0x313c5c(0x15b))/0xb;if(_0x585855===_0x5a4100)break;else _0x31c19c['push'](_0x31c19c['shift']());}catch(_0x4c5edf){_0x31c19c['push'](_0x31c19c['shift']());}}}(a46_0x36b0,0x5ce9d));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a46_0x36b0(){const _0x17d974=['932210uPPRqn','91hyJtyj','268074gjHLAj','45635Omlbtd','Set\x20appcode\x20via\x20--appcode\x20or\x20','12031921MnXhtg','\x20auth\x20login`.','72icBQdC','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','200663iaAqNV','newConfigFileName','2wiScFB','292ficgCf','116601hkMRQV','2989632IIInSk','\x20or\x20run\x20`'];a46_0x36b0=function(){return _0x17d974;};return a46_0x36b0();}function a46_0x5f57(_0x3b087c,_0xbde3b8){_0x3b087c=_0x3b087c-0x153;const _0x36b016=a46_0x36b0();let _0x5f5797=_0x36b016[_0x3b087c];return _0x5f5797;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a46_0x2abfc5(0x160)]+a46_0x2abfc5(0x155)+CLI_BIN_NAME+a46_0x2abfc5(0x15c),'configMissingHint':a46_0x2abfc5(0x15a)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a46_0x2abfc5(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'\x20file.'});
1
+ function a46_0x4482(){const _0x3642f8=['3580600TWBfso','10449JHrwcm','63KGzeaN','658276efuzcv','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20auth\x20login`.','\x20or\x20run\x20`','20LXNKNv','4oOcWfR','705711dERsWs','\x20file.','newConfigFileName','Configure\x20accessKey\x20in\x20','696sqvvNe','Set\x20appcode\x20via\x20--appcode\x20or\x20','38424BnOqyD','6357340KJJowh','416530OUPyXl'];a46_0x4482=function(){return _0x3642f8;};return a46_0x4482();}function a46_0x351a(_0x2b38c8,_0x142a1b){_0x2b38c8=_0x2b38c8-0x163;const _0x4482ce=a46_0x4482();let _0x351a07=_0x4482ce[_0x2b38c8];return _0x351a07;}const a46_0x2efa5d=a46_0x351a;(function(_0x3bac48,_0x1777ec){const _0x46c03b=a46_0x351a,_0x24d851=_0x3bac48();while(!![]){try{const _0x509480=parseInt(_0x46c03b(0x168))/0x1+-parseInt(_0x46c03b(0x171))/0x2*(parseInt(_0x46c03b(0x172))/0x3)+-parseInt(_0x46c03b(0x16c))/0x4*(parseInt(_0x46c03b(0x170))/0x5)+-parseInt(_0x46c03b(0x166))/0x6*(-parseInt(_0x46c03b(0x16b))/0x7)+-parseInt(_0x46c03b(0x164))/0x8*(-parseInt(_0x46c03b(0x16a))/0x9)+parseInt(_0x46c03b(0x169))/0xa+parseInt(_0x46c03b(0x167))/0xb;if(_0x509480===_0x1777ec)break;else _0x24d851['push'](_0x24d851['shift']());}catch(_0x17e925){_0x24d851['push'](_0x24d851['shift']());}}}(a46_0x4482,0x5d5d7));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a46_0x2efa5d(0x163)+PRODUCT_CONFIG[a46_0x2efa5d(0x174)]+a46_0x2efa5d(0x16f)+CLI_BIN_NAME+a46_0x2efa5d(0x16e),'configMissingHint':a46_0x2efa5d(0x165)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a46_0x2efa5d(0x16d)+PRODUCT_CONFIG[a46_0x2efa5d(0x174)]+a46_0x2efa5d(0x173)});
@@ -1 +1 @@
1
- (function(_0x6abef3,_0x440926){var _0xc6ecea=a47_0xffad,_0x59af08=_0x6abef3();while(!![]){try{var _0x4cc946=parseInt(_0xc6ecea(0x12b))/0x1*(parseInt(_0xc6ecea(0x128))/0x2)+-parseInt(_0xc6ecea(0x126))/0x3*(-parseInt(_0xc6ecea(0x129))/0x4)+parseInt(_0xc6ecea(0x12d))/0x5+-parseInt(_0xc6ecea(0x127))/0x6+-parseInt(_0xc6ecea(0x12c))/0x7+parseInt(_0xc6ecea(0x125))/0x8*(-parseInt(_0xc6ecea(0x12e))/0x9)+parseInt(_0xc6ecea(0x12a))/0xa;if(_0x4cc946===_0x440926)break;else _0x59af08['push'](_0x59af08['shift']());}catch(_0x4d71c7){_0x59af08['push'](_0x59af08['shift']());}}}(a47_0x3f11,0x71794));function a47_0xffad(_0x5580ad,_0x508a22){_0x5580ad=_0x5580ad-0x125;var _0x3f1198=a47_0x3f11();var _0xffad0a=_0x3f1198[_0x5580ad];return _0xffad0a;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x3d9aa8}from'@lovrabet/cli-framework';export function buildAllFlags(_0x31812a){return a47_0x3d9aa8(_0x31812a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a47_0x3f11(){var _0x3f03b0=['1773lGhuAn','31016lHIHbx','48219vpyOPm','1490910LoMMlz','358NEzKTt','68KTaUUl','7506590hXdXvG','3631DYsGgf','3412703BHpSkI','1453610YQFVoX'];a47_0x3f11=function(){return _0x3f03b0;};return a47_0x3f11();}
1
+ (function(_0x259f70,_0x3221ec){var _0x3dce5e=a47_0x27c1,_0x785533=_0x259f70();while(!![]){try{var _0x13fcd6=parseInt(_0x3dce5e(0x9d))/0x1+-parseInt(_0x3dce5e(0xa0))/0x2*(parseInt(_0x3dce5e(0x9f))/0x3)+-parseInt(_0x3dce5e(0x9a))/0x4+-parseInt(_0x3dce5e(0x9c))/0x5+-parseInt(_0x3dce5e(0xa3))/0x6*(parseInt(_0x3dce5e(0xa2))/0x7)+-parseInt(_0x3dce5e(0x9e))/0x8+-parseInt(_0x3dce5e(0x9b))/0x9*(-parseInt(_0x3dce5e(0xa1))/0xa);if(_0x13fcd6===_0x3221ec)break;else _0x785533['push'](_0x785533['shift']());}catch(_0x26e4d5){_0x785533['push'](_0x785533['shift']());}}}(a47_0x17f1,0x71468));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a47_0x27c1(_0x3251d0,_0x324758){_0x3251d0=_0x3251d0-0x9a;var _0x17f1b7=a47_0x17f1();var _0x27c1e4=_0x17f1b7[_0x3251d0];return _0x27c1e4;}function a47_0x17f1(){var _0x318814=['1799862BBXHoO','3509764ErLFlo','27OkTFbT','4325310uLMgNM','807517PcVjVY','3308944GyhWWL','252393dYKruA','4eKQsVG','7602730iFWROe','7uUSnny'];a47_0x17f1=function(){return _0x318814;};return a47_0x17f1();}import{buildAllFlags as a47_0x5275ac}from'@lovrabet/cli-framework';export function buildAllFlags(_0xfcd0c){return a47_0x5275ac(_0xfcd0c,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x28e90f,_0x3cfffb){const _0x5826b3=a48_0x269f,_0x21da7b=_0x28e90f();while(!![]){try{const _0x5d1f0b=-parseInt(_0x5826b3(0x1bf))/0x1+-parseInt(_0x5826b3(0x1c6))/0x2*(-parseInt(_0x5826b3(0x1c0))/0x3)+parseInt(_0x5826b3(0x1c3))/0x4+parseInt(_0x5826b3(0x1c2))/0x5*(parseInt(_0x5826b3(0x1c1))/0x6)+parseInt(_0x5826b3(0x1c9))/0x7+parseInt(_0x5826b3(0x1c8))/0x8+parseInt(_0x5826b3(0x1c5))/0x9*(-parseInt(_0x5826b3(0x1c7))/0xa);if(_0x5d1f0b===_0x3cfffb)break;else _0x21da7b['push'](_0x21da7b['shift']());}catch(_0xa72646){_0x21da7b['push'](_0x21da7b['shift']());}}}(a48_0x4d77,0x211e1));function a48_0x269f(_0x142c32,_0x43927b){_0x142c32=_0x142c32-0x1bf;const _0x4d7733=a48_0x4d77();let _0x269fd9=_0x4d7733[_0x142c32];return _0x269fd9;}function a48_0x4d77(){const _0x5dcb69=['178340wGRptN','body','18seZZqa','10dypgpE','495110zxpEoA','1064072ySKSAn','302673jsfuLX','99030vInLds','942TqmODk','667788Rjqyiy','5LSfAPd'];a48_0x4d77=function(){return _0x5dcb69;};return a48_0x4d77();}export function dryRun(_0x2c8393,_0x1651b5){const _0x110a99={'method':_0x2c8393,'url':_0x1651b5},_0x1a3381={'body'(_0x3333ba){const _0x10ff1c=a48_0x269f;return _0x110a99[_0x10ff1c(0x1c4)]=_0x3333ba,_0x1a3381;},'description'(_0x2b97a2){return _0x110a99['description']=_0x2b97a2,_0x1a3381;},'build'(){return{..._0x110a99};}};return _0x1a3381;}
1
+ (function(_0x29d066,_0x44e412){const _0x11f229=a48_0x38ae,_0x21dba5=_0x29d066();while(!![]){try{const _0x1ee9dc=parseInt(_0x11f229(0x1be))/0x1*(parseInt(_0x11f229(0x1ba))/0x2)+parseInt(_0x11f229(0x1c0))/0x3+-parseInt(_0x11f229(0x1c3))/0x4+parseInt(_0x11f229(0x1b9))/0x5*(parseInt(_0x11f229(0x1b8))/0x6)+-parseInt(_0x11f229(0x1c1))/0x7*(parseInt(_0x11f229(0x1bc))/0x8)+-parseInt(_0x11f229(0x1bf))/0x9*(-parseInt(_0x11f229(0x1b7))/0xa)+-parseInt(_0x11f229(0x1bd))/0xb;if(_0x1ee9dc===_0x44e412)break;else _0x21dba5['push'](_0x21dba5['shift']());}catch(_0x2ff66f){_0x21dba5['push'](_0x21dba5['shift']());}}}(a48_0x516d,0x4adf6));function a48_0x516d(){const _0x2d6434=['167497yRjerA','396rVFjaS','1079478zsOMxd','49KBagpZ','description','980896JvGxih','113760RtzANT','2452350jxkfya','5vfReAf','6TAKOYY','body','679088ckCxCW','6880302vSrzML'];a48_0x516d=function(){return _0x2d6434;};return a48_0x516d();}function a48_0x38ae(_0x540e60,_0x2e7108){_0x540e60=_0x540e60-0x1b7;const _0x516d90=a48_0x516d();let _0x38ae68=_0x516d90[_0x540e60];return _0x38ae68;}export function dryRun(_0x5d1504,_0x47cc95){const _0x45fd85={'method':_0x5d1504,'url':_0x47cc95},_0x167bcf={'body'(_0x148151){const _0x48bd07=a48_0x38ae;return _0x45fd85[_0x48bd07(0x1bb)]=_0x148151,_0x167bcf;},'description'(_0x55fca6){const _0x59b43f=a48_0x38ae;return _0x45fd85[_0x59b43f(0x1c2)]=_0x55fca6,_0x167bcf;},'build'(){return{..._0x45fd85};}};return _0x167bcf;}