@lovrabet/lovrabet-cli 2.3.4-beta.2 → 2.3.5-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 (200) hide show
  1. package/README.md +44 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.d.ts +2 -0
  29. package/lib/commands/data/import-excel.js +1 -0
  30. package/lib/commands/data/index.js +1 -1
  31. package/lib/commands/dataset/detail.js +1 -1
  32. package/lib/commands/dataset/index.js +1 -1
  33. package/lib/commands/dataset/list.js +1 -1
  34. package/lib/commands/dataset/sdk-doc.js +1 -1
  35. package/lib/commands/doctor.js +1 -1
  36. package/lib/commands/file/index.js +1 -1
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/notification/config-list.js +1 -1
  41. package/lib/commands/notification/index.js +1 -1
  42. package/lib/commands/notification/shared.js +1 -1
  43. package/lib/commands/ocr/index.js +1 -1
  44. package/lib/commands/permit/dataset-get.js +1 -1
  45. package/lib/commands/permit/dataset-set.js +1 -1
  46. package/lib/commands/permit/index.js +1 -1
  47. package/lib/commands/permit/page-get.js +1 -1
  48. package/lib/commands/permit/page-set.js +1 -1
  49. package/lib/commands/permit/role-menus-set.js +1 -1
  50. package/lib/commands/permit/role-menus.js +1 -1
  51. package/lib/commands/permit/shared.js +1 -1
  52. package/lib/commands/personal-bff/index.js +1 -1
  53. package/lib/commands/registry.js +1 -1
  54. package/lib/commands/role/create.js +1 -1
  55. package/lib/commands/role/delete.js +1 -1
  56. package/lib/commands/role/detail.js +1 -1
  57. package/lib/commands/role/index.js +1 -1
  58. package/lib/commands/role/list.js +1 -1
  59. package/lib/commands/role/shared.js +1 -1
  60. package/lib/commands/role/update.js +1 -1
  61. package/lib/commands/role/user-add.js +1 -1
  62. package/lib/commands/role/user-remove.js +1 -1
  63. package/lib/commands/schedule/index.js +1 -1
  64. package/lib/commands/schema.js +1 -1
  65. package/lib/commands/service/dynamic.js +1 -1
  66. package/lib/commands/service/function-name-adapter.js +1 -1
  67. package/lib/commands/service/index.js +1 -1
  68. package/lib/commands/service/registry.js +1 -1
  69. package/lib/commands/skill/commands/create.js +1 -1
  70. package/lib/commands/skill/commands/diagram.js +1 -1
  71. package/lib/commands/skill/commands/install.js +1 -1
  72. package/lib/commands/skill/commands/list.js +1 -1
  73. package/lib/commands/skill/commands/push.js +1 -1
  74. package/lib/commands/skill/commands/validate.js +1 -1
  75. package/lib/commands/skill/diagram.js +1 -1
  76. package/lib/commands/skill/flags.js +1 -1
  77. package/lib/commands/skill/index.js +1 -1
  78. package/lib/commands/skill/manifest-helpers.js +1 -1
  79. package/lib/commands/skill/push-execute.js +1 -1
  80. package/lib/commands/skill/push-flow-helpers.js +1 -1
  81. package/lib/commands/skill/push-retarget.js +1 -1
  82. package/lib/commands/skill/scopes.js +1 -1
  83. package/lib/commands/skill/summary.js +1 -1
  84. package/lib/commands/skill/templates.js +1 -1
  85. package/lib/commands/skill/validate.js +1 -1
  86. package/lib/commands/sql/detail.js +1 -1
  87. package/lib/commands/sql/exec.js +1 -1
  88. package/lib/commands/sql/index.js +1 -1
  89. package/lib/commands/update.js +1 -1
  90. package/lib/commands/user-account/bind.js +1 -1
  91. package/lib/commands/user-account/index.js +1 -1
  92. package/lib/commands/workspace/index.js +1 -1
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.js +1 -1
  95. package/lib/constant/app.js +1 -1
  96. package/lib/constant/auth-mode.js +1 -1
  97. package/lib/constant/cli.js +1 -1
  98. package/lib/constant/defaults.js +1 -1
  99. package/lib/constant/distribution.js +1 -1
  100. package/lib/constant/domain.js +1 -1
  101. package/lib/constant/env.js +1 -1
  102. package/lib/constant/output.js +1 -1
  103. package/lib/constant/product.js +1 -1
  104. package/lib/constant/region.js +1 -1
  105. package/lib/constant/risk.js +1 -1
  106. package/lib/constant/url.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/api-client.d.ts +19 -5
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-search-client.js +1 -1
  112. package/lib/core/sdk-client.js +1 -1
  113. package/lib/errors.d.ts +1 -0
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.d.ts +5 -0
  116. package/lib/framework/access-error.js +1 -0
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.d.ts +2 -17
  129. package/lib/framework/runner-error.js +1 -1
  130. package/lib/framework/runner.js +1 -1
  131. package/lib/framework/schema-export.js +1 -1
  132. package/lib/framework/service-order.js +1 -1
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.js +1 -1
  137. package/lib/generated/routing-contract.js +1 -1
  138. package/lib/help.js +1 -1
  139. package/lib/postinstall.js +1 -1
  140. package/lib/runtime/confirmation.js +1 -1
  141. package/lib/runtime/event.js +1 -1
  142. package/lib/runtime/index.js +1 -1
  143. package/lib/runtime/queue.js +1 -1
  144. package/lib/runtime/resolve.js +1 -1
  145. package/lib/services/dataset-import/auto-id-runner.d.ts +25 -0
  146. package/lib/services/dataset-import/auto-id-runner.js +1 -0
  147. package/lib/services/dataset-import/excel-reader.d.ts +3 -0
  148. package/lib/services/dataset-import/excel-reader.js +1 -0
  149. package/lib/services/dataset-import/metadata.d.ts +2 -0
  150. package/lib/services/dataset-import/metadata.js +1 -0
  151. package/lib/services/dataset-import/preview.d.ts +4 -0
  152. package/lib/services/dataset-import/preview.js +1 -0
  153. package/lib/services/dataset-import/runner.d.ts +63 -0
  154. package/lib/services/dataset-import/runner.js +1 -0
  155. package/lib/services/dataset-import/types.d.ts +33 -0
  156. package/lib/services/dataset-import/types.js +1 -0
  157. package/lib/skills/builtin-skill.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  160. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  161. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  162. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  163. package/lib/skills/runtime-skill-sync/links.js +1 -1
  164. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  165. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  166. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  167. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  168. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  169. package/lib/skills/runtime-skill-sync/push.js +1 -1
  170. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  173. package/lib/skills/runtime-skill-sync.js +1 -1
  174. package/lib/skills/skill-presence.js +1 -1
  175. package/lib/utils/access-key-redaction.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cli-version-check.js +1 -1
  178. package/lib/utils/cli-version-policy.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/lossless-json.js +1 -1
  181. package/lib/utils/params.js +1 -1
  182. package/lib/utils/positive-safe-integer.js +1 -1
  183. package/lib/utils/redaction.js +1 -1
  184. package/lib/utils/update-notice.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/write-cli-side-channel.js +1 -1
  187. package/package.json +8 -3
  188. package/skills/lovrabet/SKILL.md +10 -5
  189. package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
  190. package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
  191. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  192. package/skills/lovrabet/guides/troubleshooting.md +7 -1
  193. package/skills/lovrabet/references/instant-api-workflow.md +6 -2
  194. package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
  195. package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
  196. package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
  197. package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
  198. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
  199. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
  200. package/skills/lovrabet.manifest.json +5 -3
@@ -1 +1 @@
1
- const a66_0x1bca94=a66_0x4a9e;(function(_0xab158b,_0x5de540){const _0x15200c=a66_0x4a9e,_0x5ec848=_0xab158b();while(!![]){try{const _0x250bfc=-parseInt(_0x15200c(0x14f))/0x1+-parseInt(_0x15200c(0x136))/0x2+-parseInt(_0x15200c(0x153))/0x3+parseInt(_0x15200c(0x142))/0x4*(-parseInt(_0x15200c(0x138))/0x5)+parseInt(_0x15200c(0x151))/0x6*(parseInt(_0x15200c(0x158))/0x7)+parseInt(_0x15200c(0x144))/0x8*(-parseInt(_0x15200c(0x140))/0x9)+-parseInt(_0x15200c(0x14c))/0xa*(-parseInt(_0x15200c(0x15b))/0xb);if(_0x250bfc===_0x5de540)break;else _0x5ec848['push'](_0x5ec848['shift']());}catch(_0x3d97a7){_0x5ec848['push'](_0x5ec848['shift']());}}}(a66_0x2b65,0x833b0));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a66_0x4a9e(_0x570566,_0x111151){_0x570566=_0x570566-0x131;const _0x2b65ed=a66_0x2b65();let _0x4a9e30=_0x2b65ed[_0x570566];return _0x4a9e30;}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 a66_0x2b65(){const _0x14e2c8=['diagram-push','Skill\x20diagram\x20for\x20','10hyVQOZ','found','appCode','1032014eSBJxl','Created','3668694juYmxw','scope','1804044phWwFW','unchanged','company','diagram-file','action','7bdzijn','write','trim','36605459xkttNU','str','validation','Updated','Skill\x20diagram\x20validation\x20passed\x20for\x20','skill','skillCode','271696uKhxcH','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','3696265WBlvUj','Found\x20Skill\x20diagram\x20for\x20','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','expectedDiagramRevision','diagram-validate','skill-code','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','version','945mpYwvA','test','4IVlPmx','\x20is\x20unchanged.','68056LDSeCN','read','expected-diagram-revision','source-fingerprint','num','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.'];a66_0x2b65=function(){return _0x14e2c8;};return a66_0x2b65();}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(_0x424616){const _0x1d0e74=a66_0x4a9e,_0x510529=_0x424616[_0x1d0e74(0x15c)](_0x1d0e74(0x13d))[_0x1d0e74(0x15a)](),_0x284768=_0x424616[_0x1d0e74(0x15c)](_0x1d0e74(0x13f))[_0x1d0e74(0x15a)](),_0x2f1e41=_0x424616[_0x1d0e74(0x15c)]('scope');if(!_0x510529||!_0x284768||_0x2f1e41!=='personal'&&_0x2f1e41!==_0x1d0e74(0x155))throw CliErrors[_0x1d0e74(0x131)](_0x1d0e74(0x13e));return{'skillCode':_0x510529,'version':_0x284768,'scope':_0x2f1e41};}async function readDiagramWriteInput(_0x14cf94){const _0x5a0ebe=a66_0x4a9e,_0x41f3e6=_0x14cf94[_0x5a0ebe(0x148)](_0x5a0ebe(0x146)),_0xcb5472=_0x14cf94[_0x5a0ebe(0x15c)](_0x5a0ebe(0x147))[_0x5a0ebe(0x15a)]();if(!Number['isInteger'](_0x41f3e6)||_0x41f3e6<0x0)throw CliErrors[_0x5a0ebe(0x131)]('--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.');if(!/^sha256:[0-9a-f]{64}$/[_0x5a0ebe(0x141)](_0xcb5472))throw CliErrors[_0x5a0ebe(0x131)](_0x5a0ebe(0x137));return{'expectedDiagramRevision':_0x41f3e6,'sourceFingerprint':_0xcb5472,'diagram':await readRequiredSkillDiagram(_0x14cf94['str'](_0x5a0ebe(0x156)))};}export const diagramValidateCommand={'service':'skill','command':a66_0x1bca94(0x13c),'description':'Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','risk':a66_0x1bca94(0x145),'flags':WRITE_FLAGS,async 'execute'(_0x296a9c){const _0x326d17=a66_0x1bca94,_0x370d6e=readDiagramTarget(_0x296a9c),_0x1cdde0=await validateRuntimeSkillVersionDiagram(_0x296a9c[_0x326d17(0x14e)],_0x370d6e['skillCode'],_0x370d6e['version'],_0x370d6e['scope'],await readDiagramWriteInput(_0x296a9c));return{'ok':!![],'data':_0x1cdde0,'message':_0x326d17(0x133)+_0x370d6e[_0x326d17(0x135)]+'@'+_0x370d6e[_0x326d17(0x13f)]+'.'};}};export const diagramPushCommand={'service':a66_0x1bca94(0x134),'command':a66_0x1bca94(0x14a),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a66_0x1bca94(0x159),'confirmationDescription':a66_0x1bca94(0x149),'flags':WRITE_FLAGS,async 'execute'(_0x16a47b){const _0x520734=a66_0x1bca94,_0x260a16=readDiagramTarget(_0x16a47b),_0x3051ae=await putRuntimeSkillVersionDiagram(_0x16a47b[_0x520734(0x14e)],_0x260a16[_0x520734(0x135)],_0x260a16['version'],_0x260a16[_0x520734(0x152)],await readDiagramWriteInput(_0x16a47b));return{'ok':!![],'data':_0x3051ae,'message':_0x3051ae[_0x520734(0x157)]===_0x520734(0x154)?_0x520734(0x14b)+_0x260a16['skillCode']+'@'+_0x260a16[_0x520734(0x13f)]+_0x520734(0x143):(_0x3051ae[_0x520734(0x157)]==='created'?_0x520734(0x150):_0x520734(0x132))+'\x20Skill\x20diagram\x20for\x20'+_0x260a16[_0x520734(0x135)]+'@'+_0x260a16[_0x520734(0x13f)]+'.'};}};export const diagramShowCommand={'service':'skill','command':'diagram-show','description':a66_0x1bca94(0x13a),'risk':a66_0x1bca94(0x145),'flags':TARGET_FLAGS,async 'execute'(_0x8ba444){const _0x13b760=a66_0x1bca94,_0x16af35=readDiagramTarget(_0x8ba444),_0x1ed24b=await getRuntimeSkillVersionDiagram(_0x8ba444[_0x13b760(0x14e)],_0x16af35[_0x13b760(0x135)],_0x16af35[_0x13b760(0x13f)],_0x16af35['scope']);return{'ok':!![],'data':_0x1ed24b,'message':_0x1ed24b[_0x13b760(0x14d)]?_0x13b760(0x139)+_0x16af35[_0x13b760(0x135)]+'@'+_0x16af35[_0x13b760(0x13f)]+';\x20next\x20write\x20expects\x20revision\x20'+_0x1ed24b[_0x13b760(0x13b)]+'.':'No\x20Skill\x20diagram\x20is\x20stored\x20for\x20'+_0x16af35[_0x13b760(0x135)]+'@'+_0x16af35[_0x13b760(0x13f)]+';\x20first\x20write\x20expects\x20revision\x20'+_0x1ed24b[_0x13b760(0x13b)]+'.'};}};
1
+ const a67_0x45eaf1=a67_0x182b;(function(_0x4f4dda,_0x422431){const _0x3a54cb=a67_0x182b,_0x40fce4=_0x4f4dda();while(!![]){try{const _0x109385=parseInt(_0x3a54cb(0xa5))/0x1*(parseInt(_0x3a54cb(0xac))/0x2)+parseInt(_0x3a54cb(0x9d))/0x3*(-parseInt(_0x3a54cb(0xa9))/0x4)+parseInt(_0x3a54cb(0xb8))/0x5*(parseInt(_0x3a54cb(0xb4))/0x6)+parseInt(_0x3a54cb(0x97))/0x7*(-parseInt(_0x3a54cb(0xa1))/0x8)+-parseInt(_0x3a54cb(0xae))/0x9+parseInt(_0x3a54cb(0xa2))/0xa*(-parseInt(_0x3a54cb(0xa7))/0xb)+parseInt(_0x3a54cb(0x96))/0xc;if(_0x109385===_0x422431)break;else _0x40fce4['push'](_0x40fce4['shift']());}catch(_0xc916d2){_0x40fce4['push'](_0x40fce4['shift']());}}}(a67_0xe9c8,0xb65f0));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(_0x15cb9a){const _0x5b2968=a67_0x182b,_0xf4e9eb=_0x15cb9a[_0x5b2968(0xa8)](_0x5b2968(0xa0))[_0x5b2968(0x94)](),_0x244c35=_0x15cb9a[_0x5b2968(0xa8)](_0x5b2968(0x95))[_0x5b2968(0x94)](),_0x111076=_0x15cb9a['str'](_0x5b2968(0x9e));if(!_0xf4e9eb||!_0x244c35||_0x111076!==_0x5b2968(0x91)&&_0x111076!==_0x5b2968(0xbc))throw CliErrors[_0x5b2968(0x98)](_0x5b2968(0x99));return{'skillCode':_0xf4e9eb,'version':_0x244c35,'scope':_0x111076};}function a67_0xe9c8(){const _0x59d9f5=['Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','trim','version','32597268AnCwot','138922ZbAEjF','validation','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','expectedDiagramRevision','source-fingerprint','unchanged','15RlTvIb','scope','Skill\x20diagram\x20for\x20','skill-code','544tyHJQm','20PYRkay','expected-diagram-revision','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','235149qsNuhC','diagram-show','5175995euSnNh','str','665404MRiUMZ','skillCode','\x20is\x20unchanged.','6RRqDft','\x20Skill\x20diagram\x20for\x20','4484295WegupJ','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','write','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','test','skill','6HhJDtk','read','Created','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','4728670pCQmjx','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',';\x20first\x20write\x20expects\x20revision\x20','company','action','created','diagram-validate','appCode','diagram-push','personal','num'];a67_0xe9c8=function(){return _0x59d9f5;};return a67_0xe9c8();}function a67_0x182b(_0x21fe1c,_0x3dc7c9){_0x21fe1c=_0x21fe1c-0x8d;const _0xe9c882=a67_0xe9c8();let _0x182bb4=_0xe9c882[_0x21fe1c];return _0x182bb4;}async function readDiagramWriteInput(_0x370499){const _0x3292cf=a67_0x182b,_0x575bdb=_0x370499[_0x3292cf(0x92)](_0x3292cf(0xa3)),_0x130ab6=_0x370499[_0x3292cf(0xa8)](_0x3292cf(0x9b))['trim']();if(!Number['isInteger'](_0x575bdb)||_0x575bdb<0x0)throw CliErrors[_0x3292cf(0x98)](_0x3292cf(0xa4));if(!/^sha256:[0-9a-f]{64}$/[_0x3292cf(0xb2)](_0x130ab6))throw CliErrors[_0x3292cf(0x98)](_0x3292cf(0xb1));return{'expectedDiagramRevision':_0x575bdb,'sourceFingerprint':_0x130ab6,'diagram':await readRequiredSkillDiagram(_0x370499[_0x3292cf(0xa8)]('diagram-file'))};}export const diagramValidateCommand={'service':'skill','command':a67_0x45eaf1(0x8e),'description':a67_0x45eaf1(0x93),'risk':a67_0x45eaf1(0xb5),'flags':WRITE_FLAGS,async 'execute'(_0x482fb7){const _0x449131=a67_0x45eaf1,_0x4e4996=readDiagramTarget(_0x482fb7),_0x70fad8=await validateRuntimeSkillVersionDiagram(_0x482fb7[_0x449131(0x8f)],_0x4e4996['skillCode'],_0x4e4996[_0x449131(0x95)],_0x4e4996[_0x449131(0x9e)],await readDiagramWriteInput(_0x482fb7));return{'ok':!![],'data':_0x70fad8,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0x4e4996[_0x449131(0xaa)]+'@'+_0x4e4996[_0x449131(0x95)]+'.'};}};export const diagramPushCommand={'service':a67_0x45eaf1(0xb3),'command':a67_0x45eaf1(0x90),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a67_0x45eaf1(0xb0),'confirmationDescription':a67_0x45eaf1(0xb9),'flags':WRITE_FLAGS,async 'execute'(_0x1b27b4){const _0x132324=a67_0x45eaf1,_0x2f5c63=readDiagramTarget(_0x1b27b4),_0x203b8d=await putRuntimeSkillVersionDiagram(_0x1b27b4[_0x132324(0x8f)],_0x2f5c63[_0x132324(0xaa)],_0x2f5c63[_0x132324(0x95)],_0x2f5c63[_0x132324(0x9e)],await readDiagramWriteInput(_0x1b27b4));return{'ok':!![],'data':_0x203b8d,'message':_0x203b8d[_0x132324(0xbd)]===_0x132324(0x9c)?_0x132324(0x9f)+_0x2f5c63[_0x132324(0xaa)]+'@'+_0x2f5c63[_0x132324(0x95)]+_0x132324(0xab):(_0x203b8d[_0x132324(0xbd)]===_0x132324(0x8d)?_0x132324(0xb6):'Updated')+_0x132324(0xad)+_0x2f5c63[_0x132324(0xaa)]+'@'+_0x2f5c63[_0x132324(0x95)]+'.'};}};export const diagramShowCommand={'service':'skill','command':a67_0x45eaf1(0xa6),'description':a67_0x45eaf1(0xb7),'risk':a67_0x45eaf1(0xb5),'flags':TARGET_FLAGS,async 'execute'(_0x433449){const _0x4126a1=a67_0x45eaf1,_0x770b7e=readDiagramTarget(_0x433449),_0x24cc08=await getRuntimeSkillVersionDiagram(_0x433449['appCode'],_0x770b7e[_0x4126a1(0xaa)],_0x770b7e[_0x4126a1(0x95)],_0x770b7e[_0x4126a1(0x9e)]);return{'ok':!![],'data':_0x24cc08,'message':_0x24cc08[_0x4126a1(0xba)]?'Found\x20Skill\x20diagram\x20for\x20'+_0x770b7e['skillCode']+'@'+_0x770b7e[_0x4126a1(0x95)]+';\x20next\x20write\x20expects\x20revision\x20'+_0x24cc08[_0x4126a1(0x9a)]+'.':_0x4126a1(0xaf)+_0x770b7e[_0x4126a1(0xaa)]+'@'+_0x770b7e[_0x4126a1(0x95)]+_0x4126a1(0xbb)+_0x24cc08[_0x4126a1(0x9a)]+'.'};}};
@@ -1 +1 @@
1
- function a67_0x3355(){const _0x15c2fb=['updated','skillCode','42pEMlwr','code','unchanged','production','project','7alOoyd','str','226278DHQkey','global','filter','scope','12785440phvKug','7032210FQaUtj','bool','skill','version','map','skillRoots','accessKey','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','15126327sxwwHk','created','../../../skills/runtime-skill-sync.js','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','read','min','from','all','appCode','force','trim','skipped','includes','805338AHnEWf','length','install','personal','\x20company\x20Skill(s).','action','removed','8EInTKH','company','2604993jaHVRO','72868580PHBJzJ'];a67_0x3355=function(){return _0x15c2fb;};return a67_0x3355();}const a67_0x5a6937=a67_0x18d7;(function(_0x558cdd,_0x48845a){const _0x5518f2=a67_0x18d7,_0x16a238=_0x558cdd();while(!![]){try{const _0xfd1335=parseInt(_0x5518f2(0xf4))/0x1*(-parseInt(_0x5518f2(0xf6))/0x2)+-parseInt(_0x5518f2(0xeb))/0x3*(parseInt(_0x5518f2(0xe9))/0x4)+-parseInt(_0x5518f2(0xfb))/0x5+parseInt(_0x5518f2(0xe2))/0x6*(parseInt(_0x5518f2(0xef))/0x7)+-parseInt(_0x5518f2(0xfa))/0x8+-parseInt(_0x5518f2(0xd5))/0x9+parseInt(_0x5518f2(0xec))/0xa;if(_0xfd1335===_0x48845a)break;else _0x16a238['push'](_0x16a238['shift']());}catch(_0x2f28cf){_0x16a238['push'](_0x16a238['shift']());}}}(a67_0x3355,0xd669c));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':a67_0x5a6937(0xfd),'command':a67_0x5a6937(0xe4),'description':a67_0x5a6937(0xd8),'risk':a67_0x5a6937(0xd9),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0xd51928){return syncRuntimeSkills(_0xd51928);}};async function syncRuntimeSkills(_0x57729c){const _0x1d015b=a67_0x5a6937,{downloadRuntimeSkillPackage:_0xc0b979,listRuntimeSkills:_0x2448ab}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x160019,materializeRuntimeSkill:_0x4b8e29,pruneStaleRuntimeSkillCache:_0x2d5a59,pruneStaleRuntimeSkillLinks:_0x284f3d,resolveRuntimeSkillInstallTarget:_0x139dd8,reuseMaterializedRuntimeSkill:_0x597bcf}=await import(_0x1d015b(0xd7)),_0x48e6f1=_0x57729c[_0x1d015b(0xf5)](_0x1d015b(0xf0)),_0x34baaa=normalizeSyncScopes(_0x57729c['str'](_0x1d015b(0xf9))),_0x5378fe=_0x57729c['envName']??_0x1d015b(0xf2),_0x100727=_0x57729c[_0x1d015b(0xd3)],_0x8c363d=_0x57729c[_0x1d015b(0xfc)](_0x1d015b(0xde));if(!_0x100727)throw CliErrors['authRequired'](_0x1d015b(0xd4));const _0x45461f=_0x139dd8(_0x57729c['appCode'],_0x57729c[_0x1d015b(0xfc)](_0x1d015b(0xf3))?'project':_0x1d015b(0xf7)),_0x36394b=_0x139dd8(_0x57729c[_0x1d015b(0xdd)],_0x45461f[_0x1d015b(0xf9)]===_0x1d015b(0xf3)?_0x1d015b(0xf7):_0x1d015b(0xf3)),_0x135ec0=await _0x2448ab({'appCode':_0x57729c['appCode'],'scope':_0x34baaa[_0x1d015b(0xe3)]===0x1?_0x34baaa[0x0]:_0x1d015b(0xdc),'code':_0x48e6f1[_0x1d015b(0xdf)]()||undefined}),_0x369e6d=_0x34baaa[_0x1d015b(0xe1)](_0x1d015b(0xe5))?_0x135ec0[_0x1d015b(0xe5)]:[],_0x4ad8d5=_0x34baaa['includes']('company')?_0x135ec0[_0x1d015b(0xea)]:[],_0x186a38=new Set([..._0x369e6d[_0x1d015b(0xd1)](_0x1097a7=>_0x1097a7[_0x1d015b(0xee)]?.[_0x1d015b(0xdf)]())['filter'](_0x2ddc3a=>Boolean(_0x2ddc3a)),..._0x4ad8d5[_0x1d015b(0xd1)](_0x1c8ecb=>_0x1c8ecb[_0x1d015b(0xee)]?.[_0x1d015b(0xdf)]())[_0x1d015b(0xf8)](_0xa5fc3=>Boolean(_0xa5fc3))]),_0x1c1667=_0x48e6f1[_0x1d015b(0xdf)]()?[_0x48e6f1[_0x1d015b(0xdf)]()]:undefined,_0x72cfd4=_0x34baaa[_0x1d015b(0xe3)]===0x2&&_0x34baaa[_0x1d015b(0xe1)](_0x1d015b(0xe5))&&_0x34baaa[_0x1d015b(0xe1)]('company'),_0x5a47dc=_0x72cfd4?_0x284f3d(_0x45461f,_0x186a38,_0x1c1667):[],_0x59d685=_0x2d5a59({'env':_0x5378fe,'accessKey':_0x100727,'appCode':_0x57729c[_0x1d015b(0xdd)],'activeSkillCodes':_0x186a38,'pruneSkillCodes':_0x1c1667,'scopes':_0x34baaa,'protectedLinkRoots':_0x36394b[_0x1d015b(0xd2)]}),_0x33bd4b=[..._0x369e6d[_0x1d015b(0xd1)](_0x4cbbac=>({'skill':_0x4cbbac,'scope':_0x1d015b(0xe5)})),..._0x4ad8d5['map'](_0x2f72ff=>({'skill':_0x2f72ff,'scope':'company'}))],_0x397a5e=await mapConcurrent(_0x33bd4b,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x5665ef,scope:_0x3e6282})=>{const _0x4f6af1=_0x1d015b,_0x43a936=_0x597bcf(_0x5665ef,_0x3e6282,{'env':_0x5378fe,'accessKey':_0x100727,'appCode':_0x57729c[_0x4f6af1(0xdd)]});if(_0x43a936)return _0x43a936;return _0x4b8e29(_0x5665ef,_0x3e6282,{'env':_0x5378fe,'accessKey':_0x100727,'appCode':_0x57729c[_0x4f6af1(0xdd)],'force':_0x8c363d,'packageBytes':await downloadSkillPackage(_0x5665ef,_0x3e6282,_0x57729c[_0x4f6af1(0xdd)],_0xc0b979)});}),_0x1f53ef=_0x160019(_0x397a5e,_0x45461f),_0x20023a=countLinkActions(_0x1f53ef);return{'ok':!![],'data':{'appCode':_0x57729c[_0x1d015b(0xdd)],..._0x45461f[_0x1d015b(0xf9)]==='project'?{'installTarget':{'scope':_0x45461f['scope'],'skillRoots':[..._0x45461f[_0x1d015b(0xd2)]]}}:{},'personal':_0x369e6d[_0x1d015b(0xe3)],'company':_0x4ad8d5['length'],'materialized':_0x397a5e[_0x1d015b(0xe3)],'links':{'total':_0x1f53ef['length'],'created':_0x20023a[_0x1d015b(0xd6)]??0x0,'updated':_0x20023a[_0x1d015b(0xed)]??0x0,'unchanged':_0x20023a[_0x1d015b(0xf1)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x5a47dc[_0x1d015b(0xf8)](_0x4d59ac=>_0x4d59ac[_0x1d015b(0xe7)]==='removed')[_0x1d015b(0xe3)],'cacheDirs':_0x59d685[_0x1d015b(0xf8)](_0xbaf393=>_0xbaf393[_0x1d015b(0xe7)]===_0x1d015b(0xe8))[_0x1d015b(0xe3)],'skipped':[..._0x5a47dc,..._0x59d685][_0x1d015b(0xf8)](_0x55407d=>_0x55407d['action']===_0x1d015b(0xe0))['length']},'skills':{'personal':_0x369e6d[_0x1d015b(0xd1)](summarizeRuntimeSkill),'company':_0x4ad8d5[_0x1d015b(0xd1)](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x369e6d[_0x1d015b(0xe3)]+'\x20personal\x20and\x20'+_0x4ad8d5[_0x1d015b(0xe3)]+_0x1d015b(0xe6)};}async function mapConcurrent(_0x58de00,_0x1ae1b5,_0x3937ad){const _0x117cc2=a67_0x5a6937,_0x4f39d9=new Array(_0x58de00['length']);let _0x1141c0=0x0;const _0x5007ff=Array[_0x117cc2(0xdb)]({'length':Math[_0x117cc2(0xda)](_0x1ae1b5,_0x58de00[_0x117cc2(0xe3)])},async()=>{const _0x252dc2=_0x117cc2;while(_0x1141c0<_0x58de00[_0x252dc2(0xe3)]){const _0x313c65=_0x1141c0;_0x1141c0+=0x1,_0x4f39d9[_0x313c65]=await _0x3937ad(_0x58de00[_0x313c65]);}});return await Promise[_0x117cc2(0xdc)](_0x5007ff),_0x4f39d9;}function a67_0x18d7(_0x30051d,_0x1be488){_0x30051d=_0x30051d-0xd0;const _0x335534=a67_0x3355();let _0x18d7e9=_0x335534[_0x30051d];return _0x18d7e9;}async function downloadSkillPackage(_0x8d66c0,_0x3cdfe7,_0x1be1cb,_0x1a56d1){const _0xde09f8=a67_0x5a6937,_0x2bc9ca=_0x8d66c0[_0xde09f8(0xd0)]?.['trim']();return _0x2bc9ca?_0x1a56d1(_0x3cdfe7,_0x8d66c0[_0xde09f8(0xee)],_0x1be1cb,_0x2bc9ca):_0x1a56d1(_0x3cdfe7,_0x8d66c0[_0xde09f8(0xee)],_0x1be1cb);}function countLinkActions(_0x5fddd){return _0x5fddd['reduce']((_0x140146,_0x4b016b)=>{const _0x4c97ed=a67_0x18d7;return _0x140146[_0x4b016b[_0x4c97ed(0xe7)]]=(_0x140146[_0x4b016b[_0x4c97ed(0xe7)]]??0x0)+0x1,_0x140146;},{});}
1
+ const a68_0x4c7eff=a68_0x5b8d;function a68_0x5b8d(_0x498053,_0xf92bc8){_0x498053=_0x498053-0x6d;const _0xed2d29=a68_0xed2d();let _0x5b8d4b=_0xed2d29[_0x498053];return _0x5b8d4b;}(function(_0x3d9d3e,_0x11caf4){const _0x2d8c31=a68_0x5b8d,_0x232aa9=_0x3d9d3e();while(!![]){try{const _0x4ab863=-parseInt(_0x2d8c31(0x70))/0x1*(parseInt(_0x2d8c31(0x83))/0x2)+parseInt(_0x2d8c31(0x8d))/0x3+-parseInt(_0x2d8c31(0x84))/0x4*(parseInt(_0x2d8c31(0x71))/0x5)+-parseInt(_0x2d8c31(0x77))/0x6*(parseInt(_0x2d8c31(0x6d))/0x7)+-parseInt(_0x2d8c31(0x6e))/0x8*(-parseInt(_0x2d8c31(0x7b))/0x9)+-parseInt(_0x2d8c31(0x99))/0xa*(-parseInt(_0x2d8c31(0x8a))/0xb)+-parseInt(_0x2d8c31(0x91))/0xc*(-parseInt(_0x2d8c31(0x9b))/0xd);if(_0x4ab863===_0x11caf4)break;else _0x232aa9['push'](_0x232aa9['shift']());}catch(_0x54fbd4){_0x232aa9['push'](_0x232aa9['shift']());}}}(a68_0xed2d,0x3381e));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a68_0xed2d(){const _0x2ea3f5=['removed','skillRoots','skill','11wqBkmv','authRequired','accessKey','877182jyEoyN','force','reduce','scope','734100LsmxqE','all','trim','../../../core/api-client.js','min','install','includes','production','570730rxxgja','global','117vMlSKK','1025066SMHdvs','3072eMaaoL','company','8860HRNrRm','1630jYszDv','str','filter','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','skillCode','length','12fYMczO','unchanged','map','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','1737KPsaYq','personal','Installed\x20','appCode','version','project','bool','action','86oRXXcv','1096ZPHAqA','\x20company\x20Skill(s).','read'];a68_0xed2d=function(){return _0x2ea3f5;};return a68_0xed2d();}import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a68_0x4c7eff(0x89),'command':a68_0x4c7eff(0x96),'description':a68_0x4c7eff(0x74),'risk':a68_0x4c7eff(0x86),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x31cd9c){return syncRuntimeSkills(_0x31cd9c);}};async function syncRuntimeSkills(_0x1aaf72){const _0x576fb1=a68_0x4c7eff,{downloadRuntimeSkillPackage:_0x415da7,listRuntimeSkills:_0x44921d}=await import(_0x576fb1(0x94)),{linkEffectiveRuntimeSkills:_0x8c9a96,materializeRuntimeSkill:_0x253798,pruneStaleRuntimeSkillCache:_0x99b40f,pruneStaleRuntimeSkillLinks:_0x3389c5,resolveRuntimeSkillInstallTarget:_0x5c0940,reuseMaterializedRuntimeSkill:_0x4cd3a2}=await import('../../../skills/runtime-skill-sync.js'),_0xe04188=_0x1aaf72[_0x576fb1(0x72)]('code'),_0x3e010f=normalizeSyncScopes(_0x1aaf72[_0x576fb1(0x72)](_0x576fb1(0x90))),_0x21c545=_0x1aaf72['envName']??_0x576fb1(0x98),_0x1c8c45=_0x1aaf72[_0x576fb1(0x8c)],_0x481fe6=_0x1aaf72['bool'](_0x576fb1(0x8e));if(!_0x1c8c45)throw CliErrors[_0x576fb1(0x8b)](_0x576fb1(0x7a));const _0x3ea721=_0x5c0940(_0x1aaf72[_0x576fb1(0x7e)],_0x1aaf72[_0x576fb1(0x81)]('project')?_0x576fb1(0x80):_0x576fb1(0x9a)),_0x178dc5=_0x5c0940(_0x1aaf72[_0x576fb1(0x7e)],_0x3ea721[_0x576fb1(0x90)]==='project'?_0x576fb1(0x9a):_0x576fb1(0x80)),_0x5a117f=await _0x44921d({'appCode':_0x1aaf72[_0x576fb1(0x7e)],'scope':_0x3e010f['length']===0x1?_0x3e010f[0x0]:_0x576fb1(0x92),'code':_0xe04188[_0x576fb1(0x93)]()||undefined}),_0x3aaadf=_0x3e010f[_0x576fb1(0x97)]('personal')?_0x5a117f[_0x576fb1(0x7c)]:[],_0x21208a=_0x3e010f[_0x576fb1(0x97)](_0x576fb1(0x6f))?_0x5a117f[_0x576fb1(0x6f)]:[],_0x25bb4d=new Set([..._0x3aaadf[_0x576fb1(0x79)](_0xe45b91=>_0xe45b91[_0x576fb1(0x75)]?.[_0x576fb1(0x93)]())[_0x576fb1(0x73)](_0x15c9bb=>Boolean(_0x15c9bb)),..._0x21208a[_0x576fb1(0x79)](_0x155c5c=>_0x155c5c[_0x576fb1(0x75)]?.['trim']())[_0x576fb1(0x73)](_0x36dde1=>Boolean(_0x36dde1))]),_0x270e02=_0xe04188[_0x576fb1(0x93)]()?[_0xe04188[_0x576fb1(0x93)]()]:undefined,_0xc8034b=_0x3e010f[_0x576fb1(0x76)]===0x2&&_0x3e010f[_0x576fb1(0x97)](_0x576fb1(0x7c))&&_0x3e010f['includes'](_0x576fb1(0x6f)),_0x3aa0d5=_0xc8034b?_0x3389c5(_0x3ea721,_0x25bb4d,_0x270e02):[],_0x19c2bf=_0x99b40f({'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x576fb1(0x7e)],'activeSkillCodes':_0x25bb4d,'pruneSkillCodes':_0x270e02,'scopes':_0x3e010f,'protectedLinkRoots':_0x178dc5[_0x576fb1(0x88)]}),_0x5abeb0=[..._0x3aaadf['map'](_0x4534cc=>({'skill':_0x4534cc,'scope':_0x576fb1(0x7c)})),..._0x21208a['map'](_0x42b5eb=>({'skill':_0x42b5eb,'scope':_0x576fb1(0x6f)}))],_0x3508f2=await mapConcurrent(_0x5abeb0,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x4bc274,scope:_0x41c899})=>{const _0x4b248d=_0x576fb1,_0xc340dc=_0x4cd3a2(_0x4bc274,_0x41c899,{'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x4b248d(0x7e)]});if(_0xc340dc)return _0xc340dc;return _0x253798(_0x4bc274,_0x41c899,{'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x4b248d(0x7e)],'force':_0x481fe6,'packageBytes':await downloadSkillPackage(_0x4bc274,_0x41c899,_0x1aaf72[_0x4b248d(0x7e)],_0x415da7)});}),_0x27f6c8=_0x8c9a96(_0x3508f2,_0x3ea721),_0x5a1477=countLinkActions(_0x27f6c8);return{'ok':!![],'data':{'appCode':_0x1aaf72[_0x576fb1(0x7e)],..._0x3ea721['scope']===_0x576fb1(0x80)?{'installTarget':{'scope':_0x3ea721[_0x576fb1(0x90)],'skillRoots':[..._0x3ea721['skillRoots']]}}:{},'personal':_0x3aaadf[_0x576fb1(0x76)],'company':_0x21208a['length'],'materialized':_0x3508f2['length'],'links':{'total':_0x27f6c8[_0x576fb1(0x76)],'created':_0x5a1477['created']??0x0,'updated':_0x5a1477['updated']??0x0,'unchanged':_0x5a1477[_0x576fb1(0x78)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x3aa0d5[_0x576fb1(0x73)](_0x5be469=>_0x5be469[_0x576fb1(0x82)]==='removed')[_0x576fb1(0x76)],'cacheDirs':_0x19c2bf[_0x576fb1(0x73)](_0x4ded36=>_0x4ded36['action']===_0x576fb1(0x87))[_0x576fb1(0x76)],'skipped':[..._0x3aa0d5,..._0x19c2bf][_0x576fb1(0x73)](_0xb984f0=>_0xb984f0[_0x576fb1(0x82)]==='skipped')[_0x576fb1(0x76)]},'skills':{'personal':_0x3aaadf[_0x576fb1(0x79)](summarizeRuntimeSkill),'company':_0x21208a[_0x576fb1(0x79)](summarizeRuntimeSkill)}},'message':_0x576fb1(0x7d)+_0x3aaadf[_0x576fb1(0x76)]+'\x20personal\x20and\x20'+_0x21208a[_0x576fb1(0x76)]+_0x576fb1(0x85)};}async function mapConcurrent(_0x455daf,_0xd6142b,_0x2554a){const _0x15ce37=a68_0x4c7eff,_0x4a14e7=new Array(_0x455daf[_0x15ce37(0x76)]);let _0x2de4ab=0x0;const _0x39282b=Array['from']({'length':Math[_0x15ce37(0x95)](_0xd6142b,_0x455daf[_0x15ce37(0x76)])},async()=>{while(_0x2de4ab<_0x455daf['length']){const _0x5541bd=_0x2de4ab;_0x2de4ab+=0x1,_0x4a14e7[_0x5541bd]=await _0x2554a(_0x455daf[_0x5541bd]);}});return await Promise[_0x15ce37(0x92)](_0x39282b),_0x4a14e7;}async function downloadSkillPackage(_0x4f58d2,_0x17b2ae,_0x356fca,_0x47784b){const _0x27fa22=a68_0x4c7eff,_0x396aad=_0x4f58d2[_0x27fa22(0x7f)]?.[_0x27fa22(0x93)]();return _0x396aad?_0x47784b(_0x17b2ae,_0x4f58d2[_0x27fa22(0x75)],_0x356fca,_0x396aad):_0x47784b(_0x17b2ae,_0x4f58d2['skillCode'],_0x356fca);}function countLinkActions(_0x2046fa){const _0x1448f8=a68_0x4c7eff;return _0x2046fa[_0x1448f8(0x8f)]((_0xa531a3,_0x5d7881)=>{const _0x4a99b1=_0x1448f8;return _0xa531a3[_0x5d7881['action']]=(_0xa531a3[_0x5d7881[_0x4a99b1(0x82)]]??0x0)+0x1,_0xa531a3;},{});}
@@ -1 +1 @@
1
- function a68_0xc7e1(_0x502683,_0x12b2df){_0x502683=_0x502683-0x126;const _0x287856=a68_0x2878();let _0xc7e180=_0x287856[_0x502683];return _0xc7e180;}const a68_0x16a58e=a68_0xc7e1;(function(_0x130838,_0x1422cf){const _0x36053d=a68_0xc7e1,_0x22d8a1=_0x130838();while(!![]){try{const _0x16e0fd=-parseInt(_0x36053d(0x149))/0x1*(-parseInt(_0x36053d(0x140))/0x2)+parseInt(_0x36053d(0x14a))/0x3*(-parseInt(_0x36053d(0x12f))/0x4)+parseInt(_0x36053d(0x12d))/0x5*(-parseInt(_0x36053d(0x13a))/0x6)+parseInt(_0x36053d(0x13c))/0x7+-parseInt(_0x36053d(0x126))/0x8*(-parseInt(_0x36053d(0x147))/0x9)+parseInt(_0x36053d(0x143))/0xa*(parseInt(_0x36053d(0x135))/0xb)+parseInt(_0x36053d(0x14b))/0xc*(-parseInt(_0x36053d(0x148))/0xd);if(_0x16e0fd===_0x1422cf)break;else _0x22d8a1['push'](_0x22d8a1['shift']());}catch(_0x3c06de){_0x22d8a1['push'](_0x22d8a1['shift']());}}}(a68_0x2878,0x74d22));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';function a68_0x2878(){const _0x329b91=['../../../skills/runtime-skill-sync.js','bool','read','10vvMdBD','envName','builtin','4790530qwLnUb','personal','str','project','32013cCShOn','13GVeFsx','94245zJWqIn','227541jwRsyI','10110048MIRced','1352NJrNYz','company','length','remote','appCode','filter','trim','741440AyMivw','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','16khRZdI','authRequired','production','local','global','skill','11yYBBHW','code','scope','Listed\x20','../../../core/api-client.js','18IwUudN','map','3624901uQhNWV'];a68_0x2878=function(){return _0x329b91;};return a68_0x2878();}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a68_0x16a58e(0x134),'command':'list','description':a68_0x16a58e(0x12e),'risk':a68_0x16a58e(0x13f),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x4594cf){const _0xd864d=a68_0x16a58e,_0x52d62f=_0x4594cf[_0xd864d(0x145)](_0xd864d(0x136)),_0x5b754f=normalizeListScope(_0x4594cf[_0xd864d(0x145)](_0xd864d(0x137)));if(_0x4594cf[_0xd864d(0x13e)](_0xd864d(0x132))){const _0x5cfc7e=_0x4594cf['accessKey'];if(!_0x5cfc7e)throw CliErrors[_0xd864d(0x130)]();const {listLocalRuntimeSkills:_0x5930e2,resolveRuntimeSkillInstallTarget:_0x1f6de3}=await import(_0xd864d(0x13d)),_0x2faefd=_0x1f6de3(_0x4594cf[_0xd864d(0x12a)],_0x4594cf['bool']('project')?_0xd864d(0x146):_0xd864d(0x133)),_0x39a073=_0x5930e2({'env':_0x4594cf[_0xd864d(0x141)]??_0xd864d(0x131),'accessKey':_0x5cfc7e,'appCode':_0x4594cf['appCode'],'scopes':listScopeToRuntimeScopes(_0x5b754f),'code':_0x52d62f[_0xd864d(0x12c)]()||undefined},_0x2faefd),_0x4cee14=groupLocalRuntimeSkills(_0x39a073);return{'ok':!![],'data':{'appCode':_0x4594cf[_0xd864d(0x12a)],'source':_0xd864d(0x132),..._0x2faefd[_0xd864d(0x137)]===_0xd864d(0x146)?{'installScope':_0x2faefd['scope']}:{},'scope':_0x5b754f,'total':_0x39a073[_0xd864d(0x128)],'personal':_0x4cee14['personal'][_0xd864d(0x128)],'company':_0x4cee14[_0xd864d(0x127)][_0xd864d(0x128)],'items':_0x39a073[_0xd864d(0x13b)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x4cee14['personal'][_0xd864d(0x13b)](summarizeLocalRuntimeSkill),'company':_0x4cee14[_0xd864d(0x127)][_0xd864d(0x13b)](summarizeLocalRuntimeSkill)}},'message':_0xd864d(0x138)+_0x39a073[_0xd864d(0x128)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x54b484}=await import(_0xd864d(0x139)),_0x1135e2=await _0x54b484({'appCode':_0x4594cf['appCode'],'scope':listScopeToRemoteScope(_0x5b754f),'code':_0x52d62f['trim']()||undefined}),_0x302fe0=shouldListScope(_0x5b754f,_0xd864d(0x144))?_0x1135e2[_0xd864d(0x144)]??[]:[],_0x130260=shouldListScope(_0x5b754f,_0xd864d(0x127))?_0x1135e2[_0xd864d(0x127)]??[]:[],_0x37486b=[..._0x302fe0,..._0x130260];return{'ok':!![],'data':{'appCode':_0x4594cf[_0xd864d(0x12a)],'source':_0xd864d(0x129),'scope':_0x5b754f,'total':_0x37486b[_0xd864d(0x128)],'personal':_0x302fe0[_0xd864d(0x128)],'company':_0x130260[_0xd864d(0x128)],'items':_0x37486b[_0xd864d(0x13b)](summarizeRuntimeSkill),'skills':{'personal':_0x302fe0['map'](summarizeRuntimeSkill),'company':_0x130260[_0xd864d(0x13b)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x37486b['length']+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x48a27d){const _0x34eeac=a68_0x16a58e;return{'personal':_0x48a27d[_0x34eeac(0x12b)](_0x26881a=>_0x26881a[_0x34eeac(0x137)]===_0x34eeac(0x144)),'company':_0x48a27d[_0x34eeac(0x12b)](_0x33f7b6=>_0x33f7b6['scope']===_0x34eeac(0x127)),'builtin':_0x48a27d[_0x34eeac(0x12b)](_0xbb49a0=>_0xbb49a0[_0x34eeac(0x137)]===_0x34eeac(0x142))};}
1
+ const a69_0x865bd8=a69_0x3224;(function(_0x13f9f6,_0x464f8a){const _0x1d7c9c=a69_0x3224,_0x16979f=_0x13f9f6();while(!![]){try{const _0x5ea0bc=parseInt(_0x1d7c9c(0x8f))/0x1+parseInt(_0x1d7c9c(0x90))/0x2*(-parseInt(_0x1d7c9c(0x8a))/0x3)+-parseInt(_0x1d7c9c(0x97))/0x4+parseInt(_0x1d7c9c(0x86))/0x5+-parseInt(_0x1d7c9c(0x98))/0x6*(parseInt(_0x1d7c9c(0xa1))/0x7)+parseInt(_0x1d7c9c(0xa6))/0x8*(parseInt(_0x1d7c9c(0x8e))/0x9)+-parseInt(_0x1d7c9c(0xa4))/0xa*(-parseInt(_0x1d7c9c(0xa7))/0xb);if(_0x5ea0bc===_0x464f8a)break;else _0x16979f['push'](_0x16979f['shift']());}catch(_0x4081f3){_0x16979f['push'](_0x16979f['shift']());}}}(a69_0x2507,0x82b5b));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';function a69_0x3224(_0x481d5c,_0x44030e){_0x481d5c=_0x481d5c-0x86;const _0x2507b2=a69_0x2507();let _0x322418=_0x2507b2[_0x481d5c];return _0x322418;}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a69_0x865bd8(0x99),'command':'list','description':a69_0x865bd8(0x92),'risk':a69_0x865bd8(0x9f),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x454920){const _0x34966e=a69_0x865bd8,_0x3c9f94=_0x454920[_0x34966e(0x91)]('code'),_0x4d63dd=normalizeListScope(_0x454920[_0x34966e(0x91)](_0x34966e(0x9a)));if(_0x454920['bool'](_0x34966e(0x8d))){const _0x25b504=_0x454920['accessKey'];if(!_0x25b504)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0xe7978f,resolveRuntimeSkillInstallTarget:_0x2f2cf8}=await import(_0x34966e(0x89)),_0x1c8f8d=_0x2f2cf8(_0x454920[_0x34966e(0xa2)],_0x454920[_0x34966e(0x9d)](_0x34966e(0x93))?'project':_0x34966e(0x95)),_0x50367a=_0xe7978f({'env':_0x454920[_0x34966e(0x9b)]??'production','accessKey':_0x25b504,'appCode':_0x454920[_0x34966e(0xa2)],'scopes':listScopeToRuntimeScopes(_0x4d63dd),'code':_0x3c9f94[_0x34966e(0xa0)]()||undefined},_0x1c8f8d),_0x59e3e0=groupLocalRuntimeSkills(_0x50367a);return{'ok':!![],'data':{'appCode':_0x454920[_0x34966e(0xa2)],'source':_0x34966e(0x8d),..._0x1c8f8d[_0x34966e(0x9a)]==='project'?{'installScope':_0x1c8f8d['scope']}:{},'scope':_0x4d63dd,'total':_0x50367a[_0x34966e(0x9e)],'personal':_0x59e3e0[_0x34966e(0x96)][_0x34966e(0x9e)],'company':_0x59e3e0[_0x34966e(0x94)]['length'],'items':_0x50367a[_0x34966e(0x9c)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x59e3e0['personal']['map'](summarizeLocalRuntimeSkill),'company':_0x59e3e0[_0x34966e(0x94)][_0x34966e(0x9c)](summarizeLocalRuntimeSkill)}},'message':_0x34966e(0xa5)+_0x50367a['length']+_0x34966e(0x87)};}const {listRuntimeSkills:_0x5a6c85}=await import(_0x34966e(0xa8)),_0x351ee1=await _0x5a6c85({'appCode':_0x454920[_0x34966e(0xa2)],'scope':listScopeToRemoteScope(_0x4d63dd),'code':_0x3c9f94['trim']()||undefined}),_0xcf2faa=shouldListScope(_0x4d63dd,_0x34966e(0x96))?_0x351ee1['personal']??[]:[],_0x5413da=shouldListScope(_0x4d63dd,_0x34966e(0x94))?_0x351ee1[_0x34966e(0x94)]??[]:[],_0x335ea4=[..._0xcf2faa,..._0x5413da];return{'ok':!![],'data':{'appCode':_0x454920['appCode'],'source':_0x34966e(0x8c),'scope':_0x4d63dd,'total':_0x335ea4['length'],'personal':_0xcf2faa[_0x34966e(0x9e)],'company':_0x5413da[_0x34966e(0x9e)],'items':_0x335ea4['map'](summarizeRuntimeSkill),'skills':{'personal':_0xcf2faa[_0x34966e(0x9c)](summarizeRuntimeSkill),'company':_0x5413da[_0x34966e(0x9c)](summarizeRuntimeSkill)}},'message':_0x34966e(0xa5)+_0x335ea4[_0x34966e(0x9e)]+_0x34966e(0xa3)};}};function groupLocalRuntimeSkills(_0x1bc773){const _0xbf4692=a69_0x865bd8;return{'personal':_0x1bc773[_0xbf4692(0x88)](_0xccbc43=>_0xccbc43[_0xbf4692(0x9a)]==='personal'),'company':_0x1bc773[_0xbf4692(0x88)](_0x30a804=>_0x30a804[_0xbf4692(0x9a)]===_0xbf4692(0x94)),'builtin':_0x1bc773['filter'](_0x474853=>_0x474853[_0xbf4692(0x9a)]===_0xbf4692(0x8b))};}function a69_0x2507(){const _0x261588=['7hmINwa','appCode','\x20remote\x20Skill(s).','851870TJOuQO','Listed\x20','80OodMOe','110UyrWYs','../../../core/api-client.js','614880cWlRUg','\x20local\x20Skill(s).','filter','../../../skills/runtime-skill-sync.js','717jsYSpP','builtin','remote','local','520119oHbkYH','228356UgqYdh','2264DfiKUA','str','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','project','company','global','personal','3101024PNdRtn','1199526VkfINF','skill','scope','envName','map','bool','length','read','trim'];a69_0x2507=function(){return _0x261588;};return a69_0x2507();}
@@ -1 +1 @@
1
- function a69_0x5988(){const _0x11cad3=['623223eANPBy','144BrGMYy','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','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.','1921122HlQWGU','1484986YTNdtd','skill','6957328lJxAnN','2617053gymufQ','write','874853aRzVQJ','428ESQKSk','44130QoEXcm'];a69_0x5988=function(){return _0x11cad3;};return a69_0x5988();}const a69_0x2ff28d=a69_0x2b87;(function(_0x41e45d,_0x1c0476){const _0x5964f8=a69_0x2b87,_0x496344=_0x41e45d();while(!![]){try{const _0x367ff8=-parseInt(_0x5964f8(0x15b))/0x1+parseInt(_0x5964f8(0x163))/0x2+-parseInt(_0x5964f8(0x159))/0x3+-parseInt(_0x5964f8(0x15c))/0x4*(parseInt(_0x5964f8(0x15d))/0x5)+parseInt(_0x5964f8(0x162))/0x6+parseInt(_0x5964f8(0x158))/0x7+parseInt(_0x5964f8(0x15f))/0x8*(parseInt(_0x5964f8(0x15e))/0x9);if(_0x367ff8===_0x1c0476)break;else _0x496344['push'](_0x496344['shift']());}catch(_0xaa3f80){_0x496344['push'](_0x496344['shift']());}}}(a69_0x5988,0x95474));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a69_0x2b87(_0x17445f,_0x1ca792){_0x17445f=_0x17445f-0x157;const _0x5988aa=a69_0x5988();let _0x2b879d=_0x5988aa[_0x17445f];return _0x2b879d;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a69_0x2ff28d(0x157),'command':'push','description':a69_0x2ff28d(0x160),'risk':a69_0x2ff28d(0x15a),'confirmationDescription':a69_0x2ff28d(0x161),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a70_0x422ac7=a70_0x1ac6;(function(_0x1246f5,_0x103f7f){const _0x1b5ba8=a70_0x1ac6,_0x1f99fa=_0x1246f5();while(!![]){try{const _0x5791f8=-parseInt(_0x1b5ba8(0x179))/0x1+-parseInt(_0x1b5ba8(0x174))/0x2+parseInt(_0x1b5ba8(0x172))/0x3*(-parseInt(_0x1b5ba8(0x177))/0x4)+parseInt(_0x1b5ba8(0x17b))/0x5+parseInt(_0x1b5ba8(0x175))/0x6+-parseInt(_0x1b5ba8(0x178))/0x7*(-parseInt(_0x1b5ba8(0x173))/0x8)+parseInt(_0x1b5ba8(0x17c))/0x9*(parseInt(_0x1b5ba8(0x17a))/0xa);if(_0x5791f8===_0x103f7f)break;else _0x1f99fa['push'](_0x1f99fa['shift']());}catch(_0x53f91e){_0x1f99fa['push'](_0x1f99fa['shift']());}}}(a70_0x70fd,0x74acb));function a70_0x1ac6(_0x1620d8,_0x3ad845){_0x1620d8=_0x1620d8-0x170;const _0x70fd06=a70_0x70fd();let _0x1ac6d6=_0x70fd06[_0x1620d8];return _0x1ac6d6;}import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a70_0x70fd(){const _0x588996=['3222815CoqgAg','1413moyHCV','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','write','150CSLorK','101856ExPauc','1408072wnNjJj','1518774uPzKkN','skill','22364RrQUVG','63pBWkZK','133422uQvLhr','37110PZlqrz'];a70_0x70fd=function(){return _0x588996;};return a70_0x70fd();}export const pushCommand={'service':a70_0x422ac7(0x176),'command':'push','description':a70_0x422ac7(0x170),'risk':a70_0x422ac7(0x171),'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 +1 @@
1
- const a70_0xf11438=a70_0x9419;(function(_0x276cbd,_0x4649d8){const _0x381fc6=a70_0x9419,_0xcac9f5=_0x276cbd();while(!![]){try{const _0x10b989=parseInt(_0x381fc6(0x176))/0x1+-parseInt(_0x381fc6(0x173))/0x2*(-parseInt(_0x381fc6(0x179))/0x3)+-parseInt(_0x381fc6(0x16d))/0x4+parseInt(_0x381fc6(0x17c))/0x5*(-parseInt(_0x381fc6(0x17a))/0x6)+parseInt(_0x381fc6(0x16f))/0x7*(parseInt(_0x381fc6(0x172))/0x8)+parseInt(_0x381fc6(0x170))/0x9+parseInt(_0x381fc6(0x171))/0xa;if(_0x10b989===_0x4649d8)break;else _0xcac9f5['push'](_0xcac9f5['shift']());}catch(_0x57c127){_0xcac9f5['push'](_0xcac9f5['shift']());}}}(a70_0x3814,0x848e8));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a70_0xf11438(0x17b),'command':a70_0xf11438(0x175),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x17d232){const _0x2c0945=a70_0xf11438,_0x37929c=_0x17d232['bool']('strict'),_0x288623=validateSkillDirectory(_0x17d232[_0x2c0945(0x177)](_0x2c0945(0x178)),{'strict':_0x37929c});return throwIfSkillValidationFailed(_0x288623,_0x37929c),{'ok':!![],'data':{'dir':_0x288623[_0x2c0945(0x178)],'type':_0x288623['type'],'errors':_0x288623['errors'],'warnings':_0x288623[_0x2c0945(0x16e)]},'message':_0x2c0945(0x174)};}};function a70_0x9419(_0x590a69,_0x1d246e){_0x590a69=_0x590a69-0x16d;const _0x381452=a70_0x3814();let _0x9419ab=_0x381452[_0x590a69];return _0x9419ab;}function a70_0x3814(){const _0x1f0139=['Skill\x20validation\x20passed.','validate','314421oSJSbj','str','dir','471RIGvBV','6467226mMkAWA','skill','5cTeFTn','3886136gKJYXO','warnings','637iYMtTL','8953362uwMynB','1557440gtfmVY','94072AaQnMT','730kqtdEe'];a70_0x3814=function(){return _0x1f0139;};return a70_0x3814();}
1
+ function a71_0x25ee(){const _0x57095f=['strict','4352848bjFeEy','604613YCshrf','errors','1127493PVcGht','98YSHYDC','Skill\x20validation\x20passed.','1630275MqdVUP','warnings','read','267360glexAA','dir','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','899642KRmIuz','5361813ViSAYQ','skill','4aKaeRw','type'];a71_0x25ee=function(){return _0x57095f;};return a71_0x25ee();}function a71_0x4336(_0x17c839,_0x16bc6c){_0x17c839=_0x17c839-0x160;const _0x25ee95=a71_0x25ee();let _0x4336c3=_0x25ee95[_0x17c839];return _0x4336c3;}const a71_0x41bcbe=a71_0x4336;(function(_0x5f46e3,_0x534649){const _0x2ade78=a71_0x4336,_0x309c7c=_0x5f46e3();while(!![]){try{const _0x11dd47=parseInt(_0x2ade78(0x164))/0x1+-parseInt(_0x2ade78(0x16f))/0x2+parseInt(_0x2ade78(0x166))/0x3+parseInt(_0x2ade78(0x160))/0x4*(parseInt(_0x2ade78(0x169))/0x5)+-parseInt(_0x2ade78(0x16c))/0x6*(-parseInt(_0x2ade78(0x167))/0x7)+-parseInt(_0x2ade78(0x163))/0x8+-parseInt(_0x2ade78(0x170))/0x9;if(_0x11dd47===_0x534649)break;else _0x309c7c['push'](_0x309c7c['shift']());}catch(_0x32abbc){_0x309c7c['push'](_0x309c7c['shift']());}}}(a71_0x25ee,0x532af));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a71_0x41bcbe(0x171),'command':'validate','description':a71_0x41bcbe(0x16e),'risk':a71_0x41bcbe(0x16b),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x32cf73){const _0x509153=a71_0x41bcbe,_0x4d6b1c=_0x32cf73['bool'](_0x509153(0x162)),_0xdd6090=validateSkillDirectory(_0x32cf73['str']('dir'),{'strict':_0x4d6b1c});return throwIfSkillValidationFailed(_0xdd6090,_0x4d6b1c),{'ok':!![],'data':{'dir':_0xdd6090[_0x509153(0x16d)],'type':_0xdd6090[_0x509153(0x161)],'errors':_0xdd6090[_0x509153(0x165)],'warnings':_0xdd6090[_0x509153(0x16a)]},'message':_0x509153(0x168)};}};
@@ -1 +1 @@
1
- (function(_0x4a4169,_0x406668){const _0x410546=a71_0x2a70,_0x1c5eee=_0x4a4169();while(!![]){try{const _0x8d0551=parseInt(_0x410546(0xa1))/0x1*(-parseInt(_0x410546(0xa6))/0x2)+-parseInt(_0x410546(0x9b))/0x3*(parseInt(_0x410546(0xb0))/0x4)+parseInt(_0x410546(0xac))/0x5*(-parseInt(_0x410546(0xaf))/0x6)+parseInt(_0x410546(0xa8))/0x7*(-parseInt(_0x410546(0xa2))/0x8)+parseInt(_0x410546(0xb3))/0x9+parseInt(_0x410546(0x9a))/0xa*(parseInt(_0x410546(0xa9))/0xb)+parseInt(_0x410546(0x9f))/0xc;if(_0x8d0551===_0x406668)break;else _0x1c5eee['push'](_0x1c5eee['shift']());}catch(_0x2c899a){_0x1c5eee['push'](_0x1c5eee['shift']());}}}(a71_0x1ff9,0xcfd27));function a71_0x1ff9(){const _0x285ae4=['2568966CTrDxl','utf8','isFile','replace','7069764zrfgfD','window','1tMAmUz','638536butson','default','Mermaid\x20syntax\x20validation\x20failed.','trim','1348298BUiPWu','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','7AhrNme','11tXANcH','mermaid','defineProperties','10eJhcqs','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','3917454FtnVxS','4dwjlaD','validation','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','14031270cZjRcI','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','document','16191680LtkoER'];a71_0x1ff9=function(){return _0x285ae4;};return a71_0x1ff9();}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0xbac1fb){return(await readRequiredSkillDiagramInput(_0xbac1fb))['diagram'];}export async function readRequiredSkillDiagramInput(_0x533de5){const _0x2eba3f=a71_0x2a70,_0x209983=_0x533de5[_0x2eba3f(0xa5)]();if(!_0x209983)throw CliErrors[_0x2eba3f(0xb1)](_0x2eba3f(0xad),_0x2eba3f(0xb4));let _0x3900e9,_0x131001;if(_0x209983==='-')try{_0x3900e9=readFileSync(0x0,_0x2eba3f(0x9c));}catch{throw CliErrors['validation'](_0x2eba3f(0xae));}else{const _0x45cbd1=resolve(_0x209983);if(!existsSync(_0x45cbd1))throw CliErrors[_0x2eba3f(0xb1)](_0x2eba3f(0xb5)+_0x45cbd1);if(!statSync(_0x45cbd1)[_0x2eba3f(0x9d)]())throw CliErrors['validation'](_0x2eba3f(0xb2)+_0x45cbd1);_0x131001=realpathSync(_0x45cbd1),_0x3900e9=readFileSync(_0x131001,'utf8');}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x3900e9)},'sourceFilePath':_0x131001};}export async function validateAndCanonicalizeMermaid(_0x58974e){const _0x3ec4ff=a71_0x2a70,_0x3ab6ae=_0x58974e[_0x3ec4ff(0x9e)](/\r\n/g,'\x0a')[_0x3ec4ff(0x9e)](/\r/g,'\x0a')[_0x3ec4ff(0x9e)](/\n+$/,'')+'\x0a';try{const _0x124b93=await loadMermaidApi();await _0x124b93['parse'](_0x3ab6ae);}catch{throw diagramValidationError();}return _0x3ab6ae;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x25024d=a71_0x2a70;if(!(_0x25024d(0xa0)in globalThis)||!(_0x25024d(0xb6)in globalThis)){const _0x139024=new JSDOM('');Object[_0x25024d(0xab)](globalThis,{'window':{'configurable':!![],'value':_0x139024['window']},'document':{'configurable':!![],'value':_0x139024['window'][_0x25024d(0xb6)]}});}return(await import(_0x25024d(0xaa)))[_0x25024d(0xa3)];})()),mermaidApiPromise;}function a71_0x2a70(_0x35f17b,_0xc9d4e2){_0x35f17b=_0x35f17b-0x9a;const _0x1ff97f=a71_0x1ff9();let _0x2a706d=_0x1ff97f[_0x35f17b];return _0x2a706d;}function diagramValidationError(){const _0x5437dd=a71_0x2a70;return CliErrors['validation'](_0x5437dd(0xa4),_0x5437dd(0xa7));}
1
+ (function(_0x18223d,_0x18e9fa){const _0x2491b2=a72_0x14f1,_0x1bd1fa=_0x18223d();while(!![]){try{const _0xd0bd48=-parseInt(_0x2491b2(0x8b))/0x1*(-parseInt(_0x2491b2(0x7d))/0x2)+parseInt(_0x2491b2(0x82))/0x3*(parseInt(_0x2491b2(0x86))/0x4)+parseInt(_0x2491b2(0x77))/0x5+-parseInt(_0x2491b2(0x84))/0x6+-parseInt(_0x2491b2(0x8c))/0x7*(-parseInt(_0x2491b2(0x7b))/0x8)+-parseInt(_0x2491b2(0x8e))/0x9*(parseInt(_0x2491b2(0x87))/0xa)+-parseInt(_0x2491b2(0x8f))/0xb;if(_0xd0bd48===_0x18e9fa)break;else _0x1bd1fa['push'](_0x1bd1fa['shift']());}catch(_0x33b40a){_0x1bd1fa['push'](_0x1bd1fa['shift']());}}}(a72_0x8d2d,0x9dece));function a72_0x14f1(_0x924209,_0x55130a){_0x924209=_0x924209-0x77;const _0x8d2d59=a72_0x8d2d();let _0x14f172=_0x8d2d59[_0x924209];return _0x14f172;}function a72_0x8d2d(){const _0x4fd4ea=['--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','734718LyexTF','mermaid','6418218RYeFAi','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','16hJQchb','190vxHMNJ','isFile','defineProperties','utf8','1076017eAtfXv','914347oaiPmu','validation','294633vhgFWI','4295610xYlwwz','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','2714080NotCUU','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','diagram','8YJVNub','Mermaid\x20syntax\x20validation\x20failed.','2AEbKwP','window','default','document'];a72_0x8d2d=function(){return _0x4fd4ea;};return a72_0x8d2d();}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x4def05){const _0x15126f=a72_0x14f1;return(await readRequiredSkillDiagramInput(_0x4def05))[_0x15126f(0x7a)];}export async function readRequiredSkillDiagramInput(_0x31b869){const _0x2330b0=a72_0x14f1,_0x58514f=_0x31b869['trim']();if(!_0x58514f)throw CliErrors[_0x2330b0(0x8d)](_0x2330b0(0x81),_0x2330b0(0x85));let _0x22573f,_0x476e06;if(_0x58514f==='-')try{_0x22573f=readFileSync(0x0,_0x2330b0(0x8a));}catch{throw CliErrors['validation'](_0x2330b0(0x90));}else{const _0x1c73a0=resolve(_0x58514f);if(!existsSync(_0x1c73a0))throw CliErrors[_0x2330b0(0x8d)](_0x2330b0(0x79)+_0x1c73a0);if(!statSync(_0x1c73a0)[_0x2330b0(0x88)]())throw CliErrors[_0x2330b0(0x8d)]('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x1c73a0);_0x476e06=realpathSync(_0x1c73a0),_0x22573f=readFileSync(_0x476e06,_0x2330b0(0x8a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x22573f)},'sourceFilePath':_0x476e06};}export async function validateAndCanonicalizeMermaid(_0x4d912d){const _0x54e6b0=_0x4d912d['replace'](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x400342=await loadMermaidApi();await _0x400342['parse'](_0x54e6b0);}catch{throw diagramValidationError();}return _0x54e6b0;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x57f515=a72_0x14f1;if(!(_0x57f515(0x7e)in globalThis)||!(_0x57f515(0x80)in globalThis)){const _0x359f19=new JSDOM('');Object[_0x57f515(0x89)](globalThis,{'window':{'configurable':!![],'value':_0x359f19[_0x57f515(0x7e)]},'document':{'configurable':!![],'value':_0x359f19[_0x57f515(0x7e)][_0x57f515(0x80)]}});}return(await import(_0x57f515(0x83)))[_0x57f515(0x7f)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x2522e8=a72_0x14f1;return CliErrors[_0x2522e8(0x8d)](_0x2522e8(0x7c),_0x2522e8(0x78));}
@@ -1 +1 @@
1
- const a72_0x4e5a26=a72_0x17d8;(function(_0x18673a,_0x37b8fb){const _0x5cc5a5=a72_0x17d8,_0x4312ca=_0x18673a();while(!![]){try{const _0x229cf3=-parseInt(_0x5cc5a5(0x159))/0x1+parseInt(_0x5cc5a5(0x15d))/0x2*(parseInt(_0x5cc5a5(0x154))/0x3)+-parseInt(_0x5cc5a5(0x14c))/0x4*(parseInt(_0x5cc5a5(0x165))/0x5)+-parseInt(_0x5cc5a5(0x153))/0x6*(-parseInt(_0x5cc5a5(0x14b))/0x7)+-parseInt(_0x5cc5a5(0x15b))/0x8*(-parseInt(_0x5cc5a5(0x166))/0x9)+-parseInt(_0x5cc5a5(0x155))/0xa*(-parseInt(_0x5cc5a5(0x173))/0xb)+parseInt(_0x5cc5a5(0x16c))/0xc;if(_0x229cf3===_0x37b8fb)break;else _0x4312ca['push'](_0x4312ca['shift']());}catch(_0x48ef08){_0x4312ca['push'](_0x4312ca['shift']());}}}(a72_0x402e,0x9ecde));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a72_0x4e5a26(0x14d),'type':a72_0x4e5a26(0x168),'description':a72_0x4e5a26(0x16b)};export const SCOPE_FLAG={'name':a72_0x4e5a26(0x17a),'type':a72_0x4e5a26(0x168),'description':a72_0x4e5a26(0x177),'enum':['all',a72_0x4e5a26(0x151),a72_0x4e5a26(0x156)]};export const PUSH_SCOPE_FLAG={'name':a72_0x4e5a26(0x17a),'type':'string','description':a72_0x4e5a26(0x150),'default':'personal','enum':['personal',a72_0x4e5a26(0x156)]};function a72_0x402e(){const _0x4848d5=['Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','301222Ahpqyz','diagram-file','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','dir','boolean','expected-diagram-revision','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','5yawUKb','1270197dLNoIf','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','string','all','local','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1183416vJhByE','number','Local\x20Skill\x20directory\x20containing\x20SKILL.md','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','2436137tswVxF','force','version','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','name','scope','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','347137iAjbyg','3956492bkjBlK','code','type','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','personal','skill-code','72zSSObb','3AxbEKM','20NsYuwu','company','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','target','635601SXyGpK','strict','56zQuWQN'];a72_0x402e=function(){return _0x4848d5;};return a72_0x402e();}export const LIST_SCOPE_FLAG={'name':a72_0x4e5a26(0x17a),'type':a72_0x4e5a26(0x168),'description':a72_0x4e5a26(0x167),'enum':[a72_0x4e5a26(0x169),a72_0x4e5a26(0x151),a72_0x4e5a26(0x156)]};export const LOCAL_FLAG={'name':a72_0x4e5a26(0x16a),'type':a72_0x4e5a26(0x162),'description':a72_0x4e5a26(0x171)};function a72_0x17d8(_0x3ada55,_0x332f44){_0x3ada55=_0x3ada55-0x14a;const _0x402ede=a72_0x402e();let _0x17d80d=_0x402ede[_0x3ada55];return _0x17d80d;}export const DIR_FLAG={'name':a72_0x4e5a26(0x161),'type':a72_0x4e5a26(0x168),'required':!![],'description':a72_0x4e5a26(0x16e)};export const DIAGRAM_FILE_FLAG={'name':a72_0x4e5a26(0x15e),'type':a72_0x4e5a26(0x168),'required':!![],'description':a72_0x4e5a26(0x14f)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a72_0x4e5a26(0x152),'type':'string','required':!![],'description':a72_0x4e5a26(0x15f)};export const DIAGRAM_VERSION_FLAG={'name':a72_0x4e5a26(0x175),'type':a72_0x4e5a26(0x168),'required':!![],'description':a72_0x4e5a26(0x14a)};export const DIAGRAM_SCOPE_FLAG={'name':a72_0x4e5a26(0x17a),'type':a72_0x4e5a26(0x168),'required':!![],'enum':[a72_0x4e5a26(0x151),a72_0x4e5a26(0x156)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a72_0x4e5a26(0x168),'required':!![],'description':a72_0x4e5a26(0x16f),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a72_0x4e5a26(0x160)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a72_0x4e5a26(0x163),'type':a72_0x4e5a26(0x16d),'required':!![],'description':a72_0x4e5a26(0x15c)};export const CREATE_NAME_FLAG={'name':a72_0x4e5a26(0x179),'type':a72_0x4e5a26(0x168),'required':!![],'description':a72_0x4e5a26(0x157),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a72_0x4e5a26(0x176)}};export const TYPE_FLAG={'name':a72_0x4e5a26(0x14e),'type':a72_0x4e5a26(0x168),'description':a72_0x4e5a26(0x170),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a72_0x4e5a26(0x158),'type':a72_0x4e5a26(0x168),'description':a72_0x4e5a26(0x172),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a72_0x4e5a26(0x174),'type':a72_0x4e5a26(0x162),'description':a72_0x4e5a26(0x178)};export const PROJECT_TARGET_FLAG={'name':'project','type':'boolean','description':a72_0x4e5a26(0x164)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a72_0x4e5a26(0x162),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':a72_0x4e5a26(0x15a),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ const a73_0x1a6639=a73_0x5da8;(function(_0x1245d5,_0x19f352){const _0x4ac37e=a73_0x5da8,_0x2d3a87=_0x1245d5();while(!![]){try{const _0x4303df=parseInt(_0x4ac37e(0xdd))/0x1*(parseInt(_0x4ac37e(0xe3))/0x2)+-parseInt(_0x4ac37e(0xde))/0x3*(-parseInt(_0x4ac37e(0xd1))/0x4)+-parseInt(_0x4ac37e(0xc6))/0x5+parseInt(_0x4ac37e(0xca))/0x6*(parseInt(_0x4ac37e(0xd9))/0x7)+-parseInt(_0x4ac37e(0xce))/0x8*(parseInt(_0x4ac37e(0xdf))/0x9)+-parseInt(_0x4ac37e(0xe0))/0xa*(-parseInt(_0x4ac37e(0xe5))/0xb)+-parseInt(_0x4ac37e(0xed))/0xc;if(_0x4303df===_0x19f352)break;else _0x2d3a87['push'](_0x2d3a87['shift']());}catch(_0x54b7be){_0x2d3a87['push'](_0x2d3a87['shift']());}}}(a73_0x320d,0xf047b));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a73_0x1a6639(0xc8),'type':'string','description':a73_0x1a6639(0xd0)};export const SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a73_0x1a6639(0xd8),a73_0x1a6639(0xd2),a73_0x1a6639(0xc9)]};export const PUSH_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xeb),'default':a73_0x1a6639(0xd2),'enum':[a73_0x1a6639(0xd2),'company']};export const LIST_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xda),'enum':[a73_0x1a6639(0xd8),a73_0x1a6639(0xd2),a73_0x1a6639(0xc9)]};export const LOCAL_FLAG={'name':a73_0x1a6639(0xc7),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xe9)};export const DIR_FLAG={'name':a73_0x1a6639(0xe7),'type':a73_0x1a6639(0xdc),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a73_0x1a6639(0xe4),'type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xcd)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a73_0x1a6639(0xd4),'type':a73_0x1a6639(0xdc),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a73_0x1a6639(0xd6),'type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xcf)};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':'string','required':!![],'enum':[a73_0x1a6639(0xd2),'company'],'description':a73_0x1a6639(0xe8)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xec),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x1a6639(0xd7)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a73_0x1a6639(0xdb),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};function a73_0x320d(){const _0x22c27e=['number','string','81762NnfMuE','583077ZADemZ','5338566FhkMcd','10eDcVxa','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','18DijFVX','diagram-file','1778161iFGccJ','boolean','dir','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','strict','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Server-reported\x20SkillVersion\x20source\x20fingerprint','21525336WOJRIu','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','scope','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','772165SZHiOU','local','code','company','15150ckYxor','force','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','8RVwTfd','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','28TgvWdU','personal','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','skill-code','target','version','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','all','3514dFKIaB','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x320d=function(){return _0x22c27e;};return a73_0x320d();}export const CREATE_NAME_FLAG={'name':'name','type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xee),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':'type','type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xe2),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a73_0x1a6639(0xd5),'type':'string','description':a73_0x1a6639(0xcc),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0x1a6639(0xcb),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xe1)};export const PROJECT_TARGET_FLAG={'name':'project','type':'boolean','description':a73_0x1a6639(0xc5)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a73_0x1a6639(0xe6),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};function a73_0x5da8(_0x3e65e0,_0x30daba){_0x3e65e0=_0x3e65e0-0xc5;const _0x320d6f=a73_0x320d();let _0x5da8ef=_0x320d6f[_0x3e65e0];return _0x5da8ef;}export const STRICT_FLAG={'name':a73_0x1a6639(0xea),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xd3)};
@@ -1 +1 @@
1
- (function(_0x2715da,_0x4ac48f){const _0x278621=a73_0x45a0,_0x2adda3=_0x2715da();while(!![]){try{const _0x232a7f=parseInt(_0x278621(0xc1))/0x1*(-parseInt(_0x278621(0xc4))/0x2)+parseInt(_0x278621(0xc7))/0x3+parseInt(_0x278621(0xc6))/0x4+parseInt(_0x278621(0xc3))/0x5+-parseInt(_0x278621(0xc8))/0x6+-parseInt(_0x278621(0xc9))/0x7*(parseInt(_0x278621(0xc2))/0x8)+parseInt(_0x278621(0xc0))/0x9*(parseInt(_0x278621(0xc5))/0xa);if(_0x232a7f===_0x4ac48f)break;else _0x2adda3['push'](_0x2adda3['shift']());}catch(_0x10e2d0){_0x2adda3['push'](_0x2adda3['shift']());}}}(a73_0x4029,0xcb9ec));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a73_0x45a0(_0xa2013c,_0x253a4d){_0xa2013c=_0xa2013c-0xc0;const _0x4029c2=a73_0x4029();let _0x45a088=_0x4029c2[_0xa2013c];return _0x45a088;}import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];function a73_0x4029(){const _0x2554c2=['1426685lRbsCc','16yOxIjY','25938050iOBFXW','1751684adInsy','303516bXgTLh','4212066lDRmiL','1107589VlIXUf','9wBDfxz','156161MOSAfC','32xIebFP'];a73_0x4029=function(){return _0x2554c2;};return a73_0x4029();}
1
+ (function(_0x4f60b8,_0x4a8e99){const _0x493a20=a74_0x5ef3,_0x2c310a=_0x4f60b8();while(!![]){try{const _0x383f63=parseInt(_0x493a20(0xbe))/0x1+-parseInt(_0x493a20(0xbd))/0x2*(parseInt(_0x493a20(0xbf))/0x3)+parseInt(_0x493a20(0xba))/0x4*(parseInt(_0x493a20(0xbc))/0x5)+parseInt(_0x493a20(0xb7))/0x6+parseInt(_0x493a20(0xb8))/0x7*(-parseInt(_0x493a20(0xb9))/0x8)+parseInt(_0x493a20(0xb6))/0x9+-parseInt(_0x493a20(0xbb))/0xa;if(_0x383f63===_0x4a8e99)break;else _0x2c310a['push'](_0x2c310a['shift']());}catch(_0x3b1d3f){_0x2c310a['push'](_0x2c310a['shift']());}}}(a74_0x2838,0x92dcc));function a74_0x5ef3(_0x14c779,_0x32c352){_0x14c779=_0x14c779-0xb6;const _0x283872=a74_0x2838();let _0x5ef3d3=_0x283872[_0x14c779];return _0x5ef3d3;}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';function a74_0x2838(){const _0x53391b=['1193922gXFtnP','53809NLalBX','616CRSrmQ','417860aENpJN','2395020GrIsNd','35BrltRV','128218QCPJJO','764310WLprbs','33JMSGcr','3992364CClkXA'];a74_0x2838=function(){return _0x53391b;};return a74_0x2838();}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x37440e,_0x3c58be){var _0x50669b=a74_0x43a4,_0x401f6f=_0x37440e();while(!![]){try{var _0x5b0b29=parseInt(_0x50669b(0x168))/0x1+-parseInt(_0x50669b(0x167))/0x2+parseInt(_0x50669b(0x164))/0x3+parseInt(_0x50669b(0x165))/0x4*(-parseInt(_0x50669b(0x15f))/0x5)+-parseInt(_0x50669b(0x16a))/0x6*(-parseInt(_0x50669b(0x166))/0x7)+parseInt(_0x50669b(0x161))/0x8*(-parseInt(_0x50669b(0x162))/0x9)+-parseInt(_0x50669b(0x163))/0xa;if(_0x5b0b29===_0x3c58be)break;else _0x401f6f['push'](_0x401f6f['shift']());}catch(_0x3198b8){_0x401f6f['push'](_0x401f6f['shift']());}}}(a74_0x591f,0xea243));function a74_0x591f(){var _0x1a484e=['SKILL.md','ossPath','19450FcSngY','length','381712mkOnnk','99GndRhT','13777820etCQMq','4963515zFpzhs','548wjvWcr','14ncRXpm','1628494QzMRgN','1255941hoDOSA','files','3895230umOawv','isArray','object','some','string','path'];a74_0x591f=function(){return _0x1a484e;};return a74_0x591f();}export function isPackageBackedManifest(_0x55145a){var _0x36ad05=a74_0x43a4;return!!_0x55145a&&typeof _0x55145a===_0x36ad05(0x16c)&&!Array['isArray'](_0x55145a)&&typeof _0x55145a[_0x36ad05(0x15e)]===_0x36ad05(0x15b)&&_0x55145a['ossPath'][_0x36ad05(0x160)]>0x0&&Array[_0x36ad05(0x16b)](_0x55145a[_0x36ad05(0x169)]);}function a74_0x43a4(_0x5088fa,_0x508e4e){_0x5088fa=_0x5088fa-0x15b;var _0x591f79=a74_0x591f();var _0x43a494=_0x591f79[_0x5088fa];return _0x43a494;}export function isMultiFileManifest(_0x43af07){var _0x266cd8=a74_0x43a4;return!!_0x43af07&&typeof _0x43af07===_0x266cd8(0x16c)&&!Array[_0x266cd8(0x16b)](_0x43af07)&&Array[_0x266cd8(0x16b)](_0x43af07[_0x266cd8(0x169)])&&_0x43af07[_0x266cd8(0x169)][_0x266cd8(0x16d)](_0x25b22d=>_0x25b22d[_0x266cd8(0x15c)]!==_0x266cd8(0x15d));}
1
+ function a75_0x1566(_0xbe1ead,_0x3111db){_0xbe1ead=_0xbe1ead-0x12f;var _0x4e8863=a75_0x4e88();var _0x1566fe=_0x4e8863[_0xbe1ead];return _0x1566fe;}(function(_0x995082,_0x4d5ecc){var _0xe9c102=a75_0x1566,_0x1c7da7=_0x995082();while(!![]){try{var _0x323727=parseInt(_0xe9c102(0x13b))/0x1+parseInt(_0xe9c102(0x140))/0x2*(-parseInt(_0xe9c102(0x13c))/0x3)+parseInt(_0xe9c102(0x132))/0x4*(parseInt(_0xe9c102(0x135))/0x5)+parseInt(_0xe9c102(0x131))/0x6+-parseInt(_0xe9c102(0x13a))/0x7+-parseInt(_0xe9c102(0x134))/0x8*(-parseInt(_0xe9c102(0x13f))/0x9)+-parseInt(_0xe9c102(0x138))/0xa;if(_0x323727===_0x4d5ecc)break;else _0x1c7da7['push'](_0x1c7da7['shift']());}catch(_0x174094){_0x1c7da7['push'](_0x1c7da7['shift']());}}}(a75_0x4e88,0xa6ea0));export function isPackageBackedManifest(_0x27a987){var _0x1f74fa=a75_0x1566;return!!_0x27a987&&typeof _0x27a987===_0x1f74fa(0x137)&&!Array[_0x1f74fa(0x13d)](_0x27a987)&&typeof _0x27a987['ossPath']===_0x1f74fa(0x139)&&_0x27a987[_0x1f74fa(0x130)][_0x1f74fa(0x133)]>0x0&&Array[_0x1f74fa(0x13d)](_0x27a987[_0x1f74fa(0x13e)]);}export function isMultiFileManifest(_0x42b6e7){var _0x5e8d42=a75_0x1566;return!!_0x42b6e7&&typeof _0x42b6e7==='object'&&!Array[_0x5e8d42(0x13d)](_0x42b6e7)&&Array['isArray'](_0x42b6e7[_0x5e8d42(0x13e)])&&_0x42b6e7[_0x5e8d42(0x13e)][_0x5e8d42(0x12f)](_0x426608=>_0x426608[_0x5e8d42(0x136)]!=='SKILL.md');}function a75_0x4e88(){var _0x40053d=['340414INvLib','115563mEqiTc','isArray','files','9xhFoie','12ouHyWq','some','ossPath','5577126poCgiv','472bTBpMD','length','502184WjQdcA','44535ctazWv','path','object','1764200VCojRK','string','9047556CLXNRN'];a75_0x4e88=function(){return _0x40053d;};return a75_0x4e88();}
@@ -1 +1 @@
1
- (function(_0x317f16,_0x31f654){const _0x32d929=a75_0x4263,_0x1d8c1d=_0x317f16();while(!![]){try{const _0xa34d96=parseInt(_0x32d929(0x12b))/0x1+parseInt(_0x32d929(0x139))/0x2+-parseInt(_0x32d929(0x130))/0x3*(-parseInt(_0x32d929(0x10f))/0x4)+-parseInt(_0x32d929(0x110))/0x5*(-parseInt(_0x32d929(0x136))/0x6)+parseInt(_0x32d929(0x11d))/0x7*(parseInt(_0x32d929(0x138))/0x8)+parseInt(_0x32d929(0x117))/0x9+-parseInt(_0x32d929(0x120))/0xa*(parseInt(_0x32d929(0x10e))/0xb);if(_0xa34d96===_0x31f654)break;else _0x1d8c1d['push'](_0x1d8c1d['shift']());}catch(_0x231299){_0x1d8c1d['push'](_0x1d8c1d['shift']());}}}(a75_0x588b,0x9ce29));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x181753){const _0x3557f6=a75_0x4263,{getRuntimeSkillByCode:_0x26bf74,validateRuntimeSkillPublish:_0x5d2915}=await import('../../core/api-client.js'),{readPushDirectory:_0x3e5b44,resolvePushDirectoryIdentity:_0x5e0c10}=await import(_0x3557f6(0x10c));if(!_0x181753[_0x3557f6(0x12d)])throw CliErrors['authRequired']();const _0xd3a0a6=resolvePushScope(_0x181753),_0x5c5cc0=validateSkillDirectory(_0x181753[_0x3557f6(0x13f)](_0x3557f6(0x13a)));throwIfSkillValidationFailed(_0x5c5cc0);const {diagram:_0x3dda59,sourceFilePath:_0x5ebaf4}=await readRequiredSkillDiagramInput(_0x181753[_0x3557f6(0x13f)](_0x3557f6(0x125))),_0x37ed05=diagramPackageExclusion(_0x5ebaf4),_0x31509d=_0x5e0c10(_0x5c5cc0[_0x3557f6(0x13a)],_0x181753['appCode'],remoteFirstMetadataOptions()),_0x1e4e23=await _0x26bf74(_0x181753[_0x3557f6(0x115)],_0x31509d[_0x3557f6(0x113)]);throwIfBuiltinPushTarget(_0x1e4e23);if(_0xd3a0a6===_0x3557f6(0x145)){const _0x442428=_0x3e5b44(_0x5c5cc0[_0x3557f6(0x13a)],_0x181753[_0x3557f6(0x115)],{...remoteMissingCompanyReadOptions(),..._0x37ed05}),_0x35e5f6=await _0x5d2915(_0x181753[_0x3557f6(0x115)],withDiagram(_0x442428[_0x3557f6(0x137)],_0x3dda59),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3557f6(0x146),'url':_0x3557f6(0x123)+_0x181753['appCode']+_0x3557f6(0x12a),'body':{'skillCode':_0x442428[_0x3557f6(0x113)],'visibility':'NAMESPACE_ONLY','valid':_0x35e5f6[_0x3557f6(0x11a)],'errors':_0x35e5f6[_0x3557f6(0x127)],'warnings':_0x35e5f6[_0x3557f6(0x111)],'resolvedSlug':_0x35e5f6[_0x3557f6(0x141)],'resolvedVersion':_0x35e5f6[_0x3557f6(0x12f)],'diagramValidated':_0x35e5f6[_0x3557f6(0x116)]},'description':_0x3557f6(0x129)};}if(_0x1e4e23&&_0x1e4e23[_0x3557f6(0x147)]!=='personal')throw CliErrors[_0x3557f6(0x13d)](_0x3557f6(0x11f)+_0x31509d[_0x3557f6(0x113)]+'\x20has\x20scope=\x22'+(_0x1e4e23[_0x3557f6(0x147)]??'unknown')+'\x22.');const _0x1e7b2a=_0x3e5b44(_0x5c5cc0[_0x3557f6(0x13a)],_0x181753[_0x3557f6(0x115)],{..._0x1e4e23?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x37ed05}),_0x42cc15=await _0x5d2915(_0x181753[_0x3557f6(0x115)],withDiagram(_0x1e7b2a['input'],_0x3dda59),{'visibility':'PRIVATE'});return{'method':_0x3557f6(0x146),'url':_0x3557f6(0x123)+_0x181753['appCode']+_0x3557f6(0x12a),'body':{'skillCode':_0x1e7b2a[_0x3557f6(0x113)],'visibility':_0x3557f6(0x131),'valid':_0x42cc15[_0x3557f6(0x11a)],'errors':_0x42cc15['errors'],'warnings':_0x42cc15[_0x3557f6(0x111)],'resolvedSlug':_0x42cc15[_0x3557f6(0x141)],'resolvedVersion':_0x42cc15['resolvedVersion'],'diagramValidated':_0x42cc15[_0x3557f6(0x116)]},'description':_0x3557f6(0x128)};}export async function skillPushExecute(_0x43accd){const _0x37c804=a75_0x4263,{createPersonalRuntimeSkill:_0x5e4c24,downloadRuntimeSkillPackage:_0x16cb7b,getRuntimeSkillByCode:_0x491d83,publishCompanyRuntimeSkill:_0x4e7d17,updatePersonalRuntimeSkill:_0x2dcf23,validateRuntimeSkillPublish:_0x25abd4}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x416ac7,verifyRuntimeSkillBundle:_0x323b32,readPushDirectory:_0x56beef,refreshPushDirectoryMetadataFromRemote:_0x859ca5,recordPushedRuntimeSkill:_0x4079b8,resolvePushDirectoryIdentity:_0x32b393}=await import(_0x37c804(0x10c));if(!_0x43accd['accessKey'])throw CliErrors[_0x37c804(0x132)]();const _0x5857ba=resolvePushScope(_0x43accd),_0x31278d=_0x43accd['bool'](_0x37c804(0x13e))||_0x43accd['bool']('confirmWarnings'),_0x56938f=validateSkillDirectory(_0x43accd[_0x37c804(0x13f)](_0x37c804(0x13a)));throwIfSkillValidationFailed(_0x56938f);const {diagram:_0x5c59e0,sourceFilePath:_0x4968d9}=await readRequiredSkillDiagramInput(_0x43accd[_0x37c804(0x13f)]('diagram-file')),_0x40999f=diagramPackageExclusion(_0x4968d9),_0x4480ec=_0x56938f[_0x37c804(0x13a)];let _0x125ab7;if(_0x5857ba===_0x37c804(0x145)){const _0x41def8=_0x32b393(_0x4480ec,_0x43accd[_0x37c804(0x115)],remoteFirstMetadataOptions()),_0x29dc08=await _0x491d83(_0x43accd[_0x37c804(0x115)],_0x41def8[_0x37c804(0x113)]);throwIfBuiltinPushTarget(_0x29dc08);if(_0x29dc08)_0x859ca5(_0x4480ec,_0x29dc08,_0x43accd[_0x37c804(0x115)]);const _0x4f82bc=_0x56beef(_0x4480ec,_0x43accd[_0x37c804(0x115)],{..._0x29dc08?{'targetScope':_0x37c804(0x145),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x40999f});_0x125ab7={'scope':_0x37c804(0x145),'payload':_0x4f82bc,'publishInput':withDiagram(_0x4f82bc[_0x37c804(0x137)],_0x5c59e0),'remoteForPreflight':_0x29dc08,'warnings':[]};}else{const _0x54dfa6=_0x43accd[_0x37c804(0x13f)](_0x37c804(0x11c))[_0x37c804(0x11b)](),_0x78a647=Boolean(_0x54dfa6),_0x3822be=allowRetargetArgs(_0x78a647),_0x41c520=_0x32b393(_0x4480ec,_0x43accd[_0x37c804(0x115)],{...remoteFirstMetadataOptions(),..._0x3822be[0x0]}),_0x2c8c55=await _0x491d83(_0x43accd['appCode'],_0x41c520[_0x37c804(0x113)]);throwIfBuiltinPushTarget(_0x2c8c55);if(_0x2c8c55){if(_0x2c8c55[_0x37c804(0x147)]!==_0x37c804(0x114)){if(_0x78a647)throw CliErrors['validation'](_0x37c804(0x11f)+_0x41c520[_0x37c804(0x113)]+_0x37c804(0x12c)+(_0x2c8c55[_0x37c804(0x147)]??_0x37c804(0x122))+'\x22.');_0x859ca5(_0x4480ec,_0x2c8c55,_0x43accd[_0x37c804(0x115)]);}else!_0x78a647&&_0x859ca5(_0x4480ec,_0x2c8c55,_0x43accd[_0x37c804(0x115)]);}const _0x51db9e=_0x56beef(_0x4480ec,_0x43accd[_0x37c804(0x115)],{..._0x2c8c55?remotePersonalReadOptions(_0x78a647,_0x3822be[0x0]):remoteMissingPersonalReadOptions(_0x3822be[0x0]),..._0x40999f}),_0x384b21=_0x2c8c55?.[_0x37c804(0x147)]===_0x37c804(0x114)&&_0x2c8c55[_0x37c804(0x113)]===_0x51db9e['skillCode']?_0x2c8c55:undefined,_0x41e5e8=_0x78a647&&_0x384b21?withRetargetExistingMetadata(_0x51db9e['input'],_0x384b21,{'preferInputSkillName':Boolean(_0x51db9e['frontmatterDisplayName'])}):_0x51db9e[_0x37c804(0x137)],_0x3bfed1=_0x78a647?buildRetargetWarning(_0x41c520['metadata'],_0x43accd[_0x37c804(0x115)]):[];_0x125ab7={'scope':_0x37c804(0x114),'payload':_0x51db9e,'publishInput':withDiagram(_0x41e5e8,_0x5c59e0),'remoteForPreflight':_0x384b21,'existing':_0x384b21,'warnings':[..._0x56938f[_0x37c804(0x111)],..._0x3bfed1]};}const _0x5a86d4=await runRemoteContentPreflight({'scope':_0x125ab7[_0x37c804(0x147)],'remote':_0x125ab7[_0x37c804(0x143)],'publishInput':_0x125ab7[_0x37c804(0x134)],'skillCode':_0x125ab7['payload'][_0x37c804(0x113)],'appCode':_0x43accd[_0x37c804(0x115)],'downloadRuntimeSkillPackage':_0x16cb7b,'verifyRuntimeSkillBundle':_0x323b32});if(_0x5a86d4[_0x37c804(0x140)]===_0x37c804(0x13c))return _0x125ab7[_0x37c804(0x147)]===_0x37c804(0x145)?_0x4079b8(_0x4480ec,_0x5a86d4['savedSkill'],_0x43accd[_0x37c804(0x115)],{'scope':'company'}):_0x4079b8(_0x4480ec,_0x5a86d4['savedSkill'],_0x43accd[_0x37c804(0x115)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5a86d4[_0x37c804(0x11e)]),'scope':_0x125ab7[_0x37c804(0x147)],..._0x125ab7[_0x37c804(0x147)]===_0x37c804(0x114)?{'warnings':_0x125ab7[_0x37c804(0x111)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x125ab7[_0x37c804(0x147)])+_0x37c804(0x118)+_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x125ab7[_0x37c804(0x147)]===_0x37c804(0x145)){const _0x4f8704=await _0x25abd4(_0x43accd[_0x37c804(0x115)],_0x125ab7['publishInput'],{'visibility':_0x37c804(0x12e)});throwIfPublishValidationFailed(_0x37c804(0x145),_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)],_0x4f8704),throwIfUnconfirmedPublishWarnings(_0x37c804(0x145),_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)],_0x4f8704[_0x37c804(0x111)],_0x31278d);const _0x3ca173=await _0x4e7d17(_0x43accd[_0x37c804(0x115)],_0x125ab7[_0x37c804(0x134)],{'confirmWarnings':_0x31278d});return _0x4079b8(_0x4480ec,{..._0x3ca173,'files':_0x125ab7[_0x37c804(0x134)]['files']},_0x43accd[_0x37c804(0x115)],{'scope':_0x37c804(0x145)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3ca173),'scope':_0x37c804(0x145),'reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x4f8704[_0x37c804(0x111)]}},'message':_0x37c804(0x144)+_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)]+_0x37c804(0x126)+(_0x3ca173[_0x37c804(0x148)]??_0x37c804(0x119))+_0x37c804(0x142)};}const _0x523939=await _0x25abd4(_0x43accd['appCode'],_0x125ab7[_0x37c804(0x134)],{'visibility':_0x37c804(0x131)});throwIfPublishValidationFailed(_0x37c804(0x114),_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)],_0x523939),throwIfUnconfirmedPublishWarnings('personal',_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)],_0x523939[_0x37c804(0x111)],_0x31278d);const _0xaa6767={'confirmWarnings':_0x31278d},_0x4e8da8=_0x125ab7[_0x37c804(0x112)]?await _0x2dcf23(_0x125ab7[_0x37c804(0x133)][_0x37c804(0x113)],_0x43accd[_0x37c804(0x115)],_0x125ab7[_0x37c804(0x134)],_0xaa6767):await _0x5e4c24(_0x43accd['appCode'],_0x125ab7[_0x37c804(0x134)],_0xaa6767);let _0x2beabf=_0x4e8da8;if(isMultiFileManifest(_0x125ab7[_0x37c804(0x134)][_0x37c804(0x13b)])){const _0x241321=await _0x16cb7b(_0x37c804(0x114),_0x4e8da8[_0x37c804(0x113)]||_0x125ab7[_0x37c804(0x133)]['skillCode'],_0x43accd['appCode']);_0x323b32(_0x125ab7[_0x37c804(0x134)][_0x37c804(0x13b)],_0x241321),_0x2beabf={..._0x4e8da8,'files':_0x125ab7['publishInput'][_0x37c804(0x13b)]};}else{if(isPackageBackedManifest(_0x4e8da8['files'])){const _0x5b6b3f=await _0x16cb7b(_0x37c804(0x114),_0x4e8da8['skillCode']||_0x125ab7['payload'][_0x37c804(0x113)],_0x43accd[_0x37c804(0x115)]);_0x416ac7(_0x4e8da8['files'],_0x5b6b3f);}}return _0x4079b8(_0x4480ec,_0x2beabf,_0x43accd[_0x37c804(0x115)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4e8da8),'warnings':_0x125ab7[_0x37c804(0x111)],'validation':{'warnings':_0x523939['warnings']},'diagramBound':!![]},'message':_0x125ab7[_0x37c804(0x112)]?_0x37c804(0x10d)+_0x125ab7['payload'][_0x37c804(0x113)]:_0x37c804(0x135)+_0x125ab7['payload'][_0x37c804(0x113)]};}function a75_0x4263(_0x1204e0,_0x133c48){_0x1204e0=_0x1204e0-0x10c;const _0x588b96=a75_0x588b();let _0x4263ba=_0x588b96[_0x1204e0];return _0x4263ba;}function scopeLabel(_0xbd412b){const _0x1eb913=a75_0x4263;return _0xbd412b===_0x1eb913(0x145)?_0x1eb913(0x124):_0x1eb913(0x121);}function withDiagram(_0x4db83b,_0x4fbd89){return{..._0x4db83b,'diagram':_0x4fbd89};}function a75_0x588b(){const _0x1a70d8=['existing','skillCode','personal','appCode','diagramValidated','3772791SHYkNk','\x20Skill\x20','(unknown)','valid','trim','appcode','7XOFdFN','savedSkill','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','1014490duLrtq','Personal','unknown','/api/cli/v1/skills/','Company','diagram-file','\x20version\x20','errors','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','/publish/validate','1020538llqojj','\x20has\x20scope=\x22','accessKey','NAMESPACE_ONLY','resolvedVersion','19065iyocaQ','PRIVATE','authRequired','payload','publishInput','Created\x20personal\x20Skill\x20','29886QKsLSR','input','861976TSEAiC','1917554xReGsy','dir','files','identical','validation','confirm-warnings','str','status','resolvedSlug','\x20for\x20review','remoteForPreflight','Submitted\x20company\x20Skill\x20','company','POST','scope','version','../../skills/runtime-skill-sync.js','Updated\x20personal\x20Skill\x20','363WTTSeW','536JcYYWM','635TBAUlq','warnings'];a75_0x588b=function(){return _0x1a70d8;};return a75_0x588b();}function diagramPackageExclusion(_0x4ab015){return _0x4ab015?{'excludedFilePaths':[_0x4ab015]}:{};}
1
+ (function(_0x56c382,_0x14d9f4){const _0x31fcd5=a76_0x2506,_0x467c86=_0x56c382();while(!![]){try{const _0x2edbfd=parseInt(_0x31fcd5(0xbe))/0x1+parseInt(_0x31fcd5(0xd2))/0x2+parseInt(_0x31fcd5(0xd4))/0x3+-parseInt(_0x31fcd5(0xd1))/0x4+parseInt(_0x31fcd5(0xbc))/0x5+-parseInt(_0x31fcd5(0xba))/0x6*(parseInt(_0x31fcd5(0xe0))/0x7)+parseInt(_0x31fcd5(0xdf))/0x8;if(_0x2edbfd===_0x14d9f4)break;else _0x467c86['push'](_0x467c86['shift']());}catch(_0x321e6f){_0x467c86['push'](_0x467c86['shift']());}}}(a76_0x5e64,0x590d2));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a76_0x2506(_0x38eff2,_0x40295e){_0x38eff2=_0x38eff2-0xb1;const _0x5e64ad=a76_0x5e64();let _0x250653=_0x5e64ad[_0x38eff2];return _0x250653;}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';function a76_0x5e64(){const _0x1a5ead=['savedSkill','bool','status','input','remoteForPreflight','payload','existing','confirm-warnings','resolvedVersion','dir','(unknown)','authRequired','company','POST','2657308vBpyug','332898ACycmr','identical','713721ACRDaY','diagramValidated','\x20for\x20review','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Created\x20personal\x20Skill\x20','publishInput','unknown','version','PRIVATE','\x20has\x20scope=\x22','/api/cli/v1/skills/','5457328zJnlEd','1120MPmMQZ','personal','/publish/validate','\x20Skill\x20','accessKey','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','metadata','appCode','Submitted\x20company\x20Skill\x20','../../skills/runtime-skill-sync.js','validation','str','skillCode','files','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','scope','diagram-file','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','trim','appcode','frontmatterDisplayName','\x20version\x20','submitted','Personal','25956eRWUeU','NAMESPACE_ONLY','1982790XHTtVC','warnings','238161lRFnTj','resolvedSlug','valid','errors','confirmWarnings'];a76_0x5e64=function(){return _0x1a5ead;};return a76_0x5e64();}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(_0x25f450){const _0x3cd7fe=a76_0x2506,{getRuntimeSkillByCode:_0x2fe1fe,validateRuntimeSkillPublish:_0xa1c411}=await import('../../core/api-client.js'),{readPushDirectory:_0x1a86bb,resolvePushDirectoryIdentity:_0xb4e51a}=await import('../../skills/runtime-skill-sync.js');if(!_0x25f450[_0x3cd7fe(0xe4)])throw CliErrors[_0x3cd7fe(0xce)]();const _0xcb37f4=resolvePushScope(_0x25f450),_0x595582=validateSkillDirectory(_0x25f450[_0x3cd7fe(0xeb)]('dir'));throwIfSkillValidationFailed(_0x595582);const {diagram:_0x264e8b,sourceFilePath:_0x5e90f2}=await readRequiredSkillDiagramInput(_0x25f450[_0x3cd7fe(0xeb)](_0x3cd7fe(0xb2))),_0x5a3a04=diagramPackageExclusion(_0x5e90f2),_0x2321c1=_0xb4e51a(_0x595582['dir'],_0x25f450['appCode'],remoteFirstMetadataOptions()),_0x303832=await _0x2fe1fe(_0x25f450[_0x3cd7fe(0xe7)],_0x2321c1[_0x3cd7fe(0xec)]);throwIfBuiltinPushTarget(_0x303832);if(_0xcb37f4==='company'){const _0x559024=_0x1a86bb(_0x595582[_0x3cd7fe(0xcc)],_0x25f450[_0x3cd7fe(0xe7)],{...remoteMissingCompanyReadOptions(),..._0x5a3a04}),_0x37801e=await _0xa1c411(_0x25f450[_0x3cd7fe(0xe7)],withDiagram(_0x559024[_0x3cd7fe(0xc6)],_0x264e8b),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3cd7fe(0xd0),'url':_0x3cd7fe(0xde)+_0x25f450[_0x3cd7fe(0xe7)]+_0x3cd7fe(0xe2),'body':{'skillCode':_0x559024[_0x3cd7fe(0xec)],'visibility':_0x3cd7fe(0xbb),'valid':_0x37801e[_0x3cd7fe(0xc0)],'errors':_0x37801e[_0x3cd7fe(0xc1)],'warnings':_0x37801e[_0x3cd7fe(0xbd)],'resolvedSlug':_0x37801e[_0x3cd7fe(0xbf)],'resolvedVersion':_0x37801e['resolvedVersion'],'diagramValidated':_0x37801e[_0x3cd7fe(0xd5)]},'description':_0x3cd7fe(0xd7)};}if(_0x303832&&_0x303832['scope']!==_0x3cd7fe(0xe1))throw CliErrors[_0x3cd7fe(0xea)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2321c1[_0x3cd7fe(0xec)]+_0x3cd7fe(0xdd)+(_0x303832[_0x3cd7fe(0xb1)]??_0x3cd7fe(0xda))+'\x22.');const _0x46b261=_0x1a86bb(_0x595582[_0x3cd7fe(0xcc)],_0x25f450[_0x3cd7fe(0xe7)],{..._0x303832?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5a3a04}),_0x2fc20f=await _0xa1c411(_0x25f450[_0x3cd7fe(0xe7)],withDiagram(_0x46b261[_0x3cd7fe(0xc6)],_0x264e8b),{'visibility':_0x3cd7fe(0xdc)});return{'method':_0x3cd7fe(0xd0),'url':'/api/cli/v1/skills/'+_0x25f450[_0x3cd7fe(0xe7)]+_0x3cd7fe(0xe2),'body':{'skillCode':_0x46b261[_0x3cd7fe(0xec)],'visibility':'PRIVATE','valid':_0x2fc20f['valid'],'errors':_0x2fc20f[_0x3cd7fe(0xc1)],'warnings':_0x2fc20f[_0x3cd7fe(0xbd)],'resolvedSlug':_0x2fc20f[_0x3cd7fe(0xbf)],'resolvedVersion':_0x2fc20f[_0x3cd7fe(0xcb)],'diagramValidated':_0x2fc20f[_0x3cd7fe(0xd5)]},'description':_0x3cd7fe(0xee)};}export async function skillPushExecute(_0x191f32){const _0xe99397=a76_0x2506,{createPersonalRuntimeSkill:_0x378a18,downloadRuntimeSkillPackage:_0x213f49,getRuntimeSkillByCode:_0x588482,publishCompanyRuntimeSkill:_0x94f1f,updatePersonalRuntimeSkill:_0x128998,validateRuntimeSkillPublish:_0x306c07}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x14b14c,verifyRuntimeSkillBundle:_0x2dfbf8,readPushDirectory:_0x2ce7f4,refreshPushDirectoryMetadataFromRemote:_0x54d0ea,recordPushedRuntimeSkill:_0x1e804b,resolvePushDirectoryIdentity:_0xaedb60}=await import(_0xe99397(0xe9));if(!_0x191f32['accessKey'])throw CliErrors[_0xe99397(0xce)]();const _0x2be498=resolvePushScope(_0x191f32),_0x3d9d53=_0x191f32['bool'](_0xe99397(0xca))||_0x191f32[_0xe99397(0xc4)](_0xe99397(0xc2)),_0x59ca78=validateSkillDirectory(_0x191f32[_0xe99397(0xeb)](_0xe99397(0xcc)));throwIfSkillValidationFailed(_0x59ca78);const {diagram:_0x20292a,sourceFilePath:_0x461a83}=await readRequiredSkillDiagramInput(_0x191f32[_0xe99397(0xeb)](_0xe99397(0xb2))),_0x1c4ed9=diagramPackageExclusion(_0x461a83),_0x5f5da8=_0x59ca78['dir'];let _0x36ebe7;if(_0x2be498===_0xe99397(0xcf)){const _0x3b8320=_0xaedb60(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],remoteFirstMetadataOptions()),_0x554390=await _0x588482(_0x191f32[_0xe99397(0xe7)],_0x3b8320['skillCode']);throwIfBuiltinPushTarget(_0x554390);if(_0x554390)_0x54d0ea(_0x5f5da8,_0x554390,_0x191f32[_0xe99397(0xe7)]);const _0x75c12b=_0x2ce7f4(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],{..._0x554390?{'targetScope':_0xe99397(0xcf),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1c4ed9});_0x36ebe7={'scope':_0xe99397(0xcf),'payload':_0x75c12b,'publishInput':withDiagram(_0x75c12b[_0xe99397(0xc6)],_0x20292a),'remoteForPreflight':_0x554390,'warnings':[]};}else{const _0x568e3a=_0x191f32[_0xe99397(0xeb)](_0xe99397(0xb5))[_0xe99397(0xb4)](),_0x4eeb6c=Boolean(_0x568e3a),_0x133ff6=allowRetargetArgs(_0x4eeb6c),_0x3a735d=_0xaedb60(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],{...remoteFirstMetadataOptions(),..._0x133ff6[0x0]}),_0x314d21=await _0x588482(_0x191f32[_0xe99397(0xe7)],_0x3a735d['skillCode']);throwIfBuiltinPushTarget(_0x314d21);if(_0x314d21){if(_0x314d21['scope']!==_0xe99397(0xe1)){if(_0x4eeb6c)throw CliErrors[_0xe99397(0xea)](_0xe99397(0xb3)+_0x3a735d['skillCode']+_0xe99397(0xdd)+(_0x314d21['scope']??_0xe99397(0xda))+'\x22.');_0x54d0ea(_0x5f5da8,_0x314d21,_0x191f32[_0xe99397(0xe7)]);}else!_0x4eeb6c&&_0x54d0ea(_0x5f5da8,_0x314d21,_0x191f32[_0xe99397(0xe7)]);}const _0xa2e14e=_0x2ce7f4(_0x5f5da8,_0x191f32['appCode'],{..._0x314d21?remotePersonalReadOptions(_0x4eeb6c,_0x133ff6[0x0]):remoteMissingPersonalReadOptions(_0x133ff6[0x0]),..._0x1c4ed9}),_0x2c49c5=_0x314d21?.['scope']==='personal'&&_0x314d21[_0xe99397(0xec)]===_0xa2e14e[_0xe99397(0xec)]?_0x314d21:undefined,_0x3159ca=_0x4eeb6c&&_0x2c49c5?withRetargetExistingMetadata(_0xa2e14e['input'],_0x2c49c5,{'preferInputSkillName':Boolean(_0xa2e14e[_0xe99397(0xb6)])}):_0xa2e14e[_0xe99397(0xc6)],_0x325267=_0x4eeb6c?buildRetargetWarning(_0x3a735d[_0xe99397(0xe6)],_0x191f32['appCode']):[];_0x36ebe7={'scope':_0xe99397(0xe1),'payload':_0xa2e14e,'publishInput':withDiagram(_0x3159ca,_0x20292a),'remoteForPreflight':_0x2c49c5,'existing':_0x2c49c5,'warnings':[..._0x59ca78[_0xe99397(0xbd)],..._0x325267]};}const _0x25a7da=await runRemoteContentPreflight({'scope':_0x36ebe7[_0xe99397(0xb1)],'remote':_0x36ebe7[_0xe99397(0xc7)],'publishInput':_0x36ebe7[_0xe99397(0xd9)],'skillCode':_0x36ebe7[_0xe99397(0xc8)]['skillCode'],'appCode':_0x191f32['appCode'],'downloadRuntimeSkillPackage':_0x213f49,'verifyRuntimeSkillBundle':_0x2dfbf8});if(_0x25a7da[_0xe99397(0xc5)]===_0xe99397(0xd3))return _0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xcf)?_0x1e804b(_0x5f5da8,_0x25a7da[_0xe99397(0xc3)],_0x191f32[_0xe99397(0xe7)],{'scope':_0xe99397(0xcf)}):_0x1e804b(_0x5f5da8,_0x25a7da['savedSkill'],_0x191f32[_0xe99397(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25a7da[_0xe99397(0xc3)]),'scope':_0x36ebe7[_0xe99397(0xb1)],..._0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xe1)?{'warnings':_0x36ebe7[_0xe99397(0xbd)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x36ebe7[_0xe99397(0xb1)])+_0xe99397(0xe3)+_0x36ebe7['payload'][_0xe99397(0xec)]+_0xe99397(0xe5)};if(_0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xcf)){const _0x12c593=await _0x306c07(_0x191f32[_0xe99397(0xe7)],_0x36ebe7['publishInput'],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0xe99397(0xcf),_0x36ebe7['payload'][_0xe99397(0xec)],_0x12c593),throwIfUnconfirmedPublishWarnings(_0xe99397(0xcf),_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x12c593[_0xe99397(0xbd)],_0x3d9d53);const _0x59857c=await _0x94f1f(_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],{'confirmWarnings':_0x3d9d53});return _0x1e804b(_0x5f5da8,{..._0x59857c,'files':_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)]},_0x191f32['appCode'],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x59857c),'scope':_0xe99397(0xcf),'reviewState':_0xe99397(0xb8),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x12c593[_0xe99397(0xbd)]}},'message':_0xe99397(0xe8)+_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)]+_0xe99397(0xb7)+(_0x59857c[_0xe99397(0xdb)]??_0xe99397(0xcd))+_0xe99397(0xd6)};}const _0x44b36b=await _0x306c07(_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0xe99397(0xe1),_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)],_0x44b36b),throwIfUnconfirmedPublishWarnings(_0xe99397(0xe1),_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)],_0x44b36b[_0xe99397(0xbd)],_0x3d9d53);const _0x5208b2={'confirmWarnings':_0x3d9d53},_0x44d88e=_0x36ebe7['existing']?await _0x128998(_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],_0x5208b2):await _0x378a18(_0x191f32['appCode'],_0x36ebe7[_0xe99397(0xd9)],_0x5208b2);let _0x4c66ad=_0x44d88e;if(isMultiFileManifest(_0x36ebe7[_0xe99397(0xd9)]['files'])){const _0x32c627=await _0x213f49('personal',_0x44d88e[_0xe99397(0xec)]||_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x191f32['appCode']);_0x2dfbf8(_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)],_0x32c627),_0x4c66ad={..._0x44d88e,'files':_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)]};}else{if(isPackageBackedManifest(_0x44d88e[_0xe99397(0xed)])){const _0x412fa1=await _0x213f49(_0xe99397(0xe1),_0x44d88e[_0xe99397(0xec)]||_0x36ebe7['payload'][_0xe99397(0xec)],_0x191f32['appCode']);_0x14b14c(_0x44d88e[_0xe99397(0xed)],_0x412fa1);}}return _0x1e804b(_0x5f5da8,_0x4c66ad,_0x191f32[_0xe99397(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x44d88e),'warnings':_0x36ebe7[_0xe99397(0xbd)],'validation':{'warnings':_0x44b36b['warnings']},'diagramBound':!![]},'message':_0x36ebe7[_0xe99397(0xc9)]?'Updated\x20personal\x20Skill\x20'+_0x36ebe7['payload']['skillCode']:_0xe99397(0xd8)+_0x36ebe7[_0xe99397(0xc8)]['skillCode']};}function scopeLabel(_0x28280b){const _0x4d5d4b=a76_0x2506;return _0x28280b===_0x4d5d4b(0xcf)?'Company':_0x4d5d4b(0xb9);}function withDiagram(_0x531bd6,_0x5334d5){return{..._0x531bd6,'diagram':_0x5334d5};}function diagramPackageExclusion(_0x371498){return _0x371498?{'excludedFilePaths':[_0x371498]}:{};}
@@ -1 +1 @@
1
- (function(_0x10aeb1,_0x2ac316){const _0x3e1866=a76_0x5013,_0x2dd84e=_0x10aeb1();while(!![]){try{const _0x34b896=-parseInt(_0x3e1866(0x162))/0x1*(parseInt(_0x3e1866(0x158))/0x2)+parseInt(_0x3e1866(0x165))/0x3*(-parseInt(_0x3e1866(0x182))/0x4)+-parseInt(_0x3e1866(0x186))/0x5*(parseInt(_0x3e1866(0x174))/0x6)+parseInt(_0x3e1866(0x168))/0x7*(parseInt(_0x3e1866(0x17b))/0x8)+-parseInt(_0x3e1866(0x17a))/0x9*(-parseInt(_0x3e1866(0x15c))/0xa)+parseInt(_0x3e1866(0x161))/0xb*(parseInt(_0x3e1866(0x17d))/0xc)+-parseInt(_0x3e1866(0x172))/0xd*(-parseInt(_0x3e1866(0x169))/0xe);if(_0x34b896===_0x2ac316)break;else _0x2dd84e['push'](_0x2dd84e['shift']());}catch(_0xbd2eda){_0x2dd84e['push'](_0x2dd84e['shift']());}}}(a76_0x302f,0xaecdc));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x135e1a){const _0x42f3ad=a76_0x5013,_0x11f37f=_0x135e1a[_0x42f3ad(0x177)](_0x42f3ad(0x159))||'personal';if(_0x11f37f==='personal'||_0x11f37f===_0x42f3ad(0x15d))return _0x11f37f;throw CliErrors[_0x42f3ad(0x16b)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x11f37f+'\x22.');}export function allowRetargetArgs(_0x3872f8){return _0x3872f8?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a76_0x302f(){const _0x10232e=['\x20Skill\x20push\x20validation\x20failed\x20for\x20','315rnqsKw','11904802cpNIfo','length','validation','warnings','content','builtin','Personal','skill-metadata-appcode-retargeted','\x20cannot\x20be\x20pushed.','13YffDKH','errors','1072314RFiqfY','skillCode','lovrabet.skill.json','str','remote','version','1996353utBBRO','77496gUKfVk','warning','6252sudSHc','different','verifyRuntimeSkillBundle','Company','files','649924ebJLst','Warnings:\x20','\x20after\x20successful\x20push.','SkillHub\x20validation\x20returned\x20invalid.','10VbsyEp','publishInput','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Builtin\x20Skill\x20','2cSTqHd','scope','appCode','join','10fkRvRh','company','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','valid','downloadRuntimeSkillPackage','17831hGZdjw','466777JvmmZB','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','not-applicable','15hTanNr','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.'];a76_0x302f=function(){return _0x10232e;};return a76_0x302f();}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x40cb8e={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x40cb8e};}export function remotePersonalReadOptions(_0x58ae02,_0x29bdca={}){return{'ignoreInvalidMetadata':!![],..._0x58ae02?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x29bdca};}export function throwIfBuiltinPushTarget(_0x36ba37){const _0x225774=a76_0x5013;if(_0x36ba37?.[_0x225774(0x159)]!==_0x225774(0x16e))return;throw CliErrors[_0x225774(0x16b)](_0x225774(0x157)+(_0x36ba37[_0x225774(0x175)]??'(unknown)')+_0x225774(0x171),_0x225774(0x166));}export function throwIfPublishValidationFailed(_0x10ee2a,_0x13545e,_0x3be21e){const _0x569aba=a76_0x5013;if(_0x3be21e[_0x569aba(0x173)][_0x569aba(0x16a)]===0x0&&(_0x3be21e[_0x569aba(0x15f)]||_0x3be21e[_0x569aba(0x16c)][_0x569aba(0x16a)]>0x0))return;const _0x3f85a9=_0x3be21e['errors'][_0x569aba(0x16a)]>0x0?_0x3be21e[_0x569aba(0x173)][_0x569aba(0x15b)](';\x20'):_0x569aba(0x185),_0x10eb83=_0x10ee2a==='company'?_0x569aba(0x180):_0x569aba(0x16f);throw CliErrors[_0x569aba(0x16b)](_0x10eb83+_0x569aba(0x167)+_0x13545e+'.',_0x3f85a9);}export function throwIfUnconfirmedPublishWarnings(_0xe7a606,_0x725d32,_0x2b068c,_0x361ce8){const _0xcde95e=a76_0x5013;if(_0x2b068c[_0xcde95e(0x16a)]===0x0||_0x361ce8)return;const _0x1d97c2=_0xe7a606===_0xcde95e(0x15d)?'Company':_0xcde95e(0x16f);throw CliErrors[_0xcde95e(0x16b)](_0x1d97c2+_0xcde95e(0x15e)+_0x725d32+'.',['Review\x20each\x20warning\x20before\x20continuing.','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0xcde95e(0x156),_0xcde95e(0x183)+_0x2b068c['join'](';\x20')][_0xcde95e(0x15b)]('\x20'));}function a76_0x5013(_0x411d4e,_0x43de85){_0x411d4e=_0x411d4e-0x155;const _0x302f54=a76_0x302f();let _0x5013c0=_0x302f54[_0x411d4e];return _0x5013c0;}export function buildRetargetWarning(_0x2625e4,_0x2e3952){const _0x4caa40=a76_0x5013;if(!_0x2625e4?.[_0x4caa40(0x15a)]||_0x2625e4[_0x4caa40(0x15a)]===_0x2e3952)return[];return[{'level':_0x4caa40(0x17c),'ruleId':_0x4caa40(0x170),'file':_0x4caa40(0x176),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x2625e4[_0x4caa40(0x15a)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x2e3952+_0x4caa40(0x184),'suggestion':_0x4caa40(0x163)}];}export async function runRemoteContentPreflight(_0x322207){const _0x3dc5f3=a76_0x5013;if(!_0x322207[_0x3dc5f3(0x178)]||_0x322207['remote'][_0x3dc5f3(0x159)]!==_0x322207['scope']||!_0x322207['publishInput']['files'])return{'status':_0x3dc5f3(0x164)};const _0x5dcc0b=_0x322207[_0x3dc5f3(0x178)][_0x3dc5f3(0x175)]||_0x322207[_0x3dc5f3(0x175)];if(!_0x5dcc0b)return{'status':_0x3dc5f3(0x164)};const _0x3c78da=await _0x322207[_0x3dc5f3(0x160)](_0x322207['scope'],_0x5dcc0b,_0x322207['appCode'],_0x322207[_0x3dc5f3(0x178)][_0x3dc5f3(0x179)]);try{_0x322207[_0x3dc5f3(0x17f)](_0x322207[_0x3dc5f3(0x155)][_0x3dc5f3(0x181)],_0x3c78da);}catch{return{'status':_0x3dc5f3(0x17e)};}return{'status':'identical','savedSkill':{..._0x322207[_0x3dc5f3(0x178)],'content':_0x322207[_0x3dc5f3(0x155)][_0x3dc5f3(0x16d)],'files':_0x322207[_0x3dc5f3(0x155)][_0x3dc5f3(0x181)]}};}
1
+ (function(_0x13962d,_0x46f508){const _0xf2accd=a77_0x235b,_0xdce7dd=_0x13962d();while(!![]){try{const _0x58e317=-parseInt(_0xf2accd(0x163))/0x1*(parseInt(_0xf2accd(0x158))/0x2)+-parseInt(_0xf2accd(0x167))/0x3+-parseInt(_0xf2accd(0x14b))/0x4+parseInt(_0xf2accd(0x171))/0x5*(parseInt(_0xf2accd(0x162))/0x6)+-parseInt(_0xf2accd(0x156))/0x7*(parseInt(_0xf2accd(0x15a))/0x8)+-parseInt(_0xf2accd(0x165))/0x9+parseInt(_0xf2accd(0x150))/0xa;if(_0x58e317===_0x46f508)break;else _0xdce7dd['push'](_0xdce7dd['shift']());}catch(_0x5aa416){_0xdce7dd['push'](_0xdce7dd['shift']());}}}(a77_0x263d,0x68802));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x38ca9a){const _0x12a07a=a77_0x235b,_0x34b670=_0x38ca9a[_0x12a07a(0x16d)](_0x12a07a(0x147))||_0x12a07a(0x161);if(_0x34b670===_0x12a07a(0x161)||_0x34b670==='company')return _0x34b670;throw CliErrors[_0x12a07a(0x143)](_0x12a07a(0x15d)+_0x34b670+'\x22.');}export function allowRetargetArgs(_0x548e29){return _0x548e29?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a77_0x235b(_0x51b22b,_0x5d1e41){_0x51b22b=_0x51b22b-0x143;const _0x263d7d=a77_0x263d();let _0x235b7b=_0x263d7d[_0x51b22b];return _0x235b7b;}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x351833={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x351833};}export function remotePersonalReadOptions(_0x9991db,_0x3480de={}){return{'ignoreInvalidMetadata':!![],..._0x9991db?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x3480de};}function a77_0x263d(){const _0x115e88=['Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','downloadRuntimeSkillPackage','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','join','\x20Skill\x20push\x20validation\x20failed\x20for\x20','str','not-applicable','different','Review\x20each\x20warning\x20before\x20continuing.','183660KOiMnO','validation','skill-metadata-appcode-retargeted','\x20cannot\x20be\x20pushed.','company','scope','Builtin\x20Skill\x20','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','files','3257316FnDkpL','skillCode','errors','Company','appCode','33895270GXcDzI','length','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','publishInput','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','builtin','152243qfXWQw','remote','2LBTMOi','content','232tRPafR','Warnings:\x20','version','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','valid','\x20after\x20successful\x20push.','Personal','personal','54QxdIEk','666450CBldQj','SkillHub\x20validation\x20returned\x20invalid.','7100640WPkjXv','(unknown)','1174863jiBceG'];a77_0x263d=function(){return _0x115e88;};return a77_0x263d();}export function throwIfBuiltinPushTarget(_0x1b8294){const _0x1e4202=a77_0x235b;if(_0x1b8294?.['scope']!==_0x1e4202(0x155))return;throw CliErrors[_0x1e4202(0x143)](_0x1e4202(0x148)+(_0x1b8294['skillCode']??_0x1e4202(0x166))+_0x1e4202(0x145),_0x1e4202(0x154));}export function throwIfPublishValidationFailed(_0x4c2d1f,_0x148e47,_0x4033de){const _0x45007c=a77_0x235b;if(_0x4033de['errors'][_0x45007c(0x151)]===0x0&&(_0x4033de[_0x45007c(0x15e)]||_0x4033de['warnings']['length']>0x0))return;const _0x4bf2c3=_0x4033de[_0x45007c(0x14d)][_0x45007c(0x151)]>0x0?_0x4033de[_0x45007c(0x14d)][_0x45007c(0x16b)](';\x20'):_0x45007c(0x164),_0x535c75=_0x4c2d1f==='company'?_0x45007c(0x14e):_0x45007c(0x160);throw CliErrors[_0x45007c(0x143)](_0x535c75+_0x45007c(0x16c)+_0x148e47+'.',_0x4bf2c3);}export function throwIfUnconfirmedPublishWarnings(_0x37714f,_0x457d64,_0xaa0183,_0x37a3e9){const _0xa9d2ae=a77_0x235b;if(_0xaa0183[_0xa9d2ae(0x151)]===0x0||_0x37a3e9)return;const _0x1458ca=_0x37714f===_0xa9d2ae(0x146)?_0xa9d2ae(0x14e):'Personal';throw CliErrors['validation'](_0x1458ca+_0xa9d2ae(0x152)+_0x457d64+'.',[_0xa9d2ae(0x170),_0xa9d2ae(0x168),_0xa9d2ae(0x149),_0xa9d2ae(0x15b)+_0xaa0183[_0xa9d2ae(0x16b)](';\x20')][_0xa9d2ae(0x16b)]('\x20'));}export function buildRetargetWarning(_0x35d0b0,_0x19b8c6){const _0x72196f=a77_0x235b;if(!_0x35d0b0?.['appCode']||_0x35d0b0[_0x72196f(0x14f)]===_0x19b8c6)return[];return[{'level':'warning','ruleId':_0x72196f(0x144),'file':'lovrabet.skill.json','message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x35d0b0['appCode']+_0x72196f(0x16a)+_0x19b8c6+_0x72196f(0x15f),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0xe37dd8){const _0x2af4a2=a77_0x235b;if(!_0xe37dd8['remote']||_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x147)]!==_0xe37dd8[_0x2af4a2(0x147)]||!_0xe37dd8[_0x2af4a2(0x153)]['files'])return{'status':_0x2af4a2(0x16e)};const _0x29505a=_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x14c)]||_0xe37dd8[_0x2af4a2(0x14c)];if(!_0x29505a)return{'status':_0x2af4a2(0x16e)};const _0x1c304f=await _0xe37dd8[_0x2af4a2(0x169)](_0xe37dd8['scope'],_0x29505a,_0xe37dd8['appCode'],_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x15c)]);try{_0xe37dd8['verifyRuntimeSkillBundle'](_0xe37dd8['publishInput'][_0x2af4a2(0x14a)],_0x1c304f);}catch{return{'status':_0x2af4a2(0x16f)};}return{'status':'identical','savedSkill':{..._0xe37dd8[_0x2af4a2(0x157)],'content':_0xe37dd8['publishInput'][_0x2af4a2(0x159)],'files':_0xe37dd8['publishInput'][_0x2af4a2(0x14a)]}};}
@@ -1 +1 @@
1
- (function(_0x4ce6b9,_0x47f0c7){const _0x204b2b=a77_0x4e39,_0x320c0b=_0x4ce6b9();while(!![]){try{const _0x3b8d10=parseInt(_0x204b2b(0xc8))/0x1+-parseInt(_0x204b2b(0xd1))/0x2+parseInt(_0x204b2b(0xcb))/0x3+-parseInt(_0x204b2b(0xd4))/0x4*(parseInt(_0x204b2b(0xd8))/0x5)+parseInt(_0x204b2b(0xd5))/0x6+-parseInt(_0x204b2b(0xd9))/0x7+-parseInt(_0x204b2b(0xd6))/0x8*(-parseInt(_0x204b2b(0xdd))/0x9);if(_0x3b8d10===_0x47f0c7)break;else _0x320c0b['push'](_0x320c0b['shift']());}catch(_0x245bc5){_0x320c0b['push'](_0x320c0b['shift']());}}}(a77_0x29a5,0x37a0a));function a77_0x4e39(_0x2dbed1,_0x1a9d40){_0x2dbed1=_0x2dbed1-0xc8;const _0x29a5e9=a77_0x29a5();let _0x4e3992=_0x29a5e9[_0x2dbed1];return _0x4e3992;}function a77_0x29a5(){const _0x1c0fda=['Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','version','580818cRffQL','preferInputSkillName','isArray','1202304TQGYFV','2383128VXsDmz','24NJzlSl','sourceSessionId','5GfpsmB','2659608oOAEiX','skillName','appCode','description','359433YJuGtV','266037tHhYeE','warning','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1247229HETXoF','\x20after\x20successful\x20push.','tags','Local\x20Skill\x20metadata\x20appCode\x20'];a77_0x29a5=function(){return _0x1c0fda;};return a77_0x29a5();}export function withRetargetExistingMetadata(_0x42d626,_0x262e41,_0x5bc8e9={}){const _0xa03bce=a77_0x4e39,_0x2b8fd4=_0x5bc8e9[_0xa03bce(0xd2)]?_0x42d626[_0xa03bce(0xda)]??_0x262e41[_0xa03bce(0xda)]:_0x262e41['skillName']??_0x42d626[_0xa03bce(0xda)];return{..._0x42d626,'skillName':_0x2b8fd4,'description':_0x262e41['description']??_0x42d626[_0xa03bce(0xdc)],'tags':Array[_0xa03bce(0xd3)](_0x262e41['tags'])?_0x262e41[_0xa03bce(0xcd)]:_0x42d626['tags'],'version':_0x262e41['version']??_0x42d626[_0xa03bce(0xd0)],'sourceSessionId':_0x262e41[_0xa03bce(0xd7)]??_0x42d626[_0xa03bce(0xd7)]};}export function buildRetargetWarning(_0x49ae5c,_0x22367a){const _0xf5891b=a77_0x4e39;if(!_0x49ae5c?.[_0xf5891b(0xdb)]||_0x49ae5c[_0xf5891b(0xdb)]===_0x22367a)return[];return[{'level':_0xf5891b(0xc9),'ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0xf5891b(0xce)+_0x49ae5c[_0xf5891b(0xdb)]+_0xf5891b(0xca)+_0x22367a+_0xf5891b(0xcc),'suggestion':_0xf5891b(0xcf)}];}
1
+ (function(_0x539174,_0x1152d4){const _0x52bfd8=a78_0x471d,_0xb2fc57=_0x539174();while(!![]){try{const _0x3f27d7=-parseInt(_0x52bfd8(0x100))/0x1+parseInt(_0x52bfd8(0xfc))/0x2*(parseInt(_0x52bfd8(0xf8))/0x3)+parseInt(_0x52bfd8(0xf9))/0x4+-parseInt(_0x52bfd8(0xfb))/0x5+parseInt(_0x52bfd8(0xfa))/0x6*(parseInt(_0x52bfd8(0x107))/0x7)+parseInt(_0x52bfd8(0xfd))/0x8+parseInt(_0x52bfd8(0x103))/0x9*(-parseInt(_0x52bfd8(0xf4))/0xa);if(_0x3f27d7===_0x1152d4)break;else _0xb2fc57['push'](_0xb2fc57['shift']());}catch(_0x5046d6){_0xb2fc57['push'](_0xb2fc57['shift']());}}}(a78_0x4aa9,0x3b715));function a78_0x471d(_0x4f0cbd,_0x62a9f3){_0x4f0cbd=_0x4f0cbd-0xf4;const _0x4aa908=a78_0x4aa9();let _0x471de2=_0x4aa908[_0x4f0cbd];return _0x471de2;}export function withRetargetExistingMetadata(_0x530227,_0x349441,_0x5359c1={}){const _0x1007f9=a78_0x471d,_0x1452e8=_0x5359c1[_0x1007f9(0xfe)]?_0x530227[_0x1007f9(0xf7)]??_0x349441[_0x1007f9(0xf7)]:_0x349441[_0x1007f9(0xf7)]??_0x530227['skillName'];return{..._0x530227,'skillName':_0x1452e8,'description':_0x349441['description']??_0x530227['description'],'tags':Array[_0x1007f9(0xf6)](_0x349441[_0x1007f9(0x105)])?_0x349441[_0x1007f9(0x105)]:_0x530227['tags'],'version':_0x349441['version']??_0x530227[_0x1007f9(0x104)],'sourceSessionId':_0x349441['sourceSessionId']??_0x530227['sourceSessionId']};}export function buildRetargetWarning(_0x1520c5,_0x83a2b){const _0x37132f=a78_0x471d;if(!_0x1520c5?.[_0x37132f(0x106)]||_0x1520c5[_0x37132f(0x106)]===_0x83a2b)return[];return[{'level':'warning','ruleId':_0x37132f(0xff),'file':_0x37132f(0x102),'message':_0x37132f(0xf5)+_0x1520c5[_0x37132f(0x106)]+_0x37132f(0x101)+_0x83a2b+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a78_0x4aa9(){const _0x597ace=['6483258pYHkfK','version','tags','appCode','35HTcCqw','10PFpLJK','Local\x20Skill\x20metadata\x20appCode\x20','isArray','skillName','818115VMixCl','1690116lKXeQs','226542ANNjdb','338995imgoAm','2gxLidF','1887120pSHeoU','preferInputSkillName','skill-metadata-appcode-retargeted','88271RRaTNv','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','lovrabet.skill.json'];a78_0x4aa9=function(){return _0x597ace;};return a78_0x4aa9();}
@@ -1 +1 @@
1
- (function(_0x15d07b,_0x57ff32){const _0x3e5ff4=a78_0x27cd,_0x5d0660=_0x15d07b();while(!![]){try{const _0x5736cd=-parseInt(_0x3e5ff4(0x158))/0x1*(parseInt(_0x3e5ff4(0x156))/0x2)+-parseInt(_0x3e5ff4(0x159))/0x3+-parseInt(_0x3e5ff4(0x151))/0x4*(parseInt(_0x3e5ff4(0x150))/0x5)+-parseInt(_0x3e5ff4(0x15a))/0x6+-parseInt(_0x3e5ff4(0x14e))/0x7+-parseInt(_0x3e5ff4(0x15c))/0x8*(-parseInt(_0x3e5ff4(0x157))/0x9)+parseInt(_0x3e5ff4(0x152))/0xa;if(_0x5736cd===_0x57ff32)break;else _0x5d0660['push'](_0x5d0660['shift']());}catch(_0x25c4c2){_0x5d0660['push'](_0x5d0660['shift']());}}}(a78_0x1eb8,0xba043));function a78_0x27cd(_0x376275,_0x454008){_0x376275=_0x376275-0x14e;const _0x1eb8ee=a78_0x1eb8();let _0x27cdc9=_0x1eb8ee[_0x376275];return _0x27cdc9;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x2bbb46){const _0x1ddc93=a78_0x27cd,_0x147fe1=_0x2bbb46[_0x1ddc93(0x155)]();if(!_0x147fe1||_0x147fe1===_0x1ddc93(0x14f))return['personal',_0x1ddc93(0x15e)];if(_0x147fe1===_0x1ddc93(0x154)||_0x147fe1===_0x1ddc93(0x15e))return[_0x147fe1];throw CliErrors[_0x1ddc93(0x15d)](_0x1ddc93(0x15b)+_0x2bbb46);}export function normalizeListScope(_0x478841){const _0x210db6=a78_0x27cd,_0x434eae=_0x478841[_0x210db6(0x155)]();if(!_0x434eae)return _0x210db6(0x14f);if(_0x434eae===_0x210db6(0x154)||_0x434eae===_0x210db6(0x15e)||_0x434eae===_0x210db6(0x14f))return _0x434eae;throw CliErrors[_0x210db6(0x15d)](_0x210db6(0x153)+_0x478841);}export function shouldListScope(_0x38b98d,_0x2ee647){const _0x4ea43f=a78_0x27cd;if(_0x38b98d===_0x4ea43f(0x14f))return!![];return _0x38b98d===_0x2ee647;}export function listScopeToRuntimeScopes(_0x52e735){const _0x1ed43a=a78_0x27cd;if(_0x52e735==='all')return[_0x1ed43a(0x154),_0x1ed43a(0x15e)];return[_0x52e735===_0x1ed43a(0x15e)?_0x1ed43a(0x15e):_0x52e735];}function a78_0x1eb8(){const _0x2878b4=['all','99030DyzzKU','228OBjicr','61642470TAMnkb','Unsupported\x20Skill\x20list\x20scope:\x20','personal','trim','1177172XexnKD','9NlePcy','2bNivQx','4017570Qzwgzx','7549884IqYyJa','Unsupported\x20Skill\x20sync\x20scope:\x20','2057056ihljsB','validation','company','5290866mcAILe'];a78_0x1eb8=function(){return _0x2878b4;};return a78_0x1eb8();}export function listScopeToRemoteScope(_0x350ba6){return _0x350ba6;}
1
+ (function(_0x2a13d7,_0x28cea8){const _0x56856e=a79_0x4f7e,_0x175feb=_0x2a13d7();while(!![]){try{const _0x4fdb0d=-parseInt(_0x56856e(0x155))/0x1*(parseInt(_0x56856e(0x153))/0x2)+-parseInt(_0x56856e(0x14f))/0x3*(-parseInt(_0x56856e(0x151))/0x4)+parseInt(_0x56856e(0x154))/0x5*(parseInt(_0x56856e(0x156))/0x6)+-parseInt(_0x56856e(0x15a))/0x7+parseInt(_0x56856e(0x15d))/0x8*(-parseInt(_0x56856e(0x15b))/0x9)+parseInt(_0x56856e(0x158))/0xa*(-parseInt(_0x56856e(0x15c))/0xb)+-parseInt(_0x56856e(0x14d))/0xc*(-parseInt(_0x56856e(0x14e))/0xd);if(_0x4fdb0d===_0x28cea8)break;else _0x175feb['push'](_0x175feb['shift']());}catch(_0x3fec6f){_0x175feb['push'](_0x175feb['shift']());}}}(a79_0x4eeb,0x262df));function a79_0x4f7e(_0x215913,_0x50809a){_0x215913=_0x215913-0x14c;const _0x4eebca=a79_0x4eeb();let _0x4f7ede=_0x4eebca[_0x215913];return _0x4f7ede;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x5d9364){const _0x38cdf9=a79_0x4f7e,_0x2d79e3=_0x5d9364[_0x38cdf9(0x152)]();if(!_0x2d79e3||_0x2d79e3===_0x38cdf9(0x157))return[_0x38cdf9(0x15e),_0x38cdf9(0x150)];if(_0x2d79e3===_0x38cdf9(0x15e)||_0x2d79e3===_0x38cdf9(0x150))return[_0x2d79e3];throw CliErrors[_0x38cdf9(0x14c)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x5d9364);}export function normalizeListScope(_0x225ea0){const _0x31c17b=a79_0x4f7e,_0x5c9bc1=_0x225ea0[_0x31c17b(0x152)]();if(!_0x5c9bc1)return _0x31c17b(0x157);if(_0x5c9bc1==='personal'||_0x5c9bc1===_0x31c17b(0x150)||_0x5c9bc1===_0x31c17b(0x157))return _0x5c9bc1;throw CliErrors[_0x31c17b(0x14c)](_0x31c17b(0x159)+_0x225ea0);}export function shouldListScope(_0x158d90,_0x147407){const _0x54276f=a79_0x4f7e;if(_0x158d90===_0x54276f(0x157))return!![];return _0x158d90===_0x147407;}function a79_0x4eeb(){const _0x2be7d2=['895797VSsDhY','596691jmgidw','239393VxgFIi','8sDswCM','personal','validation','12JPJDQx','2485093Flnhhe','6813nSeNhf','company','412FzyKSP','trim','16eYQUdj','2540XKMgYz','3087DIukaY','1212BwwDYY','all','70aLdVsp','Unsupported\x20Skill\x20list\x20scope:\x20'];a79_0x4eeb=function(){return _0x2be7d2;};return a79_0x4eeb();}export function listScopeToRuntimeScopes(_0x510ba7){const _0x3a14d5=a79_0x4f7e;if(_0x510ba7==='all')return['personal',_0x3a14d5(0x150)];return[_0x510ba7==='company'?_0x3a14d5(0x150):_0x510ba7];}export function listScopeToRemoteScope(_0x407eee){return _0x407eee;}
@@ -1 +1 @@
1
- function a79_0x32f3(_0x28d0bd,_0x4be679){_0x28d0bd=_0x28d0bd-0x122;var _0x4d5973=a79_0x4d59();var _0x32f39b=_0x4d5973[_0x28d0bd];return _0x32f39b;}(function(_0x5b5a78,_0x5cfb30){var _0x52277d=a79_0x32f3,_0x440c8b=_0x5b5a78();while(!![]){try{var _0x108b5d=parseInt(_0x52277d(0x135))/0x1+parseInt(_0x52277d(0x138))/0x2*(parseInt(_0x52277d(0x12b))/0x3)+-parseInt(_0x52277d(0x12c))/0x4+-parseInt(_0x52277d(0x12f))/0x5+-parseInt(_0x52277d(0x126))/0x6+parseInt(_0x52277d(0x134))/0x7*(-parseInt(_0x52277d(0x127))/0x8)+parseInt(_0x52277d(0x122))/0x9;if(_0x108b5d===_0x5cfb30)break;else _0x440c8b['push'](_0x440c8b['shift']());}catch(_0x539c5e){_0x440c8b['push'](_0x440c8b['shift']());}}}(a79_0x4d59,0x73a6c));export function summarizeRuntimeSkill(_0x4015da){var _0x272d25=a79_0x32f3;return{'id':_0x4015da['id'],'skillCode':_0x4015da['skillCode'],'skillName':_0x4015da[_0x272d25(0x125)],'scope':_0x4015da['scope'],'version':_0x4015da[_0x272d25(0x12d)],'readonly':_0x4015da[_0x272d25(0x12e)]};}export function summarizeLocalRuntimeSkill(_0x4e8629){var _0x2f4495=a79_0x32f3;return{'id':_0x4e8629['id'],'skillCode':_0x4e8629[_0x2f4495(0x133)],'skillName':_0x4e8629['skillName'],'scope':_0x4e8629[_0x2f4495(0x137)],'appCode':_0x4e8629['appCode'],'version':_0x4e8629[_0x2f4495(0x12d)],'status':_0x4e8629[_0x2f4495(0x132)],'readonly':_0x4e8629[_0x2f4495(0x12e)],'tags':_0x4e8629[_0x2f4495(0x12a)],'dir':_0x4e8629[_0x2f4495(0x130)],'cacheDir':_0x4e8629[_0x2f4495(0x123)],'skillMdPath':_0x4e8629[_0x2f4495(0x131)],'metadataPath':_0x4e8629[_0x2f4495(0x124)],'linkedPaths':_0x4e8629[_0x2f4495(0x136)],'contentHash':_0x4e8629[_0x2f4495(0x128)],'treeHash':_0x4e8629[_0x2f4495(0x139)],'pulledAt':_0x4e8629[_0x2f4495(0x129)]};}function a79_0x4d59(){var _0x446b1f=['skillName','2603976DVdYuN','8zphKOX','contentHash','pulledAt','tags','1944453cJZCeB','2878372BDTFge','version','readonly','2254500zRFQjc','dir','skillMdPath','status','skillCode','4941811iiyTLH','774307ugxZkh','linkedPaths','scope','2HrIfwB','treeHash','12255408WpTkQd','cacheDir','metadataPath'];a79_0x4d59=function(){return _0x446b1f;};return a79_0x4d59();}
1
+ (function(_0x4767d0,_0x26a97c){var _0x47d174=a80_0x256c,_0x828525=_0x4767d0();while(!![]){try{var _0x480932=parseInt(_0x47d174(0x93))/0x1+-parseInt(_0x47d174(0x9c))/0x2*(-parseInt(_0x47d174(0xa1))/0x3)+parseInt(_0x47d174(0x99))/0x4+parseInt(_0x47d174(0xa2))/0x5*(-parseInt(_0x47d174(0xa4))/0x6)+-parseInt(_0x47d174(0x92))/0x7+parseInt(_0x47d174(0x98))/0x8+parseInt(_0x47d174(0x9a))/0x9*(-parseInt(_0x47d174(0x9d))/0xa);if(_0x480932===_0x26a97c)break;else _0x828525['push'](_0x828525['shift']());}catch(_0x1f5965){_0x828525['push'](_0x828525['shift']());}}}(a80_0x424d,0x28f1c));function a80_0x424d(){var _0x2ebdac=['skillCode','dir','3qpveri','19235OhQNyJ','pulledAt','24SHdKkV','skillMdPath','scope','tags','treeHash','213787lkEGmu','258042BWRyWf','metadataPath','version','cacheDir','linkedPaths','1719216yPCLBo','908052vzfzdo','27hvmxCb','skillName','177794jdbRyB','1917390DTEPLB','appCode'];a80_0x424d=function(){return _0x2ebdac;};return a80_0x424d();}function a80_0x256c(_0x507ea8,_0x12fd81){_0x507ea8=_0x507ea8-0x90;var _0x424dce=a80_0x424d();var _0x256c0d=_0x424dce[_0x507ea8];return _0x256c0d;}export function summarizeRuntimeSkill(_0x2dd743){var _0x3d2364=a80_0x256c;return{'id':_0x2dd743['id'],'skillCode':_0x2dd743['skillCode'],'skillName':_0x2dd743[_0x3d2364(0x9b)],'scope':_0x2dd743[_0x3d2364(0xa6)],'version':_0x2dd743['version'],'readonly':_0x2dd743['readonly']};}export function summarizeLocalRuntimeSkill(_0x19d4fe){var _0x16dd99=a80_0x256c;return{'id':_0x19d4fe['id'],'skillCode':_0x19d4fe[_0x16dd99(0x9f)],'skillName':_0x19d4fe[_0x16dd99(0x9b)],'scope':_0x19d4fe[_0x16dd99(0xa6)],'appCode':_0x19d4fe[_0x16dd99(0x9e)],'version':_0x19d4fe[_0x16dd99(0x95)],'status':_0x19d4fe['status'],'readonly':_0x19d4fe['readonly'],'tags':_0x19d4fe[_0x16dd99(0x90)],'dir':_0x19d4fe[_0x16dd99(0xa0)],'cacheDir':_0x19d4fe[_0x16dd99(0x96)],'skillMdPath':_0x19d4fe[_0x16dd99(0xa5)],'metadataPath':_0x19d4fe[_0x16dd99(0x94)],'linkedPaths':_0x19d4fe[_0x16dd99(0x97)],'contentHash':_0x19d4fe['contentHash'],'treeHash':_0x19d4fe[_0x16dd99(0x91)],'pulledAt':_0x19d4fe[_0x16dd99(0xa3)]};}
@@ -1 +1 @@
1
- const a80_0x255218=a80_0x1385;(function(_0x109b3f,_0x1b6ee6){const _0x19b3ba=a80_0x1385,_0x1b2b8=_0x109b3f();while(!![]){try{const _0x4f967c=-parseInt(_0x19b3ba(0x1b6))/0x1*(-parseInt(_0x19b3ba(0x1b4))/0x2)+parseInt(_0x19b3ba(0x1ab))/0x3+parseInt(_0x19b3ba(0x19a))/0x4+-parseInt(_0x19b3ba(0x1ad))/0x5+parseInt(_0x19b3ba(0x19b))/0x6+-parseInt(_0x19b3ba(0x1a0))/0x7*(-parseInt(_0x19b3ba(0x1b1))/0x8)+parseInt(_0x19b3ba(0x1b2))/0x9*(-parseInt(_0x19b3ba(0x1a1))/0xa);if(_0x4f967c===_0x1b6ee6)break;else _0x1b2b8['push'](_0x1b2b8['shift']());}catch(_0x171ed5){_0x1b2b8['push'](_0x1b2b8['shift']());}}}(a80_0x7eb4,0x47c59));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a80_0x255218(0x193)];export const DEFAULT_SKILL_TARGET=a80_0x255218(0x1a6);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a80_0x7eb4(){const _0x36a09b=['Invalid\x20Skill\x20name:\x20','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','145705WXEAOD','593790wSbuvx','includes','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','timestamp','.agents/skills','type','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','Use\x20one\x20of:\x20','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','1646700HhHUvh','references/output-contract.md','1570445XmKzyi','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','join','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','40yicHEU','108AbmSOd','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','33038chvwSk','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','11QaxULi','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','---\x0aname:\x20','write','SKILL.md','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','test','Unsupported\x20Skill\x20type:\x20','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','read','trim','toISOString','references/runtime-contract.md','validation','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','638552IRYNvZ','1957752bzYXxP'];a80_0x7eb4=function(){return _0x36a09b;};return a80_0x7eb4();}export const RUNTIME_CONTRACT_FILE=a80_0x255218(0x196);export const OUTPUT_CONTRACT_FILE=a80_0x255218(0x1ac);function a80_0x1385(_0x182512,_0x4d262c){_0x182512=_0x182512-0x18c;const _0x7eb4aa=a80_0x7eb4();let _0x138599=_0x7eb4aa[_0x182512];return _0x138599;}export function validateSkillName(_0x1a8cd3){const _0x46c3e8=a80_0x255218,_0x26a9de=_0x1a8cd3[_0x46c3e8(0x194)]();if(!SKILL_NAME_PATTERN[_0x46c3e8(0x190)](_0x26a9de))throw CliErrors[_0x46c3e8(0x197)](_0x46c3e8(0x19c)+_0x1a8cd3+_0x46c3e8(0x199),_0x46c3e8(0x1aa));return _0x26a9de;}export function normalizeSkillTemplateType(_0x543276){const _0x2a720f=a80_0x255218,_0x5ab4dd=(_0x543276||_0x2a720f(0x18d))[_0x2a720f(0x194)]()||'write';if(SKILL_TYPES[_0x2a720f(0x1a2)](_0x5ab4dd))return _0x5ab4dd;throw CliErrors[_0x2a720f(0x197)](_0x2a720f(0x191)+_0x543276,_0x2a720f(0x1a9)+SKILL_TYPES[_0x2a720f(0x1af)](',\x20')+'.');}export function renderSkillTemplate(_0x1a4fb7){const _0x6ed7fd=a80_0x255218,_0x474cf0=validateSkillName(_0x1a4fb7['skillName']),_0x31c9c7=normalizeSkillTemplateType(_0x1a4fb7[_0x6ed7fd(0x1a7)]),_0x208da6=_0x1a4fb7[_0x6ed7fd(0x1a5)]??new Date()[_0x6ed7fd(0x195)]();return{'skillName':_0x474cf0,'type':_0x31c9c7,'files':[{'path':_0x6ed7fd(0x18e),'content':renderSkillMd(_0x474cf0,_0x31c9c7,_0x208da6)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x474cf0,_0x31c9c7)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x474cf0,_0x31c9c7)}]};}function renderSkillMd(_0x3778ef,_0x5e215d,_0x581f99){const _0x315684=a80_0x255218,_0x10b6bd=typeWorkflow(_0x5e215d);return _0x315684(0x18c)+_0x3778ef+_0x315684(0x18f)+_0x5e215d+'\x0a\x20\x20created:\x20\x22'+_0x581f99+_0x315684(0x1b3)+_0x3778ef+_0x315684(0x1a8)+_0x10b6bd+'\x0a\x0a'+businessStateSection(_0x5e215d)+_0x315684(0x19d);}function renderRuntimeContract(_0x4752fa,_0x38ab36){const _0x1c977d=a80_0x255218,_0x2c1213=_0x38ab36===_0x1c977d(0x18d)?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0x1c977d(0x1ae)+_0x4752fa+_0x1c977d(0x1b7)+_0x38ab36+_0x1c977d(0x19e)+_0x2c1213+_0x1c977d(0x192);}function renderOutputContract(_0x4643fa,_0x27b0de){const _0x5df7f6=a80_0x255218,_0x1de659=_0x27b0de===_0x5df7f6(0x18d)?_0x5df7f6(0x1b5):_0x27b0de+_0x5df7f6(0x1a4);return'#\x20Output\x20Contract\x0a\x0a'+_0x4643fa+_0x5df7f6(0x198)+_0x1de659+_0x5df7f6(0x1a3);}function typeWorkflow(_0x40a1f9){const _0x2f52d4=a80_0x255218;if(_0x40a1f9==='read')return _0x2f52d4(0x19f);return _0x2f52d4(0x1b0);}function businessStateSection(_0x2828aa){if(_0x2828aa!=='write')return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
1
+ const a81_0x58762d=a81_0x50da;(function(_0x4d8909,_0x1dd08e){const _0x36df4e=a81_0x50da,_0x2a65dd=_0x4d8909();while(!![]){try{const _0x2a5532=-parseInt(_0x36df4e(0x111))/0x1+-parseInt(_0x36df4e(0x120))/0x2+-parseInt(_0x36df4e(0x11c))/0x3+parseInt(_0x36df4e(0x10f))/0x4*(parseInt(_0x36df4e(0x12b))/0x5)+-parseInt(_0x36df4e(0x123))/0x6*(-parseInt(_0x36df4e(0x137))/0x7)+parseInt(_0x36df4e(0x121))/0x8+parseInt(_0x36df4e(0x138))/0x9;if(_0x2a5532===_0x1dd08e)break;else _0x2a65dd['push'](_0x2a65dd['shift']());}catch(_0x39ebcb){_0x2a65dd['push'](_0x2a65dd['shift']());}}}(a81_0x160f,0x6b26d));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a81_0x58762d(0x131),a81_0x58762d(0x134)];export const DEFAULT_SKILL_TARGET=a81_0x58762d(0x119);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a81_0x58762d(0x125);function a81_0x50da(_0x23550f,_0x18f058){_0x23550f=_0x23550f-0x10f;const _0x160fe1=a81_0x160f();let _0x50da32=_0x160fe1[_0x23550f];return _0x50da32;}export const OUTPUT_CONTRACT_FILE=a81_0x58762d(0x115);export function validateSkillName(_0x1adb0a){const _0x39a99e=a81_0x58762d,_0x3449dd=_0x1adb0a['trim']();if(!SKILL_NAME_PATTERN[_0x39a99e(0x11f)](_0x3449dd))throw CliErrors[_0x39a99e(0x118)](_0x39a99e(0x132)+_0x1adb0a+_0x39a99e(0x11b),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x3449dd;}export function normalizeSkillTemplateType(_0x2b25a8){const _0x49fb1f=a81_0x58762d,_0x275515=(_0x2b25a8||'write')[_0x49fb1f(0x133)]()||_0x49fb1f(0x131);if(SKILL_TYPES['includes'](_0x275515))return _0x275515;throw CliErrors[_0x49fb1f(0x118)](_0x49fb1f(0x113)+_0x2b25a8,_0x49fb1f(0x12f)+SKILL_TYPES[_0x49fb1f(0x110)](',\x20')+'.');}export function renderSkillTemplate(_0x5104df){const _0x6a422e=a81_0x58762d,_0x7ad9e3=validateSkillName(_0x5104df['skillName']),_0x166ccb=normalizeSkillTemplateType(_0x5104df[_0x6a422e(0x12a)]),_0x37210d=_0x5104df['timestamp']??new Date()[_0x6a422e(0x12c)]();return{'skillName':_0x7ad9e3,'type':_0x166ccb,'files':[{'path':_0x6a422e(0x135),'content':renderSkillMd(_0x7ad9e3,_0x166ccb,_0x37210d)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x7ad9e3,_0x166ccb)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x7ad9e3,_0x166ccb)}]};}function a81_0x160f(){const _0x19eb1a=['toISOString','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','Use\x20one\x20of:\x20','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','write','Invalid\x20Skill\x20name:\x20','trim','read','SKILL.md','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','21gPrgWK','3950550llCIyM','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','1808VRzRIs','join','109975uewpEi','---\x0aname:\x20','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','references/output-contract.md','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','validation','.agents/skills','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','1839069wFdpzx','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','\x0a\x20\x20created:\x20\x22','test','680816ZoLfFj','3471808AlSLxH','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','111570kVrLDq','#\x20Output\x20Contract\x0a\x0a','references/runtime-contract.md','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','type','6345pYHBmq'];a81_0x160f=function(){return _0x19eb1a;};return a81_0x160f();}function renderSkillMd(_0x506695,_0x3700ee,_0x110a0f){const _0x58722c=a81_0x58762d,_0xd3478a=typeWorkflow(_0x3700ee);return _0x58722c(0x112)+_0x506695+_0x58722c(0x122)+_0x3700ee+_0x58722c(0x11e)+_0x110a0f+_0x58722c(0x116)+_0x506695+_0x58722c(0x12e)+_0xd3478a+'\x0a\x0a'+businessStateSection(_0x3700ee)+_0x58722c(0x114);}function renderRuntimeContract(_0x2503af,_0x32e42e){const _0x351729=a81_0x58762d,_0x2cd4a3=_0x32e42e===_0x351729(0x131)?_0x351729(0x117):'';return _0x351729(0x128)+_0x2503af+_0x351729(0x11d)+_0x32e42e+_0x351729(0x130)+_0x2cd4a3+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function renderOutputContract(_0x1d2ab4,_0x57e5fd){const _0xf0d1a=a81_0x58762d,_0x853b3e=_0x57e5fd===_0xf0d1a(0x131)?_0xf0d1a(0x126):_0x57e5fd+_0xf0d1a(0x12d);return _0xf0d1a(0x124)+_0x1d2ab4+_0xf0d1a(0x127)+_0x853b3e+_0xf0d1a(0x139);}function typeWorkflow(_0x5a752a){const _0x184abc=a81_0x58762d;if(_0x5a752a===_0x184abc(0x134))return _0x184abc(0x136);return _0x184abc(0x129);}function businessStateSection(_0x22f818){const _0x1389fd=a81_0x58762d;if(_0x22f818!==_0x1389fd(0x131))return'';return _0x1389fd(0x11a);}