@lovrabet/lovrabet-cli 2.1.9-beta.3 → 2.1.9-beta.4

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 (117) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55_0x823eeb=a55_0x40df;(function(_0x1f4291,_0x1a1aca){const _0x3bb8d9=a55_0x40df,_0x2150b6=_0x1f4291();while(!![]){try{const _0x4a60d4=-parseInt(_0x3bb8d9(0x1d6))/0x1+parseInt(_0x3bb8d9(0x1f4))/0x2*(-parseInt(_0x3bb8d9(0x22b))/0x3)+parseInt(_0x3bb8d9(0x1ff))/0x4*(-parseInt(_0x3bb8d9(0x221))/0x5)+-parseInt(_0x3bb8d9(0x1e8))/0x6+parseInt(_0x3bb8d9(0x201))/0x7*(parseInt(_0x3bb8d9(0x212))/0x8)+-parseInt(_0x3bb8d9(0x1fb))/0x9*(-parseInt(_0x3bb8d9(0x227))/0xa)+parseInt(_0x3bb8d9(0x1d9))/0xb*(parseInt(_0x3bb8d9(0x228))/0xc);if(_0x4a60d4===_0x1a1aca)break;else _0x2150b6['push'](_0x2150b6['shift']());}catch(_0x2ee691){_0x2150b6['push'](_0x2150b6['shift']());}}}(a55_0xd4f5,0x339a5));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x5e4ee9}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x823eeb(0x1e7),SUPPORTED_SKILL_TYPES=new Set([a55_0x823eeb(0x1f5),a55_0x823eeb(0x22d),a55_0x823eeb(0x1e9)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x586bbd,_0x23574b={}){const _0x2ffb35=a55_0x823eeb,_0x2c0bea=resolveSkillDirectoryRoot(_0x586bbd),_0x1b4a65=[],_0x5271f4=loadRequiredSkillFile(_0x2c0bea,_0x1b4a65),_0x154285=_0x5271f4?parseFrontmatter(_0x5271f4[_0x2ffb35(0x213)]):{'hasFrontmatter':![]};_0x5271f4&&validateFrontmatter(_0x5271f4['path'],_0x154285,_0x1b4a65);validateRuntimeCliReferences(_0x2c0bea,_0x1b4a65);const _0xd0646f=_0x1b4a65[_0x2ffb35(0x220)](_0xd486d=>_0xd486d[_0x2ffb35(0x1d5)]===_0x2ffb35(0x1df)),_0x53891f=_0x1b4a65[_0x2ffb35(0x220)](_0x4336b0=>_0x4336b0[_0x2ffb35(0x1d5)]===_0x2ffb35(0x20a));return{'ok':_0xd0646f[_0x2ffb35(0x217)]===0x0,'dir':_0x2c0bea,'type':_0x154285[_0x2ffb35(0x21c)],'errors':_0xd0646f,'warnings':_0x53891f};}function a55_0xd4f5(){const _0x44edbe=['填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','frontmatter-required','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','project','level','183097KidFvV','utf8','validation','737803kPEGAg','display-name-recommended','flatMap','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','string','file','error','has','test','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','match','ruleId','app','name','SKILL.md','1319334OJvTxI','trainer','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','internal-skill','isSymbolicLink','raw','false','errors','section','Skill\x20validation\x20failed:\x0a','split','artifact','58546ioKcdu','write','true','map','schema','description-required','Add\x20frontmatter\x20with\x20name\x20and\x20description.','245187UqUnlA','auth','structure-complete','Missing\x20SKILL.md.','51012OnpOEb','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','14QtQcFR','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata','data','line','object','Skill\x20directory\x20not\x20found:\x20','\x20Fix:\x20','isFile','warning','message','search','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','config','sql','hasFrontmatter','rabetbase-cli-reference','1266928EIpOwL','content','SKILL.md\x20is\x20not\x20a\x20file.','path','push','length','Frontmatter\x20name\x20is\x20missing.','toLowerCase','description','join','type','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','number','filter','80ymLcvf','trim','displayName','Frontmatter\x20displayName\x20is\x20missing.','isDirectory','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','130Upyomb','84ysqSRb','suggestion','Frontmatter\x20description\x20is\x20empty.','33WxjYFj','service','read','page','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','workspace','registry','internal'];a55_0xd4f5=function(){return _0x44edbe;};return a55_0xd4f5();}function resolveSkillDirectoryRoot(_0x16cdf6){const _0x3c584e=a55_0x823eeb,_0x5ae432=resolve(_0x16cdf6);if(!existsSync(_0x5ae432))throw CliErrors[_0x3c584e(0x1d8)](_0x3c584e(0x207)+_0x16cdf6);const _0x1d325d=lstatSync(_0x5ae432);if(_0x1d325d[_0x3c584e(0x225)]())return _0x5ae432;if(_0x1d325d['isSymbolicLink']()){const _0x4dda49=realpathSync(_0x5ae432);if(lstatSync(_0x4dda49)[_0x3c584e(0x225)]())return _0x4dda49;}throw CliErrors[_0x3c584e(0x1d8)](_0x3c584e(0x207)+_0x16cdf6);}export function throwIfSkillValidationFailed(_0x23abd1,_0x3014c2=![]){const _0x1e0e8b=a55_0x823eeb;if(_0x23abd1['ok'])return;const _0x283c84=_0x23abd1[_0x1e0e8b(0x1ef)][_0x1e0e8b(0x1f7)](_0x30020f=>{const _0x49e087=_0x1e0e8b,_0x4da81b=_0x30020f[_0x49e087(0x1f0)]?'#'+_0x30020f[_0x49e087(0x1f0)]:'';return _0x30020f['level']['toUpperCase']()+'\x20'+_0x30020f[_0x49e087(0x1e4)]+'\x20'+_0x30020f[_0x49e087(0x1de)]+_0x4da81b+':\x20'+_0x30020f[_0x49e087(0x20b)]+_0x49e087(0x208)+_0x30020f[_0x49e087(0x229)];});throw CliErrors[_0x1e0e8b(0x1d8)](_0x1e0e8b(0x1f1)+_0x283c84[_0x1e0e8b(0x21b)]('\x0a'),_0x1e0e8b(0x21d));}function loadRequiredSkillFile(_0x1d8862,_0x193e6a){const _0x4414b4=a55_0x823eeb,_0x122524=resolve(_0x1d8862,SKILL_FILE);if(!existsSync(_0x122524))return _0x193e6a[_0x4414b4(0x216)](issue('error',_0x4414b4(0x1fd),SKILL_FILE,_0x4414b4(0x1fe),_0x4414b4(0x1ea))),undefined;const _0x2cfc35=lstatSync(_0x122524);if(_0x2cfc35[_0x4414b4(0x1ec)]())return _0x193e6a[_0x4414b4(0x216)](issue(_0x4414b4(0x1df),_0x4414b4(0x1fd),SKILL_FILE,_0x4414b4(0x1d3),_0x4414b4(0x200))),undefined;if(!_0x2cfc35[_0x4414b4(0x209)]())return _0x193e6a['push'](issue('error',_0x4414b4(0x1fd),SKILL_FILE,_0x4414b4(0x214),_0x4414b4(0x202))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x122524,_0x4414b4(0x1d7))};}function validateFrontmatter(_0xad7984,_0x1885f9,_0x2db4b9){const _0x5eb14e=a55_0x823eeb;if(!_0x1885f9[_0x5eb14e(0x210)]){_0x2db4b9[_0x5eb14e(0x216)](issue(_0x5eb14e(0x1df),_0x5eb14e(0x1d2),_0xad7984,_0x5eb14e(0x21e),_0x5eb14e(0x1fa)));return;}!_0x1885f9[_0x5eb14e(0x1e6)]?.[_0x5eb14e(0x222)]()&&_0x2db4b9[_0x5eb14e(0x216)](issue('error','frontmatter-required',_0xad7984,_0x5eb14e(0x218),_0x5eb14e(0x226))),!_0x1885f9[_0x5eb14e(0x223)]?.[_0x5eb14e(0x222)]()&&_0x2db4b9[_0x5eb14e(0x216)](issue(_0x5eb14e(0x20a),_0x5eb14e(0x1da),_0xad7984,_0x5eb14e(0x224),_0x5eb14e(0x22f))),!_0x1885f9[_0x5eb14e(0x21a)]?.[_0x5eb14e(0x222)]()&&_0x2db4b9[_0x5eb14e(0x216)](issue('error',_0x5eb14e(0x1f9),_0xad7984,_0x5eb14e(0x22a),_0x5eb14e(0x1d1))),_0x1885f9['internal']===!![]&&_0x2db4b9[_0x5eb14e(0x216)](issue(_0x5eb14e(0x1df),_0x5eb14e(0x1eb),_0xad7984,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x5eb14e(0x20d))),_0x1885f9['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x5eb14e(0x1e0)](_0x1885f9[_0x5eb14e(0x21c)])&&_0x2db4b9[_0x5eb14e(0x216)](issue(_0x5eb14e(0x1df),_0x5eb14e(0x1d2),_0xad7984,_0x5eb14e(0x1dc),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x3c8df7,_0x501fb3){const _0x31a283=a55_0x823eeb;for(const _0x5b6a53 of findRabetbaseCliInvocations(_0x3c8df7)){_0x501fb3[_0x31a283(0x216)](issue(_0x31a283(0x20a),_0x31a283(0x211),_0x5b6a53[_0x31a283(0x1de)],_0x31a283(0x1e2),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x5b6a53[_0x31a283(0x205)]));}}function a55_0x40df(_0x3a0c44,_0x5309d7){_0x3a0c44=_0x3a0c44-0x1d0;const _0xd4f56c=a55_0xd4f5();let _0x40df6d=_0xd4f56c[_0x3a0c44];return _0x40df6d;}function findRabetbaseCliInvocations(_0x5b74c4){const _0x536f58=a55_0x823eeb;return scanSkillDirectory(_0x5b74c4)[_0x536f58(0x220)](_0x19a10d=>TEXT_SKILL_FILE_PATTERN['test'](_0x19a10d[_0x536f58(0x215)]))[_0x536f58(0x1db)](_0x28ffbd=>{const _0x428664=_0x536f58,_0x2f3d70=fileText(_0x28ffbd);return _0x2f3d70[_0x428664(0x1f2)](/\r?\n/)[_0x428664(0x1f7)]((_0x4da66a,_0x447c56)=>({'file':_0x28ffbd[_0x428664(0x215)],'line':_0x447c56+0x1,'text':_0x4da66a}))[_0x428664(0x220)](({text:_0x424470})=>isRabetbaseCliInvocation(_0x424470))[_0x428664(0x1f7)](({file:_0x18ee86,line:_0x16972f})=>({'file':_0x18ee86,'line':_0x16972f}));});}const RABETBASE_SUBCOMMANDS=['dataset',a55_0x823eeb(0x20f),'bff',a55_0x823eeb(0x22e),a55_0x823eeb(0x1d4),a55_0x823eeb(0x1e5),a55_0x823eeb(0x1f8),a55_0x823eeb(0x22c),a55_0x823eeb(0x1f3),'kb',a55_0x823eeb(0x20e),a55_0x823eeb(0x230),a55_0x823eeb(0x204),a55_0x823eeb(0x1fc),'logs',a55_0x823eeb(0x231)],RABETBASE_INVOCATION=new RegExp(String[a55_0x823eeb(0x1ed)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x823eeb(0x21b)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2a75d9){const _0x2a13fd=a55_0x823eeb,_0x26eed2=_0x2a75d9[_0x2a13fd(0x20c)](/\brabetbase\b/i);if(_0x26eed2<0x0)return![];const _0x3856cd=_0x2a75d9['slice'](_0x26eed2)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x2a13fd(0x1e1)](_0x3856cd);}function parseFrontmatter(_0x1976b6){const _0x3c965b=a55_0x823eeb,_0x1a2ed2=_0x1976b6[_0x3c965b(0x1e3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1a2ed2)return{'hasFrontmatter':![]};const _0x15a4eb=_0x1a2ed2[0x1]??'',_0x231afc={'hasFrontmatter':!![]};let _0x1895f4;try{_0x1895f4=a55_0x5e4ee9(_0x15a4eb);}catch{return _0x231afc;}const _0x1d8c68=asRecord(_0x1895f4);if(!_0x1d8c68)return _0x231afc;_0x231afc[_0x3c965b(0x1e6)]=scalarToString(_0x1d8c68[_0x3c965b(0x1e6)]),_0x231afc[_0x3c965b(0x223)]=scalarToString(_0x1d8c68['displayName']),_0x231afc[_0x3c965b(0x21a)]=scalarToString(_0x1d8c68[_0x3c965b(0x21a)]);const _0x2ab6b2=asRecord(_0x1d8c68[_0x3c965b(0x203)]);return _0x2ab6b2&&(_0x231afc['type']=scalarToString(_0x2ab6b2[_0x3c965b(0x21c)]),_0x231afc[_0x3c965b(0x1d0)]=scalarToBoolean(_0x2ab6b2[_0x3c965b(0x1d0)])),_0x231afc;}function asRecord(_0x1be62f){const _0x143d2c=a55_0x823eeb;if(_0x1be62f&&typeof _0x1be62f===_0x143d2c(0x206)&&!Array['isArray'](_0x1be62f))return _0x1be62f;return undefined;}function scalarToString(_0x595eed){const _0xcb0f33=a55_0x823eeb;if(typeof _0x595eed===_0xcb0f33(0x1dd))return _0x595eed['trim']();if(typeof _0x595eed===_0xcb0f33(0x21f)||typeof _0x595eed==='boolean')return String(_0x595eed);return undefined;}function scalarToBoolean(_0x5667b6){const _0x72bda7=a55_0x823eeb;if(typeof _0x5667b6==='boolean')return _0x5667b6;if(typeof _0x5667b6===_0x72bda7(0x1dd))return cleanBoolean(_0x5667b6);return undefined;}function cleanBoolean(_0x57215d){const _0x40cdba=a55_0x823eeb,_0x17d6ef=_0x57215d[_0x40cdba(0x222)]()[_0x40cdba(0x219)]();if(_0x17d6ef===_0x40cdba(0x1f6))return!![];if(_0x17d6ef===_0x40cdba(0x1ee))return![];return undefined;}function issue(_0x87fdd7,_0x5c2e8f,_0xc93680,_0x13dad3,_0x240b75,_0x21dd1a){return{'level':_0x87fdd7,'ruleId':_0x5c2e8f,'file':_0xc93680,'section':_0x21dd1a,'message':_0x13dad3,'suggestion':_0x240b75};}
1
+ const a55_0x38de35=a55_0x4d05;(function(_0x1790ed,_0x2d8844){const _0x4578a3=a55_0x4d05,_0x2fb84b=_0x1790ed();while(!![]){try{const _0x417944=parseInt(_0x4578a3(0x219))/0x1+parseInt(_0x4578a3(0x213))/0x2+-parseInt(_0x4578a3(0x211))/0x3*(parseInt(_0x4578a3(0x1e6))/0x4)+parseInt(_0x4578a3(0x22e))/0x5+-parseInt(_0x4578a3(0x1f2))/0x6*(-parseInt(_0x4578a3(0x1eb))/0x7)+parseInt(_0x4578a3(0x21d))/0x8*(parseInt(_0x4578a3(0x20a))/0x9)+-parseInt(_0x4578a3(0x200))/0xa;if(_0x417944===_0x2d8844)break;else _0x2fb84b['push'](_0x2fb84b['shift']());}catch(_0x31deb4){_0x2fb84b['push'](_0x2fb84b['shift']());}}}(a55_0x33e5,0x85d54));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x3cb111}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x38de35(0x22c),SUPPORTED_SKILL_TYPES=new Set(['write',a55_0x38de35(0x21c),a55_0x38de35(0x1ef)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5a1c62,_0x19f06f={}){const _0x3f009b=a55_0x38de35,_0x57a0c8=resolveSkillDirectoryRoot(_0x5a1c62),_0x3d7aea=[],_0x2761c2=loadRequiredSkillFile(_0x57a0c8,_0x3d7aea),_0x7ce6f6=_0x2761c2?parseFrontmatter(_0x2761c2['content']):{'hasFrontmatter':![]};_0x2761c2&&validateFrontmatter(_0x2761c2[_0x3f009b(0x220)],_0x7ce6f6,_0x3d7aea);validateRuntimeCliReferences(_0x57a0c8,_0x3d7aea);const _0x20d309=_0x3d7aea[_0x3f009b(0x226)](_0x36cd60=>_0x36cd60[_0x3f009b(0x1e5)]==='error'),_0x317f27=_0x3d7aea[_0x3f009b(0x226)](_0x44b652=>_0x44b652['level']==='warning');return{'ok':_0x20d309[_0x3f009b(0x230)]===0x0,'dir':_0x57a0c8,'type':_0x7ce6f6[_0x3f009b(0x21e)],'errors':_0x20d309,'warnings':_0x317f27};}function resolveSkillDirectoryRoot(_0x54e805){const _0x392ab1=a55_0x38de35,_0x1a7539=resolve(_0x54e805);if(!existsSync(_0x1a7539))throw CliErrors[_0x392ab1(0x1f6)]('Skill\x20directory\x20not\x20found:\x20'+_0x54e805);const _0xf4da77=lstatSync(_0x1a7539);if(_0xf4da77['isDirectory']())return _0x1a7539;if(_0xf4da77['isSymbolicLink']()){const _0x1d2a8b=realpathSync(_0x1a7539);if(lstatSync(_0x1d2a8b)[_0x392ab1(0x1f1)]())return _0x1d2a8b;}throw CliErrors[_0x392ab1(0x1f6)](_0x392ab1(0x21b)+_0x54e805);}export function throwIfSkillValidationFailed(_0x6ba8ba,_0x2ae7bb=![]){const _0x38cc17=a55_0x38de35;if(_0x6ba8ba['ok'])return;const _0x36be39=_0x6ba8ba['errors'][_0x38cc17(0x221)](_0x3012a0=>{const _0xce160e=_0x38cc17,_0x56e985=_0x3012a0[_0xce160e(0x210)]?'#'+_0x3012a0[_0xce160e(0x210)]:'';return _0x3012a0[_0xce160e(0x1e5)][_0xce160e(0x20e)]()+'\x20'+_0x3012a0[_0xce160e(0x223)]+'\x20'+_0x3012a0[_0xce160e(0x206)]+_0x56e985+':\x20'+_0x3012a0[_0xce160e(0x1e9)]+_0xce160e(0x228)+_0x3012a0['suggestion'];});throw CliErrors[_0x38cc17(0x1f6)](_0x38cc17(0x20c)+_0x36be39[_0x38cc17(0x1f8)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x485007,_0x1d8544){const _0x18377b=a55_0x38de35,_0x54ced0=resolve(_0x485007,SKILL_FILE);if(!existsSync(_0x54ced0))return _0x1d8544[_0x18377b(0x205)](issue('error',_0x18377b(0x1f5),SKILL_FILE,_0x18377b(0x1fe),_0x18377b(0x229))),undefined;const _0xa7bb1b=lstatSync(_0x54ced0);if(_0xa7bb1b[_0x18377b(0x1e8)]())return _0x1d8544[_0x18377b(0x205)](issue(_0x18377b(0x234),'structure-complete',SKILL_FILE,_0x18377b(0x209),_0x18377b(0x20d))),undefined;if(!_0xa7bb1b[_0x18377b(0x22d)]())return _0x1d8544['push'](issue(_0x18377b(0x234),_0x18377b(0x1f5),SKILL_FILE,_0x18377b(0x1ee),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x54ced0,'utf8')};}function validateFrontmatter(_0x5921ec,_0x3e001e,_0x519c42){const _0x172636=a55_0x38de35;if(!_0x3e001e[_0x172636(0x1ec)]){_0x519c42[_0x172636(0x205)](issue(_0x172636(0x234),'frontmatter-required',_0x5921ec,_0x172636(0x1f4),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x3e001e[_0x172636(0x231)]?.[_0x172636(0x1ff)]()&&_0x519c42['push'](issue(_0x172636(0x234),_0x172636(0x1f0),_0x5921ec,'Frontmatter\x20name\x20is\x20missing.',_0x172636(0x203))),!_0x3e001e[_0x172636(0x21f)]?.[_0x172636(0x1ff)]()&&_0x519c42[_0x172636(0x205)](issue(_0x172636(0x22f),_0x172636(0x232),_0x5921ec,_0x172636(0x1f3),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x3e001e['description']?.['trim']()&&_0x519c42[_0x172636(0x205)](issue(_0x172636(0x234),_0x172636(0x1fb),_0x5921ec,_0x172636(0x20b),_0x172636(0x21a))),_0x3e001e['internal']===!![]&&_0x519c42[_0x172636(0x205)](issue('error','internal-skill',_0x5921ec,_0x172636(0x22b),_0x172636(0x204))),_0x3e001e[_0x172636(0x21e)]?.[_0x172636(0x1ff)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x3e001e[_0x172636(0x21e)])&&_0x519c42[_0x172636(0x205)](issue(_0x172636(0x234),'frontmatter-required',_0x5921ec,_0x172636(0x212),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x43e86b,_0x284260){const _0x3eba56=a55_0x38de35;for(const _0x384563 of findRabetbaseCliInvocations(_0x43e86b)){_0x284260[_0x3eba56(0x205)](issue('warning',_0x3eba56(0x1ea),_0x384563[_0x3eba56(0x206)],_0x3eba56(0x1e4),_0x3eba56(0x1f7),'L'+_0x384563['line']));}}function findRabetbaseCliInvocations(_0x464293){const _0x593d15=a55_0x38de35;return scanSkillDirectory(_0x464293)[_0x593d15(0x226)](_0x33b993=>TEXT_SKILL_FILE_PATTERN[_0x593d15(0x1fa)](_0x33b993[_0x593d15(0x220)]))[_0x593d15(0x1e7)](_0x228a39=>{const _0x4b67a5=_0x593d15,_0x511ac7=fileText(_0x228a39);return _0x511ac7[_0x4b67a5(0x218)](/\r?\n/)['map']((_0x2c5ef7,_0x1c61b6)=>({'file':_0x228a39[_0x4b67a5(0x220)],'line':_0x1c61b6+0x1,'text':_0x2c5ef7}))[_0x4b67a5(0x226)](({text:_0xe4309e})=>isRabetbaseCliInvocation(_0xe4309e))['map'](({file:_0x37007e,line:_0x127812})=>({'file':_0x37007e,'line':_0x127812}));});}const RABETBASE_SUBCOMMANDS=['dataset','sql',a55_0x38de35(0x1fc),a55_0x38de35(0x207),'project','app',a55_0x38de35(0x227),'service','artifact','kb',a55_0x38de35(0x216),a55_0x38de35(0x233),'data',a55_0x38de35(0x215),a55_0x38de35(0x225),'registry'],RABETBASE_INVOCATION=new RegExp(String[a55_0x38de35(0x1fd)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x38de35(0x1f8)]('|')})\b`+String[a55_0x38de35(0x1fd)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x703595){const _0x5c9c1d=a55_0x38de35,_0x26ec83=_0x703595[_0x5c9c1d(0x217)](/\brabetbase\b/i);if(_0x26ec83<0x0)return![];const _0x4fa973=_0x703595[_0x5c9c1d(0x22a)](_0x26ec83)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x5c9c1d(0x1fa)](_0x4fa973);}function a55_0x4d05(_0x575bda,_0x42fe52){_0x575bda=_0x575bda-0x1e4;const _0x33e5c0=a55_0x33e5();let _0x4d05f9=_0x33e5c0[_0x575bda];return _0x4d05f9;}function parseFrontmatter(_0x2f0962){const _0x2622b3=a55_0x38de35,_0x1bfff5=_0x2f0962[_0x2622b3(0x214)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1bfff5)return{'hasFrontmatter':![]};const _0x50442c=_0x1bfff5[0x1]??'',_0x33f8d9={'hasFrontmatter':!![]};let _0x5bfd03;try{_0x5bfd03=a55_0x3cb111(_0x50442c);}catch{return _0x33f8d9;}const _0x6cfac5=asRecord(_0x5bfd03);if(!_0x6cfac5)return _0x33f8d9;_0x33f8d9['name']=scalarToString(_0x6cfac5[_0x2622b3(0x231)]),_0x33f8d9[_0x2622b3(0x21f)]=scalarToString(_0x6cfac5[_0x2622b3(0x21f)]),_0x33f8d9[_0x2622b3(0x202)]=scalarToString(_0x6cfac5['description']);const _0x4fab21=asRecord(_0x6cfac5['metadata']);return _0x4fab21&&(_0x33f8d9[_0x2622b3(0x21e)]=scalarToString(_0x4fab21[_0x2622b3(0x21e)]),_0x33f8d9[_0x2622b3(0x1ed)]=scalarToBoolean(_0x4fab21[_0x2622b3(0x1ed)])),_0x33f8d9;}function asRecord(_0x5c49e1){if(_0x5c49e1&&typeof _0x5c49e1==='object'&&!Array['isArray'](_0x5c49e1))return _0x5c49e1;return undefined;}function scalarToString(_0x5ed266){const _0x3559a2=a55_0x38de35;if(typeof _0x5ed266==='string')return _0x5ed266[_0x3559a2(0x1ff)]();if(typeof _0x5ed266===_0x3559a2(0x222)||typeof _0x5ed266==='boolean')return String(_0x5ed266);return undefined;}function scalarToBoolean(_0x9aaf81){const _0x56006f=a55_0x38de35;if(typeof _0x9aaf81===_0x56006f(0x20f))return _0x9aaf81;if(typeof _0x9aaf81===_0x56006f(0x208))return cleanBoolean(_0x9aaf81);return undefined;}function cleanBoolean(_0x467901){const _0x3719f1=a55_0x38de35,_0x45e482=_0x467901[_0x3719f1(0x1ff)]()[_0x3719f1(0x224)]();if(_0x45e482===_0x3719f1(0x201))return!![];if(_0x45e482===_0x3719f1(0x1f9))return![];return undefined;}function issue(_0x434bf5,_0x147b92,_0x35bd0b,_0x3f7804,_0x467c3b,_0x1934d3){return{'level':_0x434bf5,'ruleId':_0x147b92,'file':_0x35bd0b,'section':_0x1934d3,'message':_0x3f7804,'suggestion':_0x467c3b};}function a55_0x33e5(){const _0x4a0b04=['false','test','description-required','bff','raw','Missing\x20SKILL.md.','trim','15532550VEVFIw','true','description','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','push','file','page','string','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','3230622OlqtoI','Frontmatter\x20description\x20is\x20empty.','Skill\x20validation\x20failed:\x0a','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','toUpperCase','boolean','section','116988ipUjiR','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','1613630faoxDI','match','auth','config','search','split','752523shHCrL','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Skill\x20directory\x20not\x20found:\x20','read','24pJrhyz','type','displayName','path','map','number','ruleId','toLowerCase','logs','filter','schema','\x20Fix:\x20','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','slice','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','SKILL.md','isFile','666930icwDxF','warning','length','name','display-name-recommended','workspace','error','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','level','72lBYDyV','flatMap','isSymbolicLink','message','rabetbase-cli-reference','236355mGMDPe','hasFrontmatter','internal','SKILL.md\x20is\x20not\x20a\x20file.','trainer','frontmatter-required','isDirectory','6jsRIPL','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','structure-complete','validation','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','join'];a55_0x33e5=function(){return _0x4a0b04;};return a55_0x33e5();}
@@ -1 +1 @@
1
- const a56_0x2e3bce=a56_0x437f;(function(_0x55a9ce,_0x59b6d3){const _0x1a05f1=a56_0x437f,_0x5c4eb8=_0x55a9ce();while(!![]){try{const _0xc183dc=-parseInt(_0x1a05f1(0x75))/0x1+-parseInt(_0x1a05f1(0x7c))/0x2*(parseInt(_0x1a05f1(0x76))/0x3)+-parseInt(_0x1a05f1(0x7b))/0x4+parseInt(_0x1a05f1(0x85))/0x5*(-parseInt(_0x1a05f1(0x83))/0x6)+parseInt(_0x1a05f1(0x84))/0x7+parseInt(_0x1a05f1(0x80))/0x8+parseInt(_0x1a05f1(0x81))/0x9;if(_0xc183dc===_0x59b6d3)break;else _0x5c4eb8['push'](_0x5c4eb8['shift']());}catch(_0x454e86){_0x5c4eb8['push'](_0x5c4eb8['shift']());}}}(a56_0x52a7,0x2ad5c));import{getSqlQueryInfo}from'../../core/api-client.js';function a56_0x437f(_0x1b1b99,_0x6f675f){_0x1b1b99=_0x1b1b99-0x74;const _0x52a7c7=a56_0x52a7();let _0x437f0f=_0x52a7c7[_0x1b1b99];return _0x437f0f;}import{getDbName}from'../../core/db-resolver.js';function a56_0x52a7(){const _0x4f7bce=['description','297371yaLLEg','66ydZogN','dbId','bool','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlcode','753692ywRXJV','26098MIyNaR','str','sqlName','sqlCode','2284160KzxyEV','8004132VWwpxv','appCode','12nNndRC','109466vmfvGt','605455FgBvNp','sqlContent','read','sql','detail'];a56_0x52a7=function(){return _0x4f7bce;};return a56_0x52a7();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x2e3bce(0x88),'command':a56_0x2e3bce(0x89),'description':a56_0x2e3bce(0x79),'risk':a56_0x2e3bce(0x87),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3d0572){const _0x17e1c0=a56_0x2e3bce,_0x1fdc08=await getSqlQueryInfo(_0x3d0572[_0x17e1c0(0x82)],_0x3d0572[_0x17e1c0(0x7d)](_0x17e1c0(0x7a))),_0x2cf194=_0x3d0572[_0x17e1c0(0x78)]('verbose');if(_0x2cf194)return{'ok':!![],'data':_0x1fdc08};const _0xca368d=_0x1fdc08['dbId']?await getDbName(_0x3d0572[_0x17e1c0(0x82)],_0x1fdc08[_0x17e1c0(0x77)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x1fdc08[_0x17e1c0(0x7f)],'sqlName':_0x1fdc08[_0x17e1c0(0x7e)],'db':_0xca368d?_0xca368d+'\x20('+_0x1fdc08[_0x17e1c0(0x77)]+')':_0x1fdc08[_0x17e1c0(0x77)]??'','description':_0x1fdc08[_0x17e1c0(0x74)]??'','sqlContent':_0x1fdc08[_0x17e1c0(0x86)]??''}};}};
1
+ const a56_0x125ac4=a56_0x3120;function a56_0x3120(_0x1d65d0,_0x226053){_0x1d65d0=_0x1d65d0-0x13c;const _0x319ef4=a56_0x319e();let _0x3120a3=_0x319ef4[_0x1d65d0];return _0x3120a3;}function a56_0x319e(){const _0xcca688=['verbose','detail','951592ZkimBf','read','34810452hwFpzW','sqlContent','3ugznoO','2916994PtWbHz','596266XWPnfw','3464488QXWiYK','16706160lASpBr','description','9gOnXwy','11DWgryX','sqlCode','25nduZlA','3082499gqROFk','18jCBbXe','appCode','sqlName','dbId'];a56_0x319e=function(){return _0xcca688;};return a56_0x319e();}(function(_0x5537bc,_0x147b8a){const _0x15ee2b=a56_0x3120,_0x3381bc=_0x5537bc();while(!![]){try{const _0x5bdaa1=parseInt(_0x15ee2b(0x14e))/0x1+parseInt(_0x15ee2b(0x14d))/0x2*(-parseInt(_0x15ee2b(0x14c))/0x3)+parseInt(_0x15ee2b(0x148))/0x4*(parseInt(_0x15ee2b(0x140))/0x5)+parseInt(_0x15ee2b(0x142))/0x6*(parseInt(_0x15ee2b(0x141))/0x7)+parseInt(_0x15ee2b(0x14f))/0x8+-parseInt(_0x15ee2b(0x13d))/0x9*(-parseInt(_0x15ee2b(0x150))/0xa)+parseInt(_0x15ee2b(0x13e))/0xb*(-parseInt(_0x15ee2b(0x14a))/0xc);if(_0x5bdaa1===_0x147b8a)break;else _0x3381bc['push'](_0x3381bc['shift']());}catch(_0x51236d){_0x3381bc['push'](_0x3381bc['shift']());}}}(a56_0x319e,0xcfcc0));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a56_0x125ac4(0x147),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a56_0x125ac4(0x149),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3fdf73){const _0x2472e8=a56_0x125ac4,_0x24268a=await getSqlQueryInfo(_0x3fdf73[_0x2472e8(0x143)],_0x3fdf73['str']('sqlcode')),_0x42eaa6=_0x3fdf73['bool'](_0x2472e8(0x146));if(_0x42eaa6)return{'ok':!![],'data':_0x24268a};const _0x988227=_0x24268a[_0x2472e8(0x145)]?await getDbName(_0x3fdf73[_0x2472e8(0x143)],_0x24268a['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x24268a[_0x2472e8(0x13f)],'sqlName':_0x24268a[_0x2472e8(0x144)],'db':_0x988227?_0x988227+'\x20('+_0x24268a[_0x2472e8(0x145)]+')':_0x24268a[_0x2472e8(0x145)]??'','description':_0x24268a[_0x2472e8(0x13c)]??'','sqlContent':_0x24268a[_0x2472e8(0x14b)]??''}};}};
@@ -1 +1 @@
1
- const a57_0x5cfdbf=a57_0xd044;(function(_0x5339f2,_0x35b623){const _0x4618ee=a57_0xd044,_0x327655=_0x5339f2();while(!![]){try{const _0x284b6e=-parseInt(_0x4618ee(0xaa))/0x1+parseInt(_0x4618ee(0xa0))/0x2*(-parseInt(_0x4618ee(0xa7))/0x3)+parseInt(_0x4618ee(0xa8))/0x4*(-parseInt(_0x4618ee(0xa4))/0x5)+parseInt(_0x4618ee(0x9b))/0x6+-parseInt(_0x4618ee(0x98))/0x7*(-parseInt(_0x4618ee(0xa3))/0x8)+-parseInt(_0x4618ee(0xa5))/0x9+parseInt(_0x4618ee(0x9c))/0xa;if(_0x284b6e===_0x35b623)break;else _0x327655['push'](_0x327655['shift']());}catch(_0x25010e){_0x327655['push'](_0x327655['shift']());}}}(a57_0x46dc,0xb5b12));function a57_0x46dc(){const _0x38b547=['\x20row(s)\x20in\x20','str','execResult','84ECtfVz','length','now','183608DHcjnf','6239885HyrqqV','751014bMPMEB','SQL\x20execution\x20failed','16539IvAZsW','4rMWnES','params','20974FPyrpA','isArray','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','77wJSmNN','exec','execError','3033720emdeMI','15700720FIwYEJ'];a57_0x46dc=function(){return _0x38b547;};return a57_0x46dc();}import{executeSdkSql}from'../../core/sdk-client.js';function a57_0xd044(_0x785317,_0x3c1f6f){_0x785317=_0x785317-0x98;const _0x46dc5b=a57_0x46dc();let _0xd0449a=_0x46dc5b[_0x785317];return _0xd0449a;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a57_0x5cfdbf(0x99),'description':a57_0x5cfdbf(0xac),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5a52b3){const _0x452cd5=a57_0x5cfdbf,_0xd5236c=parseJsonParams(_0x5a52b3[_0x452cd5(0x9e)](_0x452cd5(0xa9))),_0x313e99=Date[_0x452cd5(0xa2)](),_0x3856ae=await executeSdkSql(_0x5a52b3['str']('sqlcode'),_0xd5236c),_0xaa8875=Date[_0x452cd5(0xa2)]()-_0x313e99,_0x214e38=_0x3856ae?.[_0x452cd5(0x9f)]??_0x3856ae,_0x139257=_0x3856ae?.['execSuccess']??!![];if(!_0x139257)return{'ok':![],'data':{'error':_0x3856ae?.[_0x452cd5(0x9a)]||_0x452cd5(0xa6),'elapsed':_0xaa8875},'message':_0x452cd5(0xa6)};const _0x1f8fed=Array[_0x452cd5(0xab)](_0x214e38)?_0x214e38:[];return{'ok':!![],'data':{'rows':_0x1f8fed,'rowCount':_0x1f8fed[_0x452cd5(0xa1)],'elapsed':_0xaa8875},'message':'Returned\x20'+_0x1f8fed[_0x452cd5(0xa1)]+_0x452cd5(0x9d)+_0xaa8875+'ms'};}};
1
+ function a57_0x3a0a(_0x139ed3,_0x4bf665){_0x139ed3=_0x139ed3-0x73;const _0xd34ad6=a57_0xd34a();let _0x3a0a6c=_0xd34ad6[_0x139ed3];return _0x3a0a6c;}const a57_0x159c5d=a57_0x3a0a;(function(_0x1818bd,_0x558ee8){const _0x4fe89f=a57_0x3a0a,_0x19d24b=_0x1818bd();while(!![]){try{const _0x57b413=parseInt(_0x4fe89f(0x80))/0x1*(parseInt(_0x4fe89f(0x74))/0x2)+-parseInt(_0x4fe89f(0x7a))/0x3*(-parseInt(_0x4fe89f(0x78))/0x4)+-parseInt(_0x4fe89f(0x85))/0x5*(-parseInt(_0x4fe89f(0x82))/0x6)+-parseInt(_0x4fe89f(0x7e))/0x7*(parseInt(_0x4fe89f(0x88))/0x8)+parseInt(_0x4fe89f(0x86))/0x9*(-parseInt(_0x4fe89f(0x7d))/0xa)+-parseInt(_0x4fe89f(0x77))/0xb+-parseInt(_0x4fe89f(0x7f))/0xc;if(_0x57b413===_0x558ee8)break;else _0x19d24b['push'](_0x19d24b['shift']());}catch(_0x174cf9){_0x19d24b['push'](_0x19d24b['shift']());}}}(a57_0xd34a,0xec965));function a57_0xd34a(){const _0x1b137f=['12599180txweKq','4nosgfv','isArray','5563410mFMvKN','params','exec','11474000GaUKNV','14HELBnx','17973336IPEPdw','1907BZkWcj','length','1474452urHEmD','\x20row(s)\x20in\x20','Returned\x20','30APKcUs','9rqczlh','execSuccess','1897584IzXprw','execResult','sqlcode','execError','now','1998nRorkX','SQL\x20execution\x20failed','str'];a57_0xd34a=function(){return _0x1b137f;};return a57_0xd34a();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a57_0x159c5d(0x7c),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1d1667){const _0x4aa823=a57_0x159c5d,_0x39b9ff=parseJsonParams(_0x1d1667[_0x4aa823(0x76)](_0x4aa823(0x7b))),_0x343c1f=Date['now'](),_0x2b22e3=await executeSdkSql(_0x1d1667[_0x4aa823(0x76)](_0x4aa823(0x8a)),_0x39b9ff),_0x506bee=Date[_0x4aa823(0x73)]()-_0x343c1f,_0xb75d01=_0x2b22e3?.[_0x4aa823(0x89)]??_0x2b22e3,_0x16271e=_0x2b22e3?.[_0x4aa823(0x87)]??!![];if(!_0x16271e)return{'ok':![],'data':{'error':_0x2b22e3?.[_0x4aa823(0x8b)]||_0x4aa823(0x75),'elapsed':_0x506bee},'message':'SQL\x20execution\x20failed'};const _0x4b6a60=Array[_0x4aa823(0x79)](_0xb75d01)?_0xb75d01:[];return{'ok':!![],'data':{'rows':_0x4b6a60,'rowCount':_0x4b6a60[_0x4aa823(0x81)],'elapsed':_0x506bee},'message':_0x4aa823(0x84)+_0x4b6a60[_0x4aa823(0x81)]+_0x4aa823(0x83)+_0x506bee+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x8c090e,_0x39f1aa){const _0x4867db=a58_0x94f9,_0x554fdf=_0x8c090e();while(!![]){try{const _0x1c2e63=parseInt(_0x4867db(0x192))/0x1*(-parseInt(_0x4867db(0x18c))/0x2)+-parseInt(_0x4867db(0x193))/0x3+parseInt(_0x4867db(0x18f))/0x4+-parseInt(_0x4867db(0x18e))/0x5*(parseInt(_0x4867db(0x194))/0x6)+parseInt(_0x4867db(0x18b))/0x7*(parseInt(_0x4867db(0x18d))/0x8)+parseInt(_0x4867db(0x18a))/0x9*(parseInt(_0x4867db(0x195))/0xa)+-parseInt(_0x4867db(0x190))/0xb*(-parseInt(_0x4867db(0x191))/0xc);if(_0x1c2e63===_0x39f1aa)break;else _0x554fdf['push'](_0x554fdf['shift']());}catch(_0x2a7e7a){_0x554fdf['push'](_0x554fdf['shift']());}}}(a58_0x5258,0x2cb40));import{sqlDetail}from'../../commands/sql/detail.js';function a58_0x94f9(_0x264adb,_0xa8a35d){_0x264adb=_0x264adb-0x18a;const _0x525846=a58_0x5258();let _0x94f997=_0x525846[_0x264adb];return _0x94f997;}import{sqlExec}from'../../commands/sql/exec.js';function a58_0x5258(){const _0x95f8b2=['435984exsKjD','1324422LnbvfD','139770LbHIev','207JeizeU','41902OKqaZV','86jVzFEz','296dgzliW','5rnsgFK','921776gSsPmM','4499yXsMHz','924cLMHbp','5947LvnBLc'];a58_0x5258=function(){return _0x95f8b2;};return a58_0x5258();}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x40bf07,_0x584e24){const _0x45afdd=a58_0x1628,_0xa82d1a=_0x40bf07();while(!![]){try{const _0xb6ceb4=-parseInt(_0x45afdd(0xdd))/0x1+parseInt(_0x45afdd(0xe6))/0x2*(-parseInt(_0x45afdd(0xde))/0x3)+-parseInt(_0x45afdd(0xe3))/0x4*(-parseInt(_0x45afdd(0xe4))/0x5)+-parseInt(_0x45afdd(0xdf))/0x6+-parseInt(_0x45afdd(0xe2))/0x7+parseInt(_0x45afdd(0xe5))/0x8*(parseInt(_0x45afdd(0xe0))/0x9)+parseInt(_0x45afdd(0xe1))/0xa;if(_0xb6ceb4===_0x584e24)break;else _0xa82d1a['push'](_0xa82d1a['shift']());}catch(_0x443084){_0xa82d1a['push'](_0xa82d1a['shift']());}}}(a58_0xccec,0x98cea));function a58_0x1628(_0x2e1988,_0x3ba095){_0x2e1988=_0x2e1988-0xdd;const _0xccec0a=a58_0xccec();let _0x16283a=_0xccec0a[_0x2e1988];return _0x16283a;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a58_0xccec(){const _0x16b43b=['16549910AKwbpM','6105554OBflHO','44AVyogP','305615peNHzH','16ZMNweM','1175864OxbcZu','49927aXJZQT','6rjcKxU','3813690mHzlRz','4644819QfSZRR'];a58_0xccec=function(){return _0x16b43b;};return a58_0xccec();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a59_0x39f1ed=a59_0x28dd;(function(_0xa54616,_0x17b413){const _0x984c32=a59_0x28dd,_0x2f71a7=_0xa54616();while(!![]){try{const _0x49a876=parseInt(_0x984c32(0xa5))/0x1*(-parseInt(_0x984c32(0x7b))/0x2)+-parseInt(_0x984c32(0x81))/0x3*(parseInt(_0x984c32(0x85))/0x4)+-parseInt(_0x984c32(0xb8))/0x5*(parseInt(_0x984c32(0xba))/0x6)+-parseInt(_0x984c32(0x95))/0x7*(parseInt(_0x984c32(0xa7))/0x8)+parseInt(_0x984c32(0x9b))/0x9+-parseInt(_0x984c32(0x92))/0xa*(-parseInt(_0x984c32(0x78))/0xb)+parseInt(_0x984c32(0xa1))/0xc;if(_0x49a876===_0x17b413)break;else _0x2f71a7['push'](_0x2f71a7['shift']());}catch(_0x51edc6){_0x2f71a7['push'](_0x2f71a7['shift']());}}}(a59_0x50ea,0x94919));function a59_0x50ea(){const _0x11cdb4=['log','major','error','minor','cwd','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','10ASqunh','write','2197908luiOIS','toString','skipped','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Install\x20a\x20specific\x20CLI\x20version','validation','json','latest','Unable\x20to\x20resolve\x20','stderr','trim','11mFVLrX','update','Already\x20on\x20requested\x20version\x20(v','2iLiLYX','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Checking\x20npm\x20dist-tags...','stdout','str','warn','468pJafSv','=1).','match','unknown','3644RXRvWi','Update\x20failed:\x20','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','/-/package/','beta','string','Current\x20version:\x20','length','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','flag','run','bool','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','11348810dYzAFE','Already\x20up\x20to\x20date\x20(v','pipe','14NeiMCw','Version\x20comparison\x20failed.','inherit','nonInteractive','prerelease','\x20CLI\x20from\x20npm','10600632Zucnnj','no-skills','entries','args','boolean','fromEntries','8805348fBgCYn','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','source','npm','555223PHmNNy','timeout','4031984JTGBdT','skills','message','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Invalid\x20version:\x20','/dist-tags','patch','filter','Updating\x20','version','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.'];a59_0x50ea=function(){return _0x11cdb4;};return a59_0x50ea();}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':a59_0x39f1ed(0xc1),'type':a59_0x39f1ed(0x9f),'description':a59_0x39f1ed(0xa2),'default':![]},{'name':a59_0x39f1ed(0x89),'type':a59_0x39f1ed(0x9f),'description':a59_0x39f1ed(0xbd),'default':![]},{'name':a59_0x39f1ed(0xb0),'type':a59_0x39f1ed(0x8a),'description':a59_0x39f1ed(0xbe)},{'name':a59_0x39f1ed(0x9c),'type':a59_0x39f1ed(0x9f),'description':a59_0x39f1ed(0x87),'default':![]},{'name':a59_0x39f1ed(0xa8),'type':'boolean','description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0xf2dd44){const _0x50ff84=a59_0x39f1ed,_0x4dc568=_0xf2dd44['trim']()[_0x50ff84(0x83)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4dc568)return null;return{'major':Number(_0x4dc568[0x1]),'minor':Number(_0x4dc568[0x2]),'patch':Number(_0x4dc568[0x3]),'prerelease':_0x4dc568[0x4]};}function compareSemver(_0x124e16,_0x4776c9){const _0x21f785=a59_0x39f1ed,_0x1c758a=parseSemver(_0x124e16),_0x535da6=parseSemver(_0x4776c9);if(!_0x1c758a||!_0x535da6)throw CliErrors[_0x21f785(0xbf)](_0x21f785(0x96),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x4340bd of[_0x21f785(0xb3),_0x21f785(0xb5),_0x21f785(0xad)]){if(_0x1c758a[_0x4340bd]<_0x535da6[_0x4340bd])return-0x1;if(_0x1c758a[_0x4340bd]>_0x535da6[_0x4340bd])return 0x1;}if(!_0x1c758a[_0x21f785(0x99)]&&!_0x535da6[_0x21f785(0x99)])return 0x0;if(!_0x1c758a[_0x21f785(0x99)])return 0x1;if(!_0x535da6[_0x21f785(0x99)])return-0x1;if(_0x1c758a['prerelease']===_0x535da6[_0x21f785(0x99)])return 0x0;return _0x1c758a[_0x21f785(0x99)]<_0x535da6[_0x21f785(0x99)]?-0x1:0x1;}function getRequestedVersion(_0x19adc2){const _0x127e5d=a59_0x39f1ed,_0x52ea9d=_0x19adc2[_0x127e5d(0x7f)](_0x127e5d(0xb0))[_0x127e5d(0x77)]();if(_0x52ea9d)return _0x52ea9d;return String(_0x19adc2[_0x127e5d(0x9e)]?.[0x0]??'')[_0x127e5d(0x77)]();}function shouldSkipCliBuiltInSkill(_0x3a5c1f){const _0x572901=a59_0x39f1ed;return _0x3a5c1f['bool'](_0x572901(0x9c))||_0x3a5c1f[_0x572901(0x8e)](_0x572901(0xa8))===![];}function a59_0x28dd(_0xfc0857,_0x109e96){_0xfc0857=_0xfc0857-0x76;const _0x50ea7c=a59_0x50ea();let _0x28ddf9=_0x50ea7c[_0xfc0857];return _0x28ddf9;}async function validateUpdateFlags(_0x2ef695){const _0x500f90=a59_0x39f1ed,_0x4f15d7=getRequestedVersion(_0x2ef695),_0x32a90d=[_0x2ef695[_0x500f90(0x90)](_0x500f90(0xc1))?_0x500f90(0xc1):'',_0x2ef695['bool'](_0x500f90(0x89))?_0x500f90(0x89):'',_0x4f15d7?_0x500f90(0xb0):''][_0x500f90(0xae)](Boolean);if(_0x32a90d[_0x500f90(0x8c)]>0x1)throw CliErrors[_0x500f90(0xbf)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x500f90(0x7c));if(_0x4f15d7&&!parseSemver(_0x4f15d7))throw CliErrors['validation'](_0x500f90(0xab)+_0x4f15d7,_0x500f90(0xb1));}async function fetchNpmDistTags(){const _0x368d08=a59_0x39f1ed;try{const _0x1e85f6=NPM_REGISTRY_BASE_URL+_0x368d08(0x88)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x368d08(0xac),_0x9cae30=await fetch(_0x1e85f6,{'signal':AbortSignal[_0x368d08(0xa6)](0x2710)});if(!_0x9cae30['ok'])return null;const _0x48fc13=await _0x9cae30[_0x368d08(0xc0)]();if(!_0x48fc13||typeof _0x48fc13!=='object')return null;return Object[_0x368d08(0xa0)](Object[_0x368d08(0x9d)](_0x48fc13)[_0x368d08(0xae)](([,_0x54ad6d])=>typeof _0x54ad6d===_0x368d08(0x8a)&&_0x54ad6d['trim']())['map'](([_0x5d9f1b,_0x44b307])=>[_0x5d9f1b,String(_0x44b307)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x2d13c8){const _0x1a5597=a59_0x39f1ed,_0x521644=getRequestedVersion(_0x2d13c8);if(_0x521644)return{'version':_0x521644,'source':_0x1a5597(0xb0)};const _0x2c0618=_0x2d13c8[_0x1a5597(0x90)](_0x1a5597(0x89))?_0x1a5597(0x89):'latest',_0x4c9b90=await fetchNpmDistTags(),_0x3f152d=_0x4c9b90?.[_0x2c0618];if(!_0x3f152d)return null;return{'version':_0x3f152d,'source':_0x2c0618};}function shouldInstallTarget(_0x3046f5,_0x391916){const _0x24917e=a59_0x39f1ed,_0x5754f4=compareSemver(_0x3046f5,_0x391916[_0x24917e(0xb0)]);if(_0x391916['source']===_0x24917e(0xb0))return _0x5754f4!==0x0;return _0x5754f4<0x0;}function installCliPackage(_0xf3cbd5,_0x124dd1){const _0x367e22=a59_0x39f1ed,_0x34e91f=resolveNpmBin(_0x367e22(0xa4)),_0x3edfed=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf3cbd5];console[_0x367e22(0xb2)]('*\x20'+[_0x34e91f,..._0x3edfed]['join']('\x20'));const _0x4e7669=spawnSync(_0x34e91f,_0x3edfed,{'cwd':process[_0x367e22(0xb6)](),'stdio':_0x124dd1?_0x367e22(0x94):_0x367e22(0x97),'env':process.env,'shell':![]});if(_0x4e7669['status']===0x0)return{'ok':!![]};let _0x3e6c48=_0x4e7669[_0x367e22(0xb4)]?.[_0x367e22(0xa9)]||'exit\x20'+(_0x4e7669['status']??'unknown');if(_0x124dd1){const _0x5892ba=_0x4e7669[_0x367e22(0x76)]?_0x4e7669[_0x367e22(0x76)][_0x367e22(0xbb)]()[_0x367e22(0x77)]():'',_0x118448=_0x4e7669[_0x367e22(0x7e)]?_0x4e7669[_0x367e22(0x7e)][_0x367e22(0xbb)]()[_0x367e22(0x77)]():'';if(_0x5892ba)_0x3e6c48=_0x5892ba;else{if(_0x118448)_0x3e6c48=_0x118448;}}return{'ok':![],'error':_0x3e6c48};}async function installCliBuiltInSkill(_0x57be64){const _0x3188bd=a59_0x39f1ed;console[_0x3188bd(0xb2)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x238562=runNpxSkillsAddGlobal(process[_0x3188bd(0xb6)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x57be64?_0x3188bd(0x94):_0x3188bd(0x97)});if(_0x238562[_0x3188bd(0xbc)]){console['log']('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x3188bd(0x82));return;}if(_0x238562['ok']){console[_0x3188bd(0xb2)](_0x3188bd(0x8d));return;}console[_0x3188bd(0x80)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x238562[_0x3188bd(0xb4)]||_0x3188bd(0x84))),console[_0x3188bd(0xb2)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x35f54b){const _0x271aff=a59_0x39f1ed;await validateUpdateFlags(_0x35f54b);const _0x40068f=getCliVersion();console[_0x271aff(0xb2)](_0x271aff(0x8b)+_0x40068f),console['log'](_0x271aff(0x7d));const _0x59618b=await resolveTargetVersion(_0x35f54b);if(!_0x59618b){const _0x1991f8=_0x35f54b[_0x271aff(0x90)](_0x271aff(0x89))?_0x271aff(0x89):'latest',_0x593574=_0x271aff(0xc2)+_0x1991f8+'\x20version\x20from\x20npm.';return console[_0x271aff(0x80)](_0x593574),console[_0x271aff(0xb2)](_0x271aff(0xaa)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1991f8),{'ok':![]};}if(!shouldInstallTarget(_0x40068f,_0x59618b)){const _0x5a67f3=_0x59618b[_0x271aff(0xa3)]===_0x271aff(0xb0)?_0x271aff(0x7a)+_0x59618b[_0x271aff(0xb0)]+').':_0x271aff(0x93)+_0x59618b[_0x271aff(0xb0)]+').';return console[_0x271aff(0xb2)](_0x5a67f3),shouldSkipCliBuiltInSkill(_0x35f54b)?console[_0x271aff(0xb2)](_0x271aff(0xb7)):await installCliBuiltInSkill(_0x35f54b[_0x271aff(0x98)]),{'ok':!![]};}console[_0x271aff(0xb2)](_0x271aff(0xaf)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x40068f+'\x20->\x20'+_0x59618b[_0x271aff(0xb0)]);const _0x56bc9d=installCliPackage(_0x59618b[_0x271aff(0xb0)],_0x35f54b[_0x271aff(0x98)]);if(!_0x56bc9d['ok']){const _0x7e8fca=_0x271aff(0x86)+(_0x56bc9d[_0x271aff(0xb4)]||'unknown');return console['error'](_0x7e8fca),console[_0x271aff(0xb2)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x59618b['version']),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x59618b[_0x271aff(0xb0)]+'.'),console[_0x271aff(0xb2)](_0x271aff(0x91)),shouldSkipCliBuiltInSkill(_0x35f54b)?console[_0x271aff(0xb2)](_0x271aff(0xb7)):await installCliBuiltInSkill(_0x35f54b[_0x271aff(0x98)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x39f1ed(0x79),'command':a59_0x39f1ed(0x8f),'description':'Update\x20'+CLI_BIN_NAME+a59_0x39f1ed(0x9a),'risk':a59_0x39f1ed(0xb9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a59_0x558648=a59_0x5cb2;(function(_0x4857c3,_0x492342){const _0x5eb26a=a59_0x5cb2,_0xeb7ba0=_0x4857c3();while(!![]){try{const _0xb181f5=parseInt(_0x5eb26a(0x1fd))/0x1+-parseInt(_0x5eb26a(0x1eb))/0x2+parseInt(_0x5eb26a(0x1ec))/0x3+-parseInt(_0x5eb26a(0x1f5))/0x4*(-parseInt(_0x5eb26a(0x1cb))/0x5)+-parseInt(_0x5eb26a(0x1f1))/0x6+parseInt(_0x5eb26a(0x1c5))/0x7+-parseInt(_0x5eb26a(0x1e1))/0x8;if(_0xb181f5===_0x492342)break;else _0xeb7ba0['push'](_0xeb7ba0['shift']());}catch(_0x2e14bb){_0xeb7ba0['push'](_0xeb7ba0['shift']());}}}(a59_0x4c9d,0x2676a));import{spawnSync}from'node:child_process';function a59_0x4c9d(){const _0x2efac4=['filter','fromEntries','1635025weHxeM','major','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Checking\x20npm\x20dist-tags...','timeout','stdout','50ooyNLz','unknown','Invalid\x20version:\x20','match','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','install','warn','version','pipe','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','beta','str','status','run','validation','join','Update\x20failed:\x20','message','npm','update','json','1134344Rgcmqg','bool','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','entries','source','prerelease','string','boolean','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20version\x20from\x20npm.','513200QVvmdr','446412KtzWsU','length','log','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','428166lqiFrE','stderr','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','10004XiJwFs','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Already\x20on\x20requested\x20version\x20(v','error','flag','args','\x20->\x20','map','219911LumjqP','no-skills','skills','minor','\x20CLI\x20from\x20npm','toString','Version\x20comparison\x20failed.','cwd','inherit','/dist-tags','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','trim','latest'];a59_0x4c9d=function(){return _0x2efac4;};return a59_0x4c9d();}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':a59_0x558648(0x1c2),'type':a59_0x558648(0x1e8),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a59_0x558648(0x1e8),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a59_0x558648(0x1d3),'type':a59_0x558648(0x1e7),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a59_0x558648(0x1fe),'type':a59_0x558648(0x1e8),'description':a59_0x558648(0x1d5),'default':![]},{'name':a59_0x558648(0x1ff),'type':'boolean','description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x27dca0){const _0x1861e1=a59_0x558648,_0x1cace0=_0x27dca0[_0x1861e1(0x1c1)]()[_0x1861e1(0x1ce)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1cace0)return null;return{'major':Number(_0x1cace0[0x1]),'minor':Number(_0x1cace0[0x2]),'patch':Number(_0x1cace0[0x3]),'prerelease':_0x1cace0[0x4]};}function compareSemver(_0x112c2c,_0x591d10){const _0x3131bd=a59_0x558648,_0x53e74e=parseSemver(_0x112c2c),_0x326571=parseSemver(_0x591d10);if(!_0x53e74e||!_0x326571)throw CliErrors[_0x3131bd(0x1da)](_0x3131bd(0x1bc),_0x3131bd(0x1c0));for(const _0x59814a of[_0x3131bd(0x1c6),_0x3131bd(0x200),'patch']){if(_0x53e74e[_0x59814a]<_0x326571[_0x59814a])return-0x1;if(_0x53e74e[_0x59814a]>_0x326571[_0x59814a])return 0x1;}if(!_0x53e74e[_0x3131bd(0x1e6)]&&!_0x326571['prerelease'])return 0x0;if(!_0x53e74e[_0x3131bd(0x1e6)])return 0x1;if(!_0x326571[_0x3131bd(0x1e6)])return-0x1;if(_0x53e74e[_0x3131bd(0x1e6)]===_0x326571[_0x3131bd(0x1e6)])return 0x0;return _0x53e74e[_0x3131bd(0x1e6)]<_0x326571[_0x3131bd(0x1e6)]?-0x1:0x1;}function getRequestedVersion(_0x3cffbe){const _0x5310f8=a59_0x558648,_0x416c99=_0x3cffbe[_0x5310f8(0x1d7)](_0x5310f8(0x1d3))[_0x5310f8(0x1c1)]();if(_0x416c99)return _0x416c99;return String(_0x3cffbe[_0x5310f8(0x1fa)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x12f881){const _0x12cb85=a59_0x558648;return _0x12f881[_0x12cb85(0x1e2)](_0x12cb85(0x1fe))||_0x12f881[_0x12cb85(0x1f9)](_0x12cb85(0x1ff))===![];}function a59_0x5cb2(_0x435fef,_0x4e5ff2){_0x435fef=_0x435fef-0x1bb;const _0x4c9d59=a59_0x4c9d();let _0x5cb2a5=_0x4c9d59[_0x435fef];return _0x5cb2a5;}async function validateUpdateFlags(_0x3e5808){const _0x4355c3=a59_0x558648,_0x46be60=getRequestedVersion(_0x3e5808),_0x3f5bff=[_0x3e5808['bool'](_0x4355c3(0x1c2))?_0x4355c3(0x1c2):'',_0x3e5808['bool'](_0x4355c3(0x1d6))?'beta':'',_0x46be60?'version':'']['filter'](Boolean);if(_0x3f5bff[_0x4355c3(0x1ed)]>0x1)throw CliErrors[_0x4355c3(0x1da)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x4355c3(0x1f4));if(_0x46be60&&!parseSemver(_0x46be60))throw CliErrors[_0x4355c3(0x1da)](_0x4355c3(0x1cd)+_0x46be60,_0x4355c3(0x1f6));}async function fetchNpmDistTags(){const _0x38829f=a59_0x558648;try{const _0x21d26d=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x38829f(0x1bf),_0xf459aa=await fetch(_0x21d26d,{'signal':AbortSignal[_0x38829f(0x1c9)](0x2710)});if(!_0xf459aa['ok'])return null;const _0x250089=await _0xf459aa[_0x38829f(0x1e0)]();if(!_0x250089||typeof _0x250089!=='object')return null;return Object[_0x38829f(0x1c4)](Object[_0x38829f(0x1e4)](_0x250089)[_0x38829f(0x1c3)](([,_0x1486fe])=>typeof _0x1486fe===_0x38829f(0x1e7)&&_0x1486fe[_0x38829f(0x1c1)]())[_0x38829f(0x1fc)](([_0x13633a,_0x5f1b29])=>[_0x13633a,String(_0x5f1b29)[_0x38829f(0x1c1)]()]));}catch{return null;}}async function resolveTargetVersion(_0x90a2df){const _0x2f74ad=a59_0x558648,_0x25201a=getRequestedVersion(_0x90a2df);if(_0x25201a)return{'version':_0x25201a,'source':'version'};const _0x58b8c1=_0x90a2df['bool'](_0x2f74ad(0x1d6))?_0x2f74ad(0x1d6):_0x2f74ad(0x1c2),_0x40cc28=await fetchNpmDistTags(),_0x261212=_0x40cc28?.[_0x58b8c1];if(!_0x261212)return null;return{'version':_0x261212,'source':_0x58b8c1};}function shouldInstallTarget(_0x196da1,_0x146565){const _0x323e06=a59_0x558648,_0x30565c=compareSemver(_0x196da1,_0x146565[_0x323e06(0x1d3)]);if(_0x146565[_0x323e06(0x1e5)]===_0x323e06(0x1d3))return _0x30565c!==0x0;return _0x30565c<0x0;}function installCliPackage(_0x30d2fb,_0xb4f4e1){const _0x484fd3=a59_0x558648,_0x16eaa7=resolveNpmBin(_0x484fd3(0x1de)),_0x2c7a09=[_0x484fd3(0x1d1),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x30d2fb];console[_0x484fd3(0x1ee)]('*\x20'+[_0x16eaa7,..._0x2c7a09][_0x484fd3(0x1db)]('\x20'));const _0x1f0df6=spawnSync(_0x16eaa7,_0x2c7a09,{'cwd':process[_0x484fd3(0x1bd)](),'stdio':_0xb4f4e1?'pipe':_0x484fd3(0x1be),'env':process.env,'shell':![]});if(_0x1f0df6[_0x484fd3(0x1d8)]===0x0)return{'ok':!![]};let _0x4a1bcc=_0x1f0df6[_0x484fd3(0x1f8)]?.[_0x484fd3(0x1dd)]||'exit\x20'+(_0x1f0df6[_0x484fd3(0x1d8)]??_0x484fd3(0x1cc));if(_0xb4f4e1){const _0x15bafa=_0x1f0df6[_0x484fd3(0x1f2)]?_0x1f0df6[_0x484fd3(0x1f2)][_0x484fd3(0x1bb)]()['trim']():'',_0x3cdc4a=_0x1f0df6[_0x484fd3(0x1ca)]?_0x1f0df6[_0x484fd3(0x1ca)][_0x484fd3(0x1bb)]()['trim']():'';if(_0x15bafa)_0x4a1bcc=_0x15bafa;else{if(_0x3cdc4a)_0x4a1bcc=_0x3cdc4a;}}return{'ok':![],'error':_0x4a1bcc};}async function installCliBuiltInSkill(_0x5b5646){const _0x441028=a59_0x558648;console[_0x441028(0x1ee)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x331564=runNpxSkillsAddGlobal(process[_0x441028(0x1bd)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x5b5646?_0x441028(0x1d4):_0x441028(0x1be)});if(_0x331564['skipped']){console[_0x441028(0x1ee)](_0x441028(0x1c7)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x331564['ok']){console[_0x441028(0x1ee)](_0x441028(0x1f0));return;}console[_0x441028(0x1d2)](_0x441028(0x1ef)+(_0x331564[_0x441028(0x1f8)]||_0x441028(0x1cc))),console['log'](_0x441028(0x1d0));}async function execute(_0x5e106e){const _0x8f7330=a59_0x558648;await validateUpdateFlags(_0x5e106e);const _0x20a38b=getCliVersion();console['log']('Current\x20version:\x20'+_0x20a38b),console['log'](_0x8f7330(0x1c8));const _0x506f35=await resolveTargetVersion(_0x5e106e);if(!_0x506f35){const _0x5e2db5=_0x5e106e[_0x8f7330(0x1e2)](_0x8f7330(0x1d6))?_0x8f7330(0x1d6):'latest',_0x5bf591='Unable\x20to\x20resolve\x20'+_0x5e2db5+_0x8f7330(0x1ea);return console['warn'](_0x5bf591),console[_0x8f7330(0x1ee)](_0x8f7330(0x1e9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5e2db5),{'ok':![]};}if(!shouldInstallTarget(_0x20a38b,_0x506f35)){const _0x11356f=_0x506f35[_0x8f7330(0x1e5)]===_0x8f7330(0x1d3)?_0x8f7330(0x1f7)+_0x506f35['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x506f35['version']+').';return console[_0x8f7330(0x1ee)](_0x11356f),shouldSkipCliBuiltInSkill(_0x5e106e)?console['log'](_0x8f7330(0x1e3)):await installCliBuiltInSkill(_0x5e106e['nonInteractive']),{'ok':!![]};}console[_0x8f7330(0x1ee)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x20a38b+_0x8f7330(0x1fb)+_0x506f35[_0x8f7330(0x1d3)]);const _0x499492=installCliPackage(_0x506f35[_0x8f7330(0x1d3)],_0x5e106e['nonInteractive']);if(!_0x499492['ok']){const _0xb06992=_0x8f7330(0x1dc)+(_0x499492[_0x8f7330(0x1f8)]||_0x8f7330(0x1cc));return console[_0x8f7330(0x1f8)](_0xb06992),console[_0x8f7330(0x1ee)](_0x8f7330(0x1cf)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x506f35[_0x8f7330(0x1d3)]),{'ok':![]};}return console[_0x8f7330(0x1ee)]('Updated\x20to\x20v'+_0x506f35['version']+'.'),console[_0x8f7330(0x1ee)](_0x8f7330(0x1f3)),shouldSkipCliBuiltInSkill(_0x5e106e)?console['log'](_0x8f7330(0x1e3)):await installCliBuiltInSkill(_0x5e106e['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a59_0x558648(0x1df),'command':a59_0x558648(0x1d9),'description':'Update\x20'+CLI_BIN_NAME+a59_0x558648(0x201),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a60_0x1bb445=a60_0x3d5e;(function(_0x357281,_0x53a369){const _0x513fbb=a60_0x3d5e,_0x583397=_0x357281();while(!![]){try{const _0x2e7286=-parseInt(_0x513fbb(0x100))/0x1+parseInt(_0x513fbb(0xf1))/0x2*(-parseInt(_0x513fbb(0xdb))/0x3)+-parseInt(_0x513fbb(0xd0))/0x4*(parseInt(_0x513fbb(0x103))/0x5)+parseInt(_0x513fbb(0xee))/0x6+-parseInt(_0x513fbb(0xfb))/0x7*(parseInt(_0x513fbb(0xde))/0x8)+-parseInt(_0x513fbb(0xd8))/0x9+parseInt(_0x513fbb(0xe4))/0xa;if(_0x2e7286===_0x53a369)break;else _0x583397['push'](_0x583397['shift']());}catch(_0x57135b){_0x583397['push'](_0x583397['shift']());}}}(a60_0x1023,0xcbf1b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a60_0x1bb445(0xf6),'type':'string','description':a60_0x1bb445(0x101)},{'name':a60_0x1bb445(0xd9),'type':a60_0x1bb445(0xfe),'description':a60_0x1bb445(0xea)},{'name':a60_0x1bb445(0x10a),'type':a60_0x1bb445(0xfe),'description':a60_0x1bb445(0xd5),'enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x1bb445(0x109),'type':a60_0x1bb445(0xdd),'description':a60_0x1bb445(0xfa),'default':![]}];function a60_0x1023(){const _0x1780da=['envName','App\x20code\x20to\x20bind\x20directly','validation','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','shouldWriteEnv','3251382fouwvC','workspace','Missing\x20workspace\x20app\x20selector.','35690nkoVWR','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','filter','map','write','app','\x22.\x20Allowed:\x20','Run\x20`','defaultApp','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','2692739JaEuuU','../../core/api-client.js','object','string','Invalid\x20env\x20\x22','972997tFpPSN','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20workspace\x20','773910MrvXvr','trim','project','appName','use','../../commands/app/remote-source.js','yes','env','\x20--appcode\x20<code>\x20[--env\x20daily]','workspace\x20','8kzuZGB','Available\x20apps:\x20','\x22\x20not\x20found.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','authRequired','Target\x20environment','\x0aDefault\x20app:\x20','accessKey','5481450mYfuaM','appcode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','6nPhuBn','isArray','boolean','8NZMUEX','length','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Usage:\x20','join','init','26054360vQnjcg','\x0aEnv:\x20','str','apps','command'];a60_0x1023=function(){return _0x1780da;};return a60_0x1023();}async function executeWorkspaceUse(_0x23836e,_0x221207){const _0x454fb4=a60_0x1bb445,_0x1555de=_0x23836e['str'](_0x454fb4(0xf6))['trim'](),_0x24cd5b=_0x23836e[_0x454fb4(0xe6)](_0x454fb4(0xd9))[_0x454fb4(0x104)](),_0x2d517b=_0x23836e[_0x454fb4(0xe6)](_0x454fb4(0x10a))['trim'](),_0x52cd57=resolveWorkspaceEnv(_0x2d517b||_0x23836e[_0x454fb4(0xe9)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x1555de&&!_0x24cd5b)throw CliErrors['validation'](_0x454fb4(0xf0),_0x454fb4(0xe1)+CLI_BIN_NAME+_0x454fb4(0x102)+_0x221207+_0x454fb4(0xd3)+CLI_BIN_NAME+_0x454fb4(0x102)+_0x221207+_0x454fb4(0xce));const _0x1d0a03=_0x24cd5b||await resolveRemoteAppCode({'command':_0x221207,'appName':_0x1555de,'env':_0x52cd57,'accessKey':_0x23836e[_0x454fb4(0xd7)]}),_0x208405=writeWorkspaceConfig({'command':_0x221207,'appName':_0x1555de,'appcode':_0x1d0a03,'env':_0x52cd57,'shouldWriteEnv':!!_0x2d517b,'accessKey':_0x23836e['accessKey']});return{'ok':!![],'data':{'configPath':_0x208405,'app':_0x1555de||null,'appcode':_0x1d0a03,'env':_0x2d517b?_0x52cd57:null,'accessKeyWritten':![],'command':_0x454fb4(0xcf)+_0x221207},'message':buildWorkspaceMessage(_0x208405,_0x1555de,_0x1d0a03,_0x2d517b?_0x52cd57:undefined)};}async function resolveRemoteAppCode(_0x1ec8a5){const _0x499d85=a60_0x1bb445;if(!_0x1ec8a5[_0x499d85(0xd7)])throw CliErrors[_0x499d85(0xd4)](_0x499d85(0xe0)+CLI_BIN_NAME+_0x499d85(0x102)+_0x1ec8a5[_0x499d85(0xe8)]+'.');const {setActiveAK:_0x19f5b5}=await import(_0x499d85(0xfc)),{getRemoteAppList:_0x1e852b}=await import(_0x499d85(0x108));_0x19f5b5(_0x1ec8a5['accessKey']);const _0x2a67f7=await _0x1e852b({'env':_0x1ec8a5[_0x499d85(0x10a)],'accessKey':_0x1ec8a5['accessKey'],'noCache':![]}),_0x4de448=findAppByName(_0x2a67f7['items'],_0x1ec8a5['appName']);if(_0x4de448&&!isRuntimeAccessibleApp(_0x4de448))throw runtimeInaccessibleAppError(_0x4de448,'\x22'+_0x1ec8a5[_0x499d85(0x106)]+'\x22');const _0xb53dec=_0x4de448?.['appCode']?.[_0x499d85(0x104)]();if(_0xb53dec)return _0xb53dec;const _0x4299c7=_0x2a67f7['items'][_0x499d85(0xf4)](_0x3c2a17=>_0x3c2a17['appName'])[_0x499d85(0xf3)](Boolean),_0x3064cb=_0x4299c7[_0x499d85(0xdf)]?_0x499d85(0xd1)+Array['from'](new Set(_0x4299c7))[_0x499d85(0xe2)](',\x20')+'.':_0x499d85(0xf8)+CLI_BIN_NAME+_0x499d85(0xda);throw CliErrors[_0x499d85(0xeb)]('App\x20\x22'+_0x1ec8a5[_0x499d85(0x106)]+_0x499d85(0xd2),_0x3064cb);}function writeWorkspaceConfig(_0x2e2e03){const _0x134e72=a60_0x1bb445,_0x57e2f6=resolveWriteConfigPath(_0x134e72(0x105)),_0x516fed=readConfigFile(_0x57e2f6);_0x2e2e03[_0x134e72(0xed)]&&(_0x516fed[_0x134e72(0x10a)]=_0x2e2e03[_0x134e72(0x10a)]);if(_0x2e2e03[_0x134e72(0x106)]){const _0x46135c=isRecord(_0x516fed[_0x134e72(0xe7)])?{..._0x516fed[_0x134e72(0xe7)]}:{},_0x188268=isRecord(_0x46135c[_0x2e2e03['appName']])?_0x46135c[_0x2e2e03[_0x134e72(0x106)]]:{};_0x46135c[_0x2e2e03[_0x134e72(0x106)]]={..._0x188268,'appcode':_0x2e2e03[_0x134e72(0xd9)]},_0x516fed[_0x134e72(0xe7)]=_0x46135c,_0x516fed[_0x134e72(0xf9)]=_0x2e2e03[_0x134e72(0x106)];if(_0x516fed[_0x134e72(0xf6)])delete _0x516fed[_0x134e72(0xf6)];return writeAndReturn(_0x57e2f6,_0x516fed);}_0x516fed[_0x134e72(0xd9)]=_0x2e2e03[_0x134e72(0xd9)];if(_0x516fed[_0x134e72(0xf6)])delete _0x516fed['app'];return writeAndReturn(_0x57e2f6,_0x516fed);}function a60_0x3d5e(_0x40a7a3,_0x4128dc){_0x40a7a3=_0x40a7a3-0xce;const _0x102340=a60_0x1023();let _0x3d5e3c=_0x102340[_0x40a7a3];return _0x3d5e3c;}function writeAndReturn(_0x2e8a03,_0x5668cf){return writeConfigFile(_0x2e8a03,_0x5668cf),_0x2e8a03;}function resolveWorkspaceEnv(_0x4db745){const _0x153283=a60_0x1bb445;if(RUNTIME_ENV_VALUES['includes'](_0x4db745))return _0x4db745;throw CliErrors[_0x153283(0xeb)](_0x153283(0xff)+_0x4db745+_0x153283(0xf7)+RUNTIME_ENV_VALUES[_0x153283(0xe2)](',\x20'));}function buildWorkspaceMessage(_0x1e976b,_0x9f9f0b,_0x1f6b6c,_0x4d3941){const _0x2843f9=a60_0x1bb445,_0x58f806=_0x9f9f0b?_0x9f9f0b+'\x20('+_0x1f6b6c+')':_0x1f6b6c,_0x704c22=_0x4d3941?_0x2843f9(0xe5)+_0x4d3941:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x1e976b+_0x2843f9(0xd6)+_0x58f806+_0x704c22+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x4f4f6f){const _0x2b81cc=a60_0x1bb445;return typeof _0x4f4f6f===_0x2b81cc(0xfd)&&_0x4f4f6f!==null&&!Array[_0x2b81cc(0xdc)](_0x4f4f6f);}function makeWorkspaceCommand(_0x48b82f){const _0x3df205=a60_0x1bb445;return{'service':_0x3df205(0xef),'command':_0x48b82f,'description':_0x48b82f===_0x3df205(0xe3)?_0x3df205(0xf2):_0x3df205(0xec),'risk':_0x3df205(0xf5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4531d7){return executeWorkspaceUse(_0x4531d7,_0x48b82f);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a60_0x1bb445(0x107))];
1
+ const a60_0x5955d0=a60_0x4d13;(function(_0x34f494,_0x32970a){const _0x313a5b=a60_0x4d13,_0x2d3419=_0x34f494();while(!![]){try{const _0xe47a2e=parseInt(_0x313a5b(0x17a))/0x1*(-parseInt(_0x313a5b(0x16f))/0x2)+-parseInt(_0x313a5b(0x16c))/0x3+-parseInt(_0x313a5b(0x175))/0x4+parseInt(_0x313a5b(0x154))/0x5+-parseInt(_0x313a5b(0x157))/0x6*(parseInt(_0x313a5b(0x152))/0x7)+-parseInt(_0x313a5b(0x155))/0x8+parseInt(_0x313a5b(0x156))/0x9;if(_0xe47a2e===_0x32970a)break;else _0x2d3419['push'](_0x2d3419['shift']());}catch(_0x4c9b92){_0x2d3419['push'](_0x2d3419['shift']());}}}(a60_0x3d4d,0xe708e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';function a60_0x3d4d(){const _0x3c396b=['../../commands/app/remote-source.js','string','appCode','accessKey','join','../../core/api-client.js','Invalid\x20env\x20\x22','defaultApp','appName','envName','\x20--appcode\x20<code>\x20[--env\x20daily]','map','boolean','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','3895962swYgbV','\x0aAccessKey:\x20not\x20written','filter','542cYRAfF','from','validation','authRequired','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','write','2155720lUJzuA','length','\x20workspace\x20','Target\x20environment','app','69hXewje','appcode','env','str','Available\x20apps:\x20','App\x20\x22','\x22\x20not\x20found.','trim','apps','command','\x0aEnv:\x20','Usage:\x20','21YnjHdl','project','7583400UwwFsx','13646272AlkLOQ','43247979amxVNz','3627252XZnvkd','yes','items','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','use','object'];a60_0x3d4d=function(){return _0x3c396b;};return a60_0x3d4d();}const WORKSPACE_USE_FLAGS=[{'name':'app','type':a60_0x5955d0(0x15e),'description':a60_0x5955d0(0x16a)},{'name':a60_0x5955d0(0x17b),'type':a60_0x5955d0(0x15e),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':a60_0x5955d0(0x15e),'description':a60_0x5955d0(0x178),'enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x5955d0(0x158),'type':a60_0x5955d0(0x169),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0xc1dad0,_0x3efb78){const _0x244885=a60_0x5955d0,_0x2d170c=_0xc1dad0[_0x244885(0x17d)](_0x244885(0x179))['trim'](),_0x3863a4=_0xc1dad0[_0x244885(0x17d)](_0x244885(0x17b))[_0x244885(0x14d)](),_0x4833fb=_0xc1dad0[_0x244885(0x17d)](_0x244885(0x17c))['trim'](),_0xb203cf=resolveWorkspaceEnv(_0x4833fb||_0xc1dad0[_0x244885(0x166)]||DEFAULT_CONFIG_VALUES[_0x244885(0x17c)]);if(!_0x2d170c&&!_0x3863a4)throw CliErrors[_0x244885(0x171)]('Missing\x20workspace\x20app\x20selector.',_0x244885(0x151)+CLI_BIN_NAME+_0x244885(0x177)+_0x3efb78+_0x244885(0x173)+CLI_BIN_NAME+_0x244885(0x177)+_0x3efb78+_0x244885(0x167));const _0x3d7dd5=_0x3863a4||await resolveRemoteAppCode({'command':_0x3efb78,'appName':_0x2d170c,'env':_0xb203cf,'accessKey':_0xc1dad0[_0x244885(0x160)]}),_0x6444d5=writeWorkspaceConfig({'command':_0x3efb78,'appName':_0x2d170c,'appcode':_0x3d7dd5,'env':_0xb203cf,'shouldWriteEnv':!!_0x4833fb,'accessKey':_0xc1dad0[_0x244885(0x160)]});return{'ok':!![],'data':{'configPath':_0x6444d5,'app':_0x2d170c||null,'appcode':_0x3d7dd5,'env':_0x4833fb?_0xb203cf:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x3efb78},'message':buildWorkspaceMessage(_0x6444d5,_0x2d170c,_0x3d7dd5,_0x4833fb?_0xb203cf:undefined)};}async function resolveRemoteAppCode(_0x257119){const _0x3438c4=a60_0x5955d0;if(!_0x257119[_0x3438c4(0x160)])throw CliErrors[_0x3438c4(0x172)](_0x3438c4(0x16b)+CLI_BIN_NAME+_0x3438c4(0x177)+_0x257119[_0x3438c4(0x14f)]+'.');const {setActiveAK:_0x9c4aa3}=await import(_0x3438c4(0x162)),{getRemoteAppList:_0x266a7e}=await import(_0x3438c4(0x15d));_0x9c4aa3(_0x257119[_0x3438c4(0x160)]);const _0x9d4849=await _0x266a7e({'env':_0x257119[_0x3438c4(0x17c)],'accessKey':_0x257119[_0x3438c4(0x160)],'noCache':![]}),_0x458f71=findAppByName(_0x9d4849[_0x3438c4(0x159)],_0x257119['appName']);if(_0x458f71&&!isRuntimeAccessibleApp(_0x458f71))throw runtimeInaccessibleAppError(_0x458f71,'\x22'+_0x257119[_0x3438c4(0x165)]+'\x22');const _0x2ded3b=_0x458f71?.[_0x3438c4(0x15f)]?.[_0x3438c4(0x14d)]();if(_0x2ded3b)return _0x2ded3b;const _0x24de21=_0x9d4849[_0x3438c4(0x159)][_0x3438c4(0x168)](_0x38226f=>_0x38226f[_0x3438c4(0x165)])[_0x3438c4(0x16e)](Boolean),_0x13af7d=_0x24de21[_0x3438c4(0x176)]?_0x3438c4(0x17e)+Array[_0x3438c4(0x170)](new Set(_0x24de21))[_0x3438c4(0x161)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x3438c4(0x171)](_0x3438c4(0x17f)+_0x257119['appName']+_0x3438c4(0x14c),_0x13af7d);}function writeWorkspaceConfig(_0x12c8d9){const _0x28c046=a60_0x5955d0,_0x5d1fb6=resolveWriteConfigPath(_0x28c046(0x153)),_0x18a456=readConfigFile(_0x5d1fb6);_0x12c8d9['shouldWriteEnv']&&(_0x18a456[_0x28c046(0x17c)]=_0x12c8d9[_0x28c046(0x17c)]);if(_0x12c8d9[_0x28c046(0x165)]){const _0x13cd84=isRecord(_0x18a456[_0x28c046(0x14e)])?{..._0x18a456[_0x28c046(0x14e)]}:{},_0x3cd72e=isRecord(_0x13cd84[_0x12c8d9[_0x28c046(0x165)]])?_0x13cd84[_0x12c8d9['appName']]:{};_0x13cd84[_0x12c8d9['appName']]={..._0x3cd72e,'appcode':_0x12c8d9['appcode']},_0x18a456[_0x28c046(0x14e)]=_0x13cd84,_0x18a456[_0x28c046(0x164)]=_0x12c8d9[_0x28c046(0x165)];if(_0x18a456[_0x28c046(0x179)])delete _0x18a456['app'];return writeAndReturn(_0x5d1fb6,_0x18a456);}_0x18a456['appcode']=_0x12c8d9[_0x28c046(0x17b)];if(_0x18a456['app'])delete _0x18a456['app'];return writeAndReturn(_0x5d1fb6,_0x18a456);}function writeAndReturn(_0x2405e3,_0x7fce06){return writeConfigFile(_0x2405e3,_0x7fce06),_0x2405e3;}function resolveWorkspaceEnv(_0x38665){const _0x417114=a60_0x5955d0;if(RUNTIME_ENV_VALUES['includes'](_0x38665))return _0x38665;throw CliErrors[_0x417114(0x171)](_0x417114(0x163)+_0x38665+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x417114(0x161)](',\x20'));}function buildWorkspaceMessage(_0x7706d2,_0x525227,_0x172de2,_0x4d3736){const _0x4af39e=a60_0x5955d0,_0x58acef=_0x525227?_0x525227+'\x20('+_0x172de2+')':_0x172de2,_0x30563d=_0x4d3736?_0x4af39e(0x150)+_0x4d3736:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x7706d2+'\x0aDefault\x20app:\x20'+_0x58acef+_0x30563d+_0x4af39e(0x16d);}function isRecord(_0x2eaf74){const _0x4adb74=a60_0x5955d0;return typeof _0x2eaf74===_0x4adb74(0x15c)&&_0x2eaf74!==null&&!Array['isArray'](_0x2eaf74);}function makeWorkspaceCommand(_0x2cc8d1){const _0x451074=a60_0x5955d0;return{'service':'workspace','command':_0x2cc8d1,'description':_0x2cc8d1==='init'?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x451074(0x15a),'risk':_0x451074(0x174),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x29419b){return executeWorkspaceUse(_0x29419b,_0x2cc8d1);}};}function a60_0x4d13(_0x14bde2,_0x2a024c){_0x14bde2=_0x14bde2-0x14c;const _0x3d4dec=a60_0x3d4d();let _0x4d1322=_0x3d4dec[_0x14bde2];return _0x4d1322;}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a60_0x5955d0(0x15b))];
@@ -1 +1 @@
1
- const a61_0x152757=a61_0x487a;(function(_0x5b9e2f,_0x133f27){const _0x302b4c=a61_0x487a,_0x356280=_0x5b9e2f();while(!![]){try{const _0x1550e5=parseInt(_0x302b4c(0x9e))/0x1+-parseInt(_0x302b4c(0x82))/0x2+-parseInt(_0x302b4c(0x96))/0x3*(parseInt(_0x302b4c(0x8f))/0x4)+parseInt(_0x302b4c(0x85))/0x5+parseInt(_0x302b4c(0x80))/0x6*(-parseInt(_0x302b4c(0x94))/0x7)+-parseInt(_0x302b4c(0x93))/0x8+parseInt(_0x302b4c(0x9b))/0x9*(parseInt(_0x302b4c(0x88))/0xa);if(_0x1550e5===_0x133f27)break;else _0x356280['push'](_0x356280['shift']());}catch(_0x348548){_0x356280['push'](_0x356280['shift']());}}}(a61_0x37e0,0x3ab65));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':a61_0x152757(0x97),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x152757(0x91)],'importable':!![]},'format':{'description':a61_0x152757(0x95),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a61_0x152757(0x92),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x152757(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a61_0x152757(0x81),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x152757(0x86),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x152757(0x98),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x152757(0x9a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x152757(0x8c)],'importable':!![]},'locale':{'description':a61_0x152757(0x99),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x152757(0x9f)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x152757(0x83)](CONFIG_FIELD_SCHEMAS)[a61_0x152757(0x84)](([,_0x159b37])=>_0x159b37[a61_0x152757(0x7f)])[a61_0x152757(0x8a)](([_0x6ccf77])=>_0x6ccf77));export const CONFIG_ENUM_VALUES=Object[a61_0x152757(0x8d)](Object[a61_0x152757(0x83)](CONFIG_FIELD_SCHEMAS)[a61_0x152757(0x84)](([,_0x3eca8e])=>_0x3eca8e[a61_0x152757(0x90)])[a61_0x152757(0x8a)](([_0x1d7df8,_0x316aa9])=>[_0x1d7df8,[..._0x316aa9[a61_0x152757(0x90)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x152757(0x83)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5dec96])=>_0x5dec96[a61_0x152757(0x8b)])['map'](([_0x37d148])=>_0x37d148);export function getConfigFieldSchema(_0x193da2){return CONFIG_FIELD_SCHEMAS[_0x193da2];}function a61_0x487a(_0x546e45,_0x148cbf){_0x546e45=_0x546e45-0x7f;const _0x37e036=a61_0x37e0();let _0x487a8c=_0x37e036[_0x546e45];return _0x487a8c;}export function getConfigEnumValues(_0x1a8d8f){return getConfigFieldSchema(_0x1a8d8f)?.['enumValues'];}export function getConfigDefaultValue(_0x27409f){const _0x311208=a61_0x152757;return getConfigFieldSchema(_0x27409f)?.[_0x311208(0x9d)];}export function isTopLevelConfigKey(_0x33f903){const _0x5f535c=a61_0x152757;return TOP_LEVEL_CONFIG_KEYS[_0x5f535c(0x87)](_0x33f903);}function a61_0x37e0(){const _0x281afd=['enumValues','env','Default\x20page\x20size','2244600jMDamA','2632yGqByz','Default\x20output\x20format','70392shWCSN','Target\x20environment','Override\x20SkillHub\x20domain','Locale','Access\x20key\x20(client-ak\x20auth)','36mOOyFT','Override\x20API\x20domain','defaultValue','307964WRoXOB','locale','cliSettableTopLevel','6924yhbBTI','Override\x20user\x20domain','482628zkShEk','entries','filter','2129450dyQDgu','Override\x20runtime\x20domain','has','1508020roEbAQ','Config\x20key.\x20Top-level:\x20','map','importable','riskLevel','fromEntries',';\x20local\x20alias:\x20apps.<alias>.appcode','24VrBXQp'];a61_0x37e0=function(){return _0x281afd;};return a61_0x37e0();}export function isLegacyCompatConfigKey(_0x407220){return getConfigFieldSchema(_0x407220)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2bc545){return[..._0x2bc545]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x11b784=a61_0x152757;return _0x11b784(0x89)+getTopLevelConfigKeySummary()+_0x11b784(0x8e);}export function buildAppProfileListFields(_0x5469d6){return{'env':_0x5469d6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a61_0x47c011=a61_0xad91;(function(_0x56cd45,_0x3cafb3){const _0x581641=a61_0xad91,_0x5e8a10=_0x56cd45();while(!![]){try{const _0x522288=-parseInt(_0x581641(0x161))/0x1*(parseInt(_0x581641(0x159))/0x2)+-parseInt(_0x581641(0x158))/0x3+parseInt(_0x581641(0x151))/0x4*(-parseInt(_0x581641(0x162))/0x5)+parseInt(_0x581641(0x170))/0x6*(-parseInt(_0x581641(0x16e))/0x7)+-parseInt(_0x581641(0x16c))/0x8+parseInt(_0x581641(0x163))/0x9*(-parseInt(_0x581641(0x154))/0xa)+-parseInt(_0x581641(0x16d))/0xb*(-parseInt(_0x581641(0x15e))/0xc);if(_0x522288===_0x3cafb3)break;else _0x5e8a10['push'](_0x5e8a10['shift']());}catch(_0x85baa1){_0x5e8a10['push'](_0x5e8a10['shift']());}}}(a61_0xb41f,0x989b2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a61_0xb41f(){const _0x18b80a=['743118WYTmig','map','44GYmpnm','importable','Locale','1820KIWhtR','Target\x20environment','Override\x20user\x20domain','Override\x20API\x20domain','3633549goeeYz','11942CFYoQz',';\x20local\x20alias:\x20apps.<alias>.appcode','format','Default\x20page\x20size','cliSettableTopLevel','276qWFYBb','Access\x20key\x20(client-ak\x20auth)','env','22cOYcQD','486090jiXQLt','39978peGIPT','Default\x20output\x20format','Config\x20key.\x20Top-level:\x20','locale','fromEntries','Override\x20runtime\x20domain','entries','Risk\x20level','enumValues','5693352uAtkFL','2238731bFYJlu','7QDSVBp','Override\x20SkillHub\x20domain'];a61_0xb41f=function(){return _0x18b80a;};return a61_0xb41f();}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a61_0x47c011(0x155),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x47c011(0x160)],'importable':!![]},'format':{'description':a61_0x47c011(0x164),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x47c011(0x15b)],'importable':!![]},'pageSize':{'description':a61_0x47c011(0x15c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x47c011(0x157),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a61_0x47c011(0x156),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x47c011(0x168),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x47c011(0x16f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x47c011(0x15f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x47c011(0x16a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a61_0x47c011(0x153),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x47c011(0x166)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x47c011(0x169)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x17bc94])=>_0x17bc94[a61_0x47c011(0x15d)])['map'](([_0xb4b691])=>_0xb4b691));export const CONFIG_ENUM_VALUES=Object[a61_0x47c011(0x167)](Object[a61_0x47c011(0x169)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xde84c0])=>_0xde84c0[a61_0x47c011(0x16b)])[a61_0x47c011(0x171)](([_0x3bf2ec,_0x2b5dd5])=>[_0x3bf2ec,[..._0x2b5dd5[a61_0x47c011(0x16b)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x47c011(0x169)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3fea1d])=>_0x3fea1d[a61_0x47c011(0x152)])[a61_0x47c011(0x171)](([_0x5df2e3])=>_0x5df2e3);export function getConfigFieldSchema(_0x10747e){return CONFIG_FIELD_SCHEMAS[_0x10747e];}export function getConfigEnumValues(_0x3e4aee){const _0x186c92=a61_0x47c011;return getConfigFieldSchema(_0x3e4aee)?.[_0x186c92(0x16b)];}export function getConfigDefaultValue(_0x1c33ba){return getConfigFieldSchema(_0x1c33ba)?.['defaultValue'];}export function isTopLevelConfigKey(_0x2e90af){return TOP_LEVEL_CONFIG_KEYS['has'](_0x2e90af);}export function isLegacyCompatConfigKey(_0x273d0d){return getConfigFieldSchema(_0x273d0d)?.['legacyCompatOnly']===!![];}function a61_0xad91(_0x3634a7,_0x3c214c){_0x3634a7=_0x3634a7-0x151;const _0xb41fd2=a61_0xb41f();let _0xad9153=_0xb41fd2[_0x3634a7];return _0xad9153;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3c5d7d){return[..._0x3c5d7d]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1b80b7=a61_0x47c011;return _0x1b80b7(0x165)+getTopLevelConfigKeySummary()+_0x1b80b7(0x15a);}export function buildAppProfileListFields(_0x46f16f){return{'env':_0x46f16f,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a62_0x2968(_0x224497,_0x256200){_0x224497=_0x224497-0x183;const _0x5b3c8d=a62_0x5b3c();let _0x296828=_0x5b3c8d[_0x224497];return _0x296828;}const a62_0x2445d9=a62_0x2968;(function(_0x475139,_0x5c4461){const _0x51ea72=a62_0x2968,_0x5b38c0=_0x475139();while(!![]){try{const _0x3f5a4b=-parseInt(_0x51ea72(0x188))/0x1*(-parseInt(_0x51ea72(0x18a))/0x2)+parseInt(_0x51ea72(0x18b))/0x3+parseInt(_0x51ea72(0x185))/0x4+parseInt(_0x51ea72(0x187))/0x5+-parseInt(_0x51ea72(0x18c))/0x6*(-parseInt(_0x51ea72(0x184))/0x7)+parseInt(_0x51ea72(0x189))/0x8+-parseInt(_0x51ea72(0x186))/0x9;if(_0x3f5a4b===_0x5c4461)break;else _0x5b38c0['push'](_0x5b38c0['shift']());}catch(_0x5d3484){_0x5b38c0['push'](_0x5b38c0['shift']());}}}(a62_0x5b3c,0xe7276));export const APP_PUBLISH_STATUS={'Published':a62_0x2445d9(0x18d),'Unpublished':a62_0x2445d9(0x183)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a62_0x5b3c(){const _0xcad1ce=['5113698xJyNoa','3966954FjZJYs','PUBLISHED','UNPUBLISH','14GfvRUa','119472EwZopZ','27968922syHarh','530775RlzfdQ','475393gyWPRq','3329312KmhtfJ','2YykBGm'];a62_0x5b3c=function(){return _0xcad1ce;};return a62_0x5b3c();}
1
+ const a62_0x468dc0=a62_0x46b0;(function(_0x53dd03,_0x3a5554){const _0xa13a91=a62_0x46b0,_0x561f37=_0x53dd03();while(!![]){try{const _0x3a436f=parseInt(_0xa13a91(0x113))/0x1*(-parseInt(_0xa13a91(0x115))/0x2)+parseInt(_0xa13a91(0x11d))/0x3+-parseInt(_0xa13a91(0x11c))/0x4+parseInt(_0xa13a91(0x116))/0x5*(parseInt(_0xa13a91(0x117))/0x6)+parseInt(_0xa13a91(0x114))/0x7+-parseInt(_0xa13a91(0x118))/0x8+parseInt(_0xa13a91(0x11a))/0x9;if(_0x3a436f===_0x3a5554)break;else _0x561f37['push'](_0x561f37['shift']());}catch(_0x474f64){_0x561f37['push'](_0x561f37['shift']());}}}(a62_0x2c5d,0xbea50));export const APP_PUBLISH_STATUS={'Published':a62_0x468dc0(0x11b),'Unpublished':a62_0x468dc0(0x112)};function a62_0x46b0(_0x5b0f78,_0x29d071){_0x5b0f78=_0x5b0f78-0x112;const _0x2c5d29=a62_0x2c5d();let _0x46b08e=_0x2c5d29[_0x5b0f78];return _0x46b08e;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x468dc0(0x119)];function a62_0x2c5d(){const _0x18bb5f=['2230905gCbghh','6StNdeJ','7168208wQuVlD','Published','17531235PISIFu','PUBLISHED','1321404TPQFzI','753000jKVZYD','UNPUBLISH','231331GexxLl','3631712PzSElz','10TCsvyi'];a62_0x2c5d=function(){return _0x18bb5f;};return a62_0x2c5d();}
@@ -1 +1 @@
1
- const a63_0x9eac37=a63_0xd517;function a63_0xd517(_0x5066b4,_0x78aaa5){_0x5066b4=_0x5066b4-0x1e6;const _0x8917bf=a63_0x8917();let _0xd51730=_0x8917bf[_0x5066b4];return _0xd51730;}(function(_0x44a5cd,_0x3bf42d){const _0xfe9f47=a63_0xd517,_0x50e8ba=_0x44a5cd();while(!![]){try{const _0x2d157e=parseInt(_0xfe9f47(0x1f0))/0x1+-parseInt(_0xfe9f47(0x1ea))/0x2*(-parseInt(_0xfe9f47(0x1e8))/0x3)+-parseInt(_0xfe9f47(0x1ed))/0x4*(-parseInt(_0xfe9f47(0x1f2))/0x5)+-parseInt(_0xfe9f47(0x1ee))/0x6*(parseInt(_0xfe9f47(0x1e9))/0x7)+-parseInt(_0xfe9f47(0x1ec))/0x8*(parseInt(_0xfe9f47(0x1f4))/0x9)+parseInt(_0xfe9f47(0x1f3))/0xa*(parseInt(_0xfe9f47(0x1e6))/0xb)+parseInt(_0xfe9f47(0x1eb))/0xc*(-parseInt(_0xfe9f47(0x1e7))/0xd);if(_0x2d157e===_0x3bf42d)break;else _0x50e8ba['push'](_0x50e8ba['shift']());}catch(_0xd7e635){_0x50e8ba['push'](_0x50e8ba['shift']());}}}(a63_0x8917,0x34e0b));export const AUTH_MODE={'ClientAk':a63_0x9eac37(0x1ef)};export function isAuthMode(_0x5db9c8){const _0x1b9b4d=a63_0x9eac37;return _0x5db9c8===AUTH_MODE[_0x1b9b4d(0x1f1)];}function a63_0x8917(){const _0x55fa87=['30idQqci','6111LVGTVr','742247kXJcXU','104FMIcKc','2517wFAiSy','1393VieYvz','762aVLDyC','97056PaUuqx','88POKslV','13536WsCvtr','8874ZnNFCc','client-ak','44071clhTdL','ClientAk','25OyQWbc'];a63_0x8917=function(){return _0x55fa87;};return a63_0x8917();}
1
+ (function(_0x3b5b5b,_0x2a737c){const _0x16a8da=a63_0x5687,_0xc17dfc=_0x3b5b5b();while(!![]){try{const _0x52dc30=parseInt(_0x16a8da(0x96))/0x1+-parseInt(_0x16a8da(0x95))/0x2+parseInt(_0x16a8da(0x99))/0x3*(-parseInt(_0x16a8da(0x9a))/0x4)+-parseInt(_0x16a8da(0x9b))/0x5+-parseInt(_0x16a8da(0x93))/0x6+parseInt(_0x16a8da(0x97))/0x7+parseInt(_0x16a8da(0x94))/0x8*(parseInt(_0x16a8da(0x92))/0x9);if(_0x52dc30===_0x2a737c)break;else _0xc17dfc['push'](_0xc17dfc['shift']());}catch(_0x5222c6){_0xc17dfc['push'](_0xc17dfc['shift']());}}}(a63_0x3299,0xceabf));function a63_0x3299(){const _0x4793cf=['9mQoyeC','5207340zirUmK','30938800vqiCwk','2771024ummfgV','1026303LuRDTO','3006528LiRZYV','ClientAk','1243146psaFrD','12NecbOU','4900410CYzxwo'];a63_0x3299=function(){return _0x4793cf;};return a63_0x3299();}function a63_0x5687(_0x5068bd,_0x5125b7){_0x5068bd=_0x5068bd-0x92;const _0x329913=a63_0x3299();let _0x568756=_0x329913[_0x5068bd];return _0x568756;}export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0xccc33e){const _0x1424f2=a63_0x5687;return _0xccc33e===AUTH_MODE[_0x1424f2(0x98)];}
@@ -1 +1 @@
1
- function a64_0x2ab1(){const _0x287b94=['Preview\x20operation\x20without\x20executing','global','55635JVDjyt','cliBinName','help','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','150ZvRnmk','non-interactive','fromEntries','clear','dry-run','appcode','Select\x20app\x20profile\x20by\x20name','app','188986WASqzg','23796qbKday','dryRun','Output\x20format','yes','Show\x20help','meowKey','1307RVGgbb','Environment','Override\x20appcode','104bBJjgk','687500ZwTFus','Alias\x20for\x20--non-interactive','json\x20|\x20pretty\x20|\x20compress','1513320ceqWah','sqlcode','Name\x20filter','Use\x20global\x20config\x20scope','148PhRPfH','type','name','Verbose\x20output','env','format','cliDisplayName','Skip\x20confirmation\x20for\x20high-risk\x20writes','string','production\x20|\x20development\x20|\x20daily','params','62630SRKyzf','156GLLsfJ','boolean','verbose','90QDxIhT','Force\x20non-interactive\x20mode\x20(CI)'];a64_0x2ab1=function(){return _0x287b94;};return a64_0x2ab1();}const a64_0x4aaf5f=a64_0x2de8;(function(_0x582163,_0x38b6aa){const _0xb5054f=a64_0x2de8,_0x10bef2=_0x582163();while(!![]){try{const _0x423495=-parseInt(_0xb5054f(0x1ad))/0x1*(-parseInt(_0xb5054f(0x187))/0x2)+parseInt(_0xb5054f(0x193))/0x3*(parseInt(_0xb5054f(0x1a7))/0x4)+parseInt(_0xb5054f(0x19a))/0x5*(-parseInt(_0xb5054f(0x19e))/0x6)+-parseInt(_0xb5054f(0x1a6))/0x7*(-parseInt(_0xb5054f(0x17f))/0x8)+parseInt(_0xb5054f(0x196))/0x9*(-parseInt(_0xb5054f(0x192))/0xa)+-parseInt(_0xb5054f(0x180))/0xb+-parseInt(_0xb5054f(0x183))/0xc;if(_0x423495===_0x38b6aa)break;else _0x10bef2['push'](_0x10bef2['shift']());}catch(_0x28be8a){_0x10bef2['push'](_0x10bef2['shift']());}}}(a64_0x2ab1,0x37929));import{PRODUCT_CONFIG}from'../constant/product.js';function a64_0x2de8(_0x34e7ad,_0x31f933){_0x34e7ad=_0x34e7ad-0x17f;const _0x2ab166=a64_0x2ab1();let _0x2de88e=_0x2ab166[_0x34e7ad];return _0x2de88e;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x4aaf5f(0x19b)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x4aaf5f(0x18d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x4aaf5f(0x1a3),'meowKey':a64_0x4aaf5f(0x1a3),'type':a64_0x4aaf5f(0x18f),'description':a64_0x4aaf5f(0x1af),'hint':'<code>'},{'name':a64_0x4aaf5f(0x1a5),'meowKey':a64_0x4aaf5f(0x1a5),'type':a64_0x4aaf5f(0x18f),'description':a64_0x4aaf5f(0x1a4),'hint':'<name>'},{'name':'env','meowKey':a64_0x4aaf5f(0x18b),'type':'string','description':a64_0x4aaf5f(0x1ae),'hint':a64_0x4aaf5f(0x190)},{'name':a64_0x4aaf5f(0x18c),'meowKey':'format','type':'string','description':a64_0x4aaf5f(0x1a9),'hint':a64_0x4aaf5f(0x182)},{'name':'jq','meowKey':'jq','type':a64_0x4aaf5f(0x18f),'description':a64_0x4aaf5f(0x19d),'hint':'<expr>'},{'name':a64_0x4aaf5f(0x1a2),'meowKey':a64_0x4aaf5f(0x1a8),'type':'boolean','description':a64_0x4aaf5f(0x198)},{'name':'yes','meowKey':a64_0x4aaf5f(0x1aa),'type':'boolean','description':a64_0x4aaf5f(0x18e)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a64_0x4aaf5f(0x197)},{'name':a64_0x4aaf5f(0x199),'meowKey':'global','type':a64_0x4aaf5f(0x194),'description':a64_0x4aaf5f(0x186)},{'name':'ci','meowKey':'ci','type':a64_0x4aaf5f(0x194),'description':a64_0x4aaf5f(0x181),'hidden':!![]},{'name':a64_0x4aaf5f(0x19c),'meowKey':a64_0x4aaf5f(0x19c),'type':'boolean','description':a64_0x4aaf5f(0x1ab)},{'name':'id','meowKey':'id','type':a64_0x4aaf5f(0x18f),'description':'Record\x20ID','hidden':!![]},{'name':a64_0x4aaf5f(0x189),'meowKey':a64_0x4aaf5f(0x189),'type':a64_0x4aaf5f(0x18f),'description':a64_0x4aaf5f(0x185),'hidden':!![]},{'name':a64_0x4aaf5f(0x184),'meowKey':a64_0x4aaf5f(0x184),'type':a64_0x4aaf5f(0x18f),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a64_0x4aaf5f(0x191),'type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a64_0x4aaf5f(0x195),'type':a64_0x4aaf5f(0x194),'description':a64_0x4aaf5f(0x18a),'hidden':!![]},{'name':a64_0x4aaf5f(0x1a1),'meowKey':'clear','type':a64_0x4aaf5f(0x194),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a64_0x4aaf5f(0x1a3),a64_0x4aaf5f(0x1a5),a64_0x4aaf5f(0x18b),'format','jq',a64_0x4aaf5f(0x1a2),'yes',a64_0x4aaf5f(0x19f),'ci']);export function buildMeowFlags(){const _0x3ce7c7=a64_0x4aaf5f;return Object[_0x3ce7c7(0x1a0)](GLOBAL_FLAGS['map'](_0x411304=>[_0x411304[_0x3ce7c7(0x1ac)],{'type':_0x411304[_0x3ce7c7(0x188)]}]));}
1
+ const a64_0x5c6071=a64_0x329b;(function(_0x5262c8,_0x452f88){const _0x7a47df=a64_0x329b,_0x160e0b=_0x5262c8();while(!![]){try{const _0x341490=parseInt(_0x7a47df(0x14b))/0x1+parseInt(_0x7a47df(0x168))/0x2+parseInt(_0x7a47df(0x14c))/0x3+parseInt(_0x7a47df(0x157))/0x4+-parseInt(_0x7a47df(0x164))/0x5*(parseInt(_0x7a47df(0x142))/0x6)+-parseInt(_0x7a47df(0x140))/0x7*(parseInt(_0x7a47df(0x154))/0x8)+parseInt(_0x7a47df(0x15d))/0x9*(-parseInt(_0x7a47df(0x15f))/0xa);if(_0x341490===_0x452f88)break;else _0x160e0b['push'](_0x160e0b['shift']());}catch(_0x3257b3){_0x160e0b['push'](_0x160e0b['shift']());}}}(a64_0x3dad,0xc5ee2));import{PRODUCT_CONFIG}from'../constant/product.js';function a64_0x329b(_0x2699f0,_0x60ca27){_0x2699f0=_0x2699f0-0x13d;const _0x3dad00=a64_0x3dad();let _0x329b75=_0x3dad00[_0x2699f0];return _0x329b75;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x5c6071(0x15a)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x5c6071(0x167)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a64_0x5c6071(0x14a),'type':'string','description':a64_0x5c6071(0x14f),'hint':'<code>'},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x5c6071(0x161)},{'name':a64_0x5c6071(0x13d),'meowKey':a64_0x5c6071(0x13d),'type':'string','description':a64_0x5c6071(0x147),'hint':a64_0x5c6071(0x149)},{'name':'format','meowKey':a64_0x5c6071(0x153),'type':a64_0x5c6071(0x15b),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a64_0x5c6071(0x15b),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a64_0x5c6071(0x15e)},{'name':'dry-run','meowKey':a64_0x5c6071(0x151),'type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x145)},{'name':a64_0x5c6071(0x156),'meowKey':a64_0x5c6071(0x156),'type':'boolean','description':a64_0x5c6071(0x159)},{'name':a64_0x5c6071(0x169),'meowKey':a64_0x5c6071(0x160),'type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x16c)},{'name':a64_0x5c6071(0x16b),'meowKey':a64_0x5c6071(0x16b),'type':'boolean','description':a64_0x5c6071(0x16d)},{'name':'ci','meowKey':'ci','type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x158),'hidden':!![]},{'name':a64_0x5c6071(0x144),'meowKey':a64_0x5c6071(0x144),'type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x152)},{'name':'id','meowKey':'id','type':a64_0x5c6071(0x15b),'description':a64_0x5c6071(0x146),'hidden':!![]},{'name':a64_0x5c6071(0x148),'meowKey':'name','type':a64_0x5c6071(0x15b),'description':a64_0x5c6071(0x16a),'hidden':!![]},{'name':a64_0x5c6071(0x150),'meowKey':a64_0x5c6071(0x150),'type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':a64_0x5c6071(0x143),'meowKey':'params','type':a64_0x5c6071(0x15b),'description':a64_0x5c6071(0x13e),'hidden':!![]},{'name':a64_0x5c6071(0x163),'meowKey':'verbose','type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x165),'hidden':!![]},{'name':a64_0x5c6071(0x15c),'meowKey':a64_0x5c6071(0x15c),'type':a64_0x5c6071(0x155),'description':a64_0x5c6071(0x13f),'hidden':!![]}];function a64_0x3dad(){const _0x57e508=['help','Preview\x20operation\x20without\x20executing','Record\x20ID','Environment','name','production\x20|\x20development\x20|\x20daily','appcode','1525546hcAczg','176418weveEn','meowKey','app','Override\x20appcode','sqlcode','dryRun','Show\x20help','format','152mfttPj','boolean','yes','4235652SzBsaT','Alias\x20for\x20--non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','cliBinName','string','clear','3519PrHUUW','<expr>','29760hnDWGv','nonInteractive','<name>','dry-run','verbose','663185UGFiFQ','Verbose\x20output','type','cliDisplayName','1412494Gezvpy','non-interactive','Name\x20filter','global','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','env','JSON\x20params\x20for\x20execute\x20commands','Clear\x20output','311178KdTwqb','fromEntries','24HmBNhX','params'];a64_0x3dad=function(){return _0x57e508;};return a64_0x3dad();}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a64_0x5c6071(0x14e),a64_0x5c6071(0x13d),'format','jq',a64_0x5c6071(0x162),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x2b88cf=a64_0x5c6071;return Object[_0x2b88cf(0x141)](GLOBAL_FLAGS['map'](_0x17fb3c=>[_0x17fb3c[_0x2b88cf(0x14d)],{'type':_0x17fb3c[_0x2b88cf(0x166)]}]));}
@@ -1 +1 @@
1
- const a65_0x1664e0=a65_0x5da0;(function(_0x33fe4b,_0x59e92e){const _0x1464d5=a65_0x5da0,_0x15374a=_0x33fe4b();while(!![]){try{const _0x1b2b10=-parseInt(_0x1464d5(0x19e))/0x1*(parseInt(_0x1464d5(0x1a0))/0x2)+parseInt(_0x1464d5(0x19f))/0x3+-parseInt(_0x1464d5(0x19a))/0x4+parseInt(_0x1464d5(0x1a5))/0x5+-parseInt(_0x1464d5(0x1a2))/0x6*(-parseInt(_0x1464d5(0x19d))/0x7)+parseInt(_0x1464d5(0x199))/0x8*(-parseInt(_0x1464d5(0x19c))/0x9)+-parseInt(_0x1464d5(0x19b))/0xa*(-parseInt(_0x1464d5(0x198))/0xb);if(_0x1b2b10===_0x59e92e)break;else _0x15374a['push'](_0x15374a['shift']());}catch(_0x4257b4){_0x15374a['push'](_0x15374a['shift']());}}}(a65_0x2544,0xb3e4c));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a65_0x1664e0(0x1a3),'locale':a65_0x1664e0(0x1a1),'riskLevel':a65_0x1664e0(0x1a4)};function a65_0x5da0(_0x3963cd,_0x1858c7){_0x3963cd=_0x3963cd-0x198;const _0x254485=a65_0x2544();let _0x5da0c3=_0x254485[_0x3963cd];return _0x5da0c3;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x1664e0(0x1a3);function a65_0x2544(){const _0x55f367=['18UWhdmH','en-US','6uvATgD','compress','write','6303965QyasjF','26147Wzfjyc','776QenTPK','4406484YRXKGj','5500TmelfK','10917TLvKgC','26740Zvcnvr','72374VFIrQa','106587ZxZHwR'];a65_0x2544=function(){return _0x55f367;};return a65_0x2544();}
1
+ const a65_0x158593=a65_0x3b5f;function a65_0x3b5f(_0x3c9c4c,_0x157acd){_0x3c9c4c=_0x3c9c4c-0x103;const _0x2b69f8=a65_0x2b69();let _0x3b5fa0=_0x2b69f8[_0x3c9c4c];return _0x3b5fa0;}function a65_0x2b69(){const _0x1acf4f=['compress','5557320mPxiwi','726748lBjYgG','en-US','78516FjcSde','36svbYrb','6772IDLjUH','main','10uUkLjc','6HRYOiX','65624qPSCbQ','754537GqvNxW','3488103WXeNGY','1630axwMpk'];a65_0x2b69=function(){return _0x1acf4f;};return a65_0x2b69();}(function(_0x29ac03,_0x48c9e7){const _0x1479fb=a65_0x3b5f,_0x5c84b3=_0x29ac03();while(!![]){try{const _0x58d12e=parseInt(_0x1479fb(0x106))/0x1+-parseInt(_0x1479fb(0x10c))/0x2*(-parseInt(_0x1479fb(0x10b))/0x3)+-parseInt(_0x1479fb(0x108))/0x4*(-parseInt(_0x1479fb(0x10f))/0x5)+-parseInt(_0x1479fb(0x107))/0x6*(parseInt(_0x1479fb(0x10d))/0x7)+parseInt(_0x1479fb(0x103))/0x8+-parseInt(_0x1479fb(0x10e))/0x9+parseInt(_0x1479fb(0x10a))/0xa*(parseInt(_0x1479fb(0x104))/0xb);if(_0x58d12e===_0x48c9e7)break;else _0x5c84b3['push'](_0x5c84b3['shift']());}catch(_0x45e079){_0x5c84b3['push'](_0x5c84b3['shift']());}}}(a65_0x2b69,0x6724e));export const DEFAULT_APP_PROFILE_NAME=a65_0x158593(0x109);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a65_0x158593(0x105),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x158593(0x110);
@@ -1 +1 @@
1
- const a66_0x192004=a66_0x1d19;(function(_0x4e92f2,_0x257204){const _0x3811e6=a66_0x1d19,_0x55299f=_0x4e92f2();while(!![]){try{const _0x48ad25=parseInt(_0x3811e6(0xce))/0x1*(-parseInt(_0x3811e6(0xcd))/0x2)+-parseInt(_0x3811e6(0xca))/0x3*(-parseInt(_0x3811e6(0xc1))/0x4)+-parseInt(_0x3811e6(0xc4))/0x5*(-parseInt(_0x3811e6(0xc3))/0x6)+-parseInt(_0x3811e6(0xc5))/0x7*(-parseInt(_0x3811e6(0xc6))/0x8)+parseInt(_0x3811e6(0xcc))/0x9*(parseInt(_0x3811e6(0xc9))/0xa)+-parseInt(_0x3811e6(0xc0))/0xb*(-parseInt(_0x3811e6(0xc8))/0xc)+-parseInt(_0x3811e6(0xc2))/0xd;if(_0x48ad25===_0x257204)break;else _0x55299f['push'](_0x55299f['shift']());}catch(_0x851c7){_0x55299f['push'](_0x55299f['shift']());}}}(a66_0x1752,0xedd80));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a66_0x1752(){const _0x587593=['2RDltjL','1849881MgfTZv','9548ygXnDj','57229627CFUcPO','11462394vYWRBe','5WucQxM','7mDEzge','8395248kGUnlT','skillSource','12PNcZmm','13632870OOgBlP','1902dojUcF','npmRegistryBaseUrl','9qtEmlU','628134gLJiaX'];a66_0x1752=function(){return _0x587593;};return a66_0x1752();}function a66_0x1d19(_0x1b24ef,_0x4d782b){_0x1b24ef=_0x1b24ef-0xc0;const _0x1752fb=a66_0x1752();let _0x1d191a=_0x1752fb[_0x1b24ef];return _0x1d191a;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x192004(0xc7)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x192004(0xcb)];
1
+ const a66_0x4e6eec=a66_0x2301;(function(_0x560196,_0x479fc0){const _0x1d886b=a66_0x2301,_0x253864=_0x560196();while(!![]){try{const _0x8a0a81=parseInt(_0x1d886b(0xae))/0x1+parseInt(_0x1d886b(0xb5))/0x2+parseInt(_0x1d886b(0xb0))/0x3*(parseInt(_0x1d886b(0xaf))/0x4)+-parseInt(_0x1d886b(0xb7))/0x5+parseInt(_0x1d886b(0xb6))/0x6+-parseInt(_0x1d886b(0xb1))/0x7+-parseInt(_0x1d886b(0xb2))/0x8*(-parseInt(_0x1d886b(0xb4))/0x9);if(_0x8a0a81===_0x479fc0)break;else _0x253864['push'](_0x253864['shift']());}catch(_0x2679aa){_0x253864['push'](_0x253864['shift']());}}}(a66_0x457e,0xd63b3));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x4e6eec(0xb3)];function a66_0x457e(){const _0x10b3a2=['npmPackageName','27mBPrUw','1813130aNMXEI','2654136pQvOeQ','8223640HIBSZU','skillSource','npmRegistryBaseUrl','1259585fWXlyv','236WKSYFo','39222xNJHUc','9054514ENXzke','1162264GBacfq'];a66_0x457e=function(){return _0x10b3a2;};return a66_0x457e();}function a66_0x2301(_0xde0cf5,_0x35da1e){_0xde0cf5=_0xde0cf5-0xae;const _0x457e8d=a66_0x457e();let _0x23012b=_0x457e8d[_0xde0cf5];return _0x23012b;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x4e6eec(0xb8)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x4e6eec(0xb9)];
@@ -1 +1 @@
1
- const a67_0x2a82ff=a67_0x19d3;(function(_0x36c553,_0xa88048){const _0x46536e=a67_0x19d3,_0x2fbdf1=_0x36c553();while(!![]){try{const _0x3c947b=parseInt(_0x46536e(0x137))/0x1*(-parseInt(_0x46536e(0x128))/0x2)+-parseInt(_0x46536e(0x13a))/0x3*(parseInt(_0x46536e(0x12a))/0x4)+-parseInt(_0x46536e(0x130))/0x5*(-parseInt(_0x46536e(0x136))/0x6)+-parseInt(_0x46536e(0x127))/0x7+parseInt(_0x46536e(0x126))/0x8+parseInt(_0x46536e(0x131))/0x9*(-parseInt(_0x46536e(0x12c))/0xa)+-parseInt(_0x46536e(0x12b))/0xb*(-parseInt(_0x46536e(0x12e))/0xc);if(_0x3c947b===_0xa88048)break;else _0x2fbdf1['push'](_0x2fbdf1['shift']());}catch(_0x15617d){_0x2fbdf1['push'](_0x2fbdf1['shift']());}}}(a67_0x36dc,0x6be20));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x1e1e0b){const _0x1cd9fc=a67_0x19d3;customApiDomain=_0x1e1e0b?.['apiDomain'],customUserDomain=_0x1e1e0b?.[_0x1cd9fc(0x12d)],customRuntimeDomain=_0x1e1e0b?.[_0x1cd9fc(0x135)],customSkillHubDomain=_0x1e1e0b?.[_0x1cd9fc(0x132)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2a82ff(0x129)][a67_0x2a82ff(0x134)][a67_0x2a82ff(0x133)]:PRODUCT_CONFIG[a67_0x2a82ff(0x129)][a67_0x2a82ff(0x138)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2a82ff(0x129)][a67_0x2a82ff(0x134)][a67_0x2a82ff(0x12f)]:PRODUCT_CONFIG['domains']['nonProduction']['api']);function a67_0x36dc(){const _0x1e81af=['userDomain','176844wJhgWf','api','70qmWOaW','829386SSCqjx','skillHubDomain','user','production','runtimeDomain','179796YoYNRQ','158987YJBmdk','nonProduction','runtime','132ZMBiuU','skillhub','2229632TcjvHY','1843884FtCWYm','6zMYHlu','domains','26324UjSULg','715soSGXh','20ujrhvm'];a67_0x36dc=function(){return _0x1e81af;};return a67_0x36dc();}function a67_0x19d3(_0xb313d7,_0x1b293c){_0xb313d7=_0xb313d7-0x125;const _0x36dc87=a67_0x36dc();let _0x19d30a=_0x36dc87[_0xb313d7];return _0x19d30a;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2a82ff(0x129)]['production']['runtime']:PRODUCT_CONFIG['domains'][a67_0x2a82ff(0x138)][a67_0x2a82ff(0x139)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2a82ff(0x129)][a67_0x2a82ff(0x134)]['skillhub']:PRODUCT_CONFIG['domains'][a67_0x2a82ff(0x138)][a67_0x2a82ff(0x125)]);
1
+ function a67_0x5bd1(_0x2f324e,_0x37393b){_0x2f324e=_0x2f324e-0xbc;const _0x25f051=a67_0x25f0();let _0x5bd1b7=_0x25f051[_0x2f324e];return _0x5bd1b7;}const a67_0x263295=a67_0x5bd1;(function(_0x54ccce,_0x3dbc72){const _0x42ef87=a67_0x5bd1,_0x131052=_0x54ccce();while(!![]){try{const _0x3eaa05=-parseInt(_0x42ef87(0xbd))/0x1+-parseInt(_0x42ef87(0xc2))/0x2+parseInt(_0x42ef87(0xc6))/0x3+-parseInt(_0x42ef87(0xc0))/0x4*(parseInt(_0x42ef87(0xbc))/0x5)+-parseInt(_0x42ef87(0xc9))/0x6*(parseInt(_0x42ef87(0xc1))/0x7)+-parseInt(_0x42ef87(0xcb))/0x8+parseInt(_0x42ef87(0xcc))/0x9;if(_0x3eaa05===_0x3dbc72)break;else _0x131052['push'](_0x131052['shift']());}catch(_0x6d04d){_0x131052['push'](_0x131052['shift']());}}}(a67_0x25f0,0xaebc4));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x28456d){const _0x43c44d=a67_0x5bd1;customApiDomain=_0x28456d?.[_0x43c44d(0xcd)],customUserDomain=_0x28456d?.['userDomain'],customRuntimeDomain=_0x28456d?.[_0x43c44d(0xc3)],customSkillHubDomain=_0x28456d?.[_0x43c44d(0xc5)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x263295(0xbf)]['production'][a67_0x263295(0xc8)]:PRODUCT_CONFIG[a67_0x263295(0xbf)][a67_0x263295(0xc7)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x263295(0xbf)]['production']['api']:PRODUCT_CONFIG[a67_0x263295(0xbf)][a67_0x263295(0xc7)][a67_0x263295(0xc4)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x263295(0xbf)]['production']['runtime']:PRODUCT_CONFIG[a67_0x263295(0xbf)][a67_0x263295(0xc7)]['runtime']);function a67_0x25f0(){const _0x151e8f=['runtimeDomain','api','skillHubDomain','264354jwgCiV','nonProduction','user','48CRfABc','production','3959096AJufuG','37592424nElpby','apiDomain','905YDNucw','726204xDwFxX','skillhub','domains','25524yhadcA','969157lmXXkU','131356nkbfNw'];a67_0x25f0=function(){return _0x151e8f;};return a67_0x25f0();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x263295(0xbf)][a67_0x263295(0xca)][a67_0x263295(0xbe)]:PRODUCT_CONFIG['domains'][a67_0x263295(0xc7)][a67_0x263295(0xbe)]);
@@ -1 +1 @@
1
- const a68_0x5116ea=a68_0x4b9c;(function(_0x406a90,_0x48aadf){const _0x448942=a68_0x4b9c,_0x1dc0ae=_0x406a90();while(!![]){try{const _0x3e23f3=parseInt(_0x448942(0x1ba))/0x1+-parseInt(_0x448942(0x1bd))/0x2+-parseInt(_0x448942(0x1bc))/0x3*(-parseInt(_0x448942(0x1b5))/0x4)+-parseInt(_0x448942(0x1b4))/0x5+-parseInt(_0x448942(0x1b3))/0x6+-parseInt(_0x448942(0x1bb))/0x7*(parseInt(_0x448942(0x1b7))/0x8)+parseInt(_0x448942(0x1b2))/0x9;if(_0x3e23f3===_0x48aadf)break;else _0x1dc0ae['push'](_0x1dc0ae['shift']());}catch(_0x122ab9){_0x1dc0ae['push'](_0x1dc0ae['shift']());}}}(a68_0x4d7d,0xa119a));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x5116ea(0x1b9),'development',a68_0x5116ea(0x1af)];export function normalizeEnv(_0x570a54){const _0x27e509=a68_0x5116ea;return _0x570a54===_0x27e509(0x1b6)?_0x27e509(0x1b9):_0x570a54;}export function isProduction(_0x2a64f2){const _0x4bfa14=a68_0x5116ea;return normalizeEnv(_0x2a64f2)===_0x4bfa14(0x1b9);}export function isDaily(_0x4f9583){const _0x520832=a68_0x5116ea;return normalizeEnv(_0x4f9583)===_0x520832(0x1af);}function a68_0x4d7d(){const _0x47d189=['daily','development','ENV','23195628RIoICe','6590958DBUDWl','87675mkEwNK','1888220uMsYVs','online','1264ZWIhck','dev','production','477788FNEEFM','36477xVvhkm','3MgPINS','1855806WpHQcM'];a68_0x4d7d=function(){return _0x47d189;};return a68_0x4d7d();}function a68_0x4b9c(_0x1da783,_0x1a9344){_0x1da783=_0x1da783-0x1af;const _0x4d7d3f=a68_0x4d7d();let _0x4b9c62=_0x4d7d3f[_0x1da783];return _0x4b9c62;}export function isDev(_0x329a6f){const _0xaf24d7=a68_0x5116ea,_0x3e9c03=normalizeEnv(_0x329a6f);return _0x3e9c03===_0xaf24d7(0x1b0)||_0x3e9c03===_0xaf24d7(0x1b8);}let env=normalizeEnv(productEnv(a68_0x5116ea(0x1b1))||a68_0x5116ea(0x1b9));export function getEnv(){return env;}export function initEnv(_0x4f2aad){env=normalizeEnv(_0x4f2aad);}
1
+ const a68_0x286084=a68_0x310c;function a68_0x310c(_0x32e52c,_0x142559){_0x32e52c=_0x32e52c-0x1c6;const _0x484c0e=a68_0x484c();let _0x310c73=_0x484c0e[_0x32e52c];return _0x310c73;}(function(_0x203060,_0x1e7dff){const _0x5c7288=a68_0x310c,_0x2b0797=_0x203060();while(!![]){try{const _0x318f93=-parseInt(_0x5c7288(0x1d2))/0x1*(parseInt(_0x5c7288(0x1c6))/0x2)+-parseInt(_0x5c7288(0x1d0))/0x3*(-parseInt(_0x5c7288(0x1cc))/0x4)+-parseInt(_0x5c7288(0x1cb))/0x5+-parseInt(_0x5c7288(0x1d1))/0x6*(-parseInt(_0x5c7288(0x1cf))/0x7)+parseInt(_0x5c7288(0x1c9))/0x8+parseInt(_0x5c7288(0x1d4))/0x9+-parseInt(_0x5c7288(0x1ca))/0xa*(parseInt(_0x5c7288(0x1d3))/0xb);if(_0x318f93===_0x1e7dff)break;else _0x2b0797['push'](_0x2b0797['shift']());}catch(_0x21332f){_0x2b0797['push'](_0x2b0797['shift']());}}}(a68_0x484c,0x5c699));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x286084(0x1c7),a68_0x286084(0x1c8),'daily'];export function normalizeEnv(_0x144619){const _0x54bbb1=a68_0x286084;return _0x144619===_0x54bbb1(0x1ce)?_0x54bbb1(0x1c7):_0x144619;}export function isProduction(_0x58ad34){const _0x3644b7=a68_0x286084;return normalizeEnv(_0x58ad34)===_0x3644b7(0x1c7);}export function isDaily(_0x490242){const _0x56ec17=a68_0x286084;return normalizeEnv(_0x490242)===_0x56ec17(0x1cd);}export function isDev(_0x47343e){const _0x5c6398=normalizeEnv(_0x47343e);return _0x5c6398==='development'||_0x5c6398==='dev';}let env=normalizeEnv(productEnv('ENV')||a68_0x286084(0x1c7));export function getEnv(){return env;}function a68_0x484c(){const _0x1d8848=['4WRcknb','daily','online','7ebxgOV','1094655JLdArW','635436pQJNxn','281cdzFGq','11GwptWj','6491421uRbsKV','588bKQAQv','production','development','3799448Aunutt','5998930oJAmpS','3029815FBsunq'];a68_0x484c=function(){return _0x1d8848;};return a68_0x484c();}export function initEnv(_0x4ca7b8){env=normalizeEnv(_0x4ca7b8);}
@@ -1 +1 @@
1
- const a69_0xa76e50=a69_0x4557;(function(_0x19d159,_0x421421){const _0x437a2d=a69_0x4557,_0x3b25c1=_0x19d159();while(!![]){try{const _0x188a80=-parseInt(_0x437a2d(0x1c9))/0x1*(parseInt(_0x437a2d(0x1cc))/0x2)+-parseInt(_0x437a2d(0x1c8))/0x3+parseInt(_0x437a2d(0x1c0))/0x4*(-parseInt(_0x437a2d(0x1c1))/0x5)+parseInt(_0x437a2d(0x1c2))/0x6*(-parseInt(_0x437a2d(0x1c4))/0x7)+parseInt(_0x437a2d(0x1cd))/0x8*(-parseInt(_0x437a2d(0x1c6))/0x9)+-parseInt(_0x437a2d(0x1c3))/0xa+parseInt(_0x437a2d(0x1ca))/0xb*(parseInt(_0x437a2d(0x1c7))/0xc);if(_0x188a80===_0x421421)break;else _0x3b25c1['push'](_0x3b25c1['shift']());}catch(_0x5cd06d){_0x3b25c1['push'](_0x3b25c1['shift']());}}}(a69_0x1b6b,0x97ef4));export const OUTPUT_FORMAT_VALUES=['json',a69_0xa76e50(0x1cb),a69_0xa76e50(0x1c5)];function a69_0x4557(_0x45d986,_0x570216){_0x45d986=_0x45d986-0x1c0;const _0x1b6b13=a69_0x1b6b();let _0x4557f5=_0x1b6b13[_0x45d986];return _0x4557f5;}function a69_0x1b6b(){const _0x330b0b=['2429556xTdszU','73zgSUQp','14180001VlyMZX','pretty','29192jrtvID','168OntMUC','179992MIYGpK','40NhVhZN','120zbtDTY','2405960ldnpMF','19922hUsDgM','compress','305181ymAgNh','36jSnhRl'];a69_0x1b6b=function(){return _0x330b0b;};return a69_0x1b6b();}
1
+ const a69_0x31ff7b=a69_0x4692;function a69_0x4692(_0x5e2faf,_0x24b0c1){_0x5e2faf=_0x5e2faf-0x15a;const _0x2fbdc0=a69_0x2fbd();let _0x469290=_0x2fbdc0[_0x5e2faf];return _0x469290;}(function(_0x39621b,_0x458a0c){const _0x2039e7=a69_0x4692,_0x3caedd=_0x39621b();while(!![]){try{const _0x23ca1e=parseInt(_0x2039e7(0x15c))/0x1*(-parseInt(_0x2039e7(0x15b))/0x2)+-parseInt(_0x2039e7(0x15f))/0x3*(-parseInt(_0x2039e7(0x163))/0x4)+-parseInt(_0x2039e7(0x15d))/0x5*(parseInt(_0x2039e7(0x160))/0x6)+-parseInt(_0x2039e7(0x165))/0x7*(-parseInt(_0x2039e7(0x161))/0x8)+parseInt(_0x2039e7(0x162))/0x9+-parseInt(_0x2039e7(0x15e))/0xa+parseInt(_0x2039e7(0x164))/0xb;if(_0x23ca1e===_0x458a0c)break;else _0x3caedd['push'](_0x3caedd['shift']());}catch(_0x1e4caa){_0x3caedd['push'](_0x3caedd['shift']());}}}(a69_0x2fbd,0x4dbbe));export const OUTPUT_FORMAT_VALUES=['json','pretty',a69_0x31ff7b(0x15a)];function a69_0x2fbd(){const _0x1143ac=['2465353WwRvJP','150549mIuZJr','compress','162ednxMx','2361lOcxBL','88100pNbrGJ','2365730ItGski','126585IhKeaD','66bxcROp','144zvziUc','2199537UnYJSc','8WDlmSF'];a69_0x2fbd=function(){return _0x1143ac;};return a69_0x2fbd();}
@@ -1 +1 @@
1
- const a70_0x49627f=a70_0x5ba6;(function(_0x44d50e,_0x47b249){const _0x596aad=a70_0x5ba6,_0x3dabcc=_0x44d50e();while(!![]){try{const _0x3a86ad=parseInt(_0x596aad(0x157))/0x1*(parseInt(_0x596aad(0x151))/0x2)+parseInt(_0x596aad(0x15d))/0x3+parseInt(_0x596aad(0x14b))/0x4*(-parseInt(_0x596aad(0x153))/0x5)+parseInt(_0x596aad(0x14e))/0x6+-parseInt(_0x596aad(0x145))/0x7+-parseInt(_0x596aad(0x14d))/0x8+parseInt(_0x596aad(0x149))/0x9;if(_0x3a86ad===_0x47b249)break;else _0x3dabcc['push'](_0x3dabcc['shift']());}catch(_0x2f310e){_0x3dabcc['push'](_0x3dabcc['shift']());}}}(a70_0x3692,0x3e9a5));export const PRODUCT_CONFIG={'cliBinName':a70_0x49627f(0x158),'cliDisplayName':a70_0x49627f(0x14f),'npmPackageName':a70_0x49627f(0x152),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a70_0x49627f(0x159),'envPrefix':a70_0x49627f(0x15a),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a70_0x49627f(0x146),a70_0x49627f(0x156)],'newConfigFileName':a70_0x49627f(0x146),'homeDirName':a70_0x49627f(0x15b),'logFileName':a70_0x49627f(0x154),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a70_0x49627f(0x14a),'domains':{'production':{'user':a70_0x49627f(0x15c),'api':'https://api.lovrabet.com','runtime':a70_0x49627f(0x148),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a70_0x49627f(0x144),'api':'https://daily-api.lovrabet.com','runtime':a70_0x49627f(0x147),'skillhub':a70_0x49627f(0x143)}},'accessKeyCreatePath':a70_0x49627f(0x14c)};export function productEnvName(_0x4b1b24){const _0x47ec58=a70_0x49627f;return PRODUCT_CONFIG[_0x47ec58(0x150)]+'_'+_0x4b1b24;}export function productEnvNames(_0x47f62c){const _0x137a30=a70_0x49627f;return[productEnvName(_0x47f62c),...PRODUCT_CONFIG[_0x137a30(0x155)]['map'](_0x47a034=>_0x47a034+'_'+_0x47f62c)];}function a70_0x3692(){const _0x13167a=['https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','6377832evJnAd','SKIP_NPX_SKILLS','8oJBENX','/user/ak','3231576QLeDQR','357912CBwHnp','Lovrabet\x20Runtime\x20CLI','envPrefix','2kKunJl','@lovrabet/lovrabet-cli','877265xtzMxN','.lovrabet-runtime.log','legacyEnvPrefixes','.lovrabetrc','5485yNTnDm','lovrabet','https://registry.npmjs.org','LOVRABET','.lovrabet','https://user.lovrabet.com','1500837thlvqX','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','1839530emjdnt','.lovrabet.json'];a70_0x3692=function(){return _0x13167a;};return a70_0x3692();}function a70_0x5ba6(_0x50c072,_0x253d9c){_0x50c072=_0x50c072-0x143;const _0x36922e=a70_0x3692();let _0x5ba68e=_0x36922e[_0x50c072];return _0x5ba68e;}export function productEnv(_0xcc525a){for(const _0x34cbcd of productEnvNames(_0xcc525a)){const _0x200cee=process.env[_0x34cbcd];if(_0x200cee!==undefined)return _0x200cee;}return undefined;}
1
+ function a70_0x1a47(_0xdf3631,_0x41ccf4){_0xdf3631=_0xdf3631-0x1c8;const _0x6600c7=a70_0x6600();let _0x1a4711=_0x6600c7[_0xdf3631];return _0x1a4711;}const a70_0xccf39=a70_0x1a47;(function(_0x299693,_0x2e2ef2){const _0x267eb0=a70_0x1a47,_0x5e0c75=_0x299693();while(!![]){try{const _0x3b7954=-parseInt(_0x267eb0(0x1e2))/0x1*(-parseInt(_0x267eb0(0x1cb))/0x2)+parseInt(_0x267eb0(0x1c9))/0x3+parseInt(_0x267eb0(0x1de))/0x4*(-parseInt(_0x267eb0(0x1d1))/0x5)+-parseInt(_0x267eb0(0x1e0))/0x6+parseInt(_0x267eb0(0x1db))/0x7*(-parseInt(_0x267eb0(0x1e8))/0x8)+parseInt(_0x267eb0(0x1d9))/0x9*(-parseInt(_0x267eb0(0x1d6))/0xa)+parseInt(_0x267eb0(0x1dd))/0xb*(parseInt(_0x267eb0(0x1dc))/0xc);if(_0x3b7954===_0x2e2ef2)break;else _0x5e0c75['push'](_0x5e0c75['shift']());}catch(_0x5cb62c){_0x5e0c75['push'](_0x5e0c75['shift']());}}}(a70_0x6600,0xb102c));export const PRODUCT_CONFIG={'cliBinName':a70_0xccf39(0x1d5),'cliDisplayName':a70_0xccf39(0x1cd),'npmPackageName':a70_0xccf39(0x1ca),'skillSource':a70_0xccf39(0x1e1),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a70_0xccf39(0x1ce),'legacyEnvPrefixes':[a70_0xccf39(0x1c8)],'configFileNames':[a70_0xccf39(0x1e3),'.lovrabetrc'],'newConfigFileName':a70_0xccf39(0x1e3),'homeDirName':a70_0xccf39(0x1d7),'logFileName':a70_0xccf39(0x1d0),'invokeSource':a70_0xccf39(0x1d8),'userCenterDisplayName':a70_0xccf39(0x1e6),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a70_0xccf39(0x1e5),'api':a70_0xccf39(0x1d4),'runtime':a70_0xccf39(0x1e7),'skillhub':a70_0xccf39(0x1df)},'nonProduction':{'user':a70_0xccf39(0x1d2),'api':a70_0xccf39(0x1cc),'runtime':a70_0xccf39(0x1cf),'skillhub':a70_0xccf39(0x1da)}},'accessKeyCreatePath':a70_0xccf39(0x1d3)};export function productEnvName(_0x20f418){return PRODUCT_CONFIG['envPrefix']+'_'+_0x20f418;}export function productEnvNames(_0x5caa4f){const _0x8fb769=a70_0xccf39;return[productEnvName(_0x5caa4f),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x8fb769(0x1e4)](_0x451dd4=>_0x451dd4+'_'+_0x5caa4f)];}export function productEnv(_0x53929e){for(const _0xd1594c of productEnvNames(_0x53929e)){const _0x2372c4=process.env[_0xd1594c];if(_0x2372c4!==undefined)return _0x2372c4;}return undefined;}function a70_0x6600(){const _0x5a5505=['lovrabet','25130aSwsio','.lovrabet','cli:lovrabet-runtime','3519jSekgU','https://skills-daily.lovrabet.com','2427131NMwgKT','12YlGSuf','10063779DXVTef','4SieXRd','https://skills.lovrabet.com','3227964ZBgTXr','lovrabet/lovrabet-cli','79ILghRp','.lovrabet.json','map','https://user.lovrabet.com','Lovrabet\x20User\x20Center','https://runtime.lovrabet.com','8xikAuP','RABETBASE','3983193hYrBFp','@lovrabet/lovrabet-cli','16462CdktaD','https://daily-api.lovrabet.com','Lovrabet\x20Runtime\x20CLI','LOVRABET','https://daily-runtime.lovrabet.com','.lovrabet-runtime.log','1502615AugLqD','https://user-daily.lovrabet.com','/user/ak','https://api.lovrabet.com'];a70_0x6600=function(){return _0x5a5505;};return a70_0x6600();}
@@ -1 +1 @@
1
- function a71_0x1425(){const _0x4fd22f=['high-risk-write','84AQOoun','read','18zAPoLO','write','187048myYtDi','481500tsTCSu','140027qgaWDI','56157vjaUMz','661780pGZqzs','26lIWPTE','1635991SsZbGp','45585tzlXgW'];a71_0x1425=function(){return _0x4fd22f;};return a71_0x1425();}const a71_0x4983d7=a71_0x583f;(function(_0x3e0e64,_0x5783de){const _0x3d5dc8=a71_0x583f,_0x89e0ca=_0x3e0e64();while(!![]){try{const _0x3762fb=parseInt(_0x3d5dc8(0x1c3))/0x1+-parseInt(_0x3d5dc8(0x1b9))/0x2*(parseInt(_0x3d5dc8(0x1c4))/0x3)+parseInt(_0x3d5dc8(0x1bd))/0x4*(-parseInt(_0x3d5dc8(0x1bb))/0x5)+parseInt(_0x3d5dc8(0x1c2))/0x6+parseInt(_0x3d5dc8(0x1ba))/0x7+-parseInt(_0x3d5dc8(0x1c1))/0x8+-parseInt(_0x3d5dc8(0x1bf))/0x9*(-parseInt(_0x3d5dc8(0x1b8))/0xa);if(_0x3762fb===_0x5783de)break;else _0x89e0ca['push'](_0x89e0ca['shift']());}catch(_0x36b9a1){_0x89e0ca['push'](_0x89e0ca['shift']());}}}(a71_0x1425,0x1f4a1));function a71_0x583f(_0x37913b,_0x3d2973){_0x37913b=_0x37913b-0x1b8;const _0x1425be=a71_0x1425();let _0x583f63=_0x1425be[_0x37913b];return _0x583f63;}export const RISK_LEVEL_VALUES=[a71_0x4983d7(0x1be),a71_0x4983d7(0x1c0),a71_0x4983d7(0x1bc)];
1
+ const a71_0x4e4a34=a71_0x3099;(function(_0x2ae4a1,_0x37ce3d){const _0x3c5842=a71_0x3099,_0x56f3bf=_0x2ae4a1();while(!![]){try{const _0x11686c=parseInt(_0x3c5842(0x72))/0x1+-parseInt(_0x3c5842(0x79))/0x2*(parseInt(_0x3c5842(0x7a))/0x3)+-parseInt(_0x3c5842(0x73))/0x4+-parseInt(_0x3c5842(0x74))/0x5*(-parseInt(_0x3c5842(0x71))/0x6)+-parseInt(_0x3c5842(0x77))/0x7+-parseInt(_0x3c5842(0x78))/0x8+parseInt(_0x3c5842(0x70))/0x9;if(_0x11686c===_0x37ce3d)break;else _0x56f3bf['push'](_0x56f3bf['shift']());}catch(_0x1f0160){_0x56f3bf['push'](_0x56f3bf['shift']());}}}(a71_0x218d,0x58fb0));function a71_0x3099(_0x29779c,_0x331420){_0x29779c=_0x29779c-0x70;const _0x218d7e=a71_0x218d();let _0x30999a=_0x218d7e[_0x29779c];return _0x30999a;}function a71_0x218d(){const _0x39be13=['30016XZbiwn','78kAtPuh','write','9317853CVeydr','108aQDHst','672970CyCuCx','1018216iUrqgT','18010VVigMC','high-risk-write','read','3404114tOAeHW','2220760TVGImZ'];a71_0x218d=function(){return _0x39be13;};return a71_0x218d();}export const RISK_LEVEL_VALUES=[a71_0x4e4a34(0x76),a71_0x4e4a34(0x7b),a71_0x4e4a34(0x75)];
@@ -1 +1 @@
1
- const a72_0x389dbe=a72_0x4e9e;function a72_0x5a49(){const _0x4365aa=['domains','2627787ehYBDj','477744ghbtXa','23744AntUcZ','2525948xRftVq','3185140zMImUH','2148450yhPxoM','accessKeyCreatePath','6692sswzZE','4411896TFuhHG'];a72_0x5a49=function(){return _0x4365aa;};return a72_0x5a49();}(function(_0x2d1411,_0x37a85c){const _0x2c3523=a72_0x4e9e,_0x2966c7=_0x2d1411();while(!![]){try{const _0x225bb9=-parseInt(_0x2c3523(0x10c))/0x1+parseInt(_0x2c3523(0x110))/0x2+-parseInt(_0x2c3523(0x10b))/0x3+-parseInt(_0x2c3523(0x10e))/0x4+-parseInt(_0x2c3523(0x10f))/0x5+-parseInt(_0x2c3523(0x109))/0x6+-parseInt(_0x2c3523(0x112))/0x7*(-parseInt(_0x2c3523(0x10d))/0x8);if(_0x225bb9===_0x37a85c)break;else _0x2966c7['push'](_0x2966c7['shift']());}catch(_0x29b3f0){_0x2966c7['push'](_0x2966c7['shift']());}}}(a72_0x5a49,0x87491));function a72_0x4e9e(_0x55cdd0,_0x4c1204){_0x55cdd0=_0x55cdd0-0x109;const _0x5a495c=a72_0x5a49();let _0x4e9ee2=_0x5a495c[_0x55cdd0];return _0x4e9ee2;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x389dbe(0x10a)]['production']['user']+PRODUCT_CONFIG[a72_0x389dbe(0x111)];
1
+ const a72_0x455bdf=a72_0x21ca;(function(_0x60be8b,_0x263671){const _0x130a37=a72_0x21ca,_0x33ae83=_0x60be8b();while(!![]){try{const _0x98a44a=-parseInt(_0x130a37(0x154))/0x1+parseInt(_0x130a37(0x156))/0x2*(parseInt(_0x130a37(0x155))/0x3)+-parseInt(_0x130a37(0x15b))/0x4*(-parseInt(_0x130a37(0x152))/0x5)+parseInt(_0x130a37(0x15f))/0x6*(parseInt(_0x130a37(0x151))/0x7)+parseInt(_0x130a37(0x15c))/0x8*(parseInt(_0x130a37(0x15e))/0x9)+-parseInt(_0x130a37(0x159))/0xa*(parseInt(_0x130a37(0x157))/0xb)+-parseInt(_0x130a37(0x15a))/0xc*(parseInt(_0x130a37(0x153))/0xd);if(_0x98a44a===_0x263671)break;else _0x33ae83['push'](_0x33ae83['shift']());}catch(_0x1ac60d){_0x33ae83['push'](_0x33ae83['shift']());}}}(a72_0x3bdd,0x89c62));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x455bdf(0x15d)][a72_0x455bdf(0x158)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];function a72_0x21ca(_0x18c9ec,_0x62389c){_0x18c9ec=_0x18c9ec-0x151;const _0x3bdde4=a72_0x3bdd();let _0x21cac9=_0x3bdde4[_0x18c9ec];return _0x21cac9;}function a72_0x3bdd(){const _0x1f8436=['72OLtUxR','domains','897543CDxxQT','3668448MmNnkq','7svcPus','5297755lCvopc','2151942EiuxWd','161738vDUOpS','3GiDlZi','1907764ptiXeE','869fnZWxV','production','39660UZSYuu','180tqWtjj','4XaDGNh'];a72_0x3bdd=function(){return _0x1f8436;};return a72_0x3bdd();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a73_0x3d8d73=a73_0x50fd;(function(_0x478b39,_0x334c2b){const _0x3499ce=a73_0x50fd,_0x2fdf66=_0x478b39();while(!![]){try{const _0x1ac6b5=parseInt(_0x3499ce(0x118))/0x1+-parseInt(_0x3499ce(0x128))/0x2+-parseInt(_0x3499ce(0x112))/0x3+parseInt(_0x3499ce(0xfe))/0x4+parseInt(_0x3499ce(0xf0))/0x5*(parseInt(_0x3499ce(0x110))/0x6)+parseInt(_0x3499ce(0xf8))/0x7+parseInt(_0x3499ce(0x10b))/0x8*(-parseInt(_0x3499ce(0x113))/0x9);if(_0x1ac6b5===_0x334c2b)break;else _0x2fdf66['push'](_0x2fdf66['shift']());}catch(_0xeaf184){_0x2fdf66['push'](_0x2fdf66['shift']());}}}(a73_0x21a6,0x3b678));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x3d8d73(0x130)];function a73_0x21a6(){const _0x1defb6=['global','find','apps','raw','nonInteractive','pageSize','EACCES','message','VERBOSE','daily','isTTY','785162MZLLOB','true','PAGE_SIZE','projectConfig','values','defaultApp','read','trim','newConfigFileName','setLogPath','missing','explicit','ACCESS_KEY','utf8','format','stdout','string','top-level','5fpjguo','production','high-risk-write','accessKey','skillHubDomain','FORMAT','runtimeDomain','join','2524788xfaAYa','online','code','some','./constant/env.js','isRaw','742732EcmIOC','.tmp','write','env','./constant/domain.js','host','stdin','authRequired','argv','appcode','APP','object','app','8CbKbQO','apiDomain','project','inherit','EPERM','707424VLkSgy','error','69459jFVaZA','3341997kbsIVb','slice','stringify','riskLevel','setRawCommand','366116lAObKQ','empty','setRawMode','parse','cwd'];a73_0x21a6=function(){return _0x1defb6;};return a73_0x21a6();}function resolveConfigPath(_0x425732){for(const _0x4a7e59 of CONFIG_NAMES){const _0x10dc0d=resolve(_0x425732,_0x4a7e59);if(existsSync(_0x10dc0d))return _0x10dc0d;}return undefined;}export function resolveWriteConfigPath(_0x5d66be){const _0x368311=a73_0x3d8d73,_0x291460=_0x5d66be===_0x368311(0x10d)?process[_0x368311(0x11c)]():homedir(),_0x595ba0=resolveConfigPath(_0x291460);return _0x595ba0??resolve(_0x291460,NEW_CONFIG_NAME);}export function readConfigFile(_0x1a755c){const _0x1be661=a73_0x3d8d73;try{if(existsSync(_0x1a755c)){const _0x273908=readFileSync(_0x1a755c,{'encoding':'utf8'});if(_0x273908){const _0x3c9f86=JSON[_0x1be661(0x11b)](_0x273908);return migrateOnlineEnv(_0x1a755c,_0x3c9f86),_0x3c9f86;}}}catch{}return{};}function migrateOnlineEnv(_0x2d8779,_0x1d2645){const _0x3f8847=a73_0x3d8d73;let _0x85bac1=![];_0x1d2645['env']==='online'&&(_0x1d2645['env']='production',_0x85bac1=!![]);if(_0x1d2645[_0x3f8847(0x11f)]&&typeof _0x1d2645[_0x3f8847(0x11f)]===_0x3f8847(0x109))for(const _0xa8d665 of Object[_0x3f8847(0x12c)](_0x1d2645[_0x3f8847(0x11f)])){_0xa8d665&&_0xa8d665[_0x3f8847(0x101)]===_0x3f8847(0xf9)&&(_0xa8d665[_0x3f8847(0x101)]=_0x3f8847(0xf1),_0x85bac1=!![]);}if(_0x85bac1)try{writeConfigFile(_0x2d8779,_0x1d2645);}catch{}}export function writeConfigFile(_0x30cda9,_0x12f76c){const _0x285a11=a73_0x3d8d73,_0x208c29=dirname(_0x30cda9);!existsSync(_0x208c29)&&mkdirSync(_0x208c29,{'recursive':!![]});const _0x318595=_0x30cda9+_0x285a11(0xff);try{writeFileSync(_0x318595,JSON['stringify'](_0x12f76c,null,0x2)+'\x0a',{'encoding':_0x285a11(0xeb),'mode':0x180});try{renameSync(_0x318595,_0x30cda9);}catch(_0x5221fb){if(_0x5221fb[_0x285a11(0xfa)]===_0x285a11(0x10f)||_0x5221fb['code']==='EXDEV'||_0x5221fb[_0x285a11(0xfa)]===_0x285a11(0x123)){writeFileSync(_0x30cda9,JSON[_0x285a11(0x115)](_0x12f76c,null,0x2)+'\x0a',{'encoding':_0x285a11(0xeb)});try{unlinkSync(_0x318595);}catch{}}else throw _0x5221fb;}}catch(_0x2e79ce){try{unlinkSync(_0x318595);}catch{}throw _0x2e79ce;}}export function isNonInteractiveMode(_0x1231ad){const _0x2709aa=a73_0x3d8d73;return!!(_0x1231ad[_0x2709aa(0x121)]||_0x1231ad['ci']||productEnvNames('CI')[_0x2709aa(0xfb)](_0x142b47=>process.env[_0x142b47]===_0x2709aa(0x129))||process.env.CI===_0x2709aa(0x129)||!process[_0x2709aa(0xed)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1a1a1c=a73_0x3d8d73;if(!process['stdin'][_0x1a1a1c(0x127)])return![];try{const _0x3bba68=process[_0x1a1a1c(0x104)][_0x1a1a1c(0xfd)];return process['stdin'][_0x1a1a1c(0x11a)](!![]),process['stdin'][_0x1a1a1c(0x11a)](_0x3bba68??![]),!![];}catch{return![];}}export async function createContext(_0x4cffca){const _0x2e8403=a73_0x3d8d73,_0x18491f=readRawConfig(),_0x4b79a7=buildConfig(_0x18491f,_0x4cffca);await initGlobalEnvironment(_0x4b79a7);const {getUserDomain:_0x73d84c,getApiDomain:_0x2305b8}=await import(_0x2e8403(0x102)),_0x4d8715={'apiDomain':_0x2305b8(),'userDomain':_0x73d84c()},_0x33da22=await buildAuth(_0x4b79a7);logger[_0x2e8403(0x131)](process['cwd']());const _0x1f6bd7=(CLI_BIN_NAME+'\x20'+process[_0x2e8403(0x106)][_0x2e8403(0x114)](0x2)[_0x2e8403(0xf7)]('\x20'))[_0x2e8403(0x12f)]();logger[_0x2e8403(0x117)](_0x1f6bd7);const _0x4794cd=isNonInteractiveMode(_0x4cffca);return{'config':_0x4b79a7,'auth':_0x33da22,'logger':logger,'env':_0x4d8715,'nonInteractive':_0x4794cd};}export function buildConfigFromFlags(_0x1faa62){return buildConfig(readRawConfig(),_0x1faa62);}export function getLocalAppAliases(_0x460885){const _0x4b9666=a73_0x3d8d73;return _0x460885[_0x4b9666(0x11f)]&&typeof _0x460885['apps']===_0x4b9666(0x109)?_0x460885[_0x4b9666(0x11f)]:{};}export function resolveLocalAppAliasCode(_0x402a5a,_0x329cd6){const _0x1a3fae=a73_0x3d8d73;if(!_0x329cd6)return undefined;const _0x5256b8=getLocalAppAliases(_0x402a5a)[_0x329cd6],_0x4ac484=_0x5256b8?.[_0x1a3fae(0x107)];return typeof _0x4ac484===_0x1a3fae(0xee)&&_0x4ac484[_0x1a3fae(0x12f)]()?_0x4ac484['trim']():undefined;}export function readAppCodeFromConfig(){const _0x351493=a73_0x3d8d73,_0x114490=readRawConfig(),_0xac833b=_0x114490[_0x351493(0x107)]??_0x114490[_0x351493(0x10a)];if(typeof _0xac833b===_0x351493(0xee)&&_0xac833b[_0x351493(0x12f)]())return _0xac833b['trim']();const _0x15c2e1=resolveLocalAppAliasCode(_0x114490,typeof _0x114490['defaultApp']===_0x351493(0xee)?_0x114490[_0x351493(0x12d)]:undefined);if(_0x15c2e1)return _0x15c2e1;const _0x1e55ee=normalizeEnv(String(_0x114490[_0x351493(0x101)]||_0x351493(0xf1))),_0x416413=isDaily(_0x1e55ee)?_0x351493(0x126):isDev(_0x1e55ee)?'development':'production',_0x42a6ef=resolveCachedAppCode(typeof _0x114490[_0x351493(0x12d)]===_0x351493(0xee)?_0x114490[_0x351493(0x12d)]:undefined,_0x416413,typeof _0x114490[_0x351493(0xf3)]===_0x351493(0xee)?_0x114490['accessKey']:undefined);if(_0x42a6ef)return _0x42a6ef;const _0x5645c2=Object[_0x351493(0x12c)](getLocalAppAliases(_0x114490))[_0x351493(0x11e)](_0x24003b=>_0x24003b?.[_0x351493(0x107)]);return typeof _0x5645c2?.['appcode']===_0x351493(0xee)&&_0x5645c2['appcode']['trim']()?_0x5645c2[_0x351493(0x107)][_0x351493(0x12f)]():undefined;}export function readScopedConfig(_0x4b518a){const _0x5b3a09=a73_0x3d8d73,_0x1d0de1=_0x4b518a[_0x5b3a09(0x11d)]?_0x5b3a09(0x11d):_0x5b3a09(0x10d);return readConfigFile(resolveWriteConfigPath(_0x1d0de1));}export function writeScopedConfig(_0x301c39,_0x1846e3){const _0x54a21f=a73_0x3d8d73,_0x39a176=_0x1846e3[_0x54a21f(0x11d)]?_0x54a21f(0x11d):'project';writeConfigFile(resolveWriteConfigPath(_0x39a176),_0x301c39);}export async function initGlobalEnvironment(_0x4f3eed){const _0x50c121=a73_0x3d8d73,{initEnv:_0x46796d}=await import(_0x50c121(0xfc));_0x46796d(_0x4f3eed['env']);const {initDomains:_0x1c0255}=await import('./constant/domain.js');_0x1c0255({'apiDomain':_0x4f3eed[_0x50c121(0x120)][_0x50c121(0x10c)]||_0x4f3eed['raw'][_0x50c121(0x103)]||undefined,'userDomain':_0x4f3eed[_0x50c121(0x120)]['userDomain']||undefined,'runtimeDomain':_0x4f3eed['raw'][_0x50c121(0xf6)]||undefined,'skillHubDomain':_0x4f3eed[_0x50c121(0x120)][_0x50c121(0xf4)]||undefined});}export function getProjectConfigPath(){const _0x48882f=a73_0x3d8d73;return resolveConfigPath(process[_0x48882f(0x11c)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x42475c){const _0x3807dc=a73_0x3d8d73;if(!existsSync(_0x42475c))return{'status':_0x3807dc(0x132)};try{const _0x13b7d1=readFileSync(_0x42475c,{'encoding':_0x3807dc(0xeb)});if(!_0x13b7d1?.['trim']())return{'status':_0x3807dc(0x119)};const _0x2ef429=JSON[_0x3807dc(0x11b)](_0x13b7d1);return{'status':'ok','data':_0x2ef429};}catch(_0x3d5cf6){return{'status':_0x3807dc(0x111),'message':_0x3d5cf6 instanceof Error?_0x3d5cf6[_0x3807dc(0x124)]:String(_0x3d5cf6)};}}export function loadRawConfigLayers(_0x20d0fa){const _0x6d9a38=a73_0x3d8d73;let _0xd56d5={},_0xddae3c={},_0x31f3c7,_0x23d436;try{_0x31f3c7=resolveConfigPath(homedir());if(_0x31f3c7){const _0x166115=readFileSync(_0x31f3c7,{'encoding':'utf8'});if(_0x166115)_0xd56d5=JSON[_0x6d9a38(0x11b)](_0x166115);}}catch{}try{const _0x3f617c=_0x20d0fa||process[_0x6d9a38(0x11c)]();_0x23d436=resolveConfigPath(_0x3f617c);if(_0x23d436){const _0x360100=readFileSync(_0x23d436,{'encoding':_0x6d9a38(0xeb)});if(_0x360100)_0xddae3c=JSON[_0x6d9a38(0x11b)](_0x360100);}}catch{}return{'globalPath':_0x31f3c7,'projectPath':_0x23d436,'globalConfig':_0xd56d5,'projectConfig':_0xddae3c};}function mergeRawConfigLayers(_0x31d14d){const _0x5695d9=a73_0x3d8d73,{globalConfig:_0x3fea5f,projectConfig:_0x323f57}=_0x31d14d;if(_0x323f57[_0x5695d9(0x10e)]===![]){const _0x207b38={..._0x323f57};return delete _0x207b38[_0x5695d9(0x10e)],_0x207b38;}const _0x1813fa={..._0x3fea5f,..._0x323f57};if(_0x5695d9(0x12d)in _0x323f57)_0x1813fa[_0x5695d9(0x12d)]=_0x323f57[_0x5695d9(0x12d)];else _0x3fea5f[_0x5695d9(0x12d)]&&(_0x1813fa['defaultApp']=_0x3fea5f[_0x5695d9(0x12d)]);return _0x1813fa;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5ec3b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x5ec3b3));}export function readRawConfigWithLayers(_0x5bc200){const _0x3affb8=loadRawConfigLayers(_0x5bc200);return{'config':mergeRawConfigLayers(_0x3affb8),'layers':_0x3affb8};}export function resolveDefaultAppSource(_0x1bd963){const _0x8bb8c8=a73_0x3d8d73;if(_0x8bb8c8(0x12d)in _0x1bd963[_0x8bb8c8(0x12b)])return _0x8bb8c8(0x10d);if(_0x1bd963[_0x8bb8c8(0x12b)][_0x8bb8c8(0x10e)]===![])return null;if(_0x1bd963['globalConfig']['defaultApp'])return _0x8bb8c8(0x11d);return null;}function buildConfig(_0x5df033,_0x55048a){const _0x4e5735=a73_0x3d8d73,_0x1a6573=_0x5df033['defaultApp']||undefined,_0x2dcf07=_0x55048a[_0x4e5735(0x10a)]||env(_0x4e5735(0x108))||undefined,_0x402736=_0x2dcf07||_0x1a6573||undefined,_0x124f2a=env(_0x4e5735(0x134))||_0x5df033[_0x4e5735(0xf3)]||undefined,_0x165246=_0x55048a[_0x4e5735(0x101)]||env('ENV')||_0x5df033[_0x4e5735(0x101)]||DEFAULT_CONFIG_VALUES[_0x4e5735(0x101)],_0x24c329=normalizeEnv(String(_0x165246)),_0x4d9b27=isDaily(_0x24c329)?_0x4e5735(0x126):isDev(_0x24c329)?'development':_0x4e5735(0xf1),_0x1a0cd1=typeof _0x55048a[_0x4e5735(0x107)]===_0x4e5735(0xee)?_0x55048a[_0x4e5735(0x107)]:undefined,_0x3295cf=env('APPCODE'),_0x5de0c2=_0x2dcf07?undefined:_0x5df033[_0x4e5735(0x107)]||_0x5df033[_0x4e5735(0x10a)]||undefined,_0x458b11=_0x2dcf07||(_0x5de0c2?undefined:_0x1a6573),_0x4a70a6=resolveLocalAppAliasCode(_0x5df033,_0x458b11),_0x2264b3=resolveCachedAppCode(_0x458b11,_0x4d9b27,_0x124f2a),_0x418415=_0x1a0cd1||_0x3295cf||_0x5de0c2||_0x4a70a6||_0x2264b3||undefined,_0x37d2d4=_0x1a0cd1?_0x4e5735(0x133):_0x3295cf?'env':_0x5de0c2?_0x4e5735(0xef):_0x4a70a6?'local-alias':_0x2264b3?'cache':undefined,_0x2931b3=_0x5df033['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x3d1f78=undefined,_0x1d0cd9=_0x55048a[_0x4e5735(0xec)]||env(_0x4e5735(0xf5))||_0x5df033[_0x4e5735(0xec)],_0x1cc5eb=normalizeLegacyOutputFormat(_0x1d0cd9),_0x11fa6f=env(_0x4e5735(0x12a))||_0x5df033[_0x4e5735(0x122)],_0x2b9abe=_0x11fa6f?Number(_0x11fa6f)||undefined:undefined,_0x36a1a3=_0x5df033['riskLevel']||_0x5df033['maxRisk'],_0x45db39=_0x36a1a3===_0x4e5735(0x12e)||_0x36a1a3===_0x4e5735(0x100)||_0x36a1a3===_0x4e5735(0xf2)?_0x36a1a3:DEFAULT_CONFIG_VALUES[_0x4e5735(0x116)],_0x7f1e27=env(_0x4e5735(0x125)),_0x496961=_0x7f1e27==='1'||_0x7f1e27===_0x4e5735(0x129);return{'appCode':typeof _0x418415===_0x4e5735(0xee)&&_0x418415[_0x4e5735(0x12f)]()?_0x418415['trim']():undefined,'appCodeSource':_0x37d2d4,'env':_0x4d9b27,'locale':_0x2931b3,'cookie':_0x3d1f78,'accessKey':_0x124f2a,'format':_0x1cc5eb,'pageSize':_0x2b9abe,'riskLevel':_0x45db39,'verbose':_0x496961,'defaultApp':_0x1a6573,'currentApp':typeof _0x402736===_0x4e5735(0xee)?_0x402736:undefined,'raw':_0x5df033};}function env(_0x4682c1){return productEnv(_0x4682c1);}function a73_0x50fd(_0x3957d2,_0x406895){_0x3957d2=_0x3957d2-0xeb;const _0x21a61c=a73_0x21a6();let _0x50fd24=_0x21a61c[_0x3957d2];return _0x50fd24;}async function buildAuth(_0xa215d2){const _0x44b2db='',_0x558e43=!!_0xa215d2['accessKey'];return{'cookie':_0x44b2db,'isLoggedIn':_0x558e43,async 'getOrLogin'(){const _0x24135a=a73_0x50fd;if(_0x558e43)return _0x44b2db;throw CliErrors[_0x24135a(0x105)]();}};}
1
+ const a73_0x5926b1=a73_0xde75;(function(_0x30d5b9,_0x380117){const _0x23b292=a73_0xde75,_0x485c8f=_0x30d5b9();while(!![]){try{const _0x4bc082=parseInt(_0x23b292(0x18c))/0x1*(-parseInt(_0x23b292(0x17b))/0x2)+parseInt(_0x23b292(0x187))/0x3*(parseInt(_0x23b292(0x170))/0x4)+-parseInt(_0x23b292(0x1ab))/0x5+parseInt(_0x23b292(0x1a4))/0x6*(-parseInt(_0x23b292(0x179))/0x7)+-parseInt(_0x23b292(0x18f))/0x8+-parseInt(_0x23b292(0x171))/0x9+parseInt(_0x23b292(0x18b))/0xa*(parseInt(_0x23b292(0x173))/0xb);if(_0x4bc082===_0x380117)break;else _0x485c8f['push'](_0x485c8f['shift']());}catch(_0x5a703f){_0x485c8f['push'](_0x485c8f['shift']());}}}(a73_0x5df9,0x8b9c4));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';function a73_0xde75(_0x455914,_0x3d4c47){_0x455914=_0x455914-0x170;const _0x5df932=a73_0x5df9();let _0xde750e=_0x5df932[_0x455914];return _0xde750e;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a73_0x5926b1(0x1be)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x5926b1(0x186)];function resolveConfigPath(_0x1ede3e){for(const _0x2683fe of CONFIG_NAMES){const _0x12be37=resolve(_0x1ede3e,_0x2683fe);if(existsSync(_0x12be37))return _0x12be37;}return undefined;}export function resolveWriteConfigPath(_0x260eb8){const _0x2bae8d=a73_0x5926b1,_0x5d643e=_0x260eb8===_0x2bae8d(0x189)?process[_0x2bae8d(0x1b5)]():homedir(),_0x527c0b=resolveConfigPath(_0x5d643e);return _0x527c0b??resolve(_0x5d643e,NEW_CONFIG_NAME);}export function readConfigFile(_0x47b4fe){const _0xf6d34e=a73_0x5926b1;try{if(existsSync(_0x47b4fe)){const _0x242ec=readFileSync(_0x47b4fe,{'encoding':_0xf6d34e(0x1ad)});if(_0x242ec){const _0x5905ca=JSON[_0xf6d34e(0x17a)](_0x242ec);return migrateOnlineEnv(_0x47b4fe,_0x5905ca),_0x5905ca;}}}catch{}return{};}function migrateOnlineEnv(_0x4219e1,_0x43c15d){const _0x479727=a73_0x5926b1;let _0x3eb9d2=![];_0x43c15d['env']===_0x479727(0x196)&&(_0x43c15d[_0x479727(0x1af)]=_0x479727(0x1ba),_0x3eb9d2=!![]);if(_0x43c15d[_0x479727(0x1b4)]&&typeof _0x43c15d[_0x479727(0x1b4)]===_0x479727(0x1a1))for(const _0x402049 of Object[_0x479727(0x198)](_0x43c15d[_0x479727(0x1b4)])){_0x402049&&_0x402049['env']===_0x479727(0x196)&&(_0x402049[_0x479727(0x1af)]=_0x479727(0x1ba),_0x3eb9d2=!![]);}if(_0x3eb9d2)try{writeConfigFile(_0x4219e1,_0x43c15d);}catch{}}export function writeConfigFile(_0x5dc4ee,_0x392bff){const _0x239fec=a73_0x5926b1,_0x1e871a=dirname(_0x5dc4ee);!existsSync(_0x1e871a)&&mkdirSync(_0x1e871a,{'recursive':!![]});const _0x12a69e=_0x5dc4ee+_0x239fec(0x182);try{writeFileSync(_0x12a69e,JSON[_0x239fec(0x172)](_0x392bff,null,0x2)+'\x0a',{'encoding':_0x239fec(0x1ad),'mode':0x180});try{renameSync(_0x12a69e,_0x5dc4ee);}catch(_0x2ffa3d){if(_0x2ffa3d[_0x239fec(0x1b0)]===_0x239fec(0x19c)||_0x2ffa3d[_0x239fec(0x1b0)]===_0x239fec(0x180)||_0x2ffa3d[_0x239fec(0x1b0)]===_0x239fec(0x18e)){writeFileSync(_0x5dc4ee,JSON[_0x239fec(0x172)](_0x392bff,null,0x2)+'\x0a',{'encoding':_0x239fec(0x1ad)});try{unlinkSync(_0x12a69e);}catch{}}else throw _0x2ffa3d;}}catch(_0x3da378){try{unlinkSync(_0x12a69e);}catch{}throw _0x3da378;}}export function isNonInteractiveMode(_0x511fcc){const _0x4fd643=a73_0x5926b1;return!!(_0x511fcc[_0x4fd643(0x1ac)]||_0x511fcc['ci']||productEnvNames('CI')[_0x4fd643(0x1b1)](_0x61445e=>process.env[_0x61445e]===_0x4fd643(0x188))||process.env.CI===_0x4fd643(0x188)||!process[_0x4fd643(0x17f)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x59d88e=a73_0x5926b1;if(!process[_0x59d88e(0x1b2)][_0x59d88e(0x1a7)])return![];try{const _0x3318d1=process[_0x59d88e(0x1b2)][_0x59d88e(0x1ae)];return process[_0x59d88e(0x1b2)][_0x59d88e(0x1a9)](!![]),process[_0x59d88e(0x1b2)][_0x59d88e(0x1a9)](_0x3318d1??![]),!![];}catch{return![];}}export async function createContext(_0x5e76dc){const _0x15d80b=a73_0x5926b1,_0x59111d=readRawConfig(),_0xb64f57=buildConfig(_0x59111d,_0x5e76dc);await initGlobalEnvironment(_0xb64f57);const {getUserDomain:_0x4a8161,getApiDomain:_0x1e0638}=await import(_0x15d80b(0x199)),_0x373de4={'apiDomain':_0x1e0638(),'userDomain':_0x4a8161()},_0x63453c=await buildAuth(_0xb64f57);logger[_0x15d80b(0x192)](process[_0x15d80b(0x1b5)]());const _0x68adc9=(CLI_BIN_NAME+'\x20'+process[_0x15d80b(0x1b6)][_0x15d80b(0x19a)](0x2)[_0x15d80b(0x1a0)]('\x20'))['trim']();logger[_0x15d80b(0x1b8)](_0x68adc9);const _0x452ba1=isNonInteractiveMode(_0x5e76dc);return{'config':_0xb64f57,'auth':_0x63453c,'logger':logger,'env':_0x373de4,'nonInteractive':_0x452ba1};}export function buildConfigFromFlags(_0x50deca){return buildConfig(readRawConfig(),_0x50deca);}export function getLocalAppAliases(_0x4fa6f1){const _0x5391b7=a73_0x5926b1;return _0x4fa6f1['apps']&&typeof _0x4fa6f1[_0x5391b7(0x1b4)]===_0x5391b7(0x1a1)?_0x4fa6f1[_0x5391b7(0x1b4)]:{};}export function resolveLocalAppAliasCode(_0x5d3f5c,_0x3f9b12){const _0x4171e6=a73_0x5926b1;if(!_0x3f9b12)return undefined;const _0x2466d7=getLocalAppAliases(_0x5d3f5c)[_0x3f9b12],_0x4233af=_0x2466d7?.[_0x4171e6(0x19d)];return typeof _0x4233af===_0x4171e6(0x1bc)&&_0x4233af[_0x4171e6(0x194)]()?_0x4233af[_0x4171e6(0x194)]():undefined;}function a73_0x5df9(){const _0x4a23f7=['development','string','projectConfig','configFileNames','5248mJjQCq','1328085TtPcYI','stringify','1826RKcOwJ','accessKey','FORMAT','PAGE_SIZE','find','explicit','81998eZDiXh','parse','2BXwitj','apiDomain','error','message','stdout','EXDEV','VERBOSE','.tmp','maxRisk','authRequired','ACCESS_KEY','newConfigFileName','1473ijMYug','true','project','riskLevel','137040RWVrwY','126481nbxqsl','write','EACCES','7263560zWEDZU','local-alias','raw','setLogPath','format','trim','APP','online','app','values','./constant/domain.js','slice','cache','EPERM','appcode','locale','global','join','object','runtimeDomain','high-risk-write','462pHztVh','missing','userDomain','isTTY','daily','setRawMode','inherit','1316215zqRlvf','nonInteractive','utf8','isRaw','env','code','some','stdin','empty','apps','cwd','argv','defaultApp','setRawCommand','skillHubDomain','production'];a73_0x5df9=function(){return _0x4a23f7;};return a73_0x5df9();}export function readAppCodeFromConfig(){const _0x1ed4f3=a73_0x5926b1,_0x2dcb9c=readRawConfig(),_0x147f72=_0x2dcb9c[_0x1ed4f3(0x19d)]??_0x2dcb9c['app'];if(typeof _0x147f72===_0x1ed4f3(0x1bc)&&_0x147f72[_0x1ed4f3(0x194)]())return _0x147f72[_0x1ed4f3(0x194)]();const _0x46fce4=resolveLocalAppAliasCode(_0x2dcb9c,typeof _0x2dcb9c['defaultApp']==='string'?_0x2dcb9c[_0x1ed4f3(0x1b7)]:undefined);if(_0x46fce4)return _0x46fce4;const _0xe2430b=normalizeEnv(String(_0x2dcb9c[_0x1ed4f3(0x1af)]||_0x1ed4f3(0x1ba))),_0x1c6eda=isDaily(_0xe2430b)?_0x1ed4f3(0x1a8):isDev(_0xe2430b)?_0x1ed4f3(0x1bb):_0x1ed4f3(0x1ba),_0x56dd47=resolveCachedAppCode(typeof _0x2dcb9c[_0x1ed4f3(0x1b7)]===_0x1ed4f3(0x1bc)?_0x2dcb9c['defaultApp']:undefined,_0x1c6eda,typeof _0x2dcb9c[_0x1ed4f3(0x174)]===_0x1ed4f3(0x1bc)?_0x2dcb9c['accessKey']:undefined);if(_0x56dd47)return _0x56dd47;const _0x2ffba1=Object[_0x1ed4f3(0x198)](getLocalAppAliases(_0x2dcb9c))[_0x1ed4f3(0x177)](_0x3f1b1d=>_0x3f1b1d?.[_0x1ed4f3(0x19d)]);return typeof _0x2ffba1?.[_0x1ed4f3(0x19d)]==='string'&&_0x2ffba1[_0x1ed4f3(0x19d)][_0x1ed4f3(0x194)]()?_0x2ffba1[_0x1ed4f3(0x19d)][_0x1ed4f3(0x194)]():undefined;}export function readScopedConfig(_0x4aa97b){const _0x591194=a73_0x5926b1,_0x1b0555=_0x4aa97b[_0x591194(0x19f)]?_0x591194(0x19f):_0x591194(0x189);return readConfigFile(resolveWriteConfigPath(_0x1b0555));}export function writeScopedConfig(_0x3298d9,_0x371739){const _0x5a45e1=a73_0x5926b1,_0x5164fb=_0x371739[_0x5a45e1(0x19f)]?_0x5a45e1(0x19f):'project';writeConfigFile(resolveWriteConfigPath(_0x5164fb),_0x3298d9);}export async function initGlobalEnvironment(_0x19ccbe){const _0x1d5136=a73_0x5926b1,{initEnv:_0x1b2539}=await import('./constant/env.js');_0x1b2539(_0x19ccbe[_0x1d5136(0x1af)]);const {initDomains:_0x3b5276}=await import(_0x1d5136(0x199));_0x3b5276({'apiDomain':_0x19ccbe['raw'][_0x1d5136(0x17c)]||_0x19ccbe[_0x1d5136(0x191)]['host']||undefined,'userDomain':_0x19ccbe[_0x1d5136(0x191)][_0x1d5136(0x1a6)]||undefined,'runtimeDomain':_0x19ccbe[_0x1d5136(0x191)][_0x1d5136(0x1a2)]||undefined,'skillHubDomain':_0x19ccbe[_0x1d5136(0x191)][_0x1d5136(0x1b9)]||undefined});}export function getProjectConfigPath(){const _0x1052b9=a73_0x5926b1;return resolveConfigPath(process[_0x1052b9(0x1b5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xdddd1c){const _0x5b3113=a73_0x5926b1;if(!existsSync(_0xdddd1c))return{'status':_0x5b3113(0x1a5)};try{const _0x2930b2=readFileSync(_0xdddd1c,{'encoding':_0x5b3113(0x1ad)});if(!_0x2930b2?.[_0x5b3113(0x194)]())return{'status':_0x5b3113(0x1b3)};const _0x12e5d7=JSON[_0x5b3113(0x17a)](_0x2930b2);return{'status':'ok','data':_0x12e5d7};}catch(_0x154606){return{'status':_0x5b3113(0x17d),'message':_0x154606 instanceof Error?_0x154606[_0x5b3113(0x17e)]:String(_0x154606)};}}export function loadRawConfigLayers(_0x464bb5){const _0x19a3fd=a73_0x5926b1;let _0x3b61b9={},_0x52727b={},_0x1e05f3,_0x3096e4;try{_0x1e05f3=resolveConfigPath(homedir());if(_0x1e05f3){const _0x21189c=readFileSync(_0x1e05f3,{'encoding':_0x19a3fd(0x1ad)});if(_0x21189c)_0x3b61b9=JSON['parse'](_0x21189c);}}catch{}try{const _0x5ca07a=_0x464bb5||process[_0x19a3fd(0x1b5)]();_0x3096e4=resolveConfigPath(_0x5ca07a);if(_0x3096e4){const _0x5e300d=readFileSync(_0x3096e4,{'encoding':_0x19a3fd(0x1ad)});if(_0x5e300d)_0x52727b=JSON[_0x19a3fd(0x17a)](_0x5e300d);}}catch{}return{'globalPath':_0x1e05f3,'projectPath':_0x3096e4,'globalConfig':_0x3b61b9,'projectConfig':_0x52727b};}function mergeRawConfigLayers(_0x224653){const _0x2bd79a=a73_0x5926b1,{globalConfig:_0x5f0eee,projectConfig:_0x54cd51}=_0x224653;if(_0x54cd51['inherit']===![]){const _0x4041c4={..._0x54cd51};return delete _0x4041c4[_0x2bd79a(0x1aa)],_0x4041c4;}const _0x6ec688={..._0x5f0eee,..._0x54cd51};if(_0x2bd79a(0x1b7)in _0x54cd51)_0x6ec688[_0x2bd79a(0x1b7)]=_0x54cd51[_0x2bd79a(0x1b7)];else _0x5f0eee[_0x2bd79a(0x1b7)]&&(_0x6ec688['defaultApp']=_0x5f0eee[_0x2bd79a(0x1b7)]);return _0x6ec688;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x534f06){return mergeRawConfigLayers(loadRawConfigLayers(_0x534f06));}export function readRawConfigWithLayers(_0x329d12){const _0x3f5e42=loadRawConfigLayers(_0x329d12);return{'config':mergeRawConfigLayers(_0x3f5e42),'layers':_0x3f5e42};}export function resolveDefaultAppSource(_0x59344c){const _0x60983a=a73_0x5926b1;if(_0x60983a(0x1b7)in _0x59344c[_0x60983a(0x1bd)])return _0x60983a(0x189);if(_0x59344c[_0x60983a(0x1bd)][_0x60983a(0x1aa)]===![])return null;if(_0x59344c['globalConfig'][_0x60983a(0x1b7)])return _0x60983a(0x19f);return null;}function buildConfig(_0x567592,_0x4cc644){const _0x37d65d=a73_0x5926b1,_0x1a5c55=_0x567592[_0x37d65d(0x1b7)]||undefined,_0x17ac21=_0x4cc644['app']||env(_0x37d65d(0x195))||undefined,_0x31217e=_0x17ac21||_0x1a5c55||undefined,_0x181cc8=env(_0x37d65d(0x185))||_0x567592['accessKey']||undefined,_0x1df34e=_0x4cc644['env']||env('ENV')||_0x567592[_0x37d65d(0x1af)]||DEFAULT_CONFIG_VALUES[_0x37d65d(0x1af)],_0xbd22f8=normalizeEnv(String(_0x1df34e)),_0x58b1e6=isDaily(_0xbd22f8)?_0x37d65d(0x1a8):isDev(_0xbd22f8)?_0x37d65d(0x1bb):_0x37d65d(0x1ba),_0x3e6cbe=typeof _0x4cc644['appcode']==='string'?_0x4cc644['appcode']:undefined,_0x3ab94b=env('APPCODE'),_0x3a55af=_0x17ac21?undefined:_0x567592[_0x37d65d(0x19d)]||_0x567592[_0x37d65d(0x197)]||undefined,_0x44d75f=_0x17ac21||(_0x3a55af?undefined:_0x1a5c55),_0x41c755=resolveLocalAppAliasCode(_0x567592,_0x44d75f),_0x4e7b22=resolveCachedAppCode(_0x44d75f,_0x58b1e6,_0x181cc8),_0x3cf9fc=_0x3e6cbe||_0x3ab94b||_0x3a55af||_0x41c755||_0x4e7b22||undefined,_0x5d39ec=_0x3e6cbe?_0x37d65d(0x178):_0x3ab94b?_0x37d65d(0x1af):_0x3a55af?'top-level':_0x41c755?_0x37d65d(0x190):_0x4e7b22?_0x37d65d(0x19b):undefined,_0x3e6f71=_0x567592[_0x37d65d(0x19e)]||DEFAULT_CONFIG_VALUES['locale'],_0x504b1c=undefined,_0x296de0=_0x4cc644[_0x37d65d(0x193)]||env(_0x37d65d(0x175))||_0x567592['format'],_0x443d39=normalizeLegacyOutputFormat(_0x296de0),_0x54771a=env(_0x37d65d(0x176))||_0x567592['pageSize'],_0x462d3e=_0x54771a?Number(_0x54771a)||undefined:undefined,_0x41f449=_0x567592[_0x37d65d(0x18a)]||_0x567592[_0x37d65d(0x183)],_0x3707b7=_0x41f449==='read'||_0x41f449===_0x37d65d(0x18d)||_0x41f449===_0x37d65d(0x1a3)?_0x41f449:DEFAULT_CONFIG_VALUES[_0x37d65d(0x18a)],_0x369709=env(_0x37d65d(0x181)),_0x14bef2=_0x369709==='1'||_0x369709==='true';return{'appCode':typeof _0x3cf9fc===_0x37d65d(0x1bc)&&_0x3cf9fc[_0x37d65d(0x194)]()?_0x3cf9fc['trim']():undefined,'appCodeSource':_0x5d39ec,'env':_0x58b1e6,'locale':_0x3e6f71,'cookie':_0x504b1c,'accessKey':_0x181cc8,'format':_0x443d39,'pageSize':_0x462d3e,'riskLevel':_0x3707b7,'verbose':_0x14bef2,'defaultApp':_0x1a5c55,'currentApp':typeof _0x31217e===_0x37d65d(0x1bc)?_0x31217e:undefined,'raw':_0x567592};}function env(_0x10716f){return productEnv(_0x10716f);}async function buildAuth(_0x51bd8f){const _0x5a20c4=a73_0x5926b1,_0x1af31d='',_0x39e34c=!!_0x51bd8f[_0x5a20c4(0x174)];return{'cookie':_0x1af31d,'isLoggedIn':_0x39e34c,async 'getOrLogin'(){const _0x4799e0=_0x5a20c4;if(_0x39e34c)return _0x1af31d;throw CliErrors[_0x4799e0(0x184)]();}};}