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

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 (111) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -0
  10. package/lib/commands/app-config/index.js +1 -0
  11. package/lib/commands/app-config/shared.js +1 -0
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -0
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/types.js +1 -1
  87. package/lib/generated/build-info.js +1 -1
  88. package/lib/help.js +1 -1
  89. package/lib/skills/npx-skills-add.js +1 -1
  90. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  91. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  92. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  93. package/lib/skills/runtime-skill-sync/links.js +1 -1
  94. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  95. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  96. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  97. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  98. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  99. package/lib/skills/runtime-skill-sync/push.js +1 -1
  100. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  101. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  103. package/lib/skills/runtime-skill-sync.js +1 -1
  104. package/lib/utils/apply-jq-filter.js +1 -1
  105. package/lib/utils/logger.js +1 -1
  106. package/lib/utils/params.js +1 -1
  107. package/lib/utils/platform.js +1 -1
  108. package/lib/utils/update-notice.js +1 -1
  109. package/lib/utils/version.js +1 -1
  110. package/lib/utils/write-cli-side-channel.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- const a37_0x4a1a34=a37_0x34ae;(function(_0x2f961f,_0x4833f0){const _0x5899a6=a37_0x34ae,_0x1ab090=_0x2f961f();while(!![]){try{const _0x4b23ee=parseInt(_0x5899a6(0x82))/0x1*(-parseInt(_0x5899a6(0x91))/0x2)+-parseInt(_0x5899a6(0x8f))/0x3+-parseInt(_0x5899a6(0xa2))/0x4*(-parseInt(_0x5899a6(0x92))/0x5)+-parseInt(_0x5899a6(0x89))/0x6+-parseInt(_0x5899a6(0x87))/0x7*(-parseInt(_0x5899a6(0x9d))/0x8)+parseInt(_0x5899a6(0x93))/0x9*(-parseInt(_0x5899a6(0x94))/0xa)+parseInt(_0x5899a6(0x9b))/0xb*(parseInt(_0x5899a6(0xa0))/0xc);if(_0x4b23ee===_0x4833f0)break;else _0x1ab090['push'](_0x1ab090['shift']());}catch(_0xecfd54){_0x1ab090['push'](_0x1ab090['shift']());}}}(a37_0x2b55,0x8e35a));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_0x2b55(){const _0x3bc425=['\x20local\x20Skill(s).','list','1075080AesRCs','\x20remote\x20Skill(s).','2NAzPEL','22050fFZkcv','9VDbHUk','909990oNTdyf','map','../../../core/api-client.js','../../../skills/runtime-skill-sync.js','code','appCode','remote','33ZPxVmN','accessKey','832152sdeEEX','scope','production','761268ytYIbk','trim','836IzQqKd','envName','authRequired','146486jIApDQ','company','length','personal','Listed\x20','35UObtUF','filter','2722602haJTlN','str','skill','local'];a37_0x2b55=function(){return _0x3bc425;};return a37_0x2b55();}export const listCommand={'service':a37_0x4a1a34(0x8b),'command':a37_0x4a1a34(0x8e),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x48ff39){const _0x131e7c=a37_0x4a1a34,_0x2be98b=_0x48ff39[_0x131e7c(0x8a)](_0x131e7c(0x98)),_0x40c2bb=normalizeListScope(_0x48ff39['str'](_0x131e7c(0x9e)));if(_0x48ff39['bool']('local')){const _0x5bdf9d=_0x48ff39[_0x131e7c(0x9c)];if(!_0x5bdf9d)throw CliErrors[_0x131e7c(0x81)]();const {listLocalRuntimeSkills:_0x3647c6}=await import(_0x131e7c(0x97)),_0x3c5625=_0x3647c6({'env':_0x48ff39[_0x131e7c(0x80)]??_0x131e7c(0x9f),'accessKey':_0x5bdf9d,'appCode':_0x48ff39['appCode'],'scopes':listScopeToRuntimeScopes(_0x40c2bb),'code':_0x2be98b[_0x131e7c(0xa1)]()||undefined}),_0x273f33=groupLocalRuntimeSkills(_0x3c5625);return{'ok':!![],'data':{'appCode':_0x48ff39[_0x131e7c(0x99)],'source':_0x131e7c(0x8c),'scope':_0x40c2bb,'total':_0x3c5625[_0x131e7c(0x84)],'personal':_0x273f33[_0x131e7c(0x85)][_0x131e7c(0x84)],'company':_0x273f33[_0x131e7c(0x83)][_0x131e7c(0x84)],'items':_0x3c5625['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x273f33['personal'][_0x131e7c(0x95)](summarizeLocalRuntimeSkill),'company':_0x273f33[_0x131e7c(0x83)][_0x131e7c(0x95)](summarizeLocalRuntimeSkill)}},'message':_0x131e7c(0x86)+_0x3c5625['length']+_0x131e7c(0x8d)};}const {listRuntimeSkills:_0x13a151}=await import(_0x131e7c(0x96)),_0x5dc32a=await _0x13a151({'appCode':_0x48ff39['appCode'],'scope':listScopeToRemoteScope(_0x40c2bb),'code':_0x2be98b['trim']()||undefined}),_0xa7724e=shouldListScope(_0x40c2bb,_0x131e7c(0x85))?_0x5dc32a[_0x131e7c(0x85)]??[]:[],_0x38edda=shouldListScope(_0x40c2bb,_0x131e7c(0x83))?_0x5dc32a[_0x131e7c(0x83)]??[]:[],_0x67f049=[..._0xa7724e,..._0x38edda];return{'ok':!![],'data':{'appCode':_0x48ff39[_0x131e7c(0x99)],'source':_0x131e7c(0x9a),'scope':_0x40c2bb,'total':_0x67f049[_0x131e7c(0x84)],'personal':_0xa7724e[_0x131e7c(0x84)],'company':_0x38edda[_0x131e7c(0x84)],'items':_0x67f049[_0x131e7c(0x95)](summarizeRuntimeSkill),'skills':{'personal':_0xa7724e['map'](summarizeRuntimeSkill),'company':_0x38edda['map'](summarizeRuntimeSkill)}},'message':_0x131e7c(0x86)+_0x67f049['length']+_0x131e7c(0x90)};}};function a37_0x34ae(_0x2a890e,_0x3b5658){_0x2a890e=_0x2a890e-0x80;const _0x2b558f=a37_0x2b55();let _0x34aefa=_0x2b558f[_0x2a890e];return _0x34aefa;}function groupLocalRuntimeSkills(_0x1d2fa1){const _0x11f3a0=a37_0x4a1a34;return{'personal':_0x1d2fa1[_0x11f3a0(0x88)](_0x31b395=>_0x31b395[_0x11f3a0(0x9e)]==='personal'),'company':_0x1d2fa1['filter'](_0x1d89d6=>_0x1d89d6[_0x11f3a0(0x9e)]===_0x11f3a0(0x83)),'builtin':_0x1d2fa1[_0x11f3a0(0x88)](_0x511e2f=>_0x511e2f[_0x11f3a0(0x9e)]==='builtin')};}
1
+ const a40_0x23a671=a40_0x5ad1;(function(_0xca7109,_0x39860a){const _0x26bd41=a40_0x5ad1,_0x5a010c=_0xca7109();while(!![]){try{const _0xe5051a=parseInt(_0x26bd41(0x98))/0x1+parseInt(_0x26bd41(0x8b))/0x2*(parseInt(_0x26bd41(0x9a))/0x3)+parseInt(_0x26bd41(0x93))/0x4+-parseInt(_0x26bd41(0xa1))/0x5*(parseInt(_0x26bd41(0x8f))/0x6)+-parseInt(_0x26bd41(0x94))/0x7*(parseInt(_0x26bd41(0x96))/0x8)+parseInt(_0x26bd41(0xa7))/0x9+parseInt(_0x26bd41(0x90))/0xa*(-parseInt(_0x26bd41(0x99))/0xb);if(_0xe5051a===_0x39860a)break;else _0x5a010c['push'](_0x5a010c['shift']());}catch(_0x532ae4){_0x5a010c['push'](_0x5a010c['shift']());}}}(a40_0xb8cf,0x953db));import{CliErrors}from'../../../errors.js';function a40_0x5ad1(_0x13e4ff,_0x4596bd){_0x13e4ff=_0x13e4ff-0x88;const _0xb8cf69=a40_0xb8cf();let _0x5ad18b=_0xb8cf69[_0x13e4ff];return _0x5ad18b;}function a40_0xb8cf(){const _0x4e4711=['local','5WlhanE','str','length','appCode','bool','list','5943933OtgrpJ','../../../skills/runtime-skill-sync.js','trim','scope','company','\x20local\x20Skill(s).','59980VYGkuS','remote','envName','filter','2207718axdRii','27420170aBPgvh','map','production','4132428uEEQEl','11683QCpoEr','accessKey','88umVMvz','personal','1086396dRdEjp','11XptVhL','96QlmhzZ','skill','Listed\x20','\x20remote\x20Skill(s).','authRequired','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache'];a40_0xb8cf=function(){return _0x4e4711;};return a40_0xb8cf();}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':a40_0x23a671(0x9b),'command':a40_0x23a671(0xa6),'description':a40_0x23a671(0x9f),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x485810){const _0x3f70e6=a40_0x23a671,_0x186a0d=_0x485810[_0x3f70e6(0xa2)]('code'),_0x163122=normalizeListScope(_0x485810[_0x3f70e6(0xa2)]('scope'));if(_0x485810[_0x3f70e6(0xa5)](_0x3f70e6(0xa0))){const _0x5bcb2c=_0x485810[_0x3f70e6(0x95)];if(!_0x5bcb2c)throw CliErrors[_0x3f70e6(0x9e)]();const {listLocalRuntimeSkills:_0x36ab90}=await import(_0x3f70e6(0xa8)),_0xbe3d3a=_0x36ab90({'env':_0x485810[_0x3f70e6(0x8d)]??_0x3f70e6(0x92),'accessKey':_0x5bcb2c,'appCode':_0x485810[_0x3f70e6(0xa4)],'scopes':listScopeToRuntimeScopes(_0x163122),'code':_0x186a0d[_0x3f70e6(0xa9)]()||undefined}),_0x39c6bb=groupLocalRuntimeSkills(_0xbe3d3a);return{'ok':!![],'data':{'appCode':_0x485810['appCode'],'source':'local','scope':_0x163122,'total':_0xbe3d3a[_0x3f70e6(0xa3)],'personal':_0x39c6bb[_0x3f70e6(0x97)][_0x3f70e6(0xa3)],'company':_0x39c6bb[_0x3f70e6(0x89)][_0x3f70e6(0xa3)],'items':_0xbe3d3a[_0x3f70e6(0x91)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x39c6bb['personal'][_0x3f70e6(0x91)](summarizeLocalRuntimeSkill),'company':_0x39c6bb[_0x3f70e6(0x89)][_0x3f70e6(0x91)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0xbe3d3a[_0x3f70e6(0xa3)]+_0x3f70e6(0x8a)};}const {listRuntimeSkills:_0x41b26c}=await import('../../../core/api-client.js'),_0x1b77cf=await _0x41b26c({'appCode':_0x485810[_0x3f70e6(0xa4)],'scope':listScopeToRemoteScope(_0x163122),'code':_0x186a0d[_0x3f70e6(0xa9)]()||undefined}),_0x24ad81=shouldListScope(_0x163122,_0x3f70e6(0x97))?_0x1b77cf[_0x3f70e6(0x97)]??[]:[],_0x12ef07=shouldListScope(_0x163122,_0x3f70e6(0x89))?_0x1b77cf[_0x3f70e6(0x89)]??[]:[],_0x39055d=[..._0x24ad81,..._0x12ef07];return{'ok':!![],'data':{'appCode':_0x485810[_0x3f70e6(0xa4)],'source':_0x3f70e6(0x8c),'scope':_0x163122,'total':_0x39055d[_0x3f70e6(0xa3)],'personal':_0x24ad81[_0x3f70e6(0xa3)],'company':_0x12ef07[_0x3f70e6(0xa3)],'items':_0x39055d['map'](summarizeRuntimeSkill),'skills':{'personal':_0x24ad81['map'](summarizeRuntimeSkill),'company':_0x12ef07[_0x3f70e6(0x91)](summarizeRuntimeSkill)}},'message':_0x3f70e6(0x9c)+_0x39055d['length']+_0x3f70e6(0x9d)};}};function groupLocalRuntimeSkills(_0x3d103d){const _0x412971=a40_0x23a671;return{'personal':_0x3d103d[_0x412971(0x8e)](_0x21dec2=>_0x21dec2[_0x412971(0x88)]===_0x412971(0x97)),'company':_0x3d103d['filter'](_0x2c06be=>_0x2c06be[_0x412971(0x88)]===_0x412971(0x89)),'builtin':_0x3d103d[_0x412971(0x8e)](_0x221bdc=>_0x221bdc['scope']==='builtin')};}
@@ -1 +1 @@
1
- const a38_0x2a55a5=a38_0x509d;(function(_0x5eb044,_0x50718e){const _0x53059b=a38_0x509d,_0x228727=_0x5eb044();while(!![]){try{const _0x1371bf=parseInt(_0x53059b(0x161))/0x1*(parseInt(_0x53059b(0x17d))/0x2)+parseInt(_0x53059b(0x17b))/0x3+-parseInt(_0x53059b(0x16b))/0x4+-parseInt(_0x53059b(0x17e))/0x5*(parseInt(_0x53059b(0x180))/0x6)+-parseInt(_0x53059b(0x177))/0x7*(-parseInt(_0x53059b(0x188))/0x8)+-parseInt(_0x53059b(0x150))/0x9*(parseInt(_0x53059b(0x183))/0xa)+parseInt(_0x53059b(0x15c))/0xb;if(_0x1371bf===_0x50718e)break;else _0x228727['push'](_0x228727['shift']());}catch(_0x4b27ef){_0x228727['push'](_0x228727['shift']());}}}(a38_0x502b,0xd90b6));function a38_0x502b(){const _0x3e74f6=['resolvedSlug','83RruYwx','bool','resolvedVersion','Updated\x20personal\x20Skill\x20','appCode','submitted','authRequired','POST','scope','Submitted\x20company\x20Skill\x20','5630504Dzndfo','confirmWarnings','confirm-warnings','/publish','NAMESPACE_ONLY','skill','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','company','(unknown)','personal','accessKey','path','12397XnThUB','Company\x20Skill\x20push\x20validation\x20failed\x20for\x20','length','/api/cli/v1/skills/','162669zrwclg','write','2642IWluXm','7576000YziYZt','validation','6lpuhQm','input','valid','20AVwpNM','errors','../../../skills/runtime-skill-sync.js','skillCode','Company\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','5624EhFdqm','version','5036922BsvSJN','Builtin\x20Skill\x20','../../../core/api-client.js','join','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Review\x20the\x20warnings\x20and\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit:\x20','dir','warnings','SkillHub\x20validation\x20returned\x20invalid.','builtin','str','push','38745047xpcPie','\x20for\x20review','files','PRIVATE'];a38_0x502b=function(){return _0x3e74f6;};return a38_0x502b();}import{CliErrors}from'../../../errors.js';import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_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_0x2a55a5(0x170),'command':a38_0x2a55a5(0x15b),'description':a38_0x2a55a5(0x171),'risk':a38_0x2a55a5(0x17c),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],async 'dryRun'(_0x53e4cb){const _0x8919e4=a38_0x2a55a5,{getRuntimeSkillByCode:_0x4188f0,validateRuntimeSkillPublish:_0x3ffc34}=await import(_0x8919e4(0x152)),{readPushDirectory:_0x13afa0,resolvePushDirectoryIdentity:_0x5ae070}=await import(_0x8919e4(0x185));if(!_0x53e4cb[_0x8919e4(0x175)])throw CliErrors[_0x8919e4(0x167)]();const _0x3efba2=resolvePushScope(_0x53e4cb),_0x430345=validateSkillDirectory(_0x53e4cb[_0x8919e4(0x15a)]('dir'));throwIfSkillValidationFailed(_0x430345);const _0x12d5da=_0x13afa0(_0x430345['dir'],_0x53e4cb[_0x8919e4(0x165)],{'targetScope':_0x3efba2});if(_0x3efba2===_0x8919e4(0x172)){const _0x48dcbb=_0x5ae070(_0x430345['dir'],_0x53e4cb['appCode']),_0x157863=await _0x4188f0(_0x53e4cb['appCode'],_0x48dcbb['skillCode']);throwIfBuiltinPushTarget(_0x157863);const _0xab43f=await _0x3ffc34(_0x53e4cb[_0x8919e4(0x165)],_0x12d5da['input'],{'visibility':_0x8919e4(0x16f)});return{'method':_0x8919e4(0x168),'url':_0x8919e4(0x17a)+_0x53e4cb[_0x8919e4(0x165)]+'/publish/validate','body':{'skillCode':_0x12d5da[_0x8919e4(0x186)],'visibility':_0x8919e4(0x16f),'valid':_0xab43f[_0x8919e4(0x182)],'errors':_0xab43f[_0x8919e4(0x184)],'warnings':_0xab43f[_0x8919e4(0x157)],'resolvedSlug':_0xab43f[_0x8919e4(0x160)],'resolvedVersion':_0xab43f[_0x8919e4(0x163)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}return{'method':_0x8919e4(0x168),'url':_0x8919e4(0x17a)+_0x53e4cb[_0x8919e4(0x165)]+_0x8919e4(0x16e),'body':{'skillCode':_0x12d5da[_0x8919e4(0x186)],'visibility':_0x8919e4(0x15f),'files':_0x12d5da[_0x8919e4(0x181)][_0x8919e4(0x15e)]?.['files']['map'](_0x4c7f44=>_0x4c7f44[_0x8919e4(0x176)])??[]},'description':'Preview\x20a\x20personal\x20Skill\x20push\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};},async 'execute'(_0x5b833c){const _0x2d0ca4=a38_0x2a55a5,{createPersonalRuntimeSkill:_0x34f00d,downloadRuntimeSkillPackage:_0x210784,getRuntimeSkillByCode:_0x7508ba,publishCompanyRuntimeSkill:_0x582436,updatePersonalRuntimeSkill:_0x2d15e8,validateRuntimeSkillPublish:_0x3dedd8}=await import(_0x2d0ca4(0x152)),{verifyRuntimeSkillPackage:_0x20d1c3,verifyRuntimeSkillBundle:_0x5f5193,readPushDirectory:_0x462dc1,refreshPushDirectoryMetadataFromRemote:_0x58f7d2,recordPushedRuntimeSkill:_0x444f49,resolvePushDirectoryIdentity:_0x191c79}=await import('../../../skills/runtime-skill-sync.js');if(!_0x5b833c[_0x2d0ca4(0x175)])throw CliErrors['authRequired']();const _0x147d5e=resolvePushScope(_0x5b833c),_0x2909bf=_0x5b833c[_0x2d0ca4(0x15a)](_0x2d0ca4(0x156)),_0x38788b=validateSkillDirectory(_0x2909bf);throwIfSkillValidationFailed(_0x38788b);const _0x2e36ea=_0x38788b['dir'];if(_0x147d5e===_0x2d0ca4(0x172)){const _0x2f0704=_0x191c79(_0x2e36ea,_0x5b833c[_0x2d0ca4(0x165)]),_0x13c73c=await _0x7508ba(_0x5b833c['appCode'],_0x2f0704[_0x2d0ca4(0x186)]);throwIfBuiltinPushTarget(_0x13c73c);const _0x4b1118=_0x462dc1(_0x2e36ea,_0x5b833c['appCode'],{'targetScope':_0x2d0ca4(0x172)}),_0x25bc29=await _0x3dedd8(_0x5b833c[_0x2d0ca4(0x165)],_0x4b1118['input'],{'visibility':_0x2d0ca4(0x16f)});throwIfPublishValidationFailed(_0x4b1118[_0x2d0ca4(0x186)],_0x25bc29);const _0xfa15cc=_0x5b833c['bool'](_0x2d0ca4(0x16d))||_0x5b833c[_0x2d0ca4(0x162)](_0x2d0ca4(0x16c));if(_0x25bc29[_0x2d0ca4(0x157)]['length']>0x0&&!_0xfa15cc)throw CliErrors[_0x2d0ca4(0x17f)](_0x2d0ca4(0x187)+_0x4b1118[_0x2d0ca4(0x186)]+'.',_0x2d0ca4(0x155)+_0x25bc29[_0x2d0ca4(0x157)][_0x2d0ca4(0x153)](';\x20'));const _0x98bf0b=await _0x582436(_0x5b833c[_0x2d0ca4(0x165)],_0x4b1118['input'],{'confirmWarnings':_0xfa15cc});return _0x444f49(_0x2e36ea,{..._0x98bf0b,'files':_0x4b1118['input'][_0x2d0ca4(0x15e)]},_0x5b833c[_0x2d0ca4(0x165)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x98bf0b),'scope':_0x2d0ca4(0x172),'reviewState':_0x2d0ca4(0x166),'submittedForReview':!![],'validation':{'warnings':_0x25bc29[_0x2d0ca4(0x157)]}},'message':_0x2d0ca4(0x16a)+_0x4b1118[_0x2d0ca4(0x186)]+'\x20version\x20'+(_0x98bf0b[_0x2d0ca4(0x14f)]??'(unknown)')+_0x2d0ca4(0x15d)};}const _0x4934f1=_0x191c79(_0x2e36ea,_0x5b833c['appCode']),_0x1309f4=await _0x7508ba(_0x5b833c[_0x2d0ca4(0x165)],_0x4934f1[_0x2d0ca4(0x186)]);throwIfBuiltinPushTarget(_0x1309f4);_0x1309f4&&_0x58f7d2(_0x2e36ea,_0x1309f4,_0x5b833c[_0x2d0ca4(0x165)]);const _0x27ffd0=_0x462dc1(_0x2e36ea,_0x5b833c[_0x2d0ca4(0x165)]),_0xf4e498=_0x1309f4?.[_0x2d0ca4(0x169)]===_0x2d0ca4(0x174)&&_0x1309f4[_0x2d0ca4(0x186)]===_0x27ffd0[_0x2d0ca4(0x186)]?_0x1309f4:undefined,_0x229b57=_0xf4e498?await _0x2d15e8(_0x27ffd0[_0x2d0ca4(0x186)],_0x5b833c[_0x2d0ca4(0x165)],_0x27ffd0[_0x2d0ca4(0x181)]):await _0x34f00d(_0x5b833c['appCode'],_0x27ffd0[_0x2d0ca4(0x181)]);let _0x382015=_0x229b57;if(isMultiFileManifest(_0x27ffd0[_0x2d0ca4(0x181)]['files'])){const _0x37ce72=await _0x210784(_0x2d0ca4(0x174),_0x229b57[_0x2d0ca4(0x186)]||_0x27ffd0[_0x2d0ca4(0x186)],_0x5b833c[_0x2d0ca4(0x165)]);_0x5f5193(_0x27ffd0[_0x2d0ca4(0x181)][_0x2d0ca4(0x15e)],_0x37ce72),_0x382015={..._0x229b57,'files':_0x27ffd0[_0x2d0ca4(0x181)][_0x2d0ca4(0x15e)]};}else{if(isPackageBackedManifest(_0x229b57[_0x2d0ca4(0x15e)])){const _0x5b20f4=await _0x210784('personal',_0x229b57[_0x2d0ca4(0x186)]||_0x27ffd0[_0x2d0ca4(0x186)],_0x5b833c[_0x2d0ca4(0x165)]);_0x20d1c3(_0x229b57['files'],_0x5b20f4);}}return _0x444f49(_0x2e36ea,_0x382015,_0x5b833c[_0x2d0ca4(0x165)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x229b57),'warnings':_0x38788b[_0x2d0ca4(0x157)]},'message':_0xf4e498?_0x2d0ca4(0x164)+_0x27ffd0['skillCode']:'Created\x20personal\x20Skill\x20'+_0x27ffd0[_0x2d0ca4(0x186)]};}};function a38_0x509d(_0x480e52,_0x19de49){_0x480e52=_0x480e52-0x14f;const _0x502bac=a38_0x502b();let _0x509db1=_0x502bac[_0x480e52];return _0x509db1;}function resolvePushScope(_0x1f59cd){const _0x500bd4=a38_0x2a55a5,_0x2fa7a4=_0x1f59cd[_0x500bd4(0x15a)](_0x500bd4(0x169))||_0x500bd4(0x174);if(_0x2fa7a4===_0x500bd4(0x174)||_0x2fa7a4===_0x500bd4(0x172))return _0x2fa7a4;throw CliErrors[_0x500bd4(0x17f)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x2fa7a4+'\x22.');}function throwIfBuiltinPushTarget(_0x53849c){const _0x54430a=a38_0x2a55a5;if(_0x53849c?.[_0x54430a(0x169)]!==_0x54430a(0x159))return;throw CliErrors[_0x54430a(0x17f)](_0x54430a(0x151)+(_0x53849c['skillCode']??_0x54430a(0x173))+'\x20cannot\x20be\x20pushed.',_0x54430a(0x154));}function throwIfPublishValidationFailed(_0x1f3b45,_0x264431){const _0x53f8cb=a38_0x2a55a5;if(_0x264431[_0x53f8cb(0x182)]&&_0x264431['errors'][_0x53f8cb(0x179)]===0x0)return;const _0x3720b5=_0x264431[_0x53f8cb(0x184)]['length']>0x0?_0x264431['errors'][_0x53f8cb(0x153)](';\x20'):_0x53f8cb(0x158);throw CliErrors[_0x53f8cb(0x17f)](_0x53f8cb(0x178)+_0x1f3b45+'.',_0x3720b5);}
1
+ const a41_0xc7999a=a41_0x25f5;(function(_0x1557cb,_0x51febd){const _0x21b33e=a41_0x25f5,_0x544754=_0x1557cb();while(!![]){try{const _0xdbb226=-parseInt(_0x21b33e(0x1f0))/0x1*(parseInt(_0x21b33e(0x206))/0x2)+parseInt(_0x21b33e(0x207))/0x3*(parseInt(_0x21b33e(0x1da))/0x4)+-parseInt(_0x21b33e(0x20d))/0x5*(-parseInt(_0x21b33e(0x1f4))/0x6)+parseInt(_0x21b33e(0x1e6))/0x7*(-parseInt(_0x21b33e(0x1f8))/0x8)+-parseInt(_0x21b33e(0x1fd))/0x9*(-parseInt(_0x21b33e(0x1fe))/0xa)+-parseInt(_0x21b33e(0x20a))/0xb+parseInt(_0x21b33e(0x205))/0xc;if(_0xdbb226===_0x51febd)break;else _0x544754['push'](_0x544754['shift']());}catch(_0x58ed40){_0x544754['push'](_0x544754['shift']());}}}(a41_0x1b62,0x2d465));function a41_0x1b62(){const _0x5b84bc=['21040IuZxVO','resolvedSlug','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','(unknown)','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','5121utnMQo','5130UjRFLO','warnings','Company\x20Skill\x20push\x20validation\x20failed\x20for\x20','skillCode','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','version','resolvedVersion','4225884mVDrLv','12bUcgnu','401343hZAEkl','appCode','input','1175460xVpMqO','\x20cannot\x20be\x20pushed.','/publish','15DyHpUJ','push','\x20has\x20scope=\x22','Review\x20the\x20warnings\x20and\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit:\x20','skill','SkillHub\x20validation\x20returned\x20invalid.','personal','write','Created\x20personal\x20Skill\x20','validation','join','PRIVATE','accessKey','/api/cli/v1/skills/','Builtin\x20Skill\x20','appcode','4BaEnov','Submitted\x20company\x20Skill\x20','str','NAMESPACE_ONLY','unknown','path','submitted','../../../core/api-client.js','Preview\x20a\x20personal\x20Skill\x20push\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Updated\x20personal\x20Skill\x20','POST','trim','749UkrFfI','company','builtin','confirm-warnings','authRequired','../../../skills/runtime-skill-sync.js','\x20for\x20review','length','files','Company\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','38172HHQVjs','map','metadata','scope','49824mAbZiR','dir','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','valid'];a41_0x1b62=function(){return _0x5b84bc;};return a41_0x1b62();}import{CliErrors}from'../../../errors.js';import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a41_0x25f5(_0xba0f06,_0x4e58b6){_0xba0f06=_0xba0f06-0x1cf;const _0x1b621f=a41_0x1b62();let _0x25f54d=_0x1b621f[_0xba0f06];return _0x25f54d;}import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{buildRetargetWarning,withRetargetExistingMetadata}from'../push-retarget.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a41_0xc7999a(0x211),'command':a41_0xc7999a(0x20e),'description':a41_0xc7999a(0x1f6),'risk':a41_0xc7999a(0x1d1),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],async 'dryRun'(_0x1dae53){const _0x457b10=a41_0xc7999a,{getRuntimeSkillByCode:_0x4eb3f7,validateRuntimeSkillPublish:_0xebf380}=await import('../../../core/api-client.js'),{readPushDirectory:_0x3d7b63,resolvePushDirectoryIdentity:_0x41f7d9}=await import(_0x457b10(0x1eb));if(!_0x1dae53[_0x457b10(0x1d6)])throw CliErrors[_0x457b10(0x1ea)]();const _0x14cb43=resolvePushScope(_0x1dae53),_0x441842=validateSkillDirectory(_0x1dae53[_0x457b10(0x1dc)]('dir'));throwIfSkillValidationFailed(_0x441842);const _0x3c6a98=_0x3d7b63(_0x441842['dir'],_0x1dae53[_0x457b10(0x208)],{'targetScope':_0x14cb43});if(_0x14cb43==='company'){const _0xecad56=_0x41f7d9(_0x441842[_0x457b10(0x1f5)],_0x1dae53[_0x457b10(0x208)]),_0x34ac06=await _0x4eb3f7(_0x1dae53['appCode'],_0xecad56[_0x457b10(0x201)]);throwIfBuiltinPushTarget(_0x34ac06);const _0x43d572=await _0xebf380(_0x1dae53['appCode'],_0x3c6a98[_0x457b10(0x209)],{'visibility':_0x457b10(0x1dd)});return{'method':_0x457b10(0x1e4),'url':_0x457b10(0x1d7)+_0x1dae53[_0x457b10(0x208)]+'/publish/validate','body':{'skillCode':_0x3c6a98[_0x457b10(0x201)],'visibility':'NAMESPACE_ONLY','valid':_0x43d572['valid'],'errors':_0x43d572['errors'],'warnings':_0x43d572[_0x457b10(0x1ff)],'resolvedSlug':_0x43d572[_0x457b10(0x1f9)],'resolvedVersion':_0x43d572[_0x457b10(0x204)]},'description':_0x457b10(0x1fc)};}return{'method':_0x457b10(0x1e4),'url':_0x457b10(0x1d7)+_0x1dae53['appCode']+_0x457b10(0x20c),'body':{'skillCode':_0x3c6a98[_0x457b10(0x201)],'visibility':_0x457b10(0x1d5),'files':_0x3c6a98[_0x457b10(0x209)]['files']?.[_0x457b10(0x1ee)][_0x457b10(0x1f1)](_0x780e05=>_0x780e05[_0x457b10(0x1df)])??[]},'description':_0x457b10(0x1e2)};},async 'execute'(_0x1b318c){const _0x34c3e8=a41_0xc7999a,{createPersonalRuntimeSkill:_0x22de2f,downloadRuntimeSkillPackage:_0x3abcb1,getRuntimeSkillByCode:_0x2bcef0,publishCompanyRuntimeSkill:_0x3d47c5,updatePersonalRuntimeSkill:_0x24a920,validateRuntimeSkillPublish:_0x38c0f7}=await import(_0x34c3e8(0x1e1)),{verifyRuntimeSkillPackage:_0x3c8b70,verifyRuntimeSkillBundle:_0x1cbdc2,readPushDirectory:_0x5e7183,refreshPushDirectoryMetadataFromRemote:_0x30819d,recordPushedRuntimeSkill:_0x1702d6,resolvePushDirectoryIdentity:_0x2737db}=await import('../../../skills/runtime-skill-sync.js');if(!_0x1b318c[_0x34c3e8(0x1d6)])throw CliErrors['authRequired']();const _0x359a23=resolvePushScope(_0x1b318c),_0x3d7b8d=_0x1b318c[_0x34c3e8(0x1dc)](_0x34c3e8(0x1f5)),_0x3e99bd=validateSkillDirectory(_0x3d7b8d);throwIfSkillValidationFailed(_0x3e99bd);const _0x546381=_0x3e99bd[_0x34c3e8(0x1f5)];if(_0x359a23==='company'){const _0x5ee078=_0x2737db(_0x546381,_0x1b318c[_0x34c3e8(0x208)]),_0x2aa3b7=await _0x2bcef0(_0x1b318c[_0x34c3e8(0x208)],_0x5ee078[_0x34c3e8(0x201)]);throwIfBuiltinPushTarget(_0x2aa3b7);const _0x537707=_0x5e7183(_0x546381,_0x1b318c[_0x34c3e8(0x208)],{'targetScope':_0x34c3e8(0x1e7)}),_0x3766a4=await _0x38c0f7(_0x1b318c[_0x34c3e8(0x208)],_0x537707[_0x34c3e8(0x209)],{'visibility':_0x34c3e8(0x1dd)});throwIfPublishValidationFailed(_0x537707[_0x34c3e8(0x201)],_0x3766a4);const _0x5949f9=_0x1b318c['bool'](_0x34c3e8(0x1e9))||_0x1b318c['bool']('confirmWarnings');if(_0x3766a4[_0x34c3e8(0x1ff)][_0x34c3e8(0x1ed)]>0x0&&!_0x5949f9)throw CliErrors[_0x34c3e8(0x1d3)](_0x34c3e8(0x1ef)+_0x537707['skillCode']+'.',_0x34c3e8(0x210)+_0x3766a4[_0x34c3e8(0x1ff)][_0x34c3e8(0x1d4)](';\x20'));const _0x225369=await _0x3d47c5(_0x1b318c[_0x34c3e8(0x208)],_0x537707[_0x34c3e8(0x209)],{'confirmWarnings':_0x5949f9});return _0x1702d6(_0x546381,{..._0x225369,'files':_0x537707[_0x34c3e8(0x209)][_0x34c3e8(0x1ee)]},_0x1b318c[_0x34c3e8(0x208)],{'scope':_0x34c3e8(0x1e7)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x225369),'scope':'company','reviewState':_0x34c3e8(0x1e0),'submittedForReview':!![],'validation':{'warnings':_0x3766a4[_0x34c3e8(0x1ff)]}},'message':_0x34c3e8(0x1db)+_0x537707[_0x34c3e8(0x201)]+'\x20version\x20'+(_0x225369[_0x34c3e8(0x203)]??_0x34c3e8(0x1fb))+_0x34c3e8(0x1ec)};}const _0xf38a55=_0x1b318c[_0x34c3e8(0x1dc)](_0x34c3e8(0x1d9))[_0x34c3e8(0x1e5)](),_0x4bda3d=Boolean(_0xf38a55),_0x5a09d9=allowRetargetArgs(_0x4bda3d),_0x2369a1=_0x2737db(_0x546381,_0x1b318c[_0x34c3e8(0x208)],..._0x5a09d9),_0x396a42=await _0x2bcef0(_0x1b318c[_0x34c3e8(0x208)],_0x2369a1['skillCode']);throwIfBuiltinPushTarget(_0x396a42);if(_0x396a42){if(_0x396a42['scope']!=='personal'){if(_0x4bda3d)throw CliErrors[_0x34c3e8(0x1d3)](_0x34c3e8(0x202)+_0x2369a1['skillCode']+_0x34c3e8(0x20f)+(_0x396a42[_0x34c3e8(0x1f3)]??_0x34c3e8(0x1de))+'\x22.');_0x30819d(_0x546381,_0x396a42,_0x1b318c['appCode']);}else!_0x4bda3d&&_0x30819d(_0x546381,_0x396a42,_0x1b318c[_0x34c3e8(0x208)]);}const _0x5c323f=_0x5e7183(_0x546381,_0x1b318c[_0x34c3e8(0x208)],..._0x5a09d9),_0x59b0d9=_0x396a42?.[_0x34c3e8(0x1f3)]===_0x34c3e8(0x1d0)&&_0x396a42['skillCode']===_0x5c323f[_0x34c3e8(0x201)]?_0x396a42:undefined,_0x577f73=_0x4bda3d&&_0x59b0d9?withRetargetExistingMetadata(_0x5c323f[_0x34c3e8(0x209)],_0x59b0d9):_0x5c323f[_0x34c3e8(0x209)],_0x5ce690=_0x59b0d9?await _0x24a920(_0x5c323f[_0x34c3e8(0x201)],_0x1b318c[_0x34c3e8(0x208)],_0x577f73):await _0x22de2f(_0x1b318c['appCode'],_0x577f73);let _0x49566b=_0x5ce690;if(isMultiFileManifest(_0x5c323f[_0x34c3e8(0x209)][_0x34c3e8(0x1ee)])){const _0x1b042c=await _0x3abcb1(_0x34c3e8(0x1d0),_0x5ce690[_0x34c3e8(0x201)]||_0x5c323f[_0x34c3e8(0x201)],_0x1b318c[_0x34c3e8(0x208)]);_0x1cbdc2(_0x5c323f['input'][_0x34c3e8(0x1ee)],_0x1b042c),_0x49566b={..._0x5ce690,'files':_0x5c323f[_0x34c3e8(0x209)][_0x34c3e8(0x1ee)]};}else{if(isPackageBackedManifest(_0x5ce690[_0x34c3e8(0x1ee)])){const _0x452147=await _0x3abcb1(_0x34c3e8(0x1d0),_0x5ce690[_0x34c3e8(0x201)]||_0x5c323f[_0x34c3e8(0x201)],_0x1b318c[_0x34c3e8(0x208)]);_0x3c8b70(_0x5ce690[_0x34c3e8(0x1ee)],_0x452147);}}_0x1702d6(_0x546381,_0x49566b,_0x1b318c[_0x34c3e8(0x208)]);const _0x60c5a4=_0x4bda3d?buildRetargetWarning(_0x2369a1[_0x34c3e8(0x1f2)],_0x1b318c[_0x34c3e8(0x208)]):[];return{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5ce690),'warnings':[..._0x3e99bd[_0x34c3e8(0x1ff)],..._0x60c5a4]},'message':_0x59b0d9?_0x34c3e8(0x1e3)+_0x5c323f[_0x34c3e8(0x201)]:_0x34c3e8(0x1d2)+_0x5c323f[_0x34c3e8(0x201)]};}};function resolvePushScope(_0x56657b){const _0x1bdc03=a41_0xc7999a,_0x2cd623=_0x56657b[_0x1bdc03(0x1dc)]('scope')||_0x1bdc03(0x1d0);if(_0x2cd623===_0x1bdc03(0x1d0)||_0x2cd623===_0x1bdc03(0x1e7))return _0x2cd623;throw CliErrors['validation'](_0x1bdc03(0x1fa)+_0x2cd623+'\x22.');}function allowRetargetArgs(_0xe9b6f5){return _0xe9b6f5?[{'allowAppCodeRetarget':!![]}]:[];}function throwIfBuiltinPushTarget(_0x1a8ad9){const _0x46a828=a41_0xc7999a;if(_0x1a8ad9?.[_0x46a828(0x1f3)]!==_0x46a828(0x1e8))return;throw CliErrors[_0x46a828(0x1d3)](_0x46a828(0x1d8)+(_0x1a8ad9['skillCode']??'(unknown)')+_0x46a828(0x20b),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}function throwIfPublishValidationFailed(_0x37fa62,_0xa374a6){const _0x2aeae2=a41_0xc7999a;if(_0xa374a6[_0x2aeae2(0x1f7)]&&_0xa374a6['errors'][_0x2aeae2(0x1ed)]===0x0)return;const _0x27c6ff=_0xa374a6['errors'][_0x2aeae2(0x1ed)]>0x0?_0xa374a6['errors'][_0x2aeae2(0x1d4)](';\x20'):_0x2aeae2(0x1cf);throw CliErrors[_0x2aeae2(0x1d3)](_0x2aeae2(0x200)+_0x37fa62+'.',_0x27c6ff);}
@@ -1 +1 @@
1
- const a39_0x4d9a01=a39_0x2e61;function a39_0x2e61(_0x4b5192,_0x3cfee4){_0x4b5192=_0x4b5192-0xde;const _0x1ab489=a39_0x1ab4();let _0x2e61fd=_0x1ab489[_0x4b5192];return _0x2e61fd;}function a39_0x1ab4(){const _0x344a75=['549zkxGik','8259566nDnWTi','5205588XfPEGU','read','3KXhYWs','str','warnings','1197428KfziWo','bool','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','1405226QRIiSb','errors','validate','dir','Skill\x20validation\x20passed.','178071BQtdyL','425430MbnfbO','strict','skill','96992vZSRWC'];a39_0x1ab4=function(){return _0x344a75;};return a39_0x1ab4();}(function(_0x49bab7,_0x5adb33){const _0x380f69=a39_0x2e61,_0x38bfed=_0x49bab7();while(!![]){try{const _0x29d856=-parseInt(_0x380f69(0xea))/0x1+-parseInt(_0x380f69(0xe5))/0x2+-parseInt(_0x380f69(0xdf))/0x3*(-parseInt(_0x380f69(0xe2))/0x4)+-parseInt(_0x380f69(0xeb))/0x5+parseInt(_0x380f69(0xf1))/0x6+parseInt(_0x380f69(0xf0))/0x7+parseInt(_0x380f69(0xee))/0x8*(-parseInt(_0x380f69(0xef))/0x9);if(_0x29d856===_0x5adb33)break;else _0x38bfed['push'](_0x38bfed['shift']());}catch(_0x4398a1){_0x38bfed['push'](_0x38bfed['shift']());}}}(a39_0x1ab4,0x9ca17));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0x4d9a01(0xed),'command':a39_0x4d9a01(0xe7),'description':a39_0x4d9a01(0xe4),'risk':a39_0x4d9a01(0xde),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x21355f){const _0x51bb15=a39_0x4d9a01,_0x1fbc38=_0x21355f[_0x51bb15(0xe3)](_0x51bb15(0xec)),_0x18cba9=validateSkillDirectory(_0x21355f[_0x51bb15(0xe0)](_0x51bb15(0xe8)),{'strict':_0x1fbc38});return throwIfSkillValidationFailed(_0x18cba9,_0x1fbc38),{'ok':!![],'data':{'dir':_0x18cba9['dir'],'type':_0x18cba9['type'],'errors':_0x18cba9[_0x51bb15(0xe6)],'warnings':_0x18cba9[_0x51bb15(0xe1)]},'message':_0x51bb15(0xe9)};}};
1
+ const a42_0x31e079=a42_0x2901;(function(_0x44fa29,_0x238771){const _0x4784b7=a42_0x2901,_0x2d7304=_0x44fa29();while(!![]){try{const _0x2e3b5a=-parseInt(_0x4784b7(0xa2))/0x1+-parseInt(_0x4784b7(0x93))/0x2*(-parseInt(_0x4784b7(0x99))/0x3)+parseInt(_0x4784b7(0x95))/0x4*(-parseInt(_0x4784b7(0xa8))/0x5)+-parseInt(_0x4784b7(0x9a))/0x6+-parseInt(_0x4784b7(0xa1))/0x7*(-parseInt(_0x4784b7(0x98))/0x8)+parseInt(_0x4784b7(0x9e))/0x9*(parseInt(_0x4784b7(0x97))/0xa)+parseInt(_0x4784b7(0xa6))/0xb;if(_0x2e3b5a===_0x238771)break;else _0x2d7304['push'](_0x2d7304['shift']());}catch(_0x50b908){_0x2d7304['push'](_0x2d7304['shift']());}}}(a42_0x4ccd,0x2147d));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a42_0x2901(_0x28893e,_0x3d4bd4){_0x28893e=_0x28893e-0x93;const _0x4ccde5=a42_0x4ccd();let _0x290155=_0x4ccde5[_0x28893e];return _0x290155;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a42_0x4ccd(){const _0x18b667=['read','2465rUokHz','118YvkHaP','dir','1412HUFIId','type','6460TCfSpF','8dkecrD','9816WwyRVh','1040850PQnALX','errors','bool','str','324eQveVD','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','Skill\x20validation\x20passed.','1251691INxQSA','120938uKxCVZ','strict','warnings','validate','2306062oklUMB'];a42_0x4ccd=function(){return _0x18b667;};return a42_0x4ccd();}export const validateCommand={'service':'skill','command':a42_0x31e079(0xa5),'description':a42_0x31e079(0x9f),'risk':a42_0x31e079(0xa7),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x2ae973){const _0x5d30de=a42_0x31e079,_0x527215=_0x2ae973[_0x5d30de(0x9c)](_0x5d30de(0xa3)),_0xdc91e6=validateSkillDirectory(_0x2ae973[_0x5d30de(0x9d)](_0x5d30de(0x94)),{'strict':_0x527215});return throwIfSkillValidationFailed(_0xdc91e6,_0x527215),{'ok':!![],'data':{'dir':_0xdc91e6[_0x5d30de(0x94)],'type':_0xdc91e6[_0x5d30de(0x96)],'errors':_0xdc91e6[_0x5d30de(0x9b)],'warnings':_0xdc91e6[_0x5d30de(0xa4)]},'message':_0x5d30de(0xa0)};}};
@@ -1 +1 @@
1
- const a40_0xcee747=a40_0xc5d5;(function(_0xf3c9f4,_0x31e558){const _0x1c3811=a40_0xc5d5,_0x7066bc=_0xf3c9f4();while(!![]){try{const _0x151f70=parseInt(_0x1c3811(0x1d3))/0x1+-parseInt(_0x1c3811(0x1de))/0x2*(parseInt(_0x1c3811(0x1d0))/0x3)+-parseInt(_0x1c3811(0x1e3))/0x4+-parseInt(_0x1c3811(0x1e0))/0x5+parseInt(_0x1c3811(0x1d9))/0x6*(parseInt(_0x1c3811(0x1df))/0x7)+-parseInt(_0x1c3811(0x1db))/0x8+parseInt(_0x1c3811(0x1dd))/0x9;if(_0x151f70===_0x31e558)break;else _0x7066bc['push'](_0x7066bc['shift']());}catch(_0x22a618){_0x7066bc['push'](_0x7066bc['shift']());}}}(a40_0x10ea,0x8732d));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0xcee747(0x1e5),'type':a40_0xcee747(0x1dc),'description':a40_0xcee747(0x1e8)};export const SCOPE_FLAG={'name':a40_0xcee747(0x1d7),'type':a40_0xcee747(0x1dc),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a40_0xcee747(0x1e2),'personal',a40_0xcee747(0x1d8)]};function a40_0xc5d5(_0x1816bd,_0x4473bb){_0x1816bd=_0x1816bd-0x1d0;const _0x10ea98=a40_0x10ea();let _0xc5d567=_0x10ea98[_0x1816bd];return _0xc5d567;}export const PUSH_SCOPE_FLAG={'name':'scope','type':'string','description':a40_0xcee747(0x1d2),'default':a40_0xcee747(0x1e1),'enum':['personal',a40_0xcee747(0x1d8)]};export const LIST_SCOPE_FLAG={'name':a40_0xcee747(0x1d7),'type':a40_0xcee747(0x1dc),'description':a40_0xcee747(0x1eb),'enum':[a40_0xcee747(0x1e2),a40_0xcee747(0x1e1),a40_0xcee747(0x1d8)]};export const LOCAL_FLAG={'name':a40_0xcee747(0x1e6),'type':a40_0xcee747(0x1e4),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};function a40_0x10ea(){const _0x48c639=['Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','confirm-warnings','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Local\x20Skill\x20directory\x20containing\x20SKILL.md','type','537WvoiFv','Continue\x20company\x20Skill\x20push\x20when\x20SkillHub\x20validation\x20reports\x20warnings','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','668195aqTyAq','Skill\x20template\x20type','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','name','scope','company','1049946zNuQYY','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','653424TjngKm','string','5627097MtPcMM','944PfCJrZ','42ofCcur','3232505VrbBND','personal','all','3907736VSXxOf','boolean','code','local','strict','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'];a40_0x10ea=function(){return _0x48c639;};return a40_0x10ea();}export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':a40_0xcee747(0x1ec)};export const CREATE_NAME_FLAG={'name':a40_0xcee747(0x1d6),'type':'string','required':!![],'description':a40_0xcee747(0x1d5),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':a40_0xcee747(0x1ed),'type':a40_0xcee747(0x1dc),'description':a40_0xcee747(0x1d4),'default':'write','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a40_0xcee747(0x1dc),'description':a40_0xcee747(0x1da),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a40_0xcee747(0x1e4),'description':a40_0xcee747(0x1e9)};export const CONFIRM_WARNINGS_FLAG={'name':a40_0xcee747(0x1ea),'type':a40_0xcee747(0x1e4),'description':a40_0xcee747(0x1d1)};export const STRICT_FLAG={'name':a40_0xcee747(0x1e7),'type':a40_0xcee747(0x1e4),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ function a43_0x398e(_0x1db9c5,_0x3299b6){_0x1db9c5=_0x1db9c5-0x1b7;const _0x135913=a43_0x1359();let _0x398e63=_0x135913[_0x1db9c5];return _0x398e63;}const a43_0x460e69=a43_0x398e;(function(_0x2ae70f,_0x206c3b){const _0x46ceb6=a43_0x398e,_0x456df4=_0x2ae70f();while(!![]){try{const _0x21d8a2=parseInt(_0x46ceb6(0x1ca))/0x1*(parseInt(_0x46ceb6(0x1b8))/0x2)+parseInt(_0x46ceb6(0x1d1))/0x3+-parseInt(_0x46ceb6(0x1c3))/0x4+-parseInt(_0x46ceb6(0x1bf))/0x5*(parseInt(_0x46ceb6(0x1cd))/0x6)+parseInt(_0x46ceb6(0x1c0))/0x7*(-parseInt(_0x46ceb6(0x1d6))/0x8)+parseInt(_0x46ceb6(0x1d8))/0x9*(parseInt(_0x46ceb6(0x1d4))/0xa)+parseInt(_0x46ceb6(0x1bd))/0xb*(parseInt(_0x46ceb6(0x1d0))/0xc);if(_0x21d8a2===_0x206c3b)break;else _0x456df4['push'](_0x456df4['shift']());}catch(_0x22341e){_0x456df4['push'](_0x456df4['shift']());}}}(a43_0x1359,0xf2e22));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a43_0x460e69(0x1ba),'description':a43_0x460e69(0x1c1)};function a43_0x1359(){const _0x1100b0=['1210fBorzn','Local\x20Skill\x20directory\x20containing\x20SKILL.md','9274208zdREDX','strict','39726ATlgMy','local','2iAIsWq','Continue\x20company\x20Skill\x20push\x20when\x20SkillHub\x20validation\x20reports\x20warnings','string','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','11WvWCVT','target','5YkWVHy','7VxYXTU','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','write','2817780zXYiZv','type','personal','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','company','force','9719dheTdb','confirm-warnings','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','8822034YdlIRx','scope','all','27686904HwonxJ','4433565IiqIzz','boolean','Skill\x20template\x20type'];a43_0x1359=function(){return _0x1100b0;};return a43_0x1359();}export const SCOPE_FLAG={'name':a43_0x460e69(0x1ce),'type':'string','description':a43_0x460e69(0x1bb),'enum':[a43_0x460e69(0x1cf),a43_0x460e69(0x1c5),a43_0x460e69(0x1c8)]};export const PUSH_SCOPE_FLAG={'name':a43_0x460e69(0x1ce),'type':a43_0x460e69(0x1ba),'description':a43_0x460e69(0x1c6),'default':'personal','enum':[a43_0x460e69(0x1c5),'company']};export const LIST_SCOPE_FLAG={'name':a43_0x460e69(0x1ce),'type':a43_0x460e69(0x1ba),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a43_0x460e69(0x1cf),a43_0x460e69(0x1c5),a43_0x460e69(0x1c8)]};export const LOCAL_FLAG={'name':a43_0x460e69(0x1b7),'type':a43_0x460e69(0x1d2),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a43_0x460e69(0x1ba),'required':!![],'description':a43_0x460e69(0x1d5)};export const CREATE_NAME_FLAG={'name':'name','type':'string','required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a43_0x460e69(0x1c7)}};export const TYPE_FLAG={'name':a43_0x460e69(0x1c4),'type':a43_0x460e69(0x1ba),'description':a43_0x460e69(0x1d3),'default':a43_0x460e69(0x1c2),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a43_0x460e69(0x1be),'type':a43_0x460e69(0x1ba),'description':a43_0x460e69(0x1cc),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a43_0x460e69(0x1c9),'type':a43_0x460e69(0x1d2),'description':a43_0x460e69(0x1bc)};export const CONFIRM_WARNINGS_FLAG={'name':a43_0x460e69(0x1cb),'type':'boolean','description':a43_0x460e69(0x1b9)};export const STRICT_FLAG={'name':a43_0x460e69(0x1d7),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- function a41_0x5ce5(){const _0x431c3b=['7266088UGDxYx','992421JAeVOZ','24dWiGOn','7JMwBeD','755TKvLkX','30FLjBfu','865343GIGTSJ','321duLgcI','3700763bEYhhw','14646AlIifv','19972DqntWh','576792tfJPci'];a41_0x5ce5=function(){return _0x431c3b;};return a41_0x5ce5();}(function(_0x6e1135,_0x4a64e8){const _0x5a8f6c=a41_0x2ef1,_0x3f654b=_0x6e1135();while(!![]){try{const _0x4ce7ed=-parseInt(_0x5a8f6c(0xc4))/0x1+-parseInt(_0x5a8f6c(0xc9))/0x2+parseInt(_0x5a8f6c(0xc5))/0x3*(-parseInt(_0x5a8f6c(0xc8))/0x4)+-parseInt(_0x5a8f6c(0xce))/0x5*(-parseInt(_0x5a8f6c(0xc7))/0x6)+-parseInt(_0x5a8f6c(0xcd))/0x7*(-parseInt(_0x5a8f6c(0xca))/0x8)+parseInt(_0x5a8f6c(0xcb))/0x9*(parseInt(_0x5a8f6c(0xcf))/0xa)+-parseInt(_0x5a8f6c(0xc6))/0xb*(-parseInt(_0x5a8f6c(0xcc))/0xc);if(_0x4ce7ed===_0x4a64e8)break;else _0x3f654b['push'](_0x3f654b['shift']());}catch(_0x344d63){_0x3f654b['push'](_0x3f654b['shift']());}}}(a41_0x5ce5,0x90a97));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_0x2ef1(_0x2f4d4d,_0x5636f4){_0x2f4d4d=_0x2f4d4d-0xc4;const _0x5ce554=a41_0x5ce5();let _0x2ef152=_0x5ce554[_0x2f4d4d];return _0x2ef152;}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
1
+ (function(_0x61ed97,_0x28a888){const _0x3d62c1=a44_0x3766,_0x3837e7=_0x61ed97();while(!![]){try{const _0x432685=-parseInt(_0x3d62c1(0x1ec))/0x1*(-parseInt(_0x3d62c1(0x1eb))/0x2)+-parseInt(_0x3d62c1(0x1e8))/0x3+parseInt(_0x3d62c1(0x1e4))/0x4+-parseInt(_0x3d62c1(0x1e1))/0x5*(-parseInt(_0x3d62c1(0x1e9))/0x6)+-parseInt(_0x3d62c1(0x1ea))/0x7*(-parseInt(_0x3d62c1(0x1e5))/0x8)+parseInt(_0x3d62c1(0x1e7))/0x9*(-parseInt(_0x3d62c1(0x1e2))/0xa)+-parseInt(_0x3d62c1(0x1e6))/0xb*(parseInt(_0x3d62c1(0x1e3))/0xc);if(_0x432685===_0x28a888)break;else _0x3837e7['push'](_0x3837e7['shift']());}catch(_0x27bdb7){_0x3837e7['push'](_0x3837e7['shift']());}}}(a44_0x5be5,0xb39a7));function a44_0x3766(_0x288aa5,_0x345143){_0x288aa5=_0x288aa5-0x1e1;const _0x5be519=a44_0x5be5();let _0x37669e=_0x5be519[_0x288aa5];return _0x37669e;}function a44_0x5be5(){const _0xb84221=['11UigExs','4248HckHjZ','1866549hwBFDu','6KAWqSm','7xplkPT','308378sSgEID','5WMLuka','5576845HOyuph','16390weIRji','22475688fdOsML','3112880HVHvIU','10719088ELyntz'];a44_0x5be5=function(){return _0xb84221;};return a44_0x5be5();}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
@@ -1 +1 @@
1
- (function(_0xcbe55b,_0x387729){var _0xe1d65c=a42_0x1fdf,_0x472f9b=_0xcbe55b();while(!![]){try{var _0x248623=parseInt(_0xe1d65c(0xf2))/0x1+parseInt(_0xe1d65c(0xf1))/0x2*(parseInt(_0xe1d65c(0xe6))/0x3)+parseInt(_0xe1d65c(0xe5))/0x4*(-parseInt(_0xe1d65c(0xe3))/0x5)+-parseInt(_0xe1d65c(0xed))/0x6*(-parseInt(_0xe1d65c(0xe4))/0x7)+-parseInt(_0xe1d65c(0xdf))/0x8+-parseInt(_0xe1d65c(0xee))/0x9*(parseInt(_0xe1d65c(0xe1))/0xa)+-parseInt(_0xe1d65c(0xe0))/0xb*(parseInt(_0xe1d65c(0xe8))/0xc);if(_0x248623===_0x387729)break;else _0x472f9b['push'](_0x472f9b['shift']());}catch(_0x551c77){_0x472f9b['push'](_0x472f9b['shift']());}}}(a42_0x38cc,0x84e56));export function isPackageBackedManifest(_0x2364f1){var _0x55a3bc=a42_0x1fdf;return!!_0x2364f1&&typeof _0x2364f1===_0x55a3bc(0xea)&&!Array[_0x55a3bc(0xf0)](_0x2364f1)&&typeof _0x2364f1[_0x55a3bc(0xe9)]===_0x55a3bc(0xec)&&_0x2364f1['ossPath']['length']>0x0&&Array[_0x55a3bc(0xf0)](_0x2364f1[_0x55a3bc(0xe2)]);}function a42_0x38cc(){var _0x1aef77=['970Qbvitk','6066389ZweAhj','19852WjzisV','15vaOCxK','path','6762216Rcocmd','ossPath','object','some','string','6MDdgaM','873WTpMGX','SKILL.md','isArray','287854TTtBzO','1077636nCUwBf','2515504iEQsFF','11xLYsod','28740VeBWoe','files'];a42_0x38cc=function(){return _0x1aef77;};return a42_0x38cc();}function a42_0x1fdf(_0x40e375,_0x3941db){_0x40e375=_0x40e375-0xdf;var _0x38cc9a=a42_0x38cc();var _0x1fdf5b=_0x38cc9a[_0x40e375];return _0x1fdf5b;}export function isMultiFileManifest(_0x12c480){var _0x392425=a42_0x1fdf;return!!_0x12c480&&typeof _0x12c480===_0x392425(0xea)&&!Array['isArray'](_0x12c480)&&Array[_0x392425(0xf0)](_0x12c480[_0x392425(0xe2)])&&_0x12c480[_0x392425(0xe2)][_0x392425(0xeb)](_0x3fe8fb=>_0x3fe8fb[_0x392425(0xe7)]!==_0x392425(0xef));}
1
+ (function(_0x424efd,_0x260188){var _0x73a16d=a45_0x1300,_0x5626f2=_0x424efd();while(!![]){try{var _0x5d8332=-parseInt(_0x73a16d(0x91))/0x1*(-parseInt(_0x73a16d(0x96))/0x2)+parseInt(_0x73a16d(0x8d))/0x3+parseInt(_0x73a16d(0x93))/0x4*(-parseInt(_0x73a16d(0x94))/0x5)+parseInt(_0x73a16d(0x8f))/0x6+parseInt(_0x73a16d(0x8e))/0x7+parseInt(_0x73a16d(0x89))/0x8+-parseInt(_0x73a16d(0x88))/0x9;if(_0x5d8332===_0x260188)break;else _0x5626f2['push'](_0x5626f2['shift']());}catch(_0x309724){_0x5626f2['push'](_0x5626f2['shift']());}}}(a45_0x269a,0xcc937));export function isPackageBackedManifest(_0x3e187d){var _0x132782=a45_0x1300;return!!_0x3e187d&&typeof _0x3e187d===_0x132782(0x87)&&!Array['isArray'](_0x3e187d)&&typeof _0x3e187d[_0x132782(0x8b)]==='string'&&_0x3e187d['ossPath']['length']>0x0&&Array[_0x132782(0x8c)](_0x3e187d['files']);}function a45_0x1300(_0x2208eb,_0x309b05){_0x2208eb=_0x2208eb-0x87;var _0x269a70=a45_0x269a();var _0x1300e6=_0x269a70[_0x2208eb];return _0x1300e6;}export function isMultiFileManifest(_0x5b1747){var _0x5cfe10=a45_0x1300;return!!_0x5b1747&&typeof _0x5b1747===_0x5cfe10(0x87)&&!Array[_0x5cfe10(0x8c)](_0x5b1747)&&Array[_0x5cfe10(0x8c)](_0x5b1747[_0x5cfe10(0x92)])&&_0x5b1747[_0x5cfe10(0x92)][_0x5cfe10(0x8a)](_0x239f34=>_0x239f34[_0x5cfe10(0x90)]!==_0x5cfe10(0x95));}function a45_0x269a(){var _0x35ade7=['4867512QAkjzr','some','ossPath','isArray','3355383tTFsvr','6135430JDjcYi','8975184lbtewA','path','46929aqWsjU','files','7356GJaFnu','1385ehXcDA','SKILL.md','14gnWDHl','object','27723699ZiYiTl'];a45_0x269a=function(){return _0x35ade7;};return a45_0x269a();}
@@ -0,0 +1 @@
1
+ (function(_0x4ba2d6,_0x24a68e){var _0x185c51=a46_0x1003,_0x3b3a2c=_0x4ba2d6();while(!![]){try{var _0x58fc6e=parseInt(_0x185c51(0xb3))/0x1+-parseInt(_0x185c51(0xa8))/0x2*(-parseInt(_0x185c51(0xae))/0x3)+-parseInt(_0x185c51(0xa3))/0x4*(-parseInt(_0x185c51(0xb0))/0x5)+parseInt(_0x185c51(0xad))/0x6+-parseInt(_0x185c51(0xac))/0x7+-parseInt(_0x185c51(0xab))/0x8*(-parseInt(_0x185c51(0xa6))/0x9)+-parseInt(_0x185c51(0xaa))/0xa;if(_0x58fc6e===_0x24a68e)break;else _0x3b3a2c['push'](_0x3b3a2c['shift']());}catch(_0x417ad9){_0x3b3a2c['push'](_0x3b3a2c['shift']());}}}(a46_0x3fc1,0x3ede3));function a46_0x3fc1(){var _0xa074a=['\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','209625BpKozq','warning','lovrabet.skill.json','tags','644324wzdEDz','skillName','sourceSessionId','22716vjBXed','version','183008uWVOkx','skill-metadata-appcode-retargeted','3147770EjFQmw','328MlxnpQ','2506420LqHJKm','540828xBmIoQ','12KRBHRD','appCode','5PREpvk','description'];a46_0x3fc1=function(){return _0xa074a;};return a46_0x3fc1();}function a46_0x1003(_0x3cd954,_0x669d11){_0x3cd954=_0x3cd954-0xa2;var _0x3fc157=a46_0x3fc1();var _0x100325=_0x3fc157[_0x3cd954];return _0x100325;}export function withRetargetExistingMetadata(_0x478397,_0xc9b481){var _0x44767e=a46_0x1003;return{..._0x478397,'skillName':_0xc9b481['skillName']??_0x478397[_0x44767e(0xa4)],'description':_0xc9b481[_0x44767e(0xb1)]??_0x478397[_0x44767e(0xb1)],'tags':Array['isArray'](_0xc9b481['tags'])?_0xc9b481[_0x44767e(0xa2)]:_0x478397[_0x44767e(0xa2)],'version':_0xc9b481[_0x44767e(0xa7)]??_0x478397[_0x44767e(0xa7)],'sourceSessionId':_0xc9b481[_0x44767e(0xa5)]??_0x478397['sourceSessionId']};}export function buildRetargetWarning(_0x1c5332,_0x105fb8){var _0x2dfe2a=a46_0x1003;if(!_0x1c5332?.[_0x2dfe2a(0xaf)]||_0x1c5332['appCode']===_0x105fb8)return[];return[{'level':_0x2dfe2a(0xb4),'ruleId':_0x2dfe2a(0xa9),'file':_0x2dfe2a(0xb5),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x1c5332[_0x2dfe2a(0xaf)]+_0x2dfe2a(0xb2)+_0x105fb8+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- (function(_0x473442,_0x2217ac){const _0x251854=a43_0x1c5c,_0x2add78=_0x473442();while(!![]){try{const _0xe9f0cf=-parseInt(_0x251854(0x1e9))/0x1+parseInt(_0x251854(0x1f3))/0x2+parseInt(_0x251854(0x1ef))/0x3+-parseInt(_0x251854(0x1ec))/0x4+-parseInt(_0x251854(0x1ee))/0x5*(-parseInt(_0x251854(0x1e5))/0x6)+parseInt(_0x251854(0x1ed))/0x7+-parseInt(_0x251854(0x1e8))/0x8;if(_0xe9f0cf===_0x2217ac)break;else _0x2add78['push'](_0x2add78['shift']());}catch(_0x3d4f97){_0x2add78['push'](_0x2add78['shift']());}}}(a43_0x56e1,0x3d47b));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x348ab8){const _0xeefd92=a43_0x1c5c,_0x1d41a0=_0x348ab8[_0xeefd92(0x1f0)]();if(!_0x1d41a0||_0x1d41a0===_0xeefd92(0x1ea))return[_0xeefd92(0x1f2),_0xeefd92(0x1e6)];if(_0x1d41a0===_0xeefd92(0x1f2)||_0x1d41a0===_0xeefd92(0x1e6))return[_0x1d41a0];throw CliErrors[_0xeefd92(0x1e7)](_0xeefd92(0x1f1)+_0x348ab8);}function a43_0x1c5c(_0x400746,_0x4c7941){_0x400746=_0x400746-0x1e5;const _0x56e16a=a43_0x56e1();let _0x1c5c1c=_0x56e16a[_0x400746];return _0x1c5c1c;}export function normalizeListScope(_0x5ce677){const _0xe5f170=a43_0x1c5c,_0x2d5897=_0x5ce677[_0xe5f170(0x1f0)]();if(!_0x2d5897)return _0xe5f170(0x1ea);if(_0x2d5897===_0xe5f170(0x1f2)||_0x2d5897===_0xe5f170(0x1e6)||_0x2d5897===_0xe5f170(0x1ea))return _0x2d5897;throw CliErrors[_0xe5f170(0x1e7)](_0xe5f170(0x1eb)+_0x5ce677);}export function shouldListScope(_0x15e3ea,_0x3053fa){if(_0x15e3ea==='all')return!![];return _0x15e3ea===_0x3053fa;}export function listScopeToRuntimeScopes(_0x5cbedc){const _0x42812d=a43_0x1c5c;if(_0x5cbedc==='all')return['personal',_0x42812d(0x1e6)];return[_0x5cbedc===_0x42812d(0x1e6)?_0x42812d(0x1e6):_0x5cbedc];}function a43_0x56e1(){const _0x205c3f=['1925008ShJWbE','2395981iQWpJp','35baQlFL','558846WRRDMx','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','personal','960958AfErUS','264774uJqPNi','company','validation','1471928XRKMdi','401701IVcpka','all','Unsupported\x20Skill\x20list\x20scope:\x20'];a43_0x56e1=function(){return _0x205c3f;};return a43_0x56e1();}export function listScopeToRemoteScope(_0x42666f){return _0x42666f;}
1
+ (function(_0x37f89f,_0x2d668d){const _0x26c7cb=a47_0x4287,_0x3268ac=_0x37f89f();while(!![]){try{const _0x6eb508=parseInt(_0x26c7cb(0xb6))/0x1*(parseInt(_0x26c7cb(0xba))/0x2)+-parseInt(_0x26c7cb(0xbf))/0x3+-parseInt(_0x26c7cb(0xbb))/0x4*(-parseInt(_0x26c7cb(0xb2))/0x5)+parseInt(_0x26c7cb(0xb8))/0x6+-parseInt(_0x26c7cb(0xb7))/0x7+-parseInt(_0x26c7cb(0xb4))/0x8*(-parseInt(_0x26c7cb(0xc0))/0x9)+-parseInt(_0x26c7cb(0xb9))/0xa*(parseInt(_0x26c7cb(0xbd))/0xb);if(_0x6eb508===_0x2d668d)break;else _0x3268ac['push'](_0x3268ac['shift']());}catch(_0x5eb947){_0x3268ac['push'](_0x3268ac['shift']());}}}(a47_0x3745,0x60b6b));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x11fe9b){const _0x3bbefb=a47_0x4287,_0x3bc3b1=_0x11fe9b[_0x3bbefb(0xb1)]();if(!_0x3bc3b1||_0x3bc3b1===_0x3bbefb(0xbe))return['personal',_0x3bbefb(0xbc)];if(_0x3bc3b1===_0x3bbefb(0xb3)||_0x3bc3b1===_0x3bbefb(0xbc))return[_0x3bc3b1];throw CliErrors[_0x3bbefb(0xb5)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x11fe9b);}function a47_0x3745(){const _0x58c27b=['2zkSpYK','1452ynOexc','company','429DIbuIt','all','2130855tVxgZr','5994171izZBqW','trim','5385dfyZZH','personal','8afMLjX','validation','682599WgimyW','5115621KChxJR','3067986FDLCAD','106070MIuxEt'];a47_0x3745=function(){return _0x58c27b;};return a47_0x3745();}export function normalizeListScope(_0x28e7b6){const _0x7834c0=a47_0x4287,_0x14f014=_0x28e7b6[_0x7834c0(0xb1)]();if(!_0x14f014)return _0x7834c0(0xbe);if(_0x14f014===_0x7834c0(0xb3)||_0x14f014===_0x7834c0(0xbc)||_0x14f014==='all')return _0x14f014;throw CliErrors[_0x7834c0(0xb5)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x28e7b6);}function a47_0x4287(_0x160e7d,_0x42e05e){_0x160e7d=_0x160e7d-0xb1;const _0x374559=a47_0x3745();let _0x428791=_0x374559[_0x160e7d];return _0x428791;}export function shouldListScope(_0x4b925c,_0x58ef10){const _0x155425=a47_0x4287;if(_0x4b925c===_0x155425(0xbe))return!![];return _0x4b925c===_0x58ef10;}export function listScopeToRuntimeScopes(_0x73ee0d){const _0x4e2b80=a47_0x4287;if(_0x73ee0d==='all')return[_0x4e2b80(0xb3),_0x4e2b80(0xbc)];return[_0x73ee0d===_0x4e2b80(0xbc)?_0x4e2b80(0xbc):_0x73ee0d];}export function listScopeToRemoteScope(_0x1a542c){return _0x1a542c;}
@@ -1 +1 @@
1
- (function(_0x29ca04,_0x10a6d9){var _0x56309e=a44_0x21f9,_0x570fef=_0x29ca04();while(!![]){try{var _0x29d380=-parseInt(_0x56309e(0x161))/0x1*(parseInt(_0x56309e(0x152))/0x2)+-parseInt(_0x56309e(0x150))/0x3+parseInt(_0x56309e(0x15a))/0x4*(parseInt(_0x56309e(0x155))/0x5)+parseInt(_0x56309e(0x157))/0x6+parseInt(_0x56309e(0x153))/0x7+parseInt(_0x56309e(0x159))/0x8+parseInt(_0x56309e(0x164))/0x9;if(_0x29d380===_0x10a6d9)break;else _0x570fef['push'](_0x570fef['shift']());}catch(_0x55ea5e){_0x570fef['push'](_0x570fef['shift']());}}}(a44_0x13d2,0x9894c));export function summarizeRuntimeSkill(_0x44aa7a){var _0x236e40=a44_0x21f9;return{'id':_0x44aa7a['id'],'skillCode':_0x44aa7a['skillCode'],'skillName':_0x44aa7a['skillName'],'scope':_0x44aa7a[_0x236e40(0x15f)],'version':_0x44aa7a[_0x236e40(0x15c)],'readonly':_0x44aa7a[_0x236e40(0x151)]};}export function summarizeLocalRuntimeSkill(_0x37c255){var _0x30c78a=a44_0x21f9;return{'id':_0x37c255['id'],'skillCode':_0x37c255[_0x30c78a(0x165)],'skillName':_0x37c255['skillName'],'scope':_0x37c255[_0x30c78a(0x15f)],'appCode':_0x37c255['appCode'],'version':_0x37c255[_0x30c78a(0x15c)],'status':_0x37c255[_0x30c78a(0x158)],'readonly':_0x37c255[_0x30c78a(0x151)],'tags':_0x37c255[_0x30c78a(0x15e)],'dir':_0x37c255[_0x30c78a(0x162)],'cacheDir':_0x37c255[_0x30c78a(0x15b)],'skillMdPath':_0x37c255[_0x30c78a(0x15d)],'metadataPath':_0x37c255[_0x30c78a(0x154)],'linkedPaths':_0x37c255[_0x30c78a(0x166)],'contentHash':_0x37c255[_0x30c78a(0x163)],'treeHash':_0x37c255[_0x30c78a(0x156)],'pulledAt':_0x37c255[_0x30c78a(0x160)]};}function a44_0x21f9(_0x28ef9c,_0x1764ab){_0x28ef9c=_0x28ef9c-0x150;var _0x13d254=a44_0x13d2();var _0x21f985=_0x13d254[_0x28ef9c];return _0x21f985;}function a44_0x13d2(){var _0x49df9b=['dir','contentHash','7596009QVtgne','skillCode','linkedPaths','1496226mOBTRc','readonly','2CBtCoQ','1187123gOXJzi','metadataPath','35vgDmTi','treeHash','1638468XKGbQV','status','1449408yjmEPU','24364HqdEVE','cacheDir','version','skillMdPath','tags','scope','pulledAt','386767bLviqa'];a44_0x13d2=function(){return _0x49df9b;};return a44_0x13d2();}
1
+ (function(_0x328767,_0x3de720){var _0x6198e1=a48_0xc0fc,_0x479850=_0x328767();while(!![]){try{var _0x365049=-parseInt(_0x6198e1(0xab))/0x1+parseInt(_0x6198e1(0xa3))/0x2*(-parseInt(_0x6198e1(0xa9))/0x3)+-parseInt(_0x6198e1(0xa0))/0x4*(-parseInt(_0x6198e1(0xad))/0x5)+parseInt(_0x6198e1(0xa2))/0x6*(parseInt(_0x6198e1(0xa5))/0x7)+-parseInt(_0x6198e1(0x9e))/0x8+-parseInt(_0x6198e1(0xa1))/0x9+parseInt(_0x6198e1(0xa4))/0xa;if(_0x365049===_0x3de720)break;else _0x479850['push'](_0x479850['shift']());}catch(_0x4febd9){_0x479850['push'](_0x479850['shift']());}}}(a48_0x4aa2,0x22c29));export function summarizeRuntimeSkill(_0x5b0d2e){var _0x2e7bc5=a48_0xc0fc;return{'id':_0x5b0d2e['id'],'skillCode':_0x5b0d2e['skillCode'],'skillName':_0x5b0d2e[_0x2e7bc5(0xa8)],'scope':_0x5b0d2e[_0x2e7bc5(0xb2)],'version':_0x5b0d2e[_0x2e7bc5(0xae)],'readonly':_0x5b0d2e[_0x2e7bc5(0xa7)]};}function a48_0xc0fc(_0x285177,_0x563199){_0x285177=_0x285177-0x9e;var _0x4aa2f9=a48_0x4aa2();var _0xc0fc0a=_0x4aa2f9[_0x285177];return _0xc0fc0a;}export function summarizeLocalRuntimeSkill(_0x50b9cd){var _0x39d150=a48_0xc0fc;return{'id':_0x50b9cd['id'],'skillCode':_0x50b9cd[_0x39d150(0x9f)],'skillName':_0x50b9cd[_0x39d150(0xa8)],'scope':_0x50b9cd[_0x39d150(0xb2)],'appCode':_0x50b9cd[_0x39d150(0xb0)],'version':_0x50b9cd[_0x39d150(0xae)],'status':_0x50b9cd['status'],'readonly':_0x50b9cd[_0x39d150(0xa7)],'tags':_0x50b9cd[_0x39d150(0xaa)],'dir':_0x50b9cd['dir'],'cacheDir':_0x50b9cd[_0x39d150(0xb3)],'skillMdPath':_0x50b9cd[_0x39d150(0xac)],'metadataPath':_0x50b9cd[_0x39d150(0xb1)],'linkedPaths':_0x50b9cd[_0x39d150(0xaf)],'contentHash':_0x50b9cd[_0x39d150(0xa6)],'treeHash':_0x50b9cd['treeHash'],'pulledAt':_0x50b9cd['pulledAt']};}function a48_0x4aa2(){var _0x3f2e61=['version','linkedPaths','appCode','metadataPath','scope','cacheDir','1199200cZfVDQ','skillCode','19536OzwZXn','1786707rpPjFw','30KePZYb','166SNfSis','4906590dIEbHS','194929XTcAon','contentHash','readonly','skillName','6372pntqVl','tags','70250YxJqzr','skillMdPath','110QYjRsG'];a48_0x4aa2=function(){return _0x3f2e61;};return a48_0x4aa2();}
@@ -1 +1 @@
1
- const a45_0x50c92f=a45_0x29c9;(function(_0x46986,_0x50c1e2){const _0xb5f3aa=a45_0x29c9,_0x49c8e5=_0x46986();while(!![]){try{const _0x3bb6a4=parseInt(_0xb5f3aa(0x12d))/0x1*(-parseInt(_0xb5f3aa(0x138))/0x2)+-parseInt(_0xb5f3aa(0x119))/0x3+-parseInt(_0xb5f3aa(0x11f))/0x4*(parseInt(_0xb5f3aa(0x114))/0x5)+parseInt(_0xb5f3aa(0x133))/0x6+parseInt(_0xb5f3aa(0x120))/0x7+-parseInt(_0xb5f3aa(0x139))/0x8*(parseInt(_0xb5f3aa(0x116))/0x9)+parseInt(_0xb5f3aa(0x12b))/0xa;if(_0x3bb6a4===_0x50c1e2)break;else _0x49c8e5['push'](_0x49c8e5['shift']());}catch(_0x455534){_0x49c8e5['push'](_0x49c8e5['shift']());}}}(a45_0x2ba9,0xd02b1));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x50c92f(0x122),'read',a45_0x50c92f(0x11d)];export const DEFAULT_SKILL_TARGET=a45_0x50c92f(0x115);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(_0x1673e3){const _0x50943c=a45_0x50c92f,_0x3280b2=_0x1673e3[_0x50943c(0x11b)]();if(!SKILL_NAME_PATTERN[_0x50943c(0x129)](_0x3280b2))throw CliErrors['validation'](_0x50943c(0x137)+_0x1673e3+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x50943c(0x131));return _0x3280b2;}export function normalizeSkillTemplateType(_0x560022){const _0xb2ad3c=a45_0x50c92f,_0x1c3198=(_0x560022||_0xb2ad3c(0x122))[_0xb2ad3c(0x11b)]()||_0xb2ad3c(0x122);if(SKILL_TYPES[_0xb2ad3c(0x135)](_0x1c3198))return _0x1c3198;throw CliErrors[_0xb2ad3c(0x125)](_0xb2ad3c(0x127)+_0x560022,_0xb2ad3c(0x11c)+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x474d3d){const _0x270152=a45_0x50c92f,_0xbae618=validateSkillName(_0x474d3d[_0x270152(0x128)]),_0x124a37=normalizeSkillTemplateType(_0x474d3d[_0x270152(0x121)]),_0x3b0388=_0x474d3d['timestamp']??new Date()[_0x270152(0x12f)]();return{'skillName':_0xbae618,'type':_0x124a37,'files':[{'path':_0x270152(0x11a),'content':renderSkillMd(_0xbae618,_0x124a37,_0x3b0388)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xbae618,_0x124a37)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xbae618,_0x124a37)}]};}function renderSkillMd(_0x2126be,_0x1a3511,_0xa9a0fa){const _0x5f20be=a45_0x50c92f,_0x281aec=typeWorkflow(_0x1a3511);return _0x5f20be(0x123)+_0x2126be+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x1a3511+_0x5f20be(0x12c)+_0xa9a0fa+_0x5f20be(0x12e)+_0x2126be+_0x5f20be(0x124)+_0x281aec+'\x0a\x0a'+businessStateSection(_0x1a3511)+'\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';}function renderRuntimeContract(_0x395a8e,_0xe8e287){const _0xf6ac2d=a45_0x50c92f,_0x3ae87f=_0xe8e287===_0xf6ac2d(0x122)?_0xf6ac2d(0x126):'';return _0xf6ac2d(0x11e)+_0x395a8e+_0xf6ac2d(0x132)+_0xe8e287+'\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'+_0x3ae87f+'\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';}function a45_0x29c9(_0x57f7f1,_0x42c6c2){_0x57f7f1=_0x57f7f1-0x114;const _0x2ba9ee=a45_0x2ba9();let _0x29c9e1=_0x2ba9ee[_0x57f7f1];return _0x29c9e1;}function renderOutputContract(_0x5279d2,_0x386f28){const _0x4e534c=a45_0x50c92f,_0x547234=_0x386f28===_0x4e534c(0x122)?_0x4e534c(0x118):_0x386f28+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x4e534c(0x134)+_0x5279d2+'\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'+_0x547234+_0x4e534c(0x130);}function typeWorkflow(_0x3a1fb0){const _0x3a2dcd=a45_0x50c92f;if(_0x3a1fb0===_0x3a2dcd(0x12a))return _0x3a2dcd(0x136);if(_0x3a1fb0===_0x3a2dcd(0x11d))return'1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】';return _0x3a2dcd(0x117);}function a45_0x2ba9(){const _0x105084=['\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','toISOString','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','\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=','3132552OXPCiH','#\x20Output\x20Contract\x0a\x0a','includes','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','Invalid\x20Skill\x20name:\x20','8yRyIuH','2632PFRwei','210055FcYenc','.agents/skills','2754xzrtsI','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','3950793pUUrfG','SKILL.md','trim','Use\x20one\x20of:\x20','trainer','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','68LQcGqN','10230927MeovOd','type','write','---\x0aname:\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','validation','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','Unsupported\x20Skill\x20type:\x20','skillName','test','read','18321240XacndV','\x0a\x20\x20created:\x20\x22','207832DmsZsV'];a45_0x2ba9=function(){return _0x105084;};return a45_0x2ba9();}function businessStateSection(_0x1da9a7){const _0x3bde16=a45_0x50c92f;if(_0x1da9a7!==_0x3bde16(0x122))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
1
+ const a49_0x572dfb=a49_0x42b3;(function(_0x3d4a6c,_0x394d51){const _0x5c6698=a49_0x42b3,_0x1a44e9=_0x3d4a6c();while(!![]){try{const _0x1f2dc7=parseInt(_0x5c6698(0xf3))/0x1+parseInt(_0x5c6698(0xfc))/0x2*(parseInt(_0x5c6698(0xef))/0x3)+-parseInt(_0x5c6698(0xe3))/0x4*(-parseInt(_0x5c6698(0x104))/0x5)+parseInt(_0x5c6698(0x103))/0x6+-parseInt(_0x5c6698(0xf8))/0x7*(-parseInt(_0x5c6698(0xfe))/0x8)+-parseInt(_0x5c6698(0xf6))/0x9+-parseInt(_0x5c6698(0xf9))/0xa;if(_0x1f2dc7===_0x394d51)break;else _0x1a44e9['push'](_0x1a44e9['shift']());}catch(_0x2b8673){_0x1a44e9['push'](_0x1a44e9['shift']());}}}(a49_0x5b9d,0xae305));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a49_0x572dfb(0xe1),'trainer'];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a49_0x572dfb(0xdd);export const OUTPUT_CONTRACT_FILE=a49_0x572dfb(0xfd);export function validateSkillName(_0x489493){const _0x9bcd71=a49_0x572dfb,_0xcc5087=_0x489493[_0x9bcd71(0xe0)]();if(!SKILL_NAME_PATTERN[_0x9bcd71(0xed)](_0xcc5087))throw CliErrors['validation'](_0x9bcd71(0xf1)+_0x489493+_0x9bcd71(0xf0),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0xcc5087;}export function normalizeSkillTemplateType(_0x4b4f89){const _0x3ab3cd=a49_0x572dfb,_0x3e9047=(_0x4b4f89||_0x3ab3cd(0xec))[_0x3ab3cd(0xe0)]()||'write';if(SKILL_TYPES['includes'](_0x3e9047))return _0x3e9047;throw CliErrors[_0x3ab3cd(0x101)](_0x3ab3cd(0xe9)+_0x4b4f89,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x3ab3cd(0xf5)](',\x20')+'.');}function a49_0x42b3(_0x3ddf83,_0x5daf73){_0x3ddf83=_0x3ddf83-0xdc;const _0x5b9d91=a49_0x5b9d();let _0x42b3a0=_0x5b9d91[_0x3ddf83];return _0x42b3a0;}export function renderSkillTemplate(_0x500e6d){const _0x12c658=a49_0x572dfb,_0x5bf05e=validateSkillName(_0x500e6d['skillName']),_0x1d1413=normalizeSkillTemplateType(_0x500e6d[_0x12c658(0xdc)]),_0xd45237=_0x500e6d[_0x12c658(0xde)]??new Date()[_0x12c658(0xee)]();return{'skillName':_0x5bf05e,'type':_0x1d1413,'files':[{'path':_0x12c658(0x102),'content':renderSkillMd(_0x5bf05e,_0x1d1413,_0xd45237)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x5bf05e,_0x1d1413)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x5bf05e,_0x1d1413)}]};}function renderSkillMd(_0x4ae384,_0x9033fd,_0x25d830){const _0x3cf3ab=a49_0x572dfb,_0x413e76=typeWorkflow(_0x9033fd);return _0x3cf3ab(0xe7)+_0x4ae384+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x9033fd+_0x3cf3ab(0xdf)+_0x25d830+_0x3cf3ab(0xe8)+_0x4ae384+_0x3cf3ab(0xf7)+_0x413e76+'\x0a\x0a'+businessStateSection(_0x9033fd)+_0x3cf3ab(0xe4);}function renderRuntimeContract(_0x328a05,_0x5420ef){const _0x35a400=a49_0x572dfb,_0x35ab02=_0x5420ef===_0x35a400(0xec)?_0x35a400(0x100):'';return _0x35a400(0xeb)+_0x328a05+_0x35a400(0xf4)+_0x5420ef+_0x35a400(0xfa)+_0x35ab02+_0x35a400(0xe2);}function renderOutputContract(_0x36e250,_0x3f85ae){const _0x36f6d1=a49_0x572dfb,_0x47513a=_0x3f85ae===_0x36f6d1(0xec)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x3f85ae+_0x36f6d1(0xff);return'#\x20Output\x20Contract\x0a\x0a'+_0x36e250+_0x36f6d1(0xea)+_0x47513a+_0x36f6d1(0xf2);}function a49_0x5b9d(){const _0x22e5a3=['1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','---\x0aname:\x20','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','Unsupported\x20Skill\x20type:\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','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','write','test','toISOString','2053530TzLUtI','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Invalid\x20Skill\x20name:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','1169333ospQDB','\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=','join','9824796UIMImK','\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','7QjzRTL','34003940fpAUMB','\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只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','4zlkSyP','references/output-contract.md','3574344ZrrudH','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','validation','SKILL.md','6744984AuTcKf','1045IakBWz','type','references/runtime-contract.md','timestamp','\x0a\x20\x20created:\x20\x22','trim','read','\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','20980QFQGlc','\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','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】'];a49_0x5b9d=function(){return _0x22e5a3;};return a49_0x5b9d();}function typeWorkflow(_0x49e94b){const _0x4d993a=a49_0x572dfb;if(_0x49e94b==='read')return _0x4d993a(0xe6);if(_0x49e94b==='trainer')return _0x4d993a(0xfb);return _0x4d993a(0xe5);}function businessStateSection(_0x2407d4){const _0x1ace26=a49_0x572dfb;if(_0x2407d4!==_0x1ace26(0xec))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
@@ -1 +1 @@
1
- const a46_0x74459b=a46_0x1c29;(function(_0x261ccc,_0x1db22c){const _0x464cee=a46_0x1c29,_0x1b7686=_0x261ccc();while(!![]){try{const _0x498a85=parseInt(_0x464cee(0x134))/0x1+-parseInt(_0x464cee(0x133))/0x2*(parseInt(_0x464cee(0x14b))/0x3)+parseInt(_0x464cee(0x147))/0x4*(-parseInt(_0x464cee(0x110))/0x5)+-parseInt(_0x464cee(0x108))/0x6+-parseInt(_0x464cee(0x10e))/0x7+parseInt(_0x464cee(0x12a))/0x8+-parseInt(_0x464cee(0x10c))/0x9*(-parseInt(_0x464cee(0x14d))/0xa);if(_0x498a85===_0x1db22c)break;else _0x1b7686['push'](_0x1b7686['shift']());}catch(_0x471a7b){_0x1b7686['push'](_0x1b7686['shift']());}}}(a46_0x2a6b,0x8fd4d));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a46_0x471bbc}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a46_0x74459b(0x102),SUPPORTED_SKILL_TYPES=new Set(['write','read',a46_0x74459b(0x104)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0xa64290,_0x3c19d4={}){const _0x5916a7=a46_0x74459b,_0x819806=resolveSkillDirectoryRoot(_0xa64290),_0x5e40f5=[],_0x6f7eea=loadRequiredSkillFile(_0x819806,_0x5e40f5),_0x136da5=_0x6f7eea?parseFrontmatter(_0x6f7eea[_0x5916a7(0x136)]):{'hasFrontmatter':![]};_0x6f7eea&&validateFrontmatter(_0x6f7eea[_0x5916a7(0x11f)],_0x136da5,_0x5e40f5);validateRuntimeCliReferences(_0x819806,_0x5e40f5);const _0xaacd78=_0x5e40f5[_0x5916a7(0x127)](_0x26df47=>_0x26df47['level']===_0x5916a7(0x143)),_0x1cdc99=_0x5e40f5[_0x5916a7(0x127)](_0x31a34c=>_0x31a34c[_0x5916a7(0x11b)]===_0x5916a7(0x130));return{'ok':_0xaacd78[_0x5916a7(0x106)]===0x0,'dir':_0x819806,'type':_0x136da5[_0x5916a7(0x12c)],'errors':_0xaacd78,'warnings':_0x1cdc99};}function resolveSkillDirectoryRoot(_0x31fd10){const _0x47d5fd=a46_0x74459b,_0x369a0e=resolve(_0x31fd10);if(!existsSync(_0x369a0e))throw CliErrors[_0x47d5fd(0x146)](_0x47d5fd(0x142)+_0x31fd10);const _0x53eda6=lstatSync(_0x369a0e);if(_0x53eda6[_0x47d5fd(0x113)]())return _0x369a0e;if(_0x53eda6[_0x47d5fd(0x139)]()){const _0x196866=realpathSync(_0x369a0e);if(lstatSync(_0x196866)[_0x47d5fd(0x113)]())return _0x196866;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x31fd10);}function a46_0x1c29(_0x3a87d2,_0x30e1ad){_0x3a87d2=_0x3a87d2-0xf9;const _0x2a6ba7=a46_0x2a6b();let _0x1c2935=_0x2a6ba7[_0x3a87d2];return _0x1c2935;}export function throwIfSkillValidationFailed(_0x4d497d,_0x4286c9=![]){const _0x42a37b=a46_0x74459b;if(_0x4d497d['ok'])return;const _0x37f6f2=_0x4d497d[_0x42a37b(0x10f)][_0x42a37b(0x114)](_0x5af637=>{const _0x1f275d=_0x42a37b,_0x391126=_0x5af637[_0x1f275d(0x101)]?'#'+_0x5af637[_0x1f275d(0x101)]:'';return _0x5af637[_0x1f275d(0x11b)][_0x1f275d(0x100)]()+'\x20'+_0x5af637[_0x1f275d(0x138)]+'\x20'+_0x5af637[_0x1f275d(0x129)]+_0x391126+':\x20'+_0x5af637[_0x1f275d(0x121)]+_0x1f275d(0xfb)+_0x5af637[_0x1f275d(0x118)];});throw CliErrors[_0x42a37b(0x146)](_0x42a37b(0x125)+_0x37f6f2['join']('\x0a'),_0x42a37b(0x12e));}function loadRequiredSkillFile(_0x28bd73,_0x420752){const _0x407a8c=a46_0x74459b,_0x18ec06=resolve(_0x28bd73,SKILL_FILE);if(!existsSync(_0x18ec06))return _0x420752[_0x407a8c(0x103)](issue('error',_0x407a8c(0x141),SKILL_FILE,_0x407a8c(0x140),_0x407a8c(0xfd))),undefined;const _0x14a65c=lstatSync(_0x18ec06);if(_0x14a65c['isSymbolicLink']())return _0x420752[_0x407a8c(0x103)](issue('error',_0x407a8c(0x141),SKILL_FILE,_0x407a8c(0x112),_0x407a8c(0x128))),undefined;if(!_0x14a65c['isFile']())return _0x420752[_0x407a8c(0x103)](issue(_0x407a8c(0x143),_0x407a8c(0x141),SKILL_FILE,_0x407a8c(0x14e),_0x407a8c(0xfe))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x18ec06,_0x407a8c(0x12d))};}function validateFrontmatter(_0x479f4a,_0x2403cd,_0x1d8f31){const _0x47e867=a46_0x74459b;if(!_0x2403cd['hasFrontmatter']){_0x1d8f31[_0x47e867(0x103)](issue('error',_0x47e867(0x123),_0x479f4a,_0x47e867(0x13c),_0x47e867(0x117)));return;}!_0x2403cd['name']?.[_0x47e867(0x11d)]()&&_0x1d8f31[_0x47e867(0x103)](issue('error','frontmatter-required',_0x479f4a,_0x47e867(0x14c),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x2403cd[_0x47e867(0x107)]?.[_0x47e867(0x11d)]()&&_0x1d8f31[_0x47e867(0x103)](issue('error',_0x47e867(0x14a),_0x479f4a,_0x47e867(0x11a),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x2403cd[_0x47e867(0x105)]===!![]&&_0x1d8f31[_0x47e867(0x103)](issue('error',_0x47e867(0x148),_0x479f4a,_0x47e867(0x124),_0x47e867(0x13e))),_0x2403cd[_0x47e867(0x12c)]?.[_0x47e867(0x11d)]()&&!SUPPORTED_SKILL_TYPES[_0x47e867(0x10d)](_0x2403cd[_0x47e867(0x12c)])&&_0x1d8f31['push'](issue(_0x47e867(0x143),_0x47e867(0x123),_0x479f4a,_0x47e867(0xf9),_0x47e867(0x119)));}function validateRuntimeCliReferences(_0x47bcb6,_0xc37694){const _0x26ec55=a46_0x74459b;for(const _0x281833 of findRabetbaseCliInvocations(_0x47bcb6)){_0xc37694['push'](issue(_0x26ec55(0x130),_0x26ec55(0x137),_0x281833[_0x26ec55(0x129)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x26ec55(0x13b),'L'+_0x281833[_0x26ec55(0xfa)]));}}function findRabetbaseCliInvocations(_0xa44409){const _0xadf6f2=a46_0x74459b;return scanSkillDirectory(_0xa44409)[_0xadf6f2(0x127)](_0x1b1c27=>TEXT_SKILL_FILE_PATTERN[_0xadf6f2(0x11e)](_0x1b1c27[_0xadf6f2(0x11f)]))['flatMap'](_0x4c7281=>{const _0x47ceae=_0xadf6f2,_0x4273b4=fileText(_0x4c7281);return _0x4273b4[_0x47ceae(0x149)](/\r?\n/)[_0x47ceae(0x114)]((_0x49074c,_0x94cc28)=>({'file':_0x4c7281[_0x47ceae(0x11f)],'line':_0x94cc28+0x1,'text':_0x49074c}))[_0x47ceae(0x127)](({text:_0xe3aef4})=>isRabetbaseCliInvocation(_0xe3aef4))[_0x47ceae(0x114)](({file:_0x3d680d,line:_0x3c1331})=>({'file':_0x3d680d,'line':_0x3c1331}));});}const RABETBASE_SUBCOMMANDS=[a46_0x74459b(0x120),a46_0x74459b(0x115),a46_0x74459b(0xfc),a46_0x74459b(0x13f),'project','app',a46_0x74459b(0x145),a46_0x74459b(0x132),a46_0x74459b(0x14f),'kb','config',a46_0x74459b(0x12f),a46_0x74459b(0x122),a46_0x74459b(0xff),a46_0x74459b(0x10a),'registry'],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x74459b(0x144)]('|')})\b`+String[a46_0x74459b(0x131)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x1a441b){const _0x594337=a46_0x74459b,_0x520e01=_0x1a441b['search'](/\brabetbase\b/i);if(_0x520e01<0x0)return![];const _0x58b725=_0x1a441b[_0x594337(0x11c)](_0x520e01)[_0x594337(0x149)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x58b725);}function parseFrontmatter(_0x5a80f9){const _0x1b74c7=a46_0x74459b,_0x59ff82=_0x5a80f9[_0x1b74c7(0x10b)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x59ff82)return{'hasFrontmatter':![]};const _0x21d6d7=_0x59ff82[0x1]??'',_0x2c6747={'hasFrontmatter':!![]};let _0x438038;try{_0x438038=a46_0x471bbc(_0x21d6d7);}catch{return _0x2c6747;}const _0x4e3777=asRecord(_0x438038);if(!_0x4e3777)return _0x2c6747;_0x2c6747[_0x1b74c7(0x135)]=scalarToString(_0x4e3777[_0x1b74c7(0x135)]),_0x2c6747[_0x1b74c7(0x107)]=scalarToString(_0x4e3777[_0x1b74c7(0x107)]);const _0x196537=asRecord(_0x4e3777[_0x1b74c7(0x12b)]);return _0x196537&&(_0x2c6747['type']=scalarToString(_0x196537[_0x1b74c7(0x12c)]),_0x2c6747[_0x1b74c7(0x105)]=scalarToBoolean(_0x196537[_0x1b74c7(0x105)])),_0x2c6747;}function a46_0x2a6b(){const _0x2277e2=['join','schema','validation','11620CJBwGT','internal-skill','split','description-required','6AXazQE','Frontmatter\x20name\x20is\x20missing.','10kYKhQy','SKILL.md\x20is\x20not\x20a\x20file.','artifact','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','line','\x20Fix:\x20','bff','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','auth','toUpperCase','section','SKILL.md','push','trainer','internal','length','description','1119534dmSMwx','true','logs','match','7937901zLTaaV','has','3155523ouXyJj','errors','25lsGMIw','boolean','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','isDirectory','map','sql','isArray','Add\x20frontmatter\x20with\x20name\x20and\x20description.','suggestion','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','Frontmatter\x20description\x20is\x20empty.','level','slice','trim','test','path','dataset','message','data','frontmatter-required','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Skill\x20validation\x20failed:\x0a','false','filter','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','file','5565568iKvFuq','metadata','type','utf8','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','workspace','warning','raw','service','1051978rXaQWJ','715329OSanVe','name','content','rabetbase-cli-reference','ruleId','isSymbolicLink','number','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','toLowerCase','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','page','Missing\x20SKILL.md.','structure-complete','Skill\x20directory\x20not\x20found:\x20','error'];a46_0x2a6b=function(){return _0x2277e2;};return a46_0x2a6b();}function asRecord(_0x59d255){const _0x441fe0=a46_0x74459b;if(_0x59d255&&typeof _0x59d255==='object'&&!Array[_0x441fe0(0x116)](_0x59d255))return _0x59d255;return undefined;}function scalarToString(_0x450254){const _0x323bf0=a46_0x74459b;if(typeof _0x450254==='string')return _0x450254[_0x323bf0(0x11d)]();if(typeof _0x450254===_0x323bf0(0x13a)||typeof _0x450254===_0x323bf0(0x111))return String(_0x450254);return undefined;}function scalarToBoolean(_0x45685a){const _0x14c5d5=a46_0x74459b;if(typeof _0x45685a===_0x14c5d5(0x111))return _0x45685a;if(typeof _0x45685a==='string')return cleanBoolean(_0x45685a);return undefined;}function cleanBoolean(_0x47ee3a){const _0x217aa0=a46_0x74459b,_0x9162d1=_0x47ee3a[_0x217aa0(0x11d)]()[_0x217aa0(0x13d)]();if(_0x9162d1===_0x217aa0(0x109))return!![];if(_0x9162d1===_0x217aa0(0x126))return![];return undefined;}function issue(_0x2e9596,_0x40a72d,_0x3d73ea,_0x216e00,_0x171a80,_0x18fd58){return{'level':_0x2e9596,'ruleId':_0x40a72d,'file':_0x3d73ea,'section':_0x18fd58,'message':_0x216e00,'suggestion':_0x171a80};}
1
+ const a50_0x9d0be3=a50_0x3dd7;(function(_0x5a05f3,_0x18c26c){const _0x3a2033=a50_0x3dd7,_0x33e64c=_0x5a05f3();while(!![]){try{const _0x4dc069=-parseInt(_0x3a2033(0x1db))/0x1*(parseInt(_0x3a2033(0x1f9))/0x2)+-parseInt(_0x3a2033(0x1ee))/0x3+-parseInt(_0x3a2033(0x1f0))/0x4+-parseInt(_0x3a2033(0x1eb))/0x5+-parseInt(_0x3a2033(0x210))/0x6*(-parseInt(_0x3a2033(0x215))/0x7)+-parseInt(_0x3a2033(0x1cc))/0x8*(-parseInt(_0x3a2033(0x21a))/0x9)+parseInt(_0x3a2033(0x1ca))/0xa;if(_0x4dc069===_0x18c26c)break;else _0x33e64c['push'](_0x33e64c['shift']());}catch(_0x2cbdb1){_0x33e64c['push'](_0x33e64c['shift']());}}}(a50_0x319c,0x3567e));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a50_0x4c0c77}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a50_0x9d0be3(0x1d8),SUPPORTED_SKILL_TYPES=new Set([a50_0x9d0be3(0x211),a50_0x9d0be3(0x216),a50_0x9d0be3(0x206)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a50_0x319c(){const _0x16bb65=['824084rrdwGD','page','warning','name','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','section','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','470882wwNRoZ','search','sql','content','join','line','isFile','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','filter','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','structure-complete','internal-skill','Skill\x20directory\x20not\x20found:\x20','trainer','Add\x20frontmatter\x20with\x20name\x20and\x20description.','has','toLowerCase','number','ruleId','slice','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','\x20Fix:\x20','split','96hcdEDA','write','string','SKILL.md\x20must\x20start\x20with\x20frontmatter.','length','25319NvxAPr','read','errors','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','validation','296037ETFIoJ','boolean','description','path','trim','message','error','6380240KFyMYx','isArray','72rUOIky','object','toUpperCase','bff','suggestion','file','app','Skill\x20validation\x20failed:\x0a','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','test','raw','isDirectory','SKILL.md','internal','push','1BXEiJb','isSymbolicLink','flatMap','dataset','match','type','SKILL.md\x20is\x20not\x20a\x20file.','registry','service','project','Frontmatter\x20description\x20is\x20empty.','frontmatter-required','level','auth','map','schema','895270JHGdSm','workspace','logs','458001XqpHkQ','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.'];a50_0x319c=function(){return _0x16bb65;};return a50_0x319c();}export function validateSkillDirectory(_0x12f71c,_0x1d60e2={}){const _0x56d23a=a50_0x9d0be3,_0x4a8681=resolveSkillDirectoryRoot(_0x12f71c),_0x2c2d69=[],_0x108b80=loadRequiredSkillFile(_0x4a8681,_0x2c2d69),_0x2b2052=_0x108b80?parseFrontmatter(_0x108b80[_0x56d23a(0x1fc)]):{'hasFrontmatter':![]};_0x108b80&&validateFrontmatter(_0x108b80[_0x56d23a(0x21d)],_0x2b2052,_0x2c2d69);validateRuntimeCliReferences(_0x4a8681,_0x2c2d69);const _0x54aa88=_0x2c2d69[_0x56d23a(0x201)](_0x4ec980=>_0x4ec980[_0x56d23a(0x1e7)]===_0x56d23a(0x1c9)),_0x2945b2=_0x2c2d69[_0x56d23a(0x201)](_0x5bf8a0=>_0x5bf8a0[_0x56d23a(0x1e7)]===_0x56d23a(0x1f2));return{'ok':_0x54aa88[_0x56d23a(0x214)]===0x0,'dir':_0x4a8681,'type':_0x2b2052[_0x56d23a(0x1e0)],'errors':_0x54aa88,'warnings':_0x2945b2};}function resolveSkillDirectoryRoot(_0x27dd0f){const _0x5a71ca=a50_0x9d0be3,_0x3fe691=resolve(_0x27dd0f);if(!existsSync(_0x3fe691))throw CliErrors['validation'](_0x5a71ca(0x205)+_0x27dd0f);const _0x4b2170=lstatSync(_0x3fe691);if(_0x4b2170[_0x5a71ca(0x1d7)]())return _0x3fe691;if(_0x4b2170[_0x5a71ca(0x1dc)]()){const _0x263c15=realpathSync(_0x3fe691);if(lstatSync(_0x263c15)['isDirectory']())return _0x263c15;}throw CliErrors[_0x5a71ca(0x219)]('Skill\x20directory\x20not\x20found:\x20'+_0x27dd0f);}export function throwIfSkillValidationFailed(_0x7c10fa,_0x5bb75c=![]){const _0x4104c1=a50_0x9d0be3;if(_0x7c10fa['ok'])return;const _0xe3d337=_0x7c10fa[_0x4104c1(0x217)]['map'](_0x3c9b9b=>{const _0x3e3ac3=_0x4104c1,_0x3dd39e=_0x3c9b9b[_0x3e3ac3(0x1f7)]?'#'+_0x3c9b9b['section']:'';return _0x3c9b9b['level'][_0x3e3ac3(0x1ce)]()+'\x20'+_0x3c9b9b[_0x3e3ac3(0x20b)]+'\x20'+_0x3c9b9b[_0x3e3ac3(0x1d1)]+_0x3dd39e+':\x20'+_0x3c9b9b[_0x3e3ac3(0x1c8)]+_0x3e3ac3(0x20e)+_0x3c9b9b[_0x3e3ac3(0x1d0)];});throw CliErrors[_0x4104c1(0x219)](_0x4104c1(0x1d3)+_0xe3d337[_0x4104c1(0x1fd)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x16b768,_0xb8ac9c){const _0x3ebc5d=a50_0x9d0be3,_0x1e86c0=resolve(_0x16b768,SKILL_FILE);if(!existsSync(_0x1e86c0))return _0xb8ac9c['push'](issue(_0x3ebc5d(0x1c9),_0x3ebc5d(0x203),SKILL_FILE,'Missing\x20SKILL.md.',_0x3ebc5d(0x1f5))),undefined;const _0xb83ac0=lstatSync(_0x1e86c0);if(_0xb83ac0[_0x3ebc5d(0x1dc)]())return _0xb8ac9c[_0x3ebc5d(0x1da)](issue(_0x3ebc5d(0x1c9),'structure-complete',SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x3ebc5d(0x1ef))),undefined;if(!_0xb83ac0[_0x3ebc5d(0x1ff)]())return _0xb8ac9c['push'](issue(_0x3ebc5d(0x1c9),_0x3ebc5d(0x203),SKILL_FILE,_0x3ebc5d(0x1e1),_0x3ebc5d(0x1f6))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1e86c0,'utf8')};}function validateFrontmatter(_0x2878e3,_0x10ac78,_0x2fb27b){const _0x5d67eb=a50_0x9d0be3;if(!_0x10ac78['hasFrontmatter']){_0x2fb27b[_0x5d67eb(0x1da)](issue(_0x5d67eb(0x1c9),_0x5d67eb(0x1e6),_0x2878e3,_0x5d67eb(0x213),_0x5d67eb(0x207)));return;}!_0x10ac78[_0x5d67eb(0x1f3)]?.['trim']()&&_0x2fb27b['push'](issue(_0x5d67eb(0x1c9),_0x5d67eb(0x1e6),_0x2878e3,'Frontmatter\x20name\x20is\x20missing.',_0x5d67eb(0x218))),!_0x10ac78['description']?.[_0x5d67eb(0x1c7)]()&&_0x2fb27b[_0x5d67eb(0x1da)](issue(_0x5d67eb(0x1c9),'description-required',_0x2878e3,_0x5d67eb(0x1e5),_0x5d67eb(0x202))),_0x10ac78[_0x5d67eb(0x1d9)]===!![]&&_0x2fb27b['push'](issue(_0x5d67eb(0x1c9),_0x5d67eb(0x204),_0x2878e3,_0x5d67eb(0x1f4),_0x5d67eb(0x1d4))),_0x10ac78[_0x5d67eb(0x1e0)]?.[_0x5d67eb(0x1c7)]()&&!SUPPORTED_SKILL_TYPES[_0x5d67eb(0x208)](_0x10ac78[_0x5d67eb(0x1e0)])&&_0x2fb27b[_0x5d67eb(0x1da)](issue('error',_0x5d67eb(0x1e6),_0x2878e3,_0x5d67eb(0x200),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function a50_0x3dd7(_0x584dce,_0x5870c7){_0x584dce=_0x584dce-0x1c7;const _0x319c66=a50_0x319c();let _0x3dd716=_0x319c66[_0x584dce];return _0x3dd716;}function validateRuntimeCliReferences(_0x30ea18,_0x506fd5){const _0x31a4aa=a50_0x9d0be3;for(const _0x17afb8 of findRabetbaseCliInvocations(_0x30ea18)){_0x506fd5[_0x31a4aa(0x1da)](issue(_0x31a4aa(0x1f2),'rabetbase-cli-reference',_0x17afb8['file'],_0x31a4aa(0x1f8),_0x31a4aa(0x20d),'L'+_0x17afb8[_0x31a4aa(0x1fe)]));}}function findRabetbaseCliInvocations(_0x2ab4dc){const _0x7b830c=a50_0x9d0be3;return scanSkillDirectory(_0x2ab4dc)[_0x7b830c(0x201)](_0x2cbc12=>TEXT_SKILL_FILE_PATTERN[_0x7b830c(0x1d5)](_0x2cbc12['path']))[_0x7b830c(0x1dd)](_0x3432a7=>{const _0xff199b=_0x7b830c,_0x1059b8=fileText(_0x3432a7);return _0x1059b8[_0xff199b(0x20f)](/\r?\n/)[_0xff199b(0x1e9)]((_0x16915c,_0x13406a)=>({'file':_0x3432a7[_0xff199b(0x21d)],'line':_0x13406a+0x1,'text':_0x16915c}))[_0xff199b(0x201)](({text:_0x41ff65})=>isRabetbaseCliInvocation(_0x41ff65))['map'](({file:_0xe2c8d7,line:_0x3ce5ad})=>({'file':_0xe2c8d7,'line':_0x3ce5ad}));});}const RABETBASE_SUBCOMMANDS=[a50_0x9d0be3(0x1de),a50_0x9d0be3(0x1fb),a50_0x9d0be3(0x1cf),a50_0x9d0be3(0x1f1),a50_0x9d0be3(0x1e4),a50_0x9d0be3(0x1d2),a50_0x9d0be3(0x1ea),a50_0x9d0be3(0x1e3),'artifact','kb','config',a50_0x9d0be3(0x1ec),'data',a50_0x9d0be3(0x1e8),a50_0x9d0be3(0x1ed),a50_0x9d0be3(0x1e2)],RABETBASE_INVOCATION=new RegExp(String[a50_0x9d0be3(0x1d6)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a50_0x9d0be3(0x1d6)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x31e6a4){const _0x2b292b=a50_0x9d0be3,_0x281892=_0x31e6a4[_0x2b292b(0x1fa)](/\brabetbase\b/i);if(_0x281892<0x0)return![];const _0x535e3c=_0x31e6a4[_0x2b292b(0x20c)](_0x281892)[_0x2b292b(0x20f)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x535e3c);}function parseFrontmatter(_0x10542f){const _0x4c2b07=a50_0x9d0be3,_0xafcc87=_0x10542f[_0x4c2b07(0x1df)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xafcc87)return{'hasFrontmatter':![]};const _0x20f589=_0xafcc87[0x1]??'',_0x58646e={'hasFrontmatter':!![]};let _0x1567a5;try{_0x1567a5=a50_0x4c0c77(_0x20f589);}catch{return _0x58646e;}const _0x3eeeb3=asRecord(_0x1567a5);if(!_0x3eeeb3)return _0x58646e;_0x58646e[_0x4c2b07(0x1f3)]=scalarToString(_0x3eeeb3[_0x4c2b07(0x1f3)]),_0x58646e[_0x4c2b07(0x21c)]=scalarToString(_0x3eeeb3[_0x4c2b07(0x21c)]);const _0xe3aab2=asRecord(_0x3eeeb3['metadata']);return _0xe3aab2&&(_0x58646e[_0x4c2b07(0x1e0)]=scalarToString(_0xe3aab2[_0x4c2b07(0x1e0)]),_0x58646e['internal']=scalarToBoolean(_0xe3aab2['internal'])),_0x58646e;}function asRecord(_0x245507){const _0x5798dd=a50_0x9d0be3;if(_0x245507&&typeof _0x245507===_0x5798dd(0x1cd)&&!Array[_0x5798dd(0x1cb)](_0x245507))return _0x245507;return undefined;}function scalarToString(_0x139352){const _0x459b85=a50_0x9d0be3;if(typeof _0x139352==='string')return _0x139352[_0x459b85(0x1c7)]();if(typeof _0x139352===_0x459b85(0x20a)||typeof _0x139352===_0x459b85(0x21b))return String(_0x139352);return undefined;}function scalarToBoolean(_0x24fecc){const _0x29f6f9=a50_0x9d0be3;if(typeof _0x24fecc===_0x29f6f9(0x21b))return _0x24fecc;if(typeof _0x24fecc===_0x29f6f9(0x212))return cleanBoolean(_0x24fecc);return undefined;}function cleanBoolean(_0x40d6a2){const _0x49f51b=a50_0x9d0be3,_0x10e48c=_0x40d6a2[_0x49f51b(0x1c7)]()[_0x49f51b(0x209)]();if(_0x10e48c==='true')return!![];if(_0x10e48c==='false')return![];return undefined;}function issue(_0x411b19,_0x6c55fd,_0x65fde8,_0x353feb,_0x50e89a,_0x5d4254){return{'level':_0x411b19,'ruleId':_0x6c55fd,'file':_0x65fde8,'section':_0x5d4254,'message':_0x353feb,'suggestion':_0x50e89a};}
@@ -1 +1 @@
1
- const a47_0x5dc2c0=a47_0x555b;(function(_0x4361d5,_0x26568b){const _0x57a5c9=a47_0x555b,_0x34d01b=_0x4361d5();while(!![]){try{const _0x4a5179=parseInt(_0x57a5c9(0xa7))/0x1*(parseInt(_0x57a5c9(0x98))/0x2)+-parseInt(_0x57a5c9(0x94))/0x3*(-parseInt(_0x57a5c9(0x9a))/0x4)+-parseInt(_0x57a5c9(0xa6))/0x5+parseInt(_0x57a5c9(0x99))/0x6*(-parseInt(_0x57a5c9(0x9c))/0x7)+-parseInt(_0x57a5c9(0x9b))/0x8*(parseInt(_0x57a5c9(0x93))/0x9)+-parseInt(_0x57a5c9(0x96))/0xa+parseInt(_0x57a5c9(0x95))/0xb*(parseInt(_0x57a5c9(0xa4))/0xc);if(_0x4a5179===_0x26568b)break;else _0x34d01b['push'](_0x34d01b['shift']());}catch(_0xb3492d){_0x34d01b['push'](_0x34d01b['shift']());}}}(a47_0x295f,0x2c735));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a47_0x555b(_0xca5232,_0x56a174){_0xca5232=_0xca5232-0x93;const _0x295fff=a47_0x295f();let _0x555b62=_0x295fff[_0xca5232];return _0x555b62;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a47_0x5dc2c0(0x97),'description':a47_0x5dc2c0(0x9f),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x55b9fb){const _0x4872f3=a47_0x5dc2c0,_0x320d72=await getSqlQueryInfo(_0x55b9fb[_0x4872f3(0xa1)],_0x55b9fb[_0x4872f3(0x9d)](_0x4872f3(0xa5))),_0x3cdf72=_0x55b9fb['bool']('verbose');if(_0x3cdf72)return{'ok':!![],'data':_0x320d72};const _0x27cbb8=_0x320d72[_0x4872f3(0xa0)]?await getDbName(_0x55b9fb[_0x4872f3(0xa1)],_0x320d72[_0x4872f3(0xa0)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x320d72[_0x4872f3(0xa8)],'sqlName':_0x320d72[_0x4872f3(0xa2)],'db':_0x27cbb8?_0x27cbb8+'\x20('+_0x320d72[_0x4872f3(0xa0)]+')':_0x320d72[_0x4872f3(0xa0)]??'','description':_0x320d72[_0x4872f3(0x9e)]??'','sqlContent':_0x320d72[_0x4872f3(0xa3)]??''}};}};function a47_0x295f(){const _0x4ad9cf=['2360337IQBSnz','str','description','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','dbId','appCode','sqlName','sqlContent','12TLHpit','sqlcode','973855wXumzn','367uRycUn','sqlCode','432324PezDvb','69tFMVGG','5162707KsGRmd','214920jrIGzo','detail','1502wCoGel','6CQEfYE','15068kpoGQU','16kFUSqx'];a47_0x295f=function(){return _0x4ad9cf;};return a47_0x295f();}
1
+ function a51_0x9120(_0x59a9b7,_0x2fa74b){_0x59a9b7=_0x59a9b7-0x1ed;const _0x766b63=a51_0x766b();let _0x91207b=_0x766b63[_0x59a9b7];return _0x91207b;}const a51_0xa01aad=a51_0x9120;(function(_0x3d80b6,_0x78168b){const _0x1178c1=a51_0x9120,_0x225896=_0x3d80b6();while(!![]){try{const _0x18531c=-parseInt(_0x1178c1(0x1f7))/0x1*(-parseInt(_0x1178c1(0x200))/0x2)+-parseInt(_0x1178c1(0x1f2))/0x3+-parseInt(_0x1178c1(0x1ef))/0x4*(parseInt(_0x1178c1(0x1f8))/0x5)+-parseInt(_0x1178c1(0x1f3))/0x6*(-parseInt(_0x1178c1(0x1f6))/0x7)+parseInt(_0x1178c1(0x1ed))/0x8+-parseInt(_0x1178c1(0x1fb))/0x9*(-parseInt(_0x1178c1(0x1ee))/0xa)+-parseInt(_0x1178c1(0x1f4))/0xb*(-parseInt(_0x1178c1(0x1fa))/0xc);if(_0x18531c===_0x78168b)break;else _0x225896['push'](_0x225896['shift']());}catch(_0x54c416){_0x225896['push'](_0x225896['shift']());}}}(a51_0x766b,0x624ef));import{getSqlQueryInfo}from'../../core/api-client.js';function a51_0x766b(){const _0x4287c8=['detail','appCode','416102zSsrUv','sqlName','description','sqlCode','1154384KcfFme','754580wEIWiW','40312zewSXD','read','bool','2234955nBFPlF','24wmgptK','187mgRxId','dbId','538181IyEqSl','2AtUTji','80efcBvx','sqlContent','44952LXpKXX','45nnQyDH','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a51_0x766b=function(){return _0x4287c8;};return a51_0x766b();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a51_0xa01aad(0x1fe),'description':a51_0xa01aad(0x1fd),'risk':a51_0xa01aad(0x1f0),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x2f8882){const _0x3e9f88=a51_0xa01aad,_0x59fb6d=await getSqlQueryInfo(_0x2f8882[_0x3e9f88(0x1ff)],_0x2f8882[_0x3e9f88(0x1fc)]('sqlcode')),_0x57c63e=_0x2f8882[_0x3e9f88(0x1f1)]('verbose');if(_0x57c63e)return{'ok':!![],'data':_0x59fb6d};const _0x4ed237=_0x59fb6d['dbId']?await getDbName(_0x2f8882[_0x3e9f88(0x1ff)],_0x59fb6d['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x59fb6d[_0x3e9f88(0x203)],'sqlName':_0x59fb6d[_0x3e9f88(0x201)],'db':_0x4ed237?_0x4ed237+'\x20('+_0x59fb6d['dbId']+')':_0x59fb6d[_0x3e9f88(0x1f5)]??'','description':_0x59fb6d[_0x3e9f88(0x202)]??'','sqlContent':_0x59fb6d[_0x3e9f88(0x1f9)]??''}};}};
@@ -1 +1 @@
1
- const a48_0x2007fc=a48_0x120d;(function(_0x52081c,_0x32c66f){const _0x125ec5=a48_0x120d,_0x43826a=_0x52081c();while(!![]){try{const _0x46c611=parseInt(_0x125ec5(0xbc))/0x1+parseInt(_0x125ec5(0xca))/0x2+-parseInt(_0x125ec5(0xc2))/0x3+parseInt(_0x125ec5(0xbd))/0x4+parseInt(_0x125ec5(0xc5))/0x5*(parseInt(_0x125ec5(0xc8))/0x6)+parseInt(_0x125ec5(0xcd))/0x7+-parseInt(_0x125ec5(0xc9))/0x8*(parseInt(_0x125ec5(0xc3))/0x9);if(_0x46c611===_0x32c66f)break;else _0x43826a['push'](_0x43826a['shift']());}catch(_0x5ece0c){_0x43826a['push'](_0x43826a['shift']());}}}(a48_0x1ac1,0x745fd));import{executeSdkSql}from'../../core/sdk-client.js';function a48_0x1ac1(){const _0xb7a35e=['SQL\x20execution\x20failed','execResult','execError','str','read','75410LSPgjQ','632660sQRllL','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','sql','length','Returned\x20','750489cduntq','2042082DJIksR','execSuccess','485LRqCoz','exec','isArray','19986RlZXdz','32vxBuMw','1245384XGCHrf','params','now','3185350FvrvHG','sqlcode','\x20row(s)\x20in\x20'];a48_0x1ac1=function(){return _0xb7a35e;};return a48_0x1ac1();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a48_0x120d(_0x53180a,_0x523489){_0x53180a=_0x53180a-0xbb;const _0x1ac1e1=a48_0x1ac1();let _0x120d36=_0x1ac1e1[_0x53180a];return _0x120d36;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x2007fc(0xbf),'command':a48_0x2007fc(0xc6),'description':a48_0x2007fc(0xbe),'risk':a48_0x2007fc(0xbb),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1be944){const _0x3276b6=a48_0x2007fc,_0x5dd3c4=parseJsonParams(_0x1be944[_0x3276b6(0xd3)](_0x3276b6(0xcb))),_0x25d928=Date[_0x3276b6(0xcc)](),_0x2f7f96=await executeSdkSql(_0x1be944[_0x3276b6(0xd3)](_0x3276b6(0xce)),_0x5dd3c4),_0xbb70e1=Date[_0x3276b6(0xcc)]()-_0x25d928,_0xd29921=_0x2f7f96?.[_0x3276b6(0xd1)]??_0x2f7f96,_0x5e784a=_0x2f7f96?.[_0x3276b6(0xc4)]??!![];if(!_0x5e784a)return{'ok':![],'data':{'error':_0x2f7f96?.[_0x3276b6(0xd2)]||_0x3276b6(0xd0),'elapsed':_0xbb70e1},'message':_0x3276b6(0xd0)};const _0x3a91ca=Array[_0x3276b6(0xc7)](_0xd29921)?_0xd29921:[];return{'ok':!![],'data':{'rows':_0x3a91ca,'rowCount':_0x3a91ca[_0x3276b6(0xc0)],'elapsed':_0xbb70e1},'message':_0x3276b6(0xc1)+_0x3a91ca[_0x3276b6(0xc0)]+_0x3276b6(0xcf)+_0xbb70e1+'ms'};}};
1
+ const a52_0x437acd=a52_0x323e;function a52_0x323e(_0x65a378,_0x136347){_0x65a378=_0x65a378-0xb9;const _0x4d42a3=a52_0x4d42();let _0x323eea=_0x4d42a3[_0x65a378];return _0x323eea;}(function(_0x2e737d,_0xe7aa59){const _0x17f146=a52_0x323e,_0x2b96ea=_0x2e737d();while(!![]){try{const _0x153d88=parseInt(_0x17f146(0xc1))/0x1+-parseInt(_0x17f146(0xcb))/0x2+-parseInt(_0x17f146(0xce))/0x3*(-parseInt(_0x17f146(0xcd))/0x4)+parseInt(_0x17f146(0xbf))/0x5+-parseInt(_0x17f146(0xc8))/0x6+-parseInt(_0x17f146(0xc3))/0x7*(parseInt(_0x17f146(0xc9))/0x8)+-parseInt(_0x17f146(0xc5))/0x9*(-parseInt(_0x17f146(0xc4))/0xa);if(_0x153d88===_0xe7aa59)break;else _0x2b96ea['push'](_0x2b96ea['shift']());}catch(_0x4d689d){_0x2b96ea['push'](_0x2b96ea['shift']());}}}(a52_0x4d42,0x44a40));import{executeSdkSql}from'../../core/sdk-client.js';function a52_0x4d42(){const _0x21fb87=['isArray','67298ZgktSR','execError','2134696XElGnP','3SCIJMl','str','\x20row(s)\x20in\x20','now','execResult','sqlcode','execSuccess','902130vWxxsK','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','60897gQmhkj','SQL\x20execution\x20failed','3218481ZuEVyF','10aXiOaN','2880783ieBWPq','length','Returned\x20','1923000eBNKnN','8aDmlol'];a52_0x4d42=function(){return _0x21fb87;};return a52_0x4d42();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':'exec','description':a52_0x437acd(0xc0),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x56208d){const _0x276adf=a52_0x437acd,_0x5be531=parseJsonParams(_0x56208d[_0x276adf(0xb9)]('params')),_0x30f3a4=Date[_0x276adf(0xbb)](),_0x4c7614=await executeSdkSql(_0x56208d[_0x276adf(0xb9)](_0x276adf(0xbd)),_0x5be531),_0x2db3a8=Date[_0x276adf(0xbb)]()-_0x30f3a4,_0x4f872f=_0x4c7614?.[_0x276adf(0xbc)]??_0x4c7614,_0x5976fa=_0x4c7614?.[_0x276adf(0xbe)]??!![];if(!_0x5976fa)return{'ok':![],'data':{'error':_0x4c7614?.[_0x276adf(0xcc)]||_0x276adf(0xc2),'elapsed':_0x2db3a8},'message':_0x276adf(0xc2)};const _0x5a4e87=Array[_0x276adf(0xca)](_0x4f872f)?_0x4f872f:[];return{'ok':!![],'data':{'rows':_0x5a4e87,'rowCount':_0x5a4e87[_0x276adf(0xc6)],'elapsed':_0x2db3a8},'message':_0x276adf(0xc7)+_0x5a4e87[_0x276adf(0xc6)]+_0x276adf(0xba)+_0x2db3a8+'ms'};}};
@@ -1 +1 @@
1
- function a49_0x3f95(){const _0x4a486e=['97816FcsZWm','5288272diRcky','66977rJKmZG','144LRXJFP','46242FqqumN','195QOPFHw','247952BcyEjv','4034240MaItVa','14vVjDlv','30LWtdKb','1695421VwwBDl'];a49_0x3f95=function(){return _0x4a486e;};return a49_0x3f95();}(function(_0x3d5566,_0x1c464d){const _0x53d2d2=a49_0x28a7,_0x518cd2=_0x3d5566();while(!![]){try{const _0x2790d8=parseInt(_0x53d2d2(0x1b3))/0x1*(-parseInt(_0x53d2d2(0x1b9))/0x2)+parseInt(_0x53d2d2(0x1ba))/0x3*(parseInt(_0x53d2d2(0x1b1))/0x4)+parseInt(_0x53d2d2(0x1b6))/0x5*(parseInt(_0x53d2d2(0x1b5))/0x6)+-parseInt(_0x53d2d2(0x1b0))/0x7+parseInt(_0x53d2d2(0x1b7))/0x8*(parseInt(_0x53d2d2(0x1b4))/0x9)+parseInt(_0x53d2d2(0x1b8))/0xa+-parseInt(_0x53d2d2(0x1b2))/0xb;if(_0x2790d8===_0x1c464d)break;else _0x518cd2['push'](_0x518cd2['shift']());}catch(_0x2fb277){_0x518cd2['push'](_0x518cd2['shift']());}}}(a49_0x3f95,0x3dae7));function a49_0x28a7(_0x426d3e,_0x2182c5){_0x426d3e=_0x426d3e-0x1b0;const _0x3f9598=a49_0x3f95();let _0x28a7b0=_0x3f9598[_0x426d3e];return _0x28a7b0;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x4ebc85,_0x2a2087){const _0x47d32b=a53_0x388d,_0x3fbf5c=_0x4ebc85();while(!![]){try{const _0x3989f3=-parseInt(_0x47d32b(0x1f2))/0x1*(-parseInt(_0x47d32b(0x1f8))/0x2)+-parseInt(_0x47d32b(0x1ef))/0x3+parseInt(_0x47d32b(0x1f3))/0x4*(parseInt(_0x47d32b(0x1f6))/0x5)+-parseInt(_0x47d32b(0x1f5))/0x6*(-parseInt(_0x47d32b(0x1f4))/0x7)+-parseInt(_0x47d32b(0x1f7))/0x8+-parseInt(_0x47d32b(0x1ee))/0x9*(parseInt(_0x47d32b(0x1f1))/0xa)+parseInt(_0x47d32b(0x1f0))/0xb;if(_0x3989f3===_0x2a2087)break;else _0x3fbf5c['push'](_0x3fbf5c['shift']());}catch(_0x503a57){_0x3fbf5c['push'](_0x3fbf5c['shift']());}}}(a53_0x3f00,0xc834d));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a53_0x388d(_0x5d0148,_0x375cae){_0x5d0148=_0x5d0148-0x1ee;const _0x3f00c1=a53_0x3f00();let _0x388db4=_0x3f00c1[_0x5d0148];return _0x388db4;}function a53_0x3f00(){const _0x46edb2=['1763613wFfdjQ','3228441bSTjiy','6997617ZPVaTZ','10nuZgOM','278ngTeRY','8lzjnmF','5789SVbgtL','606LbBHVk','3171715zOzJki','6677912bGzbBR','6752EwlnGP'];a53_0x3f00=function(){return _0x46edb2;};return a53_0x3f00();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a50_0x16563b=a50_0x59ea;(function(_0x3cf0d4,_0x333d7f){const _0x2457c5=a50_0x59ea,_0x414a87=_0x3cf0d4();while(!![]){try{const _0x4bb154=-parseInt(_0x2457c5(0x1ef))/0x1+-parseInt(_0x2457c5(0x1e7))/0x2*(parseInt(_0x2457c5(0x1bb))/0x3)+parseInt(_0x2457c5(0x1c5))/0x4*(-parseInt(_0x2457c5(0x1b5))/0x5)+parseInt(_0x2457c5(0x1d8))/0x6+parseInt(_0x2457c5(0x1ba))/0x7+-parseInt(_0x2457c5(0x1e8))/0x8*(parseInt(_0x2457c5(0x1aa))/0x9)+-parseInt(_0x2457c5(0x1c3))/0xa*(-parseInt(_0x2457c5(0x1e2))/0xb);if(_0x4bb154===_0x333d7f)break;else _0x414a87['push'](_0x414a87['shift']());}catch(_0x143d41){_0x414a87['push'](_0x414a87['shift']());}}}(a50_0x58ec,0x8bb99));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_0x16563b(0x1d7),'type':a50_0x16563b(0x1be),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a50_0x16563b(0x1be),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a50_0x16563b(0x1c0),'type':a50_0x16563b(0x1dc),'description':a50_0x16563b(0x1d0)},{'name':a50_0x16563b(0x1a5),'type':'boolean','description':a50_0x16563b(0x1a6),'default':![]},{'name':'skills','type':'boolean','description':a50_0x16563b(0x1ab),'default':!![],'hidden':!![]}];function parseSemver(_0x4ecfce){const _0x235a56=a50_0x16563b,_0x58b220=_0x4ecfce[_0x235a56(0x1b1)]()[_0x235a56(0x1c4)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x58b220)return null;return{'major':Number(_0x58b220[0x1]),'minor':Number(_0x58b220[0x2]),'patch':Number(_0x58b220[0x3]),'prerelease':_0x58b220[0x4]};}function compareSemver(_0x240365,_0x3e7865){const _0x31ac39=a50_0x16563b,_0x4ce6bc=parseSemver(_0x240365),_0x1c151f=parseSemver(_0x3e7865);if(!_0x4ce6bc||!_0x1c151f)throw CliErrors[_0x31ac39(0x1e9)](_0x31ac39(0x1d1),_0x31ac39(0x1de));for(const _0x29b3d3 of[_0x31ac39(0x1c8),'minor',_0x31ac39(0x1eb)]){if(_0x4ce6bc[_0x29b3d3]<_0x1c151f[_0x29b3d3])return-0x1;if(_0x4ce6bc[_0x29b3d3]>_0x1c151f[_0x29b3d3])return 0x1;}if(!_0x4ce6bc['prerelease']&&!_0x1c151f[_0x31ac39(0x1bc)])return 0x0;if(!_0x4ce6bc[_0x31ac39(0x1bc)])return 0x1;if(!_0x1c151f[_0x31ac39(0x1bc)])return-0x1;if(_0x4ce6bc[_0x31ac39(0x1bc)]===_0x1c151f[_0x31ac39(0x1bc)])return 0x0;return _0x4ce6bc[_0x31ac39(0x1bc)]<_0x1c151f[_0x31ac39(0x1bc)]?-0x1:0x1;}function getRequestedVersion(_0x3e5460){const _0x2739a8=a50_0x16563b,_0x120f17=_0x3e5460[_0x2739a8(0x1f0)](_0x2739a8(0x1c0))['trim']();if(_0x120f17)return _0x120f17;return String(_0x3e5460['args']?.[0x0]??'')[_0x2739a8(0x1b1)]();}function shouldSkipCliBuiltInSkill(_0x117df3){const _0x12b03c=a50_0x16563b;return _0x117df3[_0x12b03c(0x1b4)]('no-skills')||_0x117df3[_0x12b03c(0x1ac)](_0x12b03c(0x1d6))===![];}async function validateUpdateFlags(_0x32d69b){const _0x13c909=a50_0x16563b,_0x150036=getRequestedVersion(_0x32d69b),_0x24958a=[_0x32d69b[_0x13c909(0x1b4)](_0x13c909(0x1d7))?_0x13c909(0x1d7):'',_0x32d69b[_0x13c909(0x1b4)]('beta')?_0x13c909(0x1df):'',_0x150036?_0x13c909(0x1c0):''][_0x13c909(0x1a9)](Boolean);if(_0x24958a[_0x13c909(0x1ed)]>0x1)throw CliErrors[_0x13c909(0x1e9)](_0x13c909(0x1d4),_0x13c909(0x1b0));if(_0x150036&&!parseSemver(_0x150036))throw CliErrors['validation'](_0x13c909(0x1ce)+_0x150036,_0x13c909(0x1bf));}async function fetchNpmDistTags(){const _0x424543=a50_0x16563b;try{const _0x43a29e=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x424543(0x1ad),_0xe12b83=await fetch(_0x43a29e,{'signal':AbortSignal['timeout'](0x2710)});if(!_0xe12b83['ok'])return null;const _0x21893a=await _0xe12b83[_0x424543(0x1d3)]();if(!_0x21893a||typeof _0x21893a!==_0x424543(0x1b8))return null;return Object[_0x424543(0x1b6)](Object[_0x424543(0x1c9)](_0x21893a)[_0x424543(0x1a9)](([,_0x14468f])=>typeof _0x14468f===_0x424543(0x1dc)&&_0x14468f[_0x424543(0x1b1)]())['map'](([_0x276f60,_0x38d6f9])=>[_0x276f60,String(_0x38d6f9)[_0x424543(0x1b1)]()]));}catch{return null;}}async function resolveTargetVersion(_0x382d13){const _0x5e781c=a50_0x16563b,_0x514d08=getRequestedVersion(_0x382d13);if(_0x514d08)return{'version':_0x514d08,'source':'version'};const _0x5295bc=_0x382d13[_0x5e781c(0x1b4)]('beta')?'beta':_0x5e781c(0x1d7),_0x5e6ac4=await fetchNpmDistTags(),_0x3c0a80=_0x5e6ac4?.[_0x5295bc];if(!_0x3c0a80)return null;return{'version':_0x3c0a80,'source':_0x5295bc};}function a50_0x59ea(_0x148958,_0x495aef){_0x148958=_0x148958-0x1a5;const _0x58ecc5=a50_0x58ec();let _0x59ea0b=_0x58ecc5[_0x148958];return _0x59ea0b;}function shouldInstallTarget(_0x3103cf,_0x2b65dd){const _0x5350c5=a50_0x16563b,_0x5ada2d=compareSemver(_0x3103cf,_0x2b65dd[_0x5350c5(0x1c0)]);if(_0x2b65dd[_0x5350c5(0x1e4)]===_0x5350c5(0x1c0))return _0x5ada2d!==0x0;return _0x5ada2d<0x0;}function a50_0x58ec(){const _0x50175e=['entries','nonInteractive','Unable\x20to\x20resolve\x20','warn','\x20CLI\x20from\x20npm','Invalid\x20version:\x20','error','Install\x20a\x20specific\x20CLI\x20version','Version\x20comparison\x20failed.','Updated\x20to\x20v','json','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','log','skills','latest','6167970smhdav','Already\x20up\x20to\x20date\x20(v','\x20->\x20','skipped','string','cwd','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','beta','write','npm','2134187hXQyYA','Already\x20on\x20requested\x20version\x20(v','source','pipe','\x20version\x20from\x20npm.','2jrekOL','5573128KbLiYl','validation','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','patch','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','length','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','443659GSgqOY','str','no-skills','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','Checking\x20npm\x20dist-tags...','toString','filter','9CPafOy','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','flag','/dist-tags','stderr','=1).','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','trim','exit\x20','inherit','bool','37770WXguTR','fromEntries','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','object','message','6506283FUhnGt','3056775igylzc','prerelease','Updating\x20','boolean','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','version','unknown','stdout','80PqJAxc','match','412AmmmhB','Checking\x20CLI\x20Built-in\x20Skill...','status','major'];a50_0x58ec=function(){return _0x50175e;};return a50_0x58ec();}function installCliPackage(_0x528657,_0x15ef2c){const _0x1a70b1=a50_0x16563b,_0x44a768=resolveNpmBin(_0x1a70b1(0x1e1)),_0x262328=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x528657];console[_0x1a70b1(0x1d5)]('*\x20'+[_0x44a768,..._0x262328]['join']('\x20'));const _0x56e930=spawnSync(_0x44a768,_0x262328,{'cwd':process[_0x1a70b1(0x1dd)](),'stdio':_0x15ef2c?'pipe':_0x1a70b1(0x1b3),'env':process.env,'shell':![]});if(_0x56e930[_0x1a70b1(0x1c7)]===0x0)return{'ok':!![]};let _0x1a9375=_0x56e930[_0x1a70b1(0x1cf)]?.[_0x1a70b1(0x1b9)]||_0x1a70b1(0x1b2)+(_0x56e930[_0x1a70b1(0x1c7)]??_0x1a70b1(0x1c1));if(_0x15ef2c){const _0x4848e2=_0x56e930[_0x1a70b1(0x1ae)]?_0x56e930['stderr']['toString']()[_0x1a70b1(0x1b1)]():'',_0x58338f=_0x56e930[_0x1a70b1(0x1c2)]?_0x56e930['stdout'][_0x1a70b1(0x1a8)]()[_0x1a70b1(0x1b1)]():'';if(_0x4848e2)_0x1a9375=_0x4848e2;else{if(_0x58338f)_0x1a9375=_0x58338f;}}return{'ok':![],'error':_0x1a9375};}async function installCliBuiltInSkill(_0x530257){const _0x4342f2=a50_0x16563b;console[_0x4342f2(0x1d5)](_0x4342f2(0x1c6));const _0x2c1994=runNpxSkillsAddGlobal(process[_0x4342f2(0x1dd)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x530257?_0x4342f2(0x1e5):'inherit'});if(_0x2c1994[_0x4342f2(0x1db)]){console[_0x4342f2(0x1d5)](_0x4342f2(0x1b7)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x4342f2(0x1af));return;}if(_0x2c1994['ok']){console[_0x4342f2(0x1d5)](_0x4342f2(0x1ec));return;}console[_0x4342f2(0x1cc)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x2c1994[_0x4342f2(0x1cf)]||_0x4342f2(0x1c1))),console[_0x4342f2(0x1d5)](_0x4342f2(0x1ea));}async function execute(_0x256fe4){const _0x4ce6ca=a50_0x16563b;await validateUpdateFlags(_0x256fe4);const _0x34ccc8=getCliVersion();console[_0x4ce6ca(0x1d5)]('Current\x20version:\x20'+_0x34ccc8),console['log'](_0x4ce6ca(0x1a7));const _0x78e544=await resolveTargetVersion(_0x256fe4);if(!_0x78e544){const _0x5d3371=_0x256fe4[_0x4ce6ca(0x1b4)]('beta')?_0x4ce6ca(0x1df):_0x4ce6ca(0x1d7),_0x23f88d=_0x4ce6ca(0x1cb)+_0x5d3371+_0x4ce6ca(0x1e6);return console[_0x4ce6ca(0x1cc)](_0x23f88d),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5d3371),{'ok':![]};}if(!shouldInstallTarget(_0x34ccc8,_0x78e544)){const _0x31cb66=_0x78e544['source']===_0x4ce6ca(0x1c0)?_0x4ce6ca(0x1e3)+_0x78e544[_0x4ce6ca(0x1c0)]+').':_0x4ce6ca(0x1d9)+_0x78e544[_0x4ce6ca(0x1c0)]+').';return console[_0x4ce6ca(0x1d5)](_0x31cb66),shouldSkipCliBuiltInSkill(_0x256fe4)?console[_0x4ce6ca(0x1d5)](_0x4ce6ca(0x1ee)):await installCliBuiltInSkill(_0x256fe4[_0x4ce6ca(0x1ca)]),{'ok':!![]};}console[_0x4ce6ca(0x1d5)](_0x4ce6ca(0x1bd)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x34ccc8+_0x4ce6ca(0x1da)+_0x78e544[_0x4ce6ca(0x1c0)]);const _0x478aef=installCliPackage(_0x78e544[_0x4ce6ca(0x1c0)],_0x256fe4[_0x4ce6ca(0x1ca)]);if(!_0x478aef['ok']){const _0x5f1156='Update\x20failed:\x20'+(_0x478aef[_0x4ce6ca(0x1cf)]||'unknown');return console[_0x4ce6ca(0x1cf)](_0x5f1156),console[_0x4ce6ca(0x1d5)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x78e544[_0x4ce6ca(0x1c0)]),{'ok':![]};}return console[_0x4ce6ca(0x1d5)](_0x4ce6ca(0x1d2)+_0x78e544[_0x4ce6ca(0x1c0)]+'.'),console['log']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x256fe4)?console[_0x4ce6ca(0x1d5)](_0x4ce6ca(0x1ee)):await installCliBuiltInSkill(_0x256fe4[_0x4ce6ca(0x1ca)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':'Update\x20'+CLI_BIN_NAME+a50_0x16563b(0x1cd),'risk':a50_0x16563b(0x1e0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a54_0x53611e=a54_0x1480;function a54_0x1480(_0x42b2eb,_0x228c7b){_0x42b2eb=_0x42b2eb-0xce;const _0xe8a8bf=a54_0xe8a8();let _0x148085=_0xe8a8bf[_0x42b2eb];return _0x148085;}(function(_0x5b776e,_0x4410bc){const _0xda49e1=a54_0x1480,_0x1c7c63=_0x5b776e();while(!![]){try{const _0x22f124=-parseInt(_0xda49e1(0xef))/0x1+parseInt(_0xda49e1(0xfb))/0x2+parseInt(_0xda49e1(0xe4))/0x3+parseInt(_0xda49e1(0xec))/0x4*(-parseInt(_0xda49e1(0xf9))/0x5)+parseInt(_0xda49e1(0xd7))/0x6+-parseInt(_0xda49e1(0x101))/0x7+parseInt(_0xda49e1(0xed))/0x8;if(_0x22f124===_0x4410bc)break;else _0x1c7c63['push'](_0x1c7c63['shift']());}catch(_0x35ecd3){_0x1c7c63['push'](_0x1c7c63['shift']());}}}(a54_0xe8a8,0x94f81));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':a54_0x53611e(0xd2),'type':a54_0x53611e(0xe6),'description':a54_0x53611e(0xf2),'default':![]},{'name':a54_0x53611e(0xe7),'type':a54_0x53611e(0xe6),'description':a54_0x53611e(0xd0),'default':![]},{'name':a54_0x53611e(0x119),'type':a54_0x53611e(0x111),'description':a54_0x53611e(0xe8)},{'name':a54_0x53611e(0xf6),'type':'boolean','description':a54_0x53611e(0xf3),'default':![]},{'name':a54_0x53611e(0xfe),'type':a54_0x53611e(0xe6),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function a54_0xe8a8(){const _0x46a17f=['Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','prerelease','string','/-/package/','Unable\x20to\x20resolve\x20','map','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','skipped','fromEntries','version','Invalid\x20version:\x20','pipe','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','inherit','latest','stdout','filter','\x20version\x20from\x20npm.','Updated\x20to\x20v','4434012gzxyDu','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','bool','\x20CLI\x20from\x20npm','nonInteractive','Updating\x20','Already\x20on\x20requested\x20version\x20(v','join','cwd','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','=1).','Version\x20comparison\x20failed.','Checking\x20npm\x20dist-tags...','477648jSLrZX','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','boolean','beta','Install\x20a\x20specific\x20CLI\x20version','\x20->\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','40WXDpHc','5767880icpJrG','toString','167870Efwiha','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','exit\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','stderr','Update\x20failed:\x20','no-skills','Update\x20','status','416825iRTtur','Already\x20up\x20to\x20date\x20(v','1361640UTBuje','Current\x20version:\x20','npm','skills','unknown','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','4818282KqwBhp','trim','error','run','args','log','str','length','warn','Checking\x20CLI\x20Built-in\x20Skill...','minor','match','entries','validation'];a54_0xe8a8=function(){return _0x46a17f;};return a54_0xe8a8();}function parseSemver(_0x576afa){const _0x393236=a54_0x53611e,_0x2aac8e=_0x576afa[_0x393236(0x102)]()[_0x393236(0x10c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2aac8e)return null;return{'major':Number(_0x2aac8e[0x1]),'minor':Number(_0x2aac8e[0x2]),'patch':Number(_0x2aac8e[0x3]),'prerelease':_0x2aac8e[0x4]};}function compareSemver(_0x23e9ba,_0x4da806){const _0x30ffe1=a54_0x53611e,_0x5d3e43=parseSemver(_0x23e9ba),_0x50bd06=parseSemver(_0x4da806);if(!_0x5d3e43||!_0x50bd06)throw CliErrors[_0x30ffe1(0x10e)](_0x30ffe1(0xe2),_0x30ffe1(0xea));for(const _0x58e5cf of['major',_0x30ffe1(0x10b),'patch']){if(_0x5d3e43[_0x58e5cf]<_0x50bd06[_0x58e5cf])return-0x1;if(_0x5d3e43[_0x58e5cf]>_0x50bd06[_0x58e5cf])return 0x1;}if(!_0x5d3e43[_0x30ffe1(0x110)]&&!_0x50bd06[_0x30ffe1(0x110)])return 0x0;if(!_0x5d3e43[_0x30ffe1(0x110)])return 0x1;if(!_0x50bd06[_0x30ffe1(0x110)])return-0x1;if(_0x5d3e43['prerelease']===_0x50bd06[_0x30ffe1(0x110)])return 0x0;return _0x5d3e43[_0x30ffe1(0x110)]<_0x50bd06[_0x30ffe1(0x110)]?-0x1:0x1;}function getRequestedVersion(_0x408274){const _0xa6b63b=a54_0x53611e,_0x3cd953=_0x408274[_0xa6b63b(0x107)](_0xa6b63b(0x119))[_0xa6b63b(0x102)]();if(_0x3cd953)return _0x3cd953;return String(_0x408274[_0xa6b63b(0x105)]?.[0x0]??'')[_0xa6b63b(0x102)]();}function shouldSkipCliBuiltInSkill(_0x2a3b06){const _0x3ab46a=a54_0x53611e;return _0x2a3b06['bool']('no-skills')||_0x2a3b06['flag'](_0x3ab46a(0xfe))===![];}async function validateUpdateFlags(_0x527c59){const _0x166c81=a54_0x53611e,_0x387fa2=getRequestedVersion(_0x527c59),_0x199044=[_0x527c59[_0x166c81(0xd9)](_0x166c81(0xd2))?_0x166c81(0xd2):'',_0x527c59['bool'](_0x166c81(0xe7))?'beta':'',_0x387fa2?_0x166c81(0x119):''][_0x166c81(0xd4)](Boolean);if(_0x199044[_0x166c81(0x108)]>0x1)throw CliErrors[_0x166c81(0x10e)](_0x166c81(0x115),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x387fa2&&!parseSemver(_0x387fa2))throw CliErrors['validation'](_0x166c81(0xce)+_0x387fa2,_0x166c81(0xf0));}async function fetchNpmDistTags(){const _0x144b70=a54_0x53611e;try{const _0x46481b=NPM_REGISTRY_BASE_URL+_0x144b70(0x112)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x47e217=await fetch(_0x46481b,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x47e217['ok'])return null;const _0x94ce5a=await _0x47e217['json']();if(!_0x94ce5a||typeof _0x94ce5a!=='object')return null;return Object[_0x144b70(0x118)](Object[_0x144b70(0x10d)](_0x94ce5a)[_0x144b70(0xd4)](([,_0xe5a5d3])=>typeof _0xe5a5d3==='string'&&_0xe5a5d3[_0x144b70(0x102)]())[_0x144b70(0x114)](([_0x576f75,_0x11a82c])=>[_0x576f75,String(_0x11a82c)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x41265c){const _0x395f98=a54_0x53611e,_0x5560f9=getRequestedVersion(_0x41265c);if(_0x5560f9)return{'version':_0x5560f9,'source':_0x395f98(0x119)};const _0x6d1f5b=_0x41265c[_0x395f98(0xd9)](_0x395f98(0xe7))?'beta':_0x395f98(0xd2),_0x166d5d=await fetchNpmDistTags(),_0x31f355=_0x166d5d?.[_0x6d1f5b];if(!_0x31f355)return null;return{'version':_0x31f355,'source':_0x6d1f5b};}function shouldInstallTarget(_0x370e16,_0x3626ba){const _0x4ff4eb=a54_0x53611e,_0x3008cf=compareSemver(_0x370e16,_0x3626ba[_0x4ff4eb(0x119)]);if(_0x3626ba['source']==='version')return _0x3008cf!==0x0;return _0x3008cf<0x0;}function installCliPackage(_0x39f981,_0x49754b){const _0x3542bc=a54_0x53611e,_0x49c612=resolveNpmBin(_0x3542bc(0xfd)),_0x39025b=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x39f981];console[_0x3542bc(0x106)]('*\x20'+[_0x49c612,..._0x39025b][_0x3542bc(0xde)]('\x20'));const _0x2beb89=spawnSync(_0x49c612,_0x39025b,{'cwd':process['cwd'](),'stdio':_0x49754b?_0x3542bc(0xcf):_0x3542bc(0xd1),'env':process.env,'shell':![]});if(_0x2beb89[_0x3542bc(0xf8)]===0x0)return{'ok':!![]};let _0x1c7ac2=_0x2beb89[_0x3542bc(0x103)]?.['message']||_0x3542bc(0xf1)+(_0x2beb89[_0x3542bc(0xf8)]??_0x3542bc(0xff));if(_0x49754b){const _0xaa072f=_0x2beb89[_0x3542bc(0xf4)]?_0x2beb89['stderr'][_0x3542bc(0xee)]()[_0x3542bc(0x102)]():'',_0x39c0f6=_0x2beb89[_0x3542bc(0xd3)]?_0x2beb89['stdout']['toString']()[_0x3542bc(0x102)]():'';if(_0xaa072f)_0x1c7ac2=_0xaa072f;else{if(_0x39c0f6)_0x1c7ac2=_0x39c0f6;}}return{'ok':![],'error':_0x1c7ac2};}async function installCliBuiltInSkill(_0x37fe7d){const _0x528c66=a54_0x53611e;console[_0x528c66(0x106)](_0x528c66(0x10a));const _0x3b836f=runNpxSkillsAddGlobal(process[_0x528c66(0xdf)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x37fe7d?_0x528c66(0xcf):'inherit'});if(_0x3b836f[_0x528c66(0x117)]){console[_0x528c66(0x106)](_0x528c66(0xe5)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x528c66(0xe1));return;}if(_0x3b836f['ok']){console[_0x528c66(0x106)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x528c66(0x109)](_0x528c66(0xeb)+(_0x3b836f[_0x528c66(0x103)]||'unknown')),console[_0x528c66(0x106)](_0x528c66(0xe0));}async function execute(_0x5aae9a){const _0x2753ee=a54_0x53611e;await validateUpdateFlags(_0x5aae9a);const _0x499304=getCliVersion();console['log'](_0x2753ee(0xfc)+_0x499304),console[_0x2753ee(0x106)](_0x2753ee(0xe3));const _0x3567f4=await resolveTargetVersion(_0x5aae9a);if(!_0x3567f4){const _0x3e0b0e=_0x5aae9a['bool']('beta')?_0x2753ee(0xe7):_0x2753ee(0xd2),_0x4e3242=_0x2753ee(0x113)+_0x3e0b0e+_0x2753ee(0xd5);return console[_0x2753ee(0x109)](_0x4e3242),console['log'](_0x2753ee(0x116)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3e0b0e),{'ok':![]};}if(!shouldInstallTarget(_0x499304,_0x3567f4)){const _0x4692d9=_0x3567f4['source']==='version'?_0x2753ee(0xdd)+_0x3567f4[_0x2753ee(0x119)]+').':_0x2753ee(0xfa)+_0x3567f4['version']+').';return console[_0x2753ee(0x106)](_0x4692d9),shouldSkipCliBuiltInSkill(_0x5aae9a)?console[_0x2753ee(0x106)](_0x2753ee(0x10f)):await installCliBuiltInSkill(_0x5aae9a[_0x2753ee(0xdb)]),{'ok':!![]};}console[_0x2753ee(0x106)](_0x2753ee(0xdc)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x499304+_0x2753ee(0xe9)+_0x3567f4['version']);const _0x447626=installCliPackage(_0x3567f4[_0x2753ee(0x119)],_0x5aae9a[_0x2753ee(0xdb)]);if(!_0x447626['ok']){const _0x143e0e=_0x2753ee(0xf5)+(_0x447626[_0x2753ee(0x103)]||_0x2753ee(0xff));return console[_0x2753ee(0x103)](_0x143e0e),console[_0x2753ee(0x106)](_0x2753ee(0xd8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3567f4[_0x2753ee(0x119)]),{'ok':![]};}return console[_0x2753ee(0x106)](_0x2753ee(0xd6)+_0x3567f4[_0x2753ee(0x119)]+'.'),console[_0x2753ee(0x106)](_0x2753ee(0x100)),shouldSkipCliBuiltInSkill(_0x5aae9a)?console[_0x2753ee(0x106)](_0x2753ee(0x10f)):await installCliBuiltInSkill(_0x5aae9a['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':'update','command':a54_0x53611e(0x104),'description':a54_0x53611e(0xf7)+CLI_BIN_NAME+a54_0x53611e(0xda),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a51_0x17cef6=a51_0x36ae;function a51_0x2623(){const _0x4b47c3=['accessKey','\x0aDefault\x20app:\x20','env','../../core/api-client.js','Workspace\x20configured.\x0aConfig\x20file:\x20','apps','authRequired','appcode','validation','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','appName','319216iTiows','string','from','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','workspace\x20','528CTcRHf','write','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','object','9kfZNsv','5643UrBscB','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','defaultApp','init','Target\x20environment','Run\x20`','map','boolean','App\x20\x22','3136665qsxZkp','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','app','\x20workspace\x20','App\x20code\x20to\x20bind\x20directly','yes','500dDYaBm','854240ySrmSg','workspace','isArray','Usage:\x20','envName','items','Invalid\x20env\x20\x22','330145JYNGwW','4089870yReZmj','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','31370mJviMe','str','filter','use','project','../../commands/app/remote-source.js','trim'];a51_0x2623=function(){return _0x4b47c3;};return a51_0x2623();}(function(_0x3a73c5,_0x4bf991){const _0x11abec=a51_0x36ae,_0x260763=_0x3a73c5();while(!![]){try{const _0x1223c2=parseInt(_0x11abec(0x128))/0x1+-parseInt(_0x11abec(0x107))/0x2+parseInt(_0x11abec(0x111))/0x3*(-parseInt(_0x11abec(0x120))/0x4)+parseInt(_0x11abec(0xf5))/0x5*(-parseInt(_0x11abec(0x10c))/0x6)+parseInt(_0x11abec(0x11a))/0x7+parseInt(_0x11abec(0x121))/0x8*(parseInt(_0x11abec(0x110))/0x9)+parseInt(_0x11abec(0xf3))/0xa;if(_0x1223c2===_0x4bf991)break;else _0x260763['push'](_0x260763['shift']());}catch(_0x323a24){_0x260763['push'](_0x260763['shift']());}}}(a51_0x2623,0x54c1a));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';function a51_0x36ae(_0x30f35f,_0x309f48){_0x30f35f=_0x30f35f-0xf3;const _0x26238b=a51_0x2623();let _0x36ae74=_0x26238b[_0x30f35f];return _0x36ae74;}const WORKSPACE_USE_FLAGS=[{'name':'app','type':a51_0x17cef6(0x108),'description':a51_0x17cef6(0x11b)},{'name':a51_0x17cef6(0x103),'type':'string','description':a51_0x17cef6(0x11e)},{'name':a51_0x17cef6(0xfe),'type':a51_0x17cef6(0x108),'description':a51_0x17cef6(0x115),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x17cef6(0x11f),'type':a51_0x17cef6(0x118),'description':a51_0x17cef6(0x10e),'default':![]}];async function executeWorkspaceUse(_0x394d23,_0x5e5485){const _0x2e78a0=a51_0x17cef6,_0x57d880=_0x394d23[_0x2e78a0(0xf6)](_0x2e78a0(0x11c))['trim'](),_0x1f08cc=_0x394d23[_0x2e78a0(0xf6)](_0x2e78a0(0x103))[_0x2e78a0(0xfb)](),_0x2542ee=_0x394d23['str'](_0x2e78a0(0xfe))[_0x2e78a0(0xfb)](),_0x2d61fe=resolveWorkspaceEnv(_0x2542ee||_0x394d23[_0x2e78a0(0x125)]||DEFAULT_CONFIG_VALUES[_0x2e78a0(0xfe)]);if(!_0x57d880&&!_0x1f08cc)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x2e78a0(0x124)+CLI_BIN_NAME+_0x2e78a0(0x11d)+_0x5e5485+_0x2e78a0(0x105)+CLI_BIN_NAME+_0x2e78a0(0x11d)+_0x5e5485+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x16b0c6=_0x1f08cc||await resolveRemoteAppCode({'command':_0x5e5485,'appName':_0x57d880,'env':_0x2d61fe,'accessKey':_0x394d23[_0x2e78a0(0xfc)]}),_0x554c6c=writeWorkspaceConfig({'command':_0x5e5485,'appName':_0x57d880,'appcode':_0x16b0c6,'env':_0x2d61fe,'shouldWriteEnv':!!_0x2542ee,'accessKey':_0x394d23[_0x2e78a0(0xfc)]});return{'ok':!![],'data':{'configPath':_0x554c6c,'app':_0x57d880||null,'appcode':_0x16b0c6,'env':_0x2542ee?_0x2d61fe:null,'accessKeyWritten':![],'command':_0x2e78a0(0x10b)+_0x5e5485},'message':buildWorkspaceMessage(_0x554c6c,_0x57d880,_0x16b0c6,_0x2542ee?_0x2d61fe:undefined)};}async function resolveRemoteAppCode(_0x10c29f){const _0x6c921b=a51_0x17cef6;if(!_0x10c29f[_0x6c921b(0xfc)])throw CliErrors[_0x6c921b(0x102)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x6c921b(0x11d)+_0x10c29f['command']+'.');const {setActiveAK:_0x45144e}=await import(_0x6c921b(0xff)),{getRemoteAppList:_0x557a16}=await import(_0x6c921b(0xfa));_0x45144e(_0x10c29f[_0x6c921b(0xfc)]);const _0x34d39a=await _0x557a16({'env':_0x10c29f[_0x6c921b(0xfe)],'accessKey':_0x10c29f[_0x6c921b(0xfc)],'noCache':![]}),_0x5bfaf9=findAppByName(_0x34d39a['items'],_0x10c29f['appName']);if(_0x5bfaf9&&!isRuntimeAccessibleApp(_0x5bfaf9))throw runtimeInaccessibleAppError(_0x5bfaf9,'\x22'+_0x10c29f[_0x6c921b(0x106)]+'\x22');const _0x593b32=_0x5bfaf9?.['appCode']?.[_0x6c921b(0xfb)]();if(_0x593b32)return _0x593b32;const _0x30beda=_0x34d39a[_0x6c921b(0x126)][_0x6c921b(0x117)](_0x1a2d8e=>_0x1a2d8e[_0x6c921b(0x106)])[_0x6c921b(0xf7)](Boolean),_0x1b3868=_0x30beda['length']?'Available\x20apps:\x20'+Array[_0x6c921b(0x109)](new Set(_0x30beda))['join'](',\x20')+'.':_0x6c921b(0x116)+CLI_BIN_NAME+_0x6c921b(0x10a);throw CliErrors[_0x6c921b(0x104)](_0x6c921b(0x119)+_0x10c29f['appName']+'\x22\x20not\x20found.',_0x1b3868);}function writeWorkspaceConfig(_0x1c2567){const _0x183c88=a51_0x17cef6,_0x8c6282=resolveWriteConfigPath(_0x183c88(0xf9)),_0x5886d8=readConfigFile(_0x8c6282);_0x1c2567['shouldWriteEnv']&&(_0x5886d8[_0x183c88(0xfe)]=_0x1c2567[_0x183c88(0xfe)]);if(_0x1c2567[_0x183c88(0x106)]){const _0x49098c=isRecord(_0x5886d8[_0x183c88(0x101)])?{..._0x5886d8['apps']}:{},_0x4ba1a6=isRecord(_0x49098c[_0x1c2567[_0x183c88(0x106)]])?_0x49098c[_0x1c2567[_0x183c88(0x106)]]:{};_0x49098c[_0x1c2567[_0x183c88(0x106)]]={..._0x4ba1a6,'appcode':_0x1c2567[_0x183c88(0x103)]},_0x5886d8[_0x183c88(0x101)]=_0x49098c,_0x5886d8[_0x183c88(0x113)]=_0x1c2567[_0x183c88(0x106)];if(_0x5886d8[_0x183c88(0x11c)])delete _0x5886d8[_0x183c88(0x11c)];return writeAndReturn(_0x8c6282,_0x5886d8);}_0x5886d8[_0x183c88(0x103)]=_0x1c2567[_0x183c88(0x103)];if(_0x5886d8['app'])delete _0x5886d8[_0x183c88(0x11c)];return writeAndReturn(_0x8c6282,_0x5886d8);}function writeAndReturn(_0x8acbce,_0x180f64){return writeConfigFile(_0x8acbce,_0x180f64),_0x8acbce;}function resolveWorkspaceEnv(_0x5df753){const _0xcc740=a51_0x17cef6;if(RUNTIME_ENV_VALUES['includes'](_0x5df753))return _0x5df753;throw CliErrors[_0xcc740(0x104)](_0xcc740(0x127)+_0x5df753+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x39b052,_0x3093ab,_0x281373,_0x404c20){const _0x27c30c=a51_0x17cef6,_0x147bc4=_0x3093ab?_0x3093ab+'\x20('+_0x281373+')':_0x281373,_0x33a8e2=_0x404c20?'\x0aEnv:\x20'+_0x404c20:'';return _0x27c30c(0x100)+_0x39b052+_0x27c30c(0xfd)+_0x147bc4+_0x33a8e2+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x471fd9){const _0x41049f=a51_0x17cef6;return typeof _0x471fd9===_0x41049f(0x10f)&&_0x471fd9!==null&&!Array[_0x41049f(0x123)](_0x471fd9);}function makeWorkspaceCommand(_0x4c45ef){const _0x6a054=a51_0x17cef6;return{'service':_0x6a054(0x122),'command':_0x4c45ef,'description':_0x4c45ef===_0x6a054(0x114)?_0x6a054(0x112):_0x6a054(0xf4),'risk':_0x6a054(0x10d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x102e37){return executeWorkspaceUse(_0x102e37,_0x4c45ef);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x17cef6(0x114)),makeWorkspaceCommand(a51_0x17cef6(0xf8))];
1
+ const a55_0x2bd818=a55_0x2d0d;(function(_0x55c612,_0x43196d){const _0x346102=a55_0x2d0d,_0x2749e0=_0x55c612();while(!![]){try{const _0x565d62=parseInt(_0x346102(0xb5))/0x1*(parseInt(_0x346102(0xc0))/0x2)+-parseInt(_0x346102(0xae))/0x3+-parseInt(_0x346102(0xa6))/0x4*(parseInt(_0x346102(0xba))/0x5)+parseInt(_0x346102(0xbd))/0x6*(parseInt(_0x346102(0xa4))/0x7)+parseInt(_0x346102(0x9f))/0x8*(-parseInt(_0x346102(0xbf))/0x9)+-parseInt(_0x346102(0xb0))/0xa+parseInt(_0x346102(0xb7))/0xb;if(_0x565d62===_0x43196d)break;else _0x2749e0['push'](_0x2749e0['shift']());}catch(_0x436cbe){_0x2749e0['push'](_0x2749e0['shift']());}}}(a55_0x447d,0xb7d12));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':a55_0x2bd818(0xb6),'type':a55_0x2bd818(0xb2),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a55_0x2bd818(0xa3),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':a55_0x2bd818(0xc7),'type':a55_0x2bd818(0xb2),'description':a55_0x2bd818(0x92),'enum':[...RUNTIME_ENV_VALUES]},{'name':a55_0x2bd818(0xa0),'type':a55_0x2bd818(0x9b),'description':a55_0x2bd818(0x94),'default':![]}];function a55_0x2d0d(_0x3c152a,_0x171f3a){_0x3c152a=_0x3c152a-0x91;const _0x447d17=a55_0x447d();let _0x2d0dcc=_0x447d17[_0x3c152a];return _0x2d0dcc;}async function executeWorkspaceUse(_0x185599,_0x688629){const _0x215d14=a55_0x2bd818,_0x5e021d=_0x185599[_0x215d14(0xab)](_0x215d14(0xb6))[_0x215d14(0xc8)](),_0x380885=_0x185599['str']('appcode')[_0x215d14(0xc8)](),_0x324b40=_0x185599['str'](_0x215d14(0xc7))[_0x215d14(0xc8)](),_0x5b7d59=resolveWorkspaceEnv(_0x324b40||_0x185599[_0x215d14(0xad)]||DEFAULT_CONFIG_VALUES[_0x215d14(0xc7)]);if(!_0x5e021d&&!_0x380885)throw CliErrors[_0x215d14(0xc2)]('Missing\x20workspace\x20app\x20selector.',_0x215d14(0xc9)+CLI_BIN_NAME+_0x215d14(0x96)+_0x688629+_0x215d14(0xb4)+CLI_BIN_NAME+_0x215d14(0x96)+_0x688629+_0x215d14(0x91));const _0x54610e=_0x380885||await resolveRemoteAppCode({'command':_0x688629,'appName':_0x5e021d,'env':_0x5b7d59,'accessKey':_0x185599['accessKey']}),_0x20489e=writeWorkspaceConfig({'command':_0x688629,'appName':_0x5e021d,'appcode':_0x54610e,'env':_0x5b7d59,'shouldWriteEnv':!!_0x324b40,'accessKey':_0x185599[_0x215d14(0xa9)]});return{'ok':!![],'data':{'configPath':_0x20489e,'app':_0x5e021d||null,'appcode':_0x54610e,'env':_0x324b40?_0x5b7d59:null,'accessKeyWritten':![],'command':_0x215d14(0x9c)+_0x688629},'message':buildWorkspaceMessage(_0x20489e,_0x5e021d,_0x54610e,_0x324b40?_0x5b7d59:undefined)};}async function resolveRemoteAppCode(_0x2046f7){const _0x5e1068=a55_0x2bd818;if(!_0x2046f7['accessKey'])throw CliErrors[_0x5e1068(0xb9)](_0x5e1068(0x9a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2046f7[_0x5e1068(0xac)]+'.');const {setActiveAK:_0x308f76}=await import('../../core/api-client.js'),{getRemoteAppList:_0x31b363}=await import(_0x5e1068(0xb8));_0x308f76(_0x2046f7[_0x5e1068(0xa9)]);const _0x5380bd=await _0x31b363({'env':_0x2046f7[_0x5e1068(0xc7)],'accessKey':_0x2046f7[_0x5e1068(0xa9)],'noCache':![]}),_0x452f5d=findAppByName(_0x5380bd[_0x5e1068(0xaf)],_0x2046f7[_0x5e1068(0xc5)]);if(_0x452f5d&&!isRuntimeAccessibleApp(_0x452f5d))throw runtimeInaccessibleAppError(_0x452f5d,'\x22'+_0x2046f7[_0x5e1068(0xc5)]+'\x22');const _0x2e7322=_0x452f5d?.['appCode']?.[_0x5e1068(0xc8)]();if(_0x2e7322)return _0x2e7322;const _0x5bb9c4=_0x5380bd[_0x5e1068(0xaf)][_0x5e1068(0xb3)](_0x4c0d8a=>_0x4c0d8a['appName'])[_0x5e1068(0xc6)](Boolean),_0x290e76=_0x5bb9c4[_0x5e1068(0xcb)]?_0x5e1068(0x9d)+Array[_0x5e1068(0xbc)](new Set(_0x5bb9c4))[_0x5e1068(0x99)](',\x20')+'.':_0x5e1068(0xc3)+CLI_BIN_NAME+_0x5e1068(0xc1);throw CliErrors['validation'](_0x5e1068(0x93)+_0x2046f7[_0x5e1068(0xc5)]+'\x22\x20not\x20found.',_0x290e76);}function writeWorkspaceConfig(_0x2faa89){const _0x4bf8b8=a55_0x2bd818,_0x44eecd=resolveWriteConfigPath(_0x4bf8b8(0xa7)),_0x2be7ae=readConfigFile(_0x44eecd);_0x2faa89['shouldWriteEnv']&&(_0x2be7ae['env']=_0x2faa89[_0x4bf8b8(0xc7)]);if(_0x2faa89[_0x4bf8b8(0xc5)]){const _0x46fedd=isRecord(_0x2be7ae['apps'])?{..._0x2be7ae[_0x4bf8b8(0xbb)]}:{},_0x8c8293=isRecord(_0x46fedd[_0x2faa89[_0x4bf8b8(0xc5)]])?_0x46fedd[_0x2faa89[_0x4bf8b8(0xc5)]]:{};_0x46fedd[_0x2faa89[_0x4bf8b8(0xc5)]]={..._0x8c8293,'appcode':_0x2faa89[_0x4bf8b8(0xa3)]},_0x2be7ae[_0x4bf8b8(0xbb)]=_0x46fedd,_0x2be7ae[_0x4bf8b8(0xaa)]=_0x2faa89[_0x4bf8b8(0xc5)];if(_0x2be7ae[_0x4bf8b8(0xb6)])delete _0x2be7ae[_0x4bf8b8(0xb6)];return writeAndReturn(_0x44eecd,_0x2be7ae);}_0x2be7ae['appcode']=_0x2faa89['appcode'];if(_0x2be7ae['app'])delete _0x2be7ae[_0x4bf8b8(0xb6)];return writeAndReturn(_0x44eecd,_0x2be7ae);}function a55_0x447d(){const _0x5e056e=['Target\x20environment','App\x20\x22','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','object','\x20workspace\x20','\x0aAccessKey:\x20not\x20written','workspace','join','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','boolean','workspace\x20','Available\x20apps:\x20','includes','456msmxFL','yes','isArray','Invalid\x20env\x20\x22','appcode','1227331UNSuVV','write','20072kWZNbO','project','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','accessKey','defaultApp','str','command','envName','2984862pwDDIX','items','12258100OsCgbX','\x22.\x20Allowed:\x20','string','map','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','1sWkzcw','app','32698303fIyoEm','../../commands/app/remote-source.js','authRequired','710IiBKuu','apps','from','42xiniBt','\x0aDefault\x20app:\x20','141381WvmSpT','763486KYGdZR','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','validation','Run\x20`','init','appName','filter','env','trim','Usage:\x20','\x0aEnv:\x20','length','Workspace\x20configured.\x0aConfig\x20file:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]'];a55_0x447d=function(){return _0x5e056e;};return a55_0x447d();}function writeAndReturn(_0x9d7844,_0x50a067){return writeConfigFile(_0x9d7844,_0x50a067),_0x9d7844;}function resolveWorkspaceEnv(_0x37ca99){const _0x440140=a55_0x2bd818;if(RUNTIME_ENV_VALUES[_0x440140(0x9e)](_0x37ca99))return _0x37ca99;throw CliErrors[_0x440140(0xc2)](_0x440140(0xa2)+_0x37ca99+_0x440140(0xb1)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x213bb4,_0x459824,_0x4d021e,_0x5b7029){const _0x26c443=a55_0x2bd818,_0x508c0b=_0x459824?_0x459824+'\x20('+_0x4d021e+')':_0x4d021e,_0x2415ee=_0x5b7029?_0x26c443(0xca)+_0x5b7029:'';return _0x26c443(0xcc)+_0x213bb4+_0x26c443(0xbe)+_0x508c0b+_0x2415ee+_0x26c443(0x97);}function isRecord(_0x232ff2){const _0x29e5b1=a55_0x2bd818;return typeof _0x232ff2===_0x29e5b1(0x95)&&_0x232ff2!==null&&!Array[_0x29e5b1(0xa1)](_0x232ff2);}function makeWorkspaceCommand(_0x2bd8d2){const _0x16b3e6=a55_0x2bd818;return{'service':_0x16b3e6(0x98),'command':_0x2bd8d2,'description':_0x2bd8d2==='init'?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x16b3e6(0xa8),'risk':_0x16b3e6(0xa5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x12867a){return executeWorkspaceUse(_0x12867a,_0x2bd8d2);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a55_0x2bd818(0xc4)),makeWorkspaceCommand('use')];