@lovrabet/lovrabet-cli 2.3.4 → 2.3.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +44 -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/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  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.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.d.ts +2 -0
  29. package/lib/commands/data/import-excel.js +1 -0
  30. package/lib/commands/data/index.js +1 -1
  31. package/lib/commands/dataset/detail.js +1 -1
  32. package/lib/commands/dataset/index.js +1 -1
  33. package/lib/commands/dataset/list.js +1 -1
  34. package/lib/commands/dataset/sdk-doc.js +1 -1
  35. package/lib/commands/doctor.js +1 -1
  36. package/lib/commands/file/index.js +1 -1
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/notification/config-list.js +1 -1
  41. package/lib/commands/notification/index.js +1 -1
  42. package/lib/commands/notification/shared.js +1 -1
  43. package/lib/commands/ocr/index.js +1 -1
  44. package/lib/commands/permit/dataset-get.js +1 -1
  45. package/lib/commands/permit/dataset-set.js +1 -1
  46. package/lib/commands/permit/index.js +1 -1
  47. package/lib/commands/permit/page-get.js +1 -1
  48. package/lib/commands/permit/page-set.js +1 -1
  49. package/lib/commands/permit/role-menus-set.js +1 -1
  50. package/lib/commands/permit/role-menus.js +1 -1
  51. package/lib/commands/permit/shared.js +1 -1
  52. package/lib/commands/personal-bff/index.js +1 -1
  53. package/lib/commands/registry.js +1 -1
  54. package/lib/commands/role/create.js +1 -1
  55. package/lib/commands/role/delete.js +1 -1
  56. package/lib/commands/role/detail.js +1 -1
  57. package/lib/commands/role/index.js +1 -1
  58. package/lib/commands/role/list.js +1 -1
  59. package/lib/commands/role/shared.js +1 -1
  60. package/lib/commands/role/update.js +1 -1
  61. package/lib/commands/role/user-add.js +1 -1
  62. package/lib/commands/role/user-remove.js +1 -1
  63. package/lib/commands/schedule/index.js +1 -1
  64. package/lib/commands/schema.js +1 -1
  65. package/lib/commands/service/dynamic.js +1 -1
  66. package/lib/commands/service/function-name-adapter.js +1 -1
  67. package/lib/commands/service/index.js +1 -1
  68. package/lib/commands/service/registry.js +1 -1
  69. package/lib/commands/skill/commands/create.js +1 -1
  70. package/lib/commands/skill/commands/diagram.js +1 -1
  71. package/lib/commands/skill/commands/install.js +1 -1
  72. package/lib/commands/skill/commands/list.js +1 -1
  73. package/lib/commands/skill/commands/push.js +1 -1
  74. package/lib/commands/skill/commands/validate.js +1 -1
  75. package/lib/commands/skill/diagram.js +1 -1
  76. package/lib/commands/skill/flags.js +1 -1
  77. package/lib/commands/skill/index.js +1 -1
  78. package/lib/commands/skill/manifest-helpers.js +1 -1
  79. package/lib/commands/skill/push-execute.js +1 -1
  80. package/lib/commands/skill/push-flow-helpers.js +1 -1
  81. package/lib/commands/skill/push-retarget.js +1 -1
  82. package/lib/commands/skill/scopes.js +1 -1
  83. package/lib/commands/skill/summary.js +1 -1
  84. package/lib/commands/skill/templates.js +1 -1
  85. package/lib/commands/skill/validate.js +1 -1
  86. package/lib/commands/sql/detail.js +1 -1
  87. package/lib/commands/sql/exec.js +1 -1
  88. package/lib/commands/sql/index.js +1 -1
  89. package/lib/commands/update.js +1 -1
  90. package/lib/commands/user-account/bind.js +1 -1
  91. package/lib/commands/user-account/index.js +1 -1
  92. package/lib/commands/workspace/index.js +1 -1
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.js +1 -1
  95. package/lib/constant/app.js +1 -1
  96. package/lib/constant/auth-mode.js +1 -1
  97. package/lib/constant/cli.js +1 -1
  98. package/lib/constant/defaults.js +1 -1
  99. package/lib/constant/distribution.js +1 -1
  100. package/lib/constant/domain.js +1 -1
  101. package/lib/constant/env.js +1 -1
  102. package/lib/constant/output.js +1 -1
  103. package/lib/constant/product.js +1 -1
  104. package/lib/constant/region.js +1 -1
  105. package/lib/constant/risk.js +1 -1
  106. package/lib/constant/url.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/api-client.d.ts +21 -5
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-search-client.js +1 -1
  112. package/lib/core/sdk-client.js +1 -1
  113. package/lib/errors.d.ts +1 -0
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.d.ts +5 -0
  116. package/lib/framework/access-error.js +1 -0
  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.d.ts +2 -17
  129. package/lib/framework/runner-error.js +1 -1
  130. package/lib/framework/runner.js +1 -1
  131. package/lib/framework/schema-export.js +1 -1
  132. package/lib/framework/service-order.js +1 -1
  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.js +1 -1
  137. package/lib/generated/routing-contract.js +1 -1
  138. package/lib/help.js +1 -1
  139. package/lib/postinstall.js +1 -1
  140. package/lib/runtime/confirmation.js +1 -1
  141. package/lib/runtime/event.js +1 -1
  142. package/lib/runtime/index.js +1 -1
  143. package/lib/runtime/queue.js +1 -1
  144. package/lib/runtime/resolve.js +1 -1
  145. package/lib/services/dataset-import/auto-id-runner.d.ts +25 -0
  146. package/lib/services/dataset-import/auto-id-runner.js +1 -0
  147. package/lib/services/dataset-import/excel-reader.d.ts +3 -0
  148. package/lib/services/dataset-import/excel-reader.js +1 -0
  149. package/lib/services/dataset-import/metadata.d.ts +2 -0
  150. package/lib/services/dataset-import/metadata.js +1 -0
  151. package/lib/services/dataset-import/preview.d.ts +4 -0
  152. package/lib/services/dataset-import/preview.js +1 -0
  153. package/lib/services/dataset-import/runner.d.ts +63 -0
  154. package/lib/services/dataset-import/runner.js +1 -0
  155. package/lib/services/dataset-import/types.d.ts +33 -0
  156. package/lib/services/dataset-import/types.js +1 -0
  157. package/lib/skills/builtin-skill.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  160. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  161. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  162. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  163. package/lib/skills/runtime-skill-sync/links.js +1 -1
  164. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  165. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  166. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  167. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  168. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  169. package/lib/skills/runtime-skill-sync/push.js +1 -1
  170. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  173. package/lib/skills/runtime-skill-sync.js +1 -1
  174. package/lib/skills/skill-presence.js +1 -1
  175. package/lib/utils/access-key-redaction.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cli-version-check.js +1 -1
  178. package/lib/utils/cli-version-policy.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/lossless-json.js +1 -1
  181. package/lib/utils/params.js +1 -1
  182. package/lib/utils/positive-safe-integer.js +1 -1
  183. package/lib/utils/redaction.js +1 -1
  184. package/lib/utils/update-notice.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/write-cli-side-channel.js +1 -1
  187. package/package.json +8 -3
  188. package/skills/lovrabet/SKILL.md +10 -5
  189. package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
  190. package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
  191. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  192. package/skills/lovrabet/guides/troubleshooting.md +7 -1
  193. package/skills/lovrabet/references/instant-api-workflow.md +6 -2
  194. package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
  195. package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
  196. package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
  197. package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
  198. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
  199. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
  200. package/skills/lovrabet.manifest.json +5 -3
@@ -1 +1 @@
1
- const a65_0x45c642=a65_0x5c3e;(function(_0x5aca5c,_0x827928){const _0x537f4c=a65_0x5c3e,_0xcbb5c5=_0x5aca5c();while(!![]){try{const _0x4e92de=parseInt(_0x537f4c(0x116))/0x1+parseInt(_0x537f4c(0x119))/0x2*(parseInt(_0x537f4c(0x104))/0x3)+-parseInt(_0x537f4c(0x109))/0x4+-parseInt(_0x537f4c(0x107))/0x5+-parseInt(_0x537f4c(0x11b))/0x6+-parseInt(_0x537f4c(0x117))/0x7+parseInt(_0x537f4c(0x10f))/0x8;if(_0x4e92de===_0x827928)break;else _0xcbb5c5['push'](_0xcbb5c5['shift']());}catch(_0x3fb9dd){_0xcbb5c5['push'](_0xcbb5c5['shift']());}}}(a65_0x21e3,0xbafad));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';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a65_0x45c642(0x113),'command':a65_0x45c642(0x10b),'description':a65_0x45c642(0x115),'risk':a65_0x45c642(0x11c),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x84a3a8){const _0x51785d=a65_0x45c642,_0x3b1f0f=buildSkillCreatePlan(_0x84a3a8[_0x51785d(0x108)]('name'),_0x84a3a8[_0x51785d(0x108)]('type'),_0x84a3a8[_0x51785d(0x108)](_0x51785d(0x10d)));return{'method':_0x51785d(0x111),'url':_0x3b1f0f[_0x51785d(0x105)],'body':{'skillName':_0x3b1f0f[_0x51785d(0x11f)][_0x51785d(0x120)],'type':_0x3b1f0f[_0x51785d(0x11f)][_0x51785d(0x10a)],'selfContained':!![],'files':_0x3b1f0f[_0x51785d(0x11f)][_0x51785d(0x10e)][_0x51785d(0x103)](_0x477dc2=>_0x477dc2['path'])},'description':_0x51785d(0x10c)};},async 'execute'(_0x59b3e6){const _0x4522c1=a65_0x45c642,_0x55bb68=buildSkillCreatePlan(_0x59b3e6[_0x4522c1(0x108)]('name'),_0x59b3e6[_0x4522c1(0x108)](_0x4522c1(0x10a)),_0x59b3e6[_0x4522c1(0x108)](_0x4522c1(0x10d)));return writeSkillDraft(_0x55bb68,_0x59b3e6[_0x4522c1(0x11e)](_0x4522c1(0x11a))),{'ok':!![],'data':{'skillName':_0x55bb68[_0x4522c1(0x11f)][_0x4522c1(0x120)],'type':_0x55bb68[_0x4522c1(0x11f)][_0x4522c1(0x10a)],'dir':_0x55bb68['skillDir'],'files':_0x55bb68[_0x4522c1(0x11f)][_0x4522c1(0x10e)]['map'](_0x1b73b9=>_0x1b73b9[_0x4522c1(0x114)])},'message':_0x4522c1(0x110)+_0x55bb68[_0x4522c1(0x11f)][_0x4522c1(0x120)]};}};function a65_0x21e3(){const _0x1f2a73=['type','create','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','target','files','34238848ZUTurc','Created\x20local\x20Skill\x20draft\x20','WRITE','validation','skill','path','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','34806CcrNsc','9571786nbXhJR','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','252002jApMWX','force','6371832uJcFyR','read','utf8','bool','rendered','skillName','isSymbolicLink','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','map','9FgsXDY','skillDir','content','4507400wuKZuO','str','2383784koTGBc'];a65_0x21e3=function(){return _0x1f2a73;};return a65_0x21e3();}function buildSkillCreatePlan(_0x3298c1,_0x52000f,_0x27894c){const _0x34fd26=a65_0x45c642,_0x3ddfa8=_0x52000f['trim'](),_0x1d7eb4=renderSkillTemplate({'skillName':_0x3298c1,'type':_0x3ddfa8});!_0x3ddfa8&&writeCliSideChannelLine(_0x34fd26(0x122));const _0x31e4b0=resolve(normalizeSkillTarget(_0x27894c));return{'rendered':_0x1d7eb4,'targetRoot':_0x31e4b0,'skillDir':resolve(_0x31e4b0,_0x1d7eb4[_0x34fd26(0x120)])};}function a65_0x5c3e(_0xcd1e13,_0x19035a){_0xcd1e13=_0xcd1e13-0x103;const _0x21e3f0=a65_0x21e3();let _0x5c3ec5=_0x21e3f0[_0xcd1e13];return _0x5c3ec5;}function normalizeSkillTarget(_0x4fff77){return(_0x4fff77||DEFAULT_SKILL_TARGET)['trim']()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x368ce9,_0x21d6dd){const _0x3c76cd=a65_0x45c642;if(existsSync(_0x368ce9['skillDir'])){const _0x87cae5=lstatSync(_0x368ce9[_0x3c76cd(0x105)]);if(!_0x87cae5['isDirectory']()||_0x87cae5[_0x3c76cd(0x121)]())throw CliErrors[_0x3c76cd(0x112)](_0x3c76cd(0x118)+_0x368ce9[_0x3c76cd(0x105)]);if(!_0x21d6dd)throw CliErrors[_0x3c76cd(0x112)]('Skill\x20directory\x20already\x20exists:\x20'+_0x368ce9[_0x3c76cd(0x105)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x54968 of _0x368ce9[_0x3c76cd(0x11f)][_0x3c76cd(0x10e)]){const _0x2ac2a0=resolve(_0x368ce9['skillDir'],_0x54968[_0x3c76cd(0x114)]),_0x46f1cd=dirname(_0x2ac2a0);mkdirSync(_0x46f1cd,{'recursive':!![]});if(existsSync(_0x2ac2a0)&&lstatSync(_0x2ac2a0)[_0x3c76cd(0x121)]())throw CliErrors[_0x3c76cd(0x112)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x2ac2a0);writeFileSync(_0x2ac2a0,_0x54968[_0x3c76cd(0x106)],_0x3c76cd(0x11d));}}
1
+ const a66_0x39511d=a66_0x1b65;function a66_0x208e(){const _0x2942dd=['validation','path','6AbxftQ','isDirectory','rendered','trim','WRITE','40qevqly','type','Refusing\x20to\x20overwrite\x20symlink:\x20','skillName','24Jqtclj','force','1717660JjnIuc','skillDir','utf8','26bNCeVp','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','read','1FzhvjZ','name','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','Created\x20local\x20Skill\x20draft\x20','1087047VsDivN','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','files','str','create','1603344USmOAO','1150134xPZKWe','1460239EnkaSw','1829964XtDVJi','1186584mILmqu','4ZLEOYo','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','content'];a66_0x208e=function(){return _0x2942dd;};return a66_0x208e();}function a66_0x1b65(_0x41a8bf,_0x36f7fa){_0x41a8bf=_0x41a8bf-0xad;const _0x208e91=a66_0x208e();let _0x1b65f4=_0x208e91[_0x41a8bf];return _0x1b65f4;}(function(_0x3aa8b2,_0x138df0){const _0xde48e3=a66_0x1b65,_0x281413=_0x3aa8b2();while(!![]){try{const _0x359ec1=-parseInt(_0xde48e3(0xd0))/0x1*(-parseInt(_0xde48e3(0xb6))/0x2)+-parseInt(_0xde48e3(0xb8))/0x3*(-parseInt(_0xde48e3(0xba))/0x4)+-parseInt(_0xde48e3(0xca))/0x5*(parseInt(_0xde48e3(0xbf))/0x6)+parseInt(_0xde48e3(0xb9))/0x7*(-parseInt(_0xde48e3(0xc8))/0x8)+-parseInt(_0xde48e3(0xb0))/0x9+parseInt(_0xde48e3(0xc4))/0xa*(parseInt(_0xde48e3(0xb7))/0xb)+parseInt(_0xde48e3(0xb5))/0xc*(-parseInt(_0xde48e3(0xcd))/0xd);if(_0x359ec1===_0x138df0)break;else _0x281413['push'](_0x281413['shift']());}catch(_0xd0fd0){_0x281413['push'](_0x281413['shift']());}}}(a66_0x208e,0x74348));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';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':'skill','command':a66_0x39511d(0xb4),'description':a66_0x39511d(0xbb),'risk':a66_0x39511d(0xcf),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x45ad07){const _0x59a3aa=a66_0x39511d,_0x1bbbf7=buildSkillCreatePlan(_0x45ad07[_0x59a3aa(0xb3)](_0x59a3aa(0xad)),_0x45ad07[_0x59a3aa(0xb3)](_0x59a3aa(0xc5)),_0x45ad07['str']('target'));return{'method':_0x59a3aa(0xc3),'url':_0x1bbbf7[_0x59a3aa(0xcb)],'body':{'skillName':_0x1bbbf7['rendered']['skillName'],'type':_0x1bbbf7[_0x59a3aa(0xc1)]['type'],'selfContained':!![],'files':_0x1bbbf7[_0x59a3aa(0xc1)][_0x59a3aa(0xb2)]['map'](_0x4bb335=>_0x4bb335[_0x59a3aa(0xbe)])},'description':_0x59a3aa(0xae)};},async 'execute'(_0x964b68){const _0x236622=a66_0x39511d,_0x355c57=buildSkillCreatePlan(_0x964b68[_0x236622(0xb3)](_0x236622(0xad)),_0x964b68[_0x236622(0xb3)](_0x236622(0xc5)),_0x964b68['str']('target'));return writeSkillDraft(_0x355c57,_0x964b68['bool'](_0x236622(0xc9))),{'ok':!![],'data':{'skillName':_0x355c57[_0x236622(0xc1)]['skillName'],'type':_0x355c57['rendered'][_0x236622(0xc5)],'dir':_0x355c57['skillDir'],'files':_0x355c57[_0x236622(0xc1)][_0x236622(0xb2)]['map'](_0x283698=>_0x283698['path'])},'message':_0x236622(0xaf)+_0x355c57[_0x236622(0xc1)]['skillName']};}};function buildSkillCreatePlan(_0x168ebd,_0xc6b1ee,_0x29aa18){const _0x23f016=a66_0x39511d,_0x1266bb=_0xc6b1ee[_0x23f016(0xc2)](),_0x27fd83=renderSkillTemplate({'skillName':_0x168ebd,'type':_0x1266bb});!_0x1266bb&&writeCliSideChannelLine('Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.');const _0x45cce8=resolve(normalizeSkillTarget(_0x29aa18));return{'rendered':_0x27fd83,'targetRoot':_0x45cce8,'skillDir':resolve(_0x45cce8,_0x27fd83[_0x23f016(0xc7)])};}function normalizeSkillTarget(_0x1023ec){return(_0x1023ec||DEFAULT_SKILL_TARGET)['trim']()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x5a6839,_0x1e2bba){const _0x54ec25=a66_0x39511d;if(existsSync(_0x5a6839[_0x54ec25(0xcb)])){const _0x21f920=lstatSync(_0x5a6839['skillDir']);if(!_0x21f920[_0x54ec25(0xc0)]()||_0x21f920['isSymbolicLink']())throw CliErrors[_0x54ec25(0xbd)](_0x54ec25(0xce)+_0x5a6839['skillDir']);if(!_0x1e2bba)throw CliErrors['validation']('Skill\x20directory\x20already\x20exists:\x20'+_0x5a6839[_0x54ec25(0xcb)],_0x54ec25(0xb1));}for(const _0x5ee8cc of _0x5a6839[_0x54ec25(0xc1)]['files']){const _0x17119f=resolve(_0x5a6839[_0x54ec25(0xcb)],_0x5ee8cc[_0x54ec25(0xbe)]),_0x10cdd5=dirname(_0x17119f);mkdirSync(_0x10cdd5,{'recursive':!![]});if(existsSync(_0x17119f)&&lstatSync(_0x17119f)['isSymbolicLink']())throw CliErrors[_0x54ec25(0xbd)](_0x54ec25(0xc6)+_0x17119f);writeFileSync(_0x17119f,_0x5ee8cc[_0x54ec25(0xbc)],_0x54ec25(0xcc));}}
@@ -1 +1 @@
1
- function a66_0x27c0(_0x41fc4a,_0x51d904){_0x41fc4a=_0x41fc4a-0x6c;const _0x5ad3eb=a66_0x5ad3();let _0x27c011=_0x5ad3eb[_0x41fc4a];return _0x27c011;}const a66_0xb9e930=a66_0x27c0;(function(_0x3f2dc7,_0x1e7ae8){const _0x3e331e=a66_0x27c0,_0x31cf81=_0x3f2dc7();while(!![]){try{const _0x50ea6d=-parseInt(_0x3e331e(0x8e))/0x1+-parseInt(_0x3e331e(0x7b))/0x2+-parseInt(_0x3e331e(0x80))/0x3*(-parseInt(_0x3e331e(0x71))/0x4)+parseInt(_0x3e331e(0x97))/0x5+-parseInt(_0x3e331e(0x82))/0x6*(parseInt(_0x3e331e(0x87))/0x7)+-parseInt(_0x3e331e(0x7c))/0x8+parseInt(_0x3e331e(0x74))/0x9*(parseInt(_0x3e331e(0x90))/0xa);if(_0x50ea6d===_0x1e7ae8)break;else _0x31cf81['push'](_0x31cf81['shift']());}catch(_0x51f657){_0x31cf81['push'](_0x31cf81['shift']());}}}(a66_0x5ad3,0x3cce0));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(_0x12c38b){const _0x3237fb=a66_0x27c0,_0x35731b=_0x12c38b[_0x3237fb(0x7a)](_0x3237fb(0x7e))[_0x3237fb(0x75)](),_0x2c61e6=_0x12c38b[_0x3237fb(0x7a)](_0x3237fb(0x7f))[_0x3237fb(0x75)](),_0x53b3b7=_0x12c38b[_0x3237fb(0x7a)]('scope');if(!_0x35731b||!_0x2c61e6||_0x53b3b7!=='personal'&&_0x53b3b7!==_0x3237fb(0x79))throw CliErrors['validation']('--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.');return{'skillCode':_0x35731b,'version':_0x2c61e6,'scope':_0x53b3b7};}async function readDiagramWriteInput(_0x59d80c){const _0x2e7960=a66_0x27c0,_0x45df8d=_0x59d80c[_0x2e7960(0x83)](_0x2e7960(0x7d)),_0x96ad67=_0x59d80c['str'](_0x2e7960(0x8c))['trim']();if(!Number['isInteger'](_0x45df8d)||_0x45df8d<0x0)throw CliErrors[_0x2e7960(0x93)]('--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.');if(!/^sha256:[0-9a-f]{64}$/[_0x2e7960(0x8f)](_0x96ad67))throw CliErrors[_0x2e7960(0x93)](_0x2e7960(0x8a));return{'expectedDiagramRevision':_0x45df8d,'sourceFingerprint':_0x96ad67,'diagram':await readRequiredSkillDiagram(_0x59d80c['str'](_0x2e7960(0x78)))};}export const diagramValidateCommand={'service':a66_0xb9e930(0x91),'command':a66_0xb9e930(0x6d),'description':a66_0xb9e930(0x72),'risk':a66_0xb9e930(0x6c),'flags':WRITE_FLAGS,async 'execute'(_0x1e1432){const _0x53d0c1=a66_0xb9e930,_0x5c64c9=readDiagramTarget(_0x1e1432),_0x4dd4d6=await validateRuntimeSkillVersionDiagram(_0x1e1432[_0x53d0c1(0x89)],_0x5c64c9['skillCode'],_0x5c64c9[_0x53d0c1(0x7f)],_0x5c64c9[_0x53d0c1(0x6f)],await readDiagramWriteInput(_0x1e1432));return{'ok':!![],'data':_0x4dd4d6,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0x5c64c9[_0x53d0c1(0x95)]+'@'+_0x5c64c9[_0x53d0c1(0x7f)]+'.'};}};export const diagramPushCommand={'service':a66_0xb9e930(0x91),'command':a66_0xb9e930(0x70),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a66_0xb9e930(0x96),'confirmationDescription':a66_0xb9e930(0x92),'flags':WRITE_FLAGS,async 'execute'(_0x39fa6b){const _0x26f6d5=a66_0xb9e930,_0x27b542=readDiagramTarget(_0x39fa6b),_0x3614f8=await putRuntimeSkillVersionDiagram(_0x39fa6b['appCode'],_0x27b542[_0x26f6d5(0x95)],_0x27b542[_0x26f6d5(0x7f)],_0x27b542[_0x26f6d5(0x6f)],await readDiagramWriteInput(_0x39fa6b));return{'ok':!![],'data':_0x3614f8,'message':_0x3614f8['action']===_0x26f6d5(0x76)?_0x26f6d5(0x8b)+_0x27b542[_0x26f6d5(0x95)]+'@'+_0x27b542[_0x26f6d5(0x7f)]+_0x26f6d5(0x77):(_0x3614f8[_0x26f6d5(0x84)]===_0x26f6d5(0x86)?_0x26f6d5(0x8d):_0x26f6d5(0x73))+'\x20Skill\x20diagram\x20for\x20'+_0x27b542['skillCode']+'@'+_0x27b542[_0x26f6d5(0x7f)]+'.'};}};function a66_0x5ad3(){const _0x2b83d4=['Updated','2542374tVSWbz','trim','unchanged','\x20is\x20unchanged.','diagram-file','company','str','236686JgfVeG','2168264bXDZHr','expected-diagram-revision','skill-code','version','319941LaoxdW',';\x20next\x20write\x20expects\x20revision\x20','1652340PAGDWX','num','action','Found\x20Skill\x20diagram\x20for\x20','created','7SHqexi','diagram-show','appCode','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','Skill\x20diagram\x20for\x20','source-fingerprint','Created','363819jYfHeB','test','20jIbGZa','skill','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.','validation','expectedDiagramRevision','skillCode','write','1963640diropP','read','diagram-validate',';\x20first\x20write\x20expects\x20revision\x20','scope','diagram-push','12TIqPOD','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version'];a66_0x5ad3=function(){return _0x2b83d4;};return a66_0x5ad3();}export const diagramShowCommand={'service':a66_0xb9e930(0x91),'command':a66_0xb9e930(0x88),'description':'Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','risk':a66_0xb9e930(0x6c),'flags':TARGET_FLAGS,async 'execute'(_0x1da735){const _0x3ccf2d=a66_0xb9e930,_0xa8eb3d=readDiagramTarget(_0x1da735),_0x130a47=await getRuntimeSkillVersionDiagram(_0x1da735[_0x3ccf2d(0x89)],_0xa8eb3d[_0x3ccf2d(0x95)],_0xa8eb3d[_0x3ccf2d(0x7f)],_0xa8eb3d['scope']);return{'ok':!![],'data':_0x130a47,'message':_0x130a47['found']?_0x3ccf2d(0x85)+_0xa8eb3d[_0x3ccf2d(0x95)]+'@'+_0xa8eb3d[_0x3ccf2d(0x7f)]+_0x3ccf2d(0x81)+_0x130a47[_0x3ccf2d(0x94)]+'.':'No\x20Skill\x20diagram\x20is\x20stored\x20for\x20'+_0xa8eb3d[_0x3ccf2d(0x95)]+'@'+_0xa8eb3d[_0x3ccf2d(0x7f)]+_0x3ccf2d(0x6e)+_0x130a47[_0x3ccf2d(0x94)]+'.'};}};
1
+ const a67_0x5e34a0=a67_0x4920;(function(_0x37be6b,_0x5d4d5d){const _0x557a86=a67_0x4920,_0x24d504=_0x37be6b();while(!![]){try{const _0x554f43=parseInt(_0x557a86(0x1fd))/0x1+parseInt(_0x557a86(0x1fa))/0x2*(parseInt(_0x557a86(0x200))/0x3)+-parseInt(_0x557a86(0x1f3))/0x4+-parseInt(_0x557a86(0x1ec))/0x5*(parseInt(_0x557a86(0x1e8))/0x6)+-parseInt(_0x557a86(0x1e9))/0x7+-parseInt(_0x557a86(0x1f9))/0x8+parseInt(_0x557a86(0x209))/0x9*(parseInt(_0x557a86(0x1e1))/0xa);if(_0x554f43===_0x5d4d5d)break;else _0x24d504['push'](_0x24d504['shift']());}catch(_0xe127f7){_0x24d504['push'](_0x24d504['shift']());}}}(a67_0x57b1,0xb84fa));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';function a67_0x57b1(){const _0x104168=['validation','found','\x20is\x20unchanged.','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','Skill\x20diagram\x20validation\x20passed\x20for\x20','read','unchanged','9CAabyT','version',';\x20first\x20write\x20expects\x20revision\x20','expectedDiagramRevision',';\x20next\x20write\x20expects\x20revision\x20','created','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-show','34790780PgZhqm','expected-diagram-revision','Created','isInteger','appCode','company','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','45168rAjUcL','8728895GsGwUZ','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','write','365ZqTXXl','skillCode','skill','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','scope','diagram-push','skill-code','2285468xRPkvD','trim','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','diagram-validate','Updated','action','11877008AXdInk','459166VaIfpZ','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','test','898799FUosuR','str','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','3NNdMnO','Found\x20Skill\x20diagram\x20for\x20'];a67_0x57b1=function(){return _0x104168;};return a67_0x57b1();}function a67_0x4920(_0x433c74,_0x34a462){_0x433c74=_0x433c74-0x1df;const _0x57b11f=a67_0x57b1();let _0x4920ac=_0x57b11f[_0x433c74];return _0x4920ac;}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(_0x2ad57f){const _0x2c8577=a67_0x4920,_0x2cf240=_0x2ad57f[_0x2c8577(0x1fe)](_0x2c8577(0x1f2))[_0x2c8577(0x1f4)](),_0x138e7a=_0x2ad57f['str']('version')['trim'](),_0xd24731=_0x2ad57f[_0x2c8577(0x1fe)](_0x2c8577(0x1f0));if(!_0x2cf240||!_0x138e7a||_0xd24731!=='personal'&&_0xd24731!==_0x2c8577(0x1e6))throw CliErrors[_0x2c8577(0x202)](_0x2c8577(0x1ef));return{'skillCode':_0x2cf240,'version':_0x138e7a,'scope':_0xd24731};}async function readDiagramWriteInput(_0x5ccd9e){const _0x595fb9=a67_0x4920,_0xa767f9=_0x5ccd9e['num'](_0x595fb9(0x1e2)),_0x2dddc=_0x5ccd9e[_0x595fb9(0x1fe)]('source-fingerprint')[_0x595fb9(0x1f4)]();if(!Number[_0x595fb9(0x1e4)](_0xa767f9)||_0xa767f9<0x0)throw CliErrors[_0x595fb9(0x202)](_0x595fb9(0x1f5));if(!/^sha256:[0-9a-f]{64}$/[_0x595fb9(0x1fc)](_0x2dddc))throw CliErrors[_0x595fb9(0x202)](_0x595fb9(0x1fb));return{'expectedDiagramRevision':_0xa767f9,'sourceFingerprint':_0x2dddc,'diagram':await readRequiredSkillDiagram(_0x5ccd9e['str']('diagram-file'))};}export const diagramValidateCommand={'service':a67_0x5e34a0(0x1ee),'command':a67_0x5e34a0(0x1f6),'description':a67_0x5e34a0(0x1ff),'risk':a67_0x5e34a0(0x207),'flags':WRITE_FLAGS,async 'execute'(_0x507efd){const _0x3cca8c=a67_0x5e34a0,_0x4c0c48=readDiagramTarget(_0x507efd),_0x36efbc=await validateRuntimeSkillVersionDiagram(_0x507efd[_0x3cca8c(0x1e5)],_0x4c0c48['skillCode'],_0x4c0c48[_0x3cca8c(0x20a)],_0x4c0c48[_0x3cca8c(0x1f0)],await readDiagramWriteInput(_0x507efd));return{'ok':!![],'data':_0x36efbc,'message':_0x3cca8c(0x206)+_0x4c0c48[_0x3cca8c(0x1ed)]+'@'+_0x4c0c48[_0x3cca8c(0x20a)]+'.'};}};export const diagramPushCommand={'service':a67_0x5e34a0(0x1ee),'command':a67_0x5e34a0(0x1f1),'description':a67_0x5e34a0(0x1e7),'risk':a67_0x5e34a0(0x1eb),'confirmationDescription':a67_0x5e34a0(0x1df),'flags':WRITE_FLAGS,async 'execute'(_0x2ac8b2){const _0x38f292=a67_0x5e34a0,_0x730ceb=readDiagramTarget(_0x2ac8b2),_0x12ad47=await putRuntimeSkillVersionDiagram(_0x2ac8b2[_0x38f292(0x1e5)],_0x730ceb[_0x38f292(0x1ed)],_0x730ceb[_0x38f292(0x20a)],_0x730ceb[_0x38f292(0x1f0)],await readDiagramWriteInput(_0x2ac8b2));return{'ok':!![],'data':_0x12ad47,'message':_0x12ad47[_0x38f292(0x1f8)]===_0x38f292(0x208)?'Skill\x20diagram\x20for\x20'+_0x730ceb[_0x38f292(0x1ed)]+'@'+_0x730ceb[_0x38f292(0x20a)]+_0x38f292(0x204):(_0x12ad47[_0x38f292(0x1f8)]===_0x38f292(0x20e)?_0x38f292(0x1e3):_0x38f292(0x1f7))+'\x20Skill\x20diagram\x20for\x20'+_0x730ceb['skillCode']+'@'+_0x730ceb[_0x38f292(0x20a)]+'.'};}};export const diagramShowCommand={'service':a67_0x5e34a0(0x1ee),'command':a67_0x5e34a0(0x1e0),'description':a67_0x5e34a0(0x1ea),'risk':'read','flags':TARGET_FLAGS,async 'execute'(_0x14b56f){const _0x4b7dd9=a67_0x5e34a0,_0xd4bb99=readDiagramTarget(_0x14b56f),_0x167e12=await getRuntimeSkillVersionDiagram(_0x14b56f[_0x4b7dd9(0x1e5)],_0xd4bb99[_0x4b7dd9(0x1ed)],_0xd4bb99[_0x4b7dd9(0x20a)],_0xd4bb99[_0x4b7dd9(0x1f0)]);return{'ok':!![],'data':_0x167e12,'message':_0x167e12[_0x4b7dd9(0x203)]?_0x4b7dd9(0x201)+_0xd4bb99[_0x4b7dd9(0x1ed)]+'@'+_0xd4bb99[_0x4b7dd9(0x20a)]+_0x4b7dd9(0x20d)+_0x167e12['expectedDiagramRevision']+'.':_0x4b7dd9(0x205)+_0xd4bb99[_0x4b7dd9(0x1ed)]+'@'+_0xd4bb99['version']+_0x4b7dd9(0x20b)+_0x167e12[_0x4b7dd9(0x20c)]+'.'};}};
@@ -1 +1 @@
1
- const a67_0x5a1cb0=a67_0x29b1;(function(_0x57a27f,_0x475737){const _0x2ed016=a67_0x29b1,_0x557e34=_0x57a27f();while(!![]){try{const _0x5c91e7=parseInt(_0x2ed016(0x108))/0x1+-parseInt(_0x2ed016(0xea))/0x2*(-parseInt(_0x2ed016(0x107))/0x3)+-parseInt(_0x2ed016(0xe7))/0x4*(parseInt(_0x2ed016(0xe9))/0x5)+-parseInt(_0x2ed016(0x106))/0x6*(parseInt(_0x2ed016(0xf0))/0x7)+parseInt(_0x2ed016(0xe3))/0x8+parseInt(_0x2ed016(0x103))/0x9*(parseInt(_0x2ed016(0xed))/0xa)+parseInt(_0x2ed016(0xf4))/0xb*(-parseInt(_0x2ed016(0xf5))/0xc);if(_0x5c91e7===_0x475737)break;else _0x557e34['push'](_0x557e34['shift']());}catch(_0x56f488){_0x557e34['push'](_0x557e34['shift']());}}}(a67_0x38bd,0x9f848));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';function a67_0x38bd(){const _0x5703f6=['map','envName','scope','production','8891328DfehEW','skillRoots','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','../../../core/api-client.js','293520qfxFWH','read','5MJWZmp','232IojyVP','filter','authRequired','632010WFlwHv','str','skill','742vsmqeg','project','includes','skillCode','8005976ApSYGa','24HIKbCf','\x20personal\x20and\x20','global','updated','company','force','accessKey','length','../../../skills/runtime-skill-sync.js','bool','appCode','action','install','trim','153lgcqRZ','unchanged','\x20company\x20Skill(s).','22632btizPE','1707oTNIuT','330391DJZnYf','version','min','reduce','personal','removed','code','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','all'];a67_0x38bd=function(){return _0x5703f6;};return a67_0x38bd();}function a67_0x29b1(_0x53703f,_0x274df0){_0x53703f=_0x53703f-0xd7;const _0x38bd7=a67_0x38bd();let _0x29b133=_0x38bd7[_0x53703f];return _0x29b133;}import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a67_0x5a1cb0(0xef),'command':a67_0x5a1cb0(0x101),'description':a67_0x5a1cb0(0xdd),'risk':a67_0x5a1cb0(0xe8),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1f2b8b){return syncRuntimeSkills(_0x1f2b8b);}};async function syncRuntimeSkills(_0x423e25){const _0x475518=a67_0x5a1cb0,{downloadRuntimeSkillPackage:_0x2956a6,listRuntimeSkills:_0x397d67}=await import(_0x475518(0xe6)),{linkEffectiveRuntimeSkills:_0x1ad1df,materializeRuntimeSkill:_0x527869,pruneStaleRuntimeSkillCache:_0x1df1b2,pruneStaleRuntimeSkillLinks:_0x13e344,resolveRuntimeSkillInstallTarget:_0x428d61,reuseMaterializedRuntimeSkill:_0x4302f7}=await import(_0x475518(0xfd)),_0x243a37=_0x423e25[_0x475518(0xee)](_0x475518(0xdc)),_0x4cc37d=normalizeSyncScopes(_0x423e25[_0x475518(0xee)](_0x475518(0xe1))),_0x51a318=_0x423e25[_0x475518(0xe0)]??_0x475518(0xe2),_0x3d3dcc=_0x423e25[_0x475518(0xfb)],_0x23d58d=_0x423e25[_0x475518(0xfe)](_0x475518(0xfa));if(!_0x3d3dcc)throw CliErrors[_0x475518(0xec)](_0x475518(0xe5));const _0x23f37f=_0x428d61(_0x423e25[_0x475518(0xff)],_0x423e25[_0x475518(0xfe)]('project')?'project':_0x475518(0xf7)),_0x2ab1ad=_0x428d61(_0x423e25[_0x475518(0xff)],_0x23f37f['scope']===_0x475518(0xf1)?_0x475518(0xf7):_0x475518(0xf1)),_0x3318da=await _0x397d67({'appCode':_0x423e25[_0x475518(0xff)],'scope':_0x4cc37d[_0x475518(0xfc)]===0x1?_0x4cc37d[0x0]:_0x475518(0xde),'code':_0x243a37[_0x475518(0x102)]()||undefined}),_0x36e5f4=_0x4cc37d[_0x475518(0xf2)](_0x475518(0xda))?_0x3318da[_0x475518(0xda)]:[],_0x3679dd=_0x4cc37d['includes'](_0x475518(0xf9))?_0x3318da[_0x475518(0xf9)]:[],_0x5a3302=new Set([..._0x36e5f4[_0x475518(0xdf)](_0x50e853=>_0x50e853[_0x475518(0xf3)]?.[_0x475518(0x102)]())[_0x475518(0xeb)](_0x51a45a=>Boolean(_0x51a45a)),..._0x3679dd[_0x475518(0xdf)](_0x13f6fb=>_0x13f6fb[_0x475518(0xf3)]?.[_0x475518(0x102)]())[_0x475518(0xeb)](_0x1cddcf=>Boolean(_0x1cddcf))]),_0x335f62=_0x243a37[_0x475518(0x102)]()?[_0x243a37[_0x475518(0x102)]()]:undefined,_0x4f0197=_0x4cc37d[_0x475518(0xfc)]===0x2&&_0x4cc37d[_0x475518(0xf2)](_0x475518(0xda))&&_0x4cc37d[_0x475518(0xf2)](_0x475518(0xf9)),_0x4733c8=_0x4f0197?_0x13e344(_0x23f37f,_0x5a3302,_0x335f62):[],_0x5c79c7=_0x1df1b2({'env':_0x51a318,'accessKey':_0x3d3dcc,'appCode':_0x423e25['appCode'],'activeSkillCodes':_0x5a3302,'pruneSkillCodes':_0x335f62,'scopes':_0x4cc37d,'protectedLinkRoots':_0x2ab1ad[_0x475518(0xe4)]}),_0x1e1955=[..._0x36e5f4[_0x475518(0xdf)](_0x404457=>({'skill':_0x404457,'scope':_0x475518(0xda)})),..._0x3679dd[_0x475518(0xdf)](_0x2aa5ac=>({'skill':_0x2aa5ac,'scope':'company'}))],_0x516f70=await mapConcurrent(_0x1e1955,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x17c4e0,scope:_0x104176})=>{const _0x1fb653=_0x475518,_0x3bb7a1=_0x4302f7(_0x17c4e0,_0x104176,{'env':_0x51a318,'accessKey':_0x3d3dcc,'appCode':_0x423e25[_0x1fb653(0xff)]});if(_0x3bb7a1)return _0x3bb7a1;return _0x527869(_0x17c4e0,_0x104176,{'env':_0x51a318,'accessKey':_0x3d3dcc,'appCode':_0x423e25[_0x1fb653(0xff)],'force':_0x23d58d,'packageBytes':await downloadSkillPackage(_0x17c4e0,_0x104176,_0x423e25[_0x1fb653(0xff)],_0x2956a6)});}),_0x3d6155=_0x1ad1df(_0x516f70,_0x23f37f),_0x4119d0=countLinkActions(_0x3d6155);return{'ok':!![],'data':{'appCode':_0x423e25[_0x475518(0xff)],..._0x23f37f[_0x475518(0xe1)]==='project'?{'installTarget':{'scope':_0x23f37f['scope'],'skillRoots':[..._0x23f37f[_0x475518(0xe4)]]}}:{},'personal':_0x36e5f4[_0x475518(0xfc)],'company':_0x3679dd[_0x475518(0xfc)],'materialized':_0x516f70[_0x475518(0xfc)],'links':{'total':_0x3d6155[_0x475518(0xfc)],'created':_0x4119d0['created']??0x0,'updated':_0x4119d0[_0x475518(0xf8)]??0x0,'unchanged':_0x4119d0[_0x475518(0x104)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x4733c8['filter'](_0x509dab=>_0x509dab[_0x475518(0x100)]===_0x475518(0xdb))[_0x475518(0xfc)],'cacheDirs':_0x5c79c7[_0x475518(0xeb)](_0x319e30=>_0x319e30[_0x475518(0x100)]===_0x475518(0xdb))[_0x475518(0xfc)],'skipped':[..._0x4733c8,..._0x5c79c7]['filter'](_0x3894e1=>_0x3894e1[_0x475518(0x100)]==='skipped')['length']},'skills':{'personal':_0x36e5f4[_0x475518(0xdf)](summarizeRuntimeSkill),'company':_0x3679dd[_0x475518(0xdf)](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x36e5f4[_0x475518(0xfc)]+_0x475518(0xf6)+_0x3679dd[_0x475518(0xfc)]+_0x475518(0x105)};}async function mapConcurrent(_0x12f84f,_0xcbc917,_0x2f00be){const _0x2ef283=a67_0x5a1cb0,_0x1ffb78=new Array(_0x12f84f[_0x2ef283(0xfc)]);let _0x4aebba=0x0;const _0x10634a=Array['from']({'length':Math[_0x2ef283(0xd8)](_0xcbc917,_0x12f84f[_0x2ef283(0xfc)])},async()=>{while(_0x4aebba<_0x12f84f['length']){const _0x318571=_0x4aebba;_0x4aebba+=0x1,_0x1ffb78[_0x318571]=await _0x2f00be(_0x12f84f[_0x318571]);}});return await Promise[_0x2ef283(0xde)](_0x10634a),_0x1ffb78;}async function downloadSkillPackage(_0x290f1b,_0x27ad63,_0xb5203c,_0x1924b1){const _0x5186b2=a67_0x5a1cb0,_0x51904b=_0x290f1b[_0x5186b2(0xd7)]?.['trim']();return _0x51904b?_0x1924b1(_0x27ad63,_0x290f1b[_0x5186b2(0xf3)],_0xb5203c,_0x51904b):_0x1924b1(_0x27ad63,_0x290f1b[_0x5186b2(0xf3)],_0xb5203c);}function countLinkActions(_0x3dda0c){const _0x3c35e6=a67_0x5a1cb0;return _0x3dda0c[_0x3c35e6(0xd9)]((_0x4db6f9,_0x270e15)=>{const _0x310984=_0x3c35e6;return _0x4db6f9[_0x270e15['action']]=(_0x4db6f9[_0x270e15[_0x310984(0x100)]]??0x0)+0x1,_0x4db6f9;},{});}
1
+ const a68_0x30433f=a68_0x2461;(function(_0x3b1630,_0x51ed6e){const _0x2f1936=a68_0x2461,_0x393bbd=_0x3b1630();while(!![]){try{const _0x17944b=-parseInt(_0x2f1936(0x1dc))/0x1+-parseInt(_0x2f1936(0x1fa))/0x2+-parseInt(_0x2f1936(0x1d9))/0x3+parseInt(_0x2f1936(0x1da))/0x4+parseInt(_0x2f1936(0x1f0))/0x5+parseInt(_0x2f1936(0x1e4))/0x6*(parseInt(_0x2f1936(0x1e2))/0x7)+-parseInt(_0x2f1936(0x1f8))/0x8*(-parseInt(_0x2f1936(0x1d5))/0x9);if(_0x17944b===_0x51ed6e)break;else _0x393bbd['push'](_0x393bbd['shift']());}catch(_0x5d8740){_0x393bbd['push'](_0x393bbd['shift']());}}}(a68_0x3648,0x2c83e));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a68_0x30433f(0x1eb),'command':'install','description':a68_0x30433f(0x1ed),'risk':a68_0x30433f(0x1e1),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x2997df){return syncRuntimeSkills(_0x2997df);}};async function syncRuntimeSkills(_0x4a6044){const _0x4060f3=a68_0x30433f,{downloadRuntimeSkillPackage:_0x5dc8ff,listRuntimeSkills:_0x2a0ea8}=await import(_0x4060f3(0x1e9)),{linkEffectiveRuntimeSkills:_0x1f9671,materializeRuntimeSkill:_0xc4268,pruneStaleRuntimeSkillCache:_0x416dcb,pruneStaleRuntimeSkillLinks:_0x5c80e4,resolveRuntimeSkillInstallTarget:_0x3b4392,reuseMaterializedRuntimeSkill:_0x1411d0}=await import('../../../skills/runtime-skill-sync.js'),_0x53ff97=_0x4a6044[_0x4060f3(0x1f5)](_0x4060f3(0x1e0)),_0x4ca927=normalizeSyncScopes(_0x4a6044[_0x4060f3(0x1f5)](_0x4060f3(0x1e3))),_0x582bd6=_0x4a6044[_0x4060f3(0x1d4)]??_0x4060f3(0x1f7),_0x4dfe72=_0x4a6044[_0x4060f3(0x1f6)],_0x36dab1=_0x4a6044['bool']('force');if(!_0x4dfe72)throw CliErrors['authRequired'](_0x4060f3(0x1d7));const _0x4db8be=_0x3b4392(_0x4a6044[_0x4060f3(0x1db)],_0x4a6044[_0x4060f3(0x1ee)]('project')?_0x4060f3(0x1f3):_0x4060f3(0x1ea)),_0x997caa=_0x3b4392(_0x4a6044[_0x4060f3(0x1db)],_0x4db8be[_0x4060f3(0x1e3)]===_0x4060f3(0x1f3)?'global':_0x4060f3(0x1f3)),_0x78c017=await _0x2a0ea8({'appCode':_0x4a6044['appCode'],'scope':_0x4ca927['length']===0x1?_0x4ca927[0x0]:_0x4060f3(0x1f4),'code':_0x53ff97['trim']()||undefined,'installableOnly':!![]}),_0x106e55=_0x4ca927[_0x4060f3(0x1f9)](_0x4060f3(0x1e8))?_0x78c017[_0x4060f3(0x1e8)]:[],_0x34df74=_0x4ca927[_0x4060f3(0x1f9)]('company')?_0x78c017[_0x4060f3(0x1fd)]:[],_0x117c68=new Set([..._0x106e55[_0x4060f3(0x1e7)](_0x19acd8=>_0x19acd8[_0x4060f3(0x1dd)]?.[_0x4060f3(0x1de)]())[_0x4060f3(0x1ef)](_0x5c294d=>Boolean(_0x5c294d)),..._0x34df74[_0x4060f3(0x1e7)](_0xc4fdfc=>_0xc4fdfc[_0x4060f3(0x1dd)]?.[_0x4060f3(0x1de)]())[_0x4060f3(0x1ef)](_0x1577c2=>Boolean(_0x1577c2))]),_0x342252=_0x53ff97['trim']()?[_0x53ff97[_0x4060f3(0x1de)]()]:undefined,_0x537919=_0x4ca927[_0x4060f3(0x1fb)]===0x2&&_0x4ca927[_0x4060f3(0x1f9)](_0x4060f3(0x1e8))&&_0x4ca927['includes']('company'),_0x2139af=_0x537919?_0x5c80e4(_0x4db8be,_0x117c68,_0x342252):[],_0x1d70c4=_0x416dcb({'env':_0x582bd6,'accessKey':_0x4dfe72,'appCode':_0x4a6044['appCode'],'activeSkillCodes':_0x117c68,'pruneSkillCodes':_0x342252,'scopes':_0x4ca927,'protectedLinkRoots':_0x997caa['skillRoots']}),_0x324150=[..._0x106e55['map'](_0x57fc8d=>({'skill':_0x57fc8d,'scope':_0x4060f3(0x1e8)})),..._0x34df74[_0x4060f3(0x1e7)](_0x4b80c2=>({'skill':_0x4b80c2,'scope':'company'}))],_0x1a303f=await mapConcurrent(_0x324150,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x1e19d4,scope:_0x21eed3})=>{const _0x11385b=_0x4060f3,_0x122b7e=_0x1411d0(_0x1e19d4,_0x21eed3,{'env':_0x582bd6,'accessKey':_0x4dfe72,'appCode':_0x4a6044[_0x11385b(0x1db)]});if(_0x122b7e)return _0x122b7e;return _0xc4268(_0x1e19d4,_0x21eed3,{'env':_0x582bd6,'accessKey':_0x4dfe72,'appCode':_0x4a6044[_0x11385b(0x1db)],'force':_0x36dab1,'packageBytes':await downloadSkillPackage(_0x1e19d4,_0x21eed3,_0x4a6044[_0x11385b(0x1db)],_0x5dc8ff)});}),_0x27b747=_0x1f9671(_0x1a303f,_0x4db8be),_0x189151=countLinkActions(_0x27b747);return{'ok':!![],'data':{'appCode':_0x4a6044[_0x4060f3(0x1db)],..._0x4db8be[_0x4060f3(0x1e3)]===_0x4060f3(0x1f3)?{'installTarget':{'scope':_0x4db8be[_0x4060f3(0x1e3)],'skillRoots':[..._0x4db8be[_0x4060f3(0x1e5)]]}}:{},'personal':_0x106e55[_0x4060f3(0x1fb)],'company':_0x34df74[_0x4060f3(0x1fb)],'materialized':_0x1a303f['length'],'links':{'total':_0x27b747[_0x4060f3(0x1fb)],'created':_0x189151[_0x4060f3(0x1ec)]??0x0,'updated':_0x189151['updated']??0x0,'unchanged':_0x189151['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x2139af['filter'](_0x22fe1e=>_0x22fe1e[_0x4060f3(0x1d6)]===_0x4060f3(0x1fc))[_0x4060f3(0x1fb)],'cacheDirs':_0x1d70c4['filter'](_0x23673d=>_0x23673d[_0x4060f3(0x1d6)]===_0x4060f3(0x1fc))[_0x4060f3(0x1fb)],'skipped':[..._0x2139af,..._0x1d70c4][_0x4060f3(0x1ef)](_0x2b52c3=>_0x2b52c3[_0x4060f3(0x1d6)]===_0x4060f3(0x1f2))[_0x4060f3(0x1fb)]},'skills':{'personal':_0x106e55[_0x4060f3(0x1e7)](summarizeRuntimeSkill),'company':_0x34df74['map'](summarizeRuntimeSkill)}},'message':_0x4060f3(0x1f1)+_0x106e55['length']+_0x4060f3(0x1df)+_0x34df74['length']+_0x4060f3(0x1e6)};}async function mapConcurrent(_0x152e94,_0x31d439,_0x1abb61){const _0xc521eb=a68_0x30433f,_0x382e6a=new Array(_0x152e94[_0xc521eb(0x1fb)]);let _0x5e7c60=0x0;const _0xd4aca4=Array[_0xc521eb(0x1d8)]({'length':Math['min'](_0x31d439,_0x152e94[_0xc521eb(0x1fb)])},async()=>{const _0x2d8e38=_0xc521eb;while(_0x5e7c60<_0x152e94[_0x2d8e38(0x1fb)]){const _0x5854e8=_0x5e7c60;_0x5e7c60+=0x1,_0x382e6a[_0x5854e8]=await _0x1abb61(_0x152e94[_0x5854e8]);}});return await Promise[_0xc521eb(0x1f4)](_0xd4aca4),_0x382e6a;}async function downloadSkillPackage(_0x5690b5,_0x261ef1,_0x20e325,_0x4bb3ef){const _0x18d9d2=a68_0x30433f,_0x1b0fea=_0x5690b5['version']?.[_0x18d9d2(0x1de)]();return _0x1b0fea?_0x4bb3ef(_0x261ef1,_0x5690b5[_0x18d9d2(0x1dd)],_0x20e325,_0x1b0fea):_0x4bb3ef(_0x261ef1,_0x5690b5[_0x18d9d2(0x1dd)],_0x20e325);}function countLinkActions(_0x100ec9){return _0x100ec9['reduce']((_0x593d62,_0x27d4b8)=>{const _0x15d570=a68_0x2461;return _0x593d62[_0x27d4b8[_0x15d570(0x1d6)]]=(_0x593d62[_0x27d4b8[_0x15d570(0x1d6)]]??0x0)+0x1,_0x593d62;},{});}function a68_0x2461(_0x5684b9,_0x648e80){_0x5684b9=_0x5684b9-0x1d4;const _0x364848=a68_0x3648();let _0x24611f=_0x364848[_0x5684b9];return _0x24611f;}function a68_0x3648(){const _0x1e9d4b=['production','5496VxDhWe','includes','226718SMoyOO','length','removed','company','envName','396yYBXuo','action','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','from','492456JdlgDz','1152284TUltjh','appCode','253236aCeCel','skillCode','trim','\x20personal\x20and\x20','code','read','6216MVQRBh','scope','2406nfmukV','skillRoots','\x20company\x20Skill(s).','map','personal','../../../core/api-client.js','global','skill','created','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','bool','filter','193470NqACbc','Installed\x20','skipped','project','all','str','accessKey'];a68_0x3648=function(){return _0x1e9d4b;};return a68_0x3648();}
@@ -1 +1 @@
1
- const a68_0x3f817b=a68_0x51c8;function a68_0x51c8(_0x2e98d7,_0x3de705){_0x2e98d7=_0x2e98d7-0x179;const _0x2fe246=a68_0x2fe2();let _0x51c8a3=_0x2fe246[_0x2e98d7];return _0x51c8a3;}(function(_0x47f185,_0x906edb){const _0x4b60b5=a68_0x51c8,_0x3baba3=_0x47f185();while(!![]){try{const _0x242a2a=parseInt(_0x4b60b5(0x194))/0x1+-parseInt(_0x4b60b5(0x18c))/0x2+parseInt(_0x4b60b5(0x187))/0x3+parseInt(_0x4b60b5(0x199))/0x4*(-parseInt(_0x4b60b5(0x18d))/0x5)+-parseInt(_0x4b60b5(0x17a))/0x6*(-parseInt(_0x4b60b5(0x186))/0x7)+parseInt(_0x4b60b5(0x190))/0x8*(parseInt(_0x4b60b5(0x183))/0x9)+-parseInt(_0x4b60b5(0x182))/0xa*(-parseInt(_0x4b60b5(0x179))/0xb);if(_0x242a2a===_0x906edb)break;else _0x3baba3['push'](_0x3baba3['shift']());}catch(_0xf969de){_0x3baba3['push'](_0x3baba3['shift']());}}}(a68_0x2fe2,0x9ada5));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a68_0x3f817b(0x198),'command':a68_0x3f817b(0x197),'description':a68_0x3f817b(0x181),'risk':a68_0x3f817b(0x19a),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x40be46){const _0x584450=a68_0x3f817b,_0x57befb=_0x40be46[_0x584450(0x180)]('code'),_0xea28cf=normalizeListScope(_0x40be46[_0x584450(0x180)]('scope'));if(_0x40be46[_0x584450(0x18e)](_0x584450(0x18a))){const _0x4159b2=_0x40be46[_0x584450(0x193)];if(!_0x4159b2)throw CliErrors[_0x584450(0x17c)]();const {listLocalRuntimeSkills:_0x4d1925,resolveRuntimeSkillInstallTarget:_0x167dfe}=await import('../../../skills/runtime-skill-sync.js'),_0x68e18e=_0x167dfe(_0x40be46[_0x584450(0x195)],_0x40be46['bool']('project')?_0x584450(0x17f):_0x584450(0x189)),_0x51a78b=_0x4d1925({'env':_0x40be46['envName']??'production','accessKey':_0x4159b2,'appCode':_0x40be46[_0x584450(0x195)],'scopes':listScopeToRuntimeScopes(_0xea28cf),'code':_0x57befb[_0x584450(0x192)]()||undefined},_0x68e18e),_0x30551=groupLocalRuntimeSkills(_0x51a78b);return{'ok':!![],'data':{'appCode':_0x40be46[_0x584450(0x195)],'source':_0x584450(0x18a),..._0x68e18e[_0x584450(0x17b)]===_0x584450(0x17f)?{'installScope':_0x68e18e['scope']}:{},'scope':_0xea28cf,'total':_0x51a78b[_0x584450(0x184)],'personal':_0x30551[_0x584450(0x185)][_0x584450(0x184)],'company':_0x30551[_0x584450(0x18f)][_0x584450(0x184)],'items':_0x51a78b[_0x584450(0x188)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x30551[_0x584450(0x185)][_0x584450(0x188)](summarizeLocalRuntimeSkill),'company':_0x30551[_0x584450(0x18f)][_0x584450(0x188)](summarizeLocalRuntimeSkill)}},'message':_0x584450(0x17d)+_0x51a78b[_0x584450(0x184)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x914ec6}=await import('../../../core/api-client.js'),_0x571d6e=await _0x914ec6({'appCode':_0x40be46[_0x584450(0x195)],'scope':listScopeToRemoteScope(_0xea28cf),'code':_0x57befb[_0x584450(0x192)]()||undefined}),_0x43ca64=shouldListScope(_0xea28cf,_0x584450(0x185))?_0x571d6e[_0x584450(0x185)]??[]:[],_0xeb8486=shouldListScope(_0xea28cf,'company')?_0x571d6e['company']??[]:[],_0x431e8d=[..._0x43ca64,..._0xeb8486];return{'ok':!![],'data':{'appCode':_0x40be46[_0x584450(0x195)],'source':_0x584450(0x17e),'scope':_0xea28cf,'total':_0x431e8d[_0x584450(0x184)],'personal':_0x43ca64['length'],'company':_0xeb8486[_0x584450(0x184)],'items':_0x431e8d['map'](summarizeRuntimeSkill),'skills':{'personal':_0x43ca64[_0x584450(0x188)](summarizeRuntimeSkill),'company':_0xeb8486['map'](summarizeRuntimeSkill)}},'message':_0x584450(0x17d)+_0x431e8d[_0x584450(0x184)]+_0x584450(0x18b)};}};function groupLocalRuntimeSkills(_0x28dda9){const _0x14cb1c=a68_0x3f817b;return{'personal':_0x28dda9[_0x14cb1c(0x196)](_0x1dae81=>_0x1dae81[_0x14cb1c(0x17b)]===_0x14cb1c(0x185)),'company':_0x28dda9[_0x14cb1c(0x196)](_0x5ac8d9=>_0x5ac8d9[_0x14cb1c(0x17b)]===_0x14cb1c(0x18f)),'builtin':_0x28dda9[_0x14cb1c(0x196)](_0x235885=>_0x235885[_0x14cb1c(0x17b)]===_0x14cb1c(0x191))};}function a68_0x2fe2(){const _0x1a04f6=['19809qYqqtd','length','personal','333851RAUlLU','768294ZgJCfI','map','global','local','\x20remote\x20Skill(s).','2139054MKHspX','5lXDGHF','bool','company','280pKxUrH','builtin','trim','accessKey','1233569rckMsp','appCode','filter','list','skill','4829848irsIRT','read','11JfoleV','96HrZAvJ','scope','authRequired','Listed\x20','remote','project','str','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','5814760RsVgZq'];a68_0x2fe2=function(){return _0x1a04f6;};return a68_0x2fe2();}
1
+ function a69_0x5699(_0x12c470,_0x13bc04){_0x12c470=_0x12c470-0x17f;const _0x269ac0=a69_0x269a();let _0x5699fd=_0x269ac0[_0x12c470];return _0x5699fd;}const a69_0x2b2f67=a69_0x5699;(function(_0x5d46c2,_0x5f1b9e){const _0x216d9e=a69_0x5699,_0x2ca753=_0x5d46c2();while(!![]){try{const _0x3b2f84=parseInt(_0x216d9e(0x180))/0x1*(parseInt(_0x216d9e(0x1a2))/0x2)+-parseInt(_0x216d9e(0x1a0))/0x3*(-parseInt(_0x216d9e(0x19a))/0x4)+-parseInt(_0x216d9e(0x183))/0x5+parseInt(_0x216d9e(0x181))/0x6*(-parseInt(_0x216d9e(0x193))/0x7)+parseInt(_0x216d9e(0x1a1))/0x8*(-parseInt(_0x216d9e(0x182))/0x9)+-parseInt(_0x216d9e(0x19b))/0xa+parseInt(_0x216d9e(0x194))/0xb*(parseInt(_0x216d9e(0x18e))/0xc);if(_0x3b2f84===_0x5f1b9e)break;else _0x2ca753['push'](_0x2ca753['shift']());}catch(_0x4d5c70){_0x2ca753['push'](_0x2ca753['shift']());}}}(a69_0x269a,0xc6b76));function a69_0x269a(){const _0x520eea=['bool','str','\x20remote\x20Skill(s).','read','4819899rhCEKR','333828pxBaOB','skill','filter','project','Listed\x20','remote','316uMPzyD','2783270iHslHU','appCode','../../../skills/runtime-skill-sync.js','envName','accessKey','11874OhkuFg','344RmKPmn','103116xxVYyD','trim','list','../../../core/api-client.js','authRequired','map','31sZLBxN','12UNcLPE','182547aRMRLK','282400PBQEJs','length','personal','company','code','local','scope','production','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','\x20local\x20Skill(s).','global','588JIaCRF'];a69_0x269a=function(){return _0x520eea;};return a69_0x269a();}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a69_0x2b2f67(0x195),'command':a69_0x2b2f67(0x1a4),'description':a69_0x2b2f67(0x18b),'risk':a69_0x2b2f67(0x192),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x33cbc5){const _0x310712=a69_0x2b2f67,_0xbaf36=_0x33cbc5[_0x310712(0x190)](_0x310712(0x187)),_0x29e803=normalizeListScope(_0x33cbc5[_0x310712(0x190)]('scope'));if(_0x33cbc5[_0x310712(0x18f)](_0x310712(0x188))){const _0x58a1c1=_0x33cbc5[_0x310712(0x19f)];if(!_0x58a1c1)throw CliErrors[_0x310712(0x1a6)]();const {listLocalRuntimeSkills:_0x5772aa,resolveRuntimeSkillInstallTarget:_0x3bcfe0}=await import(_0x310712(0x19d)),_0x1ccd29=_0x3bcfe0(_0x33cbc5['appCode'],_0x33cbc5['bool'](_0x310712(0x197))?_0x310712(0x197):_0x310712(0x18d)),_0x5f20e3=_0x5772aa({'env':_0x33cbc5[_0x310712(0x19e)]??_0x310712(0x18a),'accessKey':_0x58a1c1,'appCode':_0x33cbc5['appCode'],'scopes':listScopeToRuntimeScopes(_0x29e803),'code':_0xbaf36[_0x310712(0x1a3)]()||undefined},_0x1ccd29),_0x4cf872=groupLocalRuntimeSkills(_0x5f20e3);return{'ok':!![],'data':{'appCode':_0x33cbc5[_0x310712(0x19c)],'source':'local',..._0x1ccd29[_0x310712(0x189)]===_0x310712(0x197)?{'installScope':_0x1ccd29[_0x310712(0x189)]}:{},'scope':_0x29e803,'total':_0x5f20e3['length'],'personal':_0x4cf872[_0x310712(0x185)]['length'],'company':_0x4cf872['company']['length'],'items':_0x5f20e3[_0x310712(0x17f)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x4cf872[_0x310712(0x185)]['map'](summarizeLocalRuntimeSkill),'company':_0x4cf872[_0x310712(0x186)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x310712(0x198)+_0x5f20e3['length']+_0x310712(0x18c)};}const {listRuntimeSkills:_0x735348}=await import(_0x310712(0x1a5)),_0x6c9d20=await _0x735348({'appCode':_0x33cbc5[_0x310712(0x19c)],'scope':listScopeToRemoteScope(_0x29e803),'code':_0xbaf36[_0x310712(0x1a3)]()||undefined}),_0x2d3da3=shouldListScope(_0x29e803,_0x310712(0x185))?_0x6c9d20[_0x310712(0x185)]??[]:[],_0x61cc90=shouldListScope(_0x29e803,'company')?_0x6c9d20[_0x310712(0x186)]??[]:[],_0x18bb61=[..._0x2d3da3,..._0x61cc90];return{'ok':!![],'data':{'appCode':_0x33cbc5[_0x310712(0x19c)],'source':_0x310712(0x199),'scope':_0x29e803,'total':_0x18bb61[_0x310712(0x184)],'personal':_0x2d3da3['length'],'company':_0x61cc90[_0x310712(0x184)],'items':_0x18bb61[_0x310712(0x17f)](summarizeRuntimeSkill),'skills':{'personal':_0x2d3da3['map'](summarizeRuntimeSkill),'company':_0x61cc90[_0x310712(0x17f)](summarizeRuntimeSkill)}},'message':_0x310712(0x198)+_0x18bb61[_0x310712(0x184)]+_0x310712(0x191)};}};function groupLocalRuntimeSkills(_0x365ace){const _0x4dc0d3=a69_0x2b2f67;return{'personal':_0x365ace[_0x4dc0d3(0x196)](_0x31a6e9=>_0x31a6e9[_0x4dc0d3(0x189)]===_0x4dc0d3(0x185)),'company':_0x365ace[_0x4dc0d3(0x196)](_0x4f55e9=>_0x4f55e9[_0x4dc0d3(0x189)]===_0x4dc0d3(0x186)),'builtin':_0x365ace[_0x4dc0d3(0x196)](_0x2052e9=>_0x2052e9[_0x4dc0d3(0x189)]==='builtin')};}
@@ -1 +1 @@
1
- const a69_0x145ad5=a69_0x2252;(function(_0x12d229,_0x141ef3){const _0x1408ed=a69_0x2252,_0x2bcb70=_0x12d229();while(!![]){try{const _0x57c2b6=parseInt(_0x1408ed(0x180))/0x1+-parseInt(_0x1408ed(0x182))/0x2+parseInt(_0x1408ed(0x17c))/0x3*(-parseInt(_0x1408ed(0x17b))/0x4)+-parseInt(_0x1408ed(0x183))/0x5*(-parseInt(_0x1408ed(0x178))/0x6)+parseInt(_0x1408ed(0x17e))/0x7*(-parseInt(_0x1408ed(0x179))/0x8)+parseInt(_0x1408ed(0x17d))/0x9+-parseInt(_0x1408ed(0x181))/0xa;if(_0x57c2b6===_0x141ef3)break;else _0x2bcb70['push'](_0x2bcb70['shift']());}catch(_0x387b21){_0x2bcb70['push'](_0x2bcb70['shift']());}}}(a69_0x2d0b,0x2f53d));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a69_0x2252(_0x24e224,_0x354d29){_0x24e224=_0x24e224-0x177;const _0x2d0b69=a69_0x2d0b();let _0x2252ee=_0x2d0b69[_0x24e224];return _0x2252ee;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a69_0x2d0b(){const _0x5b28d7=['308402ZIZFHp','23435cdPGxW','skill','348oPbWiS','291080YzYCRh','push','20qTqFAE','28941SFhFcM','2302011RpkFhk','21BzmcsC','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.','133873gRuroy','1560540zQRLVy'];a69_0x2d0b=function(){return _0x5b28d7;};return a69_0x2d0b();}export const pushCommand={'service':a69_0x145ad5(0x177),'command':a69_0x145ad5(0x17a),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','risk':'write','confirmationDescription':a69_0x145ad5(0x17f),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a70_0x374b5d=a70_0x18f0;(function(_0x4bb1a4,_0xde687){const _0x1901fa=a70_0x18f0,_0x3e121f=_0x4bb1a4();while(!![]){try{const _0x9cf2de=-parseInt(_0x1901fa(0x1a6))/0x1+parseInt(_0x1901fa(0x19d))/0x2*(-parseInt(_0x1901fa(0x1aa))/0x3)+parseInt(_0x1901fa(0x1a5))/0x4+-parseInt(_0x1901fa(0x1a2))/0x5*(parseInt(_0x1901fa(0x1a8))/0x6)+-parseInt(_0x1901fa(0x19b))/0x7*(parseInt(_0x1901fa(0x1a7))/0x8)+parseInt(_0x1901fa(0x19c))/0x9+parseInt(_0x1901fa(0x1a4))/0xa*(parseInt(_0x1901fa(0x1a1))/0xb);if(_0x9cf2de===_0xde687)break;else _0x3e121f['push'](_0x3e121f['shift']());}catch(_0x29574b){_0x3e121f['push'](_0x3e121f['shift']());}}}(a70_0x563c,0x3a108));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a70_0x18f0(_0x23eb04,_0x2b6e4f){_0x23eb04=_0x23eb04-0x19b;const _0x563c01=a70_0x563c();let _0x18f0a2=_0x563c01[_0x23eb04];return _0x18f0a2;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a70_0x563c(){const _0x39df5e=['102sDpphI','skill','962421DXFblZ','434TGwCaM','1575gsBaBE','2dASclt','push','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.','write','11mDAkbR','49475NVdJEd','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','9666170hHPyrK','511992cvvhqk','161414UzQqUb','26648GYnGNS'];a70_0x563c=function(){return _0x39df5e;};return a70_0x563c();}export const pushCommand={'service':a70_0x374b5d(0x1a9),'command':a70_0x374b5d(0x19e),'description':a70_0x374b5d(0x1a3),'risk':a70_0x374b5d(0x1a0),'confirmationDescription':a70_0x374b5d(0x19f),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a70_0x57f642=a70_0x117d;function a70_0x117d(_0x3123bc,_0x4daf7b){_0x3123bc=_0x3123bc-0x74;const _0x53db48=a70_0x53db();let _0x117dd5=_0x53db48[_0x3123bc];return _0x117dd5;}function a70_0x53db(){const _0x21709a=['validate','Skill\x20validation\x20passed.','2016960CFxvlY','type','dir','str','969353cxoswF','16REWBXj','16621arhpEw','7828UUVEKJ','41551UNebTh','633DaEMne','320lnHapA','10xPipzz','496540fqHMJF','skill','bool','4938327rhlmeR','read'];a70_0x53db=function(){return _0x21709a;};return a70_0x53db();}(function(_0x44f861,_0x476978){const _0x2d555c=a70_0x117d,_0x2a3020=_0x44f861();while(!![]){try{const _0x1272c2=parseInt(_0x2d555c(0x86))/0x1*(-parseInt(_0x2d555c(0x76))/0x2)+parseInt(_0x2d555c(0x74))/0x3*(parseInt(_0x2d555c(0x85))/0x4)+parseInt(_0x2d555c(0x77))/0x5+-parseInt(_0x2d555c(0x7e))/0x6+-parseInt(_0x2d555c(0x82))/0x7*(parseInt(_0x2d555c(0x83))/0x8)+parseInt(_0x2d555c(0x7a))/0x9+parseInt(_0x2d555c(0x75))/0xa*(parseInt(_0x2d555c(0x84))/0xb);if(_0x1272c2===_0x476978)break;else _0x2a3020['push'](_0x2a3020['shift']());}catch(_0x285069){_0x2a3020['push'](_0x2a3020['shift']());}}}(a70_0x53db,0x466a1));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a70_0x57f642(0x78),'command':a70_0x57f642(0x7c),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a70_0x57f642(0x7b),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x1629ab){const _0x30ed7f=a70_0x57f642,_0x260116=_0x1629ab[_0x30ed7f(0x79)]('strict'),_0x5a23af=validateSkillDirectory(_0x1629ab[_0x30ed7f(0x81)](_0x30ed7f(0x80)),{'strict':_0x260116});return throwIfSkillValidationFailed(_0x5a23af,_0x260116),{'ok':!![],'data':{'dir':_0x5a23af[_0x30ed7f(0x80)],'type':_0x5a23af[_0x30ed7f(0x7f)],'errors':_0x5a23af['errors'],'warnings':_0x5a23af['warnings']},'message':_0x30ed7f(0x7d)};}};
1
+ const a71_0x39ab9c=a71_0x3172;(function(_0x25ff7b,_0x56b997){const _0x4ffa5=a71_0x3172,_0x39afd2=_0x25ff7b();while(!![]){try{const _0x3059c9=-parseInt(_0x4ffa5(0x1eb))/0x1*(parseInt(_0x4ffa5(0x1f5))/0x2)+parseInt(_0x4ffa5(0x1f7))/0x3*(parseInt(_0x4ffa5(0x1f3))/0x4)+-parseInt(_0x4ffa5(0x1f4))/0x5+-parseInt(_0x4ffa5(0x1ed))/0x6+-parseInt(_0x4ffa5(0x1e8))/0x7+-parseInt(_0x4ffa5(0x1ee))/0x8+parseInt(_0x4ffa5(0x1ea))/0x9;if(_0x3059c9===_0x56b997)break;else _0x39afd2['push'](_0x39afd2['shift']());}catch(_0xb1f52e){_0x39afd2['push'](_0x39afd2['shift']());}}}(a71_0x2634,0xc4b98));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a71_0x3172(_0x182744,_0x39100b){_0x182744=_0x182744-0x1e6;const _0x2634f0=a71_0x2634();let _0x317224=_0x2634f0[_0x182744];return _0x317224;}function a71_0x2634(){const _0x421cd4=['Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','skill','str','8ZQoqyN','1675995LvXevi','5348gkIQOr','warnings','2158671WFTMuB','type','dir','bool','10705492AKXVBA','read','31872600oapfyH','9DLoErR','Skill\x20validation\x20passed.','8570394KoOzEe','6861680WFtSHb'];a71_0x2634=function(){return _0x421cd4;};return a71_0x2634();}export const validateCommand={'service':a71_0x39ab9c(0x1f1),'command':a71_0x39ab9c(0x1f0),'description':a71_0x39ab9c(0x1ef),'risk':a71_0x39ab9c(0x1e9),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x2361b6){const _0x46916e=a71_0x39ab9c,_0x58f583=_0x2361b6[_0x46916e(0x1e7)]('strict'),_0x35af8e=validateSkillDirectory(_0x2361b6[_0x46916e(0x1f2)](_0x46916e(0x1e6)),{'strict':_0x58f583});return throwIfSkillValidationFailed(_0x35af8e,_0x58f583),{'ok':!![],'data':{'dir':_0x35af8e['dir'],'type':_0x35af8e[_0x46916e(0x1f8)],'errors':_0x35af8e['errors'],'warnings':_0x35af8e[_0x46916e(0x1f6)]},'message':_0x46916e(0x1ec)};}};
@@ -1 +1 @@
1
- (function(_0x3ce987,_0x36777f){const _0x12a62e=a71_0x32f8,_0x553c31=_0x3ce987();while(!![]){try{const _0x507f75=parseInt(_0x12a62e(0xeb))/0x1*(parseInt(_0x12a62e(0xe3))/0x2)+parseInt(_0x12a62e(0xf0))/0x3+-parseInt(_0x12a62e(0xf7))/0x4*(parseInt(_0x12a62e(0xfa))/0x5)+-parseInt(_0x12a62e(0xe8))/0x6*(-parseInt(_0x12a62e(0xe2))/0x7)+-parseInt(_0x12a62e(0xec))/0x8+-parseInt(_0x12a62e(0xf4))/0x9*(parseInt(_0x12a62e(0xf2))/0xa)+parseInt(_0x12a62e(0xea))/0xb;if(_0x507f75===_0x36777f)break;else _0x553c31['push'](_0x553c31['shift']());}catch(_0x521c69){_0x553c31['push'](_0x553c31['shift']());}}}(a71_0x3eb2,0x9ed4d));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a71_0x3eb2(){const _0x2b2340=['2858935GLGXve','Mermaid\x20syntax\x20validation\x20failed.','42UkMGKD','281386JPcxqh','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','validation','utf8','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','68496jZVkoj','replace','21086912EjsKNl','3oOmgMA','7760800qFAQSl','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','mermaid','2953836HpMgkE','trim','6279320zZxgOe','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','9kejnco','parse','isFile','8luDIMH','window','document'];a71_0x3eb2=function(){return _0x2b2340;};return a71_0x3eb2();}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x558b06){return(await readRequiredSkillDiagramInput(_0x558b06))['diagram'];}export async function readRequiredSkillDiagramInput(_0xd9c9a5){const _0x11fba4=a71_0x32f8,_0x35d92f=_0xd9c9a5[_0x11fba4(0xf1)]();if(!_0x35d92f)throw CliErrors['validation'](_0x11fba4(0xee),_0x11fba4(0xed));let _0x34031d,_0x4106dc;if(_0x35d92f==='-')try{_0x34031d=readFileSync(0x0,_0x11fba4(0xe6));}catch{throw CliErrors[_0x11fba4(0xe5)](_0x11fba4(0xf3));}else{const _0x4f018e=resolve(_0x35d92f);if(!existsSync(_0x4f018e))throw CliErrors[_0x11fba4(0xe5)]('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x4f018e);if(!statSync(_0x4f018e)[_0x11fba4(0xf6)]())throw CliErrors[_0x11fba4(0xe5)](_0x11fba4(0xe4)+_0x4f018e);_0x4106dc=realpathSync(_0x4f018e),_0x34031d=readFileSync(_0x4106dc,_0x11fba4(0xe6));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x34031d)},'sourceFilePath':_0x4106dc};}function a71_0x32f8(_0x1ca44e,_0x32b8aa){_0x1ca44e=_0x1ca44e-0xe2;const _0x3eb296=a71_0x3eb2();let _0x32f857=_0x3eb296[_0x1ca44e];return _0x32f857;}export async function validateAndCanonicalizeMermaid(_0x4543d6){const _0x387ad7=a71_0x32f8,_0x22f682=_0x4543d6[_0x387ad7(0xe9)](/\r\n/g,'\x0a')[_0x387ad7(0xe9)](/\r/g,'\x0a')[_0x387ad7(0xe9)](/\n+$/,'')+'\x0a';try{const _0x34139b=await loadMermaidApi();await _0x34139b[_0x387ad7(0xf5)](_0x22f682);}catch{throw diagramValidationError();}return _0x22f682;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x3de9ff=a71_0x32f8;if(!(_0x3de9ff(0xf8)in globalThis)||!(_0x3de9ff(0xf9)in globalThis)){const _0x2eb662=new JSDOM('');Object['defineProperties'](globalThis,{'window':{'configurable':!![],'value':_0x2eb662[_0x3de9ff(0xf8)]},'document':{'configurable':!![],'value':_0x2eb662[_0x3de9ff(0xf8)][_0x3de9ff(0xf9)]}});}return(await import(_0x3de9ff(0xef)))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x339847=a71_0x32f8;return CliErrors[_0x339847(0xe5)](_0x339847(0xfb),_0x339847(0xe7));}
1
+ (function(_0x18dfef,_0x29f04e){const _0x1074e2=a72_0x43fe,_0x5e7bff=_0x18dfef();while(!![]){try{const _0xfdc436=parseInt(_0x1074e2(0x1ce))/0x1*(-parseInt(_0x1074e2(0x1c8))/0x2)+parseInt(_0x1074e2(0x1bd))/0x3*(parseInt(_0x1074e2(0x1be))/0x4)+-parseInt(_0x1074e2(0x1cf))/0x5*(parseInt(_0x1074e2(0x1cb))/0x6)+-parseInt(_0x1074e2(0x1bf))/0x7*(-parseInt(_0x1074e2(0x1d2))/0x8)+parseInt(_0x1074e2(0x1d0))/0x9*(-parseInt(_0x1074e2(0x1c3))/0xa)+parseInt(_0x1074e2(0x1d4))/0xb+-parseInt(_0x1074e2(0x1ca))/0xc;if(_0xfdc436===_0x29f04e)break;else _0x5e7bff['push'](_0x5e7bff['shift']());}catch(_0xebdb4b){_0x5e7bff['push'](_0x5e7bff['shift']());}}}(a72_0x31ac,0x54d3e));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a72_0x31ac(){const _0x417169=['6644891WmrpMj','window','143511jUBOVR','24xRUYai','182UHUNzm','validation','defineProperties','utf8','90BoceLG','trim','mermaid','diagram','replace','5306FuSYxj','document','2952360QFdYlo','30wZhzus','default','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','34imHfSa','226445jrQste','337770mQLDkc','Mermaid\x20syntax\x20validation\x20failed.','109784iszkpN','parse'];a72_0x31ac=function(){return _0x417169;};return a72_0x31ac();}import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x14abbe){const _0xef101c=a72_0x43fe;return(await readRequiredSkillDiagramInput(_0x14abbe))[_0xef101c(0x1c6)];}export async function readRequiredSkillDiagramInput(_0x4f4fe8){const _0x2e5082=a72_0x43fe,_0xa006cc=_0x4f4fe8[_0x2e5082(0x1c4)]();if(!_0xa006cc)throw CliErrors[_0x2e5082(0x1c0)](_0x2e5082(0x1cd),'Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.');let _0x1aa870,_0x455f8c;if(_0xa006cc==='-')try{_0x1aa870=readFileSync(0x0,_0x2e5082(0x1c2));}catch{throw CliErrors[_0x2e5082(0x1c0)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0x20f520=resolve(_0xa006cc);if(!existsSync(_0x20f520))throw CliErrors[_0x2e5082(0x1c0)]('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x20f520);if(!statSync(_0x20f520)['isFile']())throw CliErrors[_0x2e5082(0x1c0)]('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x20f520);_0x455f8c=realpathSync(_0x20f520),_0x1aa870=readFileSync(_0x455f8c,_0x2e5082(0x1c2));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x1aa870)},'sourceFilePath':_0x455f8c};}function a72_0x43fe(_0x26ffa6,_0x511dd8){_0x26ffa6=_0x26ffa6-0x1bc;const _0x31ac28=a72_0x31ac();let _0x43fe29=_0x31ac28[_0x26ffa6];return _0x43fe29;}export async function validateAndCanonicalizeMermaid(_0x487f06){const _0x182b98=a72_0x43fe,_0x4588a9=_0x487f06[_0x182b98(0x1c7)](/\r\n/g,'\x0a')[_0x182b98(0x1c7)](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x2b1260=await loadMermaidApi();await _0x2b1260[_0x182b98(0x1d3)](_0x4588a9);}catch{throw diagramValidationError();}return _0x4588a9;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x29fc87=a72_0x43fe;if(!('window'in globalThis)||!('document'in globalThis)){const _0x401ae2=new JSDOM('');Object[_0x29fc87(0x1c1)](globalThis,{'window':{'configurable':!![],'value':_0x401ae2[_0x29fc87(0x1bc)]},'document':{'configurable':!![],'value':_0x401ae2['window'][_0x29fc87(0x1c9)]}});}return(await import(_0x29fc87(0x1c5)))[_0x29fc87(0x1cc)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x44280c=a72_0x43fe;return CliErrors[_0x44280c(0x1c0)](_0x44280c(0x1d1),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -1 +1 @@
1
- const a72_0x3a0a5e=a72_0x5112;(function(_0x579fc4,_0x22d194){const _0x55a438=a72_0x5112,_0x38d1da=_0x579fc4();while(!![]){try{const _0x38f0bb=parseInt(_0x55a438(0x166))/0x1+-parseInt(_0x55a438(0x170))/0x2+parseInt(_0x55a438(0x17f))/0x3+-parseInt(_0x55a438(0x16a))/0x4*(parseInt(_0x55a438(0x15d))/0x5)+-parseInt(_0x55a438(0x176))/0x6+parseInt(_0x55a438(0x178))/0x7+parseInt(_0x55a438(0x17a))/0x8;if(_0x38f0bb===_0x22d194)break;else _0x38d1da['push'](_0x38d1da['shift']());}catch(_0x4d532){_0x38d1da['push'](_0x38d1da['shift']());}}}(a72_0x5311,0x49115));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a72_0x3a0a5e(0x16b),'type':a72_0x3a0a5e(0x181),'description':a72_0x3a0a5e(0x16d)};export const SCOPE_FLAG={'name':a72_0x3a0a5e(0x167),'type':'string','description':a72_0x3a0a5e(0x175),'enum':[a72_0x3a0a5e(0x15b),a72_0x3a0a5e(0x161),a72_0x3a0a5e(0x15f)]};export const PUSH_SCOPE_FLAG={'name':a72_0x3a0a5e(0x167),'type':a72_0x3a0a5e(0x181),'description':a72_0x3a0a5e(0x16f),'default':'personal','enum':[a72_0x3a0a5e(0x161),a72_0x3a0a5e(0x15f)]};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a72_0x3a0a5e(0x164),'enum':[a72_0x3a0a5e(0x15b),a72_0x3a0a5e(0x161),a72_0x3a0a5e(0x15f)]};export const LOCAL_FLAG={'name':a72_0x3a0a5e(0x172),'type':a72_0x3a0a5e(0x182),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a72_0x3a0a5e(0x174),'type':a72_0x3a0a5e(0x181),'required':!![],'description':a72_0x3a0a5e(0x183)};export const DIAGRAM_FILE_FLAG={'name':a72_0x3a0a5e(0x169),'type':a72_0x3a0a5e(0x181),'required':!![],'description':a72_0x3a0a5e(0x16e)};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a72_0x3a0a5e(0x181),'required':!![],'description':a72_0x3a0a5e(0x17b)};export const DIAGRAM_VERSION_FLAG={'name':a72_0x3a0a5e(0x162),'type':'string','required':!![],'description':a72_0x3a0a5e(0x17e)};export const DIAGRAM_SCOPE_FLAG={'name':a72_0x3a0a5e(0x167),'type':a72_0x3a0a5e(0x181),'required':!![],'enum':['personal','company'],'description':a72_0x3a0a5e(0x180)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a72_0x3a0a5e(0x181),'required':!![],'description':a72_0x3a0a5e(0x17d),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a72_0x3a0a5e(0x177)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a72_0x3a0a5e(0x171),'required':!![],'description':a72_0x3a0a5e(0x15c)};export const CREATE_NAME_FLAG={'name':a72_0x3a0a5e(0x17c),'type':'string','required':!![],'description':a72_0x3a0a5e(0x15e),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a72_0x3a0a5e(0x163)}};function a72_0x5112(_0x35f9a7,_0x4b79ab){_0x35f9a7=_0x35f9a7-0x15a;const _0x531167=a72_0x5311();let _0x5112c7=_0x531167[_0x35f9a7];return _0x5112c7;}function a72_0x5311(){const _0x2e17c0=['683656xSjmrj','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','name','Server-reported\x20SkillVersion\x20source\x20fingerprint','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','98901dJWtrI','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','string','boolean','Local\x20Skill\x20directory\x20containing\x20SKILL.md','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','all','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','5vWwDoo','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','company','force','personal','version','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','project','515945EkHMWE','scope','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','diagram-file','286280QwsKTD','code','strict','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','116450fxNzqa','number','local','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','dir','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','3302766DRDbym','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','2416204SFvwCH','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'];a72_0x5311=function(){return _0x2e17c0;};return a72_0x5311();}export const TYPE_FLAG={'name':'type','type':a72_0x3a0a5e(0x181),'description':a72_0x3a0a5e(0x184),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':'string','description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a72_0x3a0a5e(0x160),'type':'boolean','description':a72_0x3a0a5e(0x179)};export const PROJECT_TARGET_FLAG={'name':a72_0x3a0a5e(0x165),'type':a72_0x3a0a5e(0x182),'description':a72_0x3a0a5e(0x173)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a72_0x3a0a5e(0x182),'description':a72_0x3a0a5e(0x168)};export const STRICT_FLAG={'name':a72_0x3a0a5e(0x16c),'type':a72_0x3a0a5e(0x182),'description':a72_0x3a0a5e(0x15a)};
1
+ const a73_0xbf557c=a73_0x4db6;(function(_0x435d11,_0x52069e){const _0x16be7f=a73_0x4db6,_0x158035=_0x435d11();while(!![]){try{const _0x2759ea=-parseInt(_0x16be7f(0xbb))/0x1+parseInt(_0x16be7f(0xc3))/0x2*(-parseInt(_0x16be7f(0xaf))/0x3)+-parseInt(_0x16be7f(0xab))/0x4*(-parseInt(_0x16be7f(0xaa))/0x5)+-parseInt(_0x16be7f(0x9f))/0x6+parseInt(_0x16be7f(0xae))/0x7*(parseInt(_0x16be7f(0xbf))/0x8)+-parseInt(_0x16be7f(0xc5))/0x9+-parseInt(_0x16be7f(0xba))/0xa*(-parseInt(_0x16be7f(0xa6))/0xb);if(_0x2759ea===_0x52069e)break;else _0x158035['push'](_0x158035['shift']());}catch(_0x2a3f63){_0x158035['push'](_0x158035['shift']());}}}(a73_0x56f3,0x1bfaf));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a73_0xbf557c(0xc4),'type':a73_0xbf557c(0xb4),'description':a73_0xbf557c(0xa7)};export const SCOPE_FLAG={'name':a73_0xbf557c(0xa8),'type':a73_0xbf557c(0xb4),'description':a73_0xbf557c(0xbe),'enum':['all',a73_0xbf557c(0xa1),a73_0xbf557c(0xb6)]};export const PUSH_SCOPE_FLAG={'name':a73_0xbf557c(0xa8),'type':a73_0xbf557c(0xb4),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a73_0xbf557c(0xa1),'enum':[a73_0xbf557c(0xa1),a73_0xbf557c(0xb6)]};function a73_0x56f3(){const _0x3c2834=['8yUcYjS','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','number','boolean','5002zCbhuh','code','1906020iCgUGb','all','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1017522cZBaxR','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','personal','version','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','strict','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','1466245bnFyIr','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','scope','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','347555kaaEXv','8fuabTE','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','1398551MzzACU','27nyXdCx','target','force','Server-reported\x20SkillVersion\x20source\x20fingerprint','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','string','local','company','diagram-file','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','30wpSxqw','220217gwWocv','name','project','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company'];a73_0x56f3=function(){return _0x3c2834;};return a73_0x56f3();}export const LIST_SCOPE_FLAG={'name':a73_0xbf557c(0xa8),'type':a73_0xbf557c(0xb4),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a73_0xbf557c(0xc6),a73_0xbf557c(0xa1),a73_0xbf557c(0xb6)]};export const LOCAL_FLAG={'name':a73_0xbf557c(0xb5),'type':a73_0xbf557c(0xc2),'description':a73_0xbf557c(0xc0)};function a73_0x4db6(_0x4b6878,_0xdfdb53){_0x4b6878=_0x4b6878-0x9e;const _0x56f360=a73_0x56f3();let _0x4db6d7=_0x56f360[_0x4b6878];return _0x4db6d7;}export const DIR_FLAG={'name':'dir','type':a73_0xbf557c(0xb4),'required':!![],'description':a73_0xbf557c(0x9e)};export const DIAGRAM_FILE_FLAG={'name':a73_0xbf557c(0xb7),'type':a73_0xbf557c(0xb4),'required':!![],'description':a73_0xbf557c(0xa0)};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a73_0xbf557c(0xb4),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a73_0xbf557c(0xa2),'type':'string','required':!![],'description':a73_0xbf557c(0xa3)};export const DIAGRAM_SCOPE_FLAG={'name':'scope','type':a73_0xbf557c(0xb4),'required':!![],'enum':[a73_0xbf557c(0xa1),a73_0xbf557c(0xb6)],'description':a73_0xbf557c(0xac)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a73_0xbf557c(0xb4),'required':!![],'description':a73_0xbf557c(0xb2),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a73_0xbf557c(0xc1),'required':!![],'description':a73_0xbf557c(0xa5)};export const CREATE_NAME_FLAG={'name':a73_0xbf557c(0xbc),'type':'string','required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a73_0xbf557c(0xad)}};export const TYPE_FLAG={'name':'type','type':a73_0xbf557c(0xb4),'description':a73_0xbf557c(0xb9),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a73_0xbf557c(0xb0),'type':a73_0xbf557c(0xb4),'description':a73_0xbf557c(0xb3),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0xbf557c(0xb1),'type':a73_0xbf557c(0xc2),'description':a73_0xbf557c(0xa9)};export const PROJECT_TARGET_FLAG={'name':a73_0xbf557c(0xbd),'type':a73_0xbf557c(0xc2),'description':a73_0xbf557c(0xc7)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a73_0xbf557c(0xc2),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':a73_0xbf557c(0xa4),'type':a73_0xbf557c(0xc2),'description':a73_0xbf557c(0xb8)};
@@ -1 +1 @@
1
- (function(_0x405740,_0x48eb3f){const _0x52e1db=a73_0x226f,_0x39d212=_0x405740();while(!![]){try{const _0x4979c3=parseInt(_0x52e1db(0x90))/0x1+-parseInt(_0x52e1db(0x8e))/0x2*(parseInt(_0x52e1db(0x91))/0x3)+-parseInt(_0x52e1db(0x8a))/0x4+-parseInt(_0x52e1db(0x8f))/0x5+-parseInt(_0x52e1db(0x8b))/0x6*(parseInt(_0x52e1db(0x8c))/0x7)+-parseInt(_0x52e1db(0x8d))/0x8+parseInt(_0x52e1db(0x89))/0x9;if(_0x4979c3===_0x48eb3f)break;else _0x39d212['push'](_0x39d212['shift']());}catch(_0x19d9ee){_0x39d212['push'](_0x39d212['shift']());}}}(a73_0x559d,0xa866b));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a73_0x226f(_0x28f964,_0x34e32c){_0x28f964=_0x28f964-0x89;const _0x559d08=a73_0x559d();let _0x226f19=_0x559d08[_0x28f964];return _0x226f19;}import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a73_0x559d(){const _0x1882ef=['1574smSrBs','1768810fJUTyM','919611xPHiwt','129SjXzxD','18404424gPCAJZ','422372SIliad','3389286ilyvOK','14DYBrpI','5214544ElovUk'];a73_0x559d=function(){return _0x1882ef;};return a73_0x559d();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x2f5b25,_0x1764c0){const _0x13a01c=a74_0x573c,_0x25ce18=_0x2f5b25();while(!![]){try{const _0x512bbd=-parseInt(_0x13a01c(0x1c1))/0x1*(parseInt(_0x13a01c(0x1c6))/0x2)+-parseInt(_0x13a01c(0x1c2))/0x3*(-parseInt(_0x13a01c(0x1c8))/0x4)+parseInt(_0x13a01c(0x1cb))/0x5*(-parseInt(_0x13a01c(0x1ca))/0x6)+parseInt(_0x13a01c(0x1c0))/0x7+-parseInt(_0x13a01c(0x1c7))/0x8*(-parseInt(_0x13a01c(0x1c5))/0x9)+-parseInt(_0x13a01c(0x1bf))/0xa*(-parseInt(_0x13a01c(0x1c3))/0xb)+-parseInt(_0x13a01c(0x1c4))/0xc*(parseInt(_0x13a01c(0x1c9))/0xd);if(_0x512bbd===_0x1764c0)break;else _0x25ce18['push'](_0x25ce18['shift']());}catch(_0x20eea2){_0x25ce18['push'](_0x25ce18['shift']());}}}(a74_0x347b,0x8e379));import{createCommand}from'./commands/create.js';function a74_0x573c(_0x3f2ba5,_0x4728b7){_0x3f2ba5=_0x3f2ba5-0x1bf;const _0x347bb8=a74_0x347b();let _0x573c30=_0x347bb8[_0x3f2ba5];return _0x573c30;}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';function a74_0x347b(){const _0x5467c7=['3796MtkbQq','62520jkqIoU','5AllpXN','1285030iRZMbk','552965ziBXil','1fVrKxH','1476PkYJpi','33GxcnhP','804AyuAZt','32463PHdMWq','1482952IpIWHX','1784NUsCsh','692bZypUt'];a74_0x347b=function(){return _0x5467c7;};return a74_0x347b();}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x4cb8da,_0x3b031f){var _0x592c28=a74_0x5168,_0x44a9dc=_0x4cb8da();while(!![]){try{var _0x222bba=parseInt(_0x592c28(0x73))/0x1*(-parseInt(_0x592c28(0x78))/0x2)+-parseInt(_0x592c28(0x74))/0x3*(parseInt(_0x592c28(0x70))/0x4)+parseInt(_0x592c28(0x75))/0x5*(parseInt(_0x592c28(0x72))/0x6)+-parseInt(_0x592c28(0x7a))/0x7+-parseInt(_0x592c28(0x6d))/0x8+parseInt(_0x592c28(0x7d))/0x9*(-parseInt(_0x592c28(0x77))/0xa)+-parseInt(_0x592c28(0x79))/0xb*(-parseInt(_0x592c28(0x7b))/0xc);if(_0x222bba===_0x3b031f)break;else _0x44a9dc['push'](_0x44a9dc['shift']());}catch(_0x3517a3){_0x44a9dc['push'](_0x44a9dc['shift']());}}}(a74_0x5696,0xa14e9));function a74_0x5168(_0x40fd3e,_0x2e81cf){_0x40fd3e=_0x40fd3e-0x6d;var _0x56967d=a74_0x5696();var _0x5168d0=_0x56967d[_0x40fd3e];return _0x5168d0;}function a74_0x5696(){var _0x60e4a2=['files','10POFhML','1363994YTHLlB','161997rhHrTE','6715814TQXqzN','2700QMYJcA','ossPath','8662473FIGYRG','isArray','2859480ttZvJh','some','path','262372ibZkQB','object','230286gNWvQN','1hjKqNe','21wkXMTO','100jJRlRK'];a74_0x5696=function(){return _0x60e4a2;};return a74_0x5696();}export function isPackageBackedManifest(_0xdd71f1){var _0xdba500=a74_0x5168;return!!_0xdd71f1&&typeof _0xdd71f1===_0xdba500(0x71)&&!Array['isArray'](_0xdd71f1)&&typeof _0xdd71f1[_0xdba500(0x7c)]==='string'&&_0xdd71f1[_0xdba500(0x7c)]['length']>0x0&&Array[_0xdba500(0x7e)](_0xdd71f1[_0xdba500(0x76)]);}export function isMultiFileManifest(_0x152313){var _0x462aff=a74_0x5168;return!!_0x152313&&typeof _0x152313===_0x462aff(0x71)&&!Array['isArray'](_0x152313)&&Array[_0x462aff(0x7e)](_0x152313[_0x462aff(0x76)])&&_0x152313[_0x462aff(0x76)][_0x462aff(0x6e)](_0x5effd5=>_0x5effd5[_0x462aff(0x6f)]!=='SKILL.md');}
1
+ function a75_0x2f3c(_0x6e1c96,_0xb98668){_0x6e1c96=_0x6e1c96-0x14d;var _0x76fd49=a75_0x76fd();var _0x2f3ced=_0x76fd49[_0x6e1c96];return _0x2f3ced;}(function(_0x561afa,_0x327f64){var _0x48c7f2=a75_0x2f3c,_0x1a101a=_0x561afa();while(!![]){try{var _0x1bc681=-parseInt(_0x48c7f2(0x150))/0x1+-parseInt(_0x48c7f2(0x151))/0x2+parseInt(_0x48c7f2(0x156))/0x3+parseInt(_0x48c7f2(0x158))/0x4*(parseInt(_0x48c7f2(0x14d))/0x5)+-parseInt(_0x48c7f2(0x152))/0x6*(parseInt(_0x48c7f2(0x153))/0x7)+parseInt(_0x48c7f2(0x15a))/0x8+parseInt(_0x48c7f2(0x155))/0x9;if(_0x1bc681===_0x327f64)break;else _0x1a101a['push'](_0x1a101a['shift']());}catch(_0x101671){_0x1a101a['push'](_0x1a101a['shift']());}}}(a75_0x76fd,0x7200b));function a75_0x76fd(){var _0x1d5e47=['1092110wVAMQt','30kfrxUh','118027RnmMYH','SKILL.md','2495970ayALGh','1100439dbMeok','path','12JFxZOd','length','5781864ydlEOT','files','154265RVcLre','string','isArray','362120CdnGOS'];a75_0x76fd=function(){return _0x1d5e47;};return a75_0x76fd();}export function isPackageBackedManifest(_0x2fda76){var _0x3fdb05=a75_0x2f3c;return!!_0x2fda76&&typeof _0x2fda76==='object'&&!Array[_0x3fdb05(0x14f)](_0x2fda76)&&typeof _0x2fda76['ossPath']===_0x3fdb05(0x14e)&&_0x2fda76['ossPath'][_0x3fdb05(0x159)]>0x0&&Array['isArray'](_0x2fda76[_0x3fdb05(0x15b)]);}export function isMultiFileManifest(_0x5e3c6e){var _0x24a8df=a75_0x2f3c;return!!_0x5e3c6e&&typeof _0x5e3c6e==='object'&&!Array[_0x24a8df(0x14f)](_0x5e3c6e)&&Array[_0x24a8df(0x14f)](_0x5e3c6e[_0x24a8df(0x15b)])&&_0x5e3c6e[_0x24a8df(0x15b)]['some'](_0x4d631d=>_0x4d631d[_0x24a8df(0x157)]!==_0x24a8df(0x154));}
@@ -1 +1 @@
1
- (function(_0x5ec581,_0x501945){const _0xb50e38=a75_0x1414,_0x4250fe=_0x5ec581();while(!![]){try{const _0x1d5ffd=-parseInt(_0xb50e38(0xd1))/0x1+parseInt(_0xb50e38(0xc7))/0x2*(-parseInt(_0xb50e38(0xc0))/0x3)+-parseInt(_0xb50e38(0xdd))/0x4+parseInt(_0xb50e38(0xae))/0x5+parseInt(_0xb50e38(0xb2))/0x6+-parseInt(_0xb50e38(0xd4))/0x7*(-parseInt(_0xb50e38(0xce))/0x8)+parseInt(_0xb50e38(0xac))/0x9*(-parseInt(_0xb50e38(0xde))/0xa);if(_0x1d5ffd===_0x501945)break;else _0x4250fe['push'](_0x4250fe['shift']());}catch(_0x25e5ca){_0x4250fe['push'](_0x4250fe['shift']());}}}(a75_0x490a,0x3dfed));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 a75_0x490a(){const _0x55b052=['warnings','confirm-warnings','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','(unknown)','Created\x20personal\x20Skill\x20','Personal','submitted','company','valid','str','publishInput','Submitted\x20company\x20Skill\x20','1782XzwEFB','\x20has\x20scope=\x22','\x20Skill\x20','diagramValidated','resolvedVersion','files','trim','370RwPFPP','savedSkill','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','personal','identical','appcode','existing','35080VnmYaL','appCode','POST','391636WRZnbX','skillCode','remoteForPreflight','553FjCRhy','PRIVATE','/api/cli/v1/skills/','bool','../../core/api-client.js','resolvedSlug','status','diagram-file','input','1033852JsYWmZ','50GJktUd','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Company','scope','authRequired','accessKey','confirmWarnings','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','../../skills/runtime-skill-sync.js','frontmatterDisplayName','131301DySLpN','payload','2191015qQYSvR','NAMESPACE_ONLY','dir','/publish/validate','1813494TLDtfz','version'];a75_0x490a=function(){return _0x55b052;};return a75_0x490a();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0xe76ca0){const _0x2d732a=a75_0x1414,{getRuntimeSkillByCode:_0x336bc0,validateRuntimeSkillPublish:_0x33f136}=await import(_0x2d732a(0xd8)),{readPushDirectory:_0x552c92,resolvePushDirectoryIdentity:_0xb5a5dd}=await import(_0x2d732a(0xe6));if(!_0xe76ca0[_0x2d732a(0xe3)])throw CliErrors['authRequired']();const _0x2a28a7=resolvePushScope(_0xe76ca0),_0x1fb5c3=validateSkillDirectory(_0xe76ca0[_0x2d732a(0xbd)](_0x2d732a(0xb0)));throwIfSkillValidationFailed(_0x1fb5c3);const {diagram:_0x13a117,sourceFilePath:_0x56233c}=await readRequiredSkillDiagramInput(_0xe76ca0[_0x2d732a(0xbd)]('diagram-file')),_0x16e2ac=diagramPackageExclusion(_0x56233c),_0x384f0d=_0xb5a5dd(_0x1fb5c3[_0x2d732a(0xb0)],_0xe76ca0['appCode'],remoteFirstMetadataOptions()),_0x3d59dd=await _0x336bc0(_0xe76ca0[_0x2d732a(0xcf)],_0x384f0d['skillCode']);throwIfBuiltinPushTarget(_0x3d59dd);if(_0x2a28a7===_0x2d732a(0xbb)){const _0x250f0a=_0x552c92(_0x1fb5c3['dir'],_0xe76ca0[_0x2d732a(0xcf)],{...remoteMissingCompanyReadOptions(),..._0x16e2ac}),_0x474e25=await _0x33f136(_0xe76ca0[_0x2d732a(0xcf)],withDiagram(_0x250f0a[_0x2d732a(0xdc)],_0x13a117),{'visibility':_0x2d732a(0xaf)});return{'method':'POST','url':_0x2d732a(0xd6)+_0xe76ca0['appCode']+_0x2d732a(0xb1),'body':{'skillCode':_0x250f0a['skillCode'],'visibility':_0x2d732a(0xaf),'valid':_0x474e25[_0x2d732a(0xbc)],'errors':_0x474e25['errors'],'warnings':_0x474e25['warnings'],'resolvedSlug':_0x474e25[_0x2d732a(0xd9)],'resolvedVersion':_0x474e25[_0x2d732a(0xc4)],'diagramValidated':_0x474e25[_0x2d732a(0xc3)]},'description':_0x2d732a(0xc9)};}if(_0x3d59dd&&_0x3d59dd['scope']!=='personal')throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x384f0d[_0x2d732a(0xd2)]+_0x2d732a(0xc1)+(_0x3d59dd[_0x2d732a(0xe1)]??'unknown')+'\x22.');const _0x549dcb=_0x552c92(_0x1fb5c3[_0x2d732a(0xb0)],_0xe76ca0[_0x2d732a(0xcf)],{..._0x3d59dd?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x16e2ac}),_0x57b042=await _0x33f136(_0xe76ca0[_0x2d732a(0xcf)],withDiagram(_0x549dcb[_0x2d732a(0xdc)],_0x13a117),{'visibility':_0x2d732a(0xd5)});return{'method':_0x2d732a(0xd0),'url':_0x2d732a(0xd6)+_0xe76ca0[_0x2d732a(0xcf)]+_0x2d732a(0xb1),'body':{'skillCode':_0x549dcb[_0x2d732a(0xd2)],'visibility':_0x2d732a(0xd5),'valid':_0x57b042[_0x2d732a(0xbc)],'errors':_0x57b042['errors'],'warnings':_0x57b042[_0x2d732a(0xb4)],'resolvedSlug':_0x57b042['resolvedSlug'],'resolvedVersion':_0x57b042[_0x2d732a(0xc4)],'diagramValidated':_0x57b042[_0x2d732a(0xc3)]},'description':_0x2d732a(0xe5)};}export async function skillPushExecute(_0x557d57){const _0x58b577=a75_0x1414,{createPersonalRuntimeSkill:_0x88ba68,downloadRuntimeSkillPackage:_0x2cbc60,getRuntimeSkillByCode:_0x49010c,publishCompanyRuntimeSkill:_0x315542,updatePersonalRuntimeSkill:_0x2c3560,validateRuntimeSkillPublish:_0x29f920}=await import(_0x58b577(0xd8)),{verifyRuntimeSkillPackage:_0x30e340,verifyRuntimeSkillBundle:_0xb3e9a2,readPushDirectory:_0x3d38ea,refreshPushDirectoryMetadataFromRemote:_0x3475f8,recordPushedRuntimeSkill:_0x3b9b86,resolvePushDirectoryIdentity:_0x1a786b}=await import('../../skills/runtime-skill-sync.js');if(!_0x557d57[_0x58b577(0xe3)])throw CliErrors[_0x58b577(0xe2)]();const _0x3b91c9=resolvePushScope(_0x557d57),_0x20e6c3=_0x557d57[_0x58b577(0xd7)](_0x58b577(0xb5))||_0x557d57[_0x58b577(0xd7)](_0x58b577(0xe4)),_0x3b90aa=validateSkillDirectory(_0x557d57[_0x58b577(0xbd)]('dir'));throwIfSkillValidationFailed(_0x3b90aa);const {diagram:_0x2064ba,sourceFilePath:_0x426a1b}=await readRequiredSkillDiagramInput(_0x557d57[_0x58b577(0xbd)](_0x58b577(0xdb))),_0xa1dcad=diagramPackageExclusion(_0x426a1b),_0x11c739=_0x3b90aa[_0x58b577(0xb0)];let _0x176cec;if(_0x3b91c9===_0x58b577(0xbb)){const _0x40ed80=_0x1a786b(_0x11c739,_0x557d57[_0x58b577(0xcf)],remoteFirstMetadataOptions()),_0x126210=await _0x49010c(_0x557d57[_0x58b577(0xcf)],_0x40ed80[_0x58b577(0xd2)]);throwIfBuiltinPushTarget(_0x126210);if(_0x126210)_0x3475f8(_0x11c739,_0x126210,_0x557d57[_0x58b577(0xcf)]);const _0x41a5b4=_0x3d38ea(_0x11c739,_0x557d57[_0x58b577(0xcf)],{..._0x126210?{'targetScope':_0x58b577(0xbb),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0xa1dcad});_0x176cec={'scope':_0x58b577(0xbb),'payload':_0x41a5b4,'publishInput':withDiagram(_0x41a5b4[_0x58b577(0xdc)],_0x2064ba),'remoteForPreflight':_0x126210,'warnings':[]};}else{const _0x3ab88e=_0x557d57[_0x58b577(0xbd)](_0x58b577(0xcc))[_0x58b577(0xc6)](),_0x3524a8=Boolean(_0x3ab88e),_0x322863=allowRetargetArgs(_0x3524a8),_0x42d8e5=_0x1a786b(_0x11c739,_0x557d57['appCode'],{...remoteFirstMetadataOptions(),..._0x322863[0x0]}),_0x5b9090=await _0x49010c(_0x557d57['appCode'],_0x42d8e5[_0x58b577(0xd2)]);throwIfBuiltinPushTarget(_0x5b9090);if(_0x5b9090){if(_0x5b9090['scope']!=='personal'){if(_0x3524a8)throw CliErrors['validation'](_0x58b577(0xb6)+_0x42d8e5[_0x58b577(0xd2)]+_0x58b577(0xc1)+(_0x5b9090[_0x58b577(0xe1)]??'unknown')+'\x22.');_0x3475f8(_0x11c739,_0x5b9090,_0x557d57[_0x58b577(0xcf)]);}else!_0x3524a8&&_0x3475f8(_0x11c739,_0x5b9090,_0x557d57[_0x58b577(0xcf)]);}const _0x1fd4c2=_0x3d38ea(_0x11c739,_0x557d57['appCode'],{..._0x5b9090?remotePersonalReadOptions(_0x3524a8,_0x322863[0x0]):remoteMissingPersonalReadOptions(_0x322863[0x0]),..._0xa1dcad}),_0x18300a=_0x5b9090?.[_0x58b577(0xe1)]===_0x58b577(0xca)&&_0x5b9090[_0x58b577(0xd2)]===_0x1fd4c2['skillCode']?_0x5b9090:undefined,_0x4962de=_0x3524a8&&_0x18300a?withRetargetExistingMetadata(_0x1fd4c2[_0x58b577(0xdc)],_0x18300a,{'preferInputSkillName':Boolean(_0x1fd4c2[_0x58b577(0xab)])}):_0x1fd4c2['input'],_0x2e384d=_0x3524a8?buildRetargetWarning(_0x42d8e5['metadata'],_0x557d57['appCode']):[];_0x176cec={'scope':_0x58b577(0xca),'payload':_0x1fd4c2,'publishInput':withDiagram(_0x4962de,_0x2064ba),'remoteForPreflight':_0x18300a,'existing':_0x18300a,'warnings':[..._0x3b90aa['warnings'],..._0x2e384d]};}const _0x845ee6=await runRemoteContentPreflight({'scope':_0x176cec[_0x58b577(0xe1)],'remote':_0x176cec[_0x58b577(0xd3)],'publishInput':_0x176cec['publishInput'],'skillCode':_0x176cec[_0x58b577(0xad)]['skillCode'],'appCode':_0x557d57['appCode'],'downloadRuntimeSkillPackage':_0x2cbc60,'verifyRuntimeSkillBundle':_0xb3e9a2});if(_0x845ee6[_0x58b577(0xda)]===_0x58b577(0xcb))return _0x176cec[_0x58b577(0xe1)]===_0x58b577(0xbb)?_0x3b9b86(_0x11c739,_0x845ee6['savedSkill'],_0x557d57[_0x58b577(0xcf)],{'scope':_0x58b577(0xbb)}):_0x3b9b86(_0x11c739,_0x845ee6[_0x58b577(0xc8)],_0x557d57[_0x58b577(0xcf)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x845ee6[_0x58b577(0xc8)]),'scope':_0x176cec[_0x58b577(0xe1)],..._0x176cec['scope']===_0x58b577(0xca)?{'warnings':_0x176cec[_0x58b577(0xb4)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x176cec[_0x58b577(0xe1)])+_0x58b577(0xc2)+_0x176cec['payload'][_0x58b577(0xd2)]+_0x58b577(0xdf)};if(_0x176cec[_0x58b577(0xe1)]===_0x58b577(0xbb)){const _0x41300a=await _0x29f920(_0x557d57['appCode'],_0x176cec[_0x58b577(0xbe)],{'visibility':_0x58b577(0xaf)});throwIfPublishValidationFailed(_0x58b577(0xbb),_0x176cec[_0x58b577(0xad)]['skillCode'],_0x41300a),throwIfUnconfirmedPublishWarnings(_0x58b577(0xbb),_0x176cec[_0x58b577(0xad)]['skillCode'],_0x41300a[_0x58b577(0xb4)],_0x20e6c3);const _0x1f3823=await _0x315542(_0x557d57['appCode'],_0x176cec['publishInput'],{'confirmWarnings':_0x20e6c3});return _0x3b9b86(_0x11c739,{..._0x1f3823,'files':_0x176cec[_0x58b577(0xbe)][_0x58b577(0xc5)]},_0x557d57[_0x58b577(0xcf)],{'scope':_0x58b577(0xbb)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1f3823),'scope':_0x58b577(0xbb),'reviewState':_0x58b577(0xba),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x41300a['warnings']}},'message':_0x58b577(0xbf)+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]+'\x20version\x20'+(_0x1f3823[_0x58b577(0xb3)]??_0x58b577(0xb7))+'\x20for\x20review'};}const _0x25eb3b=await _0x29f920(_0x557d57['appCode'],_0x176cec[_0x58b577(0xbe)],{'visibility':_0x58b577(0xd5)});throwIfPublishValidationFailed(_0x58b577(0xca),_0x176cec['payload']['skillCode'],_0x25eb3b),throwIfUnconfirmedPublishWarnings('personal',_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x25eb3b[_0x58b577(0xb4)],_0x20e6c3);const _0x248c45={'confirmWarnings':_0x20e6c3},_0x3eefef=_0x176cec[_0x58b577(0xcd)]?await _0x2c3560(_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x557d57['appCode'],_0x176cec['publishInput'],_0x248c45):await _0x88ba68(_0x557d57[_0x58b577(0xcf)],_0x176cec[_0x58b577(0xbe)],_0x248c45);let _0x5682ec=_0x3eefef;if(isMultiFileManifest(_0x176cec[_0x58b577(0xbe)]['files'])){const _0x464ecf=await _0x2cbc60(_0x58b577(0xca),_0x3eefef[_0x58b577(0xd2)]||_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x557d57[_0x58b577(0xcf)]);_0xb3e9a2(_0x176cec['publishInput'][_0x58b577(0xc5)],_0x464ecf),_0x5682ec={..._0x3eefef,'files':_0x176cec[_0x58b577(0xbe)]['files']};}else{if(isPackageBackedManifest(_0x3eefef['files'])){const _0x433787=await _0x2cbc60(_0x58b577(0xca),_0x3eefef[_0x58b577(0xd2)]||_0x176cec['payload'][_0x58b577(0xd2)],_0x557d57[_0x58b577(0xcf)]);_0x30e340(_0x3eefef[_0x58b577(0xc5)],_0x433787);}}return _0x3b9b86(_0x11c739,_0x5682ec,_0x557d57['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3eefef),'warnings':_0x176cec['warnings'],'validation':{'warnings':_0x25eb3b['warnings']},'diagramBound':!![]},'message':_0x176cec[_0x58b577(0xcd)]?'Updated\x20personal\x20Skill\x20'+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]:_0x58b577(0xb8)+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]};}function scopeLabel(_0x32d6c8){const _0x231325=a75_0x1414;return _0x32d6c8===_0x231325(0xbb)?_0x231325(0xe0):_0x231325(0xb9);}function withDiagram(_0x43b9dc,_0x43cda8){return{..._0x43b9dc,'diagram':_0x43cda8};}function a75_0x1414(_0x174d1e,_0x5e57cc){_0x174d1e=_0x174d1e-0xab;const _0x490a8d=a75_0x490a();let _0x14143e=_0x490a8d[_0x174d1e];return _0x14143e;}function diagramPackageExclusion(_0x5e415b){return _0x5e415b?{'excludedFilePaths':[_0x5e415b]}:{};}
1
+ (function(_0x321bdc,_0x31e3f3){const _0x413232=a76_0x1a2b,_0x170a76=_0x321bdc();while(!![]){try{const _0x5bcbb8=parseInt(_0x413232(0x203))/0x1*(parseInt(_0x413232(0x1e5))/0x2)+-parseInt(_0x413232(0x21f))/0x3*(parseInt(_0x413232(0x1e7))/0x4)+-parseInt(_0x413232(0x214))/0x5+parseInt(_0x413232(0x1f2))/0x6+parseInt(_0x413232(0x1fc))/0x7*(-parseInt(_0x413232(0x20d))/0x8)+-parseInt(_0x413232(0x20b))/0x9*(-parseInt(_0x413232(0x200))/0xa)+-parseInt(_0x413232(0x1eb))/0xb;if(_0x5bcbb8===_0x31e3f3)break;else _0x170a76['push'](_0x170a76['shift']());}catch(_0x3bc83b){_0x170a76['push'](_0x170a76['shift']());}}}(a76_0x82fe,0xcf01d));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';function a76_0x1a2b(_0x814062,_0x2aca1){_0x814062=_0x814062-0x1e1;const _0x82fe1d=a76_0x82fe();let _0x1a2b15=_0x82fe1d[_0x814062];return _0x1a2b15;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1e87ee){const _0x5bfc5f=a76_0x1a2b,{getRuntimeSkillByCode:_0x10b553,validateRuntimeSkillPublish:_0x239e40}=await import(_0x5bfc5f(0x208)),{readPushDirectory:_0x18a09b,resolvePushDirectoryIdentity:_0x1a8ef8}=await import(_0x5bfc5f(0x204));if(!_0x1e87ee[_0x5bfc5f(0x213)])throw CliErrors[_0x5bfc5f(0x220)]();const _0x372b52=resolvePushScope(_0x1e87ee),_0x4def45=validateSkillDirectory(_0x1e87ee[_0x5bfc5f(0x215)](_0x5bfc5f(0x20a)));throwIfSkillValidationFailed(_0x4def45);const {diagram:_0x5363f9,sourceFilePath:_0xf2b8d1}=await readRequiredSkillDiagramInput(_0x1e87ee[_0x5bfc5f(0x215)](_0x5bfc5f(0x1f8))),_0x5133dc=diagramPackageExclusion(_0xf2b8d1),_0x5076a2=_0x1a8ef8(_0x4def45[_0x5bfc5f(0x20a)],_0x1e87ee[_0x5bfc5f(0x1e1)],remoteFirstMetadataOptions()),_0x4e4b0a=await _0x10b553(_0x1e87ee['appCode'],_0x5076a2[_0x5bfc5f(0x1fa)]);throwIfBuiltinPushTarget(_0x4e4b0a);if(_0x372b52==='company'){const _0x2fa4bd=_0x18a09b(_0x4def45[_0x5bfc5f(0x20a)],_0x1e87ee[_0x5bfc5f(0x1e1)],{...remoteMissingCompanyReadOptions(),..._0x5133dc}),_0x4caa24=await _0x239e40(_0x1e87ee[_0x5bfc5f(0x1e1)],withDiagram(_0x2fa4bd[_0x5bfc5f(0x206)],_0x5363f9),{'visibility':_0x5bfc5f(0x211)});return{'method':_0x5bfc5f(0x219),'url':_0x5bfc5f(0x1e6)+_0x1e87ee[_0x5bfc5f(0x1e1)]+_0x5bfc5f(0x1e3),'body':{'skillCode':_0x2fa4bd[_0x5bfc5f(0x1fa)],'visibility':_0x5bfc5f(0x211),'valid':_0x4caa24[_0x5bfc5f(0x212)],'errors':_0x4caa24['errors'],'warnings':_0x4caa24[_0x5bfc5f(0x21d)],'resolvedSlug':_0x4caa24[_0x5bfc5f(0x1f9)],'resolvedVersion':_0x4caa24['resolvedVersion'],'diagramValidated':_0x4caa24[_0x5bfc5f(0x1fd)]},'description':_0x5bfc5f(0x1ed)};}if(_0x4e4b0a&&_0x4e4b0a[_0x5bfc5f(0x217)]!=='personal')throw CliErrors['validation'](_0x5bfc5f(0x1ff)+_0x5076a2[_0x5bfc5f(0x1fa)]+_0x5bfc5f(0x207)+(_0x4e4b0a[_0x5bfc5f(0x217)]??'unknown')+'\x22.');const _0x431b52=_0x18a09b(_0x4def45[_0x5bfc5f(0x20a)],_0x1e87ee['appCode'],{..._0x4e4b0a?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5133dc}),_0x15ef0b=await _0x239e40(_0x1e87ee[_0x5bfc5f(0x1e1)],withDiagram(_0x431b52[_0x5bfc5f(0x206)],_0x5363f9),{'visibility':'PRIVATE'});return{'method':_0x5bfc5f(0x219),'url':_0x5bfc5f(0x1e6)+_0x1e87ee[_0x5bfc5f(0x1e1)]+_0x5bfc5f(0x1e3),'body':{'skillCode':_0x431b52[_0x5bfc5f(0x1fa)],'visibility':'PRIVATE','valid':_0x15ef0b[_0x5bfc5f(0x212)],'errors':_0x15ef0b[_0x5bfc5f(0x1f1)],'warnings':_0x15ef0b[_0x5bfc5f(0x21d)],'resolvedSlug':_0x15ef0b['resolvedSlug'],'resolvedVersion':_0x15ef0b[_0x5bfc5f(0x20e)],'diagramValidated':_0x15ef0b[_0x5bfc5f(0x1fd)]},'description':_0x5bfc5f(0x1e2)};}export async function skillPushExecute(_0x3ed1d3){const _0xa316bf=a76_0x1a2b,{createPersonalRuntimeSkill:_0x1184eb,downloadRuntimeSkillPackage:_0x13dea9,getRuntimeSkillByCode:_0x852d9a,publishCompanyRuntimeSkill:_0x137542,updatePersonalRuntimeSkill:_0x31f843,validateRuntimeSkillPublish:_0x26b1c0}=await import(_0xa316bf(0x208)),{verifyRuntimeSkillPackage:_0x45cbe4,verifyRuntimeSkillBundle:_0x1f5df2,readPushDirectory:_0x440f7f,refreshPushDirectoryMetadataFromRemote:_0x11ebbe,recordPushedRuntimeSkill:_0x496bde,resolvePushDirectoryIdentity:_0x1661e6}=await import('../../skills/runtime-skill-sync.js');if(!_0x3ed1d3['accessKey'])throw CliErrors[_0xa316bf(0x220)]();const _0x2ca78c=resolvePushScope(_0x3ed1d3),_0x22a0a5=_0x3ed1d3['bool'](_0xa316bf(0x20c))||_0x3ed1d3[_0xa316bf(0x202)]('confirmWarnings'),_0x56b1e5=validateSkillDirectory(_0x3ed1d3[_0xa316bf(0x215)](_0xa316bf(0x20a)));throwIfSkillValidationFailed(_0x56b1e5);const {diagram:_0x2ff489,sourceFilePath:_0x277110}=await readRequiredSkillDiagramInput(_0x3ed1d3[_0xa316bf(0x215)]('diagram-file')),_0x5a8273=diagramPackageExclusion(_0x277110),_0x1b430c=_0x56b1e5[_0xa316bf(0x20a)];let _0x41ec0d;if(_0x2ca78c===_0xa316bf(0x1f5)){const _0x14cf13=_0x1661e6(_0x1b430c,_0x3ed1d3[_0xa316bf(0x1e1)],remoteFirstMetadataOptions()),_0x1752ee=await _0x852d9a(_0x3ed1d3['appCode'],_0x14cf13['skillCode']);throwIfBuiltinPushTarget(_0x1752ee);if(_0x1752ee)_0x11ebbe(_0x1b430c,_0x1752ee,_0x3ed1d3[_0xa316bf(0x1e1)]);const _0x43db91=_0x440f7f(_0x1b430c,_0x3ed1d3[_0xa316bf(0x1e1)],{..._0x1752ee?{'targetScope':_0xa316bf(0x1f5),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x5a8273});_0x41ec0d={'scope':'company','payload':_0x43db91,'publishInput':withDiagram(_0x43db91['input'],_0x2ff489),'remoteForPreflight':_0x1752ee,'warnings':[]};}else{const _0x50a279=_0x3ed1d3[_0xa316bf(0x215)](_0xa316bf(0x21a))[_0xa316bf(0x205)](),_0x343b8d=Boolean(_0x50a279),_0x10be7d=allowRetargetArgs(_0x343b8d),_0x544666=_0x1661e6(_0x1b430c,_0x3ed1d3['appCode'],{...remoteFirstMetadataOptions(),..._0x10be7d[0x0]}),_0x2d33b0=await _0x852d9a(_0x3ed1d3[_0xa316bf(0x1e1)],_0x544666[_0xa316bf(0x1fa)]);throwIfBuiltinPushTarget(_0x2d33b0);if(_0x2d33b0){if(_0x2d33b0[_0xa316bf(0x217)]!==_0xa316bf(0x1ef)){if(_0x343b8d)throw CliErrors[_0xa316bf(0x209)](_0xa316bf(0x1ff)+_0x544666[_0xa316bf(0x1fa)]+_0xa316bf(0x207)+(_0x2d33b0[_0xa316bf(0x217)]??_0xa316bf(0x1f7))+'\x22.');_0x11ebbe(_0x1b430c,_0x2d33b0,_0x3ed1d3[_0xa316bf(0x1e1)]);}else!_0x343b8d&&_0x11ebbe(_0x1b430c,_0x2d33b0,_0x3ed1d3[_0xa316bf(0x1e1)]);}const _0x26b6bc=_0x440f7f(_0x1b430c,_0x3ed1d3[_0xa316bf(0x1e1)],{..._0x2d33b0?remotePersonalReadOptions(_0x343b8d,_0x10be7d[0x0]):remoteMissingPersonalReadOptions(_0x10be7d[0x0]),..._0x5a8273}),_0x4c39cf=_0x2d33b0?.[_0xa316bf(0x217)]===_0xa316bf(0x1ef)&&_0x2d33b0['skillCode']===_0x26b6bc[_0xa316bf(0x1fa)]?_0x2d33b0:undefined,_0x4bd94d=_0x343b8d&&_0x4c39cf?withRetargetExistingMetadata(_0x26b6bc[_0xa316bf(0x206)],_0x4c39cf,{'preferInputSkillName':Boolean(_0x26b6bc['frontmatterDisplayName'])}):_0x26b6bc['input'],_0x4ea8d5=_0x343b8d?buildRetargetWarning(_0x544666['metadata'],_0x3ed1d3[_0xa316bf(0x1e1)]):[];_0x41ec0d={'scope':_0xa316bf(0x1ef),'payload':_0x26b6bc,'publishInput':withDiagram(_0x4bd94d,_0x2ff489),'remoteForPreflight':_0x4c39cf,'existing':_0x4c39cf,'warnings':[..._0x56b1e5[_0xa316bf(0x21d)],..._0x4ea8d5]};}const _0x40656f=await runRemoteContentPreflight({'scope':_0x41ec0d['scope'],'remote':_0x41ec0d[_0xa316bf(0x216)],'publishInput':_0x41ec0d[_0xa316bf(0x1e9)],'skillCode':_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],'appCode':_0x3ed1d3[_0xa316bf(0x1e1)],'downloadRuntimeSkillPackage':_0x13dea9,'verifyRuntimeSkillBundle':_0x1f5df2});if(_0x40656f[_0xa316bf(0x21e)]===_0xa316bf(0x1f6))return _0x41ec0d['scope']===_0xa316bf(0x1f5)?_0x496bde(_0x1b430c,_0x40656f[_0xa316bf(0x1fb)],_0x3ed1d3[_0xa316bf(0x1e1)],{'scope':_0xa316bf(0x1f5)}):_0x496bde(_0x1b430c,_0x40656f['savedSkill'],_0x3ed1d3[_0xa316bf(0x1e1)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x40656f['savedSkill']),'scope':_0x41ec0d['scope'],..._0x41ec0d[_0xa316bf(0x217)]===_0xa316bf(0x1ef)?{'warnings':_0x41ec0d['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x41ec0d[_0xa316bf(0x217)])+_0xa316bf(0x210)+_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)]+_0xa316bf(0x1ec)};if(_0x41ec0d[_0xa316bf(0x217)]==='company'){const _0x53ef42=await _0x26b1c0(_0x3ed1d3[_0xa316bf(0x1e1)],_0x41ec0d[_0xa316bf(0x1e9)],{'visibility':_0xa316bf(0x211)});throwIfPublishValidationFailed('company',_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x53ef42),throwIfUnconfirmedPublishWarnings(_0xa316bf(0x1f5),_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x53ef42[_0xa316bf(0x21d)],_0x22a0a5);const _0x527b0a=await _0x137542(_0x3ed1d3[_0xa316bf(0x1e1)],_0x41ec0d['publishInput'],{'confirmWarnings':_0x22a0a5});return _0x496bde(_0x1b430c,{..._0x527b0a,'files':_0x41ec0d['publishInput'][_0xa316bf(0x1e8)]},_0x3ed1d3[_0xa316bf(0x1e1)],{'scope':_0xa316bf(0x1f5)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x527b0a),'scope':_0xa316bf(0x1f5),'reviewState':_0xa316bf(0x20f),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x53ef42[_0xa316bf(0x21d)]}},'message':_0xa316bf(0x1ea)+_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)]+_0xa316bf(0x21c)+(_0x527b0a[_0xa316bf(0x1ee)]??_0xa316bf(0x1f3))+_0xa316bf(0x1f0)};}const _0x3d01fa=await _0x26b1c0(_0x3ed1d3[_0xa316bf(0x1e1)],_0x41ec0d[_0xa316bf(0x1e9)],{'visibility':_0xa316bf(0x1f4)});throwIfPublishValidationFailed(_0xa316bf(0x1ef),_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x3d01fa),throwIfUnconfirmedPublishWarnings('personal',_0x41ec0d[_0xa316bf(0x218)]['skillCode'],_0x3d01fa[_0xa316bf(0x21d)],_0x22a0a5);const _0x1d087d={'confirmWarnings':_0x22a0a5},_0x2c3df6=_0x41ec0d[_0xa316bf(0x1fe)]?await _0x31f843(_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x3ed1d3[_0xa316bf(0x1e1)],_0x41ec0d[_0xa316bf(0x1e9)],_0x1d087d):await _0x1184eb(_0x3ed1d3[_0xa316bf(0x1e1)],_0x41ec0d[_0xa316bf(0x1e9)],_0x1d087d);let _0x5c3a17=_0x2c3df6;if(isMultiFileManifest(_0x41ec0d[_0xa316bf(0x1e9)]['files'])){const _0x4a3cf9=await _0x13dea9(_0xa316bf(0x1ef),_0x2c3df6['skillCode']||_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x3ed1d3[_0xa316bf(0x1e1)]);_0x1f5df2(_0x41ec0d[_0xa316bf(0x1e9)][_0xa316bf(0x1e8)],_0x4a3cf9),_0x5c3a17={..._0x2c3df6,'files':_0x41ec0d[_0xa316bf(0x1e9)][_0xa316bf(0x1e8)]};}else{if(isPackageBackedManifest(_0x2c3df6[_0xa316bf(0x1e8)])){const _0x4669bc=await _0x13dea9(_0xa316bf(0x1ef),_0x2c3df6[_0xa316bf(0x1fa)]||_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)],_0x3ed1d3[_0xa316bf(0x1e1)]);_0x45cbe4(_0x2c3df6[_0xa316bf(0x1e8)],_0x4669bc);}}return _0x496bde(_0x1b430c,_0x5c3a17,_0x3ed1d3['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2c3df6),'warnings':_0x41ec0d[_0xa316bf(0x21d)],'validation':{'warnings':_0x3d01fa['warnings']},'diagramBound':!![]},'message':_0x41ec0d[_0xa316bf(0x1fe)]?_0xa316bf(0x201)+_0x41ec0d[_0xa316bf(0x218)]['skillCode']:'Created\x20personal\x20Skill\x20'+_0x41ec0d[_0xa316bf(0x218)][_0xa316bf(0x1fa)]};}function a76_0x82fe(){const _0x45dfcc=['\x20Skill\x20','NAMESPACE_ONLY','valid','accessKey','3945270WqyjVr','str','remoteForPreflight','scope','payload','POST','appcode','Company','\x20version\x20','warnings','status','4145241EHycdO','authRequired','appCode','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','/publish/validate','Personal','146ucjItA','/api/cli/v1/skills/','4ZIFfLP','files','publishInput','Submitted\x20company\x20Skill\x20','541860bzamnG','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','version','personal','\x20for\x20review','errors','9209586oUTnNV','(unknown)','PRIVATE','company','identical','unknown','diagram-file','resolvedSlug','skillCode','savedSkill','1575168ckfhdF','diagramValidated','existing','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','271280bQGdkS','Updated\x20personal\x20Skill\x20','bool','17351sIcRDn','../../skills/runtime-skill-sync.js','trim','input','\x20has\x20scope=\x22','../../core/api-client.js','validation','dir','387VSFyyZ','confirm-warnings','32Exaseh','resolvedVersion','submitted'];a76_0x82fe=function(){return _0x45dfcc;};return a76_0x82fe();}function scopeLabel(_0x4d3cbd){const _0x5c4a05=a76_0x1a2b;return _0x4d3cbd===_0x5c4a05(0x1f5)?_0x5c4a05(0x21b):_0x5c4a05(0x1e4);}function withDiagram(_0x51910f,_0x4dff39){return{..._0x51910f,'diagram':_0x4dff39};}function diagramPackageExclusion(_0x348927){return _0x348927?{'excludedFilePaths':[_0x348927]}:{};}
@@ -1 +1 @@
1
- (function(_0x1d9e11,_0x460abe){const _0x4dac91=a76_0x459b,_0x175722=_0x1d9e11();while(!![]){try{const _0x4abf73=-parseInt(_0x4dac91(0x9c))/0x1+parseInt(_0x4dac91(0x90))/0x2+-parseInt(_0x4dac91(0x88))/0x3*(-parseInt(_0x4dac91(0x85))/0x4)+parseInt(_0x4dac91(0x83))/0x5+parseInt(_0x4dac91(0x95))/0x6+parseInt(_0x4dac91(0x87))/0x7*(parseInt(_0x4dac91(0xa5))/0x8)+-parseInt(_0x4dac91(0x7f))/0x9;if(_0x4abf73===_0x460abe)break;else _0x175722['push'](_0x175722['shift']());}catch(_0xb489f7){_0x175722['push'](_0x175722['shift']());}}}(a76_0x4e2b,0x737a6));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x5f186e){const _0x5bf07e=a76_0x459b,_0x3b5582=_0x5f186e[_0x5bf07e(0x81)](_0x5bf07e(0x9d))||_0x5bf07e(0x7d);if(_0x3b5582===_0x5bf07e(0x7d)||_0x3b5582==='company')return _0x3b5582;throw CliErrors[_0x5bf07e(0xa0)](_0x5bf07e(0x8b)+_0x3b5582+'\x22.');}export function allowRetargetArgs(_0x425da8){return _0x425da8?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a76_0x4e2b(){const _0x3b60f7=['version','errors','8JYyAiJ','not-applicable','identical','Review\x20each\x20warning\x20before\x20continuing.','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','files','length','personal','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','9666234bCpNrc','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','str','Personal','980320hItYaX','publishInput','20RBjCgS','verifyRuntimeSkillBundle','4169487VsWtQR','81717hGnGEE','Local\x20Skill\x20metadata\x20appCode\x20','different','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Warnings:\x20','builtin','join','skillCode','193078HJigog','company','\x20Skill\x20push\x20validation\x20failed\x20for\x20','skill-metadata-appcode-retargeted','lovrabet.skill.json','5583060UynKyl','SkillHub\x20validation\x20returned\x20invalid.','remote','warnings','\x20after\x20successful\x20push.','warning','downloadRuntimeSkillPackage','407925lHtWlq','scope','(unknown)','Company','validation','appCode','valid'];a76_0x4e2b=function(){return _0x3b60f7;};return a76_0x4e2b();}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x3fffd7=a76_0x459b;return{'targetScope':_0x3fffd7(0x91),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x481442={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x481442};}function a76_0x459b(_0x3d3f76,_0x10de2e){_0x3d3f76=_0x3d3f76-0x7b;const _0x4e2b47=a76_0x4e2b();let _0x459b93=_0x4e2b47[_0x3d3f76];return _0x459b93;}export function remotePersonalReadOptions(_0x1ddb7e,_0x1e0797={}){return{'ignoreInvalidMetadata':!![],..._0x1ddb7e?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1e0797};}export function throwIfBuiltinPushTarget(_0x455e1b){const _0xd4e2cc=a76_0x459b;if(_0x455e1b?.[_0xd4e2cc(0x9d)]!==_0xd4e2cc(0x8d))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0x455e1b[_0xd4e2cc(0x8f)]??_0xd4e2cc(0x9e))+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x5c4447,_0x528e25,_0x15c209){const _0x5cd5da=a76_0x459b;if(_0x15c209[_0x5cd5da(0xa4)][_0x5cd5da(0x7c)]===0x0&&(_0x15c209[_0x5cd5da(0xa2)]||_0x15c209[_0x5cd5da(0x98)][_0x5cd5da(0x7c)]>0x0))return;const _0xafcfc4=_0x15c209[_0x5cd5da(0xa4)][_0x5cd5da(0x7c)]>0x0?_0x15c209['errors'][_0x5cd5da(0x8e)](';\x20'):_0x5cd5da(0x96),_0x51a9ab=_0x5c4447===_0x5cd5da(0x91)?_0x5cd5da(0x9f):'Personal';throw CliErrors[_0x5cd5da(0xa0)](_0x51a9ab+_0x5cd5da(0x92)+_0x528e25+'.',_0xafcfc4);}export function throwIfUnconfirmedPublishWarnings(_0x578d5f,_0x377941,_0x5bdaed,_0x6aebab){const _0x321761=a76_0x459b;if(_0x5bdaed[_0x321761(0x7c)]===0x0||_0x6aebab)return;const _0x1cc486=_0x578d5f===_0x321761(0x91)?'Company':_0x321761(0x82);throw CliErrors[_0x321761(0xa0)](_0x1cc486+_0x321761(0x7e)+_0x377941+'.',[_0x321761(0xa8),_0x321761(0xa9),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x321761(0x8c)+_0x5bdaed[_0x321761(0x8e)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x108c52,_0x198819){const _0x579594=a76_0x459b;if(!_0x108c52?.['appCode']||_0x108c52[_0x579594(0xa1)]===_0x198819)return[];return[{'level':_0x579594(0x9a),'ruleId':_0x579594(0x93),'file':_0x579594(0x94),'message':_0x579594(0x89)+_0x108c52[_0x579594(0xa1)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x198819+_0x579594(0x99),'suggestion':_0x579594(0x80)}];}export async function runRemoteContentPreflight(_0x5487de){const _0x1b8bf8=a76_0x459b;if(!_0x5487de['remote']||_0x5487de[_0x1b8bf8(0x97)][_0x1b8bf8(0x9d)]!==_0x5487de[_0x1b8bf8(0x9d)]||!_0x5487de[_0x1b8bf8(0x84)][_0x1b8bf8(0x7b)])return{'status':_0x1b8bf8(0xa6)};const _0x1e5075=_0x5487de[_0x1b8bf8(0x97)][_0x1b8bf8(0x8f)]||_0x5487de['skillCode'];if(!_0x1e5075)return{'status':'not-applicable'};const _0x4ff84c=await _0x5487de[_0x1b8bf8(0x9b)](_0x5487de[_0x1b8bf8(0x9d)],_0x1e5075,_0x5487de['appCode'],_0x5487de[_0x1b8bf8(0x97)][_0x1b8bf8(0xa3)]);try{_0x5487de[_0x1b8bf8(0x86)](_0x5487de[_0x1b8bf8(0x84)]['files'],_0x4ff84c);}catch{return{'status':_0x1b8bf8(0x8a)};}return{'status':_0x1b8bf8(0xa7),'savedSkill':{..._0x5487de[_0x1b8bf8(0x97)],'content':_0x5487de[_0x1b8bf8(0x84)]['content'],'files':_0x5487de['publishInput'][_0x1b8bf8(0x7b)]}};}
1
+ (function(_0x1f1673,_0x3746a1){const _0x6f36c7=a77_0x58d0,_0x3dc69d=_0x1f1673();while(!![]){try{const _0xe05ba2=-parseInt(_0x6f36c7(0x11b))/0x1+-parseInt(_0x6f36c7(0x125))/0x2+parseInt(_0x6f36c7(0x10d))/0x3*(parseInt(_0x6f36c7(0x10c))/0x4)+parseInt(_0x6f36c7(0x11a))/0x5+-parseInt(_0x6f36c7(0x11f))/0x6*(parseInt(_0x6f36c7(0x112))/0x7)+-parseInt(_0x6f36c7(0x10f))/0x8+parseInt(_0x6f36c7(0x131))/0x9;if(_0xe05ba2===_0x3746a1)break;else _0x3dc69d['push'](_0x3dc69d['shift']());}catch(_0x132b56){_0x3dc69d['push'](_0x3dc69d['shift']());}}}(a77_0x2e6a,0xf3581));function a77_0x58d0(_0x4bd5cf,_0x5ed371){_0x4bd5cf=_0x4bd5cf-0x106;const _0x2e6a17=a77_0x2e6a();let _0x58d0a2=_0x2e6a17[_0x4bd5cf];return _0x58d0a2;}import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x13a046){const _0x4bc8b2=a77_0x58d0,_0x2fb59e=_0x13a046[_0x4bc8b2(0x126)](_0x4bc8b2(0x128))||_0x4bc8b2(0x129);if(_0x2fb59e==='personal'||_0x2fb59e===_0x4bc8b2(0x12a))return _0x2fb59e;throw CliErrors[_0x4bc8b2(0x110)](_0x4bc8b2(0x11e)+_0x2fb59e+'\x22.');}export function allowRetargetArgs(_0x8e1274){return _0x8e1274?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x24c5ef=a77_0x58d0;return{'targetScope':_0x24c5ef(0x12a),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x239c20={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x239c20};}export function remotePersonalReadOptions(_0x462d5a,_0x25fc1c={}){return{'ignoreInvalidMetadata':!![],..._0x462d5a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x25fc1c};}function a77_0x2e6a(){const _0x11a659=['1855694BxeTMw','downloadRuntimeSkillPackage','Warnings:\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','6330ZMkbLJ','Company','skill-metadata-appcode-retargeted','warnings','publishInput','join','460932jrkDKc','str','length','scope','personal','company','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','different','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Review\x20each\x20warning\x20before\x20continuing.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','40579137jMUWzY','(unknown)','errors','lovrabet.skill.json','files','\x20cannot\x20be\x20pushed.','verifyRuntimeSkillBundle','appCode','content','8Sxuzhp','256020EeBTgG','Local\x20Skill\x20metadata\x20appCode\x20','2581064RMsGQv','validation','warning','9464CLDeFZ','remote','Personal','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','skillCode','not-applicable','valid','762085aVpskD'];a77_0x2e6a=function(){return _0x11a659;};return a77_0x2e6a();}export function throwIfBuiltinPushTarget(_0x435b6b){const _0xd40ade=a77_0x58d0;if(_0x435b6b?.['scope']!=='builtin')return;throw CliErrors[_0xd40ade(0x110)]('Builtin\x20Skill\x20'+(_0x435b6b[_0xd40ade(0x117)]??_0xd40ade(0x132))+_0xd40ade(0x108),_0xd40ade(0x115));}export function throwIfPublishValidationFailed(_0x304187,_0x2e11ef,_0x453c33){const _0x434c13=a77_0x58d0;if(_0x453c33['errors'][_0x434c13(0x127)]===0x0&&(_0x453c33[_0x434c13(0x119)]||_0x453c33[_0x434c13(0x122)][_0x434c13(0x127)]>0x0))return;const _0x5983b8=_0x453c33['errors'][_0x434c13(0x127)]>0x0?_0x453c33[_0x434c13(0x133)]['join'](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x524999=_0x304187===_0x434c13(0x12a)?_0x434c13(0x120):_0x434c13(0x114);throw CliErrors[_0x434c13(0x110)](_0x524999+_0x434c13(0x130)+_0x2e11ef+'.',_0x5983b8);}export function throwIfUnconfirmedPublishWarnings(_0x7e86f0,_0x1fe946,_0x3a682b,_0xb67170){const _0x5137ff=a77_0x58d0;if(_0x3a682b[_0x5137ff(0x127)]===0x0||_0xb67170)return;const _0x3d9983=_0x7e86f0===_0x5137ff(0x12a)?_0x5137ff(0x120):_0x5137ff(0x114);throw CliErrors[_0x5137ff(0x110)](_0x3d9983+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x1fe946+'.',[_0x5137ff(0x12f),_0x5137ff(0x116),_0x5137ff(0x12d),_0x5137ff(0x11d)+_0x3a682b[_0x5137ff(0x124)](';\x20')][_0x5137ff(0x124)]('\x20'));}export function buildRetargetWarning(_0x50eea6,_0x5c5eaf){const _0x1d514b=a77_0x58d0;if(!_0x50eea6?.[_0x1d514b(0x10a)]||_0x50eea6[_0x1d514b(0x10a)]===_0x5c5eaf)return[];return[{'level':_0x1d514b(0x111),'ruleId':_0x1d514b(0x121),'file':_0x1d514b(0x106),'message':_0x1d514b(0x10e)+_0x50eea6[_0x1d514b(0x10a)]+_0x1d514b(0x12b)+_0x5c5eaf+'\x20after\x20successful\x20push.','suggestion':_0x1d514b(0x12e)}];}export async function runRemoteContentPreflight(_0xf6aba2){const _0x58438a=a77_0x58d0;if(!_0xf6aba2[_0x58438a(0x113)]||_0xf6aba2[_0x58438a(0x113)]['scope']!==_0xf6aba2[_0x58438a(0x128)]||!_0xf6aba2[_0x58438a(0x123)][_0x58438a(0x107)])return{'status':_0x58438a(0x118)};const _0x18f2eb=_0xf6aba2[_0x58438a(0x113)][_0x58438a(0x117)]||_0xf6aba2[_0x58438a(0x117)];if(!_0x18f2eb)return{'status':_0x58438a(0x118)};const _0x4ecf1d=await _0xf6aba2[_0x58438a(0x11c)](_0xf6aba2['scope'],_0x18f2eb,_0xf6aba2[_0x58438a(0x10a)],_0xf6aba2[_0x58438a(0x113)]['version']);try{_0xf6aba2[_0x58438a(0x109)](_0xf6aba2[_0x58438a(0x123)][_0x58438a(0x107)],_0x4ecf1d);}catch{return{'status':_0x58438a(0x12c)};}return{'status':'identical','savedSkill':{..._0xf6aba2[_0x58438a(0x113)],'content':_0xf6aba2[_0x58438a(0x123)][_0x58438a(0x10b)],'files':_0xf6aba2['publishInput'][_0x58438a(0x107)]}};}
@@ -1 +1 @@
1
- function a77_0x50e7(){const _0x330294=['Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','215787whKTau','preferInputSkillName','1070631TVZOfx','tags','11199710WOWFTb','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','37096PJxKkB','skillName','\x20after\x20successful\x20push.','3129xfOHdm','5896FaKSvd','2937858bXdNxG','version','4aYKqKi','appCode','isArray','2714900OTFpgE','description','sourceSessionId','9NQIiSk','Local\x20Skill\x20metadata\x20appCode\x20','skill-metadata-appcode-retargeted'];a77_0x50e7=function(){return _0x330294;};return a77_0x50e7();}function a77_0x467f(_0x4db86a,_0x496910){_0x4db86a=_0x4db86a-0x177;const _0x50e7f6=a77_0x50e7();let _0x467ffd=_0x50e7f6[_0x4db86a];return _0x467ffd;}(function(_0x399175,_0x44611e){const _0xb32937=a77_0x467f,_0x5758ea=_0x399175();while(!![]){try{const _0x4efada=parseInt(_0xb32937(0x182))/0x1+parseInt(_0xb32937(0x188))/0x2+parseInt(_0xb32937(0x184))/0x3+parseInt(_0xb32937(0x177))/0x4*(parseInt(_0xb32937(0x17a))/0x5)+parseInt(_0xb32937(0x18d))/0x6+parseInt(_0xb32937(0x18b))/0x7*(parseInt(_0xb32937(0x18c))/0x8)+parseInt(_0xb32937(0x17d))/0x9*(-parseInt(_0xb32937(0x186))/0xa);if(_0x4efada===_0x44611e)break;else _0x5758ea['push'](_0x5758ea['shift']());}catch(_0x415deb){_0x5758ea['push'](_0x5758ea['shift']());}}}(a77_0x50e7,0xcb717));export function withRetargetExistingMetadata(_0x29e426,_0x527178,_0x4b3c8d={}){const _0x4e6186=a77_0x467f,_0x1aa176=_0x4b3c8d[_0x4e6186(0x183)]?_0x29e426[_0x4e6186(0x189)]??_0x527178[_0x4e6186(0x189)]:_0x527178[_0x4e6186(0x189)]??_0x29e426[_0x4e6186(0x189)];return{..._0x29e426,'skillName':_0x1aa176,'description':_0x527178['description']??_0x29e426[_0x4e6186(0x17b)],'tags':Array[_0x4e6186(0x179)](_0x527178['tags'])?_0x527178[_0x4e6186(0x185)]:_0x29e426[_0x4e6186(0x185)],'version':_0x527178[_0x4e6186(0x18e)]??_0x29e426[_0x4e6186(0x18e)],'sourceSessionId':_0x527178[_0x4e6186(0x17c)]??_0x29e426[_0x4e6186(0x17c)]};}export function buildRetargetWarning(_0x58e59a,_0x328f14){const _0x11f56e=a77_0x467f;if(!_0x58e59a?.[_0x11f56e(0x178)]||_0x58e59a['appCode']===_0x328f14)return[];return[{'level':_0x11f56e(0x181),'ruleId':_0x11f56e(0x17f),'file':'lovrabet.skill.json','message':_0x11f56e(0x17e)+_0x58e59a['appCode']+_0x11f56e(0x187)+_0x328f14+_0x11f56e(0x18a),'suggestion':_0x11f56e(0x180)}];}
1
+ (function(_0xe26ece,_0x1c0478){const _0x41df36=a78_0x2c70,_0x32c21b=_0xe26ece();while(!![]){try{const _0xceab34=-parseInt(_0x41df36(0x177))/0x1*(-parseInt(_0x41df36(0x17b))/0x2)+parseInt(_0x41df36(0x169))/0x3*(-parseInt(_0x41df36(0x16c))/0x4)+parseInt(_0x41df36(0x176))/0x5+-parseInt(_0x41df36(0x16b))/0x6*(parseInt(_0x41df36(0x167))/0x7)+-parseInt(_0x41df36(0x178))/0x8*(-parseInt(_0x41df36(0x164))/0x9)+parseInt(_0x41df36(0x16d))/0xa+-parseInt(_0x41df36(0x165))/0xb;if(_0xceab34===_0x1c0478)break;else _0x32c21b['push'](_0x32c21b['shift']());}catch(_0xed1c50){_0x32c21b['push'](_0x32c21b['shift']());}}}(a78_0x5e0a,0xdda18));function a78_0x5e0a(){const _0xd34784=['21aMNmqp','Local\x20Skill\x20metadata\x20appCode\x20','1419snawaO','skill-metadata-appcode-retargeted','164454SMRfGi','13324BzGWtU','15721670voJDPj','appCode','description','version','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','isArray','skillName','lovrabet.skill.json','3212600fnAqsg','4THWMvI','16qKiyMT','warning','tags','264060zgkGzF','sourceSessionId','1595052hWtttx','5848403BwdfhO','preferInputSkillName'];a78_0x5e0a=function(){return _0xd34784;};return a78_0x5e0a();}function a78_0x2c70(_0xfe3985,_0x528d48){_0xfe3985=_0xfe3985-0x163;const _0x5e0a31=a78_0x5e0a();let _0x2c70d1=_0x5e0a31[_0xfe3985];return _0x2c70d1;}export function withRetargetExistingMetadata(_0x245476,_0x1392c2,_0xd98442={}){const _0xf33105=a78_0x2c70,_0x242b3e=_0xd98442[_0xf33105(0x166)]?_0x245476[_0xf33105(0x174)]??_0x1392c2[_0xf33105(0x174)]:_0x1392c2[_0xf33105(0x174)]??_0x245476[_0xf33105(0x174)];return{..._0x245476,'skillName':_0x242b3e,'description':_0x1392c2['description']??_0x245476[_0xf33105(0x16f)],'tags':Array[_0xf33105(0x173)](_0x1392c2[_0xf33105(0x17a)])?_0x1392c2[_0xf33105(0x17a)]:_0x245476[_0xf33105(0x17a)],'version':_0x1392c2[_0xf33105(0x170)]??_0x245476[_0xf33105(0x170)],'sourceSessionId':_0x1392c2[_0xf33105(0x163)]??_0x245476[_0xf33105(0x163)]};}export function buildRetargetWarning(_0x533f7c,_0xb108b5){const _0x36752e=a78_0x2c70;if(!_0x533f7c?.[_0x36752e(0x16e)]||_0x533f7c[_0x36752e(0x16e)]===_0xb108b5)return[];return[{'level':_0x36752e(0x179),'ruleId':_0x36752e(0x16a),'file':_0x36752e(0x175),'message':_0x36752e(0x168)+_0x533f7c['appCode']+_0x36752e(0x171)+_0xb108b5+_0x36752e(0x172),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- function a78_0x2846(){const _0xf37833=['10861130lvvBzl','191778OCAofT','1381947alaXVg','personal','company','Unsupported\x20Skill\x20list\x20scope:\x20','1FVeteB','trim','13558272uCRhqO','428740ricSrq','validation','Unsupported\x20Skill\x20sync\x20scope:\x20','2994550VcHGDV','all','6868638XAQmNN'];a78_0x2846=function(){return _0xf37833;};return a78_0x2846();}function a78_0x3a13(_0x2ca98e,_0x5f4e5a){_0x2ca98e=_0x2ca98e-0x9f;const _0x284633=a78_0x2846();let _0x3a1399=_0x284633[_0x2ca98e];return _0x3a1399;}(function(_0x191c04,_0x2c1c38){const _0x9712ae=a78_0x3a13,_0x40b662=_0x191c04();while(!![]){try{const _0x5c29df=-parseInt(_0x9712ae(0xad))/0x1*(-parseInt(_0x9712ae(0xa8))/0x2)+parseInt(_0x9712ae(0xa9))/0x3+-parseInt(_0x9712ae(0xa1))/0x4+-parseInt(_0x9712ae(0xa4))/0x5+parseInt(_0x9712ae(0xa6))/0x6+parseInt(_0x9712ae(0xa7))/0x7+-parseInt(_0x9712ae(0xa0))/0x8;if(_0x5c29df===_0x2c1c38)break;else _0x40b662['push'](_0x40b662['shift']());}catch(_0x405509){_0x40b662['push'](_0x40b662['shift']());}}}(a78_0x2846,0xd0036));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3edcb2){const _0x433fcf=a78_0x3a13,_0x230a65=_0x3edcb2[_0x433fcf(0x9f)]();if(!_0x230a65||_0x230a65===_0x433fcf(0xa5))return[_0x433fcf(0xaa),_0x433fcf(0xab)];if(_0x230a65===_0x433fcf(0xaa)||_0x230a65===_0x433fcf(0xab))return[_0x230a65];throw CliErrors['validation'](_0x433fcf(0xa3)+_0x3edcb2);}export function normalizeListScope(_0x4ef1a1){const _0x1aa5a6=a78_0x3a13,_0xfc36a0=_0x4ef1a1[_0x1aa5a6(0x9f)]();if(!_0xfc36a0)return _0x1aa5a6(0xa5);if(_0xfc36a0===_0x1aa5a6(0xaa)||_0xfc36a0===_0x1aa5a6(0xab)||_0xfc36a0===_0x1aa5a6(0xa5))return _0xfc36a0;throw CliErrors[_0x1aa5a6(0xa2)](_0x1aa5a6(0xac)+_0x4ef1a1);}export function shouldListScope(_0x56cd1e,_0x39e4e9){const _0x2cd0b5=a78_0x3a13;if(_0x56cd1e===_0x2cd0b5(0xa5))return!![];return _0x56cd1e===_0x39e4e9;}export function listScopeToRuntimeScopes(_0x5b57ef){const _0x566406=a78_0x3a13;if(_0x5b57ef==='all')return[_0x566406(0xaa),_0x566406(0xab)];return[_0x5b57ef===_0x566406(0xab)?_0x566406(0xab):_0x5b57ef];}export function listScopeToRemoteScope(_0x1b0cc8){return _0x1b0cc8;}
1
+ function a79_0x337d(){const _0x4d80d7=['308371lfLRta','636210rXHqNa','2506497uqRbWB','Unsupported\x20Skill\x20list\x20scope:\x20','2645256KpGtfk','466290wwYTNb','all','2nzHdWs','278038WVpaUU','8965400xHsjiB','530lHJDJM','18zwEWMD','Unsupported\x20Skill\x20sync\x20scope:\x20','company','trim','validation','personal'];a79_0x337d=function(){return _0x4d80d7;};return a79_0x337d();}(function(_0x3f51d9,_0x536aef){const _0x416440=a79_0xf211,_0x38dbed=_0x3f51d9();while(!![]){try{const _0x1e70e3=parseInt(_0x416440(0x1b8))/0x1*(-parseInt(_0x416440(0x1b7))/0x2)+-parseInt(_0x416440(0x1b2))/0x3+-parseInt(_0x416440(0x1b4))/0x4+-parseInt(_0x416440(0x1b5))/0x5+-parseInt(_0x416440(0x1bb))/0x6*(parseInt(_0x416440(0x1b0))/0x7)+-parseInt(_0x416440(0x1b9))/0x8+parseInt(_0x416440(0x1b1))/0x9*(parseInt(_0x416440(0x1ba))/0xa);if(_0x1e70e3===_0x536aef)break;else _0x38dbed['push'](_0x38dbed['shift']());}catch(_0x4aea86){_0x38dbed['push'](_0x38dbed['shift']());}}}(a79_0x337d,0x98bdb));function a79_0xf211(_0x328a09,_0x420578){_0x328a09=_0x328a09-0x1ad;const _0x337dbc=a79_0x337d();let _0xf211e8=_0x337dbc[_0x328a09];return _0xf211e8;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x4ff223){const _0x323475=a79_0xf211,_0x16065e=_0x4ff223[_0x323475(0x1ad)]();if(!_0x16065e||_0x16065e==='all')return['personal',_0x323475(0x1bd)];if(_0x16065e==='personal'||_0x16065e===_0x323475(0x1bd))return[_0x16065e];throw CliErrors[_0x323475(0x1ae)](_0x323475(0x1bc)+_0x4ff223);}export function normalizeListScope(_0x56bd0a){const _0x16dc8c=a79_0xf211,_0x10a616=_0x56bd0a[_0x16dc8c(0x1ad)]();if(!_0x10a616)return _0x16dc8c(0x1b6);if(_0x10a616===_0x16dc8c(0x1af)||_0x10a616==='company'||_0x10a616===_0x16dc8c(0x1b6))return _0x10a616;throw CliErrors['validation'](_0x16dc8c(0x1b3)+_0x56bd0a);}export function shouldListScope(_0x5dea59,_0x10db6d){const _0x4021ac=a79_0xf211;if(_0x5dea59===_0x4021ac(0x1b6))return!![];return _0x5dea59===_0x10db6d;}export function listScopeToRuntimeScopes(_0x269622){const _0x468d52=a79_0xf211;if(_0x269622==='all')return[_0x468d52(0x1af),'company'];return[_0x269622===_0x468d52(0x1bd)?_0x468d52(0x1bd):_0x269622];}export function listScopeToRemoteScope(_0x1c7590){return _0x1c7590;}
@@ -1 +1 @@
1
- (function(_0xbc3fc5,_0x14da87){var _0xd671bb=a79_0x5810,_0x2d2761=_0xbc3fc5();while(!![]){try{var _0x3dbcf4=-parseInt(_0xd671bb(0x8b))/0x1*(parseInt(_0xd671bb(0x9d))/0x2)+-parseInt(_0xd671bb(0x96))/0x3+parseInt(_0xd671bb(0x9c))/0x4+-parseInt(_0xd671bb(0x9f))/0x5*(parseInt(_0xd671bb(0x8a))/0x6)+parseInt(_0xd671bb(0x8c))/0x7*(parseInt(_0xd671bb(0x93))/0x8)+parseInt(_0xd671bb(0x89))/0x9+parseInt(_0xd671bb(0x95))/0xa;if(_0x3dbcf4===_0x14da87)break;else _0x2d2761['push'](_0x2d2761['shift']());}catch(_0x3449d9){_0x2d2761['push'](_0x2d2761['shift']());}}}(a79_0x51b4,0x46883));function a79_0x51b4(){var _0x3c4990=['7MoEQIR','appCode','version','tags','linkedPaths','skillName','readonly','4180968UVBsHr','cacheDir','5963120bYllbp','1585593IROKoa','treeHash','status','skillMdPath','metadataPath','scope','483944QWpfUo','2OdXcXT','skillCode','160060RdaKLN','5904BWYUkP','18JrKiWr','327109oFiQzl'];a79_0x51b4=function(){return _0x3c4990;};return a79_0x51b4();}export function summarizeRuntimeSkill(_0xda8ade){var _0x170633=a79_0x5810;return{'id':_0xda8ade['id'],'skillCode':_0xda8ade['skillCode'],'skillName':_0xda8ade[_0x170633(0x91)],'scope':_0xda8ade['scope'],'version':_0xda8ade[_0x170633(0x8e)],'readonly':_0xda8ade[_0x170633(0x92)]};}function a79_0x5810(_0x489251,_0x25c199){_0x489251=_0x489251-0x89;var _0x51b40f=a79_0x51b4();var _0x5810a3=_0x51b40f[_0x489251];return _0x5810a3;}export function summarizeLocalRuntimeSkill(_0x4747a4){var _0x14fd25=a79_0x5810;return{'id':_0x4747a4['id'],'skillCode':_0x4747a4[_0x14fd25(0x9e)],'skillName':_0x4747a4[_0x14fd25(0x91)],'scope':_0x4747a4[_0x14fd25(0x9b)],'appCode':_0x4747a4[_0x14fd25(0x8d)],'version':_0x4747a4[_0x14fd25(0x8e)],'status':_0x4747a4[_0x14fd25(0x98)],'readonly':_0x4747a4[_0x14fd25(0x92)],'tags':_0x4747a4[_0x14fd25(0x8f)],'dir':_0x4747a4['dir'],'cacheDir':_0x4747a4[_0x14fd25(0x94)],'skillMdPath':_0x4747a4[_0x14fd25(0x99)],'metadataPath':_0x4747a4[_0x14fd25(0x9a)],'linkedPaths':_0x4747a4[_0x14fd25(0x90)],'contentHash':_0x4747a4['contentHash'],'treeHash':_0x4747a4[_0x14fd25(0x97)],'pulledAt':_0x4747a4['pulledAt']};}
1
+ (function(_0x1b7c52,_0x9a13ea){var _0x333e58=a80_0x1e56,_0x3d77a6=_0x1b7c52();while(!![]){try{var _0x14570c=-parseInt(_0x333e58(0x163))/0x1+parseInt(_0x333e58(0x168))/0x2*(-parseInt(_0x333e58(0x15f))/0x3)+parseInt(_0x333e58(0x167))/0x4*(parseInt(_0x333e58(0x162))/0x5)+-parseInt(_0x333e58(0x165))/0x6*(-parseInt(_0x333e58(0x15e))/0x7)+parseInt(_0x333e58(0x16f))/0x8*(parseInt(_0x333e58(0x15c))/0x9)+-parseInt(_0x333e58(0x170))/0xa*(-parseInt(_0x333e58(0x166))/0xb)+parseInt(_0x333e58(0x16a))/0xc*(-parseInt(_0x333e58(0x15d))/0xd);if(_0x14570c===_0x9a13ea)break;else _0x3d77a6['push'](_0x3d77a6['shift']());}catch(_0x18a340){_0x3d77a6['push'](_0x3d77a6['shift']());}}}(a80_0x2def,0x1aba1));export function summarizeRuntimeSkill(_0x5b406c){var _0x158558=a80_0x1e56;return{'id':_0x5b406c['id'],'skillCode':_0x5b406c[_0x158558(0x164)],'skillName':_0x5b406c['skillName'],'scope':_0x5b406c[_0x158558(0x169)],'version':_0x5b406c['version'],'readonly':_0x5b406c[_0x158558(0x16e)]};}function a80_0x1e56(_0x2c0f8c,_0x3a7b82){_0x2c0f8c=_0x2c0f8c-0x157;var _0x2defcf=a80_0x2def();var _0x1e568f=_0x2defcf[_0x2c0f8c];return _0x1e568f;}export function summarizeLocalRuntimeSkill(_0x14b528){var _0x232d55=a80_0x1e56;return{'id':_0x14b528['id'],'skillCode':_0x14b528[_0x232d55(0x164)],'skillName':_0x14b528['skillName'],'scope':_0x14b528['scope'],'appCode':_0x14b528[_0x232d55(0x16b)],'version':_0x14b528[_0x232d55(0x159)],'status':_0x14b528[_0x232d55(0x15a)],'readonly':_0x14b528[_0x232d55(0x16e)],'tags':_0x14b528[_0x232d55(0x16c)],'dir':_0x14b528[_0x232d55(0x171)],'cacheDir':_0x14b528[_0x232d55(0x161)],'skillMdPath':_0x14b528['skillMdPath'],'metadataPath':_0x14b528[_0x232d55(0x160)],'linkedPaths':_0x14b528[_0x232d55(0x16d)],'contentHash':_0x14b528[_0x232d55(0x15b)],'treeHash':_0x14b528[_0x232d55(0x157)],'pulledAt':_0x14b528[_0x232d55(0x158)]};}function a80_0x2def(){var _0x10dc36=['47673cyNZer','759122SqUpZX','77rHUuUI','348wSUnFJ','metadataPath','cacheDir','35fuKYRj','103656urkRDT','skillCode','52854BSKPgR','101552aBsyhT','81556zmOnoE','1714jyCGxE','scope','60TjxqXV','appCode','tags','linkedPaths','readonly','328IwfBXD','160uSRZgF','dir','treeHash','pulledAt','version','status','contentHash'];a80_0x2def=function(){return _0x10dc36;};return a80_0x2def();}