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

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 (177) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +2 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  141. package/lib/services/dataset-import/excel-reader.js +1 -1
  142. package/lib/services/dataset-import/metadata.js +1 -1
  143. package/lib/services/dataset-import/preview.js +1 -1
  144. package/lib/services/dataset-import/runner.js +1 -1
  145. package/lib/skills/builtin-skill.js +1 -1
  146. package/lib/skills/npx-skills-add.js +1 -1
  147. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  148. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  149. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  150. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  151. package/lib/skills/runtime-skill-sync/links.js +1 -1
  152. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  153. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  154. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  155. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  156. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  157. package/lib/skills/runtime-skill-sync/push.js +1 -1
  158. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  159. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  161. package/lib/skills/runtime-skill-sync.js +1 -1
  162. package/lib/skills/skill-presence.js +1 -1
  163. package/lib/utils/access-key-redaction.js +1 -1
  164. package/lib/utils/apply-jq-filter.js +1 -1
  165. package/lib/utils/cli-version-check.js +1 -1
  166. package/lib/utils/cli-version-policy.js +1 -1
  167. package/lib/utils/logger.js +1 -1
  168. package/lib/utils/lossless-json.js +1 -1
  169. package/lib/utils/params.js +1 -1
  170. package/lib/utils/positive-safe-integer.js +1 -1
  171. package/lib/utils/redaction.js +1 -1
  172. package/lib/utils/update-notice.js +1 -1
  173. package/lib/utils/version.js +1 -1
  174. package/lib/utils/write-cli-side-channel.js +1 -1
  175. package/package.json +1 -1
  176. package/skills/lovrabet/SKILL.md +1 -1
  177. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
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
+ const a68_0x2e3bfe=a68_0x2284;(function(_0x53cf38,_0x317920){const _0x5ea8ee=a68_0x2284,_0x2e7656=_0x53cf38();while(!![]){try{const _0x4498e2=parseInt(_0x5ea8ee(0x1c8))/0x1*(parseInt(_0x5ea8ee(0x1d2))/0x2)+parseInt(_0x5ea8ee(0x1ef))/0x3+-parseInt(_0x5ea8ee(0x1ee))/0x4+-parseInt(_0x5ea8ee(0x1ed))/0x5+parseInt(_0x5ea8ee(0x1e5))/0x6*(-parseInt(_0x5ea8ee(0x1d7))/0x7)+-parseInt(_0x5ea8ee(0x1d6))/0x8+parseInt(_0x5ea8ee(0x1c2))/0x9*(parseInt(_0x5ea8ee(0x1ea))/0xa);if(_0x4498e2===_0x317920)break;else _0x2e7656['push'](_0x2e7656['shift']());}catch(_0x257487){_0x2e7656['push'](_0x2e7656['shift']());}}}(a68_0x43cb,0xbfb25));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a68_0x2e3bfe(0x1ca),'command':a68_0x2e3bfe(0x1e7),'description':a68_0x2e3bfe(0x1e2),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x265b58){return syncRuntimeSkills(_0x265b58);}};function a68_0x43cb(){const _0x4e2b22=['reduce','\x20personal\x20and\x20','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','str','authRequired','146814dCfGrF','skillRoots','install','force','company','32021650TMdXLA','skillCode','length','6896545QuSHif','5276548LaOQWM','298446IWuPmO','9wQzDXD','Installed\x20','../../../core/api-client.js','from','created','removed','14387LBngxX','includes','skill','scope','unchanged','code','appCode','personal','map','all','182rcdItD','bool','project','../../../skills/runtime-skill-sync.js','8822080qHNwIr','7kIgTZv','filter','accessKey','global','trim','version','min','\x20company\x20Skill(s).','action'];a68_0x43cb=function(){return _0x4e2b22;};return a68_0x43cb();}async function syncRuntimeSkills(_0x54d91c){const _0x5503f7=a68_0x2e3bfe,{downloadRuntimeSkillPackage:_0x1c7591,listRuntimeSkills:_0x498022}=await import(_0x5503f7(0x1c4)),{linkEffectiveRuntimeSkills:_0x53f18f,materializeRuntimeSkill:_0x44e033,pruneStaleRuntimeSkillCache:_0x3bcf77,pruneStaleRuntimeSkillLinks:_0x2adbc0,resolveRuntimeSkillInstallTarget:_0x139c27,reuseMaterializedRuntimeSkill:_0x438a72}=await import(_0x5503f7(0x1d5)),_0x422930=_0x54d91c[_0x5503f7(0x1e3)](_0x5503f7(0x1cd)),_0x450e0e=normalizeSyncScopes(_0x54d91c[_0x5503f7(0x1e3)]('scope')),_0x58824d=_0x54d91c['envName']??'production',_0x17033e=_0x54d91c[_0x5503f7(0x1d9)],_0x5a77f9=_0x54d91c[_0x5503f7(0x1d3)](_0x5503f7(0x1e8));if(!_0x17033e)throw CliErrors[_0x5503f7(0x1e4)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0xaf25db=_0x139c27(_0x54d91c[_0x5503f7(0x1ce)],_0x54d91c[_0x5503f7(0x1d3)]('project')?_0x5503f7(0x1d4):_0x5503f7(0x1da)),_0x5b3813=_0x139c27(_0x54d91c['appCode'],_0xaf25db[_0x5503f7(0x1cb)]===_0x5503f7(0x1d4)?_0x5503f7(0x1da):_0x5503f7(0x1d4)),_0x5ded0a=await _0x498022({'appCode':_0x54d91c[_0x5503f7(0x1ce)],'scope':_0x450e0e[_0x5503f7(0x1ec)]===0x1?_0x450e0e[0x0]:_0x5503f7(0x1d1),'code':_0x422930['trim']()||undefined,'installableOnly':!![]}),_0x39d9e4=_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1cf))?_0x5ded0a[_0x5503f7(0x1cf)]:[],_0x83177b=_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1e9))?_0x5ded0a[_0x5503f7(0x1e9)]:[],_0x472fa0=new Set([..._0x39d9e4[_0x5503f7(0x1d0)](_0x3580fb=>_0x3580fb[_0x5503f7(0x1eb)]?.[_0x5503f7(0x1db)]())[_0x5503f7(0x1d8)](_0x505bda=>Boolean(_0x505bda)),..._0x83177b[_0x5503f7(0x1d0)](_0x4005e1=>_0x4005e1[_0x5503f7(0x1eb)]?.[_0x5503f7(0x1db)]())[_0x5503f7(0x1d8)](_0x76755f=>Boolean(_0x76755f))]),_0x3d77bf=_0x422930['trim']()?[_0x422930['trim']()]:undefined,_0x157e65=_0x450e0e[_0x5503f7(0x1ec)]===0x2&&_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1cf))&&_0x450e0e[_0x5503f7(0x1c9)](_0x5503f7(0x1e9)),_0x475dac=_0x157e65?_0x2adbc0(_0xaf25db,_0x472fa0,_0x3d77bf):[],_0x420450=_0x3bcf77({'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c['appCode'],'activeSkillCodes':_0x472fa0,'pruneSkillCodes':_0x3d77bf,'scopes':_0x450e0e,'protectedLinkRoots':_0x5b3813['skillRoots']}),_0x358a72=[..._0x39d9e4[_0x5503f7(0x1d0)](_0x5b2037=>({'skill':_0x5b2037,'scope':_0x5503f7(0x1cf)})),..._0x83177b[_0x5503f7(0x1d0)](_0x15b63d=>({'skill':_0x15b63d,'scope':'company'}))],_0xe07796=await mapConcurrent(_0x358a72,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0xa212a5,scope:_0x487c22})=>{const _0x5da943=_0x5503f7,_0xb90e20=_0x438a72(_0xa212a5,_0x487c22,{'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c[_0x5da943(0x1ce)]});if(_0xb90e20)return _0xb90e20;return _0x44e033(_0xa212a5,_0x487c22,{'env':_0x58824d,'accessKey':_0x17033e,'appCode':_0x54d91c['appCode'],'force':_0x5a77f9,'packageBytes':await downloadSkillPackage(_0xa212a5,_0x487c22,_0x54d91c[_0x5da943(0x1ce)],_0x1c7591)});}),_0x39dad2=_0x53f18f(_0xe07796,_0xaf25db),_0x234387=countLinkActions(_0x39dad2);return{'ok':!![],'data':{'appCode':_0x54d91c[_0x5503f7(0x1ce)],..._0xaf25db[_0x5503f7(0x1cb)]===_0x5503f7(0x1d4)?{'installTarget':{'scope':_0xaf25db[_0x5503f7(0x1cb)],'skillRoots':[..._0xaf25db[_0x5503f7(0x1e6)]]}}:{},'personal':_0x39d9e4[_0x5503f7(0x1ec)],'company':_0x83177b['length'],'materialized':_0xe07796[_0x5503f7(0x1ec)],'links':{'total':_0x39dad2[_0x5503f7(0x1ec)],'created':_0x234387[_0x5503f7(0x1c6)]??0x0,'updated':_0x234387['updated']??0x0,'unchanged':_0x234387[_0x5503f7(0x1cc)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x475dac['filter'](_0x232f7d=>_0x232f7d[_0x5503f7(0x1df)]===_0x5503f7(0x1c7))[_0x5503f7(0x1ec)],'cacheDirs':_0x420450[_0x5503f7(0x1d8)](_0x5c6134=>_0x5c6134[_0x5503f7(0x1df)]==='removed')['length'],'skipped':[..._0x475dac,..._0x420450]['filter'](_0xf94f0f=>_0xf94f0f[_0x5503f7(0x1df)]==='skipped')['length']},'skills':{'personal':_0x39d9e4[_0x5503f7(0x1d0)](summarizeRuntimeSkill),'company':_0x83177b['map'](summarizeRuntimeSkill)}},'message':_0x5503f7(0x1c3)+_0x39d9e4['length']+_0x5503f7(0x1e1)+_0x83177b[_0x5503f7(0x1ec)]+_0x5503f7(0x1de)};}function a68_0x2284(_0x4b5c98,_0x423635){_0x4b5c98=_0x4b5c98-0x1c2;const _0x43cb15=a68_0x43cb();let _0x228409=_0x43cb15[_0x4b5c98];return _0x228409;}async function mapConcurrent(_0x37193d,_0x59af21,_0x173f2a){const _0x2f6049=a68_0x2e3bfe,_0x58f934=new Array(_0x37193d[_0x2f6049(0x1ec)]);let _0x5f147b=0x0;const _0xf189fc=Array[_0x2f6049(0x1c5)]({'length':Math[_0x2f6049(0x1dd)](_0x59af21,_0x37193d[_0x2f6049(0x1ec)])},async()=>{while(_0x5f147b<_0x37193d['length']){const _0x3f89c9=_0x5f147b;_0x5f147b+=0x1,_0x58f934[_0x3f89c9]=await _0x173f2a(_0x37193d[_0x3f89c9]);}});return await Promise['all'](_0xf189fc),_0x58f934;}async function downloadSkillPackage(_0x3dc33b,_0x567c47,_0x5d036b,_0x49e510){const _0x4603a9=a68_0x2e3bfe,_0x4568a2=_0x3dc33b[_0x4603a9(0x1dc)]?.[_0x4603a9(0x1db)]();return _0x4568a2?_0x49e510(_0x567c47,_0x3dc33b['skillCode'],_0x5d036b,_0x4568a2):_0x49e510(_0x567c47,_0x3dc33b[_0x4603a9(0x1eb)],_0x5d036b);}function countLinkActions(_0xe923b4){const _0x4e7d07=a68_0x2e3bfe;return _0xe923b4[_0x4e7d07(0x1e0)]((_0x27fccd,_0x3cb131)=>{return _0x27fccd[_0x3cb131['action']]=(_0x27fccd[_0x3cb131['action']]??0x0)+0x1,_0x27fccd;},{});}
@@ -1 +1 @@
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
+ const a69_0x47dfc2=a69_0x2f2e;(function(_0x135a91,_0x5290e6){const _0x59978f=a69_0x2f2e,_0x35693d=_0x135a91();while(!![]){try{const _0x10874c=-parseInt(_0x59978f(0x123))/0x1+parseInt(_0x59978f(0x126))/0x2+-parseInt(_0x59978f(0x133))/0x3+-parseInt(_0x59978f(0x12a))/0x4*(parseInt(_0x59978f(0x135))/0x5)+-parseInt(_0x59978f(0x11f))/0x6*(-parseInt(_0x59978f(0x119))/0x7)+parseInt(_0x59978f(0x11d))/0x8*(-parseInt(_0x59978f(0x11c))/0x9)+parseInt(_0x59978f(0x12c))/0xa;if(_0x10874c===_0x5290e6)break;else _0x35693d['push'](_0x35693d['shift']());}catch(_0xfd5485){_0x35693d['push'](_0x35693d['shift']());}}}(a69_0x376b,0xaedc1));function a69_0x376b(){const _0x29b129=['trim','project','9KuKyYF','4640968jDrBsO','personal','6494928UDRnhv','appCode','length','map','647606XPorbA','remote','global','2237250zqqsEk','../../../skills/runtime-skill-sync.js','company','code','620qBZGZk','Listed\x20','14937360JLUdtB','local','bool','filter','production','str','scope','1040256LqIoAI','\x20remote\x20Skill(s).','45295WvEDJC','accessKey','\x20local\x20Skill(s).','envName','list','7jqWVWm'];a69_0x376b=function(){return _0x29b129;};return a69_0x376b();}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a69_0x2f2e(_0x383d2f,_0xf9a9a0){_0x383d2f=_0x383d2f-0x118;const _0x376b07=a69_0x376b();let _0x2f2ec2=_0x376b07[_0x383d2f];return _0x2f2ec2;}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a69_0x47dfc2(0x118),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x5d0b21){const _0x277623=a69_0x47dfc2,_0x155b11=_0x5d0b21[_0x277623(0x131)](_0x277623(0x129)),_0x1a0c5e=normalizeListScope(_0x5d0b21[_0x277623(0x131)]('scope'));if(_0x5d0b21[_0x277623(0x12e)](_0x277623(0x12d))){const _0x13de4f=_0x5d0b21[_0x277623(0x136)];if(!_0x13de4f)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x195055,resolveRuntimeSkillInstallTarget:_0x9dc408}=await import(_0x277623(0x127)),_0x397cc2=_0x9dc408(_0x5d0b21[_0x277623(0x120)],_0x5d0b21[_0x277623(0x12e)](_0x277623(0x11b))?_0x277623(0x11b):_0x277623(0x125)),_0x5d9bdd=_0x195055({'env':_0x5d0b21[_0x277623(0x138)]??_0x277623(0x130),'accessKey':_0x13de4f,'appCode':_0x5d0b21[_0x277623(0x120)],'scopes':listScopeToRuntimeScopes(_0x1a0c5e),'code':_0x155b11[_0x277623(0x11a)]()||undefined},_0x397cc2),_0x45dad0=groupLocalRuntimeSkills(_0x5d9bdd);return{'ok':!![],'data':{'appCode':_0x5d0b21['appCode'],'source':_0x277623(0x12d),..._0x397cc2[_0x277623(0x132)]===_0x277623(0x11b)?{'installScope':_0x397cc2['scope']}:{},'scope':_0x1a0c5e,'total':_0x5d9bdd[_0x277623(0x121)],'personal':_0x45dad0['personal'][_0x277623(0x121)],'company':_0x45dad0[_0x277623(0x128)][_0x277623(0x121)],'items':_0x5d9bdd[_0x277623(0x122)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x45dad0['personal'][_0x277623(0x122)](summarizeLocalRuntimeSkill),'company':_0x45dad0[_0x277623(0x128)][_0x277623(0x122)](summarizeLocalRuntimeSkill)}},'message':_0x277623(0x12b)+_0x5d9bdd[_0x277623(0x121)]+_0x277623(0x137)};}const {listRuntimeSkills:_0x5d931c}=await import('../../../core/api-client.js'),_0x2bf188=await _0x5d931c({'appCode':_0x5d0b21['appCode'],'scope':listScopeToRemoteScope(_0x1a0c5e),'code':_0x155b11[_0x277623(0x11a)]()||undefined}),_0x396723=shouldListScope(_0x1a0c5e,_0x277623(0x11e))?_0x2bf188[_0x277623(0x11e)]??[]:[],_0x2ec570=shouldListScope(_0x1a0c5e,'company')?_0x2bf188[_0x277623(0x128)]??[]:[],_0x24c4b5=[..._0x396723,..._0x2ec570];return{'ok':!![],'data':{'appCode':_0x5d0b21[_0x277623(0x120)],'source':_0x277623(0x124),'scope':_0x1a0c5e,'total':_0x24c4b5['length'],'personal':_0x396723[_0x277623(0x121)],'company':_0x2ec570[_0x277623(0x121)],'items':_0x24c4b5[_0x277623(0x122)](summarizeRuntimeSkill),'skills':{'personal':_0x396723[_0x277623(0x122)](summarizeRuntimeSkill),'company':_0x2ec570['map'](summarizeRuntimeSkill)}},'message':_0x277623(0x12b)+_0x24c4b5[_0x277623(0x121)]+_0x277623(0x134)};}};function groupLocalRuntimeSkills(_0x52a67a){const _0x51a4bb=a69_0x47dfc2;return{'personal':_0x52a67a[_0x51a4bb(0x12f)](_0x1406f9=>_0x1406f9[_0x51a4bb(0x132)]===_0x51a4bb(0x11e)),'company':_0x52a67a['filter'](_0x2cb62e=>_0x2cb62e['scope']===_0x51a4bb(0x128)),'builtin':_0x52a67a['filter'](_0x4433c3=>_0x4433c3[_0x51a4bb(0x132)]==='builtin')};}
@@ -1 +1 @@
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
+ function a70_0x2512(){const _0x3feac7=['388465MyJNmA','343472rfQsAi','556660kzHOqc','skill','287904qwAdsv','40553wurtFy','24kyKtfq','push','2837034yMkoVm','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','35jiCdgb','1057725NlKpAq'];a70_0x2512=function(){return _0x3feac7;};return a70_0x2512();}const a70_0x4534c5=a70_0x5bec;function a70_0x5bec(_0x40e733,_0x70e299){_0x40e733=_0x40e733-0x157;const _0x251203=a70_0x2512();let _0x5bec85=_0x251203[_0x40e733];return _0x5bec85;}(function(_0x20d785,_0x44360e){const _0x2ec298=a70_0x5bec,_0x4096a7=_0x20d785();while(!![]){try{const _0x255045=-parseInt(_0x2ec298(0x158))/0x1+-parseInt(_0x2ec298(0x161))/0x2+parseInt(_0x2ec298(0x15e))/0x3+-parseInt(_0x2ec298(0x157))/0x4+-parseInt(_0x2ec298(0x15f))/0x5*(parseInt(_0x2ec298(0x159))/0x6)+parseInt(_0x2ec298(0x15d))/0x7*(parseInt(_0x2ec298(0x160))/0x8)+parseInt(_0x2ec298(0x15b))/0x9;if(_0x255045===_0x44360e)break;else _0x4096a7['push'](_0x4096a7['shift']());}catch(_0x3a3ce6){_0x4096a7['push'](_0x4096a7['shift']());}}}(a70_0x2512,0x2c268));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a70_0x4534c5(0x162),'command':a70_0x4534c5(0x15a),'description':a70_0x4534c5(0x15c),'risk':'write','confirmationDescription':'Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
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
+ const a71_0x3769c8=a71_0x675a;(function(_0x46a986,_0x485b5b){const _0x4cec2a=a71_0x675a,_0x5be3eb=_0x46a986();while(!![]){try{const _0x31e832=-parseInt(_0x4cec2a(0xdd))/0x1+parseInt(_0x4cec2a(0xe5))/0x2+-parseInt(_0x4cec2a(0xe9))/0x3+-parseInt(_0x4cec2a(0xe4))/0x4*(parseInt(_0x4cec2a(0xe1))/0x5)+parseInt(_0x4cec2a(0xea))/0x6+-parseInt(_0x4cec2a(0xec))/0x7+parseInt(_0x4cec2a(0xe2))/0x8;if(_0x31e832===_0x485b5b)break;else _0x5be3eb['push'](_0x5be3eb['shift']());}catch(_0x4c3a58){_0x5be3eb['push'](_0x5be3eb['shift']());}}}(a71_0x2a03,0xe36fb));function a71_0x675a(_0x4928f4,_0x59cdd4){_0x4928f4=_0x4928f4-0xdb;const _0x2a0364=a71_0x2a03();let _0x675ae7=_0x2a0364[_0x4928f4];return _0x675ae7;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a71_0x2a03(){const _0x4a7800=['errors','str','type','46165PTIrnq','27143336nsNZDg','bool','180OuVFSy','1062056odfXkM','skill','strict','dir','2235072JnxJAB','7386744RMNbrf','Skill\x20validation\x20passed.','10776542RKxCLg','validate','read','warnings','1523475PfIsgk'];a71_0x2a03=function(){return _0x4a7800;};return a71_0x2a03();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a71_0x3769c8(0xe6),'command':a71_0x3769c8(0xed),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a71_0x3769c8(0xdb),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x1e0499){const _0x30925c=a71_0x3769c8,_0xa7ee8c=_0x1e0499[_0x30925c(0xe3)](_0x30925c(0xe7)),_0x1219aa=validateSkillDirectory(_0x1e0499[_0x30925c(0xdf)](_0x30925c(0xe8)),{'strict':_0xa7ee8c});return throwIfSkillValidationFailed(_0x1219aa,_0xa7ee8c),{'ok':!![],'data':{'dir':_0x1219aa['dir'],'type':_0x1219aa[_0x30925c(0xe0)],'errors':_0x1219aa[_0x30925c(0xde)],'warnings':_0x1219aa[_0x30925c(0xdc)]},'message':_0x30925c(0xeb)};}};
@@ -1 +1 @@
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
+ function a72_0x13ff(_0x34a7b6,_0x1c21b5){_0x34a7b6=_0x34a7b6-0x1c9;const _0x3debe1=a72_0x3deb();let _0x13ffb5=_0x3debe1[_0x34a7b6];return _0x13ffb5;}(function(_0x247c6c,_0x1095e7){const _0x189730=a72_0x13ff,_0x2d9019=_0x247c6c();while(!![]){try{const _0x2c992f=-parseInt(_0x189730(0x1ca))/0x1*(-parseInt(_0x189730(0x1e2))/0x2)+parseInt(_0x189730(0x1d7))/0x3+parseInt(_0x189730(0x1c9))/0x4+parseInt(_0x189730(0x1d3))/0x5+-parseInt(_0x189730(0x1da))/0x6+-parseInt(_0x189730(0x1e3))/0x7*(-parseInt(_0x189730(0x1d8))/0x8)+-parseInt(_0x189730(0x1d6))/0x9*(parseInt(_0x189730(0x1de))/0xa);if(_0x2c992f===_0x1095e7)break;else _0x2d9019['push'](_0x2d9019['shift']());}catch(_0x4a407c){_0x2d9019['push'](_0x2d9019['shift']());}}}(a72_0x3deb,0x5707d));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a72_0x3deb(){const _0x4893f5=['1820880oIMuLT','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','9meeFzj','1064010jzDwqJ','488ZnJYza','utf8','3082578brDXnp','window','parse','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','13226330qDPPVY','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','Mermaid\x20syntax\x20validation\x20failed.','diagram','842PYBRuC','59738VmlaMP','1946256wfSeLw','1109zdogkw','isFile','validation','replace','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','document','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','default','defineProperties'];a72_0x3deb=function(){return _0x4893f5;};return a72_0x3deb();}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x3ca408){const _0x305587=a72_0x13ff;return(await readRequiredSkillDiagramInput(_0x3ca408))[_0x305587(0x1e1)];}export async function readRequiredSkillDiagramInput(_0x20e56a){const _0x45a34d=a72_0x13ff,_0xad7200=_0x20e56a['trim']();if(!_0xad7200)throw CliErrors['validation'](_0x45a34d(0x1d0),_0x45a34d(0x1dd));let _0x22daaa,_0x50ea81;if(_0xad7200==='-')try{_0x22daaa=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x45a34d(0x1cc)](_0x45a34d(0x1ce));}else{const _0x17ddd3=resolve(_0xad7200);if(!existsSync(_0x17ddd3))throw CliErrors['validation'](_0x45a34d(0x1d4)+_0x17ddd3);if(!statSync(_0x17ddd3)[_0x45a34d(0x1cb)]())throw CliErrors['validation'](_0x45a34d(0x1d5)+_0x17ddd3);_0x50ea81=realpathSync(_0x17ddd3),_0x22daaa=readFileSync(_0x50ea81,_0x45a34d(0x1d9));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x22daaa)},'sourceFilePath':_0x50ea81};}export async function validateAndCanonicalizeMermaid(_0x3268fb){const _0x1989e3=a72_0x13ff,_0x1c0d86=_0x3268fb[_0x1989e3(0x1cd)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x1989e3(0x1cd)](/\n+$/,'')+'\x0a';try{const _0x22cdae=await loadMermaidApi();await _0x22cdae[_0x1989e3(0x1dc)](_0x1c0d86);}catch{throw diagramValidationError();}return _0x1c0d86;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x18ba9d=a72_0x13ff;if(!(_0x18ba9d(0x1db)in globalThis)||!(_0x18ba9d(0x1cf)in globalThis)){const _0x13582a=new JSDOM('');Object[_0x18ba9d(0x1d2)](globalThis,{'window':{'configurable':!![],'value':_0x13582a['window']},'document':{'configurable':!![],'value':_0x13582a[_0x18ba9d(0x1db)][_0x18ba9d(0x1cf)]}});}return(await import('mermaid'))[_0x18ba9d(0x1d1)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x549ce2=a72_0x13ff;return CliErrors[_0x549ce2(0x1cc)](_0x549ce2(0x1e0),_0x549ce2(0x1df));}
@@ -1 +1 @@
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
+ const a73_0xff379=a73_0x5b90;(function(_0xb2513e,_0x5213a8){const _0x2ddda0=a73_0x5b90,_0x388f6b=_0xb2513e();while(!![]){try{const _0x368f09=-parseInt(_0x2ddda0(0xee))/0x1*(parseInt(_0x2ddda0(0x10b))/0x2)+-parseInt(_0x2ddda0(0x10a))/0x3*(parseInt(_0x2ddda0(0xfe))/0x4)+parseInt(_0x2ddda0(0x111))/0x5+parseInt(_0x2ddda0(0xf9))/0x6*(parseInt(_0x2ddda0(0x10e))/0x7)+-parseInt(_0x2ddda0(0x107))/0x8+parseInt(_0x2ddda0(0xf7))/0x9*(parseInt(_0x2ddda0(0xf8))/0xa)+parseInt(_0x2ddda0(0xec))/0xb*(parseInt(_0x2ddda0(0x112))/0xc);if(_0x368f09===_0x5213a8)break;else _0x388f6b['push'](_0x388f6b['shift']());}catch(_0x227d2c){_0x388f6b['push'](_0x388f6b['shift']());}}}(a73_0x4e68,0x37574));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a73_0x5b90(_0x1f1bf0,_0x40908b){_0x1f1bf0=_0x1f1bf0-0xec;const _0x4e68af=a73_0x4e68();let _0x5b9080=_0x4e68af[_0x1f1bf0];return _0x5b9080;}export const CODE_FLAG={'name':'code','type':a73_0xff379(0xf1),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':'string','description':a73_0xff379(0x100),'enum':[a73_0xff379(0x10d),a73_0xff379(0xfa),a73_0xff379(0xf3)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a73_0xff379(0xf1),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a73_0xff379(0xfa),'enum':[a73_0xff379(0xfa),'company']};export const LIST_SCOPE_FLAG={'name':a73_0xff379(0xed),'type':a73_0xff379(0xf1),'description':a73_0xff379(0x10f),'enum':['all',a73_0xff379(0xfa),a73_0xff379(0xf3)]};export const LOCAL_FLAG={'name':'local','type':a73_0xff379(0x105),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':a73_0xff379(0xf1),'required':!![],'description':a73_0xff379(0x114)};export const DIAGRAM_FILE_FLAG={'name':a73_0xff379(0xf2),'type':a73_0xff379(0xf1),'required':!![],'description':a73_0xff379(0x108)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a73_0xff379(0x102),'type':a73_0xff379(0xf1),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a73_0xff379(0xf6),'type':'string','required':!![],'description':a73_0xff379(0x101)};export const DIAGRAM_SCOPE_FLAG={'name':'scope','type':a73_0xff379(0xf1),'required':!![],'enum':[a73_0xff379(0xfa),'company'],'description':a73_0xff379(0xfc)};export const SOURCE_FINGERPRINT_FLAG={'name':a73_0xff379(0xf0),'type':'string','required':!![],'description':a73_0xff379(0xff),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a73_0xff379(0xef),'type':a73_0xff379(0xfb),'required':!![],'description':a73_0xff379(0x10c)};export const CREATE_NAME_FLAG={'name':'name','type':a73_0xff379(0xf1),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':'type','type':a73_0xff379(0xf1),'description':a73_0xff379(0xf5),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':'string','description':a73_0xff379(0xfd),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0xff379(0x106),'type':a73_0xff379(0x105),'description':a73_0xff379(0x109)};export const PROJECT_TARGET_FLAG={'name':a73_0xff379(0x113),'type':a73_0xff379(0x105),'description':a73_0xff379(0x104)};export const CONFIRM_WARNINGS_FLAG={'name':a73_0xff379(0xf4),'type':a73_0xff379(0x105),'description':a73_0xff379(0x110)};function a73_0x4e68(){const _0x2363cc=['Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','1917385VXSpwU','12WTKhgN','project','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1541474WfROkT','scope','395539ixiTJh','expected-diagram-revision','source-fingerprint','string','diagram-file','company','confirm-warnings','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','version','9WJyyUL','274150TrsgZu','908028zOpnVF','personal','number','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','4VemkIV','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','skill-code','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','boolean','force','611520NDeTwu','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','11127tMTEJQ','2KFbyYc','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','all','7OMheeQ','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x4e68=function(){return _0x2363cc;};return a73_0x4e68();}export const STRICT_FLAG={'name':'strict','type':a73_0xff379(0x105),'description':a73_0xff379(0x103)};
@@ -1 +1 @@
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
+ (function(_0x39ed92,_0x5b6313){const _0xb68b05=a74_0x3531,_0x3afcc1=_0x39ed92();while(!![]){try{const _0x1c22e9=-parseInt(_0xb68b05(0x1e9))/0x1+-parseInt(_0xb68b05(0x1ee))/0x2+-parseInt(_0xb68b05(0x1f0))/0x3*(-parseInt(_0xb68b05(0x1eb))/0x4)+parseInt(_0xb68b05(0x1f1))/0x5+-parseInt(_0xb68b05(0x1f2))/0x6+parseInt(_0xb68b05(0x1ea))/0x7*(parseInt(_0xb68b05(0x1ed))/0x8)+parseInt(_0xb68b05(0x1ef))/0x9*(-parseInt(_0xb68b05(0x1ec))/0xa);if(_0x1c22e9===_0x5b6313)break;else _0x3afcc1['push'](_0x3afcc1['shift']());}catch(_0x125a2b){_0x3afcc1['push'](_0x3afcc1['shift']());}}}(a74_0x4ee9,0x68dd0));function a74_0x3531(_0x5cee02,_0x40c3e3){_0x5cee02=_0x5cee02-0x1e9;const _0x4ee928=a74_0x4ee9();let _0x353189=_0x4ee928[_0x5cee02];return _0x353189;}function a74_0x4ee9(){const _0x3df653=['7noYWIJ','173156dogvZw','242330WrliDo','3340072UahAeJ','674900EtEHXp','63LRUAiI','57JdQcaE','3568020fvvJPC','2386062WWTJoE','619326AKNFHq'];a74_0x4ee9=function(){return _0x3df653;};return a74_0x4ee9();}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
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
+ (function(_0x5cb9cd,_0x4e85bd){var _0x291b9a=a75_0x2534,_0x295cc6=_0x5cb9cd();while(!![]){try{var _0x31565e=-parseInt(_0x291b9a(0x87))/0x1*(-parseInt(_0x291b9a(0x84))/0x2)+parseInt(_0x291b9a(0x7e))/0x3*(-parseInt(_0x291b9a(0x85))/0x4)+parseInt(_0x291b9a(0x7d))/0x5*(parseInt(_0x291b9a(0x88))/0x6)+parseInt(_0x291b9a(0x7a))/0x7+-parseInt(_0x291b9a(0x7b))/0x8*(-parseInt(_0x291b9a(0x7c))/0x9)+-parseInt(_0x291b9a(0x8a))/0xa+-parseInt(_0x291b9a(0x7f))/0xb;if(_0x31565e===_0x4e85bd)break;else _0x295cc6['push'](_0x295cc6['shift']());}catch(_0x2fa3e2){_0x295cc6['push'](_0x295cc6['shift']());}}}(a75_0x4644,0xb3d66));export function isPackageBackedManifest(_0x12ba32){var _0x4974f0=a75_0x2534;return!!_0x12ba32&&typeof _0x12ba32===_0x4974f0(0x86)&&!Array[_0x4974f0(0x81)](_0x12ba32)&&typeof _0x12ba32[_0x4974f0(0x83)]===_0x4974f0(0x89)&&_0x12ba32[_0x4974f0(0x83)][_0x4974f0(0x82)]>0x0&&Array[_0x4974f0(0x81)](_0x12ba32[_0x4974f0(0x80)]);}export function isMultiFileManifest(_0x458f8a){var _0x42fa05=a75_0x2534;return!!_0x458f8a&&typeof _0x458f8a===_0x42fa05(0x86)&&!Array[_0x42fa05(0x81)](_0x458f8a)&&Array['isArray'](_0x458f8a[_0x42fa05(0x80)])&&_0x458f8a[_0x42fa05(0x80)]['some'](_0x36bee4=>_0x36bee4['path']!=='SKILL.md');}function a75_0x2534(_0x8e0664,_0x163814){_0x8e0664=_0x8e0664-0x7a;var _0x464482=a75_0x4644();var _0x25345b=_0x464482[_0x8e0664];return _0x25345b;}function a75_0x4644(){var _0x97a6ea=['736622LJHllP','12UwCwOn','object','3InNJMa','2370AkYKjj','string','6135430xAlmVa','2632560mOZkld','6444136kExqMh','9wtRbil','6115Awdjkt','904629MnYZAp','5663119uZpQhC','files','isArray','length','ossPath'];a75_0x4644=function(){return _0x97a6ea;};return a75_0x4644();}
@@ -1 +1 @@
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
+ (function(_0x3d20de,_0x5a1fb3){const _0x5576=a76_0x3db6,_0x20c43c=_0x3d20de();while(!![]){try{const _0xb6cfa3=parseInt(_0x5576(0x193))/0x1*(-parseInt(_0x5576(0x197))/0x2)+-parseInt(_0x5576(0x175))/0x3*(-parseInt(_0x5576(0x173))/0x4)+-parseInt(_0x5576(0x182))/0x5*(-parseInt(_0x5576(0x18f))/0x6)+parseInt(_0x5576(0x188))/0x7+parseInt(_0x5576(0x18a))/0x8+-parseInt(_0x5576(0x17b))/0x9+parseInt(_0x5576(0x181))/0xa*(parseInt(_0x5576(0x190))/0xb);if(_0xb6cfa3===_0x5a1fb3)break;else _0x20c43c['push'](_0x20c43c['shift']());}catch(_0x56c692){_0x20c43c['push'](_0x20c43c['shift']());}}}(a76_0x12c5,0x1aed2));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a76_0x12c5(){const _0x40f2d9=['(unknown)','personal','POST','6njFQcd','11KqNnaj','\x20Skill\x20','metadata','3oEPvfj','appcode','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','/api/cli/v1/skills/','52146aDZZUQ','Submitted\x20company\x20Skill\x20','company','unknown','input','resolvedSlug','Created\x20personal\x20Skill\x20','confirm-warnings','diagramValidated','authRequired','\x20version\x20','Updated\x20personal\x20Skill\x20','existing','/publish/validate','appCode','warnings','bool','status','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','dir','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','publishInput','str','skillCode','../../skills/runtime-skill-sync.js','\x20for\x20review','trim','files','NAMESPACE_ONLY','4zfyjDM','scope','200871bjEoJp','\x20has\x20scope=\x22','PRIVATE','confirmWarnings','Company','validation','1332990ZgtDGy','version','remoteForPreflight','identical','valid','errors','852330XoOMLT','530585tuRKtI','resolvedVersion','../../core/api-client.js','frontmatterDisplayName','diagram-file','savedSkill','258335pCNTdV','payload','331256VWCUHr','accessKey'];a76_0x12c5=function(){return _0x40f2d9;};return a76_0x12c5();}import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x5711a7){const _0x5734cf=a76_0x3db6,{getRuntimeSkillByCode:_0x1613db,validateRuntimeSkillPublish:_0x13ccda}=await import(_0x5734cf(0x184)),{readPushDirectory:_0x112a12,resolvePushDirectoryIdentity:_0x45f9a7}=await import(_0x5734cf(0x16e));if(!_0x5711a7['accessKey'])throw CliErrors[_0x5734cf(0x1a0)]();const _0x222884=resolvePushScope(_0x5711a7),_0x371a6f=validateSkillDirectory(_0x5711a7[_0x5734cf(0x1ae)](_0x5734cf(0x1aa)));throwIfSkillValidationFailed(_0x371a6f);const {diagram:_0x14e9a4,sourceFilePath:_0x9b631d}=await readRequiredSkillDiagramInput(_0x5711a7[_0x5734cf(0x1ae)](_0x5734cf(0x186))),_0x1d1f1c=diagramPackageExclusion(_0x9b631d),_0x52a349=_0x45f9a7(_0x371a6f[_0x5734cf(0x1aa)],_0x5711a7['appCode'],remoteFirstMetadataOptions()),_0x177ca4=await _0x1613db(_0x5711a7['appCode'],_0x52a349[_0x5734cf(0x16d)]);throwIfBuiltinPushTarget(_0x177ca4);if(_0x222884===_0x5734cf(0x199)){const _0x41eeba=_0x112a12(_0x371a6f['dir'],_0x5711a7[_0x5734cf(0x1a5)],{...remoteMissingCompanyReadOptions(),..._0x1d1f1c}),_0x5e30b6=await _0x13ccda(_0x5711a7[_0x5734cf(0x1a5)],withDiagram(_0x41eeba['input'],_0x14e9a4),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x5734cf(0x18e),'url':_0x5734cf(0x196)+_0x5711a7['appCode']+_0x5734cf(0x1a4),'body':{'skillCode':_0x41eeba[_0x5734cf(0x16d)],'visibility':_0x5734cf(0x172),'valid':_0x5e30b6[_0x5734cf(0x17f)],'errors':_0x5e30b6[_0x5734cf(0x180)],'warnings':_0x5e30b6['warnings'],'resolvedSlug':_0x5e30b6[_0x5734cf(0x19c)],'resolvedVersion':_0x5e30b6[_0x5734cf(0x183)],'diagramValidated':_0x5e30b6[_0x5734cf(0x19f)]},'description':_0x5734cf(0x1ab)};}if(_0x177ca4&&_0x177ca4[_0x5734cf(0x174)]!=='personal')throw CliErrors[_0x5734cf(0x17a)](_0x5734cf(0x1ac)+_0x52a349[_0x5734cf(0x16d)]+_0x5734cf(0x176)+(_0x177ca4[_0x5734cf(0x174)]??_0x5734cf(0x19a))+'\x22.');const _0x1d2d4f=_0x112a12(_0x371a6f[_0x5734cf(0x1aa)],_0x5711a7[_0x5734cf(0x1a5)],{..._0x177ca4?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x1d1f1c}),_0x34e149=await _0x13ccda(_0x5711a7[_0x5734cf(0x1a5)],withDiagram(_0x1d2d4f[_0x5734cf(0x19b)],_0x14e9a4),{'visibility':_0x5734cf(0x177)});return{'method':'POST','url':'/api/cli/v1/skills/'+_0x5711a7['appCode']+_0x5734cf(0x1a4),'body':{'skillCode':_0x1d2d4f['skillCode'],'visibility':_0x5734cf(0x177),'valid':_0x34e149['valid'],'errors':_0x34e149[_0x5734cf(0x180)],'warnings':_0x34e149[_0x5734cf(0x1a6)],'resolvedSlug':_0x34e149[_0x5734cf(0x19c)],'resolvedVersion':_0x34e149['resolvedVersion'],'diagramValidated':_0x34e149[_0x5734cf(0x19f)]},'description':_0x5734cf(0x195)};}export async function skillPushExecute(_0x2ab9a6){const _0xb9fe73=a76_0x3db6,{createPersonalRuntimeSkill:_0x301d0a,downloadRuntimeSkillPackage:_0x13e3c0,getRuntimeSkillByCode:_0x24f585,publishCompanyRuntimeSkill:_0x5935e3,updatePersonalRuntimeSkill:_0x43f341,validateRuntimeSkillPublish:_0x429f81}=await import(_0xb9fe73(0x184)),{verifyRuntimeSkillPackage:_0xb177cd,verifyRuntimeSkillBundle:_0x2bd499,readPushDirectory:_0x387075,refreshPushDirectoryMetadataFromRemote:_0x129c67,recordPushedRuntimeSkill:_0x3d4135,resolvePushDirectoryIdentity:_0x39657f}=await import(_0xb9fe73(0x16e));if(!_0x2ab9a6[_0xb9fe73(0x18b)])throw CliErrors[_0xb9fe73(0x1a0)]();const _0x48a4c0=resolvePushScope(_0x2ab9a6),_0x143c96=_0x2ab9a6[_0xb9fe73(0x1a7)](_0xb9fe73(0x19e))||_0x2ab9a6[_0xb9fe73(0x1a7)](_0xb9fe73(0x178)),_0x117ba8=validateSkillDirectory(_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x1aa)));throwIfSkillValidationFailed(_0x117ba8);const {diagram:_0x38a4a9,sourceFilePath:_0x28dbd1}=await readRequiredSkillDiagramInput(_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x186))),_0x2f445a=diagramPackageExclusion(_0x28dbd1),_0x122c58=_0x117ba8[_0xb9fe73(0x1aa)];let _0x2207cc;if(_0x48a4c0==='company'){const _0x9722c3=_0x39657f(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],remoteFirstMetadataOptions()),_0x4e3924=await _0x24f585(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x9722c3['skillCode']);throwIfBuiltinPushTarget(_0x4e3924);if(_0x4e3924)_0x129c67(_0x122c58,_0x4e3924,_0x2ab9a6[_0xb9fe73(0x1a5)]);const _0x416e4b=_0x387075(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{..._0x4e3924?{'targetScope':_0xb9fe73(0x199),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2f445a});_0x2207cc={'scope':_0xb9fe73(0x199),'payload':_0x416e4b,'publishInput':withDiagram(_0x416e4b[_0xb9fe73(0x19b)],_0x38a4a9),'remoteForPreflight':_0x4e3924,'warnings':[]};}else{const _0x11a6f4=_0x2ab9a6[_0xb9fe73(0x1ae)](_0xb9fe73(0x194))[_0xb9fe73(0x170)](),_0x1e25ca=Boolean(_0x11a6f4),_0x5197af=allowRetargetArgs(_0x1e25ca),_0x9d9fed=_0x39657f(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{...remoteFirstMetadataOptions(),..._0x5197af[0x0]}),_0x5b62c5=await _0x24f585(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x9d9fed[_0xb9fe73(0x16d)]);throwIfBuiltinPushTarget(_0x5b62c5);if(_0x5b62c5){if(_0x5b62c5[_0xb9fe73(0x174)]!==_0xb9fe73(0x18d)){if(_0x1e25ca)throw CliErrors[_0xb9fe73(0x17a)](_0xb9fe73(0x1ac)+_0x9d9fed[_0xb9fe73(0x16d)]+_0xb9fe73(0x176)+(_0x5b62c5[_0xb9fe73(0x174)]??_0xb9fe73(0x19a))+'\x22.');_0x129c67(_0x122c58,_0x5b62c5,_0x2ab9a6['appCode']);}else!_0x1e25ca&&_0x129c67(_0x122c58,_0x5b62c5,_0x2ab9a6[_0xb9fe73(0x1a5)]);}const _0x30b827=_0x387075(_0x122c58,_0x2ab9a6[_0xb9fe73(0x1a5)],{..._0x5b62c5?remotePersonalReadOptions(_0x1e25ca,_0x5197af[0x0]):remoteMissingPersonalReadOptions(_0x5197af[0x0]),..._0x2f445a}),_0xe99280=_0x5b62c5?.['scope']===_0xb9fe73(0x18d)&&_0x5b62c5['skillCode']===_0x30b827[_0xb9fe73(0x16d)]?_0x5b62c5:undefined,_0x5b76d1=_0x1e25ca&&_0xe99280?withRetargetExistingMetadata(_0x30b827[_0xb9fe73(0x19b)],_0xe99280,{'preferInputSkillName':Boolean(_0x30b827[_0xb9fe73(0x185)])}):_0x30b827[_0xb9fe73(0x19b)],_0x1b20c3=_0x1e25ca?buildRetargetWarning(_0x9d9fed[_0xb9fe73(0x192)],_0x2ab9a6[_0xb9fe73(0x1a5)]):[];_0x2207cc={'scope':'personal','payload':_0x30b827,'publishInput':withDiagram(_0x5b76d1,_0x38a4a9),'remoteForPreflight':_0xe99280,'existing':_0xe99280,'warnings':[..._0x117ba8[_0xb9fe73(0x1a6)],..._0x1b20c3]};}const _0x1d9c84=await runRemoteContentPreflight({'scope':_0x2207cc[_0xb9fe73(0x174)],'remote':_0x2207cc[_0xb9fe73(0x17d)],'publishInput':_0x2207cc['publishInput'],'skillCode':_0x2207cc['payload'][_0xb9fe73(0x16d)],'appCode':_0x2ab9a6[_0xb9fe73(0x1a5)],'downloadRuntimeSkillPackage':_0x13e3c0,'verifyRuntimeSkillBundle':_0x2bd499});if(_0x1d9c84[_0xb9fe73(0x1a8)]===_0xb9fe73(0x17e))return _0x2207cc['scope']===_0xb9fe73(0x199)?_0x3d4135(_0x122c58,_0x1d9c84[_0xb9fe73(0x187)],_0x2ab9a6[_0xb9fe73(0x1a5)],{'scope':_0xb9fe73(0x199)}):_0x3d4135(_0x122c58,_0x1d9c84['savedSkill'],_0x2ab9a6[_0xb9fe73(0x1a5)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1d9c84[_0xb9fe73(0x187)]),'scope':_0x2207cc[_0xb9fe73(0x174)],..._0x2207cc[_0xb9fe73(0x174)]===_0xb9fe73(0x18d)?{'warnings':_0x2207cc[_0xb9fe73(0x1a6)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x2207cc[_0xb9fe73(0x174)])+_0xb9fe73(0x191)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]+_0xb9fe73(0x1a9)};if(_0x2207cc[_0xb9fe73(0x174)]==='company'){const _0x234d80=await _0x429f81(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],{'visibility':_0xb9fe73(0x172)});throwIfPublishValidationFailed(_0xb9fe73(0x199),_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)],_0x234d80),throwIfUnconfirmedPublishWarnings(_0xb9fe73(0x199),_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)],_0x234d80['warnings'],_0x143c96);const _0x4c6743=await _0x5935e3(_0x2ab9a6['appCode'],_0x2207cc[_0xb9fe73(0x1ad)],{'confirmWarnings':_0x143c96});return _0x3d4135(_0x122c58,{..._0x4c6743,'files':_0x2207cc['publishInput'][_0xb9fe73(0x171)]},_0x2ab9a6[_0xb9fe73(0x1a5)],{'scope':_0xb9fe73(0x199)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4c6743),'scope':'company','reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x234d80[_0xb9fe73(0x1a6)]}},'message':_0xb9fe73(0x198)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]+_0xb9fe73(0x1a1)+(_0x4c6743[_0xb9fe73(0x17c)]??_0xb9fe73(0x18c))+_0xb9fe73(0x16f)};}const _0x141cff=await _0x429f81(_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed('personal',_0x2207cc['payload'][_0xb9fe73(0x16d)],_0x141cff),throwIfUnconfirmedPublishWarnings(_0xb9fe73(0x18d),_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x141cff['warnings'],_0x143c96);const _0x1a391e={'confirmWarnings':_0x143c96},_0x25589c=_0x2207cc['existing']?await _0x43f341(_0x2207cc['payload']['skillCode'],_0x2ab9a6[_0xb9fe73(0x1a5)],_0x2207cc[_0xb9fe73(0x1ad)],_0x1a391e):await _0x301d0a(_0x2ab9a6['appCode'],_0x2207cc['publishInput'],_0x1a391e);let _0x1233fe=_0x25589c;if(isMultiFileManifest(_0x2207cc[_0xb9fe73(0x1ad)]['files'])){const _0x1c8f9a=await _0x13e3c0(_0xb9fe73(0x18d),_0x25589c[_0xb9fe73(0x16d)]||_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x2ab9a6[_0xb9fe73(0x1a5)]);_0x2bd499(_0x2207cc[_0xb9fe73(0x1ad)][_0xb9fe73(0x171)],_0x1c8f9a),_0x1233fe={..._0x25589c,'files':_0x2207cc[_0xb9fe73(0x1ad)][_0xb9fe73(0x171)]};}else{if(isPackageBackedManifest(_0x25589c[_0xb9fe73(0x171)])){const _0x5d3b02=await _0x13e3c0(_0xb9fe73(0x18d),_0x25589c[_0xb9fe73(0x16d)]||_0x2207cc[_0xb9fe73(0x189)]['skillCode'],_0x2ab9a6['appCode']);_0xb177cd(_0x25589c[_0xb9fe73(0x171)],_0x5d3b02);}}return _0x3d4135(_0x122c58,_0x1233fe,_0x2ab9a6['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25589c),'warnings':_0x2207cc[_0xb9fe73(0x1a6)],'validation':{'warnings':_0x141cff[_0xb9fe73(0x1a6)]},'diagramBound':!![]},'message':_0x2207cc[_0xb9fe73(0x1a3)]?_0xb9fe73(0x1a2)+_0x2207cc[_0xb9fe73(0x189)][_0xb9fe73(0x16d)]:_0xb9fe73(0x19d)+_0x2207cc['payload'][_0xb9fe73(0x16d)]};}function a76_0x3db6(_0x56adf8,_0x1397a9){_0x56adf8=_0x56adf8-0x16d;const _0x12c508=a76_0x12c5();let _0x3db615=_0x12c508[_0x56adf8];return _0x3db615;}function scopeLabel(_0x21487f){const _0x2c4ede=a76_0x3db6;return _0x21487f===_0x2c4ede(0x199)?_0x2c4ede(0x179):'Personal';}function withDiagram(_0x29d8d8,_0x47cc58){return{..._0x29d8d8,'diagram':_0x47cc58};}function diagramPackageExclusion(_0x9c2b35){return _0x9c2b35?{'excludedFilePaths':[_0x9c2b35]}:{};}
@@ -1 +1 @@
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
+ (function(_0x2244db,_0x3e772b){const _0x18f4a3=a77_0x185a,_0x5ee103=_0x2244db();while(!![]){try{const _0x6613de=-parseInt(_0x18f4a3(0xf8))/0x1*(parseInt(_0x18f4a3(0x118))/0x2)+-parseInt(_0x18f4a3(0x113))/0x3*(-parseInt(_0x18f4a3(0x11f))/0x4)+-parseInt(_0x18f4a3(0x107))/0x5+parseInt(_0x18f4a3(0x11a))/0x6*(-parseInt(_0x18f4a3(0x108))/0x7)+-parseInt(_0x18f4a3(0x103))/0x8*(-parseInt(_0x18f4a3(0xf1))/0x9)+parseInt(_0x18f4a3(0xf5))/0xa*(parseInt(_0x18f4a3(0xfb))/0xb)+-parseInt(_0x18f4a3(0x11b))/0xc*(-parseInt(_0x18f4a3(0x10e))/0xd);if(_0x6613de===_0x3e772b)break;else _0x5ee103['push'](_0x5ee103['shift']());}catch(_0x2b61d5){_0x5ee103['push'](_0x5ee103['shift']());}}}(a77_0x257a,0xa5737));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x1ec073){const _0x103c64=a77_0x185a,_0x40a4a1=_0x1ec073['str'](_0x103c64(0xfd))||'personal';if(_0x40a4a1===_0x103c64(0x114)||_0x40a4a1==='company')return _0x40a4a1;throw CliErrors[_0x103c64(0x110)](_0x103c64(0xf0)+_0x40a4a1+'\x22.');}export function allowRetargetArgs(_0x322937){return _0x322937?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2786d7=a77_0x185a;return{'targetScope':_0x2786d7(0x109),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0xee846f={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0xee846f};}function a77_0x257a(){const _0x3d834d=['files','Company','downloadRuntimeSkillPackage','44CiiOtQ','not-applicable','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','405VAHWrA','warnings','remote','valid','10eGKYXo','\x20Skill\x20push\x20validation\x20failed\x20for\x20','length','1493vLEJrE','SkillHub\x20validation\x20returned\x20invalid.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','8715553ekNJLD','skillCode','scope','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20after\x20successful\x20push.','different','lovrabet.skill.json','join','23832bgrTnm','appCode','Review\x20each\x20warning\x20before\x20continuing.','errors','1438270XQLTyU','70YaEyqT','company','verifyRuntimeSkillBundle','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','13qXKJYV','skill-metadata-appcode-retargeted','validation','builtin','publishInput','121734itJGcn','personal','Local\x20Skill\x20metadata\x20appCode\x20','warning','identical','1736GSXpNQ','(unknown)','622722BBgFmD','23116788vTBWSs'];a77_0x257a=function(){return _0x3d834d;};return a77_0x257a();}export function remotePersonalReadOptions(_0x47b529,_0x464061={}){return{'ignoreInvalidMetadata':!![],..._0x47b529?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x464061};}export function throwIfBuiltinPushTarget(_0x37379c){const _0x3507b9=a77_0x185a;if(_0x37379c?.[_0x3507b9(0xfd)]!==_0x3507b9(0x111))return;throw CliErrors[_0x3507b9(0x110)]('Builtin\x20Skill\x20'+(_0x37379c[_0x3507b9(0xfc)]??_0x3507b9(0x119))+'\x20cannot\x20be\x20pushed.',_0x3507b9(0x10d));}function a77_0x185a(_0x3aef2a,_0x3dd236){_0x3aef2a=_0x3aef2a-0xef;const _0x257a22=a77_0x257a();let _0x185a99=_0x257a22[_0x3aef2a];return _0x185a99;}export function throwIfPublishValidationFailed(_0x4c6202,_0x161280,_0x564524){const _0x1b085e=a77_0x185a;if(_0x564524[_0x1b085e(0x106)]['length']===0x0&&(_0x564524[_0x1b085e(0xf4)]||_0x564524[_0x1b085e(0xf2)]['length']>0x0))return;const _0x530e46=_0x564524[_0x1b085e(0x106)][_0x1b085e(0xf7)]>0x0?_0x564524[_0x1b085e(0x106)]['join'](';\x20'):_0x1b085e(0xf9),_0x39be53=_0x4c6202==='company'?_0x1b085e(0x11d):'Personal';throw CliErrors[_0x1b085e(0x110)](_0x39be53+_0x1b085e(0xf6)+_0x161280+'.',_0x530e46);}export function throwIfUnconfirmedPublishWarnings(_0x31bd7c,_0x934947,_0x27337f,_0x541102){const _0x18482b=a77_0x185a;if(_0x27337f[_0x18482b(0xf7)]===0x0||_0x541102)return;const _0x514301=_0x31bd7c===_0x18482b(0x109)?_0x18482b(0x11d):'Personal';throw CliErrors['validation'](_0x514301+_0x18482b(0xfe)+_0x934947+'.',[_0x18482b(0x105),_0x18482b(0x10c),_0x18482b(0x10b),'Warnings:\x20'+_0x27337f[_0x18482b(0x102)](';\x20')][_0x18482b(0x102)]('\x20'));}export function buildRetargetWarning(_0x32e24a,_0x46cb52){const _0x2e8a9b=a77_0x185a;if(!_0x32e24a?.[_0x2e8a9b(0x104)]||_0x32e24a['appCode']===_0x46cb52)return[];return[{'level':_0x2e8a9b(0x116),'ruleId':_0x2e8a9b(0x10f),'file':_0x2e8a9b(0x101),'message':_0x2e8a9b(0x115)+_0x32e24a[_0x2e8a9b(0x104)]+_0x2e8a9b(0xfa)+_0x46cb52+_0x2e8a9b(0xff),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x34bcec){const _0x305d0c=a77_0x185a;if(!_0x34bcec[_0x305d0c(0xf3)]||_0x34bcec[_0x305d0c(0xf3)][_0x305d0c(0xfd)]!==_0x34bcec['scope']||!_0x34bcec['publishInput'][_0x305d0c(0x11c)])return{'status':_0x305d0c(0xef)};const _0x4387ef=_0x34bcec[_0x305d0c(0xf3)][_0x305d0c(0xfc)]||_0x34bcec[_0x305d0c(0xfc)];if(!_0x4387ef)return{'status':'not-applicable'};const _0x2e2a2e=await _0x34bcec[_0x305d0c(0x11e)](_0x34bcec[_0x305d0c(0xfd)],_0x4387ef,_0x34bcec[_0x305d0c(0x104)],_0x34bcec[_0x305d0c(0xf3)]['version']);try{_0x34bcec[_0x305d0c(0x10a)](_0x34bcec['publishInput']['files'],_0x2e2a2e);}catch{return{'status':_0x305d0c(0x100)};}return{'status':_0x305d0c(0x117),'savedSkill':{..._0x34bcec[_0x305d0c(0xf3)],'content':_0x34bcec[_0x305d0c(0x112)]['content'],'files':_0x34bcec[_0x305d0c(0x112)][_0x305d0c(0x11c)]}};}
@@ -1 +1 @@
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
+ (function(_0x4bdd21,_0x21e235){const _0x7f4090=a78_0x16a3,_0x1c7535=_0x4bdd21();while(!![]){try{const _0x3b27c0=parseInt(_0x7f4090(0x6f))/0x1*(parseInt(_0x7f4090(0x72))/0x2)+parseInt(_0x7f4090(0x7a))/0x3+-parseInt(_0x7f4090(0x6e))/0x4*(parseInt(_0x7f4090(0x6b))/0x5)+parseInt(_0x7f4090(0x73))/0x6+parseInt(_0x7f4090(0x68))/0x7+-parseInt(_0x7f4090(0x78))/0x8*(parseInt(_0x7f4090(0x7b))/0x9)+parseInt(_0x7f4090(0x66))/0xa;if(_0x3b27c0===_0x21e235)break;else _0x1c7535['push'](_0x1c7535['shift']());}catch(_0x3abaf2){_0x1c7535['push'](_0x1c7535['shift']());}}}(a78_0x5821,0x26e90));function a78_0x16a3(_0xc5d2a2,_0x25b1f6){_0xc5d2a2=_0xc5d2a2-0x65;const _0x582112=a78_0x5821();let _0x16a34b=_0x582112[_0xc5d2a2];return _0x16a34b;}export function withRetargetExistingMetadata(_0x427a49,_0x3b046e,_0xcd6574={}){const _0x258610=a78_0x16a3,_0x5c29ad=_0xcd6574[_0x258610(0x71)]?_0x427a49[_0x258610(0x6a)]??_0x3b046e[_0x258610(0x6a)]:_0x3b046e[_0x258610(0x6a)]??_0x427a49[_0x258610(0x6a)];return{..._0x427a49,'skillName':_0x5c29ad,'description':_0x3b046e[_0x258610(0x79)]??_0x427a49[_0x258610(0x79)],'tags':Array[_0x258610(0x6d)](_0x3b046e[_0x258610(0x6c)])?_0x3b046e[_0x258610(0x6c)]:_0x427a49[_0x258610(0x6c)],'version':_0x3b046e[_0x258610(0x77)]??_0x427a49[_0x258610(0x77)],'sourceSessionId':_0x3b046e[_0x258610(0x74)]??_0x427a49[_0x258610(0x74)]};}export function buildRetargetWarning(_0x57e0d1,_0x18bb59){const _0x5aae95=a78_0x16a3;if(!_0x57e0d1?.['appCode']||_0x57e0d1[_0x5aae95(0x65)]===_0x18bb59)return[];return[{'level':_0x5aae95(0x76),'ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0x5aae95(0x67)+_0x57e0d1['appCode']+_0x5aae95(0x69)+_0x18bb59+_0x5aae95(0x70),'suggestion':_0x5aae95(0x75)}];}function a78_0x5821(){const _0x3c2501=['description','396507nYnxjq','428967eZItrU','appCode','1498070mzJwzw','Local\x20Skill\x20metadata\x20appCode\x20','187775YQSAMg','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','5jUQbRp','tags','isArray','1172372xkOiXq','2361OIkeiV','\x20after\x20successful\x20push.','preferInputSkillName','66pcDCar','966486VeyPjN','sourceSessionId','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','version','16PyVsCC'];a78_0x5821=function(){return _0x3c2501;};return a78_0x5821();}
@@ -1 +1 @@
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
+ (function(_0x19de2b,_0x23a29a){const _0x5118be=a79_0x4db2,_0x14a0fa=_0x19de2b();while(!![]){try{const _0xb8fc4b=parseInt(_0x5118be(0xc6))/0x1*(parseInt(_0x5118be(0xca))/0x2)+parseInt(_0x5118be(0xc8))/0x3+-parseInt(_0x5118be(0xbd))/0x4+parseInt(_0x5118be(0xbf))/0x5*(-parseInt(_0x5118be(0xc0))/0x6)+parseInt(_0x5118be(0xc5))/0x7+-parseInt(_0x5118be(0xcc))/0x8*(-parseInt(_0x5118be(0xc1))/0x9)+-parseInt(_0x5118be(0xc4))/0xa;if(_0xb8fc4b===_0x23a29a)break;else _0x14a0fa['push'](_0x14a0fa['shift']());}catch(_0x129a85){_0x14a0fa['push'](_0x14a0fa['shift']());}}}(a79_0x5599,0xd72bb));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3569ab){const _0x337adc=a79_0x4db2,_0x92bd16=_0x3569ab['trim']();if(!_0x92bd16||_0x92bd16===_0x337adc(0xbe))return[_0x337adc(0xc7),_0x337adc(0xc9)];if(_0x92bd16===_0x337adc(0xc7)||_0x92bd16===_0x337adc(0xc9))return[_0x92bd16];throw CliErrors[_0x337adc(0xcd)](_0x337adc(0xc3)+_0x3569ab);}function a79_0x4db2(_0x2ae7b5,_0xaa477f){_0x2ae7b5=_0x2ae7b5-0xbd;const _0x559963=a79_0x5599();let _0x4db286=_0x559963[_0x2ae7b5];return _0x4db286;}function a79_0x5599(){const _0x53c3e4=['Unsupported\x20Skill\x20list\x20scope:\x20','792FywQKg','validation','1478172oQteLE','all','10hhWraI','844494TwVoRg','111483pjtntp','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','22356300ibCeAk','153062pVqTmd','1nVUMdM','personal','4567980sQNNGN','company','1994342DImKjl'];a79_0x5599=function(){return _0x53c3e4;};return a79_0x5599();}export function normalizeListScope(_0x1a566e){const _0x1855f2=a79_0x4db2,_0x2b2a42=_0x1a566e[_0x1855f2(0xc2)]();if(!_0x2b2a42)return _0x1855f2(0xbe);if(_0x2b2a42===_0x1855f2(0xc7)||_0x2b2a42===_0x1855f2(0xc9)||_0x2b2a42===_0x1855f2(0xbe))return _0x2b2a42;throw CliErrors['validation'](_0x1855f2(0xcb)+_0x1a566e);}export function shouldListScope(_0x5c7f6a,_0x3c011e){const _0x49d1eb=a79_0x4db2;if(_0x5c7f6a===_0x49d1eb(0xbe))return!![];return _0x5c7f6a===_0x3c011e;}export function listScopeToRuntimeScopes(_0x96a4c6){const _0x9e0605=a79_0x4db2;if(_0x96a4c6===_0x9e0605(0xbe))return[_0x9e0605(0xc7),_0x9e0605(0xc9)];return[_0x96a4c6===_0x9e0605(0xc9)?_0x9e0605(0xc9):_0x96a4c6];}export function listScopeToRemoteScope(_0x5061c1){return _0x5061c1;}
@@ -1 +1 @@
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
+ function a80_0x3647(){var _0x263a2f=['skillCode','linkedPaths','24IotXGR','version','status','cacheDir','treeHash','metadataPath','32xidKgk','18HDIFNo','277599tdNqXb','appCode','230186CmLJVX','72Qffgzp','571929xafcEP','pulledAt','472825MQPSyh','218174pUckMK','skillName','766444VXWgJH','4rclqFN','readonly','76810IvxBkV'];a80_0x3647=function(){return _0x263a2f;};return a80_0x3647();}function a80_0x105e(_0x1a9ad1,_0x539f80){_0x1a9ad1=_0x1a9ad1-0x1c4;var _0x3647b4=a80_0x3647();var _0x105e96=_0x3647b4[_0x1a9ad1];return _0x105e96;}(function(_0x5eb64d,_0x4332de){var _0x5685e9=a80_0x105e,_0x160585=_0x5eb64d();while(!![]){try{var _0x1b26a4=-parseInt(_0x5685e9(0x1c7))/0x1+parseInt(_0x5685e9(0x1ca))/0x2*(parseInt(_0x5685e9(0x1c4))/0x3)+parseInt(_0x5685e9(0x1c9))/0x4+-parseInt(_0x5685e9(0x1c6))/0x5*(parseInt(_0x5685e9(0x1cf))/0x6)+-parseInt(_0x5685e9(0x1d7))/0x7*(-parseInt(_0x5685e9(0x1d5))/0x8)+-parseInt(_0x5685e9(0x1d6))/0x9*(-parseInt(_0x5685e9(0x1cc))/0xa)+-parseInt(_0x5685e9(0x1d9))/0xb*(-parseInt(_0x5685e9(0x1da))/0xc);if(_0x1b26a4===_0x4332de)break;else _0x160585['push'](_0x160585['shift']());}catch(_0x4a87f1){_0x160585['push'](_0x160585['shift']());}}}(a80_0x3647,0x43629));export function summarizeRuntimeSkill(_0x427f1d){var _0x43206=a80_0x105e;return{'id':_0x427f1d['id'],'skillCode':_0x427f1d[_0x43206(0x1cd)],'skillName':_0x427f1d[_0x43206(0x1c8)],'scope':_0x427f1d['scope'],'version':_0x427f1d[_0x43206(0x1d0)],'readonly':_0x427f1d[_0x43206(0x1cb)]};}export function summarizeLocalRuntimeSkill(_0x4d9a49){var _0xe11b61=a80_0x105e;return{'id':_0x4d9a49['id'],'skillCode':_0x4d9a49['skillCode'],'skillName':_0x4d9a49[_0xe11b61(0x1c8)],'scope':_0x4d9a49['scope'],'appCode':_0x4d9a49[_0xe11b61(0x1d8)],'version':_0x4d9a49[_0xe11b61(0x1d0)],'status':_0x4d9a49[_0xe11b61(0x1d1)],'readonly':_0x4d9a49[_0xe11b61(0x1cb)],'tags':_0x4d9a49['tags'],'dir':_0x4d9a49['dir'],'cacheDir':_0x4d9a49[_0xe11b61(0x1d2)],'skillMdPath':_0x4d9a49['skillMdPath'],'metadataPath':_0x4d9a49[_0xe11b61(0x1d4)],'linkedPaths':_0x4d9a49[_0xe11b61(0x1ce)],'contentHash':_0x4d9a49['contentHash'],'treeHash':_0x4d9a49[_0xe11b61(0x1d3)],'pulledAt':_0x4d9a49[_0xe11b61(0x1c5)]};}
@@ -1 +1 @@
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);}
1
+ function a81_0x1a7d(){const _0x4f7bec=['\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','.agents/skills','\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类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','validation','includes','10593513MsHNyb','1408714dxEvVn','126OQJQVk','198255XVoSNa','\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','timestamp','SKILL.md','read','\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','trim','test','join','529215KEsbSu','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','references/runtime-contract.md','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','\x0a\x20\x20created:\x20\x22','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','toISOString','write','866358xzxSgE','2coiWBi','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','\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','Use\x20one\x20of:\x20','Invalid\x20Skill\x20name:\x20','skillName','4914912aJJdvO','1824908KsSHkf'];a81_0x1a7d=function(){return _0x4f7bec;};return a81_0x1a7d();}const a81_0x21c70a=a81_0x4302;(function(_0x126259,_0x59c2b9){const _0x1976f2=a81_0x4302,_0x3866c7=_0x126259();while(!![]){try{const _0xf14f42=-parseInt(_0x1976f2(0x1f6))/0x1*(-parseInt(_0x1976f2(0x1e5))/0x2)+parseInt(_0x1976f2(0x201))/0x3+parseInt(_0x1976f2(0x1ee))/0x4+-parseInt(_0x1976f2(0x1f8))/0x5*(-parseInt(_0x1976f2(0x1f7))/0x6)+-parseInt(_0x1976f2(0x1f5))/0x7+-parseInt(_0x1976f2(0x1ed))/0x8+parseInt(_0x1976f2(0x20a))/0x9;if(_0xf14f42===_0x59c2b9)break;else _0x3866c7['push'](_0x3866c7['shift']());}catch(_0x4a5fbf){_0x3866c7['push'](_0x3866c7['shift']());}}}(a81_0x1a7d,0xcdb3c));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a81_0x21c70a(0x209),a81_0x21c70a(0x1fc)];export const DEFAULT_SKILL_TARGET=a81_0x21c70a(0x1f0);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a81_0x21c70a(0x203);function a81_0x4302(_0x322733,_0x5b8c77){_0x322733=_0x322733-0x1e5;const _0x1a7d05=a81_0x1a7d();let _0x430241=_0x1a7d05[_0x322733];return _0x430241;}export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x2f4ab3){const _0x4011f9=a81_0x21c70a,_0x1c4218=_0x2f4ab3[_0x4011f9(0x1fe)]();if(!SKILL_NAME_PATTERN[_0x4011f9(0x1ff)](_0x1c4218))throw CliErrors[_0x4011f9(0x1f3)](_0x4011f9(0x1eb)+_0x2f4ab3+_0x4011f9(0x204),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x1c4218;}export function normalizeSkillTemplateType(_0x519cc3){const _0x34a8d5=a81_0x21c70a,_0x304c72=(_0x519cc3||'write')[_0x34a8d5(0x1fe)]()||_0x34a8d5(0x209);if(SKILL_TYPES[_0x34a8d5(0x1f4)](_0x304c72))return _0x304c72;throw CliErrors[_0x34a8d5(0x1f3)]('Unsupported\x20Skill\x20type:\x20'+_0x519cc3,_0x34a8d5(0x1ea)+SKILL_TYPES[_0x34a8d5(0x200)](',\x20')+'.');}export function renderSkillTemplate(_0x5965df){const _0x40fd31=a81_0x21c70a,_0x5b1646=validateSkillName(_0x5965df[_0x40fd31(0x1ec)]),_0x502522=normalizeSkillTemplateType(_0x5965df['type']),_0x1fca42=_0x5965df[_0x40fd31(0x1fa)]??new Date()[_0x40fd31(0x208)]();return{'skillName':_0x5b1646,'type':_0x502522,'files':[{'path':_0x40fd31(0x1fb),'content':renderSkillMd(_0x5b1646,_0x502522,_0x1fca42)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x5b1646,_0x502522)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x5b1646,_0x502522)}]};}function renderSkillMd(_0x1a3bf4,_0x26e687,_0x5b3c6e){const _0x4830e4=a81_0x21c70a,_0x307bf6=typeWorkflow(_0x26e687);return'---\x0aname:\x20'+_0x1a3bf4+_0x4830e4(0x1ef)+_0x26e687+_0x4830e4(0x206)+_0x5b3c6e+_0x4830e4(0x205)+_0x1a3bf4+'\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'+_0x307bf6+'\x0a\x0a'+businessStateSection(_0x26e687)+_0x4830e4(0x1f1);}function renderRuntimeContract(_0x2fb6e4,_0x33b437){const _0x54818e=a81_0x21c70a,_0x218dc3=_0x33b437===_0x54818e(0x209)?_0x54818e(0x207):'';return _0x54818e(0x1e7)+_0x2fb6e4+'\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='+_0x33b437+_0x54818e(0x1e9)+_0x218dc3+_0x54818e(0x1f9);}function renderOutputContract(_0x299074,_0x1fa70b){const _0x57ffa5=a81_0x21c70a,_0x309d19=_0x1fa70b===_0x57ffa5(0x209)?_0x57ffa5(0x1e6):_0x1fa70b+_0x57ffa5(0x1f2);return'#\x20Output\x20Contract\x0a\x0a'+_0x299074+_0x57ffa5(0x1fd)+_0x309d19+_0x57ffa5(0x202);}function typeWorkflow(_0x13ec32){const _0x485417=a81_0x21c70a;if(_0x13ec32===_0x485417(0x1fc))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';return _0x485417(0x1e8);}function businessStateSection(_0x11f8c4){const _0x218ce2=a81_0x21c70a;if(_0x11f8c4!==_0x218ce2(0x209))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
@@ -1 +1 @@
1
- const a82_0x570da4=a82_0x5e43;(function(_0x1c5c3d,_0x2fbded){const _0x55845b=a82_0x5e43,_0x5c19a7=_0x1c5c3d();while(!![]){try{const _0x3ea31b=-parseInt(_0x55845b(0x19a))/0x1*(-parseInt(_0x55845b(0x1ca))/0x2)+-parseInt(_0x55845b(0x1ce))/0x3*(parseInt(_0x55845b(0x1cc))/0x4)+parseInt(_0x55845b(0x1a6))/0x5+-parseInt(_0x55845b(0x1c8))/0x6+-parseInt(_0x55845b(0x19e))/0x7+parseInt(_0x55845b(0x1f0))/0x8*(parseInt(_0x55845b(0x1bf))/0x9)+-parseInt(_0x55845b(0x1d4))/0xa*(parseInt(_0x55845b(0x1aa))/0xb);if(_0x3ea31b===_0x2fbded)break;else _0x5c19a7['push'](_0x5c19a7['shift']());}catch(_0x3189f8){_0x5c19a7['push'](_0x5c19a7['shift']());}}}(a82_0x4f04,0x25b08));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x1a0381}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0x570da4(0x1ab),SUPPORTED_SKILL_TYPES=new Set([a82_0x570da4(0x1a7),a82_0x570da4(0x1d5)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5783f0,_0x4969f4={}){const _0x4173f5=a82_0x570da4,_0x3aae3d=resolveSkillDirectoryRoot(_0x5783f0),_0x5ac310=[],_0x5cce7f=loadRequiredSkillFile(_0x3aae3d,_0x5ac310),_0x406954=_0x5cce7f?parseFrontmatter(_0x5cce7f[_0x4173f5(0x1ee)]):{'hasFrontmatter':![]};_0x5cce7f&&validateFrontmatter(_0x5cce7f[_0x4173f5(0x1e5)],_0x406954,_0x5ac310);validateRuntimeCliReferences(_0x3aae3d,_0x5ac310);const _0x44da2f=_0x5ac310[_0x4173f5(0x1cb)](_0x301d22=>_0x301d22[_0x4173f5(0x1c3)]===_0x4173f5(0x1a5)),_0x3aec32=_0x5ac310['filter'](_0x38d512=>_0x38d512['level']==='warning');return{'ok':_0x44da2f[_0x4173f5(0x1cf)]===0x0,'dir':_0x3aae3d,'type':_0x406954['type'],'errors':_0x44da2f,'warnings':_0x3aec32};}function resolveSkillDirectoryRoot(_0x3620f9){const _0x208057=a82_0x570da4,_0x47d55a=resolve(_0x3620f9);if(!existsSync(_0x47d55a))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);const _0xbf6abb=lstatSync(_0x47d55a);if(_0xbf6abb[_0x208057(0x1c9)]())return _0x47d55a;if(_0xbf6abb['isSymbolicLink']()){const _0x5425e2=realpathSync(_0x47d55a);if(lstatSync(_0x5425e2)['isDirectory']())return _0x5425e2;}throw CliErrors[_0x208057(0x1c7)]('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);}export function throwIfSkillValidationFailed(_0x58ee33,_0x31314d=![]){const _0x38bb01=a82_0x570da4;if(_0x58ee33['ok'])return;const _0x8e9b4d=_0x58ee33[_0x38bb01(0x1dc)]['map'](_0x30895b=>{const _0x5c97fd=_0x38bb01,_0x398485=_0x30895b['section']?'#'+_0x30895b['section']:'';return _0x30895b[_0x5c97fd(0x1c3)][_0x5c97fd(0x1ac)]()+'\x20'+_0x30895b[_0x5c97fd(0x1ad)]+'\x20'+_0x30895b[_0x5c97fd(0x19b)]+_0x398485+':\x20'+_0x30895b[_0x5c97fd(0x1bd)]+_0x5c97fd(0x19c)+_0x30895b[_0x5c97fd(0x1ba)];});throw CliErrors['validation'](_0x38bb01(0x1e8)+_0x8e9b4d[_0x38bb01(0x1c2)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x32e8ac,_0x2890e5){const _0x2320c9=a82_0x570da4,_0x2debe0=resolve(_0x32e8ac,SKILL_FILE);if(!existsSync(_0x2debe0))return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),_0x2320c9(0x1c5),SKILL_FILE,'Missing\x20SKILL.md.',_0x2320c9(0x1e9))),undefined;const _0x26ead9=lstatSync(_0x2debe0);if(_0x26ead9['isSymbolicLink']())return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1af),_0x2320c9(0x1eb))),undefined;if(!_0x26ead9['isFile']())return _0x2890e5['push'](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1be),_0x2320c9(0x1c1))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2debe0,'utf8')};}function validateFrontmatter(_0x4642dc,_0x61d05d,_0x4c2dc4){const _0x1716d1=a82_0x570da4;if(!_0x61d05d[_0x1716d1(0x1a3)]){_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1a1),_0x1716d1(0x1e3)));return;}!_0x61d05d['name']?.['trim']()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,'Frontmatter\x20name\x20is\x20missing.',_0x1716d1(0x1a9))),!_0x61d05d['displayName']?.['trim']()&&_0x4c2dc4['push'](issue(_0x1716d1(0x1e1),_0x1716d1(0x19f),_0x4642dc,_0x1716d1(0x1ae),_0x1716d1(0x1b5))),!_0x61d05d['example']?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1e1),_0x1716d1(0x1e2),_0x4642dc,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x61d05d[_0x1716d1(0x1b8)]?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue('error',_0x1716d1(0x1db),_0x4642dc,_0x1716d1(0x1e7),_0x1716d1(0x1e4))),_0x61d05d['internal']===!![]&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1d0),_0x4642dc,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x1716d1(0x1a4))),_0x61d05d[_0x1716d1(0x1a8)]?.[_0x1716d1(0x1dd)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x61d05d[_0x1716d1(0x1a8)])&&_0x4c2dc4['push'](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1b4),_0x1716d1(0x1de)));}function validateRuntimeCliReferences(_0x3aabac,_0x20a33e){const _0x5af340=a82_0x570da4;for(const _0x581e95 of findRabetbaseCliInvocations(_0x3aabac)){_0x20a33e[_0x5af340(0x1e0)](issue(_0x5af340(0x1e1),'rabetbase-cli-reference',_0x581e95[_0x5af340(0x19b)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x5af340(0x1b3),'L'+_0x581e95[_0x5af340(0x1d8)]));}}function findRabetbaseCliInvocations(_0x16e864){const _0x5a6455=a82_0x570da4;return scanSkillDirectory(_0x16e864)[_0x5a6455(0x1cb)](_0x26cc01=>TEXT_SKILL_FILE_PATTERN[_0x5a6455(0x1ec)](_0x26cc01[_0x5a6455(0x1e5)]))['flatMap'](_0x8d22c5=>{const _0x811bee=_0x5a6455,_0x3c46c5=fileText(_0x8d22c5);return _0x3c46c5[_0x811bee(0x19d)](/\r?\n/)[_0x811bee(0x1bb)]((_0xe8b4e9,_0x2b9cce)=>({'file':_0x8d22c5[_0x811bee(0x1e5)],'line':_0x2b9cce+0x1,'text':_0xe8b4e9}))[_0x811bee(0x1cb)](({text:_0x544b05})=>isRabetbaseCliInvocation(_0x544b05))[_0x811bee(0x1bb)](({file:_0x362ccc,line:_0x3ed2e4})=>({'file':_0x362ccc,'line':_0x3ed2e4}));});}const RABETBASE_SUBCOMMANDS=[a82_0x570da4(0x1b0),a82_0x570da4(0x1cd),a82_0x570da4(0x1e6),a82_0x570da4(0x1c4),a82_0x570da4(0x1ef),a82_0x570da4(0x1c0),a82_0x570da4(0x1d3),a82_0x570da4(0x1b2),a82_0x570da4(0x1d2),'kb','config','workspace',a82_0x570da4(0x1d7),a82_0x570da4(0x1c6),a82_0x570da4(0x1d6),a82_0x570da4(0x1d1)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a82_0x570da4(0x1c2)]('|')})\b`+String[a82_0x570da4(0x1bc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2c25fd){const _0x4ca5c1=a82_0x570da4,_0x5e3651=_0x2c25fd[_0x4ca5c1(0x1d9)](/\brabetbase\b/i);if(_0x5e3651<0x0)return![];const _0x2a6e19=_0x2c25fd['slice'](_0x5e3651)[_0x4ca5c1(0x19d)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4ca5c1(0x1ec)](_0x2a6e19);}function parseFrontmatter(_0x59c342){const _0x6c5708=a82_0x570da4,_0x447867=_0x59c342['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x447867)return{'hasFrontmatter':![]};const _0x5736c9=_0x447867[0x1]??'',_0x20b31d={'hasFrontmatter':!![]};let _0x68ec83;try{_0x68ec83=a82_0x1a0381(_0x5736c9);}catch{return _0x20b31d;}const _0xe2211b=asRecord(_0x68ec83);if(!_0xe2211b)return _0x20b31d;_0x20b31d[_0x6c5708(0x1b9)]=scalarToString(_0xe2211b['name']),_0x20b31d[_0x6c5708(0x199)]=scalarToString(_0xe2211b[_0x6c5708(0x199)]),_0x20b31d[_0x6c5708(0x1b8)]=scalarToString(_0xe2211b['description']),_0x20b31d['example']=scalarToString(_0xe2211b[_0x6c5708(0x1b1)]);const _0x1067e3=asRecord(_0xe2211b['metadata']);return _0x1067e3&&(_0x20b31d[_0x6c5708(0x1a8)]=scalarToString(_0x1067e3[_0x6c5708(0x1a8)]),_0x20b31d['internal']=scalarToBoolean(_0x1067e3['internal'])),_0x20b31d;}function asRecord(_0x4a8aa1){const _0x7d0f5a=a82_0x570da4;if(_0x4a8aa1&&typeof _0x4a8aa1===_0x7d0f5a(0x1ea)&&!Array[_0x7d0f5a(0x1da)](_0x4a8aa1))return _0x4a8aa1;return undefined;}function a82_0x4f04(){const _0x3bdd8e=['frontmatter-required','content','project','35384YHSOEC','displayName','1FbhirQ','file','\x20Fix:\x20','split','832769qjEhlG','display-name-recommended','false','SKILL.md\x20must\x20start\x20with\x20frontmatter.','boolean','hasFrontmatter','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','error','1244585OZzdFo','write','type','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','1469567OtNVqs','SKILL.md','toUpperCase','ruleId','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','dataset','example','service','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','toLowerCase','true','description','name','suggestion','map','raw','message','SKILL.md\x20is\x20not\x20a\x20file.','549yWgehn','app','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','join','level','page','structure-complete','auth','validation','57222zbLKtX','isDirectory','514894liAppm','filter','904372axNbBy','sql','3UEuonA','length','internal-skill','registry','artifact','schema','20IlXWSM','read','logs','data','line','search','isArray','description-required','errors','trim','Set\x20metadata.type\x20to\x20write\x20or\x20read.','string','push','warning','example-recommended','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','path','bff','Frontmatter\x20description\x20is\x20empty.','Skill\x20validation\x20failed:\x0a','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','object','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','test'];a82_0x4f04=function(){return _0x3bdd8e;};return a82_0x4f04();}function scalarToString(_0x50b793){const _0x487a8=a82_0x570da4;if(typeof _0x50b793===_0x487a8(0x1df))return _0x50b793[_0x487a8(0x1dd)]();if(typeof _0x50b793==='number'||typeof _0x50b793==='boolean')return String(_0x50b793);return undefined;}function scalarToBoolean(_0xd15cf5){const _0x3f2480=a82_0x570da4;if(typeof _0xd15cf5===_0x3f2480(0x1a2))return _0xd15cf5;if(typeof _0xd15cf5===_0x3f2480(0x1df))return cleanBoolean(_0xd15cf5);return undefined;}function cleanBoolean(_0x79931c){const _0x10783a=a82_0x570da4,_0x316d64=_0x79931c[_0x10783a(0x1dd)]()[_0x10783a(0x1b6)]();if(_0x316d64===_0x10783a(0x1b7))return!![];if(_0x316d64===_0x10783a(0x1a0))return![];return undefined;}function a82_0x5e43(_0xe7459a,_0x3e3a1b){_0xe7459a=_0xe7459a-0x199;const _0x4f04f3=a82_0x4f04();let _0x5e433e=_0x4f04f3[_0xe7459a];return _0x5e433e;}function issue(_0x5c081f,_0x58f497,_0x2bdc78,_0x4d31be,_0x52da92,_0x2872fd){return{'level':_0x5c081f,'ruleId':_0x58f497,'file':_0x2bdc78,'section':_0x2872fd,'message':_0x4d31be,'suggestion':_0x52da92};}
1
+ const a82_0x462d18=a82_0x331e;(function(_0x5120eb,_0xff7678){const _0x5da6f3=a82_0x331e,_0x2e7430=_0x5120eb();while(!![]){try{const _0x113c9b=parseInt(_0x5da6f3(0xaf))/0x1+-parseInt(_0x5da6f3(0xb4))/0x2*(-parseInt(_0x5da6f3(0x91))/0x3)+-parseInt(_0x5da6f3(0x8d))/0x4+parseInt(_0x5da6f3(0x84))/0x5+parseInt(_0x5da6f3(0x9c))/0x6*(-parseInt(_0x5da6f3(0x80))/0x7)+-parseInt(_0x5da6f3(0xbd))/0x8*(-parseInt(_0x5da6f3(0xa4))/0x9)+-parseInt(_0x5da6f3(0x89))/0xa;if(_0x113c9b===_0xff7678)break;else _0x2e7430['push'](_0x2e7430['shift']());}catch(_0x299e27){_0x2e7430['push'](_0x2e7430['shift']());}}}(a82_0x55ed,0xdc598));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x2d8d18}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';function a82_0x331e(_0x236cdf,_0x137221){_0x236cdf=_0x236cdf-0x7e;const _0x55ed09=a82_0x55ed();let _0x331e93=_0x55ed09[_0x236cdf];return _0x331e93;}const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a82_0x462d18(0xc1),a82_0x462d18(0x8e)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5ad793,_0x56f66b={}){const _0x32c1bf=a82_0x462d18,_0x429d4f=resolveSkillDirectoryRoot(_0x5ad793),_0x2c0eec=[],_0x518f11=loadRequiredSkillFile(_0x429d4f,_0x2c0eec),_0x8822a1=_0x518f11?parseFrontmatter(_0x518f11['content']):{'hasFrontmatter':![]};_0x518f11&&validateFrontmatter(_0x518f11['path'],_0x8822a1,_0x2c0eec);validateRuntimeCliReferences(_0x429d4f,_0x2c0eec);const _0xd18cbb=_0x2c0eec[_0x32c1bf(0xb0)](_0x15d0b3=>_0x15d0b3[_0x32c1bf(0x98)]==='error'),_0x3522d5=_0x2c0eec[_0x32c1bf(0xb0)](_0x1f2e3f=>_0x1f2e3f[_0x32c1bf(0x98)]===_0x32c1bf(0x88));return{'ok':_0xd18cbb['length']===0x0,'dir':_0x429d4f,'type':_0x8822a1[_0x32c1bf(0xb6)],'errors':_0xd18cbb,'warnings':_0x3522d5};}function resolveSkillDirectoryRoot(_0x4c1924){const _0x1a65b6=a82_0x462d18,_0x2ce078=resolve(_0x4c1924);if(!existsSync(_0x2ce078))throw CliErrors['validation'](_0x1a65b6(0xbe)+_0x4c1924);const _0x493f6c=lstatSync(_0x2ce078);if(_0x493f6c['isDirectory']())return _0x2ce078;if(_0x493f6c[_0x1a65b6(0xa0)]()){const _0x36de55=realpathSync(_0x2ce078);if(lstatSync(_0x36de55)['isDirectory']())return _0x36de55;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x4c1924);}export function throwIfSkillValidationFailed(_0x1864bf,_0xac12ed=![]){const _0x2322bf=a82_0x462d18;if(_0x1864bf['ok'])return;const _0x5de8d4=_0x1864bf[_0x2322bf(0xc8)]['map'](_0x519974=>{const _0x458095=_0x2322bf,_0x59c3d4=_0x519974[_0x458095(0xba)]?'#'+_0x519974[_0x458095(0xba)]:'';return _0x519974[_0x458095(0x98)]['toUpperCase']()+'\x20'+_0x519974[_0x458095(0x9f)]+'\x20'+_0x519974['file']+_0x59c3d4+':\x20'+_0x519974[_0x458095(0x85)]+_0x458095(0x94)+_0x519974[_0x458095(0x97)];});throw CliErrors[_0x2322bf(0xca)]('Skill\x20validation\x20failed:\x0a'+_0x5de8d4[_0x2322bf(0x95)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x2e16ed,_0x4e6e90){const _0x1cedb0=a82_0x462d18,_0x5cb656=resolve(_0x2e16ed,SKILL_FILE);if(!existsSync(_0x5cb656))return _0x4e6e90['push'](issue('error',_0x1cedb0(0xb8),SKILL_FILE,_0x1cedb0(0xa6),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x344113=lstatSync(_0x5cb656);if(_0x344113[_0x1cedb0(0xa0)]())return _0x4e6e90['push'](issue(_0x1cedb0(0xa2),_0x1cedb0(0xb8),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x1cedb0(0x9e))),undefined;if(!_0x344113[_0x1cedb0(0x7e)]())return _0x4e6e90[_0x1cedb0(0x81)](issue(_0x1cedb0(0xa2),_0x1cedb0(0xb8),SKILL_FILE,_0x1cedb0(0xc6),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x5cb656,'utf8')};}function validateFrontmatter(_0x2c27f4,_0x18a065,_0x4abea8){const _0x324435=a82_0x462d18;if(!_0x18a065[_0x324435(0x8f)]){_0x4abea8['push'](issue(_0x324435(0xa2),_0x324435(0xa9),_0x2c27f4,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x324435(0xa1)));return;}!_0x18a065[_0x324435(0x8c)]?.['trim']()&&_0x4abea8[_0x324435(0x81)](issue(_0x324435(0xa2),_0x324435(0xa9),_0x2c27f4,_0x324435(0xae),_0x324435(0x83))),!_0x18a065['displayName']?.['trim']()&&_0x4abea8[_0x324435(0x81)](issue('warning',_0x324435(0x86),_0x2c27f4,_0x324435(0xa7),_0x324435(0x96))),!_0x18a065[_0x324435(0xc2)]?.[_0x324435(0xc4)]()&&_0x4abea8['push'](issue('warning','example-recommended',_0x2c27f4,'Frontmatter\x20example\x20is\x20missing.',_0x324435(0xc0))),!_0x18a065[_0x324435(0x9d)]?.[_0x324435(0xc4)]()&&_0x4abea8[_0x324435(0x81)](issue(_0x324435(0xa2),'description-required',_0x2c27f4,_0x324435(0xac),'Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.')),_0x18a065[_0x324435(0xb2)]===!![]&&_0x4abea8[_0x324435(0x81)](issue(_0x324435(0xa2),_0x324435(0x99),_0x2c27f4,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x18a065['type']?.[_0x324435(0xc4)]()&&!SUPPORTED_SKILL_TYPES[_0x324435(0x8b)](_0x18a065['type'])&&_0x4abea8[_0x324435(0x81)](issue(_0x324435(0xa2),_0x324435(0xa9),_0x2c27f4,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20metadata.type\x20to\x20write\x20or\x20read.'));}function validateRuntimeCliReferences(_0x45494c,_0x38b211){const _0x4ded7a=a82_0x462d18;for(const _0x4a5329 of findRabetbaseCliInvocations(_0x45494c)){_0x38b211['push'](issue(_0x4ded7a(0x88),'rabetbase-cli-reference',_0x4a5329['file'],_0x4ded7a(0xbc),_0x4ded7a(0x90),'L'+_0x4a5329['line']));}}function a82_0x55ed(){const _0x525a5b=['Frontmatter\x20displayName\x20is\x20missing.','string','frontmatter-required','split','data','Frontmatter\x20description\x20is\x20empty.','map','Frontmatter\x20name\x20is\x20missing.','758981DkJAcm','filter','sql','internal','test','2hKRAKk','app','type','match','structure-complete','true','section','false','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','7123144ClZDfV','Skill\x20directory\x20not\x20found:\x20','bff','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','write','example','logs','trim','slice','SKILL.md\x20is\x20not\x20a\x20file.','isArray','errors','boolean','validation','isFile','project','7arVJMJ','push','artifact','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','9000305xMuLoM','message','display-name-recommended','raw','warning','34993810lKrZPY','search','has','name','5077044GmwUyd','read','hasFrontmatter','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','4300329JymMGc','config','number','\x20Fix:\x20','join','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','suggestion','level','internal-skill','metadata','object','612462mWYcdy','description','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','ruleId','isSymbolicLink','Add\x20frontmatter\x20with\x20name\x20and\x20description.','error','displayName','18ekCRQQ','registry','Missing\x20SKILL.md.'];a82_0x55ed=function(){return _0x525a5b;};return a82_0x55ed();}function findRabetbaseCliInvocations(_0x4eeabf){const _0x478f95=a82_0x462d18;return scanSkillDirectory(_0x4eeabf)[_0x478f95(0xb0)](_0x56a78b=>TEXT_SKILL_FILE_PATTERN[_0x478f95(0xb3)](_0x56a78b['path']))['flatMap'](_0x8cc325=>{const _0x5ee597=_0x478f95,_0x52c8b9=fileText(_0x8cc325);return _0x52c8b9[_0x5ee597(0xaa)](/\r?\n/)[_0x5ee597(0xad)]((_0x368226,_0x554028)=>({'file':_0x8cc325['path'],'line':_0x554028+0x1,'text':_0x368226}))[_0x5ee597(0xb0)](({text:_0x3a7f8d})=>isRabetbaseCliInvocation(_0x3a7f8d))['map'](({file:_0x4dc356,line:_0x29459a})=>({'file':_0x4dc356,'line':_0x29459a}));});}const RABETBASE_SUBCOMMANDS=['dataset',a82_0x462d18(0xb1),a82_0x462d18(0xbf),'page',a82_0x462d18(0x7f),a82_0x462d18(0xb5),'schema','service',a82_0x462d18(0x82),'kb',a82_0x462d18(0x92),'workspace',a82_0x462d18(0xab),'auth',a82_0x462d18(0xc3),a82_0x462d18(0xa5)],RABETBASE_INVOCATION=new RegExp(String[a82_0x462d18(0x87)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a82_0x462d18(0x95)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0xbed0a8){const _0x19a011=a82_0x462d18,_0x4a41a5=_0xbed0a8[_0x19a011(0x8a)](/\brabetbase\b/i);if(_0x4a41a5<0x0)return![];const _0x246d9b=_0xbed0a8[_0x19a011(0xc5)](_0x4a41a5)[_0x19a011(0xaa)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x19a011(0xb3)](_0x246d9b);}function parseFrontmatter(_0x3fc703){const _0x48459f=a82_0x462d18,_0x2e2368=_0x3fc703[_0x48459f(0xb7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2e2368)return{'hasFrontmatter':![]};const _0x243be8=_0x2e2368[0x1]??'',_0x5a3f1d={'hasFrontmatter':!![]};let _0xaf270a;try{_0xaf270a=a82_0x2d8d18(_0x243be8);}catch{return _0x5a3f1d;}const _0x55944e=asRecord(_0xaf270a);if(!_0x55944e)return _0x5a3f1d;_0x5a3f1d[_0x48459f(0x8c)]=scalarToString(_0x55944e['name']),_0x5a3f1d[_0x48459f(0xa3)]=scalarToString(_0x55944e[_0x48459f(0xa3)]),_0x5a3f1d[_0x48459f(0x9d)]=scalarToString(_0x55944e[_0x48459f(0x9d)]),_0x5a3f1d[_0x48459f(0xc2)]=scalarToString(_0x55944e[_0x48459f(0xc2)]);const _0x5cb4d3=asRecord(_0x55944e[_0x48459f(0x9a)]);return _0x5cb4d3&&(_0x5a3f1d[_0x48459f(0xb6)]=scalarToString(_0x5cb4d3[_0x48459f(0xb6)]),_0x5a3f1d[_0x48459f(0xb2)]=scalarToBoolean(_0x5cb4d3['internal'])),_0x5a3f1d;}function asRecord(_0x184821){const _0x2268c9=a82_0x462d18;if(_0x184821&&typeof _0x184821===_0x2268c9(0x9b)&&!Array[_0x2268c9(0xc7)](_0x184821))return _0x184821;return undefined;}function scalarToString(_0x1d0474){const _0x10baf3=a82_0x462d18;if(typeof _0x1d0474===_0x10baf3(0xa8))return _0x1d0474[_0x10baf3(0xc4)]();if(typeof _0x1d0474===_0x10baf3(0x93)||typeof _0x1d0474==='boolean')return String(_0x1d0474);return undefined;}function scalarToBoolean(_0x1de22c){const _0xa516a6=a82_0x462d18;if(typeof _0x1de22c===_0xa516a6(0xc9))return _0x1de22c;if(typeof _0x1de22c===_0xa516a6(0xa8))return cleanBoolean(_0x1de22c);return undefined;}function cleanBoolean(_0x27a6cc){const _0x3e4edc=a82_0x462d18,_0x7ee9da=_0x27a6cc['trim']()['toLowerCase']();if(_0x7ee9da===_0x3e4edc(0xb9))return!![];if(_0x7ee9da===_0x3e4edc(0xbb))return![];return undefined;}function issue(_0x4c9a6e,_0x2bb9fe,_0x9d390d,_0x17897f,_0x3e0867,_0x31511d){return{'level':_0x4c9a6e,'ruleId':_0x2bb9fe,'file':_0x9d390d,'section':_0x31511d,'message':_0x17897f,'suggestion':_0x3e0867};}