@lovrabet/lovrabet-cli 2.1.23-beta.4 → 2.1.23

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 (132) 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/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/confirmation.js +1 -1
  103. package/lib/runtime/event.js +1 -1
  104. package/lib/runtime/index.js +1 -1
  105. package/lib/runtime/queue.js +1 -1
  106. package/lib/runtime/resolve.js +1 -1
  107. package/lib/skills/npx-skills-add.js +1 -1
  108. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  109. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  110. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  111. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  112. package/lib/skills/runtime-skill-sync/links.js +1 -1
  113. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  114. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  115. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  116. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  117. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  118. package/lib/skills/runtime-skill-sync/push.js +1 -1
  119. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  121. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  122. package/lib/skills/runtime-skill-sync.js +1 -1
  123. package/lib/skills/skill-presence.js +1 -1
  124. package/lib/utils/apply-jq-filter.js +1 -1
  125. package/lib/utils/logger.js +1 -1
  126. package/lib/utils/lossless-json.js +1 -1
  127. package/lib/utils/params.js +1 -1
  128. package/lib/utils/platform.js +1 -1
  129. package/lib/utils/update-notice.js +1 -1
  130. package/lib/utils/version.js +1 -1
  131. package/lib/utils/write-cli-side-channel.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- const a50_0x32989b=a50_0x1dc2;(function(_0x28ddd2,_0x232d71){const _0x5c5774=a50_0x1dc2,_0x55f37c=_0x28ddd2();while(!![]){try{const _0x37030a=parseInt(_0x5c5774(0xfe))/0x1*(parseInt(_0x5c5774(0xf3))/0x2)+parseInt(_0x5c5774(0xee))/0x3*(parseInt(_0x5c5774(0xdd))/0x4)+-parseInt(_0x5c5774(0xf4))/0x5+-parseInt(_0x5c5774(0xf0))/0x6+parseInt(_0x5c5774(0xf5))/0x7*(-parseInt(_0x5c5774(0xea))/0x8)+parseInt(_0x5c5774(0xeb))/0x9*(parseInt(_0x5c5774(0xf8))/0xa)+-parseInt(_0x5c5774(0xed))/0xb*(-parseInt(_0x5c5774(0xe0))/0xc);if(_0x37030a===_0x232d71)break;else _0x55f37c['push'](_0x55f37c['shift']());}catch(_0x55f09b){_0x55f37c['push'](_0x55f37c['shift']());}}}(a50_0x413a,0xa3f50));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a50_0x32989b(0xf6),'type':'string','description':a50_0x32989b(0xda)};function a50_0x1dc2(_0x4cee33,_0xc84c35){_0x4cee33=_0x4cee33-0xd4;const _0x413a5b=a50_0x413a();let _0x1dc202=_0x413a5b[_0x4cee33];return _0x1dc202;}export const SCOPE_FLAG={'name':a50_0x32989b(0xe5),'type':a50_0x32989b(0xfc),'description':a50_0x32989b(0xdf),'enum':[a50_0x32989b(0xf1),a50_0x32989b(0xfa),a50_0x32989b(0xe9)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a50_0x32989b(0xfc),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':'personal','enum':['personal','company']};export const LIST_SCOPE_FLAG={'name':'scope','type':a50_0x32989b(0xfc),'description':a50_0x32989b(0xd6),'enum':[a50_0x32989b(0xf1),a50_0x32989b(0xfa),a50_0x32989b(0xe9)]};export const LOCAL_FLAG={'name':a50_0x32989b(0xd5),'type':a50_0x32989b(0xfd),'description':a50_0x32989b(0xe2)};function a50_0x413a(){const _0x222cc9=['5151085sHiykM','1757147Cggfel','code','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','2425370vnaTpO','diagram-file','personal','name','string','boolean','1517TyqpkN','target','Server-reported\x20SkillVersion\x20source\x20fingerprint','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','local','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','strict','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','project','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','version','Local\x20Skill\x20directory\x20containing\x20SKILL.md','484236kWUlwT','number','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','1092OkVqAy','force','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','scope','skill-code','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','company','24VIlZGd','27TgBAGa','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','52657hHEEgX','12MBFEgc','expected-diagram-revision','380244GUkViy','all','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','1148XNuaZT'];a50_0x413a=function(){return _0x222cc9;};return a50_0x413a();}export const DIR_FLAG={'name':'dir','type':a50_0x32989b(0xfc),'required':!![],'description':a50_0x32989b(0xdc)};export const DIAGRAM_FILE_FLAG={'name':a50_0x32989b(0xf9),'type':a50_0x32989b(0xfc),'required':!![],'description':a50_0x32989b(0xd4)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0x32989b(0xe6),'type':a50_0x32989b(0xfc),'required':!![],'description':a50_0x32989b(0xe4)};export const DIAGRAM_VERSION_FLAG={'name':a50_0x32989b(0xdb),'type':'string','required':!![],'description':a50_0x32989b(0xe8)};export const DIAGRAM_SCOPE_FLAG={'name':a50_0x32989b(0xe5),'type':a50_0x32989b(0xfc),'required':!![],'enum':[a50_0x32989b(0xfa),a50_0x32989b(0xe9)],'description':a50_0x32989b(0xf2)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':'string','required':!![],'description':a50_0x32989b(0x100),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a50_0x32989b(0xe3)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a50_0x32989b(0xef),'type':a50_0x32989b(0xde),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a50_0x32989b(0xfb),'type':a50_0x32989b(0xfc),'required':!![],'description':a50_0x32989b(0xd8),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a50_0x32989b(0xec)}};export const TYPE_FLAG={'name':'type','type':a50_0x32989b(0xfc),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0x32989b(0xff),'type':'string','description':a50_0x32989b(0xf7),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a50_0x32989b(0xe1),'type':a50_0x32989b(0xfd),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':a50_0x32989b(0xd9),'type':a50_0x32989b(0xfd),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':'boolean','description':a50_0x32989b(0xe7)};export const STRICT_FLAG={'name':a50_0x32989b(0xd7),'type':a50_0x32989b(0xfd),'description':a50_0x32989b(0x101)};
1
+ const a50_0x575c69=a50_0x5390;function a50_0x4e46(){const _0x53f2dc=['7126868sGYSOh','3230307ySnrJG','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','scope','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','personal','boolean','2508932fNCApI','all','confirm-warnings','497686qdeyzd','code','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','27006728JdJTRW','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','target','skill-code','strict','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','string','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','1215286SyTGfX','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','version','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','390qZAaFz','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','number','type','name','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','local','source-fingerprint','Server-reported\x20SkillVersion\x20source\x20fingerprint','9735fPJjqJ','company'];a50_0x4e46=function(){return _0x53f2dc;};return a50_0x4e46();}(function(_0x3edbdd,_0x4be242){const _0xed1b23=a50_0x5390,_0x489865=_0x3edbdd();while(!![]){try{const _0x5f1d84=-parseInt(_0xed1b23(0x103))/0x1+parseInt(_0xed1b23(0xf7))/0x2+-parseInt(_0xed1b23(0xee))/0x3+parseInt(_0xed1b23(0xf4))/0x4+-parseInt(_0xed1b23(0x110))/0x5*(parseInt(_0xed1b23(0x107))/0x6)+-parseInt(_0xed1b23(0xed))/0x7+parseInt(_0xed1b23(0xfa))/0x8;if(_0x5f1d84===_0x4be242)break;else _0x489865['push'](_0x489865['shift']());}catch(_0x41620e){_0x489865['push'](_0x489865['shift']());}}}(a50_0x4e46,0xc704f));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a50_0x575c69(0xf8),'type':a50_0x575c69(0x101),'description':a50_0x575c69(0xef)};export const SCOPE_FLAG={'name':a50_0x575c69(0xf0),'type':a50_0x575c69(0x101),'description':a50_0x575c69(0xf1),'enum':[a50_0x575c69(0xf5),a50_0x575c69(0xf2),a50_0x575c69(0xec)]};export const PUSH_SCOPE_FLAG={'name':a50_0x575c69(0xf0),'type':a50_0x575c69(0x101),'description':a50_0x575c69(0x102),'default':a50_0x575c69(0xf2),'enum':[a50_0x575c69(0xf2),a50_0x575c69(0xec)]};export const LIST_SCOPE_FLAG={'name':a50_0x575c69(0xf0),'type':a50_0x575c69(0x101),'description':a50_0x575c69(0x106),'enum':[a50_0x575c69(0xf5),a50_0x575c69(0xf2),a50_0x575c69(0xec)]};export const LOCAL_FLAG={'name':a50_0x575c69(0x10d),'type':a50_0x575c69(0xf3),'description':a50_0x575c69(0x104)};export const DIR_FLAG={'name':'dir','type':a50_0x575c69(0x101),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a50_0x575c69(0x101),'required':!![],'description':a50_0x575c69(0x10c)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0x575c69(0xfe),'type':a50_0x575c69(0x101),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a50_0x575c69(0x105),'type':a50_0x575c69(0x101),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a50_0x575c69(0xf0),'type':a50_0x575c69(0x101),'required':!![],'enum':[a50_0x575c69(0xf2),a50_0x575c69(0xec)],'description':a50_0x575c69(0x108)};export const SOURCE_FINGERPRINT_FLAG={'name':a50_0x575c69(0x10e),'type':a50_0x575c69(0x101),'required':!![],'description':a50_0x575c69(0x10f),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a50_0x575c69(0x109),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a50_0x575c69(0x10b),'type':a50_0x575c69(0x101),'required':!![],'description':a50_0x575c69(0xfc),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};function a50_0x5390(_0x12cb95,_0x4b5c18){_0x12cb95=_0x12cb95-0xec;const _0x4e46e9=a50_0x4e46();let _0x5390f3=_0x4e46e9[_0x12cb95];return _0x5390f3;}export const TYPE_FLAG={'name':a50_0x575c69(0x10a),'type':a50_0x575c69(0x101),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0x575c69(0xfd),'type':a50_0x575c69(0x101),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a50_0x575c69(0xf3),'description':a50_0x575c69(0xf9)};export const PROJECT_TARGET_FLAG={'name':'project','type':a50_0x575c69(0xf3),'description':a50_0x575c69(0x100)};export const CONFIRM_WARNINGS_FLAG={'name':a50_0x575c69(0xf6),'type':a50_0x575c69(0xf3),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':a50_0x575c69(0xff),'type':a50_0x575c69(0xf3),'description':a50_0x575c69(0xfb)};
@@ -1 +1 @@
1
- (function(_0x1828c4,_0x26ecba){const _0x536e27=a51_0x167f,_0x18f975=_0x1828c4();while(!![]){try{const _0x166880=parseInt(_0x536e27(0x19b))/0x1+-parseInt(_0x536e27(0x1a0))/0x2*(parseInt(_0x536e27(0x1a3))/0x3)+parseInt(_0x536e27(0x19f))/0x4+parseInt(_0x536e27(0x19d))/0x5+parseInt(_0x536e27(0x19c))/0x6*(parseInt(_0x536e27(0x1a1))/0x7)+-parseInt(_0x536e27(0x1a2))/0x8+-parseInt(_0x536e27(0x19e))/0x9;if(_0x166880===_0x26ecba)break;else _0x18f975['push'](_0x18f975['shift']());}catch(_0x360141){_0x18f975['push'](_0x18f975['shift']());}}}(a51_0x4f74,0x7baa6));function a51_0x4f74(){const _0x179e97=['14106FIHwMf','497805mcvsnv','288OFrpkw','486590rdjyrJ','2758977SoZOVY','2057724yAyNmF','408GNzmdM','146454rYSwfT','2732120MJlDvu'];a51_0x4f74=function(){return _0x179e97;};return a51_0x4f74();}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';function a51_0x167f(_0x4f2e73,_0x28a609){_0x4f2e73=_0x4f2e73-0x19b;const _0x4f7444=a51_0x4f74();let _0x167f52=_0x4f7444[_0x4f2e73];return _0x167f52;}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(_0x49f72e,_0x58d921){const _0x218327=a51_0x5aec,_0x6778fa=_0x49f72e();while(!![]){try{const _0x52ae8c=parseInt(_0x218327(0x156))/0x1+parseInt(_0x218327(0x154))/0x2+-parseInt(_0x218327(0x157))/0x3+parseInt(_0x218327(0x14f))/0x4*(parseInt(_0x218327(0x14e))/0x5)+-parseInt(_0x218327(0x153))/0x6*(-parseInt(_0x218327(0x150))/0x7)+parseInt(_0x218327(0x151))/0x8+-parseInt(_0x218327(0x152))/0x9*(parseInt(_0x218327(0x155))/0xa);if(_0x52ae8c===_0x58d921)break;else _0x6778fa['push'](_0x6778fa['shift']());}catch(_0x783831){_0x6778fa['push'](_0x6778fa['shift']());}}}(a51_0x19b3,0xa83f5));import{createCommand}from'./commands/create.js';function a51_0x19b3(){const _0x3ca4d5=['26628JLmsXh','1870141DkRIdn','8888680DKSkVN','172566ImpMip','6iUyhox','1113210CDNRZX','930XVZDQw','916364ECFwha','1336392YPiqyd','50PXxSgL'];a51_0x19b3=function(){return _0x3ca4d5;};return a51_0x19b3();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a51_0x5aec(_0x45bcc1,_0x25a1ab){_0x45bcc1=_0x45bcc1-0x14e;const _0x19b369=a51_0x19b3();let _0x5aec6a=_0x19b369[_0x45bcc1];return _0x5aec6a;}import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- function a52_0x395f(_0x2af83c,_0x3f2f58){_0x2af83c=_0x2af83c-0xe0;var _0x57f381=a52_0x57f3();var _0x395fe4=_0x57f381[_0x2af83c];return _0x395fe4;}function a52_0x57f3(){var _0x2615bc=['2KjwMFh','isArray','13gleHte','files','string','904513pUoXmg','3105369fWVMEu','2469654orpHWl','40UPXvWn','SKILL.md','some','24307764hqADbz','length','21QSXlqZ','16rgyRWb','946338biPnnv','ossPath','5VDtorA','4833042FGtffz','path','2743656OrJUxG'];a52_0x57f3=function(){return _0x2615bc;};return a52_0x57f3();}(function(_0x45daf8,_0x2b22d5){var _0xc6d88c=a52_0x395f,_0x4d41e2=_0x45daf8();while(!![]){try{var _0x2d7199=-parseInt(_0xc6d88c(0xe9))/0x1*(-parseInt(_0xc6d88c(0xe4))/0x2)+-parseInt(_0xc6d88c(0xf3))/0x3*(-parseInt(_0xc6d88c(0xf2))/0x4)+parseInt(_0xc6d88c(0xe0))/0x5*(-parseInt(_0xc6d88c(0xe1))/0x6)+-parseInt(_0xc6d88c(0xf1))/0x7*(parseInt(_0xc6d88c(0xe3))/0x8)+-parseInt(_0xc6d88c(0xea))/0x9*(parseInt(_0xc6d88c(0xec))/0xa)+-parseInt(_0xc6d88c(0xeb))/0xb+-parseInt(_0xc6d88c(0xef))/0xc*(-parseInt(_0xc6d88c(0xe6))/0xd);if(_0x2d7199===_0x2b22d5)break;else _0x4d41e2['push'](_0x4d41e2['shift']());}catch(_0xad83a){_0x4d41e2['push'](_0x4d41e2['shift']());}}}(a52_0x57f3,0xb7cf8));export function isPackageBackedManifest(_0x28cc54){var _0x33766b=a52_0x395f;return!!_0x28cc54&&typeof _0x28cc54==='object'&&!Array['isArray'](_0x28cc54)&&typeof _0x28cc54[_0x33766b(0xf4)]===_0x33766b(0xe8)&&_0x28cc54[_0x33766b(0xf4)][_0x33766b(0xf0)]>0x0&&Array[_0x33766b(0xe5)](_0x28cc54[_0x33766b(0xe7)]);}export function isMultiFileManifest(_0x2b3aed){var _0x950232=a52_0x395f;return!!_0x2b3aed&&typeof _0x2b3aed==='object'&&!Array['isArray'](_0x2b3aed)&&Array['isArray'](_0x2b3aed[_0x950232(0xe7)])&&_0x2b3aed['files'][_0x950232(0xee)](_0x21e504=>_0x21e504[_0x950232(0xe2)]!==_0x950232(0xed));}
1
+ function a52_0xb054(_0x1e05d4,_0x91e9c1){_0x1e05d4=_0x1e05d4-0xa0;var _0x5b870b=a52_0x5b87();var _0xb054f6=_0x5b870b[_0x1e05d4];return _0xb054f6;}(function(_0x83d0a1,_0x4d475d){var _0x4ee050=a52_0xb054,_0x1d8c87=_0x83d0a1();while(!![]){try{var _0x25d382=-parseInt(_0x4ee050(0xad))/0x1*(-parseInt(_0x4ee050(0xa6))/0x2)+parseInt(_0x4ee050(0xa0))/0x3+parseInt(_0x4ee050(0xa5))/0x4+parseInt(_0x4ee050(0xa4))/0x5+-parseInt(_0x4ee050(0xab))/0x6*(parseInt(_0x4ee050(0xa9))/0x7)+-parseInt(_0x4ee050(0xaa))/0x8*(parseInt(_0x4ee050(0xb2))/0x9)+parseInt(_0x4ee050(0xb0))/0xa*(-parseInt(_0x4ee050(0xae))/0xb);if(_0x25d382===_0x4d475d)break;else _0x1d8c87['push'](_0x1d8c87['shift']());}catch(_0x113cd3){_0x1d8c87['push'](_0x1d8c87['shift']());}}}(a52_0x5b87,0x21952));export function isPackageBackedManifest(_0x1b8a8f){var _0x3dcc2b=a52_0xb054;return!!_0x1b8a8f&&typeof _0x1b8a8f===_0x3dcc2b(0xa2)&&!Array['isArray'](_0x1b8a8f)&&typeof _0x1b8a8f[_0x3dcc2b(0xa3)]===_0x3dcc2b(0xac)&&_0x1b8a8f['ossPath'][_0x3dcc2b(0xa7)]>0x0&&Array[_0x3dcc2b(0xa8)](_0x1b8a8f[_0x3dcc2b(0xa1)]);}export function isMultiFileManifest(_0x3c5c3e){var _0x500b39=a52_0xb054;return!!_0x3c5c3e&&typeof _0x3c5c3e===_0x500b39(0xa2)&&!Array[_0x500b39(0xa8)](_0x3c5c3e)&&Array[_0x500b39(0xa8)](_0x3c5c3e[_0x500b39(0xa1)])&&_0x3c5c3e[_0x500b39(0xa1)][_0x500b39(0xb1)](_0x58f91e=>_0x58f91e[_0x500b39(0xaf)]!=='SKILL.md');}function a52_0x5b87(){var _0x44e6d8=['10LDJkaw','some','9MjKyqg','334689jHUamP','files','object','ossPath','168820LkYExA','960704FAtJBP','283214XJHhPz','length','isArray','7SIZBsZ','360648wrKSoY','1157748eieBRb','string','1TzuTNs','1666687gdSqdX','path'];a52_0x5b87=function(){return _0x44e6d8;};return a52_0x5b87();}
@@ -1 +1 @@
1
- (function(_0x1efa47,_0x255a5a){const _0x3e6e77=a53_0x570b,_0x2da0b3=_0x1efa47();while(!![]){try{const _0x13413a=parseInt(_0x3e6e77(0xf1))/0x1+parseInt(_0x3e6e77(0xfa))/0x2+parseInt(_0x3e6e77(0xe2))/0x3*(-parseInt(_0x3e6e77(0xfc))/0x4)+-parseInt(_0x3e6e77(0x111))/0x5+-parseInt(_0x3e6e77(0xe5))/0x6*(parseInt(_0x3e6e77(0xdf))/0x7)+parseInt(_0x3e6e77(0x10e))/0x8*(parseInt(_0x3e6e77(0xf9))/0x9)+parseInt(_0x3e6e77(0xed))/0xa;if(_0x13413a===_0x255a5a)break;else _0x2da0b3['push'](_0x2da0b3['shift']());}catch(_0x507e49){_0x2da0b3['push'](_0x2da0b3['shift']());}}}(a53_0x3685,0x3ba6a));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a53_0x570b(_0x2aa04d,_0x2c1794){_0x2aa04d=_0x2aa04d-0xd6;const _0x3685b1=a53_0x3685();let _0x570b3f=_0x3685b1[_0x2aa04d];return _0x570b3f;}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';function a53_0x3685(){const _0x1a79ac=['920700ZikZMW','/api/cli/v1/skills/','diagram-file','accessKey','177799bQueXR','authRequired','frontmatterDisplayName','valid','\x20for\x20review','../../skills/runtime-skill-sync.js','\x20Skill\x20','NAMESPACE_ONLY','45sYdSha','710998iUXGNe','company','412vUTnaF','../../core/api-client.js','confirmWarnings','metadata','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','POST','remoteForPreflight','\x20has\x20scope=\x22','PRIVATE','confirm-warnings','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','skillCode','input','resolvedVersion','submitted','warnings','dir','validation','725544zmOXes','str','errors','274865BfpFXg','existing','/publish/validate','payload','bool','publishInput','Created\x20personal\x20Skill\x20','identical','resolvedSlug','personal','unknown','119JRfXWj','files','savedSkill','9267WKOoYX','diagramValidated','trim','162834PTlyaU','status','appCode','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Submitted\x20company\x20Skill\x20','Personal','scope','\x20version\x20'];a53_0x3685=function(){return _0x1a79ac;};return a53_0x3685();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x9b96e){const _0x5aea2a=a53_0x570b,{getRuntimeSkillByCode:_0x22e9a0,validateRuntimeSkillPublish:_0x5a86ea}=await import(_0x5aea2a(0xfd)),{readPushDirectory:_0x5581de,resolvePushDirectoryIdentity:_0x14b5f3}=await import(_0x5aea2a(0xf6));if(!_0x9b96e[_0x5aea2a(0xf0)])throw CliErrors[_0x5aea2a(0xf2)]();const _0x2ce896=resolvePushScope(_0x9b96e),_0x11ef1c=validateSkillDirectory(_0x9b96e[_0x5aea2a(0x10f)]('dir'));throwIfSkillValidationFailed(_0x11ef1c);const {diagram:_0x423e88,sourceFilePath:_0x4ba4a9}=await readRequiredSkillDiagramInput(_0x9b96e[_0x5aea2a(0x10f)](_0x5aea2a(0xef))),_0x1c85d6=diagramPackageExclusion(_0x4ba4a9),_0x36731d=_0x14b5f3(_0x11ef1c[_0x5aea2a(0x10c)],_0x9b96e['appCode'],remoteFirstMetadataOptions()),_0x209b9d=await _0x22e9a0(_0x9b96e[_0x5aea2a(0xe7)],_0x36731d[_0x5aea2a(0x107)]);throwIfBuiltinPushTarget(_0x209b9d);if(_0x2ce896==='company'){const _0x22ae56=_0x5581de(_0x11ef1c[_0x5aea2a(0x10c)],_0x9b96e[_0x5aea2a(0xe7)],{...remoteMissingCompanyReadOptions(),..._0x1c85d6}),_0x3e9260=await _0x5a86ea(_0x9b96e[_0x5aea2a(0xe7)],withDiagram(_0x22ae56[_0x5aea2a(0x108)],_0x423e88),{'visibility':_0x5aea2a(0xf8)});return{'method':_0x5aea2a(0x101),'url':_0x5aea2a(0xee)+_0x9b96e[_0x5aea2a(0xe7)]+'/publish/validate','body':{'skillCode':_0x22ae56[_0x5aea2a(0x107)],'visibility':_0x5aea2a(0xf8),'valid':_0x3e9260[_0x5aea2a(0xf4)],'errors':_0x3e9260[_0x5aea2a(0x110)],'warnings':_0x3e9260[_0x5aea2a(0x10b)],'resolvedSlug':_0x3e9260['resolvedSlug'],'resolvedVersion':_0x3e9260[_0x5aea2a(0x109)],'diagramValidated':_0x3e9260['diagramValidated']},'description':_0x5aea2a(0x106)};}if(_0x209b9d&&_0x209b9d[_0x5aea2a(0xeb)]!==_0x5aea2a(0xdd))throw CliErrors['validation'](_0x5aea2a(0x100)+_0x36731d[_0x5aea2a(0x107)]+_0x5aea2a(0x103)+(_0x209b9d[_0x5aea2a(0xeb)]??_0x5aea2a(0xde))+'\x22.');const _0x2c1f4a=_0x5581de(_0x11ef1c['dir'],_0x9b96e[_0x5aea2a(0xe7)],{..._0x209b9d?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x1c85d6}),_0xf77510=await _0x5a86ea(_0x9b96e[_0x5aea2a(0xe7)],withDiagram(_0x2c1f4a[_0x5aea2a(0x108)],_0x423e88),{'visibility':_0x5aea2a(0x104)});return{'method':_0x5aea2a(0x101),'url':'/api/cli/v1/skills/'+_0x9b96e[_0x5aea2a(0xe7)]+_0x5aea2a(0xd6),'body':{'skillCode':_0x2c1f4a[_0x5aea2a(0x107)],'visibility':_0x5aea2a(0x104),'valid':_0xf77510['valid'],'errors':_0xf77510['errors'],'warnings':_0xf77510[_0x5aea2a(0x10b)],'resolvedSlug':_0xf77510[_0x5aea2a(0xdc)],'resolvedVersion':_0xf77510['resolvedVersion'],'diagramValidated':_0xf77510[_0x5aea2a(0xe3)]},'description':_0x5aea2a(0xe8)};}export async function skillPushExecute(_0xd1c3e1){const _0x186236=a53_0x570b,{createPersonalRuntimeSkill:_0x575956,downloadRuntimeSkillPackage:_0x557dae,getRuntimeSkillByCode:_0x56ec03,publishCompanyRuntimeSkill:_0x52d556,updatePersonalRuntimeSkill:_0x468065,validateRuntimeSkillPublish:_0x1988db}=await import(_0x186236(0xfd)),{verifyRuntimeSkillPackage:_0xed6856,verifyRuntimeSkillBundle:_0x223c7c,readPushDirectory:_0x727f38,refreshPushDirectoryMetadataFromRemote:_0x4533c4,recordPushedRuntimeSkill:_0x3befb3,resolvePushDirectoryIdentity:_0x20732b}=await import('../../skills/runtime-skill-sync.js');if(!_0xd1c3e1[_0x186236(0xf0)])throw CliErrors[_0x186236(0xf2)]();const _0x40d30e=resolvePushScope(_0xd1c3e1),_0xedbe7f=_0xd1c3e1[_0x186236(0xd8)](_0x186236(0x105))||_0xd1c3e1[_0x186236(0xd8)](_0x186236(0xfe)),_0x472303=validateSkillDirectory(_0xd1c3e1['str'](_0x186236(0x10c)));throwIfSkillValidationFailed(_0x472303);const {diagram:_0x5e78f0,sourceFilePath:_0xd3d380}=await readRequiredSkillDiagramInput(_0xd1c3e1[_0x186236(0x10f)](_0x186236(0xef))),_0x1f2aff=diagramPackageExclusion(_0xd3d380),_0xa818c4=_0x472303['dir'];let _0x3c6bfc;if(_0x40d30e===_0x186236(0xfb)){const _0x4a6c18=_0x20732b(_0xa818c4,_0xd1c3e1[_0x186236(0xe7)],remoteFirstMetadataOptions()),_0x17817e=await _0x56ec03(_0xd1c3e1[_0x186236(0xe7)],_0x4a6c18[_0x186236(0x107)]);throwIfBuiltinPushTarget(_0x17817e);if(_0x17817e)_0x4533c4(_0xa818c4,_0x17817e,_0xd1c3e1[_0x186236(0xe7)]);const _0x358dbd=_0x727f38(_0xa818c4,_0xd1c3e1[_0x186236(0xe7)],{..._0x17817e?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1f2aff});_0x3c6bfc={'scope':'company','payload':_0x358dbd,'publishInput':withDiagram(_0x358dbd[_0x186236(0x108)],_0x5e78f0),'remoteForPreflight':_0x17817e,'warnings':[]};}else{const _0x2b05a9=_0xd1c3e1[_0x186236(0x10f)]('appcode')[_0x186236(0xe4)](),_0x1f097e=Boolean(_0x2b05a9),_0x4c12cb=allowRetargetArgs(_0x1f097e),_0x46796f=_0x20732b(_0xa818c4,_0xd1c3e1[_0x186236(0xe7)],{...remoteFirstMetadataOptions(),..._0x4c12cb[0x0]}),_0x3fedd2=await _0x56ec03(_0xd1c3e1[_0x186236(0xe7)],_0x46796f['skillCode']);throwIfBuiltinPushTarget(_0x3fedd2);if(_0x3fedd2){if(_0x3fedd2[_0x186236(0xeb)]!=='personal'){if(_0x1f097e)throw CliErrors[_0x186236(0x10d)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x46796f['skillCode']+_0x186236(0x103)+(_0x3fedd2[_0x186236(0xeb)]??'unknown')+'\x22.');_0x4533c4(_0xa818c4,_0x3fedd2,_0xd1c3e1[_0x186236(0xe7)]);}else!_0x1f097e&&_0x4533c4(_0xa818c4,_0x3fedd2,_0xd1c3e1[_0x186236(0xe7)]);}const _0x461577=_0x727f38(_0xa818c4,_0xd1c3e1[_0x186236(0xe7)],{..._0x3fedd2?remotePersonalReadOptions(_0x1f097e,_0x4c12cb[0x0]):remoteMissingPersonalReadOptions(_0x4c12cb[0x0]),..._0x1f2aff}),_0x49e152=_0x3fedd2?.[_0x186236(0xeb)]==='personal'&&_0x3fedd2[_0x186236(0x107)]===_0x461577[_0x186236(0x107)]?_0x3fedd2:undefined,_0x4403ab=_0x1f097e&&_0x49e152?withRetargetExistingMetadata(_0x461577[_0x186236(0x108)],_0x49e152,{'preferInputSkillName':Boolean(_0x461577[_0x186236(0xf3)])}):_0x461577[_0x186236(0x108)],_0x1eb715=_0x1f097e?buildRetargetWarning(_0x46796f[_0x186236(0xff)],_0xd1c3e1[_0x186236(0xe7)]):[];_0x3c6bfc={'scope':_0x186236(0xdd),'payload':_0x461577,'publishInput':withDiagram(_0x4403ab,_0x5e78f0),'remoteForPreflight':_0x49e152,'existing':_0x49e152,'warnings':[..._0x472303[_0x186236(0x10b)],..._0x1eb715]};}const _0x51ea6a=await runRemoteContentPreflight({'scope':_0x3c6bfc['scope'],'remote':_0x3c6bfc[_0x186236(0x102)],'publishInput':_0x3c6bfc[_0x186236(0xd9)],'skillCode':_0x3c6bfc[_0x186236(0xd7)][_0x186236(0x107)],'appCode':_0xd1c3e1[_0x186236(0xe7)],'downloadRuntimeSkillPackage':_0x557dae,'verifyRuntimeSkillBundle':_0x223c7c});if(_0x51ea6a[_0x186236(0xe6)]===_0x186236(0xdb))return _0x3c6bfc[_0x186236(0xeb)]==='company'?_0x3befb3(_0xa818c4,_0x51ea6a[_0x186236(0xe1)],_0xd1c3e1[_0x186236(0xe7)],{'scope':_0x186236(0xfb)}):_0x3befb3(_0xa818c4,_0x51ea6a['savedSkill'],_0xd1c3e1[_0x186236(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x51ea6a[_0x186236(0xe1)]),'scope':_0x3c6bfc[_0x186236(0xeb)],..._0x3c6bfc[_0x186236(0xeb)]===_0x186236(0xdd)?{'warnings':_0x3c6bfc[_0x186236(0x10b)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x3c6bfc[_0x186236(0xeb)])+_0x186236(0xf7)+_0x3c6bfc[_0x186236(0xd7)][_0x186236(0x107)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x3c6bfc['scope']===_0x186236(0xfb)){const _0x474655=await _0x1988db(_0xd1c3e1[_0x186236(0xe7)],_0x3c6bfc['publishInput'],{'visibility':_0x186236(0xf8)});throwIfPublishValidationFailed(_0x186236(0xfb),_0x3c6bfc['payload'][_0x186236(0x107)],_0x474655),throwIfUnconfirmedPublishWarnings(_0x186236(0xfb),_0x3c6bfc['payload'][_0x186236(0x107)],_0x474655[_0x186236(0x10b)],_0xedbe7f);const _0x242a91=await _0x52d556(_0xd1c3e1[_0x186236(0xe7)],_0x3c6bfc[_0x186236(0xd9)],{'confirmWarnings':_0xedbe7f});return _0x3befb3(_0xa818c4,{..._0x242a91,'files':_0x3c6bfc[_0x186236(0xd9)]['files']},_0xd1c3e1[_0x186236(0xe7)],{'scope':_0x186236(0xfb)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x242a91),'scope':_0x186236(0xfb),'reviewState':_0x186236(0x10a),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x474655[_0x186236(0x10b)]}},'message':_0x186236(0xe9)+_0x3c6bfc[_0x186236(0xd7)]['skillCode']+_0x186236(0xec)+(_0x242a91['version']??'(unknown)')+_0x186236(0xf5)};}const _0x1472c1=await _0x1988db(_0xd1c3e1[_0x186236(0xe7)],_0x3c6bfc['publishInput'],{'visibility':_0x186236(0x104)});throwIfPublishValidationFailed(_0x186236(0xdd),_0x3c6bfc['payload']['skillCode'],_0x1472c1),throwIfUnconfirmedPublishWarnings('personal',_0x3c6bfc[_0x186236(0xd7)]['skillCode'],_0x1472c1[_0x186236(0x10b)],_0xedbe7f);const _0x497405={'confirmWarnings':_0xedbe7f},_0x21efd6=_0x3c6bfc[_0x186236(0x112)]?await _0x468065(_0x3c6bfc[_0x186236(0xd7)][_0x186236(0x107)],_0xd1c3e1[_0x186236(0xe7)],_0x3c6bfc[_0x186236(0xd9)],_0x497405):await _0x575956(_0xd1c3e1[_0x186236(0xe7)],_0x3c6bfc[_0x186236(0xd9)],_0x497405);let _0x401081=_0x21efd6;if(isMultiFileManifest(_0x3c6bfc[_0x186236(0xd9)]['files'])){const _0x2523f5=await _0x557dae('personal',_0x21efd6['skillCode']||_0x3c6bfc[_0x186236(0xd7)][_0x186236(0x107)],_0xd1c3e1[_0x186236(0xe7)]);_0x223c7c(_0x3c6bfc['publishInput']['files'],_0x2523f5),_0x401081={..._0x21efd6,'files':_0x3c6bfc[_0x186236(0xd9)]['files']};}else{if(isPackageBackedManifest(_0x21efd6[_0x186236(0xe0)])){const _0x4e3cda=await _0x557dae(_0x186236(0xdd),_0x21efd6[_0x186236(0x107)]||_0x3c6bfc['payload'][_0x186236(0x107)],_0xd1c3e1['appCode']);_0xed6856(_0x21efd6['files'],_0x4e3cda);}}return _0x3befb3(_0xa818c4,_0x401081,_0xd1c3e1[_0x186236(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x21efd6),'warnings':_0x3c6bfc[_0x186236(0x10b)],'validation':{'warnings':_0x1472c1[_0x186236(0x10b)]},'diagramBound':!![]},'message':_0x3c6bfc[_0x186236(0x112)]?'Updated\x20personal\x20Skill\x20'+_0x3c6bfc[_0x186236(0xd7)][_0x186236(0x107)]:_0x186236(0xda)+_0x3c6bfc['payload'][_0x186236(0x107)]};}function scopeLabel(_0x70045f){const _0x1b9b8e=a53_0x570b;return _0x70045f===_0x1b9b8e(0xfb)?'Company':_0x1b9b8e(0xea);}function withDiagram(_0x12f76f,_0x232134){return{..._0x12f76f,'diagram':_0x232134};}function diagramPackageExclusion(_0x826527){return _0x826527?{'excludedFilePaths':[_0x826527]}:{};}
1
+ (function(_0x393cca,_0x522425){const _0x5edb45=a53_0x4341,_0x221956=_0x393cca();while(!![]){try{const _0x3ad661=-parseInt(_0x5edb45(0x229))/0x1*(-parseInt(_0x5edb45(0x1ef))/0x2)+parseInt(_0x5edb45(0x1fb))/0x3*(parseInt(_0x5edb45(0x214))/0x4)+parseInt(_0x5edb45(0x20a))/0x5+-parseInt(_0x5edb45(0x227))/0x6+-parseInt(_0x5edb45(0x20d))/0x7*(parseInt(_0x5edb45(0x20e))/0x8)+-parseInt(_0x5edb45(0x205))/0x9*(-parseInt(_0x5edb45(0x222))/0xa)+parseInt(_0x5edb45(0x221))/0xb*(-parseInt(_0x5edb45(0x203))/0xc);if(_0x3ad661===_0x522425)break;else _0x221956['push'](_0x221956['shift']());}catch(_0x59805d){_0x221956['push'](_0x221956['shift']());}}}(a53_0x29a4,0x54553));function a53_0x29a4(){const _0x101f48=['/publish/validate','payload','files','publishInput','appCode','Created\x20personal\x20Skill\x20','Updated\x20personal\x20Skill\x20','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','resolvedSlug','metadata','\x20Skill\x20','63537jAjVbf','bool','valid','PRIVATE','str','skillCode','frontmatterDisplayName','scope','55416xRjVBZ','../../skills/runtime-skill-sync.js','1513899ptUSQA','Personal','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','company','confirmWarnings','750615ycwQNP','confirm-warnings','appcode','1104089cOAtqC','16lBYUuI','remoteForPreflight','input','../../core/api-client.js','version','trim','116MuyPQv','diagram-file','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','errors','Submitted\x20company\x20Skill\x20','personal','dir','submitted','savedSkill','warnings','diagramValidated','accessKey','NAMESPACE_ONLY','1672IHdkNA','40KqNtfO','POST','/api/cli/v1/skills/','status','unknown','771846MrtFTo','existing','13575ACgTxs','authRequired','validation','identical','\x20version\x20','8YeSdvk'];a53_0x29a4=function(){return _0x101f48;};return a53_0x29a4();}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 a53_0x4341(_0x4b7ec8,_0x54ea93){_0x4b7ec8=_0x4b7ec8-0x1ed;const _0x29a42c=a53_0x29a4();let _0x4341df=_0x29a42c[_0x4b7ec8];return _0x4341df;}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x3b183a){const _0x5dc47e=a53_0x4341,{getRuntimeSkillByCode:_0x1b982f,validateRuntimeSkillPublish:_0x222142}=await import('../../core/api-client.js'),{readPushDirectory:_0x136262,resolvePushDirectoryIdentity:_0x4fe1ca}=await import(_0x5dc47e(0x204));if(!_0x3b183a[_0x5dc47e(0x21f)])throw CliErrors[_0x5dc47e(0x22a)]();const _0x424456=resolvePushScope(_0x3b183a),_0x3f7cb6=validateSkillDirectory(_0x3b183a[_0x5dc47e(0x1ff)]('dir'));throwIfSkillValidationFailed(_0x3f7cb6);const {diagram:_0x404236,sourceFilePath:_0x2cc978}=await readRequiredSkillDiagramInput(_0x3b183a[_0x5dc47e(0x1ff)](_0x5dc47e(0x215))),_0x2b3950=diagramPackageExclusion(_0x2cc978),_0xd26115=_0x4fe1ca(_0x3f7cb6[_0x5dc47e(0x21a)],_0x3b183a[_0x5dc47e(0x1f4)],remoteFirstMetadataOptions()),_0x5234ad=await _0x1b982f(_0x3b183a[_0x5dc47e(0x1f4)],_0xd26115[_0x5dc47e(0x200)]);throwIfBuiltinPushTarget(_0x5234ad);if(_0x424456===_0x5dc47e(0x208)){const _0x202038=_0x136262(_0x3f7cb6[_0x5dc47e(0x21a)],_0x3b183a[_0x5dc47e(0x1f4)],{...remoteMissingCompanyReadOptions(),..._0x2b3950}),_0x51c43c=await _0x222142(_0x3b183a[_0x5dc47e(0x1f4)],withDiagram(_0x202038[_0x5dc47e(0x210)],_0x404236),{'visibility':_0x5dc47e(0x220)});return{'method':'POST','url':_0x5dc47e(0x224)+_0x3b183a[_0x5dc47e(0x1f4)]+_0x5dc47e(0x1f0),'body':{'skillCode':_0x202038[_0x5dc47e(0x200)],'visibility':'NAMESPACE_ONLY','valid':_0x51c43c[_0x5dc47e(0x1fd)],'errors':_0x51c43c['errors'],'warnings':_0x51c43c['warnings'],'resolvedSlug':_0x51c43c[_0x5dc47e(0x1f8)],'resolvedVersion':_0x51c43c['resolvedVersion'],'diagramValidated':_0x51c43c[_0x5dc47e(0x21e)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x5234ad&&_0x5234ad[_0x5dc47e(0x202)]!==_0x5dc47e(0x219))throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0xd26115['skillCode']+'\x20has\x20scope=\x22'+(_0x5234ad[_0x5dc47e(0x202)]??_0x5dc47e(0x226))+'\x22.');const _0x1173ad=_0x136262(_0x3f7cb6[_0x5dc47e(0x21a)],_0x3b183a[_0x5dc47e(0x1f4)],{..._0x5234ad?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x2b3950}),_0x4a4624=await _0x222142(_0x3b183a[_0x5dc47e(0x1f4)],withDiagram(_0x1173ad[_0x5dc47e(0x210)],_0x404236),{'visibility':_0x5dc47e(0x1fe)});return{'method':_0x5dc47e(0x223),'url':'/api/cli/v1/skills/'+_0x3b183a[_0x5dc47e(0x1f4)]+_0x5dc47e(0x1f0),'body':{'skillCode':_0x1173ad[_0x5dc47e(0x200)],'visibility':_0x5dc47e(0x1fe),'valid':_0x4a4624[_0x5dc47e(0x1fd)],'errors':_0x4a4624[_0x5dc47e(0x217)],'warnings':_0x4a4624['warnings'],'resolvedSlug':_0x4a4624[_0x5dc47e(0x1f8)],'resolvedVersion':_0x4a4624['resolvedVersion'],'diagramValidated':_0x4a4624['diagramValidated']},'description':_0x5dc47e(0x1f7)};}export async function skillPushExecute(_0x1df85c){const _0x3e59e0=a53_0x4341,{createPersonalRuntimeSkill:_0x2352b0,downloadRuntimeSkillPackage:_0x56e4a1,getRuntimeSkillByCode:_0x771c65,publishCompanyRuntimeSkill:_0x2cb180,updatePersonalRuntimeSkill:_0x3e3c67,validateRuntimeSkillPublish:_0x5b7b19}=await import(_0x3e59e0(0x211)),{verifyRuntimeSkillPackage:_0xa59bc,verifyRuntimeSkillBundle:_0x1ac299,readPushDirectory:_0x4c46da,refreshPushDirectoryMetadataFromRemote:_0x13bc7e,recordPushedRuntimeSkill:_0x19d156,resolvePushDirectoryIdentity:_0xe4f1e9}=await import(_0x3e59e0(0x204));if(!_0x1df85c[_0x3e59e0(0x21f)])throw CliErrors['authRequired']();const _0x1fc294=resolvePushScope(_0x1df85c),_0x4f2ab7=_0x1df85c[_0x3e59e0(0x1fc)](_0x3e59e0(0x20b))||_0x1df85c[_0x3e59e0(0x1fc)](_0x3e59e0(0x209)),_0xa3f917=validateSkillDirectory(_0x1df85c[_0x3e59e0(0x1ff)](_0x3e59e0(0x21a)));throwIfSkillValidationFailed(_0xa3f917);const {diagram:_0x113748,sourceFilePath:_0x30153d}=await readRequiredSkillDiagramInput(_0x1df85c[_0x3e59e0(0x1ff)]('diagram-file')),_0x43aa23=diagramPackageExclusion(_0x30153d),_0x1e7e4c=_0xa3f917[_0x3e59e0(0x21a)];let _0x399763;if(_0x1fc294===_0x3e59e0(0x208)){const _0x359274=_0xe4f1e9(_0x1e7e4c,_0x1df85c[_0x3e59e0(0x1f4)],remoteFirstMetadataOptions()),_0x2e4e20=await _0x771c65(_0x1df85c[_0x3e59e0(0x1f4)],_0x359274[_0x3e59e0(0x200)]);throwIfBuiltinPushTarget(_0x2e4e20);if(_0x2e4e20)_0x13bc7e(_0x1e7e4c,_0x2e4e20,_0x1df85c['appCode']);const _0x54af6b=_0x4c46da(_0x1e7e4c,_0x1df85c[_0x3e59e0(0x1f4)],{..._0x2e4e20?{'targetScope':_0x3e59e0(0x208),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x43aa23});_0x399763={'scope':_0x3e59e0(0x208),'payload':_0x54af6b,'publishInput':withDiagram(_0x54af6b[_0x3e59e0(0x210)],_0x113748),'remoteForPreflight':_0x2e4e20,'warnings':[]};}else{const _0x5ce450=_0x1df85c['str'](_0x3e59e0(0x20c))[_0x3e59e0(0x213)](),_0x530300=Boolean(_0x5ce450),_0x500c49=allowRetargetArgs(_0x530300),_0x1db889=_0xe4f1e9(_0x1e7e4c,_0x1df85c[_0x3e59e0(0x1f4)],{...remoteFirstMetadataOptions(),..._0x500c49[0x0]}),_0x11b09b=await _0x771c65(_0x1df85c[_0x3e59e0(0x1f4)],_0x1db889[_0x3e59e0(0x200)]);throwIfBuiltinPushTarget(_0x11b09b);if(_0x11b09b){if(_0x11b09b[_0x3e59e0(0x202)]!=='personal'){if(_0x530300)throw CliErrors[_0x3e59e0(0x22b)](_0x3e59e0(0x207)+_0x1db889[_0x3e59e0(0x200)]+'\x20has\x20scope=\x22'+(_0x11b09b[_0x3e59e0(0x202)]??'unknown')+'\x22.');_0x13bc7e(_0x1e7e4c,_0x11b09b,_0x1df85c[_0x3e59e0(0x1f4)]);}else!_0x530300&&_0x13bc7e(_0x1e7e4c,_0x11b09b,_0x1df85c[_0x3e59e0(0x1f4)]);}const _0x5ea484=_0x4c46da(_0x1e7e4c,_0x1df85c[_0x3e59e0(0x1f4)],{..._0x11b09b?remotePersonalReadOptions(_0x530300,_0x500c49[0x0]):remoteMissingPersonalReadOptions(_0x500c49[0x0]),..._0x43aa23}),_0xad6a36=_0x11b09b?.[_0x3e59e0(0x202)]===_0x3e59e0(0x219)&&_0x11b09b[_0x3e59e0(0x200)]===_0x5ea484['skillCode']?_0x11b09b:undefined,_0x1711a1=_0x530300&&_0xad6a36?withRetargetExistingMetadata(_0x5ea484['input'],_0xad6a36,{'preferInputSkillName':Boolean(_0x5ea484[_0x3e59e0(0x201)])}):_0x5ea484[_0x3e59e0(0x210)],_0x167408=_0x530300?buildRetargetWarning(_0x1db889[_0x3e59e0(0x1f9)],_0x1df85c[_0x3e59e0(0x1f4)]):[];_0x399763={'scope':_0x3e59e0(0x219),'payload':_0x5ea484,'publishInput':withDiagram(_0x1711a1,_0x113748),'remoteForPreflight':_0xad6a36,'existing':_0xad6a36,'warnings':[..._0xa3f917['warnings'],..._0x167408]};}const _0x4a830b=await runRemoteContentPreflight({'scope':_0x399763['scope'],'remote':_0x399763[_0x3e59e0(0x20f)],'publishInput':_0x399763[_0x3e59e0(0x1f3)],'skillCode':_0x399763[_0x3e59e0(0x1f1)]['skillCode'],'appCode':_0x1df85c[_0x3e59e0(0x1f4)],'downloadRuntimeSkillPackage':_0x56e4a1,'verifyRuntimeSkillBundle':_0x1ac299});if(_0x4a830b[_0x3e59e0(0x225)]===_0x3e59e0(0x1ed))return _0x399763[_0x3e59e0(0x202)]===_0x3e59e0(0x208)?_0x19d156(_0x1e7e4c,_0x4a830b[_0x3e59e0(0x21c)],_0x1df85c['appCode'],{'scope':'company'}):_0x19d156(_0x1e7e4c,_0x4a830b[_0x3e59e0(0x21c)],_0x1df85c['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4a830b['savedSkill']),'scope':_0x399763['scope'],..._0x399763[_0x3e59e0(0x202)]===_0x3e59e0(0x219)?{'warnings':_0x399763['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x399763[_0x3e59e0(0x202)])+_0x3e59e0(0x1fa)+_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)]+_0x3e59e0(0x216)};if(_0x399763[_0x3e59e0(0x202)]===_0x3e59e0(0x208)){const _0x5d5a8f=await _0x5b7b19(_0x1df85c[_0x3e59e0(0x1f4)],_0x399763[_0x3e59e0(0x1f3)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x3e59e0(0x208),_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)],_0x5d5a8f),throwIfUnconfirmedPublishWarnings(_0x3e59e0(0x208),_0x399763['payload'][_0x3e59e0(0x200)],_0x5d5a8f[_0x3e59e0(0x21d)],_0x4f2ab7);const _0x39b126=await _0x2cb180(_0x1df85c[_0x3e59e0(0x1f4)],_0x399763[_0x3e59e0(0x1f3)],{'confirmWarnings':_0x4f2ab7});return _0x19d156(_0x1e7e4c,{..._0x39b126,'files':_0x399763['publishInput'][_0x3e59e0(0x1f2)]},_0x1df85c[_0x3e59e0(0x1f4)],{'scope':_0x3e59e0(0x208)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x39b126),'scope':_0x3e59e0(0x208),'reviewState':_0x3e59e0(0x21b),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x5d5a8f['warnings']}},'message':_0x3e59e0(0x218)+_0x399763[_0x3e59e0(0x1f1)]['skillCode']+_0x3e59e0(0x1ee)+(_0x39b126[_0x3e59e0(0x212)]??'(unknown)')+'\x20for\x20review'};}const _0xea4dd8=await _0x5b7b19(_0x1df85c[_0x3e59e0(0x1f4)],_0x399763[_0x3e59e0(0x1f3)],{'visibility':_0x3e59e0(0x1fe)});throwIfPublishValidationFailed(_0x3e59e0(0x219),_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)],_0xea4dd8),throwIfUnconfirmedPublishWarnings(_0x3e59e0(0x219),_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)],_0xea4dd8[_0x3e59e0(0x21d)],_0x4f2ab7);const _0x3aa0b0={'confirmWarnings':_0x4f2ab7},_0x255f0f=_0x399763['existing']?await _0x3e3c67(_0x399763['payload'][_0x3e59e0(0x200)],_0x1df85c[_0x3e59e0(0x1f4)],_0x399763[_0x3e59e0(0x1f3)],_0x3aa0b0):await _0x2352b0(_0x1df85c['appCode'],_0x399763[_0x3e59e0(0x1f3)],_0x3aa0b0);let _0x2bda7a=_0x255f0f;if(isMultiFileManifest(_0x399763[_0x3e59e0(0x1f3)]['files'])){const _0x2bf43b=await _0x56e4a1(_0x3e59e0(0x219),_0x255f0f['skillCode']||_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)],_0x1df85c['appCode']);_0x1ac299(_0x399763[_0x3e59e0(0x1f3)][_0x3e59e0(0x1f2)],_0x2bf43b),_0x2bda7a={..._0x255f0f,'files':_0x399763[_0x3e59e0(0x1f3)][_0x3e59e0(0x1f2)]};}else{if(isPackageBackedManifest(_0x255f0f['files'])){const _0x594a6e=await _0x56e4a1(_0x3e59e0(0x219),_0x255f0f['skillCode']||_0x399763['payload'][_0x3e59e0(0x200)],_0x1df85c['appCode']);_0xa59bc(_0x255f0f[_0x3e59e0(0x1f2)],_0x594a6e);}}return _0x19d156(_0x1e7e4c,_0x2bda7a,_0x1df85c[_0x3e59e0(0x1f4)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x255f0f),'warnings':_0x399763['warnings'],'validation':{'warnings':_0xea4dd8[_0x3e59e0(0x21d)]},'diagramBound':!![]},'message':_0x399763[_0x3e59e0(0x228)]?_0x3e59e0(0x1f6)+_0x399763['payload']['skillCode']:_0x3e59e0(0x1f5)+_0x399763[_0x3e59e0(0x1f1)][_0x3e59e0(0x200)]};}function scopeLabel(_0x1fcad2){const _0x399e57=a53_0x4341;return _0x1fcad2===_0x399e57(0x208)?'Company':_0x399e57(0x206);}function withDiagram(_0x1f6fd7,_0x4a4148){return{..._0x1f6fd7,'diagram':_0x4a4148};}function diagramPackageExclusion(_0x27c363){return _0x27c363?{'excludedFilePaths':[_0x27c363]}:{};}
@@ -1 +1 @@
1
- (function(_0xd3899,_0x20851d){const _0xde715a=a54_0x132a,_0x150d25=_0xd3899();while(!![]){try{const _0x202f9e=parseInt(_0xde715a(0xaf))/0x1*(parseInt(_0xde715a(0xb5))/0x2)+-parseInt(_0xde715a(0xac))/0x3+parseInt(_0xde715a(0xab))/0x4+-parseInt(_0xde715a(0xb8))/0x5*(parseInt(_0xde715a(0xb7))/0x6)+-parseInt(_0xde715a(0xbd))/0x7+-parseInt(_0xde715a(0xa7))/0x8+-parseInt(_0xde715a(0x9f))/0x9*(-parseInt(_0xde715a(0xa4))/0xa);if(_0x202f9e===_0x20851d)break;else _0x150d25['push'](_0x150d25['shift']());}catch(_0x4c1603){_0x150d25['push'](_0x150d25['shift']());}}}(a54_0x5ef5,0xd115d));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x287e19){const _0x104bec=a54_0x132a,_0x11b748=_0x287e19[_0x104bec(0xc0)](_0x104bec(0x9e))||_0x104bec(0xa2);if(_0x11b748===_0x104bec(0xa2)||_0x11b748===_0x104bec(0xa8))return _0x11b748;throw CliErrors[_0x104bec(0x9c)](_0x104bec(0xb9)+_0x11b748+'\x22.');}export function allowRetargetArgs(_0x199efe){return _0x199efe?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a54_0x132a(_0x25437d,_0x15ba30){_0x25437d=_0x25437d-0x96;const _0x5ef52a=a54_0x5ef5();let _0x132a3a=_0x5ef52a[_0x25437d];return _0x132a3a;}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a54_0x5ef5(){const _0x7f8e95=['identical','67172cdWvus','warning','\x20Skill\x20push\x20validation\x20failed\x20for\x20','str','content','Company','errors','Builtin\x20Skill\x20','version','downloadRuntimeSkillPackage','Warnings:\x20','Review\x20each\x20warning\x20before\x20continuing.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','validation','skill-metadata-appcode-retargeted','scope','2051523PukBiE','length','join','personal','files','140DwXMNm','publishInput','Personal','5737632teGXFX','company','skillCode','Local\x20Skill\x20metadata\x20appCode\x20','2321676JpjzjA','4289142aohUwb','appCode','SkillHub\x20validation\x20returned\x20invalid.','1YSZJZg','(unknown)','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','not-applicable','different','792634Afidcr','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','364758fkYKdw','95ZblcfI','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','valid','remote'];a54_0x5ef5=function(){return _0x7f8e95;};return a54_0x5ef5();}export function remoteMissingCompanyReadOptions(){const _0x4f3f59=a54_0x132a;return{'targetScope':_0x4f3f59(0xa8),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x973c76={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x973c76};}export function remotePersonalReadOptions(_0x49d123,_0x547491={}){return{'ignoreInvalidMetadata':!![],..._0x49d123?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x547491};}export function throwIfBuiltinPushTarget(_0x51a2c7){const _0x35854f=a54_0x132a;if(_0x51a2c7?.[_0x35854f(0x9e)]!=='builtin')return;throw CliErrors[_0x35854f(0x9c)](_0x35854f(0x96)+(_0x51a2c7['skillCode']??_0x35854f(0xb0))+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x28b889,_0x1b892e,_0x218bfb){const _0x28e532=a54_0x132a;if(_0x218bfb[_0x28e532(0xc3)]['length']===0x0&&(_0x218bfb[_0x28e532(0xba)]||_0x218bfb['warnings'][_0x28e532(0xa0)]>0x0))return;const _0x2d0b87=_0x218bfb[_0x28e532(0xc3)][_0x28e532(0xa0)]>0x0?_0x218bfb[_0x28e532(0xc3)][_0x28e532(0xa1)](';\x20'):_0x28e532(0xae),_0x4b19a0=_0x28b889===_0x28e532(0xa8)?_0x28e532(0xc2):_0x28e532(0xa6);throw CliErrors['validation'](_0x4b19a0+_0x28e532(0xbf)+_0x1b892e+'.',_0x2d0b87);}export function throwIfUnconfirmedPublishWarnings(_0x56cc41,_0x566986,_0x12d4b0,_0x2a8843){const _0x4e257f=a54_0x132a;if(_0x12d4b0[_0x4e257f(0xa0)]===0x0||_0x2a8843)return;const _0x40403f=_0x56cc41==='company'?_0x4e257f(0xc2):_0x4e257f(0xa6);throw CliErrors[_0x4e257f(0x9c)](_0x40403f+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x566986+'.',[_0x4e257f(0x9a),_0x4e257f(0xb1),_0x4e257f(0x9b),_0x4e257f(0x99)+_0x12d4b0[_0x4e257f(0xa1)](';\x20')][_0x4e257f(0xa1)]('\x20'));}export function buildRetargetWarning(_0x1438ad,_0x329c8b){const _0x2db05f=a54_0x132a;if(!_0x1438ad?.[_0x2db05f(0xad)]||_0x1438ad['appCode']===_0x329c8b)return[];return[{'level':_0x2db05f(0xbe),'ruleId':_0x2db05f(0x9d),'file':'lovrabet.skill.json','message':_0x2db05f(0xaa)+_0x1438ad['appCode']+_0x2db05f(0xb6)+_0x329c8b+'\x20after\x20successful\x20push.','suggestion':_0x2db05f(0xb2)}];}export async function runRemoteContentPreflight(_0x2c5ffb){const _0x2f6c7e=a54_0x132a;if(!_0x2c5ffb['remote']||_0x2c5ffb[_0x2f6c7e(0xbb)][_0x2f6c7e(0x9e)]!==_0x2c5ffb['scope']||!_0x2c5ffb[_0x2f6c7e(0xa5)][_0x2f6c7e(0xa3)])return{'status':_0x2f6c7e(0xb3)};const _0x102298=_0x2c5ffb[_0x2f6c7e(0xbb)]['skillCode']||_0x2c5ffb[_0x2f6c7e(0xa9)];if(!_0x102298)return{'status':_0x2f6c7e(0xb3)};const _0x3a92ef=await _0x2c5ffb[_0x2f6c7e(0x98)](_0x2c5ffb[_0x2f6c7e(0x9e)],_0x102298,_0x2c5ffb['appCode'],_0x2c5ffb[_0x2f6c7e(0xbb)][_0x2f6c7e(0x97)]);try{_0x2c5ffb['verifyRuntimeSkillBundle'](_0x2c5ffb[_0x2f6c7e(0xa5)][_0x2f6c7e(0xa3)],_0x3a92ef);}catch{return{'status':_0x2f6c7e(0xb4)};}return{'status':_0x2f6c7e(0xbc),'savedSkill':{..._0x2c5ffb[_0x2f6c7e(0xbb)],'content':_0x2c5ffb['publishInput'][_0x2f6c7e(0xc1)],'files':_0x2c5ffb[_0x2f6c7e(0xa5)][_0x2f6c7e(0xa3)]}};}
1
+ (function(_0x3a4ef5,_0x7b5d51){const _0x56b5c2=a54_0xc427,_0x42c8b1=_0x3a4ef5();while(!![]){try{const _0x4b6a8e=-parseInt(_0x56b5c2(0x1e2))/0x1+-parseInt(_0x56b5c2(0x1dd))/0x2+parseInt(_0x56b5c2(0x1eb))/0x3*(-parseInt(_0x56b5c2(0x1de))/0x4)+parseInt(_0x56b5c2(0x1cc))/0x5+-parseInt(_0x56b5c2(0x1d0))/0x6*(-parseInt(_0x56b5c2(0x1c7))/0x7)+parseInt(_0x56b5c2(0x1c2))/0x8*(-parseInt(_0x56b5c2(0x1df))/0x9)+-parseInt(_0x56b5c2(0x1c5))/0xa*(-parseInt(_0x56b5c2(0x1e6))/0xb);if(_0x4b6a8e===_0x7b5d51)break;else _0x42c8b1['push'](_0x42c8b1['shift']());}catch(_0x2ccd27){_0x42c8b1['push'](_0x42c8b1['shift']());}}}(a54_0x1277,0x997ea));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4b4646){const _0x2166c6=a54_0xc427,_0x147ca7=_0x4b4646[_0x2166c6(0x1e9)](_0x2166c6(0x1c8))||_0x2166c6(0x1e4);if(_0x147ca7==='personal'||_0x147ca7===_0x2166c6(0x1c4))return _0x147ca7;throw CliErrors['validation'](_0x2166c6(0x1c0)+_0x147ca7+'\x22.');}export function allowRetargetArgs(_0x1c2f66){return _0x1c2f66?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x4f898e=a54_0xc427;return{'targetScope':_0x4f898e(0x1c4),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a54_0xc427(_0x5a2bbb,_0x2b5d62){_0x5a2bbb=_0x5a2bbb-0x1c0;const _0x1277af=a54_0x1277();let _0xc42763=_0x1277af[_0x5a2bbb];return _0xc42763;}export function remoteMissingPersonalReadOptions(_0x9abc88={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x9abc88};}export function remotePersonalReadOptions(_0x34160a,_0x18d9ee={}){return{'ignoreInvalidMetadata':!![],..._0x34160a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x18d9ee};}export function throwIfBuiltinPushTarget(_0xf87989){const _0x283570=a54_0xc427;if(_0xf87989?.[_0x283570(0x1c8)]!==_0x283570(0x1cb))return;throw CliErrors[_0x283570(0x1cf)](_0x283570(0x1dc)+(_0xf87989[_0x283570(0x1ef)]??'(unknown)')+_0x283570(0x1da),_0x283570(0x1e1));}export function throwIfPublishValidationFailed(_0x11a0af,_0x21e675,_0x5c170d){const _0x549595=a54_0xc427;if(_0x5c170d[_0x549595(0x1e5)]['length']===0x0&&(_0x5c170d[_0x549595(0x1d4)]||_0x5c170d[_0x549595(0x1e7)][_0x549595(0x1cd)]>0x0))return;const _0x26775e=_0x5c170d[_0x549595(0x1e5)][_0x549595(0x1cd)]>0x0?_0x5c170d[_0x549595(0x1e5)][_0x549595(0x1d7)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x5d1c68=_0x11a0af===_0x549595(0x1c4)?_0x549595(0x1e0):'Personal';throw CliErrors['validation'](_0x5d1c68+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x21e675+'.',_0x26775e);}function a54_0x1277(){const _0x2926fd=['join','remote','warning','\x20cannot\x20be\x20pushed.','Warnings:\x20','Builtin\x20Skill\x20','1395284eEvfPu','37804mWbxMu','243BqMyfP','Company','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','1137756SpcOkl','publishInput','personal','errors','11OypBnn','warnings','files','str','Review\x20each\x20warning\x20before\x20continuing.','168EDpOOT','appCode','downloadRuntimeSkillPackage','Local\x20Skill\x20metadata\x20appCode\x20','skillCode','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','217480easaDx','skill-metadata-appcode-retargeted','company','20153930AFSpRN','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','42YZwGhw','scope','not-applicable','version','builtin','4208110joVRRw','length','content','validation','870348qcCJsp','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','\x20after\x20successful\x20push.','valid','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Personal'];a54_0x1277=function(){return _0x2926fd;};return a54_0x1277();}export function throwIfUnconfirmedPublishWarnings(_0x9b5f9d,_0x3e0e96,_0x3587c5,_0x17dba7){const _0x4a2067=a54_0xc427;if(_0x3587c5[_0x4a2067(0x1cd)]===0x0||_0x17dba7)return;const _0x5eeb13=_0x9b5f9d===_0x4a2067(0x1c4)?'Company':_0x4a2067(0x1d6);throw CliErrors[_0x4a2067(0x1cf)](_0x5eeb13+_0x4a2067(0x1d1)+_0x3e0e96+'.',[_0x4a2067(0x1ea),_0x4a2067(0x1d2),_0x4a2067(0x1c6),_0x4a2067(0x1db)+_0x3587c5[_0x4a2067(0x1d7)](';\x20')][_0x4a2067(0x1d7)]('\x20'));}export function buildRetargetWarning(_0x14cd29,_0x4ba519){const _0x439d91=a54_0xc427;if(!_0x14cd29?.[_0x439d91(0x1ec)]||_0x14cd29[_0x439d91(0x1ec)]===_0x4ba519)return[];return[{'level':_0x439d91(0x1d9),'ruleId':_0x439d91(0x1c3),'file':'lovrabet.skill.json','message':_0x439d91(0x1ee)+_0x14cd29['appCode']+_0x439d91(0x1c1)+_0x4ba519+_0x439d91(0x1d3),'suggestion':_0x439d91(0x1d5)}];}export async function runRemoteContentPreflight(_0x5d4df6){const _0x4904c2=a54_0xc427;if(!_0x5d4df6[_0x4904c2(0x1d8)]||_0x5d4df6[_0x4904c2(0x1d8)]['scope']!==_0x5d4df6[_0x4904c2(0x1c8)]||!_0x5d4df6['publishInput']['files'])return{'status':_0x4904c2(0x1c9)};const _0x24deef=_0x5d4df6['remote'][_0x4904c2(0x1ef)]||_0x5d4df6[_0x4904c2(0x1ef)];if(!_0x24deef)return{'status':_0x4904c2(0x1c9)};const _0x3d3d8d=await _0x5d4df6[_0x4904c2(0x1ed)](_0x5d4df6[_0x4904c2(0x1c8)],_0x24deef,_0x5d4df6[_0x4904c2(0x1ec)],_0x5d4df6[_0x4904c2(0x1d8)][_0x4904c2(0x1ca)]);try{_0x5d4df6['verifyRuntimeSkillBundle'](_0x5d4df6[_0x4904c2(0x1e3)][_0x4904c2(0x1e8)],_0x3d3d8d);}catch{return{'status':'different'};}return{'status':'identical','savedSkill':{..._0x5d4df6[_0x4904c2(0x1d8)],'content':_0x5d4df6[_0x4904c2(0x1e3)][_0x4904c2(0x1ce)],'files':_0x5d4df6[_0x4904c2(0x1e3)][_0x4904c2(0x1e8)]}};}
@@ -1 +1 @@
1
- (function(_0x518bee,_0x21a4f5){const _0xdbee42=a55_0x4773,_0x508455=_0x518bee();while(!![]){try{const _0x2df4d3=parseInt(_0xdbee42(0x96))/0x1+parseInt(_0xdbee42(0x97))/0x2+parseInt(_0xdbee42(0xa5))/0x3*(-parseInt(_0xdbee42(0xa1))/0x4)+parseInt(_0xdbee42(0x9a))/0x5+-parseInt(_0xdbee42(0x99))/0x6+parseInt(_0xdbee42(0x9c))/0x7*(-parseInt(_0xdbee42(0x94))/0x8)+-parseInt(_0xdbee42(0x9f))/0x9;if(_0x2df4d3===_0x21a4f5)break;else _0x508455['push'](_0x508455['shift']());}catch(_0x2639d2){_0x508455['push'](_0x508455['shift']());}}}(a55_0x532b,0xa5494));export function withRetargetExistingMetadata(_0x27b4d4,_0x478b2d,_0x444d80={}){const _0x542a09=a55_0x4773,_0x48a018=_0x444d80[_0x542a09(0x9e)]?_0x27b4d4[_0x542a09(0xa2)]??_0x478b2d[_0x542a09(0xa2)]:_0x478b2d[_0x542a09(0xa2)]??_0x27b4d4[_0x542a09(0xa2)];return{..._0x27b4d4,'skillName':_0x48a018,'description':_0x478b2d[_0x542a09(0x9b)]??_0x27b4d4[_0x542a09(0x9b)],'tags':Array[_0x542a09(0xa3)](_0x478b2d['tags'])?_0x478b2d[_0x542a09(0xa0)]:_0x27b4d4[_0x542a09(0xa0)],'version':_0x478b2d[_0x542a09(0xa6)]??_0x27b4d4[_0x542a09(0xa6)],'sourceSessionId':_0x478b2d['sourceSessionId']??_0x27b4d4['sourceSessionId']};}function a55_0x532b(){const _0x3c243d=['warning','appCode','48AACqgF','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','883333GtGtGg','2590730ysehoF','lovrabet.skill.json','5539128ViIkLO','3120715HdBRmE','description','787052cDujxJ','Local\x20Skill\x20metadata\x20appCode\x20','preferInputSkillName','2478663HHdPig','tags','852awYhyC','skillName','isArray','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','3558naLvhJ','version','skill-metadata-appcode-retargeted'];a55_0x532b=function(){return _0x3c243d;};return a55_0x532b();}function a55_0x4773(_0x22ce20,_0x1726b5){_0x22ce20=_0x22ce20-0x94;const _0x532bae=a55_0x532b();let _0x4773e1=_0x532bae[_0x22ce20];return _0x4773e1;}export function buildRetargetWarning(_0x5672c,_0x464963){const _0x11661a=a55_0x4773;if(!_0x5672c?.[_0x11661a(0xa9)]||_0x5672c[_0x11661a(0xa9)]===_0x464963)return[];return[{'level':_0x11661a(0xa8),'ruleId':_0x11661a(0xa7),'file':_0x11661a(0x98),'message':_0x11661a(0x9d)+_0x5672c[_0x11661a(0xa9)]+_0x11661a(0x95)+_0x464963+'\x20after\x20successful\x20push.','suggestion':_0x11661a(0xa4)}];}
1
+ function a55_0x3052(){const _0xd679a5=['skillName','preferInputSkillName','2296185dMNShi','lovrabet.skill.json','7141455RpvoRY','description','appCode','4881359pPQCMK','6eTVNJY','8790912zMrvEp','tags','3lnPhOO','728284wNGZUo','\x20after\x20successful\x20push.','2993348dCgtVy','warning','1872752AHgeEe','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Local\x20Skill\x20metadata\x20appCode\x20','sourceSessionId','skill-metadata-appcode-retargeted'];a55_0x3052=function(){return _0xd679a5;};return a55_0x3052();}(function(_0x3fa3f1,_0x227f22){const _0x5d55d1=a55_0x444a,_0x4d5eb7=_0x3fa3f1();while(!![]){try{const _0xf74612=parseInt(_0x5d55d1(0x13d))/0x1+-parseInt(_0x5d55d1(0x141))/0x2+parseInt(_0x5d55d1(0x13c))/0x3*(-parseInt(_0x5d55d1(0x13f))/0x4)+parseInt(_0x5d55d1(0x148))/0x5+parseInt(_0x5d55d1(0x139))/0x6*(-parseInt(_0x5d55d1(0x138))/0x7)+parseInt(_0x5d55d1(0x13a))/0x8+parseInt(_0x5d55d1(0x14a))/0x9;if(_0xf74612===_0x227f22)break;else _0x4d5eb7['push'](_0x4d5eb7['shift']());}catch(_0x22a53b){_0x4d5eb7['push'](_0x4d5eb7['shift']());}}}(a55_0x3052,0xaa5e6));export function withRetargetExistingMetadata(_0x4eef2a,_0x54c3bf,_0x3e2aab={}){const _0x474693=a55_0x444a,_0x1398d1=_0x3e2aab[_0x474693(0x147)]?_0x4eef2a[_0x474693(0x146)]??_0x54c3bf['skillName']:_0x54c3bf[_0x474693(0x146)]??_0x4eef2a[_0x474693(0x146)];return{..._0x4eef2a,'skillName':_0x1398d1,'description':_0x54c3bf[_0x474693(0x14b)]??_0x4eef2a['description'],'tags':Array['isArray'](_0x54c3bf[_0x474693(0x13b)])?_0x54c3bf['tags']:_0x4eef2a[_0x474693(0x13b)],'version':_0x54c3bf['version']??_0x4eef2a['version'],'sourceSessionId':_0x54c3bf[_0x474693(0x144)]??_0x4eef2a[_0x474693(0x144)]};}function a55_0x444a(_0x5070ae,_0x41cfd1){_0x5070ae=_0x5070ae-0x137;const _0x305233=a55_0x3052();let _0x444ad6=_0x305233[_0x5070ae];return _0x444ad6;}export function buildRetargetWarning(_0x209cb2,_0x464fd5){const _0x26a031=a55_0x444a;if(!_0x209cb2?.[_0x26a031(0x137)]||_0x209cb2['appCode']===_0x464fd5)return[];return[{'level':_0x26a031(0x140),'ruleId':_0x26a031(0x145),'file':_0x26a031(0x149),'message':_0x26a031(0x143)+_0x209cb2['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x464fd5+_0x26a031(0x13e),'suggestion':_0x26a031(0x142)}];}
@@ -1 +1 @@
1
- function a56_0x55b0(_0x3c72fe,_0x2b4ea3){_0x3c72fe=_0x3c72fe-0x1f3;const _0x5a4e0a=a56_0x5a4e();let _0x55b0ad=_0x5a4e0a[_0x3c72fe];return _0x55b0ad;}(function(_0x36d575,_0x2cb46d){const _0x570a1f=a56_0x55b0,_0x5b3387=_0x36d575();while(!![]){try{const _0x2f9d1f=parseInt(_0x570a1f(0x1f4))/0x1*(-parseInt(_0x570a1f(0x203))/0x2)+parseInt(_0x570a1f(0x202))/0x3+-parseInt(_0x570a1f(0x201))/0x4+parseInt(_0x570a1f(0x1f3))/0x5*(-parseInt(_0x570a1f(0x1f8))/0x6)+-parseInt(_0x570a1f(0x1f5))/0x7*(-parseInt(_0x570a1f(0x200))/0x8)+parseInt(_0x570a1f(0x1fb))/0x9+parseInt(_0x570a1f(0x1fc))/0xa*(parseInt(_0x570a1f(0x1fd))/0xb);if(_0x2f9d1f===_0x2cb46d)break;else _0x5b3387['push'](_0x5b3387['shift']());}catch(_0x2a7a22){_0x5b3387['push'](_0x5b3387['shift']());}}}(a56_0x5a4e,0x2e406));function a56_0x5a4e(){const _0x4df58e=['Unsupported\x20Skill\x20list\x20scope:\x20','1792026wrViOi','90LuiYZm','510103tccfzU','trim','personal','5752YubQwr','792096WazPUA','66780IGGTAj','417546TcgoMH','Unsupported\x20Skill\x20sync\x20scope:\x20','121185NyTfxk','1ozgnDf','1946TlpWLd','all','validation','60oLBhBK','company'];a56_0x5a4e=function(){return _0x4df58e;};return a56_0x5a4e();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3c9cf3){const _0x5f0f69=a56_0x55b0,_0x1f82a6=_0x3c9cf3[_0x5f0f69(0x1fe)]();if(!_0x1f82a6||_0x1f82a6===_0x5f0f69(0x1f6))return['personal',_0x5f0f69(0x1f9)];if(_0x1f82a6===_0x5f0f69(0x1ff)||_0x1f82a6===_0x5f0f69(0x1f9))return[_0x1f82a6];throw CliErrors[_0x5f0f69(0x1f7)](_0x5f0f69(0x204)+_0x3c9cf3);}export function normalizeListScope(_0x469155){const _0xabb9f0=a56_0x55b0,_0x3fac06=_0x469155[_0xabb9f0(0x1fe)]();if(!_0x3fac06)return'all';if(_0x3fac06==='personal'||_0x3fac06===_0xabb9f0(0x1f9)||_0x3fac06===_0xabb9f0(0x1f6))return _0x3fac06;throw CliErrors[_0xabb9f0(0x1f7)](_0xabb9f0(0x1fa)+_0x469155);}export function shouldListScope(_0x2c3f24,_0x212cbe){const _0x3e8e08=a56_0x55b0;if(_0x2c3f24===_0x3e8e08(0x1f6))return!![];return _0x2c3f24===_0x212cbe;}export function listScopeToRuntimeScopes(_0x583b28){const _0x447e44=a56_0x55b0;if(_0x583b28===_0x447e44(0x1f6))return['personal','company'];return[_0x583b28===_0x447e44(0x1f9)?_0x447e44(0x1f9):_0x583b28];}export function listScopeToRemoteScope(_0x5066e6){return _0x5066e6;}
1
+ (function(_0x13b32d,_0x174b57){const _0x1e7142=a56_0x2395,_0x275741=_0x13b32d();while(!![]){try{const _0x260504=parseInt(_0x1e7142(0x80))/0x1+-parseInt(_0x1e7142(0x7c))/0x2+-parseInt(_0x1e7142(0x87))/0x3*(-parseInt(_0x1e7142(0x83))/0x4)+-parseInt(_0x1e7142(0x7b))/0x5+-parseInt(_0x1e7142(0x7f))/0x6+-parseInt(_0x1e7142(0x81))/0x7+-parseInt(_0x1e7142(0x82))/0x8;if(_0x260504===_0x174b57)break;else _0x275741['push'](_0x275741['shift']());}catch(_0x55ac5f){_0x275741['push'](_0x275741['shift']());}}}(a56_0x37dc,0x7739d));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x39b91a){const _0x515123=a56_0x2395,_0x589e84=_0x39b91a['trim']();if(!_0x589e84||_0x589e84===_0x515123(0x7e))return['personal','company'];if(_0x589e84===_0x515123(0x84)||_0x589e84===_0x515123(0x7a))return[_0x589e84];throw CliErrors[_0x515123(0x7d)](_0x515123(0x86)+_0x39b91a);}export function normalizeListScope(_0x430d10){const _0x1c7788=a56_0x2395,_0x5a1e7d=_0x430d10[_0x1c7788(0x79)]();if(!_0x5a1e7d)return _0x1c7788(0x7e);if(_0x5a1e7d==='personal'||_0x5a1e7d===_0x1c7788(0x7a)||_0x5a1e7d===_0x1c7788(0x7e))return _0x5a1e7d;throw CliErrors[_0x1c7788(0x7d)](_0x1c7788(0x85)+_0x430d10);}export function shouldListScope(_0x495994,_0x3a2dd6){if(_0x495994==='all')return!![];return _0x495994===_0x3a2dd6;}function a56_0x2395(_0x54cbea,_0x2d65b7){_0x54cbea=_0x54cbea-0x79;const _0x37dc48=a56_0x37dc();let _0x23955a=_0x37dc48[_0x54cbea];return _0x23955a;}export function listScopeToRuntimeScopes(_0x7880fb){const _0x48739e=a56_0x2395;if(_0x7880fb===_0x48739e(0x7e))return[_0x48739e(0x84),'company'];return[_0x7880fb===_0x48739e(0x7a)?'company':_0x7880fb];}export function listScopeToRemoteScope(_0x3c4ac4){return _0x3c4ac4;}function a56_0x37dc(){const _0x6e1046=['Unsupported\x20Skill\x20list\x20scope:\x20','Unsupported\x20Skill\x20sync\x20scope:\x20','244569ZGsMcd','trim','company','11395wagpSV','163368cyKvTp','validation','all','246216vMnwAV','402225UuFEcg','2358391sckJdW','2789736ngKtcn','44ZQqSCj','personal'];a56_0x37dc=function(){return _0x6e1046;};return a56_0x37dc();}
@@ -1 +1 @@
1
- (function(_0x29a8d1,_0x484151){var _0x5dd17e=a57_0x3527,_0x5f5bab=_0x29a8d1();while(!![]){try{var _0x930f4a=-parseInt(_0x5dd17e(0x115))/0x1*(parseInt(_0x5dd17e(0x120))/0x2)+parseInt(_0x5dd17e(0x11a))/0x3+parseInt(_0x5dd17e(0x11e))/0x4*(-parseInt(_0x5dd17e(0x128))/0x5)+-parseInt(_0x5dd17e(0x117))/0x6*(-parseInt(_0x5dd17e(0x121))/0x7)+-parseInt(_0x5dd17e(0x127))/0x8+-parseInt(_0x5dd17e(0x119))/0x9*(-parseInt(_0x5dd17e(0x116))/0xa)+parseInt(_0x5dd17e(0x123))/0xb*(parseInt(_0x5dd17e(0x113))/0xc);if(_0x930f4a===_0x484151)break;else _0x5f5bab['push'](_0x5f5bab['shift']());}catch(_0x47eec6){_0x5f5bab['push'](_0x5f5bab['shift']());}}}(a57_0x5186,0x5108b));export function summarizeRuntimeSkill(_0x3960fa){var _0x775496=a57_0x3527;return{'id':_0x3960fa['id'],'skillCode':_0x3960fa['skillCode'],'skillName':_0x3960fa[_0x775496(0x11b)],'scope':_0x3960fa[_0x775496(0x11c)],'version':_0x3960fa[_0x775496(0x114)],'readonly':_0x3960fa['readonly']};}function a57_0x3527(_0x2e808a,_0x3000aa){_0x2e808a=_0x2e808a-0x113;var _0x5186d2=a57_0x5186();var _0x3527b7=_0x5186d2[_0x2e808a];return _0x3527b7;}function a57_0x5186(){var _0x36fa95=['30lSPyBP','198dwOIFm','pulledAt','548091HGCwfK','1119999KqDkDD','skillName','scope','readonly','4BSjINP','skillCode','34326MYvCkj','52801MOQuLo','skillMdPath','454179PGHbJm','linkedPaths','metadataPath','tags','4748992eYilqv','895610gmmHdo','132eGtAZa','version','9knSuXf'];a57_0x5186=function(){return _0x36fa95;};return a57_0x5186();}export function summarizeLocalRuntimeSkill(_0x2fd0fa){var _0x3ec7a4=a57_0x3527;return{'id':_0x2fd0fa['id'],'skillCode':_0x2fd0fa[_0x3ec7a4(0x11f)],'skillName':_0x2fd0fa['skillName'],'scope':_0x2fd0fa['scope'],'appCode':_0x2fd0fa['appCode'],'version':_0x2fd0fa['version'],'status':_0x2fd0fa['status'],'readonly':_0x2fd0fa[_0x3ec7a4(0x11d)],'tags':_0x2fd0fa[_0x3ec7a4(0x126)],'dir':_0x2fd0fa['dir'],'cacheDir':_0x2fd0fa['cacheDir'],'skillMdPath':_0x2fd0fa[_0x3ec7a4(0x122)],'metadataPath':_0x2fd0fa[_0x3ec7a4(0x125)],'linkedPaths':_0x2fd0fa[_0x3ec7a4(0x124)],'contentHash':_0x2fd0fa['contentHash'],'treeHash':_0x2fd0fa['treeHash'],'pulledAt':_0x2fd0fa[_0x3ec7a4(0x118)]};}
1
+ function a57_0x3be0(){var _0x5b44e1=['skillMdPath','116zfXsVv','4463CyeMsU','skillName','dir','1379010WEaknr','21027177GqePdX','4295rVDHZH','contentHash','readonly','cacheDir','4095189mMyeXl','2812EBtCGx','2599944XxmFPR','1702902WuQwtA','scope','treeHash','linkedPaths','skillCode','status','version','metadataPath'];a57_0x3be0=function(){return _0x5b44e1;};return a57_0x3be0();}(function(_0x3b5441,_0x428391){var _0x11879a=a57_0xe593,_0x2d0568=_0x3b5441();while(!![]){try{var _0x1be7d9=parseInt(_0x11879a(0x8b))/0x1*(parseInt(_0x11879a(0xa0))/0x2)+-parseInt(_0x11879a(0x8e))/0x3+-parseInt(_0x11879a(0x95))/0x4*(parseInt(_0x11879a(0x90))/0x5)+-parseInt(_0x11879a(0x97))/0x6+-parseInt(_0x11879a(0x94))/0x7+-parseInt(_0x11879a(0x96))/0x8+parseInt(_0x11879a(0x8f))/0x9;if(_0x1be7d9===_0x428391)break;else _0x2d0568['push'](_0x2d0568['shift']());}catch(_0x5888cf){_0x2d0568['push'](_0x2d0568['shift']());}}}(a57_0x3be0,0x5279f));export function summarizeRuntimeSkill(_0x5a39e6){var _0x3364a9=a57_0xe593;return{'id':_0x5a39e6['id'],'skillCode':_0x5a39e6['skillCode'],'skillName':_0x5a39e6[_0x3364a9(0x8c)],'scope':_0x5a39e6[_0x3364a9(0x98)],'version':_0x5a39e6[_0x3364a9(0x9d)],'readonly':_0x5a39e6[_0x3364a9(0x92)]};}function a57_0xe593(_0x18d4a2,_0x2cc98e){_0x18d4a2=_0x18d4a2-0x8b;var _0x3be006=a57_0x3be0();var _0xe59387=_0x3be006[_0x18d4a2];return _0xe59387;}export function summarizeLocalRuntimeSkill(_0x562b7f){var _0x2146cf=a57_0xe593;return{'id':_0x562b7f['id'],'skillCode':_0x562b7f[_0x2146cf(0x9b)],'skillName':_0x562b7f['skillName'],'scope':_0x562b7f[_0x2146cf(0x98)],'appCode':_0x562b7f['appCode'],'version':_0x562b7f[_0x2146cf(0x9d)],'status':_0x562b7f[_0x2146cf(0x9c)],'readonly':_0x562b7f['readonly'],'tags':_0x562b7f['tags'],'dir':_0x562b7f[_0x2146cf(0x8d)],'cacheDir':_0x562b7f[_0x2146cf(0x93)],'skillMdPath':_0x562b7f[_0x2146cf(0x9f)],'metadataPath':_0x562b7f[_0x2146cf(0x9e)],'linkedPaths':_0x562b7f[_0x2146cf(0x9a)],'contentHash':_0x562b7f[_0x2146cf(0x91)],'treeHash':_0x562b7f[_0x2146cf(0x99)],'pulledAt':_0x562b7f['pulledAt']};}
@@ -1 +1 @@
1
- const a58_0x5de3ef=a58_0x1344;(function(_0x141166,_0x200da3){const _0x513d02=a58_0x1344,_0xbb7090=_0x141166();while(!![]){try{const _0x4de050=-parseInt(_0x513d02(0xe0))/0x1*(parseInt(_0x513d02(0xe6))/0x2)+-parseInt(_0x513d02(0xf3))/0x3+parseInt(_0x513d02(0xfb))/0x4+-parseInt(_0x513d02(0xe3))/0x5+-parseInt(_0x513d02(0xdd))/0x6*(-parseInt(_0x513d02(0xdf))/0x7)+-parseInt(_0x513d02(0xfc))/0x8+parseInt(_0x513d02(0xee))/0x9*(parseInt(_0x513d02(0xe4))/0xa);if(_0x4de050===_0x200da3)break;else _0xbb7090['push'](_0xbb7090['shift']());}catch(_0x494f2e){_0xbb7090['push'](_0xbb7090['shift']());}}}(a58_0x1129,0xc0e9b));import{CliErrors}from'../../errors.js';function a58_0x1129(){const _0x3813eb=['.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','toISOString','1181709ZlAHRB','write','SKILL.md','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','Unsupported\x20Skill\x20type:\x20','join','\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=','read','3226772VzMYay','12373448zNDhnB','test','Invalid\x20Skill\x20name:\x20','references/runtime-contract.md','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','Use\x20one\x20of:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','1809750qWxXDy','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','28SytIDR','1vTOKGQ','\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','skillName','4483055CnehTJ','360WbEJPG','trim','2291462epSdAY','\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','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','includes','\x0a\x20\x20created:\x20\x22','references/output-contract.md','#\x20Output\x20Contract\x0a\x0a','\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','689976DephHr','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。'];a58_0x1129=function(){return _0x3813eb;};return a58_0x1129();}export const SKILL_TYPES=[a58_0x5de3ef(0xf4),'read'];export const DEFAULT_SKILL_TARGET='.agents/skills';function a58_0x1344(_0x54a62f,_0x59a139){_0x54a62f=_0x54a62f-0xd8;const _0x1129c0=a58_0x1129();let _0x134484=_0x1129c0[_0x54a62f];return _0x134484;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a58_0x5de3ef(0xd8);export const OUTPUT_CONTRACT_FILE=a58_0x5de3ef(0xeb);export function validateSkillName(_0x4ffedd){const _0x194129=a58_0x5de3ef,_0x62b8be=_0x4ffedd[_0x194129(0xe5)]();if(!SKILL_NAME_PATTERN[_0x194129(0xfd)](_0x62b8be))throw CliErrors['validation'](_0x194129(0xfe)+_0x4ffedd+_0x194129(0xf0),_0x194129(0xe8));return _0x62b8be;}export function normalizeSkillTemplateType(_0x2fa84f){const _0x19534f=a58_0x5de3ef,_0x2138cc=(_0x2fa84f||'write')[_0x19534f(0xe5)]()||_0x19534f(0xf4);if(SKILL_TYPES[_0x19534f(0xe9)](_0x2138cc))return _0x2138cc;throw CliErrors['validation'](_0x19534f(0xf7)+_0x2fa84f,_0x19534f(0xda)+SKILL_TYPES[_0x19534f(0xf8)](',\x20')+'.');}export function renderSkillTemplate(_0x1bd37b){const _0x4449bb=a58_0x5de3ef,_0x4ec92d=validateSkillName(_0x1bd37b[_0x4449bb(0xe2)]),_0x28157c=normalizeSkillTemplateType(_0x1bd37b['type']),_0x252986=_0x1bd37b['timestamp']??new Date()[_0x4449bb(0xf2)]();return{'skillName':_0x4ec92d,'type':_0x28157c,'files':[{'path':_0x4449bb(0xf5),'content':renderSkillMd(_0x4ec92d,_0x28157c,_0x252986)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x4ec92d,_0x28157c)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x4ec92d,_0x28157c)}]};}function renderSkillMd(_0x2ce689,_0x8d5398,_0x50e007){const _0x462522=a58_0x5de3ef,_0x29116d=typeWorkflow(_0x8d5398);return'---\x0aname:\x20'+_0x2ce689+_0x462522(0xdc)+_0x8d5398+_0x462522(0xea)+_0x50e007+_0x462522(0xf1)+_0x2ce689+'\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'+_0x29116d+'\x0a\x0a'+businessStateSection(_0x8d5398)+_0x462522(0xe1);}function renderRuntimeContract(_0x33db92,_0x4b8f14){const _0x46699b=a58_0x5de3ef,_0x1a3c1c=_0x4b8f14===_0x46699b(0xf4)?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0x46699b(0xf6)+_0x33db92+_0x46699b(0xf9)+_0x4b8f14+_0x46699b(0xed)+_0x1a3c1c+_0x46699b(0xe7);}function renderOutputContract(_0x79a9e0,_0x582140){const _0x3b22ad=a58_0x5de3ef,_0x3f01ac=_0x582140===_0x3b22ad(0xf4)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x582140+_0x3b22ad(0xef);return _0x3b22ad(0xec)+_0x79a9e0+'\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'+_0x3f01ac+_0x3b22ad(0xde);}function typeWorkflow(_0x27be99){const _0x505dfd=a58_0x5de3ef;if(_0x27be99===_0x505dfd(0xfa))return _0x505dfd(0xdb);return _0x505dfd(0xd9);}function businessStateSection(_0x1a0ec4){const _0x488c44=a58_0x5de3ef;if(_0x1a0ec4!==_0x488c44(0xf4))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
1
+ const a58_0x1f1a04=a58_0x4348;(function(_0x1efb97,_0x4a9ea5){const _0xf2c9cb=a58_0x4348,_0x2c6350=_0x1efb97();while(!![]){try{const _0x23ee3d=parseInt(_0xf2c9cb(0x1bd))/0x1*(-parseInt(_0xf2c9cb(0x1bf))/0x2)+-parseInt(_0xf2c9cb(0x1d8))/0x3+parseInt(_0xf2c9cb(0x1d4))/0x4*(parseInt(_0xf2c9cb(0x1d9))/0x5)+-parseInt(_0xf2c9cb(0x1dd))/0x6*(parseInt(_0xf2c9cb(0x1d2))/0x7)+parseInt(_0xf2c9cb(0x1cf))/0x8*(parseInt(_0xf2c9cb(0x1ca))/0x9)+-parseInt(_0xf2c9cb(0x1c1))/0xa*(-parseInt(_0xf2c9cb(0x1c4))/0xb)+parseInt(_0xf2c9cb(0x1d0))/0xc;if(_0x23ee3d===_0x4a9ea5)break;else _0x2c6350['push'](_0x2c6350['shift']());}catch(_0x319a41){_0x2c6350['push'](_0x2c6350['shift']());}}}(a58_0x11f3,0x7d737));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a58_0x1f1a04(0x1cd)];export const DEFAULT_SKILL_TARGET=a58_0x1f1a04(0x1cb);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a58_0x1f1a04(0x1c3);export function validateSkillName(_0x5483ea){const _0x12be58=a58_0x1f1a04,_0xe3054d=_0x5483ea[_0x12be58(0x1c5)]();if(!SKILL_NAME_PATTERN[_0x12be58(0x1d7)](_0xe3054d))throw CliErrors[_0x12be58(0x1df)](_0x12be58(0x1d6)+_0x5483ea+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x12be58(0x1de));return _0xe3054d;}export function normalizeSkillTemplateType(_0x307a04){const _0x4dae82=a58_0x1f1a04,_0xa1076e=(_0x307a04||_0x4dae82(0x1d5))['trim']()||'write';if(SKILL_TYPES[_0x4dae82(0x1d1)](_0xa1076e))return _0xa1076e;throw CliErrors[_0x4dae82(0x1df)](_0x4dae82(0x1c0)+_0x307a04,'Use\x20one\x20of:\x20'+SKILL_TYPES['join'](',\x20')+'.');}function a58_0x11f3(){const _0x527f7c=['Invalid\x20Skill\x20name:\x20','test','1670370YJAxlo','101425AzzNWi','\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=','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','skillName','1944fOCbHw','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','validation','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','\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','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','timestamp','87kZUDWm','SKILL.md','6074yzMIPX','Unsupported\x20Skill\x20type:\x20','20770DUrkfx','toISOString','references/output-contract.md','2651VuOMQI','trim','\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','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\x0a\x20\x20created:\x20\x22','180GwJUci','.agents/skills','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','read','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','208608FNrJxJ','3158604VTMxdg','includes','19089NsNphK','---\x0aname:\x20','184EegPxw','write'];a58_0x11f3=function(){return _0x527f7c;};return a58_0x11f3();}function a58_0x4348(_0x273eaa,_0x576762){_0x273eaa=_0x273eaa-0x1bb;const _0x11f3c2=a58_0x11f3();let _0x4348b8=_0x11f3c2[_0x273eaa];return _0x4348b8;}export function renderSkillTemplate(_0x1d424d){const _0x507faf=a58_0x1f1a04,_0x104945=validateSkillName(_0x1d424d[_0x507faf(0x1dc)]),_0x46eab3=normalizeSkillTemplateType(_0x1d424d['type']),_0x3723f4=_0x1d424d[_0x507faf(0x1bc)]??new Date()[_0x507faf(0x1c2)]();return{'skillName':_0x104945,'type':_0x46eab3,'files':[{'path':_0x507faf(0x1be),'content':renderSkillMd(_0x104945,_0x46eab3,_0x3723f4)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x104945,_0x46eab3)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x104945,_0x46eab3)}]};}function renderSkillMd(_0x50d083,_0x12f44c,_0x3df9ff){const _0x2a7767=a58_0x1f1a04,_0x51e851=typeWorkflow(_0x12f44c);return _0x2a7767(0x1d3)+_0x50d083+'\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x12f44c+_0x2a7767(0x1c9)+_0x3df9ff+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x50d083+_0x2a7767(0x1c6)+_0x51e851+'\x0a\x0a'+businessStateSection(_0x12f44c)+'\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(_0x5ba11a,_0x5e8cc8){const _0x18b9c6=a58_0x1f1a04,_0x2390e4=_0x5e8cc8===_0x18b9c6(0x1d5)?_0x18b9c6(0x1bb):'';return _0x18b9c6(0x1c8)+_0x5ba11a+_0x18b9c6(0x1da)+_0x5e8cc8+_0x18b9c6(0x1e1)+_0x2390e4+'\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(_0xe9d368,_0x11018b){const _0x33e498=a58_0x1f1a04,_0x1d3b03=_0x11018b===_0x33e498(0x1d5)?_0x33e498(0x1c7):_0x11018b+_0x33e498(0x1db);return'#\x20Output\x20Contract\x0a\x0a'+_0xe9d368+_0x33e498(0x1e0)+_0x1d3b03+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x3de61d){const _0x1d2176=a58_0x1f1a04;if(_0x3de61d===_0x1d2176(0x1cd))return _0x1d2176(0x1cc);return _0x1d2176(0x1ce);}function businessStateSection(_0x19118b){const _0x4af9fb=a58_0x1f1a04;if(_0x19118b!==_0x4af9fb(0x1d5))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
@@ -1 +1 @@
1
- const a59_0x284117=a59_0x5a1a;(function(_0x385b7e,_0x2d0d11){const _0x343d03=a59_0x5a1a,_0x3495f1=_0x385b7e();while(!![]){try{const _0x387275=-parseInt(_0x343d03(0x1e8))/0x1*(-parseInt(_0x343d03(0x1d0))/0x2)+parseInt(_0x343d03(0x201))/0x3*(parseInt(_0x343d03(0x1ff))/0x4)+parseInt(_0x343d03(0x1e0))/0x5+parseInt(_0x343d03(0x1e4))/0x6*(parseInt(_0x343d03(0x207))/0x7)+-parseInt(_0x343d03(0x1ca))/0x8+parseInt(_0x343d03(0x210))/0x9*(parseInt(_0x343d03(0x1ce))/0xa)+-parseInt(_0x343d03(0x212))/0xb;if(_0x387275===_0x2d0d11)break;else _0x3495f1['push'](_0x3495f1['shift']());}catch(_0x532905){_0x3495f1['push'](_0x3495f1['shift']());}}}(a59_0x5346,0x7a593));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x493c1d}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a59_0x284117(0x1e1),a59_0x284117(0x200)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x32ac9d,_0x13ad4f={}){const _0x4df053=a59_0x284117,_0x430d27=resolveSkillDirectoryRoot(_0x32ac9d),_0x2c8741=[],_0x28bf5e=loadRequiredSkillFile(_0x430d27,_0x2c8741),_0x49e4df=_0x28bf5e?parseFrontmatter(_0x28bf5e[_0x4df053(0x205)]):{'hasFrontmatter':![]};_0x28bf5e&&validateFrontmatter(_0x28bf5e['path'],_0x49e4df,_0x2c8741);validateRuntimeCliReferences(_0x430d27,_0x2c8741);const _0xec636b=_0x2c8741[_0x4df053(0x1df)](_0xf27c88=>_0xf27c88[_0x4df053(0x1f4)]===_0x4df053(0x1f0)),_0x5b364b=_0x2c8741['filter'](_0x39ac17=>_0x39ac17['level']===_0x4df053(0x1c9));return{'ok':_0xec636b[_0x4df053(0x1f7)]===0x0,'dir':_0x430d27,'type':_0x49e4df[_0x4df053(0x218)],'errors':_0xec636b,'warnings':_0x5b364b};}function resolveSkillDirectoryRoot(_0x116a9a){const _0xc078cb=a59_0x284117,_0x3300b6=resolve(_0x116a9a);if(!existsSync(_0x3300b6))throw CliErrors[_0xc078cb(0x209)](_0xc078cb(0x1d2)+_0x116a9a);const _0x3a966d=lstatSync(_0x3300b6);if(_0x3a966d[_0xc078cb(0x1cb)]())return _0x3300b6;if(_0x3a966d[_0xc078cb(0x21b)]()){const _0x3c0384=realpathSync(_0x3300b6);if(lstatSync(_0x3c0384)[_0xc078cb(0x1cb)]())return _0x3c0384;}throw CliErrors['validation'](_0xc078cb(0x1d2)+_0x116a9a);}export function throwIfSkillValidationFailed(_0x42ac72,_0x240c4a=![]){const _0x4fc4b2=a59_0x284117;if(_0x42ac72['ok'])return;const _0x1a5b62=_0x42ac72['errors'][_0x4fc4b2(0x1fd)](_0x37234e=>{const _0x24d362=_0x4fc4b2,_0x200267=_0x37234e['section']?'#'+_0x37234e[_0x24d362(0x1c7)]:'';return _0x37234e[_0x24d362(0x1f4)][_0x24d362(0x1eb)]()+'\x20'+_0x37234e[_0x24d362(0x1d8)]+'\x20'+_0x37234e['file']+_0x200267+':\x20'+_0x37234e['message']+_0x24d362(0x20c)+_0x37234e['suggestion'];});throw CliErrors['validation'](_0x4fc4b2(0x1f5)+_0x1a5b62[_0x4fc4b2(0x214)]('\x0a'),_0x4fc4b2(0x21e));}function a59_0x5346(){const _0x4a8fa8=['metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','map','Frontmatter\x20name\x20is\x20missing.','403076fGWRCC','read','9dyPunt','sql','project','split','content','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','1564514USYECz','Add\x20frontmatter\x20with\x20name\x20and\x20description.','validation','raw','isFile','\x20Fix:\x20','true','page','test','12456GwAoCB','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','1163294sCEerS','config','join','toLowerCase','file','display-name-recommended','type','Frontmatter\x20displayName\x20is\x20missing.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','isSymbolicLink','frontmatter-required','hasFrontmatter','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','workspace','has','internal-skill','section','displayName','warning','6282024hIVIPc','isDirectory','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','string','80SOUeNY','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','2bYueQB','registry','Skill\x20directory\x20not\x20found:\x20','description','object','Frontmatter\x20description\x20is\x20empty.','match','boolean','ruleId','push','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','isArray','example-recommended','data','false','filter','395570RKrqHr','write','logs','example','12WKGkLE','Missing\x20SKILL.md.','internal','name','552649ATsoqd','trim','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','toUpperCase','service','path','bff','rabetbase-cli-reference','error','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','level','Skill\x20validation\x20failed:\x0a','line','length','number','structure-complete'];a59_0x5346=function(){return _0x4a8fa8;};return a59_0x5346();}function loadRequiredSkillFile(_0x5ce2ec,_0x2a0137){const _0x2b8cfc=a59_0x284117,_0x1237d2=resolve(_0x5ce2ec,SKILL_FILE);if(!existsSync(_0x1237d2))return _0x2a0137[_0x2b8cfc(0x1d9)](issue(_0x2b8cfc(0x1f0),_0x2b8cfc(0x1f9),SKILL_FILE,_0x2b8cfc(0x1e5),_0x2b8cfc(0x1cc))),undefined;const _0x228c5e=lstatSync(_0x1237d2);if(_0x228c5e[_0x2b8cfc(0x21b)]())return _0x2a0137['push'](issue('error',_0x2b8cfc(0x1f9),SKILL_FILE,_0x2b8cfc(0x1cf),_0x2b8cfc(0x1f2))),undefined;if(!_0x228c5e[_0x2b8cfc(0x20b)]())return _0x2a0137[_0x2b8cfc(0x1d9)](issue(_0x2b8cfc(0x1f0),_0x2b8cfc(0x1f9),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x2b8cfc(0x211))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1237d2,'utf8')};}function validateFrontmatter(_0x5e6459,_0x3733db,_0x4f5f1b){const _0x29a33e=a59_0x284117;if(!_0x3733db[_0x29a33e(0x21d)]){_0x4f5f1b['push'](issue(_0x29a33e(0x1f0),_0x29a33e(0x21c),_0x5e6459,_0x29a33e(0x1f3),_0x29a33e(0x208)));return;}!_0x3733db[_0x29a33e(0x1e7)]?.['trim']()&&_0x4f5f1b[_0x29a33e(0x1d9)](issue(_0x29a33e(0x1f0),_0x29a33e(0x21c),_0x5e6459,_0x29a33e(0x1fe),_0x29a33e(0x1fc))),!_0x3733db['displayName']?.[_0x29a33e(0x1e9)]()&&_0x4f5f1b[_0x29a33e(0x1d9)](issue(_0x29a33e(0x1c9),_0x29a33e(0x217),_0x5e6459,_0x29a33e(0x219),_0x29a33e(0x1ea))),!_0x3733db[_0x29a33e(0x1e3)]?.[_0x29a33e(0x1e9)]()&&_0x4f5f1b[_0x29a33e(0x1d9)](issue('warning',_0x29a33e(0x1dc),_0x5e6459,'Frontmatter\x20example\x20is\x20missing.',_0x29a33e(0x1fb))),!_0x3733db[_0x29a33e(0x1d3)]?.[_0x29a33e(0x1e9)]()&&_0x4f5f1b[_0x29a33e(0x1d9)](issue('error','description-required',_0x5e6459,_0x29a33e(0x1d5),_0x29a33e(0x1da))),_0x3733db[_0x29a33e(0x1e6)]===!![]&&_0x4f5f1b[_0x29a33e(0x1d9)](issue(_0x29a33e(0x1f0),_0x29a33e(0x221),_0x5e6459,_0x29a33e(0x206),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x3733db[_0x29a33e(0x218)]?.[_0x29a33e(0x1e9)]()&&!SUPPORTED_SKILL_TYPES[_0x29a33e(0x220)](_0x3733db['type'])&&_0x4f5f1b[_0x29a33e(0x1d9)](issue('error',_0x29a33e(0x21c),_0x5e6459,_0x29a33e(0x1fa),_0x29a33e(0x21a)));}function validateRuntimeCliReferences(_0x470343,_0x355f6b){const _0x4aa547=a59_0x284117;for(const _0x490d25 of findRabetbaseCliInvocations(_0x470343)){_0x355f6b[_0x4aa547(0x1d9)](issue(_0x4aa547(0x1c9),_0x4aa547(0x1ef),_0x490d25[_0x4aa547(0x216)],_0x4aa547(0x1f1),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x490d25[_0x4aa547(0x1f6)]));}}function findRabetbaseCliInvocations(_0x5cdd5b){const _0x392643=a59_0x284117;return scanSkillDirectory(_0x5cdd5b)[_0x392643(0x1df)](_0x402073=>TEXT_SKILL_FILE_PATTERN['test'](_0x402073[_0x392643(0x1ed)]))['flatMap'](_0x55a2c8=>{const _0x4f51cb=_0x392643,_0x3f51c0=fileText(_0x55a2c8);return _0x3f51c0[_0x4f51cb(0x204)](/\r?\n/)[_0x4f51cb(0x1fd)]((_0x116a29,_0x2c3259)=>({'file':_0x55a2c8[_0x4f51cb(0x1ed)],'line':_0x2c3259+0x1,'text':_0x116a29}))['filter'](({text:_0x50182c})=>isRabetbaseCliInvocation(_0x50182c))[_0x4f51cb(0x1fd)](({file:_0x21e474,line:_0x12255a})=>({'file':_0x21e474,'line':_0x12255a}));});}const RABETBASE_SUBCOMMANDS=['dataset',a59_0x284117(0x202),a59_0x284117(0x1ee),a59_0x284117(0x20e),a59_0x284117(0x203),'app','schema',a59_0x284117(0x1ec),'artifact','kb',a59_0x284117(0x213),a59_0x284117(0x21f),a59_0x284117(0x1dd),'auth',a59_0x284117(0x1e2),a59_0x284117(0x1d1)],RABETBASE_INVOCATION=new RegExp(String[a59_0x284117(0x20a)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x284117(0x214)]('|')})\b`+String[a59_0x284117(0x20a)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x3d4774){const _0x5237aa=a59_0x284117,_0x362254=_0x3d4774['search'](/\brabetbase\b/i);if(_0x362254<0x0)return![];const _0x4e86b0=_0x3d4774['slice'](_0x362254)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x5237aa(0x20f)](_0x4e86b0);}function parseFrontmatter(_0x581bf3){const _0x2fd932=a59_0x284117,_0x48337e=_0x581bf3[_0x2fd932(0x1d6)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x48337e)return{'hasFrontmatter':![]};const _0xf1b8b7=_0x48337e[0x1]??'',_0x1aa809={'hasFrontmatter':!![]};let _0x18838d;try{_0x18838d=a59_0x493c1d(_0xf1b8b7);}catch{return _0x1aa809;}const _0x4f156c=asRecord(_0x18838d);if(!_0x4f156c)return _0x1aa809;_0x1aa809[_0x2fd932(0x1e7)]=scalarToString(_0x4f156c[_0x2fd932(0x1e7)]),_0x1aa809[_0x2fd932(0x1c8)]=scalarToString(_0x4f156c[_0x2fd932(0x1c8)]),_0x1aa809['description']=scalarToString(_0x4f156c[_0x2fd932(0x1d3)]),_0x1aa809[_0x2fd932(0x1e3)]=scalarToString(_0x4f156c['example']);const _0x44289b=asRecord(_0x4f156c['metadata']);return _0x44289b&&(_0x1aa809[_0x2fd932(0x218)]=scalarToString(_0x44289b[_0x2fd932(0x218)]),_0x1aa809[_0x2fd932(0x1e6)]=scalarToBoolean(_0x44289b['internal'])),_0x1aa809;}function asRecord(_0xc20d76){const _0x4887f2=a59_0x284117;if(_0xc20d76&&typeof _0xc20d76===_0x4887f2(0x1d4)&&!Array[_0x4887f2(0x1db)](_0xc20d76))return _0xc20d76;return undefined;}function scalarToString(_0x5cf172){const _0xf3c2c5=a59_0x284117;if(typeof _0x5cf172==='string')return _0x5cf172[_0xf3c2c5(0x1e9)]();if(typeof _0x5cf172===_0xf3c2c5(0x1f8)||typeof _0x5cf172==='boolean')return String(_0x5cf172);return undefined;}function a59_0x5a1a(_0x315d80,_0x3b9c81){_0x315d80=_0x315d80-0x1c7;const _0x53469b=a59_0x5346();let _0x5a1a66=_0x53469b[_0x315d80];return _0x5a1a66;}function scalarToBoolean(_0x44be30){const _0x7793c7=a59_0x284117;if(typeof _0x44be30===_0x7793c7(0x1d7))return _0x44be30;if(typeof _0x44be30===_0x7793c7(0x1cd))return cleanBoolean(_0x44be30);return undefined;}function cleanBoolean(_0x123ea4){const _0x5b06d5=a59_0x284117,_0x48913c=_0x123ea4[_0x5b06d5(0x1e9)]()[_0x5b06d5(0x215)]();if(_0x48913c===_0x5b06d5(0x20d))return!![];if(_0x48913c===_0x5b06d5(0x1de))return![];return undefined;}function issue(_0x25a13b,_0x2613da,_0x4d03b9,_0x4c67ec,_0x3714e4,_0x379094){return{'level':_0x25a13b,'ruleId':_0x2613da,'file':_0x4d03b9,'section':_0x379094,'message':_0x4c67ec,'suggestion':_0x3714e4};}
1
+ const a59_0x263394=a59_0x474f;(function(_0x34dfec,_0x40e4cf){const _0x4962b1=a59_0x474f,_0x281e65=_0x34dfec();while(!![]){try{const _0x5e2b81=parseInt(_0x4962b1(0xe1))/0x1*(parseInt(_0x4962b1(0xdf))/0x2)+parseInt(_0x4962b1(0xf0))/0x3+parseInt(_0x4962b1(0xf8))/0x4+-parseInt(_0x4962b1(0xb0))/0x5+-parseInt(_0x4962b1(0xc5))/0x6+-parseInt(_0x4962b1(0xce))/0x7+-parseInt(_0x4962b1(0xba))/0x8*(-parseInt(_0x4962b1(0xd2))/0x9);if(_0x5e2b81===_0x40e4cf)break;else _0x281e65['push'](_0x281e65['shift']());}catch(_0x490f35){_0x281e65['push'](_0x281e65['shift']());}}}(a59_0x55e3,0x8a80d));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a59_0x55e3(){const _0x597146=['If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','validation','5042484ODhveb','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Frontmatter\x20description\x20is\x20empty.','example','true','service','registry','\x20Fix:\x20','path','5986162kQuyuz','logs','dataset','ruleId','314073QQYPkE','description-required','display-name-recommended','boolean','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Frontmatter\x20example\x20is\x20missing.','frontmatter-required','internal','map','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','test','suggestion','isSymbolicLink','105128HRwkzA','displayName','1GAaBOJ','Frontmatter\x20name\x20is\x20missing.','errors','content','internal-skill','string','Skill\x20directory\x20not\x20found:\x20','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','SKILL.md\x20is\x20not\x20a\x20file.','Missing\x20SKILL.md.','false','app','file','config','slice','2361729wGeTuS','level','rabetbase-cli-reference','has','metadata','section','project','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','1594676kxakNk','toLowerCase','line','artifact','type','filter','sql','match','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','bff','structure-complete','isArray','raw','number','description','example-recommended','length','push','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Skill\x20validation\x20failed:\x0a','2380790kyJjcX','schema','write','trim','workspace','warning','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','toUpperCase','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','join','344fxiFpe','split','isFile','name','error','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.'];a59_0x55e3=function(){return _0x597146;};return a59_0x55e3();}import{resolve}from'node:path';import{parse as a59_0x55e7b5}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a59_0x263394(0xb2),'read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2f3834,_0x145c5d={}){const _0x4c6f28=a59_0x263394,_0xb4d900=resolveSkillDirectoryRoot(_0x2f3834),_0x4d18aa=[],_0x2d57c1=loadRequiredSkillFile(_0xb4d900,_0x4d18aa),_0x20cb6e=_0x2d57c1?parseFrontmatter(_0x2d57c1[_0x4c6f28(0xe4)]):{'hasFrontmatter':![]};_0x2d57c1&&validateFrontmatter(_0x2d57c1[_0x4c6f28(0xcd)],_0x20cb6e,_0x4d18aa);validateRuntimeCliReferences(_0xb4d900,_0x4d18aa);const _0x21fd5f=_0x4d18aa[_0x4c6f28(0xfd)](_0x351719=>_0x351719[_0x4c6f28(0xf1)]==='error'),_0x1ae450=_0x4d18aa[_0x4c6f28(0xfd)](_0x314727=>_0x314727[_0x4c6f28(0xf1)]===_0x4c6f28(0xb5));return{'ok':_0x21fd5f[_0x4c6f28(0xac)]===0x0,'dir':_0xb4d900,'type':_0x20cb6e['type'],'errors':_0x21fd5f,'warnings':_0x1ae450};}function resolveSkillDirectoryRoot(_0x4d7974){const _0x3a6a7f=a59_0x263394,_0x5e6631=resolve(_0x4d7974);if(!existsSync(_0x5e6631))throw CliErrors[_0x3a6a7f(0xc4)](_0x3a6a7f(0xe7)+_0x4d7974);const _0x7cf40e=lstatSync(_0x5e6631);if(_0x7cf40e['isDirectory']())return _0x5e6631;if(_0x7cf40e[_0x3a6a7f(0xde)]()){const _0x464cdd=realpathSync(_0x5e6631);if(lstatSync(_0x464cdd)['isDirectory']())return _0x464cdd;}throw CliErrors[_0x3a6a7f(0xc4)](_0x3a6a7f(0xe7)+_0x4d7974);}export function throwIfSkillValidationFailed(_0x1355b0,_0x5bd7e8=![]){const _0x43509c=a59_0x263394;if(_0x1355b0['ok'])return;const _0x1cb172=_0x1355b0[_0x43509c(0xe3)][_0x43509c(0xda)](_0xc9d7dd=>{const _0x2b5664=_0x43509c,_0x1d56c0=_0xc9d7dd['section']?'#'+_0xc9d7dd[_0x2b5664(0xf5)]:'';return _0xc9d7dd['level'][_0x2b5664(0xb7)]()+'\x20'+_0xc9d7dd[_0x2b5664(0xd1)]+'\x20'+_0xc9d7dd[_0x2b5664(0xed)]+_0x1d56c0+':\x20'+_0xc9d7dd['message']+_0x2b5664(0xcc)+_0xc9d7dd[_0x2b5664(0xdd)];});throw CliErrors[_0x43509c(0xc4)](_0x43509c(0xaf)+_0x1cb172[_0x43509c(0xb9)]('\x0a'),_0x43509c(0xc6));}function loadRequiredSkillFile(_0x2e8460,_0x3a8984){const _0x4d0ed1=a59_0x263394,_0x49f357=resolve(_0x2e8460,SKILL_FILE);if(!existsSync(_0x49f357))return _0x3a8984[_0x4d0ed1(0xad)](issue(_0x4d0ed1(0xbe),'structure-complete',SKILL_FILE,_0x4d0ed1(0xea),_0x4d0ed1(0xf7))),undefined;const _0x48c3ba=lstatSync(_0x49f357);if(_0x48c3ba[_0x4d0ed1(0xde)]())return _0x3a8984[_0x4d0ed1(0xad)](issue(_0x4d0ed1(0xbe),'structure-complete',SKILL_FILE,_0x4d0ed1(0xd6),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x48c3ba[_0x4d0ed1(0xbc)]())return _0x3a8984[_0x4d0ed1(0xad)](issue(_0x4d0ed1(0xbe),_0x4d0ed1(0x102),SKILL_FILE,_0x4d0ed1(0xe9),_0x4d0ed1(0xe8))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x49f357,'utf8')};}function validateFrontmatter(_0x174423,_0x47b6a4,_0x12eeca){const _0x5e70a7=a59_0x263394;if(!_0x47b6a4['hasFrontmatter']){_0x12eeca['push'](issue(_0x5e70a7(0xbe),_0x5e70a7(0xd8),_0x174423,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x5e70a7(0xc2)));return;}!_0x47b6a4['name']?.[_0x5e70a7(0xb3)]()&&_0x12eeca['push'](issue(_0x5e70a7(0xbe),_0x5e70a7(0xd8),_0x174423,_0x5e70a7(0xe2),_0x5e70a7(0xbf))),!_0x47b6a4[_0x5e70a7(0xe0)]?.[_0x5e70a7(0xb3)]()&&_0x12eeca[_0x5e70a7(0xad)](issue(_0x5e70a7(0xb5),_0x5e70a7(0xd4),_0x174423,'Frontmatter\x20displayName\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x47b6a4['example']?.[_0x5e70a7(0xb3)]()&&_0x12eeca[_0x5e70a7(0xad)](issue(_0x5e70a7(0xb5),_0x5e70a7(0xab),_0x174423,_0x5e70a7(0xd7),_0x5e70a7(0xb8))),!_0x47b6a4[_0x5e70a7(0xaa)]?.['trim']()&&_0x12eeca[_0x5e70a7(0xad)](issue(_0x5e70a7(0xbe),_0x5e70a7(0xd3),_0x174423,_0x5e70a7(0xc7),_0x5e70a7(0xb6))),_0x47b6a4[_0x5e70a7(0xd9)]===!![]&&_0x12eeca[_0x5e70a7(0xad)](issue(_0x5e70a7(0xbe),_0x5e70a7(0xe5),_0x174423,_0x5e70a7(0x100),_0x5e70a7(0xc3))),_0x47b6a4[_0x5e70a7(0xfc)]?.[_0x5e70a7(0xb3)]()&&!SUPPORTED_SKILL_TYPES[_0x5e70a7(0xf3)](_0x47b6a4[_0x5e70a7(0xfc)])&&_0x12eeca[_0x5e70a7(0xad)](issue(_0x5e70a7(0xbe),_0x5e70a7(0xd8),_0x174423,_0x5e70a7(0xae),_0x5e70a7(0xc1)));}function validateRuntimeCliReferences(_0x585c53,_0x1d7484){const _0x1ecec4=a59_0x263394;for(const _0x1f8f2f of findRabetbaseCliInvocations(_0x585c53)){_0x1d7484['push'](issue(_0x1ecec4(0xb5),_0x1ecec4(0xf2),_0x1f8f2f[_0x1ecec4(0xed)],_0x1ecec4(0xdb),_0x1ecec4(0xc0),'L'+_0x1f8f2f[_0x1ecec4(0xfa)]));}}function findRabetbaseCliInvocations(_0xd1feb1){const _0x2f64da=a59_0x263394;return scanSkillDirectory(_0xd1feb1)['filter'](_0x5ce5d1=>TEXT_SKILL_FILE_PATTERN[_0x2f64da(0xdc)](_0x5ce5d1[_0x2f64da(0xcd)]))['flatMap'](_0xed9407=>{const _0x4d5365=_0x2f64da,_0x16ad08=fileText(_0xed9407);return _0x16ad08['split'](/\r?\n/)[_0x4d5365(0xda)]((_0x48e733,_0x2ea2e8)=>({'file':_0xed9407[_0x4d5365(0xcd)],'line':_0x2ea2e8+0x1,'text':_0x48e733}))[_0x4d5365(0xfd)](({text:_0x211812})=>isRabetbaseCliInvocation(_0x211812))[_0x4d5365(0xda)](({file:_0x429dc4,line:_0x48d23c})=>({'file':_0x429dc4,'line':_0x48d23c}));});}const RABETBASE_SUBCOMMANDS=[a59_0x263394(0xd0),a59_0x263394(0xfe),a59_0x263394(0x101),'page',a59_0x263394(0xf6),a59_0x263394(0xec),a59_0x263394(0xb1),a59_0x263394(0xca),a59_0x263394(0xfb),'kb',a59_0x263394(0xee),a59_0x263394(0xb4),'data','auth',a59_0x263394(0xcf),a59_0x263394(0xcb)],RABETBASE_INVOCATION=new RegExp(String[a59_0x263394(0xa8)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x263394(0xb9)]('|')})\b`+String[a59_0x263394(0xa8)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x57ba50){const _0x600665=a59_0x263394,_0x18ec5e=_0x57ba50['search'](/\brabetbase\b/i);if(_0x18ec5e<0x0)return![];const _0x1eb8e2=_0x57ba50[_0x600665(0xef)](_0x18ec5e)[_0x600665(0xbb)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x600665(0xdc)](_0x1eb8e2);}function parseFrontmatter(_0xe5b2d5){const _0x4d7e32=a59_0x263394,_0x34d655=_0xe5b2d5[_0x4d7e32(0xff)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x34d655)return{'hasFrontmatter':![]};const _0x417a11=_0x34d655[0x1]??'',_0x589c6a={'hasFrontmatter':!![]};let _0xde18e3;try{_0xde18e3=a59_0x55e7b5(_0x417a11);}catch{return _0x589c6a;}const _0x8cf0=asRecord(_0xde18e3);if(!_0x8cf0)return _0x589c6a;_0x589c6a['name']=scalarToString(_0x8cf0[_0x4d7e32(0xbd)]),_0x589c6a[_0x4d7e32(0xe0)]=scalarToString(_0x8cf0['displayName']),_0x589c6a[_0x4d7e32(0xaa)]=scalarToString(_0x8cf0[_0x4d7e32(0xaa)]),_0x589c6a[_0x4d7e32(0xc8)]=scalarToString(_0x8cf0[_0x4d7e32(0xc8)]);const _0x150426=asRecord(_0x8cf0[_0x4d7e32(0xf4)]);return _0x150426&&(_0x589c6a[_0x4d7e32(0xfc)]=scalarToString(_0x150426['type']),_0x589c6a['internal']=scalarToBoolean(_0x150426['internal'])),_0x589c6a;}function asRecord(_0x2b6006){const _0x48221c=a59_0x263394;if(_0x2b6006&&typeof _0x2b6006==='object'&&!Array[_0x48221c(0xa7)](_0x2b6006))return _0x2b6006;return undefined;}function scalarToString(_0x999894){const _0x440b11=a59_0x263394;if(typeof _0x999894===_0x440b11(0xe6))return _0x999894[_0x440b11(0xb3)]();if(typeof _0x999894===_0x440b11(0xa9)||typeof _0x999894===_0x440b11(0xd5))return String(_0x999894);return undefined;}function a59_0x474f(_0x55d98e,_0x1f9671){_0x55d98e=_0x55d98e-0xa7;const _0x55e30a=a59_0x55e3();let _0x474f64=_0x55e30a[_0x55d98e];return _0x474f64;}function scalarToBoolean(_0x21b964){const _0x1aec70=a59_0x263394;if(typeof _0x21b964===_0x1aec70(0xd5))return _0x21b964;if(typeof _0x21b964==='string')return cleanBoolean(_0x21b964);return undefined;}function cleanBoolean(_0x552af8){const _0x497328=a59_0x263394,_0x276c6c=_0x552af8[_0x497328(0xb3)]()[_0x497328(0xf9)]();if(_0x276c6c===_0x497328(0xc9))return!![];if(_0x276c6c===_0x497328(0xeb))return![];return undefined;}function issue(_0x3a2d31,_0x239a13,_0x55b9bc,_0x5f2421,_0x4bb8be,_0x1d0acf){return{'level':_0x3a2d31,'ruleId':_0x239a13,'file':_0x55b9bc,'section':_0x1d0acf,'message':_0x5f2421,'suggestion':_0x4bb8be};}
@@ -1 +1 @@
1
- function a60_0x121d(_0x5854e0,_0x77d22f){_0x5854e0=_0x5854e0-0x125;const _0x4cb2c8=a60_0x4cb2();let _0x121dde=_0x4cb2c8[_0x5854e0];return _0x121dde;}const a60_0x104bbc=a60_0x121d;(function(_0x17e10b,_0x26b393){const _0x4264a7=a60_0x121d,_0x31f847=_0x17e10b();while(!![]){try{const _0x3aae0f=-parseInt(_0x4264a7(0x137))/0x1*(-parseInt(_0x4264a7(0x125))/0x2)+-parseInt(_0x4264a7(0x132))/0x3*(-parseInt(_0x4264a7(0x131))/0x4)+parseInt(_0x4264a7(0x136))/0x5+-parseInt(_0x4264a7(0x12c))/0x6*(parseInt(_0x4264a7(0x12d))/0x7)+parseInt(_0x4264a7(0x138))/0x8+-parseInt(_0x4264a7(0x130))/0x9+-parseInt(_0x4264a7(0x12e))/0xa;if(_0x3aae0f===_0x26b393)break;else _0x31f847['push'](_0x31f847['shift']());}catch(_0x216067){_0x31f847['push'](_0x31f847['shift']());}}}(a60_0x4cb2,0x52d91));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':a60_0x104bbc(0x128),'command':a60_0x104bbc(0x127),'description':a60_0x104bbc(0x12a),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x12746f){const _0x7c4872=a60_0x104bbc,_0x378b8a=await getSqlQueryInfo(_0x12746f[_0x7c4872(0x126)],_0x12746f['str'](_0x7c4872(0x133))),_0x3dbd29=_0x12746f[_0x7c4872(0x12f)](_0x7c4872(0x129));if(_0x3dbd29)return{'ok':!![],'data':_0x378b8a};const _0x15c9f6=_0x378b8a[_0x7c4872(0x12b)]?await getDbName(_0x12746f[_0x7c4872(0x126)],_0x378b8a['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x378b8a[_0x7c4872(0x135)],'sqlName':_0x378b8a[_0x7c4872(0x134)],'db':_0x15c9f6?_0x15c9f6+'\x20('+_0x378b8a[_0x7c4872(0x12b)]+')':_0x378b8a[_0x7c4872(0x12b)]??'','sqlContent':_0x378b8a['sqlContent']??''}};}};function a60_0x4cb2(){const _0x2394f8=['Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','dbId','1256370wJtsWQ','7mjMVGb','6795210ELZWcy','bool','3535632RAlpuw','529964JNKrUH','6iQFlnX','sqlcode','sqlName','sqlCode','1719725agCjES','650471UXOJpP','2893688UyQCzR','2JpmiqH','appCode','detail','sql','verbose'];a60_0x4cb2=function(){return _0x2394f8;};return a60_0x4cb2();}
1
+ const a60_0x473ba5=a60_0x5313;function a60_0x5313(_0x205b88,_0x5ce698){_0x205b88=_0x205b88-0x158;const _0x255221=a60_0x2552();let _0x531349=_0x255221[_0x205b88];return _0x531349;}(function(_0x4e6b14,_0x3e5900){const _0x24b6c6=a60_0x5313,_0x13fc1f=_0x4e6b14();while(!![]){try{const _0x5c8599=parseInt(_0x24b6c6(0x16a))/0x1*(-parseInt(_0x24b6c6(0x16b))/0x2)+parseInt(_0x24b6c6(0x161))/0x3+-parseInt(_0x24b6c6(0x16d))/0x4*(-parseInt(_0x24b6c6(0x15e))/0x5)+parseInt(_0x24b6c6(0x167))/0x6+parseInt(_0x24b6c6(0x164))/0x7*(-parseInt(_0x24b6c6(0x15d))/0x8)+parseInt(_0x24b6c6(0x15a))/0x9*(parseInt(_0x24b6c6(0x166))/0xa)+-parseInt(_0x24b6c6(0x162))/0xb*(parseInt(_0x24b6c6(0x15f))/0xc);if(_0x5c8599===_0x3e5900)break;else _0x13fc1f['push'](_0x13fc1f['shift']());}catch(_0x44df9d){_0x13fc1f['push'](_0x13fc1f['shift']());}}}(a60_0x2552,0xcabbe));import{getSqlQueryInfo}from'../../core/api-client.js';function a60_0x2552(){const _0xf5c5a1=['5702OUbrab','appCode','39796pnpCWO','sqlCode','read','12686769PVsYFQ','dbId','str','8zCfNag','745cjZITq','45492nrIWCg','sql','1914105pnJBvk','6303oGzYxx','sqlcode','1017646mSdIVj','bool','10qfpFUp','5901426rWeMjb','sqlContent','verbose','479lfDeqH'];a60_0x2552=function(){return _0xf5c5a1;};return a60_0x2552();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a60_0x473ba5(0x160),'command':'detail','description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a60_0x473ba5(0x159),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4bf315){const _0x229eb7=a60_0x473ba5,_0x33187c=await getSqlQueryInfo(_0x4bf315['appCode'],_0x4bf315[_0x229eb7(0x15c)](_0x229eb7(0x163))),_0x1441b1=_0x4bf315[_0x229eb7(0x165)](_0x229eb7(0x169));if(_0x1441b1)return{'ok':!![],'data':_0x33187c};const _0x5b4b2b=_0x33187c['dbId']?await getDbName(_0x4bf315[_0x229eb7(0x16c)],_0x33187c[_0x229eb7(0x15b)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x33187c[_0x229eb7(0x158)],'sqlName':_0x33187c['sqlName'],'db':_0x5b4b2b?_0x5b4b2b+'\x20('+_0x33187c[_0x229eb7(0x15b)]+')':_0x33187c['dbId']??'','sqlContent':_0x33187c[_0x229eb7(0x168)]??''}};}};
@@ -1 +1 @@
1
- const a61_0x346361=a61_0x1ada;function a61_0x1ada(_0x275104,_0x377a1f){_0x275104=_0x275104-0x82;const _0x397cc1=a61_0x397c();let _0x1ada3e=_0x397cc1[_0x275104];return _0x1ada3e;}(function(_0x4e8d0b,_0x207d97){const _0x59e20c=a61_0x1ada,_0x23d436=_0x4e8d0b();while(!![]){try{const _0x2103f8=parseInt(_0x59e20c(0x83))/0x1+parseInt(_0x59e20c(0x9b))/0x2*(parseInt(_0x59e20c(0x93))/0x3)+-parseInt(_0x59e20c(0x9a))/0x4*(-parseInt(_0x59e20c(0x8f))/0x5)+parseInt(_0x59e20c(0x8c))/0x6*(-parseInt(_0x59e20c(0x8b))/0x7)+parseInt(_0x59e20c(0x91))/0x8*(-parseInt(_0x59e20c(0x8d))/0x9)+-parseInt(_0x59e20c(0x98))/0xa*(parseInt(_0x59e20c(0x87))/0xb)+parseInt(_0x59e20c(0x8e))/0xc*(parseInt(_0x59e20c(0x8a))/0xd);if(_0x2103f8===_0x207d97)break;else _0x23d436['push'](_0x23d436['shift']());}catch(_0x3e5d88){_0x23d436['push'](_0x23d436['shift']());}}}(a61_0x397c,0xee25a));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':a61_0x346361(0x96),'command':a61_0x346361(0x95),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a61_0x346361(0x99),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x43530a){const _0x3ccf87=a61_0x346361,_0xe7cc1d=parseJsonParams(_0x43530a['str']('params')),_0xc1fba1=Date[_0x3ccf87(0x92)](),_0x5ec8f0=await executeSdkSql(_0x43530a[_0x3ccf87(0x90)](_0x3ccf87(0x82)),_0xe7cc1d),_0x15d4cb=Date[_0x3ccf87(0x92)]()-_0xc1fba1,_0x12d9d9=_0x5ec8f0?.[_0x3ccf87(0x89)]??_0x5ec8f0,_0x1101a5=_0x5ec8f0?.[_0x3ccf87(0x84)]??!![];if(!_0x1101a5)return{'ok':![],'data':{'error':_0x5ec8f0?.[_0x3ccf87(0x85)]||'SQL\x20execution\x20failed','elapsed':_0x15d4cb},'message':_0x3ccf87(0x9c)};const _0x25902e=Array[_0x3ccf87(0x86)](_0x12d9d9)?_0x12d9d9:[];return{'ok':!![],'data':{'rows':_0x25902e,'rowCount':_0x25902e[_0x3ccf87(0x97)],'elapsed':_0x15d4cb},'message':_0x3ccf87(0x94)+_0x25902e[_0x3ccf87(0x97)]+_0x3ccf87(0x88)+_0x15d4cb+'ms'};}};function a61_0x397c(){const _0x40ae80=['isArray','1771DOerdp','\x20row(s)\x20in\x20','execResult','39lxXwCQ','147wZdrzR','337686uyzQoo','143433RZQQnJ','10952340lEntCm','1230NnWpLU','str','840DnAwST','now','747gatcqp','Returned\x20','exec','sql','length','19830OOmjBJ','read','872iRoyrk','2734KgGrlO','SQL\x20execution\x20failed','sqlcode','1017903rwufwA','execSuccess','execError'];a61_0x397c=function(){return _0x40ae80;};return a61_0x397c();}
1
+ const a61_0x4e176c=a61_0x19ef;(function(_0x3e64fb,_0x21a0ad){const _0x26deb5=a61_0x19ef,_0x101676=_0x3e64fb();while(!![]){try{const _0x2a6644=-parseInt(_0x26deb5(0x98))/0x1*(parseInt(_0x26deb5(0x8c))/0x2)+-parseInt(_0x26deb5(0x92))/0x3+-parseInt(_0x26deb5(0x97))/0x4+-parseInt(_0x26deb5(0x85))/0x5+parseInt(_0x26deb5(0x7f))/0x6*(parseInt(_0x26deb5(0x81))/0x7)+parseInt(_0x26deb5(0x8a))/0x8*(parseInt(_0x26deb5(0x8f))/0x9)+-parseInt(_0x26deb5(0x87))/0xa*(-parseInt(_0x26deb5(0x8b))/0xb);if(_0x2a6644===_0x21a0ad)break;else _0x101676['push'](_0x101676['shift']());}catch(_0x4c6744){_0x101676['push'](_0x101676['shift']());}}}(a61_0x1564,0x806a9));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a61_0x1564(){const _0x20b649=['792009IpSXhN','\x20row(s)\x20in\x20','isArray','1681605rOwjgE','exec','now','read','SQL\x20execution\x20failed','195092hkcqUc','83756gMaXfb','19584grzsKU','execResult','2044hWsOfx','sql','params','execError','2361835cktuIi','length','1470430tDlpXW','sqlcode','str','48kUdoQy','22JaGUpi','4DVuLKd','Returned\x20','execSuccess'];a61_0x1564=function(){return _0x20b649;};return a61_0x1564();}import{parseJsonParams}from'../../utils/params.js';function a61_0x19ef(_0x18d559,_0x295d8c){_0x18d559=_0x18d559-0x7f;const _0x156410=a61_0x1564();let _0x19ef45=_0x156410[_0x18d559];return _0x19ef45;}export const sqlExec={'service':a61_0x4e176c(0x82),'command':a61_0x4e176c(0x93),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a61_0x4e176c(0x95),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5477f7){const _0x5c1fe8=a61_0x4e176c,_0x430eff=parseJsonParams(_0x5477f7[_0x5c1fe8(0x89)](_0x5c1fe8(0x83))),_0x4be50c=Date[_0x5c1fe8(0x94)](),_0x5d880d=await executeSdkSql(_0x5477f7['str'](_0x5c1fe8(0x88)),_0x430eff),_0x4311ae=Date['now']()-_0x4be50c,_0x5691c7=_0x5d880d?.[_0x5c1fe8(0x80)]??_0x5d880d,_0x119092=_0x5d880d?.[_0x5c1fe8(0x8e)]??!![];if(!_0x119092)return{'ok':![],'data':{'error':_0x5d880d?.[_0x5c1fe8(0x84)]||_0x5c1fe8(0x96),'elapsed':_0x4311ae},'message':_0x5c1fe8(0x96)};const _0x4fcec2=Array[_0x5c1fe8(0x91)](_0x5691c7)?_0x5691c7:[];return{'ok':!![],'data':{'rows':_0x4fcec2,'rowCount':_0x4fcec2[_0x5c1fe8(0x86)],'elapsed':_0x4311ae},'message':_0x5c1fe8(0x8d)+_0x4fcec2[_0x5c1fe8(0x86)]+_0x5c1fe8(0x90)+_0x4311ae+'ms'};}};
@@ -1 +1 @@
1
- function a62_0x3425(_0x5e9228,_0x5a6b14){_0x5e9228=_0x5e9228-0x1ae;const _0x57ab9b=a62_0x57ab();let _0x3425a9=_0x57ab9b[_0x5e9228];return _0x3425a9;}function a62_0x57ab(){const _0xf5b985=['57501YXahMk','20404LNyDVj','1728dMdLpW','53383370RqTkFY','67578VomCpj','6397605VebiUa','822VTGXsR','29357swxzCZ','1174378xsKzNG','987ihegPy'];a62_0x57ab=function(){return _0xf5b985;};return a62_0x57ab();}(function(_0x513b3f,_0x464c37){const _0x2d55f6=a62_0x3425,_0x1fea14=_0x513b3f();while(!![]){try{const _0x305685=-parseInt(_0x2d55f6(0x1b0))/0x1+parseInt(_0x2d55f6(0x1b1))/0x2+parseInt(_0x2d55f6(0x1af))/0x3*(parseInt(_0x2d55f6(0x1b4))/0x4)+parseInt(_0x2d55f6(0x1ae))/0x5+parseInt(_0x2d55f6(0x1b7))/0x6*(parseInt(_0x2d55f6(0x1b2))/0x7)+parseInt(_0x2d55f6(0x1b5))/0x8*(parseInt(_0x2d55f6(0x1b3))/0x9)+-parseInt(_0x2d55f6(0x1b6))/0xa;if(_0x305685===_0x464c37)break;else _0x1fea14['push'](_0x1fea14['shift']());}catch(_0x3c5d1b){_0x1fea14['push'](_0x1fea14['shift']());}}}(a62_0x57ab,0xd321d));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x4cdad2,_0x5bcff2){const _0x45f185=a62_0x8df4,_0x165623=_0x4cdad2();while(!![]){try{const _0x20c2e4=parseInt(_0x45f185(0xd0))/0x1*(-parseInt(_0x45f185(0xd7))/0x2)+-parseInt(_0x45f185(0xcf))/0x3+-parseInt(_0x45f185(0xce))/0x4*(-parseInt(_0x45f185(0xd6))/0x5)+parseInt(_0x45f185(0xd2))/0x6+-parseInt(_0x45f185(0xd3))/0x7+-parseInt(_0x45f185(0xd5))/0x8*(-parseInt(_0x45f185(0xd1))/0x9)+-parseInt(_0x45f185(0xd4))/0xa*(-parseInt(_0x45f185(0xd8))/0xb);if(_0x20c2e4===_0x5bcff2)break;else _0x165623['push'](_0x165623['shift']());}catch(_0x51af14){_0x165623['push'](_0x165623['shift']());}}}(a62_0x34b9,0x9bbdd));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a62_0x34b9(){const _0x5b6355=['3442110qylhXc','5358500ZFoAhT','207730FFDNmu','353864IQdzbI','5YtGgqn','2ingYQq','825umgDSn','622772IfghJg','2161686UXEaey','207607DAxxEx','9tJFuIG'];a62_0x34b9=function(){return _0x5b6355;};return a62_0x34b9();}function a62_0x8df4(_0x5eeb26,_0x108e48){_0x5eeb26=_0x5eeb26-0xce;const _0x34b97c=a62_0x34b9();let _0x8df474=_0x34b97c[_0x5eeb26];return _0x8df474;}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a63_0x1238a8=a63_0x54df;(function(_0x40c4b3,_0x4f0629){const _0x1ffa57=a63_0x54df,_0x19660c=_0x40c4b3();while(!![]){try{const _0x590903=parseInt(_0x1ffa57(0x1ed))/0x1+-parseInt(_0x1ffa57(0x1ea))/0x2+parseInt(_0x1ffa57(0x1c5))/0x3*(parseInt(_0x1ffa57(0x1fa))/0x4)+parseInt(_0x1ffa57(0x1f0))/0x5*(parseInt(_0x1ffa57(0x1e4))/0x6)+-parseInt(_0x1ffa57(0x1fe))/0x7+parseInt(_0x1ffa57(0x1bf))/0x8*(-parseInt(_0x1ffa57(0x1ee))/0x9)+parseInt(_0x1ffa57(0x1c2))/0xa*(parseInt(_0x1ffa57(0x1d2))/0xb);if(_0x590903===_0x4f0629)break;else _0x19660c['push'](_0x19660c['shift']());}catch(_0x17c4ee){_0x19660c['push'](_0x19660c['shift']());}}}(a63_0x1669,0xe5964));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a63_0x54df(_0x54c6b1,_0x298193){_0x54c6b1=_0x54c6b1-0x1bb;const _0x16694e=a63_0x1669();let _0x54df49=_0x16694e[_0x54c6b1];return _0x54df49;}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':a63_0x1238a8(0x1d1),'default':![]},{'name':a63_0x1238a8(0x1ca),'type':a63_0x1238a8(0x1c3),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a63_0x1238a8(0x1eb),'type':a63_0x1238a8(0x1d8),'description':a63_0x1238a8(0x1f4)},{'name':'no-skills','type':'boolean','description':a63_0x1238a8(0x205),'default':![]},{'name':a63_0x1238a8(0x1df),'type':a63_0x1238a8(0x1c3),'description':a63_0x1238a8(0x1e7),'default':!![],'hidden':!![]}];function parseSemver(_0x330f7a){const _0x2eae4a=a63_0x1238a8,_0x957aba=_0x330f7a[_0x2eae4a(0x1d5)]()[_0x2eae4a(0x1cb)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x957aba)return null;return{'major':Number(_0x957aba[0x1]),'minor':Number(_0x957aba[0x2]),'patch':Number(_0x957aba[0x3]),'prerelease':_0x957aba[0x4]};}function compareSemver(_0x3249e7,_0x27e071){const _0xf8f3e=a63_0x1238a8,_0xcb3e53=parseSemver(_0x3249e7),_0x20235f=parseSemver(_0x27e071);if(!_0xcb3e53||!_0x20235f)throw CliErrors[_0xf8f3e(0x1f5)](_0xf8f3e(0x1dd),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x3a7bcb of[_0xf8f3e(0x1d7),'minor',_0xf8f3e(0x207)]){if(_0xcb3e53[_0x3a7bcb]<_0x20235f[_0x3a7bcb])return-0x1;if(_0xcb3e53[_0x3a7bcb]>_0x20235f[_0x3a7bcb])return 0x1;}if(!_0xcb3e53[_0xf8f3e(0x1e3)]&&!_0x20235f[_0xf8f3e(0x1e3)])return 0x0;if(!_0xcb3e53['prerelease'])return 0x1;if(!_0x20235f[_0xf8f3e(0x1e3)])return-0x1;if(_0xcb3e53[_0xf8f3e(0x1e3)]===_0x20235f[_0xf8f3e(0x1e3)])return 0x0;return _0xcb3e53[_0xf8f3e(0x1e3)]<_0x20235f[_0xf8f3e(0x1e3)]?-0x1:0x1;}function getRequestedVersion(_0x4f7936){const _0x55ae7e=a63_0x1238a8,_0x365222=_0x4f7936[_0x55ae7e(0x1e0)](_0x55ae7e(0x1eb))['trim']();if(_0x365222)return _0x365222;return String(_0x4f7936['args']?.[0x0]??'')[_0x55ae7e(0x1d5)]();}function shouldSkipCliBuiltInSkill(_0x3a1b98){const _0x35cb11=a63_0x1238a8;return _0x3a1b98['bool'](_0x35cb11(0x1cd))||_0x3a1b98[_0x35cb11(0x1f2)](_0x35cb11(0x1df))===![];}async function validateUpdateFlags(_0xefe8b8){const _0x353dd1=a63_0x1238a8,_0x47ba9e=getRequestedVersion(_0xefe8b8),_0x4fbefb=[_0xefe8b8[_0x353dd1(0x1f1)](_0x353dd1(0x1fb))?_0x353dd1(0x1fb):'',_0xefe8b8[_0x353dd1(0x1f1)](_0x353dd1(0x1ca))?_0x353dd1(0x1ca):'',_0x47ba9e?_0x353dd1(0x1eb):''][_0x353dd1(0x1db)](Boolean);if(_0x4fbefb[_0x353dd1(0x1fc)]>0x1)throw CliErrors['validation'](_0x353dd1(0x1bc),_0x353dd1(0x1dc));if(_0x47ba9e&&!parseSemver(_0x47ba9e))throw CliErrors[_0x353dd1(0x1f5)](_0x353dd1(0x1de)+_0x47ba9e,_0x353dd1(0x1d4));}async function fetchNpmDistTags(){const _0x38ef0b=a63_0x1238a8;try{const _0x1ab2fd=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x38ef0b(0x1bd),_0x21836a=await fetch(_0x1ab2fd,{'signal':AbortSignal[_0x38ef0b(0x1f9)](0x2710)});if(!_0x21836a['ok'])return null;const _0x1e2b1d=await _0x21836a[_0x38ef0b(0x1ff)]();if(!_0x1e2b1d||typeof _0x1e2b1d!==_0x38ef0b(0x1fd))return null;return Object[_0x38ef0b(0x1e1)](Object[_0x38ef0b(0x1ef)](_0x1e2b1d)[_0x38ef0b(0x1db)](([,_0xa848fd])=>typeof _0xa848fd==='string'&&_0xa848fd[_0x38ef0b(0x1d5)]())[_0x38ef0b(0x200)](([_0x3ceaba,_0x545850])=>[_0x3ceaba,String(_0x545850)[_0x38ef0b(0x1d5)]()]));}catch{return null;}}async function resolveTargetVersion(_0x42bd49){const _0x794325=a63_0x1238a8,_0x18276e=getRequestedVersion(_0x42bd49);if(_0x18276e)return{'version':_0x18276e,'source':_0x794325(0x1eb)};const _0x442aa6=_0x42bd49[_0x794325(0x1f1)](_0x794325(0x1ca))?_0x794325(0x1ca):_0x794325(0x1fb),_0x413097=await fetchNpmDistTags(),_0x449793=_0x413097?.[_0x442aa6];if(!_0x449793)return null;return{'version':_0x449793,'source':_0x442aa6};}function shouldInstallTarget(_0x4f159b,_0x598145){const _0x56f288=a63_0x1238a8,_0x176a0c=compareSemver(_0x4f159b,_0x598145[_0x56f288(0x1eb)]);if(_0x598145['source']===_0x56f288(0x1eb))return _0x176a0c!==0x0;return _0x176a0c<0x0;}function a63_0x1669(){const _0x4bfc72=['json','map','Update\x20failed:\x20','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','install','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','read','patch','join','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','/dist-tags','warn','12728zYpdMc','stderr','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','206490SKdxti','boolean','Updated\x20to\x20v','21ifTLoJ','cwd','\x20CLI','Already\x20up\x20to\x20date\x20(v','log','beta','match','npm','no-skills','error','\x20version\x20from\x20npm.','Checking\x20npm\x20dist-tags...','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','550HurqMQ','pipe','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','trim','message','major','string','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','skipped','filter','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Version\x20comparison\x20failed.','Invalid\x20version:\x20','skills','str','fromEntries','Already\x20on\x20requested\x20version\x20(v','prerelease','4470RxrEnu','status','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','unknown','inherit','1898452YKOBvJ','version','\x20->\x20','849048shdmDM','3690XwicqQ','entries','11285sKWioo','bool','flag','nonInteractive','Install\x20a\x20specific\x20CLI\x20version','validation','Unable\x20to\x20resolve\x20','stdout','Checking\x20CLI\x20Built-in\x20Skill...','timeout','84892bAyYHz','latest','length','object','8187200toimOd'];a63_0x1669=function(){return _0x4bfc72;};return a63_0x1669();}function installCliPackage(_0x254edc,_0xf877e3){const _0x1db0e8=a63_0x1238a8,_0x30f9bd=resolveNpmBin(_0x1db0e8(0x1cc)),_0x83e6eb=[_0x1db0e8(0x203),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x254edc];console['log']('*\x20'+[_0x30f9bd,..._0x83e6eb][_0x1db0e8(0x1bb)]('\x20'));const _0x576ae0=spawnSync(_0x30f9bd,_0x83e6eb,{'cwd':process[_0x1db0e8(0x1c6)](),'stdio':_0xf877e3?_0x1db0e8(0x1d3):_0x1db0e8(0x1e9),'env':process.env,'shell':![]});if(_0x576ae0[_0x1db0e8(0x1e5)]===0x0)return{'ok':!![]};let _0x2722ef=_0x576ae0[_0x1db0e8(0x1ce)]?.[_0x1db0e8(0x1d6)]||'exit\x20'+(_0x576ae0[_0x1db0e8(0x1e5)]??_0x1db0e8(0x1e8));if(_0xf877e3){const _0x46dcd6=_0x576ae0[_0x1db0e8(0x1c0)]?_0x576ae0['stderr']['toString']()[_0x1db0e8(0x1d5)]():'',_0xa18aa2=_0x576ae0[_0x1db0e8(0x1f7)]?_0x576ae0[_0x1db0e8(0x1f7)]['toString']()[_0x1db0e8(0x1d5)]():'';if(_0x46dcd6)_0x2722ef=_0x46dcd6;else{if(_0xa18aa2)_0x2722ef=_0xa18aa2;}}return{'ok':![],'error':_0x2722ef};}async function installCliBuiltInSkill(_0x12efc0){const _0x3ff63a=a63_0x1238a8;console[_0x3ff63a(0x1c9)](_0x3ff63a(0x1f8));const _0x38a23c=runNpxSkillsAddGlobal(process[_0x3ff63a(0x1c6)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x12efc0?_0x3ff63a(0x1d3):_0x3ff63a(0x1e9)});if(_0x38a23c[_0x3ff63a(0x1da)]){console[_0x3ff63a(0x1c9)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x38a23c['ok']){console['log'](_0x3ff63a(0x1d9));return;}console['warn'](_0x3ff63a(0x1c1)+(_0x38a23c['error']||_0x3ff63a(0x1e8))),console[_0x3ff63a(0x1c9)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x5547fd){const _0x5abf89=a63_0x1238a8;await validateUpdateFlags(_0x5547fd);const _0x58984c=getCliVersion();console[_0x5abf89(0x1c9)]('Current\x20version:\x20'+_0x58984c),console[_0x5abf89(0x1c9)](_0x5abf89(0x1d0));const _0x3b4ade=await resolveTargetVersion(_0x5547fd);if(!_0x3b4ade){const _0x267f1f=_0x5547fd[_0x5abf89(0x1f1)](_0x5abf89(0x1ca))?_0x5abf89(0x1ca):_0x5abf89(0x1fb),_0x4e98ca=_0x5abf89(0x1f6)+_0x267f1f+_0x5abf89(0x1cf);return console[_0x5abf89(0x1be)](_0x4e98ca),console[_0x5abf89(0x1c9)](_0x5abf89(0x1e6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x267f1f),{'ok':![]};}if(!shouldInstallTarget(_0x58984c,_0x3b4ade)){const _0x17c86c=_0x3b4ade['source']===_0x5abf89(0x1eb)?_0x5abf89(0x1e2)+_0x3b4ade[_0x5abf89(0x1eb)]+').':_0x5abf89(0x1c8)+_0x3b4ade[_0x5abf89(0x1eb)]+').';return console[_0x5abf89(0x1c9)](_0x17c86c),shouldSkipCliBuiltInSkill(_0x5547fd)?console[_0x5abf89(0x1c9)](_0x5abf89(0x202)):await installCliBuiltInSkill(_0x5547fd[_0x5abf89(0x1f3)]),{'ok':!![]};}console[_0x5abf89(0x1c9)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x58984c+_0x5abf89(0x1ec)+_0x3b4ade['version']);const _0x2f7dfb=installCliPackage(_0x3b4ade['version'],_0x5547fd[_0x5abf89(0x1f3)]);if(!_0x2f7dfb['ok']){const _0x385b9d=_0x5abf89(0x201)+(_0x2f7dfb[_0x5abf89(0x1ce)]||_0x5abf89(0x1e8));return console[_0x5abf89(0x1ce)](_0x385b9d),console['log'](_0x5abf89(0x204)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3b4ade[_0x5abf89(0x1eb)]),{'ok':![]};}return console[_0x5abf89(0x1c9)](_0x5abf89(0x1c4)+_0x3b4ade['version']+'.'),console['log']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x5547fd)?console[_0x5abf89(0x1c9)](_0x5abf89(0x202)):await installCliBuiltInSkill(_0x5547fd[_0x5abf89(0x1f3)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+a63_0x1238a8(0x1c7),'risk':a63_0x1238a8(0x206),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a63_0x5f31ed=a63_0x2287;(function(_0xb87d77,_0x5364eb){const _0x40c73f=a63_0x2287,_0x43a90c=_0xb87d77();while(!![]){try{const _0x2575e9=-parseInt(_0x40c73f(0xb2))/0x1*(-parseInt(_0x40c73f(0x7d))/0x2)+-parseInt(_0x40c73f(0x8a))/0x3+parseInt(_0x40c73f(0xb3))/0x4+-parseInt(_0x40c73f(0x7a))/0x5*(-parseInt(_0x40c73f(0xa8))/0x6)+-parseInt(_0x40c73f(0x86))/0x7*(-parseInt(_0x40c73f(0xbe))/0x8)+parseInt(_0x40c73f(0x92))/0x9+-parseInt(_0x40c73f(0xba))/0xa;if(_0x2575e9===_0x5364eb)break;else _0x43a90c['push'](_0x43a90c['shift']());}catch(_0x3a128f){_0x43a90c['push'](_0x43a90c['shift']());}}}(a63_0x4ac4,0xb218d));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a63_0x5f31ed(0x8f),'type':a63_0x5f31ed(0x93),'description':a63_0x5f31ed(0x89),'default':![]},{'name':a63_0x5f31ed(0x7f),'type':a63_0x5f31ed(0x93),'description':a63_0x5f31ed(0x84),'default':![]},{'name':a63_0x5f31ed(0xa0),'type':a63_0x5f31ed(0x8d),'description':a63_0x5f31ed(0x95)},{'name':a63_0x5f31ed(0xb0),'type':a63_0x5f31ed(0x93),'description':a63_0x5f31ed(0x79),'default':![]},{'name':a63_0x5f31ed(0xac),'type':'boolean','description':a63_0x5f31ed(0xb9),'default':!![],'hidden':!![]}];function parseSemver(_0x39a3cb){const _0x2b4651=a63_0x5f31ed,_0x49b0b8=_0x39a3cb[_0x2b4651(0xa4)]()[_0x2b4651(0x9c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x49b0b8)return null;return{'major':Number(_0x49b0b8[0x1]),'minor':Number(_0x49b0b8[0x2]),'patch':Number(_0x49b0b8[0x3]),'prerelease':_0x49b0b8[0x4]};}function compareSemver(_0x3ebc81,_0x45ec90){const _0x1106b1=a63_0x5f31ed,_0x31bffe=parseSemver(_0x3ebc81),_0x24d22a=parseSemver(_0x45ec90);if(!_0x31bffe||!_0x24d22a)throw CliErrors[_0x1106b1(0x9a)]('Version\x20comparison\x20failed.',_0x1106b1(0xb5));for(const _0x1e3107 of[_0x1106b1(0x87),_0x1106b1(0xa6),_0x1106b1(0x9b)]){if(_0x31bffe[_0x1e3107]<_0x24d22a[_0x1e3107])return-0x1;if(_0x31bffe[_0x1e3107]>_0x24d22a[_0x1e3107])return 0x1;}if(!_0x31bffe[_0x1106b1(0x7e)]&&!_0x24d22a['prerelease'])return 0x0;if(!_0x31bffe['prerelease'])return 0x1;if(!_0x24d22a[_0x1106b1(0x7e)])return-0x1;if(_0x31bffe[_0x1106b1(0x7e)]===_0x24d22a[_0x1106b1(0x7e)])return 0x0;return _0x31bffe[_0x1106b1(0x7e)]<_0x24d22a[_0x1106b1(0x7e)]?-0x1:0x1;}function getRequestedVersion(_0x511337){const _0x12edc8=a63_0x5f31ed,_0x54b50b=_0x511337[_0x12edc8(0xbd)](_0x12edc8(0xa0))['trim']();if(_0x54b50b)return _0x54b50b;return String(_0x511337['args']?.[0x0]??'')[_0x12edc8(0xa4)]();}function shouldSkipCliBuiltInSkill(_0x1e1e14){const _0x55cb8d=a63_0x5f31ed;return _0x1e1e14['bool'](_0x55cb8d(0xb0))||_0x1e1e14['flag'](_0x55cb8d(0xac))===![];}async function validateUpdateFlags(_0x1b6751){const _0x2f0ba8=a63_0x5f31ed,_0x2fcfe3=getRequestedVersion(_0x1b6751),_0x15045f=[_0x1b6751['bool'](_0x2f0ba8(0x8f))?_0x2f0ba8(0x8f):'',_0x1b6751[_0x2f0ba8(0xa5)](_0x2f0ba8(0x7f))?'beta':'',_0x2fcfe3?_0x2f0ba8(0xa0):''][_0x2f0ba8(0xaf)](Boolean);if(_0x15045f['length']>0x1)throw CliErrors[_0x2f0ba8(0x9a)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x2f0ba8(0x83));if(_0x2fcfe3&&!parseSemver(_0x2fcfe3))throw CliErrors[_0x2f0ba8(0x9a)](_0x2f0ba8(0x73)+_0x2fcfe3,_0x2f0ba8(0xae));}function a63_0x4ac4(){const _0x5f4e82=['\x20CLI','Already\x20up\x20to\x20date\x20(v','Current\x20version:\x20','version','\x20->\x20','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','exit\x20','trim','bool','minor','object','2028WAvNqP','source','map','update','skills','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','filter','no-skills','pipe','1238sVgyeF','1619468YgGMEN','Update\x20failed:\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stderr','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','cwd','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','10127250ORqRZq','json','从\x20npm\x20更新\x20','str','7895672JFUqPc','toString','Invalid\x20version:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Already\x20on\x20requested\x20version\x20(v','Checking\x20npm\x20dist-tags...','log','warn','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','4525wGgVQl','Checking\x20CLI\x20Built-in\x20Skill...','Updated\x20to\x20v','1576BFQrfG','prerelease','beta','unknown','stdout','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','install','7ENWHkO','major','nonInteractive','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','4233039fhDbDm','run','timeout','string','Updating\x20','latest','\x20version\x20from\x20npm.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','4319667vaFdKo','boolean','npm','Install\x20a\x20specific\x20CLI\x20version','message','error','/dist-tags','status','validation','patch','match'];a63_0x4ac4=function(){return _0x5f4e82;};return a63_0x4ac4();}async function fetchNpmDistTags(){const _0x3d36fb=a63_0x5f31ed;try{const _0x26738f=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3d36fb(0x98),_0x58bcd1=await fetch(_0x26738f,{'signal':AbortSignal[_0x3d36fb(0x8c)](0x2710)});if(!_0x58bcd1['ok'])return null;const _0x584053=await _0x58bcd1[_0x3d36fb(0xbb)]();if(!_0x584053||typeof _0x584053!==_0x3d36fb(0xa7))return null;return Object[_0x3d36fb(0xad)](Object['entries'](_0x584053)[_0x3d36fb(0xaf)](([,_0xc95c29])=>typeof _0xc95c29===_0x3d36fb(0x8d)&&_0xc95c29[_0x3d36fb(0xa4)]())[_0x3d36fb(0xaa)](([_0x20a8c0,_0x33c78a])=>[_0x20a8c0,String(_0x33c78a)[_0x3d36fb(0xa4)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4182ca){const _0x23fbf0=a63_0x5f31ed,_0x4710c0=getRequestedVersion(_0x4182ca);if(_0x4710c0)return{'version':_0x4710c0,'source':_0x23fbf0(0xa0)};const _0x443377=_0x4182ca['bool'](_0x23fbf0(0x7f))?_0x23fbf0(0x7f):'latest',_0x51590c=await fetchNpmDistTags(),_0x47b675=_0x51590c?.[_0x443377];if(!_0x47b675)return null;return{'version':_0x47b675,'source':_0x443377};}function a63_0x2287(_0x47783c,_0x4a7d1a){_0x47783c=_0x47783c-0x72;const _0x4ac458=a63_0x4ac4();let _0x228773=_0x4ac458[_0x47783c];return _0x228773;}function shouldInstallTarget(_0x2015cb,_0x31b1eb){const _0x1f0371=a63_0x5f31ed,_0x20ac03=compareSemver(_0x2015cb,_0x31b1eb[_0x1f0371(0xa0)]);if(_0x31b1eb[_0x1f0371(0xa9)]==='version')return _0x20ac03!==0x0;return _0x20ac03<0x0;}function installCliPackage(_0x464141,_0x29eeb4){const _0x50c437=a63_0x5f31ed,_0x105a70=resolveNpmBin(_0x50c437(0x94)),_0x556767=[_0x50c437(0x85),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x464141];console[_0x50c437(0x77)]('*\x20'+[_0x105a70,..._0x556767]['join']('\x20'));const _0x436467=spawnSync(_0x105a70,_0x556767,{'cwd':process[_0x50c437(0xb8)](),'stdio':_0x29eeb4?_0x50c437(0xb1):'inherit','env':process.env,'shell':![]});if(_0x436467[_0x50c437(0x99)]===0x0)return{'ok':!![]};let _0x48040f=_0x436467[_0x50c437(0x97)]?.[_0x50c437(0x96)]||_0x50c437(0xa3)+(_0x436467[_0x50c437(0x99)]??_0x50c437(0x80));if(_0x29eeb4){const _0x57449d=_0x436467[_0x50c437(0xb6)]?_0x436467['stderr'][_0x50c437(0x72)]()['trim']():'',_0x1311ff=_0x436467[_0x50c437(0x81)]?_0x436467['stdout'][_0x50c437(0x72)]()[_0x50c437(0xa4)]():'';if(_0x57449d)_0x48040f=_0x57449d;else{if(_0x1311ff)_0x48040f=_0x1311ff;}}return{'ok':![],'error':_0x48040f};}async function installCliBuiltInSkill(_0x528a46){const _0x1b2280=a63_0x5f31ed;console[_0x1b2280(0x77)](_0x1b2280(0x7b));const _0x251086=runNpxSkillsAddGlobal(process[_0x1b2280(0xb8)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x528a46?'pipe':'inherit'});if(_0x251086['skipped']){console[_0x1b2280(0x77)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x251086['ok']){console[_0x1b2280(0x77)](_0x1b2280(0x74));return;}console[_0x1b2280(0x78)](_0x1b2280(0x82)+(_0x251086[_0x1b2280(0x97)]||_0x1b2280(0x80))),console[_0x1b2280(0x77)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x92259b){const _0x3cc75b=a63_0x5f31ed;await validateUpdateFlags(_0x92259b);const _0x17d72c=getCliVersion();console[_0x3cc75b(0x77)](_0x3cc75b(0x9f)+_0x17d72c),console['log'](_0x3cc75b(0x76));const _0x511030=await resolveTargetVersion(_0x92259b);if(!_0x511030){const _0x187a48=_0x92259b['bool'](_0x3cc75b(0x7f))?_0x3cc75b(0x7f):'latest',_0xc39390='Unable\x20to\x20resolve\x20'+_0x187a48+_0x3cc75b(0x90);return console[_0x3cc75b(0x78)](_0xc39390),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x187a48),{'ok':![]};}if(!shouldInstallTarget(_0x17d72c,_0x511030)){const _0x588cdd=_0x511030['source']===_0x3cc75b(0xa0)?_0x3cc75b(0x75)+_0x511030['version']+').':_0x3cc75b(0x9e)+_0x511030[_0x3cc75b(0xa0)]+').';return console[_0x3cc75b(0x77)](_0x588cdd),shouldSkipCliBuiltInSkill(_0x92259b)?console[_0x3cc75b(0x77)](_0x3cc75b(0xa2)):await installCliBuiltInSkill(_0x92259b[_0x3cc75b(0x88)]),{'ok':!![]};}console['log'](_0x3cc75b(0x8e)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x17d72c+_0x3cc75b(0xa1)+_0x511030[_0x3cc75b(0xa0)]);const _0x3c5141=installCliPackage(_0x511030[_0x3cc75b(0xa0)],_0x92259b[_0x3cc75b(0x88)]);if(!_0x3c5141['ok']){const _0x43b93a=_0x3cc75b(0xb4)+(_0x3c5141[_0x3cc75b(0x97)]||_0x3cc75b(0x80));return console[_0x3cc75b(0x97)](_0x43b93a),console['log'](_0x3cc75b(0xb7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x511030[_0x3cc75b(0xa0)]),{'ok':![]};}return console[_0x3cc75b(0x77)](_0x3cc75b(0x7c)+_0x511030[_0x3cc75b(0xa0)]+'.'),console[_0x3cc75b(0x77)](_0x3cc75b(0x91)),shouldSkipCliBuiltInSkill(_0x92259b)?console[_0x3cc75b(0x77)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x92259b['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a63_0x5f31ed(0xab),'command':a63_0x5f31ed(0x8b),'description':a63_0x5f31ed(0xbc)+CLI_BIN_NAME+a63_0x5f31ed(0x9d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};