@lovrabet/lovrabet-cli 2.1.16-beta.2 → 2.1.17

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 (120) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/function-name-adapter.js +1 -1
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- const a40_0x3825a4=a40_0x4692;(function(_0x2b672e,_0x5f3b38){const _0x2fc2cb=a40_0x4692,_0x46e217=_0x2b672e();while(!![]){try{const _0x833eb6=parseInt(_0x2fc2cb(0x92))/0x1*(parseInt(_0x2fc2cb(0xc0))/0x2)+parseInt(_0x2fc2cb(0x98))/0x3+-parseInt(_0x2fc2cb(0xcc))/0x4+parseInt(_0x2fc2cb(0xc8))/0x5+-parseInt(_0x2fc2cb(0x8d))/0x6*(-parseInt(_0x2fc2cb(0xac))/0x7)+parseInt(_0x2fc2cb(0x8e))/0x8*(-parseInt(_0x2fc2cb(0xa2))/0x9)+-parseInt(_0x2fc2cb(0x8c))/0xa;if(_0x833eb6===_0x5f3b38)break;else _0x46e217['push'](_0x46e217['shift']());}catch(_0xcaa3bd){_0x46e217['push'](_0x46e217['shift']());}}}(a40_0x5c63,0x39849));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';const FILE_FLAG={'name':a40_0x3825a4(0xd0),'type':a40_0x3825a4(0x8f),'required':!![],'description':a40_0x3825a4(0xa5)},SERVICE_FLAG={'name':'service','type':a40_0x3825a4(0x8f),'required':!![],'description':a40_0x3825a4(0x86),'pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a40_0x3825a4(0xa7)}};function summarizeService(_0x1c3b31){const _0x28266b=a40_0x3825a4;return{'serviceCode':_0x1c3b31['serviceCode'],'name':_0x1c3b31[_0x28266b(0xb6)][_0x28266b(0xae)][_0x28266b(0xcf)],'version':_0x1c3b31['version'],'importedAt':_0x1c3b31[_0x28266b(0x9c)],'source':_0x1c3b31[_0x28266b(0xc7)],'commandCount':_0x1c3b31[_0x28266b(0xb6)][_0x28266b(0x9a)][_0x28266b(0xbd)],'commands':_0x1c3b31['normalizedManifest'][_0x28266b(0x9a)][_0x28266b(0xc1)](_0x3e90ca=>({'path':_0x3e90ca[_0x28266b(0xa1)],'description':_0x3e90ca[_0x28266b(0x87)],'risk':_0x3e90ca[_0x28266b(0x9e)],'target':toPublicServiceTreeTarget(_0x3e90ca[_0x28266b(0xc3)]),'flags':_0x3e90ca[_0x28266b(0x90)][_0x28266b(0xc1)](_0x133ba7=>({'name':_0x133ba7[_0x28266b(0xcf)],'cliName':_0x133ba7[_0x28266b(0xd1)],'type':_0x133ba7[_0x28266b(0xc9)],'required':_0x133ba7[_0x28266b(0xad)]===!![]}))}))};}function summarizeLoadedManifest(_0x9841b6){const _0x1e2246=a40_0x3825a4;return{'service':_0x9841b6[_0x1e2246(0xb6)]?.['service'],'version':_0x9841b6[_0x1e2246(0xb6)]?.[_0x1e2246(0xc2)],'commandCount':_0x9841b6[_0x1e2246(0xb6)]?.[_0x1e2246(0x9a)]['length']??0x0,'commands':_0x9841b6['normalizedManifest']?.[_0x1e2246(0x9a)][_0x1e2246(0xc1)](_0x3dce96=>({'path':_0x3dce96[_0x1e2246(0xa1)],'risk':_0x3dce96[_0x1e2246(0x9e)],'target':toPublicServiceTreeTarget(_0x3dce96[_0x1e2246(0xc3)])}))??[],'registryIndex':_0x9841b6[_0x1e2246(0xc6)],'registryServiceCode':_0x9841b6[_0x1e2246(0x94)],'errors':_0x9841b6[_0x1e2246(0xa6)][_0x1e2246(0xd4)],'warnings':_0x9841b6[_0x1e2246(0xa6)][_0x1e2246(0x9f)]};}function a40_0x4692(_0x592a8e,_0x3d9d61){_0x592a8e=_0x592a8e-0x85;const _0x5c6380=a40_0x5c63();let _0x46920b=_0x5c6380[_0x592a8e];return _0x46920b;}export const serviceDefinitions=[{'service':a40_0x3825a4(0xae),'command':a40_0x3825a4(0xba),'description':a40_0x3825a4(0xa8),'risk':a40_0x3825a4(0xd3),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x217f6f){const _0x2db9d0=a40_0x3825a4,_0x58d96b=loadServiceManifestFromFile(_0x217f6f[_0x2db9d0(0xce)](_0x2db9d0(0xd0)));if(!_0x58d96b[_0x2db9d0(0xa6)]['ok'])return{'ok':![],'data':{'file':_0x58d96b[_0x2db9d0(0xbe)],'hash':_0x58d96b['hash'],'kind':_0x58d96b['kind'],'serviceCount':_0x58d96b[_0x2db9d0(0xd2)][_0x2db9d0(0xbd)],'services':_0x58d96b['manifests'][_0x2db9d0(0xc1)](summarizeLoadedManifest),'errors':_0x58d96b[_0x2db9d0(0xa6)][_0x2db9d0(0xd4)],'warnings':_0x58d96b['report'][_0x2db9d0(0x9f)]},'message':formatValidationFailure(_0x58d96b['report'])};if(_0x58d96b[_0x2db9d0(0x93)]===_0x2db9d0(0x85)||_0x58d96b[_0x2db9d0(0xd2)][_0x2db9d0(0xbd)]!==0x1)return{'ok':!![],'data':{'file':_0x58d96b[_0x2db9d0(0xbe)],'hash':_0x58d96b[_0x2db9d0(0xc4)],'kind':_0x58d96b[_0x2db9d0(0x93)],'serviceCount':_0x58d96b[_0x2db9d0(0xd2)]['length'],'commandCount':_0x58d96b[_0x2db9d0(0xd2)][_0x2db9d0(0x99)]((_0xa24c4e,_0x54b7e9)=>_0xa24c4e+(_0x54b7e9['normalizedManifest']?.[_0x2db9d0(0x9a)][_0x2db9d0(0xbd)]??0x0),0x0),'services':_0x58d96b[_0x2db9d0(0xd2)][_0x2db9d0(0xc1)](summarizeLoadedManifest),'warnings':_0x58d96b[_0x2db9d0(0xa6)]['warnings']},'message':_0x2db9d0(0xa9)};return{'ok':!![],'data':{'file':_0x58d96b['filePath'],'hash':_0x58d96b[_0x2db9d0(0xc4)],'kind':_0x58d96b[_0x2db9d0(0x93)],'service':_0x58d96b[_0x2db9d0(0xb6)]?.[_0x2db9d0(0xae)],'version':_0x58d96b[_0x2db9d0(0xb6)]?.[_0x2db9d0(0xc2)],'commandCount':_0x58d96b[_0x2db9d0(0xb6)]?.[_0x2db9d0(0x9a)]['length']??0x0,'commands':_0x58d96b['normalizedManifest']?.['commands'][_0x2db9d0(0xc1)](_0x13eaf0=>({'path':_0x13eaf0[_0x2db9d0(0xa1)],'risk':_0x13eaf0[_0x2db9d0(0x9e)],'target':toPublicServiceTreeTarget(_0x13eaf0[_0x2db9d0(0xc3)])})),'warnings':_0x58d96b[_0x2db9d0(0xa6)][_0x2db9d0(0x9f)]},'message':_0x2db9d0(0x8b)};}},{'service':'service','command':a40_0x3825a4(0xb5),'description':'Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x4d32ea){const _0x2050d7=a40_0x3825a4,_0x2c66f1=loadServiceManifestFromFile(_0x4d32ea['str']('file'));return{'method':_0x2050d7(0xb9),'url':getServiceRegistryPath(),'body':{'file':_0x2c66f1[_0x2050d7(0xbe)],'hash':_0x2c66f1[_0x2050d7(0xc4)],'kind':_0x2c66f1[_0x2050d7(0x93)],'ok':_0x2c66f1['report']['ok'],'service':_0x2c66f1[_0x2050d7(0xb6)]?.['service'],'version':_0x2c66f1[_0x2050d7(0xb6)]?.['version'],'serviceCount':_0x2c66f1[_0x2050d7(0xd2)][_0x2050d7(0xbd)],'services':_0x2c66f1['manifests'][_0x2050d7(0xc1)](_0x2487a9=>({'service':_0x2487a9['normalizedManifest']?.[_0x2050d7(0xae)],'version':_0x2487a9['normalizedManifest']?.[_0x2050d7(0xc2)],'commandCount':_0x2487a9['normalizedManifest']?.[_0x2050d7(0x9a)][_0x2050d7(0xbd)]??0x0,'errors':_0x2487a9[_0x2050d7(0xa6)][_0x2050d7(0xd4)]})),'errors':_0x2c66f1[_0x2050d7(0xa6)]['errors'],'commandCount':_0x2c66f1[_0x2050d7(0xb6)]?.[_0x2050d7(0x9a)][_0x2050d7(0xbd)]??0x0},'description':_0x2050d7(0xa3)};},async 'execute'(_0xbce47d){const _0x19ce89=a40_0x3825a4,_0x1fa153=importServiceManifest(_0xbce47d[_0x19ce89(0xce)](_0x19ce89(0xd0)));if(_0x1fa153[_0x19ce89(0x88)][_0x19ce89(0xbd)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x1fa153[_0x19ce89(0xb4)],'imported':_0x1fa153[_0x19ce89(0xb3)],'updated':_0x1fa153[_0x19ce89(0xb2)],'serviceCount':_0x1fa153[_0x19ce89(0xaf)],'services':_0x1fa153[_0x19ce89(0x88)]['map'](summarizeService)},'message':_0x19ce89(0xbc)+_0x1fa153[_0x19ce89(0xb3)]+'\x20service(s),\x20updated\x20'+_0x1fa153[_0x19ce89(0xb2)]+_0x19ce89(0xa4)};return{'ok':!![],'data':{'registryPath':_0x1fa153[_0x19ce89(0xb4)],'replaced':_0x1fa153[_0x19ce89(0x9d)],'imported':_0x1fa153[_0x19ce89(0xb3)],'updated':_0x1fa153[_0x19ce89(0xb2)],'serviceCount':_0x1fa153[_0x19ce89(0xaf)],'service':summarizeService(_0x1fa153['entry'])},'message':(_0x1fa153[_0x19ce89(0x9d)]?_0x19ce89(0xa0):_0x19ce89(0xaa))+_0x19ce89(0xcd)+_0x1fa153[_0x19ce89(0xbb)]['serviceCode']+'.'};}},{'service':a40_0x3825a4(0xae),'command':a40_0x3825a4(0x8a),'description':a40_0x3825a4(0x95),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x1859a1){const _0x60e97f=a40_0x3825a4,_0x529591=getLocalServiceEntry(_0x1859a1[_0x60e97f(0xce)](_0x60e97f(0xae)));return{'method':_0x60e97f(0xb9),'url':_0x1859a1[_0x60e97f(0xce)]('file'),'body':{'service':_0x1859a1[_0x60e97f(0xce)]('service'),'found':Boolean(_0x529591),'version':_0x529591?.[_0x60e97f(0xc2)],'source':_0x529591?.['source']},'description':_0x60e97f(0xb8)};},async 'execute'(_0x2358e1){const _0x558ca1=a40_0x3825a4,_0x5219f3=exportServiceManifest(_0x2358e1[_0x558ca1(0xce)](_0x558ca1(0xae)),_0x2358e1['str']('file'));return{'ok':!![],'data':{'registryPath':_0x5219f3[_0x558ca1(0xb4)],'file':_0x5219f3[_0x558ca1(0xbe)],'service':summarizeService(_0x5219f3[_0x558ca1(0xbb)])},'message':_0x558ca1(0xcb)+_0x5219f3[_0x558ca1(0xbb)][_0x558ca1(0xb1)]+'.'};}},{'service':'service','command':a40_0x3825a4(0xb7),'description':a40_0x3825a4(0xbf),'risk':a40_0x3825a4(0xd3),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x3a1a7d=a40_0x3825a4,_0x3c09b9=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x3c09b9['length'],'services':_0x3c09b9[_0x3a1a7d(0xc1)](summarizeService)}};}},{'service':a40_0x3825a4(0xae),'command':a40_0x3825a4(0x96),'description':a40_0x3825a4(0x97),'risk':a40_0x3825a4(0x9b),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x5eeebc){const _0x32f3fa=a40_0x3825a4,_0x431817=getLocalServiceEntry(_0x5eeebc[_0x32f3fa(0xce)](_0x32f3fa(0xae)));return{'method':_0x32f3fa(0xb9),'url':getServiceRegistryPath(),'body':{'service':_0x5eeebc[_0x32f3fa(0xce)](_0x32f3fa(0xae)),'found':Boolean(_0x431817),'version':_0x431817?.[_0x32f3fa(0xc2)],'source':_0x431817?.[_0x32f3fa(0xc7)]},'description':_0x32f3fa(0xca)};},async 'execute'(_0x330440){const _0x240880=a40_0x3825a4,_0x498671=removeServiceManifest(_0x330440['str'](_0x240880(0xae)));return{'ok':!![],'data':{'registryPath':_0x498671[_0x240880(0xb4)],'serviceCount':_0x498671[_0x240880(0xaf)],'service':summarizeService(_0x498671[_0x240880(0xbb)])},'message':_0x240880(0x89)+_0x498671[_0x240880(0xbb)][_0x240880(0xb1)]+'.'};}},{'service':a40_0x3825a4(0xae),'command':a40_0x3825a4(0xab),'description':a40_0x3825a4(0xc5),'risk':a40_0x3825a4(0xd3),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x333f0a){const _0x50e24d=a40_0x3825a4,_0x312c8f=getLocalServiceEntry(_0x333f0a[_0x50e24d(0xce)](_0x50e24d(0xae)));if(!_0x312c8f)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x333f0a['str'](_0x50e24d(0xae))},'message':_0x50e24d(0x91)+_0x333f0a['str'](_0x50e24d(0xae))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x312c8f),'manifest':_0x312c8f[_0x50e24d(0xb0)],'normalizedManifest':toPublicNormalizedServiceTree(_0x312c8f[_0x50e24d(0xb6)])}};}}];function a40_0x5c63(){const _0x10723f=['Service\x20manifest\x20validation\x20passed.','4819280ysbpeS','2306838YqWmrM','8xjbQUi','string','flags','Local\x20service\x20not\x20found:\x20','193uDGDtN','kind','registryServiceCode','Export\x20a\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','remove','Remove\x20a\x20local\x20Service\x20Tree\x20manifest\x20from\x20the\x20runtime\x20registry','1384053pcVZGB','reduce','commands','write','importedAt','replaced','risk','warnings','Updated','cliPath','1615869MBIhKf','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','\x20service(s).','Service\x20Tree\x20manifest\x20file\x20path','report','lower\x20kebab-case\x20service\x20code','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','Service\x20registry\x20validation\x20passed.','Imported','detail','7jxPkZp','required','service','serviceCount','manifest','serviceCode','updated','imported','registryPath','import','normalizedManifest','list','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','WRITE','validate','entry','Imported\x20','length','filePath','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','3974HaEwdz','map','version','target','hash','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','registryIndex','source','221650xcwyVC','type','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','Exported\x20service\x20','1506332BOZKbf','\x20service\x20','str','name','file','cliName','manifests','read','errors','registry','Local\x20service\x20code,\x20for\x20example\x20crm','description','entries','Removed\x20service\x20','export'];a40_0x5c63=function(){return _0x10723f;};return a40_0x5c63();}
1
+ const a40_0x257e54=a40_0x22ea;(function(_0x5c82d6,_0x1234c9){const _0x5da70d=a40_0x22ea,_0x7540ea=_0x5c82d6();while(!![]){try{const _0x11dc69=parseInt(_0x5da70d(0x187))/0x1*(-parseInt(_0x5da70d(0x1b3))/0x2)+parseInt(_0x5da70d(0x1cb))/0x3*(parseInt(_0x5da70d(0x1a4))/0x4)+parseInt(_0x5da70d(0x1bd))/0x5*(-parseInt(_0x5da70d(0x197))/0x6)+parseInt(_0x5da70d(0x1a5))/0x7+parseInt(_0x5da70d(0x19a))/0x8+-parseInt(_0x5da70d(0x1b1))/0x9*(parseInt(_0x5da70d(0x1bf))/0xa)+parseInt(_0x5da70d(0x1cd))/0xb*(parseInt(_0x5da70d(0x190))/0xc);if(_0x11dc69===_0x1234c9)break;else _0x7540ea['push'](_0x7540ea['shift']());}catch(_0x53b196){_0x7540ea['push'](_0x7540ea['shift']());}}}(a40_0xa7b4,0xc9e2d));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';function a40_0x22ea(_0x2e52d2,_0x26c549){_0x2e52d2=_0x2e52d2-0x187;const _0xa7b481=a40_0xa7b4();let _0x22ea88=_0xa7b481[_0x2e52d2];return _0x22ea88;}function a40_0xa7b4(){const _0x2f1d0f=['required','remove','Service\x20Tree\x20manifest\x20file\x20path','entries','WRITE','report','map','length','2628NNGSDD','2021362KLlUFj','warnings','hash','name','Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','errors','str','Imported\x20','commands','target','registryServiceCode','registryPath','27lWmbqM','list','148388OoTCxN','Export\x20a\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','manifests','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','entry','serviceCount','Local\x20service\x20not\x20found:\x20','service','replaced','Imported','5ptQgcF','file','5224250dAGUUo','flags','normalizedManifest','validate','type','reduce','\x20service(s),\x20updated\x20','source','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','kind','serviceCode','lower\x20kebab-case\x20service\x20code','7482NzOodb','read','1474opDrZS','filePath','Service\x20manifest\x20validation\x20passed.','description','20dZvBav','\x20service(s).','write','export','version','detail','registryIndex','Exported\x20service\x20','Updated','92160wvoirL','string','imported','updated','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','manifest','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','627528HKGcMA','risk','cliName','8209792UeJwgs','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest'];a40_0xa7b4=function(){return _0x2f1d0f;};return a40_0xa7b4();}const FILE_FLAG={'name':'file','type':a40_0x257e54(0x191),'required':!![],'description':a40_0x257e54(0x19e)},SERVICE_FLAG={'name':a40_0x257e54(0x1ba),'type':'string','required':!![],'description':'Local\x20service\x20code,\x20for\x20example\x20crm','pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a40_0x257e54(0x1ca)}};function summarizeService(_0x477dfd){const _0x18e128=a40_0x257e54;return{'serviceCode':_0x477dfd['serviceCode'],'name':_0x477dfd[_0x18e128(0x1c1)]['service'][_0x18e128(0x1a8)],'version':_0x477dfd[_0x18e128(0x18b)],'importedAt':_0x477dfd['importedAt'],'source':_0x477dfd[_0x18e128(0x1c6)],'commandCount':_0x477dfd[_0x18e128(0x1c1)]['commands'][_0x18e128(0x1a3)],'commands':_0x477dfd[_0x18e128(0x1c1)][_0x18e128(0x1ad)][_0x18e128(0x1a2)](_0x2b1f96=>({'path':_0x2b1f96['cliPath'],'description':_0x2b1f96[_0x18e128(0x1d0)],'risk':_0x2b1f96[_0x18e128(0x198)],'target':toPublicServiceTreeTarget(_0x2b1f96[_0x18e128(0x1ae)]),'flags':_0x2b1f96[_0x18e128(0x1c0)][_0x18e128(0x1a2)](_0x4d6f96=>({'name':_0x4d6f96[_0x18e128(0x1a8)],'cliName':_0x4d6f96[_0x18e128(0x199)],'type':_0x4d6f96[_0x18e128(0x1c3)],'required':_0x4d6f96[_0x18e128(0x19c)]===!![]}))}))};}function summarizeLoadedManifest(_0x18cde4){const _0x71249d=a40_0x257e54;return{'service':_0x18cde4['normalizedManifest']?.[_0x71249d(0x1ba)],'version':_0x18cde4[_0x71249d(0x1c1)]?.['version'],'commandCount':_0x18cde4[_0x71249d(0x1c1)]?.[_0x71249d(0x1ad)]['length']??0x0,'commands':_0x18cde4['normalizedManifest']?.['commands'][_0x71249d(0x1a2)](_0x5b1f5e=>({'path':_0x5b1f5e['cliPath'],'risk':_0x5b1f5e[_0x71249d(0x198)],'target':toPublicServiceTreeTarget(_0x5b1f5e[_0x71249d(0x1ae)])}))??[],'registryIndex':_0x18cde4[_0x71249d(0x18d)],'registryServiceCode':_0x18cde4[_0x71249d(0x1af)],'errors':_0x18cde4[_0x71249d(0x1a1)]['errors'],'warnings':_0x18cde4['report'][_0x71249d(0x1a6)]};}export const serviceDefinitions=[{'service':'service','command':a40_0x257e54(0x1c2),'description':a40_0x257e54(0x19b),'risk':a40_0x257e54(0x1cc),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x2fe474){const _0xc282bc=a40_0x257e54,_0x4d3fcc=loadServiceManifestFromFile(_0x2fe474[_0xc282bc(0x1ab)](_0xc282bc(0x1be)));if(!_0x4d3fcc['report']['ok'])return{'ok':![],'data':{'file':_0x4d3fcc[_0xc282bc(0x1ce)],'hash':_0x4d3fcc[_0xc282bc(0x1a7)],'kind':_0x4d3fcc[_0xc282bc(0x1c8)],'serviceCount':_0x4d3fcc[_0xc282bc(0x1b5)][_0xc282bc(0x1a3)],'services':_0x4d3fcc[_0xc282bc(0x1b5)][_0xc282bc(0x1a2)](summarizeLoadedManifest),'errors':_0x4d3fcc[_0xc282bc(0x1a1)]['errors'],'warnings':_0x4d3fcc[_0xc282bc(0x1a1)][_0xc282bc(0x1a6)]},'message':formatValidationFailure(_0x4d3fcc[_0xc282bc(0x1a1)])};if(_0x4d3fcc[_0xc282bc(0x1c8)]==='registry'||_0x4d3fcc['manifests'][_0xc282bc(0x1a3)]!==0x1)return{'ok':!![],'data':{'file':_0x4d3fcc[_0xc282bc(0x1ce)],'hash':_0x4d3fcc[_0xc282bc(0x1a7)],'kind':_0x4d3fcc[_0xc282bc(0x1c8)],'serviceCount':_0x4d3fcc['manifests'][_0xc282bc(0x1a3)],'commandCount':_0x4d3fcc['manifests'][_0xc282bc(0x1c4)]((_0x1be7e0,_0x5bb72a)=>_0x1be7e0+(_0x5bb72a['normalizedManifest']?.['commands'][_0xc282bc(0x1a3)]??0x0),0x0),'services':_0x4d3fcc['manifests'][_0xc282bc(0x1a2)](summarizeLoadedManifest),'warnings':_0x4d3fcc[_0xc282bc(0x1a1)][_0xc282bc(0x1a6)]},'message':'Service\x20registry\x20validation\x20passed.'};return{'ok':!![],'data':{'file':_0x4d3fcc[_0xc282bc(0x1ce)],'hash':_0x4d3fcc[_0xc282bc(0x1a7)],'kind':_0x4d3fcc[_0xc282bc(0x1c8)],'service':_0x4d3fcc['normalizedManifest']?.[_0xc282bc(0x1ba)],'version':_0x4d3fcc[_0xc282bc(0x1c1)]?.['version'],'commandCount':_0x4d3fcc[_0xc282bc(0x1c1)]?.[_0xc282bc(0x1ad)][_0xc282bc(0x1a3)]??0x0,'commands':_0x4d3fcc['normalizedManifest']?.[_0xc282bc(0x1ad)]['map'](_0x32f2f7=>({'path':_0x32f2f7['cliPath'],'risk':_0x32f2f7[_0xc282bc(0x198)],'target':toPublicServiceTreeTarget(_0x32f2f7['target'])})),'warnings':_0x4d3fcc[_0xc282bc(0x1a1)][_0xc282bc(0x1a6)]},'message':_0xc282bc(0x1cf)};}},{'service':a40_0x257e54(0x1ba),'command':'import','description':a40_0x257e54(0x1a9),'risk':a40_0x257e54(0x189),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x2dd9e7){const _0x1e51b1=a40_0x257e54,_0x4ef148=loadServiceManifestFromFile(_0x2dd9e7['str'](_0x1e51b1(0x1be)));return{'method':_0x1e51b1(0x1a0),'url':getServiceRegistryPath(),'body':{'file':_0x4ef148[_0x1e51b1(0x1ce)],'hash':_0x4ef148[_0x1e51b1(0x1a7)],'kind':_0x4ef148[_0x1e51b1(0x1c8)],'ok':_0x4ef148['report']['ok'],'service':_0x4ef148[_0x1e51b1(0x1c1)]?.[_0x1e51b1(0x1ba)],'version':_0x4ef148['normalizedManifest']?.['version'],'serviceCount':_0x4ef148[_0x1e51b1(0x1b5)]['length'],'services':_0x4ef148['manifests'][_0x1e51b1(0x1a2)](_0x5e9699=>({'service':_0x5e9699[_0x1e51b1(0x1c1)]?.['service'],'version':_0x5e9699[_0x1e51b1(0x1c1)]?.[_0x1e51b1(0x18b)],'commandCount':_0x5e9699[_0x1e51b1(0x1c1)]?.['commands']['length']??0x0,'errors':_0x5e9699[_0x1e51b1(0x1a1)][_0x1e51b1(0x1aa)]})),'errors':_0x4ef148[_0x1e51b1(0x1a1)][_0x1e51b1(0x1aa)],'commandCount':_0x4ef148[_0x1e51b1(0x1c1)]?.[_0x1e51b1(0x1ad)]['length']??0x0},'description':_0x1e51b1(0x196)};},async 'execute'(_0x6a459){const _0x547695=a40_0x257e54,_0x511557=importServiceManifest(_0x6a459[_0x547695(0x1ab)]('file'));if(_0x511557[_0x547695(0x19f)][_0x547695(0x1a3)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x511557[_0x547695(0x1b0)],'imported':_0x511557[_0x547695(0x192)],'updated':_0x511557[_0x547695(0x193)],'serviceCount':_0x511557[_0x547695(0x1b8)],'services':_0x511557[_0x547695(0x19f)][_0x547695(0x1a2)](summarizeService)},'message':_0x547695(0x1ac)+_0x511557[_0x547695(0x192)]+_0x547695(0x1c5)+_0x511557[_0x547695(0x193)]+_0x547695(0x188)};return{'ok':!![],'data':{'registryPath':_0x511557[_0x547695(0x1b0)],'replaced':_0x511557[_0x547695(0x1bb)],'imported':_0x511557[_0x547695(0x192)],'updated':_0x511557[_0x547695(0x193)],'serviceCount':_0x511557[_0x547695(0x1b8)],'service':summarizeService(_0x511557[_0x547695(0x1b7)])},'message':(_0x511557['replaced']?_0x547695(0x18f):_0x547695(0x1bc))+'\x20service\x20'+_0x511557[_0x547695(0x1b7)][_0x547695(0x1c9)]+'.'};}},{'service':'service','command':a40_0x257e54(0x18a),'description':a40_0x257e54(0x1b4),'risk':a40_0x257e54(0x189),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x387731){const _0x3be064=a40_0x257e54,_0x1a3e0d=getLocalServiceEntry(_0x387731[_0x3be064(0x1ab)](_0x3be064(0x1ba)));return{'method':_0x3be064(0x1a0),'url':_0x387731[_0x3be064(0x1ab)](_0x3be064(0x1be)),'body':{'service':_0x387731[_0x3be064(0x1ab)](_0x3be064(0x1ba)),'found':Boolean(_0x1a3e0d),'version':_0x1a3e0d?.[_0x3be064(0x18b)],'source':_0x1a3e0d?.[_0x3be064(0x1c6)]},'description':'Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json'};},async 'execute'(_0x166050){const _0x8d0967=a40_0x257e54,_0x55e951=exportServiceManifest(_0x166050['str'](_0x8d0967(0x1ba)),_0x166050[_0x8d0967(0x1ab)]('file'));return{'ok':!![],'data':{'registryPath':_0x55e951[_0x8d0967(0x1b0)],'file':_0x55e951[_0x8d0967(0x1ce)],'service':summarizeService(_0x55e951[_0x8d0967(0x1b7)])},'message':_0x8d0967(0x18e)+_0x55e951['entry'][_0x8d0967(0x1c9)]+'.'};}},{'service':a40_0x257e54(0x1ba),'command':a40_0x257e54(0x1b2),'description':a40_0x257e54(0x194),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x594ac1=a40_0x257e54,_0xe33d04=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0xe33d04[_0x594ac1(0x1a3)],'services':_0xe33d04[_0x594ac1(0x1a2)](summarizeService)}};}},{'service':'service','command':a40_0x257e54(0x19d),'description':'Remove\x20a\x20local\x20Service\x20Tree\x20manifest\x20from\x20the\x20runtime\x20registry','risk':a40_0x257e54(0x189),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0xd37a4){const _0x5e61e7=a40_0x257e54,_0x2e1e25=getLocalServiceEntry(_0xd37a4[_0x5e61e7(0x1ab)]('service'));return{'method':'WRITE','url':getServiceRegistryPath(),'body':{'service':_0xd37a4[_0x5e61e7(0x1ab)](_0x5e61e7(0x1ba)),'found':Boolean(_0x2e1e25),'version':_0x2e1e25?.[_0x5e61e7(0x18b)],'source':_0x2e1e25?.['source']},'description':_0x5e61e7(0x1c7)};},async 'execute'(_0x246347){const _0x18c6e0=a40_0x257e54,_0x3d4645=removeServiceManifest(_0x246347['str']('service'));return{'ok':!![],'data':{'registryPath':_0x3d4645[_0x18c6e0(0x1b0)],'serviceCount':_0x3d4645[_0x18c6e0(0x1b8)],'service':summarizeService(_0x3d4645['entry'])},'message':'Removed\x20service\x20'+_0x3d4645[_0x18c6e0(0x1b7)][_0x18c6e0(0x1c9)]+'.'};}},{'service':'service','command':a40_0x257e54(0x18c),'description':a40_0x257e54(0x1b6),'risk':a40_0x257e54(0x1cc),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x2983b8){const _0x13f38c=a40_0x257e54,_0x28ceda=getLocalServiceEntry(_0x2983b8[_0x13f38c(0x1ab)](_0x13f38c(0x1ba)));if(!_0x28ceda)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x2983b8[_0x13f38c(0x1ab)]('service')},'message':_0x13f38c(0x1b9)+_0x2983b8[_0x13f38c(0x1ab)](_0x13f38c(0x1ba))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x28ceda),'manifest':_0x28ceda[_0x13f38c(0x195)],'normalizedManifest':toPublicNormalizedServiceTree(_0x28ceda[_0x13f38c(0x1c1)])}};}}];
@@ -1 +1 @@
1
- const a41_0x1c2c9f=a41_0x5ecd;(function(_0x2354f8,_0x422348){const _0x3d5b7a=a41_0x5ecd,_0x421eb0=_0x2354f8();while(!![]){try{const _0x3abbbe=-parseInt(_0x3d5b7a(0x126))/0x1+-parseInt(_0x3d5b7a(0x169))/0x2*(-parseInt(_0x3d5b7a(0x12a))/0x3)+parseInt(_0x3d5b7a(0x148))/0x4+-parseInt(_0x3d5b7a(0x11d))/0x5*(parseInt(_0x3d5b7a(0x11a))/0x6)+-parseInt(_0x3d5b7a(0x143))/0x7+-parseInt(_0x3d5b7a(0x161))/0x8*(parseInt(_0x3d5b7a(0x165))/0x9)+-parseInt(_0x3d5b7a(0x13d))/0xa;if(_0x3abbbe===_0x422348)break;else _0x421eb0['push'](_0x421eb0['shift']());}catch(_0x23207c){_0x421eb0['push'](_0x421eb0['shift']());}}}(a41_0x208f,0xa024d));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a41_0x1c2c9f(0x16f);export function getServiceRegistryPath(_0x1d4394={}){const _0x49de84=a41_0x1c2c9f;return resolve(_0x1d4394[_0x49de84(0x155)]??homedir(),PRODUCT_CONFIG[_0x49de84(0x132)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}function a41_0x208f(){const _0x4fd099=['555030SqtUDI','Local\x20service\x20not\x20found:\x20','object','parse','cliPath','4935672ZCUAJD','Cannot\x20write\x20service\x20registry:\x20','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','code','risk','reduce','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','errors','push','message','schemaVersion','report','homeDir','version','sourceHash','now','manifests','string','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','flatMap','services','commands','.tmp','normalizedManifest','210088iCAram','missing','validation','findIndex','9lilqZv','].manifest.','description','hex','2298854EDKGgQ','empty','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','stringify','].manifest','sort','service.json','246wWKlFR','slice','utf8','107945rwLtWQ','map','startsWith','invalid','filePath','manifest','updatedAt','update','Unsupported\x20service\x20registry\x20schemaVersion:\x20','733517zMZhBw','toISOString','registryIndex','length','3ChYlKb','commandCount','name','file','trim','registry','$.services[','serviceCode','homeDirName','target','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','services\x20must\x20be\x20an\x20array','Service\x20manifest\x20file\x20not\x20found:\x20','digest','source','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','warnings','kind','isArray','31790cfzBtt','Unsupported\x20schemaVersion:\x20','sha256','command','path','service'];a41_0x208f=function(){return _0x4fd099;};return a41_0x208f();}export function readServiceRegistry(_0x27450b={}){const _0x4ce3ed=a41_0x1c2c9f,_0x211dbe=getServiceRegistryPath(_0x27450b);if(!existsSync(_0x211dbe))return emptyServiceRegistry();try{const _0x340f7e=readFileSync(_0x211dbe,_0x4ce3ed(0x11c));if(!_0x340f7e[_0x4ce3ed(0x12e)]())return emptyServiceRegistry();const _0x21a06f=JSON[_0x4ce3ed(0x146)](_0x340f7e);if(_0x21a06f['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x4ce3ed(0x163)](_0x4ce3ed(0x125)+String(_0x21a06f[_0x4ce3ed(0x153)]),'Remove\x20or\x20migrate\x20'+_0x211dbe+'.');if(!Array[_0x4ce3ed(0x13c)](_0x21a06f[_0x4ce3ed(0x15d)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x21a06f['updatedAt'],'services':_0x21a06f[_0x4ce3ed(0x15d)]};}catch(_0x5d3cb6){if(_0x5d3cb6 instanceof Error&&_0x5d3cb6[_0x4ce3ed(0x12c)]==='CliError')throw _0x5d3cb6;throw CliErrors[_0x4ce3ed(0x163)]('Invalid\x20service\x20registry\x20JSON:\x20'+_0x211dbe,_0x4ce3ed(0x16b));}}export function writeServiceRegistry(_0x332a97,_0x4caa3e={}){const _0x12989a=a41_0x1c2c9f,_0x2c5130=getServiceRegistryPath(_0x4caa3e),_0x4862c5=dirname(_0x2c5130);!existsSync(_0x4862c5)&&mkdirSync(_0x4862c5,{'recursive':!![]});const _0x293e78=_0x2c5130+_0x12989a(0x15f);try{writeFileSync(_0x293e78,JSON[_0x12989a(0x16c)](_0x332a97,null,0x2)+'\x0a',{'encoding':_0x12989a(0x11c),'mode':0x180}),renameSync(_0x293e78,_0x2c5130);}catch(_0x3b3690){try{unlinkSync(_0x293e78);}catch{}if(_0x3b3690?.[_0x12989a(0x14b)]==='ENOENT')throw CliErrors['validation'](_0x12989a(0x149)+_0x2c5130);throw _0x3b3690;}return _0x2c5130;}export function loadServiceManifestFromFile(_0x359c42){const _0x4a14fa=a41_0x1c2c9f,_0x5c8fbf=resolve(_0x359c42);if(!existsSync(_0x5c8fbf))throw CliErrors[_0x4a14fa(0x163)](_0x4a14fa(0x136)+_0x359c42);let _0x57e94d;const _0x4cdba5=readFileSync(_0x5c8fbf,_0x4a14fa(0x11c));try{_0x57e94d=JSON[_0x4a14fa(0x146)](_0x4cdba5);}catch{throw CliErrors['validation']('Invalid\x20service\x20manifest\x20JSON:\x20'+_0x359c42,_0x4a14fa(0x139));}const _0x2922fa=sha256(_0x4cdba5),_0x58d513=extractLoadedServiceManifests(_0x57e94d,_0x2922fa),_0x50190b=aggregateValidationReports(_0x58d513),_0x435d90=_0x58d513[0x0];return{'filePath':_0x5c8fbf,'hash':_0x2922fa,'kind':isServiceRegistryLike(_0x57e94d)?_0x4a14fa(0x12f):'manifest','manifest':_0x435d90?.[_0x4a14fa(0x122)]??_0x57e94d,'report':_0x50190b,'normalizedManifest':_0x58d513[_0x4a14fa(0x129)]===0x1?_0x435d90?.[_0x4a14fa(0x160)]:undefined,'manifests':_0x58d513};}export function importServiceManifest(_0x5a36bd,_0x57479a={}){const _0x1f2599=a41_0x1c2c9f,_0x4d97bd=loadServiceManifestFromFile(_0x5a36bd);if(!_0x4d97bd[_0x1f2599(0x154)]['ok'])throw CliErrors[_0x1f2599(0x163)](formatValidationFailure(_0x4d97bd[_0x1f2599(0x154)]),_0x1f2599(0x14f));if(_0x4d97bd['manifests'][_0x1f2599(0x129)]===0x0)throw CliErrors[_0x1f2599(0x163)](_0x1f2599(0x14a),_0x1f2599(0x14e));const _0x287a33=readServiceRegistry(_0x57479a),_0x581165=(_0x57479a[_0x1f2599(0x158)]??(()=>new Date()))()[_0x1f2599(0x127)](),_0x2473b7=[];let _0x47bf47=0x0,_0x1c1452=0x0;for(const _0x182ae9 of _0x4d97bd[_0x1f2599(0x159)]){if(!_0x182ae9[_0x1f2599(0x160)])continue;const _0x5cb6c5=_0x182ae9[_0x1f2599(0x160)][_0x1f2599(0x142)][_0x1f2599(0x14b)],_0x26f7c4={'serviceCode':_0x5cb6c5,'version':_0x182ae9[_0x1f2599(0x160)][_0x1f2599(0x156)],'importedAt':_0x581165,'source':{'type':_0x1f2599(0x12d),'path':_0x4d97bd[_0x1f2599(0x121)],'hash':_0x182ae9[_0x1f2599(0x157)]},'manifest':_0x182ae9[_0x1f2599(0x122)],'normalizedManifest':_0x182ae9[_0x1f2599(0x160)]},_0x75fe14=_0x287a33[_0x1f2599(0x15d)][_0x1f2599(0x164)](_0x311748=>_0x311748[_0x1f2599(0x131)]===_0x5cb6c5);_0x75fe14>=0x0?(_0x287a33[_0x1f2599(0x15d)][_0x75fe14]=_0x26f7c4,_0x1c1452++):(_0x287a33[_0x1f2599(0x15d)]['push'](_0x26f7c4),_0x47bf47++),_0x2473b7[_0x1f2599(0x151)](_0x26f7c4);}_0x287a33[_0x1f2599(0x15d)][_0x1f2599(0x16e)]((_0x1ad984,_0x36b989)=>_0x1ad984[_0x1f2599(0x131)]['localeCompare'](_0x36b989[_0x1f2599(0x131)])),_0x287a33['updatedAt']=_0x581165;const _0x1d9190=writeServiceRegistry(_0x287a33,_0x57479a);return{'registryPath':_0x1d9190,'entry':_0x2473b7[0x0],'replaced':_0x2473b7[_0x1f2599(0x129)]===0x1?_0x1c1452===0x1:_0x1c1452>0x0,'entries':_0x2473b7,'imported':_0x47bf47,'updated':_0x1c1452,'serviceCount':_0x287a33[_0x1f2599(0x15d)]['length']};}export function exportServiceManifest(_0x59f9f9,_0x3f1b8b,_0x55ccda={}){const _0x5a5f70=a41_0x1c2c9f,_0x1b0dfa=getServiceRegistryPath(_0x55ccda),_0x385cc4=getLocalServiceEntry(_0x59f9f9,_0x55ccda);if(!_0x385cc4)throw CliErrors[_0x5a5f70(0x163)](_0x5a5f70(0x144)+_0x59f9f9,'Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.');const _0x512b25=resolve(_0x3f1b8b),_0x583d4c=dirname(_0x512b25);return!existsSync(_0x583d4c)&&mkdirSync(_0x583d4c,{'recursive':!![]}),writeFileSync(_0x512b25,JSON['stringify'](_0x385cc4[_0x5a5f70(0x122)],null,0x2)+'\x0a',{'encoding':_0x5a5f70(0x11c),'mode':0x180}),{'registryPath':_0x1b0dfa,'filePath':_0x512b25,'entry':_0x385cc4};}export function removeServiceManifest(_0x27e3a8,_0x48601f={}){const _0x3b29fa=a41_0x1c2c9f,_0x4d8c2b=readServiceRegistry(_0x48601f),_0x3ce4f1=_0x27e3a8[_0x3b29fa(0x12e)](),_0x249159=_0x4d8c2b[_0x3b29fa(0x15d)]['findIndex'](_0x542357=>_0x542357[_0x3b29fa(0x131)]===_0x3ce4f1);if(_0x249159<0x0)throw CliErrors['validation']('Local\x20service\x20not\x20found:\x20'+_0x3ce4f1,_0x3b29fa(0x15b));const [_0x4d852c]=_0x4d8c2b[_0x3b29fa(0x15d)]['splice'](_0x249159,0x1),_0x1c671b=(_0x48601f[_0x3b29fa(0x158)]??(()=>new Date()))()[_0x3b29fa(0x127)]();_0x4d8c2b[_0x3b29fa(0x123)]=_0x1c671b;const _0x4f7611=writeServiceRegistry(_0x4d8c2b,_0x48601f);return{'registryPath':_0x4f7611,'entry':_0x4d852c,'serviceCount':_0x4d8c2b[_0x3b29fa(0x15d)]['length']};}export function listLocalServices(_0x3fc36d={}){const _0x2abc75=a41_0x1c2c9f;return readServiceRegistry(_0x3fc36d)[_0x2abc75(0x15d)];}export function getLocalServiceEntry(_0x1de07a,_0x46c7e1={}){const _0x4959ad=a41_0x1c2c9f;return readServiceRegistry(_0x46c7e1)[_0x4959ad(0x15d)]['find'](_0x375a1d=>_0x375a1d[_0x4959ad(0x131)]===_0x1de07a[_0x4959ad(0x12e)]());}export function listLocalServiceTrees(_0x1f9bf1={}){const _0x49ecc2=a41_0x1c2c9f;return readServiceRegistry(_0x1f9bf1)[_0x49ecc2(0x15d)][_0x49ecc2(0x11e)](_0x15377b=>_0x15377b[_0x49ecc2(0x160)]);}export function inspectServiceRegistry(_0x5d6b4c={}){const _0xcc1997=a41_0x1c2c9f,_0x52a713=getServiceRegistryPath(_0x5d6b4c);if(!existsSync(_0x52a713))return emptyServiceRegistryInspection(_0x52a713,_0xcc1997(0x162),![]);try{const _0xd2b754=readFileSync(_0x52a713,'utf8');if(!_0xd2b754['trim']())return emptyServiceRegistryInspection(_0x52a713,_0xcc1997(0x16a),!![]);const _0x1b7887=JSON[_0xcc1997(0x146)](_0xd2b754);if(_0x1b7887[_0xcc1997(0x153)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x52a713,_0xcc1997(0x120),!![]),'schemaVersion':_0x1b7887[_0xcc1997(0x153)],'message':_0xcc1997(0x13e)+String(_0x1b7887[_0xcc1997(0x153)])};if(!Array[_0xcc1997(0x13c)](_0x1b7887[_0xcc1997(0x15d)]))return{...emptyServiceRegistryInspection(_0x52a713,_0xcc1997(0x120),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x1b7887[_0xcc1997(0x123)],'message':_0xcc1997(0x135)};const _0x176092=_0x1b7887[_0xcc1997(0x15d)][_0xcc1997(0x11e)](summarizeLocalServiceEntry);return{'registryPath':_0x52a713,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x1b7887['updatedAt'],'serviceCount':_0x176092['length'],'commandCount':_0x176092[_0xcc1997(0x14d)]((_0x4062b8,_0x4596e7)=>_0x4062b8+_0x4596e7[_0xcc1997(0x12b)],0x0),'services':_0x176092};}catch(_0x2fe2f0){return{...emptyServiceRegistryInspection(_0x52a713,_0xcc1997(0x120),!![]),'message':_0x2fe2f0 instanceof Error?_0x2fe2f0[_0xcc1997(0x152)]:String(_0x2fe2f0)};}}export function formatValidationFailure(_0x13e8fd){const _0x38aa39=a41_0x1c2c9f,_0x29cae0=_0x13e8fd[_0x38aa39(0x150)][_0x38aa39(0x11e)](_0x5ec2c9=>_0x5ec2c9['path']+':\x20'+_0x5ec2c9[_0x38aa39(0x152)]);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x29cae0['join']('\x0a');}function extractLoadedServiceManifests(_0x2d0ffd,_0x21dfa4){const _0x232422=a41_0x1c2c9f;if(!isServiceRegistryLike(_0x2d0ffd)){const _0x51c364=_0x2d0ffd,{manifest:_0x441c2e,errors:_0x1da3be}=adaptServiceTreeManifestForLegacyFramework(_0x51c364),_0x6fdbf9=validateServiceTreeManifest(_0x441c2e),_0x2d7424=mergeValidationErrors(_0x6fdbf9,_0x1da3be);return[{'manifest':_0x51c364,'report':_0x2d7424,'normalizedManifest':_0x2d7424['ok']?normalizeServiceTreeManifest(_0x441c2e):undefined,'sourceHash':_0x21dfa4}];}return _0x2d0ffd['services'][_0x232422(0x11e)]((_0x13ad4a,_0xbb0ef9)=>{const _0x1f6041=_0x232422,_0x18022d=isObjectRecord(_0x13ad4a)?_0x13ad4a[_0x1f6041(0x122)]:undefined,{manifest:_0x3666ce,errors:_0x158c51}=adaptServiceTreeManifestForLegacyFramework(_0x18022d),_0x390110=validateServiceTreeManifest(_0x3666ce),_0x23eea7=mergeValidationErrors(_0x390110,_0x158c51),_0x32ad6f=isObjectRecord(_0x13ad4a)&&typeof _0x13ad4a[_0x1f6041(0x131)]===_0x1f6041(0x15a)?_0x13ad4a[_0x1f6041(0x131)]:undefined;return{'manifest':_0x18022d,'report':_0x23eea7,'normalizedManifest':_0x23eea7['ok']?normalizeServiceTreeManifest(_0x3666ce):undefined,'sourceHash':sha256(JSON['stringify'](_0x18022d,null,0x2)+'\x0a'),'registryIndex':_0xbb0ef9,'registryServiceCode':_0x32ad6f};});}function mergeValidationErrors(_0x295131,_0x1ec7bc){const _0x513f94=a41_0x1c2c9f,_0x5d05a7=_0x295131[_0x513f94(0x150)][_0x513f94(0x11e)](_0x13436d=>_0x13436d[_0x513f94(0x152)]===_0x513f94(0x134)?{..._0x13436d,'message':'bff\x20target\x20requires\x20functionName.'}:_0x13436d),_0x522fb0=[..._0x1ec7bc,..._0x5d05a7];return{'ok':_0x522fb0[_0x513f94(0x129)]===0x0,'errors':_0x522fb0,'warnings':_0x295131['warnings']};}function a41_0x5ecd(_0x295940,_0x13a753){_0x295940=_0x295940-0x11a;const _0x208f74=a41_0x208f();let _0x5ecdc1=_0x208f74[_0x295940];return _0x5ecdc1;}function aggregateValidationReports(_0x22ee33){const _0x162ec4=a41_0x1c2c9f,_0x2bfc67=_0x22ee33[_0x162ec4(0x15c)](_0x4cf6e2=>_0x4cf6e2[_0x162ec4(0x128)]===undefined?_0x4cf6e2['report']['errors']:_0x4cf6e2['report'][_0x162ec4(0x150)]['map'](_0x18e33a=>({..._0x18e33a,'path':prefixRegistryIssuePath(_0x4cf6e2['registryIndex'],_0x18e33a[_0x162ec4(0x141)])}))),_0x47d387=_0x22ee33[_0x162ec4(0x15c)](_0x3deba6=>_0x3deba6['registryIndex']===undefined?_0x3deba6[_0x162ec4(0x154)][_0x162ec4(0x13a)]:_0x3deba6['report'][_0x162ec4(0x13a)][_0x162ec4(0x11e)](_0x1a17e9=>({..._0x1a17e9,'path':prefixRegistryIssuePath(_0x3deba6['registryIndex'],_0x1a17e9[_0x162ec4(0x141)])})));return{'ok':_0x2bfc67[_0x162ec4(0x129)]===0x0,'errors':_0x2bfc67,'warnings':_0x47d387};}function prefixRegistryIssuePath(_0x1c2a0b,_0x190a41){const _0x1007f6=a41_0x1c2c9f;if(_0x190a41==='$')return _0x1007f6(0x130)+_0x1c2a0b+_0x1007f6(0x16d);if(_0x190a41['startsWith']('$.'))return _0x1007f6(0x130)+_0x1c2a0b+_0x1007f6(0x16d)+_0x190a41['slice'](0x1);if(_0x190a41[_0x1007f6(0x11f)]('$['))return _0x1007f6(0x130)+_0x1c2a0b+_0x1007f6(0x16d)+_0x190a41[_0x1007f6(0x11b)](0x1);return _0x1007f6(0x130)+_0x1c2a0b+_0x1007f6(0x166)+_0x190a41;}function isServiceRegistryLike(_0x2dc7fd){const _0x505e5f=a41_0x1c2c9f;return isObjectRecord(_0x2dc7fd)&&_0x2dc7fd[_0x505e5f(0x153)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array['isArray'](_0x2dc7fd[_0x505e5f(0x15d)]);}function isObjectRecord(_0x1113ad){const _0x19994a=a41_0x1c2c9f;return Boolean(_0x1113ad)&&typeof _0x1113ad===_0x19994a(0x145)&&!Array[_0x19994a(0x13c)](_0x1113ad);}function emptyServiceRegistryInspection(_0x5bff5a,_0x25a35f,_0x1504b4){return{'registryPath':_0x5bff5a,'exists':_0x1504b4,'status':_0x25a35f,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x1d81ef){const _0xcda8c3=a41_0x1c2c9f,_0x481f1f=_0x1d81ef[_0xcda8c3(0x160)],_0x242bb2=_0x481f1f[_0xcda8c3(0x15e)][_0xcda8c3(0x11e)](_0x53d8fc=>({'path':_0x53d8fc[_0xcda8c3(0x147)],'description':_0x53d8fc[_0xcda8c3(0x167)],'risk':_0x53d8fc[_0xcda8c3(0x14c)],'targetKind':_0x53d8fc[_0xcda8c3(0x133)][_0xcda8c3(0x13b)],'targetCommand':_0x53d8fc[_0xcda8c3(0x133)][_0xcda8c3(0x140)]}));return{'serviceCode':_0x1d81ef[_0xcda8c3(0x131)],'name':_0x481f1f[_0xcda8c3(0x142)][_0xcda8c3(0x12c)],'description':_0x481f1f['service'][_0xcda8c3(0x167)],'version':_0x1d81ef[_0xcda8c3(0x156)],'importedAt':_0x1d81ef['importedAt'],'source':_0x1d81ef[_0xcda8c3(0x138)],'commandCount':_0x242bb2[_0xcda8c3(0x129)],'commands':_0x242bb2};}function sha256(_0x4987cf){const _0xe4a530=a41_0x1c2c9f;return createHash(_0xe4a530(0x13f))[_0xe4a530(0x124)](_0x4987cf)[_0xe4a530(0x137)](_0xe4a530(0x168));}
1
+ (function(_0x2f6a97,_0x2f0396){const _0x2a591c=a41_0x3f56,_0x713f83=_0x2f6a97();while(!![]){try{const _0x55d9e7=parseInt(_0x2a591c(0xf3))/0x1*(parseInt(_0x2a591c(0x127))/0x2)+-parseInt(_0x2a591c(0x135))/0x3+-parseInt(_0x2a591c(0x131))/0x4*(-parseInt(_0x2a591c(0x138))/0x5)+-parseInt(_0x2a591c(0x12b))/0x6+-parseInt(_0x2a591c(0x10a))/0x7*(parseInt(_0x2a591c(0x11d))/0x8)+-parseInt(_0x2a591c(0xf5))/0x9+-parseInt(_0x2a591c(0xfc))/0xa*(-parseInt(_0x2a591c(0x119))/0xb);if(_0x55d9e7===_0x2f0396)break;else _0x713f83['push'](_0x713f83['shift']());}catch(_0x1e88cc){_0x713f83['push'](_0x713f83['shift']());}}}(a41_0x17f8,0x9c0d7));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME='service.json';export function getServiceRegistryPath(_0x39092c={}){const _0x259484=a41_0x3f56;return resolve(_0x39092c[_0x259484(0xfe)]??homedir(),PRODUCT_CONFIG[_0x259484(0x11e)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x3af88d={}){const _0x222656=a41_0x3f56,_0x274ebe=getServiceRegistryPath(_0x3af88d);if(!existsSync(_0x274ebe))return emptyServiceRegistry();try{const _0x1ef9da=readFileSync(_0x274ebe,_0x222656(0x10c));if(!_0x1ef9da[_0x222656(0xfd)]())return emptyServiceRegistry();const _0xa4a612=JSON[_0x222656(0x104)](_0x1ef9da);if(_0xa4a612[_0x222656(0x11a)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x222656(0x112)]('Unsupported\x20service\x20registry\x20schemaVersion:\x20'+String(_0xa4a612[_0x222656(0x11a)]),_0x222656(0x144)+_0x274ebe+'.');if(!Array[_0x222656(0x128)](_0xa4a612[_0x222656(0x13d)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0xa4a612[_0x222656(0x113)],'services':_0xa4a612[_0x222656(0x13d)]};}catch(_0x2a00b1){if(_0x2a00b1 instanceof Error&&_0x2a00b1[_0x222656(0x134)]===_0x222656(0x132))throw _0x2a00b1;throw CliErrors['validation'](_0x222656(0x100)+_0x274ebe,_0x222656(0x10f));}}export function writeServiceRegistry(_0x43a10b,_0x222812={}){const _0x5bbd25=a41_0x3f56,_0x5a7423=getServiceRegistryPath(_0x222812),_0x57fdaa=dirname(_0x5a7423);!existsSync(_0x57fdaa)&&mkdirSync(_0x57fdaa,{'recursive':!![]});const _0x5c799d=_0x5a7423+'.tmp';try{writeFileSync(_0x5c799d,JSON[_0x5bbd25(0x109)](_0x43a10b,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x5c799d,_0x5a7423);}catch(_0x15a5d5){try{unlinkSync(_0x5c799d);}catch{}if(_0x15a5d5?.[_0x5bbd25(0x125)]===_0x5bbd25(0x10b))throw CliErrors[_0x5bbd25(0x112)](_0x5bbd25(0x130)+_0x5a7423);throw _0x15a5d5;}return _0x5a7423;}export function loadServiceManifestFromFile(_0x2be9dc){const _0x3aa0a8=a41_0x3f56,_0x41646d=resolve(_0x2be9dc);if(!existsSync(_0x41646d))throw CliErrors['validation']('Service\x20manifest\x20file\x20not\x20found:\x20'+_0x2be9dc);let _0x5051e1;const _0x575b3d=readFileSync(_0x41646d,_0x3aa0a8(0x10c));try{_0x5051e1=JSON['parse'](_0x575b3d);}catch{throw CliErrors[_0x3aa0a8(0x112)](_0x3aa0a8(0x13e)+_0x2be9dc,_0x3aa0a8(0xf0));}const _0xe1b3e0=sha256(_0x575b3d),_0x42b33c=extractLoadedServiceManifests(_0x5051e1,_0xe1b3e0),_0x2fd8c2=aggregateValidationReports(_0x42b33c),_0x7c2853=_0x42b33c[0x0];return{'filePath':_0x41646d,'hash':_0xe1b3e0,'kind':isServiceRegistryLike(_0x5051e1)?_0x3aa0a8(0x116):'manifest','manifest':_0x7c2853?.['manifest']??_0x5051e1,'report':_0x2fd8c2,'normalizedManifest':_0x42b33c[_0x3aa0a8(0x118)]===0x1?_0x7c2853?.[_0x3aa0a8(0xf4)]:undefined,'manifests':_0x42b33c};}export function importServiceManifest(_0x32e479,_0x53a9f6={}){const _0x281e44=a41_0x3f56,_0xc9bab5=loadServiceManifestFromFile(_0x32e479);if(!_0xc9bab5[_0x281e44(0x137)]['ok'])throw CliErrors[_0x281e44(0x112)](formatValidationFailure(_0xc9bab5[_0x281e44(0x137)]),_0x281e44(0x121));if(_0xc9bab5[_0x281e44(0xee)][_0x281e44(0x118)]===0x0)throw CliErrors['validation'](_0x281e44(0x103),_0x281e44(0xf9));const _0x2bc6e2=readServiceRegistry(_0x53a9f6),_0x54a92d=(_0x53a9f6['now']??(()=>new Date()))()[_0x281e44(0xef)](),_0x4874af=[];let _0x527602=0x0,_0x4eefc2=0x0;for(const _0x3c9b1a of _0xc9bab5[_0x281e44(0xee)]){if(!_0x3c9b1a[_0x281e44(0xf4)])continue;const _0x3832f4=_0x3c9b1a[_0x281e44(0xf4)][_0x281e44(0xff)][_0x281e44(0x125)],_0x36c91d={'serviceCode':_0x3832f4,'version':_0x3c9b1a['normalizedManifest']['version'],'importedAt':_0x54a92d,'source':{'type':_0x281e44(0x13a),'path':_0xc9bab5[_0x281e44(0xfb)],'hash':_0x3c9b1a[_0x281e44(0x143)]},'manifest':_0x3c9b1a[_0x281e44(0x120)],'normalizedManifest':_0x3c9b1a[_0x281e44(0xf4)]},_0x34ccae=_0x2bc6e2['services'][_0x281e44(0x13b)](_0x22c419=>_0x22c419['serviceCode']===_0x3832f4);_0x34ccae>=0x0?(_0x2bc6e2[_0x281e44(0x13d)][_0x34ccae]=_0x36c91d,_0x4eefc2++):(_0x2bc6e2[_0x281e44(0x13d)]['push'](_0x36c91d),_0x527602++),_0x4874af[_0x281e44(0x11b)](_0x36c91d);}_0x2bc6e2[_0x281e44(0x13d)][_0x281e44(0x139)]((_0x2f94ab,_0xc8ea67)=>_0x2f94ab['serviceCode'][_0x281e44(0x110)](_0xc8ea67[_0x281e44(0x122)])),_0x2bc6e2[_0x281e44(0x113)]=_0x54a92d;const _0x543ae5=writeServiceRegistry(_0x2bc6e2,_0x53a9f6);return{'registryPath':_0x543ae5,'entry':_0x4874af[0x0],'replaced':_0x4874af[_0x281e44(0x118)]===0x1?_0x4eefc2===0x1:_0x4eefc2>0x0,'entries':_0x4874af,'imported':_0x527602,'updated':_0x4eefc2,'serviceCount':_0x2bc6e2[_0x281e44(0x13d)][_0x281e44(0x118)]};}export function exportServiceManifest(_0x2afc5b,_0x177349,_0x5eb2e3={}){const _0x53a700=a41_0x3f56,_0x49c273=getServiceRegistryPath(_0x5eb2e3),_0x33732d=getLocalServiceEntry(_0x2afc5b,_0x5eb2e3);if(!_0x33732d)throw CliErrors[_0x53a700(0x112)]('Local\x20service\x20not\x20found:\x20'+_0x2afc5b,_0x53a700(0x136));const _0x3508af=resolve(_0x177349),_0x453adc=dirname(_0x3508af);return!existsSync(_0x453adc)&&mkdirSync(_0x453adc,{'recursive':!![]}),writeFileSync(_0x3508af,JSON['stringify'](_0x33732d[_0x53a700(0x120)],null,0x2)+'\x0a',{'encoding':_0x53a700(0x10c),'mode':0x180}),{'registryPath':_0x49c273,'filePath':_0x3508af,'entry':_0x33732d};}export function removeServiceManifest(_0x577176,_0x18c50a={}){const _0x2a5540=a41_0x3f56,_0x35de59=readServiceRegistry(_0x18c50a),_0x3853c4=_0x577176[_0x2a5540(0xfd)](),_0x3d270a=_0x35de59['services'][_0x2a5540(0x13b)](_0x5907b7=>_0x5907b7[_0x2a5540(0x122)]===_0x3853c4);if(_0x3d270a<0x0)throw CliErrors[_0x2a5540(0x112)]('Local\x20service\x20not\x20found:\x20'+_0x3853c4,_0x2a5540(0x136));const [_0xec3968]=_0x35de59[_0x2a5540(0x13d)][_0x2a5540(0x11c)](_0x3d270a,0x1),_0x5d5b40=(_0x18c50a[_0x2a5540(0x12d)]??(()=>new Date()))()[_0x2a5540(0xef)]();_0x35de59[_0x2a5540(0x113)]=_0x5d5b40;const _0x1bb00f=writeServiceRegistry(_0x35de59,_0x18c50a);return{'registryPath':_0x1bb00f,'entry':_0xec3968,'serviceCount':_0x35de59['services'][_0x2a5540(0x118)]};}export function listLocalServices(_0x11a918={}){return readServiceRegistry(_0x11a918)['services'];}export function getLocalServiceEntry(_0x277958,_0x57f33f={}){const _0xef0f16=a41_0x3f56;return readServiceRegistry(_0x57f33f)[_0xef0f16(0x13d)][_0xef0f16(0x102)](_0x1ad526=>_0x1ad526['serviceCode']===_0x277958[_0xef0f16(0xfd)]());}export function listLocalServiceTrees(_0x153e2c={}){const _0x54c9ed=a41_0x3f56;return readServiceRegistry(_0x153e2c)['services'][_0x54c9ed(0xf1)](_0x33ec14=>_0x33ec14['normalizedManifest']);}function a41_0x3f56(_0x10cbc5,_0x5a83d6){_0x10cbc5=_0x10cbc5-0xee;const _0x17f891=a41_0x17f8();let _0x3f5675=_0x17f891[_0x10cbc5];return _0x3f5675;}function a41_0x17f8(){const _0x63309b=['].manifest','reduce','Cannot\x20write\x20service\x20registry:\x20','148aSEhKv','CliError','message','name','3082230duHvKl','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','report','73265GxmVue','sort','file','findIndex','$.services[','services','Invalid\x20service\x20manifest\x20JSON:\x20','importedAt','string','path','bff\x20target\x20requires\x20functionName.','sourceHash','Remove\x20or\x20migrate\x20','manifests','toISOString','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','map','missing','64496PSUEKL','normalizedManifest','8777862WACfKn','sha256','warnings','source','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','services\x20must\x20be\x20an\x20array','filePath','110010xxgBLG','trim','homeDir','service','Invalid\x20service\x20registry\x20JSON:\x20','kind','find','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','parse','commands','startsWith','command','digest','stringify','10213gBkPhs','ENOENT','utf8','registryIndex','Unsupported\x20schemaVersion:\x20','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','localeCompare','risk','validation','updatedAt','Service\x20manifest\x20validation\x20failed:\x0a','target','registry','errors','length','2519URythq','schemaVersion','push','splice','5232SbvSAT','homeDirName','join','manifest','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','serviceCode','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','].manifest.','code','description','28pdMtLH','isArray','invalid','hex','2209374poIGzl','slice','now'];a41_0x17f8=function(){return _0x63309b;};return a41_0x17f8();}export function inspectServiceRegistry(_0x1bab46={}){const _0x4a2152=a41_0x3f56,_0x44e817=getServiceRegistryPath(_0x1bab46);if(!existsSync(_0x44e817))return emptyServiceRegistryInspection(_0x44e817,_0x4a2152(0xf2),![]);try{const _0x161261=readFileSync(_0x44e817,_0x4a2152(0x10c));if(!_0x161261[_0x4a2152(0xfd)]())return emptyServiceRegistryInspection(_0x44e817,'empty',!![]);const _0x5e5fe9=JSON[_0x4a2152(0x104)](_0x161261);if(_0x5e5fe9[_0x4a2152(0x11a)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x44e817,'invalid',!![]),'schemaVersion':_0x5e5fe9[_0x4a2152(0x11a)],'message':_0x4a2152(0x10e)+String(_0x5e5fe9[_0x4a2152(0x11a)])};if(!Array[_0x4a2152(0x128)](_0x5e5fe9[_0x4a2152(0x13d)]))return{...emptyServiceRegistryInspection(_0x44e817,_0x4a2152(0x129),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x5e5fe9[_0x4a2152(0x113)],'message':_0x4a2152(0xfa)};const _0x50df05=_0x5e5fe9[_0x4a2152(0x13d)]['map'](summarizeLocalServiceEntry);return{'registryPath':_0x44e817,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x5e5fe9[_0x4a2152(0x113)],'serviceCount':_0x50df05[_0x4a2152(0x118)],'commandCount':_0x50df05[_0x4a2152(0x12f)]((_0x20e052,_0xbb2a8f)=>_0x20e052+_0xbb2a8f['commandCount'],0x0),'services':_0x50df05};}catch(_0xf8ac00){return{...emptyServiceRegistryInspection(_0x44e817,'invalid',!![]),'message':_0xf8ac00 instanceof Error?_0xf8ac00[_0x4a2152(0x133)]:String(_0xf8ac00)};}}export function formatValidationFailure(_0x471b5e){const _0x2921f3=a41_0x3f56,_0x3cde15=_0x471b5e[_0x2921f3(0x117)][_0x2921f3(0xf1)](_0x4802a3=>_0x4802a3[_0x2921f3(0x141)]+':\x20'+_0x4802a3[_0x2921f3(0x133)]);return _0x2921f3(0x114)+_0x3cde15[_0x2921f3(0x11f)]('\x0a');}function extractLoadedServiceManifests(_0x35a91f,_0x5582e1){const _0x41cf62=a41_0x3f56;if(!isServiceRegistryLike(_0x35a91f)){const _0x5165e8=_0x35a91f,{manifest:_0x2f114b,errors:_0x5a9127}=adaptServiceTreeManifestForLegacyFramework(_0x5165e8),_0x94ed0c=validateServiceTreeManifest(_0x2f114b),_0x403e1f=mergeValidationErrors(_0x94ed0c,_0x5a9127);return[{'manifest':_0x5165e8,'report':_0x403e1f,'normalizedManifest':_0x403e1f['ok']?normalizeServiceTreeManifest(_0x2f114b):undefined,'sourceHash':_0x5582e1}];}return _0x35a91f[_0x41cf62(0x13d)][_0x41cf62(0xf1)]((_0x1bf835,_0x4d2d82)=>{const _0x481d5c=_0x41cf62,_0x8e2a8=isObjectRecord(_0x1bf835)?_0x1bf835[_0x481d5c(0x120)]:undefined,{manifest:_0x151012,errors:_0xd1a1d0}=adaptServiceTreeManifestForLegacyFramework(_0x8e2a8),_0x3dc192=validateServiceTreeManifest(_0x151012),_0x538d52=mergeValidationErrors(_0x3dc192,_0xd1a1d0),_0xba6bc3=isObjectRecord(_0x1bf835)&&typeof _0x1bf835[_0x481d5c(0x122)]===_0x481d5c(0x140)?_0x1bf835['serviceCode']:undefined;return{'manifest':_0x8e2a8,'report':_0x538d52,'normalizedManifest':_0x538d52['ok']?normalizeServiceTreeManifest(_0x151012):undefined,'sourceHash':sha256(JSON[_0x481d5c(0x109)](_0x8e2a8,null,0x2)+'\x0a'),'registryIndex':_0x4d2d82,'registryServiceCode':_0xba6bc3};});}function mergeValidationErrors(_0x3661c4,_0x2ff411){const _0x537089=a41_0x3f56,_0x4dd0d5=_0x3661c4[_0x537089(0x117)][_0x537089(0xf1)](_0x4a49f4=>_0x4a49f4['message']===_0x537089(0x123)?{..._0x4a49f4,'message':_0x537089(0x142)}:_0x4a49f4),_0x1e46e3=[..._0x2ff411,..._0x4dd0d5];return{'ok':_0x1e46e3[_0x537089(0x118)]===0x0,'errors':_0x1e46e3,'warnings':_0x3661c4[_0x537089(0xf7)]};}function aggregateValidationReports(_0x169def){const _0x1ab082=a41_0x3f56,_0x5afa23=_0x169def['flatMap'](_0x556214=>_0x556214[_0x1ab082(0x10d)]===undefined?_0x556214[_0x1ab082(0x137)]['errors']:_0x556214[_0x1ab082(0x137)][_0x1ab082(0x117)]['map'](_0x1e4d14=>({..._0x1e4d14,'path':prefixRegistryIssuePath(_0x556214[_0x1ab082(0x10d)],_0x1e4d14[_0x1ab082(0x141)])}))),_0xeaa2e2=_0x169def['flatMap'](_0x5084b3=>_0x5084b3['registryIndex']===undefined?_0x5084b3['report']['warnings']:_0x5084b3[_0x1ab082(0x137)][_0x1ab082(0xf7)][_0x1ab082(0xf1)](_0x149b5e=>({..._0x149b5e,'path':prefixRegistryIssuePath(_0x5084b3['registryIndex'],_0x149b5e[_0x1ab082(0x141)])})));return{'ok':_0x5afa23[_0x1ab082(0x118)]===0x0,'errors':_0x5afa23,'warnings':_0xeaa2e2};}function prefixRegistryIssuePath(_0x506634,_0x2b9f90){const _0x38b439=a41_0x3f56;if(_0x2b9f90==='$')return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e);if(_0x2b9f90[_0x38b439(0x106)]('$.'))return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e)+_0x2b9f90[_0x38b439(0x12c)](0x1);if(_0x2b9f90[_0x38b439(0x106)]('$['))return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e)+_0x2b9f90[_0x38b439(0x12c)](0x1);return _0x38b439(0x13c)+_0x506634+_0x38b439(0x124)+_0x2b9f90;}function isServiceRegistryLike(_0x43eac2){const _0x590d30=a41_0x3f56;return isObjectRecord(_0x43eac2)&&_0x43eac2[_0x590d30(0x11a)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x590d30(0x128)](_0x43eac2[_0x590d30(0x13d)]);}function isObjectRecord(_0x2dc63b){const _0xfd5a6d=a41_0x3f56;return Boolean(_0x2dc63b)&&typeof _0x2dc63b==='object'&&!Array[_0xfd5a6d(0x128)](_0x2dc63b);}function emptyServiceRegistryInspection(_0x13b73f,_0x2f4016,_0x476af1){return{'registryPath':_0x13b73f,'exists':_0x476af1,'status':_0x2f4016,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x24db5d){const _0x270f0a=a41_0x3f56,_0x2077aa=_0x24db5d[_0x270f0a(0xf4)],_0x8a64f3=_0x2077aa[_0x270f0a(0x105)][_0x270f0a(0xf1)](_0x1bbe99=>({'path':_0x1bbe99['cliPath'],'description':_0x1bbe99['description'],'risk':_0x1bbe99[_0x270f0a(0x111)],'targetKind':_0x1bbe99[_0x270f0a(0x115)][_0x270f0a(0x101)],'targetCommand':_0x1bbe99[_0x270f0a(0x115)][_0x270f0a(0x107)]}));return{'serviceCode':_0x24db5d[_0x270f0a(0x122)],'name':_0x2077aa[_0x270f0a(0xff)]['name'],'description':_0x2077aa[_0x270f0a(0xff)][_0x270f0a(0x126)],'version':_0x24db5d['version'],'importedAt':_0x24db5d[_0x270f0a(0x13f)],'source':_0x24db5d[_0x270f0a(0xf8)],'commandCount':_0x8a64f3[_0x270f0a(0x118)],'commands':_0x8a64f3};}function sha256(_0x5830e3){const _0x3ee3a5=a41_0x3f56;return createHash(_0x3ee3a5(0xf6))['update'](_0x5830e3)[_0x3ee3a5(0x108)](_0x3ee3a5(0x12a));}
@@ -1 +1 @@
1
- const a42_0x8cd67e=a42_0x1a00;(function(_0x42dab9,_0x247769){const _0x498f7a=a42_0x1a00,_0x4f5c82=_0x42dab9();while(!![]){try{const _0x50a457=parseInt(_0x498f7a(0x121))/0x1*(-parseInt(_0x498f7a(0x129))/0x2)+parseInt(_0x498f7a(0x13a))/0x3+-parseInt(_0x498f7a(0x12f))/0x4+-parseInt(_0x498f7a(0x126))/0x5+-parseInt(_0x498f7a(0x11f))/0x6+-parseInt(_0x498f7a(0x124))/0x7*(-parseInt(_0x498f7a(0x133))/0x8)+parseInt(_0x498f7a(0x12c))/0x9;if(_0x50a457===_0x247769)break;else _0x4f5c82['push'](_0x4f5c82['shift']());}catch(_0x553a6c){_0x4f5c82['push'](_0x4f5c82['shift']());}}}(a42_0x31b5,0xc84b8));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';function a42_0x1a00(_0xd7e212,_0x32d7bd){_0xd7e212=_0xd7e212-0x11f;const _0x31b522=a42_0x31b5();let _0x1a004b=_0x31b522[_0xd7e212];return _0x1a004b;}export const createCommand={'service':'skill','command':a42_0x8cd67e(0x13c),'description':a42_0x8cd67e(0x13d),'risk':a42_0x8cd67e(0x135),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x5220e0){const _0xb063fe=a42_0x8cd67e,_0xd517e2=buildSkillCreatePlan(_0x5220e0[_0xb063fe(0x12a)]('name'),_0x5220e0[_0xb063fe(0x12a)](_0xb063fe(0x139)),_0x5220e0[_0xb063fe(0x12a)](_0xb063fe(0x130)));return{'method':_0xb063fe(0x12d),'url':_0xd517e2['skillDir'],'body':{'skillName':_0xd517e2[_0xb063fe(0x136)][_0xb063fe(0x134)],'type':_0xd517e2[_0xb063fe(0x136)]['type'],'selfContained':!![],'files':_0xd517e2['rendered'][_0xb063fe(0x138)][_0xb063fe(0x128)](_0x48246b=>_0x48246b['path'])},'description':_0xb063fe(0x122)};},async 'execute'(_0x1ab880){const _0x131af4=a42_0x8cd67e,_0x530da1=buildSkillCreatePlan(_0x1ab880[_0x131af4(0x12a)]('name'),_0x1ab880['str'](_0x131af4(0x139)),_0x1ab880[_0x131af4(0x12a)](_0x131af4(0x130)));return writeSkillDraft(_0x530da1,_0x1ab880[_0x131af4(0x12e)]('force')),{'ok':!![],'data':{'skillName':_0x530da1[_0x131af4(0x136)]['skillName'],'type':_0x530da1[_0x131af4(0x136)][_0x131af4(0x139)],'dir':_0x530da1[_0x131af4(0x120)],'files':_0x530da1[_0x131af4(0x136)]['files'][_0x131af4(0x128)](_0x501323=>_0x501323[_0x131af4(0x127)])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x530da1[_0x131af4(0x136)][_0x131af4(0x134)]};}};function buildSkillCreatePlan(_0x146b8b,_0x15c9c5,_0x5074ce){const _0x184a21=a42_0x8cd67e,_0x436fe5=renderSkillTemplate({'skillName':_0x146b8b,'type':_0x15c9c5}),_0x315f75=resolve(normalizeSkillTarget(_0x5074ce));return{'rendered':_0x436fe5,'targetRoot':_0x315f75,'skillDir':resolve(_0x315f75,_0x436fe5[_0x184a21(0x134)])};}function normalizeSkillTarget(_0x209908){const _0x367b75=a42_0x8cd67e;return(_0x209908||DEFAULT_SKILL_TARGET)[_0x367b75(0x132)]()||DEFAULT_SKILL_TARGET;}function a42_0x31b5(){const _0xcd8ebc=['type','1247202olPxtx','Skill\x20directory\x20already\x20exists:\x20','create','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','4923582edLofl','skillDir','85121ISRHOf','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','validation','7KUrKMz','content','1453445mUVPZn','path','map','24wvyumO','str','isSymbolicLink','21102903xASgfi','WRITE','bool','2377144kZfRIe','target','isDirectory','trim','6295448BsSsMO','skillName','write','rendered','utf8','files'];a42_0x31b5=function(){return _0xcd8ebc;};return a42_0x31b5();}function writeSkillDraft(_0x3aeb5b,_0x32c338){const _0x1313b7=a42_0x8cd67e;if(existsSync(_0x3aeb5b['skillDir'])){const _0x17516c=lstatSync(_0x3aeb5b[_0x1313b7(0x120)]);if(!_0x17516c[_0x1313b7(0x131)]()||_0x17516c[_0x1313b7(0x12b)]())throw CliErrors[_0x1313b7(0x123)]('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x3aeb5b['skillDir']);if(!_0x32c338)throw CliErrors['validation'](_0x1313b7(0x13b)+_0x3aeb5b[_0x1313b7(0x120)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x58e484 of _0x3aeb5b[_0x1313b7(0x136)][_0x1313b7(0x138)]){const _0xf1a1a2=resolve(_0x3aeb5b[_0x1313b7(0x120)],_0x58e484['path']),_0x2eee95=dirname(_0xf1a1a2);mkdirSync(_0x2eee95,{'recursive':!![]});if(existsSync(_0xf1a1a2)&&lstatSync(_0xf1a1a2)[_0x1313b7(0x12b)]())throw CliErrors[_0x1313b7(0x123)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0xf1a1a2);writeFileSync(_0xf1a1a2,_0x58e484[_0x1313b7(0x125)],_0x1313b7(0x137));}}
1
+ function a42_0x199a(_0x27a3d8,_0x2a37e0){_0x27a3d8=_0x27a3d8-0x156;const _0x1396ee=a42_0x1396();let _0x199a6c=_0x1396ee[_0x27a3d8];return _0x199a6c;}const a42_0x1fa231=a42_0x199a;(function(_0x901469,_0x50ce4a){const _0x44b051=a42_0x199a,_0x360fca=_0x901469();while(!![]){try{const _0x25224b=parseInt(_0x44b051(0x160))/0x1+-parseInt(_0x44b051(0x172))/0x2+parseInt(_0x44b051(0x163))/0x3+parseInt(_0x44b051(0x15f))/0x4+parseInt(_0x44b051(0x168))/0x5*(-parseInt(_0x44b051(0x175))/0x6)+-parseInt(_0x44b051(0x16d))/0x7*(parseInt(_0x44b051(0x15a))/0x8)+parseInt(_0x44b051(0x15b))/0x9;if(_0x25224b===_0x50ce4a)break;else _0x360fca['push'](_0x360fca['shift']());}catch(_0x2c9eeb){_0x360fca['push'](_0x360fca['shift']());}}}(a42_0x1396,0xb1c5d));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';function a42_0x1396(){const _0x1549b3=['5173250PkOkQY','bool','skillName','Refusing\x20to\x20overwrite\x20symlink:\x20','isSymbolicLink','7PdCvzp','str','Skill\x20directory\x20already\x20exists:\x20','content','skill','261196jOSkSe','path','isDirectory','6CEfNko','Created\x20local\x20Skill\x20draft\x20','validation','utf8','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','create','WRITE','10256504aSpFRH','4364865QIEIix','rendered','target','type','4894056SFJkQv','964638jKSdJa','trim','skillDir','1506993BTgAjs','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','files','force','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft'];a42_0x1396=function(){return _0x1549b3;};return a42_0x1396();}import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a42_0x1fa231(0x171),'command':a42_0x1fa231(0x158),'description':a42_0x1fa231(0x167),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x13abab){const _0xb4f8af=a42_0x1fa231,_0x557247=buildSkillCreatePlan(_0x13abab['str']('name'),_0x13abab[_0xb4f8af(0x16e)]('type'),_0x13abab[_0xb4f8af(0x16e)](_0xb4f8af(0x15d)));return{'method':_0xb4f8af(0x159),'url':_0x557247[_0xb4f8af(0x162)],'body':{'skillName':_0x557247['rendered'][_0xb4f8af(0x16a)],'type':_0x557247[_0xb4f8af(0x15c)][_0xb4f8af(0x15e)],'selfContained':!![],'files':_0x557247[_0xb4f8af(0x15c)]['files']['map'](_0x3d270a=>_0x3d270a[_0xb4f8af(0x173)])},'description':_0xb4f8af(0x157)};},async 'execute'(_0x5baa74){const _0x4b4bc8=a42_0x1fa231,_0x1edde3=buildSkillCreatePlan(_0x5baa74[_0x4b4bc8(0x16e)]('name'),_0x5baa74[_0x4b4bc8(0x16e)](_0x4b4bc8(0x15e)),_0x5baa74[_0x4b4bc8(0x16e)](_0x4b4bc8(0x15d)));return writeSkillDraft(_0x1edde3,_0x5baa74[_0x4b4bc8(0x169)](_0x4b4bc8(0x166))),{'ok':!![],'data':{'skillName':_0x1edde3[_0x4b4bc8(0x15c)]['skillName'],'type':_0x1edde3[_0x4b4bc8(0x15c)][_0x4b4bc8(0x15e)],'dir':_0x1edde3['skillDir'],'files':_0x1edde3[_0x4b4bc8(0x15c)][_0x4b4bc8(0x165)]['map'](_0x2e5667=>_0x2e5667[_0x4b4bc8(0x173)])},'message':_0x4b4bc8(0x176)+_0x1edde3[_0x4b4bc8(0x15c)]['skillName']};}};function buildSkillCreatePlan(_0x50f14a,_0x89475b,_0x71ae6c){const _0x442b73=renderSkillTemplate({'skillName':_0x50f14a,'type':_0x89475b}),_0x34ac51=resolve(normalizeSkillTarget(_0x71ae6c));return{'rendered':_0x442b73,'targetRoot':_0x34ac51,'skillDir':resolve(_0x34ac51,_0x442b73['skillName'])};}function normalizeSkillTarget(_0x548ae7){const _0x343d86=a42_0x1fa231;return(_0x548ae7||DEFAULT_SKILL_TARGET)[_0x343d86(0x161)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x1818fe,_0x2a8bfb){const _0x1f0467=a42_0x1fa231;if(existsSync(_0x1818fe[_0x1f0467(0x162)])){const _0x4585d2=lstatSync(_0x1818fe[_0x1f0467(0x162)]);if(!_0x4585d2[_0x1f0467(0x174)]()||_0x4585d2[_0x1f0467(0x16c)]())throw CliErrors[_0x1f0467(0x177)](_0x1f0467(0x164)+_0x1818fe[_0x1f0467(0x162)]);if(!_0x2a8bfb)throw CliErrors[_0x1f0467(0x177)](_0x1f0467(0x16f)+_0x1818fe[_0x1f0467(0x162)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x5da1f0 of _0x1818fe[_0x1f0467(0x15c)][_0x1f0467(0x165)]){const _0x371253=resolve(_0x1818fe[_0x1f0467(0x162)],_0x5da1f0[_0x1f0467(0x173)]),_0x2c6133=dirname(_0x371253);mkdirSync(_0x2c6133,{'recursive':!![]});if(existsSync(_0x371253)&&lstatSync(_0x371253)[_0x1f0467(0x16c)]())throw CliErrors['validation'](_0x1f0467(0x16b)+_0x371253);writeFileSync(_0x371253,_0x5da1f0[_0x1f0467(0x170)],_0x1f0467(0x156));}}
@@ -1 +1 @@
1
- const a43_0x510543=a43_0x3b43;(function(_0x111b2b,_0x470d8d){const _0x291d89=a43_0x3b43,_0xfbe68d=_0x111b2b();while(!![]){try{const _0x1b87c3=-parseInt(_0x291d89(0x208))/0x1*(-parseInt(_0x291d89(0x20b))/0x2)+-parseInt(_0x291d89(0x218))/0x3*(parseInt(_0x291d89(0x20c))/0x4)+parseInt(_0x291d89(0x20a))/0x5+-parseInt(_0x291d89(0x1f3))/0x6*(-parseInt(_0x291d89(0x205))/0x7)+parseInt(_0x291d89(0x209))/0x8+parseInt(_0x291d89(0x219))/0x9*(-parseInt(_0x291d89(0x217))/0xa)+parseInt(_0x291d89(0x207))/0xb*(-parseInt(_0x291d89(0x20f))/0xc);if(_0x1b87c3===_0x470d8d)break;else _0xfbe68d['push'](_0xfbe68d['shift']());}catch(_0x4d7640){_0xfbe68d['push'](_0xfbe68d['shift']());}}}(a43_0x43ec,0x24df3));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';function a43_0x43ec(){const _0x3b3bbe=['16326BZeeAe','18mnvVyK','version','length','../../../core/api-client.js','flatMap','filter','684534MkOJMx','accessKey','appCode','envName','skillCode','push','personal','reduce','../../../skills/runtime-skill-sync.js','unchanged','action','authRequired','trim','production','write','force','skill','includes','7NLPboZ','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','16093xBVgyU','125878xbJyan','2111848BagPhe','607480dLjmbt','2EJInqr','116xLWMjc','created','map','1428vyyITF','install','Installed\x20','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','\x20personal\x20and\x20','skipped','company','str','712510sqgCKq'];a43_0x43ec=function(){return _0x3b3bbe;};return a43_0x43ec();}export const installCommand={'service':a43_0x510543(0x203),'command':a43_0x510543(0x210),'description':a43_0x510543(0x206),'risk':a43_0x510543(0x201),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x27e819){return syncRuntimeSkills(_0x27e819);}};async function syncRuntimeSkills(_0x5af5e6){const _0x244b77=a43_0x510543,{downloadRuntimeSkillPackage:_0x4207d9,listRuntimeSkills:_0xb602b5}=await import(_0x244b77(0x21c)),{linkEffectiveRuntimeSkills:_0x24f92d,materializeRuntimeSkill:_0x226dcc,pruneStaleRuntimeSkillCache:_0x33f068,pruneStaleRuntimeSkillLinks:_0xa8b6d1}=await import(_0x244b77(0x1fb)),_0x42497c=_0x5af5e6['str']('code'),_0x3cc521=normalizeSyncScopes(_0x5af5e6[_0x244b77(0x216)]('scope')),_0x29d3b0=_0x5af5e6[_0x244b77(0x1f6)]??_0x244b77(0x200),_0x3a2435=_0x5af5e6[_0x244b77(0x1f4)],_0x764b10=_0x5af5e6['bool'](_0x244b77(0x202));if(!_0x3a2435)throw CliErrors[_0x244b77(0x1fe)](_0x244b77(0x212));const _0x30a698=await Promise['all'](_0x3cc521['map'](_0x4103a9=>_0xb602b5({'appCode':_0x5af5e6['appCode'],'scope':_0x4103a9,'code':_0x42497c[_0x244b77(0x1ff)]()||undefined}))),_0x77e152=_0x3cc521[_0x244b77(0x204)](_0x244b77(0x1f9))?_0x30a698['flatMap']((_0x4baa07,_0x4bc36f)=>_0x3cc521[_0x4bc36f]===_0x244b77(0x1f9)?_0x4baa07[_0x244b77(0x1f9)]:[]):[],_0x4120eb=_0x3cc521[_0x244b77(0x204)](_0x244b77(0x215))?_0x30a698[_0x244b77(0x1f1)]((_0x580e15,_0xfe731c)=>_0x3cc521[_0xfe731c]===_0x244b77(0x215)?_0x580e15[_0x244b77(0x215)]:[]):[],_0x575142=new Set([..._0x77e152[_0x244b77(0x20e)](_0x2ce9f1=>_0x2ce9f1[_0x244b77(0x1f7)]?.[_0x244b77(0x1ff)]())[_0x244b77(0x1f2)](_0x5691b7=>Boolean(_0x5691b7)),..._0x4120eb[_0x244b77(0x20e)](_0x25beb4=>_0x25beb4[_0x244b77(0x1f7)]?.[_0x244b77(0x1ff)]())['filter'](_0x4ef342=>Boolean(_0x4ef342))]),_0x59855c=_0x42497c['trim']()?[_0x42497c[_0x244b77(0x1ff)]()]:undefined,_0x2466e5=_0x3cc521['length']===0x2&&_0x3cc521[_0x244b77(0x204)](_0x244b77(0x1f9))&&_0x3cc521[_0x244b77(0x204)](_0x244b77(0x215)),_0x2eb12a=_0x2466e5?_0xa8b6d1(_0x5af5e6[_0x244b77(0x1f5)],_0x575142,{},_0x59855c):[],_0x55b1f9=_0x33f068({'env':_0x29d3b0,'accessKey':_0x3a2435,'appCode':_0x5af5e6[_0x244b77(0x1f5)],'activeSkillCodes':_0x575142,'pruneSkillCodes':_0x59855c,'scopes':_0x3cc521}),_0x588988=[];for(const _0x25b2af of _0x77e152){_0x588988['push'](_0x226dcc(_0x25b2af,_0x244b77(0x1f9),{'env':_0x29d3b0,'accessKey':_0x3a2435,'appCode':_0x5af5e6[_0x244b77(0x1f5)],'force':_0x764b10,'packageBytes':await downloadSkillPackage(_0x25b2af,_0x244b77(0x1f9),_0x5af5e6[_0x244b77(0x1f5)],_0x4207d9)}));}for(const _0x39f0a1 of _0x4120eb){_0x588988[_0x244b77(0x1f8)](_0x226dcc(_0x39f0a1,_0x244b77(0x215),{'env':_0x29d3b0,'accessKey':_0x3a2435,'appCode':_0x5af5e6[_0x244b77(0x1f5)],'force':_0x764b10,'packageBytes':await downloadSkillPackage(_0x39f0a1,_0x244b77(0x215),_0x5af5e6[_0x244b77(0x1f5)],_0x4207d9)}));}const _0x23afed=_0x24f92d(_0x588988,_0x5af5e6['appCode']),_0x3d5f1c=countLinkActions(_0x23afed);return{'ok':!![],'data':{'appCode':_0x5af5e6[_0x244b77(0x1f5)],'personal':_0x77e152[_0x244b77(0x21b)],'company':_0x4120eb['length'],'materialized':_0x588988[_0x244b77(0x21b)],'links':{'total':_0x23afed[_0x244b77(0x21b)],'created':_0x3d5f1c[_0x244b77(0x20d)]??0x0,'updated':_0x3d5f1c['updated']??0x0,'unchanged':_0x3d5f1c[_0x244b77(0x1fc)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x2eb12a[_0x244b77(0x1f2)](_0x11cde8=>_0x11cde8[_0x244b77(0x1fd)]==='removed')[_0x244b77(0x21b)],'cacheDirs':_0x55b1f9[_0x244b77(0x1f2)](_0x1410de=>_0x1410de[_0x244b77(0x1fd)]==='removed')[_0x244b77(0x21b)],'skipped':[..._0x2eb12a,..._0x55b1f9][_0x244b77(0x1f2)](_0x129cfe=>_0x129cfe[_0x244b77(0x1fd)]===_0x244b77(0x214))[_0x244b77(0x21b)]},'skills':{'personal':_0x77e152['map'](summarizeRuntimeSkill),'company':_0x4120eb[_0x244b77(0x20e)](summarizeRuntimeSkill)}},'message':_0x244b77(0x211)+_0x77e152[_0x244b77(0x21b)]+_0x244b77(0x213)+_0x4120eb[_0x244b77(0x21b)]+'\x20company\x20Skill(s).'};}function a43_0x3b43(_0x46e930,_0x4ba58c){_0x46e930=_0x46e930-0x1f1;const _0x43ec03=a43_0x43ec();let _0x3b4322=_0x43ec03[_0x46e930];return _0x3b4322;}async function downloadSkillPackage(_0x46b4d9,_0x210b68,_0x7f1185,_0x3f73d9){const _0x5a02c0=a43_0x510543,_0x380536=_0x46b4d9[_0x5a02c0(0x21a)]?.[_0x5a02c0(0x1ff)]();return _0x380536?_0x3f73d9(_0x210b68,_0x46b4d9[_0x5a02c0(0x1f7)],_0x7f1185,_0x380536):_0x3f73d9(_0x210b68,_0x46b4d9[_0x5a02c0(0x1f7)],_0x7f1185);}function countLinkActions(_0x2bfb48){const _0x20686a=a43_0x510543;return _0x2bfb48[_0x20686a(0x1fa)]((_0x2fb71e,_0x3fa022)=>{const _0x1b9cf0=_0x20686a;return _0x2fb71e[_0x3fa022[_0x1b9cf0(0x1fd)]]=(_0x2fb71e[_0x3fa022[_0x1b9cf0(0x1fd)]]??0x0)+0x1,_0x2fb71e;},{});}
1
+ const a43_0x5afed9=a43_0x1320;(function(_0x1318c6,_0x42318f){const _0x58ef35=a43_0x1320,_0x50d084=_0x1318c6();while(!![]){try{const _0x46b57f=parseInt(_0x58ef35(0x175))/0x1+parseInt(_0x58ef35(0x183))/0x2*(-parseInt(_0x58ef35(0x174))/0x3)+-parseInt(_0x58ef35(0x16f))/0x4+parseInt(_0x58ef35(0x176))/0x5+-parseInt(_0x58ef35(0x173))/0x6+parseInt(_0x58ef35(0x187))/0x7+-parseInt(_0x58ef35(0x179))/0x8*(-parseInt(_0x58ef35(0x164))/0x9);if(_0x46b57f===_0x42318f)break;else _0x50d084['push'](_0x50d084['shift']());}catch(_0x4f5b55){_0x50d084['push'](_0x50d084['shift']());}}}(a43_0x4dd6,0x91fc7));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';function a43_0x4dd6(){const _0x17e4fd=['unchanged','../../../skills/runtime-skill-sync.js','str','Installed\x20','production','authRequired','82358QhzKCI','all','flatMap','filter','5316045LzNtKc','skillCode','../../../core/api-client.js','version','updated','company','333miAXgR','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','envName','length','push','includes','skill','personal','force','\x20personal\x20and\x20','write','2147156PBRXIy','removed','action','trim','586590Uurxta','87yXvMRm','634688fySNVg','746030RYPcoL','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','\x20company\x20Skill(s).','191000fPyCTS','map','appCode','skipped'];a43_0x4dd6=function(){return _0x17e4fd;};return a43_0x4dd6();}function a43_0x1320(_0x3dde68,_0x164831){_0x3dde68=_0x3dde68-0x161;const _0x4dd662=a43_0x4dd6();let _0x1320a6=_0x4dd662[_0x3dde68];return _0x1320a6;}export const installCommand={'service':a43_0x5afed9(0x16a),'command':'install','description':a43_0x5afed9(0x177),'risk':a43_0x5afed9(0x16e),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x2780e5){return syncRuntimeSkills(_0x2780e5);}};async function syncRuntimeSkills(_0x3ddf80){const _0x364b5e=a43_0x5afed9,{downloadRuntimeSkillPackage:_0x21867c,listRuntimeSkills:_0x11133a}=await import(_0x364b5e(0x189)),{linkEffectiveRuntimeSkills:_0x526647,materializeRuntimeSkill:_0x27a777,pruneStaleRuntimeSkillCache:_0x1366f7,pruneStaleRuntimeSkillLinks:_0x44bc52}=await import(_0x364b5e(0x17e)),_0x283ab8=_0x3ddf80[_0x364b5e(0x17f)]('code'),_0x5be2c4=normalizeSyncScopes(_0x3ddf80['str']('scope')),_0x2c6ded=_0x3ddf80[_0x364b5e(0x166)]??_0x364b5e(0x181),_0x1f806c=_0x3ddf80['accessKey'],_0x20712e=_0x3ddf80['bool'](_0x364b5e(0x16c));if(!_0x1f806c)throw CliErrors[_0x364b5e(0x182)](_0x364b5e(0x165));const _0x21a55a=await Promise[_0x364b5e(0x184)](_0x5be2c4[_0x364b5e(0x17a)](_0x258212=>_0x11133a({'appCode':_0x3ddf80['appCode'],'scope':_0x258212,'code':_0x283ab8[_0x364b5e(0x172)]()||undefined}))),_0x485acc=_0x5be2c4['includes'](_0x364b5e(0x16b))?_0x21a55a[_0x364b5e(0x185)]((_0x2bca4b,_0x20d35c)=>_0x5be2c4[_0x20d35c]===_0x364b5e(0x16b)?_0x2bca4b[_0x364b5e(0x16b)]:[]):[],_0x5c4a1e=_0x5be2c4['includes'](_0x364b5e(0x163))?_0x21a55a['flatMap']((_0x26a48f,_0x51bf3b)=>_0x5be2c4[_0x51bf3b]===_0x364b5e(0x163)?_0x26a48f[_0x364b5e(0x163)]:[]):[],_0x27992f=new Set([..._0x485acc['map'](_0x543ab2=>_0x543ab2[_0x364b5e(0x188)]?.[_0x364b5e(0x172)]())[_0x364b5e(0x186)](_0x16dbe8=>Boolean(_0x16dbe8)),..._0x5c4a1e[_0x364b5e(0x17a)](_0x3644c3=>_0x3644c3[_0x364b5e(0x188)]?.['trim']())[_0x364b5e(0x186)](_0x2a8825=>Boolean(_0x2a8825))]),_0x3ae934=_0x283ab8[_0x364b5e(0x172)]()?[_0x283ab8[_0x364b5e(0x172)]()]:undefined,_0x54e880=_0x5be2c4[_0x364b5e(0x167)]===0x2&&_0x5be2c4[_0x364b5e(0x169)](_0x364b5e(0x16b))&&_0x5be2c4['includes'](_0x364b5e(0x163)),_0x9b8609=_0x54e880?_0x44bc52(_0x3ddf80[_0x364b5e(0x17b)],_0x27992f,{},_0x3ae934):[],_0x5289a3=_0x1366f7({'env':_0x2c6ded,'accessKey':_0x1f806c,'appCode':_0x3ddf80[_0x364b5e(0x17b)],'activeSkillCodes':_0x27992f,'pruneSkillCodes':_0x3ae934,'scopes':_0x5be2c4}),_0x54e65d=[];for(const _0x5e6c90 of _0x485acc){_0x54e65d[_0x364b5e(0x168)](_0x27a777(_0x5e6c90,_0x364b5e(0x16b),{'env':_0x2c6ded,'accessKey':_0x1f806c,'appCode':_0x3ddf80[_0x364b5e(0x17b)],'force':_0x20712e,'packageBytes':await downloadSkillPackage(_0x5e6c90,_0x364b5e(0x16b),_0x3ddf80[_0x364b5e(0x17b)],_0x21867c)}));}for(const _0x9e9741 of _0x5c4a1e){_0x54e65d[_0x364b5e(0x168)](_0x27a777(_0x9e9741,_0x364b5e(0x163),{'env':_0x2c6ded,'accessKey':_0x1f806c,'appCode':_0x3ddf80['appCode'],'force':_0x20712e,'packageBytes':await downloadSkillPackage(_0x9e9741,_0x364b5e(0x163),_0x3ddf80[_0x364b5e(0x17b)],_0x21867c)}));}const _0x5534da=_0x526647(_0x54e65d,_0x3ddf80[_0x364b5e(0x17b)]),_0x3c3ddb=countLinkActions(_0x5534da);return{'ok':!![],'data':{'appCode':_0x3ddf80['appCode'],'personal':_0x485acc['length'],'company':_0x5c4a1e[_0x364b5e(0x167)],'materialized':_0x54e65d['length'],'links':{'total':_0x5534da[_0x364b5e(0x167)],'created':_0x3c3ddb['created']??0x0,'updated':_0x3c3ddb[_0x364b5e(0x162)]??0x0,'unchanged':_0x3c3ddb[_0x364b5e(0x17d)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x9b8609[_0x364b5e(0x186)](_0x38e0c3=>_0x38e0c3[_0x364b5e(0x171)]===_0x364b5e(0x170))['length'],'cacheDirs':_0x5289a3[_0x364b5e(0x186)](_0x2f0a6f=>_0x2f0a6f[_0x364b5e(0x171)]===_0x364b5e(0x170))[_0x364b5e(0x167)],'skipped':[..._0x9b8609,..._0x5289a3]['filter'](_0x3b3b9c=>_0x3b3b9c[_0x364b5e(0x171)]===_0x364b5e(0x17c))[_0x364b5e(0x167)]},'skills':{'personal':_0x485acc['map'](summarizeRuntimeSkill),'company':_0x5c4a1e[_0x364b5e(0x17a)](summarizeRuntimeSkill)}},'message':_0x364b5e(0x180)+_0x485acc['length']+_0x364b5e(0x16d)+_0x5c4a1e[_0x364b5e(0x167)]+_0x364b5e(0x178)};}async function downloadSkillPackage(_0x5daa86,_0x108e79,_0x29ebed,_0x5c0e92){const _0xf013d3=a43_0x5afed9,_0x2c7cf7=_0x5daa86[_0xf013d3(0x161)]?.[_0xf013d3(0x172)]();return _0x2c7cf7?_0x5c0e92(_0x108e79,_0x5daa86[_0xf013d3(0x188)],_0x29ebed,_0x2c7cf7):_0x5c0e92(_0x108e79,_0x5daa86['skillCode'],_0x29ebed);}function countLinkActions(_0x310163){return _0x310163['reduce']((_0x570e14,_0x2aaaba)=>{const _0x354f2d=a43_0x1320;return _0x570e14[_0x2aaaba[_0x354f2d(0x171)]]=(_0x570e14[_0x2aaaba['action']]??0x0)+0x1,_0x570e14;},{});}
@@ -1 +1 @@
1
- const a44_0x383447=a44_0x5550;function a44_0x38e4(){const _0x2834f5=['read','4nvoLVK','filter','remote','14823nikeCH','2845200sXCmgE','../../../skills/runtime-skill-sync.js','personal','6DxcrPL','authRequired','map','bool','4750389ikriWx','accessKey','local','\x20remote\x20Skill(s).','321159vrNWhn','length','scope','str','builtin','company','194414phDfax','2816dYpPEQ','Listed\x20','3150565bLgqZU','list','\x20local\x20Skill(s).','885180GWoBUF','production','code','skill','envName','trim','appCode','60rFTlvF'];a44_0x38e4=function(){return _0x2834f5;};return a44_0x38e4();}function a44_0x5550(_0x5b65fe,_0x15c7e2){_0x5b65fe=_0x5b65fe-0x14d;const _0x38e41a=a44_0x38e4();let _0x5550e2=_0x38e41a[_0x5b65fe];return _0x5550e2;}(function(_0xd5be1e,_0x3fe1d7){const _0x5116a9=a44_0x5550,_0x121083=_0xd5be1e();while(!![]){try{const _0x206e40=parseInt(_0x5116a9(0x169))/0x1+parseInt(_0x5116a9(0x15b))/0x2*(parseInt(_0x5116a9(0x163))/0x3)+-parseInt(_0x5116a9(0x154))/0x4*(parseInt(_0x5116a9(0x16f))/0x5)+parseInt(_0x5116a9(0x158))/0x6+parseInt(_0x5116a9(0x15f))/0x7+parseInt(_0x5116a9(0x16a))/0x8*(parseInt(_0x5116a9(0x157))/0x9)+parseInt(_0x5116a9(0x152))/0xa*(-parseInt(_0x5116a9(0x16c))/0xb);if(_0x206e40===_0x3fe1d7)break;else _0x121083['push'](_0x121083['shift']());}catch(_0x14bbdb){_0x121083['push'](_0x121083['shift']());}}}(a44_0x38e4,0x5616a));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a44_0x383447(0x14e),'command':a44_0x383447(0x16d),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a44_0x383447(0x153),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x2471f4){const _0x4d54ba=a44_0x383447,_0x2782ae=_0x2471f4[_0x4d54ba(0x166)](_0x4d54ba(0x14d)),_0x342d54=normalizeListScope(_0x2471f4[_0x4d54ba(0x166)](_0x4d54ba(0x165)));if(_0x2471f4[_0x4d54ba(0x15e)](_0x4d54ba(0x161))){const _0x121407=_0x2471f4[_0x4d54ba(0x160)];if(!_0x121407)throw CliErrors[_0x4d54ba(0x15c)]();const {listLocalRuntimeSkills:_0x211988}=await import(_0x4d54ba(0x159)),_0x3890a7=_0x211988({'env':_0x2471f4[_0x4d54ba(0x14f)]??_0x4d54ba(0x170),'accessKey':_0x121407,'appCode':_0x2471f4[_0x4d54ba(0x151)],'scopes':listScopeToRuntimeScopes(_0x342d54),'code':_0x2782ae[_0x4d54ba(0x150)]()||undefined}),_0x30c932=groupLocalRuntimeSkills(_0x3890a7);return{'ok':!![],'data':{'appCode':_0x2471f4[_0x4d54ba(0x151)],'source':_0x4d54ba(0x161),'scope':_0x342d54,'total':_0x3890a7['length'],'personal':_0x30c932[_0x4d54ba(0x15a)][_0x4d54ba(0x164)],'company':_0x30c932[_0x4d54ba(0x168)]['length'],'items':_0x3890a7['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x30c932[_0x4d54ba(0x15a)][_0x4d54ba(0x15d)](summarizeLocalRuntimeSkill),'company':_0x30c932[_0x4d54ba(0x168)][_0x4d54ba(0x15d)](summarizeLocalRuntimeSkill)}},'message':_0x4d54ba(0x16b)+_0x3890a7['length']+_0x4d54ba(0x16e)};}const {listRuntimeSkills:_0x2a55d3}=await import('../../../core/api-client.js'),_0x364aee=await _0x2a55d3({'appCode':_0x2471f4[_0x4d54ba(0x151)],'scope':listScopeToRemoteScope(_0x342d54),'code':_0x2782ae[_0x4d54ba(0x150)]()||undefined}),_0x4a8060=shouldListScope(_0x342d54,_0x4d54ba(0x15a))?_0x364aee['personal']??[]:[],_0x29d625=shouldListScope(_0x342d54,_0x4d54ba(0x168))?_0x364aee['company']??[]:[],_0x119eb3=[..._0x4a8060,..._0x29d625];return{'ok':!![],'data':{'appCode':_0x2471f4[_0x4d54ba(0x151)],'source':_0x4d54ba(0x156),'scope':_0x342d54,'total':_0x119eb3['length'],'personal':_0x4a8060[_0x4d54ba(0x164)],'company':_0x29d625[_0x4d54ba(0x164)],'items':_0x119eb3[_0x4d54ba(0x15d)](summarizeRuntimeSkill),'skills':{'personal':_0x4a8060[_0x4d54ba(0x15d)](summarizeRuntimeSkill),'company':_0x29d625['map'](summarizeRuntimeSkill)}},'message':_0x4d54ba(0x16b)+_0x119eb3['length']+_0x4d54ba(0x162)};}};function groupLocalRuntimeSkills(_0xc38bd4){const _0x37396b=a44_0x383447;return{'personal':_0xc38bd4['filter'](_0x2301a9=>_0x2301a9[_0x37396b(0x165)]===_0x37396b(0x15a)),'company':_0xc38bd4[_0x37396b(0x155)](_0x58f605=>_0x58f605[_0x37396b(0x165)]===_0x37396b(0x168)),'builtin':_0xc38bd4['filter'](_0x35d03f=>_0x35d03f[_0x37396b(0x165)]===_0x37396b(0x167))};}
1
+ const a44_0x144a5c=a44_0x2a8f;function a44_0x2a8f(_0x52a8d1,_0x4ea618){_0x52a8d1=_0x52a8d1-0xa5;const _0x2b95eb=a44_0x2b95();let _0x2a8f00=_0x2b95eb[_0x52a8d1];return _0x2a8f00;}(function(_0x4c06c3,_0x5adf2e){const _0x5fcfb8=a44_0x2a8f,_0x417f70=_0x4c06c3();while(!![]){try{const _0x1af0f4=-parseInt(_0x5fcfb8(0xad))/0x1*(parseInt(_0x5fcfb8(0xa5))/0x2)+parseInt(_0x5fcfb8(0xbc))/0x3+parseInt(_0x5fcfb8(0xb8))/0x4+-parseInt(_0x5fcfb8(0xc5))/0x5+-parseInt(_0x5fcfb8(0xc1))/0x6*(parseInt(_0x5fcfb8(0xbd))/0x7)+-parseInt(_0x5fcfb8(0xbb))/0x8*(parseInt(_0x5fcfb8(0xa9))/0x9)+-parseInt(_0x5fcfb8(0xb3))/0xa*(-parseInt(_0x5fcfb8(0xc0))/0xb);if(_0x1af0f4===_0x5adf2e)break;else _0x417f70['push'](_0x417f70['shift']());}catch(_0x4d2ec8){_0x417f70['push'](_0x417f70['shift']());}}}(a44_0x2b95,0x95790));import{CliErrors}from'../../../errors.js';function a44_0x2b95(){const _0x122f7b=['filter','90BnqWxp','map','production','\x20local\x20Skill(s).','../../../skills/runtime-skill-sync.js','3990868BwWzeL','bool','../../../core/api-client.js','344ZSSRqn','1790787QFemyZ','14liDVAs','remote','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','1450515AmUlFG','329334XzHOTt','authRequired','appCode','code','4987860PgBKIH','2YlPlct','scope','trim','list','184986POhZJv','str','Listed\x20','personal','178019rgECph','company','length','builtin','envName'];a44_0x2b95=function(){return _0x122f7b;};return a44_0x2b95();}import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a44_0x144a5c(0xa8),'description':a44_0x144a5c(0xbf),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x2b0700){const _0x5d43a7=a44_0x144a5c,_0x442c95=_0x2b0700[_0x5d43a7(0xaa)](_0x5d43a7(0xc4)),_0x489624=normalizeListScope(_0x2b0700['str'](_0x5d43a7(0xa6)));if(_0x2b0700[_0x5d43a7(0xb9)]('local')){const _0x5bfc36=_0x2b0700['accessKey'];if(!_0x5bfc36)throw CliErrors[_0x5d43a7(0xc2)]();const {listLocalRuntimeSkills:_0x456926}=await import(_0x5d43a7(0xb7)),_0xdbe52a=_0x456926({'env':_0x2b0700[_0x5d43a7(0xb1)]??_0x5d43a7(0xb5),'accessKey':_0x5bfc36,'appCode':_0x2b0700[_0x5d43a7(0xc3)],'scopes':listScopeToRuntimeScopes(_0x489624),'code':_0x442c95[_0x5d43a7(0xa7)]()||undefined}),_0xc25661=groupLocalRuntimeSkills(_0xdbe52a);return{'ok':!![],'data':{'appCode':_0x2b0700['appCode'],'source':'local','scope':_0x489624,'total':_0xdbe52a[_0x5d43a7(0xaf)],'personal':_0xc25661[_0x5d43a7(0xac)][_0x5d43a7(0xaf)],'company':_0xc25661[_0x5d43a7(0xae)][_0x5d43a7(0xaf)],'items':_0xdbe52a[_0x5d43a7(0xb4)](summarizeLocalRuntimeSkill),'skills':{'personal':_0xc25661[_0x5d43a7(0xac)]['map'](summarizeLocalRuntimeSkill),'company':_0xc25661[_0x5d43a7(0xae)][_0x5d43a7(0xb4)](summarizeLocalRuntimeSkill)}},'message':_0x5d43a7(0xab)+_0xdbe52a[_0x5d43a7(0xaf)]+_0x5d43a7(0xb6)};}const {listRuntimeSkills:_0x33c62e}=await import(_0x5d43a7(0xba)),_0x64f14b=await _0x33c62e({'appCode':_0x2b0700[_0x5d43a7(0xc3)],'scope':listScopeToRemoteScope(_0x489624),'code':_0x442c95['trim']()||undefined}),_0x32b8b3=shouldListScope(_0x489624,'personal')?_0x64f14b[_0x5d43a7(0xac)]??[]:[],_0x1d6c70=shouldListScope(_0x489624,_0x5d43a7(0xae))?_0x64f14b[_0x5d43a7(0xae)]??[]:[],_0x3376f7=[..._0x32b8b3,..._0x1d6c70];return{'ok':!![],'data':{'appCode':_0x2b0700[_0x5d43a7(0xc3)],'source':_0x5d43a7(0xbe),'scope':_0x489624,'total':_0x3376f7[_0x5d43a7(0xaf)],'personal':_0x32b8b3[_0x5d43a7(0xaf)],'company':_0x1d6c70[_0x5d43a7(0xaf)],'items':_0x3376f7[_0x5d43a7(0xb4)](summarizeRuntimeSkill),'skills':{'personal':_0x32b8b3[_0x5d43a7(0xb4)](summarizeRuntimeSkill),'company':_0x1d6c70[_0x5d43a7(0xb4)](summarizeRuntimeSkill)}},'message':_0x5d43a7(0xab)+_0x3376f7[_0x5d43a7(0xaf)]+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x3eb6b4){const _0x23b5c6=a44_0x144a5c;return{'personal':_0x3eb6b4['filter'](_0x2040db=>_0x2040db[_0x23b5c6(0xa6)]===_0x23b5c6(0xac)),'company':_0x3eb6b4[_0x23b5c6(0xb2)](_0x24656b=>_0x24656b[_0x23b5c6(0xa6)]===_0x23b5c6(0xae)),'builtin':_0x3eb6b4[_0x23b5c6(0xb2)](_0x424013=>_0x424013['scope']===_0x23b5c6(0xb0))};}
@@ -1 +1 @@
1
- const a45_0x34abe6=a45_0x255c;function a45_0x255c(_0xae0af1,_0x33750c){_0xae0af1=_0xae0af1-0x146;const _0x3551bf=a45_0x3551();let _0x255cc1=_0x3551bf[_0xae0af1];return _0x255cc1;}function a45_0x3551(){const _0x40f26d=['skill','2896976HyDywL','3558MjcTZP','218197gxWaFW','5504NJpNLd','6VIjFwB','4726180FxMstB','4825458NLJELw','1056136AxJqka','push','70iflAXg','415157KrVpzM','write'];a45_0x3551=function(){return _0x40f26d;};return a45_0x3551();}(function(_0x606064,_0x3af6b6){const _0x15dbd9=a45_0x255c,_0x4d4885=_0x606064();while(!![]){try{const _0x4eab9f=-parseInt(_0x15dbd9(0x14f))/0x1+parseInt(_0x15dbd9(0x14c))/0x2+-parseInt(_0x15dbd9(0x146))/0x3*(parseInt(_0x15dbd9(0x148))/0x4)+-parseInt(_0x15dbd9(0x14a))/0x5*(parseInt(_0x15dbd9(0x149))/0x6)+-parseInt(_0x15dbd9(0x147))/0x7+-parseInt(_0x15dbd9(0x152))/0x8+-parseInt(_0x15dbd9(0x14b))/0x9*(-parseInt(_0x15dbd9(0x14e))/0xa);if(_0x4eab9f===_0x3af6b6)break;else _0x4d4885['push'](_0x4d4885['shift']());}catch(_0x5699c6){_0x4d4885['push'](_0x4d4885['shift']());}}}(a45_0x3551,0xdaa5c));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a45_0x34abe6(0x151),'command':a45_0x34abe6(0x14d),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','risk':a45_0x34abe6(0x150),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ function a45_0x5d35(){const _0x1bbeac=['716XqZrsz','9hVLmJe','718732tAuJaz','12249cwbBRI','push','skill','2049988vcZbuP','30585BASFXR','2221163nHEhCb','20526900QwBBBx','888wfEtqG','write','3455768dotMQC','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review'];a45_0x5d35=function(){return _0x1bbeac;};return a45_0x5d35();}function a45_0x44ea(_0x489b83,_0x1c7fde){_0x489b83=_0x489b83-0x132;const _0x5d35c5=a45_0x5d35();let _0x44ea0d=_0x5d35c5[_0x489b83];return _0x44ea0d;}const a45_0x1a152d=a45_0x44ea;(function(_0x23ef31,_0x25e8f5){const _0x2688ec=a45_0x44ea,_0x50635e=_0x23ef31();while(!![]){try{const _0x558cb5=parseInt(_0x2688ec(0x13d))/0x1+-parseInt(_0x2688ec(0x133))/0x2+parseInt(_0x2688ec(0x13e))/0x3*(-parseInt(_0x2688ec(0x13b))/0x4)+parseInt(_0x2688ec(0x134))/0x5*(-parseInt(_0x2688ec(0x137))/0x6)+parseInt(_0x2688ec(0x135))/0x7+parseInt(_0x2688ec(0x139))/0x8*(parseInt(_0x2688ec(0x13c))/0x9)+parseInt(_0x2688ec(0x136))/0xa;if(_0x558cb5===_0x25e8f5)break;else _0x50635e['push'](_0x50635e['shift']());}catch(_0x489f5f){_0x50635e['push'](_0x50635e['shift']());}}}(a45_0x5d35,0xd1d8f));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a45_0x1a152d(0x132),'command':a45_0x1a152d(0x13f),'description':a45_0x1a152d(0x13a),'risk':a45_0x1a152d(0x138),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a46_0x7aa60c=a46_0x462f;(function(_0x578391,_0xcc8060){const _0x1fb3b5=a46_0x462f,_0x1d92cf=_0x578391();while(!![]){try{const _0xd32529=-parseInt(_0x1fb3b5(0xc5))/0x1+-parseInt(_0x1fb3b5(0xb8))/0x2*(-parseInt(_0x1fb3b5(0xbd))/0x3)+-parseInt(_0x1fb3b5(0xbf))/0x4+-parseInt(_0x1fb3b5(0xb9))/0x5+parseInt(_0x1fb3b5(0xc1))/0x6*(-parseInt(_0x1fb3b5(0xba))/0x7)+parseInt(_0x1fb3b5(0xbb))/0x8+parseInt(_0x1fb3b5(0xb6))/0x9;if(_0xd32529===_0xcc8060)break;else _0x1d92cf['push'](_0x1d92cf['shift']());}catch(_0x21c3a5){_0x1d92cf['push'](_0x1d92cf['shift']());}}}(a46_0x4115,0x8acd8));function a46_0x4115(){const _0xcf55a3=['dir','5538vCFAtL','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','490888DTJQkH','type','1313310GhRtSX','strict','read','skill','381273DYUPAV','Skill\x20validation\x20passed.','1964043fBbLpA','validate','670kzNhVj','559955HkBeYH','7GtdFEX','4534160HFuyQs'];a46_0x4115=function(){return _0xcf55a3;};return a46_0x4115();}function a46_0x462f(_0x170a30,_0x5869be){_0x170a30=_0x170a30-0xb6;const _0x411590=a46_0x4115();let _0x462f37=_0x411590[_0x170a30];return _0x462f37;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a46_0x7aa60c(0xc4),'command':a46_0x7aa60c(0xb7),'description':a46_0x7aa60c(0xbe),'risk':a46_0x7aa60c(0xc3),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x31e99c){const _0xd5ebab=a46_0x7aa60c,_0x189031=_0x31e99c['bool'](_0xd5ebab(0xc2)),_0x7fda41=validateSkillDirectory(_0x31e99c['str'](_0xd5ebab(0xbc)),{'strict':_0x189031});return throwIfSkillValidationFailed(_0x7fda41,_0x189031),{'ok':!![],'data':{'dir':_0x7fda41['dir'],'type':_0x7fda41[_0xd5ebab(0xc0)],'errors':_0x7fda41['errors'],'warnings':_0x7fda41['warnings']},'message':_0xd5ebab(0xc6)};}};
1
+ function a46_0x5c6c(){const _0xb3d9ea=['80pdBeWn','19327440UIOsul','2333688sFLCfb','str','33216EALcsr','1266620WnKhCS','dir','validate','skill','15yWaLcd','type','bool','553324FFsCzI','Skill\x20validation\x20passed.','4087251VVEclM','6sYQZwH','strict','903384zBJuCg','warnings','395iILVLl'];a46_0x5c6c=function(){return _0xb3d9ea;};return a46_0x5c6c();}const a46_0x2bddd8=a46_0x2541;(function(_0x2d67d4,_0x510dab){const _0x49d616=a46_0x2541,_0x462892=_0x2d67d4();while(!![]){try{const _0x37f61e=-parseInt(_0x49d616(0x1a3))/0x1+parseInt(_0x49d616(0x1aa))/0x2*(parseInt(_0x49d616(0x1a7))/0x3)+parseInt(_0x49d616(0x1a2))/0x4*(parseInt(_0x49d616(0x1b1))/0x5)+-parseInt(_0x49d616(0x1ad))/0x6*(-parseInt(_0x49d616(0x1ac))/0x7)+parseInt(_0x49d616(0x1b4))/0x8+-parseInt(_0x49d616(0x1af))/0x9*(-parseInt(_0x49d616(0x1b2))/0xa)+-parseInt(_0x49d616(0x1b3))/0xb;if(_0x37f61e===_0x510dab)break;else _0x462892['push'](_0x462892['shift']());}catch(_0x1e2241){_0x462892['push'](_0x462892['shift']());}}}(a46_0x5c6c,0xa9806));function a46_0x2541(_0x3dd6f5,_0x4fa35e){_0x3dd6f5=_0x3dd6f5-0x1a1;const _0x5c6c69=a46_0x5c6c();let _0x254139=_0x5c6c69[_0x3dd6f5];return _0x254139;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a46_0x2bddd8(0x1a6),'command':a46_0x2bddd8(0x1a5),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x4e667e){const _0x42a65b=a46_0x2bddd8,_0x14b3bf=_0x4e667e[_0x42a65b(0x1a9)](_0x42a65b(0x1ae)),_0x248f78=validateSkillDirectory(_0x4e667e[_0x42a65b(0x1a1)](_0x42a65b(0x1a4)),{'strict':_0x14b3bf});return throwIfSkillValidationFailed(_0x248f78,_0x14b3bf),{'ok':!![],'data':{'dir':_0x248f78[_0x42a65b(0x1a4)],'type':_0x248f78[_0x42a65b(0x1a8)],'errors':_0x248f78['errors'],'warnings':_0x248f78[_0x42a65b(0x1b0)]},'message':_0x42a65b(0x1ab)};}};
@@ -1 +1 @@
1
- const a47_0x4d07dd=a47_0x56d1;(function(_0x1575c3,_0x13fbfd){const _0x46ce65=a47_0x56d1,_0x27fd84=_0x1575c3();while(!![]){try{const _0x4ef5dc=-parseInt(_0x46ce65(0x147))/0x1*(-parseInt(_0x46ce65(0x15f))/0x2)+-parseInt(_0x46ce65(0x146))/0x3*(parseInt(_0x46ce65(0x15d))/0x4)+parseInt(_0x46ce65(0x14f))/0x5+parseInt(_0x46ce65(0x155))/0x6*(parseInt(_0x46ce65(0x157))/0x7)+-parseInt(_0x46ce65(0x149))/0x8*(-parseInt(_0x46ce65(0x159))/0x9)+-parseInt(_0x46ce65(0x145))/0xa+-parseInt(_0x46ce65(0x15a))/0xb*(parseInt(_0x46ce65(0x158))/0xc);if(_0x4ef5dc===_0x13fbfd)break;else _0x27fd84['push'](_0x27fd84['shift']());}catch(_0x3e30a7){_0x27fd84['push'](_0x27fd84['shift']());}}}(a47_0x1552,0x8481f));function a47_0x56d1(_0x43d317,_0x6df21c){_0x43d317=_0x43d317-0x145;const _0x15524d=a47_0x1552();let _0x56d1bb=_0x15524d[_0x43d317];return _0x56d1bb;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a47_0x4d07dd(0x161),'type':a47_0x4d07dd(0x166),'description':a47_0x4d07dd(0x163)};export const SCOPE_FLAG={'name':a47_0x4d07dd(0x15e),'type':'string','description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a47_0x4d07dd(0x164),a47_0x4d07dd(0x156),a47_0x4d07dd(0x15c)]};export const PUSH_SCOPE_FLAG={'name':a47_0x4d07dd(0x15e),'type':a47_0x4d07dd(0x166),'description':a47_0x4d07dd(0x162),'default':a47_0x4d07dd(0x156),'enum':[a47_0x4d07dd(0x156),'company']};export const LIST_SCOPE_FLAG={'name':a47_0x4d07dd(0x15e),'type':a47_0x4d07dd(0x166),'description':a47_0x4d07dd(0x14a),'enum':['all','personal',a47_0x4d07dd(0x15c)]};export const LOCAL_FLAG={'name':a47_0x4d07dd(0x153),'type':a47_0x4d07dd(0x165),'description':a47_0x4d07dd(0x168)};export const DIR_FLAG={'name':a47_0x4d07dd(0x167),'type':a47_0x4d07dd(0x166),'required':!![],'description':a47_0x4d07dd(0x148)};export const CREATE_NAME_FLAG={'name':a47_0x4d07dd(0x14d),'type':a47_0x4d07dd(0x166),'required':!![],'description':a47_0x4d07dd(0x154),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':a47_0x4d07dd(0x151),'type':'string','description':a47_0x4d07dd(0x160),'default':'write','enum':[...SKILL_TYPES]};function a47_0x1552(){const _0x3d1a5=['528PXHksX','target','company','1260040cHSTLp','scope','2vgONyy','Skill\x20template\x20type','code','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','all','boolean','string','dir','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','3118290HvFgRo','3VwWSFn','43353zudVbn','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1784YITKRW','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','strict','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','name','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','3279715KHQfIo','force','type','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','local','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','60MINdRq','personal','628957iiQXnt','210972VlLUJH','16776Anqwws'];a47_0x1552=function(){return _0x3d1a5;};return a47_0x1552();}export const TARGET_FLAG={'name':a47_0x4d07dd(0x15b),'type':a47_0x4d07dd(0x166),'description':a47_0x4d07dd(0x152),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0x4d07dd(0x150),'type':a47_0x4d07dd(0x165),'description':a47_0x4d07dd(0x169)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a47_0x4d07dd(0x165),'description':a47_0x4d07dd(0x14e)};export const STRICT_FLAG={'name':a47_0x4d07dd(0x14b),'type':'boolean','description':a47_0x4d07dd(0x14c)};
1
+ const a47_0x4d4ad2=a47_0x526b;(function(_0x4de22a,_0x5d1c48){const _0x163fca=a47_0x526b,_0x36ca83=_0x4de22a();while(!![]){try{const _0x4d3057=parseInt(_0x163fca(0x156))/0x1*(parseInt(_0x163fca(0x152))/0x2)+parseInt(_0x163fca(0x15c))/0x3*(parseInt(_0x163fca(0x157))/0x4)+parseInt(_0x163fca(0x14f))/0x5+-parseInt(_0x163fca(0x169))/0x6+-parseInt(_0x163fca(0x15a))/0x7*(-parseInt(_0x163fca(0x167))/0x8)+-parseInt(_0x163fca(0x154))/0x9+parseInt(_0x163fca(0x15b))/0xa*(-parseInt(_0x163fca(0x15e))/0xb);if(_0x4d3057===_0x5d1c48)break;else _0x36ca83['push'](_0x36ca83['shift']());}catch(_0x13f642){_0x36ca83['push'](_0x36ca83['shift']());}}}(a47_0x21ec,0x9de3a));function a47_0x21ec(){const _0x1a301b=['confirm-warnings','357isgJkE','109370TAVfEz','2184762HjrrMe','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','1342yFsSGj','strict','company','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','195288MoYdjT','boolean','4628934mhjoNX','string','force','scope','write','code','4542005WKzmov','all','personal','944842iGPcGC','target','9665469RcKtAu','Skill\x20template\x20type','2zIfSiP','4UqgXMt','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'];a47_0x21ec=function(){return _0x1a301b;};return a47_0x21ec();}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a47_0x4d4ad2(0x14e),'type':'string','description':a47_0x4d4ad2(0x161)};export const SCOPE_FLAG={'name':'scope','type':a47_0x4d4ad2(0x16a),'description':a47_0x4d4ad2(0x163),'enum':[a47_0x4d4ad2(0x150),a47_0x4d4ad2(0x151),'company']};export const PUSH_SCOPE_FLAG={'name':a47_0x4d4ad2(0x14c),'type':a47_0x4d4ad2(0x16a),'description':a47_0x4d4ad2(0x162),'default':a47_0x4d4ad2(0x151),'enum':[a47_0x4d4ad2(0x151),a47_0x4d4ad2(0x160)]};export const LIST_SCOPE_FLAG={'name':a47_0x4d4ad2(0x14c),'type':a47_0x4d4ad2(0x16a),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a47_0x4d4ad2(0x150),a47_0x4d4ad2(0x151),a47_0x4d4ad2(0x160)]};export const LOCAL_FLAG={'name':'local','type':'boolean','description':a47_0x4d4ad2(0x15d)};export const DIR_FLAG={'name':'dir','type':a47_0x4d4ad2(0x16a),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};function a47_0x526b(_0x500b8e,_0xf9972){_0x500b8e=_0x500b8e-0x14b;const _0x21ec1f=a47_0x21ec();let _0x526b3a=_0x21ec1f[_0x500b8e];return _0x526b3a;}export const CREATE_NAME_FLAG={'name':'name','type':a47_0x4d4ad2(0x16a),'required':!![],'description':a47_0x4d4ad2(0x166),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a47_0x4d4ad2(0x158)}};export const TYPE_FLAG={'name':'type','type':a47_0x4d4ad2(0x16a),'description':a47_0x4d4ad2(0x155),'default':a47_0x4d4ad2(0x14d),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a47_0x4d4ad2(0x153),'type':a47_0x4d4ad2(0x16a),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0x4d4ad2(0x14b),'type':'boolean','description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const CONFIRM_WARNINGS_FLAG={'name':a47_0x4d4ad2(0x159),'type':a47_0x4d4ad2(0x168),'description':a47_0x4d4ad2(0x165)};export const STRICT_FLAG={'name':a47_0x4d4ad2(0x15f),'type':'boolean','description':a47_0x4d4ad2(0x164)};
@@ -1 +1 @@
1
- (function(_0x35b588,_0x1774d3){const _0x359f10=a48_0x5af5,_0x105096=_0x35b588();while(!![]){try{const _0x39cf59=parseInt(_0x359f10(0x110))/0x1+parseInt(_0x359f10(0x10e))/0x2*(-parseInt(_0x359f10(0x10b))/0x3)+-parseInt(_0x359f10(0x10d))/0x4+parseInt(_0x359f10(0x10c))/0x5+parseInt(_0x359f10(0x112))/0x6*(-parseInt(_0x359f10(0x111))/0x7)+-parseInt(_0x359f10(0x10a))/0x8+parseInt(_0x359f10(0x10f))/0x9;if(_0x39cf59===_0x1774d3)break;else _0x105096['push'](_0x105096['shift']());}catch(_0x403a83){_0x105096['push'](_0x105096['shift']());}}}(a48_0x5801,0x2028d));import{createCommand}from'./commands/create.js';function a48_0x5af5(_0x21fa74,_0x40d287){_0x21fa74=_0x21fa74-0x10a;const _0x5801ad=a48_0x5801();let _0x5af550=_0x5801ad[_0x21fa74];return _0x5af550;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a48_0x5801(){const _0x5ecc4e=['129558ZoRJCD','932384eoWmPn','412221bdsIdu','10965kvzfAN','419272JaKfoP','2xSVXqc','3334959xbxBVf','160940bjjJOR','14HTStvK'];a48_0x5801=function(){return _0x5ecc4e;};return a48_0x5801();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
1
+ (function(_0x3a07e3,_0x3418f8){const _0x13eb85=a48_0x9809,_0x46f2c1=_0x3a07e3();while(!![]){try{const _0x54cb06=-parseInt(_0x13eb85(0x8a))/0x1+-parseInt(_0x13eb85(0x89))/0x2*(-parseInt(_0x13eb85(0x8b))/0x3)+parseInt(_0x13eb85(0x86))/0x4+parseInt(_0x13eb85(0x88))/0x5*(-parseInt(_0x13eb85(0x87))/0x6)+parseInt(_0x13eb85(0x8e))/0x7+-parseInt(_0x13eb85(0x8d))/0x8*(parseInt(_0x13eb85(0x8c))/0x9)+parseInt(_0x13eb85(0x8f))/0xa;if(_0x54cb06===_0x3418f8)break;else _0x46f2c1['push'](_0x46f2c1['shift']());}catch(_0x309e54){_0x46f2c1['push'](_0x46f2c1['shift']());}}}(a48_0x54f5,0xe3ea5));function a48_0x9809(_0x18881f,_0x6c36bb){_0x18881f=_0x18881f-0x86;const _0x54f52a=a48_0x54f5();let _0x9809f5=_0x54f52a[_0x18881f];return _0x9809f5;}function a48_0x54f5(){const _0x531a78=['689382Sqrkaf','5baowuE','143346hiyJuK','1755723BVoHNJ','57SBiBFh','701847jbxmOT','184rKVGMs','5687276eBkhHr','16420220piGNje','3125972SOuIEQ'];a48_0x54f5=function(){return _0x531a78;};return a48_0x54f5();}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
@@ -1 +1 @@
1
- function a49_0x3037(_0x30dd84,_0x47c4dc){_0x30dd84=_0x30dd84-0x7f;var _0x383e30=a49_0x383e();var _0x30376a=_0x383e30[_0x30dd84];return _0x30376a;}(function(_0x518a8b,_0x1cbc36){var _0x3d4a78=a49_0x3037,_0x52fc91=_0x518a8b();while(!![]){try{var _0xdadd20=-parseInt(_0x3d4a78(0x8a))/0x1*(-parseInt(_0x3d4a78(0x84))/0x2)+-parseInt(_0x3d4a78(0x87))/0x3+-parseInt(_0x3d4a78(0x85))/0x4+-parseInt(_0x3d4a78(0x7f))/0x5+parseInt(_0x3d4a78(0x86))/0x6*(-parseInt(_0x3d4a78(0x82))/0x7)+-parseInt(_0x3d4a78(0x89))/0x8*(parseInt(_0x3d4a78(0x81))/0x9)+parseInt(_0x3d4a78(0x83))/0xa;if(_0xdadd20===_0x1cbc36)break;else _0x52fc91['push'](_0x52fc91['shift']());}catch(_0x5578c6){_0x52fc91['push'](_0x52fc91['shift']());}}}(a49_0x383e,0x3e041));export function isPackageBackedManifest(_0x68fd5b){var _0x25b136=a49_0x3037;return!!_0x68fd5b&&typeof _0x68fd5b===_0x25b136(0x88)&&!Array[_0x25b136(0x80)](_0x68fd5b)&&typeof _0x68fd5b['ossPath']===_0x25b136(0x8b)&&_0x68fd5b['ossPath']['length']>0x0&&Array[_0x25b136(0x80)](_0x68fd5b[_0x25b136(0x8c)]);}export function isMultiFileManifest(_0x236775){var _0x276cfb=a49_0x3037;return!!_0x236775&&typeof _0x236775===_0x276cfb(0x88)&&!Array['isArray'](_0x236775)&&Array[_0x276cfb(0x80)](_0x236775[_0x276cfb(0x8c)])&&_0x236775[_0x276cfb(0x8c)]['some'](_0x126ff3=>_0x126ff3['path']!=='SKILL.md');}function a49_0x383e(){var _0x135b6a=['2FJWNXx','720000IXMynr','3426qBaSmw','276978ApFdDR','object','8MFDOuF','40709mhXtvA','string','files','251825wUNbZT','isArray','2220201bFHltd','2975fXCLVx','10253630ovFPkX'];a49_0x383e=function(){return _0x135b6a;};return a49_0x383e();}
1
+ function a49_0x46f0(_0x3769a2,_0x6f8933){_0x3769a2=_0x3769a2-0x11d;var _0x4e76fd=a49_0x4e76();var _0x46f039=_0x4e76fd[_0x3769a2];return _0x46f039;}(function(_0x2d3b08,_0xed5ce){var _0x1c730b=a49_0x46f0,_0x1d5909=_0x2d3b08();while(!![]){try{var _0x4756ef=-parseInt(_0x1c730b(0x126))/0x1*(-parseInt(_0x1c730b(0x12e))/0x2)+-parseInt(_0x1c730b(0x130))/0x3+-parseInt(_0x1c730b(0x12f))/0x4*(-parseInt(_0x1c730b(0x11f))/0x5)+-parseInt(_0x1c730b(0x127))/0x6*(parseInt(_0x1c730b(0x120))/0x7)+parseInt(_0x1c730b(0x12b))/0x8*(parseInt(_0x1c730b(0x129))/0x9)+parseInt(_0x1c730b(0x12a))/0xa+-parseInt(_0x1c730b(0x11e))/0xb*(parseInt(_0x1c730b(0x125))/0xc);if(_0x4756ef===_0xed5ce)break;else _0x1d5909['push'](_0x1d5909['shift']());}catch(_0x1536a5){_0x1d5909['push'](_0x1d5909['shift']());}}}(a49_0x4e76,0x9b4e9));export function isPackageBackedManifest(_0x28a53f){var _0x1e0920=a49_0x46f0;return!!_0x28a53f&&typeof _0x28a53f==='object'&&!Array[_0x1e0920(0x121)](_0x28a53f)&&typeof _0x28a53f[_0x1e0920(0x122)]===_0x1e0920(0x131)&&_0x28a53f[_0x1e0920(0x122)][_0x1e0920(0x12d)]>0x0&&Array[_0x1e0920(0x121)](_0x28a53f[_0x1e0920(0x11d)]);}export function isMultiFileManifest(_0x2093cd){var _0x3314da=a49_0x46f0;return!!_0x2093cd&&typeof _0x2093cd===_0x3314da(0x12c)&&!Array[_0x3314da(0x121)](_0x2093cd)&&Array[_0x3314da(0x121)](_0x2093cd['files'])&&_0x2093cd[_0x3314da(0x11d)][_0x3314da(0x128)](_0x35f09f=>_0x35f09f[_0x3314da(0x124)]!==_0x3314da(0x123));}function a49_0x4e76(){var _0x5c8462=['8446360UrcJfq','4378888OnhcfL','object','length','80ajIcht','543052pnmYTG','693510RGZzeD','string','files','11YdKSFE','5PpMXXe','5676958owrMrG','isArray','ossPath','SKILL.md','path','11106948bTAsNA','26903JVrqob','6ZxQbjd','some','9MvkMKZ'];a49_0x4e76=function(){return _0x5c8462;};return a49_0x4e76();}
@@ -1 +1 @@
1
- (function(_0x44e271,_0x584c64){const _0x472188=a50_0x4eff,_0x390ccc=_0x44e271();while(!![]){try{const _0x1ee2d0=-parseInt(_0x472188(0x187))/0x1*(-parseInt(_0x472188(0x169))/0x2)+parseInt(_0x472188(0x15a))/0x3*(-parseInt(_0x472188(0x162))/0x4)+parseInt(_0x472188(0x157))/0x5+parseInt(_0x472188(0x173))/0x6*(parseInt(_0x472188(0x155))/0x7)+parseInt(_0x472188(0x176))/0x8+-parseInt(_0x472188(0x189))/0x9*(-parseInt(_0x472188(0x17b))/0xa)+-parseInt(_0x472188(0x156))/0xb;if(_0x1ee2d0===_0x584c64)break;else _0x390ccc['push'](_0x390ccc['shift']());}catch(_0x37a07e){_0x390ccc['push'](_0x390ccc['shift']());}}}(a50_0x5a8b,0x73944));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a50_0x5a8b(){const _0x4bfc85=['19146wKaavB','Submitted\x20company\x20Skill\x20','../../core/api-client.js','2332448CBvYqE','Company','resolvedVersion','validation','appCode','170vlvHEq','existing','resolvedSlug','\x20for\x20review','input','errors','(unknown)','remoteForPreflight','/api/cli/v1/skills/','confirm-warnings','PRIVATE','POST','1839zkKhoR','\x20Skill\x20','338463MKvrqO','Created\x20personal\x20Skill\x20','savedSkill','personal','appcode','Updated\x20personal\x20Skill\x20','1561VezNTy','23964589yEdOTD','4690280CPaltm','authRequired','bool','42993bDsIQq','submitted','../../skills/runtime-skill-sync.js','publishInput','NAMESPACE_ONLY','str','\x20has\x20scope=\x22','unknown','152UYgTem','Personal','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','scope','payload','files','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','670ollXtP','skillCode','/publish/validate','version','accessKey','dir','company','warnings','valid','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'];a50_0x5a8b=function(){return _0x4bfc85;};return a50_0x5a8b();}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';function a50_0x4eff(_0x21b1b9,_0x2ae20d){_0x21b1b9=_0x21b1b9-0x153;const _0x5a8b88=a50_0x5a8b();let _0x4effd8=_0x5a8b88[_0x21b1b9];return _0x4effd8;}import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x2b4b15){const _0x3e1daf=a50_0x4eff,{getRuntimeSkillByCode:_0x5e6421,validateRuntimeSkillPublish:_0xd6f78c}=await import(_0x3e1daf(0x175)),{readPushDirectory:_0x20f0f3,resolvePushDirectoryIdentity:_0x24472e}=await import(_0x3e1daf(0x15c));if(!_0x2b4b15['accessKey'])throw CliErrors[_0x3e1daf(0x158)]();const _0x59a9b3=resolvePushScope(_0x2b4b15),_0x4aa95e=validateSkillDirectory(_0x2b4b15[_0x3e1daf(0x15f)]('dir'));throwIfSkillValidationFailed(_0x4aa95e);const _0x23dd7c=_0x24472e(_0x4aa95e['dir'],_0x2b4b15[_0x3e1daf(0x17a)],remoteFirstMetadataOptions()),_0x423316=await _0x5e6421(_0x2b4b15[_0x3e1daf(0x17a)],_0x23dd7c[_0x3e1daf(0x16a)]);throwIfBuiltinPushTarget(_0x423316);if(_0x59a9b3===_0x3e1daf(0x16f)){const _0x1b40a8=_0x20f0f3(_0x4aa95e[_0x3e1daf(0x16e)],_0x2b4b15[_0x3e1daf(0x17a)],remoteMissingCompanyReadOptions()),_0x24c2ce=await _0xd6f78c(_0x2b4b15['appCode'],_0x1b40a8[_0x3e1daf(0x17f)],{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3e1daf(0x186),'url':_0x3e1daf(0x183)+_0x2b4b15[_0x3e1daf(0x17a)]+_0x3e1daf(0x16b),'body':{'skillCode':_0x1b40a8[_0x3e1daf(0x16a)],'visibility':_0x3e1daf(0x15e),'valid':_0x24c2ce[_0x3e1daf(0x171)],'errors':_0x24c2ce[_0x3e1daf(0x180)],'warnings':_0x24c2ce[_0x3e1daf(0x170)],'resolvedSlug':_0x24c2ce['resolvedSlug'],'resolvedVersion':_0x24c2ce[_0x3e1daf(0x178)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x423316&&_0x423316['scope']!==_0x3e1daf(0x18c))throw CliErrors[_0x3e1daf(0x179)](_0x3e1daf(0x168)+_0x23dd7c['skillCode']+_0x3e1daf(0x160)+(_0x423316['scope']??_0x3e1daf(0x161))+'\x22.');const _0x2e69d1=_0x20f0f3(_0x4aa95e[_0x3e1daf(0x16e)],_0x2b4b15[_0x3e1daf(0x17a)],_0x423316?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x68f90f=await _0xd6f78c(_0x2b4b15['appCode'],_0x2e69d1[_0x3e1daf(0x17f)],{'visibility':'PRIVATE'});return{'method':'POST','url':_0x3e1daf(0x183)+_0x2b4b15[_0x3e1daf(0x17a)]+'/publish/validate','body':{'skillCode':_0x2e69d1[_0x3e1daf(0x16a)],'visibility':_0x3e1daf(0x185),'valid':_0x68f90f[_0x3e1daf(0x171)],'errors':_0x68f90f[_0x3e1daf(0x180)],'warnings':_0x68f90f['warnings'],'resolvedSlug':_0x68f90f[_0x3e1daf(0x17d)],'resolvedVersion':_0x68f90f['resolvedVersion']},'description':_0x3e1daf(0x172)};}export async function skillPushExecute(_0x2f0eee){const _0x88b3de=a50_0x4eff,{createPersonalRuntimeSkill:_0x377c19,downloadRuntimeSkillPackage:_0x15f907,getRuntimeSkillByCode:_0x106e30,publishCompanyRuntimeSkill:_0x29a20b,updatePersonalRuntimeSkill:_0x50314a,validateRuntimeSkillPublish:_0x577ed2}=await import(_0x88b3de(0x175)),{verifyRuntimeSkillPackage:_0x2b427a,verifyRuntimeSkillBundle:_0x4ab7c0,readPushDirectory:_0x5b2623,refreshPushDirectoryMetadataFromRemote:_0x3033e7,recordPushedRuntimeSkill:_0x4385ca,resolvePushDirectoryIdentity:_0x3f1e8c}=await import(_0x88b3de(0x15c));if(!_0x2f0eee[_0x88b3de(0x16d)])throw CliErrors[_0x88b3de(0x158)]();const _0x56d3ab=resolvePushScope(_0x2f0eee),_0xd6c254=_0x2f0eee[_0x88b3de(0x159)](_0x88b3de(0x184))||_0x2f0eee[_0x88b3de(0x159)]('confirmWarnings'),_0x35f62e=validateSkillDirectory(_0x2f0eee[_0x88b3de(0x15f)](_0x88b3de(0x16e)));throwIfSkillValidationFailed(_0x35f62e);const _0xa49ac6=_0x35f62e[_0x88b3de(0x16e)];let _0x4adb8a;if(_0x56d3ab===_0x88b3de(0x16f)){const _0x4373a2=_0x3f1e8c(_0xa49ac6,_0x2f0eee[_0x88b3de(0x17a)],remoteFirstMetadataOptions()),_0x20aeed=await _0x106e30(_0x2f0eee[_0x88b3de(0x17a)],_0x4373a2[_0x88b3de(0x16a)]);throwIfBuiltinPushTarget(_0x20aeed);if(_0x20aeed)_0x3033e7(_0xa49ac6,_0x20aeed,_0x2f0eee[_0x88b3de(0x17a)]);const _0x1870b5=_0x5b2623(_0xa49ac6,_0x2f0eee['appCode'],_0x20aeed?{'targetScope':_0x88b3de(0x16f),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x4adb8a={'scope':'company','payload':_0x1870b5,'publishInput':_0x1870b5[_0x88b3de(0x17f)],'remoteForPreflight':_0x20aeed,'warnings':[]};}else{const _0x2686fc=_0x2f0eee[_0x88b3de(0x15f)](_0x88b3de(0x153))['trim'](),_0x572996=Boolean(_0x2686fc),_0xf9eb8e=allowRetargetArgs(_0x572996),_0x1cd147=_0x3f1e8c(_0xa49ac6,_0x2f0eee[_0x88b3de(0x17a)],{...remoteFirstMetadataOptions(),..._0xf9eb8e[0x0]}),_0x3e13ea=await _0x106e30(_0x2f0eee[_0x88b3de(0x17a)],_0x1cd147[_0x88b3de(0x16a)]);throwIfBuiltinPushTarget(_0x3e13ea);if(_0x3e13ea){if(_0x3e13ea[_0x88b3de(0x165)]!==_0x88b3de(0x18c)){if(_0x572996)throw CliErrors[_0x88b3de(0x179)](_0x88b3de(0x168)+_0x1cd147[_0x88b3de(0x16a)]+_0x88b3de(0x160)+(_0x3e13ea[_0x88b3de(0x165)]??'unknown')+'\x22.');_0x3033e7(_0xa49ac6,_0x3e13ea,_0x2f0eee[_0x88b3de(0x17a)]);}else!_0x572996&&_0x3033e7(_0xa49ac6,_0x3e13ea,_0x2f0eee[_0x88b3de(0x17a)]);}const _0x2b24ed=_0x5b2623(_0xa49ac6,_0x2f0eee[_0x88b3de(0x17a)],_0x3e13ea?remotePersonalReadOptions(_0x572996,_0xf9eb8e[0x0]):remoteMissingPersonalReadOptions(_0xf9eb8e[0x0])),_0x46f408=_0x3e13ea?.[_0x88b3de(0x165)]===_0x88b3de(0x18c)&&_0x3e13ea[_0x88b3de(0x16a)]===_0x2b24ed[_0x88b3de(0x16a)]?_0x3e13ea:undefined,_0x2d91b3=_0x572996&&_0x46f408?withRetargetExistingMetadata(_0x2b24ed[_0x88b3de(0x17f)],_0x46f408,{'preferInputSkillName':Boolean(_0x2b24ed['frontmatterDisplayName'])}):_0x2b24ed['input'],_0x2b8501=_0x572996?buildRetargetWarning(_0x1cd147['metadata'],_0x2f0eee[_0x88b3de(0x17a)]):[];_0x4adb8a={'scope':_0x88b3de(0x18c),'payload':_0x2b24ed,'publishInput':_0x2d91b3,'remoteForPreflight':_0x46f408,'existing':_0x46f408,'warnings':[..._0x35f62e[_0x88b3de(0x170)],..._0x2b8501]};}const _0x3d0a72=await runRemoteContentPreflight({'scope':_0x4adb8a['scope'],'remote':_0x4adb8a[_0x88b3de(0x182)],'publishInput':_0x4adb8a['publishInput'],'skillCode':_0x4adb8a[_0x88b3de(0x166)]['skillCode'],'appCode':_0x2f0eee[_0x88b3de(0x17a)],'downloadRuntimeSkillPackage':_0x15f907,'verifyRuntimeSkillBundle':_0x4ab7c0});if(_0x3d0a72['status']==='identical')return _0x4adb8a[_0x88b3de(0x165)]==='company'?_0x4385ca(_0xa49ac6,_0x3d0a72['savedSkill'],_0x2f0eee[_0x88b3de(0x17a)],{'scope':_0x88b3de(0x16f)}):_0x4385ca(_0xa49ac6,_0x3d0a72[_0x88b3de(0x18b)],_0x2f0eee[_0x88b3de(0x17a)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3d0a72[_0x88b3de(0x18b)]),'scope':_0x4adb8a[_0x88b3de(0x165)],..._0x4adb8a[_0x88b3de(0x165)]==='personal'?{'warnings':_0x4adb8a['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x4adb8a[_0x88b3de(0x165)])+_0x88b3de(0x188)+_0x4adb8a['payload']['skillCode']+_0x88b3de(0x164)};if(_0x4adb8a['scope']==='company'){const _0x513eed=await _0x577ed2(_0x2f0eee[_0x88b3de(0x17a)],_0x4adb8a['publishInput'],{'visibility':_0x88b3de(0x15e)});throwIfPublishValidationFailed(_0x88b3de(0x16f),_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)],_0x513eed),throwIfUnconfirmedPublishWarnings('company',_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)],_0x513eed[_0x88b3de(0x170)],_0xd6c254);const _0x554299=await _0x29a20b(_0x2f0eee[_0x88b3de(0x17a)],_0x4adb8a[_0x88b3de(0x15d)],{'confirmWarnings':_0xd6c254});return _0x4385ca(_0xa49ac6,{..._0x554299,'files':_0x4adb8a[_0x88b3de(0x15d)][_0x88b3de(0x167)]},_0x2f0eee[_0x88b3de(0x17a)],{'scope':_0x88b3de(0x16f)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x554299),'scope':'company','reviewState':_0x88b3de(0x15b),'submittedForReview':!![],'validation':{'warnings':_0x513eed[_0x88b3de(0x170)]}},'message':_0x88b3de(0x174)+_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)]+'\x20version\x20'+(_0x554299[_0x88b3de(0x16c)]??_0x88b3de(0x181))+_0x88b3de(0x17e)};}const _0x3ab35f=await _0x577ed2(_0x2f0eee[_0x88b3de(0x17a)],_0x4adb8a[_0x88b3de(0x15d)],{'visibility':_0x88b3de(0x185)});throwIfPublishValidationFailed(_0x88b3de(0x18c),_0x4adb8a['payload'][_0x88b3de(0x16a)],_0x3ab35f),throwIfUnconfirmedPublishWarnings(_0x88b3de(0x18c),_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)],_0x3ab35f[_0x88b3de(0x170)],_0xd6c254);const _0x2ce2e5={'confirmWarnings':_0xd6c254},_0x1a0599=_0x4adb8a[_0x88b3de(0x17c)]?await _0x50314a(_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)],_0x2f0eee['appCode'],_0x4adb8a[_0x88b3de(0x15d)],_0x2ce2e5):await _0x377c19(_0x2f0eee[_0x88b3de(0x17a)],_0x4adb8a[_0x88b3de(0x15d)],_0x2ce2e5);let _0x3d2eda=_0x1a0599;if(isMultiFileManifest(_0x4adb8a['publishInput']['files'])){const _0x30c720=await _0x15f907(_0x88b3de(0x18c),_0x1a0599[_0x88b3de(0x16a)]||_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)],_0x2f0eee[_0x88b3de(0x17a)]);_0x4ab7c0(_0x4adb8a[_0x88b3de(0x15d)][_0x88b3de(0x167)],_0x30c720),_0x3d2eda={..._0x1a0599,'files':_0x4adb8a[_0x88b3de(0x15d)][_0x88b3de(0x167)]};}else{if(isPackageBackedManifest(_0x1a0599[_0x88b3de(0x167)])){const _0x3587e0=await _0x15f907('personal',_0x1a0599[_0x88b3de(0x16a)]||_0x4adb8a[_0x88b3de(0x166)]['skillCode'],_0x2f0eee[_0x88b3de(0x17a)]);_0x2b427a(_0x1a0599['files'],_0x3587e0);}}return _0x4385ca(_0xa49ac6,_0x3d2eda,_0x2f0eee[_0x88b3de(0x17a)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1a0599),'warnings':_0x4adb8a[_0x88b3de(0x170)],'validation':{'warnings':_0x3ab35f[_0x88b3de(0x170)]}},'message':_0x4adb8a['existing']?_0x88b3de(0x154)+_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)]:_0x88b3de(0x18a)+_0x4adb8a[_0x88b3de(0x166)][_0x88b3de(0x16a)]};}function scopeLabel(_0x49d9bf){const _0x1d8416=a50_0x4eff;return _0x49d9bf===_0x1d8416(0x16f)?_0x1d8416(0x177):_0x1d8416(0x163);}
1
+ (function(_0x18739f,_0xf80199){const _0x4ee05c=a50_0x3fc8,_0x29921d=_0x18739f();while(!![]){try{const _0x6b9eeb=parseInt(_0x4ee05c(0x1b6))/0x1*(-parseInt(_0x4ee05c(0x1a3))/0x2)+-parseInt(_0x4ee05c(0x18e))/0x3*(parseInt(_0x4ee05c(0x19e))/0x4)+-parseInt(_0x4ee05c(0x183))/0x5+-parseInt(_0x4ee05c(0x190))/0x6*(-parseInt(_0x4ee05c(0x186))/0x7)+-parseInt(_0x4ee05c(0x180))/0x8+parseInt(_0x4ee05c(0x19a))/0x9*(parseInt(_0x4ee05c(0x191))/0xa)+parseInt(_0x4ee05c(0x1a0))/0xb*(parseInt(_0x4ee05c(0x1a6))/0xc);if(_0x6b9eeb===_0xf80199)break;else _0x29921d['push'](_0x29921d['shift']());}catch(_0x36acce){_0x29921d['push'](_0x29921d['shift']());}}}(a50_0x4606,0x71258));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';function a50_0x3fc8(_0x28dc6b,_0x1a980c){_0x28dc6b=_0x28dc6b-0x180;const _0x46068b=a50_0x4606();let _0x3fc880=_0x46068b[_0x28dc6b];return _0x3fc880;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x38ce1e){const _0x3ee0e0=a50_0x3fc8,{getRuntimeSkillByCode:_0x142a5d,validateRuntimeSkillPublish:_0x9a4a0f}=await import(_0x3ee0e0(0x19c)),{readPushDirectory:_0x2548f6,resolvePushDirectoryIdentity:_0x1d4516}=await import(_0x3ee0e0(0x1a9));if(!_0x38ce1e['accessKey'])throw CliErrors[_0x3ee0e0(0x18f)]();const _0x217c53=resolvePushScope(_0x38ce1e),_0x1c65e=validateSkillDirectory(_0x38ce1e['str']('dir'));throwIfSkillValidationFailed(_0x1c65e);const _0x303581=_0x1d4516(_0x1c65e[_0x3ee0e0(0x1ad)],_0x38ce1e[_0x3ee0e0(0x192)],remoteFirstMetadataOptions()),_0x55ee3e=await _0x142a5d(_0x38ce1e[_0x3ee0e0(0x192)],_0x303581[_0x3ee0e0(0x184)]);throwIfBuiltinPushTarget(_0x55ee3e);if(_0x217c53===_0x3ee0e0(0x1a2)){const _0x4e1af0=_0x2548f6(_0x1c65e[_0x3ee0e0(0x1ad)],_0x38ce1e[_0x3ee0e0(0x192)],remoteMissingCompanyReadOptions()),_0x39f03b=await _0x9a4a0f(_0x38ce1e['appCode'],_0x4e1af0[_0x3ee0e0(0x1ab)],{'visibility':_0x3ee0e0(0x1bd)});return{'method':'POST','url':_0x3ee0e0(0x1b4)+_0x38ce1e['appCode']+_0x3ee0e0(0x185),'body':{'skillCode':_0x4e1af0[_0x3ee0e0(0x184)],'visibility':'NAMESPACE_ONLY','valid':_0x39f03b['valid'],'errors':_0x39f03b[_0x3ee0e0(0x19d)],'warnings':_0x39f03b[_0x3ee0e0(0x198)],'resolvedSlug':_0x39f03b['resolvedSlug'],'resolvedVersion':_0x39f03b[_0x3ee0e0(0x1aa)]},'description':_0x3ee0e0(0x1ae)};}if(_0x55ee3e&&_0x55ee3e[_0x3ee0e0(0x1b8)]!==_0x3ee0e0(0x18d))throw CliErrors[_0x3ee0e0(0x181)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x303581['skillCode']+_0x3ee0e0(0x1b7)+(_0x55ee3e[_0x3ee0e0(0x1b8)]??_0x3ee0e0(0x18a))+'\x22.');const _0x22c2f1=_0x2548f6(_0x1c65e['dir'],_0x38ce1e[_0x3ee0e0(0x192)],_0x55ee3e?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x4676b4=await _0x9a4a0f(_0x38ce1e[_0x3ee0e0(0x192)],_0x22c2f1[_0x3ee0e0(0x1ab)],{'visibility':_0x3ee0e0(0x1a8)});return{'method':_0x3ee0e0(0x1af),'url':_0x3ee0e0(0x1b4)+_0x38ce1e['appCode']+'/publish/validate','body':{'skillCode':_0x22c2f1[_0x3ee0e0(0x184)],'visibility':_0x3ee0e0(0x1a8),'valid':_0x4676b4[_0x3ee0e0(0x1ba)],'errors':_0x4676b4[_0x3ee0e0(0x19d)],'warnings':_0x4676b4['warnings'],'resolvedSlug':_0x4676b4[_0x3ee0e0(0x18c)],'resolvedVersion':_0x4676b4[_0x3ee0e0(0x1aa)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}function a50_0x4606(){const _0x5b0f88=['input','confirmWarnings','dir','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','POST','Personal','existing','bool','savedSkill','/api/cli/v1/skills/','Updated\x20personal\x20Skill\x20','968MAJLze','\x20has\x20scope=\x22','scope','confirm-warnings','valid','appcode','remoteForPreflight','NAMESPACE_ONLY','str','1141192rfigsj','validation','publishInput','2354335qKgpAN','skillCode','/publish/validate','280mxIpYy','\x20for\x20review','files','version','unknown','\x20Skill\x20','resolvedSlug','personal','27129BiizVd','authRequired','54066OREXBa','708060QhfLTr','appCode','Submitted\x20company\x20Skill\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','identical','accessKey','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','warnings','frontmatterDisplayName','45IYGetQ','(unknown)','../../core/api-client.js','errors','236zIemeM','Created\x20personal\x20Skill\x20','4345bSqbWi','payload','company','686KTogge','metadata','\x20version\x20','37308vfWwoX','trim','PRIVATE','../../skills/runtime-skill-sync.js','resolvedVersion'];a50_0x4606=function(){return _0x5b0f88;};return a50_0x4606();}export async function skillPushExecute(_0xec8101){const _0x2fd13c=a50_0x3fc8,{createPersonalRuntimeSkill:_0x3f632d,downloadRuntimeSkillPackage:_0x5be923,getRuntimeSkillByCode:_0x3c7b63,publishCompanyRuntimeSkill:_0x368ba6,updatePersonalRuntimeSkill:_0x456bed,validateRuntimeSkillPublish:_0x2fc328}=await import(_0x2fd13c(0x19c)),{verifyRuntimeSkillPackage:_0x27162c,verifyRuntimeSkillBundle:_0x51bb8b,readPushDirectory:_0x3b560a,refreshPushDirectoryMetadataFromRemote:_0x3ec925,recordPushedRuntimeSkill:_0x25e6d0,resolvePushDirectoryIdentity:_0x32882a}=await import(_0x2fd13c(0x1a9));if(!_0xec8101[_0x2fd13c(0x196)])throw CliErrors[_0x2fd13c(0x18f)]();const _0x24513f=resolvePushScope(_0xec8101),_0x5589d9=_0xec8101[_0x2fd13c(0x1b2)](_0x2fd13c(0x1b9))||_0xec8101[_0x2fd13c(0x1b2)](_0x2fd13c(0x1ac)),_0x2fc098=validateSkillDirectory(_0xec8101['str'](_0x2fd13c(0x1ad)));throwIfSkillValidationFailed(_0x2fc098);const _0x4ec139=_0x2fc098[_0x2fd13c(0x1ad)];let _0x32647a;if(_0x24513f==='company'){const _0x59ed1a=_0x32882a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],remoteFirstMetadataOptions()),_0x1c97b7=await _0x3c7b63(_0xec8101[_0x2fd13c(0x192)],_0x59ed1a['skillCode']);throwIfBuiltinPushTarget(_0x1c97b7);if(_0x1c97b7)_0x3ec925(_0x4ec139,_0x1c97b7,_0xec8101[_0x2fd13c(0x192)]);const _0x3306fe=_0x3b560a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],_0x1c97b7?{'targetScope':_0x2fd13c(0x1a2),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x32647a={'scope':_0x2fd13c(0x1a2),'payload':_0x3306fe,'publishInput':_0x3306fe[_0x2fd13c(0x1ab)],'remoteForPreflight':_0x1c97b7,'warnings':[]};}else{const _0x5872af=_0xec8101[_0x2fd13c(0x1be)](_0x2fd13c(0x1bb))[_0x2fd13c(0x1a7)](),_0x92f5c2=Boolean(_0x5872af),_0xf77371=allowRetargetArgs(_0x92f5c2),_0xd04fbc=_0x32882a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],{...remoteFirstMetadataOptions(),..._0xf77371[0x0]}),_0x945a76=await _0x3c7b63(_0xec8101['appCode'],_0xd04fbc[_0x2fd13c(0x184)]);throwIfBuiltinPushTarget(_0x945a76);if(_0x945a76){if(_0x945a76[_0x2fd13c(0x1b8)]!==_0x2fd13c(0x18d)){if(_0x92f5c2)throw CliErrors[_0x2fd13c(0x181)](_0x2fd13c(0x194)+_0xd04fbc[_0x2fd13c(0x184)]+_0x2fd13c(0x1b7)+(_0x945a76[_0x2fd13c(0x1b8)]??_0x2fd13c(0x18a))+'\x22.');_0x3ec925(_0x4ec139,_0x945a76,_0xec8101[_0x2fd13c(0x192)]);}else!_0x92f5c2&&_0x3ec925(_0x4ec139,_0x945a76,_0xec8101['appCode']);}const _0xab64ab=_0x3b560a(_0x4ec139,_0xec8101['appCode'],_0x945a76?remotePersonalReadOptions(_0x92f5c2,_0xf77371[0x0]):remoteMissingPersonalReadOptions(_0xf77371[0x0])),_0x49a23e=_0x945a76?.[_0x2fd13c(0x1b8)]==='personal'&&_0x945a76[_0x2fd13c(0x184)]===_0xab64ab[_0x2fd13c(0x184)]?_0x945a76:undefined,_0x548843=_0x92f5c2&&_0x49a23e?withRetargetExistingMetadata(_0xab64ab[_0x2fd13c(0x1ab)],_0x49a23e,{'preferInputSkillName':Boolean(_0xab64ab[_0x2fd13c(0x199)])}):_0xab64ab[_0x2fd13c(0x1ab)],_0x109352=_0x92f5c2?buildRetargetWarning(_0xd04fbc[_0x2fd13c(0x1a4)],_0xec8101[_0x2fd13c(0x192)]):[];_0x32647a={'scope':_0x2fd13c(0x18d),'payload':_0xab64ab,'publishInput':_0x548843,'remoteForPreflight':_0x49a23e,'existing':_0x49a23e,'warnings':[..._0x2fc098['warnings'],..._0x109352]};}const _0x25753d=await runRemoteContentPreflight({'scope':_0x32647a[_0x2fd13c(0x1b8)],'remote':_0x32647a[_0x2fd13c(0x1bc)],'publishInput':_0x32647a['publishInput'],'skillCode':_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],'appCode':_0xec8101[_0x2fd13c(0x192)],'downloadRuntimeSkillPackage':_0x5be923,'verifyRuntimeSkillBundle':_0x51bb8b});if(_0x25753d['status']===_0x2fd13c(0x195))return _0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x1a2)?_0x25e6d0(_0x4ec139,_0x25753d[_0x2fd13c(0x1b3)],_0xec8101[_0x2fd13c(0x192)],{'scope':_0x2fd13c(0x1a2)}):_0x25e6d0(_0x4ec139,_0x25753d['savedSkill'],_0xec8101[_0x2fd13c(0x192)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25753d[_0x2fd13c(0x1b3)]),'scope':_0x32647a[_0x2fd13c(0x1b8)],..._0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x18d)?{'warnings':_0x32647a[_0x2fd13c(0x198)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x32647a[_0x2fd13c(0x1b8)])+_0x2fd13c(0x18b)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]+_0x2fd13c(0x197)};if(_0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x1a2)){const _0x4facbd=await _0x2fc328(_0xec8101[_0x2fd13c(0x192)],_0x32647a[_0x2fd13c(0x182)],{'visibility':_0x2fd13c(0x1bd)});throwIfPublishValidationFailed(_0x2fd13c(0x1a2),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x4facbd),throwIfUnconfirmedPublishWarnings(_0x2fd13c(0x1a2),_0x32647a['payload'][_0x2fd13c(0x184)],_0x4facbd[_0x2fd13c(0x198)],_0x5589d9);const _0x521c96=await _0x368ba6(_0xec8101['appCode'],_0x32647a[_0x2fd13c(0x182)],{'confirmWarnings':_0x5589d9});return _0x25e6d0(_0x4ec139,{..._0x521c96,'files':_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)]},_0xec8101[_0x2fd13c(0x192)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x521c96),'scope':_0x2fd13c(0x1a2),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x4facbd[_0x2fd13c(0x198)]}},'message':_0x2fd13c(0x193)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]+_0x2fd13c(0x1a5)+(_0x521c96[_0x2fd13c(0x189)]??_0x2fd13c(0x19b))+_0x2fd13c(0x187)};}const _0x3d6482=await _0x2fc328(_0xec8101[_0x2fd13c(0x192)],_0x32647a['publishInput'],{'visibility':_0x2fd13c(0x1a8)});throwIfPublishValidationFailed(_0x2fd13c(0x18d),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x3d6482),throwIfUnconfirmedPublishWarnings(_0x2fd13c(0x18d),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x3d6482[_0x2fd13c(0x198)],_0x5589d9);const _0x222ba4={'confirmWarnings':_0x5589d9},_0x5db171=_0x32647a[_0x2fd13c(0x1b1)]?await _0x456bed(_0x32647a['payload']['skillCode'],_0xec8101['appCode'],_0x32647a['publishInput'],_0x222ba4):await _0x3f632d(_0xec8101[_0x2fd13c(0x192)],_0x32647a['publishInput'],_0x222ba4);let _0x477e76=_0x5db171;if(isMultiFileManifest(_0x32647a['publishInput'][_0x2fd13c(0x188)])){const _0x12049a=await _0x5be923(_0x2fd13c(0x18d),_0x5db171[_0x2fd13c(0x184)]||_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0xec8101['appCode']);_0x51bb8b(_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)],_0x12049a),_0x477e76={..._0x5db171,'files':_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)]};}else{if(isPackageBackedManifest(_0x5db171[_0x2fd13c(0x188)])){const _0x4a26b9=await _0x5be923('personal',_0x5db171[_0x2fd13c(0x184)]||_0x32647a['payload'][_0x2fd13c(0x184)],_0xec8101['appCode']);_0x27162c(_0x5db171[_0x2fd13c(0x188)],_0x4a26b9);}}return _0x25e6d0(_0x4ec139,_0x477e76,_0xec8101[_0x2fd13c(0x192)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5db171),'warnings':_0x32647a[_0x2fd13c(0x198)],'validation':{'warnings':_0x3d6482[_0x2fd13c(0x198)]}},'message':_0x32647a[_0x2fd13c(0x1b1)]?_0x2fd13c(0x1b5)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]:_0x2fd13c(0x19f)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]};}function scopeLabel(_0x53afb2){const _0x41adb5=a50_0x3fc8;return _0x53afb2===_0x41adb5(0x1a2)?'Company':_0x41adb5(0x1b0);}
@@ -1 +1 @@
1
- (function(_0xa29898,_0x2adc2b){const _0x4915c9=a51_0x4a1e,_0xb80635=_0xa29898();while(!![]){try{const _0x1048eb=-parseInt(_0x4915c9(0x170))/0x1*(-parseInt(_0x4915c9(0x173))/0x2)+-parseInt(_0x4915c9(0x165))/0x3+-parseInt(_0x4915c9(0x185))/0x4*(-parseInt(_0x4915c9(0x18f))/0x5)+-parseInt(_0x4915c9(0x169))/0x6*(-parseInt(_0x4915c9(0x174))/0x7)+parseInt(_0x4915c9(0x189))/0x8*(parseInt(_0x4915c9(0x188))/0x9)+parseInt(_0x4915c9(0x17c))/0xa*(-parseInt(_0x4915c9(0x18d))/0xb)+parseInt(_0x4915c9(0x182))/0xc;if(_0x1048eb===_0x2adc2b)break;else _0xb80635['push'](_0xb80635['shift']());}catch(_0x43c526){_0xb80635['push'](_0xb80635['shift']());}}}(a51_0x41f4,0xb75f3));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3782ab){const _0x286943=a51_0x4a1e,_0x5a1208=_0x3782ab['str'](_0x286943(0x16e))||_0x286943(0x176);if(_0x5a1208==='personal'||_0x5a1208===_0x286943(0x166))return _0x5a1208;throw CliErrors[_0x286943(0x18a)](_0x286943(0x191)+_0x5a1208+'\x22.');}export function allowRetargetArgs(_0x822dda){return _0x822dda?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x30e7c7={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x30e7c7};}export function remotePersonalReadOptions(_0x448514,_0x204702={}){return{'ignoreInvalidMetadata':!![],..._0x448514?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x204702};}export function throwIfBuiltinPushTarget(_0x23e575){const _0xeec385=a51_0x4a1e;if(_0x23e575?.['scope']!==_0xeec385(0x16d))return;throw CliErrors[_0xeec385(0x18a)]('Builtin\x20Skill\x20'+(_0x23e575['skillCode']??_0xeec385(0x17a))+_0xeec385(0x17b),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}function a51_0x41f4(){const _0x4e7197=['207568SMTsqK','77XmImEV','Warnings:\x20','personal','\x20Skill\x20push\x20validation\x20failed\x20for\x20','downloadRuntimeSkillPackage','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','(unknown)','\x20cannot\x20be\x20pushed.','3087970XFAVOs','lovrabet.skill.json','files','not-applicable','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','skillCode','5842152Ztfvhf','length','Local\x20Skill\x20metadata\x20appCode\x20','28xanMnZ','SkillHub\x20validation\x20returned\x20invalid.','publishInput','2034UqwFGh','1768pQRWzy','validation','skill-metadata-appcode-retargeted','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','44PaYDKF','join','118970ecoBCR','errors','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','verifyRuntimeSkillBundle','remote','appCode','189516XBjnkv','company','identical','different','621018dcwQvn','content','Company','Review\x20each\x20warning\x20before\x20continuing.','builtin','scope','valid','2GxKpTl','Personal','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.'];a51_0x41f4=function(){return _0x4e7197;};return a51_0x41f4();}export function throwIfPublishValidationFailed(_0x1738a1,_0x1cde59,_0x3c131e){const _0x38ea83=a51_0x4a1e;if(_0x3c131e[_0x38ea83(0x190)][_0x38ea83(0x183)]===0x0&&(_0x3c131e[_0x38ea83(0x16f)]||_0x3c131e['warnings'][_0x38ea83(0x183)]>0x0))return;const _0x491570=_0x3c131e[_0x38ea83(0x190)][_0x38ea83(0x183)]>0x0?_0x3c131e[_0x38ea83(0x190)][_0x38ea83(0x18e)](';\x20'):_0x38ea83(0x186),_0x53722c=_0x1738a1==='company'?_0x38ea83(0x16b):_0x38ea83(0x171);throw CliErrors[_0x38ea83(0x18a)](_0x53722c+_0x38ea83(0x177)+_0x1cde59+'.',_0x491570);}export function throwIfUnconfirmedPublishWarnings(_0x175cc2,_0x2820d9,_0x4b17c9,_0xb33901){const _0x3ba48d=a51_0x4a1e;if(_0x4b17c9[_0x3ba48d(0x183)]===0x0||_0xb33901)return;const _0xca2a84=_0x175cc2===_0x3ba48d(0x166)?_0x3ba48d(0x16b):_0x3ba48d(0x171);throw CliErrors[_0x3ba48d(0x18a)](_0xca2a84+_0x3ba48d(0x18c)+_0x2820d9+'.',[_0x3ba48d(0x16c),_0x3ba48d(0x172),_0x3ba48d(0x180),_0x3ba48d(0x175)+_0x4b17c9['join'](';\x20')]['join']('\x20'));}function a51_0x4a1e(_0x4a86c0,_0x6e0d15){_0x4a86c0=_0x4a86c0-0x164;const _0x41f4fd=a51_0x41f4();let _0x4a1e92=_0x41f4fd[_0x4a86c0];return _0x4a1e92;}export function buildRetargetWarning(_0x2c51bd,_0x3f167a){const _0x4aec57=a51_0x4a1e;if(!_0x2c51bd?.[_0x4aec57(0x164)]||_0x2c51bd['appCode']===_0x3f167a)return[];return[{'level':'warning','ruleId':_0x4aec57(0x18b),'file':_0x4aec57(0x17d),'message':_0x4aec57(0x184)+_0x2c51bd[_0x4aec57(0x164)]+_0x4aec57(0x179)+_0x3f167a+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x4f45b2){const _0x2d9f2c=a51_0x4a1e;if(!_0x4f45b2[_0x2d9f2c(0x193)]||_0x4f45b2[_0x2d9f2c(0x193)][_0x2d9f2c(0x16e)]!==_0x4f45b2[_0x2d9f2c(0x16e)]||!_0x4f45b2[_0x2d9f2c(0x187)][_0x2d9f2c(0x17e)])return{'status':'not-applicable'};const _0x505af4=_0x4f45b2[_0x2d9f2c(0x193)][_0x2d9f2c(0x181)]||_0x4f45b2['skillCode'];if(!_0x505af4)return{'status':_0x2d9f2c(0x17f)};const _0x181a84=await _0x4f45b2[_0x2d9f2c(0x178)](_0x4f45b2[_0x2d9f2c(0x16e)],_0x505af4,_0x4f45b2[_0x2d9f2c(0x164)],_0x4f45b2[_0x2d9f2c(0x193)]['version']);try{_0x4f45b2[_0x2d9f2c(0x192)](_0x4f45b2[_0x2d9f2c(0x187)][_0x2d9f2c(0x17e)],_0x181a84);}catch{return{'status':_0x2d9f2c(0x168)};}return{'status':_0x2d9f2c(0x167),'savedSkill':{..._0x4f45b2[_0x2d9f2c(0x193)],'content':_0x4f45b2[_0x2d9f2c(0x187)][_0x2d9f2c(0x16a)],'files':_0x4f45b2[_0x2d9f2c(0x187)][_0x2d9f2c(0x17e)]}};}
1
+ (function(_0x412fa3,_0x514133){const _0x2ab593=a51_0x4347,_0x1a9009=_0x412fa3();while(!![]){try{const _0x19555b=parseInt(_0x2ab593(0x14e))/0x1*(-parseInt(_0x2ab593(0x157))/0x2)+-parseInt(_0x2ab593(0x159))/0x3+parseInt(_0x2ab593(0x13f))/0x4*(parseInt(_0x2ab593(0x16c))/0x5)+-parseInt(_0x2ab593(0x15c))/0x6*(-parseInt(_0x2ab593(0x14b))/0x7)+parseInt(_0x2ab593(0x161))/0x8*(parseInt(_0x2ab593(0x158))/0x9)+parseInt(_0x2ab593(0x149))/0xa+-parseInt(_0x2ab593(0x14a))/0xb;if(_0x19555b===_0x514133)break;else _0x1a9009['push'](_0x1a9009['shift']());}catch(_0x367b0f){_0x1a9009['push'](_0x1a9009['shift']());}}}(a51_0xd2f6,0x9b043));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4a8887){const _0x36030d=a51_0x4347,_0x426dc5=_0x4a8887[_0x36030d(0x16a)]('scope')||'personal';if(_0x426dc5===_0x36030d(0x14d)||_0x426dc5===_0x36030d(0x15a))return _0x426dc5;throw CliErrors['validation'](_0x36030d(0x160)+_0x426dc5+'\x22.');}export function allowRetargetArgs(_0x188fc6){return _0x188fc6?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a51_0x4347(_0x20e4c0,_0x1f745c){_0x20e4c0=_0x20e4c0-0x13c;const _0xd2f601=a51_0xd2f6();let _0x434772=_0xd2f601[_0x20e4c0];return _0x434772;}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x4edd42=a51_0x4347;return{'targetScope':_0x4edd42(0x15a),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x450d0b={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x450d0b};}export function remotePersonalReadOptions(_0x5747b5,_0x348730={}){return{'ignoreInvalidMetadata':!![],..._0x5747b5?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x348730};}export function throwIfBuiltinPushTarget(_0x5cd959){const _0x4402e1=a51_0x4347;if(_0x5cd959?.[_0x4402e1(0x153)]!==_0x4402e1(0x168))return;throw CliErrors[_0x4402e1(0x166)](_0x4402e1(0x169)+(_0x5cd959[_0x4402e1(0x15e)]??_0x4402e1(0x16b))+_0x4402e1(0x145),_0x4402e1(0x155));}export function throwIfPublishValidationFailed(_0x38ffbc,_0x3e80e5,_0x2c8471){const _0x5a9b88=a51_0x4347;if(_0x2c8471[_0x5a9b88(0x14f)]['length']===0x0&&(_0x2c8471[_0x5a9b88(0x142)]||_0x2c8471[_0x5a9b88(0x154)]['length']>0x0))return;const _0x35aa2c=_0x2c8471[_0x5a9b88(0x14f)][_0x5a9b88(0x167)]>0x0?_0x2c8471[_0x5a9b88(0x14f)][_0x5a9b88(0x15d)](';\x20'):_0x5a9b88(0x148),_0x26319f=_0x38ffbc===_0x5a9b88(0x15a)?_0x5a9b88(0x140):'Personal';throw CliErrors[_0x5a9b88(0x166)](_0x26319f+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x3e80e5+'.',_0x35aa2c);}export function throwIfUnconfirmedPublishWarnings(_0x534083,_0x82bc6d,_0x4318fb,_0x4af2dd){const _0x3659ce=a51_0x4347;if(_0x4318fb['length']===0x0||_0x4af2dd)return;const _0x3e4853=_0x534083===_0x3659ce(0x15a)?'Company':'Personal';throw CliErrors[_0x3659ce(0x166)](_0x3e4853+_0x3659ce(0x164)+_0x82bc6d+'.',[_0x3659ce(0x163),_0x3659ce(0x152),_0x3659ce(0x15b),_0x3659ce(0x14c)+_0x4318fb[_0x3659ce(0x15d)](';\x20')][_0x3659ce(0x15d)]('\x20'));}function a51_0xd2f6(){const _0x4c05b1=['company','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','2562252UPRClY','join','skillCode','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','848VcPDsL','not-applicable','Review\x20each\x20warning\x20before\x20continuing.','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','downloadRuntimeSkillPackage','validation','length','builtin','Builtin\x20Skill\x20','str','(unknown)','81560kPlqoh','files','\x20after\x20successful\x20push.','Local\x20Skill\x20metadata\x20appCode\x20','28tDHteb','Company','publishInput','valid','remote','appCode','\x20cannot\x20be\x20pushed.','warning','identical','SkillHub\x20validation\x20returned\x20invalid.','10812210XBqFiq','6509360wHShXe','7mtLhgh','Warnings:\x20','personal','38990jJTQkY','errors','different','content','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','scope','warnings','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','22YwUbBM','87039BDlpGA','2975928ePNeny'];a51_0xd2f6=function(){return _0x4c05b1;};return a51_0xd2f6();}export function buildRetargetWarning(_0x43c8e6,_0x359b0f){const _0xe07d24=a51_0x4347;if(!_0x43c8e6?.[_0xe07d24(0x144)]||_0x43c8e6[_0xe07d24(0x144)]===_0x359b0f)return[];return[{'level':_0xe07d24(0x146),'ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0xe07d24(0x13e)+_0x43c8e6['appCode']+_0xe07d24(0x15f)+_0x359b0f+_0xe07d24(0x13d),'suggestion':_0xe07d24(0x156)}];}export async function runRemoteContentPreflight(_0x469d9f){const _0x2962db=a51_0x4347;if(!_0x469d9f[_0x2962db(0x143)]||_0x469d9f[_0x2962db(0x143)][_0x2962db(0x153)]!==_0x469d9f['scope']||!_0x469d9f[_0x2962db(0x141)][_0x2962db(0x13c)])return{'status':_0x2962db(0x162)};const _0x1077be=_0x469d9f[_0x2962db(0x143)][_0x2962db(0x15e)]||_0x469d9f[_0x2962db(0x15e)];if(!_0x1077be)return{'status':_0x2962db(0x162)};const _0x3f7ab7=await _0x469d9f[_0x2962db(0x165)](_0x469d9f[_0x2962db(0x153)],_0x1077be,_0x469d9f[_0x2962db(0x144)],_0x469d9f[_0x2962db(0x143)]['version']);try{_0x469d9f['verifyRuntimeSkillBundle'](_0x469d9f[_0x2962db(0x141)][_0x2962db(0x13c)],_0x3f7ab7);}catch{return{'status':_0x2962db(0x150)};}return{'status':_0x2962db(0x147),'savedSkill':{..._0x469d9f[_0x2962db(0x143)],'content':_0x469d9f[_0x2962db(0x141)][_0x2962db(0x151)],'files':_0x469d9f['publishInput'][_0x2962db(0x13c)]}};}
@@ -1 +1 @@
1
- function a52_0x109a(_0x2efa29,_0x7a7b1a){_0x2efa29=_0x2efa29-0xfb;const _0x3e83c8=a52_0x3e83();let _0x109a57=_0x3e83c8[_0x2efa29];return _0x109a57;}(function(_0x1d2198,_0x37b73c){const _0x2dd10f=a52_0x109a,_0xebefc2=_0x1d2198();while(!![]){try{const _0x1e979a=parseInt(_0x2dd10f(0x10c))/0x1*(-parseInt(_0x2dd10f(0x107))/0x2)+-parseInt(_0x2dd10f(0x10f))/0x3+parseInt(_0x2dd10f(0xff))/0x4+-parseInt(_0x2dd10f(0x104))/0x5*(-parseInt(_0x2dd10f(0xfd))/0x6)+parseInt(_0x2dd10f(0xfb))/0x7+parseInt(_0x2dd10f(0x102))/0x8*(-parseInt(_0x2dd10f(0x105))/0x9)+-parseInt(_0x2dd10f(0x10d))/0xa*(-parseInt(_0x2dd10f(0x103))/0xb);if(_0x1e979a===_0x37b73c)break;else _0xebefc2['push'](_0xebefc2['shift']());}catch(_0x434416){_0xebefc2['push'](_0xebefc2['shift']());}}}(a52_0x3e83,0xab664));export function withRetargetExistingMetadata(_0x4604a1,_0x5b31f7,_0x307e8c={}){const _0x32a0ae=a52_0x109a,_0x564da0=_0x307e8c['preferInputSkillName']?_0x4604a1['skillName']??_0x5b31f7[_0x32a0ae(0x109)]:_0x5b31f7[_0x32a0ae(0x109)]??_0x4604a1['skillName'];return{..._0x4604a1,'skillName':_0x564da0,'description':_0x5b31f7[_0x32a0ae(0x101)]??_0x4604a1['description'],'tags':Array[_0x32a0ae(0x110)](_0x5b31f7['tags'])?_0x5b31f7['tags']:_0x4604a1[_0x32a0ae(0xfc)],'version':_0x5b31f7[_0x32a0ae(0x106)]??_0x4604a1['version'],'sourceSessionId':_0x5b31f7[_0x32a0ae(0xfe)]??_0x4604a1[_0x32a0ae(0xfe)]};}function a52_0x3e83(){const _0x34f39c=['description','8PgwQuM','22pDiREu','424345pEjMGq','6514011cqirTI','version','4162rgIKom','skill-metadata-appcode-retargeted','skillName','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','lovrabet.skill.json','485cCwLyY','4839090nzSiTj','appCode','3156627YnBSSF','isArray','8147545LWkoLw','tags','18rdNcaj','sourceSessionId','4403860xSHcLC','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'];a52_0x3e83=function(){return _0x34f39c;};return a52_0x3e83();}export function buildRetargetWarning(_0x5da978,_0xe15e70){const _0x7f474e=a52_0x109a;if(!_0x5da978?.[_0x7f474e(0x10e)]||_0x5da978[_0x7f474e(0x10e)]===_0xe15e70)return[];return[{'level':'warning','ruleId':_0x7f474e(0x108),'file':_0x7f474e(0x10b),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x5da978['appCode']+_0x7f474e(0x10a)+_0xe15e70+'\x20after\x20successful\x20push.','suggestion':_0x7f474e(0x100)}];}
1
+ (function(_0x4a2405,_0x5a382b){const _0xe8cba=a52_0x38d5,_0x4e825a=_0x4a2405();while(!![]){try{const _0x514897=parseInt(_0xe8cba(0x97))/0x1*(parseInt(_0xe8cba(0x9b))/0x2)+-parseInt(_0xe8cba(0x8e))/0x3*(-parseInt(_0xe8cba(0x98))/0x4)+parseInt(_0xe8cba(0x96))/0x5*(-parseInt(_0xe8cba(0x99))/0x6)+-parseInt(_0xe8cba(0x9e))/0x7*(-parseInt(_0xe8cba(0x9f))/0x8)+parseInt(_0xe8cba(0x92))/0x9+parseInt(_0xe8cba(0xa1))/0xa+-parseInt(_0xe8cba(0x9d))/0xb*(parseInt(_0xe8cba(0xa3))/0xc);if(_0x514897===_0x5a382b)break;else _0x4e825a['push'](_0x4e825a['shift']());}catch(_0x457973){_0x4e825a['push'](_0x4e825a['shift']());}}}(a52_0x1b97,0xc161c));export function withRetargetExistingMetadata(_0x4af638,_0x4e3083,_0x508cdc={}){const _0x3f7b41=a52_0x38d5,_0x1ed76b=_0x508cdc[_0x3f7b41(0xa4)]?_0x4af638[_0x3f7b41(0x93)]??_0x4e3083['skillName']:_0x4e3083[_0x3f7b41(0x93)]??_0x4af638[_0x3f7b41(0x93)];return{..._0x4af638,'skillName':_0x1ed76b,'description':_0x4e3083[_0x3f7b41(0x9a)]??_0x4af638[_0x3f7b41(0x9a)],'tags':Array[_0x3f7b41(0x8d)](_0x4e3083[_0x3f7b41(0xa0)])?_0x4e3083['tags']:_0x4af638['tags'],'version':_0x4e3083[_0x3f7b41(0x94)]??_0x4af638[_0x3f7b41(0x94)],'sourceSessionId':_0x4e3083[_0x3f7b41(0x8f)]??_0x4af638[_0x3f7b41(0x8f)]};}function a52_0x38d5(_0x37e9d9,_0x216b4b){_0x37e9d9=_0x37e9d9-0x8c;const _0x1b9745=a52_0x1b97();let _0x38d50a=_0x1b9745[_0x37e9d9];return _0x38d50a;}function a52_0x1b97(){const _0x339cab=['1345npKRIa','169583HqzzcD','12lReFCC','24834pUeAjh','description','2iDyFgj','appCode','17402YjbxFF','119IAKHFM','344920CzpfEQ','tags','8107740zVXIvv','skill-metadata-appcode-retargeted','14004tvCvUM','preferInputSkillName','Local\x20Skill\x20metadata\x20appCode\x20','isArray','1274826roFPlG','sourceSessionId','\x20after\x20successful\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','6871851hdTgkC','skillName','version','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'];a52_0x1b97=function(){return _0x339cab;};return a52_0x1b97();}export function buildRetargetWarning(_0x425fb6,_0x2e3185){const _0x50782b=a52_0x38d5;if(!_0x425fb6?.[_0x50782b(0x9c)]||_0x425fb6[_0x50782b(0x9c)]===_0x2e3185)return[];return[{'level':'warning','ruleId':_0x50782b(0xa2),'file':'lovrabet.skill.json','message':_0x50782b(0x8c)+_0x425fb6[_0x50782b(0x9c)]+_0x50782b(0x91)+_0x2e3185+_0x50782b(0x90),'suggestion':_0x50782b(0x95)}];}
@@ -1 +1 @@
1
- function a53_0x2647(_0x3a1971,_0x226620){_0x3a1971=_0x3a1971-0x8c;const _0x38f90c=a53_0x38f9();let _0x264775=_0x38f90c[_0x3a1971];return _0x264775;}(function(_0x29f17b,_0x1f5a5c){const _0x86358e=a53_0x2647,_0x3cbb4f=_0x29f17b();while(!![]){try{const _0x57545c=parseInt(_0x86358e(0x93))/0x1+parseInt(_0x86358e(0x91))/0x2+parseInt(_0x86358e(0x92))/0x3*(-parseInt(_0x86358e(0x9b))/0x4)+parseInt(_0x86358e(0x96))/0x5+parseInt(_0x86358e(0x8d))/0x6+parseInt(_0x86358e(0x94))/0x7*(-parseInt(_0x86358e(0x95))/0x8)+-parseInt(_0x86358e(0x8f))/0x9;if(_0x57545c===_0x1f5a5c)break;else _0x3cbb4f['push'](_0x3cbb4f['shift']());}catch(_0x5a916b){_0x3cbb4f['push'](_0x3cbb4f['shift']());}}}(a53_0x38f9,0x34ebc));import{CliErrors}from'../../errors.js';function a53_0x38f9(){const _0x7752b4=['7vjMDeZ','1185304XimPMc','126995XOGZQP','all','company','Unsupported\x20Skill\x20list\x20scope:\x20','Unsupported\x20Skill\x20sync\x20scope:\x20','16bHgOFL','validation','1784454DTgmwk','trim','1455399LQijtg','personal','789170EVQCeo','192519dhWxtC','65937IKikhb'];a53_0x38f9=function(){return _0x7752b4;};return a53_0x38f9();}export function normalizeSyncScopes(_0x42d478){const _0x29f8ba=a53_0x2647,_0xa46f71=_0x42d478[_0x29f8ba(0x8e)]();if(!_0xa46f71||_0xa46f71===_0x29f8ba(0x97))return[_0x29f8ba(0x90),'company'];if(_0xa46f71===_0x29f8ba(0x90)||_0xa46f71==='company')return[_0xa46f71];throw CliErrors[_0x29f8ba(0x8c)](_0x29f8ba(0x9a)+_0x42d478);}export function normalizeListScope(_0x26b78b){const _0x305778=a53_0x2647,_0x364e1c=_0x26b78b[_0x305778(0x8e)]();if(!_0x364e1c)return'all';if(_0x364e1c===_0x305778(0x90)||_0x364e1c===_0x305778(0x98)||_0x364e1c===_0x305778(0x97))return _0x364e1c;throw CliErrors[_0x305778(0x8c)](_0x305778(0x99)+_0x26b78b);}export function shouldListScope(_0x3e55e5,_0x4cab0b){const _0x2ef585=a53_0x2647;if(_0x3e55e5===_0x2ef585(0x97))return!![];return _0x3e55e5===_0x4cab0b;}export function listScopeToRuntimeScopes(_0x5288ba){const _0x5467f4=a53_0x2647;if(_0x5288ba===_0x5467f4(0x97))return[_0x5467f4(0x90),_0x5467f4(0x98)];return[_0x5288ba===_0x5467f4(0x98)?_0x5467f4(0x98):_0x5288ba];}export function listScopeToRemoteScope(_0xf23632){return _0xf23632;}
1
+ function a53_0x2f64(_0x20ab4f,_0x98ac61){_0x20ab4f=_0x20ab4f-0x14c;const _0x21110d=a53_0x2111();let _0x2f6417=_0x21110d[_0x20ab4f];return _0x2f6417;}(function(_0x44eeff,_0x986417){const _0x516536=a53_0x2f64,_0x17a85f=_0x44eeff();while(!![]){try{const _0x40b7b5=-parseInt(_0x516536(0x158))/0x1*(parseInt(_0x516536(0x15c))/0x2)+parseInt(_0x516536(0x157))/0x3*(parseInt(_0x516536(0x14c))/0x4)+-parseInt(_0x516536(0x15e))/0x5*(parseInt(_0x516536(0x156))/0x6)+parseInt(_0x516536(0x15b))/0x7*(parseInt(_0x516536(0x15a))/0x8)+parseInt(_0x516536(0x151))/0x9+parseInt(_0x516536(0x14d))/0xa+parseInt(_0x516536(0x152))/0xb*(-parseInt(_0x516536(0x155))/0xc);if(_0x40b7b5===_0x986417)break;else _0x17a85f['push'](_0x17a85f['shift']());}catch(_0x4f01f9){_0x17a85f['push'](_0x17a85f['shift']());}}}(a53_0x2111,0xdfa2c));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1164fa){const _0x50c68a=a53_0x2f64,_0x549bc7=_0x1164fa[_0x50c68a(0x153)]();if(!_0x549bc7||_0x549bc7===_0x50c68a(0x15d))return[_0x50c68a(0x150),'company'];if(_0x549bc7===_0x50c68a(0x150)||_0x549bc7===_0x50c68a(0x14f))return[_0x549bc7];throw CliErrors[_0x50c68a(0x159)](_0x50c68a(0x154)+_0x1164fa);}export function normalizeListScope(_0x2a5b95){const _0x2b9b68=a53_0x2f64,_0x30fd5c=_0x2a5b95[_0x2b9b68(0x153)]();if(!_0x30fd5c)return'all';if(_0x30fd5c==='personal'||_0x30fd5c===_0x2b9b68(0x14f)||_0x30fd5c===_0x2b9b68(0x15d))return _0x30fd5c;throw CliErrors[_0x2b9b68(0x159)](_0x2b9b68(0x14e)+_0x2a5b95);}export function shouldListScope(_0x592af0,_0x43c1e3){const _0x113773=a53_0x2f64;if(_0x592af0===_0x113773(0x15d))return!![];return _0x592af0===_0x43c1e3;}export function listScopeToRuntimeScopes(_0x8981f4){const _0x2f023b=a53_0x2f64;if(_0x8981f4===_0x2f023b(0x15d))return[_0x2f023b(0x150),_0x2f023b(0x14f)];return[_0x8981f4===_0x2f023b(0x14f)?'company':_0x8981f4];}function a53_0x2111(){const _0x3112ae=['Unsupported\x20Skill\x20list\x20scope:\x20','company','personal','2325276IuvgMD','10302897aHHXrS','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','24gxwcOa','6081618BcyLfG','165327BSXLgf','158342dafPur','validation','424rAodeM','225729ZDBNfy','6KTErad','all','5JcLnDp','96mgxtSi','9878240WxDGHo'];a53_0x2111=function(){return _0x3112ae;};return a53_0x2111();}export function listScopeToRemoteScope(_0x395fa0){return _0x395fa0;}