@lovrabet/lovrabet-cli 2.2.4-beta.2 → 2.2.4-beta.3

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 (160) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.d.ts +19 -0
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/schema.js +1 -1
  90. package/lib/constant/app.js +1 -1
  91. package/lib/constant/auth-mode.js +1 -1
  92. package/lib/constant/cli.js +1 -1
  93. package/lib/constant/defaults.js +1 -1
  94. package/lib/constant/distribution.js +1 -1
  95. package/lib/constant/domain.js +1 -1
  96. package/lib/constant/env.js +1 -1
  97. package/lib/constant/output.js +1 -1
  98. package/lib/constant/product.js +1 -1
  99. package/lib/constant/risk.js +1 -1
  100. package/lib/constant/url.js +1 -1
  101. package/lib/context.js +1 -1
  102. package/lib/core/api-client.js +1 -1
  103. package/lib/core/db-resolver.js +1 -1
  104. package/lib/core/sdk-client.js +1 -1
  105. package/lib/errors.js +1 -1
  106. package/lib/framework/build-all-flags.js +1 -1
  107. package/lib/framework/dryrun.js +1 -1
  108. package/lib/framework/flags.js +1 -1
  109. package/lib/framework/help.js +1 -1
  110. package/lib/framework/index.js +1 -1
  111. package/lib/framework/output.js +1 -1
  112. package/lib/framework/preparse.js +1 -1
  113. package/lib/framework/rate-limit.js +1 -1
  114. package/lib/framework/raw-flags.js +1 -1
  115. package/lib/framework/response.js +1 -1
  116. package/lib/framework/runner-confirmation.js +1 -1
  117. package/lib/framework/runner-error.js +1 -1
  118. package/lib/framework/runner.js +1 -1
  119. package/lib/framework/schema-export.js +1 -1
  120. package/lib/framework/service-order.js +1 -1
  121. package/lib/framework/types.js +1 -1
  122. package/lib/generated/build-info.d.ts +4 -4
  123. package/lib/generated/build-info.js +1 -1
  124. package/lib/help.js +1 -1
  125. package/lib/postinstall.js +1 -1
  126. package/lib/runtime/confirmation.js +1 -1
  127. package/lib/runtime/event.js +1 -1
  128. package/lib/runtime/index.js +1 -1
  129. package/lib/runtime/queue.js +1 -1
  130. package/lib/runtime/resolve.js +1 -1
  131. package/lib/skills/builtin-skill.js +1 -1
  132. package/lib/skills/npx-skills-add.js +1 -1
  133. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  134. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  135. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  136. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  137. package/lib/skills/runtime-skill-sync/links.js +1 -1
  138. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  139. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  140. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  141. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  142. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  143. package/lib/skills/runtime-skill-sync/push.js +1 -1
  144. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  146. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  147. package/lib/skills/runtime-skill-sync.js +1 -1
  148. package/lib/skills/skill-presence.js +1 -1
  149. package/lib/utils/apply-jq-filter.js +1 -1
  150. package/lib/utils/logger.js +1 -1
  151. package/lib/utils/lossless-json.js +1 -1
  152. package/lib/utils/params.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/update-notice.js +1 -1
  155. package/lib/utils/version.js +1 -1
  156. package/lib/utils/write-cli-side-channel.js +1 -1
  157. package/package.json +1 -1
  158. package/skills/lovrabet/SKILL.md +4 -4
  159. package/skills/lovrabet/references/lovrabet-ocr-workflow.md +17 -2
  160. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a68_0x40ae34=a68_0x51e5;(function(_0x4f94ea,_0x3a17ae){const _0x39012a=a68_0x51e5,_0x2583b8=_0x4f94ea();while(!![]){try{const _0x30f454=parseInt(_0x39012a(0x1f6))/0x1*(-parseInt(_0x39012a(0x1f4))/0x2)+-parseInt(_0x39012a(0x1fb))/0x3+parseInt(_0x39012a(0x1f8))/0x4+-parseInt(_0x39012a(0x1ff))/0x5*(parseInt(_0x39012a(0x202))/0x6)+parseInt(_0x39012a(0x1f3))/0x7+parseInt(_0x39012a(0x1fa))/0x8+parseInt(_0x39012a(0x203))/0x9*(-parseInt(_0x39012a(0x204))/0xa);if(_0x30f454===_0x3a17ae)break;else _0x2583b8['push'](_0x2583b8['shift']());}catch(_0x57ef45){_0x2583b8['push'](_0x2583b8['shift']());}}}(a68_0x4506,0xbfb2a));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a68_0x51e5(_0x7c01c8,_0x53a0a1){_0x7c01c8=_0x7c01c8-0x1f3;const _0x4506f4=a68_0x4506();let _0x51e583=_0x4506f4[_0x7c01c8];return _0x51e583;}function a68_0x4506(){const _0x1d34fe=['Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','12313352YqCQJZ','1317366fGeqRO','validate','Skill\x20validation\x20passed.','skill','55YzALle','str','type','229242MwEkHI','278172LuQySK','160iTkZZz','4326329bdBxTv','2Tgazyp','errors','1011779CpgPmP','dir','3974736NWFmzf'];a68_0x4506=function(){return _0x1d34fe;};return a68_0x4506();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a68_0x40ae34(0x1fe),'command':a68_0x40ae34(0x1fc),'description':a68_0x40ae34(0x1f9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x340eb1){const _0x3fe97d=a68_0x40ae34,_0x25f350=_0x340eb1['bool']('strict'),_0x35ec3d=validateSkillDirectory(_0x340eb1[_0x3fe97d(0x200)](_0x3fe97d(0x1f7)),{'strict':_0x25f350});return throwIfSkillValidationFailed(_0x35ec3d,_0x25f350),{'ok':!![],'data':{'dir':_0x35ec3d[_0x3fe97d(0x1f7)],'type':_0x35ec3d[_0x3fe97d(0x201)],'errors':_0x35ec3d[_0x3fe97d(0x1f5)],'warnings':_0x35ec3d['warnings']},'message':_0x3fe97d(0x1fd)};}};
1
+ const a68_0x1504c2=a68_0x17b7;function a68_0x17b7(_0x2fc70a,_0x4c91cc){_0x2fc70a=_0x2fc70a-0x12c;const _0x99ee75=a68_0x99ee();let _0x17b7f0=_0x99ee75[_0x2fc70a];return _0x17b7f0;}(function(_0xb14f74,_0x285da1){const _0x40eb98=a68_0x17b7,_0x348fec=_0xb14f74();while(!![]){try{const _0x154c31=parseInt(_0x40eb98(0x12e))/0x1+-parseInt(_0x40eb98(0x137))/0x2+parseInt(_0x40eb98(0x139))/0x3*(-parseInt(_0x40eb98(0x12c))/0x4)+-parseInt(_0x40eb98(0x135))/0x5+-parseInt(_0x40eb98(0x13c))/0x6+parseInt(_0x40eb98(0x13a))/0x7*(-parseInt(_0x40eb98(0x130))/0x8)+parseInt(_0x40eb98(0x133))/0x9*(parseInt(_0x40eb98(0x12f))/0xa);if(_0x154c31===_0x285da1)break;else _0x348fec['push'](_0x348fec['shift']());}catch(_0x173830){_0x348fec['push'](_0x348fec['shift']());}}}(a68_0x99ee,0x27d84));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a68_0x99ee(){const _0x3509c9=['validate','23862FddbsJ','12bPaNfO','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','98739mBZmep','10gIzouW','1431912aNDuWo','read','dir','5013891wyrtyM','str','765245rOUMao','strict','251942fOyKSv','errors','30648mWkVnY','7sPaltz'];a68_0x99ee=function(){return _0x3509c9;};return a68_0x99ee();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a68_0x1504c2(0x13b),'description':a68_0x1504c2(0x12d),'risk':a68_0x1504c2(0x131),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x286aa7){const _0x3dda75=a68_0x1504c2,_0x434cae=_0x286aa7['bool'](_0x3dda75(0x136)),_0xc991cf=validateSkillDirectory(_0x286aa7[_0x3dda75(0x134)]('dir'),{'strict':_0x434cae});return throwIfSkillValidationFailed(_0xc991cf,_0x434cae),{'ok':!![],'data':{'dir':_0xc991cf[_0x3dda75(0x132)],'type':_0xc991cf['type'],'errors':_0xc991cf[_0x3dda75(0x138)],'warnings':_0xc991cf['warnings']},'message':'Skill\x20validation\x20passed.'};}};
@@ -1 +1 @@
1
- (function(_0x58a2ad,_0x55ffbe){const _0x4f9080=a69_0x4993,_0x25c120=_0x58a2ad();while(!![]){try{const _0x1fdf89=parseInt(_0x4f9080(0x1c8))/0x1*(parseInt(_0x4f9080(0x1d7))/0x2)+parseInt(_0x4f9080(0x1cb))/0x3+-parseInt(_0x4f9080(0x1cc))/0x4*(parseInt(_0x4f9080(0x1d9))/0x5)+parseInt(_0x4f9080(0x1db))/0x6*(parseInt(_0x4f9080(0x1d6))/0x7)+parseInt(_0x4f9080(0x1cf))/0x8+parseInt(_0x4f9080(0x1d2))/0x9+-parseInt(_0x4f9080(0x1d4))/0xa;if(_0x1fdf89===_0x55ffbe)break;else _0x25c120['push'](_0x25c120['shift']());}catch(_0x5ade9d){_0x25c120['push'](_0x25c120['shift']());}}}(a69_0x8336,0xa08ca));function a69_0x4993(_0x2450e8,_0x1676cf){_0x2450e8=_0x2450e8-0x1c5;const _0x833648=a69_0x8336();let _0x499342=_0x833648[_0x2450e8];return _0x499342;}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0xdb1539){const _0xf63cf4=a69_0x4993;return(await readRequiredSkillDiagramInput(_0xdb1539))[_0xf63cf4(0x1d5)];}export async function readRequiredSkillDiagramInput(_0x469516){const _0x305387=a69_0x4993,_0x48400d=_0x469516['trim']();if(!_0x48400d)throw CliErrors[_0x305387(0x1dc)](_0x305387(0x1da),_0x305387(0x1ca));let _0x352e0e,_0x4c5dfe;if(_0x48400d==='-')try{_0x352e0e=readFileSync(0x0,'utf8');}catch{throw CliErrors['validation']('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0xbf3d6b=resolve(_0x48400d);if(!existsSync(_0xbf3d6b))throw CliErrors['validation']('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0xbf3d6b);if(!statSync(_0xbf3d6b)[_0x305387(0x1de)]())throw CliErrors[_0x305387(0x1dc)](_0x305387(0x1ce)+_0xbf3d6b);_0x4c5dfe=realpathSync(_0xbf3d6b),_0x352e0e=readFileSync(_0x4c5dfe,_0x305387(0x1c7));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x352e0e)},'sourceFilePath':_0x4c5dfe};}export async function validateAndCanonicalizeMermaid(_0x4e29bf){const _0x66134d=a69_0x4993,_0x48ef83=_0x4e29bf[_0x66134d(0x1c6)](/\r\n/g,'\x0a')[_0x66134d(0x1c6)](/\r/g,'\x0a')[_0x66134d(0x1c6)](/\n+$/,'')+'\x0a';try{const _0x4822ac=await loadMermaidApi();await _0x4822ac[_0x66134d(0x1c9)](_0x48ef83);}catch{throw diagramValidationError();}return _0x48ef83;}function a69_0x8336(){const _0x4045b9=['parse','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','915558BoABHu','4EeMSnP','defineProperties','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','6983784sjvxkS','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','mermaid','11738160XMmpzk','document','19544220DTTyYK','diagram','14hcmcpR','368obVQsV','default','3061865nRhyjJ','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','43410wFJCIm','validation','Mermaid\x20syntax\x20validation\x20failed.','isFile','window','replace','utf8','3954yhCnlt'];a69_0x8336=function(){return _0x4045b9;};return a69_0x8336();}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x33493e=a69_0x4993;if(!(_0x33493e(0x1c5)in globalThis)||!(_0x33493e(0x1d3)in globalThis)){const _0x433405=new JSDOM('');Object[_0x33493e(0x1cd)](globalThis,{'window':{'configurable':!![],'value':_0x433405[_0x33493e(0x1c5)]},'document':{'configurable':!![],'value':_0x433405[_0x33493e(0x1c5)][_0x33493e(0x1d3)]}});}return(await import(_0x33493e(0x1d1)))[_0x33493e(0x1d8)];})()),mermaidApiPromise;}function diagramValidationError(){const _0xbd44f4=a69_0x4993;return CliErrors['validation'](_0xbd44f4(0x1dd),_0xbd44f4(0x1d0));}
1
+ (function(_0x4b8a2c,_0x45d60a){const _0x5472c6=a69_0x3ac5,_0x2354fc=_0x4b8a2c();while(!![]){try{const _0x49eb33=-parseInt(_0x5472c6(0xfa))/0x1*(-parseInt(_0x5472c6(0xfd))/0x2)+parseInt(_0x5472c6(0x101))/0x3+parseInt(_0x5472c6(0xf5))/0x4+-parseInt(_0x5472c6(0xf9))/0x5+parseInt(_0x5472c6(0xee))/0x6+parseInt(_0x5472c6(0xf8))/0x7+-parseInt(_0x5472c6(0xf4))/0x8;if(_0x49eb33===_0x45d60a)break;else _0x2354fc['push'](_0x2354fc['shift']());}catch(_0x51f57a){_0x2354fc['push'](_0x2354fc['shift']());}}}(a69_0x39b3,0x2fc01));function a69_0x39b3(){const _0x18f603=['774484lqscDj','mermaid','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','689871DpnAyI','1510675JgNvYi','95971wlOACJ','isFile','defineProperties','2eJoAWi','utf8','parse','replace','558087eDhiWa','validation','diagram','trim','1561080lAeqbF','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','default','document','Mermaid\x20syntax\x20validation\x20failed.','window','2693072PhxPIP'];a69_0x39b3=function(){return _0x18f603;};return a69_0x39b3();}import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x143eef){const _0x5ac971=a69_0x3ac5;return(await readRequiredSkillDiagramInput(_0x143eef))[_0x5ac971(0xec)];}function a69_0x3ac5(_0x3b33a5,_0x5ea6d7){_0x3b33a5=_0x3b33a5-0xeb;const _0x39b309=a69_0x39b3();let _0x3ac579=_0x39b309[_0x3b33a5];return _0x3ac579;}export async function readRequiredSkillDiagramInput(_0x2b2a93){const _0x389e49=a69_0x3ac5,_0x1dd478=_0x2b2a93[_0x389e49(0xed)]();if(!_0x1dd478)throw CliErrors[_0x389e49(0xeb)]('--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.');let _0x5dca33,_0x38c2c2;if(_0x1dd478==='-')try{_0x5dca33=readFileSync(0x0,_0x389e49(0xfe));}catch{throw CliErrors[_0x389e49(0xeb)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0x541b79=resolve(_0x1dd478);if(!existsSync(_0x541b79))throw CliErrors[_0x389e49(0xeb)](_0x389e49(0xf7)+_0x541b79);if(!statSync(_0x541b79)[_0x389e49(0xfb)]())throw CliErrors['validation']('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x541b79);_0x38c2c2=realpathSync(_0x541b79),_0x5dca33=readFileSync(_0x38c2c2,_0x389e49(0xfe));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x5dca33)},'sourceFilePath':_0x38c2c2};}export async function validateAndCanonicalizeMermaid(_0x472120){const _0x274623=a69_0x3ac5,_0xd314a5=_0x472120[_0x274623(0x100)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x274623(0x100)](/\n+$/,'')+'\x0a';try{const _0x4e1e68=await loadMermaidApi();await _0x4e1e68[_0x274623(0xff)](_0xd314a5);}catch{throw diagramValidationError();}return _0xd314a5;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x42ce79=a69_0x3ac5;if(!(_0x42ce79(0xf3)in globalThis)||!(_0x42ce79(0xf1)in globalThis)){const _0x4ab282=new JSDOM('');Object[_0x42ce79(0xfc)](globalThis,{'window':{'configurable':!![],'value':_0x4ab282[_0x42ce79(0xf3)]},'document':{'configurable':!![],'value':_0x4ab282['window']['document']}});}return(await import(_0x42ce79(0xf6)))[_0x42ce79(0xf0)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x4b55e8=a69_0x3ac5;return CliErrors[_0x4b55e8(0xeb)](_0x4b55e8(0xf2),_0x4b55e8(0xef));}
@@ -1 +1 @@
1
- const a70_0xdc0107=a70_0x4595;(function(_0x14995b,_0x1f7fb2){const _0xe673b6=a70_0x4595,_0x49b743=_0x14995b();while(!![]){try{const _0x24a9b0=-parseInt(_0xe673b6(0x143))/0x1*(parseInt(_0xe673b6(0x163))/0x2)+-parseInt(_0xe673b6(0x148))/0x3*(-parseInt(_0xe673b6(0x149))/0x4)+parseInt(_0xe673b6(0x13a))/0x5+-parseInt(_0xe673b6(0x14d))/0x6*(parseInt(_0xe673b6(0x165))/0x7)+-parseInt(_0xe673b6(0x14a))/0x8*(-parseInt(_0xe673b6(0x140))/0x9)+-parseInt(_0xe673b6(0x15b))/0xa*(parseInt(_0xe673b6(0x15d))/0xb)+parseInt(_0xe673b6(0x154))/0xc;if(_0x24a9b0===_0x1f7fb2)break;else _0x49b743['push'](_0x49b743['shift']());}catch(_0x5ad241){_0x49b743['push'](_0x49b743['shift']());}}}(a70_0x2954,0xf2d17));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a70_0xdc0107(0x15a),'type':a70_0xdc0107(0x142),'description':a70_0xdc0107(0x15f)};function a70_0x4595(_0x2c2526,_0x4f2548){_0x2c2526=_0x2c2526-0x13a;const _0x295443=a70_0x2954();let _0x459554=_0x295443[_0x2c2526];return _0x459554;}export const SCOPE_FLAG={'name':a70_0xdc0107(0x146),'type':'string','description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':['all',a70_0xdc0107(0x150),a70_0xdc0107(0x151)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a70_0xdc0107(0x142),'description':a70_0xdc0107(0x13c),'default':a70_0xdc0107(0x150),'enum':['personal',a70_0xdc0107(0x151)]};export const LIST_SCOPE_FLAG={'name':a70_0xdc0107(0x146),'type':a70_0xdc0107(0x142),'description':a70_0xdc0107(0x13e),'enum':['all',a70_0xdc0107(0x150),a70_0xdc0107(0x151)]};export const LOCAL_FLAG={'name':'local','type':a70_0xdc0107(0x14f),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a70_0xdc0107(0x158),'type':a70_0xdc0107(0x142),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':'diagram-file','type':a70_0xdc0107(0x142),'required':!![],'description':a70_0xdc0107(0x164)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a70_0xdc0107(0x153),'type':a70_0xdc0107(0x142),'required':!![],'description':a70_0xdc0107(0x162)};export const DIAGRAM_VERSION_FLAG={'name':a70_0xdc0107(0x166),'type':a70_0xdc0107(0x142),'required':!![],'description':a70_0xdc0107(0x15c)};function a70_0x2954(){const _0x321349=['a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','code','10YiiPZk','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','16378835ynOUFY','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','expected-diagram-revision','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','744644ZSXgdg','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','1020159pGlqjt','version','9841695QmRglu','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','name','33291NjOyaB','type','string','2tBjINH','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','scope','target','211368sGshbi','44aJKxCq','3896YpongS','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','60RScpPC','strict','boolean','personal','company','project','skill-code','1689768TTSRYX','source-fingerprint','confirm-warnings','force','dir'];a70_0x2954=function(){return _0x321349;};return a70_0x2954();}export const DIAGRAM_SCOPE_FLAG={'name':a70_0xdc0107(0x146),'type':'string','required':!![],'enum':[a70_0xdc0107(0x150),a70_0xdc0107(0x151)],'description':a70_0xdc0107(0x14b)};export const SOURCE_FINGERPRINT_FLAG={'name':a70_0xdc0107(0x155),'type':a70_0xdc0107(0x142),'required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a70_0xdc0107(0x159)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a70_0xdc0107(0x161),'type':'number','required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':a70_0xdc0107(0x13f),'type':a70_0xdc0107(0x142),'required':!![],'description':a70_0xdc0107(0x145),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a70_0xdc0107(0x160)}};export const TYPE_FLAG={'name':a70_0xdc0107(0x141),'type':a70_0xdc0107(0x142),'description':a70_0xdc0107(0x144),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a70_0xdc0107(0x147),'type':a70_0xdc0107(0x142),'description':a70_0xdc0107(0x13d),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a70_0xdc0107(0x157),'type':'boolean','description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':a70_0xdc0107(0x152),'type':'boolean','description':a70_0xdc0107(0x13b)};export const CONFIRM_WARNINGS_FLAG={'name':a70_0xdc0107(0x156),'type':a70_0xdc0107(0x14f),'description':a70_0xdc0107(0x15e)};export const STRICT_FLAG={'name':a70_0xdc0107(0x14e),'type':a70_0xdc0107(0x14f),'description':a70_0xdc0107(0x14c)};
1
+ function a70_0x5c5a(){const _0x3203c6=['expected-diagram-revision','4uqmAcK','target','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','173286XBKMvZ','name','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','dir','string','324057AkFmVZ','8YuceDw','boolean','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','source-fingerprint','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','184960UFIqBD','code','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','company','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','all','1670634FOApLV','strict','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','1252032TaMagX','scope','diagram-file','173132uiiTcx','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','personal','937048byrIxv','Local\x20Skill\x20directory\x20containing\x20SKILL.md','local','confirm-warnings','project','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','skill-code'];a70_0x5c5a=function(){return _0x3203c6;};return a70_0x5c5a();}const a70_0x17b7f5=a70_0x538c;(function(_0x1ac6b5,_0xacc08d){const _0x1edd2a=a70_0x538c,_0x35f6b0=_0x1ac6b5();while(!![]){try{const _0x2ae937=parseInt(_0x1edd2a(0xc6))/0x1+parseInt(_0x1edd2a(0xc3))/0x2*(parseInt(_0x1edd2a(0xcb))/0x3)+-parseInt(_0x1edd2a(0xb5))/0x4+parseInt(_0x1edd2a(0xa7))/0x5+-parseInt(_0x1edd2a(0xb2))/0x6+parseInt(_0x1edd2a(0xba))/0x7+-parseInt(_0x1edd2a(0xcc))/0x8*(parseInt(_0x1edd2a(0xaf))/0x9);if(_0x2ae937===_0xacc08d)break;else _0x35f6b0['push'](_0x35f6b0['shift']());}catch(_0x5ceaef){_0x35f6b0['push'](_0x35f6b0['shift']());}}}(a70_0x5c5a,0x1dee7));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a70_0x17b7f5(0xa8),'type':a70_0x17b7f5(0xca),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a70_0x17b7f5(0xb3),'type':'string','description':a70_0x17b7f5(0xc0),'enum':[a70_0x17b7f5(0xae),a70_0x17b7f5(0xb9),'company']};export const PUSH_SCOPE_FLAG={'name':a70_0x17b7f5(0xb3),'type':a70_0x17b7f5(0xca),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a70_0x17b7f5(0xb9),'enum':[a70_0x17b7f5(0xb9),a70_0x17b7f5(0xaa)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a70_0x17b7f5(0xca),'description':a70_0x17b7f5(0xb7),'enum':['all',a70_0x17b7f5(0xb9),a70_0x17b7f5(0xaa)]};export const LOCAL_FLAG={'name':a70_0x17b7f5(0xbc),'type':a70_0x17b7f5(0xcd),'description':a70_0x17b7f5(0xa6)};export const DIR_FLAG={'name':a70_0x17b7f5(0xc9),'type':a70_0x17b7f5(0xca),'required':!![],'description':a70_0x17b7f5(0xbb)};export const DIAGRAM_FILE_FLAG={'name':a70_0x17b7f5(0xb4),'type':a70_0x17b7f5(0xca),'required':!![],'description':a70_0x17b7f5(0xb8)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a70_0x17b7f5(0xc1),'type':'string','required':!![],'description':a70_0x17b7f5(0xb1)};function a70_0x538c(_0xcfd85a,_0x2001c3){_0xcfd85a=_0xcfd85a-0xa3;const _0x5c5ad4=a70_0x5c5a();let _0x538cc7=_0x5c5ad4[_0xcfd85a];return _0x538cc7;}export const DIAGRAM_VERSION_FLAG={'name':'version','type':'string','required':!![],'description':a70_0x17b7f5(0xac)};export const DIAGRAM_SCOPE_FLAG={'name':'scope','type':'string','required':!![],'enum':[a70_0x17b7f5(0xb9),a70_0x17b7f5(0xaa)],'description':a70_0x17b7f5(0xa9)};export const SOURCE_FINGERPRINT_FLAG={'name':a70_0x17b7f5(0xa5),'type':a70_0x17b7f5(0xca),'required':!![],'description':a70_0x17b7f5(0xb6),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a70_0x17b7f5(0xab)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a70_0x17b7f5(0xc2),'type':'number','required':!![],'description':a70_0x17b7f5(0xad)};export const CREATE_NAME_FLAG={'name':a70_0x17b7f5(0xc7),'type':a70_0x17b7f5(0xca),'required':!![],'description':a70_0x17b7f5(0xc5),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':'type','type':a70_0x17b7f5(0xca),'description':a70_0x17b7f5(0xce),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a70_0x17b7f5(0xc4),'type':a70_0x17b7f5(0xca),'description':a70_0x17b7f5(0xc8),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a70_0x17b7f5(0xcd),'description':a70_0x17b7f5(0xbf)};export const PROJECT_TARGET_FLAG={'name':a70_0x17b7f5(0xbe),'type':a70_0x17b7f5(0xcd),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a70_0x17b7f5(0xbd),'type':'boolean','description':a70_0x17b7f5(0xa3)};export const STRICT_FLAG={'name':a70_0x17b7f5(0xb0),'type':a70_0x17b7f5(0xcd),'description':a70_0x17b7f5(0xa4)};
@@ -1 +1 @@
1
- (function(_0x55c060,_0x51ff36){const _0x5ee00b=a71_0x163a,_0x5c00d8=_0x55c060();while(!![]){try{const _0x4de29c=-parseInt(_0x5ee00b(0xfa))/0x1+-parseInt(_0x5ee00b(0xf9))/0x2*(parseInt(_0x5ee00b(0xf1))/0x3)+parseInt(_0x5ee00b(0xf3))/0x4*(parseInt(_0x5ee00b(0xf8))/0x5)+parseInt(_0x5ee00b(0xf0))/0x6+parseInt(_0x5ee00b(0xf2))/0x7*(-parseInt(_0x5ee00b(0xf4))/0x8)+parseInt(_0x5ee00b(0xf5))/0x9*(-parseInt(_0x5ee00b(0xf6))/0xa)+parseInt(_0x5ee00b(0xf7))/0xb;if(_0x4de29c===_0x51ff36)break;else _0x5c00d8['push'](_0x5c00d8['shift']());}catch(_0x4a083e){_0x5c00d8['push'](_0x5c00d8['shift']());}}}(a71_0x5069,0x561a8));function a71_0x5069(){const _0x235582=['17307037ruXwut','1696535ZhTIkD','58BbkUny','533886SIJNIo','511290wMJnJN','48057edOdCN','263494ynfxcp','4XSUJCv','112dUQgrd','51336THhOWQ','210GiWvzw'];a71_0x5069=function(){return _0x235582;};return a71_0x5069();}function a71_0x163a(_0x5ba385,_0x3c665d){_0x5ba385=_0x5ba385-0xf0;const _0x5069ba=a71_0x5069();let _0x163af4=_0x5069ba[_0x5ba385];return _0x163af4;}import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
1
+ function a71_0x52ff(){const _0x1ea1bb=['272JqemsM','1034358dJEFfq','18174717QuhrLB','3834047QMARWo','1926ojqEko','3747444jiBLPp','5585ufhDpr','133plrWbL','3153648YzQQyS'];a71_0x52ff=function(){return _0x1ea1bb;};return a71_0x52ff();}(function(_0x3d3622,_0x7fe7d){const _0x39fa2e=a71_0x2ea1,_0x4e0775=_0x3d3622();while(!![]){try{const _0x11e04f=-parseInt(_0x39fa2e(0xf5))/0x1*(-parseInt(_0x39fa2e(0xee))/0x2)+-parseInt(_0x39fa2e(0xef))/0x3+-parseInt(_0x39fa2e(0xf3))/0x4+parseInt(_0x39fa2e(0xf4))/0x5*(-parseInt(_0x39fa2e(0xf2))/0x6)+parseInt(_0x39fa2e(0xf1))/0x7+-parseInt(_0x39fa2e(0xed))/0x8+parseInt(_0x39fa2e(0xf0))/0x9;if(_0x11e04f===_0x7fe7d)break;else _0x4e0775['push'](_0x4e0775['shift']());}catch(_0x2656c2){_0x4e0775['push'](_0x4e0775['shift']());}}}(a71_0x52ff,0x8679c));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a71_0x2ea1(_0x5d46d3,_0x49f649){_0x5d46d3=_0x5d46d3-0xed;const _0x52ff25=a71_0x52ff();let _0x2ea1d3=_0x52ff25[_0x5d46d3];return _0x2ea1d3;}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 a72_0x2d7c(_0x529d60,_0x5dc6fd){_0x529d60=_0x529d60-0xbd;var _0x4f3c3e=a72_0x4f3c();var _0x2d7c6a=_0x4f3c3e[_0x529d60];return _0x2d7c6a;}function a72_0x4f3c(){var _0x54b560=['object','path','string','3569532Thffsr','166615QafuBI','47872Fpfuzl','length','some','539926BwbXLK','6529747zBvvMS','files','ossPath','52ivBNqO','1855158cKUXMv','isArray','5770540sdXkOH','2oRSZGg','9XJrVtN'];a72_0x4f3c=function(){return _0x54b560;};return a72_0x4f3c();}(function(_0x52ce53,_0x3412b2){var _0x46f730=a72_0x2d7c,_0x5e6947=_0x52ce53();while(!![]){try{var _0x4c804d=parseInt(_0x46f730(0xcd))/0x1*(parseInt(_0x46f730(0xc5))/0x2)+parseInt(_0x46f730(0xca))/0x3+parseInt(_0x46f730(0xc9))/0x4*(-parseInt(_0x46f730(0xc1))/0x5)+-parseInt(_0x46f730(0xc0))/0x6+parseInt(_0x46f730(0xc6))/0x7+parseInt(_0x46f730(0xc2))/0x8+parseInt(_0x46f730(0xce))/0x9*(-parseInt(_0x46f730(0xcc))/0xa);if(_0x4c804d===_0x3412b2)break;else _0x5e6947['push'](_0x5e6947['shift']());}catch(_0x304f7d){_0x5e6947['push'](_0x5e6947['shift']());}}}(a72_0x4f3c,0x781a6));export function isPackageBackedManifest(_0x2df836){var _0x137521=a72_0x2d7c;return!!_0x2df836&&typeof _0x2df836===_0x137521(0xbd)&&!Array[_0x137521(0xcb)](_0x2df836)&&typeof _0x2df836[_0x137521(0xc8)]===_0x137521(0xbf)&&_0x2df836[_0x137521(0xc8)][_0x137521(0xc3)]>0x0&&Array['isArray'](_0x2df836[_0x137521(0xc7)]);}export function isMultiFileManifest(_0x3a7e5d){var _0x2d3eca=a72_0x2d7c;return!!_0x3a7e5d&&typeof _0x3a7e5d===_0x2d3eca(0xbd)&&!Array[_0x2d3eca(0xcb)](_0x3a7e5d)&&Array['isArray'](_0x3a7e5d['files'])&&_0x3a7e5d['files'][_0x2d3eca(0xc4)](_0x159db0=>_0x159db0[_0x2d3eca(0xbe)]!=='SKILL.md');}
1
+ (function(_0x1a2022,_0x42d8d5){var _0x492586=a72_0x4783,_0x32975c=_0x1a2022();while(!![]){try{var _0x226ae9=-parseInt(_0x492586(0xaf))/0x1+parseInt(_0x492586(0xbe))/0x2*(-parseInt(_0x492586(0xad))/0x3)+parseInt(_0x492586(0xbd))/0x4*(parseInt(_0x492586(0xba))/0x5)+-parseInt(_0x492586(0xb5))/0x6*(parseInt(_0x492586(0xb1))/0x7)+-parseInt(_0x492586(0xae))/0x8+parseInt(_0x492586(0xc0))/0x9*(-parseInt(_0x492586(0xb4))/0xa)+parseInt(_0x492586(0xb9))/0xb*(parseInt(_0x492586(0xb2))/0xc);if(_0x226ae9===_0x42d8d5)break;else _0x32975c['push'](_0x32975c['shift']());}catch(_0x2999b9){_0x32975c['push'](_0x32975c['shift']());}}}(a72_0xd320,0xca13c));export function isPackageBackedManifest(_0x3d54d0){var _0xd0ad4b=a72_0x4783;return!!_0x3d54d0&&typeof _0x3d54d0===_0xd0ad4b(0xbc)&&!Array[_0xd0ad4b(0xb0)](_0x3d54d0)&&typeof _0x3d54d0['ossPath']===_0xd0ad4b(0xb7)&&_0x3d54d0[_0xd0ad4b(0xb6)][_0xd0ad4b(0xb3)]>0x0&&Array['isArray'](_0x3d54d0[_0xd0ad4b(0xbb)]);}export function isMultiFileManifest(_0xa901a){var _0x595d4f=a72_0x4783;return!!_0xa901a&&typeof _0xa901a==='object'&&!Array[_0x595d4f(0xb0)](_0xa901a)&&Array[_0x595d4f(0xb0)](_0xa901a[_0x595d4f(0xbb)])&&_0xa901a[_0x595d4f(0xbb)][_0x595d4f(0xbf)](_0x6e4410=>_0x6e4410[_0x595d4f(0xb8)]!=='SKILL.md');}function a72_0x4783(_0x17072d,_0x407794){_0x17072d=_0x17072d-0xad;var _0xd320af=a72_0xd320();var _0x4783fc=_0xd320af[_0x17072d];return _0x4783fc;}function a72_0xd320(){var _0x58aa04=['186116yHDGCf','528posLHw','length','10jiJSaI','12aqyOVM','ossPath','string','path','789371OQXDxj','145OkcyrF','files','object','132540FwtUPZ','32wDONut','some','9681444quFthH','15747hGfURO','8114648lavmSr','1063484LXzpjS','isArray'];a72_0xd320=function(){return _0x58aa04;};return a72_0xd320();}
@@ -1 +1 @@
1
- (function(_0x345f1f,_0x5a6635){const _0x522328=a73_0x877a,_0x1f0872=_0x345f1f();while(!![]){try{const _0x228acc=parseInt(_0x522328(0xa2))/0x1+parseInt(_0x522328(0xcb))/0x2*(parseInt(_0x522328(0xbf))/0x3)+parseInt(_0x522328(0x9f))/0x4*(parseInt(_0x522328(0xa6))/0x5)+-parseInt(_0x522328(0xb0))/0x6*(-parseInt(_0x522328(0xa7))/0x7)+-parseInt(_0x522328(0xb4))/0x8+parseInt(_0x522328(0xa5))/0x9+-parseInt(_0x522328(0xd1))/0xa;if(_0x228acc===_0x5a6635)break;else _0x1f0872['push'](_0x1f0872['shift']());}catch(_0xa8530f){_0x1f0872['push'](_0x1f0872['shift']());}}}(a73_0x4a44,0x50b3c));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';function a73_0x4a44(){const _0x3f4575=['\x20Skill\x20','appCode','../../core/api-client.js','diagram-file','Created\x20personal\x20Skill\x20','input','authRequired','diagramValidated','unknown','151852IaLJWr','publishInput','Company','remoteForPreflight','resolvedSlug','accessKey','13051090GacjlC','frontmatterDisplayName','Updated\x20personal\x20Skill\x20','\x20has\x20scope=\x22','skillCode','dir','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','NAMESPACE_ONLY','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','(unknown)','confirmWarnings','str','4fEUsJI','/api/cli/v1/skills/','personal','443859styHWv','validation','files','1686762DGYfEY','3015970rfGjcX','7lqhYrD','submitted','Personal','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','/publish/validate','appcode','savedSkill','existing','status','374586bSreZe','valid','POST','payload','1541752qUloUj','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','../../skills/runtime-skill-sync.js','\x20version\x20','\x20for\x20review','bool','PRIVATE','warnings','errors','trim','scope','21Ousuht','resolvedVersion','company'];a73_0x4a44=function(){return _0x3f4575;};return a73_0x4a44();}export async function skillPushDryRun(_0xc7a646){const _0x188440=a73_0x877a,{getRuntimeSkillByCode:_0x5715ad,validateRuntimeSkillPublish:_0xc04bc1}=await import(_0x188440(0xc4)),{readPushDirectory:_0x1bd640,resolvePushDirectoryIdentity:_0x145c58}=await import(_0x188440(0xb6));if(!_0xc7a646[_0x188440(0xd0)])throw CliErrors['authRequired']();const _0x46ad63=resolvePushScope(_0xc7a646),_0x25de30=validateSkillDirectory(_0xc7a646[_0x188440(0x9e)](_0x188440(0x98)));throwIfSkillValidationFailed(_0x25de30);const {diagram:_0x25f9d4,sourceFilePath:_0x27ff86}=await readRequiredSkillDiagramInput(_0xc7a646['str'](_0x188440(0xc5))),_0x2d5232=diagramPackageExclusion(_0x27ff86),_0x5aedf1=_0x145c58(_0x25de30[_0x188440(0x98)],_0xc7a646[_0x188440(0xc3)],remoteFirstMetadataOptions()),_0x26574f=await _0x5715ad(_0xc7a646[_0x188440(0xc3)],_0x5aedf1[_0x188440(0x97)]);throwIfBuiltinPushTarget(_0x26574f);if(_0x46ad63===_0x188440(0xc1)){const _0x207dbb=_0x1bd640(_0x25de30[_0x188440(0x98)],_0xc7a646[_0x188440(0xc3)],{...remoteMissingCompanyReadOptions(),..._0x2d5232}),_0x26603b=await _0xc04bc1(_0xc7a646[_0x188440(0xc3)],withDiagram(_0x207dbb[_0x188440(0xc7)],_0x25f9d4),{'visibility':_0x188440(0x9a)});return{'method':_0x188440(0xb2),'url':_0x188440(0xa0)+_0xc7a646[_0x188440(0xc3)]+'/publish/validate','body':{'skillCode':_0x207dbb[_0x188440(0x97)],'visibility':_0x188440(0x9a),'valid':_0x26603b[_0x188440(0xb1)],'errors':_0x26603b['errors'],'warnings':_0x26603b[_0x188440(0xbb)],'resolvedSlug':_0x26603b[_0x188440(0xcf)],'resolvedVersion':_0x26603b[_0x188440(0xc0)],'diagramValidated':_0x26603b[_0x188440(0xc9)]},'description':_0x188440(0x99)};}if(_0x26574f&&_0x26574f['scope']!=='personal')throw CliErrors[_0x188440(0xa3)](_0x188440(0x9b)+_0x5aedf1[_0x188440(0x97)]+'\x20has\x20scope=\x22'+(_0x26574f[_0x188440(0xbe)]??_0x188440(0xca))+'\x22.');const _0x29a390=_0x1bd640(_0x25de30[_0x188440(0x98)],_0xc7a646[_0x188440(0xc3)],{..._0x26574f?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x2d5232}),_0x53af68=await _0xc04bc1(_0xc7a646['appCode'],withDiagram(_0x29a390['input'],_0x25f9d4),{'visibility':_0x188440(0xba)});return{'method':_0x188440(0xb2),'url':'/api/cli/v1/skills/'+_0xc7a646[_0x188440(0xc3)]+_0x188440(0xab),'body':{'skillCode':_0x29a390[_0x188440(0x97)],'visibility':_0x188440(0xba),'valid':_0x53af68[_0x188440(0xb1)],'errors':_0x53af68[_0x188440(0xbc)],'warnings':_0x53af68['warnings'],'resolvedSlug':_0x53af68[_0x188440(0xcf)],'resolvedVersion':_0x53af68[_0x188440(0xc0)],'diagramValidated':_0x53af68[_0x188440(0xc9)]},'description':_0x188440(0xaa)};}export async function skillPushExecute(_0x237c0c){const _0x57c959=a73_0x877a,{createPersonalRuntimeSkill:_0x248d74,downloadRuntimeSkillPackage:_0x48bffa,getRuntimeSkillByCode:_0x111acd,publishCompanyRuntimeSkill:_0x7f3501,updatePersonalRuntimeSkill:_0x3c44f6,validateRuntimeSkillPublish:_0x55f82d}=await import(_0x57c959(0xc4)),{verifyRuntimeSkillPackage:_0x10bb96,verifyRuntimeSkillBundle:_0x287d0a,readPushDirectory:_0xb267f9,refreshPushDirectoryMetadataFromRemote:_0x313f09,recordPushedRuntimeSkill:_0x152c25,resolvePushDirectoryIdentity:_0x1726f0}=await import('../../skills/runtime-skill-sync.js');if(!_0x237c0c['accessKey'])throw CliErrors[_0x57c959(0xc8)]();const _0x1fd2ba=resolvePushScope(_0x237c0c),_0x34d8e9=_0x237c0c['bool']('confirm-warnings')||_0x237c0c[_0x57c959(0xb9)](_0x57c959(0x9d)),_0x5ba0f2=validateSkillDirectory(_0x237c0c['str']('dir'));throwIfSkillValidationFailed(_0x5ba0f2);const {diagram:_0x4844d4,sourceFilePath:_0x307ec8}=await readRequiredSkillDiagramInput(_0x237c0c[_0x57c959(0x9e)](_0x57c959(0xc5))),_0x2a5744=diagramPackageExclusion(_0x307ec8),_0x193b00=_0x5ba0f2[_0x57c959(0x98)];let _0x463dbf;if(_0x1fd2ba==='company'){const _0x8c5400=_0x1726f0(_0x193b00,_0x237c0c['appCode'],remoteFirstMetadataOptions()),_0x340070=await _0x111acd(_0x237c0c[_0x57c959(0xc3)],_0x8c5400[_0x57c959(0x97)]);throwIfBuiltinPushTarget(_0x340070);if(_0x340070)_0x313f09(_0x193b00,_0x340070,_0x237c0c[_0x57c959(0xc3)]);const _0xf99ba6=_0xb267f9(_0x193b00,_0x237c0c[_0x57c959(0xc3)],{..._0x340070?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2a5744});_0x463dbf={'scope':_0x57c959(0xc1),'payload':_0xf99ba6,'publishInput':withDiagram(_0xf99ba6[_0x57c959(0xc7)],_0x4844d4),'remoteForPreflight':_0x340070,'warnings':[]};}else{const _0x4da2ea=_0x237c0c[_0x57c959(0x9e)](_0x57c959(0xac))[_0x57c959(0xbd)](),_0x415767=Boolean(_0x4da2ea),_0x267f96=allowRetargetArgs(_0x415767),_0x25a9c5=_0x1726f0(_0x193b00,_0x237c0c[_0x57c959(0xc3)],{...remoteFirstMetadataOptions(),..._0x267f96[0x0]}),_0x20ea01=await _0x111acd(_0x237c0c[_0x57c959(0xc3)],_0x25a9c5[_0x57c959(0x97)]);throwIfBuiltinPushTarget(_0x20ea01);if(_0x20ea01){if(_0x20ea01['scope']!==_0x57c959(0xa1)){if(_0x415767)throw CliErrors[_0x57c959(0xa3)](_0x57c959(0x9b)+_0x25a9c5[_0x57c959(0x97)]+_0x57c959(0x96)+(_0x20ea01[_0x57c959(0xbe)]??'unknown')+'\x22.');_0x313f09(_0x193b00,_0x20ea01,_0x237c0c[_0x57c959(0xc3)]);}else!_0x415767&&_0x313f09(_0x193b00,_0x20ea01,_0x237c0c[_0x57c959(0xc3)]);}const _0x958f14=_0xb267f9(_0x193b00,_0x237c0c[_0x57c959(0xc3)],{..._0x20ea01?remotePersonalReadOptions(_0x415767,_0x267f96[0x0]):remoteMissingPersonalReadOptions(_0x267f96[0x0]),..._0x2a5744}),_0x471170=_0x20ea01?.[_0x57c959(0xbe)]===_0x57c959(0xa1)&&_0x20ea01['skillCode']===_0x958f14['skillCode']?_0x20ea01:undefined,_0x2e8309=_0x415767&&_0x471170?withRetargetExistingMetadata(_0x958f14[_0x57c959(0xc7)],_0x471170,{'preferInputSkillName':Boolean(_0x958f14[_0x57c959(0xd2)])}):_0x958f14['input'],_0x29732f=_0x415767?buildRetargetWarning(_0x25a9c5['metadata'],_0x237c0c[_0x57c959(0xc3)]):[];_0x463dbf={'scope':_0x57c959(0xa1),'payload':_0x958f14,'publishInput':withDiagram(_0x2e8309,_0x4844d4),'remoteForPreflight':_0x471170,'existing':_0x471170,'warnings':[..._0x5ba0f2[_0x57c959(0xbb)],..._0x29732f]};}const _0x4125ad=await runRemoteContentPreflight({'scope':_0x463dbf[_0x57c959(0xbe)],'remote':_0x463dbf[_0x57c959(0xce)],'publishInput':_0x463dbf['publishInput'],'skillCode':_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)],'appCode':_0x237c0c['appCode'],'downloadRuntimeSkillPackage':_0x48bffa,'verifyRuntimeSkillBundle':_0x287d0a});if(_0x4125ad[_0x57c959(0xaf)]==='identical')return _0x463dbf['scope']==='company'?_0x152c25(_0x193b00,_0x4125ad[_0x57c959(0xad)],_0x237c0c[_0x57c959(0xc3)],{'scope':_0x57c959(0xc1)}):_0x152c25(_0x193b00,_0x4125ad[_0x57c959(0xad)],_0x237c0c[_0x57c959(0xc3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4125ad[_0x57c959(0xad)]),'scope':_0x463dbf[_0x57c959(0xbe)],..._0x463dbf[_0x57c959(0xbe)]==='personal'?{'warnings':_0x463dbf['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x463dbf[_0x57c959(0xbe)])+_0x57c959(0xc2)+_0x463dbf[_0x57c959(0xb3)]['skillCode']+_0x57c959(0xb5)};if(_0x463dbf[_0x57c959(0xbe)]===_0x57c959(0xc1)){const _0x39ef10=await _0x55f82d(_0x237c0c[_0x57c959(0xc3)],_0x463dbf[_0x57c959(0xcc)],{'visibility':_0x57c959(0x9a)});throwIfPublishValidationFailed(_0x57c959(0xc1),_0x463dbf['payload'][_0x57c959(0x97)],_0x39ef10),throwIfUnconfirmedPublishWarnings(_0x57c959(0xc1),_0x463dbf['payload'][_0x57c959(0x97)],_0x39ef10[_0x57c959(0xbb)],_0x34d8e9);const _0x69f8d9=await _0x7f3501(_0x237c0c[_0x57c959(0xc3)],_0x463dbf[_0x57c959(0xcc)],{'confirmWarnings':_0x34d8e9});return _0x152c25(_0x193b00,{..._0x69f8d9,'files':_0x463dbf[_0x57c959(0xcc)][_0x57c959(0xa4)]},_0x237c0c['appCode'],{'scope':_0x57c959(0xc1)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x69f8d9),'scope':_0x57c959(0xc1),'reviewState':_0x57c959(0xa8),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x39ef10[_0x57c959(0xbb)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)]+_0x57c959(0xb7)+(_0x69f8d9['version']??_0x57c959(0x9c))+_0x57c959(0xb8)};}const _0x1d13e8=await _0x55f82d(_0x237c0c[_0x57c959(0xc3)],_0x463dbf[_0x57c959(0xcc)],{'visibility':_0x57c959(0xba)});throwIfPublishValidationFailed(_0x57c959(0xa1),_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)],_0x1d13e8),throwIfUnconfirmedPublishWarnings(_0x57c959(0xa1),_0x463dbf['payload'][_0x57c959(0x97)],_0x1d13e8['warnings'],_0x34d8e9);const _0x4cd953={'confirmWarnings':_0x34d8e9},_0x28a573=_0x463dbf['existing']?await _0x3c44f6(_0x463dbf[_0x57c959(0xb3)]['skillCode'],_0x237c0c[_0x57c959(0xc3)],_0x463dbf[_0x57c959(0xcc)],_0x4cd953):await _0x248d74(_0x237c0c[_0x57c959(0xc3)],_0x463dbf['publishInput'],_0x4cd953);let _0x3ecbee=_0x28a573;if(isMultiFileManifest(_0x463dbf[_0x57c959(0xcc)]['files'])){const _0x1eccfe=await _0x48bffa(_0x57c959(0xa1),_0x28a573['skillCode']||_0x463dbf[_0x57c959(0xb3)]['skillCode'],_0x237c0c[_0x57c959(0xc3)]);_0x287d0a(_0x463dbf[_0x57c959(0xcc)][_0x57c959(0xa4)],_0x1eccfe),_0x3ecbee={..._0x28a573,'files':_0x463dbf[_0x57c959(0xcc)][_0x57c959(0xa4)]};}else{if(isPackageBackedManifest(_0x28a573[_0x57c959(0xa4)])){const _0x1289c9=await _0x48bffa(_0x57c959(0xa1),_0x28a573[_0x57c959(0x97)]||_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)],_0x237c0c['appCode']);_0x10bb96(_0x28a573['files'],_0x1289c9);}}return _0x152c25(_0x193b00,_0x3ecbee,_0x237c0c[_0x57c959(0xc3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x28a573),'warnings':_0x463dbf[_0x57c959(0xbb)],'validation':{'warnings':_0x1d13e8[_0x57c959(0xbb)]},'diagramBound':!![]},'message':_0x463dbf[_0x57c959(0xae)]?_0x57c959(0x95)+_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)]:_0x57c959(0xc6)+_0x463dbf[_0x57c959(0xb3)][_0x57c959(0x97)]};}function scopeLabel(_0x237569){const _0x588bf5=a73_0x877a;return _0x237569===_0x588bf5(0xc1)?_0x588bf5(0xcd):_0x588bf5(0xa9);}function withDiagram(_0x5e88da,_0x536151){return{..._0x5e88da,'diagram':_0x536151};}function a73_0x877a(_0x2c440f,_0x2e65e2){_0x2c440f=_0x2c440f-0x95;const _0x4a4489=a73_0x4a44();let _0x877a3e=_0x4a4489[_0x2c440f];return _0x877a3e;}function diagramPackageExclusion(_0x53c37f){return _0x53c37f?{'excludedFilePaths':[_0x53c37f]}:{};}
1
+ (function(_0x2267b2,_0x4813a3){const _0x1bea85=a73_0xd0ed,_0x6965c7=_0x2267b2();while(!![]){try{const _0x5cf60f=-parseInt(_0x1bea85(0x11c))/0x1*(parseInt(_0x1bea85(0x10f))/0x2)+-parseInt(_0x1bea85(0x120))/0x3*(parseInt(_0x1bea85(0x12f))/0x4)+parseInt(_0x1bea85(0x10d))/0x5+-parseInt(_0x1bea85(0x125))/0x6*(-parseInt(_0x1bea85(0x103))/0x7)+-parseInt(_0x1bea85(0x114))/0x8+-parseInt(_0x1bea85(0x102))/0x9+-parseInt(_0x1bea85(0x104))/0xa*(-parseInt(_0x1bea85(0x131))/0xb);if(_0x5cf60f===_0x4813a3)break;else _0x6965c7['push'](_0x6965c7['shift']());}catch(_0x1428f8){_0x6965c7['push'](_0x6965c7['shift']());}}}(a73_0x4605,0x4fd09));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';function a73_0xd0ed(_0x142025,_0x4a7410){_0x142025=_0x142025-0x102;const _0x46058b=a73_0x4605();let _0xd0ed94=_0x46058b[_0x142025];return _0xd0ed94;}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1f9b2d){const _0x2158da=a73_0xd0ed,{getRuntimeSkillByCode:_0x14e875,validateRuntimeSkillPublish:_0x5620e7}=await import(_0x2158da(0x11f)),{readPushDirectory:_0x2a25ea,resolvePushDirectoryIdentity:_0x5d4131}=await import(_0x2158da(0x133));if(!_0x1f9b2d['accessKey'])throw CliErrors[_0x2158da(0x11b)]();const _0x3a213c=resolvePushScope(_0x1f9b2d),_0x114127=validateSkillDirectory(_0x1f9b2d[_0x2158da(0x138)](_0x2158da(0x124)));throwIfSkillValidationFailed(_0x114127);const {diagram:_0x4f7313,sourceFilePath:_0x5119d4}=await readRequiredSkillDiagramInput(_0x1f9b2d[_0x2158da(0x138)](_0x2158da(0x113))),_0x34fe50=diagramPackageExclusion(_0x5119d4),_0x62e96e=_0x5d4131(_0x114127['dir'],_0x1f9b2d[_0x2158da(0x127)],remoteFirstMetadataOptions()),_0x548a67=await _0x14e875(_0x1f9b2d['appCode'],_0x62e96e[_0x2158da(0x105)]);throwIfBuiltinPushTarget(_0x548a67);if(_0x3a213c===_0x2158da(0x107)){const _0x5c98fd=_0x2a25ea(_0x114127[_0x2158da(0x124)],_0x1f9b2d['appCode'],{...remoteMissingCompanyReadOptions(),..._0x34fe50}),_0x17dfef=await _0x5620e7(_0x1f9b2d[_0x2158da(0x127)],withDiagram(_0x5c98fd[_0x2158da(0x13b)],_0x4f7313),{'visibility':'NAMESPACE_ONLY'});return{'method':'POST','url':_0x2158da(0x129)+_0x1f9b2d[_0x2158da(0x127)]+_0x2158da(0x122),'body':{'skillCode':_0x5c98fd[_0x2158da(0x105)],'visibility':'NAMESPACE_ONLY','valid':_0x17dfef[_0x2158da(0x139)],'errors':_0x17dfef['errors'],'warnings':_0x17dfef[_0x2158da(0x116)],'resolvedSlug':_0x17dfef[_0x2158da(0x119)],'resolvedVersion':_0x17dfef['resolvedVersion'],'diagramValidated':_0x17dfef[_0x2158da(0x12b)]},'description':_0x2158da(0x12d)};}if(_0x548a67&&_0x548a67[_0x2158da(0x135)]!==_0x2158da(0x10c))throw CliErrors['validation'](_0x2158da(0x10b)+_0x62e96e[_0x2158da(0x105)]+'\x20has\x20scope=\x22'+(_0x548a67[_0x2158da(0x135)]??_0x2158da(0x121))+'\x22.');const _0x451388=_0x2a25ea(_0x114127['dir'],_0x1f9b2d['appCode'],{..._0x548a67?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x34fe50}),_0x4f359d=await _0x5620e7(_0x1f9b2d['appCode'],withDiagram(_0x451388[_0x2158da(0x13b)],_0x4f7313),{'visibility':'PRIVATE'});return{'method':_0x2158da(0x10a),'url':_0x2158da(0x129)+_0x1f9b2d[_0x2158da(0x127)]+'/publish/validate','body':{'skillCode':_0x451388[_0x2158da(0x105)],'visibility':'PRIVATE','valid':_0x4f359d[_0x2158da(0x139)],'errors':_0x4f359d[_0x2158da(0x12e)],'warnings':_0x4f359d['warnings'],'resolvedSlug':_0x4f359d['resolvedSlug'],'resolvedVersion':_0x4f359d[_0x2158da(0x117)],'diagramValidated':_0x4f359d[_0x2158da(0x12b)]},'description':_0x2158da(0x11e)};}function a73_0x4605(){const _0x21710e=['17ogyBKv','Updated\x20personal\x20Skill\x20','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','../../core/api-client.js','147306vEEjMn','unknown','/publish/validate','bool','dir','6IRxAnn','confirm-warnings','appCode','confirmWarnings','/api/cli/v1/skills/','remoteForPreflight','diagramValidated','publishInput','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','errors','4kseFfD','submitted','11tQvJoz','\x20version\x20','../../skills/runtime-skill-sync.js','version','scope','Created\x20personal\x20Skill\x20','\x20Skill\x20','str','valid','NAMESPACE_ONLY','input','trim','files','identical','Company','appcode','4552029ygFXpR','1643838YnRvKx','3176210LtNYsI','skillCode','frontmatterDisplayName','company','existing','Personal','POST','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','personal','2193745sIXaBR','\x20has\x20scope=\x22','12212Caxbck','status','Submitted\x20company\x20Skill\x20','\x20for\x20review','diagram-file','44784rYmpHW','payload','warnings','resolvedVersion','savedSkill','resolvedSlug','accessKey','authRequired'];a73_0x4605=function(){return _0x21710e;};return a73_0x4605();}export async function skillPushExecute(_0x3d3501){const _0x27ceb8=a73_0xd0ed,{createPersonalRuntimeSkill:_0x44a88f,downloadRuntimeSkillPackage:_0x40d595,getRuntimeSkillByCode:_0x407aab,publishCompanyRuntimeSkill:_0x59bdb8,updatePersonalRuntimeSkill:_0x3ae056,validateRuntimeSkillPublish:_0xe796e9}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x114cfd,verifyRuntimeSkillBundle:_0x386166,readPushDirectory:_0x43942c,refreshPushDirectoryMetadataFromRemote:_0x176d37,recordPushedRuntimeSkill:_0x49e142,resolvePushDirectoryIdentity:_0x2a3a98}=await import(_0x27ceb8(0x133));if(!_0x3d3501[_0x27ceb8(0x11a)])throw CliErrors[_0x27ceb8(0x11b)]();const _0x3dfbe9=resolvePushScope(_0x3d3501),_0x3fbbec=_0x3d3501[_0x27ceb8(0x123)](_0x27ceb8(0x126))||_0x3d3501[_0x27ceb8(0x123)](_0x27ceb8(0x128)),_0x3a71d8=validateSkillDirectory(_0x3d3501[_0x27ceb8(0x138)](_0x27ceb8(0x124)));throwIfSkillValidationFailed(_0x3a71d8);const {diagram:_0x348f36,sourceFilePath:_0xb1f4c2}=await readRequiredSkillDiagramInput(_0x3d3501[_0x27ceb8(0x138)](_0x27ceb8(0x113))),_0x2e8a36=diagramPackageExclusion(_0xb1f4c2),_0x3f5df4=_0x3a71d8[_0x27ceb8(0x124)];let _0x4950c3;if(_0x3dfbe9===_0x27ceb8(0x107)){const _0x54e536=_0x2a3a98(_0x3f5df4,_0x3d3501[_0x27ceb8(0x127)],remoteFirstMetadataOptions()),_0x5760d3=await _0x407aab(_0x3d3501['appCode'],_0x54e536[_0x27ceb8(0x105)]);throwIfBuiltinPushTarget(_0x5760d3);if(_0x5760d3)_0x176d37(_0x3f5df4,_0x5760d3,_0x3d3501['appCode']);const _0xfa716f=_0x43942c(_0x3f5df4,_0x3d3501['appCode'],{..._0x5760d3?{'targetScope':_0x27ceb8(0x107),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2e8a36});_0x4950c3={'scope':_0x27ceb8(0x107),'payload':_0xfa716f,'publishInput':withDiagram(_0xfa716f[_0x27ceb8(0x13b)],_0x348f36),'remoteForPreflight':_0x5760d3,'warnings':[]};}else{const _0x4ae84a=_0x3d3501[_0x27ceb8(0x138)](_0x27ceb8(0x140))[_0x27ceb8(0x13c)](),_0x2de438=Boolean(_0x4ae84a),_0x37a00a=allowRetargetArgs(_0x2de438),_0x3db046=_0x2a3a98(_0x3f5df4,_0x3d3501['appCode'],{...remoteFirstMetadataOptions(),..._0x37a00a[0x0]}),_0x55fb80=await _0x407aab(_0x3d3501[_0x27ceb8(0x127)],_0x3db046[_0x27ceb8(0x105)]);throwIfBuiltinPushTarget(_0x55fb80);if(_0x55fb80){if(_0x55fb80['scope']!==_0x27ceb8(0x10c)){if(_0x2de438)throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x3db046[_0x27ceb8(0x105)]+_0x27ceb8(0x10e)+(_0x55fb80[_0x27ceb8(0x135)]??_0x27ceb8(0x121))+'\x22.');_0x176d37(_0x3f5df4,_0x55fb80,_0x3d3501[_0x27ceb8(0x127)]);}else!_0x2de438&&_0x176d37(_0x3f5df4,_0x55fb80,_0x3d3501[_0x27ceb8(0x127)]);}const _0x5f1e8b=_0x43942c(_0x3f5df4,_0x3d3501[_0x27ceb8(0x127)],{..._0x55fb80?remotePersonalReadOptions(_0x2de438,_0x37a00a[0x0]):remoteMissingPersonalReadOptions(_0x37a00a[0x0]),..._0x2e8a36}),_0xf4b0e7=_0x55fb80?.['scope']===_0x27ceb8(0x10c)&&_0x55fb80[_0x27ceb8(0x105)]===_0x5f1e8b['skillCode']?_0x55fb80:undefined,_0x93ec43=_0x2de438&&_0xf4b0e7?withRetargetExistingMetadata(_0x5f1e8b[_0x27ceb8(0x13b)],_0xf4b0e7,{'preferInputSkillName':Boolean(_0x5f1e8b[_0x27ceb8(0x106)])}):_0x5f1e8b[_0x27ceb8(0x13b)],_0x6dd059=_0x2de438?buildRetargetWarning(_0x3db046['metadata'],_0x3d3501[_0x27ceb8(0x127)]):[];_0x4950c3={'scope':'personal','payload':_0x5f1e8b,'publishInput':withDiagram(_0x93ec43,_0x348f36),'remoteForPreflight':_0xf4b0e7,'existing':_0xf4b0e7,'warnings':[..._0x3a71d8[_0x27ceb8(0x116)],..._0x6dd059]};}const _0x3f1373=await runRemoteContentPreflight({'scope':_0x4950c3[_0x27ceb8(0x135)],'remote':_0x4950c3[_0x27ceb8(0x12a)],'publishInput':_0x4950c3[_0x27ceb8(0x12c)],'skillCode':_0x4950c3[_0x27ceb8(0x115)]['skillCode'],'appCode':_0x3d3501['appCode'],'downloadRuntimeSkillPackage':_0x40d595,'verifyRuntimeSkillBundle':_0x386166});if(_0x3f1373[_0x27ceb8(0x110)]===_0x27ceb8(0x13e))return _0x4950c3[_0x27ceb8(0x135)]==='company'?_0x49e142(_0x3f5df4,_0x3f1373['savedSkill'],_0x3d3501[_0x27ceb8(0x127)],{'scope':_0x27ceb8(0x107)}):_0x49e142(_0x3f5df4,_0x3f1373[_0x27ceb8(0x118)],_0x3d3501[_0x27ceb8(0x127)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3f1373[_0x27ceb8(0x118)]),'scope':_0x4950c3['scope'],..._0x4950c3[_0x27ceb8(0x135)]===_0x27ceb8(0x10c)?{'warnings':_0x4950c3[_0x27ceb8(0x116)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x4950c3[_0x27ceb8(0x135)])+_0x27ceb8(0x137)+_0x4950c3['payload'][_0x27ceb8(0x105)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x4950c3[_0x27ceb8(0x135)]===_0x27ceb8(0x107)){const _0x14e75c=await _0xe796e9(_0x3d3501['appCode'],_0x4950c3[_0x27ceb8(0x12c)],{'visibility':_0x27ceb8(0x13a)});throwIfPublishValidationFailed(_0x27ceb8(0x107),_0x4950c3[_0x27ceb8(0x115)][_0x27ceb8(0x105)],_0x14e75c),throwIfUnconfirmedPublishWarnings(_0x27ceb8(0x107),_0x4950c3[_0x27ceb8(0x115)][_0x27ceb8(0x105)],_0x14e75c[_0x27ceb8(0x116)],_0x3fbbec);const _0x2a9e5c=await _0x59bdb8(_0x3d3501['appCode'],_0x4950c3['publishInput'],{'confirmWarnings':_0x3fbbec});return _0x49e142(_0x3f5df4,{..._0x2a9e5c,'files':_0x4950c3[_0x27ceb8(0x12c)][_0x27ceb8(0x13d)]},_0x3d3501[_0x27ceb8(0x127)],{'scope':_0x27ceb8(0x107)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2a9e5c),'scope':'company','reviewState':_0x27ceb8(0x130),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x14e75c[_0x27ceb8(0x116)]}},'message':_0x27ceb8(0x111)+_0x4950c3[_0x27ceb8(0x115)][_0x27ceb8(0x105)]+_0x27ceb8(0x132)+(_0x2a9e5c[_0x27ceb8(0x134)]??'(unknown)')+_0x27ceb8(0x112)};}const _0x1509df=await _0xe796e9(_0x3d3501['appCode'],_0x4950c3[_0x27ceb8(0x12c)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x27ceb8(0x10c),_0x4950c3[_0x27ceb8(0x115)]['skillCode'],_0x1509df),throwIfUnconfirmedPublishWarnings(_0x27ceb8(0x10c),_0x4950c3[_0x27ceb8(0x115)][_0x27ceb8(0x105)],_0x1509df[_0x27ceb8(0x116)],_0x3fbbec);const _0x21620e={'confirmWarnings':_0x3fbbec},_0x12dc97=_0x4950c3['existing']?await _0x3ae056(_0x4950c3['payload'][_0x27ceb8(0x105)],_0x3d3501['appCode'],_0x4950c3[_0x27ceb8(0x12c)],_0x21620e):await _0x44a88f(_0x3d3501[_0x27ceb8(0x127)],_0x4950c3[_0x27ceb8(0x12c)],_0x21620e);let _0x4f3ada=_0x12dc97;if(isMultiFileManifest(_0x4950c3[_0x27ceb8(0x12c)][_0x27ceb8(0x13d)])){const _0x2f8ec9=await _0x40d595(_0x27ceb8(0x10c),_0x12dc97[_0x27ceb8(0x105)]||_0x4950c3['payload'][_0x27ceb8(0x105)],_0x3d3501[_0x27ceb8(0x127)]);_0x386166(_0x4950c3[_0x27ceb8(0x12c)][_0x27ceb8(0x13d)],_0x2f8ec9),_0x4f3ada={..._0x12dc97,'files':_0x4950c3['publishInput'][_0x27ceb8(0x13d)]};}else{if(isPackageBackedManifest(_0x12dc97['files'])){const _0x484325=await _0x40d595(_0x27ceb8(0x10c),_0x12dc97[_0x27ceb8(0x105)]||_0x4950c3[_0x27ceb8(0x115)][_0x27ceb8(0x105)],_0x3d3501[_0x27ceb8(0x127)]);_0x114cfd(_0x12dc97['files'],_0x484325);}}return _0x49e142(_0x3f5df4,_0x4f3ada,_0x3d3501[_0x27ceb8(0x127)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x12dc97),'warnings':_0x4950c3['warnings'],'validation':{'warnings':_0x1509df[_0x27ceb8(0x116)]},'diagramBound':!![]},'message':_0x4950c3[_0x27ceb8(0x108)]?_0x27ceb8(0x11d)+_0x4950c3['payload'][_0x27ceb8(0x105)]:_0x27ceb8(0x136)+_0x4950c3[_0x27ceb8(0x115)]['skillCode']};}function scopeLabel(_0x4ec81e){const _0x5923c3=a73_0xd0ed;return _0x4ec81e==='company'?_0x5923c3(0x13f):_0x5923c3(0x109);}function withDiagram(_0x8b22ac,_0x102231){return{..._0x8b22ac,'diagram':_0x102231};}function diagramPackageExclusion(_0x402223){return _0x402223?{'excludedFilePaths':[_0x402223]}:{};}
@@ -1 +1 @@
1
- (function(_0x227c67,_0xab20ed){const _0x4a3d23=a74_0x1c63,_0x24bd0c=_0x227c67();while(!![]){try{const _0x277ebf=parseInt(_0x4a3d23(0x1c8))/0x1*(parseInt(_0x4a3d23(0x1ed))/0x2)+-parseInt(_0x4a3d23(0x1cd))/0x3+-parseInt(_0x4a3d23(0x1eb))/0x4+parseInt(_0x4a3d23(0x1c9))/0x5*(parseInt(_0x4a3d23(0x1e6))/0x6)+-parseInt(_0x4a3d23(0x1d5))/0x7*(parseInt(_0x4a3d23(0x1db))/0x8)+-parseInt(_0x4a3d23(0x1cb))/0x9*(-parseInt(_0x4a3d23(0x1d1))/0xa)+parseInt(_0x4a3d23(0x1d7))/0xb;if(_0x277ebf===_0xab20ed)break;else _0x24bd0c['push'](_0x24bd0c['shift']());}catch(_0x2eca5e){_0x24bd0c['push'](_0x24bd0c['shift']());}}}(a74_0x2cfc,0x2656e));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3c4ce0){const _0x4fd4c7=a74_0x1c63,_0x282eb9=_0x3c4ce0[_0x4fd4c7(0x1f4)](_0x4fd4c7(0x1e5))||_0x4fd4c7(0x1e2);if(_0x282eb9==='personal'||_0x282eb9===_0x4fd4c7(0x1cf))return _0x282eb9;throw CliErrors['validation']('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x282eb9+'\x22.');}function a74_0x1c63(_0x2b641b,_0x3fe6b7){_0x2b641b=_0x2b641b-0x1c6;const _0x2cfc69=a74_0x2cfc();let _0x1c639b=_0x2cfc69[_0x2b641b];return _0x1c639b;}export function allowRetargetArgs(_0x55d6dd){return _0x55d6dd?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a74_0x2cfc(){const _0x94e70b=['company','skillCode','10aFchSr','verifyRuntimeSkillBundle','skill-metadata-appcode-retargeted','Review\x20each\x20warning\x20before\x20continuing.','232239vNCWmA','\x20Skill\x20push\x20validation\x20failed\x20for\x20','4020126EgBSOr','warnings','lovrabet.skill.json','join','24omZFxM','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','version','warning','Company','publishInput','personal','appCode','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','scope','33486xhuEey','files','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','errors','downloadRuntimeSkillPackage','664736cybVef','\x20after\x20successful\x20push.','223618zEhmis','Builtin\x20Skill\x20','identical','content','Warnings:\x20','\x20cannot\x20be\x20pushed.','Personal','str','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','validation','not-applicable','(unknown)','1CkTgwY','200PctxCv','valid','245988DPnlpZ','remote','915282vhCXwt','length'];a74_0x2cfc=function(){return _0x94e70b;};return a74_0x2cfc();}export function remoteMissingCompanyReadOptions(){const _0xffab53=a74_0x1c63;return{'targetScope':_0xffab53(0x1cf),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x437df8={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x437df8};}export function remotePersonalReadOptions(_0x549678,_0x1ed8ae={}){return{'ignoreInvalidMetadata':!![],..._0x549678?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1ed8ae};}export function throwIfBuiltinPushTarget(_0x56a8be){const _0x1f5f5b=a74_0x1c63;if(_0x56a8be?.[_0x1f5f5b(0x1e5)]!=='builtin')return;throw CliErrors['validation'](_0x1f5f5b(0x1ee)+(_0x56a8be['skillCode']??_0x1f5f5b(0x1c7))+_0x1f5f5b(0x1f2),_0x1f5f5b(0x1dc));}export function throwIfPublishValidationFailed(_0x2b8a68,_0x148daf,_0xf402a3){const _0x56cc43=a74_0x1c63;if(_0xf402a3[_0x56cc43(0x1e9)]['length']===0x0&&(_0xf402a3[_0x56cc43(0x1ca)]||_0xf402a3[_0x56cc43(0x1d8)][_0x56cc43(0x1ce)]>0x0))return;const _0x45e3b6=_0xf402a3[_0x56cc43(0x1e9)][_0x56cc43(0x1ce)]>0x0?_0xf402a3[_0x56cc43(0x1e9)]['join'](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x2954b0=_0x2b8a68==='company'?_0x56cc43(0x1e0):_0x56cc43(0x1f3);throw CliErrors[_0x56cc43(0x1f6)](_0x2954b0+_0x56cc43(0x1d6)+_0x148daf+'.',_0x45e3b6);}export function throwIfUnconfirmedPublishWarnings(_0xdc9fb5,_0x2b175e,_0x2bdb9e,_0x3e25ee){const _0x423bd0=a74_0x1c63;if(_0x2bdb9e[_0x423bd0(0x1ce)]===0x0||_0x3e25ee)return;const _0x51c6fa=_0xdc9fb5===_0x423bd0(0x1cf)?'Company':_0x423bd0(0x1f3);throw CliErrors['validation'](_0x51c6fa+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x2b175e+'.',[_0x423bd0(0x1d4),_0x423bd0(0x1e8),_0x423bd0(0x1e4),_0x423bd0(0x1f1)+_0x2bdb9e['join'](';\x20')][_0x423bd0(0x1da)]('\x20'));}export function buildRetargetWarning(_0x466f0f,_0x244688){const _0x3a5559=a74_0x1c63;if(!_0x466f0f?.[_0x3a5559(0x1e3)]||_0x466f0f[_0x3a5559(0x1e3)]===_0x244688)return[];return[{'level':_0x3a5559(0x1df),'ruleId':_0x3a5559(0x1d3),'file':_0x3a5559(0x1d9),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x466f0f[_0x3a5559(0x1e3)]+_0x3a5559(0x1dd)+_0x244688+_0x3a5559(0x1ec),'suggestion':_0x3a5559(0x1f5)}];}export async function runRemoteContentPreflight(_0x58c3d9){const _0x32fbad=a74_0x1c63;if(!_0x58c3d9[_0x32fbad(0x1cc)]||_0x58c3d9[_0x32fbad(0x1cc)][_0x32fbad(0x1e5)]!==_0x58c3d9[_0x32fbad(0x1e5)]||!_0x58c3d9['publishInput'][_0x32fbad(0x1e7)])return{'status':_0x32fbad(0x1c6)};const _0xa79ff=_0x58c3d9[_0x32fbad(0x1cc)][_0x32fbad(0x1d0)]||_0x58c3d9[_0x32fbad(0x1d0)];if(!_0xa79ff)return{'status':_0x32fbad(0x1c6)};const _0xce06d8=await _0x58c3d9[_0x32fbad(0x1ea)](_0x58c3d9['scope'],_0xa79ff,_0x58c3d9[_0x32fbad(0x1e3)],_0x58c3d9['remote'][_0x32fbad(0x1de)]);try{_0x58c3d9[_0x32fbad(0x1d2)](_0x58c3d9[_0x32fbad(0x1e1)][_0x32fbad(0x1e7)],_0xce06d8);}catch{return{'status':'different'};}return{'status':_0x32fbad(0x1ef),'savedSkill':{..._0x58c3d9[_0x32fbad(0x1cc)],'content':_0x58c3d9['publishInput'][_0x32fbad(0x1f0)],'files':_0x58c3d9['publishInput']['files']}};}
1
+ (function(_0x593bcb,_0x1b0ca9){const _0x1ff9b7=a74_0x860f,_0x124632=_0x593bcb();while(!![]){try{const _0x32e935=parseInt(_0x1ff9b7(0x136))/0x1+-parseInt(_0x1ff9b7(0x129))/0x2*(-parseInt(_0x1ff9b7(0x125))/0x3)+parseInt(_0x1ff9b7(0x124))/0x4+-parseInt(_0x1ff9b7(0x123))/0x5*(parseInt(_0x1ff9b7(0x12a))/0x6)+parseInt(_0x1ff9b7(0x126))/0x7+-parseInt(_0x1ff9b7(0x120))/0x8+parseInt(_0x1ff9b7(0x13f))/0x9*(-parseInt(_0x1ff9b7(0x12b))/0xa);if(_0x32e935===_0x1b0ca9)break;else _0x124632['push'](_0x124632['shift']());}catch(_0x4daa0e){_0x124632['push'](_0x124632['shift']());}}}(a74_0x274e,0x50913));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x27c8e5){const _0x55478f=a74_0x860f,_0x35cafd=_0x27c8e5[_0x55478f(0x138)](_0x55478f(0x137))||_0x55478f(0x133);if(_0x35cafd===_0x55478f(0x133)||_0x35cafd===_0x55478f(0x122))return _0x35cafd;throw CliErrors[_0x55478f(0x12c)](_0x55478f(0x13a)+_0x35cafd+'\x22.');}export function allowRetargetArgs(_0x3d150a){return _0x3d150a?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2f2b95=a74_0x860f;return{'targetScope':_0x2f2b95(0x122),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x18eecf={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x18eecf};}export function remotePersonalReadOptions(_0x28564d,_0x542550={}){return{'ignoreInvalidMetadata':!![],..._0x28564d?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x542550};}function a74_0x860f(_0x43b837,_0x3f81dd){_0x43b837=_0x43b837-0x11f;const _0x274e2e=a74_0x274e();let _0x860f30=_0x274e2e[_0x43b837];return _0x860f30;}export function throwIfBuiltinPushTarget(_0xc8a964){const _0x4c8dd4=a74_0x860f;if(_0xc8a964?.['scope']!==_0x4c8dd4(0x12e))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0xc8a964[_0x4c8dd4(0x131)]??_0x4c8dd4(0x144))+_0x4c8dd4(0x132),_0x4c8dd4(0x140));}export function throwIfPublishValidationFailed(_0x47ca39,_0x2bf33b,_0x3a671d){const _0x9ee08d=a74_0x860f;if(_0x3a671d['errors'][_0x9ee08d(0x12f)]===0x0&&(_0x3a671d[_0x9ee08d(0x13c)]||_0x3a671d[_0x9ee08d(0x14f)]['length']>0x0))return;const _0x317b25=_0x3a671d[_0x9ee08d(0x12d)][_0x9ee08d(0x12f)]>0x0?_0x3a671d[_0x9ee08d(0x12d)][_0x9ee08d(0x145)](';\x20'):_0x9ee08d(0x14a),_0x318a8a=_0x47ca39===_0x9ee08d(0x122)?_0x9ee08d(0x14b):'Personal';throw CliErrors[_0x9ee08d(0x12c)](_0x318a8a+_0x9ee08d(0x134)+_0x2bf33b+'.',_0x317b25);}function a74_0x274e(){const _0x2c478c=['Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','publishInput','files','SkillHub\x20validation\x20returned\x20invalid.','Company','lovrabet.skill.json','remote','content','warnings','skill-metadata-appcode-retargeted','306496podScV','Personal','company','45XrxbgO','1977128TCZfGt','75XqwgVp','1955597rkOlfM','Review\x20each\x20warning\x20before\x20continuing.','verifyRuntimeSkillBundle','21062LWNxmQ','37002XDgsBl','10eQAquQ','validation','errors','builtin','length','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','skillCode','\x20cannot\x20be\x20pushed.','personal','\x20Skill\x20push\x20validation\x20failed\x20for\x20','version','514301KSphWd','scope','str','Warnings:\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','identical','valid','appCode','not-applicable','10146699DyiBEJ','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','different','\x20after\x20successful\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','(unknown)','join'];a74_0x274e=function(){return _0x2c478c;};return a74_0x274e();}export function throwIfUnconfirmedPublishWarnings(_0xa5f7ea,_0x2c6845,_0x334d00,_0x2c1059){const _0x487650=a74_0x860f;if(_0x334d00[_0x487650(0x12f)]===0x0||_0x2c1059)return;const _0x22730c=_0xa5f7ea==='company'?_0x487650(0x14b):_0x487650(0x121);throw CliErrors[_0x487650(0x12c)](_0x22730c+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x2c6845+'.',[_0x487650(0x127),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x487650(0x130),_0x487650(0x139)+_0x334d00[_0x487650(0x145)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x523553,_0x5d6705){const _0x18cf53=a74_0x860f;if(!_0x523553?.[_0x18cf53(0x13d)]||_0x523553[_0x18cf53(0x13d)]===_0x5d6705)return[];return[{'level':_0x18cf53(0x147),'ruleId':_0x18cf53(0x11f),'file':_0x18cf53(0x14c),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x523553[_0x18cf53(0x13d)]+_0x18cf53(0x143)+_0x5d6705+_0x18cf53(0x142),'suggestion':_0x18cf53(0x146)}];}export async function runRemoteContentPreflight(_0x51a91c){const _0x7ad111=a74_0x860f;if(!_0x51a91c[_0x7ad111(0x14d)]||_0x51a91c[_0x7ad111(0x14d)]['scope']!==_0x51a91c['scope']||!_0x51a91c[_0x7ad111(0x148)]['files'])return{'status':_0x7ad111(0x13e)};const _0x4c6a63=_0x51a91c[_0x7ad111(0x14d)][_0x7ad111(0x131)]||_0x51a91c[_0x7ad111(0x131)];if(!_0x4c6a63)return{'status':'not-applicable'};const _0x3b2da2=await _0x51a91c['downloadRuntimeSkillPackage'](_0x51a91c['scope'],_0x4c6a63,_0x51a91c['appCode'],_0x51a91c[_0x7ad111(0x14d)][_0x7ad111(0x135)]);try{_0x51a91c[_0x7ad111(0x128)](_0x51a91c[_0x7ad111(0x148)][_0x7ad111(0x149)],_0x3b2da2);}catch{return{'status':_0x7ad111(0x141)};}return{'status':_0x7ad111(0x13b),'savedSkill':{..._0x51a91c[_0x7ad111(0x14d)],'content':_0x51a91c[_0x7ad111(0x148)][_0x7ad111(0x14e)],'files':_0x51a91c[_0x7ad111(0x148)][_0x7ad111(0x149)]}};}
@@ -1 +1 @@
1
- function a75_0xb0ec(){const _0x29d041=['627655SgoLaz','preferInputSkillName','description','828672wmgFfD','156bUiBQN','148114YCVTOq','22912668ELiCay','skillName','sourceSessionId','skill-metadata-appcode-retargeted','appCode','36561YDfIHZ','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','4lZLSgG','isArray','warning','2426010AIRaqA','tags','4283456iRwSYh'];a75_0xb0ec=function(){return _0x29d041;};return a75_0xb0ec();}(function(_0x18ef88,_0x2c7545){const _0x4ecd2f=a75_0x3695,_0x1be706=_0x18ef88();while(!![]){try{const _0x5b5075=-parseInt(_0x4ecd2f(0x136))/0x1+-parseInt(_0x4ecd2f(0x128))/0x2+-parseInt(_0x4ecd2f(0x126))/0x3*(parseInt(_0x4ecd2f(0x130))/0x4)+-parseInt(_0x4ecd2f(0x133))/0x5+-parseInt(_0x4ecd2f(0x127))/0x6*(parseInt(_0x4ecd2f(0x12e))/0x7)+-parseInt(_0x4ecd2f(0x135))/0x8+parseInt(_0x4ecd2f(0x129))/0x9;if(_0x5b5075===_0x2c7545)break;else _0x1be706['push'](_0x1be706['shift']());}catch(_0x368898){_0x1be706['push'](_0x1be706['shift']());}}}(a75_0xb0ec,0x6475c));export function withRetargetExistingMetadata(_0x322387,_0x4587ad,_0x2d628e={}){const _0x21404f=a75_0x3695,_0x57313d=_0x2d628e[_0x21404f(0x137)]?_0x322387['skillName']??_0x4587ad[_0x21404f(0x12a)]:_0x4587ad['skillName']??_0x322387[_0x21404f(0x12a)];return{..._0x322387,'skillName':_0x57313d,'description':_0x4587ad[_0x21404f(0x125)]??_0x322387[_0x21404f(0x125)],'tags':Array[_0x21404f(0x131)](_0x4587ad['tags'])?_0x4587ad[_0x21404f(0x134)]:_0x322387['tags'],'version':_0x4587ad['version']??_0x322387['version'],'sourceSessionId':_0x4587ad[_0x21404f(0x12b)]??_0x322387[_0x21404f(0x12b)]};}function a75_0x3695(_0x4b486d,_0x44ccfc){_0x4b486d=_0x4b486d-0x125;const _0xb0ec6f=a75_0xb0ec();let _0x3695f3=_0xb0ec6f[_0x4b486d];return _0x3695f3;}export function buildRetargetWarning(_0x5242aa,_0x123358){const _0x2b8eb2=a75_0x3695;if(!_0x5242aa?.[_0x2b8eb2(0x12d)]||_0x5242aa[_0x2b8eb2(0x12d)]===_0x123358)return[];return[{'level':_0x2b8eb2(0x132),'ruleId':_0x2b8eb2(0x12c),'file':'lovrabet.skill.json','message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x5242aa['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x123358+'\x20after\x20successful\x20push.','suggestion':_0x2b8eb2(0x12f)}];}
1
+ (function(_0x64fe30,_0x4d9c5c){const _0xf8f78c=a75_0x3971,_0x182da2=_0x64fe30();while(!![]){try{const _0x14aa15=parseInt(_0xf8f78c(0x7f))/0x1*(-parseInt(_0xf8f78c(0x80))/0x2)+parseInt(_0xf8f78c(0x76))/0x3*(parseInt(_0xf8f78c(0x75))/0x4)+-parseInt(_0xf8f78c(0x77))/0x5*(parseInt(_0xf8f78c(0x7d))/0x6)+parseInt(_0xf8f78c(0x84))/0x7+-parseInt(_0xf8f78c(0x82))/0x8+parseInt(_0xf8f78c(0x87))/0x9*(parseInt(_0xf8f78c(0x86))/0xa)+-parseInt(_0xf8f78c(0x85))/0xb*(-parseInt(_0xf8f78c(0x81))/0xc);if(_0x14aa15===_0x4d9c5c)break;else _0x182da2['push'](_0x182da2['shift']());}catch(_0x3508dc){_0x182da2['push'](_0x182da2['shift']());}}}(a75_0x1f53,0xed206));export function withRetargetExistingMetadata(_0x540442,_0xab3b59,_0x43aa92={}){const _0xbf8411=a75_0x3971,_0x5bc01f=_0x43aa92[_0xbf8411(0x7a)]?_0x540442[_0xbf8411(0x73)]??_0xab3b59[_0xbf8411(0x73)]:_0xab3b59[_0xbf8411(0x73)]??_0x540442[_0xbf8411(0x73)];return{..._0x540442,'skillName':_0x5bc01f,'description':_0xab3b59[_0xbf8411(0x7c)]??_0x540442[_0xbf8411(0x7c)],'tags':Array[_0xbf8411(0x79)](_0xab3b59[_0xbf8411(0x83)])?_0xab3b59[_0xbf8411(0x83)]:_0x540442['tags'],'version':_0xab3b59[_0xbf8411(0x71)]??_0x540442['version'],'sourceSessionId':_0xab3b59[_0xbf8411(0x7b)]??_0x540442[_0xbf8411(0x7b)]};}function a75_0x3971(_0xc1aa95,_0x279910){_0xc1aa95=_0xc1aa95-0x70;const _0x1f5321=a75_0x1f53();let _0x3971fb=_0x1f5321[_0xc1aa95];return _0x3971fb;}export function buildRetargetWarning(_0x55a456,_0x33cf16){const _0x144e8c=a75_0x3971;if(!_0x55a456?.[_0x144e8c(0x70)]||_0x55a456['appCode']===_0x33cf16)return[];return[{'level':'warning','ruleId':_0x144e8c(0x7e),'file':_0x144e8c(0x74),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x55a456['appCode']+_0x144e8c(0x72)+_0x33cf16+'\x20after\x20successful\x20push.','suggestion':_0x144e8c(0x78)}];}function a75_0x1f53(){const _0x71d90e=['description','12ZWVcoz','skill-metadata-appcode-retargeted','642587IeAKbJ','6cxqKaK','336rgcpjR','2311360qaPMOr','tags','9339400OYnRyC','530739sTxkbA','1445520dLFqOn','63QnShin','appCode','version','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','lovrabet.skill.json','5011732RlZpfC','3vLzDDp','4405045KKJAQU','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','isArray','preferInputSkillName','sourceSessionId'];a75_0x1f53=function(){return _0x71d90e;};return a75_0x1f53();}
@@ -1 +1 @@
1
- (function(_0x376006,_0x429686){const _0x46509e=a76_0x3eb8,_0x1a63aa=_0x376006();while(!![]){try{const _0x139a76=parseInt(_0x46509e(0x140))/0x1*(-parseInt(_0x46509e(0x14c))/0x2)+-parseInt(_0x46509e(0x149))/0x3*(-parseInt(_0x46509e(0x143))/0x4)+-parseInt(_0x46509e(0x144))/0x5+-parseInt(_0x46509e(0x141))/0x6+-parseInt(_0x46509e(0x147))/0x7*(parseInt(_0x46509e(0x13e))/0x8)+-parseInt(_0x46509e(0x142))/0x9*(-parseInt(_0x46509e(0x14d))/0xa)+parseInt(_0x46509e(0x14e))/0xb*(parseInt(_0x46509e(0x148))/0xc);if(_0x139a76===_0x429686)break;else _0x1a63aa['push'](_0x1a63aa['shift']());}catch(_0x1e07fe){_0x1a63aa['push'](_0x1a63aa['shift']());}}}(a76_0x63b5,0x3c144));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x41b544){const _0x20adac=a76_0x3eb8,_0x53605f=_0x41b544['trim']();if(!_0x53605f||_0x53605f===_0x20adac(0x14b))return[_0x20adac(0x145),_0x20adac(0x14a)];if(_0x53605f===_0x20adac(0x145)||_0x53605f===_0x20adac(0x14a))return[_0x53605f];throw CliErrors['validation'](_0x20adac(0x146)+_0x41b544);}function a76_0x63b5(){const _0x56c584=['253wzkomb','1768IdJxum','trim','24239DqaYig','2321064SYtGjN','18qwGDJr','96RjXznn','430900uwyDTt','personal','Unsupported\x20Skill\x20sync\x20scope:\x20','11991XCWuPn','422292pazYTn','30777kzeEtY','company','all','20NxCwnl','1422310bjaIYp'];a76_0x63b5=function(){return _0x56c584;};return a76_0x63b5();}function a76_0x3eb8(_0x50881f,_0x1009ba){_0x50881f=_0x50881f-0x13e;const _0x63b5f9=a76_0x63b5();let _0x3eb831=_0x63b5f9[_0x50881f];return _0x3eb831;}export function normalizeListScope(_0x34f588){const _0x28327d=a76_0x3eb8,_0x5ad38b=_0x34f588[_0x28327d(0x13f)]();if(!_0x5ad38b)return'all';if(_0x5ad38b===_0x28327d(0x145)||_0x5ad38b===_0x28327d(0x14a)||_0x5ad38b===_0x28327d(0x14b))return _0x5ad38b;throw CliErrors['validation']('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x34f588);}export function shouldListScope(_0x4e6efc,_0x481432){const _0x10bf7e=a76_0x3eb8;if(_0x4e6efc===_0x10bf7e(0x14b))return!![];return _0x4e6efc===_0x481432;}export function listScopeToRuntimeScopes(_0x1987eb){const _0x477300=a76_0x3eb8;if(_0x1987eb===_0x477300(0x14b))return[_0x477300(0x145),_0x477300(0x14a)];return[_0x1987eb===_0x477300(0x14a)?_0x477300(0x14a):_0x1987eb];}export function listScopeToRemoteScope(_0x3df71d){return _0x3df71d;}
1
+ (function(_0x5446a5,_0x13ea3e){const _0xe80c87=a76_0x288a,_0x3a9a1d=_0x5446a5();while(!![]){try{const _0x1a554b=-parseInt(_0xe80c87(0xe5))/0x1+parseInt(_0xe80c87(0xe0))/0x2*(-parseInt(_0xe80c87(0xdb))/0x3)+-parseInt(_0xe80c87(0xe4))/0x4*(-parseInt(_0xe80c87(0xda))/0x5)+parseInt(_0xe80c87(0xde))/0x6+-parseInt(_0xe80c87(0xd7))/0x7*(-parseInt(_0xe80c87(0xdd))/0x8)+-parseInt(_0xe80c87(0xd8))/0x9+-parseInt(_0xe80c87(0xdf))/0xa*(-parseInt(_0xe80c87(0xd6))/0xb);if(_0x1a554b===_0x13ea3e)break;else _0x3a9a1d['push'](_0x3a9a1d['shift']());}catch(_0x5c1ca0){_0x3a9a1d['push'](_0x3a9a1d['shift']());}}}(a76_0x4696,0xd33bf));import{CliErrors}from'../../errors.js';function a76_0x4696(){const _0x219893=['personal','2201380ykTImO','420915wkFJeQ','311003VoHvpx','7UnDvsr','2598174zkqxfa','all','5aQgJXS','3MonRkw','Unsupported\x20Skill\x20sync\x20scope:\x20','1784648Tgwhrc','9002202VipQUs','150wnZNaH','2246144TRXunf','Unsupported\x20Skill\x20list\x20scope:\x20','company'];a76_0x4696=function(){return _0x219893;};return a76_0x4696();}export function normalizeSyncScopes(_0x1901d0){const _0x20e217=a76_0x288a,_0x3f49bf=_0x1901d0['trim']();if(!_0x3f49bf||_0x3f49bf===_0x20e217(0xd9))return[_0x20e217(0xe3),_0x20e217(0xe2)];if(_0x3f49bf===_0x20e217(0xe3)||_0x3f49bf==='company')return[_0x3f49bf];throw CliErrors['validation'](_0x20e217(0xdc)+_0x1901d0);}export function normalizeListScope(_0x1f6202){const _0x10e95f=a76_0x288a,_0x1d2a76=_0x1f6202['trim']();if(!_0x1d2a76)return _0x10e95f(0xd9);if(_0x1d2a76==='personal'||_0x1d2a76===_0x10e95f(0xe2)||_0x1d2a76===_0x10e95f(0xd9))return _0x1d2a76;throw CliErrors['validation'](_0x10e95f(0xe1)+_0x1f6202);}export function shouldListScope(_0x1eee66,_0x1c328c){const _0x31368b=a76_0x288a;if(_0x1eee66===_0x31368b(0xd9))return!![];return _0x1eee66===_0x1c328c;}function a76_0x288a(_0x3b270b,_0x1528da){_0x3b270b=_0x3b270b-0xd6;const _0x4696c0=a76_0x4696();let _0x288af5=_0x4696c0[_0x3b270b];return _0x288af5;}export function listScopeToRuntimeScopes(_0x270d08){const _0x32e4e9=a76_0x288a;if(_0x270d08==='all')return[_0x32e4e9(0xe3),_0x32e4e9(0xe2)];return[_0x270d08===_0x32e4e9(0xe2)?_0x32e4e9(0xe2):_0x270d08];}export function listScopeToRemoteScope(_0x42fd67){return _0x42fd67;}
@@ -1 +1 @@
1
- function a77_0x4c49(){var _0x296eba=['786rkJITB','appCode','skillName','readonly','skillCode','7287YpfZJa','tags','pulledAt','scope','version','8730XCQwZt','25OrvaTI','380882VLnhbD','7760KUYwjA','4965994uUqQaY','skillMdPath','linkedPaths','contentHash','315004ACniZZ','cacheDir','105jiZlqG','status','251202WKuoZP','3421440YQrClW','treeHash'];a77_0x4c49=function(){return _0x296eba;};return a77_0x4c49();}function a77_0x1c71(_0x11bd15,_0x156984){_0x11bd15=_0x11bd15-0x65;var _0x4c4941=a77_0x4c49();var _0x1c71cf=_0x4c4941[_0x11bd15];return _0x1c71cf;}(function(_0xdf3a88,_0x1dee18){var _0x1cdc34=a77_0x1c71,_0x2f790c=_0xdf3a88();while(!![]){try{var _0x30aa01=-parseInt(_0x1cdc34(0x7c))/0x1+parseInt(_0x1cdc34(0x70))/0x2*(parseInt(_0x1cdc34(0x75))/0x3)+parseInt(_0x1cdc34(0x69))/0x4*(parseInt(_0x1cdc34(0x7b))/0x5)+-parseInt(_0x1cdc34(0x6d))/0x6*(parseInt(_0x1cdc34(0x6b))/0x7)+parseInt(_0x1cdc34(0x7d))/0x8*(parseInt(_0x1cdc34(0x7a))/0x9)+-parseInt(_0x1cdc34(0x6e))/0xa+-parseInt(_0x1cdc34(0x65))/0xb;if(_0x30aa01===_0x1dee18)break;else _0x2f790c['push'](_0x2f790c['shift']());}catch(_0x520872){_0x2f790c['push'](_0x2f790c['shift']());}}}(a77_0x4c49,0x76d6f));export function summarizeRuntimeSkill(_0x2b43db){var _0xefa439=a77_0x1c71;return{'id':_0x2b43db['id'],'skillCode':_0x2b43db['skillCode'],'skillName':_0x2b43db[_0xefa439(0x72)],'scope':_0x2b43db[_0xefa439(0x78)],'version':_0x2b43db[_0xefa439(0x79)],'readonly':_0x2b43db[_0xefa439(0x73)]};}export function summarizeLocalRuntimeSkill(_0x2774d2){var _0x109601=a77_0x1c71;return{'id':_0x2774d2['id'],'skillCode':_0x2774d2[_0x109601(0x74)],'skillName':_0x2774d2['skillName'],'scope':_0x2774d2[_0x109601(0x78)],'appCode':_0x2774d2[_0x109601(0x71)],'version':_0x2774d2[_0x109601(0x79)],'status':_0x2774d2[_0x109601(0x6c)],'readonly':_0x2774d2['readonly'],'tags':_0x2774d2[_0x109601(0x76)],'dir':_0x2774d2['dir'],'cacheDir':_0x2774d2[_0x109601(0x6a)],'skillMdPath':_0x2774d2[_0x109601(0x66)],'metadataPath':_0x2774d2['metadataPath'],'linkedPaths':_0x2774d2[_0x109601(0x67)],'contentHash':_0x2774d2[_0x109601(0x68)],'treeHash':_0x2774d2[_0x109601(0x6f)],'pulledAt':_0x2774d2[_0x109601(0x77)]};}
1
+ function a77_0xe379(_0xcc2c38,_0x844bc4){_0xcc2c38=_0xcc2c38-0x132;var _0x1cac32=a77_0x1cac();var _0xe37911=_0x1cac32[_0xcc2c38];return _0xe37911;}(function(_0x5450e9,_0x35421a){var _0x3d5cc5=a77_0xe379,_0x4e5712=_0x5450e9();while(!![]){try{var _0x284721=parseInt(_0x3d5cc5(0x13e))/0x1*(parseInt(_0x3d5cc5(0x137))/0x2)+-parseInt(_0x3d5cc5(0x145))/0x3*(-parseInt(_0x3d5cc5(0x13a))/0x4)+parseInt(_0x3d5cc5(0x132))/0x5+parseInt(_0x3d5cc5(0x149))/0x6+-parseInt(_0x3d5cc5(0x138))/0x7*(-parseInt(_0x3d5cc5(0x139))/0x8)+parseInt(_0x3d5cc5(0x13c))/0x9*(parseInt(_0x3d5cc5(0x146))/0xa)+-parseInt(_0x3d5cc5(0x135))/0xb;if(_0x284721===_0x35421a)break;else _0x4e5712['push'](_0x4e5712['shift']());}catch(_0x444db1){_0x4e5712['push'](_0x4e5712['shift']());}}}(a77_0x1cac,0xaee8e));function a77_0x1cac(){var _0x361080=['14SNPlWE','1928048SubvfP','1796DgwzzI','skillMdPath','3123ujKVxe','skillName','2pxQbIL','skillCode','cacheDir','linkedPaths','readonly','status','metadataPath','2697MwXoNN','11490KmlAOM','tags','treeHash','1914342dShwOk','6641090wfuhGE','scope','version','31868661SEQAkd','pulledAt','681940tgiFSS'];a77_0x1cac=function(){return _0x361080;};return a77_0x1cac();}export function summarizeRuntimeSkill(_0x5ad956){var _0x19fe01=a77_0xe379;return{'id':_0x5ad956['id'],'skillCode':_0x5ad956['skillCode'],'skillName':_0x5ad956['skillName'],'scope':_0x5ad956[_0x19fe01(0x133)],'version':_0x5ad956[_0x19fe01(0x134)],'readonly':_0x5ad956[_0x19fe01(0x142)]};}export function summarizeLocalRuntimeSkill(_0x4bb174){var _0x177760=a77_0xe379;return{'id':_0x4bb174['id'],'skillCode':_0x4bb174[_0x177760(0x13f)],'skillName':_0x4bb174[_0x177760(0x13d)],'scope':_0x4bb174['scope'],'appCode':_0x4bb174['appCode'],'version':_0x4bb174[_0x177760(0x134)],'status':_0x4bb174[_0x177760(0x143)],'readonly':_0x4bb174[_0x177760(0x142)],'tags':_0x4bb174[_0x177760(0x147)],'dir':_0x4bb174['dir'],'cacheDir':_0x4bb174[_0x177760(0x140)],'skillMdPath':_0x4bb174[_0x177760(0x13b)],'metadataPath':_0x4bb174[_0x177760(0x144)],'linkedPaths':_0x4bb174[_0x177760(0x141)],'contentHash':_0x4bb174['contentHash'],'treeHash':_0x4bb174[_0x177760(0x148)],'pulledAt':_0x4bb174[_0x177760(0x136)]};}
@@ -1 +1 @@
1
- const a78_0x15cd5a=a78_0x1598;(function(_0x37f19b,_0x2acf04){const _0x290e09=a78_0x1598,_0x4b2184=_0x37f19b();while(!![]){try{const _0x4af023=parseInt(_0x290e09(0x1cc))/0x1*(-parseInt(_0x290e09(0x1c8))/0x2)+-parseInt(_0x290e09(0x1df))/0x3+-parseInt(_0x290e09(0x1d2))/0x4*(parseInt(_0x290e09(0x1d4))/0x5)+-parseInt(_0x290e09(0x1f2))/0x6*(parseInt(_0x290e09(0x1de))/0x7)+-parseInt(_0x290e09(0x1ce))/0x8+-parseInt(_0x290e09(0x1dd))/0x9*(-parseInt(_0x290e09(0x1cf))/0xa)+parseInt(_0x290e09(0x1da))/0xb*(parseInt(_0x290e09(0x1e7))/0xc);if(_0x4af023===_0x2acf04)break;else _0x4b2184['push'](_0x4b2184['shift']());}catch(_0x2926ee){_0x4b2184['push'](_0x4b2184['shift']());}}}(a78_0x152c,0x95d0e));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a78_0x15cd5a(0x1c9)];export const DEFAULT_SKILL_TARGET=a78_0x15cd5a(0x1e0);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a78_0x15cd5a(0x1c4);export const OUTPUT_CONTRACT_FILE=a78_0x15cd5a(0x1e4);export function validateSkillName(_0x1c9fd0){const _0x5d3222=a78_0x15cd5a,_0x25727d=_0x1c9fd0[_0x5d3222(0x1ca)]();if(!SKILL_NAME_PATTERN[_0x5d3222(0x1e1)](_0x25727d))throw CliErrors[_0x5d3222(0x1e2)](_0x5d3222(0x1e6)+_0x1c9fd0+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x5d3222(0x1db));return _0x25727d;}function a78_0x152c(){const _0x3b63a8=['validation','\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','references/output-contract.md','includes','Invalid\x20Skill\x20name:\x20','14875908xNFDKG','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\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','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','#\x20Output\x20Contract\x0a\x0a','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','9252kNtgOX','references/runtime-contract.md','Use\x20one\x20of:\x20','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','1520066ifUIuF','read','trim','type','1gBWIlc','skillName','4212776ghZMtd','10270RvWjPI','SKILL.md','timestamp','2374864IhxfVA','---\x0aname:\x20','10Hzjkbv','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','write','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','join','44XQdJAT','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','\x0a\x20\x20created:\x20\x22','162FuYxId','4193GfIzTX','2897268jnjIKE','.agents/skills','test'];a78_0x152c=function(){return _0x3b63a8;};return a78_0x152c();}export function normalizeSkillTemplateType(_0x54040d){const _0x587b7e=a78_0x15cd5a,_0x43bf6c=(_0x54040d||'write')[_0x587b7e(0x1ca)]()||'write';if(SKILL_TYPES[_0x587b7e(0x1e5)](_0x43bf6c))return _0x43bf6c;throw CliErrors[_0x587b7e(0x1e2)]('Unsupported\x20Skill\x20type:\x20'+_0x54040d,_0x587b7e(0x1c5)+SKILL_TYPES[_0x587b7e(0x1d9)](',\x20')+'.');}export function renderSkillTemplate(_0x1853c8){const _0x4a7945=a78_0x15cd5a,_0x4164b3=validateSkillName(_0x1853c8[_0x4a7945(0x1cd)]),_0x4eb1b6=normalizeSkillTemplateType(_0x1853c8[_0x4a7945(0x1cb)]),_0x2fcce6=_0x1853c8[_0x4a7945(0x1d1)]??new Date()['toISOString']();return{'skillName':_0x4164b3,'type':_0x4eb1b6,'files':[{'path':_0x4a7945(0x1d0),'content':renderSkillMd(_0x4164b3,_0x4eb1b6,_0x2fcce6)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x4164b3,_0x4eb1b6)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x4164b3,_0x4eb1b6)}]};}function renderSkillMd(_0x4f1133,_0x37322c,_0x1902e5){const _0x170dfb=a78_0x15cd5a,_0x380297=typeWorkflow(_0x37322c);return _0x170dfb(0x1d3)+_0x4f1133+_0x170dfb(0x1c6)+_0x37322c+_0x170dfb(0x1dc)+_0x1902e5+_0x170dfb(0x1c7)+_0x4f1133+_0x170dfb(0x1d5)+_0x380297+'\x0a\x0a'+businessStateSection(_0x37322c)+_0x170dfb(0x1e9);}function a78_0x1598(_0x31c9ab,_0x39a106){_0x31c9ab=_0x31c9ab-0x1c4;const _0x152ca8=a78_0x152c();let _0x1598b9=_0x152ca8[_0x31c9ab];return _0x1598b9;}function renderRuntimeContract(_0xfe640e,_0x39aeaf){const _0x194870=a78_0x15cd5a,_0x35b98c=_0x39aeaf==='write'?_0x194870(0x1d7):'';return _0x194870(0x1e8)+_0xfe640e+_0x194870(0x1ea)+_0x39aeaf+'\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'+_0x35b98c+_0x194870(0x1e3);}function renderOutputContract(_0x4542b5,_0x16ce8c){const _0x1f3a0d=a78_0x15cd5a,_0x3630ee=_0x16ce8c===_0x1f3a0d(0x1d6)?_0x1f3a0d(0x1ef):_0x16ce8c+_0x1f3a0d(0x1eb);return _0x1f3a0d(0x1ee)+_0x4542b5+_0x1f3a0d(0x1ec)+_0x3630ee+_0x1f3a0d(0x1ed);}function typeWorkflow(_0x3866f6){const _0x16d38f=a78_0x15cd5a;if(_0x3866f6==='read')return _0x16d38f(0x1f1);return _0x16d38f(0x1d8);}function businessStateSection(_0x51b25b){const _0x15e310=a78_0x15cd5a;if(_0x51b25b!==_0x15e310(0x1d6))return'';return _0x15e310(0x1f0);}
1
+ const a78_0x4c9c6c=a78_0x49bd;(function(_0xee7929,_0x241756){const _0x75f09a=a78_0x49bd,_0x2e4bb6=_0xee7929();while(!![]){try{const _0x199a2c=parseInt(_0x75f09a(0x1fa))/0x1+parseInt(_0x75f09a(0x1f4))/0x2*(parseInt(_0x75f09a(0x1eb))/0x3)+-parseInt(_0x75f09a(0x206))/0x4*(parseInt(_0x75f09a(0x1e6))/0x5)+-parseInt(_0x75f09a(0x1e1))/0x6+-parseInt(_0x75f09a(0x1ee))/0x7+-parseInt(_0x75f09a(0x1e3))/0x8+parseInt(_0x75f09a(0x1fe))/0x9;if(_0x199a2c===_0x241756)break;else _0x2e4bb6['push'](_0x2e4bb6['shift']());}catch(_0x1cf0b1){_0x2e4bb6['push'](_0x2e4bb6['shift']());}}}(a78_0x1389,0x53d58));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a78_0x4c9c6c(0x1e0)];export const DEFAULT_SKILL_TARGET=a78_0x4c9c6c(0x1f6);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a78_0x4c9c6c(0x1e4);export const OUTPUT_CONTRACT_FILE=a78_0x4c9c6c(0x1ff);function a78_0x1389(){const _0x36bd31=['##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','includes','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','\x0a\x20\x20created:\x20\x22','841714UNdikp','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','.agents/skills','\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','---\x0aname:\x20','toISOString','357382ihwmja','trim','Unsupported\x20Skill\x20type:\x20','join','5570631YnQgUx','references/output-contract.md','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','timestamp','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','SKILL.md','248ZYaFgd','Invalid\x20Skill\x20name:\x20','read','3701700iVnLVo','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1785256zvdwZR','references/runtime-contract.md','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','16340MGJpXW','validation','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','Use\x20one\x20of:\x20','3ByTnpN','skillName','\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','77637rvcEpY','write'];a78_0x1389=function(){return _0x36bd31;};return a78_0x1389();}export function validateSkillName(_0x3eb25a){const _0x2aacc6=a78_0x4c9c6c,_0x13cc46=_0x3eb25a['trim']();if(!SKILL_NAME_PATTERN['test'](_0x13cc46))throw CliErrors[_0x2aacc6(0x1e7)](_0x2aacc6(0x207)+_0x3eb25a+_0x2aacc6(0x1e5),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x13cc46;}export function normalizeSkillTemplateType(_0x56fc6d){const _0x53bb02=a78_0x4c9c6c,_0x296a96=(_0x56fc6d||'write')[_0x53bb02(0x1fb)]()||_0x53bb02(0x1ef);if(SKILL_TYPES[_0x53bb02(0x1f1)](_0x296a96))return _0x296a96;throw CliErrors[_0x53bb02(0x1e7)](_0x53bb02(0x1fc)+_0x56fc6d,_0x53bb02(0x1ea)+SKILL_TYPES[_0x53bb02(0x1fd)](',\x20')+'.');}export function renderSkillTemplate(_0x5c2599){const _0x8a1635=a78_0x4c9c6c,_0x588e95=validateSkillName(_0x5c2599[_0x8a1635(0x1ec)]),_0x241abc=normalizeSkillTemplateType(_0x5c2599['type']),_0x1a0cd7=_0x5c2599[_0x8a1635(0x202)]??new Date()[_0x8a1635(0x1f9)]();return{'skillName':_0x588e95,'type':_0x241abc,'files':[{'path':_0x8a1635(0x205),'content':renderSkillMd(_0x588e95,_0x241abc,_0x1a0cd7)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x588e95,_0x241abc)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x588e95,_0x241abc)}]};}function renderSkillMd(_0x6cf4bb,_0x224fd2,_0x42c8fe){const _0x2c5e02=a78_0x4c9c6c,_0x535dc3=typeWorkflow(_0x224fd2);return _0x2c5e02(0x1f8)+_0x6cf4bb+_0x2c5e02(0x200)+_0x224fd2+_0x2c5e02(0x1f3)+_0x42c8fe+_0x2c5e02(0x1f2)+_0x6cf4bb+'\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'+_0x535dc3+'\x0a\x0a'+businessStateSection(_0x224fd2)+_0x2c5e02(0x203);}function a78_0x49bd(_0x1c1c29,_0x1e845c){_0x1c1c29=_0x1c1c29-0x1e0;const _0x138912=a78_0x1389();let _0x49bda1=_0x138912[_0x1c1c29];return _0x49bda1;}function renderRuntimeContract(_0x1ac950,_0x16e17b){const _0x1a9fa2=a78_0x4c9c6c,_0x588cb0=_0x16e17b==='write'?_0x1a9fa2(0x1f0):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x1ac950+_0x1a9fa2(0x201)+_0x16e17b+_0x1a9fa2(0x1ed)+_0x588cb0+_0x1a9fa2(0x1f7);}function renderOutputContract(_0x3d6913,_0x4db6d5){const _0x278169=a78_0x4c9c6c,_0x1fd3d9=_0x4db6d5==='write'?_0x278169(0x204):_0x4db6d5+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return'#\x20Output\x20Contract\x0a\x0a'+_0x3d6913+_0x278169(0x1e9)+_0x1fd3d9+_0x278169(0x1e8);}function typeWorkflow(_0x2d0245){const _0x403831=a78_0x4c9c6c;if(_0x2d0245==='read')return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';return _0x403831(0x1f5);}function businessStateSection(_0x474fa9){const _0x48d8df=a78_0x4c9c6c;if(_0x474fa9!==_0x48d8df(0x1ef))return'';return _0x48d8df(0x1e2);}
@@ -1 +1 @@
1
- const a79_0x1f682e=a79_0x32ce;(function(_0x23a83c,_0x97fe19){const _0x5d9619=a79_0x32ce,_0x508a74=_0x23a83c();while(!![]){try{const _0x14f095=-parseInt(_0x5d9619(0x1dc))/0x1*(parseInt(_0x5d9619(0x1c3))/0x2)+parseInt(_0x5d9619(0x1de))/0x3*(-parseInt(_0x5d9619(0x1d5))/0x4)+parseInt(_0x5d9619(0x1d2))/0x5+-parseInt(_0x5d9619(0x1d3))/0x6*(-parseInt(_0x5d9619(0x1c5))/0x7)+parseInt(_0x5d9619(0x1fc))/0x8+parseInt(_0x5d9619(0x205))/0x9*(-parseInt(_0x5d9619(0x1d1))/0xa)+parseInt(_0x5d9619(0x1b7))/0xb*(parseInt(_0x5d9619(0x1c0))/0xc);if(_0x14f095===_0x97fe19)break;else _0x508a74['push'](_0x508a74['shift']());}catch(_0x1e7320){_0x508a74['push'](_0x508a74['shift']());}}}(a79_0x52a6,0xdef4d));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a79_0x490d52}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a79_0x1f682e(0x1b2),SUPPORTED_SKILL_TYPES=new Set([a79_0x1f682e(0x20b),a79_0x1f682e(0x1e9)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a79_0x52a6(){const _0x5357ba=['description','hasFrontmatter','example','internal-skill','content','write','auth','true','logs','ruleId','frontmatter-required','artifact','warning','SKILL.md','trim','string','service','toUpperCase','20589679PfMbyd','SKILL.md\x20must\x20start\x20with\x20frontmatter.','config','number','display-name-recommended','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','description-required','slice','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','12tFPOKi','bff','path','2906390TkIHWo','isDirectory','12729871mxEPZz','object','has','join','file','push','Frontmatter\x20name\x20is\x20missing.','app','example-recommended','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','match','level','5617420XAQQrQ','4345415abunWj','6FVyXvu','split','40256LmUmpI','schema','map','length','line','type','false','1eVRQqT','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','249ooavdW','isFile','registry','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','validation','internal','test','Add\x20frontmatter\x20with\x20name\x20and\x20description.','isArray','data','toLowerCase','read','metadata','Skill\x20validation\x20failed:\x0a','Frontmatter\x20description\x20is\x20empty.','Missing\x20SKILL.md.','utf8','isSymbolicLink','sql','Frontmatter\x20example\x20is\x20missing.','structure-complete','error','raw','search','page','boolean','rabetbase-cli-reference','dataset','Set\x20metadata.type\x20to\x20write\x20or\x20read.','Skill\x20directory\x20not\x20found:\x20','2620296IiwIsP','filter','project','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','name','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','displayName','suggestion','section','27vfBbMK'];a79_0x52a6=function(){return _0x5357ba;};return a79_0x52a6();}export function validateSkillDirectory(_0x1cb5b5,_0x10583c={}){const _0x2c5848=a79_0x1f682e,_0x2aab83=resolveSkillDirectoryRoot(_0x1cb5b5),_0x34b1a7=[],_0x16cbac=loadRequiredSkillFile(_0x2aab83,_0x34b1a7),_0x18b6dc=_0x16cbac?parseFrontmatter(_0x16cbac[_0x2c5848(0x20a)]):{'hasFrontmatter':![]};_0x16cbac&&validateFrontmatter(_0x16cbac[_0x2c5848(0x1c2)],_0x18b6dc,_0x34b1a7);validateRuntimeCliReferences(_0x2aab83,_0x34b1a7);const _0x30dab3=_0x34b1a7[_0x2c5848(0x1fd)](_0x4e4a81=>_0x4e4a81[_0x2c5848(0x1d0)]===_0x2c5848(0x1f3)),_0xf7fa74=_0x34b1a7[_0x2c5848(0x1fd)](_0x2fe86c=>_0x2fe86c['level']==='warning');return{'ok':_0x30dab3[_0x2c5848(0x1d8)]===0x0,'dir':_0x2aab83,'type':_0x18b6dc['type'],'errors':_0x30dab3,'warnings':_0xf7fa74};}function a79_0x32ce(_0x22a42e,_0x3ed6cd){_0x22a42e=_0x22a42e-0x1b0;const _0x52a6f5=a79_0x52a6();let _0x32ceba=_0x52a6f5[_0x22a42e];return _0x32ceba;}function resolveSkillDirectoryRoot(_0x449371){const _0x481dc5=a79_0x1f682e,_0x49c107=resolve(_0x449371);if(!existsSync(_0x49c107))throw CliErrors['validation'](_0x481dc5(0x1fb)+_0x449371);const _0x505953=lstatSync(_0x49c107);if(_0x505953['isDirectory']())return _0x49c107;if(_0x505953[_0x481dc5(0x1ef)]()){const _0x1c51ec=realpathSync(_0x49c107);if(lstatSync(_0x1c51ec)[_0x481dc5(0x1c4)]())return _0x1c51ec;}throw CliErrors['validation'](_0x481dc5(0x1fb)+_0x449371);}export function throwIfSkillValidationFailed(_0x398cb2,_0x2b2f0e=![]){const _0x2123b0=a79_0x1f682e;if(_0x398cb2['ok'])return;const _0x11b1ec=_0x398cb2['errors'][_0x2123b0(0x1d7)](_0x48e885=>{const _0x7449f5=_0x2123b0,_0xe36260=_0x48e885[_0x7449f5(0x204)]?'#'+_0x48e885[_0x7449f5(0x204)]:'';return _0x48e885['level'][_0x7449f5(0x1b6)]()+'\x20'+_0x48e885[_0x7449f5(0x20f)]+'\x20'+_0x48e885[_0x7449f5(0x1c9)]+_0xe36260+':\x20'+_0x48e885['message']+'\x20Fix:\x20'+_0x48e885[_0x7449f5(0x203)];});throw CliErrors[_0x2123b0(0x1e2)](_0x2123b0(0x1eb)+_0x11b1ec[_0x2123b0(0x1c8)]('\x0a'),_0x2123b0(0x201));}function loadRequiredSkillFile(_0x32ce08,_0x2e09df){const _0x3cf35c=a79_0x1f682e,_0x5ebe8c=resolve(_0x32ce08,SKILL_FILE);if(!existsSync(_0x5ebe8c))return _0x2e09df[_0x3cf35c(0x1ca)](issue(_0x3cf35c(0x1f3),_0x3cf35c(0x1f2),SKILL_FILE,_0x3cf35c(0x1ed),_0x3cf35c(0x1bf))),undefined;const _0x314593=lstatSync(_0x5ebe8c);if(_0x314593[_0x3cf35c(0x1ef)]())return _0x2e09df[_0x3cf35c(0x1ca)](issue(_0x3cf35c(0x1f3),_0x3cf35c(0x1f2),SKILL_FILE,_0x3cf35c(0x1e1),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x314593[_0x3cf35c(0x1df)]())return _0x2e09df[_0x3cf35c(0x1ca)](issue('error',_0x3cf35c(0x1f2),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x3cf35c(0x1ce))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x5ebe8c,_0x3cf35c(0x1ee))};}function validateFrontmatter(_0x434e96,_0x555d55,_0x558778){const _0x1be5da=a79_0x1f682e;if(!_0x555d55[_0x1be5da(0x207)]){_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1f3),'frontmatter-required',_0x434e96,_0x1be5da(0x1b8),_0x1be5da(0x1e5)));return;}!_0x555d55[_0x1be5da(0x200)]?.['trim']()&&_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1f3),'frontmatter-required',_0x434e96,_0x1be5da(0x1cb),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x555d55[_0x1be5da(0x202)]?.[_0x1be5da(0x1b3)]()&&_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1b1),_0x1be5da(0x1bb),_0x434e96,'Frontmatter\x20displayName\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x555d55[_0x1be5da(0x208)]?.[_0x1be5da(0x1b3)]()&&_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1b1),_0x1be5da(0x1cd),_0x434e96,_0x1be5da(0x1f1),_0x1be5da(0x1bc))),!_0x555d55['description']?.[_0x1be5da(0x1b3)]()&&_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1f3),_0x1be5da(0x1bd),_0x434e96,_0x1be5da(0x1ec),_0x1be5da(0x1dd))),_0x555d55['internal']===!![]&&_0x558778[_0x1be5da(0x1ca)](issue('error',_0x1be5da(0x209),_0x434e96,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x555d55[_0x1be5da(0x1da)]?.[_0x1be5da(0x1b3)]()&&!SUPPORTED_SKILL_TYPES[_0x1be5da(0x1c7)](_0x555d55[_0x1be5da(0x1da)])&&_0x558778[_0x1be5da(0x1ca)](issue(_0x1be5da(0x1f3),_0x1be5da(0x210),_0x434e96,_0x1be5da(0x1ff),_0x1be5da(0x1fa)));}function validateRuntimeCliReferences(_0x23d001,_0xc7d531){const _0x3dc768=a79_0x1f682e;for(const _0x233b0d of findRabetbaseCliInvocations(_0x23d001)){_0xc7d531[_0x3dc768(0x1ca)](issue('warning',_0x3dc768(0x1f8),_0x233b0d[_0x3dc768(0x1c9)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x233b0d[_0x3dc768(0x1d9)]));}}function findRabetbaseCliInvocations(_0x3d3fe8){const _0x33037b=a79_0x1f682e;return scanSkillDirectory(_0x3d3fe8)['filter'](_0x1583ad=>TEXT_SKILL_FILE_PATTERN[_0x33037b(0x1e4)](_0x1583ad[_0x33037b(0x1c2)]))['flatMap'](_0x48f8e0=>{const _0xa1a28d=_0x33037b,_0x2c6609=fileText(_0x48f8e0);return _0x2c6609[_0xa1a28d(0x1d4)](/\r?\n/)[_0xa1a28d(0x1d7)]((_0xe306bb,_0x2aee53)=>({'file':_0x48f8e0[_0xa1a28d(0x1c2)],'line':_0x2aee53+0x1,'text':_0xe306bb}))[_0xa1a28d(0x1fd)](({text:_0x33c302})=>isRabetbaseCliInvocation(_0x33c302))[_0xa1a28d(0x1d7)](({file:_0xc9d8d0,line:_0xec992b})=>({'file':_0xc9d8d0,'line':_0xec992b}));});}const RABETBASE_SUBCOMMANDS=[a79_0x1f682e(0x1f9),a79_0x1f682e(0x1f0),a79_0x1f682e(0x1c1),a79_0x1f682e(0x1f6),a79_0x1f682e(0x1fe),a79_0x1f682e(0x1cc),a79_0x1f682e(0x1d6),a79_0x1f682e(0x1b5),a79_0x1f682e(0x1b0),'kb',a79_0x1f682e(0x1b9),'workspace',a79_0x1f682e(0x1e7),a79_0x1f682e(0x20c),a79_0x1f682e(0x20e),a79_0x1f682e(0x1e0)],RABETBASE_INVOCATION=new RegExp(String[a79_0x1f682e(0x1f4)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a79_0x1f682e(0x1c8)]('|')})\b`+String[a79_0x1f682e(0x1f4)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x43010e){const _0x4a232a=a79_0x1f682e,_0x5ad8da=_0x43010e[_0x4a232a(0x1f5)](/\brabetbase\b/i);if(_0x5ad8da<0x0)return![];const _0x2d53e9=_0x43010e[_0x4a232a(0x1be)](_0x5ad8da)[_0x4a232a(0x1d4)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4a232a(0x1e4)](_0x2d53e9);}function parseFrontmatter(_0x1121e1){const _0x508b7b=a79_0x1f682e,_0xa3d92c=_0x1121e1[_0x508b7b(0x1cf)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xa3d92c)return{'hasFrontmatter':![]};const _0x348edd=_0xa3d92c[0x1]??'',_0x197893={'hasFrontmatter':!![]};let _0x6ea360;try{_0x6ea360=a79_0x490d52(_0x348edd);}catch{return _0x197893;}const _0x17aeea=asRecord(_0x6ea360);if(!_0x17aeea)return _0x197893;_0x197893['name']=scalarToString(_0x17aeea[_0x508b7b(0x200)]),_0x197893['displayName']=scalarToString(_0x17aeea[_0x508b7b(0x202)]),_0x197893[_0x508b7b(0x206)]=scalarToString(_0x17aeea['description']),_0x197893[_0x508b7b(0x208)]=scalarToString(_0x17aeea[_0x508b7b(0x208)]);const _0x55f063=asRecord(_0x17aeea[_0x508b7b(0x1ea)]);return _0x55f063&&(_0x197893[_0x508b7b(0x1da)]=scalarToString(_0x55f063[_0x508b7b(0x1da)]),_0x197893[_0x508b7b(0x1e3)]=scalarToBoolean(_0x55f063[_0x508b7b(0x1e3)])),_0x197893;}function asRecord(_0x15f6e0){const _0x39879a=a79_0x1f682e;if(_0x15f6e0&&typeof _0x15f6e0===_0x39879a(0x1c6)&&!Array[_0x39879a(0x1e6)](_0x15f6e0))return _0x15f6e0;return undefined;}function scalarToString(_0x251ee8){const _0x2c7a71=a79_0x1f682e;if(typeof _0x251ee8==='string')return _0x251ee8[_0x2c7a71(0x1b3)]();if(typeof _0x251ee8===_0x2c7a71(0x1ba)||typeof _0x251ee8==='boolean')return String(_0x251ee8);return undefined;}function scalarToBoolean(_0x13262a){const _0x2991f7=a79_0x1f682e;if(typeof _0x13262a===_0x2991f7(0x1f7))return _0x13262a;if(typeof _0x13262a===_0x2991f7(0x1b4))return cleanBoolean(_0x13262a);return undefined;}function cleanBoolean(_0x3e40c){const _0x4f355b=a79_0x1f682e,_0x37644a=_0x3e40c[_0x4f355b(0x1b3)]()[_0x4f355b(0x1e8)]();if(_0x37644a===_0x4f355b(0x20d))return!![];if(_0x37644a===_0x4f355b(0x1db))return![];return undefined;}function issue(_0x484795,_0x4b63d8,_0x10a236,_0x58698f,_0x21e5d0,_0x51e3f5){return{'level':_0x484795,'ruleId':_0x4b63d8,'file':_0x10a236,'section':_0x51e3f5,'message':_0x58698f,'suggestion':_0x21e5d0};}
1
+ const a79_0x3e23eb=a79_0x5aea;(function(_0x36182b,_0x158a79){const _0x34fac8=a79_0x5aea,_0x3d18b1=_0x36182b();while(!![]){try{const _0x16ef0a=-parseInt(_0x34fac8(0x20a))/0x1*(parseInt(_0x34fac8(0x205))/0x2)+-parseInt(_0x34fac8(0x1e0))/0x3+parseInt(_0x34fac8(0x1bb))/0x4*(-parseInt(_0x34fac8(0x1fa))/0x5)+-parseInt(_0x34fac8(0x1c3))/0x6*(parseInt(_0x34fac8(0x1e3))/0x7)+-parseInt(_0x34fac8(0x1e8))/0x8*(-parseInt(_0x34fac8(0x1b8))/0x9)+parseInt(_0x34fac8(0x1d0))/0xa+parseInt(_0x34fac8(0x1c9))/0xb*(parseInt(_0x34fac8(0x1bc))/0xc);if(_0x16ef0a===_0x158a79)break;else _0x3d18b1['push'](_0x3d18b1['shift']());}catch(_0x1c2ca0){_0x3d18b1['push'](_0x3d18b1['shift']());}}}(a79_0xa4da,0x9540f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a79_0x225c36}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a79_0x3e23eb(0x1db),SUPPORTED_SKILL_TYPES=new Set([a79_0x3e23eb(0x1f4),a79_0x3e23eb(0x1e7)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2daa8b,_0x4a264d={}){const _0x375ace=a79_0x3e23eb,_0x38dc55=resolveSkillDirectoryRoot(_0x2daa8b),_0x30e726=[],_0x324f48=loadRequiredSkillFile(_0x38dc55,_0x30e726),_0x27a226=_0x324f48?parseFrontmatter(_0x324f48[_0x375ace(0x1f8)]):{'hasFrontmatter':![]};_0x324f48&&validateFrontmatter(_0x324f48[_0x375ace(0x1c5)],_0x27a226,_0x30e726);validateRuntimeCliReferences(_0x38dc55,_0x30e726);const _0x1247be=_0x30e726[_0x375ace(0x1b3)](_0x1b940a=>_0x1b940a[_0x375ace(0x1f9)]==='error'),_0x1242c8=_0x30e726[_0x375ace(0x1b3)](_0x10bcc8=>_0x10bcc8[_0x375ace(0x1f9)]==='warning');return{'ok':_0x1247be[_0x375ace(0x1cd)]===0x0,'dir':_0x38dc55,'type':_0x27a226[_0x375ace(0x1f1)],'errors':_0x1247be,'warnings':_0x1242c8};}function resolveSkillDirectoryRoot(_0x364a70){const _0x5166be=a79_0x3e23eb,_0x23ce3c=resolve(_0x364a70);if(!existsSync(_0x23ce3c))throw CliErrors[_0x5166be(0x208)](_0x5166be(0x1c6)+_0x364a70);const _0x109e4c=lstatSync(_0x23ce3c);if(_0x109e4c['isDirectory']())return _0x23ce3c;if(_0x109e4c['isSymbolicLink']()){const _0x3778fd=realpathSync(_0x23ce3c);if(lstatSync(_0x3778fd)[_0x5166be(0x202)]())return _0x3778fd;}throw CliErrors['validation'](_0x5166be(0x1c6)+_0x364a70);}export function throwIfSkillValidationFailed(_0x325c28,_0x4b596c=![]){const _0xff1b15=a79_0x3e23eb;if(_0x325c28['ok'])return;const _0x185e93=_0x325c28['errors'][_0xff1b15(0x1d1)](_0xa8b6e5=>{const _0x599dcd=_0xff1b15,_0x36eb78=_0xa8b6e5[_0x599dcd(0x1ef)]?'#'+_0xa8b6e5[_0x599dcd(0x1ef)]:'';return _0xa8b6e5[_0x599dcd(0x1f9)][_0x599dcd(0x1d3)]()+'\x20'+_0xa8b6e5[_0x599dcd(0x1fb)]+'\x20'+_0xa8b6e5['file']+_0x36eb78+':\x20'+_0xa8b6e5[_0x599dcd(0x1df)]+_0x599dcd(0x1b7)+_0xa8b6e5[_0x599dcd(0x1b5)];});throw CliErrors[_0xff1b15(0x208)](_0xff1b15(0x1eb)+_0x185e93[_0xff1b15(0x1ea)]('\x0a'),_0xff1b15(0x1b1));}function loadRequiredSkillFile(_0x590350,_0x47f368){const _0x4a3ef4=a79_0x3e23eb,_0x4d1e04=resolve(_0x590350,SKILL_FILE);if(!existsSync(_0x4d1e04))return _0x47f368[_0x4a3ef4(0x1d8)](issue(_0x4a3ef4(0x1c4),'structure-complete',SKILL_FILE,_0x4a3ef4(0x1dd),_0x4a3ef4(0x1d6))),undefined;const _0xd72d65=lstatSync(_0x4d1e04);if(_0xd72d65[_0x4a3ef4(0x1e9)]())return _0x47f368['push'](issue('error',_0x4a3ef4(0x1af),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0xd72d65[_0x4a3ef4(0x1c8)]())return _0x47f368[_0x4a3ef4(0x1d8)](issue(_0x4a3ef4(0x1c4),_0x4a3ef4(0x1af),SKILL_FILE,_0x4a3ef4(0x1be),_0x4a3ef4(0x1ec))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4d1e04,'utf8')};}function validateFrontmatter(_0x4d7db1,_0xb361a6,_0x56cd84){const _0x59a613=a79_0x3e23eb;if(!_0xb361a6[_0x59a613(0x1f2)]){_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1c4),_0x59a613(0x1fd),_0x4d7db1,_0x59a613(0x1ba),_0x59a613(0x1bf)));return;}!_0xb361a6[_0x59a613(0x1f5)]?.['trim']()&&_0x56cd84['push'](issue(_0x59a613(0x1c4),_0x59a613(0x1fd),_0x4d7db1,'Frontmatter\x20name\x20is\x20missing.',_0x59a613(0x1ae))),!_0xb361a6[_0x59a613(0x1fe)]?.[_0x59a613(0x1b6)]()&&_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1b4),_0x59a613(0x1f7),_0x4d7db1,_0x59a613(0x1bd),_0x59a613(0x1ee))),!_0xb361a6['example']?.[_0x59a613(0x1b6)]()&&_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1b4),_0x59a613(0x201),_0x4d7db1,_0x59a613(0x1c7),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0xb361a6[_0x59a613(0x1e2)]?.[_0x59a613(0x1b6)]()&&_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1c4),'description-required',_0x4d7db1,_0x59a613(0x1de),_0x59a613(0x1b0))),_0xb361a6[_0x59a613(0x204)]===!![]&&_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1c4),_0x59a613(0x200),_0x4d7db1,_0x59a613(0x1ed),_0x59a613(0x1c2))),_0xb361a6[_0x59a613(0x1f1)]?.[_0x59a613(0x1b6)]()&&!SUPPORTED_SKILL_TYPES[_0x59a613(0x1d9)](_0xb361a6['type'])&&_0x56cd84[_0x59a613(0x1d8)](issue(_0x59a613(0x1c4),_0x59a613(0x1fd),_0x4d7db1,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x59a613(0x206)));}function validateRuntimeCliReferences(_0x2f068d,_0x3b4e91){const _0x4dddf8=a79_0x3e23eb;for(const _0x2c1134 of findRabetbaseCliInvocations(_0x2f068d)){_0x3b4e91[_0x4dddf8(0x1d8)](issue(_0x4dddf8(0x1b4),_0x4dddf8(0x1e6),_0x2c1134[_0x4dddf8(0x1c1)],_0x4dddf8(0x1da),_0x4dddf8(0x1fc),'L'+_0x2c1134[_0x4dddf8(0x1ff)]));}}function findRabetbaseCliInvocations(_0x4eb920){const _0x2ff118=a79_0x3e23eb;return scanSkillDirectory(_0x4eb920)[_0x2ff118(0x1b3)](_0x52d840=>TEXT_SKILL_FILE_PATTERN[_0x2ff118(0x1b2)](_0x52d840[_0x2ff118(0x1c5)]))[_0x2ff118(0x1d2)](_0x816090=>{const _0x2f27c1=_0x2ff118,_0x5ab284=fileText(_0x816090);return _0x5ab284[_0x2f27c1(0x1b9)](/\r?\n/)['map']((_0x7dcdb4,_0x3332b6)=>({'file':_0x816090[_0x2f27c1(0x1c5)],'line':_0x3332b6+0x1,'text':_0x7dcdb4}))[_0x2f27c1(0x1b3)](({text:_0x2b1d1a})=>isRabetbaseCliInvocation(_0x2b1d1a))[_0x2f27c1(0x1d1)](({file:_0x1d6af9,line:_0x23ea95})=>({'file':_0x1d6af9,'line':_0x23ea95}));});}const RABETBASE_SUBCOMMANDS=['dataset',a79_0x3e23eb(0x1e1),'bff',a79_0x3e23eb(0x1f6),'project','app','schema',a79_0x3e23eb(0x1dc),a79_0x3e23eb(0x1e4),'kb',a79_0x3e23eb(0x1c0),a79_0x3e23eb(0x1e5),a79_0x3e23eb(0x1d4),a79_0x3e23eb(0x1cc),a79_0x3e23eb(0x1cb),a79_0x3e23eb(0x209)],RABETBASE_INVOCATION=new RegExp(String[a79_0x3e23eb(0x1f0)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a79_0x3e23eb(0x1ea)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x147361){const _0x31b259=a79_0x3e23eb,_0xd56bc2=_0x147361['search'](/\brabetbase\b/i);if(_0xd56bc2<0x0)return![];const _0x5a7930=_0x147361[_0x31b259(0x1ce)](_0xd56bc2)[_0x31b259(0x1b9)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x31b259(0x1b2)](_0x5a7930);}function parseFrontmatter(_0x3362cc){const _0x956df6=a79_0x3e23eb,_0x705f21=_0x3362cc[_0x956df6(0x1ca)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x705f21)return{'hasFrontmatter':![]};const _0x113dea=_0x705f21[0x1]??'',_0x1c4a6d={'hasFrontmatter':!![]};let _0xafea85;try{_0xafea85=a79_0x225c36(_0x113dea);}catch{return _0x1c4a6d;}const _0x169314=asRecord(_0xafea85);if(!_0x169314)return _0x1c4a6d;_0x1c4a6d['name']=scalarToString(_0x169314[_0x956df6(0x1f5)]),_0x1c4a6d['displayName']=scalarToString(_0x169314[_0x956df6(0x1fe)]),_0x1c4a6d[_0x956df6(0x1e2)]=scalarToString(_0x169314['description']),_0x1c4a6d[_0x956df6(0x207)]=scalarToString(_0x169314[_0x956df6(0x207)]);const _0x10277a=asRecord(_0x169314['metadata']);return _0x10277a&&(_0x1c4a6d[_0x956df6(0x1f1)]=scalarToString(_0x10277a['type']),_0x1c4a6d[_0x956df6(0x204)]=scalarToBoolean(_0x10277a[_0x956df6(0x204)])),_0x1c4a6d;}function asRecord(_0x525fb3){if(_0x525fb3&&typeof _0x525fb3==='object'&&!Array['isArray'](_0x525fb3))return _0x525fb3;return undefined;}function scalarToString(_0x561f31){const _0x2dba51=a79_0x3e23eb;if(typeof _0x561f31===_0x2dba51(0x1d5))return _0x561f31['trim']();if(typeof _0x561f31===_0x2dba51(0x203)||typeof _0x561f31===_0x2dba51(0x1cf))return String(_0x561f31);return undefined;}function a79_0x5aea(_0x3c7ebd,_0x4c9b60){_0x3c7ebd=_0x3c7ebd-0x1ae;const _0xa4da79=a79_0xa4da();let _0x5aeaed=_0xa4da79[_0x3c7ebd];return _0x5aeaed;}function scalarToBoolean(_0x5bb572){const _0x48b86e=a79_0x3e23eb;if(typeof _0x5bb572===_0x48b86e(0x1cf))return _0x5bb572;if(typeof _0x5bb572===_0x48b86e(0x1d5))return cleanBoolean(_0x5bb572);return undefined;}function cleanBoolean(_0x13d035){const _0x38828b=a79_0x3e23eb,_0x452b63=_0x13d035['trim']()[_0x38828b(0x1d7)]();if(_0x452b63==='true')return!![];if(_0x452b63===_0x38828b(0x1f3))return![];return undefined;}function issue(_0xee69b8,_0x2bdee2,_0x38a378,_0x530d3d,_0x346458,_0x41f4b8){return{'level':_0xee69b8,'ruleId':_0x2bdee2,'file':_0x38a378,'section':_0x41f4b8,'message':_0x530d3d,'suggestion':_0x346458};}function a79_0xa4da(){const _0x4d781b=['Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','78PtiQkE','error','path','Skill\x20directory\x20not\x20found:\x20','Frontmatter\x20example\x20is\x20missing.','isFile','11781fWOyTl','match','logs','auth','length','slice','boolean','3419400YqXGiw','map','flatMap','toUpperCase','data','string','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','toLowerCase','push','has','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','SKILL.md','service','Missing\x20SKILL.md.','Frontmatter\x20description\x20is\x20empty.','message','3020484IEuwMC','sql','description','620214KXnwdN','artifact','workspace','rabetbase-cli-reference','read','9027664UFvVjX','isSymbolicLink','join','Skill\x20validation\x20failed:\x0a','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','section','raw','type','hasFrontmatter','false','write','name','page','display-name-recommended','content','level','5OUZHnv','ruleId','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','frontmatter-required','displayName','line','internal-skill','example-recommended','isDirectory','number','internal','676KdSdBF','Set\x20metadata.type\x20to\x20write\x20or\x20read.','example','validation','registry','2329ZeHgrB','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','structure-complete','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','test','filter','warning','suggestion','trim','\x20Fix:\x20','9AlUdoW','split','SKILL.md\x20must\x20start\x20with\x20frontmatter.','1835864LoQpcC','28524pSQVOf','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20is\x20not\x20a\x20file.','Add\x20frontmatter\x20with\x20name\x20and\x20description.','config','file'];a79_0xa4da=function(){return _0x4d781b;};return a79_0xa4da();}
@@ -1 +1 @@
1
- const a80_0x4639b5=a80_0x3e87;function a80_0x5557(){const _0x3cd9bb=['dbId','107163hruHxu','50gicwfb','sqlName','verbose','sqlCode','sqlContent','str','2204270bhcubB','175249sWgJqm','2zRsVVy','168BjRvZD','read','bool','6698296PZoEyk','detail','sql','54764zDPVGI','69uUFUxP','sqlcode','1020789OBUKsS','203394XPITGw','appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a80_0x5557=function(){return _0x3cd9bb;};return a80_0x5557();}(function(_0x46fd2a,_0x4bce98){const _0x5427bb=a80_0x3e87,_0x381a75=_0x46fd2a();while(!![]){try{const _0x5dc96b=-parseInt(_0x5427bb(0xb1))/0x1*(parseInt(_0x5427bb(0x9a))/0x2)+parseInt(_0x5427bb(0xa2))/0x3*(parseInt(_0x5427bb(0xa1))/0x4)+parseInt(_0x5427bb(0xaa))/0x5*(-parseInt(_0x5427bb(0xa5))/0x6)+-parseInt(_0x5427bb(0xa4))/0x7+parseInt(_0x5427bb(0x9b))/0x8*(parseInt(_0x5427bb(0xa9))/0x9)+-parseInt(_0x5427bb(0xb0))/0xa+parseInt(_0x5427bb(0x9e))/0xb;if(_0x5dc96b===_0x4bce98)break;else _0x381a75['push'](_0x381a75['shift']());}catch(_0xe391d1){_0x381a75['push'](_0x381a75['shift']());}}}(a80_0x5557,0x47a07));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 a80_0x3e87(_0x387b56,_0x5eb01d){_0x387b56=_0x387b56-0x9a;const _0x55577a=a80_0x5557();let _0x3e871a=_0x55577a[_0x387b56];return _0x3e871a;}export const sqlDetail={'service':a80_0x4639b5(0xa0),'command':a80_0x4639b5(0x9f),'description':a80_0x4639b5(0xa7),'risk':a80_0x4639b5(0x9c),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x923e75){const _0x14a174=a80_0x4639b5,_0x294c6c=await getSqlQueryInfo(_0x923e75['appCode'],_0x923e75[_0x14a174(0xaf)](_0x14a174(0xa3))),_0x4eee84=_0x923e75[_0x14a174(0x9d)](_0x14a174(0xac));if(_0x4eee84)return{'ok':!![],'data':_0x294c6c};const _0x4e122c=_0x294c6c[_0x14a174(0xa8)]?await getDbName(_0x923e75[_0x14a174(0xa6)],_0x294c6c['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x294c6c[_0x14a174(0xad)],'sqlName':_0x294c6c[_0x14a174(0xab)],'db':_0x4e122c?_0x4e122c+'\x20('+_0x294c6c[_0x14a174(0xa8)]+')':_0x294c6c[_0x14a174(0xa8)]??'','sqlContent':_0x294c6c[_0x14a174(0xae)]??''}};}};
1
+ const a80_0x4ae475=a80_0x4e59;(function(_0x51623a,_0x46971c){const _0x2a8ada=a80_0x4e59,_0x14657b=_0x51623a();while(!![]){try{const _0x31dbdc=-parseInt(_0x2a8ada(0x101))/0x1*(-parseInt(_0x2a8ada(0x10e))/0x2)+parseInt(_0x2a8ada(0x112))/0x3+parseInt(_0x2a8ada(0x111))/0x4+parseInt(_0x2a8ada(0x10f))/0x5+parseInt(_0x2a8ada(0x10c))/0x6+parseInt(_0x2a8ada(0x109))/0x7+-parseInt(_0x2a8ada(0x105))/0x8;if(_0x31dbdc===_0x46971c)break;else _0x14657b['push'](_0x14657b['shift']());}catch(_0x216d30){_0x14657b['push'](_0x14657b['shift']());}}}(a80_0x29d5,0xdb6a0));function a80_0x4e59(_0x39f860,_0x3cfc69){_0x39f860=_0x39f860-0x100;const _0x29d559=a80_0x29d5();let _0x4e59c8=_0x29d559[_0x39f860];return _0x4e59c8;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a80_0x29d5(){const _0xa13e7=['8330175TLovlh','sqlcode','4690140hupHxR','4166115UbBzaf','dbId','bool','62477mCktir','sqlCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','verbose','58461240rmZzKk','read','appCode','sql','9542281caHqRd','sqlName','str','7073676bOQgIQ','sqlContent','46ZcIdNk'];a80_0x29d5=function(){return _0xa13e7;};return a80_0x29d5();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a80_0x4ae475(0x108),'command':'detail','description':a80_0x4ae475(0x103),'risk':a80_0x4ae475(0x106),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0xc69665){const _0xede049=a80_0x4ae475,_0xf5890c=await getSqlQueryInfo(_0xc69665[_0xede049(0x107)],_0xc69665[_0xede049(0x10b)](_0xede049(0x110))),_0x550e70=_0xc69665[_0xede049(0x100)](_0xede049(0x104));if(_0x550e70)return{'ok':!![],'data':_0xf5890c};const _0x242b2d=_0xf5890c['dbId']?await getDbName(_0xc69665['appCode'],_0xf5890c[_0xede049(0x113)]):undefined;return{'ok':!![],'data':{'sqlCode':_0xf5890c[_0xede049(0x102)],'sqlName':_0xf5890c[_0xede049(0x10a)],'db':_0x242b2d?_0x242b2d+'\x20('+_0xf5890c['dbId']+')':_0xf5890c[_0xede049(0x113)]??'','sqlContent':_0xf5890c[_0xede049(0x10d)]??''}};}};
@@ -1 +1 @@
1
- const a81_0x1db16c=a81_0x5cea;(function(_0x47cac1,_0x2f348f){const _0x20bf40=a81_0x5cea,_0x27a9a0=_0x47cac1();while(!![]){try{const _0x348e61=-parseInt(_0x20bf40(0x86))/0x1*(parseInt(_0x20bf40(0x8b))/0x2)+-parseInt(_0x20bf40(0x85))/0x3*(parseInt(_0x20bf40(0x97))/0x4)+-parseInt(_0x20bf40(0x89))/0x5+-parseInt(_0x20bf40(0x88))/0x6+parseInt(_0x20bf40(0x99))/0x7+-parseInt(_0x20bf40(0x9c))/0x8+parseInt(_0x20bf40(0x91))/0x9*(parseInt(_0x20bf40(0x9b))/0xa);if(_0x348e61===_0x2f348f)break;else _0x27a9a0['push'](_0x27a9a0['shift']());}catch(_0x17ed4b){_0x27a9a0['push'](_0x27a9a0['shift']());}}}(a81_0x1d2f,0x91cbe));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a81_0x5cea(_0x493cd4,_0x2de93a){_0x493cd4=_0x493cd4-0x85;const _0x1d2ff8=a81_0x1d2f();let _0x5cea4d=_0x1d2ff8[_0x493cd4];return _0x5cea4d;}import{parseJsonParams}from'../../utils/params.js';function a81_0x1d2f(){const _0x3cb63f=['isArray','\x20row(s)\x20in\x20','read','64YjQUOZ','str','3393985TkYCdA','SQL\x20execution\x20failed','7193180WzTIuC','2961688udwKSG','60966PirzfK','29xBfcRr','now','6283062MUsWEs','377040BnpoDR','length','15702QptnfM','execError','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','sqlcode','sql','execSuccess','27zMDKIY','execResult','params'];a81_0x1d2f=function(){return _0x3cb63f;};return a81_0x1d2f();}export const sqlExec={'service':a81_0x1db16c(0x8f),'command':'exec','description':a81_0x1db16c(0x8d),'risk':a81_0x1db16c(0x96),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x141cd0){const _0x318112=a81_0x1db16c,_0x89ba27=parseJsonParams(_0x141cd0['str'](_0x318112(0x93))),_0xb87398=Date[_0x318112(0x87)](),_0x5e7a01=await executeSdkSql(_0x141cd0[_0x318112(0x98)](_0x318112(0x8e)),_0x89ba27),_0x598be1=Date[_0x318112(0x87)]()-_0xb87398,_0x2161cf=_0x5e7a01?.[_0x318112(0x92)]??_0x5e7a01,_0x464286=_0x5e7a01?.[_0x318112(0x90)]??!![];if(!_0x464286)return{'ok':![],'data':{'error':_0x5e7a01?.[_0x318112(0x8c)]||_0x318112(0x9a),'elapsed':_0x598be1},'message':_0x318112(0x9a)};const _0x2f13f1=Array[_0x318112(0x94)](_0x2161cf)?_0x2161cf:[];return{'ok':!![],'data':{'rows':_0x2f13f1,'rowCount':_0x2f13f1[_0x318112(0x8a)],'elapsed':_0x598be1},'message':'Returned\x20'+_0x2f13f1[_0x318112(0x8a)]+_0x318112(0x95)+_0x598be1+'ms'};}};
1
+ const a81_0x3deecb=a81_0x485c;function a81_0x485c(_0x336433,_0x2d27bf){_0x336433=_0x336433-0xd9;const _0x388863=a81_0x3888();let _0x485c20=_0x388863[_0x336433];return _0x485c20;}(function(_0x3df6c7,_0x2e1793){const _0x5d1f2a=a81_0x485c,_0x32ea18=_0x3df6c7();while(!![]){try{const _0x4b9923=parseInt(_0x5d1f2a(0xe7))/0x1*(-parseInt(_0x5d1f2a(0xde))/0x2)+-parseInt(_0x5d1f2a(0xdd))/0x3*(parseInt(_0x5d1f2a(0xe5))/0x4)+-parseInt(_0x5d1f2a(0xdc))/0x5+parseInt(_0x5d1f2a(0xf0))/0x6+-parseInt(_0x5d1f2a(0xdf))/0x7*(-parseInt(_0x5d1f2a(0xef))/0x8)+-parseInt(_0x5d1f2a(0xe0))/0x9*(-parseInt(_0x5d1f2a(0xe6))/0xa)+-parseInt(_0x5d1f2a(0xe1))/0xb;if(_0x4b9923===_0x2e1793)break;else _0x32ea18['push'](_0x32ea18['shift']());}catch(_0x41c033){_0x32ea18['push'](_0x32ea18['shift']());}}}(a81_0x3888,0x9555a));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':'sql','command':a81_0x3deecb(0xe3),'description':a81_0x3deecb(0xee),'risk':a81_0x3deecb(0xed),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x35b879){const _0x434345=a81_0x3deecb,_0x27589b=parseJsonParams(_0x35b879[_0x434345(0xe8)](_0x434345(0xea))),_0x34dc7c=Date['now'](),_0x5dd36c=await executeSdkSql(_0x35b879[_0x434345(0xe8)](_0x434345(0xdb)),_0x27589b),_0x50f70f=Date[_0x434345(0xe9)]()-_0x34dc7c,_0x1692d3=_0x5dd36c?.[_0x434345(0xeb)]??_0x5dd36c,_0x3ee806=_0x5dd36c?.[_0x434345(0xda)]??!![];if(!_0x3ee806)return{'ok':![],'data':{'error':_0x5dd36c?.[_0x434345(0xf1)]||'SQL\x20execution\x20failed','elapsed':_0x50f70f},'message':_0x434345(0xe4)};const _0x45dfe0=Array['isArray'](_0x1692d3)?_0x1692d3:[];return{'ok':!![],'data':{'rows':_0x45dfe0,'rowCount':_0x45dfe0['length'],'elapsed':_0x50f70f},'message':_0x434345(0xd9)+_0x45dfe0[_0x434345(0xe2)]+_0x434345(0xec)+_0x50f70f+'ms'};}};function a81_0x3888(){const _0x5e0900=['45UEGWTz','4448642FhnFHm','length','exec','SQL\x20execution\x20failed','16RaskAt','1716940FGWtnd','3JNIFwj','str','now','params','execResult','\x20row(s)\x20in\x20','read','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1868792WdEgzX','1635168vqnDzE','execError','Returned\x20','execSuccess','sqlcode','3453120vWLkTA','13911SkmCTM','71018FJOjtE','21eMwXPQ'];a81_0x3888=function(){return _0x5e0900;};return a81_0x3888();}
@@ -1 +1 @@
1
- (function(_0x49e5f2,_0x44f047){const _0x1ef35b=a82_0x3a95,_0x42a1f2=_0x49e5f2();while(!![]){try{const _0x296b77=parseInt(_0x1ef35b(0x68))/0x1+-parseInt(_0x1ef35b(0x6b))/0x2+-parseInt(_0x1ef35b(0x6a))/0x3+-parseInt(_0x1ef35b(0x6c))/0x4+-parseInt(_0x1ef35b(0x67))/0x5+-parseInt(_0x1ef35b(0x66))/0x6*(parseInt(_0x1ef35b(0x69))/0x7)+parseInt(_0x1ef35b(0x65))/0x8;if(_0x296b77===_0x44f047)break;else _0x42a1f2['push'](_0x42a1f2['shift']());}catch(_0x3782ed){_0x42a1f2['push'](_0x42a1f2['shift']());}}}(a82_0x4ef3,0xf0339));import{sqlDetail}from'../../commands/sql/detail.js';function a82_0x3a95(_0x177dae,_0x3a9be3){_0x177dae=_0x177dae-0x65;const _0x4ef3df=a82_0x4ef3();let _0x3a9506=_0x4ef3df[_0x177dae];return _0x3a9506;}function a82_0x4ef3(){const _0x136a92=['2902914gCTcoe','1226740dMhiLc','25106816gCflWj','6tzmGuo','697280Sblhgk','1937107PkkaFL','3531171UaynpR','5068629YhDxtg'];a82_0x4ef3=function(){return _0x136a92;};return a82_0x4ef3();}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ function a82_0x8143(_0x42881e,_0x17d2f1){_0x42881e=_0x42881e-0x142;const _0x58e72a=a82_0x58e7();let _0x8143a3=_0x58e72a[_0x42881e];return _0x8143a3;}(function(_0x14f5dc,_0x89371b){const _0x2565d6=a82_0x8143,_0x497812=_0x14f5dc();while(!![]){try{const _0x1f5cf3=parseInt(_0x2565d6(0x146))/0x1*(parseInt(_0x2565d6(0x142))/0x2)+-parseInt(_0x2565d6(0x14b))/0x3*(parseInt(_0x2565d6(0x143))/0x4)+parseInt(_0x2565d6(0x14a))/0x5+-parseInt(_0x2565d6(0x148))/0x6+-parseInt(_0x2565d6(0x149))/0x7*(parseInt(_0x2565d6(0x147))/0x8)+parseInt(_0x2565d6(0x144))/0x9+parseInt(_0x2565d6(0x14c))/0xa*(parseInt(_0x2565d6(0x145))/0xb);if(_0x1f5cf3===_0x89371b)break;else _0x497812['push'](_0x497812['shift']());}catch(_0xd8ef43){_0x497812['push'](_0x497812['shift']());}}}(a82_0x58e7,0x54e86));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a82_0x58e7(){const _0x30a9be=['1929888wDjSuj','77238Vmdbdf','250165ZreUQm','551469auLKDf','10KRVkFe','23602MbzkEW','8MgTmPC','548577PDiMCo','9365939kVVKtc','11EcBkRT','40oNIVXb'];a82_0x58e7=function(){return _0x30a9be;};return a82_0x58e7();}
@@ -6,5 +6,24 @@
6
6
  * this command repairs the current package or verifies a newly installed one.
7
7
  */
8
8
  import type { CommandDefinition } from "../framework/types.js";
9
+ /**
10
+ * Installs the CLI package globally with npm.
11
+ *
12
+ * @param version - Exact version to install.
13
+ * @param nonInteractive - Whether output should be captured instead of inherited.
14
+ * @returns Command outcome.
15
+ */
16
+ export declare function installCliPackage(version: string, nonInteractive: boolean, currentCliPrefix?: string | null): {
17
+ ok: boolean;
18
+ error?: string;
19
+ };
20
+ /**
21
+ * Resolves the npm prefix that owns the running CLI package.
22
+ *
23
+ * npm global packages live below `prefix/lib/node_modules` on Unix and
24
+ * `prefix/node_modules` on Windows. Deriving this prefix from the installed
25
+ * package keeps an update inside the Node version that provided this CLI.
26
+ */
27
+ export declare function resolveCurrentCliNpmPrefix(modulePath?: string, platform?: NodeJS.Platform): string | null;
9
28
  /** Self-update command definition. */
10
29
  export declare const updateDefinition: CommandDefinition;