@lovrabet/lovrabet-cli 2.1.3-beta.1 → 2.1.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 (107) 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/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a93_0x1186f9=a93_0x7759;(function(_0x1c0f69,_0x4bcd3c){const _0x3240bf=a93_0x7759,_0x3eb920=_0x1c0f69();while(!![]){try{const _0x7b008f=parseInt(_0x3240bf(0x7d))/0x1*(parseInt(_0x3240bf(0x7c))/0x2)+-parseInt(_0x3240bf(0x7e))/0x3*(-parseInt(_0x3240bf(0x7f))/0x4)+parseInt(_0x3240bf(0x87))/0x5+-parseInt(_0x3240bf(0x81))/0x6*(-parseInt(_0x3240bf(0x88))/0x7)+-parseInt(_0x3240bf(0x83))/0x8*(-parseInt(_0x3240bf(0x77))/0x9)+-parseInt(_0x3240bf(0x89))/0xa+-parseInt(_0x3240bf(0x84))/0xb;if(_0x7b008f===_0x4bcd3c)break;else _0x3eb920['push'](_0x3eb920['shift']());}catch(_0x1122ff){_0x3eb920['push'](_0x3eb920['shift']());}}}(a93_0x3725,0xf0ef1));function a93_0x7759(_0x5af78c,_0x4e7f26){_0x5af78c=_0x5af78c-0x74;const _0x372540=a93_0x3725();let _0x77591f=_0x372540[_0x5af78c];return _0x77591f;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x25afd4={}){const _0x3bf17d=a93_0x7759,_0xda2a62=_0x25afd4[_0x3bf17d(0x8a)]??homedir(),_0x1bb2ef=resolve(_0xda2a62,PRODUCT_CONFIG['homeDirName'],_0x3bf17d(0x7a)),_0x13a64a=trimmedEnv(_0x3bf17d(0x85)),_0x52ac9e=trimmedEnv('CLAUDE_SKILL_ROOT');return{'homeDir':_0xda2a62,'cacheRoot':_0x1bb2ef,'managedRoot':resolve(_0xda2a62,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x25afd4['agentsSkillsDir']??_0x13a64a??resolve(_0xda2a62,_0x3bf17d(0x80),_0x3bf17d(0x78)),'claudeSkillsDir':_0x25afd4[_0x3bf17d(0x79)]??_0x52ac9e??resolve(_0xda2a62,'.claude',_0x3bf17d(0x78))};}export function getRuntimeSkillCacheRoot(_0x195306,_0x31b3fd,_0x2ecfff={}){const _0x12acf5=a93_0x7759,_0x30418b=resolveSkillSyncPaths(_0x2ecfff);return resolve(_0x30418b[_0x12acf5(0x86)],_0x195306,fingerprintAccessKey(_0x31b3fd),_0x12acf5(0x78));}export function getRuntimeSkillDir(_0x565ea3,_0x91d606,_0x80ef2e,_0x3b588a,_0x276f0b,_0x28d823={}){const _0x3c6f90=a93_0x7759;return resolve(getRuntimeSkillCacheRoot(_0x565ea3,_0x91d606,_0x28d823),safePathSegment(_0x80ef2e,_0x3c6f90(0x76)),_0x3b588a,safePathSegment(_0x276f0b,'skillCode'));}function a93_0x3725(){const _0x571dd0=['1070280JFRjxW','4753VEuXVi','18060940mDCjOn','homeDir','path\x20segment','includes','appCode','39141bUfvuN','skills','claudeSkillsDir','cache','trim','638446UXFcNv','1qCXxHe','5437953cgYCWU','4EsaVfh','.agents','2022dDdFmd','Unsafe\x20','496aOzZPo','565752TOSRwU','SKILL_ROOT','cacheRoot'];a93_0x3725=function(){return _0x571dd0;};return a93_0x3725();}export function safePathSegment(_0x10804e,_0xcffc1e=a93_0x1186f9(0x74)){const _0x225837=a93_0x1186f9;if(!_0x10804e||_0x10804e[_0x225837(0x75)]('/')||_0x10804e[_0x225837(0x75)]('\x5c')||_0x10804e[_0x225837(0x75)]('..'))throw CliErrors['validation'](_0x225837(0x82)+_0xcffc1e+'\x20for\x20local\x20path:\x20'+_0x10804e);return _0x10804e;}function trimmedEnv(_0x314806){const _0x423398=a93_0x1186f9,_0xa12a8d=productEnv(_0x314806)?.[_0x423398(0x7b)]();return _0xa12a8d?_0xa12a8d:undefined;}
1
+ const a93_0x402e67=a93_0x1386;(function(_0x4962d6,_0x2139ea){const _0x35e1fb=a93_0x1386,_0x38fb3e=_0x4962d6();while(!![]){try{const _0x176d46=-parseInt(_0x35e1fb(0xba))/0x1*(-parseInt(_0x35e1fb(0xae))/0x2)+parseInt(_0x35e1fb(0xb2))/0x3*(parseInt(_0x35e1fb(0xb3))/0x4)+-parseInt(_0x35e1fb(0xab))/0x5*(-parseInt(_0x35e1fb(0xa3))/0x6)+-parseInt(_0x35e1fb(0xb0))/0x7*(-parseInt(_0x35e1fb(0xaa))/0x8)+-parseInt(_0x35e1fb(0xb6))/0x9+-parseInt(_0x35e1fb(0xa4))/0xa+-parseInt(_0x35e1fb(0xa9))/0xb*(parseInt(_0x35e1fb(0xa8))/0xc);if(_0x176d46===_0x2139ea)break;else _0x38fb3e['push'](_0x38fb3e['shift']());}catch(_0x154c16){_0x38fb3e['push'](_0x38fb3e['shift']());}}}(a93_0x3548,0xb145a));import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';function a93_0x3548(){const _0x472915=['6aRJPqs','8396240fnOWQb','SKILL_ROOT','homeDir','skills','12uLISqX','7761314RHlPTf','24LUBmcS','2006205VxKkfI','agentsSkillsDir','includes','10688tJcfay','.agents','1023743KVVyqV','validation','1155tOEYcH','12948HVnBNl','claudeSkillsDir','appCode','1652985xnGOLV','homeDirName','path\x20segment','skillCode','69lFqSxo','CLAUDE_SKILL_ROOT','.claude'];a93_0x3548=function(){return _0x472915;};return a93_0x3548();}function a93_0x1386(_0x594a00,_0x4174d1){_0x594a00=_0x594a00-0xa1;const _0x3548f6=a93_0x3548();let _0x1386cf=_0x3548f6[_0x594a00];return _0x1386cf;}export function resolveSkillSyncPaths(_0x3a879f={}){const _0x2a6811=a93_0x1386,_0x10d60e=_0x3a879f[_0x2a6811(0xa6)]??homedir(),_0x45533d=resolve(_0x10d60e,PRODUCT_CONFIG[_0x2a6811(0xb7)],'cache'),_0xef4c0d=trimmedEnv(_0x2a6811(0xa5)),_0x4ffd20=trimmedEnv(_0x2a6811(0xa1));return{'homeDir':_0x10d60e,'cacheRoot':_0x45533d,'managedRoot':resolve(_0x10d60e,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x3a879f[_0x2a6811(0xac)]??_0xef4c0d??resolve(_0x10d60e,_0x2a6811(0xaf),_0x2a6811(0xa7)),'claudeSkillsDir':_0x3a879f[_0x2a6811(0xb4)]??_0x4ffd20??resolve(_0x10d60e,_0x2a6811(0xa2),'skills')};}export function getRuntimeSkillCacheRoot(_0xa34563,_0x1c84c3,_0x5a568f={}){const _0x146ae9=a93_0x1386,_0x3ad61b=resolveSkillSyncPaths(_0x5a568f);return resolve(_0x3ad61b['cacheRoot'],_0xa34563,fingerprintAccessKey(_0x1c84c3),_0x146ae9(0xa7));}export function getRuntimeSkillDir(_0x38d6d9,_0x596ddd,_0x225aa0,_0x1d4d5c,_0x337e0e,_0x3cd732={}){const _0x2f3fa0=a93_0x1386;return resolve(getRuntimeSkillCacheRoot(_0x38d6d9,_0x596ddd,_0x3cd732),safePathSegment(_0x225aa0,_0x2f3fa0(0xb5)),_0x1d4d5c,safePathSegment(_0x337e0e,_0x2f3fa0(0xb9)));}export function safePathSegment(_0x4a7626,_0x111ee1=a93_0x402e67(0xb8)){const _0x1e7baa=a93_0x402e67;if(!_0x4a7626||_0x4a7626[_0x1e7baa(0xad)]('/')||_0x4a7626[_0x1e7baa(0xad)]('\x5c')||_0x4a7626[_0x1e7baa(0xad)]('..'))throw CliErrors[_0x1e7baa(0xb1)]('Unsafe\x20'+_0x111ee1+'\x20for\x20local\x20path:\x20'+_0x4a7626);return _0x4a7626;}function trimmedEnv(_0x4e61fb){const _0x5177dd=productEnv(_0x4e61fb)?.['trim']();return _0x5177dd?_0x5177dd:undefined;}
@@ -1 +1 @@
1
- (function(_0x5821a0,_0x282cba){const _0x2a7de3=a94_0x5ad4,_0x3db4e7=_0x5821a0();while(!![]){try{const _0x50d265=parseInt(_0x2a7de3(0x10c))/0x1+-parseInt(_0x2a7de3(0xf7))/0x2*(parseInt(_0x2a7de3(0xfa))/0x3)+parseInt(_0x2a7de3(0xef))/0x4+parseInt(_0x2a7de3(0x107))/0x5+-parseInt(_0x2a7de3(0xfc))/0x6*(parseInt(_0x2a7de3(0xfb))/0x7)+parseInt(_0x2a7de3(0xf2))/0x8+parseInt(_0x2a7de3(0x100))/0x9;if(_0x50d265===_0x282cba)break;else _0x3db4e7['push'](_0x3db4e7['shift']());}catch(_0x541cc5){_0x3db4e7['push'](_0x3db4e7['shift']());}}}(a94_0x328e,0x4fd81));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';function a94_0x5ad4(_0x4b8a19,_0x3eecbc){_0x4b8a19=_0x4b8a19-0xe8;const _0x328e09=a94_0x328e();let _0x5ad439=_0x328e09[_0x4b8a19];return _0x5ad439;}import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';function a94_0x328e(){const _0x3f9fd0=['filter','pushedAt','files','isFile','6elxEqr','Skill\x20metadata\x20appCode\x20\x22','appCode','116079FzoBcW','97559IMNSgl','276RecGmg','scope','some','version','3525138gEWoTB','personal','Unable\x20to\x20resolve\x20skillCode\x20from\x20','tags','packageBase64','Skill\x20directory\x20not\x20found:\x20','content','41115TLBdXx','startsWith','isDirectory','find','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','135854pMEUjQ','description','length','manifest','isSymbolicLink','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','utf8','\x20or\x20directory\x20name.','path','932968cAoMuz','validation','skillCode','2521768cTkDzQ'];a94_0x328e=function(){return _0x3f9fd0;};return a94_0x328e();}import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function readPushDirectory(_0x5af865,_0x68ccaa){const _0x4e98fe=a94_0x5ad4,_0x34d58b=resolvePushDirectoryRoot(_0x5af865),_0xf32549=resolve(_0x34d58b,SKILL_FILE);if(!existsSync(_0xf32549)||!lstatSync(_0xf32549)[_0x4e98fe(0xf6)]())throw CliErrors['validation']('Missing\x20'+SKILL_FILE+':\x20'+_0xf32549);const _0x5cfad7=readMetadataIfPresent(resolve(_0x34d58b,METADATA_FILE));if(_0x5cfad7?.[_0x4e98fe(0xfd)]&&_0x5cfad7[_0x4e98fe(0xfd)]!==_0x4e98fe(0x101))throw CliErrors[_0x4e98fe(0xf0)](_0x4e98fe(0x10b)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x5cfad7['scope']+'\x22.');if(_0x5cfad7?.[_0x4e98fe(0xf9)]&&_0x5cfad7[_0x4e98fe(0xf9)]!==_0x68ccaa)throw CliErrors[_0x4e98fe(0xf0)](_0x4e98fe(0xf8)+_0x5cfad7[_0x4e98fe(0xf9)]+_0x4e98fe(0xeb)+_0x68ccaa+'\x22.');const _0x23f9f5=scanSkillDirectory(_0x34d58b),_0x2df97f=buildSkillPackage(_0x23f9f5),_0x16e3be=readFileSync(_0xf32549,_0x4e98fe(0xec)),_0x3f5bac=_0x5cfad7?.[_0x4e98fe(0xf1)]??deriveSkillCodeFromDirectory(_0x34d58b,_0x68ccaa);if(!_0x3f5bac)throw CliErrors[_0x4e98fe(0xf0)](_0x4e98fe(0x102)+METADATA_FILE+_0x4e98fe(0xed));return{'skillCode':_0x3f5bac,'metadata':_0x5cfad7,'input':{'skillCode':_0x3f5bac,'skillName':_0x5cfad7?.['skillName'],'description':_0x5cfad7?.[_0x4e98fe(0x10d)],'content':_0x16e3be,'files':_0x2df97f[_0x4e98fe(0xe9)],'packageBase64':_0x2df97f[_0x4e98fe(0x104)],'tags':_0x5cfad7?.[_0x4e98fe(0x103)],'version':_0x5cfad7?.[_0x4e98fe(0xff)],'sourceSessionId':_0x5cfad7?.['sourceSessionId']}};}export function recordPushedRuntimeSkill(_0x583cec,_0x2040fd,_0xc241ae,_0x5e676b={}){const _0x1e620e=a94_0x5ad4,_0x5e1072=resolvePushDirectoryRoot(_0x583cec),_0x2bfafc=scanSkillDirectory(_0x5e1072),_0x1df267=_0x2bfafc[_0x1e620e(0x10a)](_0x5dd919=>_0x5dd919[_0x1e620e(0xee)]===SKILL_FILE),_0x44059b=_0x1df267?fileText(_0x1df267):'',_0x38e266=tryNormalizePackageManifest(_0x2040fd['files']),_0x4e4685={..._0x2040fd,'content':_0x2040fd[_0x1e620e(0x106)]??_0x44059b,'files':_0x38e266},_0x596b07=_0x38e266?normalizeLocalFiles(_0x2bfafc)[_0x1e620e(0xf3)](_0x277eb1=>_0x38e266[_0x1e620e(0xf5)][_0x1e620e(0xfe)](_0x50c771=>_0x50c771[_0x1e620e(0xee)]===_0x277eb1[_0x1e620e(0xee)])):undefined,_0x2600c1=buildMetadata(_0x4e4685,_0x5e676b['scope']??'personal',_0xc241ae,contentHash(_0x4e4685['content']??''),_0x5e676b[_0x1e620e(0xf4)],_0x596b07);writeJsonAtomic(resolve(_0x5e1072,METADATA_FILE),_0x2600c1);}export function deriveSkillCodeFromDirectory(_0x459701,_0x44a931){const _0x2837c9=a94_0x5ad4,_0x3b34a9=basename(resolve(_0x459701)),_0x49cf76=_0x44a931+'--';return _0x3b34a9[_0x2837c9(0x108)](_0x49cf76)?_0x3b34a9['slice'](_0x49cf76[_0x2837c9(0xe8)]):_0x3b34a9;}function resolvePushDirectoryRoot(_0x593a18){const _0x45a65a=a94_0x5ad4,_0x4eddc8=resolve(_0x593a18);if(!existsSync(_0x4eddc8))throw CliErrors[_0x45a65a(0xf0)]('Skill\x20directory\x20not\x20found:\x20'+_0x593a18);const _0x5902b1=lstatSync(_0x4eddc8);if(_0x5902b1['isDirectory']())return _0x4eddc8;if(_0x5902b1[_0x45a65a(0xea)]()){const _0x122cfe=realpathSync(_0x4eddc8);if(lstatSync(_0x122cfe)[_0x45a65a(0x109)]())return _0x122cfe;}throw CliErrors['validation'](_0x45a65a(0x105)+_0x593a18);}
1
+ (function(_0x294bf6,_0x2325b9){const _0x3f0b68=a94_0x4f39,_0xbe1ac1=_0x294bf6();while(!![]){try{const _0x188259=-parseInt(_0x3f0b68(0x91))/0x1*(-parseInt(_0x3f0b68(0xa0))/0x2)+parseInt(_0x3f0b68(0x8e))/0x3*(-parseInt(_0x3f0b68(0x87))/0x4)+parseInt(_0x3f0b68(0x9d))/0x5*(parseInt(_0x3f0b68(0x8f))/0x6)+parseInt(_0x3f0b68(0x9f))/0x7+-parseInt(_0x3f0b68(0x9c))/0x8+parseInt(_0x3f0b68(0x9a))/0x9+-parseInt(_0x3f0b68(0xa3))/0xa;if(_0x188259===_0x2325b9)break;else _0xbe1ac1['push'](_0xbe1ac1['shift']());}catch(_0x54c906){_0xbe1ac1['push'](_0xbe1ac1['shift']());}}}(a94_0x23a2,0x8810c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a94_0x23a2(){const _0x2c2e92=['8826327Tdlfvp','pushedAt','3748816hQUXTJ','10195uDQqeo','scope','6796811oMuuSw','2hUFtEK','Skill\x20metadata\x20appCode\x20\x22','validation','14353450wyrNYq','skillCode','slice','manifest','description','appCode','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','412uhMPTU','tags','packageBase64','personal','Skill\x20directory\x20not\x20found:\x20','skillName','files','20595tzwpbt','606hsxhnH','isSymbolicLink','1010751sEWDXp','\x20or\x20directory\x20name.','isFile','isDirectory','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','find','Unable\x20to\x20resolve\x20skillCode\x20from\x20','path','content'];a94_0x23a2=function(){return _0x2c2e92;};return a94_0x23a2();}import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';function a94_0x4f39(_0x16c44f,_0xe5f796){_0x16c44f=_0x16c44f-0x87;const _0x23a25d=a94_0x23a2();let _0x4f395e=_0x23a25d[_0x16c44f];return _0x4f395e;}export function readPushDirectory(_0x1fc182,_0x502695){const _0x2dc4fb=a94_0x4f39,_0x33226e=resolvePushDirectoryRoot(_0x1fc182),_0x2cce56=resolve(_0x33226e,SKILL_FILE);if(!existsSync(_0x2cce56)||!lstatSync(_0x2cce56)[_0x2dc4fb(0x93)]())throw CliErrors[_0x2dc4fb(0xa2)]('Missing\x20'+SKILL_FILE+':\x20'+_0x2cce56);const _0x5bd97f=readMetadataIfPresent(resolve(_0x33226e,METADATA_FILE));if(_0x5bd97f?.[_0x2dc4fb(0x9e)]&&_0x5bd97f[_0x2dc4fb(0x9e)]!==_0x2dc4fb(0x8a))throw CliErrors[_0x2dc4fb(0xa2)](_0x2dc4fb(0x95)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x5bd97f[_0x2dc4fb(0x9e)]+'\x22.');if(_0x5bd97f?.[_0x2dc4fb(0xa8)]&&_0x5bd97f[_0x2dc4fb(0xa8)]!==_0x502695)throw CliErrors['validation'](_0x2dc4fb(0xa1)+_0x5bd97f[_0x2dc4fb(0xa8)]+_0x2dc4fb(0xa9)+_0x502695+'\x22.');const _0x48194a=scanSkillDirectory(_0x33226e),_0x403910=buildSkillPackage(_0x48194a),_0x45ae8d=readFileSync(_0x2cce56,'utf8'),_0x3ebe0f=_0x5bd97f?.[_0x2dc4fb(0xa4)]??deriveSkillCodeFromDirectory(_0x33226e,_0x502695);if(!_0x3ebe0f)throw CliErrors[_0x2dc4fb(0xa2)](_0x2dc4fb(0x97)+METADATA_FILE+_0x2dc4fb(0x92));return{'skillCode':_0x3ebe0f,'metadata':_0x5bd97f,'input':{'skillCode':_0x3ebe0f,'skillName':_0x5bd97f?.[_0x2dc4fb(0x8c)],'description':_0x5bd97f?.[_0x2dc4fb(0xa7)],'content':_0x45ae8d,'files':_0x403910[_0x2dc4fb(0xa6)],'packageBase64':_0x403910[_0x2dc4fb(0x89)],'tags':_0x5bd97f?.[_0x2dc4fb(0x88)],'version':_0x5bd97f?.['version'],'sourceSessionId':_0x5bd97f?.['sourceSessionId']}};}export function recordPushedRuntimeSkill(_0x5049f5,_0x4bbc66,_0x52b307,_0x901526={}){const _0x231235=a94_0x4f39,_0x394ded=resolvePushDirectoryRoot(_0x5049f5),_0x61a78c=scanSkillDirectory(_0x394ded),_0x2ce00d=_0x61a78c[_0x231235(0x96)](_0x22b8ea=>_0x22b8ea[_0x231235(0x98)]===SKILL_FILE),_0x5eeb9a=_0x2ce00d?fileText(_0x2ce00d):'',_0x4a7ee3=tryNormalizePackageManifest(_0x4bbc66[_0x231235(0x8d)]),_0x140c41={..._0x4bbc66,'content':_0x4bbc66['content']??_0x5eeb9a,'files':_0x4a7ee3},_0x3736cc=_0x4a7ee3?normalizeLocalFiles(_0x61a78c)['filter'](_0x3b8023=>_0x4a7ee3['files']['some'](_0x2027e7=>_0x2027e7[_0x231235(0x98)]===_0x3b8023['path'])):undefined,_0x1f0133=buildMetadata(_0x140c41,_0x901526[_0x231235(0x9e)]??_0x231235(0x8a),_0x52b307,contentHash(_0x140c41[_0x231235(0x99)]??''),_0x901526[_0x231235(0x9b)],_0x3736cc);writeJsonAtomic(resolve(_0x394ded,METADATA_FILE),_0x1f0133);}export function deriveSkillCodeFromDirectory(_0x404c32,_0x391b6b){const _0x1e8fef=a94_0x4f39,_0x4d45cb=basename(resolve(_0x404c32)),_0x430315=_0x391b6b+'--';return _0x4d45cb['startsWith'](_0x430315)?_0x4d45cb[_0x1e8fef(0xa5)](_0x430315['length']):_0x4d45cb;}function resolvePushDirectoryRoot(_0xb1fb0){const _0x39ac30=a94_0x4f39,_0x29143b=resolve(_0xb1fb0);if(!existsSync(_0x29143b))throw CliErrors['validation'](_0x39ac30(0x8b)+_0xb1fb0);const _0x1efed3=lstatSync(_0x29143b);if(_0x1efed3[_0x39ac30(0x94)]())return _0x29143b;if(_0x1efed3[_0x39ac30(0x90)]()){const _0xaa03e=realpathSync(_0x29143b);if(lstatSync(_0xaa03e)[_0x39ac30(0x94)]())return _0xaa03e;}throw CliErrors['validation'](_0x39ac30(0x8b)+_0xb1fb0);}
@@ -1 +1 @@
1
- (function(_0x25d0a2,_0x206652){const _0x49baa7=a95_0x1fae,_0x468eca=_0x25d0a2();while(!![]){try{const _0x7fdd14=parseInt(_0x49baa7(0x146))/0x1*(parseInt(_0x49baa7(0x145))/0x2)+-parseInt(_0x49baa7(0x14c))/0x3*(-parseInt(_0x49baa7(0x14d))/0x4)+-parseInt(_0x49baa7(0x152))/0x5*(-parseInt(_0x49baa7(0x14e))/0x6)+-parseInt(_0x49baa7(0x149))/0x7+-parseInt(_0x49baa7(0x140))/0x8*(-parseInt(_0x49baa7(0x14f))/0x9)+-parseInt(_0x49baa7(0x144))/0xa*(parseInt(_0x49baa7(0x153))/0xb)+parseInt(_0x49baa7(0x151))/0xc;if(_0x7fdd14===_0x206652)break;else _0x468eca['push'](_0x468eca['shift']());}catch(_0x149693){_0x468eca['push'](_0x468eca['shift']());}}}(a95_0x3810,0x41cfa));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3490b2){const _0x1a61b2=a95_0x1fae,_0x3e5a4d=_0x3490b2&&_0x3490b2[_0x1a61b2(0x143)]>0x0?_0x3490b2:[_0x1a61b2(0x14b),_0x1a61b2(0x147),'builtin'],_0x1777a8=[];for(const _0x3c1e90 of _0x3e5a4d){if(!isRuntimeSkillScope(_0x3c1e90))throw CliErrors[_0x1a61b2(0x148)](_0x1a61b2(0x142)+_0x3c1e90);!_0x1777a8[_0x1a61b2(0x141)](_0x3c1e90)&&_0x1777a8[_0x1a61b2(0x150)](_0x3c1e90);}return _0x1777a8;}function a95_0x3810(){const _0x159fdc=['validation','319648WpTXRS','builtin','personal','195FPBfTi','15172NYyqtp','414KkqpPe','9YMqYAl','push','191892FMuGyp','5455RcboXi','11EGOSaf','1628168oeXAPW','includes','Unsupported\x20runtime\x20Skill\x20scope:\x20','length','3079930aDYipA','163766tzJAKw','1CnaHrI','company'];a95_0x3810=function(){return _0x159fdc;};return a95_0x3810();}function a95_0x1fae(_0x51e410,_0x5212ce){_0x51e410=_0x51e410-0x140;const _0x381028=a95_0x3810();let _0x1faeb0=_0x381028[_0x51e410];return _0x1faeb0;}export function isRuntimeSkillScope(_0x269e49){const _0x220a35=a95_0x1fae;return _0x269e49===_0x220a35(0x14b)||_0x269e49==='company'||_0x269e49===_0x220a35(0x14a);}
1
+ function a95_0x3427(_0x168597,_0x5ab215){_0x168597=_0x168597-0xe3;const _0x7df5c3=a95_0x7df5();let _0x342734=_0x7df5c3[_0x168597];return _0x342734;}(function(_0x485317,_0x43452e){const _0x61aba8=a95_0x3427,_0x41deb4=_0x485317();while(!![]){try{const _0x51942b=-parseInt(_0x61aba8(0xeb))/0x1+-parseInt(_0x61aba8(0xea))/0x2+parseInt(_0x61aba8(0xe4))/0x3+-parseInt(_0x61aba8(0xe3))/0x4+parseInt(_0x61aba8(0xe5))/0x5*(parseInt(_0x61aba8(0xe7))/0x6)+-parseInt(_0x61aba8(0xf1))/0x7+parseInt(_0x61aba8(0xee))/0x8*(parseInt(_0x61aba8(0xe9))/0x9);if(_0x51942b===_0x43452e)break;else _0x41deb4['push'](_0x41deb4['shift']());}catch(_0x1482a5){_0x41deb4['push'](_0x41deb4['shift']());}}}(a95_0x7df5,0x60bab));function a95_0x7df5(){const _0x19fb58=['140517IJvTGQ','425010cNngzk','771730sBTPvo','length','includes','936YeHMWM','Unsupported\x20runtime\x20Skill\x20scope:\x20','validation','4728787AyZyXm','company','2459592XQfVeQ','1473978qDXFdu','58805VrhcKn','builtin','180eGhbsr','personal'];a95_0x7df5=function(){return _0x19fb58;};return a95_0x7df5();}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x4bdb98){const _0x364749=a95_0x3427,_0x13bf60=_0x4bdb98&&_0x4bdb98[_0x364749(0xec)]>0x0?_0x4bdb98:[_0x364749(0xe8),_0x364749(0xf2),_0x364749(0xe6)],_0x5a15e3=[];for(const _0x1ffb8f of _0x13bf60){if(!isRuntimeSkillScope(_0x1ffb8f))throw CliErrors[_0x364749(0xf0)](_0x364749(0xef)+_0x1ffb8f);!_0x5a15e3[_0x364749(0xed)](_0x1ffb8f)&&_0x5a15e3['push'](_0x1ffb8f);}return _0x5a15e3;}export function isRuntimeSkillScope(_0x2f4681){const _0x323f94=a95_0x3427;return _0x2f4681===_0x323f94(0xe8)||_0x2f4681===_0x323f94(0xf2)||_0x2f4681===_0x323f94(0xe6);}
@@ -1 +1 @@
1
- (function(_0x1b471c,_0x3055e8){const _0x3d161f=a97_0x2db1,_0x470b43=_0x1b471c();while(!![]){try{const _0x15fef1=parseInt(_0x3d161f(0x1e3))/0x1*(-parseInt(_0x3d161f(0x1da))/0x2)+parseInt(_0x3d161f(0x1e4))/0x3+-parseInt(_0x3d161f(0x1d9))/0x4+-parseInt(_0x3d161f(0x1e0))/0x5+-parseInt(_0x3d161f(0x1e6))/0x6+-parseInt(_0x3d161f(0x1e7))/0x7+parseInt(_0x3d161f(0x1e5))/0x8;if(_0x15fef1===_0x3055e8)break;else _0x470b43['push'](_0x470b43['shift']());}catch(_0x149d85){_0x470b43['push'](_0x470b43['shift']());}}}(a97_0x3d05,0xc958f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_PACKAGE_BYTES,MAX_SKILL_TOTAL_BYTES}from'./constants.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');function a97_0x2db1(_0x591da7,_0x4a170b){_0x591da7=_0x591da7-0x1cf;const _0x3d053c=a97_0x3d05();let _0x2db1d3=_0x3d053c[_0x591da7];return _0x2db1d3;}function a97_0x3d05(){const _0x1eea05=['568498AAiltg','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','length','name','Skill\x20package\x20exceeds\x20size\x20limit.','code','map','validation','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','sort','3487768wrMwaL','3284KVIYrG','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','originalSize','Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20','from','2520335liuaIg','validation_error','entries','471WUXqyB','4182471OhNNOZ','18003440FVvTrb','3535578LVdprd'];a97_0x3d05=function(){return _0x1eea05;};return a97_0x3d05();}export function createDeterministicZipPackage(_0x1ffbb9){const _0x4d7a8c=a97_0x2db1,_0x2e67b3={};for(const _0x2e627d of normalizeLocalFiles(_0x1ffbb9)){_0x2e67b3[_0x2e627d['path']]=fileContent(_0x2e627d);}const _0x404c7a=Buffer[_0x4d7a8c(0x1df)](zipSync(_0x2e67b3,{'level':0x0,'mtime':ZIP_MTIME}));if(_0x404c7a[_0x4d7a8c(0x1d1)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x4d7a8c(0x1d6)](_0x4d7a8c(0x1d3));return _0x404c7a;}export function parseZipPackage(_0x1417cb){const _0xcfb968=a97_0x2db1;if(_0x1417cb[_0xcfb968(0x1d1)]<0x16)throw CliErrors['validation'](_0xcfb968(0x1dc));if(_0x1417cb['length']>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0xcfb968(0x1d7));let _0x40186b=0x0,_0x1cdde7=0x0,_0x209aff;try{_0x209aff=unzipSync(_0x1417cb,{'filter'(_0x4ade44){const _0x84a0cf=_0xcfb968,_0x21a6fc=normalizeSkillRelativePath(_0x4ade44[_0x84a0cf(0x1d2)]);if(_0x21a6fc['endsWith']('/'))throw CliErrors[_0x84a0cf(0x1d6)](_0x84a0cf(0x1db)+_0x21a6fc);if(_0x4ade44[_0x84a0cf(0x1dd)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x84a0cf(0x1d6)](_0x84a0cf(0x1de)+_0x21a6fc);_0x40186b+=0x1;if(_0x40186b>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x84a0cf(0x1d6)](_0x84a0cf(0x1cf));_0x1cdde7+=_0x4ade44[_0x84a0cf(0x1dd)];if(_0x1cdde7>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x84a0cf(0x1d6)](_0x84a0cf(0x1d0));return!![];}});}catch(_0x249e4c){if(isRuntimeSkillValidationError(_0x249e4c))throw _0x249e4c;throw CliErrors[_0xcfb968(0x1d6)](_0xcfb968(0x1dc));}return Object[_0xcfb968(0x1e2)](_0x209aff)[_0xcfb968(0x1d5)](([_0x2a5657,_0x4ae2a7])=>({'path':normalizeSkillRelativePath(_0x2a5657),'bytes':Buffer['from'](_0x4ae2a7)}))[_0xcfb968(0x1d8)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x17c763){const _0x4ab5da=a97_0x2db1;return typeof _0x17c763==='object'&&_0x17c763!==null&&_0x4ab5da(0x1d4)in _0x17c763&&_0x17c763['code']===_0x4ab5da(0x1e1);}
1
+ (function(_0x5bda8b,_0x4cd097){const _0x1c5b1c=a97_0x3734,_0x5c9615=_0x5bda8b();while(!![]){try{const _0x233e1d=-parseInt(_0x1c5b1c(0x1b2))/0x1*(-parseInt(_0x1c5b1c(0x1b5))/0x2)+parseInt(_0x1c5b1c(0x19d))/0x3+-parseInt(_0x1c5b1c(0x1b0))/0x4*(parseInt(_0x1c5b1c(0x1a4))/0x5)+parseInt(_0x1c5b1c(0x19e))/0x6+-parseInt(_0x1c5b1c(0x1ac))/0x7*(parseInt(_0x1c5b1c(0x1a9))/0x8)+-parseInt(_0x1c5b1c(0x1a5))/0x9*(-parseInt(_0x1c5b1c(0x1ad))/0xa)+parseInt(_0x1c5b1c(0x1b1))/0xb*(-parseInt(_0x1c5b1c(0x1b6))/0xc);if(_0x233e1d===_0x4cd097)break;else _0x5c9615['push'](_0x5c9615['shift']());}catch(_0x405d3b){_0x5c9615['push'](_0x5c9615['shift']());}}}(a97_0x1166,0x5e6a0));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{MAX_SKILL_FILE_BYTES,MAX_SKILL_FILE_COUNT,MAX_SKILL_PACKAGE_BYTES,MAX_SKILL_TOTAL_BYTES}from'./constants.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');function a97_0x3734(_0x54573f,_0x2fbf6f){_0x54573f=_0x54573f-0x19a;const _0x11662d=a97_0x1166();let _0x37346e=_0x11662d[_0x54573f];return _0x37346e;}function a97_0x1166(){const _0x56e344=['entries','object','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','map','validation','1948910tjIyEP','142290kDJslp','validation_error','code','path','208uzndUP','length','endsWith','129913jMSqdI','470aatmsU','sort','originalSize','4cNAALJ','77891wWDFyt','1qHEjbG','Runtime\x20Skill\x20package\x20exceeds\x20total\x20file\x20size\x20limit.','Runtime\x20Skill\x20package\x20exceeds\x20file\x20count\x20limit.','722798FNUuro','1608IrYAEQ','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','Skill\x20package\x20exceeds\x20size\x20limit.','from','1590405bAeYRf','3439716LlVXww'];a97_0x1166=function(){return _0x56e344;};return a97_0x1166();}export function createDeterministicZipPackage(_0x46a3a1){const _0x2a0d7e=a97_0x3734,_0x546be1={};for(const _0x4bbe5b of normalizeLocalFiles(_0x46a3a1)){_0x546be1[_0x4bbe5b[_0x2a0d7e(0x1a8)]]=fileContent(_0x4bbe5b);}const _0x4a97ff=Buffer[_0x2a0d7e(0x19c)](zipSync(_0x546be1,{'level':0x0,'mtime':ZIP_MTIME}));if(_0x4a97ff[_0x2a0d7e(0x1aa)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x2a0d7e(0x1a3)](_0x2a0d7e(0x19b));return _0x4a97ff;}export function parseZipPackage(_0x2e1baf){const _0x5bdf03=a97_0x3734;if(_0x2e1baf[_0x5bdf03(0x1aa)]<0x16)throw CliErrors[_0x5bdf03(0x1a3)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');if(_0x2e1baf[_0x5bdf03(0x1aa)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x5bdf03(0x1a3)]('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.');let _0xf6ad7b=0x0,_0x2423be=0x0,_0x5b94aa;try{_0x5b94aa=unzipSync(_0x2e1baf,{'filter'(_0x49866c){const _0x9a1cab=_0x5bdf03,_0x4f3913=normalizeSkillRelativePath(_0x49866c['name']);if(_0x4f3913[_0x9a1cab(0x1ab)]('/'))throw CliErrors[_0x9a1cab(0x1a3)](_0x9a1cab(0x1a1)+_0x4f3913);if(_0x49866c[_0x9a1cab(0x1af)]>MAX_SKILL_FILE_BYTES)throw CliErrors[_0x9a1cab(0x1a3)]('Runtime\x20Skill\x20package\x20file\x20exceeds\x20size\x20limit:\x20'+_0x4f3913);_0xf6ad7b+=0x1;if(_0xf6ad7b>MAX_SKILL_FILE_COUNT)throw CliErrors[_0x9a1cab(0x1a3)](_0x9a1cab(0x1b4));_0x2423be+=_0x49866c[_0x9a1cab(0x1af)];if(_0x2423be>MAX_SKILL_TOTAL_BYTES)throw CliErrors[_0x9a1cab(0x1a3)](_0x9a1cab(0x1b3));return!![];}});}catch(_0xc04a07){if(isRuntimeSkillValidationError(_0xc04a07))throw _0xc04a07;throw CliErrors[_0x5bdf03(0x1a3)](_0x5bdf03(0x19a));}return Object[_0x5bdf03(0x19f)](_0x5b94aa)[_0x5bdf03(0x1a2)](([_0x1f80dc,_0x4c0cdf])=>({'path':normalizeSkillRelativePath(_0x1f80dc),'bytes':Buffer[_0x5bdf03(0x19c)](_0x4c0cdf)}))[_0x5bdf03(0x1ae)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x42b405){const _0x31efed=a97_0x3734;return typeof _0x42b405===_0x31efed(0x1a0)&&_0x42b405!==null&&_0x31efed(0x1a7)in _0x42b405&&_0x42b405['code']===_0x31efed(0x1a6);}
@@ -1 +1 @@
1
- (function(_0x5180da,_0x30d325){const _0x4e1802=a98_0x5cd1,_0x5b3957=_0x5180da();while(!![]){try{const _0x13b751=parseInt(_0x4e1802(0xc0))/0x1*(parseInt(_0x4e1802(0xe1))/0x2)+parseInt(_0x4e1802(0xb9))/0x3+-parseInt(_0x4e1802(0xc2))/0x4+-parseInt(_0x4e1802(0xb7))/0x5+-parseInt(_0x4e1802(0xe0))/0x6*(parseInt(_0x4e1802(0xdb))/0x7)+parseInt(_0x4e1802(0xc5))/0x8+parseInt(_0x4e1802(0xb8))/0x9*(parseInt(_0x4e1802(0xd5))/0xa);if(_0x13b751===_0x30d325)break;else _0x5b3957['push'](_0x5b3957['shift']());}catch(_0x3f9605){_0x5b3957['push'](_0x5b3957['shift']());}}}(a98_0x4be2,0xa54ed));import{CliErrors}from'../../errors.js';import{MAX_SKILL_PACKAGE_BYTES,SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a98_0x5cd1(_0x566dc5,_0x530b38){_0x566dc5=_0x566dc5-0xb4;const _0x4be223=a98_0x4be2();let _0x5cd118=_0x4be223[_0x566dc5];return _0x5cd118;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x6d9758){const _0x5bb877=a98_0x5cd1,_0x2d7321=normalizeLocalFiles(_0x6d9758);if(!_0x2d7321[_0x5bb877(0xd6)](_0xb47ef1=>_0xb47ef1[_0x5bb877(0xbf)]===SKILL_FILE))throw CliErrors['validation'](_0x5bb877(0xb4)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1e78e4=localFilesToManifestFiles(_0x2d7321),_0x2d7af8=createDeterministicZipPackage(_0x2d7321);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1e78e4),'zipSha256':bufferSha256(_0x2d7af8),'zipSize':_0x2d7af8[_0x5bb877(0xcf)],'files':_0x1e78e4},'packageBytes':_0x2d7af8,'packageBase64':_0x2d7af8['toString'](_0x5bb877(0xbc))};}export function verifyRuntimeSkillPackage(_0x44bd9c,_0x5b71ed){const _0x3cab1c=a98_0x5cd1,_0x1d1291=normalizePackageManifest(_0x44bd9c,{'requireOssPath':![]});if(!_0x1d1291)throw CliErrors[_0x3cab1c(0xd7)](_0x3cab1c(0xd3));return extractAndVerifyPackage(_0x1d1291,_0x5b71ed);}export function verifyRuntimeSkillBundle(_0xeadf5,_0x438e67){const _0x131e2d=a98_0x5cd1,_0x2af11f=normalizePackageManifest(_0xeadf5,{'requireOssPath':![]});if(!_0x2af11f)throw CliErrors['validation'](_0x131e2d(0xd3));if(_0x438e67[_0x131e2d(0xcf)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.');return extractAndVerifyPackageFiles(_0x2af11f,_0x438e67);}export function tryNormalizePackageManifest(_0x5ded04){return normalizePackageManifest(_0x5ded04,{'requireOssPath':![]});}export function requirePackageBytes(_0x36813b,_0x457060){const _0x272554=a98_0x5cd1;if(!_0x457060||_0x457060['length']===0x0)throw CliErrors[_0x272554(0xd7)](_0x272554(0xcc)+_0x36813b);if(_0x457060[_0x272554(0xcf)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x272554(0xd7)](_0x272554(0xdd)+_0x36813b);return _0x457060;}function a98_0x4be2(){const _0x4fbb12=['sha256','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','map','6DWweEJ','106XDcohx','set','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','has','Missing\x20','files','push','5340565bHPAzy','9lHCSfb','2563737qwQGjp','isSafeInteger','ossPath','base64','bytes','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','path','7249TgVypp','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','5291980bxgduN','string','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','8379752FsXudh','isArray','schemaVersion','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','get','object','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','toLowerCase','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','length','zipSha256','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','size','10247110JMTBPp','some','validation','requireOssPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','zipSize','1699229aNXCxj'];a98_0x4be2=function(){return _0x4fbb12;};return a98_0x4be2();}export function extractDownloadedPackage(_0x3f655){const _0x1fd667=a98_0x5cd1,_0x85f58b=parseZipPackage(_0x3f655)[_0x1fd667(0xdf)](_0x575ce8=>({'path':_0x575ce8[_0x1fd667(0xbf)],'bytes':_0x575ce8[_0x1fd667(0xbd)]}));if(!_0x85f58b[_0x1fd667(0xd6)](_0x3ba25d=>_0x3ba25d[_0x1fd667(0xbf)]===SKILL_FILE))throw CliErrors[_0x1fd667(0xd7)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0x85f58b);}export function localFilesToManifestFiles(_0x5d6bd2){const _0x574beb=a98_0x5cd1;return normalizeLocalFiles(_0x5d6bd2)[_0x574beb(0xdf)](_0x9618ff=>({'path':_0x9618ff[_0x574beb(0xbf)],'sha256':fileHash(_0x9618ff),'size':fileContent(_0x9618ff)[_0x574beb(0xcf)]}));}function normalizePackageManifest(_0x249157,_0x53a35d){const _0x264821=a98_0x5cd1;if(!_0x249157||typeof _0x249157!==_0x264821(0xca)||Array[_0x264821(0xc6)](_0x249157))return undefined;const _0x18fea0=_0x249157,_0x17b86f=typeof _0x18fea0[_0x264821(0xbb)]===_0x264821(0xc3)?_0x18fea0[_0x264821(0xbb)]['trim']():undefined;if(_0x53a35d[_0x264821(0xd8)]&&!_0x17b86f)return undefined;if(!Array[_0x264821(0xc6)](_0x18fea0[_0x264821(0xb5)])||_0x18fea0[_0x264821(0xb5)][_0x264821(0xcf)]===0x0)return undefined;if(!isSha256Hex(_0x18fea0['treeSha256']))throw CliErrors[_0x264821(0xd7)](_0x264821(0xd9));if(!isSha256Hex(_0x18fea0[_0x264821(0xd0)]))throw CliErrors[_0x264821(0xd7)](_0x264821(0xc1));if(!Number['isSafeInteger'](_0x18fea0[_0x264821(0xda)])||_0x18fea0[_0x264821(0xda)]<0x0)throw CliErrors[_0x264821(0xd7)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');if(_0x18fea0[_0x264821(0xda)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors['validation'](_0x264821(0xe3));const _0x150ec3=normalizeManifestFiles(_0x18fea0[_0x264821(0xb5)]);if(!_0x150ec3[_0x264821(0xd6)](_0x290494=>_0x290494[_0x264821(0xbf)]===SKILL_FILE))throw CliErrors[_0x264821(0xd7)](_0x264821(0xbe)+SKILL_FILE+'.');const _0x1eb696=fileTreeHash(_0x150ec3);if(_0x1eb696!==_0x18fea0['treeSha256'][_0x264821(0xcd)]())throw CliErrors['validation'](_0x264821(0xc4));return{'schemaVersion':Number[_0x264821(0xba)](_0x18fea0[_0x264821(0xc7)])?_0x18fea0['schemaVersion']:0x2,'ossPath':_0x17b86f,'treeSha256':_0x1eb696,'zipSha256':_0x18fea0[_0x264821(0xd0)][_0x264821(0xcd)](),'zipSize':_0x18fea0[_0x264821(0xda)],'files':_0x150ec3};}function extractAndVerifyPackage(_0x3c173a,_0x2a4837){const _0x2e1cac=a98_0x5cd1,_0x2fdfbf=normalizePackageManifest(_0x3c173a,{'requireOssPath':![]});if(!_0x2fdfbf)throw CliErrors[_0x2e1cac(0xd7)](_0x2e1cac(0xd3));if(_0x2a4837[_0x2e1cac(0xcf)]!==_0x2fdfbf[_0x2e1cac(0xda)])throw CliErrors['validation'](_0x2e1cac(0xcb));const _0x53d998=bufferSha256(_0x2a4837);if(_0x53d998!==_0x2fdfbf[_0x2e1cac(0xd0)])throw CliErrors[_0x2e1cac(0xd7)](_0x2e1cac(0xce));return extractAndVerifyPackageFiles(_0x2fdfbf,_0x2a4837);}function extractAndVerifyPackageFiles(_0x11b642,_0x57e6fb){const _0x27538e=a98_0x5cd1,_0x1d6b39=parseZipPackage(_0x57e6fb);if(_0x1d6b39[_0x27538e(0xcf)]!==_0x11b642[_0x27538e(0xb5)][_0x27538e(0xcf)])throw CliErrors['validation'](_0x27538e(0xde));const _0x3e5300=new Map();for(const _0x543b38 of _0x1d6b39){if(_0x3e5300[_0x27538e(0xe4)](_0x543b38[_0x27538e(0xbf)]))throw CliErrors[_0x27538e(0xd7)](_0x27538e(0xd2)+_0x543b38[_0x27538e(0xbf)]);_0x3e5300[_0x27538e(0xe2)](_0x543b38[_0x27538e(0xbf)],_0x543b38);}const _0x112899=[];for(const _0x44accf of _0x11b642[_0x27538e(0xb5)]){const _0xf8d8b6=_0x3e5300[_0x27538e(0xc9)](_0x44accf[_0x27538e(0xbf)]);if(!_0xf8d8b6)throw CliErrors[_0x27538e(0xd7)](_0x27538e(0xc8)+_0x44accf['path']);if(_0xf8d8b6[_0x27538e(0xbd)][_0x27538e(0xcf)]!==_0x44accf[_0x27538e(0xd4)])throw CliErrors['validation'](_0x27538e(0xd1)+_0x44accf[_0x27538e(0xbf)]);const _0x322f7f=bufferSha256(_0xf8d8b6['bytes']);if(_0x322f7f!==_0x44accf[_0x27538e(0xdc)])throw CliErrors[_0x27538e(0xd7)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x44accf[_0x27538e(0xbf)]);_0x112899[_0x27538e(0xb6)]({'path':_0x44accf['path'],'bytes':_0xf8d8b6[_0x27538e(0xbd)]});}return normalizeLocalFiles(_0x112899);}
1
+ (function(_0x12746b,_0x544cf9){const _0xa750a=a98_0x6abb,_0x177304=_0x12746b();while(!![]){try{const _0x2377a7=parseInt(_0xa750a(0xc1))/0x1+parseInt(_0xa750a(0xa8))/0x2+-parseInt(_0xa750a(0xb2))/0x3*(parseInt(_0xa750a(0xa6))/0x4)+-parseInt(_0xa750a(0xbd))/0x5+-parseInt(_0xa750a(0xaf))/0x6+-parseInt(_0xa750a(0xca))/0x7*(parseInt(_0xa750a(0xc3))/0x8)+parseInt(_0xa750a(0xc5))/0x9*(parseInt(_0xa750a(0xd4))/0xa);if(_0x2377a7===_0x544cf9)break;else _0x177304['push'](_0x177304['shift']());}catch(_0x10eb5a){_0x177304['push'](_0x177304['shift']());}}}(a98_0x4990,0xca450));function a98_0x6abb(_0x3c7a32,_0x4f7b19){_0x3c7a32=_0x3c7a32-0xa5;const _0x4990a8=a98_0x4990();let _0x6abb39=_0x4990a8[_0x3c7a32];return _0x6abb39;}import{CliErrors}from'../../errors.js';import{MAX_SKILL_PACKAGE_BYTES,SKILL_FILE}from'./constants.js';function a98_0x4990(){const _0x388fa2=['toString','get','length','ossPath','4OGGmrb','sha256','707298MMKoKe','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit:\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','files','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','5480856TfcTHf','zipSize','string','3148521zJtPpB','some','set','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.','object','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','treeSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','bytes','map','321640YWTGyW','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','zipSha256','1349042kCRThz','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','7443496piUvqX','size','18751977JSsGHn','validation','trim','Runtime\x20Skill\x20package\x20is\x20missing\x20','Missing\x20','7ELLwyB','isSafeInteger','toLowerCase','has','path','base64','requireOssPath','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','push','10UEPJWO','isArray'];a98_0x4990=function(){return _0x388fa2;};return a98_0x4990();}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x28d9ee){const _0x5bb288=a98_0x6abb,_0x14e72a=normalizeLocalFiles(_0x28d9ee);if(!_0x14e72a[_0x5bb288(0xb3)](_0x3fa985=>_0x3fa985[_0x5bb288(0xce)]===SKILL_FILE))throw CliErrors[_0x5bb288(0xc6)](_0x5bb288(0xc9)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x4a5bb7=localFilesToManifestFiles(_0x14e72a),_0x5a6614=createDeterministicZipPackage(_0x14e72a);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x4a5bb7),'zipSha256':bufferSha256(_0x5a6614),'zipSize':_0x5a6614['length'],'files':_0x4a5bb7},'packageBytes':_0x5a6614,'packageBase64':_0x5a6614[_0x5bb288(0xd6)](_0x5bb288(0xcf))};}export function verifyRuntimeSkillPackage(_0x4ce4fc,_0x727c39){const _0x1a3d32=a98_0x6abb,_0x19029f=normalizePackageManifest(_0x4ce4fc,{'requireOssPath':![]});if(!_0x19029f)throw CliErrors[_0x1a3d32(0xc6)](_0x1a3d32(0xbe));return extractAndVerifyPackage(_0x19029f,_0x727c39);}export function verifyRuntimeSkillBundle(_0x1608d3,_0x5b0875){const _0x54180d=a98_0x6abb,_0x1169b4=normalizePackageManifest(_0x1608d3,{'requireOssPath':![]});if(!_0x1169b4)throw CliErrors['validation'](_0x54180d(0xbe));if(_0x5b0875[_0x54180d(0xd8)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x54180d(0xc6)]('Runtime\x20Skill\x20package\x20exceeds\x20size\x20limit.');return extractAndVerifyPackageFiles(_0x1169b4,_0x5b0875);}export function tryNormalizePackageManifest(_0x5ff369){return normalizePackageManifest(_0x5ff369,{'requireOssPath':![]});}export function requirePackageBytes(_0x2adbb5,_0x38ea34){const _0x43cfe1=a98_0x6abb;if(!_0x38ea34||_0x38ea34[_0x43cfe1(0xd8)]===0x0)throw CliErrors['validation'](_0x43cfe1(0xd1)+_0x2adbb5);if(_0x38ea34[_0x43cfe1(0xd8)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x43cfe1(0xc6)](_0x43cfe1(0xaa)+_0x2adbb5);return _0x38ea34;}export function extractDownloadedPackage(_0x21e376){const _0x116fc4=a98_0x6abb,_0x1f8b24=parseZipPackage(_0x21e376)[_0x116fc4(0xbc)](_0x2eaf61=>({'path':_0x2eaf61[_0x116fc4(0xce)],'bytes':_0x2eaf61['bytes']}));if(!_0x1f8b24[_0x116fc4(0xb3)](_0x1e5b37=>_0x1e5b37[_0x116fc4(0xce)]===SKILL_FILE))throw CliErrors[_0x116fc4(0xc6)](_0x116fc4(0xc8)+SKILL_FILE+'.');return normalizeLocalFiles(_0x1f8b24);}export function localFilesToManifestFiles(_0x46d648){const _0x1c152d=a98_0x6abb;return normalizeLocalFiles(_0x46d648)[_0x1c152d(0xbc)](_0x3a0df4=>({'path':_0x3a0df4['path'],'sha256':fileHash(_0x3a0df4),'size':fileContent(_0x3a0df4)[_0x1c152d(0xd8)]}));}function normalizePackageManifest(_0x23cb56,_0x306afd){const _0x150ee2=a98_0x6abb;if(!_0x23cb56||typeof _0x23cb56!==_0x150ee2(0xb7)||Array[_0x150ee2(0xd5)](_0x23cb56))return undefined;const _0x5b63c7=_0x23cb56,_0x5cab75=typeof _0x5b63c7[_0x150ee2(0xa5)]===_0x150ee2(0xb1)?_0x5b63c7['ossPath'][_0x150ee2(0xc7)]():undefined;if(_0x306afd[_0x150ee2(0xd0)]&&!_0x5cab75)return undefined;if(!Array['isArray'](_0x5b63c7[_0x150ee2(0xac)])||_0x5b63c7['files'][_0x150ee2(0xd8)]===0x0)return undefined;if(!isSha256Hex(_0x5b63c7['treeSha256']))throw CliErrors[_0x150ee2(0xc6)](_0x150ee2(0xb8));if(!isSha256Hex(_0x5b63c7[_0x150ee2(0xc0)]))throw CliErrors[_0x150ee2(0xc6)](_0x150ee2(0xae));if(!Number[_0x150ee2(0xcb)](_0x5b63c7[_0x150ee2(0xb0)])||_0x5b63c7[_0x150ee2(0xb0)]<0x0)throw CliErrors[_0x150ee2(0xc6)](_0x150ee2(0xb5));if(_0x5b63c7[_0x150ee2(0xb0)]>MAX_SKILL_PACKAGE_BYTES)throw CliErrors[_0x150ee2(0xc6)](_0x150ee2(0xb6));const _0x72eae9=normalizeManifestFiles(_0x5b63c7['files']);if(!_0x72eae9['some'](_0x4b722e=>_0x4b722e[_0x150ee2(0xce)]===SKILL_FILE))throw CliErrors[_0x150ee2(0xc6)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x4605b9=fileTreeHash(_0x72eae9);if(_0x4605b9!==_0x5b63c7[_0x150ee2(0xb9)]['toLowerCase']())throw CliErrors[_0x150ee2(0xc6)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x5b63c7[_0x150ee2(0xad)])?_0x5b63c7[_0x150ee2(0xad)]:0x2,'ossPath':_0x5cab75,'treeSha256':_0x4605b9,'zipSha256':_0x5b63c7[_0x150ee2(0xc0)][_0x150ee2(0xcc)](),'zipSize':_0x5b63c7[_0x150ee2(0xb0)],'files':_0x72eae9};}function extractAndVerifyPackage(_0x563978,_0x51a971){const _0x533287=a98_0x6abb,_0x35949f=normalizePackageManifest(_0x563978,{'requireOssPath':![]});if(!_0x35949f)throw CliErrors[_0x533287(0xc6)](_0x533287(0xbe));if(_0x51a971[_0x533287(0xd8)]!==_0x35949f[_0x533287(0xb0)])throw CliErrors['validation'](_0x533287(0xd2));const _0x208610=bufferSha256(_0x51a971);if(_0x208610!==_0x35949f[_0x533287(0xc0)])throw CliErrors[_0x533287(0xc6)](_0x533287(0xc2));return extractAndVerifyPackageFiles(_0x35949f,_0x51a971);}function extractAndVerifyPackageFiles(_0x16fca1,_0x2dbd4b){const _0x1eac36=a98_0x6abb,_0x185861=parseZipPackage(_0x2dbd4b);if(_0x185861[_0x1eac36(0xd8)]!==_0x16fca1[_0x1eac36(0xac)][_0x1eac36(0xd8)])throw CliErrors['validation'](_0x1eac36(0xab));const _0x3dbc68=new Map();for(const _0x430fb9 of _0x185861){if(_0x3dbc68[_0x1eac36(0xcd)](_0x430fb9[_0x1eac36(0xce)]))throw CliErrors[_0x1eac36(0xc6)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x430fb9[_0x1eac36(0xce)]);_0x3dbc68[_0x1eac36(0xb4)](_0x430fb9[_0x1eac36(0xce)],_0x430fb9);}const _0x572269=[];for(const _0x21ddf4 of _0x16fca1['files']){const _0x2e31e3=_0x3dbc68[_0x1eac36(0xd7)](_0x21ddf4[_0x1eac36(0xce)]);if(!_0x2e31e3)throw CliErrors[_0x1eac36(0xc6)](_0x1eac36(0xa9)+_0x21ddf4[_0x1eac36(0xce)]);if(_0x2e31e3[_0x1eac36(0xbb)]['length']!==_0x21ddf4[_0x1eac36(0xc4)])throw CliErrors[_0x1eac36(0xc6)](_0x1eac36(0xbf)+_0x21ddf4[_0x1eac36(0xce)]);const _0x2aefc1=bufferSha256(_0x2e31e3[_0x1eac36(0xbb)]);if(_0x2aefc1!==_0x21ddf4[_0x1eac36(0xa7)])throw CliErrors['validation'](_0x1eac36(0xba)+_0x21ddf4[_0x1eac36(0xce)]);_0x572269[_0x1eac36(0xd3)]({'path':_0x21ddf4['path'],'bytes':_0x2e31e3['bytes']});}return normalizeLocalFiles(_0x572269);}
@@ -1 +1 @@
1
- (function(_0x3b2052,_0xc02706){var _0x36e599=a99_0xddf9,_0xc63fea=_0x3b2052();while(!![]){try{var _0x48551=-parseInt(_0x36e599(0x1e0))/0x1+-parseInt(_0x36e599(0x1de))/0x2*(-parseInt(_0x36e599(0x1df))/0x3)+-parseInt(_0x36e599(0x1e5))/0x4*(parseInt(_0x36e599(0x1e4))/0x5)+-parseInt(_0x36e599(0x1e2))/0x6*(-parseInt(_0x36e599(0x1e7))/0x7)+-parseInt(_0x36e599(0x1e6))/0x8+parseInt(_0x36e599(0x1e1))/0x9*(-parseInt(_0x36e599(0x1e3))/0xa)+parseInt(_0x36e599(0x1dd))/0xb;if(_0x48551===_0xc02706)break;else _0xc63fea['push'](_0xc63fea['shift']());}catch(_0x4de156){_0xc63fea['push'](_0xc63fea['shift']());}}}(a99_0x25d2,0xe7744));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';function a99_0xddf9(_0x1b374e,_0x3f1bdd){_0x1b374e=_0x1b374e-0x1dd;var _0x25d2a2=a99_0x25d2();var _0xddf949=_0x25d2a2[_0x1b374e];return _0xddf949;}function a99_0x25d2(){var _0x151161=['9ZmEMDh','1414446EjiuXI','1270737GAXXxe','12Lwjbvx','30VZJOOb','185bruSRD','74148mPYSCs','9600808mtGpCl','2616362MnstpW','26194619UhimfW','1028780GWhcWU'];a99_0x25d2=function(){return _0x151161;};return a99_0x25d2();}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,recordPushedRuntimeSkill}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x44f7a3,_0x548981){var _0x395cc6=a99_0x2823,_0xd12a1e=_0x44f7a3();while(!![]){try{var _0x345d0b=-parseInt(_0x395cc6(0x194))/0x1*(parseInt(_0x395cc6(0x19a))/0x2)+parseInt(_0x395cc6(0x193))/0x3*(parseInt(_0x395cc6(0x192))/0x4)+-parseInt(_0x395cc6(0x195))/0x5+parseInt(_0x395cc6(0x198))/0x6+-parseInt(_0x395cc6(0x197))/0x7+parseInt(_0x395cc6(0x196))/0x8+parseInt(_0x395cc6(0x199))/0x9;if(_0x345d0b===_0x548981)break;else _0xd12a1e['push'](_0xd12a1e['shift']());}catch(_0x4d5b69){_0xd12a1e['push'](_0xd12a1e['shift']());}}}(a99_0x4e88,0x735bd));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,recordPushedRuntimeSkill}from'./runtime-skill-sync/push.js';function a99_0x2823(_0x17c9a8,_0x3998c6){_0x17c9a8=_0x17c9a8-0x192;var _0x4e889b=a99_0x4e88();var _0x282326=_0x4e889b[_0x17c9a8];return _0x282326;}function a99_0x4e88(){var _0x14521a=['695616tzoDoe','227297QrVsot','3026364ZiWady','611928CFGHFp','132798uEEBBO','388964dvXcwW','15JGgQjg','2yWpHhw','2538825BXIlOg'];a99_0x4e88=function(){return _0x14521a;};return a99_0x4e88();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- (function(_0x4e04be,_0x44588d){const _0x315c7d=a100_0x4a34,_0x257bf8=_0x4e04be();while(!![]){try{const _0xaa681=-parseInt(_0x315c7d(0x17d))/0x1+-parseInt(_0x315c7d(0x17c))/0x2+-parseInt(_0x315c7d(0x17f))/0x3*(-parseInt(_0x315c7d(0x184))/0x4)+-parseInt(_0x315c7d(0x17e))/0x5+parseInt(_0x315c7d(0x183))/0x6+-parseInt(_0x315c7d(0x180))/0x7+-parseInt(_0x315c7d(0x181))/0x8*(-parseInt(_0x315c7d(0x182))/0x9);if(_0xaa681===_0x44588d)break;else _0x257bf8['push'](_0x257bf8['shift']());}catch(_0x426807){_0x257bf8['push'](_0x257bf8['shift']());}}}(a100_0x41b0,0x2e942));function a100_0x4a34(_0x1135db,_0x5a0f95){_0x1135db=_0x1135db-0x17c;const _0x41b0d4=a100_0x41b0();let _0x4a3433=_0x41b0d4[_0x1135db];return _0x4a3433;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a100_0x41b0(){const _0x28a26d=['8atOurM','5305752WpnISs','366354qRuDHR','715308ZWaels','281182aEaqFv','13296lEpwTo','931915FVnoZk','3qJHmKz','2088506JwXFuT'];a100_0x41b0=function(){return _0x28a26d;};return a100_0x41b0();}
1
+ (function(_0x282edd,_0x3f6e01){const _0x223692=a100_0xdca6,_0x22e598=_0x282edd();while(!![]){try{const _0x54aea3=-parseInt(_0x223692(0x1ea))/0x1*(parseInt(_0x223692(0x1ed))/0x2)+-parseInt(_0x223692(0x1e9))/0x3*(-parseInt(_0x223692(0x1ef))/0x4)+-parseInt(_0x223692(0x1e8))/0x5+-parseInt(_0x223692(0x1f0))/0x6+parseInt(_0x223692(0x1ee))/0x7*(parseInt(_0x223692(0x1eb))/0x8)+parseInt(_0x223692(0x1f1))/0x9*(-parseInt(_0x223692(0x1f2))/0xa)+parseInt(_0x223692(0x1ec))/0xb;if(_0x54aea3===_0x3f6e01)break;else _0x22e598['push'](_0x22e598['shift']());}catch(_0x5d520f){_0x22e598['push'](_0x22e598['shift']());}}}(a100_0x57a0,0xb0646));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a100_0x57a0(){const _0xf14130=['4314594hAToNA','123831CvghOM','300TfdnAK','5699440hRajVP','190389GLDDIT','10641PWPQmx','4744bfYymu','24602710sShzXN','50Kvjjac','2345ehdvSQ','52kwuPaA'];a100_0x57a0=function(){return _0xf14130;};return a100_0x57a0();}import{CliErrors}from'../errors.js';function a100_0xdca6(_0x13b831,_0x237a9a){_0x13b831=_0x13b831-0x1e8;const _0x57a0fa=a100_0x57a0();let _0xdca6cf=_0x57a0fa[_0x13b831];return _0xdca6cf;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a101_0x30aa(_0x36deb9,_0x3dc289){_0x36deb9=_0x36deb9-0x7c;const _0x52c4b7=a101_0x52c4();let _0x30aa74=_0x52c4b7[_0x36deb9];return _0x30aa74;}function a101_0x52c4(){const _0x597f58=['details','mkdirSync','transports','parse','addColors','1903685EHSasw','blue','444530YiAgEI','459812AMNYbl','utf8','timestamp','Completed:\x20','rawCommand','writeFileSync','logFileName','warn','info','6hSIkEu','duration','green','yellow','readFileSync','level','winstonLogger','9vpPHyd','command','success','dirname','filter','File','error','split','map','red','message','combine','format','existsSync','clear','logFilePath','Failed\x20to\x20read\x20logs:','currentRawCommand','errors','Starting:\x20','toISOString','readLogs','180702QCQaMg','join','unknown','now','Failed:\x20','361864FPOkgD','201611cMSKPw','getWinstonInstance','6214952aEXmLG','printf'];a101_0x52c4=function(){return _0x597f58;};return a101_0x52c4();}const a101_0x5601f9=a101_0x30aa;(function(_0x424db6,_0x1de299){const _0x4b38b0=a101_0x30aa,_0x4ac279=_0x424db6();while(!![]){try{const _0xa54c00=parseInt(_0x4b38b0(0x8b))/0x1+parseInt(_0x4b38b0(0x8a))/0x2+parseInt(_0x4b38b0(0x85))/0x3+parseInt(_0x4b38b0(0x97))/0x4+parseInt(_0x4b38b0(0x96))/0x5*(parseInt(_0x4b38b0(0xa0))/0x6)+parseInt(_0x4b38b0(0x94))/0x7+parseInt(_0x4b38b0(0x8d))/0x8*(-parseInt(_0x4b38b0(0xa7))/0x9);if(_0xa54c00===_0x1de299)break;else _0x4ac279['push'](_0x4ac279['shift']());}catch(_0x463766){_0x4ac279['push'](_0x4ac279['shift']());}}}(a101_0x52c4,0x2299a));import a101_0x43c560 from'winston';import a101_0x1b8f80 from'node:fs';import a101_0x3b5eba from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a101_0x5601f9(0xa6)];[a101_0x5601f9(0x7e)]='';[a101_0x5601f9(0x80)]='';constructor(){}['setRawCommand'](_0x357ca6){const _0x252476=a101_0x5601f9;this[_0x252476(0x80)]=_0x357ca6;}['setLogPath'](_0x516d48){const _0x3a8198=a101_0x5601f9;this[_0x3a8198(0x7e)]=a101_0x3b5eba[_0x3a8198(0x86)](_0x516d48,PRODUCT_CONFIG[_0x3a8198(0x9d)]),this[_0x3a8198(0xa6)]&&this[_0x3a8198(0xa6)][_0x3a8198(0x7d)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x74d1e7=a101_0x5601f9,_0x269b69=a101_0x3b5eba[_0x74d1e7(0xaa)](this[_0x74d1e7(0x7e)]);!a101_0x1b8f80[_0x74d1e7(0x7c)](_0x269b69)&&a101_0x1b8f80[_0x74d1e7(0x90)](_0x269b69,{'recursive':!![]});const _0x4fa0a9=a101_0x43c560[_0x74d1e7(0xb3)][_0x74d1e7(0xb2)](a101_0x43c560['format'][_0x74d1e7(0x99)](),a101_0x43c560[_0x74d1e7(0xb3)][_0x74d1e7(0x81)]({'stack':!![]}),a101_0x43c560[_0x74d1e7(0xb3)][_0x74d1e7(0x8e)](_0x9a22=>{const _0x4c16ae=_0x74d1e7,_0x1dcca7={'timestamp':_0x9a22['timestamp']||new Date()[_0x4c16ae(0x83)](),'level':_0x9a22[_0x4c16ae(0xa5)]||_0x4c16ae(0x9f),'command':_0x9a22[_0x4c16ae(0xa8)]||_0x4c16ae(0x87),'rawCommand':_0x9a22[_0x4c16ae(0x9b)]||this[_0x4c16ae(0x80)]||undefined,'message':_0x9a22['message']||'','duration':_0x9a22[_0x4c16ae(0xa1)]||undefined,'details':_0x9a22[_0x4c16ae(0x8f)]||undefined};return JSON['stringify'](_0x1dcca7);}));this[_0x74d1e7(0xa6)]=a101_0x43c560['createLogger']({'level':'info','format':_0x4fa0a9,'transports':[new a101_0x43c560[(_0x74d1e7(0x91))][(_0x74d1e7(0xac))]({'filename':this[_0x74d1e7(0x7e)],'level':'info'})],'silent':![]}),a101_0x43c560[_0x74d1e7(0x93)]({'success':_0x74d1e7(0xa2),'error':_0x74d1e7(0xb0),'warn':_0x74d1e7(0xa3),'info':_0x74d1e7(0x95)});}[a101_0x5601f9(0x9f)](_0x50f4fb,_0x425cab,_0x36f38b){const _0x21f5b1=a101_0x5601f9;if(!this[_0x21f5b1(0x7e)]||!this[_0x21f5b1(0xa6)])return;this[_0x21f5b1(0xa6)]['info'](_0x425cab,{'command':_0x50f4fb,'details':_0x36f38b});}[a101_0x5601f9(0xa9)](_0x50acab,_0x47abb3,_0x3e1730,_0x162f5e){const _0x139759=a101_0x5601f9;if(!this['logFilePath']||!this[_0x139759(0xa6)])return;this[_0x139759(0xa6)]['log'](_0x139759(0x9f),_0x47abb3,{'level':'success','command':_0x50acab,'duration':_0x3e1730,'details':_0x162f5e});}[a101_0x5601f9(0xad)](_0x4508cc,_0x202171,_0x42b521){const _0x5aa635=a101_0x5601f9;if(!this['logFilePath']||!this[_0x5aa635(0xa6)])return;this[_0x5aa635(0xa6)][_0x5aa635(0xad)](_0x202171,{'command':_0x4508cc,'details':_0x42b521});}[a101_0x5601f9(0x9e)](_0x4d80d0,_0x207da0,_0x562b91){const _0x36c9ec=a101_0x5601f9;if(!this[_0x36c9ec(0x7e)]||!this[_0x36c9ec(0xa6)])return;this[_0x36c9ec(0xa6)][_0x36c9ec(0x9e)](_0x207da0,{'command':_0x4d80d0,'details':_0x562b91});}async['logTask'](_0x11fa3a,_0x281495,_0xf2f95d){const _0xcce67a=a101_0x5601f9,_0x59dd01=Date[_0xcce67a(0x88)]();this[_0xcce67a(0x9f)](_0x11fa3a,_0xcce67a(0x82)+_0x281495);try{const _0x27a0da=await _0xf2f95d(),_0x177262=Date[_0xcce67a(0x88)]()-_0x59dd01;return this[_0xcce67a(0xa9)](_0x11fa3a,_0xcce67a(0x9a)+_0x281495,_0x177262),_0x27a0da;}catch(_0x1ef87c){const _0x24e8c3=Date['now']()-_0x59dd01;this[_0xcce67a(0xad)](_0x11fa3a,_0xcce67a(0x89)+_0x281495,{'error':_0x1ef87c instanceof Error?_0x1ef87c[_0xcce67a(0xb1)]:String(_0x1ef87c),'duration':_0x24e8c3});throw _0x1ef87c;}}[a101_0x5601f9(0x84)](){const _0x24a2ab=a101_0x5601f9;try{if(!a101_0x1b8f80['existsSync'](this[_0x24a2ab(0x7e)]))return[];const _0x290ac4=a101_0x1b8f80[_0x24a2ab(0xa4)](this[_0x24a2ab(0x7e)],_0x24a2ab(0x98));return _0x290ac4[_0x24a2ab(0xae)](/\r?\n/)[_0x24a2ab(0xab)](_0x4af9af=>_0x4af9af['trim']())[_0x24a2ab(0xaf)](_0xad9226=>JSON[_0x24a2ab(0x92)](_0xad9226));}catch(_0x805d3){return console['warn'](_0x24a2ab(0x7f),_0x805d3),[];}}['clearLogs'](){const _0x22128d=a101_0x5601f9;try{a101_0x1b8f80['existsSync'](this[_0x22128d(0x7e)])&&a101_0x1b8f80[_0x22128d(0x9c)](this[_0x22128d(0x7e)],'','utf8');}catch(_0x5e551e){console[_0x22128d(0x9e)]('Failed\x20to\x20clear\x20logs:',_0x5e551e);}}[a101_0x5601f9(0x8c)](){const _0x1496c2=a101_0x5601f9;return this[_0x1496c2(0xa6)];}}export const logger=new Logger();
1
+ const a101_0x33fed1=a101_0x4364;function a101_0x4364(_0x12fcae,_0xbecf6c){_0x12fcae=_0x12fcae-0x169;const _0x1b259a=a101_0x1b25();let _0x436440=_0x1b259a[_0x12fcae];return _0x436440;}function a101_0x1b25(){const _0x4bc006=['6720438CHdEjh','logFilePath','createLogger','now','blue','setLogPath','6129560IZjRsL','level','yellow','currentRawCommand','parse','error','green','4rNrjxL','Completed:\x20','Starting:\x20','clearLogs','getWinstonInstance','dirname','command','warn','winstonLogger','utf8','success','3097944KdJNmq','printf','duration','toISOString','addColors','timestamp','4402655kejcqT','setRawCommand','4ChhOSd','format','mkdirSync','unknown','7dtunXd','File','readFileSync','info','logTask','initWinstonLogger','join','filter','1483440waiaPX','transports','39617590SeHCbG','stringify','combine','message','Failed\x20to\x20clear\x20logs:','logFileName','existsSync','663135CAqTnb','11Cjkrbd'];a101_0x1b25=function(){return _0x4bc006;};return a101_0x1b25();}(function(_0x2877c9,_0x219ccf){const _0x75d371=a101_0x4364,_0x4919d2=_0x2877c9();while(!![]){try{const _0x58ace7=-parseInt(_0x75d371(0x179))/0x1*(parseInt(_0x75d371(0x19b))/0x2)+parseInt(_0x75d371(0x170))/0x3+-parseInt(_0x75d371(0x188))/0x4*(parseInt(_0x75d371(0x199))/0x5)+parseInt(_0x75d371(0x17b))/0x6*(-parseInt(_0x75d371(0x19f))/0x7)+-parseInt(_0x75d371(0x181))/0x8+parseInt(_0x75d371(0x193))/0x9+-parseInt(_0x75d371(0x172))/0xa*(-parseInt(_0x75d371(0x17a))/0xb);if(_0x58ace7===_0x219ccf)break;else _0x4919d2['push'](_0x4919d2['shift']());}catch(_0x40242b){_0x4919d2['push'](_0x4919d2['shift']());}}}(a101_0x1b25,0xacb3a));import a101_0x4eee37 from'winston';import a101_0x55c1b5 from'node:fs';import a101_0x2d8be9 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a101_0x33fed1(0x190)];[a101_0x33fed1(0x17c)]='';['currentRawCommand']='';constructor(){}[a101_0x33fed1(0x19a)](_0x57143d){const _0x3e7c30=a101_0x33fed1;this[_0x3e7c30(0x184)]=_0x57143d;}[a101_0x33fed1(0x180)](_0x4132fa){const _0x51e0e9=a101_0x33fed1;this['logFilePath']=a101_0x2d8be9[_0x51e0e9(0x16e)](_0x4132fa,PRODUCT_CONFIG[_0x51e0e9(0x177)]),this['winstonLogger']&&this[_0x51e0e9(0x190)]['clear'](),this[_0x51e0e9(0x16d)]();}[a101_0x33fed1(0x16d)](){const _0x1b1411=a101_0x33fed1,_0x1fd80d=a101_0x2d8be9[_0x1b1411(0x18d)](this[_0x1b1411(0x17c)]);!a101_0x55c1b5[_0x1b1411(0x178)](_0x1fd80d)&&a101_0x55c1b5[_0x1b1411(0x19d)](_0x1fd80d,{'recursive':!![]});const _0x1ae74f=a101_0x4eee37[_0x1b1411(0x19c)][_0x1b1411(0x174)](a101_0x4eee37['format']['timestamp'](),a101_0x4eee37[_0x1b1411(0x19c)]['errors']({'stack':!![]}),a101_0x4eee37[_0x1b1411(0x19c)][_0x1b1411(0x194)](_0xa37dd3=>{const _0xfaf7b6=_0x1b1411,_0xcb0412={'timestamp':_0xa37dd3[_0xfaf7b6(0x198)]||new Date()[_0xfaf7b6(0x196)](),'level':_0xa37dd3[_0xfaf7b6(0x182)]||_0xfaf7b6(0x16b),'command':_0xa37dd3[_0xfaf7b6(0x18e)]||_0xfaf7b6(0x19e),'rawCommand':_0xa37dd3['rawCommand']||this[_0xfaf7b6(0x184)]||undefined,'message':_0xa37dd3[_0xfaf7b6(0x175)]||'','duration':_0xa37dd3[_0xfaf7b6(0x195)]||undefined,'details':_0xa37dd3['details']||undefined};return JSON[_0xfaf7b6(0x173)](_0xcb0412);}));this[_0x1b1411(0x190)]=a101_0x4eee37[_0x1b1411(0x17d)]({'level':'info','format':_0x1ae74f,'transports':[new a101_0x4eee37[(_0x1b1411(0x171))][(_0x1b1411(0x169))]({'filename':this['logFilePath'],'level':_0x1b1411(0x16b)})],'silent':![]}),a101_0x4eee37[_0x1b1411(0x197)]({'success':_0x1b1411(0x187),'error':'red','warn':_0x1b1411(0x183),'info':_0x1b1411(0x17f)});}[a101_0x33fed1(0x16b)](_0x4d051e,_0x271642,_0x432281){const _0x1dcb9a=a101_0x33fed1;if(!this[_0x1dcb9a(0x17c)]||!this[_0x1dcb9a(0x190)])return;this[_0x1dcb9a(0x190)]['info'](_0x271642,{'command':_0x4d051e,'details':_0x432281});}[a101_0x33fed1(0x192)](_0x18c8c1,_0x5bac34,_0x27147c,_0x65c268){const _0x8726a5=a101_0x33fed1;if(!this[_0x8726a5(0x17c)]||!this[_0x8726a5(0x190)])return;this[_0x8726a5(0x190)]['log'](_0x8726a5(0x16b),_0x5bac34,{'level':_0x8726a5(0x192),'command':_0x18c8c1,'duration':_0x27147c,'details':_0x65c268});}[a101_0x33fed1(0x186)](_0x499439,_0x26ef5c,_0x1393b7){const _0x3bef85=a101_0x33fed1;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3bef85(0x190)]['error'](_0x26ef5c,{'command':_0x499439,'details':_0x1393b7});}[a101_0x33fed1(0x18f)](_0x4983e0,_0x34774e,_0x1791b6){const _0x51f738=a101_0x33fed1;if(!this[_0x51f738(0x17c)]||!this[_0x51f738(0x190)])return;this[_0x51f738(0x190)][_0x51f738(0x18f)](_0x34774e,{'command':_0x4983e0,'details':_0x1791b6});}async[a101_0x33fed1(0x16c)](_0x530cc9,_0x2fb0dc,_0x383354){const _0x43164e=a101_0x33fed1,_0x3bbe5e=Date[_0x43164e(0x17e)]();this[_0x43164e(0x16b)](_0x530cc9,_0x43164e(0x18a)+_0x2fb0dc);try{const _0x164790=await _0x383354(),_0x1cfeaf=Date[_0x43164e(0x17e)]()-_0x3bbe5e;return this[_0x43164e(0x192)](_0x530cc9,_0x43164e(0x189)+_0x2fb0dc,_0x1cfeaf),_0x164790;}catch(_0x521eed){const _0x1334ea=Date['now']()-_0x3bbe5e;this[_0x43164e(0x186)](_0x530cc9,'Failed:\x20'+_0x2fb0dc,{'error':_0x521eed instanceof Error?_0x521eed[_0x43164e(0x175)]:String(_0x521eed),'duration':_0x1334ea});throw _0x521eed;}}['readLogs'](){const _0x4667f3=a101_0x33fed1;try{if(!a101_0x55c1b5['existsSync'](this[_0x4667f3(0x17c)]))return[];const _0x1f6fe9=a101_0x55c1b5[_0x4667f3(0x16a)](this['logFilePath'],'utf8');return _0x1f6fe9['split'](/\r?\n/)[_0x4667f3(0x16f)](_0x3bc685=>_0x3bc685['trim']())['map'](_0x5f3038=>JSON[_0x4667f3(0x185)](_0x5f3038));}catch(_0x247176){return console[_0x4667f3(0x18f)]('Failed\x20to\x20read\x20logs:',_0x247176),[];}}[a101_0x33fed1(0x18b)](){const _0x38da3c=a101_0x33fed1;try{a101_0x55c1b5[_0x38da3c(0x178)](this[_0x38da3c(0x17c)])&&a101_0x55c1b5['writeFileSync'](this[_0x38da3c(0x17c)],'',_0x38da3c(0x191));}catch(_0x5e23c6){console[_0x38da3c(0x18f)](_0x38da3c(0x176),_0x5e23c6);}}[a101_0x33fed1(0x18c)](){const _0x4e5c9c=a101_0x33fed1;return this[_0x4e5c9c(0x190)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x277e56,_0x24762f){var _0x385b1d=a102_0x2af0,_0x4017ea=_0x277e56();while(!![]){try{var _0x1e7500=-parseInt(_0x385b1d(0x8f))/0x1*(parseInt(_0x385b1d(0x9d))/0x2)+-parseInt(_0x385b1d(0x92))/0x3+-parseInt(_0x385b1d(0x98))/0x4*(-parseInt(_0x385b1d(0x94))/0x5)+parseInt(_0x385b1d(0x96))/0x6*(-parseInt(_0x385b1d(0x97))/0x7)+parseInt(_0x385b1d(0x9e))/0x8*(-parseInt(_0x385b1d(0x9f))/0x9)+-parseInt(_0x385b1d(0x90))/0xa*(-parseInt(_0x385b1d(0x9c))/0xb)+parseInt(_0x385b1d(0x91))/0xc*(parseInt(_0x385b1d(0x95))/0xd);if(_0x1e7500===_0x24762f)break;else _0x4017ea['push'](_0x4017ea['shift']());}catch(_0x16dda2){_0x4017ea['push'](_0x4017ea['shift']());}}}(a102_0x45f6,0xbc5fb));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4fab8e){var _0x50f552=a102_0x2af0;if(!_0x4fab8e)return undefined;try{return JSON[_0x50f552(0xa2)](_0x4fab8e);}catch{throw CliErrors['validation'](_0x50f552(0xa0)+_0x4fab8e);}}function a102_0x2af0(_0x2acf12,_0x4aee4d){_0x2acf12=_0x2acf12-0x8f;var _0x45f6b7=a102_0x45f6();var _0x2af003=_0x45f6b7[_0x2acf12];return _0x2af003;}function a102_0x45f6(){var _0x50cd29=['Invalid\x20JSON\x20for\x20--params:\x20','validation','parse','536QdpJpI','4342390AWGVSU','12uyQiYQ','3641988QJVvNW','isArray','29285ziKvit','39618787NsVWFe','348fmWYUi','77357vfPpDN','460YjFhvL','object','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','11ZBxCKr','1086OQjiIT','1424iVBOLZ','62586CJxZwh'];a102_0x45f6=function(){return _0x50cd29;};return a102_0x45f6();}export function parseJsonParamsValue(_0x53adf1){var _0x199d9d=a102_0x2af0;if(!_0x53adf1)return undefined;try{return JSON['parse'](_0x53adf1);}catch{throw CliErrors[_0x199d9d(0xa1)](_0x199d9d(0xa0)+_0x53adf1);}}export function parseBatchCreateItemsFromParams(_0x1ad605){var _0x2f430a=a102_0x2af0;if(Array[_0x2f430a(0x93)](_0x1ad605))return _0x1ad605;if(_0x1ad605!==null&&_0x1ad605!==undefined&&typeof _0x1ad605===_0x2f430a(0x99)&&Array[_0x2f430a(0x93)](_0x1ad605['items']))return _0x1ad605['items'];throw CliErrors[_0x2f430a(0xa1)](_0x2f430a(0x9a),_0x2f430a(0x9b));}
1
+ (function(_0x370633,_0x20f1b1){var _0x5059aa=a102_0x7891,_0x28afa2=_0x370633();while(!![]){try{var _0x282e07=parseInt(_0x5059aa(0x12c))/0x1*(parseInt(_0x5059aa(0x133))/0x2)+-parseInt(_0x5059aa(0x12f))/0x3+parseInt(_0x5059aa(0x12e))/0x4+parseInt(_0x5059aa(0x123))/0x5*(-parseInt(_0x5059aa(0x132))/0x6)+parseInt(_0x5059aa(0x129))/0x7*(-parseInt(_0x5059aa(0x12a))/0x8)+parseInt(_0x5059aa(0x131))/0x9*(-parseInt(_0x5059aa(0x134))/0xa)+parseInt(_0x5059aa(0x124))/0xb;if(_0x282e07===_0x20f1b1)break;else _0x28afa2['push'](_0x28afa2['shift']());}catch(_0x5e74eb){_0x28afa2['push'](_0x28afa2['shift']());}}}(a102_0x5a82,0x69aa9));function a102_0x7891(_0xe3d655,_0x1681a2){_0xe3d655=_0xe3d655-0x123;var _0x5a829b=a102_0x5a82();var _0x789130=_0x5a829b[_0xe3d655];return _0x789130;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2de999){var _0x4fe260=a102_0x7891;if(!_0x2de999)return undefined;try{return JSON[_0x4fe260(0x12b)](_0x2de999);}catch{throw CliErrors[_0x4fe260(0x130)](_0x4fe260(0x125)+_0x2de999);}}export function parseJsonParamsValue(_0xe68351){var _0x353316=a102_0x7891;if(!_0xe68351)return undefined;try{return JSON[_0x353316(0x12b)](_0xe68351);}catch{throw CliErrors[_0x353316(0x130)](_0x353316(0x125)+_0xe68351);}}function a102_0x5a82(){var _0x5cf315=['parse','11PXUvqG','items','3087680pGsuIH','1959651OFyqNN','validation','74097dShFyQ','894GCwiSK','143240ZQzKQH','320szJpfj','28540nWhNSy','12526437FCIiGy','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','isArray','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','7socadK','3988264kvkqgC'];a102_0x5a82=function(){return _0x5cf315;};return a102_0x5a82();}export function parseBatchCreateItemsFromParams(_0x590dee){var _0x2f0ad0=a102_0x7891;if(Array[_0x2f0ad0(0x127)](_0x590dee))return _0x590dee;if(_0x590dee!==null&&_0x590dee!==undefined&&typeof _0x590dee==='object'&&Array[_0x2f0ad0(0x127)](_0x590dee['items']))return _0x590dee[_0x2f0ad0(0x12d)];throw CliErrors[_0x2f0ad0(0x130)](_0x2f0ad0(0x128),_0x2f0ad0(0x126));}
@@ -1 +1 @@
1
- const a103_0x835f62=a103_0x5664;function a103_0x5664(_0x1052cf,_0x2997f6){_0x1052cf=_0x1052cf-0x1ae;const _0x22d2c1=a103_0x22d2();let _0x5664cf=_0x22d2c1[_0x1052cf];return _0x5664cf;}(function(_0x38825e,_0x16121f){const _0x37a9a8=a103_0x5664,_0x3579b1=_0x38825e();while(!![]){try{const _0x3e6479=parseInt(_0x37a9a8(0x1b5))/0x1+-parseInt(_0x37a9a8(0x1b1))/0x2+-parseInt(_0x37a9a8(0x1b3))/0x3*(parseInt(_0x37a9a8(0x1b2))/0x4)+-parseInt(_0x37a9a8(0x1b4))/0x5*(parseInt(_0x37a9a8(0x1b6))/0x6)+parseInt(_0x37a9a8(0x1af))/0x7*(parseInt(_0x37a9a8(0x1ae))/0x8)+parseInt(_0x37a9a8(0x1b8))/0x9+parseInt(_0x37a9a8(0x1b0))/0xa;if(_0x3e6479===_0x16121f)break;else _0x3579b1['push'](_0x3579b1['shift']());}catch(_0x420187){_0x3579b1['push'](_0x3579b1['shift']());}}}(a103_0x22d2,0xf3623));function a103_0x22d2(){const _0x4bdf29=['657kQaOVW','95XYYpWX','447116RhpZZZ','520218auHJHx','win32','13649553PawRPU','.cmd','platform','56ifLLOV','101899POuAJe','10270280hWsYOU','160530FaSfNh','6724MHirGy'];a103_0x22d2=function(){return _0x4bdf29;};return a103_0x22d2();}export const isWindows=process[a103_0x835f62(0x1ba)]===a103_0x835f62(0x1b7);export function resolveNpmBin(_0x491fdb){const _0x16b635=a103_0x835f62;return isWindows?_0x491fdb+_0x16b635(0x1b9):_0x491fdb;}
1
+ function a103_0x55f9(){const _0x5e891a=['8mmaoBo','932lbdlcj','2885319dzqHlJ','2469zxbCZB','139010FaeclW','3908pNjqFR','.cmd','win32','9804744WxjFrL','6pIPzNr','platform','1500445pxGzhE','296REXVZl','2706256vpKgeO','99FzxDni'];a103_0x55f9=function(){return _0x5e891a;};return a103_0x55f9();}const a103_0x1ce9d4=a103_0x5f29;(function(_0x2596b2,_0x47faea){const _0x24aeef=a103_0x5f29,_0x14461a=_0x2596b2();while(!![]){try{const _0x1b8770=-parseInt(_0x24aeef(0xc7))/0x1*(-parseInt(_0x24aeef(0xc0))/0x2)+-parseInt(_0x24aeef(0xbe))/0x3*(parseInt(_0x24aeef(0xcb))/0x4)+-parseInt(_0x24aeef(0xc6))/0x5+-parseInt(_0x24aeef(0xc4))/0x6*(parseInt(_0x24aeef(0xc8))/0x7)+parseInt(_0x24aeef(0xca))/0x8*(-parseInt(_0x24aeef(0xbd))/0x9)+-parseInt(_0x24aeef(0xbf))/0xa*(-parseInt(_0x24aeef(0xc9))/0xb)+parseInt(_0x24aeef(0xc3))/0xc;if(_0x1b8770===_0x47faea)break;else _0x14461a['push'](_0x14461a['shift']());}catch(_0x174bf8){_0x14461a['push'](_0x14461a['shift']());}}}(a103_0x55f9,0x4e7e4));export const isWindows=process[a103_0x1ce9d4(0xc5)]===a103_0x1ce9d4(0xc2);function a103_0x5f29(_0x10a830,_0x20da05){_0x10a830=_0x10a830-0xbd;const _0x55f99c=a103_0x55f9();let _0x5f299e=_0x55f99c[_0x10a830];return _0x5f299e;}export function resolveNpmBin(_0x1e29a2){const _0x3d4935=a103_0x1ce9d4;return isWindows?_0x1e29a2+_0x3d4935(0xc1):_0x1e29a2;}
@@ -1 +1 @@
1
- (function(_0x5574c4,_0x5422ef){const _0x41748f=a104_0x31e7,_0x13b093=_0x5574c4();while(!![]){try{const _0x761ac0=parseInt(_0x41748f(0xe4))/0x1*(-parseInt(_0x41748f(0xea))/0x2)+-parseInt(_0x41748f(0xd0))/0x3*(-parseInt(_0x41748f(0xd7))/0x4)+-parseInt(_0x41748f(0xe6))/0x5*(-parseInt(_0x41748f(0xe3))/0x6)+-parseInt(_0x41748f(0xe9))/0x7*(-parseInt(_0x41748f(0xd2))/0x8)+parseInt(_0x41748f(0xef))/0x9+-parseInt(_0x41748f(0xde))/0xa*(parseInt(_0x41748f(0xdc))/0xb)+-parseInt(_0x41748f(0xee))/0xc;if(_0x761ac0===_0x5422ef)break;else _0x13b093['push'](_0x13b093['shift']());}catch(_0x305d4d){_0x13b093['push'](_0x13b093['shift']());}}}(a104_0x1513,0xa5b7d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a104_0x1513(){const _0x127c49=['true','now','lovrabet-cli','4jqKbkQ','lastNotifiedAt','.cache','utf8','lastNotifiedVersion','11MliMfb','yes','2257910MQjdJn','timeout','patch','map','minor','4990926bbGcOk','471VDHnuk','entries','5FiCaCr','https://www.npmjs.com/package/','parse','943873tShNyY','3642QDmKTZ','checkedAt','latest','filter','16740516zYQLxX','1808307sMnoEK','major','trim','Invalid\x20semver','\x20available,\x20current\x20','2733033FXbjQG','number','72btpHuP','prerelease'];a104_0x1513=function(){return _0x127c49;};return a104_0x1513();}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a104_0x31e7(_0x54bf57,_0x424b4e){_0x54bf57=_0x54bf57-0xd0;const _0x151352=a104_0x1513();let _0x31e72f=_0x151352[_0x54bf57];return _0x31e72f;}import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x4952c8){const _0x8f1b6a=a104_0x31e7,_0xeb99fc=_0x4952c8[_0x8f1b6a(0xf1)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xeb99fc)return null;return{'major':Number(_0xeb99fc[0x1]),'minor':Number(_0xeb99fc[0x2]),'patch':Number(_0xeb99fc[0x3]),'prerelease':_0xeb99fc[0x4]};}function compareSemver(_0x5df708,_0x27a3c1){const _0x2850e7=a104_0x31e7,_0x397d41=parseSemver(_0x5df708),_0xf04d66=parseSemver(_0x27a3c1);if(!_0x397d41||!_0xf04d66)throw new Error(_0x2850e7(0xf2));for(const _0x1a48d7 of[_0x2850e7(0xf0),_0x2850e7(0xe2),_0x2850e7(0xe0)]){if(_0x397d41[_0x1a48d7]<_0xf04d66[_0x1a48d7])return-0x1;if(_0x397d41[_0x1a48d7]>_0xf04d66[_0x1a48d7])return 0x1;}if(!_0x397d41['prerelease']&&!_0xf04d66[_0x2850e7(0xd3)])return 0x0;if(!_0x397d41['prerelease'])return 0x1;if(!_0xf04d66[_0x2850e7(0xd3)])return-0x1;if(_0x397d41['prerelease']===_0xf04d66[_0x2850e7(0xd3)])return 0x0;return _0x397d41[_0x2850e7(0xd3)]<_0xf04d66['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x327982=a104_0x31e7,_0x42d26f=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x327982(0xf1)]()['toLowerCase']();return _0x42d26f==='1'||_0x42d26f===_0x327982(0xd4)||_0x42d26f===_0x327982(0xdd);}function cacheRoot(){const _0x5b45df=a104_0x31e7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5b45df(0xd9));}export function getUpdateNoticeCachePath(){const _0x463905=a104_0x31e7;return join(cacheRoot(),_0x463905(0xd6),'update-check.json');}async function readUpdateNoticeCache(){const _0x1e9d21=a104_0x31e7;try{const _0x52dc5b=await readFile(getUpdateNoticeCachePath(),_0x1e9d21(0xda)),_0x5c737b=JSON[_0x1e9d21(0xe8)](_0x52dc5b);if(!_0x5c737b||typeof _0x5c737b!=='object')return{};return _0x5c737b;}catch{return{};}}async function writeUpdateNoticeCache(_0x583bb8){const _0x554897=a104_0x31e7;try{const _0x97395b=getUpdateNoticeCachePath();await mkdir(dirname(_0x97395b),{'recursive':!![]}),await writeFile(_0x97395b,JSON['stringify'](_0x583bb8,null,0x2)+'\x0a',_0x554897(0xda));}catch{}}function isFreshCheck(_0x273169,_0x542008){const _0x4278e4=a104_0x31e7;return typeof _0x273169['checkedAt']==='number'&&_0x542008-_0x273169[_0x4278e4(0xeb)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x52ca72,_0x4f693d,_0x4a9d77){const _0x251748=a104_0x31e7;return _0x52ca72[_0x251748(0xdb)]===_0x4f693d&&typeof _0x52ca72[_0x251748(0xd8)]===_0x251748(0xd1)&&_0x4a9d77-_0x52ca72[_0x251748(0xd8)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x19209b=0x5dc){const _0x2ee0ff=a104_0x31e7;try{const _0x27622b=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x4c2ac4=await fetch(_0x27622b,{'signal':AbortSignal[_0x2ee0ff(0xdf)](_0x19209b)});if(!_0x4c2ac4['ok'])return null;const _0xf3b1f0=await _0x4c2ac4['json']();if(!_0xf3b1f0||typeof _0xf3b1f0!=='object')return null;return Object['fromEntries'](Object[_0x2ee0ff(0xe5)](_0xf3b1f0)[_0x2ee0ff(0xed)](([,_0x5aecec])=>typeof _0x5aecec==='string'&&_0x5aecec['trim']())[_0x2ee0ff(0xe1)](([_0x9d101a,_0x9dffbf])=>[_0x9d101a,String(_0x9dffbf)[_0x2ee0ff(0xf1)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x44c925){const _0x475163=a104_0x31e7;return _0x475163(0xe7)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x44c925;}export async function resolveLatestUpdateNotice(){const _0x1ad0a0=a104_0x31e7;if(isUpdateNoticeDisabled())return null;try{const _0xef77be=Date[_0x1ad0a0(0xd5)](),_0x58e144=getCliVersion(),_0xaca3d8=await readUpdateNoticeCache();let _0x375799=isFreshCheck(_0xaca3d8,_0xef77be)?_0xaca3d8[_0x1ad0a0(0xec)]?.[_0x1ad0a0(0xf1)]():undefined;if(!_0x375799&&!isFreshCheck(_0xaca3d8,_0xef77be)){const _0x2c8283=await fetchNpmDistTags();_0x375799=_0x2c8283?.['latest']?.[_0x1ad0a0(0xf1)](),await writeUpdateNoticeCache({..._0xaca3d8,'checkedAt':_0xef77be,'latest':_0x375799,'failed':!_0x375799});}if(!_0x375799||compareSemver(_0x58e144,_0x375799)>=0x0)return null;if(isRecentlyNotified(_0xaca3d8,_0x375799,_0xef77be))return null;const _0x46b075=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0xaca3d8,'checkedAt':isFreshCheck(_0xaca3d8,_0xef77be)?_0xaca3d8['checkedAt']:_0xef77be,'latest':_0x375799,'failed':![],'lastNotifiedVersion':_0x375799,'lastNotifiedAt':_0xef77be}),{'command':_0x46b075,'current':_0x58e144,'latest':_0x375799,'url':buildNpmVersionUrl(_0x375799),'message':CLI_BIN_NAME+'\x20'+_0x375799+_0x1ad0a0(0xf3)+_0x58e144+',\x20run:\x20'+_0x46b075};}catch{return null;}}
1
+ (function(_0x12a08e,_0x3d045c){const _0x2d32e0=a104_0x2720,_0x2b211d=_0x12a08e();while(!![]){try{const _0x2136fc=-parseInt(_0x2d32e0(0x16f))/0x1+-parseInt(_0x2d32e0(0x180))/0x2+parseInt(_0x2d32e0(0x16d))/0x3+parseInt(_0x2d32e0(0x167))/0x4*(parseInt(_0x2d32e0(0x186))/0x5)+-parseInt(_0x2d32e0(0x171))/0x6+-parseInt(_0x2d32e0(0x172))/0x7*(parseInt(_0x2d32e0(0x17f))/0x8)+-parseInt(_0x2d32e0(0x16a))/0x9*(parseInt(_0x2d32e0(0x17e))/0xa);if(_0x2136fc===_0x3d045c)break;else _0x2b211d['push'](_0x2b211d['shift']());}catch(_0x2cf77d){_0x2b211d['push'](_0x2b211d['shift']());}}}(a104_0x33f9,0xe2ed1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a104_0x2720(_0x27a4b0,_0x558bee){_0x27a4b0=_0x27a4b0-0x167;const _0x33f9e8=a104_0x33f9();let _0x272032=_0x33f9e8[_0x27a4b0];return _0x272032;}import{getCliVersion}from'../utils/version.js';function a104_0x33f9(){const _0x27c64f=['match','fromEntries','true','now','/v/','lastNotifiedVersion','json',',\x20run:\x20','\x20update','1300070caKysR','25232YwrUrh','758848jcKvPc','entries','major','https://www.npmjs.com/package/','patch','prerelease','2031780zDEPca','parse','/-/package/','.cache','Invalid\x20semver','map','lovrabet-cli','filter','object','checkedAt','latest','toLowerCase','12MJYBMT','yes','lastNotifiedAt','9CGvRdf','trim','/dist-tags','3785559uayngB','minor','561529IWCSaR','utf8','214548HMYmDO','987GYvokc','string','\x20available,\x20current\x20'];a104_0x33f9=function(){return _0x27c64f;};return a104_0x33f9();}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x57f414){const _0x4db75f=a104_0x2720,_0x48c68d=_0x57f414[_0x4db75f(0x16b)]()[_0x4db75f(0x175)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x48c68d)return null;return{'major':Number(_0x48c68d[0x1]),'minor':Number(_0x48c68d[0x2]),'patch':Number(_0x48c68d[0x3]),'prerelease':_0x48c68d[0x4]};}function compareSemver(_0x5562ae,_0x279f43){const _0x3e6f33=a104_0x2720,_0x624f6=parseSemver(_0x5562ae),_0x3f624c=parseSemver(_0x279f43);if(!_0x624f6||!_0x3f624c)throw new Error(_0x3e6f33(0x18a));for(const _0x4fd7ce of[_0x3e6f33(0x182),_0x3e6f33(0x16e),_0x3e6f33(0x184)]){if(_0x624f6[_0x4fd7ce]<_0x3f624c[_0x4fd7ce])return-0x1;if(_0x624f6[_0x4fd7ce]>_0x3f624c[_0x4fd7ce])return 0x1;}if(!_0x624f6['prerelease']&&!_0x3f624c['prerelease'])return 0x0;if(!_0x624f6[_0x3e6f33(0x185)])return 0x1;if(!_0x3f624c[_0x3e6f33(0x185)])return-0x1;if(_0x624f6['prerelease']===_0x3f624c[_0x3e6f33(0x185)])return 0x0;return _0x624f6[_0x3e6f33(0x185)]<_0x3f624c[_0x3e6f33(0x185)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x55c7c0=a104_0x2720,_0x1bdcdf=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x55c7c0(0x16b)]()[_0x55c7c0(0x191)]();return _0x1bdcdf==='1'||_0x1bdcdf===_0x55c7c0(0x177)||_0x1bdcdf===_0x55c7c0(0x168);}function cacheRoot(){const _0x1c3d6b=a104_0x2720;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1c3d6b(0x189));}export function getUpdateNoticeCachePath(){const _0x42714d=a104_0x2720;return join(cacheRoot(),_0x42714d(0x18c),'update-check.json');}async function readUpdateNoticeCache(){const _0x77f6e3=a104_0x2720;try{const _0x2bd5c4=await readFile(getUpdateNoticeCachePath(),_0x77f6e3(0x170)),_0x130d62=JSON[_0x77f6e3(0x187)](_0x2bd5c4);if(!_0x130d62||typeof _0x130d62!==_0x77f6e3(0x18e))return{};return _0x130d62;}catch{return{};}}async function writeUpdateNoticeCache(_0x596234){const _0x5553d2=a104_0x2720;try{const _0x1ea3d1=getUpdateNoticeCachePath();await mkdir(dirname(_0x1ea3d1),{'recursive':!![]}),await writeFile(_0x1ea3d1,JSON['stringify'](_0x596234,null,0x2)+'\x0a',_0x5553d2(0x170));}catch{}}function isFreshCheck(_0x5a990d,_0x4837e6){const _0x305944=a104_0x2720;return typeof _0x5a990d[_0x305944(0x18f)]==='number'&&_0x4837e6-_0x5a990d['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2a9e93,_0x817b70,_0x52d065){const _0x4538c6=a104_0x2720;return _0x2a9e93[_0x4538c6(0x17a)]===_0x817b70&&typeof _0x2a9e93[_0x4538c6(0x169)]==='number'&&_0x52d065-_0x2a9e93[_0x4538c6(0x169)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x3e6cee=0x5dc){const _0x1daa11=a104_0x2720;try{const _0x47300a=NPM_REGISTRY_BASE_URL+_0x1daa11(0x188)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1daa11(0x16c),_0x49ee7d=await fetch(_0x47300a,{'signal':AbortSignal['timeout'](_0x3e6cee)});if(!_0x49ee7d['ok'])return null;const _0x1e0ae0=await _0x49ee7d[_0x1daa11(0x17b)]();if(!_0x1e0ae0||typeof _0x1e0ae0!==_0x1daa11(0x18e))return null;return Object[_0x1daa11(0x176)](Object[_0x1daa11(0x181)](_0x1e0ae0)[_0x1daa11(0x18d)](([,_0x562b88])=>typeof _0x562b88===_0x1daa11(0x173)&&_0x562b88[_0x1daa11(0x16b)]())[_0x1daa11(0x18b)](([_0x276fa4,_0x568b2a])=>[_0x276fa4,String(_0x568b2a)[_0x1daa11(0x16b)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0xad7742){const _0x17fb8d=a104_0x2720;return _0x17fb8d(0x183)+LOVRABET_NPM_PACKAGE_NAME+_0x17fb8d(0x179)+_0xad7742;}export async function resolveLatestUpdateNotice(){const _0x344ebb=a104_0x2720;if(isUpdateNoticeDisabled())return null;try{const _0x9465=Date[_0x344ebb(0x178)](),_0xab2a1f=getCliVersion(),_0x2a57d8=await readUpdateNoticeCache();let _0x178fd5=isFreshCheck(_0x2a57d8,_0x9465)?_0x2a57d8[_0x344ebb(0x190)]?.[_0x344ebb(0x16b)]():undefined;if(!_0x178fd5&&!isFreshCheck(_0x2a57d8,_0x9465)){const _0xd8b3dc=await fetchNpmDistTags();_0x178fd5=_0xd8b3dc?.['latest']?.[_0x344ebb(0x16b)](),await writeUpdateNoticeCache({..._0x2a57d8,'checkedAt':_0x9465,'latest':_0x178fd5,'failed':!_0x178fd5});}if(!_0x178fd5||compareSemver(_0xab2a1f,_0x178fd5)>=0x0)return null;if(isRecentlyNotified(_0x2a57d8,_0x178fd5,_0x9465))return null;const _0x2ab3de=CLI_BIN_NAME+_0x344ebb(0x17d);return await writeUpdateNoticeCache({..._0x2a57d8,'checkedAt':isFreshCheck(_0x2a57d8,_0x9465)?_0x2a57d8[_0x344ebb(0x18f)]:_0x9465,'latest':_0x178fd5,'failed':![],'lastNotifiedVersion':_0x178fd5,'lastNotifiedAt':_0x9465}),{'command':_0x2ab3de,'current':_0xab2a1f,'latest':_0x178fd5,'url':buildNpmVersionUrl(_0x178fd5),'message':CLI_BIN_NAME+'\x20'+_0x178fd5+_0x344ebb(0x174)+_0xab2a1f+_0x344ebb(0x17c)+_0x2ab3de};}catch{return null;}}
@@ -1 +1 @@
1
- function a105_0x104c(_0x1e9ea0,_0x491e33){_0x1e9ea0=_0x1e9ea0-0x173;const _0x5b8751=a105_0x5b87();let _0x104c2f=_0x5b8751[_0x1e9ea0];return _0x104c2f;}(function(_0x2338d1,_0x5062d3){const _0x2782a2=a105_0x104c,_0x4ce063=_0x2338d1();while(!![]){try{const _0x5af4a1=parseInt(_0x2782a2(0x178))/0x1+-parseInt(_0x2782a2(0x17f))/0x2+parseInt(_0x2782a2(0x179))/0x3*(-parseInt(_0x2782a2(0x17a))/0x4)+parseInt(_0x2782a2(0x17c))/0x5*(parseInt(_0x2782a2(0x17d))/0x6)+-parseInt(_0x2782a2(0x177))/0x7+-parseInt(_0x2782a2(0x175))/0x8*(-parseInt(_0x2782a2(0x173))/0x9)+parseInt(_0x2782a2(0x17e))/0xa*(-parseInt(_0x2782a2(0x176))/0xb);if(_0x5af4a1===_0x5062d3)break;else _0x4ce063['push'](_0x4ce063['shift']());}catch(_0x277e4c){_0x4ce063['push'](_0x4ce063['shift']());}}}(a105_0x5b87,0xf14f3));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4a6149=a105_0x104c,_0xe1d233=String(GIT_COMMIT);return _0xe1d233&&_0xe1d233!==_0x4a6149(0x17b)?_0xe1d233:'';}export function getCliVersionDisplay(){const _0x40b9f6=a105_0x104c,_0x2e7de4=getCliGitCommit(),_0x20b45d=BUILD_TIME[_0x40b9f6(0x174)](0x0,0xa);if(!_0x2e7de4||!_0x20b45d)return VERSION;return VERSION+'\x20('+_0x2e7de4+',\x20'+_0x20b45d+')';}function a105_0x5b87(){const _0x3a9fe6=['4rvwyQQ','unknown','125oxOPJK','344118jIRvZu','43570ODqlVj','2402006EVbaBc','97263PaHINv','slice','1448dylQqk','308NXCYyP','13552784VLljWc','1527770GwIfbF','2010444vWgEaJ'];a105_0x5b87=function(){return _0x3a9fe6;};return a105_0x5b87();}
1
+ (function(_0x1b5c73,_0x56dfcc){const _0x3df6c0=a105_0x4b72,_0x4d252b=_0x1b5c73();while(!![]){try{const _0x1922d6=-parseInt(_0x3df6c0(0x133))/0x1*(parseInt(_0x3df6c0(0x12b))/0x2)+parseInt(_0x3df6c0(0x12c))/0x3+parseInt(_0x3df6c0(0x131))/0x4+-parseInt(_0x3df6c0(0x134))/0x5*(parseInt(_0x3df6c0(0x132))/0x6)+-parseInt(_0x3df6c0(0x130))/0x7+parseInt(_0x3df6c0(0x12a))/0x8+parseInt(_0x3df6c0(0x12d))/0x9*(parseInt(_0x3df6c0(0x12e))/0xa);if(_0x1922d6===_0x56dfcc)break;else _0x4d252b['push'](_0x4d252b['shift']());}catch(_0x8129f4){_0x4d252b['push'](_0x4d252b['shift']());}}}(a105_0x539e,0xf2916));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a105_0x4b72(_0x3444ed,_0x48870b){_0x3444ed=_0x3444ed-0x12a;const _0x539e2f=a105_0x539e();let _0x4b7275=_0x539e2f[_0x3444ed];return _0x4b7275;}export function getCliVersion(){return VERSION;}function a105_0x539e(){const _0x10d415=['911519buRFKR','6966800BwAoLa','6FpFTPA','11NjoEjP','8289740rjQwLw','734792dNWnEN','12364yOrtti','718833eFQAMk','776565TKLuCY','90WeKkFd','slice'];a105_0x539e=function(){return _0x10d415;};return a105_0x539e();}export function getCliGitCommit(){const _0x23622a=String(GIT_COMMIT);return _0x23622a&&_0x23622a!=='unknown'?_0x23622a:'';}export function getCliVersionDisplay(){const _0x40760=a105_0x4b72,_0x21ad92=getCliGitCommit(),_0x13b3a1=BUILD_TIME[_0x40760(0x12f)](0x0,0xa);if(!_0x21ad92||!_0x13b3a1)return VERSION;return VERSION+'\x20('+_0x21ad92+',\x20'+_0x13b3a1+')';}
@@ -1 +1 @@
1
- (function(_0x38deab,_0x182ea9){var _0x664fd5=a106_0x1706,_0x5db50b=_0x38deab();while(!![]){try{var _0xd76f0=parseInt(_0x664fd5(0x11a))/0x1+-parseInt(_0x664fd5(0x119))/0x2+parseInt(_0x664fd5(0x11b))/0x3*(-parseInt(_0x664fd5(0x11c))/0x4)+parseInt(_0x664fd5(0x11d))/0x5*(parseInt(_0x664fd5(0x115))/0x6)+-parseInt(_0x664fd5(0x118))/0x7+-parseInt(_0x664fd5(0x116))/0x8*(parseInt(_0x664fd5(0x11f))/0x9)+parseInt(_0x664fd5(0x117))/0xa;if(_0xd76f0===_0x182ea9)break;else _0x5db50b['push'](_0x5db50b['shift']());}catch(_0x9e975e){_0x5db50b['push'](_0x5db50b['shift']());}}}(a106_0x5ace,0xd5894));function a106_0x5ace(){var _0x3a772f=['2909892tqesgp','272rsdfOT','30935740GJzpzH','11858448zpdzsh','1446796kdiUYO','461514onSNVQ','2649jrEsSK','3928hVlbMm','10DHIeRV','stderr','96840bPDCVx'];a106_0x5ace=function(){return _0x3a772f;};return a106_0x5ace();}function a106_0x1706(_0x30e2cb,_0x1ebd67){_0x30e2cb=_0x30e2cb-0x115;var _0x5ace9c=a106_0x5ace();var _0x170685=_0x5ace9c[_0x30e2cb];return _0x170685;}export function writeCliSideChannelLine(_0x1ff01f){var _0x259552=a106_0x1706;process[_0x259552(0x11e)]['write'](_0x1ff01f+'\x0a');}
1
+ (function(_0x3196c0,_0x293154){var _0x4744c6=a106_0x2ae6,_0x1f073e=_0x3196c0();while(!![]){try{var _0x2080bd=-parseInt(_0x4744c6(0x1d1))/0x1+parseInt(_0x4744c6(0x1cd))/0x2*(-parseInt(_0x4744c6(0x1cf))/0x3)+-parseInt(_0x4744c6(0x1c8))/0x4+parseInt(_0x4744c6(0x1ca))/0x5+parseInt(_0x4744c6(0x1c9))/0x6*(parseInt(_0x4744c6(0x1d0))/0x7)+parseInt(_0x4744c6(0x1cc))/0x8+parseInt(_0x4744c6(0x1cb))/0x9;if(_0x2080bd===_0x293154)break;else _0x1f073e['push'](_0x1f073e['shift']());}catch(_0x96f4cf){_0x1f073e['push'](_0x1f073e['shift']());}}}(a106_0x1aae,0x8a4f1));function a106_0x2ae6(_0x2ba7e5,_0x57d8af){_0x2ba7e5=_0x2ba7e5-0x1c8;var _0x1aae31=a106_0x1aae();var _0x2ae6e5=_0x1aae31[_0x2ba7e5];return _0x2ae6e5;}function a106_0x1aae(){var _0x5c855c=['2178701CTbuZA','448062TzSYrG','3154472tfcznO','12iEeSBO','4000075hblHOu','5163111wGKJWp','6060072IzfVpk','633664mjeBoY','write','9SnExND'];a106_0x1aae=function(){return _0x5c855c;};return a106_0x1aae();}export function writeCliSideChannelLine(_0x310cf6){var _0x981d53=a106_0x2ae6;process['stderr'][_0x981d53(0x1ce)](_0x310cf6+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.1.3-beta.1",
3
+ "version": "2.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",