@lovrabet/lovrabet-cli 2.3.2-beta.2 → 2.3.2

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 (166) 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/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +1 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a65_0x5a0a11=a65_0x1d04;(function(_0x3af51c,_0x354bd5){const _0x5b0fe3=a65_0x1d04,_0x23d091=_0x3af51c();while(!![]){try{const _0x47b904=parseInt(_0x5b0fe3(0x171))/0x1+parseInt(_0x5b0fe3(0x160))/0x2+-parseInt(_0x5b0fe3(0x177))/0x3+parseInt(_0x5b0fe3(0x16b))/0x4*(-parseInt(_0x5b0fe3(0x157))/0x5)+parseInt(_0x5b0fe3(0x170))/0x6*(parseInt(_0x5b0fe3(0x166))/0x7)+-parseInt(_0x5b0fe3(0x16a))/0x8+-parseInt(_0x5b0fe3(0x153))/0x9;if(_0x47b904===_0x354bd5)break;else _0x23d091['push'](_0x23d091['shift']());}catch(_0xc26592){_0x23d091['push'](_0x23d091['shift']());}}}(a65_0xf682,0x7615f));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';function a65_0xf682(){const _0x2489cc=['--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','Skill\x20diagram\x20for\x20','Updated','678YoARMu','856483MfzWNG','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','scope','skillCode','validation','1545210DOQqkO','write','skill','diagram-file','Skill\x20diagram\x20validation\x20passed\x20for\x20','action','expectedDiagramRevision','source-fingerprint','3227445XPRQDU','\x20Skill\x20diagram\x20for\x20','diagram-show','str','5tFRGna',';\x20next\x20write\x20expects\x20revision\x20','trim','read','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','Found\x20Skill\x20diagram\x20for\x20','unchanged','version','diagram-push','802752nRcbcg','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','test','appCode','diagram-validate','created','56077DFBXCN','isInteger','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','Created','5507432rKhBOT','469276yFMqRB','found'];a65_0xf682=function(){return _0x2489cc;};return a65_0xf682();}import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';function a65_0x1d04(_0x4664a5,_0x3a54a9){_0x4664a5=_0x4664a5-0x14d;const _0xf68234=a65_0xf682();let _0x1d0447=_0xf68234[_0x4664a5];return _0x1d0447;}import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x356688){const _0x258cc4=a65_0x1d04,_0x5c697a=_0x356688[_0x258cc4(0x156)]('skill-code')[_0x258cc4(0x159)](),_0x11faa4=_0x356688[_0x258cc4(0x156)](_0x258cc4(0x15e))[_0x258cc4(0x159)](),_0x26f5b6=_0x356688[_0x258cc4(0x156)](_0x258cc4(0x174));if(!_0x5c697a||!_0x11faa4||_0x26f5b6!=='personal'&&_0x26f5b6!=='company')throw CliErrors['validation'](_0x258cc4(0x161));return{'skillCode':_0x5c697a,'version':_0x11faa4,'scope':_0x26f5b6};}async function readDiagramWriteInput(_0x370ae7){const _0x46de7a=a65_0x1d04,_0x3826de=_0x370ae7['num']('expected-diagram-revision'),_0x1a46b8=_0x370ae7[_0x46de7a(0x156)](_0x46de7a(0x152))[_0x46de7a(0x159)]();if(!Number[_0x46de7a(0x167)](_0x3826de)||_0x3826de<0x0)throw CliErrors[_0x46de7a(0x176)](_0x46de7a(0x16d));if(!/^sha256:[0-9a-f]{64}$/[_0x46de7a(0x162)](_0x1a46b8))throw CliErrors['validation'](_0x46de7a(0x173));return{'expectedDiagramRevision':_0x3826de,'sourceFingerprint':_0x1a46b8,'diagram':await readRequiredSkillDiagram(_0x370ae7[_0x46de7a(0x156)](_0x46de7a(0x14e)))};}export const diagramValidateCommand={'service':a65_0x5a0a11(0x14d),'command':a65_0x5a0a11(0x164),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a65_0x5a0a11(0x15a),'flags':WRITE_FLAGS,async 'execute'(_0x36dbd1){const _0x4c16b0=a65_0x5a0a11,_0x4f38b7=readDiagramTarget(_0x36dbd1),_0xe5e4ce=await validateRuntimeSkillVersionDiagram(_0x36dbd1[_0x4c16b0(0x163)],_0x4f38b7[_0x4c16b0(0x175)],_0x4f38b7[_0x4c16b0(0x15e)],_0x4f38b7[_0x4c16b0(0x174)],await readDiagramWriteInput(_0x36dbd1));return{'ok':!![],'data':_0xe5e4ce,'message':_0x4c16b0(0x14f)+_0x4f38b7[_0x4c16b0(0x175)]+'@'+_0x4f38b7[_0x4c16b0(0x15e)]+'.'};}};export const diagramPushCommand={'service':a65_0x5a0a11(0x14d),'command':a65_0x5a0a11(0x15f),'description':a65_0x5a0a11(0x15b),'risk':a65_0x5a0a11(0x178),'confirmationDescription':'Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','flags':WRITE_FLAGS,async 'execute'(_0xd9efa8){const _0x31ff04=a65_0x5a0a11,_0x28b157=readDiagramTarget(_0xd9efa8),_0x14a19f=await putRuntimeSkillVersionDiagram(_0xd9efa8[_0x31ff04(0x163)],_0x28b157[_0x31ff04(0x175)],_0x28b157[_0x31ff04(0x15e)],_0x28b157[_0x31ff04(0x174)],await readDiagramWriteInput(_0xd9efa8));return{'ok':!![],'data':_0x14a19f,'message':_0x14a19f[_0x31ff04(0x150)]===_0x31ff04(0x15d)?_0x31ff04(0x16e)+_0x28b157[_0x31ff04(0x175)]+'@'+_0x28b157[_0x31ff04(0x15e)]+'\x20is\x20unchanged.':(_0x14a19f[_0x31ff04(0x150)]===_0x31ff04(0x165)?_0x31ff04(0x169):_0x31ff04(0x16f))+_0x31ff04(0x154)+_0x28b157[_0x31ff04(0x175)]+'@'+_0x28b157['version']+'.'};}};export const diagramShowCommand={'service':'skill','command':a65_0x5a0a11(0x155),'description':a65_0x5a0a11(0x172),'risk':'read','flags':TARGET_FLAGS,async 'execute'(_0xb6f254){const _0xc3e49b=a65_0x5a0a11,_0x103987=readDiagramTarget(_0xb6f254),_0x11b417=await getRuntimeSkillVersionDiagram(_0xb6f254[_0xc3e49b(0x163)],_0x103987[_0xc3e49b(0x175)],_0x103987[_0xc3e49b(0x15e)],_0x103987['scope']);return{'ok':!![],'data':_0x11b417,'message':_0x11b417[_0xc3e49b(0x16c)]?_0xc3e49b(0x15c)+_0x103987[_0xc3e49b(0x175)]+'@'+_0x103987[_0xc3e49b(0x15e)]+_0xc3e49b(0x158)+_0x11b417[_0xc3e49b(0x151)]+'.':_0xc3e49b(0x168)+_0x103987[_0xc3e49b(0x175)]+'@'+_0x103987['version']+';\x20first\x20write\x20expects\x20revision\x20'+_0x11b417[_0xc3e49b(0x151)]+'.'};}};
1
+ const a65_0x124329=a65_0x7653;(function(_0x30e07c,_0x4abfad){const _0x4cb1fb=a65_0x7653,_0x17a25e=_0x30e07c();while(!![]){try{const _0x465196=parseInt(_0x4cb1fb(0x14e))/0x1+parseInt(_0x4cb1fb(0x129))/0x2*(parseInt(_0x4cb1fb(0x136))/0x3)+-parseInt(_0x4cb1fb(0x12f))/0x4+parseInt(_0x4cb1fb(0x146))/0x5+parseInt(_0x4cb1fb(0x142))/0x6*(-parseInt(_0x4cb1fb(0x128))/0x7)+-parseInt(_0x4cb1fb(0x133))/0x8*(-parseInt(_0x4cb1fb(0x145))/0x9)+parseInt(_0x4cb1fb(0x137))/0xa;if(_0x465196===_0x4abfad)break;else _0x17a25e['push'](_0x17a25e['shift']());}catch(_0x24e1e8){_0x17a25e['push'](_0x17a25e['shift']());}}}(a65_0x11d7,0xd7286));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';function a65_0x7653(_0x2c2b88,_0x1ff1a1){_0x2c2b88=_0x2c2b88-0x128;const _0x11d711=a65_0x11d7();let _0x7653d7=_0x11d711[_0x2c2b88];return _0x7653d7;}import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x1c0c9e){const _0x5c6279=a65_0x7653,_0x432f64=_0x1c0c9e[_0x5c6279(0x14a)](_0x5c6279(0x148))[_0x5c6279(0x135)](),_0xaa1444=_0x1c0c9e[_0x5c6279(0x14a)](_0x5c6279(0x12b))[_0x5c6279(0x135)](),_0x546544=_0x1c0c9e['str'](_0x5c6279(0x141));if(!_0x432f64||!_0xaa1444||_0x546544!==_0x5c6279(0x14d)&&_0x546544!==_0x5c6279(0x12d))throw CliErrors[_0x5c6279(0x14c)](_0x5c6279(0x147));return{'skillCode':_0x432f64,'version':_0xaa1444,'scope':_0x546544};}async function readDiagramWriteInput(_0x49b10b){const _0x5f1f86=a65_0x7653,_0x663f48=_0x49b10b[_0x5f1f86(0x13e)](_0x5f1f86(0x132)),_0x400a5f=_0x49b10b[_0x5f1f86(0x14a)]('source-fingerprint')['trim']();if(!Number['isInteger'](_0x663f48)||_0x663f48<0x0)throw CliErrors['validation'](_0x5f1f86(0x131));if(!/^sha256:[0-9a-f]{64}$/['test'](_0x400a5f))throw CliErrors[_0x5f1f86(0x14c)]('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x663f48,'sourceFingerprint':_0x400a5f,'diagram':await readRequiredSkillDiagram(_0x49b10b[_0x5f1f86(0x14a)](_0x5f1f86(0x143)))};}export const diagramValidateCommand={'service':'skill','command':a65_0x124329(0x144),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a65_0x124329(0x14b),'flags':WRITE_FLAGS,async 'execute'(_0x41f27d){const _0x3434a1=a65_0x124329,_0x45e0b5=readDiagramTarget(_0x41f27d),_0x339bc2=await validateRuntimeSkillVersionDiagram(_0x41f27d[_0x3434a1(0x139)],_0x45e0b5[_0x3434a1(0x152)],_0x45e0b5[_0x3434a1(0x12b)],_0x45e0b5['scope'],await readDiagramWriteInput(_0x41f27d));return{'ok':!![],'data':_0x339bc2,'message':_0x3434a1(0x130)+_0x45e0b5[_0x3434a1(0x152)]+'@'+_0x45e0b5[_0x3434a1(0x12b)]+'.'};}};export const diagramPushCommand={'service':a65_0x124329(0x149),'command':a65_0x124329(0x12e),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a65_0x124329(0x12a),'confirmationDescription':a65_0x124329(0x150),'flags':WRITE_FLAGS,async 'execute'(_0x2b464b){const _0xbe9806=a65_0x124329,_0x2e1c75=readDiagramTarget(_0x2b464b),_0x5b9e5f=await putRuntimeSkillVersionDiagram(_0x2b464b[_0xbe9806(0x139)],_0x2e1c75[_0xbe9806(0x152)],_0x2e1c75[_0xbe9806(0x12b)],_0x2e1c75[_0xbe9806(0x141)],await readDiagramWriteInput(_0x2b464b));return{'ok':!![],'data':_0x5b9e5f,'message':_0x5b9e5f[_0xbe9806(0x134)]===_0xbe9806(0x13a)?'Skill\x20diagram\x20for\x20'+_0x2e1c75['skillCode']+'@'+_0x2e1c75[_0xbe9806(0x12b)]+_0xbe9806(0x151):(_0x5b9e5f['action']==='created'?'Created':_0xbe9806(0x13f))+'\x20Skill\x20diagram\x20for\x20'+_0x2e1c75[_0xbe9806(0x152)]+'@'+_0x2e1c75[_0xbe9806(0x12b)]+'.'};}};export const diagramShowCommand={'service':a65_0x124329(0x149),'command':a65_0x124329(0x138),'description':'Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','risk':'read','flags':TARGET_FLAGS,async 'execute'(_0xcc5fcf){const _0x281087=a65_0x124329,_0x13e2fa=readDiagramTarget(_0xcc5fcf),_0x415dfe=await getRuntimeSkillVersionDiagram(_0xcc5fcf[_0x281087(0x139)],_0x13e2fa[_0x281087(0x152)],_0x13e2fa['version'],_0x13e2fa[_0x281087(0x141)]);return{'ok':!![],'data':_0x415dfe,'message':_0x415dfe[_0x281087(0x13b)]?_0x281087(0x13d)+_0x13e2fa[_0x281087(0x152)]+'@'+_0x13e2fa[_0x281087(0x12b)]+_0x281087(0x13c)+_0x415dfe[_0x281087(0x12c)]+'.':_0x281087(0x140)+_0x13e2fa[_0x281087(0x152)]+'@'+_0x13e2fa[_0x281087(0x12b)]+_0x281087(0x14f)+_0x415dfe[_0x281087(0x12c)]+'.'};}};function a65_0x11d7(){const _0x4b3ca8=['num','Updated','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','scope','4648218kAJjsu','diagram-file','diagram-validate','3303mxljTA','2194160rUPToQ','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','skill-code','skill','str','read','validation','personal','244229NcDXlo',';\x20first\x20write\x20expects\x20revision\x20','Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','\x20is\x20unchanged.','skillCode','7IGOUtO','1663804bLdcgo','write','version','expectedDiagramRevision','company','diagram-push','5513360cGyPnz','Skill\x20diagram\x20validation\x20passed\x20for\x20','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','expected-diagram-revision','14968lSXXaO','action','trim','6ZwbOtP','8070fUKzuh','diagram-show','appCode','unchanged','found',';\x20next\x20write\x20expects\x20revision\x20','Found\x20Skill\x20diagram\x20for\x20'];a65_0x11d7=function(){return _0x4b3ca8;};return a65_0x11d7();}
@@ -1 +1 @@
1
- const a66_0x2d0034=a66_0x309a;function a66_0x4072(){const _0x58ec60=['47746jdPBLq','5476735Knpcge','created','6LdTdsf','unchanged','scope','../../../skills/runtime-skill-sync.js','from','18YCaXAX','code','bool','map','personal','str','action','4221064MNCRBX','company','trim','skillCode','skill','length','29677230meVfDt','4897506ErIIZS','\x20personal\x20and\x20','removed','project','1413881TTaJRk','envName','skipped','3598536DCSIYP','skillRoots','52ZUlHfO','Installed\x20','updated','global','filter','appCode','all','install','includes','\x20company\x20Skill(s).','production','../../../core/api-client.js','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.'];a66_0x4072=function(){return _0x58ec60;};return a66_0x4072();}(function(_0x43b91f,_0xe73ee7){const _0x2084a5=a66_0x309a,_0x512eae=_0x43b91f();while(!![]){try{const _0x5974d0=parseInt(_0x2084a5(0x162))/0x1*(-parseInt(_0x2084a5(0x181))/0x2)+parseInt(_0x2084a5(0x165))/0x3*(-parseInt(_0x2084a5(0x17f))/0x4)+-parseInt(_0x2084a5(0x163))/0x5+parseInt(_0x2084a5(0x178))/0x6+parseInt(_0x2084a5(0x17c))/0x7+parseInt(_0x2084a5(0x171))/0x8*(parseInt(_0x2084a5(0x16a))/0x9)+parseInt(_0x2084a5(0x177))/0xa;if(_0x5974d0===_0xe73ee7)break;else _0x512eae['push'](_0x512eae['shift']());}catch(_0x465a27){_0x512eae['push'](_0x512eae['shift']());}}}(a66_0x4072,0xdcffc));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a66_0x2d0034(0x175),'command':a66_0x2d0034(0x188),'description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x123b93){return syncRuntimeSkills(_0x123b93);}};async function syncRuntimeSkills(_0x5585f0){const _0x3f35f7=a66_0x2d0034,{downloadRuntimeSkillPackage:_0x29311f,listRuntimeSkills:_0x2930b6}=await import(_0x3f35f7(0x160)),{linkEffectiveRuntimeSkills:_0x343381,materializeRuntimeSkill:_0x49d665,pruneStaleRuntimeSkillCache:_0x44f3b2,pruneStaleRuntimeSkillLinks:_0x36e65a,resolveRuntimeSkillInstallTarget:_0x251006,reuseMaterializedRuntimeSkill:_0x3eacef}=await import(_0x3f35f7(0x168)),_0x1a2104=_0x5585f0[_0x3f35f7(0x16f)](_0x3f35f7(0x16b)),_0x24e35d=normalizeSyncScopes(_0x5585f0[_0x3f35f7(0x16f)](_0x3f35f7(0x167))),_0x37ef09=_0x5585f0[_0x3f35f7(0x17d)]??_0x3f35f7(0x15f),_0x5c1f76=_0x5585f0['accessKey'],_0x276c0b=_0x5585f0[_0x3f35f7(0x16c)]('force');if(!_0x5c1f76)throw CliErrors['authRequired'](_0x3f35f7(0x161));const _0x2f44cd=_0x251006(_0x5585f0[_0x3f35f7(0x186)],_0x5585f0[_0x3f35f7(0x16c)](_0x3f35f7(0x17b))?_0x3f35f7(0x17b):_0x3f35f7(0x184)),_0x16c2cb=_0x251006(_0x5585f0[_0x3f35f7(0x186)],_0x2f44cd['scope']===_0x3f35f7(0x17b)?_0x3f35f7(0x184):_0x3f35f7(0x17b)),_0x4ceb4f=await _0x2930b6({'appCode':_0x5585f0[_0x3f35f7(0x186)],'scope':_0x24e35d[_0x3f35f7(0x176)]===0x1?_0x24e35d[0x0]:'all','code':_0x1a2104[_0x3f35f7(0x173)]()||undefined}),_0x114755=_0x24e35d['includes']('personal')?_0x4ceb4f[_0x3f35f7(0x16e)]:[],_0x6fa1fb=_0x24e35d[_0x3f35f7(0x15d)](_0x3f35f7(0x172))?_0x4ceb4f[_0x3f35f7(0x172)]:[],_0x2bb1fe=new Set([..._0x114755[_0x3f35f7(0x16d)](_0x57c3dd=>_0x57c3dd[_0x3f35f7(0x174)]?.[_0x3f35f7(0x173)]())[_0x3f35f7(0x185)](_0x5ae2f8=>Boolean(_0x5ae2f8)),..._0x6fa1fb[_0x3f35f7(0x16d)](_0x185267=>_0x185267[_0x3f35f7(0x174)]?.['trim']())[_0x3f35f7(0x185)](_0x4339af=>Boolean(_0x4339af))]),_0x46ec6a=_0x1a2104[_0x3f35f7(0x173)]()?[_0x1a2104[_0x3f35f7(0x173)]()]:undefined,_0x4d714a=_0x24e35d[_0x3f35f7(0x176)]===0x2&&_0x24e35d['includes'](_0x3f35f7(0x16e))&&_0x24e35d[_0x3f35f7(0x15d)](_0x3f35f7(0x172)),_0x42076f=_0x4d714a?_0x36e65a(_0x2f44cd,_0x2bb1fe,_0x46ec6a):[],_0x76a6c=_0x44f3b2({'env':_0x37ef09,'accessKey':_0x5c1f76,'appCode':_0x5585f0[_0x3f35f7(0x186)],'activeSkillCodes':_0x2bb1fe,'pruneSkillCodes':_0x46ec6a,'scopes':_0x24e35d,'protectedLinkRoots':_0x16c2cb[_0x3f35f7(0x180)]}),_0x1b0899=[..._0x114755[_0x3f35f7(0x16d)](_0x2ec2cd=>({'skill':_0x2ec2cd,'scope':_0x3f35f7(0x16e)})),..._0x6fa1fb[_0x3f35f7(0x16d)](_0x20b3b0=>({'skill':_0x20b3b0,'scope':_0x3f35f7(0x172)}))],_0x372631=await mapConcurrent(_0x1b0899,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x23b1d4,scope:_0x260ab0})=>{const _0x4b84ef=_0x3f35f7,_0xa2f97b=_0x3eacef(_0x23b1d4,_0x260ab0,{'env':_0x37ef09,'accessKey':_0x5c1f76,'appCode':_0x5585f0[_0x4b84ef(0x186)]});if(_0xa2f97b)return _0xa2f97b;return _0x49d665(_0x23b1d4,_0x260ab0,{'env':_0x37ef09,'accessKey':_0x5c1f76,'appCode':_0x5585f0[_0x4b84ef(0x186)],'force':_0x276c0b,'packageBytes':await downloadSkillPackage(_0x23b1d4,_0x260ab0,_0x5585f0[_0x4b84ef(0x186)],_0x29311f)});}),_0x41d3ac=_0x343381(_0x372631,_0x2f44cd),_0x598d72=countLinkActions(_0x41d3ac);return{'ok':!![],'data':{'appCode':_0x5585f0['appCode'],..._0x2f44cd[_0x3f35f7(0x167)]==='project'?{'installTarget':{'scope':_0x2f44cd[_0x3f35f7(0x167)],'skillRoots':[..._0x2f44cd['skillRoots']]}}:{},'personal':_0x114755[_0x3f35f7(0x176)],'company':_0x6fa1fb['length'],'materialized':_0x372631['length'],'links':{'total':_0x41d3ac[_0x3f35f7(0x176)],'created':_0x598d72[_0x3f35f7(0x164)]??0x0,'updated':_0x598d72[_0x3f35f7(0x183)]??0x0,'unchanged':_0x598d72[_0x3f35f7(0x166)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x42076f[_0x3f35f7(0x185)](_0x4d18ec=>_0x4d18ec[_0x3f35f7(0x170)]===_0x3f35f7(0x17a))[_0x3f35f7(0x176)],'cacheDirs':_0x76a6c[_0x3f35f7(0x185)](_0x4920b9=>_0x4920b9[_0x3f35f7(0x170)]===_0x3f35f7(0x17a))[_0x3f35f7(0x176)],'skipped':[..._0x42076f,..._0x76a6c][_0x3f35f7(0x185)](_0x341e3c=>_0x341e3c[_0x3f35f7(0x170)]===_0x3f35f7(0x17e))['length']},'skills':{'personal':_0x114755[_0x3f35f7(0x16d)](summarizeRuntimeSkill),'company':_0x6fa1fb[_0x3f35f7(0x16d)](summarizeRuntimeSkill)}},'message':_0x3f35f7(0x182)+_0x114755[_0x3f35f7(0x176)]+_0x3f35f7(0x179)+_0x6fa1fb[_0x3f35f7(0x176)]+_0x3f35f7(0x15e)};}async function mapConcurrent(_0x4e16c2,_0x3f43f1,_0x507cfb){const _0x79be1f=a66_0x2d0034,_0x59b502=new Array(_0x4e16c2[_0x79be1f(0x176)]);let _0x59a7ab=0x0;const _0xec70c3=Array[_0x79be1f(0x169)]({'length':Math['min'](_0x3f43f1,_0x4e16c2[_0x79be1f(0x176)])},async()=>{const _0x5b18d6=_0x79be1f;while(_0x59a7ab<_0x4e16c2[_0x5b18d6(0x176)]){const _0x1e44be=_0x59a7ab;_0x59a7ab+=0x1,_0x59b502[_0x1e44be]=await _0x507cfb(_0x4e16c2[_0x1e44be]);}});return await Promise[_0x79be1f(0x187)](_0xec70c3),_0x59b502;}function a66_0x309a(_0x263c7b,_0x2d8e35){_0x263c7b=_0x263c7b-0x15d;const _0x4072ff=a66_0x4072();let _0x309a6f=_0x4072ff[_0x263c7b];return _0x309a6f;}async function downloadSkillPackage(_0x574571,_0x128706,_0x17a36a,_0x402785){const _0x588dda=a66_0x2d0034,_0xab193a=_0x574571['version']?.[_0x588dda(0x173)]();return _0xab193a?_0x402785(_0x128706,_0x574571[_0x588dda(0x174)],_0x17a36a,_0xab193a):_0x402785(_0x128706,_0x574571[_0x588dda(0x174)],_0x17a36a);}function countLinkActions(_0x16ba11){return _0x16ba11['reduce']((_0x40627a,_0x55e1f3)=>{const _0x3f2b69=a66_0x309a;return _0x40627a[_0x55e1f3[_0x3f2b69(0x170)]]=(_0x40627a[_0x55e1f3[_0x3f2b69(0x170)]]??0x0)+0x1,_0x40627a;},{});}
1
+ const a66_0x8d36dd=a66_0x2593;(function(_0x25cedb,_0x5d77b5){const _0x482c17=a66_0x2593,_0x2a2c19=_0x25cedb();while(!![]){try{const _0x13b6ef=parseInt(_0x482c17(0xb1))/0x1+parseInt(_0x482c17(0xc1))/0x2+-parseInt(_0x482c17(0xb8))/0x3+-parseInt(_0x482c17(0xbe))/0x4+parseInt(_0x482c17(0xb2))/0x5*(parseInt(_0x482c17(0xd0))/0x6)+-parseInt(_0x482c17(0xcc))/0x7*(parseInt(_0x482c17(0xcf))/0x8)+-parseInt(_0x482c17(0xc0))/0x9;if(_0x13b6ef===_0x5d77b5)break;else _0x2a2c19['push'](_0x2a2c19['shift']());}catch(_0x528c51){_0x2a2c19['push'](_0x2a2c19['shift']());}}}(a66_0xeac4,0xcddf8));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a66_0x8d36dd(0xc4),'command':a66_0x8d36dd(0xb5),'description':a66_0x8d36dd(0xca),'risk':a66_0x8d36dd(0xd2),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x38acad){return syncRuntimeSkills(_0x38acad);}};async function syncRuntimeSkills(_0x292b19){const _0x50a628=a66_0x8d36dd,{downloadRuntimeSkillPackage:_0x243c23,listRuntimeSkills:_0x333c48}=await import(_0x50a628(0xb4)),{linkEffectiveRuntimeSkills:_0x30078d,materializeRuntimeSkill:_0xe63e6f,pruneStaleRuntimeSkillCache:_0x4df81c,pruneStaleRuntimeSkillLinks:_0x549087,resolveRuntimeSkillInstallTarget:_0x27d934,reuseMaterializedRuntimeSkill:_0x3e3890}=await import('../../../skills/runtime-skill-sync.js'),_0x75354a=_0x292b19[_0x50a628(0xc3)]('code'),_0x4c52c0=normalizeSyncScopes(_0x292b19[_0x50a628(0xc3)]('scope')),_0x2026a8=_0x292b19['envName']??_0x50a628(0xae),_0xf445fc=_0x292b19[_0x50a628(0xc8)],_0x21ac1c=_0x292b19[_0x50a628(0xb9)](_0x50a628(0xc6));if(!_0xf445fc)throw CliErrors[_0x50a628(0xc7)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x1f0267=_0x27d934(_0x292b19['appCode'],_0x292b19[_0x50a628(0xb9)](_0x50a628(0xbf))?_0x50a628(0xbf):_0x50a628(0xbc)),_0xc72146=_0x27d934(_0x292b19[_0x50a628(0xd3)],_0x1f0267[_0x50a628(0xbb)]==='project'?_0x50a628(0xbc):_0x50a628(0xbf)),_0x425d69=await _0x333c48({'appCode':_0x292b19[_0x50a628(0xd3)],'scope':_0x4c52c0[_0x50a628(0xc5)]===0x1?_0x4c52c0[0x0]:_0x50a628(0xcb),'code':_0x75354a[_0x50a628(0xb3)]()||undefined}),_0x43a98d=_0x4c52c0[_0x50a628(0xd5)](_0x50a628(0xc9))?_0x425d69[_0x50a628(0xc9)]:[],_0x24eb62=_0x4c52c0[_0x50a628(0xd5)](_0x50a628(0xd1))?_0x425d69['company']:[],_0x331839=new Set([..._0x43a98d[_0x50a628(0xd4)](_0x15f72c=>_0x15f72c['skillCode']?.[_0x50a628(0xb3)]())[_0x50a628(0xbd)](_0x30fb34=>Boolean(_0x30fb34)),..._0x24eb62['map'](_0x41d56f=>_0x41d56f[_0x50a628(0xce)]?.[_0x50a628(0xb3)]())[_0x50a628(0xbd)](_0x56a385=>Boolean(_0x56a385))]),_0x161a2f=_0x75354a[_0x50a628(0xb3)]()?[_0x75354a['trim']()]:undefined,_0x446d77=_0x4c52c0['length']===0x2&&_0x4c52c0[_0x50a628(0xd5)](_0x50a628(0xc9))&&_0x4c52c0[_0x50a628(0xd5)](_0x50a628(0xd1)),_0x2ef48e=_0x446d77?_0x549087(_0x1f0267,_0x331839,_0x161a2f):[],_0x1f9e9e=_0x4df81c({'env':_0x2026a8,'accessKey':_0xf445fc,'appCode':_0x292b19[_0x50a628(0xd3)],'activeSkillCodes':_0x331839,'pruneSkillCodes':_0x161a2f,'scopes':_0x4c52c0,'protectedLinkRoots':_0xc72146[_0x50a628(0xb0)]}),_0x49d902=[..._0x43a98d[_0x50a628(0xd4)](_0xfdfba=>({'skill':_0xfdfba,'scope':_0x50a628(0xc9)})),..._0x24eb62[_0x50a628(0xd4)](_0x45e662=>({'skill':_0x45e662,'scope':_0x50a628(0xd1)}))],_0x1b7374=await mapConcurrent(_0x49d902,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x152cfd,scope:_0x520570})=>{const _0x47985a=_0x50a628,_0x2416f8=_0x3e3890(_0x152cfd,_0x520570,{'env':_0x2026a8,'accessKey':_0xf445fc,'appCode':_0x292b19[_0x47985a(0xd3)]});if(_0x2416f8)return _0x2416f8;return _0xe63e6f(_0x152cfd,_0x520570,{'env':_0x2026a8,'accessKey':_0xf445fc,'appCode':_0x292b19[_0x47985a(0xd3)],'force':_0x21ac1c,'packageBytes':await downloadSkillPackage(_0x152cfd,_0x520570,_0x292b19[_0x47985a(0xd3)],_0x243c23)});}),_0x5a1819=_0x30078d(_0x1b7374,_0x1f0267),_0x1290d4=countLinkActions(_0x5a1819);return{'ok':!![],'data':{'appCode':_0x292b19[_0x50a628(0xd3)],..._0x1f0267['scope']===_0x50a628(0xbf)?{'installTarget':{'scope':_0x1f0267[_0x50a628(0xbb)],'skillRoots':[..._0x1f0267[_0x50a628(0xb0)]]}}:{},'personal':_0x43a98d['length'],'company':_0x24eb62[_0x50a628(0xc5)],'materialized':_0x1b7374['length'],'links':{'total':_0x5a1819[_0x50a628(0xc5)],'created':_0x1290d4['created']??0x0,'updated':_0x1290d4[_0x50a628(0xcd)]??0x0,'unchanged':_0x1290d4['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x2ef48e[_0x50a628(0xbd)](_0x51812d=>_0x51812d['action']===_0x50a628(0xb6))[_0x50a628(0xc5)],'cacheDirs':_0x1f9e9e[_0x50a628(0xbd)](_0x20a29d=>_0x20a29d[_0x50a628(0xc2)]==='removed')[_0x50a628(0xc5)],'skipped':[..._0x2ef48e,..._0x1f9e9e][_0x50a628(0xbd)](_0x569810=>_0x569810[_0x50a628(0xc2)]===_0x50a628(0xaf))[_0x50a628(0xc5)]},'skills':{'personal':_0x43a98d[_0x50a628(0xd4)](summarizeRuntimeSkill),'company':_0x24eb62['map'](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x43a98d[_0x50a628(0xc5)]+_0x50a628(0xba)+_0x24eb62[_0x50a628(0xc5)]+'\x20company\x20Skill(s).'};}async function mapConcurrent(_0x18e433,_0x1a5b2d,_0x486295){const _0x2edc01=a66_0x8d36dd,_0x553e31=new Array(_0x18e433[_0x2edc01(0xc5)]);let _0x447092=0x0;const _0x12b7fa=Array['from']({'length':Math['min'](_0x1a5b2d,_0x18e433[_0x2edc01(0xc5)])},async()=>{const _0x44576f=_0x2edc01;while(_0x447092<_0x18e433[_0x44576f(0xc5)]){const _0x288a79=_0x447092;_0x447092+=0x1,_0x553e31[_0x288a79]=await _0x486295(_0x18e433[_0x288a79]);}});return await Promise[_0x2edc01(0xcb)](_0x12b7fa),_0x553e31;}async function downloadSkillPackage(_0x3f4528,_0x9d3886,_0x5cc55d,_0x435ab0){const _0x128d29=a66_0x8d36dd,_0x2d1c9b=_0x3f4528[_0x128d29(0xb7)]?.[_0x128d29(0xb3)]();return _0x2d1c9b?_0x435ab0(_0x9d3886,_0x3f4528[_0x128d29(0xce)],_0x5cc55d,_0x2d1c9b):_0x435ab0(_0x9d3886,_0x3f4528[_0x128d29(0xce)],_0x5cc55d);}function countLinkActions(_0x39a294){const _0x2032d6=a66_0x8d36dd;return _0x39a294[_0x2032d6(0xd6)]((_0x282586,_0x50afa0)=>{const _0x1184e8=_0x2032d6;return _0x282586[_0x50afa0[_0x1184e8(0xc2)]]=(_0x282586[_0x50afa0[_0x1184e8(0xc2)]]??0x0)+0x1,_0x282586;},{});}function a66_0x2593(_0x133da8,_0x2ec48b){_0x133da8=_0x133da8-0xae;const _0xeac46c=a66_0xeac4();let _0x259386=_0xeac46c[_0x133da8];return _0x259386;}function a66_0xeac4(){const _0x3c4627=['accessKey','personal','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','all','7epfrgC','updated','skillCode','4313320hJVCto','138OGzaQD','company','read','appCode','map','includes','reduce','production','skipped','skillRoots','1348912qWwhVd','263365fgEGui','trim','../../../core/api-client.js','install','removed','version','37659qFHxah','bool','\x20personal\x20and\x20','scope','global','filter','2765160ipNzTr','project','12422916ieIYGq','1812394olxdEU','action','str','skill','length','force','authRequired'];a66_0xeac4=function(){return _0x3c4627;};return a66_0xeac4();}
@@ -1 +1 @@
1
- const a67_0x2963b6=a67_0x3633;(function(_0x3def56,_0x1a01ae){const _0x2ca0ee=a67_0x3633,_0x35cd12=_0x3def56();while(!![]){try{const _0x2cf0ff=parseInt(_0x2ca0ee(0x1b1))/0x1+parseInt(_0x2ca0ee(0x1c4))/0x2+parseInt(_0x2ca0ee(0x1b6))/0x3*(parseInt(_0x2ca0ee(0x1b5))/0x4)+parseInt(_0x2ca0ee(0x1c1))/0x5*(parseInt(_0x2ca0ee(0x1c0))/0x6)+-parseInt(_0x2ca0ee(0x1b4))/0x7+-parseInt(_0x2ca0ee(0x1b2))/0x8+-parseInt(_0x2ca0ee(0x1cd))/0x9;if(_0x2cf0ff===_0x1a01ae)break;else _0x35cd12['push'](_0x35cd12['shift']());}catch(_0x40829a){_0x35cd12['push'](_0x35cd12['shift']());}}}(a67_0x5ba8,0xe15eb));function a67_0x3633(_0x2aa626,_0x5bffe7){_0x2aa626=_0x2aa626-0x1af;const _0x5ba80b=a67_0x5ba8();let _0x363315=_0x5ba80b[_0x2aa626];return _0x363315;}import{CliErrors}from'../../../errors.js';function a67_0x5ba8(){const _0x2ca9f3=['personal','1453183pfPvdy','9698384HiKtyt','company','12372241vwCtmr','2084212gNGGro','6cWseSd','production','accessKey','remote','str','filter','\x20local\x20Skill(s).','trim','envName','code','1086pxqhUj','36555Awrulo','Listed\x20','../../../skills/runtime-skill-sync.js','2995342tSmaaa','map','length','list','scope','authRequired','skill','local','builtin','12720375cRnSxT','bool','appCode','project'];a67_0x5ba8=function(){return _0x2ca9f3;};return a67_0x5ba8();}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':a67_0x2963b6(0x1ca),'command':a67_0x2963b6(0x1c7),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0xaa2440){const _0x3049f3=a67_0x2963b6,_0x483986=_0xaa2440[_0x3049f3(0x1ba)](_0x3049f3(0x1bf)),_0x5d55a6=normalizeListScope(_0xaa2440[_0x3049f3(0x1ba)](_0x3049f3(0x1c8)));if(_0xaa2440[_0x3049f3(0x1ce)](_0x3049f3(0x1cb))){const _0x26cbb5=_0xaa2440[_0x3049f3(0x1b8)];if(!_0x26cbb5)throw CliErrors[_0x3049f3(0x1c9)]();const {listLocalRuntimeSkills:_0xa3bd88,resolveRuntimeSkillInstallTarget:_0x586ab1}=await import(_0x3049f3(0x1c3)),_0x490ebc=_0x586ab1(_0xaa2440['appCode'],_0xaa2440[_0x3049f3(0x1ce)](_0x3049f3(0x1af))?'project':'global'),_0x1ce10e=_0xa3bd88({'env':_0xaa2440[_0x3049f3(0x1be)]??_0x3049f3(0x1b7),'accessKey':_0x26cbb5,'appCode':_0xaa2440[_0x3049f3(0x1cf)],'scopes':listScopeToRuntimeScopes(_0x5d55a6),'code':_0x483986[_0x3049f3(0x1bd)]()||undefined},_0x490ebc),_0x437316=groupLocalRuntimeSkills(_0x1ce10e);return{'ok':!![],'data':{'appCode':_0xaa2440[_0x3049f3(0x1cf)],'source':'local',..._0x490ebc['scope']===_0x3049f3(0x1af)?{'installScope':_0x490ebc[_0x3049f3(0x1c8)]}:{},'scope':_0x5d55a6,'total':_0x1ce10e[_0x3049f3(0x1c6)],'personal':_0x437316[_0x3049f3(0x1b0)]['length'],'company':_0x437316[_0x3049f3(0x1b3)]['length'],'items':_0x1ce10e['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x437316[_0x3049f3(0x1b0)][_0x3049f3(0x1c5)](summarizeLocalRuntimeSkill),'company':_0x437316[_0x3049f3(0x1b3)][_0x3049f3(0x1c5)](summarizeLocalRuntimeSkill)}},'message':_0x3049f3(0x1c2)+_0x1ce10e['length']+_0x3049f3(0x1bc)};}const {listRuntimeSkills:_0x3e66d9}=await import('../../../core/api-client.js'),_0x537049=await _0x3e66d9({'appCode':_0xaa2440['appCode'],'scope':listScopeToRemoteScope(_0x5d55a6),'code':_0x483986[_0x3049f3(0x1bd)]()||undefined}),_0xc6ff34=shouldListScope(_0x5d55a6,_0x3049f3(0x1b0))?_0x537049[_0x3049f3(0x1b0)]??[]:[],_0x3f0ae8=shouldListScope(_0x5d55a6,'company')?_0x537049[_0x3049f3(0x1b3)]??[]:[],_0x3c05dd=[..._0xc6ff34,..._0x3f0ae8];return{'ok':!![],'data':{'appCode':_0xaa2440[_0x3049f3(0x1cf)],'source':_0x3049f3(0x1b9),'scope':_0x5d55a6,'total':_0x3c05dd[_0x3049f3(0x1c6)],'personal':_0xc6ff34['length'],'company':_0x3f0ae8[_0x3049f3(0x1c6)],'items':_0x3c05dd[_0x3049f3(0x1c5)](summarizeRuntimeSkill),'skills':{'personal':_0xc6ff34['map'](summarizeRuntimeSkill),'company':_0x3f0ae8['map'](summarizeRuntimeSkill)}},'message':_0x3049f3(0x1c2)+_0x3c05dd['length']+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x199016){const _0x27a0f3=a67_0x2963b6;return{'personal':_0x199016[_0x27a0f3(0x1bb)](_0x583b45=>_0x583b45[_0x27a0f3(0x1c8)]===_0x27a0f3(0x1b0)),'company':_0x199016[_0x27a0f3(0x1bb)](_0x5c2731=>_0x5c2731[_0x27a0f3(0x1c8)]===_0x27a0f3(0x1b3)),'builtin':_0x199016[_0x27a0f3(0x1bb)](_0x3ec337=>_0x3ec337['scope']===_0x27a0f3(0x1cc))};}
1
+ const a67_0x26bb78=a67_0x591a;(function(_0x4a0a25,_0x2bf081){const _0x4cf6e6=a67_0x591a,_0x56d43e=_0x4a0a25();while(!![]){try{const _0x1fd570=parseInt(_0x4cf6e6(0x202))/0x1+parseInt(_0x4cf6e6(0x1f2))/0x2*(parseInt(_0x4cf6e6(0x205))/0x3)+-parseInt(_0x4cf6e6(0x1fe))/0x4+-parseInt(_0x4cf6e6(0x203))/0x5+-parseInt(_0x4cf6e6(0x1f6))/0x6+parseInt(_0x4cf6e6(0x20d))/0x7*(-parseInt(_0x4cf6e6(0x20a))/0x8)+-parseInt(_0x4cf6e6(0x207))/0x9*(-parseInt(_0x4cf6e6(0x20b))/0xa);if(_0x1fd570===_0x2bf081)break;else _0x56d43e['push'](_0x56d43e['shift']());}catch(_0x469ccf){_0x56d43e['push'](_0x56d43e['shift']());}}}(a67_0x126b,0x96b5d));function a67_0x126b(){const _0x5e8691=['386MbOFmt','authRequired','filter','local','3125190cjxYbb','bool','Listed\x20','global','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','str','list','length','1025672MDtqKy','\x20local\x20Skill(s).','personal','accessKey','636449spqHnI','4293735XyRKJl','skill','9039gjxiYX','scope','1770003VggkHN','\x20remote\x20Skill(s).','project','385656NUYbzy','60xXUBZw','trim','21dQTfVu','../../../skills/runtime-skill-sync.js','company','map','appCode','builtin','production','envName'];a67_0x126b=function(){return _0x5e8691;};return a67_0x126b();}function a67_0x591a(_0x151012,_0x1a2e38){_0x151012=_0x151012-0x1f1;const _0x126b9d=a67_0x126b();let _0x591abd=_0x126b9d[_0x151012];return _0x591abd;}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':a67_0x26bb78(0x204),'command':a67_0x26bb78(0x1fc),'description':a67_0x26bb78(0x1fa),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x4942b7){const _0x4ec246=a67_0x26bb78,_0x1599c5=_0x4942b7[_0x4ec246(0x1fb)]('code'),_0x5ecfbf=normalizeListScope(_0x4942b7[_0x4ec246(0x1fb)]('scope'));if(_0x4942b7[_0x4ec246(0x1f7)](_0x4ec246(0x1f5))){const _0x188d5f=_0x4942b7[_0x4ec246(0x201)];if(!_0x188d5f)throw CliErrors[_0x4ec246(0x1f3)]();const {listLocalRuntimeSkills:_0x232e69,resolveRuntimeSkillInstallTarget:_0x3567a9}=await import(_0x4ec246(0x20e)),_0x4ec609=_0x3567a9(_0x4942b7[_0x4ec246(0x211)],_0x4942b7[_0x4ec246(0x1f7)]('project')?_0x4ec246(0x209):_0x4ec246(0x1f9)),_0x1b4d6c=_0x232e69({'env':_0x4942b7[_0x4ec246(0x1f1)]??_0x4ec246(0x213),'accessKey':_0x188d5f,'appCode':_0x4942b7[_0x4ec246(0x211)],'scopes':listScopeToRuntimeScopes(_0x5ecfbf),'code':_0x1599c5[_0x4ec246(0x20c)]()||undefined},_0x4ec609),_0x185234=groupLocalRuntimeSkills(_0x1b4d6c);return{'ok':!![],'data':{'appCode':_0x4942b7[_0x4ec246(0x211)],'source':_0x4ec246(0x1f5),..._0x4ec609[_0x4ec246(0x206)]==='project'?{'installScope':_0x4ec609['scope']}:{},'scope':_0x5ecfbf,'total':_0x1b4d6c[_0x4ec246(0x1fd)],'personal':_0x185234[_0x4ec246(0x200)][_0x4ec246(0x1fd)],'company':_0x185234[_0x4ec246(0x20f)][_0x4ec246(0x1fd)],'items':_0x1b4d6c['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x185234['personal'][_0x4ec246(0x210)](summarizeLocalRuntimeSkill),'company':_0x185234['company'][_0x4ec246(0x210)](summarizeLocalRuntimeSkill)}},'message':_0x4ec246(0x1f8)+_0x1b4d6c['length']+_0x4ec246(0x1ff)};}const {listRuntimeSkills:_0x4e04e3}=await import('../../../core/api-client.js'),_0x12abc1=await _0x4e04e3({'appCode':_0x4942b7[_0x4ec246(0x211)],'scope':listScopeToRemoteScope(_0x5ecfbf),'code':_0x1599c5[_0x4ec246(0x20c)]()||undefined}),_0x3854b9=shouldListScope(_0x5ecfbf,_0x4ec246(0x200))?_0x12abc1[_0x4ec246(0x200)]??[]:[],_0x23f000=shouldListScope(_0x5ecfbf,'company')?_0x12abc1[_0x4ec246(0x20f)]??[]:[],_0x5ecb0=[..._0x3854b9,..._0x23f000];return{'ok':!![],'data':{'appCode':_0x4942b7['appCode'],'source':'remote','scope':_0x5ecfbf,'total':_0x5ecb0['length'],'personal':_0x3854b9[_0x4ec246(0x1fd)],'company':_0x23f000[_0x4ec246(0x1fd)],'items':_0x5ecb0[_0x4ec246(0x210)](summarizeRuntimeSkill),'skills':{'personal':_0x3854b9[_0x4ec246(0x210)](summarizeRuntimeSkill),'company':_0x23f000[_0x4ec246(0x210)](summarizeRuntimeSkill)}},'message':_0x4ec246(0x1f8)+_0x5ecb0['length']+_0x4ec246(0x208)};}};function groupLocalRuntimeSkills(_0x50ff31){const _0xaaac3=a67_0x26bb78;return{'personal':_0x50ff31[_0xaaac3(0x1f4)](_0x35057e=>_0x35057e[_0xaaac3(0x206)]==='personal'),'company':_0x50ff31[_0xaaac3(0x1f4)](_0x5a5124=>_0x5a5124[_0xaaac3(0x206)]===_0xaaac3(0x20f)),'builtin':_0x50ff31[_0xaaac3(0x1f4)](_0x50df13=>_0x50df13[_0xaaac3(0x206)]===_0xaaac3(0x212))};}
@@ -1 +1 @@
1
- function a68_0x24ce(_0x4f7b4f,_0x1e3dfd){_0x4f7b4f=_0x4f7b4f-0x1b4;const _0x41fb6c=a68_0x41fb();let _0x24ce1b=_0x41fb6c[_0x4f7b4f];return _0x24ce1b;}const a68_0x3ef975=a68_0x24ce;(function(_0x2ae1c0,_0x4d69a8){const _0x45421d=a68_0x24ce,_0x1223a4=_0x2ae1c0();while(!![]){try{const _0x4a9281=-parseInt(_0x45421d(0x1b6))/0x1*(parseInt(_0x45421d(0x1b8))/0x2)+-parseInt(_0x45421d(0x1c0))/0x3*(parseInt(_0x45421d(0x1ba))/0x4)+-parseInt(_0x45421d(0x1bd))/0x5+-parseInt(_0x45421d(0x1bf))/0x6*(parseInt(_0x45421d(0x1c1))/0x7)+parseInt(_0x45421d(0x1be))/0x8*(parseInt(_0x45421d(0x1bb))/0x9)+parseInt(_0x45421d(0x1bc))/0xa+parseInt(_0x45421d(0x1b9))/0xb;if(_0x4a9281===_0x4d69a8)break;else _0x1223a4['push'](_0x1223a4['shift']());}catch(_0x482659){_0x1223a4['push'](_0x1223a4['shift']());}}}(a68_0x41fb,0xb194c));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x41fb(){const _0x43c850=['1242arioex','9NOYCCq','4025VBqDhs','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','write','1ACkHzF','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','351566NNoMLt','3612950TUlPNc','1559736lAnNLG','99nsaKNM','12044330HCYCau','1029210yVNTOI','629048fcdcsn'];a68_0x41fb=function(){return _0x43c850;};return a68_0x41fb();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':'skill','command':a68_0x3ef975(0x1b4),'description':a68_0x3ef975(0x1b7),'risk':a68_0x3ef975(0x1b5),'confirmationDescription':a68_0x3ef975(0x1c2),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a68_0x2f2d36=a68_0x3504;(function(_0x3b6b79,_0x45c9d2){const _0x310568=a68_0x3504,_0x2b549d=_0x3b6b79();while(!![]){try{const _0x58e7b9=-parseInt(_0x310568(0x189))/0x1*(parseInt(_0x310568(0x187))/0x2)+parseInt(_0x310568(0x190))/0x3+parseInt(_0x310568(0x18c))/0x4+parseInt(_0x310568(0x18a))/0x5+-parseInt(_0x310568(0x18b))/0x6+-parseInt(_0x310568(0x191))/0x7+parseInt(_0x310568(0x18f))/0x8;if(_0x58e7b9===_0x45c9d2)break;else _0x2b549d['push'](_0x2b549d['shift']());}catch(_0x1dac81){_0x2b549d['push'](_0x2b549d['shift']());}}}(a68_0x2020,0x1b383));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a68_0x3504(_0x211862,_0x2534eb){_0x211862=_0x211862-0x186;const _0x2020ad=a68_0x2020();let _0x350457=_0x2020ad[_0x211862];return _0x350457;}function a68_0x2020(){const _0x3d80e7=['Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','1TuTUAc','176615YdQOYK','1011540aOQAGA','267136KtmGHm','push','write','3685768PtTiPS','236424qPnTWN','1059464sUAcJg','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.','420406wgkdOr'];a68_0x2020=function(){return _0x3d80e7;};return a68_0x2020();}export const pushCommand={'service':'skill','command':a68_0x2f2d36(0x18d),'description':a68_0x2f2d36(0x188),'risk':a68_0x2f2d36(0x18e),'confirmationDescription':a68_0x2f2d36(0x186),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a69_0x2063f5=a69_0x36ed;function a69_0x36ed(_0x314de7,_0x1e3f50){_0x314de7=_0x314de7-0x125;const _0x39eea7=a69_0x39ee();let _0x36ed65=_0x39eea7[_0x314de7];return _0x36ed65;}function a69_0x39ee(){const _0xa31446=['dir','str','124178VsOlvh','63260UoLxBz','bool','2142054mxhZCq','496578msHwhJ','9TAOpgv','4092jzkyDf','306280ynMogT','7IWMzGH','validate','strict','type','skill','7595NueuyZ','492NjmtLh','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','12480NcqnmK','warnings','errors'];a69_0x39ee=function(){return _0xa31446;};return a69_0x39ee();}(function(_0x3f5271,_0x32dddd){const _0x42fbe4=a69_0x36ed,_0x2dc7c4=_0x3f5271();while(!![]){try{const _0x272efe=-parseInt(_0x42fbe4(0x12c))/0x1+-parseInt(_0x42fbe4(0x12b))/0x2*(parseInt(_0x42fbe4(0x130))/0x3)+parseInt(_0x42fbe4(0x139))/0x4*(parseInt(_0x42fbe4(0x138))/0x5)+-parseInt(_0x42fbe4(0x12f))/0x6*(parseInt(_0x42fbe4(0x133))/0x7)+parseInt(_0x42fbe4(0x132))/0x8+-parseInt(_0x42fbe4(0x12e))/0x9+parseInt(_0x42fbe4(0x126))/0xa*(parseInt(_0x42fbe4(0x131))/0xb);if(_0x272efe===_0x32dddd)break;else _0x2dc7c4['push'](_0x2dc7c4['shift']());}catch(_0x3606eb){_0x2dc7c4['push'](_0x2dc7c4['shift']());}}}(a69_0x39ee,0x1d12a));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x2063f5(0x137),'command':a69_0x2063f5(0x134),'description':a69_0x2063f5(0x125),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x1a5013){const _0x38a10a=a69_0x2063f5,_0x21eae4=_0x1a5013[_0x38a10a(0x12d)](_0x38a10a(0x135)),_0x826a6b=validateSkillDirectory(_0x1a5013[_0x38a10a(0x12a)](_0x38a10a(0x129)),{'strict':_0x21eae4});return throwIfSkillValidationFailed(_0x826a6b,_0x21eae4),{'ok':!![],'data':{'dir':_0x826a6b[_0x38a10a(0x129)],'type':_0x826a6b[_0x38a10a(0x136)],'errors':_0x826a6b[_0x38a10a(0x128)],'warnings':_0x826a6b[_0x38a10a(0x127)]},'message':'Skill\x20validation\x20passed.'};}};
1
+ const a69_0x599da7=a69_0x1cb8;function a69_0x1cb8(_0xe786c8,_0x10d8d2){_0xe786c8=_0xe786c8-0x1d9;const _0x827ef2=a69_0x827e();let _0x1cb849=_0x827ef2[_0xe786c8];return _0x1cb849;}(function(_0x3bcf12,_0x23f582){const _0x5403b7=a69_0x1cb8,_0x5b9b3b=_0x3bcf12();while(!![]){try{const _0x3e4d3c=parseInt(_0x5403b7(0x1e1))/0x1*(-parseInt(_0x5403b7(0x1eb))/0x2)+-parseInt(_0x5403b7(0x1e0))/0x3*(-parseInt(_0x5403b7(0x1e6))/0x4)+parseInt(_0x5403b7(0x1e5))/0x5*(parseInt(_0x5403b7(0x1ed))/0x6)+parseInt(_0x5403b7(0x1db))/0x7+-parseInt(_0x5403b7(0x1e8))/0x8*(-parseInt(_0x5403b7(0x1de))/0x9)+parseInt(_0x5403b7(0x1e7))/0xa+-parseInt(_0x5403b7(0x1d9))/0xb;if(_0x3e4d3c===_0x23f582)break;else _0x5b9b3b['push'](_0x5b9b3b['shift']());}catch(_0x2f7c0f){_0x5b9b3b['push'](_0x5b9b3b['shift']());}}}(a69_0x827e,0xd9ec4));function a69_0x827e(){const _0x31883f=['7atyUHm','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','errors','warnings','19415SlkFqt','63236CETFbn','9951820XgBmEd','8mZvgce','str','validate','393070aWmPRX','skill','222HwkkzT','13755676oWVnNU','bool','825531hMgUAH','type','read','12675609tIqAHy','dir','162NYwiTU'];a69_0x827e=function(){return _0x31883f;};return a69_0x827e();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x599da7(0x1ec),'command':a69_0x599da7(0x1ea),'description':a69_0x599da7(0x1e2),'risk':a69_0x599da7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x527a70){const _0x580643=a69_0x599da7,_0x43406b=_0x527a70[_0x580643(0x1da)]('strict'),_0x23c00f=validateSkillDirectory(_0x527a70[_0x580643(0x1e9)](_0x580643(0x1df)),{'strict':_0x43406b});return throwIfSkillValidationFailed(_0x23c00f,_0x43406b),{'ok':!![],'data':{'dir':_0x23c00f['dir'],'type':_0x23c00f[_0x580643(0x1dc)],'errors':_0x23c00f[_0x580643(0x1e3)],'warnings':_0x23c00f[_0x580643(0x1e4)]},'message':'Skill\x20validation\x20passed.'};}};
@@ -1 +1 @@
1
- (function(_0x9d4952,_0x5c4bda){const _0x5f5218=a70_0x4aa5,_0x325446=_0x9d4952();while(!![]){try{const _0x89fdce=-parseInt(_0x5f5218(0x1b1))/0x1*(-parseInt(_0x5f5218(0x1c6))/0x2)+parseInt(_0x5f5218(0x1c4))/0x3*(parseInt(_0x5f5218(0x1c1))/0x4)+parseInt(_0x5f5218(0x1b3))/0x5+-parseInt(_0x5f5218(0x1c3))/0x6+parseInt(_0x5f5218(0x1be))/0x7*(-parseInt(_0x5f5218(0x1c0))/0x8)+parseInt(_0x5f5218(0x1c2))/0x9*(parseInt(_0x5f5218(0x1b5))/0xa)+-parseInt(_0x5f5218(0x1b4))/0xb;if(_0x89fdce===_0x5c4bda)break;else _0x325446['push'](_0x325446['shift']());}catch(_0x51cbd5){_0x325446['push'](_0x325446['shift']());}}}(a70_0x54a9,0xc6f74));function a70_0x4aa5(_0x222515,_0xa488ff){_0x222515=_0x222515-0x1ae;const _0x54a977=a70_0x54a9();let _0x4aa5d9=_0x54a977[_0x222515];return _0x4aa5d9;}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a70_0x54a9(){const _0x1cfb70=['3590LCHNcI','utf8','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','trim','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','defineProperties','49XAtfiU','validation','1237672JcormD','4MwQgYQ','8109sPfLzw','6131106CjmBbb','1869366aXpzmB','parse','58924uSdpSj','isFile','mermaid','window','document','replace','51gJCtxv','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','2739890bcVNXJ','850773MOrFiR'];a70_0x54a9=function(){return _0x1cfb70;};return a70_0x54a9();}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x585c06){return(await readRequiredSkillDiagramInput(_0x585c06))['diagram'];}export async function readRequiredSkillDiagramInput(_0x22ce08){const _0x1df377=a70_0x4aa5,_0x1a02c4=_0x22ce08[_0x1df377(0x1b9)]();if(!_0x1a02c4)throw CliErrors[_0x1df377(0x1bf)](_0x1df377(0x1bb),_0x1df377(0x1b2));let _0x1e29ae,_0x438dcb;if(_0x1a02c4==='-')try{_0x1e29ae=readFileSync(0x0,_0x1df377(0x1b6));}catch{throw CliErrors[_0x1df377(0x1bf)](_0x1df377(0x1b8));}else{const _0x203574=resolve(_0x1a02c4);if(!existsSync(_0x203574))throw CliErrors[_0x1df377(0x1bf)](_0x1df377(0x1b7)+_0x203574);if(!statSync(_0x203574)[_0x1df377(0x1c7)]())throw CliErrors['validation'](_0x1df377(0x1bc)+_0x203574);_0x438dcb=realpathSync(_0x203574),_0x1e29ae=readFileSync(_0x438dcb,'utf8');}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x1e29ae)},'sourceFilePath':_0x438dcb};}export async function validateAndCanonicalizeMermaid(_0x3a8f69){const _0x4a8763=a70_0x4aa5,_0x1987a7=_0x3a8f69[_0x4a8763(0x1b0)](/\r\n/g,'\x0a')[_0x4a8763(0x1b0)](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x75e0df=await loadMermaidApi();await _0x75e0df[_0x4a8763(0x1c5)](_0x1987a7);}catch{throw diagramValidationError();}return _0x1987a7;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x10788d=a70_0x4aa5;if(!(_0x10788d(0x1ae)in globalThis)||!(_0x10788d(0x1af)in globalThis)){const _0x71fa56=new JSDOM('');Object[_0x10788d(0x1bd)](globalThis,{'window':{'configurable':!![],'value':_0x71fa56['window']},'document':{'configurable':!![],'value':_0x71fa56[_0x10788d(0x1ae)]['document']}});}return(await import(_0x10788d(0x1c8)))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x2ad76c=a70_0x4aa5;return CliErrors['validation']('Mermaid\x20syntax\x20validation\x20failed.',_0x2ad76c(0x1ba));}
1
+ function a70_0x1a13(_0x2bc521,_0x54285a){_0x2bc521=_0x2bc521-0xa9;const _0x74cdaf=a70_0x74cd();let _0x1a13dc=_0x74cdaf[_0x2bc521];return _0x1a13dc;}(function(_0x2f1c18,_0x4fb7f8){const _0x5359cf=a70_0x1a13,_0x26cf17=_0x2f1c18();while(!![]){try{const _0x528390=-parseInt(_0x5359cf(0xb3))/0x1+-parseInt(_0x5359cf(0xbb))/0x2+-parseInt(_0x5359cf(0xb2))/0x3+parseInt(_0x5359cf(0xb5))/0x4+parseInt(_0x5359cf(0xbd))/0x5*(parseInt(_0x5359cf(0xb0))/0x6)+-parseInt(_0x5359cf(0xbc))/0x7+parseInt(_0x5359cf(0xb6))/0x8*(parseInt(_0x5359cf(0xba))/0x9);if(_0x528390===_0x4fb7f8)break;else _0x26cf17['push'](_0x26cf17['shift']());}catch(_0x2891b3){_0x26cf17['push'](_0x26cf17['shift']());}}}(a70_0x74cd,0xaabfe));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(_0x454818){const _0x238345=a70_0x1a13;return(await readRequiredSkillDiagramInput(_0x454818))[_0x238345(0xaa)];}export async function readRequiredSkillDiagramInput(_0x5e0393){const _0x2ae96a=a70_0x1a13,_0x52d02e=_0x5e0393[_0x2ae96a(0xb1)]();if(!_0x52d02e)throw CliErrors[_0x2ae96a(0xad)](_0x2ae96a(0xb4),'Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.');let _0x22668a,_0x14ffac;if(_0x52d02e==='-')try{_0x22668a=readFileSync(0x0,_0x2ae96a(0xb8));}catch{throw CliErrors[_0x2ae96a(0xad)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0x36e985=resolve(_0x52d02e);if(!existsSync(_0x36e985))throw CliErrors[_0x2ae96a(0xad)](_0x2ae96a(0xb7)+_0x36e985);if(!statSync(_0x36e985)['isFile']())throw CliErrors['validation'](_0x2ae96a(0xab)+_0x36e985);_0x14ffac=realpathSync(_0x36e985),_0x22668a=readFileSync(_0x14ffac,_0x2ae96a(0xb8));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x22668a)},'sourceFilePath':_0x14ffac};}export async function validateAndCanonicalizeMermaid(_0xd95e83){const _0x1d0c64=a70_0x1a13,_0x60d61=_0xd95e83['replace'](/\r\n/g,'\x0a')[_0x1d0c64(0xaf)](/\r/g,'\x0a')[_0x1d0c64(0xaf)](/\n+$/,'')+'\x0a';try{const _0x337202=await loadMermaidApi();await _0x337202['parse'](_0x60d61);}catch{throw diagramValidationError();}return _0x60d61;}function a70_0x74cd(){const _0x5e854c=['Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','defineProperties','validation','document','replace','20022yJHxMI','trim','10434rHGXOa','690243PcCmzM','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','672216Tygoda','16046672iCXrPf','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','utf8','window','9UXWiqn','1891746SfgFcd','5898746BooMSO','1510KnbWHo','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','diagram'];a70_0x74cd=function(){return _0x5e854c;};return a70_0x74cd();}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x168450=a70_0x1a13;if(!('window'in globalThis)||!(_0x168450(0xae)in globalThis)){const _0x5c7563=new JSDOM('');Object[_0x168450(0xac)](globalThis,{'window':{'configurable':!![],'value':_0x5c7563[_0x168450(0xb9)]},'document':{'configurable':!![],'value':_0x5c7563[_0x168450(0xb9)][_0x168450(0xae)]}});}return(await import('mermaid'))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x5e30ec=a70_0x1a13;return CliErrors['validation']('Mermaid\x20syntax\x20validation\x20failed.',_0x5e30ec(0xa9));}
@@ -1 +1 @@
1
- const a71_0x1a443c=a71_0x3a8a;function a71_0x222b(){const _0x56b274=['31495gWtpqq','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','skill-code','scope','number','32kMxBMf','local','158041IqbwRV','boolean','Server-reported\x20SkillVersion\x20source\x20fingerprint','2539299XEpevY','target','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','6tAzZCB','840XCjdyN','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','company','1230WTrvPg','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','90QZcXKt','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','293891YEMmWY','string','type','873rnMxUX','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','48iDalrn','code','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','dir','284988IUEZXq','confirm-warnings','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','diagram-file','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','825345wrJKqy','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','personal','version','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','source-fingerprint','force'];a71_0x222b=function(){return _0x56b274;};return a71_0x222b();}(function(_0x28f1e7,_0x41dbd8){const _0x2be65a=a71_0x3a8a,_0x10d859=_0x28f1e7();while(!![]){try{const _0x2fbc4a=-parseInt(_0x2be65a(0x1f9))/0x1+-parseInt(_0x2be65a(0x1f3))/0x2*(parseInt(_0x2be65a(0x1fc))/0x3)+parseInt(_0x2be65a(0x1fe))/0x4*(parseInt(_0x2be65a(0x210))/0x5)+parseInt(_0x2be65a(0x1ed))/0x6*(parseInt(_0x2be65a(0x1e9))/0x7)+-parseInt(_0x2be65a(0x1e4))/0x8*(parseInt(_0x2be65a(0x207))/0x9)+-parseInt(_0x2be65a(0x1f6))/0xa*(parseInt(_0x2be65a(0x202))/0xb)+parseInt(_0x2be65a(0x1ee))/0xc*(parseInt(_0x2be65a(0x1e6))/0xd);if(_0x2fbc4a===_0x41dbd8)break;else _0x10d859['push'](_0x10d859['shift']());}catch(_0x3e9748){_0x10d859['push'](_0x10d859['shift']());}}}(a71_0x222b,0x34da7));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x1a443c(0x1ff),'type':a71_0x1a443c(0x1fa),'description':a71_0x1a443c(0x206)};export const SCOPE_FLAG={'name':a71_0x1a443c(0x1e2),'type':'string','description':a71_0x1a443c(0x1f8),'enum':[a71_0x1a443c(0x208),a71_0x1a443c(0x20a),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x1a443c(0x1e2),'type':a71_0x1a443c(0x1fa),'description':a71_0x1a443c(0x1f4),'default':a71_0x1a443c(0x20a),'enum':[a71_0x1a443c(0x20a),'company']};export const LIST_SCOPE_FLAG={'name':a71_0x1a443c(0x1e2),'type':a71_0x1a443c(0x1fa),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':['all',a71_0x1a443c(0x20a),'company']};function a71_0x3a8a(_0x47c307,_0x4f44ca){_0x47c307=_0x47c307-0x1e0;const _0x222b9b=a71_0x222b();let _0x3a8a4d=_0x222b9b[_0x47c307];return _0x3a8a4d;}export const LOCAL_FLAG={'name':a71_0x1a443c(0x1e5),'type':a71_0x1a443c(0x1e7),'description':a71_0x1a443c(0x1f0)};export const DIR_FLAG={'name':a71_0x1a443c(0x201),'type':'string','required':!![],'description':a71_0x1a443c(0x209)};export const DIAGRAM_FILE_FLAG={'name':a71_0x1a443c(0x205),'type':a71_0x1a443c(0x1fa),'required':!![],'description':a71_0x1a443c(0x20d)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x1a443c(0x1e1),'type':a71_0x1a443c(0x1fa),'required':!![],'description':a71_0x1a443c(0x1fd)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x1a443c(0x20b),'type':a71_0x1a443c(0x1fa),'required':!![],'description':a71_0x1a443c(0x1ef)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x1a443c(0x1e2),'type':a71_0x1a443c(0x1fa),'required':!![],'enum':['personal',a71_0x1a443c(0x1f2)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x1a443c(0x20e),'type':a71_0x1a443c(0x1fa),'required':!![],'description':a71_0x1a443c(0x1e8),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x1a443c(0x200)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a71_0x1a443c(0x1e3),'required':!![],'description':a71_0x1a443c(0x1f7)};export const CREATE_NAME_FLAG={'name':'name','type':a71_0x1a443c(0x1fa),'required':!![],'description':a71_0x1a443c(0x1f1),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x1a443c(0x1f5)}};export const TYPE_FLAG={'name':a71_0x1a443c(0x1fb),'type':'string','description':a71_0x1a443c(0x204),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x1a443c(0x1ea),'type':a71_0x1a443c(0x1fa),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x1a443c(0x20f),'type':a71_0x1a443c(0x1e7),'description':a71_0x1a443c(0x1e0)};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0x1a443c(0x1e7),'description':a71_0x1a443c(0x20c)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x1a443c(0x203),'type':'boolean','description':a71_0x1a443c(0x1ec)};export const STRICT_FLAG={'name':'strict','type':a71_0x1a443c(0x1e7),'description':a71_0x1a443c(0x1eb)};
1
+ const a71_0x308bf1=a71_0x5045;(function(_0xe88c59,_0x12c529){const _0x44bff9=a71_0x5045,_0x243403=_0xe88c59();while(!![]){try{const _0x73170c=parseInt(_0x44bff9(0x184))/0x1+-parseInt(_0x44bff9(0x18a))/0x2+-parseInt(_0x44bff9(0x191))/0x3*(parseInt(_0x44bff9(0x195))/0x4)+parseInt(_0x44bff9(0x196))/0x5+-parseInt(_0x44bff9(0x19f))/0x6*(-parseInt(_0x44bff9(0x1ad))/0x7)+-parseInt(_0x44bff9(0x1a2))/0x8+-parseInt(_0x44bff9(0x193))/0x9*(-parseInt(_0x44bff9(0x199))/0xa);if(_0x73170c===_0x12c529)break;else _0x243403['push'](_0x243403['shift']());}catch(_0x3e72e1){_0x243403['push'](_0x243403['shift']());}}}(a71_0x4951,0xe7da0));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x308bf1(0x1ab),'type':'string','description':a71_0x308bf1(0x188)};export const SCOPE_FLAG={'name':'scope','type':a71_0x308bf1(0x1af),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a71_0x308bf1(0x1a0),a71_0x308bf1(0x1a5),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x308bf1(0x18d),'type':a71_0x308bf1(0x1af),'description':a71_0x308bf1(0x19d),'default':a71_0x308bf1(0x1a5),'enum':[a71_0x308bf1(0x1a5),a71_0x308bf1(0x1a6)]};export const LIST_SCOPE_FLAG={'name':a71_0x308bf1(0x18d),'type':'string','description':a71_0x308bf1(0x19a),'enum':[a71_0x308bf1(0x1a0),'personal',a71_0x308bf1(0x1a6)]};export const LOCAL_FLAG={'name':a71_0x308bf1(0x185),'type':a71_0x308bf1(0x18c),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a71_0x308bf1(0x1ae),'type':'string','required':!![],'description':a71_0x308bf1(0x1a1)};export const DIAGRAM_FILE_FLAG={'name':a71_0x308bf1(0x198),'type':a71_0x308bf1(0x1af),'required':!![],'description':'UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin'};function a71_0x5045(_0x461262,_0x1db166){_0x461262=_0x461262-0x184;const _0x49514e=a71_0x4951();let _0x50452f=_0x49514e[_0x461262];return _0x50452f;}export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':'string','required':!![],'description':a71_0x308bf1(0x197)};function a71_0x4951(){const _0x39424c=['Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','code','Server-reported\x20SkillVersion\x20source\x20fingerprint','9657067FEIStm','dir','string','552030tzBViw','local','number','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','type','1348202CjSvbT','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','boolean','scope','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','expected-diagram-revision','project','204ItLkMu','source-fingerprint','237969BVaLBa','force','46048UEDSpB','585500dOlGqk','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','diagram-file','150yZYWKY','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','strict','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','6WvqMDs','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','309960IkhmUF','target','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','personal','company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','confirm-warnings'];a71_0x4951=function(){return _0x39424c;};return a71_0x4951();}export const DIAGRAM_VERSION_FLAG={'name':'version','type':a71_0x308bf1(0x1af),'required':!![],'description':a71_0x308bf1(0x187)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x308bf1(0x18d),'type':a71_0x308bf1(0x1af),'required':!![],'enum':['personal',a71_0x308bf1(0x1a6)],'description':a71_0x308bf1(0x19b)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x308bf1(0x192),'type':a71_0x308bf1(0x1af),'required':!![],'description':a71_0x308bf1(0x1ac),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x308bf1(0x1aa)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x308bf1(0x18f),'type':a71_0x308bf1(0x186),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':'name','type':a71_0x308bf1(0x1af),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x308bf1(0x18b)}};export const TYPE_FLAG={'name':a71_0x308bf1(0x189),'type':a71_0x308bf1(0x1af),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x308bf1(0x1a3),'type':a71_0x308bf1(0x1af),'description':a71_0x308bf1(0x1a9),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x308bf1(0x194),'type':'boolean','description':a71_0x308bf1(0x18e)};export const PROJECT_TARGET_FLAG={'name':a71_0x308bf1(0x190),'type':a71_0x308bf1(0x18c),'description':a71_0x308bf1(0x19e)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x308bf1(0x1a8),'type':'boolean','description':a71_0x308bf1(0x1a4)};export const STRICT_FLAG={'name':a71_0x308bf1(0x19c),'type':a71_0x308bf1(0x18c),'description':a71_0x308bf1(0x1a7)};
@@ -1 +1 @@
1
- (function(_0x368685,_0x31cce2){const _0x396bf8=a72_0x5781,_0x4a2a7f=_0x368685();while(!![]){try{const _0x4a0835=parseInt(_0x396bf8(0x12a))/0x1+-parseInt(_0x396bf8(0x123))/0x2+-parseInt(_0x396bf8(0x122))/0x3*(parseInt(_0x396bf8(0x120))/0x4)+-parseInt(_0x396bf8(0x121))/0x5*(parseInt(_0x396bf8(0x125))/0x6)+-parseInt(_0x396bf8(0x126))/0x7*(parseInt(_0x396bf8(0x124))/0x8)+-parseInt(_0x396bf8(0x129))/0x9*(parseInt(_0x396bf8(0x128))/0xa)+parseInt(_0x396bf8(0x127))/0xb;if(_0x4a0835===_0x31cce2)break;else _0x4a2a7f['push'](_0x4a2a7f['shift']());}catch(_0x35d0a3){_0x4a2a7f['push'](_0x4a2a7f['shift']());}}}(a72_0xdfbd,0x95995));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0xdfbd(){const _0x35c549=['103336GGaYzY','18lmYBWn','609TloRWe','40057281WjvHbF','2920BwHGtj','12951DqcnYU','494051zzqNof','925404MpWfqq','470460YGUgRO','9nTGdfC','2005138vXZwPE'];a72_0xdfbd=function(){return _0x35c549;};return a72_0xdfbd();}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_0x5781(_0x4bd42a,_0x5154f4){_0x4bd42a=_0x4bd42a-0x120;const _0xdfbd34=a72_0xdfbd();let _0x5781f6=_0xdfbd34[_0x4bd42a];return _0x5781f6;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x3b2d32,_0x1b42bc){const _0x1bd55c=a72_0x27c3,_0x2231ce=_0x3b2d32();while(!![]){try{const _0x7ede6d=parseInt(_0x1bd55c(0x13b))/0x1*(parseInt(_0x1bd55c(0x131))/0x2)+parseInt(_0x1bd55c(0x134))/0x3*(-parseInt(_0x1bd55c(0x135))/0x4)+parseInt(_0x1bd55c(0x132))/0x5*(-parseInt(_0x1bd55c(0x13a))/0x6)+parseInt(_0x1bd55c(0x139))/0x7*(-parseInt(_0x1bd55c(0x133))/0x8)+-parseInt(_0x1bd55c(0x137))/0x9*(-parseInt(_0x1bd55c(0x130))/0xa)+parseInt(_0x1bd55c(0x136))/0xb*(parseInt(_0x1bd55c(0x12f))/0xc)+parseInt(_0x1bd55c(0x138))/0xd;if(_0x7ede6d===_0x1b42bc)break;else _0x2231ce['push'](_0x2231ce['shift']());}catch(_0x5f0c93){_0x2231ce['push'](_0x2231ce['shift']());}}}(a72_0x2dba,0x3c88a));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0x27c3(_0x30b6f0,_0x5b7840){_0x30b6f0=_0x30b6f0-0x12f;const _0x2dbaeb=a72_0x2dba();let _0x27c325=_0x2dbaeb[_0x30b6f0];return _0x27c325;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];function a72_0x2dba(){const _0x3cbd6f=['22UIKJXb','725140GfMKQg','333656erDqiP','1092894xnMuor','4frNUrS','498828iBvtOB','12744zmJgjS','2895802HnsPmc','14mOCFZo','18krghka','19564TRkctb','120fornNJ','1690nXMOet'];a72_0x2dba=function(){return _0x3cbd6f;};return a72_0x2dba();}
@@ -1 +1 @@
1
- function a73_0x2156(_0x31c1,_0x4d6af2){_0x31c1=_0x31c1-0x8e;var _0x4f066b=a73_0x4f06();var _0x21564e=_0x4f066b[_0x31c1];return _0x21564e;}function a73_0x4f06(){var _0x29ec4b=['ossPath','120DowyND','10588221FTYmgo','object','2537415nnTnyN','42026ScEDzA','158139hRbnzF','isArray','1891416DkBSTj','SKILL.md','path','51eEwAOR','34660600RvRzil','some','4481328xdldlq','files','length','6AnLfgf'];a73_0x4f06=function(){return _0x29ec4b;};return a73_0x4f06();}(function(_0x2e52e4,_0x2e0312){var _0xf43a06=a73_0x2156,_0x385066=_0x2e52e4();while(!![]){try{var _0x3eca55=-parseInt(_0xf43a06(0x8e))/0x1*(parseInt(_0xf43a06(0x9a))/0x2)+parseInt(_0xf43a06(0x94))/0x3*(parseInt(_0xf43a06(0x9d))/0x4)+-parseInt(_0xf43a06(0x99))/0x5+-parseInt(_0xf43a06(0x91))/0x6+-parseInt(_0xf43a06(0x97))/0x7+parseInt(_0xf43a06(0x96))/0x8*(parseInt(_0xf43a06(0x9b))/0x9)+parseInt(_0xf43a06(0x8f))/0xa;if(_0x3eca55===_0x2e0312)break;else _0x385066['push'](_0x385066['shift']());}catch(_0x2670fe){_0x385066['push'](_0x385066['shift']());}}}(a73_0x4f06,0xcc458));export function isPackageBackedManifest(_0x536dd7){var _0x14fc5b=a73_0x2156;return!!_0x536dd7&&typeof _0x536dd7==='object'&&!Array['isArray'](_0x536dd7)&&typeof _0x536dd7[_0x14fc5b(0x95)]==='string'&&_0x536dd7[_0x14fc5b(0x95)][_0x14fc5b(0x93)]>0x0&&Array[_0x14fc5b(0x9c)](_0x536dd7['files']);}export function isMultiFileManifest(_0x57c0bc){var _0x5c5952=a73_0x2156;return!!_0x57c0bc&&typeof _0x57c0bc===_0x5c5952(0x98)&&!Array[_0x5c5952(0x9c)](_0x57c0bc)&&Array[_0x5c5952(0x9c)](_0x57c0bc[_0x5c5952(0x92)])&&_0x57c0bc[_0x5c5952(0x92)][_0x5c5952(0x90)](_0x44d6d4=>_0x44d6d4[_0x5c5952(0x9f)]!==_0x5c5952(0x9e));}
1
+ (function(_0x4c2fdb,_0x4f4e96){var _0x3a180c=a73_0x55e9,_0x57cce7=_0x4c2fdb();while(!![]){try{var _0x2504ee=-parseInt(_0x3a180c(0x1e4))/0x1*(parseInt(_0x3a180c(0x1e3))/0x2)+parseInt(_0x3a180c(0x1e5))/0x3*(parseInt(_0x3a180c(0x1ed))/0x4)+parseInt(_0x3a180c(0x1f2))/0x5+-parseInt(_0x3a180c(0x1f1))/0x6*(parseInt(_0x3a180c(0x1ea))/0x7)+parseInt(_0x3a180c(0x1e8))/0x8+-parseInt(_0x3a180c(0x1eb))/0x9+parseInt(_0x3a180c(0x1ef))/0xa;if(_0x2504ee===_0x4f4e96)break;else _0x57cce7['push'](_0x57cce7['shift']());}catch(_0x447080){_0x57cce7['push'](_0x57cce7['shift']());}}}(a73_0x292b,0x79569));export function isPackageBackedManifest(_0x54b8d6){var _0x431568=a73_0x55e9;return!!_0x54b8d6&&typeof _0x54b8d6===_0x431568(0x1f3)&&!Array[_0x431568(0x1e1)](_0x54b8d6)&&typeof _0x54b8d6[_0x431568(0x1e9)]===_0x431568(0x1f0)&&_0x54b8d6[_0x431568(0x1e9)][_0x431568(0x1ec)]>0x0&&Array[_0x431568(0x1e1)](_0x54b8d6[_0x431568(0x1e7)]);}function a73_0x55e9(_0x1bb2cb,_0x52993a){_0x1bb2cb=_0x1bb2cb-0x1e1;var _0x292b50=a73_0x292b();var _0x55e99e=_0x292b50[_0x1bb2cb];return _0x55e99e;}function a73_0x292b(){var _0x20fa47=['6837921hFnxEs','length','114040wOncaf','path','2949080IFMXXs','string','6wccMkR','4626090devRZX','object','isArray','some','10elcwvx','26399ACyCJx','15IHcMDA','SKILL.md','files','1156824MuDieV','ossPath','829598uDzwEa'];a73_0x292b=function(){return _0x20fa47;};return a73_0x292b();}export function isMultiFileManifest(_0x428c){var _0x3165fb=a73_0x55e9;return!!_0x428c&&typeof _0x428c===_0x3165fb(0x1f3)&&!Array['isArray'](_0x428c)&&Array[_0x3165fb(0x1e1)](_0x428c[_0x3165fb(0x1e7)])&&_0x428c['files'][_0x3165fb(0x1e2)](_0x14cfb5=>_0x14cfb5[_0x3165fb(0x1ee)]!==_0x3165fb(0x1e6));}
@@ -1 +1 @@
1
- (function(_0x1f311e,_0x3b8d47){const _0x3c309f=a74_0x5ff8,_0x11a5ce=_0x1f311e();while(!![]){try{const _0x3ffe8e=parseInt(_0x3c309f(0xcb))/0x1+parseInt(_0x3c309f(0xbc))/0x2*(parseInt(_0x3c309f(0xea))/0x3)+-parseInt(_0x3c309f(0xb7))/0x4*(-parseInt(_0x3c309f(0xb8))/0x5)+parseInt(_0x3c309f(0xd6))/0x6+parseInt(_0x3c309f(0xcf))/0x7+-parseInt(_0x3c309f(0xce))/0x8*(parseInt(_0x3c309f(0xdb))/0x9)+-parseInt(_0x3c309f(0xe8))/0xa;if(_0x3ffe8e===_0x3b8d47)break;else _0x11a5ce['push'](_0x11a5ce['shift']());}catch(_0x472bbc){_0x11a5ce['push'](_0x11a5ce['shift']());}}}(a74_0x23f0,0x1edcc));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a74_0x5ff8(_0x24ae62,_0x270d3e){_0x24ae62=_0x24ae62-0xb2;const _0x23f06a=a74_0x23f0();let _0x5ff8fd=_0x23f06a[_0x24ae62];return _0x5ff8fd;}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(_0xa38c1b){const _0x44ee31=a74_0x5ff8,{getRuntimeSkillByCode:_0x576c62,validateRuntimeSkillPublish:_0x3220a9}=await import(_0x44ee31(0xb9)),{readPushDirectory:_0x16e41f,resolvePushDirectoryIdentity:_0x13cbbd}=await import('../../skills/runtime-skill-sync.js');if(!_0xa38c1b[_0x44ee31(0xb3)])throw CliErrors[_0x44ee31(0xc0)]();const _0x389b49=resolvePushScope(_0xa38c1b),_0x48f22f=validateSkillDirectory(_0xa38c1b[_0x44ee31(0xb5)](_0x44ee31(0xba)));throwIfSkillValidationFailed(_0x48f22f);const {diagram:_0x2d9d0f,sourceFilePath:_0x38561a}=await readRequiredSkillDiagramInput(_0xa38c1b[_0x44ee31(0xb5)](_0x44ee31(0xd5))),_0x35940f=diagramPackageExclusion(_0x38561a),_0x124702=_0x13cbbd(_0x48f22f['dir'],_0xa38c1b['appCode'],remoteFirstMetadataOptions()),_0x1f7083=await _0x576c62(_0xa38c1b[_0x44ee31(0xe3)],_0x124702[_0x44ee31(0xd2)]);throwIfBuiltinPushTarget(_0x1f7083);if(_0x389b49===_0x44ee31(0xc4)){const _0x340a35=_0x16e41f(_0x48f22f['dir'],_0xa38c1b['appCode'],{...remoteMissingCompanyReadOptions(),..._0x35940f}),_0x249c5c=await _0x3220a9(_0xa38c1b[_0x44ee31(0xe3)],withDiagram(_0x340a35[_0x44ee31(0xc5)],_0x2d9d0f),{'visibility':_0x44ee31(0xe2)});return{'method':_0x44ee31(0xd3),'url':'/api/cli/v1/skills/'+_0xa38c1b[_0x44ee31(0xe3)]+_0x44ee31(0xd4),'body':{'skillCode':_0x340a35[_0x44ee31(0xd2)],'visibility':_0x44ee31(0xe2),'valid':_0x249c5c[_0x44ee31(0xe4)],'errors':_0x249c5c['errors'],'warnings':_0x249c5c[_0x44ee31(0xc6)],'resolvedSlug':_0x249c5c[_0x44ee31(0xe5)],'resolvedVersion':_0x249c5c['resolvedVersion'],'diagramValidated':_0x249c5c['diagramValidated']},'description':_0x44ee31(0xd0)};}if(_0x1f7083&&_0x1f7083['scope']!==_0x44ee31(0xe7))throw CliErrors[_0x44ee31(0xec)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x124702['skillCode']+_0x44ee31(0xca)+(_0x1f7083[_0x44ee31(0xeb)]??'unknown')+'\x22.');const _0x4c54cf=_0x16e41f(_0x48f22f[_0x44ee31(0xba)],_0xa38c1b[_0x44ee31(0xe3)],{..._0x1f7083?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x35940f}),_0xcd7726=await _0x3220a9(_0xa38c1b[_0x44ee31(0xe3)],withDiagram(_0x4c54cf[_0x44ee31(0xc5)],_0x2d9d0f),{'visibility':_0x44ee31(0xe9)});return{'method':_0x44ee31(0xd3),'url':_0x44ee31(0xbb)+_0xa38c1b[_0x44ee31(0xe3)]+_0x44ee31(0xd4),'body':{'skillCode':_0x4c54cf[_0x44ee31(0xd2)],'visibility':_0x44ee31(0xe9),'valid':_0xcd7726[_0x44ee31(0xe4)],'errors':_0xcd7726['errors'],'warnings':_0xcd7726['warnings'],'resolvedSlug':_0xcd7726[_0x44ee31(0xe5)],'resolvedVersion':_0xcd7726['resolvedVersion'],'diagramValidated':_0xcd7726[_0x44ee31(0xdf)]},'description':_0x44ee31(0xb4)};}export async function skillPushExecute(_0x19ea83){const _0x11aec4=a74_0x5ff8,{createPersonalRuntimeSkill:_0x3cb024,downloadRuntimeSkillPackage:_0x285901,getRuntimeSkillByCode:_0x821122,publishCompanyRuntimeSkill:_0xad529f,updatePersonalRuntimeSkill:_0x3be9c5,validateRuntimeSkillPublish:_0x164eaa}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x31da0e,verifyRuntimeSkillBundle:_0x3eb893,readPushDirectory:_0x24ae82,refreshPushDirectoryMetadataFromRemote:_0x38eb05,recordPushedRuntimeSkill:_0x40412e,resolvePushDirectoryIdentity:_0x3e80db}=await import(_0x11aec4(0xc3));if(!_0x19ea83[_0x11aec4(0xb3)])throw CliErrors[_0x11aec4(0xc0)]();const _0x600a3b=resolvePushScope(_0x19ea83),_0x208afc=_0x19ea83[_0x11aec4(0xc8)]('confirm-warnings')||_0x19ea83[_0x11aec4(0xc8)]('confirmWarnings'),_0x1cc2f0=validateSkillDirectory(_0x19ea83[_0x11aec4(0xb5)](_0x11aec4(0xba)));throwIfSkillValidationFailed(_0x1cc2f0);const {diagram:_0x5b11de,sourceFilePath:_0x2fddbd}=await readRequiredSkillDiagramInput(_0x19ea83[_0x11aec4(0xb5)](_0x11aec4(0xd5))),_0x36d460=diagramPackageExclusion(_0x2fddbd),_0x4b7d87=_0x1cc2f0['dir'];let _0x5025a9;if(_0x600a3b==='company'){const _0x11d690=_0x3e80db(_0x4b7d87,_0x19ea83[_0x11aec4(0xe3)],remoteFirstMetadataOptions()),_0x382b43=await _0x821122(_0x19ea83['appCode'],_0x11d690['skillCode']);throwIfBuiltinPushTarget(_0x382b43);if(_0x382b43)_0x38eb05(_0x4b7d87,_0x382b43,_0x19ea83[_0x11aec4(0xe3)]);const _0x4b9464=_0x24ae82(_0x4b7d87,_0x19ea83[_0x11aec4(0xe3)],{..._0x382b43?{'targetScope':_0x11aec4(0xc4),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x36d460});_0x5025a9={'scope':_0x11aec4(0xc4),'payload':_0x4b9464,'publishInput':withDiagram(_0x4b9464[_0x11aec4(0xc5)],_0x5b11de),'remoteForPreflight':_0x382b43,'warnings':[]};}else{const _0x4e214c=_0x19ea83['str'](_0x11aec4(0xc9))[_0x11aec4(0xe0)](),_0x582696=Boolean(_0x4e214c),_0x2e02a1=allowRetargetArgs(_0x582696),_0x1e16c3=_0x3e80db(_0x4b7d87,_0x19ea83[_0x11aec4(0xe3)],{...remoteFirstMetadataOptions(),..._0x2e02a1[0x0]}),_0x412c86=await _0x821122(_0x19ea83[_0x11aec4(0xe3)],_0x1e16c3['skillCode']);throwIfBuiltinPushTarget(_0x412c86);if(_0x412c86){if(_0x412c86[_0x11aec4(0xeb)]!==_0x11aec4(0xe7)){if(_0x582696)throw CliErrors['validation'](_0x11aec4(0xda)+_0x1e16c3[_0x11aec4(0xd2)]+_0x11aec4(0xca)+(_0x412c86[_0x11aec4(0xeb)]??_0x11aec4(0xde))+'\x22.');_0x38eb05(_0x4b7d87,_0x412c86,_0x19ea83[_0x11aec4(0xe3)]);}else!_0x582696&&_0x38eb05(_0x4b7d87,_0x412c86,_0x19ea83['appCode']);}const _0x411f75=_0x24ae82(_0x4b7d87,_0x19ea83['appCode'],{..._0x412c86?remotePersonalReadOptions(_0x582696,_0x2e02a1[0x0]):remoteMissingPersonalReadOptions(_0x2e02a1[0x0]),..._0x36d460}),_0x4643b6=_0x412c86?.['scope']===_0x11aec4(0xe7)&&_0x412c86[_0x11aec4(0xd2)]===_0x411f75[_0x11aec4(0xd2)]?_0x412c86:undefined,_0x291c3a=_0x582696&&_0x4643b6?withRetargetExistingMetadata(_0x411f75['input'],_0x4643b6,{'preferInputSkillName':Boolean(_0x411f75['frontmatterDisplayName'])}):_0x411f75[_0x11aec4(0xc5)],_0xf6b905=_0x582696?buildRetargetWarning(_0x1e16c3[_0x11aec4(0xe1)],_0x19ea83['appCode']):[];_0x5025a9={'scope':_0x11aec4(0xe7),'payload':_0x411f75,'publishInput':withDiagram(_0x291c3a,_0x5b11de),'remoteForPreflight':_0x4643b6,'existing':_0x4643b6,'warnings':[..._0x1cc2f0[_0x11aec4(0xc6)],..._0xf6b905]};}const _0x52b445=await runRemoteContentPreflight({'scope':_0x5025a9[_0x11aec4(0xeb)],'remote':_0x5025a9['remoteForPreflight'],'publishInput':_0x5025a9[_0x11aec4(0xdc)],'skillCode':_0x5025a9[_0x11aec4(0xbe)]['skillCode'],'appCode':_0x19ea83[_0x11aec4(0xe3)],'downloadRuntimeSkillPackage':_0x285901,'verifyRuntimeSkillBundle':_0x3eb893});if(_0x52b445[_0x11aec4(0xd7)]===_0x11aec4(0xbf))return _0x5025a9[_0x11aec4(0xeb)]===_0x11aec4(0xc4)?_0x40412e(_0x4b7d87,_0x52b445[_0x11aec4(0xdd)],_0x19ea83['appCode'],{'scope':_0x11aec4(0xc4)}):_0x40412e(_0x4b7d87,_0x52b445['savedSkill'],_0x19ea83[_0x11aec4(0xe3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x52b445[_0x11aec4(0xdd)]),'scope':_0x5025a9[_0x11aec4(0xeb)],..._0x5025a9[_0x11aec4(0xeb)]===_0x11aec4(0xe7)?{'warnings':_0x5025a9[_0x11aec4(0xc6)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x5025a9['scope'])+_0x11aec4(0xc7)+_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)]+_0x11aec4(0xc1)};if(_0x5025a9[_0x11aec4(0xeb)]===_0x11aec4(0xc4)){const _0xffc19c=await _0x164eaa(_0x19ea83['appCode'],_0x5025a9['publishInput'],{'visibility':_0x11aec4(0xe2)});throwIfPublishValidationFailed(_0x11aec4(0xc4),_0x5025a9[_0x11aec4(0xbe)]['skillCode'],_0xffc19c),throwIfUnconfirmedPublishWarnings(_0x11aec4(0xc4),_0x5025a9[_0x11aec4(0xbe)]['skillCode'],_0xffc19c[_0x11aec4(0xc6)],_0x208afc);const _0x3d7100=await _0xad529f(_0x19ea83[_0x11aec4(0xe3)],_0x5025a9[_0x11aec4(0xdc)],{'confirmWarnings':_0x208afc});return _0x40412e(_0x4b7d87,{..._0x3d7100,'files':_0x5025a9['publishInput'][_0x11aec4(0xd8)]},_0x19ea83[_0x11aec4(0xe3)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3d7100),'scope':_0x11aec4(0xc4),'reviewState':_0x11aec4(0xcd),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0xffc19c['warnings']}},'message':_0x11aec4(0xbd)+_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)]+'\x20version\x20'+(_0x3d7100[_0x11aec4(0xb6)]??_0x11aec4(0xd1))+_0x11aec4(0xe6)};}const _0x147f51=await _0x164eaa(_0x19ea83[_0x11aec4(0xe3)],_0x5025a9[_0x11aec4(0xdc)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x11aec4(0xe7),_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)],_0x147f51),throwIfUnconfirmedPublishWarnings(_0x11aec4(0xe7),_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)],_0x147f51[_0x11aec4(0xc6)],_0x208afc);const _0x5b9483={'confirmWarnings':_0x208afc},_0x280b1b=_0x5025a9['existing']?await _0x3be9c5(_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)],_0x19ea83['appCode'],_0x5025a9[_0x11aec4(0xdc)],_0x5b9483):await _0x3cb024(_0x19ea83['appCode'],_0x5025a9[_0x11aec4(0xdc)],_0x5b9483);let _0x37f62b=_0x280b1b;if(isMultiFileManifest(_0x5025a9[_0x11aec4(0xdc)][_0x11aec4(0xd8)])){const _0x1d33a8=await _0x285901('personal',_0x280b1b[_0x11aec4(0xd2)]||_0x5025a9['payload'][_0x11aec4(0xd2)],_0x19ea83['appCode']);_0x3eb893(_0x5025a9['publishInput']['files'],_0x1d33a8),_0x37f62b={..._0x280b1b,'files':_0x5025a9[_0x11aec4(0xdc)][_0x11aec4(0xd8)]};}else{if(isPackageBackedManifest(_0x280b1b[_0x11aec4(0xd8)])){const _0x32b27f=await _0x285901(_0x11aec4(0xe7),_0x280b1b[_0x11aec4(0xd2)]||_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)],_0x19ea83[_0x11aec4(0xe3)]);_0x31da0e(_0x280b1b[_0x11aec4(0xd8)],_0x32b27f);}}return _0x40412e(_0x4b7d87,_0x37f62b,_0x19ea83[_0x11aec4(0xe3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x280b1b),'warnings':_0x5025a9['warnings'],'validation':{'warnings':_0x147f51[_0x11aec4(0xc6)]},'diagramBound':!![]},'message':_0x5025a9[_0x11aec4(0xd9)]?'Updated\x20personal\x20Skill\x20'+_0x5025a9[_0x11aec4(0xbe)]['skillCode']:_0x11aec4(0xcc)+_0x5025a9[_0x11aec4(0xbe)][_0x11aec4(0xd2)]};}function scopeLabel(_0x398260){const _0x2b9d61=a74_0x5ff8;return _0x398260===_0x2b9d61(0xc4)?_0x2b9d61(0xc2):_0x2b9d61(0xb2);}function withDiagram(_0x5deb30,_0x294e84){return{..._0x5deb30,'diagram':_0x294e84};}function a74_0x23f0(){const _0x1b1ced=['../../core/api-client.js','dir','/api/cli/v1/skills/','42862kPINWf','Submitted\x20company\x20Skill\x20','payload','identical','authRequired','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Company','../../skills/runtime-skill-sync.js','company','input','warnings','\x20Skill\x20','bool','appcode','\x20has\x20scope=\x22','180844QGhkqL','Created\x20personal\x20Skill\x20','submitted','170128XotxnM','17031hsXQLK','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','(unknown)','skillCode','POST','/publish/validate','diagram-file','613404BgTvsx','status','files','existing','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','9nLlzyi','publishInput','savedSkill','unknown','diagramValidated','trim','metadata','NAMESPACE_ONLY','appCode','valid','resolvedSlug','\x20for\x20review','personal','1764190uqicxw','PRIVATE','3nrvsCS','scope','validation','Personal','accessKey','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','str','version','940gbwhMs','365jvUDoX'];a74_0x23f0=function(){return _0x1b1ced;};return a74_0x23f0();}function diagramPackageExclusion(_0x14a614){return _0x14a614?{'excludedFilePaths':[_0x14a614]}:{};}
1
+ function a74_0x19da(_0x5cc784,_0xb27deb){_0x5cc784=_0x5cc784-0xbe;const _0x8cc4b9=a74_0x8cc4();let _0x19da02=_0x8cc4b9[_0x5cc784];return _0x19da02;}(function(_0x327a06,_0x3f300d){const _0xb10c14=a74_0x19da,_0x3c2210=_0x327a06();while(!![]){try{const _0xa65480=-parseInt(_0xb10c14(0xef))/0x1+parseInt(_0xb10c14(0xdf))/0x2*(-parseInt(_0xb10c14(0xf9))/0x3)+parseInt(_0xb10c14(0xf8))/0x4*(parseInt(_0xb10c14(0xed))/0x5)+-parseInt(_0xb10c14(0xe1))/0x6*(-parseInt(_0xb10c14(0xd0))/0x7)+parseInt(_0xb10c14(0xe4))/0x8+parseInt(_0xb10c14(0xd8))/0x9*(parseInt(_0xb10c14(0xc0))/0xa)+-parseInt(_0xb10c14(0xe6))/0xb;if(_0xa65480===_0x3f300d)break;else _0x3c2210['push'](_0x3c2210['shift']());}catch(_0x956f1a){_0x3c2210['push'](_0x3c2210['shift']());}}}(a74_0x8cc4,0x2f94f));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(_0x5e3b26){const _0x32afac=a74_0x19da,{getRuntimeSkillByCode:_0x3d442a,validateRuntimeSkillPublish:_0x2bf2e1}=await import(_0x32afac(0xc4)),{readPushDirectory:_0x3ed8d5,resolvePushDirectoryIdentity:_0x4cec6f}=await import(_0x32afac(0xe2));if(!_0x5e3b26[_0x32afac(0xd1)])throw CliErrors[_0x32afac(0xe8)]();const _0x5b756b=resolvePushScope(_0x5e3b26),_0x3b5af7=validateSkillDirectory(_0x5e3b26[_0x32afac(0xcc)](_0x32afac(0xca)));throwIfSkillValidationFailed(_0x3b5af7);const {diagram:_0xeb4cb9,sourceFilePath:_0x50214d}=await readRequiredSkillDiagramInput(_0x5e3b26[_0x32afac(0xcc)](_0x32afac(0xe9))),_0x21ec9e=diagramPackageExclusion(_0x50214d),_0x5d6221=_0x4cec6f(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26[_0x32afac(0xc8)],remoteFirstMetadataOptions()),_0x45dcd8=await _0x3d442a(_0x5e3b26[_0x32afac(0xc8)],_0x5d6221[_0x32afac(0xc7)]);throwIfBuiltinPushTarget(_0x45dcd8);if(_0x5b756b===_0x32afac(0xd5)){const _0x45a27b=_0x3ed8d5(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26[_0x32afac(0xc8)],{...remoteMissingCompanyReadOptions(),..._0x21ec9e}),_0x58b95b=await _0x2bf2e1(_0x5e3b26['appCode'],withDiagram(_0x45a27b[_0x32afac(0xf5)],_0xeb4cb9),{'visibility':_0x32afac(0xd6)});return{'method':_0x32afac(0xdd),'url':_0x32afac(0xd4)+_0x5e3b26[_0x32afac(0xc8)]+_0x32afac(0xdc),'body':{'skillCode':_0x45a27b[_0x32afac(0xc7)],'visibility':_0x32afac(0xd6),'valid':_0x58b95b[_0x32afac(0xcf)],'errors':_0x58b95b[_0x32afac(0xd3)],'warnings':_0x58b95b['warnings'],'resolvedSlug':_0x58b95b[_0x32afac(0xe5)],'resolvedVersion':_0x58b95b[_0x32afac(0xe7)],'diagramValidated':_0x58b95b[_0x32afac(0xc3)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x45dcd8&&_0x45dcd8[_0x32afac(0xec)]!==_0x32afac(0xe3))throw CliErrors[_0x32afac(0xde)](_0x32afac(0xf0)+_0x5d6221[_0x32afac(0xc7)]+_0x32afac(0xdb)+(_0x45dcd8[_0x32afac(0xec)]??_0x32afac(0xf3))+'\x22.');const _0x1c343a=_0x3ed8d5(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26['appCode'],{..._0x45dcd8?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x21ec9e}),_0x4a914d=await _0x2bf2e1(_0x5e3b26['appCode'],withDiagram(_0x1c343a[_0x32afac(0xf5)],_0xeb4cb9),{'visibility':_0x32afac(0xf1)});return{'method':_0x32afac(0xdd),'url':_0x32afac(0xd4)+_0x5e3b26[_0x32afac(0xc8)]+_0x32afac(0xdc),'body':{'skillCode':_0x1c343a[_0x32afac(0xc7)],'visibility':'PRIVATE','valid':_0x4a914d[_0x32afac(0xcf)],'errors':_0x4a914d[_0x32afac(0xd3)],'warnings':_0x4a914d[_0x32afac(0xd9)],'resolvedSlug':_0x4a914d['resolvedSlug'],'resolvedVersion':_0x4a914d[_0x32afac(0xe7)],'diagramValidated':_0x4a914d[_0x32afac(0xc3)]},'description':_0x32afac(0xc6)};}function a74_0x8cc4(){const _0x2736eb=['errors','/api/cli/v1/skills/','company','NAMESPACE_ONLY','bool','13383ZSzzol','warnings','metadata','\x20has\x20scope=\x22','/publish/validate','POST','validation','148794AViNIi','confirm-warnings','6BzxCOa','../../skills/runtime-skill-sync.js','personal','2605768djJTfD','resolvedSlug','3760141XNxlMu','resolvedVersion','authRequired','diagram-file','trim','appcode','scope','5ziAHFL','version','231761lBDRzr','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','PRIVATE','Company','unknown','Created\x20personal\x20Skill\x20','input','submitted','publishInput','574568bMAfSS','9StUWBl','(unknown)','savedSkill','payload','2270nrZnFw','Submitted\x20company\x20Skill\x20','\x20Skill\x20','diagramValidated','../../core/api-client.js','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','skillCode','appCode','\x20version\x20','dir','files','str','identical','status','valid','1293362IUScVk','accessKey','existing'];a74_0x8cc4=function(){return _0x2736eb;};return a74_0x8cc4();}export async function skillPushExecute(_0x1a2721){const _0x41e811=a74_0x19da,{createPersonalRuntimeSkill:_0x3a4162,downloadRuntimeSkillPackage:_0x422241,getRuntimeSkillByCode:_0x1f295f,publishCompanyRuntimeSkill:_0x2c190b,updatePersonalRuntimeSkill:_0xcdf024,validateRuntimeSkillPublish:_0x4dfb18}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x18b657,verifyRuntimeSkillBundle:_0x416b9f,readPushDirectory:_0xd73d79,refreshPushDirectoryMetadataFromRemote:_0x169812,recordPushedRuntimeSkill:_0x185e2e,resolvePushDirectoryIdentity:_0x316393}=await import(_0x41e811(0xe2));if(!_0x1a2721[_0x41e811(0xd1)])throw CliErrors[_0x41e811(0xe8)]();const _0x218e5a=resolvePushScope(_0x1a2721),_0x43b270=_0x1a2721[_0x41e811(0xd7)](_0x41e811(0xe0))||_0x1a2721['bool']('confirmWarnings'),_0x250263=validateSkillDirectory(_0x1a2721['str'](_0x41e811(0xca)));throwIfSkillValidationFailed(_0x250263);const {diagram:_0x456ce7,sourceFilePath:_0x881f8a}=await readRequiredSkillDiagramInput(_0x1a2721[_0x41e811(0xcc)](_0x41e811(0xe9))),_0x19d4f7=diagramPackageExclusion(_0x881f8a),_0x42ba32=_0x250263[_0x41e811(0xca)];let _0x591b30;if(_0x218e5a==='company'){const _0x30b0ba=_0x316393(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],remoteFirstMetadataOptions()),_0xec467f=await _0x1f295f(_0x1a2721[_0x41e811(0xc8)],_0x30b0ba['skillCode']);throwIfBuiltinPushTarget(_0xec467f);if(_0xec467f)_0x169812(_0x42ba32,_0xec467f,_0x1a2721[_0x41e811(0xc8)]);const _0x1a0f35=_0xd73d79(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{..._0xec467f?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x19d4f7});_0x591b30={'scope':'company','payload':_0x1a0f35,'publishInput':withDiagram(_0x1a0f35['input'],_0x456ce7),'remoteForPreflight':_0xec467f,'warnings':[]};}else{const _0x48782c=_0x1a2721[_0x41e811(0xcc)](_0x41e811(0xeb))[_0x41e811(0xea)](),_0x89ae48=Boolean(_0x48782c),_0x3cfc98=allowRetargetArgs(_0x89ae48),_0x56806c=_0x316393(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{...remoteFirstMetadataOptions(),..._0x3cfc98[0x0]}),_0x335e0d=await _0x1f295f(_0x1a2721['appCode'],_0x56806c[_0x41e811(0xc7)]);throwIfBuiltinPushTarget(_0x335e0d);if(_0x335e0d){if(_0x335e0d[_0x41e811(0xec)]!==_0x41e811(0xe3)){if(_0x89ae48)throw CliErrors[_0x41e811(0xde)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x56806c[_0x41e811(0xc7)]+'\x20has\x20scope=\x22'+(_0x335e0d[_0x41e811(0xec)]??_0x41e811(0xf3))+'\x22.');_0x169812(_0x42ba32,_0x335e0d,_0x1a2721[_0x41e811(0xc8)]);}else!_0x89ae48&&_0x169812(_0x42ba32,_0x335e0d,_0x1a2721[_0x41e811(0xc8)]);}const _0x48941e=_0xd73d79(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{..._0x335e0d?remotePersonalReadOptions(_0x89ae48,_0x3cfc98[0x0]):remoteMissingPersonalReadOptions(_0x3cfc98[0x0]),..._0x19d4f7}),_0x820fdd=_0x335e0d?.[_0x41e811(0xec)]===_0x41e811(0xe3)&&_0x335e0d['skillCode']===_0x48941e[_0x41e811(0xc7)]?_0x335e0d:undefined,_0x2f8296=_0x89ae48&&_0x820fdd?withRetargetExistingMetadata(_0x48941e[_0x41e811(0xf5)],_0x820fdd,{'preferInputSkillName':Boolean(_0x48941e['frontmatterDisplayName'])}):_0x48941e[_0x41e811(0xf5)],_0x2c31af=_0x89ae48?buildRetargetWarning(_0x56806c[_0x41e811(0xda)],_0x1a2721[_0x41e811(0xc8)]):[];_0x591b30={'scope':_0x41e811(0xe3),'payload':_0x48941e,'publishInput':withDiagram(_0x2f8296,_0x456ce7),'remoteForPreflight':_0x820fdd,'existing':_0x820fdd,'warnings':[..._0x250263['warnings'],..._0x2c31af]};}const _0x5145cf=await runRemoteContentPreflight({'scope':_0x591b30['scope'],'remote':_0x591b30['remoteForPreflight'],'publishInput':_0x591b30[_0x41e811(0xf7)],'skillCode':_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],'appCode':_0x1a2721[_0x41e811(0xc8)],'downloadRuntimeSkillPackage':_0x422241,'verifyRuntimeSkillBundle':_0x416b9f});if(_0x5145cf[_0x41e811(0xce)]===_0x41e811(0xcd))return _0x591b30['scope']===_0x41e811(0xd5)?_0x185e2e(_0x42ba32,_0x5145cf[_0x41e811(0xbe)],_0x1a2721[_0x41e811(0xc8)],{'scope':_0x41e811(0xd5)}):_0x185e2e(_0x42ba32,_0x5145cf['savedSkill'],_0x1a2721[_0x41e811(0xc8)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5145cf[_0x41e811(0xbe)]),'scope':_0x591b30[_0x41e811(0xec)],..._0x591b30[_0x41e811(0xec)]===_0x41e811(0xe3)?{'warnings':_0x591b30['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x591b30[_0x41e811(0xec)])+_0x41e811(0xc2)+_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)]+_0x41e811(0xc5)};if(_0x591b30[_0x41e811(0xec)]==='company'){const _0x2a0fe4=await _0x4dfb18(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'visibility':_0x41e811(0xd6)});throwIfPublishValidationFailed(_0x41e811(0xd5),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x2a0fe4),throwIfUnconfirmedPublishWarnings('company',_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x2a0fe4[_0x41e811(0xd9)],_0x43b270);const _0xd79475=await _0x2c190b(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'confirmWarnings':_0x43b270});return _0x185e2e(_0x42ba32,{..._0xd79475,'files':_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)]},_0x1a2721[_0x41e811(0xc8)],{'scope':_0x41e811(0xd5)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xd79475),'scope':_0x41e811(0xd5),'reviewState':_0x41e811(0xf6),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x2a0fe4['warnings']}},'message':_0x41e811(0xc1)+_0x591b30['payload']['skillCode']+_0x41e811(0xc9)+(_0xd79475[_0x41e811(0xee)]??_0x41e811(0xfa))+'\x20for\x20review'};}const _0x174863=await _0x4dfb18(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x41e811(0xe3),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x174863),throwIfUnconfirmedPublishWarnings(_0x41e811(0xe3),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x174863[_0x41e811(0xd9)],_0x43b270);const _0x36070c={'confirmWarnings':_0x43b270},_0x399b23=_0x591b30[_0x41e811(0xd2)]?await _0xcdf024(_0x591b30['payload'][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],_0x36070c):await _0x3a4162(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],_0x36070c);let _0x3ded77=_0x399b23;if(isMultiFileManifest(_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)])){const _0x35a997=await _0x422241(_0x41e811(0xe3),_0x399b23[_0x41e811(0xc7)]||_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)]);_0x416b9f(_0x591b30[_0x41e811(0xf7)]['files'],_0x35a997),_0x3ded77={..._0x399b23,'files':_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)]};}else{if(isPackageBackedManifest(_0x399b23['files'])){const _0x1b1ece=await _0x422241(_0x41e811(0xe3),_0x399b23[_0x41e811(0xc7)]||_0x591b30['payload'][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)]);_0x18b657(_0x399b23[_0x41e811(0xcb)],_0x1b1ece);}}return _0x185e2e(_0x42ba32,_0x3ded77,_0x1a2721[_0x41e811(0xc8)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x399b23),'warnings':_0x591b30['warnings'],'validation':{'warnings':_0x174863[_0x41e811(0xd9)]},'diagramBound':!![]},'message':_0x591b30[_0x41e811(0xd2)]?'Updated\x20personal\x20Skill\x20'+_0x591b30[_0x41e811(0xbf)]['skillCode']:_0x41e811(0xf4)+_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)]};}function scopeLabel(_0x87a8b3){const _0x24954d=a74_0x19da;return _0x87a8b3===_0x24954d(0xd5)?_0x24954d(0xf2):'Personal';}function withDiagram(_0x3cd43c,_0x3495a8){return{..._0x3cd43c,'diagram':_0x3495a8};}function diagramPackageExclusion(_0x54c54a){return _0x54c54a?{'excludedFilePaths':[_0x54c54a]}:{};}
@@ -1 +1 @@
1
- (function(_0x32303e,_0x55d704){const _0x44791f=a75_0xab07,_0x12f514=_0x32303e();while(!![]){try{const _0x1766d2=-parseInt(_0x44791f(0x19f))/0x1+-parseInt(_0x44791f(0x196))/0x2+-parseInt(_0x44791f(0x186))/0x3+-parseInt(_0x44791f(0x18a))/0x4*(-parseInt(_0x44791f(0x18e))/0x5)+parseInt(_0x44791f(0x18b))/0x6*(-parseInt(_0x44791f(0x1a8))/0x7)+parseInt(_0x44791f(0x1ab))/0x8*(parseInt(_0x44791f(0x19d))/0x9)+-parseInt(_0x44791f(0x185))/0xa*(-parseInt(_0x44791f(0x188))/0xb);if(_0x1766d2===_0x55d704)break;else _0x12f514['push'](_0x12f514['shift']());}catch(_0x1fc8b8){_0x12f514['push'](_0x12f514['shift']());}}}(a75_0x183f,0x6f539));import{CliErrors}from'../../errors.js';function a75_0xab07(_0x3d6ff3,_0x118fd6){_0x3d6ff3=_0x3d6ff3-0x17e;const _0x183f88=a75_0x183f();let _0xab07ce=_0x183f88[_0x3d6ff3];return _0xab07ce;}export function resolvePushScope(_0x27de8c){const _0x515b74=a75_0xab07,_0x202af0=_0x27de8c[_0x515b74(0x180)]('scope')||_0x515b74(0x193);if(_0x202af0===_0x515b74(0x193)||_0x202af0==='company')return _0x202af0;throw CliErrors['validation']('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x202af0+'\x22.');}export function allowRetargetArgs(_0x38e39b){return _0x38e39b?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x362178={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x362178};}export function remotePersonalReadOptions(_0x9c8db7,_0x2ed1f2={}){return{'ignoreInvalidMetadata':!![],..._0x9c8db7?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x2ed1f2};}export function throwIfBuiltinPushTarget(_0x5c1adf){const _0x4d490f=a75_0xab07;if(_0x5c1adf?.[_0x4d490f(0x184)]!==_0x4d490f(0x19b))return;throw CliErrors[_0x4d490f(0x194)](_0x4d490f(0x181)+(_0x5c1adf['skillCode']??_0x4d490f(0x1a0))+'\x20cannot\x20be\x20pushed.',_0x4d490f(0x187));}export function throwIfPublishValidationFailed(_0x1c7abe,_0x4fb717,_0x3f9aac){const _0x5290b1=a75_0xab07;if(_0x3f9aac['errors']['length']===0x0&&(_0x3f9aac[_0x5290b1(0x17e)]||_0x3f9aac['warnings']['length']>0x0))return;const _0x4e8e27=_0x3f9aac['errors'][_0x5290b1(0x182)]>0x0?_0x3f9aac[_0x5290b1(0x1a4)][_0x5290b1(0x18f)](';\x20'):_0x5290b1(0x1a3),_0x42913d=_0x1c7abe===_0x5290b1(0x19c)?_0x5290b1(0x1a5):'Personal';throw CliErrors[_0x5290b1(0x194)](_0x42913d+_0x5290b1(0x198)+_0x4fb717+'.',_0x4e8e27);}export function throwIfUnconfirmedPublishWarnings(_0x2c7450,_0x3fc64e,_0x38aa4e,_0x535a72){const _0x131763=a75_0xab07;if(_0x38aa4e[_0x131763(0x182)]===0x0||_0x535a72)return;const _0xecad29=_0x2c7450===_0x131763(0x19c)?_0x131763(0x1a5):_0x131763(0x189);throw CliErrors[_0x131763(0x194)](_0xecad29+_0x131763(0x191)+_0x3fc64e+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0x131763(0x1ac),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x131763(0x17f)+_0x38aa4e['join'](';\x20')][_0x131763(0x18f)]('\x20'));}export function buildRetargetWarning(_0x582d41,_0xee079f){const _0x324d12=a75_0xab07;if(!_0x582d41?.['appCode']||_0x582d41[_0x324d12(0x1a6)]===_0xee079f)return[];return[{'level':_0x324d12(0x190),'ruleId':_0x324d12(0x183),'file':_0x324d12(0x1a9),'message':_0x324d12(0x197)+_0x582d41[_0x324d12(0x1a6)]+_0x324d12(0x195)+_0xee079f+_0x324d12(0x18c),'suggestion':_0x324d12(0x199)}];}function a75_0x183f(){const _0x5cb8d5=['downloadRuntimeSkillPackage','SkillHub\x20validation\x20returned\x20invalid.','errors','Company','appCode','verifyRuntimeSkillBundle','14HSESuC','lovrabet.skill.json','different','8yiDnZa','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','valid','Warnings:\x20','str','Builtin\x20Skill\x20','length','skill-metadata-appcode-retargeted','scope','15130xbzAOh','2717040sGpBoq','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','15169rMwWTy','Personal','50628IdnFeI','851610Itqnfv','\x20after\x20successful\x20push.','not-applicable','230rjEnqH','join','warning','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','files','personal','validation','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','844934nsaEgQ','Local\x20Skill\x20metadata\x20appCode\x20','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','publishInput','builtin','company','1808361KbjQQN','skillCode','801568vttPBm','(unknown)','remote'];a75_0x183f=function(){return _0x5cb8d5;};return a75_0x183f();}export async function runRemoteContentPreflight(_0x4f06ce){const _0x184934=a75_0xab07;if(!_0x4f06ce[_0x184934(0x1a1)]||_0x4f06ce[_0x184934(0x1a1)][_0x184934(0x184)]!==_0x4f06ce['scope']||!_0x4f06ce[_0x184934(0x19a)][_0x184934(0x192)])return{'status':_0x184934(0x18d)};const _0x516b00=_0x4f06ce[_0x184934(0x1a1)][_0x184934(0x19e)]||_0x4f06ce[_0x184934(0x19e)];if(!_0x516b00)return{'status':_0x184934(0x18d)};const _0x4bed03=await _0x4f06ce[_0x184934(0x1a2)](_0x4f06ce[_0x184934(0x184)],_0x516b00,_0x4f06ce[_0x184934(0x1a6)],_0x4f06ce['remote']['version']);try{_0x4f06ce[_0x184934(0x1a7)](_0x4f06ce[_0x184934(0x19a)]['files'],_0x4bed03);}catch{return{'status':_0x184934(0x1aa)};}return{'status':'identical','savedSkill':{..._0x4f06ce[_0x184934(0x1a1)],'content':_0x4f06ce[_0x184934(0x19a)]['content'],'files':_0x4f06ce[_0x184934(0x19a)]['files']}};}
1
+ (function(_0x1e9fa5,_0x14c2cf){const _0x374b13=a75_0x15d3,_0x332c04=_0x1e9fa5();while(!![]){try{const _0x4c1d8e=parseInt(_0x374b13(0x182))/0x1*(-parseInt(_0x374b13(0x185))/0x2)+-parseInt(_0x374b13(0x18c))/0x3+parseInt(_0x374b13(0x1a0))/0x4+-parseInt(_0x374b13(0x18d))/0x5*(-parseInt(_0x374b13(0x1a7))/0x6)+-parseInt(_0x374b13(0x19b))/0x7+-parseInt(_0x374b13(0x18e))/0x8*(parseInt(_0x374b13(0x19f))/0x9)+-parseInt(_0x374b13(0x194))/0xa*(-parseInt(_0x374b13(0x180))/0xb);if(_0x4c1d8e===_0x14c2cf)break;else _0x332c04['push'](_0x332c04['shift']());}catch(_0x5ec1c7){_0x332c04['push'](_0x332c04['shift']());}}}(a75_0x2c96,0x4295e));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0xe5093e){const _0x548ee8=a75_0x15d3,_0x4b00be=_0xe5093e[_0x548ee8(0x196)](_0x548ee8(0x1a5))||_0x548ee8(0x1a9);if(_0x4b00be===_0x548ee8(0x1a9)||_0x4b00be==='company')return _0x4b00be;throw CliErrors[_0x548ee8(0x198)](_0x548ee8(0x190)+_0x4b00be+'\x22.');}export function allowRetargetArgs(_0x1a5777){return _0x1a5777?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a75_0x2c96(){const _0x46031b=['not-applicable','version','1041523YGDzJu','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','content','length','3996009ITBJus','1003860xcxlVv','\x20Skill\x20push\x20validation\x20failed\x20for\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Personal','scope','Review\x20each\x20warning\x20before\x20continuing.','25518ajPLdz','skillCode','personal','different','Warnings:\x20','join','628331kCuvns','company','23PaFcIn','lovrabet.skill.json','publishInput','36238LbOvPO','valid','downloadRuntimeSkillPackage','remote','verifyRuntimeSkillBundle','warning','builtin','743427WyHXaS','295EUtNmC','8JtzmQs','appCode','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','files','Company','180eWgBmG','errors','str','\x20cannot\x20be\x20pushed.','validation'];a75_0x2c96=function(){return _0x46031b;};return a75_0x2c96();}function a75_0x15d3(_0x3de0d0,_0x82ab9b){_0x3de0d0=_0x3de0d0-0x17f;const _0x2c96a8=a75_0x2c96();let _0x15d3d3=_0x2c96a8[_0x3de0d0];return _0x15d3d3;}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x23dac4=a75_0x15d3;return{'targetScope':_0x23dac4(0x181),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4f0dc9={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4f0dc9};}export function remotePersonalReadOptions(_0x4bd858,_0x1d4281={}){return{'ignoreInvalidMetadata':!![],..._0x4bd858?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1d4281};}export function throwIfBuiltinPushTarget(_0x1253bf){const _0x3ed982=a75_0x15d3;if(_0x1253bf?.['scope']!==_0x3ed982(0x18b))return;throw CliErrors[_0x3ed982(0x198)]('Builtin\x20Skill\x20'+(_0x1253bf[_0x3ed982(0x1a8)]??'(unknown)')+_0x3ed982(0x197),_0x3ed982(0x1a3));}export function throwIfPublishValidationFailed(_0x5dc010,_0x429540,_0x473dda){const _0x1a6b00=a75_0x15d3;if(_0x473dda[_0x1a6b00(0x195)][_0x1a6b00(0x19e)]===0x0&&(_0x473dda[_0x1a6b00(0x186)]||_0x473dda['warnings'][_0x1a6b00(0x19e)]>0x0))return;const _0x1ad5f9=_0x473dda[_0x1a6b00(0x195)][_0x1a6b00(0x19e)]>0x0?_0x473dda[_0x1a6b00(0x195)][_0x1a6b00(0x17f)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x4f07fa=_0x5dc010===_0x1a6b00(0x181)?'Company':_0x1a6b00(0x1a4);throw CliErrors[_0x1a6b00(0x198)](_0x4f07fa+_0x1a6b00(0x1a1)+_0x429540+'.',_0x1ad5f9);}export function throwIfUnconfirmedPublishWarnings(_0xb05e03,_0xe52bad,_0x4d28ab,_0xb3bf22){const _0x5730c6=a75_0x15d3;if(_0x4d28ab[_0x5730c6(0x19e)]===0x0||_0xb3bf22)return;const _0x830e8=_0xb05e03==='company'?_0x5730c6(0x193):_0x5730c6(0x1a4);throw CliErrors['validation'](_0x830e8+_0x5730c6(0x19c)+_0xe52bad+'.',[_0x5730c6(0x1a6),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x5730c6(0x1ab)+_0x4d28ab[_0x5730c6(0x17f)](';\x20')][_0x5730c6(0x17f)]('\x20'));}export function buildRetargetWarning(_0x2e9ad8,_0xd97437){const _0x580c03=a75_0x15d3;if(!_0x2e9ad8?.[_0x580c03(0x18f)]||_0x2e9ad8['appCode']===_0xd97437)return[];return[{'level':_0x580c03(0x18a),'ruleId':'skill-metadata-appcode-retargeted','file':_0x580c03(0x183),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x2e9ad8['appCode']+_0x580c03(0x1a2)+_0xd97437+'\x20after\x20successful\x20push.','suggestion':_0x580c03(0x191)}];}export async function runRemoteContentPreflight(_0x487116){const _0x175d5a=a75_0x15d3;if(!_0x487116['remote']||_0x487116[_0x175d5a(0x188)][_0x175d5a(0x1a5)]!==_0x487116[_0x175d5a(0x1a5)]||!_0x487116[_0x175d5a(0x184)]['files'])return{'status':_0x175d5a(0x199)};const _0x43e11e=_0x487116[_0x175d5a(0x188)][_0x175d5a(0x1a8)]||_0x487116[_0x175d5a(0x1a8)];if(!_0x43e11e)return{'status':_0x175d5a(0x199)};const _0x5c035d=await _0x487116[_0x175d5a(0x187)](_0x487116[_0x175d5a(0x1a5)],_0x43e11e,_0x487116[_0x175d5a(0x18f)],_0x487116[_0x175d5a(0x188)][_0x175d5a(0x19a)]);try{_0x487116[_0x175d5a(0x189)](_0x487116[_0x175d5a(0x184)][_0x175d5a(0x192)],_0x5c035d);}catch{return{'status':_0x175d5a(0x1aa)};}return{'status':'identical','savedSkill':{..._0x487116[_0x175d5a(0x188)],'content':_0x487116[_0x175d5a(0x184)][_0x175d5a(0x19d)],'files':_0x487116[_0x175d5a(0x184)][_0x175d5a(0x192)]}};}
@@ -1 +1 @@
1
- (function(_0x10a6bc,_0x5c11ed){const _0x54a52e=a76_0x3419,_0x24161a=_0x10a6bc();while(!![]){try{const _0x43a9dd=-parseInt(_0x54a52e(0x171))/0x1+-parseInt(_0x54a52e(0x17a))/0x2+parseInt(_0x54a52e(0x174))/0x3*(-parseInt(_0x54a52e(0x176))/0x4)+-parseInt(_0x54a52e(0x179))/0x5+-parseInt(_0x54a52e(0x181))/0x6+-parseInt(_0x54a52e(0x17f))/0x7*(parseInt(_0x54a52e(0x173))/0x8)+parseInt(_0x54a52e(0x16f))/0x9;if(_0x43a9dd===_0x5c11ed)break;else _0x24161a['push'](_0x24161a['shift']());}catch(_0x487c78){_0x24161a['push'](_0x24161a['shift']());}}}(a76_0x40c1,0x2b7da));function a76_0x3419(_0x1e9233,_0x19aed6){_0x1e9233=_0x1e9233-0x16e;const _0x40c1db=a76_0x40c1();let _0x3419ed=_0x40c1db[_0x1e9233];return _0x3419ed;}export function withRetargetExistingMetadata(_0x187241,_0x5a8ab2,_0x103d44={}){const _0xbe31f9=a76_0x3419,_0x4e5eb9=_0x103d44[_0xbe31f9(0x16e)]?_0x187241['skillName']??_0x5a8ab2[_0xbe31f9(0x17e)]:_0x5a8ab2['skillName']??_0x187241[_0xbe31f9(0x17e)];return{..._0x187241,'skillName':_0x4e5eb9,'description':_0x5a8ab2['description']??_0x187241[_0xbe31f9(0x17d)],'tags':Array[_0xbe31f9(0x182)](_0x5a8ab2[_0xbe31f9(0x17c)])?_0x5a8ab2['tags']:_0x187241[_0xbe31f9(0x17c)],'version':_0x5a8ab2[_0xbe31f9(0x170)]??_0x187241['version'],'sourceSessionId':_0x5a8ab2['sourceSessionId']??_0x187241['sourceSessionId']};}function a76_0x40c1(){const _0x14a4e3=['appCode','16Ijccxw','Local\x20Skill\x20metadata\x20appCode\x20','lovrabet.skill.json','892755cbazMf','615794ZspGzX','warning','tags','description','skillName','6524fDAYTJ','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','111924AjLXFR','isArray','preferInputSkillName','10961325CmxobO','version','211185okmZDc','\x20after\x20successful\x20push.','2648qZfwWJ','11256xMbUrG'];a76_0x40c1=function(){return _0x14a4e3;};return a76_0x40c1();}export function buildRetargetWarning(_0x12ad17,_0x5c5c66){const _0x2b938b=a76_0x3419;if(!_0x12ad17?.[_0x2b938b(0x175)]||_0x12ad17[_0x2b938b(0x175)]===_0x5c5c66)return[];return[{'level':_0x2b938b(0x17b),'ruleId':'skill-metadata-appcode-retargeted','file':_0x2b938b(0x178),'message':_0x2b938b(0x177)+_0x12ad17[_0x2b938b(0x175)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x5c5c66+_0x2b938b(0x172),'suggestion':_0x2b938b(0x180)}];}
1
+ (function(_0x15f8c6,_0x5a4bd5){const _0x30acb2=a76_0x2f10,_0x3ca26d=_0x15f8c6();while(!![]){try{const _0x2ac0b5=-parseInt(_0x30acb2(0x9c))/0x1*(parseInt(_0x30acb2(0x98))/0x2)+-parseInt(_0x30acb2(0xa5))/0x3+-parseInt(_0x30acb2(0x9f))/0x4*(parseInt(_0x30acb2(0x9e))/0x5)+parseInt(_0x30acb2(0x9d))/0x6*(-parseInt(_0x30acb2(0xa0))/0x7)+-parseInt(_0x30acb2(0xa3))/0x8*(parseInt(_0x30acb2(0xa4))/0x9)+parseInt(_0x30acb2(0xa9))/0xa+parseInt(_0x30acb2(0xaa))/0xb;if(_0x2ac0b5===_0x5a4bd5)break;else _0x3ca26d['push'](_0x3ca26d['shift']());}catch(_0x214ad3){_0x3ca26d['push'](_0x3ca26d['shift']());}}}(a76_0x30ac,0x8722b));export function withRetargetExistingMetadata(_0x1c6277,_0x465360,_0xcfc35d={}){const _0x2fdd4a=a76_0x2f10,_0x1d115e=_0xcfc35d['preferInputSkillName']?_0x1c6277['skillName']??_0x465360[_0x2fdd4a(0xac)]:_0x465360['skillName']??_0x1c6277[_0x2fdd4a(0xac)];return{..._0x1c6277,'skillName':_0x1d115e,'description':_0x465360['description']??_0x1c6277['description'],'tags':Array[_0x2fdd4a(0xa7)](_0x465360[_0x2fdd4a(0xa2)])?_0x465360[_0x2fdd4a(0xa2)]:_0x1c6277['tags'],'version':_0x465360[_0x2fdd4a(0xa8)]??_0x1c6277[_0x2fdd4a(0xa8)],'sourceSessionId':_0x465360[_0x2fdd4a(0xab)]??_0x1c6277[_0x2fdd4a(0xab)]};}function a76_0x30ac(){const _0x377804=['20HNSslv','701788MEfONn','7wyLrUx','skill-metadata-appcode-retargeted','tags','8360HubGVY','2169ojlsxh','1431639PICZis','lovrabet.skill.json','isArray','version','1856740qoJbxw','30927072uSxPOe','sourceSessionId','skillName','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','606sXHXhM','warning','\x20after\x20successful\x20push.','appCode','2081vraSSh','2293932LILqte'];a76_0x30ac=function(){return _0x377804;};return a76_0x30ac();}function a76_0x2f10(_0x239007,_0x1bab3a){_0x239007=_0x239007-0x97;const _0x30ac6=a76_0x30ac();let _0x2f10b8=_0x30ac6[_0x239007];return _0x2f10b8;}export function buildRetargetWarning(_0x184108,_0x4d605f){const _0x2418a0=a76_0x2f10;if(!_0x184108?.[_0x2418a0(0x9b)]||_0x184108[_0x2418a0(0x9b)]===_0x4d605f)return[];return[{'level':_0x2418a0(0x99),'ruleId':_0x2418a0(0xa1),'file':_0x2418a0(0xa6),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x184108['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x4d605f+_0x2418a0(0x9a),'suggestion':_0x2418a0(0x97)}];}
@@ -1 +1 @@
1
- function a77_0x2b45(_0xd74771,_0x2b587b){_0xd74771=_0xd74771-0x141;const _0x39ea43=a77_0x39ea();let _0x2b4574=_0x39ea43[_0xd74771];return _0x2b4574;}(function(_0x27a385,_0x44068c){const _0x3d39c7=a77_0x2b45,_0x81fbe2=_0x27a385();while(!![]){try{const _0x455e21=-parseInt(_0x3d39c7(0x145))/0x1+parseInt(_0x3d39c7(0x146))/0x2*(-parseInt(_0x3d39c7(0x154))/0x3)+parseInt(_0x3d39c7(0x144))/0x4*(parseInt(_0x3d39c7(0x147))/0x5)+parseInt(_0x3d39c7(0x152))/0x6*(-parseInt(_0x3d39c7(0x151))/0x7)+parseInt(_0x3d39c7(0x149))/0x8*(-parseInt(_0x3d39c7(0x141))/0x9)+-parseInt(_0x3d39c7(0x14e))/0xa*(-parseInt(_0x3d39c7(0x14a))/0xb)+parseInt(_0x3d39c7(0x148))/0xc*(parseInt(_0x3d39c7(0x14c))/0xd);if(_0x455e21===_0x44068c)break;else _0x81fbe2['push'](_0x81fbe2['shift']());}catch(_0x5f2b77){_0x81fbe2['push'](_0x81fbe2['shift']());}}}(a77_0x39ea,0x5536a));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x40bec7){const _0x71f35d=a77_0x2b45,_0x4d97bf=_0x40bec7[_0x71f35d(0x14b)]();if(!_0x4d97bf||_0x4d97bf===_0x71f35d(0x14f))return['personal',_0x71f35d(0x142)];if(_0x4d97bf==='personal'||_0x4d97bf===_0x71f35d(0x142))return[_0x4d97bf];throw CliErrors['validation'](_0x71f35d(0x14d)+_0x40bec7);}export function normalizeListScope(_0x453a50){const _0x54d09e=a77_0x2b45,_0x4727d5=_0x453a50[_0x54d09e(0x14b)]();if(!_0x4727d5)return'all';if(_0x4727d5===_0x54d09e(0x150)||_0x4727d5==='company'||_0x4727d5===_0x54d09e(0x14f))return _0x4727d5;throw CliErrors[_0x54d09e(0x143)](_0x54d09e(0x153)+_0x453a50);}export function shouldListScope(_0x2d41ce,_0x334a55){const _0x12a815=a77_0x2b45;if(_0x2d41ce===_0x12a815(0x14f))return!![];return _0x2d41ce===_0x334a55;}export function listScopeToRuntimeScopes(_0x2b1e7d){const _0x27657a=a77_0x2b45;if(_0x2b1e7d==='all')return['personal',_0x27657a(0x142)];return[_0x2b1e7d===_0x27657a(0x142)?_0x27657a(0x142):_0x2b1e7d];}export function listScopeToRemoteScope(_0x12f4c5){return _0x12f4c5;}function a77_0x39ea(){const _0x54b432=['290jSMizN','all','personal','400813qRedGY','66QqyKAA','Unsupported\x20Skill\x20list\x20scope:\x20','212559TcAnTm','6134355CZFmdW','company','validation','328144BrLiDi','423930YfdhUT','2LDeIwN','25YpsMWB','12995436PBnmnb','8oPGtPH','251152ofPTWl','trim','13EdrlIZ','Unsupported\x20Skill\x20sync\x20scope:\x20'];a77_0x39ea=function(){return _0x54b432;};return a77_0x39ea();}
1
+ (function(_0x35c6f0,_0x113c8d){const _0xe226c1=a77_0x4c9f,_0x18f951=_0x35c6f0();while(!![]){try{const _0x5accca=parseInt(_0xe226c1(0x196))/0x1+parseInt(_0xe226c1(0x1a1))/0x2+parseInt(_0xe226c1(0x197))/0x3+-parseInt(_0xe226c1(0x19e))/0x4+-parseInt(_0xe226c1(0x1a0))/0x5*(parseInt(_0xe226c1(0x19f))/0x6)+parseInt(_0xe226c1(0x1a3))/0x7+-parseInt(_0xe226c1(0x19c))/0x8*(parseInt(_0xe226c1(0x19a))/0x9);if(_0x5accca===_0x113c8d)break;else _0x18f951['push'](_0x18f951['shift']());}catch(_0x230a2d){_0x18f951['push'](_0x18f951['shift']());}}}(a77_0x21d5,0x808cb));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x4433fd){const _0x2abcb3=a77_0x4c9f,_0x6596c6=_0x4433fd[_0x2abcb3(0x195)]();if(!_0x6596c6||_0x6596c6==='all')return['personal',_0x2abcb3(0x19d)];if(_0x6596c6==='personal'||_0x6596c6===_0x2abcb3(0x19d))return[_0x6596c6];throw CliErrors['validation'](_0x2abcb3(0x1a2)+_0x4433fd);}export function normalizeListScope(_0x200379){const _0x531932=a77_0x4c9f,_0x2ee377=_0x200379[_0x531932(0x195)]();if(!_0x2ee377)return _0x531932(0x199);if(_0x2ee377===_0x531932(0x19b)||_0x2ee377===_0x531932(0x19d)||_0x2ee377==='all')return _0x2ee377;throw CliErrors[_0x531932(0x198)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x200379);}export function shouldListScope(_0x30e518,_0x1395a4){const _0x573cd0=a77_0x4c9f;if(_0x30e518===_0x573cd0(0x199))return!![];return _0x30e518===_0x1395a4;}export function listScopeToRuntimeScopes(_0x24bd76){const _0x4976ee=a77_0x4c9f;if(_0x24bd76===_0x4976ee(0x199))return[_0x4976ee(0x19b),'company'];return[_0x24bd76==='company'?_0x4976ee(0x19d):_0x24bd76];}function a77_0x21d5(){const _0x3f4e43=['2167774IEBQOe','trim','729389ZdEZcJ','1022430awwEvG','validation','all','9ujykgk','personal','6400040UWcLiY','company','409668coklFn','12IhpWPq','1485530sgGpfx','1286584WXLCMj','Unsupported\x20Skill\x20sync\x20scope:\x20'];a77_0x21d5=function(){return _0x3f4e43;};return a77_0x21d5();}function a77_0x4c9f(_0xde669a,_0x16a510){_0xde669a=_0xde669a-0x195;const _0x21d5da=a77_0x21d5();let _0x4c9fca=_0x21d5da[_0xde669a];return _0x4c9fca;}export function listScopeToRemoteScope(_0x3baf17){return _0x3baf17;}
@@ -1 +1 @@
1
- function a78_0x3501(_0xb9351a,_0x28e371){_0xb9351a=_0xb9351a-0x98;var _0x23cd02=a78_0x23cd();var _0x350103=_0x23cd02[_0xb9351a];return _0x350103;}function a78_0x23cd(){var _0x3635e5=['metadataPath','86067MyvdiA','linkedPaths','8230638GLEjQM','tags','cacheDir','skillName','pulledAt','4643317eGFNkr','2022442pkMeRe','skillCode','treeHash','readonly','21115uHUZKz','skillMdPath','15210320gKEkKZ','193989MivrKG','version','dir','820CNRnDx','status'];a78_0x23cd=function(){return _0x3635e5;};return a78_0x23cd();}(function(_0x5435bf,_0x23832c){var _0x3a4927=a78_0x3501,_0xf314d1=_0x5435bf();while(!![]){try{var _0x178e18=-parseInt(_0x3a4927(0x99))/0x1+-parseInt(_0x3a4927(0xa1))/0x2+parseInt(_0x3a4927(0xa8))/0x3+-parseInt(_0x3a4927(0xab))/0x4*(parseInt(_0x3a4927(0xa5))/0x5)+parseInt(_0x3a4927(0x9b))/0x6+-parseInt(_0x3a4927(0xa0))/0x7+parseInt(_0x3a4927(0xa7))/0x8;if(_0x178e18===_0x23832c)break;else _0xf314d1['push'](_0xf314d1['shift']());}catch(_0x554966){_0xf314d1['push'](_0xf314d1['shift']());}}}(a78_0x23cd,0xadae0));export function summarizeRuntimeSkill(_0x193651){var _0x416499=a78_0x3501;return{'id':_0x193651['id'],'skillCode':_0x193651['skillCode'],'skillName':_0x193651[_0x416499(0x9e)],'scope':_0x193651['scope'],'version':_0x193651[_0x416499(0xa9)],'readonly':_0x193651[_0x416499(0xa4)]};}export function summarizeLocalRuntimeSkill(_0x24e07d){var _0x430bd0=a78_0x3501;return{'id':_0x24e07d['id'],'skillCode':_0x24e07d[_0x430bd0(0xa2)],'skillName':_0x24e07d[_0x430bd0(0x9e)],'scope':_0x24e07d['scope'],'appCode':_0x24e07d['appCode'],'version':_0x24e07d[_0x430bd0(0xa9)],'status':_0x24e07d[_0x430bd0(0xac)],'readonly':_0x24e07d['readonly'],'tags':_0x24e07d[_0x430bd0(0x9c)],'dir':_0x24e07d[_0x430bd0(0xaa)],'cacheDir':_0x24e07d[_0x430bd0(0x9d)],'skillMdPath':_0x24e07d[_0x430bd0(0xa6)],'metadataPath':_0x24e07d[_0x430bd0(0x98)],'linkedPaths':_0x24e07d[_0x430bd0(0x9a)],'contentHash':_0x24e07d['contentHash'],'treeHash':_0x24e07d[_0x430bd0(0xa3)],'pulledAt':_0x24e07d[_0x430bd0(0x9f)]};}
1
+ function a78_0x30db(_0x26ced1,_0x3e055d){_0x26ced1=_0x26ced1-0x18c;var _0x377ad6=a78_0x377a();var _0x30dbd6=_0x377ad6[_0x26ced1];return _0x30dbd6;}(function(_0x5452cb,_0x44406c){var _0x271f5b=a78_0x30db,_0x49a284=_0x5452cb();while(!![]){try{var _0x44c127=parseInt(_0x271f5b(0x190))/0x1+parseInt(_0x271f5b(0x196))/0x2*(parseInt(_0x271f5b(0x1a0))/0x3)+-parseInt(_0x271f5b(0x19a))/0x4*(-parseInt(_0x271f5b(0x18f))/0x5)+-parseInt(_0x271f5b(0x193))/0x6+-parseInt(_0x271f5b(0x19f))/0x7*(parseInt(_0x271f5b(0x195))/0x8)+-parseInt(_0x271f5b(0x19c))/0x9+parseInt(_0x271f5b(0x19d))/0xa;if(_0x44c127===_0x44406c)break;else _0x49a284['push'](_0x49a284['shift']());}catch(_0x23df3e){_0x49a284['push'](_0x49a284['shift']());}}}(a78_0x377a,0xbc852));export function summarizeRuntimeSkill(_0x18d14a){var _0x1a2624=a78_0x30db;return{'id':_0x18d14a['id'],'skillCode':_0x18d14a['skillCode'],'skillName':_0x18d14a['skillName'],'scope':_0x18d14a[_0x1a2624(0x18d)],'version':_0x18d14a[_0x1a2624(0x197)],'readonly':_0x18d14a['readonly']};}function a78_0x377a(){var _0x354531=['version','metadataPath','dir','4100xwkkpD','treeHash','5084613DFaLgd','6597600ZEbBel','pulledAt','7231bAmZNl','27354TFHqsy','contentHash','tags','skillMdPath','scope','skillName','4165KxuyvR','1101772TbPdGW','appCode','cacheDir','6311658bwsEsR','readonly','5848YfNUfg','116iXVuFs'];a78_0x377a=function(){return _0x354531;};return a78_0x377a();}export function summarizeLocalRuntimeSkill(_0x70b309){var _0x550712=a78_0x30db;return{'id':_0x70b309['id'],'skillCode':_0x70b309['skillCode'],'skillName':_0x70b309[_0x550712(0x18e)],'scope':_0x70b309['scope'],'appCode':_0x70b309[_0x550712(0x191)],'version':_0x70b309[_0x550712(0x197)],'status':_0x70b309['status'],'readonly':_0x70b309[_0x550712(0x194)],'tags':_0x70b309[_0x550712(0x1a2)],'dir':_0x70b309[_0x550712(0x199)],'cacheDir':_0x70b309[_0x550712(0x192)],'skillMdPath':_0x70b309[_0x550712(0x18c)],'metadataPath':_0x70b309[_0x550712(0x198)],'linkedPaths':_0x70b309['linkedPaths'],'contentHash':_0x70b309[_0x550712(0x1a1)],'treeHash':_0x70b309[_0x550712(0x19b)],'pulledAt':_0x70b309[_0x550712(0x19e)]};}
@@ -1 +1 @@
1
- const a79_0x1a45c6=a79_0x4be3;(function(_0x3399c6,_0x4b9165){const _0x5bdd2a=a79_0x4be3,_0x3eeed7=_0x3399c6();while(!![]){try{const _0x137417=-parseInt(_0x5bdd2a(0x16c))/0x1+-parseInt(_0x5bdd2a(0x149))/0x2*(parseInt(_0x5bdd2a(0x160))/0x3)+-parseInt(_0x5bdd2a(0x165))/0x4*(parseInt(_0x5bdd2a(0x151))/0x5)+-parseInt(_0x5bdd2a(0x148))/0x6*(-parseInt(_0x5bdd2a(0x145))/0x7)+-parseInt(_0x5bdd2a(0x156))/0x8*(parseInt(_0x5bdd2a(0x166))/0x9)+parseInt(_0x5bdd2a(0x155))/0xa*(-parseInt(_0x5bdd2a(0x15a))/0xb)+parseInt(_0x5bdd2a(0x147))/0xc*(parseInt(_0x5bdd2a(0x15c))/0xd);if(_0x137417===_0x4b9165)break;else _0x3eeed7['push'](_0x3eeed7['shift']());}catch(_0x5636aa){_0x3eeed7['push'](_0x3eeed7['shift']());}}}(a79_0x3e09,0x9f6e9));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a79_0x1a45c6(0x14f),a79_0x1a45c6(0x15b)];function a79_0x3e09(){const _0x381b90=['340568QIVkhs','test','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','302995sInbhV','read','30836utwpvu','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','3qTxjex','trim','skillName','\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','---\x0aname:\x20','296860aZBMLx','180lZHYOf','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','join','\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','references/runtime-contract.md','1186490PhmNxY','includes','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','type','847JwooGy','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','17412lbAlBX','5028tLTTYF','1055644wTaGMR','#\x20Output\x20Contract\x0a\x0a','Unsupported\x20Skill\x20type:\x20','validation','Invalid\x20Skill\x20name:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','write','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','20fziAHt','Use\x20one\x20of:\x20','SKILL.md','timestamp','10yUhfdJ'];a79_0x3e09=function(){return _0x381b90;};return a79_0x3e09();}export const DEFAULT_SKILL_TARGET='.agents/skills';function a79_0x4be3(_0x455378,_0xe55495){_0x455378=_0x455378-0x142;const _0x3e09b7=a79_0x3e09();let _0x4be3e1=_0x3e09b7[_0x455378];return _0x4be3e1;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x1a45c6(0x16b);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0xa30643){const _0x20cb2c=a79_0x1a45c6,_0x244e33=_0xa30643[_0x20cb2c(0x161)]();if(!SKILL_NAME_PATTERN[_0x20cb2c(0x157)](_0x244e33))throw CliErrors[_0x20cb2c(0x14c)](_0x20cb2c(0x14d)+_0xa30643+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x244e33;}export function normalizeSkillTemplateType(_0x461c5b){const _0x5e6697=a79_0x1a45c6,_0x4ec69f=(_0x461c5b||_0x5e6697(0x14f))[_0x5e6697(0x161)]()||_0x5e6697(0x14f);if(SKILL_TYPES[_0x5e6697(0x142)](_0x4ec69f))return _0x4ec69f;throw CliErrors[_0x5e6697(0x14c)](_0x5e6697(0x14b)+_0x461c5b,_0x5e6697(0x152)+SKILL_TYPES[_0x5e6697(0x169)](',\x20')+'.');}export function renderSkillTemplate(_0x4570e0){const _0x2c23b4=a79_0x1a45c6,_0x501218=validateSkillName(_0x4570e0[_0x2c23b4(0x162)]),_0x39e631=normalizeSkillTemplateType(_0x4570e0[_0x2c23b4(0x144)]),_0x419d9c=_0x4570e0[_0x2c23b4(0x154)]??new Date()['toISOString']();return{'skillName':_0x501218,'type':_0x39e631,'files':[{'path':_0x2c23b4(0x153),'content':renderSkillMd(_0x501218,_0x39e631,_0x419d9c)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x501218,_0x39e631)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x501218,_0x39e631)}]};}function renderSkillMd(_0x56f410,_0x2493bb,_0x12f481){const _0x539b0c=a79_0x1a45c6,_0x4a5059=typeWorkflow(_0x2493bb);return _0x539b0c(0x164)+_0x56f410+_0x539b0c(0x158)+_0x2493bb+'\x0a\x20\x20created:\x20\x22'+_0x12f481+_0x539b0c(0x168)+_0x56f410+_0x539b0c(0x163)+_0x4a5059+'\x0a\x0a'+businessStateSection(_0x2493bb)+'\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a';}function renderRuntimeContract(_0x59d161,_0x18f025){const _0x1fb400=a79_0x1a45c6,_0x132662=_0x18f025==='write'?_0x1fb400(0x167):'';return _0x1fb400(0x15e)+_0x59d161+_0x1fb400(0x14e)+_0x18f025+_0x1fb400(0x16a)+_0x132662+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function renderOutputContract(_0x48723d,_0x31fb6b){const _0x530468=a79_0x1a45c6,_0x4d31f3=_0x31fb6b===_0x530468(0x14f)?_0x530468(0x150):_0x31fb6b+_0x530468(0x159);return _0x530468(0x14a)+_0x48723d+_0x530468(0x15f)+_0x4d31f3+_0x530468(0x143);}function typeWorkflow(_0x3f7cb1){const _0x99a986=a79_0x1a45c6;if(_0x3f7cb1==='read')return _0x99a986(0x15d);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0xd85536){const _0x55c2fc=a79_0x1a45c6;if(_0xd85536!==_0x55c2fc(0x14f))return'';return _0x55c2fc(0x146);}
1
+ const a79_0x2044fd=a79_0x4f09;(function(_0x35ce6d,_0x2e63e8){const _0xb2994e=a79_0x4f09,_0x207b1a=_0x35ce6d();while(!![]){try{const _0xede9f=-parseInt(_0xb2994e(0x202))/0x1+-parseInt(_0xb2994e(0x1fc))/0x2*(-parseInt(_0xb2994e(0x1ff))/0x3)+parseInt(_0xb2994e(0x203))/0x4*(parseInt(_0xb2994e(0x1fb))/0x5)+parseInt(_0xb2994e(0x1e8))/0x6*(-parseInt(_0xb2994e(0x1e6))/0x7)+-parseInt(_0xb2994e(0x1f9))/0x8*(-parseInt(_0xb2994e(0x1f7))/0x9)+-parseInt(_0xb2994e(0x1e5))/0xa+parseInt(_0xb2994e(0x1f2))/0xb;if(_0xede9f===_0x2e63e8)break;else _0x207b1a['push'](_0x207b1a['shift']());}catch(_0x4dcddd){_0x207b1a['push'](_0x207b1a['shift']());}}}(a79_0x426a,0xcbb39));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a79_0x2044fd(0x1f6),a79_0x2044fd(0x20a)];export const DEFAULT_SKILL_TARGET=a79_0x2044fd(0x1e4);function a79_0x426a(){const _0x8b9b9e=['SKILL.md','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','validation','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Invalid\x20Skill\x20name:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','\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','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','1543311VmlvbW','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\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状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','write','922833ndBuWb','type','96pNmOso','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','115nTNKYi','1476nHfyhB','references/runtime-contract.md','trim','1896WVJRZM','\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','150459ghZomD','95412zaWLIM','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','timestamp','test','\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','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','read','toISOString','Use\x20one\x20of:\x20','.agents/skills','13876470lzgpFd','7mkiTPL','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','79878BXxrWu','---\x0aname:\x20'];a79_0x426a=function(){return _0x8b9b9e;};return a79_0x426a();}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x2044fd(0x1fd);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';function a79_0x4f09(_0x6d59c6,_0x22f041){_0x6d59c6=_0x6d59c6-0x1e4;const _0x426af7=a79_0x426a();let _0x4f091e=_0x426af7[_0x6d59c6];return _0x4f091e;}export function validateSkillName(_0x1a7c80){const _0x35302d=a79_0x2044fd,_0x54bdc7=_0x1a7c80[_0x35302d(0x1fe)]();if(!SKILL_NAME_PATTERN[_0x35302d(0x206)](_0x54bdc7))throw CliErrors[_0x35302d(0x1ec)](_0x35302d(0x1ee)+_0x1a7c80+_0x35302d(0x1eb),_0x35302d(0x1fa));return _0x54bdc7;}export function normalizeSkillTemplateType(_0x6bc9e4){const _0x3916ea=a79_0x2044fd,_0x14b64=(_0x6bc9e4||_0x3916ea(0x1f6))[_0x3916ea(0x1fe)]()||_0x3916ea(0x1f6);if(SKILL_TYPES['includes'](_0x14b64))return _0x14b64;throw CliErrors[_0x3916ea(0x1ec)]('Unsupported\x20Skill\x20type:\x20'+_0x6bc9e4,_0x3916ea(0x20c)+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x119496){const _0x554a14=a79_0x2044fd,_0x553e73=validateSkillName(_0x119496['skillName']),_0x1e9219=normalizeSkillTemplateType(_0x119496[_0x554a14(0x1f8)]),_0x4d461b=_0x119496[_0x554a14(0x205)]??new Date()[_0x554a14(0x20b)]();return{'skillName':_0x553e73,'type':_0x1e9219,'files':[{'path':_0x554a14(0x1ea),'content':renderSkillMd(_0x553e73,_0x1e9219,_0x4d461b)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x553e73,_0x1e9219)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x553e73,_0x1e9219)}]};}function renderSkillMd(_0x115b28,_0x36d425,_0xfcf1){const _0xb4dd01=a79_0x2044fd,_0x232ce9=typeWorkflow(_0x36d425);return _0xb4dd01(0x1e9)+_0x115b28+_0xb4dd01(0x204)+_0x36d425+'\x0a\x20\x20created:\x20\x22'+_0xfcf1+_0xb4dd01(0x201)+_0x115b28+_0xb4dd01(0x200)+_0x232ce9+'\x0a\x0a'+businessStateSection(_0x36d425)+_0xb4dd01(0x1f4);}function renderRuntimeContract(_0x27c230,_0x3234fd){const _0x2e5ef9=a79_0x2044fd,_0x17c131=_0x3234fd==='write'?_0x2e5ef9(0x1f5):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x27c230+_0x2e5ef9(0x1ef)+_0x3234fd+_0x2e5ef9(0x1f0)+_0x17c131+_0x2e5ef9(0x207);}function renderOutputContract(_0xa33818,_0x4280ed){const _0x3f8836=a79_0x2044fd,_0x465491=_0x4280ed===_0x3f8836(0x1f6)?_0x3f8836(0x1ed):_0x4280ed+_0x3f8836(0x209);return'#\x20Output\x20Contract\x0a\x0a'+_0xa33818+'\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'+_0x465491+_0x3f8836(0x1f1);}function typeWorkflow(_0x1bdaef){const _0x5f2c37=a79_0x2044fd;if(_0x1bdaef===_0x5f2c37(0x20a))return _0x5f2c37(0x208);return _0x5f2c37(0x1e7);}function businessStateSection(_0x19ae76){const _0x244613=a79_0x2044fd;if(_0x19ae76!==_0x244613(0x1f6))return'';return _0x244613(0x1f3);}