@lovrabet/lovrabet-cli 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a37_0x119af9=a37_0x1c69;function a37_0x1c69(_0x3ae636,_0x59dec4){_0x3ae636=_0x3ae636-0xfd;const _0x2160fd=a37_0x2160();let _0x1c697b=_0x2160fd[_0x3ae636];return _0x1c697b;}function a37_0x2160(){const _0x269306=['310NLynYR','length','bool','12PLCkqk','authRequired','list','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','scope','1419271RCcBwe','map','7149303VZGhhU','2132RXKVEV','30998GqSAqi','str','../../../core/api-client.js','../../../skills/runtime-skill-sync.js','trim','8jvtGKB','11334gbHlNo','2579285ZJzfkx','appCode','Listed\x20','14904LmgdzV','local','filter','accessKey','640AiBRjq','read','758jJXEaZ','personal','631izqSmX','company','skill','\x20local\x20Skill(s).'];a37_0x2160=function(){return _0x269306;};return a37_0x2160();}(function(_0x1d8f45,_0xd9fd3b){const _0x5efff7=a37_0x1c69,_0x4eb29e=_0x1d8f45();while(!![]){try{const _0x2820ee=parseInt(_0x5efff7(0x111))/0x1*(-parseInt(_0x5efff7(0x10f))/0x2)+-parseInt(_0x5efff7(0x105))/0x3*(-parseInt(_0x5efff7(0x10d))/0x4)+-parseInt(_0x5efff7(0x106))/0x5*(-parseInt(_0x5efff7(0x118))/0x6)+-parseInt(_0x5efff7(0x11d))/0x7*(parseInt(_0x5efff7(0x104))/0x8)+-parseInt(_0x5efff7(0xfd))/0x9+-parseInt(_0x5efff7(0x115))/0xa*(parseInt(_0x5efff7(0xff))/0xb)+parseInt(_0x5efff7(0x109))/0xc*(parseInt(_0x5efff7(0xfe))/0xd);if(_0x2820ee===_0xd9fd3b)break;else _0x4eb29e['push'](_0x4eb29e['shift']());}catch(_0x389575){_0x4eb29e['push'](_0x4eb29e['shift']());}}}(a37_0x2160,0x7e09f));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':a37_0x119af9(0x113),'command':a37_0x119af9(0x11a),'description':a37_0x119af9(0x11b),'risk':a37_0x119af9(0x10e),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x5947d0){const _0x1de7ad=a37_0x119af9,_0x59cd37=_0x5947d0[_0x1de7ad(0x100)]('code'),_0x1ffe35=normalizeListScope(_0x5947d0[_0x1de7ad(0x100)](_0x1de7ad(0x11c)));if(_0x5947d0[_0x1de7ad(0x117)]('local')){const _0x5e6fb3=_0x5947d0[_0x1de7ad(0x10c)];if(!_0x5e6fb3)throw CliErrors[_0x1de7ad(0x119)]();const {listLocalRuntimeSkills:_0x1a97a6}=await import(_0x1de7ad(0x102)),_0x2a5d53=_0x1a97a6({'env':_0x5947d0['envName']??'production','accessKey':_0x5e6fb3,'appCode':_0x5947d0[_0x1de7ad(0x107)],'scopes':listScopeToRuntimeScopes(_0x1ffe35),'code':_0x59cd37[_0x1de7ad(0x103)]()||undefined}),_0x505575=groupLocalRuntimeSkills(_0x2a5d53);return{'ok':!![],'data':{'appCode':_0x5947d0[_0x1de7ad(0x107)],'source':_0x1de7ad(0x10a),'scope':_0x1ffe35,'total':_0x2a5d53[_0x1de7ad(0x116)],'personal':_0x505575[_0x1de7ad(0x110)][_0x1de7ad(0x116)],'company':_0x505575['company'][_0x1de7ad(0x116)],'items':_0x2a5d53[_0x1de7ad(0x11e)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x505575[_0x1de7ad(0x110)]['map'](summarizeLocalRuntimeSkill),'company':_0x505575[_0x1de7ad(0x112)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x1de7ad(0x108)+_0x2a5d53['length']+_0x1de7ad(0x114)};}const {listRuntimeSkills:_0x10c8f7}=await import(_0x1de7ad(0x101)),_0x1d30c0=await _0x10c8f7({'appCode':_0x5947d0['appCode'],'scope':listScopeToRemoteScope(_0x1ffe35),'code':_0x59cd37[_0x1de7ad(0x103)]()||undefined}),_0x1ef8a3=shouldListScope(_0x1ffe35,_0x1de7ad(0x110))?_0x1d30c0['personal']??[]:[],_0x42cd8e=shouldListScope(_0x1ffe35,'company')?_0x1d30c0[_0x1de7ad(0x112)]??[]:[],_0x533fa3=[..._0x1ef8a3,..._0x42cd8e];return{'ok':!![],'data':{'appCode':_0x5947d0[_0x1de7ad(0x107)],'source':'remote','scope':_0x1ffe35,'total':_0x533fa3[_0x1de7ad(0x116)],'personal':_0x1ef8a3[_0x1de7ad(0x116)],'company':_0x42cd8e[_0x1de7ad(0x116)],'items':_0x533fa3['map'](summarizeRuntimeSkill),'skills':{'personal':_0x1ef8a3[_0x1de7ad(0x11e)](summarizeRuntimeSkill),'company':_0x42cd8e[_0x1de7ad(0x11e)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x533fa3[_0x1de7ad(0x116)]+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x2323e6){const _0x70a6c9=a37_0x119af9;return{'personal':_0x2323e6['filter'](_0x3bb5a1=>_0x3bb5a1[_0x70a6c9(0x11c)]==='personal'),'company':_0x2323e6[_0x70a6c9(0x10b)](_0xf60b08=>_0xf60b08[_0x70a6c9(0x11c)]===_0x70a6c9(0x112)),'builtin':_0x2323e6[_0x70a6c9(0x10b)](_0x3aa20a=>_0x3aa20a[_0x70a6c9(0x11c)]==='builtin')};}
1
+ const a37_0x297a0a=a37_0x4496;(function(_0x5d3052,_0x2e23df){const _0x53ee12=a37_0x4496,_0x5b6809=_0x5d3052();while(!![]){try{const _0x9b121b=-parseInt(_0x53ee12(0x1e1))/0x1+-parseInt(_0x53ee12(0x1ec))/0x2*(-parseInt(_0x53ee12(0x1dd))/0x3)+-parseInt(_0x53ee12(0x1ef))/0x4+-parseInt(_0x53ee12(0x1eb))/0x5+parseInt(_0x53ee12(0x1e0))/0x6+parseInt(_0x53ee12(0x1ea))/0x7*(parseInt(_0x53ee12(0x1ed))/0x8)+parseInt(_0x53ee12(0x1e6))/0x9;if(_0x9b121b===_0x2e23df)break;else _0x5b6809['push'](_0x5b6809['shift']());}catch(_0x2f60da){_0x5b6809['push'](_0x5b6809['shift']());}}}(a37_0x212a,0x688f5));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';function a37_0x4496(_0x1d3dea,_0x289176){_0x1d3dea=_0x1d3dea-0x1d4;const _0x212aec=a37_0x212a();let _0x449683=_0x212aec[_0x1d3dea];return _0x449683;}function a37_0x212a(){const _0x101317=['length','../../../core/api-client.js','scope','authRequired','code','envName','remote','Listed\x20','production','\x20local\x20Skill(s).','filter','trim','list','1058526fCWsmM','../../../skills/runtime-skill-sync.js','accessKey','2557098eoOsjQ','73616GjwomB','str','personal','local','company','9669411awtXgM','\x20remote\x20Skill(s).','map','read','126INWMac','3600715paeblj','2iriUMt','4920DiuFEy','appCode','2569752Imkrgv'];a37_0x212a=function(){return _0x101317;};return a37_0x212a();}export const listCommand={'service':'skill','command':a37_0x297a0a(0x1dc),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a37_0x297a0a(0x1e9),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x3eab7b){const _0x17ec72=a37_0x297a0a,_0x76a4c9=_0x3eab7b[_0x17ec72(0x1e2)](_0x17ec72(0x1d4)),_0x309123=normalizeListScope(_0x3eab7b[_0x17ec72(0x1e2)](_0x17ec72(0x1f2)));if(_0x3eab7b['bool'](_0x17ec72(0x1e4))){const _0x411967=_0x3eab7b[_0x17ec72(0x1df)];if(!_0x411967)throw CliErrors[_0x17ec72(0x1f3)]();const {listLocalRuntimeSkills:_0x251b3d}=await import(_0x17ec72(0x1de)),_0x4e758a=_0x251b3d({'env':_0x3eab7b[_0x17ec72(0x1d5)]??_0x17ec72(0x1d8),'accessKey':_0x411967,'appCode':_0x3eab7b[_0x17ec72(0x1ee)],'scopes':listScopeToRuntimeScopes(_0x309123),'code':_0x76a4c9[_0x17ec72(0x1db)]()||undefined}),_0x2284d6=groupLocalRuntimeSkills(_0x4e758a);return{'ok':!![],'data':{'appCode':_0x3eab7b[_0x17ec72(0x1ee)],'source':'local','scope':_0x309123,'total':_0x4e758a[_0x17ec72(0x1f0)],'personal':_0x2284d6[_0x17ec72(0x1e3)]['length'],'company':_0x2284d6['company'][_0x17ec72(0x1f0)],'items':_0x4e758a[_0x17ec72(0x1e8)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x2284d6[_0x17ec72(0x1e3)][_0x17ec72(0x1e8)](summarizeLocalRuntimeSkill),'company':_0x2284d6['company'][_0x17ec72(0x1e8)](summarizeLocalRuntimeSkill)}},'message':_0x17ec72(0x1d7)+_0x4e758a[_0x17ec72(0x1f0)]+_0x17ec72(0x1d9)};}const {listRuntimeSkills:_0x40af84}=await import(_0x17ec72(0x1f1)),_0x37307a=await _0x40af84({'appCode':_0x3eab7b['appCode'],'scope':listScopeToRemoteScope(_0x309123),'code':_0x76a4c9[_0x17ec72(0x1db)]()||undefined}),_0x6f2529=shouldListScope(_0x309123,_0x17ec72(0x1e3))?_0x37307a[_0x17ec72(0x1e3)]??[]:[],_0x14054a=shouldListScope(_0x309123,'company')?_0x37307a['company']??[]:[],_0x10f594=[..._0x6f2529,..._0x14054a];return{'ok':!![],'data':{'appCode':_0x3eab7b['appCode'],'source':_0x17ec72(0x1d6),'scope':_0x309123,'total':_0x10f594[_0x17ec72(0x1f0)],'personal':_0x6f2529[_0x17ec72(0x1f0)],'company':_0x14054a[_0x17ec72(0x1f0)],'items':_0x10f594[_0x17ec72(0x1e8)](summarizeRuntimeSkill),'skills':{'personal':_0x6f2529['map'](summarizeRuntimeSkill),'company':_0x14054a[_0x17ec72(0x1e8)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x10f594[_0x17ec72(0x1f0)]+_0x17ec72(0x1e7)};}};function groupLocalRuntimeSkills(_0x235af2){const _0x21cd93=a37_0x297a0a;return{'personal':_0x235af2[_0x21cd93(0x1da)](_0x20abbb=>_0x20abbb[_0x21cd93(0x1f2)]==='personal'),'company':_0x235af2[_0x21cd93(0x1da)](_0x4b3a29=>_0x4b3a29[_0x21cd93(0x1f2)]===_0x21cd93(0x1e5)),'builtin':_0x235af2[_0x21cd93(0x1da)](_0x550d0d=>_0x550d0d[_0x21cd93(0x1f2)]==='builtin')};}
@@ -1 +1 @@
1
- function a38_0x30fc(){const _0x58d49e=['find','8aBhVUr','str','write','11316837EIEfps','26874160MeBNjI','skillCode','195HJyRft','../../../core/api-client.js','dir','1LornQO','3322917WgLwyT','skill','13341816bZgYDx','authRequired','2969918XAsvtQ','input','files','8092110Xctauo','appCode','personal','175076NnkXWS','../../../skills/runtime-skill-sync.js'];a38_0x30fc=function(){return _0x58d49e;};return a38_0x30fc();}function a38_0x1bdd(_0x591ddd,_0x4fe2cb){_0x591ddd=_0x591ddd-0x102;const _0x30fc5a=a38_0x30fc();let _0x1bddd8=_0x30fc5a[_0x591ddd];return _0x1bddd8;}const a38_0x44ab74=a38_0x1bdd;(function(_0x2d89e2,_0x3fc4e2){const _0x3e44c4=a38_0x1bdd,_0x3f5c7e=_0x2d89e2();while(!![]){try{const _0xb5f7bd=parseInt(_0x3e44c4(0x107))/0x1*(parseInt(_0x3e44c4(0x10c))/0x2)+-parseInt(_0x3e44c4(0x108))/0x3+parseInt(_0x3e44c4(0x112))/0x4*(parseInt(_0x3e44c4(0x104))/0x5)+parseInt(_0x3e44c4(0x10f))/0x6+parseInt(_0x3e44c4(0x118))/0x7+parseInt(_0x3e44c4(0x115))/0x8*(-parseInt(_0x3e44c4(0x10a))/0x9)+-parseInt(_0x3e44c4(0x102))/0xa;if(_0xb5f7bd===_0x3fc4e2)break;else _0x3f5c7e['push'](_0x3f5c7e['shift']());}catch(_0x500eb5){_0x3f5c7e['push'](_0x3f5c7e['shift']());}}}(a38_0x30fc,0xd6ce7));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x44ab74(0x109),'command':'push','description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','risk':a38_0x44ab74(0x117),'flags':[DIR_FLAG],async 'execute'(_0x41e784){const _0x5e97f=a38_0x44ab74,{createPersonalRuntimeSkill:_0x5d4bb2,downloadRuntimeSkillPackage:_0x2f4635,listRuntimeSkills:_0x1568b9,updatePersonalRuntimeSkill:_0x143a8a}=await import(_0x5e97f(0x105)),{verifyRuntimeSkillPackage:_0x2d5bfd,verifyRuntimeSkillBundle:_0x575caa,readPushDirectory:_0x43fc2a,recordPushedRuntimeSkill:_0x58f585}=await import(_0x5e97f(0x113));if(!_0x41e784['accessKey'])throw CliErrors[_0x5e97f(0x10b)]();const _0x494c41=_0x41e784[_0x5e97f(0x116)]('dir'),_0x556e4e=validateSkillDirectory(_0x494c41);throwIfSkillValidationFailed(_0x556e4e);const _0x21ac34=_0x556e4e[_0x5e97f(0x106)],_0x21f37a=_0x43fc2a(_0x21ac34,_0x41e784[_0x5e97f(0x110)]),_0x1006d6=(await _0x1568b9({'appCode':_0x41e784[_0x5e97f(0x110)],'scope':_0x5e97f(0x111)}))['personal'][_0x5e97f(0x114)](_0x4cc93f=>_0x4cc93f[_0x5e97f(0x103)]===_0x21f37a[_0x5e97f(0x103)]),_0x172d31=_0x1006d6?await _0x143a8a(_0x21f37a[_0x5e97f(0x103)],_0x41e784[_0x5e97f(0x110)],_0x21f37a[_0x5e97f(0x10d)]):await _0x5d4bb2(_0x41e784[_0x5e97f(0x110)],_0x21f37a[_0x5e97f(0x10d)]);let _0x4ec2f9=_0x172d31;if(isMultiFileManifest(_0x21f37a[_0x5e97f(0x10d)][_0x5e97f(0x10e)])){const _0x2a32d4=await _0x2f4635(_0x5e97f(0x111),_0x172d31[_0x5e97f(0x103)]||_0x21f37a['skillCode'],_0x41e784['appCode']);_0x575caa(_0x21f37a[_0x5e97f(0x10d)]['files'],_0x2a32d4),_0x4ec2f9={..._0x172d31,'files':_0x21f37a[_0x5e97f(0x10d)][_0x5e97f(0x10e)]};}else{if(isPackageBackedManifest(_0x172d31[_0x5e97f(0x10e)])){const _0x2978f9=await _0x2f4635('personal',_0x172d31[_0x5e97f(0x103)]||_0x21f37a[_0x5e97f(0x103)],_0x41e784['appCode']);_0x2d5bfd(_0x172d31[_0x5e97f(0x10e)],_0x2978f9);}}return _0x58f585(_0x21ac34,_0x4ec2f9,_0x41e784[_0x5e97f(0x110)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x172d31),'message':_0x1006d6?'Updated\x20personal\x20Skill\x20'+_0x21f37a[_0x5e97f(0x103)]:'Created\x20personal\x20Skill\x20'+_0x21f37a[_0x5e97f(0x103)]};}};
1
+ const a38_0x5ea4b6=a38_0x1ff8;(function(_0x3f9859,_0x4338d9){const _0xe9df86=a38_0x1ff8,_0x3c438b=_0x3f9859();while(!![]){try{const _0x46be98=parseInt(_0xe9df86(0x1d4))/0x1*(-parseInt(_0xe9df86(0x1c8))/0x2)+parseInt(_0xe9df86(0x1d2))/0x3+-parseInt(_0xe9df86(0x1c0))/0x4*(-parseInt(_0xe9df86(0x1d1))/0x5)+-parseInt(_0xe9df86(0x1bd))/0x6+parseInt(_0xe9df86(0x1c4))/0x7+-parseInt(_0xe9df86(0x1c9))/0x8*(parseInt(_0xe9df86(0x1d5))/0x9)+parseInt(_0xe9df86(0x1bf))/0xa*(parseInt(_0xe9df86(0x1d0))/0xb);if(_0x46be98===_0x4338d9)break;else _0x3c438b['push'](_0x3c438b['shift']());}catch(_0x229e86){_0x3c438b['push'](_0x3c438b['shift']());}}}(a38_0x18c0,0x59fa9));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';function a38_0x1ff8(_0x4aefe1,_0x11644f){_0x4aefe1=_0x4aefe1-0x1bd;const _0x18c053=a38_0x18c0();let _0x1ff8fa=_0x18c053[_0x4aefe1];return _0x1ff8fa;}import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';function a38_0x18c0(){const _0x597aeb=['Updated\x20personal\x20Skill\x20','5576JRZJed','3976ArhZKA','appCode','skill','str','accessKey','input','../../../skills/runtime-skill-sync.js','1023LjqKZl','5oWuQLa','42750yNxlGh','authRequired','182QuybKL','5877WiRxUR','dir','3108648CIHstp','personal','154530dcCkpe','13808DLtNfj','skillCode','push','../../../core/api-client.js','1846509NmmGZB','write','files'];a38_0x18c0=function(){return _0x597aeb;};return a38_0x18c0();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x5ea4b6(0x1cb),'command':a38_0x5ea4b6(0x1c2),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','risk':a38_0x5ea4b6(0x1c5),'flags':[DIR_FLAG],async 'execute'(_0x83995){const _0x6d76e0=a38_0x5ea4b6,{createPersonalRuntimeSkill:_0x1a86bb,downloadRuntimeSkillPackage:_0x369665,listRuntimeSkills:_0xc8bc3,updatePersonalRuntimeSkill:_0x1a743b}=await import(_0x6d76e0(0x1c3)),{verifyRuntimeSkillPackage:_0x97c687,verifyRuntimeSkillBundle:_0x5632ba,readPushDirectory:_0x1d2ceb,recordPushedRuntimeSkill:_0xeda713}=await import(_0x6d76e0(0x1cf));if(!_0x83995[_0x6d76e0(0x1cd)])throw CliErrors[_0x6d76e0(0x1d3)]();const _0x45834d=_0x83995[_0x6d76e0(0x1cc)](_0x6d76e0(0x1d6)),_0x26aa40=validateSkillDirectory(_0x45834d);throwIfSkillValidationFailed(_0x26aa40);const _0x5913ef=_0x26aa40['dir'],_0x4fd2e8=_0x1d2ceb(_0x5913ef,_0x83995['appCode']),_0x30c6f7=(await _0xc8bc3({'appCode':_0x83995[_0x6d76e0(0x1ca)],'scope':_0x6d76e0(0x1be)}))[_0x6d76e0(0x1be)]['find'](_0x518134=>_0x518134[_0x6d76e0(0x1c1)]===_0x4fd2e8['skillCode']),_0x1135fe=_0x30c6f7?await _0x1a743b(_0x4fd2e8[_0x6d76e0(0x1c1)],_0x83995[_0x6d76e0(0x1ca)],_0x4fd2e8[_0x6d76e0(0x1ce)]):await _0x1a86bb(_0x83995[_0x6d76e0(0x1ca)],_0x4fd2e8[_0x6d76e0(0x1ce)]);let _0x54c4ec=_0x1135fe;if(isMultiFileManifest(_0x4fd2e8['input'][_0x6d76e0(0x1c6)])){const _0x128268=await _0x369665(_0x6d76e0(0x1be),_0x1135fe[_0x6d76e0(0x1c1)]||_0x4fd2e8[_0x6d76e0(0x1c1)],_0x83995[_0x6d76e0(0x1ca)]);_0x5632ba(_0x4fd2e8[_0x6d76e0(0x1ce)][_0x6d76e0(0x1c6)],_0x128268),_0x54c4ec={..._0x1135fe,'files':_0x4fd2e8[_0x6d76e0(0x1ce)]['files']};}else{if(isPackageBackedManifest(_0x1135fe[_0x6d76e0(0x1c6)])){const _0x506136=await _0x369665(_0x6d76e0(0x1be),_0x1135fe['skillCode']||_0x4fd2e8['skillCode'],_0x83995[_0x6d76e0(0x1ca)]);_0x97c687(_0x1135fe[_0x6d76e0(0x1c6)],_0x506136);}}return _0xeda713(_0x5913ef,_0x54c4ec,_0x83995[_0x6d76e0(0x1ca)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x1135fe),'message':_0x30c6f7?_0x6d76e0(0x1c7)+_0x4fd2e8[_0x6d76e0(0x1c1)]:'Created\x20personal\x20Skill\x20'+_0x4fd2e8[_0x6d76e0(0x1c1)]};}};
@@ -1 +1 @@
1
- function a39_0xd47e(_0x52b0a9,_0x39cf4d){_0x52b0a9=_0x52b0a9-0x167;const _0x3dc99c=a39_0x3dc9();let _0xd47e42=_0x3dc99c[_0x52b0a9];return _0xd47e42;}const a39_0x52d3ff=a39_0xd47e;(function(_0x4914a0,_0x54a7f0){const _0x220c72=a39_0xd47e,_0x1453d6=_0x4914a0();while(!![]){try{const _0x17e2fb=-parseInt(_0x220c72(0x16e))/0x1+-parseInt(_0x220c72(0x175))/0x2*(-parseInt(_0x220c72(0x171))/0x3)+parseInt(_0x220c72(0x174))/0x4+parseInt(_0x220c72(0x16b))/0x5+parseInt(_0x220c72(0x173))/0x6+-parseInt(_0x220c72(0x16a))/0x7+-parseInt(_0x220c72(0x168))/0x8;if(_0x17e2fb===_0x54a7f0)break;else _0x1453d6['push'](_0x1453d6['shift']());}catch(_0x156890){_0x1453d6['push'](_0x1453d6['shift']());}}}(a39_0x3dc9,0xbb005));function a39_0x3dc9(){const _0x27731b=['5136448QArKLw','774678dJnMsF','dir','bool','25272408EqTORN','strict','2670262rqtbCT','7033115AgqlNU','str','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','1064780kMjCuT','warnings','validate','9NBRmIl','errors','9111012fYNomv'];a39_0x3dc9=function(){return _0x27731b;};return a39_0x3dc9();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a39_0x52d3ff(0x170),'description':a39_0x52d3ff(0x16d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x4e4d55){const _0xcf75ac=a39_0x52d3ff,_0x16b478=_0x4e4d55[_0xcf75ac(0x167)](_0xcf75ac(0x169)),_0x9c76cb=validateSkillDirectory(_0x4e4d55[_0xcf75ac(0x16c)](_0xcf75ac(0x176)),{'strict':_0x16b478});return throwIfSkillValidationFailed(_0x9c76cb,_0x16b478),{'ok':!![],'data':{'dir':_0x9c76cb['dir'],'type':_0x9c76cb['type'],'errors':_0x9c76cb[_0xcf75ac(0x172)],'warnings':_0x9c76cb[_0xcf75ac(0x16f)]},'message':'Skill\x20validation\x20passed.'};}};
1
+ function a39_0x199e(){const _0x59d3f9=['6462445DmBtKV','validate','6PwbCNe','Skill\x20validation\x20passed.','4uogjrg','200VySzDM','10174066qDVLus','27399010tPozQf','dir','errors','3800902MNeLtv','bool','107559rUMgAF','1703649kKwqOw','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','804514FFRCQl','str','read','strict'];a39_0x199e=function(){return _0x59d3f9;};return a39_0x199e();}const a39_0x36406a=a39_0xfce1;(function(_0x55351b,_0x351927){const _0x245312=a39_0xfce1,_0x4564e1=_0x55351b();while(!![]){try{const _0x80d5d2=parseInt(_0x245312(0x144))/0x1+parseInt(_0x245312(0x152))/0x2+parseInt(_0x245312(0x155))/0x3*(parseInt(_0x245312(0x14c))/0x4)+-parseInt(_0x245312(0x148))/0x5*(parseInt(_0x245312(0x14a))/0x6)+parseInt(_0x245312(0x14e))/0x7+parseInt(_0x245312(0x14d))/0x8*(parseInt(_0x245312(0x154))/0x9)+-parseInt(_0x245312(0x14f))/0xa;if(_0x80d5d2===_0x351927)break;else _0x4564e1['push'](_0x4564e1['shift']());}catch(_0x1f5a1d){_0x4564e1['push'](_0x4564e1['shift']());}}}(a39_0x199e,0xf259f));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a39_0xfce1(_0x1a18f2,_0x1156ef){_0x1a18f2=_0x1a18f2-0x144;const _0x199e0c=a39_0x199e();let _0xfce1d6=_0x199e0c[_0x1a18f2];return _0xfce1d6;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a39_0x36406a(0x149),'description':a39_0x36406a(0x156),'risk':a39_0x36406a(0x146),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0xc47ae7){const _0x3d3beb=a39_0x36406a,_0x46edea=_0xc47ae7[_0x3d3beb(0x153)](_0x3d3beb(0x147)),_0x28cc2d=validateSkillDirectory(_0xc47ae7[_0x3d3beb(0x145)](_0x3d3beb(0x150)),{'strict':_0x46edea});return throwIfSkillValidationFailed(_0x28cc2d,_0x46edea),{'ok':!![],'data':{'dir':_0x28cc2d['dir'],'type':_0x28cc2d['type'],'errors':_0x28cc2d[_0x3d3beb(0x151)],'warnings':_0x28cc2d['warnings']},'message':_0x3d3beb(0x14b)};}};
@@ -1 +1 @@
1
- const a40_0xc57838=a40_0x3537;(function(_0xbaefee,_0x274b62){const _0x2550d3=a40_0x3537,_0x1ca415=_0xbaefee();while(!![]){try{const _0x5110e1=-parseInt(_0x2550d3(0x168))/0x1*(-parseInt(_0x2550d3(0x172))/0x2)+parseInt(_0x2550d3(0x15b))/0x3+-parseInt(_0x2550d3(0x15a))/0x4*(-parseInt(_0x2550d3(0x155))/0x5)+-parseInt(_0x2550d3(0x169))/0x6+parseInt(_0x2550d3(0x161))/0x7*(parseInt(_0x2550d3(0x157))/0x8)+parseInt(_0x2550d3(0x159))/0x9*(-parseInt(_0x2550d3(0x156))/0xa)+-parseInt(_0x2550d3(0x160))/0xb*(parseInt(_0x2550d3(0x16f))/0xc);if(_0x5110e1===_0x274b62)break;else _0x1ca415['push'](_0x1ca415['shift']());}catch(_0x35d9b5){_0x1ca415['push'](_0x1ca415['shift']());}}}(a40_0x28bf,0x8f202));function a40_0x28bf(){const _0x14786b=['2081145CnYKun','string','all','Skill\x20template\x20type','Local\x20Skill\x20directory\x20containing\x20SKILL.md','11RsuWWf','7407211YJMbKI','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','personal','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','803218aQvFcZ','852078MvVVkm','local','target','dir','strict','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','11245284AcASAK','name','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','2kWmhdL','boolean','scope','code','268610PPKVcs','60YiqlRC','8YZeIlH','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1495782PKtTti','8mdhmPq'];a40_0x28bf=function(){return _0x14786b;};return a40_0x28bf();}function a40_0x3537(_0x4d12f2,_0x4e836f){_0x4d12f2=_0x4d12f2-0x152;const _0x28bfea=a40_0x28bf();let _0x3537d7=_0x28bfea[_0x4d12f2];return _0x3537d7;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0xc57838(0x154),'type':'string','description':a40_0xc57838(0x158)};export const SCOPE_FLAG={'name':a40_0xc57838(0x153),'type':'string','description':a40_0xc57838(0x165),'enum':[a40_0xc57838(0x15d),a40_0xc57838(0x163),a40_0xc57838(0x166)]};export const LIST_SCOPE_FLAG={'name':a40_0xc57838(0x153),'type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x16e),'enum':[a40_0xc57838(0x15d),a40_0xc57838(0x163),a40_0xc57838(0x166)]};export const LOCAL_FLAG={'name':a40_0xc57838(0x16a),'type':a40_0xc57838(0x152),'description':a40_0xc57838(0x167)};export const DIR_FLAG={'name':a40_0xc57838(0x16c),'type':'string','required':!![],'description':a40_0xc57838(0x15f)};export const CREATE_NAME_FLAG={'name':a40_0xc57838(0x170),'type':a40_0xc57838(0x15c),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0xc57838(0x162)}};export const TYPE_FLAG={'name':'type','type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x15e),'default':'write','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0xc57838(0x16b),'type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x164),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a40_0xc57838(0x152),'description':a40_0xc57838(0x171)};export const STRICT_FLAG={'name':a40_0xc57838(0x16d),'type':a40_0xc57838(0x152),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ const a40_0x6c8407=a40_0x37d1;(function(_0x8eddb7,_0x5eca0b){const _0x87ca8f=a40_0x37d1,_0xaa43c5=_0x8eddb7();while(!![]){try{const _0x818aa4=-parseInt(_0x87ca8f(0x7e))/0x1*(-parseInt(_0x87ca8f(0x77))/0x2)+parseInt(_0x87ca8f(0x90))/0x3+-parseInt(_0x87ca8f(0x92))/0x4*(-parseInt(_0x87ca8f(0x82))/0x5)+-parseInt(_0x87ca8f(0x8d))/0x6*(-parseInt(_0x87ca8f(0x88))/0x7)+-parseInt(_0x87ca8f(0x89))/0x8+-parseInt(_0x87ca8f(0x79))/0x9*(-parseInt(_0x87ca8f(0x85))/0xa)+-parseInt(_0x87ca8f(0x96))/0xb;if(_0x818aa4===_0x5eca0b)break;else _0xaa43c5['push'](_0xaa43c5['shift']());}catch(_0x397532){_0xaa43c5['push'](_0xaa43c5['shift']());}}}(a40_0x4506,0x3ee04));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x6c8407(0x94),'type':a40_0x6c8407(0x95),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a40_0x6c8407(0x7d),'type':a40_0x6c8407(0x95),'description':a40_0x6c8407(0x78),'enum':['all',a40_0x6c8407(0x7b),a40_0x6c8407(0x8b)]};export const LIST_SCOPE_FLAG={'name':a40_0x6c8407(0x7d),'type':'string','description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a40_0x6c8407(0x80),'personal','company']};export const LOCAL_FLAG={'name':a40_0x6c8407(0x8c),'type':a40_0x6c8407(0x81),'description':a40_0x6c8407(0x93)};export const DIR_FLAG={'name':a40_0x6c8407(0x7a),'type':a40_0x6c8407(0x95),'required':!![],'description':a40_0x6c8407(0x91)};function a40_0x4506(){const _0x49baa1=['2411520RvXzsg','Skill\x20template\x20type','company','local','1741350RnwZeZ','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','316737HgnEyk','Local\x20Skill\x20directory\x20containing\x20SKILL.md','292ryZUYg','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','code','string','10400654AUmFVe','92228DyMjxZ','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','198SCGJdQ','dir','personal','write','scope','11CIDySI','strict','all','boolean','18920inDOxx','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','target','147820OIuXCj','type','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','7gKPamu'];a40_0x4506=function(){return _0x49baa1;};return a40_0x4506();}function a40_0x37d1(_0x3c7cf7,_0x31fe04){_0x3c7cf7=_0x3c7cf7-0x77;const _0x4506f8=a40_0x4506();let _0x37d15a=_0x4506f8[_0x3c7cf7];return _0x37d15a;}export const CREATE_NAME_FLAG={'name':'name','type':a40_0x6c8407(0x95),'required':!![],'description':a40_0x6c8407(0x83),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x6c8407(0x87)}};export const TYPE_FLAG={'name':a40_0x6c8407(0x86),'type':a40_0x6c8407(0x95),'description':a40_0x6c8407(0x8a),'default':a40_0x6c8407(0x7c),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0x6c8407(0x84),'type':'string','description':a40_0x6c8407(0x8e),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':a40_0x6c8407(0x8f)};export const STRICT_FLAG={'name':a40_0x6c8407(0x7f),'type':a40_0x6c8407(0x81),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- (function(_0x11f14e,_0x447355){const _0x500ccf=a41_0x33fd,_0x1fc9f8=_0x11f14e();while(!![]){try{const _0x200bcc=parseInt(_0x500ccf(0xc3))/0x1+-parseInt(_0x500ccf(0xc1))/0x2*(-parseInt(_0x500ccf(0xc2))/0x3)+parseInt(_0x500ccf(0xc0))/0x4+-parseInt(_0x500ccf(0xbd))/0x5+parseInt(_0x500ccf(0xbf))/0x6+parseInt(_0x500ccf(0xbb))/0x7+parseInt(_0x500ccf(0xbe))/0x8*(-parseInt(_0x500ccf(0xbc))/0x9);if(_0x200bcc===_0x447355)break;else _0x1fc9f8['push'](_0x1fc9f8['shift']());}catch(_0x50a813){_0x1fc9f8['push'](_0x1fc9f8['shift']());}}}(a41_0x3d00,0xa1b90));function a41_0x3d00(){const _0x53a132=['1109322bLhijU','4150476mWDLPZ','15856bOVouE','78jRIrcN','1182669RZkSwb','4995816ZmNiCA','10953LcAytR','1161130rgIumd','15976SBmUcv'];a41_0x3d00=function(){return _0x53a132;};return a41_0x3d00();}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a41_0x33fd(_0x1dc13d,_0x4f5ed4){_0x1dc13d=_0x1dc13d-0xbb;const _0x3d005c=a41_0x3d00();let _0x33fd12=_0x3d005c[_0x1dc13d];return _0x33fd12;}import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
1
+ function a41_0x37f8(_0x57fa1c,_0x320201){_0x57fa1c=_0x57fa1c-0xaf;const _0x5c8854=a41_0x5c88();let _0x37f843=_0x5c8854[_0x57fa1c];return _0x37f843;}(function(_0x3ca7a3,_0x40a182){const _0x4a3760=a41_0x37f8,_0x2b6157=_0x3ca7a3();while(!![]){try{const _0x318e1f=-parseInt(_0x4a3760(0xb5))/0x1*(-parseInt(_0x4a3760(0xaf))/0x2)+parseInt(_0x4a3760(0xb1))/0x3*(-parseInt(_0x4a3760(0xb2))/0x4)+-parseInt(_0x4a3760(0xb0))/0x5*(parseInt(_0x4a3760(0xb9))/0x6)+parseInt(_0x4a3760(0xba))/0x7+-parseInt(_0x4a3760(0xb6))/0x8*(parseInt(_0x4a3760(0xb7))/0x9)+parseInt(_0x4a3760(0xb3))/0xa+-parseInt(_0x4a3760(0xb8))/0xb*(-parseInt(_0x4a3760(0xb4))/0xc);if(_0x318e1f===_0x40a182)break;else _0x2b6157['push'](_0x2b6157['shift']());}catch(_0x501928){_0x2b6157['push'](_0x2b6157['shift']());}}}(a41_0x5c88,0x824d3));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a41_0x5c88(){const _0x15872c=['55eljboQ','100599bfrOPc','4FHeNsN','2407180pSVVGx','172560PnkXZu','51147RVXmxs','472NIijXQ','101313sZPKQs','396iYXkpN','371214dNeRCH','5926830YXilwt','12HMOMgK'];a41_0x5c88=function(){return _0x15872c;};return a41_0x5c88();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
@@ -1 +1 @@
1
- function a42_0x3ddc(_0x27d34b,_0x3b553d){_0x27d34b=_0x27d34b-0x138;var _0xfce9a4=a42_0xfce9();var _0x3ddcd0=_0xfce9a4[_0x27d34b];return _0x3ddcd0;}function a42_0xfce9(){var _0x13a197=['4209210GAFFBU','33857923vICLfZ','length','SKILL.md','678TaSPPC','9722648Axtmxo','7714270FCPLLZ','isArray','some','13jsNQdu','ossPath','4MGJoFz','62762lDOlvD','9yfUoDR','string','files','81988VfKwit','object','path','12477970CMhIGb'];a42_0xfce9=function(){return _0x13a197;};return a42_0xfce9();}(function(_0x3c833e,_0xd51b09){var _0x1e594d=a42_0x3ddc,_0x332c48=_0x3c833e();while(!![]){try{var _0x54cfbc=parseInt(_0x1e594d(0x13e))/0x1*(-parseInt(_0x1e594d(0x145))/0x2)+parseInt(_0x1e594d(0x149))/0x3+-parseInt(_0x1e594d(0x140))/0x4*(-parseInt(_0x1e594d(0x13b))/0x5)+-parseInt(_0x1e594d(0x139))/0x6*(parseInt(_0x1e594d(0x141))/0x7)+parseInt(_0x1e594d(0x13a))/0x8+-parseInt(_0x1e594d(0x142))/0x9*(-parseInt(_0x1e594d(0x148))/0xa)+-parseInt(_0x1e594d(0x14a))/0xb;if(_0x54cfbc===_0xd51b09)break;else _0x332c48['push'](_0x332c48['shift']());}catch(_0x2bf6fd){_0x332c48['push'](_0x332c48['shift']());}}}(a42_0xfce9,0xbfa53));export function isPackageBackedManifest(_0x9afea0){var _0x41461b=a42_0x3ddc;return!!_0x9afea0&&typeof _0x9afea0==='object'&&!Array[_0x41461b(0x13c)](_0x9afea0)&&typeof _0x9afea0[_0x41461b(0x13f)]===_0x41461b(0x143)&&_0x9afea0['ossPath'][_0x41461b(0x14b)]>0x0&&Array[_0x41461b(0x13c)](_0x9afea0[_0x41461b(0x144)]);}export function isMultiFileManifest(_0xd84df){var _0x1b4b9b=a42_0x3ddc;return!!_0xd84df&&typeof _0xd84df===_0x1b4b9b(0x146)&&!Array[_0x1b4b9b(0x13c)](_0xd84df)&&Array[_0x1b4b9b(0x13c)](_0xd84df[_0x1b4b9b(0x144)])&&_0xd84df[_0x1b4b9b(0x144)][_0x1b4b9b(0x13d)](_0x390ba6=>_0x390ba6[_0x1b4b9b(0x147)]!==_0x1b4b9b(0x138));}
1
+ function a42_0x2546(_0x2b11f6,_0x160528){_0x2b11f6=_0x2b11f6-0x1c1;var _0x3f41da=a42_0x3f41();var _0x2546ef=_0x3f41da[_0x2b11f6];return _0x2546ef;}function a42_0x3f41(){var _0x289cd9=['1331049gXQBtj','some','object','12182560tLWxDF','3507003otdRrd','7CAAvkk','files','7156256mMBIzA','29468JLyNIV','4rLoypp','string','2550395HfldFF','isArray','201ymxsEW','4655652TGGwwy','SKILL.md'];a42_0x3f41=function(){return _0x289cd9;};return a42_0x3f41();}(function(_0x17a239,_0x889d02){var _0x1018f7=a42_0x2546,_0xb72406=_0x17a239();while(!![]){try{var _0x48d4ca=-parseInt(_0x1018f7(0x1c1))/0x1+-parseInt(_0x1018f7(0x1c9))/0x2*(parseInt(_0x1018f7(0x1ce))/0x3)+-parseInt(_0x1018f7(0x1ca))/0x4*(-parseInt(_0x1018f7(0x1cc))/0x5)+-parseInt(_0x1018f7(0x1cf))/0x6*(-parseInt(_0x1018f7(0x1c6))/0x7)+parseInt(_0x1018f7(0x1c8))/0x8+-parseInt(_0x1018f7(0x1c5))/0x9+parseInt(_0x1018f7(0x1c4))/0xa;if(_0x48d4ca===_0x889d02)break;else _0xb72406['push'](_0xb72406['shift']());}catch(_0x4de4db){_0xb72406['push'](_0xb72406['shift']());}}}(a42_0x3f41,0xa8ae3));export function isPackageBackedManifest(_0x5b5899){var _0x18a486=a42_0x2546;return!!_0x5b5899&&typeof _0x5b5899===_0x18a486(0x1c3)&&!Array[_0x18a486(0x1cd)](_0x5b5899)&&typeof _0x5b5899['ossPath']===_0x18a486(0x1cb)&&_0x5b5899['ossPath']['length']>0x0&&Array[_0x18a486(0x1cd)](_0x5b5899[_0x18a486(0x1c7)]);}export function isMultiFileManifest(_0x4241a0){var _0x5b3bef=a42_0x2546;return!!_0x4241a0&&typeof _0x4241a0===_0x5b3bef(0x1c3)&&!Array[_0x5b3bef(0x1cd)](_0x4241a0)&&Array['isArray'](_0x4241a0[_0x5b3bef(0x1c7)])&&_0x4241a0[_0x5b3bef(0x1c7)][_0x5b3bef(0x1c2)](_0x5529a9=>_0x5529a9['path']!==_0x5b3bef(0x1d0));}
@@ -1 +1 @@
1
- function a43_0x386a(){const _0x3cd8cf=['18eIHuUd','Unsupported\x20Skill\x20list\x20scope:\x20','1013925uQMmam','273otQLRC','trim','company','30zPaazc','593QcgLHb','1228785Cfpatu','4bEuiWr','5806BUQhCN','all','43408BJarbq','264bnHPAF','validation','personal','1965093RECDDt','1678524KbcYkZ','8088540IguLvm'];a43_0x386a=function(){return _0x3cd8cf;};return a43_0x386a();}(function(_0x38bcff,_0x5e8fa0){const _0x1960a1=a43_0x5ea3,_0x2973f2=_0x38bcff();while(!![]){try{const _0x2305a1=-parseInt(_0x1960a1(0xcd))/0x1*(-parseInt(_0x1960a1(0xd0))/0x2)+parseInt(_0x1960a1(0xce))/0x3*(-parseInt(_0x1960a1(0xcf))/0x4)+-parseInt(_0x1960a1(0xcc))/0x5*(-parseInt(_0x1960a1(0xc4))/0x6)+parseInt(_0x1960a1(0xc9))/0x7*(-parseInt(_0x1960a1(0xd2))/0x8)+-parseInt(_0x1960a1(0xc6))/0x9*(-parseInt(_0x1960a1(0xc5))/0xa)+-parseInt(_0x1960a1(0xc8))/0xb+parseInt(_0x1960a1(0xd3))/0xc*(-parseInt(_0x1960a1(0xc3))/0xd);if(_0x2305a1===_0x5e8fa0)break;else _0x2973f2['push'](_0x2973f2['shift']());}catch(_0x29370a){_0x2973f2['push'](_0x2973f2['shift']());}}}(a43_0x386a,0xeef61));function a43_0x5ea3(_0x3c6b86,_0x2f9a04){_0x3c6b86=_0x3c6b86-0xc1;const _0x386aa5=a43_0x386a();let _0x5ea32d=_0x386aa5[_0x3c6b86];return _0x5ea32d;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x27519a){const _0x5950f1=a43_0x5ea3,_0x42997b=_0x27519a['trim']();if(!_0x42997b||_0x42997b==='all')return['personal',_0x5950f1(0xcb)];if(_0x42997b==='personal'||_0x42997b===_0x5950f1(0xcb))return[_0x42997b];throw CliErrors[_0x5950f1(0xc1)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x27519a);}export function normalizeListScope(_0x4a301e){const _0x3781ae=a43_0x5ea3,_0x2e0b63=_0x4a301e[_0x3781ae(0xca)]();if(!_0x2e0b63)return _0x3781ae(0xd1);if(_0x2e0b63==='personal'||_0x2e0b63===_0x3781ae(0xcb)||_0x2e0b63==='all')return _0x2e0b63;throw CliErrors[_0x3781ae(0xc1)](_0x3781ae(0xc7)+_0x4a301e);}export function shouldListScope(_0x5a23b1,_0x55b6f6){const _0x30d079=a43_0x5ea3;if(_0x5a23b1===_0x30d079(0xd1))return!![];return _0x5a23b1===_0x55b6f6;}export function listScopeToRuntimeScopes(_0x34e2f3){const _0x5ddb0b=a43_0x5ea3;if(_0x34e2f3==='all')return[_0x5ddb0b(0xc2),_0x5ddb0b(0xcb)];return[_0x34e2f3==='company'?_0x5ddb0b(0xcb):_0x34e2f3];}export function listScopeToRemoteScope(_0x554bdf){return _0x554bdf;}
1
+ (function(_0x52fd14,_0x386629){const _0x3fd11e=a43_0x13c0,_0x66c3b6=_0x52fd14();while(!![]){try{const _0x34464d=-parseInt(_0x3fd11e(0x1bd))/0x1*(-parseInt(_0x3fd11e(0x1b6))/0x2)+-parseInt(_0x3fd11e(0x1b7))/0x3+parseInt(_0x3fd11e(0x1c2))/0x4+-parseInt(_0x3fd11e(0x1bb))/0x5*(-parseInt(_0x3fd11e(0x1ba))/0x6)+parseInt(_0x3fd11e(0x1c4))/0x7*(-parseInt(_0x3fd11e(0x1bc))/0x8)+parseInt(_0x3fd11e(0x1b9))/0x9*(-parseInt(_0x3fd11e(0x1c0))/0xa)+-parseInt(_0x3fd11e(0x1c5))/0xb;if(_0x34464d===_0x386629)break;else _0x66c3b6['push'](_0x66c3b6['shift']());}catch(_0x5e1b59){_0x66c3b6['push'](_0x66c3b6['shift']());}}}(a43_0x4825,0x5a629));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x181475){const _0x51a4bc=a43_0x13c0,_0x1e9d3d=_0x181475[_0x51a4bc(0x1b4)]();if(!_0x1e9d3d||_0x1e9d3d==='all')return[_0x51a4bc(0x1c1),_0x51a4bc(0x1be)];if(_0x1e9d3d===_0x51a4bc(0x1c1)||_0x1e9d3d===_0x51a4bc(0x1be))return[_0x1e9d3d];throw CliErrors[_0x51a4bc(0x1c3)](_0x51a4bc(0x1bf)+_0x181475);}export function normalizeListScope(_0x2a615e){const _0x55e1bd=a43_0x13c0,_0x3d6d05=_0x2a615e[_0x55e1bd(0x1b4)]();if(!_0x3d6d05)return _0x55e1bd(0x1b8);if(_0x3d6d05==='personal'||_0x3d6d05===_0x55e1bd(0x1be)||_0x3d6d05===_0x55e1bd(0x1b8))return _0x3d6d05;throw CliErrors['validation'](_0x55e1bd(0x1b5)+_0x2a615e);}export function shouldListScope(_0x12274f,_0x57ca02){const _0x11ac83=a43_0x13c0;if(_0x12274f===_0x11ac83(0x1b8))return!![];return _0x12274f===_0x57ca02;}function a43_0x4825(){const _0x3a014d=['Unsupported\x20Skill\x20list\x20scope:\x20','1414mJnHta','1239444zEEJFu','all','1548ZaNzCm','78348ndDcHG','145tAZbmv','1191968zRlNsk','877XwvYzN','company','Unsupported\x20Skill\x20sync\x20scope:\x20','4390fVBDIe','personal','2681920fqCrkV','validation','21yKnxBL','3996740pXHxLE','trim'];a43_0x4825=function(){return _0x3a014d;};return a43_0x4825();}function a43_0x13c0(_0x522b08,_0x4775fe){_0x522b08=_0x522b08-0x1b4;const _0x48257c=a43_0x4825();let _0x13c00c=_0x48257c[_0x522b08];return _0x13c00c;}export function listScopeToRuntimeScopes(_0x168bcc){const _0x3a07eb=a43_0x13c0;if(_0x168bcc===_0x3a07eb(0x1b8))return[_0x3a07eb(0x1c1),_0x3a07eb(0x1be)];return[_0x168bcc===_0x3a07eb(0x1be)?_0x3a07eb(0x1be):_0x168bcc];}export function listScopeToRemoteScope(_0x3d6219){return _0x3d6219;}
@@ -1 +1 @@
1
- (function(_0x45a83e,_0x170430){var _0x14beba=a44_0x18fb,_0x1cf0be=_0x45a83e();while(!![]){try{var _0x127230=-parseInt(_0x14beba(0x143))/0x1+parseInt(_0x14beba(0x14a))/0x2*(parseInt(_0x14beba(0x142))/0x3)+-parseInt(_0x14beba(0x148))/0x4+-parseInt(_0x14beba(0x14c))/0x5*(-parseInt(_0x14beba(0x146))/0x6)+-parseInt(_0x14beba(0x145))/0x7*(parseInt(_0x14beba(0x156))/0x8)+-parseInt(_0x14beba(0x14e))/0x9+parseInt(_0x14beba(0x150))/0xa*(parseInt(_0x14beba(0x153))/0xb);if(_0x127230===_0x170430)break;else _0x1cf0be['push'](_0x1cf0be['shift']());}catch(_0x11aaa0){_0x1cf0be['push'](_0x1cf0be['shift']());}}}(a44_0x2739,0x47ae1));function a44_0x18fb(_0x14f550,_0x590159){_0x14f550=_0x14f550-0x142;var _0x27392b=a44_0x2739();var _0x18fbbd=_0x27392b[_0x14f550];return _0x18fbbd;}export function summarizeRuntimeSkill(_0x103ae0){var _0x4ba198=a44_0x18fb;return{'id':_0x103ae0['id'],'skillCode':_0x103ae0['skillCode'],'skillName':_0x103ae0[_0x4ba198(0x154)],'scope':_0x103ae0[_0x4ba198(0x151)],'version':_0x103ae0['version'],'readonly':_0x103ae0[_0x4ba198(0x15b)]};}function a44_0x2739(){var _0x1d3b82=['metadataPath','1669680EqCJPR','tags','3412qAzPoN','cacheDir','5zhSAso','treeHash','4871547ZfqrYc','linkedPaths','30spMqaE','scope','dir','5964596RQwnMT','skillName','skillMdPath','2648tperCr','status','pulledAt','version','skillCode','readonly','186jFlNKX','210837GMdiIF','contentHash','9401tbhXkr','1051164hunNPf'];a44_0x2739=function(){return _0x1d3b82;};return a44_0x2739();}export function summarizeLocalRuntimeSkill(_0x570701){var _0x2d5122=a44_0x18fb;return{'id':_0x570701['id'],'skillCode':_0x570701[_0x2d5122(0x15a)],'skillName':_0x570701[_0x2d5122(0x154)],'scope':_0x570701[_0x2d5122(0x151)],'appCode':_0x570701['appCode'],'version':_0x570701[_0x2d5122(0x159)],'status':_0x570701[_0x2d5122(0x157)],'readonly':_0x570701['readonly'],'tags':_0x570701[_0x2d5122(0x149)],'dir':_0x570701[_0x2d5122(0x152)],'cacheDir':_0x570701[_0x2d5122(0x14b)],'skillMdPath':_0x570701[_0x2d5122(0x155)],'metadataPath':_0x570701[_0x2d5122(0x147)],'linkedPaths':_0x570701[_0x2d5122(0x14f)],'contentHash':_0x570701[_0x2d5122(0x144)],'treeHash':_0x570701[_0x2d5122(0x14d)],'pulledAt':_0x570701[_0x2d5122(0x158)]};}
1
+ (function(_0xb80a81,_0x37d6b5){var _0x5c4c8e=a44_0x34dc,_0x331e01=_0xb80a81();while(!![]){try{var _0x8f998c=-parseInt(_0x5c4c8e(0xc3))/0x1+parseInt(_0x5c4c8e(0xc4))/0x2*(parseInt(_0x5c4c8e(0xc5))/0x3)+parseInt(_0x5c4c8e(0xc9))/0x4+-parseInt(_0x5c4c8e(0xd3))/0x5*(-parseInt(_0x5c4c8e(0xcb))/0x6)+parseInt(_0x5c4c8e(0xca))/0x7*(parseInt(_0x5c4c8e(0xd5))/0x8)+-parseInt(_0x5c4c8e(0xc8))/0x9+-parseInt(_0x5c4c8e(0xc2))/0xa;if(_0x8f998c===_0x37d6b5)break;else _0x331e01['push'](_0x331e01['shift']());}catch(_0xc696a0){_0x331e01['push'](_0x331e01['shift']());}}}(a44_0x2ac2,0x1c860));export function summarizeRuntimeSkill(_0x4e67e2){var _0x303691=a44_0x34dc;return{'id':_0x4e67e2['id'],'skillCode':_0x4e67e2[_0x303691(0xc6)],'skillName':_0x4e67e2['skillName'],'scope':_0x4e67e2[_0x303691(0xcd)],'version':_0x4e67e2['version'],'readonly':_0x4e67e2['readonly']};}function a44_0x2ac2(){var _0x5b11dd=['192835QxxitQ','cacheDir','328VPMzvw','tags','contentHash','2387110DyVSdz','139306dfQTUA','44624lPeOlJ','9Ziqvqu','skillCode','pulledAt','569187rluwmk','617972RiRprM','24556TByxVf','30wKFQic','metadataPath','scope','dir','treeHash','version','appCode','linkedPaths'];a44_0x2ac2=function(){return _0x5b11dd;};return a44_0x2ac2();}function a44_0x34dc(_0x13d3df,_0x59443b){_0x13d3df=_0x13d3df-0xc0;var _0x2ac2f4=a44_0x2ac2();var _0x34dc0a=_0x2ac2f4[_0x13d3df];return _0x34dc0a;}export function summarizeLocalRuntimeSkill(_0x3ca00f){var _0x3d6435=a44_0x34dc;return{'id':_0x3ca00f['id'],'skillCode':_0x3ca00f[_0x3d6435(0xc6)],'skillName':_0x3ca00f['skillName'],'scope':_0x3ca00f[_0x3d6435(0xcd)],'appCode':_0x3ca00f[_0x3d6435(0xd1)],'version':_0x3ca00f[_0x3d6435(0xd0)],'status':_0x3ca00f['status'],'readonly':_0x3ca00f['readonly'],'tags':_0x3ca00f[_0x3d6435(0xc0)],'dir':_0x3ca00f[_0x3d6435(0xce)],'cacheDir':_0x3ca00f[_0x3d6435(0xd4)],'skillMdPath':_0x3ca00f['skillMdPath'],'metadataPath':_0x3ca00f[_0x3d6435(0xcc)],'linkedPaths':_0x3ca00f[_0x3d6435(0xd2)],'contentHash':_0x3ca00f[_0x3d6435(0xc1)],'treeHash':_0x3ca00f[_0x3d6435(0xcf)],'pulledAt':_0x3ca00f[_0x3d6435(0xc7)]};}
@@ -1 +1 @@
1
- const a45_0x30908a=a45_0x4521;(function(_0x13654d,_0x3fc856){const _0x2f2f3b=a45_0x4521,_0xc3927a=_0x13654d();while(!![]){try{const _0x401fb1=parseInt(_0x2f2f3b(0x110))/0x1*(parseInt(_0x2f2f3b(0xf6))/0x2)+-parseInt(_0x2f2f3b(0x112))/0x3+-parseInt(_0x2f2f3b(0x113))/0x4+-parseInt(_0x2f2f3b(0xf7))/0x5+-parseInt(_0x2f2f3b(0x11c))/0x6*(parseInt(_0x2f2f3b(0xfa))/0x7)+parseInt(_0x2f2f3b(0x11d))/0x8*(-parseInt(_0x2f2f3b(0x10b))/0x9)+parseInt(_0x2f2f3b(0x120))/0xa;if(_0x401fb1===_0x3fc856)break;else _0xc3927a['push'](_0xc3927a['shift']());}catch(_0x2981a7){_0xc3927a['push'](_0xc3927a['shift']());}}}(a45_0x12cc,0x7c723));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x30908a(0xf9),'read','trainer'];export const DEFAULT_SKILL_TARGET=a45_0x30908a(0x119);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a45_0x12cc(){const _0x24ee69=['##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','2984yurNGm','1854195BFqSyK','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','write','91IbQLjO','\x0a\x20\x20created:\x20\x22','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','read','timestamp','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','toISOString','---\x0aname:\x20','references/output-contract.md','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','includes','test','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','2518353HVRYQU','skillName','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','26deyWyG','SKILL.md','612858YEoUqF','2679672lcxLAI','trainer','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Use\x20one\x20of:\x20','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','references/runtime-contract.md','.agents/skills','validation','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','273414LICwyT','24nSJVRy','trim','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','31478300GxgwOZ','Invalid\x20Skill\x20name:\x20'];a45_0x12cc=function(){return _0x24ee69;};return a45_0x12cc();}export const RUNTIME_CONTRACT_FILE=a45_0x30908a(0x118);export const OUTPUT_CONTRACT_FILE=a45_0x30908a(0x102);export function validateSkillName(_0x33e826){const _0x41546f=a45_0x30908a,_0x5bec0e=_0x33e826['trim']();if(!SKILL_NAME_PATTERN[_0x41546f(0x105)](_0x5bec0e))throw CliErrors['validation'](_0x41546f(0x121)+_0x33e826+_0x41546f(0x11f),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x5bec0e;}export function normalizeSkillTemplateType(_0x5ad90a){const _0x46a7b7=a45_0x30908a,_0x43b3d7=(_0x5ad90a||_0x46a7b7(0xf9))[_0x46a7b7(0x11e)]()||_0x46a7b7(0xf9);if(SKILL_TYPES[_0x46a7b7(0x104)](_0x43b3d7))return _0x43b3d7;throw CliErrors[_0x46a7b7(0x11a)](_0x46a7b7(0x108)+_0x5ad90a,_0x46a7b7(0x116)+SKILL_TYPES['join'](',\x20')+'.');}function a45_0x4521(_0x409984,_0x5a5e77){_0x409984=_0x409984-0xf5;const _0x12cc88=a45_0x12cc();let _0x4521b7=_0x12cc88[_0x409984];return _0x4521b7;}export function renderSkillTemplate(_0x538897){const _0x6af3aa=a45_0x30908a,_0xf77e90=validateSkillName(_0x538897[_0x6af3aa(0x10c)]),_0x30db20=normalizeSkillTemplateType(_0x538897['type']),_0xa97a62=_0x538897[_0x6af3aa(0xfe)]??new Date()[_0x6af3aa(0x100)]();return{'skillName':_0xf77e90,'type':_0x30db20,'files':[{'path':_0x6af3aa(0x111),'content':renderSkillMd(_0xf77e90,_0x30db20,_0xa97a62)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xf77e90,_0x30db20)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xf77e90,_0x30db20)}]};}function renderSkillMd(_0x1b46b0,_0x5831b1,_0x2c0bbf){const _0x48e0be=a45_0x30908a,_0x34340b=typeWorkflow(_0x5831b1);return _0x48e0be(0x101)+_0x1b46b0+_0x48e0be(0x10d)+_0x5831b1+_0x48e0be(0xfb)+_0x2c0bbf+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x1b46b0+_0x48e0be(0x109)+_0x34340b+'\x0a\x0a'+businessStateSection(_0x5831b1)+_0x48e0be(0x11b);}function renderRuntimeContract(_0x219b7f,_0x48a54d){const _0x28285a=a45_0x30908a,_0x3e5ccf=_0x48a54d===_0x28285a(0xf9)?_0x28285a(0xf5):'';return _0x28285a(0x10a)+_0x219b7f+_0x28285a(0xff)+_0x48a54d+'\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a'+_0x3e5ccf+_0x28285a(0x10f);}function renderOutputContract(_0x5e5313,_0x17d96c){const _0x15e1c5=a45_0x30908a,_0x4f58af=_0x17d96c===_0x15e1c5(0xf9)?_0x15e1c5(0x115):_0x17d96c+_0x15e1c5(0xf8);return'#\x20Output\x20Contract\x0a\x0a'+_0x5e5313+_0x15e1c5(0x117)+_0x4f58af+_0x15e1c5(0x10e);}function typeWorkflow(_0x1175d0){const _0x4f4fa7=a45_0x30908a;if(_0x1175d0===_0x4f4fa7(0xfd))return _0x4f4fa7(0xfc);if(_0x1175d0===_0x4f4fa7(0x114))return _0x4f4fa7(0x107);return _0x4f4fa7(0x103);}function businessStateSection(_0x5d561b){const _0x202103=a45_0x30908a;if(_0x5d561b!==_0x202103(0xf9))return'';return _0x202103(0x106);}
1
+ const a45_0x496c39=a45_0x4f99;function a45_0x599d(){const _0x532ea7=['skillName','5HUiexv','write','1778226jfEuod','1775500EtSBNx','552JsVQlh','type','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','\x0a\x20\x20created:\x20\x22','validation','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','Unsupported\x20Skill\x20type:\x20','read','trainer','includes','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','63244ZVDAar','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','#\x20Output\x20Contract\x0a\x0a','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','60218IVlYLc','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','1752srAtxp','38093RskwNi','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','toISOString','timestamp','21ZHyuwo','join','SKILL.md','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','trim','Invalid\x20Skill\x20name:\x20','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','.agents/skills','3082205fSuUwT','33IfPxgh','25731DaDImP'];a45_0x599d=function(){return _0x532ea7;};return a45_0x599d();}function a45_0x4f99(_0x4db795,_0x28ffd0){_0x4db795=_0x4db795-0x133;const _0x599d6f=a45_0x599d();let _0x4f99e7=_0x599d6f[_0x4db795];return _0x4f99e7;}(function(_0x40c56d,_0x44d546){const _0x491a49=a45_0x4f99,_0x4d3299=_0x40c56d();while(!![]){try{const _0x1007ad=-parseInt(_0x491a49(0x139))/0x1*(-parseInt(_0x491a49(0x15a))/0x2)+-parseInt(_0x491a49(0x143))/0x3*(-parseInt(_0x491a49(0x155))/0x4)+-parseInt(_0x491a49(0x146))/0x5*(-parseInt(_0x491a49(0x148))/0x6)+-parseInt(_0x491a49(0x142))/0x7+parseInt(_0x491a49(0x133))/0x8*(-parseInt(_0x491a49(0x144))/0x9)+parseInt(_0x491a49(0x149))/0xa+parseInt(_0x491a49(0x134))/0xb*(parseInt(_0x491a49(0x14a))/0xc);if(_0x1007ad===_0x44d546)break;else _0x4d3299['push'](_0x4d3299['shift']());}catch(_0xb635cc){_0x4d3299['push'](_0x4d3299['shift']());}}}(a45_0x599d,0x5b101));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x496c39(0x147),a45_0x496c39(0x151),a45_0x496c39(0x152)];export const DEFAULT_SKILL_TARGET=a45_0x496c39(0x141);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x35c110){const _0x1ecced=a45_0x496c39,_0x36eee6=_0x35c110[_0x1ecced(0x13d)]();if(!SKILL_NAME_PATTERN['test'](_0x36eee6))throw CliErrors[_0x1ecced(0x14e)](_0x1ecced(0x13e)+_0x35c110+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x36eee6;}export function normalizeSkillTemplateType(_0x5d2d2e){const _0x13d9e3=a45_0x496c39,_0x1df74e=(_0x5d2d2e||_0x13d9e3(0x147))['trim']()||_0x13d9e3(0x147);if(SKILL_TYPES[_0x13d9e3(0x153)](_0x1df74e))return _0x1df74e;throw CliErrors[_0x13d9e3(0x14e)](_0x13d9e3(0x150)+_0x5d2d2e,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x13d9e3(0x13a)](',\x20')+'.');}export function renderSkillTemplate(_0x16659d){const _0x493e80=a45_0x496c39,_0x553371=validateSkillName(_0x16659d[_0x493e80(0x145)]),_0x35c994=normalizeSkillTemplateType(_0x16659d[_0x493e80(0x14b)]),_0x4305b5=_0x16659d[_0x493e80(0x138)]??new Date()[_0x493e80(0x137)]();return{'skillName':_0x553371,'type':_0x35c994,'files':[{'path':_0x493e80(0x13b),'content':renderSkillMd(_0x553371,_0x35c994,_0x4305b5)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x553371,_0x35c994)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x553371,_0x35c994)}]};}function renderSkillMd(_0x360617,_0x4b4dfb,_0x441a5c){const _0x5512dc=a45_0x496c39,_0x213498=typeWorkflow(_0x4b4dfb);return'---\x0aname:\x20'+_0x360617+_0x5512dc(0x159)+_0x4b4dfb+_0x5512dc(0x14d)+_0x441a5c+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x360617+_0x5512dc(0x157)+_0x213498+'\x0a\x0a'+businessStateSection(_0x4b4dfb)+_0x5512dc(0x135);}function renderRuntimeContract(_0x58e4f2,_0x45bedf){const _0x340780=a45_0x496c39,_0x19dc4a=_0x45bedf===_0x340780(0x147)?_0x340780(0x15b):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x58e4f2+_0x340780(0x136)+_0x45bedf+_0x340780(0x15c)+_0x19dc4a+_0x340780(0x14c);}function renderOutputContract(_0x59f072,_0x82b076){const _0x581e26=a45_0x496c39,_0x36714c=_0x82b076===_0x581e26(0x147)?_0x581e26(0x13c):_0x82b076+_0x581e26(0x156);return _0x581e26(0x158)+_0x59f072+_0x581e26(0x140)+_0x36714c+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x5e428f){const _0x1aa78c=a45_0x496c39;if(_0x5e428f===_0x1aa78c(0x151))return _0x1aa78c(0x15d);if(_0x5e428f==='trainer')return _0x1aa78c(0x13f);return _0x1aa78c(0x154);}function businessStateSection(_0x1fb485){const _0x1c7609=a45_0x496c39;if(_0x1fb485!==_0x1c7609(0x147))return'';return _0x1c7609(0x14f);}
@@ -1 +1 @@
1
- const a46_0x50f061=a46_0x5055;function a46_0x57ce(){const _0x590bda=['endsWith','type','metadata','hasFrontmatter','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','20HPQelX','1160298pVNlqf','207176xPXiQe','message','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Frontmatter\x20description\x20is\x20empty.','toLowerCase','suggestion','137982jBPdfs','utf8','Skill\x20directory\x20not\x20found:\x20','push','frontmatter-required','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','structure-complete','1354266iafyWZ','split','641072xdnVxa','internal-skill','file','Missing\x20SKILL.md.','32fMagQs','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','filter','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','read','description','write','level','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','has','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','content','length','toUpperCase','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','isFile','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','trainer','isSymbolicLink','false','error','join','Skill\x20validation\x20failed:\x0a','Frontmatter\x20name\x20is\x20missing.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','isDirectory','5FjBaoQ','11177595BLUMun','validation','584836vXKhxn','trim','test','path','match','ruleId','map','errors','section','name','14htmmeo','Add\x20frontmatter\x20with\x20name\x20and\x20description.','SKILL.md','startsWith','SKILL.md\x20must\x20start\x20with\x20frontmatter.'];a46_0x57ce=function(){return _0x590bda;};return a46_0x57ce();}function a46_0x5055(_0x58df6f,_0xaee02d){_0x58df6f=_0x58df6f-0x138;const _0x57ce04=a46_0x57ce();let _0x5055cf=_0x57ce04[_0x58df6f];return _0x5055cf;}(function(_0x13447f,_0x4b44c6){const _0x3ace28=a46_0x5055,_0x1150cf=_0x13447f();while(!![]){try{const _0x58cd4e=parseInt(_0x3ace28(0x176))/0x1+parseInt(_0x3ace28(0x160))/0x2+-parseInt(_0x3ace28(0x17c))/0x3*(-parseInt(_0x3ace28(0x143))/0x4)+parseInt(_0x3ace28(0x15d))/0x5*(parseInt(_0x3ace28(0x175))/0x6)+parseInt(_0x3ace28(0x16a))/0x7*(-parseInt(_0x3ace28(0x13f))/0x8)+parseInt(_0x3ace28(0x13d))/0x9*(parseInt(_0x3ace28(0x174))/0xa)+-parseInt(_0x3ace28(0x15e))/0xb;if(_0x58cd4e===_0x4b44c6)break;else _0x1150cf['push'](_0x1150cf['shift']());}catch(_0x248fe7){_0x1150cf['push'](_0x1150cf['shift']());}}}(a46_0x57ce,0x2d478));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';const SKILL_FILE=a46_0x50f061(0x16c),SUPPORTED_SKILL_TYPES=new Set([a46_0x50f061(0x149),a46_0x50f061(0x147),a46_0x50f061(0x154)]);export function validateSkillDirectory(_0x1b7590,_0x4a1718={}){const _0x5c377f=a46_0x50f061,_0x5cca52=resolveSkillDirectoryRoot(_0x1b7590),_0x2facb9=[],_0x54dccf=loadRequiredSkillFile(_0x5cca52,_0x2facb9),_0x242492=_0x54dccf?parseFrontmatter(_0x54dccf[_0x5c377f(0x14e)]):{'hasFrontmatter':![]};_0x54dccf&&validateFrontmatter(_0x54dccf[_0x5c377f(0x163)],_0x242492,_0x2facb9);const _0x246d00=_0x2facb9[_0x5c377f(0x145)](_0x4ccdfa=>_0x4ccdfa[_0x5c377f(0x14a)]===_0x5c377f(0x157));return{'ok':_0x246d00[_0x5c377f(0x14f)]===0x0,'dir':_0x5cca52,'type':_0x242492[_0x5c377f(0x170)],'errors':_0x246d00,'warnings':[]};}function resolveSkillDirectoryRoot(_0x315107){const _0x109525=a46_0x50f061,_0x5081fe=resolve(_0x315107);if(!existsSync(_0x5081fe))throw CliErrors[_0x109525(0x15f)](_0x109525(0x138)+_0x315107);const _0x2632c7=lstatSync(_0x5081fe);if(_0x2632c7[_0x109525(0x15c)]())return _0x5081fe;if(_0x2632c7[_0x109525(0x155)]()){const _0x914728=realpathSync(_0x5081fe);if(lstatSync(_0x914728)[_0x109525(0x15c)]())return _0x914728;}throw CliErrors[_0x109525(0x15f)](_0x109525(0x138)+_0x315107);}export function throwIfSkillValidationFailed(_0x55ba22,_0x45c0b4=![]){const _0x5d8fac=a46_0x50f061;if(_0x55ba22['ok'])return;const _0x479dab=_0x55ba22[_0x5d8fac(0x167)][_0x5d8fac(0x166)](_0x3ac894=>{const _0x3c402e=_0x5d8fac,_0xcb8501=_0x3ac894[_0x3c402e(0x168)]?'#'+_0x3ac894['section']:'';return _0x3ac894[_0x3c402e(0x14a)][_0x3c402e(0x150)]()+'\x20'+_0x3ac894[_0x3c402e(0x165)]+'\x20'+_0x3ac894[_0x3c402e(0x141)]+_0xcb8501+':\x20'+_0x3ac894[_0x3c402e(0x177)]+'\x20Fix:\x20'+_0x3ac894[_0x3c402e(0x17b)];});throw CliErrors['validation'](_0x5d8fac(0x159)+_0x479dab[_0x5d8fac(0x158)]('\x0a'),_0x5d8fac(0x144));}function loadRequiredSkillFile(_0x1f7f91,_0x1a48e2){const _0x170c22=a46_0x50f061,_0x3736bc=resolve(_0x1f7f91,SKILL_FILE);if(!existsSync(_0x3736bc))return _0x1a48e2['push'](issue(_0x170c22(0x157),_0x170c22(0x13c),SKILL_FILE,_0x170c22(0x142),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x47f4ce=lstatSync(_0x3736bc);if(_0x47f4ce[_0x170c22(0x155)]())return _0x1a48e2['push'](issue(_0x170c22(0x157),'structure-complete',SKILL_FILE,_0x170c22(0x14b),_0x170c22(0x178))),undefined;if(!_0x47f4ce[_0x170c22(0x152)]())return _0x1a48e2[_0x170c22(0x139)](issue('error',_0x170c22(0x13c),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x170c22(0x15b))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3736bc,_0x170c22(0x17d))};}function validateFrontmatter(_0x52a2de,_0x11f458,_0xc3ff62){const _0x1def76=a46_0x50f061;if(!_0x11f458[_0x1def76(0x172)]){_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x16e),_0x1def76(0x16b)));return;}!_0x11f458['name']?.[_0x1def76(0x161)]()&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x15a),_0x1def76(0x13b))),!_0x11f458[_0x1def76(0x148)]?.[_0x1def76(0x161)]()&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),'description-required',_0x52a2de,_0x1def76(0x179),_0x1def76(0x151))),_0x11f458['internal']===!![]&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x140),_0x52a2de,_0x1def76(0x146),_0x1def76(0x14d))),_0x11f458['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x1def76(0x14c)](_0x11f458[_0x1def76(0x170)])&&_0xc3ff62['push'](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x173),_0x1def76(0x153)));}function parseFrontmatter(_0x3fa90f){const _0x41d70d=a46_0x50f061,_0x48f2ed=_0x3fa90f[_0x41d70d(0x164)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x48f2ed)return{'hasFrontmatter':![]};const _0x37a880=_0x48f2ed[0x1]??'',_0x4c267a={'hasFrontmatter':!![]};let _0x438c99=![];for(const _0x25c40b of _0x37a880[_0x41d70d(0x13e)](/\r?\n/)){if(/^\s*$/[_0x41d70d(0x162)](_0x25c40b))continue;const _0x3eea9c=_0x25c40b['match'](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x3eea9c){const _0x3bae8d=_0x3eea9c[0x1],_0x52d0ab=cleanScalar(_0x3eea9c[0x2]??'');_0x438c99=_0x3bae8d===_0x41d70d(0x171);if(_0x3bae8d===_0x41d70d(0x169))_0x4c267a['name']=_0x52d0ab;if(_0x3bae8d===_0x41d70d(0x148))_0x4c267a[_0x41d70d(0x148)]=_0x52d0ab;continue;}const _0x28028e=_0x25c40b[_0x41d70d(0x164)](/^\s+type:\s*(.*)$/);if(_0x438c99&&_0x28028e){_0x4c267a['type']=cleanScalar(_0x28028e[0x1]??'');continue;}const _0x59aab3=_0x25c40b[_0x41d70d(0x164)](/^\s+internal:\s*(.*)$/);_0x438c99&&_0x59aab3&&(_0x4c267a['internal']=cleanBoolean(_0x59aab3[0x1]??''));}return _0x4c267a;}function cleanScalar(_0x327144){const _0x36b526=a46_0x50f061,_0x1a6bc1=_0x327144[_0x36b526(0x161)]();if(_0x1a6bc1[_0x36b526(0x16d)]('\x22')&&_0x1a6bc1[_0x36b526(0x16f)]('\x22')||_0x1a6bc1[_0x36b526(0x16d)]('\x27')&&_0x1a6bc1[_0x36b526(0x16f)]('\x27'))return _0x1a6bc1['slice'](0x1,-0x1);return _0x1a6bc1;}function cleanBoolean(_0x471abc){const _0x557d16=a46_0x50f061,_0x2c1606=cleanScalar(_0x471abc)[_0x557d16(0x17a)]();if(_0x2c1606==='true')return!![];if(_0x2c1606===_0x557d16(0x156))return![];return undefined;}function issue(_0x28fb73,_0x3ac501,_0x1a0b92,_0x27c9e7,_0x6ca8d,_0x34dfc1){return{'level':_0x28fb73,'ruleId':_0x3ac501,'file':_0x1a0b92,'section':_0x34dfc1,'message':_0x27c9e7,'suggestion':_0x6ca8d};}
1
+ const a46_0x876c17=a46_0x5db8;(function(_0x56077a,_0x422e86){const _0x3f199f=a46_0x5db8,_0x17c87a=_0x56077a();while(!![]){try{const _0x1eec04=parseInt(_0x3f199f(0x1d8))/0x1*(parseInt(_0x3f199f(0x1d5))/0x2)+-parseInt(_0x3f199f(0x203))/0x3+-parseInt(_0x3f199f(0x208))/0x4*(-parseInt(_0x3f199f(0x206))/0x5)+parseInt(_0x3f199f(0x204))/0x6*(parseInt(_0x3f199f(0x1e1))/0x7)+parseInt(_0x3f199f(0x1e0))/0x8+parseInt(_0x3f199f(0x1ef))/0x9*(parseInt(_0x3f199f(0x201))/0xa)+-parseInt(_0x3f199f(0x1ed))/0xb;if(_0x1eec04===_0x422e86)break;else _0x17c87a['push'](_0x17c87a['shift']());}catch(_0x3b760d){_0x17c87a['push'](_0x17c87a['shift']());}}}(a46_0x8989,0x1c61e));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';const SKILL_FILE=a46_0x876c17(0x1f5),SUPPORTED_SKILL_TYPES=new Set([a46_0x876c17(0x1e5),a46_0x876c17(0x202),a46_0x876c17(0x1e6)]);export function validateSkillDirectory(_0x4e7e19,_0x163981={}){const _0x5978d9=a46_0x876c17,_0x37c454=resolveSkillDirectoryRoot(_0x4e7e19),_0x2cd52c=[],_0x3b83f9=loadRequiredSkillFile(_0x37c454,_0x2cd52c),_0x194b63=_0x3b83f9?parseFrontmatter(_0x3b83f9[_0x5978d9(0x207)]):{'hasFrontmatter':![]};_0x3b83f9&&validateFrontmatter(_0x3b83f9[_0x5978d9(0x1f7)],_0x194b63,_0x2cd52c);const _0x2117d3=_0x2cd52c[_0x5978d9(0x1dd)](_0x362ec5=>_0x362ec5[_0x5978d9(0x1fe)]===_0x5978d9(0x1fd));return{'ok':_0x2117d3[_0x5978d9(0x1d2)]===0x0,'dir':_0x37c454,'type':_0x194b63['type'],'errors':_0x2117d3,'warnings':[]};}function resolveSkillDirectoryRoot(_0x314315){const _0x106b86=a46_0x876c17,_0x2bd3df=resolve(_0x314315);if(!existsSync(_0x2bd3df))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x314315);const _0x2c7d00=lstatSync(_0x2bd3df);if(_0x2c7d00[_0x106b86(0x1d0)]())return _0x2bd3df;if(_0x2c7d00[_0x106b86(0x1ea)]()){const _0x468c93=realpathSync(_0x2bd3df);if(lstatSync(_0x468c93)[_0x106b86(0x1d0)]())return _0x468c93;}throw CliErrors[_0x106b86(0x1db)]('Skill\x20directory\x20not\x20found:\x20'+_0x314315);}export function throwIfSkillValidationFailed(_0x4258a9,_0x1a0770=![]){const _0x4233bc=a46_0x876c17;if(_0x4258a9['ok'])return;const _0x362693=_0x4258a9[_0x4233bc(0x1f0)][_0x4233bc(0x1e2)](_0x4a93b8=>{const _0x215b0e=_0x4233bc,_0xa63ab3=_0x4a93b8['section']?'#'+_0x4a93b8[_0x215b0e(0x1d6)]:'';return _0x4a93b8[_0x215b0e(0x1fe)][_0x215b0e(0x205)]()+'\x20'+_0x4a93b8[_0x215b0e(0x1f4)]+'\x20'+_0x4a93b8[_0x215b0e(0x1ff)]+_0xa63ab3+':\x20'+_0x4a93b8['message']+'\x20Fix:\x20'+_0x4a93b8[_0x215b0e(0x1d1)];});throw CliErrors[_0x4233bc(0x1db)](_0x4233bc(0x20c)+_0x362693[_0x4233bc(0x1e7)]('\x0a'),_0x4233bc(0x20a));}function a46_0x5db8(_0x5954a5,_0x4133dd){_0x5954a5=_0x5954a5-0x1cf;const _0x8989fb=a46_0x8989();let _0x5db828=_0x8989fb[_0x5954a5];return _0x5db828;}function a46_0x8989(){const _0xa7c5a1=['error','level','file','isFile','44870sqWOfl','read','388722XCCBeM','12KdWccI','toUpperCase','330szOwxL','content','10468DzoeNV','hasFrontmatter','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','match','Skill\x20validation\x20failed:\x0a','internal','metadata','isDirectory','suggestion','length','has','false','1304tSUibv','section','endsWith','166ioRXve','description-required','Frontmatter\x20description\x20is\x20empty.','validation','slice','filter','push','Add\x20frontmatter\x20with\x20name\x20and\x20description.','1487504tVUSBe','288505JpuzCv','map','split','description','write','trainer','join','frontmatter-required','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','isSymbolicLink','type','structure-complete','5756927hDjKWC','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','441UUPQES','errors','internal-skill','startsWith','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','ruleId','SKILL.md','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','path','name','true','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','trim','toLowerCase'];a46_0x8989=function(){return _0xa7c5a1;};return a46_0x8989();}function loadRequiredSkillFile(_0x43719e,_0x3e145b){const _0xa9d4d7=a46_0x876c17,_0x5b303d=resolve(_0x43719e,SKILL_FILE);if(!existsSync(_0x5b303d))return _0x3e145b[_0xa9d4d7(0x1de)](issue(_0xa9d4d7(0x1fd),'structure-complete',SKILL_FILE,'Missing\x20SKILL.md.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x2194fb=lstatSync(_0x5b303d);if(_0x2194fb['isSymbolicLink']())return _0x3e145b[_0xa9d4d7(0x1de)](issue(_0xa9d4d7(0x1fd),_0xa9d4d7(0x1ec),SKILL_FILE,_0xa9d4d7(0x1f6),_0xa9d4d7(0x1fa))),undefined;if(!_0x2194fb[_0xa9d4d7(0x200)]())return _0x3e145b[_0xa9d4d7(0x1de)](issue(_0xa9d4d7(0x1fd),'structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0xa9d4d7(0x1ee))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x5b303d,'utf8')};}function validateFrontmatter(_0x9dcc3f,_0x42dbac,_0xa218cc){const _0xb07452=a46_0x876c17;if(!_0x42dbac[_0xb07452(0x209)]){_0xa218cc[_0xb07452(0x1de)](issue(_0xb07452(0x1fd),_0xb07452(0x1e8),_0x9dcc3f,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0xb07452(0x1df)));return;}!_0x42dbac[_0xb07452(0x1f8)]?.[_0xb07452(0x1fb)]()&&_0xa218cc[_0xb07452(0x1de)](issue(_0xb07452(0x1fd),_0xb07452(0x1e8),_0x9dcc3f,'Frontmatter\x20name\x20is\x20missing.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x42dbac[_0xb07452(0x1e4)]?.[_0xb07452(0x1fb)]()&&_0xa218cc[_0xb07452(0x1de)](issue(_0xb07452(0x1fd),_0xb07452(0x1d9),_0x9dcc3f,_0xb07452(0x1da),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x42dbac[_0xb07452(0x20d)]===!![]&&_0xa218cc[_0xb07452(0x1de)](issue(_0xb07452(0x1fd),_0xb07452(0x1f1),_0x9dcc3f,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x42dbac[_0xb07452(0x1eb)]?.[_0xb07452(0x1fb)]()&&!SUPPORTED_SKILL_TYPES[_0xb07452(0x1d3)](_0x42dbac[_0xb07452(0x1eb)])&&_0xa218cc[_0xb07452(0x1de)](issue(_0xb07452(0x1fd),_0xb07452(0x1e8),_0x9dcc3f,_0xb07452(0x1f3),_0xb07452(0x1e9)));}function parseFrontmatter(_0xdffa2d){const _0x199e8b=a46_0x876c17,_0x495b44=_0xdffa2d['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x495b44)return{'hasFrontmatter':![]};const _0x956b63=_0x495b44[0x1]??'',_0x1b98e3={'hasFrontmatter':!![]};let _0x39fa86=![];for(const _0x194f9f of _0x956b63[_0x199e8b(0x1e3)](/\r?\n/)){if(/^\s*$/['test'](_0x194f9f))continue;const _0x4fc4bb=_0x194f9f[_0x199e8b(0x20b)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x4fc4bb){const _0x312370=_0x4fc4bb[0x1],_0x3d484f=cleanScalar(_0x4fc4bb[0x2]??'');_0x39fa86=_0x312370===_0x199e8b(0x1cf);if(_0x312370===_0x199e8b(0x1f8))_0x1b98e3[_0x199e8b(0x1f8)]=_0x3d484f;if(_0x312370===_0x199e8b(0x1e4))_0x1b98e3['description']=_0x3d484f;continue;}const _0x5c7844=_0x194f9f[_0x199e8b(0x20b)](/^\s+type:\s*(.*)$/);if(_0x39fa86&&_0x5c7844){_0x1b98e3[_0x199e8b(0x1eb)]=cleanScalar(_0x5c7844[0x1]??'');continue;}const _0x3a4f31=_0x194f9f[_0x199e8b(0x20b)](/^\s+internal:\s*(.*)$/);_0x39fa86&&_0x3a4f31&&(_0x1b98e3[_0x199e8b(0x20d)]=cleanBoolean(_0x3a4f31[0x1]??''));}return _0x1b98e3;}function cleanScalar(_0x38e458){const _0x259400=a46_0x876c17,_0x1850df=_0x38e458[_0x259400(0x1fb)]();if(_0x1850df['startsWith']('\x22')&&_0x1850df[_0x259400(0x1d7)]('\x22')||_0x1850df[_0x259400(0x1f2)]('\x27')&&_0x1850df[_0x259400(0x1d7)]('\x27'))return _0x1850df[_0x259400(0x1dc)](0x1,-0x1);return _0x1850df;}function cleanBoolean(_0x2c9503){const _0x314849=a46_0x876c17,_0x3823ed=cleanScalar(_0x2c9503)[_0x314849(0x1fc)]();if(_0x3823ed===_0x314849(0x1f9))return!![];if(_0x3823ed===_0x314849(0x1d4))return![];return undefined;}function issue(_0x1af73c,_0x38deec,_0x336802,_0x55fd79,_0x2b75c5,_0x32b3c3){return{'level':_0x1af73c,'ruleId':_0x38deec,'file':_0x336802,'section':_0x32b3c3,'message':_0x55fd79,'suggestion':_0x2b75c5};}
@@ -1 +1 @@
1
- const a47_0x49aec9=a47_0x5e0a;(function(_0x4e69c0,_0x2b3288){const _0x8b970a=a47_0x5e0a,_0x12ae6f=_0x4e69c0();while(!![]){try{const _0x40210f=-parseInt(_0x8b970a(0x1c3))/0x1*(-parseInt(_0x8b970a(0x1cb))/0x2)+-parseInt(_0x8b970a(0x1c6))/0x3*(-parseInt(_0x8b970a(0x1cd))/0x4)+-parseInt(_0x8b970a(0x1cc))/0x5+-parseInt(_0x8b970a(0x1ca))/0x6*(parseInt(_0x8b970a(0x1ce))/0x7)+parseInt(_0x8b970a(0x1d1))/0x8+parseInt(_0x8b970a(0x1bd))/0x9+parseInt(_0x8b970a(0x1d0))/0xa*(-parseInt(_0x8b970a(0x1c0))/0xb);if(_0x40210f===_0x2b3288)break;else _0x12ae6f['push'](_0x12ae6f['shift']());}catch(_0x87f9fa){_0x12ae6f['push'](_0x12ae6f['shift']());}}}(a47_0x44d2,0x45c1a));import{getSqlQueryInfo}from'../../core/api-client.js';function a47_0x44d2(){const _0x3c863a=['description','sqlCode','109884XOUznJ','4UxNISE','1651985irYzIH','8VLWlHp','28nwGVcL','detail','20470GbodWo','1073304jwzVft','appCode','dbId','4294728dqTIMX','sqlName','verbose','2882XZrBrJ','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','str','134060JXMgvI','sqlContent','read','519321hbZLNi','sqlcode'];a47_0x44d2=function(){return _0x3c863a;};return a47_0x44d2();}function a47_0x5e0a(_0x564c9b,_0x59efae){_0x564c9b=_0x564c9b-0x1bd;const _0x44d222=a47_0x44d2();let _0x5e0ab7=_0x44d222[_0x564c9b];return _0x5e0ab7;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a47_0x49aec9(0x1cf),'description':a47_0x49aec9(0x1c1),'risk':a47_0x49aec9(0x1c5),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x479148){const _0x3b2034=a47_0x49aec9,_0x1725c8=await getSqlQueryInfo(_0x479148[_0x3b2034(0x1d2)],_0x479148[_0x3b2034(0x1c2)](_0x3b2034(0x1c7))),_0x1c9d32=_0x479148['bool'](_0x3b2034(0x1bf));if(_0x1c9d32)return{'ok':!![],'data':_0x1725c8};const _0x4eaa6c=_0x1725c8[_0x3b2034(0x1d3)]?await getDbName(_0x479148[_0x3b2034(0x1d2)],_0x1725c8['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x1725c8[_0x3b2034(0x1c9)],'sqlName':_0x1725c8[_0x3b2034(0x1be)],'db':_0x4eaa6c?_0x4eaa6c+'\x20('+_0x1725c8['dbId']+')':_0x1725c8['dbId']??'','description':_0x1725c8[_0x3b2034(0x1c8)]??'','sqlContent':_0x1725c8[_0x3b2034(0x1c4)]??''}};}};
1
+ const a47_0x1ba4dd=a47_0x47a6;function a47_0x47a6(_0x211dbf,_0x247af7){_0x211dbf=_0x211dbf-0x1a9;const _0x17ccae=a47_0x17cc();let _0x47a6cd=_0x17ccae[_0x211dbf];return _0x47a6cd;}(function(_0x477038,_0x330b5d){const _0x297008=a47_0x47a6,_0x1ce6c3=_0x477038();while(!![]){try{const _0x4fe2e9=parseInt(_0x297008(0x1ba))/0x1*(parseInt(_0x297008(0x1aa))/0x2)+-parseInt(_0x297008(0x1b4))/0x3+-parseInt(_0x297008(0x1ac))/0x4+-parseInt(_0x297008(0x1b9))/0x5*(-parseInt(_0x297008(0x1bb))/0x6)+parseInt(_0x297008(0x1b1))/0x7+parseInt(_0x297008(0x1b3))/0x8+-parseInt(_0x297008(0x1b7))/0x9;if(_0x4fe2e9===_0x330b5d)break;else _0x1ce6c3['push'](_0x1ce6c3['shift']());}catch(_0x5672bb){_0x1ce6c3['push'](_0x1ce6c3['shift']());}}}(a47_0x17cc,0xed30e));import{getSqlQueryInfo}from'../../core/api-client.js';function a47_0x17cc(){const _0x473fdf=['dbId','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlContent','bool','1365112CYmgMG','sqlcode','12827672rtcOeb','1022235FblpSe','read','str','12118869npPxSc','verbose','13265XnCAtW','17722vEXzga','2778Qygqps','appCode','118YshICI','sqlName','5654368QCPGLk'];a47_0x17cc=function(){return _0x473fdf;};return a47_0x17cc();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':'detail','description':a47_0x1ba4dd(0x1ae),'risk':a47_0x1ba4dd(0x1b5),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x196983){const _0x5f3a6f=a47_0x1ba4dd,_0x4f22a4=await getSqlQueryInfo(_0x196983[_0x5f3a6f(0x1a9)],_0x196983[_0x5f3a6f(0x1b6)](_0x5f3a6f(0x1b2))),_0x421ba9=_0x196983[_0x5f3a6f(0x1b0)](_0x5f3a6f(0x1b8));if(_0x421ba9)return{'ok':!![],'data':_0x4f22a4};const _0x4f15d1=_0x4f22a4[_0x5f3a6f(0x1ad)]?await getDbName(_0x196983['appCode'],_0x4f22a4[_0x5f3a6f(0x1ad)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x4f22a4['sqlCode'],'sqlName':_0x4f22a4[_0x5f3a6f(0x1ab)],'db':_0x4f15d1?_0x4f15d1+'\x20('+_0x4f22a4['dbId']+')':_0x4f22a4[_0x5f3a6f(0x1ad)]??'','description':_0x4f22a4['description']??'','sqlContent':_0x4f22a4[_0x5f3a6f(0x1af)]??''}};}};
@@ -1 +1 @@
1
- function a48_0x22a4(){const _0x46fc23=['11749976bqjvtK','16196aeAlAw','28866NnMwhf','3851658WSzHnD','SQL\x20execution\x20failed','9oHLIaC','now','params','isArray','2NJGONi','Returned\x20','execResult','execSuccess','sql','str','13103030gdcHxi','sqlcode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','259BNmrpc','377155xxgzhl','execError','41081788GKAXWt','\x20row(s)\x20in\x20','1810VoROxw'];a48_0x22a4=function(){return _0x46fc23;};return a48_0x22a4();}function a48_0x1509(_0x33daf4,_0x115f13){_0x33daf4=_0x33daf4-0x108;const _0x22a403=a48_0x22a4();let _0x1509ea=_0x22a403[_0x33daf4];return _0x1509ea;}const a48_0x39bf96=a48_0x1509;(function(_0x54c701,_0x240a5b){const _0x10212c=a48_0x1509,_0x56dc37=_0x54c701();while(!![]){try{const _0x37876a=-parseInt(_0x10212c(0x10c))/0x1*(-parseInt(_0x10212c(0x11a))/0x2)+parseInt(_0x10212c(0x114))/0x3+-parseInt(_0x10212c(0x112))/0x4*(parseInt(_0x10212c(0x110))/0x5)+parseInt(_0x10212c(0x113))/0x6*(-parseInt(_0x10212c(0x10b))/0x7)+-parseInt(_0x10212c(0x111))/0x8+-parseInt(_0x10212c(0x116))/0x9*(parseInt(_0x10212c(0x108))/0xa)+parseInt(_0x10212c(0x10e))/0xb;if(_0x37876a===_0x240a5b)break;else _0x56dc37['push'](_0x56dc37['shift']());}catch(_0x3d4870){_0x56dc37['push'](_0x56dc37['shift']());}}}(a48_0x22a4,0xed89a));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x39bf96(0x11e),'command':'exec','description':a48_0x39bf96(0x10a),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5eda8b){const _0x58b04e=a48_0x39bf96,_0x626168=parseJsonParams(_0x5eda8b[_0x58b04e(0x11f)](_0x58b04e(0x118))),_0x37c2ad=Date[_0x58b04e(0x117)](),_0x229415=await executeSdkSql(_0x5eda8b[_0x58b04e(0x11f)](_0x58b04e(0x109)),_0x626168),_0x367ff0=Date[_0x58b04e(0x117)]()-_0x37c2ad,_0x206290=_0x229415?.[_0x58b04e(0x11c)]??_0x229415,_0x34c163=_0x229415?.[_0x58b04e(0x11d)]??!![];if(!_0x34c163)return{'ok':![],'data':{'error':_0x229415?.[_0x58b04e(0x10d)]||_0x58b04e(0x115),'elapsed':_0x367ff0},'message':_0x58b04e(0x115)};const _0x1aaae6=Array[_0x58b04e(0x119)](_0x206290)?_0x206290:[];return{'ok':!![],'data':{'rows':_0x1aaae6,'rowCount':_0x1aaae6['length'],'elapsed':_0x367ff0},'message':_0x58b04e(0x11b)+_0x1aaae6['length']+_0x58b04e(0x10f)+_0x367ff0+'ms'};}};
1
+ function a48_0x3d6e(_0x40f907,_0xc44681){_0x40f907=_0x40f907-0x16e;const _0x54e351=a48_0x54e3();let _0x3d6ee4=_0x54e351[_0x40f907];return _0x3d6ee4;}function a48_0x54e3(){const _0x1158cb=['str','613830eIsupm','1258MswQYr','params','1266GZESzM','76wJTbav','execSuccess','now','sql','1176248HbpyZk','202758oBVhSY','5769570vTGIDB','94595VKgTaf','\x20row(s)\x20in\x20','execError','9lfnsdT','length','exec','SQL\x20execution\x20failed','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execResult','isArray','1385982TavVJv'];a48_0x54e3=function(){return _0x1158cb;};return a48_0x54e3();}const a48_0x53e355=a48_0x3d6e;(function(_0x84151f,_0x1e7886){const _0x1adb48=a48_0x3d6e,_0x38c180=_0x84151f();while(!![]){try{const _0x2a4f44=parseInt(_0x1adb48(0x182))/0x1+parseInt(_0x1adb48(0x17a))/0x2*(parseInt(_0x1adb48(0x17c))/0x3)+parseInt(_0x1adb48(0x17d))/0x4*(parseInt(_0x1adb48(0x184))/0x5)+parseInt(_0x1adb48(0x177))/0x6+-parseInt(_0x1adb48(0x179))/0x7+parseInt(_0x1adb48(0x181))/0x8*(-parseInt(_0x1adb48(0x170))/0x9)+-parseInt(_0x1adb48(0x183))/0xa;if(_0x2a4f44===_0x1e7886)break;else _0x38c180['push'](_0x38c180['shift']());}catch(_0x48ad29){_0x38c180['push'](_0x38c180['shift']());}}}(a48_0x54e3,0x3c4c0));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x53e355(0x180),'command':a48_0x53e355(0x172),'description':a48_0x53e355(0x174),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x191404){const _0x18b70c=a48_0x53e355,_0x26beef=parseJsonParams(_0x191404['str'](_0x18b70c(0x17b))),_0x17a755=Date[_0x18b70c(0x17f)](),_0x18e843=await executeSdkSql(_0x191404[_0x18b70c(0x178)]('sqlcode'),_0x26beef),_0x195b10=Date['now']()-_0x17a755,_0xab80eb=_0x18e843?.[_0x18b70c(0x175)]??_0x18e843,_0x4b3cc5=_0x18e843?.[_0x18b70c(0x17e)]??!![];if(!_0x4b3cc5)return{'ok':![],'data':{'error':_0x18e843?.[_0x18b70c(0x16f)]||'SQL\x20execution\x20failed','elapsed':_0x195b10},'message':_0x18b70c(0x173)};const _0x106ae2=Array[_0x18b70c(0x176)](_0xab80eb)?_0xab80eb:[];return{'ok':!![],'data':{'rows':_0x106ae2,'rowCount':_0x106ae2['length'],'elapsed':_0x195b10},'message':'Returned\x20'+_0x106ae2[_0x18b70c(0x171)]+_0x18b70c(0x16e)+_0x195b10+'ms'};}};
@@ -1 +1 @@
1
- function a49_0x3599(){const _0x2072b0=['154wtJaok','32988gpnyBc','141ehuehJ','1514120eEhMrE','46986HqVyMb','5316840KIgTyS','1399552IjOiih','1825824Otmzsv','211984BDHpBK'];a49_0x3599=function(){return _0x2072b0;};return a49_0x3599();}(function(_0x15356e,_0x441da3){const _0x5abbaf=a49_0x9389,_0x358d19=_0x15356e();while(!![]){try{const _0x1a4f1d=-parseInt(_0x5abbaf(0x188))/0x1+parseInt(_0x5abbaf(0x185))/0x2*(parseInt(_0x5abbaf(0x186))/0x3)+parseInt(_0x5abbaf(0x18a))/0x4+-parseInt(_0x5abbaf(0x187))/0x5+-parseInt(_0x5abbaf(0x18b))/0x6+parseInt(_0x5abbaf(0x184))/0x7*(-parseInt(_0x5abbaf(0x183))/0x8)+parseInt(_0x5abbaf(0x189))/0x9;if(_0x1a4f1d===_0x441da3)break;else _0x358d19['push'](_0x358d19['shift']());}catch(_0x4b8687){_0x358d19['push'](_0x358d19['shift']());}}}(a49_0x3599,0x74e4c));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a49_0x9389(_0x575fb1,_0x568cb4){_0x575fb1=_0x575fb1-0x183;const _0x359955=a49_0x3599();let _0x93898b=_0x359955[_0x575fb1];return _0x93898b;}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ function a49_0x4294(){const _0x2b14f7=['1682694yAJdYW','4iCGgOI','40ypnxam','3682328tvGBKV','1329594felqBI','3733497UzBmZs','2441004VksqrZ','261263bLJIAd','989550MZnJQM'];a49_0x4294=function(){return _0x2b14f7;};return a49_0x4294();}function a49_0x1842(_0x1b9751,_0x2c0e40){_0x1b9751=_0x1b9751-0xe7;const _0x42947d=a49_0x4294();let _0x1842c9=_0x42947d[_0x1b9751];return _0x1842c9;}(function(_0x41b069,_0x1386cf){const _0x29820d=a49_0x1842,_0x5ca70e=_0x41b069();while(!![]){try{const _0x3fa99c=-parseInt(_0x29820d(0xe7))/0x1*(-parseInt(_0x29820d(0xea))/0x2)+parseInt(_0x29820d(0xef))/0x3+parseInt(_0x29820d(0xec))/0x4+parseInt(_0x29820d(0xe8))/0x5+parseInt(_0x29820d(0xe9))/0x6+-parseInt(_0x29820d(0xed))/0x7+parseInt(_0x29820d(0xeb))/0x8*(-parseInt(_0x29820d(0xee))/0x9);if(_0x3fa99c===_0x1386cf)break;else _0x5ca70e['push'](_0x5ca70e['shift']());}catch(_0xe873be){_0x5ca70e['push'](_0x5ca70e['shift']());}}}(a49_0x4294,0x72ff4));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- function a50_0x47a4(_0x47a68f,_0x5438d4){_0x47a68f=_0x47a68f-0x15e;const _0x2c6412=a50_0x2c64();let _0x47a436=_0x2c6412[_0x47a68f];return _0x47a436;}const a50_0x4b1653=a50_0x47a4;(function(_0x4bf853,_0x12a19a){const _0x21ac54=a50_0x47a4,_0x180969=_0x4bf853();while(!![]){try{const _0xcc53a3=-parseInt(_0x21ac54(0x15f))/0x1*(parseInt(_0x21ac54(0x1aa))/0x2)+parseInt(_0x21ac54(0x165))/0x3+parseInt(_0x21ac54(0x18c))/0x4*(-parseInt(_0x21ac54(0x16e))/0x5)+parseInt(_0x21ac54(0x185))/0x6+parseInt(_0x21ac54(0x1a8))/0x7+parseInt(_0x21ac54(0x1b4))/0x8*(-parseInt(_0x21ac54(0x18b))/0x9)+parseInt(_0x21ac54(0x18f))/0xa;if(_0xcc53a3===_0x12a19a)break;else _0x180969['push'](_0x180969['shift']());}catch(_0x15b74f){_0x180969['push'](_0x180969['shift']());}}}(a50_0x2c64,0x8b2a2));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a50_0x4b1653(0x16c),'type':'boolean','description':a50_0x4b1653(0x163),'default':![]},{'name':a50_0x4b1653(0x197),'type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x177),'default':![]},{'name':'version','type':a50_0x4b1653(0x194),'description':a50_0x4b1653(0x178)},{'name':a50_0x4b1653(0x17b),'type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x174),'default':![]},{'name':'skills','type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x19d),'default':!![],'hidden':!![]}];function parseSemver(_0x42582b){const _0x2acc64=a50_0x4b1653,_0x53f3c8=_0x42582b[_0x2acc64(0x161)]()[_0x2acc64(0x190)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x53f3c8)return null;return{'major':Number(_0x53f3c8[0x1]),'minor':Number(_0x53f3c8[0x2]),'patch':Number(_0x53f3c8[0x3]),'prerelease':_0x53f3c8[0x4]};}function compareSemver(_0x58cda4,_0x5c0632){const _0xe35ad=a50_0x4b1653,_0x10b49a=parseSemver(_0x58cda4),_0x53337b=parseSemver(_0x5c0632);if(!_0x10b49a||!_0x53337b)throw CliErrors[_0xe35ad(0x15e)](_0xe35ad(0x183),_0xe35ad(0x199));for(const _0x56502c of[_0xe35ad(0x184),_0xe35ad(0x1ac),_0xe35ad(0x16b)]){if(_0x10b49a[_0x56502c]<_0x53337b[_0x56502c])return-0x1;if(_0x10b49a[_0x56502c]>_0x53337b[_0x56502c])return 0x1;}if(!_0x10b49a[_0xe35ad(0x17f)]&&!_0x53337b[_0xe35ad(0x17f)])return 0x0;if(!_0x10b49a['prerelease'])return 0x1;if(!_0x53337b[_0xe35ad(0x17f)])return-0x1;if(_0x10b49a['prerelease']===_0x53337b[_0xe35ad(0x17f)])return 0x0;return _0x10b49a['prerelease']<_0x53337b[_0xe35ad(0x17f)]?-0x1:0x1;}function getRequestedVersion(_0x291529){const _0x375c47=a50_0x4b1653,_0x4d1db3=_0x291529[_0x375c47(0x1b6)]('version')[_0x375c47(0x161)]();if(_0x4d1db3)return _0x4d1db3;return String(_0x291529[_0x375c47(0x186)]?.[0x0]??'')[_0x375c47(0x161)]();}function shouldSkipCliBuiltInSkill(_0x3f6c2b){const _0x5307fc=a50_0x4b1653;return _0x3f6c2b[_0x5307fc(0x16a)]('no-skills')||_0x3f6c2b['flag'](_0x5307fc(0x17e))===![];}async function validateUpdateFlags(_0x4ee946){const _0x2e6ec1=a50_0x4b1653,_0x5f02d1=getRequestedVersion(_0x4ee946),_0x15a7ac=[_0x4ee946[_0x2e6ec1(0x16a)](_0x2e6ec1(0x16c))?'latest':'',_0x4ee946[_0x2e6ec1(0x16a)](_0x2e6ec1(0x197))?'beta':'',_0x5f02d1?_0x2e6ec1(0x171):''][_0x2e6ec1(0x191)](Boolean);if(_0x15a7ac[_0x2e6ec1(0x198)]>0x1)throw CliErrors['validation'](_0x2e6ec1(0x169),_0x2e6ec1(0x18d));if(_0x5f02d1&&!parseSemver(_0x5f02d1))throw CliErrors[_0x2e6ec1(0x15e)](_0x2e6ec1(0x1a0)+_0x5f02d1,_0x2e6ec1(0x17a));}async function fetchNpmDistTags(){const _0x21a2d0=a50_0x4b1653;try{const _0xe0773e=NPM_REGISTRY_BASE_URL+_0x21a2d0(0x18a)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x21a2d0(0x1a1),_0x568b4e=await fetch(_0xe0773e,{'signal':AbortSignal[_0x21a2d0(0x1a3)](0x2710)});if(!_0x568b4e['ok'])return null;const _0x39fda4=await _0x568b4e[_0x21a2d0(0x196)]();if(!_0x39fda4||typeof _0x39fda4!==_0x21a2d0(0x168))return null;return Object[_0x21a2d0(0x1a9)](Object[_0x21a2d0(0x1b2)](_0x39fda4)[_0x21a2d0(0x191)](([,_0x578b02])=>typeof _0x578b02===_0x21a2d0(0x194)&&_0x578b02[_0x21a2d0(0x161)]())[_0x21a2d0(0x193)](([_0x4382c4,_0x127131])=>[_0x4382c4,String(_0x127131)[_0x21a2d0(0x161)]()]));}catch{return null;}}async function resolveTargetVersion(_0x18f804){const _0x1946d4=a50_0x4b1653,_0x415fcb=getRequestedVersion(_0x18f804);if(_0x415fcb)return{'version':_0x415fcb,'source':_0x1946d4(0x171)};const _0x376480=_0x18f804[_0x1946d4(0x16a)](_0x1946d4(0x197))?_0x1946d4(0x197):'latest',_0x5402c0=await fetchNpmDistTags(),_0x5b86be=_0x5402c0?.[_0x376480];if(!_0x5b86be)return null;return{'version':_0x5b86be,'source':_0x376480};}function shouldInstallTarget(_0x33ab45,_0x918c8f){const _0xdbe9a5=a50_0x4b1653,_0x4b1b7f=compareSemver(_0x33ab45,_0x918c8f[_0xdbe9a5(0x171)]);if(_0x918c8f[_0xdbe9a5(0x160)]==='version')return _0x4b1b7f!==0x0;return _0x4b1b7f<0x0;}function installCliPackage(_0x4d6432,_0x550419){const _0x500295=a50_0x4b1653,_0x16883b=resolveNpmBin(_0x500295(0x19a)),_0xff8bdd=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d6432];console[_0x500295(0x172)]('*\x20'+[_0x16883b,..._0xff8bdd][_0x500295(0x16f)]('\x20'));const _0x39d2ed=spawnSync(_0x16883b,_0xff8bdd,{'cwd':process[_0x500295(0x19c)](),'stdio':_0x550419?_0x500295(0x1a7):_0x500295(0x192),'env':process.env,'shell':![]});if(_0x39d2ed[_0x500295(0x1b5)]===0x0)return{'ok':!![]};let _0xe6f5ac=_0x39d2ed['error']?.[_0x500295(0x1b1)]||_0x500295(0x170)+(_0x39d2ed[_0x500295(0x1b5)]??_0x500295(0x1a4));if(_0x550419){const _0x53c50f=_0x39d2ed[_0x500295(0x179)]?_0x39d2ed[_0x500295(0x179)][_0x500295(0x1af)]()[_0x500295(0x161)]():'',_0x2a1afd=_0x39d2ed['stdout']?_0x39d2ed[_0x500295(0x166)][_0x500295(0x1af)]()[_0x500295(0x161)]():'';if(_0x53c50f)_0xe6f5ac=_0x53c50f;else{if(_0x2a1afd)_0xe6f5ac=_0x2a1afd;}}return{'ok':![],'error':_0xe6f5ac};}function a50_0x2c64(){const _0x276940=['1255464vMPfnU','args','update','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','warn','/-/package/','27OAgWTC','140lGnVKK','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','nonInteractive','529940aZrdYP','match','filter','inherit','map','string','skipped','json','beta','length','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','npm','=1).','cwd','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','Checking\x20CLI\x20Built-in\x20Skill...','Already\x20on\x20requested\x20version\x20(v','Invalid\x20version:\x20','/dist-tags','error','timeout','unknown','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Checking\x20npm\x20dist-tags...','pipe','7186382fOIeEw','fromEntries','2IPMShn','Updating\x20','minor','\x20CLI\x20from\x20npm','Already\x20up\x20to\x20date\x20(v','toString','Unable\x20to\x20resolve\x20','message','entries','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','285656ctCuLA','status','str','validation','953263XYtIOI','source','trim','boolean','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Updated\x20to\x20v','3095949yVCqqp','stdout','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','object','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','bool','patch','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','98635kTNcdQ','join','exit\x20','version','log','\x20->\x20','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20version\x20from\x20npm.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Install\x20a\x20specific\x20CLI\x20version','stderr','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','no-skills','run','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','skills','prerelease','Current\x20version:\x20','Update\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Version\x20comparison\x20failed.','major'];a50_0x2c64=function(){return _0x276940;};return a50_0x2c64();}async function installCliBuiltInSkill(_0x43117d){const _0x35c81e=a50_0x4b1653;console[_0x35c81e(0x172)](_0x35c81e(0x19e));const _0x23a334=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x43117d?_0x35c81e(0x1a7):_0x35c81e(0x192)});if(_0x23a334[_0x35c81e(0x195)]){console[_0x35c81e(0x172)](_0x35c81e(0x1a5)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x35c81e(0x19b));return;}if(_0x23a334['ok']){console['log'](_0x35c81e(0x182));return;}console[_0x35c81e(0x189)](_0x35c81e(0x17d)+(_0x23a334[_0x35c81e(0x1a2)]||_0x35c81e(0x1a4))),console[_0x35c81e(0x172)](_0x35c81e(0x1b3));}async function execute(_0x1cf117){const _0x594881=a50_0x4b1653;await validateUpdateFlags(_0x1cf117);const _0x4ece83=getCliVersion();console[_0x594881(0x172)](_0x594881(0x180)+_0x4ece83),console[_0x594881(0x172)](_0x594881(0x1a6));const _0x3b6317=await resolveTargetVersion(_0x1cf117);if(!_0x3b6317){const _0xf21026=_0x1cf117[_0x594881(0x16a)](_0x594881(0x197))?_0x594881(0x197):_0x594881(0x16c),_0x50290c=_0x594881(0x1b0)+_0xf21026+_0x594881(0x175);return console['warn'](_0x50290c),console[_0x594881(0x172)](_0x594881(0x167)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf21026),{'ok':![]};}if(!shouldInstallTarget(_0x4ece83,_0x3b6317)){const _0x55ce86=_0x3b6317[_0x594881(0x160)]===_0x594881(0x171)?_0x594881(0x19f)+_0x3b6317[_0x594881(0x171)]+').':_0x594881(0x1ae)+_0x3b6317[_0x594881(0x171)]+').';return console[_0x594881(0x172)](_0x55ce86),shouldSkipCliBuiltInSkill(_0x1cf117)?console[_0x594881(0x172)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x1cf117[_0x594881(0x18e)]),{'ok':!![]};}console[_0x594881(0x172)](_0x594881(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x4ece83+_0x594881(0x173)+_0x3b6317[_0x594881(0x171)]);const _0x14f076=installCliPackage(_0x3b6317[_0x594881(0x171)],_0x1cf117[_0x594881(0x18e)]);if(!_0x14f076['ok']){const _0x31709b='Update\x20failed:\x20'+(_0x14f076['error']||'unknown');return console[_0x594881(0x1a2)](_0x31709b),console[_0x594881(0x172)](_0x594881(0x188)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3b6317[_0x594881(0x171)]),{'ok':![]};}return console['log'](_0x594881(0x164)+_0x3b6317[_0x594881(0x171)]+'.'),console['log'](_0x594881(0x176)),shouldSkipCliBuiltInSkill(_0x1cf117)?console[_0x594881(0x172)](_0x594881(0x16d)):await installCliBuiltInSkill(_0x1cf117[_0x594881(0x18e)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x4b1653(0x187),'command':a50_0x4b1653(0x17c),'description':a50_0x4b1653(0x181)+CLI_BIN_NAME+a50_0x4b1653(0x1ad),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a50_0x116592=a50_0x21f8;function a50_0x21f8(_0x39d06b,_0x30c798){_0x39d06b=_0x39d06b-0x15d;const _0x59d8b1=a50_0x59d8();let _0x21f81c=_0x59d8b1[_0x39d06b];return _0x21f81c;}(function(_0x538659,_0x42b132){const _0x5b6301=a50_0x21f8,_0xc64b49=_0x538659();while(!![]){try{const _0x483543=parseInt(_0x5b6301(0x164))/0x1*(parseInt(_0x5b6301(0x179))/0x2)+parseInt(_0x5b6301(0x15f))/0x3+parseInt(_0x5b6301(0x17f))/0x4*(-parseInt(_0x5b6301(0x18b))/0x5)+-parseInt(_0x5b6301(0x166))/0x6+parseInt(_0x5b6301(0x184))/0x7+-parseInt(_0x5b6301(0x188))/0x8+parseInt(_0x5b6301(0x174))/0x9*(parseInt(_0x5b6301(0x162))/0xa);if(_0x483543===_0x42b132)break;else _0xc64b49['push'](_0xc64b49['shift']());}catch(_0x47e22d){_0xc64b49['push'](_0xc64b49['shift']());}}}(a50_0x59d8,0x96e15));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';function a50_0x59d8(){const _0x218a91=['--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','object','warn','minor','log','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','join','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','unknown','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','version','bool','157644qzXnzB','Version\x20comparison\x20failed.','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','trim','boolean','477302sSmRtv','skills','error','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','major','install','4sVGDmU','Update\x20','toString','entries','pipe','4580905eULxcP','\x20CLI\x20from\x20npm','inherit','/-/package/','7186000EEFLRl','string','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','3000055OKxbWo','nonInteractive','cwd','skipped','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Updating\x20','patch','latest','args','beta','Update\x20failed:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','validation','prerelease','Updated\x20to\x20v','timeout','update','match','Current\x20version:\x20','exit\x20','map','Invalid\x20version:\x20','stdout','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','3351432AfzvOo','stderr','str','80HMRaWK','flag','1MVIgPy','source','204432gYiCEW','status'];a50_0x59d8=function(){return _0x218a91;};return a50_0x59d8();}import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a50_0x116592(0x193),'type':a50_0x116592(0x178),'description':a50_0x116592(0x176),'default':![]},{'name':'beta','type':a50_0x116592(0x178),'description':a50_0x116592(0x16f),'default':![]},{'name':a50_0x116592(0x172),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a50_0x116592(0x178),'description':a50_0x116592(0x18f),'default':![]},{'name':a50_0x116592(0x17a),'type':a50_0x116592(0x178),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x11b751){const _0x19de66=a50_0x116592,_0x15eaf2=_0x11b751[_0x19de66(0x177)]()[_0x19de66(0x19d)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x15eaf2)return null;return{'major':Number(_0x15eaf2[0x1]),'minor':Number(_0x15eaf2[0x2]),'patch':Number(_0x15eaf2[0x3]),'prerelease':_0x15eaf2[0x4]};}function compareSemver(_0xae019b,_0x26af69){const _0x2b1e85=a50_0x116592,_0x169e16=parseSemver(_0xae019b),_0x173425=parseSemver(_0x26af69);if(!_0x169e16||!_0x173425)throw CliErrors[_0x2b1e85(0x198)](_0x2b1e85(0x175),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x167ab2 of[_0x2b1e85(0x17d),_0x2b1e85(0x16b),_0x2b1e85(0x192)]){if(_0x169e16[_0x167ab2]<_0x173425[_0x167ab2])return-0x1;if(_0x169e16[_0x167ab2]>_0x173425[_0x167ab2])return 0x1;}if(!_0x169e16[_0x2b1e85(0x199)]&&!_0x173425[_0x2b1e85(0x199)])return 0x0;if(!_0x169e16['prerelease'])return 0x1;if(!_0x173425['prerelease'])return-0x1;if(_0x169e16[_0x2b1e85(0x199)]===_0x173425[_0x2b1e85(0x199)])return 0x0;return _0x169e16[_0x2b1e85(0x199)]<_0x173425[_0x2b1e85(0x199)]?-0x1:0x1;}function getRequestedVersion(_0xb6c3b1){const _0x516612=a50_0x116592,_0x3baf26=_0xb6c3b1[_0x516612(0x161)](_0x516612(0x172))['trim']();if(_0x3baf26)return _0x3baf26;return String(_0xb6c3b1[_0x516612(0x194)]?.[0x0]??'')[_0x516612(0x177)]();}function shouldSkipCliBuiltInSkill(_0x4a3b5b){const _0x2c3998=a50_0x116592;return _0x4a3b5b[_0x2c3998(0x173)]('no-skills')||_0x4a3b5b[_0x2c3998(0x163)](_0x2c3998(0x17a))===![];}async function validateUpdateFlags(_0x57df3d){const _0x5ba319=a50_0x116592,_0x243db4=getRequestedVersion(_0x57df3d),_0x210590=[_0x57df3d['bool'](_0x5ba319(0x193))?_0x5ba319(0x193):'',_0x57df3d[_0x5ba319(0x173)](_0x5ba319(0x195))?_0x5ba319(0x195):'',_0x243db4?_0x5ba319(0x172):'']['filter'](Boolean);if(_0x210590['length']>0x1)throw CliErrors[_0x5ba319(0x198)](_0x5ba319(0x168),_0x5ba319(0x197));if(_0x243db4&&!parseSemver(_0x243db4))throw CliErrors[_0x5ba319(0x198)](_0x5ba319(0x1a1)+_0x243db4,_0x5ba319(0x16d));}async function fetchNpmDistTags(){const _0x1aa5fc=a50_0x116592;try{const _0x34bba7=NPM_REGISTRY_BASE_URL+_0x1aa5fc(0x187)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x10926d=await fetch(_0x34bba7,{'signal':AbortSignal[_0x1aa5fc(0x19b)](0x2710)});if(!_0x10926d['ok'])return null;const _0x57eac5=await _0x10926d['json']();if(!_0x57eac5||typeof _0x57eac5!==_0x1aa5fc(0x169))return null;return Object['fromEntries'](Object[_0x1aa5fc(0x182)](_0x57eac5)['filter'](([,_0x1f4af3])=>typeof _0x1f4af3===_0x1aa5fc(0x189)&&_0x1f4af3['trim']())[_0x1aa5fc(0x1a0)](([_0x49789e,_0x3300f0])=>[_0x49789e,String(_0x3300f0)[_0x1aa5fc(0x177)]()]));}catch{return null;}}async function resolveTargetVersion(_0xeaca46){const _0x496e97=a50_0x116592,_0x1d0bd9=getRequestedVersion(_0xeaca46);if(_0x1d0bd9)return{'version':_0x1d0bd9,'source':_0x496e97(0x172)};const _0x56d6fa=_0xeaca46['bool'](_0x496e97(0x195))?'beta':'latest',_0x1dd904=await fetchNpmDistTags(),_0x53ee07=_0x1dd904?.[_0x56d6fa];if(!_0x53ee07)return null;return{'version':_0x53ee07,'source':_0x56d6fa};}function shouldInstallTarget(_0x276311,_0x355dd1){const _0x54831a=a50_0x116592,_0x1e273d=compareSemver(_0x276311,_0x355dd1[_0x54831a(0x172)]);if(_0x355dd1[_0x54831a(0x165)]===_0x54831a(0x172))return _0x1e273d!==0x0;return _0x1e273d<0x0;}function installCliPackage(_0x58dd70,_0x49096a){const _0x4584b4=a50_0x116592,_0x640394=resolveNpmBin('npm'),_0x409c2c=[_0x4584b4(0x17e),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x58dd70];console[_0x4584b4(0x16c)]('*\x20'+[_0x640394,..._0x409c2c][_0x4584b4(0x16e)]('\x20'));const _0x58342f=spawnSync(_0x640394,_0x409c2c,{'cwd':process[_0x4584b4(0x18d)](),'stdio':_0x49096a?_0x4584b4(0x183):_0x4584b4(0x186),'env':process.env,'shell':![]});if(_0x58342f[_0x4584b4(0x167)]===0x0)return{'ok':!![]};let _0x2471f9=_0x58342f[_0x4584b4(0x17b)]?.['message']||_0x4584b4(0x19f)+(_0x58342f[_0x4584b4(0x167)]??_0x4584b4(0x170));if(_0x49096a){const _0x1e6e43=_0x58342f[_0x4584b4(0x160)]?_0x58342f[_0x4584b4(0x160)][_0x4584b4(0x181)]()[_0x4584b4(0x177)]():'',_0x1844b9=_0x58342f[_0x4584b4(0x15d)]?_0x58342f[_0x4584b4(0x15d)][_0x4584b4(0x181)]()['trim']():'';if(_0x1e6e43)_0x2471f9=_0x1e6e43;else{if(_0x1844b9)_0x2471f9=_0x1844b9;}}return{'ok':![],'error':_0x2471f9};}async function installCliBuiltInSkill(_0x2cb145){const _0x407004=a50_0x116592;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x4fd91d=runNpxSkillsAddGlobal(process[_0x407004(0x18d)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x2cb145?_0x407004(0x183):_0x407004(0x186)});if(_0x4fd91d[_0x407004(0x18e)]){console[_0x407004(0x16c)](_0x407004(0x15e)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x4fd91d['ok']){console[_0x407004(0x16c)](_0x407004(0x190));return;}console['warn'](_0x407004(0x17c)+(_0x4fd91d[_0x407004(0x17b)]||_0x407004(0x170))),console['log']('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x5cce97){const _0x213efb=a50_0x116592;await validateUpdateFlags(_0x5cce97);const _0x4d31ad=getCliVersion();console[_0x213efb(0x16c)](_0x213efb(0x19e)+_0x4d31ad),console[_0x213efb(0x16c)]('Checking\x20npm\x20dist-tags...');const _0x91b636=await resolveTargetVersion(_0x5cce97);if(!_0x91b636){const _0x12a27d=_0x5cce97[_0x213efb(0x173)](_0x213efb(0x195))?'beta':_0x213efb(0x193),_0x576276='Unable\x20to\x20resolve\x20'+_0x12a27d+'\x20version\x20from\x20npm.';return console[_0x213efb(0x16a)](_0x576276),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x12a27d),{'ok':![]};}if(!shouldInstallTarget(_0x4d31ad,_0x91b636)){const _0x2b3ab1=_0x91b636['source']===_0x213efb(0x172)?'Already\x20on\x20requested\x20version\x20(v'+_0x91b636['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x91b636[_0x213efb(0x172)]+').';return console[_0x213efb(0x16c)](_0x2b3ab1),shouldSkipCliBuiltInSkill(_0x5cce97)?console['log']('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5cce97[_0x213efb(0x18c)]),{'ok':!![]};}console[_0x213efb(0x16c)](_0x213efb(0x191)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x4d31ad+'\x20->\x20'+_0x91b636['version']);const _0x4b4f46=installCliPackage(_0x91b636[_0x213efb(0x172)],_0x5cce97[_0x213efb(0x18c)]);if(!_0x4b4f46['ok']){const _0x28c1c1=_0x213efb(0x196)+(_0x4b4f46['error']||_0x213efb(0x170));return console[_0x213efb(0x17b)](_0x28c1c1),console[_0x213efb(0x16c)](_0x213efb(0x18a)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x91b636['version']),{'ok':![]};}return console[_0x213efb(0x16c)](_0x213efb(0x19a)+_0x91b636[_0x213efb(0x172)]+'.'),console[_0x213efb(0x16c)](_0x213efb(0x171)),shouldSkipCliBuiltInSkill(_0x5cce97)?console[_0x213efb(0x16c)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5cce97[_0x213efb(0x18c)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x116592(0x19c),'command':'run','description':a50_0x116592(0x180)+CLI_BIN_NAME+a50_0x116592(0x185),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a51_0x142ac3=a51_0x48d5;(function(_0x5199f7,_0x35afb0){const _0x208b89=a51_0x48d5,_0x62aba7=_0x5199f7();while(!![]){try{const _0x393f32=-parseInt(_0x208b89(0x1ee))/0x1+parseInt(_0x208b89(0x1d9))/0x2+-parseInt(_0x208b89(0x1f1))/0x3+parseInt(_0x208b89(0x1d5))/0x4*(parseInt(_0x208b89(0x20a))/0x5)+parseInt(_0x208b89(0x1e1))/0x6+-parseInt(_0x208b89(0x1d8))/0x7*(-parseInt(_0x208b89(0x1fb))/0x8)+parseInt(_0x208b89(0x1f0))/0x9*(parseInt(_0x208b89(0x1da))/0xa);if(_0x393f32===_0x35afb0)break;else _0x62aba7['push'](_0x62aba7['shift']());}catch(_0x29702b){_0x62aba7['push'](_0x62aba7['shift']());}}}(a51_0x24b7,0xab769));function a51_0x24b7(){const _0x1a20ff=['filter','Usage:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','appCode','defaultApp','\x0aAccessKey:\x20not\x20written','appcode','validation','join','string','Missing\x20workspace\x20app\x20selector.','\x22\x20not\x20found.','envName','15cLGzbr','../../core/api-client.js','write','App\x20code\x20to\x20bind\x20directly','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x0aEnv:\x20','Target\x20environment','use','146224ZsoQmR','env','items','1321621hADUsL','1267762yIXrqz','77530IIcAdV','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','init','from','\x0aDefault\x20app:\x20','apps','str','1426278UbRjzm','map','workspace\x20','\x20workspace\x20','accessKey','boolean','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20--appcode\x20<code>\x20[--env\x20daily]','Run\x20`','includes','trim','../../commands/app/remote-source.js','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','1022466nPjspU','\x22.\x20Allowed:\x20','612oElBJs','1616697QJLsHv','command','Invalid\x20env\x20\x22','yes','appName','app','object','authRequired','App\x20\x22','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','32wLeZNb','shouldWriteEnv'];a51_0x24b7=function(){return _0x1a20ff;};return a51_0x24b7();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a51_0x142ac3(0x1f6),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x1db)},{'name':a51_0x142ac3(0x203),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x20d)},{'name':a51_0x142ac3(0x1d6),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x1d3),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x142ac3(0x1f4),'type':a51_0x142ac3(0x1e6),'description':a51_0x142ac3(0x20e),'default':![]}];async function executeWorkspaceUse(_0x36d787,_0x78ba94){const _0x33f538=a51_0x142ac3,_0x24c2ff=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x1f6))['trim'](),_0x1ee4a1=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x203))[_0x33f538(0x1eb)](),_0x16b08e=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x1d6))[_0x33f538(0x1eb)](),_0x1677bd=resolveWorkspaceEnv(_0x16b08e||_0x36d787[_0x33f538(0x209)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x24c2ff&&!_0x1ee4a1)throw CliErrors[_0x33f538(0x204)](_0x33f538(0x207),_0x33f538(0x1fe)+CLI_BIN_NAME+_0x33f538(0x1e4)+_0x78ba94+_0x33f538(0x1ed)+CLI_BIN_NAME+_0x33f538(0x1e4)+_0x78ba94+_0x33f538(0x1e8));const _0x889d64=_0x1ee4a1||await resolveRemoteAppCode({'command':_0x78ba94,'appName':_0x24c2ff,'env':_0x1677bd,'accessKey':_0x36d787[_0x33f538(0x1e5)]}),_0x2142ae=writeWorkspaceConfig({'command':_0x78ba94,'appName':_0x24c2ff,'appcode':_0x889d64,'env':_0x1677bd,'shouldWriteEnv':!!_0x16b08e,'accessKey':_0x36d787['accessKey']});return{'ok':!![],'data':{'configPath':_0x2142ae,'app':_0x24c2ff||null,'appcode':_0x889d64,'env':_0x16b08e?_0x1677bd:null,'accessKeyWritten':![],'command':_0x33f538(0x1e3)+_0x78ba94},'message':buildWorkspaceMessage(_0x2142ae,_0x24c2ff,_0x889d64,_0x16b08e?_0x1677bd:undefined)};}async function resolveRemoteAppCode(_0xa9cade){const _0x2afd63=a51_0x142ac3;if(!_0xa9cade[_0x2afd63(0x1e5)])throw CliErrors[_0x2afd63(0x1f8)](_0x2afd63(0x1ff)+CLI_BIN_NAME+_0x2afd63(0x1e4)+_0xa9cade[_0x2afd63(0x1f2)]+'.');const {setActiveAK:_0x3d38d7}=await import(_0x2afd63(0x20b)),{getRemoteAppList:_0x2f7ced}=await import(_0x2afd63(0x1ec));_0x3d38d7(_0xa9cade[_0x2afd63(0x1e5)]);const _0x4e0dde=await _0x2f7ced({'env':_0xa9cade['env'],'accessKey':_0xa9cade['accessKey'],'noCache':![]}),_0x41201f=findAppByName(_0x4e0dde['items'],_0xa9cade[_0x2afd63(0x1f5)]);if(_0x41201f&&!isRuntimeAccessibleApp(_0x41201f))throw runtimeInaccessibleAppError(_0x41201f,'\x22'+_0xa9cade[_0x2afd63(0x1f5)]+'\x22');const _0x4264d0=_0x41201f?.[_0x2afd63(0x200)]?.[_0x2afd63(0x1eb)]();if(_0x4264d0)return _0x4264d0;const _0x3100d3=_0x4e0dde[_0x2afd63(0x1d7)][_0x2afd63(0x1e2)](_0x44caa5=>_0x44caa5[_0x2afd63(0x1f5)])[_0x2afd63(0x1fd)](Boolean),_0x483fc9=_0x3100d3['length']?'Available\x20apps:\x20'+Array[_0x2afd63(0x1dd)](new Set(_0x3100d3))[_0x2afd63(0x205)](',\x20')+'.':_0x2afd63(0x1e9)+CLI_BIN_NAME+_0x2afd63(0x1e7);throw CliErrors[_0x2afd63(0x204)](_0x2afd63(0x1f9)+_0xa9cade[_0x2afd63(0x1f5)]+_0x2afd63(0x208),_0x483fc9);}function writeWorkspaceConfig(_0x46e46a){const _0x4028f0=a51_0x142ac3,_0x39793b=resolveWriteConfigPath('project'),_0x23d6ac=readConfigFile(_0x39793b);_0x46e46a[_0x4028f0(0x1fc)]&&(_0x23d6ac[_0x4028f0(0x1d6)]=_0x46e46a[_0x4028f0(0x1d6)]);if(_0x46e46a[_0x4028f0(0x1f5)]){const _0x496574=isRecord(_0x23d6ac[_0x4028f0(0x1df)])?{..._0x23d6ac[_0x4028f0(0x1df)]}:{},_0x27a9e4=isRecord(_0x496574[_0x46e46a['appName']])?_0x496574[_0x46e46a[_0x4028f0(0x1f5)]]:{};_0x496574[_0x46e46a[_0x4028f0(0x1f5)]]={..._0x27a9e4,'appcode':_0x46e46a[_0x4028f0(0x203)]},_0x23d6ac['apps']=_0x496574,_0x23d6ac[_0x4028f0(0x201)]=_0x46e46a[_0x4028f0(0x1f5)];if(_0x23d6ac['app'])delete _0x23d6ac['app'];return writeAndReturn(_0x39793b,_0x23d6ac);}_0x23d6ac[_0x4028f0(0x203)]=_0x46e46a[_0x4028f0(0x203)];if(_0x23d6ac[_0x4028f0(0x1f6)])delete _0x23d6ac['app'];return writeAndReturn(_0x39793b,_0x23d6ac);}function writeAndReturn(_0xa8d65a,_0xbbb4c4){return writeConfigFile(_0xa8d65a,_0xbbb4c4),_0xa8d65a;}function resolveWorkspaceEnv(_0x1d1e35){const _0x3fe814=a51_0x142ac3;if(RUNTIME_ENV_VALUES[_0x3fe814(0x1ea)](_0x1d1e35))return _0x1d1e35;throw CliErrors['validation'](_0x3fe814(0x1f3)+_0x1d1e35+_0x3fe814(0x1ef)+RUNTIME_ENV_VALUES[_0x3fe814(0x205)](',\x20'));}function buildWorkspaceMessage(_0xd92288,_0x2b8e3f,_0x3f354d,_0x5af3f2){const _0x5a3d46=a51_0x142ac3,_0x4f1672=_0x2b8e3f?_0x2b8e3f+'\x20('+_0x3f354d+')':_0x3f354d,_0x196728=_0x5af3f2?_0x5a3d46(0x1d2)+_0x5af3f2:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xd92288+_0x5a3d46(0x1de)+_0x4f1672+_0x196728+_0x5a3d46(0x202);}function a51_0x48d5(_0x4ce92c,_0x5cc282){_0x4ce92c=_0x4ce92c-0x1d2;const _0x24b728=a51_0x24b7();let _0x48d5e8=_0x24b728[_0x4ce92c];return _0x48d5e8;}function isRecord(_0x4b9fa0){const _0x3a3345=a51_0x142ac3;return typeof _0x4b9fa0===_0x3a3345(0x1f7)&&_0x4b9fa0!==null&&!Array['isArray'](_0x4b9fa0);}function makeWorkspaceCommand(_0x510a0c){const _0x118397=a51_0x142ac3;return{'service':'workspace','command':_0x510a0c,'description':_0x510a0c===_0x118397(0x1dc)?_0x118397(0x1fa):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x118397(0x20c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x30a9ee){return executeWorkspaceUse(_0x30a9ee,_0x510a0c);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x142ac3(0x1dc)),makeWorkspaceCommand(a51_0x142ac3(0x1d4))];
1
+ const a51_0x496b31=a51_0x55ad;(function(_0x1d7def,_0x488395){const _0x2430bc=a51_0x55ad,_0x4e6d5e=_0x1d7def();while(!![]){try{const _0x2ca4ec=-parseInt(_0x2430bc(0x74))/0x1+parseInt(_0x2430bc(0x91))/0x2+parseInt(_0x2430bc(0x7b))/0x3*(parseInt(_0x2430bc(0x95))/0x4)+-parseInt(_0x2430bc(0x80))/0x5*(parseInt(_0x2430bc(0x86))/0x6)+-parseInt(_0x2430bc(0x93))/0x7*(-parseInt(_0x2430bc(0x8b))/0x8)+-parseInt(_0x2430bc(0x88))/0x9*(parseInt(_0x2430bc(0xae))/0xa)+parseInt(_0x2430bc(0x92))/0xb*(-parseInt(_0x2430bc(0x78))/0xc);if(_0x2ca4ec===_0x488395)break;else _0x4e6d5e['push'](_0x4e6d5e['shift']());}catch(_0x1779a1){_0x4e6d5e['push'](_0x4e6d5e['shift']());}}}(a51_0x75f0,0xb9543));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a51_0x75f0(){const _0xa43455=['appName','trim','696jPNvja','project','Usage:\x20','Target\x20environment','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','from','1561478QGdBaL','1763465aDSMCw','95984oOosoC','str','4jfWzfI','join','authRequired','map','Missing\x20workspace\x20app\x20selector.','filter','use','../../commands/app/remote-source.js','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x0aDefault\x20app:\x20','validation','env','\x20--appcode\x20<code>\x20[--env\x20daily]','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','isArray','\x20workspace\x20','appcode','includes','workspace\x20','appCode','yes','init','App\x20\x22','\x22\x20not\x20found.','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','308690MWGwyG','shouldWriteEnv','Run\x20`','657695OXtFga','write','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','string','96nbNvnP','workspace','accessKey','4040097DzDtIn','items','\x0aAccessKey:\x20not\x20written','object','Invalid\x20env\x20\x22','2950955HXiwPY','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','apps','defaultApp','envName','app','6KmdFNH','command','9XrDXma'];a51_0x75f0=function(){return _0xa43455;};return a51_0x75f0();}import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a51_0x55ad(_0x3ec0d9,_0x26efb2){_0x3ec0d9=_0x3ec0d9-0x74;const _0x75f0bf=a51_0x75f0();let _0x55ad7c=_0x75f0bf[_0x3ec0d9];return _0x55ad7c;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a51_0x496b31(0x85),'type':a51_0x496b31(0x77),'description':a51_0x496b31(0xa2)},{'name':a51_0x496b31(0xa5),'type':a51_0x496b31(0x77),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':a51_0x496b31(0xa0),'type':a51_0x496b31(0x77),'description':a51_0x496b31(0x8e),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x496b31(0xa9),'type':'boolean','description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0xf99835,_0x412753){const _0x33324c=a51_0x496b31,_0x26abd5=_0xf99835[_0x33324c(0x94)]('app')[_0x33324c(0x8a)](),_0x4a6431=_0xf99835[_0x33324c(0x94)]('appcode')[_0x33324c(0x8a)](),_0x2a4261=_0xf99835[_0x33324c(0x94)](_0x33324c(0xa0))[_0x33324c(0x8a)](),_0x3d1ebb=resolveWorkspaceEnv(_0x2a4261||_0xf99835[_0x33324c(0x84)]||DEFAULT_CONFIG_VALUES[_0x33324c(0xa0)]);if(!_0x26abd5&&!_0x4a6431)throw CliErrors[_0x33324c(0x9f)](_0x33324c(0x99),_0x33324c(0x8d)+CLI_BIN_NAME+_0x33324c(0xa4)+_0x412753+_0x33324c(0x76)+CLI_BIN_NAME+_0x33324c(0xa4)+_0x412753+_0x33324c(0xa1));const _0x184092=_0x4a6431||await resolveRemoteAppCode({'command':_0x412753,'appName':_0x26abd5,'env':_0x3d1ebb,'accessKey':_0xf99835[_0x33324c(0x7a)]}),_0x1971fd=writeWorkspaceConfig({'command':_0x412753,'appName':_0x26abd5,'appcode':_0x184092,'env':_0x3d1ebb,'shouldWriteEnv':!!_0x2a4261,'accessKey':_0xf99835['accessKey']});return{'ok':!![],'data':{'configPath':_0x1971fd,'app':_0x26abd5||null,'appcode':_0x184092,'env':_0x2a4261?_0x3d1ebb:null,'accessKeyWritten':![],'command':_0x33324c(0xa7)+_0x412753},'message':buildWorkspaceMessage(_0x1971fd,_0x26abd5,_0x184092,_0x2a4261?_0x3d1ebb:undefined)};}async function resolveRemoteAppCode(_0x46f437){const _0x115970=a51_0x496b31;if(!_0x46f437['accessKey'])throw CliErrors[_0x115970(0x97)](_0x115970(0x9d)+CLI_BIN_NAME+_0x115970(0xa4)+_0x46f437[_0x115970(0x87)]+'.');const {setActiveAK:_0x5ede20}=await import('../../core/api-client.js'),{getRemoteAppList:_0x5f5709}=await import(_0x115970(0x9c));_0x5ede20(_0x46f437[_0x115970(0x7a)]);const _0x233ec3=await _0x5f5709({'env':_0x46f437['env'],'accessKey':_0x46f437[_0x115970(0x7a)],'noCache':![]}),_0x38bf91=findAppByName(_0x233ec3[_0x115970(0x7c)],_0x46f437[_0x115970(0x89)]);if(_0x38bf91&&!isRuntimeAccessibleApp(_0x38bf91))throw runtimeInaccessibleAppError(_0x38bf91,'\x22'+_0x46f437['appName']+'\x22');const _0x1670c3=_0x38bf91?.[_0x115970(0xa8)]?.[_0x115970(0x8a)]();if(_0x1670c3)return _0x1670c3;const _0x28a2b9=_0x233ec3[_0x115970(0x7c)][_0x115970(0x98)](_0x203ef9=>_0x203ef9[_0x115970(0x89)])[_0x115970(0x9a)](Boolean),_0x1b24d0=_0x28a2b9['length']?'Available\x20apps:\x20'+Array[_0x115970(0x90)](new Set(_0x28a2b9))[_0x115970(0x96)](',\x20')+'.':_0x115970(0xb0)+CLI_BIN_NAME+_0x115970(0x8f);throw CliErrors[_0x115970(0x9f)](_0x115970(0xab)+_0x46f437[_0x115970(0x89)]+_0x115970(0xac),_0x1b24d0);}function writeWorkspaceConfig(_0x7bbc88){const _0x97b5ce=a51_0x496b31,_0x59358f=resolveWriteConfigPath(_0x97b5ce(0x8c)),_0x340fe6=readConfigFile(_0x59358f);_0x7bbc88[_0x97b5ce(0xaf)]&&(_0x340fe6[_0x97b5ce(0xa0)]=_0x7bbc88['env']);if(_0x7bbc88[_0x97b5ce(0x89)]){const _0x175be3=isRecord(_0x340fe6[_0x97b5ce(0x82)])?{..._0x340fe6[_0x97b5ce(0x82)]}:{},_0x17c82a=isRecord(_0x175be3[_0x7bbc88[_0x97b5ce(0x89)]])?_0x175be3[_0x7bbc88[_0x97b5ce(0x89)]]:{};_0x175be3[_0x7bbc88[_0x97b5ce(0x89)]]={..._0x17c82a,'appcode':_0x7bbc88[_0x97b5ce(0xa5)]},_0x340fe6['apps']=_0x175be3,_0x340fe6[_0x97b5ce(0x83)]=_0x7bbc88[_0x97b5ce(0x89)];if(_0x340fe6[_0x97b5ce(0x85)])delete _0x340fe6['app'];return writeAndReturn(_0x59358f,_0x340fe6);}_0x340fe6[_0x97b5ce(0xa5)]=_0x7bbc88[_0x97b5ce(0xa5)];if(_0x340fe6[_0x97b5ce(0x85)])delete _0x340fe6[_0x97b5ce(0x85)];return writeAndReturn(_0x59358f,_0x340fe6);}function writeAndReturn(_0x451847,_0x3f59f2){return writeConfigFile(_0x451847,_0x3f59f2),_0x451847;}function resolveWorkspaceEnv(_0x112b29){const _0x3d0e7f=a51_0x496b31;if(RUNTIME_ENV_VALUES[_0x3d0e7f(0xa6)](_0x112b29))return _0x112b29;throw CliErrors[_0x3d0e7f(0x9f)](_0x3d0e7f(0x7f)+_0x112b29+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x3d0e7f(0x96)](',\x20'));}function buildWorkspaceMessage(_0x35ba61,_0x30b769,_0x4cea42,_0x1d7e66){const _0x55d6e9=a51_0x496b31,_0x57193e=_0x30b769?_0x30b769+'\x20('+_0x4cea42+')':_0x4cea42,_0x4be2e9=_0x1d7e66?'\x0aEnv:\x20'+_0x1d7e66:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x35ba61+_0x55d6e9(0x9e)+_0x57193e+_0x4be2e9+_0x55d6e9(0x7d);}function isRecord(_0x15f5c1){const _0x368ce2=a51_0x496b31;return typeof _0x15f5c1===_0x368ce2(0x7e)&&_0x15f5c1!==null&&!Array[_0x368ce2(0xa3)](_0x15f5c1);}function makeWorkspaceCommand(_0x2745b2){const _0x36bbbb=a51_0x496b31;return{'service':_0x36bbbb(0x79),'command':_0x2745b2,'description':_0x2745b2===_0x36bbbb(0xaa)?_0x36bbbb(0x81):_0x36bbbb(0xad),'risk':_0x36bbbb(0x75),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x1fe6d5){return executeWorkspaceUse(_0x1fe6d5,_0x2745b2);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x496b31(0xaa)),makeWorkspaceCommand(a51_0x496b31(0x9b))];
@@ -1 +1 @@
1
- const a52_0x4287fd=a52_0x2e87;(function(_0x530bc6,_0xb226dd){const _0x2bfbac=a52_0x2e87,_0x5b4c93=_0x530bc6();while(!![]){try{const _0x27af80=parseInt(_0x2bfbac(0xb5))/0x1+parseInt(_0x2bfbac(0xce))/0x2+-parseInt(_0x2bfbac(0xb7))/0x3+-parseInt(_0x2bfbac(0xc3))/0x4+parseInt(_0x2bfbac(0xc8))/0x5+-parseInt(_0x2bfbac(0xb8))/0x6*(parseInt(_0x2bfbac(0xbc))/0x7)+parseInt(_0x2bfbac(0xcd))/0x8*(-parseInt(_0x2bfbac(0xba))/0x9);if(_0x27af80===_0xb226dd)break;else _0x5b4c93['push'](_0x5b4c93['shift']());}catch(_0x874125){_0x5b4c93['push'](_0x5b4c93['shift']());}}}(a52_0x520c,0xdef10));function a52_0x2e87(_0x41f20a,_0x11a2a6){_0x41f20a=_0x41f20a-0xb1;const _0x520c47=a52_0x520c();let _0x2e8792=_0x520c47[_0x41f20a];return _0x2e8792;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a52_0x4287fd(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xca)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb1)],'importable':!![]},'pageSize':{'description':a52_0x4287fd(0xc7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x4287fd(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x4287fd(0xbf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x4287fd(0xb9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x4287fd(0xc4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x4287fd(0xcf),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb4)],'importable':!![]},'locale':{'description':a52_0x4287fd(0xc2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb2)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xba3938])=>_0xba3938[a52_0x4287fd(0xbe)])['map'](([_0x2d5b18])=>_0x2d5b18));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x6d5471])=>_0x6d5471[a52_0x4287fd(0xbb)])['map'](([_0x4a8800,_0x146f46])=>[_0x4a8800,[..._0x146f46[a52_0x4287fd(0xbb)]||[]]]));function a52_0x520c(){const _0x291d90=['defaultValue','env','has','importable','3139808KowqKG','2842484UbecrG','Risk\x20level','format','locale','filter','riskLevel','968606ItUlBH','Config\x20key.\x20Top-level:\x20','3312132SdXEIf','18qzWsGA','Override\x20SkillHub\x20domain','18RtQAlL','enumValues','279853BftqyT','Target\x20environment','cliSettableTopLevel','Override\x20runtime\x20domain','join','Override\x20API\x20domain','Locale','1747692bVKEQc','Access\x20key\x20(client-ak\x20auth)','legacyCompatOnly','entries','Default\x20page\x20size','4845880pNMzSH'];a52_0x520c=function(){return _0x291d90;};return a52_0x520c();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)[a52_0x4287fd(0xb3)](([,_0x403cd7])=>_0x403cd7[a52_0x4287fd(0xcc)])['map'](([_0x448a75])=>_0x448a75);export function getConfigFieldSchema(_0x1ada97){return CONFIG_FIELD_SCHEMAS[_0x1ada97];}export function getConfigEnumValues(_0x292332){const _0x635401=a52_0x4287fd;return getConfigFieldSchema(_0x292332)?.[_0x635401(0xbb)];}export function getConfigDefaultValue(_0x30f8b1){const _0x4fc3d3=a52_0x4287fd;return getConfigFieldSchema(_0x30f8b1)?.[_0x4fc3d3(0xc9)];}export function isTopLevelConfigKey(_0x23c18d){const _0x478200=a52_0x4287fd;return TOP_LEVEL_CONFIG_KEYS[_0x478200(0xcb)](_0x23c18d);}export function isLegacyCompatConfigKey(_0x12c23f){const _0x1c5b08=a52_0x4287fd;return getConfigFieldSchema(_0x12c23f)?.[_0x1c5b08(0xc5)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x191866){const _0x284fba=a52_0x4287fd;return[..._0x191866][_0x284fba(0xc0)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xf568a2=a52_0x4287fd;return _0xf568a2(0xb6)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x252ff3){return{'env':_0x252ff3,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ function a52_0x5ae9(){const _0x270e67=['2660pzETkv',';\x20local\x20alias:\x20apps.<alias>.appcode','has','2404070VKItyg','Target\x20environment','format','locale','map','defaultValue','2600388mchfpB','join','121480CfPFRt','1541024gjrOcm','Default\x20output\x20format','Default\x20page\x20size','enumValues','Override\x20SkillHub\x20domain','1882362GUIjDN','Risk\x20level','Override\x20runtime\x20domain','Override\x20user\x20domain','518512ZGlOTU','filter','importable','cliSettableTopLevel','legacyCompatOnly','entries','6476335fmBJRw','riskLevel','Locale'];a52_0x5ae9=function(){return _0x270e67;};return a52_0x5ae9();}const a52_0x426dcc=a52_0x1031;(function(_0xad8ddb,_0x3985d6){const _0x5abbfd=a52_0x1031,_0x2edd10=_0xad8ddb();while(!![]){try{const _0x294103=-parseInt(_0x5abbfd(0x175))/0x1+-parseInt(_0x5abbfd(0x18a))/0x2+-parseInt(_0x5abbfd(0x17a))/0x3+parseInt(_0x5abbfd(0x17e))/0x4+-parseInt(_0x5abbfd(0x184))/0x5+-parseInt(_0x5abbfd(0x190))/0x6+-parseInt(_0x5abbfd(0x187))/0x7*(-parseInt(_0x5abbfd(0x174))/0x8);if(_0x294103===_0x3985d6)break;else _0x2edd10['push'](_0x2edd10['shift']());}catch(_0x5c93e6){_0x2edd10['push'](_0x2edd10['shift']());}}}(a52_0x5ae9,0xc37ee));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a52_0x426dcc(0x18b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a52_0x426dcc(0x176),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x426dcc(0x18c)],'importable':!![]},'pageSize':{'description':a52_0x426dcc(0x177),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x426dcc(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x426dcc(0x17c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x426dcc(0x179),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x426dcc(0x17b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x426dcc(0x185)],'importable':!![]},'locale':{'description':a52_0x426dcc(0x186),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x426dcc(0x18d)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x426dcc(0x183)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x19fd52])=>_0x19fd52[a52_0x426dcc(0x181)])[a52_0x426dcc(0x18e)](([_0x11a822])=>_0x11a822));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x426dcc(0x183)](CONFIG_FIELD_SCHEMAS)[a52_0x426dcc(0x17f)](([,_0x1cdfd0])=>_0x1cdfd0[a52_0x426dcc(0x178)])[a52_0x426dcc(0x18e)](([_0x558036,_0x16e3e2])=>[_0x558036,[..._0x16e3e2[a52_0x426dcc(0x178)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x426dcc(0x183)](CONFIG_FIELD_SCHEMAS)[a52_0x426dcc(0x17f)](([,_0xfd7583])=>_0xfd7583[a52_0x426dcc(0x180)])[a52_0x426dcc(0x18e)](([_0x31810a])=>_0x31810a);export function getConfigFieldSchema(_0x2df3cb){return CONFIG_FIELD_SCHEMAS[_0x2df3cb];}export function getConfigEnumValues(_0x25efb6){const _0x3d3791=a52_0x426dcc;return getConfigFieldSchema(_0x25efb6)?.[_0x3d3791(0x178)];}export function getConfigDefaultValue(_0xd9498b){const _0x56030b=a52_0x426dcc;return getConfigFieldSchema(_0xd9498b)?.[_0x56030b(0x18f)];}export function isTopLevelConfigKey(_0x314753){const _0x34905f=a52_0x426dcc;return TOP_LEVEL_CONFIG_KEYS[_0x34905f(0x189)](_0x314753);}function a52_0x1031(_0x10fc59,_0x29a156){_0x10fc59=_0x10fc59-0x173;const _0x5ae9d1=a52_0x5ae9();let _0x10314c=_0x5ae9d1[_0x10fc59];return _0x10314c;}export function isLegacyCompatConfigKey(_0x3d881b){const _0x3ab666=a52_0x426dcc;return getConfigFieldSchema(_0x3d881b)?.[_0x3ab666(0x182)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x956704){const _0x59b40f=a52_0x426dcc;return[..._0x956704][_0x59b40f(0x173)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x386d31=a52_0x426dcc;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x386d31(0x188);}export function buildAppProfileListFields(_0x1ee2cb){return{'env':_0x1ee2cb,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a53_0x5ea453=a53_0x42df;(function(_0x416315,_0x5ecb54){const _0x7b24dc=a53_0x42df,_0x481291=_0x416315();while(!![]){try{const _0x5179bd=-parseInt(_0x7b24dc(0x1b6))/0x1+parseInt(_0x7b24dc(0x1b4))/0x2+parseInt(_0x7b24dc(0x1b3))/0x3*(parseInt(_0x7b24dc(0x1bd))/0x4)+-parseInt(_0x7b24dc(0x1b8))/0x5+parseInt(_0x7b24dc(0x1b7))/0x6*(parseInt(_0x7b24dc(0x1b9))/0x7)+parseInt(_0x7b24dc(0x1ba))/0x8+parseInt(_0x7b24dc(0x1bb))/0x9;if(_0x5179bd===_0x5ecb54)break;else _0x481291['push'](_0x481291['shift']());}catch(_0x24d873){_0x481291['push'](_0x481291['shift']());}}}(a53_0xb771,0xc5f41));function a53_0xb771(){const _0x4d023e=['4HczmmA','2971704eacNMb','1260978BTemYa','PUBLISHED','964742ngVMBX','36426wqVUal','5066625FqxBJs','623WIYiMX','4860936NxmVsP','179019unWFUO','UNPUBLISH'];a53_0xb771=function(){return _0x4d023e;};return a53_0xb771();}function a53_0x42df(_0x1679f8,_0x458bd1){_0x1679f8=_0x1679f8-0x1b3;const _0xb77158=a53_0xb771();let _0x42df41=_0xb77158[_0x1679f8];return _0x42df41;}export const APP_PUBLISH_STATUS={'Published':a53_0x5ea453(0x1b5),'Unpublished':a53_0x5ea453(0x1bc)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a53_0x5e35ce=a53_0x3aea;function a53_0x1f53(){const _0x53b68c=['31324986crRVvO','971104UoaUgi','2417808qWvxNq','571387aaRPjV','2751594PhgnhJ','1973436KfcPbg','21BFMENG','19446gkDyFX','UNPUBLISH','PUBLISHED','1525HVmlUq','Published'];a53_0x1f53=function(){return _0x53b68c;};return a53_0x1f53();}function a53_0x3aea(_0x132999,_0x3ba512){_0x132999=_0x132999-0x14e;const _0x1f534c=a53_0x1f53();let _0x3aeae3=_0x1f534c[_0x132999];return _0x3aeae3;}(function(_0xeffd26,_0x325398){const _0x3461a2=a53_0x3aea,_0x42a2f9=_0xeffd26();while(!![]){try{const _0x226f33=parseInt(_0x3461a2(0x151))/0x1+-parseInt(_0x3461a2(0x152))/0x2+-parseInt(_0x3461a2(0x150))/0x3+-parseInt(_0x3461a2(0x153))/0x4+parseInt(_0x3461a2(0x158))/0x5*(-parseInt(_0x3461a2(0x155))/0x6)+-parseInt(_0x3461a2(0x154))/0x7*(-parseInt(_0x3461a2(0x14f))/0x8)+parseInt(_0x3461a2(0x14e))/0x9;if(_0x226f33===_0x325398)break;else _0x42a2f9['push'](_0x42a2f9['shift']());}catch(_0x3c3212){_0x42a2f9['push'](_0x42a2f9['shift']());}}}(a53_0x1f53,0xb7b7c));export const APP_PUBLISH_STATUS={'Published':a53_0x5e35ce(0x157),'Unpublished':a53_0x5e35ce(0x156)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x5e35ce(0x159)];