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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x93667a=a67_0x92ed;(function(_0x387352,_0x4a7491){const _0x222004=a67_0x92ed,_0x1f8f0d=_0x387352();while(!![]){try{const _0x2b43a5=-parseInt(_0x222004(0x1a9))/0x1+parseInt(_0x222004(0x1a8))/0x2+-parseInt(_0x222004(0x1b6))/0x3*(parseInt(_0x222004(0x1c5))/0x4)+parseInt(_0x222004(0x1aa))/0x5+-parseInt(_0x222004(0x1bd))/0x6+parseInt(_0x222004(0x1b3))/0x7*(-parseInt(_0x222004(0x1ae))/0x8)+parseInt(_0x222004(0x1bb))/0x9*(parseInt(_0x222004(0x1c0))/0xa);if(_0x2b43a5===_0x4a7491)break;else _0x1f8f0d['push'](_0x1f8f0d['shift']());}catch(_0x400817){_0x1f8f0d['push'](_0x1f8f0d['shift']());}}}(a67_0x3bde,0xb2098));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';function a67_0x92ed(_0x363097,_0x28101b){_0x363097=_0x363097-0x1a6;const _0x3bdebc=a67_0x3bde();let _0x92ed1b=_0x3bdebc[_0x363097];return _0x92ed1b;}function a67_0x3bde(){const _0x20b305=['personal','../../../skills/runtime-skill-sync.js','builtin','authRequired','116ECWFHf','production','../../../core/api-client.js','1468436YOfwiy','335114EeiEEZ','2176960fJHwJh','Listed\x20','company','length','85656OxxWQT','local','skill','scope','\x20remote\x20Skill(s).','819IGaIFd','str','read','128571UxRhkw','map','envName','filter','trim','31976793wbONQg','bool','6975966rnUVIz','appCode','project','10oJmuJz'];a67_0x3bde=function(){return _0x20b305;};return a67_0x3bde();}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a67_0x93667a(0x1b0),'command':'list','description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a67_0x93667a(0x1b5),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x456f9b){const _0x296c02=a67_0x93667a,_0x4c7aa5=_0x456f9b[_0x296c02(0x1b4)]('code'),_0x484c43=normalizeListScope(_0x456f9b[_0x296c02(0x1b4)]('scope'));if(_0x456f9b[_0x296c02(0x1bc)](_0x296c02(0x1af))){const _0xb35c38=_0x456f9b['accessKey'];if(!_0xb35c38)throw CliErrors[_0x296c02(0x1c4)]();const {listLocalRuntimeSkills:_0x4fb81f,resolveRuntimeSkillInstallTarget:_0x58fa0f}=await import(_0x296c02(0x1c2)),_0x3471a9=_0x58fa0f(_0x456f9b[_0x296c02(0x1be)],_0x456f9b['bool']('project')?_0x296c02(0x1bf):'global'),_0x35dd94=_0x4fb81f({'env':_0x456f9b[_0x296c02(0x1b8)]??_0x296c02(0x1a6),'accessKey':_0xb35c38,'appCode':_0x456f9b[_0x296c02(0x1be)],'scopes':listScopeToRuntimeScopes(_0x484c43),'code':_0x4c7aa5[_0x296c02(0x1ba)]()||undefined},_0x3471a9),_0x343714=groupLocalRuntimeSkills(_0x35dd94);return{'ok':!![],'data':{'appCode':_0x456f9b[_0x296c02(0x1be)],'source':_0x296c02(0x1af),..._0x3471a9['scope']===_0x296c02(0x1bf)?{'installScope':_0x3471a9[_0x296c02(0x1b1)]}:{},'scope':_0x484c43,'total':_0x35dd94[_0x296c02(0x1ad)],'personal':_0x343714[_0x296c02(0x1c1)]['length'],'company':_0x343714['company'][_0x296c02(0x1ad)],'items':_0x35dd94[_0x296c02(0x1b7)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x343714[_0x296c02(0x1c1)][_0x296c02(0x1b7)](summarizeLocalRuntimeSkill),'company':_0x343714[_0x296c02(0x1ac)][_0x296c02(0x1b7)](summarizeLocalRuntimeSkill)}},'message':_0x296c02(0x1ab)+_0x35dd94[_0x296c02(0x1ad)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x12c0b1}=await import(_0x296c02(0x1a7)),_0x41dc71=await _0x12c0b1({'appCode':_0x456f9b['appCode'],'scope':listScopeToRemoteScope(_0x484c43),'code':_0x4c7aa5[_0x296c02(0x1ba)]()||undefined}),_0x238124=shouldListScope(_0x484c43,_0x296c02(0x1c1))?_0x41dc71[_0x296c02(0x1c1)]??[]:[],_0x4a6171=shouldListScope(_0x484c43,'company')?_0x41dc71[_0x296c02(0x1ac)]??[]:[],_0x3555a1=[..._0x238124,..._0x4a6171];return{'ok':!![],'data':{'appCode':_0x456f9b[_0x296c02(0x1be)],'source':'remote','scope':_0x484c43,'total':_0x3555a1[_0x296c02(0x1ad)],'personal':_0x238124[_0x296c02(0x1ad)],'company':_0x4a6171['length'],'items':_0x3555a1[_0x296c02(0x1b7)](summarizeRuntimeSkill),'skills':{'personal':_0x238124[_0x296c02(0x1b7)](summarizeRuntimeSkill),'company':_0x4a6171[_0x296c02(0x1b7)](summarizeRuntimeSkill)}},'message':_0x296c02(0x1ab)+_0x3555a1['length']+_0x296c02(0x1b2)};}};function groupLocalRuntimeSkills(_0x56212b){const _0x4fda00=a67_0x93667a;return{'personal':_0x56212b[_0x4fda00(0x1b9)](_0x460e6c=>_0x460e6c[_0x4fda00(0x1b1)]===_0x4fda00(0x1c1)),'company':_0x56212b['filter'](_0x4b98b3=>_0x4b98b3[_0x4fda00(0x1b1)]==='company'),'builtin':_0x56212b[_0x4fda00(0x1b9)](_0x1c9e77=>_0x1c9e77['scope']===_0x4fda00(0x1c3))};}
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 +1 @@
1
- function a68_0x265c(_0x3e7dec,_0x3b592a){_0x3e7dec=_0x3e7dec-0x135;const _0x500a61=a68_0x500a();let _0x265c59=_0x500a61[_0x3e7dec];return _0x265c59;}const a68_0xccefd7=a68_0x265c;(function(_0x4d1f10,_0x4255cd){const _0x5f389c=a68_0x265c,_0x511521=_0x4d1f10();while(!![]){try{const _0x25fb76=parseInt(_0x5f389c(0x13e))/0x1+-parseInt(_0x5f389c(0x138))/0x2+parseInt(_0x5f389c(0x13f))/0x3*(-parseInt(_0x5f389c(0x140))/0x4)+-parseInt(_0x5f389c(0x13c))/0x5*(-parseInt(_0x5f389c(0x139))/0x6)+parseInt(_0x5f389c(0x13d))/0x7*(parseInt(_0x5f389c(0x135))/0x8)+-parseInt(_0x5f389c(0x13a))/0x9+parseInt(_0x5f389c(0x136))/0xa;if(_0x25fb76===_0x4255cd)break;else _0x511521['push'](_0x511521['shift']());}catch(_0x3c9af4){_0x511521['push'](_0x511521['shift']());}}}(a68_0x500a,0x3c74d));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a68_0x500a(){const _0x3d68ba=['239008xPSMpf','240JvMwre','2652912fTSivc','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','5930BlDXhV','77nKWhvR','193805WyeAqJ','579ghkZpK','6056uGhaOE','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.','push','45800ryDzjO','6498830DnyjJL','skill'];a68_0x500a=function(){return _0x3d68ba;};return a68_0x500a();}export const pushCommand={'service':a68_0xccefd7(0x137),'command':a68_0xccefd7(0x142),'description':a68_0xccefd7(0x13b),'risk':'write','confirmationDescription':a68_0xccefd7(0x141),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
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 +1 @@
1
- const a69_0xa70716=a69_0x7c06;function a69_0x253e(){const _0x5c9321=['3677180pGDvBP','99sAJtjD','9wgLWwF','skill','bool','292566XFukwS','138MLmuum','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','202250tJlUMp','337336RzRTcA','warnings','1745370JqwzCc','str','13388yNQozg','validate','dir','102361pcjoBZ','2sgEPkr'];a69_0x253e=function(){return _0x5c9321;};return a69_0x253e();}(function(_0x1e466d,_0x5421e6){const _0x25f486=a69_0x7c06,_0x1670cd=_0x1e466d();while(!![]){try{const _0x33fec8=parseInt(_0x25f486(0xd6))/0x1*(parseInt(_0x25f486(0xca))/0x2)+parseInt(_0x25f486(0xd8))/0x3*(-parseInt(_0x25f486(0xd2))/0x4)+-parseInt(_0x25f486(0xcd))/0x5+-parseInt(_0x25f486(0xcb))/0x6*(parseInt(_0x25f486(0xd5))/0x7)+-parseInt(_0x25f486(0xce))/0x8*(parseInt(_0x25f486(0xd9))/0x9)+parseInt(_0x25f486(0xd7))/0xa+parseInt(_0x25f486(0xd0))/0xb;if(_0x33fec8===_0x5421e6)break;else _0x1670cd['push'](_0x1670cd['shift']());}catch(_0x51736b){_0x1670cd['push'](_0x1670cd['shift']());}}}(a69_0x253e,0x46b15));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a69_0x7c06(_0x2af7f3,_0x58b725){_0x2af7f3=_0x2af7f3-0xc8;const _0x253e7d=a69_0x253e();let _0x7c062d=_0x253e7d[_0x2af7f3];return _0x7c062d;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0xa70716(0xc8),'command':a69_0xa70716(0xd3),'description':a69_0xa70716(0xcc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x3d52fb){const _0x2bfd67=a69_0xa70716,_0x4b57b7=_0x3d52fb[_0x2bfd67(0xc9)]('strict'),_0x43f260=validateSkillDirectory(_0x3d52fb[_0x2bfd67(0xd1)](_0x2bfd67(0xd4)),{'strict':_0x4b57b7});return throwIfSkillValidationFailed(_0x43f260,_0x4b57b7),{'ok':!![],'data':{'dir':_0x43f260['dir'],'type':_0x43f260['type'],'errors':_0x43f260['errors'],'warnings':_0x43f260[_0x2bfd67(0xcf)]},'message':'Skill\x20validation\x20passed.'};}};
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 +1 @@
1
- (function(_0xb8b5d,_0x29463e){const _0x171e2f=a70_0x3aec,_0x3f09f1=_0xb8b5d();while(!![]){try{const _0x8dd469=parseInt(_0x171e2f(0x13a))/0x1*(-parseInt(_0x171e2f(0x143))/0x2)+-parseInt(_0x171e2f(0x147))/0x3+-parseInt(_0x171e2f(0x144))/0x4*(-parseInt(_0x171e2f(0x13b))/0x5)+parseInt(_0x171e2f(0x13f))/0x6+parseInt(_0x171e2f(0x145))/0x7+parseInt(_0x171e2f(0x139))/0x8+-parseInt(_0x171e2f(0x135))/0x9;if(_0x8dd469===_0x29463e)break;else _0x3f09f1['push'](_0x3f09f1['shift']());}catch(_0x5c0d63){_0x3f09f1['push'](_0x3f09f1['shift']());}}}(a70_0x325a,0x5c42e));function a70_0x3aec(_0xb4351f,_0x9b0e83){_0xb4351f=_0xb4351f-0x132;const _0x325ad9=a70_0x325a();let _0x3aec4e=_0x325ad9[_0xb4351f];return _0x3aec4e;}function a70_0x325a(){const _0x9dc81a=['mermaid','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','diagram','validation','utf8','835002rzamYZ','Mermaid\x20syntax\x20validation\x20failed.','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','2005704tMFCZJ','387208UFZOXa','65jobKgs','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','trim','isFile','1608054VqoiuM','window','replace','defineProperties','2kJWLig','148956gyBxPA','379183rFZpIX','default','597330hvkgOl','document'];a70_0x325a=function(){return _0x9dc81a;};return a70_0x325a();}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x29485c){const _0x5baf71=a70_0x3aec;return(await readRequiredSkillDiagramInput(_0x29485c))[_0x5baf71(0x132)];}export async function readRequiredSkillDiagramInput(_0x37d2cd){const _0xb940df=a70_0x3aec,_0x3169d4=_0x37d2cd[_0xb940df(0x13d)]();if(!_0x3169d4)throw CliErrors[_0xb940df(0x133)](_0xb940df(0x13c),_0xb940df(0x14a));let _0x5c7383,_0x4d0c81;if(_0x3169d4==='-')try{_0x5c7383=readFileSync(0x0,_0xb940df(0x134));}catch{throw CliErrors[_0xb940df(0x133)](_0xb940df(0x138));}else{const _0x41b5a0=resolve(_0x3169d4);if(!existsSync(_0x41b5a0))throw CliErrors[_0xb940df(0x133)](_0xb940df(0x137)+_0x41b5a0);if(!statSync(_0x41b5a0)[_0xb940df(0x13e)]())throw CliErrors[_0xb940df(0x133)](_0xb940df(0x14b)+_0x41b5a0);_0x4d0c81=realpathSync(_0x41b5a0),_0x5c7383=readFileSync(_0x4d0c81,_0xb940df(0x134));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x5c7383)},'sourceFilePath':_0x4d0c81};}export async function validateAndCanonicalizeMermaid(_0x235c5e){const _0x2354fd=a70_0x3aec,_0x309be9=_0x235c5e[_0x2354fd(0x141)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x2354fd(0x141)](/\n+$/,'')+'\x0a';try{const _0xfad40f=await loadMermaidApi();await _0xfad40f['parse'](_0x309be9);}catch{throw diagramValidationError();}return _0x309be9;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x2a77d0=a70_0x3aec;if(!(_0x2a77d0(0x140)in globalThis)||!(_0x2a77d0(0x148)in globalThis)){const _0xb4efc=new JSDOM('');Object[_0x2a77d0(0x142)](globalThis,{'window':{'configurable':!![],'value':_0xb4efc['window']},'document':{'configurable':!![],'value':_0xb4efc['window']['document']}});}return(await import(_0x2a77d0(0x149)))[_0x2a77d0(0x146)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x3f5aa6=a70_0x3aec;return CliErrors['validation'](_0x3f5aa6(0x136),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
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 +1 @@
1
- const a71_0x126e66=a71_0x5e3e;(function(_0x4fff3a,_0x26ca80){const _0x2ba477=a71_0x5e3e,_0x2a1645=_0x4fff3a();while(!![]){try{const _0x47644b=parseInt(_0x2ba477(0x7d))/0x1+parseInt(_0x2ba477(0x8e))/0x2+-parseInt(_0x2ba477(0x7f))/0x3+parseInt(_0x2ba477(0x78))/0x4*(-parseInt(_0x2ba477(0x96))/0x5)+parseInt(_0x2ba477(0x9c))/0x6*(-parseInt(_0x2ba477(0x8f))/0x7)+-parseInt(_0x2ba477(0x95))/0x8*(parseInt(_0x2ba477(0x90))/0x9)+-parseInt(_0x2ba477(0x84))/0xa*(-parseInt(_0x2ba477(0x8a))/0xb);if(_0x47644b===_0x26ca80)break;else _0x2a1645['push'](_0x2a1645['shift']());}catch(_0x317fd4){_0x2a1645['push'](_0x2a1645['shift']());}}}(a71_0x5306,0x91a96));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x126e66(0x97),'type':'string','description':a71_0x126e66(0x7e)};export const SCOPE_FLAG={'name':a71_0x126e66(0x89),'type':a71_0x126e66(0x9d),'description':a71_0x126e66(0x7a),'enum':[a71_0x126e66(0x80),a71_0x126e66(0x9e),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x126e66(0x89),'type':a71_0x126e66(0x9d),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a71_0x126e66(0x9e),'enum':[a71_0x126e66(0x9e),a71_0x126e66(0x92)]};function a71_0x5e3e(_0x322ad7,_0x57338b){_0x322ad7=_0x322ad7-0x77;const _0x53065f=a71_0x5306();let _0x5e3e3c=_0x53065f[_0x322ad7];return _0x5e3e3c;}export const LIST_SCOPE_FLAG={'name':a71_0x126e66(0x89),'type':'string','description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a71_0x126e66(0x80),a71_0x126e66(0x9e),a71_0x126e66(0x92)]};export const LOCAL_FLAG={'name':a71_0x126e66(0x9a),'type':'boolean','description':a71_0x126e66(0x93)};export const DIR_FLAG={'name':a71_0x126e66(0x9b),'type':a71_0x126e66(0x9d),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a71_0x126e66(0x9d),'required':!![],'description':a71_0x126e66(0x8b)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x126e66(0x8d),'type':a71_0x126e66(0x9d),'required':!![],'description':a71_0x126e66(0x83)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x126e66(0x7c),'type':a71_0x126e66(0x9d),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x126e66(0x89),'type':a71_0x126e66(0x9d),'required':!![],'enum':[a71_0x126e66(0x9e),'company'],'description':a71_0x126e66(0x77)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x126e66(0x98),'type':a71_0x126e66(0x9d),'required':!![],'description':a71_0x126e66(0x87),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x126e66(0x91)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x126e66(0x85),'type':'number','required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a71_0x126e66(0x8c),'type':a71_0x126e66(0x9d),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x126e66(0x94)}};export const TYPE_FLAG={'name':'type','type':a71_0x126e66(0x9d),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x126e66(0x81),'type':'string','description':a71_0x126e66(0x7b),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x126e66(0x79),'type':'boolean','description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0x126e66(0x86),'description':a71_0x126e66(0x99)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x126e66(0x82),'type':'boolean','description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};function a71_0x5306(){const _0x41f6b0=['695700FQtBsm','expected-diagram-revision','boolean','Server-reported\x20SkillVersion\x20source\x20fingerprint','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','scope','396DBCpML','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','name','skill-code','881524yqmDIw','89593JbzQtq','207diKAum','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','97456tepbNv','65LSxYhn','code','source-fingerprint','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','local','dir','282hLoeet','string','personal','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','358260SKHxVM','force','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','version','67367XxkPyQ','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1109805wLzXoV','all','target','confirm-warnings','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'];a71_0x5306=function(){return _0x41f6b0;};return a71_0x5306();}export const STRICT_FLAG={'name':'strict','type':a71_0x126e66(0x86),'description':a71_0x126e66(0x88)};
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 +1 @@
1
- (function(_0x1373f9,_0x122ffb){const _0x45a965=a72_0x47d3,_0x5f4a85=_0x1373f9();while(!![]){try{const _0xf3d172=-parseInt(_0x45a965(0xcd))/0x1*(parseInt(_0x45a965(0xd0))/0x2)+parseInt(_0x45a965(0xd1))/0x3*(parseInt(_0x45a965(0xc8))/0x4)+parseInt(_0x45a965(0xcf))/0x5+-parseInt(_0x45a965(0xca))/0x6+-parseInt(_0x45a965(0xce))/0x7+-parseInt(_0x45a965(0xc9))/0x8+-parseInt(_0x45a965(0xcc))/0x9*(-parseInt(_0x45a965(0xcb))/0xa);if(_0xf3d172===_0x122ffb)break;else _0x5f4a85['push'](_0x5f4a85['shift']());}catch(_0x2e4872){_0x5f4a85['push'](_0x5f4a85['shift']());}}}(a72_0x3acb,0x2a0c8));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0x3acb(){const _0x50f075=['357930joiBNw','8vsYOhz','2439912kCQJnc','1024476MlILQn','6520LYPGOf','5391poVJlY','19bktWzD','275030OWYIgr','343930eyBLJT','1126MycBxn'];a72_0x3acb=function(){return _0x50f075;};return a72_0x3acb();}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';function a72_0x47d3(_0x53418c,_0x4f569a){_0x53418c=_0x53418c-0xc8;const _0x3acb2e=a72_0x3acb();let _0x47d3ae=_0x3acb2e[_0x53418c];return _0x47d3ae;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
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 +1 @@
1
- (function(_0x443db5,_0x443a23){var _0x4df7ed=a73_0x484d,_0xea3511=_0x443db5();while(!![]){try{var _0x4aae77=parseInt(_0x4df7ed(0x15a))/0x1*(-parseInt(_0x4df7ed(0x158))/0x2)+parseInt(_0x4df7ed(0x150))/0x3*(parseInt(_0x4df7ed(0x159))/0x4)+parseInt(_0x4df7ed(0x14b))/0x5*(-parseInt(_0x4df7ed(0x14d))/0x6)+-parseInt(_0x4df7ed(0x14a))/0x7*(-parseInt(_0x4df7ed(0x145))/0x8)+-parseInt(_0x4df7ed(0x148))/0x9*(parseInt(_0x4df7ed(0x154))/0xa)+parseInt(_0x4df7ed(0x151))/0xb+parseInt(_0x4df7ed(0x153))/0xc*(-parseInt(_0x4df7ed(0x146))/0xd);if(_0x4aae77===_0x443a23)break;else _0xea3511['push'](_0xea3511['shift']());}catch(_0x24a6a9){_0xea3511['push'](_0xea3511['shift']());}}}(a73_0x28e0,0x81562));export function isPackageBackedManifest(_0x23aa6c){var _0x2baff3=a73_0x484d;return!!_0x23aa6c&&typeof _0x23aa6c===_0x2baff3(0x155)&&!Array[_0x2baff3(0x14e)](_0x23aa6c)&&typeof _0x23aa6c['ossPath']===_0x2baff3(0x14f)&&_0x23aa6c[_0x2baff3(0x157)][_0x2baff3(0x156)]>0x0&&Array[_0x2baff3(0x14e)](_0x23aa6c['files']);}function a73_0x28e0(){var _0x4ea9dd=['1679684FvlQhk','2LuvQHa','8CjGVXF','7869095YaORkQ','files','27MILtSY','path','3351495zsIzBa','50qKDcSI','some','65166HXWdpj','isArray','string','3MbnqTL','6995340pOfjBa','SKILL.md','12VuyECt','15790HsdmVa','object','length','ossPath','286222MMzblB'];a73_0x28e0=function(){return _0x4ea9dd;};return a73_0x28e0();}function a73_0x484d(_0x3915d8,_0x328df2){_0x3915d8=_0x3915d8-0x145;var _0x28e03b=a73_0x28e0();var _0x484de1=_0x28e03b[_0x3915d8];return _0x484de1;}export function isMultiFileManifest(_0x5c8047){var _0x368a71=a73_0x484d;return!!_0x5c8047&&typeof _0x5c8047===_0x368a71(0x155)&&!Array[_0x368a71(0x14e)](_0x5c8047)&&Array['isArray'](_0x5c8047[_0x368a71(0x147)])&&_0x5c8047[_0x368a71(0x147)][_0x368a71(0x14c)](_0xf15b00=>_0xf15b00[_0x368a71(0x149)]!==_0x368a71(0x152));}
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 +1 @@
1
- (function(_0x5dcfef,_0x1a0269){const _0x4d35ed=a74_0x2a20,_0x57a10b=_0x5dcfef();while(!![]){try{const _0x4862c2=parseInt(_0x4d35ed(0x156))/0x1*(-parseInt(_0x4d35ed(0x155))/0x2)+parseInt(_0x4d35ed(0x144))/0x3+parseInt(_0x4d35ed(0x139))/0x4+-parseInt(_0x4d35ed(0x14d))/0x5+parseInt(_0x4d35ed(0x15b))/0x6*(-parseInt(_0x4d35ed(0x143))/0x7)+-parseInt(_0x4d35ed(0x12a))/0x8*(parseInt(_0x4d35ed(0x160))/0x9)+-parseInt(_0x4d35ed(0x13d))/0xa*(-parseInt(_0x4d35ed(0x14b))/0xb);if(_0x4862c2===_0x1a0269)break;else _0x57a10b['push'](_0x57a10b['shift']());}catch(_0x3cdc8f){_0x57a10b['push'](_0x57a10b['shift']());}}}(a74_0x5df6,0x80850));function a74_0x5df6(){const _0x4f559b=['../../core/api-client.js','version','\x20Skill\x20','14886938fgDhdv','scope','2860475nQcvTJ','str','resolvedSlug','publishInput','/publish/validate','dir','remoteForPreflight','savedSkill','18610jLzsRN','33XOFeQb','status','diagramValidated','validation','\x20version\x20','6sRUXIH','authRequired','personal','bool','unknown','9445878TmSOAj','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','NAMESPACE_ONLY','\x20has\x20scope=\x22','errors','accessKey','Submitted\x20company\x20Skill\x20','resolvedVersion','company','skillCode','8GtMJVx','Created\x20personal\x20Skill\x20','warnings','confirmWarnings','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','PRIVATE','existing','POST','trim','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','files','diagram-file','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','identical','/api/cli/v1/skills/','3859724NTiDbp','appcode','Company','../../skills/runtime-skill-sync.js','10hebxHf','Personal','frontmatterDisplayName','input','payload','submitted','5504198typlSG','2769429MvQqyk','confirm-warnings','Updated\x20personal\x20Skill\x20','appCode'];a74_0x5df6=function(){return _0x4f559b;};return a74_0x5df6();}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';function a74_0x2a20(_0x1ed73d,_0x3a42ef){_0x1ed73d=_0x1ed73d-0x129;const _0x5df642=a74_0x5df6();let _0x2a203d=_0x5df642[_0x1ed73d];return _0x2a203d;}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x358401){const _0x2ec847=a74_0x2a20,{getRuntimeSkillByCode:_0x383cc9,validateRuntimeSkillPublish:_0xa14a44}=await import(_0x2ec847(0x148)),{readPushDirectory:_0x2bba44,resolvePushDirectoryIdentity:_0x21173b}=await import(_0x2ec847(0x13c));if(!_0x358401[_0x2ec847(0x165)])throw CliErrors[_0x2ec847(0x15c)]();const _0x1c6779=resolvePushScope(_0x358401),_0x2b7036=validateSkillDirectory(_0x358401[_0x2ec847(0x14e)](_0x2ec847(0x152)));throwIfSkillValidationFailed(_0x2b7036);const {diagram:_0x2e6e52,sourceFilePath:_0x165252}=await readRequiredSkillDiagramInput(_0x358401['str'](_0x2ec847(0x135))),_0x1a56b9=diagramPackageExclusion(_0x165252),_0x97581a=_0x21173b(_0x2b7036[_0x2ec847(0x152)],_0x358401[_0x2ec847(0x147)],remoteFirstMetadataOptions()),_0x163d43=await _0x383cc9(_0x358401[_0x2ec847(0x147)],_0x97581a['skillCode']);throwIfBuiltinPushTarget(_0x163d43);if(_0x1c6779===_0x2ec847(0x168)){const _0x3caf26=_0x2bba44(_0x2b7036['dir'],_0x358401[_0x2ec847(0x147)],{...remoteMissingCompanyReadOptions(),..._0x1a56b9}),_0x2df000=await _0xa14a44(_0x358401[_0x2ec847(0x147)],withDiagram(_0x3caf26[_0x2ec847(0x140)],_0x2e6e52),{'visibility':_0x2ec847(0x162)});return{'method':_0x2ec847(0x131),'url':_0x2ec847(0x138)+_0x358401[_0x2ec847(0x147)]+'/publish/validate','body':{'skillCode':_0x3caf26[_0x2ec847(0x129)],'visibility':_0x2ec847(0x162),'valid':_0x2df000['valid'],'errors':_0x2df000[_0x2ec847(0x164)],'warnings':_0x2df000[_0x2ec847(0x12c)],'resolvedSlug':_0x2df000['resolvedSlug'],'resolvedVersion':_0x2df000['resolvedVersion'],'diagramValidated':_0x2df000[_0x2ec847(0x158)]},'description':_0x2ec847(0x161)};}if(_0x163d43&&_0x163d43[_0x2ec847(0x14c)]!=='personal')throw CliErrors[_0x2ec847(0x159)](_0x2ec847(0x136)+_0x97581a['skillCode']+_0x2ec847(0x163)+(_0x163d43['scope']??_0x2ec847(0x15f))+'\x22.');const _0x1ebe9b=_0x2bba44(_0x2b7036['dir'],_0x358401['appCode'],{..._0x163d43?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x1a56b9}),_0x4e58a8=await _0xa14a44(_0x358401[_0x2ec847(0x147)],withDiagram(_0x1ebe9b[_0x2ec847(0x140)],_0x2e6e52),{'visibility':'PRIVATE'});return{'method':_0x2ec847(0x131),'url':_0x2ec847(0x138)+_0x358401[_0x2ec847(0x147)]+_0x2ec847(0x151),'body':{'skillCode':_0x1ebe9b[_0x2ec847(0x129)],'visibility':_0x2ec847(0x12f),'valid':_0x4e58a8['valid'],'errors':_0x4e58a8[_0x2ec847(0x164)],'warnings':_0x4e58a8[_0x2ec847(0x12c)],'resolvedSlug':_0x4e58a8[_0x2ec847(0x14f)],'resolvedVersion':_0x4e58a8[_0x2ec847(0x167)],'diagramValidated':_0x4e58a8[_0x2ec847(0x158)]},'description':_0x2ec847(0x12e)};}export async function skillPushExecute(_0x5a21cb){const _0xe8b1bf=a74_0x2a20,{createPersonalRuntimeSkill:_0x504f72,downloadRuntimeSkillPackage:_0x1c36f4,getRuntimeSkillByCode:_0x74a813,publishCompanyRuntimeSkill:_0x1efbb3,updatePersonalRuntimeSkill:_0x5977f0,validateRuntimeSkillPublish:_0x41cf0a}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x2996ef,verifyRuntimeSkillBundle:_0xa6afe7,readPushDirectory:_0x4787f8,refreshPushDirectoryMetadataFromRemote:_0x486e07,recordPushedRuntimeSkill:_0x2da1c3,resolvePushDirectoryIdentity:_0x2ceaa1}=await import('../../skills/runtime-skill-sync.js');if(!_0x5a21cb[_0xe8b1bf(0x165)])throw CliErrors['authRequired']();const _0x34a0cc=resolvePushScope(_0x5a21cb),_0x5069f1=_0x5a21cb[_0xe8b1bf(0x15e)](_0xe8b1bf(0x145))||_0x5a21cb[_0xe8b1bf(0x15e)](_0xe8b1bf(0x12d)),_0x35a7c6=validateSkillDirectory(_0x5a21cb['str'](_0xe8b1bf(0x152)));throwIfSkillValidationFailed(_0x35a7c6);const {diagram:_0x1cf366,sourceFilePath:_0x1b3863}=await readRequiredSkillDiagramInput(_0x5a21cb[_0xe8b1bf(0x14e)]('diagram-file')),_0x5d463a=diagramPackageExclusion(_0x1b3863),_0x4bc81d=_0x35a7c6[_0xe8b1bf(0x152)];let _0x24033c;if(_0x34a0cc===_0xe8b1bf(0x168)){const _0x36e5af=_0x2ceaa1(_0x4bc81d,_0x5a21cb[_0xe8b1bf(0x147)],remoteFirstMetadataOptions()),_0x3cf13e=await _0x74a813(_0x5a21cb[_0xe8b1bf(0x147)],_0x36e5af[_0xe8b1bf(0x129)]);throwIfBuiltinPushTarget(_0x3cf13e);if(_0x3cf13e)_0x486e07(_0x4bc81d,_0x3cf13e,_0x5a21cb[_0xe8b1bf(0x147)]);const _0x183b43=_0x4787f8(_0x4bc81d,_0x5a21cb[_0xe8b1bf(0x147)],{..._0x3cf13e?{'targetScope':_0xe8b1bf(0x168),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x5d463a});_0x24033c={'scope':_0xe8b1bf(0x168),'payload':_0x183b43,'publishInput':withDiagram(_0x183b43[_0xe8b1bf(0x140)],_0x1cf366),'remoteForPreflight':_0x3cf13e,'warnings':[]};}else{const _0x54fcfd=_0x5a21cb[_0xe8b1bf(0x14e)](_0xe8b1bf(0x13a))[_0xe8b1bf(0x132)](),_0x25c9cc=Boolean(_0x54fcfd),_0x429f97=allowRetargetArgs(_0x25c9cc),_0x9eee43=_0x2ceaa1(_0x4bc81d,_0x5a21cb['appCode'],{...remoteFirstMetadataOptions(),..._0x429f97[0x0]}),_0x114295=await _0x74a813(_0x5a21cb[_0xe8b1bf(0x147)],_0x9eee43[_0xe8b1bf(0x129)]);throwIfBuiltinPushTarget(_0x114295);if(_0x114295){if(_0x114295[_0xe8b1bf(0x14c)]!==_0xe8b1bf(0x15d)){if(_0x25c9cc)throw CliErrors['validation'](_0xe8b1bf(0x136)+_0x9eee43[_0xe8b1bf(0x129)]+_0xe8b1bf(0x163)+(_0x114295['scope']??_0xe8b1bf(0x15f))+'\x22.');_0x486e07(_0x4bc81d,_0x114295,_0x5a21cb['appCode']);}else!_0x25c9cc&&_0x486e07(_0x4bc81d,_0x114295,_0x5a21cb[_0xe8b1bf(0x147)]);}const _0x45bc35=_0x4787f8(_0x4bc81d,_0x5a21cb[_0xe8b1bf(0x147)],{..._0x114295?remotePersonalReadOptions(_0x25c9cc,_0x429f97[0x0]):remoteMissingPersonalReadOptions(_0x429f97[0x0]),..._0x5d463a}),_0x2c0716=_0x114295?.[_0xe8b1bf(0x14c)]===_0xe8b1bf(0x15d)&&_0x114295['skillCode']===_0x45bc35['skillCode']?_0x114295:undefined,_0x595a3d=_0x25c9cc&&_0x2c0716?withRetargetExistingMetadata(_0x45bc35[_0xe8b1bf(0x140)],_0x2c0716,{'preferInputSkillName':Boolean(_0x45bc35[_0xe8b1bf(0x13f)])}):_0x45bc35[_0xe8b1bf(0x140)],_0x3d0d96=_0x25c9cc?buildRetargetWarning(_0x9eee43['metadata'],_0x5a21cb[_0xe8b1bf(0x147)]):[];_0x24033c={'scope':_0xe8b1bf(0x15d),'payload':_0x45bc35,'publishInput':withDiagram(_0x595a3d,_0x1cf366),'remoteForPreflight':_0x2c0716,'existing':_0x2c0716,'warnings':[..._0x35a7c6['warnings'],..._0x3d0d96]};}const _0x101af2=await runRemoteContentPreflight({'scope':_0x24033c[_0xe8b1bf(0x14c)],'remote':_0x24033c[_0xe8b1bf(0x153)],'publishInput':_0x24033c[_0xe8b1bf(0x150)],'skillCode':_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)],'appCode':_0x5a21cb[_0xe8b1bf(0x147)],'downloadRuntimeSkillPackage':_0x1c36f4,'verifyRuntimeSkillBundle':_0xa6afe7});if(_0x101af2[_0xe8b1bf(0x157)]===_0xe8b1bf(0x137))return _0x24033c[_0xe8b1bf(0x14c)]===_0xe8b1bf(0x168)?_0x2da1c3(_0x4bc81d,_0x101af2[_0xe8b1bf(0x154)],_0x5a21cb[_0xe8b1bf(0x147)],{'scope':'company'}):_0x2da1c3(_0x4bc81d,_0x101af2[_0xe8b1bf(0x154)],_0x5a21cb[_0xe8b1bf(0x147)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x101af2['savedSkill']),'scope':_0x24033c[_0xe8b1bf(0x14c)],..._0x24033c[_0xe8b1bf(0x14c)]===_0xe8b1bf(0x15d)?{'warnings':_0x24033c[_0xe8b1bf(0x12c)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x24033c[_0xe8b1bf(0x14c)])+_0xe8b1bf(0x14a)+_0x24033c['payload'][_0xe8b1bf(0x129)]+_0xe8b1bf(0x133)};if(_0x24033c[_0xe8b1bf(0x14c)]===_0xe8b1bf(0x168)){const _0x3b8b31=await _0x41cf0a(_0x5a21cb[_0xe8b1bf(0x147)],_0x24033c[_0xe8b1bf(0x150)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0xe8b1bf(0x168),_0x24033c['payload']['skillCode'],_0x3b8b31),throwIfUnconfirmedPublishWarnings(_0xe8b1bf(0x168),_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)],_0x3b8b31[_0xe8b1bf(0x12c)],_0x5069f1);const _0x228c19=await _0x1efbb3(_0x5a21cb['appCode'],_0x24033c[_0xe8b1bf(0x150)],{'confirmWarnings':_0x5069f1});return _0x2da1c3(_0x4bc81d,{..._0x228c19,'files':_0x24033c[_0xe8b1bf(0x150)][_0xe8b1bf(0x134)]},_0x5a21cb[_0xe8b1bf(0x147)],{'scope':_0xe8b1bf(0x168)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x228c19),'scope':'company','reviewState':_0xe8b1bf(0x142),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x3b8b31['warnings']}},'message':_0xe8b1bf(0x166)+_0x24033c['payload'][_0xe8b1bf(0x129)]+_0xe8b1bf(0x15a)+(_0x228c19[_0xe8b1bf(0x149)]??'(unknown)')+'\x20for\x20review'};}const _0x6f788=await _0x41cf0a(_0x5a21cb[_0xe8b1bf(0x147)],_0x24033c[_0xe8b1bf(0x150)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0xe8b1bf(0x15d),_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)],_0x6f788),throwIfUnconfirmedPublishWarnings(_0xe8b1bf(0x15d),_0x24033c[_0xe8b1bf(0x141)]['skillCode'],_0x6f788['warnings'],_0x5069f1);const _0x15d6e2={'confirmWarnings':_0x5069f1},_0x585b2c=_0x24033c[_0xe8b1bf(0x130)]?await _0x5977f0(_0x24033c[_0xe8b1bf(0x141)]['skillCode'],_0x5a21cb[_0xe8b1bf(0x147)],_0x24033c['publishInput'],_0x15d6e2):await _0x504f72(_0x5a21cb[_0xe8b1bf(0x147)],_0x24033c[_0xe8b1bf(0x150)],_0x15d6e2);let _0x331a45=_0x585b2c;if(isMultiFileManifest(_0x24033c[_0xe8b1bf(0x150)][_0xe8b1bf(0x134)])){const _0x41f2ce=await _0x1c36f4(_0xe8b1bf(0x15d),_0x585b2c[_0xe8b1bf(0x129)]||_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)],_0x5a21cb[_0xe8b1bf(0x147)]);_0xa6afe7(_0x24033c[_0xe8b1bf(0x150)]['files'],_0x41f2ce),_0x331a45={..._0x585b2c,'files':_0x24033c[_0xe8b1bf(0x150)][_0xe8b1bf(0x134)]};}else{if(isPackageBackedManifest(_0x585b2c['files'])){const _0x51a533=await _0x1c36f4(_0xe8b1bf(0x15d),_0x585b2c[_0xe8b1bf(0x129)]||_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)],_0x5a21cb[_0xe8b1bf(0x147)]);_0x2996ef(_0x585b2c['files'],_0x51a533);}}return _0x2da1c3(_0x4bc81d,_0x331a45,_0x5a21cb[_0xe8b1bf(0x147)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x585b2c),'warnings':_0x24033c[_0xe8b1bf(0x12c)],'validation':{'warnings':_0x6f788['warnings']},'diagramBound':!![]},'message':_0x24033c[_0xe8b1bf(0x130)]?_0xe8b1bf(0x146)+_0x24033c['payload'][_0xe8b1bf(0x129)]:_0xe8b1bf(0x12b)+_0x24033c[_0xe8b1bf(0x141)][_0xe8b1bf(0x129)]};}function scopeLabel(_0x28c635){const _0x4ec070=a74_0x2a20;return _0x28c635===_0x4ec070(0x168)?_0x4ec070(0x13b):_0x4ec070(0x13e);}function withDiagram(_0x14e3e2,_0x593f8f){return{..._0x14e3e2,'diagram':_0x593f8f};}function diagramPackageExclusion(_0x483d29){return _0x483d29?{'excludedFilePaths':[_0x483d29]}:{};}
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 +1 @@
1
- (function(_0x88090b,_0x2ae451){const _0x287542=a75_0x14d9,_0x40ba73=_0x88090b();while(!![]){try{const _0x9be8f1=parseInt(_0x287542(0x19c))/0x1*(parseInt(_0x287542(0x1a1))/0x2)+-parseInt(_0x287542(0x1ac))/0x3+parseInt(_0x287542(0x18f))/0x4*(parseInt(_0x287542(0x1b6))/0x5)+parseInt(_0x287542(0x1b9))/0x6+parseInt(_0x287542(0x1aa))/0x7*(parseInt(_0x287542(0x18c))/0x8)+parseInt(_0x287542(0x18e))/0x9*(-parseInt(_0x287542(0x1a0))/0xa)+-parseInt(_0x287542(0x18a))/0xb*(-parseInt(_0x287542(0x1b0))/0xc);if(_0x9be8f1===_0x2ae451)break;else _0x40ba73['push'](_0x40ba73['shift']());}catch(_0x5b47c2){_0x40ba73['push'](_0x40ba73['shift']());}}}(a75_0x3681,0x2b6fc));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x12cb19){const _0x47239b=a75_0x14d9,_0x3369e7=_0x12cb19[_0x47239b(0x19a)](_0x47239b(0x198))||_0x47239b(0x194);if(_0x3369e7===_0x47239b(0x194)||_0x3369e7==='company')return _0x3369e7;throw CliErrors[_0x47239b(0x196)](_0x47239b(0x1b1)+_0x3369e7+'\x22.');}export function allowRetargetArgs(_0x256b3f){return _0x256b3f?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a75_0x3681(){const _0x4fada6=['validation','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','scope','appCode','str','warnings','23OLLhPg','company','Review\x20each\x20warning\x20before\x20continuing.','remote','10EgaTKU','11152iUEiqc','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','errors','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','files','join','\x20Skill\x20push\x20validation\x20failed\x20for\x20','(unknown)','406329RoeUyp','lovrabet.skill.json','164256OqDCjy','Personal','different','warning','625656egrtzx','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Local\x20Skill\x20metadata\x20appCode\x20','not-applicable','Company','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','10pBJrSs','skill-metadata-appcode-retargeted','Warnings:\x20','261594DWbhjs','length','22ZQMKrt','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','16TXDsvP','skillCode','2113605PoVGWE','150592UxmXBT','\x20cannot\x20be\x20pushed.','publishInput','builtin','version','personal','\x20after\x20successful\x20push.'];a75_0x3681=function(){return _0x4fada6;};return a75_0x3681();}export function remoteMissingPersonalReadOptions(_0xe84040={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0xe84040};}export function remotePersonalReadOptions(_0x79fe58,_0x33d8c6={}){return{'ignoreInvalidMetadata':!![],..._0x79fe58?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x33d8c6};}export function throwIfBuiltinPushTarget(_0x32a296){const _0x46a7d2=a75_0x14d9;if(_0x32a296?.[_0x46a7d2(0x198)]!==_0x46a7d2(0x192))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0x32a296[_0x46a7d2(0x18d)]??_0x46a7d2(0x1a9))+_0x46a7d2(0x190),_0x46a7d2(0x18b));}export function throwIfPublishValidationFailed(_0x3b8f60,_0x717b0c,_0x4cde3d){const _0x48d517=a75_0x14d9;if(_0x4cde3d['errors']['length']===0x0&&(_0x4cde3d['valid']||_0x4cde3d[_0x48d517(0x19b)][_0x48d517(0x1ba)]>0x0))return;const _0x11ab15=_0x4cde3d[_0x48d517(0x1a4)][_0x48d517(0x1ba)]>0x0?_0x4cde3d['errors'][_0x48d517(0x1a7)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x135a5c=_0x3b8f60===_0x48d517(0x19d)?'Company':_0x48d517(0x1ad);throw CliErrors[_0x48d517(0x196)](_0x135a5c+_0x48d517(0x1a8)+_0x717b0c+'.',_0x11ab15);}export function throwIfUnconfirmedPublishWarnings(_0x45888d,_0x500131,_0x1124c4,_0x249bca){const _0x5633b3=a75_0x14d9;if(_0x1124c4[_0x5633b3(0x1ba)]===0x0||_0x249bca)return;const _0x52ec4c=_0x45888d===_0x5633b3(0x19d)?_0x5633b3(0x1b4):_0x5633b3(0x1ad);throw CliErrors[_0x5633b3(0x196)](_0x52ec4c+_0x5633b3(0x1b5)+_0x500131+'.',[_0x5633b3(0x19e),_0x5633b3(0x197),_0x5633b3(0x1a3),_0x5633b3(0x1b8)+_0x1124c4['join'](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x220814,_0x1c399f){const _0x442a41=a75_0x14d9;if(!_0x220814?.[_0x442a41(0x199)]||_0x220814[_0x442a41(0x199)]===_0x1c399f)return[];return[{'level':_0x442a41(0x1af),'ruleId':_0x442a41(0x1b7),'file':_0x442a41(0x1ab),'message':_0x442a41(0x1b2)+_0x220814[_0x442a41(0x199)]+_0x442a41(0x1a5)+_0x1c399f+_0x442a41(0x195),'suggestion':_0x442a41(0x1a2)}];}function a75_0x14d9(_0x1e86ed,_0x13ae92){_0x1e86ed=_0x1e86ed-0x18a;const _0x3681b5=a75_0x3681();let _0x14d936=_0x3681b5[_0x1e86ed];return _0x14d936;}export async function runRemoteContentPreflight(_0x6ddc82){const _0xd0ba8b=a75_0x14d9;if(!_0x6ddc82['remote']||_0x6ddc82['remote'][_0xd0ba8b(0x198)]!==_0x6ddc82[_0xd0ba8b(0x198)]||!_0x6ddc82[_0xd0ba8b(0x191)]['files'])return{'status':'not-applicable'};const _0x13b584=_0x6ddc82[_0xd0ba8b(0x19f)][_0xd0ba8b(0x18d)]||_0x6ddc82['skillCode'];if(!_0x13b584)return{'status':_0xd0ba8b(0x1b3)};const _0x35a3cc=await _0x6ddc82['downloadRuntimeSkillPackage'](_0x6ddc82[_0xd0ba8b(0x198)],_0x13b584,_0x6ddc82[_0xd0ba8b(0x199)],_0x6ddc82['remote'][_0xd0ba8b(0x193)]);try{_0x6ddc82['verifyRuntimeSkillBundle'](_0x6ddc82['publishInput'][_0xd0ba8b(0x1a6)],_0x35a3cc);}catch{return{'status':_0xd0ba8b(0x1ae)};}return{'status':'identical','savedSkill':{..._0x6ddc82[_0xd0ba8b(0x19f)],'content':_0x6ddc82[_0xd0ba8b(0x191)]['content'],'files':_0x6ddc82[_0xd0ba8b(0x191)][_0xd0ba8b(0x1a6)]}};}
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 +1 @@
1
- (function(_0x430d12,_0x27db17){const _0x3f9827=a76_0x3fe7,_0x1a289b=_0x430d12();while(!![]){try{const _0x30597f=parseInt(_0x3f9827(0xa9))/0x1*(parseInt(_0x3f9827(0xb3))/0x2)+-parseInt(_0x3f9827(0xb4))/0x3*(parseInt(_0x3f9827(0xba))/0x4)+parseInt(_0x3f9827(0xae))/0x5*(-parseInt(_0x3f9827(0xb0))/0x6)+-parseInt(_0x3f9827(0xa5))/0x7+parseInt(_0x3f9827(0xbb))/0x8*(-parseInt(_0x3f9827(0xaa))/0x9)+parseInt(_0x3f9827(0xb1))/0xa*(parseInt(_0x3f9827(0xb7))/0xb)+parseInt(_0x3f9827(0xad))/0xc*(parseInt(_0x3f9827(0xa6))/0xd);if(_0x30597f===_0x27db17)break;else _0x1a289b['push'](_0x1a289b['shift']());}catch(_0x366a0a){_0x1a289b['push'](_0x1a289b['shift']());}}}(a76_0x4a0f,0xbb8dc));function a76_0x3fe7(_0x4cb18a,_0x43228e){_0x4cb18a=_0x4cb18a-0xa2;const _0x4a0ff1=a76_0x4a0f();let _0x3fe7a8=_0x4a0ff1[_0x4cb18a];return _0x3fe7a8;}export function withRetargetExistingMetadata(_0xbe7e77,_0x43ea29,_0x389285={}){const _0x468fe9=a76_0x3fe7,_0x5d70e0=_0x389285[_0x468fe9(0xa8)]?_0xbe7e77[_0x468fe9(0xb2)]??_0x43ea29[_0x468fe9(0xb2)]:_0x43ea29['skillName']??_0xbe7e77[_0x468fe9(0xb2)];return{..._0xbe7e77,'skillName':_0x5d70e0,'description':_0x43ea29[_0x468fe9(0xab)]??_0xbe7e77['description'],'tags':Array[_0x468fe9(0xb9)](_0x43ea29[_0x468fe9(0xa2)])?_0x43ea29[_0x468fe9(0xa2)]:_0xbe7e77[_0x468fe9(0xa2)],'version':_0x43ea29[_0x468fe9(0xa4)]??_0xbe7e77[_0x468fe9(0xa4)],'sourceSessionId':_0x43ea29['sourceSessionId']??_0xbe7e77[_0x468fe9(0xbc)]};}function a76_0x4a0f(){const _0x300389=['isArray','428RJPdUS','40GGMaZN','sourceSessionId','tags','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','version','3279297SOhnNV','7052279oEEjVl','lovrabet.skill.json','preferInputSkillName','3UuGEFA','1259883JiPWXd','description','appCode','60FvBBse','30bYgoev','\x20after\x20successful\x20push.','1213956aumcPN','10yvlyqu','skillName','187978bczFDU','36339LnPUHg','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','15975201qcfFrl','skill-metadata-appcode-retargeted'];a76_0x4a0f=function(){return _0x300389;};return a76_0x4a0f();}export function buildRetargetWarning(_0x3ee899,_0x4ee9e6){const _0x4638b3=a76_0x3fe7;if(!_0x3ee899?.[_0x4638b3(0xac)]||_0x3ee899['appCode']===_0x4ee9e6)return[];return[{'level':_0x4638b3(0xb6),'ruleId':_0x4638b3(0xb8),'file':_0x4638b3(0xa7),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x3ee899[_0x4638b3(0xac)]+_0x4638b3(0xa3)+_0x4ee9e6+_0x4638b3(0xaf),'suggestion':_0x4638b3(0xb5)}];}
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 +1 @@
1
- (function(_0x419c60,_0x36111d){const _0x50b567=a77_0x122d,_0xdabf73=_0x419c60();while(!![]){try{const _0x1eb854=parseInt(_0x50b567(0x10c))/0x1+-parseInt(_0x50b567(0x107))/0x2+-parseInt(_0x50b567(0x10a))/0x3*(parseInt(_0x50b567(0x10b))/0x4)+-parseInt(_0x50b567(0x105))/0x5*(-parseInt(_0x50b567(0x10f))/0x6)+-parseInt(_0x50b567(0x109))/0x7*(parseInt(_0x50b567(0x106))/0x8)+parseInt(_0x50b567(0x10d))/0x9+-parseInt(_0x50b567(0x10e))/0xa;if(_0x1eb854===_0x36111d)break;else _0xdabf73['push'](_0xdabf73['shift']());}catch(_0xb1bad){_0xdabf73['push'](_0xdabf73['shift']());}}}(a77_0x4961,0xf2d4d));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0xb596e7){const _0x2e6bf9=a77_0x122d,_0x2ebc7c=_0xb596e7['trim']();if(!_0x2ebc7c||_0x2ebc7c===_0x2e6bf9(0x112))return[_0x2e6bf9(0x113),_0x2e6bf9(0x111)];if(_0x2ebc7c===_0x2e6bf9(0x113)||_0x2ebc7c===_0x2e6bf9(0x111))return[_0x2ebc7c];throw CliErrors[_0x2e6bf9(0x110)](_0x2e6bf9(0x114)+_0xb596e7);}function a77_0x122d(_0x42794b,_0x4bba2f){_0x42794b=_0x42794b-0x105;const _0x496148=a77_0x4961();let _0x122de1=_0x496148[_0x42794b];return _0x122de1;}function a77_0x4961(){const _0xfd225d=['105bSEzIU','108380XMtPfZ','1135471gGchpw','10250127OxpKlE','944360qGdBTp','228QwYUXt','validation','company','all','personal','Unsupported\x20Skill\x20sync\x20scope:\x20','49325nHRevk','56AVxEwd','494082HdEJkf','trim','364805CPnmRA'];a77_0x4961=function(){return _0xfd225d;};return a77_0x4961();}export function normalizeListScope(_0x5a3907){const _0x118e48=a77_0x122d,_0x54722f=_0x5a3907[_0x118e48(0x108)]();if(!_0x54722f)return'all';if(_0x54722f==='personal'||_0x54722f===_0x118e48(0x111)||_0x54722f===_0x118e48(0x112))return _0x54722f;throw CliErrors[_0x118e48(0x110)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x5a3907);}export function shouldListScope(_0x5e88fb,_0x5e12e8){if(_0x5e88fb==='all')return!![];return _0x5e88fb===_0x5e12e8;}export function listScopeToRuntimeScopes(_0x4ccfdc){const _0x1607b8=a77_0x122d;if(_0x4ccfdc===_0x1607b8(0x112))return['personal',_0x1607b8(0x111)];return[_0x4ccfdc===_0x1607b8(0x111)?_0x1607b8(0x111):_0x4ccfdc];}export function listScopeToRemoteScope(_0x1a55da){return _0x1a55da;}
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 +1 @@
1
- (function(_0x16ce79,_0x2b6169){var _0x404e3f=a78_0xbe4a,_0x18e6d1=_0x16ce79();while(!![]){try{var _0x39d64a=parseInt(_0x404e3f(0x1fd))/0x1*(parseInt(_0x404e3f(0x1f1))/0x2)+-parseInt(_0x404e3f(0x1ed))/0x3+parseInt(_0x404e3f(0x1e7))/0x4*(parseInt(_0x404e3f(0x1f6))/0x5)+-parseInt(_0x404e3f(0x1fa))/0x6+-parseInt(_0x404e3f(0x1ef))/0x7*(parseInt(_0x404e3f(0x1f2))/0x8)+-parseInt(_0x404e3f(0x1ec))/0x9+parseInt(_0x404e3f(0x1f3))/0xa*(parseInt(_0x404e3f(0x1ee))/0xb);if(_0x39d64a===_0x2b6169)break;else _0x18e6d1['push'](_0x18e6d1['shift']());}catch(_0x3cbb54){_0x18e6d1['push'](_0x18e6d1['shift']());}}}(a78_0x2d80,0xecca4));function a78_0xbe4a(_0x461b6a,_0x50b12c){_0x461b6a=_0x461b6a-0x1e7;var _0x2d8063=a78_0x2d80();var _0xbe4aa2=_0x2d8063[_0x461b6a];return _0xbe4aa2;}export function summarizeRuntimeSkill(_0x4fea6b){var _0x3a5d60=a78_0xbe4a;return{'id':_0x4fea6b['id'],'skillCode':_0x4fea6b[_0x3a5d60(0x1f4)],'skillName':_0x4fea6b['skillName'],'scope':_0x4fea6b[_0x3a5d60(0x1f0)],'version':_0x4fea6b[_0x3a5d60(0x1f5)],'readonly':_0x4fea6b['readonly']};}function a78_0x2d80(){var _0x3dd9d3=['32Yvcpbt','tags','pulledAt','cacheDir','dir','11310237nuFNIa','4195368LXMKPB','38863BbQkRw','8183lZZUEn','scope','11634EjRsBY','1864sPuYQB','10190dJiGXI','skillCode','version','71320LNypcg','readonly','skillMdPath','metadataPath','2809950kdsyMo','linkedPaths','treeHash','112yrKCSE','appCode'];a78_0x2d80=function(){return _0x3dd9d3;};return a78_0x2d80();}export function summarizeLocalRuntimeSkill(_0x5530c7){var _0x1c6ec7=a78_0xbe4a;return{'id':_0x5530c7['id'],'skillCode':_0x5530c7[_0x1c6ec7(0x1f4)],'skillName':_0x5530c7['skillName'],'scope':_0x5530c7[_0x1c6ec7(0x1f0)],'appCode':_0x5530c7[_0x1c6ec7(0x1fe)],'version':_0x5530c7[_0x1c6ec7(0x1f5)],'status':_0x5530c7['status'],'readonly':_0x5530c7[_0x1c6ec7(0x1f7)],'tags':_0x5530c7[_0x1c6ec7(0x1e8)],'dir':_0x5530c7[_0x1c6ec7(0x1eb)],'cacheDir':_0x5530c7[_0x1c6ec7(0x1ea)],'skillMdPath':_0x5530c7[_0x1c6ec7(0x1f8)],'metadataPath':_0x5530c7[_0x1c6ec7(0x1f9)],'linkedPaths':_0x5530c7[_0x1c6ec7(0x1fb)],'contentHash':_0x5530c7['contentHash'],'treeHash':_0x5530c7[_0x1c6ec7(0x1fc)],'pulledAt':_0x5530c7[_0x1c6ec7(0x1e9)]};}
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 +1 @@
1
- function a79_0x20e3(_0x58efed,_0x10f2ef){_0x58efed=_0x58efed-0xfb;const _0x2fe82a=a79_0x2fe8();let _0x20e3b8=_0x2fe82a[_0x58efed];return _0x20e3b8;}const a79_0x3eee0d=a79_0x20e3;(function(_0x73a4dd,_0x3a4f36){const _0x86e8ea=a79_0x20e3,_0x1c9981=_0x73a4dd();while(!![]){try{const _0x16ae9a=parseInt(_0x86e8ea(0x10a))/0x1+-parseInt(_0x86e8ea(0x106))/0x2*(parseInt(_0x86e8ea(0x11c))/0x3)+parseInt(_0x86e8ea(0x123))/0x4+-parseInt(_0x86e8ea(0x102))/0x5+parseInt(_0x86e8ea(0x114))/0x6*(parseInt(_0x86e8ea(0x115))/0x7)+parseInt(_0x86e8ea(0xff))/0x8*(-parseInt(_0x86e8ea(0x125))/0x9)+parseInt(_0x86e8ea(0x122))/0xa*(parseInt(_0x86e8ea(0x108))/0xb);if(_0x16ae9a===_0x3a4f36)break;else _0x1c9981['push'](_0x1c9981['shift']());}catch(_0x1b377e){_0x1c9981['push'](_0x1c9981['shift']());}}}(a79_0x2fe8,0xd7f5d));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read'];export const DEFAULT_SKILL_TARGET=a79_0x3eee0d(0x116);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x3eee0d(0x11f);function a79_0x2fe8(){const _0x1425a2=['##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\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','4795120lsjXbC','write','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','4654785VmDvtE','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','timestamp','references/output-contract.md','122sypWNZ','test','3327148sfvtEo','includes','1369835qmmlso','join','---\x0aname:\x20','skillName','\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','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','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','trim','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','174lomWXx','357322oLJdxn','.agents/skills','toISOString','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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','\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','80781PDgVyl','Invalid\x20Skill\x20name:\x20','validation','references/runtime-contract.md','type','#\x20Output\x20Contract\x0a\x0a','10lCneXM','3619320xevxLP','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','9nqaqkv','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'];a79_0x2fe8=function(){return _0x1425a2;};return a79_0x2fe8();}export const OUTPUT_CONTRACT_FILE=a79_0x3eee0d(0x105);export function validateSkillName(_0x124d60){const _0x25d359=a79_0x3eee0d,_0x362b5b=_0x124d60['trim']();if(!SKILL_NAME_PATTERN[_0x25d359(0x107)](_0x362b5b))throw CliErrors[_0x25d359(0x11e)](_0x25d359(0x11d)+_0x124d60+_0x25d359(0x118),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x362b5b;}export function normalizeSkillTemplateType(_0x32553a){const _0x198e51=a79_0x3eee0d,_0x53ade2=(_0x32553a||_0x198e51(0x100))[_0x198e51(0x112)]()||_0x198e51(0x100);if(SKILL_TYPES[_0x198e51(0x109)](_0x53ade2))return _0x53ade2;throw CliErrors[_0x198e51(0x11e)]('Unsupported\x20Skill\x20type:\x20'+_0x32553a,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x198e51(0x10b)](',\x20')+'.');}export function renderSkillTemplate(_0x58a2b1){const _0xcb7aad=a79_0x3eee0d,_0x454e69=validateSkillName(_0x58a2b1[_0xcb7aad(0x10d)]),_0x39d7ec=normalizeSkillTemplateType(_0x58a2b1[_0xcb7aad(0x120)]),_0x3775bb=_0x58a2b1[_0xcb7aad(0x104)]??new Date()[_0xcb7aad(0x117)]();return{'skillName':_0x454e69,'type':_0x39d7ec,'files':[{'path':_0xcb7aad(0x10f),'content':renderSkillMd(_0x454e69,_0x39d7ec,_0x3775bb)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x454e69,_0x39d7ec)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x454e69,_0x39d7ec)}]};}function renderSkillMd(_0x3064fd,_0xd00242,_0x3b3a11){const _0x153762=a79_0x3eee0d,_0x20f94f=typeWorkflow(_0xd00242);return _0x153762(0x10c)+_0x3064fd+_0x153762(0x103)+_0xd00242+_0x153762(0x11a)+_0x3b3a11+_0x153762(0x111)+_0x3064fd+_0x153762(0x110)+_0x20f94f+'\x0a\x0a'+businessStateSection(_0xd00242)+_0x153762(0x10e);}function renderRuntimeContract(_0x51d888,_0x62761a){const _0x3f76c3=a79_0x3eee0d,_0x5e68b3=_0x62761a==='write'?_0x3f76c3(0x127):'';return _0x3f76c3(0x126)+_0x51d888+'\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='+_0x62761a+_0x3f76c3(0xfe)+_0x5e68b3+_0x3f76c3(0x11b);}function renderOutputContract(_0x283bae,_0x6717b8){const _0x2ffa4c=a79_0x3eee0d,_0x4b7378=_0x6717b8===_0x2ffa4c(0x100)?_0x2ffa4c(0xfd):_0x6717b8+_0x2ffa4c(0xfc);return _0x2ffa4c(0x121)+_0x283bae+_0x2ffa4c(0x119)+_0x4b7378+_0x2ffa4c(0x124);}function typeWorkflow(_0x56357c){const _0x3c0b7c=a79_0x3eee0d;if(_0x56357c==='read')return _0x3c0b7c(0xfb);return _0x3c0b7c(0x113);}function businessStateSection(_0x2bfefa){const _0x493212=a79_0x3eee0d;if(_0x2bfefa!==_0x493212(0x100))return'';return _0x493212(0x101);}
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 +1 @@
1
- const a80_0x196261=a80_0x52c5;(function(_0xe7f847,_0x57fa9e){const _0x5db52f=a80_0x52c5,_0xbccc6=_0xe7f847();while(!![]){try{const _0x597c4f=parseInt(_0x5db52f(0x1ef))/0x1*(parseInt(_0x5db52f(0x1fb))/0x2)+-parseInt(_0x5db52f(0x1d9))/0x3*(-parseInt(_0x5db52f(0x208))/0x4)+-parseInt(_0x5db52f(0x1c8))/0x5+-parseInt(_0x5db52f(0x215))/0x6+-parseInt(_0x5db52f(0x1f4))/0x7+-parseInt(_0x5db52f(0x1ea))/0x8*(-parseInt(_0x5db52f(0x1d4))/0x9)+-parseInt(_0x5db52f(0x1d6))/0xa;if(_0x597c4f===_0x57fa9e)break;else _0xbccc6['push'](_0xbccc6['shift']());}catch(_0x41171c){_0xbccc6['push'](_0xbccc6['shift']());}}}(a80_0x108a,0xa82f3));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x5f02a7}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a80_0x196261(0x1de),a80_0x196261(0x1eb)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x51826f,_0x25a96c={}){const _0x4757cd=a80_0x196261,_0x16b024=resolveSkillDirectoryRoot(_0x51826f),_0x54e57b=[],_0x5b72cc=loadRequiredSkillFile(_0x16b024,_0x54e57b),_0x59ec90=_0x5b72cc?parseFrontmatter(_0x5b72cc[_0x4757cd(0x1d3)]):{'hasFrontmatter':![]};_0x5b72cc&&validateFrontmatter(_0x5b72cc['path'],_0x59ec90,_0x54e57b);validateRuntimeCliReferences(_0x16b024,_0x54e57b);const _0xe0ecc1=_0x54e57b['filter'](_0x50fa8c=>_0x50fa8c[_0x4757cd(0x1cb)]===_0x4757cd(0x20f)),_0x4ad457=_0x54e57b[_0x4757cd(0x20c)](_0xbc6e0e=>_0xbc6e0e[_0x4757cd(0x1cb)]===_0x4757cd(0x1f7));return{'ok':_0xe0ecc1[_0x4757cd(0x216)]===0x0,'dir':_0x16b024,'type':_0x59ec90[_0x4757cd(0x1cc)],'errors':_0xe0ecc1,'warnings':_0x4ad457};}function resolveSkillDirectoryRoot(_0x285ac6){const _0x4e7879=a80_0x196261,_0x566ff0=resolve(_0x285ac6);if(!existsSync(_0x566ff0))throw CliErrors[_0x4e7879(0x1ee)](_0x4e7879(0x211)+_0x285ac6);const _0x539b88=lstatSync(_0x566ff0);if(_0x539b88[_0x4e7879(0x1c6)]())return _0x566ff0;if(_0x539b88[_0x4e7879(0x1d8)]()){const _0x1fac18=realpathSync(_0x566ff0);if(lstatSync(_0x1fac18)[_0x4e7879(0x1c6)]())return _0x1fac18;}throw CliErrors[_0x4e7879(0x1ee)]('Skill\x20directory\x20not\x20found:\x20'+_0x285ac6);}export function throwIfSkillValidationFailed(_0x2f918f,_0x3b799d=![]){const _0xa060f2=a80_0x196261;if(_0x2f918f['ok'])return;const _0x53041b=_0x2f918f['errors']['map'](_0xfcbba4=>{const _0xabaf9=a80_0x52c5,_0x1b967b=_0xfcbba4[_0xabaf9(0x1fa)]?'#'+_0xfcbba4['section']:'';return _0xfcbba4[_0xabaf9(0x1cb)][_0xabaf9(0x1d2)]()+'\x20'+_0xfcbba4[_0xabaf9(0x1f8)]+'\x20'+_0xfcbba4[_0xabaf9(0x1c5)]+_0x1b967b+':\x20'+_0xfcbba4['message']+_0xabaf9(0x206)+_0xfcbba4['suggestion'];});throw CliErrors[_0xa060f2(0x1ee)](_0xa060f2(0x1c9)+_0x53041b[_0xa060f2(0x1f9)]('\x0a'),_0xa060f2(0x20b));}function loadRequiredSkillFile(_0x97cb48,_0x27d2ab){const _0x590ab8=a80_0x196261,_0x27cdc7=resolve(_0x97cb48,SKILL_FILE);if(!existsSync(_0x27cdc7))return _0x27d2ab['push'](issue(_0x590ab8(0x20f),_0x590ab8(0x1ed),SKILL_FILE,_0x590ab8(0x202),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x32c2af=lstatSync(_0x27cdc7);if(_0x32c2af[_0x590ab8(0x1d8)]())return _0x27d2ab[_0x590ab8(0x1ce)](issue(_0x590ab8(0x20f),_0x590ab8(0x1ed),SKILL_FILE,_0x590ab8(0x20d),_0x590ab8(0x1dd))),undefined;if(!_0x32c2af[_0x590ab8(0x200)]())return _0x27d2ab['push'](issue(_0x590ab8(0x20f),_0x590ab8(0x1ed),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x590ab8(0x1e2))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x27cdc7,_0x590ab8(0x1e8))};}function validateFrontmatter(_0xd44ee0,_0xf9ca41,_0x2c8b2f){const _0x20fe71=a80_0x196261;if(!_0xf9ca41[_0x20fe71(0x1f6)]){_0x2c8b2f['push'](issue(_0x20fe71(0x20f),_0x20fe71(0x1be),_0xd44ee0,_0x20fe71(0x1dc),_0x20fe71(0x1f1)));return;}!_0xf9ca41[_0x20fe71(0x1ec)]?.['trim']()&&_0x2c8b2f[_0x20fe71(0x1ce)](issue(_0x20fe71(0x20f),'frontmatter-required',_0xd44ee0,'Frontmatter\x20name\x20is\x20missing.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0xf9ca41['displayName']?.[_0x20fe71(0x1d5)]()&&_0x2c8b2f[_0x20fe71(0x1ce)](issue('warning',_0x20fe71(0x205),_0xd44ee0,_0x20fe71(0x1d0),_0x20fe71(0x203))),!_0xf9ca41[_0x20fe71(0x1c3)]?.[_0x20fe71(0x1d5)]()&&_0x2c8b2f['push'](issue(_0x20fe71(0x1f7),'example-recommended',_0xd44ee0,_0x20fe71(0x209),_0x20fe71(0x201))),!_0xf9ca41['description']?.['trim']()&&_0x2c8b2f['push'](issue('error','description-required',_0xd44ee0,_0x20fe71(0x212),_0x20fe71(0x204))),_0xf9ca41['internal']===!![]&&_0x2c8b2f[_0x20fe71(0x1ce)](issue(_0x20fe71(0x20f),'internal-skill',_0xd44ee0,_0x20fe71(0x20a),_0x20fe71(0x1ca))),_0xf9ca41[_0x20fe71(0x1cc)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x20fe71(0x1d7)](_0xf9ca41[_0x20fe71(0x1cc)])&&_0x2c8b2f[_0x20fe71(0x1ce)](issue(_0x20fe71(0x20f),_0x20fe71(0x1be),_0xd44ee0,_0x20fe71(0x207),_0x20fe71(0x1e4)));}function validateRuntimeCliReferences(_0xa8d053,_0x26049c){const _0x15b4e1=a80_0x196261;for(const _0x3b3bc7 of findRabetbaseCliInvocations(_0xa8d053)){_0x26049c[_0x15b4e1(0x1ce)](issue(_0x15b4e1(0x1f7),'rabetbase-cli-reference',_0x3b3bc7['file'],_0x15b4e1(0x1e3),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x3b3bc7[_0x15b4e1(0x210)]));}}function a80_0x52c5(_0x1fe628,_0x40ce44){_0x1fe628=_0x1fe628-0x1be;const _0x108a7e=a80_0x108a();let _0x52c599=_0x108a7e[_0x1fe628];return _0x52c599;}function a80_0x108a(){const _0x44a11f=['hasFrontmatter','warning','ruleId','join','section','248306ABPPMM','data','workspace','service','number','isFile','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Missing\x20SKILL.md.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','display-name-recommended','\x20Fix:\x20','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','1796geUPOQ','Frontmatter\x20example\x20is\x20missing.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','filter','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','test','error','line','Skill\x20directory\x20not\x20found:\x20','Frontmatter\x20description\x20is\x20empty.','bff','boolean','4803708odtszU','length','frontmatter-required','false','flatMap','map','registry','example','displayName','file','isDirectory','string','919755JBbbqS','Skill\x20validation\x20failed:\x0a','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','level','type','app','push','internal','Frontmatter\x20displayName\x20is\x20missing.','slice','toUpperCase','content','9ZmNEUJ','trim','6501080qZUdsq','has','isSymbolicLink','7899nVTMpy','config','artifact','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','write','split','path','description','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','metadata','logs','object','utf8','toLowerCase','7251016CWFKSu','read','name','structure-complete','validation','11YQgdFK','search','Add\x20frontmatter\x20with\x20name\x20and\x20description.','auth','true','7915019gluKPj','sql'];a80_0x108a=function(){return _0x44a11f;};return a80_0x108a();}function findRabetbaseCliInvocations(_0x32e31c){const _0x4acc09=a80_0x196261;return scanSkillDirectory(_0x32e31c)[_0x4acc09(0x20c)](_0x5cda09=>TEXT_SKILL_FILE_PATTERN[_0x4acc09(0x20e)](_0x5cda09[_0x4acc09(0x1e0)]))[_0x4acc09(0x1c0)](_0x5d8be6=>{const _0x33bb6f=_0x4acc09,_0x43c3ae=fileText(_0x5d8be6);return _0x43c3ae[_0x33bb6f(0x1df)](/\r?\n/)[_0x33bb6f(0x1c1)]((_0x14c918,_0x854276)=>({'file':_0x5d8be6[_0x33bb6f(0x1e0)],'line':_0x854276+0x1,'text':_0x14c918}))[_0x33bb6f(0x20c)](({text:_0x4b137e})=>isRabetbaseCliInvocation(_0x4b137e))[_0x33bb6f(0x1c1)](({file:_0x26f5b2,line:_0x4cc5cf})=>({'file':_0x26f5b2,'line':_0x4cc5cf}));});}const RABETBASE_SUBCOMMANDS=['dataset',a80_0x196261(0x1f5),a80_0x196261(0x213),'page','project',a80_0x196261(0x1cd),'schema',a80_0x196261(0x1fe),a80_0x196261(0x1db),'kb',a80_0x196261(0x1da),a80_0x196261(0x1fd),a80_0x196261(0x1fc),a80_0x196261(0x1f2),a80_0x196261(0x1e6),a80_0x196261(0x1c2)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x5e5e9a){const _0x31b329=a80_0x196261,_0x9ae6e3=_0x5e5e9a[_0x31b329(0x1f0)](/\brabetbase\b/i);if(_0x9ae6e3<0x0)return![];const _0x5c9bec=_0x5e5e9a[_0x31b329(0x1d1)](_0x9ae6e3)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x31b329(0x20e)](_0x5c9bec);}function parseFrontmatter(_0x1ac8e0){const _0x27d18c=a80_0x196261,_0x4e698b=_0x1ac8e0['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4e698b)return{'hasFrontmatter':![]};const _0x259e8a=_0x4e698b[0x1]??'',_0x46de58={'hasFrontmatter':!![]};let _0xa4dc2e;try{_0xa4dc2e=a80_0x5f02a7(_0x259e8a);}catch{return _0x46de58;}const _0x249658=asRecord(_0xa4dc2e);if(!_0x249658)return _0x46de58;_0x46de58[_0x27d18c(0x1ec)]=scalarToString(_0x249658[_0x27d18c(0x1ec)]),_0x46de58[_0x27d18c(0x1c4)]=scalarToString(_0x249658['displayName']),_0x46de58[_0x27d18c(0x1e1)]=scalarToString(_0x249658[_0x27d18c(0x1e1)]),_0x46de58[_0x27d18c(0x1c3)]=scalarToString(_0x249658['example']);const _0x3c902c=asRecord(_0x249658[_0x27d18c(0x1e5)]);return _0x3c902c&&(_0x46de58[_0x27d18c(0x1cc)]=scalarToString(_0x3c902c[_0x27d18c(0x1cc)]),_0x46de58['internal']=scalarToBoolean(_0x3c902c[_0x27d18c(0x1cf)])),_0x46de58;}function asRecord(_0x311f61){const _0x233aa7=a80_0x196261;if(_0x311f61&&typeof _0x311f61===_0x233aa7(0x1e7)&&!Array['isArray'](_0x311f61))return _0x311f61;return undefined;}function scalarToString(_0x90be41){const _0x2e0ff5=a80_0x196261;if(typeof _0x90be41===_0x2e0ff5(0x1c7))return _0x90be41[_0x2e0ff5(0x1d5)]();if(typeof _0x90be41===_0x2e0ff5(0x1ff)||typeof _0x90be41===_0x2e0ff5(0x214))return String(_0x90be41);return undefined;}function scalarToBoolean(_0x105e40){const _0x459fe0=a80_0x196261;if(typeof _0x105e40===_0x459fe0(0x214))return _0x105e40;if(typeof _0x105e40===_0x459fe0(0x1c7))return cleanBoolean(_0x105e40);return undefined;}function cleanBoolean(_0x30ad7f){const _0x2849bf=a80_0x196261,_0x245f51=_0x30ad7f['trim']()[_0x2849bf(0x1e9)]();if(_0x245f51===_0x2849bf(0x1f3))return!![];if(_0x245f51===_0x2849bf(0x1bf))return![];return undefined;}function issue(_0x3af24e,_0x23f570,_0x1bf902,_0x547a36,_0x11a7d2,_0x5a3dfa){return{'level':_0x3af24e,'ruleId':_0x23f570,'file':_0x1bf902,'section':_0x5a3dfa,'message':_0x547a36,'suggestion':_0x11a7d2};}
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 +1 @@
1
- const a81_0x4ef68a=a81_0x2cfa;(function(_0x557014,_0x6173c2){const _0x5e052b=a81_0x2cfa,_0x531b2f=_0x557014();while(!![]){try{const _0x5709d5=-parseInt(_0x5e052b(0x152))/0x1*(-parseInt(_0x5e052b(0x14a))/0x2)+parseInt(_0x5e052b(0x14e))/0x3+parseInt(_0x5e052b(0x142))/0x4*(parseInt(_0x5e052b(0x14d))/0x5)+parseInt(_0x5e052b(0x146))/0x6*(parseInt(_0x5e052b(0x14f))/0x7)+-parseInt(_0x5e052b(0x141))/0x8*(parseInt(_0x5e052b(0x145))/0x9)+parseInt(_0x5e052b(0x14b))/0xa*(parseInt(_0x5e052b(0x14c))/0xb)+-parseInt(_0x5e052b(0x13b))/0xc*(parseInt(_0x5e052b(0x13c))/0xd);if(_0x5709d5===_0x6173c2)break;else _0x531b2f['push'](_0x531b2f['shift']());}catch(_0x2b1e12){_0x531b2f['push'](_0x531b2f['shift']());}}}(a81_0x42dc,0x8ca64));function a81_0x2cfa(_0x5efc42,_0x4f2509){_0x5efc42=_0x5efc42-0x13b;const _0x42dc7c=a81_0x42dc();let _0x2cfa7d=_0x42dc7c[_0x5efc42];return _0x2cfa7d;}import{getSqlQueryInfo}from'../../core/api-client.js';function a81_0x42dc(){const _0xef40af=['bool','dbId','32031IqXyDC','30XjgXsv','sqlName','str','sqlContent','397016DKwQaF','8050720aGTEDs','11HNNpyv','155iATEGI','1857705rTgSWY','187411gkRjDi','sqlcode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','4UYljiA','5694780zajFoz','39omWyBR','appCode','detail','sql','verbose','1032GapWcc','13768wIpAxO'];a81_0x42dc=function(){return _0xef40af;};return a81_0x42dc();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a81_0x4ef68a(0x13f),'command':a81_0x4ef68a(0x13e),'description':a81_0x4ef68a(0x151),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x179cf6){const _0x22e110=a81_0x4ef68a,_0x29be57=await getSqlQueryInfo(_0x179cf6['appCode'],_0x179cf6[_0x22e110(0x148)](_0x22e110(0x150))),_0x4a14cf=_0x179cf6[_0x22e110(0x143)](_0x22e110(0x140));if(_0x4a14cf)return{'ok':!![],'data':_0x29be57};const _0x58c0f5=_0x29be57[_0x22e110(0x144)]?await getDbName(_0x179cf6[_0x22e110(0x13d)],_0x29be57[_0x22e110(0x144)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x29be57['sqlCode'],'sqlName':_0x29be57[_0x22e110(0x147)],'db':_0x58c0f5?_0x58c0f5+'\x20('+_0x29be57[_0x22e110(0x144)]+')':_0x29be57['dbId']??'','sqlContent':_0x29be57[_0x22e110(0x149)]??''}};}};
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 +1 @@
1
- const a82_0x1ee36f=a82_0x5161;function a82_0x5161(_0x24a5ed,_0x2e8633){_0x24a5ed=_0x24a5ed-0xbf;const _0x4ff580=a82_0x4ff5();let _0x51618c=_0x4ff580[_0x24a5ed];return _0x51618c;}(function(_0xae9a93,_0x5b89f2){const _0x657897=a82_0x5161,_0xa5a8d1=_0xae9a93();while(!![]){try{const _0x4bc21e=-parseInt(_0x657897(0xc8))/0x1+parseInt(_0x657897(0xbf))/0x2*(-parseInt(_0x657897(0xc4))/0x3)+-parseInt(_0x657897(0xc3))/0x4*(parseInt(_0x657897(0xca))/0x5)+parseInt(_0x657897(0xc2))/0x6+-parseInt(_0x657897(0xd5))/0x7+-parseInt(_0x657897(0xd3))/0x8*(-parseInt(_0x657897(0xc7))/0x9)+parseInt(_0x657897(0xc5))/0xa;if(_0x4bc21e===_0x5b89f2)break;else _0xa5a8d1['push'](_0xa5a8d1['shift']());}catch(_0x3f488c){_0xa5a8d1['push'](_0xa5a8d1['shift']());}}}(a82_0x4ff5,0x983a2));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_0x4ff5(){const _0x18e159=['params','211380MFWdgF','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','\x20row(s)\x20in\x20','length','execError','Returned\x20','str','isArray','SQL\x20execution\x20failed','807200AYyUfe','execResult','5292497qyofDY','2kkbyqB','exec','sqlcode','490386kPlpQE','100AERlya','554550xKQhgO','31915950kBZINm','execSuccess','45IMhAsH','1156483ueMUsg'];a82_0x4ff5=function(){return _0x18e159;};return a82_0x4ff5();}export const sqlExec={'service':'sql','command':a82_0x1ee36f(0xc0),'description':a82_0x1ee36f(0xcb),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x539334){const _0x2f4108=a82_0x1ee36f,_0x2bdafa=parseJsonParams(_0x539334['str'](_0x2f4108(0xc9))),_0x2f280a=Date['now'](),_0x1c0f8a=await executeSdkSql(_0x539334[_0x2f4108(0xd0)](_0x2f4108(0xc1)),_0x2bdafa),_0x531cdc=Date['now']()-_0x2f280a,_0x3536a3=_0x1c0f8a?.[_0x2f4108(0xd4)]??_0x1c0f8a,_0x3a32d2=_0x1c0f8a?.[_0x2f4108(0xc6)]??!![];if(!_0x3a32d2)return{'ok':![],'data':{'error':_0x1c0f8a?.[_0x2f4108(0xce)]||'SQL\x20execution\x20failed','elapsed':_0x531cdc},'message':_0x2f4108(0xd2)};const _0x3ca88e=Array[_0x2f4108(0xd1)](_0x3536a3)?_0x3536a3:[];return{'ok':!![],'data':{'rows':_0x3ca88e,'rowCount':_0x3ca88e[_0x2f4108(0xcd)],'elapsed':_0x531cdc},'message':_0x2f4108(0xcf)+_0x3ca88e[_0x2f4108(0xcd)]+_0x2f4108(0xcc)+_0x531cdc+'ms'};}};
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 +1 @@
1
- function a83_0x2e14(_0x157161,_0x40785b){_0x157161=_0x157161-0xc1;const _0x2717c8=a83_0x2717();let _0x2e1448=_0x2717c8[_0x157161];return _0x2e1448;}(function(_0x32f9e8,_0x225684){const _0xeec0bd=a83_0x2e14,_0x29b06e=_0x32f9e8();while(!![]){try{const _0x59900b=-parseInt(_0xeec0bd(0xcb))/0x1*(-parseInt(_0xeec0bd(0xc1))/0x2)+-parseInt(_0xeec0bd(0xc5))/0x3+parseInt(_0xeec0bd(0xc9))/0x4+-parseInt(_0xeec0bd(0xc3))/0x5*(-parseInt(_0xeec0bd(0xc8))/0x6)+parseInt(_0xeec0bd(0xc2))/0x7*(-parseInt(_0xeec0bd(0xca))/0x8)+-parseInt(_0xeec0bd(0xc4))/0x9*(parseInt(_0xeec0bd(0xcc))/0xa)+-parseInt(_0xeec0bd(0xc6))/0xb*(parseInt(_0xeec0bd(0xc7))/0xc);if(_0x59900b===_0x225684)break;else _0x29b06e['push'](_0x29b06e['shift']());}catch(_0x107867){_0x29b06e['push'](_0x29b06e['shift']());}}}(a83_0x2717,0x94a89));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a83_0x2717(){const _0x1b1a7e=['10zytCBY','22WLHiYt','4323809HjEUqs','10AHhokC','2935125PYsLqh','2511627ZCtBTU','22bwlWfu','971724yARmOi','908784eKSubG','4817524hDNbLB','8ZRrIxF','94961WFNfNf'];a83_0x2717=function(){return _0x1b1a7e;};return a83_0x2717();}
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];