@lovrabet/lovrabet-cli 2.3.5 → 2.3.6-beta.1

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 (187) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/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.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +10 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.d.ts +3 -1
  141. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  142. package/lib/services/dataset-import/excel-reader.js +1 -1
  143. package/lib/services/dataset-import/image-bytes.d.ts +3 -0
  144. package/lib/services/dataset-import/image-bytes.js +1 -0
  145. package/lib/services/dataset-import/image-ooxml.d.ts +10 -0
  146. package/lib/services/dataset-import/image-ooxml.js +1 -0
  147. package/lib/services/dataset-import/image-runner.d.ts +48 -0
  148. package/lib/services/dataset-import/image-runner.js +1 -0
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.d.ts +10 -1
  152. package/lib/services/dataset-import/runner.js +1 -1
  153. package/lib/services/dataset-import/types.d.ts +28 -1
  154. package/lib/skills/builtin-skill.js +1 -1
  155. package/lib/skills/npx-skills-add.js +1 -1
  156. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  157. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  158. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  159. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  160. package/lib/skills/runtime-skill-sync/links.js +1 -1
  161. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  162. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  163. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  164. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  165. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  166. package/lib/skills/runtime-skill-sync/push.js +1 -1
  167. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  169. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  170. package/lib/skills/runtime-skill-sync.js +1 -1
  171. package/lib/skills/skill-presence.js +1 -1
  172. package/lib/utils/access-key-redaction.js +1 -1
  173. package/lib/utils/apply-jq-filter.js +1 -1
  174. package/lib/utils/cli-version-check.js +1 -1
  175. package/lib/utils/cli-version-policy.js +1 -1
  176. package/lib/utils/logger.js +1 -1
  177. package/lib/utils/lossless-json.js +1 -1
  178. package/lib/utils/params.js +1 -1
  179. package/lib/utils/positive-safe-integer.js +1 -1
  180. package/lib/utils/redaction.js +1 -1
  181. package/lib/utils/update-notice.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/write-cli-side-channel.js +1 -1
  184. package/package.json +4 -1
  185. package/skills/lovrabet/SKILL.md +3 -1
  186. package/skills/lovrabet/references/lovrabet-excel-import.md +19 -0
  187. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a66_0x1a2efc=a66_0x2980;(function(_0x5e879f,_0x1a6677){const _0x34ac93=a66_0x2980,_0x313ec8=_0x5e879f();while(!![]){try{const _0x1f6264=-parseInt(_0x34ac93(0xbe))/0x1*(parseInt(_0x34ac93(0xc9))/0x2)+parseInt(_0x34ac93(0xab))/0x3*(parseInt(_0x34ac93(0xc4))/0x4)+parseInt(_0x34ac93(0xc0))/0x5+parseInt(_0x34ac93(0xbc))/0x6+-parseInt(_0x34ac93(0xc1))/0x7+parseInt(_0x34ac93(0xb7))/0x8+-parseInt(_0x34ac93(0xae))/0x9;if(_0x1f6264===_0x1a6677)break;else _0x313ec8['push'](_0x313ec8['shift']());}catch(_0x108f48){_0x313ec8['push'](_0x313ec8['shift']());}}}(a66_0x338d,0x59f1b));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';function a66_0x338d(){const _0xa81d5e=['1978075ikdTvL','1304954VFjbEE','rendered','Refusing\x20to\x20overwrite\x20symlink:\x20','40QNnqNp','force','path','name','bool','283678MsSNnj','skillDir','content','trim','159549tvDxMg','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','WRITE','8947719sKHezJ','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','create','validation','skill','Created\x20local\x20Skill\x20draft\x20','str','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','files','546992QZcHBF','read','isSymbolicLink','type','target','4170264RDDrrc','skillName','1JRPxgZ','utf8'];a66_0x338d=function(){return _0xa81d5e;};return a66_0x338d();}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':a66_0x1a2efc(0xb2),'command':a66_0x1a2efc(0xb0),'description':a66_0x1a2efc(0xaf),'risk':a66_0x1a2efc(0xb8),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x5abd32){const _0x52cc4d=a66_0x1a2efc,_0x1cc415=buildSkillCreatePlan(_0x5abd32['str']('name'),_0x5abd32['str']('type'),_0x5abd32[_0x52cc4d(0xb4)]('target'));return{'method':_0x52cc4d(0xad),'url':_0x1cc415['skillDir'],'body':{'skillName':_0x1cc415['rendered']['skillName'],'type':_0x1cc415['rendered'][_0x52cc4d(0xba)],'selfContained':!![],'files':_0x1cc415[_0x52cc4d(0xc2)]['files']['map'](_0x427ce7=>_0x427ce7[_0x52cc4d(0xc6)])},'description':_0x52cc4d(0xb5)};},async 'execute'(_0x5560f4){const _0x563993=a66_0x1a2efc,_0x470b5c=buildSkillCreatePlan(_0x5560f4[_0x563993(0xb4)](_0x563993(0xc7)),_0x5560f4[_0x563993(0xb4)](_0x563993(0xba)),_0x5560f4['str'](_0x563993(0xbb)));return writeSkillDraft(_0x470b5c,_0x5560f4[_0x563993(0xc8)](_0x563993(0xc5))),{'ok':!![],'data':{'skillName':_0x470b5c[_0x563993(0xc2)][_0x563993(0xbd)],'type':_0x470b5c[_0x563993(0xc2)][_0x563993(0xba)],'dir':_0x470b5c[_0x563993(0xca)],'files':_0x470b5c[_0x563993(0xc2)][_0x563993(0xb6)]['map'](_0x540bb2=>_0x540bb2['path'])},'message':_0x563993(0xb3)+_0x470b5c['rendered'][_0x563993(0xbd)]};}};function buildSkillCreatePlan(_0x30d922,_0x3ddc2d,_0x564b61){const _0x15d7ea=a66_0x1a2efc,_0x2c216e=_0x3ddc2d[_0x15d7ea(0xaa)](),_0x32984c=renderSkillTemplate({'skillName':_0x30d922,'type':_0x2c216e});!_0x2c216e&&writeCliSideChannelLine(_0x15d7ea(0xac));const _0x3e4dc4=resolve(normalizeSkillTarget(_0x564b61));return{'rendered':_0x32984c,'targetRoot':_0x3e4dc4,'skillDir':resolve(_0x3e4dc4,_0x32984c[_0x15d7ea(0xbd)])};}function normalizeSkillTarget(_0x290a03){const _0x28cefe=a66_0x1a2efc;return(_0x290a03||DEFAULT_SKILL_TARGET)[_0x28cefe(0xaa)]()||DEFAULT_SKILL_TARGET;}function a66_0x2980(_0x2fc307,_0x4a0189){_0x2fc307=_0x2fc307-0xaa;const _0x338d0a=a66_0x338d();let _0x298094=_0x338d0a[_0x2fc307];return _0x298094;}function writeSkillDraft(_0x52a373,_0x568ba0){const _0x520f8e=a66_0x1a2efc;if(existsSync(_0x52a373[_0x520f8e(0xca)])){const _0x121eac=lstatSync(_0x52a373[_0x520f8e(0xca)]);if(!_0x121eac['isDirectory']()||_0x121eac[_0x520f8e(0xb9)]())throw CliErrors['validation']('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x52a373['skillDir']);if(!_0x568ba0)throw CliErrors[_0x520f8e(0xb1)]('Skill\x20directory\x20already\x20exists:\x20'+_0x52a373[_0x520f8e(0xca)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x4b691b of _0x52a373['rendered'][_0x520f8e(0xb6)]){const _0xddf793=resolve(_0x52a373[_0x520f8e(0xca)],_0x4b691b[_0x520f8e(0xc6)]),_0x1c72e1=dirname(_0xddf793);mkdirSync(_0x1c72e1,{'recursive':!![]});if(existsSync(_0xddf793)&&lstatSync(_0xddf793)[_0x520f8e(0xb9)]())throw CliErrors['validation'](_0x520f8e(0xc3)+_0xddf793);writeFileSync(_0xddf793,_0x4b691b[_0x520f8e(0xcb)],_0x520f8e(0xbf));}}
1
+ const a66_0xcf2536=a66_0x56f1;(function(_0x14734d,_0x1ec5d9){const _0x3b8abd=a66_0x56f1,_0x878061=_0x14734d();while(!![]){try{const _0x5160bd=-parseInt(_0x3b8abd(0x1b6))/0x1+-parseInt(_0x3b8abd(0x1b1))/0x2*(-parseInt(_0x3b8abd(0x1a7))/0x3)+-parseInt(_0x3b8abd(0x1ca))/0x4+-parseInt(_0x3b8abd(0x1b0))/0x5*(-parseInt(_0x3b8abd(0x1ba))/0x6)+parseInt(_0x3b8abd(0x1c9))/0x7*(-parseInt(_0x3b8abd(0x1ac))/0x8)+parseInt(_0x3b8abd(0x1a8))/0x9+-parseInt(_0x3b8abd(0x1b2))/0xa;if(_0x5160bd===_0x1ec5d9)break;else _0x878061['push'](_0x878061['shift']());}catch(_0x5441d5){_0x878061['push'](_0x878061['shift']());}}}(a66_0x3f7a,0x961ed));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';function a66_0x56f1(_0x14419d,_0x4938e6){_0x14419d=_0x14419d-0x1a7;const _0x3f7ab3=a66_0x3f7a();let _0x56f184=_0x3f7ab3[_0x14419d];return _0x56f184;}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':a66_0xcf2536(0x1ae),'command':'create','description':a66_0xcf2536(0x1b4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x14ff09){const _0x9d195c=a66_0xcf2536,_0x12248e=buildSkillCreatePlan(_0x14ff09[_0x9d195c(0x1b3)](_0x9d195c(0x1c3)),_0x14ff09[_0x9d195c(0x1b3)](_0x9d195c(0x1b8)),_0x14ff09[_0x9d195c(0x1b3)](_0x9d195c(0x1ad)));return{'method':_0x9d195c(0x1c8),'url':_0x12248e[_0x9d195c(0x1a9)],'body':{'skillName':_0x12248e[_0x9d195c(0x1c5)]['skillName'],'type':_0x12248e[_0x9d195c(0x1c5)][_0x9d195c(0x1b8)],'selfContained':!![],'files':_0x12248e[_0x9d195c(0x1c5)][_0x9d195c(0x1af)][_0x9d195c(0x1bd)](_0x585707=>_0x585707['path'])},'description':_0x9d195c(0x1c7)};},async 'execute'(_0x4852e9){const _0x237dd2=a66_0xcf2536,_0x2dc763=buildSkillCreatePlan(_0x4852e9[_0x237dd2(0x1b3)](_0x237dd2(0x1c3)),_0x4852e9[_0x237dd2(0x1b3)](_0x237dd2(0x1b8)),_0x4852e9[_0x237dd2(0x1b3)](_0x237dd2(0x1ad)));return writeSkillDraft(_0x2dc763,_0x4852e9[_0x237dd2(0x1bb)](_0x237dd2(0x1be))),{'ok':!![],'data':{'skillName':_0x2dc763[_0x237dd2(0x1c5)][_0x237dd2(0x1aa)],'type':_0x2dc763[_0x237dd2(0x1c5)]['type'],'dir':_0x2dc763[_0x237dd2(0x1a9)],'files':_0x2dc763[_0x237dd2(0x1c5)][_0x237dd2(0x1af)][_0x237dd2(0x1bd)](_0x160b81=>_0x160b81[_0x237dd2(0x1b7)])},'message':_0x237dd2(0x1b9)+_0x2dc763[_0x237dd2(0x1c5)][_0x237dd2(0x1aa)]};}};function buildSkillCreatePlan(_0x5b9480,_0x16d435,_0x286073){const _0x2bcba9=a66_0xcf2536,_0x48fb70=_0x16d435[_0x2bcba9(0x1ab)](),_0x376927=renderSkillTemplate({'skillName':_0x5b9480,'type':_0x48fb70});!_0x48fb70&&writeCliSideChannelLine('Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.');const _0x4ea0a5=resolve(normalizeSkillTarget(_0x286073));return{'rendered':_0x376927,'targetRoot':_0x4ea0a5,'skillDir':resolve(_0x4ea0a5,_0x376927['skillName'])};}function normalizeSkillTarget(_0xc1398e){const _0x50210a=a66_0xcf2536;return(_0xc1398e||DEFAULT_SKILL_TARGET)[_0x50210a(0x1ab)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x9c0dac,_0x92e6b5){const _0x1f1fe0=a66_0xcf2536;if(existsSync(_0x9c0dac['skillDir'])){const _0x39f010=lstatSync(_0x9c0dac[_0x1f1fe0(0x1a9)]);if(!_0x39f010[_0x1f1fe0(0x1c6)]()||_0x39f010['isSymbolicLink']())throw CliErrors[_0x1f1fe0(0x1c2)](_0x1f1fe0(0x1c4)+_0x9c0dac[_0x1f1fe0(0x1a9)]);if(!_0x92e6b5)throw CliErrors['validation'](_0x1f1fe0(0x1bf)+_0x9c0dac[_0x1f1fe0(0x1a9)],_0x1f1fe0(0x1c1));}for(const _0x18bee0 of _0x9c0dac[_0x1f1fe0(0x1c5)][_0x1f1fe0(0x1af)]){const _0x5f58ac=resolve(_0x9c0dac[_0x1f1fe0(0x1a9)],_0x18bee0[_0x1f1fe0(0x1b7)]),_0x7a529a=dirname(_0x5f58ac);mkdirSync(_0x7a529a,{'recursive':!![]});if(existsSync(_0x5f58ac)&&lstatSync(_0x5f58ac)['isSymbolicLink']())throw CliErrors[_0x1f1fe0(0x1c2)](_0x1f1fe0(0x1bc)+_0x5f58ac);writeFileSync(_0x5f58ac,_0x18bee0[_0x1f1fe0(0x1b5)],_0x1f1fe0(0x1c0));}}function a66_0x3f7a(){const _0x556a97=['WRITE','622643aTCUrl','629236SPPrhP','174rrurAQ','174663roXupY','skillDir','skillName','trim','40cXWzyu','target','skill','files','23285XTTYYF','36446HLlNAp','9772340WKgqVH','str','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','content','41753vGjGRP','path','type','Created\x20local\x20Skill\x20draft\x20','1494QJWOQi','bool','Refusing\x20to\x20overwrite\x20symlink:\x20','map','force','Skill\x20directory\x20already\x20exists:\x20','utf8','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','validation','name','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','rendered','isDirectory','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.'];a66_0x3f7a=function(){return _0x556a97;};return a66_0x3f7a();}
@@ -1 +1 @@
1
- const a67_0x39e2b3=a67_0x1aa1;function a67_0x2b1d(){const _0x5864b6=['--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','str','diagram-show','11669845QFLgEc',';\x20first\x20write\x20expects\x20revision\x20','isInteger','1416280IPkQLX','656173QlfIEj','60042DMxzTZ','40422hxUcCv','5VfGuwS','expectedDiagramRevision','diagram-file','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.','Updated','created','trim','skillCode','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','write','company','expected-diagram-revision','version','num','36EWocoe','read','Created','appCode','action','diagram-push','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','validation','scope','found','source-fingerprint','skill','Skill\x20diagram\x20for\x20','diagram-validate','18693iXgZSH','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','Skill\x20diagram\x20validation\x20passed\x20for\x20','63xgStlk','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.',';\x20next\x20write\x20expects\x20revision\x20','2490848ujLLHW','1704TlbXNW','\x20Skill\x20diagram\x20for\x20','623BuFknT'];a67_0x2b1d=function(){return _0x5864b6;};return a67_0x2b1d();}(function(_0x396f52,_0x3fb87b){const _0x45f347=a67_0x1aa1,_0x79dc31=_0x396f52();while(!![]){try{const _0x40734a=-parseInt(_0x45f347(0x9e))/0x1+parseInt(_0x45f347(0x9f))/0x2*(-parseInt(_0x45f347(0x90))/0x3)+parseInt(_0x45f347(0x93))/0x4*(-parseInt(_0x45f347(0xa1))/0x5)+parseInt(_0x45f347(0xa0))/0x6*(-parseInt(_0x45f347(0x96))/0x7)+parseInt(_0x45f347(0x94))/0x8*(-parseInt(_0x45f347(0x8d))/0x9)+parseInt(_0x45f347(0x9d))/0xa+parseInt(_0x45f347(0x9a))/0xb*(parseInt(_0x45f347(0x7f))/0xc);if(_0x40734a===_0x3fb87b)break;else _0x79dc31['push'](_0x79dc31['shift']());}catch(_0x2cc85d){_0x79dc31['push'](_0x79dc31['shift']());}}}(a67_0x2b1d,0x5b101));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(_0x15f72f){const _0x55fc5a=a67_0x1aa1,_0x1bc181=_0x15f72f[_0x55fc5a(0x98)]('skill-code')['trim'](),_0x33077b=_0x15f72f[_0x55fc5a(0x98)](_0x55fc5a(0x7d))[_0x55fc5a(0xa7)](),_0x5e53da=_0x15f72f['str']('scope');if(!_0x1bc181||!_0x33077b||_0x5e53da!=='personal'&&_0x5e53da!==_0x55fc5a(0x7b))throw CliErrors[_0x55fc5a(0x86)](_0x55fc5a(0x91));return{'skillCode':_0x1bc181,'version':_0x33077b,'scope':_0x5e53da};}function a67_0x1aa1(_0x4257b3,_0x537457){_0x4257b3=_0x4257b3-0x7a;const _0x2b1d34=a67_0x2b1d();let _0x1aa175=_0x2b1d34[_0x4257b3];return _0x1aa175;}async function readDiagramWriteInput(_0x5e52e6){const _0x229f9d=a67_0x1aa1,_0x567c7b=_0x5e52e6[_0x229f9d(0x7e)](_0x229f9d(0x7c)),_0x1e67c7=_0x5e52e6[_0x229f9d(0x98)](_0x229f9d(0x89))[_0x229f9d(0xa7)]();if(!Number[_0x229f9d(0x9c)](_0x567c7b)||_0x567c7b<0x0)throw CliErrors[_0x229f9d(0x86)](_0x229f9d(0xa9));if(!/^sha256:[0-9a-f]{64}$/['test'](_0x1e67c7))throw CliErrors[_0x229f9d(0x86)](_0x229f9d(0x97));return{'expectedDiagramRevision':_0x567c7b,'sourceFingerprint':_0x1e67c7,'diagram':await readRequiredSkillDiagram(_0x5e52e6['str'](_0x229f9d(0xa3)))};}export const diagramValidateCommand={'service':a67_0x39e2b3(0x8a),'command':a67_0x39e2b3(0x8c),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a67_0x39e2b3(0x80),'flags':WRITE_FLAGS,async 'execute'(_0x5e24a7){const _0x1b2a3f=a67_0x39e2b3,_0x5e4cb4=readDiagramTarget(_0x5e24a7),_0x15f788=await validateRuntimeSkillVersionDiagram(_0x5e24a7[_0x1b2a3f(0x82)],_0x5e4cb4[_0x1b2a3f(0xa8)],_0x5e4cb4[_0x1b2a3f(0x7d)],_0x5e4cb4[_0x1b2a3f(0x87)],await readDiagramWriteInput(_0x5e24a7));return{'ok':!![],'data':_0x15f788,'message':_0x1b2a3f(0x8f)+_0x5e4cb4['skillCode']+'@'+_0x5e4cb4[_0x1b2a3f(0x7d)]+'.'};}};export const diagramPushCommand={'service':'skill','command':a67_0x39e2b3(0x84),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a67_0x39e2b3(0x7a),'confirmationDescription':a67_0x39e2b3(0xa4),'flags':WRITE_FLAGS,async 'execute'(_0x1e22a8){const _0xe998f7=a67_0x39e2b3,_0x300b0e=readDiagramTarget(_0x1e22a8),_0x1664df=await putRuntimeSkillVersionDiagram(_0x1e22a8[_0xe998f7(0x82)],_0x300b0e['skillCode'],_0x300b0e[_0xe998f7(0x7d)],_0x300b0e[_0xe998f7(0x87)],await readDiagramWriteInput(_0x1e22a8));return{'ok':!![],'data':_0x1664df,'message':_0x1664df[_0xe998f7(0x83)]==='unchanged'?_0xe998f7(0x8b)+_0x300b0e['skillCode']+'@'+_0x300b0e[_0xe998f7(0x7d)]+'\x20is\x20unchanged.':(_0x1664df[_0xe998f7(0x83)]===_0xe998f7(0xa6)?_0xe998f7(0x81):_0xe998f7(0xa5))+_0xe998f7(0x95)+_0x300b0e[_0xe998f7(0xa8)]+'@'+_0x300b0e['version']+'.'};}};export const diagramShowCommand={'service':'skill','command':a67_0x39e2b3(0x99),'description':a67_0x39e2b3(0x85),'risk':a67_0x39e2b3(0x80),'flags':TARGET_FLAGS,async 'execute'(_0x397347){const _0x5511ff=a67_0x39e2b3,_0xf0fa40=readDiagramTarget(_0x397347),_0x17d74e=await getRuntimeSkillVersionDiagram(_0x397347[_0x5511ff(0x82)],_0xf0fa40['skillCode'],_0xf0fa40[_0x5511ff(0x7d)],_0xf0fa40[_0x5511ff(0x87)]);return{'ok':!![],'data':_0x17d74e,'message':_0x17d74e[_0x5511ff(0x88)]?'Found\x20Skill\x20diagram\x20for\x20'+_0xf0fa40['skillCode']+'@'+_0xf0fa40[_0x5511ff(0x7d)]+_0x5511ff(0x92)+_0x17d74e['expectedDiagramRevision']+'.':_0x5511ff(0x8e)+_0xf0fa40['skillCode']+'@'+_0xf0fa40[_0x5511ff(0x7d)]+_0x5511ff(0x9b)+_0x17d74e[_0x5511ff(0xa2)]+'.'};}};
1
+ const a67_0xf1edd6=a67_0x5cb4;(function(_0xbaae8d,_0x231a96){const _0x3e8618=a67_0x5cb4,_0x4bf8fb=_0xbaae8d();while(!![]){try{const _0x3221db=-parseInt(_0x3e8618(0x176))/0x1*(parseInt(_0x3e8618(0x186))/0x2)+parseInt(_0x3e8618(0x17e))/0x3+-parseInt(_0x3e8618(0x183))/0x4+-parseInt(_0x3e8618(0x174))/0x5*(-parseInt(_0x3e8618(0x192))/0x6)+parseInt(_0x3e8618(0x171))/0x7+-parseInt(_0x3e8618(0x173))/0x8*(-parseInt(_0x3e8618(0x195))/0x9)+-parseInt(_0x3e8618(0x190))/0xa*(parseInt(_0x3e8618(0x181))/0xb);if(_0x3221db===_0x231a96)break;else _0x4bf8fb['push'](_0x4bf8fb['shift']());}catch(_0x4a9d35){_0x4bf8fb['push'](_0x4bf8fb['shift']());}}}(a67_0x5699,0x8f426));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';function a67_0x5cb4(_0x16ad68,_0x1d5c7d){_0x16ad68=_0x16ad68-0x16d;const _0x5699db=a67_0x5699();let _0x5cb4f0=_0x5699db[_0x16ad68];return _0x5cb4f0;}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(_0x402e76){const _0x577bf5=a67_0x5cb4,_0x5cfeb0=_0x402e76[_0x577bf5(0x197)](_0x577bf5(0x17c))[_0x577bf5(0x184)](),_0x56a54f=_0x402e76['str']('version')['trim'](),_0x458393=_0x402e76['str'](_0x577bf5(0x17b));if(!_0x5cfeb0||!_0x56a54f||_0x458393!=='personal'&&_0x458393!==_0x577bf5(0x189))throw CliErrors[_0x577bf5(0x18d)](_0x577bf5(0x194));return{'skillCode':_0x5cfeb0,'version':_0x56a54f,'scope':_0x458393};}async function readDiagramWriteInput(_0x44d2f8){const _0x1b529d=a67_0x5cb4,_0x805cb4=_0x44d2f8[_0x1b529d(0x191)](_0x1b529d(0x179)),_0x260d4c=_0x44d2f8[_0x1b529d(0x197)](_0x1b529d(0x182))['trim']();if(!Number['isInteger'](_0x805cb4)||_0x805cb4<0x0)throw CliErrors[_0x1b529d(0x18d)]('--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.');if(!/^sha256:[0-9a-f]{64}$/[_0x1b529d(0x185)](_0x260d4c))throw CliErrors['validation'](_0x1b529d(0x178));return{'expectedDiagramRevision':_0x805cb4,'sourceFingerprint':_0x260d4c,'diagram':await readRequiredSkillDiagram(_0x44d2f8['str'](_0x1b529d(0x18f)))};}export const diagramValidateCommand={'service':a67_0xf1edd6(0x175),'command':a67_0xf1edd6(0x177),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a67_0xf1edd6(0x188),'flags':WRITE_FLAGS,async 'execute'(_0x484bf8){const _0x28a1f0=a67_0xf1edd6,_0x23b110=readDiagramTarget(_0x484bf8),_0x525097=await validateRuntimeSkillVersionDiagram(_0x484bf8['appCode'],_0x23b110['skillCode'],_0x23b110['version'],_0x23b110['scope'],await readDiagramWriteInput(_0x484bf8));return{'ok':!![],'data':_0x525097,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0x23b110[_0x28a1f0(0x18a)]+'@'+_0x23b110[_0x28a1f0(0x17f)]+'.'};}};export const diagramPushCommand={'service':a67_0xf1edd6(0x175),'command':a67_0xf1edd6(0x18b),'description':a67_0xf1edd6(0x16d),'risk':'write','confirmationDescription':a67_0xf1edd6(0x16f),'flags':WRITE_FLAGS,async 'execute'(_0x582107){const _0x51793a=a67_0xf1edd6,_0x2379c0=readDiagramTarget(_0x582107),_0x1fd0b=await putRuntimeSkillVersionDiagram(_0x582107[_0x51793a(0x180)],_0x2379c0[_0x51793a(0x18a)],_0x2379c0[_0x51793a(0x17f)],_0x2379c0['scope'],await readDiagramWriteInput(_0x582107));return{'ok':!![],'data':_0x1fd0b,'message':_0x1fd0b[_0x51793a(0x16e)]===_0x51793a(0x17d)?_0x51793a(0x198)+_0x2379c0['skillCode']+'@'+_0x2379c0['version']+_0x51793a(0x187):(_0x1fd0b[_0x51793a(0x16e)]===_0x51793a(0x18c)?'Created':_0x51793a(0x193))+'\x20Skill\x20diagram\x20for\x20'+_0x2379c0[_0x51793a(0x18a)]+'@'+_0x2379c0['version']+'.'};}};export const diagramShowCommand={'service':a67_0xf1edd6(0x175),'command':a67_0xf1edd6(0x199),'description':a67_0xf1edd6(0x18e),'risk':'read','flags':TARGET_FLAGS,async 'execute'(_0x3e76cc){const _0x1efeb7=a67_0xf1edd6,_0x27ead7=readDiagramTarget(_0x3e76cc),_0x11af06=await getRuntimeSkillVersionDiagram(_0x3e76cc['appCode'],_0x27ead7[_0x1efeb7(0x18a)],_0x27ead7[_0x1efeb7(0x17f)],_0x27ead7[_0x1efeb7(0x17b)]);return{'ok':!![],'data':_0x11af06,'message':_0x11af06[_0x1efeb7(0x170)]?_0x1efeb7(0x17a)+_0x27ead7[_0x1efeb7(0x18a)]+'@'+_0x27ead7[_0x1efeb7(0x17f)]+';\x20next\x20write\x20expects\x20revision\x20'+_0x11af06[_0x1efeb7(0x196)]+'.':_0x1efeb7(0x172)+_0x27ead7[_0x1efeb7(0x18a)]+'@'+_0x27ead7[_0x1efeb7(0x17f)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x11af06[_0x1efeb7(0x196)]+'.'};}};function a67_0x5699(){const _0x107ce8=['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','7034139qsdIzD','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','16jdsUPo','754620sAOzHk','skill','13933PCKGCc','diagram-validate','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','expected-diagram-revision','Found\x20Skill\x20diagram\x20for\x20','scope','skill-code','unchanged','795639bvaajH','version','appCode','7250551wvRlhr','source-fingerprint','2102232NMAySi','trim','test','106TUfVaY','\x20is\x20unchanged.','read','company','skillCode','diagram-push','created','validation','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','diagram-file','10scuGKp','num','18QekWmk','Updated','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','3541842GSerJO','expectedDiagramRevision','str','Skill\x20diagram\x20for\x20','diagram-show','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','action'];a67_0x5699=function(){return _0x107ce8;};return a67_0x5699();}
@@ -1 +1 @@
1
- const a68_0x2e3bfe=a68_0x2284;(function(_0x53cf38,_0x317920){const _0x5ea8ee=a68_0x2284,_0x2e7656=_0x53cf38();while(!![]){try{const _0x4498e2=parseInt(_0x5ea8ee(0x1c8))/0x1*(parseInt(_0x5ea8ee(0x1d2))/0x2)+parseInt(_0x5ea8ee(0x1ef))/0x3+-parseInt(_0x5ea8ee(0x1ee))/0x4+-parseInt(_0x5ea8ee(0x1ed))/0x5+parseInt(_0x5ea8ee(0x1e5))/0x6*(-parseInt(_0x5ea8ee(0x1d7))/0x7)+-parseInt(_0x5ea8ee(0x1d6))/0x8+parseInt(_0x5ea8ee(0x1c2))/0x9*(parseInt(_0x5ea8ee(0x1ea))/0xa);if(_0x4498e2===_0x317920)break;else _0x2e7656['push'](_0x2e7656['shift']());}catch(_0x257487){_0x2e7656['push'](_0x2e7656['shift']());}}}(a68_0x43cb,0xbfb25));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a68_0x2e3bfe(0x1ca),'command':a68_0x2e3bfe(0x1e7),'description':a68_0x2e3bfe(0x1e2),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x265b58){return syncRuntimeSkills(_0x265b58);}};function a68_0x43cb(){const _0x4e2b22=['reduce','\x20personal\x20and\x20','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','str','authRequired','146814dCfGrF','skillRoots','install','force','company','32021650TMdXLA','skillCode','length','6896545QuSHif','5276548LaOQWM','298446IWuPmO','9wQzDXD','Installed\x20','../../../core/api-client.js','from','created','removed','14387LBngxX','includes','skill','scope','unchanged','code','appCode','personal','map','all','182rcdItD','bool','project','../../../skills/runtime-skill-sync.js','8822080qHNwIr','7kIgTZv','filter','accessKey','global','trim','version','min','\x20company\x20Skill(s).','action'];a68_0x43cb=function(){return _0x4e2b22;};return a68_0x43cb();}async function syncRuntimeSkills(_0x54d91c){const _0x5503f7=a68_0x2e3bfe,{downloadRuntimeSkillPackage:_0x1c7591,listRuntimeSkills:_0x498022}=await import(_0x5503f7(0x1c4)),{linkEffectiveRuntimeSkills:_0x53f18f,materializeRuntimeSkill:_0x44e033,pruneStaleRuntimeSkillCache:_0x3bcf77,pruneStaleRuntimeSkillLinks:_0x2adbc0,resolveRuntimeSkillInstallTarget:_0x139c27,reuseMaterializedRuntimeSkill:_0x438a72}=await import(_0x5503f7(0x1d5)),_0x422930=_0x54d91c[_0x5503f7(0x1e3)](_0x5503f7(0x1cd)),_0x450e0e=normalizeSyncScopes(_0x54d91c[_0x5503f7(0x1e3)]('scope')),_0x58824d=_0x54d91c['envName']??'production',_0x17033e=_0x54d91c[_0x5503f7(0x1d9)],_0x5a77f9=_0x54d91c[_0x5503f7(0x1d3)](_0x5503f7(0x1e8));if(!_0x17033e)throw CliErrors[_0x5503f7(0x1e4)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0xaf25db=_0x139c27(_0x54d91c[_0x5503f7(0x1ce)],_0x54d91c[_0x5503f7(0x1d3)]('project')?_0x5503f7(0x1d4):_0x5503f7(0x1da)),_0x5b3813=_0x139c27(_0x54d91c['appCode'],_0xaf25db[_0x5503f7(0x1cb)]===_0x5503f7(0x1d4)?_0x5503f7(0x1da):_0x5503f7(0x1d4)),_0x5ded0a=await _0x498022({'appCode':_0x54d91c[_0x5503f7(0x1ce)],'scope':_0x450e0e[_0x5503f7(0x1ec)]===0x1?_0x450e0e[0x0]:_0x5503f7(0x1d1),'code':_0x422930['trim']()||undefined,'installableOnly':!![]}),_0x39d9e4=_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1cf))?_0x5ded0a[_0x5503f7(0x1cf)]:[],_0x83177b=_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1e9))?_0x5ded0a[_0x5503f7(0x1e9)]:[],_0x472fa0=new Set([..._0x39d9e4[_0x5503f7(0x1d0)](_0x3580fb=>_0x3580fb[_0x5503f7(0x1eb)]?.[_0x5503f7(0x1db)]())[_0x5503f7(0x1d8)](_0x505bda=>Boolean(_0x505bda)),..._0x83177b[_0x5503f7(0x1d0)](_0x4005e1=>_0x4005e1[_0x5503f7(0x1eb)]?.[_0x5503f7(0x1db)]())[_0x5503f7(0x1d8)](_0x76755f=>Boolean(_0x76755f))]),_0x3d77bf=_0x422930['trim']()?[_0x422930['trim']()]:undefined,_0x157e65=_0x450e0e[_0x5503f7(0x1ec)]===0x2&&_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1cf))&&_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1e9)),_0x475dac=_0x157e65?_0x2adbc0(_0xaf25db,_0x472fa0,_0x3d77bf):[],_0x420450=_0x3bcf77({'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c['appCode'],'activeSkillCodes':_0x472fa0,'pruneSkillCodes':_0x3d77bf,'scopes':_0x450e0e,'protectedLinkRoots':_0x5b3813['skillRoots']}),_0x358a72=[..._0x39d9e4[_0x5503f7(0x1d0)](_0x5b2037=>({'skill':_0x5b2037,'scope':_0x5503f7(0x1cf)})),..._0x83177b[_0x5503f7(0x1d0)](_0x15b63d=>({'skill':_0x15b63d,'scope':'company'}))],_0xe07796=await mapConcurrent(_0x358a72,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0xa212a5,scope:_0x487c22})=>{const _0x5da943=_0x5503f7,_0xb90e20=_0x438a72(_0xa212a5,_0x487c22,{'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c[_0x5da943(0x1ce)]});if(_0xb90e20)return _0xb90e20;return _0x44e033(_0xa212a5,_0x487c22,{'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c['appCode'],'force':_0x5a77f9,'packageBytes':await downloadSkillPackage(_0xa212a5,_0x487c22,_0x54d91c[_0x5da943(0x1ce)],_0x1c7591)});}),_0x39dad2=_0x53f18f(_0xe07796,_0xaf25db),_0x234387=countLinkActions(_0x39dad2);return{'ok':!![],'data':{'appCode':_0x54d91c[_0x5503f7(0x1ce)],..._0xaf25db[_0x5503f7(0x1cb)]===_0x5503f7(0x1d4)?{'installTarget':{'scope':_0xaf25db[_0x5503f7(0x1cb)],'skillRoots':[..._0xaf25db[_0x5503f7(0x1e6)]]}}:{},'personal':_0x39d9e4[_0x5503f7(0x1ec)],'company':_0x83177b['length'],'materialized':_0xe07796[_0x5503f7(0x1ec)],'links':{'total':_0x39dad2[_0x5503f7(0x1ec)],'created':_0x234387[_0x5503f7(0x1c6)]??0x0,'updated':_0x234387['updated']??0x0,'unchanged':_0x234387[_0x5503f7(0x1cc)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x475dac['filter'](_0x232f7d=>_0x232f7d[_0x5503f7(0x1df)]===_0x5503f7(0x1c7))[_0x5503f7(0x1ec)],'cacheDirs':_0x420450[_0x5503f7(0x1d8)](_0x5c6134=>_0x5c6134[_0x5503f7(0x1df)]==='removed')['length'],'skipped':[..._0x475dac,..._0x420450]['filter'](_0xf94f0f=>_0xf94f0f[_0x5503f7(0x1df)]==='skipped')['length']},'skills':{'personal':_0x39d9e4[_0x5503f7(0x1d0)](summarizeRuntimeSkill),'company':_0x83177b['map'](summarizeRuntimeSkill)}},'message':_0x5503f7(0x1c3)+_0x39d9e4['length']+_0x5503f7(0x1e1)+_0x83177b[_0x5503f7(0x1ec)]+_0x5503f7(0x1de)};}function a68_0x2284(_0x4b5c98,_0x423635){_0x4b5c98=_0x4b5c98-0x1c2;const _0x43cb15=a68_0x43cb();let _0x228409=_0x43cb15[_0x4b5c98];return _0x228409;}async function mapConcurrent(_0x37193d,_0x59af21,_0x173f2a){const _0x2f6049=a68_0x2e3bfe,_0x58f934=new Array(_0x37193d[_0x2f6049(0x1ec)]);let _0x5f147b=0x0;const _0xf189fc=Array[_0x2f6049(0x1c5)]({'length':Math[_0x2f6049(0x1dd)](_0x59af21,_0x37193d[_0x2f6049(0x1ec)])},async()=>{while(_0x5f147b<_0x37193d['length']){const _0x3f89c9=_0x5f147b;_0x5f147b+=0x1,_0x58f934[_0x3f89c9]=await _0x173f2a(_0x37193d[_0x3f89c9]);}});return await Promise['all'](_0xf189fc),_0x58f934;}async function downloadSkillPackage(_0x3dc33b,_0x567c47,_0x5d036b,_0x49e510){const _0x4603a9=a68_0x2e3bfe,_0x4568a2=_0x3dc33b[_0x4603a9(0x1dc)]?.[_0x4603a9(0x1db)]();return _0x4568a2?_0x49e510(_0x567c47,_0x3dc33b['skillCode'],_0x5d036b,_0x4568a2):_0x49e510(_0x567c47,_0x3dc33b[_0x4603a9(0x1eb)],_0x5d036b);}function countLinkActions(_0xe923b4){const _0x4e7d07=a68_0x2e3bfe;return _0xe923b4[_0x4e7d07(0x1e0)]((_0x27fccd,_0x3cb131)=>{return _0x27fccd[_0x3cb131['action']]=(_0x27fccd[_0x3cb131['action']]??0x0)+0x1,_0x27fccd;},{});}
1
+ const a68_0x955b1f=a68_0x5169;(function(_0x1cc43e,_0x32d73b){const _0x2e7008=a68_0x5169,_0xbf3602=_0x1cc43e();while(!![]){try{const _0xb9642f=parseInt(_0x2e7008(0x19c))/0x1+parseInt(_0x2e7008(0x195))/0x2+-parseInt(_0x2e7008(0x1c4))/0x3+parseInt(_0x2e7008(0x1a2))/0x4*(parseInt(_0x2e7008(0x1b5))/0x5)+-parseInt(_0x2e7008(0x19b))/0x6*(parseInt(_0x2e7008(0x1bc))/0x7)+-parseInt(_0x2e7008(0x1a1))/0x8*(-parseInt(_0x2e7008(0x1a0))/0x9)+parseInt(_0x2e7008(0x1c3))/0xa*(parseInt(_0x2e7008(0x198))/0xb);if(_0xb9642f===_0x32d73b)break;else _0xbf3602['push'](_0xbf3602['shift']());}catch(_0x1d7dba){_0xbf3602['push'](_0xbf3602['shift']());}}}(a68_0x3dd6,0x9aea7));function a68_0x3dd6(){const _0x25494b=['read','skillRoots','project','force','created','appCode','map','accessKey','removed','unchanged','from','reduce','\x20personal\x20and\x20','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','trim','company','personal','bool','21965FxkHRA','skipped','\x20company\x20Skill(s).','production','skillCode','updated','../../../core/api-client.js','462zLJdUD','version','install','scope','filter','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','Installed\x20','15090BNlInY','2934327ECvLpa','length','1165980FkYjRB','envName','action','9152LItvqO','global','includes','57498szYPBt','30456SmlDtK','str','authRequired','code','207dOpskW','5552XjwsIo','328MZdlgC'];a68_0x3dd6=function(){return _0x25494b;};return a68_0x3dd6();}function a68_0x5169(_0xe93984,_0x355e87){_0xe93984=_0xe93984-0x194;const _0x3dd608=a68_0x3dd6();let _0x516902=_0x3dd608[_0xe93984];return _0x516902;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':'skill','command':a68_0x955b1f(0x1be),'description':a68_0x955b1f(0x1b0),'risk':a68_0x955b1f(0x1a3),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x125671){return syncRuntimeSkills(_0x125671);}};async function syncRuntimeSkills(_0x502795){const _0x4cdd86=a68_0x955b1f,{downloadRuntimeSkillPackage:_0x1e5819,listRuntimeSkills:_0x2ccde8}=await import(_0x4cdd86(0x1bb)),{linkEffectiveRuntimeSkills:_0x9c8e17,materializeRuntimeSkill:_0x21f400,pruneStaleRuntimeSkillCache:_0x5534af,pruneStaleRuntimeSkillLinks:_0x295487,resolveRuntimeSkillInstallTarget:_0xfe2aaf,reuseMaterializedRuntimeSkill:_0x2299f8}=await import('../../../skills/runtime-skill-sync.js'),_0x22107f=_0x502795[_0x4cdd86(0x19d)](_0x4cdd86(0x19f)),_0x162267=normalizeSyncScopes(_0x502795[_0x4cdd86(0x19d)](_0x4cdd86(0x1bf))),_0x19da63=_0x502795[_0x4cdd86(0x196)]??_0x4cdd86(0x1b8),_0x1493f2=_0x502795[_0x4cdd86(0x1aa)],_0x462686=_0x502795[_0x4cdd86(0x1b4)](_0x4cdd86(0x1a6));if(!_0x1493f2)throw CliErrors[_0x4cdd86(0x19e)](_0x4cdd86(0x1c1));const _0x413ec0=_0xfe2aaf(_0x502795['appCode'],_0x502795[_0x4cdd86(0x1b4)]('project')?'project':_0x4cdd86(0x199)),_0x587cfc=_0xfe2aaf(_0x502795[_0x4cdd86(0x1a8)],_0x413ec0[_0x4cdd86(0x1bf)]===_0x4cdd86(0x1a5)?'global':_0x4cdd86(0x1a5)),_0x4d2081=await _0x2ccde8({'appCode':_0x502795[_0x4cdd86(0x1a8)],'scope':_0x162267[_0x4cdd86(0x194)]===0x1?_0x162267[0x0]:'all','code':_0x22107f[_0x4cdd86(0x1b1)]()||undefined,'installableOnly':!![]}),_0x70b42f=_0x162267[_0x4cdd86(0x19a)]('personal')?_0x4d2081[_0x4cdd86(0x1b3)]:[],_0x26c5e6=_0x162267[_0x4cdd86(0x19a)](_0x4cdd86(0x1b2))?_0x4d2081['company']:[],_0x54af42=new Set([..._0x70b42f[_0x4cdd86(0x1a9)](_0x1f7f14=>_0x1f7f14[_0x4cdd86(0x1b9)]?.[_0x4cdd86(0x1b1)]())['filter'](_0xe071dc=>Boolean(_0xe071dc)),..._0x26c5e6[_0x4cdd86(0x1a9)](_0x48b643=>_0x48b643[_0x4cdd86(0x1b9)]?.[_0x4cdd86(0x1b1)]())[_0x4cdd86(0x1c0)](_0x32e950=>Boolean(_0x32e950))]),_0x5a90a2=_0x22107f[_0x4cdd86(0x1b1)]()?[_0x22107f['trim']()]:undefined,_0x5cd85b=_0x162267['length']===0x2&&_0x162267[_0x4cdd86(0x19a)](_0x4cdd86(0x1b3))&&_0x162267[_0x4cdd86(0x19a)](_0x4cdd86(0x1b2)),_0x3ec877=_0x5cd85b?_0x295487(_0x413ec0,_0x54af42,_0x5a90a2):[],_0x5bbf9f=_0x5534af({'env':_0x19da63,'accessKey':_0x1493f2,'appCode':_0x502795[_0x4cdd86(0x1a8)],'activeSkillCodes':_0x54af42,'pruneSkillCodes':_0x5a90a2,'scopes':_0x162267,'protectedLinkRoots':_0x587cfc[_0x4cdd86(0x1a4)]}),_0x1fc40a=[..._0x70b42f[_0x4cdd86(0x1a9)](_0x19a0fc=>({'skill':_0x19a0fc,'scope':'personal'})),..._0x26c5e6[_0x4cdd86(0x1a9)](_0x1f6292=>({'skill':_0x1f6292,'scope':_0x4cdd86(0x1b2)}))],_0x3f0dfb=await mapConcurrent(_0x1fc40a,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x55661a,scope:_0x161887})=>{const _0x425b17=_0x4cdd86,_0x1ac3b8=_0x2299f8(_0x55661a,_0x161887,{'env':_0x19da63,'accessKey':_0x1493f2,'appCode':_0x502795['appCode']});if(_0x1ac3b8)return _0x1ac3b8;return _0x21f400(_0x55661a,_0x161887,{'env':_0x19da63,'accessKey':_0x1493f2,'appCode':_0x502795[_0x425b17(0x1a8)],'force':_0x462686,'packageBytes':await downloadSkillPackage(_0x55661a,_0x161887,_0x502795[_0x425b17(0x1a8)],_0x1e5819)});}),_0x49bdea=_0x9c8e17(_0x3f0dfb,_0x413ec0),_0x273748=countLinkActions(_0x49bdea);return{'ok':!![],'data':{'appCode':_0x502795['appCode'],..._0x413ec0[_0x4cdd86(0x1bf)]===_0x4cdd86(0x1a5)?{'installTarget':{'scope':_0x413ec0[_0x4cdd86(0x1bf)],'skillRoots':[..._0x413ec0[_0x4cdd86(0x1a4)]]}}:{},'personal':_0x70b42f[_0x4cdd86(0x194)],'company':_0x26c5e6[_0x4cdd86(0x194)],'materialized':_0x3f0dfb[_0x4cdd86(0x194)],'links':{'total':_0x49bdea['length'],'created':_0x273748[_0x4cdd86(0x1a7)]??0x0,'updated':_0x273748[_0x4cdd86(0x1ba)]??0x0,'unchanged':_0x273748[_0x4cdd86(0x1ac)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x3ec877[_0x4cdd86(0x1c0)](_0x620f3e=>_0x620f3e[_0x4cdd86(0x197)]===_0x4cdd86(0x1ab))[_0x4cdd86(0x194)],'cacheDirs':_0x5bbf9f[_0x4cdd86(0x1c0)](_0x296e1f=>_0x296e1f['action']==='removed')[_0x4cdd86(0x194)],'skipped':[..._0x3ec877,..._0x5bbf9f][_0x4cdd86(0x1c0)](_0x213f96=>_0x213f96['action']===_0x4cdd86(0x1b6))[_0x4cdd86(0x194)]},'skills':{'personal':_0x70b42f[_0x4cdd86(0x1a9)](summarizeRuntimeSkill),'company':_0x26c5e6[_0x4cdd86(0x1a9)](summarizeRuntimeSkill)}},'message':_0x4cdd86(0x1c2)+_0x70b42f[_0x4cdd86(0x194)]+_0x4cdd86(0x1af)+_0x26c5e6[_0x4cdd86(0x194)]+_0x4cdd86(0x1b7)};}async function mapConcurrent(_0x540a48,_0x1d245d,_0x22ef71){const _0x1bc4b1=a68_0x955b1f,_0xb08680=new Array(_0x540a48[_0x1bc4b1(0x194)]);let _0x1b3e91=0x0;const _0x400594=Array[_0x1bc4b1(0x1ad)]({'length':Math['min'](_0x1d245d,_0x540a48['length'])},async()=>{const _0x83bcd3=_0x1bc4b1;while(_0x1b3e91<_0x540a48[_0x83bcd3(0x194)]){const _0xab58af=_0x1b3e91;_0x1b3e91+=0x1,_0xb08680[_0xab58af]=await _0x22ef71(_0x540a48[_0xab58af]);}});return await Promise['all'](_0x400594),_0xb08680;}async function downloadSkillPackage(_0x26c19a,_0x1047c7,_0x214bde,_0x415de1){const _0x3c7a9b=a68_0x955b1f,_0x45e780=_0x26c19a[_0x3c7a9b(0x1bd)]?.[_0x3c7a9b(0x1b1)]();return _0x45e780?_0x415de1(_0x1047c7,_0x26c19a[_0x3c7a9b(0x1b9)],_0x214bde,_0x45e780):_0x415de1(_0x1047c7,_0x26c19a[_0x3c7a9b(0x1b9)],_0x214bde);}function countLinkActions(_0x3f8929){const _0x48e419=a68_0x955b1f;return _0x3f8929[_0x48e419(0x1ae)]((_0x5477d4,_0x3d0b90)=>{const _0x4ff27e=_0x48e419;return _0x5477d4[_0x3d0b90[_0x4ff27e(0x197)]]=(_0x5477d4[_0x3d0b90[_0x4ff27e(0x197)]]??0x0)+0x1,_0x5477d4;},{});}
@@ -1 +1 @@
1
- const a69_0x47dfc2=a69_0x2f2e;(function(_0x135a91,_0x5290e6){const _0x59978f=a69_0x2f2e,_0x35693d=_0x135a91();while(!![]){try{const _0x10874c=-parseInt(_0x59978f(0x123))/0x1+parseInt(_0x59978f(0x126))/0x2+-parseInt(_0x59978f(0x133))/0x3+-parseInt(_0x59978f(0x12a))/0x4*(parseInt(_0x59978f(0x135))/0x5)+-parseInt(_0x59978f(0x11f))/0x6*(-parseInt(_0x59978f(0x119))/0x7)+parseInt(_0x59978f(0x11d))/0x8*(-parseInt(_0x59978f(0x11c))/0x9)+parseInt(_0x59978f(0x12c))/0xa;if(_0x10874c===_0x5290e6)break;else _0x35693d['push'](_0x35693d['shift']());}catch(_0xfd5485){_0x35693d['push'](_0x35693d['shift']());}}}(a69_0x376b,0xaedc1));function a69_0x376b(){const _0x29b129=['trim','project','9KuKyYF','4640968jDrBsO','personal','6494928UDRnhv','appCode','length','map','647606XPorbA','remote','global','2237250zqqsEk','../../../skills/runtime-skill-sync.js','company','code','620qBZGZk','Listed\x20','14937360JLUdtB','local','bool','filter','production','str','scope','1040256LqIoAI','\x20remote\x20Skill(s).','45295WvEDJC','accessKey','\x20local\x20Skill(s).','envName','list','7jqWVWm'];a69_0x376b=function(){return _0x29b129;};return a69_0x376b();}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a69_0x2f2e(_0x383d2f,_0xf9a9a0){_0x383d2f=_0x383d2f-0x118;const _0x376b07=a69_0x376b();let _0x2f2ec2=_0x376b07[_0x383d2f];return _0x2f2ec2;}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a69_0x47dfc2(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'(_0x5d0b21){const _0x277623=a69_0x47dfc2,_0x155b11=_0x5d0b21[_0x277623(0x131)](_0x277623(0x129)),_0x1a0c5e=normalizeListScope(_0x5d0b21[_0x277623(0x131)]('scope'));if(_0x5d0b21[_0x277623(0x12e)](_0x277623(0x12d))){const _0x13de4f=_0x5d0b21[_0x277623(0x136)];if(!_0x13de4f)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x195055,resolveRuntimeSkillInstallTarget:_0x9dc408}=await import(_0x277623(0x127)),_0x397cc2=_0x9dc408(_0x5d0b21[_0x277623(0x120)],_0x5d0b21[_0x277623(0x12e)](_0x277623(0x11b))?_0x277623(0x11b):_0x277623(0x125)),_0x5d9bdd=_0x195055({'env':_0x5d0b21[_0x277623(0x138)]??_0x277623(0x130),'accessKey':_0x13de4f,'appCode':_0x5d0b21[_0x277623(0x120)],'scopes':listScopeToRuntimeScopes(_0x1a0c5e),'code':_0x155b11[_0x277623(0x11a)]()||undefined},_0x397cc2),_0x45dad0=groupLocalRuntimeSkills(_0x5d9bdd);return{'ok':!![],'data':{'appCode':_0x5d0b21['appCode'],'source':_0x277623(0x12d),..._0x397cc2[_0x277623(0x132)]===_0x277623(0x11b)?{'installScope':_0x397cc2['scope']}:{},'scope':_0x1a0c5e,'total':_0x5d9bdd[_0x277623(0x121)],'personal':_0x45dad0['personal'][_0x277623(0x121)],'company':_0x45dad0[_0x277623(0x128)][_0x277623(0x121)],'items':_0x5d9bdd[_0x277623(0x122)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x45dad0['personal'][_0x277623(0x122)](summarizeLocalRuntimeSkill),'company':_0x45dad0[_0x277623(0x128)][_0x277623(0x122)](summarizeLocalRuntimeSkill)}},'message':_0x277623(0x12b)+_0x5d9bdd[_0x277623(0x121)]+_0x277623(0x137)};}const {listRuntimeSkills:_0x5d931c}=await import('../../../core/api-client.js'),_0x2bf188=await _0x5d931c({'appCode':_0x5d0b21['appCode'],'scope':listScopeToRemoteScope(_0x1a0c5e),'code':_0x155b11[_0x277623(0x11a)]()||undefined}),_0x396723=shouldListScope(_0x1a0c5e,_0x277623(0x11e))?_0x2bf188[_0x277623(0x11e)]??[]:[],_0x2ec570=shouldListScope(_0x1a0c5e,'company')?_0x2bf188[_0x277623(0x128)]??[]:[],_0x24c4b5=[..._0x396723,..._0x2ec570];return{'ok':!![],'data':{'appCode':_0x5d0b21[_0x277623(0x120)],'source':_0x277623(0x124),'scope':_0x1a0c5e,'total':_0x24c4b5['length'],'personal':_0x396723[_0x277623(0x121)],'company':_0x2ec570[_0x277623(0x121)],'items':_0x24c4b5[_0x277623(0x122)](summarizeRuntimeSkill),'skills':{'personal':_0x396723[_0x277623(0x122)](summarizeRuntimeSkill),'company':_0x2ec570['map'](summarizeRuntimeSkill)}},'message':_0x277623(0x12b)+_0x24c4b5[_0x277623(0x121)]+_0x277623(0x134)};}};function groupLocalRuntimeSkills(_0x52a67a){const _0x51a4bb=a69_0x47dfc2;return{'personal':_0x52a67a[_0x51a4bb(0x12f)](_0x1406f9=>_0x1406f9[_0x51a4bb(0x132)]===_0x51a4bb(0x11e)),'company':_0x52a67a['filter'](_0x2cb62e=>_0x2cb62e['scope']===_0x51a4bb(0x128)),'builtin':_0x52a67a['filter'](_0x4433c3=>_0x4433c3[_0x51a4bb(0x132)]==='builtin')};}
1
+ const a69_0x2af84c=a69_0x32b5;(function(_0x21d859,_0x424b37){const _0x3c97af=a69_0x32b5,_0x4d53d0=_0x21d859();while(!![]){try{const _0x349910=parseInt(_0x3c97af(0x1df))/0x1+-parseInt(_0x3c97af(0x1ce))/0x2*(-parseInt(_0x3c97af(0x1d2))/0x3)+parseInt(_0x3c97af(0x1dc))/0x4+parseInt(_0x3c97af(0x1cf))/0x5*(-parseInt(_0x3c97af(0x1e0))/0x6)+-parseInt(_0x3c97af(0x1e8))/0x7*(-parseInt(_0x3c97af(0x1d0))/0x8)+parseInt(_0x3c97af(0x1ec))/0x9+-parseInt(_0x3c97af(0x1eb))/0xa;if(_0x349910===_0x424b37)break;else _0x4d53d0['push'](_0x4d53d0['shift']());}catch(_0x4e3983){_0x4d53d0['push'](_0x4d53d0['shift']());}}}(a69_0x2553,0xa2d0f));function a69_0x32b5(_0xaa7866,_0x262c55){_0xaa7866=_0xaa7866-0x1cc;const _0x255345=a69_0x2553();let _0x32b560=_0x255345[_0xaa7866];return _0x32b560;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a69_0x2af84c(0x1cc),'command':a69_0x2af84c(0x1ea),'description':a69_0x2af84c(0x1e6),'risk':a69_0x2af84c(0x1e2),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x4bbbf4){const _0x14ad13=a69_0x2af84c,_0x2283a9=_0x4bbbf4[_0x14ad13(0x1d5)]('code'),_0x112153=normalizeListScope(_0x4bbbf4[_0x14ad13(0x1d5)](_0x14ad13(0x1d7)));if(_0x4bbbf4['bool']('local')){const _0x2cb80a=_0x4bbbf4['accessKey'];if(!_0x2cb80a)throw CliErrors[_0x14ad13(0x1db)]();const {listLocalRuntimeSkills:_0x4617f5,resolveRuntimeSkillInstallTarget:_0x1af9e2}=await import(_0x14ad13(0x1d8)),_0x546198=_0x1af9e2(_0x4bbbf4[_0x14ad13(0x1d6)],_0x4bbbf4['bool']('project')?_0x14ad13(0x1ed):_0x14ad13(0x1da)),_0xb3a3e8=_0x4617f5({'env':_0x4bbbf4[_0x14ad13(0x1e4)]??_0x14ad13(0x1e5),'accessKey':_0x2cb80a,'appCode':_0x4bbbf4[_0x14ad13(0x1d6)],'scopes':listScopeToRuntimeScopes(_0x112153),'code':_0x2283a9[_0x14ad13(0x1e9)]()||undefined},_0x546198),_0x13fab4=groupLocalRuntimeSkills(_0xb3a3e8);return{'ok':!![],'data':{'appCode':_0x4bbbf4[_0x14ad13(0x1d6)],'source':_0x14ad13(0x1e7),..._0x546198[_0x14ad13(0x1d7)]===_0x14ad13(0x1ed)?{'installScope':_0x546198['scope']}:{},'scope':_0x112153,'total':_0xb3a3e8[_0x14ad13(0x1d9)],'personal':_0x13fab4['personal'][_0x14ad13(0x1d9)],'company':_0x13fab4[_0x14ad13(0x1de)][_0x14ad13(0x1d9)],'items':_0xb3a3e8[_0x14ad13(0x1d1)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x13fab4[_0x14ad13(0x1d4)][_0x14ad13(0x1d1)](summarizeLocalRuntimeSkill),'company':_0x13fab4[_0x14ad13(0x1de)][_0x14ad13(0x1d1)](summarizeLocalRuntimeSkill)}},'message':_0x14ad13(0x1d3)+_0xb3a3e8[_0x14ad13(0x1d9)]+_0x14ad13(0x1e1)};}const {listRuntimeSkills:_0x3ff88a}=await import(_0x14ad13(0x1dd)),_0x283ab7=await _0x3ff88a({'appCode':_0x4bbbf4[_0x14ad13(0x1d6)],'scope':listScopeToRemoteScope(_0x112153),'code':_0x2283a9[_0x14ad13(0x1e9)]()||undefined}),_0x2583c8=shouldListScope(_0x112153,_0x14ad13(0x1d4))?_0x283ab7[_0x14ad13(0x1d4)]??[]:[],_0x1a5839=shouldListScope(_0x112153,'company')?_0x283ab7[_0x14ad13(0x1de)]??[]:[],_0x427add=[..._0x2583c8,..._0x1a5839];return{'ok':!![],'data':{'appCode':_0x4bbbf4['appCode'],'source':'remote','scope':_0x112153,'total':_0x427add[_0x14ad13(0x1d9)],'personal':_0x2583c8[_0x14ad13(0x1d9)],'company':_0x1a5839[_0x14ad13(0x1d9)],'items':_0x427add[_0x14ad13(0x1d1)](summarizeRuntimeSkill),'skills':{'personal':_0x2583c8[_0x14ad13(0x1d1)](summarizeRuntimeSkill),'company':_0x1a5839['map'](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x427add[_0x14ad13(0x1d9)]+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x2cda11){const _0x9abc8f=a69_0x2af84c;return{'personal':_0x2cda11[_0x9abc8f(0x1cd)](_0x2f02ad=>_0x2f02ad[_0x9abc8f(0x1d7)]===_0x9abc8f(0x1d4)),'company':_0x2cda11[_0x9abc8f(0x1cd)](_0x32fb93=>_0x32fb93[_0x9abc8f(0x1d7)]===_0x9abc8f(0x1de)),'builtin':_0x2cda11['filter'](_0x961619=>_0x961619[_0x9abc8f(0x1d7)]===_0x9abc8f(0x1e3))};}function a69_0x2553(){const _0x171e21=['scope','../../../skills/runtime-skill-sync.js','length','global','authRequired','955884AGHfHT','../../../core/api-client.js','company','317027tInXbP','3998460GvSbEM','\x20local\x20Skill(s).','read','builtin','envName','production','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','local','7zeWuSE','trim','list','8996960zAfKmE','5522364MCvnue','project','skill','filter','212qVqhoQ','5vaKWLz','8497928wAwMVQ','map','33yqneXg','Listed\x20','personal','str','appCode'];a69_0x2553=function(){return _0x171e21;};return a69_0x2553();}
@@ -1 +1 @@
1
- function a70_0x2512(){const _0x3feac7=['388465MyJNmA','343472rfQsAi','556660kzHOqc','skill','287904qwAdsv','40553wurtFy','24kyKtfq','push','2837034yMkoVm','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','35jiCdgb','1057725NlKpAq'];a70_0x2512=function(){return _0x3feac7;};return a70_0x2512();}const a70_0x4534c5=a70_0x5bec;function a70_0x5bec(_0x40e733,_0x70e299){_0x40e733=_0x40e733-0x157;const _0x251203=a70_0x2512();let _0x5bec85=_0x251203[_0x40e733];return _0x5bec85;}(function(_0x20d785,_0x44360e){const _0x2ec298=a70_0x5bec,_0x4096a7=_0x20d785();while(!![]){try{const _0x255045=-parseInt(_0x2ec298(0x158))/0x1+-parseInt(_0x2ec298(0x161))/0x2+parseInt(_0x2ec298(0x15e))/0x3+-parseInt(_0x2ec298(0x157))/0x4+-parseInt(_0x2ec298(0x15f))/0x5*(parseInt(_0x2ec298(0x159))/0x6)+parseInt(_0x2ec298(0x15d))/0x7*(parseInt(_0x2ec298(0x160))/0x8)+parseInt(_0x2ec298(0x15b))/0x9;if(_0x255045===_0x44360e)break;else _0x4096a7['push'](_0x4096a7['shift']());}catch(_0x3a3ce6){_0x4096a7['push'](_0x4096a7['shift']());}}}(a70_0x2512,0x2c268));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':a70_0x4534c5(0x162),'command':a70_0x4534c5(0x15a),'description':a70_0x4534c5(0x15c),'risk':'write','confirmationDescription':'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.','flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a70_0x3c9810=a70_0x5543;function a70_0x5543(_0x55449b,_0x3e0639){_0x55449b=_0x55449b-0x1c3;const _0x55c7a7=a70_0x55c7();let _0x554320=_0x55c7a7[_0x55449b];return _0x554320;}function a70_0x55c7(){const _0x7ba8de=['2170KJHbMp','2pHJSyP','508676IzossL','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','5499360fBCFaG','1454898agiuJS','40644WisQte','write','12GIUWsj','939630PnwQlo','10547482QrhNVS','8GfYvfK','35vZWkgw','2350355LQZYoh','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.'];a70_0x55c7=function(){return _0x7ba8de;};return a70_0x55c7();}(function(_0x45ea00,_0x3b54cc){const _0x74bb55=a70_0x5543,_0x346b06=_0x45ea00();while(!![]){try{const _0x34b697=parseInt(_0x74bb55(0x1c7))/0x1+parseInt(_0x74bb55(0x1c6))/0x2*(parseInt(_0x74bb55(0x1ca))/0x3)+parseInt(_0x74bb55(0x1d0))/0x4*(-parseInt(_0x74bb55(0x1c3))/0x5)+-parseInt(_0x74bb55(0x1ce))/0x6*(parseInt(_0x74bb55(0x1d1))/0x7)+-parseInt(_0x74bb55(0x1c9))/0x8+parseInt(_0x74bb55(0x1cb))/0x9*(parseInt(_0x74bb55(0x1c5))/0xa)+parseInt(_0x74bb55(0x1cf))/0xb*(parseInt(_0x74bb55(0x1cd))/0xc);if(_0x34b697===_0x3b54cc)break;else _0x346b06['push'](_0x346b06['shift']());}catch(_0x382bcd){_0x346b06['push'](_0x346b06['shift']());}}}(a70_0x55c7,0x7f6a1));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':'skill','command':'push','description':a70_0x3c9810(0x1c8),'risk':a70_0x3c9810(0x1cc),'confirmationDescription':a70_0x3c9810(0x1c4),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a71_0x3769c8=a71_0x675a;(function(_0x46a986,_0x485b5b){const _0x4cec2a=a71_0x675a,_0x5be3eb=_0x46a986();while(!![]){try{const _0x31e832=-parseInt(_0x4cec2a(0xdd))/0x1+parseInt(_0x4cec2a(0xe5))/0x2+-parseInt(_0x4cec2a(0xe9))/0x3+-parseInt(_0x4cec2a(0xe4))/0x4*(parseInt(_0x4cec2a(0xe1))/0x5)+parseInt(_0x4cec2a(0xea))/0x6+-parseInt(_0x4cec2a(0xec))/0x7+parseInt(_0x4cec2a(0xe2))/0x8;if(_0x31e832===_0x485b5b)break;else _0x5be3eb['push'](_0x5be3eb['shift']());}catch(_0x4c3a58){_0x5be3eb['push'](_0x5be3eb['shift']());}}}(a71_0x2a03,0xe36fb));function a71_0x675a(_0x4928f4,_0x59cdd4){_0x4928f4=_0x4928f4-0xdb;const _0x2a0364=a71_0x2a03();let _0x675ae7=_0x2a0364[_0x4928f4];return _0x675ae7;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a71_0x2a03(){const _0x4a7800=['errors','str','type','46165PTIrnq','27143336nsNZDg','bool','180OuVFSy','1062056odfXkM','skill','strict','dir','2235072JnxJAB','7386744RMNbrf','Skill\x20validation\x20passed.','10776542RKxCLg','validate','read','warnings','1523475PfIsgk'];a71_0x2a03=function(){return _0x4a7800;};return a71_0x2a03();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a71_0x3769c8(0xe6),'command':a71_0x3769c8(0xed),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a71_0x3769c8(0xdb),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x1e0499){const _0x30925c=a71_0x3769c8,_0xa7ee8c=_0x1e0499[_0x30925c(0xe3)](_0x30925c(0xe7)),_0x1219aa=validateSkillDirectory(_0x1e0499[_0x30925c(0xdf)](_0x30925c(0xe8)),{'strict':_0xa7ee8c});return throwIfSkillValidationFailed(_0x1219aa,_0xa7ee8c),{'ok':!![],'data':{'dir':_0x1219aa['dir'],'type':_0x1219aa[_0x30925c(0xe0)],'errors':_0x1219aa[_0x30925c(0xde)],'warnings':_0x1219aa[_0x30925c(0xdc)]},'message':_0x30925c(0xeb)};}};
1
+ const a71_0x142286=a71_0x76ed;function a71_0x76ed(_0x2180a5,_0x2ec844){_0x2180a5=_0x2180a5-0xb2;const _0x26075b=a71_0x2607();let _0x76ed10=_0x26075b[_0x2180a5];return _0x76ed10;}(function(_0x595f90,_0x2ccf1d){const _0x3ec9cb=a71_0x76ed,_0x18e41c=_0x595f90();while(!![]){try{const _0x116e17=-parseInt(_0x3ec9cb(0xbf))/0x1+-parseInt(_0x3ec9cb(0xbc))/0x2+parseInt(_0x3ec9cb(0xbe))/0x3+parseInt(_0x3ec9cb(0xc2))/0x4*(parseInt(_0x3ec9cb(0xb8))/0x5)+-parseInt(_0x3ec9cb(0xb9))/0x6*(parseInt(_0x3ec9cb(0xc5))/0x7)+-parseInt(_0x3ec9cb(0xc0))/0x8*(parseInt(_0x3ec9cb(0xba))/0x9)+parseInt(_0x3ec9cb(0xb7))/0xa*(parseInt(_0x3ec9cb(0xb4))/0xb);if(_0x116e17===_0x2ccf1d)break;else _0x18e41c['push'](_0x18e41c['shift']());}catch(_0x1eb760){_0x18e41c['push'](_0x18e41c['shift']());}}}(a71_0x2607,0xa62f6));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a71_0x2607(){const _0x49e5fb=['1314012eILfdA','4024ViHomg','read','116344gNbgGQ','strict','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','609JmebsY','validate','str','skill','23870tsjDer','Skill\x20validation\x20passed.','warnings','17270CiMoRg','70XHdAcX','15618IJrpoz','15642QyCxdC','bool','2640128NQwjir','errors','781953VYOznh'];a71_0x2607=function(){return _0x49e5fb;};return a71_0x2607();}export const validateCommand={'service':a71_0x142286(0xb3),'command':a71_0x142286(0xc6),'description':a71_0x142286(0xc4),'risk':a71_0x142286(0xc1),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x57a8ed){const _0x1770bc=a71_0x142286,_0x37830c=_0x57a8ed[_0x1770bc(0xbb)](_0x1770bc(0xc3)),_0x126f05=validateSkillDirectory(_0x57a8ed[_0x1770bc(0xb2)]('dir'),{'strict':_0x37830c});return throwIfSkillValidationFailed(_0x126f05,_0x37830c),{'ok':!![],'data':{'dir':_0x126f05['dir'],'type':_0x126f05['type'],'errors':_0x126f05[_0x1770bc(0xbd)],'warnings':_0x126f05[_0x1770bc(0xb6)]},'message':_0x1770bc(0xb5)};}};
@@ -1 +1 @@
1
- function a72_0x13ff(_0x34a7b6,_0x1c21b5){_0x34a7b6=_0x34a7b6-0x1c9;const _0x3debe1=a72_0x3deb();let _0x13ffb5=_0x3debe1[_0x34a7b6];return _0x13ffb5;}(function(_0x247c6c,_0x1095e7){const _0x189730=a72_0x13ff,_0x2d9019=_0x247c6c();while(!![]){try{const _0x2c992f=-parseInt(_0x189730(0x1ca))/0x1*(-parseInt(_0x189730(0x1e2))/0x2)+parseInt(_0x189730(0x1d7))/0x3+parseInt(_0x189730(0x1c9))/0x4+parseInt(_0x189730(0x1d3))/0x5+-parseInt(_0x189730(0x1da))/0x6+-parseInt(_0x189730(0x1e3))/0x7*(-parseInt(_0x189730(0x1d8))/0x8)+-parseInt(_0x189730(0x1d6))/0x9*(parseInt(_0x189730(0x1de))/0xa);if(_0x2c992f===_0x1095e7)break;else _0x2d9019['push'](_0x2d9019['shift']());}catch(_0x4a407c){_0x2d9019['push'](_0x2d9019['shift']());}}}(a72_0x3deb,0x5707d));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a72_0x3deb(){const _0x4893f5=['1820880oIMuLT','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','9meeFzj','1064010jzDwqJ','488ZnJYza','utf8','3082578brDXnp','window','parse','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','13226330qDPPVY','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','Mermaid\x20syntax\x20validation\x20failed.','diagram','842PYBRuC','59738VmlaMP','1946256wfSeLw','1109zdogkw','isFile','validation','replace','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','document','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','default','defineProperties'];a72_0x3deb=function(){return _0x4893f5;};return a72_0x3deb();}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x3ca408){const _0x305587=a72_0x13ff;return(await readRequiredSkillDiagramInput(_0x3ca408))[_0x305587(0x1e1)];}export async function readRequiredSkillDiagramInput(_0x20e56a){const _0x45a34d=a72_0x13ff,_0xad7200=_0x20e56a['trim']();if(!_0xad7200)throw CliErrors['validation'](_0x45a34d(0x1d0),_0x45a34d(0x1dd));let _0x22daaa,_0x50ea81;if(_0xad7200==='-')try{_0x22daaa=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x45a34d(0x1cc)](_0x45a34d(0x1ce));}else{const _0x17ddd3=resolve(_0xad7200);if(!existsSync(_0x17ddd3))throw CliErrors['validation'](_0x45a34d(0x1d4)+_0x17ddd3);if(!statSync(_0x17ddd3)[_0x45a34d(0x1cb)]())throw CliErrors['validation'](_0x45a34d(0x1d5)+_0x17ddd3);_0x50ea81=realpathSync(_0x17ddd3),_0x22daaa=readFileSync(_0x50ea81,_0x45a34d(0x1d9));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x22daaa)},'sourceFilePath':_0x50ea81};}export async function validateAndCanonicalizeMermaid(_0x3268fb){const _0x1989e3=a72_0x13ff,_0x1c0d86=_0x3268fb[_0x1989e3(0x1cd)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x1989e3(0x1cd)](/\n+$/,'')+'\x0a';try{const _0x22cdae=await loadMermaidApi();await _0x22cdae[_0x1989e3(0x1dc)](_0x1c0d86);}catch{throw diagramValidationError();}return _0x1c0d86;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x18ba9d=a72_0x13ff;if(!(_0x18ba9d(0x1db)in globalThis)||!(_0x18ba9d(0x1cf)in globalThis)){const _0x13582a=new JSDOM('');Object[_0x18ba9d(0x1d2)](globalThis,{'window':{'configurable':!![],'value':_0x13582a['window']},'document':{'configurable':!![],'value':_0x13582a[_0x18ba9d(0x1db)][_0x18ba9d(0x1cf)]}});}return(await import('mermaid'))[_0x18ba9d(0x1d1)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x549ce2=a72_0x13ff;return CliErrors[_0x549ce2(0x1cc)](_0x549ce2(0x1e0),_0x549ce2(0x1df));}
1
+ (function(_0x3f8bfa,_0x5d8349){const _0x11ec7e=a72_0x4bd5,_0x4ffa99=_0x3f8bfa();while(!![]){try{const _0x175957=parseInt(_0x11ec7e(0xcf))/0x1+-parseInt(_0x11ec7e(0xd4))/0x2+-parseInt(_0x11ec7e(0xd6))/0x3*(parseInt(_0x11ec7e(0xdb))/0x4)+-parseInt(_0x11ec7e(0xd1))/0x5+parseInt(_0x11ec7e(0xd3))/0x6*(parseInt(_0x11ec7e(0xe4))/0x7)+-parseInt(_0x11ec7e(0xd2))/0x8*(-parseInt(_0x11ec7e(0xdd))/0x9)+parseInt(_0x11ec7e(0xe0))/0xa;if(_0x175957===_0x5d8349)break;else _0x4ffa99['push'](_0x4ffa99['shift']());}catch(_0x543042){_0x4ffa99['push'](_0x4ffa99['shift']());}}}(a72_0x5cc9,0x64c13));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a72_0x5cc9(){const _0x2df047=['trim','parse','324589UaNFYy','mermaid','3321900suDBJw','1487912APmpib','72foVTBp','1510188ctXWgL','default','3QPGWlL','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','validation','utf8','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','1559492DWeeSx','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','9GpTCGJ','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','defineProperties','14324240qCNPGK','document','isFile','replace','162771XYmBuK','Mermaid\x20syntax\x20validation\x20failed.','window','diagram'];a72_0x5cc9=function(){return _0x2df047;};return a72_0x5cc9();}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x40e8e0){const _0x39804e=a72_0x4bd5;return(await readRequiredSkillDiagramInput(_0x40e8e0))[_0x39804e(0xcc)];}export async function readRequiredSkillDiagramInput(_0x402cf6){const _0x1fd643=a72_0x4bd5,_0x3d7760=_0x402cf6[_0x1fd643(0xcd)]();if(!_0x3d7760)throw CliErrors[_0x1fd643(0xd8)](_0x1fd643(0xd7),_0x1fd643(0xde));let _0x2e3143,_0x332d2e;if(_0x3d7760==='-')try{_0x2e3143=readFileSync(0x0,_0x1fd643(0xd9));}catch{throw CliErrors[_0x1fd643(0xd8)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0x2c7343=resolve(_0x3d7760);if(!existsSync(_0x2c7343))throw CliErrors[_0x1fd643(0xd8)](_0x1fd643(0xdc)+_0x2c7343);if(!statSync(_0x2c7343)[_0x1fd643(0xe2)]())throw CliErrors[_0x1fd643(0xd8)](_0x1fd643(0xda)+_0x2c7343);_0x332d2e=realpathSync(_0x2c7343),_0x2e3143=readFileSync(_0x332d2e,_0x1fd643(0xd9));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x2e3143)},'sourceFilePath':_0x332d2e};}export async function validateAndCanonicalizeMermaid(_0x291929){const _0x2922cf=a72_0x4bd5,_0x46f0b9=_0x291929[_0x2922cf(0xe3)](/\r\n/g,'\x0a')[_0x2922cf(0xe3)](/\r/g,'\x0a')[_0x2922cf(0xe3)](/\n+$/,'')+'\x0a';try{const _0x5b90a0=await loadMermaidApi();await _0x5b90a0[_0x2922cf(0xce)](_0x46f0b9);}catch{throw diagramValidationError();}return _0x46f0b9;}function a72_0x4bd5(_0x118f87,_0x3e1c24){_0x118f87=_0x118f87-0xca;const _0x5cc9c0=a72_0x5cc9();let _0x4bd518=_0x5cc9c0[_0x118f87];return _0x4bd518;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x367f4a=a72_0x4bd5;if(!(_0x367f4a(0xcb)in globalThis)||!(_0x367f4a(0xe1)in globalThis)){const _0x2aefb0=new JSDOM('');Object[_0x367f4a(0xdf)](globalThis,{'window':{'configurable':!![],'value':_0x2aefb0['window']},'document':{'configurable':!![],'value':_0x2aefb0[_0x367f4a(0xcb)][_0x367f4a(0xe1)]}});}return(await import(_0x367f4a(0xd0)))[_0x367f4a(0xd5)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x5bbdaa=a72_0x4bd5;return CliErrors[_0x5bbdaa(0xd8)](_0x5bbdaa(0xca),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -1 +1 @@
1
- const a73_0xff379=a73_0x5b90;(function(_0xb2513e,_0x5213a8){const _0x2ddda0=a73_0x5b90,_0x388f6b=_0xb2513e();while(!![]){try{const _0x368f09=-parseInt(_0x2ddda0(0xee))/0x1*(parseInt(_0x2ddda0(0x10b))/0x2)+-parseInt(_0x2ddda0(0x10a))/0x3*(parseInt(_0x2ddda0(0xfe))/0x4)+parseInt(_0x2ddda0(0x111))/0x5+parseInt(_0x2ddda0(0xf9))/0x6*(parseInt(_0x2ddda0(0x10e))/0x7)+-parseInt(_0x2ddda0(0x107))/0x8+parseInt(_0x2ddda0(0xf7))/0x9*(parseInt(_0x2ddda0(0xf8))/0xa)+parseInt(_0x2ddda0(0xec))/0xb*(parseInt(_0x2ddda0(0x112))/0xc);if(_0x368f09===_0x5213a8)break;else _0x388f6b['push'](_0x388f6b['shift']());}catch(_0x227d2c){_0x388f6b['push'](_0x388f6b['shift']());}}}(a73_0x4e68,0x37574));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a73_0x5b90(_0x1f1bf0,_0x40908b){_0x1f1bf0=_0x1f1bf0-0xec;const _0x4e68af=a73_0x4e68();let _0x5b9080=_0x4e68af[_0x1f1bf0];return _0x5b9080;}export const CODE_FLAG={'name':'code','type':a73_0xff379(0xf1),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':'string','description':a73_0xff379(0x100),'enum':[a73_0xff379(0x10d),a73_0xff379(0xfa),a73_0xff379(0xf3)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a73_0xff379(0xf1),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a73_0xff379(0xfa),'enum':[a73_0xff379(0xfa),'company']};export const LIST_SCOPE_FLAG={'name':a73_0xff379(0xed),'type':a73_0xff379(0xf1),'description':a73_0xff379(0x10f),'enum':['all',a73_0xff379(0xfa),a73_0xff379(0xf3)]};export const LOCAL_FLAG={'name':'local','type':a73_0xff379(0x105),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a73_0xff379(0xf1),'required':!![],'description':a73_0xff379(0x114)};export const DIAGRAM_FILE_FLAG={'name':a73_0xff379(0xf2),'type':a73_0xff379(0xf1),'required':!![],'description':a73_0xff379(0x108)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a73_0xff379(0x102),'type':a73_0xff379(0xf1),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a73_0xff379(0xf6),'type':'string','required':!![],'description':a73_0xff379(0x101)};export const DIAGRAM_SCOPE_FLAG={'name':'scope','type':a73_0xff379(0xf1),'required':!![],'enum':[a73_0xff379(0xfa),'company'],'description':a73_0xff379(0xfc)};export const SOURCE_FINGERPRINT_FLAG={'name':a73_0xff379(0xf0),'type':'string','required':!![],'description':a73_0xff379(0xff),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a73_0xff379(0xef),'type':a73_0xff379(0xfb),'required':!![],'description':a73_0xff379(0x10c)};export const CREATE_NAME_FLAG={'name':'name','type':a73_0xff379(0xf1),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':'type','type':a73_0xff379(0xf1),'description':a73_0xff379(0xf5),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':'string','description':a73_0xff379(0xfd),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0xff379(0x106),'type':a73_0xff379(0x105),'description':a73_0xff379(0x109)};export const PROJECT_TARGET_FLAG={'name':a73_0xff379(0x113),'type':a73_0xff379(0x105),'description':a73_0xff379(0x104)};export const CONFIRM_WARNINGS_FLAG={'name':a73_0xff379(0xf4),'type':a73_0xff379(0x105),'description':a73_0xff379(0x110)};function a73_0x4e68(){const _0x2363cc=['Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','1917385VXSpwU','12WTKhgN','project','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1541474WfROkT','scope','395539ixiTJh','expected-diagram-revision','source-fingerprint','string','diagram-file','company','confirm-warnings','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','version','9WJyyUL','274150TrsgZu','908028zOpnVF','personal','number','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','4VemkIV','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','skill-code','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','boolean','force','611520NDeTwu','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','11127tMTEJQ','2KFbyYc','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','all','7OMheeQ','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x4e68=function(){return _0x2363cc;};return a73_0x4e68();}export const STRICT_FLAG={'name':'strict','type':a73_0xff379(0x105),'description':a73_0xff379(0x103)};
1
+ const a73_0x475558=a73_0x359f;(function(_0x3bc0e6,_0xd1e23c){const _0x5f3e2b=a73_0x359f,_0x5e0a2e=_0x3bc0e6();while(!![]){try{const _0x71d84c=-parseInt(_0x5f3e2b(0x8e))/0x1*(-parseInt(_0x5f3e2b(0xac))/0x2)+-parseInt(_0x5f3e2b(0xb0))/0x3+parseInt(_0x5f3e2b(0xa9))/0x4+-parseInt(_0x5f3e2b(0xae))/0x5*(-parseInt(_0x5f3e2b(0xa3))/0x6)+parseInt(_0x5f3e2b(0xa2))/0x7+parseInt(_0x5f3e2b(0x91))/0x8*(parseInt(_0x5f3e2b(0x9b))/0x9)+-parseInt(_0x5f3e2b(0x8f))/0xa;if(_0x71d84c===_0xd1e23c)break;else _0x5e0a2e['push'](_0x5e0a2e['shift']());}catch(_0x239dd7){_0x5e0a2e['push'](_0x5e0a2e['shift']());}}}(a73_0x8f31,0x210cd));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a73_0x475558(0xa5),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a73_0x475558(0x95),'type':'string','description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a73_0x475558(0x9f),a73_0x475558(0x99),a73_0x475558(0x96)]};export const PUSH_SCOPE_FLAG={'name':a73_0x475558(0x95),'type':'string','description':a73_0x475558(0x94),'default':a73_0x475558(0x99),'enum':['personal',a73_0x475558(0x96)]};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a73_0x475558(0x98),'enum':[a73_0x475558(0x9f),a73_0x475558(0x99),a73_0x475558(0x96)]};export const LOCAL_FLAG={'name':a73_0x475558(0x9a),'type':a73_0x475558(0x90),'description':a73_0x475558(0x97)};export const DIR_FLAG={'name':a73_0x475558(0x89),'type':a73_0x475558(0xa5),'required':!![],'description':a73_0x475558(0xa0)};function a73_0x8f31(){const _0xfb370b=['personal','local','234vewOxq','strict','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','all','Local\x20Skill\x20directory\x20containing\x20SKILL.md','version','630511IxMGDF','812910TJpbzI','confirm-warnings','string','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','name','target','147556UlSRHG','expected-diagram-revision','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','77134qLsHOV','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','5oxLkLj','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','586437ySukTy','diagram-file','project','dir','force','number','type','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','3HBMpKP','476600YGMJZD','boolean','112WYOisR','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','scope','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x8f31=function(){return _0xfb370b;};return a73_0x8f31();}export const DIAGRAM_FILE_FLAG={'name':a73_0x475558(0x87),'type':'string','required':!![],'description':'UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin'};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a73_0x475558(0xa5),'required':!![],'description':a73_0x475558(0xaf)};export const DIAGRAM_VERSION_FLAG={'name':a73_0x475558(0xa1),'type':a73_0x475558(0xa5),'required':!![],'description':a73_0x475558(0xa6)};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x475558(0x95),'type':a73_0x475558(0xa5),'required':!![],'enum':[a73_0x475558(0x99),'company'],'description':a73_0x475558(0x9e)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':'string','required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x475558(0x92)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a73_0x475558(0xaa),'type':a73_0x475558(0x8b),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a73_0x475558(0xa7),'type':'string','required':!![],'description':a73_0x475558(0x93),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a73_0x475558(0x8d)}};export const TYPE_FLAG={'name':a73_0x475558(0x8c),'type':a73_0x475558(0xa5),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};function a73_0x359f(_0x3d19d8,_0x3135e6){_0x3d19d8=_0x3d19d8-0x87;const _0x8f310a=a73_0x8f31();let _0x359f12=_0x8f310a[_0x3d19d8];return _0x359f12;}export const TARGET_FLAG={'name':a73_0x475558(0xa8),'type':'string','description':a73_0x475558(0xad),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0x475558(0x8a),'type':a73_0x475558(0x90),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':a73_0x475558(0x88),'type':a73_0x475558(0x90),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a73_0x475558(0xa4),'type':a73_0x475558(0x90),'description':a73_0x475558(0xab)};export const STRICT_FLAG={'name':a73_0x475558(0x9c),'type':a73_0x475558(0x90),'description':a73_0x475558(0x9d)};
@@ -1 +1 @@
1
- (function(_0x39ed92,_0x5b6313){const _0xb68b05=a74_0x3531,_0x3afcc1=_0x39ed92();while(!![]){try{const _0x1c22e9=-parseInt(_0xb68b05(0x1e9))/0x1+-parseInt(_0xb68b05(0x1ee))/0x2+-parseInt(_0xb68b05(0x1f0))/0x3*(-parseInt(_0xb68b05(0x1eb))/0x4)+parseInt(_0xb68b05(0x1f1))/0x5+-parseInt(_0xb68b05(0x1f2))/0x6+parseInt(_0xb68b05(0x1ea))/0x7*(parseInt(_0xb68b05(0x1ed))/0x8)+parseInt(_0xb68b05(0x1ef))/0x9*(-parseInt(_0xb68b05(0x1ec))/0xa);if(_0x1c22e9===_0x5b6313)break;else _0x3afcc1['push'](_0x3afcc1['shift']());}catch(_0x125a2b){_0x3afcc1['push'](_0x3afcc1['shift']());}}}(a74_0x4ee9,0x68dd0));function a74_0x3531(_0x5cee02,_0x40c3e3){_0x5cee02=_0x5cee02-0x1e9;const _0x4ee928=a74_0x4ee9();let _0x353189=_0x4ee928[_0x5cee02];return _0x353189;}function a74_0x4ee9(){const _0x3df653=['7noYWIJ','173156dogvZw','242330WrliDo','3340072UahAeJ','674900EtEHXp','63LRUAiI','57JdQcaE','3568020fvvJPC','2386062WWTJoE','619326AKNFHq'];a74_0x4ee9=function(){return _0x3df653;};return a74_0x4ee9();}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ function a74_0x3e38(){const _0x18adc0=['3836480EKnfgu','8351080IrEAsd','28775752xKLBRB','702525dBVTAA','6780744PHvewD','2NFDjjP','709126DcFdWq','1445640HVTdYN'];a74_0x3e38=function(){return _0x18adc0;};return a74_0x3e38();}(function(_0x4cdfd5,_0x60a291){const _0xd1a200=a74_0x237e,_0x14b5fa=_0x4cdfd5();while(!![]){try{const _0x909d85=parseInt(_0xd1a200(0x1cb))/0x1+parseInt(_0xd1a200(0x1ca))/0x2*(-parseInt(_0xd1a200(0x1d0))/0x3)+parseInt(_0xd1a200(0x1cd))/0x4+parseInt(_0xd1a200(0x1ce))/0x5+parseInt(_0xd1a200(0x1d1))/0x6+parseInt(_0xd1a200(0x1cc))/0x7+-parseInt(_0xd1a200(0x1cf))/0x8;if(_0x909d85===_0x60a291)break;else _0x14b5fa['push'](_0x14b5fa['shift']());}catch(_0xdd23f9){_0x14b5fa['push'](_0x14b5fa['shift']());}}}(a74_0x3e38,0xce0ba));function a74_0x237e(_0x33cf17,_0x47eb0f){_0x33cf17=_0x33cf17-0x1ca;const _0x3e384c=a74_0x3e38();let _0x237e3d=_0x3e384c[_0x33cf17];return _0x237e3d;}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x5cb9cd,_0x4e85bd){var _0x291b9a=a75_0x2534,_0x295cc6=_0x5cb9cd();while(!![]){try{var _0x31565e=-parseInt(_0x291b9a(0x87))/0x1*(-parseInt(_0x291b9a(0x84))/0x2)+parseInt(_0x291b9a(0x7e))/0x3*(-parseInt(_0x291b9a(0x85))/0x4)+parseInt(_0x291b9a(0x7d))/0x5*(parseInt(_0x291b9a(0x88))/0x6)+parseInt(_0x291b9a(0x7a))/0x7+-parseInt(_0x291b9a(0x7b))/0x8*(-parseInt(_0x291b9a(0x7c))/0x9)+-parseInt(_0x291b9a(0x8a))/0xa+-parseInt(_0x291b9a(0x7f))/0xb;if(_0x31565e===_0x4e85bd)break;else _0x295cc6['push'](_0x295cc6['shift']());}catch(_0x2fa3e2){_0x295cc6['push'](_0x295cc6['shift']());}}}(a75_0x4644,0xb3d66));export function isPackageBackedManifest(_0x12ba32){var _0x4974f0=a75_0x2534;return!!_0x12ba32&&typeof _0x12ba32===_0x4974f0(0x86)&&!Array[_0x4974f0(0x81)](_0x12ba32)&&typeof _0x12ba32[_0x4974f0(0x83)]===_0x4974f0(0x89)&&_0x12ba32[_0x4974f0(0x83)][_0x4974f0(0x82)]>0x0&&Array[_0x4974f0(0x81)](_0x12ba32[_0x4974f0(0x80)]);}export function isMultiFileManifest(_0x458f8a){var _0x42fa05=a75_0x2534;return!!_0x458f8a&&typeof _0x458f8a===_0x42fa05(0x86)&&!Array[_0x42fa05(0x81)](_0x458f8a)&&Array['isArray'](_0x458f8a[_0x42fa05(0x80)])&&_0x458f8a[_0x42fa05(0x80)]['some'](_0x36bee4=>_0x36bee4['path']!=='SKILL.md');}function a75_0x2534(_0x8e0664,_0x163814){_0x8e0664=_0x8e0664-0x7a;var _0x464482=a75_0x4644();var _0x25345b=_0x464482[_0x8e0664];return _0x25345b;}function a75_0x4644(){var _0x97a6ea=['736622LJHllP','12UwCwOn','object','3InNJMa','2370AkYKjj','string','6135430xAlmVa','2632560mOZkld','6444136kExqMh','9wtRbil','6115Awdjkt','904629MnYZAp','5663119uZpQhC','files','isArray','length','ossPath'];a75_0x4644=function(){return _0x97a6ea;};return a75_0x4644();}
1
+ (function(_0x2bd161,_0x493f51){var _0x34906c=a75_0x4a7b,_0x3388f2=_0x2bd161();while(!![]){try{var _0x1573a7=parseInt(_0x34906c(0x132))/0x1*(parseInt(_0x34906c(0x143))/0x2)+-parseInt(_0x34906c(0x13a))/0x3*(parseInt(_0x34906c(0x13c))/0x4)+parseInt(_0x34906c(0x138))/0x5*(-parseInt(_0x34906c(0x13f))/0x6)+-parseInt(_0x34906c(0x133))/0x7*(-parseInt(_0x34906c(0x139))/0x8)+-parseInt(_0x34906c(0x137))/0x9*(-parseInt(_0x34906c(0x142))/0xa)+-parseInt(_0x34906c(0x13e))/0xb*(parseInt(_0x34906c(0x131))/0xc)+-parseInt(_0x34906c(0x144))/0xd;if(_0x1573a7===_0x493f51)break;else _0x3388f2['push'](_0x3388f2['shift']());}catch(_0x59f0e3){_0x3388f2['push'](_0x3388f2['shift']());}}}(a75_0x263f,0x4e03b));function a75_0x263f(){var _0x577556=['1062UiVFWO','933845wcbiBX','8NsNsmS','51bWeFUs','isArray','42236QpuhVu','files','11iYerRO','6QTATym','length','string','42010BHjRsY','8ZFBzLV','1284205CuNzfC','ossPath','5387292LhPAAn','131128gTFdLn','1493205UqhGhp','path','object','some'];a75_0x263f=function(){return _0x577556;};return a75_0x263f();}function a75_0x4a7b(_0x316fbd,_0x5b564f){_0x316fbd=_0x316fbd-0x130;var _0x263f6a=a75_0x263f();var _0x4a7bf6=_0x263f6a[_0x316fbd];return _0x4a7bf6;}export function isPackageBackedManifest(_0x30ceff){var _0x4644ed=a75_0x4a7b;return!!_0x30ceff&&typeof _0x30ceff===_0x4644ed(0x135)&&!Array['isArray'](_0x30ceff)&&typeof _0x30ceff[_0x4644ed(0x130)]===_0x4644ed(0x141)&&_0x30ceff[_0x4644ed(0x130)][_0x4644ed(0x140)]>0x0&&Array[_0x4644ed(0x13b)](_0x30ceff[_0x4644ed(0x13d)]);}export function isMultiFileManifest(_0xade7f7){var _0x581472=a75_0x4a7b;return!!_0xade7f7&&typeof _0xade7f7===_0x581472(0x135)&&!Array[_0x581472(0x13b)](_0xade7f7)&&Array[_0x581472(0x13b)](_0xade7f7['files'])&&_0xade7f7['files'][_0x581472(0x136)](_0x2a0f75=>_0x2a0f75[_0x581472(0x134)]!=='SKILL.md');}
@@ -1 +1 @@
1
- (function(_0x3d20de,_0x5a1fb3){const _0x5576=a76_0x3db6,_0x20c43c=_0x3d20de();while(!![]){try{const _0xb6cfa3=parseInt(_0x5576(0x193))/0x1*(-parseInt(_0x5576(0x197))/0x2)+-parseInt(_0x5576(0x175))/0x3*(-parseInt(_0x5576(0x173))/0x4)+-parseInt(_0x5576(0x182))/0x5*(-parseInt(_0x5576(0x18f))/0x6)+parseInt(_0x5576(0x188))/0x7+parseInt(_0x5576(0x18a))/0x8+-parseInt(_0x5576(0x17b))/0x9+parseInt(_0x5576(0x181))/0xa*(parseInt(_0x5576(0x190))/0xb);if(_0xb6cfa3===_0x5a1fb3)break;else _0x20c43c['push'](_0x20c43c['shift']());}catch(_0x56c692){_0x20c43c['push'](_0x20c43c['shift']());}}}(a76_0x12c5,0x1aed2));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a76_0x12c5(){const _0x40f2d9=['(unknown)','personal','POST','6njFQcd','11KqNnaj','\x20Skill\x20','metadata','3oEPvfj','appcode','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','/api/cli/v1/skills/','52146aDZZUQ','Submitted\x20company\x20Skill\x20','company','unknown','input','resolvedSlug','Created\x20personal\x20Skill\x20','confirm-warnings','diagramValidated','authRequired','\x20version\x20','Updated\x20personal\x20Skill\x20','existing','/publish/validate','appCode','warnings','bool','status','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','dir','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','publishInput','str','skillCode','../../skills/runtime-skill-sync.js','\x20for\x20review','trim','files','NAMESPACE_ONLY','4zfyjDM','scope','200871bjEoJp','\x20has\x20scope=\x22','PRIVATE','confirmWarnings','Company','validation','1332990ZgtDGy','version','remoteForPreflight','identical','valid','errors','852330XoOMLT','530585tuRKtI','resolvedVersion','../../core/api-client.js','frontmatterDisplayName','diagram-file','savedSkill','258335pCNTdV','payload','331256VWCUHr','accessKey'];a76_0x12c5=function(){return _0x40f2d9;};return a76_0x12c5();}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(_0x5711a7){const _0x5734cf=a76_0x3db6,{getRuntimeSkillByCode:_0x1613db,validateRuntimeSkillPublish:_0x13ccda}=await import(_0x5734cf(0x184)),{readPushDirectory:_0x112a12,resolvePushDirectoryIdentity:_0x45f9a7}=await import(_0x5734cf(0x16e));if(!_0x5711a7['accessKey'])throw CliErrors[_0x5734cf(0x1a0)]();const _0x222884=resolvePushScope(_0x5711a7),_0x371a6f=validateSkillDirectory(_0x5711a7[_0x5734cf(0x1ae)](_0x5734cf(0x1aa)));throwIfSkillValidationFailed(_0x371a6f);const {diagram:_0x14e9a4,sourceFilePath:_0x9b631d}=await readRequiredSkillDiagramInput(_0x5711a7[_0x5734cf(0x1ae)](_0x5734cf(0x186))),_0x1d1f1c=diagramPackageExclusion(_0x9b631d),_0x52a349=_0x45f9a7(_0x371a6f[_0x5734cf(0x1aa)],_0x5711a7['appCode'],remoteFirstMetadataOptions()),_0x177ca4=await _0x1613db(_0x5711a7['appCode'],_0x52a349[_0x5734cf(0x16d)]);throwIfBuiltinPushTarget(_0x177ca4);if(_0x222884===_0x5734cf(0x199)){const _0x41eeba=_0x112a12(_0x371a6f['dir'],_0x5711a7[_0x5734cf(0x1a5)],{...remoteMissingCompanyReadOptions(),..._0x1d1f1c}),_0x5e30b6=await _0x13ccda(_0x5711a7[_0x5734cf(0x1a5)],withDiagram(_0x41eeba['input'],_0x14e9a4),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x5734cf(0x18e),'url':_0x5734cf(0x196)+_0x5711a7['appCode']+_0x5734cf(0x1a4),'body':{'skillCode':_0x41eeba[_0x5734cf(0x16d)],'visibility':_0x5734cf(0x172),'valid':_0x5e30b6[_0x5734cf(0x17f)],'errors':_0x5e30b6[_0x5734cf(0x180)],'warnings':_0x5e30b6['warnings'],'resolvedSlug':_0x5e30b6[_0x5734cf(0x19c)],'resolvedVersion':_0x5e30b6[_0x5734cf(0x183)],'diagramValidated':_0x5e30b6[_0x5734cf(0x19f)]},'description':_0x5734cf(0x1ab)};}if(_0x177ca4&&_0x177ca4[_0x5734cf(0x174)]!=='personal')throw CliErrors[_0x5734cf(0x17a)](_0x5734cf(0x1ac)+_0x52a349[_0x5734cf(0x16d)]+_0x5734cf(0x176)+(_0x177ca4[_0x5734cf(0x174)]??_0x5734cf(0x19a))+'\x22.');const _0x1d2d4f=_0x112a12(_0x371a6f[_0x5734cf(0x1aa)],_0x5711a7[_0x5734cf(0x1a5)],{..._0x177ca4?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x1d1f1c}),_0x34e149=await _0x13ccda(_0x5711a7[_0x5734cf(0x1a5)],withDiagram(_0x1d2d4f[_0x5734cf(0x19b)],_0x14e9a4),{'visibility':_0x5734cf(0x177)});return{'method':'POST','url':'/api/cli/v1/skills/'+_0x5711a7['appCode']+_0x5734cf(0x1a4),'body':{'skillCode':_0x1d2d4f['skillCode'],'visibility':_0x5734cf(0x177),'valid':_0x34e149['valid'],'errors':_0x34e149[_0x5734cf(0x180)],'warnings':_0x34e149[_0x5734cf(0x1a6)],'resolvedSlug':_0x34e149[_0x5734cf(0x19c)],'resolvedVersion':_0x34e149['resolvedVersion'],'diagramValidated':_0x34e149[_0x5734cf(0x19f)]},'description':_0x5734cf(0x195)};}export async function skillPushExecute(_0x2ab9a6){const _0xb9fe73=a76_0x3db6,{createPersonalRuntimeSkill:_0x301d0a,downloadRuntimeSkillPackage:_0x13e3c0,getRuntimeSkillByCode:_0x24f585,publishCompanyRuntimeSkill:_0x5935e3,updatePersonalRuntimeSkill:_0x43f341,validateRuntimeSkillPublish:_0x429f81}=await import(_0xb9fe73(0x184)),{verifyRuntimeSkillPackage:_0xb177cd,verifyRuntimeSkillBundle:_0x2bd499,readPushDirectory:_0x387075,refreshPushDirectoryMetadataFromRemote:_0x129c67,recordPushedRuntimeSkill:_0x3d4135,resolvePushDirectoryIdentity:_0x39657f}=await import(_0xb9fe73(0x16e));if(!_0x2ab9a6[_0xb9fe73(0x18b)])throw CliErrors[_0xb9fe73(0x1a0)]();const _0x48a4c0=resolvePushScope(_0x2ab9a6),_0x143c96=_0x2ab9a6[_0xb9fe73(0x1a7)](_0xb9fe73(0x19e))||_0x2ab9a6[_0xb9fe73(0x1a7)](_0xb9fe73(0x178)),_0x117ba8=validateSkillDirectory(_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x1aa)));throwIfSkillValidationFailed(_0x117ba8);const {diagram:_0x38a4a9,sourceFilePath:_0x28dbd1}=await readRequiredSkillDiagramInput(_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x186))),_0x2f445a=diagramPackageExclusion(_0x28dbd1),_0x122c58=_0x117ba8[_0xb9fe73(0x1aa)];let _0x2207cc;if(_0x48a4c0==='company'){const _0x9722c3=_0x39657f(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],remoteFirstMetadataOptions()),_0x4e3924=await _0x24f585(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x9722c3['skillCode']);throwIfBuiltinPushTarget(_0x4e3924);if(_0x4e3924)_0x129c67(_0x122c58,_0x4e3924,_0x2ab9a6[_0xb9fe73(0x1a5)]);const _0x416e4b=_0x387075(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{..._0x4e3924?{'targetScope':_0xb9fe73(0x199),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2f445a});_0x2207cc={'scope':_0xb9fe73(0x199),'payload':_0x416e4b,'publishInput':withDiagram(_0x416e4b[_0xb9fe73(0x19b)],_0x38a4a9),'remoteForPreflight':_0x4e3924,'warnings':[]};}else{const _0x11a6f4=_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x194))[_0xb9fe73(0x170)](),_0x1e25ca=Boolean(_0x11a6f4),_0x5197af=allowRetargetArgs(_0x1e25ca),_0x9d9fed=_0x39657f(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{...remoteFirstMetadataOptions(),..._0x5197af[0x0]}),_0x5b62c5=await _0x24f585(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x9d9fed[_0xb9fe73(0x16d)]);throwIfBuiltinPushTarget(_0x5b62c5);if(_0x5b62c5){if(_0x5b62c5[_0xb9fe73(0x174)]!==_0xb9fe73(0x18d)){if(_0x1e25ca)throw CliErrors[_0xb9fe73(0x17a)](_0xb9fe73(0x1ac)+_0x9d9fed[_0xb9fe73(0x16d)]+_0xb9fe73(0x176)+(_0x5b62c5[_0xb9fe73(0x174)]??_0xb9fe73(0x19a))+'\x22.');_0x129c67(_0x122c58,_0x5b62c5,_0x2ab9a6['appCode']);}else!_0x1e25ca&&_0x129c67(_0x122c58,_0x5b62c5,_0x2ab9a6[_0xb9fe73(0x1a5)]);}const _0x30b827=_0x387075(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{..._0x5b62c5?remotePersonalReadOptions(_0x1e25ca,_0x5197af[0x0]):remoteMissingPersonalReadOptions(_0x5197af[0x0]),..._0x2f445a}),_0xe99280=_0x5b62c5?.['scope']===_0xb9fe73(0x18d)&&_0x5b62c5['skillCode']===_0x30b827[_0xb9fe73(0x16d)]?_0x5b62c5:undefined,_0x5b76d1=_0x1e25ca&&_0xe99280?withRetargetExistingMetadata(_0x30b827[_0xb9fe73(0x19b)],_0xe99280,{'preferInputSkillName':Boolean(_0x30b827[_0xb9fe73(0x185)])}):_0x30b827[_0xb9fe73(0x19b)],_0x1b20c3=_0x1e25ca?buildRetargetWarning(_0x9d9fed[_0xb9fe73(0x192)],_0x2ab9a6[_0xb9fe73(0x1a5)]):[];_0x2207cc={'scope':'personal','payload':_0x30b827,'publishInput':withDiagram(_0x5b76d1,_0x38a4a9),'remoteForPreflight':_0xe99280,'existing':_0xe99280,'warnings':[..._0x117ba8[_0xb9fe73(0x1a6)],..._0x1b20c3]};}const _0x1d9c84=await runRemoteContentPreflight({'scope':_0x2207cc[_0xb9fe73(0x174)],'remote':_0x2207cc[_0xb9fe73(0x17d)],'publishInput':_0x2207cc['publishInput'],'skillCode':_0x2207cc['payload'][_0xb9fe73(0x16d)],'appCode':_0x2ab9a6[_0xb9fe73(0x1a5)],'downloadRuntimeSkillPackage':_0x13e3c0,'verifyRuntimeSkillBundle':_0x2bd499});if(_0x1d9c84[_0xb9fe73(0x1a8)]===_0xb9fe73(0x17e))return _0x2207cc['scope']===_0xb9fe73(0x199)?_0x3d4135(_0x122c58,_0x1d9c84[_0xb9fe73(0x187)],_0x2ab9a6[_0xb9fe73(0x1a5)],{'scope':_0xb9fe73(0x199)}):_0x3d4135(_0x122c58,_0x1d9c84['savedSkill'],_0x2ab9a6[_0xb9fe73(0x1a5)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1d9c84[_0xb9fe73(0x187)]),'scope':_0x2207cc[_0xb9fe73(0x174)],..._0x2207cc[_0xb9fe73(0x174)]===_0xb9fe73(0x18d)?{'warnings':_0x2207cc[_0xb9fe73(0x1a6)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x2207cc[_0xb9fe73(0x174)])+_0xb9fe73(0x191)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]+_0xb9fe73(0x1a9)};if(_0x2207cc[_0xb9fe73(0x174)]==='company'){const _0x234d80=await _0x429f81(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],{'visibility':_0xb9fe73(0x172)});throwIfPublishValidationFailed(_0xb9fe73(0x199),_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)],_0x234d80),throwIfUnconfirmedPublishWarnings(_0xb9fe73(0x199),_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)],_0x234d80['warnings'],_0x143c96);const _0x4c6743=await _0x5935e3(_0x2ab9a6['appCode'],_0x2207cc[_0xb9fe73(0x1ad)],{'confirmWarnings':_0x143c96});return _0x3d4135(_0x122c58,{..._0x4c6743,'files':_0x2207cc['publishInput'][_0xb9fe73(0x171)]},_0x2ab9a6[_0xb9fe73(0x1a5)],{'scope':_0xb9fe73(0x199)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4c6743),'scope':'company','reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x234d80[_0xb9fe73(0x1a6)]}},'message':_0xb9fe73(0x198)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]+_0xb9fe73(0x1a1)+(_0x4c6743[_0xb9fe73(0x17c)]??_0xb9fe73(0x18c))+_0xb9fe73(0x16f)};}const _0x141cff=await _0x429f81(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed('personal',_0x2207cc['payload'][_0xb9fe73(0x16d)],_0x141cff),throwIfUnconfirmedPublishWarnings(_0xb9fe73(0x18d),_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x141cff['warnings'],_0x143c96);const _0x1a391e={'confirmWarnings':_0x143c96},_0x25589c=_0x2207cc['existing']?await _0x43f341(_0x2207cc['payload']['skillCode'],_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],_0x1a391e):await _0x301d0a(_0x2ab9a6['appCode'],_0x2207cc['publishInput'],_0x1a391e);let _0x1233fe=_0x25589c;if(isMultiFileManifest(_0x2207cc[_0xb9fe73(0x1ad)]['files'])){const _0x1c8f9a=await _0x13e3c0(_0xb9fe73(0x18d),_0x25589c[_0xb9fe73(0x16d)]||_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x2ab9a6[_0xb9fe73(0x1a5)]);_0x2bd499(_0x2207cc[_0xb9fe73(0x1ad)][_0xb9fe73(0x171)],_0x1c8f9a),_0x1233fe={..._0x25589c,'files':_0x2207cc[_0xb9fe73(0x1ad)][_0xb9fe73(0x171)]};}else{if(isPackageBackedManifest(_0x25589c[_0xb9fe73(0x171)])){const _0x5d3b02=await _0x13e3c0(_0xb9fe73(0x18d),_0x25589c[_0xb9fe73(0x16d)]||_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x2ab9a6['appCode']);_0xb177cd(_0x25589c[_0xb9fe73(0x171)],_0x5d3b02);}}return _0x3d4135(_0x122c58,_0x1233fe,_0x2ab9a6['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25589c),'warnings':_0x2207cc[_0xb9fe73(0x1a6)],'validation':{'warnings':_0x141cff[_0xb9fe73(0x1a6)]},'diagramBound':!![]},'message':_0x2207cc[_0xb9fe73(0x1a3)]?_0xb9fe73(0x1a2)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]:_0xb9fe73(0x19d)+_0x2207cc['payload'][_0xb9fe73(0x16d)]};}function a76_0x3db6(_0x56adf8,_0x1397a9){_0x56adf8=_0x56adf8-0x16d;const _0x12c508=a76_0x12c5();let _0x3db615=_0x12c508[_0x56adf8];return _0x3db615;}function scopeLabel(_0x21487f){const _0x2c4ede=a76_0x3db6;return _0x21487f===_0x2c4ede(0x199)?_0x2c4ede(0x179):'Personal';}function withDiagram(_0x29d8d8,_0x47cc58){return{..._0x29d8d8,'diagram':_0x47cc58};}function diagramPackageExclusion(_0x9c2b35){return _0x9c2b35?{'excludedFilePaths':[_0x9c2b35]}:{};}
1
+ (function(_0x4062e6,_0x5ec683){const _0x35d53a=a76_0x1226,_0x1bd90f=_0x4062e6();while(!![]){try{const _0xe3410=-parseInt(_0x35d53a(0x162))/0x1+parseInt(_0x35d53a(0x166))/0x2*(parseInt(_0x35d53a(0x156))/0x3)+-parseInt(_0x35d53a(0x176))/0x4*(-parseInt(_0x35d53a(0x17b))/0x5)+parseInt(_0x35d53a(0x186))/0x6*(parseInt(_0x35d53a(0x174))/0x7)+-parseInt(_0x35d53a(0x149))/0x8+parseInt(_0x35d53a(0x158))/0x9*(parseInt(_0x35d53a(0x155))/0xa)+-parseInt(_0x35d53a(0x188))/0xb*(parseInt(_0x35d53a(0x16e))/0xc);if(_0xe3410===_0x5ec683)break;else _0x1bd90f['push'](_0x1bd90f['shift']());}catch(_0x13f8d5){_0x1bd90f['push'](_0x1bd90f['shift']());}}}(a76_0x3eae,0x76b00));import{CliErrors}from'../../errors.js';function a76_0x1226(_0x3051c8,_0x557c55){_0x3051c8=_0x3051c8-0x149;const _0x3eae4a=a76_0x3eae();let _0x122648=_0x3eae4a[_0x3051c8];return _0x122648;}import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a76_0x3eae(){const _0x222ef9=['status','/api/cli/v1/skills/','confirmWarnings','warnings','200cVPPHT','/publish/validate','\x20for\x20review','accessKey','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','(unknown)','payload','\x20version\x20','POST','files','Personal','502986YnyiIm','savedSkill','4010831qLHSAP','resolvedSlug','5807952rUNJux','../../core/api-client.js','company','validation','../../skills/runtime-skill-sync.js','PRIVATE','Updated\x20personal\x20Skill\x20','appCode','errors','trim','bool','identical','1122870tNXVbD','468492mHkhRm','scope','36ztfVol','diagramValidated','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','NAMESPACE_ONLY','version','str','valid','authRequired','personal','remoteForPreflight','71571alLeMo','skillCode','diagram-file','existing','2XXMbWt','metadata','Company','dir','publishInput','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','resolvedVersion','input','24wzffPM','Created\x20personal\x20Skill\x20','submitted','appcode','\x20has\x20scope=\x22','frontmatterDisplayName','63bRFbrs','unknown','65316CsQyBA'];a76_0x3eae=function(){return _0x222ef9;};return a76_0x3eae();}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(_0x574468){const _0x59ae84=a76_0x1226,{getRuntimeSkillByCode:_0x3e3a69,validateRuntimeSkillPublish:_0x11c6ee}=await import(_0x59ae84(0x14a)),{readPushDirectory:_0x603679,resolvePushDirectoryIdentity:_0x3b4e7f}=await import(_0x59ae84(0x14d));if(!_0x574468[_0x59ae84(0x17e)])throw CliErrors['authRequired']();const _0x368c71=resolvePushScope(_0x574468),_0x38c050=validateSkillDirectory(_0x574468[_0x59ae84(0x15d)](_0x59ae84(0x169)));throwIfSkillValidationFailed(_0x38c050);const {diagram:_0x335c29,sourceFilePath:_0x5a400c}=await readRequiredSkillDiagramInput(_0x574468['str'](_0x59ae84(0x164))),_0x1175f3=diagramPackageExclusion(_0x5a400c),_0x9f6022=_0x3b4e7f(_0x38c050['dir'],_0x574468[_0x59ae84(0x150)],remoteFirstMetadataOptions()),_0x54bfdf=await _0x3e3a69(_0x574468[_0x59ae84(0x150)],_0x9f6022[_0x59ae84(0x163)]);throwIfBuiltinPushTarget(_0x54bfdf);if(_0x368c71==='company'){const _0xb1effa=_0x603679(_0x38c050[_0x59ae84(0x169)],_0x574468[_0x59ae84(0x150)],{...remoteMissingCompanyReadOptions(),..._0x1175f3}),_0x112847=await _0x11c6ee(_0x574468['appCode'],withDiagram(_0xb1effa[_0x59ae84(0x16d)],_0x335c29),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x59ae84(0x183),'url':'/api/cli/v1/skills/'+_0x574468[_0x59ae84(0x150)]+_0x59ae84(0x17c),'body':{'skillCode':_0xb1effa[_0x59ae84(0x163)],'visibility':'NAMESPACE_ONLY','valid':_0x112847[_0x59ae84(0x15e)],'errors':_0x112847[_0x59ae84(0x151)],'warnings':_0x112847[_0x59ae84(0x17a)],'resolvedSlug':_0x112847[_0x59ae84(0x189)],'resolvedVersion':_0x112847[_0x59ae84(0x16c)],'diagramValidated':_0x112847[_0x59ae84(0x159)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x54bfdf&&_0x54bfdf[_0x59ae84(0x157)]!==_0x59ae84(0x160))throw CliErrors[_0x59ae84(0x14c)](_0x59ae84(0x17f)+_0x9f6022['skillCode']+'\x20has\x20scope=\x22'+(_0x54bfdf['scope']??_0x59ae84(0x175))+'\x22.');const _0x4dd1f6=_0x603679(_0x38c050[_0x59ae84(0x169)],_0x574468[_0x59ae84(0x150)],{..._0x54bfdf?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x1175f3}),_0x42809a=await _0x11c6ee(_0x574468[_0x59ae84(0x150)],withDiagram(_0x4dd1f6['input'],_0x335c29),{'visibility':_0x59ae84(0x14e)});return{'method':_0x59ae84(0x183),'url':_0x59ae84(0x178)+_0x574468[_0x59ae84(0x150)]+_0x59ae84(0x17c),'body':{'skillCode':_0x4dd1f6[_0x59ae84(0x163)],'visibility':_0x59ae84(0x14e),'valid':_0x42809a['valid'],'errors':_0x42809a[_0x59ae84(0x151)],'warnings':_0x42809a['warnings'],'resolvedSlug':_0x42809a[_0x59ae84(0x189)],'resolvedVersion':_0x42809a[_0x59ae84(0x16c)],'diagramValidated':_0x42809a[_0x59ae84(0x159)]},'description':_0x59ae84(0x15a)};}export async function skillPushExecute(_0xa0550c){const _0x38b813=a76_0x1226,{createPersonalRuntimeSkill:_0x45d979,downloadRuntimeSkillPackage:_0xac3262,getRuntimeSkillByCode:_0x32950,publishCompanyRuntimeSkill:_0x389b60,updatePersonalRuntimeSkill:_0x2fda94,validateRuntimeSkillPublish:_0x4040a6}=await import(_0x38b813(0x14a)),{verifyRuntimeSkillPackage:_0x10474c,verifyRuntimeSkillBundle:_0x2b4994,readPushDirectory:_0x5be32f,refreshPushDirectoryMetadataFromRemote:_0x10c16e,recordPushedRuntimeSkill:_0x35e0b0,resolvePushDirectoryIdentity:_0x3a7aa4}=await import(_0x38b813(0x14d));if(!_0xa0550c['accessKey'])throw CliErrors[_0x38b813(0x15f)]();const _0x43e6a7=resolvePushScope(_0xa0550c),_0x370d1b=_0xa0550c['bool']('confirm-warnings')||_0xa0550c[_0x38b813(0x153)](_0x38b813(0x179)),_0x58f4ee=validateSkillDirectory(_0xa0550c['str']('dir'));throwIfSkillValidationFailed(_0x58f4ee);const {diagram:_0x29531f,sourceFilePath:_0x54a82a}=await readRequiredSkillDiagramInput(_0xa0550c[_0x38b813(0x15d)](_0x38b813(0x164))),_0x27cd07=diagramPackageExclusion(_0x54a82a),_0x3d1f00=_0x58f4ee[_0x38b813(0x169)];let _0x5c8e4e;if(_0x43e6a7===_0x38b813(0x14b)){const _0x441c83=_0x3a7aa4(_0x3d1f00,_0xa0550c[_0x38b813(0x150)],remoteFirstMetadataOptions()),_0xe1eab7=await _0x32950(_0xa0550c['appCode'],_0x441c83[_0x38b813(0x163)]);throwIfBuiltinPushTarget(_0xe1eab7);if(_0xe1eab7)_0x10c16e(_0x3d1f00,_0xe1eab7,_0xa0550c[_0x38b813(0x150)]);const _0x377958=_0x5be32f(_0x3d1f00,_0xa0550c['appCode'],{..._0xe1eab7?{'targetScope':_0x38b813(0x14b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x27cd07});_0x5c8e4e={'scope':_0x38b813(0x14b),'payload':_0x377958,'publishInput':withDiagram(_0x377958[_0x38b813(0x16d)],_0x29531f),'remoteForPreflight':_0xe1eab7,'warnings':[]};}else{const _0x638a57=_0xa0550c[_0x38b813(0x15d)](_0x38b813(0x171))[_0x38b813(0x152)](),_0x18b837=Boolean(_0x638a57),_0x18e979=allowRetargetArgs(_0x18b837),_0x338601=_0x3a7aa4(_0x3d1f00,_0xa0550c[_0x38b813(0x150)],{...remoteFirstMetadataOptions(),..._0x18e979[0x0]}),_0x596fd6=await _0x32950(_0xa0550c[_0x38b813(0x150)],_0x338601[_0x38b813(0x163)]);throwIfBuiltinPushTarget(_0x596fd6);if(_0x596fd6){if(_0x596fd6['scope']!=='personal'){if(_0x18b837)throw CliErrors[_0x38b813(0x14c)](_0x38b813(0x17f)+_0x338601['skillCode']+_0x38b813(0x172)+(_0x596fd6[_0x38b813(0x157)]??_0x38b813(0x175))+'\x22.');_0x10c16e(_0x3d1f00,_0x596fd6,_0xa0550c['appCode']);}else!_0x18b837&&_0x10c16e(_0x3d1f00,_0x596fd6,_0xa0550c['appCode']);}const _0x1b1fa3=_0x5be32f(_0x3d1f00,_0xa0550c['appCode'],{..._0x596fd6?remotePersonalReadOptions(_0x18b837,_0x18e979[0x0]):remoteMissingPersonalReadOptions(_0x18e979[0x0]),..._0x27cd07}),_0xb2c858=_0x596fd6?.[_0x38b813(0x157)]==='personal'&&_0x596fd6[_0x38b813(0x163)]===_0x1b1fa3[_0x38b813(0x163)]?_0x596fd6:undefined,_0x33cd46=_0x18b837&&_0xb2c858?withRetargetExistingMetadata(_0x1b1fa3[_0x38b813(0x16d)],_0xb2c858,{'preferInputSkillName':Boolean(_0x1b1fa3[_0x38b813(0x173)])}):_0x1b1fa3['input'],_0xe7e2be=_0x18b837?buildRetargetWarning(_0x338601[_0x38b813(0x167)],_0xa0550c[_0x38b813(0x150)]):[];_0x5c8e4e={'scope':_0x38b813(0x160),'payload':_0x1b1fa3,'publishInput':withDiagram(_0x33cd46,_0x29531f),'remoteForPreflight':_0xb2c858,'existing':_0xb2c858,'warnings':[..._0x58f4ee['warnings'],..._0xe7e2be]};}const _0x2fdab9=await runRemoteContentPreflight({'scope':_0x5c8e4e[_0x38b813(0x157)],'remote':_0x5c8e4e[_0x38b813(0x161)],'publishInput':_0x5c8e4e[_0x38b813(0x16a)],'skillCode':_0x5c8e4e['payload'][_0x38b813(0x163)],'appCode':_0xa0550c[_0x38b813(0x150)],'downloadRuntimeSkillPackage':_0xac3262,'verifyRuntimeSkillBundle':_0x2b4994});if(_0x2fdab9[_0x38b813(0x177)]===_0x38b813(0x154))return _0x5c8e4e[_0x38b813(0x157)]===_0x38b813(0x14b)?_0x35e0b0(_0x3d1f00,_0x2fdab9[_0x38b813(0x187)],_0xa0550c[_0x38b813(0x150)],{'scope':_0x38b813(0x14b)}):_0x35e0b0(_0x3d1f00,_0x2fdab9[_0x38b813(0x187)],_0xa0550c[_0x38b813(0x150)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2fdab9['savedSkill']),'scope':_0x5c8e4e[_0x38b813(0x157)],..._0x5c8e4e[_0x38b813(0x157)]===_0x38b813(0x160)?{'warnings':_0x5c8e4e[_0x38b813(0x17a)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x5c8e4e[_0x38b813(0x157)])+'\x20Skill\x20'+_0x5c8e4e['payload']['skillCode']+_0x38b813(0x16b)};if(_0x5c8e4e['scope']===_0x38b813(0x14b)){const _0x5ec4f7=await _0x4040a6(_0xa0550c[_0x38b813(0x150)],_0x5c8e4e[_0x38b813(0x16a)],{'visibility':_0x38b813(0x15b)});throwIfPublishValidationFailed('company',_0x5c8e4e[_0x38b813(0x181)][_0x38b813(0x163)],_0x5ec4f7),throwIfUnconfirmedPublishWarnings(_0x38b813(0x14b),_0x5c8e4e[_0x38b813(0x181)][_0x38b813(0x163)],_0x5ec4f7[_0x38b813(0x17a)],_0x370d1b);const _0x3135f5=await _0x389b60(_0xa0550c[_0x38b813(0x150)],_0x5c8e4e[_0x38b813(0x16a)],{'confirmWarnings':_0x370d1b});return _0x35e0b0(_0x3d1f00,{..._0x3135f5,'files':_0x5c8e4e[_0x38b813(0x16a)]['files']},_0xa0550c[_0x38b813(0x150)],{'scope':_0x38b813(0x14b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3135f5),'scope':_0x38b813(0x14b),'reviewState':_0x38b813(0x170),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x5ec4f7[_0x38b813(0x17a)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x5c8e4e[_0x38b813(0x181)]['skillCode']+_0x38b813(0x182)+(_0x3135f5[_0x38b813(0x15c)]??_0x38b813(0x180))+_0x38b813(0x17d)};}const _0x18937d=await _0x4040a6(_0xa0550c[_0x38b813(0x150)],_0x5c8e4e[_0x38b813(0x16a)],{'visibility':_0x38b813(0x14e)});throwIfPublishValidationFailed(_0x38b813(0x160),_0x5c8e4e[_0x38b813(0x181)][_0x38b813(0x163)],_0x18937d),throwIfUnconfirmedPublishWarnings('personal',_0x5c8e4e[_0x38b813(0x181)][_0x38b813(0x163)],_0x18937d['warnings'],_0x370d1b);const _0xc18f7f={'confirmWarnings':_0x370d1b},_0x2e001e=_0x5c8e4e[_0x38b813(0x165)]?await _0x2fda94(_0x5c8e4e[_0x38b813(0x181)]['skillCode'],_0xa0550c['appCode'],_0x5c8e4e[_0x38b813(0x16a)],_0xc18f7f):await _0x45d979(_0xa0550c[_0x38b813(0x150)],_0x5c8e4e['publishInput'],_0xc18f7f);let _0x2e6c2c=_0x2e001e;if(isMultiFileManifest(_0x5c8e4e[_0x38b813(0x16a)][_0x38b813(0x184)])){const _0x1576b8=await _0xac3262(_0x38b813(0x160),_0x2e001e['skillCode']||_0x5c8e4e[_0x38b813(0x181)]['skillCode'],_0xa0550c[_0x38b813(0x150)]);_0x2b4994(_0x5c8e4e['publishInput'][_0x38b813(0x184)],_0x1576b8),_0x2e6c2c={..._0x2e001e,'files':_0x5c8e4e['publishInput'][_0x38b813(0x184)]};}else{if(isPackageBackedManifest(_0x2e001e[_0x38b813(0x184)])){const _0x2849a9=await _0xac3262('personal',_0x2e001e[_0x38b813(0x163)]||_0x5c8e4e[_0x38b813(0x181)][_0x38b813(0x163)],_0xa0550c['appCode']);_0x10474c(_0x2e001e['files'],_0x2849a9);}}return _0x35e0b0(_0x3d1f00,_0x2e6c2c,_0xa0550c[_0x38b813(0x150)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2e001e),'warnings':_0x5c8e4e['warnings'],'validation':{'warnings':_0x18937d[_0x38b813(0x17a)]},'diagramBound':!![]},'message':_0x5c8e4e[_0x38b813(0x165)]?_0x38b813(0x14f)+_0x5c8e4e[_0x38b813(0x181)]['skillCode']:_0x38b813(0x16f)+_0x5c8e4e[_0x38b813(0x181)]['skillCode']};}function scopeLabel(_0x229f4b){const _0x272ef7=a76_0x1226;return _0x229f4b===_0x272ef7(0x14b)?_0x272ef7(0x168):_0x272ef7(0x185);}function withDiagram(_0x8e80f3,_0x53940c){return{..._0x8e80f3,'diagram':_0x53940c};}function diagramPackageExclusion(_0x4334fc){return _0x4334fc?{'excludedFilePaths':[_0x4334fc]}:{};}
@@ -1 +1 @@
1
- (function(_0x2244db,_0x3e772b){const _0x18f4a3=a77_0x185a,_0x5ee103=_0x2244db();while(!![]){try{const _0x6613de=-parseInt(_0x18f4a3(0xf8))/0x1*(parseInt(_0x18f4a3(0x118))/0x2)+-parseInt(_0x18f4a3(0x113))/0x3*(-parseInt(_0x18f4a3(0x11f))/0x4)+-parseInt(_0x18f4a3(0x107))/0x5+parseInt(_0x18f4a3(0x11a))/0x6*(-parseInt(_0x18f4a3(0x108))/0x7)+-parseInt(_0x18f4a3(0x103))/0x8*(-parseInt(_0x18f4a3(0xf1))/0x9)+parseInt(_0x18f4a3(0xf5))/0xa*(parseInt(_0x18f4a3(0xfb))/0xb)+-parseInt(_0x18f4a3(0x11b))/0xc*(-parseInt(_0x18f4a3(0x10e))/0xd);if(_0x6613de===_0x3e772b)break;else _0x5ee103['push'](_0x5ee103['shift']());}catch(_0x2b61d5){_0x5ee103['push'](_0x5ee103['shift']());}}}(a77_0x257a,0xa5737));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x1ec073){const _0x103c64=a77_0x185a,_0x40a4a1=_0x1ec073['str'](_0x103c64(0xfd))||'personal';if(_0x40a4a1===_0x103c64(0x114)||_0x40a4a1==='company')return _0x40a4a1;throw CliErrors[_0x103c64(0x110)](_0x103c64(0xf0)+_0x40a4a1+'\x22.');}export function allowRetargetArgs(_0x322937){return _0x322937?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2786d7=a77_0x185a;return{'targetScope':_0x2786d7(0x109),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0xee846f={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0xee846f};}function a77_0x257a(){const _0x3d834d=['files','Company','downloadRuntimeSkillPackage','44CiiOtQ','not-applicable','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','405VAHWrA','warnings','remote','valid','10eGKYXo','\x20Skill\x20push\x20validation\x20failed\x20for\x20','length','1493vLEJrE','SkillHub\x20validation\x20returned\x20invalid.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','8715553ekNJLD','skillCode','scope','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20after\x20successful\x20push.','different','lovrabet.skill.json','join','23832bgrTnm','appCode','Review\x20each\x20warning\x20before\x20continuing.','errors','1438270XQLTyU','70YaEyqT','company','verifyRuntimeSkillBundle','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','13qXKJYV','skill-metadata-appcode-retargeted','validation','builtin','publishInput','121734itJGcn','personal','Local\x20Skill\x20metadata\x20appCode\x20','warning','identical','1736GSXpNQ','(unknown)','622722BBgFmD','23116788vTBWSs'];a77_0x257a=function(){return _0x3d834d;};return a77_0x257a();}export function remotePersonalReadOptions(_0x47b529,_0x464061={}){return{'ignoreInvalidMetadata':!![],..._0x47b529?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x464061};}export function throwIfBuiltinPushTarget(_0x37379c){const _0x3507b9=a77_0x185a;if(_0x37379c?.[_0x3507b9(0xfd)]!==_0x3507b9(0x111))return;throw CliErrors[_0x3507b9(0x110)]('Builtin\x20Skill\x20'+(_0x37379c[_0x3507b9(0xfc)]??_0x3507b9(0x119))+'\x20cannot\x20be\x20pushed.',_0x3507b9(0x10d));}function a77_0x185a(_0x3aef2a,_0x3dd236){_0x3aef2a=_0x3aef2a-0xef;const _0x257a22=a77_0x257a();let _0x185a99=_0x257a22[_0x3aef2a];return _0x185a99;}export function throwIfPublishValidationFailed(_0x4c6202,_0x161280,_0x564524){const _0x1b085e=a77_0x185a;if(_0x564524[_0x1b085e(0x106)]['length']===0x0&&(_0x564524[_0x1b085e(0xf4)]||_0x564524[_0x1b085e(0xf2)]['length']>0x0))return;const _0x530e46=_0x564524[_0x1b085e(0x106)][_0x1b085e(0xf7)]>0x0?_0x564524[_0x1b085e(0x106)]['join'](';\x20'):_0x1b085e(0xf9),_0x39be53=_0x4c6202==='company'?_0x1b085e(0x11d):'Personal';throw CliErrors[_0x1b085e(0x110)](_0x39be53+_0x1b085e(0xf6)+_0x161280+'.',_0x530e46);}export function throwIfUnconfirmedPublishWarnings(_0x31bd7c,_0x934947,_0x27337f,_0x541102){const _0x18482b=a77_0x185a;if(_0x27337f[_0x18482b(0xf7)]===0x0||_0x541102)return;const _0x514301=_0x31bd7c===_0x18482b(0x109)?_0x18482b(0x11d):'Personal';throw CliErrors['validation'](_0x514301+_0x18482b(0xfe)+_0x934947+'.',[_0x18482b(0x105),_0x18482b(0x10c),_0x18482b(0x10b),'Warnings:\x20'+_0x27337f[_0x18482b(0x102)](';\x20')][_0x18482b(0x102)]('\x20'));}export function buildRetargetWarning(_0x32e24a,_0x46cb52){const _0x2e8a9b=a77_0x185a;if(!_0x32e24a?.[_0x2e8a9b(0x104)]||_0x32e24a['appCode']===_0x46cb52)return[];return[{'level':_0x2e8a9b(0x116),'ruleId':_0x2e8a9b(0x10f),'file':_0x2e8a9b(0x101),'message':_0x2e8a9b(0x115)+_0x32e24a[_0x2e8a9b(0x104)]+_0x2e8a9b(0xfa)+_0x46cb52+_0x2e8a9b(0xff),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x34bcec){const _0x305d0c=a77_0x185a;if(!_0x34bcec[_0x305d0c(0xf3)]||_0x34bcec[_0x305d0c(0xf3)][_0x305d0c(0xfd)]!==_0x34bcec['scope']||!_0x34bcec['publishInput'][_0x305d0c(0x11c)])return{'status':_0x305d0c(0xef)};const _0x4387ef=_0x34bcec[_0x305d0c(0xf3)][_0x305d0c(0xfc)]||_0x34bcec[_0x305d0c(0xfc)];if(!_0x4387ef)return{'status':'not-applicable'};const _0x2e2a2e=await _0x34bcec[_0x305d0c(0x11e)](_0x34bcec[_0x305d0c(0xfd)],_0x4387ef,_0x34bcec[_0x305d0c(0x104)],_0x34bcec[_0x305d0c(0xf3)]['version']);try{_0x34bcec[_0x305d0c(0x10a)](_0x34bcec['publishInput']['files'],_0x2e2a2e);}catch{return{'status':_0x305d0c(0x100)};}return{'status':_0x305d0c(0x117),'savedSkill':{..._0x34bcec[_0x305d0c(0xf3)],'content':_0x34bcec[_0x305d0c(0x112)]['content'],'files':_0x34bcec[_0x305d0c(0x112)][_0x305d0c(0x11c)]}};}
1
+ (function(_0x5cc132,_0x2dc098){const _0x4c0150=a77_0x2318,_0x383657=_0x5cc132();while(!![]){try{const _0x4c9964=-parseInt(_0x4c0150(0xa4))/0x1*(-parseInt(_0x4c0150(0xb5))/0x2)+parseInt(_0x4c0150(0xa9))/0x3*(-parseInt(_0x4c0150(0xa2))/0x4)+-parseInt(_0x4c0150(0xc4))/0x5+parseInt(_0x4c0150(0xaf))/0x6*(parseInt(_0x4c0150(0xb2))/0x7)+-parseInt(_0x4c0150(0xb0))/0x8*(-parseInt(_0x4c0150(0xa3))/0x9)+-parseInt(_0x4c0150(0xc7))/0xa+parseInt(_0x4c0150(0xbc))/0xb;if(_0x4c9964===_0x2dc098)break;else _0x383657['push'](_0x383657['shift']());}catch(_0x411fa0){_0x383657['push'](_0x383657['shift']());}}}(a77_0x4fc7,0xdb450));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3bddaf){const _0x5e386d=a77_0x2318,_0x1d68de=_0x3bddaf[_0x5e386d(0xcb)]('scope')||'personal';if(_0x1d68de===_0x5e386d(0xa5)||_0x1d68de===_0x5e386d(0x9f))return _0x1d68de;throw CliErrors[_0x5e386d(0xa6)](_0x5e386d(0xb8)+_0x1d68de+'\x22.');}export function allowRetargetArgs(_0x3213aa){return _0x3213aa?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x509d5a=a77_0x2318;return{'targetScope':_0x509d5a(0x9f),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a77_0x4fc7(){const _0x1bbacf=['downloadRuntimeSkillPackage','4MAYkSW','14891589XwSAWl','662309PaLPQG','personal','validation','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','identical','4917801pzKVoP','scope','errors','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Local\x20Skill\x20metadata\x20appCode\x20','Company','493146xzlRWe','8OehGTN','\x20after\x20successful\x20push.','98cGQYGv','join','skill-metadata-appcode-retargeted','4VlfhRD','files','skillCode','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','remote','1832721lSvqqd','SkillHub\x20validation\x20returned\x20invalid.','Warnings:\x20','appCode','warning','length','lovrabet.skill.json','publishInput','70510Flgjhk','Builtin\x20Skill\x20','not-applicable','17450270KNArOt','Review\x20each\x20warning\x20before\x20continuing.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','verifyRuntimeSkillBundle','str','Personal','company','content'];a77_0x4fc7=function(){return _0x1bbacf;};return a77_0x4fc7();}export function remoteMissingPersonalReadOptions(_0x52d627={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x52d627};}export function remotePersonalReadOptions(_0x42b17a,_0x1eca9e={}){return{'ignoreInvalidMetadata':!![],..._0x42b17a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1eca9e};}export function throwIfBuiltinPushTarget(_0x63bdda){const _0x4ef103=a77_0x2318;if(_0x63bdda?.[_0x4ef103(0xaa)]!=='builtin')return;throw CliErrors['validation'](_0x4ef103(0xc5)+(_0x63bdda[_0x4ef103(0xb7)]??'(unknown)')+'\x20cannot\x20be\x20pushed.',_0x4ef103(0xc9));}export function throwIfPublishValidationFailed(_0x159b82,_0xa3fe7e,_0x395183){const _0x2c501c=a77_0x2318;if(_0x395183[_0x2c501c(0xab)][_0x2c501c(0xc1)]===0x0&&(_0x395183['valid']||_0x395183['warnings'][_0x2c501c(0xc1)]>0x0))return;const _0x36b3ab=_0x395183[_0x2c501c(0xab)][_0x2c501c(0xc1)]>0x0?_0x395183['errors']['join'](';\x20'):_0x2c501c(0xbd),_0x494a28=_0x159b82==='company'?_0x2c501c(0xae):_0x2c501c(0xcc);throw CliErrors[_0x2c501c(0xa6)](_0x494a28+_0x2c501c(0xac)+_0xa3fe7e+'.',_0x36b3ab);}export function throwIfUnconfirmedPublishWarnings(_0x36ef27,_0x521ec7,_0x1687b1,_0x56e4be){const _0x4a0bc7=a77_0x2318;if(_0x1687b1[_0x4a0bc7(0xc1)]===0x0||_0x56e4be)return;const _0x3feaa3=_0x36ef27===_0x4a0bc7(0x9f)?'Company':_0x4a0bc7(0xcc);throw CliErrors['validation'](_0x3feaa3+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x521ec7+'.',[_0x4a0bc7(0xc8),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x4a0bc7(0xba),_0x4a0bc7(0xbe)+_0x1687b1[_0x4a0bc7(0xb3)](';\x20')][_0x4a0bc7(0xb3)]('\x20'));}export function buildRetargetWarning(_0x429261,_0x4ce088){const _0x56300c=a77_0x2318;if(!_0x429261?.['appCode']||_0x429261[_0x56300c(0xbf)]===_0x4ce088)return[];return[{'level':_0x56300c(0xc0),'ruleId':_0x56300c(0xb4),'file':_0x56300c(0xc2),'message':_0x56300c(0xad)+_0x429261['appCode']+_0x56300c(0xb9)+_0x4ce088+_0x56300c(0xb1),'suggestion':_0x56300c(0xa7)}];}function a77_0x2318(_0x56bc5c,_0x3effcb){_0x56bc5c=_0x56bc5c-0x9f;const _0x4fc714=a77_0x4fc7();let _0x231815=_0x4fc714[_0x56bc5c];return _0x231815;}export async function runRemoteContentPreflight(_0x50d00d){const _0x4396cc=a77_0x2318;if(!_0x50d00d[_0x4396cc(0xbb)]||_0x50d00d[_0x4396cc(0xbb)]['scope']!==_0x50d00d[_0x4396cc(0xaa)]||!_0x50d00d[_0x4396cc(0xc3)][_0x4396cc(0xb6)])return{'status':_0x4396cc(0xc6)};const _0x316721=_0x50d00d[_0x4396cc(0xbb)][_0x4396cc(0xb7)]||_0x50d00d[_0x4396cc(0xb7)];if(!_0x316721)return{'status':_0x4396cc(0xc6)};const _0x517600=await _0x50d00d[_0x4396cc(0xa1)](_0x50d00d[_0x4396cc(0xaa)],_0x316721,_0x50d00d['appCode'],_0x50d00d[_0x4396cc(0xbb)]['version']);try{_0x50d00d[_0x4396cc(0xca)](_0x50d00d['publishInput'][_0x4396cc(0xb6)],_0x517600);}catch{return{'status':'different'};}return{'status':_0x4396cc(0xa8),'savedSkill':{..._0x50d00d[_0x4396cc(0xbb)],'content':_0x50d00d[_0x4396cc(0xc3)][_0x4396cc(0xa0)],'files':_0x50d00d[_0x4396cc(0xc3)]['files']}};}
@@ -1 +1 @@
1
- (function(_0x4bdd21,_0x21e235){const _0x7f4090=a78_0x16a3,_0x1c7535=_0x4bdd21();while(!![]){try{const _0x3b27c0=parseInt(_0x7f4090(0x6f))/0x1*(parseInt(_0x7f4090(0x72))/0x2)+parseInt(_0x7f4090(0x7a))/0x3+-parseInt(_0x7f4090(0x6e))/0x4*(parseInt(_0x7f4090(0x6b))/0x5)+parseInt(_0x7f4090(0x73))/0x6+parseInt(_0x7f4090(0x68))/0x7+-parseInt(_0x7f4090(0x78))/0x8*(parseInt(_0x7f4090(0x7b))/0x9)+parseInt(_0x7f4090(0x66))/0xa;if(_0x3b27c0===_0x21e235)break;else _0x1c7535['push'](_0x1c7535['shift']());}catch(_0x3abaf2){_0x1c7535['push'](_0x1c7535['shift']());}}}(a78_0x5821,0x26e90));function a78_0x16a3(_0xc5d2a2,_0x25b1f6){_0xc5d2a2=_0xc5d2a2-0x65;const _0x582112=a78_0x5821();let _0x16a34b=_0x582112[_0xc5d2a2];return _0x16a34b;}export function withRetargetExistingMetadata(_0x427a49,_0x3b046e,_0xcd6574={}){const _0x258610=a78_0x16a3,_0x5c29ad=_0xcd6574[_0x258610(0x71)]?_0x427a49[_0x258610(0x6a)]??_0x3b046e[_0x258610(0x6a)]:_0x3b046e[_0x258610(0x6a)]??_0x427a49[_0x258610(0x6a)];return{..._0x427a49,'skillName':_0x5c29ad,'description':_0x3b046e[_0x258610(0x79)]??_0x427a49[_0x258610(0x79)],'tags':Array[_0x258610(0x6d)](_0x3b046e[_0x258610(0x6c)])?_0x3b046e[_0x258610(0x6c)]:_0x427a49[_0x258610(0x6c)],'version':_0x3b046e[_0x258610(0x77)]??_0x427a49[_0x258610(0x77)],'sourceSessionId':_0x3b046e[_0x258610(0x74)]??_0x427a49[_0x258610(0x74)]};}export function buildRetargetWarning(_0x57e0d1,_0x18bb59){const _0x5aae95=a78_0x16a3;if(!_0x57e0d1?.['appCode']||_0x57e0d1[_0x5aae95(0x65)]===_0x18bb59)return[];return[{'level':_0x5aae95(0x76),'ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0x5aae95(0x67)+_0x57e0d1['appCode']+_0x5aae95(0x69)+_0x18bb59+_0x5aae95(0x70),'suggestion':_0x5aae95(0x75)}];}function a78_0x5821(){const _0x3c2501=['description','396507nYnxjq','428967eZItrU','appCode','1498070mzJwzw','Local\x20Skill\x20metadata\x20appCode\x20','187775YQSAMg','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','5jUQbRp','tags','isArray','1172372xkOiXq','2361OIkeiV','\x20after\x20successful\x20push.','preferInputSkillName','66pcDCar','966486VeyPjN','sourceSessionId','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','version','16PyVsCC'];a78_0x5821=function(){return _0x3c2501;};return a78_0x5821();}
1
+ function a78_0x1732(){const _0x48a873=['description','warning','336434bNWorx','skill-metadata-appcode-retargeted','423840oiomHH','\x20after\x20successful\x20push.','3235GhiZmy','2574nfDFwe','6886929nRLRct','isArray','15230277skaYEZ','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Local\x20Skill\x20metadata\x20appCode\x20','appCode','skillName','4XUvvJY','version','1248779BtASMf','tags','3054057GgbIZq','sourceSessionId'];a78_0x1732=function(){return _0x48a873;};return a78_0x1732();}(function(_0x44f6a4,_0x2b83ea){const _0x59f797=a78_0x306d,_0xd9b8b0=_0x44f6a4();while(!![]){try{const _0x50f40d=-parseInt(_0x59f797(0x168))/0x1+parseInt(_0x59f797(0x16e))/0x2+-parseInt(_0x59f797(0x16a))/0x3*(parseInt(_0x59f797(0x166))/0x4)+parseInt(_0x59f797(0x172))/0x5*(parseInt(_0x59f797(0x173))/0x6)+parseInt(_0x59f797(0x15f))/0x7+-parseInt(_0x59f797(0x170))/0x8+parseInt(_0x59f797(0x161))/0x9;if(_0x50f40d===_0x2b83ea)break;else _0xd9b8b0['push'](_0xd9b8b0['shift']());}catch(_0x2716ce){_0xd9b8b0['push'](_0xd9b8b0['shift']());}}}(a78_0x1732,0xc3d36));function a78_0x306d(_0x8d2cd0,_0x3f5523){_0x8d2cd0=_0x8d2cd0-0x15f;const _0x173261=a78_0x1732();let _0x306d23=_0x173261[_0x8d2cd0];return _0x306d23;}export function withRetargetExistingMetadata(_0x480be1,_0x135c0b,_0x4463c0={}){const _0x4d541d=a78_0x306d,_0x586635=_0x4463c0['preferInputSkillName']?_0x480be1[_0x4d541d(0x165)]??_0x135c0b[_0x4d541d(0x165)]:_0x135c0b[_0x4d541d(0x165)]??_0x480be1[_0x4d541d(0x165)];return{..._0x480be1,'skillName':_0x586635,'description':_0x135c0b[_0x4d541d(0x16c)]??_0x480be1[_0x4d541d(0x16c)],'tags':Array[_0x4d541d(0x160)](_0x135c0b[_0x4d541d(0x169)])?_0x135c0b[_0x4d541d(0x169)]:_0x480be1['tags'],'version':_0x135c0b[_0x4d541d(0x167)]??_0x480be1['version'],'sourceSessionId':_0x135c0b['sourceSessionId']??_0x480be1[_0x4d541d(0x16b)]};}export function buildRetargetWarning(_0x5cd7c0,_0x1c451c){const _0xf29f6e=a78_0x306d;if(!_0x5cd7c0?.[_0xf29f6e(0x164)]||_0x5cd7c0[_0xf29f6e(0x164)]===_0x1c451c)return[];return[{'level':_0xf29f6e(0x16d),'ruleId':_0xf29f6e(0x16f),'file':'lovrabet.skill.json','message':_0xf29f6e(0x163)+_0x5cd7c0[_0xf29f6e(0x164)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x1c451c+_0xf29f6e(0x171),'suggestion':_0xf29f6e(0x162)}];}
@@ -1 +1 @@
1
- (function(_0x19de2b,_0x23a29a){const _0x5118be=a79_0x4db2,_0x14a0fa=_0x19de2b();while(!![]){try{const _0xb8fc4b=parseInt(_0x5118be(0xc6))/0x1*(parseInt(_0x5118be(0xca))/0x2)+parseInt(_0x5118be(0xc8))/0x3+-parseInt(_0x5118be(0xbd))/0x4+parseInt(_0x5118be(0xbf))/0x5*(-parseInt(_0x5118be(0xc0))/0x6)+parseInt(_0x5118be(0xc5))/0x7+-parseInt(_0x5118be(0xcc))/0x8*(-parseInt(_0x5118be(0xc1))/0x9)+-parseInt(_0x5118be(0xc4))/0xa;if(_0xb8fc4b===_0x23a29a)break;else _0x14a0fa['push'](_0x14a0fa['shift']());}catch(_0x129a85){_0x14a0fa['push'](_0x14a0fa['shift']());}}}(a79_0x5599,0xd72bb));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3569ab){const _0x337adc=a79_0x4db2,_0x92bd16=_0x3569ab['trim']();if(!_0x92bd16||_0x92bd16===_0x337adc(0xbe))return[_0x337adc(0xc7),_0x337adc(0xc9)];if(_0x92bd16===_0x337adc(0xc7)||_0x92bd16===_0x337adc(0xc9))return[_0x92bd16];throw CliErrors[_0x337adc(0xcd)](_0x337adc(0xc3)+_0x3569ab);}function a79_0x4db2(_0x2ae7b5,_0xaa477f){_0x2ae7b5=_0x2ae7b5-0xbd;const _0x559963=a79_0x5599();let _0x4db286=_0x559963[_0x2ae7b5];return _0x4db286;}function a79_0x5599(){const _0x53c3e4=['Unsupported\x20Skill\x20list\x20scope:\x20','792FywQKg','validation','1478172oQteLE','all','10hhWraI','844494TwVoRg','111483pjtntp','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','22356300ibCeAk','153062pVqTmd','1nVUMdM','personal','4567980sQNNGN','company','1994342DImKjl'];a79_0x5599=function(){return _0x53c3e4;};return a79_0x5599();}export function normalizeListScope(_0x1a566e){const _0x1855f2=a79_0x4db2,_0x2b2a42=_0x1a566e[_0x1855f2(0xc2)]();if(!_0x2b2a42)return _0x1855f2(0xbe);if(_0x2b2a42===_0x1855f2(0xc7)||_0x2b2a42===_0x1855f2(0xc9)||_0x2b2a42===_0x1855f2(0xbe))return _0x2b2a42;throw CliErrors['validation'](_0x1855f2(0xcb)+_0x1a566e);}export function shouldListScope(_0x5c7f6a,_0x3c011e){const _0x49d1eb=a79_0x4db2;if(_0x5c7f6a===_0x49d1eb(0xbe))return!![];return _0x5c7f6a===_0x3c011e;}export function listScopeToRuntimeScopes(_0x96a4c6){const _0x9e0605=a79_0x4db2;if(_0x96a4c6===_0x9e0605(0xbe))return[_0x9e0605(0xc7),_0x9e0605(0xc9)];return[_0x96a4c6===_0x9e0605(0xc9)?_0x9e0605(0xc9):_0x96a4c6];}export function listScopeToRemoteScope(_0x5061c1){return _0x5061c1;}
1
+ (function(_0x5a5ad9,_0x507513){const _0x599ced=a79_0x4ab9,_0x1f6d09=_0x5a5ad9();while(!![]){try{const _0x4b6936=-parseInt(_0x599ced(0x148))/0x1+parseInt(_0x599ced(0x14b))/0x2*(-parseInt(_0x599ced(0x143))/0x3)+parseInt(_0x599ced(0x145))/0x4+-parseInt(_0x599ced(0x144))/0x5*(-parseInt(_0x599ced(0x14e))/0x6)+parseInt(_0x599ced(0x14c))/0x7+-parseInt(_0x599ced(0x142))/0x8+parseInt(_0x599ced(0x14f))/0x9*(parseInt(_0x599ced(0x140))/0xa);if(_0x4b6936===_0x507513)break;else _0x1f6d09['push'](_0x1f6d09['shift']());}catch(_0x2d1594){_0x1f6d09['push'](_0x1f6d09['shift']());}}}(a79_0x3d51,0x7f011));function a79_0x3d51(){const _0x34f68c=['28008imKGJj','6133059KCkLQb','10IfBXzm','validation','7734864GWvJOE','549555PjsBif','640FEdcfV','2355408IUZOqY','trim','company','722957IjpnLi','all','Unsupported\x20Skill\x20sync\x20scope:\x20','6ttqwmA','6242404mwEsVs','personal'];a79_0x3d51=function(){return _0x34f68c;};return a79_0x3d51();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x59770d){const _0x2dee0c=a79_0x4ab9,_0x34da11=_0x59770d[_0x2dee0c(0x146)]();if(!_0x34da11||_0x34da11===_0x2dee0c(0x149))return['personal',_0x2dee0c(0x147)];if(_0x34da11===_0x2dee0c(0x14d)||_0x34da11===_0x2dee0c(0x147))return[_0x34da11];throw CliErrors['validation'](_0x2dee0c(0x14a)+_0x59770d);}function a79_0x4ab9(_0x50afab,_0x995f10){_0x50afab=_0x50afab-0x140;const _0x3d51c2=a79_0x3d51();let _0x4ab9f1=_0x3d51c2[_0x50afab];return _0x4ab9f1;}export function normalizeListScope(_0x13898b){const _0x1dd1ea=a79_0x4ab9,_0x40aba2=_0x13898b[_0x1dd1ea(0x146)]();if(!_0x40aba2)return _0x1dd1ea(0x149);if(_0x40aba2==='personal'||_0x40aba2===_0x1dd1ea(0x147)||_0x40aba2===_0x1dd1ea(0x149))return _0x40aba2;throw CliErrors[_0x1dd1ea(0x141)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x13898b);}export function shouldListScope(_0x5e548e,_0x3dd71f){if(_0x5e548e==='all')return!![];return _0x5e548e===_0x3dd71f;}export function listScopeToRuntimeScopes(_0x4e0752){const _0x1afb1e=a79_0x4ab9;if(_0x4e0752===_0x1afb1e(0x149))return[_0x1afb1e(0x14d),_0x1afb1e(0x147)];return[_0x4e0752===_0x1afb1e(0x147)?_0x1afb1e(0x147):_0x4e0752];}export function listScopeToRemoteScope(_0x1192f1){return _0x1192f1;}
@@ -1 +1 @@
1
- function a80_0x3647(){var _0x263a2f=['skillCode','linkedPaths','24IotXGR','version','status','cacheDir','treeHash','metadataPath','32xidKgk','18HDIFNo','277599tdNqXb','appCode','230186CmLJVX','72Qffgzp','571929xafcEP','pulledAt','472825MQPSyh','218174pUckMK','skillName','766444VXWgJH','4rclqFN','readonly','76810IvxBkV'];a80_0x3647=function(){return _0x263a2f;};return a80_0x3647();}function a80_0x105e(_0x1a9ad1,_0x539f80){_0x1a9ad1=_0x1a9ad1-0x1c4;var _0x3647b4=a80_0x3647();var _0x105e96=_0x3647b4[_0x1a9ad1];return _0x105e96;}(function(_0x5eb64d,_0x4332de){var _0x5685e9=a80_0x105e,_0x160585=_0x5eb64d();while(!![]){try{var _0x1b26a4=-parseInt(_0x5685e9(0x1c7))/0x1+parseInt(_0x5685e9(0x1ca))/0x2*(parseInt(_0x5685e9(0x1c4))/0x3)+parseInt(_0x5685e9(0x1c9))/0x4+-parseInt(_0x5685e9(0x1c6))/0x5*(parseInt(_0x5685e9(0x1cf))/0x6)+-parseInt(_0x5685e9(0x1d7))/0x7*(-parseInt(_0x5685e9(0x1d5))/0x8)+-parseInt(_0x5685e9(0x1d6))/0x9*(-parseInt(_0x5685e9(0x1cc))/0xa)+-parseInt(_0x5685e9(0x1d9))/0xb*(-parseInt(_0x5685e9(0x1da))/0xc);if(_0x1b26a4===_0x4332de)break;else _0x160585['push'](_0x160585['shift']());}catch(_0x4a87f1){_0x160585['push'](_0x160585['shift']());}}}(a80_0x3647,0x43629));export function summarizeRuntimeSkill(_0x427f1d){var _0x43206=a80_0x105e;return{'id':_0x427f1d['id'],'skillCode':_0x427f1d[_0x43206(0x1cd)],'skillName':_0x427f1d[_0x43206(0x1c8)],'scope':_0x427f1d['scope'],'version':_0x427f1d[_0x43206(0x1d0)],'readonly':_0x427f1d[_0x43206(0x1cb)]};}export function summarizeLocalRuntimeSkill(_0x4d9a49){var _0xe11b61=a80_0x105e;return{'id':_0x4d9a49['id'],'skillCode':_0x4d9a49['skillCode'],'skillName':_0x4d9a49[_0xe11b61(0x1c8)],'scope':_0x4d9a49['scope'],'appCode':_0x4d9a49[_0xe11b61(0x1d8)],'version':_0x4d9a49[_0xe11b61(0x1d0)],'status':_0x4d9a49[_0xe11b61(0x1d1)],'readonly':_0x4d9a49[_0xe11b61(0x1cb)],'tags':_0x4d9a49['tags'],'dir':_0x4d9a49['dir'],'cacheDir':_0x4d9a49[_0xe11b61(0x1d2)],'skillMdPath':_0x4d9a49['skillMdPath'],'metadataPath':_0x4d9a49[_0xe11b61(0x1d4)],'linkedPaths':_0x4d9a49[_0xe11b61(0x1ce)],'contentHash':_0x4d9a49['contentHash'],'treeHash':_0x4d9a49[_0xe11b61(0x1d3)],'pulledAt':_0x4d9a49[_0xe11b61(0x1c5)]};}
1
+ function a80_0x4685(_0x11e35f,_0x18d698){_0x11e35f=_0x11e35f-0x1d0;var _0x848677=a80_0x8486();var _0x4685b9=_0x848677[_0x11e35f];return _0x4685b9;}(function(_0x284b12,_0x409574){var _0x17a9b6=a80_0x4685,_0x39471b=_0x284b12();while(!![]){try{var _0x48d82c=-parseInt(_0x17a9b6(0x1d9))/0x1+-parseInt(_0x17a9b6(0x1d6))/0x2*(parseInt(_0x17a9b6(0x1d5))/0x3)+parseInt(_0x17a9b6(0x1e1))/0x4+-parseInt(_0x17a9b6(0x1dd))/0x5+-parseInt(_0x17a9b6(0x1e6))/0x6+-parseInt(_0x17a9b6(0x1e5))/0x7*(parseInt(_0x17a9b6(0x1d1))/0x8)+-parseInt(_0x17a9b6(0x1d3))/0x9*(-parseInt(_0x17a9b6(0x1db))/0xa);if(_0x48d82c===_0x409574)break;else _0x39471b['push'](_0x39471b['shift']());}catch(_0x492b89){_0x39471b['push'](_0x39471b['shift']());}}}(a80_0x8486,0x8e5fb));function a80_0x8486(){var _0x221d29=['1570238wBisqO','skillMdPath','skillName','799771fvukJu','linkedPaths','1342700ZjZAkS','version','874450WwIdME','treeHash','contentHash','scope','1056904eWPFdU','dir','tags','appCode','7ThhizK','3111882zRPMMb','metadataPath','status','6075088ONMrVv','readonly','225vTRiYx','skillCode','3FPVrhQ'];a80_0x8486=function(){return _0x221d29;};return a80_0x8486();}export function summarizeRuntimeSkill(_0x24d948){var _0x155d32=a80_0x4685;return{'id':_0x24d948['id'],'skillCode':_0x24d948[_0x155d32(0x1d4)],'skillName':_0x24d948[_0x155d32(0x1d8)],'scope':_0x24d948[_0x155d32(0x1e0)],'version':_0x24d948[_0x155d32(0x1dc)],'readonly':_0x24d948[_0x155d32(0x1d2)]};}export function summarizeLocalRuntimeSkill(_0x87d3b5){var _0x261e10=a80_0x4685;return{'id':_0x87d3b5['id'],'skillCode':_0x87d3b5[_0x261e10(0x1d4)],'skillName':_0x87d3b5[_0x261e10(0x1d8)],'scope':_0x87d3b5[_0x261e10(0x1e0)],'appCode':_0x87d3b5[_0x261e10(0x1e4)],'version':_0x87d3b5['version'],'status':_0x87d3b5[_0x261e10(0x1d0)],'readonly':_0x87d3b5[_0x261e10(0x1d2)],'tags':_0x87d3b5[_0x261e10(0x1e3)],'dir':_0x87d3b5[_0x261e10(0x1e2)],'cacheDir':_0x87d3b5['cacheDir'],'skillMdPath':_0x87d3b5[_0x261e10(0x1d7)],'metadataPath':_0x87d3b5[_0x261e10(0x1e7)],'linkedPaths':_0x87d3b5[_0x261e10(0x1da)],'contentHash':_0x87d3b5[_0x261e10(0x1df)],'treeHash':_0x87d3b5[_0x261e10(0x1de)],'pulledAt':_0x87d3b5['pulledAt']};}