@lovrabet/lovrabet-cli 2.2.5-beta.1 → 2.2.5-beta.2

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 (158) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.js +1 -1
  85. package/lib/commands/user-account/bind.js +1 -1
  86. package/lib/commands/user-account/index.js +1 -1
  87. package/lib/commands/workspace/index.js +1 -1
  88. package/lib/config/schema.js +1 -1
  89. package/lib/constant/app.js +1 -1
  90. package/lib/constant/auth-mode.js +1 -1
  91. package/lib/constant/cli.js +1 -1
  92. package/lib/constant/defaults.js +1 -1
  93. package/lib/constant/distribution.js +1 -1
  94. package/lib/constant/domain.js +1 -1
  95. package/lib/constant/env.js +1 -1
  96. package/lib/constant/output.js +1 -1
  97. package/lib/constant/product.js +1 -1
  98. package/lib/constant/risk.js +1 -1
  99. package/lib/constant/url.js +1 -1
  100. package/lib/context.js +1 -1
  101. package/lib/core/api-client.js +1 -1
  102. package/lib/core/db-resolver.js +1 -1
  103. package/lib/core/sdk-client.js +1 -1
  104. package/lib/errors.js +1 -1
  105. package/lib/framework/build-all-flags.js +1 -1
  106. package/lib/framework/dryrun.js +1 -1
  107. package/lib/framework/flags.js +1 -1
  108. package/lib/framework/help.js +1 -1
  109. package/lib/framework/index.js +1 -1
  110. package/lib/framework/output.js +1 -1
  111. package/lib/framework/preparse.js +1 -1
  112. package/lib/framework/rate-limit.js +1 -1
  113. package/lib/framework/raw-flags.js +1 -1
  114. package/lib/framework/response.js +1 -1
  115. package/lib/framework/runner-confirmation.js +1 -1
  116. package/lib/framework/runner-error.js +1 -1
  117. package/lib/framework/runner.js +1 -1
  118. package/lib/framework/schema-export.js +1 -1
  119. package/lib/framework/service-order.js +1 -1
  120. package/lib/framework/types.js +1 -1
  121. package/lib/generated/build-info.d.ts +4 -4
  122. package/lib/generated/build-info.js +1 -1
  123. package/lib/help.js +1 -1
  124. package/lib/postinstall.js +1 -1
  125. package/lib/runtime/confirmation.js +1 -1
  126. package/lib/runtime/event.js +1 -1
  127. package/lib/runtime/index.js +1 -1
  128. package/lib/runtime/queue.js +1 -1
  129. package/lib/runtime/resolve.js +1 -1
  130. package/lib/skills/builtin-skill.js +1 -1
  131. package/lib/skills/npx-skills-add.js +1 -1
  132. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  133. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  134. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  135. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  136. package/lib/skills/runtime-skill-sync/links.js +1 -1
  137. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  138. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  139. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  140. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  141. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  142. package/lib/skills/runtime-skill-sync/push.js +1 -1
  143. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  144. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  146. package/lib/skills/runtime-skill-sync.js +1 -1
  147. package/lib/skills/skill-presence.js +1 -1
  148. package/lib/utils/apply-jq-filter.js +1 -1
  149. package/lib/utils/logger.js +1 -1
  150. package/lib/utils/lossless-json.js +1 -1
  151. package/lib/utils/params.js +1 -1
  152. package/lib/utils/platform.js +1 -1
  153. package/lib/utils/update-notice.js +1 -1
  154. package/lib/utils/version.js +1 -1
  155. package/lib/utils/write-cli-side-channel.js +1 -1
  156. package/package.json +1 -1
  157. package/skills/lovrabet/SKILL.md +1 -1
  158. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a67_0x42a7bf=a67_0x120b;(function(_0xbc7b15,_0x45dda3){const _0x2e4b7b=a67_0x120b,_0x9667ba=_0xbc7b15();while(!![]){try{const _0x565164=-parseInt(_0x2e4b7b(0x1eb))/0x1*(parseInt(_0x2e4b7b(0x1ef))/0x2)+-parseInt(_0x2e4b7b(0x1e6))/0x3*(-parseInt(_0x2e4b7b(0x1e4))/0x4)+-parseInt(_0x2e4b7b(0x1f0))/0x5+parseInt(_0x2e4b7b(0x1e7))/0x6*(parseInt(_0x2e4b7b(0x1e9))/0x7)+-parseInt(_0x2e4b7b(0x1f2))/0x8*(-parseInt(_0x2e4b7b(0x1ea))/0x9)+parseInt(_0x2e4b7b(0x1f3))/0xa+-parseInt(_0x2e4b7b(0x1ed))/0xb;if(_0x565164===_0x45dda3)break;else _0x9667ba['push'](_0x9667ba['shift']());}catch(_0x29ff77){_0x9667ba['push'](_0x9667ba['shift']());}}}(a67_0x4645,0xa030c));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a67_0x120b(_0x4fd061,_0x334096){_0x4fd061=_0x4fd061-0x1e4;const _0x4645da=a67_0x4645();let _0x120bdf=_0x4645da[_0x4fd061];return _0x120bdf;}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a67_0x42a7bf(0x1e5),'command':a67_0x42a7bf(0x1f1),'description':a67_0x42a7bf(0x1ee),'risk':a67_0x42a7bf(0x1ec),'confirmationDescription':a67_0x42a7bf(0x1e8),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};function a67_0x4645(){const _0x153e74=['7365896ssNSGb','11656240uvkYqj','16BlocTg','skill','88635itMoaK','120cAldxX','将读取本地\x20Skill\x20内容:个人范围会立即保存并生效,公司范围会提交一个新版本进入审核。确认界面不会展示目录路径或\x20Skill\x20正文。','172655uugJgp','9NOOTQZ','2072IFfZwh','write','7967795fxOPEq','将本地\x20Skill\x20目录推送到个人范围,或提交公司范围版本审核','530jNHGWk','3841380qjypPm','push'];a67_0x4645=function(){return _0x153e74;};return a67_0x4645();}
1
+ const a67_0x2c6803=a67_0x3ba3;(function(_0x2b6950,_0x94652d){const _0x19a0be=a67_0x3ba3,_0x51d1d0=_0x2b6950();while(!![]){try{const _0x2df2c6=parseInt(_0x19a0be(0x181))/0x1*(-parseInt(_0x19a0be(0x180))/0x2)+-parseInt(_0x19a0be(0x182))/0x3+-parseInt(_0x19a0be(0x17b))/0x4+parseInt(_0x19a0be(0x178))/0x5*(-parseInt(_0x19a0be(0x17d))/0x6)+-parseInt(_0x19a0be(0x184))/0x7*(parseInt(_0x19a0be(0x179))/0x8)+parseInt(_0x19a0be(0x187))/0x9+parseInt(_0x19a0be(0x17a))/0xa*(parseInt(_0x19a0be(0x183))/0xb);if(_0x2df2c6===_0x94652d)break;else _0x51d1d0['push'](_0x51d1d0['shift']());}catch(_0x4fa6b0){_0x51d1d0['push'](_0x51d1d0['shift']());}}}(a67_0x1530,0x2b27f));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a67_0x3ba3(_0x2457b0,_0x382bd4){_0x2457b0=_0x2457b0-0x178;const _0x153069=a67_0x1530();let _0x3ba367=_0x153069[_0x2457b0];return _0x3ba367;}function a67_0x1530(){const _0x590226=['2746nJkstX','254pTuBQO','861882ZvHpLi','12148631jVqbpA','1799hxRhLd','write','将本地\x20Skill\x20目录推送到个人范围,或提交公司范围版本审核','2285586MTcESm','1020EUzqXc','3944QNgvjy','10pSKvbR','641612AvNbPo','将读取本地\x20Skill\x20内容:个人范围会立即保存并生效,公司范围会提交一个新版本进入审核。确认界面不会展示目录路径或\x20Skill\x20正文。','7602LHsTzd','skill','push'];a67_0x1530=function(){return _0x590226;};return a67_0x1530();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a67_0x2c6803(0x17e),'command':a67_0x2c6803(0x17f),'description':a67_0x2c6803(0x186),'risk':a67_0x2c6803(0x185),'confirmationDescription':a67_0x2c6803(0x17c),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- function a68_0x2bb8(_0x11c120,_0x4e6367){_0x11c120=_0x11c120-0x137;const _0x3254d5=a68_0x3254();let _0x2bb8ae=_0x3254d5[_0x11c120];return _0x2bb8ae;}const a68_0x5c1b9c=a68_0x2bb8;(function(_0x43b1c6,_0x4e4f0c){const _0x51477a=a68_0x2bb8,_0x21dae3=_0x43b1c6();while(!![]){try{const _0x122086=parseInt(_0x51477a(0x140))/0x1*(-parseInt(_0x51477a(0x147))/0x2)+parseInt(_0x51477a(0x141))/0x3+parseInt(_0x51477a(0x13b))/0x4+-parseInt(_0x51477a(0x14a))/0x5*(parseInt(_0x51477a(0x13c))/0x6)+-parseInt(_0x51477a(0x145))/0x7+-parseInt(_0x51477a(0x142))/0x8*(-parseInt(_0x51477a(0x139))/0x9)+-parseInt(_0x51477a(0x143))/0xa*(parseInt(_0x51477a(0x13a))/0xb);if(_0x122086===_0x4e4f0c)break;else _0x21dae3['push'](_0x21dae3['shift']());}catch(_0x21e006){_0x21dae3['push'](_0x21dae3['shift']());}}}(a68_0x3254,0x60fae));function a68_0x3254(){const _0x356419=['dir','strict','610dyaNcN','2369511VoSRyE','24yUOUPC','1690QPiHNv','skill','2494429BONtDF','Skill\x20validation\x20passed.','1038ugpysL','errors','str','515uqVWIW','warnings','bool','2190618hKhtkL','29711NQSkQr','459796mnESpr','6312HNMTBA','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package'];a68_0x3254=function(){return _0x356419;};return a68_0x3254();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a68_0x5c1b9c(0x144),'command':'validate','description':a68_0x5c1b9c(0x13d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x3d1229){const _0x1dce80=a68_0x5c1b9c,_0x11d1e7=_0x3d1229[_0x1dce80(0x138)](_0x1dce80(0x13f)),_0x34942d=validateSkillDirectory(_0x3d1229[_0x1dce80(0x149)](_0x1dce80(0x13e)),{'strict':_0x11d1e7});return throwIfSkillValidationFailed(_0x34942d,_0x11d1e7),{'ok':!![],'data':{'dir':_0x34942d[_0x1dce80(0x13e)],'type':_0x34942d['type'],'errors':_0x34942d[_0x1dce80(0x148)],'warnings':_0x34942d[_0x1dce80(0x137)]},'message':_0x1dce80(0x146)};}};
1
+ const a68_0xe3e26a=a68_0xd5d3;(function(_0x39b2f3,_0x5ebece){const _0x31fdf4=a68_0xd5d3,_0x214174=_0x39b2f3();while(!![]){try{const _0x4a4028=parseInt(_0x31fdf4(0x77))/0x1+parseInt(_0x31fdf4(0x88))/0x2*(parseInt(_0x31fdf4(0x7a))/0x3)+parseInt(_0x31fdf4(0x74))/0x4*(-parseInt(_0x31fdf4(0x79))/0x5)+parseInt(_0x31fdf4(0x76))/0x6+-parseInt(_0x31fdf4(0x85))/0x7*(parseInt(_0x31fdf4(0x7d))/0x8)+-parseInt(_0x31fdf4(0x75))/0x9*(-parseInt(_0x31fdf4(0x87))/0xa)+-parseInt(_0x31fdf4(0x83))/0xb;if(_0x4a4028===_0x5ebece)break;else _0x214174['push'](_0x214174['shift']());}catch(_0x299805){_0x214174['push'](_0x214174['shift']());}}}(a68_0x333c,0x36ad8));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a68_0xd5d3(_0x437e14,_0x30a71b){_0x437e14=_0x437e14-0x73;const _0x333cf8=a68_0x333c();let _0xd5d30c=_0x333cf8[_0x437e14];return _0xd5d30c;}function a68_0x333c(){const _0x49520e=['errors','1477mSOZAT','Skill\x20validation\x20passed.','10KltHeQ','214JLHgoo','strict','4bUNGrX','1449144PjPqrR','1619814ANqTqX','257482NoDgzg','dir','1765455tKUOdb','8223ZjNasf','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','bool','13848DvGHDK','read','warnings','validate','type','str','434082rCjQdG'];a68_0x333c=function(){return _0x49520e;};return a68_0x333c();}export const validateCommand={'service':'skill','command':a68_0xe3e26a(0x80),'description':a68_0xe3e26a(0x7b),'risk':a68_0xe3e26a(0x7e),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x3d04bd){const _0x5e200e=a68_0xe3e26a,_0x4e1e32=_0x3d04bd[_0x5e200e(0x7c)](_0x5e200e(0x73)),_0x1706a3=validateSkillDirectory(_0x3d04bd[_0x5e200e(0x82)](_0x5e200e(0x78)),{'strict':_0x4e1e32});return throwIfSkillValidationFailed(_0x1706a3,_0x4e1e32),{'ok':!![],'data':{'dir':_0x1706a3['dir'],'type':_0x1706a3[_0x5e200e(0x81)],'errors':_0x1706a3[_0x5e200e(0x84)],'warnings':_0x1706a3[_0x5e200e(0x7f)]},'message':_0x5e200e(0x86)};}};
@@ -1 +1 @@
1
- function a69_0x59c2(_0x1c2b9e,_0x17873a){_0x1c2b9e=_0x1c2b9e-0xd7;const _0x451bde=a69_0x451b();let _0x59c2ca=_0x451bde[_0x1c2b9e];return _0x59c2ca;}(function(_0x5ec78d,_0x5d2efc){const _0x37f74f=a69_0x59c2,_0x1c83c7=_0x5ec78d();while(!![]){try{const _0x1765de=parseInt(_0x37f74f(0xdd))/0x1*(parseInt(_0x37f74f(0xd9))/0x2)+-parseInt(_0x37f74f(0xdc))/0x3+parseInt(_0x37f74f(0xe0))/0x4+parseInt(_0x37f74f(0xdb))/0x5*(-parseInt(_0x37f74f(0xd8))/0x6)+parseInt(_0x37f74f(0xde))/0x7+-parseInt(_0x37f74f(0xe5))/0x8*(-parseInt(_0x37f74f(0xda))/0x9)+-parseInt(_0x37f74f(0xe7))/0xa;if(_0x1765de===_0x5d2efc)break;else _0x1c83c7['push'](_0x1c83c7['shift']());}catch(_0x299f26){_0x1c83c7['push'](_0x1c83c7['shift']());}}}(a69_0x451b,0xbdd1b));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(_0x2dd0fd){const _0x51006c=a69_0x59c2;return(await readRequiredSkillDiagramInput(_0x2dd0fd))[_0x51006c(0xe2)];}export async function readRequiredSkillDiagramInput(_0xb287ce){const _0x2f1d5c=a69_0x59c2,_0x4bdbdb=_0xb287ce[_0x2f1d5c(0xeb)]();if(!_0x4bdbdb)throw CliErrors['validation'](_0x2f1d5c(0xe9),_0x2f1d5c(0xe3));let _0x39c311,_0x48209f;if(_0x4bdbdb==='-')try{_0x39c311=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x2f1d5c(0xee)](_0x2f1d5c(0xdf));}else{const _0x76c754=resolve(_0x4bdbdb);if(!existsSync(_0x76c754))throw CliErrors[_0x2f1d5c(0xee)]('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x76c754);if(!statSync(_0x76c754)['isFile']())throw CliErrors[_0x2f1d5c(0xee)](_0x2f1d5c(0xe1)+_0x76c754);_0x48209f=realpathSync(_0x76c754),_0x39c311=readFileSync(_0x48209f,_0x2f1d5c(0xea));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x39c311)},'sourceFilePath':_0x48209f};}export async function validateAndCanonicalizeMermaid(_0x20c0e4){const _0x2f16a2=a69_0x59c2,_0x2395ad=_0x20c0e4[_0x2f16a2(0xec)](/\r\n/g,'\x0a')[_0x2f16a2(0xec)](/\r/g,'\x0a')[_0x2f16a2(0xec)](/\n+$/,'')+'\x0a';try{const _0x5c4818=await loadMermaidApi();await _0x5c4818['parse'](_0x2395ad);}catch{throw diagramValidationError();}return _0x2395ad;}function a69_0x451b(){const _0x14b9b3=['12893faaUmW','9605897tzhsjP','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','4442908MxHOnw','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','diagram','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','24qEtbmG','default','23021510wjgLvf','defineProperties','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','utf8','trim','replace','mermaid','validation','Mermaid\x20syntax\x20validation\x20failed.','document','24HlVFXl','8wRvcOz','3851271nAFgKf','704240GBqIhI','525855pVGhvL'];a69_0x451b=function(){return _0x14b9b3;};return a69_0x451b();}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x2df880=a69_0x59c2;if(!('window'in globalThis)||!(_0x2df880(0xd7)in globalThis)){const _0x2ac7c4=new JSDOM('');Object[_0x2df880(0xe8)](globalThis,{'window':{'configurable':!![],'value':_0x2ac7c4['window']},'document':{'configurable':!![],'value':_0x2ac7c4['window']['document']}});}return(await import(_0x2df880(0xed)))[_0x2df880(0xe6)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x14bd66=a69_0x59c2;return CliErrors[_0x14bd66(0xee)](_0x14bd66(0xef),_0x14bd66(0xe4));}
1
+ (function(_0x8bd613,_0x37bf2a){const _0x489280=a69_0x9612,_0x33003f=_0x8bd613();while(!![]){try{const _0x20fb62=parseInt(_0x489280(0xfe))/0x1*(-parseInt(_0x489280(0xf9))/0x2)+parseInt(_0x489280(0xf6))/0x3*(-parseInt(_0x489280(0x104))/0x4)+-parseInt(_0x489280(0x103))/0x5*(-parseInt(_0x489280(0x107))/0x6)+parseInt(_0x489280(0x109))/0x7*(-parseInt(_0x489280(0xf7))/0x8)+parseInt(_0x489280(0x10a))/0x9+parseInt(_0x489280(0xf8))/0xa*(parseInt(_0x489280(0xf5))/0xb)+parseInt(_0x489280(0x10b))/0xc*(parseInt(_0x489280(0x101))/0xd);if(_0x20fb62===_0x37bf2a)break;else _0x33003f['push'](_0x33003f['shift']());}catch(_0x40da99){_0x33003f['push'](_0x33003f['shift']());}}}(a69_0x1fb0,0xb4d1f));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;function a69_0x1fb0(){const _0x3467fd=['Mermaid\x20flowchart\x20file\x20not\x20found:\x20','3839ZJcGAd','841860wyptni','554056OLFdic','11030IowpqL','2vVNQtB','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','validation','window','utf8','397610zkNNkE','document','Mermaid\x20syntax\x20validation\x20failed.','3237HMpAir','isFile','10wcUsTV','8NMJoue','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','parse','342654DiyxqM','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','7yZptSj','4593420iDbgkb','36588GhKEXJ','trim','replace','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','diagram'];a69_0x1fb0=function(){return _0x3467fd;};return a69_0x1fb0();}export async function readRequiredSkillDiagram(_0x25b5b8){const _0x307cc3=a69_0x9612;return(await readRequiredSkillDiagramInput(_0x25b5b8))[_0x307cc3(0xf3)];}export async function readRequiredSkillDiagramInput(_0x249c7f){const _0xa8f26d=a69_0x9612,_0x331a32=_0x249c7f[_0xa8f26d(0xf0)]();if(!_0x331a32)throw CliErrors['validation'](_0xa8f26d(0x108),_0xa8f26d(0xfa));let _0x409464,_0x2f2e4f;if(_0x331a32==='-')try{_0x409464=readFileSync(0x0,_0xa8f26d(0xfd));}catch{throw CliErrors[_0xa8f26d(0xfb)](_0xa8f26d(0x105));}else{const _0x2c5d24=resolve(_0x331a32);if(!existsSync(_0x2c5d24))throw CliErrors[_0xa8f26d(0xfb)](_0xa8f26d(0xf4)+_0x2c5d24);if(!statSync(_0x2c5d24)[_0xa8f26d(0x102)]())throw CliErrors[_0xa8f26d(0xfb)](_0xa8f26d(0xf2)+_0x2c5d24);_0x2f2e4f=realpathSync(_0x2c5d24),_0x409464=readFileSync(_0x2f2e4f,_0xa8f26d(0xfd));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x409464)},'sourceFilePath':_0x2f2e4f};}export async function validateAndCanonicalizeMermaid(_0x1ff32b){const _0x1de7ba=a69_0x9612,_0x583888=_0x1ff32b[_0x1de7ba(0xf1)](/\r\n/g,'\x0a')[_0x1de7ba(0xf1)](/\r/g,'\x0a')[_0x1de7ba(0xf1)](/\n+$/,'')+'\x0a';try{const _0x3ccd1b=await loadMermaidApi();await _0x3ccd1b[_0x1de7ba(0x106)](_0x583888);}catch{throw diagramValidationError();}return _0x583888;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x440e14=a69_0x9612;if(!(_0x440e14(0xfc)in globalThis)||!(_0x440e14(0xff)in globalThis)){const _0x350cf8=new JSDOM('');Object['defineProperties'](globalThis,{'window':{'configurable':!![],'value':_0x350cf8[_0x440e14(0xfc)]},'document':{'configurable':!![],'value':_0x350cf8[_0x440e14(0xfc)]['document']}});}return(await import('mermaid'))['default'];})()),mermaidApiPromise;}function a69_0x9612(_0xa4b05,_0x3a7574){_0xa4b05=_0xa4b05-0xf0;const _0x1fb0f1=a69_0x1fb0();let _0x961291=_0x1fb0f1[_0xa4b05];return _0x961291;}function diagramValidationError(){const _0x2c82fb=a69_0x9612;return CliErrors[_0x2c82fb(0xfb)](_0x2c82fb(0x100),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}
@@ -1 +1 @@
1
- function a70_0x10cd(_0x31d159,_0xdef954){_0x31d159=_0x31d159-0xcc;const _0x745f09=a70_0x745f();let _0x10cdf6=_0x745f09[_0x31d159];return _0x10cdf6;}const a70_0x194ac4=a70_0x10cd;(function(_0x43e867,_0x4f1661){const _0x31dfce=a70_0x10cd,_0x14577e=_0x43e867();while(!![]){try{const _0x315481=-parseInt(_0x31dfce(0xf7))/0x1*(-parseInt(_0x31dfce(0xda))/0x2)+parseInt(_0x31dfce(0xe4))/0x3+parseInt(_0x31dfce(0xcf))/0x4*(parseInt(_0x31dfce(0xf1))/0x5)+-parseInt(_0x31dfce(0xdc))/0x6+parseInt(_0x31dfce(0xef))/0x7*(-parseInt(_0x31dfce(0xd3))/0x8)+parseInt(_0x31dfce(0xe6))/0x9*(parseInt(_0x31dfce(0xe1))/0xa)+-parseInt(_0x31dfce(0xcd))/0xb;if(_0x315481===_0x4f1661)break;else _0x14577e['push'](_0x14577e['shift']());}catch(_0x328946){_0x14577e['push'](_0x14577e['shift']());}}}(a70_0x745f,0xb6e69));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a70_0x194ac4(0xd7),'type':a70_0x194ac4(0xd1),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':'scope','type':a70_0x194ac4(0xd1),'description':a70_0x194ac4(0xeb),'enum':['all',a70_0x194ac4(0xe3),a70_0x194ac4(0xd2)]};export const PUSH_SCOPE_FLAG={'name':a70_0x194ac4(0xdf),'type':a70_0x194ac4(0xd1),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a70_0x194ac4(0xe3),'enum':[a70_0x194ac4(0xe3),a70_0x194ac4(0xd2)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a70_0x194ac4(0xd1),'description':a70_0x194ac4(0xf2),'enum':['all','personal',a70_0x194ac4(0xd2)]};export const LOCAL_FLAG={'name':a70_0x194ac4(0xd9),'type':a70_0x194ac4(0xe7),'description':a70_0x194ac4(0xdb)};function a70_0x745f(){const _0x210c5a=['force','type','19599250QvNFOp','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','144EiHwqn','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','string','company','40GNXRlk','number','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','code','confirm-warnings','local','942866jYJBdQ','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','2683632fJUlWP','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','name','scope','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','340gxpwTy','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','personal','2538033AyaoPd','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','71856NEMGYl','boolean','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','skill-code','diagram-file','version','101395ToFuyB','expected-diagram-revision','203015zPMDJy','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','source-fingerprint','project','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1JSZQuH','dir','Server-reported\x20SkillVersion\x20source\x20fingerprint','target'];a70_0x745f=function(){return _0x210c5a;};return a70_0x745f();}export const DIR_FLAG={'name':a70_0x194ac4(0xf8),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xf6)};export const DIAGRAM_FILE_FLAG={'name':a70_0x194ac4(0xed),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xe9)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a70_0x194ac4(0xec),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xea)};export const DIAGRAM_VERSION_FLAG={'name':a70_0x194ac4(0xee),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xd6)};export const DIAGRAM_SCOPE_FLAG={'name':a70_0x194ac4(0xdf),'type':a70_0x194ac4(0xd1),'required':!![],'enum':[a70_0x194ac4(0xe3),a70_0x194ac4(0xd2)],'description':a70_0x194ac4(0xdd)};export const SOURCE_FINGERPRINT_FLAG={'name':a70_0x194ac4(0xf3),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xf9),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a70_0x194ac4(0xf0),'type':a70_0x194ac4(0xd4),'required':!![],'description':a70_0x194ac4(0xf5)};export const CREATE_NAME_FLAG={'name':a70_0x194ac4(0xde),'type':a70_0x194ac4(0xd1),'required':!![],'description':a70_0x194ac4(0xe5),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a70_0x194ac4(0xd5)}};export const TYPE_FLAG={'name':a70_0x194ac4(0xcc),'type':a70_0x194ac4(0xd1),'description':a70_0x194ac4(0xce),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a70_0x194ac4(0xfa),'type':'string','description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a70_0x194ac4(0xfb),'type':a70_0x194ac4(0xe7),'description':a70_0x194ac4(0xe8)};export const PROJECT_TARGET_FLAG={'name':a70_0x194ac4(0xf4),'type':a70_0x194ac4(0xe7),'description':a70_0x194ac4(0xe2)};export const CONFIRM_WARNINGS_FLAG={'name':a70_0x194ac4(0xd8),'type':'boolean','description':a70_0x194ac4(0xe0)};export const STRICT_FLAG={'name':'strict','type':a70_0x194ac4(0xe7),'description':a70_0x194ac4(0xd0)};
1
+ const a70_0x3fd0ef=a70_0x35ab;(function(_0x33de74,_0x4f6e69){const _0x1f68a1=a70_0x35ab,_0x25a5df=_0x33de74();while(!![]){try{const _0x130082=parseInt(_0x1f68a1(0xf3))/0x1+parseInt(_0x1f68a1(0x103))/0x2*(parseInt(_0x1f68a1(0xfd))/0x3)+-parseInt(_0x1f68a1(0x111))/0x4*(parseInt(_0x1f68a1(0xfa))/0x5)+parseInt(_0x1f68a1(0xff))/0x6*(-parseInt(_0x1f68a1(0x107))/0x7)+parseInt(_0x1f68a1(0x102))/0x8+-parseInt(_0x1f68a1(0xf9))/0x9+-parseInt(_0x1f68a1(0x101))/0xa*(-parseInt(_0x1f68a1(0x10c))/0xb);if(_0x130082===_0x4f6e69)break;else _0x25a5df['push'](_0x25a5df['shift']());}catch(_0x30d879){_0x25a5df['push'](_0x25a5df['shift']());}}}(a70_0x2b24,0xd48df));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a70_0x2b24(){const _0x24e017=['dir','scope','code','20363vkmKrP','strict','Local\x20Skill\x20directory\x20containing\x20SKILL.md','confirm-warnings','target','11JKXBDV','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','version','project','1652876FMfIMg','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','name','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','skill-code','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','local','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','boolean','source-fingerprint','expected-diagram-revision','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','company','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','number','1317572LxMWTe','personal','all','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','type','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','10420425nSQQSl','10jqXvZu','string','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','331278JzbmQC','diagram-file','480wsMFOk','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','2916730eijOsp','10060072AtysIT','4FIfcvV'];a70_0x2b24=function(){return _0x24e017;};return a70_0x2b24();}export const CODE_FLAG={'name':a70_0x3fd0ef(0x106),'type':a70_0x3fd0ef(0xfb),'description':a70_0x3fd0ef(0x118)};export const SCOPE_FLAG={'name':a70_0x3fd0ef(0x105),'type':a70_0x3fd0ef(0xfb),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':['all','personal',a70_0x3fd0ef(0xf0)]};export const PUSH_SCOPE_FLAG={'name':a70_0x3fd0ef(0x105),'type':a70_0x3fd0ef(0xfb),'description':a70_0x3fd0ef(0xfc),'default':'personal','enum':[a70_0x3fd0ef(0xf4),a70_0x3fd0ef(0xf0)]};export const LIST_SCOPE_FLAG={'name':a70_0x3fd0ef(0x105),'type':a70_0x3fd0ef(0xfb),'description':a70_0x3fd0ef(0x113),'enum':[a70_0x3fd0ef(0xf5),a70_0x3fd0ef(0xf4),a70_0x3fd0ef(0xf0)]};export const LOCAL_FLAG={'name':a70_0x3fd0ef(0x119),'type':a70_0x3fd0ef(0xec),'description':a70_0x3fd0ef(0x115)};export const DIR_FLAG={'name':a70_0x3fd0ef(0x104),'type':'string','required':!![],'description':a70_0x3fd0ef(0x109)};export const DIAGRAM_FILE_FLAG={'name':a70_0x3fd0ef(0xfe),'type':'string','required':!![],'description':a70_0x3fd0ef(0x10d)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a70_0x3fd0ef(0x116),'type':a70_0x3fd0ef(0xfb),'required':!![],'description':a70_0x3fd0ef(0x10e)};export const DIAGRAM_VERSION_FLAG={'name':a70_0x3fd0ef(0x10f),'type':'string','required':!![],'description':a70_0x3fd0ef(0xf6)};export const DIAGRAM_SCOPE_FLAG={'name':a70_0x3fd0ef(0x105),'type':a70_0x3fd0ef(0xfb),'required':!![],'enum':['personal',a70_0x3fd0ef(0xf0)],'description':a70_0x3fd0ef(0xef)};export const SOURCE_FINGERPRINT_FLAG={'name':a70_0x3fd0ef(0xed),'type':a70_0x3fd0ef(0xfb),'required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a70_0x3fd0ef(0x117)}};function a70_0x35ab(_0x1d532f,_0x2ba8b0){_0x1d532f=_0x1d532f-0xec;const _0x2b2496=a70_0x2b24();let _0x35abc1=_0x2b2496[_0x1d532f];return _0x35abc1;}export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a70_0x3fd0ef(0xee),'type':a70_0x3fd0ef(0xf2),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a70_0x3fd0ef(0x114),'type':a70_0x3fd0ef(0xfb),'required':!![],'description':a70_0x3fd0ef(0x11b),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':a70_0x3fd0ef(0xf7),'type':a70_0x3fd0ef(0xfb),'description':a70_0x3fd0ef(0x100),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a70_0x3fd0ef(0x10b),'type':'string','description':a70_0x3fd0ef(0x112),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a70_0x3fd0ef(0xec),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':a70_0x3fd0ef(0x110),'type':a70_0x3fd0ef(0xec),'description':a70_0x3fd0ef(0xf8)};export const CONFIRM_WARNINGS_FLAG={'name':a70_0x3fd0ef(0x10a),'type':a70_0x3fd0ef(0xec),'description':a70_0x3fd0ef(0xf1)};export const STRICT_FLAG={'name':a70_0x3fd0ef(0x108),'type':a70_0x3fd0ef(0xec),'description':a70_0x3fd0ef(0x11a)};
@@ -1 +1 @@
1
- (function(_0x6fd4fc,_0x171767){const _0x5815a8=a71_0x1dda,_0x41b63f=_0x6fd4fc();while(!![]){try{const _0x465487=parseInt(_0x5815a8(0xc2))/0x1+-parseInt(_0x5815a8(0xbc))/0x2*(parseInt(_0x5815a8(0xbd))/0x3)+parseInt(_0x5815a8(0xc1))/0x4+-parseInt(_0x5815a8(0xbb))/0x5*(-parseInt(_0x5815a8(0xbf))/0x6)+parseInt(_0x5815a8(0xbe))/0x7*(parseInt(_0x5815a8(0xba))/0x8)+parseInt(_0x5815a8(0xc4))/0x9*(-parseInt(_0x5815a8(0xc0))/0xa)+-parseInt(_0x5815a8(0xc3))/0xb;if(_0x465487===_0x171767)break;else _0x41b63f['push'](_0x41b63f['shift']());}catch(_0xcdc2af){_0x41b63f['push'](_0x41b63f['shift']());}}}(a71_0x2517,0x3ca96));import{createCommand}from'./commands/create.js';function a71_0x2517(){const _0x2be712=['1823890wQaZcu','25260odoFJt','183759fiObLx','671979jBnKBb','9rYQbBS','8CKbeeo','5jENMvo','4DnvsFW','520731vrUmjT','2361779yPDAbR','1869786TnXzOa'];a71_0x2517=function(){return _0x2be712;};return a71_0x2517();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a71_0x1dda(_0x4dbce3,_0x5eadf9){_0x4dbce3=_0x4dbce3-0xba;const _0x251722=a71_0x2517();let _0x1ddac2=_0x251722[_0x4dbce3];return _0x1ddac2;}import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x1125a5,_0x2ea47c){const _0x1728fb=a71_0x4bd8,_0x1ca3c4=_0x1125a5();while(!![]){try{const _0x4b67c1=parseInt(_0x1728fb(0x90))/0x1*(-parseInt(_0x1728fb(0x86))/0x2)+parseInt(_0x1728fb(0x8b))/0x3+-parseInt(_0x1728fb(0x89))/0x4+parseInt(_0x1728fb(0x8f))/0x5*(-parseInt(_0x1728fb(0x87))/0x6)+parseInt(_0x1728fb(0x91))/0x7*(parseInt(_0x1728fb(0x8a))/0x8)+parseInt(_0x1728fb(0x8e))/0x9*(-parseInt(_0x1728fb(0x8c))/0xa)+-parseInt(_0x1728fb(0x8d))/0xb*(-parseInt(_0x1728fb(0x88))/0xc);if(_0x4b67c1===_0x2ea47c)break;else _0x1ca3c4['push'](_0x1ca3c4['shift']());}catch(_0x4b7185){_0x1ca3c4['push'](_0x1ca3c4['shift']());}}}(a71_0x416a,0x461e6));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 a71_0x416a(){const _0x1c6afa=['17344nGFapt','1356840GtFgpT','519290HKLHvr','3064369FhxeJu','45QwSqnP','10445rmYDCO','6sYVzGm','42teUNWQ','113358kKzuZL','1644lLswlj','60BRRltP','1595488MemFgK'];a71_0x416a=function(){return _0x1c6afa;};return a71_0x416a();}function a71_0x4bd8(_0x349881,_0x20e0f3){_0x349881=_0x349881-0x86;const _0x416a8a=a71_0x416a();let _0x4bd8f1=_0x416a8a[_0x349881];return _0x4bd8f1;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_0x4d4351,_0xeed5a0){var _0x418949=a72_0xacf2,_0x10c69a=_0x4d4351();while(!![]){try{var _0x381a7c=parseInt(_0x418949(0x1c6))/0x1+parseInt(_0x418949(0x1bd))/0x2*(-parseInt(_0x418949(0x1ba))/0x3)+-parseInt(_0x418949(0x1c4))/0x4*(-parseInt(_0x418949(0x1c3))/0x5)+parseInt(_0x418949(0x1c8))/0x6+parseInt(_0x418949(0x1c7))/0x7*(-parseInt(_0x418949(0x1c0))/0x8)+-parseInt(_0x418949(0x1bb))/0x9*(-parseInt(_0x418949(0x1cb))/0xa)+parseInt(_0x418949(0x1c1))/0xb;if(_0x381a7c===_0xeed5a0)break;else _0x10c69a['push'](_0x10c69a['shift']());}catch(_0x2ae55c){_0x10c69a['push'](_0x10c69a['shift']());}}}(a72_0x5517,0xd84d5));function a72_0xacf2(_0x452184,_0x3ab69d){_0x452184=_0x452184-0x1ba;var _0x551795=a72_0x5517();var _0xacf2=_0x551795[_0x452184];return _0xacf2;}function a72_0x5517(){var _0x32319f=['3214518ykPONv','string','path','79904KqOBsy','10007382JwJmLJ','isArray','4535oHFKmD','764lnCwjC','ossPath','887816pdoaSK','868NByGvp','1771692HYvYoA','some','length','30dJJvoV','3Peaccd','4396941bhEAEm','object'];a72_0x5517=function(){return _0x32319f;};return a72_0x5517();}export function isPackageBackedManifest(_0x4ec767){var _0x1ecaa0=a72_0xacf2;return!!_0x4ec767&&typeof _0x4ec767==='object'&&!Array[_0x1ecaa0(0x1c2)](_0x4ec767)&&typeof _0x4ec767[_0x1ecaa0(0x1c5)]===_0x1ecaa0(0x1be)&&_0x4ec767[_0x1ecaa0(0x1c5)][_0x1ecaa0(0x1ca)]>0x0&&Array['isArray'](_0x4ec767['files']);}export function isMultiFileManifest(_0x58256e){var _0x4ee245=a72_0xacf2;return!!_0x58256e&&typeof _0x58256e===_0x4ee245(0x1bc)&&!Array[_0x4ee245(0x1c2)](_0x58256e)&&Array['isArray'](_0x58256e['files'])&&_0x58256e['files'][_0x4ee245(0x1c9)](_0x66fb9a=>_0x66fb9a[_0x4ee245(0x1bf)]!=='SKILL.md');}
1
+ (function(_0x392b62,_0x58e5ca){var _0xd82ae6=a72_0x205c,_0x487b4f=_0x392b62();while(!![]){try{var _0x30e0dc=parseInt(_0xd82ae6(0xbc))/0x1+parseInt(_0xd82ae6(0xc5))/0x2+-parseInt(_0xd82ae6(0xc7))/0x3*(parseInt(_0xd82ae6(0xb7))/0x4)+-parseInt(_0xd82ae6(0xc1))/0x5*(-parseInt(_0xd82ae6(0xbe))/0x6)+parseInt(_0xd82ae6(0xc4))/0x7*(parseInt(_0xd82ae6(0xbd))/0x8)+parseInt(_0xd82ae6(0xbf))/0x9*(-parseInt(_0xd82ae6(0xc3))/0xa)+parseInt(_0xd82ae6(0xc0))/0xb*(parseInt(_0xd82ae6(0xb9))/0xc);if(_0x30e0dc===_0x58e5ca)break;else _0x487b4f['push'](_0x487b4f['shift']());}catch(_0x47c0e8){_0x487b4f['push'](_0x487b4f['shift']());}}}(a72_0x15ec,0x942d3));export function isPackageBackedManifest(_0x5dc9d8){var _0x147f10=a72_0x205c;return!!_0x5dc9d8&&typeof _0x5dc9d8===_0x147f10(0xc9)&&!Array[_0x147f10(0xba)](_0x5dc9d8)&&typeof _0x5dc9d8['ossPath']===_0x147f10(0xc8)&&_0x5dc9d8['ossPath'][_0x147f10(0xbb)]>0x0&&Array[_0x147f10(0xba)](_0x5dc9d8[_0x147f10(0xc6)]);}function a72_0x205c(_0x5ed977,_0x2937ea){_0x5ed977=_0x5ed977-0xb7;var _0x15ec50=a72_0x15ec();var _0x205c52=_0x15ec50[_0x5ed977];return _0x205c52;}function a72_0x15ec(){var _0x510e83=['18gRCZOu','82179kAxbin','11IaMalV','680155ANYaGP','path','1130fhblJd','1756307tAqVxB','676602DVFeTE','files','15jLKLSj','string','object','184380Tudksx','some','1934664ntHWhA','isArray','length','710692eHPUKN','8pKVIYL'];a72_0x15ec=function(){return _0x510e83;};return a72_0x15ec();}export function isMultiFileManifest(_0x1be81b){var _0x5d855f=a72_0x205c;return!!_0x1be81b&&typeof _0x1be81b==='object'&&!Array[_0x5d855f(0xba)](_0x1be81b)&&Array[_0x5d855f(0xba)](_0x1be81b['files'])&&_0x1be81b[_0x5d855f(0xc6)][_0x5d855f(0xb8)](_0x502807=>_0x502807[_0x5d855f(0xc2)]!=='SKILL.md');}
@@ -1 +1 @@
1
- (function(_0x23e6c2,_0x44349b){const _0xad5dc8=a73_0x46f4,_0x3f5cfa=_0x23e6c2();while(!![]){try{const _0x45171e=-parseInt(_0xad5dc8(0x182))/0x1+-parseInt(_0xad5dc8(0x188))/0x2+parseInt(_0xad5dc8(0x16b))/0x3*(-parseInt(_0xad5dc8(0x150))/0x4)+parseInt(_0xad5dc8(0x158))/0x5*(-parseInt(_0xad5dc8(0x152))/0x6)+parseInt(_0xad5dc8(0x15c))/0x7*(-parseInt(_0xad5dc8(0x17c))/0x8)+parseInt(_0xad5dc8(0x15f))/0x9*(-parseInt(_0xad5dc8(0x15b))/0xa)+parseInt(_0xad5dc8(0x14e))/0xb*(parseInt(_0xad5dc8(0x153))/0xc);if(_0x45171e===_0x44349b)break;else _0x3f5cfa['push'](_0x3f5cfa['shift']());}catch(_0x40945f){_0x3f5cfa['push'](_0x3f5cfa['shift']());}}}(a73_0x29fe,0xd6816));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';function a73_0x29fe(){const _0x58129e=['109249CjsEFF','savedSkill','appCode','2023533EfqpTb','files','personal','bool','warnings','POST','dir','confirm-warnings','remoteForPreflight','Personal','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','skillCode','2358SuPWxO','Created\x20personal\x20Skill\x20','existing','diagramValidated','validation','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','unknown','NAMESPACE_ONLY','resolvedSlug','\x20version\x20','errors','\x20for\x20review','\x20has\x20scope=\x22','diagram-file','../../skills/runtime-skill-sync.js','confirmWarnings','PRIVATE','248SfEWQy','payload','input','publishInput','accessKey','submitted','554727uOCGIK','status','metadata','(unknown)','scope','authRequired','2796414BPVdVF','4416929VBiSui','Submitted\x20company\x20Skill\x20','7088NgAbWp','valid','5004996TvNQot','204dAwOuC','company','version','Company','str','10sPfUFc','/publish/validate','\x20Skill\x20','20WpbTdC'];a73_0x29fe=function(){return _0x58129e;};return a73_0x29fe();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';function a73_0x46f4(_0x1a3dc8,_0x7b0c6e){_0x1a3dc8=_0x1a3dc8-0x14e;const _0x29fed9=a73_0x29fe();let _0x46f40a=_0x29fed9[_0x1a3dc8];return _0x46f40a;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x192bdf){const _0x70c1c4=a73_0x46f4,{getRuntimeSkillByCode:_0x53858f,validateRuntimeSkillPublish:_0x49cca4}=await import('../../core/api-client.js'),{readPushDirectory:_0x19d00e,resolvePushDirectoryIdentity:_0x4d5ba9}=await import(_0x70c1c4(0x179));if(!_0x192bdf[_0x70c1c4(0x180)])throw CliErrors[_0x70c1c4(0x187)]();const _0x4b16a5=resolvePushScope(_0x192bdf),_0x374476=validateSkillDirectory(_0x192bdf[_0x70c1c4(0x157)](_0x70c1c4(0x165)));throwIfSkillValidationFailed(_0x374476);const {diagram:_0x499e0e,sourceFilePath:_0x322d18}=await readRequiredSkillDiagramInput(_0x192bdf[_0x70c1c4(0x157)](_0x70c1c4(0x178))),_0x19ef63=diagramPackageExclusion(_0x322d18),_0x35b4fc=_0x4d5ba9(_0x374476['dir'],_0x192bdf['appCode'],remoteFirstMetadataOptions()),_0xa75c32=await _0x53858f(_0x192bdf[_0x70c1c4(0x15e)],_0x35b4fc[_0x70c1c4(0x16a)]);throwIfBuiltinPushTarget(_0xa75c32);if(_0x4b16a5===_0x70c1c4(0x154)){const _0x29f499=_0x19d00e(_0x374476[_0x70c1c4(0x165)],_0x192bdf[_0x70c1c4(0x15e)],{...remoteMissingCompanyReadOptions(),..._0x19ef63}),_0x54767d=await _0x49cca4(_0x192bdf[_0x70c1c4(0x15e)],withDiagram(_0x29f499['input'],_0x499e0e),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x70c1c4(0x164),'url':'/api/cli/v1/skills/'+_0x192bdf[_0x70c1c4(0x15e)]+_0x70c1c4(0x159),'body':{'skillCode':_0x29f499[_0x70c1c4(0x16a)],'visibility':_0x70c1c4(0x172),'valid':_0x54767d['valid'],'errors':_0x54767d[_0x70c1c4(0x175)],'warnings':_0x54767d[_0x70c1c4(0x163)],'resolvedSlug':_0x54767d['resolvedSlug'],'resolvedVersion':_0x54767d['resolvedVersion'],'diagramValidated':_0x54767d[_0x70c1c4(0x16e)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0xa75c32&&_0xa75c32[_0x70c1c4(0x186)]!==_0x70c1c4(0x161))throw CliErrors[_0x70c1c4(0x16f)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x35b4fc[_0x70c1c4(0x16a)]+'\x20has\x20scope=\x22'+(_0xa75c32[_0x70c1c4(0x186)]??'unknown')+'\x22.');const _0x145fed=_0x19d00e(_0x374476[_0x70c1c4(0x165)],_0x192bdf['appCode'],{..._0xa75c32?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x19ef63}),_0x1e65a7=await _0x49cca4(_0x192bdf[_0x70c1c4(0x15e)],withDiagram(_0x145fed[_0x70c1c4(0x17e)],_0x499e0e),{'visibility':'PRIVATE'});return{'method':_0x70c1c4(0x164),'url':'/api/cli/v1/skills/'+_0x192bdf['appCode']+_0x70c1c4(0x159),'body':{'skillCode':_0x145fed[_0x70c1c4(0x16a)],'visibility':_0x70c1c4(0x17b),'valid':_0x1e65a7[_0x70c1c4(0x151)],'errors':_0x1e65a7[_0x70c1c4(0x175)],'warnings':_0x1e65a7['warnings'],'resolvedSlug':_0x1e65a7[_0x70c1c4(0x173)],'resolvedVersion':_0x1e65a7['resolvedVersion'],'diagramValidated':_0x1e65a7[_0x70c1c4(0x16e)]},'description':_0x70c1c4(0x169)};}export async function skillPushExecute(_0x206347){const _0x50decc=a73_0x46f4,{createPersonalRuntimeSkill:_0x43c8c7,downloadRuntimeSkillPackage:_0x1d584a,getRuntimeSkillByCode:_0x45963e,publishCompanyRuntimeSkill:_0x12e863,updatePersonalRuntimeSkill:_0x111e50,validateRuntimeSkillPublish:_0x2ba5d2}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x31e72b,verifyRuntimeSkillBundle:_0x22848d,readPushDirectory:_0x3241ac,refreshPushDirectoryMetadataFromRemote:_0x28aa9e,recordPushedRuntimeSkill:_0x32fc69,resolvePushDirectoryIdentity:_0x342568}=await import(_0x50decc(0x179));if(!_0x206347[_0x50decc(0x180)])throw CliErrors[_0x50decc(0x187)]();const _0x4c01f4=resolvePushScope(_0x206347),_0x3c980d=_0x206347['bool'](_0x50decc(0x166))||_0x206347[_0x50decc(0x162)](_0x50decc(0x17a)),_0x3b8b86=validateSkillDirectory(_0x206347['str']('dir'));throwIfSkillValidationFailed(_0x3b8b86);const {diagram:_0x16c267,sourceFilePath:_0x78e3c7}=await readRequiredSkillDiagramInput(_0x206347[_0x50decc(0x157)](_0x50decc(0x178))),_0x1ea20e=diagramPackageExclusion(_0x78e3c7),_0x4cce78=_0x3b8b86[_0x50decc(0x165)];let _0x3085cb;if(_0x4c01f4===_0x50decc(0x154)){const _0x22733c=_0x342568(_0x4cce78,_0x206347['appCode'],remoteFirstMetadataOptions()),_0x21b676=await _0x45963e(_0x206347['appCode'],_0x22733c[_0x50decc(0x16a)]);throwIfBuiltinPushTarget(_0x21b676);if(_0x21b676)_0x28aa9e(_0x4cce78,_0x21b676,_0x206347['appCode']);const _0x202e9e=_0x3241ac(_0x4cce78,_0x206347[_0x50decc(0x15e)],{..._0x21b676?{'targetScope':_0x50decc(0x154),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1ea20e});_0x3085cb={'scope':_0x50decc(0x154),'payload':_0x202e9e,'publishInput':withDiagram(_0x202e9e[_0x50decc(0x17e)],_0x16c267),'remoteForPreflight':_0x21b676,'warnings':[]};}else{const _0x416b78=_0x206347['str']('appcode')['trim'](),_0x446a17=Boolean(_0x416b78),_0x1f1f0f=allowRetargetArgs(_0x446a17),_0x414e12=_0x342568(_0x4cce78,_0x206347[_0x50decc(0x15e)],{...remoteFirstMetadataOptions(),..._0x1f1f0f[0x0]}),_0x362135=await _0x45963e(_0x206347[_0x50decc(0x15e)],_0x414e12['skillCode']);throwIfBuiltinPushTarget(_0x362135);if(_0x362135){if(_0x362135[_0x50decc(0x186)]!==_0x50decc(0x161)){if(_0x446a17)throw CliErrors[_0x50decc(0x16f)](_0x50decc(0x170)+_0x414e12[_0x50decc(0x16a)]+_0x50decc(0x177)+(_0x362135[_0x50decc(0x186)]??_0x50decc(0x171))+'\x22.');_0x28aa9e(_0x4cce78,_0x362135,_0x206347['appCode']);}else!_0x446a17&&_0x28aa9e(_0x4cce78,_0x362135,_0x206347[_0x50decc(0x15e)]);}const _0x2e389c=_0x3241ac(_0x4cce78,_0x206347['appCode'],{..._0x362135?remotePersonalReadOptions(_0x446a17,_0x1f1f0f[0x0]):remoteMissingPersonalReadOptions(_0x1f1f0f[0x0]),..._0x1ea20e}),_0x430d98=_0x362135?.[_0x50decc(0x186)]===_0x50decc(0x161)&&_0x362135[_0x50decc(0x16a)]===_0x2e389c[_0x50decc(0x16a)]?_0x362135:undefined,_0x20cf93=_0x446a17&&_0x430d98?withRetargetExistingMetadata(_0x2e389c[_0x50decc(0x17e)],_0x430d98,{'preferInputSkillName':Boolean(_0x2e389c['frontmatterDisplayName'])}):_0x2e389c[_0x50decc(0x17e)],_0x3eb336=_0x446a17?buildRetargetWarning(_0x414e12[_0x50decc(0x184)],_0x206347[_0x50decc(0x15e)]):[];_0x3085cb={'scope':_0x50decc(0x161),'payload':_0x2e389c,'publishInput':withDiagram(_0x20cf93,_0x16c267),'remoteForPreflight':_0x430d98,'existing':_0x430d98,'warnings':[..._0x3b8b86[_0x50decc(0x163)],..._0x3eb336]};}const _0x4ee9d7=await runRemoteContentPreflight({'scope':_0x3085cb[_0x50decc(0x186)],'remote':_0x3085cb[_0x50decc(0x167)],'publishInput':_0x3085cb[_0x50decc(0x17f)],'skillCode':_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],'appCode':_0x206347[_0x50decc(0x15e)],'downloadRuntimeSkillPackage':_0x1d584a,'verifyRuntimeSkillBundle':_0x22848d});if(_0x4ee9d7[_0x50decc(0x183)]==='identical')return _0x3085cb[_0x50decc(0x186)]===_0x50decc(0x154)?_0x32fc69(_0x4cce78,_0x4ee9d7[_0x50decc(0x15d)],_0x206347['appCode'],{'scope':_0x50decc(0x154)}):_0x32fc69(_0x4cce78,_0x4ee9d7['savedSkill'],_0x206347[_0x50decc(0x15e)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4ee9d7[_0x50decc(0x15d)]),'scope':_0x3085cb[_0x50decc(0x186)],..._0x3085cb[_0x50decc(0x186)]===_0x50decc(0x161)?{'warnings':_0x3085cb['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x3085cb[_0x50decc(0x186)])+_0x50decc(0x15a)+_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x3085cb[_0x50decc(0x186)]===_0x50decc(0x154)){const _0x18b086=await _0x2ba5d2(_0x206347[_0x50decc(0x15e)],_0x3085cb[_0x50decc(0x17f)],{'visibility':_0x50decc(0x172)});throwIfPublishValidationFailed(_0x50decc(0x154),_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],_0x18b086),throwIfUnconfirmedPublishWarnings(_0x50decc(0x154),_0x3085cb['payload'][_0x50decc(0x16a)],_0x18b086[_0x50decc(0x163)],_0x3c980d);const _0x409b6f=await _0x12e863(_0x206347[_0x50decc(0x15e)],_0x3085cb[_0x50decc(0x17f)],{'confirmWarnings':_0x3c980d});return _0x32fc69(_0x4cce78,{..._0x409b6f,'files':_0x3085cb[_0x50decc(0x17f)]['files']},_0x206347[_0x50decc(0x15e)],{'scope':_0x50decc(0x154)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x409b6f),'scope':_0x50decc(0x154),'reviewState':_0x50decc(0x181),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x18b086[_0x50decc(0x163)]}},'message':_0x50decc(0x14f)+_0x3085cb[_0x50decc(0x17d)]['skillCode']+_0x50decc(0x174)+(_0x409b6f[_0x50decc(0x155)]??_0x50decc(0x185))+_0x50decc(0x176)};}const _0x3b0e85=await _0x2ba5d2(_0x206347['appCode'],_0x3085cb[_0x50decc(0x17f)],{'visibility':_0x50decc(0x17b)});throwIfPublishValidationFailed(_0x50decc(0x161),_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],_0x3b0e85),throwIfUnconfirmedPublishWarnings(_0x50decc(0x161),_0x3085cb[_0x50decc(0x17d)]['skillCode'],_0x3b0e85[_0x50decc(0x163)],_0x3c980d);const _0x48394a={'confirmWarnings':_0x3c980d},_0x31aa21=_0x3085cb[_0x50decc(0x16d)]?await _0x111e50(_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],_0x206347[_0x50decc(0x15e)],_0x3085cb[_0x50decc(0x17f)],_0x48394a):await _0x43c8c7(_0x206347[_0x50decc(0x15e)],_0x3085cb[_0x50decc(0x17f)],_0x48394a);let _0x4b9660=_0x31aa21;if(isMultiFileManifest(_0x3085cb[_0x50decc(0x17f)][_0x50decc(0x160)])){const _0x150b25=await _0x1d584a(_0x50decc(0x161),_0x31aa21[_0x50decc(0x16a)]||_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],_0x206347[_0x50decc(0x15e)]);_0x22848d(_0x3085cb[_0x50decc(0x17f)]['files'],_0x150b25),_0x4b9660={..._0x31aa21,'files':_0x3085cb[_0x50decc(0x17f)][_0x50decc(0x160)]};}else{if(isPackageBackedManifest(_0x31aa21['files'])){const _0xed8a00=await _0x1d584a(_0x50decc(0x161),_0x31aa21[_0x50decc(0x16a)]||_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)],_0x206347['appCode']);_0x31e72b(_0x31aa21[_0x50decc(0x160)],_0xed8a00);}}return _0x32fc69(_0x4cce78,_0x4b9660,_0x206347[_0x50decc(0x15e)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x31aa21),'warnings':_0x3085cb[_0x50decc(0x163)],'validation':{'warnings':_0x3b0e85[_0x50decc(0x163)]},'diagramBound':!![]},'message':_0x3085cb[_0x50decc(0x16d)]?'Updated\x20personal\x20Skill\x20'+_0x3085cb[_0x50decc(0x17d)]['skillCode']:_0x50decc(0x16c)+_0x3085cb[_0x50decc(0x17d)][_0x50decc(0x16a)]};}function scopeLabel(_0x2687c3){const _0xb937d0=a73_0x46f4;return _0x2687c3===_0xb937d0(0x154)?_0xb937d0(0x156):_0xb937d0(0x168);}function withDiagram(_0x368e5c,_0x1152ab){return{..._0x368e5c,'diagram':_0x1152ab};}function diagramPackageExclusion(_0xe86984){return _0xe86984?{'excludedFilePaths':[_0xe86984]}:{};}
1
+ (function(_0x259929,_0x181602){const _0x127e42=a73_0x4582,_0x526c7f=_0x259929();while(!![]){try{const _0x13cd91=parseInt(_0x127e42(0x8f))/0x1*(parseInt(_0x127e42(0x9c))/0x2)+-parseInt(_0x127e42(0xa8))/0x3+parseInt(_0x127e42(0xb6))/0x4+-parseInt(_0x127e42(0xa6))/0x5+-parseInt(_0x127e42(0x86))/0x6*(-parseInt(_0x127e42(0xac))/0x7)+parseInt(_0x127e42(0x8a))/0x8*(-parseInt(_0x127e42(0xbf))/0x9)+-parseInt(_0x127e42(0x90))/0xa*(-parseInt(_0x127e42(0xb3))/0xb);if(_0x13cd91===_0x181602)break;else _0x526c7f['push'](_0x526c7f['shift']());}catch(_0x1ab140){_0x526c7f['push'](_0x526c7f['shift']());}}}(a73_0x2389,0xa7f52));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a73_0x2389(){const _0x4594a0=['NAMESPACE_ONLY','resolvedVersion','561493mNnNpy','932810dKGdDH','scope','appCode','\x20version\x20','validation','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','input','Personal','remoteForPreflight','version','company','unknown','2qFDCDO','bool','skillCode','appcode','trim','\x20has\x20scope=\x22','existing','dir','confirm-warnings','resolvedSlug','6231570zSYSUv','POST','1874313IPDLau','../../core/api-client.js','files','metadata','140189HRomPg','authRequired','Company','confirmWarnings','publishInput','payload','str','264bqqmTW','Updated\x20personal\x20Skill\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','3761656HDOoQm','diagram-file','Submitted\x20company\x20Skill\x20','frontmatterDisplayName','personal','/api/cli/v1/skills/','PRIVATE','../../skills/runtime-skill-sync.js','(unknown)','9dxgaZQ','errors','/publish/validate','\x20Skill\x20','savedSkill','diagramValidated','6IbvzgF','status','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','warnings','9613112vLVkKb','submitted','valid'];a73_0x2389=function(){return _0x4594a0;};return a73_0x2389();}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(_0x37599c){const _0x21f1d8=a73_0x4582,{getRuntimeSkillByCode:_0x1a10ad,validateRuntimeSkillPublish:_0x45d553}=await import(_0x21f1d8(0xa9)),{readPushDirectory:_0x424523,resolvePushDirectoryIdentity:_0x15e240}=await import('../../skills/runtime-skill-sync.js');if(!_0x37599c['accessKey'])throw CliErrors[_0x21f1d8(0xad)]();const _0x99bdb7=resolvePushScope(_0x37599c),_0x52f364=validateSkillDirectory(_0x37599c['str'](_0x21f1d8(0xa3)));throwIfSkillValidationFailed(_0x52f364);const {diagram:_0x4775e1,sourceFilePath:_0x4128ca}=await readRequiredSkillDiagramInput(_0x37599c[_0x21f1d8(0xb2)](_0x21f1d8(0xb7))),_0x2b2d76=diagramPackageExclusion(_0x4128ca),_0x3a14df=_0x15e240(_0x52f364[_0x21f1d8(0xa3)],_0x37599c[_0x21f1d8(0x92)],remoteFirstMetadataOptions()),_0x151fcc=await _0x1a10ad(_0x37599c[_0x21f1d8(0x92)],_0x3a14df[_0x21f1d8(0x9e)]);throwIfBuiltinPushTarget(_0x151fcc);if(_0x99bdb7===_0x21f1d8(0x9a)){const _0x2b8c05=_0x424523(_0x52f364[_0x21f1d8(0xa3)],_0x37599c['appCode'],{...remoteMissingCompanyReadOptions(),..._0x2b2d76}),_0x33768a=await _0x45d553(_0x37599c['appCode'],withDiagram(_0x2b8c05[_0x21f1d8(0x96)],_0x4775e1),{'visibility':_0x21f1d8(0x8d)});return{'method':_0x21f1d8(0xa7),'url':_0x21f1d8(0xbb)+_0x37599c[_0x21f1d8(0x92)]+'/publish/validate','body':{'skillCode':_0x2b8c05['skillCode'],'visibility':_0x21f1d8(0x8d),'valid':_0x33768a[_0x21f1d8(0x8c)],'errors':_0x33768a[_0x21f1d8(0xc0)],'warnings':_0x33768a['warnings'],'resolvedSlug':_0x33768a[_0x21f1d8(0xa5)],'resolvedVersion':_0x33768a['resolvedVersion'],'diagramValidated':_0x33768a[_0x21f1d8(0x85)]},'description':_0x21f1d8(0x95)};}if(_0x151fcc&&_0x151fcc[_0x21f1d8(0x91)]!==_0x21f1d8(0xba))throw CliErrors[_0x21f1d8(0x94)](_0x21f1d8(0xb5)+_0x3a14df['skillCode']+_0x21f1d8(0xa1)+(_0x151fcc[_0x21f1d8(0x91)]??_0x21f1d8(0x9b))+'\x22.');const _0xc7da3b=_0x424523(_0x52f364[_0x21f1d8(0xa3)],_0x37599c[_0x21f1d8(0x92)],{..._0x151fcc?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x2b2d76}),_0xfd8e44=await _0x45d553(_0x37599c[_0x21f1d8(0x92)],withDiagram(_0xc7da3b['input'],_0x4775e1),{'visibility':'PRIVATE'});return{'method':_0x21f1d8(0xa7),'url':_0x21f1d8(0xbb)+_0x37599c[_0x21f1d8(0x92)]+_0x21f1d8(0xc1),'body':{'skillCode':_0xc7da3b['skillCode'],'visibility':_0x21f1d8(0xbc),'valid':_0xfd8e44[_0x21f1d8(0x8c)],'errors':_0xfd8e44[_0x21f1d8(0xc0)],'warnings':_0xfd8e44['warnings'],'resolvedSlug':_0xfd8e44[_0x21f1d8(0xa5)],'resolvedVersion':_0xfd8e44[_0x21f1d8(0x8e)],'diagramValidated':_0xfd8e44['diagramValidated']},'description':_0x21f1d8(0x88)};}export async function skillPushExecute(_0x1ffa81){const _0x141643=a73_0x4582,{createPersonalRuntimeSkill:_0x42a667,downloadRuntimeSkillPackage:_0x1dcb6c,getRuntimeSkillByCode:_0xece0d3,publishCompanyRuntimeSkill:_0xd7d10f,updatePersonalRuntimeSkill:_0x44ff2a,validateRuntimeSkillPublish:_0x375297}=await import(_0x141643(0xa9)),{verifyRuntimeSkillPackage:_0x5d2f78,verifyRuntimeSkillBundle:_0x457c68,readPushDirectory:_0x7e11f4,refreshPushDirectoryMetadataFromRemote:_0x453f3b,recordPushedRuntimeSkill:_0x546278,resolvePushDirectoryIdentity:_0x32ef91}=await import(_0x141643(0xbd));if(!_0x1ffa81['accessKey'])throw CliErrors[_0x141643(0xad)]();const _0x423f85=resolvePushScope(_0x1ffa81),_0x7661d6=_0x1ffa81[_0x141643(0x9d)](_0x141643(0xa4))||_0x1ffa81['bool'](_0x141643(0xaf)),_0x41cb13=validateSkillDirectory(_0x1ffa81['str'](_0x141643(0xa3)));throwIfSkillValidationFailed(_0x41cb13);const {diagram:_0x5348e5,sourceFilePath:_0x1c23ad}=await readRequiredSkillDiagramInput(_0x1ffa81['str'](_0x141643(0xb7))),_0x83735=diagramPackageExclusion(_0x1c23ad),_0x529b0d=_0x41cb13['dir'];let _0x2843dd;if(_0x423f85===_0x141643(0x9a)){const _0x48ede2=_0x32ef91(_0x529b0d,_0x1ffa81['appCode'],remoteFirstMetadataOptions()),_0x41dee2=await _0xece0d3(_0x1ffa81[_0x141643(0x92)],_0x48ede2[_0x141643(0x9e)]);throwIfBuiltinPushTarget(_0x41dee2);if(_0x41dee2)_0x453f3b(_0x529b0d,_0x41dee2,_0x1ffa81[_0x141643(0x92)]);const _0xf335ba=_0x7e11f4(_0x529b0d,_0x1ffa81[_0x141643(0x92)],{..._0x41dee2?{'targetScope':_0x141643(0x9a),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x83735});_0x2843dd={'scope':_0x141643(0x9a),'payload':_0xf335ba,'publishInput':withDiagram(_0xf335ba['input'],_0x5348e5),'remoteForPreflight':_0x41dee2,'warnings':[]};}else{const _0xb5a5dc=_0x1ffa81[_0x141643(0xb2)](_0x141643(0x9f))[_0x141643(0xa0)](),_0x2ef345=Boolean(_0xb5a5dc),_0x4d5aa2=allowRetargetArgs(_0x2ef345),_0x7d96b1=_0x32ef91(_0x529b0d,_0x1ffa81[_0x141643(0x92)],{...remoteFirstMetadataOptions(),..._0x4d5aa2[0x0]}),_0x1df77c=await _0xece0d3(_0x1ffa81['appCode'],_0x7d96b1['skillCode']);throwIfBuiltinPushTarget(_0x1df77c);if(_0x1df77c){if(_0x1df77c['scope']!==_0x141643(0xba)){if(_0x2ef345)throw CliErrors[_0x141643(0x94)](_0x141643(0xb5)+_0x7d96b1[_0x141643(0x9e)]+'\x20has\x20scope=\x22'+(_0x1df77c[_0x141643(0x91)]??_0x141643(0x9b))+'\x22.');_0x453f3b(_0x529b0d,_0x1df77c,_0x1ffa81['appCode']);}else!_0x2ef345&&_0x453f3b(_0x529b0d,_0x1df77c,_0x1ffa81[_0x141643(0x92)]);}const _0x1d337e=_0x7e11f4(_0x529b0d,_0x1ffa81[_0x141643(0x92)],{..._0x1df77c?remotePersonalReadOptions(_0x2ef345,_0x4d5aa2[0x0]):remoteMissingPersonalReadOptions(_0x4d5aa2[0x0]),..._0x83735}),_0x3a3467=_0x1df77c?.[_0x141643(0x91)]===_0x141643(0xba)&&_0x1df77c[_0x141643(0x9e)]===_0x1d337e[_0x141643(0x9e)]?_0x1df77c:undefined,_0x316aab=_0x2ef345&&_0x3a3467?withRetargetExistingMetadata(_0x1d337e[_0x141643(0x96)],_0x3a3467,{'preferInputSkillName':Boolean(_0x1d337e[_0x141643(0xb9)])}):_0x1d337e[_0x141643(0x96)],_0x52b7fd=_0x2ef345?buildRetargetWarning(_0x7d96b1[_0x141643(0xab)],_0x1ffa81['appCode']):[];_0x2843dd={'scope':_0x141643(0xba),'payload':_0x1d337e,'publishInput':withDiagram(_0x316aab,_0x5348e5),'remoteForPreflight':_0x3a3467,'existing':_0x3a3467,'warnings':[..._0x41cb13[_0x141643(0x89)],..._0x52b7fd]};}const _0x277f40=await runRemoteContentPreflight({'scope':_0x2843dd['scope'],'remote':_0x2843dd[_0x141643(0x98)],'publishInput':_0x2843dd[_0x141643(0xb0)],'skillCode':_0x2843dd['payload'][_0x141643(0x9e)],'appCode':_0x1ffa81[_0x141643(0x92)],'downloadRuntimeSkillPackage':_0x1dcb6c,'verifyRuntimeSkillBundle':_0x457c68});if(_0x277f40[_0x141643(0x87)]==='identical')return _0x2843dd['scope']===_0x141643(0x9a)?_0x546278(_0x529b0d,_0x277f40['savedSkill'],_0x1ffa81[_0x141643(0x92)],{'scope':'company'}):_0x546278(_0x529b0d,_0x277f40[_0x141643(0x84)],_0x1ffa81['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x277f40[_0x141643(0x84)]),'scope':_0x2843dd['scope'],..._0x2843dd[_0x141643(0x91)]==='personal'?{'warnings':_0x2843dd[_0x141643(0x89)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x2843dd['scope'])+_0x141643(0x83)+_0x2843dd['payload']['skillCode']+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x2843dd['scope']===_0x141643(0x9a)){const _0x3a21cd=await _0x375297(_0x1ffa81[_0x141643(0x92)],_0x2843dd[_0x141643(0xb0)],{'visibility':_0x141643(0x8d)});throwIfPublishValidationFailed(_0x141643(0x9a),_0x2843dd[_0x141643(0xb1)][_0x141643(0x9e)],_0x3a21cd),throwIfUnconfirmedPublishWarnings(_0x141643(0x9a),_0x2843dd[_0x141643(0xb1)][_0x141643(0x9e)],_0x3a21cd['warnings'],_0x7661d6);const _0x22f7a3=await _0xd7d10f(_0x1ffa81[_0x141643(0x92)],_0x2843dd[_0x141643(0xb0)],{'confirmWarnings':_0x7661d6});return _0x546278(_0x529b0d,{..._0x22f7a3,'files':_0x2843dd[_0x141643(0xb0)][_0x141643(0xaa)]},_0x1ffa81[_0x141643(0x92)],{'scope':_0x141643(0x9a)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x22f7a3),'scope':_0x141643(0x9a),'reviewState':_0x141643(0x8b),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x3a21cd[_0x141643(0x89)]}},'message':_0x141643(0xb8)+_0x2843dd['payload'][_0x141643(0x9e)]+_0x141643(0x93)+(_0x22f7a3[_0x141643(0x99)]??_0x141643(0xbe))+'\x20for\x20review'};}const _0x5662f1=await _0x375297(_0x1ffa81[_0x141643(0x92)],_0x2843dd['publishInput'],{'visibility':_0x141643(0xbc)});throwIfPublishValidationFailed('personal',_0x2843dd[_0x141643(0xb1)]['skillCode'],_0x5662f1),throwIfUnconfirmedPublishWarnings(_0x141643(0xba),_0x2843dd[_0x141643(0xb1)]['skillCode'],_0x5662f1['warnings'],_0x7661d6);const _0x465419={'confirmWarnings':_0x7661d6},_0x2a5b16=_0x2843dd[_0x141643(0xa2)]?await _0x44ff2a(_0x2843dd['payload']['skillCode'],_0x1ffa81[_0x141643(0x92)],_0x2843dd[_0x141643(0xb0)],_0x465419):await _0x42a667(_0x1ffa81['appCode'],_0x2843dd[_0x141643(0xb0)],_0x465419);let _0x3239b5=_0x2a5b16;if(isMultiFileManifest(_0x2843dd[_0x141643(0xb0)][_0x141643(0xaa)])){const _0x1128ca=await _0x1dcb6c(_0x141643(0xba),_0x2a5b16['skillCode']||_0x2843dd[_0x141643(0xb1)][_0x141643(0x9e)],_0x1ffa81['appCode']);_0x457c68(_0x2843dd[_0x141643(0xb0)][_0x141643(0xaa)],_0x1128ca),_0x3239b5={..._0x2a5b16,'files':_0x2843dd['publishInput'][_0x141643(0xaa)]};}else{if(isPackageBackedManifest(_0x2a5b16[_0x141643(0xaa)])){const _0x58548b=await _0x1dcb6c(_0x141643(0xba),_0x2a5b16[_0x141643(0x9e)]||_0x2843dd['payload'][_0x141643(0x9e)],_0x1ffa81['appCode']);_0x5d2f78(_0x2a5b16[_0x141643(0xaa)],_0x58548b);}}return _0x546278(_0x529b0d,_0x3239b5,_0x1ffa81[_0x141643(0x92)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2a5b16),'warnings':_0x2843dd['warnings'],'validation':{'warnings':_0x5662f1[_0x141643(0x89)]},'diagramBound':!![]},'message':_0x2843dd['existing']?_0x141643(0xb4)+_0x2843dd[_0x141643(0xb1)]['skillCode']:'Created\x20personal\x20Skill\x20'+_0x2843dd[_0x141643(0xb1)][_0x141643(0x9e)]};}function a73_0x4582(_0x132841,_0xc8f76b){_0x132841=_0x132841-0x83;const _0x2389be=a73_0x2389();let _0x458247=_0x2389be[_0x132841];return _0x458247;}function scopeLabel(_0x382a8e){const _0x18fef4=a73_0x4582;return _0x382a8e===_0x18fef4(0x9a)?_0x18fef4(0xae):_0x18fef4(0x97);}function withDiagram(_0x1db308,_0x506950){return{..._0x1db308,'diagram':_0x506950};}function diagramPackageExclusion(_0x1f48f3){return _0x1f48f3?{'excludedFilePaths':[_0x1f48f3]}:{};}
@@ -1 +1 @@
1
- (function(_0x4a16d9,_0x3019e1){const _0x17aeba=a74_0x5383,_0x7c699b=_0x4a16d9();while(!![]){try{const _0x5d637c=-parseInt(_0x17aeba(0xaa))/0x1*(parseInt(_0x17aeba(0xce))/0x2)+parseInt(_0x17aeba(0xc3))/0x3*(-parseInt(_0x17aeba(0xc1))/0x4)+-parseInt(_0x17aeba(0xb1))/0x5+parseInt(_0x17aeba(0xae))/0x6*(-parseInt(_0x17aeba(0xc7))/0x7)+parseInt(_0x17aeba(0xc9))/0x8+-parseInt(_0x17aeba(0xac))/0x9*(-parseInt(_0x17aeba(0xa7))/0xa)+parseInt(_0x17aeba(0xa6))/0xb;if(_0x5d637c===_0x3019e1)break;else _0x7c699b['push'](_0x7c699b['shift']());}catch(_0x20cbad){_0x7c699b['push'](_0x7c699b['shift']());}}}(a74_0x2d91,0x8a75d));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x37e0c6){const _0x74c653=a74_0x5383,_0x10a215=_0x37e0c6['str']('scope')||'personal';if(_0x10a215===_0x74c653(0xad)||_0x10a215===_0x74c653(0xa8))return _0x10a215;throw CliErrors[_0x74c653(0xba)](_0x74c653(0xc4)+_0x10a215+'\x22.');}export function allowRetargetArgs(_0x145df1){return _0x145df1?[{'allowAppCodeRetarget':!![]}]:[];}function a74_0x2d91(){const _0x4d22ac=['scope','11669pxytzZ','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','741546uekUKm','personal','6TrlZsq','(unknown)','SkillHub\x20validation\x20returned\x20invalid.','3280260hyGzdo','lovrabet.skill.json','not-applicable','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','files','length','Personal','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','validation','identical','errors','skillCode','builtin','Builtin\x20Skill\x20','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','22856NyYzrn','downloadRuntimeSkillPackage','417SIOMbB','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','warning','valid','5258099STySSw','Local\x20Skill\x20metadata\x20appCode\x20','3514040VRWybK','Company','appCode','Review\x20each\x20warning\x20before\x20continuing.','skill-metadata-appcode-retargeted','38LkzrQz','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','content','join','verifyRuntimeSkillBundle','publishInput','\x20cannot\x20be\x20pushed.','remote','24436148qKVjTv','40npuJaW','company'];a74_0x2d91=function(){return _0x4d22ac;};return a74_0x2d91();}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a74_0x5383(_0x20d4be,_0x1bcfc3){_0x20d4be=_0x20d4be-0xa3;const _0x2d91a2=a74_0x2d91();let _0x538308=_0x2d91a2[_0x20d4be];return _0x538308;}export function remoteMissingCompanyReadOptions(){const _0x2b6157=a74_0x5383;return{'targetScope':_0x2b6157(0xa8),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x1a8475={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x1a8475};}export function remotePersonalReadOptions(_0x274442,_0x352888={}){return{'ignoreInvalidMetadata':!![],..._0x274442?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x352888};}export function throwIfBuiltinPushTarget(_0x14b027){const _0x18ad9a=a74_0x5383;if(_0x14b027?.[_0x18ad9a(0xa9)]!==_0x18ad9a(0xbe))return;throw CliErrors[_0x18ad9a(0xba)](_0x18ad9a(0xbf)+(_0x14b027['skillCode']??_0x18ad9a(0xaf))+_0x18ad9a(0xa4),_0x18ad9a(0xc0));}export function throwIfPublishValidationFailed(_0x393090,_0xcc9a47,_0x85f23a){const _0x3ccdae=a74_0x5383;if(_0x85f23a[_0x3ccdae(0xbc)][_0x3ccdae(0xb6)]===0x0&&(_0x85f23a[_0x3ccdae(0xc6)]||_0x85f23a['warnings'][_0x3ccdae(0xb6)]>0x0))return;const _0x3d0c30=_0x85f23a['errors'][_0x3ccdae(0xb6)]>0x0?_0x85f23a[_0x3ccdae(0xbc)][_0x3ccdae(0xd1)](';\x20'):_0x3ccdae(0xb0),_0x124668=_0x393090===_0x3ccdae(0xa8)?'Company':'Personal';throw CliErrors[_0x3ccdae(0xba)](_0x124668+_0x3ccdae(0xb8)+_0xcc9a47+'.',_0x3d0c30);}export function throwIfUnconfirmedPublishWarnings(_0x5e978f,_0x35d582,_0x2c2fca,_0x1463d4){const _0x1a8cbc=a74_0x5383;if(_0x2c2fca[_0x1a8cbc(0xb6)]===0x0||_0x1463d4)return;const _0x47a6fe=_0x5e978f===_0x1a8cbc(0xa8)?_0x1a8cbc(0xca):_0x1a8cbc(0xb7);throw CliErrors[_0x1a8cbc(0xba)](_0x47a6fe+_0x1a8cbc(0xab)+_0x35d582+'.',[_0x1a8cbc(0xcc),_0x1a8cbc(0xcf),_0x1a8cbc(0xb4),'Warnings:\x20'+_0x2c2fca['join'](';\x20')][_0x1a8cbc(0xd1)]('\x20'));}export function buildRetargetWarning(_0x497cd8,_0x5dd1c5){const _0x548744=a74_0x5383;if(!_0x497cd8?.[_0x548744(0xcb)]||_0x497cd8[_0x548744(0xcb)]===_0x5dd1c5)return[];return[{'level':_0x548744(0xc5),'ruleId':_0x548744(0xcd),'file':_0x548744(0xb2),'message':_0x548744(0xc8)+_0x497cd8[_0x548744(0xcb)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x5dd1c5+'\x20after\x20successful\x20push.','suggestion':_0x548744(0xb9)}];}export async function runRemoteContentPreflight(_0x5c6a69){const _0x22cf90=a74_0x5383;if(!_0x5c6a69[_0x22cf90(0xa5)]||_0x5c6a69[_0x22cf90(0xa5)][_0x22cf90(0xa9)]!==_0x5c6a69[_0x22cf90(0xa9)]||!_0x5c6a69[_0x22cf90(0xa3)][_0x22cf90(0xb5)])return{'status':'not-applicable'};const _0x271707=_0x5c6a69[_0x22cf90(0xa5)][_0x22cf90(0xbd)]||_0x5c6a69[_0x22cf90(0xbd)];if(!_0x271707)return{'status':_0x22cf90(0xb3)};const _0x490846=await _0x5c6a69[_0x22cf90(0xc2)](_0x5c6a69['scope'],_0x271707,_0x5c6a69[_0x22cf90(0xcb)],_0x5c6a69['remote']['version']);try{_0x5c6a69[_0x22cf90(0xd2)](_0x5c6a69[_0x22cf90(0xa3)][_0x22cf90(0xb5)],_0x490846);}catch{return{'status':'different'};}return{'status':_0x22cf90(0xbb),'savedSkill':{..._0x5c6a69['remote'],'content':_0x5c6a69[_0x22cf90(0xa3)][_0x22cf90(0xd0)],'files':_0x5c6a69[_0x22cf90(0xa3)]['files']}};}
1
+ (function(_0x55481c,_0x5129a8){const _0x3a27f7=a74_0x156a,_0x4dcfa7=_0x55481c();while(!![]){try{const _0x5ca2b9=-parseInt(_0x3a27f7(0x12f))/0x1+parseInt(_0x3a27f7(0x151))/0x2+parseInt(_0x3a27f7(0x154))/0x3+parseInt(_0x3a27f7(0x13d))/0x4+parseInt(_0x3a27f7(0x14b))/0x5+parseInt(_0x3a27f7(0x13c))/0x6+-parseInt(_0x3a27f7(0x136))/0x7*(parseInt(_0x3a27f7(0x13b))/0x8);if(_0x5ca2b9===_0x5129a8)break;else _0x4dcfa7['push'](_0x4dcfa7['shift']());}catch(_0x85f7b7){_0x4dcfa7['push'](_0x4dcfa7['shift']());}}}(a74_0x3e31,0xdcabb));function a74_0x156a(_0x5d3e77,_0x14d8ad){_0x5d3e77=_0x5d3e77-0x12d;const _0x3e312a=a74_0x3e31();let _0x156a9f=_0x3e312a[_0x5d3e77];return _0x156a9f;}import{CliErrors}from'../../errors.js';function a74_0x3e31(){const _0x1de1d8=['(unknown)','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Builtin\x20Skill\x20','errors','20626DYRkIX','str','\x20cannot\x20be\x20pushed.','1024092ZhCFTT','publishInput','verifyRuntimeSkillBundle','skillCode','1644072oNyUnu','version','join','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Company','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','scope','14WOzUqt','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20each\x20warning\x20before\x20continuing.','builtin','files','5467656OXUHUM','1161900gYHjgP','6638004gxFIcd','not-applicable','validation','skill-metadata-appcode-retargeted','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','warnings','Personal','appCode','company','personal','length','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','remote','downloadRuntimeSkillPackage','8550125rydLMM','different'];a74_0x3e31=function(){return _0x1de1d8;};return a74_0x3e31();}export function resolvePushScope(_0x1498bd){const _0x3db262=a74_0x156a,_0x523ecf=_0x1498bd[_0x3db262(0x152)](_0x3db262(0x135))||_0x3db262(0x146);if(_0x523ecf===_0x3db262(0x146)||_0x523ecf===_0x3db262(0x145))return _0x523ecf;throw CliErrors['validation'](_0x3db262(0x14e)+_0x523ecf+'\x22.');}export function allowRetargetArgs(_0x4affc5){return _0x4affc5?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x37da52=a74_0x156a;return{'targetScope':_0x37da52(0x145),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x3f26a6={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x3f26a6};}export function remotePersonalReadOptions(_0x100c0a,_0x12b7fc={}){return{'ignoreInvalidMetadata':!![],..._0x100c0a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x12b7fc};}export function throwIfBuiltinPushTarget(_0x1bc149){const _0x4611d5=a74_0x156a;if(_0x1bc149?.[_0x4611d5(0x135)]!==_0x4611d5(0x139))return;throw CliErrors[_0x4611d5(0x13f)](_0x4611d5(0x14f)+(_0x1bc149[_0x4611d5(0x12e)]??_0x4611d5(0x14d))+_0x4611d5(0x153),_0x4611d5(0x134));}export function throwIfPublishValidationFailed(_0x552917,_0x1a9886,_0x1a84de){const _0x1d437b=a74_0x156a;if(_0x1a84de[_0x1d437b(0x150)][_0x1d437b(0x147)]===0x0&&(_0x1a84de['valid']||_0x1a84de[_0x1d437b(0x142)][_0x1d437b(0x147)]>0x0))return;const _0x17fb7a=_0x1a84de[_0x1d437b(0x150)][_0x1d437b(0x147)]>0x0?_0x1a84de[_0x1d437b(0x150)][_0x1d437b(0x131)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x319401=_0x552917==='company'?'Company':'Personal';throw CliErrors[_0x1d437b(0x13f)](_0x319401+_0x1d437b(0x137)+_0x1a9886+'.',_0x17fb7a);}export function throwIfUnconfirmedPublishWarnings(_0x1d020e,_0x47e513,_0x46814d,_0x4e665c){const _0x20a44d=a74_0x156a;if(_0x46814d[_0x20a44d(0x147)]===0x0||_0x4e665c)return;const _0x8fa548=_0x1d020e==='company'?_0x20a44d(0x133):_0x20a44d(0x143);throw CliErrors[_0x20a44d(0x13f)](_0x8fa548+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x47e513+'.',[_0x20a44d(0x138),_0x20a44d(0x132),_0x20a44d(0x141),'Warnings:\x20'+_0x46814d[_0x20a44d(0x131)](';\x20')][_0x20a44d(0x131)]('\x20'));}export function buildRetargetWarning(_0x37cd3c,_0x57d34b){const _0x3e12e1=a74_0x156a;if(!_0x37cd3c?.[_0x3e12e1(0x144)]||_0x37cd3c[_0x3e12e1(0x144)]===_0x57d34b)return[];return[{'level':'warning','ruleId':_0x3e12e1(0x140),'file':'lovrabet.skill.json','message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x37cd3c[_0x3e12e1(0x144)]+_0x3e12e1(0x148)+_0x57d34b+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x25a85d){const _0x4043c2=a74_0x156a;if(!_0x25a85d['remote']||_0x25a85d['remote']['scope']!==_0x25a85d[_0x4043c2(0x135)]||!_0x25a85d[_0x4043c2(0x155)][_0x4043c2(0x13a)])return{'status':_0x4043c2(0x13e)};const _0x165c88=_0x25a85d['remote']['skillCode']||_0x25a85d[_0x4043c2(0x12e)];if(!_0x165c88)return{'status':_0x4043c2(0x13e)};const _0x2b2103=await _0x25a85d[_0x4043c2(0x14a)](_0x25a85d[_0x4043c2(0x135)],_0x165c88,_0x25a85d[_0x4043c2(0x144)],_0x25a85d[_0x4043c2(0x149)][_0x4043c2(0x130)]);try{_0x25a85d[_0x4043c2(0x12d)](_0x25a85d[_0x4043c2(0x155)][_0x4043c2(0x13a)],_0x2b2103);}catch{return{'status':_0x4043c2(0x14c)};}return{'status':'identical','savedSkill':{..._0x25a85d[_0x4043c2(0x149)],'content':_0x25a85d[_0x4043c2(0x155)]['content'],'files':_0x25a85d[_0x4043c2(0x155)][_0x4043c2(0x13a)]}};}
@@ -1 +1 @@
1
- function a75_0x5410(_0x5d5b1d,_0x1222a2){_0x5d5b1d=_0x5d5b1d-0x100;const _0x51c855=a75_0x51c8();let _0x54109a=_0x51c855[_0x5d5b1d];return _0x54109a;}(function(_0x10ce4c,_0x23ad52){const _0x19d1f8=a75_0x5410,_0x1ae066=_0x10ce4c();while(!![]){try{const _0x41d688=parseInt(_0x19d1f8(0x103))/0x1*(parseInt(_0x19d1f8(0x10e))/0x2)+-parseInt(_0x19d1f8(0x115))/0x3+-parseInt(_0x19d1f8(0x109))/0x4+-parseInt(_0x19d1f8(0x106))/0x5+parseInt(_0x19d1f8(0x104))/0x6+parseInt(_0x19d1f8(0x10b))/0x7+parseInt(_0x19d1f8(0x108))/0x8;if(_0x41d688===_0x23ad52)break;else _0x1ae066['push'](_0x1ae066['shift']());}catch(_0x445d2c){_0x1ae066['push'](_0x1ae066['shift']());}}}(a75_0x51c8,0xf017d));export function withRetargetExistingMetadata(_0x58b330,_0x2bbcc0,_0x403469={}){const _0x56b3c2=a75_0x5410,_0x5f62f0=_0x403469[_0x56b3c2(0x102)]?_0x58b330[_0x56b3c2(0x114)]??_0x2bbcc0['skillName']:_0x2bbcc0[_0x56b3c2(0x114)]??_0x58b330[_0x56b3c2(0x114)];return{..._0x58b330,'skillName':_0x5f62f0,'description':_0x2bbcc0[_0x56b3c2(0x110)]??_0x58b330[_0x56b3c2(0x110)],'tags':Array[_0x56b3c2(0x112)](_0x2bbcc0[_0x56b3c2(0x101)])?_0x2bbcc0['tags']:_0x58b330['tags'],'version':_0x2bbcc0[_0x56b3c2(0x10f)]??_0x58b330['version'],'sourceSessionId':_0x2bbcc0[_0x56b3c2(0x10a)]??_0x58b330[_0x56b3c2(0x10a)]};}function a75_0x51c8(){const _0x1f0364=['preferInputSkillName','790700WjdNsj','5164692ipkDlt','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','3880995tszXcE','warning','4929424HgDQef','1290156LGyIsT','sourceSessionId','4481085JGRjVU','\x20after\x20successful\x20push.','skill-metadata-appcode-retargeted','4gioNaC','version','description','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','isArray','appCode','skillName','4849068cJnwuD','lovrabet.skill.json','tags'];a75_0x51c8=function(){return _0x1f0364;};return a75_0x51c8();}export function buildRetargetWarning(_0x1953b0,_0x244013){const _0x27e1fc=a75_0x5410;if(!_0x1953b0?.[_0x27e1fc(0x113)]||_0x1953b0[_0x27e1fc(0x113)]===_0x244013)return[];return[{'level':_0x27e1fc(0x107),'ruleId':_0x27e1fc(0x10d),'file':_0x27e1fc(0x100),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x1953b0[_0x27e1fc(0x113)]+_0x27e1fc(0x111)+_0x244013+_0x27e1fc(0x10c),'suggestion':_0x27e1fc(0x105)}];}
1
+ (function(_0xb08694,_0x218746){const _0x531143=a75_0x3fa5,_0x3aae0f=_0xb08694();while(!![]){try{const _0x186cfa=parseInt(_0x531143(0x1b9))/0x1+-parseInt(_0x531143(0x1c2))/0x2+parseInt(_0x531143(0x1af))/0x3*(parseInt(_0x531143(0x1b7))/0x4)+-parseInt(_0x531143(0x1c3))/0x5*(-parseInt(_0x531143(0x1bc))/0x6)+-parseInt(_0x531143(0x1c4))/0x7+-parseInt(_0x531143(0x1b3))/0x8*(parseInt(_0x531143(0x1b0))/0x9)+parseInt(_0x531143(0x1c5))/0xa*(parseInt(_0x531143(0x1bf))/0xb);if(_0x186cfa===_0x218746)break;else _0x3aae0f['push'](_0x3aae0f['shift']());}catch(_0x2e4681){_0x3aae0f['push'](_0x3aae0f['shift']());}}}(a75_0x4512,0xb8dad));export function withRetargetExistingMetadata(_0xf2f95a,_0x4883c8,_0x286fb2={}){const _0x5a9ec7=a75_0x3fa5,_0x589162=_0x286fb2[_0x5a9ec7(0x1b6)]?_0xf2f95a[_0x5a9ec7(0x1be)]??_0x4883c8[_0x5a9ec7(0x1be)]:_0x4883c8[_0x5a9ec7(0x1be)]??_0xf2f95a[_0x5a9ec7(0x1be)];return{..._0xf2f95a,'skillName':_0x589162,'description':_0x4883c8[_0x5a9ec7(0x1c0)]??_0xf2f95a[_0x5a9ec7(0x1c0)],'tags':Array[_0x5a9ec7(0x1ba)](_0x4883c8[_0x5a9ec7(0x1c7)])?_0x4883c8['tags']:_0xf2f95a[_0x5a9ec7(0x1c7)],'version':_0x4883c8[_0x5a9ec7(0x1bb)]??_0xf2f95a[_0x5a9ec7(0x1bb)],'sourceSessionId':_0x4883c8[_0x5a9ec7(0x1bd)]??_0xf2f95a[_0x5a9ec7(0x1bd)]};}export function buildRetargetWarning(_0x21b430,_0x5abc5c){const _0x90faa1=a75_0x3fa5;if(!_0x21b430?.[_0x90faa1(0x1b5)]||_0x21b430[_0x90faa1(0x1b5)]===_0x5abc5c)return[];return[{'level':_0x90faa1(0x1c6),'ruleId':_0x90faa1(0x1b1),'file':'lovrabet.skill.json','message':_0x90faa1(0x1c1)+_0x21b430[_0x90faa1(0x1b5)]+_0x90faa1(0x1b2)+_0x5abc5c+_0x90faa1(0x1b8),'suggestion':_0x90faa1(0x1b4)}];}function a75_0x3fa5(_0x1cca24,_0x1f5887){_0x1cca24=_0x1cca24-0x1af;const _0x451208=a75_0x4512();let _0x3fa535=_0x451208[_0x1cca24];return _0x3fa535;}function a75_0x4512(){const _0x5b1cfa=['9gKitck','skill-metadata-appcode-retargeted','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','363448toTctD','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','appCode','preferInputSkillName','8yihfnJ','\x20after\x20successful\x20push.','1470053tVFJhT','isArray','version','78OZxPga','sourceSessionId','skillName','781bMNnYi','description','Local\x20Skill\x20metadata\x20appCode\x20','2543258trYRgo','408895TAWIZe','8608754rSldlf','61670aonakK','warning','tags','499515oJgGXQ'];a75_0x4512=function(){return _0x5b1cfa;};return a75_0x4512();}
@@ -1 +1 @@
1
- (function(_0x58b4e7,_0x5e65df){const _0x3f73ae=a76_0x4624,_0x2a7ccc=_0x58b4e7();while(!![]){try{const _0x289d4c=-parseInt(_0x3f73ae(0x84))/0x1+parseInt(_0x3f73ae(0x79))/0x2+parseInt(_0x3f73ae(0x85))/0x3*(parseInt(_0x3f73ae(0x82))/0x4)+-parseInt(_0x3f73ae(0x7f))/0x5+parseInt(_0x3f73ae(0x7d))/0x6+parseInt(_0x3f73ae(0x81))/0x7*(-parseInt(_0x3f73ae(0x7e))/0x8)+-parseInt(_0x3f73ae(0x76))/0x9*(-parseInt(_0x3f73ae(0x78))/0xa);if(_0x289d4c===_0x5e65df)break;else _0x2a7ccc['push'](_0x2a7ccc['shift']());}catch(_0x62e2f3){_0x2a7ccc['push'](_0x2a7ccc['shift']());}}}(a76_0x2fba,0x8172c));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x988397){const _0x5e9d0b=a76_0x4624,_0x42400d=_0x988397[_0x5e9d0b(0x77)]();if(!_0x42400d||_0x42400d==='all')return[_0x5e9d0b(0x80),_0x5e9d0b(0x7c)];if(_0x42400d===_0x5e9d0b(0x80)||_0x42400d===_0x5e9d0b(0x7c))return[_0x42400d];throw CliErrors[_0x5e9d0b(0x83)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x988397);}function a76_0x2fba(){const _0x6b7e15=['298254wmVhVp','39olvxhH','446049XNrUSn','trim','160nKFcqT','1918738TIyspZ','all','Unsupported\x20Skill\x20list\x20scope:\x20','company','2525874fuLyav','32SOipjj','5278765ssFcPi','personal','526372KVtVCv','3596dMhXth','validation'];a76_0x2fba=function(){return _0x6b7e15;};return a76_0x2fba();}function a76_0x4624(_0x3315ab,_0x460f76){_0x3315ab=_0x3315ab-0x76;const _0x2fba95=a76_0x2fba();let _0x46245e=_0x2fba95[_0x3315ab];return _0x46245e;}export function normalizeListScope(_0xbd7c4f){const _0xb24ef5=a76_0x4624,_0x3b9665=_0xbd7c4f[_0xb24ef5(0x77)]();if(!_0x3b9665)return'all';if(_0x3b9665===_0xb24ef5(0x80)||_0x3b9665==='company'||_0x3b9665===_0xb24ef5(0x7a))return _0x3b9665;throw CliErrors[_0xb24ef5(0x83)](_0xb24ef5(0x7b)+_0xbd7c4f);}export function shouldListScope(_0x69bcf0,_0x2c0fab){if(_0x69bcf0==='all')return!![];return _0x69bcf0===_0x2c0fab;}export function listScopeToRuntimeScopes(_0x2e0118){const _0x371789=a76_0x4624;if(_0x2e0118===_0x371789(0x7a))return['personal',_0x371789(0x7c)];return[_0x2e0118==='company'?'company':_0x2e0118];}export function listScopeToRemoteScope(_0x49d0ae){return _0x49d0ae;}
1
+ (function(_0x2504e1,_0x5e2dd8){const _0x3fbc98=a76_0x1254,_0x139d41=_0x2504e1();while(!![]){try{const _0x497a3f=parseInt(_0x3fbc98(0x111))/0x1*(parseInt(_0x3fbc98(0x11a))/0x2)+parseInt(_0x3fbc98(0x110))/0x3+-parseInt(_0x3fbc98(0x10f))/0x4+parseInt(_0x3fbc98(0x11c))/0x5*(-parseInt(_0x3fbc98(0x117))/0x6)+parseInt(_0x3fbc98(0x11b))/0x7+parseInt(_0x3fbc98(0x11e))/0x8*(parseInt(_0x3fbc98(0x119))/0x9)+-parseInt(_0x3fbc98(0x118))/0xa*(-parseInt(_0x3fbc98(0x11f))/0xb);if(_0x497a3f===_0x5e2dd8)break;else _0x139d41['push'](_0x139d41['shift']());}catch(_0xba92ca){_0x139d41['push'](_0x139d41['shift']());}}}(a76_0x59b4,0xd20f9));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x19bac6){const _0x425169=a76_0x1254,_0x139653=_0x19bac6[_0x425169(0x113)]();if(!_0x139653||_0x139653===_0x425169(0x116))return[_0x425169(0x115),_0x425169(0x114)];if(_0x139653===_0x425169(0x115)||_0x139653===_0x425169(0x114))return[_0x139653];throw CliErrors['validation'](_0x425169(0x11d)+_0x19bac6);}export function normalizeListScope(_0xb41fd1){const _0x19e522=a76_0x1254,_0x314213=_0xb41fd1[_0x19e522(0x113)]();if(!_0x314213)return _0x19e522(0x116);if(_0x314213===_0x19e522(0x115)||_0x314213===_0x19e522(0x114)||_0x314213==='all')return _0x314213;throw CliErrors['validation'](_0x19e522(0x112)+_0xb41fd1);}function a76_0x1254(_0x33ee41,_0xbd2561){_0x33ee41=_0x33ee41-0x10f;const _0x59b43c=a76_0x59b4();let _0x12542e=_0x59b43c[_0x33ee41];return _0x12542e;}export function shouldListScope(_0x8dbeb0,_0x1378fa){if(_0x8dbeb0==='all')return!![];return _0x8dbeb0===_0x1378fa;}function a76_0x59b4(){const _0x550285=['1491471lLpypR','111LVZyGA','Unsupported\x20Skill\x20list\x20scope:\x20','trim','company','personal','all','6zdJmYM','395060NYcmTd','55044wJGCXg','8006XlvsAM','6025845zrnEEb','7520225WWFiFL','Unsupported\x20Skill\x20sync\x20scope:\x20','584ABoYaq','418mkHvQQ','5542268YzIBCe'];a76_0x59b4=function(){return _0x550285;};return a76_0x59b4();}export function listScopeToRuntimeScopes(_0x381168){const _0x161334=a76_0x1254;if(_0x381168===_0x161334(0x116))return[_0x161334(0x115),'company'];return[_0x381168===_0x161334(0x114)?'company':_0x381168];}export function listScopeToRemoteScope(_0x51f31f){return _0x51f31f;}
@@ -1 +1 @@
1
- (function(_0x2d97a,_0x2d4683){var _0x576312=a77_0x468f,_0x6dad29=_0x2d97a();while(!![]){try{var _0x1836cc=-parseInt(_0x576312(0x1c4))/0x1+-parseInt(_0x576312(0x1ca))/0x2*(-parseInt(_0x576312(0x1bc))/0x3)+-parseInt(_0x576312(0x1d1))/0x4*(-parseInt(_0x576312(0x1c7))/0x5)+-parseInt(_0x576312(0x1bb))/0x6*(-parseInt(_0x576312(0x1c0))/0x7)+-parseInt(_0x576312(0x1bf))/0x8*(-parseInt(_0x576312(0x1be))/0x9)+parseInt(_0x576312(0x1ce))/0xa*(-parseInt(_0x576312(0x1c8))/0xb)+parseInt(_0x576312(0x1d0))/0xc*(-parseInt(_0x576312(0x1c1))/0xd);if(_0x1836cc===_0x2d4683)break;else _0x6dad29['push'](_0x6dad29['shift']());}catch(_0x2d2447){_0x6dad29['push'](_0x6dad29['shift']());}}}(a77_0x117b,0xdaa62));function a77_0x468f(_0x3a469f,_0x356579){_0x3a469f=_0x3a469f-0x1ba;var _0x117bb2=a77_0x117b();var _0x468ff3=_0x117bb2[_0x3a469f];return _0x468ff3;}export function summarizeRuntimeSkill(_0x22d9ea){var _0xeca008=a77_0x468f;return{'id':_0x22d9ea['id'],'skillCode':_0x22d9ea['skillCode'],'skillName':_0x22d9ea[_0xeca008(0x1c2)],'scope':_0x22d9ea['scope'],'version':_0x22d9ea[_0xeca008(0x1cb)],'readonly':_0x22d9ea[_0xeca008(0x1cd)]};}function a77_0x117b(){var _0x1aab32=['7zYgqfS','13nyJqVU','skillName','metadataPath','1261314LGGIKq','pulledAt','dir','192530IMSHKu','20031JLrTbl','skillCode','1274LRQbmQ','version','linkedPaths','readonly','90NvooKO','tags','22896708dGOVrU','116COwsFT','status','cacheDir','7883184CgTKJH','4809NRYcRY','contentHash','11403ocBdZQ','3976ixoPph'];a77_0x117b=function(){return _0x1aab32;};return a77_0x117b();}export function summarizeLocalRuntimeSkill(_0x2f0802){var _0x5990e4=a77_0x468f;return{'id':_0x2f0802['id'],'skillCode':_0x2f0802[_0x5990e4(0x1c9)],'skillName':_0x2f0802[_0x5990e4(0x1c2)],'scope':_0x2f0802['scope'],'appCode':_0x2f0802['appCode'],'version':_0x2f0802['version'],'status':_0x2f0802[_0x5990e4(0x1d2)],'readonly':_0x2f0802['readonly'],'tags':_0x2f0802[_0x5990e4(0x1cf)],'dir':_0x2f0802[_0x5990e4(0x1c6)],'cacheDir':_0x2f0802[_0x5990e4(0x1ba)],'skillMdPath':_0x2f0802['skillMdPath'],'metadataPath':_0x2f0802[_0x5990e4(0x1c3)],'linkedPaths':_0x2f0802[_0x5990e4(0x1cc)],'contentHash':_0x2f0802[_0x5990e4(0x1bd)],'treeHash':_0x2f0802['treeHash'],'pulledAt':_0x2f0802[_0x5990e4(0x1c5)]};}
1
+ (function(_0x2eade8,_0x307d99){var _0x5d0714=a77_0x4380,_0x6552ff=_0x2eade8();while(!![]){try{var _0x41a0c3=parseInt(_0x5d0714(0x1e5))/0x1*(-parseInt(_0x5d0714(0x1ea))/0x2)+-parseInt(_0x5d0714(0x1ed))/0x3*(parseInt(_0x5d0714(0x1e7))/0x4)+parseInt(_0x5d0714(0x1ef))/0x5+parseInt(_0x5d0714(0x1e4))/0x6+-parseInt(_0x5d0714(0x1ee))/0x7*(parseInt(_0x5d0714(0x1de))/0x8)+parseInt(_0x5d0714(0x1db))/0x9*(-parseInt(_0x5d0714(0x1e1))/0xa)+parseInt(_0x5d0714(0x1e9))/0xb;if(_0x41a0c3===_0x307d99)break;else _0x6552ff['push'](_0x6552ff['shift']());}catch(_0x3f9230){_0x6552ff['push'](_0x6552ff['shift']());}}}(a77_0x3cf2,0xd98a3));export function summarizeRuntimeSkill(_0x5a8693){var _0xdf4272=a77_0x4380;return{'id':_0x5a8693['id'],'skillCode':_0x5a8693[_0xdf4272(0x1eb)],'skillName':_0x5a8693[_0xdf4272(0x1df)],'scope':_0x5a8693[_0xdf4272(0x1e8)],'version':_0x5a8693[_0xdf4272(0x1ec)],'readonly':_0x5a8693['readonly']};}export function summarizeLocalRuntimeSkill(_0x1328b2){var _0x5e6855=a77_0x4380;return{'id':_0x1328b2['id'],'skillCode':_0x1328b2[_0x5e6855(0x1eb)],'skillName':_0x1328b2[_0x5e6855(0x1df)],'scope':_0x1328b2[_0x5e6855(0x1e8)],'appCode':_0x1328b2[_0x5e6855(0x1e2)],'version':_0x1328b2[_0x5e6855(0x1ec)],'status':_0x1328b2[_0x5e6855(0x1dd)],'readonly':_0x1328b2[_0x5e6855(0x1f2)],'tags':_0x1328b2['tags'],'dir':_0x1328b2[_0x5e6855(0x1e6)],'cacheDir':_0x1328b2['cacheDir'],'skillMdPath':_0x1328b2[_0x5e6855(0x1f1)],'metadataPath':_0x1328b2[_0x5e6855(0x1e3)],'linkedPaths':_0x1328b2[_0x5e6855(0x1dc)],'contentHash':_0x1328b2[_0x5e6855(0x1e0)],'treeHash':_0x1328b2[_0x5e6855(0x1f3)],'pulledAt':_0x1328b2[_0x5e6855(0x1f0)]};}function a77_0x4380(_0x50ed1d,_0x59bcfd){_0x50ed1d=_0x50ed1d-0x1db;var _0x3cf21e=a77_0x3cf2();var _0x438075=_0x3cf21e[_0x50ed1d];return _0x438075;}function a77_0x3cf2(){var _0x31a478=['skillMdPath','readonly','treeHash','6504111SeCRcv','linkedPaths','status','110696mbddzZ','skillName','contentHash','10hCrbqb','appCode','metadataPath','6261390zhnkAE','815594jvENMq','dir','388cMLyNw','scope','32384693ZcvHsG','4DHdoCh','skillCode','version','7011ptsXVM','294NjZlPV','325625HYYxmG','pulledAt'];a77_0x3cf2=function(){return _0x31a478;};return a77_0x3cf2();}
@@ -1 +1 @@
1
- const a78_0x26355b=a78_0x5536;function a78_0x581a(){const _0x35a11f=['##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','3izdfwE','read','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','includes','skillName','120701PpeXrI','references/output-contract.md','write','\x0a\x20\x20created:\x20\x22','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\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','90ZpuYcu','357944KnTvZV','references/runtime-contract.md','49788RbGFRk','validation','\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应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','Use\x20one\x20of:\x20','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','Unsupported\x20Skill\x20type:\x20','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','210dMtjwa','2302400gPzYjt','1344210mjiWnt','Invalid\x20Skill\x20name:\x20','350970rWvRsX','SKILL.md','#\x20Output\x20Contract\x0a\x0a','timestamp','---\x0aname:\x20','test','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','type','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','join','trim','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','916324KNiHXP'];a78_0x581a=function(){return _0x35a11f;};return a78_0x581a();}(function(_0xa7b83c,_0x4cf9a9){const _0x39f979=a78_0x5536,_0x358ca9=_0xa7b83c();while(!![]){try{const _0x57e7bf=-parseInt(_0x39f979(0xe3))/0x1+-parseInt(_0x39f979(0xef))/0x2*(-parseInt(_0x39f979(0xf1))/0x3)+-parseInt(_0x39f979(0x10a))/0x4+parseInt(_0x39f979(0x10b))/0x5+-parseInt(_0x39f979(0x109))/0x6*(-parseInt(_0x39f979(0xf6))/0x7)+-parseInt(_0x39f979(0xfe))/0x8+parseInt(_0x39f979(0x100))/0x9*(-parseInt(_0x39f979(0xfd))/0xa);if(_0x57e7bf===_0x4cf9a9)break;else _0x358ca9['push'](_0x358ca9['shift']());}catch(_0x10ea30){_0x358ca9['push'](_0x358ca9['shift']());}}}(a78_0x581a,0x4b8a0));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a78_0x26355b(0xf8),'read'];export const DEFAULT_SKILL_TARGET='.agents/skills';function a78_0x5536(_0x510bf4,_0x583a8e){_0x510bf4=_0x510bf4-0xe2;const _0x581a10=a78_0x581a();let _0x5536f1=_0x581a10[_0x510bf4];return _0x5536f1;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a78_0x26355b(0xff);export const OUTPUT_CONTRACT_FILE=a78_0x26355b(0xf7);export function validateSkillName(_0x250c4d){const _0x1415b9=a78_0x26355b,_0x55e81e=_0x250c4d[_0x1415b9(0xed)]();if(!SKILL_NAME_PATTERN[_0x1415b9(0xe8)](_0x55e81e))throw CliErrors[_0x1415b9(0x101)](_0x1415b9(0xe2)+_0x250c4d+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x1415b9(0xf3));return _0x55e81e;}export function normalizeSkillTemplateType(_0x369ad7){const _0xdc1867=a78_0x26355b,_0x3bfe80=(_0x369ad7||_0xdc1867(0xf8))[_0xdc1867(0xed)]()||'write';if(SKILL_TYPES[_0xdc1867(0xf4)](_0x3bfe80))return _0x3bfe80;throw CliErrors['validation'](_0xdc1867(0x107)+_0x369ad7,_0xdc1867(0x103)+SKILL_TYPES[_0xdc1867(0xec)](',\x20')+'.');}export function renderSkillTemplate(_0x57c3e2){const _0x2f4106=a78_0x26355b,_0x384eb6=validateSkillName(_0x57c3e2[_0x2f4106(0xf5)]),_0x26fa88=normalizeSkillTemplateType(_0x57c3e2[_0x2f4106(0xea)]),_0x2caf21=_0x57c3e2[_0x2f4106(0xe6)]??new Date()['toISOString']();return{'skillName':_0x384eb6,'type':_0x26fa88,'files':[{'path':_0x2f4106(0xe4),'content':renderSkillMd(_0x384eb6,_0x26fa88,_0x2caf21)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x384eb6,_0x26fa88)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x384eb6,_0x26fa88)}]};}function renderSkillMd(_0x4265d8,_0x42b740,_0x115e74){const _0x507329=a78_0x26355b,_0x34f843=typeWorkflow(_0x42b740);return _0x507329(0xe7)+_0x4265d8+_0x507329(0x104)+_0x42b740+_0x507329(0xf9)+_0x115e74+_0x507329(0xeb)+_0x4265d8+_0x507329(0x102)+_0x34f843+'\x0a\x0a'+businessStateSection(_0x42b740)+'\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';}function renderRuntimeContract(_0x3a4647,_0x32feda){const _0x150059=a78_0x26355b,_0x4104dd=_0x32feda===_0x150059(0xf8)?_0x150059(0xf0):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x3a4647+'\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='+_0x32feda+_0x150059(0xe9)+_0x4104dd+'\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(_0x95891b,_0x223bd3){const _0x2bef20=a78_0x26355b,_0x43c6a2=_0x223bd3===_0x2bef20(0xf8)?_0x2bef20(0xee):_0x223bd3+_0x2bef20(0x105);return _0x2bef20(0xe5)+_0x95891b+_0x2bef20(0xfc)+_0x43c6a2+_0x2bef20(0x106);}function typeWorkflow(_0x442102){const _0xf5c668=a78_0x26355b;if(_0x442102===_0xf5c668(0xf2))return _0xf5c668(0xfb);return _0xf5c668(0xfa);}function businessStateSection(_0x183d85){const _0x557f3a=a78_0x26355b;if(_0x183d85!==_0x557f3a(0xf8))return'';return _0x557f3a(0x108);}
1
+ function a78_0x4d2f(_0x16d138,_0x23add3){_0x16d138=_0x16d138-0x7a;const _0x166a69=a78_0x166a();let _0x4d2f5c=_0x166a69[_0x16d138];return _0x4d2f5c;}const a78_0xadc8fb=a78_0x4d2f;(function(_0x575160,_0x5b46c3){const _0x1f3eb7=a78_0x4d2f,_0x20d018=_0x575160();while(!![]){try{const _0x3b7362=-parseInt(_0x1f3eb7(0x7f))/0x1+-parseInt(_0x1f3eb7(0x9c))/0x2*(-parseInt(_0x1f3eb7(0x8e))/0x3)+parseInt(_0x1f3eb7(0x91))/0x4*(-parseInt(_0x1f3eb7(0x98))/0x5)+-parseInt(_0x1f3eb7(0x94))/0x6*(parseInt(_0x1f3eb7(0x7a))/0x7)+parseInt(_0x1f3eb7(0x99))/0x8*(-parseInt(_0x1f3eb7(0x89))/0x9)+-parseInt(_0x1f3eb7(0x87))/0xa+parseInt(_0x1f3eb7(0x9e))/0xb;if(_0x3b7362===_0x5b46c3)break;else _0x20d018['push'](_0x20d018['shift']());}catch(_0x35563b){_0x20d018['push'](_0x20d018['shift']());}}}(a78_0x166a,0x479cd));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a78_0xadc8fb(0x96),a78_0xadc8fb(0x8a)];export const DEFAULT_SKILL_TARGET=a78_0xadc8fb(0x84);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a78_0xadc8fb(0x86);export const OUTPUT_CONTRACT_FILE=a78_0xadc8fb(0x97);export function validateSkillName(_0x507c9f){const _0x5cb3d0=a78_0xadc8fb,_0x3d9a19=_0x507c9f[_0x5cb3d0(0x90)]();if(!SKILL_NAME_PATTERN['test'](_0x3d9a19))throw CliErrors['validation']('Invalid\x20Skill\x20name:\x20'+_0x507c9f+_0x5cb3d0(0x7c),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x3d9a19;}function a78_0x166a(){const _0x5744f8=['Unsupported\x20Skill\x20type:\x20','write','references/output-contract.md','304435EazFFO','8tgHRYw','includes','toISOString','2gNwuMV','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','14266087iylxMD','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','2289VfLFAV','---\x0aname:\x20','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\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','434495llRxeg','\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','\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','#\x20Output\x20Contract\x0a\x0a','.agents/skills','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','references/runtime-contract.md','1240430vgEuou','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','2524275npMwxA','read','\x0a\x20\x20created:\x20\x22','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','skillName','347370CVbnjh','\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应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','trim','8DRqmxC','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\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=','2910RPWfFt'];a78_0x166a=function(){return _0x5744f8;};return a78_0x166a();}export function normalizeSkillTemplateType(_0x529202){const _0x4d2f9a=a78_0xadc8fb,_0x8811c1=(_0x529202||_0x4d2f9a(0x96))['trim']()||_0x4d2f9a(0x96);if(SKILL_TYPES[_0x4d2f9a(0x9a)](_0x8811c1))return _0x8811c1;throw CliErrors['validation'](_0x4d2f9a(0x95)+_0x529202,'Use\x20one\x20of:\x20'+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x185929){const _0x31cba2=a78_0xadc8fb,_0xa2b32a=validateSkillName(_0x185929[_0x31cba2(0x8d)]),_0xe4bb66=normalizeSkillTemplateType(_0x185929['type']),_0x82a949=_0x185929[_0x31cba2(0x81)]??new Date()[_0x31cba2(0x9b)]();return{'skillName':_0xa2b32a,'type':_0xe4bb66,'files':[{'path':'SKILL.md','content':renderSkillMd(_0xa2b32a,_0xe4bb66,_0x82a949)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xa2b32a,_0xe4bb66)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xa2b32a,_0xe4bb66)}]};}function renderSkillMd(_0x4ac09d,_0x57ec35,_0x35518a){const _0x17c82d=a78_0xadc8fb,_0x5329ee=typeWorkflow(_0x57ec35);return _0x17c82d(0x7b)+_0x4ac09d+_0x17c82d(0x9f)+_0x57ec35+_0x17c82d(0x8b)+_0x35518a+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x4ac09d+_0x17c82d(0x8f)+_0x5329ee+'\x0a\x0a'+businessStateSection(_0x57ec35)+_0x17c82d(0x82);}function renderRuntimeContract(_0x1fdb5,_0x24b368){const _0xcd1869=a78_0xadc8fb,_0x5a214f=_0x24b368==='write'?_0xcd1869(0x7d):'';return _0xcd1869(0x88)+_0x1fdb5+_0xcd1869(0x93)+_0x24b368+_0xcd1869(0x9d)+_0x5a214f+_0xcd1869(0x80);}function renderOutputContract(_0x3f4bca,_0xa1ace3){const _0xe74a30=a78_0xadc8fb,_0x294623=_0xa1ace3==='write'?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0xa1ace3+_0xe74a30(0x85);return _0xe74a30(0x83)+_0x3f4bca+_0xe74a30(0x7e)+_0x294623+_0xe74a30(0x8c);}function typeWorkflow(_0x12bdd0){const _0x3c5373=a78_0xadc8fb;if(_0x12bdd0===_0x3c5373(0x8a))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x585a61){const _0x123973=a78_0xadc8fb;if(_0x585a61!=='write')return'';return _0x123973(0x92);}
@@ -1 +1 @@
1
- const a79_0x2db22d=a79_0x3ccd;(function(_0x220811,_0x112f86){const _0x52475b=a79_0x3ccd,_0x43a583=_0x220811();while(!![]){try{const _0x30c0c1=parseInt(_0x52475b(0x9d))/0x1+-parseInt(_0x52475b(0xdf))/0x2*(parseInt(_0x52475b(0xdd))/0x3)+parseInt(_0x52475b(0xb9))/0x4+-parseInt(_0x52475b(0xc9))/0x5*(parseInt(_0x52475b(0xc7))/0x6)+parseInt(_0x52475b(0xc4))/0x7+-parseInt(_0x52475b(0xc2))/0x8*(-parseInt(_0x52475b(0xbd))/0x9)+-parseInt(_0x52475b(0xd2))/0xa*(parseInt(_0x52475b(0x9a))/0xb);if(_0x30c0c1===_0x112f86)break;else _0x43a583['push'](_0x43a583['shift']());}catch(_0x200085){_0x43a583['push'](_0x43a583['shift']());}}}(a79_0x1d8b,0x4da60));function a79_0x3ccd(_0x432744,_0x805913){_0x432744=_0x432744-0x9a;const _0x1d8bbf=a79_0x1d8b();let _0x3ccdc0=_0x1d8bbf[_0x432744];return _0x3ccdc0;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a79_0x420a6a}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a79_0x2db22d(0xa2),SUPPORTED_SKILL_TYPES=new Set([a79_0x2db22d(0xf3),'read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x158fa3,_0x1431ff={}){const _0x14eb52=a79_0x2db22d,_0x3c718b=resolveSkillDirectoryRoot(_0x158fa3),_0x1185c6=[],_0xd353c=loadRequiredSkillFile(_0x3c718b,_0x1185c6),_0x19a8e6=_0xd353c?parseFrontmatter(_0xd353c[_0x14eb52(0xd4)]):{'hasFrontmatter':![]};_0xd353c&&validateFrontmatter(_0xd353c[_0x14eb52(0xf4)],_0x19a8e6,_0x1185c6);validateRuntimeCliReferences(_0x3c718b,_0x1185c6);const _0x7dbb5c=_0x1185c6[_0x14eb52(0xc1)](_0x2ef1f5=>_0x2ef1f5[_0x14eb52(0xbb)]===_0x14eb52(0xb2)),_0x1f9537=_0x1185c6[_0x14eb52(0xc1)](_0x2a9f2d=>_0x2a9f2d[_0x14eb52(0xbb)]===_0x14eb52(0xde));return{'ok':_0x7dbb5c['length']===0x0,'dir':_0x3c718b,'type':_0x19a8e6[_0x14eb52(0xad)],'errors':_0x7dbb5c,'warnings':_0x1f9537};}function resolveSkillDirectoryRoot(_0x2654f5){const _0x56ef9f=a79_0x2db22d,_0x3b52fa=resolve(_0x2654f5);if(!existsSync(_0x3b52fa))throw CliErrors[_0x56ef9f(0xda)]('Skill\x20directory\x20not\x20found:\x20'+_0x2654f5);const _0x140cfc=lstatSync(_0x3b52fa);if(_0x140cfc[_0x56ef9f(0x9b)]())return _0x3b52fa;if(_0x140cfc[_0x56ef9f(0xe2)]()){const _0x2ff0d0=realpathSync(_0x3b52fa);if(lstatSync(_0x2ff0d0)[_0x56ef9f(0x9b)]())return _0x2ff0d0;}throw CliErrors['validation'](_0x56ef9f(0xea)+_0x2654f5);}export function throwIfSkillValidationFailed(_0x3345af,_0x2320df=![]){const _0x5b4f47=a79_0x2db22d;if(_0x3345af['ok'])return;const _0x276f01=_0x3345af[_0x5b4f47(0xaf)][_0x5b4f47(0xf2)](_0x19808b=>{const _0x462386=_0x5b4f47,_0x1876b1=_0x19808b[_0x462386(0xf0)]?'#'+_0x19808b[_0x462386(0xf0)]:'';return _0x19808b[_0x462386(0xbb)][_0x462386(0xdc)]()+'\x20'+_0x19808b[_0x462386(0xd5)]+'\x20'+_0x19808b[_0x462386(0xce)]+_0x1876b1+':\x20'+_0x19808b[_0x462386(0xe1)]+_0x462386(0xa6)+_0x19808b[_0x462386(0xa0)];});throw CliErrors[_0x5b4f47(0xda)](_0x5b4f47(0xca)+_0x276f01[_0x5b4f47(0xd6)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x1bc6d8,_0x44dbc7){const _0x41df53=a79_0x2db22d,_0x442cd3=resolve(_0x1bc6d8,SKILL_FILE);if(!existsSync(_0x442cd3))return _0x44dbc7[_0x41df53(0xc5)](issue(_0x41df53(0xb2),_0x41df53(0xb4),SKILL_FILE,_0x41df53(0xa8),_0x41df53(0xb0))),undefined;const _0x3ca322=lstatSync(_0x442cd3);if(_0x3ca322[_0x41df53(0xe2)]())return _0x44dbc7['push'](issue('error','structure-complete',SKILL_FILE,_0x41df53(0xc0),_0x41df53(0xd1))),undefined;if(!_0x3ca322['isFile']())return _0x44dbc7[_0x41df53(0xc5)](issue('error','structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x442cd3,_0x41df53(0xa7))};}function validateFrontmatter(_0x4fa034,_0x550fbb,_0x54e7f2){const _0x47b846=a79_0x2db22d;if(!_0x550fbb[_0x47b846(0xb5)]){_0x54e7f2[_0x47b846(0xc5)](issue('error',_0x47b846(0xd8),_0x4fa034,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x47b846(0xcb)));return;}!_0x550fbb[_0x47b846(0xbf)]?.['trim']()&&_0x54e7f2['push'](issue('error',_0x47b846(0xd8),_0x4fa034,_0x47b846(0xe0),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x550fbb[_0x47b846(0xb8)]?.['trim']()&&_0x54e7f2[_0x47b846(0xc5)](issue(_0x47b846(0xde),_0x47b846(0xe6),_0x4fa034,_0x47b846(0xb3),_0x47b846(0xa1))),!_0x550fbb[_0x47b846(0xcc)]?.['trim']()&&_0x54e7f2[_0x47b846(0xc5)](issue(_0x47b846(0xde),'example-recommended',_0x4fa034,_0x47b846(0xe9),_0x47b846(0xe4))),!_0x550fbb[_0x47b846(0xbe)]?.[_0x47b846(0xe3)]()&&_0x54e7f2[_0x47b846(0xc5)](issue(_0x47b846(0xb2),_0x47b846(0xe5),_0x4fa034,'Frontmatter\x20description\x20is\x20empty.',_0x47b846(0xb7))),_0x550fbb[_0x47b846(0xdb)]===!![]&&_0x54e7f2[_0x47b846(0xc5)](issue('error',_0x47b846(0xe8),_0x4fa034,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x47b846(0xd0))),_0x550fbb[_0x47b846(0xad)]?.[_0x47b846(0xe3)]()&&!SUPPORTED_SKILL_TYPES[_0x47b846(0xd3)](_0x550fbb[_0x47b846(0xad)])&&_0x54e7f2[_0x47b846(0xc5)](issue(_0x47b846(0xb2),_0x47b846(0xd8),_0x4fa034,_0x47b846(0xc8),_0x47b846(0xc6)));}function validateRuntimeCliReferences(_0x1b5b34,_0x1d525d){const _0x1167f3=a79_0x2db22d;for(const _0x50c812 of findRabetbaseCliInvocations(_0x1b5b34)){_0x1d525d['push'](issue(_0x1167f3(0xde),_0x1167f3(0xcf),_0x50c812[_0x1167f3(0xce)],_0x1167f3(0xee),_0x1167f3(0xb1),'L'+_0x50c812[_0x1167f3(0x9e)]));}}function findRabetbaseCliInvocations(_0x53055c){const _0x255871=a79_0x2db22d;return scanSkillDirectory(_0x53055c)[_0x255871(0xc1)](_0x1670e3=>TEXT_SKILL_FILE_PATTERN[_0x255871(0xd9)](_0x1670e3[_0x255871(0xf4)]))[_0x255871(0xeb)](_0x4e9d2c=>{const _0x18c017=_0x255871,_0x60d8a2=fileText(_0x4e9d2c);return _0x60d8a2[_0x18c017(0xed)](/\r?\n/)[_0x18c017(0xf2)]((_0x107a37,_0xacc615)=>({'file':_0x4e9d2c[_0x18c017(0xf4)],'line':_0xacc615+0x1,'text':_0x107a37}))[_0x18c017(0xc1)](({text:_0x57161b})=>isRabetbaseCliInvocation(_0x57161b))['map'](({file:_0x10723a,line:_0x20cec7})=>({'file':_0x10723a,'line':_0x20cec7}));});}const RABETBASE_SUBCOMMANDS=[a79_0x2db22d(0xd7),'sql',a79_0x2db22d(0xba),'page','project',a79_0x2db22d(0xac),a79_0x2db22d(0xa3),a79_0x2db22d(0xae),'artifact','kb',a79_0x2db22d(0xa5),a79_0x2db22d(0xbc),a79_0x2db22d(0x9f),'auth',a79_0x2db22d(0x9c),a79_0x2db22d(0xe7)],RABETBASE_INVOCATION=new RegExp(String[a79_0x2db22d(0xec)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a79_0x2db22d(0xd6)]('|')})\b`+String[a79_0x2db22d(0xec)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x3f6bbb){const _0x2711d1=a79_0x2db22d,_0xf75385=_0x3f6bbb[_0x2711d1(0xaa)](/\brabetbase\b/i);if(_0xf75385<0x0)return![];const _0x4455b6=_0x3f6bbb[_0x2711d1(0xc3)](_0xf75385)[_0x2711d1(0xed)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x2711d1(0xd9)](_0x4455b6);}function parseFrontmatter(_0x48d6bc){const _0x2cb420=a79_0x2db22d,_0x2b48da=_0x48d6bc[_0x2cb420(0xab)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2b48da)return{'hasFrontmatter':![]};const _0x10be82=_0x2b48da[0x1]??'',_0x46e88={'hasFrontmatter':!![]};let _0x47ce85;try{_0x47ce85=a79_0x420a6a(_0x10be82);}catch{return _0x46e88;}const _0x1c1fa3=asRecord(_0x47ce85);if(!_0x1c1fa3)return _0x46e88;_0x46e88[_0x2cb420(0xbf)]=scalarToString(_0x1c1fa3['name']),_0x46e88[_0x2cb420(0xb8)]=scalarToString(_0x1c1fa3[_0x2cb420(0xb8)]),_0x46e88[_0x2cb420(0xbe)]=scalarToString(_0x1c1fa3['description']),_0x46e88['example']=scalarToString(_0x1c1fa3[_0x2cb420(0xcc)]);const _0x29ee78=asRecord(_0x1c1fa3[_0x2cb420(0xa4)]);return _0x29ee78&&(_0x46e88['type']=scalarToString(_0x29ee78['type']),_0x46e88[_0x2cb420(0xdb)]=scalarToBoolean(_0x29ee78[_0x2cb420(0xdb)])),_0x46e88;}function asRecord(_0x2e917e){const _0x3c4498=a79_0x2db22d;if(_0x2e917e&&typeof _0x2e917e===_0x3c4498(0xf1)&&!Array['isArray'](_0x2e917e))return _0x2e917e;return undefined;}function scalarToString(_0x1fe6f7){const _0x2e936e=a79_0x2db22d;if(typeof _0x1fe6f7===_0x2e936e(0xb6))return _0x1fe6f7['trim']();if(typeof _0x1fe6f7==='number'||typeof _0x1fe6f7===_0x2e936e(0xa9))return String(_0x1fe6f7);return undefined;}function scalarToBoolean(_0x3a8686){const _0x47c2f6=a79_0x2db22d;if(typeof _0x3a8686===_0x47c2f6(0xa9))return _0x3a8686;if(typeof _0x3a8686===_0x47c2f6(0xb6))return cleanBoolean(_0x3a8686);return undefined;}function cleanBoolean(_0x4a0ec6){const _0x54fe35=a79_0x2db22d,_0x465e8c=_0x4a0ec6[_0x54fe35(0xe3)]()[_0x54fe35(0xcd)]();if(_0x465e8c==='true')return!![];if(_0x465e8c===_0x54fe35(0xef))return![];return undefined;}function issue(_0x43b0bb,_0x327e3f,_0x440d44,_0xc3ed7b,_0x49b6a2,_0x5d9b45){return{'level':_0x43b0bb,'ruleId':_0x327e3f,'file':_0x440d44,'section':_0x5d9b45,'message':_0xc3ed7b,'suggestion':_0x49b6a2};}function a79_0x1d8b(){const _0x1e55be=['hasFrontmatter','string','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','displayName','522740KifuZY','bff','level','workspace','2759157usgzRG','description','name','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','filter','8pFkyKu','slice','2804501KerCDU','push','Set\x20metadata.type\x20to\x20write\x20or\x20read.','6PLkPZu','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','1761730oFlmpe','Skill\x20validation\x20failed:\x0a','Add\x20frontmatter\x20with\x20name\x20and\x20description.','example','toLowerCase','file','rabetbase-cli-reference','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','10dJPvEU','has','content','ruleId','join','dataset','frontmatter-required','test','validation','internal','toUpperCase','84NgCHur','warning','4664RCKEbF','Frontmatter\x20name\x20is\x20missing.','message','isSymbolicLink','trim','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','description-required','display-name-recommended','registry','internal-skill','Frontmatter\x20example\x20is\x20missing.','Skill\x20directory\x20not\x20found:\x20','flatMap','raw','split','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','false','section','object','map','write','path','2331373AoKztT','isDirectory','logs','109732CZUEzm','line','data','suggestion','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','SKILL.md','schema','metadata','config','\x20Fix:\x20','utf8','Missing\x20SKILL.md.','boolean','search','match','app','type','service','errors','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','error','Frontmatter\x20displayName\x20is\x20missing.','structure-complete'];a79_0x1d8b=function(){return _0x1e55be;};return a79_0x1d8b();}
1
+ const a79_0x476ae6=a79_0x38b2;(function(_0x25cdc3,_0x2cd116){const _0x3e72b3=a79_0x38b2,_0x178d9d=_0x25cdc3();while(!![]){try{const _0x25b10b=-parseInt(_0x3e72b3(0x231))/0x1+parseInt(_0x3e72b3(0x207))/0x2+parseInt(_0x3e72b3(0x235))/0x3+parseInt(_0x3e72b3(0x21f))/0x4+parseInt(_0x3e72b3(0x230))/0x5+parseInt(_0x3e72b3(0x211))/0x6*(parseInt(_0x3e72b3(0x212))/0x7)+-parseInt(_0x3e72b3(0x23d))/0x8;if(_0x25b10b===_0x2cd116)break;else _0x178d9d['push'](_0x178d9d['shift']());}catch(_0x4364af){_0x178d9d['push'](_0x178d9d['shift']());}}}(a79_0x37e5,0xdaaf0));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a79_0x485e58}from'yaml';function a79_0x37e5(){const _0x4d16ea=['description','string','bff','display-name-recommended','false','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','Frontmatter\x20example\x20is\x20missing.','line','schema','has','length','2855112NfdnKE','level','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','workspace','errors','split','type','search','match','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','map','isSymbolicLink','true','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','Skill\x20directory\x20not\x20found:\x20','SKILL.md\x20must\x20start\x20with\x20frontmatter.','isFile','4961340VicESg','1286562BVQsuI','join','number','app','4499325ineMIQ','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','internal','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','trim','displayName','filter','name','12179624pHUIpL','read','structure-complete','sql','example-recommended','path','rabetbase-cli-reference','\x20Fix:\x20','boolean','object','Add\x20frontmatter\x20with\x20name\x20and\x20description.','validation','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','toLowerCase','auth','error','isDirectory','registry','service','section','write','test','frontmatter-required','internal-skill','raw','ruleId','metadata','suggestion','flatMap','Missing\x20SKILL.md.','file','385190CWBzMK','page','utf8','example','warning','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','toUpperCase','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','SKILL.md','87522qZNSxX','147XtbUKJ','push'];a79_0x37e5=function(){return _0x4d16ea;};return a79_0x37e5();}import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a79_0x476ae6(0x210),SUPPORTED_SKILL_TYPES=new Set([a79_0x476ae6(0x1fc),a79_0x476ae6(0x23e)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x22aec0,_0x427e6d={}){const _0x306582=a79_0x476ae6,_0x49c9f5=resolveSkillDirectoryRoot(_0x22aec0),_0xaf1b5c=[],_0x34c790=loadRequiredSkillFile(_0x49c9f5,_0xaf1b5c),_0x1ac9a8=_0x34c790?parseFrontmatter(_0x34c790['content']):{'hasFrontmatter':![]};_0x34c790&&validateFrontmatter(_0x34c790[_0x306582(0x1ed)],_0x1ac9a8,_0xaf1b5c);validateRuntimeCliReferences(_0x49c9f5,_0xaf1b5c);const _0x45d278=_0xaf1b5c[_0x306582(0x23b)](_0x28973a=>_0x28973a['level']===_0x306582(0x1f7)),_0x2429cc=_0xaf1b5c[_0x306582(0x23b)](_0x16f21a=>_0x16f21a[_0x306582(0x220)]===_0x306582(0x20b));return{'ok':_0x45d278[_0x306582(0x21e)]===0x0,'dir':_0x49c9f5,'type':_0x1ac9a8[_0x306582(0x225)],'errors':_0x45d278,'warnings':_0x2429cc};}function resolveSkillDirectoryRoot(_0x17dbb2){const _0x241424=a79_0x476ae6,_0x1343d5=resolve(_0x17dbb2);if(!existsSync(_0x1343d5))throw CliErrors['validation'](_0x241424(0x22d)+_0x17dbb2);const _0x8d059a=lstatSync(_0x1343d5);if(_0x8d059a[_0x241424(0x1f8)]())return _0x1343d5;if(_0x8d059a[_0x241424(0x22a)]()){const _0x14c633=realpathSync(_0x1343d5);if(lstatSync(_0x14c633)[_0x241424(0x1f8)]())return _0x14c633;}throw CliErrors[_0x241424(0x1f3)](_0x241424(0x22d)+_0x17dbb2);}export function throwIfSkillValidationFailed(_0x1f4628,_0x444f73=![]){const _0x152b48=a79_0x476ae6;if(_0x1f4628['ok'])return;const _0x1cd1a9=_0x1f4628[_0x152b48(0x223)]['map'](_0x1be21a=>{const _0x4197bb=_0x152b48,_0x583e33=_0x1be21a[_0x4197bb(0x1fb)]?'#'+_0x1be21a['section']:'';return _0x1be21a[_0x4197bb(0x220)][_0x4197bb(0x20e)]()+'\x20'+_0x1be21a[_0x4197bb(0x201)]+'\x20'+_0x1be21a['file']+_0x583e33+':\x20'+_0x1be21a['message']+_0x4197bb(0x1ef)+_0x1be21a[_0x4197bb(0x203)];});throw CliErrors[_0x152b48(0x1f3)]('Skill\x20validation\x20failed:\x0a'+_0x1cd1a9[_0x152b48(0x232)]('\x0a'),_0x152b48(0x236));}function loadRequiredSkillFile(_0x201052,_0x507bd2){const _0x5795d0=a79_0x476ae6,_0x475df2=resolve(_0x201052,SKILL_FILE);if(!existsSync(_0x475df2))return _0x507bd2[_0x5795d0(0x213)](issue(_0x5795d0(0x1f7),_0x5795d0(0x23f),SKILL_FILE,_0x5795d0(0x205),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x3f10b4=lstatSync(_0x475df2);if(_0x3f10b4[_0x5795d0(0x22a)]())return _0x507bd2[_0x5795d0(0x213)](issue('error',_0x5795d0(0x23f),SKILL_FILE,_0x5795d0(0x221),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x3f10b4[_0x5795d0(0x22f)]())return _0x507bd2[_0x5795d0(0x213)](issue(_0x5795d0(0x1f7),'structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x475df2,_0x5795d0(0x209))};}function validateFrontmatter(_0x4c6a41,_0x5987cb,_0x19bb55){const _0x540e88=a79_0x476ae6;if(!_0x5987cb['hasFrontmatter']){_0x19bb55[_0x540e88(0x213)](issue(_0x540e88(0x1f7),'frontmatter-required',_0x4c6a41,_0x540e88(0x22e),_0x540e88(0x1f2)));return;}!_0x5987cb[_0x540e88(0x23c)]?.[_0x540e88(0x239)]()&&_0x19bb55[_0x540e88(0x213)](issue(_0x540e88(0x1f7),_0x540e88(0x1fe),_0x4c6a41,'Frontmatter\x20name\x20is\x20missing.',_0x540e88(0x20c))),!_0x5987cb[_0x540e88(0x23a)]?.['trim']()&&_0x19bb55[_0x540e88(0x213)](issue(_0x540e88(0x20b),_0x540e88(0x217),_0x4c6a41,'Frontmatter\x20displayName\x20is\x20missing.',_0x540e88(0x219))),!_0x5987cb['example']?.[_0x540e88(0x239)]()&&_0x19bb55[_0x540e88(0x213)](issue(_0x540e88(0x20b),_0x540e88(0x241),_0x4c6a41,_0x540e88(0x21a),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x5987cb[_0x540e88(0x214)]?.[_0x540e88(0x239)]()&&_0x19bb55[_0x540e88(0x213)](issue('error','description-required',_0x4c6a41,'Frontmatter\x20description\x20is\x20empty.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x5987cb[_0x540e88(0x237)]===!![]&&_0x19bb55[_0x540e88(0x213)](issue('error',_0x540e88(0x1ff),_0x4c6a41,_0x540e88(0x238),_0x540e88(0x228))),_0x5987cb[_0x540e88(0x225)]?.[_0x540e88(0x239)]()&&!SUPPORTED_SKILL_TYPES[_0x540e88(0x21d)](_0x5987cb[_0x540e88(0x225)])&&_0x19bb55['push'](issue(_0x540e88(0x1f7),_0x540e88(0x1fe),_0x4c6a41,_0x540e88(0x20f),_0x540e88(0x20d)));}function validateRuntimeCliReferences(_0x55442c,_0x19b1bb){const _0xe72234=a79_0x476ae6;for(const _0x4008d3 of findRabetbaseCliInvocations(_0x55442c)){_0x19b1bb[_0xe72234(0x213)](issue(_0xe72234(0x20b),_0xe72234(0x1ee),_0x4008d3[_0xe72234(0x206)],_0xe72234(0x1f4),_0xe72234(0x22c),'L'+_0x4008d3[_0xe72234(0x21b)]));}}function findRabetbaseCliInvocations(_0x36aa06){const _0x2e6df6=a79_0x476ae6;return scanSkillDirectory(_0x36aa06)[_0x2e6df6(0x23b)](_0x3f8127=>TEXT_SKILL_FILE_PATTERN[_0x2e6df6(0x1fd)](_0x3f8127[_0x2e6df6(0x1ed)]))[_0x2e6df6(0x204)](_0x37e0f3=>{const _0x3af63a=_0x2e6df6,_0x35fba2=fileText(_0x37e0f3);return _0x35fba2['split'](/\r?\n/)['map']((_0x50b197,_0x4b28ca)=>({'file':_0x37e0f3[_0x3af63a(0x1ed)],'line':_0x4b28ca+0x1,'text':_0x50b197}))[_0x3af63a(0x23b)](({text:_0x5768ff})=>isRabetbaseCliInvocation(_0x5768ff))[_0x3af63a(0x229)](({file:_0x6242b,line:_0x4eb4d9})=>({'file':_0x6242b,'line':_0x4eb4d9}));});}const RABETBASE_SUBCOMMANDS=['dataset',a79_0x476ae6(0x240),a79_0x476ae6(0x216),a79_0x476ae6(0x208),'project',a79_0x476ae6(0x234),a79_0x476ae6(0x21c),a79_0x476ae6(0x1fa),'artifact','kb','config',a79_0x476ae6(0x222),'data',a79_0x476ae6(0x1f6),'logs',a79_0x476ae6(0x1f9)],RABETBASE_INVOCATION=new RegExp(String[a79_0x476ae6(0x200)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a79_0x476ae6(0x200)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a79_0x38b2(_0x11c5d7,_0x12b2dd){_0x11c5d7=_0x11c5d7-0x1ed;const _0x37e57b=a79_0x37e5();let _0x38b2f6=_0x37e57b[_0x11c5d7];return _0x38b2f6;}function isRabetbaseCliInvocation(_0x568520){const _0x454159=a79_0x476ae6,_0x2df0ba=_0x568520[_0x454159(0x226)](/\brabetbase\b/i);if(_0x2df0ba<0x0)return![];const _0x1d7a8b=_0x568520['slice'](_0x2df0ba)[_0x454159(0x224)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x454159(0x1fd)](_0x1d7a8b);}function parseFrontmatter(_0x468512){const _0x4ad54c=a79_0x476ae6,_0x45c476=_0x468512[_0x4ad54c(0x227)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x45c476)return{'hasFrontmatter':![]};const _0x45cc58=_0x45c476[0x1]??'',_0x299093={'hasFrontmatter':!![]};let _0xc23fee;try{_0xc23fee=a79_0x485e58(_0x45cc58);}catch{return _0x299093;}const _0x278135=asRecord(_0xc23fee);if(!_0x278135)return _0x299093;_0x299093[_0x4ad54c(0x23c)]=scalarToString(_0x278135[_0x4ad54c(0x23c)]),_0x299093[_0x4ad54c(0x23a)]=scalarToString(_0x278135[_0x4ad54c(0x23a)]),_0x299093[_0x4ad54c(0x214)]=scalarToString(_0x278135[_0x4ad54c(0x214)]),_0x299093['example']=scalarToString(_0x278135[_0x4ad54c(0x20a)]);const _0x4d9c73=asRecord(_0x278135[_0x4ad54c(0x202)]);return _0x4d9c73&&(_0x299093[_0x4ad54c(0x225)]=scalarToString(_0x4d9c73['type']),_0x299093[_0x4ad54c(0x237)]=scalarToBoolean(_0x4d9c73[_0x4ad54c(0x237)])),_0x299093;}function asRecord(_0x40f922){const _0x5136be=a79_0x476ae6;if(_0x40f922&&typeof _0x40f922===_0x5136be(0x1f1)&&!Array['isArray'](_0x40f922))return _0x40f922;return undefined;}function scalarToString(_0x5cf32a){const _0x22e382=a79_0x476ae6;if(typeof _0x5cf32a===_0x22e382(0x215))return _0x5cf32a[_0x22e382(0x239)]();if(typeof _0x5cf32a===_0x22e382(0x233)||typeof _0x5cf32a===_0x22e382(0x1f0))return String(_0x5cf32a);return undefined;}function scalarToBoolean(_0x16ca9e){const _0xe5a526=a79_0x476ae6;if(typeof _0x16ca9e===_0xe5a526(0x1f0))return _0x16ca9e;if(typeof _0x16ca9e==='string')return cleanBoolean(_0x16ca9e);return undefined;}function cleanBoolean(_0x3cfd7f){const _0x10b926=a79_0x476ae6,_0x22be90=_0x3cfd7f[_0x10b926(0x239)]()[_0x10b926(0x1f5)]();if(_0x22be90===_0x10b926(0x22b))return!![];if(_0x22be90===_0x10b926(0x218))return![];return undefined;}function issue(_0x4eceb7,_0x36475a,_0x1d9c05,_0x1f55f9,_0x4549db,_0x5d9ce9){return{'level':_0x4eceb7,'ruleId':_0x36475a,'file':_0x1d9c05,'section':_0x5d9ce9,'message':_0x1f55f9,'suggestion':_0x4549db};}
@@ -1 +1 @@
1
- function a80_0x49f0(_0x5b74a4,_0x411e08){_0x5b74a4=_0x5b74a4-0x17b;const _0x58d7b1=a80_0x58d7();let _0x49f00b=_0x58d7b1[_0x5b74a4];return _0x49f00b;}const a80_0x1be1f3=a80_0x49f0;(function(_0x56cf20,_0xce2a22){const _0x58b941=a80_0x49f0,_0x2471a3=_0x56cf20();while(!![]){try{const _0x3b72d0=parseInt(_0x58b941(0x190))/0x1+parseInt(_0x58b941(0x182))/0x2*(-parseInt(_0x58b941(0x17b))/0x3)+-parseInt(_0x58b941(0x180))/0x4+parseInt(_0x58b941(0x18a))/0x5*(parseInt(_0x58b941(0x18c))/0x6)+parseInt(_0x58b941(0x18b))/0x7*(parseInt(_0x58b941(0x188))/0x8)+-parseInt(_0x58b941(0x191))/0x9*(-parseInt(_0x58b941(0x18d))/0xa)+-parseInt(_0x58b941(0x184))/0xb;if(_0x3b72d0===_0xce2a22)break;else _0x2471a3['push'](_0x2471a3['shift']());}catch(_0x1a4d78){_0x2471a3['push'](_0x2471a3['shift']());}}}(a80_0x58d7,0x68275));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a80_0x1be1f3(0x186),'command':a80_0x1be1f3(0x189),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a80_0x1be1f3(0x17f),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x542bc3){const _0x47ebbb=a80_0x1be1f3,_0x115294=await getSqlQueryInfo(_0x542bc3[_0x47ebbb(0x183)],_0x542bc3[_0x47ebbb(0x185)](_0x47ebbb(0x18f))),_0x2b44ba=_0x542bc3[_0x47ebbb(0x17d)](_0x47ebbb(0x181));if(_0x2b44ba)return{'ok':!![],'data':_0x115294};const _0x2a5d9a=_0x115294['dbId']?await getDbName(_0x542bc3['appCode'],_0x115294[_0x47ebbb(0x18e)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x115294[_0x47ebbb(0x17e)],'sqlName':_0x115294[_0x47ebbb(0x187)],'db':_0x2a5d9a?_0x2a5d9a+'\x20('+_0x115294[_0x47ebbb(0x18e)]+')':_0x115294['dbId']??'','sqlContent':_0x115294[_0x47ebbb(0x17c)]??''}};}};function a80_0x58d7(){const _0xfd0930=['234ElNpLn','1837407JrhBJl','sqlContent','bool','sqlCode','read','729272iYwDwS','verbose','2KAANiA','appCode','7207574iIXwQT','str','sql','sqlName','824Ktmoln','detail','935axDsJQ','48587oSKKgf','7206ypiUHO','91720RqIxWi','dbId','sqlcode','698652jhCbmv'];a80_0x58d7=function(){return _0xfd0930;};return a80_0x58d7();}
1
+ const a80_0x872dae=a80_0x257c;(function(_0x27b6c6,_0x4f8b71){const _0xea3af2=a80_0x257c,_0x9031a=_0x27b6c6();while(!![]){try{const _0x2c9cb5=-parseInt(_0xea3af2(0x10c))/0x1*(parseInt(_0xea3af2(0x114))/0x2)+parseInt(_0xea3af2(0x113))/0x3*(-parseInt(_0xea3af2(0x115))/0x4)+parseInt(_0xea3af2(0x116))/0x5+-parseInt(_0xea3af2(0x11f))/0x6*(parseInt(_0xea3af2(0x117))/0x7)+parseInt(_0xea3af2(0x122))/0x8*(-parseInt(_0xea3af2(0x118))/0x9)+parseInt(_0xea3af2(0x10e))/0xa*(parseInt(_0xea3af2(0x110))/0xb)+-parseInt(_0xea3af2(0x11a))/0xc*(-parseInt(_0xea3af2(0x112))/0xd);if(_0x2c9cb5===_0x4f8b71)break;else _0x9031a['push'](_0x9031a['shift']());}catch(_0x43ccf5){_0x9031a['push'](_0x9031a['shift']());}}}(a80_0x54f2,0xb75f9));function a80_0x54f2(){const _0x33d378=['appCode','sql','4062SksSGL','bool','read','8ZbDRDR','3413cTLpwT','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','16980GsIjhv','sqlName','7403DOQjUX','sqlCode','417703TdSkrM','818661zDEkIE','382WpTcCO','16hkjIgP','1256800Cnoqzq','8666mvGJcU','3663207gnwwet','sqlcode','876uBCNDN','sqlContent','dbId'];a80_0x54f2=function(){return _0x33d378;};return a80_0x54f2();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a80_0x257c(_0xbbac25,_0x3311bf){_0xbbac25=_0xbbac25-0x10c;const _0x54f272=a80_0x54f2();let _0x257cbf=_0x54f272[_0xbbac25];return _0x257cbf;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a80_0x872dae(0x11e),'command':'detail','description':a80_0x872dae(0x10d),'risk':a80_0x872dae(0x121),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x55dbde){const _0x3f6651=a80_0x872dae,_0x26fec7=await getSqlQueryInfo(_0x55dbde[_0x3f6651(0x11d)],_0x55dbde['str'](_0x3f6651(0x119))),_0xc8304c=_0x55dbde[_0x3f6651(0x120)]('verbose');if(_0xc8304c)return{'ok':!![],'data':_0x26fec7};const _0x2d1cf7=_0x26fec7[_0x3f6651(0x11c)]?await getDbName(_0x55dbde['appCode'],_0x26fec7[_0x3f6651(0x11c)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x26fec7[_0x3f6651(0x111)],'sqlName':_0x26fec7[_0x3f6651(0x10f)],'db':_0x2d1cf7?_0x2d1cf7+'\x20('+_0x26fec7['dbId']+')':_0x26fec7[_0x3f6651(0x11c)]??'','sqlContent':_0x26fec7[_0x3f6651(0x11b)]??''}};}};
@@ -1 +1 @@
1
- const a81_0x23bb96=a81_0x1963;(function(_0x1d9a6b,_0x3bb18f){const _0x5f3d2c=a81_0x1963,_0x526866=_0x1d9a6b();while(!![]){try{const _0x3d492b=parseInt(_0x5f3d2c(0x17b))/0x1*(-parseInt(_0x5f3d2c(0x18b))/0x2)+parseInt(_0x5f3d2c(0x191))/0x3+-parseInt(_0x5f3d2c(0x188))/0x4*(parseInt(_0x5f3d2c(0x18a))/0x5)+-parseInt(_0x5f3d2c(0x181))/0x6*(-parseInt(_0x5f3d2c(0x187))/0x7)+-parseInt(_0x5f3d2c(0x189))/0x8*(parseInt(_0x5f3d2c(0x183))/0x9)+-parseInt(_0x5f3d2c(0x18d))/0xa+parseInt(_0x5f3d2c(0x17c))/0xb;if(_0x3d492b===_0x3bb18f)break;else _0x526866['push'](_0x526866['shift']());}catch(_0x373e96){_0x526866['push'](_0x526866['shift']());}}}(a81_0x5863,0xc704b));function a81_0x5863(){const _0x55bd37=['sql','3923340AVvxMh','read','exec','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1099542ineddL','1139663AvwVvq','22633380kGODVz','length','str','now','execResult','72ZMtAeP','SQL\x20execution\x20failed','9dsjHIY','\x20row(s)\x20in\x20','params','execError','819098utZovH','144MfCchk','11585456JSVFBZ','4570uaIMVn','2FHcgrI'];a81_0x5863=function(){return _0x55bd37;};return a81_0x5863();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a81_0x1963(_0x5c22d9,_0x1f626a){_0x5c22d9=_0x5c22d9-0x17b;const _0x586394=a81_0x5863();let _0x196383=_0x586394[_0x5c22d9];return _0x196383;}export const sqlExec={'service':a81_0x23bb96(0x18c),'command':a81_0x23bb96(0x18f),'description':a81_0x23bb96(0x190),'risk':a81_0x23bb96(0x18e),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x10fa92){const _0x247e57=a81_0x23bb96,_0x64725a=parseJsonParams(_0x10fa92['str'](_0x247e57(0x185))),_0x18b852=Date['now'](),_0xdbadeb=await executeSdkSql(_0x10fa92[_0x247e57(0x17e)]('sqlcode'),_0x64725a),_0x3e795b=Date[_0x247e57(0x17f)]()-_0x18b852,_0x30d126=_0xdbadeb?.[_0x247e57(0x180)]??_0xdbadeb,_0x25faac=_0xdbadeb?.['execSuccess']??!![];if(!_0x25faac)return{'ok':![],'data':{'error':_0xdbadeb?.[_0x247e57(0x186)]||_0x247e57(0x182),'elapsed':_0x3e795b},'message':_0x247e57(0x182)};const _0x3dcafc=Array['isArray'](_0x30d126)?_0x30d126:[];return{'ok':!![],'data':{'rows':_0x3dcafc,'rowCount':_0x3dcafc[_0x247e57(0x17d)],'elapsed':_0x3e795b},'message':'Returned\x20'+_0x3dcafc[_0x247e57(0x17d)]+_0x247e57(0x184)+_0x3e795b+'ms'};}};
1
+ const a81_0x43522f=a81_0x11b6;(function(_0x3e0d33,_0x4b9730){const _0x212f15=a81_0x11b6,_0x5c64e7=_0x3e0d33();while(!![]){try{const _0x41b996=parseInt(_0x212f15(0x120))/0x1+parseInt(_0x212f15(0x11f))/0x2*(parseInt(_0x212f15(0x114))/0x3)+-parseInt(_0x212f15(0x117))/0x4+parseInt(_0x212f15(0x10d))/0x5*(-parseInt(_0x212f15(0x10f))/0x6)+-parseInt(_0x212f15(0x11b))/0x7+-parseInt(_0x212f15(0x116))/0x8*(-parseInt(_0x212f15(0x119))/0x9)+parseInt(_0x212f15(0x112))/0xa*(-parseInt(_0x212f15(0x11c))/0xb);if(_0x41b996===_0x4b9730)break;else _0x5c64e7['push'](_0x5c64e7['shift']());}catch(_0x6f1013){_0x5c64e7['push'](_0x5c64e7['shift']());}}}(a81_0x1089,0xdbded));function a81_0x11b6(_0x453e59,_0x5374a5){_0x453e59=_0x453e59-0x10b;const _0x108926=a81_0x1089();let _0x11b6e7=_0x108926[_0x453e59];return _0x11b6e7;}function a81_0x1089(){const _0x5de1f8=['length','157856IZuwgk','52720CHSusV','sqlcode','387VichSu','SQL\x20execution\x20failed','7472402AozdoG','11bmTRTF','str','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','28190WwTQkp','227385DveGVx','execResult','params','2455zhOWGZ','read','2874rkfOYU','sql','execSuccess','1279670NBvOoB','Returned\x20','270PtcJzU'];a81_0x1089=function(){return _0x5de1f8;};return a81_0x1089();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a81_0x43522f(0x110),'command':'exec','description':a81_0x43522f(0x11e),'risk':a81_0x43522f(0x10e),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1333e3){const _0x4d69d4=a81_0x43522f,_0x410fab=parseJsonParams(_0x1333e3[_0x4d69d4(0x11d)](_0x4d69d4(0x10c))),_0x30dbe0=Date['now'](),_0x4a923a=await executeSdkSql(_0x1333e3[_0x4d69d4(0x11d)](_0x4d69d4(0x118)),_0x410fab),_0x582bce=Date['now']()-_0x30dbe0,_0x5a7dbf=_0x4a923a?.[_0x4d69d4(0x10b)]??_0x4a923a,_0x4a63c1=_0x4a923a?.[_0x4d69d4(0x111)]??!![];if(!_0x4a63c1)return{'ok':![],'data':{'error':_0x4a923a?.['execError']||_0x4d69d4(0x11a),'elapsed':_0x582bce},'message':_0x4d69d4(0x11a)};const _0x1f206a=Array['isArray'](_0x5a7dbf)?_0x5a7dbf:[];return{'ok':!![],'data':{'rows':_0x1f206a,'rowCount':_0x1f206a['length'],'elapsed':_0x582bce},'message':_0x4d69d4(0x113)+_0x1f206a[_0x4d69d4(0x115)]+'\x20row(s)\x20in\x20'+_0x582bce+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x23a3b0,_0x359354){const _0x317c25=a82_0x1ffe,_0x45d0cb=_0x23a3b0();while(!![]){try{const _0xce28d7=parseInt(_0x317c25(0x1bc))/0x1*(-parseInt(_0x317c25(0x1be))/0x2)+-parseInt(_0x317c25(0x1bd))/0x3*(parseInt(_0x317c25(0x1c2))/0x4)+-parseInt(_0x317c25(0x1ba))/0x5+-parseInt(_0x317c25(0x1bf))/0x6+parseInt(_0x317c25(0x1b9))/0x7*(parseInt(_0x317c25(0x1c0))/0x8)+parseInt(_0x317c25(0x1c3))/0x9+-parseInt(_0x317c25(0x1c1))/0xa*(-parseInt(_0x317c25(0x1bb))/0xb);if(_0xce28d7===_0x359354)break;else _0x45d0cb['push'](_0x45d0cb['shift']());}catch(_0x43409b){_0x45d0cb['push'](_0x45d0cb['shift']());}}}(a82_0x1f8e,0x245b9));function a82_0x1ffe(_0x48d36c,_0x33cef8){_0x48d36c=_0x48d36c-0x1b9;const _0x1f8e71=a82_0x1f8e();let _0x1ffe0f=_0x1f8e71[_0x48d36c];return _0x1ffe0f;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a82_0x1f8e(){const _0x2d84fe=['74tpBZqA','950376gbrICX','11056mtCQsK','699680ASwolg','12mkSZnf','1662831nVqSIh','1351nfYyVU','88480RQMLJs','11GyYuIO','4353KSJNXs','35379btYXJU'];a82_0x1f8e=function(){return _0x2d84fe;};return a82_0x1f8e();}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ function a82_0x17bf(){const _0x45f720=['160808CTYjIv','2454430sFvdGh','30AkyDEW','64404nzkcqI','11041650GiHssC','929530ZkTSfA','24rlXuaL','30GamoiA','5584vwnMgm','2755146fkegLs','5RxTAFF'];a82_0x17bf=function(){return _0x45f720;};return a82_0x17bf();}(function(_0x306063,_0x337569){const _0x1e8283=a82_0x3208,_0x1e628b=_0x306063();while(!![]){try{const _0x7a5b62=-parseInt(_0x1e8283(0x10b))/0x1+parseInt(_0x1e8283(0x10c))/0x2+-parseInt(_0x1e8283(0x110))/0x3*(-parseInt(_0x1e8283(0x10e))/0x4)+parseInt(_0x1e8283(0x10d))/0x5*(-parseInt(_0x1e8283(0x111))/0x6)+parseInt(_0x1e8283(0x108))/0x7*(-parseInt(_0x1e8283(0x109))/0x8)+-parseInt(_0x1e8283(0x112))/0x9+parseInt(_0x1e8283(0x10a))/0xa*(parseInt(_0x1e8283(0x10f))/0xb);if(_0x7a5b62===_0x337569)break;else _0x1e628b['push'](_0x1e628b['shift']());}catch(_0xf802d3){_0x1e628b['push'](_0x1e628b['shift']());}}}(a82_0x17bf,0xc5215));import{sqlDetail}from'../../commands/sql/detail.js';function a82_0x3208(_0x1008e0,_0x3c8f8a){_0x1008e0=_0x1008e0-0x108;const _0x17bff2=a82_0x17bf();let _0x32088e=_0x17bff2[_0x1008e0];return _0x32088e;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];