@lovrabet/lovrabet-cli 2.2.5-beta.2 → 2.2.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +3 -3
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.d.ts +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.d.ts +2 -2
  19. package/lib/commands/bff/exec.js +1 -1
  20. package/lib/commands/bff/index.js +1 -1
  21. package/lib/commands/cli-skill/index.js +1 -1
  22. package/lib/commands/common/config-policy.js +1 -1
  23. package/lib/commands/common/constraints.js +1 -1
  24. package/lib/commands/common/flags.d.ts +1 -1
  25. package/lib/commands/common/flags.js +1 -1
  26. package/lib/commands/common/local-file.js +1 -1
  27. package/lib/commands/config/definitions.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.d.ts +1 -1
  99. package/lib/constant/domain.js +1 -1
  100. package/lib/constant/env.js +1 -1
  101. package/lib/constant/output.js +1 -1
  102. package/lib/constant/product.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +6 -6
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/sdk-client.d.ts +3 -3
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +3 -3
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/help.js +1 -1
  132. package/lib/postinstall.js +1 -1
  133. package/lib/runtime/confirmation.js +1 -1
  134. package/lib/runtime/event.js +1 -1
  135. package/lib/runtime/index.js +1 -1
  136. package/lib/runtime/queue.js +1 -1
  137. package/lib/runtime/resolve.js +1 -1
  138. package/lib/skills/builtin-skill.js +1 -1
  139. package/lib/skills/npx-skills-add.js +1 -1
  140. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  141. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  142. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  143. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  144. package/lib/skills/runtime-skill-sync/links.js +1 -1
  145. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  146. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  147. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  148. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  149. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  150. package/lib/skills/runtime-skill-sync/push.js +1 -1
  151. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  152. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  154. package/lib/skills/runtime-skill-sync.js +1 -1
  155. package/lib/skills/skill-presence.js +1 -1
  156. package/lib/utils/apply-jq-filter.js +1 -1
  157. package/lib/utils/logger.js +1 -1
  158. package/lib/utils/lossless-json.js +1 -1
  159. package/lib/utils/params.js +1 -1
  160. package/lib/utils/platform.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +2 -2
  165. package/skills/lovrabet/SKILL.md +19 -18
  166. package/skills/lovrabet/guides/dataset-and-data-workflow.md +2 -2
  167. package/skills/lovrabet/guides/sql-and-bff-workflow.md +7 -5
  168. package/skills/lovrabet/references/dataset-discovery-workflow.md +2 -2
  169. package/skills/lovrabet/references/lovrabet-app-config.md +1 -1
  170. package/skills/lovrabet/references/lovrabet-bff-workflow.md +1 -1
  171. package/skills/lovrabet/references/lovrabet-file-workflow.md +1 -1
  172. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +35 -7
  173. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +7 -6
  174. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a83_0x589b9c=a83_0x3e04;(function(_0x121dc0,_0x1bfc29){const _0x2a4459=a83_0x3e04,_0x395fd1=_0x121dc0();while(!![]){try{const _0x54ea63=parseInt(_0x2a4459(0x17f))/0x1*(parseInt(_0x2a4459(0x19f))/0x2)+-parseInt(_0x2a4459(0x172))/0x3+parseInt(_0x2a4459(0x18f))/0x4*(-parseInt(_0x2a4459(0x16b))/0x5)+-parseInt(_0x2a4459(0x1a4))/0x6+-parseInt(_0x2a4459(0x18b))/0x7*(-parseInt(_0x2a4459(0x16e))/0x8)+-parseInt(_0x2a4459(0x182))/0x9+parseInt(_0x2a4459(0x176))/0xa;if(_0x54ea63===_0x1bfc29)break;else _0x395fd1['push'](_0x395fd1['shift']());}catch(_0x594039){_0x395fd1['push'](_0x395fd1['shift']());}}}(a83_0x2cdf,0xb78ca));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a83_0x59fe35 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a83_0x3e04(_0x1b5115,_0x3bc94e){_0x1b5115=_0x1b5115-0x163;const _0x2cdff2=a83_0x2cdf();let _0x3e0435=_0x2cdff2[_0x1b5115];return _0x3e0435;}import{resolveNpmBin}from'../utils/platform.js';function a83_0x2cdf(){const _0xa96c41=['@lovrabet\x5clovrabet-cli','pipe','filter','install','@lovrabet/lovrabet-cli',']:\x20','latest','state','\x20CLI','\x20is\x20current.','reason','Already\x20up\x20to\x20date\x20(v','stderr','update','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','current','run','node_modules','status','valid','source','log','beta','bool','object','repairCommand','fromEntries','write','5CrsiAa','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','toLowerCase','152YzVZpO','warn','code','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','2365794cTqtcq','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','entries','boolean','21585530zlZFNl','\x20->\x20','args','validation','test','Checking\x20CLI\x20Built-in\x20Skill...','platform','skillVersion','unknown','301EeIhEU','exit\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','8817984Ovczlw','toString','Invalid\x20version:\x20','length','Version\x20comparison\x20failed:\x20','basename','INSTALL_FAILED','\x20version\x20from\x20npm.','Updated\x20to\x20v','62433zZCpFe','find','string','error','3901500oWuAqU','str','Update\x20failed:\x20','version','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Run\x20manually:\x20','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','join','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20CLI\x20Built-in\x20Skill\x20','/dist-tags','stdout','timeout','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','/-/package/','trim','9250SBXqlE','win32','dirname','Unable\x20to\x20resolve\x20','lib','1347432oyIwpO','Updating\x20','npm','inherit','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.'];a83_0x2cdf=function(){return _0xa96c41;};return a83_0x2cdf();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x589b9c(0x1af),'type':a83_0x589b9c(0x175),'description':a83_0x589b9c(0x197),'default':![]},{'name':a83_0x589b9c(0x165),'type':a83_0x589b9c(0x175),'description':a83_0x589b9c(0x1b7),'default':![]},{'name':a83_0x589b9c(0x192),'type':a83_0x589b9c(0x18d),'description':a83_0x589b9c(0x193)}];function getRequestedVersion(_0x105fec){const _0x56a55a=a83_0x589b9c,_0x2db670=_0x105fec[_0x56a55a(0x190)]('version')[_0x56a55a(0x19e)]();if(_0x2db670)return _0x2db670;return String(_0x105fec[_0x56a55a(0x178)]?.[0x0]??'')[_0x56a55a(0x19e)]();}async function validateUpdateFlags(_0x230d49){const _0x319f75=a83_0x589b9c,_0x3d9664=getRequestedVersion(_0x230d49),_0x46aec5=[_0x230d49[_0x319f75(0x166)](_0x319f75(0x1af))?_0x319f75(0x1af):'',_0x230d49['bool'](_0x319f75(0x165))?_0x319f75(0x165):'',_0x3d9664?_0x319f75(0x192):''][_0x319f75(0x1ab)](Boolean);if(_0x46aec5[_0x319f75(0x185)]>0x1)throw CliErrors[_0x319f75(0x179)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x319f75(0x16c));if(_0x3d9664&&!a83_0x59fe35[_0x319f75(0x1bc)](_0x3d9664))throw CliErrors['validation'](_0x319f75(0x184)+_0x3d9664,_0x319f75(0x1a8));}async function fetchNpmDistTags(){const _0x2bc0c7=a83_0x589b9c;try{const _0x3127df=NPM_REGISTRY_BASE_URL+_0x2bc0c7(0x19d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2bc0c7(0x199),_0x4298f0=await fetch(_0x3127df,{'signal':AbortSignal[_0x2bc0c7(0x19b)](0x2710)});if(!_0x4298f0['ok'])return null;const _0xf3f9e4=await _0x4298f0['json']();if(!_0xf3f9e4||typeof _0xf3f9e4!==_0x2bc0c7(0x167))return null;return Object[_0x2bc0c7(0x169)](Object[_0x2bc0c7(0x174)](_0xf3f9e4)[_0x2bc0c7(0x1ab)](([,_0x42c1c8])=>typeof _0x42c1c8===_0x2bc0c7(0x18d)&&_0x42c1c8[_0x2bc0c7(0x19e)]())['map'](([_0x2b86be,_0x40c02f])=>[_0x2b86be,String(_0x40c02f)[_0x2bc0c7(0x19e)]()]));}catch{return null;}}async function resolveTargetVersion(_0x15b5c5){const _0x21537b=a83_0x589b9c,_0x5cd761=getRequestedVersion(_0x15b5c5);if(_0x5cd761)return{'version':_0x5cd761,'source':_0x21537b(0x192)};const _0x11c3b3=_0x15b5c5[_0x21537b(0x166)](_0x21537b(0x165))?'beta':_0x21537b(0x1af),_0x53eb52=await fetchNpmDistTags(),_0x15e778=_0x53eb52?.[_0x11c3b3];if(!_0x15e778)return null;return{'version':_0x15e778,'source':_0x11c3b3};}function shouldInstallTarget(_0x1ebac3,_0x3320a0){const _0x111577=a83_0x589b9c;if(_0x3320a0[_0x111577(0x163)]==='version'||_0x3320a0[_0x111577(0x163)]==='beta')return!a83_0x59fe35['eq'](_0x1ebac3,_0x3320a0[_0x111577(0x192)]);return a83_0x59fe35['lt'](_0x1ebac3,_0x3320a0[_0x111577(0x192)]);}export function installCliPackage(_0x3cc86e,_0x2d1003,_0x13c83b=resolveCurrentCliNpmPrefix()){const _0x199c93=a83_0x589b9c,_0x2526bc=resolveNpmBin(_0x199c93(0x1a6)),_0x655dd6=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3cc86e,_0x36f8cd=[_0x199c93(0x1ac),'-g',_0x655dd6],_0x5b7d99=runNpmInstall(_0x2526bc,_0x36f8cd,_0x2d1003);if(_0x5b7d99['ok']||!isNpmPrefixPermissionError(_0x5b7d99[_0x199c93(0x18e)]))return _0x5b7d99;if(!_0x13c83b||_0x5b7d99['error']?.[_0x199c93(0x16d)]()['includes'](_0x13c83b['toLowerCase']()))return _0x5b7d99;return console[_0x199c93(0x16f)](_0x199c93(0x19c)+_0x13c83b),runNpmInstall(_0x2526bc,[..._0x36f8cd,'--prefix',_0x13c83b],_0x2d1003);}export function resolveCurrentCliNpmPrefix(_0x190cfe=fileURLToPath(import.meta.url),_0x283698=process[a83_0x589b9c(0x17c)]){const _0x59aeee=a83_0x589b9c,_0x523be0=_0x283698==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x15e903=_0x523be0['dirname'](_0x523be0['dirname'](_0x523be0['dirname'](_0x190cfe))),_0x143e13=_0x283698===_0x59aeee(0x1a0)?_0x59aeee(0x1a9):_0x59aeee(0x1ad);let _0x2e8974=_0x523be0['dirname'](_0x15e903);while(!![]){if(_0x523be0[_0x59aeee(0x187)](_0x2e8974)===_0x59aeee(0x1ba)&&_0x523be0['relative'](_0x2e8974,_0x15e903)===_0x143e13){const _0x601984=_0x523be0[_0x59aeee(0x1a1)](_0x2e8974);return _0x523be0['basename'](_0x601984)===_0x59aeee(0x1a3)?_0x523be0[_0x59aeee(0x1a1)](_0x601984):_0x601984;}const _0x253249=_0x523be0['dirname'](_0x2e8974);if(_0x253249===_0x2e8974)return null;_0x2e8974=_0x253249;}}function runNpmInstall(_0x296805,_0x3d0dae,_0x25084a){const _0x59d55a=a83_0x589b9c;console[_0x59d55a(0x164)]('*\x20'+[_0x296805,..._0x3d0dae][_0x59d55a(0x196)]('\x20'));const _0x539f19=spawnSync(_0x296805,_0x3d0dae,{'cwd':process['cwd'](),'stdio':_0x59d55a(0x1aa),'env':process.env,'shell':![]}),_0x590929=_0x539f19['stderr']?_0x539f19[_0x59d55a(0x1b5)][_0x59d55a(0x183)]()[_0x59d55a(0x19e)]():'',_0x2970a7=_0x539f19[_0x59d55a(0x19a)]?_0x539f19[_0x59d55a(0x19a)][_0x59d55a(0x183)]()[_0x59d55a(0x19e)]():'';if(!_0x25084a){if(_0x2970a7)process[_0x59d55a(0x19a)][_0x59d55a(0x16a)](_0x2970a7+'\x0a');if(_0x590929)process[_0x59d55a(0x1b5)][_0x59d55a(0x16a)](_0x590929+'\x0a');}if(_0x539f19[_0x59d55a(0x1bb)]===0x0)return{'ok':!![]};const _0x384a90=_0x539f19[_0x59d55a(0x18e)]?.['message']||_0x590929||_0x2970a7||_0x59d55a(0x180)+(_0x539f19[_0x59d55a(0x1bb)]??'unknown');return{'ok':![],'error':_0x384a90};}function isNpmPrefixPermissionError(_0x577b82){const _0x403f85=a83_0x589b9c;return Boolean(_0x577b82&&/\b(?:EACCES|EPERM)\b/[_0x403f85(0x17a)](_0x577b82));}function repairCurrentBuiltinSkill(_0x409697){const _0xbb4b22=a83_0x589b9c;console['log'](_0xbb4b22(0x17b));const _0x581c21=installBuiltinSkill({'stdio':_0x409697?'pipe':_0xbb4b22(0x1a7)});if(_0x581c21['ok'])return console['log'](_0xbb4b22(0x198)+_0x581c21[_0xbb4b22(0x17d)]+_0xbb4b22(0x1b2)),!![];return console[_0xbb4b22(0x16f)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x581c21[_0xbb4b22(0x170)]||_0xbb4b22(0x188))+_0xbb4b22(0x1ae)+(_0x581c21[_0xbb4b22(0x18e)]||_0xbb4b22(0x17e))),console['log']('\x20\x20Run\x20manually:\x20'+_0x581c21[_0xbb4b22(0x168)]),![];}function verifyUpdatedBuiltinSkill(_0x260618){const _0x18958a=a83_0x589b9c;console[_0x18958a(0x164)](_0x18958a(0x17b));const _0x203ca9=inspectInstalledBuiltinSkillVersion(_0x260618);if(_0x203ca9[_0x18958a(0x1b0)]===_0x18958a(0x1b8))return console[_0x18958a(0x164)](_0x18958a(0x198)+_0x260618+_0x18958a(0x1b2)),!![];console[_0x18958a(0x16f)](_0x18958a(0x195)+_0x203ca9[_0x18958a(0x1b0)]+'.');if(_0x203ca9['reason'])console[_0x18958a(0x16f)]('\x20\x20'+_0x203ca9[_0x18958a(0x1b3)]);return console[_0x18958a(0x164)](_0x18958a(0x194)+_0x203ca9['repairCommand']),![];}async function execute(_0x3afc45){const _0x3a0019=a83_0x589b9c;await validateUpdateFlags(_0x3afc45);const _0x1f58c8=getCliVersion();console['log']('Current\x20version:\x20'+_0x1f58c8),console[_0x3a0019(0x164)]('Checking\x20npm\x20dist-tags...');const _0xdb3616=await resolveTargetVersion(_0x3afc45);if(!_0xdb3616){const _0x22595=_0x3afc45['bool'](_0x3a0019(0x165))?_0x3a0019(0x165):_0x3a0019(0x1af),_0x32aaaf=_0x3a0019(0x1a2)+_0x22595+_0x3a0019(0x189);return console['warn'](_0x32aaaf),console[_0x3a0019(0x164)](_0x3a0019(0x171)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22595),{'ok':![]};}const _0x380259=[_0x1f58c8,_0xdb3616[_0x3a0019(0x192)]][_0x3a0019(0x18c)](_0x4ee07d=>!a83_0x59fe35[_0x3a0019(0x1bc)](_0x4ee07d));if(_0x380259)return console[_0x3a0019(0x16f)](_0x3a0019(0x186)+_0x380259+'.'),{'ok':![]};if(!shouldInstallTarget(_0x1f58c8,_0xdb3616)){const _0x2f0df5=_0xdb3616[_0x3a0019(0x163)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0xdb3616[_0x3a0019(0x192)]+').':_0x3a0019(0x1b4)+_0xdb3616[_0x3a0019(0x192)]+').';return console[_0x3a0019(0x164)](_0x2f0df5),{'ok':repairCurrentBuiltinSkill(_0x3afc45['nonInteractive'])};}console['log'](_0x3a0019(0x1a5)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1f58c8+_0x3a0019(0x177)+_0xdb3616[_0x3a0019(0x192)]);const _0x4d6add=installCliPackage(_0xdb3616[_0x3a0019(0x192)],_0x3afc45['nonInteractive']);if(!_0x4d6add['ok']){const _0x1de8b6=_0x3a0019(0x191)+(_0x4d6add[_0x3a0019(0x18e)]||_0x3a0019(0x17e));return console[_0x3a0019(0x18e)](_0x1de8b6),console[_0x3a0019(0x164)](_0x3a0019(0x173)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xdb3616[_0x3a0019(0x192)]),{'ok':![]};}return console['log'](_0x3a0019(0x18a)+_0xdb3616['version']+'.'),console[_0x3a0019(0x164)](_0x3a0019(0x181)),{'ok':verifyUpdatedBuiltinSkill(_0xdb3616[_0x3a0019(0x192)])};}export const updateDefinition={'service':a83_0x589b9c(0x1b6),'command':a83_0x589b9c(0x1b9),'description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+a83_0x589b9c(0x1b1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a83_0x5624ea=a83_0x3524;(function(_0x2eecb3,_0x16cdb0){const _0x318f7a=a83_0x3524,_0xef8a2=_0x2eecb3();while(!![]){try{const _0x5bd317=-parseInt(_0x318f7a(0x14e))/0x1+-parseInt(_0x318f7a(0x15e))/0x2+-parseInt(_0x318f7a(0x16a))/0x3+parseInt(_0x318f7a(0x13f))/0x4+-parseInt(_0x318f7a(0x15d))/0x5+parseInt(_0x318f7a(0x163))/0x6*(parseInt(_0x318f7a(0x172))/0x7)+parseInt(_0x318f7a(0x171))/0x8*(parseInt(_0x318f7a(0x12c))/0x9);if(_0x5bd317===_0x16cdb0)break;else _0xef8a2['push'](_0xef8a2['shift']());}catch(_0x35727a){_0xef8a2['push'](_0xef8a2['shift']());}}}(a83_0xbe54,0x7b795));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a83_0x18c15a from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a83_0xbe54(){const _0x21e94e=['exit\x20','beta','warn','entries','node_modules','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','basename','/dist-tags','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','1243210OxGmZK','983426ricGyM','lib','npm','object','message','2941248wUeLBz','\x20\x20Run\x20manually:\x20','str','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','Install\x20a\x20specific\x20CLI\x20version','log','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','2255049fUyVnJ','valid','version','join','relative','\x20is\x20current.','toLowerCase','9485416UifonY','14AwWxjb','repairCommand','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Checking\x20CLI\x20Built-in\x20Skill...','Unable\x20to\x20resolve\x20','INSTALL_FAILED','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','find','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20->\x20','state','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','latest','filter','Already\x20on\x20requested\x20version\x20(v','error','status','9HvTeqh','/-/package/','boolean','\x20CLI','stdout',']:\x20','inherit','Invalid\x20version:\x20','dirname','source','toString','\x20\x20CLI\x20Built-in\x20Skill\x20','string','update','pipe','从\x20npm\x20更新\x20','win32','json','includes','828596sZiJZL','write','validation','map','unknown','@lovrabet\x5clovrabet-cli','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Checking\x20npm\x20dist-tags...','skillVersion','read','Update\x20failed:\x20','Current\x20version:\x20','cwd','install','nonInteractive','375455dExxvo','stderr','bool','trim','reason','Version\x20comparison\x20failed:\x20'];a83_0xbe54=function(){return _0x21e94e;};return a83_0xbe54();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x5624ea(0x17e),'type':a83_0x5624ea(0x12e),'description':a83_0x5624ea(0x169),'default':![]},{'name':a83_0x5624ea(0x155),'type':a83_0x5624ea(0x12e),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a83_0x5624ea(0x138),'description':a83_0x5624ea(0x167)}];function getRequestedVersion(_0x13ad49){const _0xbe3e9f=a83_0x5624ea,_0x1c2087=_0x13ad49[_0xbe3e9f(0x165)](_0xbe3e9f(0x16c))[_0xbe3e9f(0x151)]();if(_0x1c2087)return _0x1c2087;return String(_0x13ad49['args']?.[0x0]??'')[_0xbe3e9f(0x151)]();}async function validateUpdateFlags(_0x1d3882){const _0xf82cda=a83_0x5624ea,_0x20431d=getRequestedVersion(_0x1d3882),_0x2c8776=[_0x1d3882['bool']('latest')?_0xf82cda(0x17e):'',_0x1d3882[_0xf82cda(0x150)](_0xf82cda(0x155))?'beta':'',_0x20431d?'version':'']['filter'](Boolean);if(_0x2c8776['length']>0x1)throw CliErrors[_0xf82cda(0x141)](_0xf82cda(0x17a),_0xf82cda(0x178));if(_0x20431d&&!a83_0x18c15a[_0xf82cda(0x16b)](_0x20431d))throw CliErrors[_0xf82cda(0x141)](_0xf82cda(0x133)+_0x20431d,_0xf82cda(0x15c));}async function fetchNpmDistTags(){const _0x3c0df2=a83_0x5624ea;try{const _0x2e65d0=NPM_REGISTRY_BASE_URL+_0x3c0df2(0x12d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3c0df2(0x15b),_0x27131d=await fetch(_0x2e65d0,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x27131d['ok'])return null;const _0xc22706=await _0x27131d[_0x3c0df2(0x13d)]();if(!_0xc22706||typeof _0xc22706!==_0x3c0df2(0x161))return null;return Object['fromEntries'](Object[_0x3c0df2(0x157)](_0xc22706)[_0x3c0df2(0x17f)](([,_0x14cc13])=>typeof _0x14cc13==='string'&&_0x14cc13[_0x3c0df2(0x151)]())[_0x3c0df2(0x142)](([_0x48123d,_0x12fd2a])=>[_0x48123d,String(_0x12fd2a)[_0x3c0df2(0x151)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5c8286){const _0x4b508a=a83_0x5624ea,_0x111241=getRequestedVersion(_0x5c8286);if(_0x111241)return{'version':_0x111241,'source':_0x4b508a(0x16c)};const _0x4489f5=_0x5c8286['bool'](_0x4b508a(0x155))?_0x4b508a(0x155):'latest',_0x3fecb9=await fetchNpmDistTags(),_0x44c4e0=_0x3fecb9?.[_0x4489f5];if(!_0x44c4e0)return null;return{'version':_0x44c4e0,'source':_0x4489f5};}function shouldInstallTarget(_0x4b352a,_0x392a3f){const _0xae4692=a83_0x5624ea;if(_0x392a3f[_0xae4692(0x135)]===_0xae4692(0x16c)||_0x392a3f[_0xae4692(0x135)]===_0xae4692(0x155))return!a83_0x18c15a['eq'](_0x4b352a,_0x392a3f[_0xae4692(0x16c)]);return a83_0x18c15a['lt'](_0x4b352a,_0x392a3f[_0xae4692(0x16c)]);}export function installCliPackage(_0x5bff08,_0x16a2bd,_0x44eae3=resolveCurrentCliNpmPrefix()){const _0x5f3430=a83_0x5624ea,_0x24246a=resolveNpmBin(_0x5f3430(0x160)),_0x3ef1d5=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5bff08,_0x5df3ac=[_0x5f3430(0x14c),'-g',_0x3ef1d5],_0x11ac97=runNpmInstall(_0x24246a,_0x5df3ac,_0x16a2bd);if(_0x11ac97['ok']||!isNpmPrefixPermissionError(_0x11ac97[_0x5f3430(0x12a)]))return _0x11ac97;if(!_0x44eae3||_0x11ac97[_0x5f3430(0x12a)]?.[_0x5f3430(0x170)]()[_0x5f3430(0x13e)](_0x44eae3[_0x5f3430(0x170)]()))return _0x11ac97;return console[_0x5f3430(0x156)](_0x5f3430(0x166)+_0x44eae3),runNpmInstall(_0x24246a,[..._0x5df3ac,'--prefix',_0x44eae3],_0x16a2bd);}export function resolveCurrentCliNpmPrefix(_0x33e9e6=fileURLToPath(import.meta.url),_0xd6bf4c=process['platform']){const _0x4f361d=a83_0x5624ea,_0x3920d9=_0xd6bf4c==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x502331=_0x3920d9[_0x4f361d(0x134)](_0x3920d9[_0x4f361d(0x134)](_0x3920d9[_0x4f361d(0x134)](_0x33e9e6))),_0x1d7ddd=_0xd6bf4c===_0x4f361d(0x13c)?_0x4f361d(0x144):'@lovrabet/lovrabet-cli';let _0x26e099=_0x3920d9[_0x4f361d(0x134)](_0x502331);while(!![]){if(_0x3920d9[_0x4f361d(0x15a)](_0x26e099)===_0x4f361d(0x158)&&_0x3920d9[_0x4f361d(0x16e)](_0x26e099,_0x502331)===_0x1d7ddd){const _0x39c8fc=_0x3920d9[_0x4f361d(0x134)](_0x26e099);return _0x3920d9[_0x4f361d(0x15a)](_0x39c8fc)===_0x4f361d(0x15f)?_0x3920d9[_0x4f361d(0x134)](_0x39c8fc):_0x39c8fc;}const _0x153c83=_0x3920d9[_0x4f361d(0x134)](_0x26e099);if(_0x153c83===_0x26e099)return null;_0x26e099=_0x153c83;}}function runNpmInstall(_0x18c8a1,_0x288674,_0x27b9f2){const _0x3626c2=a83_0x5624ea;console[_0x3626c2(0x168)]('*\x20'+[_0x18c8a1,..._0x288674][_0x3626c2(0x16d)]('\x20'));const _0x3c699c=spawnSync(_0x18c8a1,_0x288674,{'cwd':process[_0x3626c2(0x14b)](),'stdio':_0x3626c2(0x13a),'env':process.env,'shell':![]}),_0x219e2a=_0x3c699c[_0x3626c2(0x14f)]?_0x3c699c[_0x3626c2(0x14f)][_0x3626c2(0x136)]()[_0x3626c2(0x151)]():'',_0x4d7462=_0x3c699c[_0x3626c2(0x130)]?_0x3c699c['stdout']['toString']()[_0x3626c2(0x151)]():'';if(!_0x27b9f2){if(_0x4d7462)process[_0x3626c2(0x130)]['write'](_0x4d7462+'\x0a');if(_0x219e2a)process[_0x3626c2(0x14f)][_0x3626c2(0x140)](_0x219e2a+'\x0a');}if(_0x3c699c['status']===0x0)return{'ok':!![]};const _0x19f169=_0x3c699c[_0x3626c2(0x12a)]?.[_0x3626c2(0x162)]||_0x219e2a||_0x4d7462||_0x3626c2(0x154)+(_0x3c699c[_0x3626c2(0x12b)]??_0x3626c2(0x143));return{'ok':![],'error':_0x19f169};}function isNpmPrefixPermissionError(_0x2c7a1a){return Boolean(_0x2c7a1a&&/\b(?:EACCES|EPERM)\b/['test'](_0x2c7a1a));}function repairCurrentBuiltinSkill(_0x301a2e){const _0x4a88c6=a83_0x5624ea;console[_0x4a88c6(0x168)](_0x4a88c6(0x175));const _0x22fa14=installBuiltinSkill({'stdio':_0x301a2e?'pipe':_0x4a88c6(0x132)});if(_0x22fa14['ok'])return console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x22fa14[_0x4a88c6(0x147)]+_0x4a88c6(0x16f)),!![];return console[_0x4a88c6(0x156)](_0x4a88c6(0x145)+(_0x22fa14['code']||_0x4a88c6(0x177))+_0x4a88c6(0x131)+(_0x22fa14['error']||'unknown')),console[_0x4a88c6(0x168)](_0x4a88c6(0x164)+_0x22fa14[_0x4a88c6(0x173)]),![];}function verifyUpdatedBuiltinSkill(_0x241f0d){const _0xfc2954=a83_0x5624ea;console[_0xfc2954(0x168)](_0xfc2954(0x175));const _0x2968f0=inspectInstalledBuiltinSkillVersion(_0x241f0d);if(_0x2968f0[_0xfc2954(0x17c)]==='current')return console[_0xfc2954(0x168)](_0xfc2954(0x137)+_0x241f0d+'\x20is\x20current.'),!![];console[_0xfc2954(0x156)](_0xfc2954(0x17d)+_0x2968f0[_0xfc2954(0x17c)]+'.');if(_0x2968f0[_0xfc2954(0x152)])console[_0xfc2954(0x156)]('\x20\x20'+_0x2968f0[_0xfc2954(0x152)]);return console[_0xfc2954(0x168)](_0xfc2954(0x164)+_0x2968f0[_0xfc2954(0x173)]),![];}async function execute(_0x11cf45){const _0x51377f=a83_0x5624ea;await validateUpdateFlags(_0x11cf45);const _0x1b4677=getCliVersion();console[_0x51377f(0x168)](_0x51377f(0x14a)+_0x1b4677),console[_0x51377f(0x168)](_0x51377f(0x146));const _0x4e7dd7=await resolveTargetVersion(_0x11cf45);if(!_0x4e7dd7){const _0x3966c2=_0x11cf45[_0x51377f(0x150)]('beta')?_0x51377f(0x155):_0x51377f(0x17e),_0x5eb238=_0x51377f(0x176)+_0x3966c2+'\x20version\x20from\x20npm.';return console['warn'](_0x5eb238),console['log'](_0x51377f(0x159)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3966c2),{'ok':![]};}const _0x5d342b=[_0x1b4677,_0x4e7dd7[_0x51377f(0x16c)]][_0x51377f(0x179)](_0x2ea1=>!a83_0x18c15a[_0x51377f(0x16b)](_0x2ea1));if(_0x5d342b)return console['warn'](_0x51377f(0x153)+_0x5d342b+'.'),{'ok':![]};if(!shouldInstallTarget(_0x1b4677,_0x4e7dd7)){const _0x450ce6=_0x4e7dd7[_0x51377f(0x135)]==='version'?_0x51377f(0x129)+_0x4e7dd7[_0x51377f(0x16c)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4e7dd7[_0x51377f(0x16c)]+').';return console[_0x51377f(0x168)](_0x450ce6),{'ok':repairCurrentBuiltinSkill(_0x11cf45[_0x51377f(0x14d)])};}console[_0x51377f(0x168)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1b4677+_0x51377f(0x17b)+_0x4e7dd7[_0x51377f(0x16c)]);const _0x2fb40d=installCliPackage(_0x4e7dd7[_0x51377f(0x16c)],_0x11cf45[_0x51377f(0x14d)]);if(!_0x2fb40d['ok']){const _0x4d244d=_0x51377f(0x149)+(_0x2fb40d['error']||_0x51377f(0x143));return console[_0x51377f(0x12a)](_0x4d244d),console[_0x51377f(0x168)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4e7dd7[_0x51377f(0x16c)]),{'ok':![]};}return console[_0x51377f(0x168)]('Updated\x20to\x20v'+_0x4e7dd7[_0x51377f(0x16c)]+'.'),console[_0x51377f(0x168)](_0x51377f(0x174)),{'ok':verifyUpdatedBuiltinSkill(_0x4e7dd7[_0x51377f(0x16c)])};}function a83_0x3524(_0x498073,_0x580567){_0x498073=_0x498073-0x129;const _0xbe5489=a83_0xbe54();let _0x35249e=_0xbe5489[_0x498073];return _0x35249e;}export const updateDefinition={'service':a83_0x5624ea(0x139),'command':'run','description':a83_0x5624ea(0x13b)+CLI_BIN_NAME+a83_0x5624ea(0x12f),'risk':a83_0x5624ea(0x148),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a84_0x16768b=a84_0x31e1;(function(_0x2df6eb,_0x48241c){const _0x3b08ba=a84_0x31e1,_0x2b8ba9=_0x2df6eb();while(!![]){try{const _0x574459=parseInt(_0x3b08ba(0x1f8))/0x1+-parseInt(_0x3b08ba(0x1ff))/0x2*(-parseInt(_0x3b08ba(0x205))/0x3)+parseInt(_0x3b08ba(0x20b))/0x4+parseInt(_0x3b08ba(0x204))/0x5*(-parseInt(_0x3b08ba(0x1f9))/0x6)+-parseInt(_0x3b08ba(0x202))/0x7*(-parseInt(_0x3b08ba(0x20d))/0x8)+parseInt(_0x3b08ba(0x200))/0x9+-parseInt(_0x3b08ba(0x20e))/0xa;if(_0x574459===_0x48241c)break;else _0x2b8ba9['push'](_0x2b8ba9['shift']());}catch(_0x36bb25){_0x2b8ba9['push'](_0x2b8ba9['shift']());}}}(a84_0x12cf,0x9075a));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x16768b(0x20f),SUPPORTED_PROVIDERS=[a84_0x16768b(0x209)];function a84_0x31e1(_0x2c9860,_0x2f08c0){_0x2c9860=_0x2c9860-0x1f4;const _0x12cf9d=a84_0x12cf();let _0x31e1b8=_0x12cf9d[_0x2c9860];return _0x31e1b8;}function readBindingInput(_0x36bdfd){const _0x379f39=a84_0x16768b,_0x2b619d=_0x36bdfd[_0x379f39(0x20c)](_0x379f39(0x208))['trim']()[_0x379f39(0x1fe)]();if(!SUPPORTED_PROVIDERS[_0x379f39(0x210)](_0x2b619d))throw CliErrors[_0x379f39(0x207)](_0x379f39(0x1f7)+(_0x2b619d||'(empty)')+'.',_0x379f39(0x1fa)+SUPPORTED_PROVIDERS[_0x379f39(0x211)](',\x20')+'.');const _0x47ab6e=_0x36bdfd['str'](_0x379f39(0x206))['trim']();if(!_0x47ab6e)throw CliErrors[_0x379f39(0x207)](_0x379f39(0x201),_0x379f39(0x1fb));return{'provider':_0x2b619d,'accountId':_0x47ab6e};}function buildBindingData(_0x339a12,_0x8b8e34,_0x14696e){const _0x1cd4fa=a84_0x16768b;return{'operation':_0x1cd4fa(0x1fc),'selector':{'provider':_0x339a12,'accountId':_0x8b8e34},'before':null,'after':{'provider':_0x339a12,'accountId':_0x8b8e34,'bound':!![]},'dryRun':_0x14696e,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0x16768b(0x212),'command':a84_0x16768b(0x1fc),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a84_0x16768b(0x203),'confirmationDescription':'将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a84_0x16768b(0x208),'type':a84_0x16768b(0x213),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a84_0x16768b(0x206),'type':a84_0x16768b(0x213),'required':!![],'description':a84_0x16768b(0x1fd)}],async 'validate'(_0x3ee89d){readBindingInput(_0x3ee89d);},async 'dryRun'(_0x1b8110){const {provider:_0x564a6a,accountId:_0x15b389}=readBindingInput(_0x1b8110);return{...buildBindingData(_0x564a6a,_0x15b389,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x564a6a,'accountId':_0x15b389}};},async 'execute'(_0x5acf2b){const _0x5a25a6=a84_0x16768b,{provider:_0x166a78,accountId:_0x303614}=readBindingInput(_0x5acf2b),_0x389d67=await bindExternalUserAccount(_0x166a78,_0x303614);if(_0x389d67!==!![])throw CliErrors[_0x5a25a6(0x1f5)](_0x5a25a6(0x1f6),_0x5a25a6(0x1f4));return{'ok':!![],'data':buildBindingData(_0x166a78,_0x303614,![]),'message':_0x5a25a6(0x20a)};}};function a84_0x12cf(){const _0x31f847=['Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','bind','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','toLowerCase','14020yOyYHr','4856742sqUyKn','--account-id\x20cannot\x20be\x20empty.','3515078qabaUF','write','10590LKNPtz','45ZsrzrW','account-id','validation','provider','dingtalk','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','3110208xKVTZv','str','8igyUbe','12659670hBaWqR','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','includes','join','user-account','string','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','apiError','External\x20account\x20binding\x20was\x20not\x20confirmed.','Unsupported\x20provider:\x20','1004887yDeUCs','3036BCLonQ','Pass\x20one\x20of:\x20'];a84_0x12cf=function(){return _0x31f847;};return a84_0x12cf();}
1
+ const a84_0x3075de=a84_0x586b;(function(_0x404e97,_0x4dbc4c){const _0x29e5be=a84_0x586b,_0x373e21=_0x404e97();while(!![]){try{const _0x3e0590=parseInt(_0x29e5be(0x1a9))/0x1+parseInt(_0x29e5be(0x1b5))/0x2*(parseInt(_0x29e5be(0x1aa))/0x3)+-parseInt(_0x29e5be(0x198))/0x4*(-parseInt(_0x29e5be(0x1a3))/0x5)+-parseInt(_0x29e5be(0x1a4))/0x6*(-parseInt(_0x29e5be(0x1b3))/0x7)+-parseInt(_0x29e5be(0x1a0))/0x8+parseInt(_0x29e5be(0x1ab))/0x9*(parseInt(_0x29e5be(0x1a6))/0xa)+-parseInt(_0x29e5be(0x1a5))/0xb*(parseInt(_0x29e5be(0x1b7))/0xc);if(_0x3e0590===_0x4dbc4c)break;else _0x373e21['push'](_0x373e21['shift']());}catch(_0x2bcea9){_0x373e21['push'](_0x373e21['shift']());}}}(a84_0x20ba,0x6858b));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a84_0x20ba(){const _0x1120d7=['write','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','join','Unsupported\x20provider:\x20','7udllwG','account-id','106FRQeHH','includes','12IaJhTy','1332764QGxGHd','(empty)','bind','External\x20account\x20binding\x20was\x20not\x20confirmed.','provider','string','validation','--account-id\x20cannot\x20be\x20empty.','2115336cITBDa','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','Pass\x20one\x20of:\x20','5ZUsrtr','4541766KjdKDU','21481009NPeucG','4709180JETWgU','str','trim','611498QJlxdX','26721NCiXqK','9cBfQmm','External\x20account\x20provider','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','POST'];a84_0x20ba=function(){return _0x1120d7;};return a84_0x20ba();}import{CliErrors}from'../../errors.js';function a84_0x586b(_0x4bd020,_0x510e52){_0x4bd020=_0x4bd020-0x198;const _0x20baad=a84_0x20ba();let _0x586b1b=_0x20baad[_0x4bd020];return _0x586b1b;}const CURRENT_BINDING_WARNING=a84_0x3075de(0x1b0),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x32b0ea){const _0x3dc96c=a84_0x3075de,_0x197c48=_0x32b0ea[_0x3dc96c(0x1a7)](_0x3dc96c(0x19c))[_0x3dc96c(0x1a8)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x3dc96c(0x1b6)](_0x197c48))throw CliErrors[_0x3dc96c(0x19e)](_0x3dc96c(0x1b2)+(_0x197c48||_0x3dc96c(0x199))+'.',_0x3dc96c(0x1a2)+SUPPORTED_PROVIDERS[_0x3dc96c(0x1b1)](',\x20')+'.');const _0x1670f9=_0x32b0ea['str'](_0x3dc96c(0x1b4))[_0x3dc96c(0x1a8)]();if(!_0x1670f9)throw CliErrors[_0x3dc96c(0x19e)](_0x3dc96c(0x19f),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x197c48,'accountId':_0x1670f9};}function buildBindingData(_0x4ac142,_0xde0b6,_0x5a66fd){return{'operation':'bind','selector':{'provider':_0x4ac142,'accountId':_0xde0b6},'before':null,'after':{'provider':_0x4ac142,'accountId':_0xde0b6,'bound':!![]},'dryRun':_0x5a66fd,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':'user-account','command':a84_0x3075de(0x19a),'description':a84_0x3075de(0x1ad),'risk':a84_0x3075de(0x1af),'confirmationDescription':'将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a84_0x3075de(0x19d),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x3075de(0x1ac)},{'name':'account-id','type':a84_0x3075de(0x19d),'required':!![],'description':a84_0x3075de(0x1a1)}],async 'validate'(_0x566d57){readBindingInput(_0x566d57);},async 'dryRun'(_0x1b1a3d){const _0x256d27=a84_0x3075de,{provider:_0x58989d,accountId:_0x5c3244}=readBindingInput(_0x1b1a3d);return{...buildBindingData(_0x58989d,_0x5c3244,!![]),'method':_0x256d27(0x1ae),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x58989d,'accountId':_0x5c3244}};},async 'execute'(_0x4dd9d2){const _0x2883b0=a84_0x3075de,{provider:_0xf219f7,accountId:_0x366bd4}=readBindingInput(_0x4dd9d2),_0xbd160a=await bindExternalUserAccount(_0xf219f7,_0x366bd4);if(_0xbd160a!==!![])throw CliErrors['apiError'](_0x2883b0(0x19b),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0xf219f7,_0x366bd4,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
@@ -1 +1 @@
1
- function a85_0x3da9(_0x14c3c0,_0xb5677e){_0x14c3c0=_0x14c3c0-0xd9;const _0x53d9c8=a85_0x53d9();let _0x3da90c=_0x53d9c8[_0x14c3c0];return _0x3da90c;}(function(_0x175641,_0x85333a){const _0x50100b=a85_0x3da9,_0x35d2bf=_0x175641();while(!![]){try{const _0x569a18=-parseInt(_0x50100b(0xdb))/0x1+parseInt(_0x50100b(0xdc))/0x2*(-parseInt(_0x50100b(0xde))/0x3)+parseInt(_0x50100b(0xda))/0x4+-parseInt(_0x50100b(0xe2))/0x5+parseInt(_0x50100b(0xe0))/0x6*(parseInt(_0x50100b(0xdd))/0x7)+-parseInt(_0x50100b(0xdf))/0x8*(-parseInt(_0x50100b(0xe1))/0x9)+parseInt(_0x50100b(0xd9))/0xa;if(_0x569a18===_0x85333a)break;else _0x35d2bf['push'](_0x35d2bf['shift']());}catch(_0x1d6566){_0x35d2bf['push'](_0x35d2bf['shift']());}}}(a85_0x53d9,0xd1be8));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a85_0x53d9(){const _0x22534e=['2764040nwQwTD','3863028eEynTV','209264KAHNDi','581764QHWjSY','427707ZErSEm','12EupwEz','152crFrUr','108thDLmv','703251gySJYz','7973580gdtkfF'];a85_0x53d9=function(){return _0x22534e;};return a85_0x53d9();}
1
+ function a85_0x1b0f(_0x23312d,_0x3c03ca){_0x23312d=_0x23312d-0x1f2;const _0xa506b4=a85_0xa506();let _0x1b0f4a=_0xa506b4[_0x23312d];return _0x1b0f4a;}(function(_0x2096b3,_0x38d81a){const _0x3c41a9=a85_0x1b0f,_0x2f4c67=_0x2096b3();while(!![]){try{const _0x10c888=parseInt(_0x3c41a9(0x1f6))/0x1*(-parseInt(_0x3c41a9(0x1fc))/0x2)+parseInt(_0x3c41a9(0x1f7))/0x3*(-parseInt(_0x3c41a9(0x1fb))/0x4)+-parseInt(_0x3c41a9(0x1f9))/0x5*(-parseInt(_0x3c41a9(0x1f5))/0x6)+-parseInt(_0x3c41a9(0x1fa))/0x7*(-parseInt(_0x3c41a9(0x1f4))/0x8)+parseInt(_0x3c41a9(0x1f3))/0x9*(parseInt(_0x3c41a9(0x1f2))/0xa)+parseInt(_0x3c41a9(0x1f8))/0xb+-parseInt(_0x3c41a9(0x1fd))/0xc*(parseInt(_0x3c41a9(0x1fe))/0xd);if(_0x10c888===_0x38d81a)break;else _0x2f4c67['push'](_0x2f4c67['shift']());}catch(_0x43a166){_0x2f4c67['push'](_0x2f4c67['shift']());}}}(a85_0xa506,0x4f379));import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0xa506(){const _0x2b41f0=['1796535GBSjCT','56RJSlCl','44NcDDrY','1562EprFmE','12TvmcVw','4851223nccBxU','5857480PCZqFb','9FUjRDj','223336OHLEkp','6WOwsEl','658zOuHvf','8361QyNmaU','811888lNegIu'];a85_0xa506=function(){return _0x2b41f0;};return a85_0xa506();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a86_0x1b1650=a86_0x1ef8;(function(_0x391f22,_0x43c4d8){const _0x202d54=a86_0x1ef8,_0x4fe2bd=_0x391f22();while(!![]){try{const _0x59d7c1=-parseInt(_0x202d54(0x9e))/0x1+-parseInt(_0x202d54(0x9b))/0x2*(-parseInt(_0x202d54(0xc8))/0x3)+-parseInt(_0x202d54(0xc4))/0x4*(-parseInt(_0x202d54(0xaa))/0x5)+parseInt(_0x202d54(0x8f))/0x6*(-parseInt(_0x202d54(0x98))/0x7)+parseInt(_0x202d54(0xa8))/0x8*(-parseInt(_0x202d54(0xb0))/0x9)+-parseInt(_0x202d54(0xc7))/0xa+parseInt(_0x202d54(0xc6))/0xb;if(_0x59d7c1===_0x43c4d8)break;else _0x4fe2bd['push'](_0x4fe2bd['shift']());}catch(_0x27d8ff){_0x4fe2bd['push'](_0x4fe2bd['shift']());}}}(a86_0x4ec8,0xb5bc6));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a86_0x1ef8(_0x2068dd,_0xc77892){_0x2068dd=_0x2068dd-0x8a;const _0x4ec8d8=a86_0x4ec8();let _0x1ef826=_0x4ec8d8[_0x2068dd];return _0x1ef826;}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':a86_0x1b1650(0xab),'type':a86_0x1b1650(0x9f),'description':a86_0x1b1650(0xb3)},{'name':'appcode','type':a86_0x1b1650(0x9f),'description':a86_0x1b1650(0xac)},{'name':a86_0x1b1650(0xad),'type':a86_0x1b1650(0x9f),'description':a86_0x1b1650(0xb1),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x1c6d2d,_0x2f49ba){const _0x4f50a2=a86_0x1b1650,_0x1c6ba9=_0x1c6d2d['str'](_0x4f50a2(0xab))[_0x4f50a2(0x9d)](),_0xf902d=_0x1c6d2d[_0x4f50a2(0xbd)](_0x4f50a2(0x8d))[_0x4f50a2(0x9d)](),_0x3f3672=_0x1c6d2d[_0x4f50a2(0xbd)](_0x4f50a2(0xad))[_0x4f50a2(0x9d)](),_0x1389ca=resolveWorkspaceEnv(_0x3f3672||_0x1c6d2d[_0x4f50a2(0xaf)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x1c6ba9&&!_0xf902d)throw CliErrors[_0x4f50a2(0x96)]('Missing\x20workspace\x20app\x20selector.',_0x4f50a2(0xb8)+CLI_BIN_NAME+_0x4f50a2(0xae)+_0x2f49ba+_0x4f50a2(0x94)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2f49ba+_0x4f50a2(0xb9));if(_0x1c6ba9&&_0xf902d)throw CliErrors[_0x4f50a2(0x96)](_0x4f50a2(0xa5),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0xea30e2=resolveWriteConfigPath(_0x4f50a2(0xb2)),_0x1082d1=readConfigFile(_0xea30e2);assertWorkspaceCommandState(_0x2f49ba,_0x1082d1);const _0x4e45d7=_0xf902d||await resolveRemoteAppCode({'command':_0x2f49ba,'appName':_0x1c6ba9,'env':_0x1389ca,'accessKey':_0x1c6d2d[_0x4f50a2(0x95)]});return writeWorkspaceConfig({'command':_0x2f49ba,'appName':_0x1c6ba9,'appcode':_0x4e45d7,'env':_0x1389ca,'shouldWriteEnv':!!_0x3f3672,'accessKey':_0x1c6d2d[_0x4f50a2(0x95)]},_0xea30e2,_0x1082d1),{'ok':!![],'data':{'configPath':_0xea30e2,'app':_0x1c6ba9||null,'appcode':_0x4e45d7,'env':_0x3f3672?_0x1389ca:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x2f49ba},'message':buildWorkspaceMessage(_0xea30e2,_0x1c6ba9,_0x4e45d7,_0x3f3672?_0x1389ca:undefined)};}async function resolveRemoteAppCode(_0x248e75){const _0x2098bc=a86_0x1b1650;if(!_0x248e75[_0x2098bc(0x95)])throw CliErrors[_0x2098bc(0x8b)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x2098bc(0xae)+_0x248e75[_0x2098bc(0x97)]+'.');const {setActiveAK:_0x24fb2c}=await import(_0x2098bc(0xbf)),{getRemoteAppList:_0x3bc042}=await import(_0x2098bc(0xa4));_0x24fb2c(_0x248e75[_0x2098bc(0x95)]);const _0x4936ec=await _0x3bc042({'env':_0x248e75[_0x2098bc(0xad)],'accessKey':_0x248e75[_0x2098bc(0x95)],'noCache':![]}),_0x7dcc8d=findAppByName(_0x4936ec['items'],_0x248e75[_0x2098bc(0xba)]);if(_0x7dcc8d&&!isRuntimeAccessibleApp(_0x7dcc8d))throw runtimeInaccessibleAppError(_0x7dcc8d,'\x22'+_0x248e75[_0x2098bc(0xba)]+'\x22');const _0x59a52d=_0x7dcc8d?.[_0x2098bc(0x9c)]?.[_0x2098bc(0x9d)]();if(_0x59a52d)return _0x59a52d;const _0x5848b2=_0x4936ec[_0x2098bc(0xa0)][_0x2098bc(0xa7)](_0x138096=>_0x138096['appName'])[_0x2098bc(0xb5)](Boolean),_0x565fa3=_0x5848b2[_0x2098bc(0xa6)]?_0x2098bc(0x92)+Array[_0x2098bc(0xbc)](new Set(_0x5848b2))[_0x2098bc(0x99)](',\x20')+'.':_0x2098bc(0x9a)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors['validation']('App\x20\x22'+_0x248e75[_0x2098bc(0xba)]+_0x2098bc(0xc3),_0x565fa3);}function a86_0x4ec8(){const _0x158760=['appcode','修改当前工作目录已有绑定的应用上下文','18vWsdIM','Workspace\x20configured.\x0aConfig\x20file:\x20','use','Available\x20apps:\x20','defaultApp','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','validation','command','414463MjYoXG','join','Run\x20`','2VIlAxE','appCode','trim','1248150hMvXfZ','string','items','为尚未绑定应用的当前工作目录初始化应用上下文','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','apps','../../commands/app/remote-source.js','Conflicting\x20workspace\x20app\x20selectors.','length','map','8ZTaZFZ','Invalid\x20env\x20\x22','3012605zTuiCA','app','App\x20code\x20to\x20bind\x20directly','env','\x20workspace\x20','envName','5153886ydIeDE','Target\x20environment','project','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Use\x20`','filter','\x0aDefault\x20app:\x20','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','Usage:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','appName','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','from','str','init','../../core/api-client.js','\x0aEnv:\x20','Workspace\x20app\x20context\x20is\x20already\x20initialized.','object','\x22\x20not\x20found.','8udvIrt','workspace','15673141sRzWFP','11009940zYSWwB','3641826MtjdxG','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','authRequired','includes'];a86_0x4ec8=function(){return _0x158760;};return a86_0x4ec8();}function writeWorkspaceConfig(_0x551c44,_0xd51a89,_0x4fdcc4){const _0x178bcb=a86_0x1b1650;_0x551c44['shouldWriteEnv']&&(_0x4fdcc4['env']=_0x551c44[_0x178bcb(0xad)]);if(_0x551c44[_0x178bcb(0xba)]){const _0x3cfe94=isRecord(_0x4fdcc4[_0x178bcb(0xa3)])?{..._0x4fdcc4[_0x178bcb(0xa3)]}:{},_0x3c6cff=isRecord(_0x3cfe94[_0x551c44[_0x178bcb(0xba)]])?_0x3cfe94[_0x551c44[_0x178bcb(0xba)]]:{};return _0x3cfe94[_0x551c44[_0x178bcb(0xba)]]={..._0x3c6cff,'appcode':_0x551c44[_0x178bcb(0x8d)]},_0x4fdcc4[_0x178bcb(0xa3)]=_0x3cfe94,_0x4fdcc4[_0x178bcb(0x93)]=_0x551c44['appName'],delete _0x4fdcc4[_0x178bcb(0x8d)],delete _0x4fdcc4[_0x178bcb(0xab)],writeAndReturn(_0xd51a89,_0x4fdcc4);}return _0x4fdcc4['appcode']=_0x551c44[_0x178bcb(0x8d)],delete _0x4fdcc4[_0x178bcb(0x93)],delete _0x4fdcc4['app'],writeAndReturn(_0xd51a89,_0x4fdcc4);}function writeAndReturn(_0x1c1e2d,_0x342c9d){return writeConfigFile(_0x1c1e2d,_0x342c9d),_0x1c1e2d;}function resolveWorkspaceEnv(_0x5027a8){const _0x36c9f4=a86_0x1b1650;if(RUNTIME_ENV_VALUES[_0x36c9f4(0x8c)](_0x5027a8))return _0x5027a8;throw CliErrors[_0x36c9f4(0x96)](_0x36c9f4(0xa9)+_0x5027a8+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x36c9f4(0x99)](',\x20'));}function buildWorkspaceMessage(_0x1beddd,_0x2a9e85,_0x910be6,_0xd10e47){const _0x3a5363=a86_0x1b1650,_0x1a68fa=_0x2a9e85?_0x2a9e85+'\x20('+_0x910be6+')':_0x910be6,_0x125b8a=_0xd10e47?_0x3a5363(0xc0)+_0xd10e47:'';return _0x3a5363(0x90)+_0x1beddd+_0x3a5363(0xb6)+_0x1a68fa+_0x125b8a+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x578cbd){const _0x4f1692=a86_0x1b1650;return typeof _0x578cbd===_0x4f1692(0xc2)&&_0x578cbd!==null&&!Array['isArray'](_0x578cbd);}function hasWorkspaceAppBinding(_0x44bff1){const _0x53e814=a86_0x1b1650;if(typeof _0x44bff1['appcode']==='string'&&_0x44bff1[_0x53e814(0x8d)][_0x53e814(0x9d)]()[_0x53e814(0xa6)]>0x0)return!![];if(typeof _0x44bff1[_0x53e814(0x93)]!==_0x53e814(0x9f)||!_0x44bff1[_0x53e814(0x93)][_0x53e814(0x9d)]())return![];if(!isRecord(_0x44bff1[_0x53e814(0xa3)]))return![];const _0x6522a6=_0x44bff1[_0x53e814(0xa3)][_0x44bff1[_0x53e814(0x93)][_0x53e814(0x9d)]()];return isRecord(_0x6522a6)&&typeof _0x6522a6[_0x53e814(0x8d)]===_0x53e814(0x9f)&&_0x6522a6[_0x53e814(0x8d)]['trim']()[_0x53e814(0xa6)]>0x0;}function assertWorkspaceCommandState(_0x58bf85,_0x4cb548){const _0x3ef8f3=a86_0x1b1650,_0x18e628=hasWorkspaceAppBinding(_0x4cb548);if(_0x58bf85==='init'&&_0x18e628)throw CliErrors['validation'](_0x3ef8f3(0xc1),_0x3ef8f3(0xb4)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x3ef8f3(0x8a));if(_0x58bf85===_0x3ef8f3(0x91)&&!_0x18e628)throw CliErrors[_0x3ef8f3(0x96)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x3ef8f3(0x9a)+CLI_BIN_NAME+_0x3ef8f3(0xbb)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x210ce7){const _0x2426ed=a86_0x1b1650;return{'service':_0x2426ed(0xc5),'command':_0x210ce7,'description':_0x210ce7==='init'?_0x2426ed(0xa1):_0x2426ed(0x8e),'risk':'write','confirmationDescription':_0x210ce7===_0x2426ed(0xbe)?_0x2426ed(0xa2):_0x2426ed(0xb7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x12bcbb){return executeWorkspaceUse(_0x12bcbb,_0x210ce7);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a86_0x1b1650(0x91))];
1
+ const a86_0x545e2c=a86_0x7fa5;function a86_0x7fa5(_0x224ac0,_0x2c9267){_0x224ac0=_0x224ac0-0xfe;const _0xf3af46=a86_0xf3af();let _0x7fa580=_0xf3af46[_0x224ac0];return _0x7fa580;}(function(_0xebce88,_0x1e5256){const _0x32874f=a86_0x7fa5,_0x2df0aa=_0xebce88();while(!![]){try{const _0x39a597=-parseInt(_0x32874f(0x105))/0x1*(-parseInt(_0x32874f(0x101))/0x2)+-parseInt(_0x32874f(0x13f))/0x3*(parseInt(_0x32874f(0x10b))/0x4)+-parseInt(_0x32874f(0x12e))/0x5+-parseInt(_0x32874f(0x13a))/0x6+-parseInt(_0x32874f(0x129))/0x7*(parseInt(_0x32874f(0xff))/0x8)+-parseInt(_0x32874f(0x100))/0x9*(-parseInt(_0x32874f(0x140))/0xa)+parseInt(_0x32874f(0x135))/0xb;if(_0x39a597===_0x1e5256)break;else _0x2df0aa['push'](_0x2df0aa['shift']());}catch(_0x283f54){_0x2df0aa['push'](_0x2df0aa['shift']());}}}(a86_0xf3af,0x9488c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a86_0xf3af(){const _0x35d81b=['\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','\x22\x20not\x20found.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','validation','\x0aAccessKey:\x20not\x20written','init','map','App\x20code\x20to\x20bind\x20directly','app','appName','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','object','workspace\x20','616kpsPRz','trim','\x0aEnv:\x20','length','isArray','4607905EuwJdG','string','workspace','Workspace\x20configured.\x0aConfig\x20file:\x20','Run\x20`','Available\x20apps:\x20','filter','26601828StCSBd','\x20workspace\x20','authRequired','join','str','6980364HeQdbJ','Missing\x20workspace\x20app\x20selector.','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appCode','command','7677uJooRC','70KxASQq','Use\x20`','Invalid\x20env\x20\x22','为尚未绑定应用的当前工作目录初始化应用上下文','19312LkiYGS','302445uCvpVE','2jtXLeL','project','use','修改当前工作目录已有绑定的应用上下文','1101808AitNcx','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','App\x20\x22','accessKey','1328Prnnlg','Workspace\x20app\x20context\x20is\x20already\x20initialized.','apps','appcode','env','\x0aDefault\x20app:\x20','Usage:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','defaultApp','write','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','from','../../core/api-client.js','shouldWriteEnv','Conflicting\x20workspace\x20app\x20selectors.','items'];a86_0xf3af=function(){return _0x35d81b;};return a86_0xf3af();}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':a86_0x545e2c(0x124),'type':a86_0x545e2c(0x12f),'description':a86_0x545e2c(0x115)},{'name':'appcode','type':a86_0x545e2c(0x12f),'description':a86_0x545e2c(0x123)},{'name':a86_0x545e2c(0x10f),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x331b7a,_0x334329){const _0x379c77=a86_0x545e2c,_0x56e91a=_0x331b7a[_0x379c77(0x139)]('app')[_0x379c77(0x12a)](),_0x29ffe8=_0x331b7a['str'](_0x379c77(0x10e))[_0x379c77(0x12a)](),_0x297517=_0x331b7a[_0x379c77(0x139)](_0x379c77(0x10f))[_0x379c77(0x12a)](),_0x46d57d=resolveWorkspaceEnv(_0x297517||_0x331b7a['envName']||DEFAULT_CONFIG_VALUES['env']);if(!_0x56e91a&&!_0x29ffe8)throw CliErrors[_0x379c77(0x11f)](_0x379c77(0x13b),_0x379c77(0x111)+CLI_BIN_NAME+_0x379c77(0x136)+_0x334329+_0x379c77(0x107)+CLI_BIN_NAME+'\x20workspace\x20'+_0x334329+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x56e91a&&_0x29ffe8)throw CliErrors[_0x379c77(0x11f)](_0x379c77(0x119),_0x379c77(0x126));const _0x5b48ae=resolveWriteConfigPath(_0x379c77(0x102)),_0x450ecd=readConfigFile(_0x5b48ae);assertWorkspaceCommandState(_0x334329,_0x450ecd);const _0x4b670d=_0x29ffe8||await resolveRemoteAppCode({'command':_0x334329,'appName':_0x56e91a,'env':_0x46d57d,'accessKey':_0x331b7a['accessKey']});return writeWorkspaceConfig({'command':_0x334329,'appName':_0x56e91a,'appcode':_0x4b670d,'env':_0x46d57d,'shouldWriteEnv':!!_0x297517,'accessKey':_0x331b7a[_0x379c77(0x10a)]},_0x5b48ae,_0x450ecd),{'ok':!![],'data':{'configPath':_0x5b48ae,'app':_0x56e91a||null,'appcode':_0x4b670d,'env':_0x297517?_0x46d57d:null,'accessKeyWritten':![],'command':_0x379c77(0x128)+_0x334329},'message':buildWorkspaceMessage(_0x5b48ae,_0x56e91a,_0x4b670d,_0x297517?_0x46d57d:undefined)};}async function resolveRemoteAppCode(_0x4c0352){const _0x3ea07a=a86_0x545e2c;if(!_0x4c0352[_0x3ea07a(0x10a)])throw CliErrors[_0x3ea07a(0x137)](_0x3ea07a(0x112)+CLI_BIN_NAME+_0x3ea07a(0x136)+_0x4c0352[_0x3ea07a(0x13e)]+'.');const {setActiveAK:_0x1a07d4}=await import(_0x3ea07a(0x117)),{getRemoteAppList:_0xb896e0}=await import('../../commands/app/remote-source.js');_0x1a07d4(_0x4c0352['accessKey']);const _0x335711=await _0xb896e0({'env':_0x4c0352[_0x3ea07a(0x10f)],'accessKey':_0x4c0352[_0x3ea07a(0x10a)],'noCache':![]}),_0x353cb3=findAppByName(_0x335711[_0x3ea07a(0x11a)],_0x4c0352[_0x3ea07a(0x125)]);if(_0x353cb3&&!isRuntimeAccessibleApp(_0x353cb3))throw runtimeInaccessibleAppError(_0x353cb3,'\x22'+_0x4c0352[_0x3ea07a(0x125)]+'\x22');const _0x35fa33=_0x353cb3?.[_0x3ea07a(0x13d)]?.['trim']();if(_0x35fa33)return _0x35fa33;const _0x445720=_0x335711[_0x3ea07a(0x11a)][_0x3ea07a(0x122)](_0x41719d=>_0x41719d[_0x3ea07a(0x125)])[_0x3ea07a(0x134)](Boolean),_0x599b5f=_0x445720['length']?_0x3ea07a(0x133)+Array[_0x3ea07a(0x116)](new Set(_0x445720))[_0x3ea07a(0x138)](',\x20')+'.':_0x3ea07a(0x132)+CLI_BIN_NAME+_0x3ea07a(0x13c);throw CliErrors[_0x3ea07a(0x11f)](_0x3ea07a(0x109)+_0x4c0352[_0x3ea07a(0x125)]+_0x3ea07a(0x11c),_0x599b5f);}function writeWorkspaceConfig(_0x2a5220,_0x51f396,_0x541bd2){const _0x3129c5=a86_0x545e2c;_0x2a5220[_0x3129c5(0x118)]&&(_0x541bd2[_0x3129c5(0x10f)]=_0x2a5220[_0x3129c5(0x10f)]);if(_0x2a5220['appName']){const _0x51bbbf=isRecord(_0x541bd2[_0x3129c5(0x10d)])?{..._0x541bd2[_0x3129c5(0x10d)]}:{},_0x9c5433=isRecord(_0x51bbbf[_0x2a5220[_0x3129c5(0x125)]])?_0x51bbbf[_0x2a5220[_0x3129c5(0x125)]]:{};return _0x51bbbf[_0x2a5220[_0x3129c5(0x125)]]={..._0x9c5433,'appcode':_0x2a5220[_0x3129c5(0x10e)]},_0x541bd2[_0x3129c5(0x10d)]=_0x51bbbf,_0x541bd2[_0x3129c5(0x113)]=_0x2a5220[_0x3129c5(0x125)],delete _0x541bd2['appcode'],delete _0x541bd2[_0x3129c5(0x124)],writeAndReturn(_0x51f396,_0x541bd2);}return _0x541bd2['appcode']=_0x2a5220[_0x3129c5(0x10e)],delete _0x541bd2[_0x3129c5(0x113)],delete _0x541bd2[_0x3129c5(0x124)],writeAndReturn(_0x51f396,_0x541bd2);}function writeAndReturn(_0x694f7b,_0x5459c8){return writeConfigFile(_0x694f7b,_0x5459c8),_0x694f7b;}function resolveWorkspaceEnv(_0x9076e){const _0x2d60ac=a86_0x545e2c;if(RUNTIME_ENV_VALUES['includes'](_0x9076e))return _0x9076e;throw CliErrors[_0x2d60ac(0x11f)](_0x2d60ac(0x142)+_0x9076e+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x2d60ac(0x138)](',\x20'));}function buildWorkspaceMessage(_0x376b1a,_0x5ed801,_0x429478,_0x38f566){const _0x538343=a86_0x545e2c,_0x519fac=_0x5ed801?_0x5ed801+'\x20('+_0x429478+')':_0x429478,_0x13ffa1=_0x38f566?_0x538343(0x12b)+_0x38f566:'';return _0x538343(0x131)+_0x376b1a+_0x538343(0x110)+_0x519fac+_0x13ffa1+_0x538343(0x120);}function isRecord(_0x444943){const _0x56cf56=a86_0x545e2c;return typeof _0x444943===_0x56cf56(0x127)&&_0x444943!==null&&!Array[_0x56cf56(0x12d)](_0x444943);}function hasWorkspaceAppBinding(_0x5eebd5){const _0x1a29d0=a86_0x545e2c;if(typeof _0x5eebd5['appcode']===_0x1a29d0(0x12f)&&_0x5eebd5[_0x1a29d0(0x10e)][_0x1a29d0(0x12a)]()[_0x1a29d0(0x12c)]>0x0)return!![];if(typeof _0x5eebd5['defaultApp']!==_0x1a29d0(0x12f)||!_0x5eebd5[_0x1a29d0(0x113)][_0x1a29d0(0x12a)]())return![];if(!isRecord(_0x5eebd5['apps']))return![];const _0x5b1f4f=_0x5eebd5['apps'][_0x5eebd5['defaultApp']['trim']()];return isRecord(_0x5b1f4f)&&typeof _0x5b1f4f[_0x1a29d0(0x10e)]===_0x1a29d0(0x12f)&&_0x5b1f4f[_0x1a29d0(0x10e)][_0x1a29d0(0x12a)]()[_0x1a29d0(0x12c)]>0x0;}function assertWorkspaceCommandState(_0x23dd74,_0x36712e){const _0x4cfad9=a86_0x545e2c,_0x228623=hasWorkspaceAppBinding(_0x36712e);if(_0x23dd74===_0x4cfad9(0x121)&&_0x228623)throw CliErrors[_0x4cfad9(0x11f)](_0x4cfad9(0x10c),_0x4cfad9(0x141)+CLI_BIN_NAME+_0x4cfad9(0x11e)+CLI_BIN_NAME+_0x4cfad9(0x11b));if(_0x23dd74==='use'&&!_0x228623)throw CliErrors[_0x4cfad9(0x11f)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x4cfad9(0x132)+CLI_BIN_NAME+_0x4cfad9(0x106)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x486c33){const _0x27414b=a86_0x545e2c;return{'service':_0x27414b(0x130),'command':_0x486c33,'description':_0x486c33===_0x27414b(0x121)?_0x27414b(0xfe):_0x27414b(0x104),'risk':_0x27414b(0x114),'confirmationDescription':_0x486c33===_0x27414b(0x121)?_0x27414b(0x108):_0x27414b(0x11d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x494c72){return executeWorkspaceUse(_0x494c72,_0x486c33);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a86_0x545e2c(0x103))];
@@ -1 +1 @@
1
- const a87_0x175563=a87_0x56e6;(function(_0xea9676,_0x48ab4a){const _0x21f70d=a87_0x56e6,_0x176759=_0xea9676();while(!![]){try{const _0x7b54fe=parseInt(_0x21f70d(0x11f))/0x1*(-parseInt(_0x21f70d(0x127))/0x2)+-parseInt(_0x21f70d(0x109))/0x3+parseInt(_0x21f70d(0x108))/0x4*(parseInt(_0x21f70d(0x126))/0x5)+-parseInt(_0x21f70d(0x10f))/0x6+-parseInt(_0x21f70d(0x11a))/0x7+-parseInt(_0x21f70d(0x118))/0x8+parseInt(_0x21f70d(0x110))/0x9*(parseInt(_0x21f70d(0x10e))/0xa);if(_0x7b54fe===_0x48ab4a)break;else _0x176759['push'](_0x176759['shift']());}catch(_0x2d428a){_0x176759['push'](_0x176759['shift']());}}}(a87_0x364e,0x96e01));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a87_0x56e6(_0x4e0e9d,_0x5bdc5a){_0x4e0e9d=_0x4e0e9d-0x108;const _0x364ee3=a87_0x364e();let _0x56e6bb=_0x364ee3[_0x4e0e9d];return _0x56e6bb;}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a87_0x364e(){const _0x598698=['enumValues','Access\x20key\x20(client-ak\x20auth)','filter','483205YcVXXH','3206IsspOR','locale','Override\x20user\x20domain','24XXGYjK','2879460OZaLZA','fromEntries','Target\x20environment','has','Override\x20API\x20domain','20jpUrkW','1496514uKewNP','15652179RsgFCq','riskLevel','importable','join','format','Default\x20output\x20format','Override\x20runtime\x20domain','Config\x20key.\x20Top-level:\x20','5272560AULYJf','Default\x20page\x20size','5190220dXfUXP','cliSettableTopLevel','defaultValue','map','env','518rXTRaw','entries','Locale','Override\x20SkillHub\x20domain'];a87_0x364e=function(){return _0x598698;};return a87_0x364e();}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x175563(0x10b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x175563(0x11e)],'importable':!![]},'format':{'description':a87_0x175563(0x115),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x175563(0x114)],'importable':!![]},'pageSize':{'description':a87_0x175563(0x119),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x175563(0x10d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x175563(0x129),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x175563(0x116),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x175563(0x122),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x175563(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x175563(0x111)],'importable':!![]},'locale':{'description':a87_0x175563(0x121),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x175563(0x128)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x175563(0x120)](CONFIG_FIELD_SCHEMAS)[a87_0x175563(0x125)](([,_0x1976aa])=>_0x1976aa[a87_0x175563(0x11b)])['map'](([_0x1e422f])=>_0x1e422f));export const CONFIG_ENUM_VALUES=Object[a87_0x175563(0x10a)](Object[a87_0x175563(0x120)](CONFIG_FIELD_SCHEMAS)[a87_0x175563(0x125)](([,_0x19549e])=>_0x19549e[a87_0x175563(0x123)])[a87_0x175563(0x11d)](([_0x3e1047,_0xe649df])=>[_0x3e1047,[..._0xe649df['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5d07d0])=>_0x5d07d0[a87_0x175563(0x112)])[a87_0x175563(0x11d)](([_0x17fb0f])=>_0x17fb0f);export function getConfigFieldSchema(_0x1160ae){return CONFIG_FIELD_SCHEMAS[_0x1160ae];}export function getConfigEnumValues(_0x3567d9){const _0x25b5fc=a87_0x175563;return getConfigFieldSchema(_0x3567d9)?.[_0x25b5fc(0x123)];}export function getConfigDefaultValue(_0x2d27de){const _0x4b22b0=a87_0x175563;return getConfigFieldSchema(_0x2d27de)?.[_0x4b22b0(0x11c)];}export function isTopLevelConfigKey(_0x4fcd18){const _0x3bffe3=a87_0x175563;return TOP_LEVEL_CONFIG_KEYS[_0x3bffe3(0x10c)](_0x4fcd18);}export function isLegacyCompatConfigKey(_0x33fb5d){return getConfigFieldSchema(_0x33fb5d)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x590b0b){const _0x564322=a87_0x175563;return[..._0x590b0b][_0x564322(0x113)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x382363=a87_0x175563;return _0x382363(0x117)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x4fa474){return{'env':_0x4fa474,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ function a87_0x54c8(){const _0x4097ce=['entries','Default\x20page\x20size','defaultValue','12vbIKEu','2904384WuLmDF','Risk\x20level','enumValues','cliSettableTopLevel','351665kbfhfv','legacyCompatOnly','Override\x20SkillHub\x20domain','riskLevel','filter','Default\x20output\x20format','53236rbbNzJ','map','Override\x20user\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','24yeDktK','format','Access\x20key\x20(client-ak\x20auth)','has','1218222XzFVcv','143804bjDKXo','5886710elfPsr','join','Locale','Override\x20API\x20domain','fromEntries','locale','Target\x20environment','24HGLwYv','940205wpMXnQ'];a87_0x54c8=function(){return _0x4097ce;};return a87_0x54c8();}const a87_0x1614f5=a87_0x4f80;(function(_0xfea37b,_0x329fc3){const _0x36184e=a87_0x4f80,_0x5960aa=_0xfea37b();while(!![]){try{const _0x3835f8=-parseInt(_0x36184e(0x132))/0x1+parseInt(_0x36184e(0x141))/0x2+parseInt(_0x36184e(0x149))/0x3*(-parseInt(_0x36184e(0x138))/0x4)+parseInt(_0x36184e(0x14a))/0x5*(parseInt(_0x36184e(0x12d))/0x6)+parseInt(_0x36184e(0x12e))/0x7+parseInt(_0x36184e(0x13c))/0x8*(parseInt(_0x36184e(0x140))/0x9)+-parseInt(_0x36184e(0x142))/0xa;if(_0x3835f8===_0x329fc3)break;else _0x5960aa['push'](_0x5960aa['shift']());}catch(_0x21173c){_0x5960aa['push'](_0x5960aa['shift']());}}}(a87_0x54c8,0x363d2));function a87_0x4f80(_0x1c6983,_0x2b5af6){_0x1c6983=_0x1c6983-0x12a;const _0x54c820=a87_0x54c8();let _0x4f8001=_0x54c820[_0x1c6983];return _0x4f8001;}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':a87_0x1614f5(0x148),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a87_0x1614f5(0x137),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1614f5(0x13d)],'importable':!![]},'pageSize':{'description':a87_0x1614f5(0x12b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x1614f5(0x145),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x1614f5(0x13a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x1614f5(0x134),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x1614f5(0x13e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x1614f5(0x12f),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1614f5(0x135)],'importable':!![]},'locale':{'description':a87_0x1614f5(0x144),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1614f5(0x147)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x36652e])=>_0x36652e[a87_0x1614f5(0x131)])[a87_0x1614f5(0x139)](([_0x54d7ec])=>_0x54d7ec));export const CONFIG_ENUM_VALUES=Object[a87_0x1614f5(0x146)](Object[a87_0x1614f5(0x12a)](CONFIG_FIELD_SCHEMAS)[a87_0x1614f5(0x136)](([,_0x57960b])=>_0x57960b[a87_0x1614f5(0x130)])[a87_0x1614f5(0x139)](([_0x2a6173,_0x40ac40])=>[_0x2a6173,[..._0x40ac40[a87_0x1614f5(0x130)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x1614f5(0x12a)](CONFIG_FIELD_SCHEMAS)[a87_0x1614f5(0x136)](([,_0x1d2324])=>_0x1d2324['importable'])[a87_0x1614f5(0x139)](([_0x42ba5c])=>_0x42ba5c);export function getConfigFieldSchema(_0x1b12a9){return CONFIG_FIELD_SCHEMAS[_0x1b12a9];}export function getConfigEnumValues(_0x25abd1){const _0xcd0865=a87_0x1614f5;return getConfigFieldSchema(_0x25abd1)?.[_0xcd0865(0x130)];}export function getConfigDefaultValue(_0x45c3c3){const _0x1ecdc9=a87_0x1614f5;return getConfigFieldSchema(_0x45c3c3)?.[_0x1ecdc9(0x12c)];}export function isTopLevelConfigKey(_0xdfc54){const _0x27e891=a87_0x1614f5;return TOP_LEVEL_CONFIG_KEYS[_0x27e891(0x13f)](_0xdfc54);}export function isLegacyCompatConfigKey(_0x50cd6){const _0x2955bb=a87_0x1614f5;return getConfigFieldSchema(_0x50cd6)?.[_0x2955bb(0x133)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x547674){const _0x43f689=a87_0x1614f5;return[..._0x547674][_0x43f689(0x143)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5c7952=a87_0x1614f5;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x5c7952(0x13b);}export function buildAppProfileListFields(_0x5a2d1b){return{'env':_0x5a2d1b,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a88_0x4e7284=a88_0x55fd;function a88_0x55fd(_0x452094,_0x2cd27d){_0x452094=_0x452094-0xa6;const _0x10fd24=a88_0x10fd();let _0x55fde9=_0x10fd24[_0x452094];return _0x55fde9;}(function(_0x3892e5,_0x4a0a56){const _0x2ae7e9=a88_0x55fd,_0x17cdd1=_0x3892e5();while(!![]){try{const _0x17db28=parseInt(_0x2ae7e9(0xab))/0x1*(parseInt(_0x2ae7e9(0xb1))/0x2)+parseInt(_0x2ae7e9(0xa8))/0x3+parseInt(_0x2ae7e9(0xb0))/0x4+parseInt(_0x2ae7e9(0xa6))/0x5*(parseInt(_0x2ae7e9(0xae))/0x6)+-parseInt(_0x2ae7e9(0xa7))/0x7+parseInt(_0x2ae7e9(0xa9))/0x8*(-parseInt(_0x2ae7e9(0xad))/0x9)+-parseInt(_0x2ae7e9(0xaa))/0xa;if(_0x17db28===_0x4a0a56)break;else _0x17cdd1['push'](_0x17cdd1['shift']());}catch(_0x5dcb48){_0x17cdd1['push'](_0x17cdd1['shift']());}}}(a88_0x10fd,0xae32f));export const APP_PUBLISH_STATUS={'Published':a88_0x4e7284(0xaf),'Unpublished':a88_0x4e7284(0xac)};function a88_0x10fd(){const _0x4ed76c=['1116veTMxl','4847778vETDjR','PUBLISHED','5557364mAwfJl','52322wyAzto','5aFGVxc','187845HzSFLP','1206447TPnyEs','6752ENcwvn','23038240QGJbcB','21ahzcSC','UNPUBLISH'];a88_0x10fd=function(){return _0x4ed76c;};return a88_0x10fd();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a88_0x5a27f7=a88_0x3f36;(function(_0x27c496,_0x42311c){const _0x6a1204=a88_0x3f36,_0x22760f=_0x27c496();while(!![]){try{const _0x580ddf=-parseInt(_0x6a1204(0x7b))/0x1+parseInt(_0x6a1204(0x76))/0x2+parseInt(_0x6a1204(0x73))/0x3+parseInt(_0x6a1204(0x7f))/0x4*(parseInt(_0x6a1204(0x75))/0x5)+-parseInt(_0x6a1204(0x7e))/0x6*(-parseInt(_0x6a1204(0x7c))/0x7)+parseInt(_0x6a1204(0x74))/0x8*(-parseInt(_0x6a1204(0x78))/0x9)+-parseInt(_0x6a1204(0x7d))/0xa;if(_0x580ddf===_0x42311c)break;else _0x22760f['push'](_0x22760f['shift']());}catch(_0x28f7c3){_0x22760f['push'](_0x22760f['shift']());}}}(a88_0x9d95,0x21c2c));export const APP_PUBLISH_STATUS={'Published':a88_0x5a27f7(0x79),'Unpublished':a88_0x5a27f7(0x7a)};function a88_0x3f36(_0x4f4b7a,_0x2c0248){_0x4f4b7a=_0x4f4b7a-0x73;const _0x9d952c=a88_0x9d95();let _0x3f362f=_0x9d952c[_0x4f4b7a];return _0x3f362f;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x5a27f7(0x77)];function a88_0x9d95(){const _0x54e205=['PUBLISHED','UNPUBLISH','174465yBKDAA','14aonVtG','1630020UKHWmf','616794lZAWGT','124876ONDHFT','750807YXVlcL','8NmdRyt','10AqauvW','464398lfKoaO','Published','2472777AFmOdX'];a88_0x9d95=function(){return _0x54e205;};return a88_0x9d95();}
@@ -1 +1 @@
1
- (function(_0xabd937,_0x3fead5){const _0x46a764=a89_0x5476,_0x3b5936=_0xabd937();while(!![]){try{const _0x547d9c=-parseInt(_0x46a764(0xcd))/0x1+parseInt(_0x46a764(0xd1))/0x2+-parseInt(_0x46a764(0xcf))/0x3*(-parseInt(_0x46a764(0xd3))/0x4)+parseInt(_0x46a764(0xcc))/0x5+parseInt(_0x46a764(0xcb))/0x6+parseInt(_0x46a764(0xce))/0x7+parseInt(_0x46a764(0xd2))/0x8*(-parseInt(_0x46a764(0xd0))/0x9);if(_0x547d9c===_0x3fead5)break;else _0x3b5936['push'](_0x3b5936['shift']());}catch(_0x4f2335){_0x3b5936['push'](_0x3b5936['shift']());}}}(a89_0xe555,0x45fef));export const AUTH_MODE={'ClientAk':'client-ak'};function a89_0xe555(){const _0x5e5b12=['8kYNIqS','ClientAk','84216lmfRUL','867420iiatbp','483484Rxlenm','3366090UFicAF','208089nqIjYz','442548ewDefi','614550Tnxzhk','56AzmtVR'];a89_0xe555=function(){return _0x5e5b12;};return a89_0xe555();}function a89_0x5476(_0x17a51d,_0x58f179){_0x17a51d=_0x17a51d-0xca;const _0xe55594=a89_0xe555();let _0x54769c=_0xe55594[_0x17a51d];return _0x54769c;}export function isAuthMode(_0x58b9d6){const _0x22990a=a89_0x5476;return _0x58b9d6===AUTH_MODE[_0x22990a(0xca)];}
1
+ (function(_0x57894b,_0x40c8d9){const _0x2f8a16=a89_0x3150,_0x4c3fcb=_0x57894b();while(!![]){try{const _0x2b2aac=parseInt(_0x2f8a16(0x161))/0x1*(-parseInt(_0x2f8a16(0x15f))/0x2)+parseInt(_0x2f8a16(0x162))/0x3+-parseInt(_0x2f8a16(0x15d))/0x4+-parseInt(_0x2f8a16(0x164))/0x5+parseInt(_0x2f8a16(0x163))/0x6+parseInt(_0x2f8a16(0x160))/0x7*(-parseInt(_0x2f8a16(0x15c))/0x8)+-parseInt(_0x2f8a16(0x15e))/0x9*(-parseInt(_0x2f8a16(0x165))/0xa);if(_0x2b2aac===_0x40c8d9)break;else _0x4c3fcb['push'](_0x4c3fcb['shift']());}catch(_0x2a1dd5){_0x4c3fcb['push'](_0x4c3fcb['shift']());}}}(a89_0x3562,0x1cf01));export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x3eab9d){return _0x3eab9d===AUTH_MODE['ClientAk'];}function a89_0x3150(_0x50b738,_0x10038f){_0x50b738=_0x50b738-0x15c;const _0x356234=a89_0x3562();let _0x315097=_0x356234[_0x50b738];return _0x315097;}function a89_0x3562(){const _0x15c90e=['927496VhpsAh','38079HZLplT','50mNddJm','65933rgrIvY','925MojEdx','84168QNZsyV','1300440abiOKa','162245wXgGai','470mvPyXO','32pMuVwh'];a89_0x3562=function(){return _0x15c90e;};return a89_0x3562();}
@@ -1 +1 @@
1
- const a90_0x5a0416=a90_0x27e2;function a90_0x213b(){const _0x197337=['env','Select\x20app\x20profile\x20by\x20name','Force\x20non-interactive\x20mode\x20(CI)','name','json\x20|\x20pretty\x20|\x20compress','<name>','<expr>','Output\x20format','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','non-interactive','boolean','1177955LGYKxp','app','yes','3yjugJL','819dzOjrs','Alias\x20for\x20--non-interactive','75864VwHnWE','Show\x20help','meowKey','11562uHICaz','Skip\x20confirmation\x20for\x20high-risk\x20writes','1726496nwyRjY','params','<code>','12982700beqknj','clear','string','cliBinName','format','appcode','dry-run','sqlcode','global','846nxaIUQ','1785690vJUvLo','Preview\x20operation\x20without\x20executing','nonInteractive','Environment','256628ciPsqg'];a90_0x213b=function(){return _0x197337;};return a90_0x213b();}function a90_0x27e2(_0x417f5c,_0x4d1c66){_0x417f5c=_0x417f5c-0x12f;const _0x213bac=a90_0x213b();let _0x27e28c=_0x213bac[_0x417f5c];return _0x27e28c;}(function(_0x11a0f7,_0x1df0e4){const _0x1244ef=a90_0x27e2,_0x27433f=_0x11a0f7();while(!![]){try{const _0x2e91a1=parseInt(_0x1244ef(0x14e))/0x1+-parseInt(_0x1244ef(0x142))/0x2*(-parseInt(_0x1244ef(0x151))/0x3)+-parseInt(_0x1244ef(0x131))/0x4+-parseInt(_0x1244ef(0x13e))/0x5+-parseInt(_0x1244ef(0x12f))/0x6*(parseInt(_0x1244ef(0x152))/0x7)+parseInt(_0x1244ef(0x154))/0x8*(-parseInt(_0x1244ef(0x13d))/0x9)+parseInt(_0x1244ef(0x134))/0xa;if(_0x2e91a1===_0x1df0e4)break;else _0x27433f['push'](_0x27433f['shift']());}catch(_0x2dae37){_0x27433f['push'](_0x27433f['shift']());}}}(a90_0x213b,0xaaa24));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x5a0416(0x137)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x5a0416(0x139),'meowKey':a90_0x5a0416(0x139),'type':a90_0x5a0416(0x136),'description':'Override\x20appcode','hint':a90_0x5a0416(0x133)},{'name':'app','meowKey':a90_0x5a0416(0x14f),'type':a90_0x5a0416(0x136),'description':a90_0x5a0416(0x144),'hint':a90_0x5a0416(0x148)},{'name':a90_0x5a0416(0x143),'meowKey':a90_0x5a0416(0x143),'type':a90_0x5a0416(0x136),'description':a90_0x5a0416(0x141),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a90_0x5a0416(0x138),'meowKey':a90_0x5a0416(0x138),'type':a90_0x5a0416(0x136),'description':a90_0x5a0416(0x14a),'hint':a90_0x5a0416(0x147)},{'name':'jq','meowKey':'jq','type':a90_0x5a0416(0x136),'description':a90_0x5a0416(0x14b),'hint':a90_0x5a0416(0x149)},{'name':a90_0x5a0416(0x13a),'meowKey':'dryRun','type':a90_0x5a0416(0x14d),'description':a90_0x5a0416(0x13f)},{'name':a90_0x5a0416(0x150),'meowKey':a90_0x5a0416(0x150),'type':a90_0x5a0416(0x14d),'description':a90_0x5a0416(0x130)},{'name':'non-interactive','meowKey':a90_0x5a0416(0x140),'type':'boolean','description':a90_0x5a0416(0x145)},{'name':a90_0x5a0416(0x13c),'meowKey':a90_0x5a0416(0x13c),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a90_0x5a0416(0x153),'hidden':!![]},{'name':'help','meowKey':'help','type':a90_0x5a0416(0x14d),'description':a90_0x5a0416(0x155)},{'name':'id','meowKey':'id','type':a90_0x5a0416(0x136),'description':'Record\x20ID','hidden':!![]},{'name':a90_0x5a0416(0x146),'meowKey':a90_0x5a0416(0x146),'type':a90_0x5a0416(0x136),'description':'Name\x20filter','hidden':!![]},{'name':a90_0x5a0416(0x13b),'meowKey':a90_0x5a0416(0x13b),'type':a90_0x5a0416(0x136),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a90_0x5a0416(0x132),'meowKey':a90_0x5a0416(0x132),'type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a90_0x5a0416(0x14d),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a90_0x5a0416(0x135),'type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a90_0x5a0416(0x14f),a90_0x5a0416(0x143),a90_0x5a0416(0x138),'jq',a90_0x5a0416(0x13a),a90_0x5a0416(0x150),a90_0x5a0416(0x14c),'ci']);export function buildMeowFlags(){const _0x167782=a90_0x5a0416;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x5b1085=>[_0x5b1085[_0x167782(0x156)],{'type':_0x5b1085['type']}]));}
1
+ const a90_0x1089c1=a90_0x55ca;(function(_0x21f34b,_0x59bdde){const _0x2d21e5=a90_0x55ca,_0x405181=_0x21f34b();while(!![]){try{const _0x291b48=-parseInt(_0x2d21e5(0x11f))/0x1+-parseInt(_0x2d21e5(0x105))/0x2+-parseInt(_0x2d21e5(0x11b))/0x3+-parseInt(_0x2d21e5(0xfb))/0x4+parseInt(_0x2d21e5(0x100))/0x5*(-parseInt(_0x2d21e5(0x118))/0x6)+-parseInt(_0x2d21e5(0x107))/0x7*(-parseInt(_0x2d21e5(0x114))/0x8)+parseInt(_0x2d21e5(0x10e))/0x9;if(_0x291b48===_0x59bdde)break;else _0x405181['push'](_0x405181['shift']());}catch(_0x439612){_0x405181['push'](_0x405181['shift']());}}}(a90_0x4a67,0x5cd08));function a90_0x55ca(_0x1a8a84,_0x23419a){_0x1a8a84=_0x1a8a84-0xf9;const _0x4a6707=a90_0x4a67();let _0x55caec=_0x4a6707[_0x1a8a84];return _0x55caec;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x1089c1(0x126)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a90_0x1089c1(0x12a),'type':'string','description':a90_0x1089c1(0x11a),'hint':a90_0x1089c1(0x109)},{'name':a90_0x1089c1(0x127),'meowKey':a90_0x1089c1(0x127),'type':'string','description':a90_0x1089c1(0xfc),'hint':a90_0x1089c1(0xfe)},{'name':'env','meowKey':a90_0x1089c1(0x117),'type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x10d),'hint':a90_0x1089c1(0x11e)},{'name':'format','meowKey':'format','type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x12d),'hint':a90_0x1089c1(0x120)},{'name':'jq','meowKey':'jq','type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0xfa),'hint':a90_0x1089c1(0x122)},{'name':a90_0x1089c1(0x108),'meowKey':a90_0x1089c1(0x128),'type':'boolean','description':a90_0x1089c1(0x103)},{'name':'yes','meowKey':a90_0x1089c1(0x111),'type':a90_0x1089c1(0x12b),'description':a90_0x1089c1(0xff)},{'name':'non-interactive','meowKey':a90_0x1089c1(0x116),'type':a90_0x1089c1(0x12b),'description':a90_0x1089c1(0x124)},{'name':a90_0x1089c1(0x125),'meowKey':a90_0x1089c1(0x125),'type':a90_0x1089c1(0x12b),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a90_0x1089c1(0x12b),'description':a90_0x1089c1(0x104),'hidden':!![]},{'name':a90_0x1089c1(0x106),'meowKey':a90_0x1089c1(0x106),'type':'boolean','description':a90_0x1089c1(0xfd)},{'name':'id','meowKey':'id','type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x11d),'hidden':!![]},{'name':a90_0x1089c1(0x102),'meowKey':a90_0x1089c1(0x102),'type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x10f),'hidden':!![]},{'name':a90_0x1089c1(0x112),'meowKey':'sqlcode','type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x121),'hidden':!![]},{'name':a90_0x1089c1(0xf9),'meowKey':a90_0x1089c1(0xf9),'type':a90_0x1089c1(0x10c),'description':a90_0x1089c1(0x129),'hidden':!![]},{'name':a90_0x1089c1(0x110),'meowKey':a90_0x1089c1(0x110),'type':a90_0x1089c1(0x12b),'description':a90_0x1089c1(0x11c),'hidden':!![]},{'name':a90_0x1089c1(0x123),'meowKey':a90_0x1089c1(0x123),'type':'boolean','description':a90_0x1089c1(0x10b),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a90_0x1089c1(0x127),a90_0x1089c1(0x117),a90_0x1089c1(0x101),'jq',a90_0x1089c1(0x108),a90_0x1089c1(0x111),a90_0x1089c1(0x115),'ci']);export function buildMeowFlags(){const _0x1daf90=a90_0x1089c1;return Object[_0x1daf90(0x119)](GLOBAL_FLAGS[_0x1daf90(0x113)](_0x123ca1=>[_0x123ca1[_0x1daf90(0x12c)],{'type':_0x123ca1[_0x1daf90(0x10a)]}]));}function a90_0x4a67(){const _0xe51973=['Force\x20non-interactive\x20mode\x20(CI)','global','cliDisplayName','app','dryRun','JSON\x20params\x20for\x20execute\x20commands','appcode','boolean','meowKey','Output\x20format','params','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','1005060EcjLby','Select\x20app\x20profile\x20by\x20name','Show\x20help','<name>','Skip\x20confirmation\x20for\x20high-risk\x20writes','387070xZfMvq','format','name','Preview\x20operation\x20without\x20executing','Alias\x20for\x20--non-interactive','995842PNleYT','help','291893oekkKB','dry-run','<code>','type','Clear\x20output','string','Environment','15403770MBLnQP','Name\x20filter','verbose','yes','sqlcode','map','32bzuiBQ','non-interactive','nonInteractive','env','6CdQRJK','fromEntries','Override\x20appcode','152631lKZKdS','Verbose\x20output','Record\x20ID','production\x20|\x20development\x20|\x20daily','620681BWulsb','json\x20|\x20pretty\x20|\x20compress','SQL\x20query\x20code','<expr>','clear'];a90_0x4a67=function(){return _0xe51973;};return a90_0x4a67();}
@@ -1 +1 @@
1
- function a91_0x3293(){const _0xf8c646=['4920348zFaHsS','302kjlmdd','4709uzIqtT','9301192ffUmyJ','3821130mnaAuP','464268ezDtdp','80xJRbtt','en-US','main','7cTLXtn','production','compress','24569200lyEccB','write','439794flxDlc'];a91_0x3293=function(){return _0xf8c646;};return a91_0x3293();}const a91_0x5d794a=a91_0x488d;(function(_0x5543b6,_0x3542de){const _0x97b411=a91_0x488d,_0x4634e8=_0x5543b6();while(!![]){try{const _0x1ec9ca=parseInt(_0x97b411(0x136))/0x1*(-parseInt(_0x97b411(0x135))/0x2)+-parseInt(_0x97b411(0x139))/0x3+-parseInt(_0x97b411(0x134))/0x4+parseInt(_0x97b411(0x13a))/0x5*(parseInt(_0x97b411(0x133))/0x6)+-parseInt(_0x97b411(0x12e))/0x7*(parseInt(_0x97b411(0x137))/0x8)+parseInt(_0x97b411(0x138))/0x9+parseInt(_0x97b411(0x131))/0xa;if(_0x1ec9ca===_0x3542de)break;else _0x4634e8['push'](_0x4634e8['shift']());}catch(_0x3d03a9){_0x4634e8['push'](_0x4634e8['shift']());}}}(a91_0x3293,0xc244b));export const DEFAULT_APP_PROFILE_NAME=a91_0x5d794a(0x12d);function a91_0x488d(_0x2945d7,_0x28c718){_0x2945d7=_0x2945d7-0x12d;const _0x329357=a91_0x3293();let _0x488dce=_0x329357[_0x2945d7];return _0x488dce;}export const DEFAULT_CONFIG_VALUES={'env':a91_0x5d794a(0x12f),'format':a91_0x5d794a(0x130),'locale':a91_0x5d794a(0x13b),'riskLevel':a91_0x5d794a(0x132)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a91_0x6dce(){const _0x2d8bac=['main','6997952UXiPlJ','1204470TeCBXu','3pTfciP','compress','2956512Wtjrzo','417781oOLRPu','42RTnEIn','535535HBLLdR','2714134hGtoAk','9EDgMNx','production','en-US','242430OPckAZ'];a91_0x6dce=function(){return _0x2d8bac;};return a91_0x6dce();}const a91_0x2a3e4c=a91_0x45ed;(function(_0x4565e1,_0x4cd5e6){const _0x48a6e3=a91_0x45ed,_0x1b8ab2=_0x4565e1();while(!![]){try{const _0x49bc45=-parseInt(_0x48a6e3(0x1b2))/0x1+-parseInt(_0x48a6e3(0x1bc))/0x2*(-parseInt(_0x48a6e3(0x1b6))/0x3)+parseInt(_0x48a6e3(0x1b8))/0x4+parseInt(_0x48a6e3(0x1bb))/0x5+parseInt(_0x48a6e3(0x1ba))/0x6*(-parseInt(_0x48a6e3(0x1b9))/0x7)+-parseInt(_0x48a6e3(0x1b4))/0x8+-parseInt(_0x48a6e3(0x1bd))/0x9*(-parseInt(_0x48a6e3(0x1b5))/0xa);if(_0x49bc45===_0x4cd5e6)break;else _0x1b8ab2['push'](_0x1b8ab2['shift']());}catch(_0x584241){_0x1b8ab2['push'](_0x1b8ab2['shift']());}}}(a91_0x6dce,0xc093a));export const DEFAULT_APP_PROFILE_NAME=a91_0x2a3e4c(0x1b3);function a91_0x45ed(_0x7852cc,_0x531ec9){_0x7852cc=_0x7852cc-0x1b2;const _0x6dce20=a91_0x6dce();let _0x45ed4d=_0x6dce20[_0x7852cc];return _0x45ed4d;}export const DEFAULT_CONFIG_VALUES={'env':a91_0x2a3e4c(0x1be),'format':a91_0x2a3e4c(0x1b7),'locale':a91_0x2a3e4c(0x1bf),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x2a3e4c(0x1b7);
@@ -1 +1 @@
1
- const a92_0x5e5021=a92_0x45b8;(function(_0x2d691b,_0x2795ea){const _0x2d1424=a92_0x45b8,_0x55dd20=_0x2d691b();while(!![]){try{const _0x28cb64=-parseInt(_0x2d1424(0x1d6))/0x1+parseInt(_0x2d1424(0x1d3))/0x2*(-parseInt(_0x2d1424(0x1d9))/0x3)+-parseInt(_0x2d1424(0x1d4))/0x4*(parseInt(_0x2d1424(0x1d1))/0x5)+-parseInt(_0x2d1424(0x1d2))/0x6+parseInt(_0x2d1424(0x1dd))/0x7*(parseInt(_0x2d1424(0x1da))/0x8)+-parseInt(_0x2d1424(0x1d8))/0x9+-parseInt(_0x2d1424(0x1dc))/0xa*(-parseInt(_0x2d1424(0x1d5))/0xb);if(_0x28cb64===_0x2795ea)break;else _0x55dd20['push'](_0x55dd20['shift']());}catch(_0x530954){_0x55dd20['push'](_0x55dd20['shift']());}}}(a92_0x17c7,0xe6f85));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x17c7(){const _0x2ab963=['294grGvnO','2412008jUJZlk','14146957VyaMbO','102199xWrCgO','skillSource','4316211akugYz','13848xocxHy','8IPXbPi','npmRegistryBaseUrl','20PSNfpW','10238977DTMKDm','10BlpTkw','3734988wajTRU'];a92_0x17c7=function(){return _0x2ab963;};return a92_0x17c7();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a92_0x45b8(_0xb197dc,_0x31f4e1){_0xb197dc=_0xb197dc-0x1d1;const _0x17c7bc=a92_0x17c7();let _0x45b8dd=_0x17c7bc[_0xb197dc];return _0x45b8dd;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x5e5021(0x1d7)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x5e5021(0x1db)];
1
+ function a92_0x3f98(_0x50f5b0,_0x2299cf){_0x50f5b0=_0x50f5b0-0xbe;const _0x1b7ced=a92_0x1b7c();let _0x3f98de=_0x1b7ced[_0x50f5b0];return _0x3f98de;}const a92_0x275e36=a92_0x3f98;function a92_0x1b7c(){const _0x11dda7=['6982510YtMxsY','6544DZxusu','885sJfgCw','2Gkokjl','11673409ONKHLJ','3303DhTpkp','skillSource','npmRegistryBaseUrl','641496QyJrLe','15812NnDJEz','474BjEEeM','1643964zaxAXa','58443PwREHW'];a92_0x1b7c=function(){return _0x11dda7;};return a92_0x1b7c();}(function(_0x2a2e37,_0x2e75ff){const _0x566966=a92_0x3f98,_0xb27dc2=_0x2a2e37();while(!![]){try{const _0x283790=parseInt(_0x566966(0xc7))/0x1*(parseInt(_0x566966(0xbf))/0x2)+parseInt(_0x566966(0xc2))/0x3+parseInt(_0x566966(0xc0))/0x4*(-parseInt(_0x566966(0xc6))/0x5)+parseInt(_0x566966(0xc1))/0x6*(parseInt(_0x566966(0xc3))/0x7)+-parseInt(_0x566966(0xc5))/0x8*(parseInt(_0x566966(0xc9))/0x9)+parseInt(_0x566966(0xc4))/0xa+-parseInt(_0x566966(0xc8))/0xb;if(_0x283790===_0x2e75ff)break;else _0xb27dc2['push'](_0xb27dc2['shift']());}catch(_0x443cf9){_0xb27dc2['push'](_0xb27dc2['shift']());}}}(a92_0x1b7c,0x76b38));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x275e36(0xca)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x275e36(0xbe)];
@@ -38,7 +38,7 @@ export declare function initDomains(domains?: {
38
38
  */
39
39
  export declare const getUserDomain: () => string;
40
40
  /**
41
- * Returns the primary API domain for management operations (datasets, SQL, BFF).
41
+ * Returns the primary API domain for management operations (datasets, SQL, Backend Function).
42
42
  *
43
43
  * Why the domain changes based on env: production and staging (daily) have
44
44
  * separate infrastructure. Development uses the same staging API — there is no
@@ -1 +1 @@
1
- const a93_0xa0a845=a93_0x5472;(function(_0x386c2d,_0x30638f){const _0x3eb597=a93_0x5472,_0x3f8833=_0x386c2d();while(!![]){try{const _0x270914=-parseInt(_0x3eb597(0xdb))/0x1+parseInt(_0x3eb597(0xda))/0x2*(parseInt(_0x3eb597(0xcf))/0x3)+-parseInt(_0x3eb597(0xdd))/0x4+-parseInt(_0x3eb597(0xd4))/0x5*(parseInt(_0x3eb597(0xd2))/0x6)+parseInt(_0x3eb597(0xce))/0x7*(parseInt(_0x3eb597(0xcb))/0x8)+-parseInt(_0x3eb597(0xd7))/0x9+parseInt(_0x3eb597(0xd5))/0xa*(parseInt(_0x3eb597(0xd9))/0xb);if(_0x270914===_0x30638f)break;else _0x3f8833['push'](_0x3f8833['shift']());}catch(_0x1da93e){_0x3f8833['push'](_0x3f8833['shift']());}}}(a93_0x1b70,0x84f7d));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a93_0x5472(_0x53577f,_0x13f541){_0x53577f=_0x53577f-0xcb;const _0x1b706c=a93_0x1b70();let _0x547238=_0x1b706c[_0x53577f];return _0x547238;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x2aac00){const _0x4f8941=a93_0x5472;customApiDomain=_0x2aac00?.[_0x4f8941(0xcd)],customUserDomain=_0x2aac00?.[_0x4f8941(0xd1)],customRuntimeDomain=_0x2aac00?.[_0x4f8941(0xde)],customSkillHubDomain=_0x2aac00?.[_0x4f8941(0xdf)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd8)]['user']:PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd3)][a93_0xa0a845(0xcc)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0xa0a845(0xdc)]['production'][a93_0xa0a845(0xd0)]:PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd3)]['api']);function a93_0x1b70(){const _0x30f061=['615MpJcCJ','api','userDomain','12AAfymx','nonProduction','167285eLzWCm','10mZhPIz','runtime','7926642Mwquaj','production','8119507thTXcL','8114CtaFvF','384095TcNGVf','domains','399748AicVMV','runtimeDomain','skillHubDomain','skillhub','8SHcvNP','user','apiDomain','2845493kbfmwo'];a93_0x1b70=function(){return _0x30f061;};return a93_0x1b70();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0xa0a845(0xd8)][a93_0xa0a845(0xd6)]:PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd3)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd8)][a93_0xa0a845(0xe0)]:PRODUCT_CONFIG[a93_0xa0a845(0xdc)][a93_0xa0a845(0xd3)][a93_0xa0a845(0xe0)]);
1
+ function a93_0x3e89(_0x1ba24f,_0xbbcc06){_0x1ba24f=_0x1ba24f-0x16f;const _0x25b3c8=a93_0x25b3();let _0x3e89e2=_0x25b3c8[_0x1ba24f];return _0x3e89e2;}const a93_0x543e0c=a93_0x3e89;(function(_0x3a4309,_0x4b4d1a){const _0x5ade19=a93_0x3e89,_0x45af3a=_0x3a4309();while(!![]){try{const _0x449e20=-parseInt(_0x5ade19(0x17b))/0x1+parseInt(_0x5ade19(0x17c))/0x2*(-parseInt(_0x5ade19(0x17a))/0x3)+-parseInt(_0x5ade19(0x173))/0x4*(-parseInt(_0x5ade19(0x175))/0x5)+parseInt(_0x5ade19(0x179))/0x6*(parseInt(_0x5ade19(0x176))/0x7)+-parseInt(_0x5ade19(0x177))/0x8*(-parseInt(_0x5ade19(0x17f))/0x9)+parseInt(_0x5ade19(0x181))/0xa*(parseInt(_0x5ade19(0x180))/0xb)+parseInt(_0x5ade19(0x171))/0xc*(parseInt(_0x5ade19(0x174))/0xd);if(_0x449e20===_0x4b4d1a)break;else _0x45af3a['push'](_0x45af3a['shift']());}catch(_0x2e54dc){_0x45af3a['push'](_0x45af3a['shift']());}}}(a93_0x25b3,0x59e44));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x15091){const _0xdb18cc=a93_0x3e89;customApiDomain=_0x15091?.['apiDomain'],customUserDomain=_0x15091?.[_0xdb18cc(0x183)],customRuntimeDomain=_0x15091?.[_0xdb18cc(0x170)],customSkillHubDomain=_0x15091?.[_0xdb18cc(0x182)];}function a93_0x25b3(){const _0x173cb6=['6wfAqYT','1266231fZwhMQ','439220FnLgwE','2qurRri','production','nonProduction','63MBbgqj','11FekEtW','579590ooahdB','skillHubDomain','userDomain','skillhub','runtimeDomain','2309136MjHOzA','domains','36fOSyHq','13sgCNOZ','154670HVPTLA','2590091ALkPWB','377928hFnsKv','user'];a93_0x25b3=function(){return _0x173cb6;};return a93_0x25b3();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17d)]['user']:PRODUCT_CONFIG['domains'][a93_0x543e0c(0x17e)][a93_0x543e0c(0x178)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17d)]['api']:PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17e)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production']['runtime']:PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17e)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17d)][a93_0x543e0c(0x16f)]:PRODUCT_CONFIG[a93_0x543e0c(0x172)][a93_0x543e0c(0x17e)][a93_0x543e0c(0x16f)]);
@@ -1 +1 @@
1
- function a94_0x48ea(){const _0x148198=['3860590sGVxJt','ENV','170160ZENijz','3duxXVr','daily','426818APmEXm','2450670cKPjfP','2130QvvnNu','production','22401ZCDUHV','239760XQEhkv','online','dev','development','828336yGvLkN','322rUFgUW'];a94_0x48ea=function(){return _0x148198;};return a94_0x48ea();}const a94_0x29d5f4=a94_0x902c;(function(_0x2e32f9,_0xe3f57c){const _0x324541=a94_0x902c,_0xff9542=_0x2e32f9();while(!![]){try{const _0x28c002=-parseInt(_0x324541(0x8a))/0x1+parseInt(_0x324541(0x95))/0x2+-parseInt(_0x324541(0x93))/0x3*(parseInt(_0x324541(0x8e))/0x4)+parseInt(_0x324541(0x90))/0x5+-parseInt(_0x324541(0x96))/0x6+-parseInt(_0x324541(0x8f))/0x7*(-parseInt(_0x324541(0x92))/0x8)+-parseInt(_0x324541(0x89))/0x9*(parseInt(_0x324541(0x97))/0xa);if(_0x28c002===_0xe3f57c)break;else _0xff9542['push'](_0xff9542['shift']());}catch(_0x4488a6){_0xff9542['push'](_0xff9542['shift']());}}}(a94_0x48ea,0x8d3c5));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x29d5f4(0x88),a94_0x29d5f4(0x8d),a94_0x29d5f4(0x94)];export function normalizeEnv(_0x15b2d8){const _0x1faaa9=a94_0x29d5f4;return _0x15b2d8===_0x1faaa9(0x8b)?_0x1faaa9(0x88):_0x15b2d8;}export function isProduction(_0x51fe00){const _0x393046=a94_0x29d5f4;return normalizeEnv(_0x51fe00)===_0x393046(0x88);}export function isDaily(_0x479cd1){const _0x555991=a94_0x29d5f4;return normalizeEnv(_0x479cd1)===_0x555991(0x94);}export function isDev(_0x2f6354){const _0x55ef0b=a94_0x29d5f4,_0x456f60=normalizeEnv(_0x2f6354);return _0x456f60===_0x55ef0b(0x8d)||_0x456f60===_0x55ef0b(0x8c);}let env=normalizeEnv(productEnv(a94_0x29d5f4(0x91))||a94_0x29d5f4(0x88));function a94_0x902c(_0x44c91a,_0x484fa8){_0x44c91a=_0x44c91a-0x88;const _0x48eab0=a94_0x48ea();let _0x902c6e=_0x48eab0[_0x44c91a];return _0x902c6e;}export function getEnv(){return env;}export function initEnv(_0x399ead){env=normalizeEnv(_0x399ead);}
1
+ const a94_0x299719=a94_0x3875;function a94_0x3ea8(){const _0x3e66c3=['ENV','420896HdSKrM','online','1046118HRjDVC','daily','3568509QiRBAh','18835000ZBaFeb','4Blfmqo','production','3942808lROjkh','development','94292MCctQa','7426706EIYPRC','6RkvzTp','205MGPucB'];a94_0x3ea8=function(){return _0x3e66c3;};return a94_0x3ea8();}(function(_0x4ee4b,_0x145023){const _0x59e7ba=a94_0x3875,_0x3d5d82=_0x4ee4b();while(!![]){try{const _0x836a33=-parseInt(_0x59e7ba(0x1ae))/0x1*(parseInt(_0x59e7ba(0x1a5))/0x2)+parseInt(_0x59e7ba(0x1a1))/0x3+-parseInt(_0x59e7ba(0x1a9))/0x4*(parseInt(_0x59e7ba(0x1ac))/0x5)+parseInt(_0x59e7ba(0x1ab))/0x6*(parseInt(_0x59e7ba(0x1aa))/0x7)+-parseInt(_0x59e7ba(0x1a7))/0x8+-parseInt(_0x59e7ba(0x1a3))/0x9+parseInt(_0x59e7ba(0x1a4))/0xa;if(_0x836a33===_0x145023)break;else _0x3d5d82['push'](_0x3d5d82['shift']());}catch(_0x4d45ac){_0x3d5d82['push'](_0x3d5d82['shift']());}}}(a94_0x3ea8,0x91647));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a94_0x299719(0x1a8),a94_0x299719(0x1a2)];export function normalizeEnv(_0x81f5c){const _0x158b7a=a94_0x299719;return _0x81f5c===_0x158b7a(0x1af)?_0x158b7a(0x1a6):_0x81f5c;}export function isProduction(_0x241a38){return normalizeEnv(_0x241a38)==='production';}export function isDaily(_0x3d10b8){return normalizeEnv(_0x3d10b8)==='daily';}function a94_0x3875(_0x1691d5,_0x327113){_0x1691d5=_0x1691d5-0x1a1;const _0x3ea805=a94_0x3ea8();let _0x387550=_0x3ea805[_0x1691d5];return _0x387550;}export function isDev(_0x684d22){const _0x46b2c2=a94_0x299719,_0x49f45b=normalizeEnv(_0x684d22);return _0x49f45b===_0x46b2c2(0x1a8)||_0x49f45b==='dev';}let env=normalizeEnv(productEnv(a94_0x299719(0x1ad))||a94_0x299719(0x1a6));export function getEnv(){return env;}export function initEnv(_0x263e6f){env=normalizeEnv(_0x263e6f);}
@@ -1 +1 @@
1
- function a95_0x2bd5(){const _0x3e173a=['295326tDCuQM','1233291uWIrqp','pretty','compress','58933CxSBCO','11ioeNTt','2305fPjMIj','2SWzdaM','json','77EoUIjD','16945030ZNLyoV','5676HOPNwH','1606362xPKKyF','307448vbnDBw'];a95_0x2bd5=function(){return _0x3e173a;};return a95_0x2bd5();}const a95_0x2a2fd7=a95_0x467c;(function(_0x3e8e65,_0x2fe441){const _0x5dedf2=a95_0x467c,_0x170e4d=_0x3e8e65();while(!![]){try{const _0x55bda8=-parseInt(_0x5dedf2(0xbd))/0x1+parseInt(_0x5dedf2(0xc0))/0x2*(-parseInt(_0x5dedf2(0xba))/0x3)+-parseInt(_0x5dedf2(0xc4))/0x4*(parseInt(_0x5dedf2(0xbf))/0x5)+parseInt(_0x5dedf2(0xc5))/0x6+-parseInt(_0x5dedf2(0xc2))/0x7*(parseInt(_0x5dedf2(0xc6))/0x8)+-parseInt(_0x5dedf2(0xc7))/0x9+-parseInt(_0x5dedf2(0xc3))/0xa*(-parseInt(_0x5dedf2(0xbe))/0xb);if(_0x55bda8===_0x2fe441)break;else _0x170e4d['push'](_0x170e4d['shift']());}catch(_0x4731a4){_0x170e4d['push'](_0x170e4d['shift']());}}}(a95_0x2bd5,0x5d616));function a95_0x467c(_0x4ce909,_0x3eae0e){_0x4ce909=_0x4ce909-0xba;const _0x2bd573=a95_0x2bd5();let _0x467cdc=_0x2bd573[_0x4ce909];return _0x467cdc;}export const OUTPUT_FORMAT_VALUES=[a95_0x2a2fd7(0xc1),a95_0x2a2fd7(0xbb),a95_0x2a2fd7(0xbc)];
1
+ function a95_0x2a1c(_0x1e1ae6,_0x5c5117){_0x1e1ae6=_0x1e1ae6-0xe3;const _0x15b099=a95_0x15b0();let _0x2a1c23=_0x15b099[_0x1e1ae6];return _0x2a1c23;}const a95_0x308aa1=a95_0x2a1c;(function(_0x5bfab0,_0x25208b){const _0x30a2a5=a95_0x2a1c,_0x4f9bff=_0x5bfab0();while(!![]){try{const _0x4c2e4c=-parseInt(_0x30a2a5(0xeb))/0x1*(parseInt(_0x30a2a5(0xe8))/0x2)+-parseInt(_0x30a2a5(0xf0))/0x3+parseInt(_0x30a2a5(0xe5))/0x4*(parseInt(_0x30a2a5(0xe4))/0x5)+parseInt(_0x30a2a5(0xea))/0x6*(parseInt(_0x30a2a5(0xee))/0x7)+-parseInt(_0x30a2a5(0xe7))/0x8*(parseInt(_0x30a2a5(0xe6))/0x9)+parseInt(_0x30a2a5(0xe9))/0xa*(-parseInt(_0x30a2a5(0xed))/0xb)+parseInt(_0x30a2a5(0xec))/0xc;if(_0x4c2e4c===_0x25208b)break;else _0x4f9bff['push'](_0x4f9bff['shift']());}catch(_0x533b2a){_0x4f9bff['push'](_0x4f9bff['shift']());}}}(a95_0x15b0,0x3c699));export const OUTPUT_FORMAT_VALUES=['json',a95_0x308aa1(0xef),a95_0x308aa1(0xe3)];function a95_0x15b0(){const _0x277f9a=['compress','335ofAHLb','13372tmCrYF','3910104kbQDBL','8cuyoIH','319778fXSDRl','13710YwJqpl','47868LaDyoR','1ddrcaN','15075720OxYIfQ','2233QYoyCn','21tZHYIg','pretty','1152354yFFump'];a95_0x15b0=function(){return _0x277f9a;};return a95_0x15b0();}
@@ -1 +1 @@
1
- const a96_0x2d39d6=a96_0x1411;(function(_0x186ce9,_0x53f553){const _0xbf6fc7=a96_0x1411,_0x18395f=_0x186ce9();while(!![]){try{const _0x3e1222=parseInt(_0xbf6fc7(0x1d6))/0x1*(-parseInt(_0xbf6fc7(0x1c5))/0x2)+parseInt(_0xbf6fc7(0x1cd))/0x3+-parseInt(_0xbf6fc7(0x1bb))/0x4+parseInt(_0xbf6fc7(0x1c9))/0x5*(parseInt(_0xbf6fc7(0x1c8))/0x6)+-parseInt(_0xbf6fc7(0x1bd))/0x7+parseInt(_0xbf6fc7(0x1d5))/0x8*(parseInt(_0xbf6fc7(0x1c0))/0x9)+-parseInt(_0xbf6fc7(0x1bf))/0xa*(-parseInt(_0xbf6fc7(0x1c2))/0xb);if(_0x3e1222===_0x53f553)break;else _0x18395f['push'](_0x18395f['shift']());}catch(_0x20c7f6){_0x18395f['push'](_0x18395f['shift']());}}}(a96_0x5aa8,0xd4def));export const PRODUCT_CONFIG={'cliBinName':a96_0x2d39d6(0x1d2),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a96_0x2d39d6(0x1bc),'skillSource':a96_0x2d39d6(0x1d3),'internalSkillSource':a96_0x2d39d6(0x1d0),'globalSkillName':a96_0x2d39d6(0x1d2),'npmRegistryBaseUrl':a96_0x2d39d6(0x1c4),'envPrefix':a96_0x2d39d6(0x1b8),'legacyEnvPrefixes':[a96_0x2d39d6(0x1d4)],'configFileNames':['.lovrabet.json',a96_0x2d39d6(0x1ca)],'newConfigFileName':a96_0x2d39d6(0x1cb),'homeDirName':a96_0x2d39d6(0x1c1),'logFileName':a96_0x2d39d6(0x1ce),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a96_0x2d39d6(0x1ba),'skipNpxSkillsEnvSuffix':a96_0x2d39d6(0x1b9),'domains':{'production':{'user':a96_0x2d39d6(0x1c3),'api':a96_0x2d39d6(0x1cc),'runtime':a96_0x2d39d6(0x1c7),'skillhub':a96_0x2d39d6(0x1be)},'nonProduction':{'user':a96_0x2d39d6(0x1c6),'api':'https://daily-api.lovrabet.com','runtime':a96_0x2d39d6(0x1d1),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};function a96_0x5aa8(){const _0x4896f1=['24324650QOCfTi','58815JoCDai','.lovrabet','11LFgHnL','https://user.lovrabet.com','https://registry.npmjs.org','2992844dBigUT','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','24078uNBcxt','535iMgmoh','.lovrabetrc','.lovrabet.json','https://api.lovrabet.com','2484219QfqTlF','.lovrabet-runtime.log','envPrefix','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://daily-runtime.lovrabet.com','lovrabet','lovrabet/lovrabet-cli','RABETBASE','184woGDHP','1AQUeCc','LOVRABET','SKIP_NPX_SKILLS','Lovrabet\x20User\x20Center','684356rzzbQA','@lovrabet/lovrabet-cli','9105628dEoBpg','https://skills.lovrabet.com'];a96_0x5aa8=function(){return _0x4896f1;};return a96_0x5aa8();}export function productEnvName(_0x283421){const _0x39da26=a96_0x2d39d6;return PRODUCT_CONFIG[_0x39da26(0x1cf)]+'_'+_0x283421;}export function productEnvNames(_0x59ed5c){return[productEnvName(_0x59ed5c),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x40a017=>_0x40a017+'_'+_0x59ed5c)];}function a96_0x1411(_0x2f7f2c,_0xe8cf9a){_0x2f7f2c=_0x2f7f2c-0x1b8;const _0x5aa8f9=a96_0x5aa8();let _0x1411a7=_0x5aa8f9[_0x2f7f2c];return _0x1411a7;}export function productEnv(_0x18a205){for(const _0x243ca8 of productEnvNames(_0x18a205)){const _0x2efe13=process.env[_0x243ca8];if(_0x2efe13!==undefined)return _0x2efe13;}return undefined;}
1
+ const a96_0x42e2a1=a96_0x4aa0;(function(_0x55b7ba,_0x965ece){const _0x5c3abf=a96_0x4aa0,_0x44c44d=_0x55b7ba();while(!![]){try{const _0xd1bad=-parseInt(_0x5c3abf(0x15c))/0x1+parseInt(_0x5c3abf(0x145))/0x2*(parseInt(_0x5c3abf(0x148))/0x3)+-parseInt(_0x5c3abf(0x154))/0x4*(parseInt(_0x5c3abf(0x149))/0x5)+-parseInt(_0x5c3abf(0x151))/0x6+-parseInt(_0x5c3abf(0x15d))/0x7*(-parseInt(_0x5c3abf(0x147))/0x8)+parseInt(_0x5c3abf(0x153))/0x9+parseInt(_0x5c3abf(0x152))/0xa;if(_0xd1bad===_0x965ece)break;else _0x44c44d['push'](_0x44c44d['shift']());}catch(_0x1820d3){_0x44c44d['push'](_0x44c44d['shift']());}}}(a96_0x1a88,0x389e9));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a96_0x42e2a1(0x15f),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a96_0x42e2a1(0x14d),'internalSkillSource':a96_0x42e2a1(0x158),'globalSkillName':'lovrabet','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a96_0x42e2a1(0x15a),'legacyEnvPrefixes':[a96_0x42e2a1(0x14f)],'configFileNames':[a96_0x42e2a1(0x15e),a96_0x42e2a1(0x15b)],'newConfigFileName':a96_0x42e2a1(0x15e),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a96_0x42e2a1(0x156),'userCenterDisplayName':a96_0x42e2a1(0x157),'skipNpxSkillsEnvSuffix':a96_0x42e2a1(0x155),'domains':{'production':{'user':a96_0x42e2a1(0x14b),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skillhub':a96_0x42e2a1(0x159)},'nonProduction':{'user':a96_0x42e2a1(0x14c),'api':a96_0x42e2a1(0x146),'runtime':a96_0x42e2a1(0x14a),'skillhub':a96_0x42e2a1(0x14e)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x443bba){return PRODUCT_CONFIG['envPrefix']+'_'+_0x443bba;}export function productEnvNames(_0x16bac1){const _0x57ea95=a96_0x42e2a1;return[productEnvName(_0x16bac1),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x57ea95(0x150)](_0xf46d06=>_0xf46d06+'_'+_0x16bac1)];}function a96_0x1a88(){const _0x3ad1c0=['.lovrabet.json','Lovrabet\x20Runtime\x20CLI','2DvKqsW','https://daily-api.lovrabet.com','3544WoSRWU','335193ETaNko','230ISTpFX','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','https://user-daily.lovrabet.com','lovrabet/lovrabet-cli','https://skills-daily.lovrabet.com','RABETBASE','map','1427016oPBQtQ','4521350pSgkRP','1714923cVapPJ','7160eQHBJm','SKIP_NPX_SKILLS','cli:lovrabet-runtime','Lovrabet\x20User\x20Center','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://skills.lovrabet.com','LOVRABET','.lovrabetrc','454834SMzEaJ','3990GFKayH'];a96_0x1a88=function(){return _0x3ad1c0;};return a96_0x1a88();}function a96_0x4aa0(_0xef0f5,_0xc76d59){_0xef0f5=_0xef0f5-0x145;const _0x1a885f=a96_0x1a88();let _0x4aa0c4=_0x1a885f[_0xef0f5];return _0x4aa0c4;}export function productEnv(_0x2da7d6){for(const _0x56a230 of productEnvNames(_0x2da7d6)){const _0x20512e=process.env[_0x56a230];if(_0x20512e!==undefined)return _0x20512e;}return undefined;}
@@ -1 +1 @@
1
- function a97_0x5d69(){const _0x5772d0=['1745AWKCnR','2744784nKiuiv','read','1700wwALyK','36HYclXK','2903307uuYvzu','2266PgnqEN','5332536sbUbbl','11708fFEXpp','729HDGgbP','6XnCfZV','27504OaNnde','write','589792XTVzFa','high-risk-write'];a97_0x5d69=function(){return _0x5772d0;};return a97_0x5d69();}function a97_0x2e44(_0xe8828a,_0x5bc6c1){_0xe8828a=_0xe8828a-0x7a;const _0x5d698f=a97_0x5d69();let _0x2e4494=_0x5d698f[_0xe8828a];return _0x2e4494;}const a97_0x33ce1a=a97_0x2e44;(function(_0x5b4848,_0x6da279){const _0x30bd00=a97_0x2e44,_0x48fa4d=_0x5b4848();while(!![]){try{const _0xe3091f=parseInt(_0x30bd00(0x7d))/0x1+-parseInt(_0x30bd00(0x85))/0x2*(parseInt(_0x30bd00(0x88))/0x3)+-parseInt(_0x30bd00(0x87))/0x4*(-parseInt(_0x30bd00(0x7f))/0x5)+parseInt(_0x30bd00(0x7a))/0x6*(-parseInt(_0x30bd00(0x80))/0x7)+-parseInt(_0x30bd00(0x86))/0x8+parseInt(_0x30bd00(0x7b))/0x9*(-parseInt(_0x30bd00(0x82))/0xa)+parseInt(_0x30bd00(0x84))/0xb*(parseInt(_0x30bd00(0x83))/0xc);if(_0xe3091f===_0x6da279)break;else _0x48fa4d['push'](_0x48fa4d['shift']());}catch(_0x5bc11b){_0x48fa4d['push'](_0x48fa4d['shift']());}}}(a97_0x5d69,0x862e8));export const RISK_LEVEL_VALUES=[a97_0x33ce1a(0x81),a97_0x33ce1a(0x7c),a97_0x33ce1a(0x7e)];
1
+ const a97_0x164fdf=a97_0x344b;function a97_0x344b(_0x1df636,_0x12f3e2){_0x1df636=_0x1df636-0x1c1;const _0x7fc7f2=a97_0x7fc7();let _0x344b91=_0x7fc7f2[_0x1df636];return _0x344b91;}function a97_0x7fc7(){const _0x3c5485=['10957821bADZBO','4459656eGQRNe','high-risk-write','1299810QrhGAC','271319JmAzfi','2486996IqXHNf','621284iXvQMa','3056562JBEUUT','read'];a97_0x7fc7=function(){return _0x3c5485;};return a97_0x7fc7();}(function(_0x1e22fb,_0x4d31e9){const _0x21c73e=a97_0x344b,_0x50dbf9=_0x1e22fb();while(!![]){try{const _0x35ab07=-parseInt(_0x21c73e(0x1c2))/0x1+parseInt(_0x21c73e(0x1c4))/0x2+-parseInt(_0x21c73e(0x1c5))/0x3+parseInt(_0x21c73e(0x1c3))/0x4+parseInt(_0x21c73e(0x1c1))/0x5+-parseInt(_0x21c73e(0x1c8))/0x6+parseInt(_0x21c73e(0x1c7))/0x7;if(_0x35ab07===_0x4d31e9)break;else _0x50dbf9['push'](_0x50dbf9['shift']());}catch(_0xa88c35){_0x50dbf9['push'](_0x50dbf9['shift']());}}}(a97_0x7fc7,0xb0d53));export const RISK_LEVEL_VALUES=[a97_0x164fdf(0x1c6),'write',a97_0x164fdf(0x1c9)];
@@ -1 +1 @@
1
- function a98_0x17fc(_0x16b0be,_0x4d54de){_0x16b0be=_0x16b0be-0x18a;const _0x11193a=a98_0x1119();let _0x17fc55=_0x11193a[_0x16b0be];return _0x17fc55;}const a98_0x4dbfb9=a98_0x17fc;(function(_0x5a5053,_0x106e56){const _0xdd0f49=a98_0x17fc,_0x15d4d6=_0x5a5053();while(!![]){try{const _0x535f76=-parseInt(_0xdd0f49(0x191))/0x1*(parseInt(_0xdd0f49(0x18c))/0x2)+parseInt(_0xdd0f49(0x194))/0x3+-parseInt(_0xdd0f49(0x190))/0x4+parseInt(_0xdd0f49(0x18d))/0x5+-parseInt(_0xdd0f49(0x193))/0x6+-parseInt(_0xdd0f49(0x18b))/0x7+parseInt(_0xdd0f49(0x18e))/0x8*(parseInt(_0xdd0f49(0x18f))/0x9);if(_0x535f76===_0x106e56)break;else _0x15d4d6['push'](_0x15d4d6['shift']());}catch(_0x1839c2){_0x15d4d6['push'](_0x15d4d6['shift']());}}}(a98_0x1119,0x48682));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x1119(){const _0x2bd617=['1150563AtwDaK','production','1156743ygTxGt','2eOlenX','2957220rYjoAm','55696MeeNXx','819BKFqlN','2323308Wrnxij','539157AwIvJX','accessKeyCreatePath','160176tIKGjO'];a98_0x1119=function(){return _0x2bd617;};return a98_0x1119();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a98_0x4dbfb9(0x18a)]['user']+PRODUCT_CONFIG[a98_0x4dbfb9(0x192)];
1
+ const a98_0x16e193=a98_0x15bf;function a98_0x2de0(){const _0x20cd86=['135858qKOWgE','1388169FpSSDc','accessKeyCreatePath','1327032GhKApA','production','3ARqNbo','10mhpwHC','384400LPqwxt','210133hGRdQt','10TeGChE','379380PUuIrM','125476pDtLCB','domains'];a98_0x2de0=function(){return _0x20cd86;};return a98_0x2de0();}(function(_0x4b75d9,_0x44ae17){const _0xdc215a=a98_0x15bf,_0x40a2e8=_0x4b75d9();while(!![]){try{const _0x42dd57=parseInt(_0xdc215a(0x14c))/0x1+parseInt(_0xdc215a(0x14e))/0x2*(parseInt(_0xdc215a(0x146))/0x3)+parseInt(_0xdc215a(0x148))/0x4+parseInt(_0xdc215a(0x147))/0x5*(parseInt(_0xdc215a(0x14b))/0x6)+parseInt(_0xdc215a(0x149))/0x7+-parseInt(_0xdc215a(0x151))/0x8+-parseInt(_0xdc215a(0x14f))/0x9*(parseInt(_0xdc215a(0x14a))/0xa);if(_0x42dd57===_0x44ae17)break;else _0x40a2e8['push'](_0x40a2e8['shift']());}catch(_0x4aeec4){_0x40a2e8['push'](_0x40a2e8['shift']());}}}(a98_0x2de0,0x1eba8));function a98_0x15bf(_0x3af7e8,_0x3c6c36){_0x3af7e8=_0x3af7e8-0x145;const _0x2de0d2=a98_0x2de0();let _0x15bf69=_0x2de0d2[_0x3af7e8];return _0x15bf69;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x16e193(0x14d)][a98_0x16e193(0x145)]['user']+PRODUCT_CONFIG[a98_0x16e193(0x150)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a99_0x842e7=a99_0x788a;(function(_0x58ef17,_0x47e43a){const _0x37f683=a99_0x788a,_0x16a0cb=_0x58ef17();while(!![]){try{const _0x5c0ea3=parseInt(_0x37f683(0x104))/0x1*(-parseInt(_0x37f683(0xf3))/0x2)+parseInt(_0x37f683(0x116))/0x3*(-parseInt(_0x37f683(0xfb))/0x4)+-parseInt(_0x37f683(0x117))/0x5*(parseInt(_0x37f683(0x101))/0x6)+parseInt(_0x37f683(0x126))/0x7+-parseInt(_0x37f683(0x112))/0x8*(parseInt(_0x37f683(0xff))/0x9)+-parseInt(_0x37f683(0x111))/0xa+parseInt(_0x37f683(0x12a))/0xb*(parseInt(_0x37f683(0x115))/0xc);if(_0x5c0ea3===_0x47e43a)break;else _0x16a0cb['push'](_0x16a0cb['shift']());}catch(_0x3df757){_0x16a0cb['push'](_0x16a0cb['shift']());}}}(a99_0x5cc3,0x9169f));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[a99_0x842e7(0x11e)];function a99_0x788a(_0x31b2fc,_0x42406e){_0x31b2fc=_0x31b2fc-0xec;const _0x5cc373=a99_0x5cc3();let _0x788aa9=_0x5cc373[_0x31b2fc];return _0x788aa9;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x842e7(0x107)];function resolveConfigPath(_0xe5127b){for(const _0x11a1dd of CONFIG_NAMES){const _0x5d53da=resolve(_0xe5127b,_0x11a1dd);if(existsSync(_0x5d53da))return _0x5d53da;}return undefined;}export function resolveWriteConfigPath(_0x2c551b){const _0x244113=a99_0x842e7,_0x45976f=_0x2c551b===_0x244113(0x109)?process[_0x244113(0x10a)]():homedir(),_0x4b31f1=resolveConfigPath(_0x45976f);return _0x4b31f1??resolve(_0x45976f,NEW_CONFIG_NAME);}export function readConfigFile(_0x153490){const _0x41e50b=a99_0x842e7;try{if(existsSync(_0x153490)){const _0x411e71=readFileSync(_0x153490,{'encoding':_0x41e50b(0x10f)});if(_0x411e71){const _0x2859c9=JSON[_0x41e50b(0x113)](_0x411e71);return migrateOnlineEnv(_0x153490,_0x2859c9),_0x2859c9;}}}catch{}return{};}function migrateOnlineEnv(_0x2eb57a,_0x5676ea){const _0xace6c=a99_0x842e7;let _0x7f204d=![];_0x5676ea[_0xace6c(0x103)]===_0xace6c(0xf1)&&(_0x5676ea['env']=_0xace6c(0x12b),_0x7f204d=!![]);if(_0x5676ea[_0xace6c(0x119)]&&typeof _0x5676ea[_0xace6c(0x119)]===_0xace6c(0x118))for(const _0x37ae12 of Object['values'](_0x5676ea[_0xace6c(0x119)])){_0x37ae12&&_0x37ae12[_0xace6c(0x103)]===_0xace6c(0xf1)&&(_0x37ae12[_0xace6c(0x103)]=_0xace6c(0x12b),_0x7f204d=!![]);}if(_0x7f204d)try{writeConfigFile(_0x2eb57a,_0x5676ea);}catch{}}export function writeConfigFile(_0x488df2,_0x544faf){const _0x4dc786=a99_0x842e7,_0x2e01db=dirname(_0x488df2);!existsSync(_0x2e01db)&&mkdirSync(_0x2e01db,{'recursive':!![]});const _0x29f543=_0x488df2+_0x4dc786(0x10e);try{writeFileSync(_0x29f543,JSON[_0x4dc786(0x137)](_0x544faf,null,0x2)+'\x0a',{'encoding':_0x4dc786(0x10f),'mode':0x180});try{renameSync(_0x29f543,_0x488df2);}catch(_0x19a6e8){if(_0x19a6e8[_0x4dc786(0xec)]===_0x4dc786(0xef)||_0x19a6e8[_0x4dc786(0xec)]===_0x4dc786(0x108)||_0x19a6e8['code']===_0x4dc786(0xf7)){writeFileSync(_0x488df2,JSON['stringify'](_0x544faf,null,0x2)+'\x0a',{'encoding':_0x4dc786(0x10f)});try{unlinkSync(_0x29f543);}catch{}}else throw _0x19a6e8;}}catch(_0x57206c){try{unlinkSync(_0x29f543);}catch{}throw _0x57206c;}}export function isNonInteractiveMode(_0x33d42f){const _0xde9ac8=a99_0x842e7;return!!(_0x33d42f[_0xde9ac8(0x122)]||_0x33d42f['ci']||productEnvNames('CI')[_0xde9ac8(0x121)](_0x571578=>process.env[_0x571578]===_0xde9ac8(0x127))||process.env.CI===_0xde9ac8(0x127)||!process[_0xde9ac8(0x114)][_0xde9ac8(0xfa)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x446e50=a99_0x842e7;if(!process[_0x446e50(0x10d)]['isTTY'])return![];try{const _0x3a0581=process['stdin'][_0x446e50(0x105)];return process[_0x446e50(0x10d)][_0x446e50(0x120)](!![]),process[_0x446e50(0x10d)]['setRawMode'](_0x3a0581??![]),!![];}catch{return![];}}export async function createContext(_0x3eb4bf){const _0x1937ee=a99_0x842e7,_0x4cb9d6=readRawConfig(),_0x49998c=buildConfig(_0x4cb9d6,_0x3eb4bf);await initGlobalEnvironment(_0x49998c);const {getUserDomain:_0x3b9022,getApiDomain:_0x133ddd}=await import('./constant/domain.js'),_0x5a8062={'apiDomain':_0x133ddd(),'userDomain':_0x3b9022()},_0x55a0b2=await buildAuth(_0x49998c);logger['setLogPath'](process[_0x1937ee(0x10a)]());const _0x289bbc=(CLI_BIN_NAME+'\x20'+process[_0x1937ee(0xf5)][_0x1937ee(0xf9)](0x2)['join']('\x20'))['trim']();logger[_0x1937ee(0x11b)](_0x289bbc);const _0x2f5119=isNonInteractiveMode(_0x3eb4bf);return{'config':_0x49998c,'auth':_0x55a0b2,'logger':logger,'env':_0x5a8062,'nonInteractive':_0x2f5119};}export function buildConfigFromFlags(_0xca06d9){return buildConfig(readRawConfig(),_0xca06d9);}export function getLocalAppAliases(_0x282112){const _0x5f1c42=a99_0x842e7;return _0x282112[_0x5f1c42(0x119)]&&typeof _0x282112['apps']===_0x5f1c42(0x118)?_0x282112[_0x5f1c42(0x119)]:{};}export function resolveLocalAppAliasCode(_0x43f251,_0x48b9d8){const _0x6e13d2=a99_0x842e7;if(!_0x48b9d8)return undefined;const _0x2a6e51=getLocalAppAliases(_0x43f251)[_0x48b9d8],_0x488437=_0x2a6e51?.[_0x6e13d2(0x134)];return typeof _0x488437===_0x6e13d2(0x131)&&_0x488437[_0x6e13d2(0x100)]()?_0x488437[_0x6e13d2(0x100)]():undefined;}export function readAppCodeFromConfig(){const _0x2ce203=a99_0x842e7,_0x4035b1=readRawConfig(),_0x1d7297=_0x4035b1['appcode']??_0x4035b1[_0x2ce203(0x11a)];if(typeof _0x1d7297===_0x2ce203(0x131)&&_0x1d7297['trim']())return _0x1d7297[_0x2ce203(0x100)]();const _0x7131ca=resolveLocalAppAliasCode(_0x4035b1,typeof _0x4035b1[_0x2ce203(0x135)]===_0x2ce203(0x131)?_0x4035b1[_0x2ce203(0x135)]:undefined);if(_0x7131ca)return _0x7131ca;const _0x55ef16=normalizeEnv(String(_0x4035b1[_0x2ce203(0x103)]||_0x2ce203(0x12b))),_0x1c8fe1=isDaily(_0x55ef16)?_0x2ce203(0xf4):isDev(_0x55ef16)?_0x2ce203(0xed):'production',_0x259356=resolveCachedAppCode(typeof _0x4035b1[_0x2ce203(0x135)]==='string'?_0x4035b1['defaultApp']:undefined,_0x1c8fe1,typeof _0x4035b1['accessKey']===_0x2ce203(0x131)?_0x4035b1[_0x2ce203(0xf0)]:undefined);if(_0x259356)return _0x259356;const _0x563706=Object['values'](getLocalAppAliases(_0x4035b1))[_0x2ce203(0x12d)](_0x2402dd=>_0x2402dd?.[_0x2ce203(0x134)]);return typeof _0x563706?.['appcode']===_0x2ce203(0x131)&&_0x563706[_0x2ce203(0x134)]['trim']()?_0x563706['appcode'][_0x2ce203(0x100)]():undefined;}export function readScopedConfig(_0xd5b050){const _0x50ad90=a99_0x842e7,_0xde4198=_0xd5b050[_0x50ad90(0x124)]?_0x50ad90(0x124):_0x50ad90(0x109);return readConfigFile(resolveWriteConfigPath(_0xde4198));}export function writeScopedConfig(_0x1cdcf1,_0x4c9230){const _0x4e46f6=a99_0x842e7,_0x1f5472=_0x4c9230[_0x4e46f6(0x124)]?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x1f5472),_0x1cdcf1);}export async function initGlobalEnvironment(_0x3bfbbd){const _0x3213ba=a99_0x842e7,{initEnv:_0xd00045}=await import(_0x3213ba(0x110));_0xd00045(_0x3bfbbd[_0x3213ba(0x103)]);const {initDomains:_0x5dfefe}=await import('./constant/domain.js');_0x5dfefe({'apiDomain':_0x3bfbbd[_0x3213ba(0x132)][_0x3213ba(0x125)]||_0x3bfbbd[_0x3213ba(0x132)][_0x3213ba(0xfd)]||undefined,'userDomain':_0x3bfbbd[_0x3213ba(0x132)][_0x3213ba(0xf2)]||undefined,'runtimeDomain':_0x3bfbbd[_0x3213ba(0x132)][_0x3213ba(0x11f)]||undefined,'skillHubDomain':_0x3bfbbd[_0x3213ba(0x132)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x4863f0=a99_0x842e7;return resolveConfigPath(process[_0x4863f0(0x10a)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a99_0x5cc3(){const _0x327d17=['parse','stdout','552DOdSwT','111lfBDzC','5PnlDSj','object','apps','app','setRawCommand','APPCODE','PAGE_SIZE','configFileNames','runtimeDomain','setRawMode','some','nonInteractive','missing','global','apiDomain','5025636CYkgvd','true','write','authRequired','645480hzKWgH','production','pageSize','find','projectConfig','ENV','riskLevel','string','raw','cache','appcode','defaultApp','message','stringify','code','development','APP','EPERM','accessKey','online','userDomain','146ayUIfy','daily','argv','ACCESS_KEY','EACCES','local-alias','slice','isTTY','45244ljQZJJ','inherit','host','explicit','4329wSlbxX','trim','4030590WttgvX','locale','env','5177nJsiwr','isRaw','format','newConfigFileName','EXDEV','project','cwd','empty','maxRisk','stdin','.tmp','utf8','./constant/env.js','9210010HmONhD','7192IURQbr'];a99_0x5cc3=function(){return _0x327d17;};return a99_0x5cc3();}export function inspectCliConfigJsonFile(_0x33804b){const _0x47f210=a99_0x842e7;if(!existsSync(_0x33804b))return{'status':_0x47f210(0x123)};try{const _0x23ce8e=readFileSync(_0x33804b,{'encoding':_0x47f210(0x10f)});if(!_0x23ce8e?.[_0x47f210(0x100)]())return{'status':_0x47f210(0x10b)};const _0x5c0f38=JSON[_0x47f210(0x113)](_0x23ce8e);return{'status':'ok','data':_0x5c0f38};}catch(_0x137cce){return{'status':'error','message':_0x137cce instanceof Error?_0x137cce[_0x47f210(0x136)]:String(_0x137cce)};}}export function loadRawConfigLayers(_0x704734){const _0x1ba233=a99_0x842e7;let _0x233527={},_0x4c4913={},_0x3e2229,_0x4de133;try{_0x3e2229=resolveConfigPath(homedir());if(_0x3e2229){const _0x1495b8=readFileSync(_0x3e2229,{'encoding':_0x1ba233(0x10f)});if(_0x1495b8)_0x233527=JSON[_0x1ba233(0x113)](_0x1495b8);}}catch{}try{const _0x1dc623=_0x704734||process[_0x1ba233(0x10a)]();_0x4de133=resolveConfigPath(_0x1dc623);if(_0x4de133){const _0x3faf07=readFileSync(_0x4de133,{'encoding':_0x1ba233(0x10f)});if(_0x3faf07)_0x4c4913=JSON[_0x1ba233(0x113)](_0x3faf07);}}catch{}return{'globalPath':_0x3e2229,'projectPath':_0x4de133,'globalConfig':_0x233527,'projectConfig':_0x4c4913};}function mergeRawConfigLayers(_0x3f20de){const _0x4e9ee0=a99_0x842e7,{globalConfig:_0x30ca8c,projectConfig:_0xe8457c}=_0x3f20de;if(_0xe8457c[_0x4e9ee0(0xfc)]===![]){const _0x22fb1c={..._0xe8457c};return delete _0x22fb1c[_0x4e9ee0(0xfc)],_0x22fb1c;}const _0x11ee1e={..._0x30ca8c,..._0xe8457c};if(_0x4e9ee0(0x135)in _0xe8457c)_0x11ee1e[_0x4e9ee0(0x135)]=_0xe8457c[_0x4e9ee0(0x135)];else _0x30ca8c[_0x4e9ee0(0x135)]&&(_0x11ee1e['defaultApp']=_0x30ca8c[_0x4e9ee0(0x135)]);return _0x11ee1e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x7f04ba){return mergeRawConfigLayers(loadRawConfigLayers(_0x7f04ba));}export function readRawConfigWithLayers(_0x538c16){const _0xc26b88=loadRawConfigLayers(_0x538c16);return{'config':mergeRawConfigLayers(_0xc26b88),'layers':_0xc26b88};}export function resolveDefaultAppSource(_0x3acb5d){const _0x50d6ea=a99_0x842e7;if(_0x50d6ea(0x135)in _0x3acb5d[_0x50d6ea(0x12e)])return _0x50d6ea(0x109);if(_0x3acb5d[_0x50d6ea(0x12e)][_0x50d6ea(0xfc)]===![])return null;if(_0x3acb5d['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x24140c,_0x414ce6){const _0x5c76d1=a99_0x842e7,_0x4189c2=_0x24140c[_0x5c76d1(0x135)]||undefined,_0xaae49=_0x414ce6[_0x5c76d1(0x11a)]||env(_0x5c76d1(0xee))||undefined,_0x2e8ff3=_0xaae49||_0x4189c2||undefined,_0x361c61=env(_0x5c76d1(0xf6))||_0x24140c[_0x5c76d1(0xf0)]||undefined,_0x25fee1=_0x414ce6[_0x5c76d1(0x103)]||env(_0x5c76d1(0x12f))||_0x24140c[_0x5c76d1(0x103)]||DEFAULT_CONFIG_VALUES[_0x5c76d1(0x103)],_0x2d77dc=normalizeEnv(String(_0x25fee1)),_0xe6b60=isDaily(_0x2d77dc)?'daily':isDev(_0x2d77dc)?'development':_0x5c76d1(0x12b),_0xd058d2=typeof _0x414ce6[_0x5c76d1(0x134)]==='string'?_0x414ce6['appcode']:undefined,_0x427d30=env(_0x5c76d1(0x11c)),_0x2b43dc=_0xaae49?undefined:_0x24140c[_0x5c76d1(0x134)]||_0x24140c['app']||undefined,_0x4e4abc=_0xaae49||(_0x2b43dc?undefined:_0x4189c2),_0x388a89=resolveLocalAppAliasCode(_0x24140c,_0x4e4abc),_0x7b47e2=resolveCachedAppCode(_0x4e4abc,_0xe6b60,_0x361c61),_0x5df87f=_0xd058d2||_0x427d30||_0x2b43dc||_0x388a89||_0x7b47e2||undefined,_0x80ee77=_0xd058d2?_0x5c76d1(0xfe):_0x427d30?'env':_0x2b43dc?'top-level':_0x388a89?_0x5c76d1(0xf8):_0x7b47e2?_0x5c76d1(0x133):undefined,_0x50b3cd=_0x24140c[_0x5c76d1(0x102)]||DEFAULT_CONFIG_VALUES[_0x5c76d1(0x102)],_0x4daddc=undefined,_0x292d49=_0x414ce6[_0x5c76d1(0x106)]||env('FORMAT')||_0x24140c[_0x5c76d1(0x106)],_0x39a433=normalizeLegacyOutputFormat(_0x292d49),_0x407ddb=env(_0x5c76d1(0x11d))||_0x24140c[_0x5c76d1(0x12c)],_0x2aa5f3=_0x407ddb?Number(_0x407ddb)||undefined:undefined,_0x3d4a4a=_0x24140c[_0x5c76d1(0x130)]||_0x24140c[_0x5c76d1(0x10c)],_0x3be56b=_0x3d4a4a==='read'||_0x3d4a4a===_0x5c76d1(0x128)||_0x3d4a4a==='high-risk-write'?_0x3d4a4a:DEFAULT_CONFIG_VALUES['riskLevel'],_0x40be19=env('VERBOSE'),_0x5796d8=_0x40be19==='1'||_0x40be19===_0x5c76d1(0x127);return{'appCode':typeof _0x5df87f===_0x5c76d1(0x131)&&_0x5df87f[_0x5c76d1(0x100)]()?_0x5df87f[_0x5c76d1(0x100)]():undefined,'appCodeSource':_0x80ee77,'env':_0xe6b60,'locale':_0x50b3cd,'cookie':_0x4daddc,'accessKey':_0x361c61,'format':_0x39a433,'pageSize':_0x2aa5f3,'riskLevel':_0x3be56b,'verbose':_0x5796d8,'defaultApp':_0x4189c2,'currentApp':typeof _0x2e8ff3===_0x5c76d1(0x131)?_0x2e8ff3:undefined,'raw':_0x24140c};}function env(_0x49c884){return productEnv(_0x49c884);}async function buildAuth(_0x315498){const _0x27f261=a99_0x842e7,_0x5abb01='',_0x1f917c=!!_0x315498[_0x27f261(0xf0)];return{'cookie':_0x5abb01,'isLoggedIn':_0x1f917c,async 'getOrLogin'(){const _0x35f42a=_0x27f261;if(_0x1f917c)return _0x5abb01;throw CliErrors[_0x35f42a(0x129)]();}};}
1
+ const a99_0x171aa3=a99_0xe9b1;(function(_0x45aa20,_0x1eedb1){const _0x159839=a99_0xe9b1,_0x5c4c89=_0x45aa20();while(!![]){try{const _0x53fcc1=-parseInt(_0x159839(0x208))/0x1*(parseInt(_0x159839(0x1e5))/0x2)+parseInt(_0x159839(0x1e7))/0x3*(-parseInt(_0x159839(0x20d))/0x4)+parseInt(_0x159839(0x1dd))/0x5+-parseInt(_0x159839(0x218))/0x6*(-parseInt(_0x159839(0x1ee))/0x7)+parseInt(_0x159839(0x1da))/0x8*(-parseInt(_0x159839(0x20b))/0x9)+parseInt(_0x159839(0x1df))/0xa+parseInt(_0x159839(0x1de))/0xb;if(_0x53fcc1===_0x1eedb1)break;else _0x5c4c89['push'](_0x5c4c89['shift']());}catch(_0x398976){_0x5c4c89['push'](_0x5c4c89['shift']());}}}(a99_0x187b,0x29b26));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';function a99_0x187b(){const _0x229384=['21nkjRAm','isRaw','defaultApp','apps','riskLevel','high-risk-write','FORMAT','inherit','./constant/domain.js','some','production','locale','top-level','EPERM','app','find','EXDEV','development','code','newConfigFileName','accessKey','daily','object','projectConfig','isTTY','read','1rjygmG','maxRisk','setLogPath','2750823ZBNMhA','appcode','232PjjSYd','setRawCommand','parse','project','global','EACCES','explicit','cwd','userDomain','APPCODE','join','309954ijubDm','globalConfig','empty','write','utf8','configFileNames','ACCESS_KEY','true','pageSize','setRawMode','.tmp','apiDomain','./constant/env.js','authRequired','format','skillHubDomain','APP','stringify','string','8DeRboe','stdout','stdin','1046775feUJST','5605886znDfxx','1140000loKddI','nonInteractive','online','VERBOSE','argv','local-alias','670634ryoTtY','trim','9114OQasGf','message','raw','env','ENV','cache','values'];a99_0x187b=function(){return _0x229384;};return a99_0x187b();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a99_0x171aa3(0x21d)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x171aa3(0x201)];function resolveConfigPath(_0x1f230a){for(const _0x57f7c3 of CONFIG_NAMES){const _0x1639c7=resolve(_0x1f230a,_0x57f7c3);if(existsSync(_0x1639c7))return _0x1639c7;}return undefined;}export function resolveWriteConfigPath(_0x2fe152){const _0x42e334=a99_0x171aa3,_0x5a7748=_0x2fe152===_0x42e334(0x210)?process[_0x42e334(0x214)]():homedir(),_0x1b116d=resolveConfigPath(_0x5a7748);return _0x1b116d??resolve(_0x5a7748,NEW_CONFIG_NAME);}export function readConfigFile(_0x1a687d){const _0x54d378=a99_0x171aa3;try{if(existsSync(_0x1a687d)){const _0x56228f=readFileSync(_0x1a687d,{'encoding':'utf8'});if(_0x56228f){const _0x25b252=JSON[_0x54d378(0x20f)](_0x56228f);return migrateOnlineEnv(_0x1a687d,_0x25b252),_0x25b252;}}}catch{}return{};}function migrateOnlineEnv(_0x40a17b,_0x37c3ae){const _0xf67f33=a99_0x171aa3;let _0x2c09c6=![];_0x37c3ae[_0xf67f33(0x1ea)]==='online'&&(_0x37c3ae[_0xf67f33(0x1ea)]=_0xf67f33(0x1f8),_0x2c09c6=!![]);if(_0x37c3ae[_0xf67f33(0x1f1)]&&typeof _0x37c3ae['apps']===_0xf67f33(0x204))for(const _0x412ae4 of Object[_0xf67f33(0x1ed)](_0x37c3ae['apps'])){_0x412ae4&&_0x412ae4[_0xf67f33(0x1ea)]===_0xf67f33(0x1e1)&&(_0x412ae4[_0xf67f33(0x1ea)]=_0xf67f33(0x1f8),_0x2c09c6=!![]);}if(_0x2c09c6)try{writeConfigFile(_0x40a17b,_0x37c3ae);}catch{}}export function writeConfigFile(_0x578d57,_0x1681e7){const _0x168591=a99_0x171aa3,_0x4798c9=dirname(_0x578d57);!existsSync(_0x4798c9)&&mkdirSync(_0x4798c9,{'recursive':!![]});const _0x276228=_0x578d57+_0x168591(0x1d1);try{writeFileSync(_0x276228,JSON[_0x168591(0x1d8)](_0x1681e7,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x276228,_0x578d57);}catch(_0x2029f7){if(_0x2029f7[_0x168591(0x200)]===_0x168591(0x1fb)||_0x2029f7['code']===_0x168591(0x1fe)||_0x2029f7[_0x168591(0x200)]===_0x168591(0x212)){writeFileSync(_0x578d57,JSON['stringify'](_0x1681e7,null,0x2)+'\x0a',{'encoding':_0x168591(0x21c)});try{unlinkSync(_0x276228);}catch{}}else throw _0x2029f7;}}catch(_0x38dc2b){try{unlinkSync(_0x276228);}catch{}throw _0x38dc2b;}}export function isNonInteractiveMode(_0x4c56ba){const _0x57a9ad=a99_0x171aa3;return!!(_0x4c56ba[_0x57a9ad(0x1e0)]||_0x4c56ba['ci']||productEnvNames('CI')[_0x57a9ad(0x1f7)](_0x4dfef9=>process.env[_0x4dfef9]==='true')||process.env.CI===_0x57a9ad(0x21f)||!process[_0x57a9ad(0x1db)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x11700e=a99_0x171aa3;if(!process[_0x11700e(0x1dc)][_0x11700e(0x206)])return![];try{const _0x329322=process['stdin'][_0x11700e(0x1ef)];return process[_0x11700e(0x1dc)][_0x11700e(0x221)](!![]),process[_0x11700e(0x1dc)][_0x11700e(0x221)](_0x329322??![]),!![];}catch{return![];}}export async function createContext(_0x9b2a10){const _0x4594e3=a99_0x171aa3,_0x330df2=readRawConfig(),_0x409d18=buildConfig(_0x330df2,_0x9b2a10);await initGlobalEnvironment(_0x409d18);const {getUserDomain:_0x2b640b,getApiDomain:_0x5689af}=await import(_0x4594e3(0x1f6)),_0x1fe2d5={'apiDomain':_0x5689af(),'userDomain':_0x2b640b()},_0xf03896=await buildAuth(_0x409d18);logger[_0x4594e3(0x20a)](process[_0x4594e3(0x214)]());const _0x8e723a=(CLI_BIN_NAME+'\x20'+process[_0x4594e3(0x1e3)]['slice'](0x2)[_0x4594e3(0x217)]('\x20'))[_0x4594e3(0x1e6)]();logger[_0x4594e3(0x20e)](_0x8e723a);const _0x11785f=isNonInteractiveMode(_0x9b2a10);return{'config':_0x409d18,'auth':_0xf03896,'logger':logger,'env':_0x1fe2d5,'nonInteractive':_0x11785f};}export function buildConfigFromFlags(_0x1ff349){return buildConfig(readRawConfig(),_0x1ff349);}export function getLocalAppAliases(_0x18cbee){const _0x4f5cf6=a99_0x171aa3;return _0x18cbee[_0x4f5cf6(0x1f1)]&&typeof _0x18cbee[_0x4f5cf6(0x1f1)]===_0x4f5cf6(0x204)?_0x18cbee[_0x4f5cf6(0x1f1)]:{};}export function resolveLocalAppAliasCode(_0x4dcf26,_0x4421db){const _0xc8e7f1=a99_0x171aa3;if(!_0x4421db)return undefined;const _0x4431b4=getLocalAppAliases(_0x4dcf26)[_0x4421db],_0x4711f1=_0x4431b4?.[_0xc8e7f1(0x20c)];return typeof _0x4711f1===_0xc8e7f1(0x1d9)&&_0x4711f1[_0xc8e7f1(0x1e6)]()?_0x4711f1[_0xc8e7f1(0x1e6)]():undefined;}export function readAppCodeFromConfig(){const _0x1c093c=a99_0x171aa3,_0x21fee9=readRawConfig(),_0x5f19c5=_0x21fee9[_0x1c093c(0x20c)]??_0x21fee9[_0x1c093c(0x1fc)];if(typeof _0x5f19c5===_0x1c093c(0x1d9)&&_0x5f19c5[_0x1c093c(0x1e6)]())return _0x5f19c5[_0x1c093c(0x1e6)]();const _0xc9160c=resolveLocalAppAliasCode(_0x21fee9,typeof _0x21fee9['defaultApp']==='string'?_0x21fee9[_0x1c093c(0x1f0)]:undefined);if(_0xc9160c)return _0xc9160c;const _0x4dd7d0=normalizeEnv(String(_0x21fee9[_0x1c093c(0x1ea)]||'production')),_0xcde584=isDaily(_0x4dd7d0)?'daily':isDev(_0x4dd7d0)?_0x1c093c(0x1ff):'production',_0x286f59=resolveCachedAppCode(typeof _0x21fee9[_0x1c093c(0x1f0)]===_0x1c093c(0x1d9)?_0x21fee9['defaultApp']:undefined,_0xcde584,typeof _0x21fee9[_0x1c093c(0x202)]===_0x1c093c(0x1d9)?_0x21fee9[_0x1c093c(0x202)]:undefined);if(_0x286f59)return _0x286f59;const _0x3b3179=Object[_0x1c093c(0x1ed)](getLocalAppAliases(_0x21fee9))[_0x1c093c(0x1fd)](_0x1c0f83=>_0x1c0f83?.[_0x1c093c(0x20c)]);return typeof _0x3b3179?.[_0x1c093c(0x20c)]===_0x1c093c(0x1d9)&&_0x3b3179[_0x1c093c(0x20c)][_0x1c093c(0x1e6)]()?_0x3b3179[_0x1c093c(0x20c)][_0x1c093c(0x1e6)]():undefined;}export function readScopedConfig(_0x8b4eeb){const _0x30d9e9=a99_0x171aa3,_0x3ed7f3=_0x8b4eeb[_0x30d9e9(0x211)]?_0x30d9e9(0x211):_0x30d9e9(0x210);return readConfigFile(resolveWriteConfigPath(_0x3ed7f3));}function a99_0xe9b1(_0x5cc350,_0x1fb83e){_0x5cc350=_0x5cc350-0x1d1;const _0x187bd6=a99_0x187b();let _0xe9b1b5=_0x187bd6[_0x5cc350];return _0xe9b1b5;}export function writeScopedConfig(_0x450514,_0x3396e7){const _0x499c41=a99_0x171aa3,_0x4e801a=_0x3396e7[_0x499c41(0x211)]?'global':_0x499c41(0x210);writeConfigFile(resolveWriteConfigPath(_0x4e801a),_0x450514);}export async function initGlobalEnvironment(_0x24994d){const _0x5a757b=a99_0x171aa3,{initEnv:_0x22aab4}=await import(_0x5a757b(0x1d3));_0x22aab4(_0x24994d[_0x5a757b(0x1ea)]);const {initDomains:_0x1164e2}=await import('./constant/domain.js');_0x1164e2({'apiDomain':_0x24994d['raw'][_0x5a757b(0x1d2)]||_0x24994d['raw']['host']||undefined,'userDomain':_0x24994d[_0x5a757b(0x1e9)][_0x5a757b(0x215)]||undefined,'runtimeDomain':_0x24994d[_0x5a757b(0x1e9)]['runtimeDomain']||undefined,'skillHubDomain':_0x24994d[_0x5a757b(0x1e9)][_0x5a757b(0x1d6)]||undefined});}export function getProjectConfigPath(){const _0x12d892=a99_0x171aa3;return resolveConfigPath(process[_0x12d892(0x214)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5d23dd){const _0x14e6a8=a99_0x171aa3;if(!existsSync(_0x5d23dd))return{'status':'missing'};try{const _0x3135cc=readFileSync(_0x5d23dd,{'encoding':_0x14e6a8(0x21c)});if(!_0x3135cc?.[_0x14e6a8(0x1e6)]())return{'status':_0x14e6a8(0x21a)};const _0x3723bc=JSON[_0x14e6a8(0x20f)](_0x3135cc);return{'status':'ok','data':_0x3723bc};}catch(_0x138868){return{'status':'error','message':_0x138868 instanceof Error?_0x138868[_0x14e6a8(0x1e8)]:String(_0x138868)};}}export function loadRawConfigLayers(_0x4dbf80){const _0x2f4a2a=a99_0x171aa3;let _0x376caf={},_0x5382b1={},_0x21887d,_0x35b5bf;try{_0x21887d=resolveConfigPath(homedir());if(_0x21887d){const _0x1e7886=readFileSync(_0x21887d,{'encoding':_0x2f4a2a(0x21c)});if(_0x1e7886)_0x376caf=JSON[_0x2f4a2a(0x20f)](_0x1e7886);}}catch{}try{const _0x2b8345=_0x4dbf80||process[_0x2f4a2a(0x214)]();_0x35b5bf=resolveConfigPath(_0x2b8345);if(_0x35b5bf){const _0x4c5001=readFileSync(_0x35b5bf,{'encoding':_0x2f4a2a(0x21c)});if(_0x4c5001)_0x5382b1=JSON[_0x2f4a2a(0x20f)](_0x4c5001);}}catch{}return{'globalPath':_0x21887d,'projectPath':_0x35b5bf,'globalConfig':_0x376caf,'projectConfig':_0x5382b1};}function mergeRawConfigLayers(_0x49ce7c){const _0x5f4f24=a99_0x171aa3,{globalConfig:_0xaddf63,projectConfig:_0x32bb9b}=_0x49ce7c;if(_0x32bb9b[_0x5f4f24(0x1f5)]===![]){const _0x40f354={..._0x32bb9b};return delete _0x40f354['inherit'],_0x40f354;}const _0x443d9e={..._0xaddf63,..._0x32bb9b};if('defaultApp'in _0x32bb9b)_0x443d9e[_0x5f4f24(0x1f0)]=_0x32bb9b[_0x5f4f24(0x1f0)];else _0xaddf63[_0x5f4f24(0x1f0)]&&(_0x443d9e[_0x5f4f24(0x1f0)]=_0xaddf63[_0x5f4f24(0x1f0)]);return _0x443d9e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5170b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x5170b3));}export function readRawConfigWithLayers(_0x30e633){const _0xa8983d=loadRawConfigLayers(_0x30e633);return{'config':mergeRawConfigLayers(_0xa8983d),'layers':_0xa8983d};}export function resolveDefaultAppSource(_0x2b3271){const _0x4e03dd=a99_0x171aa3;if('defaultApp'in _0x2b3271[_0x4e03dd(0x205)])return _0x4e03dd(0x210);if(_0x2b3271['projectConfig'][_0x4e03dd(0x1f5)]===![])return null;if(_0x2b3271[_0x4e03dd(0x219)][_0x4e03dd(0x1f0)])return'global';return null;}function buildConfig(_0x118cbf,_0x2c2364){const _0x31b4e2=a99_0x171aa3,_0x2ba9ac=_0x118cbf[_0x31b4e2(0x1f0)]||undefined,_0xa09b77=_0x2c2364['app']||env(_0x31b4e2(0x1d7))||undefined,_0x294830=_0xa09b77||_0x2ba9ac||undefined,_0x7e2cdd=env(_0x31b4e2(0x21e))||_0x118cbf['accessKey']||undefined,_0x414e4f=_0x2c2364[_0x31b4e2(0x1ea)]||env(_0x31b4e2(0x1eb))||_0x118cbf[_0x31b4e2(0x1ea)]||DEFAULT_CONFIG_VALUES[_0x31b4e2(0x1ea)],_0x46f2af=normalizeEnv(String(_0x414e4f)),_0x1bc0e9=isDaily(_0x46f2af)?_0x31b4e2(0x203):isDev(_0x46f2af)?_0x31b4e2(0x1ff):'production',_0x38b061=typeof _0x2c2364[_0x31b4e2(0x20c)]===_0x31b4e2(0x1d9)?_0x2c2364[_0x31b4e2(0x20c)]:undefined,_0x384067=env(_0x31b4e2(0x216)),_0x31514a=_0xa09b77?undefined:_0x118cbf[_0x31b4e2(0x20c)]||_0x118cbf[_0x31b4e2(0x1fc)]||undefined,_0x5d1203=_0xa09b77||(_0x31514a?undefined:_0x2ba9ac),_0x4ab072=resolveLocalAppAliasCode(_0x118cbf,_0x5d1203),_0x2b02c8=resolveCachedAppCode(_0x5d1203,_0x1bc0e9,_0x7e2cdd),_0x5ea2a1=_0x38b061||_0x384067||_0x31514a||_0x4ab072||_0x2b02c8||undefined,_0x7b0ab7=_0x38b061?_0x31b4e2(0x213):_0x384067?_0x31b4e2(0x1ea):_0x31514a?_0x31b4e2(0x1fa):_0x4ab072?_0x31b4e2(0x1e4):_0x2b02c8?_0x31b4e2(0x1ec):undefined,_0x7d0eb3=_0x118cbf[_0x31b4e2(0x1f9)]||DEFAULT_CONFIG_VALUES[_0x31b4e2(0x1f9)],_0x501601=undefined,_0xd81408=_0x2c2364[_0x31b4e2(0x1d5)]||env(_0x31b4e2(0x1f4))||_0x118cbf[_0x31b4e2(0x1d5)],_0x272f1d=normalizeLegacyOutputFormat(_0xd81408),_0x1b23bf=env('PAGE_SIZE')||_0x118cbf[_0x31b4e2(0x220)],_0x342fab=_0x1b23bf?Number(_0x1b23bf)||undefined:undefined,_0x1b761f=_0x118cbf[_0x31b4e2(0x1f2)]||_0x118cbf[_0x31b4e2(0x209)],_0x49ff14=_0x1b761f===_0x31b4e2(0x207)||_0x1b761f===_0x31b4e2(0x21b)||_0x1b761f===_0x31b4e2(0x1f3)?_0x1b761f:DEFAULT_CONFIG_VALUES[_0x31b4e2(0x1f2)],_0x3cafc5=env(_0x31b4e2(0x1e2)),_0x2da151=_0x3cafc5==='1'||_0x3cafc5===_0x31b4e2(0x21f);return{'appCode':typeof _0x5ea2a1==='string'&&_0x5ea2a1[_0x31b4e2(0x1e6)]()?_0x5ea2a1[_0x31b4e2(0x1e6)]():undefined,'appCodeSource':_0x7b0ab7,'env':_0x1bc0e9,'locale':_0x7d0eb3,'cookie':_0x501601,'accessKey':_0x7e2cdd,'format':_0x272f1d,'pageSize':_0x342fab,'riskLevel':_0x49ff14,'verbose':_0x2da151,'defaultApp':_0x2ba9ac,'currentApp':typeof _0x294830===_0x31b4e2(0x1d9)?_0x294830:undefined,'raw':_0x118cbf};}function env(_0xc22289){return productEnv(_0xc22289);}async function buildAuth(_0x39d873){const _0x328546=a99_0x171aa3,_0x466b6e='',_0xb733d2=!!_0x39d873[_0x328546(0x202)];return{'cookie':_0x466b6e,'isLoggedIn':_0xb733d2,async 'getOrLogin'(){const _0x4ea2b9=_0x328546;if(_0xb733d2)return _0x466b6e;throw CliErrors[_0x4ea2b9(0x1d4)]();}};}
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Management API client using raw `fetch`.
3
3
  *
4
4
  * Why a separate module from `sdk-client.ts`: the SDK (`@lovrabet/sdk`) is designed
5
- * for runtime operations (data/SQL/BFF execution) and encapsulates the SDK client
5
+ * for runtime operations (data/SQL/Backend Function execution) and encapsulates the SDK client
6
6
  * lifecycle. This module handles authenticated API calls that the SDK does not
7
7
  * cover: listing datasets, fetching app lists, querying runtime contracts, etc.
8
8
  *
@@ -18,7 +18,7 @@ import type { Paging } from "../framework/response.js";
18
18
  export declare function setActiveAK(ak: string): void;
19
19
  /** Clears the active AccessKey after command completion. */
20
20
  export declare function clearActiveAK(): void;
21
- /** Public runtime contract for one known BFF endpoint function. */
21
+ /** Public runtime contract for one known Backend Function endpoint. */
22
22
  export interface BffEndpointContract {
23
23
  appCode: string;
24
24
  functionName: string;
@@ -27,7 +27,7 @@ export interface BffEndpointContract {
27
27
  gmtModified?: string | number;
28
28
  }
29
29
  /**
30
- * Fetches one known BFF endpoint contract by its stable runtime identity.
30
+ * Fetches one known Backend Function endpoint contract by its stable runtime identity.
31
31
  * The runtime exposes an AK-authenticated exact endpoint keyed by appCode + functionName.
32
32
  * Platform-only fields returned by older backends are intentionally discarded here.
33
33
  */
@@ -351,7 +351,7 @@ export interface LoginUserInfo {
351
351
  [key: string]: unknown;
352
352
  }
353
353
  export type RuntimeScheduleKind = "CRON" | "ONCE";
354
- export type RuntimeScheduleChannel = "auto" | "premium";
354
+ export type RuntimeScheduleModel = "kimi/k3" | "deepseek-v4-flash-0731" | "deepseek-v4-pro-0813";
355
355
  export type RuntimeScheduleTaskStatus = "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
356
356
  export type RuntimeScheduleInput = {
357
357
  kind: "CRON";
@@ -359,14 +359,14 @@ export type RuntimeScheduleInput = {
359
359
  cron: string;
360
360
  title: string;
361
361
  prompt: string;
362
- channel: RuntimeScheduleChannel;
362
+ model: RuntimeScheduleModel;
363
363
  } | {
364
364
  kind: "ONCE";
365
365
  timezone: "UTC";
366
366
  scheduledAt: string;
367
367
  title: string;
368
368
  prompt: string;
369
- channel: RuntimeScheduleChannel;
369
+ model: RuntimeScheduleModel;
370
370
  };
371
371
  export interface RuntimeScheduleSummary {
372
372
  scheduleId: string;