@lovrabet/lovrabet-cli 2.1.7-beta.4 → 2.1.7

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 (112) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -1
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/service-order.js +1 -0
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2d52b5,_0x1d4878){const _0x1d5550=a74_0x590d,_0x20f91b=_0x2d52b5();while(!![]){try{const _0x3eed50=-parseInt(_0x1d5550(0x12a))/0x1+-parseInt(_0x1d5550(0x120))/0x2*(-parseInt(_0x1d5550(0x123))/0x3)+-parseInt(_0x1d5550(0x128))/0x4*(-parseInt(_0x1d5550(0x126))/0x5)+parseInt(_0x1d5550(0x127))/0x6+-parseInt(_0x1d5550(0x124))/0x7+-parseInt(_0x1d5550(0x122))/0x8+-parseInt(_0x1d5550(0x125))/0x9*(-parseInt(_0x1d5550(0x121))/0xa);if(_0x3eed50===_0x1d4878)break;else _0x20f91b['push'](_0x20f91b['shift']());}catch(_0x2c33fa){_0x20f91b['push'](_0x20f91b['shift']());}}}(a74_0x1ea6,0x9d3ba));function a74_0x1ea6(){const _0x1875ad=['4EXSpaS','description','907782iDYoOj','495182Wejwng','4613530Jzmmrt','9351400lUiNmX','3RKyGVC','4208330kzuYwU','27NRLKYO','5880775EzNYuq','3084708jmKNAQ'];a74_0x1ea6=function(){return _0x1875ad;};return a74_0x1ea6();}function a74_0x590d(_0x3cb9cc,_0x4da2c7){_0x3cb9cc=_0x3cb9cc-0x120;const _0x1ea637=a74_0x1ea6();let _0x590d78=_0x1ea637[_0x3cb9cc];return _0x590d78;}export function dryRun(_0x1c6c47,_0x54c459){const _0x5b7296={'method':_0x1c6c47,'url':_0x54c459},_0x15c7f8={'body'(_0x403010){return _0x5b7296['body']=_0x403010,_0x15c7f8;},'description'(_0x252167){const _0x16cb13=a74_0x590d;return _0x5b7296[_0x16cb13(0x129)]=_0x252167,_0x15c7f8;},'build'(){return{..._0x5b7296};}};return _0x15c7f8;}
1
+ (function(_0x4fce62,_0x27e24f){const _0x4ec020=a74_0x4731,_0x1ab090=_0x4fce62();while(!![]){try{const _0x42b620=parseInt(_0x4ec020(0xbd))/0x1+-parseInt(_0x4ec020(0xbb))/0x2*(parseInt(_0x4ec020(0xb7))/0x3)+parseInt(_0x4ec020(0xbe))/0x4*(parseInt(_0x4ec020(0xbc))/0x5)+-parseInt(_0x4ec020(0xba))/0x6*(-parseInt(_0x4ec020(0xc0))/0x7)+parseInt(_0x4ec020(0xc1))/0x8*(parseInt(_0x4ec020(0xb8))/0x9)+-parseInt(_0x4ec020(0xb9))/0xa*(-parseInt(_0x4ec020(0xbf))/0xb)+parseInt(_0x4ec020(0xb4))/0xc*(-parseInt(_0x4ec020(0xb5))/0xd);if(_0x42b620===_0x27e24f)break;else _0x1ab090['push'](_0x1ab090['shift']());}catch(_0x42b68a){_0x1ab090['push'](_0x1ab090['shift']());}}}(a74_0x1a6f,0xae17f));function a74_0x4731(_0x4d7215,_0x56110b){_0x4d7215=_0x4d7215-0xb4;const _0x1a6f91=a74_0x1a6f();let _0x473156=_0x1a6f91[_0x4d7215];return _0x473156;}export function dryRun(_0x11bfb4,_0x148084){const _0x57d311={'method':_0x11bfb4,'url':_0x148084},_0x21398d={'body'(_0x52cb30){return _0x57d311['body']=_0x52cb30,_0x21398d;},'description'(_0x181442){const _0x459dc7=a74_0x4731;return _0x57d311[_0x459dc7(0xb6)]=_0x181442,_0x21398d;},'build'(){return{..._0x57d311};}};return _0x21398d;}function a74_0x1a6f(){const _0x3f7a21=['807rvHwig','12384108PhvVKt','470VGpwTa','3954cnPaZM','3742lZazrV','135OMTcPr','873678MPUdso','207436HhfwOB','87054QXilmI','4235DoULDx','8vkcCdK','37512hTCmZJ','13325YhcHTU','description'];a74_0x1a6f=function(){return _0x3f7a21;};return a74_0x1a6f();}
@@ -1 +1 @@
1
- const a75_0x1a2c95=a75_0x20c9;(function(_0x506d0e,_0x4ce668){const _0x51abde=a75_0x20c9,_0x4d66cf=_0x506d0e();while(!![]){try{const _0x207fed=-parseInt(_0x51abde(0x143))/0x1*(-parseInt(_0x51abde(0x13e))/0x2)+parseInt(_0x51abde(0x146))/0x3+parseInt(_0x51abde(0x140))/0x4+parseInt(_0x51abde(0x145))/0x5+parseInt(_0x51abde(0x142))/0x6+-parseInt(_0x51abde(0x144))/0x7+-parseInt(_0x51abde(0x13f))/0x8;if(_0x207fed===_0x4ce668)break;else _0x4d66cf['push'](_0x4d66cf['shift']());}catch(_0x1b883b){_0x4d66cf['push'](_0x4d66cf['shift']());}}}(a75_0x361d,0x7863c));function a75_0x20c9(_0x4329b6,_0x3aea74){_0x4329b6=_0x4329b6-0x13d;const _0x361d5e=a75_0x361d();let _0x20c9c8=_0x361d5e[_0x4329b6];return _0x20c9c8;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a75_0x361d(){const _0x157d96=['764003jHUIWO','2347541fGpdka','4685210uqBqEy','1479288YvNOEg','parseFlags','2cgMoAe','23449480Zoucra','2567188TzYUHg','validateFlags','5542356hjlnRC'];a75_0x361d=function(){return _0x157d96;};return a75_0x361d();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a75_0x1a2c95(0x13d)];export const validateFlags=helpers[a75_0x1a2c95(0x141)];
1
+ function a75_0x562b(){const _0x21772b=['956JwgHMi','5110KhruXU','6243738FcIZKf','357195mfQIlP','63dANNtH','validateFlags','parseFlags','794176CRlgxu','848926IIjaVn','1346468xYTaHm','8260553Cuxbue'];a75_0x562b=function(){return _0x21772b;};return a75_0x562b();}const a75_0x2ddde5=a75_0x587f;(function(_0xd30981,_0x3824a1){const _0x7c2ad=a75_0x587f,_0x50ca9f=_0xd30981();while(!![]){try{const _0x2a7603=parseInt(_0x7c2ad(0x151))/0x1+-parseInt(_0x7c2ad(0x150))/0x2+parseInt(_0x7c2ad(0x14b))/0x3+-parseInt(_0x7c2ad(0x153))/0x4*(-parseInt(_0x7c2ad(0x149))/0x5)+-parseInt(_0x7c2ad(0x14a))/0x6+parseInt(_0x7c2ad(0x152))/0x7+-parseInt(_0x7c2ad(0x14f))/0x8*(parseInt(_0x7c2ad(0x14c))/0x9);if(_0x2a7603===_0x3824a1)break;else _0x50ca9f['push'](_0x50ca9f['shift']());}catch(_0x5066af){_0x50ca9f['push'](_0x50ca9f['shift']());}}}(a75_0x562b,0xb2318));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a75_0x2ddde5(0x14e)];function a75_0x587f(_0x222122,_0x5e0392){_0x222122=_0x222122-0x149;const _0x562b51=a75_0x562b();let _0x587f83=_0x562b51[_0x222122];return _0x587f83;}export const validateFlags=helpers[a75_0x2ddde5(0x14d)];
@@ -1 +1 @@
1
- function a76_0x58f5(_0x595358,_0xfbb8c){_0x595358=_0x595358-0x1c9;const _0x4553a0=a76_0x4553();let _0x58f5fd=_0x4553a0[_0x595358];return _0x58f5fd;}(function(_0x198c6d,_0x288810){const _0x48e761=a76_0x58f5,_0x30465a=_0x198c6d();while(!![]){try{const _0x389d61=-parseInt(_0x48e761(0x1c9))/0x1+parseInt(_0x48e761(0x1d6))/0x2+parseInt(_0x48e761(0x1d2))/0x3*(-parseInt(_0x48e761(0x1cc))/0x4)+-parseInt(_0x48e761(0x1ca))/0x5+parseInt(_0x48e761(0x1d0))/0x6+-parseInt(_0x48e761(0x1cb))/0x7+-parseInt(_0x48e761(0x1d3))/0x8*(-parseInt(_0x48e761(0x1d5))/0x9);if(_0x389d61===_0x288810)break;else _0x30465a['push'](_0x30465a['shift']());}catch(_0x493110){_0x30465a['push'](_0x30465a['shift']());}}}(a76_0x4553,0x22152));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a76_0x4553(){const _0x1cbcf6=['151832DhOjEm','service','generateFullHelp','generateCommandHelp','1574664PmeipZ','newConfigFileName','6PrPzaM','8896xROQwk','has','3501hwTRsl','92758lFSMQJ','159305tttHKO','873420FRWhBv','1343188xfJFMU'];a76_0x4553=function(){return _0x1cbcf6;};return a76_0x4553();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x5b686a=a76_0x58f5;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x5b686a(0x1d1)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x3bf495){const _0x31f38f=a76_0x58f5;return createGenerators()[_0x31f38f(0x1cf)](_0x3bf495);}export function generateServiceHelp(_0x2bae0a){return createGenerators()['generateServiceHelp'](_0x2bae0a);}export function generateFullHelp(){const _0x216af2=a76_0x58f5;return createGenerators()[_0x216af2(0x1ce)]();}function getAnyServiceEntry(_0x23c52c){const _0x8a3a0f=getServiceEntry(_0x23c52c);if(_0x8a3a0f)return _0x8a3a0f;try{return getDynamicServiceEntry(_0x23c52c);}catch{return undefined;}}function getAnyServiceDefinitions(_0xac138e){const _0x46640e=serviceGroups['get'](_0xac138e);if(_0x46640e)return _0x46640e;try{return getDynamicServiceDefinitions(_0xac138e);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3b23dd=a76_0x58f5,_0x5b2a4f=new Set(serviceRegistry['map'](_0x3ccd33=>_0x3ccd33[_0x3b23dd(0x1cd)]));try{return listDynamicServiceEntries()['filter'](_0x2d73e5=>!_0x5b2a4f[_0x3b23dd(0x1d4)](_0x2d73e5[_0x3b23dd(0x1cd)]));}catch{return[];}}
1
+ (function(_0x9e5f3b,_0x44a111){const _0x3d3356=a76_0x2025,_0x348122=_0x9e5f3b();while(!![]){try{const _0xfc6cfc=parseInt(_0x3d3356(0x13c))/0x1*(-parseInt(_0x3d3356(0x143))/0x2)+-parseInt(_0x3d3356(0x13f))/0x3+parseInt(_0x3d3356(0x144))/0x4*(-parseInt(_0x3d3356(0x14a))/0x5)+-parseInt(_0x3d3356(0x146))/0x6*(parseInt(_0x3d3356(0x149))/0x7)+parseInt(_0x3d3356(0x14b))/0x8+-parseInt(_0x3d3356(0x147))/0x9*(-parseInt(_0x3d3356(0x14c))/0xa)+parseInt(_0x3d3356(0x142))/0xb;if(_0xfc6cfc===_0x44a111)break;else _0x348122['push'](_0x348122['shift']());}catch(_0x5644ac){_0x348122['push'](_0x348122['shift']());}}}(a76_0x1870,0x7afdd));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x2025(_0x2c54fa,_0x314843){_0x2c54fa=_0x2c54fa-0x13c;const _0x1870f9=a76_0x1870();let _0x202562=_0x1870f9[_0x2c54fa];return _0x202562;}function createGenerators(){const _0x3495ca=a76_0x2025;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x3495ca(0x148)+PRODUCT_CONFIG[_0x3495ca(0x13d)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x4d78ba){const _0x47f110=a76_0x2025;return createGenerators()[_0x47f110(0x14d)](_0x4d78ba);}export function generateServiceHelp(_0x370e27){const _0x2277c7=a76_0x2025;return createGenerators()[_0x2277c7(0x140)](_0x370e27);}export function generateFullHelp(){const _0x27707a=a76_0x2025;return createGenerators()[_0x27707a(0x14f)]();}function a76_0x1870(){const _0x3976d4=['map','generateFullHelp','1ATQuvd','newConfigFileName','filter','923724YOBQpC','generateServiceHelp','get','6963869ytpvNS','345946AtzwiK','598268yeZAZp','service','248244LritKN','765NogJRw','Requires\x20appcode\x20(set\x20via\x20','42VqnOxX','30TthLpX','4087728XIggzU','116030cLaEWi','generateCommandHelp'];a76_0x1870=function(){return _0x3976d4;};return a76_0x1870();}function getAnyServiceEntry(_0x21ec85){const _0x57931f=getServiceEntry(_0x21ec85);if(_0x57931f)return _0x57931f;try{return getDynamicServiceEntry(_0x21ec85);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4c4142){const _0x578958=a76_0x2025,_0x2c601c=serviceGroups[_0x578958(0x141)](_0x4c4142);if(_0x2c601c)return _0x2c601c;try{return getDynamicServiceDefinitions(_0x4c4142);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x14295c=a76_0x2025,_0x4707ed=new Set(serviceRegistry[_0x14295c(0x14e)](_0x27e90a=>_0x27e90a[_0x14295c(0x145)]));try{return listDynamicServiceEntries()[_0x14295c(0x13e)](_0x5cc367=>!_0x4707ed['has'](_0x5cc367[_0x14295c(0x145)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x3e397c,_0x5609c8){var _0x37d70c=a77_0xdf2f,_0x4678a2=_0x3e397c();while(!![]){try{var _0x4373d8=parseInt(_0x37d70c(0x7b))/0x1*(parseInt(_0x37d70c(0x77))/0x2)+parseInt(_0x37d70c(0x7e))/0x3+-parseInt(_0x37d70c(0x78))/0x4*(parseInt(_0x37d70c(0x7d))/0x5)+parseInt(_0x37d70c(0x7c))/0x6+parseInt(_0x37d70c(0x79))/0x7*(-parseInt(_0x37d70c(0x7f))/0x8)+-parseInt(_0x37d70c(0x80))/0x9+parseInt(_0x37d70c(0x7a))/0xa;if(_0x4373d8===_0x5609c8)break;else _0x4678a2['push'](_0x4678a2['shift']());}catch(_0x4d1d57){_0x4678a2['push'](_0x4678a2['shift']());}}}(a77_0x4f82,0x8c11f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a77_0xdf2f(_0x32efd0,_0x11be49){_0x32efd0=_0x32efd0-0x77;var _0x4f8292=a77_0x4f82();var _0xdf2fe2=_0x4f8292[_0x32efd0];return _0xdf2fe2;}function a77_0x4f82(){var _0x1b85fd=['54010dyPwCD','2902458YGihyD','5903728UFgfrH','5110173crKulu','1594FYWXQq','100PEOWWk','7MTgFFR','8074010IfNRNz','242JErEYN','1090674XNhlRu'];a77_0x4f82=function(){return _0x1b85fd;};return a77_0x4f82();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x580417,_0x5c0e75){var _0x23940d=a77_0x9343,_0x173750=_0x580417();while(!![]){try{var _0xdeb621=-parseInt(_0x23940d(0x99))/0x1*(-parseInt(_0x23940d(0x98))/0x2)+parseInt(_0x23940d(0x93))/0x3+-parseInt(_0x23940d(0x96))/0x4*(parseInt(_0x23940d(0x8f))/0x5)+-parseInt(_0x23940d(0x97))/0x6*(parseInt(_0x23940d(0x92))/0x7)+parseInt(_0x23940d(0x94))/0x8+-parseInt(_0x23940d(0x8e))/0x9*(parseInt(_0x23940d(0x91))/0xa)+parseInt(_0x23940d(0x90))/0xb*(-parseInt(_0x23940d(0x95))/0xc);if(_0xdeb621===_0x5c0e75)break;else _0x173750['push'](_0x173750['shift']());}catch(_0x49cc10){_0x173750['push'](_0x173750['shift']());}}}(a77_0x21a1,0x9c6b8));function a77_0x21a1(){var _0x1ca580=['11481204RiskDF','20ZyoRHM','300354CFljqB','2esfpVH','532179mFNxwS','9RRpydC','13435swZkHz','11acErnu','2971120QaeNNU','7rRUjDx','2649102mnFmrc','4342848YNArxs'];a77_0x21a1=function(){return _0x1ca580;};return a77_0x21a1();}function a77_0x9343(_0x5cd9b5,_0x22bfef){_0x5cd9b5=_0x5cd9b5-0x8e;var _0x21a13e=a77_0x21a1();var _0x93439f=_0x21a13e[_0x5cd9b5];return _0x93439f;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- function a78_0x28a0(){const _0x45ec6e=['12008736lxqjcV','message','1588504pPMtAC','update','error','1280QgyTLU','6564KpuLGn','172029zkguQf','369350VfpYEw','format','275207NIBGHr','712242jjcNaC','7NRTFIS','pretty'];a78_0x28a0=function(){return _0x45ec6e;};return a78_0x28a0();}(function(_0x2bf6ac,_0x218043){const _0x2f3dac=a78_0x17d9,_0x3bb00c=_0x2bf6ac();while(!![]){try{const _0x173bf4=-parseInt(_0x2f3dac(0x1c3))/0x1+-parseInt(_0x2f3dac(0x1c1))/0x2+-parseInt(_0x2f3dac(0x1c0))/0x3+parseInt(_0x2f3dac(0x1bf))/0x4*(-parseInt(_0x2f3dac(0x1be))/0x5)+parseInt(_0x2f3dac(0x1c4))/0x6+parseInt(_0x2f3dac(0x1c5))/0x7*(-parseInt(_0x2f3dac(0x1bb))/0x8)+parseInt(_0x2f3dac(0x1c7))/0x9;if(_0x173bf4===_0x218043)break;else _0x3bb00c['push'](_0x3bb00c['shift']());}catch(_0xb63669){_0x3bb00c['push'](_0x3bb00c['shift']());}}}(a78_0x28a0,0x4d6c7));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a78_0x17d9(_0x55e1df,_0x426912){_0x55e1df=_0x55e1df-0x1ba;const _0x28a001=a78_0x28a0();let _0x17d90a=_0x28a001[_0x55e1df];return _0x17d90a;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xe87659,_0x49188a){const _0x530a84=a78_0x17d9,_0x144666=_0xe87659['_notice'],{_notice:_0xc671d9,..._0x2a13fd}=_0xe87659;void _0xc671d9,baseFormatOutput(_0x2a13fd,_0x49188a),_0x49188a[_0x530a84(0x1c2)]===_0x530a84(0x1c6)&&printPrettyNotice(_0x144666);}function printPrettyNotice(_0xf65400){const _0x4a24df=a78_0x17d9;if(!_0xf65400?.[_0x4a24df(0x1bc)])return;console[_0x4a24df(0x1bd)](_0xf65400[_0x4a24df(0x1bc)][_0x4a24df(0x1ba)]+'\x20('+_0xf65400[_0x4a24df(0x1bc)]['url']+')');}
1
+ (function(_0x402d1b,_0x21d39a){const _0x4271dc=a78_0x28b7,_0x27850e=_0x402d1b();while(!![]){try{const _0x2ca359=parseInt(_0x4271dc(0x1fd))/0x1*(parseInt(_0x4271dc(0x1f0))/0x2)+-parseInt(_0x4271dc(0x1f2))/0x3*(parseInt(_0x4271dc(0x1f7))/0x4)+-parseInt(_0x4271dc(0x1ef))/0x5+-parseInt(_0x4271dc(0x1f8))/0x6*(-parseInt(_0x4271dc(0x1ee))/0x7)+parseInt(_0x4271dc(0x1f3))/0x8+-parseInt(_0x4271dc(0x1f9))/0x9*(parseInt(_0x4271dc(0x1ed))/0xa)+-parseInt(_0x4271dc(0x1fb))/0xb*(-parseInt(_0x4271dc(0x1ec))/0xc);if(_0x2ca359===_0x21d39a)break;else _0x27850e['push'](_0x27850e['shift']());}catch(_0x5b53f2){_0x27850e['push'](_0x27850e['shift']());}}}(a78_0x1698,0xce82b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a78_0x1698(){const _0x2e7907=['12423016SCmZUk','error','update','message','142952CebRSC','18pXycug','15023142ghSfXl','format','11OFlqCa','_notice','1raiJcS','8483016hSJvtC','10QMVbmH','1845501RMjSMa','5200695BHqRki','1366420swWSWQ','url','15ZQTNUZ'];a78_0x1698=function(){return _0x2e7907;};return a78_0x1698();}function a78_0x28b7(_0x40b62f,_0x561a2f){_0x40b62f=_0x40b62f-0x1ec;const _0x169848=a78_0x1698();let _0x28b7f0=_0x169848[_0x40b62f];return _0x28b7f0;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x40113a,_0x5dcfc5){const _0x52d511=a78_0x28b7,_0x181aa1=_0x40113a[_0x52d511(0x1fc)],{_notice:_0x5bf7b3,..._0x2ca9f0}=_0x40113a;void _0x5bf7b3,baseFormatOutput(_0x2ca9f0,_0x5dcfc5),_0x5dcfc5[_0x52d511(0x1fa)]==='pretty'&&printPrettyNotice(_0x181aa1);}function printPrettyNotice(_0x24bd91){const _0x442c80=a78_0x28b7;if(!_0x24bd91?.['update'])return;console[_0x442c80(0x1f4)](_0x24bd91[_0x442c80(0x1f5)][_0x442c80(0x1f6)]+'\x20('+_0x24bd91['update'][_0x442c80(0x1f1)]+')');}
@@ -1 +1 @@
1
- (function(_0x2fa7ae,_0x14b623){const _0x174233=a79_0x5c34,_0x944cd3=_0x2fa7ae();while(!![]){try{const _0x57ce52=parseInt(_0x174233(0x7f))/0x1+parseInt(_0x174233(0x95))/0x2*(parseInt(_0x174233(0x90))/0x3)+parseInt(_0x174233(0x92))/0x4+parseInt(_0x174233(0x97))/0x5+-parseInt(_0x174233(0x81))/0x6*(-parseInt(_0x174233(0x7e))/0x7)+parseInt(_0x174233(0x78))/0x8*(parseInt(_0x174233(0x8b))/0x9)+-parseInt(_0x174233(0x86))/0xa;if(_0x57ce52===_0x14b623)break;else _0x944cd3['push'](_0x944cd3['shift']());}catch(_0x2bffa3){_0x944cd3['push'](_0x944cd3['shift']());}}}(a79_0x572e,0x69660));function toKebab(_0x139cbe){const _0x52b90d=a79_0x5c34;return _0x139cbe[_0x52b90d(0x7a)](/_/g,'-')[_0x52b90d(0x7a)](/-([A-Z]+)/g,(_0x24d201,_0x4cf73f)=>'-'+_0x4cf73f[_0x52b90d(0x96)]())[_0x52b90d(0x7a)](/([a-z0-9])([A-Z])/g,(_0x3733fb,_0x579525,_0x45a998)=>_0x579525+'-'+_0x45a998)[_0x52b90d(0x96)]();}function buildKnownFlags(_0x81daf4){const _0x58e23c=a79_0x5c34,_0x8935d=new Set();for(const _0x50f8d2 of _0x81daf4){_0x8935d[_0x58e23c(0x8f)](_0x50f8d2[_0x58e23c(0x98)]),_0x8935d['add'](toCamelCase(_0x50f8d2[_0x58e23c(0x98)]));}for(const _0x538567 of[_0x58e23c(0x9c),'dryRun',_0x58e23c(0x9b),_0x58e23c(0x99)]){_0x8935d[_0x58e23c(0x8f)](_0x538567);}for(const _0x4170ef of[_0x58e23c(0x77),'env',_0x58e23c(0x8d),_0x58e23c(0x88),'nonInteractive',_0x58e23c(0x87),'ci',_0x58e23c(0x85),_0x58e23c(0x7b)]){_0x8935d[_0x58e23c(0x8f)](_0x4170ef);}return _0x8935d;}function buildFlagTypeMap(_0x2647b4){const _0x2e38d0=a79_0x5c34,_0x3def17=new Map();for(const _0x40c083 of _0x2647b4){_0x3def17['set'](_0x40c083['name'],_0x40c083[_0x2e38d0(0x80)]),_0x3def17['set'](toCamelCase(_0x40c083[_0x2e38d0(0x98)]),_0x40c083[_0x2e38d0(0x80)]);}return _0x3def17;}function toCamelCase(_0x49c036){const _0x4d6281=a79_0x5c34;return _0x49c036[_0x4d6281(0x7a)](/-([a-z])/g,(_0x5ed7b8,_0x88ffa)=>_0x88ffa[_0x4d6281(0x76)]());}function aliasHandler(_0x1041ea,_0x9801f2){const _0x4df842=a79_0x5c34,_0x1cd5a7=[];for(const _0x196a83 of Object[_0x4df842(0x7d)](_0x1041ea)){if(_0x9801f2[_0x4df842(0x79)](_0x196a83))continue;const _0xca5e57=toKebab(_0x196a83);_0xca5e57!==_0x196a83&&_0x9801f2['has'](_0xca5e57)&&_0x1cd5a7[_0x4df842(0x89)]({'original':_0x196a83,'corrected':_0xca5e57,'handler':_0x4df842(0x7c)});}return _0x1cd5a7;}function stickyHandler(_0x232767,_0x47c07f,_0x3be8d9){const _0x4dca3a=a79_0x5c34,_0x18c672=[];for(const [_0x57a947,_0x219faa]of Object[_0x4dca3a(0x8c)](_0x232767)){if(_0x219faa!==!![])continue;for(let _0x2b8dbd=_0x57a947[_0x4dca3a(0x91)]-0x1;_0x2b8dbd>0x0;_0x2b8dbd--){const _0x6a1e7b=_0x57a947[_0x4dca3a(0x8e)](0x0,_0x2b8dbd),_0x1c0e48=_0x57a947[_0x4dca3a(0x8e)](_0x2b8dbd),_0x4bfea=toKebab(_0x6a1e7b),_0x449601=toCamelCase(_0x6a1e7b),_0x1a25ac=_0x47c07f['has'](_0x6a1e7b)?_0x6a1e7b:_0x47c07f[_0x4dca3a(0x79)](_0x4bfea)?_0x4bfea:_0x47c07f[_0x4dca3a(0x79)](_0x449601)?_0x449601:null;if(!_0x1a25ac)continue;const _0x59d9c9=_0x3be8d9[_0x4dca3a(0x84)](_0x1a25ac)??_0x4dca3a(0x94);let _0x2fd597;if(_0x59d9c9===_0x4dca3a(0x82)){const _0xc14e2c=Number(_0x1c0e48);if(isNaN(_0xc14e2c)||_0x1c0e48==='')continue;_0x2fd597=_0xc14e2c;}else{if(_0x59d9c9===_0x4dca3a(0x83))continue;else{if(_0x1c0e48==='')continue;_0x2fd597=_0x1c0e48;}}_0x18c672[_0x4dca3a(0x89)]({'original':_0x57a947,'corrected':_0x1a25ac+'='+_0x2fd597,'handler':_0x4dca3a(0x8a)});break;}}return _0x18c672;}function a79_0x5c34(_0x4ab2f6,_0x6d9f0d){_0x4ab2f6=_0x4ab2f6-0x76;const _0x572e3b=a79_0x572e();let _0x5c34fb=_0x572e3b[_0x4ab2f6];return _0x5c34fb;}function a79_0x572e(){const _0x188519=['366625yzoLMd','480077duFZJS','type','84JuzxkI','number','boolean','get','global','27437470hxTwUl','non-interactive','app','push','sticky','3119634reXdaM','entries','appcode','slice','add','2397453eLeHXu','length','837816nWJkHx','original','string','2CTjPKr','toLowerCase','1301375KDfKEh','name','format','corrected','yes','dry-run','toUpperCase','help','16GOFvsu','has','replace','version','alias','keys'];a79_0x572e=function(){return _0x188519;};return a79_0x572e();}export function correctFlags(_0x318210,_0x4ba9df){const _0x254277=a79_0x5c34,_0x45f728=buildKnownFlags(_0x4ba9df),_0x36015a=buildFlagTypeMap(_0x4ba9df),_0x51f9d1=aliasHandler(_0x318210,_0x45f728),_0x4410ab=stickyHandler(_0x318210,_0x45f728,_0x36015a),_0x4f266c=[..._0x51f9d1,..._0x4410ab];if(_0x4f266c['length']===0x0)return{'flags':_0x318210,'corrections':[]};const _0xe3f928={..._0x318210},_0x5dd8c1=new Set();for(const _0x4f3dbd of _0x51f9d1){_0xe3f928[_0x4f3dbd[_0x254277(0x9a)]]=_0x318210[_0x4f3dbd[_0x254277(0x93)]],_0x5dd8c1[_0x254277(0x8f)](_0x4f3dbd[_0x254277(0x93)]);}for(const _0x4fc1c4 of _0x4410ab){const _0x4b2550=_0x4fc1c4[_0x254277(0x9a)]['indexOf']('='),_0x277383=_0x4fc1c4['corrected'][_0x254277(0x8e)](0x0,_0x4b2550),_0x278c6d=_0x4fc1c4[_0x254277(0x9a)][_0x254277(0x8e)](_0x4b2550+0x1),_0x7391d8=_0x36015a[_0x254277(0x84)](_0x277383)??_0x254277(0x94);_0x7391d8===_0x254277(0x82)?_0xe3f928[_0x277383]=Number(_0x278c6d):_0xe3f928[_0x277383]=_0x278c6d,_0x5dd8c1[_0x254277(0x8f)](_0x4fc1c4['original']);}for(const _0x397e58 of _0x5dd8c1){delete _0xe3f928[_0x397e58];}return{'flags':_0xe3f928,'corrections':_0x4f266c};}
1
+ (function(_0x33b5d8,_0x5411b1){const _0x1de7a9=a79_0x5eb8,_0x306326=_0x33b5d8();while(!![]){try{const _0x1f9e9f=-parseInt(_0x1de7a9(0x1cc))/0x1+parseInt(_0x1de7a9(0x1dd))/0x2+parseInt(_0x1de7a9(0x1e9))/0x3*(parseInt(_0x1de7a9(0x1cf))/0x4)+parseInt(_0x1de7a9(0x1d4))/0x5+-parseInt(_0x1de7a9(0x1d6))/0x6*(-parseInt(_0x1de7a9(0x1c8))/0x7)+parseInt(_0x1de7a9(0x1e0))/0x8+-parseInt(_0x1de7a9(0x1e7))/0x9;if(_0x1f9e9f===_0x5411b1)break;else _0x306326['push'](_0x306326['shift']());}catch(_0x2e92dc){_0x306326['push'](_0x306326['shift']());}}}(a79_0x5b13,0xf0b3f));function toKebab(_0x448430){const _0x189074=a79_0x5eb8;return _0x448430[_0x189074(0x1e1)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x330023,_0x4a23b2)=>'-'+_0x4a23b2[_0x189074(0x1de)]())[_0x189074(0x1e1)](/([a-z0-9])([A-Z])/g,(_0x2ccb2b,_0x221bed,_0x496dbb)=>_0x221bed+'-'+_0x496dbb)[_0x189074(0x1de)]();}function buildKnownFlags(_0x4708b3){const _0x3295e8=a79_0x5eb8,_0x22cc50=new Set();for(const _0x5c6d25 of _0x4708b3){_0x22cc50[_0x3295e8(0x1d2)](_0x5c6d25[_0x3295e8(0x1ee)]),_0x22cc50['add'](toCamelCase(_0x5c6d25[_0x3295e8(0x1ee)]));}for(const _0x3203ef of[_0x3295e8(0x1d0),'dryRun',_0x3295e8(0x1df),_0x3295e8(0x1e2)]){_0x22cc50[_0x3295e8(0x1d2)](_0x3203ef);}for(const _0x78dabd of[_0x3295e8(0x1d5),_0x3295e8(0x1d8),_0x3295e8(0x1e8),'app',_0x3295e8(0x1cd),'non-interactive','ci',_0x3295e8(0x1e6),_0x3295e8(0x1ca)]){_0x22cc50[_0x3295e8(0x1d2)](_0x78dabd);}return _0x22cc50;}function buildFlagTypeMap(_0x493878){const _0x5d6714=a79_0x5eb8,_0x37ab61=new Map();for(const _0x10b2ed of _0x493878){_0x37ab61[_0x5d6714(0x1ea)](_0x10b2ed[_0x5d6714(0x1ee)],_0x10b2ed['type']),_0x37ab61[_0x5d6714(0x1ea)](toCamelCase(_0x10b2ed[_0x5d6714(0x1ee)]),_0x10b2ed[_0x5d6714(0x1c9)]);}return _0x37ab61;}function a79_0x5eb8(_0x18160f,_0xebd240){_0x18160f=_0x18160f-0x1c8;const _0x5b135b=a79_0x5b13();let _0x5eb86d=_0x5b135b[_0x18160f];return _0x5eb86d;}function toCamelCase(_0x1353ed){const _0x45c843=a79_0x5eb8;return _0x1353ed[_0x45c843(0x1e1)](/-([a-z])/g,(_0x261d5d,_0x3cbfd3)=>_0x3cbfd3[_0x45c843(0x1dc)]());}function a79_0x5b13(){const _0x5bf3a4=['boolean','keys','slice','name','2884dAEJXI','type','version','push','1361317tmiXPY','nonInteractive','length','76mzkusG','dry-run','number','add','indexOf','1960120DbVjgj','help','8952xoFBRx','corrected','env','sticky','alias','entries','toUpperCase','806270uXBQld','toLowerCase','yes','12130536PodbWX','replace','format','has','original','get','global','13380705eFLMAC','appcode','143337zKNcos','set'];a79_0x5b13=function(){return _0x5bf3a4;};return a79_0x5b13();}function aliasHandler(_0x2710f2,_0x19793e){const _0x3d5016=a79_0x5eb8,_0x1d487d=[];for(const _0x5bd770 of Object[_0x3d5016(0x1ec)](_0x2710f2)){if(_0x19793e[_0x3d5016(0x1e3)](_0x5bd770))continue;const _0x5f3ff0=toKebab(_0x5bd770);_0x5f3ff0!==_0x5bd770&&_0x19793e[_0x3d5016(0x1e3)](_0x5f3ff0)&&_0x1d487d[_0x3d5016(0x1cb)]({'original':_0x5bd770,'corrected':_0x5f3ff0,'handler':_0x3d5016(0x1da)});}return _0x1d487d;}function stickyHandler(_0xfc1ca3,_0x21cb53,_0x11fb8e){const _0x4cbcb1=a79_0x5eb8,_0x414218=[];for(const [_0x49c4f0,_0x429ff9]of Object[_0x4cbcb1(0x1db)](_0xfc1ca3)){if(_0x429ff9!==!![])continue;for(let _0x12f8e0=_0x49c4f0['length']-0x1;_0x12f8e0>0x0;_0x12f8e0--){const _0x31d3c9=_0x49c4f0[_0x4cbcb1(0x1ed)](0x0,_0x12f8e0),_0x1681ee=_0x49c4f0[_0x4cbcb1(0x1ed)](_0x12f8e0),_0x2702ce=toKebab(_0x31d3c9),_0xaeb2dd=toCamelCase(_0x31d3c9),_0x4e9939=_0x21cb53['has'](_0x31d3c9)?_0x31d3c9:_0x21cb53[_0x4cbcb1(0x1e3)](_0x2702ce)?_0x2702ce:_0x21cb53[_0x4cbcb1(0x1e3)](_0xaeb2dd)?_0xaeb2dd:null;if(!_0x4e9939)continue;const _0x1a688e=_0x11fb8e[_0x4cbcb1(0x1e5)](_0x4e9939)??'string';let _0x4fa3ba;if(_0x1a688e===_0x4cbcb1(0x1d1)){const _0x5c1b5a=Number(_0x1681ee);if(isNaN(_0x5c1b5a)||_0x1681ee==='')continue;_0x4fa3ba=_0x5c1b5a;}else{if(_0x1a688e===_0x4cbcb1(0x1eb))continue;else{if(_0x1681ee==='')continue;_0x4fa3ba=_0x1681ee;}}_0x414218['push']({'original':_0x49c4f0,'corrected':_0x4e9939+'='+_0x4fa3ba,'handler':_0x4cbcb1(0x1d9)});break;}}return _0x414218;}export function correctFlags(_0xfc1672,_0x50da2d){const _0x19048e=a79_0x5eb8,_0x171147=buildKnownFlags(_0x50da2d),_0x2aec4c=buildFlagTypeMap(_0x50da2d),_0x5a1ce7=aliasHandler(_0xfc1672,_0x171147),_0x740f7d=stickyHandler(_0xfc1672,_0x171147,_0x2aec4c),_0x234f45=[..._0x5a1ce7,..._0x740f7d];if(_0x234f45[_0x19048e(0x1ce)]===0x0)return{'flags':_0xfc1672,'corrections':[]};const _0x32d464={..._0xfc1672},_0x4c36f9=new Set();for(const _0x11494c of _0x5a1ce7){_0x32d464[_0x11494c[_0x19048e(0x1d7)]]=_0xfc1672[_0x11494c[_0x19048e(0x1e4)]],_0x4c36f9[_0x19048e(0x1d2)](_0x11494c[_0x19048e(0x1e4)]);}for(const _0x555626 of _0x740f7d){const _0x4908a3=_0x555626[_0x19048e(0x1d7)][_0x19048e(0x1d3)]('='),_0xe7db40=_0x555626[_0x19048e(0x1d7)][_0x19048e(0x1ed)](0x0,_0x4908a3),_0x4c6edb=_0x555626['corrected'][_0x19048e(0x1ed)](_0x4908a3+0x1),_0x5eab36=_0x2aec4c[_0x19048e(0x1e5)](_0xe7db40)??'string';_0x5eab36===_0x19048e(0x1d1)?_0x32d464[_0xe7db40]=Number(_0x4c6edb):_0x32d464[_0xe7db40]=_0x4c6edb,_0x4c36f9[_0x19048e(0x1d2)](_0x555626['original']);}for(const _0xa6ed4f of _0x4c36f9){delete _0x32d464[_0xa6ed4f];}return{'flags':_0x32d464,'corrections':_0x234f45};}
@@ -1 +1 @@
1
- (function(_0x2e5b9a,_0x206a43){var _0x1cc628=a80_0x49c8,_0x4f59b2=_0x2e5b9a();while(!![]){try{var _0x3300de=parseInt(_0x1cc628(0xf4))/0x1+parseInt(_0x1cc628(0xf6))/0x2*(parseInt(_0x1cc628(0xfc))/0x3)+parseInt(_0x1cc628(0xf9))/0x4+parseInt(_0x1cc628(0xf7))/0x5*(parseInt(_0x1cc628(0xf3))/0x6)+parseInt(_0x1cc628(0xf8))/0x7*(parseInt(_0x1cc628(0xfa))/0x8)+parseInt(_0x1cc628(0xfb))/0x9+-parseInt(_0x1cc628(0xf5))/0xa;if(_0x3300de===_0x206a43)break;else _0x4f59b2['push'](_0x4f59b2['shift']());}catch(_0x2f39dc){_0x4f59b2['push'](_0x4f59b2['shift']());}}}(a80_0x5c2e,0x4a0be));function a80_0x49c8(_0x37e39d,_0x45559d){_0x37e39d=_0x37e39d-0xf3;var _0x5c2e2d=a80_0x5c2e();var _0x49c8b8=_0x5c2e2d[_0x37e39d];return _0x49c8b8;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a80_0x5c2e(){var _0x4fa991=['91xtSZaV','1611872XKgMGI','136688esMTDi','3526110ApnEjq','597RtSpVq','1204278cvtWFF','147089tLwAKy','18188210Dfcejv','3578ViUtlK','15lglHiv'];a80_0x5c2e=function(){return _0x4fa991;};return a80_0x5c2e();}
1
+ function a80_0x360c(){var _0x298581=['554676hgXtbV','65529xikVgV','12TCvZIl','4008530SfRVvR','9EIcrKN','50731NnZjUF','3622240DDanle','11WKhcab','4AGjxYw','41853eCyCOL','1608arLjaX','24640452XTlFgf'];a80_0x360c=function(){return _0x298581;};return a80_0x360c();}(function(_0x56c323,_0x4a7fcc){var _0x1a0506=a80_0x4534,_0x568e82=_0x56c323();while(!![]){try{var _0x138cb0=parseInt(_0x1a0506(0x143))/0x1*(parseInt(_0x1a0506(0x140))/0x2)+-parseInt(_0x1a0506(0x13f))/0x3+-parseInt(_0x1a0506(0x13a))/0x4*(-parseInt(_0x1a0506(0x141))/0x5)+parseInt(_0x1a0506(0x13e))/0x6+parseInt(_0x1a0506(0x13b))/0x7*(parseInt(_0x1a0506(0x13c))/0x8)+-parseInt(_0x1a0506(0x142))/0x9*(-parseInt(_0x1a0506(0x144))/0xa)+parseInt(_0x1a0506(0x145))/0xb*(-parseInt(_0x1a0506(0x13d))/0xc);if(_0x138cb0===_0x4a7fcc)break;else _0x568e82['push'](_0x568e82['shift']());}catch(_0x470df1){_0x568e82['push'](_0x568e82['shift']());}}}(a80_0x360c,0xa7cdf));function a80_0x4534(_0x5d030b,_0x54b0d0){_0x5d030b=_0x5d030b-0x13a;var _0x360c74=a80_0x360c();var _0x4534e5=_0x360c74[_0x5d030b];return _0x4534e5;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x36b209,_0x3ada6e){const _0xf8251f=a81_0xc515,_0x236787=_0x36b209();while(!![]){try{const _0x5d128a=-parseInt(_0xf8251f(0xa6))/0x1*(-parseInt(_0xf8251f(0xae))/0x2)+parseInt(_0xf8251f(0xa4))/0x3+-parseInt(_0xf8251f(0xbb))/0x4*(parseInt(_0xf8251f(0xa9))/0x5)+-parseInt(_0xf8251f(0xb7))/0x6*(parseInt(_0xf8251f(0xb3))/0x7)+parseInt(_0xf8251f(0xb2))/0x8*(-parseInt(_0xf8251f(0xbd))/0x9)+parseInt(_0xf8251f(0xb1))/0xa*(parseInt(_0xf8251f(0xb0))/0xb)+parseInt(_0xf8251f(0xb9))/0xc*(-parseInt(_0xf8251f(0xc2))/0xd);if(_0x5d128a===_0x3ada6e)break;else _0x236787['push'](_0x236787['shift']());}catch(_0x246be2){_0x236787['push'](_0x236787['shift']());}}}(a81_0x37a3,0x1b56b));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x3bc87a,_0x1e077b,_0x3f43e4){const _0x426d95=a81_0xc515,_0x3acde8=buildConfirmationContext(_0x3bc87a,_0x1e077b,_0x3f43e4),_0x327e45=[_0x426d95(0xb4)+_0x3acde8[_0x426d95(0xba)]];return _0x3acde8[_0x426d95(0xaa)]&&_0x327e45['push'](_0x426d95(0xc1)+_0x3acde8['description']),_0x3acde8[_0x426d95(0xa7)]&&_0x327e45[_0x426d95(0xbe)](_0x426d95(0xa8)+_0x3acde8[_0x426d95(0xa7)]),_0x327e45[_0x426d95(0xbe)](_0x426d95(0xb6)),_0x327e45;}function a81_0xc515(_0x332f09,_0x5b37d6){_0x332f09=_0x332f09-0xa2;const _0x37a32c=a81_0x37a3();let _0xc515a=_0x37a32c[_0x332f09];return _0xc515a;}function a81_0x37a3(){const _0x4fe618=['24sRclLq','commandLabel','212rIHsTe','entries','27mGkexe','push','name','code=','\x20\x20\x20','1823263uALEDO','stringify','id=','613848akesjE','service','1UASjwy','affectedRecords','\x20\x20\x20Affected:\x20','1625HfnIfd','description','params','length','join','237830cNDAKH','--yes','118866uZnCEa','160BWAhhv','85240zObbry','1134uTiinV','⚠\x20\x20High-risk\x20operation:\x20','command','\x20\x20\x20Continue?\x20[y/N]\x20','2028bBQdSB','code'];a81_0x37a3=function(){return _0x4fe618;};return a81_0x37a3();}export function reconstructCommandArgv(_0x36cf4c,_0x30aaee){const _0x3ca431=a81_0xc515,_0x56a2bb=[CLI_BIN_NAME,_0x36cf4c[_0x3ca431(0xa5)],_0x36cf4c[_0x3ca431(0xb5)]];for(const [_0xd0035f,_0x2995e3]of Object[_0x3ca431(0xbc)](_0x30aaee)){if(_0x2995e3===!![])_0x56a2bb[_0x3ca431(0xbe)]('--'+_0xd0035f);else _0x2995e3!==![]&&_0x2995e3!==undefined&&_0x2995e3!==''&&_0x56a2bb[_0x3ca431(0xbe)]('--'+_0xd0035f+'\x20'+JSON[_0x3ca431(0xa2)](_0x2995e3));}return _0x56a2bb['push'](_0x3ca431(0xaf)),_0x56a2bb[_0x3ca431(0xad)]('\x20');}function buildConfirmationContext(_0x310661,_0x55c50c,_0x10ce34){const _0x2dcff3=extractAffectedRecords(_0x10ce34);return{'commandLabel':_0x55c50c,'description':_0x310661['description'],'affectedRecords':_0x2dcff3};}function extractAffectedRecords(_0x9b724d){const _0xb3552=a81_0xc515,_0x599a40=[];if(_0x9b724d[_0xb3552(0xb8)])_0x599a40[_0xb3552(0xbe)](_0xb3552(0xc0)+_0x9b724d[_0xb3552(0xb8)]);if(_0x9b724d['id'])_0x599a40[_0xb3552(0xbe)](_0xb3552(0xa3)+_0x9b724d['id']);if(_0x9b724d[_0xb3552(0xbf)])_0x599a40['push']('name='+_0x9b724d[_0xb3552(0xbf)]);if(_0x9b724d['params'])_0x599a40[_0xb3552(0xbe)]('params='+_0x9b724d[_0xb3552(0xab)]);return _0x599a40[_0xb3552(0xac)]>0x0?_0x599a40['join'](',\x20'):undefined;}
1
+ (function(_0x2c8572,_0x1ad8e0){const _0x5c2081=a81_0x3a63,_0x274a34=_0x2c8572();while(!![]){try{const _0x238df9=parseInt(_0x5c2081(0x12b))/0x1*(-parseInt(_0x5c2081(0x12e))/0x2)+parseInt(_0x5c2081(0x13a))/0x3*(parseInt(_0x5c2081(0x126))/0x4)+parseInt(_0x5c2081(0x137))/0x5+-parseInt(_0x5c2081(0x13e))/0x6+parseInt(_0x5c2081(0x132))/0x7+parseInt(_0x5c2081(0x133))/0x8+-parseInt(_0x5c2081(0x12c))/0x9*(parseInt(_0x5c2081(0x127))/0xa);if(_0x238df9===_0x1ad8e0)break;else _0x274a34['push'](_0x274a34['shift']());}catch(_0x209f08){_0x274a34['push'](_0x274a34['shift']());}}}(a81_0xad20,0x6d17c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4cc473,_0x5625d8,_0x105265){const _0x200d3e=a81_0x3a63,_0x26f01b=buildConfirmationContext(_0x4cc473,_0x5625d8,_0x105265),_0x361c40=[_0x200d3e(0x136)+_0x26f01b[_0x200d3e(0x12a)]];return _0x26f01b[_0x200d3e(0x125)]&&_0x361c40['push'](_0x200d3e(0x13f)+_0x26f01b[_0x200d3e(0x125)]),_0x26f01b['affectedRecords']&&_0x361c40[_0x200d3e(0x135)]('\x20\x20\x20Affected:\x20'+_0x26f01b[_0x200d3e(0x12d)]),_0x361c40['push'](_0x200d3e(0x12f)),_0x361c40;}export function reconstructCommandArgv(_0x13a12c,_0xbcded7){const _0x359f91=a81_0x3a63,_0x567239=[CLI_BIN_NAME,_0x13a12c[_0x359f91(0x140)],_0x13a12c['command']];for(const [_0x51fbd1,_0x20b480]of Object[_0x359f91(0x139)](_0xbcded7)){if(_0x20b480===!![])_0x567239[_0x359f91(0x135)]('--'+_0x51fbd1);else _0x20b480!==![]&&_0x20b480!==undefined&&_0x20b480!==''&&_0x567239[_0x359f91(0x135)]('--'+_0x51fbd1+'\x20'+JSON[_0x359f91(0x131)](_0x20b480));}return _0x567239[_0x359f91(0x135)](_0x359f91(0x138)),_0x567239[_0x359f91(0x13b)]('\x20');}function buildConfirmationContext(_0x1a5dec,_0xc9a41c,_0x2bc3fe){const _0x572ded=a81_0x3a63,_0x1cffba=extractAffectedRecords(_0x2bc3fe);return{'commandLabel':_0xc9a41c,'description':_0x1a5dec[_0x572ded(0x125)],'affectedRecords':_0x1cffba};}function extractAffectedRecords(_0x340bb1){const _0x439857=a81_0x3a63,_0xff59f3=[];if(_0x340bb1[_0x439857(0x134)])_0xff59f3[_0x439857(0x135)](_0x439857(0x13c)+_0x340bb1[_0x439857(0x134)]);if(_0x340bb1['id'])_0xff59f3[_0x439857(0x135)]('id='+_0x340bb1['id']);if(_0x340bb1[_0x439857(0x130)])_0xff59f3[_0x439857(0x135)](_0x439857(0x129)+_0x340bb1['name']);if(_0x340bb1[_0x439857(0x128)])_0xff59f3['push']('params='+_0x340bb1[_0x439857(0x128)]);return _0xff59f3[_0x439857(0x13d)]>0x0?_0xff59f3[_0x439857(0x13b)](',\x20'):undefined;}function a81_0x3a63(_0x467606,_0x319e72){_0x467606=_0x467606-0x125;const _0xad20b0=a81_0xad20();let _0x3a6385=_0xad20b0[_0x467606];return _0x3a6385;}function a81_0xad20(){const _0x33f452=['2985792qBrqCk','\x20\x20\x20','service','description','4836mwAArj','1109890zHGqiw','params','name=','commandLabel','63709dHXBQA','63vdrwEP','affectedRecords','8voIfNP','\x20\x20\x20Continue?\x20[y/N]\x20','name','stringify','782460rLVwaf','6854888BSgpal','code','push','⚠\x20\x20High-risk\x20operation:\x20','3714115xnbJjg','--yes','entries','657rjRRtv','join','code=','length'];a81_0xad20=function(){return _0x33f452;};return a81_0xad20();}
@@ -1 +1 @@
1
- function a82_0x3e46(_0x5adc63,_0x1f26ea){_0x5adc63=_0x5adc63-0x7d;const _0x4f833d=a82_0x4f83();let _0x3e46ef=_0x4f833d[_0x5adc63];return _0x3e46ef;}(function(_0xea9b46,_0x4ab233){const _0x522dcc=a82_0x3e46,_0x302ea9=_0xea9b46();while(!![]){try{const _0x4f9f96=parseInt(_0x522dcc(0x8c))/0x1*(parseInt(_0x522dcc(0x8b))/0x2)+parseInt(_0x522dcc(0x82))/0x3+-parseInt(_0x522dcc(0x89))/0x4*(parseInt(_0x522dcc(0x85))/0x5)+-parseInt(_0x522dcc(0x8a))/0x6*(parseInt(_0x522dcc(0x84))/0x7)+parseInt(_0x522dcc(0x7f))/0x8*(parseInt(_0x522dcc(0x83))/0x9)+-parseInt(_0x522dcc(0x7e))/0xa+parseInt(_0x522dcc(0x88))/0xb;if(_0x4f9f96===_0x4ab233)break;else _0x302ea9['push'](_0x302ea9['shift']());}catch(_0x2da417){_0x302ea9['push'](_0x302ea9['shift']());}}}(a82_0x4f83,0xf20e7));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x5ef3b7){const _0x1cd901=a82_0x3e46;if(_0x5ef3b7 instanceof LovrabetError)return CliErrors[_0x1cd901(0x86)](userFacingLovrabetMessage(_0x5ef3b7));return _0x5ef3b7;}function a82_0x4f83(){const _0x9ef5bb=['7117SNcDsJ','string','5033040IjdLoq','8RjnFPS','description','trim','1763910zqTEoJ','14354181SSQcEJ','13756841qbUWqU','3356345EKYvBC','validation','message','15247947unnsNX','4TUUimS','6LHYHcS','158YGFhNP'];a82_0x4f83=function(){return _0x9ef5bb;};return a82_0x4f83();}function userFacingLovrabetMessage(_0x2e0820){const _0x548d5d=a82_0x3e46,_0x4ec638=_0x2e0820[_0x548d5d(0x80)];if(_0x4ec638!==undefined&&_0x4ec638!==null){if(typeof _0x4ec638===_0x548d5d(0x7d)&&_0x4ec638[_0x548d5d(0x81)]())return _0x4ec638['trim']();try{return JSON['stringify'](_0x4ec638);}catch{}}return _0x2e0820[_0x548d5d(0x87)];}
1
+ function a82_0x9c47(){const _0x1272af=['1181295apJwSd','8RnxfzQ','7369325URdehV','description','5633452FCpeBy','trim','string','1792993Qzanhw','6lqJfBT','76259070tyPmIo','9442895upVmnI','2OtCuGD','validation','9465867sqMjmE'];a82_0x9c47=function(){return _0x1272af;};return a82_0x9c47();}(function(_0x50fac7,_0x143129){const _0x4d320b=a82_0x2fc5,_0x3cdc4a=_0x50fac7();while(!![]){try{const _0x48248a=parseInt(_0x4d320b(0x72))/0x1*(-parseInt(_0x4d320b(0x68))/0x2)+parseInt(_0x4d320b(0x6b))/0x3+-parseInt(_0x4d320b(0x6f))/0x4+-parseInt(_0x4d320b(0x6d))/0x5+parseInt(_0x4d320b(0x73))/0x6*(-parseInt(_0x4d320b(0x75))/0x7)+parseInt(_0x4d320b(0x6c))/0x8*(-parseInt(_0x4d320b(0x6a))/0x9)+parseInt(_0x4d320b(0x74))/0xa;if(_0x48248a===_0x143129)break;else _0x3cdc4a['push'](_0x3cdc4a['shift']());}catch(_0xa50b5a){_0x3cdc4a['push'](_0x3cdc4a['shift']());}}}(a82_0x9c47,0xe6657));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a82_0x2fc5(_0x10f428,_0x1f5d52){_0x10f428=_0x10f428-0x68;const _0x9c47d3=a82_0x9c47();let _0x2fc521=_0x9c47d3[_0x10f428];return _0x2fc521;}export function mapUserFacingExecuteError(_0x28725a){const _0xea9153=a82_0x2fc5;if(_0x28725a instanceof LovrabetError)return CliErrors[_0xea9153(0x69)](userFacingLovrabetMessage(_0x28725a));return _0x28725a;}function userFacingLovrabetMessage(_0x1cacc2){const _0x453d26=a82_0x2fc5,_0x454e51=_0x1cacc2[_0x453d26(0x6e)];if(_0x454e51!==undefined&&_0x454e51!==null){if(typeof _0x454e51===_0x453d26(0x71)&&_0x454e51[_0x453d26(0x70)]())return _0x454e51[_0x453d26(0x70)]();try{return JSON['stringify'](_0x454e51);}catch{}}return _0x1cacc2['message'];}
@@ -1 +1 @@
1
- const a83_0x2b5207=a83_0x3db5;(function(_0x11a4fe,_0x221133){const _0x3e883f=a83_0x3db5,_0x367e7=_0x11a4fe();while(!![]){try{const _0x338cad=parseInt(_0x3e883f(0x179))/0x1*(-parseInt(_0x3e883f(0x1a4))/0x2)+parseInt(_0x3e883f(0x1a5))/0x3*(parseInt(_0x3e883f(0x178))/0x4)+parseInt(_0x3e883f(0x19e))/0x5+parseInt(_0x3e883f(0x19d))/0x6*(-parseInt(_0x3e883f(0x1a3))/0x7)+parseInt(_0x3e883f(0x1b1))/0x8*(-parseInt(_0x3e883f(0x18c))/0x9)+parseInt(_0x3e883f(0x1b3))/0xa+parseInt(_0x3e883f(0x197))/0xb;if(_0x338cad===_0x221133)break;else _0x367e7['push'](_0x367e7['shift']());}catch(_0x2fe97b){_0x367e7['push'](_0x367e7['shift']());}}}(a83_0x1125,0xcfe40));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a83_0x1125(){const _0x17e0cd=['has','nonInteractive','Run\x20`','configMissing','Unknown\x20app:\x20','service','defaultPageSize','filter','env','error','9TEHdcy','../core/api-client.js','schema','name','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','string','requiresAuth','newConfigFileName','format','object','10131957DEtPlZ','../core/sdk-client.js','_notice','execute','appCodeSource','ClientAk','73734QWDOJk','8066960AqJKpD','defaultVerbose','\x20\x20To\x20proceed:\x20','accessKey','requiresAppCode','7pDNLRN','56516jjKZBi','59370IaaiBi','pageSize','pretty','\x20or\x20pass\x20','currentApp','map','verbose','rawFlags','validation','Set\x20accessKey\x20in\x20','app','items','5372792rEVFtp','includes','2893810rtBvub','APPCODE','doctor','isNonInteractive','apiDomain','command','48CxSJUt','54dEwWaB','mergedCli','trim','defaultApp','High-risk\x20operation\x20`','local-alias','production','../commands/app/remote-source.js','resolve'];a83_0x1125=function(){return _0x17e0cd;};return a83_0x1125();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a83_0x3db5(_0x1ff2c2,_0x2571f7){_0x1ff2c2=_0x1ff2c2-0x176;const _0x1125c1=a83_0x1125();let _0x3db5ff=_0x1125c1[_0x1ff2c2];return _0x3db5ff;}import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x1ae4ca){const _0x5aafb5=a83_0x3db5;return void _0x1ae4ca,AUTH_MODE[_0x5aafb5(0x19c)];}export function createPipelineEnv(_0x79498,_0x1761c4){const _0x5083f9=a83_0x3db5,_0x5d63e2=typeof _0x1761c4[_0x5083f9(0x1af)]===_0x5083f9(0x192)&&_0x1761c4[_0x5083f9(0x1af)]['trim']();return{'rawFlags':_0x1761c4,'appCode':_0x79498['appCode']||productEnv(_0x5083f9(0x1b4))||(_0x5d63e2?undefined:readAppCodeFromConfig()),'appCodeSource':_0x79498[_0x5083f9(0x19b)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1761c4),'defaultFormat':_0x79498['format'],'defaultPageSize':_0x79498[_0x5083f9(0x1a6)],'defaultVerbose':_0x79498[_0x5083f9(0x1ab)],'riskLevel':_0x79498['riskLevel'],'accessKey':_0x79498[_0x5083f9(0x1a1)],'env':_0x79498[_0x5083f9(0x18a)],'mergedCli':{'defaultApp':_0x79498[_0x5083f9(0x17c)],'currentApp':_0x79498[_0x5083f9(0x1a9)],'appCode':_0x79498['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a83_0x2b5207(0x189)](_0x21e21c=>PIPELINE_FLAG_NAMES[a83_0x2b5207(0x182)](_0x21e21c[a83_0x2b5207(0x18f)]))[a83_0x2b5207(0x1aa)](({name:_0x524d77,type:_0x5175c1,description:_0x5a22d2})=>({'name':_0x524d77,'type':_0x5175c1,'description':_0x5a22d2})),'formatOutput':formatOutput,'getCommandLabel'(_0x3b0b82){const _0x56b9a7=a83_0x2b5207;return CLI_BIN_NAME+'\x20'+_0x3b0b82[_0x56b9a7(0x187)]+'\x20'+_0x3b0b82[_0x56b9a7(0x177)];},'riskPolicy':{'onViolation'(_0x5d4a2c){const _0xbf6e20=a83_0x2b5207;console[_0xbf6e20(0x18b)](_0x5d4a2c);},'createError'(_0x18f565){return CliErrors['cancelled'](_0x18f565);}},async 'prepare'(_0x30c3f9,_0x1c06bc){const _0x4d5dca=a83_0x2b5207,_0x4e24c8=resolveAuthMode(_0x1c06bc);if(_0x30c3f9[_0x4d5dca(0x193)]!==![]){if(!_0x1c06bc['accessKey'])throw CliErrors['authRequired'](_0x4d5dca(0x1ae)+PRODUCT_CONFIG['newConfigFileName']+_0x4d5dca(0x1a8)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x2a9c47}=await import(_0x4d5dca(0x18d));_0x2a9c47(_0x1c06bc['accessKey']);}let _0x5ba8b2='';if(_0x30c3f9[_0x4d5dca(0x1a2)]!==![]){_0x5ba8b2=_0x1c06bc['appCode']??'',_0x5ba8b2=await resolveExplicitAppName(_0x30c3f9,_0x1c06bc,_0x5ba8b2);if(!_0x5ba8b2){await assertSelectedAppNameIsRuntimeAccessible(_0x30c3f9,_0x1c06bc);throw CliErrors[_0x4d5dca(0x185)](_0x4d5dca(0x190)+PRODUCT_CONFIG[_0x4d5dca(0x194)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x30c3f9,_0x1c06bc,_0x5ba8b2);}if(_0x5ba8b2){const {initSdkClient:_0x40dd83}=await import(_0x4d5dca(0x198));_0x40dd83({'appCode':_0x5ba8b2,'env':_0x1c06bc[_0x4d5dca(0x18a)]??_0x4d5dca(0x17f),'accessKey':_0x1c06bc['accessKey'],'authMode':_0x4e24c8});}return{'defaults':{'booleans':{'verbose':_0x1c06bc[_0x4d5dca(0x19f)]},'numbers':{'pagesize':_0x1c06bc[_0x4d5dca(0x188)]}},'extras':{'appCode':_0x5ba8b2,'cookie':'','apiDomain':_0x1c06bc[_0x4d5dca(0x176)],'apiDir':'','accessKey':_0x1c06bc[_0x4d5dca(0x1a1)],'envName':_0x1c06bc[_0x4d5dca(0x18a)],'mergedCli':_0x1c06bc['mergedCli']}};},async 'confirmHighRisk'({def:_0x415edf,env:_0x39eb71,flags:_0x427626,commandLabel:_0x90b722}){const _0x184bfc=a83_0x2b5207;if(_0x39eb71[_0x184bfc(0x1b6)]){const _0xaa5745=reconstructCommandArgv(_0x415edf,_0x427626);throw CliErrors[_0x184bfc(0x1ad)](_0x184bfc(0x17d)+_0x90b722+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x184bfc(0x1a0)+_0xaa5745));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x415edf,_0x90b722,_0x427626),'createCancelledError':_0x2f0c50=>CliErrors['cancelled'](_0x2f0c50)});},'mapDryRunError'(_0x4a024f){return mapUserFacingExecuteError(_0x4a024f);},'mapExecuteError'(_0x1a5eff){return mapUserFacingExecuteError(_0x1a5eff);},async 'finalize'(){const _0x3cb792=a83_0x2b5207,{clearActiveAK:_0x4cb399}=await import(_0x3cb792(0x18d));_0x4cb399();}};async function resolveExplicitAppName(_0x3070b3,_0xc68a15,_0x43cb6d){const _0x558190=a83_0x2b5207;if(_0x3070b3[_0x558190(0x1a2)]===![])return _0x43cb6d;const _0x2a66ad=typeof _0xc68a15[_0x558190(0x1ac)][_0x558190(0x1af)]===_0x558190(0x192)?_0xc68a15[_0x558190(0x1ac)]['app'][_0x558190(0x17b)]():'';if(!_0x2a66ad)return _0x43cb6d;const _0x320510=typeof _0xc68a15['rawFlags'][_0x558190(0x191)]==='string'&&_0xc68a15[_0x558190(0x1ac)][_0x558190(0x191)][_0x558190(0x17b)]()||productEnv(_0x558190(0x1b4));if(_0x320510||_0xc68a15[_0x558190(0x19b)]===_0x558190(0x17e))return _0x43cb6d;const {getRemoteAppList:_0x3fad03}=await import(_0x558190(0x180)),_0x2b3553=await _0x3fad03({'env':_0xc68a15[_0x558190(0x18a)]??_0x558190(0x17f),'accessKey':_0xc68a15['accessKey']}),_0x69b750=findAppByName(_0x2b3553[_0x558190(0x1b0)],_0x2a66ad);if(_0x69b750&&!isRuntimeAccessibleApp(_0x69b750))throw runtimeInaccessibleAppError(_0x69b750,'\x22'+_0x2a66ad+'\x22');const _0x43c9af=_0x69b750?.['appCode']?.[_0x558190(0x17b)]();if(_0x43c9af)return _0x43c9af;throw CliErrors[_0x558190(0x1ad)](_0x558190(0x186)+_0x2a66ad,_0x558190(0x184)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2a66ad+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x558190(0x194)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5afbe0,_0x16e2a6){const _0x5760bf=a83_0x2b5207;if(_0x5afbe0[_0x5760bf(0x1a2)]===![]||!_0x16e2a6[_0x5760bf(0x1a1)])return;const _0x2fa89d=(typeof _0x16e2a6[_0x5760bf(0x1ac)][_0x5760bf(0x1af)]===_0x5760bf(0x192)&&_0x16e2a6[_0x5760bf(0x1ac)][_0x5760bf(0x1af)][_0x5760bf(0x17b)]()?_0x16e2a6['rawFlags'][_0x5760bf(0x1af)]:_0x16e2a6[_0x5760bf(0x17a)]?.[_0x5760bf(0x1a9)]??_0x16e2a6[_0x5760bf(0x17a)]?.['defaultApp'])?.[_0x5760bf(0x17b)]();if(!_0x2fa89d)return;const {getRemoteAppList:_0xc75aa7}=await import('../commands/app/remote-source.js'),_0x4d8b3f=await _0xc75aa7({'env':_0x16e2a6[_0x5760bf(0x18a)]??_0x5760bf(0x17f),'accessKey':_0x16e2a6[_0x5760bf(0x1a1)]}),_0x544345=findAppByName(_0x4d8b3f[_0x5760bf(0x1b0)],_0x2fa89d);if(_0x544345&&!isRuntimeAccessibleApp(_0x544345))throw runtimeInaccessibleAppError(_0x544345,'\x22'+_0x2fa89d+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x35de33,_0x283a71,_0x23c0e9){const _0x1214a2=a83_0x2b5207;if(_0x35de33['requiresAppCode']===![]||!_0x283a71[_0x1214a2(0x1a1)])return;const {getRemoteAppList:_0x260908}=await import(_0x1214a2(0x180)),_0xdb0291=await _0x260908({'env':_0x283a71[_0x1214a2(0x18a)]??_0x1214a2(0x17f),'accessKey':_0x283a71[_0x1214a2(0x1a1)]}),_0x3c3075=findAppByCode(_0xdb0291['items'],_0x23c0e9);if(_0x3c3075&&!isRuntimeAccessibleApp(_0x3c3075))throw runtimeInaccessibleAppError(_0x3c3075,'appcode\x20\x22'+_0x23c0e9+'\x22');}export async function runCommand(_0x1ac7df,_0x4bbacc){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1ac7df)?withUpdateNotice(_0x1ac7df):_0x1ac7df,_0x4bbacc,runnerAdapter);}function shouldAttachUpdateNotice(_0x3d2176){const _0x52635f=a83_0x2b5207;return!['update',_0x52635f(0x18e),_0x52635f(0x1b5)][_0x52635f(0x1b2)](_0x3d2176['service']);}function withUpdateNotice(_0x1bf2a0){return{..._0x1bf2a0,async 'execute'(_0x266851){const _0x6ef534=a83_0x3db5,_0x8504cb=shouldResolveUpdateNotice(_0x266851)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x6ef534(0x181)](null),_0x475360=await _0x1bf2a0[_0x6ef534(0x19a)](_0x266851);return attachUpdateNotice(_0x475360,await _0x8504cb);}};}function shouldResolveUpdateNotice(_0x147f8f){const _0x150bf9=a83_0x2b5207;return _0x147f8f[_0x150bf9(0x195)]===_0x150bf9(0x1a7)&&!_0x147f8f[_0x150bf9(0x183)];}function attachUpdateNotice(_0x9a5325,_0x1002cd){const _0x10abe9=a83_0x2b5207;if(!_0x1002cd||!_0x9a5325||typeof _0x9a5325!==_0x10abe9(0x196))return _0x9a5325;const _0x1b101e=_0x9a5325,_0x158be6=typeof _0x1b101e[_0x10abe9(0x199)]===_0x10abe9(0x196)&&_0x1b101e[_0x10abe9(0x199)]!==null?_0x1b101e[_0x10abe9(0x199)]:{};return{..._0x1b101e,'_notice':{..._0x158be6,'update':_0x1002cd}};}
1
+ const a83_0x1ccd79=a83_0x103a;(function(_0x1143cb,_0x1ec5e7){const _0x4bbac4=a83_0x103a,_0x2500ae=_0x1143cb();while(!![]){try{const _0x251626=-parseInt(_0x4bbac4(0x107))/0x1*(parseInt(_0x4bbac4(0xfc))/0x2)+-parseInt(_0x4bbac4(0xe3))/0x3*(parseInt(_0x4bbac4(0xf9))/0x4)+parseInt(_0x4bbac4(0x10c))/0x5*(parseInt(_0x4bbac4(0xee))/0x6)+-parseInt(_0x4bbac4(0xf5))/0x7*(-parseInt(_0x4bbac4(0xe5))/0x8)+parseInt(_0x4bbac4(0x10f))/0x9*(parseInt(_0x4bbac4(0x11a))/0xa)+-parseInt(_0x4bbac4(0x110))/0xb+-parseInt(_0x4bbac4(0xdb))/0xc;if(_0x251626===_0x1ec5e7)break;else _0x2500ae['push'](_0x2500ae['shift']());}catch(_0x37966a){_0x2500ae['push'](_0x2500ae['shift']());}}}(a83_0x739a,0xc6f78));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';function a83_0x739a(){const _0x34f258=['execute','pageSize','app','requiresAuth','ACCESS_KEY','filter','1710GAWnfe','cancelled','requiresAppCode','isNonInteractive','defaultVerbose','doctor','1488048NMbiFY','trim','string','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','has','configMissing','rawFlags','appCodeSource','82041BlcyVj','_notice','1912eqExnL','resolve','defaultPageSize','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','env','riskLevel','../commands/app/remote-source.js','accessKey','4865172wHlQWg','Run\x20`','appcode\x20\x22','name','error','pretty','format','22099RTwwgN','update','appcode','authRequired','4kmrPox','verbose','nonInteractive','2783866JYrCSk','../core/sdk-client.js','\x20\x20To\x20proceed:\x20','../core/api-client.js','\x20or\x20pass\x20','APPCODE','mergedCli','ClientAk','items','apiDomain','production','1UxGMOR','defaultApp','map','Unknown\x20app:\x20','currentApp','10DGfuil','object','newConfigFileName','729EFoqjh','350306lGNIos','local-alias','appCode','includes'];a83_0x739a=function(){return _0x34f258;};return a83_0x739a();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x2f0e3f){const _0x41a5ef=a83_0x103a;return void _0x2f0e3f,AUTH_MODE[_0x41a5ef(0x103)];}export function createPipelineEnv(_0x44ef0e,_0x3d25f6){const _0x154668=a83_0x103a,_0x650026=typeof _0x3d25f6[_0x154668(0x116)]==='string'&&_0x3d25f6[_0x154668(0x116)]['trim']();return{'rawFlags':_0x3d25f6,'appCode':_0x44ef0e['appCode']||productEnv(_0x154668(0x101))||(_0x650026?undefined:readAppCodeFromConfig()),'appCodeSource':_0x44ef0e[_0x154668(0xe2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x3d25f6),'defaultFormat':_0x44ef0e[_0x154668(0xf4)],'defaultPageSize':_0x44ef0e[_0x154668(0x115)],'defaultVerbose':_0x44ef0e[_0x154668(0xfa)],'riskLevel':_0x44ef0e[_0x154668(0xeb)],'accessKey':_0x44ef0e[_0x154668(0xed)],'env':_0x44ef0e['env'],'mergedCli':{'defaultApp':_0x44ef0e[_0x154668(0x108)],'currentApp':_0x44ef0e[_0x154668(0x10b)],'appCode':_0x44ef0e[_0x154668(0x112)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a83_0x1ccd79(0x119)](_0x4751eb=>PIPELINE_FLAG_NAMES[a83_0x1ccd79(0xdf)](_0x4751eb[a83_0x1ccd79(0xf1)]))[a83_0x1ccd79(0x109)](({name:_0x16d9a8,type:_0x25d1cc,description:_0x45457e})=>({'name':_0x16d9a8,'type':_0x25d1cc,'description':_0x45457e})),'formatOutput':formatOutput,'getCommandLabel'(_0x22f1f6){return CLI_BIN_NAME+'\x20'+_0x22f1f6['service']+'\x20'+_0x22f1f6['command'];},'riskPolicy':{'onViolation'(_0x2b4cee){const _0x545160=a83_0x1ccd79;console[_0x545160(0xf2)](_0x2b4cee);},'createError'(_0x1f103c){const _0x3399d6=a83_0x1ccd79;return CliErrors[_0x3399d6(0x11b)](_0x1f103c);}},async 'prepare'(_0x437303,_0x310029){const _0x30760b=a83_0x1ccd79,_0x23a5ee=resolveAuthMode(_0x310029);if(_0x437303[_0x30760b(0x117)]!==![]){if(!_0x310029[_0x30760b(0xed)])throw CliErrors[_0x30760b(0xf8)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x30760b(0x10e)]+_0x30760b(0x100)+productEnvName(_0x30760b(0x118))+'.');const {setActiveAK:_0x3ac0e0}=await import(_0x30760b(0xff));_0x3ac0e0(_0x310029[_0x30760b(0xed)]);}let _0x2b48be='';if(_0x437303[_0x30760b(0xd7)]!==![]){_0x2b48be=_0x310029[_0x30760b(0x112)]??'',_0x2b48be=await resolveExplicitAppName(_0x437303,_0x310029,_0x2b48be);if(!_0x2b48be){await assertSelectedAppNameIsRuntimeAccessible(_0x437303,_0x310029);throw CliErrors[_0x30760b(0xe0)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x30760b(0x10e)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x437303,_0x310029,_0x2b48be);}if(_0x2b48be){const {initSdkClient:_0x39881d}=await import(_0x30760b(0xfd));_0x39881d({'appCode':_0x2b48be,'env':_0x310029[_0x30760b(0xea)]??'production','accessKey':_0x310029[_0x30760b(0xed)],'authMode':_0x23a5ee});}return{'defaults':{'booleans':{'verbose':_0x310029[_0x30760b(0xd9)]},'numbers':{'pagesize':_0x310029[_0x30760b(0xe7)]}},'extras':{'appCode':_0x2b48be,'cookie':'','apiDomain':_0x310029[_0x30760b(0x105)],'apiDir':'','accessKey':_0x310029[_0x30760b(0xed)],'envName':_0x310029[_0x30760b(0xea)],'mergedCli':_0x310029[_0x30760b(0x102)]}};},async 'confirmHighRisk'({def:_0x569ce5,env:_0x4b34d1,flags:_0x41ed76,commandLabel:_0x51174a}){const _0x48326e=a83_0x1ccd79;if(_0x4b34d1[_0x48326e(0xd8)]){const _0x42faa8=reconstructCommandArgv(_0x569ce5,_0x41ed76);throw CliErrors['validation'](_0x48326e(0xe8)+_0x51174a+_0x48326e(0xde)+(_0x48326e(0xfe)+_0x42faa8));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x569ce5,_0x51174a,_0x41ed76),'createCancelledError':_0x14d4f8=>CliErrors['cancelled'](_0x14d4f8)});},'mapDryRunError'(_0x5b965a){return mapUserFacingExecuteError(_0x5b965a);},'mapExecuteError'(_0xd12220){return mapUserFacingExecuteError(_0xd12220);},async 'finalize'(){const _0x2b22d2=a83_0x1ccd79,{clearActiveAK:_0xccb98d}=await import(_0x2b22d2(0xff));_0xccb98d();}};async function resolveExplicitAppName(_0x2b7f40,_0x23fa97,_0x52b459){const _0x157326=a83_0x1ccd79;if(_0x2b7f40['requiresAppCode']===![])return _0x52b459;const _0x4c8d31=typeof _0x23fa97[_0x157326(0xe1)][_0x157326(0x116)]===_0x157326(0xdd)?_0x23fa97[_0x157326(0xe1)][_0x157326(0x116)][_0x157326(0xdc)]():'';if(!_0x4c8d31)return _0x52b459;const _0x42b769=typeof _0x23fa97[_0x157326(0xe1)]['appcode']===_0x157326(0xdd)&&_0x23fa97[_0x157326(0xe1)][_0x157326(0xf7)][_0x157326(0xdc)]()||productEnv(_0x157326(0x101));if(_0x42b769||_0x23fa97[_0x157326(0xe2)]===_0x157326(0x111))return _0x52b459;const {getRemoteAppList:_0x41e2bb}=await import(_0x157326(0xec)),_0x388021=await _0x41e2bb({'env':_0x23fa97['env']??_0x157326(0x106),'accessKey':_0x23fa97[_0x157326(0xed)]}),_0x429497=findAppByName(_0x388021['items'],_0x4c8d31);if(_0x429497&&!isRuntimeAccessibleApp(_0x429497))throw runtimeInaccessibleAppError(_0x429497,'\x22'+_0x4c8d31+'\x22');const _0x4e44a4=_0x429497?.[_0x157326(0x112)]?.[_0x157326(0xdc)]();if(_0x4e44a4)return _0x4e44a4;throw CliErrors['validation'](_0x157326(0x10a)+_0x4c8d31,_0x157326(0xef)+CLI_BIN_NAME+_0x157326(0xe9)+_0x4c8d31+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x157326(0x10e)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xa4a82b,_0x158f5d){const _0x1885fb=a83_0x1ccd79;if(_0xa4a82b[_0x1885fb(0xd7)]===![]||!_0x158f5d[_0x1885fb(0xed)])return;const _0x22484e=(typeof _0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)]===_0x1885fb(0xdd)&&_0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)][_0x1885fb(0xdc)]()?_0x158f5d[_0x1885fb(0xe1)][_0x1885fb(0x116)]:_0x158f5d[_0x1885fb(0x102)]?.[_0x1885fb(0x10b)]??_0x158f5d[_0x1885fb(0x102)]?.[_0x1885fb(0x108)])?.[_0x1885fb(0xdc)]();if(!_0x22484e)return;const {getRemoteAppList:_0x16cc76}=await import(_0x1885fb(0xec)),_0x43d1cd=await _0x16cc76({'env':_0x158f5d[_0x1885fb(0xea)]??_0x1885fb(0x106),'accessKey':_0x158f5d[_0x1885fb(0xed)]}),_0x2674f8=findAppByName(_0x43d1cd[_0x1885fb(0x104)],_0x22484e);if(_0x2674f8&&!isRuntimeAccessibleApp(_0x2674f8))throw runtimeInaccessibleAppError(_0x2674f8,'\x22'+_0x22484e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5763c3,_0x5da809,_0xafd154){const _0x553077=a83_0x1ccd79;if(_0x5763c3[_0x553077(0xd7)]===![]||!_0x5da809[_0x553077(0xed)])return;const {getRemoteAppList:_0x4cfdfd}=await import('../commands/app/remote-source.js'),_0x52eb36=await _0x4cfdfd({'env':_0x5da809[_0x553077(0xea)]??_0x553077(0x106),'accessKey':_0x5da809['accessKey']}),_0xc24dd7=findAppByCode(_0x52eb36[_0x553077(0x104)],_0xafd154);if(_0xc24dd7&&!isRuntimeAccessibleApp(_0xc24dd7))throw runtimeInaccessibleAppError(_0xc24dd7,_0x553077(0xf0)+_0xafd154+'\x22');}export async function runCommand(_0x39b4a2,_0xca0c0c){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x39b4a2)?withUpdateNotice(_0x39b4a2):_0x39b4a2,_0xca0c0c,runnerAdapter);}function a83_0x103a(_0x19f0df,_0x23c6f4){_0x19f0df=_0x19f0df-0xd7;const _0x739a63=a83_0x739a();let _0x103a3c=_0x739a63[_0x19f0df];return _0x103a3c;}function shouldAttachUpdateNotice(_0x5e9413){const _0x20aa09=a83_0x1ccd79;return![_0x20aa09(0xf6),'schema',_0x20aa09(0xda)][_0x20aa09(0x113)](_0x5e9413['service']);}function withUpdateNotice(_0x8eeb6d){return{..._0x8eeb6d,async 'execute'(_0x5b1cbb){const _0x2c5ea1=a83_0x103a,_0x37648c=shouldResolveUpdateNotice(_0x5b1cbb)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x2c5ea1(0xe6)](null),_0x5a33f7=await _0x8eeb6d[_0x2c5ea1(0x114)](_0x5b1cbb);return attachUpdateNotice(_0x5a33f7,await _0x37648c);}};}function shouldResolveUpdateNotice(_0x31fea8){const _0x56fbc=a83_0x1ccd79;return _0x31fea8[_0x56fbc(0xf4)]===_0x56fbc(0xf3)&&!_0x31fea8[_0x56fbc(0xfb)];}function attachUpdateNotice(_0x34b69f,_0x256631){const _0x20f8cf=a83_0x1ccd79;if(!_0x256631||!_0x34b69f||typeof _0x34b69f!==_0x20f8cf(0x10d))return _0x34b69f;const _0x283844=_0x34b69f,_0x495b3e=typeof _0x283844['_notice']===_0x20f8cf(0x10d)&&_0x283844['_notice']!==null?_0x283844[_0x20f8cf(0xe4)]:{};return{..._0x283844,'_notice':{..._0x495b3e,'update':_0x256631}};}
@@ -1 +1 @@
1
- (function(_0x257bc4,_0x1a96ba){const _0x1669ad=a84_0x283a,_0x4999e2=_0x257bc4();while(!![]){try{const _0xccba8f=-parseInt(_0x1669ad(0xcb))/0x1*(parseInt(_0x1669ad(0xcc))/0x2)+-parseInt(_0x1669ad(0xce))/0x3+parseInt(_0x1669ad(0xc9))/0x4+parseInt(_0x1669ad(0xc5))/0x5+parseInt(_0x1669ad(0xc3))/0x6*(parseInt(_0x1669ad(0xc7))/0x7)+-parseInt(_0x1669ad(0xc6))/0x8+parseInt(_0x1669ad(0xd0))/0x9;if(_0xccba8f===_0x1a96ba)break;else _0x4999e2['push'](_0x4999e2['shift']());}catch(_0x5501e7){_0x4999e2['push'](_0x4999e2['shift']());}}}(a84_0x36ab,0x4e4a1));import{buildSchemaPayload as a84_0x30cc72}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a84_0x283a(_0x39efa6,_0x208722){_0x39efa6=_0x39efa6-0xc1;const _0x36ab0f=a84_0x36ab();let _0x283a53=_0x36ab0f[_0x39efa6];return _0x283a53;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4f0181=a84_0x283a,{serviceRegistry:_0x55cb42,findDefinition:_0x472093}=await import('../commands/registry.js'),_0x4decfe=new Set(_0x55cb42[_0x4f0181(0xc2)](_0x3a4052=>_0x3a4052[_0x4f0181(0xca)])),_0x271b4c=listDynamicServiceEntries()[_0x4f0181(0xc4)](_0x5f0289=>!_0x4decfe[_0x4f0181(0xc8)](_0x5f0289[_0x4f0181(0xca)])),_0x484f12=a84_0x30cc72({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x55cb42,..._0x271b4c],'buildAllFlags':buildAllFlags,'findDefinition':(_0x49df30,_0x1ebbd5)=>_0x472093(_0x49df30,_0x1ebbd5)??findDynamicServiceDefinition(_0x49df30,_0x1ebbd5)});return normalizeSchemaPayload(_0x484f12);}function a84_0x36ab(){const _0x226e49=['606778diaQps','2XyFbqU','requiresAuth','33816zePJhS','services','9176490WAdwVc','auth','required','map','144zreUKO','filter','593610rPwEwL','3973016wdzWCd','17647vAxrUw','has','946056PKbiah','service'];a84_0x36ab=function(){return _0x226e49;};return a84_0x36ab();}function normalizeSchemaPayload(_0x240fc5){const _0x1e079d=a84_0x283a;return{..._0x240fc5,'schemaVersion':0x2,'services':_0x240fc5[_0x1e079d(0xcf)][_0x1e079d(0xc2)](_0x2f412a=>({..._0x2f412a,'commands':_0x2f412a['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4a4dfe){const _0x2f80cb=a84_0x283a,_0xde1c6a=_0x4a4dfe;return{..._0x4a4dfe,'auth':_0xde1c6a[_0x2f80cb(0xd1)]??(_0x4a4dfe[_0x2f80cb(0xcd)]?_0x2f80cb(0xc1):'none')};}
1
+ (function(_0x387a47,_0x48963c){const _0x3373de=a84_0x2485,_0x574783=_0x387a47();while(!![]){try{const _0x578f7e=-parseInt(_0x3373de(0x8b))/0x1+-parseInt(_0x3373de(0x8c))/0x2*(-parseInt(_0x3373de(0x80))/0x3)+parseInt(_0x3373de(0x83))/0x4+parseInt(_0x3373de(0x8f))/0x5*(-parseInt(_0x3373de(0x81))/0x6)+parseInt(_0x3373de(0x84))/0x7+-parseInt(_0x3373de(0x8a))/0x8+parseInt(_0x3373de(0x85))/0x9;if(_0x578f7e===_0x48963c)break;else _0x574783['push'](_0x574783['shift']());}catch(_0x4e27db){_0x574783['push'](_0x574783['shift']());}}}(a84_0x3724,0xd5d4a));function a84_0x3724(){const _0x5e0c76=['668429JOCPok','1482GTuWfL','requiresAuth','auth','5poyDfq','services','2457VeZOhC','2611110mnJdUc','commands','5446264knnKck','6319796oKSNmZ','4390497bIiDcO','map','has','none','filter','11037136vmxCTe'];a84_0x3724=function(){return _0x5e0c76;};return a84_0x3724();}import{buildSchemaPayload as a84_0x4b99b4}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x234b76=a84_0x2485,{serviceRegistry:_0x270c16,findDefinition:_0x3aafb7}=await import('../commands/registry.js'),_0x35a370=new Set(_0x270c16[_0x234b76(0x86)](_0x5d71c9=>_0x5d71c9['service'])),_0x595669=listDynamicServiceEntries()[_0x234b76(0x89)](_0x430572=>!_0x35a370[_0x234b76(0x87)](_0x430572['service'])),_0x273715=a84_0x4b99b4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x270c16,_0x595669),'buildAllFlags':buildAllFlags,'findDefinition':(_0xf3fbd6,_0x3e395a)=>_0x3aafb7(_0xf3fbd6,_0x3e395a)??findDynamicServiceDefinition(_0xf3fbd6,_0x3e395a)});return normalizeSchemaPayload(_0x273715);}function a84_0x2485(_0x4e3497,_0x52b791){_0x4e3497=_0x4e3497-0x7f;const _0x372457=a84_0x3724();let _0x248532=_0x372457[_0x4e3497];return _0x248532;}function normalizeSchemaPayload(_0xfbf559){const _0x520dc6=a84_0x2485;return{..._0xfbf559,'schemaVersion':0x2,'services':_0xfbf559[_0x520dc6(0x7f)][_0x520dc6(0x86)](_0xbd4ccf=>({..._0xbd4ccf,'commands':_0xbd4ccf[_0x520dc6(0x82)][_0x520dc6(0x86)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3b1ef6){const _0x50b71f=a84_0x2485,_0x4b7612=_0x3b1ef6;return{..._0x3b1ef6,'auth':_0x4b7612[_0x50b71f(0x8e)]??(_0x3b1ef6[_0x50b71f(0x8d)]?'required':_0x50b71f(0x88))};}
@@ -0,0 +1 @@
1
+ function a85_0x365f(_0x3a9637,_0x4e72c5){_0x3a9637=_0x3a9637-0x195;const _0x1eccc9=a85_0x1ecc();let _0x365f49=_0x1eccc9[_0x3a9637];return _0x365f49;}(function(_0x2be890,_0x1ed8bf){const _0x58abb7=a85_0x365f,_0x27eba7=_0x2be890();while(!![]){try{const _0x56ab09=-parseInt(_0x58abb7(0x19d))/0x1*(-parseInt(_0x58abb7(0x19b))/0x2)+parseInt(_0x58abb7(0x199))/0x3*(-parseInt(_0x58abb7(0x197))/0x4)+parseInt(_0x58abb7(0x1a0))/0x5*(parseInt(_0x58abb7(0x1a1))/0x6)+-parseInt(_0x58abb7(0x196))/0x7+parseInt(_0x58abb7(0x19f))/0x8*(-parseInt(_0x58abb7(0x1a3))/0x9)+-parseInt(_0x58abb7(0x19a))/0xa+parseInt(_0x58abb7(0x195))/0xb;if(_0x56ab09===_0x1ed8bf)break;else _0x27eba7['push'](_0x27eba7['shift']());}catch(_0x304cff){_0x27eba7['push'](_0x27eba7['shift']());}}}(a85_0x1ecc,0xbfc06));export function insertDynamicServicesAfterServiceTree(_0x1b7788,_0x2cde00){const _0x25e6dd=a85_0x365f;if(_0x2cde00[_0x25e6dd(0x1a2)]===0x0)return[..._0x1b7788];const _0x141d34=_0x1b7788[_0x25e6dd(0x19c)](_0x26e4a4=>_0x26e4a4[_0x25e6dd(0x19e)]==='service');if(_0x141d34<0x0)return[..._0x1b7788,..._0x2cde00];return[..._0x1b7788[_0x25e6dd(0x198)](0x0,_0x141d34+0x1),..._0x2cde00,..._0x1b7788['slice'](_0x141d34+0x1)];}function a85_0x1ecc(){const _0x10882a=['5656532YMkJKh','3315764aDGoZo','slice','3UAUpCm','581490RoNecz','1149638VmRVcb','findIndex','1opsLeL','service','48Xcyyay','1724135ONDieD','6WSPpYE','length','2334303fjVuAI','34288496LwmMXL'];a85_0x1ecc=function(){return _0x10882a;};return a85_0x1ecc();}
@@ -1 +1 @@
1
- function a85_0x33f2(){var _0x574b1d=['5819976rQIPRZ','2768tsVnxb','1360024EmFAYB','2EXObjN','639671QTzYvQ','12682197TsrHTh','6jromIh','3525DxBQId','1709491uvFNMX','10TKReeJ','569337VYiZhI'];a85_0x33f2=function(){return _0x574b1d;};return a85_0x33f2();}(function(_0x37123d,_0x4147fa){var _0x488ae9=a85_0x1ed6,_0x57d2f7=_0x37123d();while(!![]){try{var _0x3ebcef=parseInt(_0x488ae9(0xe2))/0x1*(parseInt(_0x488ae9(0xe1))/0x2)+parseInt(_0x488ae9(0xe8))/0x3+-parseInt(_0x488ae9(0xdf))/0x4*(parseInt(_0x488ae9(0xe5))/0x5)+-parseInt(_0x488ae9(0xe4))/0x6*(parseInt(_0x488ae9(0xe6))/0x7)+-parseInt(_0x488ae9(0xe0))/0x8+-parseInt(_0x488ae9(0xe9))/0x9+parseInt(_0x488ae9(0xe7))/0xa*(parseInt(_0x488ae9(0xe3))/0xb);if(_0x3ebcef===_0x4147fa)break;else _0x57d2f7['push'](_0x57d2f7['shift']());}catch(_0x4cffce){_0x57d2f7['push'](_0x57d2f7['shift']());}}}(a85_0x33f2,0x69de5));function a85_0x1ed6(_0x27d482,_0x559f5b){_0x27d482=_0x27d482-0xdf;var _0x33f2fb=a85_0x33f2();var _0x1ed6ed=_0x33f2fb[_0x27d482];return _0x1ed6ed;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x212400,_0x36e918){var _0x5d2648=a86_0x3ae8,_0x3c26fa=_0x212400();while(!![]){try{var _0x32c1c0=parseInt(_0x5d2648(0x1e6))/0x1+parseInt(_0x5d2648(0x1e1))/0x2+-parseInt(_0x5d2648(0x1e3))/0x3*(parseInt(_0x5d2648(0x1e2))/0x4)+parseInt(_0x5d2648(0x1de))/0x5*(parseInt(_0x5d2648(0x1e5))/0x6)+-parseInt(_0x5d2648(0x1e4))/0x7+parseInt(_0x5d2648(0x1e0))/0x8+-parseInt(_0x5d2648(0x1df))/0x9;if(_0x32c1c0===_0x36e918)break;else _0x3c26fa['push'](_0x3c26fa['shift']());}catch(_0xf14ff1){_0x3c26fa['push'](_0x3c26fa['shift']());}}}(a86_0x692f,0x7c392));function a86_0x692f(){var _0x503461=['5AMCfhT','19779426XjbUdg','4830360CPnqvd','1897188zIvPUN','4fKxTCk','137799DollPd','5359487POMLpt','6013266VPLoWC','963506CULKHa'];a86_0x692f=function(){return _0x503461;};return a86_0x692f();}function a86_0x3ae8(_0x1da2c8,_0x800c0d){_0x1da2c8=_0x1da2c8-0x1de;var _0x692f47=a86_0x692f();var _0x3ae89c=_0x692f47[_0x1da2c8];return _0x3ae89c;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a86_0x443152=a86_0x105b;function a86_0x105b(_0x5591e1,_0x464576){_0x5591e1=_0x5591e1-0x6f;const _0x2e4c97=a86_0x2e4c();let _0x105b23=_0x2e4c97[_0x5591e1];return _0x105b23;}(function(_0x32950d,_0x4a8a72){const _0xd226b=a86_0x105b,_0x4257ee=_0x32950d();while(!![]){try{const _0x364f5e=parseInt(_0xd226b(0x7b))/0x1+parseInt(_0xd226b(0x73))/0x2+-parseInt(_0xd226b(0x74))/0x3*(-parseInt(_0xd226b(0x72))/0x4)+parseInt(_0xd226b(0x77))/0x5*(parseInt(_0xd226b(0x70))/0x6)+-parseInt(_0xd226b(0x76))/0x7+parseInt(_0xd226b(0x75))/0x8*(-parseInt(_0xd226b(0x7a))/0x9)+-parseInt(_0xd226b(0x79))/0xa*(parseInt(_0xd226b(0x71))/0xb);if(_0x364f5e===_0x4a8a72)break;else _0x4257ee['push'](_0x4257ee['shift']());}catch(_0x8dbc7f){_0x4257ee['push'](_0x4257ee['shift']());}}}(a86_0x2e4c,0xee07e));export const VERSION=a86_0x443152(0x6f);export const GIT_TAG=a86_0x443152(0x78);function a86_0x2e4c(){const _0x2d432c=['5DfAbDN','v2.1.7-beta.4','10490YQZfKY','974439OQTkgK','1911932HmXpoe','2.1.7-beta.4','5699796NeqdDy','8613FXWQgp','44JRWgIa','295790zReUYt','261144moQKhJ','112TkYnzB','4586302LzZiJw'];a86_0x2e4c=function(){return _0x2d432c;};return a86_0x2e4c();}export const GIT_COMMIT='a6ef79c';export const BUILD_TIME='2026-07-06T15:38:11.814Z';
1
+ function a87_0x5692(_0xe27640,_0x27a6f7){_0xe27640=_0xe27640-0x15e;const _0x14f534=a87_0x14f5();let _0x5692af=_0x14f534[_0xe27640];return _0x5692af;}const a87_0x3c420e=a87_0x5692;(function(_0x2190d7,_0x184c41){const _0x186b28=a87_0x5692,_0xfa3e10=_0x2190d7();while(!![]){try{const _0x31d1ab=parseInt(_0x186b28(0x169))/0x1*(-parseInt(_0x186b28(0x15e))/0x2)+parseInt(_0x186b28(0x167))/0x3*(parseInt(_0x186b28(0x166))/0x4)+parseInt(_0x186b28(0x162))/0x5*(-parseInt(_0x186b28(0x16b))/0x6)+parseInt(_0x186b28(0x160))/0x7*(parseInt(_0x186b28(0x164))/0x8)+parseInt(_0x186b28(0x163))/0x9+-parseInt(_0x186b28(0x15f))/0xa+-parseInt(_0x186b28(0x16c))/0xb*(parseInt(_0x186b28(0x161))/0xc);if(_0x31d1ab===_0x184c41)break;else _0xfa3e10['push'](_0xfa3e10['shift']());}catch(_0x260701){_0xfa3e10['push'](_0xfa3e10['shift']());}}}(a87_0x14f5,0xc30a5));export const VERSION=a87_0x3c420e(0x165);function a87_0x14f5(){const _0x327f87=['165tCsLJu','2TucFAq','9818080BgaTHi','40901Vqvgxl','21780fnSIFu','12435EDLONI','12305637QxyzVO','1088XzxBUT','2.1.7','8CuhYKd','46542QsDule','8063aee','208474uCpJPT','2026-07-07T11:04:05.382Z','426Qmmooi'];a87_0x14f5=function(){return _0x327f87;};return a87_0x14f5();}export const GIT_TAG='v2.1.7-beta.5';export const GIT_COMMIT=a87_0x3c420e(0x168);export const BUILD_TIME=a87_0x3c420e(0x16a);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a87_0x401a(_0x1dc597,_0x2d2ee2){_0x1dc597=_0x1dc597-0xc8;const _0x31f6b0=a87_0x31f6();let _0x401a18=_0x31f6b0[_0x1dc597];return _0x401a18;}function a87_0x31f6(){const _0x34e812=['\x20\x20Use\x20','290794MqIOzg','12HkxlLP','28704kBcGfX','4070xorRjI','10SRsZNf','24SEXios','616494kbzHgn','137520PQrzQm','233570GozsIw','green','72269kTlRvn','column','140RdgNRE','4435576pcLTQp','\x20to\x20view\x20available\x20commands.'];a87_0x31f6=function(){return _0x34e812;};return a87_0x31f6();}(function(_0xe0b0b3,_0x3c140a){const _0x3ea1e7=a87_0x401a,_0x3f90cb=_0xe0b0b3();while(!![]){try{const _0x1cb9ca=parseInt(_0x3ea1e7(0xce))/0x1*(-parseInt(_0x3ea1e7(0xc8))/0x2)+-parseInt(_0x3ea1e7(0xca))/0x3+-parseInt(_0x3ea1e7(0xc9))/0x4*(parseInt(_0x3ea1e7(0xcc))/0x5)+-parseInt(_0x3ea1e7(0xd5))/0x6*(parseInt(_0x3ea1e7(0xd4))/0x7)+parseInt(_0x3ea1e7(0xd1))/0x8+parseInt(_0x3ea1e7(0xcb))/0x9*(-parseInt(_0x3ea1e7(0xd0))/0xa)+-parseInt(_0x3ea1e7(0xd7))/0xb*(-parseInt(_0x3ea1e7(0xd6))/0xc);if(_0x1cb9ca===_0x3c140a)break;else _0x3f90cb['push'](_0x3f90cb['shift']());}catch(_0x13e448){_0x3f90cb['push'](_0x3f90cb['shift']());}}}(a87_0x31f6,0x481bc));import{jsx as a87_0x46108a,jsxs as a87_0xf5e845}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x3e551f=a87_0x401a,{exit:_0x1dec4f}=useApp();return useEffect(()=>{_0x1dec4f();},[_0x1dec4f]),a87_0xf5e845(Box,{'flexDirection':_0x3e551f(0xcf),'marginTop':0x1,'marginBottom':0x1,'children':[a87_0x46108a(Box,{'children':a87_0x46108a(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a87_0xf5e845(Box,{'marginTop':0x1,'children':[a87_0x46108a(Text,{'dimColor':!![],'children':_0x3e551f(0xd3)}),a87_0x46108a(Text,{'bold':!![],'color':_0x3e551f(0xcd),'children':CLI_BIN_NAME+'\x20--help'}),a87_0x46108a(Text,{'dimColor':!![],'children':_0x3e551f(0xd2)})]})]});}
1
+ (function(_0x1f28d7,_0x4491a9){const _0xee2c44=a88_0x1841,_0x41bdf1=_0x1f28d7();while(!![]){try{const _0x1f458c=-parseInt(_0xee2c44(0x191))/0x1*(-parseInt(_0xee2c44(0x197))/0x2)+-parseInt(_0xee2c44(0x18e))/0x3*(-parseInt(_0xee2c44(0x192))/0x4)+parseInt(_0xee2c44(0x18c))/0x5*(-parseInt(_0xee2c44(0x196))/0x6)+parseInt(_0xee2c44(0x194))/0x7+parseInt(_0xee2c44(0x18a))/0x8+parseInt(_0xee2c44(0x195))/0x9*(-parseInt(_0xee2c44(0x18b))/0xa)+-parseInt(_0xee2c44(0x190))/0xb;if(_0x1f458c===_0x4491a9)break;else _0x41bdf1['push'](_0x41bdf1['shift']());}catch(_0x1bc0c9){_0x41bdf1['push'](_0x41bdf1['shift']());}}}(a88_0x2bf2,0x8dc90));import{jsx as a88_0x2de7db,jsxs as a88_0x50f2b5}from'react/jsx-runtime';import{useEffect}from'react';function a88_0x2bf2(){const _0x5a7cd6=['20016KSERdg','59802oKdkuF','60jQjZtp','1277272HQDIgW','2000BfkFJM','195yzBkHr','\x20to\x20view\x20available\x20commands.','101094OLoUvK','\x20--help','9774633VcmNsp','10667LBcHVt','100qEzPRQ','green','6865243HmpsvW'];a88_0x2bf2=function(){return _0x5a7cd6;};return a88_0x2bf2();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a88_0x1841(_0x3c55b1,_0x1e74d8){_0x3c55b1=_0x3c55b1-0x18a;const _0x2bf269=a88_0x2bf2();let _0x184114=_0x2bf269[_0x3c55b1];return _0x184114;}export function Help(){const _0xfdbb8b=a88_0x1841,{exit:_0x9c8101}=useApp();return useEffect(()=>{_0x9c8101();},[_0x9c8101]),a88_0x50f2b5(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a88_0x2de7db(Box,{'children':a88_0x2de7db(Text,{'bold':!![],'color':_0xfdbb8b(0x193),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a88_0x50f2b5(Box,{'marginTop':0x1,'children':[a88_0x2de7db(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a88_0x2de7db(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0xfdbb8b(0x18f)}),a88_0x2de7db(Text,{'dimColor':!![],'children':_0xfdbb8b(0x18d)})]})]});}
@@ -1 +1 @@
1
- function a88_0x170e(_0x4451aa,_0x1cd774){_0x4451aa=_0x4451aa-0x7d;const _0x12d8fd=a88_0x12d8();let _0x170e08=_0x12d8fd[_0x4451aa];return _0x170e08;}const a88_0x58cb45=a88_0x170e;(function(_0x2a1d94,_0xf7b0de){const _0x300391=a88_0x170e,_0xba4c30=_0x2a1d94();while(!![]){try{const _0x350c29=parseInt(_0x300391(0x89))/0x1*(-parseInt(_0x300391(0x7d))/0x2)+parseInt(_0x300391(0x91))/0x3*(-parseInt(_0x300391(0x8d))/0x4)+parseInt(_0x300391(0x86))/0x5*(parseInt(_0x300391(0x8c))/0x6)+-parseInt(_0x300391(0x8e))/0x7+parseInt(_0x300391(0x92))/0x8+-parseInt(_0x300391(0x8f))/0x9*(-parseInt(_0x300391(0x82))/0xa)+parseInt(_0x300391(0x7f))/0xb;if(_0x350c29===_0xf7b0de)break;else _0xba4c30['push'](_0xba4c30['shift']());}catch(_0x182e54){_0xba4c30['push'](_0xba4c30['shift']());}}}(a88_0x12d8,0x2ed19));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a88_0x12d8(){const _0x4437a4=['add','381efKcnR','1209272VIYeBA','stderr','88cFayAp','inherit','780065UiDVXc','npx','skipNpxSkillsEnvSuffix','2141480yPtYVq','status','join','trim','96680iDbYLY','unknown','stdout','4409sJfeut','log','toString','90KihtlT','3084hTmvlw','1698060GGmhkY','9BaCnQN'];a88_0x12d8=function(){return _0x4437a4;};return a88_0x12d8();}import{LOVRABET_SKILL_SOURCE as a88_0x26778c}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a88_0x26778c;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a88_0x58cb45(0x81)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3b9092,_0x4c8e20=LOVRABET_SKILL_SOURCE,_0x520ae6){const _0x72855e=a88_0x58cb45;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22ae86=_0x520ae6?.['stdio']??_0x72855e(0x7e),_0x1362dc=resolveNpmBin(_0x72855e(0x80)),_0x7ae6e0=['skills',_0x72855e(0x90),_0x4c8e20,'-g','-y'],_0x3b2e70=[_0x1362dc,..._0x7ae6e0][_0x72855e(0x84)]('\x20');console[_0x72855e(0x8a)]('*\x20'+_0x3b2e70);const _0x4d7bea=spawnSync(_0x1362dc,_0x7ae6e0,{'cwd':_0x3b9092,'stdio':_0x22ae86,'env':process.env,'shell':![]});if(_0x4d7bea[_0x72855e(0x83)]===0x0)return{'ok':!![],'status':0x0};let _0x29fe76='exit\x20'+(_0x4d7bea['status']??_0x72855e(0x87));if(_0x22ae86==='pipe'){const _0x174b27=_0x4d7bea[_0x72855e(0x93)]?_0x4d7bea[_0x72855e(0x93)][_0x72855e(0x8b)]()[_0x72855e(0x85)]():'',_0x5983f0=_0x4d7bea[_0x72855e(0x88)]?_0x4d7bea['stdout']['toString']()['trim']():'';if(_0x174b27)_0x29fe76=_0x174b27;else{if(_0x5983f0)_0x29fe76=_0x5983f0;}}return{'ok':![],'status':_0x4d7bea[_0x72855e(0x83)]??null,'error':_0x29fe76};}
1
+ const a89_0x14ad66=a89_0x3259;function a89_0x4109(){const _0x22f9fb=['2176554hrXnPH','unknown','3493089VlsZUM','join','4369768IgUPdj','skills','stdout','stderr','8spQppT','add','3860260FSaYbo','2338056TditAY','status','skipNpxSkillsEnvSuffix','toString','trim','stdio','1086rhasoP','397YMnPOr','3585540ViHnny','npx','log','inherit','pipe'];a89_0x4109=function(){return _0x22f9fb;};return a89_0x4109();}(function(_0x52cd80,_0x28a642){const _0x59f502=a89_0x3259,_0x2cd171=_0x52cd80();while(!![]){try{const _0x417f7a=-parseInt(_0x59f502(0xbe))/0x1*(-parseInt(_0x59f502(0xbd))/0x2)+parseInt(_0x59f502(0xc6))/0x3+parseInt(_0x59f502(0xb4))/0x4*(-parseInt(_0x59f502(0xb6))/0x5)+-parseInt(_0x59f502(0xc4))/0x6+parseInt(_0x59f502(0xbf))/0x7+parseInt(_0x59f502(0xc8))/0x8+parseInt(_0x59f502(0xb7))/0x9;if(_0x417f7a===_0x28a642)break;else _0x2cd171['push'](_0x2cd171['shift']());}catch(_0x4e456f){_0x2cd171['push'](_0x2cd171['shift']());}}}(a89_0x4109,0xc1300));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a89_0x3259(_0x3bd289,_0x688c7d){_0x3bd289=_0x3bd289-0xb3;const _0x410902=a89_0x4109();let _0x3259d4=_0x410902[_0x3bd289];return _0x3259d4;}import{LOVRABET_SKILL_SOURCE as a89_0x48efe1}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a89_0x48efe1;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a89_0x14ad66(0xb9)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x464050,_0x375607=LOVRABET_SKILL_SOURCE,_0x2985de){const _0x5e49f5=a89_0x14ad66;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x37f1d4=_0x2985de?.[_0x5e49f5(0xbc)]??_0x5e49f5(0xc2),_0x4c15de=resolveNpmBin(_0x5e49f5(0xc0)),_0x40864d=[_0x5e49f5(0xc9),_0x5e49f5(0xb5),_0x375607,'-g','-y'],_0x1f0358=[_0x4c15de,..._0x40864d][_0x5e49f5(0xc7)]('\x20');console[_0x5e49f5(0xc1)]('*\x20'+_0x1f0358);const _0x15eed4=spawnSync(_0x4c15de,_0x40864d,{'cwd':_0x464050,'stdio':_0x37f1d4,'env':process.env,'shell':![]});if(_0x15eed4[_0x5e49f5(0xb8)]===0x0)return{'ok':!![],'status':0x0};let _0x100365='exit\x20'+(_0x15eed4['status']??_0x5e49f5(0xc5));if(_0x37f1d4===_0x5e49f5(0xc3)){const _0x88749a=_0x15eed4[_0x5e49f5(0xb3)]?_0x15eed4[_0x5e49f5(0xb3)][_0x5e49f5(0xba)]()['trim']():'',_0x216daa=_0x15eed4['stdout']?_0x15eed4[_0x5e49f5(0xca)][_0x5e49f5(0xba)]()[_0x5e49f5(0xbb)]():'';if(_0x88749a)_0x100365=_0x88749a;else{if(_0x216daa)_0x100365=_0x216daa;}}return{'ok':![],'status':_0x15eed4[_0x5e49f5(0xb8)]??null,'error':_0x100365};}
@@ -1 +1 @@
1
- const a89_0x50f374=a89_0x300c;(function(_0x3d2e21,_0x3b199d){const _0x55cfb8=a89_0x300c,_0x1be20b=_0x3d2e21();while(!![]){try{const _0x16fb4d=parseInt(_0x55cfb8(0xcc))/0x1*(-parseInt(_0x55cfb8(0xd5))/0x2)+parseInt(_0x55cfb8(0xc7))/0x3+-parseInt(_0x55cfb8(0xc3))/0x4*(-parseInt(_0x55cfb8(0xd1))/0x5)+-parseInt(_0x55cfb8(0xc4))/0x6*(-parseInt(_0x55cfb8(0xc2))/0x7)+parseInt(_0x55cfb8(0xcf))/0x8+parseInt(_0x55cfb8(0xc5))/0x9*(parseInt(_0x55cfb8(0xcd))/0xa)+-parseInt(_0x55cfb8(0xca))/0xb;if(_0x16fb4d===_0x3b199d)break;else _0x1be20b['push'](_0x1be20b['shift']());}catch(_0x7bb07f){_0x1be20b['push'](_0x1be20b['shift']());}}}(a89_0xb339,0xf321a));export const METADATA_FILE=a89_0x50f374(0xd2);export const SKILL_FILE='SKILL.md';export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a89_0x50f374(0xd0)]);function a89_0x300c(_0x7a3511,_0x4c34d9){_0x7a3511=_0x7a3511-0xc2;const _0xb33950=a89_0xb339();let _0x300cf5=_0xb33950[_0x7a3511];return _0x300cf5;}function a89_0xb339(){const _0x575d7d=['lovrabet.skill.json','.svn','dist','4gzonrZ','7KfJrnK','8fSRfOc','2522910tOOtTC','4869AbHRvH','node_modules','882597elejMw','.hg','coverage','14319173jpsBMc','.turbo','637202Mmlqdj','6500bXnfMt','.git','14960200mYXnbz','.DS_Store','1589135svjxGI'];a89_0xb339=function(){return _0x575d7d;};return a89_0xb339();}export const IGNORED_DIR_NAMES=new Set([a89_0x50f374(0xce),a89_0x50f374(0xc8),a89_0x50f374(0xd3),a89_0x50f374(0xc6),'.next',a89_0x50f374(0xd4),'build',a89_0x50f374(0xc9),a89_0x50f374(0xcb),'.cache']);
1
+ const a90_0x5a5a4f=a90_0x2df6;(function(_0x58cf5b,_0x3e007b){const _0x297ea4=a90_0x2df6,_0x3e0fec=_0x58cf5b();while(!![]){try{const _0x88282f=-parseInt(_0x297ea4(0xf9))/0x1*(parseInt(_0x297ea4(0xef))/0x2)+-parseInt(_0x297ea4(0xfb))/0x3+parseInt(_0x297ea4(0xf5))/0x4*(parseInt(_0x297ea4(0xf0))/0x5)+-parseInt(_0x297ea4(0xf6))/0x6*(-parseInt(_0x297ea4(0xf1))/0x7)+-parseInt(_0x297ea4(0xf3))/0x8*(-parseInt(_0x297ea4(0xfe))/0x9)+parseInt(_0x297ea4(0xfa))/0xa+-parseInt(_0x297ea4(0xff))/0xb;if(_0x88282f===_0x3e007b)break;else _0x3e0fec['push'](_0x3e0fec['shift']());}catch(_0x1a2b3a){_0x3e0fec['push'](_0x3e0fec['shift']());}}}(a90_0x4560,0x28627));export const METADATA_FILE=a90_0x5a5a4f(0xf2);export const SKILL_FILE='SKILL.md';function a90_0x4560(){const _0x3b2eab=['787028ymYyUA','.DS_Store','2ZToyPv','5bxjbbC','175hYiiWd','lovrabet.skill.json','72ohqlvl','.next','1192740YEGILa','10986xHsxtK','.turbo','.hg','12461pFaMll','409220JGZweI','486375dXnFgq','build','dist','26667WVIyrF'];a90_0x4560=function(){return _0x3b2eab;};return a90_0x4560();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a90_0x5a5a4f(0x100)]);function a90_0x2df6(_0x1d566e,_0x7167fb){_0x1d566e=_0x1d566e-0xef;const _0x456038=a90_0x4560();let _0x2df609=_0x456038[_0x1d566e];return _0x2df609;}export const IGNORED_DIR_NAMES=new Set(['.git',a90_0x5a5a4f(0xf8),'.svn','node_modules',a90_0x5a5a4f(0xf4),a90_0x5a5a4f(0xfd),a90_0x5a5a4f(0xfc),'coverage',a90_0x5a5a4f(0xf7),'.cache']);
@@ -1 +1 @@
1
- (function(_0x37cdc2,_0x35f620){const _0x33c32f=a90_0x5612,_0x7c6745=_0x37cdc2();while(!![]){try{const _0x527e7e=-parseInt(_0x33c32f(0x18f))/0x1+-parseInt(_0x33c32f(0x18e))/0x2+-parseInt(_0x33c32f(0x196))/0x3*(parseInt(_0x33c32f(0x18c))/0x4)+-parseInt(_0x33c32f(0x193))/0x5+-parseInt(_0x33c32f(0x195))/0x6+parseInt(_0x33c32f(0x189))/0x7+parseInt(_0x33c32f(0x192))/0x8;if(_0x527e7e===_0x35f620)break;else _0x7c6745['push'](_0x7c6745['shift']());}catch(_0x353a7f){_0x7c6745['push'](_0x7c6745['shift']());}}}(a90_0x1b01,0x91cd6));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';function a90_0x5612(_0x3df9c5,_0x1b3ebe){_0x3df9c5=_0x3df9c5-0x187;const _0x1b0192=a90_0x1b01();let _0x5612b4=_0x1b0192[_0x3df9c5];return _0x5612b4;}import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x31284b,_0x22f007){const _0x538265=a90_0x5612,_0x71e961=normalizeSkillRelativePath(_0x22f007),_0x58d843=realOrResolved(_0x31284b),_0x249f6b=resolve(_0x58d843,..._0x71e961['split']('/'));if(!isPathInside(_0x249f6b,_0x58d843))throw CliErrors[_0x538265(0x18a)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x22f007);return ensureNoSymlinkInManagedPath(_0x58d843,_0x71e961),_0x249f6b;}export function ensureNoSymlinkInManagedPath(_0x37977b,_0x2c63ac){const _0x395e63=a90_0x5612;let _0x52885e=_0x37977b;for(const _0x452e39 of _0x2c63ac[_0x395e63(0x18b)]('/')){_0x52885e=resolve(_0x52885e,_0x452e39);const _0x4d2d5e=lstatIfPresent(_0x52885e);if(_0x4d2d5e?.[_0x395e63(0x190)]())throw CliErrors['validation'](_0x395e63(0x187)+_0x2c63ac);}}export function isDanglingSymlink(_0xd25a66){const _0x3736b0=a90_0x5612;try{return lstatSync(_0xd25a66)[_0x3736b0(0x190)]();}catch{return![];}}export function resolveSymlinkTarget(_0x2d5dea){const _0x23f067=readlinkSync(_0x2d5dea);return isAbsolute(_0x23f067)?_0x23f067:resolve(dirname(_0x2d5dea),_0x23f067);}export function isPathInside(_0x18b111,_0x5b8804){const _0x23e0b9=a90_0x5612,_0xdd941b=_0x18b111[_0x23e0b9(0x191)](sep)?_0x18b111:''+_0x18b111+sep,_0x391899=_0x5b8804[_0x23e0b9(0x191)](sep)?_0x5b8804:''+_0x5b8804+sep;return _0x18b111===_0x5b8804||_0xdd941b[_0x23e0b9(0x194)](_0x391899);}export function realOrResolved(_0x2569dd){try{return realpathSync(_0x2569dd);}catch{return resolve(_0x2569dd);}}export function lstatIfPresent(_0x19f7ef){try{return lstatSync(_0x19f7ef);}catch{return undefined;}}export function writeTextAtomic(_0x8c9c53,_0x4fe545,_0x195ab9){writeBytesAtomic(_0x8c9c53,Buffer['from'](_0x4fe545,'utf8'),_0x195ab9);}export function writeBytesAtomic(_0x40e8b4,_0xd290ff,_0x6ada56){const _0x3d954c=a90_0x5612,_0x1ae362=_0x40e8b4+_0x3d954c(0x188);try{writeFileSync(_0x1ae362,_0xd290ff,{'mode':_0x6ada56}),renameSync(_0x1ae362,_0x40e8b4);}catch(_0x527287){try{rmSync(_0x1ae362,{'force':!![]});}catch{}throw _0x527287;}}function a90_0x1b01(){const _0x48d7a8=['startsWith','3260688zJFAaO','1725474hZHXHl','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','.tmp','1611729hLdIFx','validation','split','4XigjWK','stringify','2140006XcrwxC','708795Eqnima','isSymbolicLink','endsWith','32750528WoqxtH','4147265qqjhtq'];a90_0x1b01=function(){return _0x48d7a8;};return a90_0x1b01();}export function writeJsonAtomic(_0xe3b861,_0x93b4e0){const _0x5c9b11=a90_0x5612;writeTextAtomic(_0xe3b861,JSON[_0x5c9b11(0x18d)](_0x93b4e0,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x18311f,_0x171315){const _0x3cc238=a91_0x5140,_0x6125c9=_0x18311f();while(!![]){try{const _0x14932d=parseInt(_0x3cc238(0x165))/0x1*(parseInt(_0x3cc238(0x151))/0x2)+parseInt(_0x3cc238(0x159))/0x3*(parseInt(_0x3cc238(0x156))/0x4)+parseInt(_0x3cc238(0x162))/0x5*(parseInt(_0x3cc238(0x158))/0x6)+-parseInt(_0x3cc238(0x15d))/0x7*(parseInt(_0x3cc238(0x153))/0x8)+-parseInt(_0x3cc238(0x15f))/0x9+-parseInt(_0x3cc238(0x15c))/0xa*(parseInt(_0x3cc238(0x157))/0xb)+-parseInt(_0x3cc238(0x152))/0xc*(parseInt(_0x3cc238(0x164))/0xd);if(_0x14932d===_0x171315)break;else _0x6125c9['push'](_0x6125c9['shift']());}catch(_0x50a6de){_0x6125c9['push'](_0x6125c9['shift']());}}}(a91_0x53f0,0xbfdca));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x43f01f,_0x1a7f11){const _0x249be2=a91_0x5140,_0x2e101a=normalizeSkillRelativePath(_0x1a7f11),_0x395084=realOrResolved(_0x43f01f),_0x2b1f58=resolve(_0x395084,..._0x2e101a[_0x249be2(0x160)]('/'));if(!isPathInside(_0x2b1f58,_0x395084))throw CliErrors['validation'](_0x249be2(0x15a)+_0x1a7f11);return ensureNoSymlinkInManagedPath(_0x395084,_0x2e101a),_0x2b1f58;}export function ensureNoSymlinkInManagedPath(_0x2d9259,_0x1232a5){const _0x3b0a07=a91_0x5140;let _0x4b4d52=_0x2d9259;for(const _0x54f0d1 of _0x1232a5['split']('/')){_0x4b4d52=resolve(_0x4b4d52,_0x54f0d1);const _0x47afd9=lstatIfPresent(_0x4b4d52);if(_0x47afd9?.[_0x3b0a07(0x15b)]())throw CliErrors[_0x3b0a07(0x155)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x1232a5);}}export function isDanglingSymlink(_0x397678){try{return lstatSync(_0x397678)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0xd9ac5b){const _0x1d8bef=readlinkSync(_0xd9ac5b);return isAbsolute(_0x1d8bef)?_0x1d8bef:resolve(dirname(_0xd9ac5b),_0x1d8bef);}function a91_0x5140(_0x1345ff,_0x54835c){_0x1345ff=_0x1345ff-0x151;const _0x53f019=a91_0x53f0();let _0x5140f7=_0x53f019[_0x1345ff];return _0x5140f7;}export function isPathInside(_0x4c67a3,_0x20ffdd){const _0x5cb83d=a91_0x5140,_0x12351b=_0x4c67a3[_0x5cb83d(0x154)](sep)?_0x4c67a3:''+_0x4c67a3+sep,_0x4d4760=_0x20ffdd[_0x5cb83d(0x154)](sep)?_0x20ffdd:''+_0x20ffdd+sep;return _0x4c67a3===_0x20ffdd||_0x12351b[_0x5cb83d(0x163)](_0x4d4760);}function a91_0x53f0(){const _0x2468be=['Unsafe\x20Skill\x20file\x20path:\x20','isSymbolicLink','2883780wDGvWU','49QGiRia','.tmp','10816371sIjgvP','split','stringify','65425brNbNI','startsWith','2249rDdHfD','569jouNmi','4474oDElHL','11328YsLPDE','608216risGyT','endsWith','validation','4MWVkdU','22byveRM','372fVqXsZ','3527457pgdmbP'];a91_0x53f0=function(){return _0x2468be;};return a91_0x53f0();}export function realOrResolved(_0x1770f7){try{return realpathSync(_0x1770f7);}catch{return resolve(_0x1770f7);}}export function lstatIfPresent(_0x5f4749){try{return lstatSync(_0x5f4749);}catch{return undefined;}}export function writeTextAtomic(_0x29426c,_0x3eed58,_0xfb7032){writeBytesAtomic(_0x29426c,Buffer['from'](_0x3eed58,'utf8'),_0xfb7032);}export function writeBytesAtomic(_0x13d76f,_0x11d18a,_0x1a0757){const _0x4b46cf=a91_0x5140,_0x1722a2=_0x13d76f+_0x4b46cf(0x15e);try{writeFileSync(_0x1722a2,_0x11d18a,{'mode':_0x1a0757}),renameSync(_0x1722a2,_0x13d76f);}catch(_0x140698){try{rmSync(_0x1722a2,{'force':!![]});}catch{}throw _0x140698;}}export function writeJsonAtomic(_0x513587,_0x483e94){const _0x5c8b89=a91_0x5140;writeTextAtomic(_0x513587,JSON[_0x5c8b89(0x161)](_0x483e94,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x3a0008,_0x26d653){const _0x2a8390=a91_0x119e,_0x4b03e0=_0x3a0008();while(!![]){try{const _0xa613f8=parseInt(_0x2a8390(0x161))/0x1*(-parseInt(_0x2a8390(0x15f))/0x2)+parseInt(_0x2a8390(0x16d))/0x3*(-parseInt(_0x2a8390(0x16c))/0x4)+parseInt(_0x2a8390(0x165))/0x5+-parseInt(_0x2a8390(0x164))/0x6*(parseInt(_0x2a8390(0x16b))/0x7)+-parseInt(_0x2a8390(0x162))/0x8*(-parseInt(_0x2a8390(0x163))/0x9)+parseInt(_0x2a8390(0x160))/0xa+-parseInt(_0x2a8390(0x15c))/0xb*(-parseInt(_0x2a8390(0x167))/0xc);if(_0xa613f8===_0x26d653)break;else _0x4b03e0['push'](_0x4b03e0['shift']());}catch(_0x40a10b){_0x4b03e0['push'](_0x4b03e0['shift']());}}}(a91_0x29e5,0x48a90));function a91_0x29e5(){const _0x1ee84c=['512SjxCQm','47646cJjfby','1727574wqVAXQ','755275JCKPlf','update','10944rFtwox','sha256','size','path','7KyDMTl','8gAjseI','113910gPaODI','5577LpnKYe','digest','hex','2CKWxdz','2604270ItnyBS','551197hnUuPn'];a91_0x29e5=function(){return _0x1ee84c;};return a91_0x29e5();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4a09f4){const _0x15e8c2=a91_0x119e;return createHash(_0x15e8c2(0x168))[_0x15e8c2(0x166)](_0x4a09f4)['digest'](_0x15e8c2(0x15e));}function a91_0x119e(_0x16a31d,_0x471c6b){_0x16a31d=_0x16a31d-0x15c;const _0x29e525=a91_0x29e5();let _0x119e03=_0x29e525[_0x16a31d];return _0x119e03;}export function fileHash(_0x3e575e){return bufferSha256(fileContent(_0x3e575e));}export function bufferSha256(_0x459dc1){const _0x35d6c1=a91_0x119e;return createHash(_0x35d6c1(0x168))[_0x35d6c1(0x166)](_0x459dc1)[_0x35d6c1(0x15d)](_0x35d6c1(0x15e));}export function fileTreeHash(_0x2cb846){const _0x1573b2=a91_0x119e,_0x526191=createHash(_0x1573b2(0x168));for(const _0x3c9eeb of normalizeManifestFiles(_0x2cb846)){_0x526191['update'](_0x3c9eeb[_0x1573b2(0x16a)]),_0x526191[_0x1573b2(0x166)]('\x00'),_0x526191['update'](_0x3c9eeb[_0x1573b2(0x168)]),_0x526191[_0x1573b2(0x166)]('\x00'),_0x526191[_0x1573b2(0x166)](String(_0x3c9eeb[_0x1573b2(0x169)])),_0x526191['update']('\x00');}return _0x526191['digest'](_0x1573b2(0x15e));}
1
+ (function(_0x2fe24f,_0x256a86){const _0x751b40=a92_0x3bef,_0xc97673=_0x2fe24f();while(!![]){try{const _0x12ed37=parseInt(_0x751b40(0xde))/0x1*(parseInt(_0x751b40(0xdf))/0x2)+-parseInt(_0x751b40(0xdc))/0x3*(parseInt(_0x751b40(0xd7))/0x4)+-parseInt(_0x751b40(0xe2))/0x5*(parseInt(_0x751b40(0xe1))/0x6)+parseInt(_0x751b40(0xdd))/0x7+-parseInt(_0x751b40(0xd9))/0x8*(-parseInt(_0x751b40(0xd6))/0x9)+-parseInt(_0x751b40(0xe3))/0xa*(-parseInt(_0x751b40(0xe5))/0xb)+-parseInt(_0x751b40(0xd8))/0xc;if(_0x12ed37===_0x256a86)break;else _0xc97673['push'](_0xc97673['shift']());}catch(_0x558a57){_0xc97673['push'](_0xc97673['shift']());}}}(a92_0x5e7a,0x26c42));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x217b49){const _0x2b36d1=a92_0x3bef;return createHash(_0x2b36d1(0xe0))['update'](_0x217b49)[_0x2b36d1(0xdb)](_0x2b36d1(0xe4));}function a92_0x3bef(_0x9807b8,_0x55bc42){_0x9807b8=_0x9807b8-0xd6;const _0x5e7ab7=a92_0x5e7a();let _0x3bef2d=_0x5e7ab7[_0x9807b8];return _0x3bef2d;}export function fileHash(_0xd02a07){return bufferSha256(fileContent(_0xd02a07));}function a92_0x5e7a(){const _0xd9881f=['62513LIsNTO','10cBGrdH','sha256','48unqDss','191045NgaZjE','63120kQMCAT','hex','187sDjGhv','update','9iTRKYs','35752VbuGmc','2945316cpXAEx','1179088NGGIVs','path','digest','48jZFNtu','1999578nfuWrE'];a92_0x5e7a=function(){return _0xd9881f;};return a92_0x5e7a();}export function bufferSha256(_0x4a1ef6){const _0x365dab=a92_0x3bef;return createHash(_0x365dab(0xe0))['update'](_0x4a1ef6)[_0x365dab(0xdb)]('hex');}export function fileTreeHash(_0x58cfad){const _0x4f3fc9=a92_0x3bef,_0x30c58e=createHash(_0x4f3fc9(0xe0));for(const _0x4ffaab of normalizeManifestFiles(_0x58cfad)){_0x30c58e['update'](_0x4ffaab[_0x4f3fc9(0xda)]),_0x30c58e[_0x4f3fc9(0xe6)]('\x00'),_0x30c58e[_0x4f3fc9(0xe6)](_0x4ffaab[_0x4f3fc9(0xe0)]),_0x30c58e['update']('\x00'),_0x30c58e['update'](String(_0x4ffaab['size'])),_0x30c58e['update']('\x00');}return _0x30c58e[_0x4f3fc9(0xdb)](_0x4f3fc9(0xe4));}
@@ -1 +1 @@
1
- (function(_0x1f1b6d,_0x404d23){const _0x4dbcdb=a92_0x2b1f,_0x310c26=_0x1f1b6d();while(!![]){try{const _0x4f0e57=-parseInt(_0x4dbcdb(0x1ad))/0x1+-parseInt(_0x4dbcdb(0x1cd))/0x2+-parseInt(_0x4dbcdb(0x1d1))/0x3+parseInt(_0x4dbcdb(0x1d3))/0x4+parseInt(_0x4dbcdb(0x1da))/0x5+-parseInt(_0x4dbcdb(0x1c2))/0x6*(parseInt(_0x4dbcdb(0x1c1))/0x7)+parseInt(_0x4dbcdb(0x1bf))/0x8*(parseInt(_0x4dbcdb(0x1d9))/0x9);if(_0x4f0e57===_0x404d23)break;else _0x310c26['push'](_0x310c26['shift']());}catch(_0x153602){_0x310c26['push'](_0x310c26['shift']());}}}(a92_0x5037,0xd86fe));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a92_0x27fdea from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a92_0x27fdea;export function linkEffectiveRuntimeSkills(_0x51d928,_0xea4b32,_0x15d2f2={}){const _0x1f855a=a92_0x2b1f,_0x21ebbb=new Map();for(const _0x486921 of _0x51d928){const _0x5aa224=_0x486921['skill'][_0x1f855a(0x1bc)];if(!_0x5aa224)continue;const _0x138eaf=_0x21ebbb[_0x1f855a(0x1c6)](_0x5aa224);(!_0x138eaf||_0x486921[_0x1f855a(0x1d2)]===_0x1f855a(0x1d5))&&_0x21ebbb[_0x1f855a(0x1b9)](_0x5aa224,_0x486921);}const _0x12b3fa=[],_0x289faf=resolveSkillSyncPaths(_0x15d2f2);for(const _0x13153c of _0x21ebbb[_0x1f855a(0x1b1)]()){const _0x18fcf2=requireSkillCode(_0x13153c['skill']),_0x9b8882=_0xea4b32+'--'+_0x18fcf2;for(const _0x6dabb9 of[_0x289faf['agentsSkillsDir'],_0x289faf[_0x1f855a(0x1be)]]){_0x12b3fa[_0x1f855a(0x1d0)](ensureManagedSymlink(resolve(_0x6dabb9,_0x9b8882),_0x13153c['dir'],_0x289faf[_0x1f855a(0x1b4)]));}}return _0x12b3fa;}function a92_0x5037(){const _0x6f2ce2=['6621528mztMsT','length','111643bPuYef','186smQZUR','updated','unchanged','contentHash','get','name','isSymbolicLink','trim','skipped','isDirectory','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','127654hCznUt','filter','env','push','5276529TiqUOA','scope','379424AMuUFx','created','personal','validation','appCode','agentsSkillsDir','27vdXFBH','5290175ZpcqwQ','builtin','has','432349rEGNjb','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','not-managed-symlink','scopes','values','metadata-mismatch','startsWith','managedRoot','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','activeSkillCodes','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','skill','set','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','pruneSkillCodes','skillCode','map','claudeSkillsDir'];a92_0x5037=function(){return _0x6f2ce2;};return a92_0x5037();}export function pruneStaleRuntimeSkillLinks(_0x196b27,_0x1fbd60,_0x235a67={},_0x5d78b5){const _0x81becd=a92_0x2b1f,_0x4a7112=resolveSkillSyncPaths(_0x235a67),_0x3a0209=new Set([..._0x1fbd60][_0x81becd(0x1bd)](_0x386c65=>_0x386c65[_0x81becd(0x1c9)]())['filter'](Boolean)),_0x348c18=_0x5d78b5?new Set([..._0x5d78b5][_0x81becd(0x1bd)](_0x2ac1dc=>_0x2ac1dc[_0x81becd(0x1c9)]())[_0x81becd(0x1ce)](Boolean)):undefined,_0x4b0c72=[];for(const _0x5e6815 of[_0x4a7112[_0x81becd(0x1d8)],_0x4a7112[_0x81becd(0x1be)]]){for(const _0x4bb036 of managedAppSkillLinkPaths(_0x5e6815,_0x196b27)){const _0x2f053d=basename(_0x4bb036)['slice']((_0x196b27+'--')[_0x81becd(0x1c0)]);if(_0x348c18&&!_0x348c18[_0x81becd(0x1ac)](_0x2f053d))continue;if(_0x3a0209['has'](_0x2f053d))continue;_0x4b0c72[_0x81becd(0x1d0)](removeManagedSkillLink(_0x4bb036,_0x4a7112['managedRoot']));}}return _0x4b0c72;}function a92_0x2b1f(_0x358fc8,_0x47e3c2){_0x358fc8=_0x358fc8-0x1ab;const _0x5037d1=a92_0x5037();let _0x2b1f83=_0x5037d1[_0x358fc8];return _0x2b1f83;}export function pruneStaleRuntimeSkillCache(_0x2fd9cd,_0x67bc10={}){const _0x321679=a92_0x2b1f,_0x2668e9=new Set([..._0x2fd9cd[_0x321679(0x1b6)]][_0x321679(0x1bd)](_0x3fe507=>_0x3fe507[_0x321679(0x1c9)]())[_0x321679(0x1ce)](Boolean)),_0x1e308a=_0x2fd9cd[_0x321679(0x1bb)]?new Set([..._0x2fd9cd['pruneSkillCodes']][_0x321679(0x1bd)](_0x229e7f=>_0x229e7f['trim']())[_0x321679(0x1ce)](Boolean)):undefined,_0xa6955b=_0x2fd9cd[_0x321679(0x1b0)]??[_0x321679(0x1d5),'company'],_0x18adc8=resolve(getRuntimeSkillCacheRoot(_0x2fd9cd[_0x321679(0x1cf)],_0x2fd9cd['accessKey'],_0x67bc10),safePathSegment(_0x2fd9cd['appCode'],'appCode')),_0x332c05=[];for(const _0x1c9083 of _0xa6955b){const _0x1ee5e9=resolve(_0x18adc8,_0x1c9083);if(!existsSync(_0x1ee5e9))continue;for(const _0x45bfcb of readdirSync(_0x1ee5e9,{'withFileTypes':!![]})){if(!_0x45bfcb[_0x321679(0x1cb)]())continue;const _0x15ec3c=_0x45bfcb[_0x321679(0x1c7)];if(_0x1e308a&&!_0x1e308a[_0x321679(0x1ac)](_0x15ec3c))continue;if(_0x2668e9['has'](_0x15ec3c))continue;const _0x4473c8=resolve(_0x1ee5e9,_0x15ec3c),_0x1a7bbd=readMetadataIfPresent(resolve(_0x4473c8,METADATA_FILE));if(_0x1a7bbd?.[_0x321679(0x1d7)]!==_0x2fd9cd[_0x321679(0x1d7)]||_0x1a7bbd[_0x321679(0x1d2)]!==_0x1c9083||_0x1a7bbd[_0x321679(0x1bc)]!==_0x15ec3c){_0x332c05[_0x321679(0x1d0)]({'path':_0x4473c8,'action':_0x321679(0x1ca),'reason':_0x321679(0x1b2)});continue;}removeSync(_0x4473c8),_0x332c05['push']({'path':_0x4473c8,'action':'removed'});}}return _0x332c05;}export function linkGlobalRuntimeSkills(_0x37b186,_0x55f40a={}){const _0x260286=a92_0x2b1f,_0x553edc=resolveSkillSyncPaths(_0x55f40a),_0x14d4ef=[];for(const _0xad2104 of _0x37b186){if(_0xad2104[_0x260286(0x1d2)]!=='builtin')throw CliErrors[_0x260286(0x1d6)](_0x260286(0x1ba)+_0xad2104['scope']);const _0x44ccc3=requireSkillCode(_0xad2104[_0x260286(0x1b8)]),_0x4ee2f9=copyManagedSkillDirectory(_0xad2104['dir'],resolve(_0x553edc[_0x260286(0x1d8)],_0x44ccc3));_0x14d4ef[_0x260286(0x1d0)]({..._0x4ee2f9,'contentHash':_0xad2104[_0x260286(0x1c5)]});}return _0x14d4ef;}function ensureManagedSymlink(_0x36c1c4,_0x350d12,_0x55c94f){const _0x5a3d3d=a92_0x2b1f;mkdirSync(dirname(_0x36c1c4),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x36c1c4)||isDanglingSymlink(_0x36c1c4)){const _0x553e2c=lstatSync(_0x36c1c4);if(!_0x553e2c[_0x5a3d3d(0x1c8)]())throw CliErrors[_0x5a3d3d(0x1d6)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x36c1c4);const _0x28ffe5=resolveSymlinkTarget(_0x36c1c4);if(!isPathInside(realOrResolved(_0x28ffe5),realOrResolved(_0x55c94f)))throw CliErrors[_0x5a3d3d(0x1d6)](_0x5a3d3d(0x1ae)+_0x36c1c4);if(realOrResolved(_0x28ffe5)===realOrResolved(_0x350d12))return{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1c4)};return unlinkSync(_0x36c1c4),symlinkSync(_0x350d12,_0x36c1c4,'dir'),{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1c3)};}return symlinkSync(_0x350d12,_0x36c1c4,'dir'),{'path':_0x36c1c4,'target':_0x350d12,'action':_0x5a3d3d(0x1d4)};}function managedAppSkillLinkPaths(_0x39dba6,_0x1f0204){const _0x28bbd3=a92_0x2b1f;if(!existsSync(_0x39dba6))return[];const _0x2526c7=_0x1f0204+'--';return readdirSync(_0x39dba6,{'withFileTypes':!![]})[_0x28bbd3(0x1ce)](_0x1ae08f=>_0x1ae08f[_0x28bbd3(0x1c7)][_0x28bbd3(0x1b3)](_0x2526c7))[_0x28bbd3(0x1bd)](_0xdaa5da=>resolve(_0x39dba6,_0xdaa5da['name']));}function removeManagedSkillLink(_0x2de120,_0x426e4d){const _0x5cdc51=a92_0x2b1f,_0x3d406b=lstatIfPresent(_0x2de120);if(!_0x3d406b?.[_0x5cdc51(0x1c8)]())return{'path':_0x2de120,'action':_0x5cdc51(0x1ca),'reason':_0x5cdc51(0x1af)};const _0x19fbe9=resolveSymlinkTarget(_0x2de120);if(!isPathInside(realOrResolved(_0x19fbe9),realOrResolved(_0x426e4d)))return{'path':_0x2de120,'action':_0x5cdc51(0x1ca),'reason':'external-symlink'};return unlinkSync(_0x2de120),{'path':_0x2de120,'action':'removed'};}export function copyManagedSkillDirectory(_0x513487,_0x3f81b6){const _0x4f5a6c=a92_0x2b1f,_0x516b9d=resolve(_0x3f81b6,METADATA_FILE),_0x9344e6=existsSync(_0x3f81b6);if(_0x9344e6){const _0xcc3bf4=lstatSync(_0x3f81b6);if(_0xcc3bf4['isSymbolicLink']())throw CliErrors[_0x4f5a6c(0x1d6)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x3f81b6);if(!_0xcc3bf4[_0x4f5a6c(0x1cb)]())throw CliErrors[_0x4f5a6c(0x1d6)](_0x4f5a6c(0x1b5)+_0x3f81b6);const _0xdee1c6=readMetadataIfPresent(_0x516b9d);if(_0xdee1c6?.['scope']!==_0x4f5a6c(0x1ab))throw CliErrors[_0x4f5a6c(0x1d6)](_0x4f5a6c(0x1cc)+_0x3f81b6);}ensureDirSync(dirname(_0x3f81b6));const _0x409fe9=_0x9344e6?readMetadataIfPresent(_0x516b9d)?.['contentHash']:undefined,_0x448885=readMetadataIfPresent(resolve(_0x513487,METADATA_FILE))?.[_0x4f5a6c(0x1c5)];return _0x9344e6&&removeSync(_0x3f81b6),copySkillDirectory(_0x513487,_0x3f81b6),{'path':_0x3f81b6,'target':_0x513487,'action':!_0x9344e6?_0x4f5a6c(0x1d4):_0x409fe9===_0x448885?_0x4f5a6c(0x1c4):_0x4f5a6c(0x1c3)};}function copySkillDirectory(_0x382da0,_0x22a728){copySync(_0x382da0,_0x22a728,{'dereference':![],'overwrite':!![],'filter'(_0x5a9000){const _0x234257=a92_0x2b1f;if(lstatSync(_0x5a9000)[_0x234257(0x1c8)]())throw CliErrors[_0x234257(0x1d6)](_0x234257(0x1b7)+_0x5a9000);return!![];}});}
1
+ (function(_0xebd8a8,_0x40c1f3){const _0x11b413=a93_0x5f42,_0x5c4ac2=_0xebd8a8();while(!![]){try{const _0x55e75b=parseInt(_0x11b413(0x144))/0x1*(-parseInt(_0x11b413(0x134))/0x2)+-parseInt(_0x11b413(0x151))/0x3+parseInt(_0x11b413(0x150))/0x4*(parseInt(_0x11b413(0x138))/0x5)+-parseInt(_0x11b413(0x15b))/0x6+parseInt(_0x11b413(0x15c))/0x7+-parseInt(_0x11b413(0x14a))/0x8+parseInt(_0x11b413(0x14d))/0x9;if(_0x55e75b===_0x40c1f3)break;else _0x5c4ac2['push'](_0x5c4ac2['shift']());}catch(_0x175230){_0x5c4ac2['push'](_0x5c4ac2['shift']());}}}(a93_0x2b5c,0xb5784));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a93_0x5f3da9 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a93_0x5f3da9;function a93_0x5f42(_0x54ec5d,_0xbb4757){_0x54ec5d=_0x54ec5d-0x12f;const _0x2b5ca7=a93_0x2b5c();let _0x5f42a2=_0x2b5ca7[_0x54ec5d];return _0x5f42a2;}export function linkEffectiveRuntimeSkills(_0xa3ba78,_0x40f464,_0x10ec9e={}){const _0x31e314=a93_0x5f42,_0x2ef61b=new Map();for(const _0x5beb06 of _0xa3ba78){const _0x3c87b1=_0x5beb06[_0x31e314(0x156)][_0x31e314(0x13e)];if(!_0x3c87b1)continue;const _0x2b028f=_0x2ef61b['get'](_0x3c87b1);(!_0x2b028f||_0x5beb06[_0x31e314(0x140)]===_0x31e314(0x13a))&&_0x2ef61b[_0x31e314(0x146)](_0x3c87b1,_0x5beb06);}const _0x270d4d=[],_0x1bb601=resolveSkillSyncPaths(_0x10ec9e);for(const _0x1c2913 of _0x2ef61b['values']()){const _0x5a1ea9=requireSkillCode(_0x1c2913[_0x31e314(0x156)]),_0x29e9bc=_0x40f464+'--'+_0x5a1ea9;for(const _0x38236a of[_0x1bb601[_0x31e314(0x145)],_0x1bb601[_0x31e314(0x147)]]){_0x270d4d[_0x31e314(0x14f)](ensureManagedSymlink(resolve(_0x38236a,_0x29e9bc),_0x1c2913[_0x31e314(0x154)],_0x1bb601[_0x31e314(0x15f)]));}}return _0x270d4d;}export function pruneStaleRuntimeSkillLinks(_0x44dbbc,_0x52694b,_0x4880f1={},_0x3a0cd5){const _0x5c7afe=a93_0x5f42,_0x22dee5=resolveSkillSyncPaths(_0x4880f1),_0x200054=new Set([..._0x52694b][_0x5c7afe(0x135)](_0x101d26=>_0x101d26['trim']())[_0x5c7afe(0x143)](Boolean)),_0x50ff0d=_0x3a0cd5?new Set([..._0x3a0cd5][_0x5c7afe(0x135)](_0x412dd0=>_0x412dd0[_0x5c7afe(0x142)]())[_0x5c7afe(0x143)](Boolean)):undefined,_0x3395f8=[];for(const _0x44b297 of[_0x22dee5[_0x5c7afe(0x145)],_0x22dee5['claudeSkillsDir']]){for(const _0x2a585f of managedAppSkillLinkPaths(_0x44b297,_0x44dbbc)){const _0x378a47=basename(_0x2a585f)[_0x5c7afe(0x139)]((_0x44dbbc+'--')['length']);if(_0x50ff0d&&!_0x50ff0d[_0x5c7afe(0x136)](_0x378a47))continue;if(_0x200054['has'](_0x378a47))continue;_0x3395f8['push'](removeManagedSkillLink(_0x2a585f,_0x22dee5[_0x5c7afe(0x15f)]));}}return _0x3395f8;}export function pruneStaleRuntimeSkillCache(_0x3c267b,_0x60fe47={}){const _0x3d370c=a93_0x5f42,_0x42ad4f=new Set([..._0x3c267b[_0x3d370c(0x148)]]['map'](_0x161cc5=>_0x161cc5[_0x3d370c(0x142)]())[_0x3d370c(0x143)](Boolean)),_0x4accae=_0x3c267b[_0x3d370c(0x161)]?new Set([..._0x3c267b[_0x3d370c(0x161)]]['map'](_0x29087c=>_0x29087c[_0x3d370c(0x142)]())['filter'](Boolean)):undefined,_0x4c0079=_0x3c267b[_0x3d370c(0x13f)]??[_0x3d370c(0x13a),_0x3d370c(0x133)],_0x4de131=resolve(getRuntimeSkillCacheRoot(_0x3c267b[_0x3d370c(0x152)],_0x3c267b[_0x3d370c(0x131)],_0x60fe47),safePathSegment(_0x3c267b[_0x3d370c(0x159)],_0x3d370c(0x159))),_0x326748=[];for(const _0x1ca78d of _0x4c0079){const _0x37192c=resolve(_0x4de131,_0x1ca78d);if(!existsSync(_0x37192c))continue;for(const _0x265efd of readdirSync(_0x37192c,{'withFileTypes':!![]})){if(!_0x265efd[_0x3d370c(0x158)]())continue;const _0x331c1e=_0x265efd[_0x3d370c(0x12f)];if(_0x4accae&&!_0x4accae[_0x3d370c(0x136)](_0x331c1e))continue;if(_0x42ad4f['has'](_0x331c1e))continue;const _0x4ed469=resolve(_0x37192c,_0x331c1e),_0x1a994b=readMetadataIfPresent(resolve(_0x4ed469,METADATA_FILE));if(_0x1a994b?.['appCode']!==_0x3c267b[_0x3d370c(0x159)]||_0x1a994b[_0x3d370c(0x140)]!==_0x1ca78d||_0x1a994b[_0x3d370c(0x13e)]!==_0x331c1e){_0x326748['push']({'path':_0x4ed469,'action':'skipped','reason':'metadata-mismatch'});continue;}removeSync(_0x4ed469),_0x326748['push']({'path':_0x4ed469,'action':_0x3d370c(0x15d)});}}return _0x326748;}export function linkGlobalRuntimeSkills(_0xfffe31,_0x12b75e={}){const _0x30d679=a93_0x5f42,_0x142e3a=resolveSkillSyncPaths(_0x12b75e),_0x1e82dc=[];for(const _0x4a98c0 of _0xfffe31){if(_0x4a98c0['scope']!==_0x30d679(0x160))throw CliErrors[_0x30d679(0x157)](_0x30d679(0x130)+_0x4a98c0['scope']);const _0xe93007=requireSkillCode(_0x4a98c0[_0x30d679(0x156)]),_0x558f67=copyManagedSkillDirectory(_0x4a98c0[_0x30d679(0x154)],resolve(_0x142e3a['agentsSkillsDir'],_0xe93007));_0x1e82dc[_0x30d679(0x14f)]({..._0x558f67,'contentHash':_0x4a98c0[_0x30d679(0x15a)]});}return _0x1e82dc;}function ensureManagedSymlink(_0x201ccd,_0x4cab84,_0x41174f){const _0x2c343f=a93_0x5f42;mkdirSync(dirname(_0x201ccd),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x201ccd)||isDanglingSymlink(_0x201ccd)){const _0x49325e=lstatSync(_0x201ccd);if(!_0x49325e[_0x2c343f(0x14b)]())throw CliErrors[_0x2c343f(0x157)](_0x2c343f(0x13b)+_0x201ccd);const _0x41ee54=resolveSymlinkTarget(_0x201ccd);if(!isPathInside(realOrResolved(_0x41ee54),realOrResolved(_0x41174f)))throw CliErrors[_0x2c343f(0x157)](_0x2c343f(0x15e)+_0x201ccd);if(realOrResolved(_0x41ee54)===realOrResolved(_0x4cab84))return{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x14c)};return unlinkSync(_0x201ccd),symlinkSync(_0x4cab84,_0x201ccd,'dir'),{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x14e)};}return symlinkSync(_0x4cab84,_0x201ccd,'dir'),{'path':_0x201ccd,'target':_0x4cab84,'action':_0x2c343f(0x155)};}function managedAppSkillLinkPaths(_0x3690ef,_0x135a7c){const _0x47e41a=a93_0x5f42;if(!existsSync(_0x3690ef))return[];const _0x20ecc0=_0x135a7c+'--';return readdirSync(_0x3690ef,{'withFileTypes':!![]})[_0x47e41a(0x143)](_0x2356eb=>_0x2356eb[_0x47e41a(0x12f)][_0x47e41a(0x149)](_0x20ecc0))[_0x47e41a(0x135)](_0x23ef35=>resolve(_0x3690ef,_0x23ef35['name']));}function a93_0x2b5c(){const _0x3f41f5=['builtin','pruneSkillCodes','name','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','accessKey','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','company','610nuAUuS','map','has','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','5zYpEZZ','slice','personal','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','skillCode','scopes','scope','external-symlink','trim','filter','2878plNgkP','agentsSkillsDir','set','claudeSkillsDir','activeSkillCodes','startsWith','3930856MOdBMJ','isSymbolicLink','unchanged','12074823KVOaZx','updated','push','3890324UhSQeN','1319109LODdLh','env','skipped','dir','created','skill','validation','isDirectory','appCode','contentHash','7073934cAaFZy','9918377aLEisp','removed','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','managedRoot'];a93_0x2b5c=function(){return _0x3f41f5;};return a93_0x2b5c();}function removeManagedSkillLink(_0x529818,_0x50f3a2){const _0x24aafa=a93_0x5f42,_0x2fc8df=lstatIfPresent(_0x529818);if(!_0x2fc8df?.[_0x24aafa(0x14b)]())return{'path':_0x529818,'action':_0x24aafa(0x153),'reason':'not-managed-symlink'};const _0x4b9e6c=resolveSymlinkTarget(_0x529818);if(!isPathInside(realOrResolved(_0x4b9e6c),realOrResolved(_0x50f3a2)))return{'path':_0x529818,'action':_0x24aafa(0x153),'reason':_0x24aafa(0x141)};return unlinkSync(_0x529818),{'path':_0x529818,'action':_0x24aafa(0x15d)};}export function copyManagedSkillDirectory(_0x365b8d,_0x1611ae){const _0x1dbb85=a93_0x5f42,_0x2e137a=resolve(_0x1611ae,METADATA_FILE),_0x2b69b5=existsSync(_0x1611ae);if(_0x2b69b5){const _0x53878a=lstatSync(_0x1611ae);if(_0x53878a[_0x1dbb85(0x14b)]())throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x13c)+_0x1611ae);if(!_0x53878a[_0x1dbb85(0x158)]())throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x137)+_0x1611ae);const _0x4ee0ac=readMetadataIfPresent(_0x2e137a);if(_0x4ee0ac?.[_0x1dbb85(0x140)]!=='builtin')throw CliErrors[_0x1dbb85(0x157)](_0x1dbb85(0x13d)+_0x1611ae);}ensureDirSync(dirname(_0x1611ae));const _0x2960e0=_0x2b69b5?readMetadataIfPresent(_0x2e137a)?.[_0x1dbb85(0x15a)]:undefined,_0x263716=readMetadataIfPresent(resolve(_0x365b8d,METADATA_FILE))?.[_0x1dbb85(0x15a)];return _0x2b69b5&&removeSync(_0x1611ae),copySkillDirectory(_0x365b8d,_0x1611ae),{'path':_0x1611ae,'target':_0x365b8d,'action':!_0x2b69b5?_0x1dbb85(0x155):_0x2960e0===_0x263716?'unchanged':'updated'};}function copySkillDirectory(_0x520121,_0x12d6ea){copySync(_0x520121,_0x12d6ea,{'dereference':![],'overwrite':!![],'filter'(_0x3b38db){const _0x2efed5=a93_0x5f42;if(lstatSync(_0x3b38db)[_0x2efed5(0x14b)]())throw CliErrors[_0x2efed5(0x157)](_0x2efed5(0x132)+_0x3b38db);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x39fa8b,_0x464196){const _0x152244=a93_0x4739,_0xb5da8d=_0x39fa8b();while(!![]){try{const _0x211015=parseInt(_0x152244(0x1b0))/0x1*(-parseInt(_0x152244(0x18c))/0x2)+-parseInt(_0x152244(0x1ad))/0x3+-parseInt(_0x152244(0x18a))/0x4*(parseInt(_0x152244(0x18e))/0x5)+-parseInt(_0x152244(0x19e))/0x6+parseInt(_0x152244(0x190))/0x7*(parseInt(_0x152244(0x19b))/0x8)+parseInt(_0x152244(0x196))/0x9+parseInt(_0x152244(0x1a6))/0xa*(parseInt(_0x152244(0x195))/0xb);if(_0x211015===_0x464196)break;else _0xb5da8d['push'](_0xb5da8d['shift']());}catch(_0x3b06b9){_0xb5da8d['push'](_0xb5da8d['shift']());}}}(a93_0x668a,0xc8e07));function a93_0x4739(_0x44f960,_0x773b89){_0x44f960=_0x44f960-0x186;const _0x668a2d=a93_0x668a();let _0x47394f=_0x668a2d[_0x44f960];return _0x47394f;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x4088d2,_0x16bd59={}){const _0x2d7bd4=a93_0x4739,_0x5b94bd=safePathSegment(_0x4088d2[_0x2d7bd4(0x1a5)],_0x2d7bd4(0x1a5)),_0x572a0f=normalizeRuntimeSkillScopes(_0x4088d2[_0x2d7bd4(0x1af)]),_0x4fecd9=new Set(_0x572a0f),_0xf33dfe=_0x4088d2[_0x2d7bd4(0x1a4)]?.[_0x2d7bd4(0x186)](),_0x3bf9d0=new Map(),_0x3d3eb4=resolve(getRuntimeSkillCacheRoot(_0x4088d2[_0x2d7bd4(0x19c)],_0x4088d2[_0x2d7bd4(0x1a7)],_0x16bd59),_0x5b94bd);for(const _0x2bfc34 of _0x572a0f){for(const _0x4cfe28 of localSkillEntryDirs(resolve(_0x3d3eb4,_0x2bfc34))){collectLocalRuntimeSkill(_0x3bf9d0,_0x4cfe28,{'appCode':_0x5b94bd,'scopes':_0x4fecd9,'code':_0xf33dfe,'source':_0x2d7bd4(0x198)});}}const _0x1db9ad=resolveSkillSyncPaths(_0x16bd59);for(const _0xaa5d1e of[_0x1db9ad[_0x2d7bd4(0x1ac)],_0x1db9ad[_0x2d7bd4(0x1a9)]]){for(const _0x15c943 of localSkillLinkCandidates(_0xaa5d1e,_0x5b94bd,_0x4fecd9)){collectLocalRuntimeSkill(_0x3bf9d0,_0x15c943,{'appCode':_0x5b94bd,'scopes':_0x4fecd9,'code':_0xf33dfe,'source':_0x2d7bd4(0x199),'linkedPath':_0x15c943});}}return Array['from'](_0x3bf9d0[_0x2d7bd4(0x1a8)]())[_0x2d7bd4(0x1ae)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x246540){const _0x3e6dcc=a93_0x4739;if(!existsSync(_0x246540))return[];return readdirSync(_0x246540,{'withFileTypes':!![]})[_0x3e6dcc(0x187)](_0x36106=>_0x36106['isDirectory']()||_0x36106['isSymbolicLink']())[_0x3e6dcc(0x192)](_0x352ac7=>resolve(_0x246540,_0x352ac7['name']));}function localSkillLinkCandidates(_0x24a0f5,_0x52bab6,_0x43c626){const _0x2fc49c=a93_0x4739;if(!existsSync(_0x24a0f5))return[];const _0x25f5b2=_0x52bab6+'--';return readdirSync(_0x24a0f5,{'withFileTypes':!![]})[_0x2fc49c(0x187)](_0x1b9dd1=>_0x1b9dd1[_0x2fc49c(0x1a1)]()||_0x1b9dd1[_0x2fc49c(0x19a)]())['filter'](_0x38b5f9=>_0x38b5f9['name'][_0x2fc49c(0x193)](_0x25f5b2)||_0x43c626[_0x2fc49c(0x194)](_0x2fc49c(0x1aa)))['map'](_0x40a2c8=>resolve(_0x24a0f5,_0x40a2c8[_0x2fc49c(0x188)]));}function collectLocalRuntimeSkill(_0x6056d1,_0x58a894,_0x500e45){const _0x1e6d60=a93_0x4739,_0x37024c=resolve(_0x58a894,METADATA_FILE),_0x17a159=readMetadataIfPresent(_0x37024c);if(!_0x17a159)return;if(_0x17a159['appCode']!==_0x500e45[_0x1e6d60(0x1a5)])return;if(!isRuntimeSkillScope(_0x17a159[_0x1e6d60(0x19d)])||!_0x500e45[_0x1e6d60(0x1af)][_0x1e6d60(0x194)](_0x17a159[_0x1e6d60(0x19d)]))return;const _0x44c88c=_0x17a159['skillCode']?.[_0x1e6d60(0x186)]();if(!_0x44c88c)return;if(_0x500e45['code']&&_0x44c88c!==_0x500e45[_0x1e6d60(0x1a4)])return;const _0xaea9d5=_0x17a159[_0x1e6d60(0x19d)]+':'+_0x44c88c,_0x1b36ff=_0x500e45[_0x1e6d60(0x191)]?[_0x500e45[_0x1e6d60(0x191)]]:[],_0xdb2501=_0x6056d1['get'](_0xaea9d5);if(_0xdb2501){_0x500e45[_0x1e6d60(0x189)]===_0x1e6d60(0x198)&&(_0xdb2501[_0x1e6d60(0x18d)]=_0x58a894,_0xdb2501[_0x1e6d60(0x1a0)]=_0x58a894,_0xdb2501['skillMdPath']=resolve(_0x58a894,SKILL_FILE),_0xdb2501['metadataPath']=_0x37024c);for(const _0xd2ca4 of _0x1b36ff){!_0xdb2501[_0x1e6d60(0x18b)]['includes'](_0xd2ca4)&&_0xdb2501[_0x1e6d60(0x18b)]['push'](_0xd2ca4);}_0xdb2501[_0x1e6d60(0x18b)][_0x1e6d60(0x1ae)]();return;}_0x6056d1[_0x1e6d60(0x1a3)](_0xaea9d5,{..._0x17a159,'tags':Array[_0x1e6d60(0x1a2)](_0x17a159[_0x1e6d60(0x197)])?_0x17a159[_0x1e6d60(0x197)]:[],'scope':_0x17a159[_0x1e6d60(0x19d)],'source':_0x1e6d60(0x19f),'dir':_0x58a894,'cacheDir':_0x500e45[_0x1e6d60(0x189)]===_0x1e6d60(0x198)?_0x58a894:undefined,'skillMdPath':resolve(_0x58a894,SKILL_FILE),'metadataPath':_0x37024c,'linkedPaths':_0x1b36ff});}function compareLocalRuntimeSkills(_0x2002bb,_0x50b589){const _0x758fee=a93_0x4739,_0xce51a2={'personal':0x0,'company':0x1,'builtin':0x2};return _0xce51a2[_0x2002bb[_0x758fee(0x19d)]]-_0xce51a2[_0x50b589['scope']]||_0x2002bb[_0x758fee(0x1ab)]['localeCompare'](_0x50b589[_0x758fee(0x1ab)])||_0x2002bb[_0x758fee(0x18d)][_0x758fee(0x18f)](_0x50b589['dir']);}function a93_0x668a(){const _0x1117f6=['scopes','20901PWPCXj','trim','filter','name','source','36BbMVzf','linkedPaths','142sWjYOJ','dir','143730tWhvIB','localeCompare','24199KIngrB','linkedPath','map','startsWith','has','5408194vFmztC','2114190IhVwZl','tags','cache','link','isSymbolicLink','632BIMWxX','env','scope','8215152aGBxDG','local','cacheDir','isDirectory','isArray','set','code','appCode','90Jowoki','accessKey','values','claudeSkillsDir','builtin','skillCode','agentsSkillsDir','2994693mXRNzd','sort'];a93_0x668a=function(){return _0x1117f6;};return a93_0x668a();}
1
+ (function(_0x51dda0,_0xd9fde2){const _0x6ba0e5=a94_0x4a15,_0x2a71a3=_0x51dda0();while(!![]){try{const _0x51a7ae=parseInt(_0x6ba0e5(0x18c))/0x1*(parseInt(_0x6ba0e5(0x193))/0x2)+-parseInt(_0x6ba0e5(0x18d))/0x3+-parseInt(_0x6ba0e5(0x1a3))/0x4+-parseInt(_0x6ba0e5(0x194))/0x5*(parseInt(_0x6ba0e5(0x18f))/0x6)+-parseInt(_0x6ba0e5(0x1a2))/0x7*(-parseInt(_0x6ba0e5(0x19b))/0x8)+-parseInt(_0x6ba0e5(0x192))/0x9+-parseInt(_0x6ba0e5(0x197))/0xa*(-parseInt(_0x6ba0e5(0x18a))/0xb);if(_0x51a7ae===_0xd9fde2)break;else _0x2a71a3['push'](_0x2a71a3['shift']());}catch(_0xb77cdb){_0x2a71a3['push'](_0x2a71a3['shift']());}}}(a94_0x232f,0x3f262));function a94_0x4a15(_0x3a695f,_0x498ddb){_0x3a695f=_0x3a695f-0x189;const _0x232fae=a94_0x232f();let _0x4a1521=_0x232fae[_0x3a695f];return _0x4a1521;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a94_0x232f(){const _0x256922=['364420MZQTCu','linkedPaths','cache','trim','get','tags','accessKey','dir','isDirectory','isSymbolicLink','name','values','startsWith','claudeSkillsDir','code','filter','local','env','push','set','map','11HtumSl','appCode','262vQrOLt','334923rDWGXg','cacheDir','30npcNhL','scopes','skillCode','3472290ypbQuA','758AgRmpj','298545hATJzZ','scope','metadataPath','7098610Ykrexz','link','agentsSkillsDir','builtin','144HbUmVf','source','has','sort','localeCompare','linkedPath','isArray','130900cNRvex'];a94_0x232f=function(){return _0x256922;};return a94_0x232f();}import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x1efa65,_0x1f0dfd={}){const _0x3c9c7d=a94_0x4a15,_0x2d0297=safePathSegment(_0x1efa65[_0x3c9c7d(0x18b)],_0x3c9c7d(0x18b)),_0x338b45=normalizeRuntimeSkillScopes(_0x1efa65[_0x3c9c7d(0x190)]),_0x5360c4=new Set(_0x338b45),_0x4211f9=_0x1efa65['code']?.[_0x3c9c7d(0x1a6)](),_0x26554f=new Map(),_0x3349cc=resolve(getRuntimeSkillCacheRoot(_0x1efa65[_0x3c9c7d(0x1b4)],_0x1efa65[_0x3c9c7d(0x1a9)],_0x1f0dfd),_0x2d0297);for(const _0x3bbc03 of _0x338b45){for(const _0x280102 of localSkillEntryDirs(resolve(_0x3349cc,_0x3bbc03))){collectLocalRuntimeSkill(_0x26554f,_0x280102,{'appCode':_0x2d0297,'scopes':_0x5360c4,'code':_0x4211f9,'source':'cache'});}}const _0x53e9fc=resolveSkillSyncPaths(_0x1f0dfd);for(const _0x3ceeb9 of[_0x53e9fc[_0x3c9c7d(0x199)],_0x53e9fc[_0x3c9c7d(0x1b0)]]){for(const _0x541e00 of localSkillLinkCandidates(_0x3ceeb9,_0x2d0297,_0x5360c4)){collectLocalRuntimeSkill(_0x26554f,_0x541e00,{'appCode':_0x2d0297,'scopes':_0x5360c4,'code':_0x4211f9,'source':_0x3c9c7d(0x198),'linkedPath':_0x541e00});}}return Array['from'](_0x26554f[_0x3c9c7d(0x1ae)]())[_0x3c9c7d(0x19e)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x551904){const _0x3bb1c8=a94_0x4a15;if(!existsSync(_0x551904))return[];return readdirSync(_0x551904,{'withFileTypes':!![]})[_0x3bb1c8(0x1b2)](_0x5e7891=>_0x5e7891[_0x3bb1c8(0x1ab)]()||_0x5e7891[_0x3bb1c8(0x1ac)]())['map'](_0x4d02d2=>resolve(_0x551904,_0x4d02d2[_0x3bb1c8(0x1ad)]));}function localSkillLinkCandidates(_0x14454b,_0xe18aca,_0x288220){const _0x1bcb1e=a94_0x4a15;if(!existsSync(_0x14454b))return[];const _0x4feca0=_0xe18aca+'--';return readdirSync(_0x14454b,{'withFileTypes':!![]})[_0x1bcb1e(0x1b2)](_0x1ca3eb=>_0x1ca3eb[_0x1bcb1e(0x1ab)]()||_0x1ca3eb[_0x1bcb1e(0x1ac)]())['filter'](_0x26dc27=>_0x26dc27[_0x1bcb1e(0x1ad)][_0x1bcb1e(0x1af)](_0x4feca0)||_0x288220[_0x1bcb1e(0x19d)](_0x1bcb1e(0x19a)))[_0x1bcb1e(0x189)](_0xeb5bf2=>resolve(_0x14454b,_0xeb5bf2[_0x1bcb1e(0x1ad)]));}function collectLocalRuntimeSkill(_0x85b395,_0xf92cff,_0x2dbc8e){const _0x32c580=a94_0x4a15,_0x33a9bd=resolve(_0xf92cff,METADATA_FILE),_0x384566=readMetadataIfPresent(_0x33a9bd);if(!_0x384566)return;if(_0x384566[_0x32c580(0x18b)]!==_0x2dbc8e[_0x32c580(0x18b)])return;if(!isRuntimeSkillScope(_0x384566['scope'])||!_0x2dbc8e[_0x32c580(0x190)]['has'](_0x384566[_0x32c580(0x195)]))return;const _0x55f7a4=_0x384566[_0x32c580(0x191)]?.[_0x32c580(0x1a6)]();if(!_0x55f7a4)return;if(_0x2dbc8e[_0x32c580(0x1b1)]&&_0x55f7a4!==_0x2dbc8e['code'])return;const _0x4bea78=_0x384566[_0x32c580(0x195)]+':'+_0x55f7a4,_0x1e5cce=_0x2dbc8e[_0x32c580(0x1a0)]?[_0x2dbc8e['linkedPath']]:[],_0x458df8=_0x85b395[_0x32c580(0x1a7)](_0x4bea78);if(_0x458df8){_0x2dbc8e[_0x32c580(0x19c)]===_0x32c580(0x1a5)&&(_0x458df8[_0x32c580(0x1aa)]=_0xf92cff,_0x458df8[_0x32c580(0x18e)]=_0xf92cff,_0x458df8['skillMdPath']=resolve(_0xf92cff,SKILL_FILE),_0x458df8[_0x32c580(0x196)]=_0x33a9bd);for(const _0x2b868a of _0x1e5cce){!_0x458df8['linkedPaths']['includes'](_0x2b868a)&&_0x458df8[_0x32c580(0x1a4)][_0x32c580(0x1b5)](_0x2b868a);}_0x458df8[_0x32c580(0x1a4)]['sort']();return;}_0x85b395[_0x32c580(0x1b6)](_0x4bea78,{..._0x384566,'tags':Array[_0x32c580(0x1a1)](_0x384566['tags'])?_0x384566[_0x32c580(0x1a8)]:[],'scope':_0x384566[_0x32c580(0x195)],'source':_0x32c580(0x1b3),'dir':_0xf92cff,'cacheDir':_0x2dbc8e[_0x32c580(0x19c)]===_0x32c580(0x1a5)?_0xf92cff:undefined,'skillMdPath':resolve(_0xf92cff,SKILL_FILE),'metadataPath':_0x33a9bd,'linkedPaths':_0x1e5cce});}function compareLocalRuntimeSkills(_0x2fddff,_0xed66dc){const _0x112974=a94_0x4a15,_0x5af0ba={'personal':0x0,'company':0x1,'builtin':0x2};return _0x5af0ba[_0x2fddff['scope']]-_0x5af0ba[_0xed66dc[_0x112974(0x195)]]||_0x2fddff[_0x112974(0x191)][_0x112974(0x19f)](_0xed66dc[_0x112974(0x191)])||_0x2fddff[_0x112974(0x1aa)][_0x112974(0x19f)](_0xed66dc[_0x112974(0x1aa)]);}