@lovrabet/lovrabet-cli 2.2.2 → 2.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +3 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/diagram.js +1 -1
  47. package/lib/commands/skill/commands/install.js +1 -1
  48. package/lib/commands/skill/commands/list.js +1 -1
  49. package/lib/commands/skill/commands/push.js +1 -1
  50. package/lib/commands/skill/commands/validate.js +1 -1
  51. package/lib/commands/skill/diagram.js +1 -1
  52. package/lib/commands/skill/flags.js +1 -1
  53. package/lib/commands/skill/index.js +1 -1
  54. package/lib/commands/skill/manifest-helpers.js +1 -1
  55. package/lib/commands/skill/push-execute.js +1 -1
  56. package/lib/commands/skill/push-flow-helpers.js +1 -1
  57. package/lib/commands/skill/push-retarget.js +1 -1
  58. package/lib/commands/skill/scopes.js +1 -1
  59. package/lib/commands/skill/summary.js +1 -1
  60. package/lib/commands/skill/templates.js +1 -1
  61. package/lib/commands/skill/validate.js +1 -1
  62. package/lib/commands/sql/detail.js +1 -1
  63. package/lib/commands/sql/exec.js +1 -1
  64. package/lib/commands/sql/index.js +1 -1
  65. package/lib/commands/update.js +1 -1
  66. package/lib/commands/user-account/bind.d.ts +2 -0
  67. package/lib/commands/user-account/bind.js +1 -0
  68. package/lib/commands/user-account/index.d.ts +2 -0
  69. package/lib/commands/user-account/index.js +1 -0
  70. package/lib/commands/workspace/index.js +1 -1
  71. package/lib/config/schema.js +1 -1
  72. package/lib/constant/app.js +1 -1
  73. package/lib/constant/auth-mode.js +1 -1
  74. package/lib/constant/cli.js +1 -1
  75. package/lib/constant/defaults.js +1 -1
  76. package/lib/constant/distribution.js +1 -1
  77. package/lib/constant/domain.js +1 -1
  78. package/lib/constant/env.js +1 -1
  79. package/lib/constant/output.js +1 -1
  80. package/lib/constant/product.js +1 -1
  81. package/lib/constant/risk.js +1 -1
  82. package/lib/constant/url.js +1 -1
  83. package/lib/context.js +1 -1
  84. package/lib/core/api-client.d.ts +2 -0
  85. package/lib/core/api-client.js +1 -1
  86. package/lib/core/db-resolver.js +1 -1
  87. package/lib/core/sdk-client.js +1 -1
  88. package/lib/errors.js +1 -1
  89. package/lib/framework/build-all-flags.js +1 -1
  90. package/lib/framework/dryrun.js +1 -1
  91. package/lib/framework/flags.js +1 -1
  92. package/lib/framework/help.js +1 -1
  93. package/lib/framework/index.js +1 -1
  94. package/lib/framework/output.js +1 -1
  95. package/lib/framework/preparse.js +1 -1
  96. package/lib/framework/rate-limit.js +1 -1
  97. package/lib/framework/raw-flags.js +1 -1
  98. package/lib/framework/response.js +1 -1
  99. package/lib/framework/runner-confirmation.js +1 -1
  100. package/lib/framework/runner-error.js +1 -1
  101. package/lib/framework/runner.js +1 -1
  102. package/lib/framework/schema-export.js +1 -1
  103. package/lib/framework/service-order.js +1 -1
  104. package/lib/framework/types.js +1 -1
  105. package/lib/generated/build-info.d.ts +4 -4
  106. package/lib/generated/build-info.js +1 -1
  107. package/lib/help.js +1 -1
  108. package/lib/postinstall.js +1 -1
  109. package/lib/runtime/confirmation.js +1 -1
  110. package/lib/runtime/event.js +1 -1
  111. package/lib/runtime/index.js +1 -1
  112. package/lib/runtime/queue.js +1 -1
  113. package/lib/runtime/resolve.js +1 -1
  114. package/lib/skills/builtin-skill.js +1 -1
  115. package/lib/skills/npx-skills-add.js +1 -1
  116. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  117. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  118. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  119. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  120. package/lib/skills/runtime-skill-sync/links.js +1 -1
  121. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  122. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  123. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  124. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  125. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  126. package/lib/skills/runtime-skill-sync/push.js +1 -1
  127. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  128. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  129. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  130. package/lib/skills/runtime-skill-sync.js +1 -1
  131. package/lib/skills/skill-presence.js +1 -1
  132. package/lib/utils/apply-jq-filter.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/lossless-json.js +1 -1
  135. package/lib/utils/params.js +1 -1
  136. package/lib/utils/platform.js +1 -1
  137. package/lib/utils/update-notice.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/write-cli-side-channel.js +1 -1
  140. package/package.json +1 -1
  141. package/skills/lovrabet/SKILL.md +7 -3
  142. package/skills/lovrabet/guides/sql-and-bff-workflow.md +5 -0
  143. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +1 -1
  144. package/skills/lovrabet/references/lovrabet-service-tree.md +2 -0
  145. package/skills/lovrabet/references/lovrabet-sql-workflow.md +4 -1
  146. package/skills/lovrabet/references/lovrabet-user-account.md +46 -0
  147. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
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
+ function a50_0x2a5f(_0x17932b,_0x1d168f){_0x17932b=_0x17932b-0xd1;const _0x22f9c7=a50_0x22f9();let _0x2a5fe2=_0x22f9c7[_0x17932b];return _0x2a5fe2;}const a50_0x138259=a50_0x2a5f;(function(_0x2a60ec,_0x445128){const _0x47e88f=a50_0x2a5f,_0x20130d=_0x2a60ec();while(!![]){try{const _0x17d76d=-parseInt(_0x47e88f(0xde))/0x1*(-parseInt(_0x47e88f(0xf2))/0x2)+parseInt(_0x47e88f(0xf0))/0x3*(-parseInt(_0x47e88f(0xd4))/0x4)+-parseInt(_0x47e88f(0xf5))/0x5*(-parseInt(_0x47e88f(0xe7))/0x6)+-parseInt(_0x47e88f(0xd8))/0x7+parseInt(_0x47e88f(0xe1))/0x8*(-parseInt(_0x47e88f(0xff))/0x9)+parseInt(_0x47e88f(0xec))/0xa*(parseInt(_0x47e88f(0xdb))/0xb)+parseInt(_0x47e88f(0xf9))/0xc*(parseInt(_0x47e88f(0xdc))/0xd);if(_0x17d76d===_0x445128)break;else _0x20130d['push'](_0x20130d['shift']());}catch(_0x5ce1f9){_0x20130d['push'](_0x20130d['shift']());}}}(a50_0x22f9,0x9a955));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a50_0x138259(0xd7),'type':a50_0x138259(0xe0),'description':a50_0x138259(0xea)};export const SCOPE_FLAG={'name':a50_0x138259(0xe5),'type':a50_0x138259(0xe0),'description':a50_0x138259(0xf8),'enum':[a50_0x138259(0xf1),a50_0x138259(0xfb),a50_0x138259(0xd1)]};export const PUSH_SCOPE_FLAG={'name':a50_0x138259(0xe5),'type':a50_0x138259(0xe0),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a50_0x138259(0xfb),'enum':[a50_0x138259(0xfb),'company']};export const LIST_SCOPE_FLAG={'name':a50_0x138259(0xe5),'type':a50_0x138259(0xe0),'description':a50_0x138259(0xe9),'enum':['all','personal',a50_0x138259(0xd1)]};export const LOCAL_FLAG={'name':a50_0x138259(0xeb),'type':a50_0x138259(0xd9),'description':a50_0x138259(0xf7)};export const DIR_FLAG={'name':'dir','type':a50_0x138259(0xe0),'required':!![],'description':a50_0x138259(0xed)};export const DIAGRAM_FILE_FLAG={'name':a50_0x138259(0xd3),'type':a50_0x138259(0xe0),'required':!![],'description':a50_0x138259(0xfa)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0x138259(0xda),'type':'string','required':!![],'description':a50_0x138259(0xe6)};export const DIAGRAM_VERSION_FLAG={'name':'version','type':a50_0x138259(0xe0),'required':!![],'description':a50_0x138259(0xe8)};export const DIAGRAM_SCOPE_FLAG={'name':a50_0x138259(0xe5),'type':a50_0x138259(0xe0),'required':!![],'enum':[a50_0x138259(0xfb),a50_0x138259(0xd1)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':a50_0x138259(0xf4),'type':'string','required':!![],'description':a50_0x138259(0xfd),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a50_0x138259(0xee),'type':a50_0x138259(0xdd),'required':!![],'description':a50_0x138259(0xe2)};export const CREATE_NAME_FLAG={'name':a50_0x138259(0xe3),'type':a50_0x138259(0xe0),'required':!![],'description':a50_0x138259(0xf3),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a50_0x138259(0xef)}};export const TYPE_FLAG={'name':a50_0x138259(0xd6),'type':a50_0x138259(0xe0),'description':a50_0x138259(0xd2),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0x138259(0xf6),'type':a50_0x138259(0xe0),'description':a50_0x138259(0x100),'default':DEFAULT_SKILL_TARGET};function a50_0x22f9(){const _0x1ba459=['number','26645hPklai','project','string','136mtnRIH','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','name','strict','scope','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','1024398DTkGNX','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','local','166990cOZAKX','Local\x20Skill\x20directory\x20containing\x20SKILL.md','expected-diagram-revision','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','3UYoSSz','all','18mmbHsp','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','source-fingerprint','10YsFOIW','target','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','12Bssgvy','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','personal','confirm-warnings','Server-reported\x20SkillVersion\x20source\x20fingerprint','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','647739sHETZm','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','company','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','diagram-file','556060YbUBgf','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','type','code','2803059IDuYPI','boolean','skill-code','330JVRtOH','17080583SbXMVJ'];a50_0x22f9=function(){return _0x1ba459;};return a50_0x22f9();}export const FORCE_FLAG={'name':'force','type':a50_0x138259(0xd9),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':a50_0x138259(0xdf),'type':a50_0x138259(0xd9),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a50_0x138259(0xfc),'type':'boolean','description':a50_0x138259(0xd5)};export const STRICT_FLAG={'name':a50_0x138259(0xe4),'type':'boolean','description':a50_0x138259(0xfe)};
@@ -1 +1 @@
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
+ (function(_0x4bf0dc,_0x13b683){const _0xf95721=a51_0x221e,_0x5b1036=_0x4bf0dc();while(!![]){try{const _0x56471b=parseInt(_0xf95721(0x107))/0x1*(parseInt(_0xf95721(0x10e))/0x2)+parseInt(_0xf95721(0x10b))/0x3*(-parseInt(_0xf95721(0x108))/0x4)+-parseInt(_0xf95721(0x10a))/0x5*(-parseInt(_0xf95721(0x10c))/0x6)+parseInt(_0xf95721(0x111))/0x7*(parseInt(_0xf95721(0x10d))/0x8)+parseInt(_0xf95721(0x109))/0x9+-parseInt(_0xf95721(0x110))/0xa*(parseInt(_0xf95721(0x112))/0xb)+-parseInt(_0xf95721(0x10f))/0xc;if(_0x56471b===_0x13b683)break;else _0x5b1036['push'](_0x5b1036['shift']());}catch(_0x21fa94){_0x5b1036['push'](_0x5b1036['shift']());}}}(a51_0x645f,0x95041));import{createCommand}from'./commands/create.js';function a51_0x645f(){const _0x512a37=['16HmcnzM','8733348fzHwFX','2300YXkPFg','274587Yvuufk','8988wGuiNX','4797216hUqURt','37564uewnYF','19890852mPnkXX','3970fUZAYv','7IwfhrZ','8866XMmNph','37cqhfLM'];a51_0x645f=function(){return _0x512a37;};return a51_0x645f();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a51_0x221e(_0x4cc424,_0x33eab2){_0x4cc424=_0x4cc424-0x107;const _0x645fdb=a51_0x645f();let _0x221e6a=_0x645fdb[_0x4cc424];return _0x221e6a;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
@@ -1 +1 @@
1
- (function(_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
+ function a52_0x4c9a(){var _0x296e4e=['6116214iQiHvG','isArray','456088pNUzgM','ossPath','length','5135748ZGbTnA','7qJwCYC','object','path','files','9458640XfOBaN','4921670BQUSIa','2950NrKBSF','string','SKILL.md','2QbWgKX','2390205hSHnPu','87876pwkRvF'];a52_0x4c9a=function(){return _0x296e4e;};return a52_0x4c9a();}(function(_0x4114b7,_0x493091){var _0x4d1398=a52_0x4fde,_0x4a66ed=_0x4114b7();while(!![]){try{var _0xb7c215=-parseInt(_0x4d1398(0x1bf))/0x1+parseInt(_0x4d1398(0x1ba))/0x2*(parseInt(_0x4d1398(0x1bb))/0x3)+-parseInt(_0x4d1398(0x1b0))/0x4+parseInt(_0x4d1398(0x1b6))/0x5+parseInt(_0x4d1398(0x1bd))/0x6*(-parseInt(_0x4d1398(0x1b1))/0x7)+-parseInt(_0x4d1398(0x1b5))/0x8+parseInt(_0x4d1398(0x1bc))/0x9*(parseInt(_0x4d1398(0x1b7))/0xa);if(_0xb7c215===_0x493091)break;else _0x4a66ed['push'](_0x4a66ed['shift']());}catch(_0x538308){_0x4a66ed['push'](_0x4a66ed['shift']());}}}(a52_0x4c9a,0xafb6d));function a52_0x4fde(_0x591128,_0x4bcc0b){_0x591128=_0x591128-0x1b0;var _0x4c9adf=a52_0x4c9a();var _0x4fdeca=_0x4c9adf[_0x591128];return _0x4fdeca;}export function isPackageBackedManifest(_0x48d0a5){var _0x2cbae9=a52_0x4fde;return!!_0x48d0a5&&typeof _0x48d0a5===_0x2cbae9(0x1b2)&&!Array[_0x2cbae9(0x1be)](_0x48d0a5)&&typeof _0x48d0a5[_0x2cbae9(0x1c0)]===_0x2cbae9(0x1b8)&&_0x48d0a5['ossPath'][_0x2cbae9(0x1c1)]>0x0&&Array[_0x2cbae9(0x1be)](_0x48d0a5[_0x2cbae9(0x1b4)]);}export function isMultiFileManifest(_0x754bad){var _0x2413ea=a52_0x4fde;return!!_0x754bad&&typeof _0x754bad===_0x2413ea(0x1b2)&&!Array['isArray'](_0x754bad)&&Array['isArray'](_0x754bad[_0x2413ea(0x1b4)])&&_0x754bad[_0x2413ea(0x1b4)]['some'](_0x51bcdb=>_0x51bcdb[_0x2413ea(0x1b3)]!==_0x2413ea(0x1b9));}
@@ -1 +1 @@
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
+ (function(_0x2f55f4,_0x109d48){const _0x19cc80=a53_0x1852,_0x3b015e=_0x2f55f4();while(!![]){try{const _0x362b3a=parseInt(_0x19cc80(0x1fe))/0x1+parseInt(_0x19cc80(0x1f0))/0x2+parseInt(_0x19cc80(0x1df))/0x3*(parseInt(_0x19cc80(0x1d7))/0x4)+-parseInt(_0x19cc80(0x1e0))/0x5*(-parseInt(_0x19cc80(0x1e2))/0x6)+-parseInt(_0x19cc80(0x1d6))/0x7+-parseInt(_0x19cc80(0x200))/0x8*(-parseInt(_0x19cc80(0x1d1))/0x9)+-parseInt(_0x19cc80(0x1f6))/0xa*(parseInt(_0x19cc80(0x1e1))/0xb);if(_0x362b3a===_0x109d48)break;else _0x3b015e['push'](_0x3b015e['shift']());}catch(_0x127394){_0x3b015e['push'](_0x3b015e['shift']());}}}(a53_0x1263,0xd3424));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';function a53_0x1263(){const _0x14f3b3=['dir','/publish/validate','\x20has\x20scope=\x22','NAMESPACE_ONLY','str','errors','identical','871831rXdshz','Updated\x20personal\x20Skill\x20','872tQGokh','diagramValidated','appcode','company','appCode','scope','publishInput','input','trim','frontmatterDisplayName','valid','4077KcoYDQ','submitted','status','Submitted\x20company\x20Skill\x20','../../skills/runtime-skill-sync.js','9072455VZzeDK','5203932PFNfFc','confirmWarnings','unknown','warnings','personal','resolvedVersion','files','../../core/api-client.js','3ztopra','5xiYXXY','3784xsKBKJ','5564112rheZNA','Created\x20personal\x20Skill\x20','resolvedSlug','bool','diagram-file','(unknown)','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','\x20for\x20review','authRequired','/api/cli/v1/skills/','savedSkill','skillCode','\x20version\x20','payload','2944252zhnPzJ','confirm-warnings','\x20Skill\x20','validation','POST','PRIVATE','71520OxiAFs'];a53_0x1263=function(){return _0x14f3b3;};return a53_0x1263();}import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';function a53_0x1852(_0x37ae8d,_0x1a936a){_0x37ae8d=_0x37ae8d-0x1ca;const _0x126316=a53_0x1263();let _0x185242=_0x126316[_0x37ae8d];return _0x185242;}export async function skillPushDryRun(_0x187bbb){const _0x384664=a53_0x1852,{getRuntimeSkillByCode:_0x947754,validateRuntimeSkillPublish:_0x49ad6a}=await import(_0x384664(0x1de)),{readPushDirectory:_0xe884f,resolvePushDirectoryIdentity:_0x3bcd66}=await import(_0x384664(0x1d5));if(!_0x187bbb['accessKey'])throw CliErrors[_0x384664(0x1ea)]();const _0x1769bb=resolvePushScope(_0x187bbb),_0x5828a7=validateSkillDirectory(_0x187bbb[_0x384664(0x1fb)]('dir'));throwIfSkillValidationFailed(_0x5828a7);const {diagram:_0x44cb29,sourceFilePath:_0xa3fcfe}=await readRequiredSkillDiagramInput(_0x187bbb['str'](_0x384664(0x1e6))),_0x3cf365=diagramPackageExclusion(_0xa3fcfe),_0x499f9d=_0x3bcd66(_0x5828a7['dir'],_0x187bbb[_0x384664(0x1ca)],remoteFirstMetadataOptions()),_0x511bac=await _0x947754(_0x187bbb[_0x384664(0x1ca)],_0x499f9d[_0x384664(0x1ed)]);throwIfBuiltinPushTarget(_0x511bac);if(_0x1769bb==='company'){const _0x47dc2b=_0xe884f(_0x5828a7[_0x384664(0x1f7)],_0x187bbb[_0x384664(0x1ca)],{...remoteMissingCompanyReadOptions(),..._0x3cf365}),_0x53913f=await _0x49ad6a(_0x187bbb[_0x384664(0x1ca)],withDiagram(_0x47dc2b[_0x384664(0x1cd)],_0x44cb29),{'visibility':'NAMESPACE_ONLY'});return{'method':'POST','url':_0x384664(0x1eb)+_0x187bbb[_0x384664(0x1ca)]+'/publish/validate','body':{'skillCode':_0x47dc2b[_0x384664(0x1ed)],'visibility':_0x384664(0x1fa),'valid':_0x53913f[_0x384664(0x1d0)],'errors':_0x53913f[_0x384664(0x1fc)],'warnings':_0x53913f['warnings'],'resolvedSlug':_0x53913f[_0x384664(0x1e4)],'resolvedVersion':_0x53913f[_0x384664(0x1dc)],'diagramValidated':_0x53913f[_0x384664(0x201)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x511bac&&_0x511bac['scope']!==_0x384664(0x1db))throw CliErrors[_0x384664(0x1f3)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x499f9d[_0x384664(0x1ed)]+_0x384664(0x1f9)+(_0x511bac[_0x384664(0x1cb)]??_0x384664(0x1d9))+'\x22.');const _0x5c70e1=_0xe884f(_0x5828a7[_0x384664(0x1f7)],_0x187bbb['appCode'],{..._0x511bac?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x3cf365}),_0x4014e7=await _0x49ad6a(_0x187bbb[_0x384664(0x1ca)],withDiagram(_0x5c70e1[_0x384664(0x1cd)],_0x44cb29),{'visibility':_0x384664(0x1f5)});return{'method':_0x384664(0x1f4),'url':_0x384664(0x1eb)+_0x187bbb['appCode']+_0x384664(0x1f8),'body':{'skillCode':_0x5c70e1[_0x384664(0x1ed)],'visibility':'PRIVATE','valid':_0x4014e7[_0x384664(0x1d0)],'errors':_0x4014e7[_0x384664(0x1fc)],'warnings':_0x4014e7[_0x384664(0x1da)],'resolvedSlug':_0x4014e7['resolvedSlug'],'resolvedVersion':_0x4014e7[_0x384664(0x1dc)],'diagramValidated':_0x4014e7[_0x384664(0x201)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x6dcfb4){const _0x2afed9=a53_0x1852,{createPersonalRuntimeSkill:_0x571b69,downloadRuntimeSkillPackage:_0x297b27,getRuntimeSkillByCode:_0x1a3661,publishCompanyRuntimeSkill:_0x4b306b,updatePersonalRuntimeSkill:_0x39f536,validateRuntimeSkillPublish:_0x35f90e}=await import(_0x2afed9(0x1de)),{verifyRuntimeSkillPackage:_0x500a06,verifyRuntimeSkillBundle:_0xe6d87f,readPushDirectory:_0x517004,refreshPushDirectoryMetadataFromRemote:_0x5d2c4c,recordPushedRuntimeSkill:_0x32b7d9,resolvePushDirectoryIdentity:_0x4363a7}=await import(_0x2afed9(0x1d5));if(!_0x6dcfb4['accessKey'])throw CliErrors[_0x2afed9(0x1ea)]();const _0x3adf40=resolvePushScope(_0x6dcfb4),_0x2880d0=_0x6dcfb4[_0x2afed9(0x1e5)](_0x2afed9(0x1f1))||_0x6dcfb4[_0x2afed9(0x1e5)](_0x2afed9(0x1d8)),_0xeac17d=validateSkillDirectory(_0x6dcfb4[_0x2afed9(0x1fb)](_0x2afed9(0x1f7)));throwIfSkillValidationFailed(_0xeac17d);const {diagram:_0xce232b,sourceFilePath:_0x4ea691}=await readRequiredSkillDiagramInput(_0x6dcfb4[_0x2afed9(0x1fb)]('diagram-file')),_0x495d56=diagramPackageExclusion(_0x4ea691),_0xde61a1=_0xeac17d['dir'];let _0x1c5aab;if(_0x3adf40==='company'){const _0x1ab713=_0x4363a7(_0xde61a1,_0x6dcfb4[_0x2afed9(0x1ca)],remoteFirstMetadataOptions()),_0x341db0=await _0x1a3661(_0x6dcfb4[_0x2afed9(0x1ca)],_0x1ab713[_0x2afed9(0x1ed)]);throwIfBuiltinPushTarget(_0x341db0);if(_0x341db0)_0x5d2c4c(_0xde61a1,_0x341db0,_0x6dcfb4[_0x2afed9(0x1ca)]);const _0x591ed4=_0x517004(_0xde61a1,_0x6dcfb4[_0x2afed9(0x1ca)],{..._0x341db0?{'targetScope':_0x2afed9(0x203),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x495d56});_0x1c5aab={'scope':'company','payload':_0x591ed4,'publishInput':withDiagram(_0x591ed4['input'],_0xce232b),'remoteForPreflight':_0x341db0,'warnings':[]};}else{const _0x5c282c=_0x6dcfb4[_0x2afed9(0x1fb)](_0x2afed9(0x202))[_0x2afed9(0x1ce)](),_0x2ec6a5=Boolean(_0x5c282c),_0x14cfbf=allowRetargetArgs(_0x2ec6a5),_0xc1b4ef=_0x4363a7(_0xde61a1,_0x6dcfb4['appCode'],{...remoteFirstMetadataOptions(),..._0x14cfbf[0x0]}),_0x5bf45c=await _0x1a3661(_0x6dcfb4[_0x2afed9(0x1ca)],_0xc1b4ef[_0x2afed9(0x1ed)]);throwIfBuiltinPushTarget(_0x5bf45c);if(_0x5bf45c){if(_0x5bf45c[_0x2afed9(0x1cb)]!=='personal'){if(_0x2ec6a5)throw CliErrors[_0x2afed9(0x1f3)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0xc1b4ef[_0x2afed9(0x1ed)]+_0x2afed9(0x1f9)+(_0x5bf45c['scope']??_0x2afed9(0x1d9))+'\x22.');_0x5d2c4c(_0xde61a1,_0x5bf45c,_0x6dcfb4['appCode']);}else!_0x2ec6a5&&_0x5d2c4c(_0xde61a1,_0x5bf45c,_0x6dcfb4['appCode']);}const _0x151ee5=_0x517004(_0xde61a1,_0x6dcfb4[_0x2afed9(0x1ca)],{..._0x5bf45c?remotePersonalReadOptions(_0x2ec6a5,_0x14cfbf[0x0]):remoteMissingPersonalReadOptions(_0x14cfbf[0x0]),..._0x495d56}),_0xe1c6a3=_0x5bf45c?.[_0x2afed9(0x1cb)]===_0x2afed9(0x1db)&&_0x5bf45c[_0x2afed9(0x1ed)]===_0x151ee5[_0x2afed9(0x1ed)]?_0x5bf45c:undefined,_0x1a877a=_0x2ec6a5&&_0xe1c6a3?withRetargetExistingMetadata(_0x151ee5[_0x2afed9(0x1cd)],_0xe1c6a3,{'preferInputSkillName':Boolean(_0x151ee5[_0x2afed9(0x1cf)])}):_0x151ee5[_0x2afed9(0x1cd)],_0x530e29=_0x2ec6a5?buildRetargetWarning(_0xc1b4ef['metadata'],_0x6dcfb4[_0x2afed9(0x1ca)]):[];_0x1c5aab={'scope':'personal','payload':_0x151ee5,'publishInput':withDiagram(_0x1a877a,_0xce232b),'remoteForPreflight':_0xe1c6a3,'existing':_0xe1c6a3,'warnings':[..._0xeac17d[_0x2afed9(0x1da)],..._0x530e29]};}const _0x39f556=await runRemoteContentPreflight({'scope':_0x1c5aab['scope'],'remote':_0x1c5aab['remoteForPreflight'],'publishInput':_0x1c5aab[_0x2afed9(0x1cc)],'skillCode':_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)],'appCode':_0x6dcfb4['appCode'],'downloadRuntimeSkillPackage':_0x297b27,'verifyRuntimeSkillBundle':_0xe6d87f});if(_0x39f556[_0x2afed9(0x1d3)]===_0x2afed9(0x1fd))return _0x1c5aab['scope']===_0x2afed9(0x203)?_0x32b7d9(_0xde61a1,_0x39f556[_0x2afed9(0x1ec)],_0x6dcfb4[_0x2afed9(0x1ca)],{'scope':_0x2afed9(0x203)}):_0x32b7d9(_0xde61a1,_0x39f556[_0x2afed9(0x1ec)],_0x6dcfb4[_0x2afed9(0x1ca)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x39f556[_0x2afed9(0x1ec)]),'scope':_0x1c5aab[_0x2afed9(0x1cb)],..._0x1c5aab[_0x2afed9(0x1cb)]===_0x2afed9(0x1db)?{'warnings':_0x1c5aab[_0x2afed9(0x1da)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x1c5aab[_0x2afed9(0x1cb)])+_0x2afed9(0x1f2)+_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)]+_0x2afed9(0x1e8)};if(_0x1c5aab[_0x2afed9(0x1cb)]===_0x2afed9(0x203)){const _0x6b3877=await _0x35f90e(_0x6dcfb4[_0x2afed9(0x1ca)],_0x1c5aab[_0x2afed9(0x1cc)],{'visibility':_0x2afed9(0x1fa)});throwIfPublishValidationFailed(_0x2afed9(0x203),_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)],_0x6b3877),throwIfUnconfirmedPublishWarnings('company',_0x1c5aab[_0x2afed9(0x1ef)]['skillCode'],_0x6b3877[_0x2afed9(0x1da)],_0x2880d0);const _0x565366=await _0x4b306b(_0x6dcfb4[_0x2afed9(0x1ca)],_0x1c5aab[_0x2afed9(0x1cc)],{'confirmWarnings':_0x2880d0});return _0x32b7d9(_0xde61a1,{..._0x565366,'files':_0x1c5aab[_0x2afed9(0x1cc)][_0x2afed9(0x1dd)]},_0x6dcfb4[_0x2afed9(0x1ca)],{'scope':_0x2afed9(0x203)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x565366),'scope':_0x2afed9(0x203),'reviewState':_0x2afed9(0x1d2),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x6b3877[_0x2afed9(0x1da)]}},'message':_0x2afed9(0x1d4)+_0x1c5aab['payload'][_0x2afed9(0x1ed)]+_0x2afed9(0x1ee)+(_0x565366['version']??_0x2afed9(0x1e7))+_0x2afed9(0x1e9)};}const _0xdd6559=await _0x35f90e(_0x6dcfb4[_0x2afed9(0x1ca)],_0x1c5aab[_0x2afed9(0x1cc)],{'visibility':_0x2afed9(0x1f5)});throwIfPublishValidationFailed(_0x2afed9(0x1db),_0x1c5aab[_0x2afed9(0x1ef)]['skillCode'],_0xdd6559),throwIfUnconfirmedPublishWarnings('personal',_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)],_0xdd6559[_0x2afed9(0x1da)],_0x2880d0);const _0x4145fe={'confirmWarnings':_0x2880d0},_0x391270=_0x1c5aab['existing']?await _0x39f536(_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)],_0x6dcfb4['appCode'],_0x1c5aab[_0x2afed9(0x1cc)],_0x4145fe):await _0x571b69(_0x6dcfb4[_0x2afed9(0x1ca)],_0x1c5aab['publishInput'],_0x4145fe);let _0xb52ce2=_0x391270;if(isMultiFileManifest(_0x1c5aab['publishInput'][_0x2afed9(0x1dd)])){const _0x3d218b=await _0x297b27(_0x2afed9(0x1db),_0x391270[_0x2afed9(0x1ed)]||_0x1c5aab['payload'][_0x2afed9(0x1ed)],_0x6dcfb4[_0x2afed9(0x1ca)]);_0xe6d87f(_0x1c5aab[_0x2afed9(0x1cc)]['files'],_0x3d218b),_0xb52ce2={..._0x391270,'files':_0x1c5aab[_0x2afed9(0x1cc)][_0x2afed9(0x1dd)]};}else{if(isPackageBackedManifest(_0x391270[_0x2afed9(0x1dd)])){const _0x2cf164=await _0x297b27(_0x2afed9(0x1db),_0x391270[_0x2afed9(0x1ed)]||_0x1c5aab[_0x2afed9(0x1ef)]['skillCode'],_0x6dcfb4[_0x2afed9(0x1ca)]);_0x500a06(_0x391270['files'],_0x2cf164);}}return _0x32b7d9(_0xde61a1,_0xb52ce2,_0x6dcfb4[_0x2afed9(0x1ca)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x391270),'warnings':_0x1c5aab[_0x2afed9(0x1da)],'validation':{'warnings':_0xdd6559['warnings']},'diagramBound':!![]},'message':_0x1c5aab['existing']?_0x2afed9(0x1ff)+_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)]:_0x2afed9(0x1e3)+_0x1c5aab[_0x2afed9(0x1ef)][_0x2afed9(0x1ed)]};}function scopeLabel(_0x328546){const _0x11a481=a53_0x1852;return _0x328546===_0x11a481(0x203)?'Company':'Personal';}function withDiagram(_0x221908,_0x5cc2d9){return{..._0x221908,'diagram':_0x5cc2d9};}function diagramPackageExclusion(_0xeb1134){return _0xeb1134?{'excludedFilePaths':[_0xeb1134]}:{};}
@@ -1 +1 @@
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
+ (function(_0x1e9a85,_0xbf3f95){const _0x366a96=a54_0x30c1,_0x17b768=_0x1e9a85();while(!![]){try{const _0x1a9dbf=-parseInt(_0x366a96(0xb9))/0x1+-parseInt(_0x366a96(0xbb))/0x2*(parseInt(_0x366a96(0xc3))/0x3)+-parseInt(_0x366a96(0xd0))/0x4*(-parseInt(_0x366a96(0xcd))/0x5)+parseInt(_0x366a96(0xe6))/0x6*(-parseInt(_0x366a96(0xe0))/0x7)+parseInt(_0x366a96(0xbf))/0x8*(-parseInt(_0x366a96(0xc6))/0x9)+-parseInt(_0x366a96(0xd8))/0xa*(parseInt(_0x366a96(0xda))/0xb)+parseInt(_0x366a96(0xdf))/0xc;if(_0x1a9dbf===_0xbf3f95)break;else _0x17b768['push'](_0x17b768['shift']());}catch(_0x95bcf2){_0x17b768['push'](_0x17b768['shift']());}}}(a54_0x1310,0x99b25));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3eef86){const _0x59c55a=a54_0x30c1,_0x5c58ee=_0x3eef86['str'](_0x59c55a(0xca))||_0x59c55a(0xe7);if(_0x5c58ee===_0x59c55a(0xe7)||_0x5c58ee==='company')return _0x5c58ee;throw CliErrors[_0x59c55a(0xc8)](_0x59c55a(0xe9)+_0x5c58ee+'\x22.');}export function allowRetargetArgs(_0x126db1){return _0x126db1?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x5af369=a54_0x30c1;return{'targetScope':_0x5af369(0xd3),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x541948={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x541948};}function a54_0x30c1(_0x3dfc3b,_0x11fecb){_0x3dfc3b=_0x3dfc3b-0xb9;const _0x1310ea=a54_0x1310();let _0x30c112=_0x1310ea[_0x3dfc3b];return _0x30c112;}export function remotePersonalReadOptions(_0x52944b,_0x4f73fd={}){return{'ignoreInvalidMetadata':!![],..._0x52944b?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4f73fd};}export function throwIfBuiltinPushTarget(_0xcec569){const _0xc108ff=a54_0x30c1;if(_0xcec569?.[_0xc108ff(0xca)]!==_0xc108ff(0xd1))return;throw CliErrors['validation'](_0xc108ff(0xe8)+(_0xcec569[_0xc108ff(0xce)]??_0xc108ff(0xe5))+_0xc108ff(0xc1),_0xc108ff(0xe1));}export function throwIfPublishValidationFailed(_0xdc6682,_0x143cab,_0x5c7f26){const _0x5f08bb=a54_0x30c1;if(_0x5c7f26['errors'][_0x5f08bb(0xc0)]===0x0&&(_0x5c7f26[_0x5f08bb(0xe2)]||_0x5c7f26['warnings'][_0x5f08bb(0xc0)]>0x0))return;const _0x5b2162=_0x5c7f26['errors'][_0x5f08bb(0xc0)]>0x0?_0x5c7f26[_0x5f08bb(0xcc)][_0x5f08bb(0xd6)](';\x20'):_0x5f08bb(0xd9),_0x276484=_0xdc6682==='company'?_0x5f08bb(0xd2):_0x5f08bb(0xc9);throw CliErrors[_0x5f08bb(0xc8)](_0x276484+_0x5f08bb(0xbe)+_0x143cab+'.',_0x5b2162);}export function throwIfUnconfirmedPublishWarnings(_0x1700d7,_0x23271b,_0x21e191,_0x319f6c){const _0x5c54a1=a54_0x30c1;if(_0x21e191[_0x5c54a1(0xc0)]===0x0||_0x319f6c)return;const _0x45f4df=_0x1700d7===_0x5c54a1(0xd3)?_0x5c54a1(0xd2):_0x5c54a1(0xc9);throw CliErrors['validation'](_0x45f4df+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x23271b+'.',[_0x5c54a1(0xe4),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x5c54a1(0xcf),'Warnings:\x20'+_0x21e191[_0x5c54a1(0xd6)](';\x20')][_0x5c54a1(0xd6)]('\x20'));}function a54_0x1310(){const _0xecfd22=['190eEHlaX','SkillHub\x20validation\x20returned\x20invalid.','393998YmelGM','version','content','publishInput','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','56196060ecdoMg','2874459aoMels','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','valid','not-applicable','Review\x20each\x20warning\x20before\x20continuing.','(unknown)','18wmCzhB','personal','Builtin\x20Skill\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','703448LGBxJi','verifyRuntimeSkillBundle','1491722BIdFTf','identical','Local\x20Skill\x20metadata\x20appCode\x20','\x20Skill\x20push\x20validation\x20failed\x20for\x20','16EvNpQQ','length','\x20cannot\x20be\x20pushed.','remote','3noNvCD','appCode','skill-metadata-appcode-retargeted','3713751TKlTVY','files','validation','Personal','scope','different','errors','83485fcptGp','skillCode','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','32Lmqjoz','builtin','Company','company','\x20after\x20successful\x20push.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','join','lovrabet.skill.json'];a54_0x1310=function(){return _0xecfd22;};return a54_0x1310();}export function buildRetargetWarning(_0x45bc43,_0x55f658){const _0x4805ea=a54_0x30c1;if(!_0x45bc43?.['appCode']||_0x45bc43[_0x4805ea(0xc4)]===_0x55f658)return[];return[{'level':'warning','ruleId':_0x4805ea(0xc5),'file':_0x4805ea(0xd7),'message':_0x4805ea(0xbd)+_0x45bc43[_0x4805ea(0xc4)]+_0x4805ea(0xde)+_0x55f658+_0x4805ea(0xd4),'suggestion':_0x4805ea(0xd5)}];}export async function runRemoteContentPreflight(_0x95df94){const _0x2136aa=a54_0x30c1;if(!_0x95df94[_0x2136aa(0xc2)]||_0x95df94[_0x2136aa(0xc2)][_0x2136aa(0xca)]!==_0x95df94[_0x2136aa(0xca)]||!_0x95df94['publishInput']['files'])return{'status':_0x2136aa(0xe3)};const _0x58ca3e=_0x95df94[_0x2136aa(0xc2)][_0x2136aa(0xce)]||_0x95df94[_0x2136aa(0xce)];if(!_0x58ca3e)return{'status':'not-applicable'};const _0xe7f705=await _0x95df94['downloadRuntimeSkillPackage'](_0x95df94['scope'],_0x58ca3e,_0x95df94[_0x2136aa(0xc4)],_0x95df94[_0x2136aa(0xc2)][_0x2136aa(0xdb)]);try{_0x95df94[_0x2136aa(0xba)](_0x95df94[_0x2136aa(0xdd)][_0x2136aa(0xc7)],_0xe7f705);}catch{return{'status':_0x2136aa(0xcb)};}return{'status':_0x2136aa(0xbc),'savedSkill':{..._0x95df94[_0x2136aa(0xc2)],'content':_0x95df94[_0x2136aa(0xdd)][_0x2136aa(0xdc)],'files':_0x95df94[_0x2136aa(0xdd)][_0x2136aa(0xc7)]}};}
@@ -1 +1 @@
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
+ (function(_0x1b044a,_0x4a9dc2){const _0x280a13=a55_0x32f3,_0x52e87f=_0x1b044a();while(!![]){try{const _0x59d50d=parseInt(_0x280a13(0xca))/0x1+-parseInt(_0x280a13(0xd4))/0x2+parseInt(_0x280a13(0xd1))/0x3*(parseInt(_0x280a13(0xd0))/0x4)+-parseInt(_0x280a13(0xd3))/0x5*(-parseInt(_0x280a13(0xd9))/0x6)+parseInt(_0x280a13(0xdd))/0x7*(-parseInt(_0x280a13(0xe1))/0x8)+parseInt(_0x280a13(0xda))/0x9*(parseInt(_0x280a13(0xdf))/0xa)+-parseInt(_0x280a13(0xd6))/0xb*(-parseInt(_0x280a13(0xdb))/0xc);if(_0x59d50d===_0x4a9dc2)break;else _0x52e87f['push'](_0x52e87f['shift']());}catch(_0x5364b1){_0x52e87f['push'](_0x52e87f['shift']());}}}(a55_0x244b,0x6e73a));function a55_0x244b(){const _0x304cc7=['171992WcyXcQ','33eHVyKd','tags','5VQeDvH','1510484nvoPgp','sourceSessionId','50897oDMCic','warning','\x20after\x20successful\x20push.','684114YwBveI','1719qnyaxJ','2028SJijQF','description','7HnWxfC','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','12370ArHnaQ','version','6028152EelDrF','skill-metadata-appcode-retargeted','355944svAZuP','lovrabet.skill.json','skillName','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','preferInputSkillName','appCode'];a55_0x244b=function(){return _0x304cc7;};return a55_0x244b();}function a55_0x32f3(_0x541de9,_0x5f2f22){_0x541de9=_0x541de9-0xca;const _0x244b1a=a55_0x244b();let _0x32f389=_0x244b1a[_0x541de9];return _0x32f389;}export function withRetargetExistingMetadata(_0x435122,_0x48c66d,_0x1646cd={}){const _0x30e26c=a55_0x32f3,_0x27bab2=_0x1646cd[_0x30e26c(0xce)]?_0x435122[_0x30e26c(0xcc)]??_0x48c66d['skillName']:_0x48c66d['skillName']??_0x435122['skillName'];return{..._0x435122,'skillName':_0x27bab2,'description':_0x48c66d[_0x30e26c(0xdc)]??_0x435122[_0x30e26c(0xdc)],'tags':Array['isArray'](_0x48c66d[_0x30e26c(0xd2)])?_0x48c66d[_0x30e26c(0xd2)]:_0x435122[_0x30e26c(0xd2)],'version':_0x48c66d[_0x30e26c(0xe0)]??_0x435122['version'],'sourceSessionId':_0x48c66d[_0x30e26c(0xd5)]??_0x435122[_0x30e26c(0xd5)]};}export function buildRetargetWarning(_0x41347f,_0x1845b9){const _0x3b01d7=a55_0x32f3;if(!_0x41347f?.[_0x3b01d7(0xcf)]||_0x41347f[_0x3b01d7(0xcf)]===_0x1845b9)return[];return[{'level':_0x3b01d7(0xd7),'ruleId':_0x3b01d7(0xe2),'file':_0x3b01d7(0xcb),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x41347f[_0x3b01d7(0xcf)]+_0x3b01d7(0xcd)+_0x1845b9+_0x3b01d7(0xd8),'suggestion':_0x3b01d7(0xde)}];}
@@ -1 +1 @@
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
+ (function(_0x142df7,_0x1bf237){const _0x2c01b9=a56_0x3666,_0x36e45d=_0x142df7();while(!![]){try{const _0xbe0ad8=-parseInt(_0x2c01b9(0xc5))/0x1*(parseInt(_0x2c01b9(0xc4))/0x2)+parseInt(_0x2c01b9(0xc2))/0x3+-parseInt(_0x2c01b9(0xc6))/0x4+-parseInt(_0x2c01b9(0xbf))/0x5+parseInt(_0x2c01b9(0xc1))/0x6+parseInt(_0x2c01b9(0xc0))/0x7+-parseInt(_0x2c01b9(0xbc))/0x8;if(_0xbe0ad8===_0x1bf237)break;else _0x36e45d['push'](_0x36e45d['shift']());}catch(_0x12f7a7){_0x36e45d['push'](_0x36e45d['shift']());}}}(a56_0x5df6,0x9f1c6));function a56_0x3666(_0x75c2d8,_0xc0c990){_0x75c2d8=_0x75c2d8-0xba;const _0x5df660=a56_0x5df6();let _0x366611=_0x5df660[_0x75c2d8];return _0x366611;}import{CliErrors}from'../../errors.js';function a56_0x5df6(){const _0x167ab6=['personal','trim','979405XOsYzs','8656473OBXZZS','2514768wZfIsM','3757752ThrRFP','all','370052fpyrYS','1nRqQFn','579144MIBUfo','company','validation','Unsupported\x20Skill\x20sync\x20scope:\x20','13847520yQXyxc'];a56_0x5df6=function(){return _0x167ab6;};return a56_0x5df6();}export function normalizeSyncScopes(_0x260904){const _0x1d34b3=a56_0x3666,_0x1c076b=_0x260904[_0x1d34b3(0xbe)]();if(!_0x1c076b||_0x1c076b===_0x1d34b3(0xc3))return[_0x1d34b3(0xbd),_0x1d34b3(0xc7)];if(_0x1c076b===_0x1d34b3(0xbd)||_0x1c076b===_0x1d34b3(0xc7))return[_0x1c076b];throw CliErrors[_0x1d34b3(0xba)](_0x1d34b3(0xbb)+_0x260904);}export function normalizeListScope(_0x3ad311){const _0x22f85a=a56_0x3666,_0x243435=_0x3ad311[_0x22f85a(0xbe)]();if(!_0x243435)return _0x22f85a(0xc3);if(_0x243435==='personal'||_0x243435===_0x22f85a(0xc7)||_0x243435===_0x22f85a(0xc3))return _0x243435;throw CliErrors[_0x22f85a(0xba)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x3ad311);}export function shouldListScope(_0x356e99,_0x382752){const _0x3f73e9=a56_0x3666;if(_0x356e99===_0x3f73e9(0xc3))return!![];return _0x356e99===_0x382752;}export function listScopeToRuntimeScopes(_0x206acd){const _0x5523f3=a56_0x3666;if(_0x206acd===_0x5523f3(0xc3))return[_0x5523f3(0xbd),_0x5523f3(0xc7)];return[_0x206acd===_0x5523f3(0xc7)?_0x5523f3(0xc7):_0x206acd];}export function listScopeToRemoteScope(_0x37552b){return _0x37552b;}
@@ -1 +1 @@
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
+ (function(_0x17c560,_0x5eb71d){var _0x4a0581=a57_0x380a,_0x485a75=_0x17c560();while(!![]){try{var _0x2262b5=-parseInt(_0x4a0581(0xf6))/0x1*(-parseInt(_0x4a0581(0xe4))/0x2)+-parseInt(_0x4a0581(0xf5))/0x3+-parseInt(_0x4a0581(0xf0))/0x4*(-parseInt(_0x4a0581(0xef))/0x5)+-parseInt(_0x4a0581(0xf8))/0x6*(parseInt(_0x4a0581(0xed))/0x7)+parseInt(_0x4a0581(0xea))/0x8+-parseInt(_0x4a0581(0xf2))/0x9*(-parseInt(_0x4a0581(0xf9))/0xa)+-parseInt(_0x4a0581(0xf3))/0xb*(parseInt(_0x4a0581(0xec))/0xc);if(_0x2262b5===_0x5eb71d)break;else _0x485a75['push'](_0x485a75['shift']());}catch(_0x1a4c2c){_0x485a75['push'](_0x485a75['shift']());}}}(a57_0x153d,0xde0e5));function a57_0x153d(){var _0x469cfb=['4LPRTTF','linkedPaths','19107xNvOSf','8969521CzanRK','treeHash','5233701kdyRjy','1711ZtusSp','status','12AjtXTB','7570rBaHDD','skillMdPath','1642EwiZTz','contentHash','tags','skillCode','skillName','version','2012320qaqBbJ','pulledAt','12yuedjG','4631928KHdqgK','scope','7647725oQeGOK'];a57_0x153d=function(){return _0x469cfb;};return a57_0x153d();}export function summarizeRuntimeSkill(_0x3c115e){var _0x58ef70=a57_0x380a;return{'id':_0x3c115e['id'],'skillCode':_0x3c115e['skillCode'],'skillName':_0x3c115e[_0x58ef70(0xe8)],'scope':_0x3c115e[_0x58ef70(0xee)],'version':_0x3c115e[_0x58ef70(0xe9)],'readonly':_0x3c115e['readonly']};}function a57_0x380a(_0x65769e,_0x408962){_0x65769e=_0x65769e-0xe4;var _0x153d61=a57_0x153d();var _0x380adb=_0x153d61[_0x65769e];return _0x380adb;}export function summarizeLocalRuntimeSkill(_0x2f7a72){var _0x4ed698=a57_0x380a;return{'id':_0x2f7a72['id'],'skillCode':_0x2f7a72[_0x4ed698(0xe7)],'skillName':_0x2f7a72[_0x4ed698(0xe8)],'scope':_0x2f7a72[_0x4ed698(0xee)],'appCode':_0x2f7a72['appCode'],'version':_0x2f7a72['version'],'status':_0x2f7a72[_0x4ed698(0xf7)],'readonly':_0x2f7a72['readonly'],'tags':_0x2f7a72[_0x4ed698(0xe6)],'dir':_0x2f7a72['dir'],'cacheDir':_0x2f7a72['cacheDir'],'skillMdPath':_0x2f7a72[_0x4ed698(0xfa)],'metadataPath':_0x2f7a72['metadataPath'],'linkedPaths':_0x2f7a72[_0x4ed698(0xf1)],'contentHash':_0x2f7a72[_0x4ed698(0xe5)],'treeHash':_0x2f7a72[_0x4ed698(0xf4)],'pulledAt':_0x2f7a72[_0x4ed698(0xeb)]};}
@@ -1 +1 @@
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
+ const a58_0x2b0d6d=a58_0x4ad0;(function(_0x3d4e63,_0x5a7b7e){const _0x36a63a=a58_0x4ad0,_0x3b233e=_0x3d4e63();while(!![]){try{const _0x4689ee=-parseInt(_0x36a63a(0x8a))/0x1*(-parseInt(_0x36a63a(0x87))/0x2)+parseInt(_0x36a63a(0x7f))/0x3*(-parseInt(_0x36a63a(0x74))/0x4)+parseInt(_0x36a63a(0x73))/0x5+-parseInt(_0x36a63a(0x7c))/0x6+-parseInt(_0x36a63a(0x8b))/0x7+parseInt(_0x36a63a(0x89))/0x8+-parseInt(_0x36a63a(0x7b))/0x9*(-parseInt(_0x36a63a(0x80))/0xa);if(_0x4689ee===_0x5a7b7e)break;else _0x3b233e['push'](_0x3b233e['shift']());}catch(_0x49c981){_0x3b233e['push'](_0x3b233e['shift']());}}}(a58_0x8a37,0x86133));import{CliErrors}from'../../errors.js';function a58_0x8a37(){const _0x181f91=['\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','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','1481755EiiWvp','8pUijLV','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','type','---\x0aname:\x20','write','216729ucoOht','554928CZrHIv','.agents/skills','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','877428UFwuRY','240XlKLaA','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','references/output-contract.md','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\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','4icAiUm','validation','4528696sqJbOR','21569hvtOgD','1798363LNdqAE','references/runtime-contract.md','\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=','join','includes','read','skillName','toISOString'];a58_0x8a37=function(){return _0x181f91;};return a58_0x8a37();}export const SKILL_TYPES=[a58_0x2b0d6d(0x7a),'read'];export const DEFAULT_SKILL_TARGET=a58_0x2b0d6d(0x7d);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a58_0x2b0d6d(0x8c);export const OUTPUT_CONTRACT_FILE=a58_0x2b0d6d(0x82);export function validateSkillName(_0x5c2154){const _0x37bb13=a58_0x2b0d6d,_0x2cad48=_0x5c2154['trim']();if(!SKILL_NAME_PATTERN[_0x37bb13(0x94)](_0x2cad48))throw CliErrors[_0x37bb13(0x88)]('Invalid\x20Skill\x20name:\x20'+_0x5c2154+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x2cad48;}export function normalizeSkillTemplateType(_0x3d2763){const _0x5dbb99=a58_0x2b0d6d,_0x570840=(_0x3d2763||_0x5dbb99(0x7a))['trim']()||_0x5dbb99(0x7a);if(SKILL_TYPES[_0x5dbb99(0x8f)](_0x570840))return _0x570840;throw CliErrors[_0x5dbb99(0x88)]('Unsupported\x20Skill\x20type:\x20'+_0x3d2763,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x5dbb99(0x8e)](',\x20')+'.');}export function renderSkillTemplate(_0x211a60){const _0x32e741=a58_0x2b0d6d,_0x165cbd=validateSkillName(_0x211a60[_0x32e741(0x91)]),_0x46dac=normalizeSkillTemplateType(_0x211a60[_0x32e741(0x78)]),_0x57343e=_0x211a60['timestamp']??new Date()[_0x32e741(0x92)]();return{'skillName':_0x165cbd,'type':_0x46dac,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x165cbd,_0x46dac,_0x57343e)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x165cbd,_0x46dac)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x165cbd,_0x46dac)}]};}function renderSkillMd(_0x3d1ceb,_0x126682,_0x4da5c4){const _0x2b0664=a58_0x2b0d6d,_0x212ac1=typeWorkflow(_0x126682);return _0x2b0664(0x79)+_0x3d1ceb+_0x2b0664(0x84)+_0x126682+'\x0a\x20\x20created:\x20\x22'+_0x4da5c4+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x3d1ceb+_0x2b0664(0x95)+_0x212ac1+'\x0a\x0a'+businessStateSection(_0x126682)+_0x2b0664(0x7e);}function renderRuntimeContract(_0x140825,_0xee4018){const _0x479da1=a58_0x2b0d6d,_0x2d5fd6=_0xee4018===_0x479da1(0x7a)?_0x479da1(0x83):'';return _0x479da1(0x81)+_0x140825+_0x479da1(0x8d)+_0xee4018+'\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'+_0x2d5fd6+_0x479da1(0x86);}function renderOutputContract(_0x400c3d,_0x1096f9){const _0x1fafb0=a58_0x2b0d6d,_0x4e322e=_0x1096f9===_0x1fafb0(0x7a)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x1096f9+_0x1fafb0(0x93);return'#\x20Output\x20Contract\x0a\x0a'+_0x400c3d+'\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'+_0x4e322e+_0x1fafb0(0x77);}function typeWorkflow(_0x2f619b){const _0xc84de0=a58_0x2b0d6d;if(_0x2f619b===_0xc84de0(0x90))return _0xc84de0(0x85);return _0xc84de0(0x75);}function a58_0x4ad0(_0x43b81c,_0x11b105){_0x43b81c=_0x43b81c-0x73;const _0x8a37af=a58_0x8a37();let _0x4ad0c5=_0x8a37af[_0x43b81c];return _0x4ad0c5;}function businessStateSection(_0x3613d0){const _0x38427f=a58_0x2b0d6d;if(_0x3613d0!=='write')return'';return _0x38427f(0x76);}
@@ -1 +1 @@
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
+ function a59_0x30f6(_0x370e22,_0x5019f4){_0x370e22=_0x370e22-0x169;const _0x37f400=a59_0x37f4();let _0x30f60e=_0x37f400[_0x370e22];return _0x30f60e;}const a59_0x294b0a=a59_0x30f6;(function(_0x3803c7,_0x5c327c){const _0x5f40ff=a59_0x30f6,_0x5f28c0=_0x3803c7();while(!![]){try{const _0x260d2b=-parseInt(_0x5f40ff(0x1a2))/0x1+parseInt(_0x5f40ff(0x181))/0x2*(-parseInt(_0x5f40ff(0x1bf))/0x3)+parseInt(_0x5f40ff(0x185))/0x4+-parseInt(_0x5f40ff(0x1be))/0x5*(-parseInt(_0x5f40ff(0x178))/0x6)+parseInt(_0x5f40ff(0x1af))/0x7*(parseInt(_0x5f40ff(0x175))/0x8)+-parseInt(_0x5f40ff(0x180))/0x9+parseInt(_0x5f40ff(0x1ab))/0xa;if(_0x260d2b===_0x5c327c)break;else _0x5f28c0['push'](_0x5f28c0['shift']());}catch(_0x1d2320){_0x5f28c0['push'](_0x5f28c0['shift']());}}}(a59_0x37f4,0xdf305));function a59_0x37f4(){const _0x28f9a2=['16050312RcKrmM','199440dEvTLA','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','logs','path','3312768RpPArC','test','utf8','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','join','true','artifact','trim','config','Skill\x20directory\x20not\x20found:\x20','isSymbolicLink','description-required','filter','page','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','toLowerCase','raw','toUpperCase','name','push','Skill\x20validation\x20failed:\x0a','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','isDirectory','Set\x20metadata.type\x20to\x20write\x20or\x20read.','example','type','warning','\x20Fix:\x20','errors','1487624KoqZSC','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','Frontmatter\x20example\x20is\x20missing.','validation','match','Missing\x20SKILL.md.','object','map','auth','9279120LHqskL','write','description','metadata','1370124IJKdNu','sql','number','flatMap','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','content','level','internal-skill','has','structure-complete','file','boolean','app','isFile','55oqsKgd','15RSisIs','ruleId','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','display-name-recommended','slice','example-recommended','Frontmatter\x20description\x20is\x20empty.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','frontmatter-required','displayName','rabetbase-cli-reference','read','schema','split','56mYbsGm','section','bff','849570KKdctM','line','isArray','error','registry','message','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','internal'];a59_0x37f4=function(){return _0x28f9a2;};return a59_0x37f4();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x36cd2b}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a59_0x294b0a(0x1ac),a59_0x294b0a(0x172)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x44e9a6,_0x454d6e={}){const _0x175816=a59_0x294b0a,_0x464fd7=resolveSkillDirectoryRoot(_0x44e9a6),_0x48bb2c=[],_0x1f44ca=loadRequiredSkillFile(_0x464fd7,_0x48bb2c),_0x3676c3=_0x1f44ca?parseFrontmatter(_0x1f44ca[_0x175816(0x1b5)]):{'hasFrontmatter':![]};_0x1f44ca&&validateFrontmatter(_0x1f44ca[_0x175816(0x184)],_0x3676c3,_0x48bb2c);validateRuntimeCliReferences(_0x464fd7,_0x48bb2c);const _0x170efa=_0x48bb2c['filter'](_0xdd1635=>_0xdd1635[_0x175816(0x1b6)]===_0x175816(0x17b)),_0x51aa79=_0x48bb2c[_0x175816(0x191)](_0x3fdc66=>_0x3fdc66[_0x175816(0x1b6)]==='warning');return{'ok':_0x170efa['length']===0x0,'dir':_0x464fd7,'type':_0x3676c3[_0x175816(0x19e)],'errors':_0x170efa,'warnings':_0x51aa79};}function resolveSkillDirectoryRoot(_0x2cba90){const _0x5485fc=a59_0x294b0a,_0x53cd3a=resolve(_0x2cba90);if(!existsSync(_0x53cd3a))throw CliErrors['validation'](_0x5485fc(0x18e)+_0x2cba90);const _0x855958=lstatSync(_0x53cd3a);if(_0x855958[_0x5485fc(0x19b)]())return _0x53cd3a;if(_0x855958[_0x5485fc(0x18f)]()){const _0x51cddd=realpathSync(_0x53cd3a);if(lstatSync(_0x51cddd)['isDirectory']())return _0x51cddd;}throw CliErrors[_0x5485fc(0x1a5)](_0x5485fc(0x18e)+_0x2cba90);}export function throwIfSkillValidationFailed(_0x3373d5,_0x203c8d=![]){const _0x440591=a59_0x294b0a;if(_0x3373d5['ok'])return;const _0x58e468=_0x3373d5[_0x440591(0x1a1)][_0x440591(0x1a9)](_0x2b2a59=>{const _0x2a6ee4=_0x440591,_0xd0d18e=_0x2b2a59[_0x2a6ee4(0x176)]?'#'+_0x2b2a59[_0x2a6ee4(0x176)]:'';return _0x2b2a59[_0x2a6ee4(0x1b6)][_0x2a6ee4(0x196)]()+'\x20'+_0x2b2a59[_0x2a6ee4(0x1c0)]+'\x20'+_0x2b2a59['file']+_0xd0d18e+':\x20'+_0x2b2a59[_0x2a6ee4(0x17d)]+_0x2a6ee4(0x1a0)+_0x2b2a59['suggestion'];});throw CliErrors[_0x440591(0x1a5)](_0x440591(0x199)+_0x58e468[_0x440591(0x189)]('\x0a'),_0x440591(0x16e));}function loadRequiredSkillFile(_0x2fb5e6,_0x1462e0){const _0x5e4d21=a59_0x294b0a,_0x223021=resolve(_0x2fb5e6,SKILL_FILE);if(!existsSync(_0x223021))return _0x1462e0[_0x5e4d21(0x198)](issue(_0x5e4d21(0x17b),_0x5e4d21(0x1b9),SKILL_FILE,_0x5e4d21(0x1a7),_0x5e4d21(0x1b4))),undefined;const _0x4c1166=lstatSync(_0x223021);if(_0x4c1166[_0x5e4d21(0x18f)]())return _0x1462e0[_0x5e4d21(0x198)](issue(_0x5e4d21(0x17b),_0x5e4d21(0x1b9),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x4c1166[_0x5e4d21(0x1bd)]())return _0x1462e0[_0x5e4d21(0x198)](issue(_0x5e4d21(0x17b),'structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x5e4d21(0x193))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x223021,_0x5e4d21(0x187))};}function validateFrontmatter(_0x31a4a5,_0x1a9e56,_0x19d1c0){const _0x544565=a59_0x294b0a;if(!_0x1a9e56['hasFrontmatter']){_0x19d1c0[_0x544565(0x198)](issue('error',_0x544565(0x16f),_0x31a4a5,'SKILL.md\x20must\x20start\x20with\x20frontmatter.','Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x1a9e56[_0x544565(0x197)]?.['trim']()&&_0x19d1c0[_0x544565(0x198)](issue(_0x544565(0x17b),_0x544565(0x16f),_0x31a4a5,'Frontmatter\x20name\x20is\x20missing.',_0x544565(0x1a3))),!_0x1a9e56['displayName']?.[_0x544565(0x18c)]()&&_0x19d1c0['push'](issue(_0x544565(0x19f),_0x544565(0x16a),_0x31a4a5,'Frontmatter\x20displayName\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x1a9e56[_0x544565(0x19d)]?.[_0x544565(0x18c)]()&&_0x19d1c0[_0x544565(0x198)](issue('warning',_0x544565(0x16c),_0x31a4a5,_0x544565(0x1a4),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x1a9e56['description']?.[_0x544565(0x18c)]()&&_0x19d1c0[_0x544565(0x198)](issue(_0x544565(0x17b),_0x544565(0x190),_0x31a4a5,_0x544565(0x16d),_0x544565(0x188))),_0x1a9e56[_0x544565(0x17f)]===!![]&&_0x19d1c0[_0x544565(0x198)](issue('error',_0x544565(0x1b7),_0x31a4a5,_0x544565(0x19a),_0x544565(0x182))),_0x1a9e56[_0x544565(0x19e)]?.[_0x544565(0x18c)]()&&!SUPPORTED_SKILL_TYPES[_0x544565(0x1b8)](_0x1a9e56['type'])&&_0x19d1c0[_0x544565(0x198)](issue(_0x544565(0x17b),_0x544565(0x16f),_0x31a4a5,_0x544565(0x17e),_0x544565(0x19c)));}function validateRuntimeCliReferences(_0x3515ed,_0x32c09d){const _0x504124=a59_0x294b0a;for(const _0x4cc54b of findRabetbaseCliInvocations(_0x3515ed)){_0x32c09d[_0x504124(0x198)](issue(_0x504124(0x19f),_0x504124(0x171),_0x4cc54b[_0x504124(0x1ba)],_0x504124(0x1b3),_0x504124(0x169),'L'+_0x4cc54b[_0x504124(0x179)]));}}function findRabetbaseCliInvocations(_0x114417){const _0x5c5cf7=a59_0x294b0a;return scanSkillDirectory(_0x114417)[_0x5c5cf7(0x191)](_0x40661d=>TEXT_SKILL_FILE_PATTERN[_0x5c5cf7(0x186)](_0x40661d['path']))[_0x5c5cf7(0x1b2)](_0x4d3f7d=>{const _0x44f87a=_0x5c5cf7,_0x2e2108=fileText(_0x4d3f7d);return _0x2e2108[_0x44f87a(0x174)](/\r?\n/)[_0x44f87a(0x1a9)]((_0x4d23aa,_0x2da150)=>({'file':_0x4d3f7d['path'],'line':_0x2da150+0x1,'text':_0x4d23aa}))['filter'](({text:_0x5bdc4a})=>isRabetbaseCliInvocation(_0x5bdc4a))['map'](({file:_0x442b46,line:_0x414f45})=>({'file':_0x442b46,'line':_0x414f45}));});}const RABETBASE_SUBCOMMANDS=['dataset',a59_0x294b0a(0x1b0),a59_0x294b0a(0x177),a59_0x294b0a(0x192),'project',a59_0x294b0a(0x1bc),a59_0x294b0a(0x173),'service',a59_0x294b0a(0x18b),'kb',a59_0x294b0a(0x18d),'workspace','data',a59_0x294b0a(0x1aa),a59_0x294b0a(0x183),a59_0x294b0a(0x17c)],RABETBASE_INVOCATION=new RegExp(String[a59_0x294b0a(0x195)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x294b0a(0x189)]('|')})\b`+String[a59_0x294b0a(0x195)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2ba267){const _0x305813=a59_0x294b0a,_0xe85216=_0x2ba267['search'](/\brabetbase\b/i);if(_0xe85216<0x0)return![];const _0x2db6c2=_0x2ba267[_0x305813(0x16b)](_0xe85216)[_0x305813(0x174)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x305813(0x186)](_0x2db6c2);}function parseFrontmatter(_0x4b29d7){const _0x29cf07=a59_0x294b0a,_0x28bc0d=_0x4b29d7[_0x29cf07(0x1a6)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x28bc0d)return{'hasFrontmatter':![]};const _0x4ba40b=_0x28bc0d[0x1]??'',_0x1c97a8={'hasFrontmatter':!![]};let _0x52f246;try{_0x52f246=a59_0x36cd2b(_0x4ba40b);}catch{return _0x1c97a8;}const _0x2d9ded=asRecord(_0x52f246);if(!_0x2d9ded)return _0x1c97a8;_0x1c97a8[_0x29cf07(0x197)]=scalarToString(_0x2d9ded[_0x29cf07(0x197)]),_0x1c97a8[_0x29cf07(0x170)]=scalarToString(_0x2d9ded['displayName']),_0x1c97a8[_0x29cf07(0x1ad)]=scalarToString(_0x2d9ded['description']),_0x1c97a8[_0x29cf07(0x19d)]=scalarToString(_0x2d9ded['example']);const _0x2d0b6f=asRecord(_0x2d9ded[_0x29cf07(0x1ae)]);return _0x2d0b6f&&(_0x1c97a8[_0x29cf07(0x19e)]=scalarToString(_0x2d0b6f[_0x29cf07(0x19e)]),_0x1c97a8['internal']=scalarToBoolean(_0x2d0b6f[_0x29cf07(0x17f)])),_0x1c97a8;}function asRecord(_0x33bb1f){const _0x21a504=a59_0x294b0a;if(_0x33bb1f&&typeof _0x33bb1f===_0x21a504(0x1a8)&&!Array[_0x21a504(0x17a)](_0x33bb1f))return _0x33bb1f;return undefined;}function scalarToString(_0x38744c){const _0x1f63af=a59_0x294b0a;if(typeof _0x38744c==='string')return _0x38744c[_0x1f63af(0x18c)]();if(typeof _0x38744c===_0x1f63af(0x1b1)||typeof _0x38744c===_0x1f63af(0x1bb))return String(_0x38744c);return undefined;}function scalarToBoolean(_0x3fd1f7){if(typeof _0x3fd1f7==='boolean')return _0x3fd1f7;if(typeof _0x3fd1f7==='string')return cleanBoolean(_0x3fd1f7);return undefined;}function cleanBoolean(_0x52d782){const _0xdfb863=a59_0x294b0a,_0x2166cd=_0x52d782[_0xdfb863(0x18c)]()[_0xdfb863(0x194)]();if(_0x2166cd===_0xdfb863(0x18a))return!![];if(_0x2166cd==='false')return![];return undefined;}function issue(_0x53fe8e,_0x2082bc,_0x4ac1fe,_0x371fb1,_0xa13ec3,_0x563f82){return{'level':_0x53fe8e,'ruleId':_0x2082bc,'file':_0x4ac1fe,'section':_0x563f82,'message':_0x371fb1,'suggestion':_0xa13ec3};}
@@ -1 +1 @@
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
+ const a60_0x338a48=a60_0x1499;(function(_0x18f6d3,_0x4a78c5){const _0x4ebee1=a60_0x1499,_0x43e1aa=_0x18f6d3();while(!![]){try{const _0x1eb191=parseInt(_0x4ebee1(0x1af))/0x1+parseInt(_0x4ebee1(0x1ae))/0x2*(parseInt(_0x4ebee1(0x1a7))/0x3)+parseInt(_0x4ebee1(0x1a6))/0x4+-parseInt(_0x4ebee1(0x1b0))/0x5*(parseInt(_0x4ebee1(0x1a2))/0x6)+parseInt(_0x4ebee1(0x1ab))/0x7*(-parseInt(_0x4ebee1(0x1ad))/0x8)+-parseInt(_0x4ebee1(0x1a3))/0x9+-parseInt(_0x4ebee1(0x1a8))/0xa*(parseInt(_0x4ebee1(0x1a4))/0xb);if(_0x1eb191===_0x4a78c5)break;else _0x43e1aa['push'](_0x43e1aa['shift']());}catch(_0x148bab){_0x43e1aa['push'](_0x43e1aa['shift']());}}}(a60_0x4e21,0xe51c8));import{getSqlQueryInfo}from'../../core/api-client.js';function a60_0x4e21(){const _0x121eb0=['str','132LtOLMt','5784552pzIyFi','3278uesgXJ','verbose','4710944fnqODZ','583896ISHHtV','42530DgKxYP','detail','sqlName','28EUKuhG','sqlcode','114416DNyOom','16MiNuSu','1413890DPIhkn','282480dgsKkb','sqlCode','dbId','read','appCode'];a60_0x4e21=function(){return _0x121eb0;};return a60_0x4e21();}import{getDbName}from'../../core/db-resolver.js';function a60_0x1499(_0x995c4f,_0x349b6e){_0x995c4f=_0x995c4f-0x19f;const _0x4e2153=a60_0x4e21();let _0x1499a4=_0x4e2153[_0x995c4f];return _0x1499a4;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a60_0x338a48(0x1a9),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a60_0x338a48(0x19f),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x13782f){const _0x117281=a60_0x338a48,_0x55b0d1=await getSqlQueryInfo(_0x13782f[_0x117281(0x1a0)],_0x13782f[_0x117281(0x1a1)](_0x117281(0x1ac))),_0x2d8096=_0x13782f['bool'](_0x117281(0x1a5));if(_0x2d8096)return{'ok':!![],'data':_0x55b0d1};const _0xd73a24=_0x55b0d1['dbId']?await getDbName(_0x13782f['appCode'],_0x55b0d1['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x55b0d1[_0x117281(0x1b1)],'sqlName':_0x55b0d1[_0x117281(0x1aa)],'db':_0xd73a24?_0xd73a24+'\x20('+_0x55b0d1[_0x117281(0x1b2)]+')':_0x55b0d1[_0x117281(0x1b2)]??'','sqlContent':_0x55b0d1['sqlContent']??''}};}};
@@ -1 +1 @@
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
+ function a61_0x1c12(_0x36f36b,_0x223402){_0x36f36b=_0x36f36b-0x18b;const _0x5ea567=a61_0x5ea5();let _0x1c125f=_0x5ea567[_0x36f36b];return _0x1c125f;}const a61_0x43ff3a=a61_0x1c12;(function(_0x4a9b12,_0x1012cb){const _0x2aba47=a61_0x1c12,_0x8bd05b=_0x4a9b12();while(!![]){try{const _0x4f71e0=-parseInt(_0x2aba47(0x19d))/0x1*(parseInt(_0x2aba47(0x195))/0x2)+parseInt(_0x2aba47(0x190))/0x3+parseInt(_0x2aba47(0x19b))/0x4+parseInt(_0x2aba47(0x194))/0x5+-parseInt(_0x2aba47(0x18f))/0x6+parseInt(_0x2aba47(0x18d))/0x7*(parseInt(_0x2aba47(0x1a0))/0x8)+-parseInt(_0x2aba47(0x193))/0x9;if(_0x4f71e0===_0x1012cb)break;else _0x8bd05b['push'](_0x8bd05b['shift']());}catch(_0x4c97f4){_0x8bd05b['push'](_0x8bd05b['shift']());}}}(a61_0x5ea5,0xb3ea2));import{executeSdkSql}from'../../core/sdk-client.js';function a61_0x5ea5(){const _0x394cb8=['Returned\x20','665pdyPUo','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','2139360CePOTW','1026660SFhols','read','length','21863511xFJLNC','4195980JLiagw','1346YqXdZK','now','SQL\x20execution\x20failed','isArray','execResult','execError','5715424uQxSGU','execSuccess','116FKJnoF','sqlcode','\x20row(s)\x20in\x20','83416gDQUeV','params'];a61_0x5ea5=function(){return _0x394cb8;};return a61_0x5ea5();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':'exec','description':a61_0x43ff3a(0x18e),'risk':a61_0x43ff3a(0x191),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x3066aa){const _0x5bfe4f=a61_0x43ff3a,_0x58ab5b=parseJsonParams(_0x3066aa['str'](_0x5bfe4f(0x18b))),_0x54d8de=Date[_0x5bfe4f(0x196)](),_0x275dbd=await executeSdkSql(_0x3066aa['str'](_0x5bfe4f(0x19e)),_0x58ab5b),_0x458919=Date[_0x5bfe4f(0x196)]()-_0x54d8de,_0x83b4f7=_0x275dbd?.[_0x5bfe4f(0x199)]??_0x275dbd,_0x5aa808=_0x275dbd?.[_0x5bfe4f(0x19c)]??!![];if(!_0x5aa808)return{'ok':![],'data':{'error':_0x275dbd?.[_0x5bfe4f(0x19a)]||_0x5bfe4f(0x197),'elapsed':_0x458919},'message':'SQL\x20execution\x20failed'};const _0x33045e=Array[_0x5bfe4f(0x198)](_0x83b4f7)?_0x83b4f7:[];return{'ok':!![],'data':{'rows':_0x33045e,'rowCount':_0x33045e[_0x5bfe4f(0x192)],'elapsed':_0x458919},'message':_0x5bfe4f(0x18c)+_0x33045e[_0x5bfe4f(0x192)]+_0x5bfe4f(0x19f)+_0x458919+'ms'};}};
@@ -1 +1 @@
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
+ function a62_0xe7fd(_0x57184e,_0x459095){_0x57184e=_0x57184e-0x160;const _0x4b96fc=a62_0x4b96();let _0xe7fd97=_0x4b96fc[_0x57184e];return _0xe7fd97;}function a62_0x4b96(){const _0x1c129a=['235837IHQjAI','472430YIooCl','167010ANqWFM','2315430KWPYEV','48FkPrIW','7285poCZWc','629082mKysST','1005528lHizyb'];a62_0x4b96=function(){return _0x1c129a;};return a62_0x4b96();}(function(_0x16cd06,_0x583027){const _0x1f499d=a62_0xe7fd,_0x101cd0=_0x16cd06();while(!![]){try{const _0x54a26d=parseInt(_0x1f499d(0x160))/0x1+parseInt(_0x1f499d(0x162))/0x2+parseInt(_0x1f499d(0x166))/0x3+parseInt(_0x1f499d(0x164))/0x4*(parseInt(_0x1f499d(0x165))/0x5)+-parseInt(_0x1f499d(0x163))/0x6+-parseInt(_0x1f499d(0x161))/0x7+parseInt(_0x1f499d(0x167))/0x8;if(_0x54a26d===_0x583027)break;else _0x101cd0['push'](_0x101cd0['shift']());}catch(_0x490484){_0x101cd0['push'](_0x101cd0['shift']());}}}(a62_0x4b96,0x356c0));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
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};
1
+ const a63_0x254e88=a63_0x3d8e;(function(_0x47776f,_0x44791d){const _0x4e844e=a63_0x3d8e,_0x4b55d1=_0x47776f();while(!![]){try{const _0x34ab65=-parseInt(_0x4e844e(0x10d))/0x1*(parseInt(_0x4e844e(0x131))/0x2)+-parseInt(_0x4e844e(0xfe))/0x3*(parseInt(_0x4e844e(0xfc))/0x4)+-parseInt(_0x4e844e(0x121))/0x5*(-parseInt(_0x4e844e(0x11e))/0x6)+-parseInt(_0x4e844e(0x13f))/0x7+parseInt(_0x4e844e(0x12f))/0x8*(parseInt(_0x4e844e(0x142))/0x9)+-parseInt(_0x4e844e(0x136))/0xa+parseInt(_0x4e844e(0x103))/0xb*(parseInt(_0x4e844e(0x122))/0xc);if(_0x34ab65===_0x44791d)break;else _0x4b55d1['push'](_0x4b55d1['shift']());}catch(_0x4b0c4d){_0x4b55d1['push'](_0x4b55d1['shift']());}}}(a63_0x53f9,0xa6259));import{spawnSync}from'node:child_process';import a63_0x306f8e 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';const updateFlags=[{'name':a63_0x254e88(0xfd),'type':a63_0x254e88(0x102),'description':a63_0x254e88(0x133),'default':![]},{'name':'beta','type':a63_0x254e88(0x102),'description':a63_0x254e88(0x129),'default':![]},{'name':a63_0x254e88(0x13a),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'}];function a63_0x53f9(){const _0x343abf=['error','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','map','log','nonInteractive','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','run','toString','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','trim','/-/package/','66CoqWJi','inherit','Already\x20on\x20requested\x20version\x20(v','379795LokkMp','12cFSDtj','/dist-tags','string','Unable\x20to\x20resolve\x20','\x20\x20Run\x20manually:\x20','从\x20npm\x20更新\x20','bool','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20->\x20','Current\x20version:\x20','npm','source','425976Ysltfg','filter','41758doVhMc','valid','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Already\x20up\x20to\x20date\x20(v','stdout','4633460DAIKRa','validation','beta',']:\x20','version','\x20CLI','\x20version\x20from\x20npm.','join','repairCommand','8489264WyLnGs','install','code','207ksayfs','Checking\x20CLI\x20Built-in\x20Skill...','INSTALL_FAILED','stderr','\x20\x20CLI\x20Built-in\x20Skill\x20','status','40WnLCTl','latest','72249uhnDfC','args','reason','warn','boolean','18082042PcTGpM','\x20is\x20current.','exit\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Invalid\x20version:\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','cwd','current','object','pipe','53JEUuCL','state','Updating\x20','read','length','str'];a63_0x53f9=function(){return _0x343abf;};return a63_0x53f9();}function getRequestedVersion(_0x9c2ad3){const _0x4285af=a63_0x254e88,_0x246f49=_0x9c2ad3[_0x4285af(0x112)]('version')[_0x4285af(0x11c)]();if(_0x246f49)return _0x246f49;return String(_0x9c2ad3[_0x4285af(0xff)]?.[0x0]??'')[_0x4285af(0x11c)]();}async function validateUpdateFlags(_0x4b058e){const _0xea5a69=a63_0x254e88,_0x229b36=getRequestedVersion(_0x4b058e),_0x4a439c=[_0x4b058e[_0xea5a69(0x128)](_0xea5a69(0xfd))?_0xea5a69(0xfd):'',_0x4b058e[_0xea5a69(0x128)](_0xea5a69(0x138))?_0xea5a69(0x138):'',_0x229b36?_0xea5a69(0x13a):''][_0xea5a69(0x130)](Boolean);if(_0x4a439c[_0xea5a69(0x111)]>0x1)throw CliErrors[_0xea5a69(0x137)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0xea5a69(0x11b));if(_0x229b36&&!a63_0x306f8e[_0xea5a69(0x132)](_0x229b36))throw CliErrors[_0xea5a69(0x137)](_0xea5a69(0x107)+_0x229b36,_0xea5a69(0x118));}async function fetchNpmDistTags(){const _0x283cf5=a63_0x254e88;try{const _0x3e0675=NPM_REGISTRY_BASE_URL+_0x283cf5(0x11d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x283cf5(0x123),_0x36b670=await fetch(_0x3e0675,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x36b670['ok'])return null;const _0x21641c=await _0x36b670['json']();if(!_0x21641c||typeof _0x21641c!==_0x283cf5(0x10b))return null;return Object['fromEntries'](Object['entries'](_0x21641c)[_0x283cf5(0x130)](([,_0x3bef89])=>typeof _0x3bef89===_0x283cf5(0x124)&&_0x3bef89[_0x283cf5(0x11c)]())[_0x283cf5(0x115)](([_0x335977,_0x3a4bb0])=>[_0x335977,String(_0x3a4bb0)[_0x283cf5(0x11c)]()]));}catch{return null;}}async function resolveTargetVersion(_0x380dc9){const _0x272e7b=a63_0x254e88,_0x21e418=getRequestedVersion(_0x380dc9);if(_0x21e418)return{'version':_0x21e418,'source':_0x272e7b(0x13a)};const _0x40adf4=_0x380dc9['bool']('beta')?'beta':_0x272e7b(0xfd),_0x4bed9a=await fetchNpmDistTags(),_0x20aa6b=_0x4bed9a?.[_0x40adf4];if(!_0x20aa6b)return null;return{'version':_0x20aa6b,'source':_0x40adf4};}function shouldInstallTarget(_0x229221,_0x13f94e){const _0x1e0e2b=a63_0x254e88;if(_0x13f94e[_0x1e0e2b(0x12e)]===_0x1e0e2b(0x13a)||_0x13f94e[_0x1e0e2b(0x12e)]===_0x1e0e2b(0x138))return!a63_0x306f8e['eq'](_0x229221,_0x13f94e[_0x1e0e2b(0x13a)]);return a63_0x306f8e['lt'](_0x229221,_0x13f94e[_0x1e0e2b(0x13a)]);}function installCliPackage(_0x1f76ac,_0x4e9e83){const _0x5d631b=a63_0x254e88,_0x408f71=resolveNpmBin(_0x5d631b(0x12d)),_0x2d3f60=[_0x5d631b(0x140),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1f76ac];console['log']('*\x20'+[_0x408f71,..._0x2d3f60][_0x5d631b(0x13d)]('\x20'));const _0x88b588=spawnSync(_0x408f71,_0x2d3f60,{'cwd':process[_0x5d631b(0x109)](),'stdio':_0x4e9e83?'pipe':_0x5d631b(0x11f),'env':process.env,'shell':![]});if(_0x88b588[_0x5d631b(0x147)]===0x0)return{'ok':!![]};let _0x3c8ebd=_0x88b588[_0x5d631b(0x113)]?.['message']||_0x5d631b(0x105)+(_0x88b588[_0x5d631b(0x147)]??'unknown');if(_0x4e9e83){const _0x4b0eff=_0x88b588['stderr']?_0x88b588[_0x5d631b(0x145)][_0x5d631b(0x11a)]()[_0x5d631b(0x11c)]():'',_0x445cd8=_0x88b588['stdout']?_0x88b588[_0x5d631b(0x135)][_0x5d631b(0x11a)]()[_0x5d631b(0x11c)]():'';if(_0x4b0eff)_0x3c8ebd=_0x4b0eff;else{if(_0x445cd8)_0x3c8ebd=_0x445cd8;}}return{'ok':![],'error':_0x3c8ebd};}function repairCurrentBuiltinSkill(_0x462421){const _0xb6ce91=a63_0x254e88;console['log'](_0xb6ce91(0x143));const _0x2f24c6=installBuiltinSkill({'stdio':_0x462421?_0xb6ce91(0x10c):_0xb6ce91(0x11f)});if(_0x2f24c6['ok'])return console[_0xb6ce91(0x116)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2f24c6['skillVersion']+_0xb6ce91(0x104)),!![];return console[_0xb6ce91(0x101)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x2f24c6[_0xb6ce91(0x141)]||_0xb6ce91(0x144))+_0xb6ce91(0x139)+(_0x2f24c6[_0xb6ce91(0x113)]||'unknown')),console[_0xb6ce91(0x116)](_0xb6ce91(0x126)+_0x2f24c6[_0xb6ce91(0x13e)]),![];}function verifyUpdatedBuiltinSkill(_0x5678cc){const _0x4f55b8=a63_0x254e88;console[_0x4f55b8(0x116)](_0x4f55b8(0x143));const _0x4ba8dc=inspectInstalledBuiltinSkillVersion(_0x5678cc);if(_0x4ba8dc[_0x4f55b8(0x10e)]===_0x4f55b8(0x10a))return console[_0x4f55b8(0x116)](_0x4f55b8(0x146)+_0x5678cc+_0x4f55b8(0x104)),!![];console[_0x4f55b8(0x101)](_0x4f55b8(0x114)+_0x4ba8dc[_0x4f55b8(0x10e)]+'.');if(_0x4ba8dc[_0x4f55b8(0x100)])console[_0x4f55b8(0x101)]('\x20\x20'+_0x4ba8dc[_0x4f55b8(0x100)]);return console[_0x4f55b8(0x116)](_0x4f55b8(0x126)+_0x4ba8dc['repairCommand']),![];}function a63_0x3d8e(_0x46f808,_0x3559d6){_0x46f808=_0x46f808-0xfc;const _0x53f9dc=a63_0x53f9();let _0x3d8ed1=_0x53f9dc[_0x46f808];return _0x3d8ed1;}async function execute(_0x1e58ce){const _0x17f54c=a63_0x254e88;await validateUpdateFlags(_0x1e58ce);const _0x338d2f=getCliVersion();console[_0x17f54c(0x116)](_0x17f54c(0x12c)+_0x338d2f),console[_0x17f54c(0x116)]('Checking\x20npm\x20dist-tags...');const _0x55ebb7=await resolveTargetVersion(_0x1e58ce);if(!_0x55ebb7){const _0x207e7e=_0x1e58ce[_0x17f54c(0x128)]('beta')?_0x17f54c(0x138):_0x17f54c(0xfd),_0x193454=_0x17f54c(0x125)+_0x207e7e+_0x17f54c(0x13c);return console['warn'](_0x193454),console[_0x17f54c(0x116)](_0x17f54c(0x108)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x207e7e),{'ok':![]};}const _0x235a16=[_0x338d2f,_0x55ebb7[_0x17f54c(0x13a)]]['find'](_0x54dae9=>!a63_0x306f8e[_0x17f54c(0x132)](_0x54dae9));if(_0x235a16)return console['warn']('Version\x20comparison\x20failed:\x20'+_0x235a16+'.'),{'ok':![]};if(!shouldInstallTarget(_0x338d2f,_0x55ebb7)){const _0x251f01=_0x55ebb7[_0x17f54c(0x12e)]==='version'?_0x17f54c(0x120)+_0x55ebb7[_0x17f54c(0x13a)]+').':_0x17f54c(0x134)+_0x55ebb7[_0x17f54c(0x13a)]+').';return console['log'](_0x251f01),{'ok':repairCurrentBuiltinSkill(_0x1e58ce[_0x17f54c(0x117)])};}console[_0x17f54c(0x116)](_0x17f54c(0x10f)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x338d2f+_0x17f54c(0x12b)+_0x55ebb7[_0x17f54c(0x13a)]);const _0x1ad253=installCliPackage(_0x55ebb7[_0x17f54c(0x13a)],_0x1e58ce[_0x17f54c(0x117)]);if(!_0x1ad253['ok']){const _0x3268d0='Update\x20failed:\x20'+(_0x1ad253[_0x17f54c(0x113)]||'unknown');return console[_0x17f54c(0x113)](_0x3268d0),console['log'](_0x17f54c(0x12a)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x55ebb7['version']),{'ok':![]};}return console[_0x17f54c(0x116)]('Updated\x20to\x20v'+_0x55ebb7[_0x17f54c(0x13a)]+'.'),console[_0x17f54c(0x116)](_0x17f54c(0x106)),{'ok':verifyUpdatedBuiltinSkill(_0x55ebb7[_0x17f54c(0x13a)])};}export const updateDefinition={'service':'update','command':a63_0x254e88(0x119),'description':a63_0x254e88(0x127)+CLI_BIN_NAME+a63_0x254e88(0x13b),'risk':a63_0x254e88(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const bindUserAccount: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a64_0x5cefc1=a64_0x3eb9;(function(_0x4fdc23,_0x1d9a0a){const _0x15229e=a64_0x3eb9,_0x1ad523=_0x4fdc23();while(!![]){try{const _0x3d8539=parseInt(_0x15229e(0xf3))/0x1*(-parseInt(_0x15229e(0xec))/0x2)+-parseInt(_0x15229e(0xfd))/0x3*(parseInt(_0x15229e(0x101))/0x4)+-parseInt(_0x15229e(0xf5))/0x5*(-parseInt(_0x15229e(0xea))/0x6)+parseInt(_0x15229e(0xed))/0x7+parseInt(_0x15229e(0xee))/0x8*(parseInt(_0x15229e(0x103))/0x9)+-parseInt(_0x15229e(0x102))/0xa*(parseInt(_0x15229e(0x108))/0xb)+parseInt(_0x15229e(0x100))/0xc;if(_0x3d8539===_0x1d9a0a)break;else _0x1ad523['push'](_0x1ad523['shift']());}catch(_0x14b1dd){_0x1ad523['push'](_0x1ad523['shift']());}}}(a64_0x25cf,0xbcf5f));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a64_0x25cf(){const _0x1ce550=['write','string','bind','33hZdDVu','validation','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','includes','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','External\x20account\x20provider','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','979974gjNikO','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','734jPYbJN','5113115sgJyMO','8wRVlfR','Unsupported\x20provider:\x20','join','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','apiError','2233CDpucU','--account-id\x20cannot\x20be\x20empty.','20EAwtad','provider','dingtalk','trim','Pass\x20one\x20of:\x20','account-id','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','str','6coXrgA','POST','user-account','12980952YQgqTD','3045860qJuSYA','2643980kKnunv','12996999FoiDYH','toLowerCase'];a64_0x25cf=function(){return _0x1ce550;};return a64_0x25cf();}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a64_0x5cefc1(0xe9),SUPPORTED_PROVIDERS=[a64_0x5cefc1(0xf7)];function readBindingInput(_0x31c49a){const _0x552882=a64_0x5cefc1,_0x507db6=_0x31c49a[_0x552882(0xfc)](_0x552882(0xf6))[_0x552882(0xf8)]()[_0x552882(0x104)]();if(!SUPPORTED_PROVIDERS[_0x552882(0x10b)](_0x507db6))throw CliErrors[_0x552882(0x109)](_0x552882(0xef)+(_0x507db6||'(empty)')+'.',_0x552882(0xf9)+SUPPORTED_PROVIDERS[_0x552882(0xf0)](',\x20')+'.');const _0x4cf993=_0x31c49a[_0x552882(0xfc)]('account-id')[_0x552882(0xf8)]();if(!_0x4cf993)throw CliErrors['validation'](_0x552882(0xf4),_0x552882(0xfb));return{'provider':_0x507db6,'accountId':_0x4cf993};}function a64_0x3eb9(_0x6ed6a2,_0x4b58a4){_0x6ed6a2=_0x6ed6a2-0xe7;const _0x25cfc7=a64_0x25cf();let _0x3eb9af=_0x25cfc7[_0x6ed6a2];return _0x3eb9af;}function buildBindingData(_0x56dbf2,_0xd79cc4,_0x106eca){const _0x7228ec=a64_0x5cefc1;return{'operation':_0x7228ec(0x107),'selector':{'provider':_0x56dbf2,'accountId':_0xd79cc4},'before':null,'after':{'provider':_0x56dbf2,'accountId':_0xd79cc4,'bound':!![]},'dryRun':_0x106eca,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a64_0x5cefc1(0xff),'command':a64_0x5cefc1(0x107),'description':a64_0x5cefc1(0xeb),'risk':a64_0x5cefc1(0x105),'confirmationDescription':'将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a64_0x5cefc1(0xf6),'type':a64_0x5cefc1(0x106),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a64_0x5cefc1(0xe8)},{'name':a64_0x5cefc1(0xfa),'type':a64_0x5cefc1(0x106),'required':!![],'description':a64_0x5cefc1(0x10a)}],async 'validate'(_0x249932){readBindingInput(_0x249932);},async 'dryRun'(_0x420805){const _0x5c9c16=a64_0x5cefc1,{provider:_0x5622ba,accountId:_0x324813}=readBindingInput(_0x420805);return{...buildBindingData(_0x5622ba,_0x324813,!![]),'method':_0x5c9c16(0xfe),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x5622ba,'accountId':_0x324813}};},async 'execute'(_0x4da945){const _0x3ac1e7=a64_0x5cefc1,{provider:_0x457c28,accountId:_0x364e27}=readBindingInput(_0x4da945),_0x497616=await bindExternalUserAccount(_0x457c28,_0x364e27);if(_0x497616!==!![])throw CliErrors[_0x3ac1e7(0xf2)]('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x3ac1e7(0xe7));return{'ok':!![],'data':buildBindingData(_0x457c28,_0x364e27,![]),'message':_0x3ac1e7(0xf1)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const userAccountDefinitions: CommandDefinition[];
@@ -0,0 +1 @@
1
+ (function(_0x16c87d,_0x3ff9f2){const _0x7de2f3=a65_0x4c04,_0x347959=_0x16c87d();while(!![]){try{const _0x1d8025=-parseInt(_0x7de2f3(0x12e))/0x1+-parseInt(_0x7de2f3(0x12a))/0x2*(-parseInt(_0x7de2f3(0x12c))/0x3)+parseInt(_0x7de2f3(0x12b))/0x4+-parseInt(_0x7de2f3(0x130))/0x5*(-parseInt(_0x7de2f3(0x12d))/0x6)+-parseInt(_0x7de2f3(0x131))/0x7+parseInt(_0x7de2f3(0x12f))/0x8+parseInt(_0x7de2f3(0x129))/0x9;if(_0x1d8025===_0x3ff9f2)break;else _0x347959['push'](_0x347959['shift']());}catch(_0x5e26d1){_0x347959['push'](_0x347959['shift']());}}}(a65_0x17c9,0x7bea1));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a65_0x4c04(_0xba0a7a,_0x4925a7){_0xba0a7a=_0xba0a7a-0x129;const _0x17c9d7=a65_0x17c9();let _0x4c048b=_0x17c9d7[_0xba0a7a];return _0x4c048b;}function a65_0x17c9(){const _0x546e88=['5ZvrTHj','3683295PUYmLi','425214BoeAOE','174598gtvcMr','2547132UgIlnB','6yFdvzR','2147442KigZnI','484175nRALZG','2411032ZlUWNe'];a65_0x17c9=function(){return _0x546e88;};return a65_0x17c9();}