@lovrabet/lovrabet-cli 2.0.12 → 2.0.13-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -1
@@ -1 +1 @@
1
- function a28_0x4f09(){const _0x323bde=['SQL\x20execution\x20failed','9NNxrsc','read','5896200OLaViC','execError','str','2gjkyWy','52044UBPaIX','length','5305038ilsTDV','52ZqGKQy','273429vXiYxv','\x20row(s)\x20in\x20','Returned\x20','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1874260RUoPPY','sql','1894216OddJKB','1054204GFDwOY','13299labVYG','execResult','7ONVsVu','sqlcode'];a28_0x4f09=function(){return _0x323bde;};return a28_0x4f09();}const a28_0xf0e975=a28_0x12d3;(function(_0x277419,_0x2c7521){const _0x49521e=a28_0x12d3,_0x3e63db=_0x277419();while(!![]){try{const _0x56d299=parseInt(_0x49521e(0x74))/0x1*(-parseInt(_0x49521e(0x80))/0x2)+parseInt(_0x49521e(0x79))/0x3*(-parseInt(_0x49521e(0x78))/0x4)+-parseInt(_0x49521e(0x88))/0x5+-parseInt(_0x49521e(0x77))/0x6+-parseInt(_0x49521e(0x83))/0x7*(-parseInt(_0x49521e(0x7f))/0x8)+-parseInt(_0x49521e(0x86))/0x9*(parseInt(_0x49521e(0x7d))/0xa)+parseInt(_0x49521e(0x81))/0xb*(parseInt(_0x49521e(0x75))/0xc);if(_0x56d299===_0x2c7521)break;else _0x3e63db['push'](_0x3e63db['shift']());}catch(_0x43e5b7){_0x3e63db['push'](_0x3e63db['shift']());}}}(a28_0x4f09,0xf1c64));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a28_0x12d3(_0x328a24,_0x326b8b){_0x328a24=_0x328a24-0x74;const _0x4f0973=a28_0x4f09();let _0x12d337=_0x4f0973[_0x328a24];return _0x12d337;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a28_0xf0e975(0x7e),'command':'exec','description':a28_0xf0e975(0x7c),'risk':a28_0xf0e975(0x87),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2cfbf9){const _0x4f2c0b=a28_0xf0e975,_0x2b8eb7=parseJsonParams(_0x2cfbf9[_0x4f2c0b(0x8a)]('params')),_0x67c88a=Date['now'](),_0x244074=await executeSdkSql(_0x2cfbf9[_0x4f2c0b(0x8a)](_0x4f2c0b(0x84)),_0x2b8eb7),_0x425ba0=Date['now']()-_0x67c88a,_0x909608=_0x244074?.[_0x4f2c0b(0x82)]??_0x244074,_0x48f416=_0x244074?.['execSuccess']??!![];if(!_0x48f416)return{'ok':![],'data':{'error':_0x244074?.[_0x4f2c0b(0x89)]||_0x4f2c0b(0x85),'elapsed':_0x425ba0},'message':'SQL\x20execution\x20failed'};const _0xa6afc=Array['isArray'](_0x909608)?_0x909608:[];return{'ok':!![],'data':{'rows':_0xa6afc,'rowCount':_0xa6afc[_0x4f2c0b(0x76)],'elapsed':_0x425ba0},'message':_0x4f2c0b(0x7b)+_0xa6afc[_0x4f2c0b(0x76)]+_0x4f2c0b(0x7a)+_0x425ba0+'ms'};}};
1
+ function a28_0x54cf(_0x2c76a1,_0x275396){_0x2c76a1=_0x2c76a1-0x191;const _0x25e187=a28_0x25e1();let _0x54cf20=_0x25e187[_0x2c76a1];return _0x54cf20;}const a28_0x5dab5c=a28_0x54cf;(function(_0x20d642,_0x3bfbe1){const _0x273e81=a28_0x54cf,_0x4ae9d5=_0x20d642();while(!![]){try{const _0x5b4903=parseInt(_0x273e81(0x19b))/0x1*(parseInt(_0x273e81(0x1a1))/0x2)+-parseInt(_0x273e81(0x19e))/0x3*(parseInt(_0x273e81(0x1a7))/0x4)+-parseInt(_0x273e81(0x1a6))/0x5+-parseInt(_0x273e81(0x1a0))/0x6*(parseInt(_0x273e81(0x198))/0x7)+parseInt(_0x273e81(0x1a2))/0x8*(-parseInt(_0x273e81(0x1a5))/0x9)+-parseInt(_0x273e81(0x19a))/0xa*(-parseInt(_0x273e81(0x1a3))/0xb)+parseInt(_0x273e81(0x191))/0xc;if(_0x5b4903===_0x3bfbe1)break;else _0x4ae9d5['push'](_0x4ae9d5['shift']());}catch(_0xe40561){_0x4ae9d5['push'](_0x4ae9d5['shift']());}}}(a28_0x25e1,0x74e5e));import{executeSdkSql}from'../../core/sdk-client.js';function a28_0x25e1(){const _0x3f1b82=['params','execError','execSuccess','read','str','14dLlKcZ','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','160XIADPH','427430UEhMgP','length','now','3zIdrVy','sqlcode','385566sfalNE','2KrOfdz','8QEAwzb','509597IDBRog','Returned\x20','7011450UHvkeo','2469550StSwdh','2128572uyiIVi','\x20row(s)\x20in\x20','14925324TmOxKI','execResult'];a28_0x25e1=function(){return _0x3f1b82;};return a28_0x25e1();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':'exec','description':a28_0x5dab5c(0x199),'risk':a28_0x5dab5c(0x196),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2c3d4f){const _0x2e2896=a28_0x5dab5c,_0x8c9e8f=parseJsonParams(_0x2c3d4f[_0x2e2896(0x197)](_0x2e2896(0x193))),_0x681210=Date[_0x2e2896(0x19d)](),_0x59c344=await executeSdkSql(_0x2c3d4f[_0x2e2896(0x197)](_0x2e2896(0x19f)),_0x8c9e8f),_0x3fd8a5=Date['now']()-_0x681210,_0x4964f0=_0x59c344?.[_0x2e2896(0x192)]??_0x59c344,_0x56b303=_0x59c344?.[_0x2e2896(0x195)]??!![];if(!_0x56b303)return{'ok':![],'data':{'error':_0x59c344?.[_0x2e2896(0x194)]||'SQL\x20execution\x20failed','elapsed':_0x3fd8a5},'message':'SQL\x20execution\x20failed'};const _0x1c3669=Array['isArray'](_0x4964f0)?_0x4964f0:[];return{'ok':!![],'data':{'rows':_0x1c3669,'rowCount':_0x1c3669[_0x2e2896(0x19c)],'elapsed':_0x3fd8a5},'message':_0x2e2896(0x1a4)+_0x1c3669[_0x2e2896(0x19c)]+_0x2e2896(0x1a8)+_0x3fd8a5+'ms'};}};
@@ -1 +1 @@
1
- function a29_0x4d4f(_0x4c1d42,_0x58b611){_0x4c1d42=_0x4c1d42-0x12c;const _0x3df4f6=a29_0x3df4();let _0x4d4fbc=_0x3df4f6[_0x4c1d42];return _0x4d4fbc;}function a29_0x3df4(){const _0x5094b7=['297180HayAhi','10KSQRGi','1700316SFpptE','249PMnmeM','1334865lGCfAI','5988336XVLzfL','1447580qALEMQ','2030664zkxAGc'];a29_0x3df4=function(){return _0x5094b7;};return a29_0x3df4();}(function(_0x40355f,_0x30c6c8){const _0x11125a=a29_0x4d4f,_0x3df6e1=_0x40355f();while(!![]){try{const _0x53bcb7=-parseInt(_0x11125a(0x12c))/0x1+parseInt(_0x11125a(0x12d))/0x2*(-parseInt(_0x11125a(0x12f))/0x3)+-parseInt(_0x11125a(0x12e))/0x4+-parseInt(_0x11125a(0x132))/0x5+parseInt(_0x11125a(0x133))/0x6+parseInt(_0x11125a(0x130))/0x7+parseInt(_0x11125a(0x131))/0x8;if(_0x53bcb7===_0x30c6c8)break;else _0x3df6e1['push'](_0x3df6e1['shift']());}catch(_0x27d820){_0x3df6e1['push'](_0x3df6e1['shift']());}}}(a29_0x3df4,0x40d13));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x5bab20,_0xb03b25){const _0x374dd4=a29_0x4a80,_0x2435d7=_0x5bab20();while(!![]){try{const _0x4c8b9f=parseInt(_0x374dd4(0x9e))/0x1*(parseInt(_0x374dd4(0xa2))/0x2)+-parseInt(_0x374dd4(0x9f))/0x3*(parseInt(_0x374dd4(0xa0))/0x4)+parseInt(_0x374dd4(0x9c))/0x5+parseInt(_0x374dd4(0x9b))/0x6+-parseInt(_0x374dd4(0xa1))/0x7+parseInt(_0x374dd4(0xa3))/0x8+-parseInt(_0x374dd4(0x9d))/0x9;if(_0x4c8b9f===_0xb03b25)break;else _0x2435d7['push'](_0x2435d7['shift']());}catch(_0x5a5e09){_0x2435d7['push'](_0x2435d7['shift']());}}}(a29_0x2cbb,0xe19b9));function a29_0x2cbb(){const _0x1a3b61=['82873CisgIS','58185CkNiEI','208qZHdYe','4082841oJqLwA','38GlNrtc','5298016HLuIQb','2483370RjKICo','4449245rWGgsN','9222219EfRtES'];a29_0x2cbb=function(){return _0x1a3b61;};return a29_0x2cbb();}function a29_0x4a80(_0x3708de,_0x46b473){_0x3708de=_0x3708de-0x9b;const _0x2cbb06=a29_0x2cbb();let _0x4a80dd=_0x2cbb06[_0x3708de];return _0x4a80dd;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- function a30_0x50f1(){const _0x5bd8c6=['1192VbXaEZ','10163430euXJSS','entries','5078591RUvivT','inherit','str','latest','643135svnbAX','Update\x20','Already\x20up\x20to\x20date\x20(v','prerelease','fromEntries','\x20version\x20from\x20npm.','stderr','status','18594pTQBPS','version','2FjifIO','no-skills','update','Unable\x20to\x20resolve\x20','bool','warn','\x20\x20Skipped\x20skill\x20install\x20(','join','224980KaIEhm','18jBtuAN','toString','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','error','validation','match','install','boolean','object','skills','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','json','pipe','log','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Updating\x20','major','beta','\x20->\x20','write','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Already\x20on\x20requested\x20version\x20(v','flag','nonInteractive','Version\x20comparison\x20failed.','1279347jdGWSE','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','run','Invalid\x20version:\x20','=1).','trim','filter','\x20-g\x20-y','args','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','/-/package/','\x20CLI\x20from\x20npm','Skipping\x20official\x20skill\x20package\x20(--no-skills).','exit\x20','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','skipped','3371148YeIrSn','timeout','string','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','Checking\x20official\x20skill\x20package...','/dist-tags','patch','source','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.'];a30_0x50f1=function(){return _0x5bd8c6;};return a30_0x50f1();}const a30_0x567bd4=a30_0x1fcc;(function(_0x3763f3,_0x3c35a1){const _0x412d76=a30_0x1fcc,_0xdda9da=_0x3763f3();while(!![]){try{const _0xa38422=parseInt(_0x412d76(0x1db))/0x1+-parseInt(_0x412d76(0x222))/0x2*(-parseInt(_0x412d76(0x1f6))/0x3)+parseInt(_0x412d76(0x207))/0x4+-parseInt(_0x412d76(0x218))/0x5*(-parseInt(_0x412d76(0x1dc))/0x6)+-parseInt(_0x412d76(0x214))/0x7+-parseInt(_0x412d76(0x211))/0x8*(-parseInt(_0x412d76(0x220))/0x9)+-parseInt(_0x412d76(0x212))/0xa;if(_0xa38422===_0x3c35a1)break;else _0xdda9da['push'](_0xdda9da['shift']());}catch(_0xc0262a){_0xdda9da['push'](_0xdda9da['shift']());}}}(a30_0x50f1,0x6ce7b));import{spawnSync}from'node:child_process';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':'latest','type':a30_0x567bd4(0x1e3),'description':a30_0x567bd4(0x1f1),'default':![]},{'name':a30_0x567bd4(0x1ee),'type':a30_0x567bd4(0x1e3),'description':a30_0x567bd4(0x1e6),'default':![]},{'name':a30_0x567bd4(0x221),'type':a30_0x567bd4(0x209),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a30_0x567bd4(0x1d4),'type':a30_0x567bd4(0x1e3),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a30_0x567bd4(0x1e5),'type':a30_0x567bd4(0x1e3),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x5e0817){const _0x6eb490=a30_0x567bd4,_0x4533de=_0x5e0817[_0x6eb490(0x1fc)]()[_0x6eb490(0x1e1)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4533de)return null;return{'major':Number(_0x4533de[0x1]),'minor':Number(_0x4533de[0x2]),'patch':Number(_0x4533de[0x3]),'prerelease':_0x4533de[0x4]};}function compareSemver(_0x5d1d6a,_0x2f9703){const _0x341b0b=a30_0x567bd4,_0x4f2bfc=parseSemver(_0x5d1d6a),_0x5da51e=parseSemver(_0x2f9703);if(!_0x4f2bfc||!_0x5da51e)throw CliErrors[_0x341b0b(0x1e0)](_0x341b0b(0x1f5),_0x341b0b(0x1de));for(const _0x6bb8c1 of[_0x341b0b(0x1ed),'minor',_0x341b0b(0x20e)]){if(_0x4f2bfc[_0x6bb8c1]<_0x5da51e[_0x6bb8c1])return-0x1;if(_0x4f2bfc[_0x6bb8c1]>_0x5da51e[_0x6bb8c1])return 0x1;}if(!_0x4f2bfc[_0x341b0b(0x21b)]&&!_0x5da51e[_0x341b0b(0x21b)])return 0x0;if(!_0x4f2bfc[_0x341b0b(0x21b)])return 0x1;if(!_0x5da51e[_0x341b0b(0x21b)])return-0x1;if(_0x4f2bfc['prerelease']===_0x5da51e[_0x341b0b(0x21b)])return 0x0;return _0x4f2bfc[_0x341b0b(0x21b)]<_0x5da51e[_0x341b0b(0x21b)]?-0x1:0x1;}function getRequestedVersion(_0x456022){const _0x1c5c4e=a30_0x567bd4,_0x2c7a64=_0x456022[_0x1c5c4e(0x216)]('version')['trim']();if(_0x2c7a64)return _0x2c7a64;return String(_0x456022[_0x1c5c4e(0x1ff)]?.[0x0]??'')['trim']();}function a30_0x1fcc(_0x4a3599,_0x3c852f){_0x4a3599=_0x4a3599-0x1d4;const _0x50f166=a30_0x50f1();let _0x1fccb1=_0x50f166[_0x4a3599];return _0x1fccb1;}function shouldSkipOfficialSkill(_0x318b9b){const _0x526811=a30_0x567bd4;return _0x318b9b['bool']('no-skills')||_0x318b9b[_0x526811(0x1f3)]('skills')===![];}async function validateUpdateFlags(_0x5edbf6){const _0x38bd36=a30_0x567bd4,_0x1eac81=getRequestedVersion(_0x5edbf6),_0x38d177=[_0x5edbf6[_0x38bd36(0x1d7)](_0x38bd36(0x217))?_0x38bd36(0x217):'',_0x5edbf6[_0x38bd36(0x1d7)]('beta')?_0x38bd36(0x1ee):'',_0x1eac81?_0x38bd36(0x221):''][_0x38bd36(0x1fd)](Boolean);if(_0x38d177['length']>0x1)throw CliErrors['validation'](_0x38bd36(0x1eb),_0x38bd36(0x200));if(_0x1eac81&&!parseSemver(_0x1eac81))throw CliErrors[_0x38bd36(0x1e0)](_0x38bd36(0x1fa)+_0x1eac81,_0x38bd36(0x210));}async function fetchNpmDistTags(){const _0x3bb60f=a30_0x567bd4;try{const _0x5e2d57=NPM_REGISTRY_BASE_URL+_0x3bb60f(0x201)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3bb60f(0x20d),_0x169e3d=await fetch(_0x5e2d57,{'signal':AbortSignal[_0x3bb60f(0x208)](0x2710)});if(!_0x169e3d['ok'])return null;const _0x1256ac=await _0x169e3d[_0x3bb60f(0x1e8)]();if(!_0x1256ac||typeof _0x1256ac!==_0x3bb60f(0x1e4))return null;return Object[_0x3bb60f(0x21c)](Object[_0x3bb60f(0x213)](_0x1256ac)['filter'](([,_0x104db3])=>typeof _0x104db3===_0x3bb60f(0x209)&&_0x104db3['trim']())['map'](([_0x7792d8,_0x1f70f0])=>[_0x7792d8,String(_0x1f70f0)[_0x3bb60f(0x1fc)]()]));}catch{return null;}}async function resolveTargetVersion(_0xd30e97){const _0x364fd7=a30_0x567bd4,_0x29b96b=getRequestedVersion(_0xd30e97);if(_0x29b96b)return{'version':_0x29b96b,'source':'version'};const _0x549599=_0xd30e97[_0x364fd7(0x1d7)](_0x364fd7(0x1ee))?_0x364fd7(0x1ee):_0x364fd7(0x217),_0xf08e47=await fetchNpmDistTags(),_0x282a26=_0xf08e47?.[_0x549599];if(!_0x282a26)return null;return{'version':_0x282a26,'source':_0x549599};}function shouldInstallTarget(_0x4c5f08,_0x4cc420){const _0x5188f8=a30_0x567bd4,_0x1dd99d=compareSemver(_0x4c5f08,_0x4cc420['version']);if(_0x4cc420[_0x5188f8(0x20f)]===_0x5188f8(0x221))return _0x1dd99d!==0x0;return _0x1dd99d<0x0;}function installCliPackage(_0x3cd031,_0x21bbef){const _0x288f0d=a30_0x567bd4,_0x1561e0=resolveNpmBin('npm'),_0x5d5150=[_0x288f0d(0x1e2),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3cd031];console['log']('*\x20'+[_0x1561e0,..._0x5d5150][_0x288f0d(0x1da)]('\x20'));const _0x381957=spawnSync(_0x1561e0,_0x5d5150,{'cwd':process['cwd'](),'stdio':_0x21bbef?_0x288f0d(0x1e9):_0x288f0d(0x215),'env':process.env,'shell':![]});if(_0x381957[_0x288f0d(0x21f)]===0x0)return{'ok':!![]};let _0x11dde6=_0x381957[_0x288f0d(0x1df)]?.['message']||_0x288f0d(0x204)+(_0x381957[_0x288f0d(0x21f)]??_0x288f0d(0x20b));if(_0x21bbef){const _0x193fb5=_0x381957[_0x288f0d(0x21e)]?_0x381957[_0x288f0d(0x21e)]['toString']()['trim']():'',_0x4eefc6=_0x381957['stdout']?_0x381957['stdout'][_0x288f0d(0x1dd)]()['trim']():'';if(_0x193fb5)_0x11dde6=_0x193fb5;else{if(_0x4eefc6)_0x11dde6=_0x4eefc6;}}return{'ok':![],'error':_0x11dde6};}async function installOfficialSkill(_0x204bdd){const _0x3c3fda=a30_0x567bd4;console[_0x3c3fda(0x1ea)](_0x3c3fda(0x20c));const _0x4468f0=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x204bdd?'pipe':_0x3c3fda(0x215)});if(_0x4468f0[_0x3c3fda(0x206)]){console[_0x3c3fda(0x1ea)](_0x3c3fda(0x1d9)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x3c3fda(0x1fb));return;}if(_0x4468f0['ok']){console[_0x3c3fda(0x1ea)](_0x3c3fda(0x1f8));return;}console[_0x3c3fda(0x1d8)]('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x4468f0[_0x3c3fda(0x1df)]||_0x3c3fda(0x20b))),console[_0x3c3fda(0x1ea)](_0x3c3fda(0x1e7)+LOVRABET_SKILL_SOURCE+_0x3c3fda(0x1fe));}async function execute(_0x1b2314){const _0x143a2d=a30_0x567bd4;await validateUpdateFlags(_0x1b2314);const _0x59d6c3=getCliVersion();console[_0x143a2d(0x1ea)]('Current\x20version:\x20'+_0x59d6c3),console['log']('Checking\x20npm\x20dist-tags...');const _0x5b7df2=await resolveTargetVersion(_0x1b2314);if(!_0x5b7df2){const _0x3ae3df=_0x1b2314['bool'](_0x143a2d(0x1ee))?_0x143a2d(0x1ee):_0x143a2d(0x217),_0x548abe=_0x143a2d(0x1d6)+_0x3ae3df+_0x143a2d(0x21d);return console[_0x143a2d(0x1d8)](_0x548abe),console[_0x143a2d(0x1ea)](_0x143a2d(0x20a)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3ae3df),{'ok':![]};}if(!shouldInstallTarget(_0x59d6c3,_0x5b7df2)){const _0x53b02f=_0x5b7df2[_0x143a2d(0x20f)]===_0x143a2d(0x221)?_0x143a2d(0x1f2)+_0x5b7df2[_0x143a2d(0x221)]+').':_0x143a2d(0x21a)+_0x5b7df2[_0x143a2d(0x221)]+').';return console['log'](_0x53b02f),shouldSkipOfficialSkill(_0x1b2314)?console[_0x143a2d(0x1ea)](_0x143a2d(0x203)):await installOfficialSkill(_0x1b2314[_0x143a2d(0x1f4)]),{'ok':!![]};}console[_0x143a2d(0x1ea)](_0x143a2d(0x1ec)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x59d6c3+_0x143a2d(0x1ef)+_0x5b7df2['version']);const _0x28b529=installCliPackage(_0x5b7df2[_0x143a2d(0x221)],_0x1b2314[_0x143a2d(0x1f4)]);if(!_0x28b529['ok']){const _0x52e06b='Update\x20failed:\x20'+(_0x28b529[_0x143a2d(0x1df)]||_0x143a2d(0x20b));return console[_0x143a2d(0x1df)](_0x52e06b),console['log'](_0x143a2d(0x205)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5b7df2[_0x143a2d(0x221)]),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x5b7df2[_0x143a2d(0x221)]+'.'),console[_0x143a2d(0x1ea)](_0x143a2d(0x1f7)),shouldSkipOfficialSkill(_0x1b2314)?console[_0x143a2d(0x1ea)](_0x143a2d(0x203)):await installOfficialSkill(_0x1b2314[_0x143a2d(0x1f4)]),{'ok':!![]};}export const updateDefinition={'service':a30_0x567bd4(0x1d5),'command':a30_0x567bd4(0x1f9),'description':a30_0x567bd4(0x219)+CLI_BIN_NAME+a30_0x567bd4(0x202),'risk':a30_0x567bd4(0x1f0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a30_0xc3d963=a30_0x50d7;(function(_0x5b6c2c,_0x180189){const _0x26807a=a30_0x50d7,_0x6ff45=_0x5b6c2c();while(!![]){try{const _0xa031dc=-parseInt(_0x26807a(0x20f))/0x1+parseInt(_0x26807a(0x22a))/0x2*(-parseInt(_0x26807a(0x1ff))/0x3)+parseInt(_0x26807a(0x236))/0x4+parseInt(_0x26807a(0x228))/0x5+parseInt(_0x26807a(0x204))/0x6+parseInt(_0x26807a(0x220))/0x7+parseInt(_0x26807a(0x214))/0x8*(-parseInt(_0x26807a(0x238))/0x9);if(_0xa031dc===_0x180189)break;else _0x6ff45['push'](_0x6ff45['shift']());}catch(_0x20253f){_0x6ff45['push'](_0x6ff45['shift']());}}}(a30_0x1eea,0x6f8be));import{spawnSync}from'node:child_process';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';function a30_0x1eea(){const _0x3919e4=['cwd','version','unknown','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','json','69534XgYuTZ','install','string','\x20version\x20from\x20npm.','Invalid\x20version:\x20','243894CHtmpZ','run','trim','Current\x20version:\x20','Version\x20comparison\x20failed.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Checking\x20official\x20skill\x20package...','error','log','timeout','Refresh\x20official\x20skill\x20package\x20after\x20updating','722736vjecjd','\x20\x20Official\x20skill\x20update\x20failed:\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','patch','Updating\x20','8xVxOBb','/dist-tags','Update\x20','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Run\x20manually:\x20npx\x20skills\x20add\x20','no-skills','skills','Update\x20failed:\x20','warn','latest','=1).','match','5975445ogXVnn','major','toString','\x20CLI\x20from\x20npm','str','pipe','Unable\x20to\x20resolve\x20','stderr','3360280dHsswq','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','2oWfrRZ','entries','Install\x20a\x20specific\x20CLI\x20version','filter','source','prerelease','minor','update','status','beta','npm','args','2247084qcvVzj','object','8327727PCkkaS','Updated\x20to\x20v','map','nonInteractive','flag','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','boolean','join','bool','skipped','validation','\x20\x20Skipped\x20skill\x20install\x20(','stdout','\x20->\x20'];a30_0x1eea=function(){return _0x3919e4;};return a30_0x1eea();}const updateFlags=[{'name':'latest','type':a30_0xc3d963(0x1f2),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a30_0xc3d963(0x1f2),'description':a30_0xc3d963(0x1fd),'default':![]},{'name':a30_0xc3d963(0x1fb),'type':'string','description':a30_0xc3d963(0x22c)},{'name':'no-skills','type':a30_0xc3d963(0x1f2),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a30_0xc3d963(0x21a),'type':'boolean','description':a30_0xc3d963(0x20e),'default':!![],'hidden':!![]}];function parseSemver(_0x3d2cf5){const _0x2d1010=a30_0xc3d963,_0x53bcc3=_0x3d2cf5['trim']()[_0x2d1010(0x21f)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x53bcc3)return null;return{'major':Number(_0x53bcc3[0x1]),'minor':Number(_0x53bcc3[0x2]),'patch':Number(_0x53bcc3[0x3]),'prerelease':_0x53bcc3[0x4]};}function compareSemver(_0x39b275,_0x26856a){const _0x48f0c3=a30_0xc3d963,_0x494220=parseSemver(_0x39b275),_0x74830f=parseSemver(_0x26856a);if(!_0x494220||!_0x74830f)throw CliErrors['validation'](_0x48f0c3(0x208),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x348ea9 of[_0x48f0c3(0x221),_0x48f0c3(0x230),_0x48f0c3(0x212)]){if(_0x494220[_0x348ea9]<_0x74830f[_0x348ea9])return-0x1;if(_0x494220[_0x348ea9]>_0x74830f[_0x348ea9])return 0x1;}if(!_0x494220[_0x48f0c3(0x22f)]&&!_0x74830f[_0x48f0c3(0x22f)])return 0x0;if(!_0x494220[_0x48f0c3(0x22f)])return 0x1;if(!_0x74830f[_0x48f0c3(0x22f)])return-0x1;if(_0x494220[_0x48f0c3(0x22f)]===_0x74830f[_0x48f0c3(0x22f)])return 0x0;return _0x494220['prerelease']<_0x74830f[_0x48f0c3(0x22f)]?-0x1:0x1;}function getRequestedVersion(_0x45d1c6){const _0xc05773=a30_0xc3d963,_0x3e7bd6=_0x45d1c6[_0xc05773(0x224)]('version')[_0xc05773(0x206)]();if(_0x3e7bd6)return _0x3e7bd6;return String(_0x45d1c6[_0xc05773(0x235)]?.[0x0]??'')[_0xc05773(0x206)]();}function shouldSkipOfficialSkill(_0x20f8f3){const _0x39fa4e=a30_0xc3d963;return _0x20f8f3[_0x39fa4e(0x1f4)](_0x39fa4e(0x219))||_0x20f8f3[_0x39fa4e(0x1f0)](_0x39fa4e(0x21a))===![];}async function validateUpdateFlags(_0x5a728c){const _0x1ccb5e=a30_0xc3d963,_0x4120d8=getRequestedVersion(_0x5a728c),_0x332601=[_0x5a728c[_0x1ccb5e(0x1f4)](_0x1ccb5e(0x21d))?'latest':'',_0x5a728c[_0x1ccb5e(0x1f4)](_0x1ccb5e(0x233))?'beta':'',_0x4120d8?_0x1ccb5e(0x1fb):''][_0x1ccb5e(0x22d)](Boolean);if(_0x332601['length']>0x1)throw CliErrors['validation'](_0x1ccb5e(0x211),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x4120d8&&!parseSemver(_0x4120d8))throw CliErrors[_0x1ccb5e(0x1f6)](_0x1ccb5e(0x203)+_0x4120d8,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x5a9b62=a30_0xc3d963;try{const _0x274f2a=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x5a9b62(0x215),_0x305dae=await fetch(_0x274f2a,{'signal':AbortSignal[_0x5a9b62(0x20d)](0x2710)});if(!_0x305dae['ok'])return null;const _0x352c4f=await _0x305dae[_0x5a9b62(0x1fe)]();if(!_0x352c4f||typeof _0x352c4f!==_0x5a9b62(0x237))return null;return Object['fromEntries'](Object[_0x5a9b62(0x22b)](_0x352c4f)[_0x5a9b62(0x22d)](([,_0x5d37d8])=>typeof _0x5d37d8===_0x5a9b62(0x201)&&_0x5d37d8[_0x5a9b62(0x206)]())[_0x5a9b62(0x1ee)](([_0x49b3bc,_0x2d513a])=>[_0x49b3bc,String(_0x2d513a)[_0x5a9b62(0x206)]()]));}catch{return null;}}async function resolveTargetVersion(_0x11773f){const _0x5904c5=a30_0xc3d963,_0x1e510f=getRequestedVersion(_0x11773f);if(_0x1e510f)return{'version':_0x1e510f,'source':_0x5904c5(0x1fb)};const _0x10ea0b=_0x11773f[_0x5904c5(0x1f4)](_0x5904c5(0x233))?'beta':_0x5904c5(0x21d),_0x3d6576=await fetchNpmDistTags(),_0x56d216=_0x3d6576?.[_0x10ea0b];if(!_0x56d216)return null;return{'version':_0x56d216,'source':_0x10ea0b};}function shouldInstallTarget(_0x2e67bc,_0x475979){const _0x432535=a30_0xc3d963,_0x442e14=compareSemver(_0x2e67bc,_0x475979[_0x432535(0x1fb)]);if(_0x475979[_0x432535(0x22e)]===_0x432535(0x1fb))return _0x442e14!==0x0;return _0x442e14<0x0;}function installCliPackage(_0x1be8e7,_0x1d0a82){const _0x141bcb=a30_0xc3d963,_0x4b2135=resolveNpmBin(_0x141bcb(0x234)),_0x4bec0b=[_0x141bcb(0x200),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1be8e7];console[_0x141bcb(0x20c)]('*\x20'+[_0x4b2135,..._0x4bec0b][_0x141bcb(0x1f3)]('\x20'));const _0x8ad4d2=spawnSync(_0x4b2135,_0x4bec0b,{'cwd':process[_0x141bcb(0x1fa)](),'stdio':_0x1d0a82?_0x141bcb(0x225):'inherit','env':process.env,'shell':![]});if(_0x8ad4d2['status']===0x0)return{'ok':!![]};let _0x19127c=_0x8ad4d2[_0x141bcb(0x20b)]?.['message']||'exit\x20'+(_0x8ad4d2[_0x141bcb(0x232)]??_0x141bcb(0x1fc));if(_0x1d0a82){const _0x33e0b4=_0x8ad4d2[_0x141bcb(0x227)]?_0x8ad4d2['stderr'][_0x141bcb(0x222)]()[_0x141bcb(0x206)]():'',_0x5be921=_0x8ad4d2[_0x141bcb(0x1f8)]?_0x8ad4d2['stdout']['toString']()['trim']():'';if(_0x33e0b4)_0x19127c=_0x33e0b4;else{if(_0x5be921)_0x19127c=_0x5be921;}}return{'ok':![],'error':_0x19127c};}function a30_0x50d7(_0x3bae87,_0x4e7f33){_0x3bae87=_0x3bae87-0x1ed;const _0x1eea02=a30_0x1eea();let _0x50d749=_0x1eea02[_0x3bae87];return _0x50d749;}async function installOfficialSkill(_0x5bcfb4){const _0xbfcdac=a30_0xc3d963;console[_0xbfcdac(0x20c)](_0xbfcdac(0x20a));const _0x16fd4f=runNpxSkillsAddGlobal(process[_0xbfcdac(0x1fa)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x5bcfb4?_0xbfcdac(0x225):'inherit'});if(_0x16fd4f[_0xbfcdac(0x1f5)]){console['log'](_0xbfcdac(0x1f7)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0xbfcdac(0x21e));return;}if(_0x16fd4f['ok']){console[_0xbfcdac(0x20c)]('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.');return;}console['warn'](_0xbfcdac(0x210)+(_0x16fd4f[_0xbfcdac(0x20b)]||'unknown')),console[_0xbfcdac(0x20c)](_0xbfcdac(0x218)+LOVRABET_SKILL_SOURCE+'\x20-g\x20-y');}async function execute(_0x214284){const _0x3ad179=a30_0xc3d963;await validateUpdateFlags(_0x214284);const _0x2ac76b=getCliVersion();console[_0x3ad179(0x20c)](_0x3ad179(0x207)+_0x2ac76b),console['log']('Checking\x20npm\x20dist-tags...');const _0x3e7c76=await resolveTargetVersion(_0x214284);if(!_0x3e7c76){const _0x4e75d1=_0x214284[_0x3ad179(0x1f4)](_0x3ad179(0x233))?_0x3ad179(0x233):_0x3ad179(0x21d),_0x1a7c59=_0x3ad179(0x226)+_0x4e75d1+_0x3ad179(0x202);return console[_0x3ad179(0x21c)](_0x1a7c59),console['log'](_0x3ad179(0x209)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4e75d1),{'ok':![]};}if(!shouldInstallTarget(_0x2ac76b,_0x3e7c76)){const _0x3085cb=_0x3e7c76[_0x3ad179(0x22e)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x3e7c76[_0x3ad179(0x1fb)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x3e7c76['version']+').';return console[_0x3ad179(0x20c)](_0x3085cb),shouldSkipOfficialSkill(_0x214284)?console[_0x3ad179(0x20c)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).'):await installOfficialSkill(_0x214284[_0x3ad179(0x1ef)]),{'ok':!![]};}console[_0x3ad179(0x20c)](_0x3ad179(0x213)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2ac76b+_0x3ad179(0x1f9)+_0x3e7c76['version']);const _0x4e7f68=installCliPackage(_0x3e7c76[_0x3ad179(0x1fb)],_0x214284[_0x3ad179(0x1ef)]);if(!_0x4e7f68['ok']){const _0x29d8c6=_0x3ad179(0x21b)+(_0x4e7f68[_0x3ad179(0x20b)]||'unknown');return console['error'](_0x29d8c6),console[_0x3ad179(0x20c)](_0x3ad179(0x1f1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3e7c76[_0x3ad179(0x1fb)]),{'ok':![]};}return console[_0x3ad179(0x20c)](_0x3ad179(0x1ed)+_0x3e7c76[_0x3ad179(0x1fb)]+'.'),console[_0x3ad179(0x20c)](_0x3ad179(0x229)),shouldSkipOfficialSkill(_0x214284)?console['log'](_0x3ad179(0x217)):await installOfficialSkill(_0x214284[_0x3ad179(0x1ef)]),{'ok':!![]};}export const updateDefinition={'service':a30_0xc3d963(0x231),'command':a30_0xc3d963(0x205),'description':a30_0xc3d963(0x216)+CLI_BIN_NAME+a30_0xc3d963(0x223),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a31_0x4a5f(_0x243e67,_0x294191){_0x243e67=_0x243e67-0x117;const _0x388c00=a31_0x388c();let _0x4a5fa8=_0x388c00[_0x243e67];return _0x4a5fa8;}const a31_0x18a6aa=a31_0x4a5f;(function(_0x17e526,_0x21bedb){const _0xc50b5a=a31_0x4a5f,_0x1b4f83=_0x17e526();while(!![]){try{const _0x48d81e=parseInt(_0xc50b5a(0x11a))/0x1+parseInt(_0xc50b5a(0x12d))/0x2+parseInt(_0xc50b5a(0x127))/0x3+-parseInt(_0xc50b5a(0x122))/0x4+-parseInt(_0xc50b5a(0x125))/0x5*(-parseInt(_0xc50b5a(0x12c))/0x6)+parseInt(_0xc50b5a(0x120))/0x7*(-parseInt(_0xc50b5a(0x12a))/0x8)+-parseInt(_0xc50b5a(0x121))/0x9;if(_0x48d81e===_0x21bedb)break;else _0x1b4f83['push'](_0x1b4f83['shift']());}catch(_0x228478){_0x1b4f83['push'](_0x1b4f83['shift']());}}}(a31_0x388c,0x7b246));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_0x18a6aa(0x11f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a31_0x18a6aa(0x11b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x18a6aa(0x129)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x18a6aa(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x18a6aa(0x11d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x18a6aa(0x12f)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x18a6aa(0x126)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x83d775])=>_0x83d775['cliSettableTopLevel'])['map'](([_0x8ea4c8])=>_0x8ea4c8));export const CONFIG_ENUM_VALUES=Object[a31_0x18a6aa(0x128)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x18a6aa(0x118)](([,_0x24a261])=>_0x24a261[a31_0x18a6aa(0x119)])[a31_0x18a6aa(0x11e)](([_0x47301d,_0x53081c])=>[_0x47301d,[..._0x53081c[a31_0x18a6aa(0x119)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a31_0x18a6aa(0x118)](([,_0x54c892])=>_0x54c892[a31_0x18a6aa(0x123)])['map'](([_0x20ba3b])=>_0x20ba3b);export function getConfigFieldSchema(_0x432b6b){return CONFIG_FIELD_SCHEMAS[_0x432b6b];}export function getConfigEnumValues(_0x981ce6){const _0x268b5d=a31_0x18a6aa;return getConfigFieldSchema(_0x981ce6)?.[_0x268b5d(0x119)];}export function getConfigDefaultValue(_0x512261){return getConfigFieldSchema(_0x512261)?.['defaultValue'];}export function isTopLevelConfigKey(_0x4033c4){const _0x2c9055=a31_0x18a6aa;return TOP_LEVEL_CONFIG_KEYS[_0x2c9055(0x117)](_0x4033c4);}export function isLegacyCompatConfigKey(_0x7aa1f2){return getConfigFieldSchema(_0x7aa1f2)?.['legacyCompatOnly']===!![];}function a31_0x388c(){const _0x220445=['10PDSXai','locale','962442YbcnlY','fromEntries','format','8rEttix','join','591468mnDoRr','969900luFTBL',';\x20local\x20alias:\x20apps.<alias>.appcode','riskLevel','has','filter','enumValues','446289FUdgsW','Default\x20output\x20format','Config\x20key.\x20Top-level:\x20','Access\x20key\x20(client-ak\x20auth)','map','Target\x20environment','3777452ztYqmW','1116747HpmWGX','1124400OsRxCm','importable','Override\x20runtime\x20domain'];a31_0x388c=function(){return _0x220445;};return a31_0x388c();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1e57c1){const _0xefed11=a31_0x18a6aa;return[..._0x1e57c1][_0xefed11(0x12b)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1ca85c=a31_0x18a6aa;return _0x1ca85c(0x11c)+getTopLevelConfigKeySummary()+_0x1ca85c(0x12e);}export function buildAppProfileListFields(_0x1df751){return{'env':_0x1df751,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a31_0x41b7e8=a31_0x2054;(function(_0x1e728d,_0x24fbb6){const _0x3abcfe=a31_0x2054,_0xf57f8e=_0x1e728d();while(!![]){try{const _0x5c133e=-parseInt(_0x3abcfe(0xd0))/0x1*(parseInt(_0x3abcfe(0xcb))/0x2)+-parseInt(_0x3abcfe(0xd7))/0x3+-parseInt(_0x3abcfe(0xc7))/0x4*(parseInt(_0x3abcfe(0xd4))/0x5)+-parseInt(_0x3abcfe(0xc1))/0x6*(-parseInt(_0x3abcfe(0xdc))/0x7)+parseInt(_0x3abcfe(0xca))/0x8+-parseInt(_0x3abcfe(0xd9))/0x9+parseInt(_0x3abcfe(0xc5))/0xa*(parseInt(_0x3abcfe(0xd5))/0xb);if(_0x5c133e===_0x24fbb6)break;else _0xf57f8e['push'](_0xf57f8e['shift']());}catch(_0x49ad20){_0xf57f8e['push'](_0xf57f8e['shift']());}}}(a31_0x384e,0xe1cd0));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['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a31_0x41b7e8(0xd8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a31_0x41b7e8(0xd6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a31_0x41b7e8(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a31_0x41b7e8(0xcf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a31_0x41b7e8(0xcc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a31_0x41b7e8(0xc9),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x41b7e8(0xc2)],'importable':!![]},'locale':{'description':a31_0x41b7e8(0xda),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a31_0x41b7e8(0xc3)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2e35b4])=>_0x2e35b4[a31_0x41b7e8(0xcd)])['map'](([_0x4e6cfc])=>_0x4e6cfc));export const CONFIG_ENUM_VALUES=Object[a31_0x41b7e8(0xbf)](Object[a31_0x41b7e8(0xc8)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4d370e])=>_0x4d370e[a31_0x41b7e8(0xc6)])[a31_0x41b7e8(0xd2)](([_0x435da9,_0x466028])=>[_0x435da9,[..._0x466028['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a31_0x41b7e8(0xc8)](CONFIG_FIELD_SCHEMAS)[a31_0x41b7e8(0xce)](([,_0x287d94])=>_0x287d94['importable'])[a31_0x41b7e8(0xd2)](([_0x2d9819])=>_0x2d9819);export function getConfigFieldSchema(_0x171f91){return CONFIG_FIELD_SCHEMAS[_0x171f91];}export function getConfigEnumValues(_0x316ad2){return getConfigFieldSchema(_0x316ad2)?.['enumValues'];}export function getConfigDefaultValue(_0x4d97d8){const _0x3c3e84=a31_0x41b7e8;return getConfigFieldSchema(_0x4d97d8)?.[_0x3c3e84(0xbe)];}export function isTopLevelConfigKey(_0x59a0c3){const _0x16d780=a31_0x41b7e8;return TOP_LEVEL_CONFIG_KEYS[_0x16d780(0xc4)](_0x59a0c3);}export function isLegacyCompatConfigKey(_0x284d5e){const _0x2b3536=a31_0x41b7e8;return getConfigFieldSchema(_0x284d5e)?.[_0x2b3536(0xd1)]===!![];}function a31_0x2054(_0x37f7db,_0x550731){_0x37f7db=_0x37f7db-0xbd;const _0x384eac=a31_0x384e();let _0x2054f6=_0x384eac[_0x37f7db];return _0x2054f6;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x26d8b2){const _0xd1bb56=a31_0x41b7e8;return[..._0x26d8b2][_0xd1bb56(0xdb)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2c663b=a31_0x41b7e8;return _0x2c663b(0xd3)+getTopLevelConfigKeySummary()+_0x2c663b(0xc0);}function a31_0x384e(){const _0x234549=['10UptQct','19058479eAAiLc','Override\x20API\x20domain','3058290BOcCGB','Default\x20page\x20size','11447559pCmfZw','Locale','join','7091KIyneM','Override\x20user\x20domain','defaultValue','fromEntries',';\x20local\x20alias:\x20apps.<alias>.appcode','744QEzyVi','riskLevel','locale','has','10nzkQCK','enumValues','541812UEGaKt','entries','Risk\x20level','13302912BoOOie','4ynwBjN','Access\x20key\x20(client-ak\x20auth)','cliSettableTopLevel','filter','Override\x20runtime\x20domain','16949IGBfTK','legacyCompatOnly','map','Config\x20key.\x20Top-level:\x20'];a31_0x384e=function(){return _0x234549;};return a31_0x384e();}export function buildAppProfileListFields(_0x17d425){return{'env':_0x17d425,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a32_0x187583=a32_0x34fa;(function(_0x520322,_0x5e05b3){const _0x514a67=a32_0x34fa,_0x7b8282=_0x520322();while(!![]){try{const _0x494452=parseInt(_0x514a67(0x7a))/0x1*(parseInt(_0x514a67(0x76))/0x2)+parseInt(_0x514a67(0x72))/0x3*(-parseInt(_0x514a67(0x7b))/0x4)+parseInt(_0x514a67(0x7d))/0x5+-parseInt(_0x514a67(0x74))/0x6*(parseInt(_0x514a67(0x79))/0x7)+-parseInt(_0x514a67(0x78))/0x8+parseInt(_0x514a67(0x73))/0x9*(parseInt(_0x514a67(0x7c))/0xa)+parseInt(_0x514a67(0x75))/0xb;if(_0x494452===_0x5e05b3)break;else _0x7b8282['push'](_0x7b8282['shift']());}catch(_0x150fc6){_0x7b8282['push'](_0x7b8282['shift']());}}}(a32_0x1eca,0x63022));export const AUTH_MODE={'ClientAk':a32_0x187583(0x77)};export function isAuthMode(_0x57d6f5){return _0x57d6f5===AUTH_MODE['ClientAk'];}function a32_0x34fa(_0x220ffd,_0x3f7a1e){_0x220ffd=_0x220ffd-0x72;const _0x1eca08=a32_0x1eca();let _0x34fa89=_0x1eca08[_0x220ffd];return _0x34fa89;}function a32_0x1eca(){const _0x5d7229=['10OUDpBd','3931765uXmRbl','54UbXPLe','208962VJfdhX','11166IaxiSq','5127474RwUVRm','59718WMdftn','client-ak','5095368kXGWIH','287TkAKZO','19rsJfZr','160948azpHwl'];a32_0x1eca=function(){return _0x5d7229;};return a32_0x1eca();}
1
+ const a32_0x39e968=a32_0x56a1;function a32_0x3f2e(){const _0x4f1747=['client-ak','ClientAk','1614395CMyKRo','921051URgSla','89616rPWHJx','11GVunxD','16ldXAgH','1cljDuP','4EbXvPw','9064840teeFJo','1717857zZxbJB','423188aOlmeX','154QqdWCD','27433884ouXwba'];a32_0x3f2e=function(){return _0x4f1747;};return a32_0x3f2e();}(function(_0x4c5e82,_0x3aa0bc){const _0xb826b=a32_0x56a1,_0xc4c281=_0x4c5e82();while(!![]){try{const _0x595a0f=parseInt(_0xb826b(0x1fb))/0x1*(-parseInt(_0xb826b(0x1ff))/0x2)+-parseInt(_0xb826b(0x1f7))/0x3+parseInt(_0xb826b(0x1fc))/0x4*(-parseInt(_0xb826b(0x1f6))/0x5)+parseInt(_0xb826b(0x1f8))/0x6*(parseInt(_0xb826b(0x200))/0x7)+-parseInt(_0xb826b(0x1fa))/0x8*(parseInt(_0xb826b(0x1fe))/0x9)+-parseInt(_0xb826b(0x1fd))/0xa+-parseInt(_0xb826b(0x1f9))/0xb*(-parseInt(_0xb826b(0x201))/0xc);if(_0x595a0f===_0x3aa0bc)break;else _0xc4c281['push'](_0xc4c281['shift']());}catch(_0x107701){_0xc4c281['push'](_0xc4c281['shift']());}}}(a32_0x3f2e,0x766a5));function a32_0x56a1(_0x39dcab,_0x232c4f){_0x39dcab=_0x39dcab-0x1f4;const _0x3f2ebd=a32_0x3f2e();let _0x56a196=_0x3f2ebd[_0x39dcab];return _0x56a196;}export const AUTH_MODE={'ClientAk':a32_0x39e968(0x1f4)};export function isAuthMode(_0x3fa01a){const _0x366d30=a32_0x39e968;return _0x3fa01a===AUTH_MODE[_0x366d30(0x1f5)];}
@@ -1 +1 @@
1
- const a33_0x307a48=a33_0x359e;(function(_0x4113a6,_0x385b8b){const _0x4af460=a33_0x359e,_0x289c9f=_0x4113a6();while(!![]){try{const _0x41abd5=parseInt(_0x4af460(0x1ab))/0x1+parseInt(_0x4af460(0x193))/0x2*(parseInt(_0x4af460(0x1af))/0x3)+-parseInt(_0x4af460(0x19c))/0x4+parseInt(_0x4af460(0x1bb))/0x5+parseInt(_0x4af460(0x1b8))/0x6+-parseInt(_0x4af460(0x1a3))/0x7*(-parseInt(_0x4af460(0x1b5))/0x8)+parseInt(_0x4af460(0x19f))/0x9*(-parseInt(_0x4af460(0x1aa))/0xa);if(_0x41abd5===_0x385b8b)break;else _0x289c9f['push'](_0x289c9f['shift']());}catch(_0x24a81a){_0x289c9f['push'](_0x289c9f['shift']());}}}(a33_0x15f9,0x50989));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a33_0x359e(_0x56292b,_0x49b2a2){_0x56292b=_0x56292b-0x18a;const _0x15f974=a33_0x15f9();let _0x359eb7=_0x15f974[_0x56292b];return _0x359eb7;}function a33_0x15f9(){const _0x1f279c=['750624QTSRdx','Use\x20global\x20config\x20scope','Alias\x20for\x20--non-interactive','3893625mdIoZx','Record\x20ID','name','sqlcode','45850pbbcgV','string','verbose','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','JSON\x20params\x20for\x20execute\x20commands','30AauGYX','256013pXEmnw','Name\x20filter','Show\x20help','dryRun','51357OSvmwE','format','Verbose\x20output','Override\x20appcode','production\x20|\x20development\x20|\x20daily','boolean','504TPPleo','map','Environment','195168kXLLgy','clear','<name>','3261240LjvKFM','yes','<expr>','app','fromEntries','type','cliBinName','SQL\x20query\x20code','meowKey','cliDisplayName','help','54EXmmvv','env','non-interactive','appcode','Select\x20app\x20profile\x20by\x20name','<code>','Preview\x20operation\x20without\x20executing','params','global'];a33_0x15f9=function(){return _0x1f279c;};return a33_0x15f9();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x307a48(0x18e)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x307a48(0x191)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x307a48(0x196),'meowKey':'appcode','type':'string','description':a33_0x307a48(0x1b2),'hint':a33_0x307a48(0x198)},{'name':a33_0x307a48(0x18b),'meowKey':a33_0x307a48(0x18b),'type':a33_0x307a48(0x1a4),'description':a33_0x307a48(0x197),'hint':a33_0x307a48(0x1ba)},{'name':a33_0x307a48(0x194),'meowKey':a33_0x307a48(0x194),'type':'string','description':a33_0x307a48(0x1b7),'hint':a33_0x307a48(0x1b3)},{'name':a33_0x307a48(0x1b0),'meowKey':a33_0x307a48(0x1b0),'type':a33_0x307a48(0x1a4),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a33_0x307a48(0x18a)},{'name':'dry-run','meowKey':a33_0x307a48(0x1ae),'type':a33_0x307a48(0x1b4),'description':a33_0x307a48(0x199)},{'name':a33_0x307a48(0x1bc),'meowKey':a33_0x307a48(0x1bc),'type':a33_0x307a48(0x1b4),'description':a33_0x307a48(0x1a7)},{'name':a33_0x307a48(0x195),'meowKey':a33_0x307a48(0x1a8),'type':'boolean','description':a33_0x307a48(0x1a6)},{'name':a33_0x307a48(0x19b),'meowKey':a33_0x307a48(0x19b),'type':'boolean','description':a33_0x307a48(0x19d)},{'name':'ci','meowKey':'ci','type':a33_0x307a48(0x1b4),'description':a33_0x307a48(0x19e),'hidden':!![]},{'name':a33_0x307a48(0x192),'meowKey':a33_0x307a48(0x192),'type':a33_0x307a48(0x1b4),'description':a33_0x307a48(0x1ad)},{'name':'id','meowKey':'id','type':a33_0x307a48(0x1a4),'description':a33_0x307a48(0x1a0),'hidden':!![]},{'name':a33_0x307a48(0x1a1),'meowKey':a33_0x307a48(0x1a1),'type':a33_0x307a48(0x1a4),'description':a33_0x307a48(0x1ac),'hidden':!![]},{'name':a33_0x307a48(0x1a2),'meowKey':a33_0x307a48(0x1a2),'type':a33_0x307a48(0x1a4),'description':a33_0x307a48(0x18f),'hidden':!![]},{'name':a33_0x307a48(0x19a),'meowKey':'params','type':a33_0x307a48(0x1a4),'description':a33_0x307a48(0x1a9),'hidden':!![]},{'name':a33_0x307a48(0x1a5),'meowKey':a33_0x307a48(0x1a5),'type':'boolean','description':a33_0x307a48(0x1b1),'hidden':!![]},{'name':'clear','meowKey':a33_0x307a48(0x1b9),'type':a33_0x307a48(0x1b4),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a33_0x307a48(0x196),'app',a33_0x307a48(0x194),a33_0x307a48(0x1b0),'jq','dry-run',a33_0x307a48(0x1bc),a33_0x307a48(0x195),'ci']);export function buildMeowFlags(){const _0x3bc0b4=a33_0x307a48;return Object[_0x3bc0b4(0x18c)](GLOBAL_FLAGS[_0x3bc0b4(0x1b6)](_0x142ed3=>[_0x142ed3[_0x3bc0b4(0x190)],{'type':_0x142ed3[_0x3bc0b4(0x18d)]}]));}
1
+ const a33_0x207ed4=a33_0x11ef;function a33_0x11ef(_0x3b990d,_0x3c8fde){_0x3b990d=_0x3b990d-0x17e;const _0x323c5a=a33_0x323c();let _0x11efcd=_0x323c5a[_0x3b990d];return _0x11efcd;}(function(_0x43d7ab,_0x3068ce){const _0xdd399=a33_0x11ef,_0x4d1838=_0x43d7ab();while(!![]){try{const _0x254d93=parseInt(_0xdd399(0x184))/0x1+-parseInt(_0xdd399(0x1a2))/0x2+parseInt(_0xdd399(0x19a))/0x3*(-parseInt(_0xdd399(0x189))/0x4)+-parseInt(_0xdd399(0x197))/0x5+-parseInt(_0xdd399(0x188))/0x6+-parseInt(_0xdd399(0x198))/0x7+parseInt(_0xdd399(0x1a3))/0x8;if(_0x254d93===_0x3068ce)break;else _0x4d1838['push'](_0x4d1838['shift']());}catch(_0x1d7a9f){_0x4d1838['push'](_0x4d1838['shift']());}}}(a33_0x323c,0x63a0c));import{PRODUCT_CONFIG}from'../constant/product.js';function a33_0x323c(){const _0x20db4a=['Skip\x20confirmation\x20for\x20high-risk\x20writes','27mmgaVb','cliDisplayName','sqlcode','dryRun','nonInteractive','verbose','json\x20|\x20pretty\x20|\x20compress','cliBinName','1065552yLUHDC','14483200iDgPrw','non-interactive','fromEntries','Verbose\x20output','Environment','type','string','JSON\x20params\x20for\x20execute\x20commands','clear','Preview\x20operation\x20without\x20executing','app','745357bDARnm','help','boolean','Show\x20help','2788902pcicbj','180820oeAyDA','<expr>','<name>','name','params','global','yes','appcode','<code>','SQL\x20query\x20code','meowKey','env','Select\x20app\x20profile\x20by\x20name','format','3496830vmXuZi','307139FcJvCW'];a33_0x323c=function(){return _0x20db4a;};return a33_0x323c();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a33_0x207ed4(0x1a1)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a33_0x207ed4(0x19b)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a33_0x207ed4(0x190),'meowKey':'appcode','type':a33_0x207ed4(0x17f),'description':'Override\x20appcode','hint':a33_0x207ed4(0x191)},{'name':a33_0x207ed4(0x183),'meowKey':'app','type':'string','description':a33_0x207ed4(0x195),'hint':a33_0x207ed4(0x18b)},{'name':a33_0x207ed4(0x194),'meowKey':'env','type':'string','description':a33_0x207ed4(0x1a7),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a33_0x207ed4(0x196),'meowKey':a33_0x207ed4(0x196),'type':a33_0x207ed4(0x17f),'description':'Output\x20format','hint':a33_0x207ed4(0x1a0)},{'name':'jq','meowKey':'jq','type':a33_0x207ed4(0x17f),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a33_0x207ed4(0x18a)},{'name':'dry-run','meowKey':a33_0x207ed4(0x19d),'type':a33_0x207ed4(0x186),'description':a33_0x207ed4(0x182)},{'name':'yes','meowKey':a33_0x207ed4(0x18f),'type':a33_0x207ed4(0x186),'description':a33_0x207ed4(0x199)},{'name':a33_0x207ed4(0x1a4),'meowKey':a33_0x207ed4(0x19e),'type':a33_0x207ed4(0x186),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a33_0x207ed4(0x18e),'meowKey':a33_0x207ed4(0x18e),'type':a33_0x207ed4(0x186),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a33_0x207ed4(0x186),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a33_0x207ed4(0x185),'meowKey':a33_0x207ed4(0x185),'type':a33_0x207ed4(0x186),'description':a33_0x207ed4(0x187)},{'name':'id','meowKey':'id','type':a33_0x207ed4(0x17f),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a33_0x207ed4(0x18c),'type':a33_0x207ed4(0x17f),'description':'Name\x20filter','hidden':!![]},{'name':a33_0x207ed4(0x19c),'meowKey':a33_0x207ed4(0x19c),'type':a33_0x207ed4(0x17f),'description':a33_0x207ed4(0x192),'hidden':!![]},{'name':a33_0x207ed4(0x18d),'meowKey':'params','type':'string','description':a33_0x207ed4(0x180),'hidden':!![]},{'name':a33_0x207ed4(0x19f),'meowKey':a33_0x207ed4(0x19f),'type':a33_0x207ed4(0x186),'description':a33_0x207ed4(0x1a6),'hidden':!![]},{'name':a33_0x207ed4(0x181),'meowKey':a33_0x207ed4(0x181),'type':a33_0x207ed4(0x186),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a33_0x207ed4(0x183),a33_0x207ed4(0x194),a33_0x207ed4(0x196),'jq','dry-run',a33_0x207ed4(0x18f),'non-interactive','ci']);export function buildMeowFlags(){const _0x342bfe=a33_0x207ed4;return Object[_0x342bfe(0x1a5)](GLOBAL_FLAGS['map'](_0x2acddf=>[_0x2acddf[_0x342bfe(0x193)],{'type':_0x2acddf[_0x342bfe(0x17e)]}]));}
@@ -1 +1 @@
1
- const a34_0x3e20bb=a34_0x2a9e;(function(_0xc887b0,_0x4bbe4b){const _0x311d31=a34_0x2a9e,_0x440664=_0xc887b0();while(!![]){try{const _0x18a8ab=-parseInt(_0x311d31(0x15f))/0x1*(-parseInt(_0x311d31(0x162))/0x2)+-parseInt(_0x311d31(0x161))/0x3*(-parseInt(_0x311d31(0x15e))/0x4)+parseInt(_0x311d31(0x15d))/0x5+-parseInt(_0x311d31(0x159))/0x6+parseInt(_0x311d31(0x15b))/0x7+-parseInt(_0x311d31(0x160))/0x8+parseInt(_0x311d31(0x15c))/0x9;if(_0x18a8ab===_0x4bbe4b)break;else _0x440664['push'](_0x440664['shift']());}catch(_0x5383e6){_0x440664['push'](_0x440664['shift']());}}}(a34_0x56a4,0x96b4a));function a34_0x56a4(){const _0x1b65c7=['2677515xlPWRE','1384hszWLC','905543wSRARx','8776536iMjmmi','4476uQltIm','2Jwtfph','6751842jTNMkt','compress','2355857qSFmjs','4912515HtQPvy'];a34_0x56a4=function(){return _0x1b65c7;};return a34_0x56a4();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':'en-US','riskLevel':'write'};function a34_0x2a9e(_0x4c483a,_0x28170a){_0x4c483a=_0x4c483a-0x159;const _0x56a4a4=a34_0x56a4();let _0x2a9e05=_0x56a4a4[_0x4c483a];return _0x2a9e05;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a34_0x3e20bb(0x15a);
1
+ const a34_0x4a9ec1=a34_0x4618;(function(_0x2b9f11,_0x14dba8){const _0x4116de=a34_0x4618,_0x4de936=_0x2b9f11();while(!![]){try{const _0x3bee07=parseInt(_0x4116de(0x147))/0x1*(parseInt(_0x4116de(0x144))/0x2)+parseInt(_0x4116de(0x14c))/0x3*(-parseInt(_0x4116de(0x14f))/0x4)+-parseInt(_0x4116de(0x14e))/0x5*(parseInt(_0x4116de(0x14b))/0x6)+-parseInt(_0x4116de(0x149))/0x7*(-parseInt(_0x4116de(0x143))/0x8)+-parseInt(_0x4116de(0x148))/0x9+-parseInt(_0x4116de(0x146))/0xa+parseInt(_0x4116de(0x150))/0xb;if(_0x3bee07===_0x14dba8)break;else _0x4de936['push'](_0x4de936['shift']());}catch(_0x40c698){_0x4de936['push'](_0x4de936['shift']());}}}(a34_0x183f,0x20dd3));export const DEFAULT_APP_PROFILE_NAME=a34_0x4a9ec1(0x14d);export const DEFAULT_CONFIG_VALUES={'env':a34_0x4a9ec1(0x14a),'format':a34_0x4a9ec1(0x151),'locale':a34_0x4a9ec1(0x142),'riskLevel':a34_0x4a9ec1(0x145)};function a34_0x183f(){const _0x3fac72=['57006SxedYX','main','5CkWdhn','48LSRRwe','774235oHgyYQ','compress','en-US','8PavjpJ','6JZUZvt','write','540590UWtjvY','71444WZTzsL','18351ktUhOl','1740851GfDehq','production','688062OfPTjY'];a34_0x183f=function(){return _0x3fac72;};return a34_0x183f();}function a34_0x4618(_0x19adf7,_0x516e2b){_0x19adf7=_0x19adf7-0x142;const _0x183fbf=a34_0x183f();let _0x461835=_0x183fbf[_0x19adf7];return _0x461835;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a35_0xf56e(){const _0x6496f1=['1159452hTJNZM','6671KCcqEl','12uCXyBJ','npmRegistryBaseUrl','14660162SqXUcX','905005EeEeGz','2512vAguBA','npmPackageName','skillSource','2965254qkIQjs','192261IymPPZ','3153YIrQqe','30FkarPr','1302PnvlKI'];a35_0xf56e=function(){return _0x6496f1;};return a35_0xf56e();}const a35_0x3b09d5=a35_0x3c5b;(function(_0x4268f6,_0x1f6569){const _0xb8eb36=a35_0x3c5b,_0x43f62e=_0x4268f6();while(!![]){try{const _0x48394b=-parseInt(_0xb8eb36(0x126))/0x1+-parseInt(_0xb8eb36(0x129))/0x2*(parseInt(_0xb8eb36(0x127))/0x3)+-parseInt(_0xb8eb36(0x12c))/0x4*(-parseInt(_0xb8eb36(0x12f))/0x5)+-parseInt(_0xb8eb36(0x125))/0x6+parseInt(_0xb8eb36(0x12b))/0x7*(parseInt(_0xb8eb36(0x122))/0x8)+-parseInt(_0xb8eb36(0x12a))/0x9*(parseInt(_0xb8eb36(0x128))/0xa)+parseInt(_0xb8eb36(0x12e))/0xb;if(_0x48394b===_0x1f6569)break;else _0x43f62e['push'](_0x43f62e['shift']());}catch(_0x39efd4){_0x43f62e['push'](_0x43f62e['shift']());}}}(a35_0xf56e,0x66028));import{PRODUCT_CONFIG}from'../constant/product.js';function a35_0x3c5b(_0x40d806,_0x8809c3){_0x40d806=_0x40d806-0x122;const _0xf56e46=a35_0xf56e();let _0x3c5b76=_0xf56e46[_0x40d806];return _0x3c5b76;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a35_0x3b09d5(0x123)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x3b09d5(0x124)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x3b09d5(0x12d)];
1
+ const a35_0x4e3bcd=a35_0x3dcf;(function(_0xebe49b,_0x5b7dd3){const _0x4ae3ce=a35_0x3dcf,_0x1f10ff=_0xebe49b();while(!![]){try{const _0x1e6c94=-parseInt(_0x4ae3ce(0x1b2))/0x1*(parseInt(_0x4ae3ce(0x1b4))/0x2)+-parseInt(_0x4ae3ce(0x1ab))/0x3+-parseInt(_0x4ae3ce(0x1b5))/0x4+-parseInt(_0x4ae3ce(0x1b0))/0x5+-parseInt(_0x4ae3ce(0x1af))/0x6+-parseInt(_0x4ae3ce(0x1ad))/0x7*(-parseInt(_0x4ae3ce(0x1b3))/0x8)+parseInt(_0x4ae3ce(0x1ae))/0x9;if(_0x1e6c94===_0x5b7dd3)break;else _0x1f10ff['push'](_0x1f10ff['shift']());}catch(_0x379844){_0x1f10ff['push'](_0x1f10ff['shift']());}}}(a35_0x3ee2,0xc40d9));function a35_0x3ee2(){const _0x9f9e46=['1398BCRKeB','6021456BDLOkt','2280555hLhuqe','skillSource','70WycjCi','61101927kjDFGj','4640004yWoTrR','7712625prVVvm','npmRegistryBaseUrl','2118bNdHBU','60656FMbJUT'];a35_0x3ee2=function(){return _0x9f9e46;};return a35_0x3ee2();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a35_0x3dcf(_0x2a5b0f,_0xa348a7){_0x2a5b0f=_0x2a5b0f-0x1ab;const _0x3ee2b2=a35_0x3ee2();let _0x3dcf32=_0x3ee2b2[_0x2a5b0f];return _0x3dcf32;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a35_0x4e3bcd(0x1ac)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a35_0x4e3bcd(0x1b1)];
@@ -1 +1 @@
1
- function a36_0x543d(){const _0x2aeac1=['112425PiByWy','1130530pQIKtJ','production','apiDomain','93465qBawCw','142828UpYZiv','10ewpLAI','runtimeDomain','runtime','domains','32940bfhYvo','568480xQGNZc','48WSFTku','api','userDomain','63kMWihR','101644nVDQet','user','nonProduction'];a36_0x543d=function(){return _0x2aeac1;};return a36_0x543d();}const a36_0x23e24a=a36_0x4ec6;(function(_0x299aa1,_0x58574a){const _0x3f16da=a36_0x4ec6,_0xf62754=_0x299aa1();while(!![]){try{const _0x10a605=-parseInt(_0x3f16da(0x17b))/0x1+-parseInt(_0x3f16da(0x182))/0x2+-parseInt(_0x3f16da(0x18a))/0x3+parseInt(_0x3f16da(0x187))/0x4*(-parseInt(_0x3f16da(0x17d))/0x5)+-parseInt(_0x3f16da(0x181))/0x6+parseInt(_0x3f16da(0x17c))/0x7*(-parseInt(_0x3f16da(0x183))/0x8)+-parseInt(_0x3f16da(0x186))/0x9*(-parseInt(_0x3f16da(0x178))/0xa);if(_0x10a605===_0x58574a)break;else _0xf62754['push'](_0xf62754['shift']());}catch(_0xedcb8b){_0xf62754['push'](_0xf62754['shift']());}}}(a36_0x543d,0x3034f));function a36_0x4ec6(_0x278f55,_0x15d28c){_0x278f55=_0x278f55-0x178;const _0x543dfc=a36_0x543d();let _0x4ec66f=_0x543dfc[_0x278f55];return _0x4ec66f;}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x488d9a){const _0xb9b2d1=a36_0x4ec6;customApiDomain=_0x488d9a?.[_0xb9b2d1(0x17a)],customUserDomain=_0x488d9a?.[_0xb9b2d1(0x185)],customRuntimeDomain=_0x488d9a?.[_0xb9b2d1(0x17e)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0x23e24a(0x179)][a36_0x23e24a(0x188)]:PRODUCT_CONFIG[a36_0x23e24a(0x180)][a36_0x23e24a(0x189)][a36_0x23e24a(0x188)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x23e24a(0x180)]['production']['api']:PRODUCT_CONFIG[a36_0x23e24a(0x180)][a36_0x23e24a(0x189)][a36_0x23e24a(0x184)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a36_0x23e24a(0x179)][a36_0x23e24a(0x17f)]:PRODUCT_CONFIG[a36_0x23e24a(0x180)][a36_0x23e24a(0x189)]['runtime']);
1
+ const a36_0x531e53=a36_0x28b8;(function(_0x31e698,_0x7da591){const _0xbef49b=a36_0x28b8,_0xb13567=_0x31e698();while(!![]){try{const _0x1504b4=-parseInt(_0xbef49b(0xa7))/0x1+-parseInt(_0xbef49b(0xa2))/0x2+parseInt(_0xbef49b(0xaa))/0x3*(-parseInt(_0xbef49b(0xa0))/0x4)+-parseInt(_0xbef49b(0xa1))/0x5*(-parseInt(_0xbef49b(0xa3))/0x6)+parseInt(_0xbef49b(0xa4))/0x7+parseInt(_0xbef49b(0xa9))/0x8*(-parseInt(_0xbef49b(0x9f))/0x9)+parseInt(_0xbef49b(0x9d))/0xa*(parseInt(_0xbef49b(0x9b))/0xb);if(_0x1504b4===_0x7da591)break;else _0xb13567['push'](_0xb13567['shift']());}catch(_0x4d2c41){_0xb13567['push'](_0xb13567['shift']());}}}(a36_0x3c8b,0xaa528));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4d96b6){const _0x300512=a36_0x28b8;customApiDomain=_0x4d96b6?.[_0x300512(0xa6)],customUserDomain=_0x4d96b6?.[_0x300512(0x98)],customRuntimeDomain=_0x4d96b6?.[_0x300512(0xa5)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x531e53(0xa8)][a36_0x531e53(0x99)][a36_0x531e53(0x9c)]:PRODUCT_CONFIG[a36_0x531e53(0xa8)][a36_0x531e53(0x9a)][a36_0x531e53(0x9c)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x531e53(0xa8)]['production'][a36_0x531e53(0x9e)]:PRODUCT_CONFIG['domains'][a36_0x531e53(0x9a)]['api']);function a36_0x3c8b(){const _0x2cb12c=['9278216ZIwFdM','375NgPrDV','runtime','userDomain','production','nonProduction','11kInjYD','user','25018900VMtSqL','api','9cICLZD','18164VUhGkw','10iYmqPm','935460hiuXiS','130488hApmCU','5923659plgEZE','runtimeDomain','apiDomain','498851HeQBwc','domains'];a36_0x3c8b=function(){return _0x2cb12c;};return a36_0x3c8b();}function a36_0x28b8(_0x493de8,_0x4e4320){_0x493de8=_0x493de8-0x98;const _0x3c8ba3=a36_0x3c8b();let _0x28b872=_0x3c8ba3[_0x493de8];return _0x28b872;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a36_0x531e53(0xa8)]['production'][a36_0x531e53(0xab)]:PRODUCT_CONFIG['domains']['nonProduction'][a36_0x531e53(0xab)]);
@@ -1 +1 @@
1
- const a37_0x58a07a=a37_0x16b9;(function(_0x4ad663,_0x3a73fb){const _0x2b960f=a37_0x16b9,_0x2e7829=_0x4ad663();while(!![]){try{const _0x252bab=-parseInt(_0x2b960f(0xf7))/0x1+-parseInt(_0x2b960f(0xfc))/0x2+-parseInt(_0x2b960f(0xf9))/0x3+parseInt(_0x2b960f(0xfe))/0x4*(-parseInt(_0x2b960f(0xfd))/0x5)+-parseInt(_0x2b960f(0x100))/0x6+-parseInt(_0x2b960f(0xf4))/0x7*(-parseInt(_0x2b960f(0xfb))/0x8)+parseInt(_0x2b960f(0xf8))/0x9*(parseInt(_0x2b960f(0xf5))/0xa);if(_0x252bab===_0x3a73fb)break;else _0x2e7829['push'](_0x2e7829['shift']());}catch(_0x45298c){_0x2e7829['push'](_0x2e7829['shift']());}}}(a37_0x34c9,0x8123e));import{productEnv}from'../constant/product.js';function a37_0x34c9(){const _0x2cbb0c=['production','412781GmMteR','3438uMDGon','2579592kAzorp','online','4857112WCXibH','67058HrdRNq','28555MpJood','356TNbLgg','development','1530564OWjSWZ','daily','7mojcrL','52130GvkADz'];a37_0x34c9=function(){return _0x2cbb0c;};return a37_0x34c9();}export const RUNTIME_ENV_VALUES=[a37_0x58a07a(0xf6),a37_0x58a07a(0xff),a37_0x58a07a(0xf3)];export function normalizeEnv(_0x5057b3){const _0x480ef1=a37_0x58a07a;return _0x5057b3===_0x480ef1(0xfa)?_0x480ef1(0xf6):_0x5057b3;}export function isProduction(_0x2352c2){const _0x26277f=a37_0x58a07a;return normalizeEnv(_0x2352c2)===_0x26277f(0xf6);}export function isDaily(_0x4ce030){return normalizeEnv(_0x4ce030)==='daily';}export function isDev(_0x35f68e){const _0x49395f=a37_0x58a07a,_0x2de9d6=normalizeEnv(_0x35f68e);return _0x2de9d6===_0x49395f(0xff)||_0x2de9d6==='dev';}let env=normalizeEnv(productEnv('ENV')||a37_0x58a07a(0xf6));export function getEnv(){return env;}function a37_0x16b9(_0x1e570f,_0x4ad4fe){_0x1e570f=_0x1e570f-0xf3;const _0x34c9b0=a37_0x34c9();let _0x16b9bb=_0x34c9b0[_0x1e570f];return _0x16b9bb;}export function initEnv(_0x2a26eb){env=normalizeEnv(_0x2a26eb);}
1
+ const a37_0x1d7c73=a37_0x268c;(function(_0x24d958,_0x20be11){const _0x340adf=a37_0x268c,_0x268d1d=_0x24d958();while(!![]){try{const _0x18cd2f=parseInt(_0x340adf(0xfe))/0x1*(parseInt(_0x340adf(0xfc))/0x2)+parseInt(_0x340adf(0xf4))/0x3+parseInt(_0x340adf(0xf9))/0x4*(parseInt(_0x340adf(0x100))/0x5)+-parseInt(_0x340adf(0xfd))/0x6+-parseInt(_0x340adf(0xf8))/0x7*(-parseInt(_0x340adf(0xff))/0x8)+parseInt(_0x340adf(0xfa))/0x9*(parseInt(_0x340adf(0xfb))/0xa)+parseInt(_0x340adf(0xf7))/0xb;if(_0x18cd2f===_0x20be11)break;else _0x268d1d['push'](_0x268d1d['shift']());}catch(_0xa6f3d9){_0x268d1d['push'](_0x268d1d['shift']());}}}(a37_0x5d13,0x2577a));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a37_0x1d7c73(0xf3),'development',a37_0x1d7c73(0xf6)];export function normalizeEnv(_0xe27a1c){return _0xe27a1c==='online'?'production':_0xe27a1c;}export function isProduction(_0x2972ae){const _0x3310fd=a37_0x1d7c73;return normalizeEnv(_0x2972ae)===_0x3310fd(0xf3);}export function isDaily(_0x323d1e){const _0x73a02c=a37_0x1d7c73;return normalizeEnv(_0x323d1e)===_0x73a02c(0xf6);}function a37_0x268c(_0x36d45a,_0x12f2c2){_0x36d45a=_0x36d45a-0xf3;const _0x5d135b=a37_0x5d13();let _0x268caa=_0x5d135b[_0x36d45a];return _0x268caa;}export function isDev(_0x191941){const _0xaa3c19=a37_0x1d7c73,_0x2becfe=normalizeEnv(_0x191941);return _0x2becfe==='development'||_0x2becfe===_0xaa3c19(0xf5);}let env=normalizeEnv(productEnv(a37_0x1d7c73(0x101))||'production');function a37_0x5d13(){const _0x42a314=['193613GgxzCG','304BlxCUi','18gtWMQa','172350aHuhEL','260358flJrbc','1313844ICGMYt','1EWlhTQ','16MZsGFN','685KNpWkX','ENV','production','312945FBPxCw','dev','daily','415206bmuUZN'];a37_0x5d13=function(){return _0x42a314;};return a37_0x5d13();}export function getEnv(){return env;}export function initEnv(_0x374fec){env=normalizeEnv(_0x374fec);}
@@ -1 +1 @@
1
- function a38_0x5b91(){const _0x3de495=['1vVZLQA','2060NfuKlt','1786512QcgwCZ','1461nPVZUS','24952900fcGaPH','json','758428tCqCTP','4946787kqNLVR','3864zdWFbu','7378895lNnlXl','7777chRgEh'];a38_0x5b91=function(){return _0x3de495;};return a38_0x5b91();}const a38_0xeda831=a38_0x32c8;function a38_0x32c8(_0x4da6ca,_0x128010){_0x4da6ca=_0x4da6ca-0x191;const _0x5b9120=a38_0x5b91();let _0x32c886=_0x5b9120[_0x4da6ca];return _0x32c886;}(function(_0x5200ce,_0x389278){const _0x2f5394=a38_0x32c8,_0x23e30d=_0x5200ce();while(!![]){try{const _0x470804=parseInt(_0x2f5394(0x199))/0x1*(-parseInt(_0x2f5394(0x194))/0x2)+parseInt(_0x2f5394(0x191))/0x3*(-parseInt(_0x2f5394(0x19a))/0x4)+-parseInt(_0x2f5394(0x197))/0x5+parseInt(_0x2f5394(0x196))/0x6*(parseInt(_0x2f5394(0x198))/0x7)+parseInt(_0x2f5394(0x19b))/0x8+-parseInt(_0x2f5394(0x195))/0x9+parseInt(_0x2f5394(0x192))/0xa;if(_0x470804===_0x389278)break;else _0x23e30d['push'](_0x23e30d['shift']());}catch(_0x244cf6){_0x23e30d['push'](_0x23e30d['shift']());}}}(a38_0x5b91,0xbe197));export const OUTPUT_FORMAT_VALUES=[a38_0xeda831(0x193),'pretty','compress'];
1
+ const a38_0x41ed76=a38_0x4ca8;function a38_0x1ea5(){const _0x1a42b8=['30whYmav','1030nptjhE','pretty','1577044CMujnR','6311466DkEVsc','166792XeVUvQ','3983440VnHcGh','9913960CjfodV','57RfijsR','831eotyxR','json','198pCWLzJ','2420550nmoSxR'];a38_0x1ea5=function(){return _0x1a42b8;};return a38_0x1ea5();}function a38_0x4ca8(_0x42a854,_0x224cc0){_0x42a854=_0x42a854-0x125;const _0x1ea503=a38_0x1ea5();let _0x4ca8dd=_0x1ea503[_0x42a854];return _0x4ca8dd;}(function(_0x576b03,_0x44e53f){const _0x828f53=a38_0x4ca8,_0xdf2adf=_0x576b03();while(!![]){try{const _0x29c8b4=-parseInt(_0x828f53(0x129))/0x1*(-parseInt(_0x828f53(0x12e))/0x2)+parseInt(_0x828f53(0x128))/0x3*(parseInt(_0x828f53(0x125))/0x4)+parseInt(_0x828f53(0x126))/0x5+-parseInt(_0x828f53(0x12d))/0x6*(-parseInt(_0x828f53(0x130))/0x7)+parseInt(_0x828f53(0x127))/0x8+parseInt(_0x828f53(0x131))/0x9+-parseInt(_0x828f53(0x12c))/0xa*(parseInt(_0x828f53(0x12b))/0xb);if(_0x29c8b4===_0x44e53f)break;else _0xdf2adf['push'](_0xdf2adf['shift']());}catch(_0x53feed){_0xdf2adf['push'](_0xdf2adf['shift']());}}}(a38_0x1ea5,0xb1778));export const OUTPUT_FORMAT_VALUES=[a38_0x41ed76(0x12a),a38_0x41ed76(0x12f),'compress'];
@@ -1 +1 @@
1
- function a39_0x7239(_0x45d825,_0x534104){_0x45d825=_0x45d825-0x18b;const _0x4d644d=a39_0x4d64();let _0x723957=_0x4d644d[_0x45d825];return _0x723957;}const a39_0x1fe87c=a39_0x7239;(function(_0x1100f4,_0x136dd5){const _0x215399=a39_0x7239,_0x2aea4b=_0x1100f4();while(!![]){try{const _0x3da085=parseInt(_0x215399(0x195))/0x1+-parseInt(_0x215399(0x1a4))/0x2*(-parseInt(_0x215399(0x19e))/0x3)+parseInt(_0x215399(0x193))/0x4*(-parseInt(_0x215399(0x199))/0x5)+-parseInt(_0x215399(0x190))/0x6*(parseInt(_0x215399(0x1a8))/0x7)+-parseInt(_0x215399(0x1a6))/0x8+-parseInt(_0x215399(0x19b))/0x9+parseInt(_0x215399(0x19f))/0xa;if(_0x3da085===_0x136dd5)break;else _0x2aea4b['push'](_0x2aea4b['shift']());}catch(_0x2136ee){_0x2aea4b['push'](_0x2aea4b['shift']());}}}(a39_0x4d64,0x305a4));export const PRODUCT_CONFIG={'cliBinName':a39_0x1fe87c(0x18e),'cliDisplayName':a39_0x1fe87c(0x196),'npmPackageName':a39_0x1fe87c(0x19a),'skillSource':a39_0x1fe87c(0x1a0),'npmRegistryBaseUrl':a39_0x1fe87c(0x1a1),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a39_0x1fe87c(0x198)],'configFileNames':['.lovrabet.json',a39_0x1fe87c(0x1a5)],'newConfigFileName':a39_0x1fe87c(0x197),'homeDirName':a39_0x1fe87c(0x18d),'logFileName':a39_0x1fe87c(0x194),'invokeSource':a39_0x1fe87c(0x191),'userCenterDisplayName':a39_0x1fe87c(0x1a3),'skipNpxSkillsEnvSuffix':a39_0x1fe87c(0x18c),'domains':{'production':{'user':a39_0x1fe87c(0x18f),'api':a39_0x1fe87c(0x1a2),'runtime':a39_0x1fe87c(0x18b)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a39_0x1fe87c(0x1a9),'runtime':a39_0x1fe87c(0x19d)}},'accessKeyCreatePath':a39_0x1fe87c(0x19c)};export function productEnvName(_0x10a7ee){return PRODUCT_CONFIG['envPrefix']+'_'+_0x10a7ee;}export function productEnvNames(_0x45f980){const _0x463eff=a39_0x1fe87c;return[productEnvName(_0x45f980),...PRODUCT_CONFIG[_0x463eff(0x1a7)][_0x463eff(0x192)](_0x50a25f=>_0x50a25f+'_'+_0x45f980)];}function a39_0x4d64(){const _0x1df946=['https://registry.npmjs.org','https://api.lovrabet.com','Lovrabet\x20User\x20Center','44BgJNCc','.lovrabetrc','2200824MKXQJb','legacyEnvPrefixes','1972943PEoBnG','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','SKIP_NPX_SKILLS','.lovrabet','lovrabet','https://user.lovrabet.com','6sXDeKn','cli:lovrabet-runtime','map','48rDvVay','.lovrabet-runtime.log','267376tQQfwr','Lovrabet\x20Runtime\x20CLI','.lovrabet.json','RABETBASE','25505FdueSj','@lovrabet/lovrabet-cli','2746557sLFBOu','/user/ak','https://daily-runtime.lovrabet.com','4227QmBIhI','8230150OWsRJl','lovrabet/lovrabet-cli'];a39_0x4d64=function(){return _0x1df946;};return a39_0x4d64();}export function productEnv(_0x24c11f){for(const _0xa7c3c4 of productEnvNames(_0x24c11f)){const _0x2c4dcc=process.env[_0xa7c3c4];if(_0x2c4dcc!==undefined)return _0x2c4dcc;}return undefined;}
1
+ const a39_0xd4fcae=a39_0x2112;(function(_0x4f9d82,_0x2ee979){const _0x4122ea=a39_0x2112,_0x5dfda0=_0x4f9d82();while(!![]){try{const _0x548964=-parseInt(_0x4122ea(0x1c1))/0x1+-parseInt(_0x4122ea(0x1d1))/0x2*(parseInt(_0x4122ea(0x1ba))/0x3)+parseInt(_0x4122ea(0x1cd))/0x4+-parseInt(_0x4122ea(0x1bc))/0x5*(parseInt(_0x4122ea(0x1c6))/0x6)+-parseInt(_0x4122ea(0x1c5))/0x7*(parseInt(_0x4122ea(0x1cb))/0x8)+-parseInt(_0x4122ea(0x1d2))/0x9+parseInt(_0x4122ea(0x1ca))/0xa;if(_0x548964===_0x2ee979)break;else _0x5dfda0['push'](_0x5dfda0['shift']());}catch(_0x48444b){_0x5dfda0['push'](_0x5dfda0['shift']());}}}(a39_0x4523,0xd23b0));export const PRODUCT_CONFIG={'cliBinName':a39_0xd4fcae(0x1c2),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a39_0xd4fcae(0x1c7),'skillSource':a39_0xd4fcae(0x1bd),'npmRegistryBaseUrl':a39_0xd4fcae(0x1b9),'envPrefix':a39_0xd4fcae(0x1d5),'legacyEnvPrefixes':[a39_0xd4fcae(0x1bb)],'configFileNames':[a39_0xd4fcae(0x1c8),a39_0xd4fcae(0x1cf)],'newConfigFileName':a39_0xd4fcae(0x1c8),'homeDirName':'.lovrabet','logFileName':a39_0xd4fcae(0x1b8),'invokeSource':a39_0xd4fcae(0x1d3),'userCenterDisplayName':a39_0xd4fcae(0x1be),'skipNpxSkillsEnvSuffix':a39_0xd4fcae(0x1ce),'domains':{'production':{'user':a39_0xd4fcae(0x1c3),'api':a39_0xd4fcae(0x1d4),'runtime':a39_0xd4fcae(0x1c0)},'nonProduction':{'user':a39_0xd4fcae(0x1d0),'api':a39_0xd4fcae(0x1cc),'runtime':a39_0xd4fcae(0x1bf)}},'accessKeyCreatePath':a39_0xd4fcae(0x1c9)};export function productEnvName(_0x3246da){return PRODUCT_CONFIG['envPrefix']+'_'+_0x3246da;}export function productEnvNames(_0x3bcfa4){const _0x4e6602=a39_0xd4fcae;return[productEnvName(_0x3bcfa4),...PRODUCT_CONFIG[_0x4e6602(0x1c4)]['map'](_0x51e63f=>_0x51e63f+'_'+_0x3bcfa4)];}function a39_0x4523(){const _0x30f637=['https://runtime.lovrabet.com','1302864RVADpm','lovrabet','https://user.lovrabet.com','legacyEnvPrefixes','232029ecANFy','5454nNIETT','@lovrabet/lovrabet-cli','.lovrabet.json','/user/ak','22476660NPEJWa','56LBfPCv','https://daily-api.lovrabet.com','4867196DqBMmr','SKIP_NPX_SKILLS','.lovrabetrc','https://user-daily.lovrabet.com','195906AOYuqx','725436wBnVLO','cli:lovrabet-runtime','https://api.lovrabet.com','LOVRABET','.lovrabet-runtime.log','https://registry.npmjs.org','3eYJZAi','RABETBASE','4895KDKAUP','lovrabet/lovrabet-cli','Lovrabet\x20User\x20Center','https://daily-runtime.lovrabet.com'];a39_0x4523=function(){return _0x30f637;};return a39_0x4523();}function a39_0x2112(_0x5ee687,_0x45d646){_0x5ee687=_0x5ee687-0x1b8;const _0x452350=a39_0x4523();let _0x2112ec=_0x452350[_0x5ee687];return _0x2112ec;}export function productEnv(_0x1ba161){for(const _0xfd0b4d of productEnvNames(_0x1ba161)){const _0x220f07=process.env[_0xfd0b4d];if(_0x220f07!==undefined)return _0x220f07;}return undefined;}
@@ -1 +1 @@
1
- function a40_0x51ef(_0x508a27,_0x19ed64){_0x508a27=_0x508a27-0x65;const _0xe20bd9=a40_0xe20b();let _0x51efac=_0xe20bd9[_0x508a27];return _0x51efac;}(function(_0x5d1657,_0x5d61f5){const _0x547ad7=a40_0x51ef,_0x2433d4=_0x5d1657();while(!![]){try{const _0x272d15=-parseInt(_0x547ad7(0x6d))/0x1+parseInt(_0x547ad7(0x6b))/0x2+parseInt(_0x547ad7(0x67))/0x3+-parseInt(_0x547ad7(0x69))/0x4*(parseInt(_0x547ad7(0x6c))/0x5)+parseInt(_0x547ad7(0x68))/0x6+-parseInt(_0x547ad7(0x66))/0x7*(-parseInt(_0x547ad7(0x6a))/0x8)+parseInt(_0x547ad7(0x65))/0x9;if(_0x272d15===_0x5d61f5)break;else _0x2433d4['push'](_0x2433d4['shift']());}catch(_0x5af13d){_0x2433d4['push'](_0x2433d4['shift']());}}}(a40_0xe20b,0xc2733));function a40_0xe20b(){const _0x2db63e=['3929763DJRcTH','1536960QskeYF','353776YGSbIB','2152HjAwJx','320540nMzKgw','85WCpLpR','1556865sIorfr','17753634FVmnko','4109ZYlcWa'];a40_0xe20b=function(){return _0x2db63e;};return a40_0xe20b();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
1
+ const a40_0x37b891=a40_0x3c9b;function a40_0x820c(){const _0x46273a=['428950pfOile','782573TjryZB','446303BsHQlN','236025HIupbC','210LtYzAd','569616awLEWm','2575390WtkKcg','11997251ROrXPF','8DVArDt','4oTkvlN','3bHcsPm','high-risk-write'];a40_0x820c=function(){return _0x46273a;};return a40_0x820c();}(function(_0x1b1525,_0x3446d6){const _0x286eb0=a40_0x3c9b,_0x230bc5=_0x1b1525();while(!![]){try{const _0x1fb2ed=parseInt(_0x286eb0(0x8c))/0x1+parseInt(_0x286eb0(0x85))/0x2*(parseInt(_0x286eb0(0x89))/0x3)+parseInt(_0x286eb0(0x88))/0x4*(-parseInt(_0x286eb0(0x8b))/0x5)+parseInt(_0x286eb0(0x90))/0x6+-parseInt(_0x286eb0(0x86))/0x7*(parseInt(_0x286eb0(0x87))/0x8)+-parseInt(_0x286eb0(0x8e))/0x9*(-parseInt(_0x286eb0(0x8f))/0xa)+parseInt(_0x286eb0(0x8d))/0xb;if(_0x1fb2ed===_0x3446d6)break;else _0x230bc5['push'](_0x230bc5['shift']());}catch(_0x36c0dd){_0x230bc5['push'](_0x230bc5['shift']());}}}(a40_0x820c,0xe9993));function a40_0x3c9b(_0x1b2793,_0x12f368){_0x1b2793=_0x1b2793-0x85;const _0x820c4c=a40_0x820c();let _0x3c9b02=_0x820c4c[_0x1b2793];return _0x3c9b02;}export const RISK_LEVEL_VALUES=['read','write',a40_0x37b891(0x8a)];
@@ -1 +1 @@
1
- const a41_0x4308b5=a41_0xc4af;function a41_0x473b(){const _0x5c70c7=['6675000GbTROd','160TIPzPW','production','276cPhQgw','1212870qKfRMS','12448bwiQNj','11boePlI','2866977JvbPTV','393510ZzNxRw','5385paqljk','8vrvwJc','1125341uxiRAJ'];a41_0x473b=function(){return _0x5c70c7;};return a41_0x473b();}(function(_0x47b551,_0x1da67b){const _0x38f2b1=a41_0xc4af,_0x3d37c1=_0x47b551();while(!![]){try{const _0x58f817=-parseInt(_0x38f2b1(0x170))/0x1+-parseInt(_0x38f2b1(0x177))/0x2*(parseInt(_0x38f2b1(0x171))/0x3)+-parseInt(_0x38f2b1(0x16d))/0x4*(parseInt(_0x38f2b1(0x175))/0x5)+-parseInt(_0x38f2b1(0x178))/0x6+-parseInt(_0x38f2b1(0x173))/0x7*(-parseInt(_0x38f2b1(0x172))/0x8)+parseInt(_0x38f2b1(0x16f))/0x9+-parseInt(_0x38f2b1(0x174))/0xa*(-parseInt(_0x38f2b1(0x16e))/0xb);if(_0x58f817===_0x1da67b)break;else _0x3d37c1['push'](_0x3d37c1['shift']());}catch(_0x59c57c){_0x3d37c1['push'](_0x3d37c1['shift']());}}}(a41_0x473b,0x31c5b));function a41_0xc4af(_0x295314,_0x2369f0){_0x295314=_0x295314-0x16d;const _0x473b25=a41_0x473b();let _0xc4afde=_0x473b25[_0x295314];return _0xc4afde;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a41_0x4308b5(0x176)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a41_0x1fa641=a41_0x5279;function a41_0x5279(_0x8c63bf,_0x5a1005){_0x8c63bf=_0x8c63bf-0x1e6;const _0x436b6a=a41_0x436b();let _0x5279c6=_0x436b6a[_0x8c63bf];return _0x5279c6;}(function(_0xc132b1,_0x5e432e){const _0x1fb052=a41_0x5279,_0x359c2d=_0xc132b1();while(!![]){try{const _0x4f8c4e=-parseInt(_0x1fb052(0x1ee))/0x1*(-parseInt(_0x1fb052(0x1e9))/0x2)+-parseInt(_0x1fb052(0x1ed))/0x3+parseInt(_0x1fb052(0x1eb))/0x4*(parseInt(_0x1fb052(0x1e6))/0x5)+-parseInt(_0x1fb052(0x1e7))/0x6+parseInt(_0x1fb052(0x1e8))/0x7+parseInt(_0x1fb052(0x1ef))/0x8+-parseInt(_0x1fb052(0x1f1))/0x9;if(_0x4f8c4e===_0x5e432e)break;else _0x359c2d['push'](_0x359c2d['shift']());}catch(_0xb983eb){_0x359c2d['push'](_0x359c2d['shift']());}}}(a41_0x436b,0xafa0d));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a41_0x1fa641(0x1ea)][a41_0x1fa641(0x1ec)]+PRODUCT_CONFIG[a41_0x1fa641(0x1f0)];function a41_0x436b(){const _0x41627c=['1297664JZlGzi','production','2661848aBkVMz','user','91785GjZtfg','1FLuwQV','895376Exmctq','accessKeyCreatePath','13783473JzvtQe','5QTQzjN','1183314rhbxvf','7367276hkVKAB'];a41_0x436b=function(){return _0x41627c;};return a41_0x436b();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a42_0x9e670b=a42_0x4fc5;(function(_0x215c44,_0x2c4267){const _0xe511b7=a42_0x4fc5,_0x1d412d=_0x215c44();while(!![]){try{const _0x12da0f=-parseInt(_0xe511b7(0x1d6))/0x1*(-parseInt(_0xe511b7(0x1e4))/0x2)+parseInt(_0xe511b7(0x1eb))/0x3+parseInt(_0xe511b7(0x20f))/0x4+-parseInt(_0xe511b7(0x1f1))/0x5*(-parseInt(_0xe511b7(0x20a))/0x6)+parseInt(_0xe511b7(0x1e8))/0x7*(-parseInt(_0xe511b7(0x1d2))/0x8)+parseInt(_0xe511b7(0x1f9))/0x9+-parseInt(_0xe511b7(0x1d1))/0xa*(parseInt(_0xe511b7(0x1f2))/0xb);if(_0x12da0f===_0x2c4267)break;else _0x1d412d['push'](_0x1d412d['shift']());}catch(_0x110d49){_0x1d412d['push'](_0x1d412d['shift']());}}}(a42_0x50b8,0x6880b));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a42_0x50b8(){const _0x2009f1=['true','755122wFHfax','global','accessKey','values','133xGmhAu','apps','development','2170017mDphWS','APPCODE','isTTY','./constant/domain.js','cache','EPERM','29010prwwnK','7202096YxJAUg','raw','daily','inherit','stdin','stdout','env','597357tZeAoH','online','format','high-risk-write','ACCESS_KEY','message','locale','error','apiDomain','configFileNames','join','nonInteractive','setLogPath','PAGE_SIZE','find','object','appcode','474PCyCaT','trim','defaultApp','./constant/env.js','FORMAT','1007380VqBWRM','EXDEV','projectConfig','string','newConfigFileName','.tmp','parse','production','VERBOSE','20FwDxaQ','217904HXsukb','app','riskLevel','setRawCommand','2fPYdtG','code','explicit','read','setRawMode','authRequired','cwd','runtimeDomain','stringify','missing','project','top-level','utf8'];a42_0x50b8=function(){return _0x2009f1;};return a42_0x50b8();}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';function a42_0x4fc5(_0x355681,_0x1218ca){_0x355681=_0x355681-0x1cb;const _0x50b86c=a42_0x50b8();let _0x4fc501=_0x50b86c[_0x355681];return _0x4fc501;}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[a42_0x9e670b(0x202)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x9e670b(0x1cc)];function resolveConfigPath(_0x238835){for(const _0x1f0158 of CONFIG_NAMES){const _0x127b6f=resolve(_0x238835,_0x1f0158);if(existsSync(_0x127b6f))return _0x127b6f;}return undefined;}export function resolveWriteConfigPath(_0x304d83){const _0x2ef581=a42_0x9e670b,_0x39f89d=_0x304d83==='project'?process[_0x2ef581(0x1dc)]():homedir(),_0x12d391=resolveConfigPath(_0x39f89d);return _0x12d391??resolve(_0x39f89d,NEW_CONFIG_NAME);}export function readConfigFile(_0x2ba86b){const _0x39422e=a42_0x9e670b;try{if(existsSync(_0x2ba86b)){const _0x455e40=readFileSync(_0x2ba86b,{'encoding':_0x39422e(0x1e2)});if(_0x455e40){const _0x4a767c=JSON[_0x39422e(0x1ce)](_0x455e40);return migrateOnlineEnv(_0x2ba86b,_0x4a767c),_0x4a767c;}}}catch{}return{};}function migrateOnlineEnv(_0x8ed76e,_0x2b07b4){const _0x3fc303=a42_0x9e670b;let _0xe24526=![];_0x2b07b4[_0x3fc303(0x1f8)]===_0x3fc303(0x1fa)&&(_0x2b07b4[_0x3fc303(0x1f8)]=_0x3fc303(0x1cf),_0xe24526=!![]);if(_0x2b07b4[_0x3fc303(0x1e9)]&&typeof _0x2b07b4[_0x3fc303(0x1e9)]===_0x3fc303(0x208))for(const _0x59682 of Object[_0x3fc303(0x1e7)](_0x2b07b4[_0x3fc303(0x1e9)])){_0x59682&&_0x59682['env']===_0x3fc303(0x1fa)&&(_0x59682[_0x3fc303(0x1f8)]=_0x3fc303(0x1cf),_0xe24526=!![]);}if(_0xe24526)try{writeConfigFile(_0x8ed76e,_0x2b07b4);}catch{}}export function writeConfigFile(_0x450ef4,_0x5e09cf){const _0x24f906=a42_0x9e670b,_0x7980fb=dirname(_0x450ef4);!existsSync(_0x7980fb)&&mkdirSync(_0x7980fb,{'recursive':!![]});const _0x40fd72=_0x450ef4+_0x24f906(0x1cd);try{writeFileSync(_0x40fd72,JSON[_0x24f906(0x1de)](_0x5e09cf,null,0x2)+'\x0a',{'encoding':_0x24f906(0x1e2),'mode':0x180});try{renameSync(_0x40fd72,_0x450ef4);}catch(_0x399961){if(_0x399961[_0x24f906(0x1d7)]===_0x24f906(0x1f0)||_0x399961['code']===_0x24f906(0x210)||_0x399961[_0x24f906(0x1d7)]==='EACCES'){writeFileSync(_0x450ef4,JSON[_0x24f906(0x1de)](_0x5e09cf,null,0x2)+'\x0a',{'encoding':_0x24f906(0x1e2)});try{unlinkSync(_0x40fd72);}catch{}}else throw _0x399961;}}catch(_0x4d7d68){try{unlinkSync(_0x40fd72);}catch{}throw _0x4d7d68;}}export function isNonInteractiveMode(_0x44e915){const _0x3794f8=a42_0x9e670b;return!!(_0x44e915[_0x3794f8(0x204)]||_0x44e915['ci']||productEnvNames('CI')['some'](_0x3629a2=>process.env[_0x3629a2]===_0x3794f8(0x1e3))||process.env.CI===_0x3794f8(0x1e3)||!process[_0x3794f8(0x1f7)][_0x3794f8(0x1ed)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2fde23=a42_0x9e670b;if(!process[_0x2fde23(0x1f6)]['isTTY'])return![];try{const _0xc4ced6=process[_0x2fde23(0x1f6)]['isRaw'];return process[_0x2fde23(0x1f6)][_0x2fde23(0x1da)](!![]),process[_0x2fde23(0x1f6)]['setRawMode'](_0xc4ced6??![]),!![];}catch{return![];}}export async function createContext(_0x3bcbbc){const _0x3a3e8d=a42_0x9e670b,_0x542f2e=readRawConfig(),_0x1930d7=buildConfig(_0x542f2e,_0x3bcbbc);await initGlobalEnvironment(_0x1930d7);const {getUserDomain:_0x1ba50d,getApiDomain:_0x3d9652}=await import(_0x3a3e8d(0x1ee)),_0x41b763={'apiDomain':_0x3d9652(),'userDomain':_0x1ba50d()},_0x5e7822=await buildAuth(_0x1930d7);logger[_0x3a3e8d(0x205)](process['cwd']());const _0x51b0e7=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x3a3e8d(0x203)]('\x20'))['trim']();logger[_0x3a3e8d(0x1d5)](_0x51b0e7);const _0x2c45ac=isNonInteractiveMode(_0x3bcbbc);return{'config':_0x1930d7,'auth':_0x5e7822,'logger':logger,'env':_0x41b763,'nonInteractive':_0x2c45ac};}export function buildConfigFromFlags(_0x4a9d17){return buildConfig(readRawConfig(),_0x4a9d17);}export function getLocalAppAliases(_0x5eb59c){const _0x41a844=a42_0x9e670b;return _0x5eb59c['apps']&&typeof _0x5eb59c['apps']===_0x41a844(0x208)?_0x5eb59c[_0x41a844(0x1e9)]:{};}export function resolveLocalAppAliasCode(_0x362ea9,_0x380fbd){const _0x10b134=a42_0x9e670b;if(!_0x380fbd)return undefined;const _0x4bf88f=getLocalAppAliases(_0x362ea9)[_0x380fbd],_0x407070=_0x4bf88f?.[_0x10b134(0x209)];return typeof _0x407070==='string'&&_0x407070[_0x10b134(0x20b)]()?_0x407070[_0x10b134(0x20b)]():undefined;}export function readAppCodeFromConfig(){const _0x45311b=a42_0x9e670b,_0x29006c=readRawConfig(),_0x22a009=_0x29006c[_0x45311b(0x209)]??_0x29006c[_0x45311b(0x1d3)];if(typeof _0x22a009===_0x45311b(0x1cb)&&_0x22a009[_0x45311b(0x20b)]())return _0x22a009[_0x45311b(0x20b)]();const _0x21a526=resolveLocalAppAliasCode(_0x29006c,typeof _0x29006c['defaultApp']==='string'?_0x29006c[_0x45311b(0x20c)]:undefined);if(_0x21a526)return _0x21a526;const _0x597b0b=normalizeEnv(String(_0x29006c['env']||_0x45311b(0x1cf))),_0xa2c397=isDaily(_0x597b0b)?_0x45311b(0x1f4):isDev(_0x597b0b)?'development':_0x45311b(0x1cf),_0x206ec0=resolveCachedAppCode(typeof _0x29006c['defaultApp']===_0x45311b(0x1cb)?_0x29006c['defaultApp']:undefined,_0xa2c397,typeof _0x29006c['accessKey']===_0x45311b(0x1cb)?_0x29006c[_0x45311b(0x1e6)]:undefined);if(_0x206ec0)return _0x206ec0;const _0x11c1d2=Object[_0x45311b(0x1e7)](getLocalAppAliases(_0x29006c))[_0x45311b(0x207)](_0x48437b=>_0x48437b?.['appcode']);return typeof _0x11c1d2?.[_0x45311b(0x209)]===_0x45311b(0x1cb)&&_0x11c1d2[_0x45311b(0x209)][_0x45311b(0x20b)]()?_0x11c1d2[_0x45311b(0x209)]['trim']():undefined;}export function readScopedConfig(_0x19d338){const _0x8e7d2a=a42_0x9e670b,_0x241a70=_0x19d338['global']?_0x8e7d2a(0x1e5):'project';return readConfigFile(resolveWriteConfigPath(_0x241a70));}export function writeScopedConfig(_0xcb3c41,_0x54e2a0){const _0x204da2=a42_0x9e670b,_0x1a3a9c=_0x54e2a0[_0x204da2(0x1e5)]?_0x204da2(0x1e5):_0x204da2(0x1e0);writeConfigFile(resolveWriteConfigPath(_0x1a3a9c),_0xcb3c41);}export async function initGlobalEnvironment(_0x512c8d){const _0x294273=a42_0x9e670b,{initEnv:_0x27c445}=await import(_0x294273(0x20d));_0x27c445(_0x512c8d['env']);const {initDomains:_0x40f44c}=await import('./constant/domain.js');_0x40f44c({'apiDomain':_0x512c8d[_0x294273(0x1f3)][_0x294273(0x201)]||_0x512c8d[_0x294273(0x1f3)]['host']||undefined,'userDomain':_0x512c8d[_0x294273(0x1f3)]['userDomain']||undefined,'runtimeDomain':_0x512c8d[_0x294273(0x1f3)][_0x294273(0x1dd)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5aca50){const _0x1573c4=a42_0x9e670b;if(!existsSync(_0x5aca50))return{'status':_0x1573c4(0x1df)};try{const _0x185bd1=readFileSync(_0x5aca50,{'encoding':'utf8'});if(!_0x185bd1?.[_0x1573c4(0x20b)]())return{'status':'empty'};const _0x1f8805=JSON[_0x1573c4(0x1ce)](_0x185bd1);return{'status':'ok','data':_0x1f8805};}catch(_0x2d8a17){return{'status':_0x1573c4(0x200),'message':_0x2d8a17 instanceof Error?_0x2d8a17[_0x1573c4(0x1fe)]:String(_0x2d8a17)};}}export function loadRawConfigLayers(_0x1a22d8){const _0x43068e=a42_0x9e670b;let _0x620d12={},_0x19a1db={},_0x588fd2,_0x2b520d;try{_0x588fd2=resolveConfigPath(homedir());if(_0x588fd2){const _0x575ede=readFileSync(_0x588fd2,{'encoding':_0x43068e(0x1e2)});if(_0x575ede)_0x620d12=JSON[_0x43068e(0x1ce)](_0x575ede);}}catch{}try{const _0x404918=_0x1a22d8||process['cwd']();_0x2b520d=resolveConfigPath(_0x404918);if(_0x2b520d){const _0x549f48=readFileSync(_0x2b520d,{'encoding':_0x43068e(0x1e2)});if(_0x549f48)_0x19a1db=JSON[_0x43068e(0x1ce)](_0x549f48);}}catch{}return{'globalPath':_0x588fd2,'projectPath':_0x2b520d,'globalConfig':_0x620d12,'projectConfig':_0x19a1db};}function mergeRawConfigLayers(_0x438023){const _0x2d8f31=a42_0x9e670b,{globalConfig:_0x266add,projectConfig:_0x441b5f}=_0x438023;if(_0x441b5f[_0x2d8f31(0x1f5)]===![]){const _0x421726={..._0x441b5f};return delete _0x421726[_0x2d8f31(0x1f5)],_0x421726;}const _0x2b8e71={..._0x266add,..._0x441b5f};if(_0x2d8f31(0x20c)in _0x441b5f)_0x2b8e71[_0x2d8f31(0x20c)]=_0x441b5f['defaultApp'];else _0x266add[_0x2d8f31(0x20c)]&&(_0x2b8e71[_0x2d8f31(0x20c)]=_0x266add[_0x2d8f31(0x20c)]);return _0x2b8e71;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0xed0b05){return mergeRawConfigLayers(loadRawConfigLayers(_0xed0b05));}export function readRawConfigWithLayers(_0x292b7f){const _0x535d70=loadRawConfigLayers(_0x292b7f);return{'config':mergeRawConfigLayers(_0x535d70),'layers':_0x535d70};}export function resolveDefaultAppSource(_0x108eae){const _0x52a280=a42_0x9e670b;if(_0x52a280(0x20c)in _0x108eae[_0x52a280(0x211)])return'project';if(_0x108eae['projectConfig']['inherit']===![])return null;if(_0x108eae['globalConfig'][_0x52a280(0x20c)])return'global';return null;}function buildConfig(_0x2247e4,_0x8e8780){const _0x4a31ea=a42_0x9e670b,_0x561df3=_0x2247e4[_0x4a31ea(0x20c)]||undefined,_0x8ce508=_0x8e8780[_0x4a31ea(0x1d3)]||env('APP')||undefined,_0x1364ea=_0x8ce508||_0x561df3||undefined,_0x16236a=env(_0x4a31ea(0x1fd))||_0x2247e4[_0x4a31ea(0x1e6)]||undefined,_0x5f3095=_0x8e8780['env']||env('ENV')||_0x2247e4[_0x4a31ea(0x1f8)]||DEFAULT_CONFIG_VALUES['env'],_0x54b3ce=normalizeEnv(String(_0x5f3095)),_0x4e4f68=isDaily(_0x54b3ce)?_0x4a31ea(0x1f4):isDev(_0x54b3ce)?_0x4a31ea(0x1ea):_0x4a31ea(0x1cf),_0x315373=resolveLocalAppAliasCode(_0x2247e4,_0x1364ea),_0x1d561e=resolveCachedAppCode(_0x1364ea,_0x4e4f68,_0x16236a),_0x302a90=typeof _0x8e8780[_0x4a31ea(0x209)]===_0x4a31ea(0x1cb)?_0x8e8780[_0x4a31ea(0x209)]:undefined,_0x2ef454=env(_0x4a31ea(0x1ec)),_0x3c1d5a=_0x8ce508?undefined:_0x2247e4[_0x4a31ea(0x209)]||_0x2247e4[_0x4a31ea(0x1d3)]||undefined,_0x59a3d6=_0x302a90||_0x2ef454||_0x315373||_0x1d561e||_0x3c1d5a||undefined,_0x58fc8a=_0x302a90?_0x4a31ea(0x1d8):_0x2ef454?_0x4a31ea(0x1f8):_0x315373?'local-alias':_0x1d561e?_0x4a31ea(0x1ef):_0x3c1d5a?_0x4a31ea(0x1e1):undefined,_0x2577f9=_0x2247e4[_0x4a31ea(0x1ff)]||DEFAULT_CONFIG_VALUES['locale'],_0xc26be3=undefined,_0x366b56=_0x8e8780[_0x4a31ea(0x1fb)]||env(_0x4a31ea(0x20e))||_0x2247e4[_0x4a31ea(0x1fb)],_0x574ebd=normalizeLegacyOutputFormat(_0x366b56),_0x23618e=env(_0x4a31ea(0x206))||_0x2247e4['pageSize'],_0xf0c9ae=_0x23618e?Number(_0x23618e)||undefined:undefined,_0x13ab64=_0x2247e4[_0x4a31ea(0x1d4)]||_0x2247e4['maxRisk'],_0x351065=_0x13ab64===_0x4a31ea(0x1d9)||_0x13ab64==='write'||_0x13ab64===_0x4a31ea(0x1fc)?_0x13ab64:DEFAULT_CONFIG_VALUES[_0x4a31ea(0x1d4)],_0xd327de=env(_0x4a31ea(0x1d0)),_0x55f8dd=_0xd327de==='1'||_0xd327de===_0x4a31ea(0x1e3);return{'appCode':typeof _0x59a3d6===_0x4a31ea(0x1cb)&&_0x59a3d6[_0x4a31ea(0x20b)]()?_0x59a3d6[_0x4a31ea(0x20b)]():undefined,'appCodeSource':_0x58fc8a,'env':_0x4e4f68,'locale':_0x2577f9,'cookie':_0xc26be3,'accessKey':_0x16236a,'format':_0x574ebd,'pageSize':_0xf0c9ae,'riskLevel':_0x351065,'verbose':_0x55f8dd,'defaultApp':_0x561df3,'currentApp':typeof _0x1364ea===_0x4a31ea(0x1cb)?_0x1364ea:undefined,'raw':_0x2247e4};}function env(_0x173668){return productEnv(_0x173668);}async function buildAuth(_0x4d99d8){const _0x207c20=a42_0x9e670b,_0x3c684f='',_0x4562d4=!!_0x4d99d8[_0x207c20(0x1e6)];return{'cookie':_0x3c684f,'isLoggedIn':_0x4562d4,async 'getOrLogin'(){const _0x4053e6=_0x207c20;if(_0x4562d4)return _0x3c684f;throw CliErrors[_0x4053e6(0x1db)]();}};}
1
+ const a42_0x1f5393=a42_0x389a;(function(_0x18b1b9,_0x18a2fd){const _0x32fc05=a42_0x389a,_0x3672fd=_0x18b1b9();while(!![]){try{const _0xab8352=-parseInt(_0x32fc05(0x16d))/0x1+-parseInt(_0x32fc05(0x16a))/0x2+-parseInt(_0x32fc05(0x180))/0x3+-parseInt(_0x32fc05(0x15e))/0x4*(parseInt(_0x32fc05(0x183))/0x5)+-parseInt(_0x32fc05(0x17b))/0x6*(-parseInt(_0x32fc05(0x197))/0x7)+parseInt(_0x32fc05(0x163))/0x8+-parseInt(_0x32fc05(0x19b))/0x9*(-parseInt(_0x32fc05(0x196))/0xa);if(_0xab8352===_0x18a2fd)break;else _0x3672fd['push'](_0x3672fd['shift']());}catch(_0x391d8f){_0x3672fd['push'](_0x3672fd['shift']());}}}(a42_0x169b,0x69db2));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';function a42_0x389a(_0x73164e,_0x40edb0){_0x73164e=_0x73164e-0x15b;const _0x169bbc=a42_0x169b();let _0x389af2=_0x169bbc[_0x73164e];return _0x389af2;}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[a42_0x1f5393(0x190)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a42_0x1f5393(0x187)];function resolveConfigPath(_0x26330d){for(const _0x50f3be of CONFIG_NAMES){const _0x4d0ad7=resolve(_0x26330d,_0x50f3be);if(existsSync(_0x4d0ad7))return _0x4d0ad7;}return undefined;}export function resolveWriteConfigPath(_0x56d2f8){const _0x11e578=a42_0x1f5393,_0x128b7c=_0x56d2f8===_0x11e578(0x193)?process['cwd']():homedir(),_0x3ac707=resolveConfigPath(_0x128b7c);return _0x3ac707??resolve(_0x128b7c,NEW_CONFIG_NAME);}export function readConfigFile(_0x196d8b){const _0x3f1035=a42_0x1f5393;try{if(existsSync(_0x196d8b)){const _0x39796c=readFileSync(_0x196d8b,{'encoding':_0x3f1035(0x172)});if(_0x39796c){const _0x22320c=JSON[_0x3f1035(0x177)](_0x39796c);return migrateOnlineEnv(_0x196d8b,_0x22320c),_0x22320c;}}}catch{}return{};}function migrateOnlineEnv(_0x489357,_0x4c50cb){const _0x2dbbf1=a42_0x1f5393;let _0x2c041f=![];_0x4c50cb[_0x2dbbf1(0x17d)]===_0x2dbbf1(0x18f)&&(_0x4c50cb[_0x2dbbf1(0x17d)]=_0x2dbbf1(0x160),_0x2c041f=!![]);if(_0x4c50cb[_0x2dbbf1(0x18b)]&&typeof _0x4c50cb[_0x2dbbf1(0x18b)]===_0x2dbbf1(0x184))for(const _0x86e2a4 of Object['values'](_0x4c50cb[_0x2dbbf1(0x18b)])){_0x86e2a4&&_0x86e2a4[_0x2dbbf1(0x17d)]===_0x2dbbf1(0x18f)&&(_0x86e2a4[_0x2dbbf1(0x17d)]=_0x2dbbf1(0x160),_0x2c041f=!![]);}if(_0x2c041f)try{writeConfigFile(_0x489357,_0x4c50cb);}catch{}}export function writeConfigFile(_0x5c0744,_0x319507){const _0x405d5d=a42_0x1f5393,_0x9072d=dirname(_0x5c0744);!existsSync(_0x9072d)&&mkdirSync(_0x9072d,{'recursive':!![]});const _0x123a93=_0x5c0744+_0x405d5d(0x19a);try{writeFileSync(_0x123a93,JSON[_0x405d5d(0x195)](_0x319507,null,0x2)+'\x0a',{'encoding':_0x405d5d(0x172),'mode':0x180});try{renameSync(_0x123a93,_0x5c0744);}catch(_0x4f8212){if(_0x4f8212[_0x405d5d(0x188)]==='EPERM'||_0x4f8212[_0x405d5d(0x188)]===_0x405d5d(0x169)||_0x4f8212['code']===_0x405d5d(0x176)){writeFileSync(_0x5c0744,JSON[_0x405d5d(0x195)](_0x319507,null,0x2)+'\x0a',{'encoding':_0x405d5d(0x172)});try{unlinkSync(_0x123a93);}catch{}}else throw _0x4f8212;}}catch(_0x43461b){try{unlinkSync(_0x123a93);}catch{}throw _0x43461b;}}export function isNonInteractiveMode(_0x157519){const _0xd03bca=a42_0x1f5393;return!!(_0x157519[_0xd03bca(0x186)]||_0x157519['ci']||productEnvNames('CI')[_0xd03bca(0x19e)](_0x5c66e4=>process.env[_0x5c66e4]==='true')||process.env.CI===_0xd03bca(0x166)||!process[_0xd03bca(0x182)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1cae3c=a42_0x1f5393;if(!process['stdin']['isTTY'])return![];try{const _0x183725=process['stdin'][_0x1cae3c(0x173)];return process[_0x1cae3c(0x168)]['setRawMode'](!![]),process[_0x1cae3c(0x168)]['setRawMode'](_0x183725??![]),!![];}catch{return![];}}export async function createContext(_0x2aebab){const _0x313022=a42_0x1f5393,_0x6054ed=readRawConfig(),_0x5d02e6=buildConfig(_0x6054ed,_0x2aebab);await initGlobalEnvironment(_0x5d02e6);const {getUserDomain:_0x474d93,getApiDomain:_0x4a95b4}=await import(_0x313022(0x16b)),_0x17cc53={'apiDomain':_0x4a95b4(),'userDomain':_0x474d93()},_0x229907=await buildAuth(_0x5d02e6);logger[_0x313022(0x161)](process[_0x313022(0x16c)]());const _0x32e368=(CLI_BIN_NAME+'\x20'+process[_0x313022(0x16e)][_0x313022(0x16f)](0x2)[_0x313022(0x15f)]('\x20'))[_0x313022(0x15d)]();logger[_0x313022(0x19d)](_0x32e368);const _0x4b4d6f=isNonInteractiveMode(_0x2aebab);return{'config':_0x5d02e6,'auth':_0x229907,'logger':logger,'env':_0x17cc53,'nonInteractive':_0x4b4d6f};}export function buildConfigFromFlags(_0x3728db){return buildConfig(readRawConfig(),_0x3728db);}export function getLocalAppAliases(_0x4d9920){const _0x45b9a2=a42_0x1f5393;return _0x4d9920[_0x45b9a2(0x18b)]&&typeof _0x4d9920['apps']===_0x45b9a2(0x184)?_0x4d9920[_0x45b9a2(0x18b)]:{};}export function resolveLocalAppAliasCode(_0x13ea90,_0x40b52e){const _0x2d1d98=a42_0x1f5393;if(!_0x40b52e)return undefined;const _0x46152d=getLocalAppAliases(_0x13ea90)[_0x40b52e],_0xedb5a5=_0x46152d?.['appcode'];return typeof _0xedb5a5===_0x2d1d98(0x17e)&&_0xedb5a5[_0x2d1d98(0x15d)]()?_0xedb5a5['trim']():undefined;}export function readAppCodeFromConfig(){const _0x202621=a42_0x1f5393,_0xb3d6c9=readRawConfig(),_0x92cecf=_0xb3d6c9[_0x202621(0x175)]??_0xb3d6c9['app'];if(typeof _0x92cecf===_0x202621(0x17e)&&_0x92cecf[_0x202621(0x15d)]())return _0x92cecf[_0x202621(0x15d)]();const _0xea0370=resolveLocalAppAliasCode(_0xb3d6c9,typeof _0xb3d6c9['defaultApp']===_0x202621(0x17e)?_0xb3d6c9['defaultApp']:undefined);if(_0xea0370)return _0xea0370;const _0x3a5050=normalizeEnv(String(_0xb3d6c9['env']||_0x202621(0x160))),_0x2b7f3d=isDaily(_0x3a5050)?_0x202621(0x167):isDev(_0x3a5050)?_0x202621(0x170):_0x202621(0x160),_0x294a9e=resolveCachedAppCode(typeof _0xb3d6c9[_0x202621(0x191)]===_0x202621(0x17e)?_0xb3d6c9[_0x202621(0x191)]:undefined,_0x2b7f3d,typeof _0xb3d6c9[_0x202621(0x189)]===_0x202621(0x17e)?_0xb3d6c9[_0x202621(0x189)]:undefined);if(_0x294a9e)return _0x294a9e;const _0x5901be=Object['values'](getLocalAppAliases(_0xb3d6c9))[_0x202621(0x181)](_0x57a2ba=>_0x57a2ba?.['appcode']);return typeof _0x5901be?.['appcode']===_0x202621(0x17e)&&_0x5901be[_0x202621(0x175)]['trim']()?_0x5901be['appcode'][_0x202621(0x15d)]():undefined;}export function readScopedConfig(_0x2d6160){const _0xa16fbe=a42_0x1f5393,_0x335baa=_0x2d6160[_0xa16fbe(0x178)]?_0xa16fbe(0x178):'project';return readConfigFile(resolveWriteConfigPath(_0x335baa));}export function writeScopedConfig(_0x47c775,_0xb0c6a7){const _0xf8b6b=a42_0x1f5393,_0x3ff667=_0xb0c6a7[_0xf8b6b(0x178)]?'global':_0xf8b6b(0x193);writeConfigFile(resolveWriteConfigPath(_0x3ff667),_0x47c775);}export async function initGlobalEnvironment(_0x12e5b8){const _0x2f5a74=a42_0x1f5393,{initEnv:_0x914a93}=await import('./constant/env.js');_0x914a93(_0x12e5b8['env']);const {initDomains:_0x578d8b}=await import(_0x2f5a74(0x16b));_0x578d8b({'apiDomain':_0x12e5b8[_0x2f5a74(0x179)]['apiDomain']||_0x12e5b8[_0x2f5a74(0x179)]['host']||undefined,'userDomain':_0x12e5b8['raw']['userDomain']||undefined,'runtimeDomain':_0x12e5b8[_0x2f5a74(0x179)]['runtimeDomain']||undefined});}function a42_0x169b(){const _0xf7bb1=['accessKey','PAGE_SIZE','apps','error','high-risk-write','app','online','configFileNames','defaultApp','projectConfig','project','maxRisk','stringify','10SDydMm','423073hEjkWM','write','local-alias','.tmp','1850634JsShmS','top-level','setRawCommand','some','format','globalConfig','trim','619992XAtmhK','join','production','setLogPath','explicit','5869944wEYkBs','pageSize','authRequired','true','daily','stdin','EXDEV','157990vpcDxa','./constant/domain.js','cwd','201887gKsHFx','argv','slice','development','locale','utf8','isRaw','APP','appcode','EACCES','parse','global','raw','inherit','66KbsHBW','ENV','env','string','VERBOSE','1274208XlkXen','find','stdout','15CLcCea','object','riskLevel','nonInteractive','newConfigFileName','code'];a42_0x169b=function(){return _0xf7bb1;};return a42_0x169b();}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5e891a){const _0x46976d=a42_0x1f5393;if(!existsSync(_0x5e891a))return{'status':'missing'};try{const _0x58d6d4=readFileSync(_0x5e891a,{'encoding':'utf8'});if(!_0x58d6d4?.[_0x46976d(0x15d)]())return{'status':'empty'};const _0x4c6ffe=JSON[_0x46976d(0x177)](_0x58d6d4);return{'status':'ok','data':_0x4c6ffe};}catch(_0x3391b9){return{'status':_0x46976d(0x18c),'message':_0x3391b9 instanceof Error?_0x3391b9['message']:String(_0x3391b9)};}}export function loadRawConfigLayers(_0x4a13ba){const _0x14430c=a42_0x1f5393;let _0x1499d3={},_0x301424={},_0x471417,_0x8e36c3;try{_0x471417=resolveConfigPath(homedir());if(_0x471417){const _0x2ec735=readFileSync(_0x471417,{'encoding':_0x14430c(0x172)});if(_0x2ec735)_0x1499d3=JSON['parse'](_0x2ec735);}}catch{}try{const _0x311158=_0x4a13ba||process[_0x14430c(0x16c)]();_0x8e36c3=resolveConfigPath(_0x311158);if(_0x8e36c3){const _0x1d0661=readFileSync(_0x8e36c3,{'encoding':_0x14430c(0x172)});if(_0x1d0661)_0x301424=JSON[_0x14430c(0x177)](_0x1d0661);}}catch{}return{'globalPath':_0x471417,'projectPath':_0x8e36c3,'globalConfig':_0x1499d3,'projectConfig':_0x301424};}function mergeRawConfigLayers(_0x16c6ee){const _0x568ca3=a42_0x1f5393,{globalConfig:_0x5ce83e,projectConfig:_0x5da062}=_0x16c6ee;if(_0x5da062[_0x568ca3(0x17a)]===![]){const _0x106f14={..._0x5da062};return delete _0x106f14[_0x568ca3(0x17a)],_0x106f14;}const _0x32bcb4={..._0x5ce83e,..._0x5da062};if('defaultApp'in _0x5da062)_0x32bcb4['defaultApp']=_0x5da062['defaultApp'];else _0x5ce83e[_0x568ca3(0x191)]&&(_0x32bcb4[_0x568ca3(0x191)]=_0x5ce83e[_0x568ca3(0x191)]);return _0x32bcb4;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x577ab7){return mergeRawConfigLayers(loadRawConfigLayers(_0x577ab7));}export function readRawConfigWithLayers(_0x1d6bd0){const _0x580f91=loadRawConfigLayers(_0x1d6bd0);return{'config':mergeRawConfigLayers(_0x580f91),'layers':_0x580f91};}export function resolveDefaultAppSource(_0x34a32c){const _0x3ad5c0=a42_0x1f5393;if(_0x3ad5c0(0x191)in _0x34a32c[_0x3ad5c0(0x192)])return _0x3ad5c0(0x193);if(_0x34a32c[_0x3ad5c0(0x192)]['inherit']===![])return null;if(_0x34a32c[_0x3ad5c0(0x15c)][_0x3ad5c0(0x191)])return'global';return null;}function buildConfig(_0xd86f46,_0xe6bdfe){const _0x30a661=a42_0x1f5393,_0x1544da=_0xd86f46['defaultApp']||undefined,_0x1e7751=_0xe6bdfe[_0x30a661(0x18e)]||env(_0x30a661(0x174))||undefined,_0x1ff8d2=_0x1e7751||_0x1544da||undefined,_0x235b90=env('ACCESS_KEY')||_0xd86f46[_0x30a661(0x189)]||undefined,_0x398b93=_0xe6bdfe['env']||env(_0x30a661(0x17c))||_0xd86f46['env']||DEFAULT_CONFIG_VALUES['env'],_0x1af833=normalizeEnv(String(_0x398b93)),_0xfde772=isDaily(_0x1af833)?_0x30a661(0x167):isDev(_0x1af833)?_0x30a661(0x170):_0x30a661(0x160),_0x3c5510=resolveLocalAppAliasCode(_0xd86f46,_0x1ff8d2),_0x10a5ea=resolveCachedAppCode(_0x1ff8d2,_0xfde772,_0x235b90),_0xdc90de=typeof _0xe6bdfe[_0x30a661(0x175)]===_0x30a661(0x17e)?_0xe6bdfe[_0x30a661(0x175)]:undefined,_0x1179c6=env('APPCODE'),_0x225353=_0x1e7751?undefined:_0xd86f46[_0x30a661(0x175)]||_0xd86f46['app']||undefined,_0x30c7d5=_0xdc90de||_0x1179c6||_0x3c5510||_0x10a5ea||_0x225353||undefined,_0x1aea6b=_0xdc90de?_0x30a661(0x162):_0x1179c6?_0x30a661(0x17d):_0x3c5510?_0x30a661(0x199):_0x10a5ea?'cache':_0x225353?_0x30a661(0x19c):undefined,_0x1d2676=_0xd86f46[_0x30a661(0x171)]||DEFAULT_CONFIG_VALUES[_0x30a661(0x171)],_0x2e852c=undefined,_0x131321=_0xe6bdfe[_0x30a661(0x15b)]||env('FORMAT')||_0xd86f46[_0x30a661(0x15b)],_0x248b01=normalizeLegacyOutputFormat(_0x131321),_0x3f22db=env(_0x30a661(0x18a))||_0xd86f46[_0x30a661(0x164)],_0xcb4737=_0x3f22db?Number(_0x3f22db)||undefined:undefined,_0xd45788=_0xd86f46[_0x30a661(0x185)]||_0xd86f46[_0x30a661(0x194)],_0xa02ac5=_0xd45788==='read'||_0xd45788===_0x30a661(0x198)||_0xd45788===_0x30a661(0x18d)?_0xd45788:DEFAULT_CONFIG_VALUES[_0x30a661(0x185)],_0x10ea5c=env(_0x30a661(0x17f)),_0x178e4e=_0x10ea5c==='1'||_0x10ea5c===_0x30a661(0x166);return{'appCode':typeof _0x30c7d5===_0x30a661(0x17e)&&_0x30c7d5['trim']()?_0x30c7d5['trim']():undefined,'appCodeSource':_0x1aea6b,'env':_0xfde772,'locale':_0x1d2676,'cookie':_0x2e852c,'accessKey':_0x235b90,'format':_0x248b01,'pageSize':_0xcb4737,'riskLevel':_0xa02ac5,'verbose':_0x178e4e,'defaultApp':_0x1544da,'currentApp':typeof _0x1ff8d2===_0x30a661(0x17e)?_0x1ff8d2:undefined,'raw':_0xd86f46};}function env(_0x3541f4){return productEnv(_0x3541f4);}async function buildAuth(_0x365b6d){const _0x580872=a42_0x1f5393,_0x12aa76='',_0x2ba1ba=!!_0x365b6d[_0x580872(0x189)];return{'cookie':_0x12aa76,'isLoggedIn':_0x2ba1ba,async 'getOrLogin'(){const _0x2d79c1=_0x580872;if(_0x2ba1ba)return _0x12aa76;throw CliErrors[_0x2d79c1(0x165)]();}};}
@@ -1 +1 @@
1
- (function(_0x41eb8b,_0x2c6fc4){const _0x45daa7=a43_0xfe41,_0xeb2b77=_0x41eb8b();while(!![]){try{const _0x30a3b0=-parseInt(_0x45daa7(0xce))/0x1*(parseInt(_0x45daa7(0xb0))/0x2)+parseInt(_0x45daa7(0xaa))/0x3+parseInt(_0x45daa7(0xda))/0x4*(-parseInt(_0x45daa7(0xd2))/0x5)+parseInt(_0x45daa7(0xb8))/0x6+parseInt(_0x45daa7(0xa9))/0x7*(parseInt(_0x45daa7(0xcf))/0x8)+-parseInt(_0x45daa7(0xd5))/0x9+parseInt(_0x45daa7(0xb2))/0xa;if(_0x30a3b0===_0x2c6fc4)break;else _0xeb2b77['push'](_0xeb2b77['shift']());}catch(_0x31a04e){_0xeb2b77['push'](_0xeb2b77['shift']());}}}(a43_0x48bc,0xbb122));function a43_0xfe41(_0x251362,_0x576590){_0x251362=_0x251362-0xa3;const _0x48bc53=a43_0x48bc();let _0xfe4139=_0x48bc53[_0x251362];return _0xfe4139;}import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x25da23){_activeAK=_0x25da23||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x52c053,_0x1be562={}){const _0x40828a=a43_0xfe41,{method:method=_0x40828a(0xc9),body:_0x4ab63b,headers:headers={},timeout:timeout=0x7530}=_0x1be562,_0x3e87dc=_activeAK,_0x5ccc7e=getRuntimeDomain();if(!_0x3e87dc)throw CliErrors[_0x40828a(0xc1)](_0x40828a(0xb1)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x141d87=''+_0x5ccc7e+_0x52c053,_0x5cf0ea={'X-User-AK':_0x3e87dc},_0x24f196=new AbortController(),_0x34784c=setTimeout(()=>_0x24f196[_0x40828a(0xba)](),timeout);try{const _0x5c40c5=await fetch(_0x141d87,{'method':method,'headers':{'Content-Type':_0x40828a(0xb9),'X-Invoke-Source':PRODUCT_CONFIG[_0x40828a(0xbc)],..._0x5cf0ea,...headers},'body':_0x4ab63b?JSON[_0x40828a(0xdb)](_0x4ab63b):undefined,'signal':_0x24f196[_0x40828a(0xbe)]});let _0x12a427;try{_0x12a427=await _0x5c40c5[_0x40828a(0xd8)]();}catch{throw CliErrors[_0x40828a(0xdd)](_0x40828a(0xab)+_0x5c40c5['status']+')',_0x5c40c5['status']>=0x190?_0x40828a(0xd1):undefined);}if(!_0x5c40c5['ok']||_0x12a427[_0x40828a(0xc3)]===![])throw CliErrors[_0x40828a(0xdd)](_0x12a427[_0x40828a(0xb5)]||_0x12a427[_0x40828a(0xcd)]||_0x40828a(0xc8)+_0x5c40c5[_0x40828a(0xa5)],_0x12a427['errorCode']?_0x40828a(0xc7)+_0x12a427[_0x40828a(0xbf)]:undefined);return _0x12a427;}catch(_0x510767){if(_0x510767 instanceof Error&&_0x510767[_0x40828a(0xc6)]==='AbortError')throw CliErrors[_0x40828a(0xdd)](_0x40828a(0xb7)+_0x141d87);throw _0x510767;}finally{clearTimeout(_0x34784c);}}export async function getBffScriptInfo(_0x3a02b6){const _0x2fd060=a43_0xfe41,_0x2be19b=await apiRequest(_0x2fd060(0xb6)+_0x3a02b6);if(!_0x2be19b[_0x2fd060(0xd3)])throw CliErrors[_0x2fd060(0xcc)](_0x2fd060(0xcb)+_0x3a02b6);return _0x2be19b[_0x2fd060(0xd3)];}export async function getSqlQueryInfo(_0x1e66e7,_0xb951b){const _0x596a4b=a43_0xfe41,_0xf688dd=await apiRequest(_0x596a4b(0xc2),{'method':_0x596a4b(0xdc),'body':{'appCode':_0x1e66e7,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0xb951b}}),_0x2aa9d9=_0xf688dd['data'],_0x53f53f=_0x2aa9d9&&typeof _0x2aa9d9===_0x596a4b(0xae)&&_0x596a4b(0xd6)in _0x2aa9d9?_0x2aa9d9[_0x596a4b(0xd6)]?.[0x0]:_0x2aa9d9&&typeof _0x2aa9d9===_0x596a4b(0xae)&&_0x596a4b(0xc5)in _0x2aa9d9?_0x2aa9d9:undefined;if(!_0x53f53f)throw CliErrors[_0x596a4b(0xcc)]('SQL\x20query\x20not\x20found:\x20'+_0xb951b);return _0x53f53f;}function isRemoteAppItem(_0x99977a){const _0x5b54a1=a43_0xfe41;return!!_0x99977a&&typeof _0x99977a==='object'&&typeof _0x99977a[_0x5b54a1(0xb4)]==='string'&&typeof _0x99977a['appName']==='string';}function extractRemoteAppItems(_0x478ba1){const _0x50d424=a43_0xfe41;if(Array[_0x50d424(0xa7)](_0x478ba1))return _0x478ba1[_0x50d424(0xa8)](isRemoteAppItem);if(!_0x478ba1||typeof _0x478ba1!=='object')throw CliErrors[_0x50d424(0xdd)](_0x50d424(0xd7));const _0x10a012=_0x478ba1;if(Array['isArray'](_0x10a012[_0x50d424(0xd6)]))return _0x10a012['tableData']['filter'](isRemoteAppItem);if(_0x10a012[_0x50d424(0xd3)]&&typeof _0x10a012[_0x50d424(0xd3)]==='object'){const _0x50f44d=_0x10a012[_0x50d424(0xd3)];if(Array['isArray'](_0x50f44d['tableData']))return _0x50f44d[_0x50d424(0xd6)][_0x50d424(0xa8)](isRemoteAppItem);}throw CliErrors[_0x50d424(0xdd)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x2f1cf5=a43_0xfe41,_0x598bd8=await apiRequest(_0x2f1cf5(0xa3));return extractRemoteAppItems(_0x598bd8['data']);}export async function getLoginUserInfo(){const _0x4c4a45=a43_0xfe41,_0x530cbc=await apiRequest('/client/user/loginUserInfo');if(!_0x530cbc[_0x4c4a45(0xd3)]||typeof _0x530cbc[_0x4c4a45(0xd3)]!=='object'||Array[_0x4c4a45(0xa7)](_0x530cbc[_0x4c4a45(0xd3)]))throw CliErrors[_0x4c4a45(0xdd)](_0x4c4a45(0xbb));return _0x530cbc[_0x4c4a45(0xd3)];}export async function listDatasets(_0x2cb498,_0x547d78){const _0x402866=a43_0xfe41,_0x3b3c94=await apiRequest(_0x402866(0xb3),{'method':_0x402866(0xdc),'body':{'appCode':_0x2cb498,..._0x547d78?.[_0x402866(0xaf)]&&{'code':_0x547d78[_0x402866(0xaf)]},..._0x547d78?.[_0x402866(0xc6)]&&{'name':_0x547d78['name']}}});return extractList(_0x3b3c94[_0x402866(0xd3)]);}export async function getDatasetDetail(_0x2528a6){const _0x12afd3=a43_0xfe41,_0x34bffb=/^\d+$/[_0x12afd3(0xd4)](_0x2528a6)?'id':_0x12afd3(0xaf),_0x21bd5f=await apiRequest(_0x12afd3(0xbd)+_0x34bffb+'='+_0x2528a6);return _0x21bd5f[_0x12afd3(0xd3)];}export async function listPersonalKnowledgeBaseItems(_0x1fa57a){const _0x5d4bf1=a43_0xfe41,_0x3cea53=await apiRequest(_0x5d4bf1(0xa6)+encodeURIComponent(_0x1fa57a));return Array[_0x5d4bf1(0xa7)](_0x3cea53[_0x5d4bf1(0xd3)])?_0x3cea53['data']:[];}function a43_0x48bc(){const _0x46232d=['4668440kdAgXj','/client/dataset/list','appCode','errorMsg','/client/bff/query/','Request\x20timeout:\x20','9008436IVyFCw','application/json','abort','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','invokeSource','/client/dataset/query?','signal','errorCode','topK','authRequired','/client/sql/query','success','/update','sqlCode','name','API\x20error\x20code:\x20','API\x20error:\x20','GET','/client/skill/personal/','BFF\x20script\x20not\x20found:\x20id=','validation','message','1347272DXMpIJ','8RWkGJq','/client/skill/company/list?appCode=','Check\x20your\x20credentials\x20and\x20try\x20again.','115JSVFDA','data','test','3096207caFrhC','tableData','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','json','/client/skill/personal/list?appCode=','200100Znxecr','stringify','POST','apiError','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/app/my-apps','?appCode=','status','/client/knowledge-base/personal/list?appCode=','isArray','filter','7956837uwqBlw','1509513jHLvYj','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/search','/client/knowledge-base/personal/','object','code','2TBjjXk','Configure\x20accessKey\x20in\x20'];a43_0x48bc=function(){return _0x46232d;};return a43_0x48bc();}export async function getPersonalKnowledgeBaseItem(_0x58b955,_0x29f4fe){const _0x4309f4=a43_0xfe41,_0x3efbbc=await apiRequest(_0x4309f4(0xad)+_0x58b955+_0x4309f4(0xa4)+encodeURIComponent(_0x29f4fe));if(!_0x3efbbc['data'])throw CliErrors[_0x4309f4(0xcc)](_0x4309f4(0xde)+_0x58b955);return _0x3efbbc[_0x4309f4(0xd3)];}export async function createPersonalKnowledgeBaseItem(_0xf6a803,_0x38f3d7){const _0x321906=a43_0xfe41,_0x3a3cef=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x321906(0xdc),'body':{'appCode':_0xf6a803,..._0x38f3d7}});return _0x3a3cef[_0x321906(0xd3)];}export async function updatePersonalKnowledgeBaseItem(_0xeff07,_0x500a3f,_0xabad81){const _0x16b900=a43_0xfe41,_0xdc0fa6=await apiRequest('/client/knowledge-base/personal/'+_0xeff07+_0x16b900(0xc4),{'method':_0x16b900(0xdc),'body':{'appCode':_0x500a3f,..._0xabad81}});return _0xdc0fa6[_0x16b900(0xd3)];}export async function searchKnowledgeBase(_0x55db31,_0x1f2dca){const _0xa8a604=a43_0xfe41,_0x3c5331=await apiRequest(_0xa8a604(0xac),{'method':_0xa8a604(0xdc),'body':{'appCode':_0x55db31,'query':_0x1f2dca['query'],..._0x1f2dca['topK']!==undefined?{'topK':_0x1f2dca[_0xa8a604(0xc0)]}:{}}});return Array[_0xa8a604(0xa7)](_0x3c5331[_0xa8a604(0xd3)])?_0x3c5331[_0xa8a604(0xd3)]:[];}export async function listPersonalRuntimeSkills(_0xc19250){const _0x3de2d7=a43_0xfe41,_0x52f65b=await apiRequest(_0x3de2d7(0xd9)+encodeURIComponent(_0xc19250));return Array['isArray'](_0x52f65b[_0x3de2d7(0xd3)])?_0x52f65b[_0x3de2d7(0xd3)]:[];}export async function listCompanyRuntimeSkills(_0x45ea76){const _0x3914d8=a43_0xfe41,_0x5c1b22=await apiRequest(_0x3914d8(0xd0)+encodeURIComponent(_0x45ea76));return Array[_0x3914d8(0xa7)](_0x5c1b22['data'])?_0x5c1b22['data']:[];}export async function createPersonalRuntimeSkill(_0x4e60e3,_0x11f47e){const _0x54dbcb=a43_0xfe41,_0x183624=await apiRequest('/client/skill/personal/create',{'method':_0x54dbcb(0xdc),'body':{'appCode':_0x4e60e3,..._0x11f47e}});return _0x183624[_0x54dbcb(0xd3)];}export async function updatePersonalRuntimeSkill(_0x5e7028,_0xb41051,_0x383d85){const _0x5d41b8=a43_0xfe41,_0x2c818a=await apiRequest(_0x5d41b8(0xca)+encodeURIComponent(_0x5e7028)+'/update',{'method':_0x5d41b8(0xdc),'body':{'appCode':_0xb41051,..._0x383d85}});return _0x2c818a[_0x5d41b8(0xd3)];}
1
+ (function(_0x28b292,_0x56af95){const _0x260f7d=a43_0x245a,_0xe18929=_0x28b292();while(!![]){try{const _0x5bc0ce=-parseInt(_0x260f7d(0x107))/0x1*(parseInt(_0x260f7d(0x10d))/0x2)+parseInt(_0x260f7d(0x103))/0x3*(-parseInt(_0x260f7d(0xf4))/0x4)+parseInt(_0x260f7d(0x115))/0x5*(-parseInt(_0x260f7d(0xe4))/0x6)+parseInt(_0x260f7d(0xe9))/0x7+-parseInt(_0x260f7d(0xfc))/0x8+-parseInt(_0x260f7d(0xeb))/0x9*(parseInt(_0x260f7d(0xe5))/0xa)+parseInt(_0x260f7d(0xf2))/0xb;if(_0x5bc0ce===_0x56af95)break;else _0xe18929['push'](_0xe18929['shift']());}catch(_0xe19bbc){_0xe18929['push'](_0xe18929['shift']());}}}(a43_0x3159,0xe8fba));import{getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5cdbdb){_activeAK=_0x5cdbdb||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x32a906,_0x5850f7={}){const _0x5ca0e0=a43_0x245a,{method:method=_0x5ca0e0(0xec),body:_0x1548ed,headers:headers={},timeout:timeout=0x7530}=_0x5850f7,_0x4c6ea1=_activeAK,_0x50d1e9=getRuntimeDomain();if(!_0x4c6ea1)throw CliErrors[_0x5ca0e0(0x110)](_0x5ca0e0(0x104)+PRODUCT_CONFIG[_0x5ca0e0(0xe2)]+'.');const _0x4cf0fc=''+_0x50d1e9+_0x32a906,_0x553bc7={'X-User-AK':_0x4c6ea1},_0x24f709=new AbortController(),_0x44f7e0=setTimeout(()=>_0x24f709[_0x5ca0e0(0x108)](),timeout);try{const _0x2cf4d0=await fetch(_0x4cf0fc,{'method':method,'headers':{'Content-Type':_0x5ca0e0(0xe3),'X-Invoke-Source':PRODUCT_CONFIG[_0x5ca0e0(0x101)],..._0x553bc7,...headers},'body':_0x1548ed?JSON[_0x5ca0e0(0xdf)](_0x1548ed):undefined,'signal':_0x24f709[_0x5ca0e0(0xed)]});let _0x3ccc99;try{_0x3ccc99=await _0x2cf4d0[_0x5ca0e0(0x109)]();}catch{throw CliErrors[_0x5ca0e0(0x113)](_0x5ca0e0(0xf3)+_0x2cf4d0['status']+')',_0x2cf4d0['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x2cf4d0['ok']||_0x3ccc99['success']===![])throw CliErrors[_0x5ca0e0(0x113)](_0x3ccc99[_0x5ca0e0(0x10f)]||_0x3ccc99[_0x5ca0e0(0x10e)]||'API\x20error:\x20'+_0x2cf4d0[_0x5ca0e0(0xef)],_0x3ccc99['errorCode']?_0x5ca0e0(0xda)+_0x3ccc99['errorCode']:undefined);return _0x3ccc99;}catch(_0x183134){if(_0x183134 instanceof Error&&_0x183134[_0x5ca0e0(0x10b)]===_0x5ca0e0(0xf8))throw CliErrors[_0x5ca0e0(0x113)](_0x5ca0e0(0x10c)+_0x4cf0fc);throw _0x183134;}finally{clearTimeout(_0x44f7e0);}}export async function getBffScriptInfo(_0x18091b){const _0x1073fa=a43_0x245a,_0x4556ab=await apiRequest(_0x1073fa(0xde)+_0x18091b);if(!_0x4556ab['data'])throw CliErrors[_0x1073fa(0x106)](_0x1073fa(0xe6)+_0x18091b);return _0x4556ab[_0x1073fa(0xf9)];}export async function getSqlQueryInfo(_0xe9ca51,_0x5e5eb9){const _0x3bee87=a43_0x245a,_0x5ab707=await apiRequest(_0x3bee87(0xf0),{'method':'POST','body':{'appCode':_0xe9ca51,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5e5eb9}}),_0x396c2d=_0x5ab707[_0x3bee87(0xf9)],_0x25e08c=_0x396c2d&&typeof _0x396c2d==='object'&&_0x3bee87(0xf1)in _0x396c2d?_0x396c2d[_0x3bee87(0xf1)]?.[0x0]:_0x396c2d&&typeof _0x396c2d==='object'&&'sqlCode'in _0x396c2d?_0x396c2d:undefined;if(!_0x25e08c)throw CliErrors[_0x3bee87(0x106)](_0x3bee87(0xfa)+_0x5e5eb9);return _0x25e08c;}function isRemoteAppItem(_0x295303){const _0x14c95e=a43_0x245a;return!!_0x295303&&typeof _0x295303===_0x14c95e(0x112)&&typeof _0x295303[_0x14c95e(0xfd)]===_0x14c95e(0xe7)&&typeof _0x295303[_0x14c95e(0x100)]===_0x14c95e(0xe7);}function extractRemoteAppItems(_0x182a93){const _0x4fa4a9=a43_0x245a;if(Array[_0x4fa4a9(0xff)](_0x182a93))return _0x182a93['filter'](isRemoteAppItem);if(!_0x182a93||typeof _0x182a93!==_0x4fa4a9(0x112))throw CliErrors['apiError'](_0x4fa4a9(0x10a));const _0x2968a1=_0x182a93;if(Array[_0x4fa4a9(0xff)](_0x2968a1[_0x4fa4a9(0xf1)]))return _0x2968a1['tableData'][_0x4fa4a9(0xe1)](isRemoteAppItem);if(_0x2968a1[_0x4fa4a9(0xf9)]&&typeof _0x2968a1[_0x4fa4a9(0xf9)]===_0x4fa4a9(0x112)){const _0x283dd=_0x2968a1['data'];if(Array[_0x4fa4a9(0xff)](_0x283dd['tableData']))return _0x283dd['tableData'][_0x4fa4a9(0xe1)](isRemoteAppItem);}throw CliErrors[_0x4fa4a9(0x113)](_0x4fa4a9(0x114));}export async function getMyApps(){const _0x27e1a3=a43_0x245a,_0x11934e=await apiRequest(_0x27e1a3(0xea));return extractRemoteAppItems(_0x11934e['data']);}export async function getLoginUserInfo(){const _0x4a4eee=a43_0x245a,_0x80272=await apiRequest(_0x4a4eee(0xe8));if(!_0x80272[_0x4a4eee(0xf9)]||typeof _0x80272[_0x4a4eee(0xf9)]!==_0x4a4eee(0x112)||Array[_0x4a4eee(0xff)](_0x80272['data']))throw CliErrors['apiError'](_0x4a4eee(0xd9));return _0x80272[_0x4a4eee(0xf9)];}export async function listDatasets(_0xc3197c,_0x4f57dc){const _0x32a085=a43_0x245a,_0x438906=await apiRequest(_0x32a085(0x111),{'method':_0x32a085(0xd8),'body':{'appCode':_0xc3197c,..._0x4f57dc?.[_0x32a085(0xe0)]&&{'code':_0x4f57dc[_0x32a085(0xe0)]},..._0x4f57dc?.[_0x32a085(0x10b)]&&{'name':_0x4f57dc[_0x32a085(0x10b)]}}});return extractList(_0x438906[_0x32a085(0xf9)]);}export async function getDatasetDetail(_0x5d6324){const _0x3ba6a0=a43_0x245a,_0x350b05=/^\d+$/['test'](_0x5d6324)?'id':_0x3ba6a0(0xe0),_0xc4c984=await apiRequest(_0x3ba6a0(0xfe)+_0x350b05+'='+_0x5d6324);return _0xc4c984[_0x3ba6a0(0xf9)];}export async function listPersonalKnowledgeBaseItems(_0x2f1b86){const _0x4324a5=a43_0x245a,_0x51693a=await apiRequest(_0x4324a5(0xf5)+encodeURIComponent(_0x2f1b86));return Array[_0x4324a5(0xff)](_0x51693a['data'])?_0x51693a[_0x4324a5(0xf9)]:[];}export async function getPersonalKnowledgeBaseItem(_0x28de7b,_0x479424){const _0x6933e5=a43_0x245a,_0x25d7cd=await apiRequest(_0x6933e5(0xee)+_0x28de7b+_0x6933e5(0xfb)+encodeURIComponent(_0x479424));if(!_0x25d7cd[_0x6933e5(0xf9)])throw CliErrors['validation'](_0x6933e5(0x105)+_0x28de7b);return _0x25d7cd[_0x6933e5(0xf9)];}export async function createPersonalKnowledgeBaseItem(_0x268ac3,_0x49d369){const _0x424ec9=a43_0x245a,_0xf6a07a=await apiRequest(_0x424ec9(0xf7),{'method':_0x424ec9(0xd8),'body':{'appCode':_0x268ac3,..._0x49d369}});return _0xf6a07a[_0x424ec9(0xf9)];}export async function updatePersonalKnowledgeBaseItem(_0x29297b,_0x363c6e,_0x42784e){const _0x1844a3=a43_0x245a,_0x30f08c=await apiRequest(_0x1844a3(0xee)+_0x29297b+'/update',{'method':_0x1844a3(0xd8),'body':{'appCode':_0x363c6e,..._0x42784e}});return _0x30f08c[_0x1844a3(0xf9)];}export async function searchKnowledgeBase(_0x2bbbe0,_0x4c657b){const _0x394dd7=a43_0x245a,_0x44c83b=await apiRequest(_0x394dd7(0xdd),{'method':_0x394dd7(0xd8),'body':{'appCode':_0x2bbbe0,'query':_0x4c657b['query'],..._0x4c657b[_0x394dd7(0xf6)]!==undefined?{'topK':_0x4c657b[_0x394dd7(0xf6)]}:{}}});return Array[_0x394dd7(0xff)](_0x44c83b[_0x394dd7(0xf9)])?_0x44c83b['data']:[];}export async function listPersonalRuntimeSkills(_0x4ab850){const _0xaf95e2=a43_0x245a,_0x226e9a=await apiRequest(_0xaf95e2(0xd7)+encodeURIComponent(_0x4ab850));return Array[_0xaf95e2(0xff)](_0x226e9a[_0xaf95e2(0xf9)])?_0x226e9a[_0xaf95e2(0xf9)]:[];}export async function listCompanyRuntimeSkills(_0x2010d8){const _0x1aa5ff=a43_0x245a,_0x5cef98=await apiRequest('/client/skill/company/list?appCode='+encodeURIComponent(_0x2010d8));return Array['isArray'](_0x5cef98[_0x1aa5ff(0xf9)])?_0x5cef98[_0x1aa5ff(0xf9)]:[];}export async function createPersonalRuntimeSkill(_0x10d60b,_0x5eccd4){const _0x4cb724=a43_0x245a,_0xf737c3=await apiRequest(_0x4cb724(0xdb),{'method':_0x4cb724(0xd8),'body':{'appCode':_0x10d60b,..._0x5eccd4}});return _0xf737c3[_0x4cb724(0xf9)];}function a43_0x245a(_0xf64dc5,_0x99d22a){_0xf64dc5=_0xf64dc5-0xd7;const _0x3159e7=a43_0x3159();let _0x245ad7=_0x3159e7[_0xf64dc5];return _0x245ad7;}export async function updatePersonalRuntimeSkill(_0x3074e6,_0x2169ad,_0x1f1faa){const _0x226193=a43_0x245a,_0x50e8e6=await apiRequest(_0x226193(0x102)+encodeURIComponent(_0x3074e6)+_0x226193(0xdc),{'method':'POST','body':{'appCode':_0x2169ad,..._0x1f1faa}});return _0x50e8e6[_0x226193(0xf9)];}function a43_0x3159(){const _0x4959a2=['/client/dataset/query?','isArray','appName','invokeSource','/client/skill/personal/','5541ycFXae','Configure\x20accessKey\x20in\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','validation','1595RAiCsx','abort','json','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','name','Request\x20timeout:\x20','568iIayvd','message','errorMsg','authRequired','/client/dataset/list','object','apiError','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','271615QVfJVv','/client/skill/personal/list?appCode=','POST','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','API\x20error\x20code:\x20','/client/skill/personal/create','/update','/client/knowledge-base/search','/client/bff/query/','stringify','code','filter','newConfigFileName','application/json','66HWaDaa','786140VDYJOJ','BFF\x20script\x20not\x20found:\x20id=','string','/client/user/loginUserInfo','3194296jnRPAq','/client/app/my-apps','9JcxjBy','GET','signal','/client/knowledge-base/personal/','status','/client/sql/query','tableData','39336264slzkGn','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','2284xvfhfb','/client/knowledge-base/personal/list?appCode=','topK','/client/knowledge-base/personal/create','AbortError','data','SQL\x20query\x20not\x20found:\x20','?appCode=','7154160iaCisD','appCode'];a43_0x3159=function(){return _0x4959a2;};return a43_0x3159();}
@@ -1 +1 @@
1
- (function(_0x322ef4,_0x45c4bb){const _0x436494=a44_0x208f,_0x1fa3e8=_0x322ef4();while(!![]){try{const _0x50f35d=-parseInt(_0x436494(0xcb))/0x1*(-parseInt(_0x436494(0xcd))/0x2)+parseInt(_0x436494(0xcf))/0x3+parseInt(_0x436494(0xd6))/0x4+parseInt(_0x436494(0xc7))/0x5+-parseInt(_0x436494(0xd0))/0x6*(parseInt(_0x436494(0xd9))/0x7)+parseInt(_0x436494(0xd3))/0x8*(-parseInt(_0x436494(0xce))/0x9)+-parseInt(_0x436494(0xc8))/0xa;if(_0x50f35d===_0x45c4bb)break;else _0x1fa3e8['push'](_0x1fa3e8['shift']());}catch(_0x163bf0){_0x1fa3e8['push'](_0x1fa3e8['shift']());}}}(a44_0x37a4,0x943de));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a44_0x208f(_0xb97b14,_0xc9394f){_0xb97b14=_0xb97b14-0xc7;const _0x37a4ba=a44_0x37a4();let _0x208f41=_0x37a4ba[_0xb97b14];return _0x208f41;}export async function listDatabases(_0x123af9){const _0x4e2374=a44_0x208f;if(cache[_0x4e2374(0xc9)](_0x123af9))return cache['get'](_0x123af9);const _0x55f8ad=await listDatasets(_0x123af9),_0x1e47b8=new Map();for(const _0x3d83c9 of _0x55f8ad){const _0x7a9557=_0x3d83c9[_0x4e2374(0xd1)];_0x7a9557?.[_0x4e2374(0xca)]!=null&&_0x1e47b8[_0x4e2374(0xcc)](_0x7a9557[_0x4e2374(0xca)],_0x7a9557['dbName']??_0x4e2374(0xd8)+_0x7a9557[_0x4e2374(0xca)]);}const _0x2b3e0f=[..._0x1e47b8[_0x4e2374(0xd2)]()][_0x4e2374(0xd5)](([_0x14c7ee,_0x47d9cd])=>({'dbId':_0x14c7ee,'dbName':_0x47d9cd}));return cache[_0x4e2374(0xcc)](_0x123af9,_0x2b3e0f),_0x2b3e0f;}export async function getDbName(_0x1e9217,_0x235b61){const _0x215f8=a44_0x208f;try{const _0x57597b=await listDatabases(_0x1e9217);return _0x57597b[_0x215f8(0xd4)](_0x481d3a=>_0x481d3a[_0x215f8(0xca)]===_0x235b61)?.[_0x215f8(0xd7)];}catch{return undefined;}}function a44_0x37a4(){const _0x3089a5=['entries','1325216HtVDJk','find','map','4717536mfOJSn','dbName','db-','12418HfniFq','4884540XRkdXK','15260440UTyYIy','has','dbId','1NqRlUn','set','835938GaXDfv','54DmLUxe','2579385KzdjHu','1038RCjkgM','dbtableConfig'];a44_0x37a4=function(){return _0x3089a5;};return a44_0x37a4();}
1
+ (function(_0x28ad20,_0x3cc30a){const _0x5bac10=a44_0x41b6,_0x508633=_0x28ad20();while(!![]){try{const _0x182d5e=-parseInt(_0x5bac10(0x1d1))/0x1*(-parseInt(_0x5bac10(0x1cc))/0x2)+-parseInt(_0x5bac10(0x1c4))/0x3*(parseInt(_0x5bac10(0x1c5))/0x4)+-parseInt(_0x5bac10(0x1c6))/0x5+-parseInt(_0x5bac10(0x1c3))/0x6+-parseInt(_0x5bac10(0x1c2))/0x7+parseInt(_0x5bac10(0x1d2))/0x8*(-parseInt(_0x5bac10(0x1c9))/0x9)+parseInt(_0x5bac10(0x1c1))/0xa*(parseInt(_0x5bac10(0x1cb))/0xb);if(_0x182d5e===_0x3cc30a)break;else _0x508633['push'](_0x508633['shift']());}catch(_0x4aaa91){_0x508633['push'](_0x508633['shift']());}}}(a44_0x4295,0xc6b70));import{listDatasets}from'../core/api-client.js';function a44_0x41b6(_0xd2eb59,_0x2a1897){_0xd2eb59=_0xd2eb59-0x1c1;const _0x4295de=a44_0x4295();let _0x41b61e=_0x4295de[_0xd2eb59];return _0x41b61e;}const cache=new Map();export async function listDatabases(_0x3f5477){const _0x2091c0=a44_0x41b6;if(cache['has'](_0x3f5477))return cache[_0x2091c0(0x1c7)](_0x3f5477);const _0x5de6ee=await listDatasets(_0x3f5477),_0x2b38ab=new Map();for(const _0x1a5aac of _0x5de6ee){const _0x216160=_0x1a5aac['dbtableConfig'];_0x216160?.[_0x2091c0(0x1ca)]!=null&&_0x2b38ab['set'](_0x216160[_0x2091c0(0x1ca)],_0x216160[_0x2091c0(0x1cf)]??'db-'+_0x216160[_0x2091c0(0x1ca)]);}const _0x4de05e=[..._0x2b38ab[_0x2091c0(0x1cd)]()][_0x2091c0(0x1d0)](([_0x4d57a0,_0x1331cc])=>({'dbId':_0x4d57a0,'dbName':_0x1331cc}));return cache[_0x2091c0(0x1c8)](_0x3f5477,_0x4de05e),_0x4de05e;}function a44_0x4295(){const _0x32e26a=['1458793wwiFLp','5027070NtRyYv','3741069EVUPKy','4jIlMSy','2466355NlsFmj','get','set','7261209fAZlyL','dbId','6923829FyLRZB','14JsvhGc','entries','find','dbName','map','115429scvPbk','16YoamyA','70LXqMpz'];a44_0x4295=function(){return _0x32e26a;};return a44_0x4295();}export async function getDbName(_0x591763,_0x2a10a1){const _0x31d28a=a44_0x41b6;try{const _0x49f9ea=await listDatabases(_0x591763);return _0x49f9ea[_0x31d28a(0x1ce)](_0x2283c2=>_0x2283c2[_0x31d28a(0x1ca)]===_0x2a10a1)?.[_0x31d28a(0x1cf)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x2d791c,_0x5896b6){const _0x3ec50e=a45_0x55b9,_0x81bec3=_0x2d791c();while(!![]){try{const _0x578a98=parseInt(_0x3ec50e(0xf8))/0x1*(parseInt(_0x3ec50e(0xfa))/0x2)+-parseInt(_0x3ec50e(0xfc))/0x3*(-parseInt(_0x3ec50e(0x111))/0x4)+-parseInt(_0x3ec50e(0x10a))/0x5+parseInt(_0x3ec50e(0x116))/0x6+parseInt(_0x3ec50e(0x107))/0x7*(parseInt(_0x3ec50e(0xfd))/0x8)+-parseInt(_0x3ec50e(0x115))/0x9*(-parseInt(_0x3ec50e(0xfe))/0xa)+-parseInt(_0x3ec50e(0x114))/0xb;if(_0x578a98===_0x5896b6)break;else _0x81bec3['push'](_0x81bec3['shift']());}catch(_0x246989){_0x81bec3['push'](_0x81bec3['shift']());}}}(a45_0x40c1,0xdc20d));import{createClient}from'@lovrabet/sdk';function a45_0x40c1(){const _0x34bddb=['2239kVefwU','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','706psdYzx','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','1398pIMfNH','584248sRCRYd','2550IrORqZ','batchCreate','isArray','\x22.\x20','bff','execute','authMode','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','7IqvxKq','getOne','sql','4181975bnlZDq','models','delete','appCode','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','dataset_','11848hHuWKh','accessKey','invokeSource','23002617YjjFoY','51021rLxWZx','839412yGGfoo'];a45_0x40c1=function(){return _0x34bddb;};return a45_0x40c1();}import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0xf18910){const _0x2a1fb8=a45_0x55b9;_client=createClient({'appCode':_0xf18910[_0x2a1fb8(0x10d)],'env':_0xf18910['env'],'authMode':_0xf18910[_0x2a1fb8(0x104)],..._0xf18910[_0x2a1fb8(0x112)]?{'accessKey':_0xf18910[_0x2a1fb8(0x112)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2a1fb8(0x113)]}}});}function ensureClient(){const _0x58e79c=a45_0x55b9;if(!_client)throw new Error(_0x58e79c(0x10f));return _client;}function a45_0x55b9(_0x178e08,_0x2f4f06){_0x178e08=_0x178e08-0xf8;const _0x40c1a3=a45_0x40c1();let _0x55b9e1=_0x40c1a3[_0x178e08];return _0x55b9e1;}export async function executeData(_0x4135d3,_0x1e5284,_0xa585c0){const _0x543f91=a45_0x55b9,_0x34b4f5=ensureClient(),_0x6ff528=_0x543f91(0x110)+_0x4135d3,_0x5e9390=_0x34b4f5[_0x543f91(0x10b)][_0x6ff528];if(!_0x5e9390||typeof _0x5e9390[_0x1e5284]!=='function')throw new Error(_0x543f91(0xfb)+_0x1e5284+_0x543f91(0x101)+_0x543f91(0xf9));if(_0x1e5284==='batchCreate')return _0x5e9390[_0x543f91(0xff)](parseBatchCreateItemsFromParams(_0xa585c0));const _0x10d36d=_0xa585c0!==undefined&&_0xa585c0!==null&&!Array[_0x543f91(0x100)](_0xa585c0)?_0xa585c0:{};switch(_0x1e5284){case'getOne':{const _0x264d66=_0x10d36d['id'];if(_0x264d66===undefined||_0x264d66===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x5e9390[_0x543f91(0x108)](_0x264d66);}case _0x543f91(0x106):{const {id:_0x106698,..._0x100ebe}=_0x10d36d;if(_0x106698===undefined||_0x106698===null)throw new Error(_0x543f91(0x10e));return _0x5e9390['update'](_0x106698,_0x100ebe);}case'delete':{const _0xd68f1a=_0x10d36d['id'];if(_0xd68f1a===undefined||_0xd68f1a===null)throw new Error(_0x543f91(0x105));return _0x5e9390[_0x543f91(0x10c)](_0xd68f1a);}default:return _0x5e9390[_0x1e5284](_0x10d36d);}}export async function executeSdkSql(_0x5026da,_0x48cab0){const _0x4b8f15=a45_0x55b9,_0x3ce6cb=ensureClient();return _0x3ce6cb[_0x4b8f15(0x109)][_0x4b8f15(0x103)]({'sqlCode':_0x5026da,'params':_0x48cab0});}export async function executeSdkBff(_0x246ed9,_0x458791){const _0x131568=a45_0x55b9,_0x374134=ensureClient();return _0x374134[_0x131568(0x102)][_0x131568(0x103)]({'scriptName':_0x246ed9,'params':_0x458791});}
1
+ (function(_0x5a2b2b,_0x59be6d){const _0x3955c1=a45_0x46bd,_0x3c3d40=_0x5a2b2b();while(!![]){try{const _0x28a28d=-parseInt(_0x3955c1(0x1ea))/0x1*(-parseInt(_0x3955c1(0x1d4))/0x2)+parseInt(_0x3955c1(0x1ee))/0x3+-parseInt(_0x3955c1(0x1e9))/0x4*(-parseInt(_0x3955c1(0x1e5))/0x5)+parseInt(_0x3955c1(0x1d6))/0x6+parseInt(_0x3955c1(0x1e8))/0x7*(-parseInt(_0x3955c1(0x1e6))/0x8)+-parseInt(_0x3955c1(0x1e1))/0x9*(parseInt(_0x3955c1(0x1d7))/0xa)+-parseInt(_0x3955c1(0x1da))/0xb;if(_0x28a28d===_0x59be6d)break;else _0x3c3d40['push'](_0x3c3d40['shift']());}catch(_0x1da890){_0x3c3d40['push'](_0x3c3d40['shift']());}}}(a45_0x2cfb,0x73342));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x45a38c){const _0x3f7376=a45_0x46bd;_client=createClient({'appCode':_0x45a38c['appCode'],'env':_0x45a38c[_0x3f7376(0x1dc)],'authMode':_0x45a38c[_0x3f7376(0x1e0)],..._0x45a38c[_0x3f7376(0x1d2)]?{'accessKey':_0x45a38c[_0x3f7376(0x1d2)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3f7376(0x1de)]}}});}function a45_0x2cfb(){const _0x3b1059=['12294cmcyKk','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','dataset_','batchCreate','execute','accessKey','function','1780498ITmXlt','delete','2108562AjwpwS','130580cPyUkV','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','15117091skpQzt','getOne','env','bff','invokeSource','sql','authMode','126WptxHX','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','5LFUDob','1008NPnhyN','models','7357KPebpp','3662476sibkOb','1xsspGs','\x22.\x20','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','isArray'];a45_0x2cfb=function(){return _0x3b1059;};return a45_0x2cfb();}function ensureClient(){const _0x3249f7=a45_0x46bd;if(!_client)throw new Error(_0x3249f7(0x1ef));return _client;}export async function executeData(_0x5ac226,_0x4de972,_0x49251d){const _0x493ba4=a45_0x46bd,_0xd4a10b=ensureClient(),_0x3c1a59=_0x493ba4(0x1f0)+_0x5ac226,_0x1c2afb=_0xd4a10b[_0x493ba4(0x1e7)][_0x3c1a59];if(!_0x1c2afb||typeof _0x1c2afb[_0x4de972]!==_0x493ba4(0x1d3))throw new Error(_0x493ba4(0x1e4)+_0x4de972+_0x493ba4(0x1eb)+_0x493ba4(0x1e3));if(_0x4de972===_0x493ba4(0x1f1))return _0x1c2afb[_0x493ba4(0x1f1)](parseBatchCreateItemsFromParams(_0x49251d));const _0x19923e=_0x49251d!==undefined&&_0x49251d!==null&&!Array[_0x493ba4(0x1ed)](_0x49251d)?_0x49251d:{};switch(_0x4de972){case _0x493ba4(0x1db):{const _0x556fee=_0x19923e['id'];if(_0x556fee===undefined||_0x556fee===null)throw new Error(_0x493ba4(0x1e2));return _0x1c2afb['getOne'](_0x556fee);}case _0x493ba4(0x1d9):{const {id:_0x2fe65e,..._0x135b77}=_0x19923e;if(_0x2fe65e===undefined||_0x2fe65e===null)throw new Error(_0x493ba4(0x1ec));return _0x1c2afb[_0x493ba4(0x1d9)](_0x2fe65e,_0x135b77);}case'delete':{const _0x2efd92=_0x19923e['id'];if(_0x2efd92===undefined||_0x2efd92===null)throw new Error(_0x493ba4(0x1d8));return _0x1c2afb[_0x493ba4(0x1d5)](_0x2efd92);}default:return _0x1c2afb[_0x4de972](_0x19923e);}}function a45_0x46bd(_0x391149,_0x4e2f46){_0x391149=_0x391149-0x1d1;const _0x2cfb79=a45_0x2cfb();let _0x46bd65=_0x2cfb79[_0x391149];return _0x46bd65;}export async function executeSdkSql(_0x385d5c,_0x386cad){const _0x513fc9=a45_0x46bd,_0x5b5c7d=ensureClient();return _0x5b5c7d[_0x513fc9(0x1df)][_0x513fc9(0x1d1)]({'sqlCode':_0x385d5c,'params':_0x386cad});}export async function executeSdkBff(_0x595ab9,_0x10d1b8){const _0x45b27f=a45_0x46bd,_0xd9f54a=ensureClient();return _0xd9f54a[_0x45b27f(0x1dd)]['execute']({'scriptName':_0x595ab9,'params':_0x10d1b8});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a46_0x3a0c(){const _0x1b431b=['Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','204nZIYgT','\x20auth\x20login`.','18ZpryAN','3071vWdvVX','85689XAvUrC','9031230zeoAxI','264uXLgrj','537205aTIRNv','435928aGOpcI','1284564skJLVi','379876XPagfm','newConfigFileName'];a46_0x3a0c=function(){return _0x1b431b;};return a46_0x3a0c();}function a46_0x17e6(_0x17ae72,_0x474733){_0x17ae72=_0x17ae72-0x13b;const _0x3a0cef=a46_0x3a0c();let _0x17e6af=_0x3a0cef[_0x17ae72];return _0x17e6af;}const a46_0x5f158d=a46_0x17e6;(function(_0x54eb14,_0x2094c8){const _0x592ff9=a46_0x17e6,_0x5758a9=_0x54eb14();while(!![]){try{const _0x4c04a6=parseInt(_0x592ff9(0x13e))/0x1*(-parseInt(_0x592ff9(0x13b))/0x2)+parseInt(_0x592ff9(0x144))/0x3+-parseInt(_0x592ff9(0x143))/0x4+-parseInt(_0x592ff9(0x142))/0x5*(parseInt(_0x592ff9(0x13d))/0x6)+-parseInt(_0x592ff9(0x145))/0x7+-parseInt(_0x592ff9(0x141))/0x8*(parseInt(_0x592ff9(0x13f))/0x9)+parseInt(_0x592ff9(0x140))/0xa;if(_0x4c04a6===_0x2094c8)break;else _0x5758a9['push'](_0x5758a9['shift']());}catch(_0x12a9b7){_0x5758a9['push'](_0x5758a9['shift']());}}}(a46_0x3a0c,0x354bf));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':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a46_0x5f158d(0x146)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a46_0x5f158d(0x13c),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a46_0x5f158d(0x146)]+'.','notInProjectHint':a46_0x5f158d(0x147)+PRODUCT_CONFIG['newConfigFileName']+a46_0x5f158d(0x148)});
1
+ function a46_0xf9f8(){const _0x41cc17=['1185384jjFMaw','2787txGIem','\x20or\x20run\x20`','365822ZFffCo','1254309aNhitn','newConfigFileName','9308ojRhuD','2755968yWOJOJ','1777221LpOHdK','1505XKIqDh','Configure\x20accessKey\x20in\x20','238KjwIrL','Set\x20appcode\x20via\x20--appcode\x20or\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'];a46_0xf9f8=function(){return _0x41cc17;};return a46_0xf9f8();}const a46_0x562a26=a46_0x36e1;(function(_0x460fb9,_0x599f27){const _0x5db074=a46_0x36e1,_0x1732fa=_0x460fb9();while(!![]){try{const _0x3f181a=-parseInt(_0x5db074(0x106))/0x1+parseInt(_0x5db074(0x100))/0x2*(parseInt(_0x5db074(0x104))/0x3)+-parseInt(_0x5db074(0xfb))/0x4*(-parseInt(_0x5db074(0xfe))/0x5)+parseInt(_0x5db074(0xfc))/0x6+-parseInt(_0x5db074(0x107))/0x7+-parseInt(_0x5db074(0x103))/0x8+-parseInt(_0x5db074(0xfd))/0x9;if(_0x3f181a===_0x599f27)break;else _0x1732fa['push'](_0x1732fa['shift']());}catch(_0xfe719c){_0x1732fa['push'](_0x1732fa['shift']());}}}(a46_0xf9f8,0x5cb07));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a46_0x36e1(_0x5aa323,_0x5d5bbe){_0x5aa323=_0x5aa323-0xfb;const _0xf9f8d2=a46_0xf9f8();let _0x36e109=_0xf9f8d2[_0x5aa323];return _0x36e109;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a46_0x562a26(0xff)+PRODUCT_CONFIG[a46_0x562a26(0x108)]+a46_0x562a26(0x105)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a46_0x562a26(0x101)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a46_0x562a26(0x102)+PRODUCT_CONFIG[a46_0x562a26(0x108)]+'\x20file.'});
@@ -1 +1 @@
1
- function a47_0x2039(){var _0x538b8f=['8507864ICyJzE','3777858RpnckB','4887360wtbPfn','11604278yPJXcn','9euunof','5yKdXrG','2027972XdGfun','4346880kADZdZ','680186qSBcxf'];a47_0x2039=function(){return _0x538b8f;};return a47_0x2039();}(function(_0x1e64a2,_0x325bb6){var _0x5b47cd=a47_0x4a68,_0x32ea40=_0x1e64a2();while(!![]){try{var _0x5a1bfc=-parseInt(_0x5b47cd(0xfc))/0x1*(-parseInt(_0x5b47cd(0xff))/0x2)+-parseInt(_0x5b47cd(0x104))/0x3*(parseInt(_0x5b47cd(0xfd))/0x4)+-parseInt(_0x5b47cd(0xfe))/0x5+-parseInt(_0x5b47cd(0x101))/0x6+parseInt(_0x5b47cd(0x103))/0x7+parseInt(_0x5b47cd(0x100))/0x8+-parseInt(_0x5b47cd(0x102))/0x9;if(_0x5a1bfc===_0x325bb6)break;else _0x32ea40['push'](_0x32ea40['shift']());}catch(_0x34b180){_0x32ea40['push'](_0x32ea40['shift']());}}}(a47_0x2039,0xd1a28));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x4634a2}from'@lovrabet/cli-framework';function a47_0x4a68(_0x3bf74b,_0x3a91e0){_0x3bf74b=_0x3bf74b-0xfc;var _0x20396d=a47_0x2039();var _0x4a682a=_0x20396d[_0x3bf74b];return _0x4a682a;}export function buildAllFlags(_0xf2102e){return a47_0x4634a2(_0xf2102e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a47_0x4fd4(){var _0x3f6daa=['12fHkrUy','406KeNZTG','657738voYrPt','38232vLdNVr','222622mALpIV','18968RVQxJs','239036TYinCO','1197495SBMGQO','103595nIeelB'];a47_0x4fd4=function(){return _0x3f6daa;};return a47_0x4fd4();}(function(_0x504790,_0xb8175d){var _0x51ed56=a47_0x4de1,_0x1ccf6f=_0x504790();while(!![]){try{var _0x3da771=parseInt(_0x51ed56(0x1c3))/0x1+-parseInt(_0x51ed56(0x1c2))/0x2+-parseInt(_0x51ed56(0x1c1))/0x3+-parseInt(_0x51ed56(0x1bc))/0x4+-parseInt(_0x51ed56(0x1be))/0x5*(parseInt(_0x51ed56(0x1bf))/0x6)+-parseInt(_0x51ed56(0x1c0))/0x7*(-parseInt(_0x51ed56(0x1c4))/0x8)+parseInt(_0x51ed56(0x1bd))/0x9;if(_0x3da771===_0xb8175d)break;else _0x1ccf6f['push'](_0x1ccf6f['shift']());}catch(_0x19ae94){_0x1ccf6f['push'](_0x1ccf6f['shift']());}}}(a47_0x4fd4,0x25824));function a47_0x4de1(_0x2c39a8,_0x448fc9){_0x2c39a8=_0x2c39a8-0x1bc;var _0x4fd4ab=a47_0x4fd4();var _0x4de156=_0x4fd4ab[_0x2c39a8];return _0x4de156;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a47_0x1341a4}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3304dc){return a47_0x1341a4(_0x3304dc,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a48_0x4f95(){const _0x172634=['1175157PBoNlj','544270JAdgFH','539LeRPVL','1125775xRyxOm','6AcmoCn','2974196MuNGDJ','56BUbfQB','2291815OQvzBV','403354WLZyXw','body','3QUwvSl','1977062JTqvJA'];a48_0x4f95=function(){return _0x172634;};return a48_0x4f95();}(function(_0x65539a,_0x52eb67){const _0x3f9db4=a48_0x2b3a,_0x2fd603=_0x65539a();while(!![]){try{const _0x1b9a96=parseInt(_0x3f9db4(0x123))/0x1+-parseInt(_0x3f9db4(0x11f))/0x2+parseInt(_0x3f9db4(0x11e))/0x3*(-parseInt(_0x3f9db4(0x125))/0x4)+parseInt(_0x3f9db4(0x11b))/0x5*(-parseInt(_0x3f9db4(0x124))/0x6)+-parseInt(_0x3f9db4(0x11c))/0x7+parseInt(_0x3f9db4(0x126))/0x8*(-parseInt(_0x3f9db4(0x120))/0x9)+-parseInt(_0x3f9db4(0x121))/0xa*(-parseInt(_0x3f9db4(0x122))/0xb);if(_0x1b9a96===_0x52eb67)break;else _0x2fd603['push'](_0x2fd603['shift']());}catch(_0xa36e64){_0x2fd603['push'](_0x2fd603['shift']());}}}(a48_0x4f95,0x99f5e));function a48_0x2b3a(_0x2f0e2e,_0x37fe3e){_0x2f0e2e=_0x2f0e2e-0x11b;const _0x4f9597=a48_0x4f95();let _0x2b3aab=_0x4f9597[_0x2f0e2e];return _0x2b3aab;}export function dryRun(_0x383d72,_0x2e6a4d){const _0x1244c2={'method':_0x383d72,'url':_0x2e6a4d},_0x45ae75={'body'(_0x2c844c){const _0x244eb3=a48_0x2b3a;return _0x1244c2[_0x244eb3(0x11d)]=_0x2c844c,_0x45ae75;},'description'(_0x718159){return _0x1244c2['description']=_0x718159,_0x45ae75;},'build'(){return{..._0x1244c2};}};return _0x45ae75;}
1
+ (function(_0x219de2,_0x2fb2b6){const _0x2ff74d=a48_0x2f3d,_0x17dd13=_0x219de2();while(!![]){try{const _0x3387ad=parseInt(_0x2ff74d(0xc8))/0x1*(-parseInt(_0x2ff74d(0xc4))/0x2)+-parseInt(_0x2ff74d(0xcd))/0x3*(-parseInt(_0x2ff74d(0xca))/0x4)+parseInt(_0x2ff74d(0xc5))/0x5+parseInt(_0x2ff74d(0xc7))/0x6*(-parseInt(_0x2ff74d(0xcb))/0x7)+parseInt(_0x2ff74d(0xc6))/0x8+-parseInt(_0x2ff74d(0xcc))/0x9+parseInt(_0x2ff74d(0xc9))/0xa*(parseInt(_0x2ff74d(0xce))/0xb);if(_0x3387ad===_0x2fb2b6)break;else _0x17dd13['push'](_0x17dd13['shift']());}catch(_0x2e572c){_0x17dd13['push'](_0x17dd13['shift']());}}}(a48_0x9604,0x5a5c2));function a48_0x9604(){const _0x4a1bce=['2954500CgktHd','113144CLBwoi','2555052fPqZQV','2657TXDKEc','783620TdtGMh','4XOyYLp','7QGzakE','2416941fkMTPG','1709241jrfPop','11fQhnsN','body','142xLZtXb'];a48_0x9604=function(){return _0x4a1bce;};return a48_0x9604();}function a48_0x2f3d(_0x2d222a,_0x5158f5){_0x2d222a=_0x2d222a-0xc4;const _0x9604ad=a48_0x9604();let _0x2f3d75=_0x9604ad[_0x2d222a];return _0x2f3d75;}export function dryRun(_0x502910,_0x226121){const _0x18b3db={'method':_0x502910,'url':_0x226121},_0x24f2c0={'body'(_0x3256ba){const _0x5bcb92=a48_0x2f3d;return _0x18b3db[_0x5bcb92(0xcf)]=_0x3256ba,_0x24f2c0;},'description'(_0x4f28db){return _0x18b3db['description']=_0x4f28db,_0x24f2c0;},'build'(){return{..._0x18b3db};}};return _0x24f2c0;}