@lovrabet/lovrabet-cli 2.1.7-beta.1 → 2.1.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/push-retarget.js +1 -0
  45. package/lib/commands/skill/scopes.js +1 -1
  46. package/lib/commands/skill/summary.js +1 -1
  47. package/lib/commands/skill/templates.js +1 -1
  48. package/lib/commands/skill/validate.js +1 -1
  49. package/lib/commands/sql/detail.js +1 -1
  50. package/lib/commands/sql/exec.js +1 -1
  51. package/lib/commands/sql/index.js +1 -1
  52. package/lib/commands/update.js +1 -1
  53. package/lib/commands/workspace/index.js +1 -1
  54. package/lib/config/schema.js +1 -1
  55. package/lib/constant/app.js +1 -1
  56. package/lib/constant/auth-mode.js +1 -1
  57. package/lib/constant/cli.js +1 -1
  58. package/lib/constant/defaults.js +1 -1
  59. package/lib/constant/distribution.js +1 -1
  60. package/lib/constant/domain.js +1 -1
  61. package/lib/constant/env.js +1 -1
  62. package/lib/constant/output.js +1 -1
  63. package/lib/constant/product.js +1 -1
  64. package/lib/constant/risk.js +1 -1
  65. package/lib/constant/url.js +1 -1
  66. package/lib/context.js +1 -1
  67. package/lib/core/api-client.js +1 -1
  68. package/lib/core/db-resolver.js +1 -1
  69. package/lib/core/sdk-client.js +1 -1
  70. package/lib/errors.js +1 -1
  71. package/lib/framework/build-all-flags.js +1 -1
  72. package/lib/framework/dryrun.js +1 -1
  73. package/lib/framework/flags.js +1 -1
  74. package/lib/framework/help.js +1 -1
  75. package/lib/framework/index.js +1 -1
  76. package/lib/framework/output.js +1 -1
  77. package/lib/framework/preparse.js +1 -1
  78. package/lib/framework/response.js +1 -1
  79. package/lib/framework/runner-confirmation.js +1 -1
  80. package/lib/framework/runner-error.js +1 -1
  81. package/lib/framework/runner.js +1 -1
  82. package/lib/framework/schema-export.js +1 -1
  83. package/lib/framework/types.js +1 -1
  84. package/lib/generated/build-info.js +1 -1
  85. package/lib/help.js +1 -1
  86. package/lib/skills/npx-skills-add.js +1 -1
  87. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  88. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  89. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  90. package/lib/skills/runtime-skill-sync/links.js +1 -1
  91. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  92. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  93. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  94. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  95. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  96. package/lib/skills/runtime-skill-sync/push.js +1 -1
  97. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  99. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  100. package/lib/skills/runtime-skill-sync.js +1 -1
  101. package/lib/utils/apply-jq-filter.js +1 -1
  102. package/lib/utils/logger.js +1 -1
  103. package/lib/utils/params.js +1 -1
  104. package/lib/utils/platform.js +1 -1
  105. package/lib/utils/update-notice.js +1 -1
  106. package/lib/utils/version.js +1 -1
  107. package/lib/utils/write-cli-side-channel.js +1 -1
  108. package/package.json +3 -2
@@ -1 +1 @@
1
- const a71_0x20dcc0=a71_0x45ea;(function(_0x10dde6,_0x105f76){const _0x1f1d96=a71_0x45ea,_0x34ed77=_0x10dde6();while(!![]){try{const _0x4b26de=-parseInt(_0x1f1d96(0x1ef))/0x1+-parseInt(_0x1f1d96(0x1ed))/0x2+-parseInt(_0x1f1d96(0x1f2))/0x3*(-parseInt(_0x1f1d96(0x1e9))/0x4)+parseInt(_0x1f1d96(0x1f0))/0x5*(parseInt(_0x1f1d96(0x1ec))/0x6)+parseInt(_0x1f1d96(0x1e8))/0x7*(parseInt(_0x1f1d96(0x1eb))/0x8)+parseInt(_0x1f1d96(0x1f1))/0x9*(parseInt(_0x1f1d96(0x1ee))/0xa)+-parseInt(_0x1f1d96(0x1ea))/0xb;if(_0x4b26de===_0x105f76)break;else _0x34ed77['push'](_0x34ed77['shift']());}catch(_0x43205a){_0x34ed77['push'](_0x34ed77['shift']());}}}(a71_0x587a,0xadcae));import{createFlagHelpers}from'@lovrabet/cli-framework';function a71_0x45ea(_0x5c815c,_0x25f645){_0x5c815c=_0x5c815c-0x1e7;const _0x587a4f=a71_0x587a();let _0x45ea2c=_0x587a4f[_0x5c815c];return _0x45ea2c;}import{CliErrors}from'../errors.js';function a71_0x587a(){const _0x3cfa16=['6yEAUPJ','948878JJDhFU','3574360DFZcnA','1098169xMpuok','5272375MEqHyw','9mOPnty','1142982UOMEzQ','validateFlags','parseFlags','7SkWdlw','12FJjXJT','16787639XNcHez','10045744HeGcGf'];a71_0x587a=function(){return _0x3cfa16;};return a71_0x587a();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a71_0x20dcc0(0x1e7)];export const validateFlags=helpers[a71_0x20dcc0(0x1f3)];
1
+ function a72_0x3e5e(){const _0x5bf5d6=['1718490LYkRrV','3455976PPngRx','513188PKhunE','5991188tdmPCv','3904TRkIkw','1951420VvpjcQ','130527LnJwAw','66BaZgCY','6IqySgE','8zoBcEA','2GXIgge','1152jPhssC'];a72_0x3e5e=function(){return _0x5bf5d6;};return a72_0x3e5e();}(function(_0x5fe93c,_0x3f0534){const _0x2fba1d=a72_0x1c85,_0x28d9cc=_0x5fe93c();while(!![]){try{const _0x297d3d=-parseInt(_0x2fba1d(0xb9))/0x1*(-parseInt(_0x2fba1d(0xbd))/0x2)+-parseInt(_0x2fba1d(0xb5))/0x3+parseInt(_0x2fba1d(0xb8))/0x4*(parseInt(_0x2fba1d(0xc0))/0x5)+parseInt(_0x2fba1d(0xb7))/0x6*(parseInt(_0x2fba1d(0xbe))/0x7)+-parseInt(_0x2fba1d(0xbf))/0x8*(parseInt(_0x2fba1d(0xba))/0x9)+parseInt(_0x2fba1d(0xbb))/0xa+-parseInt(_0x2fba1d(0xb6))/0xb*(parseInt(_0x2fba1d(0xbc))/0xc);if(_0x297d3d===_0x3f0534)break;else _0x28d9cc['push'](_0x28d9cc['shift']());}catch(_0x1b38ba){_0x28d9cc['push'](_0x28d9cc['shift']());}}}(a72_0x3e5e,0x77068));import{createFlagHelpers}from'@lovrabet/cli-framework';function a72_0x1c85(_0x5ed5ec,_0x20441e){_0x5ed5ec=_0x5ed5ec-0xb5;const _0x3e5e43=a72_0x3e5e();let _0x1c85fa=_0x3e5e43[_0x5ed5ec];return _0x1c85fa;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- (function(_0x8abe5d,_0x28df2b){const _0x4c6cba=a72_0x29a8,_0x591a90=_0x8abe5d();while(!![]){try{const _0xdd4d0=parseInt(_0x4c6cba(0x16e))/0x1*(-parseInt(_0x4c6cba(0x16c))/0x2)+parseInt(_0x4c6cba(0x17d))/0x3*(parseInt(_0x4c6cba(0x16d))/0x4)+-parseInt(_0x4c6cba(0x177))/0x5*(parseInt(_0x4c6cba(0x179))/0x6)+-parseInt(_0x4c6cba(0x176))/0x7+-parseInt(_0x4c6cba(0x172))/0x8+parseInt(_0x4c6cba(0x17c))/0x9+parseInt(_0x4c6cba(0x170))/0xa;if(_0xdd4d0===_0x28df2b)break;else _0x591a90['push'](_0x591a90['shift']());}catch(_0x2ca514){_0x591a90['push'](_0x591a90['shift']());}}}(a72_0x559d,0x71436));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';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a72_0x559d(){const _0x1b119a=['7795989TLFStS','261567tXNROH','10xoKNFu','12IlrCZd','89115kZwEkN','generateServiceHelp','6310200XSHHZp','newConfigFileName','981904nbksrb','has','get','\x20or\x20--appcode).','4668006CKTsyt','355bWjZfx','generateCommandHelp','5046PMfgda','service','filter'];a72_0x559d=function(){return _0x1b119a;};return a72_0x559d();}function a72_0x29a8(_0x120bbb,_0xf9a813){_0x120bbb=_0x120bbb-0x16c;const _0x559d4a=a72_0x559d();let _0x29a8d2=_0x559d4a[_0x120bbb];return _0x29a8d2;}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x571e78=a72_0x29a8;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[_0x571e78(0x171)]+_0x571e78(0x175)});}export function generateCommandHelp(_0x2e03b6){const _0xe759b5=a72_0x29a8;return createGenerators()[_0xe759b5(0x178)](_0x2e03b6);}export function generateServiceHelp(_0x172a3b){const _0x125f24=a72_0x29a8;return createGenerators()[_0x125f24(0x16f)](_0x172a3b);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x3cc1ca){const _0x21dbc3=getServiceEntry(_0x3cc1ca);if(_0x21dbc3)return _0x21dbc3;try{return getDynamicServiceEntry(_0x3cc1ca);}catch{return undefined;}}function getAnyServiceDefinitions(_0x371939){const _0x189033=a72_0x29a8,_0x2e1fee=serviceGroups[_0x189033(0x174)](_0x371939);if(_0x2e1fee)return _0x2e1fee;try{return getDynamicServiceDefinitions(_0x371939);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x29cc14=a72_0x29a8,_0x13460e=new Set(serviceRegistry['map'](_0x526f12=>_0x526f12['service']));try{return listDynamicServiceEntries()[_0x29cc14(0x17b)](_0x293a33=>!_0x13460e[_0x29cc14(0x173)](_0x293a33[_0x29cc14(0x17a)]));}catch{return[];}}
1
+ (function(_0x51574c,_0x52c548){const _0x3884aa=a73_0xf853,_0x564e42=_0x51574c();while(!![]){try{const _0x1f17fd=-parseInt(_0x3884aa(0xfa))/0x1*(-parseInt(_0x3884aa(0xed))/0x2)+-parseInt(_0x3884aa(0xff))/0x3*(-parseInt(_0x3884aa(0xfb))/0x4)+parseInt(_0x3884aa(0xf1))/0x5+parseInt(_0x3884aa(0xef))/0x6*(parseInt(_0x3884aa(0xf4))/0x7)+parseInt(_0x3884aa(0xf9))/0x8+parseInt(_0x3884aa(0xee))/0x9*(-parseInt(_0x3884aa(0xfe))/0xa)+-parseInt(_0x3884aa(0xf0))/0xb;if(_0x1f17fd===_0x52c548)break;else _0x564e42['push'](_0x564e42['shift']());}catch(_0x17fa21){_0x564e42['push'](_0x564e42['shift']());}}}(a73_0x43e7,0xbd11d));function a73_0xf853(_0xfef279,_0x376ec1){_0xfef279=_0xfef279-0xed;const _0x43e7da=a73_0x43e7();let _0xf85369=_0x43e7da[_0xfef279];return _0xf85369;}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';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x6642f6=a73_0xf853;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x6642f6(0xf5)+PRODUCT_CONFIG[_0x6642f6(0xf2)]+_0x6642f6(0xfd)});}export function generateCommandHelp(_0x1080f4){return createGenerators()['generateCommandHelp'](_0x1080f4);}export function generateServiceHelp(_0xb62852){const _0x1f94b9=a73_0xf853;return createGenerators()[_0x1f94b9(0xf7)](_0xb62852);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x5e0889){const _0x11180b=getServiceEntry(_0x5e0889);if(_0x11180b)return _0x11180b;try{return getDynamicServiceEntry(_0x5e0889);}catch{return undefined;}}function getAnyServiceDefinitions(_0x48a699){const _0x1b8812=a73_0xf853,_0x44c486=serviceGroups[_0x1b8812(0xfc)](_0x48a699);if(_0x44c486)return _0x44c486;try{return getDynamicServiceDefinitions(_0x48a699);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0xa5a99b=a73_0xf853,_0x645016=new Set(serviceRegistry['map'](_0x4306bc=>_0x4306bc[_0xa5a99b(0xf3)]));try{return listDynamicServiceEntries()[_0xa5a99b(0xf8)](_0x333740=>!_0x645016[_0xa5a99b(0xf6)](_0x333740['service']));}catch{return[];}}function a73_0x43e7(){const _0x38a773=['2jnsEYP','2188062AgunbF','60nAVhjH','13016025ObzNpc','5063085JgpHeJ','newConfigFileName','service','313103JmAsbo','Requires\x20appcode\x20(set\x20via\x20','has','generateServiceHelp','filter','1072968OGFziZ','599713jLQZuH','388usgAKl','get','\x20or\x20--appcode).','10lkEneD','219IaLwCG'];a73_0x43e7=function(){return _0x38a773;};return a73_0x43e7();}
@@ -1 +1 @@
1
- (function(_0x4d71c3,_0x2ff792){var _0x6fe6c9=a73_0x4f19,_0x267f99=_0x4d71c3();while(!![]){try{var _0x102259=-parseInt(_0x6fe6c9(0x1d7))/0x1+parseInt(_0x6fe6c9(0x1d0))/0x2+parseInt(_0x6fe6c9(0x1d3))/0x3*(parseInt(_0x6fe6c9(0x1d2))/0x4)+parseInt(_0x6fe6c9(0x1cf))/0x5*(-parseInt(_0x6fe6c9(0x1d5))/0x6)+parseInt(_0x6fe6c9(0x1d6))/0x7+-parseInt(_0x6fe6c9(0x1d1))/0x8*(-parseInt(_0x6fe6c9(0x1ce))/0x9)+-parseInt(_0x6fe6c9(0x1d4))/0xa;if(_0x102259===_0x2ff792)break;else _0x267f99['push'](_0x267f99['shift']());}catch(_0x4e1794){_0x267f99['push'](_0x267f99['shift']());}}}(a73_0x502f,0xef24b));function a73_0x4f19(_0x1bbae9,_0x266f74){_0x1bbae9=_0x1bbae9-0x1ce;var _0x502ff6=a73_0x502f();var _0x4f19c9=_0x502ff6[_0x1bbae9];return _0x4f19c9;}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';function a73_0x502f(){var _0x59cf46=['24UROCLs','20247780gmAhGT','115764QeRdnu','12756009nJPjel','307530QZNJAX','4441329zGyqHb','150iUAcIw','831542soGKYm','8thTOAX','579560OVEweX'];a73_0x502f=function(){return _0x59cf46;};return a73_0x502f();}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x2a9bbf,_0x3d78cc){var _0x3f2c0c=a74_0x7b05,_0x4d1ccf=_0x2a9bbf();while(!![]){try{var _0x4bb7a2=parseInt(_0x3f2c0c(0xca))/0x1*(parseInt(_0x3f2c0c(0xc4))/0x2)+-parseInt(_0x3f2c0c(0xc9))/0x3*(parseInt(_0x3f2c0c(0xcb))/0x4)+parseInt(_0x3f2c0c(0xc7))/0x5+-parseInt(_0x3f2c0c(0xc2))/0x6+parseInt(_0x3f2c0c(0xc6))/0x7+-parseInt(_0x3f2c0c(0xc8))/0x8*(parseInt(_0x3f2c0c(0xc5))/0x9)+parseInt(_0x3f2c0c(0xc3))/0xa;if(_0x4bb7a2===_0x3d78cc)break;else _0x4d1ccf['push'](_0x4d1ccf['shift']());}catch(_0x3289e3){_0x4d1ccf['push'](_0x4d1ccf['shift']());}}}(a74_0x4995,0x905f5));function a74_0x4995(){var _0x24d6f1=['12tPWyju','1821072SYikfn','9348800nKXyCj','1157776zTJhiw','36IEvAnc','475804LADGVX','2217810SmGdUc','1964848nmQtEG','148017pZIwxv','1jimYmY'];a74_0x4995=function(){return _0x24d6f1;};return a74_0x4995();}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';function a74_0x7b05(_0x4e0e38,_0x4c357d){_0x4e0e38=_0x4e0e38-0xc2;var _0x4995b8=a74_0x4995();var _0x7b05e1=_0x4995b8[_0x4e0e38];return _0x7b05e1;}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- function a74_0x470d(){const _0x5424ae=['488361yDKHbb','708320YdCTAF','2306576UUhKbS','message','error','3514490aJEfZN','1787913eGYOEb','1119940zqdgJO','475894GqVjtS','5hfHswV','6GEXZqy','url','pretty','45YcXOfr'];a74_0x470d=function(){return _0x5424ae;};return a74_0x470d();}(function(_0x4e5397,_0x176758){const _0x3ac0ea=a74_0x50d0,_0x149600=_0x4e5397();while(!![]){try{const _0x331da3=parseInt(_0x3ac0ea(0x168))/0x1+parseInt(_0x3ac0ea(0x170))/0x2+-parseInt(_0x3ac0ea(0x16e))/0x3+-parseInt(_0x3ac0ea(0x169))/0x4*(parseInt(_0x3ac0ea(0x171))/0x5)+-parseInt(_0x3ac0ea(0x172))/0x6*(parseInt(_0x3ac0ea(0x16d))/0x7)+parseInt(_0x3ac0ea(0x16a))/0x8+-parseInt(_0x3ac0ea(0x167))/0x9*(-parseInt(_0x3ac0ea(0x16f))/0xa);if(_0x331da3===_0x176758)break;else _0x149600['push'](_0x149600['shift']());}catch(_0x20a3cd){_0x149600['push'](_0x149600['shift']());}}}(a74_0x470d,0x491d7));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a74_0x50d0(_0xd11fcb,_0x227d4f){_0xd11fcb=_0xd11fcb-0x165;const _0x470d63=a74_0x470d();let _0x50d01e=_0x470d63[_0xd11fcb];return _0x50d01e;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4e4d87,_0x97c339){const _0x5aa227=a74_0x50d0,_0x2f7555=_0x4e4d87['_notice'],{_notice:_0x8d2e44,..._0x7065bf}=_0x4e4d87;void _0x8d2e44,baseFormatOutput(_0x7065bf,_0x97c339),_0x97c339['format']===_0x5aa227(0x166)&&printPrettyNotice(_0x2f7555);}function printPrettyNotice(_0x34f937){const _0x288781=a74_0x50d0;if(!_0x34f937?.['update'])return;console[_0x288781(0x16c)](_0x34f937['update'][_0x288781(0x16b)]+'\x20('+_0x34f937['update'][_0x288781(0x165)]+')');}
1
+ (function(_0x35b094,_0x40c256){const _0xb5c160=a75_0x1ef6,_0x4ff651=_0x35b094();while(!![]){try{const _0x49dc85=-parseInt(_0xb5c160(0xfc))/0x1+-parseInt(_0xb5c160(0xfe))/0x2*(parseInt(_0xb5c160(0x100))/0x3)+-parseInt(_0xb5c160(0xfa))/0x4*(parseInt(_0xb5c160(0xf9))/0x5)+-parseInt(_0xb5c160(0xf8))/0x6+parseInt(_0xb5c160(0xf7))/0x7+parseInt(_0xb5c160(0xf6))/0x8+-parseInt(_0xb5c160(0xfd))/0x9*(-parseInt(_0xb5c160(0xf4))/0xa);if(_0x49dc85===_0x40c256)break;else _0x4ff651['push'](_0x4ff651['shift']());}catch(_0x57cfa4){_0x4ff651['push'](_0x4ff651['shift']());}}}(a75_0x55c8,0xe1542));function a75_0x1ef6(_0x25fb46,_0x24a51f){_0x25fb46=_0x25fb46-0xf3;const _0x55c86b=a75_0x55c8();let _0x1ef63f=_0x55c86b[_0x25fb46];return _0x1ef63f;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a75_0x55c8(){const _0x209183=['428BQSNGs','update','1638026nignOs','63ocnAvj','577248BvJRJC','message','3XSRzdY','format','url','pretty','5784400GyWFDQ','_notice','7598432oAljrg','1631574SuWISQ','10704798BXDuFG','27955xjHqtD'];a75_0x55c8=function(){return _0x209183;};return a75_0x55c8();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1f9a41,_0x2d47e6){const _0x1d602e=a75_0x1ef6,_0xccf5ca=_0x1f9a41[_0x1d602e(0xf5)],{_notice:_0x46c3cf,..._0x409e46}=_0x1f9a41;void _0x46c3cf,baseFormatOutput(_0x409e46,_0x2d47e6),_0x2d47e6[_0x1d602e(0x101)]===_0x1d602e(0xf3)&&printPrettyNotice(_0xccf5ca);}function printPrettyNotice(_0x156373){const _0xe56af6=a75_0x1ef6;if(!_0x156373?.[_0xe56af6(0xfb)])return;console['error'](_0x156373[_0xe56af6(0xfb)][_0xe56af6(0xff)]+'\x20('+_0x156373['update'][_0xe56af6(0x102)]+')');}
@@ -1 +1 @@
1
- function a75_0x3ab2(){const _0x231f1b=['alias','env','number','152872tgceRd','9OUVLkE','global','format','get','164378dmklrr','corrected','slice','189608diLKvK','add','yes','820923qXFQRt','help','sticky','toLowerCase','push','original','appcode','set','name','type','has','390960AjQSCu','264410XUHcZS','15mvUsEv','97846aRBSMt','replace','toUpperCase','string','version','keys','app','nonInteractive'];a75_0x3ab2=function(){return _0x231f1b;};return a75_0x3ab2();}(function(_0x4988c6,_0x31ff55){const _0x57c8c9=a75_0x508f,_0x329d0a=_0x4988c6();while(!![]){try{const _0x580195=parseInt(_0x57c8c9(0x14a))/0x1+-parseInt(_0x57c8c9(0x15c))/0x2+-parseInt(_0x57c8c9(0x13e))/0x3+-parseInt(_0x57c8c9(0x15f))/0x4*(-parseInt(_0x57c8c9(0x14b))/0x5)+parseInt(_0x57c8c9(0x149))/0x6+parseInt(_0x57c8c9(0x14c))/0x7+-parseInt(_0x57c8c9(0x157))/0x8*(-parseInt(_0x57c8c9(0x158))/0x9);if(_0x580195===_0x31ff55)break;else _0x329d0a['push'](_0x329d0a['shift']());}catch(_0x407f03){_0x329d0a['push'](_0x329d0a['shift']());}}}(a75_0x3ab2,0x24629));function a75_0x508f(_0x2e77d0,_0xfdfd03){_0x2e77d0=_0x2e77d0-0x13d;const _0x3ab2f9=a75_0x3ab2();let _0x508fe0=_0x3ab2f9[_0x2e77d0];return _0x508fe0;}function toKebab(_0x5e9752){const _0x1dbbc7=a75_0x508f;return _0x5e9752[_0x1dbbc7(0x14d)](/_/g,'-')[_0x1dbbc7(0x14d)](/-([A-Z]+)/g,(_0x24db29,_0x951d)=>'-'+_0x951d['toLowerCase']())[_0x1dbbc7(0x14d)](/([a-z0-9])([A-Z])/g,(_0x152da6,_0x1cfcf0,_0x50c638)=>_0x1cfcf0+'-'+_0x50c638)[_0x1dbbc7(0x141)]();}function buildKnownFlags(_0x43ef7c){const _0x3e7f59=a75_0x508f,_0x2ecd5b=new Set();for(const _0xe742b3 of _0x43ef7c){_0x2ecd5b[_0x3e7f59(0x160)](_0xe742b3[_0x3e7f59(0x146)]),_0x2ecd5b['add'](toCamelCase(_0xe742b3[_0x3e7f59(0x146)]));}for(const _0x141db8 of['dry-run','dryRun',_0x3e7f59(0x13d),_0x3e7f59(0x15a)]){_0x2ecd5b[_0x3e7f59(0x160)](_0x141db8);}for(const _0x1d1ab0 of[_0x3e7f59(0x13f),_0x3e7f59(0x155),_0x3e7f59(0x144),_0x3e7f59(0x152),_0x3e7f59(0x153),'non-interactive','ci',_0x3e7f59(0x159),_0x3e7f59(0x150)]){_0x2ecd5b['add'](_0x1d1ab0);}return _0x2ecd5b;}function buildFlagTypeMap(_0x11e11d){const _0x4a28c7=a75_0x508f,_0x24529f=new Map();for(const _0x264b74 of _0x11e11d){_0x24529f[_0x4a28c7(0x145)](_0x264b74[_0x4a28c7(0x146)],_0x264b74[_0x4a28c7(0x147)]),_0x24529f[_0x4a28c7(0x145)](toCamelCase(_0x264b74['name']),_0x264b74[_0x4a28c7(0x147)]);}return _0x24529f;}function toCamelCase(_0xcdd341){const _0x21b63e=a75_0x508f;return _0xcdd341[_0x21b63e(0x14d)](/-([a-z])/g,(_0x101e98,_0x25ded4)=>_0x25ded4[_0x21b63e(0x14e)]());}function aliasHandler(_0x3e5d55,_0xb259){const _0x24e5c1=a75_0x508f,_0x307ed3=[];for(const _0x1698dd of Object[_0x24e5c1(0x151)](_0x3e5d55)){if(_0xb259[_0x24e5c1(0x148)](_0x1698dd))continue;const _0x556aee=toKebab(_0x1698dd);_0x556aee!==_0x1698dd&&_0xb259[_0x24e5c1(0x148)](_0x556aee)&&_0x307ed3['push']({'original':_0x1698dd,'corrected':_0x556aee,'handler':_0x24e5c1(0x154)});}return _0x307ed3;}function stickyHandler(_0xc049ba,_0x5471dc,_0x60443d){const _0x4d5c83=a75_0x508f,_0x484b84=[];for(const [_0x59337d,_0x57f6ec]of Object['entries'](_0xc049ba)){if(_0x57f6ec!==!![])continue;for(let _0x63aa4f=_0x59337d['length']-0x1;_0x63aa4f>0x0;_0x63aa4f--){const _0x46bafc=_0x59337d[_0x4d5c83(0x15e)](0x0,_0x63aa4f),_0x8daa11=_0x59337d[_0x4d5c83(0x15e)](_0x63aa4f),_0x40c81e=toKebab(_0x46bafc),_0x1ceb41=toCamelCase(_0x46bafc),_0x39e1ce=_0x5471dc[_0x4d5c83(0x148)](_0x46bafc)?_0x46bafc:_0x5471dc[_0x4d5c83(0x148)](_0x40c81e)?_0x40c81e:_0x5471dc[_0x4d5c83(0x148)](_0x1ceb41)?_0x1ceb41:null;if(!_0x39e1ce)continue;const _0x5e79bd=_0x60443d[_0x4d5c83(0x15b)](_0x39e1ce)??_0x4d5c83(0x14f);let _0x21d9f0;if(_0x5e79bd===_0x4d5c83(0x156)){const _0x4cdf1b=Number(_0x8daa11);if(isNaN(_0x4cdf1b)||_0x8daa11==='')continue;_0x21d9f0=_0x4cdf1b;}else{if(_0x5e79bd==='boolean')continue;else{if(_0x8daa11==='')continue;_0x21d9f0=_0x8daa11;}}_0x484b84[_0x4d5c83(0x142)]({'original':_0x59337d,'corrected':_0x39e1ce+'='+_0x21d9f0,'handler':_0x4d5c83(0x140)});break;}}return _0x484b84;}export function correctFlags(_0x2c55de,_0x5be432){const _0xab093c=a75_0x508f,_0x1ccf06=buildKnownFlags(_0x5be432),_0x18aa46=buildFlagTypeMap(_0x5be432),_0x5c4d04=aliasHandler(_0x2c55de,_0x1ccf06),_0x26c8ca=stickyHandler(_0x2c55de,_0x1ccf06,_0x18aa46),_0x41b5c9=[..._0x5c4d04,..._0x26c8ca];if(_0x41b5c9['length']===0x0)return{'flags':_0x2c55de,'corrections':[]};const _0xc7913d={..._0x2c55de},_0x374ce8=new Set();for(const _0x274dbf of _0x5c4d04){_0xc7913d[_0x274dbf[_0xab093c(0x15d)]]=_0x2c55de[_0x274dbf['original']],_0x374ce8[_0xab093c(0x160)](_0x274dbf['original']);}for(const _0x38a923 of _0x26c8ca){const _0x3b1290=_0x38a923[_0xab093c(0x15d)]['indexOf']('='),_0x4f6004=_0x38a923['corrected']['slice'](0x0,_0x3b1290),_0x90ebf0=_0x38a923['corrected'][_0xab093c(0x15e)](_0x3b1290+0x1),_0x2dd74c=_0x18aa46[_0xab093c(0x15b)](_0x4f6004)??_0xab093c(0x14f);_0x2dd74c===_0xab093c(0x156)?_0xc7913d[_0x4f6004]=Number(_0x90ebf0):_0xc7913d[_0x4f6004]=_0x90ebf0,_0x374ce8['add'](_0x38a923[_0xab093c(0x143)]);}for(const _0x356a17 of _0x374ce8){delete _0xc7913d[_0x356a17];}return{'flags':_0xc7913d,'corrections':_0x41b5c9};}
1
+ function a76_0x26f8(_0x42dd2d,_0xb495cf){_0x42dd2d=_0x42dd2d-0xb6;const _0x282024=a76_0x2820();let _0x26f80d=_0x282024[_0x42dd2d];return _0x26f80d;}(function(_0x9e52a7,_0x9dfae6){const _0x2e6fab=a76_0x26f8,_0x46b6a0=_0x9e52a7();while(!![]){try{const _0x529cc7=-parseInt(_0x2e6fab(0xd2))/0x1*(parseInt(_0x2e6fab(0xc7))/0x2)+parseInt(_0x2e6fab(0xc6))/0x3+-parseInt(_0x2e6fab(0xd8))/0x4*(parseInt(_0x2e6fab(0xcc))/0x5)+-parseInt(_0x2e6fab(0xd4))/0x6+-parseInt(_0x2e6fab(0xbd))/0x7+-parseInt(_0x2e6fab(0xcd))/0x8+-parseInt(_0x2e6fab(0xce))/0x9*(-parseInt(_0x2e6fab(0xcf))/0xa);if(_0x529cc7===_0x9dfae6)break;else _0x46b6a0['push'](_0x46b6a0['shift']());}catch(_0x2acace){_0x46b6a0['push'](_0x46b6a0['shift']());}}}(a76_0x2820,0x73740));function toKebab(_0x366438){const _0x1cd5a2=a76_0x26f8;return _0x366438[_0x1cd5a2(0xd9)](/_/g,'-')[_0x1cd5a2(0xd9)](/-([A-Z]+)/g,(_0x14993d,_0x1efb75)=>'-'+_0x1efb75[_0x1cd5a2(0xd3)]())[_0x1cd5a2(0xd9)](/([a-z0-9])([A-Z])/g,(_0x2136f6,_0x173d1d,_0x1feaac)=>_0x173d1d+'-'+_0x1feaac)['toLowerCase']();}function buildKnownFlags(_0x1b9f88){const _0x265575=a76_0x26f8,_0x3a2027=new Set();for(const _0x407645 of _0x1b9f88){_0x3a2027['add'](_0x407645['name']),_0x3a2027[_0x265575(0xbe)](toCamelCase(_0x407645['name']));}for(const _0x44995b of[_0x265575(0xc5),'dryRun','yes',_0x265575(0xc1)]){_0x3a2027['add'](_0x44995b);}for(const _0x5c0e2f of[_0x265575(0xbb),_0x265575(0xc3),'appcode',_0x265575(0xb7),'nonInteractive',_0x265575(0xbf),'ci',_0x265575(0xda),_0x265575(0xc2)]){_0x3a2027[_0x265575(0xbe)](_0x5c0e2f);}return _0x3a2027;}function buildFlagTypeMap(_0x5b7b65){const _0x2d43ca=a76_0x26f8,_0xca5303=new Map();for(const _0x32b9e0 of _0x5b7b65){_0xca5303[_0x2d43ca(0xd7)](_0x32b9e0[_0x2d43ca(0xb6)],_0x32b9e0[_0x2d43ca(0xb8)]),_0xca5303['set'](toCamelCase(_0x32b9e0[_0x2d43ca(0xb6)]),_0x32b9e0[_0x2d43ca(0xb8)]);}return _0xca5303;}function toCamelCase(_0x3b1422){const _0x3235d2=a76_0x26f8;return _0x3b1422[_0x3235d2(0xd9)](/-([a-z])/g,(_0x54393a,_0x54b997)=>_0x54b997['toUpperCase']());}function aliasHandler(_0xe34ef5,_0x56fe45){const _0x3fb348=a76_0x26f8,_0x5889b9=[];for(const _0xdc8b78 of Object[_0x3fb348(0xbc)](_0xe34ef5)){if(_0x56fe45[_0x3fb348(0xc9)](_0xdc8b78))continue;const _0x58e41e=toKebab(_0xdc8b78);_0x58e41e!==_0xdc8b78&&_0x56fe45[_0x3fb348(0xc9)](_0x58e41e)&&_0x5889b9['push']({'original':_0xdc8b78,'corrected':_0x58e41e,'handler':'alias'});}return _0x5889b9;}function stickyHandler(_0x26823a,_0x1357df,_0x1bc223){const _0x49436d=a76_0x26f8,_0xbbb297=[];for(const [_0x5b3434,_0xecb9ad]of Object[_0x49436d(0xd1)](_0x26823a)){if(_0xecb9ad!==!![])continue;for(let _0x3b95ea=_0x5b3434[_0x49436d(0xc8)]-0x1;_0x3b95ea>0x0;_0x3b95ea--){const _0x599ab3=_0x5b3434['slice'](0x0,_0x3b95ea),_0x5a7dcf=_0x5b3434[_0x49436d(0xba)](_0x3b95ea),_0x4e2c7d=toKebab(_0x599ab3),_0x4e5215=toCamelCase(_0x599ab3),_0x3c456e=_0x1357df['has'](_0x599ab3)?_0x599ab3:_0x1357df['has'](_0x4e2c7d)?_0x4e2c7d:_0x1357df[_0x49436d(0xc9)](_0x4e5215)?_0x4e5215:null;if(!_0x3c456e)continue;const _0x332d0d=_0x1bc223[_0x49436d(0xd5)](_0x3c456e)??_0x49436d(0xc0);let _0x242386;if(_0x332d0d===_0x49436d(0xd6)){const _0x172040=Number(_0x5a7dcf);if(isNaN(_0x172040)||_0x5a7dcf==='')continue;_0x242386=_0x172040;}else{if(_0x332d0d==='boolean')continue;else{if(_0x5a7dcf==='')continue;_0x242386=_0x5a7dcf;}}_0xbbb297[_0x49436d(0xb9)]({'original':_0x5b3434,'corrected':_0x3c456e+'='+_0x242386,'handler':_0x49436d(0xcb)});break;}}return _0xbbb297;}function a76_0x2820(){const _0x31218a=['type','push','slice','help','keys','4936351cqXSwi','add','non-interactive','string','format','version','env','original','dry-run','2148897zfgycx','22094VouRdI','length','has','corrected','sticky','30cfGgIl','897768PnZjyK','18MaYFev','6930020MfWVBl','indexOf','entries','38knCCUF','toLowerCase','1471602bCFRQz','get','number','set','97960RWRFdE','replace','global','name','app'];a76_0x2820=function(){return _0x31218a;};return a76_0x2820();}export function correctFlags(_0x137acc,_0x32c318){const _0x267b3d=a76_0x26f8,_0x45742b=buildKnownFlags(_0x32c318),_0x16c779=buildFlagTypeMap(_0x32c318),_0x56526f=aliasHandler(_0x137acc,_0x45742b),_0x506c98=stickyHandler(_0x137acc,_0x45742b,_0x16c779),_0xa501b=[..._0x56526f,..._0x506c98];if(_0xa501b[_0x267b3d(0xc8)]===0x0)return{'flags':_0x137acc,'corrections':[]};const _0xd1c5f4={..._0x137acc},_0x1ad724=new Set();for(const _0x3965b8 of _0x56526f){_0xd1c5f4[_0x3965b8[_0x267b3d(0xca)]]=_0x137acc[_0x3965b8[_0x267b3d(0xc4)]],_0x1ad724[_0x267b3d(0xbe)](_0x3965b8[_0x267b3d(0xc4)]);}for(const _0x5024a6 of _0x506c98){const _0x156195=_0x5024a6[_0x267b3d(0xca)][_0x267b3d(0xd0)]('='),_0x1f4cc8=_0x5024a6[_0x267b3d(0xca)][_0x267b3d(0xba)](0x0,_0x156195),_0x4dd65d=_0x5024a6[_0x267b3d(0xca)][_0x267b3d(0xba)](_0x156195+0x1),_0x468fca=_0x16c779[_0x267b3d(0xd5)](_0x1f4cc8)??_0x267b3d(0xc0);_0x468fca===_0x267b3d(0xd6)?_0xd1c5f4[_0x1f4cc8]=Number(_0x4dd65d):_0xd1c5f4[_0x1f4cc8]=_0x4dd65d,_0x1ad724['add'](_0x5024a6['original']);}for(const _0xe76c of _0x1ad724){delete _0xd1c5f4[_0xe76c];}return{'flags':_0xd1c5f4,'corrections':_0xa501b};}
@@ -1 +1 @@
1
- function a76_0x1cef(_0xa34559,_0x48c76d){_0xa34559=_0xa34559-0xc5;var _0xdc3810=a76_0xdc38();var _0x1cef42=_0xdc3810[_0xa34559];return _0x1cef42;}(function(_0x5cd289,_0x1edb40){var _0x44fc1f=a76_0x1cef,_0x18a33a=_0x5cd289();while(!![]){try{var _0x258d65=-parseInt(_0x44fc1f(0xca))/0x1+-parseInt(_0x44fc1f(0xcc))/0x2+parseInt(_0x44fc1f(0xc8))/0x3*(-parseInt(_0x44fc1f(0xcb))/0x4)+parseInt(_0x44fc1f(0xc9))/0x5*(parseInt(_0x44fc1f(0xc6))/0x6)+parseInt(_0x44fc1f(0xc7))/0x7+parseInt(_0x44fc1f(0xcd))/0x8+-parseInt(_0x44fc1f(0xc5))/0x9;if(_0x258d65===_0x1edb40)break;else _0x18a33a['push'](_0x18a33a['shift']());}catch(_0x1f3c8f){_0x18a33a['push'](_0x18a33a['shift']());}}}(a76_0xdc38,0x1c265));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a76_0xdc38(){var _0x376400=['330800YUSQDH','162670lloCSo','903288rszpsg','313713eLyJqo','439542KIgnvR','730793LGnagz','6SGaDuf','15tBlALJ','40188bLywZn'];a76_0xdc38=function(){return _0x376400;};return a76_0xdc38();}
1
+ function a77_0x17a4(){var _0x2537fa=['3oBtAzA','1491028TQcBHH','4085580ifyGTN','104qnAYEL','5787464tGlghk','7nUsaMT','165bPMCAN','6097818CYHuIS','5ZIqoag','849670Seolmn','1632446BxOmjt','9CsbZpx','1323101mBtgHs'];a77_0x17a4=function(){return _0x2537fa;};return a77_0x17a4();}(function(_0x324670,_0x4a90e9){var _0x23afdc=a77_0x3c86,_0x416601=_0x324670();while(!![]){try{var _0x28ead5=parseInt(_0x23afdc(0x6e))/0x1+-parseInt(_0x23afdc(0x6c))/0x2*(-parseInt(_0x23afdc(0x6f))/0x3)+parseInt(_0x23afdc(0x70))/0x4*(parseInt(_0x23afdc(0x6a))/0x5)+parseInt(_0x23afdc(0x69))/0x6*(-parseInt(_0x23afdc(0x67))/0x7)+parseInt(_0x23afdc(0x66))/0x8*(parseInt(_0x23afdc(0x6d))/0x9)+-parseInt(_0x23afdc(0x6b))/0xa*(-parseInt(_0x23afdc(0x68))/0xb)+parseInt(_0x23afdc(0x64))/0xc*(-parseInt(_0x23afdc(0x65))/0xd);if(_0x28ead5===_0x4a90e9)break;else _0x416601['push'](_0x416601['shift']());}catch(_0xb65a43){_0x416601['push'](_0x416601['shift']());}}}(a77_0x17a4,0xbbfcc));function a77_0x3c86(_0x24021c,_0x3a4b42){_0x24021c=_0x24021c-0x64;var _0x17a4e5=a77_0x17a4();var _0x3c86cb=_0x17a4e5[_0x24021c];return _0x3c86cb;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x4740f8,_0x1b3fb1){const _0x48cd2e=a77_0x3cd2,_0x39ab72=_0x4740f8();while(!![]){try{const _0x381a26=-parseInt(_0x48cd2e(0x1a0))/0x1+-parseInt(_0x48cd2e(0x1a8))/0x2*(parseInt(_0x48cd2e(0x19e))/0x3)+parseInt(_0x48cd2e(0x199))/0x4+parseInt(_0x48cd2e(0x1a3))/0x5+-parseInt(_0x48cd2e(0x19f))/0x6+-parseInt(_0x48cd2e(0x193))/0x7*(-parseInt(_0x48cd2e(0x19d))/0x8)+parseInt(_0x48cd2e(0x19c))/0x9;if(_0x381a26===_0x1b3fb1)break;else _0x39ab72['push'](_0x39ab72['shift']());}catch(_0x313839){_0x39ab72['push'](_0x39ab72['shift']());}}}(a77_0x574f,0xa1a1a));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x590950,_0x37ecb2,_0x1d9feb){const _0x549a71=a77_0x3cd2,_0x38d60d=buildConfirmationContext(_0x590950,_0x37ecb2,_0x1d9feb),_0x1b9b7a=[_0x549a71(0x198)+_0x38d60d[_0x549a71(0x196)]];return _0x38d60d[_0x549a71(0x1a6)]&&_0x1b9b7a[_0x549a71(0x19a)](_0x549a71(0x1a5)+_0x38d60d[_0x549a71(0x1a6)]),_0x38d60d[_0x549a71(0x1a7)]&&_0x1b9b7a[_0x549a71(0x19a)](_0x549a71(0x1aa)+_0x38d60d[_0x549a71(0x1a7)]),_0x1b9b7a[_0x549a71(0x19a)](_0x549a71(0x1a9)),_0x1b9b7a;}function a77_0x574f(){const _0x2bc500=['895908BJfuld','985929LnkrMv','service','params','5001110zlOegc','entries','\x20\x20\x20','description','affectedRecords','4KpERYw','\x20\x20\x20Continue?\x20[y/N]\x20','\x20\x20\x20Affected:\x20','name','code=','id=','code','params=','256662sstcyd','name=','--yes','commandLabel','stringify','⚠\x20\x20High-risk\x20operation:\x20','4032868mrAWxN','push','join','3050640oUlwmf','24OmfXBn','990162LZogTB'];a77_0x574f=function(){return _0x2bc500;};return a77_0x574f();}export function reconstructCommandArgv(_0x31fc3e,_0x3cbb31){const _0x2ff575=a77_0x3cd2,_0x4ac335=[CLI_BIN_NAME,_0x31fc3e[_0x2ff575(0x1a1)],_0x31fc3e['command']];for(const [_0xf6de95,_0x57ecd7]of Object[_0x2ff575(0x1a4)](_0x3cbb31)){if(_0x57ecd7===!![])_0x4ac335[_0x2ff575(0x19a)]('--'+_0xf6de95);else _0x57ecd7!==![]&&_0x57ecd7!==undefined&&_0x57ecd7!==''&&_0x4ac335['push']('--'+_0xf6de95+'\x20'+JSON[_0x2ff575(0x197)](_0x57ecd7));}return _0x4ac335[_0x2ff575(0x19a)](_0x2ff575(0x195)),_0x4ac335[_0x2ff575(0x19b)]('\x20');}function buildConfirmationContext(_0x357780,_0x226a5c,_0x11178a){const _0x25a062=a77_0x3cd2,_0x2d216f=extractAffectedRecords(_0x11178a);return{'commandLabel':_0x226a5c,'description':_0x357780[_0x25a062(0x1a6)],'affectedRecords':_0x2d216f};}function a77_0x3cd2(_0x447bab,_0x3a8a57){_0x447bab=_0x447bab-0x192;const _0x574f1c=a77_0x574f();let _0x3cd2b2=_0x574f1c[_0x447bab];return _0x3cd2b2;}function extractAffectedRecords(_0x5e8392){const _0x3ab69e=a77_0x3cd2,_0x58bd8c=[];if(_0x5e8392[_0x3ab69e(0x1ae)])_0x58bd8c[_0x3ab69e(0x19a)](_0x3ab69e(0x1ac)+_0x5e8392[_0x3ab69e(0x1ae)]);if(_0x5e8392['id'])_0x58bd8c[_0x3ab69e(0x19a)](_0x3ab69e(0x1ad)+_0x5e8392['id']);if(_0x5e8392[_0x3ab69e(0x1ab)])_0x58bd8c['push'](_0x3ab69e(0x194)+_0x5e8392[_0x3ab69e(0x1ab)]);if(_0x5e8392[_0x3ab69e(0x1a2)])_0x58bd8c['push'](_0x3ab69e(0x192)+_0x5e8392['params']);return _0x58bd8c['length']>0x0?_0x58bd8c[_0x3ab69e(0x19b)](',\x20'):undefined;}
1
+ (function(_0x491aa0,_0x2fa871){const _0x1cef42=a78_0x59bc,_0x4750e1=_0x491aa0();while(!![]){try{const _0x350b1d=parseInt(_0x1cef42(0x1af))/0x1*(-parseInt(_0x1cef42(0x19b))/0x2)+parseInt(_0x1cef42(0x1ab))/0x3*(-parseInt(_0x1cef42(0x1b7))/0x4)+-parseInt(_0x1cef42(0x1a7))/0x5+-parseInt(_0x1cef42(0x19e))/0x6*(-parseInt(_0x1cef42(0x1a3))/0x7)+-parseInt(_0x1cef42(0x1ae))/0x8+-parseInt(_0x1cef42(0x1b0))/0x9+-parseInt(_0x1cef42(0x1a1))/0xa*(-parseInt(_0x1cef42(0x1b4))/0xb);if(_0x350b1d===_0x2fa871)break;else _0x4750e1['push'](_0x4750e1['shift']());}catch(_0x34d335){_0x4750e1['push'](_0x4750e1['shift']());}}}(a78_0x3a14,0xb75d3));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x285704,_0x49dc77,_0x1bbade){const _0x30bb9a=a78_0x59bc,_0x21b2a5=buildConfirmationContext(_0x285704,_0x49dc77,_0x1bbade),_0x3663a4=[_0x30bb9a(0x1a8)+_0x21b2a5['commandLabel']];return _0x21b2a5[_0x30bb9a(0x1a2)]&&_0x3663a4[_0x30bb9a(0x19c)](_0x30bb9a(0x1a4)+_0x21b2a5[_0x30bb9a(0x1a2)]),_0x21b2a5[_0x30bb9a(0x1b3)]&&_0x3663a4['push'](_0x30bb9a(0x1b1)+_0x21b2a5[_0x30bb9a(0x1b3)]),_0x3663a4[_0x30bb9a(0x19c)](_0x30bb9a(0x1b5)),_0x3663a4;}export function reconstructCommandArgv(_0x20c0e9,_0x5a31c7){const _0xca9897=a78_0x59bc,_0x310346=[CLI_BIN_NAME,_0x20c0e9['service'],_0x20c0e9[_0xca9897(0x1b8)]];for(const [_0x4d5f13,_0x211824]of Object[_0xca9897(0x1a5)](_0x5a31c7)){if(_0x211824===!![])_0x310346['push']('--'+_0x4d5f13);else _0x211824!==![]&&_0x211824!==undefined&&_0x211824!==''&&_0x310346['push']('--'+_0x4d5f13+'\x20'+JSON[_0xca9897(0x1ac)](_0x211824));}return _0x310346[_0xca9897(0x19c)]('--yes'),_0x310346[_0xca9897(0x1ad)]('\x20');}function buildConfirmationContext(_0x3f9bd3,_0x4d3a27,_0x37138b){const _0x64d7dd=a78_0x59bc,_0x23548b=extractAffectedRecords(_0x37138b);return{'commandLabel':_0x4d3a27,'description':_0x3f9bd3[_0x64d7dd(0x1a2)],'affectedRecords':_0x23548b};}function a78_0x59bc(_0x382b91,_0x581df3){_0x382b91=_0x382b91-0x19b;const _0x3a14c2=a78_0x3a14();let _0x59bce9=_0x3a14c2[_0x382b91];return _0x59bce9;}function extractAffectedRecords(_0x1c1719){const _0x2988a1=a78_0x59bc,_0x5d773c=[];if(_0x1c1719[_0x2988a1(0x1aa)])_0x5d773c['push'](_0x2988a1(0x1a0)+_0x1c1719[_0x2988a1(0x1aa)]);if(_0x1c1719['id'])_0x5d773c['push'](_0x2988a1(0x19d)+_0x1c1719['id']);if(_0x1c1719[_0x2988a1(0x1a9)])_0x5d773c[_0x2988a1(0x19c)](_0x2988a1(0x1b2)+_0x1c1719['name']);if(_0x1c1719['params'])_0x5d773c[_0x2988a1(0x19c)](_0x2988a1(0x1a6)+_0x1c1719[_0x2988a1(0x19f)]);return _0x5d773c[_0x2988a1(0x1b6)]>0x0?_0x5d773c[_0x2988a1(0x1ad)](',\x20'):undefined;}function a78_0x3a14(){const _0x4480b9=['55839pOMvNW','stringify','join','10982064aqytVS','6849qDnfuF','12499848TDVOHt','\x20\x20\x20Affected:\x20','name=','affectedRecords','6182vHzPtE','\x20\x20\x20Continue?\x20[y/N]\x20','length','156MEloLb','command','430pwprCC','push','id=','4458wPNZPM','params','code=','104380iTsVCT','description','889RibXZR','\x20\x20\x20','entries','params=','1246930gSSzwk','⚠\x20\x20High-risk\x20operation:\x20','name','code'];a78_0x3a14=function(){return _0x4480b9;};return a78_0x3a14();}
@@ -1 +1 @@
1
- function a78_0x8372(){const _0x4633ce=['30LvIGmU','3305dZcePq','66818hmyJTU','1821575VsArWB','validation','768UnkZcK','84XAZwJM','trim','10272cfioAw','6TjeqCT','5787wTRLno','stringify','description','209517WkysVR','1QQBZXI','1046532JlyHHD','message','397826PnTQKy','string'];a78_0x8372=function(){return _0x4633ce;};return a78_0x8372();}(function(_0x3d8931,_0x500cbd){const _0x31ad6e=a78_0xde45,_0x16259a=_0x3d8931();while(!![]){try{const _0x5ed63b=parseInt(_0x31ad6e(0x1db))/0x1*(-parseInt(_0x31ad6e(0x1e2))/0x2)+-parseInt(_0x31ad6e(0x1dc))/0x3+-parseInt(_0x31ad6e(0x1e6))/0x4*(parseInt(_0x31ad6e(0x1e1))/0x5)+-parseInt(_0x31ad6e(0x1e9))/0x6*(parseInt(_0x31ad6e(0x1e3))/0x7)+parseInt(_0x31ad6e(0x1e8))/0x8*(-parseInt(_0x31ad6e(0x1ea))/0x9)+parseInt(_0x31ad6e(0x1e0))/0xa*(parseInt(_0x31ad6e(0x1da))/0xb)+parseInt(_0x31ad6e(0x1e5))/0xc*(parseInt(_0x31ad6e(0x1de))/0xd);if(_0x5ed63b===_0x500cbd)break;else _0x16259a['push'](_0x16259a['shift']());}catch(_0x1cf3cd){_0x16259a['push'](_0x16259a['shift']());}}}(a78_0x8372,0x824c2));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x575228){const _0x2250c2=a78_0xde45;if(_0x575228 instanceof LovrabetError)return CliErrors[_0x2250c2(0x1e4)](userFacingLovrabetMessage(_0x575228));return _0x575228;}function a78_0xde45(_0x2a25d2,_0x26e6e4){_0x2a25d2=_0x2a25d2-0x1d8;const _0x837201=a78_0x8372();let _0xde455f=_0x837201[_0x2a25d2];return _0xde455f;}function userFacingLovrabetMessage(_0x3ec07e){const _0x465b41=a78_0xde45,_0x314c99=_0x3ec07e[_0x465b41(0x1d9)];if(_0x314c99!==undefined&&_0x314c99!==null){if(typeof _0x314c99===_0x465b41(0x1df)&&_0x314c99[_0x465b41(0x1e7)]())return _0x314c99[_0x465b41(0x1e7)]();try{return JSON[_0x465b41(0x1d8)](_0x314c99);}catch{}}return _0x3ec07e[_0x465b41(0x1dd)];}
1
+ (function(_0x255bbf,_0x47af8d){const _0x3f1314=a79_0x1692,_0x485fb5=_0x255bbf();while(!![]){try{const _0x21a241=parseInt(_0x3f1314(0x1fa))/0x1*(-parseInt(_0x3f1314(0x1fb))/0x2)+parseInt(_0x3f1314(0x1f5))/0x3+-parseInt(_0x3f1314(0x1f2))/0x4+-parseInt(_0x3f1314(0x1f0))/0x5*(-parseInt(_0x3f1314(0x1f8))/0x6)+parseInt(_0x3f1314(0x1f6))/0x7*(parseInt(_0x3f1314(0x1fc))/0x8)+-parseInt(_0x3f1314(0x1f7))/0x9*(-parseInt(_0x3f1314(0x1f3))/0xa)+parseInt(_0x3f1314(0x1ef))/0xb*(-parseInt(_0x3f1314(0x1f9))/0xc);if(_0x21a241===_0x47af8d)break;else _0x485fb5['push'](_0x485fb5['shift']());}catch(_0x2089ef){_0x485fb5['push'](_0x485fb5['shift']());}}}(a79_0x2174,0x6732e));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a79_0x2174(){const _0x2afd0e=['1472248xUCaUy','description','4573910MGqYws','5TiMgJi','message','1825804HYavzx','1130OrvROl','stringify','2420022JxfoYe','21OOnsGt','60786NDOgoU','3358986hLEpuZ','36OGrZsy','42709bOWuVS','26fHnIha'];a79_0x2174=function(){return _0x2afd0e;};return a79_0x2174();}export function mapUserFacingExecuteError(_0x20bbe7){if(_0x20bbe7 instanceof LovrabetError)return CliErrors['validation'](userFacingLovrabetMessage(_0x20bbe7));return _0x20bbe7;}function a79_0x1692(_0xb5007f,_0x2876f7){_0xb5007f=_0xb5007f-0x1ee;const _0x2174c3=a79_0x2174();let _0x1692f6=_0x2174c3[_0xb5007f];return _0x1692f6;}function userFacingLovrabetMessage(_0x3fd98b){const _0x18017e=a79_0x1692,_0x16762d=_0x3fd98b[_0x18017e(0x1ee)];if(_0x16762d!==undefined&&_0x16762d!==null){if(typeof _0x16762d==='string'&&_0x16762d['trim']())return _0x16762d['trim']();try{return JSON[_0x18017e(0x1f4)](_0x16762d);}catch{}}return _0x3fd98b[_0x18017e(0x1f1)];}
@@ -1 +1 @@
1
- const a79_0x4ff7f5=a79_0x3293;function a79_0x3329(){const _0x1e2da0=['format','map','resolve','verbose','10348074WjkGQU','mergedCli','ACCESS_KEY','defaultPageSize','../core/sdk-client.js','name','production','pretty','string','command','trim','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','authRequired','app','appcode','671890IPHoZE','115992gsdFjh','116744SmtHil','112jiuRuT','Set\x20accessKey\x20in\x20','env','9rGRGKN','service','currentApp','APPCODE','appCodeSource','has','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','rawFlags','6oeUSrS','\x20or\x20pass\x20','error','../core/api-client.js','_notice','requiresAppCode','riskLevel','Unknown\x20app:\x20','filter','appCode','defaultApp','57660vZrLpD','ClientAk','configMissing','pageSize','validation','catch','includes','accessKey','140YdknlB','local-alias','update','.appcode\x20to\x20','56436SoUNMm','Run\x20`','newConfigFileName','nonInteractive','246774cEJvax','schema','doctor','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','../commands/app/remote-source.js','High-risk\x20operation\x20`','object','items','cancelled','defaultVerbose'];a79_0x3329=function(){return _0x1e2da0;};return a79_0x3329();}(function(_0x52b77e,_0xa97f1a){const _0x282bd1=a79_0x3293,_0x4619b8=_0x52b77e();while(!![]){try{const _0x5de716=-parseInt(_0x282bd1(0x1ce))/0x1+-parseInt(_0x282bd1(0x1db))/0x2*(parseInt(_0x282bd1(0x1f6))/0x3)+-parseInt(_0x282bd1(0x1e6))/0x4+-parseInt(_0x282bd1(0x1ee))/0x5*(parseInt(_0x282bd1(0x1f2))/0x6)+parseInt(_0x282bd1(0x1d0))/0x7*(-parseInt(_0x282bd1(0x1cf))/0x8)+-parseInt(_0x282bd1(0x1d3))/0x9*(-parseInt(_0x282bd1(0x1cd))/0xa)+parseInt(_0x282bd1(0x204))/0xb;if(_0x5de716===_0xa97f1a)break;else _0x4619b8['push'](_0x4619b8['shift']());}catch(_0xdd9b76){_0x4619b8['push'](_0x4619b8['shift']());}}}(a79_0x3329,0x20afe));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x379927){const _0x34fb16=a79_0x3293;return void _0x379927,AUTH_MODE[_0x34fb16(0x1e7)];}export function createPipelineEnv(_0x174e2b,_0x1e189a){const _0x2351c1=a79_0x3293,_0xfec0d3=typeof _0x1e189a[_0x2351c1(0x1cb)]===_0x2351c1(0x20c)&&_0x1e189a[_0x2351c1(0x1cb)][_0x2351c1(0x1c8)]();return{'rawFlags':_0x1e189a,'appCode':_0x174e2b['appCode']||productEnv(_0x2351c1(0x1d6))||(_0xfec0d3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x174e2b[_0x2351c1(0x1d7)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1e189a),'defaultFormat':_0x174e2b[_0x2351c1(0x200)],'defaultPageSize':_0x174e2b[_0x2351c1(0x1e9)],'defaultVerbose':_0x174e2b[_0x2351c1(0x203)],'riskLevel':_0x174e2b[_0x2351c1(0x1e1)],'accessKey':_0x174e2b[_0x2351c1(0x1ed)],'env':_0x174e2b[_0x2351c1(0x1d2)],'mergedCli':{'defaultApp':_0x174e2b[_0x2351c1(0x1e5)],'currentApp':_0x174e2b[_0x2351c1(0x1d5)],'appCode':_0x174e2b[_0x2351c1(0x1e4)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a79_0x4ff7f5(0x1e3)](_0x2f8562=>PIPELINE_FLAG_NAMES[a79_0x4ff7f5(0x1d8)](_0x2f8562[a79_0x4ff7f5(0x209)]))[a79_0x4ff7f5(0x201)](({name:_0xe18b37,type:_0x372881,description:_0x197dbb})=>({'name':_0xe18b37,'type':_0x372881,'description':_0x197dbb})),'formatOutput':formatOutput,'getCommandLabel'(_0x359663){const _0x14fbb6=a79_0x4ff7f5;return CLI_BIN_NAME+'\x20'+_0x359663['service']+'\x20'+_0x359663[_0x14fbb6(0x1c7)];},'riskPolicy':{'onViolation'(_0x57ca43){const _0x5897fa=a79_0x4ff7f5;console[_0x5897fa(0x1dd)](_0x57ca43);},'createError'(_0x1e463b){return CliErrors['cancelled'](_0x1e463b);}},async 'prepare'(_0x477e44,_0x22ccd7){const _0x2ee1d7=a79_0x4ff7f5,_0x1258c1=resolveAuthMode(_0x22ccd7);if(_0x477e44['requiresAuth']!==![]){if(!_0x22ccd7[_0x2ee1d7(0x1ed)])throw CliErrors[_0x2ee1d7(0x1ca)](_0x2ee1d7(0x1d1)+PRODUCT_CONFIG[_0x2ee1d7(0x1f4)]+_0x2ee1d7(0x1dc)+productEnvName(_0x2ee1d7(0x206))+'.');const {setActiveAK:_0x379657}=await import(_0x2ee1d7(0x1de));_0x379657(_0x22ccd7['accessKey']);}let _0x22fa33='';if(_0x477e44[_0x2ee1d7(0x1e0)]!==![]){_0x22fa33=_0x22ccd7[_0x2ee1d7(0x1e4)]??'',_0x22fa33=await resolveExplicitAppName(_0x477e44,_0x22ccd7,_0x22fa33);if(!_0x22fa33){await assertSelectedAppNameIsRuntimeAccessible(_0x477e44,_0x22ccd7);throw CliErrors[_0x2ee1d7(0x1e8)](_0x2ee1d7(0x1c9)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x477e44,_0x22ccd7,_0x22fa33);}if(_0x22fa33){const {initSdkClient:_0x1e99eb}=await import(_0x2ee1d7(0x208));_0x1e99eb({'appCode':_0x22fa33,'env':_0x22ccd7[_0x2ee1d7(0x1d2)]??_0x2ee1d7(0x20a),'accessKey':_0x22ccd7[_0x2ee1d7(0x1ed)],'authMode':_0x1258c1});}return{'defaults':{'booleans':{'verbose':_0x22ccd7[_0x2ee1d7(0x1ff)]},'numbers':{'pagesize':_0x22ccd7[_0x2ee1d7(0x207)]}},'extras':{'appCode':_0x22fa33,'cookie':'','apiDomain':_0x22ccd7['apiDomain'],'apiDir':'','accessKey':_0x22ccd7[_0x2ee1d7(0x1ed)],'envName':_0x22ccd7[_0x2ee1d7(0x1d2)],'mergedCli':_0x22ccd7[_0x2ee1d7(0x205)]}};},async 'confirmHighRisk'({def:_0x47e570,env:_0x5954b2,flags:_0x4918e9,commandLabel:_0x3500b1}){const _0x49bd75=a79_0x4ff7f5;if(_0x5954b2['isNonInteractive']){const _0x5c0d96=reconstructCommandArgv(_0x47e570,_0x4918e9);throw CliErrors[_0x49bd75(0x1ea)](_0x49bd75(0x1fb)+_0x3500b1+_0x49bd75(0x1d9)+('\x20\x20To\x20proceed:\x20'+_0x5c0d96));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x47e570,_0x3500b1,_0x4918e9),'createCancelledError':_0x439500=>CliErrors[_0x49bd75(0x1fe)](_0x439500)});},'mapDryRunError'(_0x15a374){return mapUserFacingExecuteError(_0x15a374);},'mapExecuteError'(_0x292d87){return mapUserFacingExecuteError(_0x292d87);},async 'finalize'(){const _0x18405e=a79_0x4ff7f5,{clearActiveAK:_0x5b90ee}=await import(_0x18405e(0x1de));_0x5b90ee();}};async function resolveExplicitAppName(_0x5d2e04,_0x14f973,_0x1023b6){const _0x476a90=a79_0x4ff7f5;if(_0x5d2e04['requiresAppCode']===![])return _0x1023b6;const _0x57093d=typeof _0x14f973[_0x476a90(0x1da)][_0x476a90(0x1cb)]===_0x476a90(0x20c)?_0x14f973[_0x476a90(0x1da)][_0x476a90(0x1cb)][_0x476a90(0x1c8)]():'';if(!_0x57093d)return _0x1023b6;const _0x5288e4=typeof _0x14f973[_0x476a90(0x1da)]['appcode']==='string'&&_0x14f973['rawFlags'][_0x476a90(0x1cc)][_0x476a90(0x1c8)]()||productEnv(_0x476a90(0x1d6));if(_0x5288e4||_0x14f973[_0x476a90(0x1d7)]===_0x476a90(0x1ef))return _0x1023b6;const {getRemoteAppList:_0x484200}=await import(_0x476a90(0x1fa)),_0xf3844e=await _0x484200({'env':_0x14f973[_0x476a90(0x1d2)]??'production','accessKey':_0x14f973[_0x476a90(0x1ed)]}),_0xa4fc2=findAppByName(_0xf3844e['items'],_0x57093d);if(_0xa4fc2&&!isRuntimeAccessibleApp(_0xa4fc2))throw runtimeInaccessibleAppError(_0xa4fc2,'\x22'+_0x57093d+'\x22');const _0x2415c0=_0xa4fc2?.['appCode']?.[_0x476a90(0x1c8)]();if(_0x2415c0)return _0x2415c0;throw CliErrors['validation'](_0x476a90(0x1e2)+_0x57093d,_0x476a90(0x1f3)+CLI_BIN_NAME+_0x476a90(0x1f9)+_0x57093d+_0x476a90(0x1f1)+PRODUCT_CONFIG[_0x476a90(0x1f4)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x227e6d,_0xeae636){const _0x1202cf=a79_0x4ff7f5;if(_0x227e6d[_0x1202cf(0x1e0)]===![]||!_0xeae636[_0x1202cf(0x1ed)])return;const _0xf50de4=(typeof _0xeae636[_0x1202cf(0x1da)][_0x1202cf(0x1cb)]===_0x1202cf(0x20c)&&_0xeae636[_0x1202cf(0x1da)][_0x1202cf(0x1cb)][_0x1202cf(0x1c8)]()?_0xeae636[_0x1202cf(0x1da)][_0x1202cf(0x1cb)]:_0xeae636[_0x1202cf(0x205)]?.[_0x1202cf(0x1d5)]??_0xeae636[_0x1202cf(0x205)]?.[_0x1202cf(0x1e5)])?.['trim']();if(!_0xf50de4)return;const {getRemoteAppList:_0x509bef}=await import(_0x1202cf(0x1fa)),_0x310f1e=await _0x509bef({'env':_0xeae636[_0x1202cf(0x1d2)]??_0x1202cf(0x20a),'accessKey':_0xeae636['accessKey']}),_0x2dad03=findAppByName(_0x310f1e[_0x1202cf(0x1fd)],_0xf50de4);if(_0x2dad03&&!isRuntimeAccessibleApp(_0x2dad03))throw runtimeInaccessibleAppError(_0x2dad03,'\x22'+_0xf50de4+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xa0facf,_0x3afcfd,_0x589747){const _0x23b717=a79_0x4ff7f5;if(_0xa0facf[_0x23b717(0x1e0)]===![]||!_0x3afcfd[_0x23b717(0x1ed)])return;const {getRemoteAppList:_0x5cb992}=await import(_0x23b717(0x1fa)),_0x50bc39=await _0x5cb992({'env':_0x3afcfd[_0x23b717(0x1d2)]??'production','accessKey':_0x3afcfd[_0x23b717(0x1ed)]}),_0x3a9010=findAppByCode(_0x50bc39[_0x23b717(0x1fd)],_0x589747);if(_0x3a9010&&!isRuntimeAccessibleApp(_0x3a9010))throw runtimeInaccessibleAppError(_0x3a9010,'appcode\x20\x22'+_0x589747+'\x22');}export async function runCommand(_0x192e1d,_0x20284f){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x192e1d)?withUpdateNotice(_0x192e1d):_0x192e1d,_0x20284f,runnerAdapter);}function shouldAttachUpdateNotice(_0x3413aa){const _0x318909=a79_0x4ff7f5;return![_0x318909(0x1f0),_0x318909(0x1f7),_0x318909(0x1f8)][_0x318909(0x1ec)](_0x3413aa[_0x318909(0x1d4)]);}function withUpdateNotice(_0x386911){return{..._0x386911,async 'execute'(_0xd8335e){const _0x260d3a=a79_0x3293,_0x270158=shouldResolveUpdateNotice(_0xd8335e)?resolveLatestUpdateNotice()[_0x260d3a(0x1eb)](()=>null):Promise[_0x260d3a(0x202)](null),_0x3628ac=await _0x386911['execute'](_0xd8335e);return attachUpdateNotice(_0x3628ac,await _0x270158);}};}function shouldResolveUpdateNotice(_0x289702){const _0x52265b=a79_0x4ff7f5;return _0x289702['format']===_0x52265b(0x20b)&&!_0x289702[_0x52265b(0x1f5)];}function a79_0x3293(_0x6a1d59,_0x5601b3){_0x6a1d59=_0x6a1d59-0x1c7;const _0x332956=a79_0x3329();let _0x3293a2=_0x332956[_0x6a1d59];return _0x3293a2;}function attachUpdateNotice(_0x7a2ca9,_0x20c5c5){const _0x5e8411=a79_0x4ff7f5;if(!_0x20c5c5||!_0x7a2ca9||typeof _0x7a2ca9!=='object')return _0x7a2ca9;const _0x8fc638=_0x7a2ca9,_0x4e3649=typeof _0x8fc638[_0x5e8411(0x1df)]===_0x5e8411(0x1fc)&&_0x8fc638[_0x5e8411(0x1df)]!==null?_0x8fc638['_notice']:{};return{..._0x8fc638,'_notice':{..._0x4e3649,'update':_0x20c5c5}};}
1
+ const a80_0x3f4318=a80_0x17fa;(function(_0x2c7aa1,_0x1ac13f){const _0x4c620e=a80_0x17fa,_0x25fb30=_0x2c7aa1();while(!![]){try{const _0x5c89cd=-parseInt(_0x4c620e(0xb2))/0x1+-parseInt(_0x4c620e(0xdc))/0x2+parseInt(_0x4c620e(0xcb))/0x3*(-parseInt(_0x4c620e(0xac))/0x4)+parseInt(_0x4c620e(0xa1))/0x5*(-parseInt(_0x4c620e(0xb3))/0x6)+parseInt(_0x4c620e(0xaf))/0x7+parseInt(_0x4c620e(0xc9))/0x8+parseInt(_0x4c620e(0xa7))/0x9;if(_0x5c89cd===_0x1ac13f)break;else _0x25fb30['push'](_0x25fb30['shift']());}catch(_0x1c9794){_0x25fb30['push'](_0x25fb30['shift']());}}}(a80_0x14a9,0x73250));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';function a80_0x17fa(_0x33fba1,_0x53ffd4){_0x33fba1=_0x33fba1-0xa0;const _0x14a97c=a80_0x14a9();let _0x17fa68=_0x14a97c[_0x33fba1];return _0x17fa68;}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(_0x31c5af){const _0x3d6708=a80_0x17fa;return void _0x31c5af,AUTH_MODE[_0x3d6708(0xc5)];}export function createPipelineEnv(_0x4c9502,_0x369de5){const _0x13e5b3=a80_0x17fa,_0xc3fd3b=typeof _0x369de5[_0x13e5b3(0xb8)]===_0x13e5b3(0xab)&&_0x369de5[_0x13e5b3(0xb8)][_0x13e5b3(0xa6)]();return{'rawFlags':_0x369de5,'appCode':_0x4c9502[_0x13e5b3(0xa5)]||productEnv(_0x13e5b3(0xd7))||(_0xc3fd3b?undefined:readAppCodeFromConfig()),'appCodeSource':_0x4c9502['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x369de5),'defaultFormat':_0x4c9502[_0x13e5b3(0xd3)],'defaultPageSize':_0x4c9502[_0x13e5b3(0xb9)],'defaultVerbose':_0x4c9502['verbose'],'riskLevel':_0x4c9502[_0x13e5b3(0xc0)],'accessKey':_0x4c9502[_0x13e5b3(0xd6)],'env':_0x4c9502[_0x13e5b3(0xa8)],'mergedCli':{'defaultApp':_0x4c9502['defaultApp'],'currentApp':_0x4c9502[_0x13e5b3(0xd1)],'appCode':_0x4c9502[_0x13e5b3(0xa5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x44d1bb=>PIPELINE_FLAG_NAMES[a80_0x3f4318(0xc4)](_0x44d1bb['name']))[a80_0x3f4318(0xb4)](({name:_0xa2c47,type:_0x32293c,description:_0x18f937})=>({'name':_0xa2c47,'type':_0x32293c,'description':_0x18f937})),'formatOutput':formatOutput,'getCommandLabel'(_0x393ae9){return CLI_BIN_NAME+'\x20'+_0x393ae9['service']+'\x20'+_0x393ae9['command'];},'riskPolicy':{'onViolation'(_0xefc437){const _0x19d7a6=a80_0x3f4318;console[_0x19d7a6(0xc8)](_0xefc437);},'createError'(_0x1dc976){return CliErrors['cancelled'](_0x1dc976);}},async 'prepare'(_0x1f6fd4,_0x2c38d1){const _0x17fd71=a80_0x3f4318,_0x2b1b06=resolveAuthMode(_0x2c38d1);if(_0x1f6fd4[_0x17fd71(0xb7)]!==![]){if(!_0x2c38d1[_0x17fd71(0xd6)])throw CliErrors['authRequired'](_0x17fd71(0xb5)+PRODUCT_CONFIG['newConfigFileName']+_0x17fd71(0xb0)+productEnvName(_0x17fd71(0xa4))+'.');const {setActiveAK:_0x525a4a}=await import(_0x17fd71(0xae));_0x525a4a(_0x2c38d1[_0x17fd71(0xd6)]);}let _0x38b54e='';if(_0x1f6fd4[_0x17fd71(0xbc)]!==![]){_0x38b54e=_0x2c38d1[_0x17fd71(0xa5)]??'',_0x38b54e=await resolveExplicitAppName(_0x1f6fd4,_0x2c38d1,_0x38b54e);if(!_0x38b54e){await assertSelectedAppNameIsRuntimeAccessible(_0x1f6fd4,_0x2c38d1);throw CliErrors[_0x17fd71(0xda)](_0x17fd71(0xcd)+PRODUCT_CONFIG[_0x17fd71(0xc7)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1f6fd4,_0x2c38d1,_0x38b54e);}if(_0x38b54e){const {initSdkClient:_0x16f38d}=await import('../core/sdk-client.js');_0x16f38d({'appCode':_0x38b54e,'env':_0x2c38d1[_0x17fd71(0xa8)]??'production','accessKey':_0x2c38d1[_0x17fd71(0xd6)],'authMode':_0x2b1b06});}return{'defaults':{'booleans':{'verbose':_0x2c38d1[_0x17fd71(0xa0)]},'numbers':{'pagesize':_0x2c38d1[_0x17fd71(0xbb)]}},'extras':{'appCode':_0x38b54e,'cookie':'','apiDomain':_0x2c38d1['apiDomain'],'apiDir':'','accessKey':_0x2c38d1['accessKey'],'envName':_0x2c38d1[_0x17fd71(0xa8)],'mergedCli':_0x2c38d1[_0x17fd71(0xbf)]}};},async 'confirmHighRisk'({def:_0x292348,env:_0x1001b2,flags:_0x4cfec3,commandLabel:_0x61e664}){const _0xf6edac=a80_0x3f4318;if(_0x1001b2[_0xf6edac(0xc1)]){const _0x11c185=reconstructCommandArgv(_0x292348,_0x4cfec3);throw CliErrors[_0xf6edac(0xdb)](_0xf6edac(0xca)+_0x61e664+_0xf6edac(0xba)+('\x20\x20To\x20proceed:\x20'+_0x11c185));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x292348,_0x61e664,_0x4cfec3),'createCancelledError':_0x3039bf=>CliErrors[_0xf6edac(0xd2)](_0x3039bf)});},'mapDryRunError'(_0x16ab70){return mapUserFacingExecuteError(_0x16ab70);},'mapExecuteError'(_0x50e576){return mapUserFacingExecuteError(_0x50e576);},async 'finalize'(){const _0x43af66=a80_0x3f4318,{clearActiveAK:_0x1878f4}=await import(_0x43af66(0xae));_0x1878f4();}};async function resolveExplicitAppName(_0x4ebf5b,_0x35a550,_0x38e06c){const _0x9c534b=a80_0x3f4318;if(_0x4ebf5b['requiresAppCode']===![])return _0x38e06c;const _0x9e58e0=typeof _0x35a550[_0x9c534b(0xce)][_0x9c534b(0xb8)]===_0x9c534b(0xab)?_0x35a550[_0x9c534b(0xce)][_0x9c534b(0xb8)]['trim']():'';if(!_0x9e58e0)return _0x38e06c;const _0x23495a=typeof _0x35a550['rawFlags'][_0x9c534b(0xaa)]==='string'&&_0x35a550[_0x9c534b(0xce)][_0x9c534b(0xaa)][_0x9c534b(0xa6)]()||productEnv('APPCODE');if(_0x23495a||_0x35a550[_0x9c534b(0xad)]===_0x9c534b(0xd5))return _0x38e06c;const {getRemoteAppList:_0x320b3}=await import('../commands/app/remote-source.js'),_0x1d2ea9=await _0x320b3({'env':_0x35a550['env']??'production','accessKey':_0x35a550[_0x9c534b(0xd6)]}),_0x2228f3=findAppByName(_0x1d2ea9[_0x9c534b(0xd4)],_0x9e58e0);if(_0x2228f3&&!isRuntimeAccessibleApp(_0x2228f3))throw runtimeInaccessibleAppError(_0x2228f3,'\x22'+_0x9e58e0+'\x22');const _0x5de448=_0x2228f3?.[_0x9c534b(0xa5)]?.[_0x9c534b(0xa6)]();if(_0x5de448)return _0x5de448;throw CliErrors[_0x9c534b(0xdb)](_0x9c534b(0xa3)+_0x9e58e0,_0x9c534b(0xbe)+CLI_BIN_NAME+_0x9c534b(0xcf)+_0x9e58e0+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x2cb706,_0x3b292d){const _0x101dd3=a80_0x3f4318;if(_0x2cb706[_0x101dd3(0xbc)]===![]||!_0x3b292d['accessKey'])return;const _0x4b7f4c=(typeof _0x3b292d[_0x101dd3(0xce)][_0x101dd3(0xb8)]===_0x101dd3(0xab)&&_0x3b292d[_0x101dd3(0xce)]['app'][_0x101dd3(0xa6)]()?_0x3b292d['rawFlags'][_0x101dd3(0xb8)]:_0x3b292d['mergedCli']?.[_0x101dd3(0xd1)]??_0x3b292d['mergedCli']?.[_0x101dd3(0xd9)])?.[_0x101dd3(0xa6)]();if(!_0x4b7f4c)return;const {getRemoteAppList:_0x1c9a2e}=await import(_0x101dd3(0xbd)),_0xc7ea2a=await _0x1c9a2e({'env':_0x3b292d[_0x101dd3(0xa8)]??_0x101dd3(0xb1),'accessKey':_0x3b292d[_0x101dd3(0xd6)]}),_0x25cecd=findAppByName(_0xc7ea2a[_0x101dd3(0xd4)],_0x4b7f4c);if(_0x25cecd&&!isRuntimeAccessibleApp(_0x25cecd))throw runtimeInaccessibleAppError(_0x25cecd,'\x22'+_0x4b7f4c+'\x22');}function a80_0x14a9(){const _0x43d585=['appCodeSource','../core/api-client.js','416465tllGNo','\x20or\x20pass\x20','production','357942HdqOui','10404NAbUbG','map','Set\x20accessKey\x20in\x20','service','requiresAuth','app','pageSize','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','defaultPageSize','requiresAppCode','../commands/app/remote-source.js','Run\x20`','mergedCli','riskLevel','isNonInteractive','pretty','object','has','ClientAk','includes','newConfigFileName','error','6762064Urfokc','High-risk\x20operation\x20`','1209smqjJX','execute','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','rawFlags','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','_notice','currentApp','cancelled','format','items','local-alias','accessKey','APPCODE','schema','defaultApp','configMissing','validation','1144084qxKbIV','defaultVerbose','1970YurSkP','appcode\x20\x22','Unknown\x20app:\x20','ACCESS_KEY','appCode','trim','17116488mwudsV','env','catch','appcode','string','7164iuJCGU'];a80_0x14a9=function(){return _0x43d585;};return a80_0x14a9();}async function assertAppCodeIsRuntimeAccessible(_0x75baa,_0x23951e,_0x59d488){const _0x60b513=a80_0x3f4318;if(_0x75baa[_0x60b513(0xbc)]===![]||!_0x23951e['accessKey'])return;const {getRemoteAppList:_0x226ae6}=await import(_0x60b513(0xbd)),_0x19e7e4=await _0x226ae6({'env':_0x23951e['env']??'production','accessKey':_0x23951e['accessKey']}),_0x52b8d0=findAppByCode(_0x19e7e4[_0x60b513(0xd4)],_0x59d488);if(_0x52b8d0&&!isRuntimeAccessibleApp(_0x52b8d0))throw runtimeInaccessibleAppError(_0x52b8d0,_0x60b513(0xa2)+_0x59d488+'\x22');}export async function runCommand(_0x37ae58,_0x2a7f01){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x37ae58)?withUpdateNotice(_0x37ae58):_0x37ae58,_0x2a7f01,runnerAdapter);}function shouldAttachUpdateNotice(_0x55c554){const _0x1c3c40=a80_0x3f4318;return!['update',_0x1c3c40(0xd8),'doctor'][_0x1c3c40(0xc6)](_0x55c554[_0x1c3c40(0xb6)]);}function withUpdateNotice(_0x2e6842){return{..._0x2e6842,async 'execute'(_0x5b1c89){const _0x2b7a5e=a80_0x17fa,_0x30fc81=shouldResolveUpdateNotice(_0x5b1c89)?resolveLatestUpdateNotice()[_0x2b7a5e(0xa9)](()=>null):Promise['resolve'](null),_0x185bfe=await _0x2e6842[_0x2b7a5e(0xcc)](_0x5b1c89);return attachUpdateNotice(_0x185bfe,await _0x30fc81);}};}function shouldResolveUpdateNotice(_0xad1791){const _0x63be8f=a80_0x3f4318;return _0xad1791[_0x63be8f(0xd3)]===_0x63be8f(0xc2)&&!_0xad1791['nonInteractive'];}function attachUpdateNotice(_0xa155d8,_0x404d0f){const _0x5e5ce7=a80_0x3f4318;if(!_0x404d0f||!_0xa155d8||typeof _0xa155d8!==_0x5e5ce7(0xc3))return _0xa155d8;const _0xfc3419=_0xa155d8,_0x37f382=typeof _0xfc3419[_0x5e5ce7(0xd0)]==='object'&&_0xfc3419[_0x5e5ce7(0xd0)]!==null?_0xfc3419['_notice']:{};return{..._0xfc3419,'_notice':{..._0x37f382,'update':_0x404d0f}};}
@@ -1 +1 @@
1
- (function(_0xdfe219,_0x4fdab3){const _0x648c5a=a80_0x3b17,_0x877759=_0xdfe219();while(!![]){try{const _0xbd03de=parseInt(_0x648c5a(0xcd))/0x1+-parseInt(_0x648c5a(0xc9))/0x2+-parseInt(_0x648c5a(0xcf))/0x3+-parseInt(_0x648c5a(0xd0))/0x4+-parseInt(_0x648c5a(0xcb))/0x5*(-parseInt(_0x648c5a(0xd5))/0x6)+-parseInt(_0x648c5a(0xd3))/0x7*(parseInt(_0x648c5a(0xd4))/0x8)+parseInt(_0x648c5a(0xc5))/0x9;if(_0xbd03de===_0x4fdab3)break;else _0x877759['push'](_0x877759['shift']());}catch(_0x159d26){_0x877759['push'](_0x877759['shift']());}}}(a80_0xe920,0xae79c));function a80_0xe920(){const _0xb11c2c=['auth','70fXglHe','458168iEAkhs','24XvlDDP','24115446jLbXxy','../commands/registry.js','map','service','1502312GyxhGl','required','1018855MrlJFH','commands','151216JIinfm','filter','4254021UXOFCs','757076QSqlNx','has'];a80_0xe920=function(){return _0xb11c2c;};return a80_0xe920();}import{buildSchemaPayload as a80_0x5ccc09}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.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 _0x2580e9=a80_0x3b17,{serviceRegistry:_0x2f7ff4,findDefinition:_0x5348d3}=await import(_0x2580e9(0xc6)),_0x37dce2=new Set(_0x2f7ff4[_0x2580e9(0xc7)](_0x210ae9=>_0x210ae9[_0x2580e9(0xc8)])),_0x4872d2=listDynamicServiceEntries()[_0x2580e9(0xce)](_0x48a843=>!_0x37dce2[_0x2580e9(0xd1)](_0x48a843[_0x2580e9(0xc8)])),_0x4556af=a80_0x5ccc09({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x2f7ff4,..._0x4872d2],'buildAllFlags':buildAllFlags,'findDefinition':(_0x5ed357,_0x2c9915)=>_0x5348d3(_0x5ed357,_0x2c9915)??findDynamicServiceDefinition(_0x5ed357,_0x2c9915)});return normalizeSchemaPayload(_0x4556af);}function normalizeSchemaPayload(_0x29addc){const _0x291c67=a80_0x3b17;return{..._0x29addc,'schemaVersion':0x2,'services':_0x29addc['services'][_0x291c67(0xc7)](_0x216b8c=>({..._0x216b8c,'commands':_0x216b8c[_0x291c67(0xcc)]['map'](normalizeSchemaCommand)}))};}function a80_0x3b17(_0x4adb5a,_0x2aed84){_0x4adb5a=_0x4adb5a-0xc5;const _0xe92096=a80_0xe920();let _0x3b179c=_0xe92096[_0x4adb5a];return _0x3b179c;}function normalizeSchemaCommand(_0x19b729){const _0x4e874f=a80_0x3b17,_0x2b1a9a=_0x19b729;return{..._0x19b729,'auth':_0x2b1a9a[_0x4e874f(0xd2)]??(_0x19b729['requiresAuth']?_0x4e874f(0xca):'none')};}
1
+ (function(_0x54771b,_0x467a02){const _0x1a4bae=a81_0x3bbc,_0x55d433=_0x54771b();while(!![]){try{const _0x2bea78=-parseInt(_0x1a4bae(0x152))/0x1+parseInt(_0x1a4bae(0x159))/0x2+parseInt(_0x1a4bae(0x15e))/0x3+parseInt(_0x1a4bae(0x14e))/0x4+-parseInt(_0x1a4bae(0x151))/0x5*(-parseInt(_0x1a4bae(0x14f))/0x6)+parseInt(_0x1a4bae(0x15a))/0x7*(parseInt(_0x1a4bae(0x15d))/0x8)+parseInt(_0x1a4bae(0x15b))/0x9*(-parseInt(_0x1a4bae(0x155))/0xa);if(_0x2bea78===_0x467a02)break;else _0x55d433['push'](_0x55d433['shift']());}catch(_0x312fee){_0x55d433['push'](_0x55d433['shift']());}}}(a81_0x2f13,0xd1c57));function a81_0x3bbc(_0x2d2743,_0x36fc97){_0x2d2743=_0x2d2743-0x14e;const _0x2f13db=a81_0x2f13();let _0x3bbced=_0x2f13db[_0x2d2743];return _0x3bbced;}import{buildSchemaPayload as a81_0x441ff2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a81_0x2f13(){const _0x2f6aeb=['filter','2339196PjBXPL','28GkSyjh','26922528tbRHbO','requiresAuth','3226088oRdIRi','4719735ffIkmG','574128KMYjcU','23682zFyMOa','map','1210fVrydx','1603978hWBApv','required','service','10qQvuJi','auth','has'];a81_0x2f13=function(){return _0x2f6aeb;};return a81_0x2f13();}export async function buildSchemaPayload(){const _0x2d305f=a81_0x3bbc,{serviceRegistry:_0x4eaae0,findDefinition:_0x159d6c}=await import('../commands/registry.js'),_0x4e4446=new Set(_0x4eaae0['map'](_0x4c413a=>_0x4c413a['service'])),_0x3c3a7a=listDynamicServiceEntries()[_0x2d305f(0x158)](_0x31cc15=>!_0x4e4446[_0x2d305f(0x157)](_0x31cc15[_0x2d305f(0x154)])),_0x46e05a=a81_0x441ff2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[..._0x4eaae0,..._0x3c3a7a],'buildAllFlags':buildAllFlags,'findDefinition':(_0x5f8941,_0x535488)=>_0x159d6c(_0x5f8941,_0x535488)??findDynamicServiceDefinition(_0x5f8941,_0x535488)});return normalizeSchemaPayload(_0x46e05a);}function normalizeSchemaPayload(_0x514cf8){const _0x552acf=a81_0x3bbc;return{..._0x514cf8,'schemaVersion':0x2,'services':_0x514cf8['services'][_0x552acf(0x150)](_0x57060c=>({..._0x57060c,'commands':_0x57060c['commands']['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x438879){const _0x1de69a=a81_0x3bbc,_0x4f234d=_0x438879;return{..._0x438879,'auth':_0x4f234d[_0x1de69a(0x156)]??(_0x438879[_0x1de69a(0x15c)]?_0x1de69a(0x153):'none')};}
@@ -1 +1 @@
1
- function a81_0x4df8(){var _0x5ecb5d=['414634gpnpxh','1224381iAtLOh','42070vFoGpL','2324276HvpGrU','551306OerUvN','2791872etDouv','150XdTIPC','1893410MIKenO'];a81_0x4df8=function(){return _0x5ecb5d;};return a81_0x4df8();}function a81_0x55f5(_0x47f1a7,_0x3531a7){_0x47f1a7=_0x47f1a7-0x135;var _0x4df81b=a81_0x4df8();var _0x55f54f=_0x4df81b[_0x47f1a7];return _0x55f54f;}(function(_0x23feb2,_0x4e5dba){var _0x427527=a81_0x55f5,_0x45700e=_0x23feb2();while(!![]){try{var _0x242d4a=-parseInt(_0x427527(0x13b))/0x1+-parseInt(_0x427527(0x137))/0x2+-parseInt(_0x427527(0x138))/0x3+parseInt(_0x427527(0x13a))/0x4+parseInt(_0x427527(0x136))/0x5+-parseInt(_0x427527(0x135))/0x6*(-parseInt(_0x427527(0x139))/0x7)+parseInt(_0x427527(0x13c))/0x8;if(_0x242d4a===_0x4e5dba)break;else _0x45700e['push'](_0x45700e['shift']());}catch(_0x106772){_0x45700e['push'](_0x45700e['shift']());}}}(a81_0x4df8,0x4758b));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a82_0x59c9(_0x4dba42,_0x2f9c23){_0x4dba42=_0x4dba42-0x9e;var _0x108554=a82_0x1085();var _0x59c9f3=_0x108554[_0x4dba42];return _0x59c9f3;}function a82_0x1085(){var _0x45b5bd=['2156712nivRvV','5lauxPf','24627YrSEvH','143pkYFLx','201784kGThcU','118lvGBPY','27810LfXTjj','161zgxnwH','576890KeJIZj','2268204ZCJThB','1755UmCGPJ','1615976gLEEEN'];a82_0x1085=function(){return _0x45b5bd;};return a82_0x1085();}(function(_0x536fef,_0x3d0c84){var _0x21e602=a82_0x59c9,_0x44ff85=_0x536fef();while(!![]){try{var _0xfcebbb=-parseInt(_0x21e602(0xa3))/0x1+-parseInt(_0x21e602(0xa0))/0x2*(parseInt(_0x21e602(0xa9))/0x3)+parseInt(_0x21e602(0xa6))/0x4+parseInt(_0x21e602(0xa8))/0x5*(-parseInt(_0x21e602(0xa7))/0x6)+-parseInt(_0x21e602(0xa2))/0x7*(parseInt(_0x21e602(0x9f))/0x8)+parseInt(_0x21e602(0xa5))/0x9*(-parseInt(_0x21e602(0xa1))/0xa)+parseInt(_0x21e602(0x9e))/0xb*(parseInt(_0x21e602(0xa4))/0xc);if(_0xfcebbb===_0x3d0c84)break;else _0x44ff85['push'](_0x44ff85['shift']());}catch(_0xd6c153){_0x44ff85['push'](_0x44ff85['shift']());}}}(a82_0x1085,0x4daa6));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a82_0x197052=a82_0x124a;(function(_0x146007,_0x26bd00){const _0x3e7bb1=a82_0x124a,_0xccd735=_0x146007();while(!![]){try{const _0x1f4ff0=-parseInt(_0x3e7bb1(0xf8))/0x1*(parseInt(_0x3e7bb1(0xf4))/0x2)+parseInt(_0x3e7bb1(0xf6))/0x3+parseInt(_0x3e7bb1(0xf5))/0x4+-parseInt(_0x3e7bb1(0xfa))/0x5*(parseInt(_0x3e7bb1(0xf9))/0x6)+parseInt(_0x3e7bb1(0xef))/0x7+parseInt(_0x3e7bb1(0xf3))/0x8+parseInt(_0x3e7bb1(0xf7))/0x9;if(_0x1f4ff0===_0x26bd00)break;else _0xccd735['push'](_0xccd735['shift']());}catch(_0x58ea8f){_0xccd735['push'](_0xccd735['shift']());}}}(a82_0x52c2,0x59777));function a82_0x124a(_0x35a83d,_0x2c6573){_0x35a83d=_0x35a83d-0xee;const _0x52c207=a82_0x52c2();let _0x124a24=_0x52c207[_0x35a83d];return _0x124a24;}export const VERSION=a82_0x197052(0xee);export const GIT_TAG=a82_0x197052(0xf0);export const GIT_COMMIT=a82_0x197052(0xf2);function a82_0x52c2(){const _0x314a6d=['6865NZuySX','3807516AIZwfA','5QqlSel','2.1.7-beta.1','349006TcPmoK','v2.1.7-beta.1','2026-07-06T12:06:15.703Z','ef590c7','5592048aboqGz','178LUVBDw','2750128MNzvWZ','205599EXSgnc','963873IPDOBs'];a82_0x52c2=function(){return _0x314a6d;};return a82_0x52c2();}export const BUILD_TIME=a82_0x197052(0xf1);
1
+ function a83_0x1cf3(){const _0x46da1c=['2.1.7-beta.3','25399286AdAFpk','9hosLUb','3405KuAYld','4DLWYOB','10vtAeqH','339352FpRrXa','2026-07-06T13:56:27.709Z','v2.1.7-beta.3','3772865LqzseD','9891084HtVOED','ec33158','3767352rPrmEk','328596CgtOvE','470BKKnZS'];a83_0x1cf3=function(){return _0x46da1c;};return a83_0x1cf3();}const a83_0x5037b1=a83_0xa32b;(function(_0x190206,_0x2f650b){const _0x388e65=a83_0xa32b,_0x38c22a=_0x190206();while(!![]){try{const _0x3c726c=-parseInt(_0x388e65(0x75))/0x1+parseInt(_0x388e65(0x76))/0x2*(parseInt(_0x388e65(0x7a))/0x3)+-parseInt(_0x388e65(0x7b))/0x4*(parseInt(_0x388e65(0x71))/0x5)+parseInt(_0x388e65(0x74))/0x6+-parseInt(_0x388e65(0x72))/0x7+-parseInt(_0x388e65(0x7d))/0x8*(-parseInt(_0x388e65(0x79))/0x9)+parseInt(_0x388e65(0x7c))/0xa*(parseInt(_0x388e65(0x78))/0xb);if(_0x3c726c===_0x2f650b)break;else _0x38c22a['push'](_0x38c22a['shift']());}catch(_0x102be0){_0x38c22a['push'](_0x38c22a['shift']());}}}(a83_0x1cf3,0xb7139));export const VERSION=a83_0x5037b1(0x77);export const GIT_TAG=a83_0x5037b1(0x70);export const GIT_COMMIT=a83_0x5037b1(0x73);function a83_0xa32b(_0x4e9305,_0x2a9cc0){_0x4e9305=_0x4e9305-0x6f;const _0x1cf3bf=a83_0x1cf3();let _0xa32ba9=_0x1cf3bf[_0x4e9305];return _0xa32ba9;}export const BUILD_TIME=a83_0x5037b1(0x6f);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2c8250,_0x434122){const _0x53b584=a83_0x3ffc,_0x12c47a=_0x2c8250();while(!![]){try{const _0x144f43=parseInt(_0x53b584(0x1a8))/0x1+parseInt(_0x53b584(0x1a2))/0x2+-parseInt(_0x53b584(0x1a3))/0x3+parseInt(_0x53b584(0x1a5))/0x4*(parseInt(_0x53b584(0x1a4))/0x5)+parseInt(_0x53b584(0x1ab))/0x6+parseInt(_0x53b584(0x1a7))/0x7*(-parseInt(_0x53b584(0x1ac))/0x8)+-parseInt(_0x53b584(0x1aa))/0x9*(parseInt(_0x53b584(0x1ad))/0xa);if(_0x144f43===_0x434122)break;else _0x12c47a['push'](_0x12c47a['shift']());}catch(_0x5ab8e7){_0x12c47a['push'](_0x12c47a['shift']());}}}(a83_0x350d,0x1ca3a));function a83_0x3ffc(_0x8676f1,_0x3f53a9){_0x8676f1=_0x8676f1-0x1a1;const _0x350d4a=a83_0x350d();let _0x3ffc1f=_0x350d4a[_0x8676f1];return _0x3ffc1f;}function a83_0x350d(){const _0x21da1e=['217iiiwNM','151603LEMjUH','green','745983zXcAOJ','464136aMbDWb','152OAyrYu','20JLOpch','\x20to\x20view\x20available\x20commands.','39406lSZzJr','136545RnAewZ','15485xXiSoj','104RfTAyG','\x20--help'];a83_0x350d=function(){return _0x21da1e;};return a83_0x350d();}import{jsx as a83_0x516731,jsxs as a83_0xcfaea0}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 _0x1d423f=a83_0x3ffc,{exit:_0xc34b4}=useApp();return useEffect(()=>{_0xc34b4();},[_0xc34b4]),a83_0xcfaea0(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a83_0x516731(Box,{'children':a83_0x516731(Text,{'bold':!![],'color':_0x1d423f(0x1a9),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a83_0xcfaea0(Box,{'marginTop':0x1,'children':[a83_0x516731(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a83_0x516731(Text,{'bold':!![],'color':_0x1d423f(0x1a9),'children':CLI_BIN_NAME+_0x1d423f(0x1a6)}),a83_0x516731(Text,{'dimColor':!![],'children':_0x1d423f(0x1a1)})]})]});}
1
+ (function(_0x2b1385,_0x2ccbbb){const _0x21b21e=a84_0x291d,_0x563ca2=_0x2b1385();while(!![]){try{const _0x5e88b6=-parseInt(_0x21b21e(0x11a))/0x1*(parseInt(_0x21b21e(0x116))/0x2)+parseInt(_0x21b21e(0x118))/0x3+-parseInt(_0x21b21e(0x115))/0x4*(-parseInt(_0x21b21e(0x113))/0x5)+parseInt(_0x21b21e(0x11b))/0x6+parseInt(_0x21b21e(0x110))/0x7*(-parseInt(_0x21b21e(0x10e))/0x8)+parseInt(_0x21b21e(0x111))/0x9+-parseInt(_0x21b21e(0x114))/0xa;if(_0x5e88b6===_0x2ccbbb)break;else _0x563ca2['push'](_0x563ca2['shift']());}catch(_0x2ce952){_0x563ca2['push'](_0x563ca2['shift']());}}}(a84_0x2369,0xe63f7));import{jsx as a84_0xbc14b3,jsxs as a84_0x1f15a5}from'react/jsx-runtime';import{useEffect}from'react';function a84_0x2369(){const _0xe302a3=['10hkDBbg','22357860SNQCOz','3543108kLJVuP','6POAWfk','\x20to\x20view\x20available\x20commands.','3923337OkjnFo','\x20--help','557673hqUpRY','3803310AxBsnK','344OwNDhy','\x20\x20Use\x20','107751nYSXmh','16205229ygVJnn','green'];a84_0x2369=function(){return _0xe302a3;};return a84_0x2369();}import{Box,Text,useApp}from'ink';function a84_0x291d(_0xceee9,_0xc50acb){_0xceee9=_0xceee9-0x10e;const _0x236988=a84_0x2369();let _0x291d42=_0x236988[_0xceee9];return _0x291d42;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x11c245=a84_0x291d,{exit:_0x4dad72}=useApp();return useEffect(()=>{_0x4dad72();},[_0x4dad72]),a84_0x1f15a5(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a84_0xbc14b3(Box,{'children':a84_0xbc14b3(Text,{'bold':!![],'color':_0x11c245(0x112),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a84_0x1f15a5(Box,{'marginTop':0x1,'children':[a84_0xbc14b3(Text,{'dimColor':!![],'children':_0x11c245(0x10f)}),a84_0xbc14b3(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x11c245(0x119)}),a84_0xbc14b3(Text,{'dimColor':!![],'children':_0x11c245(0x117)})]})]});}
@@ -1 +1 @@
1
- const a84_0x39f41e=a84_0x2df5;(function(_0x167a4b,_0x3ff5dd){const _0x793293=a84_0x2df5,_0x5de384=_0x167a4b();while(!![]){try{const _0x54162c=parseInt(_0x793293(0x71))/0x1*(-parseInt(_0x793293(0x78))/0x2)+parseInt(_0x793293(0x7a))/0x3*(parseInt(_0x793293(0x76))/0x4)+-parseInt(_0x793293(0x68))/0x5*(parseInt(_0x793293(0x70))/0x6)+-parseInt(_0x793293(0x6b))/0x7+parseInt(_0x793293(0x6e))/0x8+parseInt(_0x793293(0x65))/0x9+-parseInt(_0x793293(0x77))/0xa*(-parseInt(_0x793293(0x6f))/0xb);if(_0x54162c===_0x3ff5dd)break;else _0x5de384['push'](_0x5de384['shift']());}catch(_0x3013d5){_0x5de384['push'](_0x5de384['shift']());}}}(a84_0x1a8d,0xc08ff));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a84_0x51f6b5}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a84_0x51f6b5;function a84_0x1a8d(){const _0x3b1652=['30PBZEEs','22XqGXnC','skipNpxSkillsEnvSuffix','13731XPxnYA','154512BhojZO','stdout','add','1655NnQARN','toString','inherit','1349376UQYVhX','skills','log','559848JOAwWi','11917081XMwrYx','16722COgpxZ','136954XawVlj','status','stderr','npx','trim','64Vqpibv'];a84_0x1a8d=function(){return _0x3b1652;};return a84_0x1a8d();}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a84_0x39f41e(0x79)]);function a84_0x2df5(_0x263b3e,_0x13dc42){_0x263b3e=_0x263b3e-0x65;const _0x1a8dd3=a84_0x1a8d();let _0x2df562=_0x1a8dd3[_0x263b3e];return _0x2df562;}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0xefe1d7,_0x425cd3=LOVRABET_SKILL_SOURCE,_0x4a8fe9){const _0xb5db54=a84_0x39f41e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x39031b=_0x4a8fe9?.['stdio']??_0xb5db54(0x6a),_0x56dd7f=resolveNpmBin(_0xb5db54(0x74)),_0x31976c=[_0xb5db54(0x6c),_0xb5db54(0x67),_0x425cd3,'-g','-y'],_0x769fbb=[_0x56dd7f,..._0x31976c]['join']('\x20');console[_0xb5db54(0x6d)]('*\x20'+_0x769fbb);const _0x11c693=spawnSync(_0x56dd7f,_0x31976c,{'cwd':_0xefe1d7,'stdio':_0x39031b,'env':process.env,'shell':![]});if(_0x11c693[_0xb5db54(0x72)]===0x0)return{'ok':!![],'status':0x0};let _0xc3ca3c='exit\x20'+(_0x11c693['status']??'unknown');if(_0x39031b==='pipe'){const _0x21ca9d=_0x11c693['stderr']?_0x11c693[_0xb5db54(0x73)][_0xb5db54(0x69)]()[_0xb5db54(0x75)]():'',_0x51a123=_0x11c693[_0xb5db54(0x66)]?_0x11c693['stdout'][_0xb5db54(0x69)]()[_0xb5db54(0x75)]():'';if(_0x21ca9d)_0xc3ca3c=_0x21ca9d;else{if(_0x51a123)_0xc3ca3c=_0x51a123;}}return{'ok':![],'status':_0x11c693[_0xb5db54(0x72)]??null,'error':_0xc3ca3c};}
1
+ (function(_0x39eaaa,_0xf1e4d5){const _0x129392=a85_0x1ab6,_0x5806ad=_0x39eaaa();while(!![]){try{const _0x34e6d0=parseInt(_0x129392(0x1ae))/0x1*(-parseInt(_0x129392(0x1b6))/0x2)+-parseInt(_0x129392(0x1b5))/0x3+-parseInt(_0x129392(0x1b0))/0x4+parseInt(_0x129392(0x1b7))/0x5*(parseInt(_0x129392(0x1aa))/0x6)+parseInt(_0x129392(0x1ac))/0x7*(parseInt(_0x129392(0x1b4))/0x8)+parseInt(_0x129392(0x1b1))/0x9*(parseInt(_0x129392(0x1b9))/0xa)+parseInt(_0x129392(0x1af))/0xb;if(_0x34e6d0===_0xf1e4d5)break;else _0x5806ad['push'](_0x5806ad['shift']());}catch(_0x535892){_0x5806ad['push'](_0x5806ad['shift']());}}}(a85_0x1859,0xa8fa7));function a85_0x1859(){const _0x45ab9d=['361917MvvXJS','stdout','inherit','411920oWnJKK','3988764ieKZtj','2307374NppbAx','6849790tRamme','join','110ZcszXD','exit\x20','unknown','npx','pipe','log','stdio','stderr','add','status','6BYuGcN','toString','49NQipxY','trim','1yLwdDV','24672461fbyDbb','4961088xFxRwq'];a85_0x1859=function(){return _0x45ab9d;};return a85_0x1859();}function a85_0x1ab6(_0x4dbc3f,_0x396232){_0x4dbc3f=_0x4dbc3f-0x1a5;const _0x1859f4=a85_0x1859();let _0x1ab6e0=_0x1859f4[_0x4dbc3f];return _0x1ab6e0;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a85_0x4666c9}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a85_0x4666c9;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x4ef886,_0xd3d663=LOVRABET_SKILL_SOURCE,_0x29ebbe){const _0x344cdf=a85_0x1ab6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x189dd0=_0x29ebbe?.[_0x344cdf(0x1a6)]??_0x344cdf(0x1b3),_0x12d3c5=resolveNpmBin(_0x344cdf(0x1bc)),_0x245669=['skills',_0x344cdf(0x1a8),_0xd3d663,'-g','-y'],_0x11b5f2=[_0x12d3c5,..._0x245669][_0x344cdf(0x1b8)]('\x20');console[_0x344cdf(0x1a5)]('*\x20'+_0x11b5f2);const _0x1aeb6d=spawnSync(_0x12d3c5,_0x245669,{'cwd':_0x4ef886,'stdio':_0x189dd0,'env':process.env,'shell':![]});if(_0x1aeb6d[_0x344cdf(0x1a9)]===0x0)return{'ok':!![],'status':0x0};let _0x144a8d=_0x344cdf(0x1ba)+(_0x1aeb6d[_0x344cdf(0x1a9)]??_0x344cdf(0x1bb));if(_0x189dd0===_0x344cdf(0x1bd)){const _0x90bda2=_0x1aeb6d[_0x344cdf(0x1a7)]?_0x1aeb6d[_0x344cdf(0x1a7)][_0x344cdf(0x1ab)]()[_0x344cdf(0x1ad)]():'',_0x322d19=_0x1aeb6d[_0x344cdf(0x1b2)]?_0x1aeb6d['stdout'][_0x344cdf(0x1ab)]()['trim']():'';if(_0x90bda2)_0x144a8d=_0x90bda2;else{if(_0x322d19)_0x144a8d=_0x322d19;}}return{'ok':![],'status':_0x1aeb6d['status']??null,'error':_0x144a8d};}
@@ -1 +1 @@
1
- function a85_0x46e4(_0x291d1c,_0x545a8e){_0x291d1c=_0x291d1c-0x1c2;const _0x5490e4=a85_0x5490();let _0x46e418=_0x5490e4[_0x291d1c];return _0x46e418;}const a85_0x124a74=a85_0x46e4;(function(_0x46b4a9,_0x4ffc3e){const _0x2aaee6=a85_0x46e4,_0x5d25d5=_0x46b4a9();while(!![]){try{const _0x5c07c9=-parseInt(_0x2aaee6(0x1d2))/0x1*(parseInt(_0x2aaee6(0x1d4))/0x2)+-parseInt(_0x2aaee6(0x1cf))/0x3+-parseInt(_0x2aaee6(0x1c8))/0x4+-parseInt(_0x2aaee6(0x1d1))/0x5+parseInt(_0x2aaee6(0x1ca))/0x6+-parseInt(_0x2aaee6(0x1c2))/0x7*(-parseInt(_0x2aaee6(0x1c5))/0x8)+parseInt(_0x2aaee6(0x1c7))/0x9;if(_0x5c07c9===_0x4ffc3e)break;else _0x5d25d5['push'](_0x5d25d5['shift']());}catch(_0xf2c50c){_0x5d25d5['push'](_0x5d25d5['shift']());}}}(a85_0x5490,0x772f2));export const METADATA_FILE=a85_0x124a74(0x1c9);export const SKILL_FILE=a85_0x124a74(0x1c6);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a85_0x124a74(0x1c4)]);function a85_0x5490(){const _0x5495de=['build','.svn','11445JoeOtP','coverage','.DS_Store','376UoQIcL','SKILL.md','17515359TflDsW','885732iDiAmb','lovrabet.skill.json','1838124yfwsxl','.next','dist','.turbo','.hg','2284704xuQGON','node_modules','2832735XwlKoJ','2nAVVsV','.cache','291624YaPCEz'];a85_0x5490=function(){return _0x5495de;};return a85_0x5490();}export const IGNORED_DIR_NAMES=new Set(['.git',a85_0x124a74(0x1ce),a85_0x124a74(0x1d6),a85_0x124a74(0x1d0),a85_0x124a74(0x1cb),a85_0x124a74(0x1cc),a85_0x124a74(0x1d5),a85_0x124a74(0x1c3),a85_0x124a74(0x1cd),a85_0x124a74(0x1d3)]);
1
+ function a86_0x44bc(_0x50e53e,_0x473f55){_0x50e53e=_0x50e53e-0x11c;const _0xfc2b42=a86_0xfc2b();let _0x44bc8a=_0xfc2b42[_0x50e53e];return _0x44bc8a;}const a86_0x5724dd=a86_0x44bc;(function(_0x4c7611,_0x4dd46e){const _0xc31ef=a86_0x44bc,_0x10adea=_0x4c7611();while(!![]){try{const _0x3f397e=parseInt(_0xc31ef(0x122))/0x1*(-parseInt(_0xc31ef(0x11d))/0x2)+-parseInt(_0xc31ef(0x127))/0x3+-parseInt(_0xc31ef(0x12b))/0x4*(-parseInt(_0xc31ef(0x121))/0x5)+parseInt(_0xc31ef(0x126))/0x6*(parseInt(_0xc31ef(0x125))/0x7)+-parseInt(_0xc31ef(0x120))/0x8+-parseInt(_0xc31ef(0x128))/0x9+parseInt(_0xc31ef(0x11f))/0xa;if(_0x3f397e===_0x4dd46e)break;else _0x10adea['push'](_0x10adea['shift']());}catch(_0x4611a3){_0x10adea['push'](_0x10adea['shift']());}}}(a86_0xfc2b,0x4ff64));export const METADATA_FILE=a86_0x5724dd(0x123);export const SKILL_FILE=a86_0x5724dd(0x12d);function a86_0xfc2b(){const _0x144187=['.next','7821770PlatCS','2880168Bcjlrh','346095vftpUb','64133rwPEZe','lovrabet.skill.json','.hg','60410knmdbW','72VbHmzr','359250TjPMsd','751752luFuhx','.git','.DS_Store','4FzUlYj','.svn','SKILL.md','.cache','2dyfOFm'];a86_0xfc2b=function(){return _0x144187;};return a86_0xfc2b();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a86_0x5724dd(0x12a)]);export const IGNORED_DIR_NAMES=new Set([a86_0x5724dd(0x129),a86_0x5724dd(0x124),a86_0x5724dd(0x12c),'node_modules',a86_0x5724dd(0x11e),'dist','build','coverage','.turbo',a86_0x5724dd(0x11c)]);
@@ -1 +1 @@
1
- (function(_0x29838d,_0x5e084a){const _0x1e0f95=a86_0x17df,_0x936575=_0x29838d();while(!![]){try{const _0x2f479d=parseInt(_0x1e0f95(0x9c))/0x1*(-parseInt(_0x1e0f95(0x9b))/0x2)+-parseInt(_0x1e0f95(0xa0))/0x3*(-parseInt(_0x1e0f95(0x99))/0x4)+parseInt(_0x1e0f95(0x98))/0x5*(parseInt(_0x1e0f95(0xa3))/0x6)+parseInt(_0x1e0f95(0xa8))/0x7*(parseInt(_0x1e0f95(0x9a))/0x8)+parseInt(_0x1e0f95(0xa5))/0x9+parseInt(_0x1e0f95(0xa1))/0xa+-parseInt(_0x1e0f95(0x9f))/0xb;if(_0x2f479d===_0x5e084a)break;else _0x936575['push'](_0x936575['shift']());}catch(_0x2c80f0){_0x936575['push'](_0x936575['shift']());}}}(a86_0x96d0,0xdd8cb));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(_0x25be48,_0x10d28f){const _0x3f8b97=a86_0x17df,_0x60ba29=normalizeSkillRelativePath(_0x10d28f),_0x102c0a=realOrResolved(_0x25be48),_0x287d49=resolve(_0x102c0a,..._0x60ba29[_0x3f8b97(0xa7)]('/'));if(!isPathInside(_0x287d49,_0x102c0a))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x10d28f);return ensureNoSymlinkInManagedPath(_0x102c0a,_0x60ba29),_0x287d49;}export function ensureNoSymlinkInManagedPath(_0x4ceeac,_0x38f064){const _0x14cc81=a86_0x17df;let _0x561d12=_0x4ceeac;for(const _0x1c0117 of _0x38f064[_0x14cc81(0xa7)]('/')){_0x561d12=resolve(_0x561d12,_0x1c0117);const _0x44857d=lstatIfPresent(_0x561d12);if(_0x44857d?.[_0x14cc81(0xa9)]())throw CliErrors[_0x14cc81(0x9d)](_0x14cc81(0xa4)+_0x38f064);}}export function isDanglingSymlink(_0x4898aa){const _0x4988a5=a86_0x17df;try{return lstatSync(_0x4898aa)[_0x4988a5(0xa9)]();}catch{return![];}}function a86_0x17df(_0x4571e9,_0x2c0175){_0x4571e9=_0x4571e9-0x98;const _0x96d097=a86_0x96d0();let _0x17dfdf=_0x96d097[_0x4571e9];return _0x17dfdf;}export function resolveSymlinkTarget(_0x591d77){const _0x1f86af=readlinkSync(_0x591d77);return isAbsolute(_0x1f86af)?_0x1f86af:resolve(dirname(_0x591d77),_0x1f86af);}export function isPathInside(_0x215c69,_0x545597){const _0x4ef55d=a86_0x17df,_0x27db35=_0x215c69['endsWith'](sep)?_0x215c69:''+_0x215c69+sep,_0x593863=_0x545597[_0x4ef55d(0xa6)](sep)?_0x545597:''+_0x545597+sep;return _0x215c69===_0x545597||_0x27db35[_0x4ef55d(0x9e)](_0x593863);}export function realOrResolved(_0x14d9cf){try{return realpathSync(_0x14d9cf);}catch{return resolve(_0x14d9cf);}}export function lstatIfPresent(_0x2250a8){try{return lstatSync(_0x2250a8);}catch{return undefined;}}function a86_0x96d0(){const _0xcb2a43=['startsWith','17896318NySpEk','3tYZkXx','11737560orkJRC','stringify','53166ICtQuU','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','75645OBmtCB','endsWith','split','1029175tDudcp','isSymbolicLink','485EULSWm','2288028lBmpUX','72JLqKEn','26xVvqXq','107885VTPXnn','validation'];a86_0x96d0=function(){return _0xcb2a43;};return a86_0x96d0();}export function writeTextAtomic(_0xff33bd,_0x2c2ba3,_0x24bb96){writeBytesAtomic(_0xff33bd,Buffer['from'](_0x2c2ba3,'utf8'),_0x24bb96);}export function writeBytesAtomic(_0x4d3224,_0x5d8eaf,_0x578d79){const _0x3649ca=_0x4d3224+'.tmp';try{writeFileSync(_0x3649ca,_0x5d8eaf,{'mode':_0x578d79}),renameSync(_0x3649ca,_0x4d3224);}catch(_0x4a9aea){try{rmSync(_0x3649ca,{'force':!![]});}catch{}throw _0x4a9aea;}}export function writeJsonAtomic(_0x4456ee,_0xc64e92){const _0x74f831=a86_0x17df;writeTextAtomic(_0x4456ee,JSON[_0x74f831(0xa2)](_0xc64e92,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x29fa77,_0x1b2490){const _0x3587d7=a87_0x5f3f,_0x50b69a=_0x29fa77();while(!![]){try{const _0x421888=-parseInt(_0x3587d7(0x146))/0x1*(parseInt(_0x3587d7(0x147))/0x2)+parseInt(_0x3587d7(0x154))/0x3*(parseInt(_0x3587d7(0x148))/0x4)+parseInt(_0x3587d7(0x155))/0x5+parseInt(_0x3587d7(0x149))/0x6+parseInt(_0x3587d7(0x14d))/0x7+parseInt(_0x3587d7(0x153))/0x8*(-parseInt(_0x3587d7(0x151))/0x9)+parseInt(_0x3587d7(0x14b))/0xa*(-parseInt(_0x3587d7(0x143))/0xb);if(_0x421888===_0x1b2490)break;else _0x50b69a['push'](_0x50b69a['shift']());}catch(_0x399dbb){_0x50b69a['push'](_0x50b69a['shift']());}}}(a87_0xcb30,0xe07fc));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(_0xf95d67,_0x140c54){const _0x277923=a87_0x5f3f,_0x1a7f90=normalizeSkillRelativePath(_0x140c54),_0x37d741=realOrResolved(_0xf95d67),_0x4dde1a=resolve(_0x37d741,..._0x1a7f90[_0x277923(0x14e)]('/'));if(!isPathInside(_0x4dde1a,_0x37d741))throw CliErrors[_0x277923(0x144)](_0x277923(0x152)+_0x140c54);return ensureNoSymlinkInManagedPath(_0x37d741,_0x1a7f90),_0x4dde1a;}export function ensureNoSymlinkInManagedPath(_0x5647ae,_0x1bcf02){const _0xf8afd1=a87_0x5f3f;let _0x270f25=_0x5647ae;for(const _0x122400 of _0x1bcf02[_0xf8afd1(0x14e)]('/')){_0x270f25=resolve(_0x270f25,_0x122400);const _0x47810d=lstatIfPresent(_0x270f25);if(_0x47810d?.[_0xf8afd1(0x150)]())throw CliErrors['validation'](_0xf8afd1(0x145)+_0x1bcf02);}}export function isDanglingSymlink(_0x1349c4){const _0x19fe01=a87_0x5f3f;try{return lstatSync(_0x1349c4)[_0x19fe01(0x150)]();}catch{return![];}}function a87_0x5f3f(_0x1b7f3d,_0x39f687){_0x1b7f3d=_0x1b7f3d-0x141;const _0xcb30e5=a87_0xcb30();let _0x5f3f03=_0xcb30e5[_0x1b7f3d];return _0x5f3f03;}export function resolveSymlinkTarget(_0x1cb9ac){const _0x21445f=readlinkSync(_0x1cb9ac);return isAbsolute(_0x21445f)?_0x21445f:resolve(dirname(_0x1cb9ac),_0x21445f);}export function isPathInside(_0x5eb3b3,_0x31d6b9){const _0x2de066=a87_0x5f3f,_0x2ad6da=_0x5eb3b3[_0x2de066(0x14a)](sep)?_0x5eb3b3:''+_0x5eb3b3+sep,_0x62dcfe=_0x31d6b9[_0x2de066(0x14a)](sep)?_0x31d6b9:''+_0x31d6b9+sep;return _0x5eb3b3===_0x31d6b9||_0x2ad6da[_0x2de066(0x14f)](_0x62dcfe);}function a87_0xcb30(){const _0x26ebbc=['4realnc','8586318exiiOd','endsWith','40wxinhF','utf8','7651637CAqaOr','split','startsWith','isSymbolicLink','3420567xSpvVS','Unsafe\x20Skill\x20file\x20path:\x20','16gEZBEp','3257043YqldLZ','2846675quDJrY','stringify','.tmp','4627271FPqaiU','validation','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','62834HfMiwb','26WSrARz'];a87_0xcb30=function(){return _0x26ebbc;};return a87_0xcb30();}export function realOrResolved(_0x397713){try{return realpathSync(_0x397713);}catch{return resolve(_0x397713);}}export function lstatIfPresent(_0x3e5580){try{return lstatSync(_0x3e5580);}catch{return undefined;}}export function writeTextAtomic(_0xd61f29,_0x1149c6,_0x446bb7){const _0x37479a=a87_0x5f3f;writeBytesAtomic(_0xd61f29,Buffer['from'](_0x1149c6,_0x37479a(0x14c)),_0x446bb7);}export function writeBytesAtomic(_0xf9c55f,_0x48e29c,_0xa302cc){const _0x43b807=a87_0x5f3f,_0x8d7ea9=_0xf9c55f+_0x43b807(0x142);try{writeFileSync(_0x8d7ea9,_0x48e29c,{'mode':_0xa302cc}),renameSync(_0x8d7ea9,_0xf9c55f);}catch(_0x3a8c9a){try{rmSync(_0x8d7ea9,{'force':!![]});}catch{}throw _0x3a8c9a;}}export function writeJsonAtomic(_0x4ce539,_0x29f622){const _0x4091c4=a87_0x5f3f;writeTextAtomic(_0x4ce539,JSON[_0x4091c4(0x141)](_0x29f622,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x1ea228,_0x5c2fa0){const _0x19c114=a87_0x2f4e,_0x23829f=_0x1ea228();while(!![]){try{const _0x1cac39=-parseInt(_0x19c114(0x68))/0x1*(-parseInt(_0x19c114(0x6d))/0x2)+parseInt(_0x19c114(0x6b))/0x3*(parseInt(_0x19c114(0x66))/0x4)+parseInt(_0x19c114(0x76))/0x5*(-parseInt(_0x19c114(0x75))/0x6)+parseInt(_0x19c114(0x6e))/0x7*(parseInt(_0x19c114(0x71))/0x8)+-parseInt(_0x19c114(0x73))/0x9*(-parseInt(_0x19c114(0x74))/0xa)+-parseInt(_0x19c114(0x65))/0xb+-parseInt(_0x19c114(0x70))/0xc;if(_0x1cac39===_0x5c2fa0)break;else _0x23829f['push'](_0x23829f['shift']());}catch(_0x43c7c2){_0x23829f['push'](_0x23829f['shift']());}}}(a87_0x28e1,0x5bc27));function a87_0x2f4e(_0xa589,_0x542ed5){_0xa589=_0xa589-0x65;const _0x28e160=a87_0x28e1();let _0x2f4e35=_0x28e160[_0xa589];return _0x2f4e35;}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x2bd578){const _0x176cb9=a87_0x2f4e;return createHash(_0x176cb9(0x69))[_0x176cb9(0x67)](_0x2bd578)[_0x176cb9(0x6f)](_0x176cb9(0x6a));}export function fileHash(_0x599f8e){return bufferSha256(fileContent(_0x599f8e));}function a87_0x28e1(){const _0x5d6a16=['5199uwHsxq','path','46178FqPNmx','17234NbKdGS','digest','6284976boFccE','24ZUWDOj','size','918vCdovq','62450BBcwmK','90sGtxOF','48645yXFoOC','5673712sLdcge','944fLSdVS','update','22VOJzrq','sha256','hex'];a87_0x28e1=function(){return _0x5d6a16;};return a87_0x28e1();}export function bufferSha256(_0x224b6c){const _0x15b7cd=a87_0x2f4e;return createHash(_0x15b7cd(0x69))[_0x15b7cd(0x67)](_0x224b6c)['digest'](_0x15b7cd(0x6a));}export function fileTreeHash(_0x49a69e){const _0x1e1ad9=a87_0x2f4e,_0x3f233b=createHash('sha256');for(const _0x74a4f8 of normalizeManifestFiles(_0x49a69e)){_0x3f233b['update'](_0x74a4f8[_0x1e1ad9(0x6c)]),_0x3f233b[_0x1e1ad9(0x67)]('\x00'),_0x3f233b[_0x1e1ad9(0x67)](_0x74a4f8[_0x1e1ad9(0x69)]),_0x3f233b[_0x1e1ad9(0x67)]('\x00'),_0x3f233b[_0x1e1ad9(0x67)](String(_0x74a4f8[_0x1e1ad9(0x72)])),_0x3f233b[_0x1e1ad9(0x67)]('\x00');}return _0x3f233b[_0x1e1ad9(0x6f)](_0x1e1ad9(0x6a));}
1
+ (function(_0x3aa297,_0x3465b7){const _0x1d9834=a88_0x2561,_0x22bca9=_0x3aa297();while(!![]){try{const _0x28afa2=-parseInt(_0x1d9834(0x8c))/0x1+-parseInt(_0x1d9834(0x8a))/0x2*(parseInt(_0x1d9834(0x85))/0x3)+-parseInt(_0x1d9834(0x86))/0x4+parseInt(_0x1d9834(0x84))/0x5+-parseInt(_0x1d9834(0x8e))/0x6+-parseInt(_0x1d9834(0x82))/0x7*(-parseInt(_0x1d9834(0x88))/0x8)+parseInt(_0x1d9834(0x8b))/0x9;if(_0x28afa2===_0x3465b7)break;else _0x22bca9['push'](_0x22bca9['shift']());}catch(_0x431d61){_0x22bca9['push'](_0x22bca9['shift']());}}}(a88_0x402d,0x2e8a5));function a88_0x402d(){const _0x542ff8=['sha256','update','21yQiRkk','hex','126175QCMNeT','5175ILmRmW','197768lRpODH','size','954608OJWhSM','path','126rLJPvn','2291301uhDqPt','125929agHcYE','digest','978762LriUNH'];a88_0x402d=function(){return _0x542ff8;};return a88_0x402d();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x44f5ee){const _0x2c8534=a88_0x2561;return createHash(_0x2c8534(0x8f))[_0x2c8534(0x90)](_0x44f5ee)[_0x2c8534(0x8d)](_0x2c8534(0x83));}function a88_0x2561(_0x2dec0d,_0x20dccb){_0x2dec0d=_0x2dec0d-0x82;const _0x402d35=a88_0x402d();let _0x256181=_0x402d35[_0x2dec0d];return _0x256181;}export function fileHash(_0x91ea58){return bufferSha256(fileContent(_0x91ea58));}export function bufferSha256(_0x228215){const _0x5009e2=a88_0x2561;return createHash('sha256')[_0x5009e2(0x90)](_0x228215)['digest'](_0x5009e2(0x83));}export function fileTreeHash(_0x14a5f9){const _0x316fea=a88_0x2561,_0x120cda=createHash(_0x316fea(0x8f));for(const _0x2b82c0 of normalizeManifestFiles(_0x14a5f9)){_0x120cda[_0x316fea(0x90)](_0x2b82c0[_0x316fea(0x89)]),_0x120cda['update']('\x00'),_0x120cda[_0x316fea(0x90)](_0x2b82c0[_0x316fea(0x8f)]),_0x120cda[_0x316fea(0x90)]('\x00'),_0x120cda[_0x316fea(0x90)](String(_0x2b82c0[_0x316fea(0x87)])),_0x120cda[_0x316fea(0x90)]('\x00');}return _0x120cda[_0x316fea(0x8d)]('hex');}
@@ -1 +1 @@
1
- (function(_0x32ffb8,_0x33cac6){const _0x21022d=a88_0x1216,_0x30319f=_0x32ffb8();while(!![]){try{const _0x442e13=-parseInt(_0x21022d(0x13b))/0x1*(parseInt(_0x21022d(0x15f))/0x2)+parseInt(_0x21022d(0x154))/0x3*(-parseInt(_0x21022d(0x142))/0x4)+parseInt(_0x21022d(0x14a))/0x5+-parseInt(_0x21022d(0x15a))/0x6+parseInt(_0x21022d(0x156))/0x7*(-parseInt(_0x21022d(0x147))/0x8)+-parseInt(_0x21022d(0x134))/0x9+-parseInt(_0x21022d(0x155))/0xa*(-parseInt(_0x21022d(0x12f))/0xb);if(_0x442e13===_0x33cac6)break;else _0x30319f['push'](_0x30319f['shift']());}catch(_0x4bb6f0){_0x30319f['push'](_0x30319f['shift']());}}}(a88_0x5191,0xbd13b));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a88_0x5e3954 from'fs-extra';import{CliErrors}from'../../errors.js';function a88_0x1216(_0x1fc20f,_0x3f3a46){_0x1fc20f=_0x1fc20f-0x12e;const _0x51913e=a88_0x5191();let _0x1216da=_0x51913e[_0x1fc20f];return _0x1216da;}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}=a88_0x5e3954;export function linkEffectiveRuntimeSkills(_0x1df4e1,_0x2caae4,_0xa72a67={}){const _0x47c72c=a88_0x1216,_0x26a23c=new Map();for(const _0x4e56c9 of _0x1df4e1){const _0x3fcb0b=_0x4e56c9[_0x47c72c(0x14e)][_0x47c72c(0x145)];if(!_0x3fcb0b)continue;const _0x527597=_0x26a23c['get'](_0x3fcb0b);(!_0x527597||_0x4e56c9[_0x47c72c(0x15b)]===_0x47c72c(0x160))&&_0x26a23c[_0x47c72c(0x158)](_0x3fcb0b,_0x4e56c9);}const _0x5aff57=[],_0x499c98=resolveSkillSyncPaths(_0xa72a67);for(const _0x3bf9f2 of _0x26a23c['values']()){const _0x510d3e=requireSkillCode(_0x3bf9f2[_0x47c72c(0x14e)]),_0x155683=_0x2caae4+'--'+_0x510d3e;for(const _0x5f285b of[_0x499c98[_0x47c72c(0x161)],_0x499c98[_0x47c72c(0x13e)]]){_0x5aff57['push'](ensureManagedSymlink(resolve(_0x5f285b,_0x155683),_0x3bf9f2[_0x47c72c(0x138)],_0x499c98[_0x47c72c(0x132)]));}}return _0x5aff57;}function a88_0x5191(){const _0x3e989b=['trim','removed','push','accessKey','1790814JnQdOd','30wODwBQ','36470YzXGvF','map','set','not-managed-symlink','5746518znDBCe','scope','skipped','activeSkillCodes','isSymbolicLink','2wcRMud','personal','agentsSkillsDir','name','16020763MhAEOm','slice','builtin','managedRoot','filter','11717199tHBemX','isDirectory','contentHash','length','dir','pruneSkillCodes','created','1309319tPROzV','unchanged','scopes','claudeSkillsDir','company','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','4PXrYrR','metadata-mismatch','env','skillCode','validation','784dIDOew','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','appCode','5408305IcZPHb','has','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','updated','skill','external-symlink'];a88_0x5191=function(){return _0x3e989b;};return a88_0x5191();}export function pruneStaleRuntimeSkillLinks(_0x495cfe,_0x2bcc34,_0x544b49={},_0x18e918){const _0x7f4037=a88_0x1216,_0x4db33e=resolveSkillSyncPaths(_0x544b49),_0xdbe0c3=new Set([..._0x2bcc34][_0x7f4037(0x157)](_0x3a2704=>_0x3a2704[_0x7f4037(0x150)]())[_0x7f4037(0x133)](Boolean)),_0x2a5b5c=_0x18e918?new Set([..._0x18e918][_0x7f4037(0x157)](_0x51f640=>_0x51f640['trim']())['filter'](Boolean)):undefined,_0x3c8d2c=[];for(const _0x4b380f of[_0x4db33e['agentsSkillsDir'],_0x4db33e[_0x7f4037(0x13e)]]){for(const _0x4dba40 of managedAppSkillLinkPaths(_0x4b380f,_0x495cfe)){const _0x33caad=basename(_0x4dba40)[_0x7f4037(0x130)]((_0x495cfe+'--')[_0x7f4037(0x137)]);if(_0x2a5b5c&&!_0x2a5b5c[_0x7f4037(0x14b)](_0x33caad))continue;if(_0xdbe0c3[_0x7f4037(0x14b)](_0x33caad))continue;_0x3c8d2c[_0x7f4037(0x152)](removeManagedSkillLink(_0x4dba40,_0x4db33e[_0x7f4037(0x132)]));}}return _0x3c8d2c;}export function pruneStaleRuntimeSkillCache(_0x22a613,_0x188e16={}){const _0x5cbec5=a88_0x1216,_0x2a3661=new Set([..._0x22a613[_0x5cbec5(0x15d)]][_0x5cbec5(0x157)](_0x3c5172=>_0x3c5172['trim']())['filter'](Boolean)),_0xd154b4=_0x22a613[_0x5cbec5(0x139)]?new Set([..._0x22a613['pruneSkillCodes']][_0x5cbec5(0x157)](_0x4d8039=>_0x4d8039[_0x5cbec5(0x150)]())[_0x5cbec5(0x133)](Boolean)):undefined,_0x22e534=_0x22a613[_0x5cbec5(0x13d)]??['personal',_0x5cbec5(0x13f)],_0x385748=resolve(getRuntimeSkillCacheRoot(_0x22a613[_0x5cbec5(0x144)],_0x22a613[_0x5cbec5(0x153)],_0x188e16),safePathSegment(_0x22a613['appCode'],_0x5cbec5(0x149))),_0x3ba9ab=[];for(const _0x164701 of _0x22e534){const _0x51d10c=resolve(_0x385748,_0x164701);if(!existsSync(_0x51d10c))continue;for(const _0x11da25 of readdirSync(_0x51d10c,{'withFileTypes':!![]})){if(!_0x11da25['isDirectory']())continue;const _0x22a1cd=_0x11da25[_0x5cbec5(0x12e)];if(_0xd154b4&&!_0xd154b4[_0x5cbec5(0x14b)](_0x22a1cd))continue;if(_0x2a3661[_0x5cbec5(0x14b)](_0x22a1cd))continue;const _0x42daaa=resolve(_0x51d10c,_0x22a1cd),_0x57f917=readMetadataIfPresent(resolve(_0x42daaa,METADATA_FILE));if(_0x57f917?.[_0x5cbec5(0x149)]!==_0x22a613[_0x5cbec5(0x149)]||_0x57f917[_0x5cbec5(0x15b)]!==_0x164701||_0x57f917['skillCode']!==_0x22a1cd){_0x3ba9ab[_0x5cbec5(0x152)]({'path':_0x42daaa,'action':_0x5cbec5(0x15c),'reason':_0x5cbec5(0x143)});continue;}removeSync(_0x42daaa),_0x3ba9ab['push']({'path':_0x42daaa,'action':'removed'});}}return _0x3ba9ab;}export function linkGlobalRuntimeSkills(_0x4f507a,_0xe7815f={}){const _0x44650c=a88_0x1216,_0x404987=resolveSkillSyncPaths(_0xe7815f),_0x4b100e=[];for(const _0x4f71b5 of _0x4f507a){if(_0x4f71b5[_0x44650c(0x15b)]!==_0x44650c(0x131))throw CliErrors[_0x44650c(0x146)](_0x44650c(0x141)+_0x4f71b5['scope']);const _0x2efaf6=requireSkillCode(_0x4f71b5['skill']),_0x124967=copyManagedSkillDirectory(_0x4f71b5[_0x44650c(0x138)],resolve(_0x404987[_0x44650c(0x161)],_0x2efaf6));_0x4b100e[_0x44650c(0x152)]({..._0x124967,'contentHash':_0x4f71b5['contentHash']});}return _0x4b100e;}function ensureManagedSymlink(_0x23311a,_0x43385a,_0xdadc39){const _0x3cea9a=a88_0x1216;mkdirSync(dirname(_0x23311a),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x23311a)||isDanglingSymlink(_0x23311a)){const _0x1c461a=lstatSync(_0x23311a);if(!_0x1c461a[_0x3cea9a(0x15e)]())throw CliErrors[_0x3cea9a(0x146)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x23311a);const _0x297a42=resolveSymlinkTarget(_0x23311a);if(!isPathInside(realOrResolved(_0x297a42),realOrResolved(_0xdadc39)))throw CliErrors[_0x3cea9a(0x146)](_0x3cea9a(0x140)+_0x23311a);if(realOrResolved(_0x297a42)===realOrResolved(_0x43385a))return{'path':_0x23311a,'target':_0x43385a,'action':_0x3cea9a(0x13c)};return unlinkSync(_0x23311a),symlinkSync(_0x43385a,_0x23311a,'dir'),{'path':_0x23311a,'target':_0x43385a,'action':_0x3cea9a(0x14d)};}return symlinkSync(_0x43385a,_0x23311a,_0x3cea9a(0x138)),{'path':_0x23311a,'target':_0x43385a,'action':_0x3cea9a(0x13a)};}function managedAppSkillLinkPaths(_0x567153,_0x218f82){const _0x33f750=a88_0x1216;if(!existsSync(_0x567153))return[];const _0x299afa=_0x218f82+'--';return readdirSync(_0x567153,{'withFileTypes':!![]})[_0x33f750(0x133)](_0x14a485=>_0x14a485[_0x33f750(0x12e)]['startsWith'](_0x299afa))[_0x33f750(0x157)](_0x9a91e1=>resolve(_0x567153,_0x9a91e1[_0x33f750(0x12e)]));}function removeManagedSkillLink(_0x3905d3,_0x4ac29b){const _0x4a0694=a88_0x1216,_0x5c95db=lstatIfPresent(_0x3905d3);if(!_0x5c95db?.[_0x4a0694(0x15e)]())return{'path':_0x3905d3,'action':'skipped','reason':_0x4a0694(0x159)};const _0x471346=resolveSymlinkTarget(_0x3905d3);if(!isPathInside(realOrResolved(_0x471346),realOrResolved(_0x4ac29b)))return{'path':_0x3905d3,'action':_0x4a0694(0x15c),'reason':_0x4a0694(0x14f)};return unlinkSync(_0x3905d3),{'path':_0x3905d3,'action':_0x4a0694(0x151)};}export function copyManagedSkillDirectory(_0x5f043a,_0x56eb47){const _0x1b81de=a88_0x1216,_0x643e36=resolve(_0x56eb47,METADATA_FILE),_0x257efe=existsSync(_0x56eb47);if(_0x257efe){const _0x5e7c11=lstatSync(_0x56eb47);if(_0x5e7c11[_0x1b81de(0x15e)]())throw CliErrors[_0x1b81de(0x146)](_0x1b81de(0x148)+_0x56eb47);if(!_0x5e7c11[_0x1b81de(0x135)]())throw CliErrors[_0x1b81de(0x146)](_0x1b81de(0x14c)+_0x56eb47);const _0x5d77e1=readMetadataIfPresent(_0x643e36);if(_0x5d77e1?.[_0x1b81de(0x15b)]!==_0x1b81de(0x131))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x56eb47);}ensureDirSync(dirname(_0x56eb47));const _0x5aa592=_0x257efe?readMetadataIfPresent(_0x643e36)?.[_0x1b81de(0x136)]:undefined,_0x1eb149=readMetadataIfPresent(resolve(_0x5f043a,METADATA_FILE))?.[_0x1b81de(0x136)];return _0x257efe&&removeSync(_0x56eb47),copySkillDirectory(_0x5f043a,_0x56eb47),{'path':_0x56eb47,'target':_0x5f043a,'action':!_0x257efe?_0x1b81de(0x13a):_0x5aa592===_0x1eb149?_0x1b81de(0x13c):_0x1b81de(0x14d)};}function copySkillDirectory(_0x41d2b6,_0x5196b7){copySync(_0x41d2b6,_0x5196b7,{'dereference':![],'overwrite':!![],'filter'(_0x169ab7){const _0x3c8b8d=a88_0x1216;if(lstatSync(_0x169ab7)[_0x3c8b8d(0x15e)]())throw CliErrors[_0x3c8b8d(0x146)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x169ab7);return!![];}});}
1
+ (function(_0x371c48,_0x446efa){const _0x2cbafa=a89_0x25b4,_0x1e5633=_0x371c48();while(!![]){try{const _0x2f1ade=-parseInt(_0x2cbafa(0x16c))/0x1+-parseInt(_0x2cbafa(0x166))/0x2*(-parseInt(_0x2cbafa(0x177))/0x3)+parseInt(_0x2cbafa(0x15f))/0x4+-parseInt(_0x2cbafa(0x172))/0x5+-parseInt(_0x2cbafa(0x179))/0x6+-parseInt(_0x2cbafa(0x15c))/0x7*(-parseInt(_0x2cbafa(0x16b))/0x8)+parseInt(_0x2cbafa(0x157))/0x9;if(_0x2f1ade===_0x446efa)break;else _0x1e5633['push'](_0x1e5633['shift']());}catch(_0xfccab4){_0x1e5633['push'](_0x1e5633['shift']());}}}(a89_0x2529,0x38191));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a89_0x12087e 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}=a89_0x12087e;export function linkEffectiveRuntimeSkills(_0x4d20b2,_0x812d4b,_0x163108={}){const _0x2ea1aa=a89_0x25b4,_0x4e8c9b=new Map();for(const _0x578037 of _0x4d20b2){const _0x155de3=_0x578037[_0x2ea1aa(0x17c)][_0x2ea1aa(0x16e)];if(!_0x155de3)continue;const _0x44e278=_0x4e8c9b[_0x2ea1aa(0x175)](_0x155de3);(!_0x44e278||_0x578037[_0x2ea1aa(0x171)]===_0x2ea1aa(0x15d))&&_0x4e8c9b['set'](_0x155de3,_0x578037);}const _0x22c8a7=[],_0xa10656=resolveSkillSyncPaths(_0x163108);for(const _0x33ccd7 of _0x4e8c9b[_0x2ea1aa(0x17d)]()){const _0x407d07=requireSkillCode(_0x33ccd7[_0x2ea1aa(0x17c)]),_0x27f082=_0x812d4b+'--'+_0x407d07;for(const _0x30c529 of[_0xa10656['agentsSkillsDir'],_0xa10656[_0x2ea1aa(0x17a)]]){_0x22c8a7[_0x2ea1aa(0x161)](ensureManagedSymlink(resolve(_0x30c529,_0x27f082),_0x33ccd7[_0x2ea1aa(0x17b)],_0xa10656['managedRoot']));}}return _0x22c8a7;}export function pruneStaleRuntimeSkillLinks(_0x492a86,_0x44e23c,_0x1695e0={},_0x16b45f){const _0x47ff26=a89_0x25b4,_0x17de1e=resolveSkillSyncPaths(_0x1695e0),_0x5e197f=new Set([..._0x44e23c][_0x47ff26(0x152)](_0x3f9cc9=>_0x3f9cc9[_0x47ff26(0x17f)]())[_0x47ff26(0x168)](Boolean)),_0x2d86f0=_0x16b45f?new Set([..._0x16b45f][_0x47ff26(0x152)](_0x100931=>_0x100931[_0x47ff26(0x17f)]())[_0x47ff26(0x168)](Boolean)):undefined,_0x5e14a0=[];for(const _0x515ac0 of[_0x17de1e[_0x47ff26(0x16d)],_0x17de1e[_0x47ff26(0x17a)]]){for(const _0x164fbe of managedAppSkillLinkPaths(_0x515ac0,_0x492a86)){const _0x490823=basename(_0x164fbe)[_0x47ff26(0x174)]((_0x492a86+'--')[_0x47ff26(0x16f)]);if(_0x2d86f0&&!_0x2d86f0[_0x47ff26(0x155)](_0x490823))continue;if(_0x5e197f[_0x47ff26(0x155)](_0x490823))continue;_0x5e14a0['push'](removeManagedSkillLink(_0x164fbe,_0x17de1e['managedRoot']));}}return _0x5e14a0;}export function pruneStaleRuntimeSkillCache(_0x5396b5,_0x377ed4={}){const _0x16a238=a89_0x25b4,_0x1e47c6=new Set([..._0x5396b5['activeSkillCodes']][_0x16a238(0x152)](_0xb3c0ed=>_0xb3c0ed['trim']())[_0x16a238(0x168)](Boolean)),_0x57a97c=_0x5396b5[_0x16a238(0x160)]?new Set([..._0x5396b5['pruneSkillCodes']][_0x16a238(0x152)](_0x578317=>_0x578317[_0x16a238(0x17f)]())[_0x16a238(0x168)](Boolean)):undefined,_0xffef74=_0x5396b5[_0x16a238(0x159)]??[_0x16a238(0x15d),'company'],_0x4a527b=resolve(getRuntimeSkillCacheRoot(_0x5396b5[_0x16a238(0x169)],_0x5396b5[_0x16a238(0x180)],_0x377ed4),safePathSegment(_0x5396b5[_0x16a238(0x164)],_0x16a238(0x164))),_0x576444=[];for(const _0x43de40 of _0xffef74){const _0x265ce0=resolve(_0x4a527b,_0x43de40);if(!existsSync(_0x265ce0))continue;for(const _0x552032 of readdirSync(_0x265ce0,{'withFileTypes':!![]})){if(!_0x552032[_0x16a238(0x163)]())continue;const _0x52e20c=_0x552032['name'];if(_0x57a97c&&!_0x57a97c[_0x16a238(0x155)](_0x52e20c))continue;if(_0x1e47c6[_0x16a238(0x155)](_0x52e20c))continue;const _0x70a14d=resolve(_0x265ce0,_0x52e20c),_0x1e00e2=readMetadataIfPresent(resolve(_0x70a14d,METADATA_FILE));if(_0x1e00e2?.[_0x16a238(0x164)]!==_0x5396b5[_0x16a238(0x164)]||_0x1e00e2[_0x16a238(0x171)]!==_0x43de40||_0x1e00e2[_0x16a238(0x16e)]!==_0x52e20c){_0x576444[_0x16a238(0x161)]({'path':_0x70a14d,'action':_0x16a238(0x170),'reason':_0x16a238(0x15a)});continue;}removeSync(_0x70a14d),_0x576444[_0x16a238(0x161)]({'path':_0x70a14d,'action':_0x16a238(0x176)});}}return _0x576444;}function a89_0x25b4(_0x1f3a4b,_0x39740d){_0x1f3a4b=_0x1f3a4b-0x152;const _0x25296e=a89_0x2529();let _0x25b402=_0x25296e[_0x1f3a4b];return _0x25b402;}export function linkGlobalRuntimeSkills(_0x29d19c,_0x3c0faf={}){const _0x253fd2=a89_0x25b4,_0x51ffce=resolveSkillSyncPaths(_0x3c0faf),_0x190f7b=[];for(const _0x329ab7 of _0x29d19c){if(_0x329ab7[_0x253fd2(0x171)]!==_0x253fd2(0x165))throw CliErrors[_0x253fd2(0x158)](_0x253fd2(0x153)+_0x329ab7[_0x253fd2(0x171)]);const _0x3e848d=requireSkillCode(_0x329ab7[_0x253fd2(0x17c)]),_0x33aa6b=copyManagedSkillDirectory(_0x329ab7[_0x253fd2(0x17b)],resolve(_0x51ffce['agentsSkillsDir'],_0x3e848d));_0x190f7b[_0x253fd2(0x161)]({..._0x33aa6b,'contentHash':_0x329ab7[_0x253fd2(0x154)]});}return _0x190f7b;}function ensureManagedSymlink(_0x2333b4,_0x2f8c46,_0x46bf34){const _0x4ae973=a89_0x25b4;mkdirSync(dirname(_0x2333b4),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x2333b4)||isDanglingSymlink(_0x2333b4)){const _0x3185ba=lstatSync(_0x2333b4);if(!_0x3185ba[_0x4ae973(0x162)]())throw CliErrors[_0x4ae973(0x158)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x2333b4);const _0x72106=resolveSymlinkTarget(_0x2333b4);if(!isPathInside(realOrResolved(_0x72106),realOrResolved(_0x46bf34)))throw CliErrors[_0x4ae973(0x158)](_0x4ae973(0x16a)+_0x2333b4);if(realOrResolved(_0x72106)===realOrResolved(_0x2f8c46))return{'path':_0x2333b4,'target':_0x2f8c46,'action':_0x4ae973(0x173)};return unlinkSync(_0x2333b4),symlinkSync(_0x2f8c46,_0x2333b4,_0x4ae973(0x17b)),{'path':_0x2333b4,'target':_0x2f8c46,'action':'updated'};}return symlinkSync(_0x2f8c46,_0x2333b4,_0x4ae973(0x17b)),{'path':_0x2333b4,'target':_0x2f8c46,'action':'created'};}function managedAppSkillLinkPaths(_0x3aedab,_0x23c19f){const _0x4b7ac1=a89_0x25b4;if(!existsSync(_0x3aedab))return[];const _0x7b8d70=_0x23c19f+'--';return readdirSync(_0x3aedab,{'withFileTypes':!![]})[_0x4b7ac1(0x168)](_0x4c417b=>_0x4c417b[_0x4b7ac1(0x178)][_0x4b7ac1(0x167)](_0x7b8d70))['map'](_0x2ba6c6=>resolve(_0x3aedab,_0x2ba6c6[_0x4b7ac1(0x178)]));}function a89_0x2529(){const _0x523810=['has','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','2904534eLDVWY','validation','scopes','metadata-mismatch','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','72177ilbpjn','personal','not-managed-symlink','39496ztMojH','pruneSkillCodes','push','isSymbolicLink','isDirectory','appCode','builtin','12kOqopX','startsWith','filter','env','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','88skyENv','35923AAxfRt','agentsSkillsDir','skillCode','length','skipped','scope','674760gCZOrL','unchanged','slice','get','removed','127635DpYPdr','name','1803834yQBqzV','claudeSkillsDir','dir','skill','values','external-symlink','trim','accessKey','map','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','contentHash'];a89_0x2529=function(){return _0x523810;};return a89_0x2529();}function removeManagedSkillLink(_0x53260d,_0x190db4){const _0x17b2fc=a89_0x25b4,_0x33c7ba=lstatIfPresent(_0x53260d);if(!_0x33c7ba?.['isSymbolicLink']())return{'path':_0x53260d,'action':'skipped','reason':_0x17b2fc(0x15e)};const _0x56f87d=resolveSymlinkTarget(_0x53260d);if(!isPathInside(realOrResolved(_0x56f87d),realOrResolved(_0x190db4)))return{'path':_0x53260d,'action':_0x17b2fc(0x170),'reason':_0x17b2fc(0x17e)};return unlinkSync(_0x53260d),{'path':_0x53260d,'action':_0x17b2fc(0x176)};}export function copyManagedSkillDirectory(_0x3636e5,_0xbf3c46){const _0x45e3ef=a89_0x25b4,_0x4509e9=resolve(_0xbf3c46,METADATA_FILE),_0x4c921c=existsSync(_0xbf3c46);if(_0x4c921c){const _0x194222=lstatSync(_0xbf3c46);if(_0x194222[_0x45e3ef(0x162)]())throw CliErrors[_0x45e3ef(0x158)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0xbf3c46);if(!_0x194222[_0x45e3ef(0x163)]())throw CliErrors[_0x45e3ef(0x158)](_0x45e3ef(0x156)+_0xbf3c46);const _0x32b882=readMetadataIfPresent(_0x4509e9);if(_0x32b882?.[_0x45e3ef(0x171)]!==_0x45e3ef(0x165))throw CliErrors[_0x45e3ef(0x158)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0xbf3c46);}ensureDirSync(dirname(_0xbf3c46));const _0x1066c7=_0x4c921c?readMetadataIfPresent(_0x4509e9)?.[_0x45e3ef(0x154)]:undefined,_0x21df1a=readMetadataIfPresent(resolve(_0x3636e5,METADATA_FILE))?.[_0x45e3ef(0x154)];return _0x4c921c&&removeSync(_0xbf3c46),copySkillDirectory(_0x3636e5,_0xbf3c46),{'path':_0xbf3c46,'target':_0x3636e5,'action':!_0x4c921c?'created':_0x1066c7===_0x21df1a?_0x45e3ef(0x173):'updated'};}function copySkillDirectory(_0x23d7dd,_0x5264d9){copySync(_0x23d7dd,_0x5264d9,{'dereference':![],'overwrite':!![],'filter'(_0x5ce6de){const _0x519d81=a89_0x25b4;if(lstatSync(_0x5ce6de)[_0x519d81(0x162)]())throw CliErrors['validation'](_0x519d81(0x15b)+_0x5ce6de);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x410d52,_0x4d3bf5){const _0x53cf07=a89_0x6152,_0x52b545=_0x410d52();while(!![]){try{const _0x5c3a51=parseInt(_0x53cf07(0x17a))/0x1*(-parseInt(_0x53cf07(0x16b))/0x2)+-parseInt(_0x53cf07(0x16d))/0x3+-parseInt(_0x53cf07(0x17d))/0x4*(-parseInt(_0x53cf07(0x18f))/0x5)+parseInt(_0x53cf07(0x182))/0x6+parseInt(_0x53cf07(0x178))/0x7*(-parseInt(_0x53cf07(0x185))/0x8)+-parseInt(_0x53cf07(0x17c))/0x9+-parseInt(_0x53cf07(0x17e))/0xa*(-parseInt(_0x53cf07(0x183))/0xb);if(_0x5c3a51===_0x4d3bf5)break;else _0x52b545['push'](_0x52b545['shift']());}catch(_0x29bcd7){_0x52b545['push'](_0x52b545['shift']());}}}(a89_0x2357,0xc46b3));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';function a89_0x6152(_0x200b8d,_0x2ad27a){_0x200b8d=_0x200b8d-0x16b;const _0x23578a=a89_0x2357();let _0x615202=_0x23578a[_0x200b8d];return _0x615202;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x580e6f,_0x1e70b2={}){const _0x2ff793=a89_0x6152,_0x5361de=safePathSegment(_0x580e6f['appCode'],_0x2ff793(0x176)),_0x314f3b=normalizeRuntimeSkillScopes(_0x580e6f[_0x2ff793(0x175)]),_0x57b889=new Set(_0x314f3b),_0x4b61b5=_0x580e6f['code']?.[_0x2ff793(0x17b)](),_0x4fa96c=new Map(),_0x749ff2=resolve(getRuntimeSkillCacheRoot(_0x580e6f['env'],_0x580e6f['accessKey'],_0x1e70b2),_0x5361de);for(const _0x42d278 of _0x314f3b){for(const _0x33640d of localSkillEntryDirs(resolve(_0x749ff2,_0x42d278))){collectLocalRuntimeSkill(_0x4fa96c,_0x33640d,{'appCode':_0x5361de,'scopes':_0x57b889,'code':_0x4b61b5,'source':'cache'});}}const _0x513e68=resolveSkillSyncPaths(_0x1e70b2);for(const _0x20681d of[_0x513e68['agentsSkillsDir'],_0x513e68[_0x2ff793(0x177)]]){for(const _0x2116f3 of localSkillLinkCandidates(_0x20681d,_0x5361de,_0x57b889)){collectLocalRuntimeSkill(_0x4fa96c,_0x2116f3,{'appCode':_0x5361de,'scopes':_0x57b889,'code':_0x4b61b5,'source':_0x2ff793(0x18c),'linkedPath':_0x2116f3});}}return Array[_0x2ff793(0x186)](_0x4fa96c['values']())[_0x2ff793(0x16e)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x14f442){const _0x3190e1=a89_0x6152;if(!existsSync(_0x14f442))return[];return readdirSync(_0x14f442,{'withFileTypes':!![]})[_0x3190e1(0x184)](_0xed5113=>_0xed5113[_0x3190e1(0x18b)]()||_0xed5113[_0x3190e1(0x17f)]())[_0x3190e1(0x16c)](_0x597a2a=>resolve(_0x14f442,_0x597a2a['name']));}function a89_0x2357(){const _0x4d4152=['linkedPaths','cacheDir','set','local','scopes','appCode','claudeSkillsDir','579068xnzCUj','source','23iMETYs','trim','1640817ovZwUH','972008tSEmDn','420OqveLY','isSymbolicLink','scope','metadataPath','7021026nSLkLY','514547XYlniq','filter','88vmNSMA','from','builtin','code','dir','tags','isDirectory','link','localeCompare','cache','15NJtBoz','get','linkedPath','106016RsrSIj','map','2243457wMiwbb','sort','name','skillCode'];a89_0x2357=function(){return _0x4d4152;};return a89_0x2357();}function localSkillLinkCandidates(_0x4ae99d,_0x811bee,_0x2f4882){const _0x3945aa=a89_0x6152;if(!existsSync(_0x4ae99d))return[];const _0x3ac49b=_0x811bee+'--';return readdirSync(_0x4ae99d,{'withFileTypes':!![]})['filter'](_0x25afcb=>_0x25afcb[_0x3945aa(0x18b)]()||_0x25afcb[_0x3945aa(0x17f)]())[_0x3945aa(0x184)](_0x28c018=>_0x28c018[_0x3945aa(0x16f)]['startsWith'](_0x3ac49b)||_0x2f4882['has'](_0x3945aa(0x187)))[_0x3945aa(0x16c)](_0x1a4f29=>resolve(_0x4ae99d,_0x1a4f29[_0x3945aa(0x16f)]));}function collectLocalRuntimeSkill(_0x4dd161,_0x1ff50e,_0x3ed139){const _0x597195=a89_0x6152,_0x32a34c=resolve(_0x1ff50e,METADATA_FILE),_0x20835e=readMetadataIfPresent(_0x32a34c);if(!_0x20835e)return;if(_0x20835e[_0x597195(0x176)]!==_0x3ed139[_0x597195(0x176)])return;if(!isRuntimeSkillScope(_0x20835e['scope'])||!_0x3ed139[_0x597195(0x175)]['has'](_0x20835e[_0x597195(0x180)]))return;const _0x4d1b28=_0x20835e['skillCode']?.[_0x597195(0x17b)]();if(!_0x4d1b28)return;if(_0x3ed139[_0x597195(0x188)]&&_0x4d1b28!==_0x3ed139['code'])return;const _0x5166e6=_0x20835e[_0x597195(0x180)]+':'+_0x4d1b28,_0x545960=_0x3ed139[_0x597195(0x191)]?[_0x3ed139['linkedPath']]:[],_0x36b20d=_0x4dd161[_0x597195(0x190)](_0x5166e6);if(_0x36b20d){_0x3ed139[_0x597195(0x179)]===_0x597195(0x18e)&&(_0x36b20d[_0x597195(0x189)]=_0x1ff50e,_0x36b20d[_0x597195(0x172)]=_0x1ff50e,_0x36b20d['skillMdPath']=resolve(_0x1ff50e,SKILL_FILE),_0x36b20d[_0x597195(0x181)]=_0x32a34c);for(const _0x4af8cc of _0x545960){!_0x36b20d[_0x597195(0x171)]['includes'](_0x4af8cc)&&_0x36b20d['linkedPaths']['push'](_0x4af8cc);}_0x36b20d['linkedPaths'][_0x597195(0x16e)]();return;}_0x4dd161[_0x597195(0x173)](_0x5166e6,{..._0x20835e,'tags':Array['isArray'](_0x20835e[_0x597195(0x18a)])?_0x20835e[_0x597195(0x18a)]:[],'scope':_0x20835e[_0x597195(0x180)],'source':_0x597195(0x174),'dir':_0x1ff50e,'cacheDir':_0x3ed139[_0x597195(0x179)]===_0x597195(0x18e)?_0x1ff50e:undefined,'skillMdPath':resolve(_0x1ff50e,SKILL_FILE),'metadataPath':_0x32a34c,'linkedPaths':_0x545960});}function compareLocalRuntimeSkills(_0x135cab,_0x580f4e){const _0x303da4=a89_0x6152,_0xea72c7={'personal':0x0,'company':0x1,'builtin':0x2};return _0xea72c7[_0x135cab['scope']]-_0xea72c7[_0x580f4e['scope']]||_0x135cab[_0x303da4(0x170)][_0x303da4(0x18d)](_0x580f4e[_0x303da4(0x170)])||_0x135cab['dir']['localeCompare'](_0x580f4e[_0x303da4(0x189)]);}
1
+ (function(_0x46693a,_0x4d919c){const _0xfc11a9=a90_0x1f6a,_0x827d80=_0x46693a();while(!![]){try{const _0x1aaa23=parseInt(_0xfc11a9(0x80))/0x1+parseInt(_0xfc11a9(0x98))/0x2+-parseInt(_0xfc11a9(0x74))/0x3*(-parseInt(_0xfc11a9(0x88))/0x4)+-parseInt(_0xfc11a9(0x89))/0x5+parseInt(_0xfc11a9(0x91))/0x6+parseInt(_0xfc11a9(0x7b))/0x7+-parseInt(_0xfc11a9(0x8e))/0x8;if(_0x1aaa23===_0x4d919c)break;else _0x827d80['push'](_0x827d80['shift']());}catch(_0x37a5d3){_0x827d80['push'](_0x827d80['shift']());}}}(a90_0x65db,0xbfed7));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';function a90_0x65db(){const _0x36c9d0=['source','4rYgLhv','779465IUjakK','localeCompare','scopes','includes','linkedPath','15772640PCCBIN','skillCode','tags','967008crqpiu','startsWith','get','isDirectory','sort','filter','scope','303800hykxkT','cache','3455448HQHuqH','isSymbolicLink','appCode','map','code','trim','push','4256840TVxfWI','has','name','claudeSkillsDir','cacheDir','840604mybZIZ','linkedPaths','metadataPath','link','dir','values','isArray'];a90_0x65db=function(){return _0x36c9d0;};return a90_0x65db();}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0xe68bae,_0x21f9f1={}){const _0x3849c5=a90_0x1f6a,_0x37835c=safePathSegment(_0xe68bae[_0x3849c5(0x76)],_0x3849c5(0x76)),_0x4737f0=normalizeRuntimeSkillScopes(_0xe68bae[_0x3849c5(0x8b)]),_0x865a76=new Set(_0x4737f0),_0x400a56=_0xe68bae[_0x3849c5(0x78)]?.['trim'](),_0x6b4ae5=new Map(),_0x109c90=resolve(getRuntimeSkillCacheRoot(_0xe68bae['env'],_0xe68bae['accessKey'],_0x21f9f1),_0x37835c);for(const _0xe1aacb of _0x4737f0){for(const _0x10a6b9 of localSkillEntryDirs(resolve(_0x109c90,_0xe1aacb))){collectLocalRuntimeSkill(_0x6b4ae5,_0x10a6b9,{'appCode':_0x37835c,'scopes':_0x865a76,'code':_0x400a56,'source':_0x3849c5(0x99)});}}const _0x3403b9=resolveSkillSyncPaths(_0x21f9f1);for(const _0x94087c of[_0x3403b9['agentsSkillsDir'],_0x3403b9[_0x3849c5(0x7e)]]){for(const _0x2ca7ac of localSkillLinkCandidates(_0x94087c,_0x37835c,_0x865a76)){collectLocalRuntimeSkill(_0x6b4ae5,_0x2ca7ac,{'appCode':_0x37835c,'scopes':_0x865a76,'code':_0x400a56,'source':_0x3849c5(0x83),'linkedPath':_0x2ca7ac});}}return Array['from'](_0x6b4ae5[_0x3849c5(0x85)]())[_0x3849c5(0x95)](compareLocalRuntimeSkills);}function a90_0x1f6a(_0x1841eb,_0x4d633e){_0x1841eb=_0x1841eb-0x74;const _0x65db68=a90_0x65db();let _0x1f6ade=_0x65db68[_0x1841eb];return _0x1f6ade;}function localSkillEntryDirs(_0x114187){const _0x3a332b=a90_0x1f6a;if(!existsSync(_0x114187))return[];return readdirSync(_0x114187,{'withFileTypes':!![]})[_0x3a332b(0x96)](_0x5722b9=>_0x5722b9[_0x3a332b(0x94)]()||_0x5722b9[_0x3a332b(0x75)]())[_0x3a332b(0x77)](_0xf376c4=>resolve(_0x114187,_0xf376c4[_0x3a332b(0x7d)]));}function localSkillLinkCandidates(_0x476fe0,_0xa3af2,_0xf1532d){const _0x2ca9ad=a90_0x1f6a;if(!existsSync(_0x476fe0))return[];const _0x9494d5=_0xa3af2+'--';return readdirSync(_0x476fe0,{'withFileTypes':!![]})[_0x2ca9ad(0x96)](_0x486ba3=>_0x486ba3[_0x2ca9ad(0x94)]()||_0x486ba3['isSymbolicLink']())[_0x2ca9ad(0x96)](_0x1d1bb2=>_0x1d1bb2[_0x2ca9ad(0x7d)][_0x2ca9ad(0x92)](_0x9494d5)||_0xf1532d[_0x2ca9ad(0x7c)]('builtin'))[_0x2ca9ad(0x77)](_0x10e6a0=>resolve(_0x476fe0,_0x10e6a0['name']));}function collectLocalRuntimeSkill(_0xcfb9bf,_0x781850,_0x49c96e){const _0x5c05bf=a90_0x1f6a,_0x14534e=resolve(_0x781850,METADATA_FILE),_0xfc84c0=readMetadataIfPresent(_0x14534e);if(!_0xfc84c0)return;if(_0xfc84c0[_0x5c05bf(0x76)]!==_0x49c96e[_0x5c05bf(0x76)])return;if(!isRuntimeSkillScope(_0xfc84c0['scope'])||!_0x49c96e[_0x5c05bf(0x8b)][_0x5c05bf(0x7c)](_0xfc84c0[_0x5c05bf(0x97)]))return;const _0x7e568a=_0xfc84c0['skillCode']?.[_0x5c05bf(0x79)]();if(!_0x7e568a)return;if(_0x49c96e[_0x5c05bf(0x78)]&&_0x7e568a!==_0x49c96e['code'])return;const _0x49973a=_0xfc84c0['scope']+':'+_0x7e568a,_0x4bc8a6=_0x49c96e[_0x5c05bf(0x8d)]?[_0x49c96e[_0x5c05bf(0x8d)]]:[],_0x3efe4c=_0xcfb9bf[_0x5c05bf(0x93)](_0x49973a);if(_0x3efe4c){_0x49c96e[_0x5c05bf(0x87)]===_0x5c05bf(0x99)&&(_0x3efe4c[_0x5c05bf(0x84)]=_0x781850,_0x3efe4c[_0x5c05bf(0x7f)]=_0x781850,_0x3efe4c['skillMdPath']=resolve(_0x781850,SKILL_FILE),_0x3efe4c[_0x5c05bf(0x82)]=_0x14534e);for(const _0x492b99 of _0x4bc8a6){!_0x3efe4c['linkedPaths'][_0x5c05bf(0x8c)](_0x492b99)&&_0x3efe4c[_0x5c05bf(0x81)][_0x5c05bf(0x7a)](_0x492b99);}_0x3efe4c[_0x5c05bf(0x81)][_0x5c05bf(0x95)]();return;}_0xcfb9bf['set'](_0x49973a,{..._0xfc84c0,'tags':Array[_0x5c05bf(0x86)](_0xfc84c0['tags'])?_0xfc84c0[_0x5c05bf(0x90)]:[],'scope':_0xfc84c0[_0x5c05bf(0x97)],'source':'local','dir':_0x781850,'cacheDir':_0x49c96e[_0x5c05bf(0x87)]==='cache'?_0x781850:undefined,'skillMdPath':resolve(_0x781850,SKILL_FILE),'metadataPath':_0x14534e,'linkedPaths':_0x4bc8a6});}function compareLocalRuntimeSkills(_0x320fb8,_0x2303e6){const _0x10a480=a90_0x1f6a,_0xa170d8={'personal':0x0,'company':0x1,'builtin':0x2};return _0xa170d8[_0x320fb8[_0x10a480(0x97)]]-_0xa170d8[_0x2303e6[_0x10a480(0x97)]]||_0x320fb8[_0x10a480(0x8f)][_0x10a480(0x8a)](_0x2303e6[_0x10a480(0x8f)])||_0x320fb8[_0x10a480(0x84)][_0x10a480(0x8a)](_0x2303e6[_0x10a480(0x84)]);}
@@ -1 +1 @@
1
- (function(_0xe823ea,_0x2a97d9){const _0x462ab4=a90_0x3654,_0x547ca5=_0xe823ea();while(!![]){try{const _0x656218=-parseInt(_0x462ab4(0x1b0))/0x1+-parseInt(_0x462ab4(0x1a6))/0x2*(parseInt(_0x462ab4(0x19e))/0x3)+-parseInt(_0x462ab4(0x1af))/0x4*(-parseInt(_0x462ab4(0x1bc))/0x5)+parseInt(_0x462ab4(0x192))/0x6*(parseInt(_0x462ab4(0x1a3))/0x7)+-parseInt(_0x462ab4(0x196))/0x8+-parseInt(_0x462ab4(0x1a9))/0x9+parseInt(_0x462ab4(0x1a7))/0xa;if(_0x656218===_0x2a97d9)break;else _0x547ca5['push'](_0x547ca5['shift']());}catch(_0x4543c0){_0x547ca5['push'](_0x547ca5['shift']());}}}(a90_0xe86b,0xc6d46));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';function a90_0xe86b(){const _0xf29d6c=['30PdbgAE','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Skill\x20file\x20size\x20is\x20invalid:\x20','Unsafe\x20Skill\x20file\x20path:\x20','3615688zNCSSb','isSafeInteger','compare','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','push','sha256','name','from','6uqgAlU','object','validation','bytes','isArray','183484aMdZVA','has','trim','1269642FaVcoi','31116070eCaDRy','values','10945134dhPZzZ','size','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','Skill\x20file\x20path\x20must\x20be\x20text.','isBuffer','path','4124AsSbFc','42117PixWKZ','test','isFile','length','localeCompare','utf8','toString','startsWith','string','Duplicate\x20Skill\x20file\x20path:\x20','includes','isSymbolicLink','2675fGSmQg','sort','isDirectory','set'];a90_0xe86b=function(){return _0xf29d6c;};return a90_0xe86b();}import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x301ee6){const _0x32f6c3=a90_0x3654;return _0x301ee6[_0x32f6c3(0x1a1)]??Buffer['from'](_0x301ee6['content']??'','utf8');}export function fileText(_0x599692){const _0x542b55=a90_0x3654;return fileContent(_0x599692)[_0x542b55(0x1b6)]('utf8');}export function normalizeLocalFiles(_0x169e49){const _0x3b38e0=a90_0x3654;if(!Array[_0x3b38e0(0x1a2)](_0x169e49)||_0x169e49[_0x3b38e0(0x1b3)]===0x0)return[];const _0x3c002b=new Map();for(const _0x2860e5 of _0x169e49){if(!_0x2860e5||typeof _0x2860e5!==_0x3b38e0(0x19f)||typeof _0x2860e5[_0x3b38e0(0x1ae)]!==_0x3b38e0(0x1b8))throw CliErrors[_0x3b38e0(0x1a0)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0xac278b=normalizeSkillRelativePath(_0x2860e5[_0x3b38e0(0x1ae)]);if(_0x3c002b[_0x3b38e0(0x1a4)](_0xac278b))throw CliErrors['validation'](_0x3b38e0(0x1b9)+_0xac278b);if(_0x2860e5[_0x3b38e0(0x1a1)]!==undefined&&!Buffer[_0x3b38e0(0x1ad)](_0x2860e5[_0x3b38e0(0x1a1)]))throw CliErrors['validation']('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0xac278b);if(_0x2860e5['bytes']===undefined&&typeof _0x2860e5['content']!==_0x3b38e0(0x1b8))throw CliErrors[_0x3b38e0(0x1a0)](_0x3b38e0(0x1ab)+_0xac278b);const _0xf2c3b6=fileContent(_0x2860e5);_0x3c002b[_0x3b38e0(0x1bf)](_0xac278b,{'path':_0xac278b,'bytes':_0xf2c3b6});}return Array[_0x3b38e0(0x19d)](_0x3c002b[_0x3b38e0(0x1a8)]())[_0x3b38e0(0x1bd)](compareSkillFiles);}export function normalizeManifestFiles(_0xbb5454){const _0x1b32c8=a90_0x3654;if(!Array[_0x1b32c8(0x1a2)](_0xbb5454)||_0xbb5454[_0x1b32c8(0x1b3)]===0x0)return[];const _0x2c3711=new Map();for(const _0x9c86d of _0xbb5454){if(!_0x9c86d||typeof _0x9c86d!==_0x1b32c8(0x19f)||typeof _0x9c86d[_0x1b32c8(0x1ae)]!=='string')throw CliErrors[_0x1b32c8(0x1a0)](_0x1b32c8(0x1ac));const _0x4c5c72=normalizeSkillRelativePath(_0x9c86d[_0x1b32c8(0x1ae)]);if(_0x2c3711[_0x1b32c8(0x1a4)](_0x4c5c72))throw CliErrors[_0x1b32c8(0x1a0)](_0x1b32c8(0x1b9)+_0x4c5c72);if(!isSha256Hex(_0x9c86d['sha256']))throw CliErrors[_0x1b32c8(0x1a0)](_0x1b32c8(0x193)+_0x4c5c72);if(!Number[_0x1b32c8(0x197)](_0x9c86d[_0x1b32c8(0x1aa)])||_0x9c86d['size']<0x0)throw CliErrors['validation'](_0x1b32c8(0x194)+_0x4c5c72);_0x2c3711[_0x1b32c8(0x1bf)](_0x4c5c72,{'path':_0x4c5c72,'sha256':_0x9c86d[_0x1b32c8(0x19b)]['toLowerCase'](),'size':_0x9c86d[_0x1b32c8(0x1aa)]});}return Array[_0x1b32c8(0x19d)](_0x2c3711[_0x1b32c8(0x1a8)]())[_0x1b32c8(0x1bd)](compareSkillFiles);}export function scanSkillDirectory(_0xc0a611){const _0x5764d9=realpathSync(_0xc0a611),_0x341675=[];function _0x47de4f(_0x44ff19){const _0x743d8b=a90_0x3654,_0x3b7023=readdirSync(_0x44ff19,{'withFileTypes':!![]})[_0x743d8b(0x1bd)]((_0x5a5f14,_0x39049a)=>_0x5a5f14['name'][_0x743d8b(0x1b4)](_0x39049a['name']));for(const _0x265736 of _0x3b7023){if(_0x265736[_0x743d8b(0x1be)]()&&IGNORED_DIR_NAMES[_0x743d8b(0x1a4)](_0x265736['name']))continue;if(IGNORED_FILE_NAMES['has'](_0x265736['name']))continue;const _0x2f1859=resolve(_0x44ff19,_0x265736[_0x743d8b(0x19c)]);if(_0x265736[_0x743d8b(0x1bb)]())throw CliErrors[_0x743d8b(0x1a0)](_0x743d8b(0x199)+_0x2f1859);const _0x3bee94=toPosixPath(relative(_0x5764d9,_0x2f1859));if(_0x265736[_0x743d8b(0x1be)]()){_0x47de4f(_0x2f1859);continue;}if(!_0x265736[_0x743d8b(0x1b2)]())continue;validateSkillRelativePath(_0x3bee94);const _0x21d463=readFileSync(_0x2f1859);_0x341675[_0x743d8b(0x19a)]({'path':_0x3bee94,'bytes':_0x21d463});}}return _0x47de4f(_0x5764d9),normalizeLocalFiles(_0x341675);}function a90_0x3654(_0xc56fbb,_0x1a1ad0){_0xc56fbb=_0xc56fbb-0x192;const _0xe86b12=a90_0xe86b();let _0x365406=_0xe86b12[_0xc56fbb];return _0x365406;}export function compareSkillFiles(_0xff0a24,_0x16eb16){const _0x261454=a90_0x3654;if(_0xff0a24[_0x261454(0x1ae)]===SKILL_FILE)return _0x16eb16[_0x261454(0x1ae)]===SKILL_FILE?0x0:-0x1;if(_0x16eb16[_0x261454(0x1ae)]===SKILL_FILE)return 0x1;return Buffer[_0x261454(0x198)](Buffer[_0x261454(0x19d)](_0xff0a24[_0x261454(0x1ae)],'utf8'),Buffer[_0x261454(0x19d)](_0x16eb16[_0x261454(0x1ae)],_0x261454(0x1b5)));}export function normalizeSkillRelativePath(_0x442598){const _0x246ce4=a90_0x3654,_0x5c1a51=toPosixPath(_0x442598[_0x246ce4(0x1a5)]());return validateSkillRelativePath(_0x5c1a51),_0x5c1a51;}export function validateSkillRelativePath(_0x2b5af8){const _0x210d93=a90_0x3654;if(!_0x2b5af8||_0x2b5af8[_0x210d93(0x1b7)]('/')||_0x2b5af8[_0x210d93(0x1ba)]('//'))throw CliErrors[_0x210d93(0x1a0)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x2b5af8);for(const _0x3f33b4 of _0x2b5af8['split']('/')){if(!_0x3f33b4||_0x3f33b4==='.'||_0x3f33b4==='..')throw CliErrors[_0x210d93(0x1a0)](_0x210d93(0x195)+_0x2b5af8);}}export function toPosixPath(_0x5125c3){return _0x5125c3['replace'](/\\/g,'/');}export function isSha256Hex(_0x122460){const _0x4f663b=a90_0x3654;return typeof _0x122460==='string'&&/^[a-fA-F0-9]{64}$/[_0x4f663b(0x1b1)](_0x122460);}
1
+ (function(_0x407933,_0x463425){const _0x2ca95a=a91_0x4a7f,_0x145e55=_0x407933();while(!![]){try{const _0x2e6ffb=-parseInt(_0x2ca95a(0xb5))/0x1*(parseInt(_0x2ca95a(0xb2))/0x2)+parseInt(_0x2ca95a(0xca))/0x3*(-parseInt(_0x2ca95a(0xb6))/0x4)+parseInt(_0x2ca95a(0xd4))/0x5+parseInt(_0x2ca95a(0xb9))/0x6+parseInt(_0x2ca95a(0xcc))/0x7+parseInt(_0x2ca95a(0xc0))/0x8+parseInt(_0x2ca95a(0xd2))/0x9;if(_0x2e6ffb===_0x463425)break;else _0x145e55['push'](_0x145e55['shift']());}catch(_0x8ae2b7){_0x145e55['push'](_0x145e55['shift']());}}}(a91_0x6092,0x8a5c4));import{readFileSync,readdirSync,realpathSync}from'node:fs';function a91_0x6092(){const _0x5ad4ae=['string','size','length','2333832bfgIDI','content','validation','Unsafe\x20Skill\x20file\x20path:\x20','localeCompare','name','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','isDirectory','object','toLowerCase','1256025EmFXDg','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','562555SdHdXI','isArray','sort','compare','isFile','values','2960766QlNHHV','test','4767525OMdMKV','utf8','isSafeInteger','split','from','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','bytes','sha256','push','toString','trim','635084pKLnzE','Skill\x20file\x20size\x20is\x20invalid:\x20','Skill\x20file\x20sha256\x20is\x20invalid:\x20','3Ultnqx','4dfGfnw','Skill\x20file\x20path\x20must\x20be\x20text.','set','1700712WrxFJx','isSymbolicLink','path','has'];a91_0x6092=function(){return _0x5ad4ae;};return a91_0x6092();}import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x5501ea){const _0x3a76fc=a91_0x4a7f;return _0x5501ea[_0x3a76fc(0xda)]??Buffer[_0x3a76fc(0xd8)](_0x5501ea[_0x3a76fc(0xc1)]??'',_0x3a76fc(0xd5));}export function fileText(_0x452f43){const _0x503549=a91_0x4a7f;return fileContent(_0x452f43)[_0x503549(0xb0)](_0x503549(0xd5));}export function normalizeLocalFiles(_0x351290){const _0x417711=a91_0x4a7f;if(!Array['isArray'](_0x351290)||_0x351290[_0x417711(0xbf)]===0x0)return[];const _0x542925=new Map();for(const _0x156f9d of _0x351290){if(!_0x156f9d||typeof _0x156f9d!==_0x417711(0xc8)||typeof _0x156f9d[_0x417711(0xbb)]!==_0x417711(0xbd))throw CliErrors[_0x417711(0xc2)](_0x417711(0xb7));const _0x1d17c3=normalizeSkillRelativePath(_0x156f9d[_0x417711(0xbb)]);if(_0x542925[_0x417711(0xbc)](_0x1d17c3))throw CliErrors[_0x417711(0xc2)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x1d17c3);if(_0x156f9d[_0x417711(0xda)]!==undefined&&!Buffer['isBuffer'](_0x156f9d[_0x417711(0xda)]))throw CliErrors[_0x417711(0xc2)](_0x417711(0xcb)+_0x1d17c3);if(_0x156f9d[_0x417711(0xda)]===undefined&&typeof _0x156f9d[_0x417711(0xc1)]!==_0x417711(0xbd))throw CliErrors[_0x417711(0xc2)](_0x417711(0xc6)+_0x1d17c3);const _0x1cfff6=fileContent(_0x156f9d);_0x542925[_0x417711(0xb8)](_0x1d17c3,{'path':_0x1d17c3,'bytes':_0x1cfff6});}return Array['from'](_0x542925[_0x417711(0xd1)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x54a667){const _0x56f848=a91_0x4a7f;if(!Array[_0x56f848(0xcd)](_0x54a667)||_0x54a667['length']===0x0)return[];const _0x512652=new Map();for(const _0x563140 of _0x54a667){if(!_0x563140||typeof _0x563140!==_0x56f848(0xc8)||typeof _0x563140[_0x56f848(0xbb)]!==_0x56f848(0xbd))throw CliErrors['validation'](_0x56f848(0xb7));const _0x5366c4=normalizeSkillRelativePath(_0x563140[_0x56f848(0xbb)]);if(_0x512652['has'](_0x5366c4))throw CliErrors[_0x56f848(0xc2)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x5366c4);if(!isSha256Hex(_0x563140[_0x56f848(0xdb)]))throw CliErrors[_0x56f848(0xc2)](_0x56f848(0xb4)+_0x5366c4);if(!Number[_0x56f848(0xd6)](_0x563140['size'])||_0x563140[_0x56f848(0xbe)]<0x0)throw CliErrors[_0x56f848(0xc2)](_0x56f848(0xb3)+_0x5366c4);_0x512652[_0x56f848(0xb8)](_0x5366c4,{'path':_0x5366c4,'sha256':_0x563140[_0x56f848(0xdb)][_0x56f848(0xc9)](),'size':_0x563140[_0x56f848(0xbe)]});}return Array['from'](_0x512652[_0x56f848(0xd1)]())[_0x56f848(0xce)](compareSkillFiles);}export function scanSkillDirectory(_0x51a7db){const _0x3fc1a8=realpathSync(_0x51a7db),_0x4faba3=[];function _0x2ac12a(_0x219c10){const _0xcc28c0=a91_0x4a7f,_0x2a5787=readdirSync(_0x219c10,{'withFileTypes':!![]})[_0xcc28c0(0xce)]((_0x5dcd05,_0x16a731)=>_0x5dcd05[_0xcc28c0(0xc5)][_0xcc28c0(0xc4)](_0x16a731['name']));for(const _0x19b89f of _0x2a5787){if(_0x19b89f['isDirectory']()&&IGNORED_DIR_NAMES['has'](_0x19b89f[_0xcc28c0(0xc5)]))continue;if(IGNORED_FILE_NAMES[_0xcc28c0(0xbc)](_0x19b89f[_0xcc28c0(0xc5)]))continue;const _0x5a55b7=resolve(_0x219c10,_0x19b89f[_0xcc28c0(0xc5)]);if(_0x19b89f[_0xcc28c0(0xba)]())throw CliErrors[_0xcc28c0(0xc2)](_0xcc28c0(0xd9)+_0x5a55b7);const _0x208856=toPosixPath(relative(_0x3fc1a8,_0x5a55b7));if(_0x19b89f[_0xcc28c0(0xc7)]()){_0x2ac12a(_0x5a55b7);continue;}if(!_0x19b89f[_0xcc28c0(0xd0)]())continue;validateSkillRelativePath(_0x208856);const _0x774ab0=readFileSync(_0x5a55b7);_0x4faba3[_0xcc28c0(0xdc)]({'path':_0x208856,'bytes':_0x774ab0});}}return _0x2ac12a(_0x3fc1a8),normalizeLocalFiles(_0x4faba3);}export function compareSkillFiles(_0xb6656b,_0x4ce972){const _0x955afb=a91_0x4a7f;if(_0xb6656b[_0x955afb(0xbb)]===SKILL_FILE)return _0x4ce972['path']===SKILL_FILE?0x0:-0x1;if(_0x4ce972['path']===SKILL_FILE)return 0x1;return Buffer[_0x955afb(0xcf)](Buffer[_0x955afb(0xd8)](_0xb6656b[_0x955afb(0xbb)],_0x955afb(0xd5)),Buffer['from'](_0x4ce972['path'],_0x955afb(0xd5)));}export function normalizeSkillRelativePath(_0x274263){const _0x10e0ec=a91_0x4a7f,_0x2c7413=toPosixPath(_0x274263[_0x10e0ec(0xb1)]());return validateSkillRelativePath(_0x2c7413),_0x2c7413;}function a91_0x4a7f(_0x72e6f6,_0x604e64){_0x72e6f6=_0x72e6f6-0xb0;const _0x6092fb=a91_0x6092();let _0x4a7faf=_0x6092fb[_0x72e6f6];return _0x4a7faf;}export function validateSkillRelativePath(_0x1cf4c0){const _0x53f5bc=a91_0x4a7f;if(!_0x1cf4c0||_0x1cf4c0['startsWith']('/')||_0x1cf4c0['includes']('//'))throw CliErrors[_0x53f5bc(0xc2)](_0x53f5bc(0xc3)+_0x1cf4c0);for(const _0x594c6c of _0x1cf4c0[_0x53f5bc(0xd7)]('/')){if(!_0x594c6c||_0x594c6c==='.'||_0x594c6c==='..')throw CliErrors[_0x53f5bc(0xc2)](_0x53f5bc(0xc3)+_0x1cf4c0);}}export function toPosixPath(_0x8930d){return _0x8930d['replace'](/\\/g,'/');}export function isSha256Hex(_0x26f52a){const _0x3235f7=a91_0x4a7f;return typeof _0x26f52a===_0x3235f7(0xbd)&&/^[a-fA-F0-9]{64}$/[_0x3235f7(0xd3)](_0x26f52a);}