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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/skills/builtin-skill.js +1 -1
  141. package/lib/skills/npx-skills-add.js +1 -1
  142. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  143. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  144. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  145. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  146. package/lib/skills/runtime-skill-sync/links.js +1 -1
  147. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  148. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  149. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  150. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  151. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  152. package/lib/skills/runtime-skill-sync/push.js +1 -1
  153. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  156. package/lib/skills/runtime-skill-sync.js +1 -1
  157. package/lib/skills/skill-presence.js +1 -1
  158. package/lib/utils/access-key-redaction.js +1 -1
  159. package/lib/utils/apply-jq-filter.js +1 -1
  160. package/lib/utils/cli-version-check.js +1 -1
  161. package/lib/utils/cli-version-policy.js +1 -1
  162. package/lib/utils/logger.js +1 -1
  163. package/lib/utils/lossless-json.js +1 -1
  164. package/lib/utils/params.js +1 -1
  165. package/lib/utils/platform.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +2 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a64_0x4a2669=a64_0x1caf;(function(_0x3f90be,_0x10c584){const _0x20cc53=a64_0x1caf,_0xc8d725=_0x3f90be();while(!![]){try{const _0x3cb407=parseInt(_0x20cc53(0x208))/0x1*(parseInt(_0x20cc53(0x20b))/0x2)+parseInt(_0x20cc53(0x1e9))/0x3+parseInt(_0x20cc53(0x1f8))/0x4*(parseInt(_0x20cc53(0x205))/0x5)+-parseInt(_0x20cc53(0x1f5))/0x6+parseInt(_0x20cc53(0x1ec))/0x7+parseInt(_0x20cc53(0x1f7))/0x8+-parseInt(_0x20cc53(0x1ff))/0x9*(parseInt(_0x20cc53(0x20d))/0xa);if(_0x3cb407===_0x10c584)break;else _0xc8d725['push'](_0xc8d725['shift']());}catch(_0x49ad58){_0xc8d725['push'](_0xc8d725['shift']());}}}(a64_0x5b07,0xccfda));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';function a64_0x5b07(){const _0x3920ec=['Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','str','6776205WwzKZO','map','skillName','73119VfUUQX','path','create','38KjPjAm','isSymbolicLink','10zgIvcL','target','1577901YAVZnB','content','Skill\x20directory\x20already\x20exists:\x20','1553965yRuUBo','trim','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','skillDir','name','files','read','skill','9061338SxvMrV','validation','11626992sKLsrb','4xOHlED','WRITE','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','Created\x20local\x20Skill\x20draft\x20','rendered','type','bool','23363757oexail','isDirectory','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','utf8'];a64_0x5b07=function(){return _0x3920ec;};return a64_0x5b07();}import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a64_0x4a2669(0x1f4),'command':a64_0x4a2669(0x20a),'description':a64_0x4a2669(0x201),'risk':a64_0x4a2669(0x1f3),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x530f61){const _0x430e71=a64_0x4a2669,_0x3ede61=buildSkillCreatePlan(_0x530f61['str']('name'),_0x530f61[_0x430e71(0x204)](_0x430e71(0x1fd)),_0x530f61[_0x430e71(0x204)]('target'));return{'method':_0x430e71(0x1f9),'url':_0x3ede61[_0x430e71(0x1f0)],'body':{'skillName':_0x3ede61[_0x430e71(0x1fc)]['skillName'],'type':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1fd)],'selfContained':!![],'files':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1f2)][_0x430e71(0x206)](_0x24afc0=>_0x24afc0[_0x430e71(0x209)])},'description':_0x430e71(0x1ee)};},async 'execute'(_0x50b656){const _0x503e1e=a64_0x4a2669,_0xa94206=buildSkillCreatePlan(_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1f1)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1fd)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x20e)));return writeSkillDraft(_0xa94206,_0x50b656[_0x503e1e(0x1fe)]('force')),{'ok':!![],'data':{'skillName':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x207)],'type':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1fd)],'dir':_0xa94206[_0x503e1e(0x1f0)],'files':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1f2)][_0x503e1e(0x206)](_0x5beb3d=>_0x5beb3d[_0x503e1e(0x209)])},'message':_0x503e1e(0x1fb)+_0xa94206['rendered']['skillName']};}};function buildSkillCreatePlan(_0x55f0ac,_0x2f438a,_0x5599cb){const _0x1930a0=a64_0x4a2669,_0x3fc4d5=_0x2f438a[_0x1930a0(0x1ed)](),_0x14e426=renderSkillTemplate({'skillName':_0x55f0ac,'type':_0x3fc4d5});!_0x3fc4d5&&writeCliSideChannelLine(_0x1930a0(0x1ef));const _0xcedb5e=resolve(normalizeSkillTarget(_0x5599cb));return{'rendered':_0x14e426,'targetRoot':_0xcedb5e,'skillDir':resolve(_0xcedb5e,_0x14e426[_0x1930a0(0x207)])};}function a64_0x1caf(_0x17c925,_0x9ac94b){_0x17c925=_0x17c925-0x1e9;const _0x5b07f4=a64_0x5b07();let _0x1caf2a=_0x5b07f4[_0x17c925];return _0x1caf2a;}function normalizeSkillTarget(_0x2f2caa){const _0x2d6020=a64_0x4a2669;return(_0x2f2caa||DEFAULT_SKILL_TARGET)[_0x2d6020(0x1ed)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x4db9a4,_0x1348ac){const _0x34b6dc=a64_0x4a2669;if(existsSync(_0x4db9a4[_0x34b6dc(0x1f0)])){const _0xf7da0b=lstatSync(_0x4db9a4[_0x34b6dc(0x1f0)]);if(!_0xf7da0b[_0x34b6dc(0x200)]()||_0xf7da0b[_0x34b6dc(0x20c)]())throw CliErrors['validation'](_0x34b6dc(0x1fa)+_0x4db9a4['skillDir']);if(!_0x1348ac)throw CliErrors[_0x34b6dc(0x1f6)](_0x34b6dc(0x1eb)+_0x4db9a4[_0x34b6dc(0x1f0)],_0x34b6dc(0x203));}for(const _0x5d1150 of _0x4db9a4['rendered'][_0x34b6dc(0x1f2)]){const _0x35c964=resolve(_0x4db9a4[_0x34b6dc(0x1f0)],_0x5d1150['path']),_0x1972dd=dirname(_0x35c964);mkdirSync(_0x1972dd,{'recursive':!![]});if(existsSync(_0x35c964)&&lstatSync(_0x35c964)['isSymbolicLink']())throw CliErrors[_0x34b6dc(0x1f6)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x35c964);writeFileSync(_0x35c964,_0x5d1150[_0x34b6dc(0x1ea)],_0x34b6dc(0x202));}}
1
+ const a64_0x59fe20=a64_0x3977;function a64_0x18cd(){const _0x47064b=['Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','validation','4PzYikM','path','skill','isDirectory','5315aPnzGQ','files','force','bool','skillDir','type','rendered','map','2032770dARPIx','create','609441Luzhkz','9mpVXUn','isSymbolicLink','6049568XhXmIv','Refusing\x20to\x20overwrite\x20symlink:\x20','read','1908ojukOz','content','target','22188qHUqFp','3619vefhFz','skillName','name','1127013IEpzwP','7ZGcDdg','trim','str','7739920CDkuay'];a64_0x18cd=function(){return _0x47064b;};return a64_0x18cd();}(function(_0x3378e3,_0x30eed9){const _0x2a0095=a64_0x3977,_0x266a12=_0x3378e3();while(!![]){try{const _0x4520ed=-parseInt(_0x2a0095(0x19a))/0x1+parseInt(_0x2a0095(0x1ae))/0x2*(-parseInt(_0x2a0095(0x1a7))/0x3)+-parseInt(_0x2a0095(0x1a0))/0x4*(-parseInt(_0x2a0095(0x1b2))/0x5)+parseInt(_0x2a0095(0x198))/0x6+parseInt(_0x2a0095(0x1a8))/0x7*(parseInt(_0x2a0095(0x19d))/0x8)+-parseInt(_0x2a0095(0x19b))/0x9*(-parseInt(_0x2a0095(0x1ab))/0xa)+parseInt(_0x2a0095(0x1a4))/0xb*(-parseInt(_0x2a0095(0x1a3))/0xc);if(_0x4520ed===_0x30eed9)break;else _0x266a12['push'](_0x266a12['shift']());}catch(_0x3cd1a6){_0x266a12['push'](_0x266a12['shift']());}}}(a64_0x18cd,0x63592));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':a64_0x59fe20(0x1b0),'command':a64_0x59fe20(0x199),'description':'Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','risk':a64_0x59fe20(0x19f),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x3a6442){const _0x4aa27e=a64_0x59fe20,_0x39104e=buildSkillCreatePlan(_0x3a6442['str'](_0x4aa27e(0x1a6)),_0x3a6442['str'](_0x4aa27e(0x195)),_0x3a6442[_0x4aa27e(0x1aa)](_0x4aa27e(0x1a2)));return{'method':'WRITE','url':_0x39104e[_0x4aa27e(0x194)],'body':{'skillName':_0x39104e[_0x4aa27e(0x196)][_0x4aa27e(0x1a5)],'type':_0x39104e['rendered'][_0x4aa27e(0x195)],'selfContained':!![],'files':_0x39104e[_0x4aa27e(0x196)][_0x4aa27e(0x1b3)][_0x4aa27e(0x197)](_0x2e4042=>_0x2e4042[_0x4aa27e(0x1af)])},'description':'Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.'};},async 'execute'(_0x469af6){const _0x5bd511=a64_0x59fe20,_0x5b5859=buildSkillCreatePlan(_0x469af6['str'](_0x5bd511(0x1a6)),_0x469af6[_0x5bd511(0x1aa)](_0x5bd511(0x195)),_0x469af6[_0x5bd511(0x1aa)](_0x5bd511(0x1a2)));return writeSkillDraft(_0x5b5859,_0x469af6[_0x5bd511(0x193)](_0x5bd511(0x1b4))),{'ok':!![],'data':{'skillName':_0x5b5859[_0x5bd511(0x196)][_0x5bd511(0x1a5)],'type':_0x5b5859[_0x5bd511(0x196)][_0x5bd511(0x195)],'dir':_0x5b5859[_0x5bd511(0x194)],'files':_0x5b5859[_0x5bd511(0x196)][_0x5bd511(0x1b3)][_0x5bd511(0x197)](_0x47cee9=>_0x47cee9[_0x5bd511(0x1af)])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x5b5859[_0x5bd511(0x196)][_0x5bd511(0x1a5)]};}};function a64_0x3977(_0x55ac98,_0x25d7f9){_0x55ac98=_0x55ac98-0x193;const _0x18cdbc=a64_0x18cd();let _0x397796=_0x18cdbc[_0x55ac98];return _0x397796;}function buildSkillCreatePlan(_0x34d69b,_0x3cad38,_0x503ee8){const _0x2e389f=a64_0x59fe20,_0x472f5f=_0x3cad38[_0x2e389f(0x1a9)](),_0x204586=renderSkillTemplate({'skillName':_0x34d69b,'type':_0x472f5f});!_0x472f5f&&writeCliSideChannelLine(_0x2e389f(0x1ac));const _0x1e6433=resolve(normalizeSkillTarget(_0x503ee8));return{'rendered':_0x204586,'targetRoot':_0x1e6433,'skillDir':resolve(_0x1e6433,_0x204586[_0x2e389f(0x1a5)])};}function normalizeSkillTarget(_0x58ef04){const _0x450e52=a64_0x59fe20;return(_0x58ef04||DEFAULT_SKILL_TARGET)[_0x450e52(0x1a9)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x2149bf,_0x3117ff){const _0x157575=a64_0x59fe20;if(existsSync(_0x2149bf['skillDir'])){const _0x340235=lstatSync(_0x2149bf[_0x157575(0x194)]);if(!_0x340235[_0x157575(0x1b1)]()||_0x340235[_0x157575(0x19c)]())throw CliErrors[_0x157575(0x1ad)]('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x2149bf[_0x157575(0x194)]);if(!_0x3117ff)throw CliErrors[_0x157575(0x1ad)]('Skill\x20directory\x20already\x20exists:\x20'+_0x2149bf[_0x157575(0x194)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x37a48d of _0x2149bf[_0x157575(0x196)][_0x157575(0x1b3)]){const _0x40580f=resolve(_0x2149bf[_0x157575(0x194)],_0x37a48d['path']),_0x495dfa=dirname(_0x40580f);mkdirSync(_0x495dfa,{'recursive':!![]});if(existsSync(_0x40580f)&&lstatSync(_0x40580f)[_0x157575(0x19c)]())throw CliErrors['validation'](_0x157575(0x19e)+_0x40580f);writeFileSync(_0x40580f,_0x37a48d[_0x157575(0x1a1)],'utf8');}}
@@ -1 +1 @@
1
- const a65_0x5e8aad=a65_0x1e5c;(function(_0x41d439,_0x4bb71b){const _0x1f8d85=a65_0x1e5c,_0x4bf937=_0x41d439();while(!![]){try{const _0x4bc75b=-parseInt(_0x1f8d85(0x1d8))/0x1+-parseInt(_0x1f8d85(0x1dc))/0x2*(-parseInt(_0x1f8d85(0x1de))/0x3)+parseInt(_0x1f8d85(0x1d6))/0x4+parseInt(_0x1f8d85(0x1db))/0x5*(parseInt(_0x1f8d85(0x1cd))/0x6)+-parseInt(_0x1f8d85(0x1c0))/0x7*(-parseInt(_0x1f8d85(0x1b6))/0x8)+parseInt(_0x1f8d85(0x1c2))/0x9*(parseInt(_0x1f8d85(0x1ca))/0xa)+-parseInt(_0x1f8d85(0x1cc))/0xb;if(_0x4bc75b===_0x4bb71b)break;else _0x4bf937['push'](_0x4bf937['shift']());}catch(_0x5ef58c){_0x4bf937['push'](_0x4bf937['shift']());}}}(a65_0x4432,0xa49d3));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x1f5029){const _0x126408=a65_0x1e5c,_0xb4ac71=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1d5))[_0x126408(0x1cf)](),_0xbe66c6=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1b3))['trim'](),_0x3ef824=_0x1f5029['str']('scope');if(!_0xb4ac71||!_0xbe66c6||_0x3ef824!=='personal'&&_0x3ef824!==_0x126408(0x1ce))throw CliErrors[_0x126408(0x1ba)](_0x126408(0x1b1));return{'skillCode':_0xb4ac71,'version':_0xbe66c6,'scope':_0x3ef824};}function a65_0x4432(){const _0x2d8ee4=['Created','659776ghTbuQ',';\x20next\x20write\x20expects\x20revision\x20','write','73765asldWa','450QyAORJ','appCode','13029wSvXTJ','Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','\x20Skill\x20diagram\x20for\x20','version','Skill\x20diagram\x20for\x20','expectedDiagramRevision','400Rrkhrb','scope','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','isInteger','validation','Skill\x20diagram\x20validation\x20passed\x20for\x20','skillCode','diagram-push','read','diagram-file','170107ihpdvU','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','719991CZBzoe','found','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','source-fingerprint','created','action','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','160VzLDpw','test','34203202HdwKie','78RWagRU','company','trim','expected-diagram-revision','str','skill','\x20is\x20unchanged.','Found\x20Skill\x20diagram\x20for\x20','skill-code','3117676bAMyfs'];a65_0x4432=function(){return _0x2d8ee4;};return a65_0x4432();}async function readDiagramWriteInput(_0x59c0a6){const _0x2084f4=a65_0x1e5c,_0x53bee0=_0x59c0a6['num'](_0x2084f4(0x1d0)),_0xefb12=_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1c5))[_0x2084f4(0x1cf)]();if(!Number[_0x2084f4(0x1b9)](_0x53bee0)||_0x53bee0<0x0)throw CliErrors[_0x2084f4(0x1ba)](_0x2084f4(0x1b8));if(!/^sha256:[0-9a-f]{64}$/[_0x2084f4(0x1cb)](_0xefb12))throw CliErrors['validation']('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x53bee0,'sourceFingerprint':_0xefb12,'diagram':await readRequiredSkillDiagram(_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1bf)))};}export const diagramValidateCommand={'service':a65_0x5e8aad(0x1d2),'command':'diagram-validate','description':a65_0x5e8aad(0x1c1),'risk':'read','flags':WRITE_FLAGS,async 'execute'(_0xf4c7e0){const _0x461f88=a65_0x5e8aad,_0x416789=readDiagramTarget(_0xf4c7e0),_0x148d68=await validateRuntimeSkillVersionDiagram(_0xf4c7e0[_0x461f88(0x1dd)],_0x416789[_0x461f88(0x1bc)],_0x416789['version'],_0x416789[_0x461f88(0x1b7)],await readDiagramWriteInput(_0xf4c7e0));return{'ok':!![],'data':_0x148d68,'message':_0x461f88(0x1bb)+_0x416789[_0x461f88(0x1bc)]+'@'+_0x416789[_0x461f88(0x1b3)]+'.'};}};function a65_0x1e5c(_0x3aac2f,_0x5a6c90){_0x3aac2f=_0x3aac2f-0x1b0;const _0x44325c=a65_0x4432();let _0x1e5c8c=_0x44325c[_0x3aac2f];return _0x1e5c8c;}export const diagramPushCommand={'service':a65_0x5e8aad(0x1d2),'command':a65_0x5e8aad(0x1bd),'description':a65_0x5e8aad(0x1c8),'risk':a65_0x5e8aad(0x1da),'confirmationDescription':a65_0x5e8aad(0x1b0),'flags':WRITE_FLAGS,async 'execute'(_0x2992e7){const _0x56e9e4=a65_0x5e8aad,_0x27d439=readDiagramTarget(_0x2992e7),_0x3af222=await putRuntimeSkillVersionDiagram(_0x2992e7['appCode'],_0x27d439[_0x56e9e4(0x1bc)],_0x27d439[_0x56e9e4(0x1b3)],_0x27d439[_0x56e9e4(0x1b7)],await readDiagramWriteInput(_0x2992e7));return{'ok':!![],'data':_0x3af222,'message':_0x3af222['action']==='unchanged'?_0x56e9e4(0x1b4)+_0x27d439[_0x56e9e4(0x1bc)]+'@'+_0x27d439[_0x56e9e4(0x1b3)]+_0x56e9e4(0x1d3):(_0x3af222[_0x56e9e4(0x1c7)]===_0x56e9e4(0x1c6)?_0x56e9e4(0x1d7):'Updated')+_0x56e9e4(0x1b2)+_0x27d439['skillCode']+'@'+_0x27d439[_0x56e9e4(0x1b3)]+'.'};}};export const diagramShowCommand={'service':'skill','command':'diagram-show','description':a65_0x5e8aad(0x1c4),'risk':a65_0x5e8aad(0x1be),'flags':TARGET_FLAGS,async 'execute'(_0x5947aa){const _0x53a51c=a65_0x5e8aad,_0x34efb6=readDiagramTarget(_0x5947aa),_0x3ab87f=await getRuntimeSkillVersionDiagram(_0x5947aa[_0x53a51c(0x1dd)],_0x34efb6['skillCode'],_0x34efb6['version'],_0x34efb6[_0x53a51c(0x1b7)]);return{'ok':!![],'data':_0x3ab87f,'message':_0x3ab87f[_0x53a51c(0x1c3)]?_0x53a51c(0x1d4)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6['version']+_0x53a51c(0x1d9)+_0x3ab87f[_0x53a51c(0x1b5)]+'.':_0x53a51c(0x1c9)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6[_0x53a51c(0x1b3)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x3ab87f[_0x53a51c(0x1b5)]+'.'};}};
1
+ const a65_0x3d1a1e=a65_0x14cd;(function(_0x5e4c23,_0x111f7c){const _0x29e23e=a65_0x14cd,_0x5235bd=_0x5e4c23();while(!![]){try{const _0x19cbb4=parseInt(_0x29e23e(0x108))/0x1+-parseInt(_0x29e23e(0x10a))/0x2*(-parseInt(_0x29e23e(0x126))/0x3)+parseInt(_0x29e23e(0xfb))/0x4*(parseInt(_0x29e23e(0xfc))/0x5)+parseInt(_0x29e23e(0x10e))/0x6*(parseInt(_0x29e23e(0x111))/0x7)+-parseInt(_0x29e23e(0xfe))/0x8+parseInt(_0x29e23e(0x11b))/0x9+-parseInt(_0x29e23e(0x11f))/0xa;if(_0x19cbb4===_0x111f7c)break;else _0x5235bd['push'](_0x5235bd['shift']());}catch(_0x1291ff){_0x5235bd['push'](_0x5235bd['shift']());}}}(a65_0xff9b,0x96fbf));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a65_0x14cd(_0x5a96c1,_0x34e690){_0x5a96c1=_0x5a96c1-0xfb;const _0xff9b8c=a65_0xff9b();let _0x14cd5d=_0xff9b8c[_0x5a96c1];return _0x14cd5d;}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(_0x290e6b){const _0x3e7a67=a65_0x14cd,_0xde5ac9=_0x290e6b[_0x3e7a67(0x101)](_0x3e7a67(0x107))[_0x3e7a67(0x127)](),_0x1b72a4=_0x290e6b['str'](_0x3e7a67(0x117))[_0x3e7a67(0x127)](),_0x272669=_0x290e6b[_0x3e7a67(0x101)](_0x3e7a67(0x112));if(!_0xde5ac9||!_0x1b72a4||_0x272669!=='personal'&&_0x272669!=='company')throw CliErrors['validation'](_0x3e7a67(0x11e));return{'skillCode':_0xde5ac9,'version':_0x1b72a4,'scope':_0x272669};}async function readDiagramWriteInput(_0x27abb3){const _0x3ea457=a65_0x14cd,_0x37aeed=_0x27abb3[_0x3ea457(0x104)](_0x3ea457(0x114)),_0xdb6de5=_0x27abb3[_0x3ea457(0x101)](_0x3ea457(0x118))[_0x3ea457(0x127)]();if(!Number['isInteger'](_0x37aeed)||_0x37aeed<0x0)throw CliErrors[_0x3ea457(0x125)]('--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.');if(!/^sha256:[0-9a-f]{64}$/[_0x3ea457(0x119)](_0xdb6de5))throw CliErrors[_0x3ea457(0x125)](_0x3ea457(0x122));return{'expectedDiagramRevision':_0x37aeed,'sourceFingerprint':_0xdb6de5,'diagram':await readRequiredSkillDiagram(_0x27abb3[_0x3ea457(0x101)]('diagram-file'))};}export const diagramValidateCommand={'service':a65_0x3d1a1e(0x105),'command':'diagram-validate','description':a65_0x3d1a1e(0x128),'risk':a65_0x3d1a1e(0x124),'flags':WRITE_FLAGS,async 'execute'(_0x51e0e4){const _0x5c4179=a65_0x3d1a1e,_0x3287cf=readDiagramTarget(_0x51e0e4),_0x56c10b=await validateRuntimeSkillVersionDiagram(_0x51e0e4[_0x5c4179(0x11c)],_0x3287cf['skillCode'],_0x3287cf[_0x5c4179(0x117)],_0x3287cf['scope'],await readDiagramWriteInput(_0x51e0e4));return{'ok':!![],'data':_0x56c10b,'message':_0x5c4179(0x116)+_0x3287cf[_0x5c4179(0x103)]+'@'+_0x3287cf[_0x5c4179(0x117)]+'.'};}};function a65_0xff9b(){const _0x39ee83=['Created','2978YiSvpk','\x20is\x20unchanged.','Updated','created','5365470mIBMDv','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','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.','7CLsuZx','scope','diagram-show','expected-diagram-revision','Found\x20Skill\x20diagram\x20for\x20','Skill\x20diagram\x20validation\x20passed\x20for\x20','version','source-fingerprint','test','unchanged','4856499jvmHmR','appCode','found','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','23255180fyXwIG','diagram-push','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','Skill\x20diagram\x20for\x20','read','validation','1920vQIxer','trim','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','160BQakCX','33575PGUJkI','action','2114424YxbzZg','write',';\x20next\x20write\x20expects\x20revision\x20','str','expectedDiagramRevision','skillCode','num','skill','\x20Skill\x20diagram\x20for\x20','skill-code','552836OPBnqR'];a65_0xff9b=function(){return _0x39ee83;};return a65_0xff9b();}export const diagramPushCommand={'service':a65_0x3d1a1e(0x105),'command':a65_0x3d1a1e(0x120),'description':a65_0x3d1a1e(0x10f),'risk':a65_0x3d1a1e(0xff),'confirmationDescription':a65_0x3d1a1e(0x110),'flags':WRITE_FLAGS,async 'execute'(_0x273fbc){const _0x2ff54e=a65_0x3d1a1e,_0x241e76=readDiagramTarget(_0x273fbc),_0x2f2ed0=await putRuntimeSkillVersionDiagram(_0x273fbc[_0x2ff54e(0x11c)],_0x241e76[_0x2ff54e(0x103)],_0x241e76[_0x2ff54e(0x117)],_0x241e76[_0x2ff54e(0x112)],await readDiagramWriteInput(_0x273fbc));return{'ok':!![],'data':_0x2f2ed0,'message':_0x2f2ed0[_0x2ff54e(0xfd)]===_0x2ff54e(0x11a)?_0x2ff54e(0x123)+_0x241e76['skillCode']+'@'+_0x241e76['version']+_0x2ff54e(0x10b):(_0x2f2ed0[_0x2ff54e(0xfd)]===_0x2ff54e(0x10d)?_0x2ff54e(0x109):_0x2ff54e(0x10c))+_0x2ff54e(0x106)+_0x241e76[_0x2ff54e(0x103)]+'@'+_0x241e76[_0x2ff54e(0x117)]+'.'};}};export const diagramShowCommand={'service':a65_0x3d1a1e(0x105),'command':a65_0x3d1a1e(0x113),'description':'Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','risk':a65_0x3d1a1e(0x124),'flags':TARGET_FLAGS,async 'execute'(_0x486756){const _0x27a726=a65_0x3d1a1e,_0x1183ab=readDiagramTarget(_0x486756),_0x5c2fb3=await getRuntimeSkillVersionDiagram(_0x486756[_0x27a726(0x11c)],_0x1183ab[_0x27a726(0x103)],_0x1183ab[_0x27a726(0x117)],_0x1183ab[_0x27a726(0x112)]);return{'ok':!![],'data':_0x5c2fb3,'message':_0x5c2fb3[_0x27a726(0x11d)]?_0x27a726(0x115)+_0x1183ab[_0x27a726(0x103)]+'@'+_0x1183ab[_0x27a726(0x117)]+_0x27a726(0x100)+_0x5c2fb3['expectedDiagramRevision']+'.':_0x27a726(0x121)+_0x1183ab[_0x27a726(0x103)]+'@'+_0x1183ab[_0x27a726(0x117)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x5c2fb3[_0x27a726(0x102)]+'.'};}};
@@ -1 +1 @@
1
- const a66_0x32fce6=a66_0x412b;(function(_0x13f538,_0x56ca92){const _0x15bce2=a66_0x412b,_0x4ed8ff=_0x13f538();while(!![]){try{const _0x27213f=-parseInt(_0x15bce2(0x151))/0x1*(-parseInt(_0x15bce2(0x14c))/0x2)+-parseInt(_0x15bce2(0x130))/0x3+parseInt(_0x15bce2(0x150))/0x4*(-parseInt(_0x15bce2(0x146))/0x5)+-parseInt(_0x15bce2(0x138))/0x6+parseInt(_0x15bce2(0x14d))/0x7*(parseInt(_0x15bce2(0x148))/0x8)+parseInt(_0x15bce2(0x154))/0x9+-parseInt(_0x15bce2(0x136))/0xa*(parseInt(_0x15bce2(0x142))/0xb);if(_0x27213f===_0x56ca92)break;else _0x4ed8ff['push'](_0x4ed8ff['shift']());}catch(_0x37b941){_0x4ed8ff['push'](_0x4ed8ff['shift']());}}}(a66_0x5715,0xa3669));function a66_0x5715(){const _0x338beb=['scope','bool','removed','trim','action','global','authRequired','length','../../../skills/runtime-skill-sync.js','139843DYyeDU','str','\x20company\x20Skill(s).','filter','5090oCnExV','skillCode','371216XeFtwp','company','Installed\x20','personal','2239298vkSsqV','70RphQFB','skill','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','24fFilWY','1vbRPNe','force','map','6758379LPQzSw','project','all','appCode','includes','3389832NWpuus','skipped','updated','skillRoots','created','from','170GVhRDL','unchanged','1878828UwlTVk'];a66_0x5715=function(){return _0x338beb;};return a66_0x5715();}import{CliErrors}from'../../../errors.js';function a66_0x412b(_0x3b9d25,_0x321893){_0x3b9d25=_0x3b9d25-0x12c;const _0x571588=a66_0x5715();let _0x412b79=_0x571588[_0x3b9d25];return _0x412b79;}import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a66_0x32fce6(0x14e),'command':'install','description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x363ab6){return syncRuntimeSkills(_0x363ab6);}};async function syncRuntimeSkills(_0x23dfef){const _0x5e6ea9=a66_0x32fce6,{downloadRuntimeSkillPackage:_0x3bb976,listRuntimeSkills:_0x7ec556}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x305073,materializeRuntimeSkill:_0x5395f6,pruneStaleRuntimeSkillCache:_0x14bc88,pruneStaleRuntimeSkillLinks:_0x2e169e,resolveRuntimeSkillInstallTarget:_0xaaa7e9,reuseMaterializedRuntimeSkill:_0x39145c}=await import(_0x5e6ea9(0x141)),_0x3dab61=_0x23dfef[_0x5e6ea9(0x143)]('code'),_0x208e20=normalizeSyncScopes(_0x23dfef[_0x5e6ea9(0x143)]('scope')),_0x37c918=_0x23dfef['envName']??'production',_0x41fa6d=_0x23dfef['accessKey'],_0x4f168c=_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x152));if(!_0x41fa6d)throw CliErrors[_0x5e6ea9(0x13f)](_0x5e6ea9(0x14f));const _0x3eb88c=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x12c))?_0x5e6ea9(0x12c):_0x5e6ea9(0x13e)),_0x500127=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x3eb88c[_0x5e6ea9(0x139)]===_0x5e6ea9(0x12c)?_0x5e6ea9(0x13e):_0x5e6ea9(0x12c)),_0x1bfa94=await _0x7ec556({'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'scope':_0x208e20[_0x5e6ea9(0x140)]===0x1?_0x208e20[0x0]:_0x5e6ea9(0x12d),'code':_0x3dab61[_0x5e6ea9(0x13c)]()||undefined}),_0x345aef=_0x208e20[_0x5e6ea9(0x12f)](_0x5e6ea9(0x14b))?_0x1bfa94[_0x5e6ea9(0x14b)]:[],_0x4e7dda=_0x208e20[_0x5e6ea9(0x12f)]('company')?_0x1bfa94[_0x5e6ea9(0x149)]:[],_0x56d700=new Set([..._0x345aef[_0x5e6ea9(0x153)](_0x3deefa=>_0x3deefa[_0x5e6ea9(0x147)]?.['trim']())[_0x5e6ea9(0x145)](_0x318dc8=>Boolean(_0x318dc8)),..._0x4e7dda['map'](_0x517173=>_0x517173[_0x5e6ea9(0x147)]?.[_0x5e6ea9(0x13c)]())[_0x5e6ea9(0x145)](_0x181379=>Boolean(_0x181379))]),_0x30ba8e=_0x3dab61[_0x5e6ea9(0x13c)]()?[_0x3dab61[_0x5e6ea9(0x13c)]()]:undefined,_0x58fba9=_0x208e20[_0x5e6ea9(0x140)]===0x2&&_0x208e20['includes']('personal')&&_0x208e20['includes'](_0x5e6ea9(0x149)),_0x329412=_0x58fba9?_0x2e169e(_0x3eb88c,_0x56d700,_0x30ba8e):[],_0x56e32a=_0x14bc88({'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'activeSkillCodes':_0x56d700,'pruneSkillCodes':_0x30ba8e,'scopes':_0x208e20,'protectedLinkRoots':_0x500127[_0x5e6ea9(0x133)]}),_0x283612=[..._0x345aef[_0x5e6ea9(0x153)](_0x1c85fd=>({'skill':_0x1c85fd,'scope':_0x5e6ea9(0x14b)})),..._0x4e7dda[_0x5e6ea9(0x153)](_0x4e29e4=>({'skill':_0x4e29e4,'scope':_0x5e6ea9(0x149)}))],_0x33da47=await mapConcurrent(_0x283612,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x475a7b,scope:_0x210a97})=>{const _0xd2be9e=_0x5e6ea9,_0x319aaf=_0x39145c(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)]});if(_0x319aaf)return _0x319aaf;return _0x5395f6(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)],'force':_0x4f168c,'packageBytes':await downloadSkillPackage(_0x475a7b,_0x210a97,_0x23dfef['appCode'],_0x3bb976)});}),_0x51fe1e=_0x305073(_0x33da47,_0x3eb88c),_0x31f8d8=countLinkActions(_0x51fe1e);return{'ok':!![],'data':{'appCode':_0x23dfef[_0x5e6ea9(0x12e)],..._0x3eb88c['scope']===_0x5e6ea9(0x12c)?{'installTarget':{'scope':_0x3eb88c[_0x5e6ea9(0x139)],'skillRoots':[..._0x3eb88c['skillRoots']]}}:{},'personal':_0x345aef[_0x5e6ea9(0x140)],'company':_0x4e7dda[_0x5e6ea9(0x140)],'materialized':_0x33da47[_0x5e6ea9(0x140)],'links':{'total':_0x51fe1e[_0x5e6ea9(0x140)],'created':_0x31f8d8[_0x5e6ea9(0x134)]??0x0,'updated':_0x31f8d8[_0x5e6ea9(0x132)]??0x0,'unchanged':_0x31f8d8[_0x5e6ea9(0x137)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x329412[_0x5e6ea9(0x145)](_0x365738=>_0x365738[_0x5e6ea9(0x13d)]===_0x5e6ea9(0x13b))[_0x5e6ea9(0x140)],'cacheDirs':_0x56e32a[_0x5e6ea9(0x145)](_0xf60b3f=>_0xf60b3f['action']==='removed')[_0x5e6ea9(0x140)],'skipped':[..._0x329412,..._0x56e32a][_0x5e6ea9(0x145)](_0x4d9c3c=>_0x4d9c3c['action']===_0x5e6ea9(0x131))['length']},'skills':{'personal':_0x345aef[_0x5e6ea9(0x153)](summarizeRuntimeSkill),'company':_0x4e7dda[_0x5e6ea9(0x153)](summarizeRuntimeSkill)}},'message':_0x5e6ea9(0x14a)+_0x345aef['length']+'\x20personal\x20and\x20'+_0x4e7dda['length']+_0x5e6ea9(0x144)};}async function mapConcurrent(_0x161f75,_0x4d878b,_0x59ce62){const _0x47d3bf=a66_0x32fce6,_0x538285=new Array(_0x161f75[_0x47d3bf(0x140)]);let _0x433fa4=0x0;const _0x404617=Array[_0x47d3bf(0x135)]({'length':Math['min'](_0x4d878b,_0x161f75[_0x47d3bf(0x140)])},async()=>{while(_0x433fa4<_0x161f75['length']){const _0x214d2e=_0x433fa4;_0x433fa4+=0x1,_0x538285[_0x214d2e]=await _0x59ce62(_0x161f75[_0x214d2e]);}});return await Promise[_0x47d3bf(0x12d)](_0x404617),_0x538285;}async function downloadSkillPackage(_0x1ed2ba,_0x1b678c,_0x5c17b7,_0x2f66c2){const _0x34db48=a66_0x32fce6,_0x943ed=_0x1ed2ba['version']?.[_0x34db48(0x13c)]();return _0x943ed?_0x2f66c2(_0x1b678c,_0x1ed2ba['skillCode'],_0x5c17b7,_0x943ed):_0x2f66c2(_0x1b678c,_0x1ed2ba[_0x34db48(0x147)],_0x5c17b7);}function countLinkActions(_0x2dc243){return _0x2dc243['reduce']((_0x538451,_0x470e24)=>{const _0x48aa5a=a66_0x412b;return _0x538451[_0x470e24[_0x48aa5a(0x13d)]]=(_0x538451[_0x470e24[_0x48aa5a(0x13d)]]??0x0)+0x1,_0x538451;},{});}
1
+ const a66_0x5277f4=a66_0x392b;(function(_0xd82530,_0xca9e4e){const _0x5e592c=a66_0x392b,_0x4271ef=_0xd82530();while(!![]){try{const _0xf0b6ac=-parseInt(_0x5e592c(0x121))/0x1+parseInt(_0x5e592c(0x111))/0x2+parseInt(_0x5e592c(0x10b))/0x3+-parseInt(_0x5e592c(0x10a))/0x4+-parseInt(_0x5e592c(0x106))/0x5*(-parseInt(_0x5e592c(0x109))/0x6)+parseInt(_0x5e592c(0x105))/0x7+-parseInt(_0x5e592c(0x11e))/0x8;if(_0xf0b6ac===_0xca9e4e)break;else _0x4271ef['push'](_0x4271ef['shift']());}catch(_0x5d1fd3){_0x4271ef['push'](_0x4271ef['shift']());}}}(a66_0x40dd,0xd0bde));import{CliErrors}from'../../../errors.js';function a66_0x392b(_0x4b73e1,_0x203157){_0x4b73e1=_0x4b73e1-0xfe;const _0x40dd83=a66_0x40dd();let _0x392bf0=_0x40dd83[_0x4b73e1];return _0x392bf0;}import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a66_0x5277f4(0x118),'command':'install','description':a66_0x5277f4(0x116),'risk':a66_0x5277f4(0x122),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x49128b){return syncRuntimeSkills(_0x49128b);}};async function syncRuntimeSkills(_0x5c7f66){const _0x11aeee=a66_0x5277f4,{downloadRuntimeSkillPackage:_0x463555,listRuntimeSkills:_0xde3ee}=await import(_0x11aeee(0x100)),{linkEffectiveRuntimeSkills:_0x5b9c1b,materializeRuntimeSkill:_0xbb2c92,pruneStaleRuntimeSkillCache:_0x222394,pruneStaleRuntimeSkillLinks:_0x46ddee,resolveRuntimeSkillInstallTarget:_0xa5fb1d,reuseMaterializedRuntimeSkill:_0x1d0579}=await import(_0x11aeee(0x120)),_0xac0ac0=_0x5c7f66[_0x11aeee(0x129)](_0x11aeee(0x123)),_0x542af9=normalizeSyncScopes(_0x5c7f66['str'](_0x11aeee(0x11a))),_0x267a91=_0x5c7f66['envName']??_0x11aeee(0x102),_0x5bc63f=_0x5c7f66[_0x11aeee(0x115)],_0x551e6f=_0x5c7f66[_0x11aeee(0x107)]('force');if(!_0x5bc63f)throw CliErrors[_0x11aeee(0x11f)](_0x11aeee(0x11d));const _0x5e1516=_0xa5fb1d(_0x5c7f66[_0x11aeee(0x103)],_0x5c7f66['bool']('project')?'project':_0x11aeee(0xfe)),_0x3dc9cd=_0xa5fb1d(_0x5c7f66[_0x11aeee(0x103)],_0x5e1516[_0x11aeee(0x11a)]===_0x11aeee(0x117)?_0x11aeee(0xfe):_0x11aeee(0x117)),_0x588747=await _0xde3ee({'appCode':_0x5c7f66['appCode'],'scope':_0x542af9['length']===0x1?_0x542af9[0x0]:_0x11aeee(0x112),'code':_0xac0ac0[_0x11aeee(0xff)]()||undefined}),_0x188f5a=_0x542af9[_0x11aeee(0x10e)]('personal')?_0x588747['personal']:[],_0x3b2ca7=_0x542af9[_0x11aeee(0x10e)]('company')?_0x588747[_0x11aeee(0x10c)]:[],_0x579dfc=new Set([..._0x188f5a[_0x11aeee(0x126)](_0x27bdbc=>_0x27bdbc[_0x11aeee(0x10f)]?.[_0x11aeee(0xff)]())[_0x11aeee(0x114)](_0x1b6c07=>Boolean(_0x1b6c07)),..._0x3b2ca7['map'](_0x392bea=>_0x392bea[_0x11aeee(0x10f)]?.[_0x11aeee(0xff)]())['filter'](_0x1924c7=>Boolean(_0x1924c7))]),_0x2521fe=_0xac0ac0[_0x11aeee(0xff)]()?[_0xac0ac0[_0x11aeee(0xff)]()]:undefined,_0x1c6bcf=_0x542af9[_0x11aeee(0x108)]===0x2&&_0x542af9[_0x11aeee(0x10e)](_0x11aeee(0x119))&&_0x542af9[_0x11aeee(0x10e)](_0x11aeee(0x10c)),_0x2fd0f3=_0x1c6bcf?_0x46ddee(_0x5e1516,_0x579dfc,_0x2521fe):[],_0x5b13fb=_0x222394({'env':_0x267a91,'accessKey':_0x5bc63f,'appCode':_0x5c7f66[_0x11aeee(0x103)],'activeSkillCodes':_0x579dfc,'pruneSkillCodes':_0x2521fe,'scopes':_0x542af9,'protectedLinkRoots':_0x3dc9cd[_0x11aeee(0x113)]}),_0x4b7e2b=[..._0x188f5a[_0x11aeee(0x126)](_0x1f3fda=>({'skill':_0x1f3fda,'scope':_0x11aeee(0x119)})),..._0x3b2ca7[_0x11aeee(0x126)](_0xaa1a2e=>({'skill':_0xaa1a2e,'scope':_0x11aeee(0x10c)}))],_0x52d8cb=await mapConcurrent(_0x4b7e2b,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x1a41e1,scope:_0x3b5e18})=>{const _0x1a275f=_0x11aeee,_0x5bb354=_0x1d0579(_0x1a41e1,_0x3b5e18,{'env':_0x267a91,'accessKey':_0x5bc63f,'appCode':_0x5c7f66[_0x1a275f(0x103)]});if(_0x5bb354)return _0x5bb354;return _0xbb2c92(_0x1a41e1,_0x3b5e18,{'env':_0x267a91,'accessKey':_0x5bc63f,'appCode':_0x5c7f66[_0x1a275f(0x103)],'force':_0x551e6f,'packageBytes':await downloadSkillPackage(_0x1a41e1,_0x3b5e18,_0x5c7f66['appCode'],_0x463555)});}),_0x59759d=_0x5b9c1b(_0x52d8cb,_0x5e1516),_0x39e6b3=countLinkActions(_0x59759d);return{'ok':!![],'data':{'appCode':_0x5c7f66[_0x11aeee(0x103)],..._0x5e1516[_0x11aeee(0x11a)]===_0x11aeee(0x117)?{'installTarget':{'scope':_0x5e1516[_0x11aeee(0x11a)],'skillRoots':[..._0x5e1516[_0x11aeee(0x113)]]}}:{},'personal':_0x188f5a[_0x11aeee(0x108)],'company':_0x3b2ca7[_0x11aeee(0x108)],'materialized':_0x52d8cb[_0x11aeee(0x108)],'links':{'total':_0x59759d[_0x11aeee(0x108)],'created':_0x39e6b3['created']??0x0,'updated':_0x39e6b3[_0x11aeee(0x101)]??0x0,'unchanged':_0x39e6b3[_0x11aeee(0x104)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x2fd0f3['filter'](_0x4a4d71=>_0x4a4d71[_0x11aeee(0x11b)]===_0x11aeee(0x124))[_0x11aeee(0x108)],'cacheDirs':_0x5b13fb[_0x11aeee(0x114)](_0x760356=>_0x760356[_0x11aeee(0x11b)]===_0x11aeee(0x124))[_0x11aeee(0x108)],'skipped':[..._0x2fd0f3,..._0x5b13fb]['filter'](_0x1f5bf4=>_0x1f5bf4[_0x11aeee(0x11b)]===_0x11aeee(0x127))[_0x11aeee(0x108)]},'skills':{'personal':_0x188f5a[_0x11aeee(0x126)](summarizeRuntimeSkill),'company':_0x3b2ca7[_0x11aeee(0x126)](summarizeRuntimeSkill)}},'message':_0x11aeee(0x110)+_0x188f5a['length']+_0x11aeee(0x12b)+_0x3b2ca7[_0x11aeee(0x108)]+_0x11aeee(0x128)};}async function mapConcurrent(_0xde160f,_0x3e0adf,_0x58ea8f){const _0x4c60f9=a66_0x5277f4,_0x127324=new Array(_0xde160f['length']);let _0x5d3117=0x0;const _0x2e3cab=Array[_0x4c60f9(0x11c)]({'length':Math[_0x4c60f9(0x12a)](_0x3e0adf,_0xde160f[_0x4c60f9(0x108)])},async()=>{const _0x465c1c=_0x4c60f9;while(_0x5d3117<_0xde160f[_0x465c1c(0x108)]){const _0x478d9d=_0x5d3117;_0x5d3117+=0x1,_0x127324[_0x478d9d]=await _0x58ea8f(_0xde160f[_0x478d9d]);}});return await Promise[_0x4c60f9(0x112)](_0x2e3cab),_0x127324;}async function downloadSkillPackage(_0x4ddaff,_0x43fed0,_0x97078c,_0x557ec6){const _0xc9d010=a66_0x5277f4,_0x5b7007=_0x4ddaff[_0xc9d010(0x125)]?.[_0xc9d010(0xff)]();return _0x5b7007?_0x557ec6(_0x43fed0,_0x4ddaff['skillCode'],_0x97078c,_0x5b7007):_0x557ec6(_0x43fed0,_0x4ddaff[_0xc9d010(0x10f)],_0x97078c);}function countLinkActions(_0x2bc1a6){const _0xa5cf62=a66_0x5277f4;return _0x2bc1a6[_0xa5cf62(0x10d)]((_0x4c5553,_0x7c1531)=>{const _0x76afbf=_0xa5cf62;return _0x4c5553[_0x7c1531['action']]=(_0x4c5553[_0x7c1531[_0x76afbf(0x11b)]]??0x0)+0x1,_0x4c5553;},{});}function a66_0x40dd(){const _0x24b69e=['skillCode','Installed\x20','45282zfkRgg','all','skillRoots','filter','accessKey','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','project','skill','personal','scope','action','from','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','1278152QqVRYT','authRequired','../../../skills/runtime-skill-sync.js','212221YqJOct','read','code','removed','version','map','skipped','\x20company\x20Skill(s).','str','min','\x20personal\x20and\x20','global','trim','../../../core/api-client.js','updated','production','appCode','unchanged','10949435xLZJrH','5108045WtyeDS','bool','length','6utzwAb','6631624MaQIoV','829341ArEmVs','company','reduce','includes'];a66_0x40dd=function(){return _0x24b69e;};return a66_0x40dd();}
@@ -1 +1 @@
1
- function a67_0x2637(){const _0x2dc303=['accessKey','production','str','authRequired','filter','bool','111920cDxYex','trim','1bEzTjK','length','11401610ypbuiR','map','Listed\x20','builtin','3iceQkw','list','project','scope','envName','133512SPQbkm','personal','appCode','1051402RRGgXs','remote','local','18QWmKpk','305UXlVqF','4664888KnWQIW','global','company','\x20local\x20Skill(s).','11037334skDFGD','\x20remote\x20Skill(s).','skill','../../../skills/runtime-skill-sync.js','4761620BgPGuQ'];a67_0x2637=function(){return _0x2dc303;};return a67_0x2637();}const a67_0x306d6a=a67_0x1aa9;(function(_0x30d9d2,_0x42389c){const _0x102dee=a67_0x1aa9,_0x4a162b=_0x30d9d2();while(!![]){try{const _0x578ff2=-parseInt(_0x102dee(0x111))/0x1*(-parseInt(_0x102dee(0x11f))/0x2)+-parseInt(_0x102dee(0x117))/0x3*(-parseInt(_0x102dee(0x10f))/0x4)+-parseInt(_0x102dee(0x123))/0x5*(-parseInt(_0x102dee(0x11c))/0x6)+-parseInt(_0x102dee(0x128))/0x7+parseInt(_0x102dee(0x124))/0x8+-parseInt(_0x102dee(0x122))/0x9*(-parseInt(_0x102dee(0x108))/0xa)+-parseInt(_0x102dee(0x113))/0xb;if(_0x578ff2===_0x42389c)break;else _0x4a162b['push'](_0x4a162b['shift']());}catch(_0x53b3a7){_0x4a162b['push'](_0x4a162b['shift']());}}}(a67_0x2637,0xcb6c0));import{CliErrors}from'../../../errors.js';function a67_0x1aa9(_0x361307,_0x2e0042){_0x361307=_0x361307-0x106;const _0x26377f=a67_0x2637();let _0x1aa943=_0x26377f[_0x361307];return _0x1aa943;}import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a67_0x306d6a(0x106),'command':a67_0x306d6a(0x118),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x60513a){const _0x2e1a56=a67_0x306d6a,_0x12ef55=_0x60513a[_0x2e1a56(0x10b)]('code'),_0x1f6dd5=normalizeListScope(_0x60513a['str'](_0x2e1a56(0x11a)));if(_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x121))){const _0xa73fe1=_0x60513a[_0x2e1a56(0x109)];if(!_0xa73fe1)throw CliErrors[_0x2e1a56(0x10c)]();const {listLocalRuntimeSkills:_0x25a05a,resolveRuntimeSkillInstallTarget:_0xd189a1}=await import(_0x2e1a56(0x107)),_0x4b3584=_0xd189a1(_0x60513a[_0x2e1a56(0x11e)],_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x119))?_0x2e1a56(0x119):_0x2e1a56(0x125)),_0x3c5ba0=_0x25a05a({'env':_0x60513a[_0x2e1a56(0x11b)]??_0x2e1a56(0x10a),'accessKey':_0xa73fe1,'appCode':_0x60513a[_0x2e1a56(0x11e)],'scopes':listScopeToRuntimeScopes(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined},_0x4b3584),_0x1d087e=groupLocalRuntimeSkills(_0x3c5ba0);return{'ok':!![],'data':{'appCode':_0x60513a[_0x2e1a56(0x11e)],'source':_0x2e1a56(0x121),..._0x4b3584['scope']===_0x2e1a56(0x119)?{'installScope':_0x4b3584[_0x2e1a56(0x11a)]}:{},'scope':_0x1f6dd5,'total':_0x3c5ba0['length'],'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x112)],'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x112)],'items':_0x3c5ba0[_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x3c5ba0[_0x2e1a56(0x112)]+_0x2e1a56(0x127)};}const {listRuntimeSkills:_0x23034d}=await import('../../../core/api-client.js'),_0x3b837f=await _0x23034d({'appCode':_0x60513a[_0x2e1a56(0x11e)],'scope':listScopeToRemoteScope(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined}),_0x20666b=shouldListScope(_0x1f6dd5,'personal')?_0x3b837f[_0x2e1a56(0x11d)]??[]:[],_0x231f09=shouldListScope(_0x1f6dd5,_0x2e1a56(0x126))?_0x3b837f[_0x2e1a56(0x126)]??[]:[],_0x2e0377=[..._0x20666b,..._0x231f09];return{'ok':!![],'data':{'appCode':_0x60513a['appCode'],'source':_0x2e1a56(0x120),'scope':_0x1f6dd5,'total':_0x2e0377[_0x2e1a56(0x112)],'personal':_0x20666b[_0x2e1a56(0x112)],'company':_0x231f09[_0x2e1a56(0x112)],'items':_0x2e0377[_0x2e1a56(0x114)](summarizeRuntimeSkill),'skills':{'personal':_0x20666b[_0x2e1a56(0x114)](summarizeRuntimeSkill),'company':_0x231f09[_0x2e1a56(0x114)](summarizeRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x2e0377[_0x2e1a56(0x112)]+_0x2e1a56(0x129)};}};function groupLocalRuntimeSkills(_0x5845f3){const _0x2fe78c=a67_0x306d6a;return{'personal':_0x5845f3[_0x2fe78c(0x10d)](_0x31d2dd=>_0x31d2dd[_0x2fe78c(0x11a)]===_0x2fe78c(0x11d)),'company':_0x5845f3['filter'](_0x22e22a=>_0x22e22a['scope']===_0x2fe78c(0x126)),'builtin':_0x5845f3[_0x2fe78c(0x10d)](_0x33a7bc=>_0x33a7bc[_0x2fe78c(0x11a)]===_0x2fe78c(0x116))};}
1
+ function a67_0x5816(){const _0x4384ea=['envName','production','length','scope','15352wLclhr','code','map','189RZrsay','bool','local','478131cHDAer','8022xTkGHv','list','\x20local\x20Skill(s).','str','148090jppDIs','builtin','1657290UiAQXA','../../../skills/runtime-skill-sync.js','accessKey','personal','89520RDbruz','project','221530JMAexH','531pLvijs','\x20remote\x20Skill(s).','company','read','Listed\x20','trim','appCode','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','filter','4qxOMTv'];a67_0x5816=function(){return _0x4384ea;};return a67_0x5816();}const a67_0x4da2a7=a67_0x4421;(function(_0x4624b6,_0x288905){const _0x414ce0=a67_0x4421,_0x24ba22=_0x4624b6();while(!![]){try{const _0x583cd5=-parseInt(_0x414ce0(0xb2))/0x1+-parseInt(_0x414ce0(0xc1))/0x2+parseInt(_0x414ce0(0xc7))/0x3*(-parseInt(_0x414ce0(0xbc))/0x4)+-parseInt(_0x414ce0(0xce))/0x5+-parseInt(_0x414ce0(0xc8))/0x6*(-parseInt(_0x414ce0(0xc4))/0x7)+-parseInt(_0x414ce0(0xb0))/0x8+parseInt(_0x414ce0(0xb3))/0x9*(parseInt(_0x414ce0(0xcc))/0xa);if(_0x583cd5===_0x288905)break;else _0x24ba22['push'](_0x24ba22['shift']());}catch(_0xc3a02){_0x24ba22['push'](_0x24ba22['shift']());}}}(a67_0x5816,0x2b9a7));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a67_0x4421(_0x31f870,_0x41bb1b){_0x31f870=_0x31f870-0xb0;const _0x5816e9=a67_0x5816();let _0x4421fd=_0x5816e9[_0x31f870];return _0x4421fd;}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a67_0x4da2a7(0xc9),'description':a67_0x4da2a7(0xba),'risk':a67_0x4da2a7(0xb6),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0xe5ef74){const _0x40c31b=a67_0x4da2a7,_0x2f9282=_0xe5ef74[_0x40c31b(0xcb)](_0x40c31b(0xc2)),_0x1ff3dd=normalizeListScope(_0xe5ef74[_0x40c31b(0xcb)](_0x40c31b(0xc0)));if(_0xe5ef74[_0x40c31b(0xc5)](_0x40c31b(0xc6))){const _0xba06de=_0xe5ef74[_0x40c31b(0xd0)];if(!_0xba06de)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x2a4ce2,resolveRuntimeSkillInstallTarget:_0x52dff1}=await import(_0x40c31b(0xcf)),_0x34dcdc=_0x52dff1(_0xe5ef74[_0x40c31b(0xb9)],_0xe5ef74['bool']('project')?_0x40c31b(0xb1):'global'),_0x2defc3=_0x2a4ce2({'env':_0xe5ef74[_0x40c31b(0xbd)]??_0x40c31b(0xbe),'accessKey':_0xba06de,'appCode':_0xe5ef74[_0x40c31b(0xb9)],'scopes':listScopeToRuntimeScopes(_0x1ff3dd),'code':_0x2f9282[_0x40c31b(0xb8)]()||undefined},_0x34dcdc),_0x5d3186=groupLocalRuntimeSkills(_0x2defc3);return{'ok':!![],'data':{'appCode':_0xe5ef74[_0x40c31b(0xb9)],'source':_0x40c31b(0xc6),..._0x34dcdc[_0x40c31b(0xc0)]==='project'?{'installScope':_0x34dcdc[_0x40c31b(0xc0)]}:{},'scope':_0x1ff3dd,'total':_0x2defc3[_0x40c31b(0xbf)],'personal':_0x5d3186[_0x40c31b(0xd1)]['length'],'company':_0x5d3186[_0x40c31b(0xb5)][_0x40c31b(0xbf)],'items':_0x2defc3['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x5d3186[_0x40c31b(0xd1)]['map'](summarizeLocalRuntimeSkill),'company':_0x5d3186['company'][_0x40c31b(0xc3)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x2defc3[_0x40c31b(0xbf)]+_0x40c31b(0xca)};}const {listRuntimeSkills:_0x4ad66d}=await import('../../../core/api-client.js'),_0x52d32f=await _0x4ad66d({'appCode':_0xe5ef74[_0x40c31b(0xb9)],'scope':listScopeToRemoteScope(_0x1ff3dd),'code':_0x2f9282['trim']()||undefined}),_0x47599d=shouldListScope(_0x1ff3dd,_0x40c31b(0xd1))?_0x52d32f['personal']??[]:[],_0x478a2b=shouldListScope(_0x1ff3dd,_0x40c31b(0xb5))?_0x52d32f[_0x40c31b(0xb5)]??[]:[],_0x267e38=[..._0x47599d,..._0x478a2b];return{'ok':!![],'data':{'appCode':_0xe5ef74[_0x40c31b(0xb9)],'source':'remote','scope':_0x1ff3dd,'total':_0x267e38[_0x40c31b(0xbf)],'personal':_0x47599d[_0x40c31b(0xbf)],'company':_0x478a2b[_0x40c31b(0xbf)],'items':_0x267e38['map'](summarizeRuntimeSkill),'skills':{'personal':_0x47599d[_0x40c31b(0xc3)](summarizeRuntimeSkill),'company':_0x478a2b[_0x40c31b(0xc3)](summarizeRuntimeSkill)}},'message':_0x40c31b(0xb7)+_0x267e38[_0x40c31b(0xbf)]+_0x40c31b(0xb4)};}};function groupLocalRuntimeSkills(_0x3f1fd0){const _0x3800fb=a67_0x4da2a7;return{'personal':_0x3f1fd0[_0x3800fb(0xbb)](_0x230bd6=>_0x230bd6[_0x3800fb(0xc0)]==='personal'),'company':_0x3f1fd0[_0x3800fb(0xbb)](_0x1f4106=>_0x1f4106[_0x3800fb(0xc0)]===_0x3800fb(0xb5)),'builtin':_0x3f1fd0['filter'](_0x8257f3=>_0x8257f3[_0x3800fb(0xc0)]===_0x3800fb(0xcd))};}
@@ -1 +1 @@
1
- function a68_0x98b7(){const _0x3ea645=['1704660cWlrrM','207067YKfpnS','9IakIOg','320050VywAkM','196708KxESDl','push','6EZZWlQ','skill','Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','1135856EkEiQH','572277HHXRDe','5MEDBod','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','147679RlCRCa'];a68_0x98b7=function(){return _0x3ea645;};return a68_0x98b7();}function a68_0x2d6c(_0x208e24,_0x518aa2){_0x208e24=_0x208e24-0x162;const _0x98b7be=a68_0x98b7();let _0x2d6c2e=_0x98b7be[_0x208e24];return _0x2d6c2e;}const a68_0x4e9316=a68_0x2d6c;(function(_0x97035c,_0x3aa590){const _0x133b0f=a68_0x2d6c,_0x3e6bbc=_0x97035c();while(!![]){try{const _0x4752a2=-parseInt(_0x133b0f(0x168))/0x1+parseInt(_0x133b0f(0x16c))/0x2+-parseInt(_0x133b0f(0x165))/0x3+-parseInt(_0x133b0f(0x16d))/0x4*(-parseInt(_0x133b0f(0x166))/0x5)+-parseInt(_0x133b0f(0x16f))/0x6*(parseInt(_0x133b0f(0x16a))/0x7)+parseInt(_0x133b0f(0x164))/0x8+parseInt(_0x133b0f(0x16b))/0x9*(parseInt(_0x133b0f(0x169))/0xa);if(_0x4752a2===_0x3aa590)break;else _0x3e6bbc['push'](_0x3e6bbc['shift']());}catch(_0x43ef19){_0x3e6bbc['push'](_0x3e6bbc['shift']());}}}(a68_0x98b7,0x2581f));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4e9316(0x162),'command':a68_0x4e9316(0x16e),'description':a68_0x4e9316(0x167),'risk':'write','confirmationDescription':a68_0x4e9316(0x163),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a68_0x2352d8=a68_0x11f5;(function(_0x4182ea,_0x5ce7df){const _0x543967=a68_0x11f5,_0x5783bd=_0x4182ea();while(!![]){try{const _0x3b2cb8=parseInt(_0x543967(0x1d3))/0x1+parseInt(_0x543967(0x1d1))/0x2*(parseInt(_0x543967(0x1d8))/0x3)+-parseInt(_0x543967(0x1da))/0x4*(-parseInt(_0x543967(0x1cf))/0x5)+-parseInt(_0x543967(0x1db))/0x6+parseInt(_0x543967(0x1ce))/0x7*(parseInt(_0x543967(0x1d9))/0x8)+-parseInt(_0x543967(0x1d4))/0x9+-parseInt(_0x543967(0x1d7))/0xa*(parseInt(_0x543967(0x1d5))/0xb);if(_0x3b2cb8===_0x5ce7df)break;else _0x5783bd['push'](_0x5783bd['shift']());}catch(_0x2fc6d7){_0x5783bd['push'](_0x5783bd['shift']());}}}(a68_0x356b,0x82171));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x11f5(_0x22b46a,_0x9706d7){_0x22b46a=_0x22b46a-0x1cd;const _0x356b9f=a68_0x356b();let _0x11f5d1=_0x356b9f[_0x22b46a];return _0x11f5d1;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a68_0x356b(){const _0xe11a99=['214159nykNkl','push','380AHnmiK','144tThzpa','64LCVVWJ','164484VcimkV','4545684VRmiRP','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','835597kzFthu','40loueoR','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.','17486uetFcN','write','683971zGciBZ','3215574ftDpWG'];a68_0x356b=function(){return _0xe11a99;};return a68_0x356b();}export const pushCommand={'service':'skill','command':a68_0x2352d8(0x1d6),'description':a68_0x2352d8(0x1cd),'risk':a68_0x2352d8(0x1d2),'confirmationDescription':a68_0x2352d8(0x1d0),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a69_0x385102=a69_0x506e;(function(_0x300f54,_0x3b1a42){const _0x339555=a69_0x506e,_0x3e28eb=_0x300f54();while(!![]){try{const _0x52b0fe=-parseInt(_0x339555(0x1a8))/0x1*(parseInt(_0x339555(0x199))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x19d))/0x4)+parseInt(_0x339555(0x19c))/0x5*(parseInt(_0x339555(0x1a2))/0x6)+parseInt(_0x339555(0x19b))/0x7*(-parseInt(_0x339555(0x1a9))/0x8)+-parseInt(_0x339555(0x1a7))/0x9+parseInt(_0x339555(0x196))/0xa+parseInt(_0x339555(0x197))/0xb;if(_0x52b0fe===_0x3b1a42)break;else _0x3e28eb['push'](_0x3e28eb['shift']());}catch(_0x2a1e75){_0x3e28eb['push'](_0x3e28eb['shift']());}}}(a69_0x793f,0x1e64f));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a69_0x506e(_0x53a28a,_0x4a8da8){_0x53a28a=_0x53a28a-0x193;const _0x793f4=a69_0x793f();let _0x506e83=_0x793f4[_0x53a28a];return _0x506e83;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a69_0x793f(){const _0x21cbd4=['609scVVmN','26375gaALew','56824qHSpEb','warnings','strict','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','36WhSnnT','dir','read','errors','skill','751356chrRpc','7XaseGa','19664lxYGsl','Skill\x20validation\x20passed.','type','str','1077680BGpuhs','6371783EUaJhM','bool','32048RAKpSy','39ceGyWP'];a69_0x793f=function(){return _0x21cbd4;};return a69_0x793f();}export const validateCommand={'service':a69_0x385102(0x1a6),'command':a69_0x385102(0x1a1),'description':a69_0x385102(0x1a0),'risk':a69_0x385102(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x528c7d){const _0x5d6f15=a69_0x385102,_0xe37811=_0x528c7d[_0x5d6f15(0x198)](_0x5d6f15(0x19f)),_0x966fcc=validateSkillDirectory(_0x528c7d[_0x5d6f15(0x195)](_0x5d6f15(0x1a3)),{'strict':_0xe37811});return throwIfSkillValidationFailed(_0x966fcc,_0xe37811),{'ok':!![],'data':{'dir':_0x966fcc[_0x5d6f15(0x1a3)],'type':_0x966fcc[_0x5d6f15(0x194)],'errors':_0x966fcc[_0x5d6f15(0x1a5)],'warnings':_0x966fcc[_0x5d6f15(0x19e)]},'message':_0x5d6f15(0x193)};}};
1
+ function a69_0xad45(){const _0x38df31=['read','validate','10675350Ifysrd','2425472Eakzgp','3075018iAsyzk','165waLBZG','53172wnpEEa','3EglZdS','7sdrTod','skill','5031396QupAfk','1087148mgWLBx','326068XeaqcJ','dir','type'];a69_0xad45=function(){return _0x38df31;};return a69_0xad45();}const a69_0x51fac5=a69_0x189b;function a69_0x189b(_0x3cb436,_0x2e8850){_0x3cb436=_0x3cb436-0x1ae;const _0xad4546=a69_0xad45();let _0x189b53=_0xad4546[_0x3cb436];return _0x189b53;}(function(_0x551dba,_0x4da501){const _0x1009b9=a69_0x189b,_0x5a9b66=_0x551dba();while(!![]){try{const _0xc51063=-parseInt(_0x1009b9(0x1b0))/0x1+parseInt(_0x1009b9(0x1af))/0x2*(-parseInt(_0x1009b9(0x1ba))/0x3)+parseInt(_0x1009b9(0x1b9))/0x4*(parseInt(_0x1009b9(0x1b8))/0x5)+-parseInt(_0x1009b9(0x1b7))/0x6*(-parseInt(_0x1009b9(0x1bb))/0x7)+-parseInt(_0x1009b9(0x1b6))/0x8+-parseInt(_0x1009b9(0x1ae))/0x9+parseInt(_0x1009b9(0x1b5))/0xa;if(_0xc51063===_0x4da501)break;else _0x5a9b66['push'](_0x5a9b66['shift']());}catch(_0x4c38ee){_0x5a9b66['push'](_0x5a9b66['shift']());}}}(a69_0xad45,0x46075));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x51fac5(0x1bc),'command':a69_0x51fac5(0x1b4),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a69_0x51fac5(0x1b3),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x282c58){const _0x479af6=a69_0x51fac5,_0x1060b6=_0x282c58['bool']('strict'),_0x4e6f41=validateSkillDirectory(_0x282c58['str'](_0x479af6(0x1b1)),{'strict':_0x1060b6});return throwIfSkillValidationFailed(_0x4e6f41,_0x1060b6),{'ok':!![],'data':{'dir':_0x4e6f41[_0x479af6(0x1b1)],'type':_0x4e6f41[_0x479af6(0x1b2)],'errors':_0x4e6f41['errors'],'warnings':_0x4e6f41['warnings']},'message':'Skill\x20validation\x20passed.'};}};
@@ -1 +1 @@
1
- (function(_0x8fc1d,_0x31f2a2){const _0x450a97=a70_0x31d8,_0x52e4e8=_0x8fc1d();while(!![]){try{const _0x141873=parseInt(_0x450a97(0x11a))/0x1*(parseInt(_0x450a97(0x113))/0x2)+parseInt(_0x450a97(0x109))/0x3+parseInt(_0x450a97(0x116))/0x4*(parseInt(_0x450a97(0x115))/0x5)+parseInt(_0x450a97(0x11b))/0x6+parseInt(_0x450a97(0x117))/0x7+-parseInt(_0x450a97(0x10b))/0x8+-parseInt(_0x450a97(0x106))/0x9;if(_0x141873===_0x31f2a2)break;else _0x52e4e8['push'](_0x52e4e8['shift']());}catch(_0x18f85a){_0x52e4e8['push'](_0x52e4e8['shift']());}}}(a70_0x3b5f,0x6308e));function a70_0x31d8(_0x3cfe48,_0x5a0e60){_0x3cfe48=_0x3cfe48-0x104;const _0x3b5fa5=a70_0x3b5f();let _0x31d856=_0x3b5fa5[_0x3cfe48];return _0x31d856;}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0xfa9215){const _0x549ce3=a70_0x31d8;return(await readRequiredSkillDiagramInput(_0xfa9215))[_0x549ce3(0x10e)];}function a70_0x3b5f(){const _0x7f2a38=['Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','2VhEjdO','window','1020MNdoCZ','14648zWBYmI','3759224NLCyut','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','505619HUtmtb','1952952mepdws','Mermaid\x20syntax\x20validation\x20failed.','document','14079573YNrhdX','validation','parse','1981005WZxIwb','utf8','6443864AUUtsP','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','defineProperties','diagram','default','replace','Mermaid\x20flowchart\x20file\x20not\x20found:\x20'];a70_0x3b5f=function(){return _0x7f2a38;};return a70_0x3b5f();}export async function readRequiredSkillDiagramInput(_0x2d46bc){const _0x1e0161=a70_0x31d8,_0x27e975=_0x2d46bc['trim']();if(!_0x27e975)throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x118),_0x1e0161(0x10c));let _0x164824,_0x1bf9ab;if(_0x27e975==='-')try{_0x164824=readFileSync(0x0,_0x1e0161(0x10a));}catch{throw CliErrors['validation'](_0x1e0161(0x119));}else{const _0xad3d68=resolve(_0x27e975);if(!existsSync(_0xad3d68))throw CliErrors['validation'](_0x1e0161(0x111)+_0xad3d68);if(!statSync(_0xad3d68)['isFile']())throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x112)+_0xad3d68);_0x1bf9ab=realpathSync(_0xad3d68),_0x164824=readFileSync(_0x1bf9ab,_0x1e0161(0x10a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x164824)},'sourceFilePath':_0x1bf9ab};}export async function validateAndCanonicalizeMermaid(_0x41abb0){const _0x8f6642=a70_0x31d8,_0x355f7e=_0x41abb0[_0x8f6642(0x110)](/\r\n/g,'\x0a')[_0x8f6642(0x110)](/\r/g,'\x0a')[_0x8f6642(0x110)](/\n+$/,'')+'\x0a';try{const _0xa64fad=await loadMermaidApi();await _0xa64fad[_0x8f6642(0x108)](_0x355f7e);}catch{throw diagramValidationError();}return _0x355f7e;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x307bff=a70_0x31d8;if(!(_0x307bff(0x114)in globalThis)||!(_0x307bff(0x105)in globalThis)){const _0xd15ab2=new JSDOM('');Object[_0x307bff(0x10d)](globalThis,{'window':{'configurable':!![],'value':_0xd15ab2[_0x307bff(0x114)]},'document':{'configurable':!![],'value':_0xd15ab2['window']['document']}});}return(await import('mermaid'))[_0x307bff(0x10f)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x19359a=a70_0x31d8;return CliErrors[_0x19359a(0x107)](_0x19359a(0x104),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
1
+ (function(_0x4ed79f,_0x241303){const _0x2b797c=a70_0x3567,_0x54af72=_0x4ed79f();while(!![]){try{const _0x363cd0=parseInt(_0x2b797c(0x146))/0x1*(-parseInt(_0x2b797c(0x144))/0x2)+parseInt(_0x2b797c(0x139))/0x3+-parseInt(_0x2b797c(0x13e))/0x4+-parseInt(_0x2b797c(0x145))/0x5+parseInt(_0x2b797c(0x141))/0x6+-parseInt(_0x2b797c(0x134))/0x7+parseInt(_0x2b797c(0x14a))/0x8;if(_0x363cd0===_0x241303)break;else _0x54af72['push'](_0x54af72['shift']());}catch(_0x3e32b8){_0x54af72['push'](_0x54af72['shift']());}}}(a70_0x6aad,0xee7bc));function a70_0x3567(_0x429c89,_0xcd93a){_0x429c89=_0x429c89-0x132;const _0x6aadc5=a70_0x6aad();let _0x35676f=_0x6aadc5[_0x429c89];return _0x35676f;}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x3657a2){const _0xabb9d5=a70_0x3567;return(await readRequiredSkillDiagramInput(_0x3657a2))[_0xabb9d5(0x13b)];}export async function readRequiredSkillDiagramInput(_0x30e8c6){const _0x5dcb53=a70_0x3567,_0x150381=_0x30e8c6[_0x5dcb53(0x13a)]();if(!_0x150381)throw CliErrors['validation'](_0x5dcb53(0x148),_0x5dcb53(0x136));let _0x1d6bed,_0x27c9ba;if(_0x150381==='-')try{_0x1d6bed=readFileSync(0x0,_0x5dcb53(0x13c));}catch{throw CliErrors[_0x5dcb53(0x149)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0xc4da61=resolve(_0x150381);if(!existsSync(_0xc4da61))throw CliErrors['validation'](_0x5dcb53(0x13f)+_0xc4da61);if(!statSync(_0xc4da61)[_0x5dcb53(0x133)]())throw CliErrors['validation'](_0x5dcb53(0x135)+_0xc4da61);_0x27c9ba=realpathSync(_0xc4da61),_0x1d6bed=readFileSync(_0x27c9ba,'utf8');}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x1d6bed)},'sourceFilePath':_0x27c9ba};}export async function validateAndCanonicalizeMermaid(_0x19053f){const _0x492377=a70_0x3567,_0x41c516=_0x19053f[_0x492377(0x142)](/\r\n/g,'\x0a')[_0x492377(0x142)](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x4e216d=await loadMermaidApi();await _0x4e216d[_0x492377(0x132)](_0x41c516);}catch{throw diagramValidationError();}return _0x41c516;}function a70_0x6aad(){const _0x1498e9=['35299200GvMYKv','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','parse','isFile','11617704pIanCE','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','defineProperties','mermaid','503403BdkeRB','trim','diagram','utf8','default','2102924XXTVVF','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','window','5501154eXobFR','replace','document','4XYXNuN','8900815nppqlu','277333weZTUq','Mermaid\x20syntax\x20validation\x20failed.','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','validation'];a70_0x6aad=function(){return _0x1498e9;};return a70_0x6aad();}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x103c14=a70_0x3567;if(!(_0x103c14(0x140)in globalThis)||!('document'in globalThis)){const _0xf05365=new JSDOM('');Object[_0x103c14(0x137)](globalThis,{'window':{'configurable':!![],'value':_0xf05365[_0x103c14(0x140)]},'document':{'configurable':!![],'value':_0xf05365[_0x103c14(0x140)][_0x103c14(0x143)]}});}return(await import(_0x103c14(0x138)))[_0x103c14(0x13d)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x243c7a=a70_0x3567;return CliErrors[_0x243c7a(0x149)](_0x243c7a(0x147),_0x243c7a(0x14b));}
@@ -1 +1 @@
1
- function a71_0x3ce1(_0x29adea,_0xe5de4c){_0x29adea=_0x29adea-0xa4;const _0x216e57=a71_0x216e();let _0x3ce10a=_0x216e57[_0x29adea];return _0x3ce10a;}const a71_0x4b5de9=a71_0x3ce1;(function(_0x23a4f3,_0x4813a6){const _0x352abd=a71_0x3ce1,_0x5e999f=_0x23a4f3();while(!![]){try{const _0x380e10=parseInt(_0x352abd(0xbe))/0x1*(parseInt(_0x352abd(0xb1))/0x2)+-parseInt(_0x352abd(0xb5))/0x3+parseInt(_0x352abd(0xac))/0x4+parseInt(_0x352abd(0xb9))/0x5+parseInt(_0x352abd(0xc0))/0x6+parseInt(_0x352abd(0xc6))/0x7*(-parseInt(_0x352abd(0xc1))/0x8)+parseInt(_0x352abd(0xc2))/0x9;if(_0x380e10===_0x4813a6)break;else _0x5e999f['push'](_0x5e999f['shift']());}catch(_0x43ede2){_0x5e999f['push'](_0x5e999f['shift']());}}}(a71_0x216e,0xd1381));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xb6),'enum':[a71_0x4b5de9(0xc3),'personal',a71_0x4b5de9(0xb0)]};export const PUSH_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':'personal','enum':[a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LIST_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':'string','description':a71_0x4b5de9(0xb7),'enum':[a71_0x4b5de9(0xc3),a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LOCAL_FLAG={'name':'local','type':a71_0x4b5de9(0xad),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xc4)};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xba)};function a71_0x216e(){const _0xb83ebb=['UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','target','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','294241wwExUK','expected-diagram-revision','181068fEXbFr','11992xCUAOG','138051DqrKIC','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','personal','1855mQFoDm','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','number','force','scope','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','string','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','version','source-fingerprint','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','2444860SWJUjq','boolean','name','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','company','10pYygPG','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','2676045QGMvVU','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','project','91370TPJQQN'];a71_0x216e=function(){return _0xb83ebb;};return a71_0x216e();}export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xbc)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x4b5de9(0xa9),'type':a71_0x4b5de9(0xa7),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'required':!![],'enum':[a71_0x4b5de9(0xc5),'company'],'description':a71_0x4b5de9(0xa8)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x4b5de9(0xaa),'type':'string','required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x4b5de9(0xb4)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x4b5de9(0xbf),'type':a71_0x4b5de9(0xc8),'required':!![],'description':a71_0x4b5de9(0xaf)};export const CREATE_NAME_FLAG={'name':a71_0x4b5de9(0xae),'type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xa6),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x4b5de9(0xb3)}};export const TYPE_FLAG={'name':'type','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xc7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x4b5de9(0xbb),'type':a71_0x4b5de9(0xa7),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x4b5de9(0xc9),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xbd)};export const PROJECT_TARGET_FLAG={'name':a71_0x4b5de9(0xb8),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xa5)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xab)};export const STRICT_FLAG={'name':'strict','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xb2)};
1
+ const a71_0x119b38=a71_0xc4a3;(function(_0x55b11a,_0x55858f){const _0x2f450b=a71_0xc4a3,_0xe5fb21=_0x55b11a();while(!![]){try{const _0x2ed69b=-parseInt(_0x2f450b(0x1c1))/0x1*(-parseInt(_0x2f450b(0x1b8))/0x2)+-parseInt(_0x2f450b(0x1a8))/0x3+parseInt(_0x2f450b(0x1a2))/0x4*(-parseInt(_0x2f450b(0x1c4))/0x5)+parseInt(_0x2f450b(0x1b7))/0x6+-parseInt(_0x2f450b(0x1ac))/0x7+-parseInt(_0x2f450b(0x1bb))/0x8+parseInt(_0x2f450b(0x1c2))/0x9;if(_0x2ed69b===_0x55858f)break;else _0xe5fb21['push'](_0xe5fb21['shift']());}catch(_0xcbe94c){_0xe5fb21['push'](_0xe5fb21['shift']());}}}(a71_0x4a4e,0x43e5e));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a71_0x4a4e(){const _0x329cca=['2772325NwJzEb','dir','local','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','strict','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','target','4NCgRVs','project','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','type','expected-diagram-revision','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','711144bfykIl','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','code','version','2571919MmgZCd','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','string','name','Server-reported\x20SkillVersion\x20source\x20fingerprint','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','confirm-warnings','personal','1765188xHtopa','85602OwYoeL','number','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1308488fzPRBo','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','diagram-file','boolean','force','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','11BEkPHM','7520328edqLfP','scope'];a71_0x4a4e=function(){return _0x329cca;};return a71_0x4a4e();}export const CODE_FLAG={'name':a71_0x119b38(0x1aa),'type':'string','description':a71_0x119b38(0x1ad)};export const SCOPE_FLAG={'name':'scope','type':a71_0x119b38(0x1ae),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':['all',a71_0x119b38(0x1b6),a71_0x119b38(0x19f)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a71_0x119b38(0x1ae),'description':a71_0x119b38(0x1a9),'default':'personal','enum':[a71_0x119b38(0x1b6),a71_0x119b38(0x19f)]};export const LIST_SCOPE_FLAG={'name':a71_0x119b38(0x1c3),'type':a71_0x119b38(0x1ae),'description':a71_0x119b38(0x1a0),'enum':['all',a71_0x119b38(0x1b6),'company']};export const LOCAL_FLAG={'name':a71_0x119b38(0x1c6),'type':a71_0x119b38(0x1be),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a71_0x119b38(0x1c5),'type':'string','required':!![],'description':a71_0x119b38(0x1ba)};export const DIAGRAM_FILE_FLAG={'name':a71_0x119b38(0x1bd),'type':a71_0x119b38(0x1ae),'required':!![],'description':'UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin'};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0x119b38(0x1ae),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a71_0x119b38(0x1ab),'type':a71_0x119b38(0x1ae),'required':!![],'description':a71_0x119b38(0x1b4)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x119b38(0x1c3),'type':a71_0x119b38(0x1ae),'required':!![],'enum':['personal','company'],'description':a71_0x119b38(0x1a7)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a71_0x119b38(0x1ae),'required':!![],'description':a71_0x119b38(0x1b0),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x119b38(0x19e)}};function a71_0xc4a3(_0xc56e5f,_0x1b98d7){_0xc56e5f=_0xc56e5f-0x19c;const _0x4a4e9d=a71_0x4a4e();let _0xc4a3c9=_0x4a4e9d[_0xc56e5f];return _0xc4a3c9;}export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x119b38(0x1a6),'type':a71_0x119b38(0x1b9),'required':!![],'description':a71_0x119b38(0x1bc)};export const CREATE_NAME_FLAG={'name':a71_0x119b38(0x1af),'type':a71_0x119b38(0x1ae),'required':!![],'description':a71_0x119b38(0x19c),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x119b38(0x1b1)}};export const TYPE_FLAG={'name':a71_0x119b38(0x1a5),'type':'string','description':a71_0x119b38(0x1c7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x119b38(0x1a1),'type':a71_0x119b38(0x1ae),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x119b38(0x1bf),'type':a71_0x119b38(0x1be),'description':a71_0x119b38(0x1b2)};export const PROJECT_TARGET_FLAG={'name':a71_0x119b38(0x1a3),'type':a71_0x119b38(0x1be),'description':a71_0x119b38(0x1b3)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x119b38(0x1b5),'type':a71_0x119b38(0x1be),'description':a71_0x119b38(0x1c0)};export const STRICT_FLAG={'name':a71_0x119b38(0x19d),'type':a71_0x119b38(0x1be),'description':a71_0x119b38(0x1a4)};
@@ -1 +1 @@
1
- function a72_0x5e81(_0x317c0c,_0x15b890){_0x317c0c=_0x317c0c-0x17a;const _0x1f77a7=a72_0x1f77();let _0x5e81f3=_0x1f77a7[_0x317c0c];return _0x5e81f3;}(function(_0x39bc15,_0x11c572){const _0x229ed4=a72_0x5e81,_0x103f3c=_0x39bc15();while(!![]){try{const _0x48c778=parseInt(_0x229ed4(0x17d))/0x1+parseInt(_0x229ed4(0x17f))/0x2+parseInt(_0x229ed4(0x17c))/0x3+parseInt(_0x229ed4(0x180))/0x4+-parseInt(_0x229ed4(0x17a))/0x5+-parseInt(_0x229ed4(0x181))/0x6*(-parseInt(_0x229ed4(0x17e))/0x7)+-parseInt(_0x229ed4(0x182))/0x8*(parseInt(_0x229ed4(0x17b))/0x9);if(_0x48c778===_0x11c572)break;else _0x103f3c['push'](_0x103f3c['shift']());}catch(_0x191471){_0x103f3c['push'](_0x103f3c['shift']());}}}(a72_0x1f77,0xc4d9b));import{createCommand}from'./commands/create.js';function a72_0x1f77(){const _0x2c052b=['3518757QxXlac','1254642xEpBNQ','1449futDLD','956264THSDOw','820524TBIcDc','18594gDnfuB','21534568NkJQeu','1270985uZgAoa','9rHualC'];a72_0x1f77=function(){return _0x2c052b;};return a72_0x1f77();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x37dac3,_0xb48819){const _0x51e1ce=a72_0x3184,_0x4e77dd=_0x37dac3();while(!![]){try{const _0xa16b75=parseInt(_0x51e1ce(0xfe))/0x1*(-parseInt(_0x51e1ce(0xfd))/0x2)+-parseInt(_0x51e1ce(0x106))/0x3+-parseInt(_0x51e1ce(0xfc))/0x4*(parseInt(_0x51e1ce(0x100))/0x5)+-parseInt(_0x51e1ce(0x105))/0x6+parseInt(_0x51e1ce(0x102))/0x7+-parseInt(_0x51e1ce(0x103))/0x8*(-parseInt(_0x51e1ce(0x101))/0x9)+parseInt(_0x51e1ce(0xff))/0xa*(parseInt(_0x51e1ce(0x104))/0xb);if(_0xa16b75===_0xb48819)break;else _0x4e77dd['push'](_0x4e77dd['shift']());}catch(_0x248d7c){_0x4e77dd['push'](_0x4e77dd['shift']());}}}(a72_0x2b34,0x2a7a8));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0x3184(_0xd26fc,_0xae4f18){_0xd26fc=_0xd26fc-0xfc;const _0x2b349f=a72_0x2b34();let _0x3184d2=_0x2b349f[_0xd26fc];return _0x3184d2;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];function a72_0x2b34(){const _0x1cd543=['98KzEIDf','5717mUESkT','260WlNhRV','205xzauUH','45glmzww','1306200BrVovC','470248EJXSPx','260733NVreVY','746544WBZBEi','924573hbQRuO','20492OUCJUa'];a72_0x2b34=function(){return _0x1cd543;};return a72_0x2b34();}
@@ -1 +1 @@
1
- function a73_0x4a5e(_0xf1c22e,_0x4b093d){_0xf1c22e=_0xf1c22e-0x1e7;var _0x3f029a=a73_0x3f02();var _0x4a5e1c=_0x3f029a[_0xf1c22e];return _0x4a5e1c;}(function(_0x4d3533,_0x1101e6){var _0x4f0785=a73_0x4a5e,_0xc42417=_0x4d3533();while(!![]){try{var _0x529588=parseInt(_0x4f0785(0x1f2))/0x1*(-parseInt(_0x4f0785(0x1ee))/0x2)+parseInt(_0x4f0785(0x1f9))/0x3*(parseInt(_0x4f0785(0x1f4))/0x4)+parseInt(_0x4f0785(0x1e8))/0x5*(parseInt(_0x4f0785(0x1f3))/0x6)+parseInt(_0x4f0785(0x1e7))/0x7*(-parseInt(_0x4f0785(0x1f8))/0x8)+parseInt(_0x4f0785(0x1f7))/0x9*(-parseInt(_0x4f0785(0x1ef))/0xa)+parseInt(_0x4f0785(0x1f0))/0xb*(parseInt(_0x4f0785(0x1ec))/0xc)+parseInt(_0x4f0785(0x1ea))/0xd*(parseInt(_0x4f0785(0x1fb))/0xe);if(_0x529588===_0x1101e6)break;else _0xc42417['push'](_0xc42417['shift']());}catch(_0x5b6a1a){_0xc42417['push'](_0xc42417['shift']());}}}(a73_0x3f02,0xc9478));function a73_0x3f02(){var _0x2910e8=['29236LFkPfr','some','files','10041354vHNYoZ','10258904HzCnmL','183JpIObS','string','14YUEBEl','ossPath','7HUxatq','1431895vNUlDi','path','25140713BsxbBi','length','60xkbzHJ','object','2ZRFFCg','10LpYRXa','2425687RIHMfV','isArray','546205CfmhIo','6rHwyJl'];a73_0x3f02=function(){return _0x2910e8;};return a73_0x3f02();}export function isPackageBackedManifest(_0x342371){var _0x33fcc2=a73_0x4a5e;return!!_0x342371&&typeof _0x342371===_0x33fcc2(0x1ed)&&!Array[_0x33fcc2(0x1f1)](_0x342371)&&typeof _0x342371[_0x33fcc2(0x1fc)]===_0x33fcc2(0x1fa)&&_0x342371['ossPath'][_0x33fcc2(0x1eb)]>0x0&&Array[_0x33fcc2(0x1f1)](_0x342371[_0x33fcc2(0x1f6)]);}export function isMultiFileManifest(_0x5e5928){var _0x47e939=a73_0x4a5e;return!!_0x5e5928&&typeof _0x5e5928==='object'&&!Array[_0x47e939(0x1f1)](_0x5e5928)&&Array[_0x47e939(0x1f1)](_0x5e5928[_0x47e939(0x1f6)])&&_0x5e5928[_0x47e939(0x1f6)][_0x47e939(0x1f5)](_0x25a29e=>_0x25a29e[_0x47e939(0x1e9)]!=='SKILL.md');}
1
+ (function(_0x4f220a,_0x5e81e0){var _0x14a3f5=a73_0x4779,_0x182848=_0x4f220a();while(!![]){try{var _0xf6a98e=parseInt(_0x14a3f5(0x144))/0x1+-parseInt(_0x14a3f5(0x14a))/0x2*(-parseInt(_0x14a3f5(0x145))/0x3)+parseInt(_0x14a3f5(0x14e))/0x4+parseInt(_0x14a3f5(0x147))/0x5+parseInt(_0x14a3f5(0x151))/0x6*(parseInt(_0x14a3f5(0x143))/0x7)+-parseInt(_0x14a3f5(0x14f))/0x8*(parseInt(_0x14a3f5(0x156))/0x9)+parseInt(_0x14a3f5(0x150))/0xa*(-parseInt(_0x14a3f5(0x146))/0xb);if(_0xf6a98e===_0x5e81e0)break;else _0x182848['push'](_0x182848['shift']());}catch(_0xd65e20){_0x182848['push'](_0x182848['shift']());}}}(a73_0x497c,0xf37bf));function a73_0x497c(){var _0x8bb35=['isArray','ossPath','1797688EsqtWJ','4056rblOSP','45362810evPxTA','12NXQhIX','length','string','object','SKILL.md','12312PvFiaT','3788008XYQgyJ','1584889ZnjZFw','5790987cswVmb','11TwSgsw','5901200lHtnJm','some','files','2hhiJSq','path'];a73_0x497c=function(){return _0x8bb35;};return a73_0x497c();}function a73_0x4779(_0x2413ae,_0x38a921){_0x2413ae=_0x2413ae-0x143;var _0x497cb8=a73_0x497c();var _0x47795f=_0x497cb8[_0x2413ae];return _0x47795f;}export function isPackageBackedManifest(_0x23b4fa){var _0xd6a56a=a73_0x4779;return!!_0x23b4fa&&typeof _0x23b4fa===_0xd6a56a(0x154)&&!Array[_0xd6a56a(0x14c)](_0x23b4fa)&&typeof _0x23b4fa[_0xd6a56a(0x14d)]===_0xd6a56a(0x153)&&_0x23b4fa['ossPath'][_0xd6a56a(0x152)]>0x0&&Array[_0xd6a56a(0x14c)](_0x23b4fa[_0xd6a56a(0x149)]);}export function isMultiFileManifest(_0x23f0a9){var _0x284f61=a73_0x4779;return!!_0x23f0a9&&typeof _0x23f0a9===_0x284f61(0x154)&&!Array[_0x284f61(0x14c)](_0x23f0a9)&&Array[_0x284f61(0x14c)](_0x23f0a9[_0x284f61(0x149)])&&_0x23f0a9[_0x284f61(0x149)][_0x284f61(0x148)](_0x160b74=>_0x160b74[_0x284f61(0x14b)]!==_0x284f61(0x155));}
@@ -1 +1 @@
1
- function a74_0xf1f9(_0x143856,_0x5b90af){_0x143856=_0x143856-0x16c;const _0x25328f=a74_0x2532();let _0xf1f9be=_0x25328f[_0x143856];return _0xf1f9be;}(function(_0xc96495,_0x32adb0){const _0x192867=a74_0xf1f9,_0xfd8c13=_0xc96495();while(!![]){try{const _0x49cb4c=parseInt(_0x192867(0x16e))/0x1+parseInt(_0x192867(0x1a2))/0x2*(parseInt(_0x192867(0x195))/0x3)+-parseInt(_0x192867(0x18b))/0x4+-parseInt(_0x192867(0x184))/0x5+parseInt(_0x192867(0x18c))/0x6+-parseInt(_0x192867(0x19f))/0x7+parseInt(_0x192867(0x17d))/0x8;if(_0x49cb4c===_0x32adb0)break;else _0xfd8c13['push'](_0xfd8c13['shift']());}catch(_0x5b5b01){_0xfd8c13['push'](_0xfd8c13['shift']());}}}(a74_0x2532,0x63000));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1b6f5a){const _0x2ec4a7=a74_0xf1f9,{getRuntimeSkillByCode:_0x51bf93,validateRuntimeSkillPublish:_0x333080}=await import(_0x2ec4a7(0x19a)),{readPushDirectory:_0x49ea5c,resolvePushDirectoryIdentity:_0x3b6142}=await import(_0x2ec4a7(0x182));if(!_0x1b6f5a[_0x2ec4a7(0x1a0)])throw CliErrors[_0x2ec4a7(0x175)]();const _0x25da1c=resolvePushScope(_0x1b6f5a),_0x4c46c3=validateSkillDirectory(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x177)));throwIfSkillValidationFailed(_0x4c46c3);const {diagram:_0x1b36c7,sourceFilePath:_0x112804}=await readRequiredSkillDiagramInput(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x1a4))),_0x4d6b62=diagramPackageExclusion(_0x112804),_0x2a3b9d=_0x3b6142(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],remoteFirstMetadataOptions()),_0x43d0f2=await _0x51bf93(_0x1b6f5a[_0x2ec4a7(0x179)],_0x2a3b9d['skillCode']);throwIfBuiltinPushTarget(_0x43d0f2);if(_0x25da1c===_0x2ec4a7(0x17b)){const _0x111678=_0x49ea5c(_0x4c46c3['dir'],_0x1b6f5a[_0x2ec4a7(0x179)],{...remoteMissingCompanyReadOptions(),..._0x4d6b62}),_0x4e8047=await _0x333080(_0x1b6f5a['appCode'],withDiagram(_0x111678[_0x2ec4a7(0x197)],_0x1b36c7),{'visibility':_0x2ec4a7(0x1a5)});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x111678['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x4e8047['valid'],'errors':_0x4e8047[_0x2ec4a7(0x19c)],'warnings':_0x4e8047['warnings'],'resolvedSlug':_0x4e8047[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x4e8047[_0x2ec4a7(0x18d)],'diagramValidated':_0x4e8047['diagramValidated']},'description':_0x2ec4a7(0x174)};}if(_0x43d0f2&&_0x43d0f2[_0x2ec4a7(0x190)]!==_0x2ec4a7(0x173))throw CliErrors[_0x2ec4a7(0x181)](_0x2ec4a7(0x187)+_0x2a3b9d[_0x2ec4a7(0x17c)]+'\x20has\x20scope=\x22'+(_0x43d0f2[_0x2ec4a7(0x190)]??_0x2ec4a7(0x172))+'\x22.');const _0x7e83ee=_0x49ea5c(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],{..._0x43d0f2?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x4d6b62}),_0x46bd74=await _0x333080(_0x1b6f5a[_0x2ec4a7(0x179)],withDiagram(_0x7e83ee['input'],_0x1b36c7),{'visibility':'PRIVATE'});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x7e83ee[_0x2ec4a7(0x17c)],'visibility':_0x2ec4a7(0x170),'valid':_0x46bd74['valid'],'errors':_0x46bd74[_0x2ec4a7(0x19c)],'warnings':_0x46bd74[_0x2ec4a7(0x18e)],'resolvedSlug':_0x46bd74[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x46bd74[_0x2ec4a7(0x18d)],'diagramValidated':_0x46bd74[_0x2ec4a7(0x16f)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}function a74_0x2532(){const _0xc13656=['4696IYJdGH','resolvedSlug','diagram-file','NAMESPACE_ONLY','files','submitted','478293jZFmjP','diagramValidated','PRIVATE','bool','unknown','personal','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','authRequired','identical','dir','Updated\x20personal\x20Skill\x20','appCode','confirmWarnings','company','skillCode','9228360lgBqQv','\x20has\x20scope=\x22','savedSkill','publishInput','validation','../../skills/runtime-skill-sync.js','payload','2866545ITULas','Company','/api/cli/v1/skills/','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','/publish/validate','Personal','POST','456888qCQBfW','223656dHSkWl','resolvedVersion','warnings','version','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','existing','remoteForPreflight','\x20for\x20review','3oCpRcH','metadata','input','(unknown)','Created\x20personal\x20Skill\x20','../../core/api-client.js','\x20Skill\x20','errors','str','frontmatterDisplayName','4048989AYEiwZ','accessKey','Submitted\x20company\x20Skill\x20'];a74_0x2532=function(){return _0xc13656;};return a74_0x2532();}export async function skillPushExecute(_0x499b37){const _0x45a33b=a74_0xf1f9,{createPersonalRuntimeSkill:_0x4f05f4,downloadRuntimeSkillPackage:_0xe21f33,getRuntimeSkillByCode:_0x59fb03,publishCompanyRuntimeSkill:_0x49ef23,updatePersonalRuntimeSkill:_0x3a28a8,validateRuntimeSkillPublish:_0x320506}=await import(_0x45a33b(0x19a)),{verifyRuntimeSkillPackage:_0x1bcbbe,verifyRuntimeSkillBundle:_0x318192,readPushDirectory:_0x2aba1b,refreshPushDirectoryMetadataFromRemote:_0x3d5a7f,recordPushedRuntimeSkill:_0x2e2b3f,resolvePushDirectoryIdentity:_0x5a907f}=await import(_0x45a33b(0x182));if(!_0x499b37[_0x45a33b(0x1a0)])throw CliErrors[_0x45a33b(0x175)]();const _0x38982b=resolvePushScope(_0x499b37),_0x29fdc9=_0x499b37[_0x45a33b(0x171)]('confirm-warnings')||_0x499b37['bool'](_0x45a33b(0x17a)),_0x7ca153=validateSkillDirectory(_0x499b37[_0x45a33b(0x19d)](_0x45a33b(0x177)));throwIfSkillValidationFailed(_0x7ca153);const {diagram:_0x4dc5d1,sourceFilePath:_0x2ab100}=await readRequiredSkillDiagramInput(_0x499b37['str']('diagram-file')),_0x1a0932=diagramPackageExclusion(_0x2ab100),_0x429fcb=_0x7ca153[_0x45a33b(0x177)];let _0x37ffdf;if(_0x38982b==='company'){const _0x49d62d=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],remoteFirstMetadataOptions()),_0x24aea2=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x49d62d[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x24aea2);if(_0x24aea2)_0x3d5a7f(_0x429fcb,_0x24aea2,_0x499b37[_0x45a33b(0x179)]);const _0x267a3b=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x24aea2?{'targetScope':_0x45a33b(0x17b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1a0932});_0x37ffdf={'scope':'company','payload':_0x267a3b,'publishInput':withDiagram(_0x267a3b[_0x45a33b(0x197)],_0x4dc5d1),'remoteForPreflight':_0x24aea2,'warnings':[]};}else{const _0x4b0b56=_0x499b37['str']('appcode')['trim'](),_0x2f3958=Boolean(_0x4b0b56),_0x26fe03=allowRetargetArgs(_0x2f3958),_0x7e882e=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{...remoteFirstMetadataOptions(),..._0x26fe03[0x0]}),_0x42baf7=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x7e882e[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x42baf7);if(_0x42baf7){if(_0x42baf7[_0x45a33b(0x190)]!==_0x45a33b(0x173)){if(_0x2f3958)throw CliErrors['validation'](_0x45a33b(0x187)+_0x7e882e[_0x45a33b(0x17c)]+_0x45a33b(0x17e)+(_0x42baf7[_0x45a33b(0x190)]??_0x45a33b(0x172))+'\x22.');_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}else!_0x2f3958&&_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}const _0x4d666c=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x42baf7?remotePersonalReadOptions(_0x2f3958,_0x26fe03[0x0]):remoteMissingPersonalReadOptions(_0x26fe03[0x0]),..._0x1a0932}),_0x323abd=_0x42baf7?.[_0x45a33b(0x190)]===_0x45a33b(0x173)&&_0x42baf7[_0x45a33b(0x17c)]===_0x4d666c['skillCode']?_0x42baf7:undefined,_0x52b663=_0x2f3958&&_0x323abd?withRetargetExistingMetadata(_0x4d666c[_0x45a33b(0x197)],_0x323abd,{'preferInputSkillName':Boolean(_0x4d666c[_0x45a33b(0x19e)])}):_0x4d666c['input'],_0x3f4aa0=_0x2f3958?buildRetargetWarning(_0x7e882e[_0x45a33b(0x196)],_0x499b37['appCode']):[];_0x37ffdf={'scope':_0x45a33b(0x173),'payload':_0x4d666c,'publishInput':withDiagram(_0x52b663,_0x4dc5d1),'remoteForPreflight':_0x323abd,'existing':_0x323abd,'warnings':[..._0x7ca153[_0x45a33b(0x18e)],..._0x3f4aa0]};}const _0x286a79=await runRemoteContentPreflight({'scope':_0x37ffdf[_0x45a33b(0x190)],'remote':_0x37ffdf[_0x45a33b(0x193)],'publishInput':_0x37ffdf['publishInput'],'skillCode':_0x37ffdf['payload'][_0x45a33b(0x17c)],'appCode':_0x499b37[_0x45a33b(0x179)],'downloadRuntimeSkillPackage':_0xe21f33,'verifyRuntimeSkillBundle':_0x318192});if(_0x286a79['status']===_0x45a33b(0x176))return _0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)?_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}):_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x286a79[_0x45a33b(0x17f)]),'scope':_0x37ffdf[_0x45a33b(0x190)],..._0x37ffdf['scope']===_0x45a33b(0x173)?{'warnings':_0x37ffdf[_0x45a33b(0x18e)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x37ffdf['scope'])+_0x45a33b(0x19b)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+_0x45a33b(0x191)};if(_0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)){const _0x8180da=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x1a5)});throwIfPublishValidationFailed(_0x45a33b(0x17b),_0x37ffdf['payload']['skillCode'],_0x8180da),throwIfUnconfirmedPublishWarnings('company',_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x8180da[_0x45a33b(0x18e)],_0x29fdc9);const _0x18c828=await _0x49ef23(_0x499b37['appCode'],_0x37ffdf['publishInput'],{'confirmWarnings':_0x29fdc9});return _0x2e2b3f(_0x429fcb,{..._0x18c828,'files':_0x37ffdf['publishInput'][_0x45a33b(0x16c)]},_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x18c828),'scope':_0x45a33b(0x17b),'reviewState':_0x45a33b(0x16d),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x8180da[_0x45a33b(0x18e)]}},'message':_0x45a33b(0x1a1)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+'\x20version\x20'+(_0x18c828[_0x45a33b(0x18f)]??_0x45a33b(0x198))+_0x45a33b(0x194)};}const _0x4eec2f=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x170)});throwIfPublishValidationFailed(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)]['skillCode'],_0x4eec2f),throwIfUnconfirmedPublishWarnings(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x4eec2f[_0x45a33b(0x18e)],_0x29fdc9);const _0x5a241d={'confirmWarnings':_0x29fdc9},_0x34027e=_0x37ffdf[_0x45a33b(0x192)]?await _0x3a28a8(_0x37ffdf['payload'][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d):await _0x4f05f4(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d);let _0x582faa=_0x34027e;if(isMultiFileManifest(_0x37ffdf['publishInput'][_0x45a33b(0x16c)])){const _0xb7dc13=await _0xe21f33('personal',_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x318192(_0x37ffdf[_0x45a33b(0x180)][_0x45a33b(0x16c)],_0xb7dc13),_0x582faa={..._0x34027e,'files':_0x37ffdf['publishInput']['files']};}else{if(isPackageBackedManifest(_0x34027e[_0x45a33b(0x16c)])){const _0x1cd66e=await _0xe21f33(_0x45a33b(0x173),_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x1bcbbe(_0x34027e['files'],_0x1cd66e);}}return _0x2e2b3f(_0x429fcb,_0x582faa,_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x34027e),'warnings':_0x37ffdf[_0x45a33b(0x18e)],'validation':{'warnings':_0x4eec2f[_0x45a33b(0x18e)]},'diagramBound':!![]},'message':_0x37ffdf[_0x45a33b(0x192)]?_0x45a33b(0x178)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]:_0x45a33b(0x199)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]};}function scopeLabel(_0x3a658d){const _0x26a672=a74_0xf1f9;return _0x3a658d===_0x26a672(0x17b)?_0x26a672(0x185):_0x26a672(0x189);}function withDiagram(_0x56f133,_0x2f432b){return{..._0x56f133,'diagram':_0x2f432b};}function diagramPackageExclusion(_0x493334){return _0x493334?{'excludedFilePaths':[_0x493334]}:{};}
1
+ (function(_0xde00c0,_0x261ec2){const _0x1be8c2=a74_0x49d2,_0x4a2186=_0xde00c0();while(!![]){try{const _0x1ad1cd=-parseInt(_0x1be8c2(0xdf))/0x1*(-parseInt(_0x1be8c2(0xd5))/0x2)+parseInt(_0x1be8c2(0xd1))/0x3+parseInt(_0x1be8c2(0xce))/0x4*(-parseInt(_0x1be8c2(0xbf))/0x5)+parseInt(_0x1be8c2(0xab))/0x6*(-parseInt(_0x1be8c2(0xd6))/0x7)+-parseInt(_0x1be8c2(0xa5))/0x8+-parseInt(_0x1be8c2(0xe0))/0x9+parseInt(_0x1be8c2(0xe1))/0xa*(parseInt(_0x1be8c2(0xa4))/0xb);if(_0x1ad1cd===_0x261ec2)break;else _0x4a2186['push'](_0x4a2186['shift']());}catch(_0x5d7cd8){_0x4a2186['push'](_0x4a2186['shift']());}}}(a74_0x3a81,0x8bd87));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a74_0x49d2(_0x1b3d97,_0x5d4c48){_0x1b3d97=_0x1b3d97-0xa3;const _0x3a8164=a74_0x3a81();let _0x49d254=_0x3a8164[_0x1b3d97];return _0x49d254;}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x3f7401){const _0x50794e=a74_0x49d2,{getRuntimeSkillByCode:_0x17e798,validateRuntimeSkillPublish:_0x19c581}=await import(_0x50794e(0xda)),{readPushDirectory:_0x5adcb5,resolvePushDirectoryIdentity:_0x56d1f2}=await import(_0x50794e(0xaf));if(!_0x3f7401['accessKey'])throw CliErrors[_0x50794e(0xc0)]();const _0x476181=resolvePushScope(_0x3f7401),_0x1e3460=validateSkillDirectory(_0x3f7401[_0x50794e(0xd4)]('dir'));throwIfSkillValidationFailed(_0x1e3460);const {diagram:_0x197542,sourceFilePath:_0x163712}=await readRequiredSkillDiagramInput(_0x3f7401[_0x50794e(0xd4)](_0x50794e(0xd7))),_0x42b041=diagramPackageExclusion(_0x163712),_0x5f34ad=_0x56d1f2(_0x1e3460[_0x50794e(0xbc)],_0x3f7401['appCode'],remoteFirstMetadataOptions()),_0x46ad6c=await _0x17e798(_0x3f7401['appCode'],_0x5f34ad[_0x50794e(0xad)]);throwIfBuiltinPushTarget(_0x46ad6c);if(_0x476181==='company'){const _0x20fb57=_0x5adcb5(_0x1e3460[_0x50794e(0xbc)],_0x3f7401['appCode'],{...remoteMissingCompanyReadOptions(),..._0x42b041}),_0x5ad2ab=await _0x19c581(_0x3f7401[_0x50794e(0xd9)],withDiagram(_0x20fb57[_0x50794e(0xc2)],_0x197542),{'visibility':_0x50794e(0xcb)});return{'method':'POST','url':_0x50794e(0xd3)+_0x3f7401[_0x50794e(0xd9)]+_0x50794e(0xb3),'body':{'skillCode':_0x20fb57['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x5ad2ab['valid'],'errors':_0x5ad2ab[_0x50794e(0xa7)],'warnings':_0x5ad2ab['warnings'],'resolvedSlug':_0x5ad2ab[_0x50794e(0xb2)],'resolvedVersion':_0x5ad2ab[_0x50794e(0xca)],'diagramValidated':_0x5ad2ab[_0x50794e(0xcd)]},'description':_0x50794e(0xc5)};}if(_0x46ad6c&&_0x46ad6c['scope']!==_0x50794e(0xb8))throw CliErrors[_0x50794e(0xc1)](_0x50794e(0xdb)+_0x5f34ad['skillCode']+_0x50794e(0xac)+(_0x46ad6c[_0x50794e(0xc4)]??_0x50794e(0xbd))+'\x22.');const _0x223f0f=_0x5adcb5(_0x1e3460[_0x50794e(0xbc)],_0x3f7401[_0x50794e(0xd9)],{..._0x46ad6c?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x42b041}),_0x40b74f=await _0x19c581(_0x3f7401[_0x50794e(0xd9)],withDiagram(_0x223f0f['input'],_0x197542),{'visibility':'PRIVATE'});return{'method':_0x50794e(0xcc),'url':'/api/cli/v1/skills/'+_0x3f7401[_0x50794e(0xd9)]+_0x50794e(0xb3),'body':{'skillCode':_0x223f0f[_0x50794e(0xad)],'visibility':_0x50794e(0xd8),'valid':_0x40b74f[_0x50794e(0xb4)],'errors':_0x40b74f[_0x50794e(0xa7)],'warnings':_0x40b74f[_0x50794e(0xdc)],'resolvedSlug':_0x40b74f[_0x50794e(0xb2)],'resolvedVersion':_0x40b74f['resolvedVersion'],'diagramValidated':_0x40b74f[_0x50794e(0xcd)]},'description':_0x50794e(0xdd)};}export async function skillPushExecute(_0x4f3b32){const _0x18352c=a74_0x49d2,{createPersonalRuntimeSkill:_0x4a2215,downloadRuntimeSkillPackage:_0x895891,getRuntimeSkillByCode:_0x28484a,publishCompanyRuntimeSkill:_0x3264e0,updatePersonalRuntimeSkill:_0x36d136,validateRuntimeSkillPublish:_0x5d5c7b}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x521cf0,verifyRuntimeSkillBundle:_0x580370,readPushDirectory:_0x2ef4c6,refreshPushDirectoryMetadataFromRemote:_0x5bf226,recordPushedRuntimeSkill:_0x29982f,resolvePushDirectoryIdentity:_0x3a8076}=await import(_0x18352c(0xaf));if(!_0x4f3b32[_0x18352c(0xbb)])throw CliErrors['authRequired']();const _0x40088c=resolvePushScope(_0x4f3b32),_0x3975d8=_0x4f3b32[_0x18352c(0xc8)]('confirm-warnings')||_0x4f3b32['bool'](_0x18352c(0xb5)),_0x211a13=validateSkillDirectory(_0x4f3b32[_0x18352c(0xd4)]('dir'));throwIfSkillValidationFailed(_0x211a13);const {diagram:_0x187352,sourceFilePath:_0x7adddf}=await readRequiredSkillDiagramInput(_0x4f3b32[_0x18352c(0xd4)](_0x18352c(0xd7))),_0x1b85f6=diagramPackageExclusion(_0x7adddf),_0x5153f9=_0x211a13[_0x18352c(0xbc)];let _0xe1a6b7;if(_0x40088c===_0x18352c(0xb7)){const _0x4ec14b=_0x3a8076(_0x5153f9,_0x4f3b32['appCode'],remoteFirstMetadataOptions()),_0x192b10=await _0x28484a(_0x4f3b32[_0x18352c(0xd9)],_0x4ec14b[_0x18352c(0xad)]);throwIfBuiltinPushTarget(_0x192b10);if(_0x192b10)_0x5bf226(_0x5153f9,_0x192b10,_0x4f3b32[_0x18352c(0xd9)]);const _0x524a58=_0x2ef4c6(_0x5153f9,_0x4f3b32[_0x18352c(0xd9)],{..._0x192b10?{'targetScope':_0x18352c(0xb7),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1b85f6});_0xe1a6b7={'scope':_0x18352c(0xb7),'payload':_0x524a58,'publishInput':withDiagram(_0x524a58[_0x18352c(0xc2)],_0x187352),'remoteForPreflight':_0x192b10,'warnings':[]};}else{const _0x5e0742=_0x4f3b32[_0x18352c(0xd4)](_0x18352c(0xb0))[_0x18352c(0xc3)](),_0x2ece63=Boolean(_0x5e0742),_0x4b763b=allowRetargetArgs(_0x2ece63),_0x5c7ca9=_0x3a8076(_0x5153f9,_0x4f3b32[_0x18352c(0xd9)],{...remoteFirstMetadataOptions(),..._0x4b763b[0x0]}),_0x48b844=await _0x28484a(_0x4f3b32['appCode'],_0x5c7ca9[_0x18352c(0xad)]);throwIfBuiltinPushTarget(_0x48b844);if(_0x48b844){if(_0x48b844[_0x18352c(0xc4)]!==_0x18352c(0xb8)){if(_0x2ece63)throw CliErrors[_0x18352c(0xc1)](_0x18352c(0xdb)+_0x5c7ca9[_0x18352c(0xad)]+_0x18352c(0xac)+(_0x48b844['scope']??_0x18352c(0xbd))+'\x22.');_0x5bf226(_0x5153f9,_0x48b844,_0x4f3b32[_0x18352c(0xd9)]);}else!_0x2ece63&&_0x5bf226(_0x5153f9,_0x48b844,_0x4f3b32[_0x18352c(0xd9)]);}const _0x243fd8=_0x2ef4c6(_0x5153f9,_0x4f3b32[_0x18352c(0xd9)],{..._0x48b844?remotePersonalReadOptions(_0x2ece63,_0x4b763b[0x0]):remoteMissingPersonalReadOptions(_0x4b763b[0x0]),..._0x1b85f6}),_0x42767f=_0x48b844?.['scope']==='personal'&&_0x48b844[_0x18352c(0xad)]===_0x243fd8[_0x18352c(0xad)]?_0x48b844:undefined,_0x78f530=_0x2ece63&&_0x42767f?withRetargetExistingMetadata(_0x243fd8[_0x18352c(0xc2)],_0x42767f,{'preferInputSkillName':Boolean(_0x243fd8['frontmatterDisplayName'])}):_0x243fd8[_0x18352c(0xc2)],_0x29aa91=_0x2ece63?buildRetargetWarning(_0x5c7ca9[_0x18352c(0xa8)],_0x4f3b32['appCode']):[];_0xe1a6b7={'scope':'personal','payload':_0x243fd8,'publishInput':withDiagram(_0x78f530,_0x187352),'remoteForPreflight':_0x42767f,'existing':_0x42767f,'warnings':[..._0x211a13[_0x18352c(0xdc)],..._0x29aa91]};}const _0x1f2809=await runRemoteContentPreflight({'scope':_0xe1a6b7[_0x18352c(0xc4)],'remote':_0xe1a6b7[_0x18352c(0xaa)],'publishInput':_0xe1a6b7[_0x18352c(0xa9)],'skillCode':_0xe1a6b7[_0x18352c(0xa6)]['skillCode'],'appCode':_0x4f3b32[_0x18352c(0xd9)],'downloadRuntimeSkillPackage':_0x895891,'verifyRuntimeSkillBundle':_0x580370});if(_0x1f2809[_0x18352c(0xc9)]===_0x18352c(0xe3))return _0xe1a6b7[_0x18352c(0xc4)]==='company'?_0x29982f(_0x5153f9,_0x1f2809[_0x18352c(0xc7)],_0x4f3b32[_0x18352c(0xd9)],{'scope':_0x18352c(0xb7)}):_0x29982f(_0x5153f9,_0x1f2809['savedSkill'],_0x4f3b32[_0x18352c(0xd9)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1f2809[_0x18352c(0xc7)]),'scope':_0xe1a6b7['scope'],..._0xe1a6b7[_0x18352c(0xc4)]===_0x18352c(0xb8)?{'warnings':_0xe1a6b7[_0x18352c(0xdc)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0xe1a6b7[_0x18352c(0xc4)])+_0x18352c(0xd0)+_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)]+_0x18352c(0xbe)};if(_0xe1a6b7['scope']==='company'){const _0x51b80f=await _0x5d5c7b(_0x4f3b32[_0x18352c(0xd9)],_0xe1a6b7['publishInput'],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x18352c(0xb7),_0xe1a6b7[_0x18352c(0xa6)]['skillCode'],_0x51b80f),throwIfUnconfirmedPublishWarnings('company',_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)],_0x51b80f['warnings'],_0x3975d8);const _0x217cbf=await _0x3264e0(_0x4f3b32[_0x18352c(0xd9)],_0xe1a6b7['publishInput'],{'confirmWarnings':_0x3975d8});return _0x29982f(_0x5153f9,{..._0x217cbf,'files':_0xe1a6b7[_0x18352c(0xa9)]['files']},_0x4f3b32[_0x18352c(0xd9)],{'scope':_0x18352c(0xb7)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x217cbf),'scope':'company','reviewState':_0x18352c(0xde),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x51b80f[_0x18352c(0xdc)]}},'message':_0x18352c(0xcf)+_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)]+_0x18352c(0xa3)+(_0x217cbf[_0x18352c(0xb6)]??_0x18352c(0xae))+_0x18352c(0xb1)};}const _0x44116d=await _0x5d5c7b(_0x4f3b32[_0x18352c(0xd9)],_0xe1a6b7[_0x18352c(0xa9)],{'visibility':_0x18352c(0xd8)});throwIfPublishValidationFailed(_0x18352c(0xb8),_0xe1a6b7[_0x18352c(0xa6)]['skillCode'],_0x44116d),throwIfUnconfirmedPublishWarnings(_0x18352c(0xb8),_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)],_0x44116d[_0x18352c(0xdc)],_0x3975d8);const _0x2fdbba={'confirmWarnings':_0x3975d8},_0x18feb5=_0xe1a6b7[_0x18352c(0xb9)]?await _0x36d136(_0xe1a6b7['payload']['skillCode'],_0x4f3b32[_0x18352c(0xd9)],_0xe1a6b7[_0x18352c(0xa9)],_0x2fdbba):await _0x4a2215(_0x4f3b32[_0x18352c(0xd9)],_0xe1a6b7[_0x18352c(0xa9)],_0x2fdbba);let _0x42190e=_0x18feb5;if(isMultiFileManifest(_0xe1a6b7[_0x18352c(0xa9)]['files'])){const _0x4f15c8=await _0x895891(_0x18352c(0xb8),_0x18feb5[_0x18352c(0xad)]||_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)],_0x4f3b32[_0x18352c(0xd9)]);_0x580370(_0xe1a6b7[_0x18352c(0xa9)]['files'],_0x4f15c8),_0x42190e={..._0x18feb5,'files':_0xe1a6b7[_0x18352c(0xa9)][_0x18352c(0xba)]};}else{if(isPackageBackedManifest(_0x18feb5[_0x18352c(0xba)])){const _0x1536a6=await _0x895891('personal',_0x18feb5[_0x18352c(0xad)]||_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)],_0x4f3b32['appCode']);_0x521cf0(_0x18feb5[_0x18352c(0xba)],_0x1536a6);}}return _0x29982f(_0x5153f9,_0x42190e,_0x4f3b32[_0x18352c(0xd9)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x18feb5),'warnings':_0xe1a6b7['warnings'],'validation':{'warnings':_0x44116d[_0x18352c(0xdc)]},'diagramBound':!![]},'message':_0xe1a6b7[_0x18352c(0xb9)]?_0x18352c(0xd2)+_0xe1a6b7['payload']['skillCode']:'Created\x20personal\x20Skill\x20'+_0xe1a6b7[_0x18352c(0xa6)][_0x18352c(0xad)]};}function scopeLabel(_0x322601){const _0x44822b=a74_0x49d2;return _0x322601==='company'?_0x44822b(0xc6):_0x44822b(0xe2);}function a74_0x3a81(){const _0x50f8b6=['POST','diagramValidated','202924zgKbzm','Submitted\x20company\x20Skill\x20','\x20Skill\x20','857340fuuAFo','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','str','1837156eOYPFK','266fYSFrN','diagram-file','PRIVATE','appCode','../../core/api-client.js','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','warnings','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','submitted','1hlsbGK','1841922fCruiF','10fnabRE','Personal','identical','\x20version\x20','11906378NORNTc','4638048pMgEBI','payload','errors','metadata','publishInput','remoteForPreflight','10596mDXIrD','\x20has\x20scope=\x22','skillCode','(unknown)','../../skills/runtime-skill-sync.js','appcode','\x20for\x20review','resolvedSlug','/publish/validate','valid','confirmWarnings','version','company','personal','existing','files','accessKey','dir','unknown','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','85QxBDUB','authRequired','validation','input','trim','scope','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Company','savedSkill','bool','status','resolvedVersion','NAMESPACE_ONLY'];a74_0x3a81=function(){return _0x50f8b6;};return a74_0x3a81();}function withDiagram(_0x2dd7f5,_0x4b8599){return{..._0x2dd7f5,'diagram':_0x4b8599};}function diagramPackageExclusion(_0x29338b){return _0x29338b?{'excludedFilePaths':[_0x29338b]}:{};}
@@ -1 +1 @@
1
- (function(_0x3fc231,_0x6f0c6a){const _0x2652b4=a75_0x4d54,_0x518581=_0x3fc231();while(!![]){try{const _0x17e0ca=parseInt(_0x2652b4(0x1dc))/0x1+parseInt(_0x2652b4(0x1dd))/0x2*(-parseInt(_0x2652b4(0x1f6))/0x3)+-parseInt(_0x2652b4(0x1f7))/0x4+parseInt(_0x2652b4(0x1de))/0x5*(-parseInt(_0x2652b4(0x1d0))/0x6)+parseInt(_0x2652b4(0x1cd))/0x7+-parseInt(_0x2652b4(0x1e5))/0x8*(parseInt(_0x2652b4(0x1d3))/0x9)+parseInt(_0x2652b4(0x1f1))/0xa;if(_0x17e0ca===_0x6f0c6a)break;else _0x518581['push'](_0x518581['shift']());}catch(_0x4a2793){_0x518581['push'](_0x518581['shift']());}}}(a75_0x4fc0,0xd71ae));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4f8217){const _0x3a1d3e=a75_0x4d54,_0xedf9a2=_0x4f8217[_0x3a1d3e(0x1d8)](_0x3a1d3e(0x1d1))||_0x3a1d3e(0x1d2);if(_0xedf9a2===_0x3a1d3e(0x1d2)||_0xedf9a2===_0x3a1d3e(0x1fa))return _0xedf9a2;throw CliErrors[_0x3a1d3e(0x1ee)](_0x3a1d3e(0x1d4)+_0xedf9a2+'\x22.');}function a75_0x4d54(_0x4ccb74,_0xf2c308){_0x4ccb74=_0x4ccb74-0x1cb;const _0x4fc0ec=a75_0x4fc0();let _0x4d54da=_0x4fc0ec[_0x4ccb74];return _0x4d54da;}export function allowRetargetArgs(_0x23c51f){return _0x23c51f?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x45b6b7=a75_0x4d54;return{'targetScope':_0x45b6b7(0x1fa),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x27dd53={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x27dd53};}export function remotePersonalReadOptions(_0x241054,_0x4fe1f1={}){return{'ignoreInvalidMetadata':!![],..._0x241054?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4fe1f1};}function a75_0x4fc0(){const _0x3bff9e=['6762900NIovOA','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20cannot\x20be\x20pushed.','company','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','lovrabet.skill.json','(unknown)','4753742WnGvrl','Review\x20each\x20warning\x20before\x20continuing.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','320886eMKAJR','scope','personal','3852uBfick','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','publishInput','join','SkillHub\x20validation\x20returned\x20invalid.','str','appCode','version','Local\x20Skill\x20metadata\x20appCode\x20','1555991hPgfWj','108380AymTFq','95hdShFU','Company','skill-metadata-appcode-retargeted','not-applicable','different','content','Builtin\x20Skill\x20','29288aEzmgp','files','downloadRuntimeSkillPackage','length','builtin','Personal','warnings','errors','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','validation','warning','skillCode','39493550PXushz','remote','identical','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','57wbquZb'];a75_0x4fc0=function(){return _0x3bff9e;};return a75_0x4fc0();}export function throwIfBuiltinPushTarget(_0x4985bd){const _0x376422=a75_0x4d54;if(_0x4985bd?.[_0x376422(0x1d1)]!==_0x376422(0x1e9))return;throw CliErrors[_0x376422(0x1ee)](_0x376422(0x1e4)+(_0x4985bd[_0x376422(0x1f0)]??_0x376422(0x1cc))+_0x376422(0x1f9),_0x376422(0x1fb));}export function throwIfPublishValidationFailed(_0x3ae9ec,_0x55c0ae,_0x2491ae){const _0x215bc2=a75_0x4d54;if(_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]===0x0&&(_0x2491ae['valid']||_0x2491ae[_0x215bc2(0x1eb)]['length']>0x0))return;const _0x29719d=_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]>0x0?_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1d6)](';\x20'):_0x215bc2(0x1d7),_0x99964c=_0x3ae9ec===_0x215bc2(0x1fa)?_0x215bc2(0x1df):_0x215bc2(0x1ea);throw CliErrors[_0x215bc2(0x1ee)](_0x99964c+_0x215bc2(0x1cf)+_0x55c0ae+'.',_0x29719d);}export function throwIfUnconfirmedPublishWarnings(_0x2d5135,_0x13e5be,_0x40d05a,_0x3b5977){const _0x127114=a75_0x4d54;if(_0x40d05a[_0x127114(0x1e8)]===0x0||_0x3b5977)return;const _0x1b19da=_0x2d5135===_0x127114(0x1fa)?_0x127114(0x1df):_0x127114(0x1ea);throw CliErrors[_0x127114(0x1ee)](_0x1b19da+_0x127114(0x1f8)+_0x13e5be+'.',[_0x127114(0x1ce),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x127114(0x1fc),'Warnings:\x20'+_0x40d05a[_0x127114(0x1d6)](';\x20')][_0x127114(0x1d6)]('\x20'));}export function buildRetargetWarning(_0x4bc2e6,_0xf9d875){const _0x32333d=a75_0x4d54;if(!_0x4bc2e6?.[_0x32333d(0x1d9)]||_0x4bc2e6[_0x32333d(0x1d9)]===_0xf9d875)return[];return[{'level':_0x32333d(0x1ef),'ruleId':_0x32333d(0x1e0),'file':_0x32333d(0x1cb),'message':_0x32333d(0x1db)+_0x4bc2e6[_0x32333d(0x1d9)]+_0x32333d(0x1f4)+_0xf9d875+_0x32333d(0x1f5),'suggestion':_0x32333d(0x1ed)}];}export async function runRemoteContentPreflight(_0x1be314){const _0x94f4ba=a75_0x4d54;if(!_0x1be314[_0x94f4ba(0x1f2)]||_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1d1)]!==_0x1be314['scope']||!_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)])return{'status':'not-applicable'};const _0x269fe1=_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1f0)]||_0x1be314['skillCode'];if(!_0x269fe1)return{'status':_0x94f4ba(0x1e1)};const _0x2ca9d2=await _0x1be314[_0x94f4ba(0x1e7)](_0x1be314[_0x94f4ba(0x1d1)],_0x269fe1,_0x1be314[_0x94f4ba(0x1d9)],_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1da)]);try{_0x1be314['verifyRuntimeSkillBundle'](_0x1be314['publishInput'][_0x94f4ba(0x1e6)],_0x2ca9d2);}catch{return{'status':_0x94f4ba(0x1e2)};}return{'status':_0x94f4ba(0x1f3),'savedSkill':{..._0x1be314['remote'],'content':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e3)],'files':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)]}};}
1
+ (function(_0x1e6714,_0x2dd152){const _0x194311=a75_0x585a,_0x136134=_0x1e6714();while(!![]){try{const _0x392f5b=parseInt(_0x194311(0xe5))/0x1*(-parseInt(_0x194311(0x10b))/0x2)+-parseInt(_0x194311(0x103))/0x3+-parseInt(_0x194311(0xf9))/0x4+-parseInt(_0x194311(0xe2))/0x5+-parseInt(_0x194311(0xf1))/0x6*(-parseInt(_0x194311(0x106))/0x7)+parseInt(_0x194311(0x104))/0x8+parseInt(_0x194311(0xf4))/0x9;if(_0x392f5b===_0x2dd152)break;else _0x136134['push'](_0x136134['shift']());}catch(_0x3836f4){_0x136134['push'](_0x136134['shift']());}}}(a75_0x119f,0xb38e8));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x5c89a0){const _0x45ffd1=a75_0x585a,_0x53e1ad=_0x5c89a0['str']('scope')||_0x45ffd1(0x108);if(_0x53e1ad===_0x45ffd1(0x108)||_0x53e1ad===_0x45ffd1(0x101))return _0x53e1ad;throw CliErrors[_0x45ffd1(0xed)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x53e1ad+'\x22.');}function a75_0x585a(_0x9af5bb,_0x29af09){_0x9af5bb=_0x9af5bb-0xe1;const _0x119f70=a75_0x119f();let _0x585afb=_0x119f70[_0x9af5bb];return _0x585afb;}export function allowRetargetArgs(_0x264746){return _0x264746?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x4aed36=a75_0x585a;return{'targetScope':_0x4aed36(0x101),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4850c7={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4850c7};}export function remotePersonalReadOptions(_0x208c86,_0x1241ac={}){return{'ignoreInvalidMetadata':!![],..._0x208c86?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1241ac};}export function throwIfBuiltinPushTarget(_0x50f1f8){const _0xcec75=a75_0x585a;if(_0x50f1f8?.[_0xcec75(0xef)]!==_0xcec75(0x10d))return;throw CliErrors['validation'](_0xcec75(0xf7)+(_0x50f1f8[_0xcec75(0xfc)]??_0xcec75(0xf6))+_0xcec75(0xfb),_0xcec75(0xec));}export function throwIfPublishValidationFailed(_0x1a4070,_0x3dbf47,_0x7ed3ad){const _0x28dbf4=a75_0x585a;if(_0x7ed3ad[_0x28dbf4(0xf3)]['length']===0x0&&(_0x7ed3ad[_0x28dbf4(0xe8)]||_0x7ed3ad[_0x28dbf4(0xe9)][_0x28dbf4(0xfe)]>0x0))return;const _0x4e7525=_0x7ed3ad[_0x28dbf4(0xf3)][_0x28dbf4(0xfe)]>0x0?_0x7ed3ad[_0x28dbf4(0xf3)]['join'](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x309966=_0x1a4070===_0x28dbf4(0x101)?_0x28dbf4(0xf5):_0x28dbf4(0x105);throw CliErrors[_0x28dbf4(0xed)](_0x309966+_0x28dbf4(0xe1)+_0x3dbf47+'.',_0x4e7525);}export function throwIfUnconfirmedPublishWarnings(_0x32a81c,_0x57e3e8,_0x1d984b,_0x371810){const _0x3299f4=a75_0x585a;if(_0x1d984b[_0x3299f4(0xfe)]===0x0||_0x371810)return;const _0x427cc8=_0x32a81c==='company'?'Company':'Personal';throw CliErrors[_0x3299f4(0xed)](_0x427cc8+_0x3299f4(0xfd)+_0x57e3e8+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0x3299f4(0xf2),_0x3299f4(0xe4),_0x3299f4(0x102)+_0x1d984b[_0x3299f4(0x107)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x461760,_0x161a32){const _0x701ba9=a75_0x585a;if(!_0x461760?.[_0x701ba9(0xee)]||_0x461760[_0x701ba9(0xee)]===_0x161a32)return[];return[{'level':_0x701ba9(0x10e),'ruleId':_0x701ba9(0xea),'file':_0x701ba9(0xfa),'message':_0x701ba9(0x100)+_0x461760[_0x701ba9(0xee)]+_0x701ba9(0x10a)+_0x161a32+'\x20after\x20successful\x20push.','suggestion':_0x701ba9(0xe6)}];}export async function runRemoteContentPreflight(_0x34697d){const _0x3d7103=a75_0x585a;if(!_0x34697d[_0x3d7103(0xf8)]||_0x34697d[_0x3d7103(0xf8)]['scope']!==_0x34697d['scope']||!_0x34697d[_0x3d7103(0xe7)][_0x3d7103(0x10c)])return{'status':_0x3d7103(0xf0)};const _0x9e6980=_0x34697d[_0x3d7103(0xf8)][_0x3d7103(0xfc)]||_0x34697d['skillCode'];if(!_0x9e6980)return{'status':_0x3d7103(0xf0)};const _0x5dfeef=await _0x34697d[_0x3d7103(0xeb)](_0x34697d[_0x3d7103(0xef)],_0x9e6980,_0x34697d[_0x3d7103(0xee)],_0x34697d['remote']['version']);try{_0x34697d[_0x3d7103(0x109)](_0x34697d[_0x3d7103(0xe7)][_0x3d7103(0x10c)],_0x5dfeef);}catch{return{'status':_0x3d7103(0xff)};}return{'status':_0x3d7103(0xe3),'savedSkill':{..._0x34697d['remote'],'content':_0x34697d[_0x3d7103(0xe7)]['content'],'files':_0x34697d[_0x3d7103(0xe7)][_0x3d7103(0x10c)]}};}function a75_0x119f(){const _0x4e5fa3=['files','builtin','warning','\x20Skill\x20push\x20validation\x20failed\x20for\x20','963110hGcSme','identical','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','3363CIUyAe','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','publishInput','valid','warnings','skill-metadata-appcode-retargeted','downloadRuntimeSkillPackage','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','validation','appCode','scope','not-applicable','60ogKYyv','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','errors','5323329KvuDiL','Company','(unknown)','Builtin\x20Skill\x20','remote','4461800qZNLOJ','lovrabet.skill.json','\x20cannot\x20be\x20pushed.','skillCode','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','length','different','Local\x20Skill\x20metadata\x20appCode\x20','company','Warnings:\x20','768525yowTtE','7703504HxpAMc','Personal','700616oOyOnH','join','personal','verifyRuntimeSkillBundle','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','152RCBDHW'];a75_0x119f=function(){return _0x4e5fa3;};return a75_0x119f();}
@@ -1 +1 @@
1
- (function(_0x303658,_0x2588c2){const _0x16a3a9=a76_0xa9f8,_0xa7e5af=_0x303658();while(!![]){try{const _0x44ef0c=-parseInt(_0x16a3a9(0x1da))/0x1+-parseInt(_0x16a3a9(0x1cd))/0x2*(-parseInt(_0x16a3a9(0x1c9))/0x3)+parseInt(_0x16a3a9(0x1dd))/0x4*(parseInt(_0x16a3a9(0x1d5))/0x5)+parseInt(_0x16a3a9(0x1e0))/0x6*(parseInt(_0x16a3a9(0x1d1))/0x7)+-parseInt(_0x16a3a9(0x1d9))/0x8+-parseInt(_0x16a3a9(0x1ca))/0x9*(parseInt(_0x16a3a9(0x1cb))/0xa)+-parseInt(_0x16a3a9(0x1db))/0xb*(parseInt(_0x16a3a9(0x1d2))/0xc);if(_0x44ef0c===_0x2588c2)break;else _0xa7e5af['push'](_0xa7e5af['shift']());}catch(_0x3db2ae){_0xa7e5af['push'](_0xa7e5af['shift']());}}}(a76_0x182a,0x7b7a6));export function withRetargetExistingMetadata(_0x1e3fbb,_0x5a3d36,_0xbf3884={}){const _0x35a5bd=a76_0xa9f8,_0x1853e1=_0xbf3884[_0x35a5bd(0x1d4)]?_0x1e3fbb['skillName']??_0x5a3d36[_0x35a5bd(0x1d7)]:_0x5a3d36['skillName']??_0x1e3fbb[_0x35a5bd(0x1d7)];return{..._0x1e3fbb,'skillName':_0x1853e1,'description':_0x5a3d36[_0x35a5bd(0x1dc)]??_0x1e3fbb[_0x35a5bd(0x1dc)],'tags':Array[_0x35a5bd(0x1d8)](_0x5a3d36['tags'])?_0x5a3d36['tags']:_0x1e3fbb[_0x35a5bd(0x1df)],'version':_0x5a3d36[_0x35a5bd(0x1d6)]??_0x1e3fbb[_0x35a5bd(0x1d6)],'sourceSessionId':_0x5a3d36[_0x35a5bd(0x1cc)]??_0x1e3fbb[_0x35a5bd(0x1cc)]};}function a76_0x182a(){const _0x153eca=['5642yOTMVv','12nwIsMM','lovrabet.skill.json','preferInputSkillName','10oftorZ','version','skillName','isArray','151704EOsUXZ','84442Rdhogo','11996017ikpHDQ','description','1595940EvHtfN','Local\x20Skill\x20metadata\x20appCode\x20','tags','1824NoWQhV','2576451vztALD','29817EXfpON','610BDdYus','sourceSessionId','2wLqvfJ','warning','appCode','skill-metadata-appcode-retargeted'];a76_0x182a=function(){return _0x153eca;};return a76_0x182a();}function a76_0xa9f8(_0x1fe8cd,_0x6106){_0x1fe8cd=_0x1fe8cd-0x1c9;const _0x182acc=a76_0x182a();let _0xa9f81d=_0x182acc[_0x1fe8cd];return _0xa9f81d;}export function buildRetargetWarning(_0x146f1e,_0x32eb78){const _0x5c94b0=a76_0xa9f8;if(!_0x146f1e?.[_0x5c94b0(0x1cf)]||_0x146f1e[_0x5c94b0(0x1cf)]===_0x32eb78)return[];return[{'level':_0x5c94b0(0x1ce),'ruleId':_0x5c94b0(0x1d0),'file':_0x5c94b0(0x1d3),'message':_0x5c94b0(0x1de)+_0x146f1e[_0x5c94b0(0x1cf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x32eb78+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
1
+ (function(_0x41b25c,_0x2415aa){const _0x5af300=a76_0x301d,_0x41cf7c=_0x41b25c();while(!![]){try{const _0x22ce4d=-parseInt(_0x5af300(0x1b3))/0x1+parseInt(_0x5af300(0x1a8))/0x2+parseInt(_0x5af300(0x1a7))/0x3*(-parseInt(_0x5af300(0x19e))/0x4)+parseInt(_0x5af300(0x1a6))/0x5*(parseInt(_0x5af300(0x1ad))/0x6)+parseInt(_0x5af300(0x1a2))/0x7*(parseInt(_0x5af300(0x1ab))/0x8)+-parseInt(_0x5af300(0x1b1))/0x9+-parseInt(_0x5af300(0x1a3))/0xa;if(_0x22ce4d===_0x2415aa)break;else _0x41cf7c['push'](_0x41cf7c['shift']());}catch(_0x39f153){_0x41cf7c['push'](_0x41cf7c['shift']());}}}(a76_0x32cd,0x9b800));function a76_0x32cd(){const _0x3da0f3=['tags','preferInputSkillName','30eadtol','30dIkaQw','1344762jsRaER','skill-metadata-appcode-retargeted','warning','8755672WgGwfS','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','906636eraave','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','isArray','skillName','10801368bUklyM','description','97501AslsaQ','Local\x20Skill\x20metadata\x20appCode\x20','94540CQWRoh','appCode','sourceSessionId','version','7YGtCxp','5025450eXWytz'];a76_0x32cd=function(){return _0x3da0f3;};return a76_0x32cd();}export function withRetargetExistingMetadata(_0xf046d5,_0x58d4ac,_0xee2f9b={}){const _0x292ce6=a76_0x301d,_0x1ab890=_0xee2f9b[_0x292ce6(0x1a5)]?_0xf046d5['skillName']??_0x58d4ac[_0x292ce6(0x1b0)]:_0x58d4ac['skillName']??_0xf046d5[_0x292ce6(0x1b0)];return{..._0xf046d5,'skillName':_0x1ab890,'description':_0x58d4ac[_0x292ce6(0x1b2)]??_0xf046d5[_0x292ce6(0x1b2)],'tags':Array[_0x292ce6(0x1af)](_0x58d4ac[_0x292ce6(0x1a4)])?_0x58d4ac[_0x292ce6(0x1a4)]:_0xf046d5['tags'],'version':_0x58d4ac['version']??_0xf046d5[_0x292ce6(0x1a1)],'sourceSessionId':_0x58d4ac[_0x292ce6(0x1a0)]??_0xf046d5[_0x292ce6(0x1a0)]};}function a76_0x301d(_0x420e73,_0x3cbd7a){_0x420e73=_0x420e73-0x19d;const _0x32cd6e=a76_0x32cd();let _0x301dfe=_0x32cd6e[_0x420e73];return _0x301dfe;}export function buildRetargetWarning(_0xbf2b58,_0x12ea31){const _0xe517fa=a76_0x301d;if(!_0xbf2b58?.[_0xe517fa(0x19f)]||_0xbf2b58['appCode']===_0x12ea31)return[];return[{'level':_0xe517fa(0x1aa),'ruleId':_0xe517fa(0x1a9),'file':'lovrabet.skill.json','message':_0xe517fa(0x19d)+_0xbf2b58[_0xe517fa(0x19f)]+_0xe517fa(0x1ac)+_0x12ea31+'\x20after\x20successful\x20push.','suggestion':_0xe517fa(0x1ae)}];}
@@ -1 +1 @@
1
- (function(_0x156167,_0x41f660){const _0x34f51e=a77_0x2bc4,_0x3fae6e=_0x156167();while(!![]){try{const _0x5e1240=-parseInt(_0x34f51e(0x9b))/0x1+-parseInt(_0x34f51e(0x96))/0x2+-parseInt(_0x34f51e(0xa0))/0x3+-parseInt(_0x34f51e(0x98))/0x4+-parseInt(_0x34f51e(0x9d))/0x5+parseInt(_0x34f51e(0x94))/0x6+parseInt(_0x34f51e(0x9f))/0x7;if(_0x5e1240===_0x41f660)break;else _0x3fae6e['push'](_0x3fae6e['shift']());}catch(_0x344b3b){_0x3fae6e['push'](_0x3fae6e['shift']());}}}(a77_0x2695,0x24d9f));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x32394f){const _0x551371=a77_0x2bc4,_0x5f4516=_0x32394f[_0x551371(0x99)]();if(!_0x5f4516||_0x5f4516===_0x551371(0x9a))return[_0x551371(0x9e),_0x551371(0x97)];if(_0x5f4516==='personal'||_0x5f4516==='company')return[_0x5f4516];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x32394f);}export function normalizeListScope(_0x1655eb){const _0x20de00=a77_0x2bc4,_0x717be6=_0x1655eb[_0x20de00(0x99)]();if(!_0x717be6)return _0x20de00(0x9a);if(_0x717be6==='personal'||_0x717be6===_0x20de00(0x97)||_0x717be6===_0x20de00(0x9a))return _0x717be6;throw CliErrors[_0x20de00(0x95)](_0x20de00(0x9c)+_0x1655eb);}export function shouldListScope(_0x5af996,_0x238d65){if(_0x5af996==='all')return!![];return _0x5af996===_0x238d65;}function a77_0x2bc4(_0x1ac38e,_0x1e4446){_0x1ac38e=_0x1ac38e-0x94;const _0x26953b=a77_0x2695();let _0x2bc439=_0x26953b[_0x1ac38e];return _0x2bc439;}function a77_0x2695(){const _0xc705af=['all','113056iuxmSw','Unsupported\x20Skill\x20list\x20scope:\x20','1274195euzuNy','personal','7435687SfYyfg','719436uoHkXm','1072308SKimGU','validation','485152vnJepA','company','958932cQRfxf','trim'];a77_0x2695=function(){return _0xc705af;};return a77_0x2695();}export function listScopeToRuntimeScopes(_0x21f93e){const _0x33188b=a77_0x2bc4;if(_0x21f93e===_0x33188b(0x9a))return[_0x33188b(0x9e),'company'];return[_0x21f93e===_0x33188b(0x97)?_0x33188b(0x97):_0x21f93e];}export function listScopeToRemoteScope(_0x27e1c9){return _0x27e1c9;}
1
+ (function(_0x1dfc53,_0x4dbbf2){const _0x361bba=a77_0x338e,_0xf3b44a=_0x1dfc53();while(!![]){try{const _0x423173=parseInt(_0x361bba(0x142))/0x1*(parseInt(_0x361bba(0x13d))/0x2)+parseInt(_0x361bba(0x148))/0x3*(-parseInt(_0x361bba(0x146))/0x4)+-parseInt(_0x361bba(0x149))/0x5+-parseInt(_0x361bba(0x13c))/0x6*(-parseInt(_0x361bba(0x13f))/0x7)+-parseInt(_0x361bba(0x147))/0x8+parseInt(_0x361bba(0x14a))/0x9+-parseInt(_0x361bba(0x13a))/0xa*(-parseInt(_0x361bba(0x13e))/0xb);if(_0x423173===_0x4dbbf2)break;else _0xf3b44a['push'](_0xf3b44a['shift']());}catch(_0x24d6c5){_0xf3b44a['push'](_0xf3b44a['shift']());}}}(a77_0x4ce4,0xaf4c4));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3a43a4){const _0x2430c8=a77_0x338e,_0x1f04b3=_0x3a43a4[_0x2430c8(0x145)]();if(!_0x1f04b3||_0x1f04b3===_0x2430c8(0x140))return[_0x2430c8(0x13b),_0x2430c8(0x144)];if(_0x1f04b3===_0x2430c8(0x13b)||_0x1f04b3===_0x2430c8(0x144))return[_0x1f04b3];throw CliErrors[_0x2430c8(0x143)](_0x2430c8(0x141)+_0x3a43a4);}export function normalizeListScope(_0x153232){const _0x16da0b=a77_0x338e,_0x2cca16=_0x153232['trim']();if(!_0x2cca16)return'all';if(_0x2cca16===_0x16da0b(0x13b)||_0x2cca16===_0x16da0b(0x144)||_0x2cca16===_0x16da0b(0x140))return _0x2cca16;throw CliErrors[_0x16da0b(0x143)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x153232);}export function shouldListScope(_0xf72a0a,_0x5a1580){const _0xdf91a1=a77_0x338e;if(_0xf72a0a===_0xdf91a1(0x140))return!![];return _0xf72a0a===_0x5a1580;}function a77_0x4ce4(){const _0x19efb9=['658360NvobyD','validation','company','trim','91928ZIMpYv','5097984tEgTUg','156ykOqXC','5982090DMOKRS','8543241yeoAbZ','8664680WlfFSV','personal','294OHbCqD','4qEVLUR','11ocrTxy','87759rtOQUQ','all','Unsupported\x20Skill\x20sync\x20scope:\x20'];a77_0x4ce4=function(){return _0x19efb9;};return a77_0x4ce4();}function a77_0x338e(_0x260fcf,_0x3f73f7){_0x260fcf=_0x260fcf-0x13a;const _0x4ce417=a77_0x4ce4();let _0x338e2c=_0x4ce417[_0x260fcf];return _0x338e2c;}export function listScopeToRuntimeScopes(_0x282b4d){const _0x514f19=a77_0x338e;if(_0x282b4d==='all')return[_0x514f19(0x13b),_0x514f19(0x144)];return[_0x282b4d===_0x514f19(0x144)?_0x514f19(0x144):_0x282b4d];}export function listScopeToRemoteScope(_0x21f6be){return _0x21f6be;}
@@ -1 +1 @@
1
- function a78_0x1baa(_0x449bbd,_0x3a2375){_0x449bbd=_0x449bbd-0x9e;var _0x32131b=a78_0x3213();var _0x1baadd=_0x32131b[_0x449bbd];return _0x1baadd;}(function(_0x21671f,_0x2a390e){var _0x6740aa=a78_0x1baa,_0x4d4d68=_0x21671f();while(!![]){try{var _0x45399f=-parseInt(_0x6740aa(0xab))/0x1+parseInt(_0x6740aa(0xa7))/0x2+parseInt(_0x6740aa(0xa4))/0x3*(parseInt(_0x6740aa(0xac))/0x4)+-parseInt(_0x6740aa(0xa0))/0x5+parseInt(_0x6740aa(0xb5))/0x6+parseInt(_0x6740aa(0xa3))/0x7*(parseInt(_0x6740aa(0xb2))/0x8)+parseInt(_0x6740aa(0xa2))/0x9*(-parseInt(_0x6740aa(0xa1))/0xa);if(_0x45399f===_0x2a390e)break;else _0x4d4d68['push'](_0x4d4d68['shift']());}catch(_0x26c84d){_0x4d4d68['push'](_0x4d4d68['shift']());}}}(a78_0x3213,0x51522));export function summarizeRuntimeSkill(_0x57a201){var _0xf0d33b=a78_0x1baa;return{'id':_0x57a201['id'],'skillCode':_0x57a201[_0xf0d33b(0xa5)],'skillName':_0x57a201[_0xf0d33b(0x9e)],'scope':_0x57a201[_0xf0d33b(0xb3)],'version':_0x57a201[_0xf0d33b(0x9f)],'readonly':_0x57a201['readonly']};}export function summarizeLocalRuntimeSkill(_0x574867){var _0x4e7763=a78_0x1baa;return{'id':_0x574867['id'],'skillCode':_0x574867[_0x4e7763(0xa5)],'skillName':_0x574867[_0x4e7763(0x9e)],'scope':_0x574867[_0x4e7763(0xb3)],'appCode':_0x574867[_0x4e7763(0xaa)],'version':_0x574867[_0x4e7763(0x9f)],'status':_0x574867[_0x4e7763(0xaf)],'readonly':_0x574867[_0x4e7763(0xb1)],'tags':_0x574867[_0x4e7763(0xad)],'dir':_0x574867[_0x4e7763(0xae)],'cacheDir':_0x574867[_0x4e7763(0xa8)],'skillMdPath':_0x574867[_0x4e7763(0xa6)],'metadataPath':_0x574867[_0x4e7763(0xb0)],'linkedPaths':_0x574867[_0x4e7763(0xb6)],'contentHash':_0x574867[_0x4e7763(0xa9)],'treeHash':_0x574867[_0x4e7763(0xb4)],'pulledAt':_0x574867['pulledAt']};}function a78_0x3213(){var _0x4b7455=['version','831180QWjHSE','806460VHQigR','63kCemWW','579999XQwmBX','9RbYBEH','skillCode','skillMdPath','1282958esOJPf','cacheDir','contentHash','appCode','210923qQNQpL','45732PCSZFy','tags','dir','status','metadataPath','readonly','40niAsjf','scope','treeHash','1108248rJoLjo','linkedPaths','skillName'];a78_0x3213=function(){return _0x4b7455;};return a78_0x3213();}
1
+ (function(_0x4f9c6b,_0x34af1a){var _0x543c4f=a78_0xecb2,_0x4773d1=_0x4f9c6b();while(!![]){try{var _0x3c8528=-parseInt(_0x543c4f(0x189))/0x1+-parseInt(_0x543c4f(0x184))/0x2*(-parseInt(_0x543c4f(0x198))/0x3)+parseInt(_0x543c4f(0x193))/0x4+parseInt(_0x543c4f(0x18b))/0x5+-parseInt(_0x543c4f(0x18e))/0x6*(-parseInt(_0x543c4f(0x187))/0x7)+parseInt(_0x543c4f(0x194))/0x8+-parseInt(_0x543c4f(0x188))/0x9;if(_0x3c8528===_0x34af1a)break;else _0x4773d1['push'](_0x4773d1['shift']());}catch(_0x368773){_0x4773d1['push'](_0x4773d1['shift']());}}}(a78_0x4e0f,0xe8778));export function summarizeRuntimeSkill(_0x2d1afc){var _0x35145c=a78_0xecb2;return{'id':_0x2d1afc['id'],'skillCode':_0x2d1afc['skillCode'],'skillName':_0x2d1afc[_0x35145c(0x196)],'scope':_0x2d1afc[_0x35145c(0x195)],'version':_0x2d1afc['version'],'readonly':_0x2d1afc[_0x35145c(0x183)]};}function a78_0x4e0f(){var _0x2660bd=['2753527xfEWjA','17565264oPFpwQ','474002szJSxw','version','6308320NNvzrL','pulledAt','status','18WfnQJF','treeHash','appCode','metadataPath','dir','204920JRWsLv','5067136dQPIiJ','scope','skillName','tags','3OSdLpt','skillCode','readonly','503026LYWuMX','skillMdPath','cacheDir'];a78_0x4e0f=function(){return _0x2660bd;};return a78_0x4e0f();}function a78_0xecb2(_0x428e40,_0x21ffa4){_0x428e40=_0x428e40-0x182;var _0x4e0f18=a78_0x4e0f();var _0xecb2d2=_0x4e0f18[_0x428e40];return _0xecb2d2;}export function summarizeLocalRuntimeSkill(_0x1e5638){var _0x475703=a78_0xecb2;return{'id':_0x1e5638['id'],'skillCode':_0x1e5638[_0x475703(0x182)],'skillName':_0x1e5638[_0x475703(0x196)],'scope':_0x1e5638[_0x475703(0x195)],'appCode':_0x1e5638[_0x475703(0x190)],'version':_0x1e5638[_0x475703(0x18a)],'status':_0x1e5638[_0x475703(0x18d)],'readonly':_0x1e5638[_0x475703(0x183)],'tags':_0x1e5638[_0x475703(0x197)],'dir':_0x1e5638[_0x475703(0x192)],'cacheDir':_0x1e5638[_0x475703(0x186)],'skillMdPath':_0x1e5638[_0x475703(0x185)],'metadataPath':_0x1e5638[_0x475703(0x191)],'linkedPaths':_0x1e5638['linkedPaths'],'contentHash':_0x1e5638['contentHash'],'treeHash':_0x1e5638[_0x475703(0x18f)],'pulledAt':_0x1e5638[_0x475703(0x18c)]};}