@lovrabet/lovrabet-cli 2.3.1-beta.1 → 2.3.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +53 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.d.ts +2 -0
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.d.ts +3 -1
  27. package/lib/commands/config/init.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +34 -2
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.d.ts +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.d.ts +3 -6
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.js +1 -1
  104. package/lib/constant/output.js +1 -1
  105. package/lib/constant/product.d.ts +0 -51
  106. package/lib/constant/product.js +1 -1
  107. package/lib/constant/region.d.ts +3 -5
  108. package/lib/constant/region.js +1 -1
  109. package/lib/constant/risk.js +1 -1
  110. package/lib/constant/url.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/api-client.d.ts +16 -0
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.d.ts +0 -2
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.d.ts +59 -0
  137. package/lib/generated/official-routing.js +1 -0
  138. package/lib/generated/routing-contract.d.ts +9 -0
  139. package/lib/generated/routing-contract.js +1 -0
  140. package/lib/help.js +1 -1
  141. package/lib/postinstall.js +1 -1
  142. package/lib/runtime/confirmation.js +1 -1
  143. package/lib/runtime/event.js +1 -1
  144. package/lib/runtime/index.js +1 -1
  145. package/lib/runtime/queue.js +1 -1
  146. package/lib/runtime/resolve.js +1 -1
  147. package/lib/skills/builtin-skill.js +1 -1
  148. package/lib/skills/npx-skills-add.js +1 -1
  149. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  150. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  151. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  152. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  153. package/lib/skills/runtime-skill-sync/links.js +1 -1
  154. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  155. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  156. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  157. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  158. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  159. package/lib/skills/runtime-skill-sync/push.js +1 -1
  160. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  162. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  163. package/lib/skills/runtime-skill-sync.js +1 -1
  164. package/lib/skills/skill-presence.js +1 -1
  165. package/lib/utils/access-key-redaction.js +1 -1
  166. package/lib/utils/apply-jq-filter.js +1 -1
  167. package/lib/utils/cli-version-check.js +1 -1
  168. package/lib/utils/cli-version-policy.js +1 -1
  169. package/lib/utils/logger.js +1 -1
  170. package/lib/utils/lossless-json.js +1 -1
  171. package/lib/utils/params.js +1 -1
  172. package/lib/utils/platform.js +1 -1
  173. package/lib/utils/update-notice.js +1 -1
  174. package/lib/utils/version.js +1 -1
  175. package/lib/utils/write-cli-side-channel.js +1 -1
  176. package/package.json +2 -1
  177. package/skills/lovrabet/SKILL.md +4 -4
  178. package/skills/lovrabet/guides/troubleshooting.md +3 -5
  179. package/skills/lovrabet/references/lovrabet-config-commands.md +35 -13
  180. package/skills/lovrabet/references/lovrabet-config.md +8 -21
  181. package/skills/lovrabet/references/lovrabet-doctor.md +0 -2
  182. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -3
  183. package/skills/lovrabet.manifest.json +3 -3
  184. package/lib/core/kb-search-client.d.ts +0 -30
  185. package/lib/core/kb-search-client.js +0 -1
@@ -1 +1 @@
1
- const a64_0x4bc08c=a64_0xdd91;(function(_0x469972,_0x2a284a){const _0x350c6c=a64_0xdd91,_0x59e216=_0x469972();while(!![]){try{const _0x1e7713=parseInt(_0x350c6c(0x1b7))/0x1+parseInt(_0x350c6c(0x1ca))/0x2+-parseInt(_0x350c6c(0x1ba))/0x3*(parseInt(_0x350c6c(0x1c9))/0x4)+-parseInt(_0x350c6c(0x1cb))/0x5+-parseInt(_0x350c6c(0x1b6))/0x6+-parseInt(_0x350c6c(0x1cc))/0x7*(parseInt(_0x350c6c(0x1b5))/0x8)+parseInt(_0x350c6c(0x1c4))/0x9*(parseInt(_0x350c6c(0x1af))/0xa);if(_0x1e7713===_0x2a284a)break;else _0x59e216['push'](_0x59e216['shift']());}catch(_0x56afbc){_0x59e216['push'](_0x59e216['shift']());}}}(a64_0x3b91,0xb3ba8));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';function a64_0xdd91(_0x147b7e,_0x1c8487){_0x147b7e=_0x147b7e-0x1ad;const _0x3b9114=a64_0x3b91();let _0xdd9161=_0x3b9114[_0x147b7e];return _0xdd9161;}import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a64_0x4bc08c(0x1c0),'command':a64_0x4bc08c(0x1bf),'description':a64_0x4bc08c(0x1d1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x4707d8){const _0x25f401=a64_0x4bc08c,_0x3058a8=buildSkillCreatePlan(_0x4707d8[_0x25f401(0x1c6)]('name'),_0x4707d8[_0x25f401(0x1c6)](_0x25f401(0x1cf)),_0x4707d8['str']('target'));return{'method':_0x25f401(0x1b8),'url':_0x3058a8['skillDir'],'body':{'skillName':_0x3058a8[_0x25f401(0x1bd)][_0x25f401(0x1c2)],'type':_0x3058a8[_0x25f401(0x1bd)][_0x25f401(0x1cf)],'selfContained':!![],'files':_0x3058a8['rendered'][_0x25f401(0x1ad)][_0x25f401(0x1d0)](_0x1a244a=>_0x1a244a[_0x25f401(0x1b1)])},'description':_0x25f401(0x1b4)};},async 'execute'(_0xa16000){const _0x5118db=a64_0x4bc08c,_0x3099a1=buildSkillCreatePlan(_0xa16000[_0x5118db(0x1c6)](_0x5118db(0x1c7)),_0xa16000['str'](_0x5118db(0x1cf)),_0xa16000[_0x5118db(0x1c6)]('target'));return writeSkillDraft(_0x3099a1,_0xa16000[_0x5118db(0x1c1)](_0x5118db(0x1b9))),{'ok':!![],'data':{'skillName':_0x3099a1[_0x5118db(0x1bd)][_0x5118db(0x1c2)],'type':_0x3099a1[_0x5118db(0x1bd)][_0x5118db(0x1cf)],'dir':_0x3099a1['skillDir'],'files':_0x3099a1['rendered'][_0x5118db(0x1ad)][_0x5118db(0x1d0)](_0xdcdcf9=>_0xdcdcf9[_0x5118db(0x1b1)])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x3099a1['rendered'][_0x5118db(0x1c2)]};}};function a64_0x3b91(){const _0x5ba219=['Skill\x20directory\x20already\x20exists:\x20','isDirectory','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','8DtDUAg','1655910kgiLhx','607747wIsdQe','WRITE','force','299199btjSCR','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','content','rendered','validation','create','skill','bool','skillName','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','10611ctvWqK','isSymbolicLink','str','name','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','20oChQsW','497366mAOwgH','2751595gvBiaw','5852994kbChmJ','utf8','trim','type','map','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','files','Refusing\x20to\x20overwrite\x20symlink:\x20','17310BvJflj','skillDir','path'];a64_0x3b91=function(){return _0x5ba219;};return a64_0x3b91();}function buildSkillCreatePlan(_0x5f3c4e,_0x2730b0,_0x3ed2c3){const _0xa234a5=a64_0x4bc08c,_0x370101=_0x2730b0[_0xa234a5(0x1ce)](),_0x2a66a3=renderSkillTemplate({'skillName':_0x5f3c4e,'type':_0x370101});!_0x370101&&writeCliSideChannelLine(_0xa234a5(0x1c8));const _0x458ab5=resolve(normalizeSkillTarget(_0x3ed2c3));return{'rendered':_0x2a66a3,'targetRoot':_0x458ab5,'skillDir':resolve(_0x458ab5,_0x2a66a3[_0xa234a5(0x1c2)])};}function normalizeSkillTarget(_0xbcf18c){const _0x2da67a=a64_0x4bc08c;return(_0xbcf18c||DEFAULT_SKILL_TARGET)[_0x2da67a(0x1ce)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x129c06,_0x4993da){const _0x4366d8=a64_0x4bc08c;if(existsSync(_0x129c06[_0x4366d8(0x1b0)])){const _0x51bb6e=lstatSync(_0x129c06[_0x4366d8(0x1b0)]);if(!_0x51bb6e[_0x4366d8(0x1b3)]()||_0x51bb6e[_0x4366d8(0x1c5)]())throw CliErrors[_0x4366d8(0x1be)](_0x4366d8(0x1bb)+_0x129c06[_0x4366d8(0x1b0)]);if(!_0x4993da)throw CliErrors['validation'](_0x4366d8(0x1b2)+_0x129c06[_0x4366d8(0x1b0)],_0x4366d8(0x1c3));}for(const _0x20ad22 of _0x129c06[_0x4366d8(0x1bd)][_0x4366d8(0x1ad)]){const _0x2e8781=resolve(_0x129c06['skillDir'],_0x20ad22[_0x4366d8(0x1b1)]),_0x50754a=dirname(_0x2e8781);mkdirSync(_0x50754a,{'recursive':!![]});if(existsSync(_0x2e8781)&&lstatSync(_0x2e8781)[_0x4366d8(0x1c5)]())throw CliErrors[_0x4366d8(0x1be)](_0x4366d8(0x1ae)+_0x2e8781);writeFileSync(_0x2e8781,_0x20ad22[_0x4366d8(0x1bc)],_0x4366d8(0x1cd));}}
1
+ const a64_0x4a2669=a64_0x1caf;(function(_0x3f90be,_0x10c584){const _0x20cc53=a64_0x1caf,_0xc8d725=_0x3f90be();while(!![]){try{const _0x3cb407=parseInt(_0x20cc53(0x208))/0x1*(parseInt(_0x20cc53(0x20b))/0x2)+parseInt(_0x20cc53(0x1e9))/0x3+parseInt(_0x20cc53(0x1f8))/0x4*(parseInt(_0x20cc53(0x205))/0x5)+-parseInt(_0x20cc53(0x1f5))/0x6+parseInt(_0x20cc53(0x1ec))/0x7+parseInt(_0x20cc53(0x1f7))/0x8+-parseInt(_0x20cc53(0x1ff))/0x9*(parseInt(_0x20cc53(0x20d))/0xa);if(_0x3cb407===_0x10c584)break;else _0xc8d725['push'](_0xc8d725['shift']());}catch(_0x49ad58){_0xc8d725['push'](_0xc8d725['shift']());}}}(a64_0x5b07,0xccfda));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';function a64_0x5b07(){const _0x3920ec=['Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','str','6776205WwzKZO','map','skillName','73119VfUUQX','path','create','38KjPjAm','isSymbolicLink','10zgIvcL','target','1577901YAVZnB','content','Skill\x20directory\x20already\x20exists:\x20','1553965yRuUBo','trim','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','skillDir','name','files','read','skill','9061338SxvMrV','validation','11626992sKLsrb','4xOHlED','WRITE','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','Created\x20local\x20Skill\x20draft\x20','rendered','type','bool','23363757oexail','isDirectory','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','utf8'];a64_0x5b07=function(){return _0x3920ec;};return a64_0x5b07();}import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a64_0x4a2669(0x1f4),'command':a64_0x4a2669(0x20a),'description':a64_0x4a2669(0x201),'risk':a64_0x4a2669(0x1f3),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x530f61){const _0x430e71=a64_0x4a2669,_0x3ede61=buildSkillCreatePlan(_0x530f61['str']('name'),_0x530f61[_0x430e71(0x204)](_0x430e71(0x1fd)),_0x530f61[_0x430e71(0x204)]('target'));return{'method':_0x430e71(0x1f9),'url':_0x3ede61[_0x430e71(0x1f0)],'body':{'skillName':_0x3ede61[_0x430e71(0x1fc)]['skillName'],'type':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1fd)],'selfContained':!![],'files':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1f2)][_0x430e71(0x206)](_0x24afc0=>_0x24afc0[_0x430e71(0x209)])},'description':_0x430e71(0x1ee)};},async 'execute'(_0x50b656){const _0x503e1e=a64_0x4a2669,_0xa94206=buildSkillCreatePlan(_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1f1)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1fd)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x20e)));return writeSkillDraft(_0xa94206,_0x50b656[_0x503e1e(0x1fe)]('force')),{'ok':!![],'data':{'skillName':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x207)],'type':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1fd)],'dir':_0xa94206[_0x503e1e(0x1f0)],'files':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1f2)][_0x503e1e(0x206)](_0x5beb3d=>_0x5beb3d[_0x503e1e(0x209)])},'message':_0x503e1e(0x1fb)+_0xa94206['rendered']['skillName']};}};function buildSkillCreatePlan(_0x55f0ac,_0x2f438a,_0x5599cb){const _0x1930a0=a64_0x4a2669,_0x3fc4d5=_0x2f438a[_0x1930a0(0x1ed)](),_0x14e426=renderSkillTemplate({'skillName':_0x55f0ac,'type':_0x3fc4d5});!_0x3fc4d5&&writeCliSideChannelLine(_0x1930a0(0x1ef));const _0xcedb5e=resolve(normalizeSkillTarget(_0x5599cb));return{'rendered':_0x14e426,'targetRoot':_0xcedb5e,'skillDir':resolve(_0xcedb5e,_0x14e426[_0x1930a0(0x207)])};}function a64_0x1caf(_0x17c925,_0x9ac94b){_0x17c925=_0x17c925-0x1e9;const _0x5b07f4=a64_0x5b07();let _0x1caf2a=_0x5b07f4[_0x17c925];return _0x1caf2a;}function normalizeSkillTarget(_0x2f2caa){const _0x2d6020=a64_0x4a2669;return(_0x2f2caa||DEFAULT_SKILL_TARGET)[_0x2d6020(0x1ed)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x4db9a4,_0x1348ac){const _0x34b6dc=a64_0x4a2669;if(existsSync(_0x4db9a4[_0x34b6dc(0x1f0)])){const _0xf7da0b=lstatSync(_0x4db9a4[_0x34b6dc(0x1f0)]);if(!_0xf7da0b[_0x34b6dc(0x200)]()||_0xf7da0b[_0x34b6dc(0x20c)]())throw CliErrors['validation'](_0x34b6dc(0x1fa)+_0x4db9a4['skillDir']);if(!_0x1348ac)throw CliErrors[_0x34b6dc(0x1f6)](_0x34b6dc(0x1eb)+_0x4db9a4[_0x34b6dc(0x1f0)],_0x34b6dc(0x203));}for(const _0x5d1150 of _0x4db9a4['rendered'][_0x34b6dc(0x1f2)]){const _0x35c964=resolve(_0x4db9a4[_0x34b6dc(0x1f0)],_0x5d1150['path']),_0x1972dd=dirname(_0x35c964);mkdirSync(_0x1972dd,{'recursive':!![]});if(existsSync(_0x35c964)&&lstatSync(_0x35c964)['isSymbolicLink']())throw CliErrors[_0x34b6dc(0x1f6)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x35c964);writeFileSync(_0x35c964,_0x5d1150[_0x34b6dc(0x1ea)],_0x34b6dc(0x202));}}
@@ -1 +1 @@
1
- const a65_0xef66f6=a65_0x3a77;(function(_0x14afdf,_0x424df9){const _0x28f25b=a65_0x3a77,_0x4bde33=_0x14afdf();while(!![]){try{const _0x1d2df6=parseInt(_0x28f25b(0x8e))/0x1*(-parseInt(_0x28f25b(0x93))/0x2)+-parseInt(_0x28f25b(0x8b))/0x3*(-parseInt(_0x28f25b(0xb9))/0x4)+parseInt(_0x28f25b(0x96))/0x5*(-parseInt(_0x28f25b(0xa0))/0x6)+-parseInt(_0x28f25b(0xb1))/0x7+-parseInt(_0x28f25b(0xb8))/0x8+parseInt(_0x28f25b(0xb3))/0x9*(parseInt(_0x28f25b(0xa9))/0xa)+parseInt(_0x28f25b(0xb6))/0xb;if(_0x1d2df6===_0x424df9)break;else _0x4bde33['push'](_0x4bde33['shift']());}catch(_0x3710fc){_0x4bde33['push'](_0x4bde33['shift']());}}}(a65_0x2f0a,0xba641));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a65_0x2f0a(){const _0x2ad01b=['validation','12682620NuWhzT','version','str','15742914LkiCZW','trim','2065760CGpoRx','443204ExxhLc','action','skill','30MMiXUL','expected-diagram-revision','Skill\x20diagram\x20validation\x20passed\x20for\x20','93nUvDIC','expectedDiagramRevision','\x20Skill\x20diagram\x20for\x20',';\x20next\x20write\x20expects\x20revision\x20','personal','30178sOLyNp','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.','diagram-validate','1807045HfbtFG','created','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','write','diagram-push','Skill\x20diagram\x20for\x20','scope','test','appCode','unchanged','6SfQZwa','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','found','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','Created','Found\x20Skill\x20diagram\x20for\x20','read','source-fingerprint','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','10hYoyXz','Updated','num','diagram-file','skill-code','skillCode','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','8134007MeYZJo'];a65_0x2f0a=function(){return _0x2ad01b;};return a65_0x2f0a();}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 a65_0x3a77(_0x1db674,_0x19adbe){_0x1db674=_0x1db674-0x8b;const _0x2f0ade=a65_0x2f0a();let _0x3a77e4=_0x2f0ade[_0x1db674];return _0x3a77e4;}function readDiagramTarget(_0x2e5314){const _0x23b99d=a65_0x3a77,_0x42cad2=_0x2e5314[_0x23b99d(0xb5)](_0x23b99d(0xad))['trim'](),_0x408344=_0x2e5314[_0x23b99d(0xb5)]('version')[_0x23b99d(0xb7)](),_0x528969=_0x2e5314[_0x23b99d(0xb5)]('scope');if(!_0x42cad2||!_0x408344||_0x528969!==_0x23b99d(0x92)&&_0x528969!=='company')throw CliErrors[_0x23b99d(0xb2)](_0x23b99d(0xaf));return{'skillCode':_0x42cad2,'version':_0x408344,'scope':_0x528969};}async function readDiagramWriteInput(_0x2909d2){const _0xe9506d=a65_0x3a77,_0x3523a0=_0x2909d2[_0xe9506d(0xab)](_0xe9506d(0x8c)),_0x5e71a1=_0x2909d2[_0xe9506d(0xb5)](_0xe9506d(0xa7))['trim']();if(!Number['isInteger'](_0x3523a0)||_0x3523a0<0x0)throw CliErrors['validation'](_0xe9506d(0xa1));if(!/^sha256:[0-9a-f]{64}$/[_0xe9506d(0x9d)](_0x5e71a1))throw CliErrors[_0xe9506d(0xb2)](_0xe9506d(0xa8));return{'expectedDiagramRevision':_0x3523a0,'sourceFingerprint':_0x5e71a1,'diagram':await readRequiredSkillDiagram(_0x2909d2[_0xe9506d(0xb5)](_0xe9506d(0xac)))};}export const diagramValidateCommand={'service':a65_0xef66f6(0xbb),'command':a65_0xef66f6(0x95),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a65_0xef66f6(0xa6),'flags':WRITE_FLAGS,async 'execute'(_0xeee0be){const _0x170d97=a65_0xef66f6,_0x546d15=readDiagramTarget(_0xeee0be),_0x2c313f=await validateRuntimeSkillVersionDiagram(_0xeee0be['appCode'],_0x546d15[_0x170d97(0xae)],_0x546d15[_0x170d97(0xb4)],_0x546d15[_0x170d97(0x9c)],await readDiagramWriteInput(_0xeee0be));return{'ok':!![],'data':_0x2c313f,'message':_0x170d97(0x8d)+_0x546d15[_0x170d97(0xae)]+'@'+_0x546d15[_0x170d97(0xb4)]+'.'};}};export const diagramPushCommand={'service':'skill','command':a65_0xef66f6(0x9a),'description':a65_0xef66f6(0x98),'risk':a65_0xef66f6(0x99),'confirmationDescription':a65_0xef66f6(0x94),'flags':WRITE_FLAGS,async 'execute'(_0x1b1bfe){const _0x2ddfeb=a65_0xef66f6,_0x2a89f9=readDiagramTarget(_0x1b1bfe),_0x34ba3c=await putRuntimeSkillVersionDiagram(_0x1b1bfe[_0x2ddfeb(0x9e)],_0x2a89f9[_0x2ddfeb(0xae)],_0x2a89f9[_0x2ddfeb(0xb4)],_0x2a89f9[_0x2ddfeb(0x9c)],await readDiagramWriteInput(_0x1b1bfe));return{'ok':!![],'data':_0x34ba3c,'message':_0x34ba3c[_0x2ddfeb(0xba)]===_0x2ddfeb(0x9f)?_0x2ddfeb(0x9b)+_0x2a89f9[_0x2ddfeb(0xae)]+'@'+_0x2a89f9[_0x2ddfeb(0xb4)]+'\x20is\x20unchanged.':(_0x34ba3c[_0x2ddfeb(0xba)]===_0x2ddfeb(0x97)?_0x2ddfeb(0xa4):_0x2ddfeb(0xaa))+_0x2ddfeb(0x90)+_0x2a89f9[_0x2ddfeb(0xae)]+'@'+_0x2a89f9[_0x2ddfeb(0xb4)]+'.'};}};export const diagramShowCommand={'service':a65_0xef66f6(0xbb),'command':'diagram-show','description':a65_0xef66f6(0xb0),'risk':a65_0xef66f6(0xa6),'flags':TARGET_FLAGS,async 'execute'(_0x5e1968){const _0x45fce4=a65_0xef66f6,_0x30ec99=readDiagramTarget(_0x5e1968),_0x853ad3=await getRuntimeSkillVersionDiagram(_0x5e1968['appCode'],_0x30ec99[_0x45fce4(0xae)],_0x30ec99[_0x45fce4(0xb4)],_0x30ec99[_0x45fce4(0x9c)]);return{'ok':!![],'data':_0x853ad3,'message':_0x853ad3[_0x45fce4(0xa2)]?_0x45fce4(0xa5)+_0x30ec99[_0x45fce4(0xae)]+'@'+_0x30ec99[_0x45fce4(0xb4)]+_0x45fce4(0x91)+_0x853ad3[_0x45fce4(0x8f)]+'.':_0x45fce4(0xa3)+_0x30ec99[_0x45fce4(0xae)]+'@'+_0x30ec99[_0x45fce4(0xb4)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x853ad3[_0x45fce4(0x8f)]+'.'};}};
1
+ const a65_0x5e8aad=a65_0x1e5c;(function(_0x41d439,_0x4bb71b){const _0x1f8d85=a65_0x1e5c,_0x4bf937=_0x41d439();while(!![]){try{const _0x4bc75b=-parseInt(_0x1f8d85(0x1d8))/0x1+-parseInt(_0x1f8d85(0x1dc))/0x2*(-parseInt(_0x1f8d85(0x1de))/0x3)+parseInt(_0x1f8d85(0x1d6))/0x4+parseInt(_0x1f8d85(0x1db))/0x5*(parseInt(_0x1f8d85(0x1cd))/0x6)+-parseInt(_0x1f8d85(0x1c0))/0x7*(-parseInt(_0x1f8d85(0x1b6))/0x8)+parseInt(_0x1f8d85(0x1c2))/0x9*(parseInt(_0x1f8d85(0x1ca))/0xa)+-parseInt(_0x1f8d85(0x1cc))/0xb;if(_0x4bc75b===_0x4bb71b)break;else _0x4bf937['push'](_0x4bf937['shift']());}catch(_0x5ef58c){_0x4bf937['push'](_0x4bf937['shift']());}}}(a65_0x4432,0xa49d3));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';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(_0x1f5029){const _0x126408=a65_0x1e5c,_0xb4ac71=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1d5))[_0x126408(0x1cf)](),_0xbe66c6=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1b3))['trim'](),_0x3ef824=_0x1f5029['str']('scope');if(!_0xb4ac71||!_0xbe66c6||_0x3ef824!=='personal'&&_0x3ef824!==_0x126408(0x1ce))throw CliErrors[_0x126408(0x1ba)](_0x126408(0x1b1));return{'skillCode':_0xb4ac71,'version':_0xbe66c6,'scope':_0x3ef824};}function a65_0x4432(){const _0x2d8ee4=['Created','659776ghTbuQ',';\x20next\x20write\x20expects\x20revision\x20','write','73765asldWa','450QyAORJ','appCode','13029wSvXTJ','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.','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','\x20Skill\x20diagram\x20for\x20','version','Skill\x20diagram\x20for\x20','expectedDiagramRevision','400Rrkhrb','scope','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','isInteger','validation','Skill\x20diagram\x20validation\x20passed\x20for\x20','skillCode','diagram-push','read','diagram-file','170107ihpdvU','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','719991CZBzoe','found','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','source-fingerprint','created','action','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','160VzLDpw','test','34203202HdwKie','78RWagRU','company','trim','expected-diagram-revision','str','skill','\x20is\x20unchanged.','Found\x20Skill\x20diagram\x20for\x20','skill-code','3117676bAMyfs'];a65_0x4432=function(){return _0x2d8ee4;};return a65_0x4432();}async function readDiagramWriteInput(_0x59c0a6){const _0x2084f4=a65_0x1e5c,_0x53bee0=_0x59c0a6['num'](_0x2084f4(0x1d0)),_0xefb12=_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1c5))[_0x2084f4(0x1cf)]();if(!Number[_0x2084f4(0x1b9)](_0x53bee0)||_0x53bee0<0x0)throw CliErrors[_0x2084f4(0x1ba)](_0x2084f4(0x1b8));if(!/^sha256:[0-9a-f]{64}$/[_0x2084f4(0x1cb)](_0xefb12))throw CliErrors['validation']('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x53bee0,'sourceFingerprint':_0xefb12,'diagram':await readRequiredSkillDiagram(_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1bf)))};}export const diagramValidateCommand={'service':a65_0x5e8aad(0x1d2),'command':'diagram-validate','description':a65_0x5e8aad(0x1c1),'risk':'read','flags':WRITE_FLAGS,async 'execute'(_0xf4c7e0){const _0x461f88=a65_0x5e8aad,_0x416789=readDiagramTarget(_0xf4c7e0),_0x148d68=await validateRuntimeSkillVersionDiagram(_0xf4c7e0[_0x461f88(0x1dd)],_0x416789[_0x461f88(0x1bc)],_0x416789['version'],_0x416789[_0x461f88(0x1b7)],await readDiagramWriteInput(_0xf4c7e0));return{'ok':!![],'data':_0x148d68,'message':_0x461f88(0x1bb)+_0x416789[_0x461f88(0x1bc)]+'@'+_0x416789[_0x461f88(0x1b3)]+'.'};}};function a65_0x1e5c(_0x3aac2f,_0x5a6c90){_0x3aac2f=_0x3aac2f-0x1b0;const _0x44325c=a65_0x4432();let _0x1e5c8c=_0x44325c[_0x3aac2f];return _0x1e5c8c;}export const diagramPushCommand={'service':a65_0x5e8aad(0x1d2),'command':a65_0x5e8aad(0x1bd),'description':a65_0x5e8aad(0x1c8),'risk':a65_0x5e8aad(0x1da),'confirmationDescription':a65_0x5e8aad(0x1b0),'flags':WRITE_FLAGS,async 'execute'(_0x2992e7){const _0x56e9e4=a65_0x5e8aad,_0x27d439=readDiagramTarget(_0x2992e7),_0x3af222=await putRuntimeSkillVersionDiagram(_0x2992e7['appCode'],_0x27d439[_0x56e9e4(0x1bc)],_0x27d439[_0x56e9e4(0x1b3)],_0x27d439[_0x56e9e4(0x1b7)],await readDiagramWriteInput(_0x2992e7));return{'ok':!![],'data':_0x3af222,'message':_0x3af222['action']==='unchanged'?_0x56e9e4(0x1b4)+_0x27d439[_0x56e9e4(0x1bc)]+'@'+_0x27d439[_0x56e9e4(0x1b3)]+_0x56e9e4(0x1d3):(_0x3af222[_0x56e9e4(0x1c7)]===_0x56e9e4(0x1c6)?_0x56e9e4(0x1d7):'Updated')+_0x56e9e4(0x1b2)+_0x27d439['skillCode']+'@'+_0x27d439[_0x56e9e4(0x1b3)]+'.'};}};export const diagramShowCommand={'service':'skill','command':'diagram-show','description':a65_0x5e8aad(0x1c4),'risk':a65_0x5e8aad(0x1be),'flags':TARGET_FLAGS,async 'execute'(_0x5947aa){const _0x53a51c=a65_0x5e8aad,_0x34efb6=readDiagramTarget(_0x5947aa),_0x3ab87f=await getRuntimeSkillVersionDiagram(_0x5947aa[_0x53a51c(0x1dd)],_0x34efb6['skillCode'],_0x34efb6['version'],_0x34efb6[_0x53a51c(0x1b7)]);return{'ok':!![],'data':_0x3ab87f,'message':_0x3ab87f[_0x53a51c(0x1c3)]?_0x53a51c(0x1d4)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6['version']+_0x53a51c(0x1d9)+_0x3ab87f[_0x53a51c(0x1b5)]+'.':_0x53a51c(0x1c9)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6[_0x53a51c(0x1b3)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x3ab87f[_0x53a51c(0x1b5)]+'.'};}};
@@ -1 +1 @@
1
- const a66_0x34e0e8=a66_0x595f;(function(_0x20322d,_0x475be8){const _0x17ccb0=a66_0x595f,_0x13cc59=_0x20322d();while(!![]){try{const _0xd00441=-parseInt(_0x17ccb0(0x1e8))/0x1*(parseInt(_0x17ccb0(0x1d8))/0x2)+parseInt(_0x17ccb0(0x1d5))/0x3*(-parseInt(_0x17ccb0(0x1c7))/0x4)+parseInt(_0x17ccb0(0x1bb))/0x5*(parseInt(_0x17ccb0(0x1e9))/0x6)+-parseInt(_0x17ccb0(0x1c9))/0x7+parseInt(_0x17ccb0(0x1e0))/0x8*(-parseInt(_0x17ccb0(0x1be))/0x9)+-parseInt(_0x17ccb0(0x1eb))/0xa*(-parseInt(_0x17ccb0(0x1c6))/0xb)+parseInt(_0x17ccb0(0x1d6))/0xc*(parseInt(_0x17ccb0(0x1ce))/0xd);if(_0xd00441===_0x475be8)break;else _0x13cc59['push'](_0x13cc59['shift']());}catch(_0x36980e){_0x13cc59['push'](_0x13cc59['shift']());}}}(a66_0x33d3,0x27fb1));import{CliErrors}from'../../../errors.js';function a66_0x595f(_0x5c9987,_0x5b208b){_0x5c9987=_0x5c9987-0x1bb;const _0x33d3b5=a66_0x33d3();let _0x595f20=_0x33d3b5[_0x5c9987];return _0x595f20;}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_0x34e0e8(0x1cb),'command':a66_0x34e0e8(0x1e5),'description':a66_0x34e0e8(0x1d0),'risk':a66_0x34e0e8(0x1d1),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x19302f){return syncRuntimeSkills(_0x19302f);}};async function syncRuntimeSkills(_0x4f40c1){const _0x4a3ae6=a66_0x34e0e8,{downloadRuntimeSkillPackage:_0x1311d3,listRuntimeSkills:_0x5c1b2b}=await import(_0x4a3ae6(0x1e3)),{linkEffectiveRuntimeSkills:_0x365239,materializeRuntimeSkill:_0x5b00b0,pruneStaleRuntimeSkillCache:_0x467d92,pruneStaleRuntimeSkillLinks:_0x16d4c4,resolveRuntimeSkillInstallTarget:_0x39b4b5,reuseMaterializedRuntimeSkill:_0x1742e3}=await import(_0x4a3ae6(0x1e7)),_0x15faea=_0x4f40c1[_0x4a3ae6(0x1df)](_0x4a3ae6(0x1c2)),_0x38ec1e=normalizeSyncScopes(_0x4f40c1[_0x4a3ae6(0x1df)](_0x4a3ae6(0x1e2))),_0x486f46=_0x4f40c1['envName']??_0x4a3ae6(0x1d2),_0x3c17a4=_0x4f40c1[_0x4a3ae6(0x1bf)],_0x44fe6e=_0x4f40c1[_0x4a3ae6(0x1cd)](_0x4a3ae6(0x1d3));if(!_0x3c17a4)throw CliErrors[_0x4a3ae6(0x1d4)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x2e881b=_0x39b4b5(_0x4f40c1['appCode'],_0x4f40c1[_0x4a3ae6(0x1cd)](_0x4a3ae6(0x1e6))?'project':_0x4a3ae6(0x1e4)),_0x552673=_0x39b4b5(_0x4f40c1['appCode'],_0x2e881b[_0x4a3ae6(0x1e2)]==='project'?_0x4a3ae6(0x1e4):_0x4a3ae6(0x1e6)),_0x5a022d=await _0x5c1b2b({'appCode':_0x4f40c1[_0x4a3ae6(0x1ea)],'scope':_0x38ec1e[_0x4a3ae6(0x1dd)]===0x1?_0x38ec1e[0x0]:'all','code':_0x15faea[_0x4a3ae6(0x1db)]()||undefined}),_0x2f73af=_0x38ec1e[_0x4a3ae6(0x1bc)]('personal')?_0x5a022d[_0x4a3ae6(0x1c0)]:[],_0x2b4171=_0x38ec1e[_0x4a3ae6(0x1bc)](_0x4a3ae6(0x1dc))?_0x5a022d['company']:[],_0x4edef1=new Set([..._0x2f73af[_0x4a3ae6(0x1cf)](_0x215835=>_0x215835[_0x4a3ae6(0x1de)]?.[_0x4a3ae6(0x1db)]())[_0x4a3ae6(0x1ca)](_0x3b2352=>Boolean(_0x3b2352)),..._0x2b4171['map'](_0x42c448=>_0x42c448[_0x4a3ae6(0x1de)]?.[_0x4a3ae6(0x1db)]())[_0x4a3ae6(0x1ca)](_0x428dba=>Boolean(_0x428dba))]),_0x16ab1c=_0x15faea['trim']()?[_0x15faea['trim']()]:undefined,_0x5873a1=_0x38ec1e[_0x4a3ae6(0x1dd)]===0x2&&_0x38ec1e['includes'](_0x4a3ae6(0x1c0))&&_0x38ec1e[_0x4a3ae6(0x1bc)](_0x4a3ae6(0x1dc)),_0x1d2a5b=_0x5873a1?_0x16d4c4(_0x2e881b,_0x4edef1,_0x16ab1c):[],_0x457ad1=_0x467d92({'env':_0x486f46,'accessKey':_0x3c17a4,'appCode':_0x4f40c1[_0x4a3ae6(0x1ea)],'activeSkillCodes':_0x4edef1,'pruneSkillCodes':_0x16ab1c,'scopes':_0x38ec1e,'protectedLinkRoots':_0x552673[_0x4a3ae6(0x1c1)]}),_0x460c58=[..._0x2f73af['map'](_0x2f8a2e=>({'skill':_0x2f8a2e,'scope':_0x4a3ae6(0x1c0)})),..._0x2b4171[_0x4a3ae6(0x1cf)](_0xffa8a4=>({'skill':_0xffa8a4,'scope':_0x4a3ae6(0x1dc)}))],_0x2bc03c=await mapConcurrent(_0x460c58,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x49b552,scope:_0x2a2200})=>{const _0xb3d1a7=_0x1742e3(_0x49b552,_0x2a2200,{'env':_0x486f46,'accessKey':_0x3c17a4,'appCode':_0x4f40c1['appCode']});if(_0xb3d1a7)return _0xb3d1a7;return _0x5b00b0(_0x49b552,_0x2a2200,{'env':_0x486f46,'accessKey':_0x3c17a4,'appCode':_0x4f40c1['appCode'],'force':_0x44fe6e,'packageBytes':await downloadSkillPackage(_0x49b552,_0x2a2200,_0x4f40c1['appCode'],_0x1311d3)});}),_0xe80b0=_0x365239(_0x2bc03c,_0x2e881b),_0x21f9ad=countLinkActions(_0xe80b0);return{'ok':!![],'data':{'appCode':_0x4f40c1[_0x4a3ae6(0x1ea)],..._0x2e881b['scope']===_0x4a3ae6(0x1e6)?{'installTarget':{'scope':_0x2e881b[_0x4a3ae6(0x1e2)],'skillRoots':[..._0x2e881b[_0x4a3ae6(0x1c1)]]}}:{},'personal':_0x2f73af[_0x4a3ae6(0x1dd)],'company':_0x2b4171[_0x4a3ae6(0x1dd)],'materialized':_0x2bc03c[_0x4a3ae6(0x1dd)],'links':{'total':_0xe80b0[_0x4a3ae6(0x1dd)],'created':_0x21f9ad[_0x4a3ae6(0x1c8)]??0x0,'updated':_0x21f9ad[_0x4a3ae6(0x1cc)]??0x0,'unchanged':_0x21f9ad['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x1d2a5b[_0x4a3ae6(0x1ca)](_0x3412de=>_0x3412de[_0x4a3ae6(0x1c4)]===_0x4a3ae6(0x1c5))[_0x4a3ae6(0x1dd)],'cacheDirs':_0x457ad1[_0x4a3ae6(0x1ca)](_0x119dca=>_0x119dca[_0x4a3ae6(0x1c4)]===_0x4a3ae6(0x1c5))[_0x4a3ae6(0x1dd)],'skipped':[..._0x1d2a5b,..._0x457ad1][_0x4a3ae6(0x1ca)](_0xbcf93b=>_0xbcf93b[_0x4a3ae6(0x1c4)]===_0x4a3ae6(0x1d7))[_0x4a3ae6(0x1dd)]},'skills':{'personal':_0x2f73af[_0x4a3ae6(0x1cf)](summarizeRuntimeSkill),'company':_0x2b4171['map'](summarizeRuntimeSkill)}},'message':_0x4a3ae6(0x1da)+_0x2f73af['length']+_0x4a3ae6(0x1c3)+_0x2b4171[_0x4a3ae6(0x1dd)]+'\x20company\x20Skill(s).'};}async function mapConcurrent(_0x73d0b1,_0x79c595,_0x436efd){const _0x127e92=a66_0x34e0e8,_0x53ec4e=new Array(_0x73d0b1[_0x127e92(0x1dd)]);let _0x3411bb=0x0;const _0x52ae96=Array['from']({'length':Math[_0x127e92(0x1d9)](_0x79c595,_0x73d0b1[_0x127e92(0x1dd)])},async()=>{while(_0x3411bb<_0x73d0b1['length']){const _0x168921=_0x3411bb;_0x3411bb+=0x1,_0x53ec4e[_0x168921]=await _0x436efd(_0x73d0b1[_0x168921]);}});return await Promise[_0x127e92(0x1bd)](_0x52ae96),_0x53ec4e;}function a66_0x33d3(){const _0x5198c2=['20ZgTjHP','includes','all','390231cCQUtD','accessKey','personal','skillRoots','code','\x20personal\x20and\x20','action','removed','24365DeiVpm','634308Fydtxh','created','1186612BvvQby','filter','skill','updated','bool','13GEpSvJ','map','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','read','production','force','authRequired','6JgCExr','7274472eNoqqg','skipped','22882oXiPjQ','min','Installed\x20','trim','company','length','skillCode','str','40JQvJLj','version','scope','../../../core/api-client.js','global','install','project','../../../skills/runtime-skill-sync.js','8xZLolC','475662DuiERs','appCode','160HNqJjQ'];a66_0x33d3=function(){return _0x5198c2;};return a66_0x33d3();}async function downloadSkillPackage(_0x227ca5,_0xa64d89,_0x376f1d,_0x28b7cf){const _0x3a61ba=a66_0x34e0e8,_0x33c2f8=_0x227ca5[_0x3a61ba(0x1e1)]?.[_0x3a61ba(0x1db)]();return _0x33c2f8?_0x28b7cf(_0xa64d89,_0x227ca5[_0x3a61ba(0x1de)],_0x376f1d,_0x33c2f8):_0x28b7cf(_0xa64d89,_0x227ca5[_0x3a61ba(0x1de)],_0x376f1d);}function countLinkActions(_0x104720){return _0x104720['reduce']((_0x3e3752,_0xaceee3)=>{const _0xa9b36a=a66_0x595f;return _0x3e3752[_0xaceee3[_0xa9b36a(0x1c4)]]=(_0x3e3752[_0xaceee3[_0xa9b36a(0x1c4)]]??0x0)+0x1,_0x3e3752;},{});}
1
+ const a66_0x32fce6=a66_0x412b;(function(_0x13f538,_0x56ca92){const _0x15bce2=a66_0x412b,_0x4ed8ff=_0x13f538();while(!![]){try{const _0x27213f=-parseInt(_0x15bce2(0x151))/0x1*(-parseInt(_0x15bce2(0x14c))/0x2)+-parseInt(_0x15bce2(0x130))/0x3+parseInt(_0x15bce2(0x150))/0x4*(-parseInt(_0x15bce2(0x146))/0x5)+-parseInt(_0x15bce2(0x138))/0x6+parseInt(_0x15bce2(0x14d))/0x7*(parseInt(_0x15bce2(0x148))/0x8)+parseInt(_0x15bce2(0x154))/0x9+-parseInt(_0x15bce2(0x136))/0xa*(parseInt(_0x15bce2(0x142))/0xb);if(_0x27213f===_0x56ca92)break;else _0x4ed8ff['push'](_0x4ed8ff['shift']());}catch(_0x37b941){_0x4ed8ff['push'](_0x4ed8ff['shift']());}}}(a66_0x5715,0xa3669));function a66_0x5715(){const _0x338beb=['scope','bool','removed','trim','action','global','authRequired','length','../../../skills/runtime-skill-sync.js','139843DYyeDU','str','\x20company\x20Skill(s).','filter','5090oCnExV','skillCode','371216XeFtwp','company','Installed\x20','personal','2239298vkSsqV','70RphQFB','skill','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','24fFilWY','1vbRPNe','force','map','6758379LPQzSw','project','all','appCode','includes','3389832NWpuus','skipped','updated','skillRoots','created','from','170GVhRDL','unchanged','1878828UwlTVk'];a66_0x5715=function(){return _0x338beb;};return a66_0x5715();}import{CliErrors}from'../../../errors.js';function a66_0x412b(_0x3b9d25,_0x321893){_0x3b9d25=_0x3b9d25-0x12c;const _0x571588=a66_0x5715();let _0x412b79=_0x571588[_0x3b9d25];return _0x412b79;}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_0x32fce6(0x14e),'command':'install','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'(_0x363ab6){return syncRuntimeSkills(_0x363ab6);}};async function syncRuntimeSkills(_0x23dfef){const _0x5e6ea9=a66_0x32fce6,{downloadRuntimeSkillPackage:_0x3bb976,listRuntimeSkills:_0x7ec556}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x305073,materializeRuntimeSkill:_0x5395f6,pruneStaleRuntimeSkillCache:_0x14bc88,pruneStaleRuntimeSkillLinks:_0x2e169e,resolveRuntimeSkillInstallTarget:_0xaaa7e9,reuseMaterializedRuntimeSkill:_0x39145c}=await import(_0x5e6ea9(0x141)),_0x3dab61=_0x23dfef[_0x5e6ea9(0x143)]('code'),_0x208e20=normalizeSyncScopes(_0x23dfef[_0x5e6ea9(0x143)]('scope')),_0x37c918=_0x23dfef['envName']??'production',_0x41fa6d=_0x23dfef['accessKey'],_0x4f168c=_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x152));if(!_0x41fa6d)throw CliErrors[_0x5e6ea9(0x13f)](_0x5e6ea9(0x14f));const _0x3eb88c=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x12c))?_0x5e6ea9(0x12c):_0x5e6ea9(0x13e)),_0x500127=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x3eb88c[_0x5e6ea9(0x139)]===_0x5e6ea9(0x12c)?_0x5e6ea9(0x13e):_0x5e6ea9(0x12c)),_0x1bfa94=await _0x7ec556({'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'scope':_0x208e20[_0x5e6ea9(0x140)]===0x1?_0x208e20[0x0]:_0x5e6ea9(0x12d),'code':_0x3dab61[_0x5e6ea9(0x13c)]()||undefined}),_0x345aef=_0x208e20[_0x5e6ea9(0x12f)](_0x5e6ea9(0x14b))?_0x1bfa94[_0x5e6ea9(0x14b)]:[],_0x4e7dda=_0x208e20[_0x5e6ea9(0x12f)]('company')?_0x1bfa94[_0x5e6ea9(0x149)]:[],_0x56d700=new Set([..._0x345aef[_0x5e6ea9(0x153)](_0x3deefa=>_0x3deefa[_0x5e6ea9(0x147)]?.['trim']())[_0x5e6ea9(0x145)](_0x318dc8=>Boolean(_0x318dc8)),..._0x4e7dda['map'](_0x517173=>_0x517173[_0x5e6ea9(0x147)]?.[_0x5e6ea9(0x13c)]())[_0x5e6ea9(0x145)](_0x181379=>Boolean(_0x181379))]),_0x30ba8e=_0x3dab61[_0x5e6ea9(0x13c)]()?[_0x3dab61[_0x5e6ea9(0x13c)]()]:undefined,_0x58fba9=_0x208e20[_0x5e6ea9(0x140)]===0x2&&_0x208e20['includes']('personal')&&_0x208e20['includes'](_0x5e6ea9(0x149)),_0x329412=_0x58fba9?_0x2e169e(_0x3eb88c,_0x56d700,_0x30ba8e):[],_0x56e32a=_0x14bc88({'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'activeSkillCodes':_0x56d700,'pruneSkillCodes':_0x30ba8e,'scopes':_0x208e20,'protectedLinkRoots':_0x500127[_0x5e6ea9(0x133)]}),_0x283612=[..._0x345aef[_0x5e6ea9(0x153)](_0x1c85fd=>({'skill':_0x1c85fd,'scope':_0x5e6ea9(0x14b)})),..._0x4e7dda[_0x5e6ea9(0x153)](_0x4e29e4=>({'skill':_0x4e29e4,'scope':_0x5e6ea9(0x149)}))],_0x33da47=await mapConcurrent(_0x283612,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x475a7b,scope:_0x210a97})=>{const _0xd2be9e=_0x5e6ea9,_0x319aaf=_0x39145c(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)]});if(_0x319aaf)return _0x319aaf;return _0x5395f6(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)],'force':_0x4f168c,'packageBytes':await downloadSkillPackage(_0x475a7b,_0x210a97,_0x23dfef['appCode'],_0x3bb976)});}),_0x51fe1e=_0x305073(_0x33da47,_0x3eb88c),_0x31f8d8=countLinkActions(_0x51fe1e);return{'ok':!![],'data':{'appCode':_0x23dfef[_0x5e6ea9(0x12e)],..._0x3eb88c['scope']===_0x5e6ea9(0x12c)?{'installTarget':{'scope':_0x3eb88c[_0x5e6ea9(0x139)],'skillRoots':[..._0x3eb88c['skillRoots']]}}:{},'personal':_0x345aef[_0x5e6ea9(0x140)],'company':_0x4e7dda[_0x5e6ea9(0x140)],'materialized':_0x33da47[_0x5e6ea9(0x140)],'links':{'total':_0x51fe1e[_0x5e6ea9(0x140)],'created':_0x31f8d8[_0x5e6ea9(0x134)]??0x0,'updated':_0x31f8d8[_0x5e6ea9(0x132)]??0x0,'unchanged':_0x31f8d8[_0x5e6ea9(0x137)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x329412[_0x5e6ea9(0x145)](_0x365738=>_0x365738[_0x5e6ea9(0x13d)]===_0x5e6ea9(0x13b))[_0x5e6ea9(0x140)],'cacheDirs':_0x56e32a[_0x5e6ea9(0x145)](_0xf60b3f=>_0xf60b3f['action']==='removed')[_0x5e6ea9(0x140)],'skipped':[..._0x329412,..._0x56e32a][_0x5e6ea9(0x145)](_0x4d9c3c=>_0x4d9c3c['action']===_0x5e6ea9(0x131))['length']},'skills':{'personal':_0x345aef[_0x5e6ea9(0x153)](summarizeRuntimeSkill),'company':_0x4e7dda[_0x5e6ea9(0x153)](summarizeRuntimeSkill)}},'message':_0x5e6ea9(0x14a)+_0x345aef['length']+'\x20personal\x20and\x20'+_0x4e7dda['length']+_0x5e6ea9(0x144)};}async function mapConcurrent(_0x161f75,_0x4d878b,_0x59ce62){const _0x47d3bf=a66_0x32fce6,_0x538285=new Array(_0x161f75[_0x47d3bf(0x140)]);let _0x433fa4=0x0;const _0x404617=Array[_0x47d3bf(0x135)]({'length':Math['min'](_0x4d878b,_0x161f75[_0x47d3bf(0x140)])},async()=>{while(_0x433fa4<_0x161f75['length']){const _0x214d2e=_0x433fa4;_0x433fa4+=0x1,_0x538285[_0x214d2e]=await _0x59ce62(_0x161f75[_0x214d2e]);}});return await Promise[_0x47d3bf(0x12d)](_0x404617),_0x538285;}async function downloadSkillPackage(_0x1ed2ba,_0x1b678c,_0x5c17b7,_0x2f66c2){const _0x34db48=a66_0x32fce6,_0x943ed=_0x1ed2ba['version']?.[_0x34db48(0x13c)]();return _0x943ed?_0x2f66c2(_0x1b678c,_0x1ed2ba['skillCode'],_0x5c17b7,_0x943ed):_0x2f66c2(_0x1b678c,_0x1ed2ba[_0x34db48(0x147)],_0x5c17b7);}function countLinkActions(_0x2dc243){return _0x2dc243['reduce']((_0x538451,_0x470e24)=>{const _0x48aa5a=a66_0x412b;return _0x538451[_0x470e24[_0x48aa5a(0x13d)]]=(_0x538451[_0x470e24[_0x48aa5a(0x13d)]]??0x0)+0x1,_0x538451;},{});}
@@ -1 +1 @@
1
- const a67_0xed4ea9=a67_0x4d4e;(function(_0x47a06f,_0x1e4e7a){const _0x25355a=a67_0x4d4e,_0x1777ca=_0x47a06f();while(!![]){try{const _0x359cc9=-parseInt(_0x25355a(0xab))/0x1*(-parseInt(_0x25355a(0xaf))/0x2)+-parseInt(_0x25355a(0x9b))/0x3*(-parseInt(_0x25355a(0xa2))/0x4)+parseInt(_0x25355a(0x95))/0x5*(-parseInt(_0x25355a(0x9f))/0x6)+-parseInt(_0x25355a(0x9d))/0x7+parseInt(_0x25355a(0xa6))/0x8+-parseInt(_0x25355a(0x96))/0x9*(parseInt(_0x25355a(0x8d))/0xa)+-parseInt(_0x25355a(0x8c))/0xb*(-parseInt(_0x25355a(0x94))/0xc);if(_0x359cc9===_0x1e4e7a)break;else _0x1777ca['push'](_0x1777ca['shift']());}catch(_0x2aa7d0){_0x1777ca['push'](_0x1777ca['shift']());}}}(a67_0x429c,0x8d8b8));function a67_0x4d4e(_0x42b1bb,_0x5447e1){_0x42b1bb=_0x42b1bb-0x8c;const _0x429cb2=a67_0x429c();let _0x4d4e22=_0x429cb2[_0x42b1bb];return _0x4d4e22;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a67_0x429c(){const _0x33c760=['Listed\x20','388698urzhUH','appCode','code','12KexJXi','filter','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','global','3427600UMoxQJ','accessKey','skill','\x20local\x20Skill(s).','../../../skills/runtime-skill-sync.js','586361uLIHgM','read','../../../core/api-client.js','envName','2ipPZDm','bool','builtin','1453727ndhTfo','200930SoiITx','scope','remote','trim','company','personal','length','156AFBmru','70LhLceO','162hIoYoL','local','map','list','project','126501RyOGVK','\x20remote\x20Skill(s).','7076643CBshYk'];a67_0x429c=function(){return _0x33c760;};return a67_0x429c();}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a67_0xed4ea9(0xa8),'command':a67_0xed4ea9(0x99),'description':a67_0xed4ea9(0xa4),'risk':a67_0xed4ea9(0xac),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x160a4f){const _0x1f3893=a67_0xed4ea9,_0x2328f4=_0x160a4f['str'](_0x1f3893(0xa1)),_0x5b0e1b=normalizeListScope(_0x160a4f['str'](_0x1f3893(0x8e)));if(_0x160a4f['bool'](_0x1f3893(0x97))){const _0x24b0b2=_0x160a4f[_0x1f3893(0xa7)];if(!_0x24b0b2)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x464910,resolveRuntimeSkillInstallTarget:_0x213355}=await import(_0x1f3893(0xaa)),_0x516397=_0x213355(_0x160a4f[_0x1f3893(0xa0)],_0x160a4f[_0x1f3893(0xb0)](_0x1f3893(0x9a))?_0x1f3893(0x9a):_0x1f3893(0xa5)),_0x389c13=_0x464910({'env':_0x160a4f[_0x1f3893(0xae)]??'production','accessKey':_0x24b0b2,'appCode':_0x160a4f[_0x1f3893(0xa0)],'scopes':listScopeToRuntimeScopes(_0x5b0e1b),'code':_0x2328f4[_0x1f3893(0x90)]()||undefined},_0x516397),_0x269dc5=groupLocalRuntimeSkills(_0x389c13);return{'ok':!![],'data':{'appCode':_0x160a4f[_0x1f3893(0xa0)],'source':'local',..._0x516397[_0x1f3893(0x8e)]===_0x1f3893(0x9a)?{'installScope':_0x516397['scope']}:{},'scope':_0x5b0e1b,'total':_0x389c13[_0x1f3893(0x93)],'personal':_0x269dc5['personal'][_0x1f3893(0x93)],'company':_0x269dc5[_0x1f3893(0x91)][_0x1f3893(0x93)],'items':_0x389c13[_0x1f3893(0x98)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x269dc5[_0x1f3893(0x92)][_0x1f3893(0x98)](summarizeLocalRuntimeSkill),'company':_0x269dc5[_0x1f3893(0x91)][_0x1f3893(0x98)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x389c13[_0x1f3893(0x93)]+_0x1f3893(0xa9)};}const {listRuntimeSkills:_0xe66aaa}=await import(_0x1f3893(0xad)),_0x13bf77=await _0xe66aaa({'appCode':_0x160a4f['appCode'],'scope':listScopeToRemoteScope(_0x5b0e1b),'code':_0x2328f4[_0x1f3893(0x90)]()||undefined}),_0x43efc7=shouldListScope(_0x5b0e1b,_0x1f3893(0x92))?_0x13bf77[_0x1f3893(0x92)]??[]:[],_0x323dc1=shouldListScope(_0x5b0e1b,_0x1f3893(0x91))?_0x13bf77[_0x1f3893(0x91)]??[]:[],_0xc5650d=[..._0x43efc7,..._0x323dc1];return{'ok':!![],'data':{'appCode':_0x160a4f[_0x1f3893(0xa0)],'source':_0x1f3893(0x8f),'scope':_0x5b0e1b,'total':_0xc5650d[_0x1f3893(0x93)],'personal':_0x43efc7['length'],'company':_0x323dc1[_0x1f3893(0x93)],'items':_0xc5650d[_0x1f3893(0x98)](summarizeRuntimeSkill),'skills':{'personal':_0x43efc7[_0x1f3893(0x98)](summarizeRuntimeSkill),'company':_0x323dc1[_0x1f3893(0x98)](summarizeRuntimeSkill)}},'message':_0x1f3893(0x9e)+_0xc5650d[_0x1f3893(0x93)]+_0x1f3893(0x9c)};}};function groupLocalRuntimeSkills(_0x48c20c){const _0x4c7353=a67_0xed4ea9;return{'personal':_0x48c20c[_0x4c7353(0xa3)](_0x3a3c85=>_0x3a3c85[_0x4c7353(0x8e)]===_0x4c7353(0x92)),'company':_0x48c20c['filter'](_0x5f5941=>_0x5f5941[_0x4c7353(0x8e)]===_0x4c7353(0x91)),'builtin':_0x48c20c[_0x4c7353(0xa3)](_0x543880=>_0x543880[_0x4c7353(0x8e)]===_0x4c7353(0xb1))};}
1
+ function a67_0x2637(){const _0x2dc303=['accessKey','production','str','authRequired','filter','bool','111920cDxYex','trim','1bEzTjK','length','11401610ypbuiR','map','Listed\x20','builtin','3iceQkw','list','project','scope','envName','133512SPQbkm','personal','appCode','1051402RRGgXs','remote','local','18QWmKpk','305UXlVqF','4664888KnWQIW','global','company','\x20local\x20Skill(s).','11037334skDFGD','\x20remote\x20Skill(s).','skill','../../../skills/runtime-skill-sync.js','4761620BgPGuQ'];a67_0x2637=function(){return _0x2dc303;};return a67_0x2637();}const a67_0x306d6a=a67_0x1aa9;(function(_0x30d9d2,_0x42389c){const _0x102dee=a67_0x1aa9,_0x4a162b=_0x30d9d2();while(!![]){try{const _0x578ff2=-parseInt(_0x102dee(0x111))/0x1*(-parseInt(_0x102dee(0x11f))/0x2)+-parseInt(_0x102dee(0x117))/0x3*(-parseInt(_0x102dee(0x10f))/0x4)+-parseInt(_0x102dee(0x123))/0x5*(-parseInt(_0x102dee(0x11c))/0x6)+-parseInt(_0x102dee(0x128))/0x7+parseInt(_0x102dee(0x124))/0x8+-parseInt(_0x102dee(0x122))/0x9*(-parseInt(_0x102dee(0x108))/0xa)+-parseInt(_0x102dee(0x113))/0xb;if(_0x578ff2===_0x42389c)break;else _0x4a162b['push'](_0x4a162b['shift']());}catch(_0x53b3a7){_0x4a162b['push'](_0x4a162b['shift']());}}}(a67_0x2637,0xcb6c0));import{CliErrors}from'../../../errors.js';function a67_0x1aa9(_0x361307,_0x2e0042){_0x361307=_0x361307-0x106;const _0x26377f=a67_0x2637();let _0x1aa943=_0x26377f[_0x361307];return _0x1aa943;}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_0x306d6a(0x106),'command':a67_0x306d6a(0x118),'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'(_0x60513a){const _0x2e1a56=a67_0x306d6a,_0x12ef55=_0x60513a[_0x2e1a56(0x10b)]('code'),_0x1f6dd5=normalizeListScope(_0x60513a['str'](_0x2e1a56(0x11a)));if(_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x121))){const _0xa73fe1=_0x60513a[_0x2e1a56(0x109)];if(!_0xa73fe1)throw CliErrors[_0x2e1a56(0x10c)]();const {listLocalRuntimeSkills:_0x25a05a,resolveRuntimeSkillInstallTarget:_0xd189a1}=await import(_0x2e1a56(0x107)),_0x4b3584=_0xd189a1(_0x60513a[_0x2e1a56(0x11e)],_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x119))?_0x2e1a56(0x119):_0x2e1a56(0x125)),_0x3c5ba0=_0x25a05a({'env':_0x60513a[_0x2e1a56(0x11b)]??_0x2e1a56(0x10a),'accessKey':_0xa73fe1,'appCode':_0x60513a[_0x2e1a56(0x11e)],'scopes':listScopeToRuntimeScopes(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined},_0x4b3584),_0x1d087e=groupLocalRuntimeSkills(_0x3c5ba0);return{'ok':!![],'data':{'appCode':_0x60513a[_0x2e1a56(0x11e)],'source':_0x2e1a56(0x121),..._0x4b3584['scope']===_0x2e1a56(0x119)?{'installScope':_0x4b3584[_0x2e1a56(0x11a)]}:{},'scope':_0x1f6dd5,'total':_0x3c5ba0['length'],'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x112)],'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x112)],'items':_0x3c5ba0[_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x3c5ba0[_0x2e1a56(0x112)]+_0x2e1a56(0x127)};}const {listRuntimeSkills:_0x23034d}=await import('../../../core/api-client.js'),_0x3b837f=await _0x23034d({'appCode':_0x60513a[_0x2e1a56(0x11e)],'scope':listScopeToRemoteScope(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined}),_0x20666b=shouldListScope(_0x1f6dd5,'personal')?_0x3b837f[_0x2e1a56(0x11d)]??[]:[],_0x231f09=shouldListScope(_0x1f6dd5,_0x2e1a56(0x126))?_0x3b837f[_0x2e1a56(0x126)]??[]:[],_0x2e0377=[..._0x20666b,..._0x231f09];return{'ok':!![],'data':{'appCode':_0x60513a['appCode'],'source':_0x2e1a56(0x120),'scope':_0x1f6dd5,'total':_0x2e0377[_0x2e1a56(0x112)],'personal':_0x20666b[_0x2e1a56(0x112)],'company':_0x231f09[_0x2e1a56(0x112)],'items':_0x2e0377[_0x2e1a56(0x114)](summarizeRuntimeSkill),'skills':{'personal':_0x20666b[_0x2e1a56(0x114)](summarizeRuntimeSkill),'company':_0x231f09[_0x2e1a56(0x114)](summarizeRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x2e0377[_0x2e1a56(0x112)]+_0x2e1a56(0x129)};}};function groupLocalRuntimeSkills(_0x5845f3){const _0x2fe78c=a67_0x306d6a;return{'personal':_0x5845f3[_0x2fe78c(0x10d)](_0x31d2dd=>_0x31d2dd[_0x2fe78c(0x11a)]===_0x2fe78c(0x11d)),'company':_0x5845f3['filter'](_0x22e22a=>_0x22e22a['scope']===_0x2fe78c(0x126)),'builtin':_0x5845f3[_0x2fe78c(0x10d)](_0x33a7bc=>_0x33a7bc[_0x2fe78c(0x11a)]===_0x2fe78c(0x116))};}
@@ -1 +1 @@
1
- function a68_0x1972(){const _0x36a3a3=['1410668ZARcVY','616260KlKdjG','478088vHjPhN','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','61825zSifGX','write','84665JPYrhR','2976903RVPxJd','skill','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.','296436vSRUWr','8YiVsrU','92UNYNQo','push'];a68_0x1972=function(){return _0x36a3a3;};return a68_0x1972();}const a68_0x4c45ba=a68_0x44da;function a68_0x44da(_0x378e95,_0x3a9eda){_0x378e95=_0x378e95-0x185;const _0x19720c=a68_0x1972();let _0x44daa3=_0x19720c[_0x378e95];return _0x44daa3;}(function(_0x2908f8,_0xda74a3){const _0x21b2b4=a68_0x44da,_0x341fce=_0x2908f8();while(!![]){try{const _0x4092b2=-parseInt(_0x21b2b4(0x186))/0x1+-parseInt(_0x21b2b4(0x190))/0x2+parseInt(_0x21b2b4(0x18f))/0x3+parseInt(_0x21b2b4(0x18c))/0x4*(-parseInt(_0x21b2b4(0x192))/0x5)+parseInt(_0x21b2b4(0x18a))/0x6+parseInt(_0x21b2b4(0x18e))/0x7*(parseInt(_0x21b2b4(0x18b))/0x8)+parseInt(_0x21b2b4(0x187))/0x9;if(_0x4092b2===_0xda74a3)break;else _0x341fce['push'](_0x341fce['shift']());}catch(_0x5a53f8){_0x341fce['push'](_0x341fce['shift']());}}}(a68_0x1972,0x2bb45));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4c45ba(0x188),'command':a68_0x4c45ba(0x18d),'description':a68_0x4c45ba(0x191),'risk':a68_0x4c45ba(0x185),'confirmationDescription':a68_0x4c45ba(0x189),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ function a68_0x98b7(){const _0x3ea645=['1704660cWlrrM','207067YKfpnS','9IakIOg','320050VywAkM','196708KxESDl','push','6EZZWlQ','skill','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.','1135856EkEiQH','572277HHXRDe','5MEDBod','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','147679RlCRCa'];a68_0x98b7=function(){return _0x3ea645;};return a68_0x98b7();}function a68_0x2d6c(_0x208e24,_0x518aa2){_0x208e24=_0x208e24-0x162;const _0x98b7be=a68_0x98b7();let _0x2d6c2e=_0x98b7be[_0x208e24];return _0x2d6c2e;}const a68_0x4e9316=a68_0x2d6c;(function(_0x97035c,_0x3aa590){const _0x133b0f=a68_0x2d6c,_0x3e6bbc=_0x97035c();while(!![]){try{const _0x4752a2=-parseInt(_0x133b0f(0x168))/0x1+parseInt(_0x133b0f(0x16c))/0x2+-parseInt(_0x133b0f(0x165))/0x3+-parseInt(_0x133b0f(0x16d))/0x4*(-parseInt(_0x133b0f(0x166))/0x5)+-parseInt(_0x133b0f(0x16f))/0x6*(parseInt(_0x133b0f(0x16a))/0x7)+parseInt(_0x133b0f(0x164))/0x8+parseInt(_0x133b0f(0x16b))/0x9*(parseInt(_0x133b0f(0x169))/0xa);if(_0x4752a2===_0x3aa590)break;else _0x3e6bbc['push'](_0x3e6bbc['shift']());}catch(_0x43ef19){_0x3e6bbc['push'](_0x3e6bbc['shift']());}}}(a68_0x98b7,0x2581f));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4e9316(0x162),'command':a68_0x4e9316(0x16e),'description':a68_0x4e9316(0x167),'risk':'write','confirmationDescription':a68_0x4e9316(0x163),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- function a69_0x48ab(_0x43361c,_0x4e14d2){_0x43361c=_0x43361c-0x12b;const _0x3fb24c=a69_0x3fb2();let _0x48ab35=_0x3fb24c[_0x43361c];return _0x48ab35;}function a69_0x3fb2(){const _0x3a69d8=['8dAIaFO','248138olJGuw','81866kUegRg','6190XTMvRa','2791233rkvYFo','skill','424NpAdgv','3990000HvkAaX','8303760ImVLcJ','2701320gwpXDe','errors','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','str','read','strict','970UcwLbY','11vPoFkB','type','dir','warnings','validate','Skill\x20validation\x20passed.'];a69_0x3fb2=function(){return _0x3a69d8;};return a69_0x3fb2();}const a69_0x39d7fd=a69_0x48ab;(function(_0x3d66c6,_0x11723e){const _0x106d8f=a69_0x48ab,_0x10c95b=_0x3d66c6();while(!![]){try{const _0x283c51=-parseInt(_0x106d8f(0x12b))/0x1*(parseInt(_0x106d8f(0x133))/0x2)+-parseInt(_0x106d8f(0x135))/0x3+parseInt(_0x106d8f(0x137))/0x4*(-parseInt(_0x106d8f(0x134))/0x5)+-parseInt(_0x106d8f(0x13a))/0x6+-parseInt(_0x106d8f(0x138))/0x7*(parseInt(_0x106d8f(0x131))/0x8)+parseInt(_0x106d8f(0x139))/0x9+parseInt(_0x106d8f(0x140))/0xa*(parseInt(_0x106d8f(0x132))/0xb);if(_0x283c51===_0x11723e)break;else _0x10c95b['push'](_0x10c95b['shift']());}catch(_0x2fe70e){_0x10c95b['push'](_0x10c95b['shift']());}}}(a69_0x3fb2,0x8d454));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x39d7fd(0x136),'command':a69_0x39d7fd(0x12f),'description':a69_0x39d7fd(0x13c),'risk':a69_0x39d7fd(0x13e),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x272c56){const _0x2d1da2=a69_0x39d7fd,_0x5f9351=_0x272c56['bool'](_0x2d1da2(0x13f)),_0xd297c3=validateSkillDirectory(_0x272c56[_0x2d1da2(0x13d)](_0x2d1da2(0x12d)),{'strict':_0x5f9351});return throwIfSkillValidationFailed(_0xd297c3,_0x5f9351),{'ok':!![],'data':{'dir':_0xd297c3[_0x2d1da2(0x12d)],'type':_0xd297c3[_0x2d1da2(0x12c)],'errors':_0xd297c3[_0x2d1da2(0x13b)],'warnings':_0xd297c3[_0x2d1da2(0x12e)]},'message':_0x2d1da2(0x130)};}};
1
+ const a69_0x385102=a69_0x506e;(function(_0x300f54,_0x3b1a42){const _0x339555=a69_0x506e,_0x3e28eb=_0x300f54();while(!![]){try{const _0x52b0fe=-parseInt(_0x339555(0x1a8))/0x1*(parseInt(_0x339555(0x199))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x19d))/0x4)+parseInt(_0x339555(0x19c))/0x5*(parseInt(_0x339555(0x1a2))/0x6)+parseInt(_0x339555(0x19b))/0x7*(-parseInt(_0x339555(0x1a9))/0x8)+-parseInt(_0x339555(0x1a7))/0x9+parseInt(_0x339555(0x196))/0xa+parseInt(_0x339555(0x197))/0xb;if(_0x52b0fe===_0x3b1a42)break;else _0x3e28eb['push'](_0x3e28eb['shift']());}catch(_0x2a1e75){_0x3e28eb['push'](_0x3e28eb['shift']());}}}(a69_0x793f,0x1e64f));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a69_0x506e(_0x53a28a,_0x4a8da8){_0x53a28a=_0x53a28a-0x193;const _0x793f4=a69_0x793f();let _0x506e83=_0x793f4[_0x53a28a];return _0x506e83;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a69_0x793f(){const _0x21cbd4=['609scVVmN','26375gaALew','56824qHSpEb','warnings','strict','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','36WhSnnT','dir','read','errors','skill','751356chrRpc','7XaseGa','19664lxYGsl','Skill\x20validation\x20passed.','type','str','1077680BGpuhs','6371783EUaJhM','bool','32048RAKpSy','39ceGyWP'];a69_0x793f=function(){return _0x21cbd4;};return a69_0x793f();}export const validateCommand={'service':a69_0x385102(0x1a6),'command':a69_0x385102(0x1a1),'description':a69_0x385102(0x1a0),'risk':a69_0x385102(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x528c7d){const _0x5d6f15=a69_0x385102,_0xe37811=_0x528c7d[_0x5d6f15(0x198)](_0x5d6f15(0x19f)),_0x966fcc=validateSkillDirectory(_0x528c7d[_0x5d6f15(0x195)](_0x5d6f15(0x1a3)),{'strict':_0xe37811});return throwIfSkillValidationFailed(_0x966fcc,_0xe37811),{'ok':!![],'data':{'dir':_0x966fcc[_0x5d6f15(0x1a3)],'type':_0x966fcc[_0x5d6f15(0x194)],'errors':_0x966fcc[_0x5d6f15(0x1a5)],'warnings':_0x966fcc[_0x5d6f15(0x19e)]},'message':_0x5d6f15(0x193)};}};
@@ -1 +1 @@
1
- (function(_0x60cf7,_0x161ef4){const _0x10afa5=a70_0x40a4,_0x98d8ce=_0x60cf7();while(!![]){try{const _0x5333cd=-parseInt(_0x10afa5(0x10b))/0x1+parseInt(_0x10afa5(0xf4))/0x2+parseInt(_0x10afa5(0xf5))/0x3+parseInt(_0x10afa5(0x10a))/0x4+parseInt(_0x10afa5(0xfa))/0x5*(-parseInt(_0x10afa5(0x103))/0x6)+-parseInt(_0x10afa5(0xf6))/0x7+parseInt(_0x10afa5(0x100))/0x8*(parseInt(_0x10afa5(0xfd))/0x9);if(_0x5333cd===_0x161ef4)break;else _0x98d8ce['push'](_0x98d8ce['shift']());}catch(_0x52b53c){_0x98d8ce['push'](_0x98d8ce['shift']());}}}(a70_0x2541,0x5ba62));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a70_0x40a4(_0x6584c9,_0xb2c2b9){_0x6584c9=_0x6584c9-0xf2;const _0x2541fb=a70_0x2541();let _0x40a477=_0x2541fb[_0x6584c9];return _0x40a477;}import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x4b624e){const _0x38cfcd=a70_0x40a4;return(await readRequiredSkillDiagramInput(_0x4b624e))[_0x38cfcd(0x108)];}export async function readRequiredSkillDiagramInput(_0x202b15){const _0x45da5a=a70_0x40a4,_0x28fe4b=_0x202b15[_0x45da5a(0x104)]();if(!_0x28fe4b)throw CliErrors[_0x45da5a(0x101)]('--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.',_0x45da5a(0x105));let _0x3bc585,_0x216797;if(_0x28fe4b==='-')try{_0x3bc585=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x45da5a(0x101)](_0x45da5a(0x107));}else{const _0x595b26=resolve(_0x28fe4b);if(!existsSync(_0x595b26))throw CliErrors[_0x45da5a(0x101)](_0x45da5a(0xff)+_0x595b26);if(!statSync(_0x595b26)[_0x45da5a(0x109)]())throw CliErrors[_0x45da5a(0x101)](_0x45da5a(0xf8)+_0x595b26);_0x216797=realpathSync(_0x595b26),_0x3bc585=readFileSync(_0x216797,_0x45da5a(0xfb));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x3bc585)},'sourceFilePath':_0x216797};}export async function validateAndCanonicalizeMermaid(_0x483a69){const _0x234264=a70_0x40a4,_0x2438c0=_0x483a69[_0x234264(0x102)](/\r\n/g,'\x0a')[_0x234264(0x102)](/\r/g,'\x0a')[_0x234264(0x102)](/\n+$/,'')+'\x0a';try{const _0x57acff=await loadMermaidApi();await _0x57acff[_0x234264(0xf2)](_0x2438c0);}catch{throw diagramValidationError();}return _0x2438c0;}function a70_0x2541(){const _0x5a978c=['Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','diagram','isFile','2994808GJrrFr','531929fvlUPf','parse','Mermaid\x20syntax\x20validation\x20failed.','322256qBpIOc','2123433kWuDRe','5061210VNqGcj','defineProperties','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','document','7820FLBSxb','utf8','default','1141056lHEYhG','mermaid','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','16jlucNq','validation','replace','924NGpdvf','trim','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','window'];a70_0x2541=function(){return _0x5a978c;};return a70_0x2541();}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0xf046a9=a70_0x40a4;if(!(_0xf046a9(0x106)in globalThis)||!(_0xf046a9(0xf9)in globalThis)){const _0x16ab73=new JSDOM('');Object[_0xf046a9(0xf7)](globalThis,{'window':{'configurable':!![],'value':_0x16ab73['window']},'document':{'configurable':!![],'value':_0x16ab73[_0xf046a9(0x106)][_0xf046a9(0xf9)]}});}return(await import(_0xf046a9(0xfe)))[_0xf046a9(0xfc)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x1e0c1d=a70_0x40a4;return CliErrors[_0x1e0c1d(0x101)](_0x1e0c1d(0xf3),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
1
+ (function(_0x8fc1d,_0x31f2a2){const _0x450a97=a70_0x31d8,_0x52e4e8=_0x8fc1d();while(!![]){try{const _0x141873=parseInt(_0x450a97(0x11a))/0x1*(parseInt(_0x450a97(0x113))/0x2)+parseInt(_0x450a97(0x109))/0x3+parseInt(_0x450a97(0x116))/0x4*(parseInt(_0x450a97(0x115))/0x5)+parseInt(_0x450a97(0x11b))/0x6+parseInt(_0x450a97(0x117))/0x7+-parseInt(_0x450a97(0x10b))/0x8+-parseInt(_0x450a97(0x106))/0x9;if(_0x141873===_0x31f2a2)break;else _0x52e4e8['push'](_0x52e4e8['shift']());}catch(_0x18f85a){_0x52e4e8['push'](_0x52e4e8['shift']());}}}(a70_0x3b5f,0x6308e));function a70_0x31d8(_0x3cfe48,_0x5a0e60){_0x3cfe48=_0x3cfe48-0x104;const _0x3b5fa5=a70_0x3b5f();let _0x31d856=_0x3b5fa5[_0x3cfe48];return _0x31d856;}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(_0xfa9215){const _0x549ce3=a70_0x31d8;return(await readRequiredSkillDiagramInput(_0xfa9215))[_0x549ce3(0x10e)];}function a70_0x3b5f(){const _0x7f2a38=['Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','2VhEjdO','window','1020MNdoCZ','14648zWBYmI','3759224NLCyut','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','505619HUtmtb','1952952mepdws','Mermaid\x20syntax\x20validation\x20failed.','document','14079573YNrhdX','validation','parse','1981005WZxIwb','utf8','6443864AUUtsP','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','defineProperties','diagram','default','replace','Mermaid\x20flowchart\x20file\x20not\x20found:\x20'];a70_0x3b5f=function(){return _0x7f2a38;};return a70_0x3b5f();}export async function readRequiredSkillDiagramInput(_0x2d46bc){const _0x1e0161=a70_0x31d8,_0x27e975=_0x2d46bc['trim']();if(!_0x27e975)throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x118),_0x1e0161(0x10c));let _0x164824,_0x1bf9ab;if(_0x27e975==='-')try{_0x164824=readFileSync(0x0,_0x1e0161(0x10a));}catch{throw CliErrors['validation'](_0x1e0161(0x119));}else{const _0xad3d68=resolve(_0x27e975);if(!existsSync(_0xad3d68))throw CliErrors['validation'](_0x1e0161(0x111)+_0xad3d68);if(!statSync(_0xad3d68)['isFile']())throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x112)+_0xad3d68);_0x1bf9ab=realpathSync(_0xad3d68),_0x164824=readFileSync(_0x1bf9ab,_0x1e0161(0x10a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x164824)},'sourceFilePath':_0x1bf9ab};}export async function validateAndCanonicalizeMermaid(_0x41abb0){const _0x8f6642=a70_0x31d8,_0x355f7e=_0x41abb0[_0x8f6642(0x110)](/\r\n/g,'\x0a')[_0x8f6642(0x110)](/\r/g,'\x0a')[_0x8f6642(0x110)](/\n+$/,'')+'\x0a';try{const _0xa64fad=await loadMermaidApi();await _0xa64fad[_0x8f6642(0x108)](_0x355f7e);}catch{throw diagramValidationError();}return _0x355f7e;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x307bff=a70_0x31d8;if(!(_0x307bff(0x114)in globalThis)||!(_0x307bff(0x105)in globalThis)){const _0xd15ab2=new JSDOM('');Object[_0x307bff(0x10d)](globalThis,{'window':{'configurable':!![],'value':_0xd15ab2[_0x307bff(0x114)]},'document':{'configurable':!![],'value':_0xd15ab2['window']['document']}});}return(await import('mermaid'))[_0x307bff(0x10f)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x19359a=a70_0x31d8;return CliErrors[_0x19359a(0x107)](_0x19359a(0x104),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -1 +1 @@
1
- const a71_0x129298=a71_0x46a7;(function(_0x19a634,_0x28a379){const _0x247958=a71_0x46a7,_0x795dd6=_0x19a634();while(!![]){try{const _0x293177=parseInt(_0x247958(0x93))/0x1+-parseInt(_0x247958(0x7e))/0x2*(-parseInt(_0x247958(0x6f))/0x3)+-parseInt(_0x247958(0x71))/0x4*(-parseInt(_0x247958(0x77))/0x5)+-parseInt(_0x247958(0x70))/0x6*(-parseInt(_0x247958(0x8a))/0x7)+parseInt(_0x247958(0x7d))/0x8+-parseInt(_0x247958(0x8e))/0x9*(-parseInt(_0x247958(0x8d))/0xa)+-parseInt(_0x247958(0x72))/0xb;if(_0x293177===_0x28a379)break;else _0x795dd6['push'](_0x795dd6['shift']());}catch(_0x2328e0){_0x795dd6['push'](_0x795dd6['shift']());}}}(a71_0x1d7f,0xbc510));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x129298(0x8b),'type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a71_0x129298(0x7a),'type':a71_0x129298(0x82),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a71_0x129298(0x7b),'personal','company']};function a71_0x46a7(_0x54ac08,_0x51b785){_0x54ac08=_0x54ac08-0x6e;const _0x1d7f0f=a71_0x1d7f();let _0x46a740=_0x1d7f0f[_0x54ac08];return _0x46a740;}export const PUSH_SCOPE_FLAG={'name':a71_0x129298(0x7a),'type':a71_0x129298(0x82),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a71_0x129298(0x8f),'enum':[a71_0x129298(0x8f),a71_0x129298(0x88)]};function a71_0x1d7f(){const _0x1e3ecd=['version','boolean','215YhmvgI','confirm-warnings','Local\x20Skill\x20directory\x20containing\x20SKILL.md','scope','all','expected-diagram-revision','11879624AXvHpU','4ASApzJ','type','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','diagram-file','string','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','skill-code','force','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','company','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','763TfWhyC','code','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','30babgyx','1346607jheCoy','personal','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','740972ZEIImT','name','364773VWWWPc','31854JkvroP','98008MDhMeg','41567889hQOItG','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','dir'];a71_0x1d7f=function(){return _0x1e3ecd;};return a71_0x1d7f();}export const LIST_SCOPE_FLAG={'name':a71_0x129298(0x7a),'type':a71_0x129298(0x82),'description':a71_0x129298(0x83),'enum':[a71_0x129298(0x7b),'personal',a71_0x129298(0x88)]};export const LOCAL_FLAG={'name':'local','type':a71_0x129298(0x76),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a71_0x129298(0x74),'type':a71_0x129298(0x82),'required':!![],'description':a71_0x129298(0x79)};export const DIAGRAM_FILE_FLAG={'name':a71_0x129298(0x81),'type':a71_0x129298(0x82),'required':!![],'description':a71_0x129298(0x90)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x129298(0x84),'type':a71_0x129298(0x82),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a71_0x129298(0x75),'type':a71_0x129298(0x82),'required':!![],'description':a71_0x129298(0x89)};export const DIAGRAM_SCOPE_FLAG={'name':'scope','type':a71_0x129298(0x82),'required':!![],'enum':['personal','company'],'description':a71_0x129298(0x8c)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':'string','required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x129298(0x73)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x129298(0x7c),'type':'number','required':!![],'description':a71_0x129298(0x92)};export const CREATE_NAME_FLAG={'name':a71_0x129298(0x6e),'type':'string','required':!![],'description':a71_0x129298(0x87),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x129298(0x91)}};export const TYPE_FLAG={'name':a71_0x129298(0x7f),'type':a71_0x129298(0x82),'description':a71_0x129298(0x86),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a71_0x129298(0x82),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x129298(0x85),'type':a71_0x129298(0x76),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0x129298(0x76),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x129298(0x78),'type':'boolean','description':a71_0x129298(0x80)};export const STRICT_FLAG={'name':'strict','type':a71_0x129298(0x76),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ function a71_0x3ce1(_0x29adea,_0xe5de4c){_0x29adea=_0x29adea-0xa4;const _0x216e57=a71_0x216e();let _0x3ce10a=_0x216e57[_0x29adea];return _0x3ce10a;}const a71_0x4b5de9=a71_0x3ce1;(function(_0x23a4f3,_0x4813a6){const _0x352abd=a71_0x3ce1,_0x5e999f=_0x23a4f3();while(!![]){try{const _0x380e10=parseInt(_0x352abd(0xbe))/0x1*(parseInt(_0x352abd(0xb1))/0x2)+-parseInt(_0x352abd(0xb5))/0x3+parseInt(_0x352abd(0xac))/0x4+parseInt(_0x352abd(0xb9))/0x5+parseInt(_0x352abd(0xc0))/0x6+parseInt(_0x352abd(0xc6))/0x7*(-parseInt(_0x352abd(0xc1))/0x8)+parseInt(_0x352abd(0xc2))/0x9;if(_0x380e10===_0x4813a6)break;else _0x5e999f['push'](_0x5e999f['shift']());}catch(_0x43ede2){_0x5e999f['push'](_0x5e999f['shift']());}}}(a71_0x216e,0xd1381));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xb6),'enum':[a71_0x4b5de9(0xc3),'personal',a71_0x4b5de9(0xb0)]};export const PUSH_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':'personal','enum':[a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LIST_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':'string','description':a71_0x4b5de9(0xb7),'enum':[a71_0x4b5de9(0xc3),a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LOCAL_FLAG={'name':'local','type':a71_0x4b5de9(0xad),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xc4)};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xba)};function a71_0x216e(){const _0xb83ebb=['UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','target','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','294241wwExUK','expected-diagram-revision','181068fEXbFr','11992xCUAOG','138051DqrKIC','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','personal','1855mQFoDm','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','number','force','scope','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','string','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','version','source-fingerprint','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','2444860SWJUjq','boolean','name','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','company','10pYygPG','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','2676045QGMvVU','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','project','91370TPJQQN'];a71_0x216e=function(){return _0xb83ebb;};return a71_0x216e();}export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xbc)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x4b5de9(0xa9),'type':a71_0x4b5de9(0xa7),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'required':!![],'enum':[a71_0x4b5de9(0xc5),'company'],'description':a71_0x4b5de9(0xa8)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x4b5de9(0xaa),'type':'string','required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x4b5de9(0xb4)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x4b5de9(0xbf),'type':a71_0x4b5de9(0xc8),'required':!![],'description':a71_0x4b5de9(0xaf)};export const CREATE_NAME_FLAG={'name':a71_0x4b5de9(0xae),'type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xa6),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x4b5de9(0xb3)}};export const TYPE_FLAG={'name':'type','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xc7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x4b5de9(0xbb),'type':a71_0x4b5de9(0xa7),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x4b5de9(0xc9),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xbd)};export const PROJECT_TARGET_FLAG={'name':a71_0x4b5de9(0xb8),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xa5)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xab)};export const STRICT_FLAG={'name':'strict','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xb2)};
@@ -1 +1 @@
1
- (function(_0x42e494,_0x4991e6){const _0x30858c=a72_0x3cd1,_0x5370ac=_0x42e494();while(!![]){try{const _0x286b4f=-parseInt(_0x30858c(0x18c))/0x1+parseInt(_0x30858c(0x18e))/0x2+-parseInt(_0x30858c(0x18d))/0x3*(-parseInt(_0x30858c(0x189))/0x4)+-parseInt(_0x30858c(0x18b))/0x5+-parseInt(_0x30858c(0x190))/0x6+parseInt(_0x30858c(0x18a))/0x7+parseInt(_0x30858c(0x18f))/0x8;if(_0x286b4f===_0x4991e6)break;else _0x5370ac['push'](_0x5370ac['shift']());}catch(_0x4c7003){_0x5370ac['push'](_0x5370ac['shift']());}}}(a72_0xa31a,0x4b923));function a72_0x3cd1(_0x48df09,_0xe04cc5){_0x48df09=_0x48df09-0x189;const _0xa31a5d=a72_0xa31a();let _0x3cd125=_0xa31a5d[_0x48df09];return _0x3cd125;}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a72_0xa31a(){const _0x41531f=['3zfnEuP','561220SAgKEN','157376OmVFLE','402972HyRftE','183016fttAKa','4162151yYhYDM','323525UXSITL','499223EqXiCr'];a72_0xa31a=function(){return _0x41531f;};return a72_0xa31a();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ function a72_0x5e81(_0x317c0c,_0x15b890){_0x317c0c=_0x317c0c-0x17a;const _0x1f77a7=a72_0x1f77();let _0x5e81f3=_0x1f77a7[_0x317c0c];return _0x5e81f3;}(function(_0x39bc15,_0x11c572){const _0x229ed4=a72_0x5e81,_0x103f3c=_0x39bc15();while(!![]){try{const _0x48c778=parseInt(_0x229ed4(0x17d))/0x1+parseInt(_0x229ed4(0x17f))/0x2+parseInt(_0x229ed4(0x17c))/0x3+parseInt(_0x229ed4(0x180))/0x4+-parseInt(_0x229ed4(0x17a))/0x5+-parseInt(_0x229ed4(0x181))/0x6*(-parseInt(_0x229ed4(0x17e))/0x7)+-parseInt(_0x229ed4(0x182))/0x8*(parseInt(_0x229ed4(0x17b))/0x9);if(_0x48c778===_0x11c572)break;else _0x103f3c['push'](_0x103f3c['shift']());}catch(_0x191471){_0x103f3c['push'](_0x103f3c['shift']());}}}(a72_0x1f77,0xc4d9b));import{createCommand}from'./commands/create.js';function a72_0x1f77(){const _0x2c052b=['3518757QxXlac','1254642xEpBNQ','1449futDLD','956264THSDOw','820524TBIcDc','18594gDnfuB','21534568NkJQeu','1270985uZgAoa','9rHualC'];a72_0x1f77=function(){return _0x2c052b;};return a72_0x1f77();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- function a73_0x3381(_0x2a2d9c,_0x1cadd3){_0x2a2d9c=_0x2a2d9c-0xdd;var _0x8a4c67=a73_0x8a4c();var _0x338151=_0x8a4c67[_0x2a2d9c];return _0x338151;}(function(_0x35af91,_0xe924d3){var _0x1e867b=a73_0x3381,_0x17559b=_0x35af91();while(!![]){try{var _0x1b77a7=parseInt(_0x1e867b(0xec))/0x1+parseInt(_0x1e867b(0xde))/0x2*(parseInt(_0x1e867b(0xe0))/0x3)+parseInt(_0x1e867b(0xe4))/0x4+parseInt(_0x1e867b(0xe3))/0x5*(parseInt(_0x1e867b(0xe9))/0x6)+-parseInt(_0x1e867b(0xe2))/0x7+-parseInt(_0x1e867b(0xe8))/0x8*(-parseInt(_0x1e867b(0xee))/0x9)+-parseInt(_0x1e867b(0xed))/0xa*(parseInt(_0x1e867b(0xe5))/0xb);if(_0x1b77a7===_0xe924d3)break;else _0x17559b['push'](_0x17559b['shift']());}catch(_0xd701bb){_0x17559b['push'](_0x17559b['shift']());}}}(a73_0x8a4c,0x5a6dc));export function isPackageBackedManifest(_0x2ac643){var _0x4cf9c5=a73_0x3381;return!!_0x2ac643&&typeof _0x2ac643==='object'&&!Array[_0x4cf9c5(0xe7)](_0x2ac643)&&typeof _0x2ac643[_0x4cf9c5(0xdf)]==='string'&&_0x2ac643[_0x4cf9c5(0xdf)]['length']>0x0&&Array[_0x4cf9c5(0xe7)](_0x2ac643[_0x4cf9c5(0xe6)]);}function a73_0x8a4c(){var _0x3f24dd=['49288CHVnXm','167502dSOWNN','object','some','67592qUXcCn','2812070oifTqA','36VySxXa','path','2HjKNXv','ossPath','787653XatTWP','SKILL.md','789453lPVSrj','70tfLuaK','75028YBVZUZ','11sroVaN','files','isArray'];a73_0x8a4c=function(){return _0x3f24dd;};return a73_0x8a4c();}export function isMultiFileManifest(_0xaad8f5){var _0x28bacf=a73_0x3381;return!!_0xaad8f5&&typeof _0xaad8f5===_0x28bacf(0xea)&&!Array[_0x28bacf(0xe7)](_0xaad8f5)&&Array[_0x28bacf(0xe7)](_0xaad8f5[_0x28bacf(0xe6)])&&_0xaad8f5[_0x28bacf(0xe6)][_0x28bacf(0xeb)](_0x25c8ae=>_0x25c8ae[_0x28bacf(0xdd)]!==_0x28bacf(0xe1));}
1
+ function a73_0x4a5e(_0xf1c22e,_0x4b093d){_0xf1c22e=_0xf1c22e-0x1e7;var _0x3f029a=a73_0x3f02();var _0x4a5e1c=_0x3f029a[_0xf1c22e];return _0x4a5e1c;}(function(_0x4d3533,_0x1101e6){var _0x4f0785=a73_0x4a5e,_0xc42417=_0x4d3533();while(!![]){try{var _0x529588=parseInt(_0x4f0785(0x1f2))/0x1*(-parseInt(_0x4f0785(0x1ee))/0x2)+parseInt(_0x4f0785(0x1f9))/0x3*(parseInt(_0x4f0785(0x1f4))/0x4)+parseInt(_0x4f0785(0x1e8))/0x5*(parseInt(_0x4f0785(0x1f3))/0x6)+parseInt(_0x4f0785(0x1e7))/0x7*(-parseInt(_0x4f0785(0x1f8))/0x8)+parseInt(_0x4f0785(0x1f7))/0x9*(-parseInt(_0x4f0785(0x1ef))/0xa)+parseInt(_0x4f0785(0x1f0))/0xb*(parseInt(_0x4f0785(0x1ec))/0xc)+parseInt(_0x4f0785(0x1ea))/0xd*(parseInt(_0x4f0785(0x1fb))/0xe);if(_0x529588===_0x1101e6)break;else _0xc42417['push'](_0xc42417['shift']());}catch(_0x5b6a1a){_0xc42417['push'](_0xc42417['shift']());}}}(a73_0x3f02,0xc9478));function a73_0x3f02(){var _0x2910e8=['29236LFkPfr','some','files','10041354vHNYoZ','10258904HzCnmL','183JpIObS','string','14YUEBEl','ossPath','7HUxatq','1431895vNUlDi','path','25140713BsxbBi','length','60xkbzHJ','object','2ZRFFCg','10LpYRXa','2425687RIHMfV','isArray','546205CfmhIo','6rHwyJl'];a73_0x3f02=function(){return _0x2910e8;};return a73_0x3f02();}export function isPackageBackedManifest(_0x342371){var _0x33fcc2=a73_0x4a5e;return!!_0x342371&&typeof _0x342371===_0x33fcc2(0x1ed)&&!Array[_0x33fcc2(0x1f1)](_0x342371)&&typeof _0x342371[_0x33fcc2(0x1fc)]===_0x33fcc2(0x1fa)&&_0x342371['ossPath'][_0x33fcc2(0x1eb)]>0x0&&Array[_0x33fcc2(0x1f1)](_0x342371[_0x33fcc2(0x1f6)]);}export function isMultiFileManifest(_0x5e5928){var _0x47e939=a73_0x4a5e;return!!_0x5e5928&&typeof _0x5e5928==='object'&&!Array[_0x47e939(0x1f1)](_0x5e5928)&&Array[_0x47e939(0x1f1)](_0x5e5928[_0x47e939(0x1f6)])&&_0x5e5928[_0x47e939(0x1f6)][_0x47e939(0x1f5)](_0x25a29e=>_0x25a29e[_0x47e939(0x1e9)]!=='SKILL.md');}
@@ -1 +1 @@
1
- (function(_0x4b05a9,_0x3e22c7){const _0x599658=a74_0x4afb,_0x20b62e=_0x4b05a9();while(!![]){try{const _0x1628be=-parseInt(_0x599658(0x114))/0x1+-parseInt(_0x599658(0x12e))/0x2+parseInt(_0x599658(0xfc))/0x3*(-parseInt(_0x599658(0x121))/0x4)+-parseInt(_0x599658(0x125))/0x5*(parseInt(_0x599658(0x10e))/0x6)+parseInt(_0x599658(0x123))/0x7+-parseInt(_0x599658(0xfd))/0x8*(-parseInt(_0x599658(0x10f))/0x9)+parseInt(_0x599658(0x107))/0xa*(parseInt(_0x599658(0x110))/0xb);if(_0x1628be===_0x3e22c7)break;else _0x20b62e['push'](_0x20b62e['shift']());}catch(_0x36ec4f){_0x20b62e['push'](_0x20b62e['shift']());}}}(a74_0x18de,0xc7ac0));function a74_0x4afb(_0x32c8ef,_0x42acb8){_0x32c8ef=_0x32c8ef-0xf7;const _0x18def7=a74_0x18de();let _0x4afb04=_0x18def7[_0x32c8ef];return _0x4afb04;}import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';function a74_0x18de(){const _0x22216c=['personal','8342425daJaJD','appcode','3290ABpgKq','input','diagram-file','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','\x20has\x20scope=\x22','identical','NAMESPACE_ONLY','appCode','2634398BsmMlD','savedSkill','confirm-warnings','\x20for\x20review','frontmatterDisplayName','unknown','validation','metadata','valid','resolvedSlug','submitted','56082RfwdhE','1843768cRSjAn','POST','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','../../skills/runtime-skill-sync.js','skillCode','resolvedVersion','remoteForPreflight','Personal','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','dir','39674170hEDebt','accessKey','/publish/validate','files','str','bool','PRIVATE','10722ucKxTF','9xorRwB','11imyETs','existing','scope','publishInput','1031898cJHuxI','company','confirmWarnings','authRequired','../../core/api-client.js','errors','\x20Skill\x20','payload','(unknown)','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','diagramValidated','Submitted\x20company\x20Skill\x20','warnings','224isfhTE'];a74_0x18de=function(){return _0x22216c;};return a74_0x18de();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4933a6){const _0x2e63af=a74_0x4afb,{getRuntimeSkillByCode:_0x276511,validateRuntimeSkillPublish:_0x2ae58b}=await import(_0x2e63af(0x118)),{readPushDirectory:_0x4400e3,resolvePushDirectoryIdentity:_0x228c35}=await import(_0x2e63af(0x100));if(!_0x4933a6[_0x2e63af(0x108)])throw CliErrors[_0x2e63af(0x117)]();const _0x19ca4e=resolvePushScope(_0x4933a6),_0x5356e9=validateSkillDirectory(_0x4933a6[_0x2e63af(0x10b)](_0x2e63af(0x106)));throwIfSkillValidationFailed(_0x5356e9);const {diagram:_0xf6cf08,sourceFilePath:_0x2a2371}=await readRequiredSkillDiagramInput(_0x4933a6[_0x2e63af(0x10b)](_0x2e63af(0x127))),_0x5786de=diagramPackageExclusion(_0x2a2371),_0x22c968=_0x228c35(_0x5356e9[_0x2e63af(0x106)],_0x4933a6[_0x2e63af(0x12d)],remoteFirstMetadataOptions()),_0x2e1f20=await _0x276511(_0x4933a6[_0x2e63af(0x12d)],_0x22c968['skillCode']);throwIfBuiltinPushTarget(_0x2e1f20);if(_0x19ca4e===_0x2e63af(0x115)){const _0x1abe5a=_0x4400e3(_0x5356e9['dir'],_0x4933a6['appCode'],{...remoteMissingCompanyReadOptions(),..._0x5786de}),_0x3dacf3=await _0x2ae58b(_0x4933a6['appCode'],withDiagram(_0x1abe5a[_0x2e63af(0x126)],_0xf6cf08),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x2e63af(0xfe),'url':_0x2e63af(0x129)+_0x4933a6[_0x2e63af(0x12d)]+_0x2e63af(0x109),'body':{'skillCode':_0x1abe5a[_0x2e63af(0x101)],'visibility':_0x2e63af(0x12c),'valid':_0x3dacf3[_0x2e63af(0xf9)],'errors':_0x3dacf3['errors'],'warnings':_0x3dacf3[_0x2e63af(0x120)],'resolvedSlug':_0x3dacf3['resolvedSlug'],'resolvedVersion':_0x3dacf3[_0x2e63af(0x102)],'diagramValidated':_0x3dacf3[_0x2e63af(0x11e)]},'description':_0x2e63af(0xff)};}if(_0x2e1f20&&_0x2e1f20[_0x2e63af(0x112)]!==_0x2e63af(0x122))throw CliErrors[_0x2e63af(0xf7)](_0x2e63af(0x11d)+_0x22c968[_0x2e63af(0x101)]+'\x20has\x20scope=\x22'+(_0x2e1f20[_0x2e63af(0x112)]??_0x2e63af(0x133))+'\x22.');const _0xea0d72=_0x4400e3(_0x5356e9[_0x2e63af(0x106)],_0x4933a6[_0x2e63af(0x12d)],{..._0x2e1f20?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5786de}),_0x4a5406=await _0x2ae58b(_0x4933a6[_0x2e63af(0x12d)],withDiagram(_0xea0d72[_0x2e63af(0x126)],_0xf6cf08),{'visibility':'PRIVATE'});return{'method':_0x2e63af(0xfe),'url':'/api/cli/v1/skills/'+_0x4933a6[_0x2e63af(0x12d)]+_0x2e63af(0x109),'body':{'skillCode':_0xea0d72[_0x2e63af(0x101)],'visibility':_0x2e63af(0x10d),'valid':_0x4a5406[_0x2e63af(0xf9)],'errors':_0x4a5406[_0x2e63af(0x119)],'warnings':_0x4a5406['warnings'],'resolvedSlug':_0x4a5406[_0x2e63af(0xfa)],'resolvedVersion':_0x4a5406[_0x2e63af(0x102)],'diagramValidated':_0x4a5406[_0x2e63af(0x11e)]},'description':_0x2e63af(0x105)};}export async function skillPushExecute(_0x29289a){const _0x882a02=a74_0x4afb,{createPersonalRuntimeSkill:_0x53aefb,downloadRuntimeSkillPackage:_0xb574c0,getRuntimeSkillByCode:_0x46d25a,publishCompanyRuntimeSkill:_0x478585,updatePersonalRuntimeSkill:_0x2d9c5b,validateRuntimeSkillPublish:_0x3fa8cc}=await import(_0x882a02(0x118)),{verifyRuntimeSkillPackage:_0x2e7b49,verifyRuntimeSkillBundle:_0x21ef6e,readPushDirectory:_0xfbab97,refreshPushDirectoryMetadataFromRemote:_0x30410f,recordPushedRuntimeSkill:_0x12d6b5,resolvePushDirectoryIdentity:_0x11f482}=await import(_0x882a02(0x100));if(!_0x29289a[_0x882a02(0x108)])throw CliErrors[_0x882a02(0x117)]();const _0x10ddae=resolvePushScope(_0x29289a),_0x3ec934=_0x29289a[_0x882a02(0x10c)](_0x882a02(0x130))||_0x29289a[_0x882a02(0x10c)](_0x882a02(0x116)),_0x1f1c85=validateSkillDirectory(_0x29289a[_0x882a02(0x10b)](_0x882a02(0x106)));throwIfSkillValidationFailed(_0x1f1c85);const {diagram:_0x451851,sourceFilePath:_0x3f1649}=await readRequiredSkillDiagramInput(_0x29289a[_0x882a02(0x10b)](_0x882a02(0x127))),_0x4a6749=diagramPackageExclusion(_0x3f1649),_0x4dec83=_0x1f1c85[_0x882a02(0x106)];let _0x53a06d;if(_0x10ddae===_0x882a02(0x115)){const _0x1eb25f=_0x11f482(_0x4dec83,_0x29289a[_0x882a02(0x12d)],remoteFirstMetadataOptions()),_0x1e23af=await _0x46d25a(_0x29289a[_0x882a02(0x12d)],_0x1eb25f[_0x882a02(0x101)]);throwIfBuiltinPushTarget(_0x1e23af);if(_0x1e23af)_0x30410f(_0x4dec83,_0x1e23af,_0x29289a[_0x882a02(0x12d)]);const _0x3ab3fe=_0xfbab97(_0x4dec83,_0x29289a[_0x882a02(0x12d)],{..._0x1e23af?{'targetScope':_0x882a02(0x115),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x4a6749});_0x53a06d={'scope':_0x882a02(0x115),'payload':_0x3ab3fe,'publishInput':withDiagram(_0x3ab3fe['input'],_0x451851),'remoteForPreflight':_0x1e23af,'warnings':[]};}else{const _0x2bea34=_0x29289a[_0x882a02(0x10b)](_0x882a02(0x124))['trim'](),_0x5b9541=Boolean(_0x2bea34),_0x369849=allowRetargetArgs(_0x5b9541),_0x5a38a7=_0x11f482(_0x4dec83,_0x29289a[_0x882a02(0x12d)],{...remoteFirstMetadataOptions(),..._0x369849[0x0]}),_0x4669b2=await _0x46d25a(_0x29289a[_0x882a02(0x12d)],_0x5a38a7['skillCode']);throwIfBuiltinPushTarget(_0x4669b2);if(_0x4669b2){if(_0x4669b2[_0x882a02(0x112)]!==_0x882a02(0x122)){if(_0x5b9541)throw CliErrors['validation'](_0x882a02(0x11d)+_0x5a38a7[_0x882a02(0x101)]+_0x882a02(0x12a)+(_0x4669b2['scope']??_0x882a02(0x133))+'\x22.');_0x30410f(_0x4dec83,_0x4669b2,_0x29289a[_0x882a02(0x12d)]);}else!_0x5b9541&&_0x30410f(_0x4dec83,_0x4669b2,_0x29289a[_0x882a02(0x12d)]);}const _0x25a550=_0xfbab97(_0x4dec83,_0x29289a['appCode'],{..._0x4669b2?remotePersonalReadOptions(_0x5b9541,_0x369849[0x0]):remoteMissingPersonalReadOptions(_0x369849[0x0]),..._0x4a6749}),_0x3e8df8=_0x4669b2?.[_0x882a02(0x112)]==='personal'&&_0x4669b2['skillCode']===_0x25a550[_0x882a02(0x101)]?_0x4669b2:undefined,_0x130217=_0x5b9541&&_0x3e8df8?withRetargetExistingMetadata(_0x25a550['input'],_0x3e8df8,{'preferInputSkillName':Boolean(_0x25a550[_0x882a02(0x132)])}):_0x25a550[_0x882a02(0x126)],_0x2d208b=_0x5b9541?buildRetargetWarning(_0x5a38a7[_0x882a02(0xf8)],_0x29289a['appCode']):[];_0x53a06d={'scope':'personal','payload':_0x25a550,'publishInput':withDiagram(_0x130217,_0x451851),'remoteForPreflight':_0x3e8df8,'existing':_0x3e8df8,'warnings':[..._0x1f1c85[_0x882a02(0x120)],..._0x2d208b]};}const _0x438f38=await runRemoteContentPreflight({'scope':_0x53a06d[_0x882a02(0x112)],'remote':_0x53a06d[_0x882a02(0x103)],'publishInput':_0x53a06d[_0x882a02(0x113)],'skillCode':_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],'appCode':_0x29289a['appCode'],'downloadRuntimeSkillPackage':_0xb574c0,'verifyRuntimeSkillBundle':_0x21ef6e});if(_0x438f38['status']===_0x882a02(0x12b))return _0x53a06d[_0x882a02(0x112)]===_0x882a02(0x115)?_0x12d6b5(_0x4dec83,_0x438f38[_0x882a02(0x12f)],_0x29289a[_0x882a02(0x12d)],{'scope':'company'}):_0x12d6b5(_0x4dec83,_0x438f38[_0x882a02(0x12f)],_0x29289a[_0x882a02(0x12d)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x438f38['savedSkill']),'scope':_0x53a06d[_0x882a02(0x112)],..._0x53a06d[_0x882a02(0x112)]===_0x882a02(0x122)?{'warnings':_0x53a06d[_0x882a02(0x120)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x53a06d[_0x882a02(0x112)])+_0x882a02(0x11a)+_0x53a06d['payload'][_0x882a02(0x101)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x53a06d[_0x882a02(0x112)]===_0x882a02(0x115)){const _0x49b68b=await _0x3fa8cc(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'visibility':_0x882a02(0x12c)});throwIfPublishValidationFailed(_0x882a02(0x115),_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x49b68b),throwIfUnconfirmedPublishWarnings(_0x882a02(0x115),_0x53a06d['payload'][_0x882a02(0x101)],_0x49b68b[_0x882a02(0x120)],_0x3ec934);const _0x39f7dc=await _0x478585(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'confirmWarnings':_0x3ec934});return _0x12d6b5(_0x4dec83,{..._0x39f7dc,'files':_0x53a06d[_0x882a02(0x113)][_0x882a02(0x10a)]},_0x29289a[_0x882a02(0x12d)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x39f7dc),'scope':_0x882a02(0x115),'reviewState':_0x882a02(0xfb),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x49b68b['warnings']}},'message':_0x882a02(0x11f)+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]+'\x20version\x20'+(_0x39f7dc['version']??_0x882a02(0x11c))+_0x882a02(0x131)};}const _0x5c4c26=await _0x3fa8cc(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'visibility':_0x882a02(0x10d)});throwIfPublishValidationFailed(_0x882a02(0x122),_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x5c4c26),throwIfUnconfirmedPublishWarnings('personal',_0x53a06d['payload'][_0x882a02(0x101)],_0x5c4c26['warnings'],_0x3ec934);const _0x2ba874={'confirmWarnings':_0x3ec934},_0x45029d=_0x53a06d[_0x882a02(0x111)]?await _0x2d9c5b(_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],_0x2ba874):await _0x53aefb(_0x29289a[_0x882a02(0x12d)],_0x53a06d['publishInput'],_0x2ba874);let _0x50cc16=_0x45029d;if(isMultiFileManifest(_0x53a06d[_0x882a02(0x113)]['files'])){const _0xee1d4f=await _0xb574c0('personal',_0x45029d[_0x882a02(0x101)]||_0x53a06d[_0x882a02(0x11b)]['skillCode'],_0x29289a['appCode']);_0x21ef6e(_0x53a06d[_0x882a02(0x113)]['files'],_0xee1d4f),_0x50cc16={..._0x45029d,'files':_0x53a06d[_0x882a02(0x113)]['files']};}else{if(isPackageBackedManifest(_0x45029d['files'])){const _0x27d576=await _0xb574c0(_0x882a02(0x122),_0x45029d[_0x882a02(0x101)]||_0x53a06d[_0x882a02(0x11b)]['skillCode'],_0x29289a[_0x882a02(0x12d)]);_0x2e7b49(_0x45029d[_0x882a02(0x10a)],_0x27d576);}}return _0x12d6b5(_0x4dec83,_0x50cc16,_0x29289a[_0x882a02(0x12d)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x45029d),'warnings':_0x53a06d[_0x882a02(0x120)],'validation':{'warnings':_0x5c4c26['warnings']},'diagramBound':!![]},'message':_0x53a06d['existing']?_0x882a02(0x128)+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]:'Created\x20personal\x20Skill\x20'+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]};}function scopeLabel(_0x5512b6){const _0x203bca=a74_0x4afb;return _0x5512b6==='company'?'Company':_0x203bca(0x104);}function withDiagram(_0x40cb07,_0x235302){return{..._0x40cb07,'diagram':_0x235302};}function diagramPackageExclusion(_0x305dff){return _0x305dff?{'excludedFilePaths':[_0x305dff]}:{};}
1
+ function a74_0xf1f9(_0x143856,_0x5b90af){_0x143856=_0x143856-0x16c;const _0x25328f=a74_0x2532();let _0xf1f9be=_0x25328f[_0x143856];return _0xf1f9be;}(function(_0xc96495,_0x32adb0){const _0x192867=a74_0xf1f9,_0xfd8c13=_0xc96495();while(!![]){try{const _0x49cb4c=parseInt(_0x192867(0x16e))/0x1+parseInt(_0x192867(0x1a2))/0x2*(parseInt(_0x192867(0x195))/0x3)+-parseInt(_0x192867(0x18b))/0x4+-parseInt(_0x192867(0x184))/0x5+parseInt(_0x192867(0x18c))/0x6+-parseInt(_0x192867(0x19f))/0x7+parseInt(_0x192867(0x17d))/0x8;if(_0x49cb4c===_0x32adb0)break;else _0xfd8c13['push'](_0xfd8c13['shift']());}catch(_0x5b5b01){_0xfd8c13['push'](_0xfd8c13['shift']());}}}(a74_0x2532,0x63000));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(_0x1b6f5a){const _0x2ec4a7=a74_0xf1f9,{getRuntimeSkillByCode:_0x51bf93,validateRuntimeSkillPublish:_0x333080}=await import(_0x2ec4a7(0x19a)),{readPushDirectory:_0x49ea5c,resolvePushDirectoryIdentity:_0x3b6142}=await import(_0x2ec4a7(0x182));if(!_0x1b6f5a[_0x2ec4a7(0x1a0)])throw CliErrors[_0x2ec4a7(0x175)]();const _0x25da1c=resolvePushScope(_0x1b6f5a),_0x4c46c3=validateSkillDirectory(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x177)));throwIfSkillValidationFailed(_0x4c46c3);const {diagram:_0x1b36c7,sourceFilePath:_0x112804}=await readRequiredSkillDiagramInput(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x1a4))),_0x4d6b62=diagramPackageExclusion(_0x112804),_0x2a3b9d=_0x3b6142(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],remoteFirstMetadataOptions()),_0x43d0f2=await _0x51bf93(_0x1b6f5a[_0x2ec4a7(0x179)],_0x2a3b9d['skillCode']);throwIfBuiltinPushTarget(_0x43d0f2);if(_0x25da1c===_0x2ec4a7(0x17b)){const _0x111678=_0x49ea5c(_0x4c46c3['dir'],_0x1b6f5a[_0x2ec4a7(0x179)],{...remoteMissingCompanyReadOptions(),..._0x4d6b62}),_0x4e8047=await _0x333080(_0x1b6f5a['appCode'],withDiagram(_0x111678[_0x2ec4a7(0x197)],_0x1b36c7),{'visibility':_0x2ec4a7(0x1a5)});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x111678['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x4e8047['valid'],'errors':_0x4e8047[_0x2ec4a7(0x19c)],'warnings':_0x4e8047['warnings'],'resolvedSlug':_0x4e8047[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x4e8047[_0x2ec4a7(0x18d)],'diagramValidated':_0x4e8047['diagramValidated']},'description':_0x2ec4a7(0x174)};}if(_0x43d0f2&&_0x43d0f2[_0x2ec4a7(0x190)]!==_0x2ec4a7(0x173))throw CliErrors[_0x2ec4a7(0x181)](_0x2ec4a7(0x187)+_0x2a3b9d[_0x2ec4a7(0x17c)]+'\x20has\x20scope=\x22'+(_0x43d0f2[_0x2ec4a7(0x190)]??_0x2ec4a7(0x172))+'\x22.');const _0x7e83ee=_0x49ea5c(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],{..._0x43d0f2?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x4d6b62}),_0x46bd74=await _0x333080(_0x1b6f5a[_0x2ec4a7(0x179)],withDiagram(_0x7e83ee['input'],_0x1b36c7),{'visibility':'PRIVATE'});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x7e83ee[_0x2ec4a7(0x17c)],'visibility':_0x2ec4a7(0x170),'valid':_0x46bd74['valid'],'errors':_0x46bd74[_0x2ec4a7(0x19c)],'warnings':_0x46bd74[_0x2ec4a7(0x18e)],'resolvedSlug':_0x46bd74[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x46bd74[_0x2ec4a7(0x18d)],'diagramValidated':_0x46bd74[_0x2ec4a7(0x16f)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}function a74_0x2532(){const _0xc13656=['4696IYJdGH','resolvedSlug','diagram-file','NAMESPACE_ONLY','files','submitted','478293jZFmjP','diagramValidated','PRIVATE','bool','unknown','personal','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','authRequired','identical','dir','Updated\x20personal\x20Skill\x20','appCode','confirmWarnings','company','skillCode','9228360lgBqQv','\x20has\x20scope=\x22','savedSkill','publishInput','validation','../../skills/runtime-skill-sync.js','payload','2866545ITULas','Company','/api/cli/v1/skills/','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','/publish/validate','Personal','POST','456888qCQBfW','223656dHSkWl','resolvedVersion','warnings','version','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','existing','remoteForPreflight','\x20for\x20review','3oCpRcH','metadata','input','(unknown)','Created\x20personal\x20Skill\x20','../../core/api-client.js','\x20Skill\x20','errors','str','frontmatterDisplayName','4048989AYEiwZ','accessKey','Submitted\x20company\x20Skill\x20'];a74_0x2532=function(){return _0xc13656;};return a74_0x2532();}export async function skillPushExecute(_0x499b37){const _0x45a33b=a74_0xf1f9,{createPersonalRuntimeSkill:_0x4f05f4,downloadRuntimeSkillPackage:_0xe21f33,getRuntimeSkillByCode:_0x59fb03,publishCompanyRuntimeSkill:_0x49ef23,updatePersonalRuntimeSkill:_0x3a28a8,validateRuntimeSkillPublish:_0x320506}=await import(_0x45a33b(0x19a)),{verifyRuntimeSkillPackage:_0x1bcbbe,verifyRuntimeSkillBundle:_0x318192,readPushDirectory:_0x2aba1b,refreshPushDirectoryMetadataFromRemote:_0x3d5a7f,recordPushedRuntimeSkill:_0x2e2b3f,resolvePushDirectoryIdentity:_0x5a907f}=await import(_0x45a33b(0x182));if(!_0x499b37[_0x45a33b(0x1a0)])throw CliErrors[_0x45a33b(0x175)]();const _0x38982b=resolvePushScope(_0x499b37),_0x29fdc9=_0x499b37[_0x45a33b(0x171)]('confirm-warnings')||_0x499b37['bool'](_0x45a33b(0x17a)),_0x7ca153=validateSkillDirectory(_0x499b37[_0x45a33b(0x19d)](_0x45a33b(0x177)));throwIfSkillValidationFailed(_0x7ca153);const {diagram:_0x4dc5d1,sourceFilePath:_0x2ab100}=await readRequiredSkillDiagramInput(_0x499b37['str']('diagram-file')),_0x1a0932=diagramPackageExclusion(_0x2ab100),_0x429fcb=_0x7ca153[_0x45a33b(0x177)];let _0x37ffdf;if(_0x38982b==='company'){const _0x49d62d=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],remoteFirstMetadataOptions()),_0x24aea2=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x49d62d[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x24aea2);if(_0x24aea2)_0x3d5a7f(_0x429fcb,_0x24aea2,_0x499b37[_0x45a33b(0x179)]);const _0x267a3b=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x24aea2?{'targetScope':_0x45a33b(0x17b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1a0932});_0x37ffdf={'scope':'company','payload':_0x267a3b,'publishInput':withDiagram(_0x267a3b[_0x45a33b(0x197)],_0x4dc5d1),'remoteForPreflight':_0x24aea2,'warnings':[]};}else{const _0x4b0b56=_0x499b37['str']('appcode')['trim'](),_0x2f3958=Boolean(_0x4b0b56),_0x26fe03=allowRetargetArgs(_0x2f3958),_0x7e882e=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{...remoteFirstMetadataOptions(),..._0x26fe03[0x0]}),_0x42baf7=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x7e882e[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x42baf7);if(_0x42baf7){if(_0x42baf7[_0x45a33b(0x190)]!==_0x45a33b(0x173)){if(_0x2f3958)throw CliErrors['validation'](_0x45a33b(0x187)+_0x7e882e[_0x45a33b(0x17c)]+_0x45a33b(0x17e)+(_0x42baf7[_0x45a33b(0x190)]??_0x45a33b(0x172))+'\x22.');_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}else!_0x2f3958&&_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}const _0x4d666c=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x42baf7?remotePersonalReadOptions(_0x2f3958,_0x26fe03[0x0]):remoteMissingPersonalReadOptions(_0x26fe03[0x0]),..._0x1a0932}),_0x323abd=_0x42baf7?.[_0x45a33b(0x190)]===_0x45a33b(0x173)&&_0x42baf7[_0x45a33b(0x17c)]===_0x4d666c['skillCode']?_0x42baf7:undefined,_0x52b663=_0x2f3958&&_0x323abd?withRetargetExistingMetadata(_0x4d666c[_0x45a33b(0x197)],_0x323abd,{'preferInputSkillName':Boolean(_0x4d666c[_0x45a33b(0x19e)])}):_0x4d666c['input'],_0x3f4aa0=_0x2f3958?buildRetargetWarning(_0x7e882e[_0x45a33b(0x196)],_0x499b37['appCode']):[];_0x37ffdf={'scope':_0x45a33b(0x173),'payload':_0x4d666c,'publishInput':withDiagram(_0x52b663,_0x4dc5d1),'remoteForPreflight':_0x323abd,'existing':_0x323abd,'warnings':[..._0x7ca153[_0x45a33b(0x18e)],..._0x3f4aa0]};}const _0x286a79=await runRemoteContentPreflight({'scope':_0x37ffdf[_0x45a33b(0x190)],'remote':_0x37ffdf[_0x45a33b(0x193)],'publishInput':_0x37ffdf['publishInput'],'skillCode':_0x37ffdf['payload'][_0x45a33b(0x17c)],'appCode':_0x499b37[_0x45a33b(0x179)],'downloadRuntimeSkillPackage':_0xe21f33,'verifyRuntimeSkillBundle':_0x318192});if(_0x286a79['status']===_0x45a33b(0x176))return _0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)?_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}):_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x286a79[_0x45a33b(0x17f)]),'scope':_0x37ffdf[_0x45a33b(0x190)],..._0x37ffdf['scope']===_0x45a33b(0x173)?{'warnings':_0x37ffdf[_0x45a33b(0x18e)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x37ffdf['scope'])+_0x45a33b(0x19b)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+_0x45a33b(0x191)};if(_0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)){const _0x8180da=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x1a5)});throwIfPublishValidationFailed(_0x45a33b(0x17b),_0x37ffdf['payload']['skillCode'],_0x8180da),throwIfUnconfirmedPublishWarnings('company',_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x8180da[_0x45a33b(0x18e)],_0x29fdc9);const _0x18c828=await _0x49ef23(_0x499b37['appCode'],_0x37ffdf['publishInput'],{'confirmWarnings':_0x29fdc9});return _0x2e2b3f(_0x429fcb,{..._0x18c828,'files':_0x37ffdf['publishInput'][_0x45a33b(0x16c)]},_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x18c828),'scope':_0x45a33b(0x17b),'reviewState':_0x45a33b(0x16d),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x8180da[_0x45a33b(0x18e)]}},'message':_0x45a33b(0x1a1)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+'\x20version\x20'+(_0x18c828[_0x45a33b(0x18f)]??_0x45a33b(0x198))+_0x45a33b(0x194)};}const _0x4eec2f=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x170)});throwIfPublishValidationFailed(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)]['skillCode'],_0x4eec2f),throwIfUnconfirmedPublishWarnings(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x4eec2f[_0x45a33b(0x18e)],_0x29fdc9);const _0x5a241d={'confirmWarnings':_0x29fdc9},_0x34027e=_0x37ffdf[_0x45a33b(0x192)]?await _0x3a28a8(_0x37ffdf['payload'][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d):await _0x4f05f4(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d);let _0x582faa=_0x34027e;if(isMultiFileManifest(_0x37ffdf['publishInput'][_0x45a33b(0x16c)])){const _0xb7dc13=await _0xe21f33('personal',_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x318192(_0x37ffdf[_0x45a33b(0x180)][_0x45a33b(0x16c)],_0xb7dc13),_0x582faa={..._0x34027e,'files':_0x37ffdf['publishInput']['files']};}else{if(isPackageBackedManifest(_0x34027e[_0x45a33b(0x16c)])){const _0x1cd66e=await _0xe21f33(_0x45a33b(0x173),_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x1bcbbe(_0x34027e['files'],_0x1cd66e);}}return _0x2e2b3f(_0x429fcb,_0x582faa,_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x34027e),'warnings':_0x37ffdf[_0x45a33b(0x18e)],'validation':{'warnings':_0x4eec2f[_0x45a33b(0x18e)]},'diagramBound':!![]},'message':_0x37ffdf[_0x45a33b(0x192)]?_0x45a33b(0x178)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]:_0x45a33b(0x199)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]};}function scopeLabel(_0x3a658d){const _0x26a672=a74_0xf1f9;return _0x3a658d===_0x26a672(0x17b)?_0x26a672(0x185):_0x26a672(0x189);}function withDiagram(_0x56f133,_0x2f432b){return{..._0x56f133,'diagram':_0x2f432b};}function diagramPackageExclusion(_0x493334){return _0x493334?{'excludedFilePaths':[_0x493334]}:{};}
@@ -1 +1 @@
1
- (function(_0x5d81f6,_0x1fd4de){const _0x464e3a=a75_0x51ac,_0x3b167f=_0x5d81f6();while(!![]){try{const _0x5573ec=parseInt(_0x464e3a(0x1ec))/0x1*(-parseInt(_0x464e3a(0x1f2))/0x2)+-parseInt(_0x464e3a(0x1ed))/0x3*(-parseInt(_0x464e3a(0x1f7))/0x4)+-parseInt(_0x464e3a(0x1f4))/0x5+-parseInt(_0x464e3a(0x1e8))/0x6+parseInt(_0x464e3a(0x1dd))/0x7*(-parseInt(_0x464e3a(0x1d6))/0x8)+-parseInt(_0x464e3a(0x1dc))/0x9+-parseInt(_0x464e3a(0x1de))/0xa*(-parseInt(_0x464e3a(0x1fc))/0xb);if(_0x5573ec===_0x1fd4de)break;else _0x3b167f['push'](_0x3b167f['shift']());}catch(_0x193a90){_0x3b167f['push'](_0x3b167f['shift']());}}}(a75_0x2e3d,0xde38e));function a75_0x2e3d(){const _0x3db0c4=['skill-metadata-appcode-retargeted','\x20Skill\x20push\x20validation\x20failed\x20for\x20','1SvQzbb','27lKYPBk','validation','errors','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','different','3487006xZVMxv','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','3597560ZbLcHl','appCode','Local\x20Skill\x20metadata\x20appCode\x20','717636pLQkul','builtin','publishInput','warning','lovrabet.skill.json','76773389tNDUFe','company','str','Personal','remote','valid','scope','length','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','files','8BLNYqs','personal','Company','skillCode','SkillHub\x20validation\x20returned\x20invalid.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','15715116Wayvnc','12604991RzuqUY','10xzSMrS','join','Review\x20each\x20warning\x20before\x20continuing.','\x20cannot\x20be\x20pushed.','downloadRuntimeSkillPackage','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','(unknown)','identical','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','not-applicable','10044036cNPbiS','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'];a75_0x2e3d=function(){return _0x3db0c4;};return a75_0x2e3d();}import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x2e29fb){const _0xc995d3=a75_0x51ac,_0x17229e=_0x2e29fb[_0xc995d3(0x1fe)](_0xc995d3(0x202))||_0xc995d3(0x1d7);if(_0x17229e===_0xc995d3(0x1d7)||_0x17229e==='company')return _0x17229e;throw CliErrors[_0xc995d3(0x1ee)](_0xc995d3(0x1db)+_0x17229e+'\x22.');}export function allowRetargetArgs(_0xea9f61){return _0xea9f61?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a75_0x51ac(_0x29a9d0,_0x57c97c){_0x29a9d0=_0x29a9d0-0x1d5;const _0x2e3da0=a75_0x2e3d();let _0x51ac4a=_0x2e3da0[_0x29a9d0];return _0x51ac4a;}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0xe1fd51=a75_0x51ac;return{'targetScope':_0xe1fd51(0x1fd),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4cff40={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4cff40};}export function remotePersonalReadOptions(_0x189c60,_0x64b8e2={}){return{'ignoreInvalidMetadata':!![],..._0x189c60?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x64b8e2};}export function throwIfBuiltinPushTarget(_0x5b1874){const _0x11a51d=a75_0x51ac;if(_0x5b1874?.['scope']!==_0x11a51d(0x1f8))return;throw CliErrors[_0x11a51d(0x1ee)]('Builtin\x20Skill\x20'+(_0x5b1874[_0x11a51d(0x1d9)]??_0x11a51d(0x1e4))+_0x11a51d(0x1e1),_0x11a51d(0x1e3));}export function throwIfPublishValidationFailed(_0x3a3083,_0x57c5bd,_0x570a9c){const _0x23b05d=a75_0x51ac;if(_0x570a9c['errors'][_0x23b05d(0x203)]===0x0&&(_0x570a9c[_0x23b05d(0x201)]||_0x570a9c['warnings'][_0x23b05d(0x203)]>0x0))return;const _0x218f34=_0x570a9c[_0x23b05d(0x1ef)][_0x23b05d(0x203)]>0x0?_0x570a9c[_0x23b05d(0x1ef)][_0x23b05d(0x1df)](';\x20'):_0x23b05d(0x1da),_0x4e67c2=_0x3a3083===_0x23b05d(0x1fd)?'Company':_0x23b05d(0x1ff);throw CliErrors[_0x23b05d(0x1ee)](_0x4e67c2+_0x23b05d(0x1eb)+_0x57c5bd+'.',_0x218f34);}export function throwIfUnconfirmedPublishWarnings(_0x2e8a3e,_0xfc5424,_0x46c159,_0x42e4db){const _0x63bf53=a75_0x51ac;if(_0x46c159[_0x63bf53(0x203)]===0x0||_0x42e4db)return;const _0x2bf5b7=_0x2e8a3e==='company'?_0x63bf53(0x1d8):_0x63bf53(0x1ff);throw CliErrors[_0x63bf53(0x1ee)](_0x2bf5b7+_0x63bf53(0x1e9)+_0xfc5424+'.',[_0x63bf53(0x1e0),_0x63bf53(0x1e6),_0x63bf53(0x1f0),'Warnings:\x20'+_0x46c159[_0x63bf53(0x1df)](';\x20')][_0x63bf53(0x1df)]('\x20'));}export function buildRetargetWarning(_0x1f7362,_0x2a07f1){const _0x4fdb54=a75_0x51ac;if(!_0x1f7362?.['appCode']||_0x1f7362['appCode']===_0x2a07f1)return[];return[{'level':_0x4fdb54(0x1fa),'ruleId':_0x4fdb54(0x1ea),'file':_0x4fdb54(0x1fb),'message':_0x4fdb54(0x1f6)+_0x1f7362[_0x4fdb54(0x1f5)]+_0x4fdb54(0x204)+_0x2a07f1+'\x20after\x20successful\x20push.','suggestion':_0x4fdb54(0x1f3)}];}export async function runRemoteContentPreflight(_0x8b678){const _0x56e657=a75_0x51ac;if(!_0x8b678[_0x56e657(0x200)]||_0x8b678[_0x56e657(0x200)][_0x56e657(0x202)]!==_0x8b678[_0x56e657(0x202)]||!_0x8b678['publishInput']['files'])return{'status':_0x56e657(0x1e7)};const _0x4e81d2=_0x8b678[_0x56e657(0x200)]['skillCode']||_0x8b678[_0x56e657(0x1d9)];if(!_0x4e81d2)return{'status':_0x56e657(0x1e7)};const _0x23b79f=await _0x8b678[_0x56e657(0x1e2)](_0x8b678[_0x56e657(0x202)],_0x4e81d2,_0x8b678['appCode'],_0x8b678[_0x56e657(0x200)]['version']);try{_0x8b678['verifyRuntimeSkillBundle'](_0x8b678[_0x56e657(0x1f9)][_0x56e657(0x1d5)],_0x23b79f);}catch{return{'status':_0x56e657(0x1f1)};}return{'status':_0x56e657(0x1e5),'savedSkill':{..._0x8b678['remote'],'content':_0x8b678['publishInput']['content'],'files':_0x8b678['publishInput'][_0x56e657(0x1d5)]}};}
1
+ (function(_0x3fc231,_0x6f0c6a){const _0x2652b4=a75_0x4d54,_0x518581=_0x3fc231();while(!![]){try{const _0x17e0ca=parseInt(_0x2652b4(0x1dc))/0x1+parseInt(_0x2652b4(0x1dd))/0x2*(-parseInt(_0x2652b4(0x1f6))/0x3)+-parseInt(_0x2652b4(0x1f7))/0x4+parseInt(_0x2652b4(0x1de))/0x5*(-parseInt(_0x2652b4(0x1d0))/0x6)+parseInt(_0x2652b4(0x1cd))/0x7+-parseInt(_0x2652b4(0x1e5))/0x8*(parseInt(_0x2652b4(0x1d3))/0x9)+parseInt(_0x2652b4(0x1f1))/0xa;if(_0x17e0ca===_0x6f0c6a)break;else _0x518581['push'](_0x518581['shift']());}catch(_0x4a2793){_0x518581['push'](_0x518581['shift']());}}}(a75_0x4fc0,0xd71ae));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4f8217){const _0x3a1d3e=a75_0x4d54,_0xedf9a2=_0x4f8217[_0x3a1d3e(0x1d8)](_0x3a1d3e(0x1d1))||_0x3a1d3e(0x1d2);if(_0xedf9a2===_0x3a1d3e(0x1d2)||_0xedf9a2===_0x3a1d3e(0x1fa))return _0xedf9a2;throw CliErrors[_0x3a1d3e(0x1ee)](_0x3a1d3e(0x1d4)+_0xedf9a2+'\x22.');}function a75_0x4d54(_0x4ccb74,_0xf2c308){_0x4ccb74=_0x4ccb74-0x1cb;const _0x4fc0ec=a75_0x4fc0();let _0x4d54da=_0x4fc0ec[_0x4ccb74];return _0x4d54da;}export function allowRetargetArgs(_0x23c51f){return _0x23c51f?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x45b6b7=a75_0x4d54;return{'targetScope':_0x45b6b7(0x1fa),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x27dd53={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x27dd53};}export function remotePersonalReadOptions(_0x241054,_0x4fe1f1={}){return{'ignoreInvalidMetadata':!![],..._0x241054?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4fe1f1};}function a75_0x4fc0(){const _0x3bff9e=['6762900NIovOA','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20cannot\x20be\x20pushed.','company','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','lovrabet.skill.json','(unknown)','4753742WnGvrl','Review\x20each\x20warning\x20before\x20continuing.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','320886eMKAJR','scope','personal','3852uBfick','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','publishInput','join','SkillHub\x20validation\x20returned\x20invalid.','str','appCode','version','Local\x20Skill\x20metadata\x20appCode\x20','1555991hPgfWj','108380AymTFq','95hdShFU','Company','skill-metadata-appcode-retargeted','not-applicable','different','content','Builtin\x20Skill\x20','29288aEzmgp','files','downloadRuntimeSkillPackage','length','builtin','Personal','warnings','errors','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','validation','warning','skillCode','39493550PXushz','remote','identical','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','57wbquZb'];a75_0x4fc0=function(){return _0x3bff9e;};return a75_0x4fc0();}export function throwIfBuiltinPushTarget(_0x4985bd){const _0x376422=a75_0x4d54;if(_0x4985bd?.[_0x376422(0x1d1)]!==_0x376422(0x1e9))return;throw CliErrors[_0x376422(0x1ee)](_0x376422(0x1e4)+(_0x4985bd[_0x376422(0x1f0)]??_0x376422(0x1cc))+_0x376422(0x1f9),_0x376422(0x1fb));}export function throwIfPublishValidationFailed(_0x3ae9ec,_0x55c0ae,_0x2491ae){const _0x215bc2=a75_0x4d54;if(_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]===0x0&&(_0x2491ae['valid']||_0x2491ae[_0x215bc2(0x1eb)]['length']>0x0))return;const _0x29719d=_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]>0x0?_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1d6)](';\x20'):_0x215bc2(0x1d7),_0x99964c=_0x3ae9ec===_0x215bc2(0x1fa)?_0x215bc2(0x1df):_0x215bc2(0x1ea);throw CliErrors[_0x215bc2(0x1ee)](_0x99964c+_0x215bc2(0x1cf)+_0x55c0ae+'.',_0x29719d);}export function throwIfUnconfirmedPublishWarnings(_0x2d5135,_0x13e5be,_0x40d05a,_0x3b5977){const _0x127114=a75_0x4d54;if(_0x40d05a[_0x127114(0x1e8)]===0x0||_0x3b5977)return;const _0x1b19da=_0x2d5135===_0x127114(0x1fa)?_0x127114(0x1df):_0x127114(0x1ea);throw CliErrors[_0x127114(0x1ee)](_0x1b19da+_0x127114(0x1f8)+_0x13e5be+'.',[_0x127114(0x1ce),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x127114(0x1fc),'Warnings:\x20'+_0x40d05a[_0x127114(0x1d6)](';\x20')][_0x127114(0x1d6)]('\x20'));}export function buildRetargetWarning(_0x4bc2e6,_0xf9d875){const _0x32333d=a75_0x4d54;if(!_0x4bc2e6?.[_0x32333d(0x1d9)]||_0x4bc2e6[_0x32333d(0x1d9)]===_0xf9d875)return[];return[{'level':_0x32333d(0x1ef),'ruleId':_0x32333d(0x1e0),'file':_0x32333d(0x1cb),'message':_0x32333d(0x1db)+_0x4bc2e6[_0x32333d(0x1d9)]+_0x32333d(0x1f4)+_0xf9d875+_0x32333d(0x1f5),'suggestion':_0x32333d(0x1ed)}];}export async function runRemoteContentPreflight(_0x1be314){const _0x94f4ba=a75_0x4d54;if(!_0x1be314[_0x94f4ba(0x1f2)]||_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1d1)]!==_0x1be314['scope']||!_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)])return{'status':'not-applicable'};const _0x269fe1=_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1f0)]||_0x1be314['skillCode'];if(!_0x269fe1)return{'status':_0x94f4ba(0x1e1)};const _0x2ca9d2=await _0x1be314[_0x94f4ba(0x1e7)](_0x1be314[_0x94f4ba(0x1d1)],_0x269fe1,_0x1be314[_0x94f4ba(0x1d9)],_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1da)]);try{_0x1be314['verifyRuntimeSkillBundle'](_0x1be314['publishInput'][_0x94f4ba(0x1e6)],_0x2ca9d2);}catch{return{'status':_0x94f4ba(0x1e2)};}return{'status':_0x94f4ba(0x1f3),'savedSkill':{..._0x1be314['remote'],'content':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e3)],'files':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)]}};}
@@ -1 +1 @@
1
- function a76_0x5b76(_0x21d9ce,_0x10411c){_0x21d9ce=_0x21d9ce-0x73;const _0xcda53=a76_0xcda5();let _0x5b7646=_0xcda53[_0x21d9ce];return _0x5b7646;}(function(_0x20d71c,_0x4eebab){const _0x4c0f69=a76_0x5b76,_0x24cd24=_0x20d71c();while(!![]){try{const _0x4ab392=parseInt(_0x4c0f69(0x7d))/0x1+-parseInt(_0x4c0f69(0x83))/0x2*(-parseInt(_0x4c0f69(0x77))/0x3)+-parseInt(_0x4c0f69(0x79))/0x4*(-parseInt(_0x4c0f69(0x89))/0x5)+-parseInt(_0x4c0f69(0x7e))/0x6+-parseInt(_0x4c0f69(0x8a))/0x7*(-parseInt(_0x4c0f69(0x7c))/0x8)+parseInt(_0x4c0f69(0x8b))/0x9*(parseInt(_0x4c0f69(0x8c))/0xa)+-parseInt(_0x4c0f69(0x82))/0xb*(parseInt(_0x4c0f69(0x78))/0xc);if(_0x4ab392===_0x4eebab)break;else _0x24cd24['push'](_0x24cd24['shift']());}catch(_0x52712b){_0x24cd24['push'](_0x24cd24['shift']());}}}(a76_0xcda5,0xf345b));export function withRetargetExistingMetadata(_0x56c405,_0x5988bf,_0x2395b7={}){const _0x3f3d26=a76_0x5b76,_0x2e4a18=_0x2395b7[_0x3f3d26(0x74)]?_0x56c405['skillName']??_0x5988bf[_0x3f3d26(0x7a)]:_0x5988bf[_0x3f3d26(0x7a)]??_0x56c405[_0x3f3d26(0x7a)];return{..._0x56c405,'skillName':_0x2e4a18,'description':_0x5988bf[_0x3f3d26(0x81)]??_0x56c405[_0x3f3d26(0x81)],'tags':Array[_0x3f3d26(0x85)](_0x5988bf['tags'])?_0x5988bf['tags']:_0x56c405[_0x3f3d26(0x7f)],'version':_0x5988bf[_0x3f3d26(0x76)]??_0x56c405[_0x3f3d26(0x76)],'sourceSessionId':_0x5988bf[_0x3f3d26(0x73)]??_0x56c405[_0x3f3d26(0x73)]};}export function buildRetargetWarning(_0x4f18b8,_0x330607){const _0x391a13=a76_0x5b76;if(!_0x4f18b8?.[_0x391a13(0x88)]||_0x4f18b8['appCode']===_0x330607)return[];return[{'level':_0x391a13(0x75),'ruleId':_0x391a13(0x7b),'file':'lovrabet.skill.json','message':_0x391a13(0x86)+_0x4f18b8[_0x391a13(0x88)]+_0x391a13(0x87)+_0x330607+_0x391a13(0x80),'suggestion':_0x391a13(0x84)}];}function a76_0xcda5(){const _0x256282=['1089413CYEAkv','11516028FSyJzS','tags','\x20after\x20successful\x20push.','description','6798132VNCZsI','18rmwHoO','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','isArray','Local\x20Skill\x20metadata\x20appCode\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','appCode','440VtDjOb','602JePmTr','207DvtNyA','463630VtLEPK','sourceSessionId','preferInputSkillName','warning','version','160377Iuxyyn','36yZnBBB','23296trouZs','skillName','skill-metadata-appcode-retargeted','150736UXbRwD'];a76_0xcda5=function(){return _0x256282;};return a76_0xcda5();}
1
+ (function(_0x303658,_0x2588c2){const _0x16a3a9=a76_0xa9f8,_0xa7e5af=_0x303658();while(!![]){try{const _0x44ef0c=-parseInt(_0x16a3a9(0x1da))/0x1+-parseInt(_0x16a3a9(0x1cd))/0x2*(-parseInt(_0x16a3a9(0x1c9))/0x3)+parseInt(_0x16a3a9(0x1dd))/0x4*(parseInt(_0x16a3a9(0x1d5))/0x5)+parseInt(_0x16a3a9(0x1e0))/0x6*(parseInt(_0x16a3a9(0x1d1))/0x7)+-parseInt(_0x16a3a9(0x1d9))/0x8+-parseInt(_0x16a3a9(0x1ca))/0x9*(parseInt(_0x16a3a9(0x1cb))/0xa)+-parseInt(_0x16a3a9(0x1db))/0xb*(parseInt(_0x16a3a9(0x1d2))/0xc);if(_0x44ef0c===_0x2588c2)break;else _0xa7e5af['push'](_0xa7e5af['shift']());}catch(_0x3db2ae){_0xa7e5af['push'](_0xa7e5af['shift']());}}}(a76_0x182a,0x7b7a6));export function withRetargetExistingMetadata(_0x1e3fbb,_0x5a3d36,_0xbf3884={}){const _0x35a5bd=a76_0xa9f8,_0x1853e1=_0xbf3884[_0x35a5bd(0x1d4)]?_0x1e3fbb['skillName']??_0x5a3d36[_0x35a5bd(0x1d7)]:_0x5a3d36['skillName']??_0x1e3fbb[_0x35a5bd(0x1d7)];return{..._0x1e3fbb,'skillName':_0x1853e1,'description':_0x5a3d36[_0x35a5bd(0x1dc)]??_0x1e3fbb[_0x35a5bd(0x1dc)],'tags':Array[_0x35a5bd(0x1d8)](_0x5a3d36['tags'])?_0x5a3d36['tags']:_0x1e3fbb[_0x35a5bd(0x1df)],'version':_0x5a3d36[_0x35a5bd(0x1d6)]??_0x1e3fbb[_0x35a5bd(0x1d6)],'sourceSessionId':_0x5a3d36[_0x35a5bd(0x1cc)]??_0x1e3fbb[_0x35a5bd(0x1cc)]};}function a76_0x182a(){const _0x153eca=['5642yOTMVv','12nwIsMM','lovrabet.skill.json','preferInputSkillName','10oftorZ','version','skillName','isArray','151704EOsUXZ','84442Rdhogo','11996017ikpHDQ','description','1595940EvHtfN','Local\x20Skill\x20metadata\x20appCode\x20','tags','1824NoWQhV','2576451vztALD','29817EXfpON','610BDdYus','sourceSessionId','2wLqvfJ','warning','appCode','skill-metadata-appcode-retargeted'];a76_0x182a=function(){return _0x153eca;};return a76_0x182a();}function a76_0xa9f8(_0x1fe8cd,_0x6106){_0x1fe8cd=_0x1fe8cd-0x1c9;const _0x182acc=a76_0x182a();let _0xa9f81d=_0x182acc[_0x1fe8cd];return _0xa9f81d;}export function buildRetargetWarning(_0x146f1e,_0x32eb78){const _0x5c94b0=a76_0xa9f8;if(!_0x146f1e?.[_0x5c94b0(0x1cf)]||_0x146f1e[_0x5c94b0(0x1cf)]===_0x32eb78)return[];return[{'level':_0x5c94b0(0x1ce),'ruleId':_0x5c94b0(0x1d0),'file':_0x5c94b0(0x1d3),'message':_0x5c94b0(0x1de)+_0x146f1e[_0x5c94b0(0x1cf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x32eb78+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- function a77_0x4029(){const _0xb3f410=['company','797466QLqvIk','2834942MQMdWJ','2122376BRwvtL','personal','trim','9qqCQuu','1830495XHwuAq','7guwWCh','all','4QoWbyY','633444ognXjn','71vNkHvO','1084290WEBpwI','8996PXGhoq'];a77_0x4029=function(){return _0xb3f410;};return a77_0x4029();}(function(_0x215ee8,_0x5f5cd6){const _0x39dc7f=a77_0x408d,_0x125405=_0x215ee8();while(!![]){try{const _0x4b4fe0=-parseInt(_0x39dc7f(0x1c2))/0x1*(-parseInt(_0x39dc7f(0x1c4))/0x2)+-parseInt(_0x39dc7f(0x1c1))/0x3+parseInt(_0x39dc7f(0x1cf))/0x4*(-parseInt(_0x39dc7f(0x1cc))/0x5)+parseInt(_0x39dc7f(0x1c6))/0x6*(-parseInt(_0x39dc7f(0x1cd))/0x7)+parseInt(_0x39dc7f(0x1c8))/0x8*(parseInt(_0x39dc7f(0x1cb))/0x9)+parseInt(_0x39dc7f(0x1c3))/0xa+parseInt(_0x39dc7f(0x1c7))/0xb;if(_0x4b4fe0===_0x5f5cd6)break;else _0x125405['push'](_0x125405['shift']());}catch(_0x698995){_0x125405['push'](_0x125405['shift']());}}}(a77_0x4029,0x3ac08));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x2d7d4d){const _0x3a3ce8=a77_0x408d,_0x34ec72=_0x2d7d4d[_0x3a3ce8(0x1ca)]();if(!_0x34ec72||_0x34ec72===_0x3a3ce8(0x1ce))return[_0x3a3ce8(0x1c9),_0x3a3ce8(0x1c5)];if(_0x34ec72===_0x3a3ce8(0x1c9)||_0x34ec72===_0x3a3ce8(0x1c5))return[_0x34ec72];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x2d7d4d);}export function normalizeListScope(_0x596089){const _0x5db03d=a77_0x408d,_0x3942a0=_0x596089[_0x5db03d(0x1ca)]();if(!_0x3942a0)return _0x5db03d(0x1ce);if(_0x3942a0===_0x5db03d(0x1c9)||_0x3942a0==='company'||_0x3942a0===_0x5db03d(0x1ce))return _0x3942a0;throw CliErrors['validation']('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x596089);}export function shouldListScope(_0x2c90c0,_0x1e4d49){const _0x4fd8b6=a77_0x408d;if(_0x2c90c0===_0x4fd8b6(0x1ce))return!![];return _0x2c90c0===_0x1e4d49;}export function listScopeToRuntimeScopes(_0x1b96b6){const _0x5abf0b=a77_0x408d;if(_0x1b96b6===_0x5abf0b(0x1ce))return[_0x5abf0b(0x1c9),_0x5abf0b(0x1c5)];return[_0x1b96b6==='company'?_0x5abf0b(0x1c5):_0x1b96b6];}function a77_0x408d(_0x2bc147,_0x148de9){_0x2bc147=_0x2bc147-0x1c1;const _0x402900=a77_0x4029();let _0x408d28=_0x402900[_0x2bc147];return _0x408d28;}export function listScopeToRemoteScope(_0x12020f){return _0x12020f;}
1
+ (function(_0x156167,_0x41f660){const _0x34f51e=a77_0x2bc4,_0x3fae6e=_0x156167();while(!![]){try{const _0x5e1240=-parseInt(_0x34f51e(0x9b))/0x1+-parseInt(_0x34f51e(0x96))/0x2+-parseInt(_0x34f51e(0xa0))/0x3+-parseInt(_0x34f51e(0x98))/0x4+-parseInt(_0x34f51e(0x9d))/0x5+parseInt(_0x34f51e(0x94))/0x6+parseInt(_0x34f51e(0x9f))/0x7;if(_0x5e1240===_0x41f660)break;else _0x3fae6e['push'](_0x3fae6e['shift']());}catch(_0x344b3b){_0x3fae6e['push'](_0x3fae6e['shift']());}}}(a77_0x2695,0x24d9f));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x32394f){const _0x551371=a77_0x2bc4,_0x5f4516=_0x32394f[_0x551371(0x99)]();if(!_0x5f4516||_0x5f4516===_0x551371(0x9a))return[_0x551371(0x9e),_0x551371(0x97)];if(_0x5f4516==='personal'||_0x5f4516==='company')return[_0x5f4516];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x32394f);}export function normalizeListScope(_0x1655eb){const _0x20de00=a77_0x2bc4,_0x717be6=_0x1655eb[_0x20de00(0x99)]();if(!_0x717be6)return _0x20de00(0x9a);if(_0x717be6==='personal'||_0x717be6===_0x20de00(0x97)||_0x717be6===_0x20de00(0x9a))return _0x717be6;throw CliErrors[_0x20de00(0x95)](_0x20de00(0x9c)+_0x1655eb);}export function shouldListScope(_0x5af996,_0x238d65){if(_0x5af996==='all')return!![];return _0x5af996===_0x238d65;}function a77_0x2bc4(_0x1ac38e,_0x1e4446){_0x1ac38e=_0x1ac38e-0x94;const _0x26953b=a77_0x2695();let _0x2bc439=_0x26953b[_0x1ac38e];return _0x2bc439;}function a77_0x2695(){const _0xc705af=['all','113056iuxmSw','Unsupported\x20Skill\x20list\x20scope:\x20','1274195euzuNy','personal','7435687SfYyfg','719436uoHkXm','1072308SKimGU','validation','485152vnJepA','company','958932cQRfxf','trim'];a77_0x2695=function(){return _0xc705af;};return a77_0x2695();}export function listScopeToRuntimeScopes(_0x21f93e){const _0x33188b=a77_0x2bc4;if(_0x21f93e===_0x33188b(0x9a))return[_0x33188b(0x9e),'company'];return[_0x21f93e===_0x33188b(0x97)?_0x33188b(0x97):_0x21f93e];}export function listScopeToRemoteScope(_0x27e1c9){return _0x27e1c9;}
@@ -1 +1 @@
1
- function a78_0x57df(_0x1c8040,_0x3a3f9f){_0x1c8040=_0x1c8040-0x146;var _0x2fba42=a78_0x2fba();var _0x57dfa3=_0x2fba42[_0x1c8040];return _0x57dfa3;}(function(_0x458a2e,_0x36bcfe){var _0x28a252=a78_0x57df,_0x43de94=_0x458a2e();while(!![]){try{var _0xdf8190=-parseInt(_0x28a252(0x14c))/0x1+-parseInt(_0x28a252(0x14b))/0x2*(-parseInt(_0x28a252(0x14a))/0x3)+-parseInt(_0x28a252(0x14f))/0x4*(-parseInt(_0x28a252(0x146))/0x5)+-parseInt(_0x28a252(0x14d))/0x6+parseInt(_0x28a252(0x148))/0x7+parseInt(_0x28a252(0x149))/0x8+-parseInt(_0x28a252(0x154))/0x9*(parseInt(_0x28a252(0x151))/0xa);if(_0xdf8190===_0x36bcfe)break;else _0x43de94['push'](_0x43de94['shift']());}catch(_0x9f7bd2){_0x43de94['push'](_0x43de94['shift']());}}}(a78_0x2fba,0x87a26));export function summarizeRuntimeSkill(_0x2953bc){var _0x189662=a78_0x57df;return{'id':_0x2953bc['id'],'skillCode':_0x2953bc[_0x189662(0x15c)],'skillName':_0x2953bc['skillName'],'scope':_0x2953bc[_0x189662(0x158)],'version':_0x2953bc[_0x189662(0x155)],'readonly':_0x2953bc[_0x189662(0x153)]};}export function summarizeLocalRuntimeSkill(_0x1390c0){var _0x2f03e7=a78_0x57df;return{'id':_0x1390c0['id'],'skillCode':_0x1390c0[_0x2f03e7(0x15c)],'skillName':_0x1390c0[_0x2f03e7(0x14e)],'scope':_0x1390c0['scope'],'appCode':_0x1390c0[_0x2f03e7(0x150)],'version':_0x1390c0[_0x2f03e7(0x155)],'status':_0x1390c0[_0x2f03e7(0x157)],'readonly':_0x1390c0[_0x2f03e7(0x153)],'tags':_0x1390c0['tags'],'dir':_0x1390c0[_0x2f03e7(0x147)],'cacheDir':_0x1390c0[_0x2f03e7(0x15a)],'skillMdPath':_0x1390c0[_0x2f03e7(0x152)],'metadataPath':_0x1390c0[_0x2f03e7(0x15b)],'linkedPaths':_0x1390c0[_0x2f03e7(0x156)],'contentHash':_0x1390c0[_0x2f03e7(0x15d)],'treeHash':_0x1390c0['treeHash'],'pulledAt':_0x1390c0[_0x2f03e7(0x159)]};}function a78_0x2fba(){var _0x22316a=['skillCode','contentHash','5xGinBF','dir','6115907dgEaFP','7168456AnuHge','6ChEWPZ','319226zNdWQw','731098dzovCh','295626LZDrrg','skillName','2414692ZqeWHr','appCode','10XymEZm','skillMdPath','readonly','12210570gzRYUg','version','linkedPaths','status','scope','pulledAt','cacheDir','metadataPath'];a78_0x2fba=function(){return _0x22316a;};return a78_0x2fba();}
1
+ function a78_0x1baa(_0x449bbd,_0x3a2375){_0x449bbd=_0x449bbd-0x9e;var _0x32131b=a78_0x3213();var _0x1baadd=_0x32131b[_0x449bbd];return _0x1baadd;}(function(_0x21671f,_0x2a390e){var _0x6740aa=a78_0x1baa,_0x4d4d68=_0x21671f();while(!![]){try{var _0x45399f=-parseInt(_0x6740aa(0xab))/0x1+parseInt(_0x6740aa(0xa7))/0x2+parseInt(_0x6740aa(0xa4))/0x3*(parseInt(_0x6740aa(0xac))/0x4)+-parseInt(_0x6740aa(0xa0))/0x5+parseInt(_0x6740aa(0xb5))/0x6+parseInt(_0x6740aa(0xa3))/0x7*(parseInt(_0x6740aa(0xb2))/0x8)+parseInt(_0x6740aa(0xa2))/0x9*(-parseInt(_0x6740aa(0xa1))/0xa);if(_0x45399f===_0x2a390e)break;else _0x4d4d68['push'](_0x4d4d68['shift']());}catch(_0x26c84d){_0x4d4d68['push'](_0x4d4d68['shift']());}}}(a78_0x3213,0x51522));export function summarizeRuntimeSkill(_0x57a201){var _0xf0d33b=a78_0x1baa;return{'id':_0x57a201['id'],'skillCode':_0x57a201[_0xf0d33b(0xa5)],'skillName':_0x57a201[_0xf0d33b(0x9e)],'scope':_0x57a201[_0xf0d33b(0xb3)],'version':_0x57a201[_0xf0d33b(0x9f)],'readonly':_0x57a201['readonly']};}export function summarizeLocalRuntimeSkill(_0x574867){var _0x4e7763=a78_0x1baa;return{'id':_0x574867['id'],'skillCode':_0x574867[_0x4e7763(0xa5)],'skillName':_0x574867[_0x4e7763(0x9e)],'scope':_0x574867[_0x4e7763(0xb3)],'appCode':_0x574867[_0x4e7763(0xaa)],'version':_0x574867[_0x4e7763(0x9f)],'status':_0x574867[_0x4e7763(0xaf)],'readonly':_0x574867[_0x4e7763(0xb1)],'tags':_0x574867[_0x4e7763(0xad)],'dir':_0x574867[_0x4e7763(0xae)],'cacheDir':_0x574867[_0x4e7763(0xa8)],'skillMdPath':_0x574867[_0x4e7763(0xa6)],'metadataPath':_0x574867[_0x4e7763(0xb0)],'linkedPaths':_0x574867[_0x4e7763(0xb6)],'contentHash':_0x574867[_0x4e7763(0xa9)],'treeHash':_0x574867[_0x4e7763(0xb4)],'pulledAt':_0x574867['pulledAt']};}function a78_0x3213(){var _0x4b7455=['version','831180QWjHSE','806460VHQigR','63kCemWW','579999XQwmBX','9RbYBEH','skillCode','skillMdPath','1282958esOJPf','cacheDir','contentHash','appCode','210923qQNQpL','45732PCSZFy','tags','dir','status','metadataPath','readonly','40niAsjf','scope','treeHash','1108248rJoLjo','linkedPaths','skillName'];a78_0x3213=function(){return _0x4b7455;};return a78_0x3213();}