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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x504c90=a67_0x5d45;(function(_0xb5f420,_0x2b1425){const _0x106050=a67_0x5d45,_0x37c161=_0xb5f420();while(!![]){try{const _0x5241fd=-parseInt(_0x106050(0xd3))/0x1+-parseInt(_0x106050(0xc8))/0x2*(parseInt(_0x106050(0xd0))/0x3)+-parseInt(_0x106050(0xc5))/0x4+parseInt(_0x106050(0xc2))/0x5+parseInt(_0x106050(0xcf))/0x6*(parseInt(_0x106050(0xb6))/0x7)+parseInt(_0x106050(0xd4))/0x8*(-parseInt(_0x106050(0xbe))/0x9)+parseInt(_0x106050(0xc1))/0xa;if(_0x5241fd===_0x2b1425)break;else _0x37c161['push'](_0x37c161['shift']());}catch(_0x26a4af){_0x37c161['push'](_0x37c161['shift']());}}}(a67_0x3d71,0xdfc27));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_0x504c90(0xb3),'description':a67_0x504c90(0xc6),'risk':a67_0x504c90(0xb8),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0xe45925){const _0x3251f4=a67_0x504c90,_0x2f21b4=_0xe45925[_0x3251f4(0xbf)]('code'),_0x9ce49e=normalizeListScope(_0xe45925[_0x3251f4(0xbf)](_0x3251f4(0xd1)));if(_0xe45925['bool'](_0x3251f4(0xc9))){const _0x1b453a=_0xe45925[_0x3251f4(0xcc)];if(!_0x1b453a)throw CliErrors[_0x3251f4(0xb7)]();const {listLocalRuntimeSkills:_0x1a9a74,resolveRuntimeSkillInstallTarget:_0x2a288d}=await import('../../../skills/runtime-skill-sync.js'),_0xbde803=_0x2a288d(_0xe45925['appCode'],_0xe45925['bool'](_0x3251f4(0xba))?'project':_0x3251f4(0xcd)),_0x39ce37=_0x1a9a74({'env':_0xe45925['envName']??_0x3251f4(0xd2),'accessKey':_0x1b453a,'appCode':_0xe45925[_0x3251f4(0xc4)],'scopes':listScopeToRuntimeScopes(_0x9ce49e),'code':_0x2f21b4[_0x3251f4(0xbb)]()||undefined},_0xbde803),_0x1244de=groupLocalRuntimeSkills(_0x39ce37);return{'ok':!![],'data':{'appCode':_0xe45925[_0x3251f4(0xc4)],'source':'local',..._0xbde803[_0x3251f4(0xd1)]===_0x3251f4(0xba)?{'installScope':_0xbde803[_0x3251f4(0xd1)]}:{},'scope':_0x9ce49e,'total':_0x39ce37[_0x3251f4(0xb4)],'personal':_0x1244de[_0x3251f4(0xc0)][_0x3251f4(0xb4)],'company':_0x1244de['company'][_0x3251f4(0xb4)],'items':_0x39ce37[_0x3251f4(0xc3)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1244de[_0x3251f4(0xc0)][_0x3251f4(0xc3)](summarizeLocalRuntimeSkill),'company':_0x1244de[_0x3251f4(0xca)][_0x3251f4(0xc3)](summarizeLocalRuntimeSkill)}},'message':_0x3251f4(0xb5)+_0x39ce37[_0x3251f4(0xb4)]+_0x3251f4(0xbc)};}const {listRuntimeSkills:_0xaacbdb}=await import(_0x3251f4(0xcb)),_0x35b6d4=await _0xaacbdb({'appCode':_0xe45925[_0x3251f4(0xc4)],'scope':listScopeToRemoteScope(_0x9ce49e),'code':_0x2f21b4[_0x3251f4(0xbb)]()||undefined}),_0x54a213=shouldListScope(_0x9ce49e,'personal')?_0x35b6d4[_0x3251f4(0xc0)]??[]:[],_0x5c1bf1=shouldListScope(_0x9ce49e,_0x3251f4(0xca))?_0x35b6d4[_0x3251f4(0xca)]??[]:[],_0x2e4412=[..._0x54a213,..._0x5c1bf1];return{'ok':!![],'data':{'appCode':_0xe45925[_0x3251f4(0xc4)],'source':_0x3251f4(0xce),'scope':_0x9ce49e,'total':_0x2e4412[_0x3251f4(0xb4)],'personal':_0x54a213['length'],'company':_0x5c1bf1[_0x3251f4(0xb4)],'items':_0x2e4412[_0x3251f4(0xc3)](summarizeRuntimeSkill),'skills':{'personal':_0x54a213[_0x3251f4(0xc3)](summarizeRuntimeSkill),'company':_0x5c1bf1[_0x3251f4(0xc3)](summarizeRuntimeSkill)}},'message':_0x3251f4(0xb5)+_0x2e4412[_0x3251f4(0xb4)]+_0x3251f4(0xb9)};}};function a67_0x3d71(){const _0x534486=['324KQgKlB','str','personal','20621690PfMbjU','8972515kOkSJm','map','appCode','3247396uGjqen','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','builtin','2372otFbTW','local','company','../../../core/api-client.js','accessKey','global','remote','126PKMdxO','3981JltIUb','scope','production','867373pyEPCD','59544aPDFPM','list','length','Listed\x20','193613UlaXJG','authRequired','read','\x20remote\x20Skill(s).','project','trim','\x20local\x20Skill(s).','filter'];a67_0x3d71=function(){return _0x534486;};return a67_0x3d71();}function a67_0x5d45(_0x11a472,_0x5eda77){_0x11a472=_0x11a472-0xb3;const _0x3d7197=a67_0x3d71();let _0x5d45a3=_0x3d7197[_0x11a472];return _0x5d45a3;}function groupLocalRuntimeSkills(_0x4210ba){const _0x138103=a67_0x504c90;return{'personal':_0x4210ba['filter'](_0x42dc41=>_0x42dc41['scope']===_0x138103(0xc0)),'company':_0x4210ba[_0x138103(0xbd)](_0x1275f2=>_0x1275f2[_0x138103(0xd1)]===_0x138103(0xca)),'builtin':_0x4210ba[_0x138103(0xbd)](_0x391fa8=>_0x391fa8[_0x138103(0xd1)]===_0x138103(0xc7))};}
@@ -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
+ const a68_0x552be3=a68_0x1f34;function a68_0x419d(){const _0x1a6f58=['1220cExnOk','4403070OCTnCA','1230408UqVoCU','5726VFAMXn','6VUbQBn','54742cXxSTz','4076lNBFxU','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\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','160801FRwxCV','1862730raSzzO','696XqjGyC'];a68_0x419d=function(){return _0x1a6f58;};return a68_0x419d();}function a68_0x1f34(_0x2884bc,_0x318441){_0x2884bc=_0x2884bc-0xda;const _0x419d9f=a68_0x419d();let _0x1f34bb=_0x419d9f[_0x2884bc];return _0x1f34bb;}(function(_0x56d50b,_0x1da8cc){const _0x4bf719=a68_0x1f34,_0x5f2402=_0x56d50b();while(!![]){try{const _0x24c311=-parseInt(_0x4bf719(0xdc))/0x1+parseInt(_0x4bf719(0xe4))/0x2*(parseInt(_0x4bf719(0xe3))/0x3)+-parseInt(_0x4bf719(0xe5))/0x4*(-parseInt(_0x4bf719(0xdf))/0x5)+parseInt(_0x4bf719(0xdd))/0x6+-parseInt(_0x4bf719(0xe2))/0x7*(-parseInt(_0x4bf719(0xde))/0x8)+parseInt(_0x4bf719(0xe1))/0x9+-parseInt(_0x4bf719(0xe0))/0xa;if(_0x24c311===_0x1da8cc)break;else _0x5f2402['push'](_0x5f2402['shift']());}catch(_0x188792){_0x5f2402['push'](_0x5f2402['shift']());}}}(a68_0x419d,0x35dbb));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':'skill','command':'push','description':a68_0x552be3(0xdb),'risk':'write','confirmationDescription':a68_0x552be3(0xda),'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
+ const a69_0x554643=a69_0x4b19;(function(_0x4df158,_0x5a9048){const _0x1ed09a=a69_0x4b19,_0x59d013=_0x4df158();while(!![]){try{const _0x362493=parseInt(_0x1ed09a(0x138))/0x1*(-parseInt(_0x1ed09a(0x12d))/0x2)+parseInt(_0x1ed09a(0x133))/0x3*(-parseInt(_0x1ed09a(0x13b))/0x4)+parseInt(_0x1ed09a(0x134))/0x5*(-parseInt(_0x1ed09a(0x13d))/0x6)+-parseInt(_0x1ed09a(0x131))/0x7*(parseInt(_0x1ed09a(0x12b))/0x8)+-parseInt(_0x1ed09a(0x12f))/0x9*(parseInt(_0x1ed09a(0x135))/0xa)+-parseInt(_0x1ed09a(0x13c))/0xb+-parseInt(_0x1ed09a(0x12c))/0xc*(-parseInt(_0x1ed09a(0x132))/0xd);if(_0x362493===_0x5a9048)break;else _0x59d013['push'](_0x59d013['shift']());}catch(_0x2ab10f){_0x59d013['push'](_0x59d013['shift']());}}}(a69_0x4f3b,0x23f40));function a69_0x4f3b(){const _0x39bd59=['bool','validate','5432WirzNP','7049676RPZHrr','1124RtFbzt','skill','9suPuUb','dir','2331LyYqLj','26YWdiUr','132402APoriu','5oBoblq','1901030TKtJmZ','type','str','395qTfLkA','read','warnings','4wVyfoC','1759318jVOyVh','1112460ANnsaO','Skill\x20validation\x20passed.'];a69_0x4f3b=function(){return _0x39bd59;};return a69_0x4f3b();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a69_0x4b19(_0x11d1d6,_0x188e52){_0x11d1d6=_0x11d1d6-0x12b;const _0x4f3bde=a69_0x4f3b();let _0x4b19a4=_0x4f3bde[_0x11d1d6];return _0x4b19a4;}export const validateCommand={'service':a69_0x554643(0x12e),'command':a69_0x554643(0x140),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a69_0x554643(0x139),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x1abcfd){const _0x3bfced=a69_0x554643,_0x448873=_0x1abcfd[_0x3bfced(0x13f)]('strict'),_0x32aaaf=validateSkillDirectory(_0x1abcfd[_0x3bfced(0x137)]('dir'),{'strict':_0x448873});return throwIfSkillValidationFailed(_0x32aaaf,_0x448873),{'ok':!![],'data':{'dir':_0x32aaaf[_0x3bfced(0x130)],'type':_0x32aaaf[_0x3bfced(0x136)],'errors':_0x32aaaf['errors'],'warnings':_0x32aaaf[_0x3bfced(0x13a)]},'message':_0x3bfced(0x13e)};}};
@@ -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(_0x18b888,_0x303ffe){const _0x2c4a9f=a70_0xa914,_0xb1999c=_0x18b888();while(!![]){try{const _0x31aa49=-parseInt(_0x2c4a9f(0x14d))/0x1+parseInt(_0x2c4a9f(0x153))/0x2*(parseInt(_0x2c4a9f(0x142))/0x3)+parseInt(_0x2c4a9f(0x150))/0x4+-parseInt(_0x2c4a9f(0x152))/0x5*(-parseInt(_0x2c4a9f(0x14f))/0x6)+parseInt(_0x2c4a9f(0x14c))/0x7+parseInt(_0x2c4a9f(0x156))/0x8+-parseInt(_0x2c4a9f(0x14e))/0x9;if(_0x31aa49===_0x303ffe)break;else _0xb1999c['push'](_0xb1999c['shift']());}catch(_0x39e39e){_0xb1999c['push'](_0xb1999c['shift']());}}}(a70_0x2272,0xd06c5));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';function a70_0xa914(_0x670616,_0xce5edb){_0x670616=_0x670616-0x142;const _0x2272cb=a70_0x2272();let _0xa9149d=_0x2272cb[_0x670616];return _0xa9149d;}function a70_0x2272(){const _0x35f253=['24KVcitw','1618728UOXeQA','utf8','1795960AioMXW','54258ZUneAg','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','validation','12361336YFDZsu','document','60LsUBwt','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','replace','trim','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','Mermaid\x20syntax\x20validation\x20failed.','window','default','defineProperties','94353wtFexz','452968fNqvKh','23724063exrCzy'];a70_0x2272=function(){return _0x35f253;};return a70_0x2272();}let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x4037cc){return(await readRequiredSkillDiagramInput(_0x4037cc))['diagram'];}export async function readRequiredSkillDiagramInput(_0xe091cb){const _0x3747a4=a70_0xa914,_0x184127=_0xe091cb[_0x3747a4(0x146)]();if(!_0x184127)throw CliErrors[_0x3747a4(0x155)](_0x3747a4(0x144),_0x3747a4(0x154));let _0x386cff,_0x4b2050;if(_0x184127==='-')try{_0x386cff=readFileSync(0x0,_0x3747a4(0x151));}catch{throw CliErrors[_0x3747a4(0x155)](_0x3747a4(0x147));}else{const _0x1f5ac9=resolve(_0x184127);if(!existsSync(_0x1f5ac9))throw CliErrors['validation']('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x1f5ac9);if(!statSync(_0x1f5ac9)['isFile']())throw CliErrors[_0x3747a4(0x155)](_0x3747a4(0x143)+_0x1f5ac9);_0x4b2050=realpathSync(_0x1f5ac9),_0x386cff=readFileSync(_0x4b2050,'utf8');}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x386cff)},'sourceFilePath':_0x4b2050};}export async function validateAndCanonicalizeMermaid(_0x4fe7eb){const _0x55d2cb=a70_0xa914,_0x336bf6=_0x4fe7eb[_0x55d2cb(0x145)](/\r\n/g,'\x0a')[_0x55d2cb(0x145)](/\r/g,'\x0a')[_0x55d2cb(0x145)](/\n+$/,'')+'\x0a';try{const _0x2e6418=await loadMermaidApi();await _0x2e6418['parse'](_0x336bf6);}catch{throw diagramValidationError();}return _0x336bf6;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x1dd20f=a70_0xa914;if(!(_0x1dd20f(0x149)in globalThis)||!(_0x1dd20f(0x157)in globalThis)){const _0x73f51=new JSDOM('');Object[_0x1dd20f(0x14b)](globalThis,{'window':{'configurable':!![],'value':_0x73f51[_0x1dd20f(0x149)]},'document':{'configurable':!![],'value':_0x73f51['window'][_0x1dd20f(0x157)]}});}return(await import('mermaid'))[_0x1dd20f(0x14a)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x31b256=a70_0xa914;return CliErrors[_0x31b256(0x155)](_0x31b256(0x148),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -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_0x6accd7=a71_0x4727;(function(_0x50e0d9,_0x2894c3){const _0x3f3700=a71_0x4727,_0x3efe96=_0x50e0d9();while(!![]){try{const _0x508458=-parseInt(_0x3f3700(0xaf))/0x1*(parseInt(_0x3f3700(0xd7))/0x2)+-parseInt(_0x3f3700(0xc4))/0x3+-parseInt(_0x3f3700(0xae))/0x4+-parseInt(_0x3f3700(0xcd))/0x5+-parseInt(_0x3f3700(0xc9))/0x6+parseInt(_0x3f3700(0xbd))/0x7+parseInt(_0x3f3700(0xbf))/0x8;if(_0x508458===_0x2894c3)break;else _0x3efe96['push'](_0x3efe96['shift']());}catch(_0x75c820){_0x3efe96['push'](_0x3efe96['shift']());}}}(a71_0x29d9,0x53be1));function a71_0x29d9(){const _0x84a471=['Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','target','number','all','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','name','confirm-warnings','Server-reported\x20SkillVersion\x20source\x20fingerprint','3761030SHZTzR','dir','15025312FWWMxp','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','personal','company','code','1438503EaPYRn','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','scope','2582052jedprM','boolean','diagram-file','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','2150285uqaywd','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','project','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','strict','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','force','type','source-fingerprint','8604WgZDfP','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','2465564tzXmYl','27gUMIPv','string','Local\x20Skill\x20directory\x20containing\x20SKILL.md','expected-diagram-revision'];a71_0x29d9=function(){return _0x84a471;};return a71_0x29d9();}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a71_0x4727(_0x2438e6,_0x2f1ad6){_0x2438e6=_0x2438e6-0xae;const _0x29d991=a71_0x29d9();let _0x47271d=_0x29d991[_0x2438e6];return _0x47271d;}export const CODE_FLAG={'name':a71_0x6accd7(0xc3),'type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a71_0x6accd7(0xc8),'type':'string','description':a71_0x6accd7(0xd8),'enum':[a71_0x6accd7(0xb8),a71_0x6accd7(0xc1),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x6accd7(0xc8),'type':a71_0x6accd7(0xb0),'description':a71_0x6accd7(0xcc),'default':a71_0x6accd7(0xc1),'enum':[a71_0x6accd7(0xc1),a71_0x6accd7(0xc2)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a71_0x6accd7(0xb0),'description':a71_0x6accd7(0xd1),'enum':[a71_0x6accd7(0xb8),a71_0x6accd7(0xc1),a71_0x6accd7(0xc2)]};export const LOCAL_FLAG={'name':'local','type':a71_0x6accd7(0xca),'description':a71_0x6accd7(0xc0)};export const DIR_FLAG={'name':a71_0x6accd7(0xbe),'type':a71_0x6accd7(0xb0),'required':!![],'description':a71_0x6accd7(0xb1)};export const DIAGRAM_FILE_FLAG={'name':a71_0x6accd7(0xcb),'type':'string','required':!![],'description':a71_0x6accd7(0xc5)};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0x6accd7(0xb0),'required':!![],'description':a71_0x6accd7(0xb3)};export const DIAGRAM_VERSION_FLAG={'name':'version','type':'string','required':!![],'description':a71_0x6accd7(0xce)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x6accd7(0xc8),'type':a71_0x6accd7(0xb0),'required':!![],'enum':['personal',a71_0x6accd7(0xc2)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x6accd7(0xd6),'type':'string','required':!![],'description':a71_0x6accd7(0xbc),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x6accd7(0xd0)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x6accd7(0xb2),'type':a71_0x6accd7(0xb7),'required':!![],'description':a71_0x6accd7(0xc6)};export const CREATE_NAME_FLAG={'name':a71_0x6accd7(0xba),'type':'string','required':!![],'description':a71_0x6accd7(0xb4),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x6accd7(0xd3)}};export const TYPE_FLAG={'name':a71_0x6accd7(0xd5),'type':a71_0x6accd7(0xb0),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x6accd7(0xb6),'type':'string','description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x6accd7(0xd4),'type':a71_0x6accd7(0xca),'description':a71_0x6accd7(0xc7)};export const PROJECT_TARGET_FLAG={'name':a71_0x6accd7(0xcf),'type':a71_0x6accd7(0xca),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x6accd7(0xbb),'type':a71_0x6accd7(0xca),'description':a71_0x6accd7(0xb5)};export const STRICT_FLAG={'name':a71_0x6accd7(0xd2),'type':'boolean','description':a71_0x6accd7(0xb9)};
@@ -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 a72_0x34aa(){const _0x41d0d7=['3267570myfAsc','3677826UeLcgz','2111388chilNP','1172221GqGZUD','14zluhmL','28607967ltpXrG','2GDYZsJ','1819980xGGUqU','15666880VDkpDh'];a72_0x34aa=function(){return _0x41d0d7;};return a72_0x34aa();}(function(_0x1aca1a,_0x3ec0b8){const _0x39fee6=a72_0x2879,_0x3886a3=_0x1aca1a();while(!![]){try{const _0x1f242e=-parseInt(_0x39fee6(0x78))/0x1*(-parseInt(_0x39fee6(0x72))/0x2)+-parseInt(_0x39fee6(0x75))/0x3+parseInt(_0x39fee6(0x77))/0x4+parseInt(_0x39fee6(0x73))/0x5+-parseInt(_0x39fee6(0x76))/0x6*(-parseInt(_0x39fee6(0x79))/0x7)+parseInt(_0x39fee6(0x74))/0x8+-parseInt(_0x39fee6(0x7a))/0x9;if(_0x1f242e===_0x3ec0b8)break;else _0x3886a3['push'](_0x3886a3['shift']());}catch(_0x5a554c){_0x3886a3['push'](_0x3886a3['shift']());}}}(a72_0x34aa,0xef621));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a72_0x2879(_0x33af03,_0x8e4380){_0x33af03=_0x33af03-0x72;const _0x34aae9=a72_0x34aa();let _0x2879ff=_0x34aae9[_0x33af03];return _0x2879ff;}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(_0x50005b,_0x2cf5b1){var _0x2f1069=a73_0x43e6,_0x49fe2f=_0x50005b();while(!![]){try{var _0x11d4ba=parseInt(_0x2f1069(0x10c))/0x1+parseInt(_0x2f1069(0x113))/0x2+-parseInt(_0x2f1069(0x108))/0x3*(-parseInt(_0x2f1069(0x10b))/0x4)+-parseInt(_0x2f1069(0x10a))/0x5*(-parseInt(_0x2f1069(0x106))/0x6)+parseInt(_0x2f1069(0x112))/0x7*(parseInt(_0x2f1069(0x10d))/0x8)+-parseInt(_0x2f1069(0x111))/0x9+-parseInt(_0x2f1069(0x10f))/0xa*(parseInt(_0x2f1069(0x110))/0xb);if(_0x11d4ba===_0x2cf5b1)break;else _0x49fe2f['push'](_0x49fe2f['shift']());}catch(_0x47a160){_0x49fe2f['push'](_0x49fe2f['shift']());}}}(a73_0x4c60,0xba596));function a73_0x4c60(){var _0x363ad4=['5CUsXoe','8pMxdmZ','1094509cmDINf','1287928bvImOI','ossPath','22006430gPRaxH','22HbHGUW','2593440kqKOxP','42jgfcVB','2686632wrevPU','isArray','files','string','some','5018802DgLxdl','object','1818741McEhAU','SKILL.md'];a73_0x4c60=function(){return _0x363ad4;};return a73_0x4c60();}export function isPackageBackedManifest(_0x233bed){var _0x19d7c8=a73_0x43e6;return!!_0x233bed&&typeof _0x233bed==='object'&&!Array[_0x19d7c8(0x114)](_0x233bed)&&typeof _0x233bed[_0x19d7c8(0x10e)]===_0x19d7c8(0x116)&&_0x233bed[_0x19d7c8(0x10e)]['length']>0x0&&Array[_0x19d7c8(0x114)](_0x233bed[_0x19d7c8(0x115)]);}function a73_0x43e6(_0x2c5f87,_0x240aa7){_0x2c5f87=_0x2c5f87-0x106;var _0x4c60fb=a73_0x4c60();var _0x43e606=_0x4c60fb[_0x2c5f87];return _0x43e606;}export function isMultiFileManifest(_0x520c63){var _0xe8f254=a73_0x43e6;return!!_0x520c63&&typeof _0x520c63===_0xe8f254(0x107)&&!Array[_0xe8f254(0x114)](_0x520c63)&&Array[_0xe8f254(0x114)](_0x520c63[_0xe8f254(0x115)])&&_0x520c63[_0xe8f254(0x115)][_0xe8f254(0x117)](_0x86e748=>_0x86e748['path']!==_0xe8f254(0x109));}
@@ -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 a74_0x5253(){const _0x27fc94=['\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','/publish/validate','PRIVATE','warnings','248164CYqNRq','existing','241591iMtMLk','1272716MmRcJZ','Company','validation','\x20has\x20scope=\x22','valid','payload','4000743gaixUZ','appcode','\x20version\x20','confirm-warnings','trim','unknown','resolvedSlug','files','metadata','bool','\x20Skill\x20','personal','remoteForPreflight','identical','../../skills/runtime-skill-sync.js','3809375zmmaNX','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','diagramValidated','199532yGAJrh','/api/cli/v1/skills/','str','diagram-file','savedSkill','input','company','POST','NAMESPACE_ONLY','submitted','accessKey','60UkUlGi','resolvedVersion','6LTKoMC','4001880UnnZmI','\x20for\x20review','scope','errors','Submitted\x20company\x20Skill\x20','Updated\x20personal\x20Skill\x20','appCode','publishInput','skillCode','dir','../../core/api-client.js','Personal','version'];a74_0x5253=function(){return _0x27fc94;};return a74_0x5253();}(function(_0x23daab,_0x1a36b9){const _0x2afd29=a74_0x52ce,_0x3a523e=_0x23daab();while(!![]){try{const _0x3787e7=parseInt(_0x2afd29(0x94))/0x1+parseInt(_0x2afd29(0x97))/0x2+parseInt(_0x2afd29(0x80))/0x3*(-parseInt(_0x2afd29(0xaf))/0x4)+parseInt(_0x2afd29(0xac))/0x5+-parseInt(_0x2afd29(0x82))/0x6*(-parseInt(_0x2afd29(0x96))/0x7)+parseInt(_0x2afd29(0x83))/0x8+-parseInt(_0x2afd29(0x9d))/0x9;if(_0x3787e7===_0x1a36b9)break;else _0x3a523e['push'](_0x3a523e['shift']());}catch(_0x1cb328){_0x3a523e['push'](_0x3a523e['shift']());}}}(a74_0x5253,0xb468e));function a74_0x52ce(_0x16093b,_0x277eb4){_0x16093b=_0x16093b-0x76;const _0x52536e=a74_0x5253();let _0x52ceb5=_0x52536e[_0x16093b];return _0x52ceb5;}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';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1c51c9){const _0x3a78d1=a74_0x52ce,{getRuntimeSkillByCode:_0x2ef1a3,validateRuntimeSkillPublish:_0x55a580}=await import(_0x3a78d1(0x8d)),{readPushDirectory:_0x5848ea,resolvePushDirectoryIdentity:_0xca0ee}=await import(_0x3a78d1(0xab));if(!_0x1c51c9[_0x3a78d1(0x7f)])throw CliErrors['authRequired']();const _0x258ec=resolvePushScope(_0x1c51c9),_0x465636=validateSkillDirectory(_0x1c51c9['str'](_0x3a78d1(0x8c)));throwIfSkillValidationFailed(_0x465636);const {diagram:_0x4c6c80,sourceFilePath:_0x3a2621}=await readRequiredSkillDiagramInput(_0x1c51c9[_0x3a78d1(0x77)]('diagram-file')),_0x5e461a=diagramPackageExclusion(_0x3a2621),_0xcb130=_0xca0ee(_0x465636[_0x3a78d1(0x8c)],_0x1c51c9['appCode'],remoteFirstMetadataOptions()),_0x3afea7=await _0x2ef1a3(_0x1c51c9[_0x3a78d1(0x89)],_0xcb130[_0x3a78d1(0x8b)]);throwIfBuiltinPushTarget(_0x3afea7);if(_0x258ec==='company'){const _0x27070b=_0x5848ea(_0x465636[_0x3a78d1(0x8c)],_0x1c51c9[_0x3a78d1(0x89)],{...remoteMissingCompanyReadOptions(),..._0x5e461a}),_0x5cb9b3=await _0x55a580(_0x1c51c9['appCode'],withDiagram(_0x27070b[_0x3a78d1(0x7a)],_0x4c6c80),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3a78d1(0x7c),'url':'/api/cli/v1/skills/'+_0x1c51c9[_0x3a78d1(0x89)]+_0x3a78d1(0x91),'body':{'skillCode':_0x27070b[_0x3a78d1(0x8b)],'visibility':_0x3a78d1(0x7d),'valid':_0x5cb9b3[_0x3a78d1(0x9b)],'errors':_0x5cb9b3[_0x3a78d1(0x86)],'warnings':_0x5cb9b3['warnings'],'resolvedSlug':_0x5cb9b3['resolvedSlug'],'resolvedVersion':_0x5cb9b3[_0x3a78d1(0x81)],'diagramValidated':_0x5cb9b3[_0x3a78d1(0xae)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x3afea7&&_0x3afea7[_0x3a78d1(0x85)]!==_0x3a78d1(0xa8))throw CliErrors[_0x3a78d1(0x99)](_0x3a78d1(0xad)+_0xcb130[_0x3a78d1(0x8b)]+_0x3a78d1(0x9a)+(_0x3afea7[_0x3a78d1(0x85)]??_0x3a78d1(0xa2))+'\x22.');const _0x28ab64=_0x5848ea(_0x465636['dir'],_0x1c51c9['appCode'],{..._0x3afea7?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5e461a}),_0x332eb9=await _0x55a580(_0x1c51c9['appCode'],withDiagram(_0x28ab64[_0x3a78d1(0x7a)],_0x4c6c80),{'visibility':'PRIVATE'});return{'method':_0x3a78d1(0x7c),'url':_0x3a78d1(0x76)+_0x1c51c9['appCode']+_0x3a78d1(0x91),'body':{'skillCode':_0x28ab64[_0x3a78d1(0x8b)],'visibility':'PRIVATE','valid':_0x332eb9[_0x3a78d1(0x9b)],'errors':_0x332eb9[_0x3a78d1(0x86)],'warnings':_0x332eb9['warnings'],'resolvedSlug':_0x332eb9[_0x3a78d1(0xa3)],'resolvedVersion':_0x332eb9['resolvedVersion'],'diagramValidated':_0x332eb9[_0x3a78d1(0xae)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x2a723f){const _0x48f983=a74_0x52ce,{createPersonalRuntimeSkill:_0x476c14,downloadRuntimeSkillPackage:_0x4cb4d4,getRuntimeSkillByCode:_0x480066,publishCompanyRuntimeSkill:_0x1812a8,updatePersonalRuntimeSkill:_0x1a1973,validateRuntimeSkillPublish:_0x101eb4}=await import(_0x48f983(0x8d)),{verifyRuntimeSkillPackage:_0x513d4e,verifyRuntimeSkillBundle:_0x316caa,readPushDirectory:_0x3e0e79,refreshPushDirectoryMetadataFromRemote:_0x2c0e16,recordPushedRuntimeSkill:_0x16e723,resolvePushDirectoryIdentity:_0x26c9a7}=await import('../../skills/runtime-skill-sync.js');if(!_0x2a723f[_0x48f983(0x7f)])throw CliErrors['authRequired']();const _0x50e139=resolvePushScope(_0x2a723f),_0x4dbbc2=_0x2a723f[_0x48f983(0xa6)](_0x48f983(0xa0))||_0x2a723f[_0x48f983(0xa6)]('confirmWarnings'),_0x8980a6=validateSkillDirectory(_0x2a723f['str']('dir'));throwIfSkillValidationFailed(_0x8980a6);const {diagram:_0x5b4790,sourceFilePath:_0x43e881}=await readRequiredSkillDiagramInput(_0x2a723f[_0x48f983(0x77)](_0x48f983(0x78))),_0x486549=diagramPackageExclusion(_0x43e881),_0x5326ac=_0x8980a6[_0x48f983(0x8c)];let _0x1864d8;if(_0x50e139==='company'){const _0x1d77aa=_0x26c9a7(_0x5326ac,_0x2a723f['appCode'],remoteFirstMetadataOptions()),_0x1bf577=await _0x480066(_0x2a723f['appCode'],_0x1d77aa[_0x48f983(0x8b)]);throwIfBuiltinPushTarget(_0x1bf577);if(_0x1bf577)_0x2c0e16(_0x5326ac,_0x1bf577,_0x2a723f[_0x48f983(0x89)]);const _0x239ec3=_0x3e0e79(_0x5326ac,_0x2a723f['appCode'],{..._0x1bf577?{'targetScope':_0x48f983(0x7b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x486549});_0x1864d8={'scope':_0x48f983(0x7b),'payload':_0x239ec3,'publishInput':withDiagram(_0x239ec3[_0x48f983(0x7a)],_0x5b4790),'remoteForPreflight':_0x1bf577,'warnings':[]};}else{const _0x45d5e7=_0x2a723f['str'](_0x48f983(0x9e))[_0x48f983(0xa1)](),_0x338f2f=Boolean(_0x45d5e7),_0x44a4d1=allowRetargetArgs(_0x338f2f),_0x3078cb=_0x26c9a7(_0x5326ac,_0x2a723f['appCode'],{...remoteFirstMetadataOptions(),..._0x44a4d1[0x0]}),_0x49d645=await _0x480066(_0x2a723f[_0x48f983(0x89)],_0x3078cb['skillCode']);throwIfBuiltinPushTarget(_0x49d645);if(_0x49d645){if(_0x49d645['scope']!==_0x48f983(0xa8)){if(_0x338f2f)throw CliErrors[_0x48f983(0x99)](_0x48f983(0xad)+_0x3078cb[_0x48f983(0x8b)]+'\x20has\x20scope=\x22'+(_0x49d645[_0x48f983(0x85)]??_0x48f983(0xa2))+'\x22.');_0x2c0e16(_0x5326ac,_0x49d645,_0x2a723f['appCode']);}else!_0x338f2f&&_0x2c0e16(_0x5326ac,_0x49d645,_0x2a723f[_0x48f983(0x89)]);}const _0x3d14d7=_0x3e0e79(_0x5326ac,_0x2a723f[_0x48f983(0x89)],{..._0x49d645?remotePersonalReadOptions(_0x338f2f,_0x44a4d1[0x0]):remoteMissingPersonalReadOptions(_0x44a4d1[0x0]),..._0x486549}),_0x199e7e=_0x49d645?.[_0x48f983(0x85)]==='personal'&&_0x49d645[_0x48f983(0x8b)]===_0x3d14d7[_0x48f983(0x8b)]?_0x49d645:undefined,_0x56e812=_0x338f2f&&_0x199e7e?withRetargetExistingMetadata(_0x3d14d7[_0x48f983(0x7a)],_0x199e7e,{'preferInputSkillName':Boolean(_0x3d14d7['frontmatterDisplayName'])}):_0x3d14d7['input'],_0x2655b6=_0x338f2f?buildRetargetWarning(_0x3078cb[_0x48f983(0xa5)],_0x2a723f[_0x48f983(0x89)]):[];_0x1864d8={'scope':'personal','payload':_0x3d14d7,'publishInput':withDiagram(_0x56e812,_0x5b4790),'remoteForPreflight':_0x199e7e,'existing':_0x199e7e,'warnings':[..._0x8980a6[_0x48f983(0x93)],..._0x2655b6]};}const _0x2dd656=await runRemoteContentPreflight({'scope':_0x1864d8[_0x48f983(0x85)],'remote':_0x1864d8[_0x48f983(0xa9)],'publishInput':_0x1864d8[_0x48f983(0x8a)],'skillCode':_0x1864d8['payload'][_0x48f983(0x8b)],'appCode':_0x2a723f[_0x48f983(0x89)],'downloadRuntimeSkillPackage':_0x4cb4d4,'verifyRuntimeSkillBundle':_0x316caa});if(_0x2dd656['status']===_0x48f983(0xaa))return _0x1864d8[_0x48f983(0x85)]===_0x48f983(0x7b)?_0x16e723(_0x5326ac,_0x2dd656[_0x48f983(0x79)],_0x2a723f['appCode'],{'scope':_0x48f983(0x7b)}):_0x16e723(_0x5326ac,_0x2dd656[_0x48f983(0x79)],_0x2a723f['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2dd656[_0x48f983(0x79)]),'scope':_0x1864d8[_0x48f983(0x85)],..._0x1864d8['scope']==='personal'?{'warnings':_0x1864d8[_0x48f983(0x93)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x1864d8['scope'])+_0x48f983(0xa7)+_0x1864d8[_0x48f983(0x9c)][_0x48f983(0x8b)]+_0x48f983(0x90)};if(_0x1864d8['scope']===_0x48f983(0x7b)){const _0x1a93d8=await _0x101eb4(_0x2a723f['appCode'],_0x1864d8[_0x48f983(0x8a)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x48f983(0x7b),_0x1864d8[_0x48f983(0x9c)][_0x48f983(0x8b)],_0x1a93d8),throwIfUnconfirmedPublishWarnings('company',_0x1864d8[_0x48f983(0x9c)][_0x48f983(0x8b)],_0x1a93d8[_0x48f983(0x93)],_0x4dbbc2);const _0x4f3e72=await _0x1812a8(_0x2a723f[_0x48f983(0x89)],_0x1864d8['publishInput'],{'confirmWarnings':_0x4dbbc2});return _0x16e723(_0x5326ac,{..._0x4f3e72,'files':_0x1864d8['publishInput'][_0x48f983(0xa4)]},_0x2a723f[_0x48f983(0x89)],{'scope':_0x48f983(0x7b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4f3e72),'scope':'company','reviewState':_0x48f983(0x7e),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x1a93d8[_0x48f983(0x93)]}},'message':_0x48f983(0x87)+_0x1864d8[_0x48f983(0x9c)][_0x48f983(0x8b)]+_0x48f983(0x9f)+(_0x4f3e72[_0x48f983(0x8f)]??'(unknown)')+_0x48f983(0x84)};}const _0x340ab0=await _0x101eb4(_0x2a723f[_0x48f983(0x89)],_0x1864d8[_0x48f983(0x8a)],{'visibility':_0x48f983(0x92)});throwIfPublishValidationFailed(_0x48f983(0xa8),_0x1864d8['payload'][_0x48f983(0x8b)],_0x340ab0),throwIfUnconfirmedPublishWarnings(_0x48f983(0xa8),_0x1864d8[_0x48f983(0x9c)][_0x48f983(0x8b)],_0x340ab0[_0x48f983(0x93)],_0x4dbbc2);const _0x402a54={'confirmWarnings':_0x4dbbc2},_0x2e7d8=_0x1864d8[_0x48f983(0x95)]?await _0x1a1973(_0x1864d8[_0x48f983(0x9c)]['skillCode'],_0x2a723f[_0x48f983(0x89)],_0x1864d8[_0x48f983(0x8a)],_0x402a54):await _0x476c14(_0x2a723f['appCode'],_0x1864d8[_0x48f983(0x8a)],_0x402a54);let _0x377ecf=_0x2e7d8;if(isMultiFileManifest(_0x1864d8[_0x48f983(0x8a)][_0x48f983(0xa4)])){const _0x32d15a=await _0x4cb4d4(_0x48f983(0xa8),_0x2e7d8[_0x48f983(0x8b)]||_0x1864d8['payload'][_0x48f983(0x8b)],_0x2a723f[_0x48f983(0x89)]);_0x316caa(_0x1864d8[_0x48f983(0x8a)][_0x48f983(0xa4)],_0x32d15a),_0x377ecf={..._0x2e7d8,'files':_0x1864d8[_0x48f983(0x8a)]['files']};}else{if(isPackageBackedManifest(_0x2e7d8['files'])){const _0x1d63f7=await _0x4cb4d4(_0x48f983(0xa8),_0x2e7d8[_0x48f983(0x8b)]||_0x1864d8[_0x48f983(0x9c)]['skillCode'],_0x2a723f[_0x48f983(0x89)]);_0x513d4e(_0x2e7d8['files'],_0x1d63f7);}}return _0x16e723(_0x5326ac,_0x377ecf,_0x2a723f[_0x48f983(0x89)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2e7d8),'warnings':_0x1864d8[_0x48f983(0x93)],'validation':{'warnings':_0x340ab0['warnings']},'diagramBound':!![]},'message':_0x1864d8[_0x48f983(0x95)]?_0x48f983(0x88)+_0x1864d8[_0x48f983(0x9c)]['skillCode']:'Created\x20personal\x20Skill\x20'+_0x1864d8['payload']['skillCode']};}function scopeLabel(_0x5e02bf){const _0x16c750=a74_0x52ce;return _0x5e02bf===_0x16c750(0x7b)?_0x16c750(0x98):_0x16c750(0x8e);}function withDiagram(_0x50dd6a,_0x3fa362){return{..._0x50dd6a,'diagram':_0x3fa362};}function diagramPackageExclusion(_0x4f3ab8){return _0x4f3ab8?{'excludedFilePaths':[_0x4f3ab8]}:{};}
@@ -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(_0x5c53f9,_0x4baceb){const _0x7f78fc=a75_0x3d26,_0x3d9ef2=_0x5c53f9();while(!![]){try{const _0x2857ad=-parseInt(_0x7f78fc(0x8e))/0x1*(parseInt(_0x7f78fc(0xa5))/0x2)+parseInt(_0x7f78fc(0x96))/0x3*(parseInt(_0x7f78fc(0x9b))/0x4)+-parseInt(_0x7f78fc(0xb9))/0x5*(-parseInt(_0x7f78fc(0xb4))/0x6)+parseInt(_0x7f78fc(0xa4))/0x7+-parseInt(_0x7f78fc(0x9f))/0x8+-parseInt(_0x7f78fc(0x99))/0x9+parseInt(_0x7f78fc(0xaa))/0xa;if(_0x2857ad===_0x4baceb)break;else _0x3d9ef2['push'](_0x3d9ef2['shift']());}catch(_0x468f6d){_0x3d9ef2['push'](_0x3d9ef2['shift']());}}}(a75_0x4c54,0xcf190));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0xc35f34){const _0x2d5e3b=a75_0x3d26,_0x2737c1=_0xc35f34[_0x2d5e3b(0x95)](_0x2d5e3b(0x97))||_0x2d5e3b(0xb3);if(_0x2737c1==='personal'||_0x2737c1===_0x2d5e3b(0xa2))return _0x2737c1;throw CliErrors[_0x2d5e3b(0xa9)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x2737c1+'\x22.');}export function allowRetargetArgs(_0x52b328){return _0x52b328?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x11a2e6=a75_0x3d26;return{'targetScope':_0x11a2e6(0xa2),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0xfd84a5={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0xfd84a5};}function a75_0x3d26(_0x3d638c,_0xfa5ed4){_0x3d638c=_0x3d638c-0x8b;const _0x4c54b2=a75_0x4c54();let _0x3d2699=_0x4c54b2[_0x3d638c];return _0x3d2699;}export function remotePersonalReadOptions(_0x1cd1ab,_0x3bb686={}){return{'ignoreInvalidMetadata':!![],..._0x1cd1ab?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x3bb686};}export function throwIfBuiltinPushTarget(_0x320627){const _0x4a9431=a75_0x3d26;if(_0x320627?.['scope']!==_0x4a9431(0x9d))return;throw CliErrors[_0x4a9431(0xa9)](_0x4a9431(0x98)+(_0x320627[_0x4a9431(0xad)]??_0x4a9431(0x9a))+_0x4a9431(0xb8),_0x4a9431(0xb0));}function a75_0x4c54(){const _0x125896=['6aYSzrS','join','Warnings:\x20','not-applicable','\x20cannot\x20be\x20pushed.','52050OIEEOh','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','valid','warnings','verifyRuntimeSkillBundle','76431CsZqiK','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','publishInput','warning','version','identical','Local\x20Skill\x20metadata\x20appCode\x20','str','87MvpyoP','scope','Builtin\x20Skill\x20','4522977xEVTqh','(unknown)','166492zmAfjE','remote','builtin','files','11396440PJkujJ','lovrabet.skill.json','skill-metadata-appcode-retargeted','company','content','8201403zprrZV','6hlufee','different','SkillHub\x20validation\x20returned\x20invalid.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','validation','6155670JLQUCL','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','downloadRuntimeSkillPackage','skillCode','Company','appCode','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','length','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','personal'];a75_0x4c54=function(){return _0x125896;};return a75_0x4c54();}export function throwIfPublishValidationFailed(_0x2205d6,_0x3ea2fd,_0x2f8530){const _0x290346=a75_0x3d26;if(_0x2f8530['errors']['length']===0x0&&(_0x2f8530[_0x290346(0x8b)]||_0x2f8530[_0x290346(0x8c)]['length']>0x0))return;const _0x4e42bc=_0x2f8530['errors'][_0x290346(0xb1)]>0x0?_0x2f8530['errors'][_0x290346(0xb5)](';\x20'):_0x290346(0xa7),_0x17203d=_0x2205d6===_0x290346(0xa2)?_0x290346(0xae):'Personal';throw CliErrors['validation'](_0x17203d+_0x290346(0xa8)+_0x3ea2fd+'.',_0x4e42bc);}export function throwIfUnconfirmedPublishWarnings(_0x21b9e5,_0x47859d,_0x539b42,_0x10a981){const _0x2cec9f=a75_0x3d26;if(_0x539b42['length']===0x0||_0x10a981)return;const _0x570b8d=_0x21b9e5===_0x2cec9f(0xa2)?'Company':'Personal';throw CliErrors[_0x2cec9f(0xa9)](_0x570b8d+_0x2cec9f(0xb2)+_0x47859d+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0x2cec9f(0xab),_0x2cec9f(0xba),_0x2cec9f(0xb6)+_0x539b42[_0x2cec9f(0xb5)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x2dc672,_0x1495fd){const _0x31baad=a75_0x3d26;if(!_0x2dc672?.[_0x31baad(0xaf)]||_0x2dc672[_0x31baad(0xaf)]===_0x1495fd)return[];return[{'level':_0x31baad(0x91),'ruleId':_0x31baad(0xa1),'file':_0x31baad(0xa0),'message':_0x31baad(0x94)+_0x2dc672[_0x31baad(0xaf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x1495fd+'\x20after\x20successful\x20push.','suggestion':_0x31baad(0x8f)}];}export async function runRemoteContentPreflight(_0x3d3044){const _0x1032e1=a75_0x3d26;if(!_0x3d3044[_0x1032e1(0x9c)]||_0x3d3044[_0x1032e1(0x9c)]['scope']!==_0x3d3044['scope']||!_0x3d3044[_0x1032e1(0x90)]['files'])return{'status':_0x1032e1(0xb7)};const _0x16ce1f=_0x3d3044[_0x1032e1(0x9c)]['skillCode']||_0x3d3044[_0x1032e1(0xad)];if(!_0x16ce1f)return{'status':'not-applicable'};const _0x2801a9=await _0x3d3044[_0x1032e1(0xac)](_0x3d3044[_0x1032e1(0x97)],_0x16ce1f,_0x3d3044[_0x1032e1(0xaf)],_0x3d3044[_0x1032e1(0x9c)][_0x1032e1(0x92)]);try{_0x3d3044[_0x1032e1(0x8d)](_0x3d3044[_0x1032e1(0x90)][_0x1032e1(0x9e)],_0x2801a9);}catch{return{'status':_0x1032e1(0xa6)};}return{'status':_0x1032e1(0x93),'savedSkill':{..._0x3d3044[_0x1032e1(0x9c)],'content':_0x3d3044['publishInput'][_0x1032e1(0xa3)],'files':_0x3d3044[_0x1032e1(0x90)][_0x1032e1(0x9e)]}};}
@@ -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(_0x2b916f,_0x5e3d9a){const _0x49c74d=a76_0x4271,_0x41cca7=_0x2b916f();while(!![]){try{const _0x16dc38=-parseInt(_0x49c74d(0x106))/0x1+parseInt(_0x49c74d(0x101))/0x2+parseInt(_0x49c74d(0x105))/0x3+parseInt(_0x49c74d(0x10c))/0x4+-parseInt(_0x49c74d(0xf8))/0x5*(parseInt(_0x49c74d(0x10e))/0x6)+-parseInt(_0x49c74d(0xf9))/0x7*(-parseInt(_0x49c74d(0x100))/0x8)+-parseInt(_0x49c74d(0x102))/0x9*(-parseInt(_0x49c74d(0xfa))/0xa);if(_0x16dc38===_0x5e3d9a)break;else _0x41cca7['push'](_0x41cca7['shift']());}catch(_0x2e5ec6){_0x41cca7['push'](_0x41cca7['shift']());}}}(a76_0x46c4,0x73a27));function a76_0x46c4(){const _0x1ab7bd=['7171730vFXMxJ','description','lovrabet.skill.json','skill-metadata-appcode-retargeted','preferInputSkillName','version','312pShQgf','1654588gVwVwf','9XjYAhN','appCode','tags','1212162DtXmxB','741763IHaOIA','skillName','isArray','\x20after\x20successful\x20push.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','sourceSessionId','171012TPDRUP','Local\x20Skill\x20metadata\x20appCode\x20','5237190NFGvvw','warning','5VTQcIo','17409JNbyQc'];a76_0x46c4=function(){return _0x1ab7bd;};return a76_0x46c4();}export function withRetargetExistingMetadata(_0x1e3e5e,_0x4e755d,_0xb5e298={}){const _0x257283=a76_0x4271,_0x9cc43d=_0xb5e298[_0x257283(0xfe)]?_0x1e3e5e['skillName']??_0x4e755d['skillName']:_0x4e755d['skillName']??_0x1e3e5e[_0x257283(0x107)];return{..._0x1e3e5e,'skillName':_0x9cc43d,'description':_0x4e755d[_0x257283(0xfb)]??_0x1e3e5e['description'],'tags':Array[_0x257283(0x108)](_0x4e755d[_0x257283(0x104)])?_0x4e755d['tags']:_0x1e3e5e['tags'],'version':_0x4e755d[_0x257283(0xff)]??_0x1e3e5e[_0x257283(0xff)],'sourceSessionId':_0x4e755d[_0x257283(0x10b)]??_0x1e3e5e[_0x257283(0x10b)]};}function a76_0x4271(_0x141a2d,_0x5f3a5b){_0x141a2d=_0x141a2d-0xf8;const _0x46c4a5=a76_0x46c4();let _0x4271f2=_0x46c4a5[_0x141a2d];return _0x4271f2;}export function buildRetargetWarning(_0x2e8652,_0x4d8301){const _0x28566c=a76_0x4271;if(!_0x2e8652?.[_0x28566c(0x103)]||_0x2e8652['appCode']===_0x4d8301)return[];return[{'level':_0x28566c(0x10f),'ruleId':_0x28566c(0xfd),'file':_0x28566c(0xfc),'message':_0x28566c(0x10d)+_0x2e8652[_0x28566c(0x103)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x4d8301+_0x28566c(0x109),'suggestion':_0x28566c(0x10a)}];}
@@ -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(_0x3171fc,_0x1346f8){const _0xdd2dfb=a77_0x3032,_0x3a59db=_0x3171fc();while(!![]){try{const _0x5a28ec=parseInt(_0xdd2dfb(0x1d0))/0x1+parseInt(_0xdd2dfb(0x1d4))/0x2*(parseInt(_0xdd2dfb(0x1db))/0x3)+-parseInt(_0xdd2dfb(0x1d7))/0x4*(parseInt(_0xdd2dfb(0x1cf))/0x5)+parseInt(_0xdd2dfb(0x1ce))/0x6+-parseInt(_0xdd2dfb(0x1d8))/0x7*(-parseInt(_0xdd2dfb(0x1d6))/0x8)+parseInt(_0xdd2dfb(0x1da))/0x9+-parseInt(_0xdd2dfb(0x1cc))/0xa;if(_0x5a28ec===_0x1346f8)break;else _0x3a59db['push'](_0x3a59db['shift']());}catch(_0x2e04db){_0x3a59db['push'](_0x3a59db['shift']());}}}(a77_0xd665,0xadaac));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1c34f8){const _0x339106=a77_0x3032,_0x4930be=_0x1c34f8[_0x339106(0x1d1)]();if(!_0x4930be||_0x4930be==='all')return[_0x339106(0x1d2),_0x339106(0x1d5)];if(_0x4930be===_0x339106(0x1d2)||_0x4930be===_0x339106(0x1d5))return[_0x4930be];throw CliErrors[_0x339106(0x1d3)](_0x339106(0x1d9)+_0x1c34f8);}function a77_0x3032(_0x38708f,_0x11045b){_0x38708f=_0x38708f-0x1cb;const _0xd665fa=a77_0xd665();let _0x30326=_0xd665fa[_0x38708f];return _0x30326;}function a77_0xd665(){const _0x44bb98=['901726eWCppk','Unsupported\x20Skill\x20sync\x20scope:\x20','3320388JhlJty','3XuWWaz','all','6921920LJnAlH','Unsupported\x20Skill\x20list\x20scope:\x20','3660420yDWwdd','6670025xkIKIm','566438omPGeG','trim','personal','validation','1096014jwiBNQ','company','40bLHtnX','4nNpckw'];a77_0xd665=function(){return _0x44bb98;};return a77_0xd665();}export function normalizeListScope(_0x42237e){const _0x212007=a77_0x3032,_0x1f93bb=_0x42237e[_0x212007(0x1d1)]();if(!_0x1f93bb)return _0x212007(0x1cb);if(_0x1f93bb===_0x212007(0x1d2)||_0x1f93bb===_0x212007(0x1d5)||_0x1f93bb==='all')return _0x1f93bb;throw CliErrors[_0x212007(0x1d3)](_0x212007(0x1cd)+_0x42237e);}export function shouldListScope(_0x415f2c,_0x29f8bf){const _0x264578=a77_0x3032;if(_0x415f2c===_0x264578(0x1cb))return!![];return _0x415f2c===_0x29f8bf;}export function listScopeToRuntimeScopes(_0x4cb72b){const _0x5a8816=a77_0x3032;if(_0x4cb72b===_0x5a8816(0x1cb))return[_0x5a8816(0x1d2),_0x5a8816(0x1d5)];return[_0x4cb72b==='company'?'company':_0x4cb72b];}export function listScopeToRemoteScope(_0x5a2d2e){return _0x5a2d2e;}
@@ -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(_0x1d9ab9,_0x559e1b){var _0x237cfe=a78_0x35b8,_0x2c1f22=_0x1d9ab9();while(!![]){try{var _0x43f7c4=parseInt(_0x237cfe(0xda))/0x1+parseInt(_0x237cfe(0xdf))/0x2+-parseInt(_0x237cfe(0xe4))/0x3*(-parseInt(_0x237cfe(0xe2))/0x4)+parseInt(_0x237cfe(0xd7))/0x5+parseInt(_0x237cfe(0xdb))/0x6*(-parseInt(_0x237cfe(0xde))/0x7)+-parseInt(_0x237cfe(0xe5))/0x8*(-parseInt(_0x237cfe(0xe0))/0x9)+parseInt(_0x237cfe(0xd2))/0xa*(-parseInt(_0x237cfe(0xdc))/0xb);if(_0x43f7c4===_0x559e1b)break;else _0x2c1f22['push'](_0x2c1f22['shift']());}catch(_0xa19baa){_0x2c1f22['push'](_0x2c1f22['shift']());}}}(a78_0x1dc4,0x9a728));function a78_0x35b8(_0xef893c,_0x196cdb){_0xef893c=_0xef893c-0xcd;var _0x1dc43e=a78_0x1dc4();var _0x35b844=_0x1dc43e[_0xef893c];return _0x35b844;}function a78_0x1dc4(){var _0x3a68b0=['95494BLJOpb','953132rxBztE','36mwAttK','metadataPath','364616dHwsvl','skillName','24PeTEKx','392584oFdXbk','skillMdPath','tags','dir','linkedPaths','appCode','270uVajCL','contentHash','readonly','treeHash','skillCode','5446085MnYZUo','pulledAt','scope','466780oBfeUA','360bFMVru','613943NzrrrK','version'];a78_0x1dc4=function(){return _0x3a68b0;};return a78_0x1dc4();}export function summarizeRuntimeSkill(_0xdf3b2d){var _0x773661=a78_0x35b8;return{'id':_0xdf3b2d['id'],'skillCode':_0xdf3b2d[_0x773661(0xd6)],'skillName':_0xdf3b2d[_0x773661(0xe3)],'scope':_0xdf3b2d['scope'],'version':_0xdf3b2d[_0x773661(0xdd)],'readonly':_0xdf3b2d['readonly']};}export function summarizeLocalRuntimeSkill(_0x388b73){var _0x270e78=a78_0x35b8;return{'id':_0x388b73['id'],'skillCode':_0x388b73[_0x270e78(0xd6)],'skillName':_0x388b73['skillName'],'scope':_0x388b73[_0x270e78(0xd9)],'appCode':_0x388b73[_0x270e78(0xd1)],'version':_0x388b73[_0x270e78(0xdd)],'status':_0x388b73['status'],'readonly':_0x388b73[_0x270e78(0xd4)],'tags':_0x388b73[_0x270e78(0xce)],'dir':_0x388b73[_0x270e78(0xcf)],'cacheDir':_0x388b73['cacheDir'],'skillMdPath':_0x388b73[_0x270e78(0xcd)],'metadataPath':_0x388b73[_0x270e78(0xe1)],'linkedPaths':_0x388b73[_0x270e78(0xd0)],'contentHash':_0x388b73[_0x270e78(0xd3)],'treeHash':_0x388b73[_0x270e78(0xd5)],'pulledAt':_0x388b73[_0x270e78(0xd8)]};}
@@ -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_0x166f7c=a79_0x4f0e;(function(_0x1707bc,_0x38fcae){const _0x2eb640=a79_0x4f0e,_0xa861ef=_0x1707bc();while(!![]){try{const _0x488bc4=parseInt(_0x2eb640(0xad))/0x1+-parseInt(_0x2eb640(0xaa))/0x2+parseInt(_0x2eb640(0xb8))/0x3+-parseInt(_0x2eb640(0xa8))/0x4*(parseInt(_0x2eb640(0xb1))/0x5)+-parseInt(_0x2eb640(0x93))/0x6*(parseInt(_0x2eb640(0xa2))/0x7)+-parseInt(_0x2eb640(0xbc))/0x8*(parseInt(_0x2eb640(0xa5))/0x9)+parseInt(_0x2eb640(0xaf))/0xa;if(_0x488bc4===_0x38fcae)break;else _0xa861ef['push'](_0xa861ef['shift']());}catch(_0x2713ba){_0xa861ef['push'](_0xa861ef['shift']());}}}(a79_0x5a7b,0x1a542));import{CliErrors}from'../../errors.js';function a79_0x5a7b(){const _0x348271=['8GjIuOw','\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','6TAwara','references/output-contract.md','.agents/skills','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\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','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','timestamp','includes','trim','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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=','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','type','408387ijscSA','---\x0aname:\x20','validation','597654PQOrYf','Invalid\x20Skill\x20name:\x20','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','52852dFRjmZ','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','17166qmqYhy','write','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','8334VTBwST','read','2036380GCbbKx','toISOString','5kFVEuj','\x0a\x20\x20created:\x20\x22','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','SKILL.md','Unsupported\x20Skill\x20type:\x20','127239qosdpJ','join','Use\x20one\x20of:\x20','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'];a79_0x5a7b=function(){return _0x348271;};return a79_0x5a7b();}export const SKILL_TYPES=[a79_0x166f7c(0xab),a79_0x166f7c(0xae)];export const DEFAULT_SKILL_TARGET=a79_0x166f7c(0x95);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a79_0x166f7c(0x94);export function validateSkillName(_0x100cee){const _0x40ebdc=a79_0x166f7c,_0x1015ca=_0x100cee[_0x40ebdc(0x9b)]();if(!SKILL_NAME_PATTERN['test'](_0x1015ca))throw CliErrors[_0x40ebdc(0xa4)](_0x40ebdc(0xa6)+_0x100cee+_0x40ebdc(0x9d),_0x40ebdc(0xa9));return _0x1015ca;}export function normalizeSkillTemplateType(_0xde47a7){const _0x145b9f=a79_0x166f7c,_0x456168=(_0xde47a7||'write')[_0x145b9f(0x9b)]()||'write';if(SKILL_TYPES[_0x145b9f(0x9a)](_0x456168))return _0x456168;throw CliErrors['validation'](_0x145b9f(0xb7)+_0xde47a7,_0x145b9f(0xba)+SKILL_TYPES[_0x145b9f(0xb9)](',\x20')+'.');}export function renderSkillTemplate(_0x288145){const _0x1d3183=a79_0x166f7c,_0x36f7db=validateSkillName(_0x288145['skillName']),_0x45701f=normalizeSkillTemplateType(_0x288145[_0x1d3183(0xa1)]),_0x1b376e=_0x288145[_0x1d3183(0x99)]??new Date()[_0x1d3183(0xb0)]();return{'skillName':_0x36f7db,'type':_0x45701f,'files':[{'path':_0x1d3183(0xb6),'content':renderSkillMd(_0x36f7db,_0x45701f,_0x1b376e)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x36f7db,_0x45701f)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x36f7db,_0x45701f)}]};}function renderSkillMd(_0x78d094,_0x459c6c,_0x9f0ba6){const _0x4a8d20=a79_0x166f7c,_0x51b94a=typeWorkflow(_0x459c6c);return _0x4a8d20(0xa3)+_0x78d094+_0x4a8d20(0xbb)+_0x459c6c+_0x4a8d20(0xb2)+_0x9f0ba6+_0x4a8d20(0xac)+_0x78d094+_0x4a8d20(0xa7)+_0x51b94a+'\x0a\x0a'+businessStateSection(_0x459c6c)+_0x4a8d20(0xb4);}function a79_0x4f0e(_0x20afb3,_0xab2a0){_0x20afb3=_0x20afb3-0x92;const _0x5a7bc1=a79_0x5a7b();let _0x4f0ecd=_0x5a7bc1[_0x20afb3];return _0x4f0ecd;}function renderRuntimeContract(_0x5247eb,_0x5375fb){const _0x352830=a79_0x166f7c,_0xa09e61=_0x5375fb==='write'?_0x352830(0x98):'';return _0x352830(0x96)+_0x5247eb+_0x352830(0x9e)+_0x5375fb+_0x352830(0x9c)+_0xa09e61+_0x352830(0x97);}function renderOutputContract(_0x2f7241,_0x1d54e1){const _0x5e4dfa=a79_0x166f7c,_0x750efc=_0x1d54e1===_0x5e4dfa(0xab)?_0x5e4dfa(0xb3):_0x1d54e1+_0x5e4dfa(0xb5);return'#\x20Output\x20Contract\x0a\x0a'+_0x2f7241+_0x5e4dfa(0x92)+_0x750efc+_0x5e4dfa(0xa0);}function typeWorkflow(_0x5ba155){const _0x50f793=a79_0x166f7c;if(_0x5ba155===_0x50f793(0xae))return _0x50f793(0x9f);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x136e47){const _0x3a902a=a79_0x166f7c;if(_0x136e47!==_0x3a902a(0xab))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
@@ -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
+ const a80_0xaf20af=a80_0x23ed;(function(_0x5537a,_0x3f485a){const _0x4cf5db=a80_0x23ed,_0x3216f5=_0x5537a();while(!![]){try{const _0x13c391=parseInt(_0x4cf5db(0xbe))/0x1+-parseInt(_0x4cf5db(0xd3))/0x2*(parseInt(_0x4cf5db(0xb6))/0x3)+parseInt(_0x4cf5db(0xc7))/0x4*(-parseInt(_0x4cf5db(0xd6))/0x5)+parseInt(_0x4cf5db(0xd2))/0x6+-parseInt(_0x4cf5db(0x9c))/0x7*(parseInt(_0x4cf5db(0x91))/0x8)+-parseInt(_0x4cf5db(0xd5))/0x9*(-parseInt(_0x4cf5db(0x94))/0xa)+parseInt(_0x4cf5db(0xd0))/0xb;if(_0x13c391===_0x3f485a)break;else _0x3216f5['push'](_0x3216f5['shift']());}catch(_0x17ddad){_0x3216f5['push'](_0x3216f5['shift']());}}}(a80_0x2f38,0x31bc1));function a80_0x2f38(){const _0x5deeac=['path','file','type','content','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','match','434199GbXtYh','section','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','SKILL.md\x20is\x20not\x20a\x20file.','sql','errors','trim','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','11245awmGXK','logs','flatMap','warning','hasFrontmatter','search','string','description','bff','8744YMwXyp','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','raw','toUpperCase','internal-skill','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','artifact','true','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','3959076BxxJDL','split','1839252FcbwlW','2GBShfp','internal','9OSIgUh','645kmPPUy','workspace','isArray','structure-complete','project','display-name-recommended','Set\x20metadata.type\x20to\x20write\x20or\x20read.','push','SKILL.md','test','validation','frontmatter-required','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','registry','isSymbolicLink','toLowerCase','app','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','error','Add\x20frontmatter\x20with\x20name\x20and\x20description.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','join','isDirectory','Frontmatter\x20example\x20is\x20missing.','499136hsobcv','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','message','2646970fSVXCM','length','isFile','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','number','Frontmatter\x20displayName\x20is\x20missing.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','example-recommended','35WTMwRk','Frontmatter\x20name\x20is\x20missing.','slice','Skill\x20validation\x20failed:\x0a','filter','data','ruleId','page','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','name','config','displayName','Missing\x20SKILL.md.','service','boolean','map','line','dataset','example','level'];a80_0x2f38=function(){return _0x5deeac;};return a80_0x2f38();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0xc3bf5c}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a80_0xaf20af(0xde),SUPPORTED_SKILL_TYPES=new Set(['write','read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x450871,_0x591b0f={}){const _0x2f0941=a80_0xaf20af,_0x3ded66=resolveSkillDirectoryRoot(_0x450871),_0x18603d=[],_0x2c8eb1=loadRequiredSkillFile(_0x3ded66,_0x18603d),_0x34e0a3=_0x2c8eb1?parseFrontmatter(_0x2c8eb1[_0x2f0941(0xb3)]):{'hasFrontmatter':![]};_0x2c8eb1&&validateFrontmatter(_0x2c8eb1[_0x2f0941(0xb0)],_0x34e0a3,_0x18603d);validateRuntimeCliReferences(_0x3ded66,_0x18603d);const _0x55f644=_0x18603d[_0x2f0941(0xa0)](_0x9121a4=>_0x9121a4[_0x2f0941(0xaf)]===_0x2f0941(0xe8)),_0x470dc5=_0x18603d[_0x2f0941(0xa0)](_0x24a630=>_0x24a630[_0x2f0941(0xaf)]===_0x2f0941(0xc1));return{'ok':_0x55f644[_0x2f0941(0x95)]===0x0,'dir':_0x3ded66,'type':_0x34e0a3['type'],'errors':_0x55f644,'warnings':_0x470dc5};}function resolveSkillDirectoryRoot(_0x77ebe2){const _0x18a997=a80_0xaf20af,_0x5e14ed=resolve(_0x77ebe2);if(!existsSync(_0x5e14ed))throw CliErrors[_0x18a997(0xe0)]('Skill\x20directory\x20not\x20found:\x20'+_0x77ebe2);const _0xfb8426=lstatSync(_0x5e14ed);if(_0xfb8426['isDirectory']())return _0x5e14ed;if(_0xfb8426[_0x18a997(0xe4)]()){const _0x4b3bf0=realpathSync(_0x5e14ed);if(lstatSync(_0x4b3bf0)[_0x18a997(0x8f)]())return _0x4b3bf0;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x77ebe2);}export function throwIfSkillValidationFailed(_0x3ae20c,_0x192ff1=![]){const _0x1d46c2=a80_0xaf20af;if(_0x3ae20c['ok'])return;const _0x571a09=_0x3ae20c[_0x1d46c2(0xbb)][_0x1d46c2(0xab)](_0x3e1094=>{const _0x1ad7a3=_0x1d46c2,_0x5a22f3=_0x3e1094[_0x1ad7a3(0xb7)]?'#'+_0x3e1094[_0x1ad7a3(0xb7)]:'';return _0x3e1094[_0x1ad7a3(0xaf)][_0x1ad7a3(0xca)]()+'\x20'+_0x3e1094[_0x1ad7a3(0xa2)]+'\x20'+_0x3e1094[_0x1ad7a3(0xb1)]+_0x5a22f3+':\x20'+_0x3e1094[_0x1ad7a3(0x93)]+'\x20Fix:\x20'+_0x3e1094['suggestion'];});throw CliErrors[_0x1d46c2(0xe0)](_0x1d46c2(0x9f)+_0x571a09[_0x1d46c2(0x8e)]('\x0a'),_0x1d46c2(0xb8));}function loadRequiredSkillFile(_0x47c88c,_0x1b4d50){const _0x49db01=a80_0xaf20af,_0x1848c7=resolve(_0x47c88c,SKILL_FILE);if(!existsSync(_0x1848c7))return _0x1b4d50['push'](issue(_0x49db01(0xe8),_0x49db01(0xd9),SKILL_FILE,_0x49db01(0xa8),_0x49db01(0x9a))),undefined;const _0x3e6091=lstatSync(_0x1848c7);if(_0x3e6091[_0x49db01(0xe4)]())return _0x1b4d50[_0x49db01(0xdd)](issue('error',_0x49db01(0xd9),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x49db01(0x92))),undefined;if(!_0x3e6091[_0x49db01(0x96)]())return _0x1b4d50[_0x49db01(0xdd)](issue(_0x49db01(0xe8),_0x49db01(0xd9),SKILL_FILE,_0x49db01(0xb9),_0x49db01(0xbd))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1848c7,'utf8')};}function validateFrontmatter(_0x16183a,_0x378467,_0x4b3be5){const _0x2d4c89=a80_0xaf20af;if(!_0x378467[_0x2d4c89(0xc2)]){_0x4b3be5[_0x2d4c89(0xdd)](issue(_0x2d4c89(0xe8),_0x2d4c89(0xe1),_0x16183a,_0x2d4c89(0xea),_0x2d4c89(0xe9)));return;}!_0x378467['name']?.['trim']()&&_0x4b3be5[_0x2d4c89(0xdd)](issue(_0x2d4c89(0xe8),_0x2d4c89(0xe1),_0x16183a,_0x2d4c89(0x9d),_0x2d4c89(0xb4))),!_0x378467[_0x2d4c89(0xa7)]?.['trim']()&&_0x4b3be5['push'](issue(_0x2d4c89(0xc1),_0x2d4c89(0xdb),_0x16183a,_0x2d4c89(0x99),_0x2d4c89(0xe7))),!_0x378467['example']?.[_0x2d4c89(0xbc)]()&&_0x4b3be5[_0x2d4c89(0xdd)](issue('warning',_0x2d4c89(0x9b),_0x16183a,_0x2d4c89(0x90),_0x2d4c89(0xc8))),!_0x378467[_0x2d4c89(0xc5)]?.[_0x2d4c89(0xbc)]()&&_0x4b3be5[_0x2d4c89(0xdd)](issue('error','description-required',_0x16183a,'Frontmatter\x20description\x20is\x20empty.',_0x2d4c89(0x97))),_0x378467['internal']===!![]&&_0x4b3be5[_0x2d4c89(0xdd)](issue(_0x2d4c89(0xe8),_0x2d4c89(0xcb),_0x16183a,_0x2d4c89(0xcc),_0x2d4c89(0xcf))),_0x378467['type']?.[_0x2d4c89(0xbc)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x378467[_0x2d4c89(0xb2)])&&_0x4b3be5[_0x2d4c89(0xdd)](issue('error','frontmatter-required',_0x16183a,_0x2d4c89(0xe2),_0x2d4c89(0xdc)));}function validateRuntimeCliReferences(_0x2be159,_0x41e60b){const _0x3fed19=a80_0xaf20af;for(const _0x2f69ef of findRabetbaseCliInvocations(_0x2be159)){_0x41e60b[_0x3fed19(0xdd)](issue(_0x3fed19(0xc1),'rabetbase-cli-reference',_0x2f69ef[_0x3fed19(0xb1)],_0x3fed19(0xa4),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x2f69ef[_0x3fed19(0xac)]));}}function a80_0x23ed(_0x2c182d,_0xeecf01){_0x2c182d=_0x2c182d-0x8e;const _0x2f3834=a80_0x2f38();let _0x23eda5=_0x2f3834[_0x2c182d];return _0x23eda5;}function findRabetbaseCliInvocations(_0x4e1781){const _0x53a93e=a80_0xaf20af;return scanSkillDirectory(_0x4e1781)[_0x53a93e(0xa0)](_0x4ed437=>TEXT_SKILL_FILE_PATTERN[_0x53a93e(0xdf)](_0x4ed437[_0x53a93e(0xb0)]))[_0x53a93e(0xc0)](_0x2378a6=>{const _0x434f83=_0x53a93e,_0x268ef2=fileText(_0x2378a6);return _0x268ef2[_0x434f83(0xd1)](/\r?\n/)[_0x434f83(0xab)]((_0x1f4907,_0x5726bc)=>({'file':_0x2378a6[_0x434f83(0xb0)],'line':_0x5726bc+0x1,'text':_0x1f4907}))[_0x434f83(0xa0)](({text:_0x5d17c0})=>isRabetbaseCliInvocation(_0x5d17c0))[_0x434f83(0xab)](({file:_0x6dab00,line:_0x252c59})=>({'file':_0x6dab00,'line':_0x252c59}));});}const RABETBASE_SUBCOMMANDS=[a80_0xaf20af(0xad),a80_0xaf20af(0xba),a80_0xaf20af(0xc6),a80_0xaf20af(0xa3),a80_0xaf20af(0xda),a80_0xaf20af(0xe6),'schema',a80_0xaf20af(0xa9),a80_0xaf20af(0xcd),'kb',a80_0xaf20af(0xa6),a80_0xaf20af(0xd7),a80_0xaf20af(0xa1),'auth',a80_0xaf20af(0xbf),a80_0xaf20af(0xe3)],RABETBASE_INVOCATION=new RegExp(String[a80_0xaf20af(0xc9)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a80_0xaf20af(0xc9)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x19513b){const _0x4bad5e=a80_0xaf20af,_0x4f6392=_0x19513b[_0x4bad5e(0xc3)](/\brabetbase\b/i);if(_0x4f6392<0x0)return![];const _0x6d8283=_0x19513b[_0x4bad5e(0x9e)](_0x4f6392)[_0x4bad5e(0xd1)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4bad5e(0xdf)](_0x6d8283);}function parseFrontmatter(_0x4381cf){const _0x384db8=a80_0xaf20af,_0x5f66cf=_0x4381cf[_0x384db8(0xb5)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5f66cf)return{'hasFrontmatter':![]};const _0x469f17=_0x5f66cf[0x1]??'',_0x1a3cfe={'hasFrontmatter':!![]};let _0x3d63d8;try{_0x3d63d8=a80_0xc3bf5c(_0x469f17);}catch{return _0x1a3cfe;}const _0x8c1f22=asRecord(_0x3d63d8);if(!_0x8c1f22)return _0x1a3cfe;_0x1a3cfe[_0x384db8(0xa5)]=scalarToString(_0x8c1f22[_0x384db8(0xa5)]),_0x1a3cfe[_0x384db8(0xa7)]=scalarToString(_0x8c1f22['displayName']),_0x1a3cfe['description']=scalarToString(_0x8c1f22[_0x384db8(0xc5)]),_0x1a3cfe[_0x384db8(0xae)]=scalarToString(_0x8c1f22[_0x384db8(0xae)]);const _0x5732e8=asRecord(_0x8c1f22['metadata']);return _0x5732e8&&(_0x1a3cfe[_0x384db8(0xb2)]=scalarToString(_0x5732e8[_0x384db8(0xb2)]),_0x1a3cfe[_0x384db8(0xd4)]=scalarToBoolean(_0x5732e8[_0x384db8(0xd4)])),_0x1a3cfe;}function asRecord(_0xacf17a){const _0x4658db=a80_0xaf20af;if(_0xacf17a&&typeof _0xacf17a==='object'&&!Array[_0x4658db(0xd8)](_0xacf17a))return _0xacf17a;return undefined;}function scalarToString(_0x20b0e4){const _0x4c1a81=a80_0xaf20af;if(typeof _0x20b0e4===_0x4c1a81(0xc4))return _0x20b0e4[_0x4c1a81(0xbc)]();if(typeof _0x20b0e4===_0x4c1a81(0x98)||typeof _0x20b0e4==='boolean')return String(_0x20b0e4);return undefined;}function scalarToBoolean(_0x2cb7e6){const _0x50787e=a80_0xaf20af;if(typeof _0x2cb7e6===_0x50787e(0xaa))return _0x2cb7e6;if(typeof _0x2cb7e6===_0x50787e(0xc4))return cleanBoolean(_0x2cb7e6);return undefined;}function cleanBoolean(_0x4d032c){const _0x45296b=a80_0xaf20af,_0x571edb=_0x4d032c[_0x45296b(0xbc)]()[_0x45296b(0xe5)]();if(_0x571edb===_0x45296b(0xce))return!![];if(_0x571edb==='false')return![];return undefined;}function issue(_0x234653,_0x14a924,_0x409112,_0x5811e9,_0x29043f,_0x1572b9){return{'level':_0x234653,'ruleId':_0x14a924,'file':_0x409112,'section':_0x1572b9,'message':_0x5811e9,'suggestion':_0x29043f};}
@@ -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_0x3ce0fb=a81_0x55c9;(function(_0x2836a1,_0x5b946a){const _0x5400fa=a81_0x55c9,_0x1418a0=_0x2836a1();while(!![]){try{const _0x22fa39=parseInt(_0x5400fa(0x165))/0x1+-parseInt(_0x5400fa(0x166))/0x2+parseInt(_0x5400fa(0x162))/0x3+-parseInt(_0x5400fa(0x16a))/0x4*(parseInt(_0x5400fa(0x15e))/0x5)+parseInt(_0x5400fa(0x168))/0x6+-parseInt(_0x5400fa(0x16b))/0x7+parseInt(_0x5400fa(0x16c))/0x8*(parseInt(_0x5400fa(0x15d))/0x9);if(_0x22fa39===_0x5b946a)break;else _0x1418a0['push'](_0x1418a0['shift']());}catch(_0x15ccd9){_0x1418a0['push'](_0x1418a0['shift']());}}}(a81_0x22d3,0xea255));import{getSqlQueryInfo}from'../../core/api-client.js';function a81_0x22d3(){const _0x5729a6=['sql','1790001xqpZIc','2067260YfcZhs','bool','dbId','sqlcode','3308442kTmbzY','detail','sqlContent','278665RknxER','1882094JXBYyz','str','2557182wtmiNK','appCode','4GPDWLr','8988819oCKLUw','72kGCXoK'];a81_0x22d3=function(){return _0x5729a6;};return a81_0x22d3();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a81_0x55c9(_0x53071e,_0x34d2d8){_0x53071e=_0x53071e-0x15c;const _0x22d362=a81_0x22d3();let _0x55c9d1=_0x22d362[_0x53071e];return _0x55c9d1;}export const sqlDetail={'service':a81_0x3ce0fb(0x15c),'command':a81_0x3ce0fb(0x163),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x15a571){const _0x607454=a81_0x3ce0fb,_0xc83d5c=await getSqlQueryInfo(_0x15a571[_0x607454(0x169)],_0x15a571[_0x607454(0x167)](_0x607454(0x161))),_0x2a2b78=_0x15a571[_0x607454(0x15f)]('verbose');if(_0x2a2b78)return{'ok':!![],'data':_0xc83d5c};const _0xefda09=_0xc83d5c[_0x607454(0x160)]?await getDbName(_0x15a571['appCode'],_0xc83d5c['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0xc83d5c['sqlCode'],'sqlName':_0xc83d5c['sqlName'],'db':_0xefda09?_0xefda09+'\x20('+_0xc83d5c[_0x607454(0x160)]+')':_0xc83d5c['dbId']??'','sqlContent':_0xc83d5c[_0x607454(0x164)]??''}};}};
@@ -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_0x4bbed1=a82_0x32d5;(function(_0x766c77,_0x4a62bb){const _0x4505c6=a82_0x32d5,_0x1b2d4d=_0x766c77();while(!![]){try{const _0x40abe1=-parseInt(_0x4505c6(0xb1))/0x1+-parseInt(_0x4505c6(0xb0))/0x2+-parseInt(_0x4505c6(0xb4))/0x3+-parseInt(_0x4505c6(0xb7))/0x4+-parseInt(_0x4505c6(0xae))/0x5+parseInt(_0x4505c6(0xc4))/0x6+-parseInt(_0x4505c6(0xb2))/0x7*(-parseInt(_0x4505c6(0xbb))/0x8);if(_0x40abe1===_0x4a62bb)break;else _0x1b2d4d['push'](_0x1b2d4d['shift']());}catch(_0xf4a67c){_0x1b2d4d['push'](_0x1b2d4d['shift']());}}}(a82_0x3db7,0x8c28a));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a82_0x4bbed1(0xc2),'description':a82_0x4bbed1(0xbc),'risk':a82_0x4bbed1(0xb6),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4609f6){const _0x2af5e9=a82_0x4bbed1,_0x326337=parseJsonParams(_0x4609f6['str'](_0x2af5e9(0xbf))),_0x103829=Date[_0x2af5e9(0xba)](),_0x584a6c=await executeSdkSql(_0x4609f6[_0x2af5e9(0xaf)](_0x2af5e9(0xc0)),_0x326337),_0x3b405f=Date['now']()-_0x103829,_0x59a3bc=_0x584a6c?.[_0x2af5e9(0xb8)]??_0x584a6c,_0x3b4455=_0x584a6c?.[_0x2af5e9(0xc1)]??!![];if(!_0x3b4455)return{'ok':![],'data':{'error':_0x584a6c?.[_0x2af5e9(0xb9)]||'SQL\x20execution\x20failed','elapsed':_0x3b405f},'message':_0x2af5e9(0xb5)};const _0xcdf1b=Array[_0x2af5e9(0xb3)](_0x59a3bc)?_0x59a3bc:[];return{'ok':!![],'data':{'rows':_0xcdf1b,'rowCount':_0xcdf1b[_0x2af5e9(0xbd)],'elapsed':_0x3b405f},'message':_0x2af5e9(0xc3)+_0xcdf1b[_0x2af5e9(0xbd)]+_0x2af5e9(0xbe)+_0x3b405f+'ms'};}};function a82_0x32d5(_0x1ea4f6,_0x1fcd30){_0x1ea4f6=_0x1ea4f6-0xae;const _0x3db7db=a82_0x3db7();let _0x32d582=_0x3db7db[_0x1ea4f6];return _0x32d582;}function a82_0x3db7(){const _0x2b860b=['5951850cdXQCu','1355660PvXQDZ','str','2192376FyAZNI','614735dCFlMJ','59227AUGGZE','isArray','1747179lCwCrz','SQL\x20execution\x20failed','read','1330040kBpGYF','execResult','execError','now','2344VVsVxD','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','length','\x20row(s)\x20in\x20','params','sqlcode','execSuccess','exec','Returned\x20'];a82_0x3db7=function(){return _0x2b860b;};return a82_0x3db7();}
@@ -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(_0x4c5bb8,_0x49eb8c){const _0x13383e=a83_0x5da4,_0x5b29a9=_0x4c5bb8();while(!![]){try{const _0x52da8c=parseInt(_0x13383e(0x1e8))/0x1+parseInt(_0x13383e(0x1e0))/0x2+parseInt(_0x13383e(0x1e1))/0x3*(-parseInt(_0x13383e(0x1e4))/0x4)+-parseInt(_0x13383e(0x1df))/0x5+-parseInt(_0x13383e(0x1e6))/0x6*(-parseInt(_0x13383e(0x1e7))/0x7)+-parseInt(_0x13383e(0x1e5))/0x8*(-parseInt(_0x13383e(0x1e2))/0x9)+-parseInt(_0x13383e(0x1e3))/0xa;if(_0x52da8c===_0x49eb8c)break;else _0x5b29a9['push'](_0x5b29a9['shift']());}catch(_0x21f392){_0x5b29a9['push'](_0x5b29a9['shift']());}}}(a83_0x28a1,0x807b2));import{sqlDetail}from'../../commands/sql/detail.js';function a83_0x5da4(_0x2e9522,_0x24331a){_0x2e9522=_0x2e9522-0x1df;const _0x28a158=a83_0x28a1();let _0x5da431=_0x28a158[_0x2e9522];return _0x5da431;}import{sqlExec}from'../../commands/sql/exec.js';function a83_0x28a1(){const _0x1c3016=['68WTtFFP','8VaxbLt','436710jCmiNC','91xbwXON','691473KtlbrJ','4146205ozWUll','1245756UAgvIt','95916GqEQGj','2082033fFnLXQ','5928700BKPsJU'];a83_0x28a1=function(){return _0x1c3016;};return a83_0x28a1();}export const sqlDefinitions=[sqlDetail,sqlExec];