@lovrabet/lovrabet-cli 2.3.2-beta.2 → 2.3.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.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 +1 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a100_0x49bd18=a100_0x8456;function a100_0x8456(_0x34be54,_0x27401e){_0x34be54=_0x34be54-0x1c1;const _0x5cce2e=a100_0x5cce();let _0x84564b=_0x5cce2e[_0x34be54];return _0x84564b;}function a100_0x5cce(){const _0x146be0=['988302mnMrpD','192390hqoDjJ','high-risk-write','1238616Ogjype','2751925JnNSxz','18mcRbTZ','write','28ijNOOm','read','506391EziXBK','132YriIxp','144uzAzJL','324hAwZVa','63555OangZO','22290qzYKli'];a100_0x5cce=function(){return _0x146be0;};return a100_0x5cce();}(function(_0x1b5943,_0x274ff4){const _0xa8f9eb=a100_0x8456,_0x176597=_0x1b5943();while(!![]){try{const _0x2b3f69=-parseInt(_0xa8f9eb(0x1c7))/0x1+parseInt(_0xa8f9eb(0x1c3))/0x2*(-parseInt(_0xa8f9eb(0x1cc))/0x3)+parseInt(_0xa8f9eb(0x1c8))/0x4*(-parseInt(_0xa8f9eb(0x1cb))/0x5)+parseInt(_0xa8f9eb(0x1cd))/0x6*(-parseInt(_0xa8f9eb(0x1c5))/0x7)+-parseInt(_0xa8f9eb(0x1c1))/0x8+parseInt(_0xa8f9eb(0x1ca))/0x9*(-parseInt(_0xa8f9eb(0x1ce))/0xa)+-parseInt(_0xa8f9eb(0x1c2))/0xb*(-parseInt(_0xa8f9eb(0x1c9))/0xc);if(_0x2b3f69===_0x274ff4)break;else _0x176597['push'](_0x176597['shift']());}catch(_0x2233ac){_0x176597['push'](_0x176597['shift']());}}}(a100_0x5cce,0x7ad25));export const RISK_LEVEL_VALUES=[a100_0x49bd18(0x1c6),a100_0x49bd18(0x1c4),a100_0x49bd18(0x1cf)];
1
+ const a100_0x347840=a100_0x9550;(function(_0x4c57b4,_0x3ab367){const _0xbc89a8=a100_0x9550,_0x4a86df=_0x4c57b4();while(!![]){try{const _0xf67b9b=-parseInt(_0xbc89a8(0x18b))/0x1+-parseInt(_0xbc89a8(0x18e))/0x2*(parseInt(_0xbc89a8(0x18c))/0x3)+-parseInt(_0xbc89a8(0x195))/0x4+-parseInt(_0xbc89a8(0x18f))/0x5*(-parseInt(_0xbc89a8(0x194))/0x6)+parseInt(_0xbc89a8(0x188))/0x7*(-parseInt(_0xbc89a8(0x191))/0x8)+parseInt(_0xbc89a8(0x189))/0x9*(parseInt(_0xbc89a8(0x187))/0xa)+-parseInt(_0xbc89a8(0x190))/0xb*(-parseInt(_0xbc89a8(0x193))/0xc);if(_0xf67b9b===_0x3ab367)break;else _0x4a86df['push'](_0x4a86df['shift']());}catch(_0x61992d){_0x4a86df['push'](_0x4a86df['shift']());}}}(a100_0x4843,0x873c3));function a100_0x4843(){const _0x2d9395=['7trjuin','36MZLmCC','read','192676VfcuQw','12pSnEIX','high-risk-write','505084LPCLxF','5dCBGEa','18799xlTKCt','8132440OwIweV','write','11964vdFibS','3852678dUCrkv','1819648WlXaol','2205620eWPSns'];a100_0x4843=function(){return _0x2d9395;};return a100_0x4843();}function a100_0x9550(_0x3c87b5,_0x55b10c){_0x3c87b5=_0x3c87b5-0x187;const _0x484344=a100_0x4843();let _0x95502c=_0x484344[_0x3c87b5];return _0x95502c;}export const RISK_LEVEL_VALUES=[a100_0x347840(0x18a),a100_0x347840(0x192),a100_0x347840(0x18d)];
@@ -1 +1 @@
1
- (function(_0x1d255e,_0x544378){const _0x743480=a101_0x44e3,_0x52a2dc=_0x1d255e();while(!![]){try{const _0x207d72=parseInt(_0x743480(0x152))/0x1+-parseInt(_0x743480(0x151))/0x2+parseInt(_0x743480(0x156))/0x3+parseInt(_0x743480(0x153))/0x4+parseInt(_0x743480(0x154))/0x5*(-parseInt(_0x743480(0x150))/0x6)+parseInt(_0x743480(0x14f))/0x7+-parseInt(_0x743480(0x155))/0x8;if(_0x207d72===_0x544378)break;else _0x52a2dc['push'](_0x52a2dc['shift']());}catch(_0x145900){_0x52a2dc['push'](_0x52a2dc['shift']());}}}(a101_0x132f,0x28e46));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a101_0x44e3(_0x10d0f5,_0x529630){_0x10d0f5=_0x10d0f5-0x14f;const _0x132f19=a101_0x132f();let _0x44e388=_0x132f19[_0x10d0f5];return _0x44e388;}export function getUserAccessKeyCreateUrl(_0x52f2e3=DEFAULT_LOVRABET_REGION){const _0x41243f=a101_0x44e3,_0x56395b=OFFICIAL_ROUTING_PROFILES[_0x52f2e3][_0x41243f(0x158)]['production'][_0x41243f(0x157)];return''+_0x56395b+PRODUCT_CONFIG['accessKeyCreatePath'];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a101_0x132f(){const _0x23d3f7=['serviceDomains','1468782aJhYFG','6BFTiTV','148248wRcFrn','247707hOvJFg','980728xGFKsn','1665105CSxAiu','1427904abscpM','151236VWSCMw','user'];a101_0x132f=function(){return _0x23d3f7;};return a101_0x132f();}
1
+ (function(_0x2d1f59,_0x4b5b4a){const _0x41d9c6=a101_0x15a2,_0x5c7ee2=_0x2d1f59();while(!![]){try{const _0x2880a5=parseInt(_0x41d9c6(0x11c))/0x1*(-parseInt(_0x41d9c6(0x118))/0x2)+parseInt(_0x41d9c6(0x11d))/0x3+-parseInt(_0x41d9c6(0x113))/0x4+parseInt(_0x41d9c6(0x111))/0x5*(-parseInt(_0x41d9c6(0x119))/0x6)+parseInt(_0x41d9c6(0x115))/0x7*(-parseInt(_0x41d9c6(0x114))/0x8)+parseInt(_0x41d9c6(0x117))/0x9+parseInt(_0x41d9c6(0x112))/0xa*(parseInt(_0x41d9c6(0x11a))/0xb);if(_0x2880a5===_0x4b5b4a)break;else _0x5c7ee2['push'](_0x5c7ee2['shift']());}catch(_0x2e8cd2){_0x5c7ee2['push'](_0x5c7ee2['shift']());}}}(a101_0x2c5b,0xa0a10));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a101_0x15a2(_0x5d200f,_0x16bcea){_0x5d200f=_0x5d200f-0x111;const _0x2c5b27=a101_0x2c5b();let _0x15a2e3=_0x2c5b27[_0x5d200f];return _0x15a2e3;}function a101_0x2c5b(){const _0xac52aa=['125389UEeUcV','accessKeyCreatePath','37199AGLOMM','3472461EfpaLm','71725IFLaaj','1790TCSrde','4659668qjzhxU','2050680TiVJWf','35lfMwAL','user','9765837kuAQzc','14AMhzwk','384oCCqoc'];a101_0x2c5b=function(){return _0xac52aa;};return a101_0x2c5b();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x146407=DEFAULT_LOVRABET_REGION){const _0x3f23b5=a101_0x15a2,_0x5f1fae=OFFICIAL_ROUTING_PROFILES[_0x146407]['serviceDomains']['production'][_0x3f23b5(0x116)];return''+_0x5f1fae+PRODUCT_CONFIG[_0x3f23b5(0x11b)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a102_0x530986=a102_0x57c3;(function(_0x1aa36f,_0x127b72){const _0x5ca987=a102_0x57c3,_0x488ab8=_0x1aa36f();while(!![]){try{const _0x15966d=-parseInt(_0x5ca987(0x1aa))/0x1*(parseInt(_0x5ca987(0x1d4))/0x2)+parseInt(_0x5ca987(0x1ce))/0x3+-parseInt(_0x5ca987(0x18c))/0x4*(-parseInt(_0x5ca987(0x1d0))/0x5)+-parseInt(_0x5ca987(0x197))/0x6+-parseInt(_0x5ca987(0x1ca))/0x7*(parseInt(_0x5ca987(0x1be))/0x8)+parseInt(_0x5ca987(0x1bd))/0x9+-parseInt(_0x5ca987(0x1c5))/0xa;if(_0x15966d===_0x127b72)break;else _0x488ab8['push'](_0x488ab8['shift']());}catch(_0x243c33){_0x488ab8['push'](_0x488ab8['shift']());}}}(a102_0x30ce,0xbfb87));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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';function a102_0x30ce(){const _0x3c3efd=['write','stdin','setRawCommand','values','read','nativeToolAvailable','ENV','host','ACCESS_KEY','1TAULco','EPERM','error','daily','appcode','agentDomain','locale','defaultApp','stringify','riskLevel','app','nonInteractive','newConfigFileName','top-level','slice','global','missing','skillHubDomain','configFileNames','7267896gByjdM','373448zupUMk','join','APP','EACCES','true','local-alias','object','3051840LqATfF','apps','env','runtimeDomain','explicit','35RXAqmz','APPCODE','FORMAT','setRawMode','2802699BtKsGG','userDomain','15JkWqEE','development','accessKey','PAGE_SIZE','612460OFtBXU','pageSize','production','format','isTTY','high-risk-write','1824644UOeCqP','online','code','message','isRaw','routing','stdout','trim','apiDomain','string','globalConfig','8880924RcUaRy','project','raw','parse','.tmp','cwd','setLogPath','skillDomain','region','utf8'];a102_0x30ce=function(){return _0x3c3efd;};return a102_0x30ce();}const CONFIG_NAMES=PRODUCT_CONFIG[a102_0x530986(0x1bc)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a102_0x530986(0x1b6)];function resolveConfigPath(_0x5c36da){for(const _0x26184a of CONFIG_NAMES){const _0x212485=resolve(_0x5c36da,_0x26184a);if(existsSync(_0x212485))return _0x212485;}return undefined;}export function resolveWriteConfigPath(_0x259143){const _0x31780f=a102_0x530986,_0x1ab7cc=_0x259143===_0x31780f(0x198)?process[_0x31780f(0x19c)]():homedir(),_0x61cfe=resolveConfigPath(_0x1ab7cc);return _0x61cfe??resolve(_0x1ab7cc,NEW_CONFIG_NAME);}export function readConfigFile(_0x1f9bef){const _0x4a1918=a102_0x530986;try{if(existsSync(_0x1f9bef)){const _0x30021e=readFileSync(_0x1f9bef,{'encoding':_0x4a1918(0x1a0)});if(_0x30021e){const _0xd687ee=JSON[_0x4a1918(0x19a)](_0x30021e);return migrateOnlineEnv(_0x1f9bef,_0xd687ee),_0xd687ee;}}}catch{}return{};}function migrateOnlineEnv(_0x33c8a8,_0x372d0b){const _0x11df4b=a102_0x530986;let _0x11d8da=![];_0x372d0b[_0x11df4b(0x1c7)]===_0x11df4b(0x18d)&&(_0x372d0b[_0x11df4b(0x1c7)]='production',_0x11d8da=!![]);if(_0x372d0b['apps']&&typeof _0x372d0b['apps']===_0x11df4b(0x1c4))for(const _0x322ac5 of Object['values'](_0x372d0b[_0x11df4b(0x1c6)])){_0x322ac5&&_0x322ac5[_0x11df4b(0x1c7)]===_0x11df4b(0x18d)&&(_0x322ac5['env']=_0x11df4b(0x1d6),_0x11d8da=!![]);}if(_0x11d8da)try{writeConfigFile(_0x33c8a8,_0x372d0b);}catch{}}export function writeConfigFile(_0x285936,_0x22941d){const _0x26ca8f=a102_0x530986,_0xb9bcce=dirname(_0x285936);!existsSync(_0xb9bcce)&&mkdirSync(_0xb9bcce,{'recursive':!![]});const _0xfed283=_0x285936+_0x26ca8f(0x19b);try{writeFileSync(_0xfed283,JSON[_0x26ca8f(0x1b2)](_0x22941d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0xfed283,_0x285936);}catch(_0xec5e9f){if(_0xec5e9f['code']===_0x26ca8f(0x1ab)||_0xec5e9f[_0x26ca8f(0x18e)]==='EXDEV'||_0xec5e9f[_0x26ca8f(0x18e)]===_0x26ca8f(0x1c1)){writeFileSync(_0x285936,JSON[_0x26ca8f(0x1b2)](_0x22941d,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0xfed283);}catch{}}else throw _0xec5e9f;}}catch(_0x469f14){try{unlinkSync(_0xfed283);}catch{}throw _0x469f14;}}export function isNonInteractiveMode(_0x70ea3b){const _0x21a3c6=a102_0x530986;return!!(_0x70ea3b[_0x21a3c6(0x1b5)]||_0x70ea3b['ci']||productEnvNames('CI')['some'](_0x50a339=>process.env[_0x50a339]===_0x21a3c6(0x1c2))||process.env.CI===_0x21a3c6(0x1c2)||!process[_0x21a3c6(0x192)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3747f9=a102_0x530986;if(!process['stdin'][_0x3747f9(0x1d8)])return![];try{const _0x3cdc77=process[_0x3747f9(0x1a2)][_0x3747f9(0x190)];return process[_0x3747f9(0x1a2)][_0x3747f9(0x1cd)](!![]),process[_0x3747f9(0x1a2)]['setRawMode'](_0x3cdc77??![]),!![];}catch{return![];}}export async function createContext(_0x3ef5d4){const _0x1d85a1=a102_0x530986,_0x9792ad=readRawConfig(),_0x72de33=buildConfig(_0x9792ad,_0x3ef5d4);await initGlobalEnvironment(_0x72de33);const {getUserDomain:_0x91e144,getApiDomain:_0x2fa8c9}=await import('./constant/domain.js'),_0x2655e6={'apiDomain':_0x2fa8c9(),'userDomain':_0x91e144()},_0x2f750f=await buildAuth(_0x72de33);logger[_0x1d85a1(0x19d)](process['cwd']());const _0x2640ef=(CLI_BIN_NAME+'\x20'+process['argv'][_0x1d85a1(0x1b8)](0x2)[_0x1d85a1(0x1bf)]('\x20'))[_0x1d85a1(0x193)]();logger[_0x1d85a1(0x1a3)](_0x2640ef);const _0x4775ac=isNonInteractiveMode(_0x3ef5d4);return{'config':_0x72de33,'auth':_0x2f750f,'logger':logger,'env':_0x2655e6,'nonInteractive':_0x4775ac};}export function buildConfigFromFlags(_0x1c39e7){return buildConfig(readRawConfig(),_0x1c39e7);}export function getLocalAppAliases(_0x371af3){const _0x176381=a102_0x530986;return _0x371af3[_0x176381(0x1c6)]&&typeof _0x371af3[_0x176381(0x1c6)]===_0x176381(0x1c4)?_0x371af3[_0x176381(0x1c6)]:{};}export function resolveLocalAppAliasCode(_0x48c090,_0x3a56df){const _0x3216b3=a102_0x530986;if(!_0x3a56df)return undefined;const _0x15a7f8=getLocalAppAliases(_0x48c090)[_0x3a56df],_0x1be675=_0x15a7f8?.[_0x3216b3(0x1ae)];return typeof _0x1be675===_0x3216b3(0x195)&&_0x1be675[_0x3216b3(0x193)]()?_0x1be675[_0x3216b3(0x193)]():undefined;}export function readAppCodeFromConfig(){const _0x3e0afa=a102_0x530986,_0x6950a6=readRawConfig(),_0x519a9f=_0x6950a6[_0x3e0afa(0x1ae)]??_0x6950a6[_0x3e0afa(0x1b4)];if(typeof _0x519a9f===_0x3e0afa(0x195)&&_0x519a9f[_0x3e0afa(0x193)]())return _0x519a9f[_0x3e0afa(0x193)]();const _0x47dc34=resolveLocalAppAliasCode(_0x6950a6,typeof _0x6950a6[_0x3e0afa(0x1b1)]===_0x3e0afa(0x195)?_0x6950a6['defaultApp']:undefined);if(_0x47dc34)return _0x47dc34;const _0x555a58=normalizeEnv(String(_0x6950a6[_0x3e0afa(0x1c7)]||_0x3e0afa(0x1d6))),_0xa5feee=isDaily(_0x555a58)?'daily':isDev(_0x555a58)?'development':'production',_0x54feb4=resolveCachedAppCode(typeof _0x6950a6[_0x3e0afa(0x1b1)]===_0x3e0afa(0x195)?_0x6950a6[_0x3e0afa(0x1b1)]:undefined,_0xa5feee,typeof _0x6950a6[_0x3e0afa(0x1d2)]===_0x3e0afa(0x195)?_0x6950a6[_0x3e0afa(0x1d2)]:undefined);if(_0x54feb4)return _0x54feb4;const _0xa1b5a=Object[_0x3e0afa(0x1a4)](getLocalAppAliases(_0x6950a6))['find'](_0x40a81f=>_0x40a81f?.[_0x3e0afa(0x1ae)]);return typeof _0xa1b5a?.[_0x3e0afa(0x1ae)]===_0x3e0afa(0x195)&&_0xa1b5a[_0x3e0afa(0x1ae)][_0x3e0afa(0x193)]()?_0xa1b5a['appcode'][_0x3e0afa(0x193)]():undefined;}export function readScopedConfig(_0x2887da){const _0x1a6232=a102_0x530986,_0x23283b=_0x2887da[_0x1a6232(0x1b9)]?_0x1a6232(0x1b9):_0x1a6232(0x198);return readConfigFile(resolveWriteConfigPath(_0x23283b));}export function writeScopedConfig(_0x1fd453,_0x283b4f){const _0x44bfa1=a102_0x530986,_0x9d8afb=_0x283b4f[_0x44bfa1(0x1b9)]?'global':_0x44bfa1(0x198);writeConfigFile(resolveWriteConfigPath(_0x9d8afb),_0x1fd453);}function a102_0x57c3(_0x2bc422,_0x2bdbe4){_0x2bc422=_0x2bc422-0x18b;const _0x30ce73=a102_0x30ce();let _0x57c370=_0x30ce73[_0x2bc422];return _0x57c370;}export async function initGlobalEnvironment(_0x2c9182){const _0xc6aab4=a102_0x530986,{initEnv:_0x3b81dd}=await import('./constant/env.js');_0x3b81dd(_0x2c9182[_0xc6aab4(0x1c7)]);const {initDomains:_0x30bc07}=await import('./constant/domain.js'),_0x5eb2e1=resolveEnterpriseRoutingConfig(_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x191)]);_0x30bc07({'apiDomain':_0x5eb2e1?_0x5eb2e1['apiDomain']:_0x2c9182['raw'][_0xc6aab4(0x194)]||_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x1a8)]||undefined,'userDomain':_0x5eb2e1?_0x5eb2e1[_0xc6aab4(0x1cf)]:_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x1cf)]||undefined,'runtimeDomain':_0x5eb2e1?_0x5eb2e1[_0xc6aab4(0x1c8)]:_0x2c9182['raw']['runtimeDomain']||undefined,'skillDomain':_0x5eb2e1?_0x5eb2e1['skillDomain']:_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x19e)]||_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x1bb)]||_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x1af)]||_0x2c9182[_0xc6aab4(0x199)]['platformDomain']||undefined,'region':normalizeLovrabetRegion(_0x2c9182[_0xc6aab4(0x199)][_0xc6aab4(0x19f)])});}export function getProjectConfigPath(){const _0x3bc1ca=a102_0x530986;return resolveConfigPath(process[_0x3bc1ca(0x19c)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xc835f9){const _0x275018=a102_0x530986;if(!existsSync(_0xc835f9))return{'status':_0x275018(0x1ba)};try{const _0x147c5c=readFileSync(_0xc835f9,{'encoding':_0x275018(0x1a0)});if(!_0x147c5c?.[_0x275018(0x193)]())return{'status':'empty'};const _0x237a8b=JSON['parse'](_0x147c5c);return{'status':'ok','data':_0x237a8b};}catch(_0x10c615){return{'status':_0x275018(0x1ac),'message':_0x10c615 instanceof Error?_0x10c615[_0x275018(0x18f)]:String(_0x10c615)};}}export function loadRawConfigLayers(_0x42880a){const _0x5991be=a102_0x530986;let _0x3e51d8={},_0x2e46af={},_0x494efe,_0x149a13;try{_0x494efe=resolveConfigPath(homedir());if(_0x494efe){const _0x57bc62=readFileSync(_0x494efe,{'encoding':_0x5991be(0x1a0)});if(_0x57bc62)_0x3e51d8=JSON[_0x5991be(0x19a)](_0x57bc62);}}catch{}try{const _0x495b81=_0x42880a||process['cwd']();_0x149a13=resolveConfigPath(_0x495b81);if(_0x149a13){const _0x49c6d2=readFileSync(_0x149a13,{'encoding':'utf8'});if(_0x49c6d2)_0x2e46af=JSON[_0x5991be(0x19a)](_0x49c6d2);}}catch{}return{'globalPath':_0x494efe,'projectPath':_0x149a13,'globalConfig':_0x3e51d8,'projectConfig':_0x2e46af};}function mergeRawConfigLayers(_0x54181f){const _0x2ba3d9=a102_0x530986,{globalConfig:_0x263112,projectConfig:_0x3a4b06}=_0x54181f,_0x2409c5={..._0x263112,..._0x3a4b06};delete _0x2409c5['inherit'];if('defaultApp'in _0x3a4b06)_0x2409c5[_0x2ba3d9(0x1b1)]=_0x3a4b06[_0x2ba3d9(0x1b1)];else _0x263112[_0x2ba3d9(0x1b1)]&&(_0x2409c5[_0x2ba3d9(0x1b1)]=_0x263112[_0x2ba3d9(0x1b1)]);return _0x2409c5;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x166a29){return mergeRawConfigLayers(loadRawConfigLayers(_0x166a29));}export function readRawConfigWithLayers(_0x45dff0){const _0x3d9f30=loadRawConfigLayers(_0x45dff0);return{'config':mergeRawConfigLayers(_0x3d9f30),'layers':_0x3d9f30};}export function resolveDefaultAppSource(_0x577c18){const _0x126ad2=a102_0x530986;if(_0x126ad2(0x1b1)in _0x577c18['projectConfig'])return _0x126ad2(0x198);if(_0x577c18[_0x126ad2(0x196)][_0x126ad2(0x1b1)])return'global';return null;}function buildConfig(_0x5e3392,_0x3fd4b6){const _0x3e34f4=a102_0x530986,_0x3a2cf3=_0x5e3392[_0x3e34f4(0x1b1)]||undefined,_0x52658b=_0x3fd4b6[_0x3e34f4(0x1b4)]||env(_0x3e34f4(0x1c0))||undefined,_0x49a8b3=_0x52658b||_0x3a2cf3||undefined,_0x2be605=env(_0x3e34f4(0x1a9))||_0x5e3392[_0x3e34f4(0x1d2)]||undefined,_0xbf819=_0x3fd4b6['env']||env(_0x3e34f4(0x1a7))||_0x5e3392[_0x3e34f4(0x1c7)]||DEFAULT_CONFIG_VALUES[_0x3e34f4(0x1c7)],_0x346628=normalizeEnv(String(_0xbf819)),_0x3c7d46=isDaily(_0x346628)?_0x3e34f4(0x1ad):isDev(_0x346628)?_0x3e34f4(0x1d1):'production',_0x1c3e03=typeof _0x3fd4b6[_0x3e34f4(0x1ae)]==='string'?_0x3fd4b6[_0x3e34f4(0x1ae)]:undefined,_0x368fcd=env(_0x3e34f4(0x1cb)),_0x25a130=_0x52658b?undefined:_0x5e3392[_0x3e34f4(0x1ae)]||_0x5e3392['app']||undefined,_0x5d3525=_0x52658b||(_0x25a130?undefined:_0x3a2cf3),_0x3a80ef=resolveLocalAppAliasCode(_0x5e3392,_0x5d3525),_0x1531af=resolveCachedAppCode(_0x5d3525,_0x3c7d46,_0x2be605),_0x5e2b80=_0x1c3e03||_0x368fcd||_0x25a130||_0x3a80ef||_0x1531af||undefined,_0x2b7bd3=_0x1c3e03?_0x3e34f4(0x1c9):_0x368fcd?_0x3e34f4(0x1c7):_0x25a130?_0x3e34f4(0x1b7):_0x3a80ef?_0x3e34f4(0x1c3):_0x1531af?'cache':undefined,_0x1b81c1=_0x5e3392['locale']||DEFAULT_CONFIG_VALUES[_0x3e34f4(0x1b0)],_0x22cbad=undefined,_0x1b8661=_0x3fd4b6['format']||env(_0x3e34f4(0x1cc))||_0x5e3392[_0x3e34f4(0x1d7)],_0x4a96ba=normalizeLegacyOutputFormat(_0x1b8661),_0x3c4f97=env(_0x3e34f4(0x1d3))||_0x5e3392[_0x3e34f4(0x1d5)],_0x565681=_0x3c4f97?Number(_0x3c4f97)||undefined:undefined,_0x13697e=_0x5e3392['riskLevel'],_0x5910c0=_0x13697e===_0x3e34f4(0x1a5)||_0x13697e===_0x3e34f4(0x1a1)||_0x13697e===_0x3e34f4(0x18b)?_0x13697e:DEFAULT_CONFIG_VALUES[_0x3e34f4(0x1b3)],_0x2c6c85=_0x5e3392[_0x3e34f4(0x1a6)]===!![],_0x177e54=env('VERBOSE'),_0x25492f=_0x177e54==='1'||_0x177e54==='true';return{'appCode':typeof _0x5e2b80==='string'&&_0x5e2b80[_0x3e34f4(0x193)]()?_0x5e2b80[_0x3e34f4(0x193)]():undefined,'appCodeSource':_0x2b7bd3,'env':_0x3c7d46,'locale':_0x1b81c1,'cookie':_0x22cbad,'accessKey':_0x2be605,'format':_0x4a96ba,'pageSize':_0x565681,'riskLevel':_0x5910c0,'nativeToolAvailable':_0x2c6c85,'verbose':_0x25492f,'defaultApp':_0x3a2cf3,'currentApp':typeof _0x49a8b3===_0x3e34f4(0x195)?_0x49a8b3:undefined,'raw':_0x5e3392};}function env(_0x460a08){return productEnv(_0x460a08);}async function buildAuth(_0x2798ce){const _0x4144c3=a102_0x530986,_0x47b649='',_0x590a9d=!!_0x2798ce[_0x4144c3(0x1d2)];return{'cookie':_0x47b649,'isLoggedIn':_0x590a9d,async 'getOrLogin'(){if(_0x590a9d)return _0x47b649;throw CliErrors['authRequired']();}};}
1
+ const a102_0x53b9f7=a102_0x5559;(function(_0x2ce312,_0x50e44b){const _0x3e4d6a=a102_0x5559,_0x41b84a=_0x2ce312();while(!![]){try{const _0x180922=-parseInt(_0x3e4d6a(0xb0))/0x1+parseInt(_0x3e4d6a(0x7f))/0x2+parseInt(_0x3e4d6a(0x82))/0x3+parseInt(_0x3e4d6a(0xb8))/0x4+-parseInt(_0x3e4d6a(0xb1))/0x5*(parseInt(_0x3e4d6a(0xb9))/0x6)+-parseInt(_0x3e4d6a(0x90))/0x7*(-parseInt(_0x3e4d6a(0xc3))/0x8)+parseInt(_0x3e4d6a(0x96))/0x9*(parseInt(_0x3e4d6a(0xc1))/0xa);if(_0x180922===_0x50e44b)break;else _0x41b84a['push'](_0x41b84a['shift']());}catch(_0x114f18){_0x41b84a['push'](_0x41b84a['shift']());}}}(a102_0x3ce9,0xb6f09));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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a102_0x53b9f7(0x8b)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a102_0x53b9f7(0xa4)];function resolveConfigPath(_0x47a4ec){for(const _0x29adfc of CONFIG_NAMES){const _0x3ced7a=resolve(_0x47a4ec,_0x29adfc);if(existsSync(_0x3ced7a))return _0x3ced7a;}return undefined;}export function resolveWriteConfigPath(_0xf7f702){const _0x543fef=a102_0x53b9f7,_0x31ba3b=_0xf7f702===_0x543fef(0x9d)?process['cwd']():homedir(),_0x4308e2=resolveConfigPath(_0x31ba3b);return _0x4308e2??resolve(_0x31ba3b,NEW_CONFIG_NAME);}export function readConfigFile(_0x2d20e4){const _0x577722=a102_0x53b9f7;try{if(existsSync(_0x2d20e4)){const _0x1b7a28=readFileSync(_0x2d20e4,{'encoding':_0x577722(0x89)});if(_0x1b7a28){const _0x34b158=JSON['parse'](_0x1b7a28);return migrateOnlineEnv(_0x2d20e4,_0x34b158),_0x34b158;}}}catch{}return{};}function migrateOnlineEnv(_0x37cfc4,_0x4727c9){const _0x59e5ad=a102_0x53b9f7;let _0x268073=![];_0x4727c9[_0x59e5ad(0xbe)]===_0x59e5ad(0xb7)&&(_0x4727c9[_0x59e5ad(0xbe)]=_0x59e5ad(0xba),_0x268073=!![]);if(_0x4727c9[_0x59e5ad(0x92)]&&typeof _0x4727c9[_0x59e5ad(0x92)]===_0x59e5ad(0x86))for(const _0x5a5418 of Object['values'](_0x4727c9[_0x59e5ad(0x92)])){_0x5a5418&&_0x5a5418['env']===_0x59e5ad(0xb7)&&(_0x5a5418[_0x59e5ad(0xbe)]='production',_0x268073=!![]);}if(_0x268073)try{writeConfigFile(_0x37cfc4,_0x4727c9);}catch{}}export function writeConfigFile(_0x19d45b,_0x5c1076){const _0x23930c=a102_0x53b9f7,_0x45672c=dirname(_0x19d45b);!existsSync(_0x45672c)&&mkdirSync(_0x45672c,{'recursive':!![]});const _0x437b02=_0x19d45b+'.tmp';try{writeFileSync(_0x437b02,JSON[_0x23930c(0xac)](_0x5c1076,null,0x2)+'\x0a',{'encoding':_0x23930c(0x89),'mode':0x180});try{renameSync(_0x437b02,_0x19d45b);}catch(_0x4f011a){if(_0x4f011a[_0x23930c(0x97)]===_0x23930c(0x84)||_0x4f011a[_0x23930c(0x97)]===_0x23930c(0xc4)||_0x4f011a[_0x23930c(0x97)]===_0x23930c(0xa9)){writeFileSync(_0x19d45b,JSON[_0x23930c(0xac)](_0x5c1076,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x437b02);}catch{}}else throw _0x4f011a;}}catch(_0x1a5746){try{unlinkSync(_0x437b02);}catch{}throw _0x1a5746;}}export function isNonInteractiveMode(_0x33c117){const _0x22f1b3=a102_0x53b9f7;return!!(_0x33c117['nonInteractive']||_0x33c117['ci']||productEnvNames('CI')['some'](_0x13b118=>process.env[_0x13b118]===_0x22f1b3(0xa5))||process.env.CI===_0x22f1b3(0xa5)||!process[_0x22f1b3(0xc0)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5c9800=a102_0x53b9f7;if(!process[_0x5c9800(0xb5)]['isTTY'])return![];try{const _0x579b3f=process[_0x5c9800(0xb5)][_0x5c9800(0xb2)];return process[_0x5c9800(0xb5)][_0x5c9800(0xa8)](!![]),process[_0x5c9800(0xb5)][_0x5c9800(0xa8)](_0x579b3f??![]),!![];}catch{return![];}}export async function createContext(_0x4eaf4c){const _0x18eb20=a102_0x53b9f7,_0x5d2d67=readRawConfig(),_0x2de909=buildConfig(_0x5d2d67,_0x4eaf4c);await initGlobalEnvironment(_0x2de909);const {getUserDomain:_0x1fa253,getApiDomain:_0x57b4c2}=await import('./constant/domain.js'),_0xa8224f={'apiDomain':_0x57b4c2(),'userDomain':_0x1fa253()},_0x1bf362=await buildAuth(_0x2de909);logger[_0x18eb20(0xa6)](process['cwd']());const _0x593a64=(CLI_BIN_NAME+'\x20'+process['argv'][_0x18eb20(0x83)](0x2)[_0x18eb20(0xa0)]('\x20'))[_0x18eb20(0x9c)]();logger[_0x18eb20(0x9f)](_0x593a64);const _0x875bf7=isNonInteractiveMode(_0x4eaf4c);return{'config':_0x2de909,'auth':_0x1bf362,'logger':logger,'env':_0xa8224f,'nonInteractive':_0x875bf7};}export function buildConfigFromFlags(_0x1fa7f6){return buildConfig(readRawConfig(),_0x1fa7f6);}function a102_0x3ce9(){const _0x101494=['setLogPath','nativeToolAvailable','setRawMode','EACCES','apiDomain','globalConfig','stringify','skillDomain','host','write','1217415ToBHJz','882505VGazVt','isRaw','accessKey','./constant/domain.js','stdin','values','online','2986548ZPEByD','42qzMSXh','production','local-alias','VERBOSE','riskLevel','env','string','stdout','70UGFSkq','app','627592TwzGYU','EXDEV','projectConfig','1538466JFGBxc','raw','agentDomain','1272630SCkEVX','slice','EPERM','./constant/env.js','object','authRequired','runtimeDomain','utf8','top-level','configFileNames','region','global','routing','daily','70wFkidA','format','apps','pageSize','skillHubDomain','platformDomain','614151KcEuTC','code','locale','development','FORMAT','defaultApp','trim','project','parse','setRawCommand','join','APPCODE','message','appcode','newConfigFileName','true'];a102_0x3ce9=function(){return _0x101494;};return a102_0x3ce9();}export function getLocalAppAliases(_0x42c188){const _0x4fbfe9=a102_0x53b9f7;return _0x42c188[_0x4fbfe9(0x92)]&&typeof _0x42c188['apps']==='object'?_0x42c188[_0x4fbfe9(0x92)]:{};}export function resolveLocalAppAliasCode(_0x158211,_0x4d78ae){const _0x1d5972=a102_0x53b9f7;if(!_0x4d78ae)return undefined;const _0x9f0cf3=getLocalAppAliases(_0x158211)[_0x4d78ae],_0x25a838=_0x9f0cf3?.[_0x1d5972(0xa3)];return typeof _0x25a838===_0x1d5972(0xbf)&&_0x25a838[_0x1d5972(0x9c)]()?_0x25a838['trim']():undefined;}export function readAppCodeFromConfig(){const _0x4f311c=a102_0x53b9f7,_0xfe43ad=readRawConfig(),_0x46ee5c=_0xfe43ad['appcode']??_0xfe43ad[_0x4f311c(0xc2)];if(typeof _0x46ee5c===_0x4f311c(0xbf)&&_0x46ee5c[_0x4f311c(0x9c)]())return _0x46ee5c['trim']();const _0x361e22=resolveLocalAppAliasCode(_0xfe43ad,typeof _0xfe43ad[_0x4f311c(0x9b)]===_0x4f311c(0xbf)?_0xfe43ad['defaultApp']:undefined);if(_0x361e22)return _0x361e22;const _0x412860=normalizeEnv(String(_0xfe43ad[_0x4f311c(0xbe)]||_0x4f311c(0xba))),_0x5ca572=isDaily(_0x412860)?'daily':isDev(_0x412860)?_0x4f311c(0x99):'production',_0x5805de=resolveCachedAppCode(typeof _0xfe43ad[_0x4f311c(0x9b)]==='string'?_0xfe43ad[_0x4f311c(0x9b)]:undefined,_0x5ca572,typeof _0xfe43ad[_0x4f311c(0xb3)]===_0x4f311c(0xbf)?_0xfe43ad[_0x4f311c(0xb3)]:undefined);if(_0x5805de)return _0x5805de;const _0x270c95=Object[_0x4f311c(0xb6)](getLocalAppAliases(_0xfe43ad))['find'](_0x4404dd=>_0x4404dd?.['appcode']);return typeof _0x270c95?.['appcode']===_0x4f311c(0xbf)&&_0x270c95[_0x4f311c(0xa3)][_0x4f311c(0x9c)]()?_0x270c95['appcode'][_0x4f311c(0x9c)]():undefined;}export function readScopedConfig(_0x1cdb43){const _0x474809=a102_0x53b9f7,_0x50a9f2=_0x1cdb43[_0x474809(0x8d)]?_0x474809(0x8d):'project';return readConfigFile(resolveWriteConfigPath(_0x50a9f2));}export function writeScopedConfig(_0x549c8c,_0x16f4ba){const _0x24a618=a102_0x53b9f7,_0x1d03f0=_0x16f4ba[_0x24a618(0x8d)]?_0x24a618(0x8d):_0x24a618(0x9d);writeConfigFile(resolveWriteConfigPath(_0x1d03f0),_0x549c8c);}export async function initGlobalEnvironment(_0x536e09){const _0x37aa69=a102_0x53b9f7,{initEnv:_0x2fec18}=await import(_0x37aa69(0x85));_0x2fec18(_0x536e09[_0x37aa69(0xbe)]);const {initDomains:_0x2afbeb}=await import(_0x37aa69(0xb4)),_0x5a1c92=resolveEnterpriseRoutingConfig(_0x536e09[_0x37aa69(0x80)][_0x37aa69(0x8e)]);_0x2afbeb({'apiDomain':_0x5a1c92?_0x5a1c92[_0x37aa69(0xaa)]:_0x536e09[_0x37aa69(0x80)][_0x37aa69(0xaa)]||_0x536e09[_0x37aa69(0x80)][_0x37aa69(0xae)]||undefined,'userDomain':_0x5a1c92?_0x5a1c92['userDomain']:_0x536e09[_0x37aa69(0x80)]['userDomain']||undefined,'runtimeDomain':_0x5a1c92?_0x5a1c92['runtimeDomain']:_0x536e09[_0x37aa69(0x80)][_0x37aa69(0x88)]||undefined,'skillDomain':_0x5a1c92?_0x5a1c92[_0x37aa69(0xad)]:_0x536e09[_0x37aa69(0x80)][_0x37aa69(0xad)]||_0x536e09[_0x37aa69(0x80)][_0x37aa69(0x94)]||_0x536e09['raw'][_0x37aa69(0x81)]||_0x536e09[_0x37aa69(0x80)][_0x37aa69(0x95)]||undefined,'region':normalizeLovrabetRegion(_0x536e09['raw'][_0x37aa69(0x8c)])});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x22cb2c){const _0x5f269d=a102_0x53b9f7;if(!existsSync(_0x22cb2c))return{'status':'missing'};try{const _0x42b791=readFileSync(_0x22cb2c,{'encoding':_0x5f269d(0x89)});if(!_0x42b791?.[_0x5f269d(0x9c)]())return{'status':'empty'};const _0x49191d=JSON[_0x5f269d(0x9e)](_0x42b791);return{'status':'ok','data':_0x49191d};}catch(_0x31cb3f){return{'status':'error','message':_0x31cb3f instanceof Error?_0x31cb3f[_0x5f269d(0xa2)]:String(_0x31cb3f)};}}export function loadRawConfigLayers(_0x449a1b){const _0x4e9382=a102_0x53b9f7;let _0x25f06a={},_0x5b23f8={},_0xbb6a6f,_0x16c6ea;try{_0xbb6a6f=resolveConfigPath(homedir());if(_0xbb6a6f){const _0x94aea0=readFileSync(_0xbb6a6f,{'encoding':_0x4e9382(0x89)});if(_0x94aea0)_0x25f06a=JSON[_0x4e9382(0x9e)](_0x94aea0);}}catch{}try{const _0x148699=_0x449a1b||process['cwd']();_0x16c6ea=resolveConfigPath(_0x148699);if(_0x16c6ea){const _0x5267dd=readFileSync(_0x16c6ea,{'encoding':_0x4e9382(0x89)});if(_0x5267dd)_0x5b23f8=JSON['parse'](_0x5267dd);}}catch{}return{'globalPath':_0xbb6a6f,'projectPath':_0x16c6ea,'globalConfig':_0x25f06a,'projectConfig':_0x5b23f8};}function mergeRawConfigLayers(_0x211365){const _0x2b9424=a102_0x53b9f7,{globalConfig:_0x49f45e,projectConfig:_0x3c763d}=_0x211365,_0x317688={..._0x49f45e,..._0x3c763d};delete _0x317688['inherit'];if('defaultApp'in _0x3c763d)_0x317688[_0x2b9424(0x9b)]=_0x3c763d[_0x2b9424(0x9b)];else _0x49f45e[_0x2b9424(0x9b)]&&(_0x317688[_0x2b9424(0x9b)]=_0x49f45e[_0x2b9424(0x9b)]);return _0x317688;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x57ed98){return mergeRawConfigLayers(loadRawConfigLayers(_0x57ed98));}export function readRawConfigWithLayers(_0x5dc7f8){const _0x4f911a=loadRawConfigLayers(_0x5dc7f8);return{'config':mergeRawConfigLayers(_0x4f911a),'layers':_0x4f911a};}export function resolveDefaultAppSource(_0x2d5a84){const _0x8de4b8=a102_0x53b9f7;if(_0x8de4b8(0x9b)in _0x2d5a84[_0x8de4b8(0x7e)])return'project';if(_0x2d5a84[_0x8de4b8(0xab)][_0x8de4b8(0x9b)])return _0x8de4b8(0x8d);return null;}function buildConfig(_0x4f2ada,_0x514952){const _0x2da844=a102_0x53b9f7,_0x370c16=_0x4f2ada['defaultApp']||undefined,_0x9deb87=_0x514952[_0x2da844(0xc2)]||env('APP')||undefined,_0x144b81=_0x9deb87||_0x370c16||undefined,_0x57f8f8=env('ACCESS_KEY')||_0x4f2ada[_0x2da844(0xb3)]||undefined,_0x583fce=_0x514952[_0x2da844(0xbe)]||env('ENV')||_0x4f2ada[_0x2da844(0xbe)]||DEFAULT_CONFIG_VALUES[_0x2da844(0xbe)],_0x3ea2be=normalizeEnv(String(_0x583fce)),_0x24f96c=isDaily(_0x3ea2be)?_0x2da844(0x8f):isDev(_0x3ea2be)?_0x2da844(0x99):'production',_0x10db0e=typeof _0x514952[_0x2da844(0xa3)]===_0x2da844(0xbf)?_0x514952[_0x2da844(0xa3)]:undefined,_0x6de362=env(_0x2da844(0xa1)),_0x237f84=_0x9deb87?undefined:_0x4f2ada[_0x2da844(0xa3)]||_0x4f2ada[_0x2da844(0xc2)]||undefined,_0x470f70=_0x9deb87||(_0x237f84?undefined:_0x370c16),_0x4d78ac=resolveLocalAppAliasCode(_0x4f2ada,_0x470f70),_0x4ed1ce=resolveCachedAppCode(_0x470f70,_0x24f96c,_0x57f8f8),_0x550e2f=_0x10db0e||_0x6de362||_0x237f84||_0x4d78ac||_0x4ed1ce||undefined,_0x3603fb=_0x10db0e?'explicit':_0x6de362?_0x2da844(0xbe):_0x237f84?_0x2da844(0x8a):_0x4d78ac?_0x2da844(0xbb):_0x4ed1ce?'cache':undefined,_0x4d9360=_0x4f2ada[_0x2da844(0x98)]||DEFAULT_CONFIG_VALUES['locale'],_0xea6119=undefined,_0x75aaba=_0x514952[_0x2da844(0x91)]||env(_0x2da844(0x9a))||_0x4f2ada[_0x2da844(0x91)],_0xf560f9=normalizeLegacyOutputFormat(_0x75aaba),_0x4a2070=env('PAGE_SIZE')||_0x4f2ada[_0x2da844(0x93)],_0xbf0f3f=_0x4a2070?Number(_0x4a2070)||undefined:undefined,_0x2c612c=_0x4f2ada[_0x2da844(0xbd)],_0x13a131=_0x2c612c==='read'||_0x2c612c===_0x2da844(0xaf)||_0x2c612c==='high-risk-write'?_0x2c612c:DEFAULT_CONFIG_VALUES['riskLevel'],_0x91437b=_0x4f2ada[_0x2da844(0xa7)]===!![],_0x400d47=env(_0x2da844(0xbc)),_0x267c3b=_0x400d47==='1'||_0x400d47===_0x2da844(0xa5);return{'appCode':typeof _0x550e2f===_0x2da844(0xbf)&&_0x550e2f[_0x2da844(0x9c)]()?_0x550e2f[_0x2da844(0x9c)]():undefined,'appCodeSource':_0x3603fb,'env':_0x24f96c,'locale':_0x4d9360,'cookie':_0xea6119,'accessKey':_0x57f8f8,'format':_0xf560f9,'pageSize':_0xbf0f3f,'riskLevel':_0x13a131,'nativeToolAvailable':_0x91437b,'verbose':_0x267c3b,'defaultApp':_0x370c16,'currentApp':typeof _0x144b81===_0x2da844(0xbf)?_0x144b81:undefined,'raw':_0x4f2ada};}function a102_0x5559(_0x113bcb,_0x271219){_0x113bcb=_0x113bcb-0x7e;const _0x3ce9f6=a102_0x3ce9();let _0x555965=_0x3ce9f6[_0x113bcb];return _0x555965;}function env(_0x252fed){return productEnv(_0x252fed);}async function buildAuth(_0x74d9ff){const _0x536077=a102_0x53b9f7,_0x2380f3='',_0x120f12=!!_0x74d9ff[_0x536077(0xb3)];return{'cookie':_0x2380f3,'isLoggedIn':_0x120f12,async 'getOrLogin'(){const _0x59b6dc=_0x536077;if(_0x120f12)return _0x2380f3;throw CliErrors[_0x59b6dc(0x87)]();}};}
@@ -1 +1 @@
1
- const a103_0x34bfe5=a103_0x15d2;(function(_0xaf14dd,_0x4432a6){const _0x129ccd=a103_0x15d2,_0x120b2e=_0xaf14dd();while(!![]){try{const _0x3a3fac=-parseInt(_0x129ccd(0x184))/0x1*(-parseInt(_0x129ccd(0x10e))/0x2)+parseInt(_0x129ccd(0x132))/0x3+parseInt(_0x129ccd(0xf3))/0x4+parseInt(_0x129ccd(0x125))/0x5*(-parseInt(_0x129ccd(0x162))/0x6)+-parseInt(_0x129ccd(0x193))/0x7*(-parseInt(_0x129ccd(0xfd))/0x8)+-parseInt(_0x129ccd(0x168))/0x9*(parseInt(_0x129ccd(0xe8))/0xa)+parseInt(_0x129ccd(0x185))/0xb;if(_0x3a3fac===_0x4432a6)break;else _0x120b2e['push'](_0x120b2e['shift']());}catch(_0x340fed){_0x120b2e['push'](_0x120b2e['shift']());}}}(a103_0x394c,0xd3642));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x526871){_activeAK=_0x526871||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x5b57b8){const _0xc0550f=a103_0x15d2;for(const _0x271e24 of _0x5b57b8){if(typeof _0x271e24==='string'&&_0x271e24[_0xc0550f(0x11f)]())return _0x271e24[_0xc0550f(0x11f)]();}return undefined;}async function decodeResponseBody(_0x212ce0){const _0x538acd=a103_0x15d2;if(typeof _0x212ce0[_0x538acd(0x14c)]==='function')try{const _0x2e1a91=await _0x212ce0['text']();try{return{'isJson':!![],'data':parseLosslessJson(_0x2e1a91),'text':_0x2e1a91};}catch{return{'isJson':![],'text':_0x2e1a91['trim']()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x212ce0[_0x538acd(0x16c)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x14f727,_0xd448c4,_0x4aa32f){const _0x5072f8=a103_0x15d2,_0x22dca2=_0xd448c4&&typeof _0xd448c4===_0x5072f8(0xd6)?_0xd448c4:{},_0x576c07=[_0x22dca2['status'],_0x22dca2['code']]['find'](_0x4b64af=>Number(_0x4b64af)===0x1ad),_0x3ba471=createRateLimitError({'status':_0x14f727['status']===0x1ad?_0x14f727[_0x5072f8(0x140)]:_0x576c07??_0x14f727[_0x5072f8(0x140)],'errorCode':firstString(_0x22dca2[_0x5072f8(0x156)],typeof _0x22dca2[_0x5072f8(0x139)]===_0x5072f8(0xe6)?_0x22dca2[_0x5072f8(0x139)]:undefined),'message':firstString(_0x22dca2[_0x5072f8(0x109)],_0x22dca2[_0x5072f8(0xdd)],_0x22dca2['msg'],_0x4aa32f),'retryAfter':readRetryAfter(_0x14f727[_0x5072f8(0xd5)])??readRetryAfterSeconds(_0xd448c4)});if(_0x3ba471)throw _0x3ba471;}async function apiRequest(_0x54c193,_0x4acd08={}){const _0x43f98d=a103_0x15d2,{method:method=_0x43f98d(0x138),body:_0x2cadba,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x43f98d(0x12a)}=_0x4acd08,_0x33be0a=_activeAK,_0xa6a130=domain===_0x43f98d(0xea)?getApiDomain():getRuntimeDomain();if(!_0x33be0a)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x43f98d(0x13d)]+'.');const _0x5d4d0a=''+_0xa6a130+_0x54c193,_0x8cf6ef={'X-User-AK':_0x33be0a},_0xbef34=new AbortController(),_0x2f793a=setTimeout(()=>_0xbef34[_0x43f98d(0x171)](),timeout);try{const _0x507ba5=await fetch(_0x5d4d0a,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x43f98d(0x17a)],..._0x8cf6ef,...headers},'body':_0x2cadba?JSON[_0x43f98d(0x114)](_0x2cadba):undefined,'signal':_0xbef34['signal']}),_0x25af95=await decodeResponseBody(_0x507ba5);if(!_0x25af95[_0x43f98d(0x135)]){throwIfRateLimited(_0x507ba5,undefined,_0x25af95[_0x43f98d(0x14c)]);throw CliErrors[_0x43f98d(0x190)](_0x43f98d(0x10f)+_0x507ba5[_0x43f98d(0x140)]+')',_0x507ba5[_0x43f98d(0x140)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x46091d=_0x25af95['data'];throwIfRateLimited(_0x507ba5,_0x46091d);if(!_0x507ba5['ok']||_0x46091d['success']===![])throw CliErrors[_0x43f98d(0x190)](_0x46091d['errorMsg']||_0x46091d[_0x43f98d(0xdd)]||_0x43f98d(0xf2)+_0x507ba5[_0x43f98d(0x140)],_0x46091d[_0x43f98d(0x156)]?_0x43f98d(0x18a)+_0x46091d['errorCode']:undefined);return _0x46091d;}catch(_0x1abb19){if(_0x1abb19 instanceof Error&&_0x1abb19['name']===_0x43f98d(0x108))throw CliErrors[_0x43f98d(0x190)]('Request\x20timeout:\x20'+_0x5d4d0a);throw _0x1abb19;}finally{clearTimeout(_0x2f793a);}}async function apiBinaryRequest(_0x6bc5a0,_0x1d2d2b={}){const _0x10fa53=a103_0x15d2,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1d2d2b,_0x271ee9=_activeAK,_0x4e22fd=getRuntimeDomain();if(!_0x271ee9)throw CliErrors[_0x10fa53(0x100)](_0x10fa53(0x12f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4184df=''+_0x4e22fd+_0x6bc5a0,_0xfe0d54=new AbortController(),_0x3fbf76=setTimeout(()=>_0xfe0d54[_0x10fa53(0x171)](),timeout);try{const _0x50d996=await fetch(_0x4184df,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x10fa53(0x17a)],'X-User-AK':_0x271ee9,...headers},'signal':_0xfe0d54[_0x10fa53(0x159)]});if(!_0x50d996['ok']){const _0x194718=await decodeResponseBody(_0x50d996),_0x5f05e3=_0x194718[_0x10fa53(0xe0)]&&typeof _0x194718[_0x10fa53(0xe0)]===_0x10fa53(0xd6)?_0x194718['data']:{},_0x1a1e7e=firstString(_0x5f05e3[_0x10fa53(0x109)],_0x5f05e3['message'],_0x5f05e3[_0x10fa53(0x156)],_0x194718[_0x10fa53(0x14c)]);throwIfRateLimited(_0x50d996,_0x194718[_0x10fa53(0xe0)],_0x1a1e7e);throw CliErrors['apiError'](_0x1a1e7e||'API\x20error:\x20'+_0x50d996[_0x10fa53(0x140)],'Download\x20failed:\x20'+_0x4184df);}return Buffer['from'](await _0x50d996[_0x10fa53(0x189)]());}catch(_0x3b7956){if(_0x3b7956 instanceof Error&&_0x3b7956[_0x10fa53(0xdf)]==='AbortError')throw CliErrors[_0x10fa53(0x190)](_0x10fa53(0x11a)+_0x4184df);throw _0x3b7956;}finally{clearTimeout(_0x3fbf76);}}async function apiFormRequest(_0x528087,_0x510839,_0xc82bc7={}){const _0x4e267b=a103_0x15d2,{timeout:timeout=0x7530}=_0xc82bc7,_0x48a136=_activeAK,_0xc1d20a=getRuntimeDomain();if(!_0x48a136)throw CliErrors['authRequired'](_0x4e267b(0x12f)+PRODUCT_CONFIG[_0x4e267b(0x13d)]+'.');const _0x2c7187=''+_0xc1d20a+_0x528087,_0x499251=new AbortController(),_0x2d6142=setTimeout(()=>_0x499251[_0x4e267b(0x171)](),timeout);try{const _0xf3d2a2=await fetch(_0x2c7187,{'method':'POST','headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x48a136},'body':_0x510839,'signal':_0x499251[_0x4e267b(0x159)]}),_0x540c2e=await decodeResponseBody(_0xf3d2a2);if(!_0x540c2e[_0x4e267b(0x135)]){throwIfRateLimited(_0xf3d2a2,undefined,_0x540c2e['text']);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xf3d2a2[_0x4e267b(0x140)]+')',_0xf3d2a2['status']>=0x190?_0x4e267b(0x13a):undefined);}const _0xe5f8db=_0x540c2e[_0x4e267b(0xe0)];throwIfRateLimited(_0xf3d2a2,_0xe5f8db);if(!_0xf3d2a2['ok']||_0xe5f8db[_0x4e267b(0x111)]===![])throw CliErrors[_0x4e267b(0x190)](_0xe5f8db[_0x4e267b(0x109)]||_0xe5f8db[_0x4e267b(0xdd)]||_0x4e267b(0xf2)+_0xf3d2a2[_0x4e267b(0x140)],_0xe5f8db[_0x4e267b(0x156)]?_0x4e267b(0x18a)+_0xe5f8db[_0x4e267b(0x156)]:undefined);return _0xe5f8db;}catch(_0x27f505){if(_0x27f505 instanceof Error&&_0x27f505[_0x4e267b(0xdf)]===_0x4e267b(0x108))throw CliErrors[_0x4e267b(0x190)](_0x4e267b(0x11a)+_0x2c7187);throw _0x27f505;}finally{clearTimeout(_0x2d6142);}}async function toolboxRequest(_0x2d5065,_0x1c9604,_0x329ae1={}){const _0x2fb1fd=a103_0x15d2,{method:method=_0x2fb1fd(0x138),headers:headers={},timeout:timeout=0x7530}=_0x329ae1,_0x56b1a7=_activeAK;if(!_0x56b1a7)throw CliErrors[_0x2fb1fd(0x100)](_0x2fb1fd(0x12f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4627d8=getApiDomain()[_0x2fb1fd(0x128)](/\/$/,''),_0x504f56=new URL(_0x2d5065,_0x4627d8+_0x2fb1fd(0x14e));if(_0x1c9604)for(const [_0x5cc76f,_0x535535]of Object['entries'](_0x1c9604)){_0x535535!==undefined&&_0x535535!==null&&_0x504f56['searchParams'][_0x2fb1fd(0xf1)](_0x5cc76f,String(_0x535535));}const _0x17913a=new AbortController(),_0x4c5a66=setTimeout(()=>_0x17913a[_0x2fb1fd(0x171)](),timeout);try{const _0x11c394=await fetch(_0x504f56,{'method':method,'headers':{'Content-Type':_0x2fb1fd(0xf4),'X-Invoke-Source':PRODUCT_CONFIG[_0x2fb1fd(0x17a)],'X-User-AK':_0x56b1a7,...headers},'signal':_0x17913a[_0x2fb1fd(0x159)]}),_0x55abee=await decodeResponseBody(_0x11c394);if(!_0x55abee['isJson']){throwIfRateLimited(_0x11c394,undefined,_0x55abee[_0x2fb1fd(0x14c)]);throw CliErrors[_0x2fb1fd(0x190)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x11c394[_0x2fb1fd(0x140)]+')',_0x11c394['status']>=0x190?_0x2fb1fd(0x13a):undefined);}const _0x4fada1=_0x55abee['data'];throwIfRateLimited(_0x11c394,_0x4fada1);if(!_0x11c394['ok']){const _0x15adc9=_0x4fada1&&typeof _0x4fada1===_0x2fb1fd(0xd6)?_0x4fada1:{};throw CliErrors[_0x2fb1fd(0x190)](_0x15adc9['errorMsg']||_0x15adc9['message']||'Toolbox\x20API\x20error:\x20'+_0x11c394[_0x2fb1fd(0x140)],_0x15adc9[_0x2fb1fd(0x156)]?_0x2fb1fd(0x12d)+_0x15adc9[_0x2fb1fd(0x156)]:undefined);}if(_0x4fada1&&typeof _0x4fada1===_0x2fb1fd(0xd6)&&_0x2fb1fd(0x111)in _0x4fada1&&typeof _0x4fada1[_0x2fb1fd(0x111)]===_0x2fb1fd(0xfe)){const _0x3142c3=_0x4fada1;if(!_0x3142c3[_0x2fb1fd(0x111)])throw CliErrors[_0x2fb1fd(0x190)](_0x3142c3[_0x2fb1fd(0x109)]||_0x3142c3['message']||'Toolbox\x20API\x20error',_0x3142c3[_0x2fb1fd(0x156)]?'Toolbox\x20error\x20code:\x20'+_0x3142c3[_0x2fb1fd(0x156)]:undefined);return _0x3142c3[_0x2fb1fd(0xe0)];}return _0x4fada1;}catch(_0x12540e){if(_0x12540e instanceof Error&&_0x12540e[_0x2fb1fd(0xdf)]===_0x2fb1fd(0x108))throw CliErrors[_0x2fb1fd(0x190)](_0x2fb1fd(0x11a)+_0x504f56[_0x2fb1fd(0x175)]());throw _0x12540e;}finally{clearTimeout(_0x4c5a66);}}async function skillHubJsonRequest(_0x5873a0,_0x5335e5={}){const _0x45713a=a103_0x15d2,{method:method=_0x45713a(0x138),query:_0x29131c,body:_0x4839e6,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5335e5,_0x5de968=_activeAK;if(!_0x5de968)throw CliErrors[_0x45713a(0x100)](_0x45713a(0x12f)+PRODUCT_CONFIG[_0x45713a(0x13d)]+'.');const _0x5a4520=getSkillDomain()[_0x45713a(0x128)](/\/$/,''),_0x1ee345=new URL(_0x5873a0,_0x5a4520+'/');if(_0x29131c)for(const [_0x56ed24,_0xe38152]of Object[_0x45713a(0x121)](_0x29131c)){_0xe38152!==undefined&&_0xe38152!==null&&_0x1ee345[_0x45713a(0x14f)][_0x45713a(0xf1)](_0x56ed24,String(_0xe38152));}const _0x2f0a1d=new AbortController(),_0x3f7692=setTimeout(()=>_0x2f0a1d['abort'](),timeout);try{const _0x19c3b9=await fetch(_0x1ee345[_0x45713a(0x175)](),{'method':method,'headers':{'Accept':_0x45713a(0xf4),'X-Invoke-Source':PRODUCT_CONFIG[_0x45713a(0x17a)],'X-User-AK':_0x5de968,...headers},'body':_0x4839e6,'signal':_0x2f0a1d['signal']}),_0x1995e9=await decodeResponseBody(_0x19c3b9);if(!_0x1995e9['isJson']){if(allowNotFound&&_0x19c3b9['status']===0x194)return undefined;throwIfRateLimited(_0x19c3b9,undefined,_0x1995e9[_0x45713a(0x14c)]);throw CliErrors[_0x45713a(0x190)](_0x45713a(0x101)+_0x19c3b9[_0x45713a(0x140)]+')',_0x19c3b9[_0x45713a(0x140)]>=0x190?_0x45713a(0x13a):undefined);}const _0x5b13e5=_0x1995e9[_0x45713a(0xe0)];throwIfRateLimited(_0x19c3b9,_0x5b13e5);if(allowNotFound&&isSkillHubNotFoundResponse(_0x19c3b9[_0x45713a(0x140)],_0x5b13e5))return undefined;const _0x4df122=!_0x19c3b9['ok']||_0x5b13e5?.['success']===![]||typeof _0x5b13e5?.[_0x45713a(0x139)]==='number'&&_0x5b13e5[_0x45713a(0x139)]>=0x190;if(_0x4df122)throw CliErrors[_0x45713a(0x190)](_0x5b13e5?.[_0x45713a(0x109)]||_0x5b13e5?.[_0x45713a(0xdd)]||_0x5b13e5?.[_0x45713a(0x167)]||'SkillHub\x20API\x20error:\x20'+_0x19c3b9['status'],_0x5b13e5?.['errorCode']?_0x45713a(0x10a)+_0x5b13e5[_0x45713a(0x156)]:undefined);return _0x5b13e5?.[_0x45713a(0xe0)]??_0x5b13e5;}catch(_0x1beca4){if(_0x1beca4 instanceof Error&&_0x1beca4[_0x45713a(0xdf)]===_0x45713a(0x108))throw CliErrors[_0x45713a(0x190)](_0x45713a(0x11a)+_0x1ee345['toString']());throw _0x1beca4;}finally{clearTimeout(_0x3f7692);}}function isSkillHubNotFoundResponse(_0x285dd3,_0x2ea8f4){const _0x4a616c=a103_0x15d2;if(_0x285dd3===0x194||_0x2ea8f4?.[_0x4a616c(0x139)]===0x194)return!![];if(_0x285dd3!==0x190&&_0x2ea8f4?.[_0x4a616c(0x139)]!==0x190)return![];const _0x93ac28=[_0x2ea8f4?.[_0x4a616c(0x167)],_0x2ea8f4?.[_0x4a616c(0xdd)],_0x2ea8f4?.[_0x4a616c(0x109)],_0x2ea8f4?.[_0x4a616c(0x11c)]][_0x4a616c(0x150)](_0xcbdb59=>typeof _0xcbdb59===_0x4a616c(0xe6))[_0x4a616c(0x157)]('\x20');return/skill not found\b/i[_0x4a616c(0x15b)](_0x93ac28);}async function skillHubBinaryRequest(_0x2d21d6,_0x88ea2a={}){const _0x1d7c2b=a103_0x15d2,{query:_0x3d9458,headers:headers={},timeout:timeout=0x7530}=_0x88ea2a,_0x32c007=_activeAK;if(!_0x32c007)throw CliErrors['authRequired'](_0x1d7c2b(0x12f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5447af=getSkillDomain()[_0x1d7c2b(0x128)](/\/$/,''),_0x34e60c=new URL(_0x2d21d6,_0x5447af+'/');if(_0x3d9458)for(const [_0x20f5f9,_0x442106]of Object['entries'](_0x3d9458)){_0x442106!==undefined&&_0x442106!==null&&_0x34e60c[_0x1d7c2b(0x14f)][_0x1d7c2b(0xf1)](_0x20f5f9,String(_0x442106));}const _0x2d96d1=new AbortController(),_0x33fc36=setTimeout(()=>_0x2d96d1[_0x1d7c2b(0x171)](),timeout);try{const _0x2887ec=await fetch(_0x34e60c[_0x1d7c2b(0x175)](),{'method':_0x1d7c2b(0x138),'headers':{'Accept':_0x1d7c2b(0xe5),'X-Invoke-Source':PRODUCT_CONFIG[_0x1d7c2b(0x17a)],'X-User-AK':_0x32c007,...headers},'signal':_0x2d96d1[_0x1d7c2b(0x159)]});if(!_0x2887ec['ok']){const _0xb1216c=await decodeResponseBody(_0x2887ec),_0x4f53f3=_0xb1216c[_0x1d7c2b(0xe0)]&&typeof _0xb1216c['data']==='object'?_0xb1216c[_0x1d7c2b(0xe0)]:{},_0x4c0cb4=firstString(_0x4f53f3[_0x1d7c2b(0x109)],_0x4f53f3[_0x1d7c2b(0xdd)],_0x4f53f3[_0x1d7c2b(0x167)],_0x4f53f3[_0x1d7c2b(0x156)],_0xb1216c[_0x1d7c2b(0x14c)]);throwIfRateLimited(_0x2887ec,_0xb1216c[_0x1d7c2b(0xe0)],_0x4c0cb4);throw CliErrors[_0x1d7c2b(0x190)](_0x4c0cb4||_0x1d7c2b(0x176)+_0x2887ec['status'],_0x1d7c2b(0x17d)+_0x34e60c[_0x1d7c2b(0x175)]());}return Buffer[_0x1d7c2b(0xfc)](await _0x2887ec[_0x1d7c2b(0x189)]());}catch(_0x1f7c80){if(_0x1f7c80 instanceof Error&&_0x1f7c80[_0x1d7c2b(0xdf)]===_0x1d7c2b(0x108))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x34e60c[_0x1d7c2b(0x175)]());throw _0x1f7c80;}finally{clearTimeout(_0x33fc36);}}export async function getBffEndpointContract(_0x39ce36,_0x14df56){const _0x26a124=a103_0x15d2;if(_0x14df56===_0x26a124(0x14a))throw CliErrors[_0x26a124(0x165)]('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x39ce36+_0x26a124(0x12e)+_0x14df56);const _0x5c21ec=await apiRequest(_0x26a124(0x10b)+encodeURIComponent(_0x39ce36)+'/'+encodeURIComponent(_0x14df56)),_0x576d6d=_0x5c21ec[_0x26a124(0xe0)];if(!_0x576d6d||typeof _0x576d6d!==_0x26a124(0xd6)||Array[_0x26a124(0x149)](_0x576d6d)||_0x576d6d['appCode']!==_0x39ce36||_0x576d6d[_0x26a124(0x181)]!==_0x14df56)throw CliErrors[_0x26a124(0x165)]('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x39ce36+',\x20name='+_0x14df56);return{'appCode':_0x576d6d['appCode'],'functionName':_0x576d6d[_0x26a124(0x181)],'description':_0x576d6d[_0x26a124(0x186)],'version':_0x576d6d[_0x26a124(0x141)],'gmtModified':_0x576d6d['gmtModified']};}export async function getSqlQueryInfo(_0x47e505,_0x7dcab1){const _0x1fb4cc=a103_0x15d2,_0xf84cc9=await apiRequest(_0x1fb4cc(0xde),{'method':_0x1fb4cc(0x182),'body':{'appCode':_0x47e505,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x7dcab1}}),_0x3535ba=_0xf84cc9[_0x1fb4cc(0xe0)],_0x52da38=_0x3535ba&&typeof _0x3535ba===_0x1fb4cc(0xd6)&&_0x1fb4cc(0x163)in _0x3535ba?_0x3535ba[_0x1fb4cc(0x163)]?.[0x0]:_0x3535ba&&typeof _0x3535ba===_0x1fb4cc(0xd6)&&_0x1fb4cc(0xf0)in _0x3535ba?_0x3535ba:undefined;if(!_0x52da38)throw CliErrors[_0x1fb4cc(0x165)]('SQL\x20query\x20not\x20found:\x20'+_0x7dcab1);return _0x52da38;}function isRemoteAppItem(_0x4dd78d){const _0xcc54cf=a103_0x15d2;return!!_0x4dd78d&&typeof _0x4dd78d===_0xcc54cf(0xd6)&&typeof _0x4dd78d[_0xcc54cf(0x177)]==='string'&&typeof _0x4dd78d['appName']==='string';}function extractRemoteAppItems(_0x197e37){const _0x35fef8=a103_0x15d2;if(Array[_0x35fef8(0x149)](_0x197e37))return _0x197e37[_0x35fef8(0x150)](isRemoteAppItem);if(!_0x197e37||typeof _0x197e37!==_0x35fef8(0xd6))throw CliErrors[_0x35fef8(0x190)](_0x35fef8(0xd7));const _0x6199ff=_0x197e37;if(Array[_0x35fef8(0x149)](_0x6199ff[_0x35fef8(0x163)]))return _0x6199ff['tableData'][_0x35fef8(0x150)](isRemoteAppItem);if(_0x6199ff[_0x35fef8(0xe0)]&&typeof _0x6199ff[_0x35fef8(0xe0)]===_0x35fef8(0xd6)){const _0x416e21=_0x6199ff[_0x35fef8(0xe0)];if(Array[_0x35fef8(0x149)](_0x416e21[_0x35fef8(0x163)]))return _0x416e21[_0x35fef8(0x163)]['filter'](isRemoteAppItem);}throw CliErrors[_0x35fef8(0x190)](_0x35fef8(0x126));}export async function getMyApps(){const _0x90e584=a103_0x15d2,_0x2ffbc4=await apiRequest(_0x90e584(0xec));return extractRemoteAppItems(_0x2ffbc4[_0x90e584(0xe0)]);}export async function getLoginUserInfo(){const _0x56062f=a103_0x15d2,_0x2c8160=await apiRequest('/client/user/loginUserInfo');if(!_0x2c8160[_0x56062f(0xe0)]||typeof _0x2c8160[_0x56062f(0xe0)]!==_0x56062f(0xd6)||Array[_0x56062f(0x149)](_0x2c8160['data']))throw CliErrors[_0x56062f(0x190)](_0x56062f(0x124));return _0x2c8160[_0x56062f(0xe0)];}export const USER_ACCOUNT_BIND_PATH=a103_0x34bfe5(0x18d);export async function bindExternalUserAccount(_0x444262,_0x4bfd31){const _0x394965=a103_0x34bfe5,_0x4da158=await apiRequest(USER_ACCOUNT_BIND_PATH,{'method':_0x394965(0x182),'body':{'provider':_0x444262,'accountId':_0x4bfd31}});return _0x4da158[_0x394965(0xe0)];}function runtimeSchedulePath(_0x54c0be,_0x29d7d2=''){const _0x12d145=a103_0x34bfe5;return _0x12d145(0x13c)+encodeURIComponent(_0x54c0be)+'/schedules'+_0x29d7d2;}export async function validateRuntimeSchedule(_0x4b6f6d,_0x5d38ee){const _0x30d8a7=a103_0x34bfe5,_0x22314b=await apiRequest(runtimeSchedulePath(_0x4b6f6d,_0x30d8a7(0x179)),{'method':_0x30d8a7(0x182),'body':_0x5d38ee});return _0x22314b['data'];}export async function createRuntimeSchedule(_0x297ad5,_0x4f8ce4){const _0x470287=a103_0x34bfe5,_0x53ab95=await apiRequest(runtimeSchedulePath(_0x297ad5),{'method':_0x470287(0x182),'body':_0x4f8ce4});return _0x53ab95['data'];}export async function listRuntimeSchedules(_0x124ae0,_0x38bd33){const _0x346b7b=a103_0x34bfe5,_0x19d638=new URLSearchParams();_0x19d638['set'](_0x346b7b(0x153),_0x38bd33[_0x346b7b(0x153)]);if(_0x38bd33[_0x346b7b(0x119)]!==undefined)_0x19d638[_0x346b7b(0xf1)]('limit',String(_0x38bd33['limit']));if(_0x38bd33[_0x346b7b(0x178)])_0x19d638[_0x346b7b(0xf1)]('cursor',_0x38bd33['cursor']);const _0x4454d6=_0x19d638[_0x346b7b(0x152)]>0x0?'?'+_0x19d638[_0x346b7b(0x175)]():'',_0x507458=await apiRequest(''+runtimeSchedulePath(_0x124ae0)+_0x4454d6);return _0x507458[_0x346b7b(0xe0)];}export async function getRuntimeSchedule(_0x465edf,_0x769629){const _0x4ce2a3=a103_0x34bfe5,_0x58433b=await apiRequest(runtimeSchedulePath(_0x465edf,'/'+encodeURIComponent(_0x769629)));return _0x58433b[_0x4ce2a3(0xe0)];}export async function deleteRuntimeSchedule(_0x312546,_0x594dbd){const _0x20d422=a103_0x34bfe5,_0x3c334a=await apiRequest(runtimeSchedulePath(_0x312546,'/'+encodeURIComponent(_0x594dbd)),{'method':_0x20d422(0x13f)});return _0x3c334a[_0x20d422(0xe0)];}export async function runRuntimeSchedule(_0x3a73d2,_0x3e8f5a){const _0x3e6d35=a103_0x34bfe5,_0x47407a=await apiRequest(runtimeSchedulePath(_0x3a73d2,'/'+encodeURIComponent(_0x3e8f5a)+_0x3e6d35(0x103)),{'method':_0x3e6d35(0x182)});return _0x47407a[_0x3e6d35(0xe0)];}export async function listDatasets(_0x3b3e1c,_0x1f3c0f){const _0x27e388=a103_0x34bfe5,_0x1f7277=await apiRequest('/client/dataset/list',{'method':_0x27e388(0x182),'body':{'appCode':_0x3b3e1c,..._0x1f3c0f?.['code']&&{'code':_0x1f3c0f['code']},..._0x1f3c0f?.['name']&&{'name':_0x1f3c0f[_0x27e388(0xdf)]}}});return extractList(_0x1f7277[_0x27e388(0xe0)]);}export async function getDatasetDetail(_0x148ac8){const _0x42363d=a103_0x34bfe5,_0x137189=await apiRequest(_0x42363d(0x131)+encodeURIComponent(_0x148ac8));return _0x137189[_0x42363d(0xe0)];}export async function getDatasetSdkUsageDoc(_0x17f9c2,_0x182f9a){const _0xb05fd9=a103_0x34bfe5,_0xf3f2cd=await toolboxRequest('api-doc-generator',{'datasetCode':_0x17f9c2,'appCode':_0x182f9a});return typeof _0xf3f2cd?.[_0xb05fd9(0x158)]==='string'?_0xf3f2cd[_0xb05fd9(0x158)]:'';}export async function uploadRuntimeFile(_0x6c1794,_0x394742){const _0x2590fb=a103_0x34bfe5,_0x4b1a59=await readFile(_0x394742),_0x5c9954=new FormData();_0x5c9954[_0x2590fb(0xf5)](_0x2590fb(0x177),_0x6c1794),_0x5c9954[_0x2590fb(0xf5)](_0x2590fb(0x116),new Blob([new Uint8Array(_0x4b1a59)]),basename(_0x394742));const _0x3a4f23=await apiFormRequest(_0x2590fb(0x13e),_0x5c9954);return _0x3a4f23[_0x2590fb(0xe0)];}export async function queryRuntimeFileUrl(_0x4d6f58,_0x5ce7a6={}){const _0x1fba19=a103_0x34bfe5,_0x524270=await apiRequest(_0x1fba19(0x144),{'method':_0x1fba19(0x182),'body':{'filePath':_0x4d6f58,'downloadFlag':_0x5ce7a6[_0x1fba19(0xdb)]??![],..._0x5ce7a6[_0x1fba19(0x145)]?{'longTerm':!![]}:{}}});return _0x524270[_0x1fba19(0xe0)];}function a103_0x394c(){const _0x17b4c1=['Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','505Jzqtrn','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/runtime-bff/personal/list?appCode=','replace','/client/permit/user-role/update-user-list','runtime','/execute?appCode=','/client/permit/page/save','Toolbox\x20error\x20code:\x20',',\x20name=','Configure\x20accessKey\x20in\x20','company','/client/dataset/get-driven-data?code=','8904dfQdFy','headlineVersion','diagramValidated','isJson','skill','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','GET','code','Check\x20your\x20credentials\x20and\x20try\x20again.','SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20','/api/harness/apps/','newConfigFileName','/client/uploadFile','DELETE','status','version','namespace','/api/runtime/v1/namespaces/','/client/queryFileUrl','longTerm','valid','/client/artifact/','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','isArray','functions','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','text','ownerPreviewVersion','/api/node-toolbox/','searchParams','filter','CUSTOM','size','kind','/client/notification/channel-config/list?','visibility','errorCode','join','markdown','signal','errors','test','PUT','permitList','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','/client/runtime-bff/personal/create','min','/client/permit/user-role/get-user-list','38274bCtrDR','tableData','slug','validation','/publish/validate','msg','36891CcgnhM','found','PRIVATE','/client/permit/role/get-list','json','/client/permit/resource/batch-save-menu','warnings','packageBase64','personal','abort','skillCode','url','.zip','toString','SkillHub\x20API\x20error:\x20','appCode','cursor','/validate','invokeSource','example','favorite','Download\x20failed:\x20','scope','summary','currentPage','functionName','POST','all','1PKZVDP','136906hFTLgF','description','tags','resolvedSlug','arrayBuffer','API\x20error\x20code:\x20','Invalid\x20notification\x20config\x20list\x20response.','max','/client/user-accounts/bind','/client/permit/role/get-permit-list','publish','apiError','content','confirmWarnings','4697iNDVsP','headers','object','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/versions/','diagramBound','Missing\x20Skill\x20package\x20payload.','download','/update','message','/client/sql/query','name','data','diagram','roleName','/client/artifact/create','/client/ocr','application/octet-stream','string','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','1730JDsyBz','/diagram','api','/client/knowledge-base/personal/create','/client/app/my-apps','pageSize','/api/cli/v1/skills/','Artifact\x20not\x20found:\x20id=','sqlCode','set','API\x20error:\x20','5189716kyipbM','application/json','append','/download','resolvedVersion','/client/permit/role/update','/client/permit/role/delete','effective','map','from','224HXFLjT','boolean','/client/permit/resource/get-menu-list','authRequired','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','sourceFingerprint','/run','Invalid\x20app\x20config\x20value:\x20key=','undefined','/client/app-config/getByKey?','/client/knowledge-base/personal/list?appCode=','AbortError','errorMsg','SkillHub\x20error\x20code:\x20','/client/bff/endpoint/','values','displayName','1775266XZkEhP','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','skillName','success','source','/client/menu/permit-list','stringify','NAMESPACE_ONLY','file','isInteger','/client/knowledge-base/personal/','limit','Request\x20timeout:\x20','application/zip','error','?appCode=','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','trim','toLowerCase','entries','items','/client/runtime-bff/personal/'];a103_0x394c=function(){return _0x17b4c1;};return a103_0x394c();}export async function recognizeRuntimeOcr(_0x4f9fd6,_0x5a05ea){const _0xfb14fc=a103_0x34bfe5,_0x180707=await apiRequest(_0xfb14fc(0xe4),{'method':_0xfb14fc(0x182),'body':{'appCode':_0x4f9fd6,'url':_0x5a05ea[_0xfb14fc(0x173)],'type':_0x5a05ea['type']}});return _0x180707[_0xfb14fc(0xe0)];}export async function getRuntimeAppConfigByKey(_0x4d4148,_0x171f53){const _0x495555=a103_0x34bfe5,_0x211068=new URLSearchParams({'appCode':_0x4d4148,'key':_0x171f53}),_0x35e437=await apiRequest(_0x495555(0x106)+_0x211068[_0x495555(0x175)]());if(typeof _0x35e437[_0x495555(0xe0)]!==_0x495555(0xe6))throw CliErrors[_0x495555(0x165)](_0x495555(0x104)+_0x171f53);return _0x35e437[_0x495555(0xe0)];}export async function listNotificationChannelConfigs(_0x1d4a5b,_0x1f4b20){const _0x44db16=a103_0x34bfe5,_0x2cd5e0=new URLSearchParams({'appCode':_0x1d4a5b,'channelType':_0x1f4b20}),_0x4c1172=await apiRequest(_0x44db16(0x154)+_0x2cd5e0[_0x44db16(0x175)]());if(!Array['isArray'](_0x4c1172[_0x44db16(0xe0)]))throw CliErrors[_0x44db16(0x190)](_0x44db16(0x18b),'Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.');return _0x4c1172['data'];}export async function listRuntimeArtifacts(_0x6b8273,_0x340d61){const _0x15e011=a103_0x34bfe5,_0x138c2f=new URLSearchParams({'appCode':_0x6b8273});if(_0x340d61?.['artifactType'])_0x138c2f[_0x15e011(0xf1)]('artifactType',_0x340d61['artifactType']);if(_0x340d61?.[_0x15e011(0x112)])_0x138c2f[_0x15e011(0xf1)](_0x15e011(0x112),_0x340d61[_0x15e011(0x112)]);if(_0x340d61?.['favorite']!==undefined)_0x138c2f[_0x15e011(0xf1)](_0x15e011(0x17c),String(_0x340d61[_0x15e011(0x17c)]));const _0xbf0101=await apiRequest('/client/artifact/list?'+_0x138c2f[_0x15e011(0x175)]());return Array[_0x15e011(0x149)](_0xbf0101[_0x15e011(0xe0)])?_0xbf0101['data']:[];}export async function getRuntimeArtifact(_0x49d0e0,_0x4db892){const _0x1616fc=a103_0x34bfe5,_0x382f8c=await apiRequest(_0x1616fc(0x147)+_0x49d0e0+_0x1616fc(0x11d)+encodeURIComponent(_0x4db892));if(!_0x382f8c[_0x1616fc(0xe0)])throw CliErrors[_0x1616fc(0x165)](_0x1616fc(0xef)+_0x49d0e0);return _0x382f8c[_0x1616fc(0xe0)];}export async function createRuntimeArtifact(_0x56fda5,_0x472de8){const _0x48ea9f=a103_0x34bfe5,_0x483a19=await apiRequest(_0x48ea9f(0xe3),{'method':'POST','body':{'appCode':_0x56fda5,..._0x472de8}});return _0x483a19[_0x48ea9f(0xe0)];}export async function updateRuntimeArtifact(_0x7f88b4,_0x4215d4,_0x187e9b){const _0x1798f8=a103_0x34bfe5,_0x37df3b=await apiRequest('/client/artifact/'+_0x7f88b4+_0x1798f8(0xdc),{'method':'POST','body':{'appCode':_0x4215d4,..._0x187e9b}});return _0x37df3b[_0x1798f8(0xe0)];}export async function listPersonalBffs(_0x58f515){const _0x5dc343=a103_0x34bfe5,_0x3b0145=await apiRequest(_0x5dc343(0x127)+encodeURIComponent(_0x58f515));return Array[_0x5dc343(0x149)](_0x3b0145['data'])?_0x3b0145[_0x5dc343(0xe0)]:[];}export async function getPersonalBff(_0x21bc3c,_0x3b0e27){const _0x42725d=a103_0x34bfe5,_0x7b0f37=await apiRequest('/client/runtime-bff/personal/'+_0x21bc3c+'?appCode='+encodeURIComponent(_0x3b0e27));if(!_0x7b0f37['data'])throw CliErrors[_0x42725d(0x165)](_0x42725d(0x14b)+_0x21bc3c);return _0x7b0f37['data'];}export async function createPersonalBff(_0x298cf6,_0x2a5f60){const _0x43d99e=a103_0x34bfe5,_0x337a34=await apiRequest(_0x43d99e(0x15f),{'method':_0x43d99e(0x182),'body':{'appCode':_0x298cf6,..._0x2a5f60}});return _0x337a34['data'];}export async function updatePersonalBff(_0x29d79f,_0x34a788,_0x498a54){const _0xe7166=a103_0x34bfe5,_0x5a90a7=await apiRequest(_0xe7166(0x123)+_0x29d79f+_0xe7166(0xdc),{'method':_0xe7166(0x182),'body':{'appCode':_0x34a788,..._0x498a54}});return _0x5a90a7[_0xe7166(0xe0)];}export async function executePersonalBff(_0x3ea8fa,_0x58a354,_0x809b3f){const _0x234afd=a103_0x34bfe5,_0x157adc=await apiRequest(_0x234afd(0x123)+_0x3ea8fa+_0x234afd(0x12b)+encodeURIComponent(_0x58a354),{'method':_0x234afd(0x182),'body':_0x809b3f});return _0x157adc[_0x234afd(0xe0)];}function a103_0x15d2(_0x456726,_0x5b64cd){_0x456726=_0x456726-0xd5;const _0x394c2b=a103_0x394c();let _0x15d2c0=_0x394c2b[_0x456726];return _0x15d2c0;}export async function listPersonalKnowledgeBaseItems(_0x18a9fd){const _0x336935=a103_0x34bfe5,_0x293b0b=await apiRequest(_0x336935(0x107)+encodeURIComponent(_0x18a9fd));return Array[_0x336935(0x149)](_0x293b0b[_0x336935(0xe0)])?_0x293b0b[_0x336935(0xe0)]:[];}export async function getPersonalKnowledgeBaseItem(_0x519696,_0xe0703c){const _0x11fff9=a103_0x34bfe5,_0x248992=await apiRequest(_0x11fff9(0x118)+_0x519696+'?appCode='+encodeURIComponent(_0xe0703c));if(!_0x248992[_0x11fff9(0xe0)])throw CliErrors[_0x11fff9(0x165)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x519696);return _0x248992[_0x11fff9(0xe0)];}export async function createPersonalKnowledgeBaseItem(_0x142d65,_0x59a82d){const _0x5f575b=a103_0x34bfe5,_0x1bc1e8=await apiRequest(_0x5f575b(0xeb),{'method':_0x5f575b(0x182),'body':{'appCode':_0x142d65,..._0x59a82d}});return _0x1bc1e8['data'];}export async function updatePersonalKnowledgeBaseItem(_0x47f863,_0x1ba06a,_0x52a61c){const _0x25b5db=a103_0x34bfe5,_0x1a1983=await apiRequest(_0x25b5db(0x118)+_0x47f863+_0x25b5db(0xdc),{'method':'POST','body':{'appCode':_0x1ba06a,..._0x52a61c}});return _0x1a1983['data'];}export async function getRuntimeSkillByCode(_0x35e5a0,_0x474056){const _0x238f7d=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x35e5a0)+'/'+encodeURIComponent(_0x474056),{'allowNotFound':!![]});return _0x238f7d?skillHubRuntimeDetailToRuntimeSkill(_0x238f7d):undefined;}export async function listRuntimeSkills(_0x24a9a9){const _0xe79d54=a103_0x34bfe5,_0x146218=await skillHubJsonRequest(_0xe79d54(0x143)+encodeURIComponent(_0x24a9a9[_0xe79d54(0x177)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x24a9a9[_0xe79d54(0x177)],_0x146218,_0x24a9a9[_0xe79d54(0x17e)]??'all',_0x24a9a9[_0xe79d54(0x139)]);}export async function listPersonalRuntimeSkills(_0x49964f){const _0x2c6ba4=a103_0x34bfe5;return(await listRuntimeSkills({'appCode':_0x49964f,'scope':_0x2c6ba4(0x170)}))[_0x2c6ba4(0x170)];}export async function listCompanyRuntimeSkills(_0x275b47){const _0x27ae60=a103_0x34bfe5;return(await listRuntimeSkills({'appCode':_0x275b47,'scope':_0x27ae60(0x130)}))[_0x27ae60(0x130)];}export async function listVisibleRuntimeSkills(_0x3c1c7a){const _0x4172e6=a103_0x34bfe5;return(await listRuntimeSkills({'appCode':_0x3c1c7a,'scope':_0x4172e6(0x183)}))[_0x4172e6(0xfa)];}export async function createPersonalRuntimeSkill(_0x37016b,_0x54c01b,_0x40769d={}){const _0xac3ed9=a103_0x34bfe5;return publishRuntimeSkill(_0x37016b,_0x54c01b,{'visibility':_0xac3ed9(0x16a),'confirmWarnings':_0x40769d[_0xac3ed9(0x192)]});}export async function updatePersonalRuntimeSkill(_0x4be3b0,_0x442245,_0x67265e,_0x21689e={}){const _0x2b2aa4=a103_0x34bfe5;return publishRuntimeSkill(_0x442245,{..._0x67265e,'skillCode':_0x67265e[_0x2b2aa4(0x172)]??_0x4be3b0},{'visibility':'PRIVATE','confirmWarnings':_0x21689e[_0x2b2aa4(0x192)]});}export async function publishCompanyRuntimeSkill(_0x100ac9,_0x3561a7,_0x26a683={}){const _0x166cb1=a103_0x34bfe5;return publishRuntimeSkill(_0x100ac9,_0x3561a7,{'visibility':_0x166cb1(0x115),'confirmWarnings':_0x26a683[_0x166cb1(0x192)]});}export async function validateRuntimeSkillPublish(_0x4c4864,_0x37597a,_0x435172){const _0x511fd0=a103_0x34bfe5,_0x56db45=buildRuntimeSkillPublishForm(_0x37597a,_0x435172['visibility']),_0x1bece3=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4c4864)+_0x511fd0(0x166),{'method':'POST','body':_0x56db45});return assertJointDiagramAcknowledged(_0x37597a[_0x511fd0(0xe1)],_0x1bece3[_0x511fd0(0x134)],_0x511fd0(0x165)),{'valid':_0x1bece3[_0x511fd0(0x146)]===!![],'errors':Array['isArray'](_0x1bece3[_0x511fd0(0x15a)])?_0x1bece3[_0x511fd0(0x15a)]:[],'warnings':Array[_0x511fd0(0x149)](_0x1bece3['warnings'])?_0x1bece3[_0x511fd0(0x16e)]:[],'resolvedSlug':_0x1bece3[_0x511fd0(0x188)],'resolvedVersion':_0x1bece3[_0x511fd0(0xf7)],'diagramValidated':_0x1bece3[_0x511fd0(0x134)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x4bf2df,_0x107499,_0x140b2f,_0x1bd2ba,_0x5b925c){const _0x4bb162=a103_0x34bfe5;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x4bf2df,_0x107499,_0x140b2f,_0x4bb162(0x179)),{'method':_0x4bb162(0x182),'query':{'scope':_0x1bd2ba},'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x5b925c)});}export async function putRuntimeSkillVersionDiagram(_0x422b17,_0x273e6d,_0x592c01,_0x3d76bf,_0x5b2c8e){const _0x41ca03=a103_0x34bfe5;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x422b17,_0x273e6d,_0x592c01),{'method':_0x41ca03(0x15c),'query':{'scope':_0x3d76bf},'headers':{'Content-Type':'application/json'},'body':JSON[_0x41ca03(0x114)](_0x5b2c8e)});}export async function getRuntimeSkillVersionDiagram(_0x5bcd07,_0xf3baa4,_0x3bd12d,_0x2f9b28){const _0x2eb3b3=a103_0x34bfe5,_0x3df5df=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x5bcd07,_0xf3baa4,_0x3bd12d),{'query':{'scope':_0x2f9b28}});if(typeof _0x3df5df[_0x2eb3b3(0x169)]!==_0x2eb3b3(0xfe))throw CliErrors[_0x2eb3b3(0x190)](_0x2eb3b3(0x148));const _0x248cc5=_0x3df5df[_0x2eb3b3(0x102)];if(typeof _0x248cc5!==_0x2eb3b3(0xe6)||!/^sha256:[0-9a-f]{64}$/[_0x2eb3b3(0x15b)](_0x248cc5))throw CliErrors[_0x2eb3b3(0x190)](_0x2eb3b3(0x11e),_0x2eb3b3(0x137));const _0x208f79=_0x3df5df['diagramRevision'];if(_0x3df5df[_0x2eb3b3(0x169)]&&(!Number[_0x2eb3b3(0x117)](_0x208f79)||Number(_0x208f79)<0x1))throw CliErrors['apiError'](_0x2eb3b3(0xe7));if(!_0x3df5df['found']&&_0x208f79!==undefined&&_0x208f79!==null)throw CliErrors[_0x2eb3b3(0x190)](_0x2eb3b3(0x15e));const _0x163b3b=_0x3df5df['found']?Number(_0x208f79):null;return{..._0x3df5df,'sourceFingerprint':_0x248cc5,'diagramRevision':_0x163b3b,'expectedDiagramRevision':_0x163b3b??0x0};}export async function downloadRuntimeSkillPackage(_0x36975d,_0x448a2e,_0x37b365,_0x270026){const _0x3717a0=a103_0x34bfe5;void _0x36975d;const _0x5e4ab8=_0x270026?_0x3717a0(0xee)+encodeURIComponent(_0x37b365)+'/'+encodeURIComponent(_0x448a2e)+_0x3717a0(0xd8)+encodeURIComponent(_0x270026)+_0x3717a0(0xf6):_0x3717a0(0xee)+encodeURIComponent(_0x37b365)+'/'+encodeURIComponent(_0x448a2e)+_0x3717a0(0xf6);return skillHubBinaryRequest(_0x5e4ab8);}async function publishRuntimeSkill(_0x2b0c4f,_0x59c311,_0x22bfe8){const _0x248ff1=a103_0x34bfe5,_0x35e7d5=buildRuntimeSkillPublishForm(_0x59c311,_0x22bfe8[_0x248ff1(0x155)]),_0x397865=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2b0c4f)+'/publish',{'method':'POST','query':{'confirmWarnings':_0x22bfe8[_0x248ff1(0x192)]===!![]?!![]:undefined},'body':_0x35e7d5});return assertJointDiagramAcknowledged(_0x59c311[_0x248ff1(0xe1)],_0x397865['diagramBound'],_0x248ff1(0x18f)),{'appCode':_0x397865[_0x248ff1(0x142)]??_0x2b0c4f,'skillCode':_0x397865[_0x248ff1(0x164)]??_0x59c311[_0x248ff1(0x172)]??'','skillName':_0x59c311['skillName']??_0x397865[_0x248ff1(0x164)]??_0x59c311[_0x248ff1(0x172)],'description':_0x59c311[_0x248ff1(0x186)],'scope':skillHubVisibilityToScope(_0x397865[_0x248ff1(0x155)]??_0x22bfe8[_0x248ff1(0x155)])??_0x248ff1(0x170),'version':_0x397865[_0x248ff1(0x141)]??_0x59c311[_0x248ff1(0x141)],'tags':_0x59c311[_0x248ff1(0x187)],'content':_0x59c311[_0x248ff1(0x191)],'diagramBound':_0x397865[_0x248ff1(0xd9)]===!![]};}function assertJointDiagramAcknowledged(_0x248e6b,_0x4f52c0,_0x284499){const _0x4d18a1=a103_0x34bfe5;if(!_0x248e6b||_0x4f52c0===!![])return;throw CliErrors[_0x4d18a1(0x190)](_0x4d18a1(0x13b)+_0x284499+'.','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.');}function buildRuntimeSkillPublishForm(_0x82c80d,_0x4522fc){const _0x1eaaf7=a103_0x34bfe5,_0x2cd706=new FormData();return _0x2cd706[_0x1eaaf7(0xf1)](_0x1eaaf7(0x116),runtimeSkillPackageFile(_0x82c80d)),_0x82c80d[_0x1eaaf7(0x110)]?.[_0x1eaaf7(0x11f)]()&&_0x2cd706[_0x1eaaf7(0xf1)]('displayName',_0x82c80d[_0x1eaaf7(0x110)][_0x1eaaf7(0x11f)]()),_0x2cd706[_0x1eaaf7(0xf1)](_0x1eaaf7(0x155),_0x4522fc),_0x82c80d[_0x1eaaf7(0xe1)]&&_0x2cd706[_0x1eaaf7(0xf1)](_0x1eaaf7(0xe1),new Blob([JSON[_0x1eaaf7(0x114)](_0x82c80d['diagram'])],{'type':'application/json'})),_0x2cd706;}function runtimeSkillVersionDiagramPath(_0x10b8c3,_0x3df00d,_0x4f5613,_0x17f89b=''){const _0x523512=a103_0x34bfe5;return'/api/cli/v1/skills/'+encodeURIComponent(_0x10b8c3)+'/'+encodeURIComponent(_0x3df00d)+_0x523512(0xd8)+encodeURIComponent(_0x4f5613)+_0x523512(0xe9)+_0x17f89b;}function runtimeSkillPackageFile(_0x330158){const _0x52c0e2=a103_0x34bfe5;if(!_0x330158[_0x52c0e2(0x16f)])throw CliErrors[_0x52c0e2(0x165)](_0x52c0e2(0xda));const _0xc3932f=Buffer['from'](_0x330158[_0x52c0e2(0x16f)],'base64'),_0x1040e7=new Blob([_0xc3932f],{'type':_0x52c0e2(0x11b)}),_0x1a9c48=(_0x330158[_0x52c0e2(0x172)]||_0x52c0e2(0x136))+_0x52c0e2(0x174);if(typeof File!==_0x52c0e2(0x105))return new File([_0x1040e7],_0x1a9c48,{'type':_0x52c0e2(0x11b)});return _0x1040e7;}function normalizeSkillHubRuntimeListResponse(_0x3c0df4,_0x4840a1,_0x53ac7b,_0x16ed07){const _0x5af1b9=a103_0x34bfe5,_0x52e212=Array[_0x5af1b9(0x149)](_0x4840a1)?_0x4840a1:Array[_0x5af1b9(0x149)](_0x4840a1?.[_0x5af1b9(0x122)])?_0x4840a1[_0x5af1b9(0x122)]:[],_0x56308e=_0x16ed07?.[_0x5af1b9(0x11f)](),_0x22ad85=_0x52e212['filter'](_0x509616=>!_0x56308e||_0x509616[_0x5af1b9(0x164)]===_0x56308e)[_0x5af1b9(0xfb)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x48f829=>Boolean(_0x48f829)),_0x53208a=_0x22ad85['filter'](_0x2b52db=>_0x2b52db[_0x5af1b9(0x17e)]===_0x5af1b9(0x170)),_0x373c59=_0x22ad85['filter'](_0x321918=>_0x321918['scope']===_0x5af1b9(0x130));return{'appCode':_0x3c0df4,'personal':_0x53ac7b==='company'?[]:_0x53208a,'company':_0x53ac7b===_0x5af1b9(0x170)?[]:_0x373c59,'effective':buildEffectiveRuntimeSkills(_0x53208a,_0x373c59,_0x53ac7b)};}function skillHubRuntimeItemToRuntimeSkill(_0x3760a0){const _0x530f9b=a103_0x34bfe5,_0x2e8d56=_0x3760a0['slug']?.[_0x530f9b(0x11f)](),_0x45b047=skillHubVisibilityToScope(_0x3760a0['visibility']);if(!_0x2e8d56||!_0x45b047)return undefined;return{'id':_0x3760a0['id'],'appCode':_0x3760a0[_0x530f9b(0x142)],'skillCode':_0x2e8d56,'skillName':_0x3760a0['displayName']??_0x2e8d56,'description':_0x3760a0[_0x530f9b(0x17f)],'example':_0x3760a0[_0x530f9b(0x17b)],'scope':_0x45b047,'version':skillHubRuntimeItemVersion(_0x3760a0),'status':_0x3760a0['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x501121){const _0x294e9e=a103_0x34bfe5,_0x1431de=_0x501121[_0x294e9e(0x164)]?.['trim']();if(!_0x1431de)return undefined;return{'id':_0x501121['id'],'appCode':_0x501121['namespace'],'skillCode':_0x1431de,'skillName':_0x501121[_0x294e9e(0x10d)]??_0x1431de,'description':_0x501121[_0x294e9e(0x17f)],'example':_0x501121[_0x294e9e(0x17b)],'scope':skillHubVisibilityToScope(_0x501121['visibility'])??_0x501121[_0x294e9e(0x155)]?.[_0x294e9e(0x120)](),'version':skillHubRuntimeItemVersion(_0x501121),'status':_0x501121[_0x294e9e(0x140)]};}function skillHubVisibilityToScope(_0x3f2a56){const _0x14f4e8=a103_0x34bfe5;if(_0x3f2a56===_0x14f4e8(0x16a))return _0x14f4e8(0x170);if(_0x3f2a56===_0x14f4e8(0x115))return _0x14f4e8(0x130);return undefined;}function skillHubRuntimeItemVersion(_0x36687b){const _0x3b98f7=a103_0x34bfe5;return _0x36687b['publishedVersion']?.['version']??_0x36687b[_0x3b98f7(0x133)]?.['version']??_0x36687b[_0x3b98f7(0x14d)]?.['version'];}function buildEffectiveRuntimeSkills(_0x20a727,_0x219285,_0x471071){const _0x270caa=a103_0x34bfe5;if(_0x471071===_0x270caa(0x170))return _0x20a727;if(_0x471071===_0x270caa(0x130))return _0x219285;const _0x2cca98=new Map();for(const _0x1bdd34 of _0x219285){_0x2cca98['set'](_0x1bdd34[_0x270caa(0x172)],_0x1bdd34);}for(const _0x4661d3 of _0x20a727){_0x2cca98[_0x270caa(0xf1)](_0x4661d3[_0x270caa(0x172)],_0x4661d3);}return Array[_0x270caa(0xfc)](_0x2cca98[_0x270caa(0x10c)]());}function normalizeRuntimeSkillListResponse(_0x4d521c,_0x270332){const _0x2c2168=a103_0x34bfe5;if(Array[_0x2c2168(0x149)](_0x270332)){const _0x15feef=_0x270332[_0x2c2168(0x150)](_0x1a6d43=>_0x1a6d43[_0x2c2168(0x17e)]==='personal'),_0x3b193f=_0x270332[_0x2c2168(0x150)](_0x4cca03=>_0x4cca03[_0x2c2168(0x17e)]==='company');return{'appCode':_0x4d521c,'personal':_0x15feef,'company':_0x3b193f,'effective':[..._0x3b193f,..._0x15feef]};}return{'appCode':_0x270332?.['appCode']??_0x4d521c,'personal':Array['isArray'](_0x270332?.[_0x2c2168(0x170)])?_0x270332[_0x2c2168(0x170)]:[],'company':Array['isArray'](_0x270332?.[_0x2c2168(0x130)])?_0x270332[_0x2c2168(0x130)]:[],'effective':Array[_0x2c2168(0x149)](_0x270332?.[_0x2c2168(0xfa)])?_0x270332[_0x2c2168(0xfa)]:[]};}export async function listRuntimeAppRoles(_0x7bb50d,_0x1b3084={}){const _0x3415e0=a103_0x34bfe5,_0x4baeb2=_0x1b3084[_0x3415e0(0x180)]??0x1,_0x229cdc=Math[_0x3415e0(0x160)](Math[_0x3415e0(0x18c)](_0x1b3084[_0x3415e0(0xed)]??0x64,0x1),0x64),_0x1082ef=await apiRequest(_0x3415e0(0x16b),{'method':'POST','body':{'appCode':_0x7bb50d,..._0x1b3084[_0x3415e0(0xe2)]?{'roleName':_0x1b3084[_0x3415e0(0xe2)]}:{},'currentPage':_0x4baeb2,'pageSize':_0x229cdc}});return{'items':extractList(_0x1082ef['data']),'paging':extractPaging(_0x1082ef[_0x3415e0(0xe0)])};}export async function createRuntimeAppRole(_0x133eb3){const _0x821d82=a103_0x34bfe5,_0x215e50=await apiRequest('/client/permit/role/create',{'method':'POST','body':{'roleType':_0x821d82(0x151),..._0x133eb3}});return _0x215e50[_0x821d82(0xe0)];}export async function updateRuntimeAppRole(_0x3aff08){const _0x105611=a103_0x34bfe5,_0xcf2d63=await apiRequest(_0x105611(0xf8),{'method':_0x105611(0x182),'body':_0x3aff08});return _0xcf2d63[_0x105611(0xe0)];}export async function deleteRuntimeAppRole(_0x60f0d1){const _0x1a071f=a103_0x34bfe5,_0x264030=await apiRequest(_0x1a071f(0xf9),{'method':'POST','body':{'id':_0x60f0d1}});return _0x264030['data'];}export async function listRuntimeRoleUsers(_0x26ed04){const _0x1b8193=a103_0x34bfe5,_0x133a51=await apiRequest(_0x1b8193(0x161),{'method':'POST','body':{'appCode':_0x26ed04}});return extractList(_0x133a51[_0x1b8193(0xe0)]);}export async function updateRuntimeRoleUsers(_0x14b9b1,_0x28970e){const _0x3a66ff=a103_0x34bfe5,_0x527c74=await apiRequest(_0x3a66ff(0x129),{'method':_0x3a66ff(0x182),'body':{'appCode':_0x14b9b1,'roleList':_0x28970e}});return _0x527c74[_0x3a66ff(0xe0)];}export async function listRuntimeAppUsers(_0x619550){const _0x44378e=await apiRequest('/client/dept/queryAppUser'+runtimePermitQuery({'appCode':_0x619550}));return extractList(_0x44378e['data']);}function runtimePermitQuery(_0x49e99c){const _0x9f840a=a103_0x34bfe5,_0xe8233=new URLSearchParams();for(const [_0x124e48,_0x586f03]of Object[_0x9f840a(0x121)](_0x49e99c))_0xe8233[_0x9f840a(0xf1)](_0x124e48,String(_0x586f03));return'?'+_0xe8233[_0x9f840a(0x175)]();}export async function listRuntimePermitRoles(_0xd881fc,_0x18a2af={}){const _0x26d9ac=a103_0x34bfe5,_0x286d5a=await apiRequest(_0x26d9ac(0x18e),{'method':_0x26d9ac(0x182),'body':{'appCode':_0xd881fc,..._0x18a2af}});return extractList(_0x286d5a['data']);}export async function getRuntimePagePermit(_0x4ad6e5){const _0x5a30b1=a103_0x34bfe5,_0x911a7a=await apiRequest('/client/permit/page/get-one'+runtimePermitQuery({'menuId':_0x4ad6e5}));return _0x911a7a[_0x5a30b1(0xe0)];}export async function saveRuntimePagePermit(_0x95ff01){const _0x3b9003=a103_0x34bfe5,_0x5f4587=await apiRequest(_0x3b9003(0x12c),{'method':_0x3b9003(0x182),'body':_0x95ff01});return _0x5f4587['data'];}export async function getRuntimeRoleMenuResources(_0x36bf37,_0x6708b7){const _0x3967bb=a103_0x34bfe5,_0x1c21f5=await apiRequest(_0x3967bb(0xff),{'method':_0x3967bb(0x182),'body':{'appCode':_0x36bf37,'roleId':_0x6708b7}});return extractList(_0x1c21f5[_0x3967bb(0xe0)]);}export async function listRuntimeMenuRolePermits(_0x1f535c){const _0x2119a6=a103_0x34bfe5,_0xaeeb80=await apiRequest(_0x2119a6(0x113)+runtimePermitQuery({'appCode':_0x1f535c}));return Array[_0x2119a6(0x149)](_0xaeeb80['data']?.[_0x2119a6(0x15d)])?_0xaeeb80['data'][_0x2119a6(0x15d)]:[];}export async function saveRuntimeMenuRolePermits(_0x3c244a,_0x5d5069){const _0x566325=a103_0x34bfe5,_0xbe32d4=await apiRequest(_0x566325(0x16d),{'method':_0x566325(0x182),'body':{'appCode':_0x3c244a,'permitList':_0x5d5069}});return _0xbe32d4[_0x566325(0xe0)];}export async function listRuntimeDatasetPermits(_0x218f4a,_0x565cb9){const _0x4c33ea=a103_0x34bfe5,_0x25b1f8=await apiRequest('/client/permit/dataset/list'+runtimePermitQuery({'appCode':_0x218f4a,'roleId':_0x565cb9}));return Array[_0x4c33ea(0x149)](_0x25b1f8[_0x4c33ea(0xe0)]?.[_0x4c33ea(0x15d)])?_0x25b1f8[_0x4c33ea(0xe0)]['permitList']:[];}export async function listRuntimeDatasetRolePermits(_0x2e59dc){const _0x2e1869=a103_0x34bfe5,_0x513d99=await apiRequest('/client/permit/dataset/permit-list'+runtimePermitQuery({'appCode':_0x2e59dc}));return Array[_0x2e1869(0x149)](_0x513d99[_0x2e1869(0xe0)]?.[_0x2e1869(0x15d)])?_0x513d99[_0x2e1869(0xe0)][_0x2e1869(0x15d)]:[];}export async function saveRuntimeDatasetRolePermits(_0x4ddb8c,_0x174d73){const _0x2c807b=a103_0x34bfe5,_0x278ce7=await apiRequest('/client/permit/resource/batch-save-dataset',{'method':_0x2c807b(0x182),'body':{'appCode':_0x4ddb8c,'permitList':_0x174d73}});return _0x278ce7[_0x2c807b(0xe0)];}
1
+ (function(_0xb21472,_0x221f80){const _0x4d4832=a103_0x114a,_0x3d78d1=_0xb21472();while(!![]){try{const _0x2e3847=-parseInt(_0x4d4832(0x131))/0x1+parseInt(_0x4d4832(0x138))/0x2*(-parseInt(_0x4d4832(0xae))/0x3)+-parseInt(_0x4d4832(0x159))/0x4*(parseInt(_0x4d4832(0x161))/0x5)+parseInt(_0x4d4832(0xd9))/0x6+parseInt(_0x4d4832(0xea))/0x7+-parseInt(_0x4d4832(0xd7))/0x8+-parseInt(_0x4d4832(0x141))/0x9*(-parseInt(_0x4d4832(0xc0))/0xa);if(_0x2e3847===_0x221f80)break;else _0x3d78d1['push'](_0x3d78d1['shift']());}catch(_0x2cee1e){_0x3d78d1['push'](_0x3d78d1['shift']());}}}(a103_0x55e4,0xc61ef));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x5bb0c6){_activeAK=_0x5bb0c6||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x55e7f8){const _0x40f2c7=a103_0x114a;for(const _0x4c2e43 of _0x55e7f8){if(typeof _0x4c2e43==='string'&&_0x4c2e43[_0x40f2c7(0x120)]())return _0x4c2e43[_0x40f2c7(0x120)]();}return undefined;}async function decodeResponseBody(_0xd16730){const _0x3b4714=a103_0x114a;if(typeof _0xd16730['text']===_0x3b4714(0xfc))try{const _0xdc5761=await _0xd16730[_0x3b4714(0x11a)]();try{return{'isJson':!![],'data':parseLosslessJson(_0xdc5761),'text':_0xdc5761};}catch{return{'isJson':![],'text':_0xdc5761[_0x3b4714(0x120)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0xd16730['json']()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x41ccb5,_0x3034cd,_0x8a053f){const _0x4aa952=a103_0x114a,_0x10b58d=_0x3034cd&&typeof _0x3034cd==='object'?_0x3034cd:{},_0x3de21b=[_0x10b58d[_0x4aa952(0xad)],_0x10b58d[_0x4aa952(0x10e)]][_0x4aa952(0x109)](_0x261732=>Number(_0x261732)===0x1ad),_0x3f633d=createRateLimitError({'status':_0x41ccb5[_0x4aa952(0xad)]===0x1ad?_0x41ccb5[_0x4aa952(0xad)]:_0x3de21b??_0x41ccb5['status'],'errorCode':firstString(_0x10b58d[_0x4aa952(0x146)],typeof _0x10b58d[_0x4aa952(0x10e)]===_0x4aa952(0xd1)?_0x10b58d[_0x4aa952(0x10e)]:undefined),'message':firstString(_0x10b58d[_0x4aa952(0xf9)],_0x10b58d[_0x4aa952(0x152)],_0x10b58d[_0x4aa952(0x135)],_0x8a053f),'retryAfter':readRetryAfter(_0x41ccb5[_0x4aa952(0xf5)])??readRetryAfterSeconds(_0x3034cd)});if(_0x3f633d)throw _0x3f633d;}async function apiRequest(_0x4185c1,_0x81348b={}){const _0x528e7c=a103_0x114a,{method:method=_0x528e7c(0xe2),body:_0x8a6e03,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x528e7c(0x10a)}=_0x81348b,_0x1a95f8=_activeAK,_0x177d26=domain==='api'?getApiDomain():getRuntimeDomain();if(!_0x1a95f8)throw CliErrors[_0x528e7c(0x112)](_0x528e7c(0x130)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4b0845=''+_0x177d26+_0x4185c1,_0x3ccb3c={'X-User-AK':_0x1a95f8},_0x30a936=new AbortController(),_0x14242c=setTimeout(()=>_0x30a936[_0x528e7c(0x14a)](),timeout);try{const _0x2bd75e=await fetch(_0x4b0845,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x528e7c(0x118)],..._0x3ccb3c,...headers},'body':_0x8a6e03?JSON[_0x528e7c(0x13a)](_0x8a6e03):undefined,'signal':_0x30a936[_0x528e7c(0xdd)]}),_0x15b771=await decodeResponseBody(_0x2bd75e);if(!_0x15b771[_0x528e7c(0x114)]){throwIfRateLimited(_0x2bd75e,undefined,_0x15b771[_0x528e7c(0x11a)]);throw CliErrors[_0x528e7c(0xdf)](_0x528e7c(0x10c)+_0x2bd75e[_0x528e7c(0xad)]+')',_0x2bd75e[_0x528e7c(0xad)]>=0x190?_0x528e7c(0xd0):undefined);}const _0x44daeb=_0x15b771[_0x528e7c(0x14e)];throwIfRateLimited(_0x2bd75e,_0x44daeb);if(!_0x2bd75e['ok']||_0x44daeb[_0x528e7c(0xc4)]===![])throw CliErrors[_0x528e7c(0xdf)](_0x44daeb[_0x528e7c(0xf9)]||_0x44daeb[_0x528e7c(0x152)]||_0x528e7c(0xf7)+_0x2bd75e['status'],_0x44daeb[_0x528e7c(0x146)]?_0x528e7c(0xfb)+_0x44daeb[_0x528e7c(0x146)]:undefined);return _0x44daeb;}catch(_0x18f166){if(_0x18f166 instanceof Error&&_0x18f166[_0x528e7c(0x154)]===_0x528e7c(0x10d))throw CliErrors[_0x528e7c(0xdf)](_0x528e7c(0xcb)+_0x4b0845);throw _0x18f166;}finally{clearTimeout(_0x14242c);}}async function apiBinaryRequest(_0x281424,_0x4d4729={}){const _0x89ee89=a103_0x114a,{method:method=_0x89ee89(0xe2),headers:headers={},timeout:timeout=0x7530}=_0x4d4729,_0x5a681b=_activeAK,_0x2572c0=getRuntimeDomain();if(!_0x5a681b)throw CliErrors[_0x89ee89(0x112)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x89ee89(0xb1)]+'.');const _0x2056c7=''+_0x2572c0+_0x281424,_0x5eb734=new AbortController(),_0x8a5ae3=setTimeout(()=>_0x5eb734['abort'](),timeout);try{const _0x253766=await fetch(_0x2056c7,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x89ee89(0x118)],'X-User-AK':_0x5a681b,...headers},'signal':_0x5eb734[_0x89ee89(0xdd)]});if(!_0x253766['ok']){const _0x56baa4=await decodeResponseBody(_0x253766),_0x2d5c9a=_0x56baa4[_0x89ee89(0x14e)]&&typeof _0x56baa4[_0x89ee89(0x14e)]===_0x89ee89(0x132)?_0x56baa4[_0x89ee89(0x14e)]:{},_0x2999bb=firstString(_0x2d5c9a[_0x89ee89(0xf9)],_0x2d5c9a[_0x89ee89(0x152)],_0x2d5c9a[_0x89ee89(0x146)],_0x56baa4['text']);throwIfRateLimited(_0x253766,_0x56baa4[_0x89ee89(0x14e)],_0x2999bb);throw CliErrors['apiError'](_0x2999bb||_0x89ee89(0xf7)+_0x253766[_0x89ee89(0xad)],_0x89ee89(0xdb)+_0x2056c7);}return Buffer[_0x89ee89(0xd3)](await _0x253766[_0x89ee89(0xd2)]());}catch(_0x11e472){if(_0x11e472 instanceof Error&&_0x11e472[_0x89ee89(0x154)]===_0x89ee89(0x10d))throw CliErrors[_0x89ee89(0xdf)](_0x89ee89(0xcb)+_0x2056c7);throw _0x11e472;}finally{clearTimeout(_0x8a5ae3);}}async function apiFormRequest(_0x1938e0,_0x505e2a,_0x4601c3={}){const _0x368cd7=a103_0x114a,{timeout:timeout=0x7530}=_0x4601c3,_0x577769=_activeAK,_0x2f2a5b=getRuntimeDomain();if(!_0x577769)throw CliErrors['authRequired'](_0x368cd7(0x130)+PRODUCT_CONFIG[_0x368cd7(0xb1)]+'.');const _0x336a80=''+_0x2f2a5b+_0x1938e0,_0x4d5e45=new AbortController(),_0x5a1cb9=setTimeout(()=>_0x4d5e45['abort'](),timeout);try{const _0x394cd8=await fetch(_0x336a80,{'method':_0x368cd7(0xe6),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x577769},'body':_0x505e2a,'signal':_0x4d5e45[_0x368cd7(0xdd)]}),_0x33a4d4=await decodeResponseBody(_0x394cd8);if(!_0x33a4d4[_0x368cd7(0x114)]){throwIfRateLimited(_0x394cd8,undefined,_0x33a4d4[_0x368cd7(0x11a)]);throw CliErrors[_0x368cd7(0xdf)](_0x368cd7(0x10c)+_0x394cd8[_0x368cd7(0xad)]+')',_0x394cd8[_0x368cd7(0xad)]>=0x190?_0x368cd7(0xd0):undefined);}const _0x5305ca=_0x33a4d4[_0x368cd7(0x14e)];throwIfRateLimited(_0x394cd8,_0x5305ca);if(!_0x394cd8['ok']||_0x5305ca[_0x368cd7(0xc4)]===![])throw CliErrors['apiError'](_0x5305ca['errorMsg']||_0x5305ca[_0x368cd7(0x152)]||_0x368cd7(0xf7)+_0x394cd8[_0x368cd7(0xad)],_0x5305ca[_0x368cd7(0x146)]?_0x368cd7(0xfb)+_0x5305ca[_0x368cd7(0x146)]:undefined);return _0x5305ca;}catch(_0x30e315){if(_0x30e315 instanceof Error&&_0x30e315[_0x368cd7(0x154)]===_0x368cd7(0x10d))throw CliErrors[_0x368cd7(0xdf)](_0x368cd7(0xcb)+_0x336a80);throw _0x30e315;}finally{clearTimeout(_0x5a1cb9);}}async function toolboxRequest(_0x145fce,_0x5ade31,_0x5b8656={}){const _0x2db4c5=a103_0x114a,{method:method=_0x2db4c5(0xe2),headers:headers={},timeout:timeout=0x7530}=_0x5b8656,_0x82be0a=_activeAK;if(!_0x82be0a)throw CliErrors['authRequired'](_0x2db4c5(0x130)+PRODUCT_CONFIG[_0x2db4c5(0xb1)]+'.');const _0x1030d3=getApiDomain()[_0x2db4c5(0x12e)](/\/$/,''),_0x5aef9b=new URL(_0x145fce,_0x1030d3+_0x2db4c5(0xc5));if(_0x5ade31)for(const [_0x36553f,_0x55c35c]of Object[_0x2db4c5(0x140)](_0x5ade31)){_0x55c35c!==undefined&&_0x55c35c!==null&&_0x5aef9b[_0x2db4c5(0x148)]['set'](_0x36553f,String(_0x55c35c));}const _0x83ebc7=new AbortController(),_0x443f5c=setTimeout(()=>_0x83ebc7[_0x2db4c5(0x14a)](),timeout);try{const _0x12f7c6=await fetch(_0x5aef9b,{'method':method,'headers':{'Content-Type':_0x2db4c5(0xf8),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x82be0a,...headers},'signal':_0x83ebc7[_0x2db4c5(0xdd)]}),_0x2f4172=await decodeResponseBody(_0x12f7c6);if(!_0x2f4172[_0x2db4c5(0x114)]){throwIfRateLimited(_0x12f7c6,undefined,_0x2f4172[_0x2db4c5(0x11a)]);throw CliErrors[_0x2db4c5(0xdf)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x12f7c6[_0x2db4c5(0xad)]+')',_0x12f7c6[_0x2db4c5(0xad)]>=0x190?_0x2db4c5(0xd0):undefined);}const _0x2abe69=_0x2f4172['data'];throwIfRateLimited(_0x12f7c6,_0x2abe69);if(!_0x12f7c6['ok']){const _0x499c79=_0x2abe69&&typeof _0x2abe69===_0x2db4c5(0x132)?_0x2abe69:{};throw CliErrors[_0x2db4c5(0xdf)](_0x499c79[_0x2db4c5(0xf9)]||_0x499c79[_0x2db4c5(0x152)]||_0x2db4c5(0x105)+_0x12f7c6[_0x2db4c5(0xad)],_0x499c79[_0x2db4c5(0x146)]?'Toolbox\x20error\x20code:\x20'+_0x499c79[_0x2db4c5(0x146)]:undefined);}if(_0x2abe69&&typeof _0x2abe69===_0x2db4c5(0x132)&&'success'in _0x2abe69&&typeof _0x2abe69[_0x2db4c5(0xc4)]===_0x2db4c5(0x162)){const _0x1c8aff=_0x2abe69;if(!_0x1c8aff[_0x2db4c5(0xc4)])throw CliErrors['apiError'](_0x1c8aff['errorMsg']||_0x1c8aff[_0x2db4c5(0x152)]||_0x2db4c5(0x158),_0x1c8aff[_0x2db4c5(0x146)]?'Toolbox\x20error\x20code:\x20'+_0x1c8aff['errorCode']:undefined);return _0x1c8aff[_0x2db4c5(0x14e)];}return _0x2abe69;}catch(_0xb6675e){if(_0xb6675e instanceof Error&&_0xb6675e['name']===_0x2db4c5(0x10d))throw CliErrors[_0x2db4c5(0xdf)](_0x2db4c5(0xcb)+_0x5aef9b[_0x2db4c5(0x143)]());throw _0xb6675e;}finally{clearTimeout(_0x443f5c);}}async function skillHubJsonRequest(_0x40f3c8,_0x206e0e={}){const _0x184549=a103_0x114a,{method:method='GET',query:_0x4992e0,body:_0x35b753,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x206e0e,_0x541089=_activeAK;if(!_0x541089)throw CliErrors[_0x184549(0x112)](_0x184549(0x130)+PRODUCT_CONFIG[_0x184549(0xb1)]+'.');const _0x584589=getSkillDomain()['replace'](/\/$/,''),_0x250101=new URL(_0x40f3c8,_0x584589+'/');if(_0x4992e0)for(const [_0x561606,_0x10161f]of Object[_0x184549(0x140)](_0x4992e0)){_0x10161f!==undefined&&_0x10161f!==null&&_0x250101[_0x184549(0x148)][_0x184549(0x14d)](_0x561606,String(_0x10161f));}const _0x85a245=new AbortController(),_0x174b33=setTimeout(()=>_0x85a245[_0x184549(0x14a)](),timeout);try{const _0x198c91=await fetch(_0x250101[_0x184549(0x143)](),{'method':method,'headers':{'Accept':_0x184549(0xf8),'X-Invoke-Source':PRODUCT_CONFIG[_0x184549(0x118)],'X-User-AK':_0x541089,...headers},'body':_0x35b753,'signal':_0x85a245[_0x184549(0xdd)]}),_0xbca95c=await decodeResponseBody(_0x198c91);if(!_0xbca95c[_0x184549(0x114)]){if(allowNotFound&&_0x198c91[_0x184549(0xad)]===0x194)return undefined;throwIfRateLimited(_0x198c91,undefined,_0xbca95c[_0x184549(0x11a)]);throw CliErrors[_0x184549(0xdf)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x198c91[_0x184549(0xad)]+')',_0x198c91['status']>=0x190?_0x184549(0xd0):undefined);}const _0x41d336=_0xbca95c[_0x184549(0x14e)];throwIfRateLimited(_0x198c91,_0x41d336);if(allowNotFound&&isSkillHubNotFoundResponse(_0x198c91[_0x184549(0xad)],_0x41d336))return undefined;const _0x4830f3=!_0x198c91['ok']||_0x41d336?.[_0x184549(0xc4)]===![]||typeof _0x41d336?.[_0x184549(0x10e)]===_0x184549(0xda)&&_0x41d336[_0x184549(0x10e)]>=0x190;if(_0x4830f3)throw CliErrors[_0x184549(0xdf)](_0x41d336?.[_0x184549(0xf9)]||_0x41d336?.[_0x184549(0x152)]||_0x41d336?.[_0x184549(0x135)]||_0x184549(0xeb)+_0x198c91[_0x184549(0xad)],_0x41d336?.['errorCode']?_0x184549(0xba)+_0x41d336['errorCode']:undefined);return _0x41d336?.[_0x184549(0x14e)]??_0x41d336;}catch(_0x205b0f){if(_0x205b0f instanceof Error&&_0x205b0f['name']==='AbortError')throw CliErrors[_0x184549(0xdf)]('Request\x20timeout:\x20'+_0x250101['toString']());throw _0x205b0f;}finally{clearTimeout(_0x174b33);}}function isSkillHubNotFoundResponse(_0x3e96d8,_0x3e53d4){const _0x374599=a103_0x114a;if(_0x3e96d8===0x194||_0x3e53d4?.[_0x374599(0x10e)]===0x194)return!![];if(_0x3e96d8!==0x190&&_0x3e53d4?.[_0x374599(0x10e)]!==0x190)return![];const _0x5cc22a=[_0x3e53d4?.[_0x374599(0x135)],_0x3e53d4?.[_0x374599(0x152)],_0x3e53d4?.['errorMsg'],_0x3e53d4?.[_0x374599(0x144)]][_0x374599(0x128)](_0x340990=>typeof _0x340990===_0x374599(0xd1))[_0x374599(0x139)]('\x20');return/skill not found\b/i['test'](_0x5cc22a);}async function skillHubBinaryRequest(_0x587572,_0x4c4cff={}){const _0x3e9c87=a103_0x114a,{query:_0x2e88e4,headers:headers={},timeout:timeout=0x7530}=_0x4c4cff,_0x2c2245=_activeAK;if(!_0x2c2245)throw CliErrors[_0x3e9c87(0x112)](_0x3e9c87(0x130)+PRODUCT_CONFIG[_0x3e9c87(0xb1)]+'.');const _0x529c06=getSkillDomain()['replace'](/\/$/,''),_0x3ce17f=new URL(_0x587572,_0x529c06+'/');if(_0x2e88e4)for(const [_0x18d7c6,_0x99950e]of Object[_0x3e9c87(0x140)](_0x2e88e4)){_0x99950e!==undefined&&_0x99950e!==null&&_0x3ce17f[_0x3e9c87(0x148)][_0x3e9c87(0x14d)](_0x18d7c6,String(_0x99950e));}const _0x155a64=new AbortController(),_0xd729a6=setTimeout(()=>_0x155a64['abort'](),timeout);try{const _0x51ffc8=await fetch(_0x3ce17f['toString'](),{'method':_0x3e9c87(0xe2),'headers':{'Accept':_0x3e9c87(0xe8),'X-Invoke-Source':PRODUCT_CONFIG[_0x3e9c87(0x118)],'X-User-AK':_0x2c2245,...headers},'signal':_0x155a64[_0x3e9c87(0xdd)]});if(!_0x51ffc8['ok']){const _0x367c2b=await decodeResponseBody(_0x51ffc8),_0x23796a=_0x367c2b[_0x3e9c87(0x14e)]&&typeof _0x367c2b['data']===_0x3e9c87(0x132)?_0x367c2b[_0x3e9c87(0x14e)]:{},_0x15e40f=firstString(_0x23796a[_0x3e9c87(0xf9)],_0x23796a[_0x3e9c87(0x152)],_0x23796a[_0x3e9c87(0x135)],_0x23796a[_0x3e9c87(0x146)],_0x367c2b[_0x3e9c87(0x11a)]);throwIfRateLimited(_0x51ffc8,_0x367c2b[_0x3e9c87(0x14e)],_0x15e40f);throw CliErrors[_0x3e9c87(0xdf)](_0x15e40f||'SkillHub\x20API\x20error:\x20'+_0x51ffc8[_0x3e9c87(0xad)],_0x3e9c87(0xdb)+_0x3ce17f[_0x3e9c87(0x143)]());}return Buffer['from'](await _0x51ffc8[_0x3e9c87(0xd2)]());}catch(_0xb44703){if(_0xb44703 instanceof Error&&_0xb44703[_0x3e9c87(0x154)]===_0x3e9c87(0x10d))throw CliErrors[_0x3e9c87(0xdf)](_0x3e9c87(0xcb)+_0x3ce17f[_0x3e9c87(0x143)]());throw _0xb44703;}finally{clearTimeout(_0xd729a6);}}export async function getBffEndpointContract(_0xddfca2,_0x513c21){const _0x48b2af=a103_0x114a;if(_0x513c21===_0x48b2af(0xfe))throw CliErrors[_0x48b2af(0x101)](_0x48b2af(0x11d)+_0xddfca2+_0x48b2af(0xf1)+_0x513c21);const _0x141a27=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0xddfca2)+'/'+encodeURIComponent(_0x513c21)),_0x30f1ad=_0x141a27[_0x48b2af(0x14e)];if(!_0x30f1ad||typeof _0x30f1ad!==_0x48b2af(0x132)||Array[_0x48b2af(0x155)](_0x30f1ad)||_0x30f1ad[_0x48b2af(0x12d)]!==_0xddfca2||_0x30f1ad['functionName']!==_0x513c21)throw CliErrors[_0x48b2af(0x101)]('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0xddfca2+_0x48b2af(0xf1)+_0x513c21);return{'appCode':_0x30f1ad[_0x48b2af(0x12d)],'functionName':_0x30f1ad[_0x48b2af(0x166)],'description':_0x30f1ad[_0x48b2af(0x111)],'version':_0x30f1ad[_0x48b2af(0x151)],'gmtModified':_0x30f1ad[_0x48b2af(0x122)]};}export async function getSqlQueryInfo(_0x467646,_0x518078){const _0x46b209=a103_0x114a,_0x1c6bee=await apiRequest(_0x46b209(0xb6),{'method':'POST','body':{'appCode':_0x467646,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x518078}}),_0x13b14c=_0x1c6bee['data'],_0x13b3da=_0x13b14c&&typeof _0x13b14c===_0x46b209(0x132)&&_0x46b209(0x12f)in _0x13b14c?_0x13b14c[_0x46b209(0x12f)]?.[0x0]:_0x13b14c&&typeof _0x13b14c===_0x46b209(0x132)&&_0x46b209(0xb4)in _0x13b14c?_0x13b14c:undefined;if(!_0x13b3da)throw CliErrors[_0x46b209(0x101)](_0x46b209(0xe0)+_0x518078);return _0x13b3da;}function isRemoteAppItem(_0xb45073){const _0x212e27=a103_0x114a;return!!_0xb45073&&typeof _0xb45073===_0x212e27(0x132)&&typeof _0xb45073[_0x212e27(0x12d)]==='string'&&typeof _0xb45073[_0x212e27(0x15f)]===_0x212e27(0xd1);}function extractRemoteAppItems(_0x3cf0db){const _0x44863d=a103_0x114a;if(Array[_0x44863d(0x155)](_0x3cf0db))return _0x3cf0db[_0x44863d(0x128)](isRemoteAppItem);if(!_0x3cf0db||typeof _0x3cf0db!==_0x44863d(0x132))throw CliErrors[_0x44863d(0xdf)](_0x44863d(0x14f));const _0x5b1fa2=_0x3cf0db;if(Array[_0x44863d(0x155)](_0x5b1fa2[_0x44863d(0x12f)]))return _0x5b1fa2[_0x44863d(0x12f)][_0x44863d(0x128)](isRemoteAppItem);if(_0x5b1fa2[_0x44863d(0x14e)]&&typeof _0x5b1fa2[_0x44863d(0x14e)]===_0x44863d(0x132)){const _0x17233a=_0x5b1fa2[_0x44863d(0x14e)];if(Array[_0x44863d(0x155)](_0x17233a[_0x44863d(0x12f)]))return _0x17233a['tableData'][_0x44863d(0x128)](isRemoteAppItem);}throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x597e4b=a103_0x114a,_0x128546=await apiRequest(_0x597e4b(0x121));return extractRemoteAppItems(_0x128546[_0x597e4b(0x14e)]);}export async function getLoginUserInfo(){const _0x5b0cfc=a103_0x114a,_0x261bf9=await apiRequest(_0x5b0cfc(0x160));if(!_0x261bf9['data']||typeof _0x261bf9[_0x5b0cfc(0x14e)]!==_0x5b0cfc(0x132)||Array[_0x5b0cfc(0x155)](_0x261bf9[_0x5b0cfc(0x14e)]))throw CliErrors[_0x5b0cfc(0xdf)](_0x5b0cfc(0x124));return _0x261bf9[_0x5b0cfc(0x14e)];}export const USER_ACCOUNT_BIND_PATH='/client/user-accounts/bind';export async function bindExternalUserAccount(_0x2e58c5,_0x50110c){const _0x29fa36=a103_0x114a,_0x16ff1e=await apiRequest(USER_ACCOUNT_BIND_PATH,{'method':_0x29fa36(0xe6),'body':{'provider':_0x2e58c5,'accountId':_0x50110c}});return _0x16ff1e[_0x29fa36(0x14e)];}function runtimeSchedulePath(_0x3b3e9d,_0xb5e823=''){const _0xc25b6b=a103_0x114a;return _0xc25b6b(0x13b)+encodeURIComponent(_0x3b3e9d)+'/schedules'+_0xb5e823;}export async function validateRuntimeSchedule(_0x576474,_0x14ea8c){const _0x36d92a=a103_0x114a,_0x3e9b85=await apiRequest(runtimeSchedulePath(_0x576474,'/validate'),{'method':_0x36d92a(0xe6),'body':_0x14ea8c});return _0x3e9b85[_0x36d92a(0x14e)];}export async function createRuntimeSchedule(_0x3ce736,_0x2dc1c0){const _0x1397bf=a103_0x114a,_0x1a255d=await apiRequest(runtimeSchedulePath(_0x3ce736),{'method':_0x1397bf(0xe6),'body':_0x2dc1c0});return _0x1a255d[_0x1397bf(0x14e)];}export async function listRuntimeSchedules(_0x26c36c,_0x597a13){const _0x158009=a103_0x114a,_0x44f42e=new URLSearchParams();_0x44f42e[_0x158009(0x14d)](_0x158009(0xaf),_0x597a13['kind']);if(_0x597a13['limit']!==undefined)_0x44f42e[_0x158009(0x14d)]('limit',String(_0x597a13[_0x158009(0x164)]));if(_0x597a13[_0x158009(0x119)])_0x44f42e[_0x158009(0x14d)]('cursor',_0x597a13['cursor']);const _0x2b2f89=_0x44f42e[_0x158009(0xe7)]>0x0?'?'+_0x44f42e[_0x158009(0x143)]():'',_0x114198=await apiRequest(''+runtimeSchedulePath(_0x26c36c)+_0x2b2f89);return _0x114198[_0x158009(0x14e)];}export async function getRuntimeSchedule(_0x1720fa,_0x529691){const _0x4ac786=a103_0x114a,_0x454152=await apiRequest(runtimeSchedulePath(_0x1720fa,'/'+encodeURIComponent(_0x529691)));return _0x454152[_0x4ac786(0x14e)];}export async function deleteRuntimeSchedule(_0x404874,_0x38df4a){const _0x4818e1=a103_0x114a,_0x35f7a2=await apiRequest(runtimeSchedulePath(_0x404874,'/'+encodeURIComponent(_0x38df4a)),{'method':_0x4818e1(0xb8)});return _0x35f7a2[_0x4818e1(0x14e)];}export async function runRuntimeSchedule(_0x151c89,_0xad969){const _0x497bd5=a103_0x114a,_0x4a476e=await apiRequest(runtimeSchedulePath(_0x151c89,'/'+encodeURIComponent(_0xad969)+'/run'),{'method':_0x497bd5(0xe6)});return _0x4a476e[_0x497bd5(0x14e)];}export async function listDatasets(_0x28873f,_0x51a6a0){const _0x2c8ff6=a103_0x114a,_0x46223e=await apiRequest(_0x2c8ff6(0x11f),{'method':_0x2c8ff6(0xe6),'body':{'appCode':_0x28873f,..._0x51a6a0?.[_0x2c8ff6(0x10e)]&&{'code':_0x51a6a0[_0x2c8ff6(0x10e)]},..._0x51a6a0?.[_0x2c8ff6(0x154)]&&{'name':_0x51a6a0[_0x2c8ff6(0x154)]}}});return extractList(_0x46223e['data']);}export async function getDatasetDetail(_0x47eda4){const _0x822386=a103_0x114a,_0x37b1ed=await apiRequest(_0x822386(0x137)+encodeURIComponent(_0x47eda4));return _0x37b1ed[_0x822386(0x14e)];}export async function getDatasetSdkUsageDoc(_0x35a18d,_0x308fb8){const _0x297a40=a103_0x114a,_0x4c0e42=await toolboxRequest('api-doc-generator',{'datasetCode':_0x35a18d,'appCode':_0x308fb8});return typeof _0x4c0e42?.[_0x297a40(0xd6)]===_0x297a40(0xd1)?_0x4c0e42[_0x297a40(0xd6)]:'';}export async function uploadRuntimeFile(_0x425798,_0x132c0d){const _0x2b4b3e=a103_0x114a,_0x21ca40=await readFile(_0x132c0d),_0x112e70=new FormData();_0x112e70['append'](_0x2b4b3e(0x12d),_0x425798),_0x112e70['append'](_0x2b4b3e(0xdc),new Blob([new Uint8Array(_0x21ca40)]),basename(_0x132c0d));const _0x5215b6=await apiFormRequest(_0x2b4b3e(0xcf),_0x112e70);return _0x5215b6[_0x2b4b3e(0x14e)];}export async function queryRuntimeFileUrl(_0x4d2c66,_0x57811e={}){const _0x4d17c5=a103_0x114a,_0x1358cf=await apiRequest(_0x4d17c5(0xcd),{'method':_0x4d17c5(0xe6),'body':{'filePath':_0x4d2c66,'downloadFlag':_0x57811e[_0x4d17c5(0xed)]??![],..._0x57811e[_0x4d17c5(0x149)]?{'longTerm':!![]}:{}}});return _0x1358cf['data'];}export async function recognizeRuntimeOcr(_0x1c3a2b,_0xc38278){const _0x365ecb=a103_0x114a,_0x4d9e4e=await apiRequest(_0x365ecb(0x165),{'method':'POST','body':{'appCode':_0x1c3a2b,'url':_0xc38278[_0x365ecb(0xbf)],'type':_0xc38278[_0x365ecb(0xd5)]}});return _0x4d9e4e[_0x365ecb(0x14e)];}export async function getRuntimeAppConfigByKey(_0x36146f,_0x91744f){const _0x55cd79=a103_0x114a,_0x442b2a=new URLSearchParams({'appCode':_0x36146f,'key':_0x91744f}),_0x54a4cf=await apiRequest(_0x55cd79(0xbb)+_0x442b2a[_0x55cd79(0x143)]());if(typeof _0x54a4cf[_0x55cd79(0x14e)]!==_0x55cd79(0xd1))throw CliErrors[_0x55cd79(0x101)](_0x55cd79(0x10b)+_0x91744f);return _0x54a4cf[_0x55cd79(0x14e)];}export async function listNotificationChannelConfigs(_0x2c939d,_0x34caac){const _0x180580=a103_0x114a,_0x477040=new URLSearchParams({'appCode':_0x2c939d,'channelType':_0x34caac}),_0x505f5c=await apiRequest(_0x180580(0x153)+_0x477040['toString']());if(!Array[_0x180580(0x155)](_0x505f5c['data']))throw CliErrors[_0x180580(0xdf)](_0x180580(0xc2),_0x180580(0xf0));return _0x505f5c[_0x180580(0x14e)];}export async function listRuntimeArtifacts(_0x3ad215,_0x12889c){const _0x2b3767=a103_0x114a,_0xe325b7=new URLSearchParams({'appCode':_0x3ad215});if(_0x12889c?.[_0x2b3767(0xaa)])_0xe325b7['set'](_0x2b3767(0xaa),_0x12889c[_0x2b3767(0xaa)]);if(_0x12889c?.[_0x2b3767(0x108)])_0xe325b7[_0x2b3767(0x14d)](_0x2b3767(0x108),_0x12889c[_0x2b3767(0x108)]);if(_0x12889c?.[_0x2b3767(0x11c)]!==undefined)_0xe325b7[_0x2b3767(0x14d)]('favorite',String(_0x12889c[_0x2b3767(0x11c)]));const _0xece138=await apiRequest(_0x2b3767(0xff)+_0xe325b7[_0x2b3767(0x143)]());return Array[_0x2b3767(0x155)](_0xece138[_0x2b3767(0x14e)])?_0xece138[_0x2b3767(0x14e)]:[];}export async function getRuntimeArtifact(_0x56c38a,_0x2c8de4){const _0x3d7442=a103_0x114a,_0x48bf0b=await apiRequest(_0x3d7442(0xf2)+_0x56c38a+_0x3d7442(0x147)+encodeURIComponent(_0x2c8de4));if(!_0x48bf0b['data'])throw CliErrors[_0x3d7442(0x101)](_0x3d7442(0xcc)+_0x56c38a);return _0x48bf0b[_0x3d7442(0x14e)];}export async function createRuntimeArtifact(_0x47dd22,_0x55451e){const _0x2cb9f1=a103_0x114a,_0x26dd50=await apiRequest(_0x2cb9f1(0x115),{'method':_0x2cb9f1(0xe6),'body':{'appCode':_0x47dd22,..._0x55451e}});return _0x26dd50['data'];}export async function updateRuntimeArtifact(_0xa0225c,_0x3623b6,_0xb38a96){const _0x2f90d5=a103_0x114a,_0x4b9d29=await apiRequest(_0x2f90d5(0xf2)+_0xa0225c+_0x2f90d5(0x14b),{'method':_0x2f90d5(0xe6),'body':{'appCode':_0x3623b6,..._0xb38a96}});return _0x4b9d29[_0x2f90d5(0x14e)];}export async function listPersonalBffs(_0x4051a9){const _0x5a227f=a103_0x114a,_0x4e4133=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x4051a9));return Array[_0x5a227f(0x155)](_0x4e4133[_0x5a227f(0x14e)])?_0x4e4133[_0x5a227f(0x14e)]:[];}export async function getPersonalBff(_0x1dc6a7,_0x50a4de){const _0x1bf00d=a103_0x114a,_0x24945f=await apiRequest('/client/runtime-bff/personal/'+_0x1dc6a7+_0x1bf00d(0x147)+encodeURIComponent(_0x50a4de));if(!_0x24945f[_0x1bf00d(0x14e)])throw CliErrors['validation'](_0x1bf00d(0xfd)+_0x1dc6a7);return _0x24945f[_0x1bf00d(0x14e)];}export async function createPersonalBff(_0x2a4ab1,_0x22a524){const _0x1d28f8=a103_0x114a,_0xc38c3d=await apiRequest(_0x1d28f8(0xd4),{'method':_0x1d28f8(0xe6),'body':{'appCode':_0x2a4ab1,..._0x22a524}});return _0xc38c3d[_0x1d28f8(0x14e)];}function a103_0x114a(_0x2c67f8,_0x5c9151){_0x2c67f8=_0x2c67f8-0xa7;const _0x55e4f0=a103_0x55e4();let _0x114acd=_0x55e4f0[_0x2c67f8];return _0x114acd;}export async function updatePersonalBff(_0xf21533,_0x59e351,_0x5bdb22){const _0x3a7fbf=a103_0x114a,_0x5bfef0=await apiRequest(_0x3a7fbf(0x14c)+_0xf21533+_0x3a7fbf(0x14b),{'method':'POST','body':{'appCode':_0x59e351,..._0x5bdb22}});return _0x5bfef0[_0x3a7fbf(0x14e)];}export async function executePersonalBff(_0x360120,_0x1e6c37,_0x2d8cdf){const _0x499aa7=a103_0x114a,_0x1e22ed=await apiRequest(_0x499aa7(0x14c)+_0x360120+_0x499aa7(0x123)+encodeURIComponent(_0x1e6c37),{'method':_0x499aa7(0xe6),'body':_0x2d8cdf});return _0x1e22ed['data'];}export async function listPersonalKnowledgeBaseItems(_0xf98fc6){const _0xf4a3a6=a103_0x114a,_0x14b978=await apiRequest(_0xf4a3a6(0xe1)+encodeURIComponent(_0xf98fc6));return Array['isArray'](_0x14b978['data'])?_0x14b978[_0xf4a3a6(0x14e)]:[];}export async function getPersonalKnowledgeBaseItem(_0x453582,_0x5e4d2c){const _0x4eaaa9=a103_0x114a,_0x54ebf5=await apiRequest(_0x4eaaa9(0xf4)+_0x453582+_0x4eaaa9(0x147)+encodeURIComponent(_0x5e4d2c));if(!_0x54ebf5[_0x4eaaa9(0x14e)])throw CliErrors[_0x4eaaa9(0x101)](_0x4eaaa9(0xbd)+_0x453582);return _0x54ebf5[_0x4eaaa9(0x14e)];}export async function createPersonalKnowledgeBaseItem(_0x6fc6d8,_0x5ce4d9){const _0x2b1e92=a103_0x114a,_0x4e751a=await apiRequest(_0x2b1e92(0xec),{'method':_0x2b1e92(0xe6),'body':{'appCode':_0x6fc6d8,..._0x5ce4d9}});return _0x4e751a[_0x2b1e92(0x14e)];}export async function updatePersonalKnowledgeBaseItem(_0x13653d,_0x1e73db,_0x23f015){const _0x38deb6=a103_0x114a,_0x5d58b5=await apiRequest(_0x38deb6(0xf4)+_0x13653d+_0x38deb6(0x14b),{'method':_0x38deb6(0xe6),'body':{'appCode':_0x1e73db,..._0x23f015}});return _0x5d58b5[_0x38deb6(0x14e)];}export async function getRuntimeSkillByCode(_0x3b1daa,_0x2992d4){const _0x1fdffa=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x3b1daa)+'/'+encodeURIComponent(_0x2992d4),{'allowNotFound':!![]});return _0x1fdffa?skillHubRuntimeDetailToRuntimeSkill(_0x1fdffa):undefined;}export async function listRuntimeSkills(_0x4abe95){const _0x5405be=a103_0x114a,_0x1a5c3f=await skillHubJsonRequest(_0x5405be(0x163)+encodeURIComponent(_0x4abe95[_0x5405be(0x12d)])+_0x5405be(0xa9),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x4abe95[_0x5405be(0x12d)],_0x1a5c3f,_0x4abe95[_0x5405be(0xc8)]??_0x5405be(0x13e),_0x4abe95[_0x5405be(0x10e)]);}export async function listPersonalRuntimeSkills(_0x4c6aa2){const _0x20fd31=a103_0x114a;return(await listRuntimeSkills({'appCode':_0x4c6aa2,'scope':'personal'}))[_0x20fd31(0x12a)];}export async function listCompanyRuntimeSkills(_0x37abce){return(await listRuntimeSkills({'appCode':_0x37abce,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x16c06f){const _0xcd5809=a103_0x114a;return(await listRuntimeSkills({'appCode':_0x16c06f,'scope':_0xcd5809(0x13e)}))[_0xcd5809(0x125)];}export async function createPersonalRuntimeSkill(_0x43ddad,_0x2fb36d,_0x1a12a7={}){const _0x4f7776=a103_0x114a;return publishRuntimeSkill(_0x43ddad,_0x2fb36d,{'visibility':'PRIVATE','confirmWarnings':_0x1a12a7[_0x4f7776(0x103)]});}export async function updatePersonalRuntimeSkill(_0x5643e1,_0x1d0a62,_0x2a1a05,_0x4ad202={}){const _0x2e5abf=a103_0x114a;return publishRuntimeSkill(_0x1d0a62,{..._0x2a1a05,'skillCode':_0x2a1a05[_0x2e5abf(0x145)]??_0x5643e1},{'visibility':_0x2e5abf(0xb9),'confirmWarnings':_0x4ad202[_0x2e5abf(0x103)]});}export async function publishCompanyRuntimeSkill(_0x1135b9,_0xe546c9,_0x32a5be={}){const _0x1f2178=a103_0x114a;return publishRuntimeSkill(_0x1135b9,_0xe546c9,{'visibility':_0x1f2178(0x113),'confirmWarnings':_0x32a5be[_0x1f2178(0x103)]});}export async function validateRuntimeSkillPublish(_0x4e8182,_0x3a300c,_0x611085){const _0x5c781f=a103_0x114a,_0x1d3e91=buildRuntimeSkillPublishForm(_0x3a300c,_0x611085['visibility']),_0x26f440=await skillHubJsonRequest(_0x5c781f(0xee)+encodeURIComponent(_0x4e8182)+'/publish/validate',{'method':_0x5c781f(0xe6),'body':_0x1d3e91});return assertJointDiagramAcknowledged(_0x3a300c[_0x5c781f(0x116)],_0x26f440[_0x5c781f(0x15a)],_0x5c781f(0x101)),{'valid':_0x26f440[_0x5c781f(0xe4)]===!![],'errors':Array['isArray'](_0x26f440[_0x5c781f(0x13d)])?_0x26f440[_0x5c781f(0x13d)]:[],'warnings':Array['isArray'](_0x26f440[_0x5c781f(0x15b)])?_0x26f440[_0x5c781f(0x15b)]:[],'resolvedSlug':_0x26f440[_0x5c781f(0xf6)],'resolvedVersion':_0x26f440[_0x5c781f(0xbe)],'diagramValidated':_0x26f440[_0x5c781f(0x15a)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x38b747,_0x5b01a2,_0x2be528,_0xd0de4d,_0xe12e1e){const _0x227636=a103_0x114a;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x38b747,_0x5b01a2,_0x2be528,_0x227636(0xc9)),{'method':_0x227636(0xe6),'query':{'scope':_0xd0de4d},'headers':{'Content-Type':_0x227636(0xf8)},'body':JSON[_0x227636(0x13a)](_0xe12e1e)});}export async function putRuntimeSkillVersionDiagram(_0x5e4a26,_0x3187a6,_0x2a20c7,_0x4c1ade,_0x5a0c3a){const _0x5433cd=a103_0x114a;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x5e4a26,_0x3187a6,_0x2a20c7),{'method':_0x5433cd(0x167),'query':{'scope':_0x4c1ade},'headers':{'Content-Type':_0x5433cd(0xf8)},'body':JSON[_0x5433cd(0x13a)](_0x5a0c3a)});}export async function getRuntimeSkillVersionDiagram(_0x2a23bc,_0x2abd4c,_0xe1bf12,_0x2fdd42){const _0x5cdec4=a103_0x114a,_0x3f6681=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x2a23bc,_0x2abd4c,_0xe1bf12),{'query':{'scope':_0x2fdd42}});if(typeof _0x3f6681['found']!==_0x5cdec4(0x162))throw CliErrors[_0x5cdec4(0xdf)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.');const _0x2c7c05=_0x3f6681[_0x5cdec4(0xa8)];if(typeof _0x2c7c05!==_0x5cdec4(0xd1)||!/^sha256:[0-9a-f]{64}$/['test'](_0x2c7c05))throw CliErrors[_0x5cdec4(0xdf)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.',_0x5cdec4(0xe9));const _0x35504e=_0x3f6681[_0x5cdec4(0xac)];if(_0x3f6681[_0x5cdec4(0xbc)]&&(!Number[_0x5cdec4(0xc3)](_0x35504e)||Number(_0x35504e)<0x1))throw CliErrors['apiError'](_0x5cdec4(0x168));if(!_0x3f6681[_0x5cdec4(0xbc)]&&_0x35504e!==undefined&&_0x35504e!==null)throw CliErrors[_0x5cdec4(0xdf)](_0x5cdec4(0x102));const _0xf02422=_0x3f6681[_0x5cdec4(0xbc)]?Number(_0x35504e):null;return{..._0x3f6681,'sourceFingerprint':_0x2c7c05,'diagramRevision':_0xf02422,'expectedDiagramRevision':_0xf02422??0x0};}export async function downloadRuntimeSkillPackage(_0xf808f4,_0xe9c14e,_0x2cfc89,_0x379df9){const _0x53be41=a103_0x114a;void _0xf808f4;const _0x4a624d=_0x379df9?_0x53be41(0xee)+encodeURIComponent(_0x2cfc89)+'/'+encodeURIComponent(_0xe9c14e)+_0x53be41(0xe5)+encodeURIComponent(_0x379df9)+_0x53be41(0x12b):'/api/cli/v1/skills/'+encodeURIComponent(_0x2cfc89)+'/'+encodeURIComponent(_0xe9c14e)+_0x53be41(0x12b);return skillHubBinaryRequest(_0x4a624d);}async function publishRuntimeSkill(_0x5c054b,_0x12c256,_0x50815a){const _0x3f3673=a103_0x114a,_0x5d1f6d=buildRuntimeSkillPublishForm(_0x12c256,_0x50815a['visibility']),_0x14b3fe=await skillHubJsonRequest(_0x3f3673(0xee)+encodeURIComponent(_0x5c054b)+'/publish',{'method':_0x3f3673(0xe6),'query':{'confirmWarnings':_0x50815a[_0x3f3673(0x103)]===!![]?!![]:undefined},'body':_0x5d1f6d});return assertJointDiagramAcknowledged(_0x12c256[_0x3f3673(0x116)],_0x14b3fe[_0x3f3673(0xce)],_0x3f3673(0xf3)),{'appCode':_0x14b3fe['namespace']??_0x5c054b,'skillCode':_0x14b3fe[_0x3f3673(0x134)]??_0x12c256['skillCode']??'','skillName':_0x12c256['skillName']??_0x14b3fe['slug']??_0x12c256[_0x3f3673(0x145)],'description':_0x12c256['description'],'scope':skillHubVisibilityToScope(_0x14b3fe[_0x3f3673(0x15d)]??_0x50815a[_0x3f3673(0x15d)])??_0x3f3673(0x12a),'version':_0x14b3fe[_0x3f3673(0x151)]??_0x12c256[_0x3f3673(0x151)],'tags':_0x12c256[_0x3f3673(0x136)],'content':_0x12c256[_0x3f3673(0xc1)],'diagramBound':_0x14b3fe['diagramBound']===!![]};}function assertJointDiagramAcknowledged(_0xc1e28d,_0x1130db,_0xd51046){const _0x24084a=a103_0x114a;if(!_0xc1e28d||_0x1130db===!![])return;throw CliErrors[_0x24084a(0xdf)]('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0xd51046+'.',_0x24084a(0x15c));}function buildRuntimeSkillPublishForm(_0x4814ce,_0x22539c){const _0x4979c2=a103_0x114a,_0x21e068=new FormData();return _0x21e068[_0x4979c2(0x14d)](_0x4979c2(0xdc),runtimeSkillPackageFile(_0x4814ce)),_0x4814ce[_0x4979c2(0xb5)]?.['trim']()&&_0x21e068[_0x4979c2(0x14d)](_0x4979c2(0xc7),_0x4814ce[_0x4979c2(0xb5)][_0x4979c2(0x120)]()),_0x21e068['set'](_0x4979c2(0x15d),_0x22539c),_0x4814ce[_0x4979c2(0x116)]&&_0x21e068[_0x4979c2(0x14d)](_0x4979c2(0x116),new Blob([JSON[_0x4979c2(0x13a)](_0x4814ce[_0x4979c2(0x116)])],{'type':'application/json'})),_0x21e068;}function runtimeSkillVersionDiagramPath(_0xc3eea,_0x23e734,_0x4f6c79,_0x289358=''){const _0x3b28a8=a103_0x114a;return _0x3b28a8(0xee)+encodeURIComponent(_0xc3eea)+'/'+encodeURIComponent(_0x23e734)+'/versions/'+encodeURIComponent(_0x4f6c79)+_0x3b28a8(0xfa)+_0x289358;}function a103_0x55e4(){const _0x15f20f=['skill','Toolbox\x20API\x20error:\x20','min','company','source','find','runtime','Invalid\x20app\x20config\x20value:\x20key=','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','AbortError','code','packageBase64','.zip','description','authRequired','NAMESPACE_ONLY','isJson','/client/artifact/create','diagram','/client/permit/role/delete','invokeSource','cursor','text','example','favorite','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','/client/permit/dataset/list','/client/dataset/list','trim','/client/app/my-apps','gmtModified','/execute?appCode=','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','effective','/client/permit/resource/batch-save-dataset','namespace','filter','/client/permit/resource/batch-save-menu','personal','/download','/client/permit/dataset/permit-list','appCode','replace','tableData','Configure\x20accessKey\x20in\x20','1083432ntUhWF','object','currentPage','slug','msg','tags','/client/dataset/get-driven-data?code=','30816vSGGWk','join','stringify','/api/harness/apps/','CUSTOM','errors','all','/client/permit/role/update','entries','10714203HmpjPE','permitList','toString','error','skillCode','errorCode','?appCode=','searchParams','longTerm','abort','/update','/client/runtime-bff/personal/','set','data','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/menu/permit-list','version','message','/client/notification/channel-config/list?','name','isArray','roleName','/client/permit/user-role/update-user-list','Toolbox\x20API\x20error','8TrqvAy','diagramValidated','warnings','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','visibility','/client/dept/queryAppUser','appName','/client/user/loginUserInfo','1289830OEBcDR','boolean','/api/runtime/v1/namespaces/','limit','/client/ocr','functionName','PUT','Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.','headlineVersion','sourceFingerprint','/skills','artifactType','summary','diagramRevision','status','219cjiuCr','kind','items','newConfigFileName','/client/permit/page/save','ownerPreviewVersion','sqlCode','skillName','/client/sql/query','map','DELETE','PRIVATE','SkillHub\x20error\x20code:\x20','/client/app-config/getByKey?','found','Knowledge-base\x20entry\x20not\x20found:\x20id=','resolvedVersion','url','30FnxCaB','content','Invalid\x20notification\x20config\x20list\x20response.','isInteger','success','/api/node-toolbox/','base64','displayName','scope','/validate','/client/permit/resource/get-menu-list','Request\x20timeout:\x20','Artifact\x20not\x20found:\x20id=','/client/queryFileUrl','diagramBound','/client/uploadFile','Check\x20your\x20credentials\x20and\x20try\x20again.','string','arrayBuffer','from','/client/runtime-bff/personal/create','type','markdown','8274752oLmJcj','/client/permit/role/get-permit-list','4597332EnNUTO','number','Download\x20failed:\x20','file','signal','application/zip','apiError','SQL\x20query\x20not\x20found:\x20','/client/knowledge-base/personal/list?appCode=','GET','values','valid','/versions/','POST','size','application/octet-stream','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','1626604TpwIAr','SkillHub\x20API\x20error:\x20','/client/knowledge-base/personal/create','download','/api/cli/v1/skills/','Missing\x20Skill\x20package\x20payload.','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.',',\x20name=','/client/artifact/','publish','/client/knowledge-base/personal/','headers','resolvedSlug','API\x20error:\x20','application/json','errorMsg','/diagram','API\x20error\x20code:\x20','function','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','functions','/client/artifact/list?','/client/permit/user-role/get-user-list','validation','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','confirmWarnings'];a103_0x55e4=function(){return _0x15f20f;};return a103_0x55e4();}function runtimeSkillPackageFile(_0x36586c){const _0x586f73=a103_0x114a;if(!_0x36586c[_0x586f73(0x10f)])throw CliErrors['validation'](_0x586f73(0xef));const _0x5b5b34=Buffer[_0x586f73(0xd3)](_0x36586c['packageBase64'],_0x586f73(0xc6)),_0x316c86=new Blob([_0x5b5b34],{'type':_0x586f73(0xde)}),_0x46a33a=(_0x36586c['skillCode']||_0x586f73(0x104))+_0x586f73(0x110);if(typeof File!=='undefined')return new File([_0x316c86],_0x46a33a,{'type':_0x586f73(0xde)});return _0x316c86;}function normalizeSkillHubRuntimeListResponse(_0x48e7cd,_0x2d167a,_0x4a3db6,_0x2453d7){const _0x34b817=a103_0x114a,_0x3f17af=Array[_0x34b817(0x155)](_0x2d167a)?_0x2d167a:Array[_0x34b817(0x155)](_0x2d167a?.[_0x34b817(0xb0)])?_0x2d167a[_0x34b817(0xb0)]:[],_0xffd677=_0x2453d7?.[_0x34b817(0x120)](),_0x1138bf=_0x3f17af['filter'](_0x39dcf8=>!_0xffd677||_0x39dcf8[_0x34b817(0x134)]===_0xffd677)[_0x34b817(0xb7)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x412c58=>Boolean(_0x412c58)),_0x22dac5=_0x1138bf['filter'](_0x4f3f3a=>_0x4f3f3a['scope']===_0x34b817(0x12a)),_0x3704e9=_0x1138bf[_0x34b817(0x128)](_0x417320=>_0x417320[_0x34b817(0xc8)]===_0x34b817(0x107));return{'appCode':_0x48e7cd,'personal':_0x4a3db6===_0x34b817(0x107)?[]:_0x22dac5,'company':_0x4a3db6==='personal'?[]:_0x3704e9,'effective':buildEffectiveRuntimeSkills(_0x22dac5,_0x3704e9,_0x4a3db6)};}function skillHubRuntimeItemToRuntimeSkill(_0x1acb2c){const _0x391077=a103_0x114a,_0x3d3eaa=_0x1acb2c[_0x391077(0x134)]?.['trim'](),_0x3821ee=skillHubVisibilityToScope(_0x1acb2c[_0x391077(0x15d)]);if(!_0x3d3eaa||!_0x3821ee)return undefined;return{'id':_0x1acb2c['id'],'appCode':_0x1acb2c[_0x391077(0x127)],'skillCode':_0x3d3eaa,'skillName':_0x1acb2c[_0x391077(0xc7)]??_0x3d3eaa,'description':_0x1acb2c[_0x391077(0xab)],'example':_0x1acb2c[_0x391077(0x11b)],'scope':_0x3821ee,'version':skillHubRuntimeItemVersion(_0x1acb2c),'status':_0x1acb2c[_0x391077(0xad)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x30b6b8){const _0x5b450a=a103_0x114a,_0x4b0742=_0x30b6b8['slug']?.['trim']();if(!_0x4b0742)return undefined;return{'id':_0x30b6b8['id'],'appCode':_0x30b6b8['namespace'],'skillCode':_0x4b0742,'skillName':_0x30b6b8[_0x5b450a(0xc7)]??_0x4b0742,'description':_0x30b6b8[_0x5b450a(0xab)],'example':_0x30b6b8['example'],'scope':skillHubVisibilityToScope(_0x30b6b8[_0x5b450a(0x15d)])??_0x30b6b8[_0x5b450a(0x15d)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x30b6b8),'status':_0x30b6b8['status']};}function skillHubVisibilityToScope(_0x4dc3e0){const _0x1f6fe6=a103_0x114a;if(_0x4dc3e0===_0x1f6fe6(0xb9))return _0x1f6fe6(0x12a);if(_0x4dc3e0===_0x1f6fe6(0x113))return _0x1f6fe6(0x107);return undefined;}function skillHubRuntimeItemVersion(_0x1efad4){const _0x381275=a103_0x114a;return _0x1efad4['publishedVersion']?.[_0x381275(0x151)]??_0x1efad4[_0x381275(0xa7)]?.[_0x381275(0x151)]??_0x1efad4[_0x381275(0xb3)]?.[_0x381275(0x151)];}function buildEffectiveRuntimeSkills(_0x24c27e,_0xec6121,_0xa0b466){const _0x326dd2=a103_0x114a;if(_0xa0b466===_0x326dd2(0x12a))return _0x24c27e;if(_0xa0b466==='company')return _0xec6121;const _0x3d26ab=new Map();for(const _0x1a4a2f of _0xec6121){_0x3d26ab[_0x326dd2(0x14d)](_0x1a4a2f[_0x326dd2(0x145)],_0x1a4a2f);}for(const _0xb7b043 of _0x24c27e){_0x3d26ab[_0x326dd2(0x14d)](_0xb7b043['skillCode'],_0xb7b043);}return Array[_0x326dd2(0xd3)](_0x3d26ab[_0x326dd2(0xe3)]());}function normalizeRuntimeSkillListResponse(_0x1183dd,_0x1fda35){const _0x1cdfff=a103_0x114a;if(Array[_0x1cdfff(0x155)](_0x1fda35)){const _0x328fc3=_0x1fda35[_0x1cdfff(0x128)](_0x224a36=>_0x224a36['scope']===_0x1cdfff(0x12a)),_0x1a0cc2=_0x1fda35[_0x1cdfff(0x128)](_0xe17eef=>_0xe17eef[_0x1cdfff(0xc8)]==='company');return{'appCode':_0x1183dd,'personal':_0x328fc3,'company':_0x1a0cc2,'effective':[..._0x1a0cc2,..._0x328fc3]};}return{'appCode':_0x1fda35?.[_0x1cdfff(0x12d)]??_0x1183dd,'personal':Array[_0x1cdfff(0x155)](_0x1fda35?.['personal'])?_0x1fda35['personal']:[],'company':Array[_0x1cdfff(0x155)](_0x1fda35?.['company'])?_0x1fda35[_0x1cdfff(0x107)]:[],'effective':Array['isArray'](_0x1fda35?.['effective'])?_0x1fda35[_0x1cdfff(0x125)]:[]};}export async function listRuntimeAppRoles(_0x1fb280,_0x179704={}){const _0x9cd05b=a103_0x114a,_0x419092=_0x179704[_0x9cd05b(0x133)]??0x1,_0xcccb5d=Math[_0x9cd05b(0x106)](Math['max'](_0x179704['pageSize']??0x64,0x1),0x64),_0x57b9a7=await apiRequest('/client/permit/role/get-list',{'method':'POST','body':{'appCode':_0x1fb280,..._0x179704[_0x9cd05b(0x156)]?{'roleName':_0x179704[_0x9cd05b(0x156)]}:{},'currentPage':_0x419092,'pageSize':_0xcccb5d}});return{'items':extractList(_0x57b9a7[_0x9cd05b(0x14e)]),'paging':extractPaging(_0x57b9a7[_0x9cd05b(0x14e)])};}export async function createRuntimeAppRole(_0x48441c){const _0x7b95ad=a103_0x114a,_0x256b96=await apiRequest('/client/permit/role/create',{'method':'POST','body':{'roleType':_0x7b95ad(0x13c),..._0x48441c}});return _0x256b96[_0x7b95ad(0x14e)];}export async function updateRuntimeAppRole(_0x4554f9){const _0x319d04=a103_0x114a,_0x2d5038=await apiRequest(_0x319d04(0x13f),{'method':_0x319d04(0xe6),'body':_0x4554f9});return _0x2d5038[_0x319d04(0x14e)];}export async function deleteRuntimeAppRole(_0x1fcb8c){const _0x57a580=a103_0x114a,_0xed7318=await apiRequest(_0x57a580(0x117),{'method':'POST','body':{'id':_0x1fcb8c}});return _0xed7318[_0x57a580(0x14e)];}export async function listRuntimeRoleUsers(_0x120948){const _0x25d0d6=a103_0x114a,_0x603157=await apiRequest(_0x25d0d6(0x100),{'method':'POST','body':{'appCode':_0x120948}});return extractList(_0x603157[_0x25d0d6(0x14e)]);}export async function updateRuntimeRoleUsers(_0xed56a4,_0x21ef8c){const _0x2f3d71=a103_0x114a,_0x3b888b=await apiRequest(_0x2f3d71(0x157),{'method':_0x2f3d71(0xe6),'body':{'appCode':_0xed56a4,'roleList':_0x21ef8c}});return _0x3b888b[_0x2f3d71(0x14e)];}export async function listRuntimeAppUsers(_0x238818){const _0x109c9e=a103_0x114a,_0x1b2091=await apiRequest(_0x109c9e(0x15e)+runtimePermitQuery({'appCode':_0x238818}));return extractList(_0x1b2091[_0x109c9e(0x14e)]);}function runtimePermitQuery(_0x203c1b){const _0x5bac6a=a103_0x114a,_0x103b71=new URLSearchParams();for(const [_0x1c4224,_0x4d7bd5]of Object[_0x5bac6a(0x140)](_0x203c1b))_0x103b71['set'](_0x1c4224,String(_0x4d7bd5));return'?'+_0x103b71[_0x5bac6a(0x143)]();}export async function listRuntimePermitRoles(_0x45e6b9,_0x11adbc={}){const _0x9063fa=a103_0x114a,_0x15090c=await apiRequest(_0x9063fa(0xd8),{'method':'POST','body':{'appCode':_0x45e6b9,..._0x11adbc}});return extractList(_0x15090c[_0x9063fa(0x14e)]);}export async function getRuntimePagePermit(_0x507557){const _0x9dcf95=a103_0x114a,_0x28e8af=await apiRequest('/client/permit/page/get-one'+runtimePermitQuery({'menuId':_0x507557}));return _0x28e8af[_0x9dcf95(0x14e)];}export async function saveRuntimePagePermit(_0x4cec3f){const _0xd80263=a103_0x114a,_0x47ec2a=await apiRequest(_0xd80263(0xb2),{'method':_0xd80263(0xe6),'body':_0x4cec3f});return _0x47ec2a[_0xd80263(0x14e)];}export async function getRuntimeRoleMenuResources(_0x44e1b2,_0x3afda9){const _0x5137e8=a103_0x114a,_0x437677=await apiRequest(_0x5137e8(0xca),{'method':_0x5137e8(0xe6),'body':{'appCode':_0x44e1b2,'roleId':_0x3afda9}});return extractList(_0x437677['data']);}export async function listRuntimeMenuRolePermits(_0x297b4d){const _0x446750=a103_0x114a,_0x3508ff=await apiRequest(_0x446750(0x150)+runtimePermitQuery({'appCode':_0x297b4d}));return Array[_0x446750(0x155)](_0x3508ff[_0x446750(0x14e)]?.[_0x446750(0x142)])?_0x3508ff[_0x446750(0x14e)][_0x446750(0x142)]:[];}export async function saveRuntimeMenuRolePermits(_0xb0b4da,_0x19ec37){const _0x1a16e0=a103_0x114a,_0x302fa1=await apiRequest(_0x1a16e0(0x129),{'method':_0x1a16e0(0xe6),'body':{'appCode':_0xb0b4da,'permitList':_0x19ec37}});return _0x302fa1[_0x1a16e0(0x14e)];}export async function listRuntimeDatasetPermits(_0x5623d3,_0xf4138e){const _0x145d84=a103_0x114a,_0x2c64bb=await apiRequest(_0x145d84(0x11e)+runtimePermitQuery({'appCode':_0x5623d3,'roleId':_0xf4138e}));return Array[_0x145d84(0x155)](_0x2c64bb[_0x145d84(0x14e)]?.[_0x145d84(0x142)])?_0x2c64bb['data']['permitList']:[];}export async function listRuntimeDatasetRolePermits(_0x41ce08){const _0x36a48c=a103_0x114a,_0x4c3c22=await apiRequest(_0x36a48c(0x12c)+runtimePermitQuery({'appCode':_0x41ce08}));return Array[_0x36a48c(0x155)](_0x4c3c22[_0x36a48c(0x14e)]?.['permitList'])?_0x4c3c22[_0x36a48c(0x14e)][_0x36a48c(0x142)]:[];}export async function saveRuntimeDatasetRolePermits(_0x122ebb,_0x2e7189){const _0x523908=a103_0x114a,_0x3a74b5=await apiRequest(_0x523908(0x126),{'method':_0x523908(0xe6),'body':{'appCode':_0x122ebb,'permitList':_0x2e7189}});return _0x3a74b5[_0x523908(0x14e)];}
@@ -1 +1 @@
1
- (function(_0x5ed62e,_0xbdb66e){const _0x5a063c=a104_0xb1dc,_0x25ca4e=_0x5ed62e();while(!![]){try{const _0x20d999=parseInt(_0x5a063c(0x10e))/0x1*(-parseInt(_0x5a063c(0x10b))/0x2)+parseInt(_0x5a063c(0x112))/0x3+-parseInt(_0x5a063c(0x108))/0x4*(-parseInt(_0x5a063c(0x103))/0x5)+-parseInt(_0x5a063c(0x117))/0x6*(-parseInt(_0x5a063c(0x10f))/0x7)+parseInt(_0x5a063c(0x106))/0x8*(parseInt(_0x5a063c(0x10a))/0x9)+parseInt(_0x5a063c(0x110))/0xa*(-parseInt(_0x5a063c(0x10c))/0xb)+parseInt(_0x5a063c(0x113))/0xc*(parseInt(_0x5a063c(0x116))/0xd);if(_0x20d999===_0xbdb66e)break;else _0x25ca4e['push'](_0x25ca4e['shift']());}catch(_0x3fdb5b){_0x25ca4e['push'](_0x25ca4e['shift']());}}}(a104_0x5382,0x92f62));function a104_0xb1dc(_0x1add12,_0x56768e){_0x1add12=_0x1add12-0x103;const _0x538228=a104_0x5382();let _0xb1dc44=_0x538228[_0x1add12];return _0xb1dc44;}import{listDatasets}from'../core/api-client.js';function a104_0x5382(){const _0x1dc5c2=['7980ECgwQR','set','dbName','12181qDnQEy','1380564BFicjV','70PjbCfw','has','find','705608ovJwiz','dbId','306216oJcgmb','dbtableConfig','9vdHYac','1565992VrXnmp','22TZIGWB','map','1FeZJOu','14xgrcHc','5968330TKBiTz','entries','1006098LutEWw'];a104_0x5382=function(){return _0x1dc5c2;};return a104_0x5382();}const cache=new Map();export async function listDatabases(_0x532238){const _0x207c0d=a104_0xb1dc;if(cache[_0x207c0d(0x104)](_0x532238))return cache['get'](_0x532238);const _0x54955b=await listDatasets(_0x532238),_0x3e99b2=new Map();for(const _0x36ad40 of _0x54955b){const _0xdb0aad=_0x36ad40[_0x207c0d(0x109)];_0xdb0aad?.['dbId']!=null&&_0x3e99b2[_0x207c0d(0x114)](_0xdb0aad['dbId'],_0xdb0aad[_0x207c0d(0x115)]??'db-'+_0xdb0aad[_0x207c0d(0x107)]);}const _0x1c2fed=[..._0x3e99b2[_0x207c0d(0x111)]()][_0x207c0d(0x10d)](([_0x14fde7,_0x46682e])=>({'dbId':_0x14fde7,'dbName':_0x46682e}));return cache[_0x207c0d(0x114)](_0x532238,_0x1c2fed),_0x1c2fed;}export async function getDbName(_0x40b1e8,_0x260ef1){const _0x1a211a=a104_0xb1dc;try{const _0x11006e=await listDatabases(_0x40b1e8);return _0x11006e[_0x1a211a(0x105)](_0x541e43=>_0x541e43[_0x1a211a(0x107)]===_0x260ef1)?.[_0x1a211a(0x115)];}catch{return undefined;}}
1
+ (function(_0x4c6f16,_0x34470b){const _0x32fffd=a104_0x5468,_0x31674c=_0x4c6f16();while(!![]){try{const _0x11e64b=-parseInt(_0x32fffd(0xe5))/0x1+-parseInt(_0x32fffd(0xea))/0x2*(parseInt(_0x32fffd(0xf2))/0x3)+parseInt(_0x32fffd(0xf5))/0x4*(parseInt(_0x32fffd(0xe9))/0x5)+-parseInt(_0x32fffd(0xeb))/0x6*(-parseInt(_0x32fffd(0xe6))/0x7)+-parseInt(_0x32fffd(0xec))/0x8+-parseInt(_0x32fffd(0xf6))/0x9*(parseInt(_0x32fffd(0xe4))/0xa)+parseInt(_0x32fffd(0xf7))/0xb*(parseInt(_0x32fffd(0xf1))/0xc);if(_0x11e64b===_0x34470b)break;else _0x31674c['push'](_0x31674c['shift']());}catch(_0x18c169){_0x31674c['push'](_0x31674c['shift']());}}}(a104_0x1579,0x98645));function a104_0x1579(){const _0x2704a1=['10iMvkdt','583878XLPQFL','284326jVPxzN','find','dbtableConfig','2215fGXQHd','49102CNShmY','114RXbLHK','8221552zrzcin','dbName','entries','db-','map','2172jpdsNn','51pcKthR','set','dbId','444WXaZMi','9096714BDwErL','172777iaamsP'];a104_0x1579=function(){return _0x2704a1;};return a104_0x1579();}import{listDatasets}from'../core/api-client.js';function a104_0x5468(_0x38127f,_0x51de90){_0x38127f=_0x38127f-0xe4;const _0x1579e8=a104_0x1579();let _0x54684c=_0x1579e8[_0x38127f];return _0x54684c;}const cache=new Map();export async function listDatabases(_0x7a5fde){const _0x1facf8=a104_0x5468;if(cache['has'](_0x7a5fde))return cache['get'](_0x7a5fde);const _0x5dc54b=await listDatasets(_0x7a5fde),_0x28b13c=new Map();for(const _0x2fc5b0 of _0x5dc54b){const _0x3e544b=_0x2fc5b0[_0x1facf8(0xe8)];_0x3e544b?.[_0x1facf8(0xf4)]!=null&&_0x28b13c['set'](_0x3e544b[_0x1facf8(0xf4)],_0x3e544b[_0x1facf8(0xed)]??_0x1facf8(0xef)+_0x3e544b[_0x1facf8(0xf4)]);}const _0x25d4dd=[..._0x28b13c[_0x1facf8(0xee)]()][_0x1facf8(0xf0)](([_0x532467,_0x553188])=>({'dbId':_0x532467,'dbName':_0x553188}));return cache[_0x1facf8(0xf3)](_0x7a5fde,_0x25d4dd),_0x25d4dd;}export async function getDbName(_0x3d1567,_0xa59f7b){const _0x44bf93=a104_0x5468;try{const _0x2d0802=await listDatabases(_0x3d1567);return _0x2d0802[_0x44bf93(0xe7)](_0x356923=>_0x356923[_0x44bf93(0xf4)]===_0xa59f7b)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- const a105_0x2799c7=a105_0x4865;(function(_0x5d7c8d,_0x45c0f1){const _0x1ea699=a105_0x4865,_0x26bfa1=_0x5d7c8d();while(!![]){try{const _0x1eedbf=parseInt(_0x1ea699(0x197))/0x1+-parseInt(_0x1ea699(0x16d))/0x2+-parseInt(_0x1ea699(0x19a))/0x3+-parseInt(_0x1ea699(0x176))/0x4+parseInt(_0x1ea699(0x162))/0x5+-parseInt(_0x1ea699(0x155))/0x6+parseInt(_0x1ea699(0x18b))/0x7;if(_0x1eedbf===_0x45c0f1)break;else _0x26bfa1['push'](_0x26bfa1['shift']());}catch(_0x2d67d7){_0x26bfa1['push'](_0x26bfa1['shift']());}}}(a105_0x4781,0x7b661));import{getRuntimeDomain}from'../constant/domain.js';import{CliError,CliErrors}from'../errors.js';const RESPONSE_KEYS=[a105_0x2799c7(0x18e),a105_0x2799c7(0x19f),a105_0x2799c7(0x194),a105_0x2799c7(0x156),a105_0x2799c7(0x190),a105_0x2799c7(0x185)],HIT_KEYS=[a105_0x2799c7(0x18d),a105_0x2799c7(0x193),a105_0x2799c7(0x17a),a105_0x2799c7(0x177),a105_0x2799c7(0x198),'text',a105_0x2799c7(0x15c),a105_0x2799c7(0x166),a105_0x2799c7(0x172),a105_0x2799c7(0x157),'scoreKind'];export async function searchRuntimeKnowledge(_0x4627c1){const _0x419aae=a105_0x2799c7,_0x214298=_0x4627c1[_0x419aae(0x18f)][_0x419aae(0x169)](),_0x40adb=_0x4627c1[_0x419aae(0x188)]['trim']();if(!_0x214298)throw CliErrors['validation'](_0x419aae(0x19c));if(!_0x4627c1[_0x419aae(0x163)][_0x419aae(0x169)]())throw CliErrors[_0x419aae(0x16f)]();if(!_0x40adb)throw CliErrors[_0x419aae(0x152)](_0x419aae(0x17b));validateTopK(_0x4627c1['topK']);const _0x241b45=getRuntimeDomain()+_0x419aae(0x173);let _0x3eb64c;try{_0x3eb64c=await fetch(_0x241b45,{'method':_0x419aae(0x195),'headers':{'Content-Type':'application/json','X-User-AK':_0x4627c1[_0x419aae(0x163)],'X-Invoke-Source':_0x419aae(0x192)},'body':JSON[_0x419aae(0x15a)]({'appCode':_0x214298,'query':_0x40adb,..._0x4627c1[_0x419aae(0x17d)]!==undefined?{'topK':_0x4627c1['topK']}:{}}),'signal':_0x4627c1['signal']});}catch(_0x392603){if(_0x392603 instanceof CliError)throw _0x392603;if(_0x392603 instanceof Error&&_0x392603['name']===_0x419aae(0x18c))throw _0x392603;throw CliErrors[_0x419aae(0x18a)](_0x419aae(0x171));}if(!hasNoStore(_0x3eb64c[_0x419aae(0x16e)]))throw CliErrors['apiError'](_0x419aae(0x19b));if(_0x3eb64c[_0x419aae(0x15b)]===0x191)throw CliErrors[_0x419aae(0x16f)]();if(!_0x3eb64c['ok'])throw CliErrors[_0x419aae(0x16b)](_0x419aae(0x16a)+_0x3eb64c[_0x419aae(0x15b)]+').');if(!(_0x3eb64c[_0x419aae(0x16e)][_0x419aae(0x153)](_0x419aae(0x15d))??'')[_0x419aae(0x184)]()[_0x419aae(0x175)](_0x419aae(0x170)))throw CliErrors[_0x419aae(0x16b)](_0x419aae(0x187));let _0x161a53;try{_0x161a53=await _0x3eb64c[_0x419aae(0x15e)]();}catch{throw CliErrors['apiError'](_0x419aae(0x17e));}return parseRuntimeSearchResponse(readEnvelopeData(_0x161a53),_0x4627c1[_0x419aae(0x17d)]);}function a105_0x4781(){const _0x1e9dc6=['/client/knowledge-base/search','map','includes','3035688VmFELY','scope','Knowledge\x20search\x20topK\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','response','chunkId','Knowledge\x20search\x20query\x20is\x20required.','test','topK','Runtime\x20knowledge\x20search\x20returned\x20invalid\x20JSON.','public','entries','Runtime\x20knowledge\x20search\x20returned\x20an\x20invalid\x20','runtime','length','toLowerCase','timingsMs','data','Runtime\x20knowledge\x20search\x20returned\x20a\x20non-JSON\x20content\x20type.','query','text','networkError','10348611Kiidep','AbortError','documentId','schemaVersion','appCode','strategyFingerprint','isSafeInteger','cli:lovrabet','revision','total','POST','response\x20envelope','841228EseSLI','title','string','1889652ZIkUmB','Runtime\x20knowledge\x20search\x20response\x20is\x20missing\x20Cache-Control:\x20no-store.','Knowledge\x20search\x20appCode\x20is\x20required.','score','company','profile','validation','get','split','4350558RYOTsf','hits','finalScore','isFinite','isArray','stringify','status','tags','content-type','json','scoreKind','some','personal','1839860vaVlvN','accessKey','number','success','rank','keys','sort','trim','Runtime\x20knowledge\x20search\x20failed\x20(HTTP\x20','apiError','no-store','136466gJlNeV','headers','authRequired','application/json','Runtime\x20knowledge\x20search\x20request\x20failed.','rawScore'];a105_0x4781=function(){return _0x1e9dc6;};return a105_0x4781();}function readEnvelopeData(_0x110e0e){const _0x4ccfbf=a105_0x2799c7,_0x577518=requireRecord(_0x110e0e,_0x4ccfbf(0x196));if(_0x577518[_0x4ccfbf(0x165)]===![])throw CliErrors['apiError']('Runtime\x20knowledge\x20search\x20failed.');if(!(_0x4ccfbf(0x186)in _0x577518))throw invalidContract('response\x20envelope');return _0x577518[_0x4ccfbf(0x186)];}function a105_0x4865(_0x403425,_0x30d25d){_0x403425=_0x403425-0x152;const _0x478136=a105_0x4781();let _0x4865e1=_0x478136[_0x403425];return _0x4865e1;}function validateTopK(_0x1b2da2){const _0x33b72c=a105_0x2799c7;if(_0x1b2da2!==undefined&&(!Number[_0x33b72c(0x191)](_0x1b2da2)||_0x1b2da2<0x1||_0x1b2da2>0x32))throw CliErrors[_0x33b72c(0x152)](_0x33b72c(0x178));}function hasNoStore(_0x4ee0f2){const _0x246aa8=a105_0x2799c7;return(_0x4ee0f2['get']('cache-control')??'')[_0x246aa8(0x154)](',')[_0x246aa8(0x160)](_0x4ed28c=>_0x4ed28c[_0x246aa8(0x169)]()[_0x246aa8(0x184)]()===_0x246aa8(0x16c));}function parseRuntimeSearchResponse(_0x7cbbfa,_0x2246af){const _0x3ee987=a105_0x2799c7,_0x4776e8=requireExactRecord(_0x7cbbfa,RESPONSE_KEYS,_0x3ee987(0x179));if(_0x4776e8[_0x3ee987(0x18e)]!==0x2||_0x4776e8[_0x3ee987(0x19f)]!==_0x3ee987(0x182))throw invalidContract(_0x3ee987(0x19f));if(!Array['isArray'](_0x4776e8['hits'])||_0x4776e8[_0x3ee987(0x156)][_0x3ee987(0x183)]>(_0x2246af??0x32))throw invalidContract(_0x3ee987(0x156));if(typeof _0x4776e8['strategyFingerprint']!==_0x3ee987(0x199)||!/^sha256:[0-9a-f]{64}$/[_0x3ee987(0x17c)](_0x4776e8[_0x3ee987(0x190)]))throw invalidContract('strategyFingerprint');const _0x58a02d=requireRecord(_0x4776e8[_0x3ee987(0x185)],_0x3ee987(0x185)),_0x85a321={};for(const [_0xf66d3a,_0x46269d]of Object[_0x3ee987(0x180)](_0x58a02d)){if(!/^[A-Za-z][A-Za-z0-9]*$/[_0x3ee987(0x17c)](_0xf66d3a)||typeof _0x46269d!==_0x3ee987(0x164)||!Number[_0x3ee987(0x158)](_0x46269d)||_0x46269d<0x0)throw invalidContract(_0x3ee987(0x185));_0x85a321[_0xf66d3a]=_0x46269d;}const _0xffa94d=_0x4776e8[_0x3ee987(0x156)][_0x3ee987(0x174)]((_0x1aa1e3,_0x2852c9)=>parseHit(_0x1aa1e3,_0x2852c9));if(!Number[_0x3ee987(0x191)](_0x4776e8['total'])||_0x4776e8[_0x3ee987(0x194)]!==_0xffa94d[_0x3ee987(0x183)])throw invalidContract(_0x3ee987(0x194));return{'schemaVersion':_0x4776e8['schemaVersion'],'profile':_0x4776e8[_0x3ee987(0x19f)],'total':_0x4776e8[_0x3ee987(0x194)],'strategyFingerprint':_0x4776e8[_0x3ee987(0x190)],'timingsMs':_0x85a321,'hits':_0xffa94d};}function parseHit(_0x146620,_0x1bd3d3){const _0x525251=a105_0x2799c7,_0x470832=requireExactRecord(_0x146620,HIT_KEYS,'hits['+_0x1bd3d3+']'),_0x4eef7f=_0x562a52=>{const _0x375178=a105_0x4865,_0x5633e3=_0x470832[_0x562a52];if(typeof _0x5633e3!==_0x375178(0x199)||!_0x5633e3)throw invalidContract(_0x562a52);return _0x5633e3;};if(!Number[_0x525251(0x191)](_0x470832[_0x525251(0x193)])||_0x470832[_0x525251(0x193)]<0x1)throw invalidContract('revision');if(_0x470832[_0x525251(0x177)]!==_0x525251(0x17f)&&_0x470832[_0x525251(0x177)]!==_0x525251(0x19e)&&_0x470832[_0x525251(0x177)]!==_0x525251(0x161))throw invalidContract(_0x525251(0x177));if(typeof _0x470832[_0x525251(0x198)]!==_0x525251(0x199)||typeof _0x470832[_0x525251(0x189)]!==_0x525251(0x199))throw invalidContract('text');if(!Array[_0x525251(0x159)](_0x470832[_0x525251(0x15c)])||_0x470832[_0x525251(0x15c)]['some'](_0x5b119d=>typeof _0x5b119d!=='string'))throw invalidContract('tags');if(!Number['isSafeInteger'](_0x470832[_0x525251(0x166)])||_0x470832[_0x525251(0x166)]!==_0x1bd3d3+0x1)throw invalidContract(_0x525251(0x166));if(!isFiniteNumber(_0x470832[_0x525251(0x172)])||!isFiniteNumber(_0x470832[_0x525251(0x157)]))throw invalidContract(_0x525251(0x19d));return{'documentId':_0x4eef7f('documentId'),'revision':_0x470832[_0x525251(0x193)],'chunkId':_0x4eef7f(_0x525251(0x17a)),'scope':_0x470832[_0x525251(0x177)],'title':_0x470832[_0x525251(0x198)],'text':_0x470832[_0x525251(0x189)],'tags':[..._0x470832[_0x525251(0x15c)]],'rank':_0x470832[_0x525251(0x166)],'rawScore':_0x470832['rawScore'],'finalScore':_0x470832[_0x525251(0x157)],'scoreKind':_0x4eef7f(_0x525251(0x15f))};}function requireExactRecord(_0x5c9d51,_0x150cd8,_0x4608aa){const _0x22261d=a105_0x2799c7,_0x23ab7d=requireRecord(_0x5c9d51,_0x4608aa),_0x21ab83=Object[_0x22261d(0x167)](_0x23ab7d)[_0x22261d(0x168)](),_0x8f31d5=[..._0x150cd8]['sort']();if(_0x21ab83['length']!==_0x8f31d5[_0x22261d(0x183)]||_0x21ab83['some']((_0x12695e,_0x543f5e)=>_0x12695e!==_0x8f31d5[_0x543f5e]))throw invalidContract(_0x4608aa);return _0x23ab7d;}function requireRecord(_0x1f8b5a,_0x3ac7f5){if(!_0x1f8b5a||typeof _0x1f8b5a!=='object'||Array['isArray'](_0x1f8b5a))throw invalidContract(_0x3ac7f5);return _0x1f8b5a;}function isFiniteNumber(_0x225ffa){const _0x324242=a105_0x2799c7;return typeof _0x225ffa===_0x324242(0x164)&&Number[_0x324242(0x158)](_0x225ffa);}function invalidContract(_0x1fa9ab){const _0x59aa0f=a105_0x2799c7;return CliErrors[_0x59aa0f(0x16b)](_0x59aa0f(0x181)+_0x1fa9ab+'\x20contract.');}
1
+ const a105_0x5cc407=a105_0x529c;(function(_0x86ad2b,_0x375e49){const _0x4a7999=a105_0x529c,_0x27dd53=_0x86ad2b();while(!![]){try{const _0x40b273=-parseInt(_0x4a7999(0x17b))/0x1*(-parseInt(_0x4a7999(0x16e))/0x2)+-parseInt(_0x4a7999(0x1a9))/0x3*(-parseInt(_0x4a7999(0x168))/0x4)+parseInt(_0x4a7999(0x195))/0x5+parseInt(_0x4a7999(0x17e))/0x6+-parseInt(_0x4a7999(0x1a6))/0x7+-parseInt(_0x4a7999(0x1ab))/0x8+-parseInt(_0x4a7999(0x16d))/0x9;if(_0x40b273===_0x375e49)break;else _0x27dd53['push'](_0x27dd53['shift']());}catch(_0x2aa94c){_0x27dd53['push'](_0x27dd53['shift']());}}}(a105_0x2524,0xbde4e));import{getRuntimeDomain}from'../constant/domain.js';import{CliError,CliErrors}from'../errors.js';const RESPONSE_KEYS=[a105_0x5cc407(0x18b),a105_0x5cc407(0x17f),a105_0x5cc407(0x163),a105_0x5cc407(0x192),'strategyFingerprint',a105_0x5cc407(0x1a5)],HIT_KEYS=[a105_0x5cc407(0x1a1),a105_0x5cc407(0x178),a105_0x5cc407(0x19a),a105_0x5cc407(0x167),'title',a105_0x5cc407(0x19e),'tags',a105_0x5cc407(0x16c),'rawScore',a105_0x5cc407(0x172),a105_0x5cc407(0x18c)];export async function searchRuntimeKnowledge(_0x4fd573){const _0x6d27a9=a105_0x5cc407,_0x3f655d=_0x4fd573['appCode'][_0x6d27a9(0x197)](),_0x174e13=_0x4fd573[_0x6d27a9(0x19b)]['trim']();if(!_0x3f655d)throw CliErrors['validation'](_0x6d27a9(0x193));if(!_0x4fd573[_0x6d27a9(0x189)][_0x6d27a9(0x197)]())throw CliErrors[_0x6d27a9(0x1a0)]();if(!_0x174e13)throw CliErrors[_0x6d27a9(0x1ac)]('Knowledge\x20search\x20query\x20is\x20required.');validateTopK(_0x4fd573[_0x6d27a9(0x186)]);const _0x326e8b=getRuntimeDomain()+_0x6d27a9(0x174);let _0x460eb8;try{_0x460eb8=await fetch(_0x326e8b,{'method':_0x6d27a9(0x169),'headers':{'Content-Type':_0x6d27a9(0x1a2),'X-User-AK':_0x4fd573[_0x6d27a9(0x189)],'X-Invoke-Source':_0x6d27a9(0x17c)},'body':JSON['stringify']({'appCode':_0x3f655d,'query':_0x174e13,..._0x4fd573[_0x6d27a9(0x186)]!==undefined?{'topK':_0x4fd573[_0x6d27a9(0x186)]}:{}}),'signal':_0x4fd573['signal']});}catch(_0x59d07f){if(_0x59d07f instanceof CliError)throw _0x59d07f;if(_0x59d07f instanceof Error&&_0x59d07f[_0x6d27a9(0x182)]==='AbortError')throw _0x59d07f;throw CliErrors[_0x6d27a9(0x181)](_0x6d27a9(0x1a8));}if(!hasNoStore(_0x460eb8[_0x6d27a9(0x183)]))throw CliErrors['apiError'](_0x6d27a9(0x1aa));if(_0x460eb8[_0x6d27a9(0x1a7)]===0x191)throw CliErrors[_0x6d27a9(0x1a0)]();if(!_0x460eb8['ok'])throw CliErrors[_0x6d27a9(0x19d)](_0x6d27a9(0x17d)+_0x460eb8[_0x6d27a9(0x1a7)]+').');if(!(_0x460eb8[_0x6d27a9(0x183)][_0x6d27a9(0x16f)](_0x6d27a9(0x18f))??'')[_0x6d27a9(0x17a)]()[_0x6d27a9(0x165)](_0x6d27a9(0x1a2)))throw CliErrors[_0x6d27a9(0x19d)]('Runtime\x20knowledge\x20search\x20returned\x20a\x20non-JSON\x20content\x20type.');let _0x46abb3;try{_0x46abb3=await _0x460eb8[_0x6d27a9(0x199)]();}catch{throw CliErrors['apiError'](_0x6d27a9(0x19f));}return parseRuntimeSearchResponse(readEnvelopeData(_0x46abb3),_0x4fd573[_0x6d27a9(0x186)]);}function readEnvelopeData(_0x52cc1a){const _0x28e669=a105_0x5cc407,_0xa51b56=requireRecord(_0x52cc1a,_0x28e669(0x190));if(_0xa51b56[_0x28e669(0x198)]===![])throw CliErrors[_0x28e669(0x19d)]('Runtime\x20knowledge\x20search\x20failed.');if(!(_0x28e669(0x162)in _0xa51b56))throw invalidContract('response\x20envelope');return _0xa51b56[_0x28e669(0x162)];}function a105_0x2524(){const _0x482512=['Knowledge\x20search\x20topK\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','isArray','revision','personal','toLowerCase','2623IKfEIx','cli:lovrabet','Runtime\x20knowledge\x20search\x20failed\x20(HTTP\x20','4039344BeOXkX','profile','runtime','networkError','name','headers','length','public','topK','some','isFinite','accessKey','object','schemaVersion','scoreKind','score','keys','content-type','response\x20envelope','tags','hits','Knowledge\x20search\x20appCode\x20is\x20required.','string','6042175TuJEJl','no-store','trim','success','json','chunkId','query','hits[','apiError','text','Runtime\x20knowledge\x20search\x20returned\x20invalid\x20JSON.','authRequired','documentId','application/json','split','rawScore','timingsMs','6313832ijCOoK','status','Runtime\x20knowledge\x20search\x20request\x20failed.','256236FdvRul','Runtime\x20knowledge\x20search\x20response\x20is\x20missing\x20Cache-Control:\x20no-store.','1034872ztrGkz','validation','data','total','\x20contract.','includes','strategyFingerprint','scope','60TPsIoD','POST','test','entries','rank','20988693SFwlQs','746SlpSMl','get','number','title','finalScore','sort','/client/knowledge-base/search','isSafeInteger'];a105_0x2524=function(){return _0x482512;};return a105_0x2524();}function a105_0x529c(_0x5c4ca3,_0x9384cf){_0x5c4ca3=_0x5c4ca3-0x162;const _0x252427=a105_0x2524();let _0x529ca6=_0x252427[_0x5c4ca3];return _0x529ca6;}function validateTopK(_0x3693fd){const _0x542db2=a105_0x5cc407;if(_0x3693fd!==undefined&&(!Number[_0x542db2(0x175)](_0x3693fd)||_0x3693fd<0x1||_0x3693fd>0x32))throw CliErrors[_0x542db2(0x1ac)](_0x542db2(0x176));}function hasNoStore(_0x3e3389){const _0x11723c=a105_0x5cc407;return(_0x3e3389[_0x11723c(0x16f)]('cache-control')??'')[_0x11723c(0x1a3)](',')[_0x11723c(0x187)](_0x226034=>_0x226034[_0x11723c(0x197)]()[_0x11723c(0x17a)]()===_0x11723c(0x196));}function parseRuntimeSearchResponse(_0x402a6c,_0x5b851){const _0x4d1b74=a105_0x5cc407,_0xa33d88=requireExactRecord(_0x402a6c,RESPONSE_KEYS,'response');if(_0xa33d88[_0x4d1b74(0x18b)]!==0x2||_0xa33d88[_0x4d1b74(0x17f)]!==_0x4d1b74(0x180))throw invalidContract(_0x4d1b74(0x17f));if(!Array[_0x4d1b74(0x177)](_0xa33d88[_0x4d1b74(0x192)])||_0xa33d88[_0x4d1b74(0x192)][_0x4d1b74(0x184)]>(_0x5b851??0x32))throw invalidContract('hits');if(typeof _0xa33d88['strategyFingerprint']!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x4d1b74(0x16a)](_0xa33d88[_0x4d1b74(0x166)]))throw invalidContract(_0x4d1b74(0x166));const _0x52cdb6=requireRecord(_0xa33d88[_0x4d1b74(0x1a5)],_0x4d1b74(0x1a5)),_0x2c56bb={};for(const [_0x383dc7,_0x2ab734]of Object[_0x4d1b74(0x16b)](_0x52cdb6)){if(!/^[A-Za-z][A-Za-z0-9]*$/[_0x4d1b74(0x16a)](_0x383dc7)||typeof _0x2ab734!==_0x4d1b74(0x170)||!Number['isFinite'](_0x2ab734)||_0x2ab734<0x0)throw invalidContract(_0x4d1b74(0x1a5));_0x2c56bb[_0x383dc7]=_0x2ab734;}const _0x27855c=_0xa33d88[_0x4d1b74(0x192)]['map']((_0x44d9d0,_0xf5e50a)=>parseHit(_0x44d9d0,_0xf5e50a));if(!Number[_0x4d1b74(0x175)](_0xa33d88[_0x4d1b74(0x163)])||_0xa33d88[_0x4d1b74(0x163)]!==_0x27855c[_0x4d1b74(0x184)])throw invalidContract('total');return{'schemaVersion':_0xa33d88[_0x4d1b74(0x18b)],'profile':_0xa33d88[_0x4d1b74(0x17f)],'total':_0xa33d88[_0x4d1b74(0x163)],'strategyFingerprint':_0xa33d88['strategyFingerprint'],'timingsMs':_0x2c56bb,'hits':_0x27855c};}function parseHit(_0x41c120,_0x2b5b71){const _0x327921=a105_0x5cc407,_0x14a732=requireExactRecord(_0x41c120,HIT_KEYS,_0x327921(0x19c)+_0x2b5b71+']'),_0x4b471e=_0x2296c1=>{const _0x22fbe5=_0x327921,_0x2a77d9=_0x14a732[_0x2296c1];if(typeof _0x2a77d9!==_0x22fbe5(0x194)||!_0x2a77d9)throw invalidContract(_0x2296c1);return _0x2a77d9;};if(!Number['isSafeInteger'](_0x14a732[_0x327921(0x178)])||_0x14a732[_0x327921(0x178)]<0x1)throw invalidContract(_0x327921(0x178));if(_0x14a732['scope']!==_0x327921(0x185)&&_0x14a732[_0x327921(0x167)]!=='company'&&_0x14a732[_0x327921(0x167)]!==_0x327921(0x179))throw invalidContract('scope');if(typeof _0x14a732[_0x327921(0x171)]!==_0x327921(0x194)||typeof _0x14a732[_0x327921(0x19e)]!==_0x327921(0x194))throw invalidContract(_0x327921(0x19e));if(!Array[_0x327921(0x177)](_0x14a732[_0x327921(0x191)])||_0x14a732[_0x327921(0x191)][_0x327921(0x187)](_0x50576b=>typeof _0x50576b!==_0x327921(0x194)))throw invalidContract(_0x327921(0x191));if(!Number[_0x327921(0x175)](_0x14a732[_0x327921(0x16c)])||_0x14a732[_0x327921(0x16c)]!==_0x2b5b71+0x1)throw invalidContract(_0x327921(0x16c));if(!isFiniteNumber(_0x14a732['rawScore'])||!isFiniteNumber(_0x14a732[_0x327921(0x172)]))throw invalidContract(_0x327921(0x18d));return{'documentId':_0x4b471e(_0x327921(0x1a1)),'revision':_0x14a732[_0x327921(0x178)],'chunkId':_0x4b471e(_0x327921(0x19a)),'scope':_0x14a732['scope'],'title':_0x14a732['title'],'text':_0x14a732['text'],'tags':[..._0x14a732['tags']],'rank':_0x14a732[_0x327921(0x16c)],'rawScore':_0x14a732[_0x327921(0x1a4)],'finalScore':_0x14a732[_0x327921(0x172)],'scoreKind':_0x4b471e('scoreKind')};}function requireExactRecord(_0xb7f376,_0x5a0ee0,_0x496830){const _0xb003b4=a105_0x5cc407,_0x2caf6e=requireRecord(_0xb7f376,_0x496830),_0x3661c6=Object[_0xb003b4(0x18e)](_0x2caf6e)['sort'](),_0x877208=[..._0x5a0ee0][_0xb003b4(0x173)]();if(_0x3661c6[_0xb003b4(0x184)]!==_0x877208[_0xb003b4(0x184)]||_0x3661c6[_0xb003b4(0x187)]((_0x3f562b,_0x4711f1)=>_0x3f562b!==_0x877208[_0x4711f1]))throw invalidContract(_0x496830);return _0x2caf6e;}function requireRecord(_0x43209b,_0x4474ad){const _0x395f72=a105_0x5cc407;if(!_0x43209b||typeof _0x43209b!==_0x395f72(0x18a)||Array[_0x395f72(0x177)](_0x43209b))throw invalidContract(_0x4474ad);return _0x43209b;}function isFiniteNumber(_0x2a032a){const _0x22833d=a105_0x5cc407;return typeof _0x2a032a==='number'&&Number[_0x22833d(0x188)](_0x2a032a);}function invalidContract(_0x412cf0){const _0x53c76e=a105_0x5cc407;return CliErrors[_0x53c76e(0x19d)]('Runtime\x20knowledge\x20search\x20returned\x20an\x20invalid\x20'+_0x412cf0+_0x53c76e(0x164));}
@@ -1 +1 @@
1
- (function(_0x150828,_0x5b101f){const _0x5d10e0=a106_0x3f23,_0x5392c5=_0x150828();while(!![]){try{const _0x4b6f51=parseInt(_0x5d10e0(0xda))/0x1+parseInt(_0x5d10e0(0xec))/0x2+parseInt(_0x5d10e0(0xf6))/0x3+parseInt(_0x5d10e0(0xee))/0x4+-parseInt(_0x5d10e0(0x101))/0x5*(parseInt(_0x5d10e0(0xe4))/0x6)+parseInt(_0x5d10e0(0xf9))/0x7*(parseInt(_0x5d10e0(0xfe))/0x8)+parseInt(_0x5d10e0(0xea))/0x9;if(_0x4b6f51===_0x5b101f)break;else _0x5392c5['push'](_0x5392c5['shift']());}catch(_0x384bdf){_0x5392c5['push'](_0x5392c5['shift']());}}}(a106_0x6a23,0x70503));function a106_0x3f23(_0x2ceb9f,_0x3a0d02){_0x2ceb9f=_0x2ceb9f-0xd9;const _0x6a23be=a106_0x6a23();let _0x3f23f4=_0x6a23be[_0x2ceb9f];return _0x3f23f4;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a106_0x6a23(){const _0x2a3f4b=['data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','appCode','data\x20aggregate\x20--params.aggregate[','\x22.\x20','update','execute','636WjhShC','isArray','invokeSource','delete','string','accessKey','5273055ymeWUp','dataset_','192752uaSGIE','models','1506676fxPPzR','trim','sql','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','validation','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.',']\x20must\x20be\x20an\x20object.','aggregate','243483VnaOLO','getOne',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','627963akiTlT','batchCreate','authMode','column','env','8hmYarF','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','bff','38555VPfXmL','object','47591eZQdyO','field'];a106_0x6a23=function(){return _0x2a3f4b;};return a106_0x6a23();}let _client,restoreResponseJsonParser;export function initSdkClient(_0x227278){const _0x438001=a106_0x3f23;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x227278[_0x438001(0xdf)],'env':_0x227278[_0x438001(0xfd)],'runtimeDomain':_0x227278['runtimeDomain'],'authMode':_0x227278[_0x438001(0xfb)],..._0x227278[_0x438001(0xe9)]?{'accessKey':_0x227278['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x438001(0xe6)]}}});}catch(_0x4859f6){clearSdkClient();throw _0x4859f6;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0xfb52ed=a106_0x3f23;if(!_client)throw new Error(_0xfb52ed(0xf3));return _client;}function normalizeAggregateParams(_0x1048db){const _0x23810d=a106_0x3f23,_0x465939=_0x1048db['aggregate'];if(_0x465939===undefined)return _0x1048db;if(!Array['isArray'](_0x465939))throw CliErrors[_0x23810d(0xf2)](_0x23810d(0xdc));return{..._0x1048db,'aggregate':_0x465939['map']((_0x546384,_0x3535c1)=>{const _0x51ac25=_0x23810d;if(!_0x546384||typeof _0x546384!==_0x51ac25(0xd9)||Array[_0x51ac25(0xe5)](_0x546384))throw CliErrors[_0x51ac25(0xf2)](_0x51ac25(0xe0)+_0x3535c1+_0x51ac25(0xf4));const _0x3b954d=_0x546384[_0x51ac25(0xfc)]??_0x546384[_0x51ac25(0xdb)];if(typeof _0x3b954d!==_0x51ac25(0xe8)||_0x3b954d[_0x51ac25(0xef)]()==='')throw CliErrors['validation'](_0x51ac25(0xe0)+_0x3535c1+_0x51ac25(0xf8));const _0x4a0384={..._0x546384,'column':_0x3b954d};return delete _0x4a0384[_0x51ac25(0xdb)],_0x4a0384;})};}export async function executeData(_0x38753e,_0xa11130,_0x33b64c){const _0x4937e2=a106_0x3f23,_0x4a9920=ensureClient(),_0xc73462=_0x4937e2(0xeb)+_0x38753e,_0x4c8129=_0x4a9920[_0x4937e2(0xed)][_0xc73462];if(!_0x4c8129||typeof _0x4c8129[_0xa11130]!=='function')throw new Error(_0x4937e2(0xff)+_0xa11130+_0x4937e2(0xe1)+_0x4937e2(0xdd));if(_0xa11130===_0x4937e2(0xfa))return _0x4c8129['batchCreate'](parseBatchCreateItemsFromParams(_0x33b64c));const _0x2fc106=_0x33b64c!==undefined&&_0x33b64c!==null&&!Array[_0x4937e2(0xe5)](_0x33b64c)?_0x33b64c:{};switch(_0xa11130){case _0x4937e2(0xf7):{const _0x33c52a=_0x2fc106['id'];if(_0x33c52a===undefined||_0x33c52a===null)throw new Error(_0x4937e2(0xde));return _0x4c8129[_0x4937e2(0xf7)](_0x33c52a);}case'update':{const {id:_0x1689f4,..._0x273485}=_0x2fc106;if(_0x1689f4===undefined||_0x1689f4===null)throw new Error(_0x4937e2(0xf1));return _0x4c8129[_0x4937e2(0xe2)](_0x1689f4,_0x273485);}case _0x4937e2(0xe7):{const _0x22376b=_0x2fc106['id'];if(_0x22376b===undefined||_0x22376b===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x4c8129['delete'](_0x22376b);}case'aggregate':return _0x4c8129[_0x4937e2(0xf5)](normalizeAggregateParams(_0x2fc106));default:return _0x4c8129[_0xa11130](_0x2fc106);}}export async function executeSdkSql(_0x40598a,_0x4a11de){const _0x307d11=a106_0x3f23,_0xb079ba=ensureClient();return _0xb079ba[_0x307d11(0xf0)][_0x307d11(0xe3)]({'sqlCode':_0x40598a,'params':_0x4a11de});}export async function executeSdkBff(_0x534822,_0x127a0f){const _0x5982e8=a106_0x3f23,_0x23dc31=ensureClient();return _0x23dc31[_0x5982e8(0x100)][_0x5982e8(0xe3)]({'scriptName':_0x534822,'params':_0x127a0f});}
1
+ (function(_0x178500,_0xd62c05){const _0x2a1d96=a106_0x2599,_0x301cb4=_0x178500();while(!![]){try{const _0x5425a4=-parseInt(_0x2a1d96(0xf9))/0x1+-parseInt(_0x2a1d96(0xf2))/0x2*(-parseInt(_0x2a1d96(0xfc))/0x3)+parseInt(_0x2a1d96(0xe3))/0x4*(-parseInt(_0x2a1d96(0xdb))/0x5)+parseInt(_0x2a1d96(0xe0))/0x6+-parseInt(_0x2a1d96(0xd7))/0x7*(parseInt(_0x2a1d96(0xf4))/0x8)+parseInt(_0x2a1d96(0xfb))/0x9+parseInt(_0x2a1d96(0xdf))/0xa*(parseInt(_0x2a1d96(0xd8))/0xb);if(_0x5425a4===_0xd62c05)break;else _0x301cb4['push'](_0x301cb4['shift']());}catch(_0xab0306){_0x301cb4['push'](_0x301cb4['shift']());}}}(a106_0x39c8,0xcf3c8));function a106_0x39c8(){const _0x3ec593=['data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','authMode','object','getOne','7qyBYuv','1188tptRhZ','validation','function','415VICfuj','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','runtimeDomain','data\x20aggregate\x20--params.aggregate[','265730WSnzSV','449268ObHffE','bff','appCode','81376iHzCRx','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','execute',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','sql','aggregate','\x22.\x20','env','field','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.',']\x20must\x20be\x20an\x20object.','trim','isArray','map','10ZldVrB','update','12815720mhClSy','delete','string','invokeSource','batchCreate','69145kJjVtV','models','481365oRawEs','726153RnlJtZ','accessKey'];a106_0x39c8=function(){return _0x3ec593;};return a106_0x39c8();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x3c2400){const _0x1ced1c=a106_0x2599;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x3c2400[_0x1ced1c(0xe2)],'env':_0x3c2400[_0x1ced1c(0xeb)],'runtimeDomain':_0x3c2400[_0x1ced1c(0xdd)],'authMode':_0x3c2400[_0x1ced1c(0xff)],..._0x3c2400[_0x1ced1c(0xfd)]?{'accessKey':_0x3c2400['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1ced1c(0xf7)]}}});}catch(_0x2e4c09){clearSdkClient();throw _0x2e4c09;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function a106_0x2599(_0x296266,_0x4abb50){_0x296266=_0x296266-0xd5;const _0x39c8ad=a106_0x39c8();let _0x2599fd=_0x39c8ad[_0x296266];return _0x2599fd;}function ensureClient(){const _0x3b84f5=a106_0x2599;if(!_client)throw new Error(_0x3b84f5(0xed));return _client;}function normalizeAggregateParams(_0x3369bc){const _0x32c04a=a106_0x2599,_0x4b364a=_0x3369bc['aggregate'];if(_0x4b364a===undefined)return _0x3369bc;if(!Array[_0x32c04a(0xf0)](_0x4b364a))throw CliErrors['validation'](_0x32c04a(0xfe));return{..._0x3369bc,'aggregate':_0x4b364a[_0x32c04a(0xf1)]((_0x331c81,_0x466d75)=>{const _0x33803d=_0x32c04a;if(!_0x331c81||typeof _0x331c81!==_0x33803d(0xd5)||Array['isArray'](_0x331c81))throw CliErrors['validation'](_0x33803d(0xde)+_0x466d75+_0x33803d(0xee));const _0x43cc3b=_0x331c81['column']??_0x331c81['field'];if(typeof _0x43cc3b!==_0x33803d(0xf6)||_0x43cc3b[_0x33803d(0xef)]()==='')throw CliErrors[_0x33803d(0xd9)]('data\x20aggregate\x20--params.aggregate['+_0x466d75+_0x33803d(0xe6));const _0x294ec4={..._0x331c81,'column':_0x43cc3b};return delete _0x294ec4[_0x33803d(0xec)],_0x294ec4;})};}export async function executeData(_0x37782d,_0x51b2d4,_0x4bbd60){const _0x1a153d=a106_0x2599,_0x1901b1=ensureClient(),_0x1c284f='dataset_'+_0x37782d,_0x20d241=_0x1901b1[_0x1a153d(0xfa)][_0x1c284f];if(!_0x20d241||typeof _0x20d241[_0x51b2d4]!==_0x1a153d(0xda))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x51b2d4+_0x1a153d(0xea)+_0x1a153d(0xe7));if(_0x51b2d4===_0x1a153d(0xf8))return _0x20d241[_0x1a153d(0xf8)](parseBatchCreateItemsFromParams(_0x4bbd60));const _0xbe5449=_0x4bbd60!==undefined&&_0x4bbd60!==null&&!Array[_0x1a153d(0xf0)](_0x4bbd60)?_0x4bbd60:{};switch(_0x51b2d4){case _0x1a153d(0xd6):{const _0x5b295e=_0xbe5449['id'];if(_0x5b295e===undefined||_0x5b295e===null)throw new Error(_0x1a153d(0xdc));return _0x20d241[_0x1a153d(0xd6)](_0x5b295e);}case _0x1a153d(0xf3):{const {id:_0x3d3c32,..._0x5e0c41}=_0xbe5449;if(_0x3d3c32===undefined||_0x3d3c32===null)throw new Error(_0x1a153d(0xe4));return _0x20d241[_0x1a153d(0xf3)](_0x3d3c32,_0x5e0c41);}case _0x1a153d(0xf5):{const _0x39976f=_0xbe5449['id'];if(_0x39976f===undefined||_0x39976f===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x20d241['delete'](_0x39976f);}case'aggregate':return _0x20d241[_0x1a153d(0xe9)](normalizeAggregateParams(_0xbe5449));default:return _0x20d241[_0x51b2d4](_0xbe5449);}}export async function executeSdkSql(_0x49963a,_0x5b133a){const _0x42a8bd=a106_0x2599,_0x2899da=ensureClient();return _0x2899da[_0x42a8bd(0xe8)][_0x42a8bd(0xe5)]({'sqlCode':_0x49963a,'params':_0x5b133a});}export async function executeSdkBff(_0x36e304,_0x372760){const _0x3db4cc=a106_0x2599,_0x318bd4=ensureClient();return _0x318bd4[_0x3db4cc(0xe1)][_0x3db4cc(0xe5)]({'scriptName':_0x36e304,'params':_0x372760});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a107_0x5bba88=a107_0x2e96;function a107_0x2e96(_0x505c94,_0x41aad0){_0x505c94=_0x505c94-0xfd;const _0x28d0d5=a107_0x28d0();let _0x2e96c5=_0x28d0d5[_0x505c94];return _0x2e96c5;}(function(_0x190e27,_0x26d264){const _0x112410=a107_0x2e96,_0x1c4d21=_0x190e27();while(!![]){try{const _0x591055=-parseInt(_0x112410(0x105))/0x1*(-parseInt(_0x112410(0xff))/0x2)+parseInt(_0x112410(0x103))/0x3*(-parseInt(_0x112410(0x10c))/0x4)+-parseInt(_0x112410(0x10a))/0x5+-parseInt(_0x112410(0x10b))/0x6*(-parseInt(_0x112410(0xfd))/0x7)+-parseInt(_0x112410(0x102))/0x8*(-parseInt(_0x112410(0x109))/0x9)+parseInt(_0x112410(0x112))/0xa*(parseInt(_0x112410(0x108))/0xb)+-parseInt(_0x112410(0x104))/0xc;if(_0x591055===_0x26d264)break;else _0x1c4d21['push'](_0x1c4d21['shift']());}catch(_0x577542){_0x1c4d21['push'](_0x1c4d21['shift']());}}}(a107_0x28d0,0x67d2b));function a107_0x28d0(){const _0x57bdf4=['88maJJap','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','Command\x20`','Configure\x20accessKey\x20in\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','112490HpLBNl','2709IhaTIz','\x20file.','592842caeXVu','\x20or\x20run\x20`','newConfigFileName','80008xYKEqq','429sxPATk','7744512eulASj','2eZALZP','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','407PCAWFJ','27fVsbrg','3400330EBoSCG','11082UMyFnC'];a107_0x28d0=function(){return _0x57bdf4;};return a107_0x28d0();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a107_0x5bba88(0x10f)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+a107_0x5bba88(0x100)+CLI_BIN_NAME+a107_0x5bba88(0x106),'configMissingHint':a107_0x5bba88(0x107)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+'.','notInProjectHint':a107_0x5bba88(0x110)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+a107_0x5bba88(0xfe)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x186a3f,_0x39c9bd)=>new CliError('rate_limited',0x2,_0x186a3f,_0x39c9bd),'nativeToolRequired':_0x18134d=>new CliError('native_tool_required',0x1,a107_0x5bba88(0x10e)+_0x18134d+a107_0x5bba88(0x10d),a107_0x5bba88(0x111))};
1
+ const a107_0x24a896=a107_0x31e9;function a107_0x1f03(){const _0x1a7944=['1135430IlRkPY','735423chqjpL','2631786QHRRjQ','7hfzxbK','Configure\x20accessKey\x20in\x20','4019601gfDGxd','2698120dweIbB','native_tool_required','rate_limited','12340197uzMUSE','2134520weVXTb','1gTDmcW','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','4nnZFft','newConfigFileName','143orQxIi','Command\x20`','8twfSWX','1020lTiGkH'];a107_0x1f03=function(){return _0x1a7944;};return a107_0x1f03();}(function(_0xa701ac,_0xe7cfb){const _0x483d14=a107_0x31e9,_0x27de60=_0xa701ac();while(!![]){try{const _0xd29f9e=parseInt(_0x483d14(0xb7))/0x1*(parseInt(_0x483d14(0xb2))/0x2)+-parseInt(_0x483d14(0xb1))/0x3*(-parseInt(_0x483d14(0xba))/0x4)+-parseInt(_0x483d14(0xb6))/0x5+parseInt(_0x483d14(0xc2))/0x6*(parseInt(_0x483d14(0xc3))/0x7)+parseInt(_0x483d14(0xbe))/0x8*(parseInt(_0x483d14(0xb5))/0x9)+parseInt(_0x483d14(0xc0))/0xa*(parseInt(_0x483d14(0xbc))/0xb)+-parseInt(_0x483d14(0xbf))/0xc*(parseInt(_0x483d14(0xc1))/0xd);if(_0xd29f9e===_0xe7cfb)break;else _0x27de60['push'](_0x27de60['shift']());}catch(_0x3fcaba){_0x27de60['push'](_0x27de60['shift']());}}}(a107_0x1f03,0xb47ef));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a107_0x31e9(_0x4dd9d1,_0x116536){_0x4dd9d1=_0x4dd9d1-0xb1;const _0x1f030f=a107_0x1f03();let _0x31e9ce=_0x1f030f[_0x4dd9d1];return _0x31e9ce;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a107_0x24a896(0xc4)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a107_0x24a896(0xb8)+PRODUCT_CONFIG[a107_0x24a896(0xbb)]+a107_0x24a896(0xb9)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x2caf22,_0xa4d99b)=>new CliError(a107_0x24a896(0xb4),0x2,_0x2caf22,_0xa4d99b),'nativeToolRequired':_0xa2af7a=>new CliError(a107_0x24a896(0xb3),0x1,a107_0x24a896(0xbd)+_0xa2af7a+'`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.')};
@@ -1 +1 @@
1
- (function(_0x8c98f7,_0x114b6e){var _0x14abe9=a108_0x2d3f,_0x2bdada=_0x8c98f7();while(!![]){try{var _0x5879e7=parseInt(_0x14abe9(0x1d3))/0x1+parseInt(_0x14abe9(0x1d1))/0x2*(parseInt(_0x14abe9(0x1ce))/0x3)+-parseInt(_0x14abe9(0x1cc))/0x4+-parseInt(_0x14abe9(0x1cd))/0x5+parseInt(_0x14abe9(0x1cf))/0x6*(-parseInt(_0x14abe9(0x1cb))/0x7)+parseInt(_0x14abe9(0x1ca))/0x8+parseInt(_0x14abe9(0x1d0))/0x9*(-parseInt(_0x14abe9(0x1d2))/0xa);if(_0x5879e7===_0x114b6e)break;else _0x2bdada['push'](_0x2bdada['shift']());}catch(_0x177e63){_0x2bdada['push'](_0x2bdada['shift']());}}}(a108_0x49ac,0x73850));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a108_0x2d3f(_0x193d73,_0x13303f){_0x193d73=_0x193d73-0x1ca;var _0x49acf4=a108_0x49ac();var _0x2d3fc8=_0x49acf4[_0x193d73];return _0x2d3fc8;}import{buildAllFlags as a108_0x367260}from'@lovrabet/cli-framework';function a108_0x49ac(){var _0x23e0ff=['14sToEaS','145968NDjBoB','3202700AWgMba','3kZclad','41700bmpVaf','1179sdUyCz','129838PHkTfo','25230RJwwXF','581667hNeylA','6784216lllGgR'];a108_0x49ac=function(){return _0x23e0ff;};return a108_0x49ac();}export function buildAllFlags(_0x3d8015){return a108_0x367260(_0x3d8015,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x29f3d2,_0x4f35ee){var _0x19d386=a108_0x46d4,_0x5bbbc9=_0x29f3d2();while(!![]){try{var _0x354357=-parseInt(_0x19d386(0x15c))/0x1+-parseInt(_0x19d386(0x15b))/0x2*(-parseInt(_0x19d386(0x157))/0x3)+-parseInt(_0x19d386(0x160))/0x4*(-parseInt(_0x19d386(0x159))/0x5)+-parseInt(_0x19d386(0x161))/0x6*(parseInt(_0x19d386(0x15a))/0x7)+parseInt(_0x19d386(0x162))/0x8*(-parseInt(_0x19d386(0x156))/0x9)+parseInt(_0x19d386(0x15d))/0xa*(-parseInt(_0x19d386(0x158))/0xb)+parseInt(_0x19d386(0x15e))/0xc*(parseInt(_0x19d386(0x15f))/0xd);if(_0x354357===_0x4f35ee)break;else _0x5bbbc9['push'](_0x5bbbc9['shift']());}catch(_0x4c1447){_0x5bbbc9['push'](_0x5bbbc9['shift']());}}}(a108_0xf473,0x1c32a));function a108_0xf473(){var _0x4ddb57=['204044YRkjlG','354VMKTIk','82864fBdMZA','63SgUMCC','9mbnJcA','33gqfUqn','5LqPBnO','11291hXOnBn','36136HKbBqT','90021kZxhpz','361690yGFsFn','48eZuRKK','1223573LUtUSD'];a108_0xf473=function(){return _0x4ddb57;};return a108_0xf473();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a108_0x46d4(_0x5c4077,_0x5b0183){_0x5c4077=_0x5c4077-0x156;var _0xf47364=a108_0xf473();var _0x46d447=_0xf47364[_0x5c4077];return _0x46d447;}import{buildAllFlags as a108_0x5ce7af}from'@lovrabet/cli-framework';export function buildAllFlags(_0x185ab1){return a108_0x5ce7af(_0x185ab1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x539426,_0xbd875a){const _0x11cade=a109_0x4b3e,_0x1f7a1a=_0x539426();while(!![]){try{const _0xcf6729=parseInt(_0x11cade(0x76))/0x1+parseInt(_0x11cade(0x6c))/0x2*(-parseInt(_0x11cade(0x77))/0x3)+-parseInt(_0x11cade(0x72))/0x4+parseInt(_0x11cade(0x6d))/0x5*(parseInt(_0x11cade(0x70))/0x6)+parseInt(_0x11cade(0x75))/0x7*(-parseInt(_0x11cade(0x6e))/0x8)+parseInt(_0x11cade(0x6f))/0x9+parseInt(_0x11cade(0x74))/0xa;if(_0xcf6729===_0xbd875a)break;else _0x1f7a1a['push'](_0x1f7a1a['shift']());}catch(_0x28fe84){_0x1f7a1a['push'](_0x1f7a1a['shift']());}}}(a109_0x66e8,0x45247));function a109_0x66e8(){const _0x5d4bf1=['21765HowmDQ','40gwuAXM','2654226YBOMIy','306ekuNAt','description','1625424UooojW','body','2564970gjXNzy','15197cBDMAn','163737tGoFYG','33819RzMzkF','42wbNkoN'];a109_0x66e8=function(){return _0x5d4bf1;};return a109_0x66e8();}function a109_0x4b3e(_0x26705e,_0x5d5ccb){_0x26705e=_0x26705e-0x6c;const _0x66e843=a109_0x66e8();let _0x4b3e66=_0x66e843[_0x26705e];return _0x4b3e66;}export function dryRun(_0x26e57a,_0x53a484){const _0x5a3569={'method':_0x26e57a,'url':_0x53a484},_0xba6a9a={'body'(_0x1c0cd7){const _0x4abe19=a109_0x4b3e;return _0x5a3569[_0x4abe19(0x73)]=_0x1c0cd7,_0xba6a9a;},'description'(_0x35821b){const _0x5855de=a109_0x4b3e;return _0x5a3569[_0x5855de(0x71)]=_0x35821b,_0xba6a9a;},'build'(){return{..._0x5a3569};}};return _0xba6a9a;}
1
+ function a109_0x14ad(){const _0x43c5df=['59941GWXwbU','943710wlodnw','2stWZgs','155462DuAABc','108108urfoCP','body','167815PTeeHD','162kCSIVz','9RZQIxq','709880xVslTQ','4WNRQQU','4213044TeIifV'];a109_0x14ad=function(){return _0x43c5df;};return a109_0x14ad();}function a109_0x5899(_0x4a3729,_0x2b4227){_0x4a3729=_0x4a3729-0x1f2;const _0x14adb6=a109_0x14ad();let _0x589957=_0x14adb6[_0x4a3729];return _0x589957;}(function(_0x2630a1,_0x538187){const _0x591eaf=a109_0x5899,_0x15a449=_0x2630a1();while(!![]){try{const _0x1a1d72=parseInt(_0x591eaf(0x1f7))/0x1*(parseInt(_0x591eaf(0x1f6))/0x2)+-parseInt(_0x591eaf(0x1f8))/0x3+-parseInt(_0x591eaf(0x1f2))/0x4*(parseInt(_0x591eaf(0x1fa))/0x5)+-parseInt(_0x591eaf(0x1fb))/0x6*(-parseInt(_0x591eaf(0x1f4))/0x7)+parseInt(_0x591eaf(0x1fd))/0x8*(parseInt(_0x591eaf(0x1fc))/0x9)+parseInt(_0x591eaf(0x1f5))/0xa+-parseInt(_0x591eaf(0x1f3))/0xb;if(_0x1a1d72===_0x538187)break;else _0x15a449['push'](_0x15a449['shift']());}catch(_0x4da5a3){_0x15a449['push'](_0x15a449['shift']());}}}(a109_0x14ad,0x1c9ae));export function dryRun(_0x3623c7,_0x11243f){const _0x2da7c7={'method':_0x3623c7,'url':_0x11243f},_0x37dadf={'body'(_0x3819fb){const _0x4fccd0=a109_0x5899;return _0x2da7c7[_0x4fccd0(0x1f9)]=_0x3819fb,_0x37dadf;},'description'(_0x54aeb8){return _0x2da7c7['description']=_0x54aeb8,_0x37dadf;},'build'(){return{..._0x2da7c7};}};return _0x37dadf;}
@@ -1 +1 @@
1
- const a110_0x544437=a110_0x2485;(function(_0xb5facb,_0x42f9af){const _0xfa52fd=a110_0x2485,_0x9dd0d5=_0xb5facb();while(!![]){try{const _0x5ac84e=parseInt(_0xfa52fd(0x7e))/0x1+parseInt(_0xfa52fd(0x82))/0x2*(parseInt(_0xfa52fd(0x7d))/0x3)+-parseInt(_0xfa52fd(0x7b))/0x4*(-parseInt(_0xfa52fd(0x7f))/0x5)+-parseInt(_0xfa52fd(0x80))/0x6*(parseInt(_0xfa52fd(0x84))/0x7)+-parseInt(_0xfa52fd(0x78))/0x8*(parseInt(_0xfa52fd(0x7a))/0x9)+parseInt(_0xfa52fd(0x7c))/0xa+-parseInt(_0xfa52fd(0x79))/0xb;if(_0x5ac84e===_0x42f9af)break;else _0x9dd0d5['push'](_0x9dd0d5['shift']());}catch(_0x20fb9a){_0x9dd0d5['push'](_0x9dd0d5['shift']());}}}(a110_0x8ed5,0xb97fe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a110_0x8ed5(){const _0x4b84c3=['14vDbzIa','40272SVVPiZ','18691750gnHBCv','2619CkHgTX','4EwDBAx','10164690vPoCWC','1505919nCOWNQ','1334165axchGG','4156285AnaGQu','2291580uYOjJZ','parseFlags','6uiMRPb','validateFlags'];a110_0x8ed5=function(){return _0x4b84c3;};return a110_0x8ed5();}const helpers=createFlagHelpers(CliErrors);function a110_0x2485(_0x5bf201,_0x4016bd){_0x5bf201=_0x5bf201-0x78;const _0x8ed534=a110_0x8ed5();let _0x248560=_0x8ed534[_0x5bf201];return _0x248560;}export const parseFlags=helpers[a110_0x544437(0x81)];export const validateFlags=helpers[a110_0x544437(0x83)];
1
+ const a110_0x109698=a110_0x488a;(function(_0x2d5543,_0x4eecd9){const _0x259ff1=a110_0x488a,_0x4da310=_0x2d5543();while(!![]){try{const _0x5e6018=parseInt(_0x259ff1(0x19c))/0x1+parseInt(_0x259ff1(0x1a2))/0x2+parseInt(_0x259ff1(0x19e))/0x3+parseInt(_0x259ff1(0x19f))/0x4+parseInt(_0x259ff1(0x1a0))/0x5*(-parseInt(_0x259ff1(0x1a3))/0x6)+parseInt(_0x259ff1(0x19d))/0x7+-parseInt(_0x259ff1(0x1a1))/0x8;if(_0x5e6018===_0x4eecd9)break;else _0x4da310['push'](_0x4da310['shift']());}catch(_0x5c3c87){_0x4da310['push'](_0x4da310['shift']());}}}(a110_0x3898,0x7e86e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a110_0x488a(_0x1efe6f,_0x7c956b){_0x1efe6f=_0x1efe6f-0x19c;const _0x3898b5=a110_0x3898();let _0x488a77=_0x3898b5[_0x1efe6f];return _0x488a77;}function a110_0x3898(){const _0x2171ee=['141096dNFTzS','validateFlags','740483gwdyWT','1456028vTHCqa','2278605XvSsxD','2946252PvZRep','115PhDXTs','11393008XAfZeT','77326NjoCxF'];a110_0x3898=function(){return _0x2171ee;};return a110_0x3898();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a110_0x109698(0x1a4)];