@lovrabet/lovrabet-cli 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) 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/postinstall.js +1 -1
  103. package/lib/runtime/confirmation.js +1 -1
  104. package/lib/runtime/event.js +1 -1
  105. package/lib/runtime/index.js +1 -1
  106. package/lib/runtime/queue.js +1 -1
  107. package/lib/runtime/resolve.js +1 -1
  108. package/lib/skills/builtin-skill.js +1 -1
  109. package/lib/skills/npx-skills-add.js +1 -1
  110. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  111. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  112. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  113. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  114. package/lib/skills/runtime-skill-sync/links.js +1 -1
  115. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  116. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  117. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  118. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  119. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  120. package/lib/skills/runtime-skill-sync/push.js +1 -1
  121. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.js +1 -1
  125. package/lib/skills/skill-presence.js +1 -1
  126. package/lib/utils/apply-jq-filter.js +1 -1
  127. package/lib/utils/logger.js +1 -1
  128. package/lib/utils/lossless-json.js +1 -1
  129. package/lib/utils/params.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/update-notice.js +1 -1
  132. package/lib/utils/version.js +1 -1
  133. package/lib/utils/write-cli-side-channel.js +1 -1
  134. package/package.json +2 -1
  135. package/skills/lovrabet/SKILL.md +1 -1
  136. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a50_0x342fd3=a50_0x5df8;(function(_0xdfddf5,_0x2b0d21){const _0x183d4f=a50_0x5df8,_0x3399f0=_0xdfddf5();while(!![]){try{const _0x447303=parseInt(_0x183d4f(0x120))/0x1+parseInt(_0x183d4f(0x133))/0x2+parseInt(_0x183d4f(0x11f))/0x3+-parseInt(_0x183d4f(0x121))/0x4+parseInt(_0x183d4f(0x132))/0x5+-parseInt(_0x183d4f(0x13a))/0x6+parseInt(_0x183d4f(0x117))/0x7*(-parseInt(_0x183d4f(0x12e))/0x8);if(_0x447303===_0x2b0d21)break;else _0x3399f0['push'](_0x3399f0['shift']());}catch(_0x1613c9){_0x3399f0['push'](_0x3399f0['shift']());}}}(a50_0x27c9,0xd0fec));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a50_0x27c9(){const _0x159ecc=['Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','all','string','target','project','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','expected-diagram-revision','4176277MmXNwN','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','diagram-file','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','company','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','4200483GqnDPb','1068482zVHKIZ','6040404hfMYrI','local','strict','type','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','dir','number','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','version','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','24QoCTNx','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','skill-code','6907745hGGSAW','1607736sXRRyp','boolean','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','scope','name','personal','confirm-warnings','2988492sBaOBI','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'];a50_0x27c9=function(){return _0x159ecc;};return a50_0x27c9();}export const CODE_FLAG={'name':'code','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x11a)};export const SCOPE_FLAG={'name':'scope','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x118),'enum':[a50_0x342fd3(0x111),a50_0x342fd3(0x138),a50_0x342fd3(0x11d)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x12d),'default':'personal','enum':['personal','company']};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a50_0x342fd3(0x12b),'enum':[a50_0x342fd3(0x111),a50_0x342fd3(0x138),a50_0x342fd3(0x11d)]};export const LOCAL_FLAG={'name':a50_0x342fd3(0x122),'type':a50_0x342fd3(0x134),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a50_0x342fd3(0x127),'type':a50_0x342fd3(0x112),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a50_0x342fd3(0x11b),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x129)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0x342fd3(0x131),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x11c)};function a50_0x5df8(_0x2d423a,_0x41b049){_0x2d423a=_0x2d423a-0x10f;const _0x27c981=a50_0x27c9();let _0x5df834=_0x27c981[_0x2d423a];return _0x5df834;}export const DIAGRAM_VERSION_FLAG={'name':a50_0x342fd3(0x12a),'type':'string','required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a50_0x342fd3(0x136),'type':a50_0x342fd3(0x112),'required':!![],'enum':[a50_0x342fd3(0x138),a50_0x342fd3(0x11d)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':'string','required':!![],'description':a50_0x342fd3(0x12c),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a50_0x342fd3(0x11e)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a50_0x342fd3(0x116),'type':a50_0x342fd3(0x128),'required':!![],'description':a50_0x342fd3(0x12f)};export const CREATE_NAME_FLAG={'name':a50_0x342fd3(0x137),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x130),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a50_0x342fd3(0x119)}};export const TYPE_FLAG={'name':a50_0x342fd3(0x124),'type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x110),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0x342fd3(0x113),'type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x125),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':a50_0x342fd3(0x10f)};export const PROJECT_TARGET_FLAG={'name':a50_0x342fd3(0x114),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x135)};export const CONFIRM_WARNINGS_FLAG={'name':a50_0x342fd3(0x139),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x115)};export const STRICT_FLAG={'name':a50_0x342fd3(0x123),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x126)};
1
+ const a50_0xb892e8=a50_0xec1c;(function(_0x4248ae,_0x309170){const _0x167540=a50_0xec1c,_0x33ff29=_0x4248ae();while(!![]){try{const _0x52b097=parseInt(_0x167540(0x98))/0x1+parseInt(_0x167540(0x76))/0x2*(parseInt(_0x167540(0x93))/0x3)+parseInt(_0x167540(0x8c))/0x4+-parseInt(_0x167540(0x8a))/0x5*(parseInt(_0x167540(0x87))/0x6)+-parseInt(_0x167540(0x74))/0x7+parseInt(_0x167540(0x97))/0x8*(-parseInt(_0x167540(0x89))/0x9)+parseInt(_0x167540(0x7e))/0xa;if(_0x52b097===_0x309170)break;else _0x33ff29['push'](_0x33ff29['shift']());}catch(_0xf0d927){_0x33ff29['push'](_0x33ff29['shift']());}}}(a50_0x1f74,0xf3354));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a50_0xb892e8(0x83),'type':a50_0xb892e8(0x8b),'description':a50_0xb892e8(0x7d)};function a50_0xec1c(_0x44ab9f,_0x2b4c9f){_0x44ab9f=_0x44ab9f-0x72;const _0x1f7467=a50_0x1f74();let _0xec1c2d=_0x1f7467[_0x44ab9f];return _0xec1c2d;}export const SCOPE_FLAG={'name':a50_0xb892e8(0x8f),'type':a50_0xb892e8(0x8b),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':['all',a50_0xb892e8(0x86),'company']};export const PUSH_SCOPE_FLAG={'name':a50_0xb892e8(0x8f),'type':a50_0xb892e8(0x8b),'description':a50_0xb892e8(0x78),'default':a50_0xb892e8(0x86),'enum':[a50_0xb892e8(0x86),'company']};export const LIST_SCOPE_FLAG={'name':a50_0xb892e8(0x8f),'type':a50_0xb892e8(0x8b),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':['all',a50_0xb892e8(0x86),a50_0xb892e8(0x96)]};export const LOCAL_FLAG={'name':a50_0xb892e8(0x9c),'type':a50_0xb892e8(0x85),'description':a50_0xb892e8(0x8d)};export const DIR_FLAG={'name':a50_0xb892e8(0x99),'type':a50_0xb892e8(0x8b),'required':!![],'description':a50_0xb892e8(0x88)};export const DIAGRAM_FILE_FLAG={'name':a50_0xb892e8(0x7b),'type':a50_0xb892e8(0x8b),'required':!![],'description':a50_0xb892e8(0x75)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0xb892e8(0x73),'type':a50_0xb892e8(0x8b),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a50_0xb892e8(0x90),'type':'string','required':!![],'description':a50_0xb892e8(0x92)};export const DIAGRAM_SCOPE_FLAG={'name':a50_0xb892e8(0x8f),'type':a50_0xb892e8(0x8b),'required':!![],'enum':['personal','company'],'description':a50_0xb892e8(0x84)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a50_0xb892e8(0x8b),'required':!![],'description':a50_0xb892e8(0x72),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a50_0xb892e8(0x7c)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a50_0xb892e8(0x8e),'type':'number','required':!![],'description':a50_0xb892e8(0x82)};export const CREATE_NAME_FLAG={'name':'name','type':'string','required':!![],'description':a50_0xb892e8(0x7f),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a50_0xb892e8(0x95)}};export const TYPE_FLAG={'name':a50_0xb892e8(0x80),'type':a50_0xb892e8(0x8b),'description':a50_0xb892e8(0x79),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0xb892e8(0x7a),'type':a50_0xb892e8(0x8b),'description':a50_0xb892e8(0x81),'default':DEFAULT_SKILL_TARGET};function a50_0x1f74(){const _0x2e45d2=['Exact\x20Skill\x20scope:\x20personal\x20or\x20company','boolean','personal','6wIsvrp','Local\x20Skill\x20directory\x20containing\x20SKILL.md','13474611grFvpS','8144105XVcScU','string','3746392wSrDei','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','expected-diagram-revision','scope','version','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','1536615BdUuGt','confirm-warnings','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','company','8yVPiCj','147529NXhhNR','dir','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','local','force','Server-reported\x20SkillVersion\x20source\x20fingerprint','skill-code','9303000NjEwyu','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','6jPfGSk','strict','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','target','diagram-file','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','28304380UdLWTc','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','type','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','code'];a50_0x1f74=function(){return _0x2e45d2;};return a50_0x1f74();}export const FORCE_FLAG={'name':a50_0xb892e8(0x9d),'type':a50_0xb892e8(0x85),'description':a50_0xb892e8(0x9b)};export const PROJECT_TARGET_FLAG={'name':'project','type':a50_0xb892e8(0x85),'description':a50_0xb892e8(0x91)};export const CONFIRM_WARNINGS_FLAG={'name':a50_0xb892e8(0x94),'type':a50_0xb892e8(0x85),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':a50_0xb892e8(0x77),'type':a50_0xb892e8(0x85),'description':a50_0xb892e8(0x9a)};
@@ -1 +1 @@
1
- (function(_0x182aec,_0x1fc1bb){const _0x1bc115=a51_0x2194,_0x41b004=_0x182aec();while(!![]){try{const _0x2a5e5c=parseInt(_0x1bc115(0xd5))/0x1+parseInt(_0x1bc115(0xcf))/0x2*(-parseInt(_0x1bc115(0xd4))/0x3)+parseInt(_0x1bc115(0xce))/0x4+-parseInt(_0x1bc115(0xcd))/0x5+parseInt(_0x1bc115(0xd0))/0x6*(parseInt(_0x1bc115(0xd6))/0x7)+parseInt(_0x1bc115(0xd3))/0x8*(-parseInt(_0x1bc115(0xd2))/0x9)+parseInt(_0x1bc115(0xcc))/0xa*(parseInt(_0x1bc115(0xd1))/0xb);if(_0x2a5e5c===_0x1fc1bb)break;else _0x41b004['push'](_0x41b004['shift']());}catch(_0xc812b2){_0x41b004['push'](_0x41b004['shift']());}}}(a51_0x2592,0xb0197));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_0x2194(_0x16e224,_0x3879d4){_0x16e224=_0x16e224-0xcc;const _0x259265=a51_0x2592();let _0x2194f2=_0x259265[_0x16e224];return _0x2194f2;}import{pushCommand}from'./commands/push.js';function a51_0x2592(){const _0x351020=['302324IgSigJ','476976lwofWd','847svjfgM','153WYgPuM','50840BbaypK','9wlwcKL','1257177TvYMBi','56dsLaXQ','2810WLfIJN','5821975vjxxwT','2129748SnxcmF'];a51_0x2592=function(){return _0x351020;};return a51_0x2592();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ (function(_0x8856c0,_0x1c7914){const _0x5d6aef=a51_0x422e,_0x2e5518=_0x8856c0();while(!![]){try{const _0x2f64e4=-parseInt(_0x5d6aef(0x125))/0x1*(parseInt(_0x5d6aef(0x121))/0x2)+parseInt(_0x5d6aef(0x126))/0x3*(-parseInt(_0x5d6aef(0x127))/0x4)+parseInt(_0x5d6aef(0x120))/0x5+parseInt(_0x5d6aef(0x129))/0x6*(parseInt(_0x5d6aef(0x128))/0x7)+-parseInt(_0x5d6aef(0x122))/0x8*(-parseInt(_0x5d6aef(0x12a))/0x9)+-parseInt(_0x5d6aef(0x123))/0xa+parseInt(_0x5d6aef(0x124))/0xb;if(_0x2f64e4===_0x1c7914)break;else _0x2e5518['push'](_0x2e5518['shift']());}catch(_0x2544f2){_0x2e5518['push'](_0x2e5518['shift']());}}}(a51_0x4851,0xc4984));function a51_0x422e(_0x5d509b,_0x52a3de){_0x5d509b=_0x5d509b-0x120;const _0x485122=a51_0x4851();let _0x422ef2=_0x485122[_0x5d509b];return _0x422ef2;}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a51_0x4851(){const _0x1a2594=['320790VdQOZC','4skVsXj','164520GFqsQD','8132850yFRtzU','21919161BITqsp','162677VSjUKt','175146fwdqqS','28dxTANi','91wDGhsQ','70062IhyCdV','63ylSHTo'];a51_0x4851=function(){return _0x1a2594;};return a51_0x4851();}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_0x16a4(){var _0x3f316a=['2579717wYMcNi','2337231rmiTpC','3125442aKajMI','isArray','length','some','1225238sroZac','2MFiULv','object','5359224UOMtld','4203235xaAgOO','8tGDRCC','ossPath','path','30552705HFkKMQ','SKILL.md','10UFUuvr'];a52_0x16a4=function(){return _0x3f316a;};return a52_0x16a4();}function a52_0x3967(_0x2c0cdc,_0x248b09){_0x2c0cdc=_0x2c0cdc-0x120;var _0x16a487=a52_0x16a4();var _0x3967a9=_0x16a487[_0x2c0cdc];return _0x3967a9;}(function(_0x3449b6,_0x23e2a2){var _0x429f33=a52_0x3967,_0x36aa74=_0x3449b6();while(!![]){try{var _0x365f4b=parseInt(_0x429f33(0x128))/0x1+parseInt(_0x429f33(0x129))/0x2*(parseInt(_0x429f33(0x123))/0x3)+parseInt(_0x429f33(0x12b))/0x4+parseInt(_0x429f33(0x12c))/0x5+parseInt(_0x429f33(0x124))/0x6+-parseInt(_0x429f33(0x122))/0x7*(parseInt(_0x429f33(0x12d))/0x8)+parseInt(_0x429f33(0x130))/0x9*(-parseInt(_0x429f33(0x121))/0xa);if(_0x365f4b===_0x23e2a2)break;else _0x36aa74['push'](_0x36aa74['shift']());}catch(_0x59a778){_0x36aa74['push'](_0x36aa74['shift']());}}}(a52_0x16a4,0xe613f));export function isPackageBackedManifest(_0x551d6e){var _0x301d85=a52_0x3967;return!!_0x551d6e&&typeof _0x551d6e===_0x301d85(0x12a)&&!Array[_0x301d85(0x125)](_0x551d6e)&&typeof _0x551d6e[_0x301d85(0x12e)]==='string'&&_0x551d6e[_0x301d85(0x12e)][_0x301d85(0x126)]>0x0&&Array[_0x301d85(0x125)](_0x551d6e['files']);}export function isMultiFileManifest(_0x3ae843){var _0x3450c9=a52_0x3967;return!!_0x3ae843&&typeof _0x3ae843===_0x3450c9(0x12a)&&!Array['isArray'](_0x3ae843)&&Array['isArray'](_0x3ae843['files'])&&_0x3ae843['files'][_0x3450c9(0x127)](_0x6ceea2=>_0x6ceea2[_0x3450c9(0x12f)]!==_0x3450c9(0x120));}
1
+ (function(_0x31103a,_0x1f6f52){var _0x3787b2=a52_0xe340,_0x514cc8=_0x31103a();while(!![]){try{var _0x5d2eee=parseInt(_0x3787b2(0x1be))/0x1*(-parseInt(_0x3787b2(0x1bd))/0x2)+-parseInt(_0x3787b2(0x1b5))/0x3+parseInt(_0x3787b2(0x1ba))/0x4+-parseInt(_0x3787b2(0x1bf))/0x5*(-parseInt(_0x3787b2(0x1b7))/0x6)+parseInt(_0x3787b2(0x1c1))/0x7+parseInt(_0x3787b2(0x1c3))/0x8*(-parseInt(_0x3787b2(0x1bc))/0x9)+parseInt(_0x3787b2(0x1b3))/0xa;if(_0x5d2eee===_0x1f6f52)break;else _0x514cc8['push'](_0x514cc8['shift']());}catch(_0x12ca03){_0x514cc8['push'](_0x514cc8['shift']());}}}(a52_0x214d,0xb34fe));function a52_0xe340(_0x57461e,_0x53e3b5){_0x57461e=_0x57461e-0x1b3;var _0x214d8e=a52_0x214d();var _0xe34024=_0x214d8e[_0x57461e];return _0xe34024;}export function isPackageBackedManifest(_0x2d9a8b){var _0x3c6043=a52_0xe340;return!!_0x2d9a8b&&typeof _0x2d9a8b===_0x3c6043(0x1c0)&&!Array['isArray'](_0x2d9a8b)&&typeof _0x2d9a8b[_0x3c6043(0x1c2)]==='string'&&_0x2d9a8b[_0x3c6043(0x1c2)][_0x3c6043(0x1b6)]>0x0&&Array[_0x3c6043(0x1c4)](_0x2d9a8b[_0x3c6043(0x1bb)]);}function a52_0x214d(){var _0x44f528=['6kBOSnT','path','some','3709420tLFZYs','files','45QMFnbB','2280478RODJBR','1qjpHVJ','1826725HlfzmR','object','9996714NIPgkf','ossPath','1223288iMUCNK','isArray','4644270lchCkJ','SKILL.md','1637919YvZGvP','length'];a52_0x214d=function(){return _0x44f528;};return a52_0x214d();}export function isMultiFileManifest(_0xe24038){var _0x253231=a52_0xe340;return!!_0xe24038&&typeof _0xe24038===_0x253231(0x1c0)&&!Array[_0x253231(0x1c4)](_0xe24038)&&Array['isArray'](_0xe24038[_0x253231(0x1bb)])&&_0xe24038['files'][_0x253231(0x1b9)](_0x1af0d7=>_0x1af0d7[_0x253231(0x1b8)]!==_0x253231(0x1b4));}
@@ -1 +1 @@
1
- (function(_0x35bea8,_0x44b72a){const _0x19c568=a53_0xe1f2,_0x566172=_0x35bea8();while(!![]){try{const _0x57ddd3=parseInt(_0x19c568(0x1d5))/0x1+parseInt(_0x19c568(0x1c9))/0x2*(parseInt(_0x19c568(0x1f5))/0x3)+parseInt(_0x19c568(0x1cf))/0x4+-parseInt(_0x19c568(0x1e4))/0x5*(-parseInt(_0x19c568(0x1d9))/0x6)+parseInt(_0x19c568(0x1f6))/0x7*(-parseInt(_0x19c568(0x1ed))/0x8)+parseInt(_0x19c568(0x1db))/0x9+-parseInt(_0x19c568(0x1f2))/0xa*(parseInt(_0x19c568(0x1f9))/0xb);if(_0x57ddd3===_0x44b72a)break;else _0x566172['push'](_0x566172['shift']());}catch(_0x32fd39){_0x566172['push'](_0x566172['shift']());}}}(a53_0x3cc6,0x68b71));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x41d878){const _0x34fa19=a53_0xe1f2,{getRuntimeSkillByCode:_0x5591e4,validateRuntimeSkillPublish:_0x123766}=await import(_0x34fa19(0x1d0)),{readPushDirectory:_0x4d5e7a,resolvePushDirectoryIdentity:_0x339485}=await import(_0x34fa19(0x1e1));if(!_0x41d878[_0x34fa19(0x1c6)])throw CliErrors[_0x34fa19(0x1e7)]();const _0x5f0df4=resolvePushScope(_0x41d878),_0x2a5687=validateSkillDirectory(_0x41d878[_0x34fa19(0x1ee)](_0x34fa19(0x1df)));throwIfSkillValidationFailed(_0x2a5687);const {diagram:_0x4b5a5d,sourceFilePath:_0x1e0437}=await readRequiredSkillDiagramInput(_0x41d878[_0x34fa19(0x1ee)](_0x34fa19(0x1ec))),_0x57ce73=diagramPackageExclusion(_0x1e0437),_0x3b6ebc=_0x339485(_0x2a5687[_0x34fa19(0x1df)],_0x41d878['appCode'],remoteFirstMetadataOptions()),_0x5f086f=await _0x5591e4(_0x41d878[_0x34fa19(0x1e3)],_0x3b6ebc[_0x34fa19(0x1f3)]);throwIfBuiltinPushTarget(_0x5f086f);if(_0x5f0df4===_0x34fa19(0x1d2)){const _0x38e374=_0x4d5e7a(_0x2a5687['dir'],_0x41d878[_0x34fa19(0x1e3)],{...remoteMissingCompanyReadOptions(),..._0x57ce73}),_0x4902da=await _0x123766(_0x41d878['appCode'],withDiagram(_0x38e374[_0x34fa19(0x1ef)],_0x4b5a5d),{'visibility':_0x34fa19(0x1c8)});return{'method':'POST','url':_0x34fa19(0x1e5)+_0x41d878[_0x34fa19(0x1e3)]+_0x34fa19(0x1f8),'body':{'skillCode':_0x38e374[_0x34fa19(0x1f3)],'visibility':_0x34fa19(0x1c8),'valid':_0x4902da[_0x34fa19(0x1d4)],'errors':_0x4902da[_0x34fa19(0x1fc)],'warnings':_0x4902da[_0x34fa19(0x1bd)],'resolvedSlug':_0x4902da[_0x34fa19(0x1de)],'resolvedVersion':_0x4902da[_0x34fa19(0x1fb)],'diagramValidated':_0x4902da[_0x34fa19(0x1c4)]},'description':_0x34fa19(0x1bc)};}if(_0x5f086f&&_0x5f086f[_0x34fa19(0x1dc)]!==_0x34fa19(0x1ce))throw CliErrors[_0x34fa19(0x1cb)](_0x34fa19(0x1c1)+_0x3b6ebc[_0x34fa19(0x1f3)]+'\x20has\x20scope=\x22'+(_0x5f086f[_0x34fa19(0x1dc)]??_0x34fa19(0x1e9))+'\x22.');const _0x11e179=_0x4d5e7a(_0x2a5687['dir'],_0x41d878[_0x34fa19(0x1e3)],{..._0x5f086f?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x57ce73}),_0x1f0241=await _0x123766(_0x41d878[_0x34fa19(0x1e3)],withDiagram(_0x11e179[_0x34fa19(0x1ef)],_0x4b5a5d),{'visibility':_0x34fa19(0x1cc)});return{'method':_0x34fa19(0x1f4),'url':_0x34fa19(0x1e5)+_0x41d878['appCode']+_0x34fa19(0x1f8),'body':{'skillCode':_0x11e179[_0x34fa19(0x1f3)],'visibility':'PRIVATE','valid':_0x1f0241[_0x34fa19(0x1d4)],'errors':_0x1f0241['errors'],'warnings':_0x1f0241[_0x34fa19(0x1bd)],'resolvedSlug':_0x1f0241[_0x34fa19(0x1de)],'resolvedVersion':_0x1f0241[_0x34fa19(0x1fb)],'diagramValidated':_0x1f0241['diagramValidated']},'description':_0x34fa19(0x1c3)};}function a53_0xe1f2(_0x1c8f1a,_0x43081c){_0x1c8f1a=_0x1c8f1a-0x1bc;const _0x3cc65d=a53_0x3cc6();let _0xe1f26e=_0x3cc65d[_0x1c8f1a];return _0xe1f26e;}export async function skillPushExecute(_0x154780){const _0x146213=a53_0xe1f2,{createPersonalRuntimeSkill:_0x5bf894,downloadRuntimeSkillPackage:_0xf4c357,getRuntimeSkillByCode:_0x573e24,publishCompanyRuntimeSkill:_0x511121,updatePersonalRuntimeSkill:_0x5243f1,validateRuntimeSkillPublish:_0xb0b612}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x33996e,verifyRuntimeSkillBundle:_0xe83082,readPushDirectory:_0x3f0246,refreshPushDirectoryMetadataFromRemote:_0x43d9ab,recordPushedRuntimeSkill:_0x324bc6,resolvePushDirectoryIdentity:_0x1fe456}=await import('../../skills/runtime-skill-sync.js');if(!_0x154780[_0x146213(0x1c6)])throw CliErrors[_0x146213(0x1e7)]();const _0x45018e=resolvePushScope(_0x154780),_0x3883b6=_0x154780['bool'](_0x146213(0x1eb))||_0x154780[_0x146213(0x1d6)](_0x146213(0x1dd)),_0x181dfc=validateSkillDirectory(_0x154780[_0x146213(0x1ee)](_0x146213(0x1df)));throwIfSkillValidationFailed(_0x181dfc);const {diagram:_0x19e98d,sourceFilePath:_0x2c32e5}=await readRequiredSkillDiagramInput(_0x154780[_0x146213(0x1ee)]('diagram-file')),_0x22d93c=diagramPackageExclusion(_0x2c32e5),_0x31d15c=_0x181dfc[_0x146213(0x1df)];let _0x1516c7;if(_0x45018e==='company'){const _0x4c193c=_0x1fe456(_0x31d15c,_0x154780[_0x146213(0x1e3)],remoteFirstMetadataOptions()),_0x26753e=await _0x573e24(_0x154780['appCode'],_0x4c193c['skillCode']);throwIfBuiltinPushTarget(_0x26753e);if(_0x26753e)_0x43d9ab(_0x31d15c,_0x26753e,_0x154780[_0x146213(0x1e3)]);const _0x52d7e8=_0x3f0246(_0x31d15c,_0x154780[_0x146213(0x1e3)],{..._0x26753e?{'targetScope':_0x146213(0x1d2),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x22d93c});_0x1516c7={'scope':_0x146213(0x1d2),'payload':_0x52d7e8,'publishInput':withDiagram(_0x52d7e8[_0x146213(0x1ef)],_0x19e98d),'remoteForPreflight':_0x26753e,'warnings':[]};}else{const _0x54e04e=_0x154780[_0x146213(0x1ee)](_0x146213(0x1d3))[_0x146213(0x1e8)](),_0x48b788=Boolean(_0x54e04e),_0x33ff7c=allowRetargetArgs(_0x48b788),_0x49c572=_0x1fe456(_0x31d15c,_0x154780[_0x146213(0x1e3)],{...remoteFirstMetadataOptions(),..._0x33ff7c[0x0]}),_0x459488=await _0x573e24(_0x154780[_0x146213(0x1e3)],_0x49c572['skillCode']);throwIfBuiltinPushTarget(_0x459488);if(_0x459488){if(_0x459488[_0x146213(0x1dc)]!==_0x146213(0x1ce)){if(_0x48b788)throw CliErrors[_0x146213(0x1cb)](_0x146213(0x1c1)+_0x49c572[_0x146213(0x1f3)]+_0x146213(0x1cd)+(_0x459488[_0x146213(0x1dc)]??_0x146213(0x1e9))+'\x22.');_0x43d9ab(_0x31d15c,_0x459488,_0x154780[_0x146213(0x1e3)]);}else!_0x48b788&&_0x43d9ab(_0x31d15c,_0x459488,_0x154780[_0x146213(0x1e3)]);}const _0x47bf0c=_0x3f0246(_0x31d15c,_0x154780[_0x146213(0x1e3)],{..._0x459488?remotePersonalReadOptions(_0x48b788,_0x33ff7c[0x0]):remoteMissingPersonalReadOptions(_0x33ff7c[0x0]),..._0x22d93c}),_0x3d25ac=_0x459488?.['scope']===_0x146213(0x1ce)&&_0x459488[_0x146213(0x1f3)]===_0x47bf0c[_0x146213(0x1f3)]?_0x459488:undefined,_0x59e65d=_0x48b788&&_0x3d25ac?withRetargetExistingMetadata(_0x47bf0c[_0x146213(0x1ef)],_0x3d25ac,{'preferInputSkillName':Boolean(_0x47bf0c[_0x146213(0x1c2)])}):_0x47bf0c[_0x146213(0x1ef)],_0x2fbd34=_0x48b788?buildRetargetWarning(_0x49c572['metadata'],_0x154780[_0x146213(0x1e3)]):[];_0x1516c7={'scope':_0x146213(0x1ce),'payload':_0x47bf0c,'publishInput':withDiagram(_0x59e65d,_0x19e98d),'remoteForPreflight':_0x3d25ac,'existing':_0x3d25ac,'warnings':[..._0x181dfc[_0x146213(0x1bd)],..._0x2fbd34]};}const _0xb3426c=await runRemoteContentPreflight({'scope':_0x1516c7[_0x146213(0x1dc)],'remote':_0x1516c7[_0x146213(0x1c7)],'publishInput':_0x1516c7[_0x146213(0x1bf)],'skillCode':_0x1516c7['payload'][_0x146213(0x1f3)],'appCode':_0x154780[_0x146213(0x1e3)],'downloadRuntimeSkillPackage':_0xf4c357,'verifyRuntimeSkillBundle':_0xe83082});if(_0xb3426c[_0x146213(0x1fa)]===_0x146213(0x1d1))return _0x1516c7[_0x146213(0x1dc)]===_0x146213(0x1d2)?_0x324bc6(_0x31d15c,_0xb3426c[_0x146213(0x1f0)],_0x154780['appCode'],{'scope':_0x146213(0x1d2)}):_0x324bc6(_0x31d15c,_0xb3426c['savedSkill'],_0x154780[_0x146213(0x1e3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xb3426c[_0x146213(0x1f0)]),'scope':_0x1516c7[_0x146213(0x1dc)],..._0x1516c7['scope']===_0x146213(0x1ce)?{'warnings':_0x1516c7[_0x146213(0x1bd)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x1516c7[_0x146213(0x1dc)])+_0x146213(0x1f1)+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]+_0x146213(0x1c0)};if(_0x1516c7[_0x146213(0x1dc)]===_0x146213(0x1d2)){const _0x25c391=await _0xb0b612(_0x154780['appCode'],_0x1516c7[_0x146213(0x1bf)],{'visibility':_0x146213(0x1c8)});throwIfPublishValidationFailed(_0x146213(0x1d2),_0x1516c7['payload']['skillCode'],_0x25c391),throwIfUnconfirmedPublishWarnings(_0x146213(0x1d2),_0x1516c7['payload']['skillCode'],_0x25c391[_0x146213(0x1bd)],_0x3883b6);const _0x34861a=await _0x511121(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],{'confirmWarnings':_0x3883b6});return _0x324bc6(_0x31d15c,{..._0x34861a,'files':_0x1516c7['publishInput'][_0x146213(0x1ea)]},_0x154780['appCode'],{'scope':_0x146213(0x1d2)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x34861a),'scope':'company','reviewState':_0x146213(0x1c5),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x25c391[_0x146213(0x1bd)]}},'message':_0x146213(0x1da)+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]+_0x146213(0x1d8)+(_0x34861a[_0x146213(0x1d7)]??_0x146213(0x1be))+_0x146213(0x1e0)};}const _0x264aba=await _0xb0b612(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],{'visibility':_0x146213(0x1cc)});throwIfPublishValidationFailed(_0x146213(0x1ce),_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x264aba),throwIfUnconfirmedPublishWarnings('personal',_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x264aba[_0x146213(0x1bd)],_0x3883b6);const _0x47ce34={'confirmWarnings':_0x3883b6},_0xb0cf1f=_0x1516c7['existing']?await _0x5243f1(_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],_0x47ce34):await _0x5bf894(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],_0x47ce34);let _0xb4130a=_0xb0cf1f;if(isMultiFileManifest(_0x1516c7[_0x146213(0x1bf)][_0x146213(0x1ea)])){const _0x525348=await _0xf4c357(_0x146213(0x1ce),_0xb0cf1f['skillCode']||_0x1516c7[_0x146213(0x1e2)]['skillCode'],_0x154780[_0x146213(0x1e3)]);_0xe83082(_0x1516c7[_0x146213(0x1bf)][_0x146213(0x1ea)],_0x525348),_0xb4130a={..._0xb0cf1f,'files':_0x1516c7[_0x146213(0x1bf)]['files']};}else{if(isPackageBackedManifest(_0xb0cf1f['files'])){const _0x17efe3=await _0xf4c357(_0x146213(0x1ce),_0xb0cf1f[_0x146213(0x1f3)]||_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x154780[_0x146213(0x1e3)]);_0x33996e(_0xb0cf1f['files'],_0x17efe3);}}return _0x324bc6(_0x31d15c,_0xb4130a,_0x154780['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xb0cf1f),'warnings':_0x1516c7[_0x146213(0x1bd)],'validation':{'warnings':_0x264aba[_0x146213(0x1bd)]},'diagramBound':!![]},'message':_0x1516c7[_0x146213(0x1e6)]?_0x146213(0x1ca)+_0x1516c7['payload'][_0x146213(0x1f3)]:'Created\x20personal\x20Skill\x20'+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]};}function a53_0x3cc6(){const _0x51ae5f=['Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','warnings','(unknown)','publishInput','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','frontmatterDisplayName','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','diagramValidated','submitted','accessKey','remoteForPreflight','NAMESPACE_ONLY','2gFTmvF','Updated\x20personal\x20Skill\x20','validation','PRIVATE','\x20has\x20scope=\x22','personal','3303236esbvjG','../../core/api-client.js','identical','company','appcode','valid','382600jyLDxO','bool','version','\x20version\x20','41178BudoVU','Submitted\x20company\x20Skill\x20','5639670HWUVsl','scope','confirmWarnings','resolvedSlug','dir','\x20for\x20review','../../skills/runtime-skill-sync.js','payload','appCode','395ACaClt','/api/cli/v1/skills/','existing','authRequired','trim','unknown','files','confirm-warnings','diagram-file','16LEbiAi','str','input','savedSkill','\x20Skill\x20','417070AWkAwx','skillCode','POST','804255KIzLYM','2502276DtsqPd','Company','/publish/validate','396oqFAJT','status','resolvedVersion','errors'];a53_0x3cc6=function(){return _0x51ae5f;};return a53_0x3cc6();}function scopeLabel(_0x1f9de7){const _0x229866=a53_0xe1f2;return _0x1f9de7===_0x229866(0x1d2)?_0x229866(0x1f7):'Personal';}function withDiagram(_0x59e152,_0x4b5140){return{..._0x59e152,'diagram':_0x4b5140};}function diagramPackageExclusion(_0x5b5633){return _0x5b5633?{'excludedFilePaths':[_0x5b5633]}:{};}
1
+ (function(_0x555ddd,_0x4d2951){const _0xf64935=a53_0x4f38,_0x371d14=_0x555ddd();while(!![]){try{const _0x42dbc8=parseInt(_0xf64935(0xe5))/0x1*(-parseInt(_0xf64935(0xe7))/0x2)+parseInt(_0xf64935(0xe8))/0x3+-parseInt(_0xf64935(0xce))/0x4+parseInt(_0xf64935(0xff))/0x5*(parseInt(_0xf64935(0xd5))/0x6)+-parseInt(_0xf64935(0xe0))/0x7+-parseInt(_0xf64935(0x109))/0x8+parseInt(_0xf64935(0xec))/0x9;if(_0x42dbc8===_0x4d2951)break;else _0x371d14['push'](_0x371d14['shift']());}catch(_0x3d192a){_0x371d14['push'](_0x371d14['shift']());}}}(a53_0x28e1,0xddff3));function a53_0x4f38(_0xda80e2,_0x4ead88){_0xda80e2=_0xda80e2-0xce;const _0x28e16f=a53_0x28e1();let _0x4f38d1=_0x28e16f[_0xda80e2];return _0x4f38d1;}import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a53_0x28e1(){const _0x54bb1b=['../../core/api-client.js','resolvedVersion','version','POST','confirmWarnings','confirm-warnings','input','(unknown)','5wWGWPz','NAMESPACE_ONLY','submitted','accessKey','validation','../../skills/runtime-skill-sync.js','/api/cli/v1/skills/','resolvedSlug','skillCode','identical','14363872jaLKZv','2092028ptMcKj','frontmatterDisplayName','\x20for\x20review','metadata','diagram-file','str','personal','8689692ICaLlo','status','errors','files','warnings','Submitted\x20company\x20Skill\x20','scope','Personal','authRequired','Company','payload','11549650krhAOW','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','trim','savedSkill','/publish/validate','270cqxmxX','valid','2278ZXahwv','355422bUeNBz','\x20has\x20scope=\x22','bool','\x20Skill\x20','32566626WuQebQ','company','existing','PRIVATE','dir','appCode','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Updated\x20personal\x20Skill\x20','publishInput','unknown','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'];a53_0x28e1=function(){return _0x54bb1b;};return a53_0x28e1();}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x351ac7){const _0x13d3c2=a53_0x4f38,{getRuntimeSkillByCode:_0x16dda9,validateRuntimeSkillPublish:_0x463062}=await import(_0x13d3c2(0xf7)),{readPushDirectory:_0x486840,resolvePushDirectoryIdentity:_0x56dd39}=await import(_0x13d3c2(0x104));if(!_0x351ac7[_0x13d3c2(0x102)])throw CliErrors[_0x13d3c2(0xdd)]();const _0x2fab2e=resolvePushScope(_0x351ac7),_0x49d18a=validateSkillDirectory(_0x351ac7[_0x13d3c2(0xd3)](_0x13d3c2(0xf0)));throwIfSkillValidationFailed(_0x49d18a);const {diagram:_0x451070,sourceFilePath:_0x24e490}=await readRequiredSkillDiagramInput(_0x351ac7['str'](_0x13d3c2(0xd2))),_0x475773=diagramPackageExclusion(_0x24e490),_0x11bf21=_0x56dd39(_0x49d18a[_0x13d3c2(0xf0)],_0x351ac7[_0x13d3c2(0xf1)],remoteFirstMetadataOptions()),_0x2f0796=await _0x16dda9(_0x351ac7[_0x13d3c2(0xf1)],_0x11bf21[_0x13d3c2(0x107)]);throwIfBuiltinPushTarget(_0x2f0796);if(_0x2fab2e===_0x13d3c2(0xed)){const _0x33a811=_0x486840(_0x49d18a[_0x13d3c2(0xf0)],_0x351ac7['appCode'],{...remoteMissingCompanyReadOptions(),..._0x475773}),_0x362412=await _0x463062(_0x351ac7[_0x13d3c2(0xf1)],withDiagram(_0x33a811[_0x13d3c2(0xfd)],_0x451070),{'visibility':_0x13d3c2(0x100)});return{'method':'POST','url':_0x13d3c2(0x105)+_0x351ac7[_0x13d3c2(0xf1)]+_0x13d3c2(0xe4),'body':{'skillCode':_0x33a811['skillCode'],'visibility':_0x13d3c2(0x100),'valid':_0x362412[_0x13d3c2(0xe6)],'errors':_0x362412[_0x13d3c2(0xd7)],'warnings':_0x362412['warnings'],'resolvedSlug':_0x362412[_0x13d3c2(0x106)],'resolvedVersion':_0x362412[_0x13d3c2(0xf8)],'diagramValidated':_0x362412['diagramValidated']},'description':_0x13d3c2(0xe1)};}if(_0x2f0796&&_0x2f0796[_0x13d3c2(0xdb)]!==_0x13d3c2(0xd4))throw CliErrors[_0x13d3c2(0x103)](_0x13d3c2(0xf6)+_0x11bf21[_0x13d3c2(0x107)]+_0x13d3c2(0xe9)+(_0x2f0796[_0x13d3c2(0xdb)]??'unknown')+'\x22.');const _0x198848=_0x486840(_0x49d18a['dir'],_0x351ac7[_0x13d3c2(0xf1)],{..._0x2f0796?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x475773}),_0x45bc85=await _0x463062(_0x351ac7[_0x13d3c2(0xf1)],withDiagram(_0x198848[_0x13d3c2(0xfd)],_0x451070),{'visibility':'PRIVATE'});return{'method':_0x13d3c2(0xfa),'url':'/api/cli/v1/skills/'+_0x351ac7[_0x13d3c2(0xf1)]+'/publish/validate','body':{'skillCode':_0x198848[_0x13d3c2(0x107)],'visibility':_0x13d3c2(0xef),'valid':_0x45bc85[_0x13d3c2(0xe6)],'errors':_0x45bc85['errors'],'warnings':_0x45bc85[_0x13d3c2(0xd9)],'resolvedSlug':_0x45bc85[_0x13d3c2(0x106)],'resolvedVersion':_0x45bc85[_0x13d3c2(0xf8)],'diagramValidated':_0x45bc85['diagramValidated']},'description':_0x13d3c2(0xf2)};}export async function skillPushExecute(_0x3e8d81){const _0x12f3b5=a53_0x4f38,{createPersonalRuntimeSkill:_0x538c20,downloadRuntimeSkillPackage:_0x4a3431,getRuntimeSkillByCode:_0x398ce6,publishCompanyRuntimeSkill:_0x380b97,updatePersonalRuntimeSkill:_0x481781,validateRuntimeSkillPublish:_0x264155}=await import(_0x12f3b5(0xf7)),{verifyRuntimeSkillPackage:_0x33bb13,verifyRuntimeSkillBundle:_0x502b49,readPushDirectory:_0x17cd96,refreshPushDirectoryMetadataFromRemote:_0x4219b0,recordPushedRuntimeSkill:_0x3ed54d,resolvePushDirectoryIdentity:_0x127037}=await import('../../skills/runtime-skill-sync.js');if(!_0x3e8d81[_0x12f3b5(0x102)])throw CliErrors[_0x12f3b5(0xdd)]();const _0x958408=resolvePushScope(_0x3e8d81),_0x465e32=_0x3e8d81[_0x12f3b5(0xea)](_0x12f3b5(0xfc))||_0x3e8d81['bool'](_0x12f3b5(0xfb)),_0x386a70=validateSkillDirectory(_0x3e8d81[_0x12f3b5(0xd3)](_0x12f3b5(0xf0)));throwIfSkillValidationFailed(_0x386a70);const {diagram:_0x119f55,sourceFilePath:_0x69ec8f}=await readRequiredSkillDiagramInput(_0x3e8d81[_0x12f3b5(0xd3)]('diagram-file')),_0x23ea2e=diagramPackageExclusion(_0x69ec8f),_0x58eaa1=_0x386a70[_0x12f3b5(0xf0)];let _0x12e4cb;if(_0x958408===_0x12f3b5(0xed)){const _0x4e111f=_0x127037(_0x58eaa1,_0x3e8d81[_0x12f3b5(0xf1)],remoteFirstMetadataOptions()),_0x31b97d=await _0x398ce6(_0x3e8d81['appCode'],_0x4e111f[_0x12f3b5(0x107)]);throwIfBuiltinPushTarget(_0x31b97d);if(_0x31b97d)_0x4219b0(_0x58eaa1,_0x31b97d,_0x3e8d81[_0x12f3b5(0xf1)]);const _0x399c6e=_0x17cd96(_0x58eaa1,_0x3e8d81[_0x12f3b5(0xf1)],{..._0x31b97d?{'targetScope':_0x12f3b5(0xed),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x23ea2e});_0x12e4cb={'scope':_0x12f3b5(0xed),'payload':_0x399c6e,'publishInput':withDiagram(_0x399c6e[_0x12f3b5(0xfd)],_0x119f55),'remoteForPreflight':_0x31b97d,'warnings':[]};}else{const _0x5e10b7=_0x3e8d81[_0x12f3b5(0xd3)]('appcode')[_0x12f3b5(0xe2)](),_0x4bf90a=Boolean(_0x5e10b7),_0x1530d2=allowRetargetArgs(_0x4bf90a),_0x12a698=_0x127037(_0x58eaa1,_0x3e8d81[_0x12f3b5(0xf1)],{...remoteFirstMetadataOptions(),..._0x1530d2[0x0]}),_0x47f57a=await _0x398ce6(_0x3e8d81['appCode'],_0x12a698['skillCode']);throwIfBuiltinPushTarget(_0x47f57a);if(_0x47f57a){if(_0x47f57a[_0x12f3b5(0xdb)]!==_0x12f3b5(0xd4)){if(_0x4bf90a)throw CliErrors[_0x12f3b5(0x103)](_0x12f3b5(0xf6)+_0x12a698[_0x12f3b5(0x107)]+'\x20has\x20scope=\x22'+(_0x47f57a['scope']??_0x12f3b5(0xf5))+'\x22.');_0x4219b0(_0x58eaa1,_0x47f57a,_0x3e8d81[_0x12f3b5(0xf1)]);}else!_0x4bf90a&&_0x4219b0(_0x58eaa1,_0x47f57a,_0x3e8d81[_0x12f3b5(0xf1)]);}const _0x50980d=_0x17cd96(_0x58eaa1,_0x3e8d81[_0x12f3b5(0xf1)],{..._0x47f57a?remotePersonalReadOptions(_0x4bf90a,_0x1530d2[0x0]):remoteMissingPersonalReadOptions(_0x1530d2[0x0]),..._0x23ea2e}),_0x4a54b4=_0x47f57a?.[_0x12f3b5(0xdb)]==='personal'&&_0x47f57a[_0x12f3b5(0x107)]===_0x50980d['skillCode']?_0x47f57a:undefined,_0xd68260=_0x4bf90a&&_0x4a54b4?withRetargetExistingMetadata(_0x50980d[_0x12f3b5(0xfd)],_0x4a54b4,{'preferInputSkillName':Boolean(_0x50980d[_0x12f3b5(0xcf)])}):_0x50980d[_0x12f3b5(0xfd)],_0x3942ec=_0x4bf90a?buildRetargetWarning(_0x12a698[_0x12f3b5(0xd1)],_0x3e8d81['appCode']):[];_0x12e4cb={'scope':_0x12f3b5(0xd4),'payload':_0x50980d,'publishInput':withDiagram(_0xd68260,_0x119f55),'remoteForPreflight':_0x4a54b4,'existing':_0x4a54b4,'warnings':[..._0x386a70[_0x12f3b5(0xd9)],..._0x3942ec]};}const _0x474ae5=await runRemoteContentPreflight({'scope':_0x12e4cb['scope'],'remote':_0x12e4cb['remoteForPreflight'],'publishInput':_0x12e4cb[_0x12f3b5(0xf4)],'skillCode':_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],'appCode':_0x3e8d81[_0x12f3b5(0xf1)],'downloadRuntimeSkillPackage':_0x4a3431,'verifyRuntimeSkillBundle':_0x502b49});if(_0x474ae5[_0x12f3b5(0xd6)]===_0x12f3b5(0x108))return _0x12e4cb[_0x12f3b5(0xdb)]===_0x12f3b5(0xed)?_0x3ed54d(_0x58eaa1,_0x474ae5['savedSkill'],_0x3e8d81['appCode'],{'scope':'company'}):_0x3ed54d(_0x58eaa1,_0x474ae5[_0x12f3b5(0xe3)],_0x3e8d81[_0x12f3b5(0xf1)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x474ae5[_0x12f3b5(0xe3)]),'scope':_0x12e4cb[_0x12f3b5(0xdb)],..._0x12e4cb['scope']===_0x12f3b5(0xd4)?{'warnings':_0x12e4cb[_0x12f3b5(0xd9)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x12e4cb[_0x12f3b5(0xdb)])+_0x12f3b5(0xeb)+_0x12e4cb['payload'][_0x12f3b5(0x107)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x12e4cb[_0x12f3b5(0xdb)]===_0x12f3b5(0xed)){const _0x5ab696=await _0x264155(_0x3e8d81['appCode'],_0x12e4cb['publishInput'],{'visibility':_0x12f3b5(0x100)});throwIfPublishValidationFailed('company',_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x5ab696),throwIfUnconfirmedPublishWarnings('company',_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x5ab696[_0x12f3b5(0xd9)],_0x465e32);const _0x579262=await _0x380b97(_0x3e8d81[_0x12f3b5(0xf1)],_0x12e4cb[_0x12f3b5(0xf4)],{'confirmWarnings':_0x465e32});return _0x3ed54d(_0x58eaa1,{..._0x579262,'files':_0x12e4cb['publishInput'][_0x12f3b5(0xd8)]},_0x3e8d81[_0x12f3b5(0xf1)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x579262),'scope':_0x12f3b5(0xed),'reviewState':_0x12f3b5(0x101),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x5ab696[_0x12f3b5(0xd9)]}},'message':_0x12f3b5(0xda)+_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)]+'\x20version\x20'+(_0x579262[_0x12f3b5(0xf9)]??_0x12f3b5(0xfe))+_0x12f3b5(0xd0)};}const _0x54962e=await _0x264155(_0x3e8d81[_0x12f3b5(0xf1)],_0x12e4cb[_0x12f3b5(0xf4)],{'visibility':_0x12f3b5(0xef)});throwIfPublishValidationFailed(_0x12f3b5(0xd4),_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x54962e),throwIfUnconfirmedPublishWarnings(_0x12f3b5(0xd4),_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x54962e[_0x12f3b5(0xd9)],_0x465e32);const _0x71df4e={'confirmWarnings':_0x465e32},_0x4f04e5=_0x12e4cb[_0x12f3b5(0xee)]?await _0x481781(_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x3e8d81['appCode'],_0x12e4cb[_0x12f3b5(0xf4)],_0x71df4e):await _0x538c20(_0x3e8d81[_0x12f3b5(0xf1)],_0x12e4cb[_0x12f3b5(0xf4)],_0x71df4e);let _0x2d21ee=_0x4f04e5;if(isMultiFileManifest(_0x12e4cb[_0x12f3b5(0xf4)][_0x12f3b5(0xd8)])){const _0x53c137=await _0x4a3431(_0x12f3b5(0xd4),_0x4f04e5[_0x12f3b5(0x107)]||_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)],_0x3e8d81[_0x12f3b5(0xf1)]);_0x502b49(_0x12e4cb['publishInput']['files'],_0x53c137),_0x2d21ee={..._0x4f04e5,'files':_0x12e4cb[_0x12f3b5(0xf4)][_0x12f3b5(0xd8)]};}else{if(isPackageBackedManifest(_0x4f04e5[_0x12f3b5(0xd8)])){const _0x3f4f3d=await _0x4a3431(_0x12f3b5(0xd4),_0x4f04e5[_0x12f3b5(0x107)]||_0x12e4cb['payload']['skillCode'],_0x3e8d81[_0x12f3b5(0xf1)]);_0x33bb13(_0x4f04e5[_0x12f3b5(0xd8)],_0x3f4f3d);}}return _0x3ed54d(_0x58eaa1,_0x2d21ee,_0x3e8d81[_0x12f3b5(0xf1)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4f04e5),'warnings':_0x12e4cb[_0x12f3b5(0xd9)],'validation':{'warnings':_0x54962e[_0x12f3b5(0xd9)]},'diagramBound':!![]},'message':_0x12e4cb['existing']?_0x12f3b5(0xf3)+_0x12e4cb[_0x12f3b5(0xdf)]['skillCode']:'Created\x20personal\x20Skill\x20'+_0x12e4cb[_0x12f3b5(0xdf)][_0x12f3b5(0x107)]};}function scopeLabel(_0x4b52ba){const _0xd17834=a53_0x4f38;return _0x4b52ba==='company'?_0xd17834(0xde):_0xd17834(0xdc);}function withDiagram(_0x6d1bf4,_0xac6496){return{..._0x6d1bf4,'diagram':_0xac6496};}function diagramPackageExclusion(_0x1e5848){return _0x1e5848?{'excludedFilePaths':[_0x1e5848]}:{};}
@@ -1 +1 @@
1
- function a54_0x5e10(){const _0x1bda89=['704041DJxMWH','downloadRuntimeSkillPackage','version','2312585YCYfcR','53615ISLnSh','builtin','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Warnings:\x20','230787EUfWoY','\x20after\x20successful\x20push.','172tVXwKp','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','personal','(unknown)','company','validation','remote','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','88rMjtPx','Local\x20Skill\x20metadata\x20appCode\x20','lovrabet.skill.json','length','SkillHub\x20validation\x20returned\x20invalid.','appCode','publishInput','2wzsqTg','5152FrCguZ','verifyRuntimeSkillBundle','\x20cannot\x20be\x20pushed.','identical','skillCode','files','Company','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Builtin\x20Skill\x20','join','warnings','errors','Personal','1215351hgLEpd','scope','10ZnIebJ','not-applicable','6354kbdjDQ','22463856SRNoBG'];a54_0x5e10=function(){return _0x1bda89;};return a54_0x5e10();}(function(_0x58d38b,_0x439ece){const _0x3d1044=a54_0x3ca1,_0x5e1ca5=_0x58d38b();while(!![]){try{const _0x200c14=-parseInt(_0x3d1044(0x130))/0x1*(-parseInt(_0x3d1044(0x11a))/0x2)+parseInt(_0x3d1044(0x12a))/0x3+parseInt(_0x3d1044(0x10b))/0x4*(parseInt(_0x3d1044(0x105))/0x5)+-parseInt(_0x3d1044(0x12e))/0x6*(-parseInt(_0x3d1044(0x11b))/0x7)+parseInt(_0x3d1044(0x113))/0x8*(-parseInt(_0x3d1044(0x109))/0x9)+parseInt(_0x3d1044(0x12c))/0xa*(parseInt(_0x3d1044(0x104))/0xb)+-parseInt(_0x3d1044(0x12f))/0xc;if(_0x200c14===_0x439ece)break;else _0x5e1ca5['push'](_0x5e1ca5['shift']());}catch(_0x5afbd9){_0x5e1ca5['push'](_0x5e1ca5['shift']());}}}(a54_0x5e10,0x63155));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x240f4e){const _0x546c4b=a54_0x3ca1,_0x1cf26a=_0x240f4e['str'](_0x546c4b(0x12b))||_0x546c4b(0x10d);if(_0x1cf26a===_0x546c4b(0x10d)||_0x1cf26a===_0x546c4b(0x10f))return _0x1cf26a;throw CliErrors[_0x546c4b(0x110)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x1cf26a+'\x22.');}export function allowRetargetArgs(_0x395224){return _0x395224?[{'allowAppCodeRetarget':!![]}]:[];}function a54_0x3ca1(_0x44b30e,_0x2ba336){_0x44b30e=_0x44b30e-0x102;const _0x5e109e=a54_0x5e10();let _0x3ca14d=_0x5e109e[_0x44b30e];return _0x3ca14d;}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0xec2974=a54_0x3ca1;return{'targetScope':_0xec2974(0x10f),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4db3c3={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4db3c3};}export function remotePersonalReadOptions(_0x2cffd0,_0x56b607={}){return{'ignoreInvalidMetadata':!![],..._0x2cffd0?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x56b607};}export function throwIfBuiltinPushTarget(_0x352a85){const _0x180969=a54_0x3ca1;if(_0x352a85?.[_0x180969(0x12b)]!==_0x180969(0x106))return;throw CliErrors['validation'](_0x180969(0x125)+(_0x352a85[_0x180969(0x11f)]??_0x180969(0x10e))+_0x180969(0x11d),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x2fc503,_0x589710,_0x1c7825){const _0x4416fc=a54_0x3ca1;if(_0x1c7825[_0x4416fc(0x128)][_0x4416fc(0x116)]===0x0&&(_0x1c7825['valid']||_0x1c7825[_0x4416fc(0x127)][_0x4416fc(0x116)]>0x0))return;const _0x18ea29=_0x1c7825['errors'][_0x4416fc(0x116)]>0x0?_0x1c7825[_0x4416fc(0x128)][_0x4416fc(0x126)](';\x20'):_0x4416fc(0x117),_0x26e8ac=_0x2fc503==='company'?_0x4416fc(0x121):_0x4416fc(0x129);throw CliErrors[_0x4416fc(0x110)](_0x26e8ac+_0x4416fc(0x122)+_0x589710+'.',_0x18ea29);}export function throwIfUnconfirmedPublishWarnings(_0x5d851b,_0x1e41e2,_0x44919d,_0xfe3510){const _0xf59514=a54_0x3ca1;if(_0x44919d[_0xf59514(0x116)]===0x0||_0xfe3510)return;const _0x59068d=_0x5d851b==='company'?_0xf59514(0x121):'Personal';throw CliErrors[_0xf59514(0x110)](_0x59068d+_0xf59514(0x112)+_0x1e41e2+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0xf59514(0x10c),_0xf59514(0x107),_0xf59514(0x108)+_0x44919d[_0xf59514(0x126)](';\x20')][_0xf59514(0x126)]('\x20'));}export function buildRetargetWarning(_0x251972,_0x118c7d){const _0x4d5092=a54_0x3ca1;if(!_0x251972?.[_0x4d5092(0x118)]||_0x251972[_0x4d5092(0x118)]===_0x118c7d)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':_0x4d5092(0x115),'message':_0x4d5092(0x114)+_0x251972[_0x4d5092(0x118)]+_0x4d5092(0x124)+_0x118c7d+_0x4d5092(0x10a),'suggestion':_0x4d5092(0x123)}];}export async function runRemoteContentPreflight(_0x1b7f9e){const _0x3619a3=a54_0x3ca1;if(!_0x1b7f9e['remote']||_0x1b7f9e[_0x3619a3(0x111)][_0x3619a3(0x12b)]!==_0x1b7f9e[_0x3619a3(0x12b)]||!_0x1b7f9e[_0x3619a3(0x119)][_0x3619a3(0x120)])return{'status':'not-applicable'};const _0xd796ad=_0x1b7f9e['remote']['skillCode']||_0x1b7f9e[_0x3619a3(0x11f)];if(!_0xd796ad)return{'status':_0x3619a3(0x12d)};const _0x4d44a0=await _0x1b7f9e[_0x3619a3(0x102)](_0x1b7f9e[_0x3619a3(0x12b)],_0xd796ad,_0x1b7f9e[_0x3619a3(0x118)],_0x1b7f9e[_0x3619a3(0x111)][_0x3619a3(0x103)]);try{_0x1b7f9e[_0x3619a3(0x11c)](_0x1b7f9e['publishInput'][_0x3619a3(0x120)],_0x4d44a0);}catch{return{'status':'different'};}return{'status':_0x3619a3(0x11e),'savedSkill':{..._0x1b7f9e[_0x3619a3(0x111)],'content':_0x1b7f9e['publishInput']['content'],'files':_0x1b7f9e[_0x3619a3(0x119)][_0x3619a3(0x120)]}};}
1
+ (function(_0x1fc0a0,_0x2fbe96){const _0x2d64e9=a54_0x3669,_0x46cfba=_0x1fc0a0();while(!![]){try{const _0x530d8e=parseInt(_0x2d64e9(0xee))/0x1+parseInt(_0x2d64e9(0x10e))/0x2*(parseInt(_0x2d64e9(0x108))/0x3)+parseInt(_0x2d64e9(0x111))/0x4*(parseInt(_0x2d64e9(0x104))/0x5)+parseInt(_0x2d64e9(0x116))/0x6+-parseInt(_0x2d64e9(0xf3))/0x7+-parseInt(_0x2d64e9(0x114))/0x8*(parseInt(_0x2d64e9(0x117))/0x9)+-parseInt(_0x2d64e9(0xef))/0xa;if(_0x530d8e===_0x2fbe96)break;else _0x46cfba['push'](_0x46cfba['shift']());}catch(_0x50d7c1){_0x46cfba['push'](_0x46cfba['shift']());}}}(a54_0x4e75,0x4f584));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x149590){const _0xd8f0be=a54_0x3669,_0x51fd6f=_0x149590[_0xd8f0be(0xfb)]('scope')||_0xd8f0be(0xf1);if(_0x51fd6f===_0xd8f0be(0xf1)||_0x51fd6f==='company')return _0x51fd6f;throw CliErrors[_0xd8f0be(0xfa)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x51fd6f+'\x22.');}function a54_0x4e75(){const _0x56caa=['files','different','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','lovrabet.skill.json','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Review\x20each\x20warning\x20before\x20continuing.','183835GSxspL','publishInput','Personal','\x20after\x20successful\x20push.','365424NzSNUD','not-applicable','company','errors','(unknown)','join','4gUdSOe','scope','valid','32YvvIon','verifyRuntimeSkillBundle','identical','472wUqpWj','skillCode','767562Gtbkqz','62352UfKbAT','Local\x20Skill\x20metadata\x20appCode\x20','content','appCode','366410tJxfEQ','950700WiDNoZ','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','personal','Builtin\x20Skill\x20','1422897ZIrwKJ','Company','Warnings:\x20','skill-metadata-appcode-retargeted','warning','\x20cannot\x20be\x20pushed.','length','validation','str','version','remote'];a54_0x4e75=function(){return _0x56caa;};return a54_0x4e75();}export function allowRetargetArgs(_0xcd0507){return _0xcd0507?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x518e56=a54_0x3669;return{'targetScope':_0x518e56(0x10a),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x575315={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x575315};}export function remotePersonalReadOptions(_0x2ef252,_0x46b6e9={}){return{'ignoreInvalidMetadata':!![],..._0x2ef252?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x46b6e9};}function a54_0x3669(_0x28d71c,_0x450f16){_0x28d71c=_0x28d71c-0xec;const _0x4e756d=a54_0x4e75();let _0x3669b1=_0x4e756d[_0x28d71c];return _0x3669b1;}export function throwIfBuiltinPushTarget(_0x42cfaf){const _0xfc2952=a54_0x3669;if(_0x42cfaf?.[_0xfc2952(0x10f)]!=='builtin')return;throw CliErrors['validation'](_0xfc2952(0xf2)+(_0x42cfaf[_0xfc2952(0x115)]??_0xfc2952(0x10c))+_0xfc2952(0xf8),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x980eec,_0x47473e,_0x5f5b9b){const _0x5b174b=a54_0x3669;if(_0x5f5b9b['errors'][_0x5b174b(0xf9)]===0x0&&(_0x5f5b9b[_0x5b174b(0x110)]||_0x5f5b9b['warnings'][_0x5b174b(0xf9)]>0x0))return;const _0x181df3=_0x5f5b9b['errors']['length']>0x0?_0x5f5b9b[_0x5b174b(0x10b)]['join'](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x57f86e=_0x980eec===_0x5b174b(0x10a)?_0x5b174b(0xf4):_0x5b174b(0x106);throw CliErrors[_0x5b174b(0xfa)](_0x57f86e+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x47473e+'.',_0x181df3);}export function throwIfUnconfirmedPublishWarnings(_0x42ece8,_0x9cc969,_0x179655,_0x2dd822){const _0x11d7d5=a54_0x3669;if(_0x179655[_0x11d7d5(0xf9)]===0x0||_0x2dd822)return;const _0x1416e0=_0x42ece8===_0x11d7d5(0x10a)?_0x11d7d5(0xf4):'Personal';throw CliErrors['validation'](_0x1416e0+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x9cc969+'.',[_0x11d7d5(0x103),_0x11d7d5(0x102),_0x11d7d5(0x100),_0x11d7d5(0xf5)+_0x179655[_0x11d7d5(0x10d)](';\x20')][_0x11d7d5(0x10d)]('\x20'));}export function buildRetargetWarning(_0x1903a,_0x13c2ae){const _0x3c9345=a54_0x3669;if(!_0x1903a?.[_0x3c9345(0xed)]||_0x1903a[_0x3c9345(0xed)]===_0x13c2ae)return[];return[{'level':_0x3c9345(0xf7),'ruleId':_0x3c9345(0xf6),'file':_0x3c9345(0x101),'message':_0x3c9345(0x118)+_0x1903a[_0x3c9345(0xed)]+_0x3c9345(0xf0)+_0x13c2ae+_0x3c9345(0x107),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x5a0740){const _0x676497=a54_0x3669;if(!_0x5a0740[_0x676497(0xfd)]||_0x5a0740['remote']['scope']!==_0x5a0740[_0x676497(0x10f)]||!_0x5a0740['publishInput'][_0x676497(0xfe)])return{'status':_0x676497(0x109)};const _0x127c6a=_0x5a0740[_0x676497(0xfd)][_0x676497(0x115)]||_0x5a0740[_0x676497(0x115)];if(!_0x127c6a)return{'status':_0x676497(0x109)};const _0x17a217=await _0x5a0740['downloadRuntimeSkillPackage'](_0x5a0740['scope'],_0x127c6a,_0x5a0740[_0x676497(0xed)],_0x5a0740[_0x676497(0xfd)][_0x676497(0xfc)]);try{_0x5a0740[_0x676497(0x112)](_0x5a0740[_0x676497(0x105)][_0x676497(0xfe)],_0x17a217);}catch{return{'status':_0x676497(0xff)};}return{'status':_0x676497(0x113),'savedSkill':{..._0x5a0740['remote'],'content':_0x5a0740['publishInput'][_0x676497(0xec)],'files':_0x5a0740['publishInput']['files']}};}
@@ -1 +1 @@
1
- (function(_0xce6757,_0xc455b1){const _0xcfe97e=a55_0x1e3b,_0x1c97a2=_0xce6757();while(!![]){try{const _0x1e404a=parseInt(_0xcfe97e(0xd7))/0x1+parseInt(_0xcfe97e(0xd3))/0x2*(parseInt(_0xcfe97e(0xe2))/0x3)+parseInt(_0xcfe97e(0xd1))/0x4*(parseInt(_0xcfe97e(0xe4))/0x5)+parseInt(_0xcfe97e(0xcf))/0x6*(-parseInt(_0xcfe97e(0xd0))/0x7)+-parseInt(_0xcfe97e(0xd8))/0x8+-parseInt(_0xcfe97e(0xd2))/0x9*(-parseInt(_0xcfe97e(0xdb))/0xa)+-parseInt(_0xcfe97e(0xe0))/0xb;if(_0x1e404a===_0xc455b1)break;else _0x1c97a2['push'](_0x1c97a2['shift']());}catch(_0x8724ec){_0x1c97a2['push'](_0x1c97a2['shift']());}}}(a55_0x6d6f,0xe2723));function a55_0x1e3b(_0x33e773,_0x7d22f3){_0x33e773=_0x33e773-0xcd;const _0x6d6fb7=a55_0x6d6f();let _0x1e3bbf=_0x6d6fb7[_0x33e773];return _0x1e3bbf;}export function withRetargetExistingMetadata(_0x49599c,_0xc09e58,_0x488179={}){const _0x4a077b=a55_0x1e3b,_0x21fd1a=_0x488179[_0x4a077b(0xdd)]?_0x49599c['skillName']??_0xc09e58[_0x4a077b(0xd4)]:_0xc09e58[_0x4a077b(0xd4)]??_0x49599c[_0x4a077b(0xd4)];return{..._0x49599c,'skillName':_0x21fd1a,'description':_0xc09e58[_0x4a077b(0xd6)]??_0x49599c['description'],'tags':Array[_0x4a077b(0xde)](_0xc09e58[_0x4a077b(0xd9)])?_0xc09e58[_0x4a077b(0xd9)]:_0x49599c[_0x4a077b(0xd9)],'version':_0xc09e58[_0x4a077b(0xdf)]??_0x49599c[_0x4a077b(0xdf)],'sourceSessionId':_0xc09e58[_0x4a077b(0xe1)]??_0x49599c[_0x4a077b(0xe1)]};}export function buildRetargetWarning(_0x25dca2,_0x3b8988){const _0x1886ef=a55_0x1e3b;if(!_0x25dca2?.['appCode']||_0x25dca2[_0x1886ef(0xdc)]===_0x3b8988)return[];return[{'level':_0x1886ef(0xda),'ruleId':_0x1886ef(0xe3),'file':'lovrabet.skill.json','message':_0x1886ef(0xd5)+_0x25dca2['appCode']+_0x1886ef(0xcd)+_0x3b8988+_0x1886ef(0xce),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a55_0x6d6f(){const _0xcf28d7=['26277009gODMQs','sourceSessionId','3abyDui','skill-metadata-appcode-retargeted','187415HmGsrF','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','594nAyhxe','13223dHsJaL','148WXYFFS','297NbVvNv','2675298skGaDe','skillName','Local\x20Skill\x20metadata\x20appCode\x20','description','248527NpZBkL','4394840etmutQ','tags','warning','327170FYadwr','appCode','preferInputSkillName','isArray','version'];a55_0x6d6f=function(){return _0xcf28d7;};return a55_0x6d6f();}
1
+ function a55_0x1c3c(){const _0x6f9f2e=['tags','isArray','4VlCYji','3810342HVNlpY','979883rDjbpM','lovrabet.skill.json','\x20after\x20successful\x20push.','15152436CVvIvr','2YSBdxE','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','warning','appCode','sourceSessionId','9187220xzYacP','description','12457280hVLTKs','skillName','53136zHQESc','Local\x20Skill\x20metadata\x20appCode\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','6562530oMsKSe','version'];a55_0x1c3c=function(){return _0x6f9f2e;};return a55_0x1c3c();}(function(_0x1de2bd,_0x5a7964){const _0x482062=a55_0x4819,_0x1ce6a7=_0x1de2bd();while(!![]){try{const _0x15a5ff=-parseInt(_0x482062(0x15f))/0x1*(parseInt(_0x482062(0x163))/0x2)+-parseInt(_0x482062(0x15e))/0x3*(parseInt(_0x482062(0x15d))/0x4)+parseInt(_0x482062(0x159))/0x5+parseInt(_0x482062(0x16c))/0x6+-parseInt(_0x482062(0x168))/0x7+parseInt(_0x482062(0x16a))/0x8+parseInt(_0x482062(0x162))/0x9;if(_0x15a5ff===_0x5a7964)break;else _0x1ce6a7['push'](_0x1ce6a7['shift']());}catch(_0x199daa){_0x1ce6a7['push'](_0x1ce6a7['shift']());}}}(a55_0x1c3c,0xf40f5));export function withRetargetExistingMetadata(_0x53c1ac,_0x104cd8,_0x4e549b={}){const _0x9d3ec6=a55_0x4819,_0x1cdf14=_0x4e549b['preferInputSkillName']?_0x53c1ac[_0x9d3ec6(0x16b)]??_0x104cd8[_0x9d3ec6(0x16b)]:_0x104cd8[_0x9d3ec6(0x16b)]??_0x53c1ac[_0x9d3ec6(0x16b)];return{..._0x53c1ac,'skillName':_0x1cdf14,'description':_0x104cd8[_0x9d3ec6(0x169)]??_0x53c1ac[_0x9d3ec6(0x169)],'tags':Array[_0x9d3ec6(0x15c)](_0x104cd8[_0x9d3ec6(0x15b)])?_0x104cd8[_0x9d3ec6(0x15b)]:_0x53c1ac['tags'],'version':_0x104cd8[_0x9d3ec6(0x15a)]??_0x53c1ac[_0x9d3ec6(0x15a)],'sourceSessionId':_0x104cd8['sourceSessionId']??_0x53c1ac[_0x9d3ec6(0x167)]};}function a55_0x4819(_0x369132,_0x55bee2){_0x369132=_0x369132-0x159;const _0x1c3c6f=a55_0x1c3c();let _0x4819aa=_0x1c3c6f[_0x369132];return _0x4819aa;}export function buildRetargetWarning(_0x48fc79,_0x1eeb81){const _0x94d203=a55_0x4819;if(!_0x48fc79?.[_0x94d203(0x166)]||_0x48fc79[_0x94d203(0x166)]===_0x1eeb81)return[];return[{'level':_0x94d203(0x165),'ruleId':'skill-metadata-appcode-retargeted','file':_0x94d203(0x160),'message':_0x94d203(0x16d)+_0x48fc79[_0x94d203(0x166)]+_0x94d203(0x164)+_0x1eeb81+_0x94d203(0x161),'suggestion':_0x94d203(0x16e)}];}
@@ -1 +1 @@
1
- (function(_0x1b78fa,_0x2646a5){const _0x813eca=a56_0x5bac,_0x4f76bd=_0x1b78fa();while(!![]){try{const _0x478deb=-parseInt(_0x813eca(0xa9))/0x1*(parseInt(_0x813eca(0xa2))/0x2)+parseInt(_0x813eca(0xb1))/0x3+-parseInt(_0x813eca(0xa3))/0x4+parseInt(_0x813eca(0xb0))/0x5*(-parseInt(_0x813eca(0xab))/0x6)+-parseInt(_0x813eca(0xa8))/0x7*(parseInt(_0x813eca(0xa7))/0x8)+parseInt(_0x813eca(0xac))/0x9+parseInt(_0x813eca(0xaa))/0xa;if(_0x478deb===_0x2646a5)break;else _0x4f76bd['push'](_0x4f76bd['shift']());}catch(_0x30c083){_0x4f76bd['push'](_0x4f76bd['shift']());}}}(a56_0x5ab1,0x2f31b));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1055b0){const _0x1ab001=a56_0x5bac,_0x2c4c7b=_0x1055b0[_0x1ab001(0xa5)]();if(!_0x2c4c7b||_0x2c4c7b==='all')return['personal','company'];if(_0x2c4c7b===_0x1ab001(0xa6)||_0x2c4c7b===_0x1ab001(0xb2))return[_0x2c4c7b];throw CliErrors[_0x1ab001(0xa4)](_0x1ab001(0xad)+_0x1055b0);}export function normalizeListScope(_0x3596e3){const _0x53d4b1=a56_0x5bac,_0x54c811=_0x3596e3[_0x53d4b1(0xa5)]();if(!_0x54c811)return _0x53d4b1(0xae);if(_0x54c811==='personal'||_0x54c811==='company'||_0x54c811===_0x53d4b1(0xae))return _0x54c811;throw CliErrors[_0x53d4b1(0xa4)](_0x53d4b1(0xaf)+_0x3596e3);}export function shouldListScope(_0x184738,_0x599a2f){const _0x103f10=a56_0x5bac;if(_0x184738===_0x103f10(0xae))return!![];return _0x184738===_0x599a2f;}function a56_0x5ab1(){const _0x52115b=['Unsupported\x20Skill\x20list\x20scope:\x20','69845UZnRum','981672kvlEZh','company','2smuMcY','1427932mjYqcE','validation','trim','personal','1285672zXadPW','7dAABuA','137887YejyGi','4002430ddjneV','102ZslOUL','3230028JnnjKd','Unsupported\x20Skill\x20sync\x20scope:\x20','all'];a56_0x5ab1=function(){return _0x52115b;};return a56_0x5ab1();}export function listScopeToRuntimeScopes(_0x5d59fa){const _0x440105=a56_0x5bac;if(_0x5d59fa===_0x440105(0xae))return[_0x440105(0xa6),_0x440105(0xb2)];return[_0x5d59fa===_0x440105(0xb2)?_0x440105(0xb2):_0x5d59fa];}function a56_0x5bac(_0x4fa2a8,_0xc44195){_0x4fa2a8=_0x4fa2a8-0xa2;const _0x5ab1d5=a56_0x5ab1();let _0x5bacd3=_0x5ab1d5[_0x4fa2a8];return _0x5bacd3;}export function listScopeToRemoteScope(_0x26f1f7){return _0x26f1f7;}
1
+ function a56_0x42f4(_0x184128,_0x1e47d4){_0x184128=_0x184128-0xda;const _0xbab6fa=a56_0xbab6();let _0x42f4d9=_0xbab6fa[_0x184128];return _0x42f4d9;}(function(_0x1659c8,_0x1c3ee8){const _0x4d15e3=a56_0x42f4,_0x2169a2=_0x1659c8();while(!![]){try{const _0x27123c=-parseInt(_0x4d15e3(0xdf))/0x1*(parseInt(_0x4d15e3(0xdc))/0x2)+parseInt(_0x4d15e3(0xe4))/0x3+parseInt(_0x4d15e3(0xe0))/0x4+-parseInt(_0x4d15e3(0xdb))/0x5*(parseInt(_0x4d15e3(0xda))/0x6)+parseInt(_0x4d15e3(0xe6))/0x7*(-parseInt(_0x4d15e3(0xe5))/0x8)+parseInt(_0x4d15e3(0xe8))/0x9+parseInt(_0x4d15e3(0xdd))/0xa;if(_0x27123c===_0x1c3ee8)break;else _0x2169a2['push'](_0x2169a2['shift']());}catch(_0x5eb5af){_0x2169a2['push'](_0x2169a2['shift']());}}}(a56_0xbab6,0x32d09));function a56_0xbab6(){const _0x9eca05=['company','trim','personal','991086ccaLbf','8eMsXaP','108087pgRHcX','all','2300643lwWexH','1216194zDyLQZ','10mFuCQe','142kpTVIE','1271680vKqYjP','Unsupported\x20Skill\x20sync\x20scope:\x20','2303Wmdzgx','317328dgdXJY'];a56_0xbab6=function(){return _0x9eca05;};return a56_0xbab6();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x178346){const _0x485395=a56_0x42f4,_0x1d78eb=_0x178346[_0x485395(0xe2)]();if(!_0x1d78eb||_0x1d78eb==='all')return[_0x485395(0xe3),'company'];if(_0x1d78eb===_0x485395(0xe3)||_0x1d78eb===_0x485395(0xe1))return[_0x1d78eb];throw CliErrors['validation'](_0x485395(0xde)+_0x178346);}export function normalizeListScope(_0x5f137e){const _0x40d624=a56_0x42f4,_0x3bd38f=_0x5f137e[_0x40d624(0xe2)]();if(!_0x3bd38f)return _0x40d624(0xe7);if(_0x3bd38f===_0x40d624(0xe3)||_0x3bd38f===_0x40d624(0xe1)||_0x3bd38f===_0x40d624(0xe7))return _0x3bd38f;throw CliErrors['validation']('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x5f137e);}export function shouldListScope(_0x562573,_0x1c2d50){const _0x120b2d=a56_0x42f4;if(_0x562573===_0x120b2d(0xe7))return!![];return _0x562573===_0x1c2d50;}export function listScopeToRuntimeScopes(_0x25297e){const _0x1e02c9=a56_0x42f4;if(_0x25297e===_0x1e02c9(0xe7))return[_0x1e02c9(0xe3),_0x1e02c9(0xe1)];return[_0x25297e==='company'?_0x1e02c9(0xe1):_0x25297e];}export function listScopeToRemoteScope(_0x68a0bf){return _0x68a0bf;}
@@ -1 +1 @@
1
- function a57_0x5722(_0x544a54,_0x49e076){_0x544a54=_0x544a54-0xbd;var _0x1bfb54=a57_0x1bfb();var _0x5722f5=_0x1bfb54[_0x544a54];return _0x5722f5;}function a57_0x1bfb(){var _0x747413=['linkedPaths','treeHash','13cWvuxk','777ovAcrp','510HpeQGN','31862bZcvqu','11719896EaNsVJ','metadataPath','scope','42xfwGFU','2336220CmTvul','readonly','version','contentHash','pulledAt','140CXzoEF','121144kVehVd','skillMdPath','13JTDRvX','skillCode','cacheDir','117498aaaLiT','507845SlItgB','122210nCVmFv','skillName','dir'];a57_0x1bfb=function(){return _0x747413;};return a57_0x1bfb();}(function(_0x283b54,_0x57104b){var _0x5b2d7b=a57_0x5722,_0x38a098=_0x283b54();while(!![]){try{var _0x47fbb6=parseInt(_0x5b2d7b(0xbf))/0x1*(-parseInt(_0x5b2d7b(0xcc))/0x2)+parseInt(_0x5b2d7b(0xc2))/0x3*(parseInt(_0x5b2d7b(0xd6))/0x4)+-parseInt(_0x5b2d7b(0xc3))/0x5*(-parseInt(_0x5b2d7b(0xd0))/0x6)+-parseInt(_0x5b2d7b(0xca))/0x7*(parseInt(_0x5b2d7b(0xbd))/0x8)+parseInt(_0x5b2d7b(0xd1))/0x9+-parseInt(_0x5b2d7b(0xcb))/0xa*(parseInt(_0x5b2d7b(0xc4))/0xb)+-parseInt(_0x5b2d7b(0xcd))/0xc*(-parseInt(_0x5b2d7b(0xc9))/0xd);if(_0x47fbb6===_0x57104b)break;else _0x38a098['push'](_0x38a098['shift']());}catch(_0x26ea03){_0x38a098['push'](_0x38a098['shift']());}}}(a57_0x1bfb,0xd2cd5));export function summarizeRuntimeSkill(_0x37b5b1){var _0x107c1f=a57_0x5722;return{'id':_0x37b5b1['id'],'skillCode':_0x37b5b1[_0x107c1f(0xc0)],'skillName':_0x37b5b1[_0x107c1f(0xc5)],'scope':_0x37b5b1[_0x107c1f(0xcf)],'version':_0x37b5b1[_0x107c1f(0xd3)],'readonly':_0x37b5b1[_0x107c1f(0xd2)]};}export function summarizeLocalRuntimeSkill(_0x51081e){var _0x42685f=a57_0x5722;return{'id':_0x51081e['id'],'skillCode':_0x51081e[_0x42685f(0xc0)],'skillName':_0x51081e[_0x42685f(0xc5)],'scope':_0x51081e[_0x42685f(0xcf)],'appCode':_0x51081e['appCode'],'version':_0x51081e[_0x42685f(0xd3)],'status':_0x51081e['status'],'readonly':_0x51081e[_0x42685f(0xd2)],'tags':_0x51081e['tags'],'dir':_0x51081e[_0x42685f(0xc6)],'cacheDir':_0x51081e[_0x42685f(0xc1)],'skillMdPath':_0x51081e[_0x42685f(0xbe)],'metadataPath':_0x51081e[_0x42685f(0xce)],'linkedPaths':_0x51081e[_0x42685f(0xc7)],'contentHash':_0x51081e[_0x42685f(0xd4)],'treeHash':_0x51081e[_0x42685f(0xc8)],'pulledAt':_0x51081e[_0x42685f(0xd5)]};}
1
+ (function(_0xdf0efb,_0x11ee6c){var _0x459a01=a57_0x3382,_0x1be7ed=_0xdf0efb();while(!![]){try{var _0x2773c6=-parseInt(_0x459a01(0x7e))/0x1*(parseInt(_0x459a01(0x8d))/0x2)+-parseInt(_0x459a01(0x88))/0x3*(parseInt(_0x459a01(0x8f))/0x4)+-parseInt(_0x459a01(0x8a))/0x5+-parseInt(_0x459a01(0x87))/0x6+parseInt(_0x459a01(0x8e))/0x7+-parseInt(_0x459a01(0x86))/0x8+-parseInt(_0x459a01(0x7f))/0x9*(-parseInt(_0x459a01(0x7d))/0xa);if(_0x2773c6===_0x11ee6c)break;else _0x1be7ed['push'](_0x1be7ed['shift']());}catch(_0xc67005){_0x1be7ed['push'](_0x1be7ed['shift']());}}}(a57_0x4d25,0x6059d));export function summarizeRuntimeSkill(_0x50b1b7){var _0x108797=a57_0x3382;return{'id':_0x50b1b7['id'],'skillCode':_0x50b1b7[_0x108797(0x82)],'skillName':_0x50b1b7[_0x108797(0x85)],'scope':_0x50b1b7['scope'],'version':_0x50b1b7[_0x108797(0x89)],'readonly':_0x50b1b7[_0x108797(0x84)]};}function a57_0x3382(_0x4d923d,_0x1ef66c){_0x4d923d=_0x4d923d-0x7d;var _0x4d2570=a57_0x4d25();var _0x338299=_0x4d2570[_0x4d923d];return _0x338299;}export function summarizeLocalRuntimeSkill(_0x488ab0){var _0x4ed681=a57_0x3382;return{'id':_0x488ab0['id'],'skillCode':_0x488ab0[_0x4ed681(0x82)],'skillName':_0x488ab0[_0x4ed681(0x85)],'scope':_0x488ab0[_0x4ed681(0x83)],'appCode':_0x488ab0[_0x4ed681(0x91)],'version':_0x488ab0['version'],'status':_0x488ab0[_0x4ed681(0x94)],'readonly':_0x488ab0[_0x4ed681(0x84)],'tags':_0x488ab0[_0x4ed681(0x80)],'dir':_0x488ab0[_0x4ed681(0x95)],'cacheDir':_0x488ab0[_0x4ed681(0x81)],'skillMdPath':_0x488ab0[_0x4ed681(0x8c)],'metadataPath':_0x488ab0[_0x4ed681(0x92)],'linkedPaths':_0x488ab0[_0x4ed681(0x93)],'contentHash':_0x488ab0[_0x4ed681(0x8b)],'treeHash':_0x488ab0['treeHash'],'pulledAt':_0x488ab0[_0x4ed681(0x90)]};}function a57_0x4d25(){var _0x4302c3=['contentHash','skillMdPath','2bqmULf','5060349HsPlUu','2644cIKgpV','pulledAt','appCode','metadataPath','linkedPaths','status','dir','537660sjdCPj','636019LYaJsx','351uYRtSW','tags','cacheDir','skillCode','scope','readonly','skillName','4604024pfxzsd','4261920DYCGQe','1077cEMYQN','version','1329935kKzjkr'];a57_0x4d25=function(){return _0x4302c3;};return a57_0x4d25();}
@@ -1 +1 @@
1
- const a58_0x25bbef=a58_0x2c5b;(function(_0x75c01f,_0x2ee637){const _0x568f73=a58_0x2c5b,_0x59cf3c=_0x75c01f();while(!![]){try{const _0x3704f4=parseInt(_0x568f73(0x1c6))/0x1*(-parseInt(_0x568f73(0x1a9))/0x2)+parseInt(_0x568f73(0x1b3))/0x3+-parseInt(_0x568f73(0x1ab))/0x4+parseInt(_0x568f73(0x1d0))/0x5+-parseInt(_0x568f73(0x1c3))/0x6*(parseInt(_0x568f73(0x1c8))/0x7)+parseInt(_0x568f73(0x1c9))/0x8+parseInt(_0x568f73(0x1cf))/0x9*(-parseInt(_0x568f73(0x1c2))/0xa);if(_0x3704f4===_0x2ee637)break;else _0x59cf3c['push'](_0x59cf3c['shift']());}catch(_0x371cc3){_0x59cf3c['push'](_0x59cf3c['shift']());}}}(a58_0x1f8f,0x25748));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read'];export const DEFAULT_SKILL_TARGET=a58_0x25bbef(0x1a8);function a58_0x2c5b(_0x285bb2,_0x2fb34c){_0x285bb2=_0x285bb2-0x1a7;const _0x1f8fab=a58_0x1f8f();let _0x2c5b04=_0x1f8fab[_0x285bb2];return _0x2c5b04;}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_0x25bbef(0x1af);export function validateSkillName(_0x236a02){const _0x187a8b=a58_0x25bbef,_0x21c9d1=_0x236a02[_0x187a8b(0x1ad)]();if(!SKILL_NAME_PATTERN[_0x187a8b(0x1bb)](_0x21c9d1))throw CliErrors[_0x187a8b(0x1ce)](_0x187a8b(0x1b0)+_0x236a02+_0x187a8b(0x1bd),_0x187a8b(0x1cd));return _0x21c9d1;}export function normalizeSkillTemplateType(_0x32ae5e){const _0x88360e=a58_0x25bbef,_0x3542c9=(_0x32ae5e||_0x88360e(0x1c1))[_0x88360e(0x1ad)]()||_0x88360e(0x1c1);if(SKILL_TYPES[_0x88360e(0x1be)](_0x3542c9))return _0x3542c9;throw CliErrors[_0x88360e(0x1ce)](_0x88360e(0x1b5)+_0x32ae5e,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x88360e(0x1b8)](',\x20')+'.');}export function renderSkillTemplate(_0x212d29){const _0x478d9a=a58_0x25bbef,_0x97b10e=validateSkillName(_0x212d29[_0x478d9a(0x1b1)]),_0xa8a5a2=normalizeSkillTemplateType(_0x212d29[_0x478d9a(0x1c4)]),_0x1b7fd8=_0x212d29[_0x478d9a(0x1c7)]??new Date()[_0x478d9a(0x1b4)]();return{'skillName':_0x97b10e,'type':_0xa8a5a2,'files':[{'path':_0x478d9a(0x1ae),'content':renderSkillMd(_0x97b10e,_0xa8a5a2,_0x1b7fd8)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x97b10e,_0xa8a5a2)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x97b10e,_0xa8a5a2)}]};}function renderSkillMd(_0x1d2fd0,_0x1f7db9,_0x5177d8){const _0x45fbaa=a58_0x25bbef,_0x450868=typeWorkflow(_0x1f7db9);return'---\x0aname:\x20'+_0x1d2fd0+_0x45fbaa(0x1b9)+_0x1f7db9+_0x45fbaa(0x1b2)+_0x5177d8+_0x45fbaa(0x1ac)+_0x1d2fd0+_0x45fbaa(0x1bc)+_0x450868+'\x0a\x0a'+businessStateSection(_0x1f7db9)+'\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(_0x2b643c,_0x318564){const _0x50aed6=a58_0x25bbef,_0xfa5a5e=_0x318564===_0x50aed6(0x1c1)?_0x50aed6(0x1c5):'';return _0x50aed6(0x1cb)+_0x2b643c+_0x50aed6(0x1c0)+_0x318564+_0x50aed6(0x1cc)+_0xfa5a5e+_0x50aed6(0x1ba);}function a58_0x1f8f(){const _0x820d99=['\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的所有必读规则必须位于\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=','write','74030QuaDQa','24WrTcNa','type','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','162yprTab','timestamp','34517emNWsU','1049312stuUWS','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\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','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','validation','63ubPfJA','1410860DCvhlh','read','#\x20Output\x20Contract\x0a\x0a','.agents/skills','3434QMncIv','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','255564AWUSzL','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','trim','SKILL.md','references/output-contract.md','Invalid\x20Skill\x20name:\x20','skillName','\x0a\x20\x20created:\x20\x22','461010BBPbkd','toISOString','Unsupported\x20Skill\x20type:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','join','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','test','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','includes'];a58_0x1f8f=function(){return _0x820d99;};return a58_0x1f8f();}function renderOutputContract(_0x3def2a,_0x4cd356){const _0x4d4c6b=a58_0x25bbef,_0x4e8346=_0x4cd356===_0x4d4c6b(0x1c1)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x4cd356+_0x4d4c6b(0x1b6);return _0x4d4c6b(0x1a7)+_0x3def2a+_0x4d4c6b(0x1bf)+_0x4e8346+_0x4d4c6b(0x1ca);}function typeWorkflow(_0xd2937a){const _0x43191e=a58_0x25bbef;if(_0xd2937a===_0x43191e(0x1d1))return _0x43191e(0x1b7);return _0x43191e(0x1aa);}function businessStateSection(_0x57bd32){const _0x556927=a58_0x25bbef;if(_0x57bd32!==_0x556927(0x1c1))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_0x4118d5=a58_0x56c8;(function(_0x1f1491,_0x3596e1){const _0x338399=a58_0x56c8,_0x7e115d=_0x1f1491();while(!![]){try{const _0x119720=parseInt(_0x338399(0xab))/0x1+-parseInt(_0x338399(0xa6))/0x2+parseInt(_0x338399(0x93))/0x3+-parseInt(_0x338399(0x9a))/0x4*(parseInt(_0x338399(0xa5))/0x5)+parseInt(_0x338399(0x98))/0x6+-parseInt(_0x338399(0xaa))/0x7+parseInt(_0x338399(0xa2))/0x8;if(_0x119720===_0x3596e1)break;else _0x7e115d['push'](_0x7e115d['shift']());}catch(_0x3f8a9c){_0x7e115d['push'](_0x7e115d['shift']());}}}(a58_0x496b,0xe3b76));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a58_0x4118d5(0xaf),a58_0x4118d5(0xb1)];export const DEFAULT_SKILL_TARGET=a58_0x4118d5(0xb0);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_0x4118d5(0xa7);function a58_0x56c8(_0x423bb8,_0x3c1c07){_0x423bb8=_0x423bb8-0x91;const _0x496b56=a58_0x496b();let _0x56c808=_0x496b56[_0x423bb8];return _0x56c808;}export function validateSkillName(_0x59838a){const _0x1db77d=a58_0x4118d5,_0x2b240f=_0x59838a[_0x1db77d(0x96)]();if(!SKILL_NAME_PATTERN[_0x1db77d(0xb2)](_0x2b240f))throw CliErrors[_0x1db77d(0x9b)]('Invalid\x20Skill\x20name:\x20'+_0x59838a+_0x1db77d(0xa1),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x2b240f;}export function normalizeSkillTemplateType(_0x502b36){const _0x53b974=a58_0x4118d5,_0x479939=(_0x502b36||_0x53b974(0xaf))['trim']()||_0x53b974(0xaf);if(SKILL_TYPES[_0x53b974(0xac)](_0x479939))return _0x479939;throw CliErrors[_0x53b974(0x9b)]('Unsupported\x20Skill\x20type:\x20'+_0x502b36,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x53b974(0xa3)](',\x20')+'.');}export function renderSkillTemplate(_0x1eeea7){const _0x5bfc7e=a58_0x4118d5,_0x4dc9e0=validateSkillName(_0x1eeea7[_0x5bfc7e(0xb3)]),_0x2822b6=normalizeSkillTemplateType(_0x1eeea7[_0x5bfc7e(0x9e)]),_0xab270d=_0x1eeea7[_0x5bfc7e(0x94)]??new Date()[_0x5bfc7e(0x97)]();return{'skillName':_0x4dc9e0,'type':_0x2822b6,'files':[{'path':_0x5bfc7e(0x99),'content':renderSkillMd(_0x4dc9e0,_0x2822b6,_0xab270d)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x4dc9e0,_0x2822b6)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x4dc9e0,_0x2822b6)}]};}function renderSkillMd(_0x2dc1cd,_0x4836e5,_0xde43e){const _0x437b05=a58_0x4118d5,_0x560dc7=typeWorkflow(_0x4836e5);return _0x437b05(0x92)+_0x2dc1cd+_0x437b05(0xae)+_0x4836e5+'\x0a\x20\x20created:\x20\x22'+_0xde43e+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x2dc1cd+_0x437b05(0xa9)+_0x560dc7+'\x0a\x0a'+businessStateSection(_0x4836e5)+_0x437b05(0xb4);}function renderRuntimeContract(_0x1dd4d4,_0x533160){const _0x294a73=a58_0x4118d5,_0x22c564=_0x533160==='write'?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x1dd4d4+_0x294a73(0x9c)+_0x533160+_0x294a73(0x95)+_0x22c564+_0x294a73(0x9d);}function renderOutputContract(_0x7198b2,_0x41ada3){const _0x282de5=a58_0x4118d5,_0x5a940a=_0x41ada3===_0x282de5(0xaf)?_0x282de5(0xad):_0x41ada3+_0x282de5(0xa8);return _0x282de5(0x9f)+_0x7198b2+'\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'+_0x5a940a+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x40c7ba){const _0x164523=a58_0x4118d5;if(_0x40c7ba===_0x164523(0xb1))return _0x164523(0xa4);return _0x164523(0x91);}function a58_0x496b(){const _0x472edd=['6605XZDghj','146658MFZPND','references/output-contract.md','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','2945019XgXbKp','338875ICrJFK','includes','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','write','.agents/skills','read','test','skillName','\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','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','---\x0aname:\x20','3851481vrgdsr','timestamp','\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','trim','toISOString','4593036dPGLlI','SKILL.md','5448UgNLPf','validation','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','\x0a##\x20返回契约\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','type','#\x20Output\x20Contract\x0a\x0a','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','6702128TVgDSq','join','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。'];a58_0x496b=function(){return _0x472edd;};return a58_0x496b();}function businessStateSection(_0xa10049){const _0x44d046=a58_0x4118d5;if(_0xa10049!==_0x44d046(0xaf))return'';return _0x44d046(0xa0);}
@@ -1 +1 @@
1
- const a59_0x5acecc=a59_0x5bd4;(function(_0x106ae4,_0x4a6891){const _0x36af55=a59_0x5bd4,_0x4374c3=_0x106ae4();while(!![]){try{const _0x40a33e=-parseInt(_0x36af55(0x12b))/0x1*(parseInt(_0x36af55(0x135))/0x2)+parseInt(_0x36af55(0x112))/0x3*(parseInt(_0x36af55(0x129))/0x4)+parseInt(_0x36af55(0x103))/0x5+-parseInt(_0x36af55(0x102))/0x6+-parseInt(_0x36af55(0x11d))/0x7*(-parseInt(_0x36af55(0x117))/0x8)+-parseInt(_0x36af55(0xf2))/0x9*(-parseInt(_0x36af55(0x119))/0xa)+parseInt(_0x36af55(0x133))/0xb*(-parseInt(_0x36af55(0x142))/0xc);if(_0x40a33e===_0x4a6891)break;else _0x4374c3['push'](_0x4374c3['shift']());}catch(_0x5c78c1){_0x4374c3['push'](_0x4374c3['shift']());}}}(a59_0x5d7e,0x6686b));function a59_0x5d7e(){const _0xf6636f=['hasFrontmatter','filter','artifact','length','Frontmatter\x20description\x20is\x20empty.','write','search','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','false','isDirectory','408WgnVjb','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','path','section','slice','logs','boolean','SKILL.md\x20must\x20start\x20with\x20frontmatter.','app','Skill\x20validation\x20failed:\x0a','content','sql','9MIhwJq','errors','frontmatter-required','push','Set\x20metadata.type\x20to\x20write\x20or\x20read.','bff','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','level','project','SKILL.md','test','Frontmatter\x20name\x20is\x20missing.','type','name','isArray','2677464RUutgj','3052710OUuKvp','utf8','flatMap','Add\x20frontmatter\x20with\x20name\x20and\x20description.','structure-complete','object','line','string','example-recommended','workspace','validation','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','description-required','toLowerCase','suggestion','943932ePtslO','isSymbolicLink','warning','displayName','map','926416FFplcd','example','2350750yqcyOU','error','service','Skill\x20directory\x20not\x20found:\x20','42HtMVNG','number','raw','file','data','metadata','config','split','read','rabetbase-cli-reference','Missing\x20SKILL.md.','internal-skill','8PdBtsy','internal','39658zJoNTN','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','dataset','description','join','SKILL.md\x20is\x20not\x20a\x20file.','display-name-recommended','203610pXRfzT','message','34EgTxmu','trim'];a59_0x5d7e=function(){return _0xf6636f;};return a59_0x5d7e();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x29462b}from'yaml';function a59_0x5bd4(_0x565d39,_0x54273b){_0x565d39=_0x565d39-0xed;const _0x5d7e7c=a59_0x5d7e();let _0x5bd477=_0x5d7e7c[_0x565d39];return _0x5bd477;}import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a59_0x5acecc(0xfc),SUPPORTED_SKILL_TYPES=new Set([a59_0x5acecc(0x13c),a59_0x5acecc(0x125)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2f0374,_0x5b91a6={}){const _0x82dad0=a59_0x5acecc,_0x44b72a=resolveSkillDirectoryRoot(_0x2f0374),_0x220120=[],_0x170ea9=loadRequiredSkillFile(_0x44b72a,_0x220120),_0x22b52e=_0x170ea9?parseFrontmatter(_0x170ea9[_0x82dad0(0xf0)]):{'hasFrontmatter':![]};_0x170ea9&&validateFrontmatter(_0x170ea9[_0x82dad0(0x144)],_0x22b52e,_0x220120);validateRuntimeCliReferences(_0x44b72a,_0x220120);const _0x57d1c9=_0x220120['filter'](_0x41578d=>_0x41578d[_0x82dad0(0xfa)]===_0x82dad0(0x11a)),_0x439bea=_0x220120[_0x82dad0(0x138)](_0xfd0736=>_0xfd0736[_0x82dad0(0xfa)]==='warning');return{'ok':_0x57d1c9[_0x82dad0(0x13a)]===0x0,'dir':_0x44b72a,'type':_0x22b52e[_0x82dad0(0xff)],'errors':_0x57d1c9,'warnings':_0x439bea};}function resolveSkillDirectoryRoot(_0xe6ed02){const _0x396fa7=a59_0x5acecc,_0x585ab4=resolve(_0xe6ed02);if(!existsSync(_0x585ab4))throw CliErrors[_0x396fa7(0x10d)](_0x396fa7(0x11c)+_0xe6ed02);const _0x64042b=lstatSync(_0x585ab4);if(_0x64042b[_0x396fa7(0x141)]())return _0x585ab4;if(_0x64042b[_0x396fa7(0x113)]()){const _0x4594d6=realpathSync(_0x585ab4);if(lstatSync(_0x4594d6)[_0x396fa7(0x141)]())return _0x4594d6;}throw CliErrors[_0x396fa7(0x10d)](_0x396fa7(0x11c)+_0xe6ed02);}export function throwIfSkillValidationFailed(_0x1b68eb,_0x1f55a4=![]){const _0x3738f4=a59_0x5acecc;if(_0x1b68eb['ok'])return;const _0x4306c8=_0x1b68eb[_0x3738f4(0xf3)][_0x3738f4(0x116)](_0x54db58=>{const _0x12e055=_0x3738f4,_0x525cf4=_0x54db58[_0x12e055(0x145)]?'#'+_0x54db58[_0x12e055(0x145)]:'';return _0x54db58[_0x12e055(0xfa)]['toUpperCase']()+'\x20'+_0x54db58['ruleId']+'\x20'+_0x54db58[_0x12e055(0x120)]+_0x525cf4+':\x20'+_0x54db58[_0x12e055(0x134)]+'\x20Fix:\x20'+_0x54db58[_0x12e055(0x111)];});throw CliErrors['validation'](_0x3738f4(0xef)+_0x4306c8[_0x3738f4(0x130)]('\x0a'),_0x3738f4(0xf8));}function loadRequiredSkillFile(_0x3992c7,_0x5ecfea){const _0x1af1c2=a59_0x5acecc,_0xb25d14=resolve(_0x3992c7,SKILL_FILE);if(!existsSync(_0xb25d14))return _0x5ecfea[_0x1af1c2(0xf5)](issue(_0x1af1c2(0x11a),_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x127),_0x1af1c2(0xf9))),undefined;const _0x4b8ca4=lstatSync(_0xb25d14);if(_0x4b8ca4['isSymbolicLink']())return _0x5ecfea[_0x1af1c2(0xf5)](issue(_0x1af1c2(0x11a),_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x13f),_0x1af1c2(0x143))),undefined;if(!_0x4b8ca4['isFile']())return _0x5ecfea['push'](issue('error',_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x131),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xb25d14,_0x1af1c2(0x104))};}function validateFrontmatter(_0x3f25e6,_0x148054,_0x86501){const _0x3befe7=a59_0x5acecc;if(!_0x148054[_0x3befe7(0x137)]){_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,_0x3befe7(0xed),_0x3befe7(0x106)));return;}!_0x148054[_0x3befe7(0x100)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,_0x3befe7(0xfe),_0x3befe7(0x12c))),!_0x148054['displayName']?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue('warning',_0x3befe7(0x132),_0x3f25e6,_0x3befe7(0x13e),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x148054[_0x3befe7(0x118)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x114),_0x3befe7(0x10b),_0x3f25e6,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x148054[_0x3befe7(0x12f)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0x10f),_0x3f25e6,_0x3befe7(0x13b),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x148054[_0x3befe7(0x12a)]===!![]&&_0x86501['push'](issue('error',_0x3befe7(0x128),_0x3f25e6,_0x3befe7(0x12d),_0x3befe7(0x10e))),_0x148054[_0x3befe7(0xff)]?.[_0x3befe7(0x136)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x148054['type'])&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x3befe7(0xf6)));}function validateRuntimeCliReferences(_0x12c69d,_0xe0b2a7){const _0x392d03=a59_0x5acecc;for(const _0x4dba81 of findRabetbaseCliInvocations(_0x12c69d)){_0xe0b2a7[_0x392d03(0xf5)](issue(_0x392d03(0x114),_0x392d03(0x126),_0x4dba81[_0x392d03(0x120)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x4dba81[_0x392d03(0x109)]));}}function findRabetbaseCliInvocations(_0x3b8a71){const _0x3e1871=a59_0x5acecc;return scanSkillDirectory(_0x3b8a71)[_0x3e1871(0x138)](_0x3a01a8=>TEXT_SKILL_FILE_PATTERN['test'](_0x3a01a8[_0x3e1871(0x144)]))[_0x3e1871(0x105)](_0x23b7b1=>{const _0x1d944c=_0x3e1871,_0x114ae7=fileText(_0x23b7b1);return _0x114ae7[_0x1d944c(0x124)](/\r?\n/)[_0x1d944c(0x116)]((_0x417e7f,_0x53a464)=>({'file':_0x23b7b1[_0x1d944c(0x144)],'line':_0x53a464+0x1,'text':_0x417e7f}))[_0x1d944c(0x138)](({text:_0x26bf9b})=>isRabetbaseCliInvocation(_0x26bf9b))[_0x1d944c(0x116)](({file:_0x48f2f2,line:_0x51eb08})=>({'file':_0x48f2f2,'line':_0x51eb08}));});}const RABETBASE_SUBCOMMANDS=[a59_0x5acecc(0x12e),a59_0x5acecc(0xf1),a59_0x5acecc(0xf7),'page',a59_0x5acecc(0xfb),a59_0x5acecc(0xee),'schema',a59_0x5acecc(0x11b),a59_0x5acecc(0x139),'kb',a59_0x5acecc(0x123),a59_0x5acecc(0x10c),a59_0x5acecc(0x121),'auth',a59_0x5acecc(0x147),'registry'],RABETBASE_INVOCATION=new RegExp(String[a59_0x5acecc(0x11f)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x5acecc(0x130)]('|')})\b`+String[a59_0x5acecc(0x11f)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x46a73f){const _0x28ff13=a59_0x5acecc,_0xe9d1d6=_0x46a73f[_0x28ff13(0x13d)](/\brabetbase\b/i);if(_0xe9d1d6<0x0)return![];const _0x281efa=_0x46a73f[_0x28ff13(0x146)](_0xe9d1d6)[_0x28ff13(0x124)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x28ff13(0xfd)](_0x281efa);}function parseFrontmatter(_0x504ec0){const _0x75f783=a59_0x5acecc,_0x5677ad=_0x504ec0['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5677ad)return{'hasFrontmatter':![]};const _0x4e4ad2=_0x5677ad[0x1]??'',_0x47d1be={'hasFrontmatter':!![]};let _0x10bb42;try{_0x10bb42=a59_0x29462b(_0x4e4ad2);}catch{return _0x47d1be;}const _0x2553a1=asRecord(_0x10bb42);if(!_0x2553a1)return _0x47d1be;_0x47d1be[_0x75f783(0x100)]=scalarToString(_0x2553a1[_0x75f783(0x100)]),_0x47d1be[_0x75f783(0x115)]=scalarToString(_0x2553a1[_0x75f783(0x115)]),_0x47d1be[_0x75f783(0x12f)]=scalarToString(_0x2553a1[_0x75f783(0x12f)]),_0x47d1be[_0x75f783(0x118)]=scalarToString(_0x2553a1[_0x75f783(0x118)]);const _0x27ed65=asRecord(_0x2553a1[_0x75f783(0x122)]);return _0x27ed65&&(_0x47d1be[_0x75f783(0xff)]=scalarToString(_0x27ed65[_0x75f783(0xff)]),_0x47d1be['internal']=scalarToBoolean(_0x27ed65[_0x75f783(0x12a)])),_0x47d1be;}function asRecord(_0x304fad){const _0x2841de=a59_0x5acecc;if(_0x304fad&&typeof _0x304fad===_0x2841de(0x108)&&!Array[_0x2841de(0x101)](_0x304fad))return _0x304fad;return undefined;}function scalarToString(_0x2c3d99){const _0x253df4=a59_0x5acecc;if(typeof _0x2c3d99===_0x253df4(0x10a))return _0x2c3d99[_0x253df4(0x136)]();if(typeof _0x2c3d99===_0x253df4(0x11e)||typeof _0x2c3d99===_0x253df4(0x148))return String(_0x2c3d99);return undefined;}function scalarToBoolean(_0x2de5c9){const _0x54a4db=a59_0x5acecc;if(typeof _0x2de5c9===_0x54a4db(0x148))return _0x2de5c9;if(typeof _0x2de5c9===_0x54a4db(0x10a))return cleanBoolean(_0x2de5c9);return undefined;}function cleanBoolean(_0x1ca29e){const _0x3325c8=a59_0x5acecc,_0x370925=_0x1ca29e[_0x3325c8(0x136)]()[_0x3325c8(0x110)]();if(_0x370925==='true')return!![];if(_0x370925===_0x3325c8(0x140))return![];return undefined;}function issue(_0xa152db,_0x46316e,_0xb7fe20,_0x37218f,_0x251c2a,_0x3d7933){return{'level':_0xa152db,'ruleId':_0x46316e,'file':_0xb7fe20,'section':_0x3d7933,'message':_0x37218f,'suggestion':_0x251c2a};}
1
+ const a59_0x3cbed6=a59_0x515a;(function(_0xc6cced,_0x41399b){const _0x2fb143=a59_0x515a,_0x5f3c18=_0xc6cced();while(!![]){try{const _0x1f6400=-parseInt(_0x2fb143(0x15f))/0x1+parseInt(_0x2fb143(0x12d))/0x2*(parseInt(_0x2fb143(0x131))/0x3)+-parseInt(_0x2fb143(0x10f))/0x4*(-parseInt(_0x2fb143(0x14e))/0x5)+-parseInt(_0x2fb143(0x15d))/0x6*(parseInt(_0x2fb143(0x121))/0x7)+parseInt(_0x2fb143(0x10e))/0x8*(parseInt(_0x2fb143(0x14d))/0x9)+parseInt(_0x2fb143(0x15e))/0xa*(parseInt(_0x2fb143(0x150))/0xb)+-parseInt(_0x2fb143(0x127))/0xc*(parseInt(_0x2fb143(0x109))/0xd);if(_0x1f6400===_0x41399b)break;else _0x5f3c18['push'](_0x5f3c18['shift']());}catch(_0x3ed956){_0x5f3c18['push'](_0x5f3c18['shift']());}}}(a59_0x1b33,0xbfaf2));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x1d584c}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a59_0x3cbed6(0x104),SUPPORTED_SKILL_TYPES=new Set(['write','read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x36e086,_0x474859={}){const _0x49df8e=a59_0x3cbed6,_0x34702c=resolveSkillDirectoryRoot(_0x36e086),_0x25975e=[],_0x59286b=loadRequiredSkillFile(_0x34702c,_0x25975e),_0x24ab86=_0x59286b?parseFrontmatter(_0x59286b[_0x49df8e(0x13c)]):{'hasFrontmatter':![]};_0x59286b&&validateFrontmatter(_0x59286b[_0x49df8e(0x13e)],_0x24ab86,_0x25975e);validateRuntimeCliReferences(_0x34702c,_0x25975e);const _0x1787d5=_0x25975e[_0x49df8e(0x14c)](_0x330491=>_0x330491[_0x49df8e(0x122)]==='error'),_0x136ef3=_0x25975e[_0x49df8e(0x14c)](_0x4e4c04=>_0x4e4c04[_0x49df8e(0x122)]==='warning');return{'ok':_0x1787d5[_0x49df8e(0x111)]===0x0,'dir':_0x34702c,'type':_0x24ab86[_0x49df8e(0x12b)],'errors':_0x1787d5,'warnings':_0x136ef3};}function a59_0x1b33(){const _0x2c3eb2=['artifact','isArray','Add\x20frontmatter\x20with\x20name\x20and\x20description.','raw','ruleId','filter','13114836pNqgSG','6205lkgChK','description','33uNnzEn','suggestion','internal','data','hasFrontmatter','line','warning','structure-complete','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','false','isFile','string','744PCAVUR','3299590LXwvMb','851719mRUwzj','SKILL.md','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','Frontmatter\x20name\x20is\x20missing.','true','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','6084jZWVPT','service','join','Skill\x20directory\x20not\x20found:\x20','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','8fHDeFg','1916CRQoMs','trim','length','boolean','logs','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','frontmatter-required','name','test','isDirectory','error','config','slice','sql','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','file','object','\x20Fix:\x20','46823VHKlpP','level','SKILL.md\x20must\x20start\x20with\x20frontmatter.','push','app','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','40944yuxsJO','internal-skill','description-required','message','type','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','2OELdsH','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','toUpperCase','metadata','3064767AmBdCs','validation','map','Set\x20metadata.type\x20to\x20write\x20or\x20read.','example','Missing\x20SKILL.md.','Frontmatter\x20example\x20is\x20missing.','bff','has','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','project','content','display-name-recommended','path','page','Frontmatter\x20description\x20is\x20empty.','section','dataset','match','Frontmatter\x20displayName\x20is\x20missing.','isSymbolicLink','displayName'];a59_0x1b33=function(){return _0x2c3eb2;};return a59_0x1b33();}function resolveSkillDirectoryRoot(_0x4d8e7a){const _0x163edc=a59_0x3cbed6,_0x182b83=resolve(_0x4d8e7a);if(!existsSync(_0x182b83))throw CliErrors[_0x163edc(0x132)](_0x163edc(0x10c)+_0x4d8e7a);const _0x2e71=lstatSync(_0x182b83);if(_0x2e71[_0x163edc(0x118)]())return _0x182b83;if(_0x2e71[_0x163edc(0x145)]()){const _0x352df7=realpathSync(_0x182b83);if(lstatSync(_0x352df7)[_0x163edc(0x118)]())return _0x352df7;}throw CliErrors['validation'](_0x163edc(0x10c)+_0x4d8e7a);}export function throwIfSkillValidationFailed(_0x5e95ed,_0x34248f=![]){if(_0x5e95ed['ok'])return;const _0x5659cb=_0x5e95ed['errors']['map'](_0x361544=>{const _0x43f4aa=a59_0x515a,_0x21295c=_0x361544[_0x43f4aa(0x141)]?'#'+_0x361544[_0x43f4aa(0x141)]:'';return _0x361544[_0x43f4aa(0x122)][_0x43f4aa(0x12f)]()+'\x20'+_0x361544[_0x43f4aa(0x14b)]+'\x20'+_0x361544[_0x43f4aa(0x11e)]+_0x21295c+':\x20'+_0x361544[_0x43f4aa(0x12a)]+_0x43f4aa(0x120)+_0x361544[_0x43f4aa(0x151)];});throw CliErrors['validation']('Skill\x20validation\x20failed:\x0a'+_0x5659cb['join']('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x1e5c9c,_0x215997){const _0x59ade8=a59_0x3cbed6,_0x42d680=resolve(_0x1e5c9c,SKILL_FILE);if(!existsSync(_0x42d680))return _0x215997[_0x59ade8(0x124)](issue(_0x59ade8(0x119),'structure-complete',SKILL_FILE,_0x59ade8(0x136),_0x59ade8(0x13a))),undefined;const _0x23a026=lstatSync(_0x42d680);if(_0x23a026['isSymbolicLink']())return _0x215997[_0x59ade8(0x124)](issue(_0x59ade8(0x119),'structure-complete',SKILL_FILE,_0x59ade8(0x158),_0x59ade8(0x159))),undefined;if(!_0x23a026[_0x59ade8(0x15b)]())return _0x215997[_0x59ade8(0x124)](issue(_0x59ade8(0x119),_0x59ade8(0x157),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x59ade8(0x11d))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x42d680,'utf8')};}function validateFrontmatter(_0x1873f7,_0x88f1ed,_0x178271){const _0xa4dcb5=a59_0x3cbed6;if(!_0x88f1ed[_0xa4dcb5(0x154)]){_0x178271[_0xa4dcb5(0x124)](issue(_0xa4dcb5(0x119),_0xa4dcb5(0x115),_0x1873f7,_0xa4dcb5(0x123),_0xa4dcb5(0x149)));return;}!_0x88f1ed[_0xa4dcb5(0x116)]?.[_0xa4dcb5(0x110)]()&&_0x178271[_0xa4dcb5(0x124)](issue(_0xa4dcb5(0x119),'frontmatter-required',_0x1873f7,_0xa4dcb5(0x106),_0xa4dcb5(0x114))),!_0x88f1ed[_0xa4dcb5(0x146)]?.[_0xa4dcb5(0x110)]()&&_0x178271[_0xa4dcb5(0x124)](issue('warning',_0xa4dcb5(0x13d),_0x1873f7,_0xa4dcb5(0x144),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x88f1ed[_0xa4dcb5(0x135)]?.[_0xa4dcb5(0x110)]()&&_0x178271[_0xa4dcb5(0x124)](issue(_0xa4dcb5(0x156),'example-recommended',_0x1873f7,_0xa4dcb5(0x137),_0xa4dcb5(0x126))),!_0x88f1ed[_0xa4dcb5(0x14f)]?.['trim']()&&_0x178271[_0xa4dcb5(0x124)](issue(_0xa4dcb5(0x119),_0xa4dcb5(0x129),_0x1873f7,_0xa4dcb5(0x140),_0xa4dcb5(0x108))),_0x88f1ed[_0xa4dcb5(0x152)]===!![]&&_0x178271[_0xa4dcb5(0x124)](issue(_0xa4dcb5(0x119),_0xa4dcb5(0x128),_0x1873f7,_0xa4dcb5(0x12c),_0xa4dcb5(0x12e))),_0x88f1ed[_0xa4dcb5(0x12b)]?.[_0xa4dcb5(0x110)]()&&!SUPPORTED_SKILL_TYPES[_0xa4dcb5(0x139)](_0x88f1ed['type'])&&_0x178271['push'](issue(_0xa4dcb5(0x119),'frontmatter-required',_0x1873f7,_0xa4dcb5(0x10d),_0xa4dcb5(0x134)));}function validateRuntimeCliReferences(_0x393f3a,_0x3469e6){const _0x20d81b=a59_0x3cbed6;for(const _0x58e685 of findRabetbaseCliInvocations(_0x393f3a)){_0x3469e6[_0x20d81b(0x124)](issue(_0x20d81b(0x156),'rabetbase-cli-reference',_0x58e685[_0x20d81b(0x11e)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x20d81b(0x105),'L'+_0x58e685[_0x20d81b(0x155)]));}}function findRabetbaseCliInvocations(_0x3253f3){const _0x496414=a59_0x3cbed6;return scanSkillDirectory(_0x3253f3)['filter'](_0x40a7ff=>TEXT_SKILL_FILE_PATTERN[_0x496414(0x117)](_0x40a7ff[_0x496414(0x13e)]))['flatMap'](_0x1422be=>{const _0x2961a8=_0x496414,_0x239ea9=fileText(_0x1422be);return _0x239ea9['split'](/\r?\n/)[_0x2961a8(0x133)]((_0x392c54,_0x1d869f)=>({'file':_0x1422be[_0x2961a8(0x13e)],'line':_0x1d869f+0x1,'text':_0x392c54}))[_0x2961a8(0x14c)](({text:_0x56e56f})=>isRabetbaseCliInvocation(_0x56e56f))[_0x2961a8(0x133)](({file:_0x198147,line:_0x87354f})=>({'file':_0x198147,'line':_0x87354f}));});}const RABETBASE_SUBCOMMANDS=[a59_0x3cbed6(0x142),a59_0x3cbed6(0x11c),a59_0x3cbed6(0x138),a59_0x3cbed6(0x13f),a59_0x3cbed6(0x13b),a59_0x3cbed6(0x125),'schema',a59_0x3cbed6(0x10a),a59_0x3cbed6(0x147),'kb',a59_0x3cbed6(0x11a),'workspace',a59_0x3cbed6(0x153),'auth',a59_0x3cbed6(0x113),'registry'],RABETBASE_INVOCATION=new RegExp(String[a59_0x3cbed6(0x14a)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x3cbed6(0x10b)]('|')})\b`+String[a59_0x3cbed6(0x14a)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x44ac02){const _0x545324=a59_0x3cbed6,_0x58f3bc=_0x44ac02['search'](/\brabetbase\b/i);if(_0x58f3bc<0x0)return![];const _0x171218=_0x44ac02[_0x545324(0x11b)](_0x58f3bc)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x545324(0x117)](_0x171218);}function parseFrontmatter(_0x223045){const _0x372ef=a59_0x3cbed6,_0x5cc2a3=_0x223045[_0x372ef(0x143)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5cc2a3)return{'hasFrontmatter':![]};const _0x19eee8=_0x5cc2a3[0x1]??'',_0x33d6e5={'hasFrontmatter':!![]};let _0xf4ec1c;try{_0xf4ec1c=a59_0x1d584c(_0x19eee8);}catch{return _0x33d6e5;}const _0x188b22=asRecord(_0xf4ec1c);if(!_0x188b22)return _0x33d6e5;_0x33d6e5[_0x372ef(0x116)]=scalarToString(_0x188b22[_0x372ef(0x116)]),_0x33d6e5[_0x372ef(0x146)]=scalarToString(_0x188b22[_0x372ef(0x146)]),_0x33d6e5[_0x372ef(0x14f)]=scalarToString(_0x188b22[_0x372ef(0x14f)]),_0x33d6e5['example']=scalarToString(_0x188b22[_0x372ef(0x135)]);const _0x1f0835=asRecord(_0x188b22[_0x372ef(0x130)]);return _0x1f0835&&(_0x33d6e5[_0x372ef(0x12b)]=scalarToString(_0x1f0835['type']),_0x33d6e5[_0x372ef(0x152)]=scalarToBoolean(_0x1f0835[_0x372ef(0x152)])),_0x33d6e5;}function asRecord(_0x20ff5c){const _0x33a53c=a59_0x3cbed6;if(_0x20ff5c&&typeof _0x20ff5c===_0x33a53c(0x11f)&&!Array[_0x33a53c(0x148)](_0x20ff5c))return _0x20ff5c;return undefined;}function scalarToString(_0x32c6e1){const _0x1dbca6=a59_0x3cbed6;if(typeof _0x32c6e1===_0x1dbca6(0x15c))return _0x32c6e1[_0x1dbca6(0x110)]();if(typeof _0x32c6e1==='number'||typeof _0x32c6e1===_0x1dbca6(0x112))return String(_0x32c6e1);return undefined;}function scalarToBoolean(_0x2fda3d){const _0x1da4b2=a59_0x3cbed6;if(typeof _0x2fda3d==='boolean')return _0x2fda3d;if(typeof _0x2fda3d===_0x1da4b2(0x15c))return cleanBoolean(_0x2fda3d);return undefined;}function cleanBoolean(_0x3c142c){const _0x19c96d=a59_0x3cbed6,_0x33eb1e=_0x3c142c[_0x19c96d(0x110)]()['toLowerCase']();if(_0x33eb1e===_0x19c96d(0x107))return!![];if(_0x33eb1e===_0x19c96d(0x15a))return![];return undefined;}function a59_0x515a(_0x452c29,_0x400489){_0x452c29=_0x452c29-0x104;const _0x1b332f=a59_0x1b33();let _0x515a16=_0x1b332f[_0x452c29];return _0x515a16;}function issue(_0x101008,_0x21d81b,_0xac420,_0x19e260,_0x106e55,_0x1f1d2e){return{'level':_0x101008,'ruleId':_0x21d81b,'file':_0xac420,'section':_0x1f1d2e,'message':_0x19e260,'suggestion':_0x106e55};}
@@ -1 +1 @@
1
- const a60_0x3c3f0b=a60_0x4188;(function(_0x457fcd,_0x1e4213){const _0x3e7289=a60_0x4188,_0x197b83=_0x457fcd();while(!![]){try{const _0x1be7f9=-parseInt(_0x3e7289(0x7d))/0x1+parseInt(_0x3e7289(0x7c))/0x2*(parseInt(_0x3e7289(0x7b))/0x3)+-parseInt(_0x3e7289(0x82))/0x4+parseInt(_0x3e7289(0x76))/0x5+parseInt(_0x3e7289(0x75))/0x6*(parseInt(_0x3e7289(0x85))/0x7)+parseInt(_0x3e7289(0x79))/0x8*(-parseInt(_0x3e7289(0x83))/0x9)+parseInt(_0x3e7289(0x7e))/0xa;if(_0x1be7f9===_0x1e4213)break;else _0x197b83['push'](_0x197b83['shift']());}catch(_0x206062){_0x197b83['push'](_0x197b83['shift']());}}}(a60_0x2585,0xaf3da));function a60_0x2585(){const _0x5091d4=['170ZKLiXs','86731bjoeHH','6095970DDjCdH','sql','read','verbose','5734920IYwyGa','9063NYScpa','dbId','21WuOkre','detail','sqlContent','sqlcode','sqlName','649668TuLuAI','6023100cebkRv','appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','5336zmPkGv','bool','27207Dthpuk'];a60_0x2585=function(){return _0x5091d4;};return a60_0x2585();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a60_0x4188(_0x8d565d,_0x5d9124){_0x8d565d=_0x8d565d-0x75;const _0x258573=a60_0x2585();let _0x41880b=_0x258573[_0x8d565d];return _0x41880b;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a60_0x3c3f0b(0x7f),'command':a60_0x3c3f0b(0x86),'description':a60_0x3c3f0b(0x78),'risk':a60_0x3c3f0b(0x80),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x12e5e6){const _0x17a8d5=a60_0x3c3f0b,_0x4a42db=await getSqlQueryInfo(_0x12e5e6[_0x17a8d5(0x77)],_0x12e5e6['str'](_0x17a8d5(0x88))),_0x54ca52=_0x12e5e6[_0x17a8d5(0x7a)](_0x17a8d5(0x81));if(_0x54ca52)return{'ok':!![],'data':_0x4a42db};const _0x482de4=_0x4a42db['dbId']?await getDbName(_0x12e5e6[_0x17a8d5(0x77)],_0x4a42db['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x4a42db['sqlCode'],'sqlName':_0x4a42db[_0x17a8d5(0x89)],'db':_0x482de4?_0x482de4+'\x20('+_0x4a42db['dbId']+')':_0x4a42db[_0x17a8d5(0x84)]??'','sqlContent':_0x4a42db[_0x17a8d5(0x87)]??''}};}};
1
+ const a60_0xae5d14=a60_0x37c3;(function(_0x52ccde,_0x4d8dbb){const _0x405f77=a60_0x37c3,_0x3b11c8=_0x52ccde();while(!![]){try{const _0xfd55eb=parseInt(_0x405f77(0xef))/0x1*(-parseInt(_0x405f77(0xeb))/0x2)+-parseInt(_0x405f77(0xee))/0x3+-parseInt(_0x405f77(0xf3))/0x4*(-parseInt(_0x405f77(0xec))/0x5)+-parseInt(_0x405f77(0xe9))/0x6*(parseInt(_0x405f77(0xe6))/0x7)+-parseInt(_0x405f77(0xed))/0x8+parseInt(_0x405f77(0xe7))/0x9*(-parseInt(_0x405f77(0xe3))/0xa)+-parseInt(_0x405f77(0xe2))/0xb*(-parseInt(_0x405f77(0xe4))/0xc);if(_0xfd55eb===_0x4d8dbb)break;else _0x3b11c8['push'](_0x3b11c8['shift']());}catch(_0x209a87){_0x3b11c8['push'](_0x3b11c8['shift']());}}}(a60_0x383f,0x8b0de));function a60_0x383f(){const _0x18430f=['sqlcode','30YaqVOl','155835qyOkBU','7408352AeZWDi','1129422sCrIkS','18705Axuifg','sqlName','appCode','sqlCode','124jjNITQ','dbId','sqlContent','bool','11MQGFBX','580LNNqgh','26809404tgVyHX','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','29379EPsGtt','26451NDkBnP','verbose','1254rxETNY'];a60_0x383f=function(){return _0x18430f;};return a60_0x383f();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a60_0x37c3(_0x188118,_0x468bf5){_0x188118=_0x188118-0xe0;const _0x383f74=a60_0x383f();let _0x37c3ab=_0x383f74[_0x188118];return _0x37c3ab;}export const sqlDetail={'service':'sql','command':'detail','description':a60_0xae5d14(0xe5),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3df67e){const _0x500c96=a60_0xae5d14,_0x2f0ed7=await getSqlQueryInfo(_0x3df67e['appCode'],_0x3df67e['str'](_0x500c96(0xea))),_0x27bb9b=_0x3df67e[_0x500c96(0xe1)](_0x500c96(0xe8));if(_0x27bb9b)return{'ok':!![],'data':_0x2f0ed7};const _0x242694=_0x2f0ed7[_0x500c96(0xf4)]?await getDbName(_0x3df67e[_0x500c96(0xf1)],_0x2f0ed7['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x2f0ed7[_0x500c96(0xf2)],'sqlName':_0x2f0ed7[_0x500c96(0xf0)],'db':_0x242694?_0x242694+'\x20('+_0x2f0ed7[_0x500c96(0xf4)]+')':_0x2f0ed7[_0x500c96(0xf4)]??'','sqlContent':_0x2f0ed7[_0x500c96(0xe0)]??''}};}};
@@ -1 +1 @@
1
- const a61_0x1f0c12=a61_0x191a;(function(_0x27150b,_0x9c52d8){const _0x2a6348=a61_0x191a,_0x3f412e=_0x27150b();while(!![]){try{const _0x5b8576=-parseInt(_0x2a6348(0x130))/0x1*(-parseInt(_0x2a6348(0x12a))/0x2)+parseInt(_0x2a6348(0x12e))/0x3*(-parseInt(_0x2a6348(0x11a))/0x4)+-parseInt(_0x2a6348(0x121))/0x5*(parseInt(_0x2a6348(0x11b))/0x6)+-parseInt(_0x2a6348(0x131))/0x7*(-parseInt(_0x2a6348(0x11c))/0x8)+parseInt(_0x2a6348(0x125))/0x9*(parseInt(_0x2a6348(0x12f))/0xa)+parseInt(_0x2a6348(0x12c))/0xb+parseInt(_0x2a6348(0x11d))/0xc*(-parseInt(_0x2a6348(0x12d))/0xd);if(_0x5b8576===_0x9c52d8)break;else _0x3f412e['push'](_0x3f412e['shift']());}catch(_0x5a8d76){_0x3f412e['push'](_0x3f412e['shift']());}}}(a61_0x3409,0x2d2ee));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a61_0x191a(_0x2b574c,_0x1c1724){_0x2b574c=_0x2b574c-0x11a;const _0x3409ae=a61_0x3409();let _0x191a6e=_0x3409ae[_0x2b574c];return _0x191a6e;}import{parseJsonParams}from'../../utils/params.js';function a61_0x3409(){const _0x2fab92=['22978gMpmSu','7623XiTGNT','Returned\x20','686084wtwiXz','18mgMXue','2584PsBKfO','9552osbQlq','exec','execSuccess','read','140845axMdHu','length','\x20row(s)\x20in\x20','now','63gjGJRf','execError','SQL\x20execution\x20failed','execResult','sqlcode','26PjMCqr','str','1701062anrDgW','10751MFErVc','3WuUrkh','420410aJLYcU'];a61_0x3409=function(){return _0x2fab92;};return a61_0x3409();}export const sqlExec={'service':'sql','command':a61_0x1f0c12(0x11e),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a61_0x1f0c12(0x120),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x21d7a7){const _0x2242c9=a61_0x1f0c12,_0x1d0e0d=parseJsonParams(_0x21d7a7[_0x2242c9(0x12b)]('params')),_0x3f64c8=Date[_0x2242c9(0x124)](),_0xa9dd20=await executeSdkSql(_0x21d7a7['str'](_0x2242c9(0x129)),_0x1d0e0d),_0xc9e0df=Date['now']()-_0x3f64c8,_0x2499a5=_0xa9dd20?.[_0x2242c9(0x128)]??_0xa9dd20,_0x328014=_0xa9dd20?.[_0x2242c9(0x11f)]??!![];if(!_0x328014)return{'ok':![],'data':{'error':_0xa9dd20?.[_0x2242c9(0x126)]||_0x2242c9(0x127),'elapsed':_0xc9e0df},'message':_0x2242c9(0x127)};const _0x10bb12=Array['isArray'](_0x2499a5)?_0x2499a5:[];return{'ok':!![],'data':{'rows':_0x10bb12,'rowCount':_0x10bb12[_0x2242c9(0x122)],'elapsed':_0xc9e0df},'message':_0x2242c9(0x132)+_0x10bb12[_0x2242c9(0x122)]+_0x2242c9(0x123)+_0xc9e0df+'ms'};}};
1
+ const a61_0x34fa50=a61_0x29f8;(function(_0x21d48a,_0x3eaad9){const _0x17ed13=a61_0x29f8,_0x3eff9c=_0x21d48a();while(!![]){try{const _0x15479e=-parseInt(_0x17ed13(0x106))/0x1*(-parseInt(_0x17ed13(0x10e))/0x2)+-parseInt(_0x17ed13(0x112))/0x3*(-parseInt(_0x17ed13(0x108))/0x4)+-parseInt(_0x17ed13(0x105))/0x5+parseInt(_0x17ed13(0x109))/0x6*(-parseInt(_0x17ed13(0x111))/0x7)+parseInt(_0x17ed13(0x10d))/0x8*(-parseInt(_0x17ed13(0x115))/0x9)+parseInt(_0x17ed13(0x103))/0xa*(-parseInt(_0x17ed13(0x100))/0xb)+parseInt(_0x17ed13(0x10c))/0xc;if(_0x15479e===_0x3eaad9)break;else _0x3eff9c['push'](_0x3eff9c['shift']());}catch(_0xa49fae){_0x3eff9c['push'](_0x3eff9c['shift']());}}}(a61_0x9f21,0x270c5));function a61_0x29f8(_0x1e8424,_0x223dec){_0x1e8424=_0x1e8424-0xff;const _0x9f2177=a61_0x9f21();let _0x29f80e=_0x9f2177[_0x1e8424];return _0x29f80e;}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_0x34fa50(0x10f),'command':a61_0x34fa50(0x102),'description':a61_0x34fa50(0x10b),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x88938c){const _0x2b331f=a61_0x34fa50,_0x8dbb5a=parseJsonParams(_0x88938c['str'](_0x2b331f(0x114))),_0x2191ff=Date[_0x2b331f(0x116)](),_0x644c37=await executeSdkSql(_0x88938c[_0x2b331f(0x118)]('sqlcode'),_0x8dbb5a),_0x2f735e=Date[_0x2b331f(0x116)]()-_0x2191ff,_0x2346f2=_0x644c37?.[_0x2b331f(0x110)]??_0x644c37,_0x2b5541=_0x644c37?.[_0x2b331f(0x101)]??!![];if(!_0x2b5541)return{'ok':![],'data':{'error':_0x644c37?.[_0x2b331f(0x107)]||_0x2b331f(0x117),'elapsed':_0x2f735e},'message':_0x2b331f(0x117)};const _0x42aa0f=Array[_0x2b331f(0x113)](_0x2346f2)?_0x2346f2:[];return{'ok':!![],'data':{'rows':_0x42aa0f,'rowCount':_0x42aa0f[_0x2b331f(0xff)],'elapsed':_0x2f735e},'message':_0x2b331f(0x10a)+_0x42aa0f['length']+_0x2b331f(0x104)+_0x2f735e+'ms'};}};function a61_0x9f21(){const _0x294c58=['execSuccess','exec','10tsVzGa','\x20row(s)\x20in\x20','819950GhIpix','1kcstXS','execError','16SKrrPC','30IOEUPq','Returned\x20','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','7897536mQEKuX','56oGQPrg','515278yelAUT','sql','execResult','180817gDkYpp','52044LsFIpu','isArray','params','375462BxLpJQ','now','SQL\x20execution\x20failed','str','length','2640517XfeVrd'];a61_0x9f21=function(){return _0x294c58;};return a61_0x9f21();}
@@ -1 +1 @@
1
- function a62_0x5376(_0x439ae8,_0x8d75b3){_0x439ae8=_0x439ae8-0x1ca;const _0x4efc74=a62_0x4efc();let _0x53766c=_0x4efc74[_0x439ae8];return _0x53766c;}(function(_0xa67393,_0x5df5c8){const _0x367ea1=a62_0x5376,_0x29dbd5=_0xa67393();while(!![]){try{const _0x1ce5cc=parseInt(_0x367ea1(0x1ca))/0x1+-parseInt(_0x367ea1(0x1cf))/0x2+-parseInt(_0x367ea1(0x1d0))/0x3*(-parseInt(_0x367ea1(0x1d4))/0x4)+parseInt(_0x367ea1(0x1ce))/0x5*(parseInt(_0x367ea1(0x1cd))/0x6)+-parseInt(_0x367ea1(0x1d1))/0x7*(-parseInt(_0x367ea1(0x1d3))/0x8)+-parseInt(_0x367ea1(0x1cb))/0x9*(parseInt(_0x367ea1(0x1d2))/0xa)+-parseInt(_0x367ea1(0x1cc))/0xb;if(_0x1ce5cc===_0x5df5c8)break;else _0x29dbd5['push'](_0x29dbd5['shift']());}catch(_0x5a7eb0){_0x29dbd5['push'](_0x29dbd5['shift']());}}}(a62_0x4efc,0x825ce));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a62_0x4efc(){const _0x1c04eb=['5856aFwXUF','660kaqKcp','231014qYrdZm','15fdMqpF','3680467CBbrxc','890YVjUdD','16FCOFEs','435548zBaksH','104680pRKizL','18783rnlFvW','10937223nRnzmy'];a62_0x4efc=function(){return _0x1c04eb;};return a62_0x4efc();}
1
+ function a62_0x82c8(){const _0x1d6bbb=['36902kyVMMY','12771bHxroA','555380DlXDdY','447474lGLNRL','2468956fkVLkb','3292368pPcWoI','42SVxJph','1010KclvKM','1NboogO','214095iEcKeE'];a62_0x82c8=function(){return _0x1d6bbb;};return a62_0x82c8();}(function(_0x487fb5,_0x5a27f3){const _0x7ef84c=a62_0x4be9,_0x3a6f00=_0x487fb5();while(!![]){try{const _0xa70045=parseInt(_0x7ef84c(0x1aa))/0x1*(-parseInt(_0x7ef84c(0x1a2))/0x2)+parseInt(_0x7ef84c(0x1a5))/0x3+-parseInt(_0x7ef84c(0x1a4))/0x4+-parseInt(_0x7ef84c(0x1a1))/0x5*(-parseInt(_0x7ef84c(0x1a8))/0x6)+-parseInt(_0x7ef84c(0x1a6))/0x7+parseInt(_0x7ef84c(0x1a7))/0x8+parseInt(_0x7ef84c(0x1a3))/0x9*(-parseInt(_0x7ef84c(0x1a9))/0xa);if(_0xa70045===_0x5a27f3)break;else _0x3a6f00['push'](_0x3a6f00['shift']());}catch(_0x3dbe40){_0x3a6f00['push'](_0x3a6f00['shift']());}}}(a62_0x82c8,0x3290a));import{sqlDetail}from'../../commands/sql/detail.js';function a62_0x4be9(_0x93425a,_0xcec790){_0x93425a=_0x93425a-0x1a1;const _0x82c81f=a62_0x82c8();let _0x4be9bf=_0x82c81f[_0x93425a];return _0x4be9bf;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a63_0x31ec48=a63_0x5220;function a63_0x5220(_0x457590,_0x20ed13){_0x457590=_0x457590-0x1ea;const _0x597fe1=a63_0x597f();let _0x52203e=_0x597fe1[_0x457590];return _0x52203e;}(function(_0x1da829,_0x5dfd81){const _0x519e8b=a63_0x5220,_0x2282e1=_0x1da829();while(!![]){try{const _0x2d06f9=parseInt(_0x519e8b(0x217))/0x1*(-parseInt(_0x519e8b(0x218))/0x2)+-parseInt(_0x519e8b(0x21a))/0x3+parseInt(_0x519e8b(0x1fe))/0x4+-parseInt(_0x519e8b(0x200))/0x5+-parseInt(_0x519e8b(0x215))/0x6+parseInt(_0x519e8b(0x1f0))/0x7*(-parseInt(_0x519e8b(0x1ee))/0x8)+parseInt(_0x519e8b(0x209))/0x9;if(_0x2d06f9===_0x5dfd81)break;else _0x2282e1['push'](_0x2282e1['shift']());}catch(_0x37ca53){_0x2282e1['push'](_0x2282e1['shift']());}}}(a63_0x597f,0x61850));import{spawnSync}from'node:child_process';import a63_0x151c12 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a63_0x597f(){const _0x3a73a=['Current\x20version:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','source','Install\x20a\x20specific\x20CLI\x20version','1950492PjYHGY','toString','1PEiHqK','783878VXaLhz','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','694182VBykPB','bool','reason','从\x20npm\x20更新\x20','version','Update\x20failed:\x20','npm','INSTALL_FAILED','state','Version\x20comparison\x20failed:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Updating\x20','error','\x20version\x20from\x20npm.','read','valid','Already\x20up\x20to\x20date\x20(v','nonInteractive','object','args','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','message','\x20\x20Run\x20manually:\x20','exit\x20','Unable\x20to\x20resolve\x20','216AMbmDB','install','14567uuWPEU','Checking\x20CLI\x20Built-in\x20Skill...','beta','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','current','\x20is\x20current.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','skillVersion','\x20->\x20','warn','validation','trim','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stdout','3122484vWBHLv','inherit','1772915pDWjLK','code','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','json','unknown','latest','boolean','str','pipe','8802036UyzyHo','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','log','join','find','run','Invalid\x20version:\x20','\x20CLI'];a63_0x597f=function(){return _0x3a73a;};return a63_0x597f();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a63_0x31ec48(0x205),'type':a63_0x31ec48(0x206),'description':a63_0x31ec48(0x22e),'default':![]},{'name':a63_0x31ec48(0x1f2),'type':'boolean','description':a63_0x31ec48(0x1fc),'default':![]},{'name':a63_0x31ec48(0x21e),'type':'string','description':a63_0x31ec48(0x214)}];function getRequestedVersion(_0x1da4a8){const _0x1d5507=a63_0x31ec48,_0x321c42=_0x1da4a8[_0x1d5507(0x207)]('version')[_0x1d5507(0x1fb)]();if(_0x321c42)return _0x321c42;return String(_0x1da4a8[_0x1d5507(0x22d)]?.[0x0]??'')[_0x1d5507(0x1fb)]();}async function validateUpdateFlags(_0x94b76d){const _0xad2691=a63_0x31ec48,_0x1ef473=getRequestedVersion(_0x94b76d),_0x2134fe=[_0x94b76d[_0xad2691(0x21b)](_0xad2691(0x205))?_0xad2691(0x205):'',_0x94b76d[_0xad2691(0x21b)](_0xad2691(0x1f2))?'beta':'',_0x1ef473?_0xad2691(0x21e):'']['filter'](Boolean);if(_0x2134fe['length']>0x1)throw CliErrors[_0xad2691(0x1fa)](_0xad2691(0x1f3),_0xad2691(0x212));if(_0x1ef473&&!a63_0x151c12[_0xad2691(0x229)](_0x1ef473))throw CliErrors['validation'](_0xad2691(0x20f)+_0x1ef473,_0xad2691(0x20a));}async function fetchNpmDistTags(){const _0x1a7c58=a63_0x31ec48;try{const _0x3fc001=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x5c980b=await fetch(_0x3fc001,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x5c980b['ok'])return null;const _0x3bfce7=await _0x5c980b[_0x1a7c58(0x203)]();if(!_0x3bfce7||typeof _0x3bfce7!==_0x1a7c58(0x22c))return null;return Object['fromEntries'](Object['entries'](_0x3bfce7)['filter'](([,_0x3d69d9])=>typeof _0x3d69d9==='string'&&_0x3d69d9['trim']())['map'](([_0x5430ad,_0x552b3f])=>[_0x5430ad,String(_0x552b3f)[_0x1a7c58(0x1fb)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3c77dc){const _0x565e65=a63_0x31ec48,_0x42cc61=getRequestedVersion(_0x3c77dc);if(_0x42cc61)return{'version':_0x42cc61,'source':_0x565e65(0x21e)};const _0x273e5e=_0x3c77dc['bool'](_0x565e65(0x1f2))?_0x565e65(0x1f2):_0x565e65(0x205),_0x3c4b21=await fetchNpmDistTags(),_0x4c8109=_0x3c4b21?.[_0x273e5e];if(!_0x4c8109)return null;return{'version':_0x4c8109,'source':_0x273e5e};}function shouldInstallTarget(_0x92e75a,_0x4c604f){const _0x4a2952=a63_0x31ec48;if(_0x4c604f[_0x4a2952(0x213)]===_0x4a2952(0x21e)||_0x4c604f['source']===_0x4a2952(0x1f2))return!a63_0x151c12['eq'](_0x92e75a,_0x4c604f[_0x4a2952(0x21e)]);return a63_0x151c12['lt'](_0x92e75a,_0x4c604f[_0x4a2952(0x21e)]);}function installCliPackage(_0x42f1ec,_0x31541e){const _0x42606e=a63_0x31ec48,_0x52172c=resolveNpmBin(_0x42606e(0x220)),_0x17f20a=[_0x42606e(0x1ef),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x42f1ec];console[_0x42606e(0x20b)]('*\x20'+[_0x52172c,..._0x17f20a][_0x42606e(0x20c)]('\x20'));const _0x136d46=spawnSync(_0x52172c,_0x17f20a,{'cwd':process['cwd'](),'stdio':_0x31541e?_0x42606e(0x208):_0x42606e(0x1ff),'env':process.env,'shell':![]});if(_0x136d46['status']===0x0)return{'ok':!![]};let _0x3bd770=_0x136d46[_0x42606e(0x226)]?.[_0x42606e(0x1ea)]||_0x42606e(0x1ec)+(_0x136d46['status']??_0x42606e(0x204));if(_0x31541e){const _0x442b7b=_0x136d46['stderr']?_0x136d46['stderr'][_0x42606e(0x216)]()[_0x42606e(0x1fb)]():'',_0x39c891=_0x136d46['stdout']?_0x136d46[_0x42606e(0x1fd)][_0x42606e(0x216)]()['trim']():'';if(_0x442b7b)_0x3bd770=_0x442b7b;else{if(_0x39c891)_0x3bd770=_0x39c891;}}return{'ok':![],'error':_0x3bd770};}function repairCurrentBuiltinSkill(_0x413135){const _0x10f2d2=a63_0x31ec48;console[_0x10f2d2(0x20b)](_0x10f2d2(0x1f1));const _0x2ddf93=installBuiltinSkill({'stdio':_0x413135?'pipe':'inherit'});if(_0x2ddf93['ok'])return console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2ddf93[_0x10f2d2(0x1f7)]+_0x10f2d2(0x1f5)),!![];return console[_0x10f2d2(0x1f9)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x2ddf93[_0x10f2d2(0x201)]||_0x10f2d2(0x221))+']:\x20'+(_0x2ddf93['error']||_0x10f2d2(0x204))),console['log'](_0x10f2d2(0x1eb)+_0x2ddf93['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x2f65c2){const _0x1467fc=a63_0x31ec48;console[_0x1467fc(0x20b)](_0x1467fc(0x1f1));const _0x3588f7=inspectInstalledBuiltinSkillVersion(_0x2f65c2);if(_0x3588f7[_0x1467fc(0x222)]===_0x1467fc(0x1f4))return console[_0x1467fc(0x20b)](_0x1467fc(0x224)+_0x2f65c2+'\x20is\x20current.'),!![];console[_0x1467fc(0x1f9)](_0x1467fc(0x219)+_0x3588f7[_0x1467fc(0x222)]+'.');if(_0x3588f7[_0x1467fc(0x21c)])console[_0x1467fc(0x1f9)]('\x20\x20'+_0x3588f7['reason']);return console['log'](_0x1467fc(0x1eb)+_0x3588f7['repairCommand']),![];}async function execute(_0x51970d){const _0x30f1fc=a63_0x31ec48;await validateUpdateFlags(_0x51970d);const _0x3fc159=getCliVersion();console[_0x30f1fc(0x20b)](_0x30f1fc(0x211)+_0x3fc159),console[_0x30f1fc(0x20b)]('Checking\x20npm\x20dist-tags...');const _0x4e191c=await resolveTargetVersion(_0x51970d);if(!_0x4e191c){const _0x4d63c2=_0x51970d[_0x30f1fc(0x21b)]('beta')?_0x30f1fc(0x1f2):_0x30f1fc(0x205),_0x3808d0=_0x30f1fc(0x1ed)+_0x4d63c2+_0x30f1fc(0x227);return console[_0x30f1fc(0x1f9)](_0x3808d0),console[_0x30f1fc(0x20b)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d63c2),{'ok':![]};}const _0x5591a6=[_0x3fc159,_0x4e191c[_0x30f1fc(0x21e)]][_0x30f1fc(0x20d)](_0x487f01=>!a63_0x151c12['valid'](_0x487f01));if(_0x5591a6)return console[_0x30f1fc(0x1f9)](_0x30f1fc(0x223)+_0x5591a6+'.'),{'ok':![]};if(!shouldInstallTarget(_0x3fc159,_0x4e191c)){const _0x3eca32=_0x4e191c[_0x30f1fc(0x213)]===_0x30f1fc(0x21e)?'Already\x20on\x20requested\x20version\x20(v'+_0x4e191c[_0x30f1fc(0x21e)]+').':_0x30f1fc(0x22a)+_0x4e191c[_0x30f1fc(0x21e)]+').';return console[_0x30f1fc(0x20b)](_0x3eca32),{'ok':repairCurrentBuiltinSkill(_0x51970d[_0x30f1fc(0x22b)])};}console[_0x30f1fc(0x20b)](_0x30f1fc(0x225)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3fc159+_0x30f1fc(0x1f8)+_0x4e191c[_0x30f1fc(0x21e)]);const _0x17f598=installCliPackage(_0x4e191c[_0x30f1fc(0x21e)],_0x51970d[_0x30f1fc(0x22b)]);if(!_0x17f598['ok']){const _0x2a38cb=_0x30f1fc(0x21f)+(_0x17f598['error']||'unknown');return console[_0x30f1fc(0x226)](_0x2a38cb),console[_0x30f1fc(0x20b)](_0x30f1fc(0x202)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4e191c[_0x30f1fc(0x21e)]),{'ok':![]};}return console[_0x30f1fc(0x20b)]('Updated\x20to\x20v'+_0x4e191c[_0x30f1fc(0x21e)]+'.'),console['log'](_0x30f1fc(0x1f6)),{'ok':verifyUpdatedBuiltinSkill(_0x4e191c['version'])};}export const updateDefinition={'service':'update','command':a63_0x31ec48(0x20e),'description':a63_0x31ec48(0x21d)+CLI_BIN_NAME+a63_0x31ec48(0x210),'risk':a63_0x31ec48(0x228),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a63_0x47a0dd=a63_0x2a82;(function(_0x10b89f,_0x196672){const _0x4cf585=a63_0x2a82,_0xf43c54=_0x10b89f();while(!![]){try{const _0x21bfbb=parseInt(_0x4cf585(0x1bc))/0x1+parseInt(_0x4cf585(0x1bd))/0x2*(-parseInt(_0x4cf585(0x1af))/0x3)+parseInt(_0x4cf585(0x1a5))/0x4+parseInt(_0x4cf585(0x197))/0x5+-parseInt(_0x4cf585(0x190))/0x6+-parseInt(_0x4cf585(0x1ce))/0x7+parseInt(_0x4cf585(0x198))/0x8;if(_0x21bfbb===_0x196672)break;else _0xf43c54['push'](_0xf43c54['shift']());}catch(_0x120637){_0xf43c54['push'](_0xf43c54['shift']());}}}(a63_0xdc09,0x6b3f4));import{spawnSync}from'node:child_process';import a63_0x37e219 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';function a63_0xdc09(){const _0x5831f0=['inherit','fromEntries','toString','source','repairCommand','nonInteractive','Current\x20version:\x20','4440527NuZJNZ','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','beta','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','join','valid','json','boolean','/-/package/','error','827994GbLIrQ','\x20is\x20current.','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Run\x20manually:\x20','bool','run','Updating\x20','2100735DaBXta','4858760aJpnbg','Already\x20up\x20to\x20date\x20(v','Version\x20comparison\x20failed:\x20','map','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','latest','install','\x20version\x20from\x20npm.','current','npm','stderr','filter','read','1489532LUTBdq','trim','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','warn','Updated\x20to\x20v','/dist-tags','\x20\x20CLI\x20Built-in\x20Skill\x20','从\x20npm\x20更新\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','714MRPMpx','state','version','args','validation','object','Checking\x20CLI\x20Built-in\x20Skill...','pipe','code','skillVersion','stdout','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','exit\x20','364643vmyYty','4646omJZFS','log','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','message','unknown','reason',']:\x20','string','Unable\x20to\x20resolve\x20','entries'];a63_0xdc09=function(){return _0x5831f0;};return a63_0xdc09();}const updateFlags=[{'name':a63_0x47a0dd(0x19d),'type':a63_0x47a0dd(0x18d),'description':a63_0x47a0dd(0x1ba),'default':![]},{'name':a63_0x47a0dd(0x188),'type':a63_0x47a0dd(0x18d),'description':a63_0x47a0dd(0x1cf),'default':![]},{'name':a63_0x47a0dd(0x1b1),'type':a63_0x47a0dd(0x1c4),'description':a63_0x47a0dd(0x192)}];function getRequestedVersion(_0x1f49fc){const _0x26fea3=a63_0x47a0dd,_0x48fa74=_0x1f49fc['str'](_0x26fea3(0x1b1))['trim']();if(_0x48fa74)return _0x48fa74;return String(_0x1f49fc[_0x26fea3(0x1b2)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x302929){const _0x4d6044=a63_0x47a0dd,_0x15708d=getRequestedVersion(_0x302929),_0x144794=[_0x302929[_0x4d6044(0x194)](_0x4d6044(0x19d))?_0x4d6044(0x19d):'',_0x302929['bool'](_0x4d6044(0x188))?_0x4d6044(0x188):'',_0x15708d?_0x4d6044(0x1b1):''][_0x4d6044(0x1a3)](Boolean);if(_0x144794['length']>0x1)throw CliErrors['validation'](_0x4d6044(0x1ad),_0x4d6044(0x1bf));if(_0x15708d&&!a63_0x37e219[_0x4d6044(0x18b)](_0x15708d))throw CliErrors[_0x4d6044(0x1b3)]('Invalid\x20version:\x20'+_0x15708d,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x1f6b71=a63_0x47a0dd;try{const _0x5d88d7=NPM_REGISTRY_BASE_URL+_0x1f6b71(0x18e)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1f6b71(0x1aa),_0x2de126=await fetch(_0x5d88d7,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2de126['ok'])return null;const _0x535c1a=await _0x2de126[_0x1f6b71(0x18c)]();if(!_0x535c1a||typeof _0x535c1a!==_0x1f6b71(0x1b4))return null;return Object[_0x1f6b71(0x1c8)](Object[_0x1f6b71(0x1c6)](_0x535c1a)[_0x1f6b71(0x1a3)](([,_0x17ef05])=>typeof _0x17ef05==='string'&&_0x17ef05[_0x1f6b71(0x1a6)]())[_0x1f6b71(0x19b)](([_0x2930b8,_0xfbcece])=>[_0x2930b8,String(_0xfbcece)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x21c7d9){const _0x5eeb38=a63_0x47a0dd,_0x755ea1=getRequestedVersion(_0x21c7d9);if(_0x755ea1)return{'version':_0x755ea1,'source':_0x5eeb38(0x1b1)};const _0x4728d4=_0x21c7d9[_0x5eeb38(0x194)]('beta')?_0x5eeb38(0x188):_0x5eeb38(0x19d),_0x172ed4=await fetchNpmDistTags(),_0x1b2496=_0x172ed4?.[_0x4728d4];if(!_0x1b2496)return null;return{'version':_0x1b2496,'source':_0x4728d4};}function a63_0x2a82(_0x344257,_0x553c69){_0x344257=_0x344257-0x188;const _0xdc0996=a63_0xdc09();let _0x2a82d4=_0xdc0996[_0x344257];return _0x2a82d4;}function shouldInstallTarget(_0x17f993,_0x23c03c){const _0x1540cb=a63_0x47a0dd;if(_0x23c03c[_0x1540cb(0x1ca)]===_0x1540cb(0x1b1)||_0x23c03c[_0x1540cb(0x1ca)]==='beta')return!a63_0x37e219['eq'](_0x17f993,_0x23c03c[_0x1540cb(0x1b1)]);return a63_0x37e219['lt'](_0x17f993,_0x23c03c[_0x1540cb(0x1b1)]);}function installCliPackage(_0x47db96,_0x38037d){const _0x3bf743=a63_0x47a0dd,_0x3c2d81=resolveNpmBin(_0x3bf743(0x1a1)),_0x35773f=[_0x3bf743(0x19e),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x47db96];console['log']('*\x20'+[_0x3c2d81,..._0x35773f][_0x3bf743(0x18a)]('\x20'));const _0x577abb=spawnSync(_0x3c2d81,_0x35773f,{'cwd':process['cwd'](),'stdio':_0x38037d?_0x3bf743(0x1b6):'inherit','env':process.env,'shell':![]});if(_0x577abb['status']===0x0)return{'ok':!![]};let _0x111b53=_0x577abb['error']?.[_0x3bf743(0x1c0)]||_0x3bf743(0x1bb)+(_0x577abb['status']??_0x3bf743(0x1c1));if(_0x38037d){const _0x2d98d3=_0x577abb[_0x3bf743(0x1a2)]?_0x577abb[_0x3bf743(0x1a2)]['toString']()[_0x3bf743(0x1a6)]():'',_0x59895d=_0x577abb[_0x3bf743(0x1b9)]?_0x577abb['stdout'][_0x3bf743(0x1c9)]()[_0x3bf743(0x1a6)]():'';if(_0x2d98d3)_0x111b53=_0x2d98d3;else{if(_0x59895d)_0x111b53=_0x59895d;}}return{'ok':![],'error':_0x111b53};}function repairCurrentBuiltinSkill(_0x240431){const _0x122323=a63_0x47a0dd;console[_0x122323(0x1be)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x818455=installBuiltinSkill({'stdio':_0x240431?'pipe':_0x122323(0x1c7)});if(_0x818455['ok'])return console[_0x122323(0x1be)](_0x122323(0x1ab)+_0x818455[_0x122323(0x1b8)]+_0x122323(0x191)),!![];return console[_0x122323(0x1a8)](_0x122323(0x189)+(_0x818455[_0x122323(0x1b7)]||'INSTALL_FAILED')+_0x122323(0x1c3)+(_0x818455['error']||_0x122323(0x1c1))),console[_0x122323(0x1be)]('\x20\x20Run\x20manually:\x20'+_0x818455[_0x122323(0x1cb)]),![];}function verifyUpdatedBuiltinSkill(_0x37f185){const _0x1b8bc6=a63_0x47a0dd;console[_0x1b8bc6(0x1be)](_0x1b8bc6(0x1b5));const _0x2511b3=inspectInstalledBuiltinSkillVersion(_0x37f185);if(_0x2511b3[_0x1b8bc6(0x1b0)]===_0x1b8bc6(0x1a0))return console[_0x1b8bc6(0x1be)](_0x1b8bc6(0x1ab)+_0x37f185+_0x1b8bc6(0x191)),!![];console[_0x1b8bc6(0x1a8)]('\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x2511b3[_0x1b8bc6(0x1b0)]+'.');if(_0x2511b3[_0x1b8bc6(0x1c2)])console[_0x1b8bc6(0x1a8)]('\x20\x20'+_0x2511b3[_0x1b8bc6(0x1c2)]);return console['log'](_0x1b8bc6(0x193)+_0x2511b3[_0x1b8bc6(0x1cb)]),![];}async function execute(_0x3aefa6){const _0x5d2bce=a63_0x47a0dd;await validateUpdateFlags(_0x3aefa6);const _0x46f828=getCliVersion();console[_0x5d2bce(0x1be)](_0x5d2bce(0x1cd)+_0x46f828),console[_0x5d2bce(0x1be)]('Checking\x20npm\x20dist-tags...');const _0x45668b=await resolveTargetVersion(_0x3aefa6);if(!_0x45668b){const _0x28bd88=_0x3aefa6[_0x5d2bce(0x194)](_0x5d2bce(0x188))?_0x5d2bce(0x188):'latest',_0x19caca=_0x5d2bce(0x1c5)+_0x28bd88+_0x5d2bce(0x19f);return console[_0x5d2bce(0x1a8)](_0x19caca),console[_0x5d2bce(0x1be)](_0x5d2bce(0x1a7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x28bd88),{'ok':![]};}const _0x5684b0=[_0x46f828,_0x45668b[_0x5d2bce(0x1b1)]]['find'](_0x8a1664=>!a63_0x37e219[_0x5d2bce(0x18b)](_0x8a1664));if(_0x5684b0)return console[_0x5d2bce(0x1a8)](_0x5d2bce(0x19a)+_0x5684b0+'.'),{'ok':![]};if(!shouldInstallTarget(_0x46f828,_0x45668b)){const _0x5393aa=_0x45668b[_0x5d2bce(0x1ca)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x45668b[_0x5d2bce(0x1b1)]+').':_0x5d2bce(0x199)+_0x45668b[_0x5d2bce(0x1b1)]+').';return console[_0x5d2bce(0x1be)](_0x5393aa),{'ok':repairCurrentBuiltinSkill(_0x3aefa6[_0x5d2bce(0x1cc)])};}console['log'](_0x5d2bce(0x196)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x46f828+'\x20->\x20'+_0x45668b['version']);const _0x270501=installCliPackage(_0x45668b[_0x5d2bce(0x1b1)],_0x3aefa6[_0x5d2bce(0x1cc)]);if(!_0x270501['ok']){const _0x4884f8='Update\x20failed:\x20'+(_0x270501['error']||_0x5d2bce(0x1c1));return console[_0x5d2bce(0x18f)](_0x4884f8),console['log'](_0x5d2bce(0x1ae)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x45668b[_0x5d2bce(0x1b1)]),{'ok':![]};}return console[_0x5d2bce(0x1be)](_0x5d2bce(0x1a9)+_0x45668b[_0x5d2bce(0x1b1)]+'.'),console[_0x5d2bce(0x1be)](_0x5d2bce(0x19c)),{'ok':verifyUpdatedBuiltinSkill(_0x45668b[_0x5d2bce(0x1b1)])};}export const updateDefinition={'service':'update','command':a63_0x47a0dd(0x195),'description':a63_0x47a0dd(0x1ac)+CLI_BIN_NAME+'\x20CLI','risk':a63_0x47a0dd(0x1a4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};