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

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 a74_0x14ff(){const _0x4b41a1=['74160TxIcxJ','689hoknYj','4oOwGOZ','150MNTuGT','1020603LqEAby','body','97605vhWFIN','981016jpyWpB','291830uCjsxQ','description','30DwmAAb','54LSglWm','2322386KerKnQ','35UHXrwO','25227CURvQu'];a74_0x14ff=function(){return _0x4b41a1;};return a74_0x14ff();}function a74_0x1082(_0x3e9f17,_0x25e52d){_0x3e9f17=_0x3e9f17-0xa4;const _0x14ff9f=a74_0x14ff();let _0x108221=_0x14ff9f[_0x3e9f17];return _0x108221;}(function(_0x1067e9,_0x3d16b8){const _0xa721d2=a74_0x1082,_0x397cf1=_0x1067e9();while(!![]){try{const _0x10e5a5=-parseInt(_0xa721d2(0xae))/0x1*(-parseInt(_0xa721d2(0xab))/0x2)+-parseInt(_0xa721d2(0xa4))/0x3*(parseInt(_0xa721d2(0xb1))/0x4)+parseInt(_0xa721d2(0xa8))/0x5*(parseInt(_0xa721d2(0xaa))/0x6)+-parseInt(_0xa721d2(0xad))/0x7*(parseInt(_0xa721d2(0xa7))/0x8)+-parseInt(_0xa721d2(0xa6))/0x9*(parseInt(_0xa721d2(0xb2))/0xa)+parseInt(_0xa721d2(0xac))/0xb+parseInt(_0xa721d2(0xaf))/0xc*(parseInt(_0xa721d2(0xb0))/0xd);if(_0x10e5a5===_0x3d16b8)break;else _0x397cf1['push'](_0x397cf1['shift']());}catch(_0x16b54c){_0x397cf1['push'](_0x397cf1['shift']());}}}(a74_0x14ff,0x6095e));export function dryRun(_0x26ed12,_0x1cd80f){const _0xfaf353={'method':_0x26ed12,'url':_0x1cd80f},_0x5fc72f={'body'(_0x4ddc57){const _0x19a8ef=a74_0x1082;return _0xfaf353[_0x19a8ef(0xa5)]=_0x4ddc57,_0x5fc72f;},'description'(_0x22c8d0){const _0x1c32f7=a74_0x1082;return _0xfaf353[_0x1c32f7(0xa9)]=_0x22c8d0,_0x5fc72f;},'build'(){return{..._0xfaf353};}};return _0x5fc72f;}
@@ -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
+ const a75_0x410f07=a75_0x4872;(function(_0x126f98,_0x68d798){const _0x55176b=a75_0x4872,_0x3daa6c=_0x126f98();while(!![]){try{const _0x5e0638=-parseInt(_0x55176b(0x137))/0x1+parseInt(_0x55176b(0x133))/0x2*(-parseInt(_0x55176b(0x13a))/0x3)+-parseInt(_0x55176b(0x13d))/0x4+-parseInt(_0x55176b(0x132))/0x5*(parseInt(_0x55176b(0x139))/0x6)+-parseInt(_0x55176b(0x136))/0x7*(-parseInt(_0x55176b(0x135))/0x8)+-parseInt(_0x55176b(0x13c))/0x9*(parseInt(_0x55176b(0x138))/0xa)+-parseInt(_0x55176b(0x13e))/0xb*(-parseInt(_0x55176b(0x134))/0xc);if(_0x5e0638===_0x68d798)break;else _0x3daa6c['push'](_0x3daa6c['shift']());}catch(_0x309436){_0x3daa6c['push'](_0x3daa6c['shift']());}}}(a75_0x491a,0x230ce));import{createFlagHelpers}from'@lovrabet/cli-framework';function a75_0x491a(){const _0x5bf7fb=['291715RBStdi','8LxtzCV','997512AwBTee','146936jxiMet','7qwchwT','5332xcoZbC','10yNkWTo','18EOPOuG','78717nAQtDd','validateFlags','1955196NEaECJ','148992ENqgBF','88rrcWoi'];a75_0x491a=function(){return _0x5bf7fb;};return a75_0x491a();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a75_0x4872(_0x20e5ea,_0x39c8be){_0x20e5ea=_0x20e5ea-0x132;const _0x491ab6=a75_0x491a();let _0x487255=_0x491ab6[_0x20e5ea];return _0x487255;}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a75_0x410f07(0x13b)];
@@ -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(_0x1378f6,_0x51b834){const _0x2c8fd0=a76_0xa159,_0x4c14b5=_0x1378f6();while(!![]){try{const _0x18ed46=-parseInt(_0x2c8fd0(0xa7))/0x1+-parseInt(_0x2c8fd0(0xb2))/0x2*(parseInt(_0x2c8fd0(0xac))/0x3)+-parseInt(_0x2c8fd0(0xa1))/0x4+parseInt(_0x2c8fd0(0xae))/0x5*(-parseInt(_0x2c8fd0(0xa3))/0x6)+parseInt(_0x2c8fd0(0xaa))/0x7*(parseInt(_0x2c8fd0(0xad))/0x8)+-parseInt(_0x2c8fd0(0xa8))/0x9*(parseInt(_0x2c8fd0(0xa4))/0xa)+parseInt(_0x2c8fd0(0xb1))/0xb;if(_0x18ed46===_0x51b834)break;else _0x4c14b5['push'](_0x4c14b5['shift']());}catch(_0x3f74f6){_0x4c14b5['push'](_0x4c14b5['shift']());}}}(a76_0x4785,0xb554f));import{createHelpGenerators}from'@lovrabet/cli-framework';function a76_0xa159(_0x34953d,_0x268841){_0x34953d=_0x34953d-0xa1;const _0x4785e3=a76_0x4785();let _0xa15953=_0x4785e3[_0x34953d];return _0xa15953;}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 createGenerators(){const _0x42d229=a76_0xa159;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x42d229(0xa9)+PRODUCT_CONFIG[_0x42d229(0xaf)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x5d72b7){const _0x56ec26=a76_0xa159;return createGenerators()[_0x56ec26(0xa5)](_0x5d72b7);}function a76_0x4785(){const _0x42c010=['1554DBKgmz','service','195RBHali','11416TvzHQH','5926645wtHdKW','newConfigFileName','has','43710095yiTfoz','3958fnOcYb','generateFullHelp','4212948MdnDNm','get','6LteLKw','10aOQUaK','generateCommandHelp','generateServiceHelp','70337PgNjeR','9991494nugFXJ','Requires\x20appcode\x20(set\x20via\x20'];a76_0x4785=function(){return _0x42c010;};return a76_0x4785();}export function generateServiceHelp(_0x396822){const _0x5d9c24=a76_0xa159;return createGenerators()[_0x5d9c24(0xa6)](_0x396822);}export function generateFullHelp(){const _0x5c9f5e=a76_0xa159;return createGenerators()[_0x5c9f5e(0xb3)]();}function getAnyServiceEntry(_0x360284){const _0x1ebfdb=getServiceEntry(_0x360284);if(_0x1ebfdb)return _0x1ebfdb;try{return getDynamicServiceEntry(_0x360284);}catch{return undefined;}}function getAnyServiceDefinitions(_0x225e64){const _0x54ed54=a76_0xa159,_0x4d9a1b=serviceGroups[_0x54ed54(0xa2)](_0x225e64);if(_0x4d9a1b)return _0x4d9a1b;try{return getDynamicServiceDefinitions(_0x225e64);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x1d6f9f=a76_0xa159,_0x125783=new Set(serviceRegistry['map'](_0x5233df=>_0x5233df['service']));try{return listDynamicServiceEntries()['filter'](_0x269b13=>!_0x125783[_0x1d6f9f(0xb0)](_0x269b13[_0x1d6f9f(0xab)]));}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 a77_0x2b7b(_0x2c41f0,_0xf48b4e){_0x2c41f0=_0x2c41f0-0x121;var _0x3346b9=a77_0x3346();var _0x2b7b76=_0x3346b9[_0x2c41f0];return _0x2b7b76;}(function(_0x3fc24d,_0x4a5454){var _0x38bcd1=a77_0x2b7b,_0x3f00ac=_0x3fc24d();while(!![]){try{var _0x2aa2a4=-parseInt(_0x38bcd1(0x12b))/0x1*(parseInt(_0x38bcd1(0x12c))/0x2)+parseInt(_0x38bcd1(0x12d))/0x3*(-parseInt(_0x38bcd1(0x12a))/0x4)+-parseInt(_0x38bcd1(0x127))/0x5*(parseInt(_0x38bcd1(0x125))/0x6)+-parseInt(_0x38bcd1(0x126))/0x7*(parseInt(_0x38bcd1(0x128))/0x8)+parseInt(_0x38bcd1(0x129))/0x9*(parseInt(_0x38bcd1(0x121))/0xa)+-parseInt(_0x38bcd1(0x122))/0xb*(parseInt(_0x38bcd1(0x124))/0xc)+parseInt(_0x38bcd1(0x123))/0xd;if(_0x2aa2a4===_0x4a5454)break;else _0x3f00ac['push'](_0x3f00ac['shift']());}catch(_0x3da6a7){_0x3f00ac['push'](_0x3f00ac['shift']());}}}(a77_0x3346,0x4f9d7));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';function a77_0x3346(){var _0x56defc=['2126532hmuSqk','3654MTKaJy','21jppGMC','4750lIkTcw','1126088tMeDge','4289697cnENgn','108dWvAWO','1cYVmMi','1258638FusQMw','27936roDVKS','10SNZIvU','11KJpDXW','24807341zfcRbf'];a77_0x3346=function(){return _0x56defc;};return a77_0x3346();}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(_0x19a526,_0x4f9cc3){const _0x43832a=a78_0x3323,_0x4aef15=_0x19a526();while(!![]){try{const _0x547ac4=-parseInt(_0x43832a(0x15a))/0x1+parseInt(_0x43832a(0x15b))/0x2*(-parseInt(_0x43832a(0x153))/0x3)+parseInt(_0x43832a(0x152))/0x4*(parseInt(_0x43832a(0x159))/0x5)+-parseInt(_0x43832a(0x156))/0x6+parseInt(_0x43832a(0x154))/0x7*(parseInt(_0x43832a(0x14c))/0x8)+parseInt(_0x43832a(0x157))/0x9+parseInt(_0x43832a(0x14f))/0xa;if(_0x547ac4===_0x4f9cc3)break;else _0x4aef15['push'](_0x4aef15['shift']());}catch(_0x59c796){_0x4aef15['push'](_0x4aef15['shift']());}}}(a78_0x33da,0xedfa4));function a78_0x33da(){const _0xd535=['format','984102IMIBJa','12508380nPENTs','error','14695YsHjnd','1568110QXOwzg','2vctUOP','update','72ZRWLaK','url','pretty','6827900whzTst','message','_notice','552dVuRJu','4867638bDCeTL','1439851FeRxqF'];a78_0x33da=function(){return _0xd535;};return a78_0x33da();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a78_0x3323(_0x5350e1,_0x7037ae){_0x5350e1=_0x5350e1-0x14b;const _0x33da5b=a78_0x33da();let _0x33238e=_0x33da5b[_0x5350e1];return _0x33238e;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x85aacc,_0x4b235d){const _0x3bc685=a78_0x3323,_0x39d65f=_0x85aacc[_0x3bc685(0x151)],{_notice:_0x3d4f94,..._0x310079}=_0x85aacc;void _0x3d4f94,baseFormatOutput(_0x310079,_0x4b235d),_0x4b235d[_0x3bc685(0x155)]===_0x3bc685(0x14e)&&printPrettyNotice(_0x39d65f);}function printPrettyNotice(_0x32ad74){const _0xa0cc6e=a78_0x3323;if(!_0x32ad74?.[_0xa0cc6e(0x14b)])return;console[_0xa0cc6e(0x158)](_0x32ad74['update'][_0xa0cc6e(0x150)]+'\x20('+_0x32ad74['update'][_0xa0cc6e(0x14d)]+')');}
@@ -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(_0x193afd,_0x5a487c){const _0x2c17dd=a79_0x3382,_0x298b22=_0x193afd();while(!![]){try{const _0x5dd262=parseInt(_0x2c17dd(0xb9))/0x1+parseInt(_0x2c17dd(0xb5))/0x2*(-parseInt(_0x2c17dd(0xbe))/0x3)+parseInt(_0x2c17dd(0xd6))/0x4+-parseInt(_0x2c17dd(0xd0))/0x5+-parseInt(_0x2c17dd(0xc5))/0x6*(-parseInt(_0x2c17dd(0xcb))/0x7)+parseInt(_0x2c17dd(0xc6))/0x8+-parseInt(_0x2c17dd(0xc4))/0x9;if(_0x5dd262===_0x5a487c)break;else _0x298b22['push'](_0x298b22['shift']());}catch(_0x3dc520){_0x298b22['push'](_0x298b22['shift']());}}}(a79_0x3f48,0xde7bc));function toKebab(_0x4c59b7){const _0x1b119b=a79_0x3382;return _0x4c59b7[_0x1b119b(0xb7)](/_/g,'-')[_0x1b119b(0xb7)](/-([A-Z]+)/g,(_0x459558,_0x4b1a23)=>'-'+_0x4b1a23[_0x1b119b(0xc7)]())[_0x1b119b(0xb7)](/([a-z0-9])([A-Z])/g,(_0x453cdd,_0x218b58,_0x5f47cd)=>_0x218b58+'-'+_0x5f47cd)['toLowerCase']();}function a79_0x3382(_0xaaa876,_0x44eec5){_0xaaa876=_0xaaa876-0xb4;const _0x3f4862=a79_0x3f48();let _0x33820d=_0x3f4862[_0xaaa876];return _0x33820d;}function buildKnownFlags(_0xc81035){const _0x40b105=a79_0x3382,_0x228153=new Set();for(const _0x3a6a35 of _0xc81035){_0x228153[_0x40b105(0xb8)](_0x3a6a35[_0x40b105(0xc8)]),_0x228153['add'](toCamelCase(_0x3a6a35[_0x40b105(0xc8)]));}for(const _0x4b2440 of[_0x40b105(0xbd),_0x40b105(0xd2),_0x40b105(0xbc),_0x40b105(0xc2)]){_0x228153[_0x40b105(0xb8)](_0x4b2440);}for(const _0x2e1416 of[_0x40b105(0xc3),'env',_0x40b105(0xb4),_0x40b105(0xcf),_0x40b105(0xd9),_0x40b105(0xc1),'ci',_0x40b105(0xca),'version']){_0x228153[_0x40b105(0xb8)](_0x2e1416);}return _0x228153;}function buildFlagTypeMap(_0x83a067){const _0xdac9c1=a79_0x3382,_0x43305f=new Map();for(const _0x385258 of _0x83a067){_0x43305f['set'](_0x385258[_0xdac9c1(0xc8)],_0x385258[_0xdac9c1(0xd1)]),_0x43305f[_0xdac9c1(0xbf)](toCamelCase(_0x385258[_0xdac9c1(0xc8)]),_0x385258[_0xdac9c1(0xd1)]);}return _0x43305f;}function toCamelCase(_0x568e76){const _0x4c7568=a79_0x3382;return _0x568e76[_0x4c7568(0xb7)](/-([a-z])/g,(_0x105b06,_0x263ad5)=>_0x263ad5[_0x4c7568(0xbb)]());}function a79_0x3f48(){const _0x5a8c99=['has','appcode','3630qwGWDd','sticky','replace','add','440955Sswchw','original','toUpperCase','yes','dry-run','315Tjngkd','set','boolean','non-interactive','format','help','10176813WLYzgK','3022764vLrDvQ','6122424WFFlkG','toLowerCase','name','length','global','14DmCTwf','corrected','alias','slice','app','7558500Uudwkd','type','dryRun','get','string','push','6121912wZReQp','number','indexOf','nonInteractive'];a79_0x3f48=function(){return _0x5a8c99;};return a79_0x3f48();}function aliasHandler(_0x429771,_0x5b4990){const _0x137cd8=a79_0x3382,_0x1dd7b9=[];for(const _0x12f83c of Object['keys'](_0x429771)){if(_0x5b4990[_0x137cd8(0xda)](_0x12f83c))continue;const _0xef7d78=toKebab(_0x12f83c);_0xef7d78!==_0x12f83c&&_0x5b4990[_0x137cd8(0xda)](_0xef7d78)&&_0x1dd7b9[_0x137cd8(0xd5)]({'original':_0x12f83c,'corrected':_0xef7d78,'handler':_0x137cd8(0xcd)});}return _0x1dd7b9;}function stickyHandler(_0x1c5ee6,_0x55c890,_0x1c3173){const _0x412b71=a79_0x3382,_0x1ce401=[];for(const [_0x4d0a9b,_0x57a56c]of Object['entries'](_0x1c5ee6)){if(_0x57a56c!==!![])continue;for(let _0x3a6f46=_0x4d0a9b[_0x412b71(0xc9)]-0x1;_0x3a6f46>0x0;_0x3a6f46--){const _0x3feefa=_0x4d0a9b[_0x412b71(0xce)](0x0,_0x3a6f46),_0x592b52=_0x4d0a9b[_0x412b71(0xce)](_0x3a6f46),_0x293374=toKebab(_0x3feefa),_0x263d5a=toCamelCase(_0x3feefa),_0x2d66e0=_0x55c890[_0x412b71(0xda)](_0x3feefa)?_0x3feefa:_0x55c890[_0x412b71(0xda)](_0x293374)?_0x293374:_0x55c890[_0x412b71(0xda)](_0x263d5a)?_0x263d5a:null;if(!_0x2d66e0)continue;const _0x10c323=_0x1c3173[_0x412b71(0xd3)](_0x2d66e0)??_0x412b71(0xd4);let _0x122ada;if(_0x10c323===_0x412b71(0xd7)){const _0x2a221e=Number(_0x592b52);if(isNaN(_0x2a221e)||_0x592b52==='')continue;_0x122ada=_0x2a221e;}else{if(_0x10c323===_0x412b71(0xc0))continue;else{if(_0x592b52==='')continue;_0x122ada=_0x592b52;}}_0x1ce401[_0x412b71(0xd5)]({'original':_0x4d0a9b,'corrected':_0x2d66e0+'='+_0x122ada,'handler':_0x412b71(0xb6)});break;}}return _0x1ce401;}export function correctFlags(_0x3a5b37,_0x2bcd8f){const _0x4a6f2d=a79_0x3382,_0x219429=buildKnownFlags(_0x2bcd8f),_0x4174d1=buildFlagTypeMap(_0x2bcd8f),_0x236b97=aliasHandler(_0x3a5b37,_0x219429),_0x1f6e3c=stickyHandler(_0x3a5b37,_0x219429,_0x4174d1),_0x26f702=[..._0x236b97,..._0x1f6e3c];if(_0x26f702[_0x4a6f2d(0xc9)]===0x0)return{'flags':_0x3a5b37,'corrections':[]};const _0x305b33={..._0x3a5b37},_0x15c5b8=new Set();for(const _0x15ab57 of _0x236b97){_0x305b33[_0x15ab57[_0x4a6f2d(0xcc)]]=_0x3a5b37[_0x15ab57[_0x4a6f2d(0xba)]],_0x15c5b8['add'](_0x15ab57[_0x4a6f2d(0xba)]);}for(const _0x223278 of _0x1f6e3c){const _0x5c4f4c=_0x223278['corrected'][_0x4a6f2d(0xd8)]('='),_0x239f45=_0x223278[_0x4a6f2d(0xcc)]['slice'](0x0,_0x5c4f4c),_0x5acb1e=_0x223278['corrected'][_0x4a6f2d(0xce)](_0x5c4f4c+0x1),_0x441299=_0x4174d1[_0x4a6f2d(0xd3)](_0x239f45)??_0x4a6f2d(0xd4);_0x441299==='number'?_0x305b33[_0x239f45]=Number(_0x5acb1e):_0x305b33[_0x239f45]=_0x5acb1e,_0x15c5b8['add'](_0x223278[_0x4a6f2d(0xba)]);}for(const _0x2a26ae of _0x15c5b8){delete _0x305b33[_0x2a26ae];}return{'flags':_0x305b33,'corrections':_0x26f702};}
@@ -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(_0x485381,_0x313eef){var _0x3d695f=a80_0x1bcf,_0x5d11f0=_0x485381();while(!![]){try{var _0x3fa32c=parseInt(_0x3d695f(0xff))/0x1+parseInt(_0x3d695f(0x102))/0x2*(parseInt(_0x3d695f(0x104))/0x3)+parseInt(_0x3d695f(0x107))/0x4+parseInt(_0x3d695f(0x103))/0x5*(-parseInt(_0x3d695f(0x108))/0x6)+parseInt(_0x3d695f(0x105))/0x7+parseInt(_0x3d695f(0x106))/0x8+parseInt(_0x3d695f(0x100))/0x9*(-parseInt(_0x3d695f(0x101))/0xa);if(_0x3fa32c===_0x313eef)break;else _0x5d11f0['push'](_0x5d11f0['shift']());}catch(_0x50df30){_0x5d11f0['push'](_0x5d11f0['shift']());}}}(a80_0x2b94,0xc92d1));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a80_0x1bcf(_0x22ac2c,_0xe3adcb){_0x22ac2c=_0x22ac2c-0xff;var _0x2b945e=a80_0x2b94();var _0x1bcf70=_0x2b945e[_0x22ac2c];return _0x1bcf70;}function a80_0x2b94(){var _0x4b0b97=['58662wWscWU','476774pzaHYu','1371393arIVYN','300mcBMMv','3261602WWzlqt','385ZrGBOJ','3lSTQFB','7706132ZbvfRT','11192120OOihAW','6162760zPmuVt'];a80_0x2b94=function(){return _0x4b0b97;};return a80_0x2b94();}
@@ -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 a81_0x2a85(_0x57e98b,_0x1ea3d7){_0x57e98b=_0x57e98b-0x1e4;const _0x40e107=a81_0x40e1();let _0x2a85d1=_0x40e107[_0x57e98b];return _0x2a85d1;}function a81_0x40e1(){const _0x53cb7d=['params=','name=','11752160YcGKKm','join','58960IBIxHA','\x20\x20\x20Continue?\x20[y/N]\x20','service','9489342ULMkvP','entries','5IwdgWj','description','id=','code','params','affectedRecords','code=','1364YlLQWO','9129337yPMnwL','\x20\x20\x20Affected:\x20','\x20\x20\x20','43780QwassI','name','command','push','commandLabel','7874550aQPEPg','stringify','516yvFkqy'];a81_0x40e1=function(){return _0x53cb7d;};return a81_0x40e1();}(function(_0x34834b,_0x204fc4){const _0x39d506=a81_0x2a85,_0x516fa4=_0x34834b();while(!![]){try{const _0x48285e=-parseInt(_0x39d506(0x1f2))/0x1+parseInt(_0x39d506(0x1fe))/0x2+parseInt(_0x39d506(0x1f9))/0x3*(-parseInt(_0x39d506(0x1ee))/0x4)+parseInt(_0x39d506(0x1e7))/0x5*(parseInt(_0x39d506(0x1e5))/0x6)+-parseInt(_0x39d506(0x1ef))/0x7+parseInt(_0x39d506(0x1fc))/0x8+-parseInt(_0x39d506(0x1f7))/0x9;if(_0x48285e===_0x204fc4)break;else _0x516fa4['push'](_0x516fa4['shift']());}catch(_0x45a0b9){_0x516fa4['push'](_0x516fa4['shift']());}}}(a81_0x40e1,0xc2f14));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x362cea,_0x22f978,_0x4caf6c){const _0x9b011b=a81_0x2a85,_0x3631ab=buildConfirmationContext(_0x362cea,_0x22f978,_0x4caf6c),_0x43e09e=['⚠\x20\x20High-risk\x20operation:\x20'+_0x3631ab[_0x9b011b(0x1f6)]];return _0x3631ab[_0x9b011b(0x1e8)]&&_0x43e09e['push'](_0x9b011b(0x1f1)+_0x3631ab[_0x9b011b(0x1e8)]),_0x3631ab[_0x9b011b(0x1ec)]&&_0x43e09e['push'](_0x9b011b(0x1f0)+_0x3631ab[_0x9b011b(0x1ec)]),_0x43e09e[_0x9b011b(0x1f5)](_0x9b011b(0x1ff)),_0x43e09e;}export function reconstructCommandArgv(_0x294884,_0x10520a){const _0x8737df=a81_0x2a85,_0x1779f9=[CLI_BIN_NAME,_0x294884[_0x8737df(0x1e4)],_0x294884[_0x8737df(0x1f4)]];for(const [_0x2fb58c,_0x16671f]of Object[_0x8737df(0x1e6)](_0x10520a)){if(_0x16671f===!![])_0x1779f9[_0x8737df(0x1f5)]('--'+_0x2fb58c);else _0x16671f!==![]&&_0x16671f!==undefined&&_0x16671f!==''&&_0x1779f9['push']('--'+_0x2fb58c+'\x20'+JSON[_0x8737df(0x1f8)](_0x16671f));}return _0x1779f9[_0x8737df(0x1f5)]('--yes'),_0x1779f9[_0x8737df(0x1fd)]('\x20');}function buildConfirmationContext(_0x5f4d05,_0x5a8b71,_0x3a4dea){const _0x363b94=a81_0x2a85,_0x1f15be=extractAffectedRecords(_0x3a4dea);return{'commandLabel':_0x5a8b71,'description':_0x5f4d05[_0x363b94(0x1e8)],'affectedRecords':_0x1f15be};}function extractAffectedRecords(_0x3184b9){const _0x44b11a=a81_0x2a85,_0x332681=[];if(_0x3184b9[_0x44b11a(0x1ea)])_0x332681[_0x44b11a(0x1f5)](_0x44b11a(0x1ed)+_0x3184b9['code']);if(_0x3184b9['id'])_0x332681['push'](_0x44b11a(0x1e9)+_0x3184b9['id']);if(_0x3184b9[_0x44b11a(0x1f3)])_0x332681[_0x44b11a(0x1f5)](_0x44b11a(0x1fb)+_0x3184b9[_0x44b11a(0x1f3)]);if(_0x3184b9[_0x44b11a(0x1eb)])_0x332681[_0x44b11a(0x1f5)](_0x44b11a(0x1fa)+_0x3184b9[_0x44b11a(0x1eb)]);return _0x332681['length']>0x0?_0x332681[_0x44b11a(0x1fd)](',\x20'):undefined;}
@@ -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_0x16c1(_0x21cf50,_0x421547){_0x21cf50=_0x21cf50-0x1bc;const _0x56115e=a82_0x5611();let _0x16c1da=_0x56115e[_0x21cf50];return _0x16c1da;}(function(_0x5b7647,_0x4d0240){const _0xe46b78=a82_0x16c1,_0x2e6baa=_0x5b7647();while(!![]){try{const _0x166b38=-parseInt(_0xe46b78(0x1bf))/0x1+-parseInt(_0xe46b78(0x1c4))/0x2+-parseInt(_0xe46b78(0x1bc))/0x3+parseInt(_0xe46b78(0x1c1))/0x4*(-parseInt(_0xe46b78(0x1c8))/0x5)+parseInt(_0xe46b78(0x1c0))/0x6+parseInt(_0xe46b78(0x1c7))/0x7*(parseInt(_0xe46b78(0x1bd))/0x8)+parseInt(_0xe46b78(0x1c6))/0x9;if(_0x166b38===_0x4d0240)break;else _0x2e6baa['push'](_0x2e6baa['shift']());}catch(_0x590489){_0x2e6baa['push'](_0x2e6baa['shift']());}}}(a82_0x5611,0xd5c36));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a82_0x5611(){const _0x2472ab=['58312oLBPUy','description','validation','1451648hPmGYY','trim','12001050aoACGN','4384261RaecIu','80TEmJlD','3042030JTHTjE','16zvBQVw','string','1277343kghUZe','9239418BcIpEZ'];a82_0x5611=function(){return _0x2472ab;};return a82_0x5611();}export function mapUserFacingExecuteError(_0x45d99c){const _0x24a625=a82_0x16c1;if(_0x45d99c instanceof LovrabetError)return CliErrors[_0x24a625(0x1c3)](userFacingLovrabetMessage(_0x45d99c));return _0x45d99c;}function userFacingLovrabetMessage(_0x537495){const _0x546c8b=a82_0x16c1,_0x46aad1=_0x537495[_0x546c8b(0x1c2)];if(_0x46aad1!==undefined&&_0x46aad1!==null){if(typeof _0x46aad1===_0x546c8b(0x1be)&&_0x46aad1[_0x546c8b(0x1c5)]())return _0x46aad1[_0x546c8b(0x1c5)]();try{return JSON['stringify'](_0x46aad1);}catch{}}return _0x537495['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_0x100717=a83_0x5023;(function(_0x4e1735,_0x8c57c5){const _0x2e114b=a83_0x5023,_0x1c64a8=_0x4e1735();while(!![]){try{const _0x915a21=parseInt(_0x2e114b(0x194))/0x1+-parseInt(_0x2e114b(0x17e))/0x2+parseInt(_0x2e114b(0x189))/0x3+parseInt(_0x2e114b(0x1a7))/0x4*(parseInt(_0x2e114b(0x1ae))/0x5)+parseInt(_0x2e114b(0x186))/0x6*(parseInt(_0x2e114b(0x177))/0x7)+-parseInt(_0x2e114b(0x183))/0x8*(parseInt(_0x2e114b(0x1b0))/0x9)+-parseInt(_0x2e114b(0x197))/0xa;if(_0x915a21===_0x8c57c5)break;else _0x1c64a8['push'](_0x1c64a8['shift']());}catch(_0x74717){_0x1c64a8['push'](_0x1c64a8['shift']());}}}(a83_0x3a2d,0xb42ba));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';function a83_0x5023(_0x375287,_0x2efccc){_0x375287=_0x375287-0x174;const _0x3a2dbc=a83_0x3a2d();let _0x502368=_0x3a2dbc[_0x375287];return _0x502368;}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';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4af145){const _0x250c64=a83_0x5023;return void _0x4af145,AUTH_MODE[_0x250c64(0x193)];}export function createPipelineEnv(_0x32a89d,_0x2ae9a0){const _0x5e82a3=a83_0x5023,_0x34c26f=typeof _0x2ae9a0[_0x5e82a3(0x192)]==='string'&&_0x2ae9a0[_0x5e82a3(0x192)][_0x5e82a3(0x18b)]();return{'rawFlags':_0x2ae9a0,'appCode':_0x32a89d[_0x5e82a3(0x1ac)]||productEnv(_0x5e82a3(0x19b))||(_0x34c26f?undefined:readAppCodeFromConfig()),'appCodeSource':_0x32a89d['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x2ae9a0),'defaultFormat':_0x32a89d[_0x5e82a3(0x198)],'defaultPageSize':_0x32a89d[_0x5e82a3(0x187)],'defaultVerbose':_0x32a89d[_0x5e82a3(0x1a6)],'riskLevel':_0x32a89d[_0x5e82a3(0x1a2)],'accessKey':_0x32a89d[_0x5e82a3(0x19a)],'env':_0x32a89d[_0x5e82a3(0x182)],'mergedCli':{'defaultApp':_0x32a89d['defaultApp'],'currentApp':_0x32a89d[_0x5e82a3(0x174)],'appCode':_0x32a89d[_0x5e82a3(0x1ac)]}};}function a83_0x3a2d(){const _0x2bd58a=['app','ClientAk','75065kQxXvW','items','defaultVerbose','8288410zNeTCf','format','High-risk\x20operation\x20`','accessKey','APPCODE','newConfigFileName','defaultApp','../core/api-client.js','mergedCli','Run\x20`','apiDomain','riskLevel','schema','map','validation','verbose','4pgrwjC','Unknown\x20app:\x20','rawFlags','isNonInteractive','resolve','appCode','local-alias','2460345cNgaTR','doctor','214794QoXtlD','currentApp','cancelled','configMissing','5038607OQJIQU','requiresAppCode','defaultPageSize','appcode\x20\x22','ACCESS_KEY','object','update','1010078DCYPUm','\x20\x20To\x20proceed:\x20','../commands/app/remote-source.js','requiresAuth','env','224yJyLir','appcode','string','6dBvcos','pageSize','.appcode\x20to\x20','4359513QhdhUd','../core/sdk-client.js','trim','service','\x20or\x20pass\x20','catch','_notice','production','has'];a83_0x3a2d=function(){return _0x2bd58a;};return a83_0x3a2d();}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x1b5f88=>PIPELINE_FLAG_NAMES[a83_0x100717(0x191)](_0x1b5f88['name']))[a83_0x100717(0x1a4)](({name:_0x2f00eb,type:_0x2a1231,description:_0x406ae8})=>({'name':_0x2f00eb,'type':_0x2a1231,'description':_0x406ae8})),'formatOutput':formatOutput,'getCommandLabel'(_0x44ed8b){const _0x1fd5ee=a83_0x100717;return CLI_BIN_NAME+'\x20'+_0x44ed8b[_0x1fd5ee(0x18c)]+'\x20'+_0x44ed8b['command'];},'riskPolicy':{'onViolation'(_0x206db7){console['error'](_0x206db7);},'createError'(_0x46c824){const _0x11d5b0=a83_0x100717;return CliErrors[_0x11d5b0(0x175)](_0x46c824);}},async 'prepare'(_0x5aaf21,_0x53f391){const _0x2433b5=a83_0x100717,_0x42c503=resolveAuthMode(_0x53f391);if(_0x5aaf21[_0x2433b5(0x181)]!==![]){if(!_0x53f391['accessKey'])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2433b5(0x19c)]+_0x2433b5(0x18d)+productEnvName(_0x2433b5(0x17b))+'.');const {setActiveAK:_0x3d0c6a}=await import(_0x2433b5(0x19e));_0x3d0c6a(_0x53f391['accessKey']);}let _0x149fea='';if(_0x5aaf21[_0x2433b5(0x178)]!==![]){_0x149fea=_0x53f391['appCode']??'',_0x149fea=await resolveExplicitAppName(_0x5aaf21,_0x53f391,_0x149fea);if(!_0x149fea){await assertSelectedAppNameIsRuntimeAccessible(_0x5aaf21,_0x53f391);throw CliErrors[_0x2433b5(0x176)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x2433b5(0x19c)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5aaf21,_0x53f391,_0x149fea);}if(_0x149fea){const {initSdkClient:_0x46cdc4}=await import(_0x2433b5(0x18a));_0x46cdc4({'appCode':_0x149fea,'env':_0x53f391[_0x2433b5(0x182)]??_0x2433b5(0x190),'accessKey':_0x53f391[_0x2433b5(0x19a)],'authMode':_0x42c503});}return{'defaults':{'booleans':{'verbose':_0x53f391[_0x2433b5(0x196)]},'numbers':{'pagesize':_0x53f391[_0x2433b5(0x179)]}},'extras':{'appCode':_0x149fea,'cookie':'','apiDomain':_0x53f391[_0x2433b5(0x1a1)],'apiDir':'','accessKey':_0x53f391[_0x2433b5(0x19a)],'envName':_0x53f391[_0x2433b5(0x182)],'mergedCli':_0x53f391[_0x2433b5(0x19f)]}};},async 'confirmHighRisk'({def:_0x2bbaaf,env:_0x1c2eff,flags:_0x7fe78c,commandLabel:_0x5f0d28}){const _0x1317a1=a83_0x100717;if(_0x1c2eff[_0x1317a1(0x1aa)]){const _0x3f0157=reconstructCommandArgv(_0x2bbaaf,_0x7fe78c);throw CliErrors[_0x1317a1(0x1a5)](_0x1317a1(0x199)+_0x5f0d28+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x1317a1(0x17f)+_0x3f0157));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2bbaaf,_0x5f0d28,_0x7fe78c),'createCancelledError':_0x40512e=>CliErrors[_0x1317a1(0x175)](_0x40512e)});},'mapDryRunError'(_0x4ff355){return mapUserFacingExecuteError(_0x4ff355);},'mapExecuteError'(_0x400e39){return mapUserFacingExecuteError(_0x400e39);},async 'finalize'(){const _0x39c6d5=a83_0x100717,{clearActiveAK:_0x14d555}=await import(_0x39c6d5(0x19e));_0x14d555();}};async function resolveExplicitAppName(_0x47dcb4,_0x357e33,_0x246563){const _0xe3dcf1=a83_0x100717;if(_0x47dcb4[_0xe3dcf1(0x178)]===![])return _0x246563;const _0x196abc=typeof _0x357e33[_0xe3dcf1(0x1a9)]['app']===_0xe3dcf1(0x185)?_0x357e33['rawFlags'][_0xe3dcf1(0x192)]['trim']():'';if(!_0x196abc)return _0x246563;const _0x15809d=typeof _0x357e33[_0xe3dcf1(0x1a9)]['appcode']==='string'&&_0x357e33[_0xe3dcf1(0x1a9)][_0xe3dcf1(0x184)][_0xe3dcf1(0x18b)]()||productEnv(_0xe3dcf1(0x19b));if(_0x15809d||_0x357e33['appCodeSource']===_0xe3dcf1(0x1ad))return _0x246563;const {getRemoteAppList:_0x125923}=await import(_0xe3dcf1(0x180)),_0x5ab482=await _0x125923({'env':_0x357e33['env']??'production','accessKey':_0x357e33['accessKey']}),_0x37de3d=findAppByName(_0x5ab482[_0xe3dcf1(0x195)],_0x196abc);if(_0x37de3d&&!isRuntimeAccessibleApp(_0x37de3d))throw runtimeInaccessibleAppError(_0x37de3d,'\x22'+_0x196abc+'\x22');const _0x33b36d=_0x37de3d?.[_0xe3dcf1(0x1ac)]?.[_0xe3dcf1(0x18b)]();if(_0x33b36d)return _0x33b36d;throw CliErrors[_0xe3dcf1(0x1a5)](_0xe3dcf1(0x1a8)+_0x196abc,_0xe3dcf1(0x1a0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x196abc+_0xe3dcf1(0x188)+PRODUCT_CONFIG[_0xe3dcf1(0x19c)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x6aeded,_0x3c736e){const _0x28021a=a83_0x100717;if(_0x6aeded['requiresAppCode']===![]||!_0x3c736e[_0x28021a(0x19a)])return;const _0x13452e=(typeof _0x3c736e[_0x28021a(0x1a9)][_0x28021a(0x192)]==='string'&&_0x3c736e['rawFlags']['app'][_0x28021a(0x18b)]()?_0x3c736e[_0x28021a(0x1a9)][_0x28021a(0x192)]:_0x3c736e[_0x28021a(0x19f)]?.[_0x28021a(0x174)]??_0x3c736e[_0x28021a(0x19f)]?.[_0x28021a(0x19d)])?.[_0x28021a(0x18b)]();if(!_0x13452e)return;const {getRemoteAppList:_0x3fc334}=await import(_0x28021a(0x180)),_0x14bd71=await _0x3fc334({'env':_0x3c736e[_0x28021a(0x182)]??_0x28021a(0x190),'accessKey':_0x3c736e[_0x28021a(0x19a)]}),_0x1f2600=findAppByName(_0x14bd71[_0x28021a(0x195)],_0x13452e);if(_0x1f2600&&!isRuntimeAccessibleApp(_0x1f2600))throw runtimeInaccessibleAppError(_0x1f2600,'\x22'+_0x13452e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1a9fdb,_0x10028a,_0x1a57b7){const _0x16de64=a83_0x100717;if(_0x1a9fdb[_0x16de64(0x178)]===![]||!_0x10028a[_0x16de64(0x19a)])return;const {getRemoteAppList:_0x45ed17}=await import(_0x16de64(0x180)),_0x568dea=await _0x45ed17({'env':_0x10028a[_0x16de64(0x182)]??_0x16de64(0x190),'accessKey':_0x10028a[_0x16de64(0x19a)]}),_0x13991d=findAppByCode(_0x568dea[_0x16de64(0x195)],_0x1a57b7);if(_0x13991d&&!isRuntimeAccessibleApp(_0x13991d))throw runtimeInaccessibleAppError(_0x13991d,_0x16de64(0x17a)+_0x1a57b7+'\x22');}export async function runCommand(_0x809f2,_0x57f40f){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x809f2)?withUpdateNotice(_0x809f2):_0x809f2,_0x57f40f,runnerAdapter);}function shouldAttachUpdateNotice(_0x442c44){const _0x229359=a83_0x100717;return![_0x229359(0x17d),_0x229359(0x1a3),_0x229359(0x1af)]['includes'](_0x442c44[_0x229359(0x18c)]);}function withUpdateNotice(_0x431eef){return{..._0x431eef,async 'execute'(_0xe75f4d){const _0x40026e=a83_0x5023,_0x4a7570=shouldResolveUpdateNotice(_0xe75f4d)?resolveLatestUpdateNotice()[_0x40026e(0x18e)](()=>null):Promise[_0x40026e(0x1ab)](null),_0x271333=await _0x431eef['execute'](_0xe75f4d);return attachUpdateNotice(_0x271333,await _0x4a7570);}};}function shouldResolveUpdateNotice(_0x4367e3){const _0x49485d=a83_0x100717;return _0x4367e3[_0x49485d(0x198)]==='pretty'&&!_0x4367e3['nonInteractive'];}function attachUpdateNotice(_0x407789,_0x254c61){const _0x3a74da=a83_0x100717;if(!_0x254c61||!_0x407789||typeof _0x407789!==_0x3a74da(0x17c))return _0x407789;const _0xa5b836=_0x407789,_0x56404d=typeof _0xa5b836[_0x3a74da(0x18f)]===_0x3a74da(0x17c)&&_0xa5b836[_0x3a74da(0x18f)]!==null?_0xa5b836[_0x3a74da(0x18f)]:{};return{..._0xa5b836,'_notice':{..._0x56404d,'update':_0x254c61}};}
@@ -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(_0x5b0971,_0x43c9cc){const _0x37025b=a84_0x5155,_0x56b1f9=_0x5b0971();while(!![]){try{const _0x5cfb11=parseInt(_0x37025b(0xd8))/0x1+-parseInt(_0x37025b(0xdc))/0x2*(parseInt(_0x37025b(0xde))/0x3)+-parseInt(_0x37025b(0xd2))/0x4*(parseInt(_0x37025b(0xdd))/0x5)+-parseInt(_0x37025b(0xda))/0x6*(-parseInt(_0x37025b(0xd7))/0x7)+-parseInt(_0x37025b(0xdf))/0x8+parseInt(_0x37025b(0xcf))/0x9+parseInt(_0x37025b(0xd5))/0xa*(parseInt(_0x37025b(0xce))/0xb);if(_0x5cfb11===_0x43c9cc)break;else _0x56b1f9['push'](_0x56b1f9['shift']());}catch(_0x39146c){_0x56b1f9['push'](_0x56b1f9['shift']());}}}(a84_0x547b,0x4db37));import{buildSchemaPayload as a84_0xa9a6dc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a84_0x547b(){const _0x10932e=['17776858zVRoQz','475569ICrNgt','none','required','2470316oGoclC','commands','auth','10aOdYKD','requiresAuth','21AkVfGJ','222646WTFNqH','../commands/registry.js','188532sBXzpE','has','889228OQglSQ','5RwHpeY','3hyfnkk','4843000WmxWyF','map','services'];a84_0x547b=function(){return _0x10932e;};return a84_0x547b();}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 _0x30530d=a84_0x5155,{serviceRegistry:_0x5f5181,findDefinition:_0xce52bd}=await import(_0x30530d(0xd9)),_0x1e22d5=new Set(_0x5f5181[_0x30530d(0xcc)](_0x2a63bd=>_0x2a63bd['service'])),_0x589afd=listDynamicServiceEntries()['filter'](_0x465950=>!_0x1e22d5[_0x30530d(0xdb)](_0x465950['service'])),_0x1ca704=a84_0xa9a6dc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x5f5181,_0x589afd),'buildAllFlags':buildAllFlags,'findDefinition':(_0x5d6b6c,_0x290fa5)=>_0xce52bd(_0x5d6b6c,_0x290fa5)??findDynamicServiceDefinition(_0x5d6b6c,_0x290fa5)});return normalizeSchemaPayload(_0x1ca704);}function normalizeSchemaPayload(_0x4b71bf){const _0x439268=a84_0x5155;return{..._0x4b71bf,'schemaVersion':0x2,'services':_0x4b71bf[_0x439268(0xcd)][_0x439268(0xcc)](_0xfbd0a6=>({..._0xfbd0a6,'commands':_0xfbd0a6[_0x439268(0xd3)]['map'](normalizeSchemaCommand)}))};}function a84_0x5155(_0x1e5161,_0x1273af){_0x1e5161=_0x1e5161-0xcc;const _0x547b88=a84_0x547b();let _0x515551=_0x547b88[_0x1e5161];return _0x515551;}function normalizeSchemaCommand(_0x13e4cd){const _0x25e932=a84_0x5155,_0x12967b=_0x13e4cd;return{..._0x13e4cd,'auth':_0x12967b[_0x25e932(0xd4)]??(_0x13e4cd[_0x25e932(0xd6)]?_0x25e932(0xd1):_0x25e932(0xd0))};}
@@ -0,0 +1 @@
1
+ function a85_0x21b4(_0x2facde,_0x46c9c1){_0x2facde=_0x2facde-0x1df;const _0x48a17b=a85_0x48a1();let _0x21b4d1=_0x48a17b[_0x2facde];return _0x21b4d1;}function a85_0x48a1(){const _0x43b31a=['length','64659ICLFbZ','56OfhUsV','slice','7131990QxKpSI','13688451pdNdWw','1183240PGxFOz','service','51355UdlsOv','7487464UmLsoI','389892dUjOch','56EwnCyv','451HDoWmy','4zIPGNU','findIndex'];a85_0x48a1=function(){return _0x43b31a;};return a85_0x48a1();}(function(_0x34fa49,_0x381cf9){const _0x445ac9=a85_0x21b4,_0x5af97e=_0x34fa49();while(!![]){try{const _0x4b1d48=-parseInt(_0x445ac9(0x1e4))/0x1+parseInt(_0x445ac9(0x1ed))/0x2*(-parseInt(_0x445ac9(0x1ec))/0x3)+parseInt(_0x445ac9(0x1e9))/0x4*(-parseInt(_0x445ac9(0x1e0))/0x5)+-parseInt(_0x445ac9(0x1e6))/0x6*(-parseInt(_0x445ac9(0x1e7))/0x7)+-parseInt(_0x445ac9(0x1e5))/0x8+-parseInt(_0x445ac9(0x1e1))/0x9+parseInt(_0x445ac9(0x1e2))/0xa*(parseInt(_0x445ac9(0x1e8))/0xb);if(_0x4b1d48===_0x381cf9)break;else _0x5af97e['push'](_0x5af97e['shift']());}catch(_0x3eaecc){_0x5af97e['push'](_0x5af97e['shift']());}}}(a85_0x48a1,0xcb607));export function insertDynamicServicesAfterServiceTree(_0x1fd823,_0x238133){const _0x522778=a85_0x21b4;if(_0x238133[_0x522778(0x1eb)]===0x0)return[..._0x1fd823];const _0x34d54a=_0x1fd823[_0x522778(0x1ea)](_0x4adee8=>_0x4adee8[_0x522778(0x1e3)]===_0x522778(0x1e3));if(_0x34d54a<0x0)return[..._0x1fd823,..._0x238133];return[..._0x1fd823[_0x522778(0x1df)](0x0,_0x34d54a+0x1),..._0x238133,..._0x1fd823[_0x522778(0x1df)](_0x34d54a+0x1)];}
@@ -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 a86_0x58d7(){var _0x4b209b=['33841555MtgPqC','504296cBWnge','18TMCrDR','932004MzDgwc','28hmqiwu','166326xYbPML','2sfEtlx','72rdiNzW','2644780nAEKBe','2367050qrYDYr','250646XMOpML'];a86_0x58d7=function(){return _0x4b209b;};return a86_0x58d7();}function a86_0x55be(_0x4c3bca,_0x1ff6b9){_0x4c3bca=_0x4c3bca-0x10b;var _0x58d78c=a86_0x58d7();var _0x55be28=_0x58d78c[_0x4c3bca];return _0x55be28;}(function(_0x45f0ec,_0x303d3a){var _0xdfb670=a86_0x55be,_0x205483=_0x45f0ec();while(!![]){try{var _0x126dcd=-parseInt(_0xdfb670(0x10d))/0x1*(parseInt(_0xdfb670(0x111))/0x2)+parseInt(_0xdfb670(0x114))/0x3*(-parseInt(_0xdfb670(0x113))/0x4)+-parseInt(_0xdfb670(0x10f))/0x5+-parseInt(_0xdfb670(0x10c))/0x6*(-parseInt(_0xdfb670(0x10b))/0x7)+parseInt(_0xdfb670(0x10e))/0x8*(-parseInt(_0xdfb670(0x115))/0x9)+-parseInt(_0xdfb670(0x110))/0xa+parseInt(_0xdfb670(0x112))/0xb;if(_0x126dcd===_0x303d3a)break;else _0x205483['push'](_0x205483['shift']());}catch(_0xfa8c24){_0x205483['push'](_0x205483['shift']());}}}(a86_0x58d7,0x75d4a));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
+ const a87_0x103578=a87_0xc8c5;(function(_0x3dbfc5,_0xcabad){const _0x2f26f3=a87_0xc8c5,_0x45286f=_0x3dbfc5();while(!![]){try{const _0x202df2=-parseInt(_0x2f26f3(0xe7))/0x1+-parseInt(_0x2f26f3(0xe3))/0x2*(-parseInt(_0x2f26f3(0xe2))/0x3)+-parseInt(_0x2f26f3(0xde))/0x4*(parseInt(_0x2f26f3(0xdf))/0x5)+parseInt(_0x2f26f3(0xe5))/0x6+-parseInt(_0x2f26f3(0xe0))/0x7+-parseInt(_0x2f26f3(0xdc))/0x8+parseInt(_0x2f26f3(0xdd))/0x9;if(_0x202df2===_0xcabad)break;else _0x45286f['push'](_0x45286f['shift']());}catch(_0x2067a9){_0x45286f['push'](_0x45286f['shift']());}}}(a87_0x515a,0x7dd51));export const VERSION='2.1.7-beta.5';export const GIT_TAG=a87_0x103578(0xe6);function a87_0x515a(){const _0x1b5f22=['18TUPDQO','2026-07-07T05:56:05.111Z','2921022HOPyPZ','v2.1.7-beta.5','523096HtHwTW','4705496bdawlo','11729718JTVZuu','2361596dZgHgd','5Nrjrwx','1078364xWiZVC','8063aee','193668vIIBgI'];a87_0x515a=function(){return _0x1b5f22;};return a87_0x515a();}function a87_0xc8c5(_0x5273c4,_0x238aef){_0x5273c4=_0x5273c4-0xdc;const _0x515a50=a87_0x515a();let _0xc8c5=_0x515a50[_0x5273c4];return _0xc8c5;}export const GIT_COMMIT=a87_0x103578(0xe1);export const BUILD_TIME=a87_0x103578(0xe4);
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(_0x4bd06e,_0x13ec0d){const _0x169b46=a88_0x4832,_0x102969=_0x4bd06e();while(!![]){try{const _0x172ce4=-parseInt(_0x169b46(0x1df))/0x1+-parseInt(_0x169b46(0x1dd))/0x2*(-parseInt(_0x169b46(0x1d8))/0x3)+-parseInt(_0x169b46(0x1e1))/0x4+parseInt(_0x169b46(0x1d6))/0x5+parseInt(_0x169b46(0x1de))/0x6*(-parseInt(_0x169b46(0x1db))/0x7)+parseInt(_0x169b46(0x1e0))/0x8*(parseInt(_0x169b46(0x1d5))/0x9)+parseInt(_0x169b46(0x1dc))/0xa;if(_0x172ce4===_0x13ec0d)break;else _0x102969['push'](_0x102969['shift']());}catch(_0x314088){_0x102969['push'](_0x102969['shift']());}}}(a88_0x5bd2,0xb93b4));import{jsx as a88_0x3beda4,jsxs as a88_0x441ed2}from'react/jsx-runtime';function a88_0x5bd2(){const _0x5555ed=['1466442wpILmc','21424ZNKMUv','2499292ZYlbCt','green','\x20to\x20view\x20available\x20commands.','1836wjsaNd','2450085ZcVvfu','column','3129TVuGku','\x20\x20Use\x20','\x20--help','9355605MUsRwt','19507090XrjQbt','2300oDcwLC','6RMBTJo'];a88_0x5bd2=function(){return _0x5555ed;};return a88_0x5bd2();}function a88_0x4832(_0x56bc80,_0x58dfed){_0x56bc80=_0x56bc80-0x1d4;const _0x5bd281=a88_0x5bd2();let _0x483246=_0x5bd281[_0x56bc80];return _0x483246;}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 _0x21b3a1=a88_0x4832,{exit:_0x3b71c9}=useApp();return useEffect(()=>{_0x3b71c9();},[_0x3b71c9]),a88_0x441ed2(Box,{'flexDirection':_0x21b3a1(0x1d7),'marginTop':0x1,'marginBottom':0x1,'children':[a88_0x3beda4(Box,{'children':a88_0x3beda4(Text,{'bold':!![],'color':_0x21b3a1(0x1e2),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a88_0x441ed2(Box,{'marginTop':0x1,'children':[a88_0x3beda4(Text,{'dimColor':!![],'children':_0x21b3a1(0x1d9)}),a88_0x3beda4(Text,{'bold':!![],'color':_0x21b3a1(0x1e2),'children':CLI_BIN_NAME+_0x21b3a1(0x1da)}),a88_0x3beda4(Text,{'dimColor':!![],'children':_0x21b3a1(0x1d4)})]})]});}
@@ -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_0x56ba1a=a89_0x39ba;(function(_0x177fd6,_0x38521c){const _0x1c0900=a89_0x39ba,_0x3e24a2=_0x177fd6();while(!![]){try{const _0x300a6d=-parseInt(_0x1c0900(0x177))/0x1*(-parseInt(_0x1c0900(0x17d))/0x2)+-parseInt(_0x1c0900(0x17a))/0x3+parseInt(_0x1c0900(0x17f))/0x4*(parseInt(_0x1c0900(0x186))/0x5)+-parseInt(_0x1c0900(0x180))/0x6*(parseInt(_0x1c0900(0x175))/0x7)+-parseInt(_0x1c0900(0x17b))/0x8+-parseInt(_0x1c0900(0x174))/0x9+parseInt(_0x1c0900(0x173))/0xa;if(_0x300a6d===_0x38521c)break;else _0x3e24a2['push'](_0x3e24a2['shift']());}catch(_0x17f806){_0x3e24a2['push'](_0x3e24a2['shift']());}}}(a89_0x3f9d,0xc188c));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a89_0x51a889}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a89_0x51a889;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a89_0x56ba1a(0x179)]);function a89_0x39ba(_0x15d4a0,_0x19f017){_0x15d4a0=_0x15d4a0-0x173;const _0x3f9d9f=a89_0x3f9d();let _0x39ba22=_0x3f9d9f[_0x15d4a0];return _0x39ba22;}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x58fab4,_0x3bc8d5=LOVRABET_SKILL_SOURCE,_0x33bd84){const _0x382eee=a89_0x56ba1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x399741=_0x33bd84?.[_0x382eee(0x181)]??_0x382eee(0x188),_0x2972b6=resolveNpmBin('npx'),_0xe05150=[_0x382eee(0x17c),'add',_0x3bc8d5,'-g','-y'],_0x2ed3f1=[_0x2972b6,..._0xe05150][_0x382eee(0x189)]('\x20');console[_0x382eee(0x184)]('*\x20'+_0x2ed3f1);const _0x19214c=spawnSync(_0x2972b6,_0xe05150,{'cwd':_0x58fab4,'stdio':_0x399741,'env':process.env,'shell':![]});if(_0x19214c[_0x382eee(0x182)]===0x0)return{'ok':!![],'status':0x0};let _0x174492='exit\x20'+(_0x19214c[_0x382eee(0x182)]??_0x382eee(0x185));if(_0x399741===_0x382eee(0x17e)){const _0x4bce4b=_0x19214c['stderr']?_0x19214c[_0x382eee(0x178)][_0x382eee(0x183)]()[_0x382eee(0x187)]():'',_0x846e4b=_0x19214c[_0x382eee(0x176)]?_0x19214c[_0x382eee(0x176)][_0x382eee(0x183)]()[_0x382eee(0x187)]():'';if(_0x4bce4b)_0x174492=_0x4bce4b;else{if(_0x846e4b)_0x174492=_0x846e4b;}}return{'ok':![],'status':_0x19214c[_0x382eee(0x182)]??null,'error':_0x174492};}function a89_0x3f9d(){const _0x45497f=['13092327jxJFWu','14APWrfy','stdout','281ChrEqW','stderr','skipNpxSkillsEnvSuffix','3402885TNGMVu','6638744jBvrUM','skills','3018mGqxXy','pipe','1941684tdaQHs','3949986uSYtfY','stdio','status','toString','log','unknown','10IHSXxm','trim','inherit','join','41333480HYKgpn'];a89_0x3f9d=function(){return _0x45497f;};return a89_0x3f9d();}
@@ -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
+ function a90_0x1972(_0x31aa0e,_0x14440b){_0x31aa0e=_0x31aa0e-0xb8;const _0xf9eb5f=a90_0xf9eb();let _0x1972d6=_0xf9eb5f[_0x31aa0e];return _0x1972d6;}const a90_0x4135f0=a90_0x1972;(function(_0x4029bc,_0x4ed669){const _0x33383b=a90_0x1972,_0x405a7a=_0x4029bc();while(!![]){try{const _0x388b27=-parseInt(_0x33383b(0xba))/0x1*(parseInt(_0x33383b(0xb8))/0x2)+-parseInt(_0x33383b(0xc6))/0x3+-parseInt(_0x33383b(0xc0))/0x4*(-parseInt(_0x33383b(0xbc))/0x5)+parseInt(_0x33383b(0xc7))/0x6*(-parseInt(_0x33383b(0xc1))/0x7)+parseInt(_0x33383b(0xc2))/0x8*(-parseInt(_0x33383b(0xcb))/0x9)+-parseInt(_0x33383b(0xbe))/0xa*(-parseInt(_0x33383b(0xc4))/0xb)+parseInt(_0x33383b(0xc9))/0xc;if(_0x388b27===_0x4ed669)break;else _0x405a7a['push'](_0x405a7a['shift']());}catch(_0x2f12dd){_0x405a7a['push'](_0x405a7a['shift']());}}}(a90_0xf9eb,0x75fd8));function a90_0xf9eb(){const _0x492a4e=['1713xSHuju','.cache','10EKHdYL','.git','5770HKkQph','dist','1136404GkDdTW','653324gUHWJQ','1213672CIkZoD','SKILL.md','10681ldBQyc','coverage','1331151ICJnhJ','12fOpwnU','build','12528612dZIwfP','.DS_Store','18uVJrej','.next','882ZTaaXL','.svn'];a90_0xf9eb=function(){return _0x492a4e;};return a90_0xf9eb();}export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a90_0x4135f0(0xc3);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a90_0x4135f0(0xca)]);export const IGNORED_DIR_NAMES=new Set([a90_0x4135f0(0xbd),'.hg',a90_0x4135f0(0xb9),'node_modules',a90_0x4135f0(0xcc),a90_0x4135f0(0xbf),a90_0x4135f0(0xc8),a90_0x4135f0(0xc5),'.turbo',a90_0x4135f0(0xbb)]);
@@ -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(_0x23db69,_0x65e068){const _0xbe5fbe=a91_0x554a,_0x337eab=_0x23db69();while(!![]){try{const _0x2e21bc=-parseInt(_0xbe5fbe(0x185))/0x1*(parseInt(_0xbe5fbe(0x189))/0x2)+-parseInt(_0xbe5fbe(0x18c))/0x3+parseInt(_0xbe5fbe(0x193))/0x4*(-parseInt(_0xbe5fbe(0x187))/0x5)+parseInt(_0xbe5fbe(0x191))/0x6+-parseInt(_0xbe5fbe(0x18d))/0x7+parseInt(_0xbe5fbe(0x186))/0x8+parseInt(_0xbe5fbe(0x184))/0x9;if(_0x2e21bc===_0x65e068)break;else _0x337eab['push'](_0x337eab['shift']());}catch(_0x488b00){_0x337eab['push'](_0x337eab['shift']());}}}(a91_0x5942,0x63915));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(_0xc097b5,_0x41a405){const _0x18aba4=a91_0x554a,_0x126b6a=normalizeSkillRelativePath(_0x41a405),_0x2cc191=realOrResolved(_0xc097b5),_0x396083=resolve(_0x2cc191,..._0x126b6a['split']('/'));if(!isPathInside(_0x396083,_0x2cc191))throw CliErrors['validation'](_0x18aba4(0x188)+_0x41a405);return ensureNoSymlinkInManagedPath(_0x2cc191,_0x126b6a),_0x396083;}export function ensureNoSymlinkInManagedPath(_0x1ea37a,_0x316c6b){const _0x291d37=a91_0x554a;let _0x37be21=_0x1ea37a;for(const _0x4798c4 of _0x316c6b['split']('/')){_0x37be21=resolve(_0x37be21,_0x4798c4);const _0x3e9fe1=lstatIfPresent(_0x37be21);if(_0x3e9fe1?.[_0x291d37(0x182)]())throw CliErrors[_0x291d37(0x192)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x316c6b);}}export function isDanglingSymlink(_0x5f3f50){try{return lstatSync(_0x5f3f50)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x193e1f){const _0x5ae871=readlinkSync(_0x193e1f);return isAbsolute(_0x5ae871)?_0x5ae871:resolve(dirname(_0x193e1f),_0x5ae871);}function a91_0x554a(_0xa87fa3,_0x4e3190){_0xa87fa3=_0xa87fa3-0x182;const _0x5942f6=a91_0x5942();let _0x554a4d=_0x5942f6[_0xa87fa3];return _0x554a4d;}export function isPathInside(_0xd715a9,_0x1c00a4){const _0x4ff81a=a91_0x554a,_0x1492ba=_0xd715a9[_0x4ff81a(0x18f)](sep)?_0xd715a9:''+_0xd715a9+sep,_0x1ba6a2=_0x1c00a4[_0x4ff81a(0x18f)](sep)?_0x1c00a4:''+_0x1c00a4+sep;return _0xd715a9===_0x1c00a4||_0x1492ba[_0x4ff81a(0x18e)](_0x1ba6a2);}export function realOrResolved(_0x2f554b){try{return realpathSync(_0x2f554b);}catch{return resolve(_0x2f554b);}}export function lstatIfPresent(_0x1f51bf){try{return lstatSync(_0x1f51bf);}catch{return undefined;}}export function writeTextAtomic(_0x42ea98,_0x1a63e9,_0x1848dc){const _0xf29ad4=a91_0x554a;writeBytesAtomic(_0x42ea98,Buffer[_0xf29ad4(0x18a)](_0x1a63e9,_0xf29ad4(0x190)),_0x1848dc);}export function writeBytesAtomic(_0x31b06c,_0x39ff7b,_0x4a4d2f){const _0x22535d=a91_0x554a,_0x2480d5=_0x31b06c+_0x22535d(0x18b);try{writeFileSync(_0x2480d5,_0x39ff7b,{'mode':_0x4a4d2f}),renameSync(_0x2480d5,_0x31b06c);}catch(_0xadd28a){try{rmSync(_0x2480d5,{'force':!![]});}catch{}throw _0xadd28a;}}export function writeJsonAtomic(_0x517d2c,_0x35a6c2){const _0x2dc654=a91_0x554a;writeTextAtomic(_0x517d2c,JSON[_0x2dc654(0x183)](_0x35a6c2,null,0x2)+'\x0a',0x180);}function a91_0x5942(){const _0xee08ad=['isSymbolicLink','stringify','7511859GsYXgZ','1EymFzE','727136yzNXPW','35GFcVUo','Unsafe\x20Skill\x20file\x20path:\x20','1024132cGWrIP','from','.tmp','146265UlGkFQ','1284185HAZZYh','startsWith','endsWith','utf8','3469158ecSEiH','validation','200932BPaBxP'];a91_0x5942=function(){return _0xee08ad;};return a91_0x5942();}
@@ -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(_0x439871,_0x578d8e){const _0xfef720=a92_0x6251,_0x4f4ae8=_0x439871();while(!![]){try{const _0x2e5dac=parseInt(_0xfef720(0xe4))/0x1+-parseInt(_0xfef720(0xe8))/0x2+-parseInt(_0xfef720(0xe6))/0x3*(parseInt(_0xfef720(0xe9))/0x4)+-parseInt(_0xfef720(0xe3))/0x5*(-parseInt(_0xfef720(0xef))/0x6)+parseInt(_0xfef720(0xed))/0x7+-parseInt(_0xfef720(0xe2))/0x8+-parseInt(_0xfef720(0xea))/0x9;if(_0x2e5dac===_0x578d8e)break;else _0x4f4ae8['push'](_0x4f4ae8['shift']());}catch(_0x41437b){_0x4f4ae8['push'](_0x4f4ae8['shift']());}}}(a92_0x5e8b,0xa1100));import{createHash}from'node:crypto';function a92_0x5e8b(){const _0x9d833e=['hex','87TjCypm','digest','1133626RLoprC','73012nFWjHB','10111428JIvRzX','path','update','8473010JovoFV','sha256','822jJHyKl','2452488mlrJYu','44170piseqG','765227JRclPJ'];a92_0x5e8b=function(){return _0x9d833e;};return a92_0x5e8b();}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x493c35){const _0x3d866c=a92_0x6251;return createHash('sha256')[_0x3d866c(0xec)](_0x493c35)[_0x3d866c(0xe7)]('hex');}export function fileHash(_0x1fa81b){return bufferSha256(fileContent(_0x1fa81b));}function a92_0x6251(_0x151de2,_0x3d86dd){_0x151de2=_0x151de2-0xe2;const _0x5e8ba9=a92_0x5e8b();let _0x625126=_0x5e8ba9[_0x151de2];return _0x625126;}export function bufferSha256(_0x1a1825){const _0xc59a98=a92_0x6251;return createHash(_0xc59a98(0xee))['update'](_0x1a1825)[_0xc59a98(0xe7)](_0xc59a98(0xe5));}export function fileTreeHash(_0x33575a){const _0x4cc06b=a92_0x6251,_0x2dedf5=createHash(_0x4cc06b(0xee));for(const _0x246d37 of normalizeManifestFiles(_0x33575a)){_0x2dedf5[_0x4cc06b(0xec)](_0x246d37[_0x4cc06b(0xeb)]),_0x2dedf5[_0x4cc06b(0xec)]('\x00'),_0x2dedf5['update'](_0x246d37[_0x4cc06b(0xee)]),_0x2dedf5[_0x4cc06b(0xec)]('\x00'),_0x2dedf5[_0x4cc06b(0xec)](String(_0x246d37['size'])),_0x2dedf5[_0x4cc06b(0xec)]('\x00');}return _0x2dedf5[_0x4cc06b(0xe7)](_0x4cc06b(0xe5));}
@@ -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(_0x23b3b8,_0x592cf1){const _0x2f957d=a93_0x2a54,_0x242e41=_0x23b3b8();while(!![]){try{const _0x5c9cf1=parseInt(_0x2f957d(0x8a))/0x1*(-parseInt(_0x2f957d(0x92))/0x2)+parseInt(_0x2f957d(0x8e))/0x3*(-parseInt(_0x2f957d(0x97))/0x4)+parseInt(_0x2f957d(0x93))/0x5+parseInt(_0x2f957d(0x83))/0x6+parseInt(_0x2f957d(0x7d))/0x7+parseInt(_0x2f957d(0x7c))/0x8*(-parseInt(_0x2f957d(0x96))/0x9)+parseInt(_0x2f957d(0x71))/0xa;if(_0x5c9cf1===_0x592cf1)break;else _0x242e41['push'](_0x242e41['shift']());}catch(_0x51b57c){_0x242e41['push'](_0x242e41['shift']());}}}(a93_0x38ee,0x2dc11));function a93_0x2a54(_0x4ab9ab,_0x583230){_0x4ab9ab=_0x4ab9ab-0x6c;const _0x38ee4e=a93_0x38ee();let _0x2a54ed=_0x38ee4e[_0x4ab9ab];return _0x2a54ed;}import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a93_0x451471 from'fs-extra';import{CliErrors}from'../../errors.js';function a93_0x38ee(){const _0x5c3824=['not-managed-symlink','2aRDaXO','1471255dxylhA','updated','skillCode','9NSemtB','1449212YNGpNm','metadata-mismatch','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','contentHash','push','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','accessKey','scope','personal','builtin','created','appCode','map','4058180aGsrly','removed','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','env','get','pruneSkillCodes','scopes','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','agentsSkillsDir','length','managedRoot','2444824WQcsvB','2286823EPrOIV','isDirectory','unchanged','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','startsWith','skill','722640oppnqr','name','skipped','filter','claudeSkillsDir','validation','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','291883Usdwpi','trim','external-symlink','dir','3SlNsOd','isSymbolicLink','has'];a93_0x38ee=function(){return _0x5c3824;};return a93_0x38ee();}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_0x451471;export function linkEffectiveRuntimeSkills(_0xe0dcf8,_0x4d1911,_0x1f0641={}){const _0x3183bc=a93_0x2a54,_0x2eee8c=new Map();for(const _0x8289fa of _0xe0dcf8){const _0x104ad5=_0x8289fa['skill'][_0x3183bc(0x95)];if(!_0x104ad5)continue;const _0x4beef1=_0x2eee8c[_0x3183bc(0x75)](_0x104ad5);(!_0x4beef1||_0x8289fa['scope']===_0x3183bc(0x6c))&&_0x2eee8c['set'](_0x104ad5,_0x8289fa);}const _0x2a0f57=[],_0x17d994=resolveSkillSyncPaths(_0x1f0641);for(const _0x5dfd72 of _0x2eee8c['values']()){const _0x2da0c5=requireSkillCode(_0x5dfd72[_0x3183bc(0x82)]),_0x194b50=_0x4d1911+'--'+_0x2da0c5;for(const _0x1edbfd of[_0x17d994[_0x3183bc(0x79)],_0x17d994['claudeSkillsDir']]){_0x2a0f57[_0x3183bc(0x9b)](ensureManagedSymlink(resolve(_0x1edbfd,_0x194b50),_0x5dfd72[_0x3183bc(0x8d)],_0x17d994[_0x3183bc(0x7b)]));}}return _0x2a0f57;}export function pruneStaleRuntimeSkillLinks(_0x4aecb8,_0x2df9b4,_0x1f0070={},_0x29388d){const _0x5b2259=a93_0x2a54,_0x41c2ac=resolveSkillSyncPaths(_0x1f0070),_0x20330e=new Set([..._0x2df9b4][_0x5b2259(0x70)](_0x5e29c2=>_0x5e29c2[_0x5b2259(0x8b)]())['filter'](Boolean)),_0x15644a=_0x29388d?new Set([..._0x29388d][_0x5b2259(0x70)](_0x4075ff=>_0x4075ff[_0x5b2259(0x8b)]())[_0x5b2259(0x86)](Boolean)):undefined,_0x23e0c8=[];for(const _0x2467f8 of[_0x41c2ac[_0x5b2259(0x79)],_0x41c2ac[_0x5b2259(0x87)]]){for(const _0x32d915 of managedAppSkillLinkPaths(_0x2467f8,_0x4aecb8)){const _0x29d93f=basename(_0x32d915)['slice']((_0x4aecb8+'--')[_0x5b2259(0x7a)]);if(_0x15644a&&!_0x15644a['has'](_0x29d93f))continue;if(_0x20330e[_0x5b2259(0x90)](_0x29d93f))continue;_0x23e0c8['push'](removeManagedSkillLink(_0x32d915,_0x41c2ac[_0x5b2259(0x7b)]));}}return _0x23e0c8;}export function pruneStaleRuntimeSkillCache(_0x12386e,_0x30b749={}){const _0x51b199=a93_0x2a54,_0x218e24=new Set([..._0x12386e['activeSkillCodes']]['map'](_0x1f6eaa=>_0x1f6eaa[_0x51b199(0x8b)]())[_0x51b199(0x86)](Boolean)),_0x4f21d7=_0x12386e['pruneSkillCodes']?new Set([..._0x12386e[_0x51b199(0x76)]][_0x51b199(0x70)](_0x14dce5=>_0x14dce5[_0x51b199(0x8b)]())['filter'](Boolean)):undefined,_0x287262=_0x12386e[_0x51b199(0x77)]??[_0x51b199(0x6c),'company'],_0x24356d=resolve(getRuntimeSkillCacheRoot(_0x12386e[_0x51b199(0x74)],_0x12386e[_0x51b199(0x9d)],_0x30b749),safePathSegment(_0x12386e['appCode'],_0x51b199(0x6f))),_0x51dd7f=[];for(const _0x3b44ef of _0x287262){const _0x135941=resolve(_0x24356d,_0x3b44ef);if(!existsSync(_0x135941))continue;for(const _0x4c0b7c of readdirSync(_0x135941,{'withFileTypes':!![]})){if(!_0x4c0b7c[_0x51b199(0x7e)]())continue;const _0x42672e=_0x4c0b7c[_0x51b199(0x84)];if(_0x4f21d7&&!_0x4f21d7[_0x51b199(0x90)](_0x42672e))continue;if(_0x218e24['has'](_0x42672e))continue;const _0x145d70=resolve(_0x135941,_0x42672e),_0x4b17c4=readMetadataIfPresent(resolve(_0x145d70,METADATA_FILE));if(_0x4b17c4?.[_0x51b199(0x6f)]!==_0x12386e[_0x51b199(0x6f)]||_0x4b17c4[_0x51b199(0x9e)]!==_0x3b44ef||_0x4b17c4[_0x51b199(0x95)]!==_0x42672e){_0x51dd7f[_0x51b199(0x9b)]({'path':_0x145d70,'action':'skipped','reason':_0x51b199(0x98)});continue;}removeSync(_0x145d70),_0x51dd7f[_0x51b199(0x9b)]({'path':_0x145d70,'action':_0x51b199(0x72)});}}return _0x51dd7f;}export function linkGlobalRuntimeSkills(_0x27d83c,_0x21b6bf={}){const _0x2e8395=a93_0x2a54,_0xc4a883=resolveSkillSyncPaths(_0x21b6bf),_0x1b861b=[];for(const _0x2f6887 of _0x27d83c){if(_0x2f6887['scope']!==_0x2e8395(0x6d))throw CliErrors['validation'](_0x2e8395(0x78)+_0x2f6887[_0x2e8395(0x9e)]);const _0x5c68b7=requireSkillCode(_0x2f6887[_0x2e8395(0x82)]),_0x321d22=copyManagedSkillDirectory(_0x2f6887['dir'],resolve(_0xc4a883[_0x2e8395(0x79)],_0x5c68b7));_0x1b861b[_0x2e8395(0x9b)]({..._0x321d22,'contentHash':_0x2f6887[_0x2e8395(0x9a)]});}return _0x1b861b;}function ensureManagedSymlink(_0x5bf0b9,_0x17e31a,_0x2568a0){const _0x320cb6=a93_0x2a54;mkdirSync(dirname(_0x5bf0b9),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x5bf0b9)||isDanglingSymlink(_0x5bf0b9)){const _0x1fb414=lstatSync(_0x5bf0b9);if(!_0x1fb414[_0x320cb6(0x8f)]())throw CliErrors['validation'](_0x320cb6(0x89)+_0x5bf0b9);const _0x1a2b27=resolveSymlinkTarget(_0x5bf0b9);if(!isPathInside(realOrResolved(_0x1a2b27),realOrResolved(_0x2568a0)))throw CliErrors[_0x320cb6(0x88)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x5bf0b9);if(realOrResolved(_0x1a2b27)===realOrResolved(_0x17e31a))return{'path':_0x5bf0b9,'target':_0x17e31a,'action':'unchanged'};return unlinkSync(_0x5bf0b9),symlinkSync(_0x17e31a,_0x5bf0b9,_0x320cb6(0x8d)),{'path':_0x5bf0b9,'target':_0x17e31a,'action':_0x320cb6(0x94)};}return symlinkSync(_0x17e31a,_0x5bf0b9,_0x320cb6(0x8d)),{'path':_0x5bf0b9,'target':_0x17e31a,'action':_0x320cb6(0x6e)};}function managedAppSkillLinkPaths(_0x3314e1,_0x2b08ab){const _0x15ea5f=a93_0x2a54;if(!existsSync(_0x3314e1))return[];const _0x37ef14=_0x2b08ab+'--';return readdirSync(_0x3314e1,{'withFileTypes':!![]})[_0x15ea5f(0x86)](_0x1f7b11=>_0x1f7b11['name'][_0x15ea5f(0x81)](_0x37ef14))['map'](_0x2ad042=>resolve(_0x3314e1,_0x2ad042[_0x15ea5f(0x84)]));}function removeManagedSkillLink(_0x498166,_0xf9d53b){const _0x48cd9c=a93_0x2a54,_0x8c477e=lstatIfPresent(_0x498166);if(!_0x8c477e?.['isSymbolicLink']())return{'path':_0x498166,'action':_0x48cd9c(0x85),'reason':_0x48cd9c(0x91)};const _0x2c775c=resolveSymlinkTarget(_0x498166);if(!isPathInside(realOrResolved(_0x2c775c),realOrResolved(_0xf9d53b)))return{'path':_0x498166,'action':_0x48cd9c(0x85),'reason':_0x48cd9c(0x8c)};return unlinkSync(_0x498166),{'path':_0x498166,'action':_0x48cd9c(0x72)};}export function copyManagedSkillDirectory(_0x5942bd,_0x143d46){const _0x1899ae=a93_0x2a54,_0x2f86f4=resolve(_0x143d46,METADATA_FILE),_0x4d469c=existsSync(_0x143d46);if(_0x4d469c){const _0x46f6d5=lstatSync(_0x143d46);if(_0x46f6d5['isSymbolicLink']())throw CliErrors['validation'](_0x1899ae(0x73)+_0x143d46);if(!_0x46f6d5[_0x1899ae(0x7e)]())throw CliErrors[_0x1899ae(0x88)](_0x1899ae(0x99)+_0x143d46);const _0x4537fe=readMetadataIfPresent(_0x2f86f4);if(_0x4537fe?.['scope']!==_0x1899ae(0x6d))throw CliErrors['validation'](_0x1899ae(0x9c)+_0x143d46);}ensureDirSync(dirname(_0x143d46));const _0x3e0562=_0x4d469c?readMetadataIfPresent(_0x2f86f4)?.[_0x1899ae(0x9a)]:undefined,_0x57686a=readMetadataIfPresent(resolve(_0x5942bd,METADATA_FILE))?.[_0x1899ae(0x9a)];return _0x4d469c&&removeSync(_0x143d46),copySkillDirectory(_0x5942bd,_0x143d46),{'path':_0x143d46,'target':_0x5942bd,'action':!_0x4d469c?_0x1899ae(0x6e):_0x3e0562===_0x57686a?_0x1899ae(0x7f):_0x1899ae(0x94)};}function copySkillDirectory(_0x185680,_0xb79844){copySync(_0x185680,_0xb79844,{'dereference':![],'overwrite':!![],'filter'(_0xfe7a79){const _0x3db840=a93_0x2a54;if(lstatSync(_0xfe7a79)[_0x3db840(0x8f)]())throw CliErrors['validation'](_0x3db840(0x80)+_0xfe7a79);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 a94_0x3870(_0x50332e,_0x4552f8){_0x50332e=_0x50332e-0x6c;const _0x468a94=a94_0x468a();let _0x387070=_0x468a94[_0x50332e];return _0x387070;}(function(_0x4325e5,_0x29d482){const _0x3fc92e=a94_0x3870,_0x21342d=_0x4325e5();while(!![]){try{const _0x7b5c0f=parseInt(_0x3fc92e(0x7c))/0x1+-parseInt(_0x3fc92e(0x75))/0x2+-parseInt(_0x3fc92e(0x8f))/0x3+parseInt(_0x3fc92e(0x78))/0x4+parseInt(_0x3fc92e(0x6e))/0x5+parseInt(_0x3fc92e(0x77))/0x6*(parseInt(_0x3fc92e(0x86))/0x7)+-parseInt(_0x3fc92e(0x7a))/0x8*(parseInt(_0x3fc92e(0x7f))/0x9);if(_0x7b5c0f===_0x29d482)break;else _0x21342d['push'](_0x21342d['shift']());}catch(_0x5e76d5){_0x21342d['push'](_0x21342d['shift']());}}}(a94_0x468a,0xb0e65));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(_0x52fbbc,_0x443f2e={}){const _0x37ab92=a94_0x3870,_0x46f8af=safePathSegment(_0x52fbbc[_0x37ab92(0x91)],_0x37ab92(0x91)),_0x138379=normalizeRuntimeSkillScopes(_0x52fbbc['scopes']),_0x2b7b41=new Set(_0x138379),_0xb9fc73=_0x52fbbc['code']?.[_0x37ab92(0x90)](),_0x5b196a=new Map(),_0x19da5b=resolve(getRuntimeSkillCacheRoot(_0x52fbbc['env'],_0x52fbbc['accessKey'],_0x443f2e),_0x46f8af);for(const _0x4f0fe3 of _0x138379){for(const _0x443d5d of localSkillEntryDirs(resolve(_0x19da5b,_0x4f0fe3))){collectLocalRuntimeSkill(_0x5b196a,_0x443d5d,{'appCode':_0x46f8af,'scopes':_0x2b7b41,'code':_0xb9fc73,'source':'cache'});}}const _0x50fa56=resolveSkillSyncPaths(_0x443f2e);for(const _0x5d1e45 of[_0x50fa56[_0x37ab92(0x7d)],_0x50fa56[_0x37ab92(0x85)]]){for(const _0x28f6ec of localSkillLinkCandidates(_0x5d1e45,_0x46f8af,_0x2b7b41)){collectLocalRuntimeSkill(_0x5b196a,_0x28f6ec,{'appCode':_0x46f8af,'scopes':_0x2b7b41,'code':_0xb9fc73,'source':_0x37ab92(0x8a),'linkedPath':_0x28f6ec});}}return Array[_0x37ab92(0x93)](_0x5b196a[_0x37ab92(0x6d)]())[_0x37ab92(0x89)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x18b210){const _0xc00640=a94_0x3870;if(!existsSync(_0x18b210))return[];return readdirSync(_0x18b210,{'withFileTypes':!![]})[_0xc00640(0x92)](_0x5c4761=>_0x5c4761[_0xc00640(0x7e)]()||_0x5c4761[_0xc00640(0x88)]())['map'](_0x70f73f=>resolve(_0x18b210,_0x70f73f[_0xc00640(0x6f)]));}function localSkillLinkCandidates(_0x4f8372,_0x2c01b3,_0x332f54){const _0x3f4df8=a94_0x3870;if(!existsSync(_0x4f8372))return[];const _0x2a4968=_0x2c01b3+'--';return readdirSync(_0x4f8372,{'withFileTypes':!![]})[_0x3f4df8(0x92)](_0xba20b3=>_0xba20b3[_0x3f4df8(0x7e)]()||_0xba20b3[_0x3f4df8(0x88)]())[_0x3f4df8(0x92)](_0x18a42b=>_0x18a42b[_0x3f4df8(0x6f)][_0x3f4df8(0x8e)](_0x2a4968)||_0x332f54[_0x3f4df8(0x7b)](_0x3f4df8(0x71)))[_0x3f4df8(0x72)](_0x5471e3=>resolve(_0x4f8372,_0x5471e3[_0x3f4df8(0x6f)]));}function a94_0x468a(){const _0x2c4564=['local','linkedPath','get','localeCompare','claudeSkillsDir','154Vsvwwq','linkedPaths','isSymbolicLink','sort','link','scopes','includes','set','startsWith','1435602nMVTdv','trim','appCode','filter','from','scope','push','values','3103670WjFGMp','name','cache','builtin','map','isArray','source','2749178RodvXh','skillCode','331374nKMOqT','4671328pnUTai','dir','4429952AQvUAo','has','127844iPsnwE','agentsSkillsDir','isDirectory','9GfNlQN','code'];a94_0x468a=function(){return _0x2c4564;};return a94_0x468a();}function collectLocalRuntimeSkill(_0xca16f8,_0x4316c9,_0x227471){const _0x422d8f=a94_0x3870,_0x2ebf4b=resolve(_0x4316c9,METADATA_FILE),_0x596a5a=readMetadataIfPresent(_0x2ebf4b);if(!_0x596a5a)return;if(_0x596a5a[_0x422d8f(0x91)]!==_0x227471['appCode'])return;if(!isRuntimeSkillScope(_0x596a5a['scope'])||!_0x227471[_0x422d8f(0x8b)][_0x422d8f(0x7b)](_0x596a5a[_0x422d8f(0x94)]))return;const _0x195a63=_0x596a5a['skillCode']?.[_0x422d8f(0x90)]();if(!_0x195a63)return;if(_0x227471[_0x422d8f(0x80)]&&_0x195a63!==_0x227471['code'])return;const _0x42224f=_0x596a5a[_0x422d8f(0x94)]+':'+_0x195a63,_0xf03d6d=_0x227471[_0x422d8f(0x82)]?[_0x227471['linkedPath']]:[],_0x41b1aa=_0xca16f8[_0x422d8f(0x83)](_0x42224f);if(_0x41b1aa){_0x227471[_0x422d8f(0x74)]===_0x422d8f(0x70)&&(_0x41b1aa[_0x422d8f(0x79)]=_0x4316c9,_0x41b1aa['cacheDir']=_0x4316c9,_0x41b1aa['skillMdPath']=resolve(_0x4316c9,SKILL_FILE),_0x41b1aa['metadataPath']=_0x2ebf4b);for(const _0x16f2f8 of _0xf03d6d){!_0x41b1aa['linkedPaths'][_0x422d8f(0x8c)](_0x16f2f8)&&_0x41b1aa['linkedPaths'][_0x422d8f(0x6c)](_0x16f2f8);}_0x41b1aa[_0x422d8f(0x87)][_0x422d8f(0x89)]();return;}_0xca16f8[_0x422d8f(0x8d)](_0x42224f,{..._0x596a5a,'tags':Array[_0x422d8f(0x73)](_0x596a5a['tags'])?_0x596a5a['tags']:[],'scope':_0x596a5a[_0x422d8f(0x94)],'source':_0x422d8f(0x81),'dir':_0x4316c9,'cacheDir':_0x227471[_0x422d8f(0x74)]===_0x422d8f(0x70)?_0x4316c9:undefined,'skillMdPath':resolve(_0x4316c9,SKILL_FILE),'metadataPath':_0x2ebf4b,'linkedPaths':_0xf03d6d});}function compareLocalRuntimeSkills(_0x1b1f2c,_0x59ba1c){const _0x57c6da=a94_0x3870,_0x996529={'personal':0x0,'company':0x1,'builtin':0x2};return _0x996529[_0x1b1f2c[_0x57c6da(0x94)]]-_0x996529[_0x59ba1c['scope']]||_0x1b1f2c[_0x57c6da(0x76)][_0x57c6da(0x84)](_0x59ba1c[_0x57c6da(0x76)])||_0x1b1f2c[_0x57c6da(0x79)][_0x57c6da(0x84)](_0x59ba1c[_0x57c6da(0x79)]);}