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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +53 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.d.ts +2 -0
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.d.ts +2 -0
  27. package/lib/commands/config/init.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +33 -1
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.d.ts +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.d.ts +3 -3
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.js +1 -1
  104. package/lib/constant/output.js +1 -1
  105. package/lib/constant/product.d.ts +0 -51
  106. package/lib/constant/product.js +1 -1
  107. package/lib/constant/region.d.ts +3 -5
  108. package/lib/constant/region.js +1 -1
  109. package/lib/constant/risk.js +1 -1
  110. package/lib/constant/url.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/api-client.d.ts +16 -0
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.d.ts +0 -2
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.d.ts +59 -0
  137. package/lib/generated/official-routing.js +1 -0
  138. package/lib/generated/routing-contract.d.ts +9 -0
  139. package/lib/generated/routing-contract.js +1 -0
  140. package/lib/help.js +1 -1
  141. package/lib/postinstall.js +1 -1
  142. package/lib/runtime/confirmation.js +1 -1
  143. package/lib/runtime/event.js +1 -1
  144. package/lib/runtime/index.js +1 -1
  145. package/lib/runtime/queue.js +1 -1
  146. package/lib/runtime/resolve.js +1 -1
  147. package/lib/skills/builtin-skill.js +1 -1
  148. package/lib/skills/npx-skills-add.js +1 -1
  149. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  150. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  151. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  152. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  153. package/lib/skills/runtime-skill-sync/links.js +1 -1
  154. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  155. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  156. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  157. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  158. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  159. package/lib/skills/runtime-skill-sync/push.js +1 -1
  160. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  162. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  163. package/lib/skills/runtime-skill-sync.js +1 -1
  164. package/lib/skills/skill-presence.js +1 -1
  165. package/lib/utils/access-key-redaction.js +1 -1
  166. package/lib/utils/apply-jq-filter.js +1 -1
  167. package/lib/utils/cli-version-check.js +1 -1
  168. package/lib/utils/cli-version-policy.js +1 -1
  169. package/lib/utils/logger.js +1 -1
  170. package/lib/utils/lossless-json.js +1 -1
  171. package/lib/utils/params.js +1 -1
  172. package/lib/utils/platform.js +1 -1
  173. package/lib/utils/update-notice.js +1 -1
  174. package/lib/utils/version.js +1 -1
  175. package/lib/utils/write-cli-side-channel.js +1 -1
  176. package/package.json +2 -1
  177. package/skills/lovrabet/SKILL.md +4 -4
  178. package/skills/lovrabet/guides/troubleshooting.md +3 -5
  179. package/skills/lovrabet/references/lovrabet-config-commands.md +33 -10
  180. package/skills/lovrabet/references/lovrabet-config.md +8 -20
  181. package/skills/lovrabet/references/lovrabet-doctor.md +0 -2
  182. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -3
  183. package/skills/lovrabet.manifest.json +3 -3
  184. package/lib/core/kb-search-client.d.ts +0 -30
  185. package/lib/core/kb-search-client.js +0 -1
@@ -1 +1 @@
1
- const a64_0x167c55=a64_0xa024;function a64_0x5c2f(){const _0x139817=['type','rendered','skillDir','5QJnHeW','isSymbolicLink','1580666FZppal','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','8OFJDbO','skill','target','1515330zAXajT','skillName','53496qscscR','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','1356tcqNZi','force','isDirectory','131065ZDsYDd','1hiadpr','1553044TypaHd','files','path','name','trim','validation','str','map','2634918ZTJqOm','Created\x20local\x20Skill\x20draft\x20','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','read','bool','WRITE','content','Refusing\x20to\x20overwrite\x20symlink:\x20','14okJmZO','11813810ySvOcP'];a64_0x5c2f=function(){return _0x139817;};return a64_0x5c2f();}(function(_0x5f03e6,_0x39469b){const _0x9865aa=a64_0xa024,_0x88d437=_0x5f03e6();while(!![]){try{const _0x189c9e=parseInt(_0x9865aa(0x167))/0x1*(parseInt(_0x9865aa(0x17f))/0x2)+parseInt(_0x9865aa(0x170))/0x3+parseInt(_0x9865aa(0x168))/0x4*(-parseInt(_0x9865aa(0x17d))/0x5)+-parseInt(_0x9865aa(0x15f))/0x6*(parseInt(_0x9865aa(0x178))/0x7)+parseInt(_0x9865aa(0x15c))/0x8*(parseInt(_0x9865aa(0x161))/0x9)+parseInt(_0x9865aa(0x179))/0xa+-parseInt(_0x9865aa(0x166))/0xb*(parseInt(_0x9865aa(0x163))/0xc);if(_0x189c9e===_0x39469b)break;else _0x88d437['push'](_0x88d437['shift']());}catch(_0x4cf585){_0x88d437['push'](_0x88d437['shift']());}}}(a64_0x5c2f,0x96706));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';function a64_0xa024(_0x3df056,_0x2907bf){_0x3df056=_0x3df056-0x15b;const _0x5c2f56=a64_0x5c2f();let _0xa024ac=_0x5c2f56[_0x3df056];return _0xa024ac;}export const createCommand={'service':a64_0x167c55(0x15d),'command':'create','description':'Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','risk':a64_0x167c55(0x173),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x37d824){const _0xbac7b2=a64_0x167c55,_0x4e3051=buildSkillCreatePlan(_0x37d824[_0xbac7b2(0x16e)](_0xbac7b2(0x16b)),_0x37d824[_0xbac7b2(0x16e)]('type'),_0x37d824[_0xbac7b2(0x16e)](_0xbac7b2(0x15e)));return{'method':_0xbac7b2(0x175),'url':_0x4e3051[_0xbac7b2(0x17c)],'body':{'skillName':_0x4e3051[_0xbac7b2(0x17b)][_0xbac7b2(0x160)],'type':_0x4e3051[_0xbac7b2(0x17b)][_0xbac7b2(0x17a)],'selfContained':!![],'files':_0x4e3051[_0xbac7b2(0x17b)][_0xbac7b2(0x169)][_0xbac7b2(0x16f)](_0x23c67c=>_0x23c67c[_0xbac7b2(0x16a)])},'description':_0xbac7b2(0x172)};},async 'execute'(_0x56899e){const _0x5d3e81=a64_0x167c55,_0xfd5718=buildSkillCreatePlan(_0x56899e[_0x5d3e81(0x16e)]('name'),_0x56899e['str'](_0x5d3e81(0x17a)),_0x56899e['str'](_0x5d3e81(0x15e)));return writeSkillDraft(_0xfd5718,_0x56899e[_0x5d3e81(0x174)](_0x5d3e81(0x164))),{'ok':!![],'data':{'skillName':_0xfd5718[_0x5d3e81(0x17b)][_0x5d3e81(0x160)],'type':_0xfd5718['rendered'][_0x5d3e81(0x17a)],'dir':_0xfd5718[_0x5d3e81(0x17c)],'files':_0xfd5718[_0x5d3e81(0x17b)][_0x5d3e81(0x169)][_0x5d3e81(0x16f)](_0x16aa0d=>_0x16aa0d['path'])},'message':_0x5d3e81(0x171)+_0xfd5718['rendered'][_0x5d3e81(0x160)]};}};function buildSkillCreatePlan(_0x1496d0,_0x5492bf,_0x4fb2d8){const _0x179c5b=a64_0x167c55,_0xef46d1=_0x5492bf[_0x179c5b(0x16c)](),_0x1da955=renderSkillTemplate({'skillName':_0x1496d0,'type':_0xef46d1});!_0xef46d1&&writeCliSideChannelLine('Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.');const _0x1075b8=resolve(normalizeSkillTarget(_0x4fb2d8));return{'rendered':_0x1da955,'targetRoot':_0x1075b8,'skillDir':resolve(_0x1075b8,_0x1da955['skillName'])};}function normalizeSkillTarget(_0x1d2da5){const _0x3ef0dc=a64_0x167c55;return(_0x1d2da5||DEFAULT_SKILL_TARGET)[_0x3ef0dc(0x16c)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x2914d5,_0x5d5990){const _0x2f1097=a64_0x167c55;if(existsSync(_0x2914d5[_0x2f1097(0x17c)])){const _0x52ea9f=lstatSync(_0x2914d5[_0x2f1097(0x17c)]);if(!_0x52ea9f[_0x2f1097(0x165)]()||_0x52ea9f[_0x2f1097(0x17e)]())throw CliErrors[_0x2f1097(0x16d)](_0x2f1097(0x162)+_0x2914d5[_0x2f1097(0x17c)]);if(!_0x5d5990)throw CliErrors['validation']('Skill\x20directory\x20already\x20exists:\x20'+_0x2914d5[_0x2f1097(0x17c)],_0x2f1097(0x15b));}for(const _0x26fe33 of _0x2914d5['rendered']['files']){const _0x4ea0b5=resolve(_0x2914d5[_0x2f1097(0x17c)],_0x26fe33[_0x2f1097(0x16a)]),_0x2f8ef3=dirname(_0x4ea0b5);mkdirSync(_0x2f8ef3,{'recursive':!![]});if(existsSync(_0x4ea0b5)&&lstatSync(_0x4ea0b5)[_0x2f1097(0x17e)]())throw CliErrors[_0x2f1097(0x16d)](_0x2f1097(0x177)+_0x4ea0b5);writeFileSync(_0x4ea0b5,_0x26fe33[_0x2f1097(0x176)],'utf8');}}
1
+ const a64_0x4a2669=a64_0x1caf;(function(_0x3f90be,_0x10c584){const _0x20cc53=a64_0x1caf,_0xc8d725=_0x3f90be();while(!![]){try{const _0x3cb407=parseInt(_0x20cc53(0x208))/0x1*(parseInt(_0x20cc53(0x20b))/0x2)+parseInt(_0x20cc53(0x1e9))/0x3+parseInt(_0x20cc53(0x1f8))/0x4*(parseInt(_0x20cc53(0x205))/0x5)+-parseInt(_0x20cc53(0x1f5))/0x6+parseInt(_0x20cc53(0x1ec))/0x7+parseInt(_0x20cc53(0x1f7))/0x8+-parseInt(_0x20cc53(0x1ff))/0x9*(parseInt(_0x20cc53(0x20d))/0xa);if(_0x3cb407===_0x10c584)break;else _0xc8d725['push'](_0xc8d725['shift']());}catch(_0x49ad58){_0xc8d725['push'](_0xc8d725['shift']());}}}(a64_0x5b07,0xccfda));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';function a64_0x5b07(){const _0x3920ec=['Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','str','6776205WwzKZO','map','skillName','73119VfUUQX','path','create','38KjPjAm','isSymbolicLink','10zgIvcL','target','1577901YAVZnB','content','Skill\x20directory\x20already\x20exists:\x20','1553965yRuUBo','trim','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','skillDir','name','files','read','skill','9061338SxvMrV','validation','11626992sKLsrb','4xOHlED','WRITE','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','Created\x20local\x20Skill\x20draft\x20','rendered','type','bool','23363757oexail','isDirectory','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','utf8'];a64_0x5b07=function(){return _0x3920ec;};return a64_0x5b07();}import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a64_0x4a2669(0x1f4),'command':a64_0x4a2669(0x20a),'description':a64_0x4a2669(0x201),'risk':a64_0x4a2669(0x1f3),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x530f61){const _0x430e71=a64_0x4a2669,_0x3ede61=buildSkillCreatePlan(_0x530f61['str']('name'),_0x530f61[_0x430e71(0x204)](_0x430e71(0x1fd)),_0x530f61[_0x430e71(0x204)]('target'));return{'method':_0x430e71(0x1f9),'url':_0x3ede61[_0x430e71(0x1f0)],'body':{'skillName':_0x3ede61[_0x430e71(0x1fc)]['skillName'],'type':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1fd)],'selfContained':!![],'files':_0x3ede61[_0x430e71(0x1fc)][_0x430e71(0x1f2)][_0x430e71(0x206)](_0x24afc0=>_0x24afc0[_0x430e71(0x209)])},'description':_0x430e71(0x1ee)};},async 'execute'(_0x50b656){const _0x503e1e=a64_0x4a2669,_0xa94206=buildSkillCreatePlan(_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1f1)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x1fd)),_0x50b656[_0x503e1e(0x204)](_0x503e1e(0x20e)));return writeSkillDraft(_0xa94206,_0x50b656[_0x503e1e(0x1fe)]('force')),{'ok':!![],'data':{'skillName':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x207)],'type':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1fd)],'dir':_0xa94206[_0x503e1e(0x1f0)],'files':_0xa94206[_0x503e1e(0x1fc)][_0x503e1e(0x1f2)][_0x503e1e(0x206)](_0x5beb3d=>_0x5beb3d[_0x503e1e(0x209)])},'message':_0x503e1e(0x1fb)+_0xa94206['rendered']['skillName']};}};function buildSkillCreatePlan(_0x55f0ac,_0x2f438a,_0x5599cb){const _0x1930a0=a64_0x4a2669,_0x3fc4d5=_0x2f438a[_0x1930a0(0x1ed)](),_0x14e426=renderSkillTemplate({'skillName':_0x55f0ac,'type':_0x3fc4d5});!_0x3fc4d5&&writeCliSideChannelLine(_0x1930a0(0x1ef));const _0xcedb5e=resolve(normalizeSkillTarget(_0x5599cb));return{'rendered':_0x14e426,'targetRoot':_0xcedb5e,'skillDir':resolve(_0xcedb5e,_0x14e426[_0x1930a0(0x207)])};}function a64_0x1caf(_0x17c925,_0x9ac94b){_0x17c925=_0x17c925-0x1e9;const _0x5b07f4=a64_0x5b07();let _0x1caf2a=_0x5b07f4[_0x17c925];return _0x1caf2a;}function normalizeSkillTarget(_0x2f2caa){const _0x2d6020=a64_0x4a2669;return(_0x2f2caa||DEFAULT_SKILL_TARGET)[_0x2d6020(0x1ed)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x4db9a4,_0x1348ac){const _0x34b6dc=a64_0x4a2669;if(existsSync(_0x4db9a4[_0x34b6dc(0x1f0)])){const _0xf7da0b=lstatSync(_0x4db9a4[_0x34b6dc(0x1f0)]);if(!_0xf7da0b[_0x34b6dc(0x200)]()||_0xf7da0b[_0x34b6dc(0x20c)]())throw CliErrors['validation'](_0x34b6dc(0x1fa)+_0x4db9a4['skillDir']);if(!_0x1348ac)throw CliErrors[_0x34b6dc(0x1f6)](_0x34b6dc(0x1eb)+_0x4db9a4[_0x34b6dc(0x1f0)],_0x34b6dc(0x203));}for(const _0x5d1150 of _0x4db9a4['rendered'][_0x34b6dc(0x1f2)]){const _0x35c964=resolve(_0x4db9a4[_0x34b6dc(0x1f0)],_0x5d1150['path']),_0x1972dd=dirname(_0x35c964);mkdirSync(_0x1972dd,{'recursive':!![]});if(existsSync(_0x35c964)&&lstatSync(_0x35c964)['isSymbolicLink']())throw CliErrors[_0x34b6dc(0x1f6)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x35c964);writeFileSync(_0x35c964,_0x5d1150[_0x34b6dc(0x1ea)],_0x34b6dc(0x202));}}
@@ -1 +1 @@
1
- const a65_0x5cb08d=a65_0x6f47;(function(_0xba1190,_0x39d64f){const _0x1ad7c3=a65_0x6f47,_0x45b5ab=_0xba1190();while(!![]){try{const _0x1e44a5=parseInt(_0x1ad7c3(0xa5))/0x1*(-parseInt(_0x1ad7c3(0xa0))/0x2)+-parseInt(_0x1ad7c3(0xb9))/0x3+-parseInt(_0x1ad7c3(0xaa))/0x4*(parseInt(_0x1ad7c3(0xb6))/0x5)+-parseInt(_0x1ad7c3(0xab))/0x6*(-parseInt(_0x1ad7c3(0xcd))/0x7)+parseInt(_0x1ad7c3(0xc5))/0x8*(parseInt(_0x1ad7c3(0xc6))/0x9)+parseInt(_0x1ad7c3(0xcb))/0xa*(parseInt(_0x1ad7c3(0xa3))/0xb)+parseInt(_0x1ad7c3(0xbc))/0xc*(parseInt(_0x1ad7c3(0xae))/0xd);if(_0x1e44a5===_0x39d64f)break;else _0x45b5ab['push'](_0x45b5ab['shift']());}catch(_0x28da83){_0x45b5ab['push'](_0x45b5ab['shift']());}}}(a65_0x58a1,0xc1e79));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a65_0x6f47(_0x1af39f,_0x49ffac){_0x1af39f=_0x1af39f-0x9f;const _0x58a1d5=a65_0x58a1();let _0x6f4755=_0x58a1d5[_0x1af39f];return _0x6f4755;}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(_0x388dd8){const _0x5e5400=a65_0x6f47,_0x31b0b5=_0x388dd8['str']('skill-code')[_0x5e5400(0x9f)](),_0x53b538=_0x388dd8['str'](_0x5e5400(0xa2))[_0x5e5400(0x9f)](),_0x14c708=_0x388dd8[_0x5e5400(0xbe)]('scope');if(!_0x31b0b5||!_0x53b538||_0x14c708!==_0x5e5400(0xb2)&&_0x14c708!=='company')throw CliErrors[_0x5e5400(0xa9)](_0x5e5400(0xa1));return{'skillCode':_0x31b0b5,'version':_0x53b538,'scope':_0x14c708};}function a65_0x58a1(){const _0x34e2f2=['--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','version','11CfFuWJ','source-fingerprint','822839BLyDGe','expected-diagram-revision','scope','found','validation','564BWgAbn','1001094kTTRRJ','\x20is\x20unchanged.','Created','13SbsJPK','action','read','expectedDiagramRevision','personal','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.','Found\x20Skill\x20diagram\x20for\x20','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','33740wjrXRs','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','\x20Skill\x20diagram\x20for\x20','663420bBBImw','created','diagram-show','179508gNKhdh','Updated','str','write','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','test','isInteger','diagram-file','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','42448RdqWpy','1017LdoEim','skillCode','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','appCode','diagram-validate','6735020iNnbUr','diagram-push','63BcHCxZ','skill','trim','2DceMyc'];a65_0x58a1=function(){return _0x34e2f2;};return a65_0x58a1();}async function readDiagramWriteInput(_0x380027){const _0x15bb7b=a65_0x6f47,_0x2452aa=_0x380027['num'](_0x15bb7b(0xa6)),_0x319b51=_0x380027[_0x15bb7b(0xbe)](_0x15bb7b(0xa4))['trim']();if(!Number[_0x15bb7b(0xc2)](_0x2452aa)||_0x2452aa<0x0)throw CliErrors['validation'](_0x15bb7b(0xb7));if(!/^sha256:[0-9a-f]{64}$/[_0x15bb7b(0xc1)](_0x319b51))throw CliErrors[_0x15bb7b(0xa9)]('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x2452aa,'sourceFingerprint':_0x319b51,'diagram':await readRequiredSkillDiagram(_0x380027[_0x15bb7b(0xbe)](_0x15bb7b(0xc3)))};}export const diagramValidateCommand={'service':a65_0x5cb08d(0xce),'command':a65_0x5cb08d(0xca),'description':a65_0x5cb08d(0xb5),'risk':a65_0x5cb08d(0xb0),'flags':WRITE_FLAGS,async 'execute'(_0x30361a){const _0x23bfea=a65_0x5cb08d,_0xf844f8=readDiagramTarget(_0x30361a),_0x233c64=await validateRuntimeSkillVersionDiagram(_0x30361a[_0x23bfea(0xc9)],_0xf844f8['skillCode'],_0xf844f8[_0x23bfea(0xa2)],_0xf844f8[_0x23bfea(0xa7)],await readDiagramWriteInput(_0x30361a));return{'ok':!![],'data':_0x233c64,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0xf844f8['skillCode']+'@'+_0xf844f8['version']+'.'};}};export const diagramPushCommand={'service':a65_0x5cb08d(0xce),'command':a65_0x5cb08d(0xcc),'description':a65_0x5cb08d(0xc4),'risk':a65_0x5cb08d(0xbf),'confirmationDescription':a65_0x5cb08d(0xb3),'flags':WRITE_FLAGS,async 'execute'(_0x465cc6){const _0x5b979d=a65_0x5cb08d,_0x9e8f5a=readDiagramTarget(_0x465cc6),_0x335c34=await putRuntimeSkillVersionDiagram(_0x465cc6['appCode'],_0x9e8f5a[_0x5b979d(0xc7)],_0x9e8f5a[_0x5b979d(0xa2)],_0x9e8f5a[_0x5b979d(0xa7)],await readDiagramWriteInput(_0x465cc6));return{'ok':!![],'data':_0x335c34,'message':_0x335c34[_0x5b979d(0xaf)]==='unchanged'?'Skill\x20diagram\x20for\x20'+_0x9e8f5a[_0x5b979d(0xc7)]+'@'+_0x9e8f5a[_0x5b979d(0xa2)]+_0x5b979d(0xac):(_0x335c34[_0x5b979d(0xaf)]===_0x5b979d(0xba)?_0x5b979d(0xad):_0x5b979d(0xbd))+_0x5b979d(0xb8)+_0x9e8f5a[_0x5b979d(0xc7)]+'@'+_0x9e8f5a['version']+'.'};}};export const diagramShowCommand={'service':a65_0x5cb08d(0xce),'command':a65_0x5cb08d(0xbb),'description':a65_0x5cb08d(0xc0),'risk':a65_0x5cb08d(0xb0),'flags':TARGET_FLAGS,async 'execute'(_0x2e891b){const _0x49875f=a65_0x5cb08d,_0x31ac24=readDiagramTarget(_0x2e891b),_0x331a30=await getRuntimeSkillVersionDiagram(_0x2e891b[_0x49875f(0xc9)],_0x31ac24['skillCode'],_0x31ac24[_0x49875f(0xa2)],_0x31ac24[_0x49875f(0xa7)]);return{'ok':!![],'data':_0x331a30,'message':_0x331a30[_0x49875f(0xa8)]?_0x49875f(0xb4)+_0x31ac24[_0x49875f(0xc7)]+'@'+_0x31ac24[_0x49875f(0xa2)]+';\x20next\x20write\x20expects\x20revision\x20'+_0x331a30['expectedDiagramRevision']+'.':_0x49875f(0xc8)+_0x31ac24['skillCode']+'@'+_0x31ac24[_0x49875f(0xa2)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x331a30[_0x49875f(0xb1)]+'.'};}};
1
+ const a65_0x5e8aad=a65_0x1e5c;(function(_0x41d439,_0x4bb71b){const _0x1f8d85=a65_0x1e5c,_0x4bf937=_0x41d439();while(!![]){try{const _0x4bc75b=-parseInt(_0x1f8d85(0x1d8))/0x1+-parseInt(_0x1f8d85(0x1dc))/0x2*(-parseInt(_0x1f8d85(0x1de))/0x3)+parseInt(_0x1f8d85(0x1d6))/0x4+parseInt(_0x1f8d85(0x1db))/0x5*(parseInt(_0x1f8d85(0x1cd))/0x6)+-parseInt(_0x1f8d85(0x1c0))/0x7*(-parseInt(_0x1f8d85(0x1b6))/0x8)+parseInt(_0x1f8d85(0x1c2))/0x9*(parseInt(_0x1f8d85(0x1ca))/0xa)+-parseInt(_0x1f8d85(0x1cc))/0xb;if(_0x4bc75b===_0x4bb71b)break;else _0x4bf937['push'](_0x4bf937['shift']());}catch(_0x5ef58c){_0x4bf937['push'](_0x4bf937['shift']());}}}(a65_0x4432,0xa49d3));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x1f5029){const _0x126408=a65_0x1e5c,_0xb4ac71=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1d5))[_0x126408(0x1cf)](),_0xbe66c6=_0x1f5029[_0x126408(0x1d1)](_0x126408(0x1b3))['trim'](),_0x3ef824=_0x1f5029['str']('scope');if(!_0xb4ac71||!_0xbe66c6||_0x3ef824!=='personal'&&_0x3ef824!==_0x126408(0x1ce))throw CliErrors[_0x126408(0x1ba)](_0x126408(0x1b1));return{'skillCode':_0xb4ac71,'version':_0xbe66c6,'scope':_0x3ef824};}function a65_0x4432(){const _0x2d8ee4=['Created','659776ghTbuQ',';\x20next\x20write\x20expects\x20revision\x20','write','73765asldWa','450QyAORJ','appCode','13029wSvXTJ','Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','\x20Skill\x20diagram\x20for\x20','version','Skill\x20diagram\x20for\x20','expectedDiagramRevision','400Rrkhrb','scope','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','isInteger','validation','Skill\x20diagram\x20validation\x20passed\x20for\x20','skillCode','diagram-push','read','diagram-file','170107ihpdvU','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','719991CZBzoe','found','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','source-fingerprint','created','action','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','160VzLDpw','test','34203202HdwKie','78RWagRU','company','trim','expected-diagram-revision','str','skill','\x20is\x20unchanged.','Found\x20Skill\x20diagram\x20for\x20','skill-code','3117676bAMyfs'];a65_0x4432=function(){return _0x2d8ee4;};return a65_0x4432();}async function readDiagramWriteInput(_0x59c0a6){const _0x2084f4=a65_0x1e5c,_0x53bee0=_0x59c0a6['num'](_0x2084f4(0x1d0)),_0xefb12=_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1c5))[_0x2084f4(0x1cf)]();if(!Number[_0x2084f4(0x1b9)](_0x53bee0)||_0x53bee0<0x0)throw CliErrors[_0x2084f4(0x1ba)](_0x2084f4(0x1b8));if(!/^sha256:[0-9a-f]{64}$/[_0x2084f4(0x1cb)](_0xefb12))throw CliErrors['validation']('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x53bee0,'sourceFingerprint':_0xefb12,'diagram':await readRequiredSkillDiagram(_0x59c0a6[_0x2084f4(0x1d1)](_0x2084f4(0x1bf)))};}export const diagramValidateCommand={'service':a65_0x5e8aad(0x1d2),'command':'diagram-validate','description':a65_0x5e8aad(0x1c1),'risk':'read','flags':WRITE_FLAGS,async 'execute'(_0xf4c7e0){const _0x461f88=a65_0x5e8aad,_0x416789=readDiagramTarget(_0xf4c7e0),_0x148d68=await validateRuntimeSkillVersionDiagram(_0xf4c7e0[_0x461f88(0x1dd)],_0x416789[_0x461f88(0x1bc)],_0x416789['version'],_0x416789[_0x461f88(0x1b7)],await readDiagramWriteInput(_0xf4c7e0));return{'ok':!![],'data':_0x148d68,'message':_0x461f88(0x1bb)+_0x416789[_0x461f88(0x1bc)]+'@'+_0x416789[_0x461f88(0x1b3)]+'.'};}};function a65_0x1e5c(_0x3aac2f,_0x5a6c90){_0x3aac2f=_0x3aac2f-0x1b0;const _0x44325c=a65_0x4432();let _0x1e5c8c=_0x44325c[_0x3aac2f];return _0x1e5c8c;}export const diagramPushCommand={'service':a65_0x5e8aad(0x1d2),'command':a65_0x5e8aad(0x1bd),'description':a65_0x5e8aad(0x1c8),'risk':a65_0x5e8aad(0x1da),'confirmationDescription':a65_0x5e8aad(0x1b0),'flags':WRITE_FLAGS,async 'execute'(_0x2992e7){const _0x56e9e4=a65_0x5e8aad,_0x27d439=readDiagramTarget(_0x2992e7),_0x3af222=await putRuntimeSkillVersionDiagram(_0x2992e7['appCode'],_0x27d439[_0x56e9e4(0x1bc)],_0x27d439[_0x56e9e4(0x1b3)],_0x27d439[_0x56e9e4(0x1b7)],await readDiagramWriteInput(_0x2992e7));return{'ok':!![],'data':_0x3af222,'message':_0x3af222['action']==='unchanged'?_0x56e9e4(0x1b4)+_0x27d439[_0x56e9e4(0x1bc)]+'@'+_0x27d439[_0x56e9e4(0x1b3)]+_0x56e9e4(0x1d3):(_0x3af222[_0x56e9e4(0x1c7)]===_0x56e9e4(0x1c6)?_0x56e9e4(0x1d7):'Updated')+_0x56e9e4(0x1b2)+_0x27d439['skillCode']+'@'+_0x27d439[_0x56e9e4(0x1b3)]+'.'};}};export const diagramShowCommand={'service':'skill','command':'diagram-show','description':a65_0x5e8aad(0x1c4),'risk':a65_0x5e8aad(0x1be),'flags':TARGET_FLAGS,async 'execute'(_0x5947aa){const _0x53a51c=a65_0x5e8aad,_0x34efb6=readDiagramTarget(_0x5947aa),_0x3ab87f=await getRuntimeSkillVersionDiagram(_0x5947aa[_0x53a51c(0x1dd)],_0x34efb6['skillCode'],_0x34efb6['version'],_0x34efb6[_0x53a51c(0x1b7)]);return{'ok':!![],'data':_0x3ab87f,'message':_0x3ab87f[_0x53a51c(0x1c3)]?_0x53a51c(0x1d4)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6['version']+_0x53a51c(0x1d9)+_0x3ab87f[_0x53a51c(0x1b5)]+'.':_0x53a51c(0x1c9)+_0x34efb6[_0x53a51c(0x1bc)]+'@'+_0x34efb6[_0x53a51c(0x1b3)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x3ab87f[_0x53a51c(0x1b5)]+'.'};}};
@@ -1 +1 @@
1
- const a66_0x274bab=a66_0x1272;function a66_0xe61a(){const _0x27aa40=['Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','accessKey','skillRoots','removed','appCode','all','925611Ywlnpw','100bmHLDm','62960jdMRGk','skillCode','../../../skills/runtime-skill-sync.js','force','global','company','1894UzHBKl','\x20personal\x20and\x20','str','updated','length','map','1202299mSGsZL','min','envName','from','2615391vwHxKv','created','590604slgZpP','bool','filter','unchanged','version','201381IDPNDW','project','action','\x20company\x20Skill(s).','trim','production','code','scope','includes','Installed\x20','10eUkFUe','8VqStfh','personal','skipped'];a66_0xe61a=function(){return _0x27aa40;};return a66_0xe61a();}(function(_0x1d25cb,_0x55745d){const _0x1acf05=a66_0x1272,_0x4c3194=_0x1d25cb();while(!![]){try{const _0x4e38d5=parseInt(_0x1acf05(0x1d3))/0x1+-parseInt(_0x1acf05(0x1c2))/0x2+parseInt(_0x1acf05(0x1ba))/0x3+parseInt(_0x1acf05(0x1bb))/0x4*(-parseInt(_0x1acf05(0x1bc))/0x5)+parseInt(_0x1acf05(0x1ce))/0x6+parseInt(_0x1acf05(0x1c8))/0x7*(parseInt(_0x1acf05(0x1b1))/0x8)+-parseInt(_0x1acf05(0x1cc))/0x9*(parseInt(_0x1acf05(0x1b0))/0xa);if(_0x4e38d5===_0x55745d)break;else _0x4c3194['push'](_0x4c3194['shift']());}catch(_0x3b96b6){_0x4c3194['push'](_0x4c3194['shift']());}}}(a66_0xe61a,0x2a6c3));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';function a66_0x1272(_0x2e0377,_0x24b54b){_0x2e0377=_0x2e0377-0x1ad;const _0xe61acf=a66_0xe61a();let _0x127285=_0xe61acf[_0x2e0377];return _0x127285;}const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':'skill','command':'install','description':a66_0x274bab(0x1b4),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x5ae193){return syncRuntimeSkills(_0x5ae193);}};async function syncRuntimeSkills(_0x24738b){const _0x42bff2=a66_0x274bab,{downloadRuntimeSkillPackage:_0x588192,listRuntimeSkills:_0x37c06e}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x3e0ecf,materializeRuntimeSkill:_0x104bbd,pruneStaleRuntimeSkillCache:_0x41ee87,pruneStaleRuntimeSkillLinks:_0x337f9b,resolveRuntimeSkillInstallTarget:_0x36c089,reuseMaterializedRuntimeSkill:_0xfe391f}=await import(_0x42bff2(0x1be)),_0x641314=_0x24738b[_0x42bff2(0x1c4)](_0x42bff2(0x1d9)),_0x1ce851=normalizeSyncScopes(_0x24738b[_0x42bff2(0x1c4)](_0x42bff2(0x1ad))),_0x2cb706=_0x24738b[_0x42bff2(0x1ca)]??_0x42bff2(0x1d8),_0x52ebbf=_0x24738b[_0x42bff2(0x1b5)],_0x419b7b=_0x24738b[_0x42bff2(0x1cf)](_0x42bff2(0x1bf));if(!_0x52ebbf)throw CliErrors['authRequired']('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x5acdd3=_0x36c089(_0x24738b[_0x42bff2(0x1b8)],_0x24738b['bool']('project')?_0x42bff2(0x1d4):_0x42bff2(0x1c0)),_0x52c87a=_0x36c089(_0x24738b[_0x42bff2(0x1b8)],_0x5acdd3['scope']===_0x42bff2(0x1d4)?_0x42bff2(0x1c0):_0x42bff2(0x1d4)),_0x53db09=await _0x37c06e({'appCode':_0x24738b[_0x42bff2(0x1b8)],'scope':_0x1ce851[_0x42bff2(0x1c6)]===0x1?_0x1ce851[0x0]:_0x42bff2(0x1b9),'code':_0x641314['trim']()||undefined}),_0x240566=_0x1ce851[_0x42bff2(0x1ae)](_0x42bff2(0x1b2))?_0x53db09[_0x42bff2(0x1b2)]:[],_0x3cbae2=_0x1ce851[_0x42bff2(0x1ae)]('company')?_0x53db09[_0x42bff2(0x1c1)]:[],_0xf132f9=new Set([..._0x240566[_0x42bff2(0x1c7)](_0x56fb67=>_0x56fb67[_0x42bff2(0x1bd)]?.[_0x42bff2(0x1d7)]())[_0x42bff2(0x1d0)](_0xbe16c2=>Boolean(_0xbe16c2)),..._0x3cbae2[_0x42bff2(0x1c7)](_0x2d457a=>_0x2d457a[_0x42bff2(0x1bd)]?.['trim']())[_0x42bff2(0x1d0)](_0x4ef5fb=>Boolean(_0x4ef5fb))]),_0x44006a=_0x641314[_0x42bff2(0x1d7)]()?[_0x641314[_0x42bff2(0x1d7)]()]:undefined,_0x3704fa=_0x1ce851['length']===0x2&&_0x1ce851[_0x42bff2(0x1ae)]('personal')&&_0x1ce851[_0x42bff2(0x1ae)](_0x42bff2(0x1c1)),_0x5d9fbb=_0x3704fa?_0x337f9b(_0x5acdd3,_0xf132f9,_0x44006a):[],_0x122ac2=_0x41ee87({'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x42bff2(0x1b8)],'activeSkillCodes':_0xf132f9,'pruneSkillCodes':_0x44006a,'scopes':_0x1ce851,'protectedLinkRoots':_0x52c87a[_0x42bff2(0x1b6)]}),_0x95136d=[..._0x240566[_0x42bff2(0x1c7)](_0xe87bb1=>({'skill':_0xe87bb1,'scope':_0x42bff2(0x1b2)})),..._0x3cbae2[_0x42bff2(0x1c7)](_0x1c2aad=>({'skill':_0x1c2aad,'scope':_0x42bff2(0x1c1)}))],_0x17914d=await mapConcurrent(_0x95136d,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x1d7980,scope:_0x2e5731})=>{const _0x171e14=_0x42bff2,_0x634a5d=_0xfe391f(_0x1d7980,_0x2e5731,{'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x171e14(0x1b8)]});if(_0x634a5d)return _0x634a5d;return _0x104bbd(_0x1d7980,_0x2e5731,{'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x171e14(0x1b8)],'force':_0x419b7b,'packageBytes':await downloadSkillPackage(_0x1d7980,_0x2e5731,_0x24738b[_0x171e14(0x1b8)],_0x588192)});}),_0x1b3014=_0x3e0ecf(_0x17914d,_0x5acdd3),_0x4d18ac=countLinkActions(_0x1b3014);return{'ok':!![],'data':{'appCode':_0x24738b[_0x42bff2(0x1b8)],..._0x5acdd3[_0x42bff2(0x1ad)]===_0x42bff2(0x1d4)?{'installTarget':{'scope':_0x5acdd3[_0x42bff2(0x1ad)],'skillRoots':[..._0x5acdd3[_0x42bff2(0x1b6)]]}}:{},'personal':_0x240566[_0x42bff2(0x1c6)],'company':_0x3cbae2[_0x42bff2(0x1c6)],'materialized':_0x17914d[_0x42bff2(0x1c6)],'links':{'total':_0x1b3014[_0x42bff2(0x1c6)],'created':_0x4d18ac[_0x42bff2(0x1cd)]??0x0,'updated':_0x4d18ac[_0x42bff2(0x1c5)]??0x0,'unchanged':_0x4d18ac[_0x42bff2(0x1d1)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x5d9fbb['filter'](_0x2211a5=>_0x2211a5[_0x42bff2(0x1d5)]==='removed')[_0x42bff2(0x1c6)],'cacheDirs':_0x122ac2[_0x42bff2(0x1d0)](_0x582e68=>_0x582e68[_0x42bff2(0x1d5)]===_0x42bff2(0x1b7))[_0x42bff2(0x1c6)],'skipped':[..._0x5d9fbb,..._0x122ac2][_0x42bff2(0x1d0)](_0x3758e8=>_0x3758e8[_0x42bff2(0x1d5)]===_0x42bff2(0x1b3))['length']},'skills':{'personal':_0x240566[_0x42bff2(0x1c7)](summarizeRuntimeSkill),'company':_0x3cbae2[_0x42bff2(0x1c7)](summarizeRuntimeSkill)}},'message':_0x42bff2(0x1af)+_0x240566[_0x42bff2(0x1c6)]+_0x42bff2(0x1c3)+_0x3cbae2[_0x42bff2(0x1c6)]+_0x42bff2(0x1d6)};}async function mapConcurrent(_0x5778dc,_0xa81213,_0x416bec){const _0x5a7b12=a66_0x274bab,_0x1bc5da=new Array(_0x5778dc[_0x5a7b12(0x1c6)]);let _0x4b345f=0x0;const _0x113d81=Array[_0x5a7b12(0x1cb)]({'length':Math[_0x5a7b12(0x1c9)](_0xa81213,_0x5778dc[_0x5a7b12(0x1c6)])},async()=>{const _0x12f190=_0x5a7b12;while(_0x4b345f<_0x5778dc[_0x12f190(0x1c6)]){const _0x3a8154=_0x4b345f;_0x4b345f+=0x1,_0x1bc5da[_0x3a8154]=await _0x416bec(_0x5778dc[_0x3a8154]);}});return await Promise[_0x5a7b12(0x1b9)](_0x113d81),_0x1bc5da;}async function downloadSkillPackage(_0x607dbf,_0x356f2b,_0x106b91,_0x17deb3){const _0x4f6712=a66_0x274bab,_0x59d512=_0x607dbf[_0x4f6712(0x1d2)]?.[_0x4f6712(0x1d7)]();return _0x59d512?_0x17deb3(_0x356f2b,_0x607dbf['skillCode'],_0x106b91,_0x59d512):_0x17deb3(_0x356f2b,_0x607dbf[_0x4f6712(0x1bd)],_0x106b91);}function countLinkActions(_0x380c96){return _0x380c96['reduce']((_0x327e10,_0x47ec49)=>{const _0x1dc6eb=a66_0x1272;return _0x327e10[_0x47ec49[_0x1dc6eb(0x1d5)]]=(_0x327e10[_0x47ec49[_0x1dc6eb(0x1d5)]]??0x0)+0x1,_0x327e10;},{});}
1
+ const a66_0x32fce6=a66_0x412b;(function(_0x13f538,_0x56ca92){const _0x15bce2=a66_0x412b,_0x4ed8ff=_0x13f538();while(!![]){try{const _0x27213f=-parseInt(_0x15bce2(0x151))/0x1*(-parseInt(_0x15bce2(0x14c))/0x2)+-parseInt(_0x15bce2(0x130))/0x3+parseInt(_0x15bce2(0x150))/0x4*(-parseInt(_0x15bce2(0x146))/0x5)+-parseInt(_0x15bce2(0x138))/0x6+parseInt(_0x15bce2(0x14d))/0x7*(parseInt(_0x15bce2(0x148))/0x8)+parseInt(_0x15bce2(0x154))/0x9+-parseInt(_0x15bce2(0x136))/0xa*(parseInt(_0x15bce2(0x142))/0xb);if(_0x27213f===_0x56ca92)break;else _0x4ed8ff['push'](_0x4ed8ff['shift']());}catch(_0x37b941){_0x4ed8ff['push'](_0x4ed8ff['shift']());}}}(a66_0x5715,0xa3669));function a66_0x5715(){const _0x338beb=['scope','bool','removed','trim','action','global','authRequired','length','../../../skills/runtime-skill-sync.js','139843DYyeDU','str','\x20company\x20Skill(s).','filter','5090oCnExV','skillCode','371216XeFtwp','company','Installed\x20','personal','2239298vkSsqV','70RphQFB','skill','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','24fFilWY','1vbRPNe','force','map','6758379LPQzSw','project','all','appCode','includes','3389832NWpuus','skipped','updated','skillRoots','created','from','170GVhRDL','unchanged','1878828UwlTVk'];a66_0x5715=function(){return _0x338beb;};return a66_0x5715();}import{CliErrors}from'../../../errors.js';function a66_0x412b(_0x3b9d25,_0x321893){_0x3b9d25=_0x3b9d25-0x12c;const _0x571588=a66_0x5715();let _0x412b79=_0x571588[_0x3b9d25];return _0x412b79;}import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a66_0x32fce6(0x14e),'command':'install','description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x363ab6){return syncRuntimeSkills(_0x363ab6);}};async function syncRuntimeSkills(_0x23dfef){const _0x5e6ea9=a66_0x32fce6,{downloadRuntimeSkillPackage:_0x3bb976,listRuntimeSkills:_0x7ec556}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x305073,materializeRuntimeSkill:_0x5395f6,pruneStaleRuntimeSkillCache:_0x14bc88,pruneStaleRuntimeSkillLinks:_0x2e169e,resolveRuntimeSkillInstallTarget:_0xaaa7e9,reuseMaterializedRuntimeSkill:_0x39145c}=await import(_0x5e6ea9(0x141)),_0x3dab61=_0x23dfef[_0x5e6ea9(0x143)]('code'),_0x208e20=normalizeSyncScopes(_0x23dfef[_0x5e6ea9(0x143)]('scope')),_0x37c918=_0x23dfef['envName']??'production',_0x41fa6d=_0x23dfef['accessKey'],_0x4f168c=_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x152));if(!_0x41fa6d)throw CliErrors[_0x5e6ea9(0x13f)](_0x5e6ea9(0x14f));const _0x3eb88c=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x23dfef[_0x5e6ea9(0x13a)](_0x5e6ea9(0x12c))?_0x5e6ea9(0x12c):_0x5e6ea9(0x13e)),_0x500127=_0xaaa7e9(_0x23dfef[_0x5e6ea9(0x12e)],_0x3eb88c[_0x5e6ea9(0x139)]===_0x5e6ea9(0x12c)?_0x5e6ea9(0x13e):_0x5e6ea9(0x12c)),_0x1bfa94=await _0x7ec556({'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'scope':_0x208e20[_0x5e6ea9(0x140)]===0x1?_0x208e20[0x0]:_0x5e6ea9(0x12d),'code':_0x3dab61[_0x5e6ea9(0x13c)]()||undefined}),_0x345aef=_0x208e20[_0x5e6ea9(0x12f)](_0x5e6ea9(0x14b))?_0x1bfa94[_0x5e6ea9(0x14b)]:[],_0x4e7dda=_0x208e20[_0x5e6ea9(0x12f)]('company')?_0x1bfa94[_0x5e6ea9(0x149)]:[],_0x56d700=new Set([..._0x345aef[_0x5e6ea9(0x153)](_0x3deefa=>_0x3deefa[_0x5e6ea9(0x147)]?.['trim']())[_0x5e6ea9(0x145)](_0x318dc8=>Boolean(_0x318dc8)),..._0x4e7dda['map'](_0x517173=>_0x517173[_0x5e6ea9(0x147)]?.[_0x5e6ea9(0x13c)]())[_0x5e6ea9(0x145)](_0x181379=>Boolean(_0x181379))]),_0x30ba8e=_0x3dab61[_0x5e6ea9(0x13c)]()?[_0x3dab61[_0x5e6ea9(0x13c)]()]:undefined,_0x58fba9=_0x208e20[_0x5e6ea9(0x140)]===0x2&&_0x208e20['includes']('personal')&&_0x208e20['includes'](_0x5e6ea9(0x149)),_0x329412=_0x58fba9?_0x2e169e(_0x3eb88c,_0x56d700,_0x30ba8e):[],_0x56e32a=_0x14bc88({'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0x5e6ea9(0x12e)],'activeSkillCodes':_0x56d700,'pruneSkillCodes':_0x30ba8e,'scopes':_0x208e20,'protectedLinkRoots':_0x500127[_0x5e6ea9(0x133)]}),_0x283612=[..._0x345aef[_0x5e6ea9(0x153)](_0x1c85fd=>({'skill':_0x1c85fd,'scope':_0x5e6ea9(0x14b)})),..._0x4e7dda[_0x5e6ea9(0x153)](_0x4e29e4=>({'skill':_0x4e29e4,'scope':_0x5e6ea9(0x149)}))],_0x33da47=await mapConcurrent(_0x283612,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x475a7b,scope:_0x210a97})=>{const _0xd2be9e=_0x5e6ea9,_0x319aaf=_0x39145c(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)]});if(_0x319aaf)return _0x319aaf;return _0x5395f6(_0x475a7b,_0x210a97,{'env':_0x37c918,'accessKey':_0x41fa6d,'appCode':_0x23dfef[_0xd2be9e(0x12e)],'force':_0x4f168c,'packageBytes':await downloadSkillPackage(_0x475a7b,_0x210a97,_0x23dfef['appCode'],_0x3bb976)});}),_0x51fe1e=_0x305073(_0x33da47,_0x3eb88c),_0x31f8d8=countLinkActions(_0x51fe1e);return{'ok':!![],'data':{'appCode':_0x23dfef[_0x5e6ea9(0x12e)],..._0x3eb88c['scope']===_0x5e6ea9(0x12c)?{'installTarget':{'scope':_0x3eb88c[_0x5e6ea9(0x139)],'skillRoots':[..._0x3eb88c['skillRoots']]}}:{},'personal':_0x345aef[_0x5e6ea9(0x140)],'company':_0x4e7dda[_0x5e6ea9(0x140)],'materialized':_0x33da47[_0x5e6ea9(0x140)],'links':{'total':_0x51fe1e[_0x5e6ea9(0x140)],'created':_0x31f8d8[_0x5e6ea9(0x134)]??0x0,'updated':_0x31f8d8[_0x5e6ea9(0x132)]??0x0,'unchanged':_0x31f8d8[_0x5e6ea9(0x137)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x329412[_0x5e6ea9(0x145)](_0x365738=>_0x365738[_0x5e6ea9(0x13d)]===_0x5e6ea9(0x13b))[_0x5e6ea9(0x140)],'cacheDirs':_0x56e32a[_0x5e6ea9(0x145)](_0xf60b3f=>_0xf60b3f['action']==='removed')[_0x5e6ea9(0x140)],'skipped':[..._0x329412,..._0x56e32a][_0x5e6ea9(0x145)](_0x4d9c3c=>_0x4d9c3c['action']===_0x5e6ea9(0x131))['length']},'skills':{'personal':_0x345aef[_0x5e6ea9(0x153)](summarizeRuntimeSkill),'company':_0x4e7dda[_0x5e6ea9(0x153)](summarizeRuntimeSkill)}},'message':_0x5e6ea9(0x14a)+_0x345aef['length']+'\x20personal\x20and\x20'+_0x4e7dda['length']+_0x5e6ea9(0x144)};}async function mapConcurrent(_0x161f75,_0x4d878b,_0x59ce62){const _0x47d3bf=a66_0x32fce6,_0x538285=new Array(_0x161f75[_0x47d3bf(0x140)]);let _0x433fa4=0x0;const _0x404617=Array[_0x47d3bf(0x135)]({'length':Math['min'](_0x4d878b,_0x161f75[_0x47d3bf(0x140)])},async()=>{while(_0x433fa4<_0x161f75['length']){const _0x214d2e=_0x433fa4;_0x433fa4+=0x1,_0x538285[_0x214d2e]=await _0x59ce62(_0x161f75[_0x214d2e]);}});return await Promise[_0x47d3bf(0x12d)](_0x404617),_0x538285;}async function downloadSkillPackage(_0x1ed2ba,_0x1b678c,_0x5c17b7,_0x2f66c2){const _0x34db48=a66_0x32fce6,_0x943ed=_0x1ed2ba['version']?.[_0x34db48(0x13c)]();return _0x943ed?_0x2f66c2(_0x1b678c,_0x1ed2ba['skillCode'],_0x5c17b7,_0x943ed):_0x2f66c2(_0x1b678c,_0x1ed2ba[_0x34db48(0x147)],_0x5c17b7);}function countLinkActions(_0x2dc243){return _0x2dc243['reduce']((_0x538451,_0x470e24)=>{const _0x48aa5a=a66_0x412b;return _0x538451[_0x470e24[_0x48aa5a(0x13d)]]=(_0x538451[_0x470e24[_0x48aa5a(0x13d)]]??0x0)+0x1,_0x538451;},{});}
@@ -1 +1 @@
1
- const a67_0x4acc47=a67_0x2929;(function(_0x49942f,_0x3b3ba2){const _0x55a539=a67_0x2929,_0x50241e=_0x49942f();while(!![]){try{const _0x33108b=parseInt(_0x55a539(0x1f0))/0x1*(parseInt(_0x55a539(0x1fd))/0x2)+parseInt(_0x55a539(0x1f2))/0x3+parseInt(_0x55a539(0x1fa))/0x4*(-parseInt(_0x55a539(0x1fb))/0x5)+-parseInt(_0x55a539(0x1e7))/0x6*(parseInt(_0x55a539(0x1ea))/0x7)+parseInt(_0x55a539(0x1f8))/0x8+parseInt(_0x55a539(0x1e3))/0x9+-parseInt(_0x55a539(0x1f6))/0xa;if(_0x33108b===_0x3b3ba2)break;else _0x50241e['push'](_0x50241e['shift']());}catch(_0x4ebb9f){_0x50241e['push'](_0x50241e['shift']());}}}(a67_0x4f50,0xcb889));function a67_0x4f50(){const _0x13276=['List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','Listed\x20','31296dZEnHJ','filter','envName','1036fDXbma','scope','list','\x20local\x20Skill(s).','length','project','987dxxIlt','map','250980XmtkbB','company','local','personal','2897750PuguWv','global','5503328DJnwIc','appCode','116IgMyYm','122435kpiCnL','builtin','2388FEjgGF','str','../../../core/api-client.js','read','code','skill','bool','\x20remote\x20Skill(s).','5899365qTnEXs','authRequired'];a67_0x4f50=function(){return _0x13276;};return a67_0x4f50();}import{CliErrors}from'../../../errors.js';function a67_0x2929(_0x43c24b,_0x3be704){_0x43c24b=_0x43c24b-0x1dd;const _0x4f5006=a67_0x4f50();let _0x292943=_0x4f5006[_0x43c24b];return _0x292943;}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_0x4acc47(0x1e0),'command':a67_0x4acc47(0x1ec),'description':a67_0x4acc47(0x1e5),'risk':a67_0x4acc47(0x1de),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1097c1){const _0xe65f93=a67_0x4acc47,_0x3d739a=_0x1097c1[_0xe65f93(0x1fe)](_0xe65f93(0x1df)),_0x247bd6=normalizeListScope(_0x1097c1[_0xe65f93(0x1fe)]('scope'));if(_0x1097c1[_0xe65f93(0x1e1)](_0xe65f93(0x1f4))){const _0x144ec8=_0x1097c1['accessKey'];if(!_0x144ec8)throw CliErrors[_0xe65f93(0x1e4)]();const {listLocalRuntimeSkills:_0x113bb0,resolveRuntimeSkillInstallTarget:_0x5e99d1}=await import('../../../skills/runtime-skill-sync.js'),_0x50d363=_0x5e99d1(_0x1097c1[_0xe65f93(0x1f9)],_0x1097c1['bool'](_0xe65f93(0x1ef))?_0xe65f93(0x1ef):_0xe65f93(0x1f7)),_0xea222d=_0x113bb0({'env':_0x1097c1[_0xe65f93(0x1e9)]??'production','accessKey':_0x144ec8,'appCode':_0x1097c1['appCode'],'scopes':listScopeToRuntimeScopes(_0x247bd6),'code':_0x3d739a['trim']()||undefined},_0x50d363),_0x2e0091=groupLocalRuntimeSkills(_0xea222d);return{'ok':!![],'data':{'appCode':_0x1097c1['appCode'],'source':_0xe65f93(0x1f4),..._0x50d363[_0xe65f93(0x1eb)]===_0xe65f93(0x1ef)?{'installScope':_0x50d363['scope']}:{},'scope':_0x247bd6,'total':_0xea222d[_0xe65f93(0x1ee)],'personal':_0x2e0091[_0xe65f93(0x1f5)]['length'],'company':_0x2e0091[_0xe65f93(0x1f3)][_0xe65f93(0x1ee)],'items':_0xea222d[_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x2e0091[_0xe65f93(0x1f5)][_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill),'company':_0x2e0091[_0xe65f93(0x1f3)][_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill)}},'message':_0xe65f93(0x1e6)+_0xea222d[_0xe65f93(0x1ee)]+_0xe65f93(0x1ed)};}const {listRuntimeSkills:_0x59dc1c}=await import(_0xe65f93(0x1dd)),_0x31bc03=await _0x59dc1c({'appCode':_0x1097c1[_0xe65f93(0x1f9)],'scope':listScopeToRemoteScope(_0x247bd6),'code':_0x3d739a['trim']()||undefined}),_0x27f711=shouldListScope(_0x247bd6,_0xe65f93(0x1f5))?_0x31bc03[_0xe65f93(0x1f5)]??[]:[],_0xe1abf0=shouldListScope(_0x247bd6,_0xe65f93(0x1f3))?_0x31bc03[_0xe65f93(0x1f3)]??[]:[],_0x45caeb=[..._0x27f711,..._0xe1abf0];return{'ok':!![],'data':{'appCode':_0x1097c1[_0xe65f93(0x1f9)],'source':'remote','scope':_0x247bd6,'total':_0x45caeb[_0xe65f93(0x1ee)],'personal':_0x27f711[_0xe65f93(0x1ee)],'company':_0xe1abf0['length'],'items':_0x45caeb[_0xe65f93(0x1f1)](summarizeRuntimeSkill),'skills':{'personal':_0x27f711[_0xe65f93(0x1f1)](summarizeRuntimeSkill),'company':_0xe1abf0[_0xe65f93(0x1f1)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x45caeb['length']+_0xe65f93(0x1e2)};}};function groupLocalRuntimeSkills(_0x2bf4c4){const _0x7c2ff8=a67_0x4acc47;return{'personal':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x5bb223=>_0x5bb223[_0x7c2ff8(0x1eb)]===_0x7c2ff8(0x1f5)),'company':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x350411=>_0x350411[_0x7c2ff8(0x1eb)]===_0x7c2ff8(0x1f3)),'builtin':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x26b777=>_0x26b777['scope']===_0x7c2ff8(0x1fc))};}
1
+ function a67_0x2637(){const _0x2dc303=['accessKey','production','str','authRequired','filter','bool','111920cDxYex','trim','1bEzTjK','length','11401610ypbuiR','map','Listed\x20','builtin','3iceQkw','list','project','scope','envName','133512SPQbkm','personal','appCode','1051402RRGgXs','remote','local','18QWmKpk','305UXlVqF','4664888KnWQIW','global','company','\x20local\x20Skill(s).','11037334skDFGD','\x20remote\x20Skill(s).','skill','../../../skills/runtime-skill-sync.js','4761620BgPGuQ'];a67_0x2637=function(){return _0x2dc303;};return a67_0x2637();}const a67_0x306d6a=a67_0x1aa9;(function(_0x30d9d2,_0x42389c){const _0x102dee=a67_0x1aa9,_0x4a162b=_0x30d9d2();while(!![]){try{const _0x578ff2=-parseInt(_0x102dee(0x111))/0x1*(-parseInt(_0x102dee(0x11f))/0x2)+-parseInt(_0x102dee(0x117))/0x3*(-parseInt(_0x102dee(0x10f))/0x4)+-parseInt(_0x102dee(0x123))/0x5*(-parseInt(_0x102dee(0x11c))/0x6)+-parseInt(_0x102dee(0x128))/0x7+parseInt(_0x102dee(0x124))/0x8+-parseInt(_0x102dee(0x122))/0x9*(-parseInt(_0x102dee(0x108))/0xa)+-parseInt(_0x102dee(0x113))/0xb;if(_0x578ff2===_0x42389c)break;else _0x4a162b['push'](_0x4a162b['shift']());}catch(_0x53b3a7){_0x4a162b['push'](_0x4a162b['shift']());}}}(a67_0x2637,0xcb6c0));import{CliErrors}from'../../../errors.js';function a67_0x1aa9(_0x361307,_0x2e0042){_0x361307=_0x361307-0x106;const _0x26377f=a67_0x2637();let _0x1aa943=_0x26377f[_0x361307];return _0x1aa943;}import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a67_0x306d6a(0x106),'command':a67_0x306d6a(0x118),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x60513a){const _0x2e1a56=a67_0x306d6a,_0x12ef55=_0x60513a[_0x2e1a56(0x10b)]('code'),_0x1f6dd5=normalizeListScope(_0x60513a['str'](_0x2e1a56(0x11a)));if(_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x121))){const _0xa73fe1=_0x60513a[_0x2e1a56(0x109)];if(!_0xa73fe1)throw CliErrors[_0x2e1a56(0x10c)]();const {listLocalRuntimeSkills:_0x25a05a,resolveRuntimeSkillInstallTarget:_0xd189a1}=await import(_0x2e1a56(0x107)),_0x4b3584=_0xd189a1(_0x60513a[_0x2e1a56(0x11e)],_0x60513a[_0x2e1a56(0x10e)](_0x2e1a56(0x119))?_0x2e1a56(0x119):_0x2e1a56(0x125)),_0x3c5ba0=_0x25a05a({'env':_0x60513a[_0x2e1a56(0x11b)]??_0x2e1a56(0x10a),'accessKey':_0xa73fe1,'appCode':_0x60513a[_0x2e1a56(0x11e)],'scopes':listScopeToRuntimeScopes(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined},_0x4b3584),_0x1d087e=groupLocalRuntimeSkills(_0x3c5ba0);return{'ok':!![],'data':{'appCode':_0x60513a[_0x2e1a56(0x11e)],'source':_0x2e1a56(0x121),..._0x4b3584['scope']===_0x2e1a56(0x119)?{'installScope':_0x4b3584[_0x2e1a56(0x11a)]}:{},'scope':_0x1f6dd5,'total':_0x3c5ba0['length'],'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x112)],'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x112)],'items':_0x3c5ba0[_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1d087e[_0x2e1a56(0x11d)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill),'company':_0x1d087e[_0x2e1a56(0x126)][_0x2e1a56(0x114)](summarizeLocalRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x3c5ba0[_0x2e1a56(0x112)]+_0x2e1a56(0x127)};}const {listRuntimeSkills:_0x23034d}=await import('../../../core/api-client.js'),_0x3b837f=await _0x23034d({'appCode':_0x60513a[_0x2e1a56(0x11e)],'scope':listScopeToRemoteScope(_0x1f6dd5),'code':_0x12ef55[_0x2e1a56(0x110)]()||undefined}),_0x20666b=shouldListScope(_0x1f6dd5,'personal')?_0x3b837f[_0x2e1a56(0x11d)]??[]:[],_0x231f09=shouldListScope(_0x1f6dd5,_0x2e1a56(0x126))?_0x3b837f[_0x2e1a56(0x126)]??[]:[],_0x2e0377=[..._0x20666b,..._0x231f09];return{'ok':!![],'data':{'appCode':_0x60513a['appCode'],'source':_0x2e1a56(0x120),'scope':_0x1f6dd5,'total':_0x2e0377[_0x2e1a56(0x112)],'personal':_0x20666b[_0x2e1a56(0x112)],'company':_0x231f09[_0x2e1a56(0x112)],'items':_0x2e0377[_0x2e1a56(0x114)](summarizeRuntimeSkill),'skills':{'personal':_0x20666b[_0x2e1a56(0x114)](summarizeRuntimeSkill),'company':_0x231f09[_0x2e1a56(0x114)](summarizeRuntimeSkill)}},'message':_0x2e1a56(0x115)+_0x2e0377[_0x2e1a56(0x112)]+_0x2e1a56(0x129)};}};function groupLocalRuntimeSkills(_0x5845f3){const _0x2fe78c=a67_0x306d6a;return{'personal':_0x5845f3[_0x2fe78c(0x10d)](_0x31d2dd=>_0x31d2dd[_0x2fe78c(0x11a)]===_0x2fe78c(0x11d)),'company':_0x5845f3['filter'](_0x22e22a=>_0x22e22a['scope']===_0x2fe78c(0x126)),'builtin':_0x5845f3[_0x2fe78c(0x10d)](_0x33a7bc=>_0x33a7bc[_0x2fe78c(0x11a)]===_0x2fe78c(0x116))};}
@@ -1 +1 @@
1
- const a68_0x4e2b92=a68_0x41dd;function a68_0x41dd(_0x1cf97f,_0x3c938f){_0x1cf97f=_0x1cf97f-0x143;const _0x5ef8c=a68_0x5ef8();let _0x41ddac=_0x5ef8c[_0x1cf97f];return _0x41ddac;}(function(_0x43eaaf,_0x4a21d0){const _0x587187=a68_0x41dd,_0x8cf875=_0x43eaaf();while(!![]){try{const _0x4b5d46=parseInt(_0x587187(0x152))/0x1*(-parseInt(_0x587187(0x153))/0x2)+parseInt(_0x587187(0x14e))/0x3*(parseInt(_0x587187(0x14a))/0x4)+-parseInt(_0x587187(0x151))/0x5*(parseInt(_0x587187(0x146))/0x6)+parseInt(_0x587187(0x145))/0x7*(parseInt(_0x587187(0x154))/0x8)+parseInt(_0x587187(0x14c))/0x9+parseInt(_0x587187(0x14d))/0xa*(-parseInt(_0x587187(0x14f))/0xb)+-parseInt(_0x587187(0x150))/0xc*(-parseInt(_0x587187(0x144))/0xd);if(_0x4b5d46===_0x4a21d0)break;else _0x8cf875['push'](_0x8cf875['shift']());}catch(_0x316d36){_0x8cf875['push'](_0x8cf875['shift']());}}}(a68_0x5ef8,0x6e9fe));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x5ef8(){const _0x256bfd=['push','118274trtjvL','3227TYkEpz','1536834sJezGh','write','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.','2540cBbpiM','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','6662448COSnVl','156010QdXicK','2343HWuvrw','154pOyOXj','1272zIYkUD','15wTKjKW','1aboIRg','1768388BfmYWa','2144DggXpZ'];a68_0x5ef8=function(){return _0x256bfd;};return a68_0x5ef8();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4e2b92(0x148),'command':a68_0x4e2b92(0x143),'description':a68_0x4e2b92(0x14b),'risk':a68_0x4e2b92(0x147),'confirmationDescription':a68_0x4e2b92(0x149),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ function a68_0x98b7(){const _0x3ea645=['1704660cWlrrM','207067YKfpnS','9IakIOg','320050VywAkM','196708KxESDl','push','6EZZWlQ','skill','Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','1135856EkEiQH','572277HHXRDe','5MEDBod','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','147679RlCRCa'];a68_0x98b7=function(){return _0x3ea645;};return a68_0x98b7();}function a68_0x2d6c(_0x208e24,_0x518aa2){_0x208e24=_0x208e24-0x162;const _0x98b7be=a68_0x98b7();let _0x2d6c2e=_0x98b7be[_0x208e24];return _0x2d6c2e;}const a68_0x4e9316=a68_0x2d6c;(function(_0x97035c,_0x3aa590){const _0x133b0f=a68_0x2d6c,_0x3e6bbc=_0x97035c();while(!![]){try{const _0x4752a2=-parseInt(_0x133b0f(0x168))/0x1+parseInt(_0x133b0f(0x16c))/0x2+-parseInt(_0x133b0f(0x165))/0x3+-parseInt(_0x133b0f(0x16d))/0x4*(-parseInt(_0x133b0f(0x166))/0x5)+-parseInt(_0x133b0f(0x16f))/0x6*(parseInt(_0x133b0f(0x16a))/0x7)+parseInt(_0x133b0f(0x164))/0x8+parseInt(_0x133b0f(0x16b))/0x9*(parseInt(_0x133b0f(0x169))/0xa);if(_0x4752a2===_0x3aa590)break;else _0x3e6bbc['push'](_0x3e6bbc['shift']());}catch(_0x43ef19){_0x3e6bbc['push'](_0x3e6bbc['shift']());}}}(a68_0x98b7,0x2581f));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4e9316(0x162),'command':a68_0x4e9316(0x16e),'description':a68_0x4e9316(0x167),'risk':'write','confirmationDescription':a68_0x4e9316(0x163),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a69_0x2cc151=a69_0x5a67;(function(_0x1d538d,_0x2a8419){const _0x253f0d=a69_0x5a67,_0x3cb124=_0x1d538d();while(!![]){try{const _0x1adc9c=-parseInt(_0x253f0d(0x1df))/0x1*(-parseInt(_0x253f0d(0x1ea))/0x2)+-parseInt(_0x253f0d(0x1ec))/0x3*(-parseInt(_0x253f0d(0x1ee))/0x4)+-parseInt(_0x253f0d(0x1e7))/0x5+parseInt(_0x253f0d(0x1de))/0x6*(parseInt(_0x253f0d(0x1dc))/0x7)+parseInt(_0x253f0d(0x1e3))/0x8+-parseInt(_0x253f0d(0x1dd))/0x9*(-parseInt(_0x253f0d(0x1e2))/0xa)+-parseInt(_0x253f0d(0x1ed))/0xb;if(_0x1adc9c===_0x2a8419)break;else _0x3cb124['push'](_0x3cb124['shift']());}catch(_0x24688e){_0x3cb124['push'](_0x3cb124['shift']());}}}(a69_0x2482,0x69d79));function a69_0x5a67(_0x4a8db6,_0x9cae8f){_0x4a8db6=_0x4a8db6-0x1dc;const _0x2482fb=a69_0x2482();let _0x5a6732=_0x2482fb[_0x4a8db6];return _0x5a6732;}function a69_0x2482(){const _0x38ce54=['dir','bool','3322245avmnnD','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','strict','867988NEbKql','Skill\x20validation\x20passed.','327009gAdnXK','8790122vnrJuf','28jmzKal','7pwwVbd','45aFMfSd','2649930FmgZdP','1nMeLey','skill','validate','503380rUTYKI','53760mzNpld','read'];a69_0x2482=function(){return _0x38ce54;};return a69_0x2482();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x2cc151(0x1e0),'command':a69_0x2cc151(0x1e1),'description':a69_0x2cc151(0x1e8),'risk':a69_0x2cc151(0x1e4),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x25a5d9){const _0x2b9c61=a69_0x2cc151,_0x4e60de=_0x25a5d9[_0x2b9c61(0x1e6)](_0x2b9c61(0x1e9)),_0x47464c=validateSkillDirectory(_0x25a5d9['str'](_0x2b9c61(0x1e5)),{'strict':_0x4e60de});return throwIfSkillValidationFailed(_0x47464c,_0x4e60de),{'ok':!![],'data':{'dir':_0x47464c[_0x2b9c61(0x1e5)],'type':_0x47464c['type'],'errors':_0x47464c['errors'],'warnings':_0x47464c['warnings']},'message':_0x2b9c61(0x1eb)};}};
1
+ const a69_0x385102=a69_0x506e;(function(_0x300f54,_0x3b1a42){const _0x339555=a69_0x506e,_0x3e28eb=_0x300f54();while(!![]){try{const _0x52b0fe=-parseInt(_0x339555(0x1a8))/0x1*(parseInt(_0x339555(0x199))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x19d))/0x4)+parseInt(_0x339555(0x19c))/0x5*(parseInt(_0x339555(0x1a2))/0x6)+parseInt(_0x339555(0x19b))/0x7*(-parseInt(_0x339555(0x1a9))/0x8)+-parseInt(_0x339555(0x1a7))/0x9+parseInt(_0x339555(0x196))/0xa+parseInt(_0x339555(0x197))/0xb;if(_0x52b0fe===_0x3b1a42)break;else _0x3e28eb['push'](_0x3e28eb['shift']());}catch(_0x2a1e75){_0x3e28eb['push'](_0x3e28eb['shift']());}}}(a69_0x793f,0x1e64f));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a69_0x506e(_0x53a28a,_0x4a8da8){_0x53a28a=_0x53a28a-0x193;const _0x793f4=a69_0x793f();let _0x506e83=_0x793f4[_0x53a28a];return _0x506e83;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a69_0x793f(){const _0x21cbd4=['609scVVmN','26375gaALew','56824qHSpEb','warnings','strict','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','36WhSnnT','dir','read','errors','skill','751356chrRpc','7XaseGa','19664lxYGsl','Skill\x20validation\x20passed.','type','str','1077680BGpuhs','6371783EUaJhM','bool','32048RAKpSy','39ceGyWP'];a69_0x793f=function(){return _0x21cbd4;};return a69_0x793f();}export const validateCommand={'service':a69_0x385102(0x1a6),'command':a69_0x385102(0x1a1),'description':a69_0x385102(0x1a0),'risk':a69_0x385102(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x528c7d){const _0x5d6f15=a69_0x385102,_0xe37811=_0x528c7d[_0x5d6f15(0x198)](_0x5d6f15(0x19f)),_0x966fcc=validateSkillDirectory(_0x528c7d[_0x5d6f15(0x195)](_0x5d6f15(0x1a3)),{'strict':_0xe37811});return throwIfSkillValidationFailed(_0x966fcc,_0xe37811),{'ok':!![],'data':{'dir':_0x966fcc[_0x5d6f15(0x1a3)],'type':_0x966fcc[_0x5d6f15(0x194)],'errors':_0x966fcc[_0x5d6f15(0x1a5)],'warnings':_0x966fcc[_0x5d6f15(0x19e)]},'message':_0x5d6f15(0x193)};}};
@@ -1 +1 @@
1
- (function(_0x48829b,_0x3a478c){const _0x52b06f=a70_0x2f46,_0x5dce3a=_0x48829b();while(!![]){try{const _0x2ca42f=parseInt(_0x52b06f(0x14b))/0x1*(-parseInt(_0x52b06f(0x143))/0x2)+-parseInt(_0x52b06f(0x137))/0x3+parseInt(_0x52b06f(0x141))/0x4*(-parseInt(_0x52b06f(0x144))/0x5)+-parseInt(_0x52b06f(0x139))/0x6*(parseInt(_0x52b06f(0x140))/0x7)+-parseInt(_0x52b06f(0x133))/0x8*(parseInt(_0x52b06f(0x14a))/0x9)+parseInt(_0x52b06f(0x134))/0xa*(-parseInt(_0x52b06f(0x146))/0xb)+parseInt(_0x52b06f(0x148))/0xc;if(_0x2ca42f===_0x3a478c)break;else _0x5dce3a['push'](_0x5dce3a['shift']());}catch(_0xfbe365){_0x5dce3a['push'](_0x5dce3a['shift']());}}}(a70_0x21cc,0x9150e));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';function a70_0x21cc(){const _0x29debd=['3607255bYJKrR','diagram','11VuUDDm','default','54451296zoYTlq','window','126bItSQp','2297oqNDwg','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','parse','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','181736xXoths','1158730uoamdL','validation','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','3555132BGJrsw','document','6BaZtXe','Mermaid\x20syntax\x20validation\x20failed.','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','trim','replace','isFile','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','3142258LHpYwk','4jYZjWZ','utf8','1004TwvRxw'];a70_0x21cc=function(){return _0x29debd;};return a70_0x21cc();}let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x4b789e){const _0x590c6c=a70_0x2f46;return(await readRequiredSkillDiagramInput(_0x4b789e))[_0x590c6c(0x145)];}export async function readRequiredSkillDiagramInput(_0x35fc74){const _0x5222e7=a70_0x2f46,_0x366085=_0x35fc74[_0x5222e7(0x13c)]();if(!_0x366085)throw CliErrors[_0x5222e7(0x135)](_0x5222e7(0x136),_0x5222e7(0x13b));let _0x52f896,_0x12f077;if(_0x366085==='-')try{_0x52f896=readFileSync(0x0,_0x5222e7(0x142));}catch{throw CliErrors[_0x5222e7(0x135)](_0x5222e7(0x14c));}else{const _0x584b3f=resolve(_0x366085);if(!existsSync(_0x584b3f))throw CliErrors['validation']('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x584b3f);if(!statSync(_0x584b3f)[_0x5222e7(0x13e)]())throw CliErrors['validation'](_0x5222e7(0x13f)+_0x584b3f);_0x12f077=realpathSync(_0x584b3f),_0x52f896=readFileSync(_0x12f077,_0x5222e7(0x142));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x52f896)},'sourceFilePath':_0x12f077};}export async function validateAndCanonicalizeMermaid(_0x13d4ca){const _0x793dc6=a70_0x2f46,_0x343070=_0x13d4ca['replace'](/\r\n/g,'\x0a')[_0x793dc6(0x13d)](/\r/g,'\x0a')[_0x793dc6(0x13d)](/\n+$/,'')+'\x0a';try{const _0x1e0822=await loadMermaidApi();await _0x1e0822[_0x793dc6(0x14d)](_0x343070);}catch{throw diagramValidationError();}return _0x343070;}function a70_0x2f46(_0x35e193,_0x45e665){_0x35e193=_0x35e193-0x132;const _0x21cc0a=a70_0x21cc();let _0x2f462f=_0x21cc0a[_0x35e193];return _0x2f462f;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x46744c=a70_0x2f46;if(!(_0x46744c(0x149)in globalThis)||!(_0x46744c(0x138)in globalThis)){const _0x4b1c3c=new JSDOM('');Object['defineProperties'](globalThis,{'window':{'configurable':!![],'value':_0x4b1c3c[_0x46744c(0x149)]},'document':{'configurable':!![],'value':_0x4b1c3c[_0x46744c(0x149)]['document']}});}return(await import('mermaid'))[_0x46744c(0x147)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x3c806d=a70_0x2f46;return CliErrors['validation'](_0x3c806d(0x13a),_0x3c806d(0x132));}
1
+ (function(_0x8fc1d,_0x31f2a2){const _0x450a97=a70_0x31d8,_0x52e4e8=_0x8fc1d();while(!![]){try{const _0x141873=parseInt(_0x450a97(0x11a))/0x1*(parseInt(_0x450a97(0x113))/0x2)+parseInt(_0x450a97(0x109))/0x3+parseInt(_0x450a97(0x116))/0x4*(parseInt(_0x450a97(0x115))/0x5)+parseInt(_0x450a97(0x11b))/0x6+parseInt(_0x450a97(0x117))/0x7+-parseInt(_0x450a97(0x10b))/0x8+-parseInt(_0x450a97(0x106))/0x9;if(_0x141873===_0x31f2a2)break;else _0x52e4e8['push'](_0x52e4e8['shift']());}catch(_0x18f85a){_0x52e4e8['push'](_0x52e4e8['shift']());}}}(a70_0x3b5f,0x6308e));function a70_0x31d8(_0x3cfe48,_0x5a0e60){_0x3cfe48=_0x3cfe48-0x104;const _0x3b5fa5=a70_0x3b5f();let _0x31d856=_0x3b5fa5[_0x3cfe48];return _0x31d856;}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0xfa9215){const _0x549ce3=a70_0x31d8;return(await readRequiredSkillDiagramInput(_0xfa9215))[_0x549ce3(0x10e)];}function a70_0x3b5f(){const _0x7f2a38=['Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','2VhEjdO','window','1020MNdoCZ','14648zWBYmI','3759224NLCyut','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','505619HUtmtb','1952952mepdws','Mermaid\x20syntax\x20validation\x20failed.','document','14079573YNrhdX','validation','parse','1981005WZxIwb','utf8','6443864AUUtsP','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','defineProperties','diagram','default','replace','Mermaid\x20flowchart\x20file\x20not\x20found:\x20'];a70_0x3b5f=function(){return _0x7f2a38;};return a70_0x3b5f();}export async function readRequiredSkillDiagramInput(_0x2d46bc){const _0x1e0161=a70_0x31d8,_0x27e975=_0x2d46bc['trim']();if(!_0x27e975)throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x118),_0x1e0161(0x10c));let _0x164824,_0x1bf9ab;if(_0x27e975==='-')try{_0x164824=readFileSync(0x0,_0x1e0161(0x10a));}catch{throw CliErrors['validation'](_0x1e0161(0x119));}else{const _0xad3d68=resolve(_0x27e975);if(!existsSync(_0xad3d68))throw CliErrors['validation'](_0x1e0161(0x111)+_0xad3d68);if(!statSync(_0xad3d68)['isFile']())throw CliErrors[_0x1e0161(0x107)](_0x1e0161(0x112)+_0xad3d68);_0x1bf9ab=realpathSync(_0xad3d68),_0x164824=readFileSync(_0x1bf9ab,_0x1e0161(0x10a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x164824)},'sourceFilePath':_0x1bf9ab};}export async function validateAndCanonicalizeMermaid(_0x41abb0){const _0x8f6642=a70_0x31d8,_0x355f7e=_0x41abb0[_0x8f6642(0x110)](/\r\n/g,'\x0a')[_0x8f6642(0x110)](/\r/g,'\x0a')[_0x8f6642(0x110)](/\n+$/,'')+'\x0a';try{const _0xa64fad=await loadMermaidApi();await _0xa64fad[_0x8f6642(0x108)](_0x355f7e);}catch{throw diagramValidationError();}return _0x355f7e;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x307bff=a70_0x31d8;if(!(_0x307bff(0x114)in globalThis)||!(_0x307bff(0x105)in globalThis)){const _0xd15ab2=new JSDOM('');Object[_0x307bff(0x10d)](globalThis,{'window':{'configurable':!![],'value':_0xd15ab2[_0x307bff(0x114)]},'document':{'configurable':!![],'value':_0xd15ab2['window']['document']}});}return(await import('mermaid'))[_0x307bff(0x10f)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x19359a=a70_0x31d8;return CliErrors[_0x19359a(0x107)](_0x19359a(0x104),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -1 +1 @@
1
- const a71_0x1604d8=a71_0xbdd7;(function(_0x2d9f91,_0xf2da0c){const _0x9491d5=a71_0xbdd7,_0x90e0e8=_0x2d9f91();while(!![]){try{const _0x57364a=parseInt(_0x9491d5(0x11b))/0x1+parseInt(_0x9491d5(0x103))/0x2+-parseInt(_0x9491d5(0x118))/0x3*(-parseInt(_0x9491d5(0x10a))/0x4)+-parseInt(_0x9491d5(0xfa))/0x5+-parseInt(_0x9491d5(0x10c))/0x6*(parseInt(_0x9491d5(0xfb))/0x7)+-parseInt(_0x9491d5(0x102))/0x8*(parseInt(_0x9491d5(0x100))/0x9)+-parseInt(_0x9491d5(0x119))/0xa*(-parseInt(_0x9491d5(0xfe))/0xb);if(_0x57364a===_0xf2da0c)break;else _0x90e0e8['push'](_0x90e0e8['shift']());}catch(_0x23c7c2){_0x90e0e8['push'](_0x90e0e8['shift']());}}}(a71_0x1ccb,0x8d345));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a71_0x1604d8(0x11f),'description':a71_0x1604d8(0x117)};export const SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':'string','description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a71_0x1604d8(0x105),a71_0x1604d8(0x104),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':'string','description':a71_0x1604d8(0x112),'default':a71_0x1604d8(0x104),'enum':[a71_0x1604d8(0x104),'company']};export const LIST_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':a71_0x1604d8(0x11f),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':['all',a71_0x1604d8(0x104),'company']};export const LOCAL_FLAG={'name':a71_0x1604d8(0x11c),'type':'boolean','description':a71_0x1604d8(0x109)};export const DIR_FLAG={'name':a71_0x1604d8(0x108),'type':a71_0x1604d8(0x11f),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};function a71_0xbdd7(_0x4dd35d,_0x579772){_0x4dd35d=_0x4dd35d-0xf7;const _0x1ccbea=a71_0x1ccb();let _0xbdd714=_0x1ccbea[_0x4dd35d];return _0xbdd714;}function a71_0x1ccb(){const _0x241342=['417794Teoezy','personal','all','name','source-fingerprint','dir','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','4OxDNJa','type','245010ZxpqLD','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','strict','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','skill-code','force','expected-diagram-revision','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1494906nzgUQE','10CXIXZp','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','226617IxgYPb','local','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','version','string','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','diagram-file','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','boolean','3305070uqBVef','147YmGMuO','confirm-warnings','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','23319461FHDEun','target','1722321HZnLOj','scope','40hjsJJC'];a71_0x1ccb=function(){return _0x241342;};return a71_0x1ccb();}export const DIAGRAM_FILE_FLAG={'name':a71_0x1604d8(0x121),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0xf7)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x1604d8(0x113),'type':'string','required':!![],'description':a71_0x1604d8(0x116)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x1604d8(0x11e),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0x111)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':a71_0x1604d8(0x11f),'required':!![],'enum':[a71_0x1604d8(0x104),'company'],'description':a71_0x1604d8(0x11a)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x1604d8(0x107),'type':a71_0x1604d8(0x11f),'required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x1604d8(0x110)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x1604d8(0x115),'type':'number','required':!![],'description':a71_0x1604d8(0x11d)};export const CREATE_NAME_FLAG={'name':a71_0x1604d8(0x106),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0x120),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x1604d8(0x10e)}};export const TYPE_FLAG={'name':a71_0x1604d8(0x10b),'type':a71_0x1604d8(0x11f),'description':a71_0x1604d8(0xf8),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x1604d8(0xff),'type':a71_0x1604d8(0x11f),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x1604d8(0x114),'type':a71_0x1604d8(0xf9),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0x1604d8(0xf9),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x1604d8(0xfc),'type':a71_0x1604d8(0xf9),'description':a71_0x1604d8(0xfd)};export const STRICT_FLAG={'name':a71_0x1604d8(0x10f),'type':'boolean','description':a71_0x1604d8(0x10d)};
1
+ function a71_0x3ce1(_0x29adea,_0xe5de4c){_0x29adea=_0x29adea-0xa4;const _0x216e57=a71_0x216e();let _0x3ce10a=_0x216e57[_0x29adea];return _0x3ce10a;}const a71_0x4b5de9=a71_0x3ce1;(function(_0x23a4f3,_0x4813a6){const _0x352abd=a71_0x3ce1,_0x5e999f=_0x23a4f3();while(!![]){try{const _0x380e10=parseInt(_0x352abd(0xbe))/0x1*(parseInt(_0x352abd(0xb1))/0x2)+-parseInt(_0x352abd(0xb5))/0x3+parseInt(_0x352abd(0xac))/0x4+parseInt(_0x352abd(0xb9))/0x5+parseInt(_0x352abd(0xc0))/0x6+parseInt(_0x352abd(0xc6))/0x7*(-parseInt(_0x352abd(0xc1))/0x8)+parseInt(_0x352abd(0xc2))/0x9;if(_0x380e10===_0x4813a6)break;else _0x5e999f['push'](_0x5e999f['shift']());}catch(_0x43ede2){_0x5e999f['push'](_0x5e999f['shift']());}}}(a71_0x216e,0xd1381));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xb6),'enum':[a71_0x4b5de9(0xc3),'personal',a71_0x4b5de9(0xb0)]};export const PUSH_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':'personal','enum':[a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LIST_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':'string','description':a71_0x4b5de9(0xb7),'enum':[a71_0x4b5de9(0xc3),a71_0x4b5de9(0xc5),a71_0x4b5de9(0xb0)]};export const LOCAL_FLAG={'name':'local','type':a71_0x4b5de9(0xad),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xc4)};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xba)};function a71_0x216e(){const _0xb83ebb=['UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','target','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','294241wwExUK','expected-diagram-revision','181068fEXbFr','11992xCUAOG','138051DqrKIC','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','personal','1855mQFoDm','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','number','force','scope','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','string','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','version','source-fingerprint','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','2444860SWJUjq','boolean','name','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','company','10pYygPG','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','2676045QGMvVU','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','project','91370TPJQQN'];a71_0x216e=function(){return _0xb83ebb;};return a71_0x216e();}export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xbc)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x4b5de9(0xa9),'type':a71_0x4b5de9(0xa7),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x4b5de9(0xa4),'type':a71_0x4b5de9(0xa7),'required':!![],'enum':[a71_0x4b5de9(0xc5),'company'],'description':a71_0x4b5de9(0xa8)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x4b5de9(0xaa),'type':'string','required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x4b5de9(0xb4)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x4b5de9(0xbf),'type':a71_0x4b5de9(0xc8),'required':!![],'description':a71_0x4b5de9(0xaf)};export const CREATE_NAME_FLAG={'name':a71_0x4b5de9(0xae),'type':a71_0x4b5de9(0xa7),'required':!![],'description':a71_0x4b5de9(0xa6),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x4b5de9(0xb3)}};export const TYPE_FLAG={'name':'type','type':a71_0x4b5de9(0xa7),'description':a71_0x4b5de9(0xc7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x4b5de9(0xbb),'type':a71_0x4b5de9(0xa7),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x4b5de9(0xc9),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xbd)};export const PROJECT_TARGET_FLAG={'name':a71_0x4b5de9(0xb8),'type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xa5)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xab)};export const STRICT_FLAG={'name':'strict','type':a71_0x4b5de9(0xad),'description':a71_0x4b5de9(0xb2)};
@@ -1 +1 @@
1
- (function(_0x5556a8,_0x655d96){const _0x1a7690=a72_0x34e0,_0x4f2a3a=_0x5556a8();while(!![]){try{const _0x2f2376=-parseInt(_0x1a7690(0xd3))/0x1*(-parseInt(_0x1a7690(0xd2))/0x2)+parseInt(_0x1a7690(0xcf))/0x3+-parseInt(_0x1a7690(0xcd))/0x4+-parseInt(_0x1a7690(0xcc))/0x5+-parseInt(_0x1a7690(0xca))/0x6*(parseInt(_0x1a7690(0xd0))/0x7)+parseInt(_0x1a7690(0xcb))/0x8*(parseInt(_0x1a7690(0xce))/0x9)+parseInt(_0x1a7690(0xd1))/0xa;if(_0x2f2376===_0x655d96)break;else _0x4f2a3a['push'](_0x4f2a3a['shift']());}catch(_0x309a2f){_0x4f2a3a['push'](_0x4f2a3a['shift']());}}}(a72_0x2731,0x21d78));function a72_0x2731(){const _0xe66cc8=['7MRiXkJ','84BHqhFC','8XhzsNw','734060SBftLL','472620voizsK','1440999CVmMNY','95967QgFWsD','105553ypQhyM','2138560wUbBlf','59638lNZKEG'];a72_0x2731=function(){return _0xe66cc8;};return a72_0x2731();}import{createCommand}from'./commands/create.js';function a72_0x34e0(_0x43804f,_0x2adf57){_0x43804f=_0x43804f-0xca;const _0x2731e3=a72_0x2731();let _0x34e053=_0x2731e3[_0x43804f];return _0x34e053;}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 a72_0x5e81(_0x317c0c,_0x15b890){_0x317c0c=_0x317c0c-0x17a;const _0x1f77a7=a72_0x1f77();let _0x5e81f3=_0x1f77a7[_0x317c0c];return _0x5e81f3;}(function(_0x39bc15,_0x11c572){const _0x229ed4=a72_0x5e81,_0x103f3c=_0x39bc15();while(!![]){try{const _0x48c778=parseInt(_0x229ed4(0x17d))/0x1+parseInt(_0x229ed4(0x17f))/0x2+parseInt(_0x229ed4(0x17c))/0x3+parseInt(_0x229ed4(0x180))/0x4+-parseInt(_0x229ed4(0x17a))/0x5+-parseInt(_0x229ed4(0x181))/0x6*(-parseInt(_0x229ed4(0x17e))/0x7)+-parseInt(_0x229ed4(0x182))/0x8*(parseInt(_0x229ed4(0x17b))/0x9);if(_0x48c778===_0x11c572)break;else _0x103f3c['push'](_0x103f3c['shift']());}catch(_0x191471){_0x103f3c['push'](_0x103f3c['shift']());}}}(a72_0x1f77,0xc4d9b));import{createCommand}from'./commands/create.js';function a72_0x1f77(){const _0x2c052b=['3518757QxXlac','1254642xEpBNQ','1449futDLD','956264THSDOw','820524TBIcDc','18594gDnfuB','21534568NkJQeu','1270985uZgAoa','9rHualC'];a72_0x1f77=function(){return _0x2c052b;};return a72_0x1f77();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x2cb97b,_0x2dd1d1){var _0x1dbbe7=a73_0x34f9,_0x54ed6d=_0x2cb97b();while(!![]){try{var _0x502e4b=parseInt(_0x1dbbe7(0x193))/0x1+parseInt(_0x1dbbe7(0x18a))/0x2+parseInt(_0x1dbbe7(0x18c))/0x3+-parseInt(_0x1dbbe7(0x195))/0x4+-parseInt(_0x1dbbe7(0x191))/0x5+-parseInt(_0x1dbbe7(0x196))/0x6*(-parseInt(_0x1dbbe7(0x190))/0x7)+-parseInt(_0x1dbbe7(0x18d))/0x8;if(_0x502e4b===_0x2dd1d1)break;else _0x54ed6d['push'](_0x54ed6d['shift']());}catch(_0x33596d){_0x54ed6d['push'](_0x54ed6d['shift']());}}}(a73_0x20e6,0x85601));function a73_0x34f9(_0x1fa6b3,_0x54f356){_0x1fa6b3=_0x1fa6b3-0x189;var _0x20e6db=a73_0x20e6();var _0x34f900=_0x20e6db[_0x1fa6b3];return _0x34f900;}export function isPackageBackedManifest(_0x816a81){var _0x5df929=a73_0x34f9;return!!_0x816a81&&typeof _0x816a81===_0x5df929(0x189)&&!Array['isArray'](_0x816a81)&&typeof _0x816a81[_0x5df929(0x18e)]===_0x5df929(0x194)&&_0x816a81[_0x5df929(0x18e)][_0x5df929(0x198)]>0x0&&Array[_0x5df929(0x18b)](_0x816a81[_0x5df929(0x192)]);}function a73_0x20e6(){var _0x50ee8b=['7854600DqahrC','ossPath','path','4342478zeRSHT','5117860znkxii','files','800569HtwUgN','string','2703088GhcVyr','6vQhHVA','SKILL.md','length','object','1942134ysGVLy','isArray','2506452zgUpAs'];a73_0x20e6=function(){return _0x50ee8b;};return a73_0x20e6();}export function isMultiFileManifest(_0x374cdc){var _0x28c8c0=a73_0x34f9;return!!_0x374cdc&&typeof _0x374cdc==='object'&&!Array[_0x28c8c0(0x18b)](_0x374cdc)&&Array[_0x28c8c0(0x18b)](_0x374cdc[_0x28c8c0(0x192)])&&_0x374cdc[_0x28c8c0(0x192)]['some'](_0x491c5d=>_0x491c5d[_0x28c8c0(0x18f)]!==_0x28c8c0(0x197));}
1
+ function a73_0x4a5e(_0xf1c22e,_0x4b093d){_0xf1c22e=_0xf1c22e-0x1e7;var _0x3f029a=a73_0x3f02();var _0x4a5e1c=_0x3f029a[_0xf1c22e];return _0x4a5e1c;}(function(_0x4d3533,_0x1101e6){var _0x4f0785=a73_0x4a5e,_0xc42417=_0x4d3533();while(!![]){try{var _0x529588=parseInt(_0x4f0785(0x1f2))/0x1*(-parseInt(_0x4f0785(0x1ee))/0x2)+parseInt(_0x4f0785(0x1f9))/0x3*(parseInt(_0x4f0785(0x1f4))/0x4)+parseInt(_0x4f0785(0x1e8))/0x5*(parseInt(_0x4f0785(0x1f3))/0x6)+parseInt(_0x4f0785(0x1e7))/0x7*(-parseInt(_0x4f0785(0x1f8))/0x8)+parseInt(_0x4f0785(0x1f7))/0x9*(-parseInt(_0x4f0785(0x1ef))/0xa)+parseInt(_0x4f0785(0x1f0))/0xb*(parseInt(_0x4f0785(0x1ec))/0xc)+parseInt(_0x4f0785(0x1ea))/0xd*(parseInt(_0x4f0785(0x1fb))/0xe);if(_0x529588===_0x1101e6)break;else _0xc42417['push'](_0xc42417['shift']());}catch(_0x5b6a1a){_0xc42417['push'](_0xc42417['shift']());}}}(a73_0x3f02,0xc9478));function a73_0x3f02(){var _0x2910e8=['29236LFkPfr','some','files','10041354vHNYoZ','10258904HzCnmL','183JpIObS','string','14YUEBEl','ossPath','7HUxatq','1431895vNUlDi','path','25140713BsxbBi','length','60xkbzHJ','object','2ZRFFCg','10LpYRXa','2425687RIHMfV','isArray','546205CfmhIo','6rHwyJl'];a73_0x3f02=function(){return _0x2910e8;};return a73_0x3f02();}export function isPackageBackedManifest(_0x342371){var _0x33fcc2=a73_0x4a5e;return!!_0x342371&&typeof _0x342371===_0x33fcc2(0x1ed)&&!Array[_0x33fcc2(0x1f1)](_0x342371)&&typeof _0x342371[_0x33fcc2(0x1fc)]===_0x33fcc2(0x1fa)&&_0x342371['ossPath'][_0x33fcc2(0x1eb)]>0x0&&Array[_0x33fcc2(0x1f1)](_0x342371[_0x33fcc2(0x1f6)]);}export function isMultiFileManifest(_0x5e5928){var _0x47e939=a73_0x4a5e;return!!_0x5e5928&&typeof _0x5e5928==='object'&&!Array[_0x47e939(0x1f1)](_0x5e5928)&&Array[_0x47e939(0x1f1)](_0x5e5928[_0x47e939(0x1f6)])&&_0x5e5928[_0x47e939(0x1f6)][_0x47e939(0x1f5)](_0x25a29e=>_0x25a29e[_0x47e939(0x1e9)]!=='SKILL.md');}
@@ -1 +1 @@
1
- (function(_0x30aa36,_0x4281b6){const _0x552629=a74_0x2610,_0x21dd3a=_0x30aa36();while(!![]){try{const _0x5bebc7=-parseInt(_0x552629(0x1a9))/0x1+-parseInt(_0x552629(0x179))/0x2+parseInt(_0x552629(0x1af))/0x3+parseInt(_0x552629(0x18b))/0x4*(-parseInt(_0x552629(0x1a8))/0x5)+parseInt(_0x552629(0x198))/0x6*(-parseInt(_0x552629(0x17e))/0x7)+parseInt(_0x552629(0x1ad))/0x8*(-parseInt(_0x552629(0x17c))/0x9)+parseInt(_0x552629(0x181))/0xa;if(_0x5bebc7===_0x4281b6)break;else _0x21dd3a['push'](_0x21dd3a['shift']());}catch(_0x3d2383){_0x21dd3a['push'](_0x21dd3a['shift']());}}}(a74_0x36a6,0xc0ed0));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';function a74_0x36a6(){const _0x41b3bd=['appCode','Company','6724gabPBL','identical','dir','warnings','status','\x20Skill\x20','\x20has\x20scope=\x22','resolvedSlug','PRIVATE','personal','POST','bool','payload','132366QNVXZp','\x20version\x20','metadata','diagramValidated','/publish/validate','valid','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','unknown','input','confirmWarnings','accessKey','scope','savedSkill','resolvedVersion','Submitted\x20company\x20Skill\x20','Personal','1810tbSeJF','451515wvGwFq','str','existing','authRequired','176EfBHyI','remoteForPreflight','1070040NHDhxs','diagram-file','\x20for\x20review','publishInput','errors','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','NAMESPACE_ONLY','2870438LGEtif','confirm-warnings','version','170622uiNKAD','../../core/api-client.js','231prySRa','skillCode','submitted','40738890MaKQiS','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','files','validation','company','appcode','../../skills/runtime-skill-sync.js'];a74_0x36a6=function(){return _0x41b3bd;};return a74_0x36a6();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x3f7448){const _0x218d85=a74_0x2610,{getRuntimeSkillByCode:_0x4d0a1b,validateRuntimeSkillPublish:_0x5b19aa}=await import('../../core/api-client.js'),{readPushDirectory:_0xc2a235,resolvePushDirectoryIdentity:_0x3546db}=await import(_0x218d85(0x188));if(!_0x3f7448[_0x218d85(0x1a2)])throw CliErrors[_0x218d85(0x1ac)]();const _0x564672=resolvePushScope(_0x3f7448),_0x320d0d=validateSkillDirectory(_0x3f7448['str']('dir'));throwIfSkillValidationFailed(_0x320d0d);const {diagram:_0xf9b580,sourceFilePath:_0x54134b}=await readRequiredSkillDiagramInput(_0x3f7448[_0x218d85(0x1aa)](_0x218d85(0x1b0))),_0x39fe17=diagramPackageExclusion(_0x54134b),_0x5379eb=_0x3546db(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],remoteFirstMetadataOptions()),_0x1a5284=await _0x4d0a1b(_0x3f7448[_0x218d85(0x189)],_0x5379eb[_0x218d85(0x17f)]);throwIfBuiltinPushTarget(_0x1a5284);if(_0x564672==='company'){const _0x449e96=_0xc2a235(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],{...remoteMissingCompanyReadOptions(),..._0x39fe17}),_0x1964c7=await _0x5b19aa(_0x3f7448[_0x218d85(0x189)],withDiagram(_0x449e96[_0x218d85(0x1a0)],_0xf9b580),{'visibility':_0x218d85(0x178)});return{'method':'POST','url':_0x218d85(0x183)+_0x3f7448[_0x218d85(0x189)]+_0x218d85(0x19c),'body':{'skillCode':_0x449e96[_0x218d85(0x17f)],'visibility':_0x218d85(0x178),'valid':_0x1964c7[_0x218d85(0x19d)],'errors':_0x1964c7[_0x218d85(0x176)],'warnings':_0x1964c7[_0x218d85(0x18e)],'resolvedSlug':_0x1964c7['resolvedSlug'],'resolvedVersion':_0x1964c7[_0x218d85(0x1a5)],'diagramValidated':_0x1964c7[_0x218d85(0x19b)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x1a5284&&_0x1a5284[_0x218d85(0x1a3)]!==_0x218d85(0x194))throw CliErrors[_0x218d85(0x185)](_0x218d85(0x177)+_0x5379eb[_0x218d85(0x17f)]+_0x218d85(0x191)+(_0x1a5284[_0x218d85(0x1a3)]??_0x218d85(0x19f))+'\x22.');const _0x1b83a2=_0xc2a235(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],{..._0x1a5284?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x39fe17}),_0x88304e=await _0x5b19aa(_0x3f7448['appCode'],withDiagram(_0x1b83a2[_0x218d85(0x1a0)],_0xf9b580),{'visibility':'PRIVATE'});return{'method':_0x218d85(0x195),'url':_0x218d85(0x183)+_0x3f7448[_0x218d85(0x189)]+'/publish/validate','body':{'skillCode':_0x1b83a2[_0x218d85(0x17f)],'visibility':_0x218d85(0x193),'valid':_0x88304e[_0x218d85(0x19d)],'errors':_0x88304e[_0x218d85(0x176)],'warnings':_0x88304e[_0x218d85(0x18e)],'resolvedSlug':_0x88304e[_0x218d85(0x192)],'resolvedVersion':_0x88304e[_0x218d85(0x1a5)],'diagramValidated':_0x88304e[_0x218d85(0x19b)]},'description':_0x218d85(0x19e)};}export async function skillPushExecute(_0x4dcd7f){const _0x513378=a74_0x2610,{createPersonalRuntimeSkill:_0x4b23ae,downloadRuntimeSkillPackage:_0xfbaf22,getRuntimeSkillByCode:_0xf8e14b,publishCompanyRuntimeSkill:_0x15a7cc,updatePersonalRuntimeSkill:_0xd933cb,validateRuntimeSkillPublish:_0x511b3b}=await import(_0x513378(0x17d)),{verifyRuntimeSkillPackage:_0x60bf99,verifyRuntimeSkillBundle:_0x3a48da,readPushDirectory:_0x50c748,refreshPushDirectoryMetadataFromRemote:_0x6a418c,recordPushedRuntimeSkill:_0x5df334,resolvePushDirectoryIdentity:_0x3f14a9}=await import(_0x513378(0x188));if(!_0x4dcd7f[_0x513378(0x1a2)])throw CliErrors['authRequired']();const _0x1c306b=resolvePushScope(_0x4dcd7f),_0x283bf7=_0x4dcd7f[_0x513378(0x196)](_0x513378(0x17a))||_0x4dcd7f[_0x513378(0x196)](_0x513378(0x1a1)),_0x1ed100=validateSkillDirectory(_0x4dcd7f[_0x513378(0x1aa)](_0x513378(0x18d)));throwIfSkillValidationFailed(_0x1ed100);const {diagram:_0x2f0b3f,sourceFilePath:_0x2e9044}=await readRequiredSkillDiagramInput(_0x4dcd7f[_0x513378(0x1aa)]('diagram-file')),_0x4a32ca=diagramPackageExclusion(_0x2e9044),_0x208454=_0x1ed100[_0x513378(0x18d)];let _0x5db88d;if(_0x1c306b==='company'){const _0x3a68be=_0x3f14a9(_0x208454,_0x4dcd7f['appCode'],remoteFirstMetadataOptions()),_0x2b694f=await _0xf8e14b(_0x4dcd7f[_0x513378(0x189)],_0x3a68be[_0x513378(0x17f)]);throwIfBuiltinPushTarget(_0x2b694f);if(_0x2b694f)_0x6a418c(_0x208454,_0x2b694f,_0x4dcd7f['appCode']);const _0x5251da=_0x50c748(_0x208454,_0x4dcd7f[_0x513378(0x189)],{..._0x2b694f?{'targetScope':_0x513378(0x186),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x4a32ca});_0x5db88d={'scope':'company','payload':_0x5251da,'publishInput':withDiagram(_0x5251da['input'],_0x2f0b3f),'remoteForPreflight':_0x2b694f,'warnings':[]};}else{const _0x709949=_0x4dcd7f['str'](_0x513378(0x187))['trim'](),_0x5f0c84=Boolean(_0x709949),_0x3f9459=allowRetargetArgs(_0x5f0c84),_0x2dfa54=_0x3f14a9(_0x208454,_0x4dcd7f[_0x513378(0x189)],{...remoteFirstMetadataOptions(),..._0x3f9459[0x0]}),_0x4285a6=await _0xf8e14b(_0x4dcd7f[_0x513378(0x189)],_0x2dfa54[_0x513378(0x17f)]);throwIfBuiltinPushTarget(_0x4285a6);if(_0x4285a6){if(_0x4285a6[_0x513378(0x1a3)]!==_0x513378(0x194)){if(_0x5f0c84)throw CliErrors[_0x513378(0x185)](_0x513378(0x177)+_0x2dfa54[_0x513378(0x17f)]+_0x513378(0x191)+(_0x4285a6['scope']??_0x513378(0x19f))+'\x22.');_0x6a418c(_0x208454,_0x4285a6,_0x4dcd7f[_0x513378(0x189)]);}else!_0x5f0c84&&_0x6a418c(_0x208454,_0x4285a6,_0x4dcd7f[_0x513378(0x189)]);}const _0xa94608=_0x50c748(_0x208454,_0x4dcd7f['appCode'],{..._0x4285a6?remotePersonalReadOptions(_0x5f0c84,_0x3f9459[0x0]):remoteMissingPersonalReadOptions(_0x3f9459[0x0]),..._0x4a32ca}),_0x4bd2a8=_0x4285a6?.[_0x513378(0x1a3)]===_0x513378(0x194)&&_0x4285a6[_0x513378(0x17f)]===_0xa94608[_0x513378(0x17f)]?_0x4285a6:undefined,_0x2c574a=_0x5f0c84&&_0x4bd2a8?withRetargetExistingMetadata(_0xa94608[_0x513378(0x1a0)],_0x4bd2a8,{'preferInputSkillName':Boolean(_0xa94608['frontmatterDisplayName'])}):_0xa94608['input'],_0x5cb1ee=_0x5f0c84?buildRetargetWarning(_0x2dfa54[_0x513378(0x19a)],_0x4dcd7f[_0x513378(0x189)]):[];_0x5db88d={'scope':'personal','payload':_0xa94608,'publishInput':withDiagram(_0x2c574a,_0x2f0b3f),'remoteForPreflight':_0x4bd2a8,'existing':_0x4bd2a8,'warnings':[..._0x1ed100[_0x513378(0x18e)],..._0x5cb1ee]};}const _0x109753=await runRemoteContentPreflight({'scope':_0x5db88d[_0x513378(0x1a3)],'remote':_0x5db88d[_0x513378(0x1ae)],'publishInput':_0x5db88d[_0x513378(0x1b2)],'skillCode':_0x5db88d['payload'][_0x513378(0x17f)],'appCode':_0x4dcd7f['appCode'],'downloadRuntimeSkillPackage':_0xfbaf22,'verifyRuntimeSkillBundle':_0x3a48da});if(_0x109753[_0x513378(0x18f)]===_0x513378(0x18c))return _0x5db88d[_0x513378(0x1a3)]==='company'?_0x5df334(_0x208454,_0x109753[_0x513378(0x1a4)],_0x4dcd7f[_0x513378(0x189)],{'scope':_0x513378(0x186)}):_0x5df334(_0x208454,_0x109753[_0x513378(0x1a4)],_0x4dcd7f[_0x513378(0x189)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x109753[_0x513378(0x1a4)]),'scope':_0x5db88d[_0x513378(0x1a3)],..._0x5db88d[_0x513378(0x1a3)]===_0x513378(0x194)?{'warnings':_0x5db88d[_0x513378(0x18e)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x5db88d[_0x513378(0x1a3)])+_0x513378(0x190)+_0x5db88d['payload'][_0x513378(0x17f)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x5db88d[_0x513378(0x1a3)]==='company'){const _0x3ebaa1=await _0x511b3b(_0x4dcd7f['appCode'],_0x5db88d['publishInput'],{'visibility':_0x513378(0x178)});throwIfPublishValidationFailed('company',_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x3ebaa1),throwIfUnconfirmedPublishWarnings('company',_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x3ebaa1[_0x513378(0x18e)],_0x283bf7);const _0x858105=await _0x15a7cc(_0x4dcd7f[_0x513378(0x189)],_0x5db88d[_0x513378(0x1b2)],{'confirmWarnings':_0x283bf7});return _0x5df334(_0x208454,{..._0x858105,'files':_0x5db88d[_0x513378(0x1b2)][_0x513378(0x184)]},_0x4dcd7f[_0x513378(0x189)],{'scope':_0x513378(0x186)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x858105),'scope':_0x513378(0x186),'reviewState':_0x513378(0x180),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x3ebaa1[_0x513378(0x18e)]}},'message':_0x513378(0x1a6)+_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)]+_0x513378(0x199)+(_0x858105[_0x513378(0x17b)]??'(unknown)')+_0x513378(0x1b1)};}const _0x47ca15=await _0x511b3b(_0x4dcd7f['appCode'],_0x5db88d['publishInput'],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x513378(0x194),_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x47ca15),throwIfUnconfirmedPublishWarnings(_0x513378(0x194),_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x47ca15['warnings'],_0x283bf7);const _0x5a0d12={'confirmWarnings':_0x283bf7},_0x4968f2=_0x5db88d[_0x513378(0x1ab)]?await _0xd933cb(_0x5db88d[_0x513378(0x197)]['skillCode'],_0x4dcd7f[_0x513378(0x189)],_0x5db88d[_0x513378(0x1b2)],_0x5a0d12):await _0x4b23ae(_0x4dcd7f['appCode'],_0x5db88d[_0x513378(0x1b2)],_0x5a0d12);let _0x33f50e=_0x4968f2;if(isMultiFileManifest(_0x5db88d['publishInput'][_0x513378(0x184)])){const _0x2cb74b=await _0xfbaf22(_0x513378(0x194),_0x4968f2['skillCode']||_0x5db88d['payload'][_0x513378(0x17f)],_0x4dcd7f['appCode']);_0x3a48da(_0x5db88d[_0x513378(0x1b2)][_0x513378(0x184)],_0x2cb74b),_0x33f50e={..._0x4968f2,'files':_0x5db88d['publishInput']['files']};}else{if(isPackageBackedManifest(_0x4968f2[_0x513378(0x184)])){const _0x5dedfd=await _0xfbaf22(_0x513378(0x194),_0x4968f2[_0x513378(0x17f)]||_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x4dcd7f[_0x513378(0x189)]);_0x60bf99(_0x4968f2[_0x513378(0x184)],_0x5dedfd);}}return _0x5df334(_0x208454,_0x33f50e,_0x4dcd7f['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4968f2),'warnings':_0x5db88d['warnings'],'validation':{'warnings':_0x47ca15[_0x513378(0x18e)]},'diagramBound':!![]},'message':_0x5db88d[_0x513378(0x1ab)]?_0x513378(0x182)+_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)]:'Created\x20personal\x20Skill\x20'+_0x5db88d['payload'][_0x513378(0x17f)]};}function scopeLabel(_0x3ca80e){const _0x1d9eb0=a74_0x2610;return _0x3ca80e==='company'?_0x1d9eb0(0x18a):_0x1d9eb0(0x1a7);}function withDiagram(_0x32344f,_0x5da45e){return{..._0x32344f,'diagram':_0x5da45e};}function a74_0x2610(_0x3cf005,_0x4f3bee){_0x3cf005=_0x3cf005-0x176;const _0x36a692=a74_0x36a6();let _0x2610c8=_0x36a692[_0x3cf005];return _0x2610c8;}function diagramPackageExclusion(_0x3dc8c7){return _0x3dc8c7?{'excludedFilePaths':[_0x3dc8c7]}:{};}
1
+ function a74_0xf1f9(_0x143856,_0x5b90af){_0x143856=_0x143856-0x16c;const _0x25328f=a74_0x2532();let _0xf1f9be=_0x25328f[_0x143856];return _0xf1f9be;}(function(_0xc96495,_0x32adb0){const _0x192867=a74_0xf1f9,_0xfd8c13=_0xc96495();while(!![]){try{const _0x49cb4c=parseInt(_0x192867(0x16e))/0x1+parseInt(_0x192867(0x1a2))/0x2*(parseInt(_0x192867(0x195))/0x3)+-parseInt(_0x192867(0x18b))/0x4+-parseInt(_0x192867(0x184))/0x5+parseInt(_0x192867(0x18c))/0x6+-parseInt(_0x192867(0x19f))/0x7+parseInt(_0x192867(0x17d))/0x8;if(_0x49cb4c===_0x32adb0)break;else _0xfd8c13['push'](_0xfd8c13['shift']());}catch(_0x5b5b01){_0xfd8c13['push'](_0xfd8c13['shift']());}}}(a74_0x2532,0x63000));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1b6f5a){const _0x2ec4a7=a74_0xf1f9,{getRuntimeSkillByCode:_0x51bf93,validateRuntimeSkillPublish:_0x333080}=await import(_0x2ec4a7(0x19a)),{readPushDirectory:_0x49ea5c,resolvePushDirectoryIdentity:_0x3b6142}=await import(_0x2ec4a7(0x182));if(!_0x1b6f5a[_0x2ec4a7(0x1a0)])throw CliErrors[_0x2ec4a7(0x175)]();const _0x25da1c=resolvePushScope(_0x1b6f5a),_0x4c46c3=validateSkillDirectory(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x177)));throwIfSkillValidationFailed(_0x4c46c3);const {diagram:_0x1b36c7,sourceFilePath:_0x112804}=await readRequiredSkillDiagramInput(_0x1b6f5a[_0x2ec4a7(0x19d)](_0x2ec4a7(0x1a4))),_0x4d6b62=diagramPackageExclusion(_0x112804),_0x2a3b9d=_0x3b6142(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],remoteFirstMetadataOptions()),_0x43d0f2=await _0x51bf93(_0x1b6f5a[_0x2ec4a7(0x179)],_0x2a3b9d['skillCode']);throwIfBuiltinPushTarget(_0x43d0f2);if(_0x25da1c===_0x2ec4a7(0x17b)){const _0x111678=_0x49ea5c(_0x4c46c3['dir'],_0x1b6f5a[_0x2ec4a7(0x179)],{...remoteMissingCompanyReadOptions(),..._0x4d6b62}),_0x4e8047=await _0x333080(_0x1b6f5a['appCode'],withDiagram(_0x111678[_0x2ec4a7(0x197)],_0x1b36c7),{'visibility':_0x2ec4a7(0x1a5)});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x111678['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x4e8047['valid'],'errors':_0x4e8047[_0x2ec4a7(0x19c)],'warnings':_0x4e8047['warnings'],'resolvedSlug':_0x4e8047[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x4e8047[_0x2ec4a7(0x18d)],'diagramValidated':_0x4e8047['diagramValidated']},'description':_0x2ec4a7(0x174)};}if(_0x43d0f2&&_0x43d0f2[_0x2ec4a7(0x190)]!==_0x2ec4a7(0x173))throw CliErrors[_0x2ec4a7(0x181)](_0x2ec4a7(0x187)+_0x2a3b9d[_0x2ec4a7(0x17c)]+'\x20has\x20scope=\x22'+(_0x43d0f2[_0x2ec4a7(0x190)]??_0x2ec4a7(0x172))+'\x22.');const _0x7e83ee=_0x49ea5c(_0x4c46c3[_0x2ec4a7(0x177)],_0x1b6f5a[_0x2ec4a7(0x179)],{..._0x43d0f2?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x4d6b62}),_0x46bd74=await _0x333080(_0x1b6f5a[_0x2ec4a7(0x179)],withDiagram(_0x7e83ee['input'],_0x1b36c7),{'visibility':'PRIVATE'});return{'method':_0x2ec4a7(0x18a),'url':_0x2ec4a7(0x186)+_0x1b6f5a[_0x2ec4a7(0x179)]+_0x2ec4a7(0x188),'body':{'skillCode':_0x7e83ee[_0x2ec4a7(0x17c)],'visibility':_0x2ec4a7(0x170),'valid':_0x46bd74['valid'],'errors':_0x46bd74[_0x2ec4a7(0x19c)],'warnings':_0x46bd74[_0x2ec4a7(0x18e)],'resolvedSlug':_0x46bd74[_0x2ec4a7(0x1a3)],'resolvedVersion':_0x46bd74[_0x2ec4a7(0x18d)],'diagramValidated':_0x46bd74[_0x2ec4a7(0x16f)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}function a74_0x2532(){const _0xc13656=['4696IYJdGH','resolvedSlug','diagram-file','NAMESPACE_ONLY','files','submitted','478293jZFmjP','diagramValidated','PRIVATE','bool','unknown','personal','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','authRequired','identical','dir','Updated\x20personal\x20Skill\x20','appCode','confirmWarnings','company','skillCode','9228360lgBqQv','\x20has\x20scope=\x22','savedSkill','publishInput','validation','../../skills/runtime-skill-sync.js','payload','2866545ITULas','Company','/api/cli/v1/skills/','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','/publish/validate','Personal','POST','456888qCQBfW','223656dHSkWl','resolvedVersion','warnings','version','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','existing','remoteForPreflight','\x20for\x20review','3oCpRcH','metadata','input','(unknown)','Created\x20personal\x20Skill\x20','../../core/api-client.js','\x20Skill\x20','errors','str','frontmatterDisplayName','4048989AYEiwZ','accessKey','Submitted\x20company\x20Skill\x20'];a74_0x2532=function(){return _0xc13656;};return a74_0x2532();}export async function skillPushExecute(_0x499b37){const _0x45a33b=a74_0xf1f9,{createPersonalRuntimeSkill:_0x4f05f4,downloadRuntimeSkillPackage:_0xe21f33,getRuntimeSkillByCode:_0x59fb03,publishCompanyRuntimeSkill:_0x49ef23,updatePersonalRuntimeSkill:_0x3a28a8,validateRuntimeSkillPublish:_0x320506}=await import(_0x45a33b(0x19a)),{verifyRuntimeSkillPackage:_0x1bcbbe,verifyRuntimeSkillBundle:_0x318192,readPushDirectory:_0x2aba1b,refreshPushDirectoryMetadataFromRemote:_0x3d5a7f,recordPushedRuntimeSkill:_0x2e2b3f,resolvePushDirectoryIdentity:_0x5a907f}=await import(_0x45a33b(0x182));if(!_0x499b37[_0x45a33b(0x1a0)])throw CliErrors[_0x45a33b(0x175)]();const _0x38982b=resolvePushScope(_0x499b37),_0x29fdc9=_0x499b37[_0x45a33b(0x171)]('confirm-warnings')||_0x499b37['bool'](_0x45a33b(0x17a)),_0x7ca153=validateSkillDirectory(_0x499b37[_0x45a33b(0x19d)](_0x45a33b(0x177)));throwIfSkillValidationFailed(_0x7ca153);const {diagram:_0x4dc5d1,sourceFilePath:_0x2ab100}=await readRequiredSkillDiagramInput(_0x499b37['str']('diagram-file')),_0x1a0932=diagramPackageExclusion(_0x2ab100),_0x429fcb=_0x7ca153[_0x45a33b(0x177)];let _0x37ffdf;if(_0x38982b==='company'){const _0x49d62d=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],remoteFirstMetadataOptions()),_0x24aea2=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x49d62d[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x24aea2);if(_0x24aea2)_0x3d5a7f(_0x429fcb,_0x24aea2,_0x499b37[_0x45a33b(0x179)]);const _0x267a3b=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x24aea2?{'targetScope':_0x45a33b(0x17b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1a0932});_0x37ffdf={'scope':'company','payload':_0x267a3b,'publishInput':withDiagram(_0x267a3b[_0x45a33b(0x197)],_0x4dc5d1),'remoteForPreflight':_0x24aea2,'warnings':[]};}else{const _0x4b0b56=_0x499b37['str']('appcode')['trim'](),_0x2f3958=Boolean(_0x4b0b56),_0x26fe03=allowRetargetArgs(_0x2f3958),_0x7e882e=_0x5a907f(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{...remoteFirstMetadataOptions(),..._0x26fe03[0x0]}),_0x42baf7=await _0x59fb03(_0x499b37[_0x45a33b(0x179)],_0x7e882e[_0x45a33b(0x17c)]);throwIfBuiltinPushTarget(_0x42baf7);if(_0x42baf7){if(_0x42baf7[_0x45a33b(0x190)]!==_0x45a33b(0x173)){if(_0x2f3958)throw CliErrors['validation'](_0x45a33b(0x187)+_0x7e882e[_0x45a33b(0x17c)]+_0x45a33b(0x17e)+(_0x42baf7[_0x45a33b(0x190)]??_0x45a33b(0x172))+'\x22.');_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}else!_0x2f3958&&_0x3d5a7f(_0x429fcb,_0x42baf7,_0x499b37[_0x45a33b(0x179)]);}const _0x4d666c=_0x2aba1b(_0x429fcb,_0x499b37[_0x45a33b(0x179)],{..._0x42baf7?remotePersonalReadOptions(_0x2f3958,_0x26fe03[0x0]):remoteMissingPersonalReadOptions(_0x26fe03[0x0]),..._0x1a0932}),_0x323abd=_0x42baf7?.[_0x45a33b(0x190)]===_0x45a33b(0x173)&&_0x42baf7[_0x45a33b(0x17c)]===_0x4d666c['skillCode']?_0x42baf7:undefined,_0x52b663=_0x2f3958&&_0x323abd?withRetargetExistingMetadata(_0x4d666c[_0x45a33b(0x197)],_0x323abd,{'preferInputSkillName':Boolean(_0x4d666c[_0x45a33b(0x19e)])}):_0x4d666c['input'],_0x3f4aa0=_0x2f3958?buildRetargetWarning(_0x7e882e[_0x45a33b(0x196)],_0x499b37['appCode']):[];_0x37ffdf={'scope':_0x45a33b(0x173),'payload':_0x4d666c,'publishInput':withDiagram(_0x52b663,_0x4dc5d1),'remoteForPreflight':_0x323abd,'existing':_0x323abd,'warnings':[..._0x7ca153[_0x45a33b(0x18e)],..._0x3f4aa0]};}const _0x286a79=await runRemoteContentPreflight({'scope':_0x37ffdf[_0x45a33b(0x190)],'remote':_0x37ffdf[_0x45a33b(0x193)],'publishInput':_0x37ffdf['publishInput'],'skillCode':_0x37ffdf['payload'][_0x45a33b(0x17c)],'appCode':_0x499b37[_0x45a33b(0x179)],'downloadRuntimeSkillPackage':_0xe21f33,'verifyRuntimeSkillBundle':_0x318192});if(_0x286a79['status']===_0x45a33b(0x176))return _0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)?_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}):_0x2e2b3f(_0x429fcb,_0x286a79[_0x45a33b(0x17f)],_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x286a79[_0x45a33b(0x17f)]),'scope':_0x37ffdf[_0x45a33b(0x190)],..._0x37ffdf['scope']===_0x45a33b(0x173)?{'warnings':_0x37ffdf[_0x45a33b(0x18e)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x37ffdf['scope'])+_0x45a33b(0x19b)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+_0x45a33b(0x191)};if(_0x37ffdf[_0x45a33b(0x190)]===_0x45a33b(0x17b)){const _0x8180da=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x1a5)});throwIfPublishValidationFailed(_0x45a33b(0x17b),_0x37ffdf['payload']['skillCode'],_0x8180da),throwIfUnconfirmedPublishWarnings('company',_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x8180da[_0x45a33b(0x18e)],_0x29fdc9);const _0x18c828=await _0x49ef23(_0x499b37['appCode'],_0x37ffdf['publishInput'],{'confirmWarnings':_0x29fdc9});return _0x2e2b3f(_0x429fcb,{..._0x18c828,'files':_0x37ffdf['publishInput'][_0x45a33b(0x16c)]},_0x499b37[_0x45a33b(0x179)],{'scope':_0x45a33b(0x17b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x18c828),'scope':_0x45a33b(0x17b),'reviewState':_0x45a33b(0x16d),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x8180da[_0x45a33b(0x18e)]}},'message':_0x45a33b(0x1a1)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]+'\x20version\x20'+(_0x18c828[_0x45a33b(0x18f)]??_0x45a33b(0x198))+_0x45a33b(0x194)};}const _0x4eec2f=await _0x320506(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],{'visibility':_0x45a33b(0x170)});throwIfPublishValidationFailed(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)]['skillCode'],_0x4eec2f),throwIfUnconfirmedPublishWarnings(_0x45a33b(0x173),_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x4eec2f[_0x45a33b(0x18e)],_0x29fdc9);const _0x5a241d={'confirmWarnings':_0x29fdc9},_0x34027e=_0x37ffdf[_0x45a33b(0x192)]?await _0x3a28a8(_0x37ffdf['payload'][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d):await _0x4f05f4(_0x499b37[_0x45a33b(0x179)],_0x37ffdf[_0x45a33b(0x180)],_0x5a241d);let _0x582faa=_0x34027e;if(isMultiFileManifest(_0x37ffdf['publishInput'][_0x45a33b(0x16c)])){const _0xb7dc13=await _0xe21f33('personal',_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x318192(_0x37ffdf[_0x45a33b(0x180)][_0x45a33b(0x16c)],_0xb7dc13),_0x582faa={..._0x34027e,'files':_0x37ffdf['publishInput']['files']};}else{if(isPackageBackedManifest(_0x34027e[_0x45a33b(0x16c)])){const _0x1cd66e=await _0xe21f33(_0x45a33b(0x173),_0x34027e[_0x45a33b(0x17c)]||_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)],_0x499b37[_0x45a33b(0x179)]);_0x1bcbbe(_0x34027e['files'],_0x1cd66e);}}return _0x2e2b3f(_0x429fcb,_0x582faa,_0x499b37[_0x45a33b(0x179)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x34027e),'warnings':_0x37ffdf[_0x45a33b(0x18e)],'validation':{'warnings':_0x4eec2f[_0x45a33b(0x18e)]},'diagramBound':!![]},'message':_0x37ffdf[_0x45a33b(0x192)]?_0x45a33b(0x178)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]:_0x45a33b(0x199)+_0x37ffdf[_0x45a33b(0x183)][_0x45a33b(0x17c)]};}function scopeLabel(_0x3a658d){const _0x26a672=a74_0xf1f9;return _0x3a658d===_0x26a672(0x17b)?_0x26a672(0x185):_0x26a672(0x189);}function withDiagram(_0x56f133,_0x2f432b){return{..._0x56f133,'diagram':_0x2f432b};}function diagramPackageExclusion(_0x493334){return _0x493334?{'excludedFilePaths':[_0x493334]}:{};}
@@ -1 +1 @@
1
- (function(_0x57bedd,_0xd44099){const _0x4e5206=a75_0x5a91,_0x9bc5db=_0x57bedd();while(!![]){try{const _0x3bd9a7=parseInt(_0x4e5206(0xf7))/0x1+parseInt(_0x4e5206(0xf1))/0x2*(parseInt(_0x4e5206(0xea))/0x3)+-parseInt(_0x4e5206(0xfb))/0x4+-parseInt(_0x4e5206(0xf2))/0x5+parseInt(_0x4e5206(0xe5))/0x6+parseInt(_0x4e5206(0xed))/0x7+parseInt(_0x4e5206(0xf8))/0x8*(-parseInt(_0x4e5206(0xe8))/0x9);if(_0x3bd9a7===_0xd44099)break;else _0x9bc5db['push'](_0x9bc5db['shift']());}catch(_0x2fb8b9){_0x9bc5db['push'](_0x9bc5db['shift']());}}}(a75_0x1d98,0x83c29));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x44e096){const _0xc04611=a75_0x5a91,_0x39ef93=_0x44e096['str'](_0xc04611(0xe9))||_0xc04611(0x100);if(_0x39ef93===_0xc04611(0x100)||_0x39ef93==='company')return _0x39ef93;throw CliErrors[_0xc04611(0xec)](_0xc04611(0x102)+_0x39ef93+'\x22.');}export function allowRetargetArgs(_0x3b5fa7){return _0x3b5fa7?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a75_0x5a91(_0x36b38d,_0xb7efce){_0x36b38d=_0x36b38d-0xdd;const _0x1d982f=a75_0x1d98();let _0x5a91a4=_0x1d982f[_0x36b38d];return _0x5a91a4;}export function remoteMissingCompanyReadOptions(){const _0x4e7d48=a75_0x5a91;return{'targetScope':_0x4e7d48(0xe6),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x369a1b={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x369a1b};}export function remotePersonalReadOptions(_0x4a59f0,_0x5e4273={}){return{'ignoreInvalidMetadata':!![],..._0x4a59f0?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x5e4273};}export function throwIfBuiltinPushTarget(_0x393748){const _0x2c5808=a75_0x5a91;if(_0x393748?.[_0x2c5808(0xe9)]!==_0x2c5808(0xef))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0x393748[_0x2c5808(0xe0)]??_0x2c5808(0xf4))+_0x2c5808(0xeb),_0x2c5808(0xf9));}export function throwIfPublishValidationFailed(_0x23768d,_0x5e3fac,_0x243eee){const _0x323e3e=a75_0x5a91;if(_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xee)]===0x0&&(_0x243eee['valid']||_0x243eee['warnings'][_0x323e3e(0xee)]>0x0))return;const _0x223fff=_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xee)]>0x0?_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xde)](';\x20'):_0x323e3e(0xe7),_0x3f6839=_0x23768d===_0x323e3e(0xe6)?_0x323e3e(0xf3):_0x323e3e(0x106);throw CliErrors[_0x323e3e(0xec)](_0x3f6839+_0x323e3e(0x103)+_0x5e3fac+'.',_0x223fff);}function a75_0x1d98(){const _0x500cff=['personal','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','\x20Skill\x20push\x20validation\x20failed\x20for\x20','version','not-applicable','Personal','lovrabet.skill.json','join','appCode','skillCode','verifyRuntimeSkillBundle','\x20after\x20successful\x20push.','warning','Warnings:\x20','4799766vJYpLF','company','SkillHub\x20validation\x20returned\x20invalid.','9oSqHpA','scope','580278efukIr','\x20cannot\x20be\x20pushed.','validation','3306562aNDfHw','length','builtin','publishInput','4LcCcbE','369880JHYwXU','Company','(unknown)','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','errors','285160FGtxPo','7967584JeLMCL','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','content','1338904KszJvU','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','remote','Review\x20each\x20warning\x20before\x20continuing.','files'];a75_0x1d98=function(){return _0x500cff;};return a75_0x1d98();}export function throwIfUnconfirmedPublishWarnings(_0xdfbc2a,_0xcbc641,_0x1f7688,_0x10673f){const _0x3c7691=a75_0x5a91;if(_0x1f7688[_0x3c7691(0xee)]===0x0||_0x10673f)return;const _0x27e79b=_0xdfbc2a==='company'?_0x3c7691(0xf3):_0x3c7691(0x106);throw CliErrors['validation'](_0x27e79b+_0x3c7691(0xf5)+_0xcbc641+'.',[_0x3c7691(0xfe),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x3c7691(0xfc),_0x3c7691(0xe4)+_0x1f7688[_0x3c7691(0xde)](';\x20')][_0x3c7691(0xde)]('\x20'));}export function buildRetargetWarning(_0x3dee15,_0x47023c){const _0x172f53=a75_0x5a91;if(!_0x3dee15?.[_0x172f53(0xdf)]||_0x3dee15['appCode']===_0x47023c)return[];return[{'level':_0x172f53(0xe3),'ruleId':'skill-metadata-appcode-retargeted','file':_0x172f53(0xdd),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x3dee15[_0x172f53(0xdf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x47023c+_0x172f53(0xe2),'suggestion':_0x172f53(0x101)}];}export async function runRemoteContentPreflight(_0xe961e1){const _0x39f6ee=a75_0x5a91;if(!_0xe961e1[_0x39f6ee(0xfd)]||_0xe961e1['remote']['scope']!==_0xe961e1[_0x39f6ee(0xe9)]||!_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)])return{'status':_0x39f6ee(0x105)};const _0x57d0f6=_0xe961e1['remote'][_0x39f6ee(0xe0)]||_0xe961e1[_0x39f6ee(0xe0)];if(!_0x57d0f6)return{'status':_0x39f6ee(0x105)};const _0x4d0cb5=await _0xe961e1['downloadRuntimeSkillPackage'](_0xe961e1[_0x39f6ee(0xe9)],_0x57d0f6,_0xe961e1['appCode'],_0xe961e1['remote'][_0x39f6ee(0x104)]);try{_0xe961e1[_0x39f6ee(0xe1)](_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)],_0x4d0cb5);}catch{return{'status':'different'};}return{'status':'identical','savedSkill':{..._0xe961e1['remote'],'content':_0xe961e1['publishInput'][_0x39f6ee(0xfa)],'files':_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)]}};}
1
+ (function(_0x3fc231,_0x6f0c6a){const _0x2652b4=a75_0x4d54,_0x518581=_0x3fc231();while(!![]){try{const _0x17e0ca=parseInt(_0x2652b4(0x1dc))/0x1+parseInt(_0x2652b4(0x1dd))/0x2*(-parseInt(_0x2652b4(0x1f6))/0x3)+-parseInt(_0x2652b4(0x1f7))/0x4+parseInt(_0x2652b4(0x1de))/0x5*(-parseInt(_0x2652b4(0x1d0))/0x6)+parseInt(_0x2652b4(0x1cd))/0x7+-parseInt(_0x2652b4(0x1e5))/0x8*(parseInt(_0x2652b4(0x1d3))/0x9)+parseInt(_0x2652b4(0x1f1))/0xa;if(_0x17e0ca===_0x6f0c6a)break;else _0x518581['push'](_0x518581['shift']());}catch(_0x4a2793){_0x518581['push'](_0x518581['shift']());}}}(a75_0x4fc0,0xd71ae));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4f8217){const _0x3a1d3e=a75_0x4d54,_0xedf9a2=_0x4f8217[_0x3a1d3e(0x1d8)](_0x3a1d3e(0x1d1))||_0x3a1d3e(0x1d2);if(_0xedf9a2===_0x3a1d3e(0x1d2)||_0xedf9a2===_0x3a1d3e(0x1fa))return _0xedf9a2;throw CliErrors[_0x3a1d3e(0x1ee)](_0x3a1d3e(0x1d4)+_0xedf9a2+'\x22.');}function a75_0x4d54(_0x4ccb74,_0xf2c308){_0x4ccb74=_0x4ccb74-0x1cb;const _0x4fc0ec=a75_0x4fc0();let _0x4d54da=_0x4fc0ec[_0x4ccb74];return _0x4d54da;}export function allowRetargetArgs(_0x23c51f){return _0x23c51f?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x45b6b7=a75_0x4d54;return{'targetScope':_0x45b6b7(0x1fa),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x27dd53={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x27dd53};}export function remotePersonalReadOptions(_0x241054,_0x4fe1f1={}){return{'ignoreInvalidMetadata':!![],..._0x241054?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4fe1f1};}function a75_0x4fc0(){const _0x3bff9e=['6762900NIovOA','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20cannot\x20be\x20pushed.','company','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','lovrabet.skill.json','(unknown)','4753742WnGvrl','Review\x20each\x20warning\x20before\x20continuing.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','320886eMKAJR','scope','personal','3852uBfick','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','publishInput','join','SkillHub\x20validation\x20returned\x20invalid.','str','appCode','version','Local\x20Skill\x20metadata\x20appCode\x20','1555991hPgfWj','108380AymTFq','95hdShFU','Company','skill-metadata-appcode-retargeted','not-applicable','different','content','Builtin\x20Skill\x20','29288aEzmgp','files','downloadRuntimeSkillPackage','length','builtin','Personal','warnings','errors','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','validation','warning','skillCode','39493550PXushz','remote','identical','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','57wbquZb'];a75_0x4fc0=function(){return _0x3bff9e;};return a75_0x4fc0();}export function throwIfBuiltinPushTarget(_0x4985bd){const _0x376422=a75_0x4d54;if(_0x4985bd?.[_0x376422(0x1d1)]!==_0x376422(0x1e9))return;throw CliErrors[_0x376422(0x1ee)](_0x376422(0x1e4)+(_0x4985bd[_0x376422(0x1f0)]??_0x376422(0x1cc))+_0x376422(0x1f9),_0x376422(0x1fb));}export function throwIfPublishValidationFailed(_0x3ae9ec,_0x55c0ae,_0x2491ae){const _0x215bc2=a75_0x4d54;if(_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]===0x0&&(_0x2491ae['valid']||_0x2491ae[_0x215bc2(0x1eb)]['length']>0x0))return;const _0x29719d=_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1e8)]>0x0?_0x2491ae[_0x215bc2(0x1ec)][_0x215bc2(0x1d6)](';\x20'):_0x215bc2(0x1d7),_0x99964c=_0x3ae9ec===_0x215bc2(0x1fa)?_0x215bc2(0x1df):_0x215bc2(0x1ea);throw CliErrors[_0x215bc2(0x1ee)](_0x99964c+_0x215bc2(0x1cf)+_0x55c0ae+'.',_0x29719d);}export function throwIfUnconfirmedPublishWarnings(_0x2d5135,_0x13e5be,_0x40d05a,_0x3b5977){const _0x127114=a75_0x4d54;if(_0x40d05a[_0x127114(0x1e8)]===0x0||_0x3b5977)return;const _0x1b19da=_0x2d5135===_0x127114(0x1fa)?_0x127114(0x1df):_0x127114(0x1ea);throw CliErrors[_0x127114(0x1ee)](_0x1b19da+_0x127114(0x1f8)+_0x13e5be+'.',[_0x127114(0x1ce),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x127114(0x1fc),'Warnings:\x20'+_0x40d05a[_0x127114(0x1d6)](';\x20')][_0x127114(0x1d6)]('\x20'));}export function buildRetargetWarning(_0x4bc2e6,_0xf9d875){const _0x32333d=a75_0x4d54;if(!_0x4bc2e6?.[_0x32333d(0x1d9)]||_0x4bc2e6[_0x32333d(0x1d9)]===_0xf9d875)return[];return[{'level':_0x32333d(0x1ef),'ruleId':_0x32333d(0x1e0),'file':_0x32333d(0x1cb),'message':_0x32333d(0x1db)+_0x4bc2e6[_0x32333d(0x1d9)]+_0x32333d(0x1f4)+_0xf9d875+_0x32333d(0x1f5),'suggestion':_0x32333d(0x1ed)}];}export async function runRemoteContentPreflight(_0x1be314){const _0x94f4ba=a75_0x4d54;if(!_0x1be314[_0x94f4ba(0x1f2)]||_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1d1)]!==_0x1be314['scope']||!_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)])return{'status':'not-applicable'};const _0x269fe1=_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1f0)]||_0x1be314['skillCode'];if(!_0x269fe1)return{'status':_0x94f4ba(0x1e1)};const _0x2ca9d2=await _0x1be314[_0x94f4ba(0x1e7)](_0x1be314[_0x94f4ba(0x1d1)],_0x269fe1,_0x1be314[_0x94f4ba(0x1d9)],_0x1be314[_0x94f4ba(0x1f2)][_0x94f4ba(0x1da)]);try{_0x1be314['verifyRuntimeSkillBundle'](_0x1be314['publishInput'][_0x94f4ba(0x1e6)],_0x2ca9d2);}catch{return{'status':_0x94f4ba(0x1e2)};}return{'status':_0x94f4ba(0x1f3),'savedSkill':{..._0x1be314['remote'],'content':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e3)],'files':_0x1be314[_0x94f4ba(0x1d5)][_0x94f4ba(0x1e6)]}};}
@@ -1 +1 @@
1
- (function(_0x389a07,_0x55fbb2){const _0x523994=a76_0x3b1a,_0x114c69=_0x389a07();while(!![]){try{const _0xe48aec=parseInt(_0x523994(0x116))/0x1*(parseInt(_0x523994(0x120))/0x2)+parseInt(_0x523994(0x126))/0x3+parseInt(_0x523994(0x125))/0x4*(-parseInt(_0x523994(0x123))/0x5)+-parseInt(_0x523994(0x128))/0x6+-parseInt(_0x523994(0x11f))/0x7*(-parseInt(_0x523994(0x114))/0x8)+parseInt(_0x523994(0x124))/0x9+-parseInt(_0x523994(0x119))/0xa;if(_0xe48aec===_0x55fbb2)break;else _0x114c69['push'](_0x114c69['shift']());}catch(_0x4930b8){_0x114c69['push'](_0x114c69['shift']());}}}(a76_0x5c2b,0x5ff03));export function withRetargetExistingMetadata(_0xf8d3dc,_0x38db19,_0x19ba12={}){const _0x23252f=a76_0x3b1a,_0x29e2fc=_0x19ba12[_0x23252f(0x118)]?_0xf8d3dc[_0x23252f(0x11b)]??_0x38db19[_0x23252f(0x11b)]:_0x38db19[_0x23252f(0x11b)]??_0xf8d3dc[_0x23252f(0x11b)];return{..._0xf8d3dc,'skillName':_0x29e2fc,'description':_0x38db19[_0x23252f(0x121)]??_0xf8d3dc[_0x23252f(0x121)],'tags':Array[_0x23252f(0x11c)](_0x38db19[_0x23252f(0x122)])?_0x38db19[_0x23252f(0x122)]:_0xf8d3dc[_0x23252f(0x122)],'version':_0x38db19[_0x23252f(0x115)]??_0xf8d3dc[_0x23252f(0x115)],'sourceSessionId':_0x38db19[_0x23252f(0x129)]??_0xf8d3dc[_0x23252f(0x129)]};}function a76_0x3b1a(_0xdfaf6c,_0x2eb84a){_0xdfaf6c=_0xdfaf6c-0x114;const _0x5c2bec=a76_0x5c2b();let _0x3b1a45=_0x5c2bec[_0xdfaf6c];return _0x3b1a45;}export function buildRetargetWarning(_0x232bfb,_0x4a4f0d){const _0xd65a81=a76_0x3b1a;if(!_0x232bfb?.[_0xd65a81(0x11e)]||_0x232bfb[_0xd65a81(0x11e)]===_0x4a4f0d)return[];return[{'level':_0xd65a81(0x11a),'ruleId':_0xd65a81(0x117),'file':_0xd65a81(0x11d),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x232bfb['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x4a4f0d+'\x20after\x20successful\x20push.','suggestion':_0xd65a81(0x127)}];}function a76_0x5c2b(){const _0x5bf874=['isArray','lovrabet.skill.json','appCode','108493DQzjZC','214NnpKKz','description','tags','97430jddbXk','3368898xaCSNU','100pBFnnY','2108556zAIkjV','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','2591520kLIvdi','sourceSessionId','224dlxsga','version','3847yIOyUG','skill-metadata-appcode-retargeted','preferInputSkillName','6107420txvxoe','warning','skillName'];a76_0x5c2b=function(){return _0x5bf874;};return a76_0x5c2b();}
1
+ (function(_0x303658,_0x2588c2){const _0x16a3a9=a76_0xa9f8,_0xa7e5af=_0x303658();while(!![]){try{const _0x44ef0c=-parseInt(_0x16a3a9(0x1da))/0x1+-parseInt(_0x16a3a9(0x1cd))/0x2*(-parseInt(_0x16a3a9(0x1c9))/0x3)+parseInt(_0x16a3a9(0x1dd))/0x4*(parseInt(_0x16a3a9(0x1d5))/0x5)+parseInt(_0x16a3a9(0x1e0))/0x6*(parseInt(_0x16a3a9(0x1d1))/0x7)+-parseInt(_0x16a3a9(0x1d9))/0x8+-parseInt(_0x16a3a9(0x1ca))/0x9*(parseInt(_0x16a3a9(0x1cb))/0xa)+-parseInt(_0x16a3a9(0x1db))/0xb*(parseInt(_0x16a3a9(0x1d2))/0xc);if(_0x44ef0c===_0x2588c2)break;else _0xa7e5af['push'](_0xa7e5af['shift']());}catch(_0x3db2ae){_0xa7e5af['push'](_0xa7e5af['shift']());}}}(a76_0x182a,0x7b7a6));export function withRetargetExistingMetadata(_0x1e3fbb,_0x5a3d36,_0xbf3884={}){const _0x35a5bd=a76_0xa9f8,_0x1853e1=_0xbf3884[_0x35a5bd(0x1d4)]?_0x1e3fbb['skillName']??_0x5a3d36[_0x35a5bd(0x1d7)]:_0x5a3d36['skillName']??_0x1e3fbb[_0x35a5bd(0x1d7)];return{..._0x1e3fbb,'skillName':_0x1853e1,'description':_0x5a3d36[_0x35a5bd(0x1dc)]??_0x1e3fbb[_0x35a5bd(0x1dc)],'tags':Array[_0x35a5bd(0x1d8)](_0x5a3d36['tags'])?_0x5a3d36['tags']:_0x1e3fbb[_0x35a5bd(0x1df)],'version':_0x5a3d36[_0x35a5bd(0x1d6)]??_0x1e3fbb[_0x35a5bd(0x1d6)],'sourceSessionId':_0x5a3d36[_0x35a5bd(0x1cc)]??_0x1e3fbb[_0x35a5bd(0x1cc)]};}function a76_0x182a(){const _0x153eca=['5642yOTMVv','12nwIsMM','lovrabet.skill.json','preferInputSkillName','10oftorZ','version','skillName','isArray','151704EOsUXZ','84442Rdhogo','11996017ikpHDQ','description','1595940EvHtfN','Local\x20Skill\x20metadata\x20appCode\x20','tags','1824NoWQhV','2576451vztALD','29817EXfpON','610BDdYus','sourceSessionId','2wLqvfJ','warning','appCode','skill-metadata-appcode-retargeted'];a76_0x182a=function(){return _0x153eca;};return a76_0x182a();}function a76_0xa9f8(_0x1fe8cd,_0x6106){_0x1fe8cd=_0x1fe8cd-0x1c9;const _0x182acc=a76_0x182a();let _0xa9f81d=_0x182acc[_0x1fe8cd];return _0xa9f81d;}export function buildRetargetWarning(_0x146f1e,_0x32eb78){const _0x5c94b0=a76_0xa9f8;if(!_0x146f1e?.[_0x5c94b0(0x1cf)]||_0x146f1e[_0x5c94b0(0x1cf)]===_0x32eb78)return[];return[{'level':_0x5c94b0(0x1ce),'ruleId':_0x5c94b0(0x1d0),'file':_0x5c94b0(0x1d3),'message':_0x5c94b0(0x1de)+_0x146f1e[_0x5c94b0(0x1cf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x32eb78+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- function a77_0xb564(_0x2c846b,_0xedaaf5){_0x2c846b=_0x2c846b-0x123;const _0x297eca=a77_0x297e();let _0xb5641f=_0x297eca[_0x2c846b];return _0xb5641f;}(function(_0x19449c,_0x541b6f){const _0x4b4dc1=a77_0xb564,_0x25b216=_0x19449c();while(!![]){try{const _0x2974b8=parseInt(_0x4b4dc1(0x12f))/0x1+-parseInt(_0x4b4dc1(0x133))/0x2*(-parseInt(_0x4b4dc1(0x12a))/0x3)+-parseInt(_0x4b4dc1(0x127))/0x4+-parseInt(_0x4b4dc1(0x12b))/0x5*(-parseInt(_0x4b4dc1(0x126))/0x6)+parseInt(_0x4b4dc1(0x132))/0x7*(parseInt(_0x4b4dc1(0x12d))/0x8)+parseInt(_0x4b4dc1(0x12c))/0x9+-parseInt(_0x4b4dc1(0x129))/0xa;if(_0x2974b8===_0x541b6f)break;else _0x25b216['push'](_0x25b216['shift']());}catch(_0xe07522){_0x25b216['push'](_0x25b216['shift']());}}}(a77_0x297e,0x99e1a));function a77_0x297e(){const _0x5eba0c=['315PWewyd','223445OuLDhN','6026571BSRRgy','40GeTqmT','validation','602421pPxbij','Unsupported\x20Skill\x20sync\x20scope:\x20','trim','1580264PbfALg','23834VPerVj','all','company','personal','66sLjBCi','2733076VZpqrD','Unsupported\x20Skill\x20list\x20scope:\x20','28300970BDzPpF'];a77_0x297e=function(){return _0x5eba0c;};return a77_0x297e();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1b54b9){const _0x57aa3a=a77_0xb564,_0x4b69cb=_0x1b54b9['trim']();if(!_0x4b69cb||_0x4b69cb===_0x57aa3a(0x123))return[_0x57aa3a(0x125),_0x57aa3a(0x124)];if(_0x4b69cb===_0x57aa3a(0x125)||_0x4b69cb===_0x57aa3a(0x124))return[_0x4b69cb];throw CliErrors[_0x57aa3a(0x12e)](_0x57aa3a(0x130)+_0x1b54b9);}export function normalizeListScope(_0x1f93f1){const _0x129273=a77_0xb564,_0x275978=_0x1f93f1[_0x129273(0x131)]();if(!_0x275978)return'all';if(_0x275978===_0x129273(0x125)||_0x275978===_0x129273(0x124)||_0x275978===_0x129273(0x123))return _0x275978;throw CliErrors[_0x129273(0x12e)](_0x129273(0x128)+_0x1f93f1);}export function shouldListScope(_0x3d9736,_0x2ab015){const _0x4510c8=a77_0xb564;if(_0x3d9736===_0x4510c8(0x123))return!![];return _0x3d9736===_0x2ab015;}export function listScopeToRuntimeScopes(_0x3982df){const _0x22ed2c=a77_0xb564;if(_0x3982df===_0x22ed2c(0x123))return[_0x22ed2c(0x125),_0x22ed2c(0x124)];return[_0x3982df===_0x22ed2c(0x124)?'company':_0x3982df];}export function listScopeToRemoteScope(_0x100694){return _0x100694;}
1
+ (function(_0x156167,_0x41f660){const _0x34f51e=a77_0x2bc4,_0x3fae6e=_0x156167();while(!![]){try{const _0x5e1240=-parseInt(_0x34f51e(0x9b))/0x1+-parseInt(_0x34f51e(0x96))/0x2+-parseInt(_0x34f51e(0xa0))/0x3+-parseInt(_0x34f51e(0x98))/0x4+-parseInt(_0x34f51e(0x9d))/0x5+parseInt(_0x34f51e(0x94))/0x6+parseInt(_0x34f51e(0x9f))/0x7;if(_0x5e1240===_0x41f660)break;else _0x3fae6e['push'](_0x3fae6e['shift']());}catch(_0x344b3b){_0x3fae6e['push'](_0x3fae6e['shift']());}}}(a77_0x2695,0x24d9f));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x32394f){const _0x551371=a77_0x2bc4,_0x5f4516=_0x32394f[_0x551371(0x99)]();if(!_0x5f4516||_0x5f4516===_0x551371(0x9a))return[_0x551371(0x9e),_0x551371(0x97)];if(_0x5f4516==='personal'||_0x5f4516==='company')return[_0x5f4516];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x32394f);}export function normalizeListScope(_0x1655eb){const _0x20de00=a77_0x2bc4,_0x717be6=_0x1655eb[_0x20de00(0x99)]();if(!_0x717be6)return _0x20de00(0x9a);if(_0x717be6==='personal'||_0x717be6===_0x20de00(0x97)||_0x717be6===_0x20de00(0x9a))return _0x717be6;throw CliErrors[_0x20de00(0x95)](_0x20de00(0x9c)+_0x1655eb);}export function shouldListScope(_0x5af996,_0x238d65){if(_0x5af996==='all')return!![];return _0x5af996===_0x238d65;}function a77_0x2bc4(_0x1ac38e,_0x1e4446){_0x1ac38e=_0x1ac38e-0x94;const _0x26953b=a77_0x2695();let _0x2bc439=_0x26953b[_0x1ac38e];return _0x2bc439;}function a77_0x2695(){const _0xc705af=['all','113056iuxmSw','Unsupported\x20Skill\x20list\x20scope:\x20','1274195euzuNy','personal','7435687SfYyfg','719436uoHkXm','1072308SKimGU','validation','485152vnJepA','company','958932cQRfxf','trim'];a77_0x2695=function(){return _0xc705af;};return a77_0x2695();}export function listScopeToRuntimeScopes(_0x21f93e){const _0x33188b=a77_0x2bc4;if(_0x21f93e===_0x33188b(0x9a))return[_0x33188b(0x9e),'company'];return[_0x21f93e===_0x33188b(0x97)?_0x33188b(0x97):_0x21f93e];}export function listScopeToRemoteScope(_0x27e1c9){return _0x27e1c9;}
@@ -1 +1 @@
1
- function a78_0x2034(_0xcb19dc,_0x2f40eb){_0xcb19dc=_0xcb19dc-0x140;var _0x15feb3=a78_0x15fe();var _0x20345e=_0x15feb3[_0xcb19dc];return _0x20345e;}function a78_0x15fe(){var _0x4a3b7f=['5588220LEySFW','27wNQaXL','104095yvyPmd','1927557cytykc','157927HajvvV','skillMdPath','version','tags','pulledAt','skillName','skillCode','cacheDir','treeHash','1052128VeEzae','readonly','linkedPaths','4ZleXlv','10tNiWYX','metadataPath','5418483NhkSLJ','2260CZLpjY','contentHash','scope'];a78_0x15fe=function(){return _0x4a3b7f;};return a78_0x15fe();}(function(_0x13c2eb,_0x500d92){var _0xe4c652=a78_0x2034,_0x27ae86=_0x13c2eb();while(!![]){try{var _0x30b570=-parseInt(_0xe4c652(0x14e))/0x1*(-parseInt(_0xe4c652(0x143))/0x2)+-parseInt(_0xe4c652(0x14b))/0x3*(-parseInt(_0xe4c652(0x147))/0x4)+parseInt(_0xe4c652(0x14c))/0x5+parseInt(_0xe4c652(0x14a))/0x6+-parseInt(_0xe4c652(0x146))/0x7+-parseInt(_0xe4c652(0x140))/0x8+parseInt(_0xe4c652(0x14d))/0x9*(parseInt(_0xe4c652(0x144))/0xa);if(_0x30b570===_0x500d92)break;else _0x27ae86['push'](_0x27ae86['shift']());}catch(_0x59430c){_0x27ae86['push'](_0x27ae86['shift']());}}}(a78_0x15fe,0x8e054));export function summarizeRuntimeSkill(_0x3b05de){var _0x1c0ca5=a78_0x2034;return{'id':_0x3b05de['id'],'skillCode':_0x3b05de[_0x1c0ca5(0x154)],'skillName':_0x3b05de['skillName'],'scope':_0x3b05de[_0x1c0ca5(0x149)],'version':_0x3b05de[_0x1c0ca5(0x150)],'readonly':_0x3b05de[_0x1c0ca5(0x141)]};}export function summarizeLocalRuntimeSkill(_0x221668){var _0x5d3aa4=a78_0x2034;return{'id':_0x221668['id'],'skillCode':_0x221668[_0x5d3aa4(0x154)],'skillName':_0x221668[_0x5d3aa4(0x153)],'scope':_0x221668[_0x5d3aa4(0x149)],'appCode':_0x221668['appCode'],'version':_0x221668[_0x5d3aa4(0x150)],'status':_0x221668['status'],'readonly':_0x221668[_0x5d3aa4(0x141)],'tags':_0x221668[_0x5d3aa4(0x151)],'dir':_0x221668['dir'],'cacheDir':_0x221668[_0x5d3aa4(0x155)],'skillMdPath':_0x221668[_0x5d3aa4(0x14f)],'metadataPath':_0x221668[_0x5d3aa4(0x145)],'linkedPaths':_0x221668[_0x5d3aa4(0x142)],'contentHash':_0x221668[_0x5d3aa4(0x148)],'treeHash':_0x221668[_0x5d3aa4(0x156)],'pulledAt':_0x221668[_0x5d3aa4(0x152)]};}
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();}