@lovrabet/lovrabet-cli 2.3.0-beta.3 → 2.3.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/sdk-client.js +1 -1
  107. package/lib/errors.js +1 -1
  108. package/lib/framework/build-all-flags.js +1 -1
  109. package/lib/framework/dryrun.js +1 -1
  110. package/lib/framework/flags.js +1 -1
  111. package/lib/framework/help.js +1 -1
  112. package/lib/framework/index.js +1 -1
  113. package/lib/framework/output.js +1 -1
  114. package/lib/framework/preparse.js +1 -1
  115. package/lib/framework/rate-limit.js +1 -1
  116. package/lib/framework/raw-flags.js +1 -1
  117. package/lib/framework/response.js +1 -1
  118. package/lib/framework/runner-confirmation.js +1 -1
  119. package/lib/framework/runner-error.js +1 -1
  120. package/lib/framework/runner.js +1 -1
  121. package/lib/framework/schema-export.js +1 -1
  122. package/lib/framework/service-order.js +1 -1
  123. package/lib/framework/types.js +1 -1
  124. package/lib/generated/build-info.d.ts +4 -4
  125. package/lib/generated/build-info.js +1 -1
  126. package/lib/help.js +1 -1
  127. package/lib/postinstall.js +1 -1
  128. package/lib/runtime/confirmation.js +1 -1
  129. package/lib/runtime/event.js +1 -1
  130. package/lib/runtime/index.js +1 -1
  131. package/lib/runtime/queue.js +1 -1
  132. package/lib/runtime/resolve.js +1 -1
  133. package/lib/skills/builtin-skill.js +1 -1
  134. package/lib/skills/npx-skills-add.js +1 -1
  135. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  136. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  137. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  138. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  139. package/lib/skills/runtime-skill-sync/links.js +1 -1
  140. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  141. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  142. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  143. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  144. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  145. package/lib/skills/runtime-skill-sync/push.js +1 -1
  146. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  147. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  148. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  149. package/lib/skills/runtime-skill-sync.js +1 -1
  150. package/lib/skills/skill-presence.js +1 -1
  151. package/lib/utils/access-key-redaction.js +1 -1
  152. package/lib/utils/apply-jq-filter.js +1 -1
  153. package/lib/utils/cli-version-check.js +1 -1
  154. package/lib/utils/cli-version-policy.js +1 -1
  155. package/lib/utils/logger.js +1 -1
  156. package/lib/utils/lossless-json.js +1 -1
  157. package/lib/utils/params.js +1 -1
  158. package/lib/utils/platform.js +1 -1
  159. package/lib/utils/update-notice.js +1 -1
  160. package/lib/utils/version.js +1 -1
  161. package/lib/utils/write-cli-side-channel.js +1 -1
  162. package/package.json +1 -1
  163. package/skills/lovrabet/SKILL.md +1 -1
  164. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a67_0xf8869a=a67_0x4973;function a67_0x3c47(){const _0x572423=['list','70pqyDcO','6403789lnmeeX','3613932dLEajP','filter','authRequired','str','3549592SheSIL','project','../../../core/api-client.js','../../../skills/runtime-skill-sync.js','personal','appCode','\x20remote\x20Skill(s).','scope','builtin','remote','\x20local\x20Skill(s).','local','map','company','2910546wGiVAh','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','Listed\x20','3005044sKCZQN','52863uLEPnE','production','read','trim','accessKey','global','bool','length','483492cWuuZx','envName'];a67_0x3c47=function(){return _0x572423;};return a67_0x3c47();}function a67_0x4973(_0x2b2d6c,_0x18d999){_0x2b2d6c=_0x2b2d6c-0x1b9;const _0x3c470b=a67_0x3c47();let _0x49735d=_0x3c470b[_0x2b2d6c];return _0x49735d;}(function(_0x1f82c8,_0x11cf89){const _0x2b36cc=a67_0x4973,_0x5e7ef5=_0x1f82c8();while(!![]){try{const _0x41c63e=parseInt(_0x2b36cc(0x1d5))/0x1+parseInt(_0x2b36cc(0x1d1))/0x2+-parseInt(_0x2b36cc(0x1bf))/0x3+parseInt(_0x2b36cc(0x1d4))/0x4+parseInt(_0x2b36cc(0x1bd))/0x5*(parseInt(_0x2b36cc(0x1ba))/0x6)+-parseInt(_0x2b36cc(0x1be))/0x7+-parseInt(_0x2b36cc(0x1c3))/0x8;if(_0x41c63e===_0x11cf89)break;else _0x5e7ef5['push'](_0x5e7ef5['shift']());}catch(_0x133ed5){_0x5e7ef5['push'](_0x5e7ef5['shift']());}}}(a67_0x3c47,0xc9437));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a67_0xf8869a(0x1bc),'description':a67_0xf8869a(0x1d2),'risk':a67_0xf8869a(0x1d7),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1d8628){const _0x53cfc9=a67_0xf8869a,_0x4373f5=_0x1d8628[_0x53cfc9(0x1c2)]('code'),_0x3e089f=normalizeListScope(_0x1d8628[_0x53cfc9(0x1c2)](_0x53cfc9(0x1ca)));if(_0x1d8628[_0x53cfc9(0x1db)](_0x53cfc9(0x1ce))){const _0x102771=_0x1d8628[_0x53cfc9(0x1d9)];if(!_0x102771)throw CliErrors[_0x53cfc9(0x1c1)]();const {listLocalRuntimeSkills:_0x2445bc,resolveRuntimeSkillInstallTarget:_0x149b66}=await import(_0x53cfc9(0x1c6)),_0x41fe71=_0x149b66(_0x1d8628[_0x53cfc9(0x1c8)],_0x1d8628[_0x53cfc9(0x1db)]('project')?_0x53cfc9(0x1c4):_0x53cfc9(0x1da)),_0x26ecdd=_0x2445bc({'env':_0x1d8628[_0x53cfc9(0x1bb)]??_0x53cfc9(0x1d6),'accessKey':_0x102771,'appCode':_0x1d8628['appCode'],'scopes':listScopeToRuntimeScopes(_0x3e089f),'code':_0x4373f5[_0x53cfc9(0x1d8)]()||undefined},_0x41fe71),_0x18f478=groupLocalRuntimeSkills(_0x26ecdd);return{'ok':!![],'data':{'appCode':_0x1d8628[_0x53cfc9(0x1c8)],'source':_0x53cfc9(0x1ce),..._0x41fe71[_0x53cfc9(0x1ca)]==='project'?{'installScope':_0x41fe71['scope']}:{},'scope':_0x3e089f,'total':_0x26ecdd[_0x53cfc9(0x1b9)],'personal':_0x18f478[_0x53cfc9(0x1c7)][_0x53cfc9(0x1b9)],'company':_0x18f478[_0x53cfc9(0x1d0)][_0x53cfc9(0x1b9)],'items':_0x26ecdd[_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x18f478[_0x53cfc9(0x1c7)][_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill),'company':_0x18f478[_0x53cfc9(0x1d0)][_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill)}},'message':_0x53cfc9(0x1d3)+_0x26ecdd[_0x53cfc9(0x1b9)]+_0x53cfc9(0x1cd)};}const {listRuntimeSkills:_0x66dfdd}=await import(_0x53cfc9(0x1c5)),_0x3da5a5=await _0x66dfdd({'appCode':_0x1d8628[_0x53cfc9(0x1c8)],'scope':listScopeToRemoteScope(_0x3e089f),'code':_0x4373f5[_0x53cfc9(0x1d8)]()||undefined}),_0x5f163d=shouldListScope(_0x3e089f,'personal')?_0x3da5a5[_0x53cfc9(0x1c7)]??[]:[],_0x138063=shouldListScope(_0x3e089f,_0x53cfc9(0x1d0))?_0x3da5a5[_0x53cfc9(0x1d0)]??[]:[],_0x3e2cdc=[..._0x5f163d,..._0x138063];return{'ok':!![],'data':{'appCode':_0x1d8628['appCode'],'source':_0x53cfc9(0x1cc),'scope':_0x3e089f,'total':_0x3e2cdc[_0x53cfc9(0x1b9)],'personal':_0x5f163d['length'],'company':_0x138063[_0x53cfc9(0x1b9)],'items':_0x3e2cdc[_0x53cfc9(0x1cf)](summarizeRuntimeSkill),'skills':{'personal':_0x5f163d[_0x53cfc9(0x1cf)](summarizeRuntimeSkill),'company':_0x138063[_0x53cfc9(0x1cf)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x3e2cdc[_0x53cfc9(0x1b9)]+_0x53cfc9(0x1c9)};}};function groupLocalRuntimeSkills(_0x563940){const _0x239f1c=a67_0xf8869a;return{'personal':_0x563940['filter'](_0x4f7e88=>_0x4f7e88[_0x239f1c(0x1ca)]==='personal'),'company':_0x563940['filter'](_0x1a797b=>_0x1a797b[_0x239f1c(0x1ca)]===_0x239f1c(0x1d0)),'builtin':_0x563940[_0x239f1c(0x1c0)](_0x2e61e1=>_0x2e61e1[_0x239f1c(0x1ca)]===_0x239f1c(0x1cb))};}
1
+ function a67_0x2eea(){const _0x854f9=['284124macDEm','2236670JfLswE','length','production','accessKey','1128008qNwUIl','3549847QaoQJg','company','bool','Listed\x20','local','32052hFSoJh','16pGUUsb','scope','3ZzgGKq','70qyHtqz','personal','authRequired','3093732UGxEBl','../../../core/api-client.js','project','\x20remote\x20Skill(s).','filter','appCode','trim','\x20local\x20Skill(s).','23766564NNBEag','map','global','1hpUTPa','44iCZRNI','list','str','../../../skills/runtime-skill-sync.js','code'];a67_0x2eea=function(){return _0x854f9;};return a67_0x2eea();}const a67_0x781a0f=a67_0x13ca;(function(_0x2410a0,_0x40c344){const _0xf8e8de=a67_0x13ca,_0x3b86f3=_0x2410a0();while(!![]){try{const _0x5cdae6=parseInt(_0xf8e8de(0x1c7))/0x1*(-parseInt(_0xf8e8de(0x1cd))/0x2)+parseInt(_0xf8e8de(0x1db))/0x3*(-parseInt(_0xf8e8de(0x1d2))/0x4)+-parseInt(_0xf8e8de(0x1b9))/0x5*(-parseInt(_0xf8e8de(0x1d8))/0x6)+parseInt(_0xf8e8de(0x1d3))/0x7+parseInt(_0xf8e8de(0x1d9))/0x8*(-parseInt(_0xf8e8de(0x1bc))/0x9)+-parseInt(_0xf8e8de(0x1ce))/0xa*(parseInt(_0xf8e8de(0x1c8))/0xb)+parseInt(_0xf8e8de(0x1c4))/0xc;if(_0x5cdae6===_0x40c344)break;else _0x3b86f3['push'](_0x3b86f3['shift']());}catch(_0x168223){_0x3b86f3['push'](_0x3b86f3['shift']());}}}(a67_0x2eea,0x87cc4));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a67_0x13ca(_0x54d559,_0x3c3467){_0x54d559=_0x54d559-0x1b9;const _0x2eea6b=a67_0x2eea();let _0x13ca82=_0x2eea6b[_0x54d559];return _0x13ca82;}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a67_0x781a0f(0x1c9),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1c773a){const _0x4a1504=a67_0x781a0f,_0x333377=_0x1c773a[_0x4a1504(0x1ca)](_0x4a1504(0x1cc)),_0x44504d=normalizeListScope(_0x1c773a[_0x4a1504(0x1ca)](_0x4a1504(0x1da)));if(_0x1c773a[_0x4a1504(0x1d5)]('local')){const _0x1e85ba=_0x1c773a[_0x4a1504(0x1d1)];if(!_0x1e85ba)throw CliErrors[_0x4a1504(0x1bb)]();const {listLocalRuntimeSkills:_0x250d1b,resolveRuntimeSkillInstallTarget:_0x4ced05}=await import(_0x4a1504(0x1cb)),_0xba3f09=_0x4ced05(_0x1c773a[_0x4a1504(0x1c1)],_0x1c773a[_0x4a1504(0x1d5)]('project')?_0x4a1504(0x1be):_0x4a1504(0x1c6)),_0x279da9=_0x250d1b({'env':_0x1c773a['envName']??_0x4a1504(0x1d0),'accessKey':_0x1e85ba,'appCode':_0x1c773a['appCode'],'scopes':listScopeToRuntimeScopes(_0x44504d),'code':_0x333377['trim']()||undefined},_0xba3f09),_0xddfd1c=groupLocalRuntimeSkills(_0x279da9);return{'ok':!![],'data':{'appCode':_0x1c773a['appCode'],'source':_0x4a1504(0x1d7),..._0xba3f09['scope']===_0x4a1504(0x1be)?{'installScope':_0xba3f09[_0x4a1504(0x1da)]}:{},'scope':_0x44504d,'total':_0x279da9[_0x4a1504(0x1cf)],'personal':_0xddfd1c[_0x4a1504(0x1ba)][_0x4a1504(0x1cf)],'company':_0xddfd1c[_0x4a1504(0x1d4)][_0x4a1504(0x1cf)],'items':_0x279da9[_0x4a1504(0x1c5)](summarizeLocalRuntimeSkill),'skills':{'personal':_0xddfd1c[_0x4a1504(0x1ba)][_0x4a1504(0x1c5)](summarizeLocalRuntimeSkill),'company':_0xddfd1c[_0x4a1504(0x1d4)][_0x4a1504(0x1c5)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x279da9[_0x4a1504(0x1cf)]+_0x4a1504(0x1c3)};}const {listRuntimeSkills:_0x217a06}=await import(_0x4a1504(0x1bd)),_0x1f7358=await _0x217a06({'appCode':_0x1c773a[_0x4a1504(0x1c1)],'scope':listScopeToRemoteScope(_0x44504d),'code':_0x333377[_0x4a1504(0x1c2)]()||undefined}),_0x1bb594=shouldListScope(_0x44504d,'personal')?_0x1f7358[_0x4a1504(0x1ba)]??[]:[],_0x2a866f=shouldListScope(_0x44504d,_0x4a1504(0x1d4))?_0x1f7358[_0x4a1504(0x1d4)]??[]:[],_0x15f703=[..._0x1bb594,..._0x2a866f];return{'ok':!![],'data':{'appCode':_0x1c773a[_0x4a1504(0x1c1)],'source':'remote','scope':_0x44504d,'total':_0x15f703[_0x4a1504(0x1cf)],'personal':_0x1bb594[_0x4a1504(0x1cf)],'company':_0x2a866f[_0x4a1504(0x1cf)],'items':_0x15f703['map'](summarizeRuntimeSkill),'skills':{'personal':_0x1bb594[_0x4a1504(0x1c5)](summarizeRuntimeSkill),'company':_0x2a866f['map'](summarizeRuntimeSkill)}},'message':_0x4a1504(0x1d6)+_0x15f703[_0x4a1504(0x1cf)]+_0x4a1504(0x1bf)};}};function groupLocalRuntimeSkills(_0x563e35){const _0x11242c=a67_0x781a0f;return{'personal':_0x563e35['filter'](_0x159c39=>_0x159c39[_0x11242c(0x1da)]===_0x11242c(0x1ba)),'company':_0x563e35[_0x11242c(0x1c0)](_0x583346=>_0x583346['scope']==='company'),'builtin':_0x563e35[_0x11242c(0x1c0)](_0x2ab67a=>_0x2ab67a[_0x11242c(0x1da)]==='builtin')};}
@@ -1 +1 @@
1
- function a68_0x944e(_0x4cc9cd,_0x1ae141){_0x4cc9cd=_0x4cc9cd-0x16a;const _0x154249=a68_0x1542();let _0x944e67=_0x154249[_0x4cc9cd];return _0x944e67;}const a68_0x380d1d=a68_0x944e;(function(_0x532022,_0x5cc4bc){const _0x326043=a68_0x944e,_0x4bd64c=_0x532022();while(!![]){try{const _0x34ad87=-parseInt(_0x326043(0x176))/0x1*(parseInt(_0x326043(0x178))/0x2)+-parseInt(_0x326043(0x172))/0x3*(-parseInt(_0x326043(0x174))/0x4)+parseInt(_0x326043(0x16a))/0x5+-parseInt(_0x326043(0x170))/0x6*(-parseInt(_0x326043(0x173))/0x7)+-parseInt(_0x326043(0x16f))/0x8*(parseInt(_0x326043(0x177))/0x9)+-parseInt(_0x326043(0x16b))/0xa*(parseInt(_0x326043(0x16e))/0xb)+-parseInt(_0x326043(0x175))/0xc*(-parseInt(_0x326043(0x171))/0xd);if(_0x34ad87===_0x5cc4bc)break;else _0x4bd64c['push'](_0x4bd64c['shift']());}catch(_0x376045){_0x4bd64c['push'](_0x4bd64c['shift']());}}}(a68_0x1542,0x7e8cc));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x1542(){const _0x956ead=['1830470LMYLDO','10aMWbBM','skill','write','1825604bvxdBJ','215456FketOF','1158NmwemM','250198bQDsPq','1098693TJlOqO','7679mIweLz','4neqgMg','336XsUuno','230298bPBAcw','36nZAsts','6jKogxn','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review'];a68_0x1542=function(){return _0x956ead;};return a68_0x1542();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x380d1d(0x16c),'command':'push','description':a68_0x380d1d(0x179),'risk':a68_0x380d1d(0x16d),'confirmationDescription':'Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a68_0x3a931d=a68_0x5ee7;(function(_0x1b0a58,_0x8655b5){const _0x19ce81=a68_0x5ee7,_0x461ba8=_0x1b0a58();while(!![]){try{const _0x4321aa=parseInt(_0x19ce81(0x19b))/0x1*(-parseInt(_0x19ce81(0x197))/0x2)+parseInt(_0x19ce81(0x190))/0x3+-parseInt(_0x19ce81(0x19c))/0x4+-parseInt(_0x19ce81(0x19a))/0x5*(parseInt(_0x19ce81(0x199))/0x6)+parseInt(_0x19ce81(0x195))/0x7+-parseInt(_0x19ce81(0x192))/0x8*(-parseInt(_0x19ce81(0x191))/0x9)+-parseInt(_0x19ce81(0x193))/0xa;if(_0x4321aa===_0x8655b5)break;else _0x461ba8['push'](_0x461ba8['shift']());}catch(_0x3e17a9){_0x461ba8['push'](_0x461ba8['shift']());}}}(a68_0x3a17,0x7f9b3));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x5ee7(_0x514e1d,_0x4ba4ac){_0x514e1d=_0x514e1d-0x190;const _0x3a177e=a68_0x3a17();let _0x5ee79d=_0x3a177e[_0x514e1d];return _0x5ee79d;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a68_0x3a17(){const _0x5cfcbe=['write','1863176KZglNA','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','915658XEHLFA','Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','1446gwNtmJ','3995IKDTie','1OXScfn','1134068jPtXlB','2461584MCuJGW','1117719qDfpxL','24EWWRpa','26890lAwxNp'];a68_0x3a17=function(){return _0x5cfcbe;};return a68_0x3a17();}export const pushCommand={'service':'skill','command':'push','description':a68_0x3a931d(0x196),'risk':a68_0x3a931d(0x194),'confirmationDescription':a68_0x3a931d(0x198),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- function a69_0x1d8a(){const _0x37d07f=['12eVqXvy','1218264ArdOGi','15970uxGOWB','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','25236XtsOQf','37653wefJXc','read','dir','errors','type','7310050cRDNaE','236KvrrEH','skill','strict','9tuClTp','256IhBgZc','40650JQqdNO','9173WavoNE','bool'];a69_0x1d8a=function(){return _0x37d07f;};return a69_0x1d8a();}function a69_0x312f(_0x3dcd30,_0x260b43){_0x3dcd30=_0x3dcd30-0xec;const _0x1d8a2d=a69_0x1d8a();let _0x312f7a=_0x1d8a2d[_0x3dcd30];return _0x312f7a;}const a69_0x2fa805=a69_0x312f;(function(_0x3ff1c5,_0x47fb5e){const _0x103e7e=a69_0x312f,_0x33ce11=_0x3ff1c5();while(!![]){try{const _0x12c9be=parseInt(_0x103e7e(0xfe))/0x1*(-parseInt(_0x103e7e(0xed))/0x2)+-parseInt(_0x103e7e(0xee))/0x3+parseInt(_0x103e7e(0xf8))/0x4*(parseInt(_0x103e7e(0xef))/0x5)+parseInt(_0x103e7e(0xf1))/0x6+parseInt(_0x103e7e(0xf2))/0x7*(-parseInt(_0x103e7e(0xfc))/0x8)+-parseInt(_0x103e7e(0xfb))/0x9*(parseInt(_0x103e7e(0xfd))/0xa)+parseInt(_0x103e7e(0xf7))/0xb;if(_0x12c9be===_0x47fb5e)break;else _0x33ce11['push'](_0x33ce11['shift']());}catch(_0x200289){_0x33ce11['push'](_0x33ce11['shift']());}}}(a69_0x1d8a,0x35aeb));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x2fa805(0xf9),'command':'validate','description':a69_0x2fa805(0xf0),'risk':a69_0x2fa805(0xf3),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x134305){const _0x27a6b1=a69_0x2fa805,_0x5aad97=_0x134305[_0x27a6b1(0xec)](_0x27a6b1(0xfa)),_0xcbfcbe=validateSkillDirectory(_0x134305['str']('dir'),{'strict':_0x5aad97});return throwIfSkillValidationFailed(_0xcbfcbe,_0x5aad97),{'ok':!![],'data':{'dir':_0xcbfcbe[_0x27a6b1(0xf4)],'type':_0xcbfcbe[_0x27a6b1(0xf6)],'errors':_0xcbfcbe[_0x27a6b1(0xf5)],'warnings':_0xcbfcbe['warnings']},'message':'Skill\x20validation\x20passed.'};}};
1
+ function a69_0x8218(_0xf93df5,_0x41c861){_0xf93df5=_0xf93df5-0x1c8;const _0x1e0a30=a69_0x1e0a();let _0x8218fc=_0x1e0a30[_0xf93df5];return _0x8218fc;}function a69_0x1e0a(){const _0x2bb378=['3YtJeGW','warnings','bool','errors','16765DEEOyG','strict','324888inQweh','390pAvtxT','16sjcQwa','98tPCJNk','dir','type','19852snzLDG','48MUfuZp','skill','122ljYmXy','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','20761xEajCV','validate','260216fdvsBt','3467fZqviv','50qrHVKk','Skill\x20validation\x20passed.','173691kSahxY'];a69_0x1e0a=function(){return _0x2bb378;};return a69_0x1e0a();}const a69_0x44aea5=a69_0x8218;(function(_0x257a71,_0x35dc41){const _0xc379e7=a69_0x8218,_0x34bc48=_0x257a71();while(!![]){try{const _0x51b208=parseInt(_0xc379e7(0x1c9))/0x1*(parseInt(_0xc379e7(0x1dc))/0x2)+parseInt(_0xc379e7(0x1cd))/0x3*(-parseInt(_0xc379e7(0x1d3))/0x4)+-parseInt(_0xc379e7(0x1d1))/0x5*(parseInt(_0xc379e7(0x1d4))/0x6)+-parseInt(_0xc379e7(0x1d9))/0x7*(-parseInt(_0xc379e7(0x1d5))/0x8)+parseInt(_0xc379e7(0x1cc))/0x9*(parseInt(_0xc379e7(0x1ca))/0xa)+-parseInt(_0xc379e7(0x1c8))/0xb*(-parseInt(_0xc379e7(0x1da))/0xc)+-parseInt(_0xc379e7(0x1de))/0xd*(-parseInt(_0xc379e7(0x1d6))/0xe);if(_0x51b208===_0x35dc41)break;else _0x34bc48['push'](_0x34bc48['shift']());}catch(_0x5254d2){_0x34bc48['push'](_0x34bc48['shift']());}}}(a69_0x1e0a,0x1d5e2));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x44aea5(0x1db),'command':a69_0x44aea5(0x1df),'description':a69_0x44aea5(0x1dd),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x548c70){const _0x138983=a69_0x44aea5,_0x2f090e=_0x548c70[_0x138983(0x1cf)](_0x138983(0x1d2)),_0x1a6709=validateSkillDirectory(_0x548c70['str']('dir'),{'strict':_0x2f090e});return throwIfSkillValidationFailed(_0x1a6709,_0x2f090e),{'ok':!![],'data':{'dir':_0x1a6709[_0x138983(0x1d7)],'type':_0x1a6709[_0x138983(0x1d8)],'errors':_0x1a6709[_0x138983(0x1d0)],'warnings':_0x1a6709[_0x138983(0x1ce)]},'message':_0x138983(0x1cb)};}};
@@ -1 +1 @@
1
- (function(_0x3670e3,_0xa688cf){const _0x33de47=a70_0x3666,_0xc47e1f=_0x3670e3();while(!![]){try{const _0x4fd6e5=parseInt(_0x33de47(0x118))/0x1*(-parseInt(_0x33de47(0x11a))/0x2)+-parseInt(_0x33de47(0x129))/0x3+-parseInt(_0x33de47(0x12e))/0x4+-parseInt(_0x33de47(0x117))/0x5*(-parseInt(_0x33de47(0x124))/0x6)+parseInt(_0x33de47(0x12b))/0x7+parseInt(_0x33de47(0x120))/0x8+-parseInt(_0x33de47(0x11f))/0x9;if(_0x4fd6e5===_0xa688cf)break;else _0xc47e1f['push'](_0xc47e1f['shift']());}catch(_0x1ba843){_0xc47e1f['push'](_0xc47e1f['shift']());}}}(a70_0x2359,0xb40eb));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;function a70_0x3666(_0x34bcf7,_0x47213d){_0x34bcf7=_0x34bcf7-0x117;const _0x2359c6=a70_0x2359();let _0x366661=_0x2359c6[_0x34bcf7];return _0x366661;}export async function readRequiredSkillDiagram(_0x43c202){const _0x57faf0=a70_0x3666;return(await readRequiredSkillDiagramInput(_0x43c202))[_0x57faf0(0x121)];}export async function readRequiredSkillDiagramInput(_0x118f29){const _0x4c23c6=a70_0x3666,_0x343c4f=_0x118f29[_0x4c23c6(0x127)]();if(!_0x343c4f)throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x11b),'Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.');let _0x368bef,_0x186d63;if(_0x343c4f==='-')try{_0x368bef=readFileSync(0x0,_0x4c23c6(0x119));}catch{throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x122));}else{const _0x8dcd5a=resolve(_0x343c4f);if(!existsSync(_0x8dcd5a))throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x12c)+_0x8dcd5a);if(!statSync(_0x8dcd5a)['isFile']())throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x11e)+_0x8dcd5a);_0x186d63=realpathSync(_0x8dcd5a),_0x368bef=readFileSync(_0x186d63,_0x4c23c6(0x119));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x368bef)},'sourceFilePath':_0x186d63};}export async function validateAndCanonicalizeMermaid(_0x57176f){const _0x3a9353=a70_0x3666,_0x3eedd7=_0x57176f[_0x3a9353(0x125)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x2ac069=await loadMermaidApi();await _0x2ac069[_0x3a9353(0x12a)](_0x3eedd7);}catch{throw diagramValidationError();}return _0x3eedd7;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x3eafac=a70_0x3666;if(!('window'in globalThis)||!(_0x3eafac(0x126)in globalThis)){const _0x5092a3=new JSDOM('');Object[_0x3eafac(0x11d)](globalThis,{'window':{'configurable':!![],'value':_0x5092a3[_0x3eafac(0x128)]},'document':{'configurable':!![],'value':_0x5092a3[_0x3eafac(0x128)][_0x3eafac(0x126)]}});}return(await import(_0x3eafac(0x123)))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x362fb5=a70_0x3666;return CliErrors[_0x362fb5(0x12d)](_0x362fb5(0x11c),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}function a70_0x2359(){const _0x427c8a=['5860hcHjsA','56029iKwbjt','utf8','20RblxPQ','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Mermaid\x20syntax\x20validation\x20failed.','defineProperties','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','2630358YfRRIn','6386296KOKzFR','diagram','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','mermaid','4008ThufpK','replace','document','trim','window','3019170IZTsQl','parse','7895951ugAquu','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','validation','450876bIeSlc'];a70_0x2359=function(){return _0x427c8a;};return a70_0x2359();}
1
+ (function(_0x3f203f,_0x4d6fdc){const _0x1f49a0=a70_0x12b3,_0x50229=_0x3f203f();while(!![]){try{const _0x13b937=parseInt(_0x1f49a0(0x168))/0x1*(-parseInt(_0x1f49a0(0x170))/0x2)+parseInt(_0x1f49a0(0x175))/0x3*(parseInt(_0x1f49a0(0x166))/0x4)+-parseInt(_0x1f49a0(0x165))/0x5+-parseInt(_0x1f49a0(0x16a))/0x6*(parseInt(_0x1f49a0(0x162))/0x7)+parseInt(_0x1f49a0(0x178))/0x8*(-parseInt(_0x1f49a0(0x169))/0x9)+-parseInt(_0x1f49a0(0x164))/0xa*(-parseInt(_0x1f49a0(0x17b))/0xb)+parseInt(_0x1f49a0(0x177))/0xc;if(_0x13b937===_0x4d6fdc)break;else _0x50229['push'](_0x50229['shift']());}catch(_0x26374b){_0x50229['push'](_0x50229['shift']());}}}(a70_0xde92,0x2e797));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a70_0x12b3(_0x2ddf1a,_0x46426f){_0x2ddf1a=_0x2ddf1a-0x160;const _0xde92a6=a70_0xde92();let _0x12b33f=_0xde92a6[_0x2ddf1a];return _0x12b33f;}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x122a4e){const _0x405456=a70_0x12b3;return(await readRequiredSkillDiagramInput(_0x122a4e))[_0x405456(0x171)];}export async function readRequiredSkillDiagramInput(_0x1f19dd){const _0x4eff6b=a70_0x12b3,_0xf7beda=_0x1f19dd[_0x4eff6b(0x176)]();if(!_0xf7beda)throw CliErrors[_0x4eff6b(0x179)](_0x4eff6b(0x161),_0x4eff6b(0x174));let _0x3b53df,_0x14a3d5;if(_0xf7beda==='-')try{_0x3b53df=readFileSync(0x0,_0x4eff6b(0x17c));}catch{throw CliErrors[_0x4eff6b(0x179)](_0x4eff6b(0x16b));}else{const _0x22da8a=resolve(_0xf7beda);if(!existsSync(_0x22da8a))throw CliErrors[_0x4eff6b(0x179)](_0x4eff6b(0x172)+_0x22da8a);if(!statSync(_0x22da8a)[_0x4eff6b(0x16d)]())throw CliErrors[_0x4eff6b(0x179)](_0x4eff6b(0x173)+_0x22da8a);_0x14a3d5=realpathSync(_0x22da8a),_0x3b53df=readFileSync(_0x14a3d5,_0x4eff6b(0x17c));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x3b53df)},'sourceFilePath':_0x14a3d5};}function a70_0xde92(){const _0x511e3b=['diagram','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','12MKabrJ','trim','11046660snLYEA','2446112tWuJSs','validation','replace','11eEKKFx','utf8','parse','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','14HWmuxM','document','128110buyxqs','397425CDzYwg','46608bkmCgc','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','57566fpiUxo','9cHATxn','176910xlSsZX','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','Mermaid\x20syntax\x20validation\x20failed.','isFile','window','mermaid','12pnLqaE'];a70_0xde92=function(){return _0x511e3b;};return a70_0xde92();}export async function validateAndCanonicalizeMermaid(_0x3c0bfb){const _0x2a2797=a70_0x12b3,_0x901929=_0x3c0bfb[_0x2a2797(0x17a)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x2a2797(0x17a)](/\n+$/,'')+'\x0a';try{const _0x401249=await loadMermaidApi();await _0x401249[_0x2a2797(0x160)](_0x901929);}catch{throw diagramValidationError();}return _0x901929;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x4b2301=a70_0x12b3;if(!(_0x4b2301(0x16e)in globalThis)||!(_0x4b2301(0x163)in globalThis)){const _0x57eba3=new JSDOM('');Object['defineProperties'](globalThis,{'window':{'configurable':!![],'value':_0x57eba3[_0x4b2301(0x16e)]},'document':{'configurable':!![],'value':_0x57eba3[_0x4b2301(0x16e)][_0x4b2301(0x163)]}});}return(await import(_0x4b2301(0x16f)))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x38fe83=a70_0x12b3;return CliErrors['validation'](_0x38fe83(0x16c),_0x38fe83(0x167));}
@@ -1 +1 @@
1
- const a71_0x2fc7d3=a71_0x3778;(function(_0x3aa50c,_0x53b060){const _0x4aa41c=a71_0x3778,_0x289404=_0x3aa50c();while(!![]){try{const _0x1b1c52=-parseInt(_0x4aa41c(0x77))/0x1*(parseInt(_0x4aa41c(0x92))/0x2)+-parseInt(_0x4aa41c(0x70))/0x3+-parseInt(_0x4aa41c(0x85))/0x4+parseInt(_0x4aa41c(0x74))/0x5*(parseInt(_0x4aa41c(0x8e))/0x6)+parseInt(_0x4aa41c(0x75))/0x7*(parseInt(_0x4aa41c(0x6d))/0x8)+-parseInt(_0x4aa41c(0x6e))/0x9*(-parseInt(_0x4aa41c(0x67))/0xa)+parseInt(_0x4aa41c(0x6f))/0xb*(parseInt(_0x4aa41c(0x7e))/0xc);if(_0x1b1c52===_0x53b060)break;else _0x289404['push'](_0x289404['shift']());}catch(_0xc5a0cb){_0x289404['push'](_0x289404['shift']());}}}(a71_0x5f37,0xcd3ef));function a71_0x3778(_0x1a6d16,_0x387b49){_0x1a6d16=_0x1a6d16-0x67;const _0x5f37f4=a71_0x5f37();let _0x37789e=_0x5f37f4[_0x1a6d16];return _0x37789e;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x2fc7d3(0x7b),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x7a)};export const SCOPE_FLAG={'name':'scope','type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x8b),'enum':[a71_0x2fc7d3(0x81),a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':'string','description':a71_0x2fc7d3(0x71),'default':'personal','enum':[a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const LIST_SCOPE_FLAG={'name':a71_0x2fc7d3(0x88),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x87),'enum':[a71_0x2fc7d3(0x81),a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const LOCAL_FLAG={'name':a71_0x2fc7d3(0x83),'type':a71_0x2fc7d3(0x7c),'description':a71_0x2fc7d3(0x69)};export const DIR_FLAG={'name':a71_0x2fc7d3(0x8c),'type':a71_0x2fc7d3(0x73),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a71_0x2fc7d3(0x90),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x84)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x2fc7d3(0x94),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x86)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x2fc7d3(0x76),'type':a71_0x2fc7d3(0x73),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x2fc7d3(0x88),'type':a71_0x2fc7d3(0x73),'required':!![],'enum':[a71_0x2fc7d3(0x7f),'company'],'description':a71_0x2fc7d3(0x79)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x2fc7d3(0x6b),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x89),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x2fc7d3(0x8d),'type':a71_0x2fc7d3(0x78),'required':!![],'description':a71_0x2fc7d3(0x8f)};export const CREATE_NAME_FLAG={'name':'name','type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x72),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x2fc7d3(0x68)}};export const TYPE_FLAG={'name':'type','type':a71_0x2fc7d3(0x73),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};function a71_0x5f37(){const _0x250bac=['number','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','code','boolean','project','2317824gDFWWD','personal','company','all','confirm-warnings','local','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','1538332rnYvaC','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','scope','Server-reported\x20SkillVersion\x20source\x20fingerprint','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','dir','expected-diagram-revision','2490znbhya','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','diagram-file','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','2ekjvEA','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','skill-code','130TdMekx','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','target','source-fingerprint','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','5161496lGMFEL','708678ApktKZ','11zTqGeY','4963545rtjFRd','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','string','12775ElLNkH','14fqtIWb','version','687712PFnwBd'];a71_0x5f37=function(){return _0x250bac;};return a71_0x5f37();}export const TARGET_FLAG={'name':a71_0x2fc7d3(0x6a),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x6c),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':a71_0x2fc7d3(0x91)};export const PROJECT_TARGET_FLAG={'name':a71_0x2fc7d3(0x7d),'type':'boolean','description':a71_0x2fc7d3(0x93)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x2fc7d3(0x82),'type':a71_0x2fc7d3(0x7c),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':'strict','type':a71_0x2fc7d3(0x7c),'description':a71_0x2fc7d3(0x8a)};
1
+ const a71_0xe0e10b=a71_0x4f5d;(function(_0x9f1f5d,_0x4b0822){const _0x55d312=a71_0x4f5d,_0x81a753=_0x9f1f5d();while(!![]){try{const _0x292746=parseInt(_0x55d312(0x214))/0x1+-parseInt(_0x55d312(0x209))/0x2+parseInt(_0x55d312(0x1f5))/0x3+-parseInt(_0x55d312(0x205))/0x4+parseInt(_0x55d312(0x216))/0x5+-parseInt(_0x55d312(0x20a))/0x6*(-parseInt(_0x55d312(0x215))/0x7)+parseInt(_0x55d312(0x208))/0x8;if(_0x292746===_0x4b0822)break;else _0x81a753['push'](_0x81a753['shift']());}catch(_0x347184){_0x81a753['push'](_0x81a753['shift']());}}}(a71_0x1425,0x38e0c));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0xe0e10b(0x210),'type':a71_0xe0e10b(0x20c),'description':a71_0xe0e10b(0x1f3)};export const SCOPE_FLAG={'name':a71_0xe0e10b(0x201),'type':a71_0xe0e10b(0x20c),'description':a71_0xe0e10b(0x217),'enum':[a71_0xe0e10b(0x1ff),a71_0xe0e10b(0x1f6),a71_0xe0e10b(0x20d)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':'string','description':a71_0xe0e10b(0x20b),'default':a71_0xe0e10b(0x1f6),'enum':[a71_0xe0e10b(0x1f6),'company']};export const LIST_SCOPE_FLAG={'name':'scope','type':a71_0xe0e10b(0x20c),'description':a71_0xe0e10b(0x202),'enum':[a71_0xe0e10b(0x1ff),a71_0xe0e10b(0x1f6),a71_0xe0e10b(0x20d)]};export const LOCAL_FLAG={'name':'local','type':a71_0xe0e10b(0x1fe),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a71_0xe0e10b(0x1f8),'type':a71_0xe0e10b(0x20c),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a71_0xe0e10b(0x203),'type':a71_0xe0e10b(0x20c),'required':!![],'description':a71_0xe0e10b(0x1f4)};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0xe0e10b(0x20c),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a71_0xe0e10b(0x1f9),'type':a71_0xe0e10b(0x20c),'required':!![],'description':a71_0xe0e10b(0x200)};function a71_0x1425(){const _0x554f7f=['personal','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','dir','version','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','name','target','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','boolean','all','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','scope','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','diagram-file','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','1855896kdICPn','source-fingerprint','force','1721624LNDJrc','839554PLZXCC','786KiKrYx','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','string','company','strict','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','code','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Server-reported\x20SkillVersion\x20source\x20fingerprint','type','255465TRtLij','1435amnAqM','808220cPhCyN','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','1372668YnfDOU'];a71_0x1425=function(){return _0x554f7f;};return a71_0x1425();}export const DIAGRAM_SCOPE_FLAG={'name':a71_0xe0e10b(0x201),'type':a71_0xe0e10b(0x20c),'required':!![],'enum':[a71_0xe0e10b(0x1f6),a71_0xe0e10b(0x20d)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0xe0e10b(0x206),'type':a71_0xe0e10b(0x20c),'required':!![],'description':a71_0xe0e10b(0x212),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0xe0e10b(0x1fd)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':'number','required':!![],'description':a71_0xe0e10b(0x1fa)};export const CREATE_NAME_FLAG={'name':a71_0xe0e10b(0x1fb),'type':a71_0xe0e10b(0x20c),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0xe0e10b(0x211)}};export const TYPE_FLAG={'name':a71_0xe0e10b(0x213),'type':a71_0xe0e10b(0x20c),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0xe0e10b(0x1fc),'type':a71_0xe0e10b(0x20c),'description':a71_0xe0e10b(0x204),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0xe0e10b(0x207),'type':'boolean','description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0xe0e10b(0x1fe),'description':a71_0xe0e10b(0x20f)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a71_0xe0e10b(0x1fe),'description':a71_0xe0e10b(0x1f7)};function a71_0x4f5d(_0x34aa79,_0xa0fc6a){_0x34aa79=_0x34aa79-0x1f3;const _0x1425ab=a71_0x1425();let _0x4f5dbf=_0x1425ab[_0x34aa79];return _0x4f5dbf;}export const STRICT_FLAG={'name':a71_0xe0e10b(0x20e),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- (function(_0x2af308,_0x17d0e6){const _0x2dcfb4=a72_0x740e,_0x44fdb0=_0x2af308();while(!![]){try{const _0x6c4a37=parseInt(_0x2dcfb4(0xfc))/0x1*(parseInt(_0x2dcfb4(0xf8))/0x2)+-parseInt(_0x2dcfb4(0xff))/0x3+-parseInt(_0x2dcfb4(0xfa))/0x4*(parseInt(_0x2dcfb4(0xf5))/0x5)+-parseInt(_0x2dcfb4(0xf6))/0x6*(-parseInt(_0x2dcfb4(0xf7))/0x7)+parseInt(_0x2dcfb4(0xfe))/0x8*(parseInt(_0x2dcfb4(0xf9))/0x9)+-parseInt(_0x2dcfb4(0xfb))/0xa+parseInt(_0x2dcfb4(0xfd))/0xb;if(_0x6c4a37===_0x17d0e6)break;else _0x44fdb0['push'](_0x44fdb0['shift']());}catch(_0x1a5896){_0x44fdb0['push'](_0x44fdb0['shift']());}}}(a72_0x4cf9,0x796bd));import{createCommand}from'./commands/create.js';function a72_0x4cf9(){const _0x385bc0=['1296200IcxaYy','597432MvQYGa','1943450ArhPjW','4195758YQTkPl','7UgDGjO','2QtAlQX','18YYlHTP','8lXTtWe','5284060PCIFaf','730826yhtnCV','2729122GgegoP'];a72_0x4cf9=function(){return _0x385bc0;};return a72_0x4cf9();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0x740e(_0x4ab19b,_0x48b5e7){_0x4ab19b=_0x4ab19b-0xf5;const _0x4cf90a=a72_0x4cf9();let _0x740e76=_0x4cf90a[_0x4ab19b];return _0x740e76;}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,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x345ae7,_0x3877db){const _0x36d813=a72_0x231a,_0x2a3549=_0x345ae7();while(!![]){try{const _0xf266ca=-parseInt(_0x36d813(0x1f7))/0x1+-parseInt(_0x36d813(0x1f4))/0x2*(-parseInt(_0x36d813(0x1fc))/0x3)+parseInt(_0x36d813(0x1f8))/0x4+parseInt(_0x36d813(0x1fa))/0x5+parseInt(_0x36d813(0x1f5))/0x6*(-parseInt(_0x36d813(0x1f9))/0x7)+-parseInt(_0x36d813(0x1fb))/0x8*(-parseInt(_0x36d813(0x1f6))/0x9)+parseInt(_0x36d813(0x1fd))/0xa;if(_0xf266ca===_0x3877db)break;else _0x2a3549['push'](_0x2a3549['shift']());}catch(_0x43858f){_0x2a3549['push'](_0x2a3549['shift']());}}}(a72_0x1e56,0xc0dca));function a72_0x1e56(){const _0x14b3d8=['515754SFLjfI','3026076BNNZaV','523386zAUqYF','784560qiAdOF','3051532chHXMd','21iGkSop','1041805TznOxv','32FdMEvW','6GcfGeI','13679460naoxBH'];a72_0x1e56=function(){return _0x14b3d8;};return a72_0x1e56();}import{createCommand}from'./commands/create.js';function a72_0x231a(_0x3a52a7,_0x723028){_0x3a52a7=_0x3a52a7-0x1f4;const _0x1e562c=a72_0x1e56();let _0x231a69=_0x1e562c[_0x3a52a7];return _0x231a69;}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.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,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x419f9b,_0x2069b9){var _0x583a21=a73_0x1bd0,_0x2db2a1=_0x419f9b();while(!![]){try{var _0x2f5ffe=parseInt(_0x583a21(0xdb))/0x1*(parseInt(_0x583a21(0xd9))/0x2)+parseInt(_0x583a21(0xd3))/0x3+-parseInt(_0x583a21(0xd8))/0x4*(parseInt(_0x583a21(0xdc))/0x5)+-parseInt(_0x583a21(0xd7))/0x6+-parseInt(_0x583a21(0xde))/0x7*(-parseInt(_0x583a21(0xe0))/0x8)+-parseInt(_0x583a21(0xe1))/0x9+-parseInt(_0x583a21(0xd1))/0xa*(-parseInt(_0x583a21(0xd4))/0xb);if(_0x2f5ffe===_0x2069b9)break;else _0x2db2a1['push'](_0x2db2a1['shift']());}catch(_0x2fd495){_0x2db2a1['push'](_0x2db2a1['shift']());}}}(a73_0x44ab,0xb8518));function a73_0x44ab(){var _0x5ae9d2=['files','56jbzWfy','path','1170872TfLGFL','11680434HCwkXD','ossPath','isArray','700znjYAT','SKILL.md','3171195veEyGN','108713ZMIZxt','string','some','7229712dqvfYL','68fDFsVs','2kGpztQ','object','911018oiuBQW','168535CIyfzF'];a73_0x44ab=function(){return _0x5ae9d2;};return a73_0x44ab();}export function isPackageBackedManifest(_0x1b9240){var _0x2edd3f=a73_0x1bd0;return!!_0x1b9240&&typeof _0x1b9240===_0x2edd3f(0xda)&&!Array['isArray'](_0x1b9240)&&typeof _0x1b9240['ossPath']===_0x2edd3f(0xd5)&&_0x1b9240[_0x2edd3f(0xe2)]['length']>0x0&&Array['isArray'](_0x1b9240[_0x2edd3f(0xdd)]);}function a73_0x1bd0(_0x4c9281,_0x36021b){_0x4c9281=_0x4c9281-0xd0;var _0x44ab77=a73_0x44ab();var _0x1bd093=_0x44ab77[_0x4c9281];return _0x1bd093;}export function isMultiFileManifest(_0x36767f){var _0x5581ac=a73_0x1bd0;return!!_0x36767f&&typeof _0x36767f===_0x5581ac(0xda)&&!Array[_0x5581ac(0xd0)](_0x36767f)&&Array[_0x5581ac(0xd0)](_0x36767f[_0x5581ac(0xdd)])&&_0x36767f[_0x5581ac(0xdd)][_0x5581ac(0xd6)](_0x54b5f6=>_0x54b5f6[_0x5581ac(0xdf)]!==_0x5581ac(0xd2));}
1
+ function a73_0x478a(){var _0x352cb1=['837582vuFeXi','files','length','3001IwtEXH','76DBLKFA','object','295144tKrMKV','SKILL.md','7809BmnGmq','isArray','ossPath','146488KBFrrG','2331153HnHTTQ','15uchZkj','21oFsrXc','7204240xSFNqo'];a73_0x478a=function(){return _0x352cb1;};return a73_0x478a();}function a73_0x58f3(_0xe6813,_0x41e9de){_0xe6813=_0xe6813-0x1b0;var _0x478a56=a73_0x478a();var _0x58f3aa=_0x478a56[_0xe6813];return _0x58f3aa;}(function(_0x393658,_0x20ebf6){var _0x5704f8=a73_0x58f3,_0x1e997c=_0x393658();while(!![]){try{var _0x966ff8=-parseInt(_0x5704f8(0x1ba))/0x1+-parseInt(_0x5704f8(0x1bb))/0x2*(-parseInt(_0x5704f8(0x1bf))/0x3)+-parseInt(_0x5704f8(0x1b2))/0x4+parseInt(_0x5704f8(0x1b4))/0x5*(-parseInt(_0x5704f8(0x1b7))/0x6)+-parseInt(_0x5704f8(0x1b5))/0x7*(-parseInt(_0x5704f8(0x1bd))/0x8)+-parseInt(_0x5704f8(0x1b3))/0x9+parseInt(_0x5704f8(0x1b6))/0xa;if(_0x966ff8===_0x20ebf6)break;else _0x1e997c['push'](_0x1e997c['shift']());}catch(_0x2de4dc){_0x1e997c['push'](_0x1e997c['shift']());}}}(a73_0x478a,0x33e6a));export function isPackageBackedManifest(_0x4203ff){var _0x42fd91=a73_0x58f3;return!!_0x4203ff&&typeof _0x4203ff===_0x42fd91(0x1bc)&&!Array[_0x42fd91(0x1b0)](_0x4203ff)&&typeof _0x4203ff[_0x42fd91(0x1b1)]==='string'&&_0x4203ff[_0x42fd91(0x1b1)][_0x42fd91(0x1b9)]>0x0&&Array[_0x42fd91(0x1b0)](_0x4203ff[_0x42fd91(0x1b8)]);}export function isMultiFileManifest(_0x53a67a){var _0x2c5ca8=a73_0x58f3;return!!_0x53a67a&&typeof _0x53a67a===_0x2c5ca8(0x1bc)&&!Array['isArray'](_0x53a67a)&&Array[_0x2c5ca8(0x1b0)](_0x53a67a[_0x2c5ca8(0x1b8)])&&_0x53a67a[_0x2c5ca8(0x1b8)]['some'](_0x2ff2fe=>_0x2ff2fe['path']!==_0x2c5ca8(0x1be));}
@@ -1 +1 @@
1
- (function(_0x7ea6cc,_0x465f93){const _0x2f5236=a74_0x2c7a,_0xe5e13d=_0x7ea6cc();while(!![]){try{const _0x1ffbb8=-parseInt(_0x2f5236(0x1e0))/0x1*(-parseInt(_0x2f5236(0x1e4))/0x2)+-parseInt(_0x2f5236(0x1dc))/0x3+-parseInt(_0x2f5236(0x1d1))/0x4*(parseInt(_0x2f5236(0x1f0))/0x5)+parseInt(_0x2f5236(0x1d8))/0x6+-parseInt(_0x2f5236(0x1e3))/0x7+-parseInt(_0x2f5236(0x1c1))/0x8*(-parseInt(_0x2f5236(0x1cf))/0x9)+parseInt(_0x2f5236(0x1db))/0xa*(parseInt(_0x2f5236(0x1d5))/0xb);if(_0x1ffbb8===_0x465f93)break;else _0xe5e13d['push'](_0xe5e13d['shift']());}catch(_0x52e0c6){_0xe5e13d['push'](_0xe5e13d['shift']());}}}(a74_0x343b,0xd5843));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';function a74_0x2c7a(_0x49a115,_0x1f77df){_0x49a115=_0x49a115-0x1c1;const _0x343be4=a74_0x343b();let _0x2c7a30=_0x343be4[_0x49a115];return _0x2c7a30;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4d3fb9){const _0xd73f34=a74_0x2c7a,{getRuntimeSkillByCode:_0x33da53,validateRuntimeSkillPublish:_0x43c09c}=await import('../../core/api-client.js'),{readPushDirectory:_0x497ddd,resolvePushDirectoryIdentity:_0x1e6325}=await import(_0xd73f34(0x1ca));if(!_0x4d3fb9[_0xd73f34(0x1ed)])throw CliErrors[_0xd73f34(0x1e5)]();const _0x187d2a=resolvePushScope(_0x4d3fb9),_0x4eb2a2=validateSkillDirectory(_0x4d3fb9[_0xd73f34(0x1ea)](_0xd73f34(0x1d3)));throwIfSkillValidationFailed(_0x4eb2a2);const {diagram:_0x5123cb,sourceFilePath:_0xab1244}=await readRequiredSkillDiagramInput(_0x4d3fb9[_0xd73f34(0x1ea)](_0xd73f34(0x1e8))),_0x3d7718=diagramPackageExclusion(_0xab1244),_0x224bd7=_0x1e6325(_0x4eb2a2['dir'],_0x4d3fb9[_0xd73f34(0x1d7)],remoteFirstMetadataOptions()),_0xb83404=await _0x33da53(_0x4d3fb9[_0xd73f34(0x1d7)],_0x224bd7['skillCode']);throwIfBuiltinPushTarget(_0xb83404);if(_0x187d2a==='company'){const _0x7ab5b=_0x497ddd(_0x4eb2a2[_0xd73f34(0x1d3)],_0x4d3fb9[_0xd73f34(0x1d7)],{...remoteMissingCompanyReadOptions(),..._0x3d7718}),_0x52f2a1=await _0x43c09c(_0x4d3fb9[_0xd73f34(0x1d7)],withDiagram(_0x7ab5b[_0xd73f34(0x1f4)],_0x5123cb),{'visibility':_0xd73f34(0x1f1)});return{'method':_0xd73f34(0x1e7),'url':'/api/cli/v1/skills/'+_0x4d3fb9['appCode']+_0xd73f34(0x1d9),'body':{'skillCode':_0x7ab5b[_0xd73f34(0x1f9)],'visibility':_0xd73f34(0x1f1),'valid':_0x52f2a1[_0xd73f34(0x1c9)],'errors':_0x52f2a1[_0xd73f34(0x1de)],'warnings':_0x52f2a1['warnings'],'resolvedSlug':_0x52f2a1[_0xd73f34(0x1e2)],'resolvedVersion':_0x52f2a1[_0xd73f34(0x1da)],'diagramValidated':_0x52f2a1[_0xd73f34(0x1cd)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0xb83404&&_0xb83404[_0xd73f34(0x1d6)]!==_0xd73f34(0x1c2))throw CliErrors[_0xd73f34(0x1f7)](_0xd73f34(0x1f8)+_0x224bd7[_0xd73f34(0x1f9)]+'\x20has\x20scope=\x22'+(_0xb83404[_0xd73f34(0x1d6)]??_0xd73f34(0x1e9))+'\x22.');const _0x32b4e3=_0x497ddd(_0x4eb2a2[_0xd73f34(0x1d3)],_0x4d3fb9[_0xd73f34(0x1d7)],{..._0xb83404?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x3d7718}),_0x162168=await _0x43c09c(_0x4d3fb9['appCode'],withDiagram(_0x32b4e3[_0xd73f34(0x1f4)],_0x5123cb),{'visibility':_0xd73f34(0x1ee)});return{'method':_0xd73f34(0x1e7),'url':'/api/cli/v1/skills/'+_0x4d3fb9[_0xd73f34(0x1d7)]+_0xd73f34(0x1d9),'body':{'skillCode':_0x32b4e3['skillCode'],'visibility':'PRIVATE','valid':_0x162168['valid'],'errors':_0x162168[_0xd73f34(0x1de)],'warnings':_0x162168[_0xd73f34(0x1c8)],'resolvedSlug':_0x162168[_0xd73f34(0x1e2)],'resolvedVersion':_0x162168[_0xd73f34(0x1da)],'diagramValidated':_0x162168['diagramValidated']},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x553c59){const _0x2ed7a9=a74_0x2c7a,{createPersonalRuntimeSkill:_0x3d57d4,downloadRuntimeSkillPackage:_0x141315,getRuntimeSkillByCode:_0x3c43c9,publishCompanyRuntimeSkill:_0x489dad,updatePersonalRuntimeSkill:_0x13f5e7,validateRuntimeSkillPublish:_0xd0cbe}=await import(_0x2ed7a9(0x1d4)),{verifyRuntimeSkillPackage:_0x3cede6,verifyRuntimeSkillBundle:_0x50b4b5,readPushDirectory:_0x6c73db,refreshPushDirectoryMetadataFromRemote:_0x4937e4,recordPushedRuntimeSkill:_0x42155f,resolvePushDirectoryIdentity:_0x13f65a}=await import(_0x2ed7a9(0x1ca));if(!_0x553c59[_0x2ed7a9(0x1ed)])throw CliErrors[_0x2ed7a9(0x1e5)]();const _0x2df2a5=resolvePushScope(_0x553c59),_0x776277=_0x553c59[_0x2ed7a9(0x1f2)](_0x2ed7a9(0x1ec))||_0x553c59[_0x2ed7a9(0x1f2)](_0x2ed7a9(0x1cb)),_0x113f8e=validateSkillDirectory(_0x553c59[_0x2ed7a9(0x1ea)](_0x2ed7a9(0x1d3)));throwIfSkillValidationFailed(_0x113f8e);const {diagram:_0x26b33a,sourceFilePath:_0x41a42e}=await readRequiredSkillDiagramInput(_0x553c59['str'](_0x2ed7a9(0x1e8))),_0x422824=diagramPackageExclusion(_0x41a42e),_0x12151b=_0x113f8e[_0x2ed7a9(0x1d3)];let _0x501e7c;if(_0x2df2a5===_0x2ed7a9(0x1eb)){const _0x5489e5=_0x13f65a(_0x12151b,_0x553c59['appCode'],remoteFirstMetadataOptions()),_0x2781fa=await _0x3c43c9(_0x553c59[_0x2ed7a9(0x1d7)],_0x5489e5[_0x2ed7a9(0x1f9)]);throwIfBuiltinPushTarget(_0x2781fa);if(_0x2781fa)_0x4937e4(_0x12151b,_0x2781fa,_0x553c59['appCode']);const _0x22c1af=_0x6c73db(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{..._0x2781fa?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x422824});_0x501e7c={'scope':_0x2ed7a9(0x1eb),'payload':_0x22c1af,'publishInput':withDiagram(_0x22c1af['input'],_0x26b33a),'remoteForPreflight':_0x2781fa,'warnings':[]};}else{const _0x402a65=_0x553c59[_0x2ed7a9(0x1ea)](_0x2ed7a9(0x1dd))['trim'](),_0x39c8ed=Boolean(_0x402a65),_0x51e697=allowRetargetArgs(_0x39c8ed),_0x2a66e5=_0x13f65a(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{...remoteFirstMetadataOptions(),..._0x51e697[0x0]}),_0x1fefab=await _0x3c43c9(_0x553c59['appCode'],_0x2a66e5[_0x2ed7a9(0x1f9)]);throwIfBuiltinPushTarget(_0x1fefab);if(_0x1fefab){if(_0x1fefab[_0x2ed7a9(0x1d6)]!=='personal'){if(_0x39c8ed)throw CliErrors[_0x2ed7a9(0x1f7)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2a66e5[_0x2ed7a9(0x1f9)]+_0x2ed7a9(0x1f5)+(_0x1fefab[_0x2ed7a9(0x1d6)]??'unknown')+'\x22.');_0x4937e4(_0x12151b,_0x1fefab,_0x553c59[_0x2ed7a9(0x1d7)]);}else!_0x39c8ed&&_0x4937e4(_0x12151b,_0x1fefab,_0x553c59[_0x2ed7a9(0x1d7)]);}const _0x3902ca=_0x6c73db(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{..._0x1fefab?remotePersonalReadOptions(_0x39c8ed,_0x51e697[0x0]):remoteMissingPersonalReadOptions(_0x51e697[0x0]),..._0x422824}),_0x3579d5=_0x1fefab?.[_0x2ed7a9(0x1d6)]===_0x2ed7a9(0x1c2)&&_0x1fefab[_0x2ed7a9(0x1f9)]===_0x3902ca[_0x2ed7a9(0x1f9)]?_0x1fefab:undefined,_0xeaf92c=_0x39c8ed&&_0x3579d5?withRetargetExistingMetadata(_0x3902ca[_0x2ed7a9(0x1f4)],_0x3579d5,{'preferInputSkillName':Boolean(_0x3902ca[_0x2ed7a9(0x1e6)])}):_0x3902ca[_0x2ed7a9(0x1f4)],_0x52d77c=_0x39c8ed?buildRetargetWarning(_0x2a66e5[_0x2ed7a9(0x1df)],_0x553c59[_0x2ed7a9(0x1d7)]):[];_0x501e7c={'scope':_0x2ed7a9(0x1c2),'payload':_0x3902ca,'publishInput':withDiagram(_0xeaf92c,_0x26b33a),'remoteForPreflight':_0x3579d5,'existing':_0x3579d5,'warnings':[..._0x113f8e[_0x2ed7a9(0x1c8)],..._0x52d77c]};}const _0x10887d=await runRemoteContentPreflight({'scope':_0x501e7c[_0x2ed7a9(0x1d6)],'remote':_0x501e7c[_0x2ed7a9(0x1cc)],'publishInput':_0x501e7c[_0x2ed7a9(0x1c6)],'skillCode':_0x501e7c['payload'][_0x2ed7a9(0x1f9)],'appCode':_0x553c59['appCode'],'downloadRuntimeSkillPackage':_0x141315,'verifyRuntimeSkillBundle':_0x50b4b5});if(_0x10887d['status']==='identical')return _0x501e7c[_0x2ed7a9(0x1d6)]==='company'?_0x42155f(_0x12151b,_0x10887d[_0x2ed7a9(0x1e1)],_0x553c59['appCode'],{'scope':'company'}):_0x42155f(_0x12151b,_0x10887d[_0x2ed7a9(0x1e1)],_0x553c59[_0x2ed7a9(0x1d7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x10887d[_0x2ed7a9(0x1e1)]),'scope':_0x501e7c['scope'],..._0x501e7c[_0x2ed7a9(0x1d6)]===_0x2ed7a9(0x1c2)?{'warnings':_0x501e7c[_0x2ed7a9(0x1c8)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x501e7c[_0x2ed7a9(0x1d6)])+'\x20Skill\x20'+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x501e7c[_0x2ed7a9(0x1d6)]==='company'){const _0x1173ed=await _0xd0cbe(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],{'visibility':_0x2ed7a9(0x1f1)});throwIfPublishValidationFailed(_0x2ed7a9(0x1eb),_0x501e7c['payload']['skillCode'],_0x1173ed),throwIfUnconfirmedPublishWarnings(_0x2ed7a9(0x1eb),_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode'],_0x1173ed['warnings'],_0x776277);const _0x558949=await _0x489dad(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c[_0x2ed7a9(0x1c6)],{'confirmWarnings':_0x776277});return _0x42155f(_0x12151b,{..._0x558949,'files':_0x501e7c[_0x2ed7a9(0x1c6)][_0x2ed7a9(0x1c3)]},_0x553c59[_0x2ed7a9(0x1d7)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x558949),'scope':'company','reviewState':_0x2ed7a9(0x1c7),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x1173ed[_0x2ed7a9(0x1c8)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode']+_0x2ed7a9(0x1f3)+(_0x558949[_0x2ed7a9(0x1ef)]??_0x2ed7a9(0x1ce))+'\x20for\x20review'};}const _0x5d77c=await _0xd0cbe(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x2ed7a9(0x1c2),_0x501e7c['payload'][_0x2ed7a9(0x1f9)],_0x5d77c),throwIfUnconfirmedPublishWarnings(_0x2ed7a9(0x1c2),_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode'],_0x5d77c[_0x2ed7a9(0x1c8)],_0x776277);const _0x37528f={'confirmWarnings':_0x776277},_0x47e5c4=_0x501e7c['existing']?await _0x13f5e7(_0x501e7c['payload'][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c[_0x2ed7a9(0x1c6)],_0x37528f):await _0x3d57d4(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],_0x37528f);let _0x145fbf=_0x47e5c4;if(isMultiFileManifest(_0x501e7c['publishInput'][_0x2ed7a9(0x1c3)])){const _0x477476=await _0x141315(_0x2ed7a9(0x1c2),_0x47e5c4[_0x2ed7a9(0x1f9)]||_0x501e7c[_0x2ed7a9(0x1c4)][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)]);_0x50b4b5(_0x501e7c[_0x2ed7a9(0x1c6)]['files'],_0x477476),_0x145fbf={..._0x47e5c4,'files':_0x501e7c['publishInput'][_0x2ed7a9(0x1c3)]};}else{if(isPackageBackedManifest(_0x47e5c4[_0x2ed7a9(0x1c3)])){const _0x518fe6=await _0x141315(_0x2ed7a9(0x1c2),_0x47e5c4[_0x2ed7a9(0x1f9)]||_0x501e7c[_0x2ed7a9(0x1c4)][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)]);_0x3cede6(_0x47e5c4[_0x2ed7a9(0x1c3)],_0x518fe6);}}return _0x42155f(_0x12151b,_0x145fbf,_0x553c59['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x47e5c4),'warnings':_0x501e7c[_0x2ed7a9(0x1c8)],'validation':{'warnings':_0x5d77c[_0x2ed7a9(0x1c8)]},'diagramBound':!![]},'message':_0x501e7c[_0x2ed7a9(0x1d0)]?_0x2ed7a9(0x1f6)+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]:_0x2ed7a9(0x1c5)+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]};}function a74_0x343b(){const _0x3b5954=['unknown','str','company','confirm-warnings','accessKey','PRIVATE','version','515ZwjaxY','NAMESPACE_ONLY','bool','\x20version\x20','input','\x20has\x20scope=\x22','Updated\x20personal\x20Skill\x20','validation','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','skillCode','8984nLdcXp','personal','files','payload','Created\x20personal\x20Skill\x20','publishInput','submitted','warnings','valid','../../skills/runtime-skill-sync.js','confirmWarnings','remoteForPreflight','diagramValidated','(unknown)','2043qeGgrb','existing','52916CnlyOF','Personal','dir','../../core/api-client.js','121mnZwpT','scope','appCode','9602586ZxCBMe','/publish/validate','resolvedVersion','162210RNqxpL','12801osMmQP','appcode','errors','metadata','159UuJsOI','savedSkill','resolvedSlug','5866763tEmIpt','13154vPUxxS','authRequired','frontmatterDisplayName','POST','diagram-file'];a74_0x343b=function(){return _0x3b5954;};return a74_0x343b();}function scopeLabel(_0x1b6a91){const _0x4f7399=a74_0x2c7a;return _0x1b6a91==='company'?'Company':_0x4f7399(0x1d2);}function withDiagram(_0x127bb5,_0x5a3752){return{..._0x127bb5,'diagram':_0x5a3752};}function diagramPackageExclusion(_0x47b76f){return _0x47b76f?{'excludedFilePaths':[_0x47b76f]}:{};}
1
+ (function(_0x356f20,_0x640f66){const _0x592703=a74_0x303f,_0x251677=_0x356f20();while(!![]){try{const _0x4e8ef8=parseInt(_0x592703(0xa3))/0x1*(-parseInt(_0x592703(0x86))/0x2)+-parseInt(_0x592703(0x91))/0x3*(parseInt(_0x592703(0x7e))/0x4)+parseInt(_0x592703(0xaf))/0x5*(-parseInt(_0x592703(0xa8))/0x6)+-parseInt(_0x592703(0x96))/0x7+-parseInt(_0x592703(0xa1))/0x8+-parseInt(_0x592703(0x9c))/0x9+parseInt(_0x592703(0x93))/0xa*(parseInt(_0x592703(0xa5))/0xb);if(_0x4e8ef8===_0x640f66)break;else _0x251677['push'](_0x251677['shift']());}catch(_0x47691f){_0x251677['push'](_0x251677['shift']());}}}(a74_0x1c05,0x4fd80));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';function a74_0x303f(_0x3503ef,_0x5166cc){_0x3503ef=_0x3503ef-0x7e;const _0x1c05e4=a74_0x1c05();let _0x303f6f=_0x1c05e4[_0x3503ef];return _0x303f6f;}import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';function a74_0x1c05(){const _0x2237dc=['version','unknown','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','str','skillCode','640536aEBQeA','identical','10eHLApe','\x20version\x20','publishInput','2976792hKJeVi','bool','authRequired','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','\x20for\x20review','valid','2797317Hvjgnq','existing','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','validation','status','3992904EAsPsp','frontmatterDisplayName','11207bdNDrY','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','26796605OlpqrZ','Personal','company','1205004JgcerZ','errors','metadata','personal','appCode','NAMESPACE_ONLY','appcode','5uGoJeF','savedSkill','resolvedVersion','diagram-file','files','../../core/api-client.js','/publish/validate','input','dir','\x20Skill\x20','POST','trim','Created\x20personal\x20Skill\x20','../../skills/runtime-skill-sync.js','4wyutMr','PRIVATE','diagramValidated','confirmWarnings','payload','warnings','Submitted\x20company\x20Skill\x20','\x20has\x20scope=\x22','82vFuUri','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','resolvedSlug','accessKey','scope'];a74_0x1c05=function(){return _0x2237dc;};return a74_0x1c05();}export async function skillPushDryRun(_0x1560be){const _0x1293dd=a74_0x303f,{getRuntimeSkillByCode:_0x383ea7,validateRuntimeSkillPublish:_0x4e2576}=await import(_0x1293dd(0xb4)),{readPushDirectory:_0x40ed5f,resolvePushDirectoryIdentity:_0x5d542c}=await import(_0x1293dd(0xbc));if(!_0x1560be[_0x1293dd(0x8a)])throw CliErrors[_0x1293dd(0x98)]();const _0x3e7700=resolvePushScope(_0x1560be),_0x4de418=validateSkillDirectory(_0x1560be[_0x1293dd(0x8f)](_0x1293dd(0xb7)));throwIfSkillValidationFailed(_0x4de418);const {diagram:_0x42fa49,sourceFilePath:_0x42aeed}=await readRequiredSkillDiagramInput(_0x1560be[_0x1293dd(0x8f)](_0x1293dd(0xb2))),_0xb83b43=diagramPackageExclusion(_0x42aeed),_0x3c1f8e=_0x5d542c(_0x4de418[_0x1293dd(0xb7)],_0x1560be[_0x1293dd(0xac)],remoteFirstMetadataOptions()),_0x30625d=await _0x383ea7(_0x1560be[_0x1293dd(0xac)],_0x3c1f8e[_0x1293dd(0x90)]);throwIfBuiltinPushTarget(_0x30625d);if(_0x3e7700===_0x1293dd(0xa7)){const _0x1f9b41=_0x40ed5f(_0x4de418['dir'],_0x1560be['appCode'],{...remoteMissingCompanyReadOptions(),..._0xb83b43}),_0x3b1447=await _0x4e2576(_0x1560be['appCode'],withDiagram(_0x1f9b41['input'],_0x42fa49),{'visibility':_0x1293dd(0xad)});return{'method':_0x1293dd(0xb9),'url':'/api/cli/v1/skills/'+_0x1560be[_0x1293dd(0xac)]+_0x1293dd(0xb5),'body':{'skillCode':_0x1f9b41[_0x1293dd(0x90)],'visibility':'NAMESPACE_ONLY','valid':_0x3b1447[_0x1293dd(0x9b)],'errors':_0x3b1447[_0x1293dd(0xa9)],'warnings':_0x3b1447['warnings'],'resolvedSlug':_0x3b1447[_0x1293dd(0x89)],'resolvedVersion':_0x3b1447[_0x1293dd(0xb1)],'diagramValidated':_0x3b1447[_0x1293dd(0x80)]},'description':_0x1293dd(0x9e)};}if(_0x30625d&&_0x30625d[_0x1293dd(0x8b)]!==_0x1293dd(0xab))throw CliErrors[_0x1293dd(0x9f)](_0x1293dd(0xa4)+_0x3c1f8e[_0x1293dd(0x90)]+_0x1293dd(0x85)+(_0x30625d[_0x1293dd(0x8b)]??_0x1293dd(0x8d))+'\x22.');const _0x4dea30=_0x40ed5f(_0x4de418[_0x1293dd(0xb7)],_0x1560be['appCode'],{..._0x30625d?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0xb83b43}),_0x34fc72=await _0x4e2576(_0x1560be[_0x1293dd(0xac)],withDiagram(_0x4dea30[_0x1293dd(0xb6)],_0x42fa49),{'visibility':_0x1293dd(0x7f)});return{'method':_0x1293dd(0xb9),'url':_0x1293dd(0x88)+_0x1560be[_0x1293dd(0xac)]+_0x1293dd(0xb5),'body':{'skillCode':_0x4dea30['skillCode'],'visibility':'PRIVATE','valid':_0x34fc72[_0x1293dd(0x9b)],'errors':_0x34fc72['errors'],'warnings':_0x34fc72[_0x1293dd(0x83)],'resolvedSlug':_0x34fc72[_0x1293dd(0x89)],'resolvedVersion':_0x34fc72['resolvedVersion'],'diagramValidated':_0x34fc72['diagramValidated']},'description':_0x1293dd(0x8e)};}export async function skillPushExecute(_0x4062f8){const _0x5924fa=a74_0x303f,{createPersonalRuntimeSkill:_0x4949e6,downloadRuntimeSkillPackage:_0x4a290c,getRuntimeSkillByCode:_0x21010e,publishCompanyRuntimeSkill:_0x1e80a2,updatePersonalRuntimeSkill:_0x4eb1ff,validateRuntimeSkillPublish:_0x266b8e}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x58cd79,verifyRuntimeSkillBundle:_0x39ad8c,readPushDirectory:_0x59dbdd,refreshPushDirectoryMetadataFromRemote:_0x368bc7,recordPushedRuntimeSkill:_0x22ffa4,resolvePushDirectoryIdentity:_0x47c8be}=await import(_0x5924fa(0xbc));if(!_0x4062f8[_0x5924fa(0x8a)])throw CliErrors['authRequired']();const _0x22b008=resolvePushScope(_0x4062f8),_0x4199fa=_0x4062f8[_0x5924fa(0x97)]('confirm-warnings')||_0x4062f8[_0x5924fa(0x97)](_0x5924fa(0x81)),_0x4a15e4=validateSkillDirectory(_0x4062f8[_0x5924fa(0x8f)]('dir'));throwIfSkillValidationFailed(_0x4a15e4);const {diagram:_0x106239,sourceFilePath:_0x3c6c0e}=await readRequiredSkillDiagramInput(_0x4062f8[_0x5924fa(0x8f)]('diagram-file')),_0x22666a=diagramPackageExclusion(_0x3c6c0e),_0xce9748=_0x4a15e4[_0x5924fa(0xb7)];let _0xa80420;if(_0x22b008===_0x5924fa(0xa7)){const _0x344180=_0x47c8be(_0xce9748,_0x4062f8[_0x5924fa(0xac)],remoteFirstMetadataOptions()),_0x879123=await _0x21010e(_0x4062f8['appCode'],_0x344180[_0x5924fa(0x90)]);throwIfBuiltinPushTarget(_0x879123);if(_0x879123)_0x368bc7(_0xce9748,_0x879123,_0x4062f8['appCode']);const _0x12c891=_0x59dbdd(_0xce9748,_0x4062f8[_0x5924fa(0xac)],{..._0x879123?{'targetScope':_0x5924fa(0xa7),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x22666a});_0xa80420={'scope':_0x5924fa(0xa7),'payload':_0x12c891,'publishInput':withDiagram(_0x12c891[_0x5924fa(0xb6)],_0x106239),'remoteForPreflight':_0x879123,'warnings':[]};}else{const _0x36b7c1=_0x4062f8[_0x5924fa(0x8f)](_0x5924fa(0xae))[_0x5924fa(0xba)](),_0x2f78bf=Boolean(_0x36b7c1),_0x1250eb=allowRetargetArgs(_0x2f78bf),_0x42a060=_0x47c8be(_0xce9748,_0x4062f8[_0x5924fa(0xac)],{...remoteFirstMetadataOptions(),..._0x1250eb[0x0]}),_0x16f868=await _0x21010e(_0x4062f8['appCode'],_0x42a060[_0x5924fa(0x90)]);throwIfBuiltinPushTarget(_0x16f868);if(_0x16f868){if(_0x16f868['scope']!=='personal'){if(_0x2f78bf)throw CliErrors[_0x5924fa(0x9f)](_0x5924fa(0xa4)+_0x42a060[_0x5924fa(0x90)]+_0x5924fa(0x85)+(_0x16f868['scope']??_0x5924fa(0x8d))+'\x22.');_0x368bc7(_0xce9748,_0x16f868,_0x4062f8['appCode']);}else!_0x2f78bf&&_0x368bc7(_0xce9748,_0x16f868,_0x4062f8[_0x5924fa(0xac)]);}const _0x439d8d=_0x59dbdd(_0xce9748,_0x4062f8[_0x5924fa(0xac)],{..._0x16f868?remotePersonalReadOptions(_0x2f78bf,_0x1250eb[0x0]):remoteMissingPersonalReadOptions(_0x1250eb[0x0]),..._0x22666a}),_0x1361ff=_0x16f868?.[_0x5924fa(0x8b)]===_0x5924fa(0xab)&&_0x16f868[_0x5924fa(0x90)]===_0x439d8d['skillCode']?_0x16f868:undefined,_0x266103=_0x2f78bf&&_0x1361ff?withRetargetExistingMetadata(_0x439d8d[_0x5924fa(0xb6)],_0x1361ff,{'preferInputSkillName':Boolean(_0x439d8d[_0x5924fa(0xa2)])}):_0x439d8d[_0x5924fa(0xb6)],_0x51fdfa=_0x2f78bf?buildRetargetWarning(_0x42a060[_0x5924fa(0xaa)],_0x4062f8[_0x5924fa(0xac)]):[];_0xa80420={'scope':_0x5924fa(0xab),'payload':_0x439d8d,'publishInput':withDiagram(_0x266103,_0x106239),'remoteForPreflight':_0x1361ff,'existing':_0x1361ff,'warnings':[..._0x4a15e4[_0x5924fa(0x83)],..._0x51fdfa]};}const _0x39bf10=await runRemoteContentPreflight({'scope':_0xa80420['scope'],'remote':_0xa80420['remoteForPreflight'],'publishInput':_0xa80420[_0x5924fa(0x95)],'skillCode':_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],'appCode':_0x4062f8[_0x5924fa(0xac)],'downloadRuntimeSkillPackage':_0x4a290c,'verifyRuntimeSkillBundle':_0x39ad8c});if(_0x39bf10[_0x5924fa(0xa0)]===_0x5924fa(0x92))return _0xa80420[_0x5924fa(0x8b)]===_0x5924fa(0xa7)?_0x22ffa4(_0xce9748,_0x39bf10['savedSkill'],_0x4062f8['appCode'],{'scope':_0x5924fa(0xa7)}):_0x22ffa4(_0xce9748,_0x39bf10[_0x5924fa(0xb0)],_0x4062f8[_0x5924fa(0xac)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x39bf10[_0x5924fa(0xb0)]),'scope':_0xa80420[_0x5924fa(0x8b)],..._0xa80420[_0x5924fa(0x8b)]===_0x5924fa(0xab)?{'warnings':_0xa80420['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0xa80420[_0x5924fa(0x8b)])+_0x5924fa(0xb8)+_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)]+_0x5924fa(0x99)};if(_0xa80420['scope']===_0x5924fa(0xa7)){const _0x4748f5=await _0x266b8e(_0x4062f8[_0x5924fa(0xac)],_0xa80420['publishInput'],{'visibility':_0x5924fa(0xad)});throwIfPublishValidationFailed(_0x5924fa(0xa7),_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x4748f5),throwIfUnconfirmedPublishWarnings('company',_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x4748f5['warnings'],_0x4199fa);const _0x3b317a=await _0x1e80a2(_0x4062f8[_0x5924fa(0xac)],_0xa80420['publishInput'],{'confirmWarnings':_0x4199fa});return _0x22ffa4(_0xce9748,{..._0x3b317a,'files':_0xa80420[_0x5924fa(0x95)]['files']},_0x4062f8[_0x5924fa(0xac)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3b317a),'scope':_0x5924fa(0xa7),'reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x4748f5[_0x5924fa(0x83)]}},'message':_0x5924fa(0x84)+_0xa80420[_0x5924fa(0x82)]['skillCode']+_0x5924fa(0x94)+(_0x3b317a[_0x5924fa(0x8c)]??'(unknown)')+_0x5924fa(0x9a)};}const _0x34988a=await _0x266b8e(_0x4062f8[_0x5924fa(0xac)],_0xa80420[_0x5924fa(0x95)],{'visibility':_0x5924fa(0x7f)});throwIfPublishValidationFailed(_0x5924fa(0xab),_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x34988a),throwIfUnconfirmedPublishWarnings(_0x5924fa(0xab),_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x34988a['warnings'],_0x4199fa);const _0x35795c={'confirmWarnings':_0x4199fa},_0x57c32f=_0xa80420[_0x5924fa(0x9d)]?await _0x4eb1ff(_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x4062f8['appCode'],_0xa80420[_0x5924fa(0x95)],_0x35795c):await _0x4949e6(_0x4062f8[_0x5924fa(0xac)],_0xa80420[_0x5924fa(0x95)],_0x35795c);let _0x1bb31c=_0x57c32f;if(isMultiFileManifest(_0xa80420[_0x5924fa(0x95)]['files'])){const _0x3bc851=await _0x4a290c(_0x5924fa(0xab),_0x57c32f[_0x5924fa(0x90)]||_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x4062f8[_0x5924fa(0xac)]);_0x39ad8c(_0xa80420[_0x5924fa(0x95)][_0x5924fa(0xb3)],_0x3bc851),_0x1bb31c={..._0x57c32f,'files':_0xa80420[_0x5924fa(0x95)][_0x5924fa(0xb3)]};}else{if(isPackageBackedManifest(_0x57c32f[_0x5924fa(0xb3)])){const _0x3ca109=await _0x4a290c('personal',_0x57c32f[_0x5924fa(0x90)]||_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)],_0x4062f8[_0x5924fa(0xac)]);_0x58cd79(_0x57c32f[_0x5924fa(0xb3)],_0x3ca109);}}return _0x22ffa4(_0xce9748,_0x1bb31c,_0x4062f8[_0x5924fa(0xac)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x57c32f),'warnings':_0xa80420[_0x5924fa(0x83)],'validation':{'warnings':_0x34988a['warnings']},'diagramBound':!![]},'message':_0xa80420[_0x5924fa(0x9d)]?_0x5924fa(0x87)+_0xa80420[_0x5924fa(0x82)][_0x5924fa(0x90)]:_0x5924fa(0xbb)+_0xa80420['payload']['skillCode']};}function scopeLabel(_0x28da7c){const _0x15e984=a74_0x303f;return _0x28da7c==='company'?'Company':_0x15e984(0xa6);}function withDiagram(_0x286341,_0x3106a2){return{..._0x286341,'diagram':_0x3106a2};}function diagramPackageExclusion(_0x50973e){return _0x50973e?{'excludedFilePaths':[_0x50973e]}:{};}
@@ -1 +1 @@
1
- (function(_0xa963dd,_0x28f8cf){const _0x1c2446=a75_0x1dd4,_0x227e55=_0xa963dd();while(!![]){try{const _0x21268b=-parseInt(_0x1c2446(0x11f))/0x1*(-parseInt(_0x1c2446(0x127))/0x2)+-parseInt(_0x1c2446(0x13c))/0x3+-parseInt(_0x1c2446(0x123))/0x4+-parseInt(_0x1c2446(0x146))/0x5+parseInt(_0x1c2446(0x12f))/0x6*(parseInt(_0x1c2446(0x136))/0x7)+-parseInt(_0x1c2446(0x138))/0x8+-parseInt(_0x1c2446(0x13e))/0x9*(-parseInt(_0x1c2446(0x142))/0xa);if(_0x21268b===_0x28f8cf)break;else _0x227e55['push'](_0x227e55['shift']());}catch(_0x1a3bf3){_0x227e55['push'](_0x227e55['shift']());}}}(a75_0x5001,0x1e641));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x36226f){const _0xc89e6e=a75_0x1dd4,_0x26d7c6=_0x36226f[_0xc89e6e(0x14b)](_0xc89e6e(0x128))||_0xc89e6e(0x135);if(_0x26d7c6==='personal'||_0x26d7c6===_0xc89e6e(0x13a))return _0x26d7c6;throw CliErrors[_0xc89e6e(0x12c)](_0xc89e6e(0x12b)+_0x26d7c6+'\x22.');}export function allowRetargetArgs(_0x2e6a7c){return _0x2e6a7c?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x3f8a85=a75_0x1dd4;return{'targetScope':_0x3f8a85(0x13a),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a75_0x1dd4(_0x16d1af,_0x40f94c){_0x16d1af=_0x16d1af-0x11f;const _0x5001f0=a75_0x5001();let _0x1dd4bb=_0x5001f0[_0x16d1af];return _0x1dd4bb;}export function remoteMissingPersonalReadOptions(_0x595c7d={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x595c7d};}export function remotePersonalReadOptions(_0x1c861b,_0x89f1be={}){return{'ignoreInvalidMetadata':!![],..._0x1c861b?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x89f1be};}function a75_0x5001(){const _0x319747=['4lIgegN','lovrabet.skill.json','appCode','warning','320248EyqFCY','verifyRuntimeSkillBundle','(unknown)','not-applicable','23022ooBipd','scope','join','errors','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','validation','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Review\x20each\x20warning\x20before\x20continuing.','122832NFlSPL','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','remote','skillCode','builtin','\x20after\x20successful\x20push.','personal','28EwSifb','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1013432FWCAYe','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','company','publishInput','63705CgdqJy','Company','63tBjBDf','files','version','different','372490zslcSn','downloadRuntimeSkillPackage','skill-metadata-appcode-retargeted','warnings','181090NevpVr','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Local\x20Skill\x20metadata\x20appCode\x20','content','length','str'];a75_0x5001=function(){return _0x319747;};return a75_0x5001();}export function throwIfBuiltinPushTarget(_0x414df5){const _0x2cd3d4=a75_0x1dd4;if(_0x414df5?.['scope']!==_0x2cd3d4(0x133))return;throw CliErrors[_0x2cd3d4(0x12c)]('Builtin\x20Skill\x20'+(_0x414df5[_0x2cd3d4(0x132)]??_0x2cd3d4(0x125))+'\x20cannot\x20be\x20pushed.',_0x2cd3d4(0x147));}export function throwIfPublishValidationFailed(_0x4f15b5,_0x1aac9e,_0x1d7c2e){const _0x3a5e45=a75_0x1dd4;if(_0x1d7c2e[_0x3a5e45(0x12a)]['length']===0x0&&(_0x1d7c2e['valid']||_0x1d7c2e[_0x3a5e45(0x145)][_0x3a5e45(0x14a)]>0x0))return;const _0x42579c=_0x1d7c2e[_0x3a5e45(0x12a)][_0x3a5e45(0x14a)]>0x0?_0x1d7c2e[_0x3a5e45(0x12a)][_0x3a5e45(0x129)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x342ec1=_0x4f15b5==='company'?_0x3a5e45(0x13d):'Personal';throw CliErrors[_0x3a5e45(0x12c)](_0x342ec1+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x1aac9e+'.',_0x42579c);}export function throwIfUnconfirmedPublishWarnings(_0x32b7f3,_0x19ca27,_0x3f5903,_0x52bf6a){const _0x1a9f3e=a75_0x1dd4;if(_0x3f5903['length']===0x0||_0x52bf6a)return;const _0x553d39=_0x32b7f3===_0x1a9f3e(0x13a)?_0x1a9f3e(0x13d):'Personal';throw CliErrors[_0x1a9f3e(0x12c)](_0x553d39+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x19ca27+'.',[_0x1a9f3e(0x12e),_0x1a9f3e(0x139),_0x1a9f3e(0x12d),'Warnings:\x20'+_0x3f5903[_0x1a9f3e(0x129)](';\x20')][_0x1a9f3e(0x129)]('\x20'));}export function buildRetargetWarning(_0x3e5fda,_0x5a632d){const _0x2d1c03=a75_0x1dd4;if(!_0x3e5fda?.[_0x2d1c03(0x121)]||_0x3e5fda[_0x2d1c03(0x121)]===_0x5a632d)return[];return[{'level':_0x2d1c03(0x122),'ruleId':_0x2d1c03(0x144),'file':_0x2d1c03(0x120),'message':_0x2d1c03(0x148)+_0x3e5fda[_0x2d1c03(0x121)]+_0x2d1c03(0x137)+_0x5a632d+_0x2d1c03(0x134),'suggestion':_0x2d1c03(0x130)}];}export async function runRemoteContentPreflight(_0x643915){const _0x426d59=a75_0x1dd4;if(!_0x643915['remote']||_0x643915['remote'][_0x426d59(0x128)]!==_0x643915[_0x426d59(0x128)]||!_0x643915[_0x426d59(0x13b)]['files'])return{'status':_0x426d59(0x126)};const _0x30baba=_0x643915[_0x426d59(0x131)][_0x426d59(0x132)]||_0x643915[_0x426d59(0x132)];if(!_0x30baba)return{'status':_0x426d59(0x126)};const _0x47141e=await _0x643915[_0x426d59(0x143)](_0x643915[_0x426d59(0x128)],_0x30baba,_0x643915[_0x426d59(0x121)],_0x643915[_0x426d59(0x131)][_0x426d59(0x140)]);try{_0x643915[_0x426d59(0x124)](_0x643915[_0x426d59(0x13b)][_0x426d59(0x13f)],_0x47141e);}catch{return{'status':_0x426d59(0x141)};}return{'status':'identical','savedSkill':{..._0x643915['remote'],'content':_0x643915['publishInput'][_0x426d59(0x149)],'files':_0x643915[_0x426d59(0x13b)][_0x426d59(0x13f)]}};}
1
+ (function(_0x5ac280,_0x30abc6){const _0x1861d1=a75_0x2e22,_0x5565d8=_0x5ac280();while(!![]){try{const _0x2a8731=parseInt(_0x1861d1(0x1fa))/0x1*(-parseInt(_0x1861d1(0x203))/0x2)+-parseInt(_0x1861d1(0x20f))/0x3*(parseInt(_0x1861d1(0x1fc))/0x4)+-parseInt(_0x1861d1(0x217))/0x5*(parseInt(_0x1861d1(0x1f8))/0x6)+-parseInt(_0x1861d1(0x1f3))/0x7+-parseInt(_0x1861d1(0x1ef))/0x8*(-parseInt(_0x1861d1(0x21b))/0x9)+-parseInt(_0x1861d1(0x212))/0xa+parseInt(_0x1861d1(0x202))/0xb;if(_0x2a8731===_0x30abc6)break;else _0x5565d8['push'](_0x5565d8['shift']());}catch(_0x23a2c8){_0x5565d8['push'](_0x5565d8['shift']());}}}(a75_0x8b45,0x61453));import{CliErrors}from'../../errors.js';function a75_0x2e22(_0x34db0e,_0x44f55b){_0x34db0e=_0x34db0e-0x1ec;const _0x8b4546=a75_0x8b45();let _0x2e2273=_0x8b4546[_0x34db0e];return _0x2e2273;}function a75_0x8b45(){const _0x110f7d=['version','1604jBpwmT','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','valid','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Personal','join','21411632BAnVHg','310402OnTVUh','skill-metadata-appcode-retargeted','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','skillCode','warnings','company','files','\x20after\x20successful\x20push.','personal','remote','(unknown)','appCode','1695xWDfzS','not-applicable','lovrabet.skill.json','421220ILbSqR','Company','\x20cannot\x20be\x20pushed.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','warning','10CRuzuO','Review\x20each\x20warning\x20before\x20continuing.','identical','validation','9VLeRqa','downloadRuntimeSkillPackage','Warnings:\x20','errors','523064BrrPiM','content','publishInput','length','2846942sjjujp','Builtin\x20Skill\x20','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','SkillHub\x20validation\x20returned\x20invalid.','scope','2348646uaWFBl','str','1PGHhCF'];a75_0x8b45=function(){return _0x110f7d;};return a75_0x8b45();}export function resolvePushScope(_0x16929d){const _0x321aa3=a75_0x2e22,_0x3bca0a=_0x16929d[_0x321aa3(0x1f9)](_0x321aa3(0x1f7))||_0x321aa3(0x20b);if(_0x3bca0a===_0x321aa3(0x20b)||_0x3bca0a==='company')return _0x3bca0a;throw CliErrors['validation'](_0x321aa3(0x215)+_0x3bca0a+'\x22.');}export function allowRetargetArgs(_0x103e45){return _0x103e45?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x3b3c7c=a75_0x2e22;return{'targetScope':_0x3b3c7c(0x208),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x1083ab={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x1083ab};}export function remotePersonalReadOptions(_0x40ab19,_0x526c39={}){return{'ignoreInvalidMetadata':!![],..._0x40ab19?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x526c39};}export function throwIfBuiltinPushTarget(_0x8c7894){const _0x2a4516=a75_0x2e22;if(_0x8c7894?.['scope']!=='builtin')return;throw CliErrors[_0x2a4516(0x21a)](_0x2a4516(0x1f4)+(_0x8c7894['skillCode']??_0x2a4516(0x20d))+_0x2a4516(0x214),_0x2a4516(0x1f5));}export function throwIfPublishValidationFailed(_0xa18862,_0xd25ae5,_0x330e8e){const _0x3a8661=a75_0x2e22;if(_0x330e8e[_0x3a8661(0x1ee)][_0x3a8661(0x1f2)]===0x0&&(_0x330e8e[_0x3a8661(0x1fe)]||_0x330e8e[_0x3a8661(0x207)][_0x3a8661(0x1f2)]>0x0))return;const _0x183cfd=_0x330e8e[_0x3a8661(0x1ee)][_0x3a8661(0x1f2)]>0x0?_0x330e8e['errors'][_0x3a8661(0x201)](';\x20'):_0x3a8661(0x1f6),_0x1765ac=_0xa18862==='company'?_0x3a8661(0x213):_0x3a8661(0x200);throw CliErrors['validation'](_0x1765ac+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0xd25ae5+'.',_0x183cfd);}export function throwIfUnconfirmedPublishWarnings(_0x2f029d,_0x4b78d7,_0x4e8a3b,_0x3915ac){const _0x4b5ae2=a75_0x2e22;if(_0x4e8a3b[_0x4b5ae2(0x1f2)]===0x0||_0x3915ac)return;const _0x7ed9d9=_0x2f029d===_0x4b5ae2(0x208)?_0x4b5ae2(0x213):_0x4b5ae2(0x200);throw CliErrors[_0x4b5ae2(0x21a)](_0x7ed9d9+_0x4b5ae2(0x205)+_0x4b78d7+'.',[_0x4b5ae2(0x218),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x4b5ae2(0x1fd),_0x4b5ae2(0x1ed)+_0x4e8a3b[_0x4b5ae2(0x201)](';\x20')][_0x4b5ae2(0x201)]('\x20'));}export function buildRetargetWarning(_0x1a86a1,_0x41baa2){const _0x11b698=a75_0x2e22;if(!_0x1a86a1?.[_0x11b698(0x20e)]||_0x1a86a1[_0x11b698(0x20e)]===_0x41baa2)return[];return[{'level':_0x11b698(0x216),'ruleId':_0x11b698(0x204),'file':_0x11b698(0x211),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x1a86a1[_0x11b698(0x20e)]+_0x11b698(0x1ff)+_0x41baa2+_0x11b698(0x20a),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x4f39f1){const _0x510864=a75_0x2e22;if(!_0x4f39f1['remote']||_0x4f39f1[_0x510864(0x20c)][_0x510864(0x1f7)]!==_0x4f39f1[_0x510864(0x1f7)]||!_0x4f39f1['publishInput'][_0x510864(0x209)])return{'status':_0x510864(0x210)};const _0x3827b7=_0x4f39f1['remote'][_0x510864(0x206)]||_0x4f39f1[_0x510864(0x206)];if(!_0x3827b7)return{'status':_0x510864(0x210)};const _0x35c9c9=await _0x4f39f1[_0x510864(0x1ec)](_0x4f39f1[_0x510864(0x1f7)],_0x3827b7,_0x4f39f1[_0x510864(0x20e)],_0x4f39f1[_0x510864(0x20c)][_0x510864(0x1fb)]);try{_0x4f39f1['verifyRuntimeSkillBundle'](_0x4f39f1['publishInput'][_0x510864(0x209)],_0x35c9c9);}catch{return{'status':'different'};}return{'status':_0x510864(0x219),'savedSkill':{..._0x4f39f1[_0x510864(0x20c)],'content':_0x4f39f1[_0x510864(0x1f1)][_0x510864(0x1f0)],'files':_0x4f39f1[_0x510864(0x1f1)][_0x510864(0x209)]}};}
@@ -1 +1 @@
1
- (function(_0x4cedf0,_0x5bdc58){const _0x45e483=a76_0x4866,_0x555ab5=_0x4cedf0();while(!![]){try{const _0x1ea614=parseInt(_0x45e483(0x141))/0x1*(-parseInt(_0x45e483(0x143))/0x2)+-parseInt(_0x45e483(0x139))/0x3+-parseInt(_0x45e483(0x136))/0x4+parseInt(_0x45e483(0x140))/0x5*(-parseInt(_0x45e483(0x13a))/0x6)+-parseInt(_0x45e483(0x145))/0x7+parseInt(_0x45e483(0x135))/0x8*(-parseInt(_0x45e483(0x13f))/0x9)+-parseInt(_0x45e483(0x137))/0xa*(-parseInt(_0x45e483(0x13d))/0xb);if(_0x1ea614===_0x5bdc58)break;else _0x555ab5['push'](_0x555ab5['shift']());}catch(_0x3e3557){_0x555ab5['push'](_0x555ab5['shift']());}}}(a76_0x35bb,0xda2e5));function a76_0x35bb(){const _0x271567=['tags','63351MADRoM','75860MPLjlr','4fnVqJh','Local\x20Skill\x20metadata\x20appCode\x20','63170DRlffD','appCode','4187561YPCDRy','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','version','872vqBbZp','4899192vtpidY','2177200MVOQfA','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','227361CblMjE','6mzsjwT','description','sourceSessionId','187igzQtW'];a76_0x35bb=function(){return _0x271567;};return a76_0x35bb();}export function withRetargetExistingMetadata(_0x3dc098,_0x135540,_0x4759d9={}){const _0x16aaff=a76_0x4866,_0x12618b=_0x4759d9['preferInputSkillName']?_0x3dc098[_0x16aaff(0x133)]??_0x135540[_0x16aaff(0x133)]:_0x135540['skillName']??_0x3dc098['skillName'];return{..._0x3dc098,'skillName':_0x12618b,'description':_0x135540[_0x16aaff(0x13b)]??_0x3dc098[_0x16aaff(0x13b)],'tags':Array['isArray'](_0x135540[_0x16aaff(0x13e)])?_0x135540[_0x16aaff(0x13e)]:_0x3dc098[_0x16aaff(0x13e)],'version':_0x135540[_0x16aaff(0x134)]??_0x3dc098[_0x16aaff(0x134)],'sourceSessionId':_0x135540['sourceSessionId']??_0x3dc098[_0x16aaff(0x13c)]};}function a76_0x4866(_0x5ad3ab,_0x364e9c){_0x5ad3ab=_0x5ad3ab-0x132;const _0x35bbdc=a76_0x35bb();let _0x4866f6=_0x35bbdc[_0x5ad3ab];return _0x4866f6;}export function buildRetargetWarning(_0x4691ea,_0x235d01){const _0x488d0e=a76_0x4866;if(!_0x4691ea?.[_0x488d0e(0x144)]||_0x4691ea[_0x488d0e(0x144)]===_0x235d01)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0x488d0e(0x142)+_0x4691ea[_0x488d0e(0x144)]+_0x488d0e(0x132)+_0x235d01+'\x20after\x20successful\x20push.','suggestion':_0x488d0e(0x138)}];}
1
+ function a76_0x1218(_0x3c46c0,_0x2aa4ae){_0x3c46c0=_0x3c46c0-0xff;const _0x58969a=a76_0x5896();let _0x121806=_0x58969a[_0x3c46c0];return _0x121806;}(function(_0x2a253d,_0x12681e){const _0x555c40=a76_0x1218,_0x4c4b53=_0x2a253d();while(!![]){try{const _0x8df8f4=parseInt(_0x555c40(0x10f))/0x1*(parseInt(_0x555c40(0x100))/0x2)+parseInt(_0x555c40(0x106))/0x3+-parseInt(_0x555c40(0x102))/0x4+-parseInt(_0x555c40(0x115))/0x5*(-parseInt(_0x555c40(0x105))/0x6)+parseInt(_0x555c40(0x10a))/0x7+-parseInt(_0x555c40(0x103))/0x8+parseInt(_0x555c40(0x10b))/0x9*(-parseInt(_0x555c40(0x109))/0xa);if(_0x8df8f4===_0x12681e)break;else _0x4c4b53['push'](_0x4c4b53['shift']());}catch(_0x28bebd){_0x4c4b53['push'](_0x4c4b53['shift']());}}}(a76_0x5896,0x4d7ce));export function withRetargetExistingMetadata(_0x1e8c12,_0xfa372e,_0x2d72dd={}){const _0x8b306f=a76_0x1218,_0x4ca630=_0x2d72dd[_0x8b306f(0x104)]?_0x1e8c12[_0x8b306f(0x10c)]??_0xfa372e[_0x8b306f(0x10c)]:_0xfa372e[_0x8b306f(0x10c)]??_0x1e8c12[_0x8b306f(0x10c)];return{..._0x1e8c12,'skillName':_0x4ca630,'description':_0xfa372e[_0x8b306f(0xff)]??_0x1e8c12[_0x8b306f(0xff)],'tags':Array['isArray'](_0xfa372e[_0x8b306f(0x101)])?_0xfa372e[_0x8b306f(0x101)]:_0x1e8c12[_0x8b306f(0x101)],'version':_0xfa372e[_0x8b306f(0x114)]??_0x1e8c12['version'],'sourceSessionId':_0xfa372e[_0x8b306f(0x10e)]??_0x1e8c12[_0x8b306f(0x10e)]};}function a76_0x5896(){const _0x4bb0cb=['tags','282980Fxxjek','1788496QXGyUa','preferInputSkillName','6xirfAM','1520826oWnhlf','warning','appCode','3293910azempO','1930712oLuSmt','27wRQGDu','skillName','Local\x20Skill\x20metadata\x20appCode\x20','sourceSessionId','49KTbrHK','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','lovrabet.skill.json','skill-metadata-appcode-retargeted','version','2975465gfqWyT','\x20after\x20successful\x20push.','description','9062wdReAw'];a76_0x5896=function(){return _0x4bb0cb;};return a76_0x5896();}export function buildRetargetWarning(_0x1b83ee,_0x52a45a){const _0x47267d=a76_0x1218;if(!_0x1b83ee?.[_0x47267d(0x108)]||_0x1b83ee[_0x47267d(0x108)]===_0x52a45a)return[];return[{'level':_0x47267d(0x107),'ruleId':_0x47267d(0x113),'file':_0x47267d(0x112),'message':_0x47267d(0x10d)+_0x1b83ee['appCode']+_0x47267d(0x111)+_0x52a45a+_0x47267d(0x116),'suggestion':_0x47267d(0x110)}];}
@@ -1 +1 @@
1
- (function(_0x34ce5f,_0x541b66){const _0x2b8afe=a77_0x9256,_0x545eb4=_0x34ce5f();while(!![]){try{const _0x3f43f6=parseInt(_0x2b8afe(0x132))/0x1+-parseInt(_0x2b8afe(0x135))/0x2+parseInt(_0x2b8afe(0x12b))/0x3*(-parseInt(_0x2b8afe(0x138))/0x4)+parseInt(_0x2b8afe(0x12a))/0x5*(parseInt(_0x2b8afe(0x129))/0x6)+parseInt(_0x2b8afe(0x131))/0x7+-parseInt(_0x2b8afe(0x12e))/0x8+-parseInt(_0x2b8afe(0x137))/0x9;if(_0x3f43f6===_0x541b66)break;else _0x545eb4['push'](_0x545eb4['shift']());}catch(_0x4d609b){_0x545eb4['push'](_0x545eb4['shift']());}}}(a77_0x3a71,0x68cb3));import{CliErrors}from'../../errors.js';function a77_0x9256(_0x5b945e,_0x178f28){_0x5b945e=_0x5b945e-0x129;const _0x3a71cd=a77_0x3a71();let _0x92568b=_0x3a71cd[_0x5b945e];return _0x92568b;}export function normalizeSyncScopes(_0x424fdf){const _0x1a8c00=a77_0x9256,_0x54be50=_0x424fdf['trim']();if(!_0x54be50||_0x54be50==='all')return[_0x1a8c00(0x134),_0x1a8c00(0x130)];if(_0x54be50==='personal'||_0x54be50==='company')return[_0x54be50];throw CliErrors[_0x1a8c00(0x133)](_0x1a8c00(0x12f)+_0x424fdf);}export function normalizeListScope(_0x44bee2){const _0x53fd23=a77_0x9256,_0x4bca9e=_0x44bee2[_0x53fd23(0x136)]();if(!_0x4bca9e)return _0x53fd23(0x12d);if(_0x4bca9e===_0x53fd23(0x134)||_0x4bca9e===_0x53fd23(0x130)||_0x4bca9e===_0x53fd23(0x12d))return _0x4bca9e;throw CliErrors[_0x53fd23(0x133)](_0x53fd23(0x12c)+_0x44bee2);}export function shouldListScope(_0x22515a,_0x21fe76){const _0x5b1da3=a77_0x9256;if(_0x22515a===_0x5b1da3(0x12d))return!![];return _0x22515a===_0x21fe76;}export function listScopeToRuntimeScopes(_0x31884f){const _0x17f543=a77_0x9256;if(_0x31884f===_0x17f543(0x12d))return['personal',_0x17f543(0x130)];return[_0x31884f===_0x17f543(0x130)?_0x17f543(0x130):_0x31884f];}function a77_0x3a71(){const _0x20faa0=['314337gyCevb','Unsupported\x20Skill\x20list\x20scope:\x20','all','4512152nuzlPJ','Unsupported\x20Skill\x20sync\x20scope:\x20','company','4158399WLgfzE','757881iypfaj','validation','personal','765810xBWxWC','trim','631548pGZIdR','16tgCXnp','6StUCqT','2567545ztiofR'];a77_0x3a71=function(){return _0x20faa0;};return a77_0x3a71();}export function listScopeToRemoteScope(_0x5a85aa){return _0x5a85aa;}
1
+ (function(_0x4c42a4,_0x16c4d4){const _0x3b786c=a77_0x1f80,_0x34d692=_0x4c42a4();while(!![]){try{const _0x1449b2=-parseInt(_0x3b786c(0x157))/0x1+-parseInt(_0x3b786c(0x150))/0x2*(-parseInt(_0x3b786c(0x149))/0x3)+-parseInt(_0x3b786c(0x156))/0x4*(-parseInt(_0x3b786c(0x153))/0x5)+-parseInt(_0x3b786c(0x155))/0x6*(parseInt(_0x3b786c(0x158))/0x7)+-parseInt(_0x3b786c(0x14e))/0x8+-parseInt(_0x3b786c(0x14b))/0x9+parseInt(_0x3b786c(0x152))/0xa*(parseInt(_0x3b786c(0x148))/0xb);if(_0x1449b2===_0x16c4d4)break;else _0x34d692['push'](_0x34d692['shift']());}catch(_0x3b6090){_0x34d692['push'](_0x34d692['shift']());}}}(a77_0x36c1,0x1d614));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x4d1172){const _0x315e23=a77_0x1f80,_0x5698f0=_0x4d1172[_0x315e23(0x14a)]();if(!_0x5698f0||_0x5698f0===_0x315e23(0x151))return['personal',_0x315e23(0x14d)];if(_0x5698f0===_0x315e23(0x154)||_0x5698f0===_0x315e23(0x14d))return[_0x5698f0];throw CliErrors[_0x315e23(0x14c)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x4d1172);}export function normalizeListScope(_0x2faf0c){const _0x21239b=a77_0x1f80,_0x2a5e1c=_0x2faf0c[_0x21239b(0x14a)]();if(!_0x2a5e1c)return _0x21239b(0x151);if(_0x2a5e1c==='personal'||_0x2a5e1c===_0x21239b(0x14d)||_0x2a5e1c===_0x21239b(0x151))return _0x2a5e1c;throw CliErrors['validation'](_0x21239b(0x14f)+_0x2faf0c);}export function shouldListScope(_0x1107bf,_0x589b91){const _0x407592=a77_0x1f80;if(_0x1107bf===_0x407592(0x151))return!![];return _0x1107bf===_0x589b91;}function a77_0x1f80(_0x56a1b7,_0x58da9b){_0x56a1b7=_0x56a1b7-0x148;const _0x36c1c7=a77_0x36c1();let _0x1f80f4=_0x36c1c7[_0x56a1b7];return _0x1f80f4;}function a77_0x36c1(){const _0x47f5f3=['3SBIqeM','trim','556119ygbKqD','validation','company','1737104pqIFoL','Unsupported\x20Skill\x20list\x20scope:\x20','404802LUJHoX','all','10hgpime','20rsaerx','personal','24TlLwma','136216CTmFIz','149786vaUWWk','162008EjCpIh','3333154gayWpS'];a77_0x36c1=function(){return _0x47f5f3;};return a77_0x36c1();}export function listScopeToRuntimeScopes(_0x25e170){const _0x41b4b0=a77_0x1f80;if(_0x25e170===_0x41b4b0(0x151))return[_0x41b4b0(0x154),_0x41b4b0(0x14d)];return[_0x25e170==='company'?_0x41b4b0(0x14d):_0x25e170];}export function listScopeToRemoteScope(_0x739fcb){return _0x739fcb;}
@@ -1 +1 @@
1
- function a78_0x4eb5(){var _0x3f30cd=['skillName','skillCode','192wUNggf','contentHash','156824bppQva','8fcKLAr','10iOrgoR','pulledAt','treeHash','123450MAzHjZ','4730341ABtNmS','dir','metadataPath','70SSWeuQ','32733iZYYBR','scope','tags','230766QzNmEa','321850GDfzeO','cacheDir','readonly','status','5223RDKjCw','appCode','version'];a78_0x4eb5=function(){return _0x3f30cd;};return a78_0x4eb5();}(function(_0x531574,_0x1ea61b){var _0x437fba=a78_0x2c2b,_0x2e28b7=_0x531574();while(!![]){try{var _0x2c3cdc=parseInt(_0x437fba(0x1af))/0x1+parseInt(_0x437fba(0x1b9))/0x2*(parseInt(_0x437fba(0x1b4))/0x3)+-parseInt(_0x437fba(0x1bb))/0x4*(parseInt(_0x437fba(0x1bd))/0x5)+parseInt(_0x437fba(0x1a7))/0x6*(parseInt(_0x437fba(0x1ab))/0x7)+parseInt(_0x437fba(0x1bc))/0x8*(-parseInt(_0x437fba(0x1ac))/0x9)+parseInt(_0x437fba(0x1b0))/0xa+-parseInt(_0x437fba(0x1a8))/0xb;if(_0x2c3cdc===_0x1ea61b)break;else _0x2e28b7['push'](_0x2e28b7['shift']());}catch(_0x3c5874){_0x2e28b7['push'](_0x2e28b7['shift']());}}}(a78_0x4eb5,0x1e36d));function a78_0x2c2b(_0x1febc9,_0x36241c){_0x1febc9=_0x1febc9-0x1a6;var _0x4eb519=a78_0x4eb5();var _0x2c2b57=_0x4eb519[_0x1febc9];return _0x2c2b57;}export function summarizeRuntimeSkill(_0x371b2c){var _0x2f6019=a78_0x2c2b;return{'id':_0x371b2c['id'],'skillCode':_0x371b2c['skillCode'],'skillName':_0x371b2c[_0x2f6019(0x1b7)],'scope':_0x371b2c[_0x2f6019(0x1ad)],'version':_0x371b2c[_0x2f6019(0x1b6)],'readonly':_0x371b2c[_0x2f6019(0x1b2)]};}export function summarizeLocalRuntimeSkill(_0x268b6d){var _0x47911a=a78_0x2c2b;return{'id':_0x268b6d['id'],'skillCode':_0x268b6d[_0x47911a(0x1b8)],'skillName':_0x268b6d[_0x47911a(0x1b7)],'scope':_0x268b6d[_0x47911a(0x1ad)],'appCode':_0x268b6d[_0x47911a(0x1b5)],'version':_0x268b6d['version'],'status':_0x268b6d[_0x47911a(0x1b3)],'readonly':_0x268b6d[_0x47911a(0x1b2)],'tags':_0x268b6d[_0x47911a(0x1ae)],'dir':_0x268b6d[_0x47911a(0x1a9)],'cacheDir':_0x268b6d[_0x47911a(0x1b1)],'skillMdPath':_0x268b6d['skillMdPath'],'metadataPath':_0x268b6d[_0x47911a(0x1aa)],'linkedPaths':_0x268b6d['linkedPaths'],'contentHash':_0x268b6d[_0x47911a(0x1ba)],'treeHash':_0x268b6d[_0x47911a(0x1a6)],'pulledAt':_0x268b6d[_0x47911a(0x1be)]};}
1
+ (function(_0x27501d,_0x2f6392){var _0x2028d7=a78_0x1f9d,_0x4fbcbc=_0x27501d();while(!![]){try{var _0x4179d6=-parseInt(_0x2028d7(0x199))/0x1+-parseInt(_0x2028d7(0x19d))/0x2+parseInt(_0x2028d7(0x197))/0x3+parseInt(_0x2028d7(0x196))/0x4*(-parseInt(_0x2028d7(0x19b))/0x5)+parseInt(_0x2028d7(0x198))/0x6+parseInt(_0x2028d7(0x193))/0x7+parseInt(_0x2028d7(0x18f))/0x8;if(_0x4179d6===_0x2f6392)break;else _0x4fbcbc['push'](_0x4fbcbc['shift']());}catch(_0x1f274a){_0x4fbcbc['push'](_0x4fbcbc['shift']());}}}(a78_0x5f26,0xdae29));export function summarizeRuntimeSkill(_0xb28da4){var _0x32c460=a78_0x1f9d;return{'id':_0xb28da4['id'],'skillCode':_0xb28da4[_0x32c460(0x19e)],'skillName':_0xb28da4[_0x32c460(0x194)],'scope':_0xb28da4[_0x32c460(0x1a0)],'version':_0xb28da4[_0x32c460(0x195)],'readonly':_0xb28da4['readonly']};}export function summarizeLocalRuntimeSkill(_0x1325a9){var _0x4cc6cd=a78_0x1f9d;return{'id':_0x1325a9['id'],'skillCode':_0x1325a9[_0x4cc6cd(0x19e)],'skillName':_0x1325a9['skillName'],'scope':_0x1325a9['scope'],'appCode':_0x1325a9['appCode'],'version':_0x1325a9[_0x4cc6cd(0x195)],'status':_0x1325a9[_0x4cc6cd(0x192)],'readonly':_0x1325a9[_0x4cc6cd(0x19f)],'tags':_0x1325a9['tags'],'dir':_0x1325a9[_0x4cc6cd(0x19a)],'cacheDir':_0x1325a9[_0x4cc6cd(0x19c)],'skillMdPath':_0x1325a9['skillMdPath'],'metadataPath':_0x1325a9['metadataPath'],'linkedPaths':_0x1325a9['linkedPaths'],'contentHash':_0x1325a9[_0x4cc6cd(0x191)],'treeHash':_0x1325a9[_0x4cc6cd(0x1a1)],'pulledAt':_0x1325a9[_0x4cc6cd(0x190)]};}function a78_0x1f9d(_0x23802f,_0x4e8a2a){_0x23802f=_0x23802f-0x18f;var _0x5f26b3=a78_0x5f26();var _0x1f9de2=_0x5f26b3[_0x23802f];return _0x1f9de2;}function a78_0x5f26(){var _0x5c3eb2=['2262568ybLLhP','skillCode','readonly','scope','treeHash','3736752iwkDNM','pulledAt','contentHash','status','6367312WGmGzq','skillName','version','19752lUmKBX','4842495rrGNUB','2720250dddWxe','507821ZveOSU','dir','920sdvBkG','cacheDir'];a78_0x5f26=function(){return _0x5c3eb2;};return a78_0x5f26();}
@@ -1 +1 @@
1
- const a79_0x27d82d=a79_0x179b;function a79_0x56d6(){const _0xaa5bb0=['timestamp','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','references/output-contract.md','24QIoBdb','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','6366663LCshil','.agents/skills','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','\x0a\x20\x20created:\x20\x22','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','references/runtime-contract.md','validation','includes','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','SKILL.md','\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应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','write','skillName','1698720QxYWai','686252NmOzoD','\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','652410OjbexE','68qWhJrr','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\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=','12024RnDHEz','type','615640AegHNO','trim','\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','toISOString','read','111800jCBikV','#\x20Output\x20Contract\x0a\x0a','join'];a79_0x56d6=function(){return _0xaa5bb0;};return a79_0x56d6();}(function(_0x4eadd7,_0xab9883){const _0x21d639=a79_0x179b,_0x35105f=_0x4eadd7();while(!![]){try{const _0x50940b=-parseInt(_0x21d639(0x100))/0x1*(parseInt(_0x21d639(0xf2))/0x2)+parseInt(_0x21d639(0xee))/0x3+-parseInt(_0x21d639(0xef))/0x4*(-parseInt(_0x21d639(0xf9))/0x5)+parseInt(_0x21d639(0xeb))/0x6+parseInt(_0x21d639(0xec))/0x7+parseInt(_0x21d639(0xf4))/0x8+-parseInt(_0x21d639(0x103))/0x9;if(_0x50940b===_0xab9883)break;else _0x35105f['push'](_0x35105f['shift']());}catch(_0x20c3a9){_0x35105f['push'](_0x35105f['shift']());}}}(a79_0x56d6,0x31ce6));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a79_0x27d82d(0xe9),'read'];export const DEFAULT_SKILL_TARGET=a79_0x27d82d(0x104);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x27d82d(0xe2);export const OUTPUT_CONTRACT_FILE=a79_0x27d82d(0xff);export function validateSkillName(_0x4de3d0){const _0x2fd5fc=a79_0x27d82d,_0x27d16d=_0x4de3d0['trim']();if(!SKILL_NAME_PATTERN['test'](_0x27d16d))throw CliErrors['validation']('Invalid\x20Skill\x20name:\x20'+_0x4de3d0+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x2fd5fc(0xe5));return _0x27d16d;}function a79_0x179b(_0x359f51,_0x58a908){_0x359f51=_0x359f51-0xe1;const _0x56d6a1=a79_0x56d6();let _0x179bc2=_0x56d6a1[_0x359f51];return _0x179bc2;}export function normalizeSkillTemplateType(_0x4c6c51){const _0x1f5b22=a79_0x27d82d,_0x19ca8c=(_0x4c6c51||'write')[_0x1f5b22(0xf5)]()||'write';if(SKILL_TYPES[_0x1f5b22(0xe4)](_0x19ca8c))return _0x19ca8c;throw CliErrors[_0x1f5b22(0xe3)](_0x1f5b22(0x105)+_0x4c6c51,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x1f5b22(0xfb)](',\x20')+'.');}export function renderSkillTemplate(_0x288cca){const _0x567ca0=a79_0x27d82d,_0x3ea992=validateSkillName(_0x288cca[_0x567ca0(0xea)]),_0x3f442e=normalizeSkillTemplateType(_0x288cca[_0x567ca0(0xf3)]),_0x4730d9=_0x288cca[_0x567ca0(0xfc)]??new Date()[_0x567ca0(0xf7)]();return{'skillName':_0x3ea992,'type':_0x3f442e,'files':[{'path':_0x567ca0(0xe6),'content':renderSkillMd(_0x3ea992,_0x3f442e,_0x4730d9)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x3ea992,_0x3f442e)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x3ea992,_0x3f442e)}]};}function renderSkillMd(_0x589b5e,_0xdc16c0,_0x22efc6){const _0x4644cc=a79_0x27d82d,_0x4b5778=typeWorkflow(_0xdc16c0);return'---\x0aname:\x20'+_0x589b5e+_0x4644cc(0xf0)+_0xdc16c0+_0x4644cc(0x107)+_0x22efc6+_0x4644cc(0xfd)+_0x589b5e+_0x4644cc(0xe7)+_0x4b5778+'\x0a\x0a'+businessStateSection(_0xdc16c0)+_0x4644cc(0xed);}function renderRuntimeContract(_0x38b2c2,_0x508885){const _0x3adf68=a79_0x27d82d,_0x53c187=_0x508885===_0x3adf68(0xe9)?_0x3adf68(0x102):'';return _0x3adf68(0x101)+_0x38b2c2+_0x3adf68(0xf1)+_0x508885+'\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a'+_0x53c187+_0x3adf68(0xf6);}function renderOutputContract(_0x54d834,_0x33ed4f){const _0xa4eec=a79_0x27d82d,_0x4c3e4c=_0x33ed4f===_0xa4eec(0xe9)?_0xa4eec(0xfe):_0x33ed4f+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0xa4eec(0xfa)+_0x54d834+_0xa4eec(0x106)+_0x4c3e4c+_0xa4eec(0xe8);}function typeWorkflow(_0x17cac0){const _0x262d11=a79_0x27d82d;if(_0x17cac0===_0x262d11(0xf8))return _0x262d11(0xe1);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x26855d){const _0x38fbc5=a79_0x27d82d;if(_0x26855d!==_0x38fbc5(0xe9))return'';return _0x38fbc5(0x108);}
1
+ const a79_0x70b3b3=a79_0x26ad;(function(_0x307ea9,_0x8d61e9){const _0x2f4759=a79_0x26ad,_0x177088=_0x307ea9();while(!![]){try{const _0x43f4be=-parseInt(_0x2f4759(0xde))/0x1+parseInt(_0x2f4759(0xd4))/0x2+-parseInt(_0x2f4759(0xce))/0x3*(-parseInt(_0x2f4759(0xd7))/0x4)+-parseInt(_0x2f4759(0xd5))/0x5*(parseInt(_0x2f4759(0xe9))/0x6)+-parseInt(_0x2f4759(0xe8))/0x7+parseInt(_0x2f4759(0xd0))/0x8+parseInt(_0x2f4759(0xe4))/0x9*(-parseInt(_0x2f4759(0xdb))/0xa);if(_0x43f4be===_0x8d61e9)break;else _0x177088['push'](_0x177088['shift']());}catch(_0x1812e0){_0x177088['push'](_0x177088['shift']());}}}(a79_0x3ab6,0xbd14b));import{CliErrors}from'../../errors.js';function a79_0x3ab6(){const _0x19e765=['includes','trim','toISOString','6QKFbaz','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','5748096DiDvNZ','\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应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','Use\x20one\x20of:\x20','701128OfcFIn','34175lBvuGa','test','2780760qWPFVl','type','Invalid\x20Skill\x20name:\x20','references/runtime-contract.md','175640dPZvjl','#\x20Output\x20Contract\x0a\x0a','validation','152833rCRMCF','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','---\x0aname:\x20','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','9unSkyx','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','read','join','8496908WdTvWf','264MaTDGA','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','SKILL.md','write','timestamp','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.'];a79_0x3ab6=function(){return _0x19e765;};return a79_0x3ab6();}export const SKILL_TYPES=['write',a79_0x70b3b3(0xe6)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x70b3b3(0xda);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x124829){const _0x4838c0=a79_0x70b3b3,_0x3577cc=_0x124829[_0x4838c0(0xcc)]();if(!SKILL_NAME_PATTERN[_0x4838c0(0xd6)](_0x3577cc))throw CliErrors[_0x4838c0(0xdd)](_0x4838c0(0xd9)+_0x124829+_0x4838c0(0xf2),_0x4838c0(0xea));return _0x3577cc;}export function normalizeSkillTemplateType(_0x52f797){const _0x45f98f=a79_0x70b3b3,_0x12e95d=(_0x52f797||_0x45f98f(0xed))['trim']()||_0x45f98f(0xed);if(SKILL_TYPES[_0x45f98f(0xcb)](_0x12e95d))return _0x12e95d;throw CliErrors[_0x45f98f(0xdd)]('Unsupported\x20Skill\x20type:\x20'+_0x52f797,_0x45f98f(0xd3)+SKILL_TYPES[_0x45f98f(0xe7)](',\x20')+'.');}export function renderSkillTemplate(_0xaf99ef){const _0x3c243f=a79_0x70b3b3,_0x5ba20d=validateSkillName(_0xaf99ef['skillName']),_0x495156=normalizeSkillTemplateType(_0xaf99ef[_0x3c243f(0xd8)]),_0x2b5103=_0xaf99ef[_0x3c243f(0xee)]??new Date()[_0x3c243f(0xcd)]();return{'skillName':_0x5ba20d,'type':_0x495156,'files':[{'path':_0x3c243f(0xec),'content':renderSkillMd(_0x5ba20d,_0x495156,_0x2b5103)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x5ba20d,_0x495156)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x5ba20d,_0x495156)}]};}function renderSkillMd(_0x30d344,_0x2aa722,_0x2ba918){const _0x4e6379=a79_0x70b3b3,_0x20fdbb=typeWorkflow(_0x2aa722);return _0x4e6379(0xe0)+_0x30d344+'\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x2aa722+'\x0a\x20\x20created:\x20\x22'+_0x2ba918+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x30d344+_0x4e6379(0xd1)+_0x20fdbb+'\x0a\x0a'+businessStateSection(_0x2aa722)+'\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(_0x25467f,_0x191c36){const _0x588a4f=a79_0x70b3b3,_0x4d5361=_0x191c36===_0x588a4f(0xed)?_0x588a4f(0xdf):'';return _0x588a4f(0xcf)+_0x25467f+_0x588a4f(0xd2)+_0x191c36+_0x588a4f(0xef)+_0x4d5361+_0x588a4f(0xf1);}function renderOutputContract(_0x2d2ae1,_0x3405bf){const _0x27b57a=a79_0x70b3b3,_0x4a5356=_0x3405bf===_0x27b57a(0xed)?_0x27b57a(0xf0):_0x3405bf+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x27b57a(0xdc)+_0x2d2ae1+_0x27b57a(0xe3)+_0x4a5356+_0x27b57a(0xe5);}function a79_0x26ad(_0x44e694,_0x5b8c6c){_0x44e694=_0x44e694-0xcb;const _0x3ab62d=a79_0x3ab6();let _0x26add6=_0x3ab62d[_0x44e694];return _0x26add6;}function typeWorkflow(_0xf1156b){const _0x522d55=a79_0x70b3b3;if(_0xf1156b==='read')return _0x522d55(0xe2);return _0x522d55(0xe1);}function businessStateSection(_0x1fe3cf){const _0x5c46a2=a79_0x70b3b3;if(_0x1fe3cf!==_0x5c46a2(0xed))return'';return _0x5c46a2(0xeb);}
@@ -1 +1 @@
1
- function a80_0x559c(){const _0x532e4d=['error','description','84060VXelDY','internal','783002okRZpr','line','string','isFile','level','12985173RXFKlY','isSymbolicLink','join','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','schema','validation','filter','push','56825KhDrjC','project','displayName','message','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','example','type','slice','sql','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','boolean','Skill\x20validation\x20failed:\x0a','SKILL.md\x20is\x20not\x20a\x20file.','Frontmatter\x20name\x20is\x20missing.','frontmatter-required','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','SKILL.md','utf8','ruleId','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Frontmatter\x20description\x20is\x20empty.','search','273MOpNoo','\x20Fix:\x20','trim','bff','app','150810hXjPLR','4323828KcVPKy','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','toUpperCase','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','suggestion','flatMap','82JhqNLp','config','structure-complete','55820eOnbsz','Frontmatter\x20displayName\x20is\x20missing.','logs','description-required','warning','has','section','test','artifact','display-name-recommended','2057nIzcRr','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','read','452xBwzFD','raw','8XAqUhK','path','auth','Frontmatter\x20example\x20is\x20missing.','Skill\x20directory\x20not\x20found:\x20','isDirectory','Missing\x20SKILL.md.','write','isArray','workspace','false','length','errors','map','dataset','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','name'];a80_0x559c=function(){return _0x532e4d;};return a80_0x559c();}const a80_0x6d6e20=a80_0x51a9;(function(_0x496426,_0x438282){const _0x359f10=a80_0x51a9,_0x58f267=_0x496426();while(!![]){try{const _0x40966d=-parseInt(_0x359f10(0xf5))/0x1+-parseInt(_0x359f10(0xce))/0x2*(-parseInt(_0x359f10(0xf3))/0x3)+parseInt(_0x359f10(0xde))/0x4*(-parseInt(_0x359f10(0x102))/0x5)+parseInt(_0x359f10(0xc6))/0x6*(-parseInt(_0x359f10(0xc1))/0x7)+parseInt(_0x359f10(0xe0))/0x8*(parseInt(_0x359f10(0xfa))/0x9)+-parseInt(_0x359f10(0xd1))/0xa*(-parseInt(_0x359f10(0xdb))/0xb)+parseInt(_0x359f10(0xc7))/0xc;if(_0x40966d===_0x438282)break;else _0x58f267['push'](_0x58f267['shift']());}catch(_0x361e67){_0x58f267['push'](_0x58f267['shift']());}}}(a80_0x559c,0xe7822));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x278fa1}from'yaml';import{CliErrors}from'../../errors.js';function a80_0x51a9(_0x171c3b,_0x130f14){_0x171c3b=_0x171c3b-0xc0;const _0x559c62=a80_0x559c();let _0x51a9e0=_0x559c62[_0x171c3b];return _0x51a9e0;}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a80_0x6d6e20(0x113),SUPPORTED_SKILL_TYPES=new Set([a80_0x6d6e20(0xe7),a80_0x6d6e20(0xdd)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x31b446,_0x1f6fca={}){const _0x66333d=a80_0x6d6e20,_0xd06b03=resolveSkillDirectoryRoot(_0x31b446),_0x42ba24=[],_0x5bcbb4=loadRequiredSkillFile(_0xd06b03,_0x42ba24),_0x4aa6bb=_0x5bcbb4?parseFrontmatter(_0x5bcbb4['content']):{'hasFrontmatter':![]};_0x5bcbb4&&validateFrontmatter(_0x5bcbb4[_0x66333d(0xe1)],_0x4aa6bb,_0x42ba24);validateRuntimeCliReferences(_0xd06b03,_0x42ba24);const _0x308b30=_0x42ba24[_0x66333d(0x100)](_0x46dbc6=>_0x46dbc6[_0x66333d(0xf9)]==='error'),_0x661b27=_0x42ba24[_0x66333d(0x100)](_0x2c8414=>_0x2c8414[_0x66333d(0xf9)]===_0x66333d(0xd5));return{'ok':_0x308b30[_0x66333d(0xeb)]===0x0,'dir':_0xd06b03,'type':_0x4aa6bb[_0x66333d(0x109)],'errors':_0x308b30,'warnings':_0x661b27};}function resolveSkillDirectoryRoot(_0x75c435){const _0x4c2a93=a80_0x6d6e20,_0x2cd30c=resolve(_0x75c435);if(!existsSync(_0x2cd30c))throw CliErrors[_0x4c2a93(0xff)](_0x4c2a93(0xe4)+_0x75c435);const _0x5ae298=lstatSync(_0x2cd30c);if(_0x5ae298[_0x4c2a93(0xe5)]())return _0x2cd30c;if(_0x5ae298['isSymbolicLink']()){const _0x3521e2=realpathSync(_0x2cd30c);if(lstatSync(_0x3521e2)['isDirectory']())return _0x3521e2;}throw CliErrors[_0x4c2a93(0xff)]('Skill\x20directory\x20not\x20found:\x20'+_0x75c435);}export function throwIfSkillValidationFailed(_0x1c91f1,_0x2ae14b=![]){const _0x317586=a80_0x6d6e20;if(_0x1c91f1['ok'])return;const _0x370b42=_0x1c91f1[_0x317586(0xec)][_0x317586(0xed)](_0x47c902=>{const _0x899c10=_0x317586,_0x1f120b=_0x47c902[_0x899c10(0xd7)]?'#'+_0x47c902[_0x899c10(0xd7)]:'';return _0x47c902[_0x899c10(0xf9)][_0x899c10(0xc9)]()+'\x20'+_0x47c902[_0x899c10(0x115)]+'\x20'+_0x47c902['file']+_0x1f120b+':\x20'+_0x47c902[_0x899c10(0x105)]+_0x899c10(0xc2)+_0x47c902[_0x899c10(0xcc)];});throw CliErrors[_0x317586(0xff)](_0x317586(0x10e)+_0x370b42[_0x317586(0xfc)]('\x0a'),_0x317586(0xef));}function loadRequiredSkillFile(_0x3d167c,_0x1e23d8){const _0x2d8ef8=a80_0x6d6e20,_0x43bd10=resolve(_0x3d167c,SKILL_FILE);if(!existsSync(_0x43bd10))return _0x1e23d8[_0x2d8ef8(0x101)](issue(_0x2d8ef8(0xf1),_0x2d8ef8(0xd0),SKILL_FILE,_0x2d8ef8(0xe6),_0x2d8ef8(0x106))),undefined;const _0x2f433f=lstatSync(_0x43bd10);if(_0x2f433f[_0x2d8ef8(0xfb)]())return _0x1e23d8['push'](issue(_0x2d8ef8(0xf1),_0x2d8ef8(0xd0),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x2d8ef8(0x112))),undefined;if(!_0x2f433f[_0x2d8ef8(0xf8)]())return _0x1e23d8[_0x2d8ef8(0x101)](issue(_0x2d8ef8(0xf1),'structure-complete',SKILL_FILE,_0x2d8ef8(0x10f),_0x2d8ef8(0x10c))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x43bd10,_0x2d8ef8(0x114))};}function validateFrontmatter(_0x52a15c,_0x59cd6f,_0x47a35b){const _0x356970=a80_0x6d6e20;if(!_0x59cd6f['hasFrontmatter']){_0x47a35b['push'](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x356970(0xca)));return;}!_0x59cd6f[_0x356970(0xf0)]?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,_0x356970(0x110),_0x356970(0xcb))),!_0x59cd6f[_0x356970(0x104)]?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xd5),_0x356970(0xda),_0x52a15c,_0x356970(0xd2),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x59cd6f['example']?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xd5),'example-recommended',_0x52a15c,_0x356970(0xe3),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x59cd6f['description']?.['trim']()&&_0x47a35b['push'](issue(_0x356970(0xf1),_0x356970(0xd4),_0x52a15c,_0x356970(0x117),_0x356970(0xc8))),_0x59cd6f[_0x356970(0xf4)]===!![]&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),'internal-skill',_0x52a15c,_0x356970(0x116),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x59cd6f['type']?.[_0x356970(0xc3)]()&&!SUPPORTED_SKILL_TYPES[_0x356970(0xd6)](_0x59cd6f['type'])&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,_0x356970(0xdc),_0x356970(0x107)));}function validateRuntimeCliReferences(_0x23f76e,_0x5e87de){const _0x1914f6=a80_0x6d6e20;for(const _0x54a93e of findRabetbaseCliInvocations(_0x23f76e)){_0x5e87de[_0x1914f6(0x101)](issue(_0x1914f6(0xd5),'rabetbase-cli-reference',_0x54a93e['file'],_0x1914f6(0xfd),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x54a93e[_0x1914f6(0xf6)]));}}function findRabetbaseCliInvocations(_0x354e65){const _0x5e52ce=a80_0x6d6e20;return scanSkillDirectory(_0x354e65)[_0x5e52ce(0x100)](_0x2395fd=>TEXT_SKILL_FILE_PATTERN['test'](_0x2395fd[_0x5e52ce(0xe1)]))[_0x5e52ce(0xcd)](_0x1a9d64=>{const _0x16fbed=_0x5e52ce,_0x1399f8=fileText(_0x1a9d64);return _0x1399f8['split'](/\r?\n/)[_0x16fbed(0xed)]((_0x7d2373,_0x19ad37)=>({'file':_0x1a9d64[_0x16fbed(0xe1)],'line':_0x19ad37+0x1,'text':_0x7d2373}))[_0x16fbed(0x100)](({text:_0x3da55d})=>isRabetbaseCliInvocation(_0x3da55d))[_0x16fbed(0xed)](({file:_0x183303,line:_0x1c83ec})=>({'file':_0x183303,'line':_0x1c83ec}));});}const RABETBASE_SUBCOMMANDS=[a80_0x6d6e20(0xee),a80_0x6d6e20(0x10b),a80_0x6d6e20(0xc4),'page',a80_0x6d6e20(0x103),a80_0x6d6e20(0xc5),a80_0x6d6e20(0xfe),'service',a80_0x6d6e20(0xd9),'kb',a80_0x6d6e20(0xcf),a80_0x6d6e20(0xe9),'data',a80_0x6d6e20(0xe2),a80_0x6d6e20(0xd3),'registry'],RABETBASE_INVOCATION=new RegExp(String[a80_0x6d6e20(0xdf)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x6d6e20(0xfc)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x337099){const _0x418193=a80_0x6d6e20,_0x4d2340=_0x337099[_0x418193(0xc0)](/\brabetbase\b/i);if(_0x4d2340<0x0)return![];const _0x51b67f=_0x337099[_0x418193(0x10a)](_0x4d2340)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x418193(0xd8)](_0x51b67f);}function parseFrontmatter(_0x1a7dd3){const _0x2459f0=a80_0x6d6e20,_0x293951=_0x1a7dd3['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x293951)return{'hasFrontmatter':![]};const _0x442573=_0x293951[0x1]??'',_0x3e3cbf={'hasFrontmatter':!![]};let _0x7ebb2b;try{_0x7ebb2b=a80_0x278fa1(_0x442573);}catch{return _0x3e3cbf;}const _0x491b4b=asRecord(_0x7ebb2b);if(!_0x491b4b)return _0x3e3cbf;_0x3e3cbf[_0x2459f0(0xf0)]=scalarToString(_0x491b4b[_0x2459f0(0xf0)]),_0x3e3cbf['displayName']=scalarToString(_0x491b4b[_0x2459f0(0x104)]),_0x3e3cbf[_0x2459f0(0xf2)]=scalarToString(_0x491b4b['description']),_0x3e3cbf[_0x2459f0(0x108)]=scalarToString(_0x491b4b[_0x2459f0(0x108)]);const _0x2cba93=asRecord(_0x491b4b['metadata']);return _0x2cba93&&(_0x3e3cbf['type']=scalarToString(_0x2cba93[_0x2459f0(0x109)]),_0x3e3cbf['internal']=scalarToBoolean(_0x2cba93['internal'])),_0x3e3cbf;}function asRecord(_0xab8d77){const _0x201908=a80_0x6d6e20;if(_0xab8d77&&typeof _0xab8d77==='object'&&!Array[_0x201908(0xe8)](_0xab8d77))return _0xab8d77;return undefined;}function scalarToString(_0x4ef1d8){const _0xbfe8f7=a80_0x6d6e20;if(typeof _0x4ef1d8===_0xbfe8f7(0xf7))return _0x4ef1d8[_0xbfe8f7(0xc3)]();if(typeof _0x4ef1d8==='number'||typeof _0x4ef1d8==='boolean')return String(_0x4ef1d8);return undefined;}function scalarToBoolean(_0x1f02d6){const _0x3b4e11=a80_0x6d6e20;if(typeof _0x1f02d6===_0x3b4e11(0x10d))return _0x1f02d6;if(typeof _0x1f02d6===_0x3b4e11(0xf7))return cleanBoolean(_0x1f02d6);return undefined;}function cleanBoolean(_0x5aab54){const _0x46414d=a80_0x6d6e20,_0x38abf2=_0x5aab54['trim']()['toLowerCase']();if(_0x38abf2==='true')return!![];if(_0x38abf2===_0x46414d(0xea))return![];return undefined;}function issue(_0x50decb,_0x397366,_0x1b87bc,_0x124917,_0x5271df,_0x4e0f91){return{'level':_0x50decb,'ruleId':_0x397366,'file':_0x1b87bc,'section':_0x4e0f91,'message':_0x124917,'suggestion':_0x5271df};}
1
+ const a80_0x59aab2=a80_0x1072;function a80_0x1072(_0x580d7a,_0x1a8df2){_0x580d7a=_0x580d7a-0x94;const _0x3e8b52=a80_0x3e8b();let _0x1072ac=_0x3e8b52[_0x580d7a];return _0x1072ac;}function a80_0x3e8b(){const _0x73b671=['raw','error','object','8oBuDYG','Set\x20metadata.type\x20to\x20write\x20or\x20read.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','boolean','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','split','level','filter','config','description','frontmatter-required','join','has','content','Frontmatter\x20example\x20is\x20missing.','structure-complete','write','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Frontmatter\x20name\x20is\x20missing.','read','Skill\x20validation\x20failed:\x0a','artifact','3716910yhsKGp','page','247450JAAcIu','toLowerCase','workspace','example-recommended','dataset','test','errors','section','message','length','\x20Fix:\x20','auth','schema','ruleId','slice','2437600CaCtBY','SKILL.md\x20is\x20not\x20a\x20file.','Frontmatter\x20description\x20is\x20empty.','warning','Frontmatter\x20displayName\x20is\x20missing.','push','utf8','project','registry','flatMap','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','869426nxnMaR','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','logs','Missing\x20SKILL.md.','isFile','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','SKILL.md','match','path','displayName','SKILL.md\x20must\x20start\x20with\x20frontmatter.','hasFrontmatter','number','validation','684327KZPLrW','true','metadata','type','internal','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','747567sHgqiM','name','isDirectory','66LulWZs','description-required','search','isSymbolicLink','4onGJLH','Skill\x20directory\x20not\x20found:\x20','trim','23434170PsczLC','internal-skill','file','Add\x20frontmatter\x20with\x20name\x20and\x20description.','map'];a80_0x3e8b=function(){return _0x73b671;};return a80_0x3e8b();}(function(_0x3727fa,_0x35d5ae){const _0x1d4cfb=a80_0x1072,_0x101117=_0x3727fa();while(!![]){try{const _0x3601f9=-parseInt(_0x1d4cfb(0x9f))/0x1+parseInt(_0x1d4cfb(0xde))/0x2+-parseInt(_0x1d4cfb(0xb4))/0x3*(-parseInt(_0x1d4cfb(0xbb))/0x4)+-parseInt(_0x1d4cfb(0x94))/0x5+parseInt(_0x1d4cfb(0xb7))/0x6*(-parseInt(_0x1d4cfb(0xae))/0x7)+parseInt(_0x1d4cfb(0xc6))/0x8*(parseInt(_0x1d4cfb(0xdc))/0x9)+parseInt(_0x1d4cfb(0xbe))/0xa;if(_0x3601f9===_0x35d5ae)break;else _0x101117['push'](_0x101117['shift']());}catch(_0x1e2839){_0x101117['push'](_0x101117['shift']());}}}(a80_0x3e8b,0xaa2ac));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x5a44fa}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a80_0x59aab2(0xa6),SUPPORTED_SKILL_TYPES=new Set([a80_0x59aab2(0xd6),a80_0x59aab2(0xd9)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2fd423,_0x4eb7f1={}){const _0x415580=a80_0x59aab2,_0x48fd40=resolveSkillDirectoryRoot(_0x2fd423),_0x494f7a=[],_0x443777=loadRequiredSkillFile(_0x48fd40,_0x494f7a),_0x393b52=_0x443777?parseFrontmatter(_0x443777[_0x415580(0xd3)]):{'hasFrontmatter':![]};_0x443777&&validateFrontmatter(_0x443777[_0x415580(0xa8)],_0x393b52,_0x494f7a);validateRuntimeCliReferences(_0x48fd40,_0x494f7a);const _0x4473a5=_0x494f7a['filter'](_0x5ce42d=>_0x5ce42d[_0x415580(0xcc)]==='error'),_0x150e17=_0x494f7a[_0x415580(0xcd)](_0x3c4041=>_0x3c4041[_0x415580(0xcc)]===_0x415580(0x97));return{'ok':_0x4473a5[_0x415580(0xe7)]===0x0,'dir':_0x48fd40,'type':_0x393b52['type'],'errors':_0x4473a5,'warnings':_0x150e17};}function resolveSkillDirectoryRoot(_0x1e8df5){const _0x66e3e2=a80_0x59aab2,_0x4fec9c=resolve(_0x1e8df5);if(!existsSync(_0x4fec9c))throw CliErrors[_0x66e3e2(0xad)](_0x66e3e2(0xbc)+_0x1e8df5);const _0x5ac47a=lstatSync(_0x4fec9c);if(_0x5ac47a[_0x66e3e2(0xb6)]())return _0x4fec9c;if(_0x5ac47a['isSymbolicLink']()){const _0xa6ab59=realpathSync(_0x4fec9c);if(lstatSync(_0xa6ab59)[_0x66e3e2(0xb6)]())return _0xa6ab59;}throw CliErrors['validation'](_0x66e3e2(0xbc)+_0x1e8df5);}export function throwIfSkillValidationFailed(_0x25fe12,_0x1e6321=![]){const _0x226631=a80_0x59aab2;if(_0x25fe12['ok'])return;const _0x35f45b=_0x25fe12[_0x226631(0xe4)][_0x226631(0xc2)](_0x239756=>{const _0x1bc7a7=_0x226631,_0x427ed6=_0x239756[_0x1bc7a7(0xe5)]?'#'+_0x239756[_0x1bc7a7(0xe5)]:'';return _0x239756[_0x1bc7a7(0xcc)]['toUpperCase']()+'\x20'+_0x239756[_0x1bc7a7(0xeb)]+'\x20'+_0x239756[_0x1bc7a7(0xc0)]+_0x427ed6+':\x20'+_0x239756[_0x1bc7a7(0xe6)]+_0x1bc7a7(0xe8)+_0x239756['suggestion'];});throw CliErrors[_0x226631(0xad)](_0x226631(0xda)+_0x35f45b[_0x226631(0xd1)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x4fa9b5,_0xbdac3b){const _0x5a253a=a80_0x59aab2,_0x1506d5=resolve(_0x4fa9b5,SKILL_FILE);if(!existsSync(_0x1506d5))return _0xbdac3b[_0x5a253a(0x99)](issue(_0x5a253a(0xc4),_0x5a253a(0xd5),SKILL_FILE,_0x5a253a(0xa3),_0x5a253a(0xa1))),undefined;const _0x48ed2e=lstatSync(_0x1506d5);if(_0x48ed2e[_0x5a253a(0xba)]())return _0xbdac3b[_0x5a253a(0x99)](issue(_0x5a253a(0xc4),_0x5a253a(0xd5),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x5a253a(0xd7))),undefined;if(!_0x48ed2e[_0x5a253a(0xa4)]())return _0xbdac3b[_0x5a253a(0x99)](issue(_0x5a253a(0xc4),_0x5a253a(0xd5),SKILL_FILE,_0x5a253a(0x95),_0x5a253a(0x9e))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1506d5,_0x5a253a(0x9a))};}function validateFrontmatter(_0xb7bf05,_0x4fe01b,_0x39d03c){const _0x5ec276=a80_0x59aab2;if(!_0x4fe01b[_0x5ec276(0xab)]){_0x39d03c[_0x5ec276(0x99)](issue('error','frontmatter-required',_0xb7bf05,_0x5ec276(0xaa),_0x5ec276(0xc1)));return;}!_0x4fe01b[_0x5ec276(0xb5)]?.[_0x5ec276(0xbd)]()&&_0x39d03c[_0x5ec276(0x99)](issue(_0x5ec276(0xc4),_0x5ec276(0xd0),_0xb7bf05,_0x5ec276(0xd8),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x4fe01b[_0x5ec276(0xa9)]?.[_0x5ec276(0xbd)]()&&_0x39d03c[_0x5ec276(0x99)](issue(_0x5ec276(0x97),'display-name-recommended',_0xb7bf05,_0x5ec276(0x98),_0x5ec276(0xc8))),!_0x4fe01b['example']?.['trim']()&&_0x39d03c[_0x5ec276(0x99)](issue(_0x5ec276(0x97),_0x5ec276(0xe1),_0xb7bf05,_0x5ec276(0xd4),_0x5ec276(0xa0))),!_0x4fe01b[_0x5ec276(0xcf)]?.['trim']()&&_0x39d03c[_0x5ec276(0x99)](issue(_0x5ec276(0xc4),_0x5ec276(0xb8),_0xb7bf05,_0x5ec276(0x96),_0x5ec276(0xca))),_0x4fe01b[_0x5ec276(0xb2)]===!![]&&_0x39d03c['push'](issue(_0x5ec276(0xc4),_0x5ec276(0xbf),_0xb7bf05,_0x5ec276(0xb3),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x4fe01b['type']?.[_0x5ec276(0xbd)]()&&!SUPPORTED_SKILL_TYPES[_0x5ec276(0xd2)](_0x4fe01b[_0x5ec276(0xb1)])&&_0x39d03c[_0x5ec276(0x99)](issue('error',_0x5ec276(0xd0),_0xb7bf05,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x5ec276(0xc7)));}function validateRuntimeCliReferences(_0x17af3d,_0x5c7b25){const _0x1ff3f8=a80_0x59aab2;for(const _0x3c8cad of findRabetbaseCliInvocations(_0x17af3d)){_0x5c7b25[_0x1ff3f8(0x99)](issue(_0x1ff3f8(0x97),'rabetbase-cli-reference',_0x3c8cad[_0x1ff3f8(0xc0)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x1ff3f8(0xa5),'L'+_0x3c8cad['line']));}}function findRabetbaseCliInvocations(_0x13521c){const _0x1ff8cd=a80_0x59aab2;return scanSkillDirectory(_0x13521c)[_0x1ff8cd(0xcd)](_0x245ad9=>TEXT_SKILL_FILE_PATTERN['test'](_0x245ad9[_0x1ff8cd(0xa8)]))[_0x1ff8cd(0x9d)](_0x3b10cc=>{const _0x473d0d=_0x1ff8cd,_0x4aa47a=fileText(_0x3b10cc);return _0x4aa47a['split'](/\r?\n/)[_0x473d0d(0xc2)]((_0xe3694c,_0x15a2fd)=>({'file':_0x3b10cc['path'],'line':_0x15a2fd+0x1,'text':_0xe3694c}))[_0x473d0d(0xcd)](({text:_0x22c7bf})=>isRabetbaseCliInvocation(_0x22c7bf))['map'](({file:_0x8f90dc,line:_0x223758})=>({'file':_0x8f90dc,'line':_0x223758}));});}const RABETBASE_SUBCOMMANDS=[a80_0x59aab2(0xe2),'sql','bff',a80_0x59aab2(0xdd),a80_0x59aab2(0x9b),'app',a80_0x59aab2(0xea),'service',a80_0x59aab2(0xdb),'kb',a80_0x59aab2(0xce),a80_0x59aab2(0xe0),'data',a80_0x59aab2(0xe9),a80_0x59aab2(0xa2),a80_0x59aab2(0x9c)],RABETBASE_INVOCATION=new RegExp(String[a80_0x59aab2(0xc3)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x59aab2(0xd1)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x4b0e05){const _0x34f982=a80_0x59aab2,_0x183588=_0x4b0e05[_0x34f982(0xb9)](/\brabetbase\b/i);if(_0x183588<0x0)return![];const _0x52a435=_0x4b0e05[_0x34f982(0xec)](_0x183588)[_0x34f982(0xcb)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x34f982(0xe3)](_0x52a435);}function parseFrontmatter(_0x260c59){const _0x1f79fd=a80_0x59aab2,_0xd5b001=_0x260c59[_0x1f79fd(0xa7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xd5b001)return{'hasFrontmatter':![]};const _0x590beb=_0xd5b001[0x1]??'',_0x3245b8={'hasFrontmatter':!![]};let _0x5ced8d;try{_0x5ced8d=a80_0x5a44fa(_0x590beb);}catch{return _0x3245b8;}const _0x4597ac=asRecord(_0x5ced8d);if(!_0x4597ac)return _0x3245b8;_0x3245b8[_0x1f79fd(0xb5)]=scalarToString(_0x4597ac[_0x1f79fd(0xb5)]),_0x3245b8['displayName']=scalarToString(_0x4597ac['displayName']),_0x3245b8['description']=scalarToString(_0x4597ac[_0x1f79fd(0xcf)]),_0x3245b8['example']=scalarToString(_0x4597ac['example']);const _0xa9646c=asRecord(_0x4597ac[_0x1f79fd(0xb0)]);return _0xa9646c&&(_0x3245b8[_0x1f79fd(0xb1)]=scalarToString(_0xa9646c[_0x1f79fd(0xb1)]),_0x3245b8['internal']=scalarToBoolean(_0xa9646c[_0x1f79fd(0xb2)])),_0x3245b8;}function asRecord(_0x51ee92){const _0x3f2028=a80_0x59aab2;if(_0x51ee92&&typeof _0x51ee92===_0x3f2028(0xc5)&&!Array['isArray'](_0x51ee92))return _0x51ee92;return undefined;}function scalarToString(_0x4ccaed){const _0x560b18=a80_0x59aab2;if(typeof _0x4ccaed==='string')return _0x4ccaed[_0x560b18(0xbd)]();if(typeof _0x4ccaed===_0x560b18(0xac)||typeof _0x4ccaed===_0x560b18(0xc9))return String(_0x4ccaed);return undefined;}function scalarToBoolean(_0x3c64dd){const _0x8cfc55=a80_0x59aab2;if(typeof _0x3c64dd===_0x8cfc55(0xc9))return _0x3c64dd;if(typeof _0x3c64dd==='string')return cleanBoolean(_0x3c64dd);return undefined;}function cleanBoolean(_0x21985b){const _0x13c4cc=a80_0x59aab2,_0x3bef6e=_0x21985b[_0x13c4cc(0xbd)]()[_0x13c4cc(0xdf)]();if(_0x3bef6e===_0x13c4cc(0xaf))return!![];if(_0x3bef6e==='false')return![];return undefined;}function issue(_0x3970ff,_0x5a714b,_0x4fc89a,_0x5e471c,_0x497f79,_0x1e659a){return{'level':_0x3970ff,'ruleId':_0x5a714b,'file':_0x4fc89a,'section':_0x1e659a,'message':_0x5e471c,'suggestion':_0x497f79};}
@@ -1 +1 @@
1
- const a81_0x51db30=a81_0x5b37;(function(_0x18c125,_0x260b8e){const _0x40f2cc=a81_0x5b37,_0x1e0bbd=_0x18c125();while(!![]){try{const _0x29fa89=-parseInt(_0x40f2cc(0x137))/0x1*(-parseInt(_0x40f2cc(0x13b))/0x2)+parseInt(_0x40f2cc(0x13a))/0x3+-parseInt(_0x40f2cc(0x12e))/0x4+parseInt(_0x40f2cc(0x133))/0x5*(-parseInt(_0x40f2cc(0x138))/0x6)+-parseInt(_0x40f2cc(0x139))/0x7*(parseInt(_0x40f2cc(0x13f))/0x8)+parseInt(_0x40f2cc(0x135))/0x9+parseInt(_0x40f2cc(0x12f))/0xa;if(_0x29fa89===_0x260b8e)break;else _0x1e0bbd['push'](_0x1e0bbd['shift']());}catch(_0x4e3ad2){_0x1e0bbd['push'](_0x1e0bbd['shift']());}}}(a81_0x5848,0xd2593));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a81_0x5b37(_0x5cf6ac,_0x45a01f){_0x5cf6ac=_0x5cf6ac-0x12c;const _0x58480f=a81_0x5848();let _0x5b374e=_0x58480f[_0x5cf6ac];return _0x5b374e;}export const sqlDetail={'service':'sql','command':a81_0x51db30(0x136),'description':a81_0x51db30(0x12c),'risk':a81_0x51db30(0x13d),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x1db79f){const _0x6f68cc=a81_0x51db30,_0x124ca2=await getSqlQueryInfo(_0x1db79f['appCode'],_0x1db79f[_0x6f68cc(0x131)]('sqlcode')),_0x151c93=_0x1db79f[_0x6f68cc(0x140)](_0x6f68cc(0x132));if(_0x151c93)return{'ok':!![],'data':_0x124ca2};const _0xe7a7eb=_0x124ca2['dbId']?await getDbName(_0x1db79f[_0x6f68cc(0x130)],_0x124ca2['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x124ca2[_0x6f68cc(0x12d)],'sqlName':_0x124ca2[_0x6f68cc(0x13c)],'db':_0xe7a7eb?_0xe7a7eb+'\x20('+_0x124ca2['dbId']+')':_0x124ca2[_0x6f68cc(0x134)]??'','sqlContent':_0x124ca2[_0x6f68cc(0x13e)]??''}};}};function a81_0x5848(){const _0x3eb881=['93570UXRkWv','28QdlIlM','4557450VapXJK','52HoAUzi','sqlName','read','sqlContent','3153248cxIjVH','bool','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlCode','2155416IyjjZv','24825250UsnAIp','appCode','str','verbose','545LgpgLS','dbId','4311675EHDmsB','detail','7545pJAwVM'];a81_0x5848=function(){return _0x3eb881;};return a81_0x5848();}
1
+ function a81_0xf7cd(_0x4ec39d,_0x536c6a){_0x4ec39d=_0x4ec39d-0x137;const _0x2bf3fe=a81_0x2bf3();let _0xf7cd2d=_0x2bf3fe[_0x4ec39d];return _0xf7cd2d;}const a81_0x5c5ae0=a81_0xf7cd;(function(_0x85ab54,_0x21bb7b){const _0x2a0550=a81_0xf7cd,_0x231a49=_0x85ab54();while(!![]){try{const _0x5752d5=-parseInt(_0x2a0550(0x140))/0x1+parseInt(_0x2a0550(0x138))/0x2*(-parseInt(_0x2a0550(0x13d))/0x3)+parseInt(_0x2a0550(0x141))/0x4+parseInt(_0x2a0550(0x13b))/0x5*(parseInt(_0x2a0550(0x144))/0x6)+parseInt(_0x2a0550(0x13f))/0x7+-parseInt(_0x2a0550(0x147))/0x8*(parseInt(_0x2a0550(0x137))/0x9)+-parseInt(_0x2a0550(0x13a))/0xa*(-parseInt(_0x2a0550(0x14a))/0xb);if(_0x5752d5===_0x21bb7b)break;else _0x231a49['push'](_0x231a49['shift']());}catch(_0x11258d){_0x231a49['push'](_0x231a49['shift']());}}}(a81_0x2bf3,0x969af));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a81_0x5c5ae0(0x13c),'command':'detail','description':a81_0x5c5ae0(0x148),'risk':a81_0x5c5ae0(0x13e),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x371758){const _0x123860=a81_0x5c5ae0,_0x3f582b=await getSqlQueryInfo(_0x371758[_0x123860(0x149)],_0x371758[_0x123860(0x145)](_0x123860(0x14b))),_0x4c202a=_0x371758[_0x123860(0x146)](_0x123860(0x139));if(_0x4c202a)return{'ok':!![],'data':_0x3f582b};const _0x3eb9a6=_0x3f582b[_0x123860(0x143)]?await getDbName(_0x371758[_0x123860(0x149)],_0x3f582b[_0x123860(0x143)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x3f582b[_0x123860(0x142)],'sqlName':_0x3f582b['sqlName'],'db':_0x3eb9a6?_0x3eb9a6+'\x20('+_0x3f582b['dbId']+')':_0x3f582b[_0x123860(0x143)]??'','sqlContent':_0x3f582b['sqlContent']??''}};}};function a81_0x2bf3(){const _0x1d60ac=['appCode','693BNEAmw','sqlcode','311877WcMSjs','12CysVWu','verbose','218070lRRuoJ','59475RAKrMe','sql','401091oSSLfc','read','2479169IWYmyi','768541vxTRXo','1329768hsYBJV','sqlCode','dbId','606yUbtie','str','bool','248AdfdqB','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a81_0x2bf3=function(){return _0x1d60ac;};return a81_0x2bf3();}
@@ -1 +1 @@
1
- const a82_0x406b1a=a82_0x4947;function a82_0x9197(){const _0x3c70ad=['5NFOhPQ','now','518106YhPBwd','execError','Returned\x20','9LbTCUT','exec','8621448qHLyCl','isArray','str','read','3wGGCwJ','\x20row(s)\x20in\x20','5343968vfWCfD','9710BqKGhh','4322880TBNLDd','execResult','length','sqlcode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1085996ICfkvV','SQL\x20execution\x20failed','929147lVGOFE','12837lkfZhR'];a82_0x9197=function(){return _0x3c70ad;};return a82_0x9197();}(function(_0x9128c3,_0x5f55f5){const _0x5c07ce=a82_0x4947,_0x3cc557=_0x9128c3();while(!![]){try{const _0x2cf9c9=parseInt(_0x5c07ce(0x1a9))/0x1+-parseInt(_0x5c07ce(0x1ad))/0x2*(-parseInt(_0x5c07ce(0x1b6))/0x3)+parseInt(_0x5c07ce(0x1a7))/0x4*(parseInt(_0x5c07ce(0x1ab))/0x5)+parseInt(_0x5c07ce(0x1ba))/0x6+parseInt(_0x5c07ce(0x1b8))/0x7+parseInt(_0x5c07ce(0x1b2))/0x8*(-parseInt(_0x5c07ce(0x1b0))/0x9)+-parseInt(_0x5c07ce(0x1b9))/0xa*(parseInt(_0x5c07ce(0x1aa))/0xb);if(_0x2cf9c9===_0x5f55f5)break;else _0x3cc557['push'](_0x3cc557['shift']());}catch(_0x402d70){_0x3cc557['push'](_0x3cc557['shift']());}}}(a82_0x9197,0xb2e5d));import{executeSdkSql}from'../../core/sdk-client.js';function a82_0x4947(_0x5d8bbe,_0x3fc21e){_0x5d8bbe=_0x5d8bbe-0x1a6;const _0x9197ec=a82_0x9197();let _0x4947c4=_0x9197ec[_0x5d8bbe];return _0x4947c4;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a82_0x406b1a(0x1b1),'description':a82_0x406b1a(0x1a6),'risk':a82_0x406b1a(0x1b5),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5d506b){const _0x1bb3b9=a82_0x406b1a,_0x68b1d4=parseJsonParams(_0x5d506b['str']('params')),_0x5d6db4=Date[_0x1bb3b9(0x1ac)](),_0x4697d0=await executeSdkSql(_0x5d506b[_0x1bb3b9(0x1b4)](_0x1bb3b9(0x1bd)),_0x68b1d4),_0x560388=Date[_0x1bb3b9(0x1ac)]()-_0x5d6db4,_0x151c17=_0x4697d0?.[_0x1bb3b9(0x1bb)]??_0x4697d0,_0x229aff=_0x4697d0?.['execSuccess']??!![];if(!_0x229aff)return{'ok':![],'data':{'error':_0x4697d0?.[_0x1bb3b9(0x1ae)]||_0x1bb3b9(0x1a8),'elapsed':_0x560388},'message':_0x1bb3b9(0x1a8)};const _0x3390a4=Array[_0x1bb3b9(0x1b3)](_0x151c17)?_0x151c17:[];return{'ok':!![],'data':{'rows':_0x3390a4,'rowCount':_0x3390a4['length'],'elapsed':_0x560388},'message':_0x1bb3b9(0x1af)+_0x3390a4[_0x1bb3b9(0x1bc)]+_0x1bb3b9(0x1b7)+_0x560388+'ms'};}};
1
+ function a82_0x5045(_0xb01937,_0x56c788){_0xb01937=_0xb01937-0x1b7;const _0x5c05c0=a82_0x5c05();let _0x50457e=_0x5c05c0[_0xb01937];return _0x50457e;}const a82_0x34657d=a82_0x5045;(function(_0x4eafbd,_0x4f0289){const _0x4d7082=a82_0x5045,_0x1c59e3=_0x4eafbd();while(!![]){try{const _0x2f08ff=parseInt(_0x4d7082(0x1b7))/0x1+-parseInt(_0x4d7082(0x1c4))/0x2+-parseInt(_0x4d7082(0x1c6))/0x3*(-parseInt(_0x4d7082(0x1bf))/0x4)+parseInt(_0x4d7082(0x1b9))/0x5*(-parseInt(_0x4d7082(0x1cc))/0x6)+-parseInt(_0x4d7082(0x1be))/0x7*(-parseInt(_0x4d7082(0x1ce))/0x8)+-parseInt(_0x4d7082(0x1bd))/0x9*(-parseInt(_0x4d7082(0x1bc))/0xa)+parseInt(_0x4d7082(0x1ca))/0xb;if(_0x2f08ff===_0x4f0289)break;else _0x1c59e3['push'](_0x1c59e3['shift']());}catch(_0x2bd9f8){_0x1c59e3['push'](_0x1c59e3['shift']());}}}(a82_0x5c05,0x3ffda));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a82_0x5c05(){const _0x30e946=['788472ZUGIBB','286549VxFUol','exec','175xdsveo','now','SQL\x20execution\x20failed','461060WoTIEM','36LHlWvA','28NfLzbe','8LEkypx','length','\x20row(s)\x20in\x20','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execError','711884NXsUCq','str','185187xNCbRx','isArray','Returned\x20','read','1603096ujjEiR','sqlcode','88518NVbpxa','params'];a82_0x5c05=function(){return _0x30e946;};return a82_0x5c05();}export const sqlExec={'service':'sql','command':a82_0x34657d(0x1b8),'description':a82_0x34657d(0x1c2),'risk':a82_0x34657d(0x1c9),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x38b1ad){const _0xaf26fd=a82_0x34657d,_0x3f79a7=parseJsonParams(_0x38b1ad[_0xaf26fd(0x1c5)](_0xaf26fd(0x1cd))),_0x4c32e2=Date[_0xaf26fd(0x1ba)](),_0x106e92=await executeSdkSql(_0x38b1ad[_0xaf26fd(0x1c5)](_0xaf26fd(0x1cb)),_0x3f79a7),_0x2a7354=Date[_0xaf26fd(0x1ba)]()-_0x4c32e2,_0x513e3f=_0x106e92?.['execResult']??_0x106e92,_0x307722=_0x106e92?.['execSuccess']??!![];if(!_0x307722)return{'ok':![],'data':{'error':_0x106e92?.[_0xaf26fd(0x1c3)]||_0xaf26fd(0x1bb),'elapsed':_0x2a7354},'message':_0xaf26fd(0x1bb)};const _0x5bb2aa=Array[_0xaf26fd(0x1c7)](_0x513e3f)?_0x513e3f:[];return{'ok':!![],'data':{'rows':_0x5bb2aa,'rowCount':_0x5bb2aa[_0xaf26fd(0x1c0)],'elapsed':_0x2a7354},'message':_0xaf26fd(0x1c8)+_0x5bb2aa[_0xaf26fd(0x1c0)]+_0xaf26fd(0x1c1)+_0x2a7354+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3d7936,_0x2a513d){const _0x1383cd=a83_0x5d82,_0x13217c=_0x3d7936();while(!![]){try{const _0x3d209c=parseInt(_0x1383cd(0x19c))/0x1*(-parseInt(_0x1383cd(0x1a0))/0x2)+parseInt(_0x1383cd(0x19d))/0x3*(-parseInt(_0x1383cd(0x19b))/0x4)+-parseInt(_0x1383cd(0x1a1))/0x5+-parseInt(_0x1383cd(0x19a))/0x6+-parseInt(_0x1383cd(0x19f))/0x7+parseInt(_0x1383cd(0x19e))/0x8+parseInt(_0x1383cd(0x199))/0x9;if(_0x3d209c===_0x2a513d)break;else _0x13217c['push'](_0x13217c['shift']());}catch(_0x5cb813){_0x13217c['push'](_0x13217c['shift']());}}}(a83_0x2482,0xaaa11));import{sqlDetail}from'../../commands/sql/detail.js';function a83_0x2482(){const _0x2b51ce=['1217916aRncMZ','22ccPKuj','5714935npMkhp','29448540gZoHIi','7976388UmSkiR','328fWGxYz','27901lzkjnR','27621sVuJRW','9080760bJatVN'];a83_0x2482=function(){return _0x2b51ce;};return a83_0x2482();}function a83_0x5d82(_0x13b65f,_0xc88441){_0x13b65f=_0x13b65f-0x199;const _0x248207=a83_0x2482();let _0x5d821b=_0x248207[_0x13b65f];return _0x5d821b;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x5b6352,_0x56851c){const _0x2b7d85=a83_0xd637,_0x3d068f=_0x5b6352();while(!![]){try{const _0x558d4e=parseInt(_0x2b7d85(0x136))/0x1*(parseInt(_0x2b7d85(0x12d))/0x2)+-parseInt(_0x2b7d85(0x12c))/0x3*(parseInt(_0x2b7d85(0x134))/0x4)+parseInt(_0x2b7d85(0x131))/0x5*(-parseInt(_0x2b7d85(0x12e))/0x6)+-parseInt(_0x2b7d85(0x135))/0x7+parseInt(_0x2b7d85(0x133))/0x8+-parseInt(_0x2b7d85(0x130))/0x9+-parseInt(_0x2b7d85(0x12f))/0xa*(-parseInt(_0x2b7d85(0x132))/0xb);if(_0x558d4e===_0x56851c)break;else _0x3d068f['push'](_0x3d068f['shift']());}catch(_0x336533){_0x3d068f['push'](_0x3d068f['shift']());}}}(a83_0x29bc,0x68fde));function a83_0x29bc(){const _0x476a97=['17511sZVsdG','1551cUZowA','8pVRQuw','6lTLCVj','200MwrFYU','813555iqoFKc','3708595vtOVXS','519332IpHgMX','3595576LQWyHC','428QmvLYT','1023764RgcmKW'];a83_0x29bc=function(){return _0x476a97;};return a83_0x29bc();}function a83_0xd637(_0x1632f9,_0x140f1b){_0x1632f9=_0x1632f9-0x12c;const _0x29bc29=a83_0x29bc();let _0xd63719=_0x29bc29[_0x1632f9];return _0xd63719;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];